blob: 4817210fbcbff8b77b2e6368c257c15c63956e12 [file] [log] [blame]
{"version":3,"sources":["src/material/material-datepicker-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","datepicker","testing","cdk","coercion","this","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","constructor","create","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","adopt","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","pop","length","push","__read","o","m","r","i","ar","error","__spread","arguments","concat","getInputPredicate","type","options","HarnessPredicate","addOption","harness","stringMatches","getValue","placeholder","getPlaceholder","MatDatepickerInputHarnessBase","_super","isDisabled","_a","host","getProperty","isRequired","setValue","newValue","inputEl","clear","sendKeys","dispatchEvent","focus","blur","isFocused","getMin","getAttribute","getMax","ComponentHarness","MatCalendarCellHarness","_this","_content","locatorFor","with","text","getText","selected","isSelected","active","isActive","disabled","today","isToday","inRange","isInRange","inComparisonRange","isInComparisonRange","inPreviewRange","isInPreviewRange","getAriaLabel","_hasState","hasClass","select","click","hover","mouseAway","isRangeStart","isRangeEnd","isComparisonRangeStart","isComparisonRangeEnd","isPreviewRangeStart","isPreviewRangeEnd","name","hostSelector","MatCalendarHarness","_periodButton","getCells","filter","locatorForAll","getCurrentView","locatorForOptional","getCurrentViewLabel","changeView","previous","selectCell","cells","Error","JSON","stringify","DatepickerTriggerHarnessBase","openCalendar","hasCalendar","_b","parallel","_openCalendar","closeCalendar","isCalendarOpen","getCalendarId","documentRootLocatorFactory","forceStabilize","getCalendar","calendarId","documentLocator","backdropSelector","assign","selector","MatDatepickerInputHarness","alt","TestKey","DOWN_ARROW","MatDatepickerToggleHarness","_button","button","coerceBooleanProperty","MatStartDateHarness","MatEndDateHarness","MatDateRangeInputHarness","end","separator","getStartInput","input","getEndInput","getSeparator","endDisabled","defineProperty"],"mappings":"CAAC,S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AAsBA,EAE9B1K,OAAOoL,eAAepM,EAAS,aAAc,CAAEuC,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/testing'), require('@angular/cdk/coercion')) :\n typeof define === 'function' && define.amd ? define('@angular/material/datepicker/testing', ['exports', '@angular/cdk/testing', '@angular/cdk/coercion'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.datepicker = global.ng.material.datepicker || {}, global.ng.material.datepicker.testing = {}), global.ng.cdk.testing, global.ng.cdk.coercion));\n}(this, (function (exports, testing, coercion) { 'use strict';\n\n /*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */\n /* global Reflect, Promise */\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b)\n if (Object.prototype.hasOwnProperty.call(b, p))\n d[p] = b[p]; };\n return extendStatics(d, b);\n };\n function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n }\n var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n function __rest(s, e) {\n var t = {};\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n }\n function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n }\n function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); };\n }\n function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(metadataKey, metadataValue);\n }\n function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try {\n step(generator.next(value));\n }\n catch (e) {\n reject(e);\n } }\n function rejected(value) { try {\n step(generator[\"throw\"](value));\n }\n catch (e) {\n reject(e);\n } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n }\n function __generator(thisArg, body) {\n var _ = { label: 0, sent: function () { if (t[0] & 1)\n throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f)\n throw new TypeError(\"Generator is already executing.\");\n while (_)\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)\n return t;\n if (y = 0, t)\n op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return { value: op[1], done: false };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2])\n _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n }\n catch (e) {\n op = [6, e];\n y = 0;\n }\n finally {\n f = t = 0;\n }\n if (op[0] & 5)\n throw op[1];\n return { value: op[0] ? op[1] : void 0, done: true };\n }\n }\n var __createBinding = Object.create ? (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });\n }) : (function (o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n o[k2] = m[k];\n });\n function __exportStar(m, o) {\n for (var p in m)\n if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p))\n __createBinding(o, m, p);\n }\n function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m)\n return m.call(o);\n if (o && typeof o.length === \"number\")\n return {\n next: function () {\n if (o && i >= o.length)\n o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n }\n function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m)\n return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done)\n ar.push(r.value);\n }\n catch (error) {\n e = { error: error };\n }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"]))\n m.call(i);\n }\n finally {\n if (e)\n throw e.error;\n }\n }\n return ar;\n }\n /** @deprecated */\n function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n }\n /** @deprecated */\n function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++)\n s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n }\n function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\n }\n function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n }\n function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n])\n i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try {\n step(g[n](v));\n }\n catch (e) {\n settle(q[0][3], e);\n } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length)\n resume(q[0][0], q[0][1]); }\n }\n function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\n }\n function __asyncValues(o) {\n if (!Symbol.asyncIterator)\n throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }\n }\n function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", { value: raw });\n }\n else {\n cooked.raw = raw;\n }\n return cooked;\n }\n ;\n var __setModuleDefault = Object.create ? (function (o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n }) : function (o, v) {\n o[\"default\"] = v;\n };\n function __importStar(mod) {\n if (mod && mod.__esModule)\n return mod;\n var result = {};\n if (mod != null)\n for (var k in mod)\n if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k))\n __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n }\n function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n }\n function __classPrivateFieldGet(receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return privateMap.get(receiver);\n }\n function __classPrivateFieldSet(receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to set private field on non-instance\");\n }\n privateMap.set(receiver, value);\n return value;\n }\n\n /** Sets up the filter predicates for a datepicker input harness. */\n function getInputPredicate(type, options) {\n return new testing.HarnessPredicate(type, options)\n .addOption('value', options.value, function (harness, value) {\n return testing.HarnessPredicate.stringMatches(harness.getValue(), value);\n })\n .addOption('placeholder', options.placeholder, function (harness, placeholder) {\n return testing.HarnessPredicate.stringMatches(harness.getPlaceholder(), placeholder);\n });\n }\n /** Base class for datepicker input harnesses. */\n var MatDatepickerInputHarnessBase = /** @class */ (function (_super) {\n __extends(MatDatepickerInputHarnessBase, _super);\n function MatDatepickerInputHarnessBase() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /** Whether the input is disabled. */\n MatDatepickerInputHarnessBase.prototype.isDisabled = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).getProperty('disabled')];\n }\n });\n });\n };\n /** Whether the input is required. */\n MatDatepickerInputHarnessBase.prototype.isRequired = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).getProperty('required')];\n }\n });\n });\n };\n /** Gets the value of the input. */\n MatDatepickerInputHarnessBase.prototype.getValue = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [4 /*yield*/, (_a.sent()).getProperty('value')];\n case 2: \n // The \"value\" property of the native input is always defined.\n return [2 /*return*/, (_a.sent())];\n }\n });\n });\n };\n /**\n * Sets the value of the input. The value will be set by simulating\n * keypresses that correspond to the given value.\n */\n MatDatepickerInputHarnessBase.prototype.setValue = function (newValue) {\n return __awaiter(this, void 0, void 0, function () {\n var inputEl;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1:\n inputEl = _a.sent();\n return [4 /*yield*/, inputEl.clear()];\n case 2:\n _a.sent();\n if (!newValue) return [3 /*break*/, 4];\n return [4 /*yield*/, inputEl.sendKeys(newValue)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!inputEl.dispatchEvent) return [3 /*break*/, 6];\n return [4 /*yield*/, inputEl.dispatchEvent('change')];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n });\n };\n /** Gets the placeholder of the input. */\n MatDatepickerInputHarnessBase.prototype.getPlaceholder = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [4 /*yield*/, (_a.sent()).getProperty('placeholder')];\n case 2: return [2 /*return*/, (_a.sent())];\n }\n });\n });\n };\n /**\n * Focuses the input and returns a promise that indicates when the\n * action is complete.\n */\n MatDatepickerInputHarnessBase.prototype.focus = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).focus()];\n }\n });\n });\n };\n /**\n * Blurs the input and returns a promise that indicates when the\n * action is complete.\n */\n MatDatepickerInputHarnessBase.prototype.blur = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).blur()];\n }\n });\n });\n };\n /** Whether the input is focused. */\n MatDatepickerInputHarnessBase.prototype.isFocused = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).isFocused()];\n }\n });\n });\n };\n /** Gets the formatted minimum date for the input's value. */\n MatDatepickerInputHarnessBase.prototype.getMin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).getAttribute('min')];\n }\n });\n });\n };\n /** Gets the formatted maximum date for the input's value. */\n MatDatepickerInputHarnessBase.prototype.getMax = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).getAttribute('max')];\n }\n });\n });\n };\n return MatDatepickerInputHarnessBase;\n }(testing.ComponentHarness));\n\n /** Harness for interacting with a standard Material calendar cell in tests. */\n var MatCalendarCellHarness = /** @class */ (function (_super) {\n __extends(MatCalendarCellHarness, _super);\n function MatCalendarCellHarness() {\n var _this = _super.apply(this, __spread(arguments)) || this;\n /** Reference to the inner content element inside the cell. */\n _this._content = _this.locatorFor('.mat-calendar-body-cell-content');\n return _this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatCalendarCellHarness`\n * that meets certain criteria.\n * @param options Options for filtering which cell instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatCalendarCellHarness.with = function (options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n return new testing.HarnessPredicate(MatCalendarCellHarness, options)\n .addOption('text', options.text, function (harness, text) {\n return testing.HarnessPredicate.stringMatches(harness.getText(), text);\n })\n .addOption('selected', options.selected, function (harness, selected) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isSelected()];\n case 1: return [2 /*return*/, (_a.sent()) === selected];\n }\n });\n }); })\n .addOption('active', options.active, function (harness, active) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isActive()];\n case 1: return [2 /*return*/, (_a.sent()) === active];\n }\n });\n }); })\n .addOption('disabled', options.disabled, function (harness, disabled) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isDisabled()];\n case 1: return [2 /*return*/, (_a.sent()) === disabled];\n }\n });\n }); })\n .addOption('today', options.today, function (harness, today) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isToday()];\n case 1: return [2 /*return*/, (_a.sent()) === today];\n }\n });\n }); })\n .addOption('inRange', options.inRange, function (harness, inRange) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isInRange()];\n case 1: return [2 /*return*/, (_a.sent()) === inRange];\n }\n });\n }); })\n .addOption('inComparisonRange', options.inComparisonRange, function (harness, inComparisonRange) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isInComparisonRange()];\n case 1: return [2 /*return*/, (_a.sent()) === inComparisonRange];\n }\n });\n }); })\n .addOption('inPreviewRange', options.inPreviewRange, function (harness, inPreviewRange) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, harness.isInPreviewRange()];\n case 1: return [2 /*return*/, (_a.sent()) === inPreviewRange];\n }\n });\n }); });\n };\n /** Gets the text of the calendar cell. */\n MatCalendarCellHarness.prototype.getText = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._content()];\n case 1: return [2 /*return*/, (_a.sent()).text()];\n }\n });\n });\n };\n /** Gets the aria-label of the calendar cell. */\n MatCalendarCellHarness.prototype.getAriaLabel = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: \n // We're guaranteed for the `aria-label` to be defined\n // since this is a private element that we control.\n return [2 /*return*/, (_a.sent()).getAttribute('aria-label')];\n }\n });\n });\n };\n /** Whether the cell is selected. */\n MatCalendarCellHarness.prototype.isSelected = function () {\n return __awaiter(this, void 0, void 0, function () {\n var host;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1:\n host = _a.sent();\n return [4 /*yield*/, host.getAttribute('aria-selected')];\n case 2: return [2 /*return*/, (_a.sent()) === 'true'];\n }\n });\n });\n };\n /** Whether the cell is disabled. */\n MatCalendarCellHarness.prototype.isDisabled = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('disabled')];\n });\n });\n };\n /** Whether the cell is currently activated using keyboard navigation. */\n MatCalendarCellHarness.prototype.isActive = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('active')];\n });\n });\n };\n /** Whether the cell represents today's date. */\n MatCalendarCellHarness.prototype.isToday = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._content()];\n case 1: return [2 /*return*/, (_a.sent()).hasClass('mat-calendar-body-today')];\n }\n });\n });\n };\n /** Selects the calendar cell. Won't do anything if the cell is disabled. */\n MatCalendarCellHarness.prototype.select = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).click()];\n }\n });\n });\n };\n /** Hovers over the calendar cell. */\n MatCalendarCellHarness.prototype.hover = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).hover()];\n }\n });\n });\n };\n /** Moves the mouse away from the calendar cell. */\n MatCalendarCellHarness.prototype.mouseAway = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).mouseAway()];\n }\n });\n });\n };\n /** Focuses the calendar cell. */\n MatCalendarCellHarness.prototype.focus = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).focus()];\n }\n });\n });\n };\n /** Removes focus from the calendar cell. */\n MatCalendarCellHarness.prototype.blur = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).blur()];\n }\n });\n });\n };\n /** Whether the cell is the start of the main range. */\n MatCalendarCellHarness.prototype.isRangeStart = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('range-start')];\n });\n });\n };\n /** Whether the cell is the end of the main range. */\n MatCalendarCellHarness.prototype.isRangeEnd = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('range-end')];\n });\n });\n };\n /** Whether the cell is part of the main range. */\n MatCalendarCellHarness.prototype.isInRange = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('in-range')];\n });\n });\n };\n /** Whether the cell is the start of the comparison range. */\n MatCalendarCellHarness.prototype.isComparisonRangeStart = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('comparison-start')];\n });\n });\n };\n /** Whether the cell is the end of the comparison range. */\n MatCalendarCellHarness.prototype.isComparisonRangeEnd = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('comparison-end')];\n });\n });\n };\n /** Whether the cell is inside of the comparison range. */\n MatCalendarCellHarness.prototype.isInComparisonRange = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('in-comparison-range')];\n });\n });\n };\n /** Whether the cell is the start of the preview range. */\n MatCalendarCellHarness.prototype.isPreviewRangeStart = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('preview-start')];\n });\n });\n };\n /** Whether the cell is the end of the preview range. */\n MatCalendarCellHarness.prototype.isPreviewRangeEnd = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('preview-end')];\n });\n });\n };\n /** Whether the cell is inside of the preview range. */\n MatCalendarCellHarness.prototype.isInPreviewRange = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this._hasState('in-preview')];\n });\n });\n };\n /** Returns whether the cell has a particular CSS class-based state. */\n MatCalendarCellHarness.prototype._hasState = function (name) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).hasClass(\"mat-calendar-body-\" + name)];\n }\n });\n });\n };\n return MatCalendarCellHarness;\n }(testing.ComponentHarness));\n MatCalendarCellHarness.hostSelector = '.mat-calendar-body-cell';\n\n /** Harness for interacting with a standard Material calendar in tests. */\n var MatCalendarHarness = /** @class */ (function (_super) {\n __extends(MatCalendarHarness, _super);\n function MatCalendarHarness() {\n var _this = _super.apply(this, __spread(arguments)) || this;\n /** Queries for the calendar's period toggle button. */\n _this._periodButton = _this.locatorFor('.mat-calendar-period-button');\n return _this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatCalendarHarness`\n * that meets certain criteria.\n * @param options Options for filtering which calendar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatCalendarHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return new testing.HarnessPredicate(MatCalendarHarness, options);\n };\n /**\n * Gets a list of cells inside the calendar.\n * @param filter Optionally filters which cells are included.\n */\n MatCalendarHarness.prototype.getCells = function (filter) {\n if (filter === void 0) { filter = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.locatorForAll(MatCalendarCellHarness.with(filter))()];\n });\n });\n };\n /** Gets the current view that is being shown inside the calendar. */\n MatCalendarHarness.prototype.getCurrentView = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.locatorForOptional('mat-multi-year-view')()];\n case 1:\n if (_a.sent()) {\n return [2 /*return*/, 2 /* MULTI_YEAR */];\n }\n return [4 /*yield*/, this.locatorForOptional('mat-year-view')()];\n case 2:\n if (_a.sent()) {\n return [2 /*return*/, 1 /* YEAR */];\n }\n return [2 /*return*/, 0 /* MONTH */];\n }\n });\n });\n };\n /** Gets the label of the current calendar view. */\n MatCalendarHarness.prototype.getCurrentViewLabel = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._periodButton()];\n case 1: return [2 /*return*/, (_a.sent()).text()];\n }\n });\n });\n };\n /** Changes the calendar view by clicking on the view toggle button. */\n MatCalendarHarness.prototype.changeView = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._periodButton()];\n case 1: return [2 /*return*/, (_a.sent()).click()];\n }\n });\n });\n };\n /** Goes to the next page of the current view (e.g. next month when inside the month view). */\n MatCalendarHarness.prototype.next = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.locatorFor('.mat-calendar-next-button')()];\n case 1: return [2 /*return*/, (_a.sent()).click()];\n }\n });\n });\n };\n /**\n * Goes to the previous page of the current view\n * (e.g. previous month when inside the month view).\n */\n MatCalendarHarness.prototype.previous = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.locatorFor('.mat-calendar-previous-button')()];\n case 1: return [2 /*return*/, (_a.sent()).click()];\n }\n });\n });\n };\n /**\n * Selects a cell in the current calendar view.\n * @param filter An optional filter to apply to the cells. The first cell matching the filter\n * will be selected.\n */\n MatCalendarHarness.prototype.selectCell = function (filter) {\n if (filter === void 0) { filter = {}; }\n return __awaiter(this, void 0, void 0, function () {\n var cells;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.getCells(filter)];\n case 1:\n cells = _a.sent();\n if (!cells.length) {\n throw Error(\"Cannot find calendar cell matching filter \" + JSON.stringify(filter));\n }\n return [4 /*yield*/, cells[0].select()];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n return MatCalendarHarness;\n }(testing.ComponentHarness));\n MatCalendarHarness.hostSelector = '.mat-calendar';\n\n /** Base class for harnesses that can trigger a calendar. */\n var DatepickerTriggerHarnessBase = /** @class */ (function (_super) {\n __extends(DatepickerTriggerHarnessBase, _super);\n function DatepickerTriggerHarnessBase() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /** Opens the calendar if the trigger is enabled and it has a calendar. */\n DatepickerTriggerHarnessBase.prototype.openCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, isDisabled, hasCalendar;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testing.parallel(function () { return [_this.isDisabled(), _this.hasCalendar()]; })];\n case 1:\n _a = __read.apply(void 0, [_b.sent(), 2]), isDisabled = _a[0], hasCalendar = _a[1];\n if (!isDisabled && hasCalendar) {\n return [2 /*return*/, this._openCalendar()];\n }\n return [2 /*return*/];\n }\n });\n });\n };\n /** Closes the calendar if it is open. */\n DatepickerTriggerHarnessBase.prototype.closeCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.isCalendarOpen()];\n case 1:\n if (!_a.sent()) return [3 /*break*/, 4];\n return [4 /*yield*/, closeCalendar(getCalendarId(this.host()), this.documentRootLocatorFactory())];\n case 2:\n _a.sent();\n // This is necessary so that we wait for the closing animation to finish in touch UI mode.\n return [4 /*yield*/, this.forceStabilize()];\n case 3:\n // This is necessary so that we wait for the closing animation to finish in touch UI mode.\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /** Gets whether there is a calendar associated with the trigger. */\n DatepickerTriggerHarnessBase.prototype.hasCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, getCalendarId(this.host())];\n case 1: return [2 /*return*/, (_a.sent()) != null];\n }\n });\n });\n };\n /**\n * Gets the `MatCalendarHarness` that is associated with the trigger.\n * @param filter Optionally filters which calendar is included.\n */\n DatepickerTriggerHarnessBase.prototype.getCalendar = function (filter) {\n if (filter === void 0) { filter = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getCalendar(filter, this.host(), this.documentRootLocatorFactory())];\n });\n });\n };\n return DatepickerTriggerHarnessBase;\n }(testing.ComponentHarness));\n /** Gets the ID of the calendar that a particular test element can trigger. */\n function getCalendarId(host) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, host];\n case 1: return [2 /*return*/, (_a.sent()).getAttribute('data-mat-calendar')];\n }\n });\n });\n }\n /** Closes the calendar with a specific ID. */\n function closeCalendar(calendarId, documentLocator) {\n return __awaiter(this, void 0, void 0, function () {\n var backdropSelector, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = \".\";\n return [4 /*yield*/, calendarId];\n case 1:\n backdropSelector = _a + (_b.sent()) + \"-backdrop\";\n return [4 /*yield*/, documentLocator.locatorFor(backdropSelector)()];\n case 2: return [2 /*return*/, (_b.sent()).click()];\n }\n });\n });\n }\n /** Gets the test harness for a calendar associated with a particular host. */\n function getCalendar(filter, host, documentLocator) {\n return __awaiter(this, void 0, void 0, function () {\n var calendarId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, getCalendarId(host)];\n case 1:\n calendarId = _a.sent();\n if (!calendarId) {\n throw Error(\"Element is not associated with a calendar\");\n }\n return [2 /*return*/, documentLocator.locatorFor(MatCalendarHarness.with(Object.assign(Object.assign({}, filter), { selector: \"#\" + calendarId })))()];\n }\n });\n });\n }\n\n /** Harness for interacting with a standard Material datepicker inputs in tests. */\n var MatDatepickerInputHarness = /** @class */ (function (_super) {\n __extends(MatDatepickerInputHarness, _super);\n function MatDatepickerInputHarness() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatDatepickerInputHarness`\n * that meets certain criteria.\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatDatepickerInputHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return getInputPredicate(MatDatepickerInputHarness, options);\n };\n /** Gets whether the calendar associated with the input is open. */\n MatDatepickerInputHarness.prototype.isCalendarOpen = function () {\n return __awaiter(this, void 0, void 0, function () {\n var host;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1:\n host = _a.sent();\n return [4 /*yield*/, host.getAttribute('aria-owns')];\n case 2: return [2 /*return*/, (_a.sent()) != null];\n }\n });\n });\n };\n /** Opens the calendar associated with the input. */\n MatDatepickerInputHarness.prototype.openCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, isDisabled, hasCalendar, host;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testing.parallel(function () { return [_this.isDisabled(), _this.hasCalendar()]; })];\n case 1:\n _a = __read.apply(void 0, [_b.sent(), 2]), isDisabled = _a[0], hasCalendar = _a[1];\n if (!(!isDisabled && hasCalendar)) return [3 /*break*/, 3];\n return [4 /*yield*/, this.host()];\n case 2:\n host = _b.sent();\n return [2 /*return*/, host.sendKeys({ alt: true }, testing.TestKey.DOWN_ARROW)];\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n /** Closes the calendar associated with the input. */\n MatDatepickerInputHarness.prototype.closeCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.isCalendarOpen()];\n case 1:\n if (!_a.sent()) return [3 /*break*/, 4];\n return [4 /*yield*/, closeCalendar(getCalendarId(this.host()), this.documentRootLocatorFactory())];\n case 2:\n _a.sent();\n // This is necessary so that we wait for the closing animation to finish in touch UI mode.\n return [4 /*yield*/, this.forceStabilize()];\n case 3:\n // This is necessary so that we wait for the closing animation to finish in touch UI mode.\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n /** Whether a calendar is associated with the input. */\n MatDatepickerInputHarness.prototype.hasCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, getCalendarId(this.host())];\n case 1: return [2 /*return*/, (_a.sent()) != null];\n }\n });\n });\n };\n /**\n * Gets the `MatCalendarHarness` that is associated with the trigger.\n * @param filter Optionally filters which calendar is included.\n */\n MatDatepickerInputHarness.prototype.getCalendar = function (filter) {\n if (filter === void 0) { filter = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, getCalendar(filter, this.host(), this.documentRootLocatorFactory())];\n });\n });\n };\n return MatDatepickerInputHarness;\n }(MatDatepickerInputHarnessBase));\n MatDatepickerInputHarness.hostSelector = '.mat-datepicker-input';\n\n /** Harness for interacting with a standard Material datepicker toggle in tests. */\n var MatDatepickerToggleHarness = /** @class */ (function (_super) {\n __extends(MatDatepickerToggleHarness, _super);\n function MatDatepickerToggleHarness() {\n var _this = _super.apply(this, __spread(arguments)) || this;\n /** The clickable button inside the toggle. */\n _this._button = _this.locatorFor('button');\n return _this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatDatepickerToggleHarness` that\n * meets certain criteria.\n * @param options Options for filtering which datepicker toggle instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatDatepickerToggleHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return new testing.HarnessPredicate(MatDatepickerToggleHarness, options);\n };\n /** Gets whether the calendar associated with the toggle is open. */\n MatDatepickerToggleHarness.prototype.isCalendarOpen = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).hasClass('mat-datepicker-toggle-active')];\n }\n });\n });\n };\n /** Whether the toggle is disabled. */\n MatDatepickerToggleHarness.prototype.isDisabled = function () {\n return __awaiter(this, void 0, void 0, function () {\n var button, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, this._button()];\n case 1:\n button = _b.sent();\n _a = coercion.coerceBooleanProperty;\n return [4 /*yield*/, button.getAttribute('disabled')];\n case 2: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];\n }\n });\n });\n };\n MatDatepickerToggleHarness.prototype._openCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._button()];\n case 1: return [2 /*return*/, (_a.sent()).click()];\n }\n });\n });\n };\n return MatDatepickerToggleHarness;\n }(DatepickerTriggerHarnessBase));\n MatDatepickerToggleHarness.hostSelector = '.mat-datepicker-toggle';\n\n /** Harness for interacting with a standard Material date range start input in tests. */\n var MatStartDateHarness = /** @class */ (function (_super) {\n __extends(MatStartDateHarness, _super);\n function MatStartDateHarness() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatStartDateHarness`\n * that meets certain criteria.\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatStartDateHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return getInputPredicate(MatStartDateHarness, options);\n };\n return MatStartDateHarness;\n }(MatDatepickerInputHarnessBase));\n MatStartDateHarness.hostSelector = '.mat-start-date';\n /** Harness for interacting with a standard Material date range end input in tests. */\n var MatEndDateHarness = /** @class */ (function (_super) {\n __extends(MatEndDateHarness, _super);\n function MatEndDateHarness() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatEndDateHarness`\n * that meets certain criteria.\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatEndDateHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return getInputPredicate(MatEndDateHarness, options);\n };\n return MatEndDateHarness;\n }(MatDatepickerInputHarnessBase));\n MatEndDateHarness.hostSelector = '.mat-end-date';\n /** Harness for interacting with a standard Material date range input in tests. */\n var MatDateRangeInputHarness = /** @class */ (function (_super) {\n __extends(MatDateRangeInputHarness, _super);\n function MatDateRangeInputHarness() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatDateRangeInputHarness`\n * that meets certain criteria.\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n MatDateRangeInputHarness.with = function (options) {\n if (options === void 0) { options = {}; }\n return new testing.HarnessPredicate(MatDateRangeInputHarness, options)\n .addOption('value', options.value, function (harness, value) { return testing.HarnessPredicate.stringMatches(harness.getValue(), value); });\n };\n /** Gets the combined value of the start and end inputs, including the separator. */\n MatDateRangeInputHarness.prototype.getValue = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, start, end, separator;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testing.parallel(function () { return [\n _this.getStartInput().then(function (input) { return input.getValue(); }),\n _this.getEndInput().then(function (input) { return input.getValue(); }),\n _this.getSeparator()\n ]; })];\n case 1:\n _a = __read.apply(void 0, [_b.sent(), 3]), start = _a[0], end = _a[1], separator = _a[2];\n return [2 /*return*/, start + (\"\" + (end ? \" \" + separator + \" \" + end : ''))];\n }\n });\n });\n };\n /** Gets the inner start date input inside the range input. */\n MatDateRangeInputHarness.prototype.getStartInput = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n // Don't pass in filters here since the start input is required and there can only be one.\n return [2 /*return*/, this.locatorFor(MatStartDateHarness)()];\n });\n });\n };\n /** Gets the inner start date input inside the range input. */\n MatDateRangeInputHarness.prototype.getEndInput = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n // Don't pass in filters here since the end input is required and there can only be one.\n return [2 /*return*/, this.locatorFor(MatEndDateHarness)()];\n });\n });\n };\n /** Gets the separator text between the values of the two inputs. */\n MatDateRangeInputHarness.prototype.getSeparator = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.locatorFor('.mat-date-range-input-separator')()];\n case 1: return [2 /*return*/, (_a.sent()).text()];\n }\n });\n });\n };\n /** Gets whether the range input is disabled. */\n MatDateRangeInputHarness.prototype.isDisabled = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a, startDisabled, endDisabled;\n var _this = this;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testing.parallel(function () { return [\n _this.getStartInput().then(function (input) { return input.isDisabled(); }),\n _this.getEndInput().then(function (input) { return input.isDisabled(); })\n ]; })];\n case 1:\n _a = __read.apply(void 0, [_b.sent(), 2]), startDisabled = _a[0], endDisabled = _a[1];\n return [2 /*return*/, startDisabled && endDisabled];\n }\n });\n });\n };\n /** Gets whether the range input is required. */\n MatDateRangeInputHarness.prototype.isRequired = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.host()];\n case 1: return [2 /*return*/, (_a.sent()).hasClass('mat-date-range-input-required')];\n }\n });\n });\n };\n /** Opens the calendar associated with the input. */\n MatDateRangeInputHarness.prototype.isCalendarOpen = function () {\n return __awaiter(this, void 0, void 0, function () {\n var startHost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.getStartInput()];\n case 1: return [4 /*yield*/, (_a.sent()).host()];\n case 2:\n startHost = _a.sent();\n return [4 /*yield*/, startHost.getAttribute('aria-owns')];\n case 3: return [2 /*return*/, (_a.sent()) != null];\n }\n });\n });\n };\n MatDateRangeInputHarness.prototype._openCalendar = function () {\n return __awaiter(this, void 0, void 0, function () {\n var startHost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.getStartInput()];\n case 1: return [4 /*yield*/, (_a.sent()).host()];\n case 2:\n startHost = _a.sent();\n return [2 /*return*/, startHost.sendKeys({ alt: true }, testing.TestKey.DOWN_ARROW)];\n }\n });\n });\n };\n return MatDateRangeInputHarness;\n }(DatepickerTriggerHarnessBase));\n MatDateRangeInputHarness.hostSelector = '.mat-date-range-input';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n exports.MatCalendarCellHarness = MatCalendarCellHarness;\n exports.MatCalendarHarness = MatCalendarHarness;\n exports.MatDateRangeInputHarness = MatDateRangeInputHarness;\n exports.MatDatepickerInputHarness = MatDatepickerInputHarness;\n exports.MatDatepickerToggleHarness = MatDatepickerToggleHarness;\n exports.MatEndDateHarness = MatEndDateHarness;\n exports.MatStartDateHarness = MatStartDateHarness;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-datepicker-testing.umd.js.map\n"]}