@4sh/ui-kit 0.8.0 → 0.10.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.
Files changed (143) hide show
  1. package/README.fr.md +11 -10
  2. package/README.md +11 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +340 -16
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +10 -82
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
  19. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +179 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -0
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  37. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
  39. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
  41. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
  47. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
  49. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
  51. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
  53. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
  55. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
  57. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
  59. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
  61. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-forms.mjs +105 -7
  65. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
  67. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
  72. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
  74. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
  76. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
  78. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  82. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
  86. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  88. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  89. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
  91. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  93. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
  95. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +605 -0
  97. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
  99. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +5 -29
  101. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +5 -29
  103. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
  105. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  107. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
  108. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
  110. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  112. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
  113. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  114. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +12 -36
  115. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  116. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
  117. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  118. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
  119. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  120. package/fesm2022/4sh-ui-kit-overlay.mjs +60 -2
  121. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  122. package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
  123. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
  124. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
  126. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  128. package/mcp/data/text-search-docs.json +486 -66
  129. package/mcp/data/ui-config.json +26605 -12458
  130. package/mcp/package.json +1 -1
  131. package/package.json +13 -1
  132. package/styles/component-vars.scss +1440 -721
  133. package/styles/settings/_ui-config.scss +45 -2
  134. package/styles/utils/_mixins.scss +32 -30
  135. package/styles/utils/_overlay.scss +1 -1
  136. package/types/4sh-ui-kit-base-ui-image.d.ts +151 -6
  137. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
  138. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +110 -0
  139. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
  140. package/types/4sh-ui-kit-forms.d.ts +43 -1
  141. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
  142. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
  143. package/types/4sh-ui-kit-overlay.d.ts +35 -1
@@ -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. No colors — themable colors are runtime
7
- // design tokens.
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
- --_focus-ring: rgb(from var(--form-#{$palette}-stroke-focused) r g b / 50%);
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: var(--fontfamily-base);
107
+ font-family: ui-config.$form-field-font-family;
106
108
  font-size: var(--size-typography-text-default);
107
- color: var(--form-high-content-default);
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: var(--form-low-content-default);
118
+ color: ui-config.$form-field-placeholder-color;
117
119
  opacity: 1;
118
120
  }
119
- &:disabled { cursor: not-allowed; color: var(--form-high-content-disabled); }
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: var(--form-low-content-default);
128
+ color: ui-config.$form-field-affix-color;
127
129
  @include field-inset-edges('margin');
128
130
 
129
- &._disabled { color: var(--form-high-content-disabled); }
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: var(--form-low-content-default);
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: var(--form-high-content-hover);
153
- background-color: var(--form-high-surface-hover);
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: var(--form-high-content-focused);
161
- background-color: var(--form-high-surface-focused);
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: var(--form-high-content-disabled); }
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 var(--form-high-stroke-default);
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: var(--form-low-content-default);
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: var(--form-high-content-hover);
194
- background-color: var(--form-high-surface-hover);
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: var(--form-high-content-disabled); }
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 var(--form-high-stroke-default);
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: var(--fontfamily-base);
25
+ font-family: ui-config.$overlay-panel-font-family;
26
26
  }
@@ -1,7 +1,84 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { InjectionToken, Provider } from '@angular/core';
2
+ import { InjectionToken, TemplateRef, Provider } from '@angular/core';
3
3
  import { SafeHtml } from '@angular/platform-browser';
4
4
 
