@lifecorner/angular-ui-kit 3.30.0 → 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.
@@ -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
- /** BCP 47 locale for the displayed dates, month title and weekday headers */
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>;
@@ -81,6 +81,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
81
81
  readonly errorMessage: import("@angular/core").InputSignal<string>;
82
82
  /**
83
83
  * ARIA label for accessibility. Ignored while `label` is set.
84
+ * @default undefined
84
85
  */
85
86
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
86
87
  /**
@@ -110,7 +111,13 @@ export declare class DatepickerComponent implements ControlValueAccessor {
110
111
  * Whether to disable weekends
111
112
  */
112
113
  readonly disableWeekends: import("@angular/core").InputSignal<boolean>;
113
- /** BCP 47 locale for month and weekday names and the day buttons' accessible names (e.g. `'de-DE'`). Empty keeps the built-in English names. */
114
+ /**
115
+ * BCP 47 locale for month and weekday names and the day buttons' accessible
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"). Also the open
118
+ * panel's `lang` when the host has no `[lang]` ancestor (3.30.2).
119
+ * @default ''
120
+ */
114
121
  readonly locale: import("@angular/core").InputSignal<string>;
115
122
  /** First column of the grid: 0 Sunday (default) … 6 Saturday — 1 for Monday. */
116
123
  readonly firstDayOfWeek: import("@angular/core").InputSignal<number>;
@@ -184,6 +191,12 @@ export declare class DatepickerComponent implements ControlValueAccessor {
184
191
  readonly isDisabled: import("@angular/core").Signal<boolean>;
185
192
  /** Month granularity (3.29). */
186
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>;
187
200
  readonly formattedDate: import("@angular/core").Signal<string>;
188
201
  /**
189
202
  * Text currently shown in the input. Follows the selected date, but the user
@@ -218,6 +231,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
218
231
  readonly datepickerClasses: import("@angular/core").Signal<string>;
219
232
  private readonly document;
220
233
  private readonly injector;
234
+ private readonly host;
221
235
  private onChange;
222
236
  private onTouched;
223
237
  /**
@@ -254,7 +268,11 @@ export declare class DatepickerComponent implements ControlValueAccessor {
254
268
  * Check if date is today
255
269
  */
256
270
  isToday(date: Date): boolean;
257
- /** Accessible name of a day button: the full date, plus `selectedAriaLabel` when selected. */
271
+ /**
272
+ * Accessible name of a day button: the long `Intl` date in `locale`, else
273
+ * `en-US` (3.30.1, 047-f2: contains the visible day number, WCAG 2.5.3),
274
+ * plus `selectedAriaLabel` when selected.
275
+ */
258
276
  protected dayAriaLabel(date: Date): string;
259
277
  /**
260
278
  * Check if date is selected
@@ -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;