@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,298 @@
1
+ import { DOCUMENT, isPlatformBrowser } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, inject, NgZone, PLATFORM_ID, DestroyRef, Injectable, makeEnvironmentProviders, provideEnvironmentInitializer, input, booleanAttribute, ElementRef, Directive } from '@angular/core';
4
+
5
+ /**
6
+ * What a delegated root (global scope or `[uiRippleScope]`) makes rippling by
7
+ * default: only what declares itself, i.e. the kit's curated controls (which
8
+ * carry `data-ripple="on"`) and whatever the application marks the same way.
9
+ * A design system paints no wave on markup it does not own.
10
+ */
11
+ const UI_RIPPLE_DEFAULT_SELECTOR = '[data-ripple="on"]';
12
+ /**
13
+ * Everything clickable, curated set included. Pass it to
14
+ * `provideUiRipple({ selector: UI_RIPPLE_INTERACTIVE_SELECTOR })` to ripple the
15
+ * application's own controls too, without listing them one by one.
16
+ */
17
+ const UI_RIPPLE_INTERACTIVE_SELECTOR = 'button, [role="button"], a[href], [data-ripple="on"]';
18
+ const UI_RIPPLE_OPTIONS = new InjectionToken('UI_RIPPLE_OPTIONS');
19
+ const CLAIMED = Symbol.for('@4sh/ui-kit/ripple:claimed');
20
+ const LAYER_CLASS = 'ui-ripple-layer';
21
+ const INK_CLASS = 'ui-ripple-ink';
22
+ /** Waves alive at once on one host, so a fast clicker cannot pile up nodes. */
23
+ const MAX_INK = 4;
24
+ /** One press, one wave: the innermost binding claims it, every other root stands down. */
25
+ function isClaimed(event) {
26
+ return event[CLAIMED] === true;
27
+ }
28
+ function claim(event) {
29
+ event[CLAIMED] = true;
30
+ }
31
+ /**
32
+ * Engine behind `[uiRipple]`, `[uiRippleScope]` and `provideUiRipple()`.
33
+ *
34
+ * One `pointerdown` listener per binding (passive, registered outside Angular:
35
+ * a press never triggers change detection), one clipping layer per host created
36
+ * on first use, one `<span>` per wave removed on `animationend`. Nothing is
37
+ * measured until a press actually happens.
38
+ *
39
+ * Appearance is not its business: the layer and the ink read the inherited
40
+ * `--ui-ripple-*` custom properties (`styles/base/_ripple.scss`).
41
+ */
42
+ class UiRippleEngine {
43
+ constructor() {
44
+ this.document = inject(DOCUMENT);
45
+ this.zone = inject(NgZone);
46
+ this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
47
+ this.options = inject(UI_RIPPLE_OPTIONS, { optional: true }) ?? {};
48
+ this.layers = new WeakMap();
49
+ /** Settings a binding starts from. */
50
+ this.defaults = {
51
+ enabled: true,
52
+ centered: false,
53
+ selector: this.options.selector ?? UI_RIPPLE_DEFAULT_SELECTOR,
54
+ };
55
+ inject(DestroyRef).onDestroy(() => this.uninstallGlobal?.());
56
+ }
57
+ /** Ripples the whole document. Called by `provideUiRipple()`. */
58
+ installGlobal() {
59
+ if (this.options.global === false || this.uninstallGlobal)
60
+ return;
61
+ this.uninstallGlobal = this.delegate(this.document.body, () => this.defaults);
62
+ }
63
+ /** The host itself ripples. Returns the teardown. */
64
+ bind(host, settings) {
65
+ const stop = this.listen(host, (event) => {
66
+ // Claimed even when off: an explicit directive always wins over an outer root.
67
+ claim(event);
68
+ const { enabled, centered } = settings();
69
+ if (enabled)
70
+ this.launch(host, event, centered);
71
+ });
72
+ return () => {
73
+ stop();
74
+ this.layers.get(host)?.remove();
75
+ this.layers.delete(host);
76
+ };
77
+ }
78
+ /** Descendants matching the selector ripple. Returns the teardown. */
79
+ delegate(root, settings) {
80
+ return this.listen(root, (event) => {
81
+ const { enabled, centered, selector } = settings();
82
+ if (!enabled)
83
+ return;
84
+ const target = event.target?.closest(selector);
85
+ // `closest` can climb past the root: that match belongs to an outer binding.
86
+ if (!(target instanceof HTMLElement) || !root.contains(target))
87
+ return;
88
+ claim(event);
89
+ this.launch(target, event, centered);
90
+ });
91
+ }
92
+ /**
93
+ * Spawns one wave on `host`, from the pointer position or from its centre.
94
+ * Public so an application can ripple from its own trigger (a keyboard
95
+ * shortcut, a remote event) without a press.
96
+ */
97
+ launch(host, event, centered = false) {
98
+ if (!this.isBrowser || this.stilled() || this.inert(host))
99
+ return;
100
+ const rect = host.getBoundingClientRect();
101
+ if (!rect.width || !rect.height)
102
+ return;
103
+ const x = event && !centered ? event.clientX - rect.left : rect.width / 2;
104
+ const y = event && !centered ? event.clientY - rect.top : rect.height / 2;
105
+ // Farthest corner, so the wave always covers the whole element.
106
+ const radius = Math.hypot(Math.max(x, rect.width - x), Math.max(y, rect.height - y));
107
+ const layer = this.layerFor(host);
108
+ while (layer.childElementCount >= MAX_INK && layer.firstElementChild) {
109
+ layer.firstElementChild.remove();
110
+ }
111
+ const ink = this.document.createElement('span');
112
+ ink.className = INK_CLASS;
113
+ ink.style.cssText = `left:${x - radius}px;top:${y - radius}px;width:${radius * 2}px;height:${radius * 2}px`;
114
+ ink.addEventListener('animationend', () => ink.remove(), { once: true });
115
+ layer.appendChild(ink);
116
+ }
117
+ listen(node, handle) {
118
+ if (!this.isBrowser)
119
+ return () => undefined;
120
+ const onPointerDown = (event) => {
121
+ if (event.button > 0 || !event.isPrimary || isClaimed(event))
122
+ return;
123
+ handle(event);
124
+ };
125
+ this.zone.runOutsideAngular(() => node.addEventListener('pointerdown', onPointerDown, { passive: true }));
126
+ return () => node.removeEventListener('pointerdown', onPointerDown);
127
+ }
128
+ /** Clipping layer of a host, created on first press. */
129
+ layerFor(host) {
130
+ const cached = this.layers.get(host);
131
+ if (cached?.parentElement === host)
132
+ return cached;
133
+ // Une autre instance du moteur a pu équiper cet hôte avant nous : sa couche
134
+ // vaut la nôtre, et en créer une seconde les empilerait sur l'élément.
135
+ const existing = host.querySelector(`:scope > .${LAYER_CLASS}`);
136
+ if (existing) {
137
+ this.layers.set(host, existing);
138
+ return existing;
139
+ }
140
+ // The layer anchors on the host, which must therefore establish the
141
+ // containing block. A host already positioned is left untouched.
142
+ if (this.document.defaultView?.getComputedStyle(host).position === 'static') {
143
+ host.style.position = 'relative';
144
+ }
145
+ const layer = this.document.createElement('span');
146
+ layer.className = LAYER_CLASS;
147
+ layer.setAttribute('aria-hidden', 'true');
148
+ host.appendChild(layer);
149
+ this.layers.set(host, layer);
150
+ return layer;
151
+ }
152
+ /** Disabled host, or a subtree opted out with `data-ripple="off"`. */
153
+ inert(host) {
154
+ return (host.disabled === true ||
155
+ host.getAttribute('aria-disabled') === 'true' ||
156
+ host.closest('[data-ripple="off"]') !== null);
157
+ }
158
+ /** Reduced-motion preference, or the kit-wide `data-motion="off"` switch. */
159
+ stilled() {
160
+ // Optional call: a non-browser DOM (jsdom) has no `matchMedia`.
161
+ this.reducedMotion ??= this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)');
162
+ return (this.reducedMotion?.matches === true ||
163
+ this.document.documentElement.dataset['motion'] === 'off');
164
+ }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRippleEngine, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
166
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRippleEngine, providedIn: 'root' }); }
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRippleEngine, decorators: [{
169
+ type: Injectable,
170
+ args: [{ providedIn: 'root' }]
171
+ }], ctorParameters: () => [] });
172
+
173
+ /**
174
+ * Turns the ripple on for the WHOLE application: every `<button>`, every
175
+ * `[role="button"]` and everything marked `data-ripple="on"` answers a press
176
+ * with a wave, kit components included (the effect lands on their inner native
177
+ * control, not on the custom element).
178
+ *
179
+ * ```ts
180
+ * // app.config.ts
181
+ * providers: [provideUiRipple()];
182
+ *
183
+ * // widen what ripples
184
+ * providers: [provideUiRipple({ selector: 'button, [role="button"], a[href]' })];
185
+ *
186
+ * // set the kit-wide selector without turning the effect on everywhere
187
+ * providers: [provideUiRipple({ global: false, selector: '.card, button' })];
188
+ * ```
189
+ *
190
+ * Any element or subtree opts out with `data-ripple="off"` (or `[uiRipple]="false"`
191
+ * / `[uiRippleScope]="false"`). No provider is needed to use the directives.
192
+ */
193
+ function provideUiRipple(options = {}) {
194
+ return makeEnvironmentProviders([
195
+ { provide: UI_RIPPLE_OPTIONS, useValue: options },
196
+ provideEnvironmentInitializer(() => inject(UiRippleEngine).installGlobal()),
197
+ ]);
198
+ }
199
+ /**
200
+ * uiRipple, targeted: THIS element answers a press with a wave starting at the
201
+ * pointer.
202
+ *
203
+ * ```html
204
+ * <button uiRipple>Valider</button>
205
+ * <div class="tile" uiRipple rippleCentered>…</div>
206
+ * <button uiRipple [uiRipple]="false">jamais d'onde, ici ni au-dessous</button>
207
+ * ```
208
+ *
209
+ * The wave is clipped by the element's own box and follows its `border-radius`.
210
+ * Retune it with the inherited `--ui-ripple-*` custom properties, on the element
211
+ * or on any ancestor. Put the directive on a native control rather than on a kit
212
+ * component: `<ui-button uiRipple>` would ripple the custom element's square box,
213
+ * where `<ui-button uiRippleScope>` reaches its inner `<button>`.
214
+ */
215
+ class UiRipple {
216
+ constructor() {
217
+ /** Wave on this element. `false` opts it and its subtree out, global effect included. */
218
+ this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'uiRipple', transform: booleanAttribute });
219
+ /** Start at the centre rather than at the pointer (icon-only controls). */
220
+ this.rippleCentered = input(false, { ...(ngDevMode ? { debugName: "rippleCentered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
221
+ const host = inject(ElementRef).nativeElement;
222
+ const engine = inject(UiRippleEngine);
223
+ inject(DestroyRef).onDestroy(engine.bind(host, () => ({
224
+ ...engine.defaults,
225
+ enabled: this.enabled(),
226
+ centered: this.rippleCentered(),
227
+ })));
228
+ }
229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRipple, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
230
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiRipple, isStandalone: true, selector: "[uiRipple]", inputs: { enabled: { classPropertyName: "enabled", publicName: "uiRipple", isSignal: true, isRequired: false, transformFunction: null }, rippleCentered: { classPropertyName: "rippleCentered", publicName: "rippleCentered", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-ripple": "enabled() ? null : \"off\"" } }, ngImport: i0 }); }
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRipple, decorators: [{
233
+ type: Directive,
234
+ args: [{
235
+ selector: '[uiRipple]',
236
+ host: { '[attr.data-ripple]': 'enabled() ? null : "off"' },
237
+ }]
238
+ }], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiRipple", required: false }] }], rippleCentered: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleCentered", required: false }] }] } });
239
+ /**
240
+ * uiRippleScope, local: everything interactive INSIDE this element ripples, with
241
+ * a single listener on the container rather than one directive per control.
242
+ *
243
+ * ```html
244
+ * <div class="toolbar" uiRippleScope>
245
+ * <ui-button label="Enregistrer" />
246
+ * <button>Annuler</button>
247
+ * </div>
248
+ *
249
+ * <nav uiRippleScope rippleSelector="a, button">…</nav>
250
+ * <section [uiRippleScope]="false">…</section>
251
+ * ```
252
+ *
253
+ * Also the way to ripple a single kit component: `<ui-button uiRippleScope />`
254
+ * reaches the native `<button>` it renders, so the wave follows its radius.
255
+ * Nested scopes and `[uiRipple]` do not stack: the innermost declaration wins.
256
+ */
257
+ class UiRippleScope {
258
+ constructor() {
259
+ /** Ripple inside this element. `false` opts the whole subtree out. */
260
+ this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'uiRippleScope', transform: booleanAttribute });
261
+ /** Start at the centre rather than at the pointer. */
262
+ this.rippleCentered = input(false, { ...(ngDevMode ? { debugName: "rippleCentered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
263
+ /** What ripples inside. Defaults to the kit-wide selector. */
264
+ this.rippleSelector = input(/* @ts-ignore */
265
+ ...(ngDevMode ? [undefined, { debugName: "rippleSelector" }] : /* istanbul ignore next */ []));
266
+ const root = inject(ElementRef).nativeElement;
267
+ const engine = inject(UiRippleEngine);
268
+ inject(DestroyRef).onDestroy(engine.delegate(root, () => ({
269
+ enabled: this.enabled(),
270
+ centered: this.rippleCentered(),
271
+ selector: this.rippleSelector() || engine.defaults.selector,
272
+ })));
273
+ }
274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRippleScope, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
275
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiRippleScope, isStandalone: true, selector: "[uiRippleScope]", inputs: { enabled: { classPropertyName: "enabled", publicName: "uiRippleScope", isSignal: true, isRequired: false, transformFunction: null }, rippleCentered: { classPropertyName: "rippleCentered", publicName: "rippleCentered", isSignal: true, isRequired: false, transformFunction: null }, rippleSelector: { classPropertyName: "rippleSelector", publicName: "rippleSelector", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-ripple": "enabled() ? null : \"off\"" } }, ngImport: i0 }); }
276
+ }
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiRippleScope, decorators: [{
278
+ type: Directive,
279
+ args: [{
280
+ selector: '[uiRippleScope]',
281
+ host: { '[attr.data-ripple]': 'enabled() ? null : "off"' },
282
+ }]
283
+ }], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiRippleScope", required: false }] }], rippleCentered: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleCentered", required: false }] }], rippleSelector: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleSelector", required: false }] }] } });
284
+
285
+ /*
286
+ * Public API Surface of ui-kit/ripple
287
+ *
288
+ * `UiRipple` / `UiRippleScope` directives + `provideUiRipple()`. The wave's own
289
+ * styles live in the package's global stylesheet (`styles/base/_ripple.scss` →
290
+ * `styles.css`), shipped with the design tokens.
291
+ */
292
+
293
+ /**
294
+ * Generated bundle index. Do not edit.
295
+ */
296
+
297
+ export { UI_RIPPLE_DEFAULT_SELECTOR, UI_RIPPLE_INTERACTIVE_SELECTOR, UI_RIPPLE_OPTIONS, UiRipple, UiRippleEngine, UiRippleScope, provideUiRipple };
298
+ //# sourceMappingURL=4sh-ui-kit-ripple.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-ripple.mjs","sources":["../../../projects/ui-kit/ripple/src/lib/ui-ripple.engine.ts","../../../projects/ui-kit/ripple/src/lib/ui-ripple.ts","../../../projects/ui-kit/ripple/src/public-api.ts","../../../projects/ui-kit/ripple/src/4sh-ui-kit-ripple.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { DestroyRef, inject, Injectable, InjectionToken, NgZone, PLATFORM_ID } from '@angular/core';\n\n/**\n * What a delegated root (global scope or `[uiRippleScope]`) makes rippling by\n * default: only what declares itself, i.e. the kit's curated controls (which\n * carry `data-ripple=\"on\"`) and whatever the application marks the same way.\n * A design system paints no wave on markup it does not own.\n */\nexport const UI_RIPPLE_DEFAULT_SELECTOR = '[data-ripple=\"on\"]';\n\n/**\n * Everything clickable, curated set included. Pass it to\n * `provideUiRipple({ selector: UI_RIPPLE_INTERACTIVE_SELECTOR })` to ripple the\n * application's own controls too, without listing them one by one.\n */\nexport const UI_RIPPLE_INTERACTIVE_SELECTOR =\n 'button, [role=\"button\"], a[href], [data-ripple=\"on\"]';\n\n/** Kit-wide ripple options, set once through `provideUiRipple()`. */\nexport interface UiRippleOptions {\n /** Ripple the whole document (delegated on `<body>`). Default `true`. */\n global?: boolean;\n /** Elements a delegated root ripples. Default {@link UI_RIPPLE_DEFAULT_SELECTOR}. */\n selector?: string;\n}\n\nexport const UI_RIPPLE_OPTIONS = new InjectionToken<UiRippleOptions>('UI_RIPPLE_OPTIONS');\n\n/** Settings of one binding, read at press time so signal inputs stay live. */\nexport interface UiRippleSettings {\n /** `false` stands the binding down without unwiring it. */\n enabled: boolean;\n /** Start the wave at the element's centre rather than at the pointer. */\n centered: boolean;\n /** Delegation only: what ripples inside the root. */\n selector: string;\n}\n\nconst CLAIMED = Symbol.for('@4sh/ui-kit/ripple:claimed');\ntype Claimable = Record<symbol, true | undefined>;\nconst LAYER_CLASS = 'ui-ripple-layer';\nconst INK_CLASS = 'ui-ripple-ink';\n/** Waves alive at once on one host, so a fast clicker cannot pile up nodes. */\nconst MAX_INK = 4;\n\n/** One press, one wave: the innermost binding claims it, every other root stands down. */\nfunction isClaimed(event: Event): boolean {\n return (event as unknown as Claimable)[CLAIMED] === true;\n}\n\nfunction claim(event: Event): void {\n (event as unknown as Claimable)[CLAIMED] = true;\n}\n\n/**\n * Engine behind `[uiRipple]`, `[uiRippleScope]` and `provideUiRipple()`.\n *\n * One `pointerdown` listener per binding (passive, registered outside Angular:\n * a press never triggers change detection), one clipping layer per host created\n * on first use, one `<span>` per wave removed on `animationend`. Nothing is\n * measured until a press actually happens.\n *\n * Appearance is not its business: the layer and the ink read the inherited\n * `--ui-ripple-*` custom properties (`styles/base/_ripple.scss`).\n */\n@Injectable({ providedIn: 'root' })\nexport class UiRippleEngine {\n private readonly document = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly options = inject(UI_RIPPLE_OPTIONS, { optional: true }) ?? {};\n\n private readonly layers = new WeakMap<Element, HTMLElement>();\n private reducedMotion: MediaQueryList | undefined;\n private uninstallGlobal: (() => void) | undefined;\n\n /** Settings a binding starts from. */\n readonly defaults: UiRippleSettings = {\n enabled: true,\n centered: false,\n selector: this.options.selector ?? UI_RIPPLE_DEFAULT_SELECTOR,\n };\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.uninstallGlobal?.());\n }\n\n /** Ripples the whole document. Called by `provideUiRipple()`. */\n installGlobal(): void {\n if (this.options.global === false || this.uninstallGlobal) return;\n this.uninstallGlobal = this.delegate(this.document.body, () => this.defaults);\n }\n\n /** The host itself ripples. Returns the teardown. */\n bind(host: HTMLElement, settings: () => UiRippleSettings): () => void {\n const stop = this.listen(host, (event) => {\n // Claimed even when off: an explicit directive always wins over an outer root.\n claim(event);\n const { enabled, centered } = settings();\n if (enabled) this.launch(host, event, centered);\n });\n\n return () => {\n stop();\n this.layers.get(host)?.remove();\n this.layers.delete(host);\n };\n }\n\n /** Descendants matching the selector ripple. Returns the teardown. */\n delegate(root: HTMLElement, settings: () => UiRippleSettings): () => void {\n return this.listen(root, (event) => {\n const { enabled, centered, selector } = settings();\n if (!enabled) return;\n\n const target = (event.target as Element | null)?.closest(selector);\n // `closest` can climb past the root: that match belongs to an outer binding.\n if (!(target instanceof HTMLElement) || !root.contains(target)) return;\n\n claim(event);\n this.launch(target, event, centered);\n });\n }\n\n /**\n * Spawns one wave on `host`, from the pointer position or from its centre.\n * Public so an application can ripple from its own trigger (a keyboard\n * shortcut, a remote event) without a press.\n */\n launch(host: HTMLElement, event?: PointerEvent, centered = false): void {\n if (!this.isBrowser || this.stilled() || this.inert(host)) return;\n\n const rect = host.getBoundingClientRect();\n if (!rect.width || !rect.height) return;\n\n const x = event && !centered ? event.clientX - rect.left : rect.width / 2;\n const y = event && !centered ? event.clientY - rect.top : rect.height / 2;\n // Farthest corner, so the wave always covers the whole element.\n const radius = Math.hypot(Math.max(x, rect.width - x), Math.max(y, rect.height - y));\n\n const layer = this.layerFor(host);\n while (layer.childElementCount >= MAX_INK && layer.firstElementChild) {\n layer.firstElementChild.remove();\n }\n\n const ink = this.document.createElement('span');\n ink.className = INK_CLASS;\n ink.style.cssText = `left:${x - radius}px;top:${y - radius}px;width:${radius * 2}px;height:${radius * 2}px`;\n ink.addEventListener('animationend', () => ink.remove(), { once: true });\n layer.appendChild(ink);\n }\n\n private listen(node: HTMLElement, handle: (event: PointerEvent) => void): () => void {\n if (!this.isBrowser) return () => undefined;\n\n const onPointerDown = (event: PointerEvent) => {\n if (event.button > 0 || !event.isPrimary || isClaimed(event)) return;\n handle(event);\n };\n\n this.zone.runOutsideAngular(() =>\n node.addEventListener('pointerdown', onPointerDown, { passive: true }),\n );\n return () => node.removeEventListener('pointerdown', onPointerDown);\n }\n\n /** Clipping layer of a host, created on first press. */\n private layerFor(host: HTMLElement): HTMLElement {\n const cached = this.layers.get(host);\n if (cached?.parentElement === host) return cached;\n\n // Une autre instance du moteur a pu équiper cet hôte avant nous : sa couche\n // vaut la nôtre, et en créer une seconde les empilerait sur l'élément.\n const existing = host.querySelector<HTMLElement>(`:scope > .${LAYER_CLASS}`);\n if (existing) {\n this.layers.set(host, existing);\n return existing;\n }\n\n // The layer anchors on the host, which must therefore establish the\n // containing block. A host already positioned is left untouched.\n if (this.document.defaultView?.getComputedStyle(host).position === 'static') {\n host.style.position = 'relative';\n }\n\n const layer = this.document.createElement('span');\n layer.className = LAYER_CLASS;\n layer.setAttribute('aria-hidden', 'true');\n host.appendChild(layer);\n this.layers.set(host, layer);\n return layer;\n }\n\n /** Disabled host, or a subtree opted out with `data-ripple=\"off\"`. */\n private inert(host: HTMLElement): boolean {\n return (\n (host as HTMLButtonElement).disabled === true ||\n host.getAttribute('aria-disabled') === 'true' ||\n host.closest('[data-ripple=\"off\"]') !== null\n );\n }\n\n /** Reduced-motion preference, or the kit-wide `data-motion=\"off\"` switch. */\n private stilled(): boolean {\n // Optional call: a non-browser DOM (jsdom) has no `matchMedia`.\n this.reducedMotion ??= this.document.defaultView?.matchMedia?.(\n '(prefers-reduced-motion: reduce)',\n );\n return (\n this.reducedMotion?.matches === true ||\n this.document.documentElement.dataset['motion'] === 'off'\n );\n }\n}\n","import {\n booleanAttribute,\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentProviders,\n inject,\n input,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { UI_RIPPLE_OPTIONS, UiRippleEngine, UiRippleOptions } from './ui-ripple.engine';\n\n/**\n * Turns the ripple on for the WHOLE application: every `<button>`, every\n * `[role=\"button\"]` and everything marked `data-ripple=\"on\"` answers a press\n * with a wave, kit components included (the effect lands on their inner native\n * control, not on the custom element).\n *\n * ```ts\n * // app.config.ts\n * providers: [provideUiRipple()];\n *\n * // widen what ripples\n * providers: [provideUiRipple({ selector: 'button, [role=\"button\"], a[href]' })];\n *\n * // set the kit-wide selector without turning the effect on everywhere\n * providers: [provideUiRipple({ global: false, selector: '.card, button' })];\n * ```\n *\n * Any element or subtree opts out with `data-ripple=\"off\"` (or `[uiRipple]=\"false\"`\n * / `[uiRippleScope]=\"false\"`). No provider is needed to use the directives.\n */\nexport function provideUiRipple(options: UiRippleOptions = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: UI_RIPPLE_OPTIONS, useValue: options },\n provideEnvironmentInitializer(() => inject(UiRippleEngine).installGlobal()),\n ]);\n}\n\n/**\n * uiRipple, targeted: THIS element answers a press with a wave starting at the\n * pointer.\n *\n * ```html\n * <button uiRipple>Valider</button>\n * <div class=\"tile\" uiRipple rippleCentered>…</div>\n * <button uiRipple [uiRipple]=\"false\">jamais d'onde, ici ni au-dessous</button>\n * ```\n *\n * The wave is clipped by the element's own box and follows its `border-radius`.\n * Retune it with the inherited `--ui-ripple-*` custom properties, on the element\n * or on any ancestor. Put the directive on a native control rather than on a kit\n * component: `<ui-button uiRipple>` would ripple the custom element's square box,\n * where `<ui-button uiRippleScope>` reaches its inner `<button>`.\n */\n@Directive({\n selector: '[uiRipple]',\n host: { '[attr.data-ripple]': 'enabled() ? null : \"off\"' },\n})\nexport class UiRipple {\n /** Wave on this element. `false` opts it and its subtree out, global effect included. */\n readonly enabled = input(true, { alias: 'uiRipple', transform: booleanAttribute });\n /** Start at the centre rather than at the pointer (icon-only controls). */\n readonly rippleCentered = input(false, { transform: booleanAttribute });\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const engine = inject(UiRippleEngine);\n\n inject(DestroyRef).onDestroy(\n engine.bind(host, () => ({\n ...engine.defaults,\n enabled: this.enabled(),\n centered: this.rippleCentered(),\n })),\n );\n }\n}\n\n/**\n * uiRippleScope, local: everything interactive INSIDE this element ripples, with\n * a single listener on the container rather than one directive per control.\n *\n * ```html\n * <div class=\"toolbar\" uiRippleScope>\n * <ui-button label=\"Enregistrer\" />\n * <button>Annuler</button>\n * </div>\n *\n * <nav uiRippleScope rippleSelector=\"a, button\">…</nav>\n * <section [uiRippleScope]=\"false\">…</section>\n * ```\n *\n * Also the way to ripple a single kit component: `<ui-button uiRippleScope />`\n * reaches the native `<button>` it renders, so the wave follows its radius.\n * Nested scopes and `[uiRipple]` do not stack: the innermost declaration wins.\n */\n@Directive({\n selector: '[uiRippleScope]',\n host: { '[attr.data-ripple]': 'enabled() ? null : \"off\"' },\n})\nexport class UiRippleScope {\n /** Ripple inside this element. `false` opts the whole subtree out. */\n readonly enabled = input(true, { alias: 'uiRippleScope', transform: booleanAttribute });\n /** Start at the centre rather than at the pointer. */\n readonly rippleCentered = input(false, { transform: booleanAttribute });\n /** What ripples inside. Defaults to the kit-wide selector. */\n readonly rippleSelector = input<string>();\n\n constructor() {\n const root = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const engine = inject(UiRippleEngine);\n\n inject(DestroyRef).onDestroy(\n engine.delegate(root, () => ({\n enabled: this.enabled(),\n centered: this.rippleCentered(),\n selector: this.rippleSelector() || engine.defaults.selector,\n })),\n );\n }\n}\n","/*\n * Public API Surface of ui-kit/ripple\n *\n * `UiRipple` / `UiRippleScope` directives + `provideUiRipple()`. The wave's own\n * styles live in the package's global stylesheet (`styles/base/_ripple.scss` →\n * `styles.css`), shipped with the design tokens.\n */\n\nexport * from './lib/ui-ripple.engine';\nexport * from './lib/ui-ripple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,CAAA;kBAJzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE,EAAE,oBAAoB,EAAE,0BAA0B,EAAE;AAC3D,iBAAA;;;ACrGD;;;;;;AAMG;;ACNH;;AAEG;;"}
@@ -54,6 +54,8 @@ class UiPaginator {
54
54
  ...(ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []));
