@4sh/ui-kit 0.6.1 → 0.7.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 +46 -22
- package/README.md +45 -23
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
- 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 +10 -4
- 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 +457 -75
- 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 +30 -3
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- 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-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.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.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -2
- 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 +372 -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 +44 -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-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.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- 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 +15 -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-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 +654 -74
- package/mcp/data/ui-config.json +5908 -3732
- package/mcp/index.js +682 -410
- package/mcp/package.json +1 -1
- package/package.json +17 -1
- package/schematics/index.cjs +1 -1
- package/styles/component-vars.scss +119 -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/utils/_helpers.scss +15 -0
- package/styles/utils/_mixins.scss +17 -1
- package/styles.css +1 -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 +4 -1
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +186 -36
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +20 -2
- 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-select.d.ts +2 -0
- 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 +220 -0
- package/types/4sh-ui-kit-forms.d.ts +34 -7
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +14 -3
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { UiLevel } from '@4sh/ui-kit/types';
|
|
3
|
+
import { ButtonVariant, ButtonSize, ButtonNativeProps } from '@4sh/ui-kit/actions/ui-button';
|
|
4
|
+
import { UiMenuItem } from '@4sh/ui-kit/navigation/ui-menu';
|
|
5
|
+
import { TooltipPosition } from '@4sh/ui-kit/informative/ui-tooltip';
|
|
6
|
+
import { UiMotionPreset } from '@4sh/ui-kit/motion';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Axis the actions fan out along.
|
|
10
|
+
*
|
|
11
|
+
* `linear`/`semi-circle` read the four cardinal values; `quarter-circle`
|
|
12
|
+
* reads the four corners — a cardinal value falls back to `'up-right'` there
|
|
13
|
+
* (see `arcSpan`).
|
|
14
|
+
*/
|
|
15
|
+
type SpeedDialDirection = 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right';
|
|
16
|
+
/**
|
|
17
|
+
* `linear` stacks the actions along `direction`. The other three arrange them
|
|
18
|
+
* on an arc around the trigger (`radius`): `circle` the full ring,
|
|
19
|
+
* `semi-circle` a 180° half centred on `direction`, `quarter-circle` a 90°
|
|
20
|
+
* quadrant in the `direction` corner.
|
|
21
|
+
*/
|
|
22
|
+
type SpeedDialType = 'linear' | 'circle' | 'semi-circle' | 'quarter-circle';
|
|
23
|
+
/**
|
|
24
|
+
* One action revealed by the dial — the leaf subset of {@link UiMenuItem}
|
|
25
|
+
* `ui-button` can actually render (no groups/separators, and no
|
|
26
|
+
* `queryParams`/`routerLinkActiveExact`: `ui-button`'s link mode does not
|
|
27
|
+
* carry them).
|
|
28
|
+
*/
|
|
29
|
+
type UiSpeedDialItem = Pick<UiMenuItem, 'id' | 'label' | 'icon' | 'command' | 'disabled' | 'routerLink' | 'url' | 'target' | 'ariaLabel'>;
|
|
30
|
+
/** Payload of `itemClick` / an item's own `command`. */
|
|
31
|
+
interface UiSpeedDialItemClickEvent {
|
|
32
|
+
originalEvent: Event;
|
|
33
|
+
item: UiSpeedDialItem;
|
|
34
|
+
}
|
|
35
|
+
/** @ignore Render node: item + its stable key + its index among enabled actions. */
|
|
36
|
+
interface UiSpeedDialNode {
|
|
37
|
+
item: UiSpeedDialItem;
|
|
38
|
+
key: string;
|
|
39
|
+
index: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* ui-speed-dial — a floating trigger button that fans a set of actions out
|
|
43
|
+
* around itself.
|
|
44
|
+
*
|
|
45
|
+
* Driven by a declarative `items` list ({@link UiSpeedDialItem}: `command` /
|
|
46
|
+
* `routerLink` / `url`, `icon`, `disabled`) — the same leaf shape as
|
|
47
|
+
* {@link UiMenuItem}, so a menu's entries can feed a dial without reshaping
|
|
48
|
+
* them. Four layouts ({@link SpeedDialType}): `linear` (stacks along
|
|
49
|
+
* `direction`), `circle` (full ring), `semi-circle` and `quarter-circle`
|
|
50
|
+
* (partial arcs centred/cornered on `direction`) — `radius` sizes the three
|
|
51
|
+
* arc layouts.
|
|
52
|
+
*
|
|
53
|
+
* Open state is the two-way `visible` model. The action list mounts only
|
|
54
|
+
* while open (`@if`) — closed actions are neither rendered nor reachable by
|
|
55
|
+
* keyboard, so no `aria-hidden`/`inert` bookkeeping is needed. Escape closes
|
|
56
|
+
* and returns focus to the trigger; `hideOnClickOutside` dismisses on an
|
|
57
|
+
* outside click. The actions form **one tab stop** (roving tabindex, same
|
|
58
|
+
* pattern as `ui-menu` / `ui-editor`'s toolbar): arrow keys move between
|
|
59
|
+
* them, `Home`/`End` jump to the ends, disabled entries are skipped.
|
|
60
|
+
*
|
|
61
|
+
* The trigger and every action are `ui-button` instances (`rounded
|
|
62
|
+
* iconOnly`) — colors come from the `actions.*` tokens, nothing is drawn by
|
|
63
|
+
* hand. `mask` dims the page behind the open dial (`--primitives-black-50`,
|
|
64
|
+
* the same token as `ui-modal`'s scrim).
|
|
65
|
+
*
|
|
66
|
+
* Positioning is left to the caller: the component does not assume a fixed
|
|
67
|
+
* corner. Wrap it in a `position: fixed` host (see the MDX "Bouton flottant"
|
|
68
|
+
* recipe) to reproduce the classic floating-action-button placement.
|
|
69
|
+
*/
|
|
70
|
+
declare class UiSpeedDial {
|
|
71
|
+
/** Actions revealed by the dial (see {@link UiSpeedDialItem}). */
|
|
72
|
+
items: _angular_core.InputSignal<UiSpeedDialItem[]>;
|
|
73
|
+
/** Open state (two-way). */
|
|
74
|
+
visible: _angular_core.ModelSignal<boolean>;
|
|
75
|
+
/** Layout: `linear` (stacked), `circle` (ring), `semi-circle` or `quarter-circle` (arc). */
|
|
76
|
+
type: _angular_core.InputSignal<SpeedDialType>;
|
|
77
|
+
/**
|
|
78
|
+
* Axis the actions fan along. `linear`/`semi-circle` read the four
|
|
79
|
+
* cardinal values; `quarter-circle` reads the four corners. Unused by
|
|
80
|
+
* `circle`, which always goes full ring.
|
|
81
|
+
*/
|
|
82
|
+
direction: _angular_core.InputSignal<SpeedDialDirection>;
|
|
83
|
+
/** Ring/arc radius in px — every type but `linear`. Falls back to a size-derived default. */
|
|
84
|
+
radius: _angular_core.InputSignal<number | undefined>;
|
|
85
|
+
/** Semantic level of the trigger. */
|
|
86
|
+
level: _angular_core.InputSignal<UiLevel>;
|
|
87
|
+
/**
|
|
88
|
+
* Semantic level of the actions. Defaults to `low`, deliberately different
|
|
89
|
+
* from the trigger's own `level`: a `high`-styled action would read as a
|
|
90
|
+
* second primary button rather than a revealed option.
|
|
91
|
+
*/
|
|
92
|
+
itemLevel: _angular_core.InputSignal<UiLevel>;
|
|
93
|
+
/** Apparence of the trigger and the actions. */
|
|
94
|
+
variant: _angular_core.InputSignal<ButtonVariant>;
|
|
95
|
+
/** Size of the trigger and the actions. */
|
|
96
|
+
size: _angular_core.InputSignal<ButtonSize>;
|
|
97
|
+
/** Icon of the trigger while closed. */
|
|
98
|
+
showIcon: _angular_core.InputSignal<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Icon of the trigger while open. Left unset, `showIcon` rotates 45° in
|
|
101
|
+
* place instead of being swapped for a second icon.
|
|
102
|
+
*/
|
|
103
|
+
hideIcon: _angular_core.InputSignal<string | undefined>;
|
|
104
|
+
/** Animates the trigger icon's rotation (`hideIcon` unset only). */
|
|
105
|
+
rotateAnimation: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Dims the page behind the dial while open. */
|
|
107
|
+
mask: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/** Closes the dial on an outside click. */
|
|
109
|
+
hideOnClickOutside: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
/** Disables the trigger and every action. */
|
|
111
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
112
|
+
/** Shows each action's label as a tooltip (icon-only actions). */
|
|
113
|
+
showTooltips: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
114
|
+
/** Animates the trigger and the actions (reduced-motion always wins). */
|
|
115
|
+
motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
116
|
+
/** Accessible name of the trigger. */
|
|
117
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
118
|
+
/** id of an external element naming the trigger. */
|
|
119
|
+
ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
120
|
+
/** Native tabindex of the trigger. */
|
|
121
|
+
tabindex: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
122
|
+
/** Fired when the trigger is clicked (never when disabled). */
|
|
123
|
+
triggerClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
124
|
+
/** Fired when the dial opens. */
|
|
125
|
+
opened: _angular_core.OutputEmitterRef<void>;
|
|
126
|
+
/** Fired when the dial closes. */
|
|
127
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
128
|
+
/** Fired when an action is activated (click / keyboard), never when disabled. */
|
|
129
|
+
itemClick: _angular_core.OutputEmitterRef<UiSpeedDialItemClickEvent>;
|
|
130
|
+
/** @ignore */
|
|
131
|
+
private readonly document;
|
|
132
|
+
/** @ignore Host element — outside-click detection. */
|
|
133
|
+
private readonly hostEl;
|
|
134
|
+
/** @ignore Trigger button (programmatic focus). */
|
|
135
|
+
private readonly triggerEl;
|
|
136
|
+
/** @ignore Rendered action buttons, in DOM order — the roving tabindex ring.
|
|
137
|
+
* Matched by their own `#actionBtn` ref so the trigger (`#trigger`) is excluded. */
|
|
138
|
+
private readonly actionEls;
|
|
139
|
+
/** Unique id of the actions list (wired to the trigger's `aria-controls`). */
|
|
140
|
+
readonly uid: string;
|
|
141
|
+
/** @ignore Key of the action currently holding the roving tab stop. */
|
|
142
|
+
protected readonly focusedKey: _angular_core.WritableSignal<string | null>;
|
|
143
|
+
constructor();
|
|
144
|
+
/** @ignore Enabled actions, keyed for the roving tabindex + trigonometry. */
|
|
145
|
+
protected readonly nodes: _angular_core.Signal<UiSpeedDialNode[]>;
|
|
146
|
+
/** @ignore Keys of the enabled entries, in order (roving focus path). */
|
|
147
|
+
private readonly focusableKeys;
|
|
148
|
+
/** @ignore Node owning the tab stop: last focused, else the first enabled one. */
|
|
149
|
+
protected readonly tabStopKey: _angular_core.Signal<string | null>;
|
|
150
|
+
/**
|
|
151
|
+
* @ignore Explicit ring radius, in px — set as the `--_radius` override.
|
|
152
|
+
* Left unset (`null`, no inline style), the SCSS default takes over.
|
|
153
|
+
*/
|
|
154
|
+
protected readonly radiusOverride: _angular_core.Signal<string | null>;
|
|
155
|
+
/**
|
|
156
|
+
* @ignore Per-item position on an arc (`circle`/`semi-circle`/
|
|
157
|
+
* `quarter-circle`): self-centred on the trigger, `--_radius` out at its
|
|
158
|
+
* angular slot (see `radiusOverride` for the explicit/default split).
|
|
159
|
+
*
|
|
160
|
+
* `circle` steps evenly around the FULL span (`span / total`, wrapping);
|
|
161
|
+
* the other two divide by `total - 1` so the first and last actions land
|
|
162
|
+
* exactly on the arc's own ends, not short of them.
|
|
163
|
+
*/
|
|
164
|
+
protected readonly arcTransform: _angular_core.Signal<(() => null) | ((index: number) => string)>;
|
|
165
|
+
/**
|
|
166
|
+
* @ignore Enter/leave preset.
|
|
167
|
+
*
|
|
168
|
+
* Arc items (`circle`/`semi-circle`/`quarter-circle`) already carry their
|
|
169
|
+
* own `[style.transform]` (angular position, `arcTransform`) —
|
|
170
|
+
* `zoom`/`slide-*` animate `transform` too, and a CSS animation on a
|
|
171
|
+
* property wins over an inline style for it, wiping the position out for
|
|
172
|
+
* the animation's duration. `fade` (opacity only) is the one preset that
|
|
173
|
+
* cannot collide with it.
|
|
174
|
+
*
|
|
175
|
+
* `linear` items carry no such transform, so they get the more expressive
|
|
176
|
+
* `slide-${direction}` — "enter moving toward `direction`".
|
|
177
|
+
*/
|
|
178
|
+
protected readonly itemMotionPreset: _angular_core.Signal<UiMotionPreset>;
|
|
179
|
+
/** @ignore Trigger icon while open: `hideIcon`, or `showIcon` rotated in place. */
|
|
180
|
+
protected readonly triggerIcon: _angular_core.Signal<string>;
|
|
181
|
+
/** @ignore The trigger icon rotates only when there is no dedicated `hideIcon`. */
|
|
182
|
+
protected readonly triggerIconRotates: _angular_core.Signal<boolean>;
|
|
183
|
+
/** @ignore Tooltip side: opposite the fan-out direction, so it never overlaps an action. */
|
|
184
|
+
protected readonly tooltipPosition: _angular_core.Signal<TooltipPosition>;
|
|
185
|
+
/**
|
|
186
|
+
* @ignore Attributes forwarded onto the trigger's real `<button>`/`<a>`
|
|
187
|
+
* (`ui-button`'s `#host`, not the `<ui-speed-dial>` wrapper): `role`,
|
|
188
|
+
* `ariaLabel` and `tabindex` already have dedicated `ui-button` inputs, the
|
|
189
|
+
* rest goes through `buttonProps` (see `ui-button`'s own forwarding).
|
|
190
|
+
*/
|
|
191
|
+
protected readonly triggerProps: _angular_core.Signal<ButtonNativeProps>;
|
|
192
|
+
/** @ignore Static: every action is a `menuitem`, whatever it renders as (button/link). */
|
|
193
|
+
protected readonly itemProps: ButtonNativeProps;
|
|
194
|
+
/** @ignore */
|
|
195
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
196
|
+
/** Opens the dial. */
|
|
197
|
+
show(): void;
|
|
198
|
+
/** Closes the dial. */
|
|
199
|
+
hide(focusTrigger?: boolean): void;
|
|
200
|
+
/** Toggles the dial open/closed. */
|
|
201
|
+
toggle(): void;
|
|
202
|
+
/** Moves focus onto the trigger. */
|
|
203
|
+
focus(options?: FocusOptions): void;
|
|
204
|
+
/** @ignore */
|
|
205
|
+
protected onTriggerClick(event: MouseEvent): void;
|
|
206
|
+
/** @ignore Arrow key on the (closed) trigger opens the dial onto its first action. */
|
|
207
|
+
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
208
|
+
/** @ignore Activation: command + itemClick, then close (never on a disabled entry). */
|
|
209
|
+
protected onItemClick(event: Event, node: UiSpeedDialNode): void;
|
|
210
|
+
/**
|
|
211
|
+
* @ignore Roving keyboard navigation among the open actions.
|
|
212
|
+
*
|
|
213
|
+
* Both arrow pairs move the same way regardless of `direction`/`type`: it
|
|
214
|
+
* keeps the mapping simple and predictable rather than re-deriving which
|
|
215
|
+
* pair means "forward" for eight possible linear/circular layouts.
|
|
216
|
+
*/
|
|
217
|
+
protected onListKeydown(event: KeyboardEvent): void;
|
|
218
|
+
/** @ignore */
|
|
219
|
+
protected onEntryFocus(key: string): void;
|
|
220
|
+
/** @ignore Outside pointerdown closes the dial (mousedown mirrors ui-menu's own outside-click). */
|
|
221
|
+
protected onDocumentPointerdown(event: PointerEvent): void;
|
|
222
|
+
/** @ignore Clicking the mask itself closes the dial. */
|
|
223
|
+
protected onMaskClick(): void;
|
|
224
|
+
/** @ignore */
|
|
225
|
+
private focusByKey;
|
|
226
|
+
/** @ignore Focus the roving tab stop once the actions are rendered (macrotask: rAF
|
|
227
|
+
* never fires in throttled/background tabs). */
|
|
228
|
+
private queueFocusTabStop;
|
|
229
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSpeedDial, never>;
|
|
230
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSpeedDial, "ui-speed-dial", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "itemLevel": { "alias": "itemLevel"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "hideIcon": { "alias": "hideIcon"; "required": false; "isSignal": true; }; "rotateAnimation": { "alias": "rotateAnimation"; "required": false; "isSignal": true; }; "mask": { "alias": "mask"; "required": false; "isSignal": true; }; "hideOnClickOutside": { "alias": "hideOnClickOutside"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showTooltips": { "alias": "showTooltips"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "triggerClick": "triggerClick"; "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export { UiSpeedDial };
|
|
234
|
+
export type { SpeedDialDirection, SpeedDialType, UiSpeedDialItem, UiSpeedDialItemClickEvent };
|
|
@@ -14,7 +14,7 @@ type UiImageAssetsMap = Record<string, ThemeMap>;
|
|
|
14
14
|
* Map of the LOCAL assets available to `ui-image` (its `name` input).
|
|
15
15
|
*
|
|
16
16
|
* The kit cannot know a project's assets, so the map is injected rather than
|
|
17
|
-
* bundled: generate it in your app (see `
|
|
17
|
+
* bundled: generate it in your app (see the `generate:assets` script in the
|
|
18
18
|
* starter, which writes `src/assets/assets-map.json`) and provide it with
|
|
19
19
|
* `provideUiImageAssets()`. Without it, `name` resolves to nothing and the
|
|
20
20
|
* component falls back to its placeholder — `src` (remote URLs) still works.
|
|
@@ -34,8 +34,9 @@ declare function provideUiImageAssets(map: UiImageAssetsMap): Provider;
|
|
|
34
34
|
*
|
|
35
35
|
* Two sources: `name` (local asset key resolved through `assets-map.json`,
|
|
36
36
|
* theme/brand variants) or `src` (remote/absolute URL — takes precedence).
|
|
37
|
-
* Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS
|
|
38
|
-
* remote URLs always render through
|
|
37
|
+
* Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS — after
|
|
38
|
+
* being scrubbed by `sanitizeInlineSvg()`; remote URLs always render through
|
|
39
|
+
* `<img [ngSrc]>` (never inlined).
|
|
39
40
|
* On load failure the `fallback` local asset is shown, then a token-styled
|
|
40
41
|
* placeholder if the fallback also fails (or none is provided).
|
|
41
42
|
*/
|
|
@@ -68,6 +69,18 @@ declare class UiImage {
|
|
|
68
69
|
private readonly primaryImgFailed;
|
|
69
70
|
private readonly fallbackImgFailed;
|
|
70
71
|
private readonly svgResource;
|
|
72
|
+
/**
|
|
73
|
+
* The inlined SVG, scrubbed then trusted.
|
|
74
|
+
*
|
|
75
|
+
* FSHSP-177 — this is the kit's ONLY `bypassSecurityTrust*()`. It is not
|
|
76
|
+
* avoidable: Angular's HTML sanitizer strips `<svg>` wholesale, so passing the
|
|
77
|
+
* asset through `sanitize(SecurityContext.HTML, …)` would render nothing, and
|
|
78
|
+
* inlining is the whole point (the asset inherits `currentColor` and the
|
|
79
|
+
* theme's CSS — an `<img>` cannot). What makes the bypass defensible is that
|
|
80
|
+
* the markup went through `sanitizeInlineSvg()` first: scripts, `foreignObject`,
|
|
81
|
+
* SMIL, event handlers and non-navigational references are already gone.
|
|
82
|
+
* Justified in `docs/SECURITY-PRACTICES.md`.
|
|
83
|
+
*/
|
|
71
84
|
protected readonly svgContent: _angular_core.Signal<SafeHtml | null>;
|
|
72
85
|
protected readonly primaryFailed: _angular_core.Signal<boolean>;
|
|
73
86
|
protected readonly showFallback: _angular_core.Signal<boolean>;
|
|
@@ -294,8 +294,11 @@ declare class UiAutocomplete<T = unknown> extends BaseFormField<AutocompleteValu
|
|
|
294
294
|
protected readonly overflowText: _angular_core.Signal<string>;
|
|
295
295
|
/** @ignore Contexts handed to the `#selectedItem` template (one per displayed value). */
|
|
296
296
|
protected readonly selectedItemContexts: _angular_core.Signal<AutocompleteSelectedItemContext<T>[]>;
|
|
297
|
-
/** @ignore Placeholder hidden as soon as values are selected (`multiple`)
|
|
297
|
+
/** @ignore Placeholder hidden as soon as values are selected (`multiple`), and
|
|
298
|
+
* while a floating label is at rest: it already holds that spot. */
|
|
298
299
|
protected readonly effectivePlaceholder: _angular_core.Signal<string>;
|
|
300
|
+
/** @ignore Keeps a floating label raised once focus leaves. */
|
|
301
|
+
protected readonly isFilled: _angular_core.Signal<boolean>;
|
|
299
302
|
/** @ignore Chips are removable unless the field is disabled/readonly. */
|
|
300
303
|
protected readonly canRemove: _angular_core.Signal<boolean>;
|
|
301
304
|
/** @ignore The empty-state row is rendered. */
|