yukit-web 1.0.4 → 1.1.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yukit-web",
3
3
  "description": "Angular UI component library for Yurest web applications.",
4
- "version": "1.0.4",
4
+ "version": "1.1.1",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -23,7 +23,6 @@
23
23
  --primary-border: var(--primary-4);
24
24
  --primary-subtle: var(--primary-1);
25
25
  --primary-subtle-hover: var(--primary-2);
26
- --primary-on-subtle-overlay: var(--primary-8);
27
26
  --primary-on-subtle: var(--primary-8);
28
27
  --primary-on-fill: var(--neutrals-on-fill);
29
28
  --primary-tonal: var(--primary-2);
@@ -63,40 +62,38 @@
63
62
 
64
63
  /** || neutrals || */
65
64
  --neutrals-white: #fdfdfe;
66
- --gray-1: #f9f9fa;
67
- --gray-2: #f6f6f7;
68
- --gray-3: #f2f2f4;
69
- --gray-4: #ededef;
70
- --gray-5: #e7e7ea;
71
- --gray-6: #d7d7db;
65
+ --gray-1: #fafafb;
66
+ --gray-2: #f4f4f5;
67
+ --gray-3: #efeff1;
68
+ --gray-4: #e9e9ec;
69
+ --gray-5: #e4e4e7;
70
+ --gray-6: #d4d4d8;
72
71
  --gray-7: #b5b5ba;
73
72
  --gray-8: #93939a;
74
- --gray-9: #717178;
73
+ --gray-9: #68686f;
75
74
  --gray-10: #56565d;
76
75
  --gray-11: #37373d;
77
76
  --gray-12: #1a1a20;
78
77
  --neutrals-dark: #131319;
79
78
  --neutrals-on-fill: #ffffff;
80
79
  --neutrals-on-fill-dark: #131319;
81
- --neutrals-background: var(--gray-1);
82
- --neutrals-sidebar: var(--neutrals-white);
80
+ --neutrals-background: var(--gray-2);
83
81
  --neutrals-surface: var(--neutrals-white);
84
82
  --neutrals-surface-inset: var(--gray-1);
85
- --neutrals-surface-footer: var(--gray-2);
86
83
  --neutrals-surface-accent: var(--gray-3);
87
84
  --neutrals-overlay: var(--neutrals-white);
88
85
  --neutrals-element-mid-inverse: var(--gray-6);
89
- --neutrals-element-low: var(--gray-10);
90
- --neutrals-element-mid: var(--gray-11);
91
- --neutrals-element-high: var(--gray-12);
86
+ --neutrals-element-low: var(--gray-9);
87
+ --neutrals-element-mid: var(--gray-10);
88
+ --neutrals-element-high: var(--gray-11);
92
89
  --neutrals-outline: var(--gray-5);
93
90
  --neutrals-outline-accent: var(--gray-6);
94
- --neutrals-outline-hover: var(--gray-8);
95
- --neutrals-fill-tile-hover: var(--neutrals-white);
91
+ --neutrals-outline-hover: var(--gray-9);
96
92
  --neutrals-fill: var(--gray-4);
97
93
  --neutrals-fill-hover: var(--gray-5);
98
- --neutrals-fill-active: var(--gray-6);
99
- --neutrals-fill-track: var(--gray-7);
94
+ --neutrals-fill-pressed: var(--gray-6);
95
+ --neutrals-fill-input: var(--gray-1);
96
+ --neutrals-fill-strong: var(--gray-9);
100
97
  --neutrals-fill-inverse: var(--neutrals-white-16);
101
98
  --neutrals-subtle-hover: var(--neutrals-black-6);
102
99
  --neutrals-subtle-pressed: var(--neutrals-black-18);
@@ -121,7 +118,7 @@
121
118
  --red-2: #ffdfdc;
122
119
  --red-3: #ffbfb7;
123
120
  --red-4: #f9776e;
124
- --red-5: #de0b22;
121
+ --red-5: #d9001d;
125
122
  --red-6: #bb0222;
126
123
  --red-7: #940118;
127
124
  --red-subtle: var(--red-1);
@@ -159,7 +156,7 @@
159
156
  --green-2: #d1f0d4;
160
157
  --green-3: #a6e3ae;
161
158
  --green-4: #52b766;
162
- --green-5: #008628;
159
+ --green-5: #007d1e;
163
160
  --green-6: #14702f;
164
161
  --green-subtle: var(--green-1);
165
162
  --green-border-light: var(--green-4);
