@skyux/datetime 12.0.0-alpha.1 → 12.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,8 +130,7 @@ class SkyDatepickerCalendarHarness extends SkyComponentHarness {
130
130
  return new HarnessPredicate(SkyDatepickerCalendarHarness, filters);
131
131
  }
132
132
  /**
133
- * Clicks the specified date, month or year.
134
- * @params the specified value to click, in the following format
133
+ * Clicks the specified date, month or year in the following format
135
134
  * day format: dddd, MMMM Do YYYY
136
135
  * month format: MMMM YYYY
137
136
  * year format: YYYY
@@ -187,7 +186,7 @@ class SkyDatepickerCalendarHarness extends SkyComponentHarness {
187
186
  return (await (await this.#getTitle()).text()).trim();
188
187
  }
189
188
  /**
190
- * Gets the value of the currently selected calendar item.
189
+ * Gets the long date value of the currently selected calendar item.
191
190
  */
192
191
  async getSelectedValue() {
193
192
  return await (await this.#getSelected()).getAttribute('aria-label');
@@ -500,5 +499,5 @@ class SkyDateRangePickerHarness extends SkyComponentHarness {
500
499
  * Generated bundle index. Do not edit.
501
500
  */
502
501
 
503
- export { SkyDateRangePickerHarness, SkyDatepickerCalendarHarness, SkyDatepickerFixture, SkyDatepickerHarness, SkyTimepickerFixture };
502
+ export { SkyDateRangePickerHarness, SkyDatepickerCalendarHarness, SkyDatepickerFixture, SkyDatepickerHarness, SkyDatepickerInputHarness, SkyFuzzyDatepickerInputHarness, SkyTimepickerFixture };
504
503
  //# sourceMappingURL=skyux-datetime-testing.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"skyux-datetime-testing.mjs","sources":["../../../../../libs/components/datetime/testing/src/legacy/datepicker-fixture.ts","../../../../../libs/components/datetime/testing/src/legacy/timepicker-fixture.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-calendar-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-input-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/fuzzy-datepicker-input-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-harness.ts","../../../../../libs/components/datetime/testing/src/modules/date-range-picker/date-range-picker-harness.ts","../../../../../libs/components/datetime/testing/src/skyux-datetime-testing.ts"],"sourcesContent":["import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX datepicker component.\n * @deprecated Use `SkyDatepickerHarness` instead.\n * @internal\n */\nexport class SkyDatepickerFixture {\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-datepicker',\n );\n }\n\n /**\n * The datepicker's currently selected date.\n */\n public get date(): string {\n return this.#getDatepickerInputEl().nativeElement.value;\n }\n\n /**\n * Flag indicating if datepicker input is disabled.\n */\n public get disabled(): boolean {\n return this.#getDatepickerInputEl().nativeElement.disabled;\n }\n\n /**\n * The datepicker's calendar element.\n */\n public get calendarEl(): any {\n const button = this.#debugEl.query(\n By.css('.sky-datepicker .sky-input-group-datepicker-btn'),\n ).nativeElement;\n\n const calendarId = button.getAttribute('aria-controls');\n if (!calendarId) {\n return null;\n }\n\n return document.getElementById(calendarId);\n }\n\n /**\n * Click the calendar button to open or close calendar.\n */\n public clickDatepickerCalenderButtonEl(): void {\n this.#debugEl\n .query(By.css('.sky-datepicker .sky-input-group-datepicker-btn'))\n .nativeElement.click();\n }\n\n public clickDayEl(dayIndex: number): void {\n const dayEls = this.calendarEl.querySelectorAll('.sky-datepicker-btn-date');\n\n const dayEl = dayEls[dayIndex];\n\n if (!dayEl) {\n throw new Error(`No day exists at index ${dayIndex}.`);\n }\n\n dayEl.click();\n }\n\n #getDatepickerInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-datepicker input'));\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX timepicker component.\n * @internal\n */\nexport class SkyTimepickerFixture {\n #debugEl: DebugElement;\n #fixture: ComponentFixture<any>;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-timepicker',\n );\n }\n\n /**\n * The timepicker's currently selected time.\n */\n public get value(): string {\n return this.#getTimepickerInputEl().nativeElement.value;\n }\n\n /**\n * Set the timepicker's selected time.\n */\n public set value(value: string) {\n const timepickerInputEl = this.#getTimepickerInputEl().nativeElement;\n timepickerInputEl.value = value;\n this.#fixture.detectChanges();\n\n SkyAppTestUtility.fireDomEvent(timepickerInputEl, 'change');\n this.#fixture.detectChanges();\n }\n\n /**\n * Flag indicating if timepicker input is disabled.\n */\n public get isDisabled(): boolean {\n return this.#getTimepickerInputEl().nativeElement.disabled;\n }\n\n /**\n * Set the timepicker's disabled value\n */\n public set isDisabled(value: boolean) {\n this.#getTimepickerInputEl().nativeElement.disabled = value;\n }\n\n /**\n * Flag indicating if timepicker input is valid.\n */\n public get isValid(): boolean {\n return !this.#getTimepickerInputEl().nativeElement.classList.contains(\n 'ng-invalid',\n );\n }\n\n #getTimepickerInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-timepicker input'));\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyDatepickerCalendarHarnessFilters } from './datepicker-calendar-harness.filters';\n\n/**\n * Harness for interacting with datepicker calendar in tests.\n */\nexport class SkyDatepickerCalendarHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = '.sky-datepicker-calendar-container';\n\n #getDaypicker = this.locatorForOptional('sky-daypicker');\n #getMonthpicker = this.locatorForOptional('sky-monthpicker');\n #getNextButton = this.locatorFor('.sky-datepicker-btn-next');\n #getPreviousButton = this.locatorFor('.sky-datepicker-btn-previous');\n #getSelected = this.locatorFor('.sky-datepicker-btn-selected');\n #getTitle = this.locatorFor('.sky-datepicker-calendar-title');\n #getTitleButton = this.locatorFor('.sky-datepicker-calendar-title');\n\n /**\n * @internal\n */\n public static with(\n filters: SkyDatepickerCalendarHarnessFilters,\n ): HarnessPredicate<SkyDatepickerCalendarHarness> {\n return new HarnessPredicate(SkyDatepickerCalendarHarness, filters);\n }\n\n /**\n * Clicks the specified date, month or year.\n * @params the specified value to click, in the following format\n * day format: dddd, MMMM Do YYYY\n * month format: MMMM YYYY\n * year format: YYYY\n */\n public async clickDate(date: string): Promise<void> {\n try {\n await (await this.locatorFor(`[aria-label=\"${date}\"]`)()).click();\n } catch {\n throw new Error(\n `Unable to find date with label \"${date}\". Check that the format is correct and matches the current calendar mode.`,\n );\n }\n }\n\n /**\n * Clicks the 'next' button on the calendar header.\n */\n public async clickNextButton(): Promise<void> {\n await (await this.#getNextButton()).click();\n }\n\n /**\n * Clicks the 'previous' button on the calendar header.\n */\n public async clickPreviousButton(): Promise<void> {\n await (await this.#getPreviousButton()).click();\n }\n\n /**\n * Clicks the 'title' button on the calendar header.\n */\n public async clickTitleButton(): Promise<void> {\n const button = await this.#getTitleButton();\n\n if (await button.hasClass('sky-btn-disabled')) {\n throw new Error('Title button is disabled.');\n }\n\n await button.click();\n }\n\n /**\n * Gets the current calendar mode.\n */\n public async getCalendarMode(): Promise<string> {\n if (await this.#getDaypicker()) {\n return 'day';\n } else if (await this.#getMonthpicker()) {\n return 'month';\n } else {\n return 'year';\n }\n }\n\n /**\n * Gets the current title.\n */\n public async getCalendarTitle(): Promise<string> {\n return (await (await this.#getTitle()).text()).trim();\n }\n\n /**\n * Gets the value of the currently selected calendar item.\n */\n public async getSelectedValue(): Promise<string | null> {\n return await (await this.#getSelected()).getAttribute('aria-label');\n }\n}\n","import { SkyInputHarness } from '@skyux/core/testing';\n\n/**\n * Harness to interact with the datepicker input harness.\n */\nexport class SkyDatepickerInputHarness extends SkyInputHarness {\n /**\n * @internal\n */\n public static hostSelector = '[skyDatepickerInput]';\n\n /**\n * Blurs the input.\n */\n public override async blur(): Promise<void> {\n await super.blur();\n\n const host = await this.host();\n\n await host.dispatchEvent('focusout', {\n relatedTarget: null,\n });\n }\n\n /**\n * Sets the value of the input.\n */\n public override async setValue(value: string): Promise<void> {\n await super.setValue(value);\n\n await this.blur();\n await (await this.host()).dispatchEvent('change');\n }\n}\n","import { SkyInputHarness } from '@skyux/core/testing';\n\n/**\n * Harness to interact with the fuzzy datepicker input harness.\n */\nexport class SkyFuzzyDatepickerInputHarness extends SkyInputHarness {\n /**\n * @internal\n */\n public static hostSelector = '[skyFuzzyDatepickerInput]';\n\n /**\n * Blurs the input.\n */\n public override async blur(): Promise<void> {\n await super.blur();\n\n const host = await this.host();\n\n await host.dispatchEvent('focusout', {\n relatedTarget: null,\n });\n }\n\n /**\n * Sets the value of the input.\n */\n public override async setValue(value: string): Promise<void> {\n await super.setValue(value);\n\n await (await this.host()).dispatchEvent('change');\n await this.blur();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyDatepickerCalendarHarness } from './datepicker-calendar-harness';\nimport { SkyDatepickerFilters } from './datepicker-harness.filters';\nimport { SkyDatepickerInputHarness } from './datepicker-input-harness';\nimport { SkyFuzzyDatepickerInputHarness } from './fuzzy-datepicker-input-harness';\n\n/**\n * Harness for interacting with datepicker components in tests.\n */\nexport class SkyDatepickerHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-datepicker, .sky-input-group';\n\n #documentRootLocator = this.documentRootLocatorFactory();\n\n #getCalendarButton = this.locatorFor('.sky-input-group-datepicker-btn');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyDatepickerHarness` that meets certain criteria.\n *\n * These filters only work for standalone datepickers. For datepickers\n * wrapped inside `sky-input-box`, place filters on the input box instead and\n * query the datepicker using a `SkyInputBoxHarness`.\n * For the input box implementation, see the code example.\n */\n public static with(\n filters: SkyDatepickerFilters,\n ): HarnessPredicate<SkyDatepickerHarness> {\n return SkyDatepickerHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the calendar button.\n */\n public async clickCalendarButton(): Promise<void> {\n return await (await this.#getCalendarButton()).click();\n }\n\n /**\n * Gets the `SkyDatepickerCalendarHarness` for the calendar picker controlled by\n * the datepicker. Throws an error if the calendar picker is not open.\n */\n public async getDatepickerCalendar(): Promise<SkyDatepickerCalendarHarness> {\n const calendarId = await this.#getAriaControls();\n\n if (!calendarId) {\n throw new Error(\n 'Unable to get calendar picker because picker is closed.',\n );\n }\n\n return await this.#documentRootLocator.locatorFor(\n SkyDatepickerCalendarHarness.with({ selector: `#${calendarId}` }),\n )();\n }\n\n /**\n * Gets the datepicker input harness.\n */\n public async getControl(): Promise<\n SkyDatepickerInputHarness | SkyFuzzyDatepickerInputHarness\n > {\n return await this.locatorFor(\n SkyDatepickerInputHarness,\n SkyFuzzyDatepickerInputHarness,\n )();\n }\n\n /**\n * Whether the datepicker calendar picker is open.\n */\n public async isDatepickerOpen(): Promise<boolean> {\n return (\n (await (\n await this.#getCalendarButton()\n ).getAttribute('aria-expanded')) === 'true'\n );\n }\n\n async #getAriaControls(): Promise<string | null> {\n return await (\n await this.#getCalendarButton()\n ).getAttribute('aria-controls');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\nimport { SkyDateRangeCalculatorId } from '@skyux/datetime';\nimport { SkyInputBoxHarness } from '@skyux/forms/testing';\n\nimport { SkyDatepickerHarness } from '../datepicker/datepicker-harness';\n\nimport { SkyDateRangePickerFilters } from './date-range-picker-harness.filters';\n\n/**\n * Harness for interacting with date range picker components in tests.\n */\nexport class SkyDateRangePickerHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-date-range-picker';\n\n #getStartDateInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-start-date',\n }),\n );\n #getEndDateInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-end-date',\n }),\n );\n #getCalculatorIdInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-select-calculator',\n }),\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyDateRangePickerHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyDateRangePickerFilters,\n ): HarnessPredicate<SkyDateRangePickerHarness> {\n return SkyDateRangePickerHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n await (await this.#getCalculatorIdInputBoxHarness()).clickHelpInline();\n }\n\n /**\n * Gets the end date value.\n */\n public async getEndDateValue(): Promise<string> {\n await this.#assertEndDateVisible('Unable to get end date.');\n\n const input = await (await this.#getEndDatepicker()).getControl();\n\n return await input.getValue();\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<string | undefined> {\n return (await (\n await this.#getCalculatorIdInputBoxHarness()\n ).getHelpPopoverContent()) as string | undefined;\n }\n\n /**\n * Gets the help inline popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).getHelpPopoverTitle();\n }\n\n /**\n * Gets the hint text.\n */\n public async getHintText(): Promise<string> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getHintText();\n }\n\n /**\n * Gets the label text.\n */\n public async getLabelText(): Promise<string> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getLabelText();\n }\n\n /**\n * Gets the selected calculator ID.\n */\n public async getSelectedCalculator(): Promise<SkyDateRangeCalculatorId> {\n const calculatorIdHarness = await this.#getCalculatorIdInputBoxHarness();\n const selectEl = await calculatorIdHarness.querySelector('select');\n const value = await selectEl?.getProperty('value');\n\n /* istanbul ignore next: safety check */\n if (value === undefined || value === '') {\n throw new Error('No calculator selected.');\n }\n\n return +value as SkyDateRangeCalculatorId;\n }\n\n /**\n * Gets the start date value.\n */\n public async getStartDateValue(): Promise<string> {\n await this.#assertStartDateVisible('Unable to get start date.');\n\n const input = await (await this.#getStartDatepicker()).getControl();\n\n return await input.getValue();\n }\n\n /**\n * Whether date range picker end date before start date error is thrown.\n */\n public async hasEndDateBeforeStartDateError(): Promise<boolean> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).hasCustomFormError('endDateBeforeStartDate');\n }\n\n /**\n * Whether end date input has required error.\n */\n public async hasEndDateRequiredError(): Promise<boolean> {\n return await (await this.#getEndDateInputBoxHarness()).hasRequiredError();\n }\n\n /**\n * Whether a custom error has fired.\n * @params errorName `errorName` property of the custom `sky-form-error`.\n */\n public async hasError(errorName: string): Promise<boolean> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).hasCustomFormError(errorName);\n }\n\n /**\n * Whether start date input has required error.\n */\n public async hasStartDateRequiredError(): Promise<boolean> {\n return await (await this.#getStartDateInputBoxHarness()).hasRequiredError();\n }\n\n /**\n * Whether the date range picker component is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getDisabled();\n }\n\n /**\n * Whether end date datepicker is visible.\n */\n public async isEndDateVisible(): Promise<boolean> {\n const hidden = await (\n await this.locatorFor('.sky-date-range-picker-end-date')()\n ).getProperty<boolean>('hidden');\n\n return !hidden;\n }\n\n /**\n * Whether the date range picker has stacked enabled.\n */\n public async isStacked(): Promise<boolean> {\n return await (await this.host()).hasClass('sky-form-field-stacked');\n }\n\n /**\n * Whether start date datepicker is visible.\n */\n public async isStartDateVisible(): Promise<boolean> {\n const hidden = await (\n await this.locatorFor('.sky-date-range-picker-start-date')()\n ).getProperty<boolean>('hidden');\n\n return !hidden;\n }\n\n /**\n * Selects the specified calculator.\n */\n public async selectCalculator(\n calculatorId: SkyDateRangeCalculatorId,\n ): Promise<void> {\n const select = await this.locatorFor(\n 'select[FormControlName=\"calculatorId\"]',\n )();\n\n const options = await select.getProperty('options');\n\n let optionIndex: number | undefined;\n\n // Find the index of the option with the specified value.\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n\n if (`${option.value}` === `${calculatorId}`) {\n optionIndex = i;\n break;\n }\n }\n\n if (optionIndex === undefined) {\n throw new Error(`Could not find calculator with ID ${calculatorId}.`);\n }\n\n await select.selectOptions(optionIndex);\n }\n\n /**\n * Sets the end date.\n * @param newDate date input as a formatted string.\n */\n public async setEndDateValue(newDate: string): Promise<void> {\n await this.#assertEndDateVisible('Unable to set end date.');\n\n const input = await (await this.#getEndDatepicker()).getControl();\n\n await input.setValue(newDate);\n }\n\n /**\n * Sets the start date.\n * @param newDate date input as a formatted string.\n */\n public async setStartDateValue(newDate: string): Promise<void> {\n await this.#assertStartDateVisible('Unable to set start date.');\n\n const input = await (await this.#getStartDatepicker()).getControl();\n\n await input.setValue(newDate);\n }\n\n async #assertEndDateVisible(message: string): Promise<void> {\n if (!(await this.isEndDateVisible())) {\n throw new Error(`${message} End datepicker is not visible.`);\n }\n }\n\n async #assertStartDateVisible(message: string): Promise<void> {\n if (!(await this.isStartDateVisible())) {\n throw new Error(`${message} Start datepicker is not visible.`);\n }\n }\n\n async #getEndDatepicker(): Promise<SkyDatepickerHarness> {\n return await (\n await this.#getEndDateInputBoxHarness()\n ).queryHarness(SkyDatepickerHarness);\n }\n\n async #getStartDatepicker(): Promise<SkyDatepickerHarness> {\n return await (\n await this.#getStartDateInputBoxHarness()\n ).queryHarness(SkyDatepickerHarness);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;;AAIG;MACU,oBAAoB,CAAA;AAC/B,IAAA,QAAQ;IAER,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;AAC3D,QAA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AA,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;;AAG/B;;;AAGG;IACI,MAAM,iBAAiB,CAAC,OAAe,EAAA;AAC5C,QAAA,MAAM,IAAI,CAAC,uBAAuB,CAAC,2BAA2B,CAAC;AAE/D,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,mBAAmB,EAAE,EAAE,UAAU,EAAE;AAEnE,QAAA,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;;IAG/B,MAAM,qBAAqB,CAAC,OAAe,EAAA;QACzC,IAAI,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC,EAAE;AACpC,YAAA,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,CAAA,+BAAA,CAAiC,CAAC;;;IAIhE,MAAM,uBAAuB,CAAC,OAAe,EAAA;QAC3C,IAAI,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC,EAAE;AACtC,YAAA,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,CAAA,iCAAA,CAAmC,CAAC;;;AAIlE,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,OAAO,MAAM,CACX,MAAM,IAAI,CAAC,0BAA0B,EAAE,EACvC,YAAY,CAAC,oBAAoB,CAAC;;AAGtC,IAAA,MAAM,mBAAmB,GAAA;AACvB,QAAA,OAAO,MAAM,CACX,MAAM,IAAI,CAAC,4BAA4B,EAAE,EACzC,YAAY,CAAC,oBAAoB,CAAC;;;;AC1QxC;;AAEG;;;;"}
1
+ {"version":3,"file":"skyux-datetime-testing.mjs","sources":["../../../../../libs/components/datetime/testing/src/legacy/datepicker-fixture.ts","../../../../../libs/components/datetime/testing/src/legacy/timepicker-fixture.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-calendar-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-input-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/fuzzy-datepicker-input-harness.ts","../../../../../libs/components/datetime/testing/src/modules/datepicker/datepicker-harness.ts","../../../../../libs/components/datetime/testing/src/modules/date-range-picker/date-range-picker-harness.ts","../../../../../libs/components/datetime/testing/src/skyux-datetime-testing.ts"],"sourcesContent":["import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX datepicker component.\n * @deprecated Use `SkyDatepickerHarness` instead.\n * @internal\n */\nexport class SkyDatepickerFixture {\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-datepicker',\n );\n }\n\n /**\n * The datepicker's currently selected date.\n */\n public get date(): string {\n return this.#getDatepickerInputEl().nativeElement.value;\n }\n\n /**\n * Flag indicating if datepicker input is disabled.\n */\n public get disabled(): boolean {\n return this.#getDatepickerInputEl().nativeElement.disabled;\n }\n\n /**\n * The datepicker's calendar element.\n */\n public get calendarEl(): any {\n const button = this.#debugEl.query(\n By.css('.sky-datepicker .sky-input-group-datepicker-btn'),\n ).nativeElement;\n\n const calendarId = button.getAttribute('aria-controls');\n if (!calendarId) {\n return null;\n }\n\n return document.getElementById(calendarId);\n }\n\n /**\n * Click the calendar button to open or close calendar.\n */\n public clickDatepickerCalenderButtonEl(): void {\n this.#debugEl\n .query(By.css('.sky-datepicker .sky-input-group-datepicker-btn'))\n .nativeElement.click();\n }\n\n public clickDayEl(dayIndex: number): void {\n const dayEls = this.calendarEl.querySelectorAll('.sky-datepicker-btn-date');\n\n const dayEl = dayEls[dayIndex];\n\n if (!dayEl) {\n throw new Error(`No day exists at index ${dayIndex}.`);\n }\n\n dayEl.click();\n }\n\n #getDatepickerInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-datepicker input'));\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX timepicker component.\n * @internal\n */\nexport class SkyTimepickerFixture {\n #debugEl: DebugElement;\n #fixture: ComponentFixture<any>;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-timepicker',\n );\n }\n\n /**\n * The timepicker's currently selected time.\n */\n public get value(): string {\n return this.#getTimepickerInputEl().nativeElement.value;\n }\n\n /**\n * Set the timepicker's selected time.\n */\n public set value(value: string) {\n const timepickerInputEl = this.#getTimepickerInputEl().nativeElement;\n timepickerInputEl.value = value;\n this.#fixture.detectChanges();\n\n SkyAppTestUtility.fireDomEvent(timepickerInputEl, 'change');\n this.#fixture.detectChanges();\n }\n\n /**\n * Flag indicating if timepicker input is disabled.\n */\n public get isDisabled(): boolean {\n return this.#getTimepickerInputEl().nativeElement.disabled;\n }\n\n /**\n * Set the timepicker's disabled value\n */\n public set isDisabled(value: boolean) {\n this.#getTimepickerInputEl().nativeElement.disabled = value;\n }\n\n /**\n * Flag indicating if timepicker input is valid.\n */\n public get isValid(): boolean {\n return !this.#getTimepickerInputEl().nativeElement.classList.contains(\n 'ng-invalid',\n );\n }\n\n #getTimepickerInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-timepicker input'));\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyDatepickerCalendarHarnessFilters } from './datepicker-calendar-harness.filters';\n\n/**\n * Harness for interacting with datepicker calendar in tests.\n */\nexport class SkyDatepickerCalendarHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = '.sky-datepicker-calendar-container';\n\n #getDaypicker = this.locatorForOptional('sky-daypicker');\n #getMonthpicker = this.locatorForOptional('sky-monthpicker');\n #getNextButton = this.locatorFor('.sky-datepicker-btn-next');\n #getPreviousButton = this.locatorFor('.sky-datepicker-btn-previous');\n #getSelected = this.locatorFor('.sky-datepicker-btn-selected');\n #getTitle = this.locatorFor('.sky-datepicker-calendar-title');\n #getTitleButton = this.locatorFor('.sky-datepicker-calendar-title');\n\n /**\n * @internal\n */\n public static with(\n filters: SkyDatepickerCalendarHarnessFilters,\n ): HarnessPredicate<SkyDatepickerCalendarHarness> {\n return new HarnessPredicate(SkyDatepickerCalendarHarness, filters);\n }\n\n /**\n * Clicks the specified date, month or year in the following format\n * day format: dddd, MMMM Do YYYY\n * month format: MMMM YYYY\n * year format: YYYY\n */\n public async clickDate(date: string): Promise<void> {\n try {\n await (await this.locatorFor(`[aria-label=\"${date}\"]`)()).click();\n } catch {\n throw new Error(\n `Unable to find date with label \"${date}\". Check that the format is correct and matches the current calendar mode.`,\n );\n }\n }\n\n /**\n * Clicks the 'next' button on the calendar header.\n */\n public async clickNextButton(): Promise<void> {\n await (await this.#getNextButton()).click();\n }\n\n /**\n * Clicks the 'previous' button on the calendar header.\n */\n public async clickPreviousButton(): Promise<void> {\n await (await this.#getPreviousButton()).click();\n }\n\n /**\n * Clicks the 'title' button on the calendar header.\n */\n public async clickTitleButton(): Promise<void> {\n const button = await this.#getTitleButton();\n\n if (await button.hasClass('sky-btn-disabled')) {\n throw new Error('Title button is disabled.');\n }\n\n await button.click();\n }\n\n /**\n * Gets the current calendar mode.\n */\n public async getCalendarMode(): Promise<string> {\n if (await this.#getDaypicker()) {\n return 'day';\n } else if (await this.#getMonthpicker()) {\n return 'month';\n } else {\n return 'year';\n }\n }\n\n /**\n * Gets the current title.\n */\n public async getCalendarTitle(): Promise<string> {\n return (await (await this.#getTitle()).text()).trim();\n }\n\n /**\n * Gets the long date value of the currently selected calendar item.\n */\n public async getSelectedValue(): Promise<string | null> {\n return await (await this.#getSelected()).getAttribute('aria-label');\n }\n}\n","import { SkyInputHarness } from '@skyux/core/testing';\n\n/**\n * Harness to interact with the datepicker input harness.\n */\nexport class SkyDatepickerInputHarness extends SkyInputHarness {\n /**\n * @internal\n */\n public static hostSelector = '[skyDatepickerInput]';\n\n /**\n * Blurs the input.\n */\n public override async blur(): Promise<void> {\n await super.blur();\n\n const host = await this.host();\n\n await host.dispatchEvent('focusout', {\n relatedTarget: null,\n });\n }\n\n /**\n * Sets the value of the input.\n */\n public override async setValue(value: string): Promise<void> {\n await super.setValue(value);\n\n await this.blur();\n await (await this.host()).dispatchEvent('change');\n }\n}\n","import { SkyInputHarness } from '@skyux/core/testing';\n\n/**\n * Harness to interact with the fuzzy datepicker input harness.\n */\nexport class SkyFuzzyDatepickerInputHarness extends SkyInputHarness {\n /**\n * @internal\n */\n public static hostSelector = '[skyFuzzyDatepickerInput]';\n\n /**\n * Blurs the input.\n */\n public override async blur(): Promise<void> {\n await super.blur();\n\n const host = await this.host();\n\n await host.dispatchEvent('focusout', {\n relatedTarget: null,\n });\n }\n\n /**\n * Sets the value of the input.\n */\n public override async setValue(value: string): Promise<void> {\n await super.setValue(value);\n\n await (await this.host()).dispatchEvent('change');\n await this.blur();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyDatepickerCalendarHarness } from './datepicker-calendar-harness';\nimport { SkyDatepickerFilters } from './datepicker-harness.filters';\nimport { SkyDatepickerInputHarness } from './datepicker-input-harness';\nimport { SkyFuzzyDatepickerInputHarness } from './fuzzy-datepicker-input-harness';\n\n/**\n * Harness for interacting with datepicker components in tests.\n */\nexport class SkyDatepickerHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-datepicker, .sky-input-group';\n\n #documentRootLocator = this.documentRootLocatorFactory();\n\n #getCalendarButton = this.locatorFor('.sky-input-group-datepicker-btn');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyDatepickerHarness` that meets certain criteria.\n *\n * These filters only work for standalone datepickers. For datepickers\n * wrapped inside `sky-input-box`, place filters on the input box instead and\n * query the datepicker using a `SkyInputBoxHarness`.\n * For the input box implementation, see the code example.\n */\n public static with(\n filters: SkyDatepickerFilters,\n ): HarnessPredicate<SkyDatepickerHarness> {\n return SkyDatepickerHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the calendar button.\n */\n public async clickCalendarButton(): Promise<void> {\n return await (await this.#getCalendarButton()).click();\n }\n\n /**\n * Gets the `SkyDatepickerCalendarHarness` for the calendar picker controlled by\n * the datepicker. Throws an error if the calendar picker is not open.\n */\n public async getDatepickerCalendar(): Promise<SkyDatepickerCalendarHarness> {\n const calendarId = await this.#getAriaControls();\n\n if (!calendarId) {\n throw new Error(\n 'Unable to get calendar picker because picker is closed.',\n );\n }\n\n return await this.#documentRootLocator.locatorFor(\n SkyDatepickerCalendarHarness.with({ selector: `#${calendarId}` }),\n )();\n }\n\n /**\n * Gets the datepicker input harness.\n */\n public async getControl(): Promise<\n SkyDatepickerInputHarness | SkyFuzzyDatepickerInputHarness\n > {\n return await this.locatorFor(\n SkyDatepickerInputHarness,\n SkyFuzzyDatepickerInputHarness,\n )();\n }\n\n /**\n * Whether the datepicker calendar picker is open.\n */\n public async isDatepickerOpen(): Promise<boolean> {\n return (\n (await (\n await this.#getCalendarButton()\n ).getAttribute('aria-expanded')) === 'true'\n );\n }\n\n async #getAriaControls(): Promise<string | null> {\n return await (\n await this.#getCalendarButton()\n ).getAttribute('aria-controls');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\nimport { SkyDateRangeCalculatorId } from '@skyux/datetime';\nimport { SkyInputBoxHarness } from '@skyux/forms/testing';\n\nimport { SkyDatepickerHarness } from '../datepicker/datepicker-harness';\n\nimport { SkyDateRangePickerFilters } from './date-range-picker-harness.filters';\n\n/**\n * Harness for interacting with date range picker components in tests.\n */\nexport class SkyDateRangePickerHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-date-range-picker';\n\n #getStartDateInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-start-date',\n }),\n );\n #getEndDateInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-end-date',\n }),\n );\n #getCalculatorIdInputBoxHarness = this.locatorFor(\n SkyInputBoxHarness.with({\n ancestor: '.sky-date-range-picker-select-calculator',\n }),\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyDateRangePickerHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyDateRangePickerFilters,\n ): HarnessPredicate<SkyDateRangePickerHarness> {\n return SkyDateRangePickerHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n await (await this.#getCalculatorIdInputBoxHarness()).clickHelpInline();\n }\n\n /**\n * Gets the end date value.\n */\n public async getEndDateValue(): Promise<string> {\n await this.#assertEndDateVisible('Unable to get end date.');\n\n const input = await (await this.#getEndDatepicker()).getControl();\n\n return await input.getValue();\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<string | undefined> {\n return (await (\n await this.#getCalculatorIdInputBoxHarness()\n ).getHelpPopoverContent()) as string | undefined;\n }\n\n /**\n * Gets the help inline popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).getHelpPopoverTitle();\n }\n\n /**\n * Gets the hint text.\n */\n public async getHintText(): Promise<string> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getHintText();\n }\n\n /**\n * Gets the label text.\n */\n public async getLabelText(): Promise<string> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getLabelText();\n }\n\n /**\n * Gets the selected calculator ID.\n */\n public async getSelectedCalculator(): Promise<SkyDateRangeCalculatorId> {\n const calculatorIdHarness = await this.#getCalculatorIdInputBoxHarness();\n const selectEl = await calculatorIdHarness.querySelector('select');\n const value = await selectEl?.getProperty('value');\n\n /* istanbul ignore next: safety check */\n if (value === undefined || value === '') {\n throw new Error('No calculator selected.');\n }\n\n return +value as SkyDateRangeCalculatorId;\n }\n\n /**\n * Gets the start date value.\n */\n public async getStartDateValue(): Promise<string> {\n await this.#assertStartDateVisible('Unable to get start date.');\n\n const input = await (await this.#getStartDatepicker()).getControl();\n\n return await input.getValue();\n }\n\n /**\n * Whether date range picker end date before start date error is thrown.\n */\n public async hasEndDateBeforeStartDateError(): Promise<boolean> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).hasCustomFormError('endDateBeforeStartDate');\n }\n\n /**\n * Whether end date input has required error.\n */\n public async hasEndDateRequiredError(): Promise<boolean> {\n return await (await this.#getEndDateInputBoxHarness()).hasRequiredError();\n }\n\n /**\n * Whether a custom error has fired.\n * @params errorName `errorName` property of the custom `sky-form-error`.\n */\n public async hasError(errorName: string): Promise<boolean> {\n return await (\n await this.#getCalculatorIdInputBoxHarness()\n ).hasCustomFormError(errorName);\n }\n\n /**\n * Whether start date input has required error.\n */\n public async hasStartDateRequiredError(): Promise<boolean> {\n return await (await this.#getStartDateInputBoxHarness()).hasRequiredError();\n }\n\n /**\n * Whether the date range picker component is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n return await (await this.#getCalculatorIdInputBoxHarness()).getDisabled();\n }\n\n /**\n * Whether end date datepicker is visible.\n */\n public async isEndDateVisible(): Promise<boolean> {\n const hidden = await (\n await this.locatorFor('.sky-date-range-picker-end-date')()\n ).getProperty<boolean>('hidden');\n\n return !hidden;\n }\n\n /**\n * Whether the date range picker has stacked enabled.\n */\n public async isStacked(): Promise<boolean> {\n return await (await this.host()).hasClass('sky-form-field-stacked');\n }\n\n /**\n * Whether start date datepicker is visible.\n */\n public async isStartDateVisible(): Promise<boolean> {\n const hidden = await (\n await this.locatorFor('.sky-date-range-picker-start-date')()\n ).getProperty<boolean>('hidden');\n\n return !hidden;\n }\n\n /**\n * Selects the specified calculator.\n */\n public async selectCalculator(\n calculatorId: SkyDateRangeCalculatorId,\n ): Promise<void> {\n const select = await this.locatorFor(\n 'select[FormControlName=\"calculatorId\"]',\n )();\n\n const options = await select.getProperty('options');\n\n let optionIndex: number | undefined;\n\n // Find the index of the option with the specified value.\n for (let i = 0; i < options.length; i++) {\n const option = options[i];\n\n if (`${option.value}` === `${calculatorId}`) {\n optionIndex = i;\n break;\n }\n }\n\n if (optionIndex === undefined) {\n throw new Error(`Could not find calculator with ID ${calculatorId}.`);\n }\n\n await select.selectOptions(optionIndex);\n }\n\n /**\n * Sets the end date.\n * @param newDate date input as a formatted string.\n */\n public async setEndDateValue(newDate: string): Promise<void> {\n await this.#assertEndDateVisible('Unable to set end date.');\n\n const input = await (await this.#getEndDatepicker()).getControl();\n\n await input.setValue(newDate);\n }\n\n /**\n * Sets the start date.\n * @param newDate date input as a formatted string.\n */\n public async setStartDateValue(newDate: string): Promise<void> {\n await this.#assertStartDateVisible('Unable to set start date.');\n\n const input = await (await this.#getStartDatepicker()).getControl();\n\n await input.setValue(newDate);\n }\n\n async #assertEndDateVisible(message: string): Promise<void> {\n if (!(await this.isEndDateVisible())) {\n throw new Error(`${message} End datepicker is not visible.`);\n }\n }\n\n async #assertStartDateVisible(message: string): Promise<void> {\n if (!(await this.isStartDateVisible())) {\n throw new Error(`${message} Start datepicker is not visible.`);\n }\n }\n\n async #getEndDatepicker(): Promise<SkyDatepickerHarness> {\n return await (\n await this.#getEndDateInputBoxHarness()\n ).queryHarness(SkyDatepickerHarness);\n }\n\n async #getStartDatepicker(): Promise<SkyDatepickerHarness> {\n return await (\n await this.#getStartDateInputBoxHarness()\n ).queryHarness(SkyDatepickerHarness);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;;AAIG;MACU,oBAAoB,CAAA;AAC/B,IAAA,QAAQ;IAER,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;AAC3D,QAAA,IAAI,CAAC,QA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