@4sh/ui-kit 0.6.1 → 0.7.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 (127) hide show
  1. package/README.fr.md +46 -22
  2. package/README.md +45 -23
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +439 -0
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -0
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +111 -10
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +10 -4
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +457 -75
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1107 -0
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -0
  19. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +30 -3
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +8 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +15 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +8 -4
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +40 -4
  31. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
  33. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -2
  39. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +317 -0
  42. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -0
  43. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +8 -2
  44. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +372 -0
  46. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -0
  47. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms.mjs +44 -14
  49. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
  55. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  57. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
  66. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  69. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  72. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +45 -4
  73. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  77. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  78. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  80. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -10
  82. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -4
  84. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  86. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  88. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  91. package/mcp/data/text-search-docs.json +654 -74
  92. package/mcp/data/ui-config.json +5908 -3732
  93. package/mcp/index.js +682 -410
  94. package/mcp/package.json +1 -1
  95. package/package.json +17 -1
  96. package/schematics/index.cjs +1 -1
  97. package/styles/component-vars.scss +119 -2
  98. package/styles/generated/_tokens-breakpoint.scss +1 -1
  99. package/styles/generated/_tokens-metrics.scss +1 -1
  100. package/styles/generated/_tokens-primitives.scss +1 -1
  101. package/styles/generated/_tokens-responsive.scss +17 -17
  102. package/styles/generated/_tokens-semantics.scss +15 -15
  103. package/styles/generated/_tokens-styles.scss +1 -1
  104. package/styles/generated/_tokens-transitions.scss +1 -1
  105. package/styles/generated/_tokens-typography.scss +1 -1
  106. package/styles/generated/_tokens.scss +1 -1
  107. package/styles/utils/_helpers.scss +15 -0
  108. package/styles/utils/_mixins.scss +17 -1
  109. package/styles.css +1 -1
  110. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +234 -0
  111. package/types/4sh-ui-kit-base-ui-image.d.ts +16 -3
  112. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +4 -1
  113. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +186 -36
  114. package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
  115. package/types/4sh-ui-kit-forms-ui-field.d.ts +20 -2
  116. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +4 -0
  117. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +9 -0
  118. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +4 -1
  119. package/types/4sh-ui-kit-forms-ui-input.d.ts +28 -2
  120. package/types/4sh-ui-kit-forms-ui-select.d.ts +2 -0
  121. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +126 -0
  122. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +4 -0
  123. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +220 -0
  124. package/types/4sh-ui-kit-forms.d.ts +34 -7
  125. package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
  126. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
  127. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +14 -3
@@ -98,7 +98,13 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
98
98
  showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
99
99
  /** Accessible name of the toggle button (a11y). */
100
100
  iconAriaLabel: _angular_core.InputSignal<string>;
101
- /** Show a clear (×) button in the trigger when a value is set. */
101
+ /**
102
+ * Show a clear (×) button in the trigger when a value is set. **Default `true`** (FSHSP-118):
103
+ * only takes effect when `showIcon` is `false` — the calendar/clock toggle otherwise always
104
+ * wins the trigger's single icon slot, so the panel stays reachable by click even once a value
105
+ * is set. With `showIcon` at its own default (`true`), clearing goes through the keyboard
106
+ * (`allowInput`, itself `true` by default) instead: select the text and delete it.
107
+ */
102
108
  showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
103
109
  /**
104
110
  * Shape of the emitted value: `'date'` (a plain `Date` — matches a DTO round-tripped through
@@ -126,14 +132,43 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
126
132
  firstDayOfWeek: _angular_core.InputSignalWithTransform<number, unknown>;
127
133
  /** BCP-47 locale for names and default formatting. Defaults to `LOCALE_ID`. */
128
134
  locale: _angular_core.InputSignal<string | undefined>;
129
- /** Custom display formatter for a single date (overrides the default `Intl` format). */
135
+ /**
136
+ * Custom display formatter for a single date (overrides the default `Intl` format) — also
137
+ * used, unchanged, as the time formatter in `timeOnly` mode.
138
+ *
139
+ * With `allowInput` and no `parseDate`, the typed text is read back in the day/month/year
140
+ * order **this formatter writes** (probed from its own output, whatever locale it uses
141
+ * internally), not the resolved locale's — so entry and display always agree. A non-numeric
142
+ * format (e.g. `"22 novembre 2023"`) can't be probed: pair it with a matching `parseDate`.
143
+ */
130
144
  dateFormat: _angular_core.InputSignal<((date: Date) => string) | undefined>;