@@ -173,7 +170,7 @@
173
170
  --blue-2: #d2e9ff;
174
171
  --blue-3: #acd6ff;
175
172
  --blue-4: #67a5ea;
176
- --blue-5: #0d74ce;
173
+ --blue-5: #006cc5;
177
174
  --blue-6: #195daa;
178
175
  --blue-subtle: var(--blue-1);
179
176
  --blue-border-light: var(--blue-4);
@@ -272,7 +269,7 @@
272
269
  --ring-secondary: var(--secondary-6);
273
270
  --ring-destructive: var(--red-6);
274
271
  --ring-primary: var(--primary-7);
275
- --ring-neutral-halo: rgb(113 113 120 / 0.5);
272
+ --ring-neutral-halo: rgb(104 104 111 / 0.5);
276
273
  --ring-primary-halo: rgb(205 51 59 / 0.5);
277
274
  --ring-secondary-halo: rgb(95 106 180 / 0.5);
278
275
  --ring-destructive-halo: rgb(187 2 34 / 0.5);
@@ -332,7 +329,7 @@
332
329
  --secondary-foreground: var(--secondary-on-subtle);
333
330
 
334
331
  /** || Neutral fills || */
335
- --muted: var(--neutrals-surface-footer);
332
+ --muted: var(--neutrals-surface-accent);
336
333
  --muted-foreground: var(--neutrals-element-mid);
337
334
  --accent: var(--neutrals-subtle-hover);
338
335
  --accent-foreground: var(--neutrals-element-high);
@@ -419,27 +416,26 @@
419
416
  --secondary-subtle-pressed: var(--secondary-5);
420
417
 
421
418
  /** || neutrals || */
422
- --gray-1: #111114;
423
- --gray-2: #161619;
424
- --gray-3: #1a1a1d;
425
- --gray-4: #1f1f23;
426
- --gray-5: #232327;
427
- --gray-6: #2f2f34;
419
+ --gray-1: #121214;
420
+ --gray-2: #18181b;
421
+ --gray-3: #1f1f22;
422
+ --gray-4: #27272a;
423
+ --gray-5: #2f2f33;
424
+ --gray-6: #3f3f46;
428
425
  --gray-7: #404046;
429
426
  --gray-8: #606067;
430
- --gray-9: #7f7f86;
427
+ --gray-9: #909097;
431
428
  --gray-10: #a1a1a7;
432
429
  --gray-11: #c9c9ce;
433
430
  --gray-12: #eeeef1;
434
431
  --neutrals-dark: #0c0c10;
435
- --neutrals-sidebar: var(--gray-2);
432
+ --neutrals-background: var(--neutrals-dark);
436
433
  --neutrals-surface: var(--gray-2);
437
- --neutrals-surface-footer: var(--gray-1);
438
- --neutrals-surface-accent: var(--neutrals-dark);
434
+ --neutrals-surface-accent: var(--gray-4);
439
435
  --neutrals-overlay: var(--gray-3);
440
- --neutrals-outline: var(--gray-6);
441
- --neutrals-outline-accent: var(--gray-7);
442
- --neutrals-fill-tile-hover: var(--gray-4);
436
+ --neutrals-outline: var(--gray-5);
437
+ --neutrals-outline-accent: var(--gray-6);
438
+ --neutrals-fill-input: var(--gray-3);
443
439
  --neutrals-fill-inverse: var(--neutrals-black-16);
444
440
  --neutrals-subtle-hover: var(--neutrals-white-4);
445
441
  --neutrals-subtle-pressed: var(--neutrals-white-12);
@@ -458,10 +454,10 @@
458
454
  --neutrals-black-18: rgb(4 4 6 / 0.18);
459
455
 
460
456
  /** || red || */
461
- --red-1: rgb(222 11 34 / 0.08);
462
- --red-2: rgb(222 11 34 / 0.16);
463
- --red-3: rgb(222 11 34 / 0.24);
464
- --red-4: rgb(222 11 34 / 0.36);
457
+ --red-1: rgb(217 0 29 / 0.08);
458
+ --red-2: rgb(217 0 29 / 0.16);
459
+ --red-3: rgb(217 0 29 / 0.24);
460
+ --red-4: rgb(217 0 29 / 0.36);
465
461
  --red-6: #fd736a;
466
462
  --red-7: #ffbfb7;
467
463
  --red-fill-hover: var(--red-5);
