@skyux/datetime 12.27.0 → 13.0.0-alpha.1

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.
Files changed (70) hide show
  1. package/fesm2022/skyux-datetime-testing.mjs.map +1 -1
  2. package/fesm2022/skyux-datetime.mjs +92 -92
  3. package/fesm2022/skyux-datetime.mjs.map +1 -1
  4. package/index.d.ts +1240 -30
  5. package/package.json +14 -14
  6. package/testing/index.d.ts +398 -3
  7. package/lib/modules/date-pipe/date-pipe.module.d.ts +0 -9
  8. package/lib/modules/date-pipe/date.pipe.d.ts +0 -27
  9. package/lib/modules/date-pipe/date.service.d.ts +0 -13
  10. package/lib/modules/date-pipe/fuzzy-date.pipe.d.ts +0 -31
  11. package/lib/modules/date-range-picker/date-range-picker-end-date-resource-key.pipe.d.ts +0 -8
  12. package/lib/modules/date-range-picker/date-range-picker-start-date-resource-key.pipe.d.ts +0 -8
  13. package/lib/modules/date-range-picker/date-range-picker.component.d.ts +0 -108
  14. package/lib/modules/date-range-picker/date-range-picker.module.d.ts +0 -8
  15. package/lib/modules/date-range-picker/date-range.service.d.ts +0 -35
  16. package/lib/modules/date-range-picker/types/date-range-calculation.d.ts +0 -11
  17. package/lib/modules/date-range-picker/types/date-range-calculator-config.d.ts +0 -25
  18. package/lib/modules/date-range-picker/types/date-range-calculator-date-range-function.d.ts +0 -2
  19. package/lib/modules/date-range-picker/types/date-range-calculator-id.d.ts +0 -116
  20. package/lib/modules/date-range-picker/types/date-range-calculator-type.d.ts +0 -21
  21. package/lib/modules/date-range-picker/types/date-range-calculator-validate-function.d.ts +0 -3
  22. package/lib/modules/date-range-picker/types/date-range-calculator.d.ts +0 -46
  23. package/lib/modules/date-range-picker/types/date-range-default-calculator-config.d.ts +0 -14
  24. package/lib/modules/date-range-picker/types/date-range-default-calculator-configs.d.ts +0 -4
  25. package/lib/modules/date-range-picker/types/date-range-relative-value.d.ts +0 -38
  26. package/lib/modules/date-range-picker/types/date-range.d.ts +0 -10
  27. package/lib/modules/datepicker/calendar/datepicker-calendar-change.d.ts +0 -24
  28. package/lib/modules/datepicker/calendar/datepicker-calendar-inner.component.d.ts +0 -90
  29. package/lib/modules/datepicker/calendar/datepicker-calendar-label.pipe.d.ts +0 -23
  30. package/lib/modules/datepicker/calendar/datepicker-calendar.component.d.ts +0 -35
  31. package/lib/modules/datepicker/calendar/datepicker-calendar.service.d.ts +0 -16
  32. package/lib/modules/datepicker/calendar/daypicker-button.component.d.ts +0 -16
  33. package/lib/modules/datepicker/calendar/daypicker-cell.component.d.ts +0 -26
  34. package/lib/modules/datepicker/calendar/daypicker-context.d.ts +0 -15
  35. package/lib/modules/datepicker/calendar/daypicker.component.d.ts +0 -28
  36. package/lib/modules/datepicker/calendar/monthpicker.component.d.ts +0 -17
  37. package/lib/modules/datepicker/calendar/yearpicker.component.d.ts +0 -18
  38. package/lib/modules/datepicker/date-formatter.d.ts +0 -15
  39. package/lib/modules/datepicker/datepicker-config.service.d.ts +0 -29
  40. package/lib/modules/datepicker/datepicker-custom-date.d.ts +0 -21
  41. package/lib/modules/datepicker/datepicker-host.service.d.ts +0 -21
  42. package/lib/modules/datepicker/datepicker-input.directive.d.ts +0 -92
  43. package/lib/modules/datepicker/datepicker.component.d.ts +0 -84
  44. package/lib/modules/datepicker/datepicker.module.d.ts +0 -16
  45. package/lib/modules/datepicker/fuzzy/datepicker-input-fuzzy.directive.d.ts +0 -97
  46. package/lib/modules/datepicker/fuzzy/fuzzy-date.d.ts +0 -15
  47. package/lib/modules/datepicker/fuzzy/fuzzy-date.service.d.ts +0 -54
  48. package/lib/modules/shared/sky-datetime-resources.module.d.ts +0 -10
  49. package/lib/modules/timepicker/timepicker-time-format-type.d.ts +0 -1
  50. package/lib/modules/timepicker/timepicker-time-output.d.ts +0 -30
  51. package/lib/modules/timepicker/timepicker.component.d.ts +0 -59
  52. package/lib/modules/timepicker/timepicker.directive.d.ts +0 -52
  53. package/lib/modules/timepicker/timepicker.module.d.ts +0 -13
  54. package/testing/legacy/datepicker-fixture.d.ts +0 -27
  55. package/testing/legacy/timepicker-fixture.d.ts +0 -29
  56. package/testing/modules/date-range-picker/date-range-picker-harness.d.ts +0 -98
  57. package/testing/modules/date-range-picker/date-range-picker-harness.filters.d.ts +0 -6
  58. package/testing/modules/datepicker/datepicker-calendar-harness.d.ts +0 -48
  59. package/testing/modules/datepicker/datepicker-calendar-harness.filters.d.ts +0 -6
  60. package/testing/modules/datepicker/datepicker-harness.d.ts +0 -43
  61. package/testing/modules/datepicker/datepicker-harness.filters.d.ts +0 -6
  62. package/testing/modules/datepicker/datepicker-input-harness.d.ts +0 -18
  63. package/testing/modules/datepicker/fuzzy-datepicker-input-harness.d.ts +0 -18
  64. package/testing/modules/timepicker/timepicker-harness-filters.d.ts +0 -6
  65. package/testing/modules/timepicker/timepicker-harness.d.ts +0 -42
  66. package/testing/modules/timepicker/timepicker-input-harness.d.ts +0 -18
  67. package/testing/modules/timepicker/timepicker-selector-column-harness.d.ts +0 -24
  68. package/testing/modules/timepicker/timepicker-selector-harness-filters.d.ts +0 -7
  69. package/testing/modules/timepicker/timepicker-selector-harness.d.ts +0 -36
  70. package/testing/public-api.d.ts +0 -14
