@4sh/ui-kit 0.7.0 → 0.8.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.
Files changed (82) hide show
  1. package/README.fr.md +12 -11
  2. package/README.md +12 -11
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +6 -4
  10. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +206 -25
  12. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +16 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
  18. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  20. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  28. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  29. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
  32. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +6 -4
  38. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms.mjs +7 -2
  40. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  42. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  43. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
  44. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
  46. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
  48. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -2
  50. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  52. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  53. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
  54. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +1 -1
  56. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  57. package/mcp/data/text-search-docs.json +437 -17
  58. package/mcp/data/ui-config.json +830 -0
  59. package/mcp/package.json +1 -1
  60. package/package.json +13 -1
  61. package/styles/base/_ripple.scss +53 -0
  62. package/styles/component-vars.scss +59 -1
  63. package/styles/index.scss +1 -0
  64. package/styles/settings/_ui-config.scss +9 -0
  65. package/styles.css +1 -1
  66. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  67. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
  68. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +57 -2
  69. package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
  70. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  71. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  72. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  73. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  74. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
  75. package/types/4sh-ui-kit-forms.d.ts +5 -1
  76. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  77. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  78. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  79. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  80. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
  81. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  82. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -0,0 +1,201 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { UiIconType } from '@4sh/ui-kit/base/ui-icon';