@@ -477,22 +473,22 @@
477
473
  --yellow-4: rgb(245 158 11 / 0.36);
478
474
  --yellow-6: #eec469;
479
475
  --yellow-7: #f7e7bb;
480
- --yellow-on-inverse: var(--orange-5);
476
+ --yellow-on-inverse: #9f4800;
481
477
 
482
478
  /** || green || */
483
- --green-1: rgb(0 134 40 / 0.08);
484
- --green-2: rgb(0 134 40 / 0.16);
485
- --green-3: rgb(0 134 40 / 0.24);
486
- --green-4: rgb(0 134 40 / 0.36);
479
+ --green-1: rgb(0 125 30 / 0.08);
480
+ --green-2: rgb(0 125 30 / 0.16);
481
+ --green-3: rgb(0 125 30 / 0.24);
482
+ --green-4: rgb(0 125 30 / 0.36);
487
483
  --green-6: #73d885;
488
484
  --green-7: #bbedc0;
489
485
  --green-on-inverse: var(--green-5);
490
486
 
491
487
  /** || blue || */
492
- --blue-1: rgb(13 116 206 / 0.08);
493
- --blue-2: rgb(13 116 206 / 0.16);
494
- --blue-3: rgb(13 116 206 / 0.24);
495
- --blue-4: rgb(13 116 206 / 0.36);
488
+ --blue-1: rgb(0 108 197 / 0.08);
489
+ --blue-2: rgb(0 108 197 / 0.16);
490
+ --blue-3: rgb(0 108 197 / 0.24);
491
+ --blue-4: rgb(0 108 197 / 0.36);
496
492
  --blue-6: #8dc1ff;
497
493
  --blue-7: #c6e1ff;
498
494
  --blue-on-inverse: var(--blue-5);
@@ -539,7 +535,7 @@
539
535
 
540
536
  /** || focus || */
541
537
  --ring-secondary: var(--secondary-7);
542
- --ring-neutral-halo: rgb(127 127 134 / 0.5);
538
+ --ring-neutral-halo: rgb(144 144 151 / 0.5);
543
539
  --ring-primary-halo: rgb(255 122 119 / 0.5);
544
540
  --ring-secondary-halo: rgb(110 123 195 / 0.5);
545
541
  --ring-destructive-halo: rgb(253 115 106 / 0.5);
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  [data-yuw-color='neutral'] button.bg-primary:not(:disabled):hover {
34
- background: var(--gray-11);
34
+ background: var(--neutrals-element-mid);
35
35
  }
36
36
 
37
37
  [data-yuw-color='destructive'] {
@@ -78,6 +78,16 @@ export declare class YuwClassDirective {
78
78
  };
79
79
  }, {}, never, never, true, never>;
80
80
  }
81
+ /**
82
+ * Spacing of every floating panel that lists options (context menus, combobox panels, popover menus): the panel pads
83
+ * 8px and each row another 8px, so text sits 16px from the edge everywhere. Helm ships each family with its own
84
+ * numbers, and these override them from the `yuw-*` layer.
85
+ */
86
+ export declare const YUW_MENU_PANEL_CLASS = "p-2";
87
+ export declare const YUW_MENU_ITEM_CLASS = "gap-2.5 px-2 py-2";
88
+ export declare const YUW_MENU_INDICATOR_ITEM_CLASS = "gap-2.5 py-2 ps-2";
89
+ export declare const YUW_MENU_LABEL_CLASS = "block px-2 pt-1 pb-2 text-sm font-normal text-muted-foreground";
90
+ export declare const YUW_MENU_SEPARATOR_CLASS = "-mx-2 my-1.5";
81
91
  /** Scroll axes the mouse-scroll directives drag along. */
82
92
  type YuwScrollAxisDto = 'x' | 'y';