131
145
  /**
132
- * Allow typing the date directly in the trigger (single selection only).
133
- * The typed text is parsed on blur / `Enter`; an unparsable value reverts to
134
- * the previously displayed one. When enabled (and no custom `dateFormat`), the
135
- * value is displayed in a numeric locale format so it round-trips with typing.
136
- * Has no effect in `timeOnly` mode: the trigger stays read-only there.
146
+ * Allow typing the date directly in the trigger. **Default `true`** (FSHSP-118): a calendar
147
+ * grid alone forces a screen-reader user through ~30 cells to pick a date, when typing it is
148
+ * far faster — set `false` to force the grid-only path instead. The typed text is parsed on
149
+ * blur / `Enter`; an unparsable value reverts to the previously displayed one. When enabled
150
+ * (and no custom `dateFormat`), the value is displayed in a numeric locale format so it
151
+ * round-trips with typing.
152
+ *
153
+ * `single` gets the full experience: a live auto-"/" mask while constructing a date from an
154
+ * empty field (see `typingSlots`), free-form text editing otherwise — no live reformatting,
155
+ * parsed on blur/Enter. "Otherwise" covers both a value that already exists and an edit made
156
+ * inside the text being typed rather than at its tail: editing a segment in place, e.g. just
157
+ * the month, never shifts what follows (FSHSP-118, FSHSP-179).
158
+ *
159
+ * `range`/`multiple` are typeable too (FSHSP-118), but always as plain text — no live mask,
160
+ * only parsed on blur/Enter: `"jj/mm/aaaa - jj/mm/aaaa"` for `range` (exactly two dates,
161
+ * reordered chronologically if typed backwards), `"jj/mm/aaaa, jj/mm/aaaa, ..."` for `multiple`
162
+ * (any count, duplicates collapsed) — see `parseTypedMulti`. The grid keeps working exactly as
163
+ * before either way; typing is a complement, not a replacement.
164
+ *
165
+ * A typeable field is a text field first: **a click in it no longer opens the panel**
166
+ * (FSHSP-180) — the calendar icon, `↓` and the keyboard do. `allowInput="false"` (or
167
+ * `readonly`/`timeOnly`) restores the click-to-open, the field being the affordance there; so
168
+ * does `showIcon="false"`, which leaves no icon to click. See `onTriggerClick`.
169
+ *
170
+ * Has no effect in `timeOnly` mode: the trigger stays read-only there (no parser/formatter for
171
+ * a bare time string).
137
172
  */
138
173
  allowInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
139
174
  /**
@@ -159,6 +194,15 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
159
194
  todayLabel: _angular_core.InputSignal<string>;
160
195
  /** Label of the default "Clear" button. */
161
196
  clearLabel: _angular_core.InputSignal<string>;
197
+ /**
198
+ * Accessible hint announcing the expected typed format, chained onto the trigger's
199
+ * `aria-describedby` (alongside the helper/error message, never replacing it) whenever it's
200
+ * typeable (FSHSP-118): the `placeholder` alone is unreliable across screen readers, and it
201
+ * disappears the moment the user starts typing. Defaults to a sentence built from the resolved
202
+ * placeholder (e.g. "Format attendu : jj/mm/aaaa"); pass an explicit string to override it, or
203
+ * `''` to omit it.
204
+ */
205
+ formatHintLabel: _angular_core.InputSignal<string | undefined>;
162
206
  /** Accessible name of the calendar panel (fallback when no `label`/`ariaLabel`). */
163
207
  panelAriaLabel: _angular_core.InputSignal<string>;
164
208
  /** Accessible label of the previous-month/year navigation arrow. */
@@ -248,12 +292,19 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
248
292
  protected readonly minutes: _angular_core.WritableSignal<number>;
249
293
  /** @ignore Raw text while the user edits the trigger (`allowInput`); `null` when not editing. */
250
294
  protected readonly typedValue: _angular_core.WritableSignal<string | null>;
