@skyux/datetime 12.2.0 → 12.4.0

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.
@@ -2,7 +2,7 @@ import { By } from '@angular/platform-browser';
2
2
  import { SkyAppTestUtility } from '@skyux-sdk/testing';
3
3
  import { SkyComponentHarness, SkyInputHarness } from '@skyux/core/testing';
4
4
  import { SkyInputBoxHarness } from '@skyux/forms/testing';
5
- import { HarnessPredicate } from '@angular/cdk/testing';
5
+ import { HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
6
6
 
7
7
  /**
8
8
  * Allows interaction with a SKY UX datepicker component.
@@ -495,9 +495,232 @@ class SkyDateRangePickerHarness extends SkyComponentHarness {
495
495
  }
496
496
  }
497
497
 
498
+ /**
499
+ * Harness to interact with the timepicker input harness.
500
+ */
501
+ class SkyTimepickerInputHarness extends SkyInputHarness {
502
+ /**
503
+ * @internal
504
+ */
505
+ static { this.hostSelector = '[skyTimepickerInput]'; }
506
+ /**
507
+ * Blurs the input.
508
+ */
509
+ async blur() {
510
+ await super.blur();
511
+ const host = await this.host();
512
+ await host.dispatchEvent('focusout', { relatedTarget: null });
513
+ }
514
+ /**
515
+ * Sets the value of the input.
516
+ */
517
+ async setValue(value) {
518
+ await super.setValue(value);
519
+ await this.blur();
520
+ await (await this.host()).dispatchEvent('change');
521
+ }
522
+ }
523
+
524
+ /**
525
+ * Harness for interacting with timepicker selector column in tests.
526
+ * @internal
527
+ */
528
+ class SkyTimepickerSelectorColumnHarness extends ComponentHarness {
529
+ /**
530
+ * @internal
531
+ */
532
+ static { this.hostSelector = 'section.sky-timepicker-column'; }
533
+ #getButtons = this.locatorForAll('li > button');
534
+ #getSelected = this.locatorForOptional('.sky-btn-active');
535
+ /**
536
+ * @internal
537
+ */
538
+ static with(filters) {
539
+ return new HarnessPredicate(SkyTimepickerSelectorColumnHarness, filters);
540
+ }
541
+ /**
542
+ * Clicks the specified button.
543
+ */
544
+ async clickButton(value) {
545
+ const buttons = await this.#getButtons();
546
+ let match = false;
547
+ for (const button of buttons) {
548
+ const label = (await button.text()).trim();
549
+ if (this.#equals(label, value)) {
550
+ await button.click();
551
+ match = true;
552
+ }
553
+ }
554
+ if (!match) {
555
+ throw new Error();
556
+ }
557
+ }
558
+ /**
559
+ * Gets the selected value.
560
+ */
561
+ async getSelectedValue() {
562
+ return (await (await this.#getSelected())?.text())?.trim();
563
+ }
564
+ #equals(a, b) {
565
+ const numA = parseInt(a);
566
+ const numB = parseInt(b);
567
+ if (isNaN(numA)) {
568
+ if (isNaN(numB)) {
569
+ return a === b;
570
+ }
571
+ else {
572
+ return false;
573
+ }
574
+ }
575
+ else {
576
+ return numA === numB;
577
+ }
578
+ }
579
+ }
580
+
581
+ /**
582
+ * Harness for interacting with a timepicker selector in tests.
583
+ */
584
+ class SkyTimepickerSelectorHarness extends ComponentHarness {
585
+ /**
586
+ * @internal
587
+ */
588
+ static { this.hostSelector = '.sky-timepicker-container'; }
589
+ #getHours = this.locatorFor(SkyTimepickerSelectorColumnHarness.with({
590
+ selector: '.sky-timepicker-column-hours',
591
+ }));
592
+ #getMeridies = this.locatorForOptional(SkyTimepickerSelectorColumnHarness.with({
593
+ selector: '.sky-timepicker-column-meridies',
594
+ }));
595
+ #getMinutes = this.locatorFor(SkyTimepickerSelectorColumnHarness.with({
596
+ selector: '.sky-timepicker-column-minutes',
597
+ }));
598
+ /**
599
+ * @internal
600
+ */
601
+ static with(filters) {
602
+ return new HarnessPredicate(SkyTimepickerSelectorHarness, filters);
603
+ }
604
+ /**
605
+ * Clicks the specified hour button, or throws an error if it does not exist.
606
+ */
607
+ async clickHour(value) {
608
+ try {
609
+ await (await this.#getHours()).clickButton(value);
610
+ }
611
+ catch {
612
+ throw new Error(`Unable to find hour button with label "${value}".`);
613
+ }
614
+ }
615
+ /**
616
+ * Clicks the specified meridie button, or throws an error if it does not exist.
617
+ */
618
+ async clickMeridie(value) {
619
+ try {
620
+ const meridies = await this.#getMeridies();
621
+ if (!meridies) {
622
+ throw new Error();
623
+ }
624
+ await meridies.clickButton(value);
625
+ }
626
+ catch {
627
+ throw new Error(`Unable to find meridie button with label "${value}".`);
628
+ }
629
+ }
630
+ /**
631
+ * Clicks the specified minute button, or throws an error if it does not exist.
632
+ */
633
+ async clickMinute(value) {
634
+ try {
635
+ await (await this.#getMinutes()).clickButton(value);
636
+ }
637
+ catch {
638
+ throw new Error(`Unable to find minute button with label "${value}".`);
639
+ }
640
+ }
641
+ /**
642
+ * Gets the current calendar mode.
643
+ */
644
+ async getSelectorMode() {
645
+ return (await this.#getMeridies()) ? '12Hr' : '24Hr';
646
+ }
647
+ /**
648
+ * Gets the time value of the currently selected items.
649
+ */
650
+ async getSelectedValue() {
651
+ const hours = await (await this.#getHours()).getSelectedValue();
652
+ const minutes = await (await this.#getMinutes()).getSelectedValue();
653
+ const meridie = await (await this.#getMeridies())?.getSelectedValue();
654
+ return hours + ':' + minutes + (meridie ? ' ' + meridie : '');
655
+ }
656
+ }
657
+
658
+ /**
659
+ * Harness for interacting with timepicker components in tests.
660
+ */
661
+ class SkyTimepickerHarness extends SkyComponentHarness {
662
+ /**
663
+ * @internal
664
+ */
665
+ static { this.hostSelector = 'sky-timepicker, .sky-input-group'; }
666
+ #documentRootLocator = this.documentRootLocatorFactory();
667
+ #getSelectorButton = this.locatorFor('.sky-input-group-timepicker-btn');
668
+ /**
669
+ * Gets a `HarnessPredicate` that can be used to search for a
670
+ * `SkyTimepickerHarness` that meets certain criteria.
671
+ *
672
+ * These filters only work for standalone timepickers. For timepickers
673
+ * wrapped inside `sky-input-box`, place filters on the input box instead and
674
+ * query the timepicker using a `SkyInputBoxHarness`.
675
+ * For the input box implementation, see the code example.
676
+ */
677
+ static with(filters) {
678
+ return SkyTimepickerHarness.getDataSkyIdPredicate(filters);
679
+ }
680
+ /**
681
+ * Clicks the selector button.
682
+ */
683
+ async clickSelectorButton() {
684
+ return await (await this.#getSelectorButton()).click();
685
+ }
686
+ /**
687
+ * Gets the `SkyTimepickerSelectorHarness` for the selector controlled by
688
+ * the timepicker. Throws an error if the selector is not open.
689
+ */
690
+ async getTimepickerSelector() {
691
+ const selector = await this.#getSelector();
692
+ if (!selector) {
693
+ throw new Error('Unable to get timepicker selector because selector is closed.');
694
+ }
695
+ return selector;
696
+ }
697
+ /**
698
+ * Gets the timepicker input harness.
699
+ */
700
+ async getControl() {
701
+ return await this.locatorFor(SkyTimepickerInputHarness)();
702
+ }
703
+ /**
704
+ * Whether the timepicker calendar picker is open.
705
+ */
706
+ async isTimepickerOpen() {
707
+ return !!(await this.#getSelector());
708
+ }
709
+ async #getAriaControls() {
710
+ return await (await this.#getSelectorButton()).getAttribute('aria-controls');
711
+ }
712
+ async #getSelector() {
713
+ const selectorId = await this.#getAriaControls();
714
+ if (selectorId) {
715
+ return await this.#documentRootLocator.locatorFor(SkyTimepickerSelectorHarness.with({ selector: `#${selectorId}` }))();
716
+ }
717
+ return null;
718
+ }
719
+ }
720
+
498
721
  /**
499
722
  * Generated bundle index. Do not edit.
500
723
  */
501
724
 
502
- export { SkyDateRangePickerHarness, SkyDatepickerCalendarHarness, SkyDatepickerFixture, SkyDatepickerHarness, SkyDatepickerInputHarness, SkyFuzzyDatepickerInputHarness, SkyTimepickerFixture };
725
+ export { SkyDateRangePickerHarness, SkyDatepickerCalendarHarness, SkyDatepickerFixture, SkyDatepickerHarness, SkyDatepickerInputHarness, SkyFuzzyDatepickerInputHarness, SkyTimepickerFixture, SkyTimepickerHarness, SkyTimepickerInputHarness, SkyTimepickerSelectorHarness };
503
726
  //# 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 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 * @param 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,O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EAAE,EAAE,UAAU,EAAE;AAEjE,QAAA,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/modules/timepicker/timepicker-input-harness.ts","../../../../../libs/components/datetime/testing/src/modules/timepicker/timepicker-selector-column-harness.ts","../../../../../libs/components/datetime/testing/src/modules/timepicker/timepicker-selector-harness.ts","../../../../../libs/components/datetime/testing/src/modules/timepicker/timepicker-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 * @param 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","import { SkyInputHarness } from '@skyux/core/testing';\n\n/**\n * Harness to interact with the timepicker input harness.\n */\nexport class SkyTimepickerInputHarness extends SkyInputHarness {\n /**\n * @internal\n */\n public static hostSelector = '[skyTimepickerInput]';\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', { relatedTarget: null });\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 {\n BaseHarnessFilters,\n ComponentHarness,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with timepicker selector column in tests.\n * @internal\n */\nexport class SkyTimepickerSelectorColumnHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'section.sky-timepicker-column';\n\n #getButtons = this.locatorForAll('li > button');\n #getSelected = this.locatorForOptional('.sky-btn-active');\n\n /**\n * @internal\n */\n public static with(\n filters: BaseHarnessFilters,\n ): HarnessPredicate<SkyTimepickerSelectorColumnHarness> {\n return new HarnessPredicate(SkyTimepickerSelectorColumnHarness, filters);\n }\n\n /**\n * Clicks the specified button.\n */\n public async clickButton(value: string): Promise<void> {\n const buttons = await this.#getButtons();\n let match = false;\n\n for (const button of buttons) {\n const label = (await button.text()).trim();\n\n if (this.#equals(label, value)) {\n await button.click();\n match = true;\n }\n }\n\n if (!match) {\n throw new Error();\n }\n }\n\n /**\n * Gets the selected value.\n */\n public async getSelectedValue(): Promise<string | undefined> {\n return (await (await this.#getSelected())?.text())?.trim();\n }\n\n #equals(a: string, b: string): boolean {\n const numA = parseInt(a);\n const numB = parseInt(b);\n if (isNaN(numA)) {\n if (isNaN(numB)) {\n return a === b;\n } else {\n return false;\n }\n } else {\n return numA === numB;\n }\n }\n}\n","import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport { SkyTimepickerSelectorColumnHarness } from './timepicker-selector-column-harness';\nimport { SkyTimepickerSelectorHarnessFilters } from './timepicker-selector-harness-filters';\n\n/**\n * Harness for interacting with a timepicker selector in tests.\n */\nexport class SkyTimepickerSelectorHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = '.sky-timepicker-container';\n\n #getHours = this.locatorFor(\n SkyTimepickerSelectorColumnHarness.with({\n selector: '.sky-timepicker-column-hours',\n }),\n );\n #getMeridies = this.locatorForOptional(\n SkyTimepickerSelectorColumnHarness.with({\n selector: '.sky-timepicker-column-meridies',\n }),\n );\n #getMinutes = this.locatorFor(\n SkyTimepickerSelectorColumnHarness.with({\n selector: '.sky-timepicker-column-minutes',\n }),\n );\n\n /**\n * @internal\n */\n public static with(\n filters: SkyTimepickerSelectorHarnessFilters,\n ): HarnessPredicate<SkyTimepickerSelectorHarness> {\n return new HarnessPredicate(SkyTimepickerSelectorHarness, filters);\n }\n\n /**\n * Clicks the specified hour button, or throws an error if it does not exist.\n */\n public async clickHour(value: string): Promise<void> {\n try {\n await (await this.#getHours()).clickButton(value);\n } catch {\n throw new Error(`Unable to find hour button with label \"${value}\".`);\n }\n }\n\n /**\n * Clicks the specified meridie button, or throws an error if it does not exist.\n */\n public async clickMeridie(value: string): Promise<void> {\n try {\n const meridies = await this.#getMeridies();\n if (!meridies) {\n throw new Error();\n }\n await meridies.clickButton(value);\n } catch {\n throw new Error(`Unable to find meridie button with label \"${value}\".`);\n }\n }\n\n /**\n * Clicks the specified minute button, or throws an error if it does not exist.\n */\n public async clickMinute(value: string): Promise<void> {\n try {\n await (await this.#getMinutes()).clickButton(value);\n } catch {\n throw new Error(`Unable to find minute button with label \"${value}\".`);\n }\n }\n\n /**\n * Gets the current calendar mode.\n */\n public async getSelectorMode(): Promise<string> {\n return (await this.#getMeridies()) ? '12Hr' : '24Hr';\n }\n\n /**\n * Gets the time value of the currently selected items.\n */\n public async getSelectedValue(): Promise<string | undefined> {\n const hours = await (await this.#getHours()).getSelectedValue();\n const minutes = await (await this.#getMinutes()).getSelectedValue();\n const meridie = await (await this.#getMeridies())?.getSelectedValue();\n\n return hours + ':' + minutes + (meridie ? ' ' + meridie : '');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyTimepickerFilters } from './timepicker-harness-filters';\nimport { SkyTimepickerInputHarness } from './timepicker-input-harness';\nimport { SkyTimepickerSelectorHarness } from './timepicker-selector-harness';\n\n/**\n * Harness for interacting with timepicker components in tests.\n */\nexport class SkyTimepickerHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-timepicker, .sky-input-group';\n\n #documentRootLocator = this.documentRootLocatorFactory();\n\n #getSelectorButton = this.locatorFor('.sky-input-group-timepicker-btn');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyTimepickerHarness` that meets certain criteria.\n *\n * These filters only work for standalone timepickers. For timepickers\n * wrapped inside `sky-input-box`, place filters on the input box instead and\n * query the timepicker using a `SkyInputBoxHarness`.\n * For the input box implementation, see the code example.\n */\n public static with(\n filters: SkyTimepickerFilters,\n ): HarnessPredicate<SkyTimepickerHarness> {\n return SkyTimepickerHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the selector button.\n */\n public async clickSelectorButton(): Promise<void> {\n return await (await this.#getSelectorButton()).click();\n }\n\n /**\n * Gets the `SkyTimepickerSelectorHarness` for the selector controlled by\n * the timepicker. Throws an error if the selector is not open.\n */\n public async getTimepickerSelector(): Promise<SkyTimepickerSelectorHarness> {\n const selector = await this.#getSelector();\n if (!selector) {\n throw new Error(\n 'Unable to get timepicker selector because selector is closed.',\n );\n }\n return selector;\n }\n\n /**\n * Gets the timepicker input harness.\n */\n public async getControl(): Promise<SkyTimepickerInputHarness> {\n return await this.locatorFor(SkyTimepickerInputHarness)();\n }\n\n /**\n * Whether the timepicker calendar picker is open.\n */\n public async isTimepickerOpen(): Promise<boolean> {\n return !!(await this.#getSelector());\n }\n\n async #getAriaControls(): Promise<string | null> {\n return await (\n await this.#getSelectorButton()\n ).getAttribute('aria-controls');\n }\n\n async #getSelector(): Promise<SkyTimepickerSelectorHarness | null> {\n const selectorId = await this.#getAriaControls();\n\n if (selectorId) {\n return await this.#documentRootLocator.locatorFor(\n SkyTimepickerSelectorHarness.with({ selector: `#${selectorId}` }),\n )();\n }\n\n return null;\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,QAAQ,GAAG,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,gBAAgB,CACjB;;AAGH;;AAEG;AACH,IAAA,IAAW,IAAI,GAAA;QACb,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC,aAAa,CAAC,KAAK;;AAGzD;;AAEG;AACH,IAAA,IAAW,QAAQ,GAAA;QACjB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC,aAAa,CAAC,QAAQ;;AAG5D;;AAEG;AACH,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAChC,EAAE,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAC1D,CAAC,aAAa;QAEf,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC;QACvD,IAAI,CAAC,UAAU,EAAE;AACf,YAAA,OAAO,IAAI;;AAGb,QAAA,OAAO,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC;;AAG5C;;AAEG;IACI,+BAA+B,GAAA;AACpC,QAAA,IAAI,CAAC;AACF,aAAA,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,iDAAiD,CAAC;aAC/D,aAAa,CAAC,KA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