@4sh/ui-kit 0.14.0 → 0.16.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 +8 -0
- package/README.md +8 -0
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +69 -22
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +15 -6
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +12 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +19 -8
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +30 -9
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +8 -3
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +10 -4
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +46 -2
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/mcp/data/component-api.json +14 -0
- package/mcp/data/text-search-docs.json +45 -15
- package/mcp/data/ui-config.json +317 -23
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/base/_motion.scss +16 -16
- package/styles/component-vars.scss +2 -5
- package/styles/generated/_tokens-motion.scss +54 -0
- package/styles/generated/_tokens-transitions.scss +4 -4
- package/styles/generated/_tokens.scss +1 -0
- package/styles/settings/_ui-config.scss +23 -6
- package/styles/utils/_mixins.scss +39 -5
- package/styles/utils/_motion.scss +3 -3
- package/styles.css +1 -1
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +16 -3
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +2 -0
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +5 -1
- package/types/4sh-ui-kit-forms-ui-input.d.ts +2 -0
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +2 -0
- package/types/4sh-ui-kit-forms.d.ts +25 -1
|
@@ -75,8 +75,11 @@ declare class UiInputNumber extends BaseFormField<number | null> {
|
|
|
75
75
|
focus(options?: FocusOptions): void;
|
|
76
76
|
/** @ignore Focus: switch to an editable form (no grouping/currency). */
|
|
77
77
|
protected onFocus(event: FocusEvent): void;
|
|
78
|
-
/** @ignore Input: parse without reformatting the text (caret preserved).
|
|
78
|
+
/** @ignore Input: parse without reformatting the text (caret preserved). A value written by
|
|
79
|
+
* the browser without focus is reformatted at once: no blur will follow to do it. */
|
|
79
80
|
protected onInput(): void;
|
|
81
|
+
/** @ignore Value written by the browser without an `input` event. */
|
|
82
|
+
protected onBrowserFill(): void;
|
|
80
83
|
/** @ignore Blur: clamp + rich reformatting. */
|
|
81
84
|
protected onBlur(event: FocusEvent): void;
|
|
82
85
|
/** @ignore ↑/↓ arrow keys. */
|
|
@@ -16,6 +16,8 @@ interface InputOtpCellEvents {
|
|
|
16
16
|
blur: (event: FocusEvent) => void;
|
|
17
17
|
/** Wire on `(paste)`. */
|
|
18
18
|
paste: (event: ClipboardEvent) => void;
|
|
19
|
+
/** Wire on `(browserFill)` of a cell marked `uiBrowserFill`. */
|
|
20
|
+
browserFill: (event: Event) => void;
|
|
19
21
|
}
|
|
20
22
|
/** Context handed to the `#input` template (one per cell). */
|
|
21
23
|
interface InputOtpCellContext {
|
|
@@ -104,6 +106,8 @@ declare class UiInputOtp extends BaseFieldControl<string> {
|
|
|
104
106
|
protected cellEvents(index: number): InputOtpCellEvents;
|
|
105
107
|
/** @ignore Cell input: single source of the per-cell value (view → form). */
|
|
106
108
|
protected onInput(event: Event, index: number): void;
|
|
109
|
+
/** @ignore Value written by the browser into a cell without an `input` event. */
|
|
110
|
+
protected onBrowserFill(event: Event, index: number): void;
|
|
107
111
|
/** @ignore Keyboard navigation + input guards. */
|
|
108
112
|
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
109
113
|
/** @ignore Select the cell content on focus + track the roving index. */
|
|
@@ -112,7 +116,7 @@ declare class UiInputOtp extends BaseFieldControl<string> {
|
|
|
112
116
|
protected onPaste(event: ClipboardEvent, index: number): void;
|
|
113
117
|
/** @ignore Mark touched when focus leaves the whole group. */
|
|
114
118
|
protected onFocusOut(event: FocusEvent): void;
|
|
115
|
-
/** @ignore Write `chars` into the cells starting at `from`, then commit + focus. */
|
|
119
|
+
/** @ignore Write `chars` into the cells starting at `from`, then commit (+ focus). */
|
|
116
120
|
private setFromIndex;
|
|
117
121
|
/** @ignore Persist the tokens, emit the joined value (+ `completed` when full). */
|
|
118
122
|
private commit;
|
|
@@ -125,6 +125,8 @@ declare class UiInput extends BaseFormField<string> {
|
|
|
125
125
|
nativeInputElement(): HTMLInputElement;
|
|
126
126
|
/** @ignore Input: single source of the value (view → form). */
|
|
127
127
|
protected onInput(): void;
|
|
128
|
+
/** @ignore Value written by the browser without an `input` event. */
|
|
129
|
+
protected onBrowserFill(): void;
|
|
128
130
|
/** @ignore */
|
|
129
131
|
protected onBlur(event: FocusEvent): void;
|
|
130
132
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInput, never>;
|
|
@@ -53,6 +53,8 @@ declare class UiTextarea extends BaseFormField<string> {
|
|
|
53
53
|
focus(options?: FocusOptions): void;
|
|
54
54
|
/** @ignore Input: single source of the value (view → form). */
|
|
55
55
|
protected onInput(): void;
|
|
56
|
+
/** @ignore Value written by the browser without an `input` event. */
|
|
57
|
+
protected onBrowserFill(): void;
|
|
56
58
|
/** @ignore */
|
|
57
59
|
protected onBlur(event: FocusEvent): void;
|
|
58
60
|
/** @ignore Recomputes the height to fit the content. */
|
|
@@ -329,5 +329,29 @@ declare function formatLabel(template: string, value: string | number): string;
|
|
|
329
329
|
|
|
330
330
|
declare function warnMissingAccessibleName(componentTag: string, message: string): void;
|
|
331
331
|
|
|
332
|
-
|
|
332
|
+
/**
|
|
333
|
+
* Reports the events through which the browser may write a value into a native
|
|
334
|
+
* `<input>`/`<textarea>` without an `input` event:
|
|
335
|
+
*
|
|
336
|
+
* - its autofill: the `:-webkit-autofill` animation declared by the
|
|
337
|
+
* `utils.browser-fill` mixin, which the host stylesheet must include;
|
|
338
|
+
* - a `change`.
|
|
339
|
+
*
|
|
340
|
+
* Either may follow an edit the host already handled through `input`: the
|
|
341
|
+
* host syncs only when the native value differs from the one it renders, so
|
|
342
|
+
* nothing is emitted twice. An `input` sent by the browser to a field without
|
|
343
|
+
* focus already reaches the host's own `(input)` handler: `hasFocus()` tells
|
|
344
|
+
* it apart from a keystroke.
|
|
345
|
+
*/
|
|
346
|
+
declare class UiBrowserFill {
|
|
347
|
+
/** Emitted with the change/animation event that may reveal a fill. */
|
|
348
|
+
readonly browserFill: _angular_core.OutputEmitterRef<Event>;
|
|
349
|
+
protected onAnimationStart(event: AnimationEvent): void;
|
|
350
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBrowserFill, never>;
|
|
351
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiBrowserFill, "[uiBrowserFill]", never, {}, { "browserFill": "browserFill"; }, never, never, true, never>;
|
|
352
|
+
}
|
|
353
|
+
/** Whether `element` holds the focus (works inside a shadow root). */
|
|
354
|
+
declare function hasFocus(element: Element): boolean;
|
|
355
|
+
|
|
356
|
+
export { BaseControlValueAccessor, BaseFieldControl, BaseFormField, MASK_TOKENS, UiBrowserFill, acceptsMaskChar, addDays, addMonths, applyMaskTemplate, autoFormatSegments, buildMaskSlots, caretForMask, createOptionResolver, dropdownOverlayPositions, extractMaskData, finalizeParsed, firstOfMonth, formatLabel, hasFocus, isSameDay, normalizeDateInput, parseIsoDate, parseIsoDateTime, parseIsoTime, parseMaskRanges, startOfDay, toIsoDate, toIsoDateTime, toIsoTime, warnMissingAccessibleName };
|
|
333
357
|
export type { FieldFloatLabel, FieldLevel, FieldSize, MaskBounds, MaskBuildResult, MaskSlot, OptionEntry, OptionResolver, OptionResolverFields };
|