83
93
  /**
@@ -527,7 +537,8 @@ export type YuwComboboxValue = string | string[] | undefined;
527
537
  *
528
538
  * Content marked `yuwComboboxFooter` is projected at the bottom of the option list, for actions
529
539
  * that belong with it (a "clear all", say); content marked `yuwComboboxHeader` is projected at the top
530
- * of the panel, for a title. The consumer renders and styles both.
540
+ * of the panel, for a title. The panel spaces both: the header reads as a menu label, the footer sits
541
+ * under a separator.
531
542
  *
532
543
  * `multiple` takes precedence over `readonlyTrigger`: when both are set the multi-select
533
544
  * chips shape renders and `readonlyTrigger` is ignored.
@@ -569,14 +580,17 @@ export declare class YuwComboboxComponent<TData = unknown> extends YuwValueAcces
569
580
  readonly triggerVariant: import("@angular/core").InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
570
581
  readonly value: import("@angular/core").ModelSignal<YuwComboboxValue>;
571
582
  protected readonly _focusSelectors: string[];
583
+ protected readonly _footerClass = "-mx-2 mt-1.5 border-t px-2 pt-1.5 empty:hidden";
572
584
  private readonly _generatedId;
585
+ protected readonly _headerClass: string;
573
586
  protected readonly _itemToString: (value: string) => string;
587
+ protected readonly _listClass = "max-h-none! min-h-0 p-0!";
574
588
  protected readonly _chipsClass: import("@angular/core").Signal<string>;
575
589
  protected readonly _clearVisible: import("@angular/core").Signal<boolean>;
576
- protected readonly _contentClass: import("@angular/core").Signal<"" | "w-auto min-w-56 max-w-80">;
590
+ protected readonly _contentClass: import("@angular/core").Signal<string>;
577
591
  protected readonly _controlId: import("@angular/core").Signal<string>;
578
592
  protected readonly _fieldClass: import("@angular/core").Signal<string>;
579
- protected readonly _itemClass: import("@angular/core").Signal<"" | "cursor-pointer! gap-3! pe-1.5! [&>ng-icon]:hidden!">;
593
+ protected readonly _itemClass: import("@angular/core").Signal<string>;
580
594
  private readonly _labelByValue;
581
595
  protected readonly _multipleValue: import("@angular/core").Signal<string[]>;
582
596
  protected readonly _searchInPanel: import("@angular/core").Signal<boolean>;
@@ -2846,6 +2860,11 @@ export declare class YuwContextMenuSubIndicatorComponent {
2846
2860
  * with an isolated `ngc` compile. Own inputs of the helm classes (`disabled`/`align`/`side` on
2847
2861
  * the trigger, `inset`/`variant` on items, `sideOffset` on the panel) *are* forwarded
2848
2862
  * declaratively.
2863
+ *
2864
+ * `triggered` is the exception, and it must NOT be bridged: the helm items already expose
2865
+ * `cdkMenuItemTriggered` as `triggered` on the element, and Angular binds a `(triggered)` listener to
2866
+ * every directive on the element with an output of that name. A second `triggered` here ran every
2867
+ * listener twice per click — two downloads, and a checkbox toggled back to where it was.
2849
2868
  */
2850
2869
  /**
2851
2870
  * Attach to an element to open a context menu upon right-clicking.
@@ -2911,12 +2930,8 @@ export declare class YuwContextMenuDirective {
2911
2930
  }
2912
2931
  /** Interactive action item within a context menu. Place on a `<button>` element. */
