@lifecorner/angular-ui-kit 3.30.1 → 3.30.2
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/lifecorner-angular-ui-kit-combobox.mjs +4 -2
- package/fesm2022/lifecorner-angular-ui-kit-combobox.mjs.map +1 -1
- package/fesm2022/lifecorner-angular-ui-kit-date-range-picker.mjs +4 -2
- package/fesm2022/lifecorner-angular-ui-kit-date-range-picker.mjs.map +1 -1
- package/fesm2022/lifecorner-angular-ui-kit-datepicker.mjs +6 -3
- package/fesm2022/lifecorner-angular-ui-kit-datepicker.mjs.map +1 -1
- package/fesm2022/lifecorner-angular-ui-kit-internal-a11y.mjs +4 -1
- package/fesm2022/lifecorner-angular-ui-kit-internal-a11y.mjs.map +1 -1
- package/package.json +1 -1
- package/types/lifecorner-angular-ui-kit-combobox.d.ts +8 -1
- package/types/lifecorner-angular-ui-kit-date-range-picker.d.ts +11 -1
- package/types/lifecorner-angular-ui-kit-datepicker.d.ts +9 -1
- package/types/lifecorner-angular-ui-kit-internal-a11y.d.ts +12 -1
|
@@ -19,7 +19,11 @@ export declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
|
19
19
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
20
20
|
readonly minDate: import("@angular/core").InputSignal<Date | null>;
|
|
21
21
|
readonly maxDate: import("@angular/core").InputSignal<Date | null>;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* BCP 47 locale for the displayed dates, month title and weekday headers.
|
|
24
|
+
* Also the open panel's `lang` when the host has no `[lang]` ancestor (3.30.2).
|
|
25
|
+
* @default 'de-DE'
|
|
26
|
+
*/
|
|
23
27
|
readonly locale: import("@angular/core").InputSignal<string>;
|
|
24
28
|
/** Accessible name of the clear button. */
|
|
25
29
|
readonly clearAriaLabel: import("@angular/core").InputSignal<string>;
|
|
@@ -37,6 +41,12 @@ export declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
|
37
41
|
private readonly formDisabled;
|
|
38
42
|
/** Effective disabled state: `disabled` input OR form control disabled */
|
|
39
43
|
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* `lang` of the open panel (3.30.2, WCAG 3.1.2). The panel sits in the host
|
|
46
|
+
* and inherits a `[lang]` ancestor through the DOM, so it gets one only
|
|
47
|
+
* without any: then `locale`. `null` while closed.
|
|
48
|
+
*/
|
|
49
|
+
protected readonly panelLang: import("@angular/core").Signal<string | null>;
|
|
40
50
|
private onChange;
|
|
41
51
|
private onTouched;
|
|
42
52
|
protected readonly displayValue: import("@angular/core").Signal<string>;
|
|
@@ -114,7 +114,8 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
114
114
|
/**
|
|
115
115
|
* BCP 47 locale for month and weekday names and the day buttons' accessible
|
|
116
116
|
* names (e.g. `'de-DE'`). Empty keeps the built-in English names; the days
|
|
117
|
-
* are then named in `en-US` ("Wednesday, July 1, 2026").
|
|
117
|
+
* are then named in `en-US` ("Wednesday, July 1, 2026"). Also the open
|
|
118
|
+
* panel's `lang` when the host has no `[lang]` ancestor (3.30.2).
|
|
118
119
|
* @default ''
|
|
119
120
|
*/
|
|
120
121
|
readonly locale: import("@angular/core").InputSignal<string>;
|
|
@@ -190,6 +191,12 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
190
191
|
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
191
192
|
/** Month granularity (3.29). */
|
|
192
193
|
protected readonly isMonthMode: import("@angular/core").Signal<boolean>;
|
|
194
|
+
/**
|
|
195
|
+
* `lang` of the open panel (3.30.2, WCAG 3.1.2): the overlay renders under
|
|
196
|
+
* `<body>`, so it takes the host's closest `[lang]`, else `locale`, else none.
|
|
197
|
+
* Read at every opening; `null` while closed, so the server never reads the DOM.
|
|
198
|
+
*/
|
|
199
|
+
protected readonly panelLang: import("@angular/core").Signal<string | null>;
|
|
193
200
|
readonly formattedDate: import("@angular/core").Signal<string>;
|
|
194
201
|
/**
|
|
195
202
|
* Text currently shown in the input. Follows the selected date, but the user
|
|
@@ -224,6 +231,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
224
231
|
readonly datepickerClasses: import("@angular/core").Signal<string>;
|
|
225
232
|
private readonly document;
|
|
226
233
|
private readonly injector;
|
|
234
|
+
private readonly host;
|
|
227
235
|
private onChange;
|
|
228
236
|
private onTouched;
|
|
229
237
|
/**
|
|
@@ -24,4 +24,15 @@ export declare function containsWords(haystack: readonly string[], needle: reado
|
|
|
24
24
|
* - The text contains the label: `text`, so nothing is read twice.
|
|
25
25
|
* - Otherwise `label, text`.
|
|
26
26
|
*/
|
|
27
|
-
export declare function nameWithText(label: string, text: string): string;
|
|
27
|
+
export declare function nameWithText(label: string, text: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Language of a part (WCAG 3.1.2, request 049): an overlay panel rendered
|
|
30
|
+
* under `<body>` cannot inherit its host's `lang` through the DOM, so it takes
|
|
31
|
+
* the host's value explicitly.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* `lang` of the closest `[lang]` element of `el` (itself included), or `null`.
|
|
35
|
+
* The value is taken as is (`lang=""` is the unknown language, as DOM
|
|
36
|
+
* inheritance gives it). `null` without a DOM `closest` (server DOM).
|
|
37
|
+
*/
|
|
38
|
+
export declare function closestLang(el: Element | null | undefined): string | null;
|