55
55
  /** Disables every control. */
56
56
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
+ /** Ripple Effect */
58
+ this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
57
59
  /** Accessible name of the navigation landmark. */
58
60
  this.ariaLabel = input('Pagination', /* @ts-ignore */
59
61
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -226,12 +228,12 @@ class UiPaginator {
226
228
  });
227
229
  }
228
230
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
229
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiPaginator, isStandalone: true, selector: "ui-paginator", inputs: { totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, ellipsis: { classPropertyName: "ellipsis", publicName: "ellipsis", isSignal: true, isRequired: false, transformFunction: null }, boundaryCount: { classPropertyName: "boundaryCount", publicName: "boundaryCount", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, pageAriaLabel: { classPropertyName: "pageAriaLabel", publicName: "pageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, firstPageAriaLabel: { classPropertyName: "firstPageAriaLabel", publicName: "firstPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevPageAriaLabel: { classPropertyName: "prevPageAriaLabel", publicName: "prevPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextPageAriaLabel: { classPropertyName: "nextPageAriaLabel", publicName: "nextPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, lastPageAriaLabel: { classPropertyName: "lastPageAriaLabel", publicName: "lastPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageAriaLabel: { classPropertyName: "rowsPerPageAriaLabel", publicName: "rowsPerPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", first: "firstChange", pageChange: "pageChange" }, queries: [{ propertyName: "firstIconTemplate", first: true, predicate: ["firsticon"], descendants: true, isSignal: true }, { propertyName: "prevIconTemplate", first: true, predicate: ["previcon"], descendants: true, isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], descendants: true, isSignal: true }, { propertyName: "lastIconTemplate", first: true, predicate: ["lasticon"], descendants: true, isSignal: true }, { propertyName: "pageLinkTemplate", first: true, predicate: ["pagelink"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }, { propertyName: "reportTemplate", first: true, predicate: ["report"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"pageLinkContext(item)\"\n />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--ui-paginator-bar-gap, var(--units-2xl));padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--ui-paginator-blocks-gap, var(--units-default))}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:var(--ui-paginator-button-size, 2rem);padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--ui-paginator-numbers-gap, var(--units-sm))}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSelect, selector: "ui-select", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "group", "optionGroupLabel", "optionGroupChildren", "dataKey", "multiple", "checkmark", "checkbox", "maxSelectedLabels", "overflowLabel", "placeholder", "showClear", "clearAriaLabel", "icon", "filter", "filterPlaceholder", "filterAriaLabel", "filterBy", "autofocusFilter", "resetFilterOnHide", "emptyMessage", "emptyFilterMessage", "editable", "loading", "autoOptionFocus", "selectOnFocus", "focusOnHover", "virtualScroll", "virtualScrollItemSize", "lazy", "scrollHeight", "autoFlip", "panelStyleClass", "panelWidth"], outputs: ["valueChange", "opened", "closed", "cleared", "filterChange", "lazyLoad", "inputFocus", "inputBlur"] }] }); }
231
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiPaginator, isStandalone: true, selector: "ui-paginator", inputs: { totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, ellipsis: { classPropertyName: "ellipsis", publicName: "ellipsis", isSignal: true, isRequired: false, transformFunction: null }, boundaryCount: { classPropertyName: "boundaryCount", publicName: "boundaryCount", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, pageAriaLabel: { classPropertyName: "pageAriaLabel", publicName: "pageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, firstPageAriaLabel: { classPropertyName: "firstPageAriaLabel", publicName: "firstPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevPageAriaLabel: { classPropertyName: "prevPageAriaLabel", publicName: "prevPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextPageAriaLabel: { classPropertyName: "nextPageAriaLabel", publicName: "nextPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, lastPageAriaLabel: { classPropertyName: "lastPageAriaLabel", publicName: "lastPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageAriaLabel: { classPropertyName: "rowsPerPageAriaLabel", publicName: "rowsPerPageAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", first: "firstChange", pageChange: "pageChange" }, queries: [{ propertyName: "firstIconTemplate", first: true, predicate: ["firsticon"], descendants: true, isSignal: true }, { propertyName: "prevIconTemplate", first: true, predicate: ["previcon"], descendants: true, isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], descendants: true, isSignal: true }, { propertyName: "lastIconTemplate", first: true, predicate: ["lasticon"], descendants: true, isSignal: true }, { propertyName: "pageLinkTemplate", first: true, predicate: ["pagelink"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }, { propertyName: "reportTemplate", first: true, predicate: ["report"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"pageLinkContext(item)\"\n />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--ui-paginator-bar-gap, var(--units-2xl));padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--ui-paginator-blocks-gap, var(--units-default))}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:var(--ui-paginator-button-size, 2rem);padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--ui-paginator-numbers-gap, var(--units-sm))}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSelect, selector: "ui-select", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "group", "optionGroupLabel", "optionGroupChildren", "dataKey", "multiple", "checkmark", "checkbox", "maxSelectedLabels", "overflowLabel", "placeholder", "showClear", "clearAriaLabel", "icon", "filter", "filterPlaceholder", "filterAriaLabel", "filterBy", "autofocusFilter", "resetFilterOnHide", "ripple", "emptyMessage", "emptyFilterMessage", "editable", "loading", "autoOptionFocus", "selectOnFocus", "focusOnHover", "virtualScroll", "virtualScrollItemSize", "lazy", "scrollHeight", "autoFlip", "panelStyleClass", "panelWidth"], outputs: ["valueChange", "opened", "closed", "cleared", "filterChange", "lazyLoad", "inputFocus", "inputBlur"] }] }); }
230
232
  }
231
233
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiPaginator, decorators: [{
232
234
  type: Component,
233
- args: [{ selector: 'ui-paginator', imports: [NgTemplateOutlet, FormsModule, UiIcon, UiSelect], template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"pageLinkContext(item)\"\n />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--ui-paginator-bar-gap, var(--units-2xl));padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--ui-paginator-blocks-gap, var(--units-default))}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:var(--ui-paginator-button-size, 2rem);padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--ui-paginator-numbers-gap, var(--units-sm))}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"] }]
234
- }], propDecorators: { totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], ellipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsis", required: false }] }], boundaryCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundaryCount", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], pageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageAriaLabel", required: false }] }], firstPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstPageAriaLabel", required: false }] }], prevPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevPageAriaLabel", required: false }] }], nextPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextPageAriaLabel", required: false }] }], lastPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lastPageAriaLabel", required: false }] }], rowsPerPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageAriaLabel", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], firstIconTemplate: [{ type: i0.ContentChild, args: ['firsticon', { isSignal: true }] }], prevIconTemplate: [{ type: i0.ContentChild, args: ['previcon', { isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { isSignal: true }] }], lastIconTemplate: [{ type: i0.ContentChild, args: ['lasticon', { isSignal: true }] }], pageLinkTemplate: [{ type: i0.ContentChild, args: ['pagelink', { isSignal: true }] }], startTemplate: [{ type: i0.ContentChild, args: ['start', { isSignal: true }] }], endTemplate: [{ type: i0.ContentChild, args: ['end', { isSignal: true }] }], reportTemplate: [{ type: i0.ContentChild, args: ['report', { isSignal: true }] }] } });
235
+ args: [{ selector: 'ui-paginator', imports: [NgTemplateOutlet, FormsModule, UiIcon, UiSelect], template: "<nav class=\"ui-paginator\" [attr.aria-label]=\"ariaLabel()\">\n @if (startTemplate(); as tpl) {\n <div class=\"ui-paginator-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n\n <div class=\"ui-paginator-content\">\n @if (showCurrentPageReport()) {\n <span class=\"ui-paginator-report\">\n @if (reportTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n {{ reportText() }}\n }\n </span>\n }\n\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"firstPageAriaLabel()\"\n (click)=\"goToPage(0)\"\n >\n @if (firstIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-left\" size=\"sm\" />\n }\n </button>\n }\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"prevPageAriaLabel()\"\n (click)=\"goToPage(currentPage() - 1)\"\n >\n @if (prevIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n }\n </button>\n\n @if (showPageLinks()) {\n <div class=\"ui-paginator-pages\">\n @for (item of pageItems(); track $index) {\n @if (item === ELLIPSIS) {\n <span class=\"ui-paginator-ellipsis\" aria-hidden=\"true\">&hellip;</span>\n } @else {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-page\"\n [class._current]=\"item === currentPage()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(item)\"\n [attr.aria-current]=\"item === currentPage() ? 'page' : null\"\n (click)=\"goToPage(item)\"\n >\n @if (pageLinkTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"pageLinkContext(item)\"\n />\n } @else {\n {{ item + 1 }}\n }\n </button>\n }\n }\n </div>\n }\n\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"nextPageAriaLabel()\"\n (click)=\"goToPage(currentPage() + 1)\"\n >\n @if (nextIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n }\n </button>\n @if (showFirstLastIcon()) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-paginator-control\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"lastPageAriaLabel()\"\n (click)=\"goToPage(pageCount() - 1)\"\n >\n @if (lastIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <ui-icon name=\"angles-right\" size=\"sm\" />\n }\n </button>\n }\n </div>\n\n @if (rowsPerPageOptions()?.length) {\n <div class=\"ui-paginator-rows\">\n <ui-select\n size=\"small\"\n [options]=\"rowsPerPageOptions()!\"\n [ngModel]=\"rowsState()\"\n [disabled]=\"disabled()\"\n [ariaLabel]=\"rowsPerPageAriaLabel()\"\n (valueChange)=\"onRowsPerPageChange($event)\"\n />\n </div>\n }\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-paginator-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n </div>\n }\n</nav>\n", styles: [".ui-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--ui-paginator-bar-gap, var(--units-2xl));padding:var(--units-default)}.ui-paginator-content{display:flex;align-items:center;gap:var(--ui-paginator-blocks-gap, var(--units-default))}.ui-paginator-control{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-control:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-control:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-control:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-control:disabled{cursor:not-allowed}.ui-paginator-control{width:var(--ui-paginator-button-size, 2rem);padding:0 var(--units-sm)}.ui-paginator-control:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-paginator-pages{display:flex;align-items:center;gap:var(--ui-paginator-numbers-gap, var(--units-sm))}.ui-paginator-page{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);border:none;border-radius:var(--ui-paginator-button-radius, var(--radius-default));background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-paginator-page:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-paginator-page:focus-visible{outline:none;background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:0 0 0 var(--ui-paginator-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--navigation-high-stroke-focused)}.ui-paginator-page:active:not(:disabled){background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-paginator-page:disabled{cursor:not-allowed}.ui-paginator-page{padding:0 var(--units-md)}.ui-paginator-page:disabled{background-color:var(--actions-low-surface-disabled);color:var(--actions-low-content-disabled)}.ui-paginator-page._current,.ui-paginator-page._current:hover:not(:disabled),.ui-paginator-page._current:focus-visible,.ui-paginator-page._current:active:not(:disabled),.ui-paginator-page._current:disabled{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-paginator-report{display:inline-flex;align-items:center;color:var(--global-text-muted);font-size:var(--size-typography-text-md);white-space:nowrap}.ui-paginator-start,.ui-paginator-end{display:inline-flex;align-items:center;gap:var(--units-sm);color:var(--global-text-muted);font-size:var(--size-typography-text-md)}.ui-paginator-ellipsis{display:inline-flex;align-items:center;justify-content:center;height:var(--ui-paginator-button-size, 2rem);min-width:var(--ui-paginator-button-size, 2rem);color:var(--navigation-high-content-default);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}\n"] }]
236
+ }], propDecorators: { totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], ellipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsis", required: false }] }], boundaryCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundaryCount", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], pageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageAriaLabel", required: false }] }], firstPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstPageAriaLabel", required: false }] }], prevPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevPageAriaLabel", required: false }] }], nextPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextPageAriaLabel", required: false }] }], lastPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lastPageAriaLabel", required: false }] }], rowsPerPageAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageAriaLabel", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], firstIconTemplate: [{ type: i0.ContentChild, args: ['firsticon', { isSignal: true }] }], prevIconTemplate: [{ type: i0.ContentChild, args: ['previcon', { isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { isSignal: true }] }], lastIconTemplate: [{ type: i0.ContentChild, args: ['lasticon', { isSignal: true }] }], pageLinkTemplate: [{ type: i0.ContentChild, args: ['pagelink', { isSignal: true }] }], startTemplate: [{ type: i0.ContentChild, args: ['start', { isSignal: true }] }], endTemplate: [{ type: i0.ContentChild, args: ['end', { isSignal: true }] }], reportTemplate: [{ type: i0.ContentChild, args: ['report', { isSignal: true }] }] } });
235
237
 
236
238
  /*
237
239
  * Public API Surface of ui-kit/ui-paginator