3
+ import { UiLevel } from '@4sh/ui-kit/types';
4
+
5
+ /** Identifier of a bottom tab (matched against the bar `value`). */
6
+ type UiBottomTabValue = string | number;
7
+ /** Payload emitted when the active tab changes. */
8
+ interface UiBottomTabBarChangeEvent {
9
+ /** Value of the tab that became active. */
10
+ value: UiBottomTabValue;
11
+ /** Originating DOM event (click / keyboard). */
12
+ originalEvent: Event;
13
+ }
14
+ /**
15
+ * ui-bottom-tab , a single destination inside a {@link UiBottomTabBar}.
16
+ *
17
+ * Renders a real native `<button>` , or an `<a>` as soon as `href` / `routerLink`
18
+ * is set, so Cmd/Ctrl+click and "open in new tab" keep working. The host is
19
+ * `display: contents`, so the control sits directly inside the bar's `<nav>`.
20
+ *
21
+ * The active state is owned by the bar (`value` comparison) and surfaced to
22
+ * assistive tech as `aria-current="page"`, the pattern for a navigation
23
+ * landmark , not `role="tab"`, which would require an associated tab panel.
24
+ *
25
+ * Declared before {@link UiBottomTabBar} so its `inject()` reference resolves
26
+ * at construction time without a temporal-dead-zone error.
27
+ */
28
+ declare class UiBottomTab {
29
+ /** Identifier of this tab (matched against the bar `value`). */
30
+ value: _angular_core.InputSignal<UiBottomTabValue>;
31
+ /** Visible label under the icon. Omit it for an icon-only tab (then `ariaLabel` names it). */
32
+ label: _angular_core.InputSignal<string | undefined>;
33
+ /** Icon name in the resting state. */
34
+ icon: _angular_core.InputSignal<string | undefined>;
35
+ /** Icon name once active (falls back to `icon`). */
36
+ activeIcon: _angular_core.InputSignal<string | undefined>;
37
+ /**
38
+ * Icon variant in the resting state. Set it to `outline` to get the classic
39
+ * outline → filled swap on activation, `activeIconType` already being `solid`
40
+ * , but check the icon exists in the family's outline set first (FontAwesome
41
+ * Free only ships a handful).
42
+ */
43
+ iconType: _angular_core.InputSignal<UiIconType>;
44
+ /** Icon variant once active. */
45
+ activeIconType: _angular_core.InputSignal<UiIconType>;
46
+ /** Disable the tab (not activable, skipped by the arrow keys). */
47
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
48
+ /** Accessible name override (mandatory when no label is visible). */
49
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
50
+ /** Press wave on this tab. `false` opts it out, global activation included. */
51
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
52
+ /** External / plain URL. Presence switches the control to an `<a>`. */
53
+ href: _angular_core.InputSignal<string | undefined>;
54
+ /** Angular router target. Presence switches the control to an `<a>` (RouterLink). */
55
+ routerLink: _angular_core.InputSignal<string | unknown[] | undefined>;
56
+ /** Anchor target (e.g. "_blank"). Link mode only. */
57
+ target: _angular_core.InputSignal<string | undefined>;
58
+ /** Anchor rel. Defaults to "noopener noreferrer" when target="_blank". */
59
+ rel: _angular_core.InputSignal<string | undefined>;
60
+ /** Fired on activation (click, Enter/Space), even when already active. */
61
+ tabClick: _angular_core.OutputEmitterRef<MouseEvent>;
62
+ /** @ignore Parent bar (owns the active value + the shared options). */
63
+ protected readonly bar: UiBottomTabBar;
64
+ /** @ignore The native control, for programmatic focus. */
65
+ private readonly controlEl;
66
+ /** @ignore Whether this tab is the active one. */
67
+ readonly active: _angular_core.Signal<boolean>;
68
+ /** @ignore Label rendered only when provided AND the bar shows labels. */
69
+ protected readonly labelVisible: _angular_core.Signal<boolean>;
70
+ /** @ignore Icon swapped on activation (filled once selected, outlined otherwise). */
71
+ protected readonly resolvedIcon: _angular_core.Signal<string | undefined>;
72
+ /** @ignore */
73
+ protected readonly resolvedIconType: _angular_core.Signal<UiIconType>;
74
+ /**
75
+ * @ignore Accessible name: explicit, otherwise the hidden label. Left `null`
76
+ * when the label is visible , the control's own text names it.
77
+ */
78
+ protected readonly accessibleLabel: _angular_core.Signal<string | null>;
79
+ /** @ignore Press wave: opted out on the tab, or on the whole bar. */
80
+ protected readonly rippleOn: _angular_core.Signal<boolean>;
81
+ /** @ignore Control renders an `<a>` (a URL or a router target was provided). */
82
+ protected readonly isLink: _angular_core.Signal<boolean>;
83
+ /** @ignore */
84
+ protected readonly useRouterLink: _angular_core.Signal<boolean>;
85
+ /** @ignore Anchor rel: explicit, or a safe default for target="_blank". */
86
+ protected readonly computedRel: _angular_core.Signal<string | null>;
87
+ /** @ignore An `<a>` has no native `disabled`: take it out of the tab order. */
88
+ protected readonly linkTabindex: _angular_core.Signal<-1 | null>;
89
+ /** @ignore */
90
+ protected readonly classes: _angular_core.Signal<string>;
91
+ constructor();
92
+ /** Move focus to this tab's control. */
93
+ focus(options?: FocusOptions): void;
94
+ /** @ignore */
95
+ protected onClick(event: MouseEvent): void;
96
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomTab, never>;
97
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBottomTab, "ui-bottom-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "activeIcon": { "alias": "activeIcon"; "required": false; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; "activeIconType": { "alias": "activeIconType"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; }, { "tabClick": "tabClick"; }, never, ["*"], true, never>;
98
+ }
99
+ /**
100
+ * ui-bottom-tab-action , the circular action raised above a
101
+ * {@link UiBottomTabBar} (the "float action" slot of the Figma component).
102
+ *
103
+ * A command, not a destination: it never carries the bar's active state. Place
104
+ * it anywhere among the tabs , between the second and the third for the classic
105
+ * centred layout. Always icon-only, so `ariaLabel` is mandatory.
106
+ */
107
+ declare class UiBottomTabAction {
108
+ /** Icon name. */
109
+ icon: _angular_core.InputSignal<string>;
110
+ /** Icon variant. */
111
+ iconType: _angular_core.InputSignal<UiIconType>;
112
+ /** Colour family, mapped onto the `actions.{level}` tokens. */
113
+ level: _angular_core.InputSignal<UiLevel>;
114
+ /** Accessible name , mandatory, the button carries no visible text. */
115
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
116
+ /** Disable the action (native attribute). */
117
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
118
+ /** Press wave on this action. `false` opts it out, global activation included. */
119
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
120
+ /** Fired on click (never when disabled). */
121
+ actionClick: _angular_core.OutputEmitterRef<MouseEvent>;
122
+ /** @ignore */
123
+ private readonly controlEl;
124
+ /** @ignore */
125
+ protected readonly classes: _angular_core.Signal<string>;
126
+ constructor();
127
+ /** Move focus to the action button. */
128
+ focus(options?: FocusOptions): void;
129
+ /** @ignore */
130
+ protected onClick(event: MouseEvent): void;
131
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomTabAction, never>;
132
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBottomTabAction, "ui-bottom-tab-action", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; }, never, never, true, never>;
133
+ }
134
+ /**
135
+ * ui-bottom-tab-bar , bottom navigation bar for touch devices (mobile, tablet).
136
+ *
137
+ * A `<nav>` landmark pinned to the bottom of the viewport, holding three to five
138
+ * {@link UiBottomTab} destinations and, optionally, a raised
139
+ * {@link UiBottomTabAction}. Every colour and metric comes from the
140
+ * `navigation.*` / `actions.*` design tokens.
141
+ *
142
+ * Built for the constraints of the device it lives on: the bar reserves the
143
+ * system inset (`safeArea`, the iOS home indicator and the Android gesture bar),
144
+ * items never fall under the 44px touch target, the double-tap zoom delay and
145
+ * the native tap flash are off (the kit's ripple owns press feedback), and the
146
+ * bar disappears from print. It positions itself `fixed` , pass `contained` to
147
+ * lay it out inside a positioned ancestor instead (a phone mockup, an embedded
148
+ * shell).
149
+ *
150
+ * @example
151
+ * ```html
152
+ * <ui-bottom-tab-bar [(value)]="route" ariaLabel="Navigation principale">
153
+ * <ui-bottom-tab value="/home" icon="house" label="Accueil" />
154
+ * <ui-bottom-tab value="/search" icon="magnifying-glass" label="Recherche" />
155
+ * <ui-bottom-tab-action ariaLabel="Nouveau message" (actionClick)="compose()" />
156
+ * <ui-bottom-tab value="/inbox" icon="envelope" label="Messages">
157
+ * <ui-badge value="3" level="error" />
158
+ * </ui-bottom-tab>
159
+ * <ui-bottom-tab value="/settings" icon="gear" label="Réglages" />
160
+ * </ui-bottom-tab-bar>
161
+ * ```
162
+ */
163
+ declare class UiBottomTabBar {
164
+ /** Value of the active tab (two-way). `undefined` = no active tab. */
165
+ value: _angular_core.ModelSignal<UiBottomTabValue | undefined>;
166
+ /** Accessible name of the navigation landmark. */
167
+ ariaLabel: _angular_core.InputSignal<string>;
168
+ /** Show the tabs' labels. `false` renders an icon-only bar. */
169
+ showLabels: _angular_core.InputSignalWithTransform<boolean, unknown>;
170
+ /** Reserve the system inset under the bar (iOS home indicator, Android gesture bar). */
171
+ safeArea: _angular_core.InputSignalWithTransform<boolean, unknown>;
172
+ /** Lay the bar out inside its positioned ancestor instead of the viewport. */
173
+ contained: _angular_core.InputSignalWithTransform<boolean, unknown>;
174
+ /** Press wave on the tabs. `false` cuts it on this bar, global activation included. */
175
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
176
+ /** Fired whenever the active tab changes (click / keyboard). */
177
+ tabChange: _angular_core.OutputEmitterRef<UiBottomTabBarChangeEvent>;
178
+ /** @ignore The `<nav>` landmark (arrow-key walking happens inside it). */
179
+ private readonly navEl;
180
+ /** @ignore */
181
+ protected readonly classes: _angular_core.Signal<string>;
182
+ /** @ignore Whether the given value is the active tab. */
183
+ isActive(value: UiBottomTabValue): boolean;
184
+ /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
185
+ updateValue(value: UiBottomTabValue, event: Event): void;
186
+ /**
187
+ * @ignore Arrow keys / Home / End walk the bar's controls. This is additive:
188
+ * unlike the roving tabindex of the tabs pattern, every control keeps its
189
+ * place in the tab order , which is what a navigation landmark owes its users.
190
+ *
191
+ * The controls are read from the DOM rather than through a content query: the
192
+ * bar mixes two projected component types (tabs and the raised action), and a
193
+ * single query cannot see both.
194
+ */
195
+ protected onKeydown(event: KeyboardEvent): void;
196
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBottomTabBar, never>;
197
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBottomTabBar, "ui-bottom-tab-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "safeArea": { "alias": "safeArea"; "required": false; "isSignal": true; }; "contained": { "alias": "contained"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "tabChange": "tabChange"; }, never, ["*"], true, never>;
198
+ }
199
+
200
+ export { UiBottomTab, UiBottomTabAction, UiBottomTabBar };
201
+ export type { UiBottomTabBarChangeEvent, UiBottomTabValue };
@@ -44,6 +44,8 @@ declare class UiContextMenu {
44
44
  submenus: _angular_core.InputSignal<MenuSubmenuMode>;
45
45
  /** Animate the menu entrance (reduced-motion always wins). */
46
46
  motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
+ /** Ripple Effect */
48
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
49
  /** Emitted when the menu opens. */
48
50
  opened: _angular_core.OutputEmitterRef<void>;
49
51
  /** Emitted when the menu closes. */
@@ -98,7 +100,7 @@ declare class UiContextMenu {
98
100
  * (NOT rAF — it never fires in throttled/background tabs). */
99
101
  private queueFocusFirst;
100
102
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiContextMenu, never>;
101
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiContextMenu, "ui-context-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "global": { "alias": "global"; "required": false; "isSignal": true; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent"], never, true, never>;
103
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiContextMenu, "ui-context-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "global": { "alias": "global"; "required": false; "isSignal": true; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent"], never, true, never>;
102
104
  }