5
+ /**
6
+ * ui-image-preview — the enlarged view (lightbox) opened by `ui-image`'s
7
+ * `preview` mode.
8
+ *
9
+ * A viewport mask holding a toolbar (zoom in/out, rotate, reset, optional
10
+ * download, close) and the image itself, which the three transforms drive
11
+ * through a single `transform`: pan, scale, rotation. Zoom is reachable at the
12
+ * pointer (toolbar, wheel) and at the keyboard (`+`/`-`/`0`/`r`, arrows to pan)
13
+ * — a zoom a keyboard user cannot pan is a zoom they cannot read.
14
+ *
15
+ * Lives in `ui-image`'s entry point: it renders that component's resolved
16
+ * source, so a separate entry point would be a cycle. Mount it directly only to
17
+ * drive the enlarged view yourself.
18
+ */
19
+ declare class UiImagePreview {
20
+ private readonly document;
21
+ /** URL of the image to show enlarged (already resolved — `http(s)`, `blob:` or `data:`). */
22
+ src: _angular_core.InputSignal<string>;
23
+ /** Alt text of the enlarged image (empty = decorative). */
24
+ alt: _angular_core.InputSignal<string>;
25
+ /** Accessible name of the dialog. */
26
+ ariaLabel: _angular_core.InputSignal<string>;
27
+ /** Zoom increment applied by one toolbar click, one wheel notch or one `+`/`-` press. */
28
+ zoomStep: _angular_core.InputSignalWithTransform<number, unknown>;
29
+ /** Lower zoom bound. */
30
+ minZoom: _angular_core.InputSignalWithTransform<number, unknown>;
31
+ /** Upper zoom bound. */
32
+ maxZoom: _angular_core.InputSignalWithTransform<number, unknown>;
33
+ /** Offer a download action in the toolbar. */
34
+ downloadable: _angular_core.InputSignalWithTransform<boolean, unknown>;
35
+ /** Filename proposed by the download action (defaults to the browser's choice). */
36
+ downloadName: _angular_core.InputSignal<string | undefined>;
37
+ /** Close when the mask around the image is clicked. */
38
+ dismissableMask: _angular_core.InputSignalWithTransform<boolean, unknown>;
39
+ zoomInAriaLabel: _angular_core.InputSignal<string>;
40
+ zoomOutAriaLabel: _angular_core.InputSignal<string>;
41
+ rotateLeftAriaLabel: _angular_core.InputSignal<string>;
42
+ rotateRightAriaLabel: _angular_core.InputSignal<string>;
43
+ resetAriaLabel: _angular_core.InputSignal<string>;
44
+ downloadAriaLabel: _angular_core.InputSignal<string>;
45
+ closeAriaLabel: _angular_core.InputSignal<string>;
46
+ /** Emitted when the view asks to be dismissed (Escape, close button, mask click). */
47
+ closed: _angular_core.OutputEmitterRef<void>;
48
+ private readonly stage;
49
+ protected readonly scale: _angular_core.WritableSignal<number>;
50
+ protected readonly rotation: _angular_core.WritableSignal<number>;
51
+ protected readonly panX: _angular_core.WritableSignal<number>;
52
+ protected readonly panY: _angular_core.WritableSignal<number>;
53
+ protected readonly canZoomIn: _angular_core.Signal<boolean>;
54
+ protected readonly canZoomOut: _angular_core.Signal<boolean>;
55
+ /** Nothing to reset while the three transforms are at their neutral value. */
56
+ protected readonly isPristine: _angular_core.Signal<boolean>;
57
+ /** Panning only makes sense once the image overflows its stage. */
58
+ protected readonly canPan: _angular_core.Signal<boolean>;
59
+ /** A quarter turn: what is drawn no longer fits the layout box's axes. */
60
+ protected readonly isQuarterTurned: _angular_core.Signal<boolean>;
61
+ protected readonly transform: _angular_core.Signal<string>;
62
+ constructor();
63
+ protected zoomIn(): void;
64
+ protected zoomOut(): void;
65
+ protected rotateLeft(): void;
66
+ protected rotateRight(): void;
67
+ protected reset(): void;
68
+ protected close(): void;
69
+ /** A press that lands on the stage itself (not on the image) is a press outside. */
70
+ protected onStagePointerDown(event: PointerEvent): void;
71
+ protected onWheel(event: WheelEvent): void;
72
+ protected onKeydown(event: KeyboardEvent): void;
73
+ private dragOrigin;
74
+ protected onPointerDown(event: PointerEvent): void;
75
+ protected onPointerMove(event: PointerEvent): void;
76
+ protected onPointerUp(event: PointerEvent): void;
77
+ private setScale;
78
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiImagePreview, never>;
79
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiImagePreview, "ui-image-preview", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "zoomStep": { "alias": "zoomStep"; "required": false; "isSignal": true; }; "minZoom": { "alias": "minZoom"; "required": false; "isSignal": true; }; "maxZoom": { "alias": "maxZoom"; "required": false; "isSignal": true; }; "downloadable": { "alias": "downloadable"; "required": false; "isSignal": true; }; "downloadName": { "alias": "downloadName"; "required": false; "isSignal": true; }; "dismissableMask": { "alias": "dismissableMask"; "required": false; "isSignal": true; }; "zoomInAriaLabel": { "alias": "zoomInAriaLabel"; "required": false; "isSignal": true; }; "zoomOutAriaLabel": { "alias": "zoomOutAriaLabel"; "required": false; "isSignal": true; }; "rotateLeftAriaLabel": { "alias": "rotateLeftAriaLabel"; "required": false; "isSignal": true; }; "rotateRightAriaLabel": { "alias": "rotateRightAriaLabel"; "required": false; "isSignal": true; }; "resetAriaLabel": { "alias": "resetAriaLabel"; "required": false; "isSignal": true; }; "downloadAriaLabel": { "alias": "downloadAriaLabel"; "required": false; "isSignal": true; }; "closeAriaLabel": { "alias": "closeAriaLabel"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, never, true, never>;
80
+ }
81
+
5
82
  interface ModeMap {
6
83
  base?: string;
7
84
  light?: string;
@@ -32,19 +109,27 @@ declare function provideUiImageAssets(map: UiImageAssetsMap): Provider;
32
109
  /**
33
110
  * ui-image — theme/brand-aware image.
34
111
  *
35
- * Two sources: `name` (local asset key resolved through `assets-map.json`,
36
- * theme/brand variants) or `src` (remote/absolute URL — takes precedence).
112
+ * Three sources: `name` (local asset key resolved through `assets-map.json`,
113
+ * theme/brand variants), `src` (remote/absolute URL — takes precedence), and
114
+ * `src` + `secured` (the URL is fetched through `HttpClient`, so the app's
115
+ * interceptors authenticate it, and the response `Blob` is shown from an object
116
+ * URL revoked with the component).
37
117
  * Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS — after
38
118
  * being scrubbed by `sanitizeInlineSvg()`; remote URLs always render through
39
- * `<img [ngSrc]>` (never inlined).
119
+ * `<img [ngSrc]>` (never inlined), except `data:`/`blob:` payloads, which
120
+ * `NgOptimizedImage` rejects and a plain `<img>` renders.
40
121
  * On load failure the `fallback` local asset is shown, then a token-styled
41
122
  * placeholder if the fallback also fails (or none is provided).
123
+ *
124
+ * `preview` turns the image into a trigger for the enlarged view
125
+ * (`ui-image-preview`): zoom, rotation, pan, reset, optional download.
42
126
  */
43
127
  declare class UiImage {
44
128
  private readonly sanitizer;
45
129
  private readonly assetsMap;
46
130
  private readonly themeService;
47
131
  private readonly brandService;
132
+ private readonly isBrowser;
48
133
  /** Local asset key in `assets-map.json` (theme/brand-aware resolution). */
49
134
  name: _angular_core.InputSignal<string | undefined>;
50
135
  /** Remote/absolute URL, rendered via `NgOptimizedImage` — takes precedence over `name`. */
@@ -58,13 +143,69 @@ declare class UiImage {
58
143
  height: _angular_core.InputSignal<string | number | undefined>;
59
144
  heightUnit: _angular_core.InputSignal<string | undefined>;
60
145
  alt: _angular_core.InputSignal<string | undefined>;
146
+ /**
147
+ * Fetch `src` through `HttpClient` instead of letting the browser load it.
148
+ *
149
+ * That is what an endpoint behind an `Authorization` header needs: an `<img
150
+ * src>` is a plain browser request, which carries no interceptor and no
151
+ * bearer token. The response `Blob` is shown from an object URL, revoked as
152
+ * soon as the source changes or the component goes away.
153
+ *
154
+ * Cross-origin still applies: the endpoint must answer the CORS preflight
155
+ * (`Access-Control-Allow-Origin`, and `Access-Control-Allow-Headers` for the
156
+ * auth header) — an `<img>` would have displayed it without any of that.
157
+ */
158
+ secured: _angular_core.InputSignalWithTransform<boolean, unknown>;
159
+ /** Send cookies/TLS credentials with the `secured` request (cross-origin sessions). */
160
+ withCredentials: _angular_core.InputSignalWithTransform<boolean, unknown>;
161
+ /** Visible text of the loading indicator shown while a `secured` fetch is in flight. */
162
+ loadingLabel: _angular_core.InputSignal<string | undefined>;
163
+ /** Accessible name of that loading indicator. */
164
+ loadingAriaLabel: _angular_core.InputSignal<string>;
165
+ /** Clicking the image opens the enlarged view (`ui-image-preview`). */
166
+ preview: _angular_core.InputSignalWithTransform<boolean, unknown>;
167
+ /** Enlarged view open state (two-way — set it to open the preview yourself). */
168
+ previewVisible: _angular_core.ModelSignal<boolean>;
169
+ /** Accessible name of the trigger (defaults to the image's own `alt`). */
170
+ previewAriaLabel: _angular_core.InputSignal<string | undefined>;
171
+ /** Accessible name of the enlarged view dialog. */
172
+ previewDialogAriaLabel: _angular_core.InputSignal<string>;
173
+ /** Zoom increment of one toolbar click, wheel notch or `+`/`-` press in the preview. */
174
+ zoomStep: _angular_core.InputSignalWithTransform<number, unknown>;
175
+ /** Lower zoom bound in the preview. */
176
+ minZoom: _angular_core.InputSignalWithTransform<number, unknown>;
177
+ /** Upper zoom bound in the preview. */
178
+ maxZoom: _angular_core.InputSignalWithTransform<number, unknown>;
179
+ /** Offer a download action in the preview toolbar. */
180
+ downloadable: _angular_core.InputSignalWithTransform<boolean, unknown>;
181
+ /** Filename proposed by that download action. */
182
+ downloadName: _angular_core.InputSignal<string | undefined>;
61
183
  /** Emitted with the failed URL when an image fails to load. */
62
184
  loadFailed: _angular_core.OutputEmitterRef<string>;
185
+ /**
186
+ * Replaces the hover indicator of the `preview` mode (the magnifier). Rendered
187
+ * over the image, decorative — the accessible name stays on the trigger.
188
+ *
189
+ * ```html
190
+ * <ui-image src="…" preview>
191
+ * <ng-template #previewIndicator>Agrandir</ng-template>
192
+ * </ui-image>
193
+ * ```
194
+ */
195
+ protected readonly previewIndicator: _angular_core.Signal<TemplateRef<unknown> | undefined>;
63
196
  protected readonly isRemote: _angular_core.Signal<boolean>;
64
197
  /** Inline SVG is reserved for LOCAL assets — a remote `.svg` renders through `<img>` (no XSS surface). */
65
198
  protected readonly isInlineSvg: _angular_core.Signal<boolean>;
199
+ /** `secured` only means anything with a `src` to fetch. */
200
+ protected readonly isSecured: _angular_core.Signal<boolean>;
201
+ /** A `data:` payload is already the image — `NgOptimizedImage` refuses it. */
202
+ protected readonly isDataUrl: _angular_core.Signal<boolean>;
66
203
  protected readonly localSrc: _angular_core.Signal<string>;
67
204
  protected readonly fallbackSrc: _angular_core.Signal<string>;
205
+ private readonly blobResource;
206
+ private readonly blobUrl;
207
+ protected readonly securedLoading: _angular_core.Signal<boolean>;
208
+ private readonly securedFailed;
68
209
  protected readonly primarySrc: _angular_core.Signal<string>;
69
210
  private readonly primaryImgFailed;
70
211
  private readonly fallbackImgFailed;
@@ -86,6 +227,10 @@ declare class UiImage {
86
227
  protected readonly showFallback: _angular_core.Signal<boolean>;
87
228
  protected readonly showPlaceholder: _angular_core.Signal<boolean>;
88
229
  protected readonly displayedSrc: _angular_core.Signal<string>;
230
+ /** `blob:`/`data:` bypass `NgOptimizedImage`; a local fallback never does. */
231
+ protected readonly isRawSrc: _angular_core.Signal<boolean>;
232
+ /** The image is a preview trigger only once there is something to enlarge. */
233
+ protected readonly canPreview: _angular_core.Signal<boolean>;
89
234
  protected readonly cssWidth: _angular_core.Signal<string | null>;
90
235
  protected readonly cssHeight: _angular_core.Signal<string | null>;
91
236
  constructor();
@@ -94,8 +239,8 @@ declare class UiImage {
94
239
  private resolvePath;
95
240
  private buildPath;
96
241
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiImage, never>;
97
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiImage, "ui-image", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "priority": { "alias": "priority"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "widthUnit": { "alias": "widthUnit"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "heightUnit": { "alias": "heightUnit"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; }, { "loadFailed": "loadFailed"; }, never, never, true, never>;
242
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiImage, "ui-image", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "priority": { "alias": "priority"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "widthUnit": { "alias": "widthUnit"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "heightUnit": { "alias": "heightUnit"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "secured": { "alias": "secured"; "required": false; "isSignal": true; }; "withCredentials": { "alias": "withCredentials"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "loadingAriaLabel": { "alias": "loadingAriaLabel"; "required": false; "isSignal": true; }; "preview": { "alias": "preview"; "required": false; "isSignal": true; }; "previewVisible": { "alias": "previewVisible"; "required": false; "isSignal": true; }; "previewAriaLabel": { "alias": "previewAriaLabel"; "required": false; "isSignal": true; }; "previewDialogAriaLabel": { "alias": "previewDialogAriaLabel"; "required": false; "isSignal": true; }; "zoomStep": { "alias": "zoomStep"; "required": false; "isSignal": true; }; "minZoom": { "alias": "minZoom"; "required": false; "isSignal": true; }; "maxZoom": { "alias": "maxZoom"; "required": false; "isSignal": true; }; "downloadable": { "alias": "downloadable"; "required": false; "isSignal": true; }; "downloadName": { "alias": "downloadName"; "required": false; "isSignal": true; }; }, { "previewVisible": "previewVisibleChange"; "loadFailed": "loadFailed"; }, ["previewIndicator"], never, true, never>;
98
243
  }
99
244
 
100
- export { UI_IMAGE_ASSETS, UiImage, provideUiImageAssets };
245
+ export { UI_IMAGE_ASSETS, UiImage, UiImagePreview, provideUiImageAssets };
101
246
  export type { UiImageAssetsMap };
@@ -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,110 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { BaseFormField } from '@4sh/ui-kit/forms';
3
+
4
+ /** Granularity of the field — picks which native control the browser renders. */
5
+ type InputDateMode = 'date' | 'time' | 'datetime';
6
+ /**
7
+ * Shape of the emitted value. **Identical to `ui-datepicker`'s**, so a host can swap one for
8
+ * the other (native picker on mobile, overlay on desktop) without converting anything.
9
+ */
10
+ type InputDateValueType = 'date' | 'iso';
11
+ /** Value carried by the field, whichever `valueType` is in force. */
12
+ type InputDateValue = Date | string | null;
13
+ /**
14
+ * ui-input-date — **native** date/time field on the `ui-field` shell (label + box + helper).
15
+ *
16
+ * The picker belongs to the OS: the system wheel on mobile — which no overlay matches —
17
+ * and the browser's own calendar on desktop. That is the whole reason this component
18
+ * exists next to [`ui-datepicker`](../ui-datepicker), which owns the opposite trade: a
19
+ * calendar carried by the design system, with ranges, multi-month and inline modes.
20
+ *
21
+ * It is a sibling of `ui-input`, not a variant of it: three things a text field cannot do
22
+ * are settled here.
23
+ *
24
+ * 1. **The value is a date, not a string.** `valueType` commits to `Date` or to an ISO
25
+ * string, exactly as `ui-datepicker` does — that alignment is what lets a host branch
26
+ * between the two on viewport without converting anything.
27
+ * 2. **It emits on `change`, never on `input`.** A native temporal control blanks its own
28
+ * value while the entry is incomplete, so an `input`-driven field fires a burst of
29
+ * empty values as the user types — indistinguishable from clearing the field, and quite
30
+ * visible on an autosave or a dependent control.
31
+ * 3. **The label stays raised.** The browser draws its own `jj/mm/aaaa` template in the
32
+ * box, so a floating label at rest would land on top of it.
33
+ *
34
+ * No `placeholder`: the browser ignores it on these types, that template holding the spot.
35
+ *
36
+ * Standalone, `[(ngModel)]` or reactive forms (ControlValueAccessor via BaseFormField).
37
+ */
38
+ declare class UiInputDate extends BaseFormField<InputDateValue> {
39
+ /** Granularity: a day, a time of day, or both. */
40
+ mode: _angular_core.InputSignal<InputDateMode>;
41
+ /**
42
+ * Shape of the emitted value: `'date'` (a plain `Date`) or `'iso'` (`yyyy-MM-dd`, or
43
+ * `yyyy-MM-ddTHH:mm` as soon as a time is part of it). Incoming values are accepted in
44
+ * **either** shape whatever this says — only the emitted side commits.
45
+ */
46
+ valueType: _angular_core.InputSignal<InputDateValueType>;
47
+ /** Earliest accepted value, as a `Date` or in the ISO shape of the current `mode`. */
48
+ min: _angular_core.InputSignal<string | Date | undefined>;
49
+ /** Latest accepted value, same two shapes as {@link min}. */
50
+ max: _angular_core.InputSignal<string | Date | undefined>;
51
+ /**
52
+ * Native `step`: days on `date`, **seconds** on `time` / `datetime` (`900` = quarters of
53
+ * an hour; the browser's own default is `60`, i.e. whole minutes).
54
+ */
55
+ step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
56
+ /** Emitted when the browser commits a value — never mid-entry. */
57
+ valueChange: _angular_core.OutputEmitterRef<InputDateValue>;
58
+ /** Emitted when the field receives focus. */
59
+ inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
60
+ /** Emitted when the field loses focus. */
61
+ inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
62
+ /** @ignore */
63
+ private readonly inputEl;
64
+ /** @ignore The native `type` the OS picker hangs off. */
65
+ protected readonly nativeType: _angular_core.Signal<string>;
66
+ /** @ignore Whether the value carries a time — decides both serializers. */
67
+ private readonly hasTimeComponent;
68
+ /** @ignore Model → the string the native control reads, `''` when there is no value. */
69
+ protected readonly nativeValue: _angular_core.Signal<string>;
70
+ /** @ignore Bounds go through the same serializer as the value: a caller may hand a `Date`
71
+ * or an already-native string, the attribute only ever sees the latter. */
72
+ protected readonly nativeMin: _angular_core.Signal<string | null>;
73
+ /** @ignore */
74
+ protected readonly nativeMax: _angular_core.Signal<string | null>;
75
+ /** @ignore Full `aria-describedby`: the message id, only when a message is rendered. */
76
+ protected readonly resolvedAriaDescribedBy: _angular_core.Signal<string | null>;
77
+ /** Focuses the field. */
78
+ focus(options?: FocusOptions): void;
79
+ /** Native `<input>` element, for a composite host that needs direct DOM access. */
80
+ nativeInputElement(): HTMLInputElement;
81
+ /** @ignore */
82
+ protected uidPrefix(): string;
83
+ /**
84
+ * @ignore The browser committed a value — a complete one, or an empty one because the
85
+ * field was cleared. This is the only place a value leaves the component: `input` fires
86
+ * on every keystroke with the blanks in between, and is deliberately not listened to.
87
+ */
88
+ protected onNativeChange(): void;
89
+ /** @ignore */
90
+ protected onBlur(event: FocusEvent): void;
91
+ /** @ignore Internal `Date` → the shape `valueType` commits to. Mirrors `ui-datepicker`'s
92
+ * own `serializeValue`, down to the fresh instance: the caller never gets a reference it
93
+ * could mutate behind our back. */
94
+ private serializeValue;
95
+ /** @ignore Incoming value, `Date` or ISO string, auto-detected — cloned when already a
96
+ * `Date`, symmetric with {@link serializeValue}. */
97
+ private parseValue;
98
+ /** @ignore `Date` → the exact string the native control of this `mode` accepts. */
99
+ private toNative;
100
+ /** @ignore The reverse. `null` on anything malformed — a bad value degrades to "no value"
101
+ * rather than throwing, the browser being the one that produced it. */
102
+ private fromNative;
103
+ /** @ignore A bound is optional, and a string one is already native. */
104
+ private toNativeBound;
105
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiInputDate, never>;
106
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiInputDate, "ui-input-date", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "valueType": { "alias": "valueType"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, never, never, true, never>;
107
+ }
108
+
109
+ export { UiInputDate };
110
+ export type { InputDateMode, InputDateValue, InputDateValueType };