@4sh/ui-kit 0.16.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { UiLevel } from "@4sh/ui-kit/types";
|
|
5
|
+
import { ButtonNativeProps, ButtonSize, ButtonVariant } from "@4sh/ui-kit/actions/ui-button";
|
|
6
|
+
import { UiMenuItem } from "@4sh/ui-kit/navigation/ui-menu";
|
|
7
|
+
import { TooltipPosition } from "@4sh/ui-kit/informative/ui-tooltip";
|
|
8
|
+
import { UiMotionPreset } from "@4sh/ui-kit/motion";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* Axis the actions fan out along.
|
|
10
12
|
*
|
|
@@ -12,31 +14,31 @@ import { UiMotionPreset } from '@4sh/ui-kit/motion';
|
|
|
12
14
|
* reads the four corners — a cardinal value falls back to `'up-right'` there
|
|
13
15
|
* (see `arcSpan`).
|
|
14
16
|
*/
|
|
15
|
-
type SpeedDialDirection = 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right';
|
|
17
|
+
export type SpeedDialDirection = 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right';
|
|
16
18
|
/**
|
|
17
19
|
* `linear` stacks the actions along `direction`. The other three arrange them
|
|
18
20
|
* on an arc around the trigger (`radius`): `circle` the full ring,
|
|
19
21
|
* `semi-circle` a 180° half centred on `direction`, `quarter-circle` a 90°
|
|
20
22
|
* quadrant in the `direction` corner.
|
|
21
23
|
*/
|
|
22
|
-
type SpeedDialType = 'linear' | 'circle' | 'semi-circle' | 'quarter-circle';
|
|
24
|
+
export type SpeedDialType = 'linear' | 'circle' | 'semi-circle' | 'quarter-circle';
|
|
23
25
|
/**
|
|
24
26
|
* One action revealed by the dial — the leaf subset of {@link UiMenuItem}
|
|
25
27
|
* `ui-button` can actually render (no groups/separators, and no
|
|
26
28
|
* `queryParams`/`routerLinkActiveExact`: `ui-button`'s link mode does not
|
|
27
29
|
* carry them).
|
|
28
30
|
*/
|
|
29
|
-
type UiSpeedDialItem = Pick<UiMenuItem, 'id' | 'label' | 'icon' | 'command' | 'disabled' | 'routerLink' | 'url' | 'target' | 'ariaLabel'>;
|
|
31
|
+
export type UiSpeedDialItem = Pick<UiMenuItem, 'id' | 'label' | 'icon' | 'command' | 'disabled' | 'routerLink' | 'url' | 'target' | 'ariaLabel'>;
|
|
30
32
|
/** Payload of `itemClick` / an item's own `command`. */
|
|
31
|
-
interface UiSpeedDialItemClickEvent {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
export interface UiSpeedDialItemClickEvent {
|
|
34
|
+
originalEvent: Event;
|
|
35
|
+
item: UiSpeedDialItem;
|
|
34
36
|
}
|
|
35
37
|
/** @ignore Render node: item + its stable key + its index among enabled actions. */
|
|
36
38
|
interface UiSpeedDialNode {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
item: UiSpeedDialItem;
|
|
40
|
+
key: string;
|
|
41
|
+
index: number;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* ui-speed-dial — a floating trigger button that fans a set of actions out
|
|
@@ -67,168 +69,273 @@ interface UiSpeedDialNode {
|
|
|
67
69
|
* corner. Wrap it in a `position: fixed` host (see the MDX "Bouton flottant"
|
|
68
70
|
* recipe) to reproduce the classic floating-action-button placement.
|
|
69
71
|
*/
|
|
70
|
-
declare class UiSpeedDial {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
72
|
+
export declare class UiSpeedDial {
|
|
73
|
+
/** Actions revealed by the dial (see {@link UiSpeedDialItem}). */
|
|
74
|
+
items: import("@angular/core").InputSignal<UiSpeedDialItem[]>;
|
|
75
|
+
/** Open state (two-way). */
|
|
76
|
+
visible: import("@angular/core").ModelSignal<boolean>;
|
|
77
|
+
/** Layout: `linear` (stacked), `circle` (ring), `semi-circle` or `quarter-circle` (arc). */
|
|
78
|
+
type: import("@angular/core").InputSignal<SpeedDialType>;
|
|
79
|
+
/**
|
|
80
|
+
* Axis the actions fan along. `linear`/`semi-circle` read the four
|
|
81
|
+
* cardinal values; `quarter-circle` reads the four corners. Unused by
|
|
82
|
+
* `circle`, which always goes full ring.
|
|
83
|
+
*/
|
|
84
|
+
direction: import("@angular/core").InputSignal<SpeedDialDirection>;
|
|
85
|
+
/** Ring/arc radius in px — every type but `linear`. Falls back to a size-derived default. */
|
|
86
|
+
radius: import("@angular/core").InputSignal<number | undefined>;
|
|
87
|
+
/** Semantic level of the trigger. */
|
|
88
|
+
level: import("@angular/core").InputSignal<UiLevel>;
|
|
89
|
+
/**
|
|
90
|
+
* Semantic level of the actions. Defaults to `low`, deliberately different
|
|
91
|
+
* from the trigger's own `level`: a `high`-styled action would read as a
|
|
92
|
+
* second primary button rather than a revealed option.
|
|
93
|
+
*/
|
|
94
|
+
itemLevel: import("@angular/core").InputSignal<UiLevel>;
|
|
95
|
+
/** Apparence of the trigger and the actions. */
|
|
96
|
+
variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
97
|
+
/** Size of the trigger and the actions. */
|
|
98
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
99
|
+
/** Icon of the trigger while closed. */
|
|
100
|
+
showIcon: import("@angular/core").InputSignal<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Icon of the trigger while open. Left unset, `showIcon` rotates 45° in
|
|
103
|
+
* place instead of being swapped for a second icon.
|
|
104
|
+
*/
|
|
105
|
+
hideIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
106
|
+
/** Animates the trigger icon's rotation (`hideIcon` unset only). */
|
|
107
|
+
rotateAnimation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/** Dims the page behind the dial while open. */
|
|
109
|
+
mask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
/** Closes the dial on an outside click. */
|
|
111
|
+
hideOnClickOutside: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
112
|
+
/** Disables the trigger and every action. */
|
|
113
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
114
|
+
/** Shows each action's label as a tooltip (icon-only actions). */
|
|
115
|
+
showTooltips: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
116
|
+
/** Animates the trigger and the actions (reduced-motion always wins). */
|
|
117
|
+
motion: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
/** Accessible name of the trigger. */
|
|
119
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
120
|
+
/** id of an external element naming the trigger. */
|
|
121
|
+
ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
122
|
+
/** Native tabindex of the trigger. */
|
|
123
|
+
tabindex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
124
|
+
/** Fired when the trigger is clicked (never when disabled). */
|
|
125
|
+
triggerClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
126
|
+
/** Fired when the dial opens. */
|
|
127
|
+
opened: import("@angular/core").OutputEmitterRef<void>;
|
|
128
|
+
/** Fired when the dial closes. */
|
|
129
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
130
|
+
/** Fired when an action is activated (click / keyboard), never when disabled. */
|
|
131
|
+
itemClick: import("@angular/core").OutputEmitterRef<UiSpeedDialItemClickEvent>;
|
|
132
|
+
/** @ignore */
|
|
133
|
+
private readonly document;
|
|
134
|
+
/** @ignore Host element — outside-click detection. */
|
|
135
|
+
private readonly hostEl;
|
|
136
|
+
/** @ignore Trigger button (programmatic focus). */
|
|
137
|
+
private readonly triggerEl;
|
|
138
|
+
/** @ignore Rendered action buttons, in DOM order — the roving tabindex ring.
|
|
139
|
+
* Matched by their own `#actionBtn` ref so the trigger (`#trigger`) is excluded. */
|
|
140
|
+
private readonly actionEls;
|
|
141
|
+
/** Unique id of the actions list (wired to the trigger's `aria-controls`). */
|
|
142
|
+
readonly uid: string;
|
|
143
|
+
/** @ignore Key of the action currently holding the roving tab stop. */
|
|
144
|
+
protected readonly focusedKey: import("@angular/core").WritableSignal<string | null>;
|
|
145
|
+
constructor();
|
|
146
|
+
/** @ignore Enabled actions, keyed for the roving tabindex + trigonometry. */
|
|
147
|
+
protected readonly nodes: import("@angular/core").Signal<UiSpeedDialNode[]>;
|
|
148
|
+
/** @ignore Keys of the enabled entries, in order (roving focus path). */
|
|
149
|
+
private readonly focusableKeys;
|
|
150
|
+
/** @ignore Node owning the tab stop: last focused, else the first enabled one. */
|
|
151
|
+
protected readonly tabStopKey: import("@angular/core").Signal<string | null>;
|
|
152
|
+
/**
|
|
153
|
+
* @ignore Explicit ring radius, in px — set as the `--_radius` override.
|
|
154
|
+
* Left unset (`null`, no inline style), the SCSS default takes over.
|
|
155
|
+
*/
|
|
156
|
+
protected readonly radiusOverride: import("@angular/core").Signal<string | null>;
|
|
157
|
+
/**
|
|
158
|
+
* @ignore Per-item position on an arc (`circle`/`semi-circle`/
|
|
159
|
+
* `quarter-circle`): self-centred on the trigger, `--_radius` out at its
|
|
160
|
+
* angular slot (see `radiusOverride` for the explicit/default split).
|
|
161
|
+
*
|
|
162
|
+
* `circle` steps evenly around the FULL span (`span / total`, wrapping);
|
|
163
|
+
* the other two divide by `total - 1` so the first and last actions land
|
|
164
|
+
* exactly on the arc's own ends, not short of them.
|
|
165
|
+
*/
|
|
166
|
+
protected readonly arcTransform: import("@angular/core").Signal<(() => null) | ((index: number) => string)>;
|
|
167
|
+
/**
|
|
168
|
+
* @ignore Enter/leave preset.
|
|
169
|
+
*
|
|
170
|
+
* Arc items (`circle`/`semi-circle`/`quarter-circle`) already carry their
|
|
171
|
+
* own `[style.transform]` (angular position, `arcTransform`) —
|
|
172
|
+
* `zoom`/`slide-*` animate `transform` too, and a CSS animation on a
|
|
173
|
+
* property wins over an inline style for it, wiping the position out for
|
|
174
|
+
* the animation's duration. `fade` (opacity only) is the one preset that
|
|
175
|
+
* cannot collide with it.
|
|
176
|
+
*
|
|
177
|
+
* `linear` items carry no such transform, so they get the more expressive
|
|
178
|
+
* `slide-${direction}` — "enter moving toward `direction`".
|
|
179
|
+
*/
|
|
180
|
+
protected readonly itemMotionPreset: import("@angular/core").Signal<UiMotionPreset>;
|
|
181
|
+
/** @ignore Trigger icon while open: `hideIcon`, or `showIcon` rotated in place. */
|
|
182
|
+
protected readonly triggerIcon: import("@angular/core").Signal<string>;
|
|
183
|
+
/** @ignore The trigger icon rotates only when there is no dedicated `hideIcon`. */
|
|
184
|
+
protected readonly triggerIconRotates: import("@angular/core").Signal<boolean>;
|
|
185
|
+
/** @ignore Tooltip side: opposite the fan-out direction, so it never overlaps an action. */
|
|
186
|
+
protected readonly tooltipPosition: import("@angular/core").Signal<TooltipPosition>;
|
|
187
|
+
/**
|
|
188
|
+
* @ignore Attributes forwarded onto the trigger's real `<button>`/`<a>`
|
|
189
|
+
* (`ui-button`'s `#host`, not the `<ui-speed-dial>` wrapper): `role`,
|
|
190
|
+
* `ariaLabel` and `tabindex` already have dedicated `ui-button` inputs, the
|
|
191
|
+
* rest goes through `buttonProps` (see `ui-button`'s own forwarding).
|
|
192
|
+
*/
|
|
193
|
+
protected readonly triggerProps: import("@angular/core").Signal<ButtonNativeProps>;
|
|
194
|
+
/** @ignore Static: every action is a `menuitem`, whatever it renders as (button/link). */
|
|
195
|
+
protected readonly itemProps: ButtonNativeProps;
|
|
196
|
+
/** @ignore */
|
|
197
|
+
protected readonly hostClasses: import("@angular/core").Signal<string>;
|
|
198
|
+
/** Opens the dial. */
|
|
199
|
+
show(): void;
|
|
200
|
+
/** Closes the dial. */
|
|
201
|
+
hide(focusTrigger?: boolean): void;
|
|
202
|
+
/** Toggles the dial open/closed. */
|
|
203
|
+
toggle(): void;
|
|
204
|
+
/** Moves focus onto the trigger. */
|
|
205
|
+
focus(options?: FocusOptions): void;
|
|
206
|
+
/** @ignore */
|
|
207
|
+
protected onTriggerClick(event: MouseEvent): void;
|
|
208
|
+
/** @ignore Arrow key on the (closed) trigger opens the dial onto its first action. */
|
|
209
|
+
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
210
|
+
/** @ignore Activation: command + itemClick, then close (never on a disabled entry). */
|
|
211
|
+
protected onItemClick(event: Event, node: UiSpeedDialNode): void;
|
|
212
|
+
/**
|
|
213
|
+
* @ignore Roving keyboard navigation among the open actions.
|
|
214
|
+
*
|
|
215
|
+
* Both arrow pairs move the same way regardless of `direction`/`type`: it
|
|
216
|
+
* keeps the mapping simple and predictable rather than re-deriving which
|
|
217
|
+
* pair means "forward" for eight possible linear/circular layouts.
|
|
218
|
+
*/
|
|
219
|
+
protected onListKeydown(event: KeyboardEvent): void;
|
|
220
|
+
/** @ignore */
|
|
221
|
+
protected onEntryFocus(key: string): void;
|
|
222
|
+
/** @ignore Outside pointerdown closes the dial (mousedown mirrors ui-menu's own outside-click). */
|
|
223
|
+
protected onDocumentPointerdown(event: PointerEvent): void;
|
|
224
|
+
/** @ignore Clicking the mask itself closes the dial. */
|
|
225
|
+
protected onMaskClick(): void;
|
|
226
|
+
/** @ignore */
|
|
227
|
+
private focusByKey;
|
|
228
|
+
/** @ignore Focus the roving tab stop once the actions are rendered (macrotask: rAF
|
|
229
|
+
* never fires in throttled/background tabs). */
|
|
230
|
+
private queueFocusTabStop;
|
|
231
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiSpeedDial, never>;
|
|
232
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiSpeedDial, "ui-speed-dial", never, {
|
|
233
|
+
"items": {
|
|
234
|
+
"alias": "items";
|
|
235
|
+
"required": true;
|
|
236
|
+
"isSignal": true;
|
|
237
|
+
};
|
|
238
|
+
"visible": {
|
|
239
|
+
"alias": "visible";
|
|
240
|
+
"required": false;
|
|
241
|
+
"isSignal": true;
|
|
242
|
+
};
|
|
243
|
+
"type": {
|
|
244
|
+
"alias": "type";
|
|
245
|
+
"required": false;
|
|
246
|
+
"isSignal": true;
|
|
247
|
+
};
|
|
248
|
+
"direction": {
|
|
249
|
+
"alias": "direction";
|
|
250
|
+
"required": false;
|
|
251
|
+
"isSignal": true;
|
|
252
|
+
};
|
|
253
|
+
"radius": {
|
|
254
|
+
"alias": "radius";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
258
|
+
"level": {
|
|
259
|
+
"alias": "level";
|
|
260
|
+
"required": false;
|
|
261
|
+
"isSignal": true;
|
|
262
|
+
};
|
|
263
|
+
"itemLevel": {
|
|
264
|
+
"alias": "itemLevel";
|
|
265
|
+
"required": false;
|
|
266
|
+
"isSignal": true;
|
|
267
|
+
};
|
|
268
|
+
"variant": {
|
|
269
|
+
"alias": "variant";
|
|
270
|
+
"required": false;
|
|
271
|
+
"isSignal": true;
|
|
272
|
+
};
|
|
273
|
+
"size": {
|
|
274
|
+
"alias": "size";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
278
|
+
"showIcon": {
|
|
279
|
+
"alias": "showIcon";
|
|
280
|
+
"required": false;
|
|
281
|
+
"isSignal": true;
|
|
282
|
+
};
|
|
283
|
+
"hideIcon": {
|
|
284
|
+
"alias": "hideIcon";
|
|
285
|
+
"required": false;
|
|
286
|
+
"isSignal": true;
|
|
287
|
+
};
|
|
288
|
+
"rotateAnimation": {
|
|
289
|
+
"alias": "rotateAnimation";
|
|
290
|
+
"required": false;
|
|
291
|
+
"isSignal": true;
|
|
292
|
+
};
|
|
293
|
+
"mask": {
|
|
294
|
+
"alias": "mask";
|
|
295
|
+
"required": false;
|
|
296
|
+
"isSignal": true;
|
|
297
|
+
};
|
|
298
|
+
"hideOnClickOutside": {
|
|
299
|
+
"alias": "hideOnClickOutside";
|
|
300
|
+
"required": false;
|
|
301
|
+
"isSignal": true;
|
|
302
|
+
};
|
|
303
|
+
"disabled": {
|
|
304
|
+
"alias": "disabled";
|
|
305
|
+
"required": false;
|
|
306
|
+
"isSignal": true;
|
|
307
|
+
};
|
|
308
|
+
"showTooltips": {
|
|
309
|
+
"alias": "showTooltips";
|
|
310
|
+
"required": false;
|
|
311
|
+
"isSignal": true;
|
|
312
|
+
};
|
|
313
|
+
"motion": {
|
|
314
|
+
"alias": "motion";
|
|
315
|
+
"required": false;
|
|
316
|
+
"isSignal": true;
|
|
317
|
+
};
|
|
318
|
+
"ariaLabel": {
|
|
319
|
+
"alias": "ariaLabel";
|
|
320
|
+
"required": false;
|
|
321
|
+
"isSignal": true;
|
|
322
|
+
};
|
|
323
|
+
"ariaLabelledBy": {
|
|
324
|
+
"alias": "ariaLabelledBy";
|
|
325
|
+
"required": false;
|
|
326
|
+
"isSignal": true;
|
|
327
|
+
};
|
|
328
|
+
"tabindex": {
|
|
329
|
+
"alias": "tabindex";
|
|
330
|
+
"required": false;
|
|
331
|
+
"isSignal": true;
|
|
332
|
+
};
|
|
333
|
+
}, {
|
|
334
|
+
"visible": "visibleChange";
|
|
335
|
+
"triggerClick": "triggerClick";
|
|
336
|
+
"opened": "opened";
|
|
337
|
+
"closed": "closed";
|
|
338
|
+
"itemClick": "itemClick";
|
|
339
|
+
}, never, never, true, never>;
|
|
231
340
|
}
|
|
232
|
-
|
|
233
|
-
export { UiSpeedDial };
|
|
234
|
-
export type { SpeedDialDirection, SpeedDialType, UiSpeedDialItem, UiSpeedDialItemClickEvent };
|
|
341
|
+
export {};
|