103
105
 
104
106
  export { UiContextMenu };
@@ -119,6 +119,8 @@ declare class UiMenu {
119
119
  submenus: _angular_core.InputSignal<MenuSubmenuMode>;
120
120
  /** Animate the popup entrance and the submenu collapse (reduced-motion always wins). */
121
121
  motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
122
+ /** Ripple Effect */
123
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
122
124
  /** Auto-flip the popup above the trigger when space is lacking below. */
123
125
  autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
124
126
  /** Tabindex of the menu's roving tab stop. */
@@ -228,7 +230,7 @@ declare class UiMenu {
228
230
  * (macrotask, not rAF: rAF never fires in throttled/background tabs). */
229
231
  private queueFocusTabStop;
230
232
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiMenu, never>;
231
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiMenu, "ui-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "popup": { "alias": "popup"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "submenuHeaderTemplate": { "alias": "submenuHeaderTemplate"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent", "startTemplate", "endTemplate"], never, true, never>;
233
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiMenu, "ui-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "popup": { "alias": "popup"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "submenuHeaderTemplate": { "alias": "submenuHeaderTemplate"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent", "startTemplate", "endTemplate"], never, true, never>;
232
234
  }
233
235
 
234
236
  export { UiMenu };
@@ -105,6 +105,8 @@ declare class UiSidebarMenu {
105
105
  ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
106
106
  /** Play the collapse animation on nested groups. */
107
107
  motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
108
+ /** Ripple Effect */
109
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
108
110
  /**
109
111
  * In the collapsed icon rail, reveal each item's label as a tooltip on hover /
110
112
  * focus (via the `[uiTooltip]` directive). No effect when expanded.
@@ -139,7 +141,7 @@ declare class UiSidebarMenu {
139
141
  /** @ignore Resolve the raw model into render nodes. */
140
142
  private resolve;
141
143
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSidebarMenu, never>;
142
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSidebarMenu, "ui-sidebar-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "itemClick": "itemClick"; }, never, never, true, never>;
144
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSidebarMenu, "ui-sidebar-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; }, { "expandedKeys": "expandedKeysChange"; "itemClick": "itemClick"; }, never, never, true, never>;
143
145
  }