295
+ /** @ignore Live mask given up on for the rest of the current entry, because the user edited
296
+ * inside the text instead of appending at its tail (see `onTriggerInput`/`typingSlots`).
297
+ * Lifted by any commit, and as soon as the field reads empty. */
298
+ private readonly maskSuspended;
251
299
  /** @ignore Date-based source of truth for all calendar/selection logic; `modelValue`
252
300
  * (inherited) only ever carries the public value (`Date` or ISO string per `valueType`),
253
301
  * written in lockstep. */
254
302
  protected readonly internalValue: _angular_core.WritableSignal<DatepickerDateValue>;
255
303
  /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */
256
304
  protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
305
+ /** @ignore Gutter kept with the viewport edges, matching the one `$panel-max-width`
306
+ * reserves; with `cdkConnectedOverlayPush` it keeps the panel fully on screen. */
307
+ protected readonly overlayViewportMargin = 12;
257
308
  /** @ignore Bound (stable) callbacks exposed to the `#buttonbar` template. */
258
309
  protected readonly todayCallback: (event?: Event) => void;
259
310
  protected readonly clearCallback: (event?: Event) => void;
@@ -263,33 +314,64 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
263
314
  private readonly resolvedMinDate;
264
315
  private readonly resolvedMaxDate;
265
316
  private readonly resolvedDisabledDates;
266
- /**
267
- * @ignore The trigger is not typeable: manual input off, not single, read-only, or
268
- * `timeOnly` — free-form typing in time-only mode isn't implemented (no dedicated
269
- * parser/formatter for a bare time string), so it's disabled outright here rather than
270
- * silently mis-parsing.
271
- */
317
+ /** @ignore Not typeable: manual input off, read-only, or `timeOnly` (no bare-time parser).
318
+ * `range`/`multiple` ARE typeable (FSHSP-118) — see `parseTypedMulti`/`typingSlots`. */
272
319
  protected readonly triggerReadonly: _angular_core.Signal<boolean>;
320
+ /** @ignore Single-date placeholder token (e.g. `jj/mm/aaaa`) — the building block
321
+ * `resolvedPlaceholder` composes for `range`/`multiple`. With a custom `dateFormat`, the
322
+ * locale's numeric token would be flatly wrong (it describes a format nothing actually
323
+ * produces or accepts) — showing that custom formatter's own output for an illustrative date
324
+ * instead at least matches what the field really expects. */
325
+ private readonly singleDatePlaceholder;
273
326
  /**
274
- * @ignore Placeholder shown in the typeable trigger. Falls back to a hint derived
275
- * from the resolved locale's field order (e.g. `jj/mm/aaaa` in French, `mm/dd/yyyy`
276
- * in en-US) so the field never advertises the wrong format.
327
+ * @ignore Placeholder shown in the typeable trigger. Falls back to a hint derived from the
328
+ * resolved locale's field order (e.g. `jj/mm/aaaa` in French, `mm/dd/yyyy` in en-US) — or, with
329
+ * a custom `dateFormat`, from that formatter's own output for an illustrative date (see
330
+ * `singleDatePlaceholder`), since the locale-numeric token would describe a format nothing
331
+ * actually produces or accepts — so the field never advertises the wrong format. Composed into
332
+ * `"jj/mm/aaaa - jj/mm/aaaa"` (`range`) or `"jj/mm/aaaa, ..."` (`multiple`), matching
333
+ * `RANGE_SEPARATOR`/`MULTIPLE_SEPARATOR` (see `parseTypedMulti`).
277
334
  */
278
335
  protected readonly resolvedPlaceholder: _angular_core.Signal<string | undefined>;
