@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,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { BaseFieldControl } from "@4sh/ui-kit/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type SliderOrientation = 'horizontal' | 'vertical';
|
|
5
7
|
/** Model value: a single number, or a `[start, end]` tuple in `range` mode. */
|
|
6
|
-
type SliderValue = number | number[];
|
|
8
|
+
export type SliderValue = number | number[];
|
|
7
9
|
/** A slider handle projected to the view (its live value + track position). */
|
|
8
10
|
interface SliderHandle {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
index: number;
|
|
12
|
+
value: number;
|
|
13
|
+
percent: number;
|
|
12
14
|
}
|
|
13
15
|
/** A step tick projected to the view. */
|
|
14
16
|
interface SliderMark {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
value: number;
|
|
18
|
+
percent: number;
|
|
19
|
+
active: boolean;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* ui-slider — headless slider to pick a numeric value (or a range) by dragging
|
|
@@ -30,98 +32,147 @@ interface SliderMark {
|
|
|
30
32
|
* (`[formField]`) — it is a `ControlValueAccessor`. In `range` mode the model is a
|
|
31
33
|
* two-item array, otherwise a single number.
|
|
32
34
|
*/
|
|
33
|
-
declare class UiSlider extends BaseFieldControl<SliderValue> {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
35
|
+
export declare class UiSlider extends BaseFieldControl<SliderValue> {
|
|
36
|
+
/** Minimum boundary value. */
|
|
37
|
+
min: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
38
|
+
/** Maximum boundary value. */
|
|
39
|
+
max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
40
|
+
/** Increment/decrement granularity (drag snapping + keyboard step). */
|
|
41
|
+
step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
42
|
+
/** Two handles selecting a `[start, end]` range (the model becomes an array). */
|
|
43
|
+
range: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/** Minimum number of steps kept between the two handles (range mode only). */
|
|
45
|
+
minStepsBetweenHandles: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
46
|
+
/** Renders a tick for every step along the track. */
|
|
47
|
+
marks: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
/** Orientation of the slider (drives the arrow keys and layout). */
|
|
49
|
+
orientation: import("@angular/core").InputSignal<SliderOrientation>;
|
|
50
|
+
/** Accessible name of the start (lower) handle in `range` mode — falls back to `ariaLabel`. */
|
|
51
|
+
ariaLabelStart: import("@angular/core").InputSignal<string | undefined>;
|
|
52
|
+
/** Accessible name of the end (upper) handle in `range` mode — falls back to `ariaLabel`. */
|
|
53
|
+
ariaLabelEnd: import("@angular/core").InputSignal<string | undefined>;
|
|
54
|
+
/** Emitted continuously while the value changes (drag, keyboard, track click). */
|
|
55
|
+
sliderChange: import("@angular/core").OutputEmitterRef<SliderValue>;
|
|
56
|
+
/** Emitted once a drag (or track click) completes — mirrors PrimeNG `onSlideEnd`. */
|
|
57
|
+
slideEnd: import("@angular/core").OutputEmitterRef<SliderValue>;
|
|
58
|
+
/** Emitted when a handle receives focus. */
|
|
59
|
+
sliderFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
60
|
+
/** Emitted when a handle loses focus. */
|
|
61
|
+
sliderBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
62
|
+
/** @ignore Positioned root: the pointer target and % reference for handles. */
|
|
63
|
+
private readonly root;
|
|
64
|
+
/** @ignore The handle elements (one, or two in range mode). */
|
|
65
|
+
private readonly handleEls;
|
|
66
|
+
/** @ignore Current model value (written by the form or by user interaction).
|
|
67
|
+
* Redeclared over the base signal: a slider always has a numeric value (never `undefined`). */
|
|
68
|
+
protected readonly modelValue: import("@angular/core").WritableSignal<SliderValue>;
|
|
69
|
+
/** @ignore Index of the handle currently being dragged (null when idle). */
|
|
70
|
+
private readonly activeHandle;
|
|
71
|
+
constructor();
|
|
72
|
+
/** @ignore Normalized `[start, end]` values (range mode). */
|
|
73
|
+
private readonly rangeValues;
|
|
74
|
+
/** @ignore Normalized single value (non-range mode). */
|
|
75
|
+
private readonly singleValue;
|
|
76
|
+
/** @ignore Handles projected to the view (value + position). */
|
|
77
|
+
protected readonly handles: import("@angular/core").Signal<SliderHandle[]>;
|
|
78
|
+
/** @ignore Filled portion of the track (offset % + length %). */
|
|
79
|
+
protected readonly fill: import("@angular/core").Signal<{
|
|
80
|
+
start: number;
|
|
81
|
+
size: number;
|
|
82
|
+
}>;
|
|
83
|
+
/** @ignore Step ticks (only when `marks`, capped to keep the DOM sane). */
|
|
84
|
+
protected readonly markList: import("@angular/core").Signal<SliderMark[]>;
|
|
85
|
+
/** @ignore */
|
|
86
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
87
|
+
writeValue(value: SliderValue): void;
|
|
88
|
+
/** @ignore */
|
|
89
|
+
protected uidPrefix(): string;
|
|
90
|
+
/** Focus the first handle programmatically. */
|
|
91
|
+
focus(options?: FocusOptions): void;
|
|
92
|
+
/** @ignore Start dragging: pick the closest handle, capture the pointer, seed the value. */
|
|
93
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
94
|
+
/** @ignore */
|
|
95
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
96
|
+
/** @ignore End of drag: release capture and fire `slideEnd`. */
|
|
97
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
98
|
+
/** @ignore Arrow / Page / Home / End move the focused handle. */
|
|
99
|
+
protected onKeyDown(event: KeyboardEvent, index: number): void;
|
|
100
|
+
/** @ignore */
|
|
101
|
+
protected onFocus(event: FocusEvent): void;
|
|
102
|
+
/** @ignore */
|
|
103
|
+
protected onBlur(event: FocusEvent): void;
|
|
104
|
+
/** @ignore Effective step (never 0). */
|
|
105
|
+
private stepSize;
|
|
106
|
+
/** @ignore Value → track position as a 0–100% ratio. */
|
|
107
|
+
private toPercent;
|
|
108
|
+
/** @ignore Pointer coordinate → raw value in [min, max]. */
|
|
109
|
+
private valueFromPointer;
|
|
110
|
+
/** @ignore Closest handle to a value (range mode). */
|
|
111
|
+
private nearestHandle;
|
|
112
|
+
/** @ignore Accessible name of a given handle (distinct per handle in range mode). */
|
|
113
|
+
protected handleAriaLabel(index: number): string | undefined;
|
|
114
|
+
/** @ignore Snap to the step grid, relative to `min`. */
|
|
115
|
+
private snap;
|
|
116
|
+
/** @ignore Round to the step's decimal precision (avoids float drift). */
|
|
117
|
+
private round;
|
|
118
|
+
/** @ignore Clamp to [min, max]. */
|
|
119
|
+
private clamp;
|
|
120
|
+
/** @ignore Snap + clamp + range-gap enforcement, then commit if changed. */
|
|
121
|
+
private updateValue;
|
|
122
|
+
/** @ignore Update the model + propagate to the form and the output. */
|
|
123
|
+
private commit;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiSlider, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiSlider, "ui-slider", never, {
|
|
126
|
+
"min": {
|
|
127
|
+
"alias": "min";
|
|
128
|
+
"required": false;
|
|
129
|
+
"isSignal": true;
|
|
130
|
+
};
|
|
131
|
+
"max": {
|
|
132
|
+
"alias": "max";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
136
|
+
"step": {
|
|
137
|
+
"alias": "step";
|
|
138
|
+
"required": false;
|
|
139
|
+
"isSignal": true;
|
|
140
|
+
};
|
|
141
|
+
"range": {
|
|
142
|
+
"alias": "range";
|
|
143
|
+
"required": false;
|
|
144
|
+
"isSignal": true;
|
|
145
|
+
};
|
|
146
|
+
"minStepsBetweenHandles": {
|
|
147
|
+
"alias": "minStepsBetweenHandles";
|
|
148
|
+
"required": false;
|
|
149
|
+
"isSignal": true;
|
|
150
|
+
};
|
|
151
|
+
"marks": {
|
|
152
|
+
"alias": "marks";
|
|
153
|
+
"required": false;
|
|
154
|
+
"isSignal": true;
|
|
155
|
+
};
|
|
156
|
+
"orientation": {
|
|
157
|
+
"alias": "orientation";
|
|
158
|
+
"required": false;
|
|
159
|
+
"isSignal": true;
|
|
160
|
+
};
|
|
161
|
+
"ariaLabelStart": {
|
|
162
|
+
"alias": "ariaLabelStart";
|
|
163
|
+
"required": false;
|
|
164
|
+
"isSignal": true;
|
|
165
|
+
};
|
|
166
|
+
"ariaLabelEnd": {
|
|
167
|
+
"alias": "ariaLabelEnd";
|
|
168
|
+
"required": false;
|
|
169
|
+
"isSignal": true;
|
|
170
|
+
};
|
|
171
|
+
}, {
|
|
172
|
+
"sliderChange": "sliderChange";
|
|
173
|
+
"slideEnd": "slideEnd";
|
|
174
|
+
"sliderFocus": "sliderFocus";
|
|
175
|
+
"sliderBlur": "sliderBlur";
|
|
176
|
+
}, never, never, true, never>;
|
|
124
177
|
}
|
|
125
|
-
|
|
126
|
-
export { UiSlider };
|
|
127
|
-
export type { SliderOrientation, SliderValue };
|
|
178
|
+
export {};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
4
6
|
/** Density: `default`, or `small` for compact toolbars/popups. */
|
|
5
|
-
type SwatchPickerSize = 'default' | 'small';
|
|
7
|
+
export type SwatchPickerSize = 'default' | 'small';
|
|
6
8
|
/** One selectable color entry. */
|
|
7
|
-
interface UiSwatch {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export interface UiSwatch {
|
|
10
|
+
/** Stable identifier, also the value carried by `value`/`swatchSelect`. */
|
|
11
|
+
key: string;
|
|
12
|
+
/** CSS variable rendering the swatch (e.g. `--primitives-red-500`). */
|
|
13
|
+
cssVar: string;
|
|
14
|
+
/** Accessible name (never just the color: sighted/non-sighted parity). */
|
|
15
|
+
label: string;
|
|
14
16
|
}
|
|
15
17
|
/** A labeled section of the grid (rendered as consecutive cells, same columns). */
|
|
16
|
-
interface UiSwatchGroup {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export interface UiSwatchGroup {
|
|
19
|
+
/** Section label (rendered for screen readers via `aria-label` on the group). */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Swatches of the section, in row-major (left-to-right, top-to-bottom) order. */
|
|
22
|
+
swatches: UiSwatch[];
|
|
21
23
|
}
|
|
22
24
|
/** @ignore Internal flat entry (real swatch, or the synthetic "no color" one). */
|
|
23
25
|
interface FlatSwatch {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
key: string | null;
|
|
27
|
+
cssVar: string | null;
|
|
28
|
+
label: string;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Default palette: a 7×5 grid (7 hues × 5 shades, dark → light) derived from
|
|
@@ -31,7 +33,7 @@ interface FlatSwatch {
|
|
|
31
33
|
* every swatch is a semantic pointer to a `--primitives-*` CSS variable, so a
|
|
32
34
|
* brand rebind (Brand 2 / Brand 3) changes what the grid shows for free.
|
|
33
35
|
*/
|
|
34
|
-
declare const DEFAULT_SWATCH_PALETTE: UiSwatchGroup[];
|
|
36
|
+
export declare const DEFAULT_SWATCH_PALETTE: UiSwatchGroup[];
|
|
35
37
|
/**
|
|
36
38
|
* ui-swatch-picker — headless color grid, static or popup, for a single-value
|
|
37
39
|
* choice among a `UiSwatchGroup[]` palette (see {@link DEFAULT_SWATCH_PALETTE}).
|
|
@@ -46,81 +48,115 @@ declare const DEFAULT_SWATCH_PALETTE: UiSwatchGroup[];
|
|
|
46
48
|
* a `role="listbox"`; 2D roving-tabindex keyboard navigation (arrows,
|
|
47
49
|
* Home/End) mirrors `ui-menu`'s roving focus, adapted to a grid.
|
|
48
50
|
*/
|
|
49
|
-
declare class UiSwatchPicker {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
51
|
+
export declare class UiSwatchPicker {
|
|
52
|
+
/** Palette rendered as sections of swatches (see {@link UiSwatchGroup}). */
|
|
53
|
+
palette: import("@angular/core").InputSignal<UiSwatchGroup[]>;
|
|
54
|
+
/** Selected swatch `key` (two-way bindable), or `null` for "no color". */
|
|
55
|
+
value: import("@angular/core").ModelSignal<string | null>;
|
|
56
|
+
/** Popup mode: the panel opens in an overlay via `toggle(event)` / `show(event)`. */
|
|
57
|
+
popup: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
|
+
/** Density: `default`, or `small` for compact toolbars/popups. */
|
|
59
|
+
size: import("@angular/core").InputSignal<SwatchPickerSize>;
|
|
60
|
+
/** Renders a "no color" swatch at the start of the grid, emitting `null`. */
|
|
61
|
+
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
|
+
/** Accessible name of the grid (`aria-label` on `role="listbox"`). */
|
|
63
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
64
|
+
/** Emitted on user selection (`null` when the "no color" swatch is picked). */
|
|
65
|
+
swatchSelect: import("@angular/core").OutputEmitterRef<UiSwatch | null>;
|
|
66
|
+
/** Emitted when the popup opens. */
|
|
67
|
+
opened: import("@angular/core").OutputEmitterRef<void>;
|
|
68
|
+
/** Emitted when the popup closes. */
|
|
69
|
+
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
70
|
+
/** @ignore Panel root (overlay or inline) — keyboard focus queries. */
|
|
71
|
+
private readonly panelEl;
|
|
72
|
+
/** @ignore The popup's overlay (repositioning on scroll). */
|
|
73
|
+
private readonly connectedOverlay;
|
|
74
|
+
/** @ignore */
|
|
75
|
+
private readonly doc;
|
|
76
|
+
/** Unique id of the panel (public: wire the trigger's `aria-controls` to it). */
|
|
77
|
+
readonly uid: string;
|
|
78
|
+
/** @ignore Popup open state. */
|
|
79
|
+
protected readonly popupOpen: import("@angular/core").WritableSignal<boolean>;
|
|
80
|
+
/** @ignore Element the overlay is anchored to (the `toggle(event)` trigger). */
|
|
81
|
+
protected readonly overlayOrigin: import("@angular/core").WritableSignal<Element | null>;
|
|
82
|
+
/** @ignore Key of the swatch owning the roving tabindex (`''` = the clear
|
|
83
|
+
* swatch, `undefined` = nothing focused yet). */
|
|
84
|
+
private readonly focusedKey;
|
|
85
|
+
constructor();
|
|
86
|
+
/** @ignore */
|
|
87
|
+
private overlayRef;
|
|
88
|
+
/** @ignore Below the trigger, flipping above when space is lacking. */
|
|
89
|
+
protected readonly overlayPositions: ConnectedPosition[];
|
|
90
|
+
/** @ignore Flat, render-ready swatch list (the synthetic "no color" one first). */
|
|
91
|
+
protected readonly flatSwatches: import("@angular/core").Signal<FlatSwatch[]>;
|
|
92
|
+
/** @ignore Keys of the focusable entries, in grid order (roving focus path). Uses `''` as the clear swatch's key (`null` is reserved for "nothing focused"). */
|
|
93
|
+
private readonly focusableKeys;
|
|
94
|
+
/** @ignore Key owning the tab stop: last focused, else the selected value, else first. */
|
|
95
|
+
protected readonly tabStopKey: import("@angular/core").Signal<string | null>;
|
|
96
|
+
/** @ignore */
|
|
97
|
+
protected readonly panelClasses: import("@angular/core").Signal<string>;
|
|
98
|
+
/** Toggles the popup relative to the event's `currentTarget`. */
|
|
99
|
+
toggle(event: Event): void;
|
|
100
|
+
/** Opens the popup anchored to the event's `currentTarget`. */
|
|
101
|
+
show(event: Event): void;
|
|
102
|
+
/** Closes the popup. */
|
|
103
|
+
hide(focusTrigger?: boolean): void;
|
|
104
|
+
/** @ignore Swatch key used as `data-key` / DOM id (empty string for "no color"). */
|
|
105
|
+
protected swatchKey(swatch: FlatSwatch): string;
|
|
106
|
+
/** @ignore Selection state of a swatch. */
|
|
107
|
+
protected isSelected(swatch: FlatSwatch): boolean;
|
|
108
|
+
/** @ignore Activation (click / Enter / Space): select, emit, popup auto-close. */
|
|
109
|
+
protected onSwatchClick(swatch: FlatSwatch): void;
|
|
110
|
+
/** @ignore */
|
|
111
|
+
protected onSwatchFocus(swatch: FlatSwatch): void;
|
|
112
|
+
/** @ignore 2D roving keyboard navigation (arrow grid, Home/End). */
|
|
113
|
+
protected onGridKeydown(event: KeyboardEvent): void;
|
|
114
|
+
/** @ignore Popup outside interaction. */
|
|
115
|
+
protected onPopupOutsideClick(): void;
|
|
116
|
+
/** @ignore Key of the entry currently holding DOM focus. */
|
|
117
|
+
private currentFocusKey;
|
|
118
|
+
/** @ignore Move DOM focus (and the tab stop) to the entry with the given key. */
|
|
119
|
+
private focusByKey;
|
|
120
|
+
/** @ignore Focus the roving tab stop once the panel is rendered
|
|
121
|
+
* (macrotask, not rAF: rAF never fires in throttled/background tabs). */
|
|
122
|
+
private queueFocusTabStop;
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiSwatchPicker, never>;
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiSwatchPicker, "ui-swatch-picker", never, {
|
|
125
|
+
"palette": {
|
|
126
|
+
"alias": "palette";
|
|
127
|
+
"required": false;
|
|
128
|
+
"isSignal": true;
|
|
129
|
+
};
|
|
130
|
+
"value": {
|
|
131
|
+
"alias": "value";
|
|
132
|
+
"required": false;
|
|
133
|
+
"isSignal": true;
|
|
134
|
+
};
|
|
135
|
+
"popup": {
|
|
136
|
+
"alias": "popup";
|
|
137
|
+
"required": false;
|
|
138
|
+
"isSignal": true;
|
|
139
|
+
};
|
|
140
|
+
"size": {
|
|
141
|
+
"alias": "size";
|
|
142
|
+
"required": false;
|
|
143
|
+
"isSignal": true;
|
|
144
|
+
};
|
|
145
|
+
"allowClear": {
|
|
146
|
+
"alias": "allowClear";
|
|
147
|
+
"required": false;
|
|
148
|
+
"isSignal": true;
|
|
149
|
+
};
|
|
150
|
+
"ariaLabel": {
|
|
151
|
+
"alias": "ariaLabel";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
"value": "valueChange";
|
|
157
|
+
"swatchSelect": "swatchSelect";
|
|
158
|
+
"opened": "opened";
|
|
159
|
+
"closed": "closed";
|
|
160
|
+
}, never, never, true, never>;
|
|
123
161
|
}
|
|
124
|
-
|
|
125
|
-
export { DEFAULT_SWATCH_PALETTE, UiSwatchPicker };
|
|
126
|
-
export type { SwatchPickerSize, UiSwatch, UiSwatchGroup };
|
|
162
|
+
export {};
|