144
146
 
145
147
  /** Edge the sidebar is docked to. */
@@ -200,6 +200,8 @@ declare class UiTabs {
200
200
  showNavigators: _angular_core.InputSignalWithTransform<boolean, unknown>;
201
201
  /** Animate the active indicator and panel transitions (reduced-motion always wins). */
202
202
  motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
203
+ /** Ripple Effect */
204
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
203
205
  /** Tabindex applied to the active tab (the group's single tab stop). */
204
206
  tabindex: _angular_core.InputSignalWithTransform<number, unknown>;
205
207
  /** Fired whenever the active tab changes (user click / keyboard / focus). */
@@ -233,7 +235,7 @@ declare class UiTabs {
233
235
  /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
234
236
  updateValue(value: UiTabValue, event: Event): void;
235
237
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiTabs, never>;
236
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiTabs, "ui-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "showNavigators": { "alias": "showNavigators"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "tabChange": "tabChange"; }, ["tabs", "hasPanels"], ["*"], true, never>;
238
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiTabs, "ui-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "showNavigators": { "alias": "showNavigators"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "tabChange": "tabChange"; }, ["tabs", "hasPanels"], ["*"], true, never>;
237
239
  }
238
240
 
239
241
  export { UiTab, UiTabList, UiTabPanel, UiTabPanels, UiTabs };
@@ -0,0 +1,156 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders } from '@angular/core';
3
+
4
+ /**
5
+ * What a delegated root (global scope or `[uiRippleScope]`) makes rippling by
6
+ * default: only what declares itself, i.e. the kit's curated controls (which
7
+ * carry `data-ripple="on"`) and whatever the application marks the same way.
8
+ * A design system paints no wave on markup it does not own.
9
+ */
10
+ declare const UI_RIPPLE_DEFAULT_SELECTOR = "[data-ripple=\"on\"]";
11
+ /**
12
+ * Everything clickable, curated set included. Pass it to
13
+ * `provideUiRipple({ selector: UI_RIPPLE_INTERACTIVE_SELECTOR })` to ripple the
14
+ * application's own controls too, without listing them one by one.
15
+ */
16
+ declare const UI_RIPPLE_INTERACTIVE_SELECTOR = "button, [role=\"button\"], a[href], [data-ripple=\"on\"]";
17
+ /** Kit-wide ripple options, set once through `provideUiRipple()`. */
18
+ interface UiRippleOptions {
19
+ /** Ripple the whole document (delegated on `<body>`). Default `true`. */
20
+ global?: boolean;
21
+ /** Elements a delegated root ripples. Default {@link UI_RIPPLE_DEFAULT_SELECTOR}. */
22
+ selector?: string;
23
+ }
24
+ declare const UI_RIPPLE_OPTIONS: InjectionToken<UiRippleOptions>;
25
+ /** Settings of one binding, read at press time so signal inputs stay live. */
26
+ interface UiRippleSettings {
27
+ /** `false` stands the binding down without unwiring it. */
28
+ enabled: boolean;
29
+ /** Start the wave at the element's centre rather than at the pointer. */
30
+ centered: boolean;
31
+ /** Delegation only: what ripples inside the root. */
32
+ selector: string;
33
+ }
34
+ /**
35
+ * Engine behind `[uiRipple]`, `[uiRippleScope]` and `provideUiRipple()`.
36
+ *
37
+ * One `pointerdown` listener per binding (passive, registered outside Angular:
38
+ * a press never triggers change detection), one clipping layer per host created
39
+ * on first use, one `<span>` per wave removed on `animationend`. Nothing is
40
+ * measured until a press actually happens.
41
+ *
42
+ * Appearance is not its business: the layer and the ink read the inherited
43
+ * `--ui-ripple-*` custom properties (`styles/base/_ripple.scss`).
44
+ */
45
+ declare class UiRippleEngine {
46
+ private readonly document;
47
+ private readonly zone;
48
+ private readonly isBrowser;
49
+ private readonly options;
50
+ private readonly layers;
51
+ private reducedMotion;
52
+ private uninstallGlobal;
53
+ /** Settings a binding starts from. */
54
+ readonly defaults: UiRippleSettings;
55
+ constructor();
56
+ /** Ripples the whole document. Called by `provideUiRipple()`. */
57
+ installGlobal(): void;
58
+ /** The host itself ripples. Returns the teardown. */
59
+ bind(host: HTMLElement, settings: () => UiRippleSettings): () => void;
60
+ /** Descendants matching the selector ripple. Returns the teardown. */
61
+ delegate(root: HTMLElement, settings: () => UiRippleSettings): () => void;
62
+ /**
63
+ * Spawns one wave on `host`, from the pointer position or from its centre.
64
+ * Public so an application can ripple from its own trigger (a keyboard
65
+ * shortcut, a remote event) without a press.
66
+ */
67
+ launch(host: HTMLElement, event?: PointerEvent, centered?: boolean): void;
68
+ private listen;
69
+ /** Clipping layer of a host, created on first press. */
70
+ private layerFor;
71
+ /** Disabled host, or a subtree opted out with `data-ripple="off"`. */
72
+ private inert;
73
+ /** Reduced-motion preference, or the kit-wide `data-motion="off"` switch. */
74
+ private stilled;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiRippleEngine, never>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiRippleEngine>;
77
+ }
78
+
79
+ /**
80
+ * Turns the ripple on for the WHOLE application: every `<button>`, every
81
+ * `[role="button"]` and everything marked `data-ripple="on"` answers a press
82
+ * with a wave, kit components included (the effect lands on their inner native
83
+ * control, not on the custom element).
84
+ *
85
+ * ```ts
86
+ * // app.config.ts
87
+ * providers: [provideUiRipple()];
88
+ *
89
+ * // widen what ripples
90
+ * providers: [provideUiRipple({ selector: 'button, [role="button"], a[href]' })];
91
+ *
92
+ * // set the kit-wide selector without turning the effect on everywhere
93
+ * providers: [provideUiRipple({ global: false, selector: '.card, button' })];
94
+ * ```
95
+ *
96
+ * Any element or subtree opts out with `data-ripple="off"` (or `[uiRipple]="false"`
97
+ * / `[uiRippleScope]="false"`). No provider is needed to use the directives.
98
+ */
99
+ declare function provideUiRipple(options?: UiRippleOptions): EnvironmentProviders;
100
+ /**
101
+ * uiRipple, targeted: THIS element answers a press with a wave starting at the
102
+ * pointer.
103
+ *
104
+ * ```html
105
+ * <button uiRipple>Valider</button>
106
+ * <div class="tile" uiRipple rippleCentered>…</div>
107
+ * <button uiRipple [uiRipple]="false">jamais d'onde, ici ni au-dessous</button>
108
+ * ```
109
+ *
110
+ * The wave is clipped by the element's own box and follows its `border-radius`.
111
+ * Retune it with the inherited `--ui-ripple-*` custom properties, on the element
112
+ * or on any ancestor. Put the directive on a native control rather than on a kit
113
+ * component: `<ui-button uiRipple>` would ripple the custom element's square box,
114
+ * where `<ui-button uiRippleScope>` reaches its inner `<button>`.
115
+ */
116
+ declare class UiRipple {
117
+ /** Wave on this element. `false` opts it and its subtree out, global effect included. */
118
+ readonly enabled: i0.InputSignalWithTransform<boolean, unknown>;
119
+ /** Start at the centre rather than at the pointer (icon-only controls). */
120
+ readonly rippleCentered: i0.InputSignalWithTransform<boolean, unknown>;
121
+ constructor();
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiRipple, never>;
123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiRipple, "[uiRipple]", never, { "enabled": { "alias": "uiRipple"; "required": false; "isSignal": true; }; "rippleCentered": { "alias": "rippleCentered"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
124
+ }
125
+ /**
126
+ * uiRippleScope, local: everything interactive INSIDE this element ripples, with
127
+ * a single listener on the container rather than one directive per control.
128
+ *
129
+ * ```html
130
+ * <div class="toolbar" uiRippleScope>
131
+ * <ui-button label="Enregistrer" />
132
+ * <button>Annuler</button>
133
+ * </div>
134
+ *
135
+ * <nav uiRippleScope rippleSelector="a, button">…</nav>
136
+ * <section [uiRippleScope]="false">…</section>
137
+ * ```
138
+ *
139
+ * Also the way to ripple a single kit component: `<ui-button uiRippleScope />`
140
+ * reaches the native `<button>` it renders, so the wave follows its radius.
141
+ * Nested scopes and `[uiRipple]` do not stack: the innermost declaration wins.
142
+ */
143
+ declare class UiRippleScope {
144
+ /** Ripple inside this element. `false` opts the whole subtree out. */
145
+ readonly enabled: i0.InputSignalWithTransform<boolean, unknown>;
146
+ /** Start at the centre rather than at the pointer. */
147
+ readonly rippleCentered: i0.InputSignalWithTransform<boolean, unknown>;
148
+ /** What ripples inside. Defaults to the kit-wide selector. */
149
+ readonly rippleSelector: i0.InputSignal<string | undefined>;
150
+ constructor();
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiRippleScope, never>;
152
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiRippleScope, "[uiRippleScope]", never, { "enabled": { "alias": "uiRippleScope"; "required": false; "isSignal": true; }; "rippleCentered": { "alias": "rippleCentered"; "required": false; "isSignal": true; }; "rippleSelector": { "alias": "rippleSelector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
153
+ }
154
+
155
+ export { UI_RIPPLE_DEFAULT_SELECTOR, UI_RIPPLE_INTERACTIVE_SELECTOR, UI_RIPPLE_OPTIONS, UiRipple, UiRippleEngine, UiRippleScope, provideUiRipple };
156
+ export type { UiRippleOptions, UiRippleSettings };
@@ -73,6 +73,8 @@ declare class UiPaginator {
73
73
  currentPageReportTemplate: _angular_core.InputSignal<string>;
74
74
  /** Disables every control. */
75
75
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
76
+ /** Ripple Effect */
77
+ ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
76
78
  /** Accessible name of the navigation landmark. */
77
79
  ariaLabel: _angular_core.InputSignal<string>;
78
80
  /** Accessible name pattern of a page button (`{page}` is replaced). */
@@ -143,7 +145,7 @@ declare class UiPaginator {
143
145
  /** @ignore */
144
146
  private emitPage;
145
147
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiPaginator, never>;
146
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiPaginator, "ui-paginator", never, { "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "pageLinks": { "alias": "pageLinks"; "required": false; "isSignal": true; }; "ellipsis": { "alias": "ellipsis"; "required": false; "isSignal": true; }; "boundaryCount": { "alias": "boundaryCount"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; "isSignal": true; }; "showPageLinks": { "alias": "showPageLinks"; "required": false; "isSignal": true; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; "isSignal": true; }; "currentPageReportTemplate": { "alias": "currentPageReportTemplate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "pageAriaLabel": { "alias": "pageAriaLabel"; "required": false; "isSignal": true; }; "firstPageAriaLabel": { "alias": "firstPageAriaLabel"; "required": false; "isSignal": true; }; "prevPageAriaLabel": { "alias": "prevPageAriaLabel"; "required": false; "isSignal": true; }; "nextPageAriaLabel": { "alias": "nextPageAriaLabel"; "required": false; "isSignal": true; }; "lastPageAriaLabel": { "alias": "lastPageAriaLabel"; "required": false; "isSignal": true; }; "rowsPerPageAriaLabel": { "alias": "rowsPerPageAriaLabel"; "required": false; "isSignal": true; }; }, { "rows": "rowsChange"; "first": "firstChange"; "pageChange": "pageChange"; }, ["firstIconTemplate", "prevIconTemplate", "nextIconTemplate", "lastIconTemplate", "pageLinkTemplate", "startTemplate", "endTemplate", "reportTemplate"], never, true, never>;
148
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiPaginator, "ui-paginator", never, { "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "pageLinks": { "alias": "pageLinks"; "required": false; "isSignal": true; }; "ellipsis": { "alias": "ellipsis"; "required": false; "isSignal": true; }; "boundaryCount": { "alias": "boundaryCount"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "showFirstLastIcon": { "alias": "showFirstLastIcon"; "required": false; "isSignal": true; }; "showPageLinks": { "alias": "showPageLinks"; "required": false; "isSignal": true; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; "isSignal": true; }; "currentPageReportTemplate": { "alias": "currentPageReportTemplate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "pageAriaLabel": { "alias": "pageAriaLabel"; "required": false; "isSignal": true; }; "firstPageAriaLabel": { "alias": "firstPageAriaLabel"; "required": false; "isSignal": true; }; "prevPageAriaLabel": { "alias": "prevPageAriaLabel"; "required": false; "isSignal": true; }; "nextPageAriaLabel": { "alias": "nextPageAriaLabel"; "required": false; "isSignal": true; }; "lastPageAriaLabel": { "alias": "lastPageAriaLabel"; "required": false; "isSignal": true; }; "rowsPerPageAriaLabel": { "alias": "rowsPerPageAriaLabel"; "required": false; "isSignal": true; }; }, { "rows": "rowsChange"; "first": "firstChange"; "pageChange": "pageChange"; }, ["firstIconTemplate", "prevIconTemplate", "nextIconTemplate", "lastIconTemplate", "pageLinkTemplate", "startTemplate", "endTemplate", "reportTemplate"], never, true, never>;
147
149
  }
148
150
 
149
151
  export { UiPaginator };