279
- /** @ignore Order of day/month/year for the resolved locale (drives numeric parsing). */
336
+ /**
337
+ * @ignore Format hint text, or `null` when there's nothing to announce: the trigger isn't
338
+ * typeable, or `formatHintLabel` was explicitly set to `''` to opt out.
339
+ */
340
+ protected readonly resolvedFormatHint: _angular_core.Signal<string | null>;
341
+ /** @ignore Stable id for the hint element `resolvedFormatHint` renders into. */
342
+ protected readonly formatHintId: _angular_core.Signal<string>;
343
+ /**
344
+ * @ignore Field order a custom `dateFormat` actually writes, probed from its own output for
345
+ * {@link probeDate}. `null` when there is no custom formatter, or when its output isn't
346
+ * numeric enough to tell (e.g. `"22 novembre 2023"`) — the locale order stands then.
347
+ *
348
+ * The default parser and the live mask have to read the text back in the order the field
349
+ * displays it, and a `dateFormat` is free to use a locale of its own: an `fr-FR` formatter
350
+ * under an `en-US` `LOCALE_ID` displayed `"08/07/2026"` but parsed it month-first, so
351
+ * finishing the entry silently swapped day and month (FSHSP-179).
352
+ */
353
+ private readonly customFormatFieldOrder;
354
+ /** @ignore Order of day/month/year driving numeric parsing, the live mask and the auto
355
+ * placeholder: what a custom `dateFormat` writes when that can be probed
356
+ * ({@link customFormatFieldOrder}), the resolved locale's own order otherwise. */
280
357
  private readonly dateFieldOrder;
281
358
  /** @ignore `dateFieldOrder`, minus `day` in month view — the fields actually typed. */
282
359
  private readonly activeFields;
283
360
  /**
284
- * @ignore Dynamic mask (day/month/year widths in locale order, plus hour/minute — and AM/PM —
285
- * widths when `showTime`) driving the auto-"/" (resp. ":") formatting of the typeable trigger.
286
- * `null` disables it: `triggerReadonly` (covers `timeOnly` — see there), `view === 'year'`
287
- * (free-form numeric field, out of scope), or a custom `parseDate` (a non-numeric format would
288
- * make the auto-slash wrong). The `year` segment is deliberately left unbounded so the existing
289
- * 2-digit shortcut (`normalizeYear`) keeps working — strict validation still happens at
290
- * `finalizeParsed`. `defaultParse` already expects these trailing hour/minute digits (see its
291
- * `nums.slice(fields.length)`) — this only keeps the auto-formatting mask in sync with it, so
292
- * typed hour/minute digits aren't truncated by `autoFormatSegments` before they reach it.
361
+ * @ignore Dynamic mask (day/month/year widths, `+` time if `showTime`, `+` a second date for
362
+ * `range`) driving the auto-"/"/":"/" - " formatting of the typeable trigger. `null` disables
363
+ * it: `triggerReadonly`, `view === 'year'` (free-form field), a custom `parseDate` (non-numeric
364
+ * format), `hasValue()`, or `multiple` (unbounded date count, no fixed template fits — plain
365
+ * text on blur/Enter instead, see `parseTypedMulti`).
366
+ *
367
+ * `hasValue()`: re-deriving the mask from the raw digit stream only works for *constructing* a
368
+ * value from nothing, not editing one in place (day/month re-validate arbitrary residual digits
369
+ * after any edit — see `onTriggerInput`). So it's off once a value exists — plain text instead,
370
+ * parsed on blur/Enter — and re-arms the moment the field reads empty (`onTriggerInput` commits
371
+ * the clear right there, not just on blur, so `hasValue()` actually flips before the next key).
372
+ *
373
+ * `maskSuspended()`: the same limitation, hit before any value exists — an edit made *inside*
374
+ * the text being typed rather than at its tail (see `onTriggerInput`).
293
375
  */
294
376
  private readonly typingSlots;
295
377
  /** @ignore The panel is visible. */
@@ -300,9 +382,22 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
300
382
  protected readonly singleMonth: _angular_core.Signal<boolean>;
301
383
  /** @ignore A value is currently set. */
302
384
  protected readonly hasValue: _angular_core.Signal<boolean>;
303
- /** @ignore The trigger's right action clears the value (instead of toggling the panel). */
385
+ /**
386
+ * @ignore A `range` whose two ends are both picked. Between the first and the second click
387
+ * the start is selected but there is no zone yet: the grid must then show its chip alone,
388
+ * never a half band running off toward an end that does not exist.
389
+ */
390
+ protected readonly rangeComplete: _angular_core.Signal<boolean>;
391
+ /**
392
+ * @ignore The trigger's right action clears the value (instead of toggling the panel). Gated
393
+ * on `!showIcon()` (FSHSP-118): the calendar/clock toggle always wins the trigger's single icon
394
+ * slot when it's shown, so there's always a click target to reopen the panel and pick a
395
+ * different date directly — the cross only replaces it in configs that hid it (`showIcon`
396
+ * false), where it's the sole remaining affordance to empty the field without a keyboard.
397
+ */
304
398
  protected readonly showClearButton: _angular_core.Signal<boolean>;
