@4sh/ui-kit 0.8.0 → 0.9.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 +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- 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 +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +9 -6
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +11 -11
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +311 -61
- package/mcp/data/ui-config.json +26059 -12458
- package/mcp/package.json +1 -1
- package/package.json +9 -1
- package/styles/component-vars.scss +1402 -721
- package/styles/settings/_ui-config.scss +45 -2
- package/styles/utils/_mixins.scss +32 -30
- package/styles/utils/_overlay.scss +1 -1
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
//
|
|
4
4
|
// Three levers, from the broadest to the narrowest: the design token each value
|
|
5
5
|
// points at, the `--ui-<name>` hook declared here (kit-wide, no recompile), and
|
|
6
|
-
// the LOCAL var of a component's .scss.
|
|
7
|
-
//
|
|
6
|
+
// the LOCAL var of a component's .scss.
|
|
7
|
+
//
|
|
8
|
+
// Colours sit here too, but only the ones a SHARED mixin paints (`_mixins.scss`):
|
|
9
|
+
// the hook has to be named after the category, since the mixin does not know which
|
|
10
|
+
// component included it. The token set is never in the name: one hook per role and
|
|
11
|
+
// state, the palette in force supplying the fallback. The mixin emits the read
|
|
12
|
+
// (`var(--ui-form-field-color, var(--form-high-content-default))`); the constants
|
|
13
|
+
// below are where that contract is declared and documented.
|
|
8
14
|
//
|
|
9
15
|
// Components interpolate these values, so a hook added here propagates into
|
|
10
16
|
// every consumer on its own: `var(--ui-checkbox-box-size, var(--ui-form-control-size,
|
|
@@ -49,6 +55,7 @@ $overlay-panel-padding: var(--ui-overlay-panel-padding, var(--units-sm));
|
|
|
49
55
|
$overlay-panel-shadow: var(--ui-overlay-panel-shadow, var(--shadow-default-md)); /// Ombre des panneaux flottants.
|
|
50
56
|
$overlay-panel-stroke-width: $control-stroke-width; /// Épaisseur de bordure des panneaux flottants (suit `--ui-control-stroke-width`).
|
|
51
57
|
$overlay-panel-offset: var(--ui-overlay-panel-offset, 8px); /// Décalage d'un panneau par rapport à son ancre.
|
|
58
|
+
$overlay-panel-font-family: var(--ui-overlay-panel-font-family, var(--fontfamily-base));/// Famille typographique du contenu des panneaux flottants.
|
|
52
59
|
|
|
53
60
|
// --- Category : forms -------------------------------------------------
|
|
54
61
|
$form-control-size: var(--ui-form-control-size, var(--size-components-2xs)); /// Côté d'un contrôle carré (case à cocher, radio).
|
|
@@ -61,9 +68,45 @@ $form-field-height-small: var(--ui-form-field-height-small, var(--size-component
|
|
|
61
68
|
$form-field-radius: var(--ui-form-field-radius, var(--radius-sm)); /// Rayon des coins de la boîte de champ.
|
|
62
69
|
$form-field-padding-x: var(--ui-form-field-padding-x, var(--units-md)); /// Inset horizontal de la boîte de champ.
|
|
63
70
|
$form-field-gap: var(--ui-form-field-gap, var(--units-sm)); /// Espace entre le contrôle et ses affixes.
|
|
71
|
+
$form-field-font-family: var(--ui-form-field-font-family, var(--fontfamily-base)); /// Famille typographique du texte saisi dans un champ.
|
|
64
72
|
$form-field-stroke-width: $control-stroke-width; /// Bordure de la boîte de champ (suit `--ui-control-stroke-width`).
|
|
65
73
|
$form-field-focus-ring-width: $form-focus-ring-width; /// Anneau de focus de la boîte de champ (suit `--ui-focus-ring-width`).
|
|
66
74
|
|
|
75
|
+
// Selection controls (checkbox, radio): palette routed by `form-control-palette`.
|
|
76
|
+
// Interpolated fallback (`--form-#{$palette}-…`), so the shipped default below is the
|
|
77
|
+
// `high` palette; `._invalid` swaps it for `error` under the same hook names.
|
|
78
|
+
$form-control-surface: var(--ui-form-control-surface, var(--form-high-surface-default)); /// Fond d'un contrôle de sélection.
|
|
79
|
+
$form-control-surface-hover: var(--ui-form-control-surface-hover, var(--form-high-surface-hover)); /// Fond d'un contrôle de sélection au survol.
|
|
80
|
+
$form-control-surface-checked: var(--ui-form-control-surface-checked, var(--form-high-surface-checked)); /// Fond d'un contrôle de sélection coché ou indéterminé.
|
|
81
|
+
$form-control-surface-disabled: var(--ui-form-control-surface-disabled, var(--form-high-surface-disabled)); /// Fond d'un contrôle de sélection désactivé.
|
|
82
|
+
$form-control-stroke: var(--ui-form-control-stroke, var(--form-high-stroke-default)); /// Couleur de bordure d'un contrôle de sélection.
|
|
83
|
+
$form-control-stroke-hover: var(--ui-form-control-stroke-hover, var(--form-high-stroke-hover)); /// Couleur de bordure au survol.
|
|
84
|
+
$form-control-stroke-checked: var(--ui-form-control-stroke-checked, var(--form-high-stroke-checked)); /// Couleur de bordure d'un contrôle coché ou indéterminé.
|
|
85
|
+
$form-control-stroke-focus: var(--ui-form-control-stroke-focus, var(--form-high-stroke-focused)); /// Couleur de bordure au focus clavier ; elle teinte aussi l'anneau.
|
|
86
|
+
$form-control-stroke-disabled: var(--ui-form-control-stroke-disabled, var(--form-high-stroke-disabled)); /// Couleur de bordure d'un contrôle désactivé.
|
|
87
|
+
$form-control-marker-color: var(--ui-form-control-marker-color, var(--form-high-content-checked)); /// Couleur du marqueur (coche, point radio).
|
|
88
|
+
$form-control-marker-color-disabled: var(--ui-form-control-marker-color-disabled, var(--form-high-content-disabled)); /// Couleur du marqueur désactivé.
|
|
89
|
+
|
|
90
|
+
// Field parts: painted by the `field-*` mixins, on every box field.
|
|
91
|
+
$form-field-color: var(--ui-form-field-color, var(--form-high-content-default)); /// Couleur du texte saisi dans un champ.
|
|
92
|
+
$form-field-color-disabled: var(--ui-form-field-color-disabled, var(--form-high-content-disabled)); /// Couleur du texte saisi, champ désactivé.
|
|
93
|
+
$form-field-placeholder-color: var(--ui-form-field-placeholder-color, var(--form-low-content-default)); /// Couleur du texte d'invite (placeholder).
|
|
94
|
+
$form-field-affix-color: var(--ui-form-field-affix-color, var(--form-low-content-default)); /// Couleur d'un affixe (icône décorative, unité).
|
|
95
|
+
$form-field-affix-color-disabled: var(--ui-form-field-affix-color-disabled, var(--form-high-content-disabled)); /// Couleur d'un affixe, champ désactivé.
|
|
96
|
+
|
|
97
|
+
$form-field-action-color: var(--ui-form-field-action-color, var(--form-low-content-default)); /// Couleur d'un bouton d'action dans un champ (œil, effacer).
|
|
98
|
+
$form-field-action-color-hover: var(--ui-form-field-action-color-hover, var(--form-high-content-hover)); /// Couleur d'un bouton d'action au survol.
|
|
99
|
+
$form-field-action-color-focus: var(--ui-form-field-action-color-focus, var(--form-high-content-focused)); /// Couleur d'un bouton d'action au focus clavier.
|
|
100
|
+
$form-field-action-color-disabled: var(--ui-form-field-action-color-disabled, var(--form-high-content-disabled)); /// Couleur d'un bouton d'action désactivé.
|
|
101
|
+
$form-field-action-surface-hover: var(--ui-form-field-action-surface-hover, var(--form-high-surface-hover)); /// Fond d'un bouton d'action au survol.
|
|
102
|
+
$form-field-action-surface-focus: var(--ui-form-field-action-surface-focus, var(--form-high-surface-focused)); /// Fond d'un bouton d'action au focus clavier ; c'est lui qui dit quel bouton tient le focus.
|
|
103
|
+
|
|
104
|
+
$form-field-spinner-stroke: var(--ui-form-field-spinner-stroke, var(--form-high-stroke-default)); /// Couleur des séparateurs du compteur (haut/bas).
|
|
105
|
+
$form-field-spinner-color: var(--ui-form-field-spinner-color, var(--form-low-content-default)); /// Couleur des flèches du compteur.
|
|
106
|
+
$form-field-spinner-color-hover: var(--ui-form-field-spinner-color-hover, var(--form-high-content-hover)); /// Couleur des flèches du compteur au survol.
|
|
107
|
+
$form-field-spinner-color-disabled: var(--ui-form-field-spinner-color-disabled, var(--form-high-content-disabled)); /// Couleur des flèches du compteur désactivé.
|
|
108
|
+
$form-field-spinner-surface-hover: var(--ui-form-field-spinner-surface-hover, var(--form-high-surface-hover)); /// Fond d'une flèche du compteur au survol.
|
|
109
|
+
|
|
67
110
|
// Textarea (multiline field box)
|
|
68
111
|
$form-textarea-min-height: var(--ui-form-textarea-min-height, var(--size-components-sm)); /// Hauteur minimale d'une boîte multiligne.
|
|
69
112
|
$form-textarea-min-height-small: var(--ui-form-textarea-min-height-small, var(--size-components-sm)); /// Hauteur minimale d'une boîte multiligne, variante `small`.
|
|
@@ -23,31 +23,33 @@
|
|
|
23
23
|
/// consumed by selection controls: --_surface, --_stroke, --_content, --_focus-ring
|
|
24
24
|
/// (+ --ui-label-color). State selectors live here; re-include to swap palette.
|
|
25
25
|
@mixin form-control-palette($palette, $control: '.ui-form-control-input') {
|
|
26
|
-
--_surface: var(--form-#{$palette}-surface-default);
|
|
27
|
-
--_stroke: var(--form-#{$palette}-stroke-default);
|
|
28
|
-
--_content: var(--form-#{$palette}-content-checked);
|
|
26
|
+
--_surface: var(--ui-form-control-surface, var(--form-#{$palette}-surface-default));
|
|
27
|
+
--_stroke: var(--ui-form-control-stroke, var(--form-#{$palette}-stroke-default));
|
|
28
|
+
--_content: var(--ui-form-control-marker-color, var(--form-#{$palette}-content-checked));
|
|
29
29
|
|
|
30
30
|
&:hover:not(._disabled):not(._readonly) {
|
|
31
|
-
--_surface: var(--form-#{$palette}-surface-hover);
|
|
32
|
-
--_stroke: var(--form-#{$palette}-stroke-hover);
|
|
31
|
+
--_surface: var(--ui-form-control-surface-hover, var(--form-#{$palette}-surface-hover));
|
|
32
|
+
--_stroke: var(--ui-form-control-stroke-hover, var(--form-#{$palette}-stroke-hover));
|
|
33
33
|
--ui-label-color: var(--form-#{$palette}-content-hover);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&._checked:not(._disabled),
|
|
37
37
|
&._indeterminate:not(._disabled) {
|
|
38
|
-
--_surface: var(--form-#{$palette}-surface-checked);
|
|
39
|
-
--_stroke: var(--form-#{$palette}-stroke-checked);
|
|
38
|
+
--_surface: var(--ui-form-control-surface-checked, var(--form-#{$palette}-surface-checked));
|
|
39
|
+
--_stroke: var(--ui-form-control-stroke-checked, var(--form-#{$palette}-stroke-checked));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&:has(#{$control}:focus-visible) {
|
|
43
|
-
--_stroke: var(--form-#{$palette}-stroke-focused);
|
|
44
|
-
|
|
43
|
+
--_stroke: var(--ui-form-control-stroke-focus, var(--form-#{$palette}-stroke-focused));
|
|
44
|
+
// Derived from the focus border, like `ui-field`'s ring: retuning the stroke
|
|
45
|
+
// carries the halo with it instead of letting the two drift apart.
|
|
46
|
+
--_focus-ring: rgb(from var(--ui-form-control-stroke-focus, var(--form-#{$palette}-stroke-focused)) r g b / 50%);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
&._disabled {
|
|
48
|
-
--_surface: var(--form-#{$palette}-surface-disabled);
|
|
49
|
-
--_stroke: var(--form-#{$palette}-stroke-disabled);
|
|
50
|
-
--_content: var(--form-#{$palette}-content-disabled);
|
|
50
|
+
--_surface: var(--ui-form-control-surface-disabled, var(--form-#{$palette}-surface-disabled));
|
|
51
|
+
--_stroke: var(--ui-form-control-stroke-disabled, var(--form-#{$palette}-stroke-disabled));
|
|
52
|
+
--_content: var(--ui-form-control-marker-color-disabled, var(--form-#{$palette}-content-disabled));
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -102,9 +104,9 @@
|
|
|
102
104
|
border-radius: inherit;
|
|
103
105
|
background: transparent;
|
|
104
106
|
outline: none;
|
|
105
|
-
font-family:
|
|
107
|
+
font-family: ui-config.$form-field-font-family;
|
|
106
108
|
font-size: var(--size-typography-text-default);
|
|
107
|
-
color:
|
|
109
|
+
color: ui-config.$form-field-color;
|
|
108
110
|
|
|
109
111
|
// `$inset: false` = nested in a wrapper that already carries both insets.
|
|
110
112
|
@if $inset {
|
|
@@ -113,20 +115,20 @@
|
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
&::placeholder {
|
|
116
|
-
color:
|
|
118
|
+
color: ui-config.$form-field-placeholder-color;
|
|
117
119
|
opacity: 1;
|
|
118
120
|
}
|
|
119
|
-
&:disabled { cursor: not-allowed; color:
|
|
121
|
+
&:disabled { cursor: not-allowed; color: ui-config.$form-field-color-disabled; }
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
/// Low-emphasis affix (decorative icon, unit text) sitting inside the box.
|
|
123
125
|
/// Toggle `._disabled` on the element to dim it with the field.
|
|
124
126
|
@mixin field-affix {
|
|
125
127
|
flex-shrink: 0;
|
|
126
|
-
color:
|
|
128
|
+
color: ui-config.$form-field-affix-color;
|
|
127
129
|
@include field-inset-edges('margin');
|
|
128
130
|
|
|
129
|
-
&._disabled { color:
|
|
131
|
+
&._disabled { color: ui-config.$form-field-affix-color-disabled; }
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
/// Square, full-height, flush-right action button (password reveal, clear…).
|
|
@@ -142,25 +144,25 @@
|
|
|
142
144
|
background: none;
|
|
143
145
|
border-radius: 0 calc(#{ui-config.$form-field-radius} - #{ui-config.$form-field-stroke-width})
|
|
144
146
|
calc(#{ui-config.$form-field-radius} - #{ui-config.$form-field-stroke-width}) 0;
|
|
145
|
-
color:
|
|
147
|
+
color: ui-config.$form-field-action-color;
|
|
146
148
|
cursor: pointer;
|
|
147
149
|
@include control-transition(color, background-color);
|
|
148
150
|
|
|
149
151
|
// Flush by design: no inset, the box has no padding to cancel.
|
|
150
152
|
|
|
151
153
|
&:hover:not(:disabled) {
|
|
152
|
-
color:
|
|
153
|
-
background-color:
|
|
154
|
+
color: ui-config.$form-field-action-color-hover;
|
|
155
|
+
background-color: ui-config.$form-field-action-surface-hover;
|
|
154
156
|
}
|
|
155
157
|
// Focus is a surface, never a border: the box already draws the field ring on
|
|
156
158
|
// `:focus-within`, so an inset stroke here would nest a second outline inside
|
|
157
159
|
// the field. The fill + `content-focused` say which control holds the focus.
|
|
158
160
|
&:focus-visible {
|
|
159
161
|
outline: none;
|
|
160
|
-
color:
|
|
161
|
-
background-color:
|
|
162
|
+
color: ui-config.$form-field-action-color-focus;
|
|
163
|
+
background-color: ui-config.$form-field-action-surface-focus;
|
|
162
164
|
}
|
|
163
|
-
&:disabled { cursor: not-allowed; color:
|
|
165
|
+
&:disabled { cursor: not-allowed; color: ui-config.$form-field-action-color-disabled; }
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
/// Vertical up/down spinner (number stepper), flush right + full height, split
|
|
@@ -171,7 +173,7 @@
|
|
|
171
173
|
flex-shrink: 0;
|
|
172
174
|
width: $width;
|
|
173
175
|
// Flush by design: no inset, the box has no padding to cancel.
|
|
174
|
-
border-left: ui-config.$form-field-stroke-width solid
|
|
176
|
+
border-left: ui-config.$form-field-stroke-width solid ui-config.$form-field-spinner-stroke;
|
|
175
177
|
border-radius: 0 ui-config.$form-field-radius ui-config.$form-field-radius 0;
|
|
176
178
|
overflow: hidden;
|
|
177
179
|
|
|
@@ -185,18 +187,18 @@
|
|
|
185
187
|
border: none;
|
|
186
188
|
background: none;
|
|
187
189
|
line-height: 0;
|
|
188
|
-
color:
|
|
190
|
+
color: ui-config.$form-field-spinner-color;
|
|
189
191
|
cursor: pointer;
|
|
190
192
|
@include control-transition(color, background-color);
|
|
191
193
|
|
|
192
194
|
&:hover:not(:disabled) {
|
|
193
|
-
color:
|
|
194
|
-
background-color:
|
|
195
|
+
color: ui-config.$form-field-spinner-color-hover;
|
|
196
|
+
background-color: ui-config.$form-field-spinner-surface-hover;
|
|
195
197
|
}
|
|
196
|
-
&:disabled { cursor: not-allowed; color:
|
|
198
|
+
&:disabled { cursor: not-allowed; color: ui-config.$form-field-spinner-color-disabled; }
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
#{$btn} + #{$btn} {
|
|
200
|
-
border-top: ui-config.$form-field-stroke-width solid
|
|
202
|
+
border-top: ui-config.$form-field-stroke-width solid ui-config.$form-field-spinner-stroke;
|
|
201
203
|
}
|
|
202
204
|
}
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
border-radius: var(--ui-overlay-radius, #{ui-config.$overlay-panel-radius});
|
|
23
23
|
background-color: var(--ui-overlay-surface, #{$surface});
|
|
24
24
|
box-shadow: var(--ui-overlay-shadow, #{ui-config.$overlay-panel-shadow});
|
|
25
|
-
font-family:
|
|
25
|
+
font-family: ui-config.$overlay-panel-font-family;
|
|
26
26
|
}
|
|
@@ -243,6 +243,8 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
|
|
|
243
243
|
closeOnSelect: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
244
244
|
/** Extra class(es) applied to the panel (scoped custom styling). */
|
|
245
245
|
panelStyleClass: _angular_core.InputSignal<string | undefined>;
|
|
246
|
+
/** Native autocomplete, forwarded to the trigger. */
|
|
247
|
+
autocomplete: _angular_core.InputSignal<string | undefined>;
|
|
246
248
|
/** Emitted whenever the value changes (selection, time, clear). */
|
|
247
249
|
valueChange: _angular_core.OutputEmitterRef<DatepickerValue>;
|
|
248
250
|
/** Emitted when a date/month/year is picked — always a single value (in `valueType`'s
|
|
@@ -742,7 +744,7 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
|
|
|
742
744
|
/** @ignore */
|
|
743
745
|
private capitalize;
|
|
744
746
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiDatepicker, never>;
|
|
745
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiDatepicker, "ui-datepicker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconAriaLabel": { "alias": "iconAriaLabel"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "valueType": { "alias": "valueType"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "disabledDays": { "alias": "disabledDays"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "timeOnly": { "alias": "timeOnly"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "editableTime": { "alias": "editableTime"; "required": false; "isSignal": true; }; "showButtonBar": { "alias": "showButtonBar"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "formatHintLabel": { "alias": "formatHintLabel"; "required": false; "isSignal": true; }; "panelAriaLabel": { "alias": "panelAriaLabel"; "required": false; "isSignal": true; }; "prevAriaLabel": { "alias": "prevAriaLabel"; "required": false; "isSignal": true; }; "nextAriaLabel": { "alias": "nextAriaLabel"; "required": false; "isSignal": true; }; "hoursAriaLabel": { "alias": "hoursAriaLabel"; "required": false; "isSignal": true; }; "minutesAriaLabel": { "alias": "minutesAriaLabel"; "required": false; "isSignal": true; }; "meridiemAriaLabel": { "alias": "meridiemAriaLabel"; "required": false; "isSignal": true; }; "incrementHoursAriaLabel": { "alias": "incrementHoursAriaLabel"; "required": false; "isSignal": true; }; "decrementHoursAriaLabel": { "alias": "decrementHoursAriaLabel"; "required": false; "isSignal": true; }; "incrementMinutesAriaLabel": { "alias": "incrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "decrementMinutesAriaLabel": { "alias": "decrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "toggleMeridiemAriaLabel": { "alias": "toggleMeridiemAriaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "showOnFocus": { "alias": "showOnFocus"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "dateSelect": "dateSelect"; "monthChange": "monthChange"; "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["dateTemplate", "buttonBarTemplate", "iconTemplate"], never, true, never>;
|
|
747
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiDatepicker, "ui-datepicker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconAriaLabel": { "alias": "iconAriaLabel"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "valueType": { "alias": "valueType"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "disabledDays": { "alias": "disabledDays"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "timeOnly": { "alias": "timeOnly"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "editableTime": { "alias": "editableTime"; "required": false; "isSignal": true; }; "showButtonBar": { "alias": "showButtonBar"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "formatHintLabel": { "alias": "formatHintLabel"; "required": false; "isSignal": true; }; "panelAriaLabel": { "alias": "panelAriaLabel"; "required": false; "isSignal": true; }; "prevAriaLabel": { "alias": "prevAriaLabel"; "required": false; "isSignal": true; }; "nextAriaLabel": { "alias": "nextAriaLabel"; "required": false; "isSignal": true; }; "hoursAriaLabel": { "alias": "hoursAriaLabel"; "required": false; "isSignal": true; }; "minutesAriaLabel": { "alias": "minutesAriaLabel"; "required": false; "isSignal": true; }; "meridiemAriaLabel": { "alias": "meridiemAriaLabel"; "required": false; "isSignal": true; }; "incrementHoursAriaLabel": { "alias": "incrementHoursAriaLabel"; "required": false; "isSignal": true; }; "decrementHoursAriaLabel": { "alias": "decrementHoursAriaLabel"; "required": false; "isSignal": true; }; "incrementMinutesAriaLabel": { "alias": "incrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "decrementMinutesAriaLabel": { "alias": "decrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "toggleMeridiemAriaLabel": { "alias": "toggleMeridiemAriaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "showOnFocus": { "alias": "showOnFocus"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "dateSelect": "dateSelect"; "monthChange": "monthChange"; "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["dateTemplate", "buttonBarTemplate", "iconTemplate"], never, true, never>;
|
|
746
748
|
}
|
|
747
749
|
|
|
748
750
|
export { UiDatepicker };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { BaseFieldControl } from '@4sh/ui-kit/forms';
|
|
3
|
+
|
|
4
|
+
/** Selection control embedded in the block. */
|
|
5
|
+
type ToggleBlockIndicator = 'checkbox' | 'radio' | 'toggle';
|
|
6
|
+
type ToggleBlockSize = 'default' | 'small' | 'large';
|
|
7
|
+
type ToggleBlockIndicatorPosition = 'start' | 'end';
|
|
8
|
+
/** Vertical alignment of the indicator against the block content. */
|
|
9
|
+
type ToggleBlockAlign = 'center' | 'start';
|
|
10
|
+
/**
|
|
11
|
+
* ui-toggle-block: selectable block wrapping a checkbox, a radio or a switch.
|
|
12
|
+
*
|
|
13
|
+
* The block is the clickable surface; the selection control is an instance of
|
|
14
|
+
* `ui-checkbox` / `ui-radio` / `ui-toggle`, so the indicator keeps the exact
|
|
15
|
+
* appearance and behaviour it has on its own. A stretched `<label for>` covers
|
|
16
|
+
* the block, which makes the whole surface activate the native input without a
|
|
17
|
+
* click handler; the content region is the control's accessible name
|
|
18
|
+
* (`aria-labelledby`), so any markup can be projected without wrapping it in a
|
|
19
|
+
* `<label>`.
|
|
20
|
+
*
|
|
21
|
+
* `label` / `description` cover the common case; `<ng-content>` composes with
|
|
22
|
+
* them for a fully custom body.
|
|
23
|
+
*
|
|
24
|
+
* Works standalone, with `[(ngModel)]`, reactive forms or Signal Forms
|
|
25
|
+
* (ControlValueAccessor). Blocks form a group the native way: same `name`, same
|
|
26
|
+
* bound model.
|
|
27
|
+
*/
|
|
28
|
+
declare class UiToggleBlock<T = boolean> extends BaseFieldControl<T> {
|
|
29
|
+
/** Selection control embedded in the block. */
|
|
30
|
+
indicator: _angular_core.InputSignal<ToggleBlockIndicator>;
|
|
31
|
+
/** Side of the block the indicator sits on. */
|
|
32
|
+
indicatorPosition: _angular_core.InputSignal<ToggleBlockIndicatorPosition>;
|
|
33
|
+
/** Vertical alignment of the indicator against the content. */
|
|
34
|
+
align: _angular_core.InputSignal<ToggleBlockAlign>;
|
|
35
|
+
/** Keeps the control operable but removes the indicator from view (selection card). */
|
|
36
|
+
hideIndicator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
/** Size. */
|
|
38
|
+
size: _angular_core.InputSignal<ToggleBlockSize>;
|
|
39
|
+
/** Main line of the block. */
|
|
40
|
+
label: _angular_core.InputSignal<string | undefined>;
|
|
41
|
+
/** Secondary line under the label. */
|
|
42
|
+
description: _angular_core.InputSignal<string | undefined>;
|
|
43
|
+
/** Span the full width of the parent (a flex/grid parent otherwise sizes the block to its content). */
|
|
44
|
+
fluid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
/** Ripple Effect */
|
|
46
|
+
ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/** Value carried by this block in `radio` mode (the model takes it when selected). */
|
|
48
|
+
value: _angular_core.InputSignal<T | undefined>;
|
|
49
|
+
/** Model value emitted when selected, in `checkbox` / `toggle` mode. */
|
|
50
|
+
trueValue: _angular_core.InputSignal<T>;
|
|
51
|
+
/** Model value emitted when cleared, in `checkbox` / `toggle` mode. */
|
|
52
|
+
falseValue: _angular_core.InputSignal<T>;
|
|
53
|
+
/** Emitted on user selection with the new model value (never when disabled/readonly). */
|
|
54
|
+
blockChange: _angular_core.OutputEmitterRef<T>;
|
|
55
|
+
/** Emitted when the embedded control receives focus. */
|
|
56
|
+
blockFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
57
|
+
/** Emitted when the embedded control loses focus. */
|
|
58
|
+
blockBlur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
59
|
+
/** @ignore */
|
|
60
|
+
private readonly checkboxRef;
|
|
61
|
+
/** @ignore */
|
|
62
|
+
private readonly radioRef;
|
|
63
|
+
/** @ignore */
|
|
64
|
+
private readonly toggleRef;
|
|
65
|
+
/** @ignore */
|
|
66
|
+
private readonly bodyEl;
|
|
67
|
+
/** @ignore Keyboard focus only: a pointer press must not ring the block. */
|
|
68
|
+
private readonly focusVisible;
|
|
69
|
+
constructor();
|
|
70
|
+
/** @ignore The embedded control, whichever indicator is rendered. */
|
|
71
|
+
private readonly control;
|
|
72
|
+
/** @ignore Value this block selects (radio carries its own, the others the `trueValue`). */
|
|
73
|
+
protected readonly selectedValue: _angular_core.Signal<T>;
|
|
74
|
+
/** @ignore */
|
|
75
|
+
protected readonly checked: _angular_core.Signal<boolean>;
|
|
76
|
+
/** @ignore Id of the region naming the control. */
|
|
77
|
+
protected readonly bodyId: _angular_core.Signal<string>;
|
|
78
|
+
/**
|
|
79
|
+
* @ignore The block content names the control, unless an explicit name is given
|
|
80
|
+
* (`aria-labelledby` outranks `aria-label`, so the two are mutually exclusive).
|
|
81
|
+
*/
|
|
82
|
+
protected readonly controlLabelledBy: _angular_core.Signal<string | undefined>;
|
|
83
|
+
/** @ignore The switch follows the block density; the box controls keep the form-wide size. */
|
|
84
|
+
protected readonly toggleSize: _angular_core.Signal<"default" | "small">;
|
|
85
|
+
/**
|
|
86
|
+
* @ignore The wave is carried by the block, not by a native control, so the
|
|
87
|
+
* engine's own `disabled` guard never sees it: fold the inert states in here.
|
|
88
|
+
*/
|
|
89
|
+
protected readonly rippleEnabled: _angular_core.Signal<boolean>;
|
|
90
|
+
/** @ignore */
|
|
91
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
92
|
+
/** @ignore */
|
|
93
|
+
protected uidPrefix(): string;
|
|
94
|
+
/** Focus the embedded control programmatically. */
|
|
95
|
+
focus(options?: FocusOptions): void;
|
|
96
|
+
/** @ignore A name reaches assistive tech (explicit, or rendered in the body). */
|
|
97
|
+
private hasAccessibleName;
|
|
98
|
+
/** @ignore User selection, relayed by whichever indicator is rendered. */
|
|
99
|
+
protected onControlChange(value: T): void;
|
|
100
|
+
/** @ignore */
|
|
101
|
+
protected onControlFocus(event: FocusEvent): void;
|
|
102
|
+
/** @ignore */
|
|
103
|
+
protected onControlBlur(event: FocusEvent): void;
|
|
104
|
+
/**
|
|
105
|
+
* @ignore Read-only blocks stay focusable but must not change value. Pointer
|
|
106
|
+
* activation is already cut off in CSS; this covers the keyboard.
|
|
107
|
+
*/
|
|
108
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
109
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiToggleBlock<any>, never>;
|
|
110
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiToggleBlock<any>, "ui-toggle-block", never, { "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "indicatorPosition": { "alias": "indicatorPosition"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "hideIndicator": { "alias": "hideIndicator"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "trueValue": { "alias": "trueValue"; "required": false; "isSignal": true; }; "falseValue": { "alias": "falseValue"; "required": false; "isSignal": true; }; }, { "blockChange": "blockChange"; "blockFocus": "blockFocus"; "blockBlur": "blockBlur"; }, never, ["*"], true, never>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { UiToggleBlock };
|
|
114
|
+
export type { ToggleBlockAlign, ToggleBlockIndicator, ToggleBlockIndicatorPosition, ToggleBlockSize };
|
|
@@ -145,10 +145,10 @@ declare class UiTooltip {
|
|
|
145
145
|
private hasContent;
|
|
146
146
|
/** @ignore Whether the trigger text is visually truncated. */
|
|
147
147
|
private hasEllipsis;
|
|
148
|
-
/** @ignore Keep the tooltip open while the pointer is over it (autoHide=false). */
|
|
149
|
-
private
|
|
150
|
-
/** @ignore */
|
|
151
|
-
private
|
|
148
|
+
/** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */
|
|
149
|
+
private bindPanelEvents;
|
|
150
|
+
/** @ignore The focus moved into an interactive panel rather than away from it. */
|
|
151
|
+
private movedIntoPanel;
|
|
152
152
|
/** @ignore */
|
|
153
153
|
private armLifeTimer;
|
|
154
154
|
/** @ignore */
|