@4sh/ui-kit 0.16.0 → 0.17.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 +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,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { BaseFormField } from "@4sh/ui-kit/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
4
6
|
/**
|
|
5
7
|
* ui-input-number — headless numeric field (`ui-field` shell).
|
|
6
8
|
*
|
|
@@ -13,96 +15,169 @@ import { BaseFormField } from '@4sh/ui-kit/forms';
|
|
|
13
15
|
* Formatting is driven by `locale`/`currency`/`useGrouping`/`*FractionDigits`;
|
|
14
16
|
* for a very specific case, override the protected `format()` method.
|
|
15
17
|
*/
|
|
16
|
-
declare class UiInputNumber extends BaseFormField<number | null> {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
18
|
+
export declare class UiInputNumber extends BaseFormField<number | null> {
|
|
19
|
+
/** Native placeholder. */
|
|
20
|
+
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/** Minimum value (clamp on blur + disables "−" at the bound). */
|
|
22
|
+
min: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
23
|
+
/** Maximum value (clamp on blur + disables "+" at the bound). */
|
|
24
|
+
max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
25
|
+
/** Increment step (spinner + arrow keys). */
|
|
26
|
+
step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
27
|
+
/** Allow decimals. */
|
|
28
|
+
allowDecimals: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/** Suffix unit (e.g. "kg"). Ignored when `currency` is set. */
|
|
30
|
+
unit: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
/** Show the ± spinner. */
|
|
32
|
+
showButtons: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/** Accessible label of the increment spinner button. */
|
|
34
|
+
incrementAriaLabel: import("@angular/core").InputSignal<string>;
|
|
35
|
+
/** Accessible label of the decrement spinner button. */
|
|
36
|
+
decrementAriaLabel: import("@angular/core").InputSignal<string>;
|
|
37
|
+
/** BCP-47 locale (e.g. `fr-FR`). Defaults to the browser locale. */
|
|
38
|
+
locale: import("@angular/core").InputSignal<string | undefined>;
|
|
39
|
+
/** ISO currency code (e.g. `EUR`) → currency formatting on blur. */
|
|
40
|
+
currency: import("@angular/core").InputSignal<string | undefined>;
|
|
41
|
+
/** Thousands separators on blur. */
|
|
42
|
+
useGrouping: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/** Minimum fraction digits shown on blur. */
|
|
44
|
+
minFractionDigits: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
45
|
+
/** Maximum fraction digits shown on blur. */
|
|
46
|
+
maxFractionDigits: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
47
|
+
/** Emitted on each numeric value change. */
|
|
48
|
+
valueChange: import("@angular/core").OutputEmitterRef<number | null>;
|
|
49
|
+
/** Emitted when the input receives focus. */
|
|
50
|
+
inputFocus: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
51
|
+
/** Emitted when the input loses focus. */
|
|
52
|
+
inputBlur: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
53
|
+
/** @ignore */
|
|
54
|
+
private readonly inputEl;
|
|
55
|
+
/** @ignore Raw displayed text (independent from the model while typing). */
|
|
56
|
+
protected readonly text: import("@angular/core").WritableSignal<string>;
|
|
57
|
+
/** @ignore Keeps a floating label raised once focus leaves. */
|
|
58
|
+
protected readonly isFilled: import("@angular/core").Signal<boolean>;
|
|
59
|
+
/** @ignore At rest the floating label already holds that spot. */
|
|
60
|
+
protected readonly effectivePlaceholder: import("@angular/core").Signal<string>;
|
|
61
|
+
/** @ignore Suffix unit, ignored when `currency` is set (the formatted value already carries it). */
|
|
62
|
+
protected readonly displayUnit: import("@angular/core").Signal<string | null>;
|
|
63
|
+
/** @ignore */
|
|
64
|
+
protected readonly unitSmall: import("@angular/core").Signal<boolean>;
|
|
65
|
+
/** @ignore Bounds reached (disable the spinner buttons). */
|
|
66
|
+
protected readonly atMax: import("@angular/core").Signal<boolean>;
|
|
67
|
+
protected readonly atMin: import("@angular/core").Signal<boolean>;
|
|
68
|
+
/** @ignore `numberAttribute(undefined)` yields NaN, and `aria-valuemin="NaN"` is an invalid
|
|
69
|
+
* ARIA value — omit the attribute entirely rather than advertise a bound that does not exist. */
|
|
70
|
+
protected readonly ariaValueMin: import("@angular/core").Signal<number | null | undefined>;
|
|
71
|
+
/** @ignore Same as `ariaValueMin`, for the upper bound. */
|
|
72
|
+
protected readonly ariaValueMax: import("@angular/core").Signal<number | null | undefined>;
|
|
73
|
+
/** @ignore Group/decimal separators of the current locale. */
|
|
74
|
+
private readonly separators;
|
|
75
|
+
writeValue(value: number | null): void;
|
|
76
|
+
/** Focuses the input. */
|
|
77
|
+
focus(options?: FocusOptions): void;
|
|
78
|
+
/** @ignore Focus: switch to an editable form (no grouping/currency). */
|
|
79
|
+
protected onFocus(event: FocusEvent): void;
|
|
80
|
+
/** @ignore Input: parse without reformatting the text (caret preserved). A value written by
|
|
81
|
+
* the browser without focus is reformatted at once: no blur will follow to do it. */
|
|
82
|
+
protected onInput(): void;
|
|
83
|
+
/** @ignore Value written by the browser without an `input` event. */
|
|
84
|
+
protected onBrowserFill(): void;
|
|
85
|
+
/** @ignore Blur: clamp + rich reformatting. */
|
|
86
|
+
protected onBlur(event: FocusEvent): void;
|
|
87
|
+
/** @ignore ↑/↓ arrow keys. */
|
|
88
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
89
|
+
/** @ignore ± spinner. */
|
|
90
|
+
protected stepBy(direction: 1 | -1): void;
|
|
91
|
+
/** @ignore Does the input currently have focus? */
|
|
92
|
+
private isFocused;
|
|
93
|
+
/** @ignore Update model + emit; reformat the text when requested. */
|
|
94
|
+
private commit;
|
|
95
|
+
/** @ignore Parse a lenient (locale-aware) input → number or null. */
|
|
96
|
+
private parse;
|
|
97
|
+
/** @ignore Clamp the value into [min, max]. */
|
|
98
|
+
private clamp;
|
|
99
|
+
/** @ignore Editable form on focus: locale decimals, no grouping or currency. */
|
|
100
|
+
private editable;
|
|
101
|
+
/**
|
|
102
|
+
* Display formatting on blur (overridable). Defaults to `Intl.NumberFormat`
|
|
103
|
+
* with `locale`/`currency`/`useGrouping`/`*FractionDigits`.
|
|
104
|
+
*/
|
|
105
|
+
protected format(value: number): string;
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputNumber, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiInputNumber, "ui-input-number", never, {
|
|
108
|
+
"placeholder": {
|
|
109
|
+
"alias": "placeholder";
|
|
110
|
+
"required": false;
|
|
111
|
+
"isSignal": true;
|
|
112
|
+
};
|
|
113
|
+
"min": {
|
|
114
|
+
"alias": "min";
|
|
115
|
+
"required": false;
|
|
116
|
+
"isSignal": true;
|
|
117
|
+
};
|
|
118
|
+
"max": {
|
|
119
|
+
"alias": "max";
|
|
120
|
+
"required": false;
|
|
121
|
+
"isSignal": true;
|
|
122
|
+
};
|
|
123
|
+
"step": {
|
|
124
|
+
"alias": "step";
|
|
125
|
+
"required": false;
|
|
126
|
+
"isSignal": true;
|
|
127
|
+
};
|
|
128
|
+
"allowDecimals": {
|
|
129
|
+
"alias": "allowDecimals";
|
|
130
|
+
"required": false;
|
|
131
|
+
"isSignal": true;
|
|
132
|
+
};
|
|
133
|
+
"unit": {
|
|
134
|
+
"alias": "unit";
|
|
135
|
+
"required": false;
|
|
136
|
+
"isSignal": true;
|
|
137
|
+
};
|
|
138
|
+
"showButtons": {
|
|
139
|
+
"alias": "showButtons";
|
|
140
|
+
"required": false;
|
|
141
|
+
"isSignal": true;
|
|
142
|
+
};
|
|
143
|
+
"incrementAriaLabel": {
|
|
144
|
+
"alias": "incrementAriaLabel";
|
|
145
|
+
"required": false;
|
|
146
|
+
"isSignal": true;
|
|
147
|
+
};
|
|
148
|
+
"decrementAriaLabel": {
|
|
149
|
+
"alias": "decrementAriaLabel";
|
|
150
|
+
"required": false;
|
|
151
|
+
"isSignal": true;
|
|
152
|
+
};
|
|
153
|
+
"locale": {
|
|
154
|
+
"alias": "locale";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
158
|
+
"currency": {
|
|
159
|
+
"alias": "currency";
|
|
160
|
+
"required": false;
|
|
161
|
+
"isSignal": true;
|
|
162
|
+
};
|
|
163
|
+
"useGrouping": {
|
|
164
|
+
"alias": "useGrouping";
|
|
165
|
+
"required": false;
|
|
166
|
+
"isSignal": true;
|
|
167
|
+
};
|
|
168
|
+
"minFractionDigits": {
|
|
169
|
+
"alias": "minFractionDigits";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
173
|
+
"maxFractionDigits": {
|
|
174
|
+
"alias": "maxFractionDigits";
|
|
175
|
+
"required": false;
|
|
176
|
+
"isSignal": true;
|
|
177
|
+
};
|
|
178
|
+
}, {
|
|
179
|
+
"valueChange": "valueChange";
|
|
180
|
+
"inputFocus": "inputFocus";
|
|
181
|
+
"inputBlur": "inputBlur";
|
|
182
|
+
}, never, never, true, never>;
|
|
183
|
+
}
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import { BaseFieldControl } from "@4sh/ui-kit/forms";
|
|
5
7
|
/** Size of the OTP cells. `default` is the base. */
|
|
6
|
-
type InputOtpSize = 'small' | 'default' | 'large';
|
|
8
|
+
export type InputOtpSize = 'small' | 'default' | 'large';
|
|
7
9
|
/** DOM event handlers handed to a custom `#input` cell template. */
|
|
8
|
-
interface InputOtpCellEvents {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
export interface InputOtpCellEvents {
|
|
11
|
+
/** Wire on `(input)`. */
|
|
12
|
+
input: (event: Event) => void;
|
|
13
|
+
/** Wire on `(keydown)`. */
|
|
14
|
+
keydown: (event: KeyboardEvent) => void;
|
|
15
|
+
/** Wire on `(focus)`. */
|
|
16
|
+
focus: (event: FocusEvent) => void;
|
|
17
|
+
/** Wire on `(blur)`. */
|
|
18
|
+
blur: (event: FocusEvent) => void;
|
|
19
|
+
/** Wire on `(paste)`. */
|
|
20
|
+
paste: (event: ClipboardEvent) => void;
|
|
21
|
+
/** Wire on `(browserFill)` of a cell marked `uiBrowserFill`. */
|
|
22
|
+
browserFill: (event: Event) => void;
|
|
21
23
|
}
|
|
22
24
|
/** Context handed to the `#input` template (one per cell). */
|
|
23
|
-
interface InputOtpCellContext {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
export interface InputOtpCellContext {
|
|
26
|
+
/** Current value of this cell (default `$implicit`). */
|
|
27
|
+
$implicit: string;
|
|
28
|
+
/** Same as `$implicit`, named for readability. */
|
|
29
|
+
value: string;
|
|
30
|
+
/** Zero-based index of the cell. */
|
|
31
|
+
index: number;
|
|
32
|
+
/** Event handlers to bind on the custom control (keeps the OTP behaviour). */
|
|
33
|
+
events: InputOtpCellEvents;
|
|
34
|
+
/** Roving tabindex for this cell (`0` for the active one, `-1` otherwise). */
|
|
35
|
+
tabindex: number;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* ui-input-otp — headless one-time-password field: a row of single-character
|
|
@@ -57,78 +59,109 @@ interface InputOtpCellContext {
|
|
|
57
59
|
* <ui-input-otp [(ngModel)]="code" [length]="6" [integerOnly]="true" ariaLabel="Code de vérification" />
|
|
58
60
|
* ```
|
|
59
61
|
*/
|
|
60
|
-
declare class UiInputOtp extends BaseFieldControl<string> {
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
62
|
+
export declare class UiInputOtp extends BaseFieldControl<string> {
|
|
63
|
+
/** Number of cells (characters) to enter. */
|
|
64
|
+
length: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
65
|
+
/** Hide the characters (renders `type="password"`). */
|
|
66
|
+
mask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/** Restrict input to integers (`inputmode="numeric"`, non-digits rejected). */
|
|
68
|
+
integerOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
69
|
+
/** Cell size. */
|
|
70
|
+
size: import("@angular/core").InputSignal<InputOtpSize>;
|
|
71
|
+
/** Accessible-name prefix of each cell ("<prefix> N"). Falls back to `ariaLabel`. */
|
|
72
|
+
charAriaLabel: import("@angular/core").InputSignal<string>;
|
|
73
|
+
/** Focus the first cell on init. */
|
|
74
|
+
autofocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/** Emitted with the joined value on every change. */
|
|
76
|
+
valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
77
|
+
/** Emitted with the value once every cell is filled. */
|
|
78
|
+
completed: import("@angular/core").OutputEmitterRef<string>;
|
|
79
|
+
/** Custom cell template (`<ng-template #input let-value let-i="index" let-events="events">`). */
|
|
80
|
+
protected readonly inputTemplate: import("@angular/core").Signal<TemplateRef<InputOtpCellContext> | undefined>;
|
|
81
|
+
/** @ignore */
|
|
82
|
+
private readonly host;
|
|
83
|
+
/** @ignore Per-cell characters (source of truth for the view). */
|
|
84
|
+
private readonly tokens;
|
|
85
|
+
/** @ignore Cell that owns the group's single tab stop (roving tabindex). */
|
|
86
|
+
private readonly focusedIndex;
|
|
87
|
+
constructor();
|
|
88
|
+
/** @ignore Native input type (masked → password). */
|
|
89
|
+
protected readonly inputType: import("@angular/core").Signal<"password" | "text">;
|
|
90
|
+
/** @ignore Hint for the on-screen keyboard. */
|
|
91
|
+
protected readonly inputMode: import("@angular/core").Signal<"text" | "numeric">;
|
|
92
|
+
/** @ignore Render-ready list of cells (index + current value). */
|
|
93
|
+
protected readonly cells: import("@angular/core").Signal<{
|
|
94
|
+
index: number;
|
|
95
|
+
id: string;
|
|
96
|
+
value: string;
|
|
97
|
+
}[]>;
|
|
98
|
+
writeValue(value: string | number | null): void;
|
|
99
|
+
/** @ignore */
|
|
100
|
+
protected uidPrefix(): string;
|
|
101
|
+
/** Move focus to the first cell. */
|
|
102
|
+
focus(options?: FocusOptions): void;
|
|
103
|
+
/** @ignore Roving tabindex for a given cell (one `0`, the rest `-1`). */
|
|
104
|
+
protected tabindexFor(index: number): number;
|
|
105
|
+
/** @ignore Value shown in a cell. */
|
|
106
|
+
protected cellValue(index: number): string;
|
|
107
|
+
/** @ignore Handlers exposed to a custom `#input` template. */
|
|
108
|
+
protected cellEvents(index: number): InputOtpCellEvents;
|
|
109
|
+
/** @ignore Cell input: single source of the per-cell value (view → form). */
|
|
110
|
+
protected onInput(event: Event, index: number): void;
|
|
111
|
+
/** @ignore Value written by the browser into a cell without an `input` event. */
|
|
112
|
+
protected onBrowserFill(event: Event, index: number): void;
|
|
113
|
+
/** @ignore Keyboard navigation + input guards. */
|
|
114
|
+
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
115
|
+
/** @ignore Select the cell content on focus + track the roving index. */
|
|
116
|
+
protected onFocus(event: FocusEvent, index: number): void;
|
|
117
|
+
/** @ignore Distribute a pasted code across the cells from `index`. */
|
|
118
|
+
protected onPaste(event: ClipboardEvent, index: number): void;
|
|
119
|
+
/** @ignore Mark touched when focus leaves the whole group. */
|
|
120
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
121
|
+
/** @ignore Write `chars` into the cells starting at `from`, then commit (+ focus). */
|
|
122
|
+
private setFromIndex;
|
|
123
|
+
/** @ignore Persist the tokens, emit the joined value (+ `completed` when full). */
|
|
124
|
+
private commit;
|
|
125
|
+
/** @ignore Focus (and select) the cell at `index`, if it exists. */
|
|
126
|
+
private focusCell;
|
|
127
|
+
/** @ignore Split a form value into an array of single characters (bounded). */
|
|
128
|
+
private toTokens;
|
|
129
|
+
/** @ignore Drop non-digits when integer-only, otherwise pass through. */
|
|
130
|
+
private sanitize;
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputOtp, never>;
|
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiInputOtp, "ui-input-otp", never, {
|
|
133
|
+
"length": {
|
|
134
|
+
"alias": "length";
|
|
135
|
+
"required": false;
|
|
136
|
+
"isSignal": true;
|
|
137
|
+
};
|
|
138
|
+
"mask": {
|
|
139
|
+
"alias": "mask";
|
|
140
|
+
"required": false;
|
|
141
|
+
"isSignal": true;
|
|
142
|
+
};
|
|
143
|
+
"integerOnly": {
|
|
144
|
+
"alias": "integerOnly";
|
|
145
|
+
"required": false;
|
|
146
|
+
"isSignal": true;
|
|
147
|
+
};
|
|
148
|
+
"size": {
|
|
149
|
+
"alias": "size";
|
|
150
|
+
"required": false;
|
|
151
|
+
"isSignal": true;
|
|
152
|
+
};
|
|
153
|
+
"charAriaLabel": {
|
|
154
|
+
"alias": "charAriaLabel";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
158
|
+
"autofocus": {
|
|
159
|
+
"alias": "autofocus";
|
|
160
|
+
"required": false;
|
|
161
|
+
"isSignal": true;
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
"valueChange": "valueChange";
|
|
165
|
+
"completed": "completed";
|
|
166
|
+
}, ["inputTemplate"], never, true, never>;
|
|
167
|
+
}
|