305
- /** @ignore Right-side icon: clear (×) when clearable + set, else the calendar/clock toggle. */
399
+ /** @ignore Right-side icon: clear (×) when clearable + set + no calendar toggle to show
400
+ * (see `showClearButton`), else the calendar/clock toggle. */
306
401
  protected readonly triggerIcon: _angular_core.Signal<string | undefined>;
307
402
  /** @ignore Accessible name of the right action. */
308
403
  protected readonly triggerIconAriaLabel: _angular_core.Signal<string>;
@@ -338,6 +433,10 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
338
433
  private toInternalValue;
339
434
  /** @ignore */
340
435
  private formatDate;
436
+ /** @ignore `timeOnly` display — respects `hourFormat` (never the locale's own AM/PM-vs-24h
437
+ * default) and `dateFormat` when provided (symmetric with `formatDate`/`formatMonth`, used
438
+ * here as a time formatter). */
439
+ private formatTime;
341
440
  /** @ignore Month-view display (numeric + round-trippable when the trigger is typeable). */
342
441
  private formatMonth;
343
442
  /** @ignore Value rendered in the trigger. */
@@ -360,19 +459,46 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
360
459
  protected readonly months: _angular_core.Signal<DatepickerMonthCell[]>;
361
460
  /** @ignore Year-picker grid (the displayed decade). */
362
461
  protected readonly years: _angular_core.Signal<DatepickerYearCell[]>;
462
+ /** @ignore Month/year cells chunked into the rows the CSS actually renders (3 and 2 columns,
463
+ * see `.ui-datepicker-picker._month` / `._year`). A `role="grid"` requires its `gridcell`s to
464
+ * sit inside a `role="row"`; without it the whole grid is invalid ARIA and screen readers get
465
+ * no row structure to walk. Keep the chunk sizes in step with the SCSS column counts. */
466
+ protected readonly monthRows: _angular_core.Signal<DatepickerMonthCell[][]>;
467
+ /** @ignore Year-picker rows — 2 columns, see `.ui-datepicker-picker._year`. */
468
+ protected readonly yearRows: _angular_core.Signal<DatepickerYearCell[][]>;
363
469
  /** @ignore Hours as shown in the 12h stepper (1–12). */
364
470
  protected readonly displayHours: _angular_core.Signal<number>;
365
471
  /** @ignore */
366
472
  protected readonly meridiem: _angular_core.Signal<"AM" | "PM">;
367
473
  constructor();
368
474
  writeValue(value: DatepickerValue): void;
369
- open(): void;
475
+ /**
476
+ * @param viaIcon Whether this open was specifically triggered by the calendar icon (vs.
477
+ * clicking the field itself, or a keyboard shortcut) — see the rove-into-grid comment below.
478
+ */
479
+ open(viaIcon?: boolean): void;
370
480
  close(focusTrigger?: boolean): void;
371
481
  /** @ignore */
372
- protected toggle(): void;
373
- /** @ignore Right action: clear when clearable + set, otherwise toggle the panel.
374
- * `stopPropagation` keeps the click from bubbling to the field (which opens it). */
482
+ protected toggle(viaIcon?: boolean): void;
483
+ /** @ignore Right action: clear when clearable + set, otherwise toggle the panel (via the icon —
484
+ * see `open`'s `viaIcon`). `stopPropagation` keeps the click from bubbling to the field (which
485
+ * would otherwise also call `open()`, without `viaIcon`, right behind this one). */
375
486
  protected onIconClick(event: MouseEvent): void;