@@ -1,27 +0,0 @@
1
- import { ComponentFixture } from '@angular/core/testing';
2
- /**
3
- * Allows interaction with a SKY UX datepicker component.
4
- * @deprecated Use `SkyDatepickerHarness` instead.
5
- * @internal
6
- */
7
- export declare class SkyDatepickerFixture {
8
- #private;
9
- constructor(fixture: ComponentFixture<any>, skyTestId: string);
10
- /**
11
- * The datepicker's currently selected date.
12
- */
13
- get date(): string;
14
- /**
15
- * Flag indicating if datepicker input is disabled.
16
- */
17
- get disabled(): boolean;
18
- /**
19
- * The datepicker's calendar element.
20
- */
21
- get calendarEl(): any;
22
- /**
23
- * Click the calendar button to open or close calendar.
24
- */
25
- clickDatepickerCalenderButtonEl(): void;
26
- clickDayEl(dayIndex: number): void;
27
- }
@@ -1,29 +0,0 @@
1
- import { ComponentFixture } from '@angular/core/testing';
2
- /**
3
- * Allows interaction with a SKY UX timepicker component.
4
- * @internal
5
- */
6
- export declare class SkyTimepickerFixture {
7
- #private;
8
- constructor(fixture: ComponentFixture<any>, skyTestId: string);
9
- /**
10
- * The timepicker's currently selected time.
11
- */
12
- get value(): string;
13
- /**
14
- * Set the timepicker's selected time.
15
- */
16
- set value(value: string);
17
- /**
18
- * Flag indicating if timepicker input is disabled.
19
- */
20
- get isDisabled(): boolean;
21
- /**
22
- * Set the timepicker's disabled value
23
- */
24
- set isDisabled(value: boolean);
25
- /**
26
- * Flag indicating if timepicker input is valid.
27
- */
28
- get isValid(): boolean;
29
- }
@@ -1,98 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyDateRangeCalculatorId } from '@skyux/datetime';
4
- import { SkyDateRangePickerFilters } from './date-range-picker-harness.filters';
5
- /**
6
- * Harness for interacting with date range picker components in tests.
7
- */
8
- export declare class SkyDateRangePickerHarness extends SkyComponentHarness {
9
- #private;
10
- /**
11
- * @internal
12
- */
13
- static hostSelector: string;
14
- /**
15
- * Gets a `HarnessPredicate` that can be used to search for a
16
- * `SkyDateRangePickerHarness` that meets certain criteria.
17
- */
18
- static with(filters: SkyDateRangePickerFilters): HarnessPredicate<SkyDateRangePickerHarness>;
19
- /**
20
- * Clicks the help inline button.
21
- */
22
- clickHelpInline(): Promise<void>;
23
- /**
24
- * Gets the end date value.
25
- */
26
- getEndDateValue(): Promise<string>;
27
- /**
28
- * Gets the help popover content.
29
- */
30
- getHelpPopoverContent(): Promise<string | undefined>;
31
- /**
32
- * Gets the help inline popover title.
33
- */
34
- getHelpPopoverTitle(): Promise<string | undefined>;
35
- /**
36
- * Gets the hint text.
37
- */
38
- getHintText(): Promise<string>;
39
- /**
40
- * Gets the label text.
41
- */
42
- getLabelText(): Promise<string>;
43
- /**
44
- * Gets the selected calculator ID.
45
- */
46
- getSelectedCalculator(): Promise<SkyDateRangeCalculatorId>;
47
- /**
48
- * Gets the start date value.
49
- */
50
- getStartDateValue(): Promise<string>;
51
- /**
52
- * Whether date range picker end date before start date error is thrown.
53
- */
54
- hasEndDateBeforeStartDateError(): Promise<boolean>;
55
- /**
56
- * Whether end date input has required error.
57
- */
58
- hasEndDateRequiredError(): Promise<boolean>;
59
- /**
60
- * Whether a custom error has fired.
61
- * @param errorName `errorName` property of the custom `sky-form-error`.
62
- */
63
- hasError(errorName: string): Promise<boolean>;
64
- /**
65
- * Whether start date input has required error.
66
- */
67
- hasStartDateRequiredError(): Promise<boolean>;
68
- /**
69
- * Whether the date range picker component is disabled.
70
- */
71
- isDisabled(): Promise<boolean>;
72
- /**
73
- * Whether end date datepicker is visible.
74
- */
75
- isEndDateVisible(): Promise<boolean>;
76
- /**
77
- * Whether the date range picker has stacked enabled.
78
- */
79
- isStacked(): Promise<boolean>;
80
- /**
81
- * Whether start date datepicker is visible.
82
- */
83
- isStartDateVisible(): Promise<boolean>;
84
- /**
85
- * Selects the specified calculator.
86
- */
87
- selectCalculator(calculatorId: SkyDateRangeCalculatorId): Promise<void>;
88
- /**
89
- * Sets the end date.
90
- * @param newDate date input as a formatted string.
91
- */
92
- setEndDateValue(newDate: string): Promise<void>;
93
- /**
94
- * Sets the start date.
95
- * @param newDate date input as a formatted string.
96
- */
97
- setStartDateValue(newDate: string): Promise<void>;
98
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyDateRangePickerHarness` instances.
4
- */
5
- export interface SkyDateRangePickerFilters extends SkyHarnessFilters {
6
- }
@@ -1,48 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyDatepickerCalendarHarnessFilters } from './datepicker-calendar-harness.filters';
4
- /**
5
- * Harness for interacting with datepicker calendar in tests.
6
- */
7
- export declare class SkyDatepickerCalendarHarness extends SkyComponentHarness {
8
- #private;
9
- /**
10
- * @internal
11
- */
12
- static hostSelector: string;
13
- /**
14
- * @internal
15
- */
16
- static with(filters: SkyDatepickerCalendarHarnessFilters): HarnessPredicate<SkyDatepickerCalendarHarness>;
17
- /**
18
- * Clicks the specified date, month or year in the following format
19
- * day format: dddd, MMMM Do YYYY
20
- * month format: MMMM YYYY
21
- * year format: YYYY
22
- */
23
- clickDate(date: string): Promise<void>;
24
- /**
25
- * Clicks the 'next' button on the calendar header.
26
- */
27
- clickNextButton(): Promise<void>;
28
- /**
29
- * Clicks the 'previous' button on the calendar header.
30
- */
31
- clickPreviousButton(): Promise<void>;
32
- /**
33
- * Clicks the 'title' button on the calendar header.
34
- */
35
- clickTitleButton(): Promise<void>;
36
- /**
37
- * Gets the current calendar mode.
38
- */
39
- getCalendarMode(): Promise<string>;
40
- /**
41
- * Gets the current title.
42
- */
43
- getCalendarTitle(): Promise<string>;
44
- /**
45
- * Gets the long date value of the currently selected calendar item.
46
- */
47
- getSelectedValue(): Promise<string | null>;
48
- }
@@ -1,6 +0,0 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyDatepickerCalendarHarness` instances.
4
- */
5
- export interface SkyDatepickerCalendarHarnessFilters extends BaseHarnessFilters {
6
- }
@@ -1,43 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyDatepickerCalendarHarness } from './datepicker-calendar-harness';
4
- import { SkyDatepickerFilters } from './datepicker-harness.filters';
5
- import { SkyDatepickerInputHarness } from './datepicker-input-harness';
6
- import { SkyFuzzyDatepickerInputHarness } from './fuzzy-datepicker-input-harness';
7
- /**
8
- * Harness for interacting with datepicker components in tests.
9
- */
10
- export declare class SkyDatepickerHarness extends SkyComponentHarness {
11
- #private;
12
- /**
13
- * @internal
14
- */
15
- static hostSelector: string;
16
- /**
17
- * Gets a `HarnessPredicate` that can be used to search for a
18
- * `SkyDatepickerHarness` that meets certain criteria.
19
- *
20
- * These filters only work for standalone datepickers. For datepickers
21
- * wrapped inside `sky-input-box`, place filters on the input box instead and
22
- * query the datepicker using a `SkyInputBoxHarness`.
23
- * For the input box implementation, see the code example.
24
- */
25
- static with(filters: SkyDatepickerFilters): HarnessPredicate<SkyDatepickerHarness>;
26
- /**
27
- * Clicks the calendar button.
28
- */
29
- clickCalendarButton(): Promise<void>;
30
- /**
31
- * Gets the `SkyDatepickerCalendarHarness` for the calendar picker controlled by
32
- * the datepicker. Throws an error if the calendar picker is not open.
33
- */
34
- getDatepickerCalendar(): Promise<SkyDatepickerCalendarHarness>;
35
- /**
36
- * Gets the datepicker input harness.
37
- */
38
- getControl(): Promise<SkyDatepickerInputHarness | SkyFuzzyDatepickerInputHarness>;
39
- /**
40
- * Whether the datepicker calendar picker is open.
41
- */
42
- isDatepickerOpen(): Promise<boolean>;
43
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyDatepickerHarness` instances.
4
- */
5
- export interface SkyDatepickerFilters extends SkyHarnessFilters {
6
- }
@@ -1,18 +0,0 @@
1
- import { SkyInputHarness } from '@skyux/core/testing';
2
- /**
3
- * Harness to interact with the datepicker input harness.
4
- */
5
- export declare class SkyDatepickerInputHarness extends SkyInputHarness {
6
- /**
7
- * @internal
8
- */
9
- static hostSelector: string;
10
- /**
11
- * Blurs the input.
12
- */
13
- blur(): Promise<void>;
14
- /**
15
- * Sets the value of the input.
16
- */
17
- setValue(value: string): Promise<void>;
18
- }
@@ -1,18 +0,0 @@
1
- import { SkyInputHarness } from '@skyux/core/testing';
2
- /**
3
- * Harness to interact with the fuzzy datepicker input harness.
4
- */
5
- export declare class SkyFuzzyDatepickerInputHarness extends SkyInputHarness {
6
- /**
7
- * @internal
8
- */
9
- static hostSelector: string;
10
- /**
11
- * Blurs the input.
12
- */
13
- blur(): Promise<void>;
14
- /**
15
- * Sets the value of the input.
16
- */
17
- setValue(value: string): Promise<void>;
18
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyTimepickerHarness` instances.
4
- */
5
- export interface SkyTimepickerFilters extends SkyHarnessFilters {
6
- }
@@ -1,42 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyTimepickerFilters } from './timepicker-harness-filters';
4
- import { SkyTimepickerInputHarness } from './timepicker-input-harness';
5
- import { SkyTimepickerSelectorHarness } from './timepicker-selector-harness';
6
- /**
7
- * Harness for interacting with timepicker components in tests.
8
- */
9
- export declare class SkyTimepickerHarness extends SkyComponentHarness {
10
- #private;
11
- /**
12
- * @internal
13
- */
14
- static hostSelector: string;
15
- /**
16
- * Gets a `HarnessPredicate` that can be used to search for a
17
- * `SkyTimepickerHarness` that meets certain criteria.
18
- *
19
- * These filters only work for standalone timepickers. For timepickers
20
- * wrapped inside `sky-input-box`, place filters on the input box instead and
21
- * query the timepicker using a `SkyInputBoxHarness`.
22
- * For the input box implementation, see the code example.
23
- */
24
- static with(filters: SkyTimepickerFilters): HarnessPredicate<SkyTimepickerHarness>;
25
- /**
26
- * Clicks the selector button.
27
- */
28
- clickSelectorButton(): Promise<void>;
29
- /**
30
- * Gets the `SkyTimepickerSelectorHarness` for the selector controlled by
31
- * the timepicker. Throws an error if the selector is not open.
32
- */
33
- getTimepickerSelector(): Promise<SkyTimepickerSelectorHarness>;
34
- /**
35
- * Gets the timepicker input harness.
36
- */
37
- getControl(): Promise<SkyTimepickerInputHarness>;
38
- /**
39
- * Whether the timepicker calendar picker is open.
40
- */
41
- isTimepickerOpen(): Promise<boolean>;
42
- }
@@ -1,18 +0,0 @@
1
- import { SkyInputHarness } from '@skyux/core/testing';
2
- /**
3
- * Harness to interact with the timepicker input harness.
4
- */
5
- export declare class SkyTimepickerInputHarness extends SkyInputHarness {
6
- /**
7
- * @internal
8
- */
9
- static hostSelector: string;
10
- /**
11
- * Blurs the input.
12
- */
13
- blur(): Promise<void>;
14
- /**
15
- * Sets the value of the input.
16
- */
17
- setValue(value: string): Promise<void>;
18
- }
@@ -1,24 +0,0 @@
1
- import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
- /**
3
- * Harness for interacting with timepicker selector column in tests.
4
- * @internal
5
- */
6
- export declare class SkyTimepickerSelectorColumnHarness extends ComponentHarness {
7
- #private;
8
- /**
9
- * @internal
10
- */
11
- static hostSelector: string;
12
- /**
13
- * @internal
14
- */
15
- static with(filters: BaseHarnessFilters): HarnessPredicate<SkyTimepickerSelectorColumnHarness>;
16
- /**
17
- * Clicks the specified button.
18
- */
19
- clickButton(value: string): Promise<void>;
20
- /**
21
- * Gets the selected value.
22
- */
23
- getSelectedValue(): Promise<string | undefined>;
24
- }
@@ -1,7 +0,0 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyTimepickerSelectorHarness` instances.
4
- * @internal
5
- */
6
- export interface SkyTimepickerSelectorHarnessFilters extends BaseHarnessFilters {
7
- }
@@ -1,36 +0,0 @@
1
- import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyTimepickerSelectorHarnessFilters } from './timepicker-selector-harness-filters';
3
- /**
4
- * Harness for interacting with a timepicker selector in tests.
5
- */
6
- export declare class SkyTimepickerSelectorHarness extends ComponentHarness {
7
- #private;
8
- /**
9
- * @internal
10
- */
11
- static hostSelector: string;
12
- /**
13
- * @internal
14
- */
15
- static with(filters: SkyTimepickerSelectorHarnessFilters): HarnessPredicate<SkyTimepickerSelectorHarness>;
16
- /**
17
- * Clicks the specified hour button, or throws an error if it does not exist.
18
- */
19
- clickHour(value: string): Promise<void>;
20
- /**
21
- * Clicks the specified meridie button, or throws an error if it does not exist.
22
- */
23
- clickMeridie(value: string): Promise<void>;
24
- /**
25
- * Clicks the specified minute button, or throws an error if it does not exist.
26
- */
27
- clickMinute(value: string): Promise<void>;
28
- /**
29
- * Gets the current calendar mode.
30
- */
31
- getSelectorMode(): Promise<string>;
32
- /**
33
- * Gets the time value of the currently selected items.
34
- */
35
- getSelectedValue(): Promise<string | undefined>;
36
- }
@@ -1,14 +0,0 @@
1
- export { SkyDatepickerFixture } from './legacy/datepicker-fixture';
2
- export { SkyTimepickerFixture } from './legacy/timepicker-fixture';
3
- export { SkyDateRangePickerHarness } from './modules/date-range-picker/date-range-picker-harness';
4
- export { SkyDateRangePickerFilters } from './modules/date-range-picker/date-range-picker-harness.filters';
5
- export { SkyDatepickerCalendarHarness } from './modules/datepicker/datepicker-calendar-harness';
6
- export { SkyDatepickerCalendarHarnessFilters } from './modules/datepicker/datepicker-calendar-harness.filters';
7
- export { SkyDatepickerHarness } from './modules/datepicker/datepicker-harness';
8
- export { SkyDatepickerFilters } from './modules/datepicker/datepicker-harness.filters';
9
- export { SkyDatepickerInputHarness } from './modules/datepicker/datepicker-input-harness';
10
- export { SkyFuzzyDatepickerInputHarness } from './modules/datepicker/fuzzy-datepicker-input-harness';
11
- export { SkyTimepickerHarness } from './modules/timepicker/timepicker-harness';
12
- export { SkyTimepickerFilters } from './modules/timepicker/timepicker-harness-filters';
13
- export { SkyTimepickerInputHarness } from './modules/timepicker/timepicker-input-harness';
14
- export { SkyTimepickerSelectorHarness } from './modules/timepicker/timepicker-selector-harness';