@skyux/datetime 11.17.0 → 11.18.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.
- package/documentation.json +1649 -1854
- package/esm2022/lib/modules/date-range-picker/date-range-picker.component.mjs +131 -144
- package/esm2022/lib/modules/datepicker/datepicker.component.mjs +9 -3
- package/esm2022/lib/modules/datepicker/daypicker.component.mjs +3 -3
- package/esm2022/lib/modules/datepicker/monthpicker.component.mjs +3 -3
- package/esm2022/lib/modules/datepicker/yearpicker.component.mjs +3 -3
- package/fesm2022/skyux-datetime-testing.mjs.map +1 -1
- package/fesm2022/skyux-datetime.mjs +143 -150
- package/fesm2022/skyux-datetime.mjs.map +1 -1
- package/lib/modules/date-range-picker/date-range-picker.component.d.ts +23 -19
- package/lib/modules/datepicker/datepicker.component.d.ts +6 -1
- package/package.json +9 -9
@@ -1,10 +1,11 @@
|
|
1
|
-
import { AfterViewInit,
|
2
|
-
import { AbstractControl, ControlValueAccessor,
|
1
|
+
import { AfterViewInit, Signal, TemplateRef } from '@angular/core';
|
2
|
+
import { AbstractControl, ControlValueAccessor, FormControl, ValidationErrors, Validator } from '@angular/forms';
|
3
3
|
import { SkyDateRangeCalculation } from './types/date-range-calculation';
|
4
4
|
import { SkyDateRangeCalculator } from './types/date-range-calculator';
|
5
5
|
import { SkyDateRangeCalculatorId } from './types/date-range-calculator-id';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
|
7
|
+
type DateValue = Date | string | null | undefined;
|
8
|
+
export declare class SkyDateRangePickerComponent implements AfterViewInit, ControlValueAccessor, Validator {
|
8
9
|
#private;
|
9
10
|
/**
|
10
11
|
* IDs for the date range options to include in the picker's dropdown.
|
@@ -66,34 +67,37 @@ export declare class SkyDateRangePickerComponent implements AfterViewInit, Contr
|
|
66
67
|
* as configured by the application. This property only applies when `labelText` is also specified.
|
67
68
|
*/
|
68
69
|
helpKey: string | undefined;
|
69
|
-
protected calculatorIdHasErrors: boolean;
|
70
70
|
protected calculators: SkyDateRangeCalculator[];
|
71
|
-
protected endDateHasErrors: boolean;
|
72
|
-
protected formGroup: FormGroup;
|
73
71
|
protected hostControl: AbstractControl | null | undefined;
|
74
72
|
protected selectedCalculator: SkyDateRangeCalculator;
|
75
|
-
protected showEndDatePicker: boolean
|
76
|
-
protected showStartDatePicker: boolean
|
77
|
-
protected
|
78
|
-
|
73
|
+
protected showEndDatePicker: import("@angular/core").WritableSignal<boolean>;
|
74
|
+
protected showStartDatePicker: import("@angular/core").WritableSignal<boolean>;
|
75
|
+
protected formGroup: import("@angular/forms").FormGroup<{
|
76
|
+
calculatorId: FormControl<number>;
|
77
|
+
startDate: FormControl<DateValue>;
|
78
|
+
endDate: FormControl<DateValue>;
|
79
|
+
}>;
|
80
|
+
protected readonly calculatorIdHasErrors: Signal<boolean | undefined>;
|
81
|
+
protected readonly endDateHasErrors: Signal<boolean | undefined>;
|
82
|
+
protected readonly startDateHasErrors: Signal<boolean | undefined>;
|
79
83
|
ngAfterViewInit(): void;
|
80
|
-
/**
|
81
|
-
* Check for touched status in ngDoCheck since Angular does not (currently)
|
82
|
-
* have an API to respond to touched status changes from the host control.
|
83
|
-
* @see https://github.com/angular/angular/issues/17736#issuecomment-310812368
|
84
|
-
* TODO: Angular 18 introduces a new API to respond to these statuses.
|
85
|
-
* @see https://github.com/angular/angular/issues/10887#issuecomment-2035267400
|
86
|
-
*/
|
87
|
-
ngDoCheck(): void;
|
88
|
-
ngOnDestroy(): void;
|
89
84
|
registerOnChange(fn: (_: unknown) => void): void;
|
90
85
|
registerOnTouched(fn: () => void): void;
|
91
86
|
setDisabledState(isDisabled: boolean): void;
|
92
87
|
validate(control: AbstractControl): ValidationErrors | null;
|
93
88
|
writeValue(value: Partial<SkyDateRangeCalculation> | undefined): void;
|
94
89
|
protected onBlur(): void;
|
90
|
+
/**
|
91
|
+
* Fires when a user changes the selected calculator ID.
|
92
|
+
*/
|
93
|
+
protected onCalculatorIdChange(): void;
|
94
|
+
/**
|
95
|
+
* Fires when a user interacts with a date range picker.
|
96
|
+
*/
|
97
|
+
protected onDateChange(): void;
|
95
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDateRangePickerComponent, never>;
|
96
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDateRangePickerComponent, "sky-date-range-picker", never, { "calculatorIds": { "alias": "calculatorIds"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, {}, never, ["sky-form-error"], true, never>;
|
97
100
|
static ngAcceptInputType_disabled: unknown;
|
98
101
|
static ngAcceptInputType_stacked: unknown;
|
99
102
|
}
|
103
|
+
export {};
|
@@ -38,6 +38,11 @@ export declare class SkyDatepickerComponent implements OnDestroy, OnInit {
|
|
38
38
|
* @internal
|
39
39
|
*/
|
40
40
|
openChange: EventEmitter<boolean>;
|
41
|
+
/**
|
42
|
+
* Fires when a user selects a date from the calendar.
|
43
|
+
* @internal
|
44
|
+
*/
|
45
|
+
calendarDateChange: import("@angular/core").OutputEmitterRef<Date>;
|
41
46
|
calendarId: string;
|
42
47
|
customDates: SkyDatepickerCustomDate[] | undefined;
|
43
48
|
dateChange: EventEmitter<Date>;
|
@@ -64,5 +69,5 @@ export declare class SkyDatepickerComponent implements OnDestroy, OnInit {
|
|
64
69
|
onTriggerButtonClick(): void;
|
65
70
|
onCalendarDateRangeChange(event?: SkyDatepickerCalendarChange): void;
|
66
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerComponent, "sky-datepicker", never, { "pickerClass": { "alias": "pickerClass"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; "dateFormatChange": "dateFormatChange"; "openChange": "openChange"; }, never, ["*"], false, never>;
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerComponent, "sky-datepicker", never, { "pickerClass": { "alias": "pickerClass"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; "dateFormatChange": "dateFormatChange"; "openChange": "openChange"; "calendarDateChange": "calendarDateChange"; }, never, ["*"], false, never>;
|
68
73
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/datetime",
|
3
|
-
"version": "11.
|
3
|
+
"version": "11.18.0",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -41,14 +41,14 @@
|
|
41
41
|
"@angular/core": "^18.2.8",
|
42
42
|
"@angular/forms": "^18.2.8",
|
43
43
|
"@angular/platform-browser": "^18.2.8",
|
44
|
-
"@skyux-sdk/testing": "11.
|
45
|
-
"@skyux/core": "11.
|
46
|
-
"@skyux/forms": "11.
|
47
|
-
"@skyux/i18n": "11.
|
48
|
-
"@skyux/icon": "11.
|
49
|
-
"@skyux/indicators": "11.
|
50
|
-
"@skyux/popovers": "11.
|
51
|
-
"@skyux/theme": "11.
|
44
|
+
"@skyux-sdk/testing": "11.18.0",
|
45
|
+
"@skyux/core": "11.18.0",
|
46
|
+
"@skyux/forms": "11.18.0",
|
47
|
+
"@skyux/i18n": "11.18.0",
|
48
|
+
"@skyux/icon": "11.18.0",
|
49
|
+
"@skyux/indicators": "11.18.0",
|
50
|
+
"@skyux/popovers": "11.18.0",
|
51
|
+
"@skyux/theme": "11.18.0",
|
52
52
|
"moment": "^2.30.1"
|
53
53
|
},
|
54
54
|
"dependencies": {
|