487
+ /**
488
+ * @ignore Whether a click on the trigger opens the panel. It does when the field isn't
489
+ * typeable (`triggerReadonly`: the field then *is* the button), and when `showIcon` is off
490
+ * (no calendar toggle left — without this, nothing would open the panel with a mouse).
491
+ *
492
+ * On a typeable field it does NOT (FSHSP-180). The panel is an overlay with a permanent
493
+ * backdrop, so an open panel swallows every further click on the field: the first click
494
+ * placed the caret, the next one lost focus without moving it — correcting a single segment
495
+ * with the mouse was impossible. Opening also live-commits the typed text through
496
+ * `previewTyped`, which disarms the auto-"/" mask mid-entry (see `typingSlots`). The icon,
497
+ * `↓` and typing are unaffected.
498
+ */
499
+ private readonly openOnTriggerClick;
500
+ /** @ignore Click anywhere on the trigger (label, field or format hint — they share the wrapper). */
501
+ protected onTriggerClick(): void;
376
502
  /** @ignore */
377
503
  protected onTriggerKeydown(event: KeyboardEvent): void;
378
504
  /**
@@ -381,14 +507,21 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
381
507
  * pattern as a card-expiry field) and reposition the caret accordingly.
382
508
  */
383
509
  protected onTriggerInput(value: string): void;
510
+ /** @ignore Whether `text` already has its time portion too, when `showTime` requires one.
511
+ * `previewTyped` needs this: without it, `hasValue()` (and the mask) flipped off the moment
512
+ * day/month/year were typed, before a single time digit — the next digit then glued onto the
513
+ * year with no mask to insert "HH:MM" (FSHSP-118). `commitTyped` doesn't use this: a date typed
514
+ * and blurred without a time is still a legitimate commit (time defaults to the steppers). */
515
+ private hasCompleteTimeIfNeeded;
384
516
  /**
385
- * @ignore Reflect a fully-typed date in the open panel (navigate + highlight)
386
- * without reformatting the field, so the caret stays put while typing.
517
+ * @ignore Reflect a fully-typed date (or `range`/`multiple` set) in the open panel
518
+ * (navigate + highlight) without reformatting the field, so the caret stays put while typing.
387
519
  */
388
520
  private previewTyped;
389
521
  /** @ignore Parse the typed text on blur, then forward the blur. */
390
522
  protected onTriggerBlur(event: FocusEvent): void;
391
- /** @ignore Parse and apply the typed text; revert to the previous value if invalid. */
523
+ /** @ignore Parse and apply the typed text (single date, or `range`/`multiple` set — see
524
+ * `parseTypedValue`); revert to the previous value if invalid. */
392
525
  protected commitTyped(): void;
393
526
  /**
394
527
  * @ignore Custom parser when provided, otherwise the locale-aware numeric parser.
@@ -396,6 +529,23 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
396
529
  * parsers decide completeness themselves).
397
530
  */
398
531
  private parseTyped;
532
+ /**
533
+ * @ignore Parses typed text into whatever shape the current `selectionMode` commits: a single
534
+ * `Date` for `single`, a `Date[]` for `range`/`multiple` (see `parseTypedMulti`). `null` means
535
+ * "not a complete, enabled value for this mode" — the caller reverts.
536
+ */
537
+ private parseTypedValue;
538
+ /** @ignore `range`/`multiple` typed entry (FSHSP-118): splits via `splitTypedSegments`, parses
539
+ * each part with `parseTyped` (a custom `parseDate` applies per part, like `dateFormat` does
540
+ * per date on display). `range` needs exactly 2 parts, reordered chronologically; `multiple`
541
+ * takes any count, deduped. One bad/disabled part fails the whole thing. Always `startOfDay` —
542
+ * no `showTime` support here. */
543
+ private parseTypedMulti;
544
+ /** @ignore Splits typed `range`/`multiple` text into per-date segments (FSHSP-118). A plain
545
+ * `text.split(sep)` breaks when a date's own formatted text contains `sep` (e.g. a `", "`
546
+ * `dateFormat` in `multiple`, or an ISO dash in `range`) — instead, a `sep` occurrence is only
547
+ * accepted as a boundary once the text before it already parses as a complete date. */
548
+ private splitTypedSegments;
399
549
  /**
400
550
  * @ignore Locale-aware numeric parser (day/month/year order from `dateFieldOrder`).
401
551
  * With `requireComplete`, returns `null` unless every component is present
@@ -537,7 +687,7 @@ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
537
687
  /** @ignore */
538
688
  private capitalize;
539
689
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiDatepicker, never>;
540
- 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; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "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; }; "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>;
690
+ 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; }; "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; }; "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>;
541
691
  }
542
692
 
543
693
  export { UiDatepicker };