@clr/angular 18.0.0-beta.9 → 18.1.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/fesm2022/clr-angular-data-datagrid.mjs +118 -87
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-datepicker.mjs +65 -13
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-number-input.mjs +1 -2
- package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -1
- package/fesm2022/clr-angular-icon.mjs +2 -2
- package/fesm2022/clr-angular-icon.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-common.mjs +7 -18
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-dropdown.mjs +2 -2
- package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -1
- package/fesm2022/clr-angular-popover-signpost.mjs +2 -2
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -1
- package/fesm2022/clr-angular-stepper.mjs +10 -4
- package/fesm2022/clr-angular-stepper.mjs.map +1 -1
- package/package.json +5 -5
- package/types/clr-angular-data-datagrid.d.ts +40 -39
- package/types/clr-angular-forms-datepicker.d.ts +33 -5
- package/types/clr-angular-popover-common.d.ts +2 -3
- package/types/clr-angular-popover-dropdown.d.ts +1 -1
- package/types/clr-angular-popover-signpost.d.ts +1 -1
|
@@ -13,6 +13,20 @@ import * as i13 from '@angular/common';
|
|
|
13
13
|
import * as i16 from '@clr/angular/icon';
|
|
14
14
|
import * as i18 from '@clr/angular/layout/vertical-nav';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Index of the day of the week, matching JavaScript's Date.getDay() convention.
|
|
18
|
+
* Used to override the locale-derived first day of the week in the date picker.
|
|
19
|
+
*/
|
|
20
|
+
declare enum ClrWeekday {
|
|
21
|
+
Sunday = 0,
|
|
22
|
+
Monday = 1,
|
|
23
|
+
Tuesday = 2,
|
|
24
|
+
Wednesday = 3,
|
|
25
|
+
Thursday = 4,
|
|
26
|
+
Friday = 5,
|
|
27
|
+
Saturday = 6
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
declare class DateFormControlService {
|
|
17
31
|
disabled: boolean;
|
|
18
32
|
private _touchedChange;
|
|
@@ -48,6 +62,12 @@ declare class LocaleHelperService {
|
|
|
48
62
|
get localeMonthsAbbreviated(): ReadonlyArray<string>;
|
|
49
63
|
get localeMonthsWide(): ReadonlyArray<string>;
|
|
50
64
|
get localeDateFormat(): string;
|
|
65
|
+
/**
|
|
66
|
+
* Overrides the first day of the week regardless of locale.
|
|
67
|
+
* Accepts a `ClrWeekday` value (Sunday=0 through Saturday=6), or null to revert to locale default.
|
|
68
|
+
* Incorrect values will revert to default value (Sunday).
|
|
69
|
+
*/
|
|
70
|
+
updateFirstDayOfWeek(day: ClrWeekday | null): void;
|
|
51
71
|
/**
|
|
52
72
|
* Initializes the locale data.
|
|
53
73
|
*/
|
|
@@ -70,7 +90,7 @@ declare class LocaleHelperService {
|
|
|
70
90
|
/**
|
|
71
91
|
* Initializes the first day of the week based on the locale.
|
|
72
92
|
*/
|
|
73
|
-
private
|
|
93
|
+
private initializeLocaleFirstDayOfWeek;
|
|
74
94
|
private initializeLocaleDateFormat;
|
|
75
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleHelperService, never>;
|
|
76
96
|
static ɵprov: i0.ɵɵInjectableDeclaration<LocaleHelperService>;
|
|
@@ -335,10 +355,17 @@ declare class ClrDateContainer extends ClrAbstractContainer implements AfterView
|
|
|
335
355
|
protected controlClassService: ControlClassService;
|
|
336
356
|
protected layoutService: LayoutService;
|
|
337
357
|
protected ngControlService: NgControlService;
|
|
358
|
+
private localeHelperService;
|
|
338
359
|
focus: boolean;
|
|
339
360
|
protected popoverType: ClrPopoverType;
|
|
340
361
|
private toggleButton;
|
|
341
|
-
constructor(renderer: Renderer2, elem: ElementRef, popoverService: ClrPopoverService, dateNavigationService: DateNavigationService, datepickerEnabledService: DatepickerEnabledService, dateFormControlService: DateFormControlService, dateIOService: DateIOService, commonStrings: ClrCommonStringsService, focusService: FormsFocusService, viewManagerService: ViewManagerService, controlClassService: ControlClassService, layoutService: LayoutService, ngControlService: NgControlService);
|
|
362
|
+
constructor(renderer: Renderer2, elem: ElementRef, popoverService: ClrPopoverService, dateNavigationService: DateNavigationService, datepickerEnabledService: DatepickerEnabledService, dateFormControlService: DateFormControlService, dateIOService: DateIOService, commonStrings: ClrCommonStringsService, focusService: FormsFocusService, viewManagerService: ViewManagerService, controlClassService: ControlClassService, layoutService: LayoutService, ngControlService: NgControlService, localeHelperService: LocaleHelperService);
|
|
363
|
+
/**
|
|
364
|
+
* Overrides the locale-derived first day of the week for the calendar.
|
|
365
|
+
* Accepts a `ClrWeekday` value (Sunday=0 through Saturday=6).
|
|
366
|
+
* When not set, the first day of the week is determined by the Angular locale.
|
|
367
|
+
*/
|
|
368
|
+
set firstDayOfWeek(value: ClrWeekday | null);
|
|
342
369
|
/**
|
|
343
370
|
* For date range picker actions buttons are shown by default
|
|
344
371
|
*/
|
|
@@ -371,8 +398,8 @@ declare class ClrDateContainer extends ClrAbstractContainer implements AfterView
|
|
|
371
398
|
*/
|
|
372
399
|
private initializeCalendar;
|
|
373
400
|
private dateRangeStructuralChecks;
|
|
374
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDateContainer, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
|
375
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClrDateContainer, "clr-date-container, clr-date-range-container", never, { "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "clrPosition": { "alias": "clrPosition"; "required": false; }; "rangeOptions": { "alias": "rangeOptions"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, ["label", "[clrStartDate]", "[clrEndDate]", "[clrDate]", "clr-control-helper", "clr-control-error", "clr-control-success"], false, [{ directive: typeof i1.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
|
|
401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDateContainer, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
402
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClrDateContainer, "clr-date-container, clr-date-range-container", never, { "firstDayOfWeek": { "alias": "clrFirstDayOfWeek"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "clrPosition": { "alias": "clrPosition"; "required": false; }; "rangeOptions": { "alias": "rangeOptions"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, ["label", "[clrStartDate]", "[clrEndDate]", "[clrDate]", "clr-control-helper", "clr-control-error", "clr-control-success"], false, [{ directive: typeof i1.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
|
|
376
403
|
}
|
|
377
404
|
|
|
378
405
|
/**
|
|
@@ -955,4 +982,5 @@ declare class ClrDatepickerModule {
|
|
|
955
982
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClrDatepickerModule>;
|
|
956
983
|
}
|
|
957
984
|
|
|
958
|
-
export { CLR_DATEPICKER_DIRECTIVES, ClrCalendar, ClrDateContainer, ClrDateInput, ClrDateInputBase, ClrDateInputValidator, ClrDatepickerActions, ClrDatepickerModule, ClrDatepickerViewManager, ClrDay, ClrDaypicker, ClrEndDateInput, ClrEndDateInputValidator, ClrMonthpicker, ClrStartDateInput, ClrStartDateInputValidator, ClrYearpicker };
|
|
985
|
+
export { CLR_DATEPICKER_DIRECTIVES, ClrCalendar, ClrDateContainer, ClrDateInput, ClrDateInputBase, ClrDateInputValidator, ClrDatepickerActions, ClrDatepickerModule, ClrDatepickerViewManager, ClrDay, ClrDaypicker, ClrEndDateInput, ClrEndDateInputValidator, ClrMonthpicker, ClrStartDateInput, ClrStartDateInputValidator, ClrWeekday, ClrYearpicker };
|
|
986
|
+
export type { ClrDayOfWeek };
|
|
@@ -40,6 +40,7 @@ interface ClrPopoverPoint {
|
|
|
40
40
|
y: number;
|
|
41
41
|
}
|
|
42
42
|
declare class ClrPopoverService {
|
|
43
|
+
pointTargetElement: HTMLElement | undefined;
|
|
43
44
|
origin: FlexibleConnectedPositionStrategyOrigin;
|
|
44
45
|
closeButtonRef: ElementRef;
|
|
45
46
|
panelClass: string[];
|
|
@@ -73,7 +74,7 @@ declare class ClrPopoverService {
|
|
|
73
74
|
* Opens the popover at a specific screen coordinate.
|
|
74
75
|
* Useful for context menus where the popover should appear at the cursor position.
|
|
75
76
|
*/
|
|
76
|
-
openAtPoint(point: ClrPopoverPoint): void;
|
|
77
|
+
openAtPoint(point: ClrPopoverPoint, targetElement?: HTMLElement): void;
|
|
77
78
|
popoverVisibleEmit(visible: boolean): void;
|
|
78
79
|
resetPositions(): void;
|
|
79
80
|
updatePosition(): void;
|
|
@@ -100,7 +101,6 @@ declare class ClrPopoverContent implements OnDestroy, AfterViewInit {
|
|
|
100
101
|
private popoverType;
|
|
101
102
|
private _availablePositions;
|
|
102
103
|
private _position;
|
|
103
|
-
private scrollableParents;
|
|
104
104
|
private subscriptions;
|
|
105
105
|
private openCloseSubscription;
|
|
106
106
|
private domPortal;
|
|
@@ -145,7 +145,6 @@ declare class ClrPopoverContent implements OnDestroy, AfterViewInit {
|
|
|
145
145
|
*/
|
|
146
146
|
private setupIntersectionObserver;
|
|
147
147
|
private listenToScrollEvents;
|
|
148
|
-
private listenToScrollForPointOrigin;
|
|
149
148
|
private listenToScrollForElementOrigin;
|
|
150
149
|
private getRootPopover;
|
|
151
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrPopoverContent, [null, null, { optional: true; }, null, { optional: true; skipSelf: true; }, null, null, null, null]>;
|
|
@@ -57,7 +57,7 @@ declare class ClrDropdown implements OnDestroy {
|
|
|
57
57
|
isMenuClosable: boolean;
|
|
58
58
|
private subscriptions;
|
|
59
59
|
constructor(parent: ClrDropdown, popoverService: ClrPopoverService, focusHandler: DropdownFocusHandler, cdr: ChangeDetectorRef, dropdownService: RootDropdownService);
|
|
60
|
-
openAtPoint(point: ClrPopoverPoint): void;
|
|
60
|
+
openAtPoint(point: ClrPopoverPoint, targetElement?: HTMLElement): void;
|
|
61
61
|
ngOnDestroy(): void;
|
|
62
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDropdown, [{ optional: true; skipSelf: true; }, null, null, null, null]>;
|
|
63
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrDropdown, "clr-dropdown", never, { "isMenuClosable": { "alias": "clrCloseMenuOnItemClick"; "required": false; }; }, {}, never, ["*"], false, [{ directive: typeof i1.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
|
|
@@ -76,7 +76,7 @@ declare class ClrSignpost {
|
|
|
76
76
|
*/
|
|
77
77
|
set customTrigger(trigger: ClrSignpostTrigger);
|
|
78
78
|
get showDefaultTrigger(): boolean;
|
|
79
|
-
openAtPoint(point: ClrPopoverPoint): void;
|
|
79
|
+
openAtPoint(point: ClrPopoverPoint, targetElement?: HTMLElement): void;
|
|
80
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrSignpost, never>;
|
|
81
81
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrSignpost, "clr-signpost", never, { "signpostTriggerAriaLabel": { "alias": "clrSignpostTriggerAriaLabel"; "required": false; }; "hideTrigger": { "alias": "clrSignpostHideTrigger"; "required": false; }; }, {}, ["customTrigger"], ["*"], false, [{ directive: typeof i8.ClrPopoverHostDirective; inputs: {}; outputs: {}; }]>;
|
|
82
82
|
}
|