yukit-web 0.0.27 → 0.0.29
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/.npm/_cacache/content-v2/sha512/{bb/c8/624c7c2782b25cbd95c09a9ac0022f37ed95417ae3e83503d8e26e82187debd0924076208e2cb29674817f9b92cb634307de40fe7af1055c21eb84fa29ea → ef/18/bb18dafaa926b396d6f0abbdb7e605c613f0b8719ddc87234055ec0521254c44906e937faf752181e95da6cbde04d04fcf409eea3522e147de3bbfd35c2a} +1 -1
- package/.npm/_cacache/index-v5/64/dc/73c7a26f2e6eb0c711133d96c247da5ecf0eba708cd37c450a7b3c7cb488 +1 -1
- package/.npm/_logs/{2026-09-30T08_51_37_007Z-debug-0.log → 2026-09-30T12_38_14_404Z-debug-0.log} +10 -10
- package/.npm/_logs/{2026-09-30T08_51_37_498Z-debug-0.log → 2026-09-30T12_38_14_836Z-debug-0.log} +2 -2
- package/fesm2022/yukit-web.mjs +85 -11
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +24 -4
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -262,6 +262,8 @@ type YuwComboboxValue = string | string[] | undefined;
|
|
|
262
262
|
* - `clearAriaLabel`: When set, the clear button is shown on the single-selection control and
|
|
263
263
|
* this is its accessible name; when absent, there is no clear button. One input, one source of
|
|
264
264
|
* truth. User-facing text — the consuming app is responsible for providing it translated.
|
|
265
|
+
* - `keepValueOnEscape`: Stops Escape from clearing the selection when the list is closed, so a
|
|
266
|
+
* filter picker keeps its choices and Escape only dismisses.
|
|
265
267
|
* - `inputId`: HTML `id` for the focusable control (the search input, or the trigger button when
|
|
266
268
|
* `readonlyTrigger` is set), enabling external `<label for="...">` association.
|
|
267
269
|
* - `readonlyTrigger`: Renders control as a button showing selected label, placing search input inside popover.
|
|
@@ -279,12 +281,16 @@ type YuwComboboxValue = string | string[] | undefined;
|
|
|
279
281
|
* ```
|
|
280
282
|
*/
|
|
281
283
|
declare class YuwComboboxComponent<TData = unknown> extends YuwValueAccessorBase<YuwComboboxValue> {
|
|
284
|
+
private readonly _element;
|
|
285
|
+
private readonly _multipleBox;
|
|
282
286
|
private readonly _panel;
|
|
287
|
+
private readonly _singleBox;
|
|
283
288
|
protected readonly itemTemplate: _angular_core.Signal<YuwComboboxItemDirective<TData> | undefined>;
|
|
284
289
|
readonly clearAriaLabel: _angular_core.InputSignal<string | undefined>;
|
|
285
290
|
readonly emptyText: _angular_core.InputSignal<string | undefined>;
|
|
286
291
|
readonly inputId: _angular_core.InputSignal<string | undefined>;
|
|
287
292
|
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
293
|
+
readonly keepValueOnEscape: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
288
294
|
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
289
295
|
readonly options: _angular_core.InputSignal<YuwComboboxOptionDto<TData>[]>;
|
|
290
296
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
@@ -310,11 +316,25 @@ declare class YuwComboboxComponent<TData = unknown> extends YuwValueAccessorBase
|
|
|
310
316
|
protected readonly _selectedValues: _angular_core.Signal<Set<string>>;
|
|
311
317
|
protected readonly _singleValue: _angular_core.Signal<string | undefined>;
|
|
312
318
|
protected readonly _triggerClass: _angular_core.Signal<string>;
|
|
319
|
+
constructor();
|
|
320
|
+
/**
|
|
321
|
+
* Focuses the field and opens its option list. For a combobox living inside a popover or sheet:
|
|
322
|
+
* the container calls it when it opens, so the user sees the options without a second click.
|
|
323
|
+
*/
|
|
324
|
+
open(): void;
|
|
313
325
|
protected _emptyValue(): YuwComboboxValue;
|
|
314
326
|
protected _onFocusOut(event: FocusEvent): void;
|
|
315
327
|
protected onValueChange(next: YuwComboboxValue | null): void;
|
|
328
|
+
/**
|
|
329
|
+
* The brain clears the whole selection when Escape is pressed with the list closed. While
|
|
330
|
+
* `keepValueOnEscape` is on, that reset is skipped for the duration of the Escape keydown only,
|
|
331
|
+
* so the clear button and programmatic resets still work and the event keeps propagating (an
|
|
332
|
+
* enclosing popover can still close on it). Nothing is registered while the input is off, and
|
|
333
|
+
* the returned function undoes it all.
|
|
334
|
+
*/
|
|
335
|
+
private _guardEscape;
|
|
316
336
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwComboboxComponent<any>, never>;
|
|
317
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwComboboxComponent<any>, "yuw-combobox", never, { "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonlyTrigger": { "alias": "readonlyTrigger"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerAriaLabel": { "alias": "triggerAriaLabel"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "search": "searchChange"; "value": "valueChange"; }, ["itemTemplate"], never, true, never>;
|
|
337
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<YuwComboboxComponent<any>, "yuw-combobox", never, { "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "keepValueOnEscape": { "alias": "keepValueOnEscape"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonlyTrigger": { "alias": "readonlyTrigger"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "triggerAriaLabel": { "alias": "triggerAriaLabel"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "search": "searchChange"; "value": "valueChange"; }, ["itemTemplate"], never, true, never>;
|
|
318
338
|
}
|
|
319
339
|
|
|
320
340
|
interface YuwPageSort {
|
|
@@ -412,7 +432,7 @@ declare class YuwButtonComponent {
|
|
|
412
432
|
readonly size: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined>;
|
|
413
433
|
readonly target: _angular_core.InputSignal<string | undefined>;
|
|
414
434
|
readonly transparent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
415
|
-
readonly type: _angular_core.InputSignal<"button" | "
|
|
435
|
+
readonly type: _angular_core.InputSignal<"button" | "reset" | "submit">;
|
|
416
436
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
417
437
|
readonly variant: _angular_core.InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
|
|
418
438
|
readonly yuwDropdownMenuTrigger: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
@@ -544,7 +564,7 @@ declare class YuwButtonGroupComponent {
|
|
|
544
564
|
color: YuwColorDto;
|
|
545
565
|
transparent: boolean;
|
|
546
566
|
disabled: boolean;
|
|
547
|
-
type: "button" | "
|
|
567
|
+
type: "button" | "reset" | "submit";
|
|
548
568
|
class: string;
|
|
549
569
|
id: string;
|
|
550
570
|
label?: string;
|
|
@@ -605,7 +625,7 @@ declare class YuwBadgeComponent {
|
|
|
605
625
|
readonly removeLabel: _angular_core.InputSignal<string | undefined>;
|
|
606
626
|
readonly variant: _angular_core.InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
|
|
607
627
|
readonly removed: _angular_core.OutputEmitterRef<void>;
|
|
608
|
-
protected readonly dotClass: _angular_core.Signal<"" | "size-4 p-0">;
|
|
628
|
+
protected readonly dotClass: _angular_core.Signal<"" | "size-4 p-0!">;
|
|
609
629
|
protected readonly removeClass: _angular_core.Signal<string>;
|
|
610
630
|
protected onRemoveClick(event: Event): void;
|
|
611
631
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwBadgeComponent, never>;
|