2913
2932
  export declare class YuwContextMenuItemDirective {
2914
- private readonly _item;
2915
- readonly triggered: import("@angular/core").OutputRef<void>;
2916
2933
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwContextMenuItemDirective, never>;
2917
- static ɵdir: i0.ɵɵDirectiveDeclaration<YuwContextMenuItemDirective, "[yuwContextMenuItem]", never, {}, {
2918
- "triggered": "triggered";
2919
- }, never, never, true, [{
2934
+ static ɵdir: i0.ɵɵDirectiveDeclaration<YuwContextMenuItemDirective, "[yuwContextMenuItem]", never, {}, {}, never, never, true, [{
2920
2935
  directive: typeof i2.HlmDropdownMenuItem;
2921
2936
  inputs: {
2922
2937
  "disabled": "disabled";
@@ -2949,7 +2964,6 @@ export declare class YuwContextMenuCheckboxDirective {
2949
2964
  private readonly _item;
2950
2965
  readonly checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
2951
2966
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
2952
- readonly triggered: import("@angular/core").OutputRef<void>;
2953
2967
  constructor();
2954
2968
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwContextMenuCheckboxDirective, never>;
2955
2969
  static ɵdir: i0.ɵɵDirectiveDeclaration<YuwContextMenuCheckboxDirective, "[yuwContextMenuCheckbox]", never, {
@@ -2963,9 +2977,7 @@ export declare class YuwContextMenuCheckboxDirective {
2963
2977
  "required": false;
2964
2978
  "isSignal": true;
2965
2979
  };
2966
- }, {
2967
- "triggered": "triggered";
2968
- }, never, never, true, [{
2980
+ }, {}, never, never, true, [{
2969
2981
  directive: typeof i2.HlmDropdownMenuCheckbox;
2970
2982
  inputs: {
2971
2983
  "inset": "inset";
@@ -2999,7 +3011,6 @@ export declare class YuwContextMenuRadioDirective {
2999
3011
  private readonly _item;
3000
3012
  readonly checked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
3001
3013
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
3002
- readonly triggered: import("@angular/core").OutputRef<void>;
3003
3014
  constructor();
3004
3015
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwContextMenuRadioDirective, never>;
3005
3016
  static ɵdir: i0.ɵɵDirectiveDeclaration<YuwContextMenuRadioDirective, "[yuwContextMenuRadio]", never, {
@@ -3013,9 +3024,7 @@ export declare class YuwContextMenuRadioDirective {
3013
3024
  "required": false;
3014
3025
  "isSignal": true;
3015
3026
  };
3016
- }, {
3017
- "triggered": "triggered";
3018
- }, never, never, true, [{
3027
+ }, {}, never, never, true, [{
3019
3028
  directive: typeof i2.HlmDropdownMenuRadio;
3020
3029
  inputs: {};
3021
3030
  outputs: {};
@@ -4560,7 +4569,8 @@ export type YuwPopoverAlignDto = 'start' | 'center' | 'end';
4560
4569
  * - `title`: Optional header title text. User-facing text the consuming app is responsible for translating.
4561
4570
  * - `description`: Optional header description text. User-facing text the consuming app is responsible for translating.
4562
4571
  * - `panelClass`: Extra classes merged onto the popover panel (e.g. `w-80` to widen it). They win
4563
- * over the library defaults via `twMerge`.
4572
+ * over the library defaults via `twMerge`. The panel pads 8px like every menu, and the header reads as a
4573
+ * menu label, so projected content places itself.
4564
4574
  * - `triggerVariant`: Button style variant for the trigger button.
4565
4575
  * - `triggerColor`: Brand color theme for the trigger button (any `YuwColorDto` value). Default is
4566
4576
  * `'neutral'`.
@@ -4600,6 +4610,7 @@ export declare class YuwPopoverComponent {
4600
4610
  readonly triggerSize: import("@angular/core").InputSignal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined>;
4601
4611
  readonly triggerTransparent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
4602
4612
  readonly triggerVariant: import("@angular/core").InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
4613
+ protected readonly _panelClass: import("@angular/core").Signal<string>;
4603
4614
  protected readonly _popoverState: import("@angular/core").Signal<"open" | "closed">;
4604
4615
  protected onOpenChange(state: 'open' | 'closed'): void;
4605
4616
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwPopoverComponent, never>;
@@ -7668,7 +7679,7 @@ export interface YuwsFormSheetLabels {
7668
7679
  * - `saveColor`: Color of the save button (any `YuwColorDto` value). Default is `'primary'`.
7669
7680
  * - `saveDisabled`: Disables the save button. Default is `false`.
7670
7681
  * - `saveIcon`: ng-icon name of the save button's icon, registered by the consumer with `provideIcons` unless it is the
7671
- * default. Default is `'lucideSave'`.
7682
+ * default. Default is `'lucideSaveCheck'`.
7672
7683
  * - `saving`: Disables the footer actions while the host's write is in flight. Default is `false`.
7673
7684
  * - `title` (required): Panel title.
7674
7685
  * - `open` (model): Whether the panel is open.
@@ -8519,7 +8530,7 @@ export declare class YuwsFilterContentDirective {
8519
8530
  * `showExport`, `shareSource`, `hideableColumns`, `viewMode`. Setting `viewMode` adds a list/block switch bound
8520
8531
  * two-way to it (`viewModeChange` is the click listener); its names come from `labels.viewMode`. Saved filter sets need `filterSets` and `labels.filters.sets`;
8521
8532
  * the toolbar emits `setSaved`, `setRenamed` and `setDeleted` and the consumer persists them. `labels` holds every text and the consumer translates it;
8522
- * `idleColor` is the tone of the filter row's outline controls (filters, add button, star). Each active
8533
+ * `idleColor` is the tone of the filter row's outline controls (filters, add button). Each active
8523
8534
  * group renders a combobox opened from an outline button; a projected `<ng-template yuwsFilterContent="groupId">` replaces it (see
8524
8535
  * `YuwsFilterContentDirective`). `selection` may be set from outside at any time, e.g. restored from
8525
8536
  * IndexedDB, and the row shows a filter for every group it holds.