@skyux/datetime 12.23.0 → 13.0.0-alpha.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.
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,35 +0,0 @@
1
- import { SkyDateRangeCalculator } from './types/date-range-calculator';
2
- import { SkyDateRangeCalculatorConfig } from './types/date-range-calculator-config';
3
- import { SkyDateRangeCalculatorId } from './types/date-range-calculator-id';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Creates and manages `SkyDateRangeCalculator` instances.
7
- */
8
- export declare class SkyDateRangeService {
9
- #private;
10
- get calculators(): SkyDateRangeCalculator[];
11
- /**
12
- * Creates a custom date range calculator.
13
- * @param config The calculator config.
14
- */
15
- createCalculator(config: SkyDateRangeCalculatorConfig): SkyDateRangeCalculator;
16
- /**
17
- * Returns calculators from an array of calculator IDs.
18
- * @param calculatorIds The array of calculator IDs.
19
- */
20
- filterCalculators(calculatorIds: SkyDateRangeCalculatorId[]): SkyDateRangeCalculator[];
21
- /**
22
- * Returns calculators from an array of calculator IDs.
23
- * @param ids The array of calculator IDs.
24
- * @deprecated Call `filterCalculators()` instead.
25
- */
26
- getCalculators(ids: SkyDateRangeCalculatorId[]): Promise<SkyDateRangeCalculator[]>;
27
- /**
28
- * Returns a calculator from a calculator ID.
29
- * @param id The calculator ID.
30
- * @deprecated Call `filterCalculators()` instead.
31
- */
32
- getCalculatorById(id: SkyDateRangeCalculatorId): Promise<SkyDateRangeCalculator>;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDateRangeService, never>;
34
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyDateRangeService>;
35
- }
@@ -1,11 +0,0 @@
1
- import { SkyDateRange } from './date-range';
2
- import { SkyDateRangeCalculatorId } from './date-range-calculator-id';
3
- /**
4
- * Represents the returned value of a `SkyDateRangeCalculator`.
5
- */
6
- export interface SkyDateRangeCalculation extends SkyDateRange {
7
- /**
8
- * The calculator that determines the dates in the date range.
9
- */
10
- calculatorId: SkyDateRangeCalculatorId;
11
- }
@@ -1,25 +0,0 @@
1
- import { SkyDateRangeCalculatorGetValueFunction } from './date-range-calculator-date-range-function';
2
- import { SkyDateRangeCalculatorType } from './date-range-calculator-type';
3
- import { SkyDateRangeCalculatorValidateFunction } from './date-range-calculator-validate-function';
4
- /**
5
- * The configuration for a date range calculator.
6
- */
7
- export interface SkyDateRangeCalculatorConfig {
8
- /**
9
- * Text to display within the calculator select menu to represent your calculator.
10
- */
11
- shortDescription: string;
12
- /**
13
- * The type of calculator to create.
14
- */
15
- type: SkyDateRangeCalculatorType;
16
- /**
17
- * A callback function that returns a `SkyDateRange` value.
18
- */
19
- getValue: SkyDateRangeCalculatorGetValueFunction;
20
- /**
21
- * A callback function that accepts user-selected start and end dates.
22
- * Returning an Angular `ValidationErrors` value invalidates the date range form control.
23
- */
24
- validate?: SkyDateRangeCalculatorValidateFunction;
25
- }
@@ -1,2 +0,0 @@
1
- import { SkyDateRange } from './date-range';
2
- export type SkyDateRangeCalculatorGetValueFunction = (startDateInput?: Date | null, endDateInput?: Date | null) => SkyDateRange;
@@ -1,116 +0,0 @@
1
- /**
2
- * `SkyDateRangeCalculatorId` values specify calculator objects that return
3
- * two `Date` objects to represent date ranges. The values populate the options
4
- * in the date range picker's dropdown. SKY UX uses `SkyDateRangeService` to create
5
- * calculators and configures each one with a `validate` function to confirm that dates
6
- * are compatible. For example, `validate` functions ensure that start dates are before
7
- * end dates. SKY UX also configures calculators to call a `getValue` function after
8
- * the `validate` function and return a range of two `Date` objects.
9
- */
10
- export declare enum SkyDateRangeCalculatorId {
11
- /**
12
- * Selects no dates and considers all dates within the date range. This is the default selection.
13
- */
14
- AnyTime = 0,
15
- /**
16
- * Enables users to select an end date with no starting date.
17
- */
18
- Before = 1,
19
- /**
20
- * Enables users to select a start date with no end date.
21
- */
22
- After = 2,
23
- /**
24
- * Enables users to select specific start and end dates.
25
- */
26
- SpecificRange = 3,
27
- /**
28
- * Sets the start and end dates to the day before the current day.
29
- */
30
- Yesterday = 4,
31
- /**
32
- * Sets the start and end dates to the current day.
33
- */
34
- Today = 5,
35
- /**
36
- * Sets the start and end dates to the day after the current day.
37
- */
38
- Tomorrow = 6,
39
- /**
40
- * Sets the start date to Sunday of the week before the current week and
41
- * the end date to Saturday of that week.
42
- */
43
- LastWeek = 7,
44
- /**
45
- * Sets the start date to Sunday of the current week and the end date to Saturday.
46
- */
47
- ThisWeek = 8,
48
- /**
49
- * Sets the start date to Sunday of the week after the current week and
50
- * the end date to Saturday of that week.
51
- */
52
- NextWeek = 9,
53
- /**
54
- * Sets the start date to the first day of the month before the current month and
55
- * the end date to the last day of that month.
56
- */
57
- LastMonth = 10,
58
- /**
59
- * Sets the start date to the first day of the current month and
60
- * the end date to the last day of the month.
61
- */
62
- ThisMonth = 11,
63
- /**
64
- * Sets the start date to the first day of the month after the current month
65
- * and the end date to the last day of that month.
66
- */
67
- NextMonth = 12,
68
- /**
69
- * Sets the start date to the first day of the quarter before the current quarter and
70
- * the end date to the last day of that quarter. Quarters are
71
- * January to March, April to June, July to September, and October to December.
72
- */
73
- LastQuarter = 13,
74
- /**
75
- * Sets the start date to the first day of the current quarter and
76
- * the end date to the last day of the quarter. Quarters are
77
- * January to March, April to June, July to September, and October to December.
78
- */
79
- ThisQuarter = 14,
80
- /**
81
- * Sets the start date to the first day of the quarter after the current quarter and
82
- * the end date to the last day of that quarter. Quarters are
83
- * January to March, April to June, July to September, and October to December.
84
- */
85
- NextQuarter = 15,
86
- /**
87
- * Sets the start date to the first day of the year before the current year
88
- * and the end date to the last day of that year.
89
- */
90
- LastCalendarYear = 16,
91
- /**
92
- * Sets the start date to the first day of the current year and
93
- * the end date to the last day of the year.
94
- */
95
- ThisCalendarYear = 17,
96
- /**
97
- * Sets the start date to the first day of the year after the current year and
98
- * the end date to the last day of that year.
99
- */
100
- NextCalendarYear = 18,
101
- /**
102
- * Sets the start date to the first day of the fiscal year before the current fiscal year and
103
- * the end date to the last day of that fiscal year. The fiscal year is Oct. 1 to Sept. 30.
104
- */
105
- LastFiscalYear = 19,
106
- /**
107
- * Sets the start date to the first day of the current fiscal year and
108
- * the end date to the last day of the fiscal year. The fiscal year is Oct. 1 to Sept. 30.
109
- */
110
- ThisFiscalYear = 20,
111
- /**
112
- * Sets the start date to the first day of the fiscal year after the current fiscal year
113
- * and the end date to the last day of that fiscal year. The fiscal year is Oct. 1 to Sept. 30.
114
- */
115
- NextFiscalYear = 21
116
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * The types of calculations available for a date range calculator.
3
- */
4
- export declare enum SkyDateRangeCalculatorType {
5
- /**
6
- * Includes an input for a date after the current date.
7
- */
8
- After = 0,
9
- /**
10
- * Includes an input for a date before the current date.
11
- */
12
- Before = 1,
13
- /**
14
- * Includes two inputs for a range of dates.
15
- */
16
- Range = 2,
17
- /**
18
- * Does not accept any input but calculates a specific range based on the current date.
19
- */
20
- Relative = 3
21
- }
@@ -1,3 +0,0 @@
1
- import { ValidationErrors } from '@angular/forms';
2
- import { SkyDateRange } from './date-range';
3
- export type SkyDateRangeCalculatorValidateFunction = (value?: SkyDateRange) => ValidationErrors | null;
@@ -1,46 +0,0 @@
1
- import { ValidationErrors } from '@angular/forms';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
3
- import { Observable } from 'rxjs';
4
- import { SkyDateRange } from './date-range';
5
- import { SkyDateRangeCalculation } from './date-range-calculation';
6
- import { SkyDateRangeCalculatorConfig } from './date-range-calculator-config';
7
- import { SkyDateRangeCalculatorId } from './date-range-calculator-id';
8
- import { SkyDateRangeCalculatorType } from './date-range-calculator-type';
9
- /**
10
- * Represents the calculator.
11
- */
12
- export declare class SkyDateRangeCalculator {
13
- #private;
14
- /**
15
- * The calculator ID that specifies calculator objects that represent date ranges.
16
- */
17
- readonly calculatorId: SkyDateRangeCalculatorId;
18
- /**
19
- * The text to display in the calculator select menu.
20
- */
21
- get shortDescription$(): Observable<string>;
22
- /**
23
- * The text to display in the calculator select menu.
24
- * @deprecated Subscribe to the `shortDescription$` observable instead.
25
- */
26
- shortDescription: string;
27
- /**
28
- * The type of calculations available for the date range.
29
- */
30
- readonly type: SkyDateRangeCalculatorType;
31
- constructor(
32
- /**
33
- * The calculator ID that specifies calculator objects that represent date ranges.
34
- */
35
- calculatorId: SkyDateRangeCalculatorId, config: SkyDateRangeCalculatorConfig, resourcesSvc: SkyLibResourcesService, _shortDescriptionResourceKey?: string);
36
- /**
37
- * Gets the current value of the calculator.
38
- * @param startDateInput The start date.
39
- * @param endDateInput The end date.
40
- */
41
- getValue(startDateInput?: Date | null, endDateInput?: Date | null): SkyDateRangeCalculation;
42
- /**
43
- * Performs synchronous validation against the control.
44
- */
45
- validate(value?: SkyDateRange): ValidationErrors | null;
46
- }
@@ -1,14 +0,0 @@
1
- import { SkyDateRangeCalculatorGetValueFunction } from './date-range-calculator-date-range-function';
2
- import { SkyDateRangeCalculatorId } from './date-range-calculator-id';
3
- import { SkyDateRangeCalculatorType } from './date-range-calculator-type';
4
- import { SkyDateRangeCalculatorValidateFunction } from './date-range-calculator-validate-function';
5
- /**
6
- * @internal
7
- */
8
- export interface SkyDateRangeDefaultCalculatorConfig {
9
- calculatorId: SkyDateRangeCalculatorId;
10
- shortDescriptionResourceKey: string;
11
- type: SkyDateRangeCalculatorType;
12
- getValue: SkyDateRangeCalculatorGetValueFunction;
13
- validate?: SkyDateRangeCalculatorValidateFunction;
14
- }
@@ -1,4 +0,0 @@
1
- import { SkyDateRangeCalculatorId } from './date-range-calculator-id';
2
- import { SkyDateRangeDefaultCalculatorConfig } from './date-range-default-calculator-config';
3
- export declare const SKY_DEFAULT_CALCULATOR_IDS: SkyDateRangeCalculatorId[];
4
- export declare const SKY_DEFAULT_CALCULATOR_CONFIGS: SkyDateRangeDefaultCalculatorConfig[];
@@ -1,38 +0,0 @@
1
- import { SkyDateRange } from './date-range';
2
- /**
3
- * Need to add the following to classes which contain static methods.
4
- * See: https://github.com/ng-packagr/ng-packagr/issues/641
5
- * @internal
6
- */
7
- export declare abstract class SkyDateRangeRelativeValue {
8
- static get today(): SkyDateRange;
9
- static get tomorrow(): SkyDateRange;
10
- static get yesterday(): SkyDateRange;
11
- /**
12
- * A date range starting with the nearest past Sunday and ending with the following Saturday.
13
- */
14
- static get thisWeek(): SkyDateRange;
15
- /**
16
- * A date range starting with the nearest upcoming Sunday and ending with the following Saturday.
17
- */
18
- static get nextWeek(): SkyDateRange;
19
- static get lastWeek(): SkyDateRange;
20
- static get thisMonth(): SkyDateRange;
21
- static get nextMonth(): SkyDateRange;
22
- static get lastMonth(): SkyDateRange;
23
- static get thisQuarter(): SkyDateRange;
24
- static get nextQuarter(): SkyDateRange;
25
- static get lastQuarter(): SkyDateRange;
26
- static get thisCalendarYear(): SkyDateRange;
27
- static get nextCalendarYear(): SkyDateRange;
28
- static get lastCalendarYear(): SkyDateRange;
29
- static get thisFiscalYear(): SkyDateRange;
30
- static get nextFiscalYear(): SkyDateRange;
31
- static get lastFiscalYear(): SkyDateRange;
32
- private static getQuarterStartMonth;
33
- /**
34
- * Return a fiscal year based on a start date.
35
- * (The fiscal year starts in October and continues through to next September.)
36
- */
37
- private static getClosestFiscalYearRange;
38
- }
@@ -1,10 +0,0 @@
1
- export interface SkyDateRange {
2
- /**
3
- * The last date in the date range.
4
- */
5
- endDate?: Date | null;
6
- /**
7
- * The first date in the date range.
8
- */
9
- startDate?: Date | null;
10
- }
@@ -1,24 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { SkyDatepickerCustomDate } from '../datepicker-custom-date';
3
- /**
4
- * Specifies changes in the datepicker calendar.
5
- */
6
- export interface SkyDatepickerCalendarChange {
7
- /**
8
- * The end date.
9
- */
10
- endDate: Date;
11
- /**
12
- * The start date.
13
- */
14
- startDate: Date;
15
- /**
16
- * The observable that allows the consumer to push custom dates back to the calendar
17
- * when the `SkyDatepickerCalendarChange` event fires. This is useful
18
- * for displaying key dates or disabled dates each time the calendar changes. If disabled dates
19
- * are provided, SKY UX will prevent the user from selecting the date from the calendar.
20
- * However, consumers will still need to add a custom validator to prevent users from entering
21
- * disabled dates in the text input.
22
- */
23
- customDates?: Observable<SkyDatepickerCustomDate[]>;
24
- }
@@ -1,90 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { SkyDateFormatter } from '../date-formatter';
3
- import { SkyDatepickerCustomDate } from '../datepicker-custom-date';
4
- import { SkyDayPickerContext } from './daypicker-context';
5
- import * as i0 from "@angular/core";
6
- type DateComparator = (date1: Date, date2: Date) => number | undefined;
7
- type KeyboardEventHandler = (key: string, event: KeyboardEvent) => void;
8
- /**
9
- * @internal
10
- */
11
- export declare class SkyDatepickerCalendarInnerComponent implements OnDestroy, OnInit, OnChanges {
12
- #private;
13
- customDates: SkyDatepickerCustomDate[] | undefined;
14
- set startingDay(value: number | undefined);
15
- get startingDay(): number;
16
- minDate: Date | undefined;
17
- maxDate: Date | undefined;
18
- startAtDate: Date | undefined;
19
- set selectedDate(value: Date | undefined);
20
- get selectedDate(): Date | undefined;
21
- selectedDateChange: EventEmitter<Date>;
22
- calendarModeChange: EventEmitter<string>;
23
- activeDate: Date;
24
- activeDateId: string;
25
- title: string;
26
- minMode: string;
27
- maxMode: string;
28
- monthColLimit: number;
29
- yearColLimit: number;
30
- datepickerMode: string;
31
- yearRange: number;
32
- formatDay: string;
33
- formatMonth: string;
34
- formatYear: string;
35
- formatDayHeader: string;
36
- formatDayTitle: string;
37
- formatMonthTitle: string;
38
- formatDayLabel: string;
39
- formatMonthLabel: string;
40
- formatYearLabel: string;
41
- previousLabel: string | undefined;
42
- nextLabel: string | undefined;
43
- datepickerId: string;
44
- stepDay: any;
45
- stepMonth: any;
46
- stepYear: any;
47
- protected modes: string[];
48
- protected dateFormatter: SkyDateFormatter;
49
- refreshViewHandlerDay: (() => string) | undefined;
50
- compareHandlerDay: DateComparator | undefined;
51
- refreshViewHandlerMonth: (() => string) | undefined;
52
- compareHandlerMonth: DateComparator | undefined;
53
- refreshViewHandlerYear: (() => string) | undefined;
54
- compareHandlerYear: DateComparator | undefined;
55
- handleKeydownDay: KeyboardEventHandler | undefined;
56
- handleKeydownMonth: KeyboardEventHandler | undefined;
57
- handleKeydownYear: KeyboardEventHandler | undefined;
58
- keys: string[];
59
- ngOnInit(): void;
60
- ngOnChanges(changes: SimpleChanges): void;
61
- ngOnDestroy(): void;
62
- setCompareHandler(handler: DateComparator, type: string): void;
63
- compare(date1: Date | undefined, date2: Date | undefined): number | undefined;
64
- setRefreshViewHandler(handler: () => string, type: string): void;
65
- refreshView(): void;
66
- setKeydownHandler(handler: KeyboardEventHandler, type: string): void;
67
- handleKeydown(key: string, event: KeyboardEvent): void;
68
- dateFilter(date: Date, format: string): string;
69
- isActive(dateObject: SkyDayPickerContext): boolean;
70
- onKeydown(event: KeyboardEvent): void;
71
- createDateObject(date: Date, format: string, isSecondary: boolean, id: string): SkyDayPickerContext;
72
- createCalendarRows(dates: SkyDayPickerContext[], size: number): SkyDayPickerContext[][];
73
- fixTimeZone(date: Date): Date;
74
- selectCalendar(event: Event, date: Date, closePicker?: boolean): void;
75
- select(date: Date, isManual?: boolean): void;
76
- moveCalendar(event: Event, direction: number): void;
77
- move(direction: number): void;
78
- toggleModeCalendar(event: Event): void;
79
- toggleMode(direction: number): void;
80
- announceDate(date: Date, format: string): void;
81
- /**
82
- * Date is disabled if it meets any of these criteria:
83
- * 1. Date falls outside the min or max dates set by the SkyDatepickerConfigService.
84
- * 2. Date is marked as disabled in the customDates array.
85
- */
86
- protected isDisabled(date: Date): boolean;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerCalendarInnerComponent, never>;
88
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerCalendarInnerComponent, "sky-datepicker-inner", never, { "customDates": { "alias": "customDates"; "required": false; }; "startingDay": { "alias": "startingDay"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "startAtDate": { "alias": "startAtDate"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; }, { "selectedDateChange": "selectedDateChange"; "calendarModeChange": "calendarModeChange"; }, never, ["*"], true, never>;
89
- }
90
- export {};
@@ -1,23 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Formats date values according to formatting rules.
5
- * @example
6
- * ```markup
7
- * {{ myDate | skyDatepickerCalendarLabel }}
8
- * {{ myDate | skyDatepickerCalendarLabel:'YYYY' }}
9
- * ```
10
- * @internal
11
- */
12
- export declare class SkyDatepickerCalendarLabelPipe implements PipeTransform {
13
- #private;
14
- /**
15
- * Transforms a date value using locale and format rules.
16
- * @param value Specifies the date value to transform.
17
- * @param format Specifies the format to apply to the transform. The format string is
18
- * constructed by a series of symbols that represent date-time values.
19
- */
20
- transform(value: unknown, format?: string): string;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerCalendarLabelPipe, never>;
22
- static ɵpipe: i0.ɵɵPipeDeclaration<SkyDatepickerCalendarLabelPipe, "skyDatepickerCalendarLabel", true>;
23
- }
@@ -1,35 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { SkyDatepickerConfigService } from '../datepicker-config.service';
3
- import { SkyDatepickerCustomDate } from '../datepicker-custom-date';
4
- import { SkyDatepickerCalendarChange } from './datepicker-calendar-change';
5
- import { SkyDatepickerCalendarInnerComponent } from './datepicker-calendar-inner.component';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @internal
9
- */
10
- export declare class SkyDatepickerCalendarComponent {
11
- #private;
12
- customDates: SkyDatepickerCustomDate[] | undefined;
13
- isDaypickerWaiting: boolean | undefined;
14
- minDate: Date | undefined;
15
- maxDate: Date | undefined;
16
- startAtDate: Date | undefined;
17
- /** currently selected date */
18
- selectedDate: Date | undefined;
19
- /** starting day of the week from 0-6 (0=Sunday, ..., 6=Saturday) */
20
- set startingDay(start: number | undefined);
21
- get startingDay(): number;
22
- calendarDateRangeChange: EventEmitter<SkyDatepickerCalendarChange | undefined>;
23
- calendarModeChange: EventEmitter<string>;
24
- selectedDateChange: EventEmitter<Date>;
25
- datepicker: SkyDatepickerCalendarInnerComponent | undefined;
26
- protected _now: Date;
27
- constructor(config: SkyDatepickerConfigService);
28
- configureOptions(): void;
29
- onCalendarDateRangeChange(event: SkyDatepickerCalendarChange | undefined): void;
30
- onCalendarModeChange(event: string): void;
31
- onSelectedDateChange(event: Date): void;
32
- writeValue(value: Date | undefined): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerCalendarComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerCalendarComponent, "sky-datepicker-calendar", never, { "customDates": { "alias": "customDates"; "required": false; }; "isDaypickerWaiting": { "alias": "isDaypickerWaiting"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "startAtDate": { "alias": "startAtDate"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "startingDay": { "alias": "startingDay"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; "calendarModeChange": "calendarModeChange"; "selectedDateChange": "selectedDateChange"; }, never, never, true, never>;
35
- }
@@ -1,16 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { SkyDayPickerContext } from './daypicker-context';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Manages the state of the calendar picker.
6
- * @internal
7
- */
8
- export declare class SkyDatepickerCalendarService {
9
- /**
10
- * Whether a key date popover is currently displayed.
11
- * Useful for communicating across all daypicker siblings when a popover is displayed.
12
- */
13
- keyDatePopoverStream: Subject<SkyDayPickerContext | undefined>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerCalendarService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyDatepickerCalendarService>;
16
- }
@@ -1,16 +0,0 @@
1
- import { SkyDatepickerCalendarInnerComponent } from './datepicker-calendar-inner.component';
2
- import { SkyDayPickerContext } from './daypicker-context';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @internal
6
- */
7
- export declare class SkyDayPickerButtonComponent {
8
- datepicker: SkyDatepickerCalendarInnerComponent;
9
- /**
10
- * The date this picker button will represent on the calendar.
11
- */
12
- date: SkyDayPickerContext | undefined;
13
- constructor(datepicker: SkyDatepickerCalendarInnerComponent);
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDayPickerButtonComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDayPickerButtonComponent, "sky-daypicker-button", never, { "date": { "alias": "date"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,26 +0,0 @@
1
- import { SkyPopoverMessage } from '@skyux/popovers';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { SkyDayPickerContext } from './daypicker-context';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @internal
7
- */
8
- export declare class SkyDayPickerCellComponent {
9
- #private;
10
- /**
11
- * Whether the active date has been changed.
12
- */
13
- activeDateHasChanged: import("@angular/core").InputSignal<boolean>;
14
- /**
15
- * The date this picker cell will represent on the calendar.
16
- */
17
- date: import("@angular/core").InputSignal<SkyDayPickerContext | undefined>;
18
- protected ariaLabel: import("@angular/core").Signal<string>;
19
- protected hasTooltip: import("@angular/core").Signal<boolean | undefined>;
20
- protected popoverController: BehaviorSubject<SkyPopoverMessage>;
21
- constructor();
22
- protected onDayMouseenter(): void;
23
- protected onDayMouseleave(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDayPickerCellComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDayPickerCellComponent, "sky-daypicker-cell", never, { "activeDateHasChanged": { "alias": "activeDateHasChanged"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Information about a specific day in the calendar.
3
- * @internal
4
- */
5
- export interface SkyDayPickerContext {
6
- date: Date;
7
- label: string;
8
- selected: boolean;
9
- disabled: boolean;
10
- current: boolean;
11
- secondary: boolean;
12
- uid: string;
13
- keyDate?: boolean;
14
- keyDateText?: string[];
15
- }
@@ -1,28 +0,0 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyDatepickerCustomDate } from '../datepicker-custom-date';
3
- import { SkyDatepickerCalendarChange } from './datepicker-calendar-change';
4
- import { SkyDatepickerCalendarInnerComponent } from './datepicker-calendar-inner.component';
5
- import { SkyDayPickerContext } from './daypicker-context';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @internal
9
- */
10
- export declare class SkyDayPickerComponent implements OnDestroy, OnInit {
11
- #private;
12
- set customDates(value: SkyDatepickerCustomDate[] | undefined);
13
- calendarDateRangeChange: EventEmitter<SkyDatepickerCalendarChange | undefined>;
14
- isWaiting: boolean | undefined;
15
- activeDateHasChanged: boolean;
16
- labels: any[];
17
- title: string;
18
- rows: SkyDayPickerContext[][];
19
- weekNumbers: number[];
20
- datepicker: SkyDatepickerCalendarInnerComponent;
21
- CURRENT_THEME_TEMPLATE: any;
22
- constructor(datepicker: SkyDatepickerCalendarInnerComponent);
23
- ngOnInit(): void;
24
- ngOnDestroy(): void;
25
- protected getDates(startDate: Date, n: number): Date[];
26
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDayPickerComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDayPickerComponent, "sky-daypicker", never, { "customDates": { "alias": "customDates"; "required": false; }; "isWaiting": { "alias": "isWaiting"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; }, never, never, true, never>;
28
- }
@@ -1,17 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SkyDatepickerCalendarInnerComponent } from './datepicker-calendar-inner.component';
3
- import { SkyDayPickerContext } from './daypicker-context';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @internal
7
- */
8
- export declare class SkyMonthPickerComponent implements OnInit {
9
- #private;
10
- datepicker: SkyDatepickerCalendarInnerComponent;
11
- rows: SkyDayPickerContext[][];
12
- title: string;
13
- constructor(datepicker: SkyDatepickerCalendarInnerComponent);
14
- ngOnInit(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyMonthPickerComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyMonthPickerComponent, "sky-monthpicker", never, {}, {}, never, never, true, never>;
17
- }