@4sh/ui-kit 0.6.1 → 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.
- package/README.fr.md +47 -22
- package/README.md +46 -23
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +439 -0
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +111 -10
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +14 -6
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +655 -92
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1107 -0
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +43 -3
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +15 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +8 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +40 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +8 -3
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +317 -0
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +374 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +49 -14
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +45 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -10
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +19 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/text-search-docs.json +1083 -83
- package/mcp/data/ui-config.json +5592 -2586
- package/mcp/index.js +682 -410
- package/mcp/package.json +1 -1
- package/package.json +29 -1
- package/schematics/index.cjs +1 -1
- package/styles/base/_ripple.scss +53 -0
- package/styles/component-vars.scss +177 -2
- package/styles/generated/_tokens-breakpoint.scss +1 -1
- package/styles/generated/_tokens-metrics.scss +1 -1
- package/styles/generated/_tokens-primitives.scss +1 -1
- package/styles/generated/_tokens-responsive.scss +17 -17
- package/styles/generated/_tokens-semantics.scss +15 -15
- package/styles/generated/_tokens-styles.scss +1 -1
- package/styles/generated/_tokens-transitions.scss +1 -1
- package/styles/generated/_tokens-typography.scss +1 -1
- package/styles/generated/_tokens.scss +1 -1
- package/styles/index.scss +1 -0
- package/styles/settings/_ui-config.scss +9 -0
- package/styles/utils/_helpers.scss +15 -0
- package/styles/utils/_mixins.scss +17 -1
- package/styles.css +1 -1
- package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +234 -0
- package/types/4sh-ui-kit-base-ui-image.d.ts +16 -3
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +7 -2
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +242 -37
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +32 -2
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +9 -0
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-input.d.ts +28 -2
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-select.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +126 -0
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +222 -0
- package/types/4sh-ui-kit-forms.d.ts +38 -7
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +16 -3
- package/types/4sh-ui-kit-ripple.d.ts +156 -0
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
|
@@ -60,6 +60,13 @@ declare abstract class BaseControlValueAccessor<T> implements ControlValueAccess
|
|
|
60
60
|
type FieldSize = 'default' | 'small';
|
|
61
61
|
/** Visual validation status (subset of `UiFeedbackLevel`, shared with `ui-helper`). */
|
|
62
62
|
type FieldLevel = Extract<UiFeedbackLevel, 'default' | 'success' | 'error'>;
|
|
63
|
+
/**
|
|
64
|
+
* Placement of the floating label ("float label" mode):
|
|
65
|
+
* - `over`: rises above the box, where a classic label sits,
|
|
66
|
+
* - `in`: rises to a band reserved at the top **inside** the box,
|
|
67
|
+
* - `on`: rises **onto** the top border, notching it.
|
|
68
|
+
*/
|
|
69
|
+
type FieldFloatLabel = 'over' | 'in' | 'on';
|
|
63
70
|
/**
|
|
64
71
|
* Base class for every standalone form control (`ui-checkbox`, `ui-toggle`,
|
|
65
72
|
* `ui-slider`, `ui-nudger`…): the CVA plumbing shared by all of them, without
|
|
@@ -127,10 +134,23 @@ declare abstract class BaseFormField<T> extends BaseFieldControl<T> {
|
|
|
127
134
|
helperText: _angular_core.InputSignal<string | undefined>;
|
|
128
135
|
/** Error message shown in place of the helper when the field is in error. */
|
|
129
136
|
errorText: _angular_core.InputSignal<string | undefined>;
|
|
137
|
+
/** Prefixes the message under the field (helper or error) with a decorative icon. */
|
|
138
|
+
showMessageIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
139
|
+
/** Overrides the glyph shown by `showMessageIcon`. */
|
|
140
|
+
messageIcon: _angular_core.InputSignal<string | undefined>;
|
|
130
141
|
/** Size. */
|
|
131
142
|
size: _angular_core.InputSignal<FieldSize>;
|
|
132
143
|
/** Explicit validation status (`error` is forced when the control is invalid + touched). */
|
|
133
144
|
level: _angular_core.InputSignal<FieldLevel>;
|
|
145
|
+
/**
|
|
146
|
+
* Floating label placement. Unset = classic label above the box.
|
|
147
|
+
*
|
|
148
|
+
* The label then plays the placeholder role while at rest, so the native
|
|
149
|
+
* `placeholder` is neutralised (see `hasFloatLabel`).
|
|
150
|
+
*/
|
|
151
|
+
floatLabel: _angular_core.InputSignal<FieldFloatLabel | undefined>;
|
|
152
|
+
/** @ignore There is a label to float: a `floatLabel` alone has nothing to move. */
|
|
153
|
+
protected readonly hasFloatLabel: _angular_core.Signal<boolean>;
|
|
134
154
|
/** @ignore Effective level: error when invalid, otherwise the requested `level`. */
|
|
135
155
|
protected readonly effectiveLevel: _angular_core.Signal<FieldLevel>;
|
|
136
156
|
/** @ignore Displayed message: errorText when in error (if provided), otherwise helperText. */
|
|
@@ -138,7 +158,7 @@ declare abstract class BaseFormField<T> extends BaseFieldControl<T> {
|
|
|
138
158
|
/** @ignore Value shown in the input (string). Override for specific formatting. */
|
|
139
159
|
protected readonly displayValue: _angular_core.Signal<string>;
|
|
140
160
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormField<any>, never>;
|
|
141
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormField<any>, never, never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
161
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormField<any>, never, never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "showMessageIcon": { "alias": "showMessageIcon"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
142
162
|
}
|
|
143
163
|
|
|
144
164
|
/**
|
|
@@ -186,11 +206,19 @@ declare function buildMaskSlots(mask: string, bounds: (MaskBounds | null)[], tok
|
|
|
186
206
|
/** Keep only the data characters (alphanumeric) of a raw input string. */
|
|
187
207
|
declare function extractMaskData(raw: string): string;
|
|
188
208
|
/**
|
|
189
|
-
* Can `ch` fill this slot? It must match the token class and — when the segment is bounded
|
|
190
|
-
* the digits typed so far plus `ch` must still admit at least one in-range
|
|
191
|
-
* remaining positions (`2` then `4` is refused on `0-23`, `2` then `3` is
|
|
209
|
+
* Can `ch` fill this slot? It must match the token class and — when the segment is bounded
|
|
210
|
+
* AND `enforceBounds` — the digits typed so far plus `ch` must still admit at least one in-range
|
|
211
|
+
* completion of the remaining positions (`2` then `4` is refused on `0-23`, `2` then `3` is
|
|
212
|
+
* accepted).
|
|
213
|
+
*
|
|
214
|
+
* `enforceBounds = false` skips that second check (still requires the token class to match):
|
|
215
|
+
* meant for re-deriving the mask after characters were REMOVED, not typed. The bounds check
|
|
216
|
+
* exists to reject an invalid *new* leading digit while typing forward (e.g. `8` can never start
|
|
217
|
+
* a valid `1-31` day, so it's skipped rather than accepted) — applied instead to the digits left
|
|
218
|
+
* over after a deletion, that same skip can discard a still-valid residual digit and misalign
|
|
219
|
+
* every segment after it. See `autoFormatSegments`.
|
|
192
220
|
*/
|
|
193
|
-
declare function acceptsMaskChar(slot: MaskSlot, segment: string, ch: string): boolean;
|
|
221
|
+
declare function acceptsMaskChar(slot: MaskSlot, segment: string, ch: string, enforceBounds?: boolean): boolean;
|
|
194
222
|
/** Apply the mask template to a sequence of data characters (fills empty positions with `slotChar`). */
|
|
195
223
|
declare function applyMaskTemplate(slots: MaskSlot[], data: string, slotChar: string): MaskBuildResult;
|
|
196
224
|
/** Caret position for `n` typed data characters (literals skipped, end-of-text once all filled). */
|
|
@@ -202,9 +230,12 @@ declare function caretForMask(tokenIndices: number[], n: number, length: number)
|
|
|
202
230
|
* template at rest). Used by `ui-datepicker`'s typeable trigger to auto-insert "/" as digits are
|
|
203
231
|
* typed, the same way a card-expiry field auto-inserts its "/".
|
|
204
232
|
*/
|
|
205
|
-
declare function autoFormatSegments(slots: MaskSlot[], data: string
|
|
233
|
+
declare function autoFormatSegments(slots: MaskSlot[], data: string, { enforceBounds }?: {
|
|
234
|
+
enforceBounds?: boolean;
|
|
235
|
+
}): {
|
|
206
236
|
text: string;
|
|
207
237
|
tokenIndices: number[];
|
|
238
|
+
dataEnd: number;
|
|
208
239
|
};
|
|
209
240
|
|
|
210
241
|
/**
|
|
@@ -257,4 +288,4 @@ declare function formatLabel(template: string, value: string | number): string;
|
|
|
257
288
|
declare function warnMissingAccessibleName(componentTag: string, message: string): void;
|
|
258
289
|
|
|
259
290
|
export { BaseControlValueAccessor, BaseFieldControl, BaseFormField, MASK_TOKENS, acceptsMaskChar, applyMaskTemplate, autoFormatSegments, buildMaskSlots, caretForMask, createOptionResolver, dropdownOverlayPositions, extractMaskData, formatLabel, parseMaskRanges, warnMissingAccessibleName };
|
|
260
|
-
export type { FieldLevel, FieldSize, MaskBounds, MaskBuildResult, MaskSlot, OptionEntry, OptionResolver, OptionResolverFields };
|
|
291
|
+
export type { FieldFloatLabel, FieldLevel, FieldSize, MaskBounds, MaskBuildResult, MaskSlot, OptionEntry, OptionResolver, OptionResolverFields };
|
|
@@ -127,6 +127,11 @@ declare class UiModal {
|
|
|
127
127
|
width: number;
|
|
128
128
|
height: number;
|
|
129
129
|
}>;
|
|
130
|
+
/** @ignore Scrollable body region (see `contentNeedsFocus`). */
|
|
131
|
+
private readonly contentRef;
|
|
132
|
+
/** @ignore The body overflows and holds no focusable element of its own — it then needs to be
|
|
133
|
+
* focusable itself so the scroll is keyboard-reachable (axe `scrollable-region-focusable`). */
|
|
134
|
+
protected readonly contentNeedsFocus: _angular_core.WritableSignal<boolean>;
|
|
130
135
|
/** @ignore */
|
|
131
136
|
private readonly dialogRef;
|
|
132
137
|
/** @ignore Scrim host (for imperative `maskStyleClass` — a bound `[class]` would
|
|
@@ -227,6 +232,8 @@ declare class UiModal {
|
|
|
227
232
|
private endResize;
|
|
228
233
|
/** @ignore */
|
|
229
234
|
private removeResizeListeners;
|
|
235
|
+
/** @ignore Recomputes `contentNeedsFocus` from the rendered body. */
|
|
236
|
+
private measureContentFocusability;
|
|
230
237
|
/** @ignore Release this instance's scroll lock, if held. */
|
|
231
238
|
private releaseLock;
|
|
232
239
|
/** @ignore Build the responsive width rules (`max-width` media queries). */
|
|
@@ -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. */
|
|
@@ -187,14 +187,19 @@ declare class UiStepper {
|
|
|
187
187
|
readonly id: string;
|
|
188
188
|
/** @ignore All steps projected under this container, in DOM order. */
|
|
189
189
|
private readonly steps;
|
|
190
|
+
/** @ignore All panels projected under this container — a stepper used as a plain "steps only"
|
|
191
|
+
* progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point
|
|
192
|
+
* at an id that resolves to nothing. */
|
|
193
|
+
private readonly panels;
|
|
190
194
|
/** @ignore Ordered step values (the progression sequence). */
|
|
191
195
|
private readonly orderedValues;
|
|
192
196
|
/** @ignore Index of the active step in the ordered sequence (-1 when none). */
|
|
193
197
|
private readonly activeIndex;
|
|
194
198
|
/** @ignore id of the step header for a given value. */
|
|
195
199
|
stepId(value: UiStepValue | undefined): string;
|
|
196
|
-
/** @ignore id of the panel for a given value
|
|
197
|
-
|
|
200
|
+
/** @ignore id of the panel for a given value — `null` when that panel is not actually
|
|
201
|
+
* rendered (see `panels` above), so the step omits `aria-controls` rather than dangle it. */
|
|
202
|
+
panelId(value: UiStepValue | undefined): string | null;
|
|
198
203
|
/** @ignore Whether the given value is the active step. */
|
|
199
204
|
isActive(value: UiStepValue | undefined): boolean;
|
|
200
205
|
/** @ignore 1-based position of a step in the progression (0 when unknown). */
|
|
@@ -213,7 +218,7 @@ declare class UiStepper {
|
|
|
213
218
|
/** Activate the previous step in the sequence. */
|
|
214
219
|
prev(): void;
|
|
215
220
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepper, never>;
|
|
216
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepper, "ui-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "completedIcon": { "alias": "completedIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "stepChange": "stepChange"; }, ["steps"], ["*"], true, never>;
|
|
221
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepper, "ui-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "completedIcon": { "alias": "completedIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "stepChange": "stepChange"; }, ["steps", "panels"], ["*"], true, never>;
|
|
217
222
|
}
|
|
218
223
|
|
|
219
224
|
export { UiStep, UiStepItem, UiStepList, UiStepPanel, UiStepPanels, UiStepper };
|
|
@@ -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). */
|
|
@@ -208,10 +210,21 @@ declare class UiTabs {
|
|
|
208
210
|
readonly id: string;
|
|
209
211
|
/** @ignore All tabs projected under this container (across the list boundary). */
|
|
210
212
|
private readonly tabs;
|
|
213
|
+
/** @ignore Whether a `ui-tab-panels` wrapper is projected at all — some consumers use
|
|
214
|
+
* `ui-tabs` as a navigation menu with no panel (a router outlet renders the content
|
|
215
|
+
* instead, see the `TabMenu` story). `aria-controls` must not point at an id that resolves
|
|
216
|
+
* to nothing. A single presence check on the wrapper (rather than a second
|
|
217
|
+
* `contentChildren` query matched per tab value) — two sibling content-children queries on
|
|
218
|
+
* this component broke `<ng-content>` projection for every `UiTab` but the first, a real
|
|
219
|
+
* Angular/Ivy interaction, not something worth chasing further; this is the query-count-1
|
|
220
|
+
* workaround. */
|
|
221
|
+
private readonly hasPanels;
|
|
211
222
|
/** @ignore id of the tab button for a given value. */
|
|
212
223
|
tabId(value: UiTabValue): string;
|
|
213
|
-
/** @ignore id of the panel for a given value
|
|
214
|
-
|
|
224
|
+
/** @ignore id of the panel for a given value — `null` when no `ui-tab-panels` wrapper is
|
|
225
|
+
* projected at all (see `hasPanels` above), so the tab omits `aria-controls` rather than
|
|
226
|
+
* dangle it. */
|
|
227
|
+
panelId(value: UiTabValue): string | null;
|
|
215
228
|
/** @ignore Whether the given value is the active tab. */
|
|
216
229
|
isActive(value: UiTabValue): boolean;
|
|
217
230
|
/**
|
|
@@ -222,7 +235,7 @@ declare class UiTabs {
|
|
|
222
235
|
/** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
|
|
223
236
|
updateValue(value: UiTabValue, event: Event): void;
|
|
224
237
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiTabs, never>;
|
|
225
|
-
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"], ["*"], 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>;
|
|
226
239
|
}
|
|
227
240
|
|
|
228
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 };
|