@ids-group-ltd/ids-design-system 0.5.1 → 0.6.1

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.
@@ -93,6 +93,7 @@ const ICONS = {
93
93
  chevronRight: '<path d="m9 6 6 6-6 6" />',
94
94
  chevronLeft: '<path d="m15 6-6 6 6 6" />',
95
95
  chevronUp: '<path d="m6 15 6-6 6 6" />',
96
+ menu: '<path d="M4 6h16M4 12h16M4 18h16" />',
96
97
  arrowRight: '<path d="M5 12h14M13 6l6 6-6 6" />',
97
98
  arrowUp: '<path d="M12 19V5M6 11l6-6 6 6" />',
98
99
  arrowDown: '<path d="M12 5v14M6 13l6 6 6-6" />',
@@ -265,9 +266,13 @@ class ButtonComponent {
265
266
  discouraged for ALL colours — prefer the global `.link` class; it stays for
266
267
  cases needing the ds-button API (loading/fullWidth/typed pressed). */
267
268
  variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
269
+ /** Button height — sm/md/lg. */
268
270
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
271
+ /** Native `<button>` `type` attribute. */
269
272
  type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
273
+ /** Disables the button and blocks `pressed`. */
270
274
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
275
+ /** Busy state — disables interaction and sets `aria-busy`. */
271
276
  loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
272
277
  /** Stretch the button to fill its container — the host becomes block-level
273
278
  and 100% wide (the inner control is already full-width). Use for mobile
@@ -276,7 +281,9 @@ class ButtonComponent {
276
281
  /** Accessible name — forwarded to the inner <button> as aria-label. Use when
277
282
  the visible label is absent or non-descriptive. */
278
283
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
284
+ /** Leading icon, before the projected content. */
279
285
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
286
+ /** Trailing icon, after the projected content. */
280
287
  trailingIcon = input(null, ...(ngDevMode ? [{ debugName: "trailingIcon" }] : /* istanbul ignore next */ []));
281
288
  /** ARIA `aria-haspopup`, forwarded to the inner <button> — set when this
282
289
  * button triggers a menu/dialog/listbox overlay. */
@@ -284,6 +291,7 @@ class ButtonComponent {
284
291
  /** ARIA `aria-expanded`, forwarded to the inner <button> — bind to the
285
292
  * overlay's open state on a trigger button. */
286
293
  ariaExpanded = input(null, ...(ngDevMode ? [{ debugName: "ariaExpanded" }] : /* istanbul ignore next */ []));
294
+ /** Fires on click, unless `disabled` or `loading`. */
287
295
  pressed = output();
288
296
  /** The inner native <button>, exposed so overlay triggers can position
289
297
  * against and restore focus to the real focusable element — e.g.
@@ -334,8 +342,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
334
342
  * leading icon and a projected label. Distinct from `ds-segmented` (a
335
343
  * one-of-many value toggle) — this is a standalone on/off control. */
336
344
  class ToggleButtonComponent {
345
+ /** Pressed (on/off) state; two-way bound. */
337
346
  pressed = model(false, ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
347
+ /** Optional leading icon name. */
338
348
  icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
349
+ /** Disables the toggle. */
339
350
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
340
351
  toggle() {
341
352
  if (this.disabled()) {
@@ -358,17 +369,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
358
369
  * for labelled actions. `ariaLabel` is REQUIRED (icon-only has no text label).
359
370
  */
360
371
  class IconButtonComponent {
372
+ /** Icon to render — the button's only visible content. */
361
373
  icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
374
+ /** Accessible name — required since the button has no visible text. */
362
375
  ariaLabel = input.required(...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
376
+ /** Fill style — standard (chromeless), filled, tonal, or outlined. */
363
377
  variant = input('standard', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
364
378
  /** Brand/status hue family (shared with ds-button). `variant` is the fill
365
379
  axis; `color` recolours the accent the fill consumes. Default primary. */
366
380
  color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
381
+ /** Button size — sm/md/lg, matches the field/button height scale. */
367
382
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
383
+ /** Native `button` type attribute. */
368
384
  type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
385
+ /** Disables the button and blocks `pressed`. */
369
386
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
370
387
  /** Toggle state — renders the pressed/active look and sets aria-pressed. */
371
388
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
389
+ /** Fires on click, unless disabled. */
372
390
  pressed = output();
373
391
  classes = computed(() => {
374
392
  const parts = ['icon-button', this.variant(), this.size()];
@@ -407,9 +425,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
407
425
  class BadgeComponent {
408
426
  /** Consumer-defined status key; colours are wired via styles/status. Unset → neutral. */
409
427
  status = input(...(ngDevMode ? [undefined, { debugName: "status" }] : /* istanbul ignore next */ []));
428
+ /** Shows a status dot; only rendered when `count` is unset. */
410
429
  withDot = input(false, { ...(ngDevMode ? { debugName: "withDot" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
430
+ /** Solid accent fill instead of the default subtle background. */
411
431
  solid = input(false, { ...(ngDevMode ? { debugName: "solid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
432
+ /** Numeric count to display; overrides projected content when set. */
412
433
  count = input(null, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
434
+ /** Count is capped at this value, shown as `"max+"` beyond it. */
413
435
  max = input(99, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
414
436
  /** Display text for the count, capped at max+. */
415
437
  countDisplay = computed(() => {
@@ -470,8 +492,11 @@ const STATUS_ARIA_LABELS = {
470
492
  busy: 'Busy',
471
493
  };
472
494
  class AvatarComponent {
495
+ /** Diameter — xs/sm/lg apply a size class; md is the default. */
473
496
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
497
+ /** Fallback text shown when there's no `imageUrl`. */
474
498
  initials = input('', ...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
499
+ /** Image source; shown before `initials` or `fallbackIcon` when set. */
475
500
  imageUrl = input(null, ...(ngDevMode ? [{ debugName: "imageUrl" }] : /* istanbul ignore next */ []));
476
501
  /** Accessible name. When omitted, the avatar is treated as decorative
477
502
  * (hidden from AT) — correct when a visible name sits beside it. */
@@ -514,7 +539,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
514
539
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], imageUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUrl", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tint: [{ type: i0.Input, args: [{ isSignal: true, alias: "tint", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], fallbackIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallbackIcon", required: false }] }] } });
515
540
 
516
541
  class AvatarGroupComponent {
542
+ /** Maximum avatars shown before the rest collapse into an overflow chip. */
517
543
  max = input(4, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
544
+ /** Total avatar count driving the `+N` overflow; null counts the projected children. */
518
545
  total = input(null, ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
519
546
  overflow = computed(() => {
520
547
  const total = this.total();
@@ -533,8 +560,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
533
560
  }], propDecorators: { max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }] } });
534
561
 
535
562
  class CardComponent {
563
+ /** Visual treatment; `interactive` makes the card clickable and emits `pressed`. */
536
564
  elevation = input('flat', ...(ngDevMode ? [{ debugName: "elevation" }] : /* istanbul ignore next */ []));
565
+ /** Inner padding preset; `null` keeps the card's default padding. */
537
566
  padding = input(null, ...(ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []));
567
+ /** Fires the click event when `elevation` is `interactive`. */
538
568
  pressed = output();
539
569
  interactive = computed(() => this.elevation() === 'interactive', ...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
540
570
  classes = computed(() => {
@@ -555,14 +585,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
555
585
  }], propDecorators: { elevation: [{ type: i0.Input, args: [{ isSignal: true, alias: "elevation", required: false }] }], padding: [{ type: i0.Input, args: [{ isSignal: true, alias: "padding", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }] } });
556
586
 
557
587
  class StatComponent {
588
+ /** Metric name shown above the value. */
558
589
  label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
590
+ /** Headline metric; `unit` is appended directly after it. */
559
591
  value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
592
+ /** Change amount; sign drives the up/down arrow and color. */
560
593
  delta = input(null, ...(ngDevMode ? [{ debugName: "delta" }] : /* istanbul ignore next */ []));
594
+ /** Suffix appended after the delta's magnitude, e.g. "vs last month". */
561
595
  deltaLabel = input('', ...(ngDevMode ? [{ debugName: "deltaLabel" }] : /* istanbul ignore next */ []));
596
+ /** Overrides the automatic up/down coloring of the delta. */
562
597
  deltaTone = input(null, ...(ngDevMode ? [{ debugName: "deltaTone" }] : /* istanbul ignore next */ []));
598
+ /** Secondary text shown below the value when there's no `delta`. */
563
599
  caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
600
+ /** Suffix appended directly after `value`, e.g. "%". */
564
601
  unit = input('', ...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
602
+ /** `error` applies the error color treatment. */
565
603
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
604
+ /** Controls the stat's overall type scale. */
566
605
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
567
606
  deltaClasses = computed(() => {
568
607
  const delta = this.delta();
@@ -610,9 +649,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
610
649
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], delta: [{ type: i0.Input, args: [{ isSignal: true, alias: "delta", required: false }] }], deltaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "deltaLabel", required: false }] }], deltaTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "deltaTone", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
611
650
 
612
651
  class TabComponent {
652
+ /** Text shown in the tab button. */
613
653
  label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
654
+ /** Icon shown before the label. */
614
655
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
656
+ /** Numeric badge shown after the label. */
615
657
  count = input(null, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
658
+ /** Excludes the tab from selection and keyboard navigation. */
616
659
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
617
660
  /** Identifier emitted by tabClosed. Falls back to label when omitted. */
618
661
  value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -631,7 +674,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
631
674
 
632
675
  let nextId$a = 0;
633
676
  class TabsComponent {
677
+ /** Index of the active tab, two-way bound. */
634
678
  selectedIndex = model(0, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
679
+ /** Visual style of the tab strip. */
635
680
  variant = input('line', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
636
681
  /** When true, a tab's content is instantiated only on first activation and
637
682
  kept alive thereafter. When false (default), all panels render eagerly. */
@@ -787,6 +832,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
787
832
  }], propDecorators: { selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], tabClosed: [{ type: i0.Output, args: ["tabClosed"] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TabComponent), { isSignal: true }] }] } });
788
833
 
789
834
  class SpinnerComponent {
835
+ /** Spinner size — sm/md/lg. */
790
836
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
791
837
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
792
838
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: SpinnerComponent, isStandalone: true, selector: "ds-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status", "aria-label": "Loading" }, properties: { "class.sm": "size() === 'sm'", "class.lg": "size() === 'lg'" } }, ngImport: i0, template: '', isInline: true, styles: ["@charset \"UTF-8\";:host{--_spinner-color: var(--ds-spinner-color, var(--accent));--_spinner-track-color: var(--ds-spinner-track-color, var(--border-default));display:inline-block;width:var(--spinner-md);height:var(--spinner-md);border:var(--spinner-bw) solid var(--_spinner-track-color);border-top-color:var(--_spinner-color);border-radius:var(--radius-pill);animation:spinner-rotate var(--duration-loop-fast) linear infinite}:host(.sm){width:var(--spinner-sm);height:var(--spinner-sm);border-width:var(--border-width-default)}:host(.lg){width:var(--spinner-lg);height:var(--spinner-lg);border-width:var(--border-width-strong)}@keyframes spinner-rotate{to{transform:rotate(360deg)}}\n"] });
@@ -939,15 +985,25 @@ function nextControlId(prefix) {
939
985
  }
940
986
 
941
987
  class InputComponent extends DsControlValueAccessor {
988
+ /** Text value, two-way bound. */
942
989
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
990
+ /** Native input type — also affects the default clear button and password toggle. */
943
991
  type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
992
+ /** Field height — sm/md/lg. */
944
993
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
994
+ /** Label shown above the field, or inside it when `floating`. */
945
995
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
996
+ /** Helper text shown below the field. */
946
997
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
998
+ /** Placeholder shown when empty. */
947
999
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1000
+ /** Disables the field and blocks all interaction. */
948
1001
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1002
+ /** Prevents editing while still allowing focus and selection. */
949
1003
  readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1004
+ /** Applies error styling and marks the field `aria-invalid`. */
950
1005
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1006
+ /** Applies success styling to the field. */
951
1007
  success = input(false, { ...(ngDevMode ? { debugName: "success" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
952
1008
  /** Shows a trailing spinner — e.g. async validation in flight. The input
953
1009
  * stays editable; pair with a `hint` like "Checking availability…". */
@@ -955,17 +1011,26 @@ class InputComponent extends DsControlValueAccessor {
955
1011
  /** Floating-label variant — the label sits inside a taller control instead
956
1012
  * of stacked above it. */
957
1013
  floating = input(false, { ...(ngDevMode ? { debugName: "floating" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1014
+ /** Reserves space for a leading addon projected into `[dsInputPrefix]`. */
958
1015
  withAddon = input(false, { ...(ngDevMode ? { debugName: "withAddon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1016
+ /** Reserves space for a trailing addon projected into `[dsInputSuffix]`. */
959
1017
  withAddonRight = input(false, { ...(ngDevMode ? { debugName: "withAddonRight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1018
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
960
1019
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1020
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
961
1021
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1022
+ /** Native `name` attribute. */
962
1023
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
963
1024
  // Numeric constraints (applied when type="number").
1025
+ /** Native `min` attribute — applies when `type="number"`. */
964
1026
  min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
1027
+ /** Native `max` attribute — applies when `type="number"`. */
965
1028
  max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
1029
+ /** Native `step` attribute — applies when `type="number"`. */
966
1030
  step = input(null, ...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
967
1031
  /** Native autocomplete token (e.g. "email", "current-password"). */
968
1032
  autocomplete = input(null, ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
1033
+ /** Focuses the field automatically on render. */
969
1034
  autofocus = input(false, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
970
1035
  /** Accessible name when no visible `label` is provided (falls back to the
971
1036
  * placeholder so the control is never unnamed). */
@@ -975,6 +1040,7 @@ class InputComponent extends DsControlValueAccessor {
975
1040
  maxLength = input(null, ...(ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []));
976
1041
  /** Mobile keyboard hints — forwarded to the native input as attributes. */
977
1042
  enterKeyHint = input(null, ...(ngDevMode ? [{ debugName: "enterKeyHint" }] : /* istanbul ignore next */ []));
1043
+ /** Native `inputmode` attribute — hints the on-screen keyboard layout. */
978
1044
  inputMode = input(null, ...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
979
1045
  /** Emits when the native input loses focus. */
980
1046
  blurred = output();
@@ -986,7 +1052,9 @@ class InputComponent extends DsControlValueAccessor {
986
1052
  * an explicit boolean to override.
987
1053
  */
988
1054
  clearable = input(null, ...(ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []));
1055
+ /** Shows a show/hide button when `type="password"`. */
989
1056
  passwordToggle = input(false, { ...(ngDevMode ? { debugName: "passwordToggle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1057
+ /** Whether the password is currently shown as plain text, two-way bound. */
990
1058
  passwordVisible = model(false, ...(ngDevMode ? [{ debugName: "passwordVisible" }] : /* istanbul ignore next */ []));
991
1059
  canClear = computed(() => {
992
1060
  const explicit = this.clearable();
@@ -1076,11 +1144,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1076
1144
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], floating: [{ type: i0.Input, args: [{ isSignal: true, alias: "floating", required: false }] }], withAddon: [{ type: i0.Input, args: [{ isSignal: true, alias: "withAddon", required: false }] }], withAddonRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "withAddonRight", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], enterKeyHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterKeyHint", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }], blurred: [{ type: i0.Output, args: ["blurred"] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], passwordToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordToggle", required: false }] }], passwordVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordVisible", required: false }] }, { type: i0.Output, args: ["passwordVisibleChange"] }] } });
1077
1145
 
1078
1146
  class NumberStepperComponent {
1147
+ /** Current numeric value, two-way bound. */
1079
1148
  value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1149
+ /** Lower bound — the decrement button and typed input clamp to it. */
1080
1150
  min = input(0, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
1151
+ /** Upper bound — the increment button and typed input clamp to it; unbounded when null. */
1081
1152
  max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
1153
+ /** Amount added or subtracted per increment/decrement. */
1082
1154
  step = input(1, ...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
1155
+ /** Control height — sm/md/lg. */
1083
1156
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1157
+ /** Disables the stepper and blocks all interaction. */
1084
1158
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1085
1159
  /** Accessible name for the number input (the stepper has no visible label). */
1086
1160
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -1127,21 +1201,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1127
1201
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
1128
1202
 
1129
1203
  class TextareaComponent extends DsControlValueAccessor {
1204
+ /** Text value, two-way bound. */
1130
1205
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1206
+ /** Field height — sm/md/lg. */
1131
1207
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1208
+ /** Label shown above the field. */
1132
1209
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1210
+ /** Helper text shown below the field. */
1133
1211
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
1212
+ /** Placeholder shown when empty. */
1134
1213
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1214
+ /** Disables the field and blocks all interaction. */
1135
1215
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1216
+ /** Prevents editing while still allowing focus and selection. */
1136
1217
  readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1218
+ /** Applies error styling and marks the field `aria-invalid`. */
1137
1219
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1220
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
1138
1221
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1222
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
1139
1223
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1224
+ /** Native `rows` attribute — visible line count. */
1140
1225
  rows = input(3, ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
1226
+ /** Native `name` attribute. */
1141
1227
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
1228
+ /** Grows the field with content instead of scrolling; forces `resize` to none. */
1142
1229
  autosize = input(false, { ...(ngDevMode ? { debugName: "autosize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1230
+ /** Minimum height in lines when `autosize`. */
1143
1231
  minRows = input(null, ...(ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []));
1232
+ /** Maximum height in lines when `autosize`, beyond which it scrolls. */
1144
1233
  maxRows = input(null, ...(ngDevMode ? [{ debugName: "maxRows" }] : /* istanbul ignore next */ []));
1234
+ /** Native CSS `resize` behaviour — ignored when `autosize`. */
1145
1235
  resize = input('vertical', ...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
1146
1236
  /** Accessible name when no visible `label` is provided. */
1147
1237
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -1203,14 +1293,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1203
1293
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], autosize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autosize", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }] } });
1204
1294
 
1205
1295
  class SearchComponent {
1296
+ /** Search text, two-way bound. */
1206
1297
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1298
+ /** Placeholder shown when empty. */
1207
1299
  placeholder = input('Search', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1300
+ /** Keyboard shortcut hint rendered in a trailing `<kbd>` badge. */
1208
1301
  shortcut = input('', ...(ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []));
1302
+ /** Shows the leading search icon. */
1209
1303
  showIcon = input(true, { ...(ngDevMode ? { debugName: "showIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1210
1304
  /** Show an inline clear (×) button on the right when there's a value. */
1211
1305
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1212
1306
  /** Accessible name for the input (placeholder is not a reliable label). */
1213
1307
  ariaLabel = input('', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
1308
+ /** Fires with the current value on Enter. */
1214
1309
  submitted = output();
1215
1310
  inputEl = viewChild('searchInput', ...(ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []));
1216
1311
  onSubmit() {
@@ -1276,6 +1371,36 @@ function forwardOverlayTokens(overlayRef, host, tokens) {
1276
1371
  }
1277
1372
  }
1278
1373
  }
1374
+ /** Close a non-modal overlay on a pointer press outside it, EXCEPT when the press
1375
+ * lands on its trigger — so the trigger stays interactive (caret, re-focus) while
1376
+ * open. Use with `hasBackdrop: false` so hover/cursor/pointer reach the live page. */
1377
+ function closeOnOutsidePointer(overlayRef, isInsideTrigger, close) {
1378
+ overlayRef.outsidePointerEvents().subscribe((event) => {
1379
+ const target = event.target;
1380
+ if (target && isInsideTrigger(target)) {
1381
+ return;
1382
+ }
1383
+ close();
1384
+ });
1385
+ }
1386
+ /** Close a non-modal overlay when the page scrolls. CDK's scroll strategies only
1387
+ * observe `window` + registered `cdkScrollable`s, so they miss a plain
1388
+ * `overflow:auto` container (e.g. an app's scrolling `<main>`); this listens on
1389
+ * the document in the CAPTURE phase, which catches the non-bubbling `scroll`
1390
+ * event from ANY nested container. A scroll inside the panel itself is ignored.
1391
+ * Returns a teardown to remove the listener. */
1392
+ function closeOnScroll(overlayRef, close) {
1393
+ const onScroll = (event) => {
1394
+ const target = event.target;
1395
+ if (target && overlayRef.overlayElement.contains(target)) {
1396
+ return;
1397
+ }
1398
+ close();
1399
+ };
1400
+ const doc = overlayRef.overlayElement.ownerDocument;
1401
+ doc.addEventListener('scroll', onScroll, true);
1402
+ return () => doc.removeEventListener('scroll', onScroll, true);
1403
+ }
1279
1404
 
1280
1405
  /** Showcase-only: renders the component's open/overlay surface inline in normal
1281
1406
  * flow instead of its real overlay mechanics (for static docs specimens).
@@ -1298,20 +1423,33 @@ class SelectComponent extends DsControlValueAccessor {
1298
1423
  overlay = inject(Overlay);
1299
1424
  vcr = inject(ViewContainerRef);
1300
1425
  preview = inject(DsStaticPreview);
1426
+ /** Selected option's value, two-way bound. */
1301
1427
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1428
+ /** Flat options or option groups rendered in the dropdown panel. */
1302
1429
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
1430
+ /** Shown in the trigger when nothing is selected. */
1303
1431
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1432
+ /** Trigger height — sm/md/lg. */
1304
1433
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1434
+ /** Label shown above the trigger. */
1305
1435
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1436
+ /** Disables the trigger and blocks all interaction. */
1306
1437
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1438
+ /** Prevents opening the dropdown while still allowing focus. */
1307
1439
  readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1440
+ /** Applies error styling and marks the trigger `aria-invalid`. */
1308
1441
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1442
+ /** Helper text shown below the trigger. */
1309
1443
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
1444
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
1310
1445
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1446
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
1311
1447
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1448
+ /** Native `name` attribute forwarded to the trigger. */
1312
1449
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
1313
1450
  /** Accessible name when no visible `label` is provided. */
1314
1451
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
1452
+ /** Shows an inline clear (×) button when a value is selected. */
1315
1453
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1316
1454
  uid = nextControlId('ds-select');
1317
1455
  labelId = `${this.uid}-label`;
@@ -1602,9 +1740,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1602
1740
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], panelContentTpl: [{ type: i0.ViewChild, args: ['panelContent', { isSignal: true }] }] } });
1603
1741
 
1604
1742
  class SkeletonComponent {
1743
+ /** CSS width of the placeholder (e.g. `'120px'`, `'50%'`). */
1605
1744
  width = input(undefined, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
1745
+ /** CSS height of the placeholder. */
1606
1746
  height = input(undefined, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
1747
+ /** Pill radius, for avatar/dot-shaped placeholders. */
1607
1748
  circle = input(false, { ...(ngDevMode ? { debugName: "circle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1749
+ /** `display: inline-block` instead of `block`, to sit inline with text. */
1608
1750
  inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1609
1751
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1610
1752
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()" } }, ngImport: i0, template: '', isInline: true, styles: ["@charset \"UTF-8\";:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;background:var(--_skeleton-shimmer-color);pointer-events:none;will-change:mask-position;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);-webkit-mask-size:200vw 100%;mask-size:200vw 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-attachment:fixed;mask-attachment:fixed;-webkit-mask-position:var(--skeleton-shimmer-x, 100vw) 0;mask-position:var(--skeleton-shimmer-x, 100vw) 0}\n"] });
@@ -1621,12 +1763,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1621
1763
  }], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], circle: [{ type: i0.Input, args: [{ isSignal: true, alias: "circle", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }] } });
1622
1764
 
1623
1765
  class PaginationComponent {
1766
+ /** Total item count, used to compute the page count. */
1624
1767
  total = input.required(...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
1768
+ /** Items per page, two-way bound. */
1625
1769
  pageSize = model(10, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
1770
+ /** 1-based active page, two-way bound. */
1626
1771
  currentPage = model(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
1772
+ /** Preset choices offered in the page-size dropdown. */
1627
1773
  pageSizeOptions = input([10, 25, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
1774
+ /** Shows the "Showing X–Y of Z" range label. */
1628
1775
  showLabel = input(true, { ...(ngDevMode ? { debugName: "showLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1776
+ /** Fires whenever the active page changes, including the reset to page 1 after a size change. */
1629
1777
  pageChange = output();
1778
+ /** Fires when the page size changes via the size dropdown. */
1630
1779
  pageSizeChange = output();
1631
1780
  totalPages = computed(() => Math.max(1, Math.ceil(this.total() / this.pageSize())), ...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
1632
1781
  pageItems = computed(() => {
@@ -1690,13 +1839,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1690
1839
  }], propDecorators: { total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: true }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }, { type: i0.Output, args: ["pageSizeChange"] }], currentPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPage", required: false }] }, { type: i0.Output, args: ["currentPageChange"] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], pageSizeChange: [{ type: i0.Output, args: ["pageSizeChange"] }] } });
1691
1840
 
1692
1841
  class LoadingOverlayComponent {
1693
- // Show the scrim + spinner over the projected region.
1842
+ /** Show the scrim + spinner over the projected region. */
1694
1843
  loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1695
- // Optional caption beneath the spinner.
1844
+ /** Optional caption beneath the spinner. */
1696
1845
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1846
+ /** Backdrop-blur the projected content behind the scrim. */
1697
1847
  blur = input(true, { ...(ngDevMode ? { debugName: "blur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1848
+ /** Size of the spinner shown in the scrim. */
1698
1849
  spinnerSize = input('md', ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
1699
- // Offset the scrim top edge — useful when a sticky header should stay uncovered.
1850
+ /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */
1700
1851
  insetTop = input('0', ...(ngDevMode ? [{ debugName: "insetTop" }] : /* istanbul ignore next */ []));
1701
1852
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: LoadingOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1702
1853
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<ng-content></ng-content>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: [":host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary))}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation:ds-loading-overlay-in var(--duration-fast) var(--ease-standard)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@keyframes ds-loading-overlay-in{0%{opacity:0}to{opacity:1}}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
@@ -1742,8 +1893,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1742
1893
 
1743
1894
  const NUMERIC = /^-?\d+(\.\d+)?$/;
1744
1895
  class TableComponent {
1896
+ /** Rows to render. */
1745
1897
  data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1898
+ /** Column definitions driving headers, cells and sorting. */
1746
1899
  columns = input.required(...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
1900
+ /** Adds a checkbox column for row/select-all selection. */
1747
1901
  selectable = input(false, { ...(ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1748
1902
  /** Opt-in outer border + radius. Off by default so tables flush inside a
1749
1903
  * `<ds-card padding="none">` (workspaces, programs-list) don't double-border.
@@ -1756,10 +1910,15 @@ class TableComponent {
1756
1910
  * 'overlay' — re-fetch indicator; existing rows stay visible behind
1757
1911
  * a translucent overlay with a centred spinner. */
1758
1912
  loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
1913
+ /** Keeps the header row pinned while the body scrolls. */
1759
1914
  stickyHeader = input(true, { ...(ngDevMode ? { debugName: "stickyHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1915
+ /** Two-way set of currently selected row ids. */
1760
1916
  selectedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "selectedIds" }] : /* istanbul ignore next */ []));
1917
+ /** Column key currently sorted by; `null` when unsorted. */
1761
1918
  sortKey = model(null, ...(ngDevMode ? [{ debugName: "sortKey" }] : /* istanbul ignore next */ []));
1919
+ /** Sort direction for `sortKey`. */
1762
1920
  sortDir = model(null, ...(ngDevMode ? [{ debugName: "sortDir" }] : /* istanbul ignore next */ []));
1921
+ /** Number of shimmer rows rendered while `loading` is `'skeleton'`. */
1763
1922
  skeletonRows = input(5, ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
1764
1923
  /** Accessible name for the table (rendered as a visually-hidden caption).
1765
1924
  * Without it, screen-reader users get an unlabelled table. */
@@ -1773,13 +1932,16 @@ class TableComponent {
1773
1932
  pageSize = model(null, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
1774
1933
  /** Current 1-based page. Only meaningful when `pageSize()` is set. */
1775
1934
  page = model(1, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
1935
+ /** Selectable page-size choices shown in the pagination control. */
1776
1936
  pageSizeOptions = input([10, 25, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
1777
1937
  /** When true, the table sorts `data()` itself; otherwise it only emits
1778
1938
  * `sortChange` and leaves ordering to the consumer (default). */
1779
1939
  clientSort = input(false, { ...(ngDevMode ? { debugName: "clientSort" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1780
1940
  /** Pin the first data column (and the select column) on horizontal scroll. */
1781
1941
  stickyFirstColumn = input(false, { ...(ngDevMode ? { debugName: "stickyFirstColumn" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1942
+ /** Fires with the row on click (or Enter/Space when `rowInteractive`). */
1782
1943
  rowClicked = output();
1944
+ /** Fires whenever sort key/direction changes, regardless of `clientSort`. */
1783
1945
  sortChange = output();
1784
1946
  /** Cell templates supplied as an explicit map instead of (or in addition to)
1785
1947
  * projected `dsCellTemplate` directives. Lets a wrapper component (e.g.
@@ -2151,37 +2313,16 @@ function formatDate(date, spec) {
2151
2313
  };
2152
2314
  return spec.order.map((token) => values[token]).join(spec.separator);
2153
2315
  }
2154
- function totalDigits(spec) {
2155
- return spec.segments.reduce((sum, segment) => sum + segment.length, 0);
2156
- }
2157
- function applyMask(raw, spec) {
2158
- const digits = raw.replace(/\D/g, '').slice(0, totalDigits(spec));
2159
- let out = '';
2160
- let index = 0;
2161
- for (let segmentIndex = 0; segmentIndex < spec.segments.length; segmentIndex++) {
2162
- const segment = spec.segments[segmentIndex];
2163
- if (index >= digits.length) {
2164
- break;
2165
- }
2166
- const chunk = digits.slice(index, index + segment.length);
2167
- out += chunk;
2168
- index += segment.length;
2169
- if (chunk.length === segment.length && segmentIndex < spec.segments.length - 1) {
2170
- out += spec.separator;
2171
- }
2172
- }
2173
- return out;
2174
- }
2175
- function parseDate(text, spec) {
2176
- const digits = text.replace(/\D/g, '');
2177
- if (digits.length !== totalDigits(spec)) {
2178
- return null;
2179
- }
2316
+ /** Build a date from three per-slot digit strings; null if any slot isn't full-width or invalid. */
2317
+ function parseSegments(segments, spec) {
2180
2318
  const values = { D: 1, M: 1, Y: 2000 };
2181
- let index = 0;
2182
- for (const segment of spec.segments) {
2183
- values[segment.type] = parseInt(digits.slice(index, index + segment.length), 10);
2184
- index += segment.length;
2319
+ for (let index = 0; index < spec.segments.length; index++) {
2320
+ const segment = spec.segments[index];
2321
+ const digits = segments[index] ?? '';
2322
+ if (digits.length !== segment.length) {
2323
+ return null;
2324
+ }
2325
+ values[segment.type] = parseInt(digits, 10);
2185
2326
  }
2186
2327
  const { D: day, M: month, Y: year } = values;
2187
2328
  if (month < 1 || month > 12 || day < 1 || day > 31) {
@@ -2195,22 +2336,15 @@ function parseDate(text, spec) {
2195
2336
  }
2196
2337
  return date;
2197
2338
  }
2339
+ function parseDate(text, spec) {
2340
+ return parseSegments(parseFieldText(text, singleFieldLayout(spec)), spec);
2341
+ }
2198
2342
  /** Separator between the two dates of a range, in the field and its placeholder. */
2199
2343
  const RANGE_SEPARATOR = ' – ';
2200
2344
  /** Combined placeholder/mask for a range field, e.g. "MM/DD/YYYY – MM/DD/YYYY". */
2201
2345
  function rangeMask(spec) {
2202
2346
  return `${spec.mask}${RANGE_SEPARATOR}${spec.mask}`;
2203
2347
  }
2204
- /** Mask a raw two-date string: digits fill start then end, capped and separated. */
2205
- function applyMaskRange(raw, spec) {
2206
- const perDate = totalDigits(spec);
2207
- const digits = raw.replace(/\D/g, '').slice(0, perDate * 2);
2208
- const start = applyMask(digits.slice(0, perDate), spec);
2209
- if (digits.length < perDate) {
2210
- return start;
2211
- }
2212
- return `${start}${RANGE_SEPARATOR}${applyMask(digits.slice(perDate), spec)}`;
2213
- }
2214
2348
  /** Render a range value to the combined field string. */
2215
2349
  function formatRange(range, spec) {
2216
2350
  const [start, end] = range ?? [null, null];
@@ -2225,15 +2359,175 @@ function formatRange(range, spec) {
2225
2359
  }
2226
2360
  /** Parse a combined range field string into [start, end] (either may be null). */
2227
2361
  function parseDateRange(text, spec) {
2228
- const perDate = totalDigits(spec);
2229
- const digits = text.replace(/\D/g, '');
2230
- const startDigits = digits.slice(0, perDate);
2231
- const endDigits = digits.slice(perDate, perDate * 2);
2362
+ const slots = parseFieldText(text, rangeFieldLayout(spec));
2363
+ const perDate = spec.segments.length;
2232
2364
  return [
2233
- startDigits.length === perDate ? parseDate(startDigits, spec) : null,
2234
- endDigits.length === perDate ? parseDate(endDigits, spec) : null,
2365
+ parseSegments(slots.slice(0, perDate), spec),
2366
+ parseSegments(slots.slice(perDate, perDate * 2), spec),
2235
2367
  ];
2236
2368
  }
2369
+ function singleFieldLayout(spec) {
2370
+ return {
2371
+ slots: spec.segments.map((segment) => ({
2372
+ type: segment.type,
2373
+ maxLength: segment.length,
2374
+ })),
2375
+ literals: spec.segments.slice(1).map(() => spec.separator),
2376
+ };
2377
+ }
2378
+ function rangeFieldLayout(spec) {
2379
+ const single = singleFieldLayout(spec);
2380
+ return {
2381
+ slots: [...single.slots, ...single.slots],
2382
+ literals: [...single.literals, RANGE_SEPARATOR, ...single.literals],
2383
+ };
2384
+ }
2385
+ /** Split a fixed-width renderFieldValue output into per-slot digits, read at
2386
+ * each slot's fixed position — every slot is maxLength wide and every literal
2387
+ * always present, so a `_` pad or any stray char is simply dropped. */
2388
+ function parseFieldText(text, layout) {
2389
+ const segments = [];
2390
+ let position = 0;
2391
+ for (let index = 0; index < layout.slots.length; index++) {
2392
+ const raw = text.slice(position, position + layout.slots[index].maxLength);
2393
+ segments.push(raw.replace(/\D/g, ''));
2394
+ position += layout.slots[index].maxLength;
2395
+ if (index < layout.slots.length - 1) {
2396
+ position += layout.literals[index].length;
2397
+ }
2398
+ }
2399
+ return segments;
2400
+ }
2401
+ const PLACEHOLDER_CHAR = '_';
2402
+ function slotPlaceholder(slot) {
2403
+ return slot.type === 'Y' ? 'YYYY' : slot.type === 'M' ? 'MM' : 'DD';
2404
+ }
2405
+ /** Fixed-width input value: every slot padded to maxLength with `_`, all literals present. */
2406
+ function renderFieldValue(segments, layout) {
2407
+ let out = '';
2408
+ for (let index = 0; index < layout.slots.length; index++) {
2409
+ const slot = layout.slots[index];
2410
+ out += segments[index].padEnd(slot.maxLength, PLACEHOLDER_CHAR);
2411
+ if (index < layout.slots.length - 1) {
2412
+ out += layout.literals[index];
2413
+ }
2414
+ }
2415
+ return out;
2416
+ }
2417
+ /** Ordered runs for the overlay: digits (not muted), placeholders (muted), literals (not muted).
2418
+ * Untouched slot → its format letters; partial slot → digits + `_` for the missing positions. */
2419
+ function displayParts(segments, layout) {
2420
+ const parts = [];
2421
+ for (let index = 0; index < layout.slots.length; index++) {
2422
+ const slot = layout.slots[index];
2423
+ const digits = segments[index];
2424
+ if (digits.length === 0) {
2425
+ parts.push({ text: slotPlaceholder(slot), muted: true });
2426
+ }
2427
+ else {
2428
+ parts.push({ text: digits, muted: false });
2429
+ if (digits.length < slot.maxLength) {
2430
+ parts.push({
2431
+ text: PLACEHOLDER_CHAR.repeat(slot.maxLength - digits.length),
2432
+ muted: true,
2433
+ });
2434
+ }
2435
+ }
2436
+ if (index < layout.slots.length - 1) {
2437
+ parts.push({ text: layout.literals[index], muted: false });
2438
+ }
2439
+ }
2440
+ return parts;
2441
+ }
2442
+ /** Char offset where slot `index` begins in the fixed-width value — every
2443
+ * slot is maxLength wide and every literal always present. */
2444
+ function slotStart(layout, index) {
2445
+ let position = 0;
2446
+ for (let slot = 0; slot < index; slot++) {
2447
+ position += layout.slots[slot].maxLength + layout.literals[slot].length;
2448
+ }
2449
+ return position;
2450
+ }
2451
+ function slotToCaret(layout, slot, offset) {
2452
+ return slotStart(layout, slot) + offset;
2453
+ }
2454
+ /** Map a caret char offset to its slot; a caret inside a literal snaps forward. */
2455
+ function caretToSlot(layout, caret) {
2456
+ let position = 0;
2457
+ for (let index = 0; index < layout.slots.length; index++) {
2458
+ const width = layout.slots[index].maxLength;
2459
+ if (caret <= position + width) {
2460
+ return { slot: index, offset: Math.max(0, caret - position) };
2461
+ }
2462
+ position += width;
2463
+ const literalLength = index < layout.literals.length ? layout.literals[index].length : 0;
2464
+ if (caret < position + literalLength) {
2465
+ return { slot: index + 1, offset: 0 };
2466
+ }
2467
+ position += literalLength;
2468
+ }
2469
+ const last = layout.slots.length - 1;
2470
+ return { slot: last, offset: layout.slots[last].maxLength };
2471
+ }
2472
+ /** After typing, hop to the next slot once the current one is full. */
2473
+ function advanceAfterType(segments, layout, slot, offset) {
2474
+ if (offset >= layout.slots[slot].maxLength &&
2475
+ slot < layout.slots.length - 1) {
2476
+ return { segments, slot: slot + 1, offset: 0 };
2477
+ }
2478
+ return { segments, slot, offset };
2479
+ }
2480
+ /** Type a digit into the caret's slot: overtype under the caret, else append;
2481
+ * a full slot spills the digit into the next one instead of shifting. */
2482
+ function editType(segments, layout, slot, offset, digit) {
2483
+ const next = segments.slice();
2484
+ const maxLength = layout.slots[slot].maxLength;
2485
+ const current = next[slot];
2486
+ if (offset < current.length) {
2487
+ next[slot] = current.slice(0, offset) + digit + current.slice(offset + 1);
2488
+ return advanceAfterType(next, layout, slot, offset + 1);
2489
+ }
2490
+ if (current.length < maxLength) {
2491
+ next[slot] = current + digit;
2492
+ return advanceAfterType(next, layout, slot, current.length + 1);
2493
+ }
2494
+ if (slot < layout.slots.length - 1) {
2495
+ return editType(next, layout, slot + 1, 0, digit);
2496
+ }
2497
+ return { segments: next, slot, offset };
2498
+ }
2499
+ /** Backspace: drop the digit left of the caret within its slot, else the last
2500
+ * digit of the nearest earlier non-empty slot. Null when nothing precedes it. */
2501
+ function editBackspace(segments, layout, slot, offset) {
2502
+ const next = segments.slice();
2503
+ if (offset > 0) {
2504
+ next[slot] = next[slot].slice(0, offset - 1) + next[slot].slice(offset);
2505
+ return { segments: next, slot, offset: offset - 1 };
2506
+ }
2507
+ for (let index = slot - 1; index >= 0; index--) {
2508
+ if (next[index].length > 0) {
2509
+ next[index] = next[index].slice(0, -1);
2510
+ return { segments: next, slot: index, offset: next[index].length };
2511
+ }
2512
+ }
2513
+ return null;
2514
+ }
2515
+ /** Delete: drop the digit at the caret within its slot, else the first digit of
2516
+ * the nearest later non-empty slot. Null when nothing follows it. */
2517
+ function editDelete(segments, layout, slot, offset) {
2518
+ const next = segments.slice();
2519
+ if (offset < next[slot].length) {
2520
+ next[slot] = next[slot].slice(0, offset) + next[slot].slice(offset + 1);
2521
+ return { segments: next, slot, offset };
2522
+ }
2523
+ for (let index = slot + 1; index < next.length; index++) {
2524
+ if (next[index].length > 0) {
2525
+ next[index] = next[index].slice(1);
2526
+ return { segments: next, slot, offset };
2527
+ }
2528
+ }
2529
+ return null;
2530
+ }
2237
2531
  function weekdayLabels(locale, firstDayOfWeek, style = 'short') {
2238
2532
  const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
2239
2533
  // 2023-01-01 is a Sunday (getDay() === 0).
@@ -2265,19 +2559,40 @@ const YEAR_PAGE_SIZE = 12;
2265
2559
  class DatePickerComponent extends DsControlValueAccessor {
2266
2560
  constructor() {
2267
2561
  super();
2562
+ // Renders through toFieldText so the field is fixed-width `_`-padded once
2563
+ // any digit exists (even a partial range pads the empty end date), but
2564
+ // genuinely empty ('') when untouched — see Fix A.
2268
2565
  effect(() => {
2269
2566
  const spec = this.formatSpec();
2270
2567
  const value = this.value();
2568
+ const layout = this.layout();
2271
2569
  if (this.editing) {
2272
2570
  return;
2273
2571
  }
2274
2572
  if (this.mode() === 'single') {
2275
- this.inputText.set(formatDate(value, spec));
2573
+ const date = value;
2574
+ this.inputText.set(date ? formatDate(date, spec) : '');
2276
2575
  return;
2277
2576
  }
2278
- this.rangeText.set(formatRange(value, spec));
2577
+ const single = singleFieldLayout(spec);
2578
+ const [start, end] = value ?? [null, null];
2579
+ const startSegments = start
2580
+ ? parseFieldText(formatDate(start, spec), single)
2581
+ : single.slots.map(() => '');
2582
+ const endSegments = end
2583
+ ? parseFieldText(formatDate(end, spec), single)
2584
+ : single.slots.map(() => '');
2585
+ this.rangeText.set(this.toFieldText([...startSegments, ...endSegments], layout));
2279
2586
  });
2280
2587
  }
2588
+ /** Field text for the DOM: fixed-width `_`-padded once any digit exists,
2589
+ * else '' (so an untouched field is genuinely empty — no error on blur,
2590
+ * nothing for AT to read out). */
2591
+ toFieldText(segments, layout) {
2592
+ return segments.some((segment) => segment.length > 0)
2593
+ ? renderFieldValue(segments, layout)
2594
+ : '';
2595
+ }
2281
2596
  overlay = inject(Overlay);
2282
2597
  vcr = inject(ViewContainerRef);
2283
2598
  injector = inject(Injector);
@@ -2305,20 +2620,31 @@ class DatePickerComponent extends DsControlValueAccessor {
2305
2620
  '--ds-date-picker-nav-icon-color',
2306
2621
  '--ds-date-picker-width',
2307
2622
  ];
2623
+ /** Selection mode — single date or start/end range. */
2308
2624
  mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
2625
+ /** Trigger height — sm/md/lg. */
2309
2626
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
2627
+ /** Selected date (single) or `[start, end]` (range), two-way bound. */
2310
2628
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2629
+ /** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
2311
2630
  placeholder = input('Select date', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
2631
+ /** Field label shown above the trigger. */
2312
2632
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
2633
+ /** Helper text shown below the field. */
2313
2634
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
2635
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
2314
2636
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2637
+ /** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
2315
2638
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2639
+ /** Disables the picker and blocks all interaction. */
2316
2640
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2641
+ /** Applies error styling and marks the trigger `aria-invalid`. */
2317
2642
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2318
2643
  /** Accessible name when no visible `label` is provided. */
2319
2644
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
2320
2645
  /** Bounds for the year dropdown in the calendar header. */
2321
2646
  minYear = input(new Date().getFullYear() - 100, ...(ngDevMode ? [{ debugName: "minYear" }] : /* istanbul ignore next */ []));
2647
+ /** Upper bound for the year dropdown in the calendar header. */
2322
2648
  maxYear = input(new Date().getFullYear() + 10, ...(ngDevMode ? [{ debugName: "maxYear" }] : /* istanbul ignore next */ []));
2323
2649
  /** Earliest selectable date (inclusive). Days before this are disabled. */
2324
2650
  minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
@@ -2354,6 +2680,10 @@ class DatePickerComponent extends DsControlValueAccessor {
2354
2680
  resolvedLocale = computed(() => this.locale() ?? this.config.datePicker?.locale ?? 'en-US', ...(ngDevMode ? [{ debugName: "resolvedLocale" }] : /* istanbul ignore next */ []));
2355
2681
  resolvedFirstDay = computed(() => this.firstDayOfWeek() ?? this.config.datePicker?.firstDayOfWeek ?? 1, ...(ngDevMode ? [{ debugName: "resolvedFirstDay" }] : /* istanbul ignore next */ []));
2356
2682
  formatSpec = computed(() => resolveDateFormat(this.resolvedLocale(), this.dateFormat() ?? this.config.datePicker?.dateFormat), ...(ngDevMode ? [{ debugName: "formatSpec" }] : /* istanbul ignore next */ []));
2683
+ /** Slot/literal layout for the current mode — single date or doubled range. */
2684
+ layout = computed(() => this.mode() === 'range'
2685
+ ? rangeFieldLayout(this.formatSpec())
2686
+ : singleFieldLayout(this.formatSpec()), ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
2357
2687
  monthNames = computed(() => monthLabels(this.resolvedLocale()), ...(ngDevMode ? [{ debugName: "monthNames" }] : /* istanbul ignore next */ []));
2358
2688
  weekdays = computed(() => weekdayLabels(this.resolvedLocale(), this.resolvedFirstDay()), ...(ngDevMode ? [{ debugName: "weekdays" }] : /* istanbul ignore next */ []));
2359
2689
  /** Full weekday names for the grid column headers' accessible names. */
@@ -2489,12 +2819,13 @@ class DatePickerComponent extends DsControlValueAccessor {
2489
2819
  : rangeMask(this.formatSpec()), ...(ngDevMode ? [{ debugName: "fieldPlaceholder" }] : /* istanbul ignore next */ []));
2490
2820
  /** `size` attribute so the field hugs its mask width instead of stretching.
2491
2821
  * +1 covers `size` under-counting the mask's wide glyphs (M/D/Y), which
2492
- * otherwise clip the last chars of the longer range mask. Digits render with
2493
- * `tabular-nums` so the width never shifts as you type. */
2822
+ * otherwise clip the last chars of the longer range mask. The field's
2823
+ * `font-family: var(--font-mono)` keeps every glyph equal width, so the
2824
+ * width never shifts as you type. */
2494
2825
  fieldSize = computed(() => this.fieldPlaceholder().length + 1, ...(ngDevMode ? [{ debugName: "fieldSize" }] : /* istanbul ignore next */ []));
2495
- /** Still-empty tail of the mask, kept visible as a ghost while typing so the
2496
- * format never disappears (after "12/" the field reads "12/DD/YYYY"). */
2497
- ghostRemainder = computed(() => this.fieldPlaceholder().slice(this.fieldText().length), ...(ngDevMode ? [{ debugName: "ghostRemainder" }] : /* istanbul ignore next */ []));
2826
+ /** Per-slot overlay runs: digits at normal weight, unfilled positions
2827
+ * (format letters or `_` padding) muted — see displayParts(). */
2828
+ displaySlots = computed(() => displayParts(parseFieldText(this.fieldText(), this.layout()), this.layout()), ...(ngDevMode ? [{ debugName: "displaySlots" }] : /* istanbul ignore next */ []));
2498
2829
  // ---- Month / year grid pickers in the calendar header ----
2499
2830
  monthMenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "monthMenuOpen" }] : /* istanbul ignore next */ []));
2500
2831
  yearMenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "yearMenuOpen" }] : /* istanbul ignore next */ []));
@@ -2683,14 +3014,22 @@ class DatePickerComponent extends DsControlValueAccessor {
2683
3014
  ]);
2684
3015
  const cfg = {
2685
3016
  positionStrategy,
2686
- hasBackdrop: true,
2687
- backdropClass: 'cdk-overlay-transparent-backdrop',
3017
+ hasBackdrop: false,
2688
3018
  panelClass: 'ds-overlay-pane',
2689
3019
  scrollStrategy: this.overlay.scrollStrategies.reposition(),
2690
3020
  };
2691
3021
  this.overlayRef = this.overlay.create(cfg);
2692
3022
  forwardOverlayTokens(this.overlayRef, this.host.nativeElement, this.panelTokens);
2693
- this.overlayRef.backdropClick().subscribe(() => this.close());
3023
+ closeOnOutsidePointer(this.overlayRef, (target) => this.host.nativeElement.contains(target), () => this.close());
3024
+ // No backdrop catches a page scroll, and CDK's scroll strategies don't see a
3025
+ // plain overflow container — so close on any outside scroll ourselves. Sync
3026
+ // state on every detach so a stray CDK detach can't wedge the reopen guard.
3027
+ const removeScrollClose = closeOnScroll(this.overlayRef, () => this.close());
3028
+ this.overlayRef.detachments().subscribe(() => {
3029
+ removeScrollClose();
3030
+ this.overlayRef = null;
3031
+ this.isOpen.set(false);
3032
+ });
2694
3033
  this.overlayRef.keydownEvents().subscribe((event) => {
2695
3034
  if (event.key === 'Escape') {
2696
3035
  event.preventDefault();
@@ -2731,58 +3070,170 @@ class DatePickerComponent extends DsControlValueAccessor {
2731
3070
  this.inputEl().nativeElement.focus();
2732
3071
  }
2733
3072
  }
3073
+ // Intended result of a `beforeinput` segment edit, re-asserted in onFieldInput
3074
+ // when a native mutation slips past a non-cancelable beforeinput (Android).
3075
+ mobileEdit = null;
2734
3076
  onFieldInput(event) {
2735
3077
  if (!this.allowInput()) {
2736
3078
  return;
2737
3079
  }
2738
3080
  const element = event.target;
2739
- const caret = element.selectionStart ?? element.value.length;
2740
- const digitsBeforeCaret = this.countDigits(element.value.slice(0, caret));
2741
- this.commitRaw(element, element.value, digitsBeforeCaret);
3081
+ if (this.mobileEdit) {
3082
+ const { value, caret } = this.mobileEdit;
3083
+ this.mobileEdit = null;
3084
+ // beforeinput already applied the segment edit; overwrite whatever the
3085
+ // native change did with the intended fixed-width value + caret.
3086
+ this.writeBackText(element, value, caret);
3087
+ return;
3088
+ }
3089
+ this.commitRaw(element, element.value);
2742
3090
  }
2743
- /** Backspace/Delete hop over mask separators — only digits are editable. */
3091
+ /** Physical-keyboard editing (desktop): typed digits fill the caret's slot;
3092
+ * Backspace/Delete never shift digits across a separator. Delegates to the
3093
+ * shared segment editor. */
2744
3094
  onFieldKeydown(event) {
2745
3095
  if (!this.allowInput()) {
2746
3096
  return;
2747
3097
  }
2748
- const element = event.target;
2749
- const start = element.selectionStart ?? 0;
2750
- if (event.key === 'Backspace' && start === element.selectionEnd) {
3098
+ const key = event.key;
3099
+ const plain = !event.ctrlKey && !event.metaKey && !event.altKey;
3100
+ const isDigit = key.length === 1 && key >= '0' && key <= '9' && plain;
3101
+ if (key.length === 1 && plain && !isDigit) {
3102
+ // Reject non-numeric characters outright, as typed.
2751
3103
  event.preventDefault();
2752
- const removeIndex = this.countDigits(element.value.slice(0, start)) - 1;
2753
- this.commitRaw(element, this.removeDigit(element.value, removeIndex), removeIndex);
3104
+ return;
2754
3105
  }
2755
- else if (event.key === 'Delete' && start === element.selectionEnd) {
2756
- event.preventDefault();
2757
- const removeIndex = this.countDigits(element.value.slice(0, start));
2758
- this.commitRaw(element, this.removeDigit(element.value, removeIndex), removeIndex);
3106
+ if (!isDigit && key !== 'Backspace' && key !== 'Delete') {
3107
+ return;
3108
+ }
3109
+ event.preventDefault();
3110
+ this.runSegmentEdit(event.target, isDigit ? 'type' : key === 'Backspace' ? 'backspace' : 'delete', isDigit ? key : undefined);
3111
+ }
3112
+ /** Mobile keyboards don't fire a reliable `keydown` (Gboard reports keyCode 229 /
3113
+ * "Unidentified"), so edits are routed here via `beforeinput`'s `inputType` instead.
3114
+ * Android Chrome can also ignore `preventDefault()` here, so the intended result is
3115
+ * stashed and re-asserted in `onFieldInput`; the microtask expires the stash once
3116
+ * preventDefault worked (no following `input` in the same task). */
3117
+ onFieldBeforeInput(event) {
3118
+ if (!this.allowInput()) {
3119
+ return;
3120
+ }
3121
+ const element = event.target;
3122
+ const type = event.inputType;
3123
+ let kind = null;
3124
+ let digit;
3125
+ if (type === 'insertText' && event.data && /^\d$/.test(event.data)) {
3126
+ kind = 'type';
3127
+ digit = event.data;
3128
+ }
3129
+ else if (type === 'deleteContentBackward') {
3130
+ kind = 'backspace';
3131
+ }
3132
+ else if (type === 'deleteContentForward') {
3133
+ kind = 'delete';
3134
+ }
3135
+ else {
3136
+ return;
3137
+ }
3138
+ event.preventDefault();
3139
+ this.runSegmentEdit(element, kind, digit);
3140
+ this.mobileEdit = {
3141
+ value: element.value,
3142
+ caret: element.selectionStart ?? element.value.length,
3143
+ };
3144
+ queueMicrotask(() => (this.mobileEdit = null));
3145
+ }
3146
+ /** Apply one segment edit (type a digit / Backspace / Delete) at the caret or
3147
+ * over the selection, then write the fixed-width value + caret back. A
3148
+ * selection is cleared through the model so `_` placeholders are never
3149
+ * natively erased — only digits are editable. Shared by keydown + beforeinput. */
3150
+ runSegmentEdit(element, kind, digit) {
3151
+ const layout = this.layout();
3152
+ const segments = parseFieldText(element.value, layout);
3153
+ const caret = element.selectionStart ?? element.value.length;
3154
+ const selectionEnd = element.selectionEnd ?? caret;
3155
+ let edit;
3156
+ if (selectionEnd !== caret) {
3157
+ const firstSel = caretToSlot(layout, caret);
3158
+ const lastSel = caretToSlot(layout, selectionEnd);
3159
+ const cleared = segments.slice();
3160
+ for (let index = firstSel.slot; index <= lastSel.slot; index++) {
3161
+ cleared[index] = '';
3162
+ }
3163
+ edit =
3164
+ kind === 'type'
3165
+ ? editType(cleared, layout, firstSel.slot, 0, digit)
3166
+ : { segments: cleared, slot: firstSel.slot, offset: 0 };
3167
+ }
3168
+ else {
3169
+ const { slot, offset } = caretToSlot(layout, caret);
3170
+ edit =
3171
+ kind === 'type'
3172
+ ? editType(segments, layout, slot, offset, digit)
3173
+ : kind === 'backspace'
3174
+ ? editBackspace(segments, layout, slot, offset)
3175
+ : editDelete(segments, layout, slot, offset);
3176
+ }
3177
+ if (!edit) {
3178
+ return;
3179
+ }
3180
+ const text = this.toFieldText(edit.segments, layout);
3181
+ this.applyEditedText(element, text, text ? slotToCaret(layout, edit.slot, edit.offset) : 0);
3182
+ }
3183
+ /** Paste digits into the segment model at the caret slot — never a global
3184
+ * flatten — so existing digits elsewhere in the field survive untouched. */
3185
+ onFieldPaste(event) {
3186
+ if (!this.allowInput()) {
3187
+ return;
3188
+ }
3189
+ event.preventDefault();
3190
+ const element = event.target;
3191
+ const layout = this.layout();
3192
+ const pasted = (event.clipboardData?.getData('text') ?? '').replace(/\D/g, '');
3193
+ if (!pasted) {
3194
+ return;
3195
+ }
3196
+ const segments = parseFieldText(element.value, layout);
3197
+ const caret = element.selectionStart ?? element.value.length;
3198
+ const start = caretToSlot(layout, caret);
3199
+ let result = { segments, slot: start.slot, offset: start.offset };
3200
+ for (const digit of pasted) {
3201
+ result = editType(result.segments, layout, result.slot, result.offset, digit);
2759
3202
  }
3203
+ this.applyEditedText(element, this.toFieldText(result.segments, layout), slotToCaret(layout, result.slot, result.offset));
2760
3204
  }
2761
3205
  countDigits(text) {
2762
3206
  return text.replace(/\D/g, '').length;
2763
3207
  }
2764
- removeDigit(text, index) {
2765
- const digits = text.replace(/\D/g, '');
2766
- if (index < 0 || index >= digits.length) {
2767
- return digits;
2768
- }
2769
- return digits.slice(0, index) + digits.slice(index + 1);
2770
- }
2771
- /** Mask `raw`, force it into the DOM (defeats over-typing), parse and validate. */
2772
- commitRaw(element, raw, targetDigits) {
3208
+ /** Rebuild `raw` as a digit stream (IME / autofill / suggestion fallback —
3209
+ * any `input` event with no preceding handled `beforeinput`), split per slot
3210
+ * by its fixed width, then render fixed-width so it matches the overlay —
3211
+ * empty when no digits remain. */
3212
+ commitRaw(element, raw) {
3213
+ const layout = this.layout();
3214
+ const capacity = layout.slots.reduce((sum, slot) => sum + slot.maxLength, 0);
3215
+ const digits = raw.replace(/\D/g, '').slice(0, capacity);
3216
+ const segments = [];
3217
+ let index = 0;
3218
+ for (const slot of layout.slots) {
3219
+ segments.push(digits.slice(index, index + slot.maxLength));
3220
+ index += slot.maxLength;
3221
+ }
3222
+ const text = this.toFieldText(segments, layout);
3223
+ this.applyEditedText(element, text, this.caretAfterFill(segments, layout));
3224
+ }
3225
+ /** Write masked text + caret into the DOM, then parse and validate it. */
3226
+ applyEditedText(element, text, caret) {
2773
3227
  this.editing = true;
3228
+ this.writeBackText(element, text, caret);
2774
3229
  const spec = this.formatSpec();
2775
3230
  if (this.mode() === 'range') {
2776
- const masked = applyMaskRange(raw, spec);
2777
- this.writeBack(element, masked, targetDigits);
2778
- this.rangeText.set(masked);
2779
- this.applyRangeText(masked, spec, false);
3231
+ this.rangeText.set(text);
3232
+ this.applyRangeText(text, spec, false);
2780
3233
  return;
2781
3234
  }
2782
- const masked = applyMask(raw, spec);
2783
- this.writeBack(element, masked, targetDigits);
2784
- this.inputText.set(masked);
2785
- const parsed = parseDate(masked, spec);
3235
+ this.inputText.set(text);
3236
+ const parsed = parseDate(text, spec);
2786
3237
  if (!parsed) {
2787
3238
  // Incomplete input is not an error yet; a full-but-bad value is caught on blur.
2788
3239
  this.typedInvalid.set(false);
@@ -2808,9 +3259,10 @@ class DatePickerComponent extends DsControlValueAccessor {
2808
3259
  return;
2809
3260
  }
2810
3261
  const text = this.inputText();
2811
- if (!text) {
3262
+ if (this.countDigits(text) === 0) {
2812
3263
  this.typedInvalid.set(false);
2813
3264
  this.value.set(null);
3265
+ this.inputText.set('');
2814
3266
  return;
2815
3267
  }
2816
3268
  const parsed = parseDate(text, spec);
@@ -2823,42 +3275,50 @@ class DatePickerComponent extends DsControlValueAccessor {
2823
3275
  this.typedInvalid.set(true);
2824
3276
  }
2825
3277
  }
2826
- /** Force the DOM value to the mask (over-typed digits can't accumulate) and
2827
- * place the caret after `targetDigits` digits, skipping separators. */
2828
- writeBack(element, masked, targetDigits) {
2829
- if (element.value !== masked) {
2830
- element.value = masked;
3278
+ /** Force the DOM value to `text` (over-typed digits can't accumulate) and
3279
+ * place the caret at `caret`. Setting `value` first parks the caret at the
3280
+ * end, so the explicit range must follow; the later `[value]` binding writes
3281
+ * the same string, which leaves the caret untouched. */
3282
+ writeBackText(element, text, caret) {
3283
+ if (element.value !== text) {
3284
+ element.value = text;
2831
3285
  }
2832
- const caret = this.caretAfterDigits(masked, targetDigits);
2833
3286
  element.setSelectionRange(caret, caret);
2834
3287
  }
2835
- caretAfterDigits(text, digitCount) {
2836
- if (digitCount <= 0) {
2837
- return 0;
2838
- }
2839
- let seen = 0;
2840
- for (let index = 0; index < text.length; index++) {
2841
- if (/\d/.test(text[index])) {
2842
- seen++;
2843
- if (seen === digitCount) {
2844
- let position = index + 1;
2845
- // Park the caret past any separator so the next digit lands cleanly.
2846
- while (position < text.length && !/\d/.test(text[position])) {
2847
- position++;
2848
- }
2849
- return position;
2850
- }
3288
+ /** Caret just past the last digit filled by a flat digit stream (commitRaw's
3289
+ * fallback path) — the first slot short of its max length, or the very end
3290
+ * once every slot is full. Empty segments naturally resolve to 0. */
3291
+ caretAfterFill(segments, layout) {
3292
+ for (let slot = 0; slot < segments.length; slot++) {
3293
+ if (segments[slot].length < layout.slots[slot].maxLength) {
3294
+ return slotToCaret(layout, slot, segments[slot].length);
2851
3295
  }
2852
3296
  }
2853
- return text.length;
3297
+ const last = segments.length - 1;
3298
+ return slotToCaret(layout, last, layout.slots[last].maxLength);
2854
3299
  }
2855
3300
  /** Parse the combined range text, flag malformed segments, commit on blur. */
2856
3301
  applyRangeText(text, spec, commit) {
2857
- const perDate = spec.segments.reduce((sum, seg) => sum + seg.length, 0);
2858
- const digits = text.replace(/\D/g, '').length;
3302
+ if (this.countDigits(text) === 0) {
3303
+ this.rangeInvalid.set(false);
3304
+ this.value.set(null);
3305
+ if (commit) {
3306
+ this.rangeText.set('');
3307
+ }
3308
+ return;
3309
+ }
3310
+ const layout = rangeFieldLayout(spec);
3311
+ const slots = parseFieldText(text, layout);
3312
+ const perDate = spec.segments.length;
3313
+ const startFilled = slots
3314
+ .slice(0, perDate)
3315
+ .every((seg, i) => seg.length === spec.segments[i].length);
3316
+ const endFilled = slots
3317
+ .slice(perDate, perDate * 2)
3318
+ .every((seg, i) => seg.length === spec.segments[i].length);
2859
3319
  const [start, end] = parseDateRange(text, spec);
2860
- const startBad = digits >= perDate && (!start || this.isDayDisabled(start));
2861
- const endBad = digits >= perDate * 2 && (!end || this.isDayDisabled(end));
3320
+ const startBad = startFilled && (!start || this.isDayDisabled(start));
3321
+ const endBad = endFilled && (!end || this.isDayDisabled(end));
2862
3322
  this.rangeInvalid.set(startBad || endBad);
2863
3323
  if (start && end && !startBad && !endBad) {
2864
3324
  const ordered = start.getTime() <= end.getTime() ? [start, end] : [end, start];
@@ -2951,7 +3411,7 @@ class DatePickerComponent extends DsControlValueAccessor {
2951
3411
  useExisting: forwardRef(() => DatePickerComponent),
2952
3412
  multi: true,
2953
3413
  },
2954
- ], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n <!-- Whole-field click opens the panel; keyboard access is on the inner input\n (aria-haspopup + ArrowDown), so the wrapper needs no key handler of its own. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n #anchor\n [class]=\"triggerClasses()\"\n (click)=\"onFieldClick()\"\n >\n <span class=\"input-wrap\">\n <input\n #inputEl\n type=\"text\"\n class=\"date-input\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [class.masked]=\"allowInput()\"\n [value]=\"fieldText()\"\n [attr.size]=\"fieldSize()\"\n [attr.placeholder]=\"fieldPlaceholder()\"\n [readOnly]=\"!allowInput()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalid() || typedInvalid() || rangeInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (input)=\"onFieldInput($event)\"\n (blur)=\"onFieldBlur()\"\n (keydown)=\"onFieldKeydown($event)\"\n (keydown.arrowdown)=\"open(true); $event.preventDefault()\"\n />\n\n <!-- Ghost mask: the typed part mirrored transparently to reserve width,\n then the unfilled tail in the placeholder colour. Monospace font\n keeps letters and digits equal width, so the tail never shifts as\n digits replace the M/D/Y placeholders. aria-hidden \u2014 the real input\n carries the value and (via placeholder) the format. -->\n @if (allowInput()) {\n <!-- Whitespace-tight on purpose: the ghost paints with `white-space:\n pre`, so the mirrored content must hug its tags or stray spaces\n would render and knock the tail out of alignment. -->\n <!-- eslint-disable ds/template/element-content-newline, ds/template/sibling-blank-line -->\n <span\n class=\"mask-ghost\"\n aria-hidden=\"true\"\n >\n <span class=\"filled\">{{ fieldText() }}</span>\n <span class=\"rest\">{{ ghostRemainder() }}</span>\n </span>\n <!-- eslint-enable ds/template/element-content-newline, ds/template/sibling-blank-line -->\n }\n </span>\n\n <button\n type=\"button\"\n class=\"calendar-toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (click)=\"open(true); $event.stopPropagation()\"\n >\n <ds-icon\n name=\"calendar\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <ds-field-message\n [text]=\"messageText()\"\n [state]=\"messageState()\"\n [messageId]=\"hintId()\"\n />\n</div>\n\n<ng-template #panel>\n <div\n class=\"calendar\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Choose date\"\n cdkTrapFocus\n [id]=\"panelId\"\n [class.has-presets]=\"presets().length > 0\"\n (click)=\"closeMenus()\"\n >\n <span\n class=\"visually-hidden\"\n aria-live=\"polite\"\n >\n {{ monthYearLabel() }}\n </span>\n\n <div class=\"calendar-body\">\n <div class=\"head\">\n <span\n class=\"period\"\n [id]=\"captionId\"\n >\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"monthMenuOpen()\"\n (click)=\"toggleMonthMenu($event)\"\n >\n {{ monthNames()[viewMonthIndex()] }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (monthMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select month\"\n >\n @for (name of monthNames(); track $index) {\n <button\n type=\"button\"\n class=\"picker-cell\"\n [class.selected]=\"$index === viewMonthIndex()\"\n [attr.aria-label]=\"name\"\n [attr.aria-current]=\"$index === viewMonthIndex() ? 'true' : null\"\n (click)=\"selectMonth($index, $event)\"\n >\n {{ name.slice(0, 3) }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"yearMenuOpen()\"\n (click)=\"toggleYearMenu($event)\"\n >\n {{ viewYear() }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (yearMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div class=\"picker-head\">\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Previous years\"\n [disabled]=\"!canPrevYearPage()\"\n (click)=\"prevYearPage($event)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n />\n </button>\n\n <span class=\"picker-range\">\n {{ yearRangeLabel() }}\n </span>\n\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Next years\"\n [disabled]=\"!canNextYearPage()\"\n (click)=\"nextYearPage($event)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n />\n </button>\n </div>\n\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select year\"\n >\n @for (year of yearsOnPage(); track year) {\n <button\n type=\"button\"\n class=\"picker-cell year-cell\"\n [class.selected]=\"year === viewYear()\"\n [attr.aria-current]=\"year === viewYear() ? 'true' : null\"\n (click)=\"selectYear(year, $event)\"\n >\n {{ year }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n </span>\n\n <span class=\"nav\">\n <button\n type=\"button\"\n (click)=\"prevMonth()\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n <button\n type=\"button\"\n (click)=\"nextMonth()\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </span>\n </div>\n\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-labelledby]=\"captionId\"\n >\n <div\n class=\"dow-row\"\n role=\"row\"\n >\n @for (dow of weekdays(); track $index) {\n <span\n class=\"dow\"\n role=\"columnheader\"\n [attr.aria-label]=\"weekdaysFull()[$index]\"\n >\n {{ dow }}\n </span>\n }\n </div>\n\n @for (week of weeksGrid(); track $index) {\n <div\n class=\"week\"\n role=\"row\"\n >\n @for (cell of week; track $index) {\n <ds-calendar-day\n [muted]=\"!cell.inMonth\"\n [today]=\"cell.isToday\"\n [selected]=\"cell.isSelected\"\n [inRange]=\"cell.inRange\"\n [rangeStart]=\"cell.isRangeStart\"\n [rangeEnd]=\"cell.isRangeEnd\"\n [disabled]=\"cell.isDisabled\"\n [dataDay]=\"dayKey(cell.date)\"\n [tabIndex]=\"isFocusDay(cell) ? 0 : -1\"\n [ariaLabel]=\"dayLabel(cell)\"\n (daySelected)=\"selectDay(cell)\"\n (dayKeydown)=\"onGridKeydown($event, cell)\"\n >\n {{ cell.day }}\n </ds-calendar-day>\n }\n </div>\n }\n </div>\n </div>\n\n @if (presets().length > 0) {\n <div class=\"presets\">\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"preset-btn\"\n [disabled]=\"isPresetDisabled(preset)\"\n (click)=\"applyPreset(preset); $event.stopPropagation()\"\n >\n {{ preset.label }}\n </button>\n }\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_date-picker-focus-shadow: var(--ds-date-picker-focus-shadow, var(--ds-control-focus-shadow));--_date-picker-trigger-bg-color: var(--ds-date-picker-trigger-bg-color, var(--surface-default));--_date-picker-trigger-border-color: var(--ds-date-picker-trigger-border-color, var(--border-default));--_date-picker-trigger-label-color: var(--ds-date-picker-trigger-label-color, var(--text-primary));--_date-picker-required-color: var(--ds-date-picker-required-color, var(--error));--_date-picker-placeholder-color: var(--ds-date-picker-placeholder-color, var(--text-tertiary));display:block;width:fit-content;max-width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap);width:100%}.field .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-secondary);display:flex;align-items:center;gap:var(--space-1)}.field .label .req{color:var(--_date-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_date-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_date-picker-trigger-border-color);border-radius:var(--radius-md);padding:0 var(--space-3);height:var(--hit-cozy);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-trigger-label-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}.trigger:focus-visible,.trigger:focus-within{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.trigger.sm{height:var(--hit-min);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{height:var(--field-h-lg);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.error{background:var(--error-subtitle);border-color:var(--error)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;opacity:var(--opacity-muted)}.input-wrap{position:relative;display:inline-flex;align-items:center}.mask-ghost{position:absolute;inset:0;display:flex;align-items:center;font:inherit;font-family:var(--font-mono);white-space:pre;pointer-events:none;overflow:hidden}.mask-ghost .filled{color:transparent}.mask-ghost .rest{color:var(--_date-picker-placeholder-color)}.date-input{width:auto;border:none;background:transparent;color:inherit;font:inherit;font-family:var(--font-mono);padding:0;outline:none}.date-input::placeholder{color:var(--_date-picker-placeholder-color)}.date-input.masked::placeholder{color:transparent}.date-input:read-only{cursor:pointer}.date-input:disabled{cursor:not-allowed}.calendar-toggle{display:inline-flex;align-items:center;border:none;background:transparent;color:var(--icon-default);padding:0;cursor:pointer}.calendar-toggle:disabled{cursor:not-allowed}.calendar{--_date-picker-bg-color: var(--ds-date-picker-bg-color, var(--surface-overlay));--_date-picker-border: var(--ds-date-picker-border, var(--border-default));--_date-picker-shadow: var(--ds-date-picker-shadow, var(--shadow-popover));--_date-picker-day-hover-bg-color: var(--ds-date-picker-day-hover-bg-color, var(--surface-secondary));--_date-picker-day-today-label-color: var(--ds-date-picker-day-today-label-color, var(--accent));--_date-picker-day-selected-bg-color: var(--ds-date-picker-day-selected-bg-color, var(--accent));--_date-picker-day-selected-bg-color-hover: var(--ds-date-picker-day-selected-bg-color-hover, var(--accent-hover));--_date-picker-day-selected-label-color: var(--ds-date-picker-day-selected-label-color, var(--accent-on));--_date-picker-day-range-bg-color: var(--ds-date-picker-day-range-bg-color, var(--accent-subtitle));--_date-picker-day-range-label-color: var(--ds-date-picker-day-range-label-color, var(--accent-strong));--_date-picker-day-disabled-label-color: var(--ds-date-picker-day-disabled-label-color, var(--text-disabled));--_date-picker-day-label-color: var(--ds-date-picker-day-label-color, var(--text-primary));--_date-picker-day-muted-label-color: var(--ds-date-picker-day-muted-label-color, var(--text-muted));--_date-picker-weekday-color: var(--ds-date-picker-weekday-color, var(--text-tertiary));--_date-picker-header-label-color: var(--ds-date-picker-header-label-color, var(--text-primary));--_date-picker-nav-icon-color: var(--ds-date-picker-nav-icon-color, var(--icon-default));--_date-picker-width: var(--ds-date-picker-width, var(--date-picker-w));background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-lg);box-shadow:var(--_date-picker-shadow);padding:var(--space-3);width:var(--_date-picker-width)}.calendar .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-2)}.calendar .period{display:flex;gap:var(--space-1)}.calendar .period-item{position:relative}.calendar .period-trigger{display:inline-flex;align-items:center;gap:var(--space-1);border:0;background:transparent;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color);cursor:pointer}.calendar .period-trigger:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .period-trigger:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-menu{position:absolute;top:calc(100% + var(--space-1));left:0;z-index:1;padding:var(--space-2);width:max-content;min-width:100%;background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-md);box-shadow:var(--_date-picker-shadow)}.calendar .picker-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}.calendar .picker-head .picker-nav{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .picker-head .picker-nav:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-head .picker-nav:disabled{opacity:var(--opacity-muted);cursor:not-allowed}.calendar .picker-head .picker-range{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color)}.calendar .picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-1)}.calendar .picker-cell{border:0;background:transparent;padding:var(--space-1-5) var(--space-2);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:center;white-space:nowrap}.calendar .picker-cell:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-cell:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-cell.selected{background-color:var(--_date-picker-day-selected-bg-color);color:var(--_date-picker-day-selected-label-color);font-weight:var(--font-weight-bold)}.calendar .nav{display:flex;gap:var(--space-1)}.calendar .nav button{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .nav button:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--date-picker-cell-gap)}.calendar .dow-row,.calendar .week{display:contents}.calendar .dow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);text-align:center;padding:var(--space-1) 0;color:var(--_date-picker-weekday-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider)}.calendar.has-presets{display:flex;flex-direction:row;gap:var(--space-3);width:auto}.calendar.has-presets .calendar-body{flex:0 0 var(--_date-picker-width);width:var(--_date-picker-width)}.calendar .calendar-body{display:flex;flex-direction:column}.calendar .presets{display:flex;flex-direction:column;gap:var(--space-1);border-left:var(--border-width-default) solid var(--_date-picker-border);padding-left:var(--space-3);min-width:8.5rem}.calendar .preset-btn{display:flex;align-items:center;width:100%;min-height:var(--hit-min);border:0;background:transparent;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:left;white-space:nowrap}.calendar .preset-btn:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .preset-btn:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .preset-btn:disabled{color:var(--_date-picker-day-disabled-label-color);cursor:not-allowed}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: CalendarDayComponent, selector: "ds-calendar-day", inputs: ["selected", "inRange", "rangeStart", "rangeEnd", "today", "muted", "disabled", "dataDay", "tabIndex", "ariaLabel"], outputs: ["daySelected", "dayKeydown"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
3414
+ ], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n <!-- Whole-field click opens the panel; keyboard access is on the inner input\n (aria-haspopup + ArrowDown), so the wrapper needs no key handler of its own. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n #anchor\n [class]=\"triggerClasses()\"\n (click)=\"onFieldClick()\"\n >\n <span class=\"input-wrap\">\n <input\n #inputEl\n type=\"text\"\n class=\"date-input\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [class.masked]=\"allowInput()\"\n [value]=\"fieldText()\"\n [attr.size]=\"fieldSize()\"\n [readOnly]=\"!allowInput()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalid() || typedInvalid() || rangeInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-placeholder]=\"fieldPlaceholder()\"\n (beforeinput)=\"onFieldBeforeInput($event)\"\n (input)=\"onFieldInput($event)\"\n (paste)=\"onFieldPaste($event)\"\n (blur)=\"onFieldBlur()\"\n (keydown)=\"onFieldKeydown($event)\"\n (keydown.arrowdown)=\"open(true); $event.preventDefault()\"\n />\n\n <!-- Per-slot overlay: the real input is transparent (see .masked in the\n SCSS), so this paints every glyph \u2014 digits at normal weight, unfilled\n positions muted. Monospace font keeps letters and digits equal\n width, so glyphs stay aligned 1:1 with the invisible input's caret. -->\n @if (allowInput()) {\n <!-- Whitespace-tight on purpose: the overlay paints with `white-space:\n pre`, so it must hug its tags or stray whitespace would render\n and shift later glyphs out of alignment. -->\n <!-- eslint-disable ds/template/element-content-newline -->\n <span\n class=\"mask-ghost\"\n aria-hidden=\"true\"\n >@for (part of displaySlots(); track $index) {<span\n [class.muted]=\"part.muted\"\n >{{ part.text }}</span\n >}</span\n >\n <!-- eslint-enable ds/template/element-content-newline -->\n }\n </span>\n\n <button\n type=\"button\"\n class=\"calendar-toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (click)=\"open(true); $event.stopPropagation()\"\n >\n <ds-icon\n name=\"calendar\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <ds-field-message\n [text]=\"messageText()\"\n [state]=\"messageState()\"\n [messageId]=\"hintId()\"\n />\n</div>\n\n<ng-template #panel>\n <div\n class=\"calendar\"\n role=\"dialog\"\n aria-label=\"Choose date\"\n cdkTrapFocus\n [id]=\"panelId\"\n [class.has-presets]=\"presets().length > 0\"\n (click)=\"closeMenus()\"\n >\n <span\n class=\"visually-hidden\"\n aria-live=\"polite\"\n >\n {{ monthYearLabel() }}\n </span>\n\n <div class=\"calendar-body\">\n <div class=\"head\">\n <span\n class=\"period\"\n [id]=\"captionId\"\n >\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"monthMenuOpen()\"\n (click)=\"toggleMonthMenu($event)\"\n >\n {{ monthNames()[viewMonthIndex()] }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (monthMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select month\"\n >\n @for (name of monthNames(); track $index) {\n <button\n type=\"button\"\n class=\"picker-cell\"\n [class.selected]=\"$index === viewMonthIndex()\"\n [attr.aria-label]=\"name\"\n [attr.aria-current]=\"$index === viewMonthIndex() ? 'true' : null\"\n (click)=\"selectMonth($index, $event)\"\n >\n {{ name.slice(0, 3) }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"yearMenuOpen()\"\n (click)=\"toggleYearMenu($event)\"\n >\n {{ viewYear() }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (yearMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div class=\"picker-head\">\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Previous years\"\n [disabled]=\"!canPrevYearPage()\"\n (click)=\"prevYearPage($event)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n />\n </button>\n\n <span class=\"picker-range\">\n {{ yearRangeLabel() }}\n </span>\n\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Next years\"\n [disabled]=\"!canNextYearPage()\"\n (click)=\"nextYearPage($event)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n />\n </button>\n </div>\n\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select year\"\n >\n @for (year of yearsOnPage(); track year) {\n <button\n type=\"button\"\n class=\"picker-cell year-cell\"\n [class.selected]=\"year === viewYear()\"\n [attr.aria-current]=\"year === viewYear() ? 'true' : null\"\n (click)=\"selectYear(year, $event)\"\n >\n {{ year }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n </span>\n\n <span class=\"nav\">\n <button\n type=\"button\"\n (click)=\"prevMonth()\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n <button\n type=\"button\"\n (click)=\"nextMonth()\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </span>\n </div>\n\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-labelledby]=\"captionId\"\n >\n <div\n class=\"dow-row\"\n role=\"row\"\n >\n @for (dow of weekdays(); track $index) {\n <span\n class=\"dow\"\n role=\"columnheader\"\n [attr.aria-label]=\"weekdaysFull()[$index]\"\n >\n {{ dow }}\n </span>\n }\n </div>\n\n @for (week of weeksGrid(); track $index) {\n <div\n class=\"week\"\n role=\"row\"\n >\n @for (cell of week; track $index) {\n <ds-calendar-day\n [muted]=\"!cell.inMonth\"\n [today]=\"cell.isToday\"\n [selected]=\"cell.isSelected\"\n [inRange]=\"cell.inRange\"\n [rangeStart]=\"cell.isRangeStart\"\n [rangeEnd]=\"cell.isRangeEnd\"\n [disabled]=\"cell.isDisabled\"\n [dataDay]=\"dayKey(cell.date)\"\n [tabIndex]=\"isFocusDay(cell) ? 0 : -1\"\n [ariaLabel]=\"dayLabel(cell)\"\n (daySelected)=\"selectDay(cell)\"\n (dayKeydown)=\"onGridKeydown($event, cell)\"\n >\n {{ cell.day }}\n </ds-calendar-day>\n }\n </div>\n }\n </div>\n </div>\n\n @if (presets().length > 0) {\n <div class=\"presets\">\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"preset-btn\"\n [disabled]=\"isPresetDisabled(preset)\"\n (click)=\"applyPreset(preset); $event.stopPropagation()\"\n >\n {{ preset.label }}\n </button>\n }\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_date-picker-focus-shadow: var(--ds-date-picker-focus-shadow, var(--ds-control-focus-shadow));--_date-picker-trigger-bg-color: var(--ds-date-picker-trigger-bg-color, var(--surface-default));--_date-picker-trigger-border-color: var(--ds-date-picker-trigger-border-color, var(--border-default));--_date-picker-trigger-label-color: var(--ds-date-picker-trigger-label-color, var(--text-primary));--_date-picker-required-color: var(--ds-date-picker-required-color, var(--error));--_date-picker-placeholder-color: var(--ds-date-picker-placeholder-color, var(--text-tertiary));display:block;width:fit-content;max-width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap);width:100%}.field .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-secondary);display:flex;align-items:center;gap:var(--space-1)}.field .label .req{color:var(--_date-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_date-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_date-picker-trigger-border-color);border-radius:var(--radius-md);padding:0 var(--space-3);height:var(--hit-cozy);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-trigger-label-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}.trigger:focus-visible,.trigger:focus-within{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.trigger.sm{height:var(--hit-min);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{height:var(--field-h-lg);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.error{background:var(--error-subtitle);border-color:var(--error)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;opacity:var(--opacity-muted)}.input-wrap{position:relative;display:inline-flex;align-items:center}.mask-ghost{position:absolute;inset:0;display:flex;align-items:center;font:inherit;font-family:var(--font-mono);white-space:pre;pointer-events:none;overflow:hidden}.mask-ghost .muted{color:var(--_date-picker-placeholder-color)}.date-input{width:auto;border:none;background:transparent;color:inherit;font:inherit;font-family:var(--font-mono);padding:0;outline:none}.date-input.masked{color:transparent;caret-color:var(--_date-picker-trigger-label-color)}.date-input:read-only{cursor:pointer}.date-input:disabled{cursor:not-allowed}.calendar-toggle{display:inline-flex;align-items:center;border:none;background:transparent;color:var(--icon-default);padding:0;cursor:pointer}.calendar-toggle:disabled{cursor:not-allowed}.calendar{--_date-picker-bg-color: var(--ds-date-picker-bg-color, var(--surface-overlay));--_date-picker-border: var(--ds-date-picker-border, var(--border-default));--_date-picker-shadow: var(--ds-date-picker-shadow, var(--shadow-popover));--_date-picker-day-hover-bg-color: var(--ds-date-picker-day-hover-bg-color, var(--surface-secondary));--_date-picker-day-today-label-color: var(--ds-date-picker-day-today-label-color, var(--accent));--_date-picker-day-selected-bg-color: var(--ds-date-picker-day-selected-bg-color, var(--accent));--_date-picker-day-selected-bg-color-hover: var(--ds-date-picker-day-selected-bg-color-hover, var(--accent-hover));--_date-picker-day-selected-label-color: var(--ds-date-picker-day-selected-label-color, var(--accent-on));--_date-picker-day-range-bg-color: var(--ds-date-picker-day-range-bg-color, var(--accent-subtitle));--_date-picker-day-range-label-color: var(--ds-date-picker-day-range-label-color, var(--accent-strong));--_date-picker-day-disabled-label-color: var(--ds-date-picker-day-disabled-label-color, var(--text-disabled));--_date-picker-day-label-color: var(--ds-date-picker-day-label-color, var(--text-primary));--_date-picker-day-muted-label-color: var(--ds-date-picker-day-muted-label-color, var(--text-muted));--_date-picker-weekday-color: var(--ds-date-picker-weekday-color, var(--text-tertiary));--_date-picker-header-label-color: var(--ds-date-picker-header-label-color, var(--text-primary));--_date-picker-nav-icon-color: var(--ds-date-picker-nav-icon-color, var(--icon-default));--_date-picker-width: var(--ds-date-picker-width, var(--date-picker-w));background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-lg);box-shadow:var(--_date-picker-shadow);padding:var(--space-3);width:var(--_date-picker-width)}.calendar .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-2)}.calendar .period{display:flex;gap:var(--space-1)}.calendar .period-item{position:relative}.calendar .period-trigger{display:inline-flex;align-items:center;gap:var(--space-1);border:0;background:transparent;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color);cursor:pointer}.calendar .period-trigger:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .period-trigger:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-menu{position:absolute;top:calc(100% + var(--space-1));left:0;z-index:1;padding:var(--space-2);width:max-content;min-width:100%;background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-md);box-shadow:var(--_date-picker-shadow)}.calendar .picker-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}.calendar .picker-head .picker-nav{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .picker-head .picker-nav:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-head .picker-nav:disabled{opacity:var(--opacity-muted);cursor:not-allowed}.calendar .picker-head .picker-range{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color)}.calendar .picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-1)}.calendar .picker-cell{border:0;background:transparent;padding:var(--space-1-5) var(--space-2);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:center;white-space:nowrap}.calendar .picker-cell:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-cell:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-cell.selected{background-color:var(--_date-picker-day-selected-bg-color);color:var(--_date-picker-day-selected-label-color);font-weight:var(--font-weight-bold)}.calendar .nav{display:flex;gap:var(--space-1)}.calendar .nav button{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .nav button:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--date-picker-cell-gap)}.calendar .dow-row,.calendar .week{display:contents}.calendar .dow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);text-align:center;padding:var(--space-1) 0;color:var(--_date-picker-weekday-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider)}.calendar.has-presets{display:flex;flex-direction:row;gap:var(--space-3);width:auto}.calendar.has-presets .calendar-body{flex:0 0 var(--_date-picker-width);width:var(--_date-picker-width)}.calendar .calendar-body{display:flex;flex-direction:column}.calendar .presets{display:flex;flex-direction:column;gap:var(--space-1);border-left:var(--border-width-default) solid var(--_date-picker-border);padding-left:var(--space-3);min-width:8.5rem}.calendar .preset-btn{display:flex;align-items:center;width:100%;min-height:var(--hit-min);border:0;background:transparent;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:left;white-space:nowrap}.calendar .preset-btn:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .preset-btn:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .preset-btn:disabled{color:var(--_date-picker-day-disabled-label-color);cursor:not-allowed}@media(width<640px){.calendar{max-width:calc(100vw - var(--space-4))}.calendar.has-presets{flex-direction:column;width:100%}.calendar.has-presets .calendar-body{flex:1 1 auto;width:100%}.calendar .presets{border-left:0;padding-left:0;border-top:var(--border-width-default) solid var(--_date-picker-border);padding-top:var(--space-3);min-width:0;width:100%}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: CalendarDayComponent, selector: "ds-calendar-day", inputs: ["selected", "inRange", "rangeStart", "rangeEnd", "today", "muted", "disabled", "dataDay", "tabIndex", "ariaLabel"], outputs: ["daySelected", "dayKeydown"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
2955
3415
  }
2956
3416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DatePickerComponent, decorators: [{
2957
3417
  type: Component,
@@ -2961,7 +3421,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
2961
3421
  useExisting: forwardRef(() => DatePickerComponent),
2962
3422
  multi: true,
2963
3423
  },
2964
- ], template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n <!-- Whole-field click opens the panel; keyboard access is on the inner input\n (aria-haspopup + ArrowDown), so the wrapper needs no key handler of its own. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n #anchor\n [class]=\"triggerClasses()\"\n (click)=\"onFieldClick()\"\n >\n <span class=\"input-wrap\">\n <input\n #inputEl\n type=\"text\"\n class=\"date-input\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [class.masked]=\"allowInput()\"\n [value]=\"fieldText()\"\n [attr.size]=\"fieldSize()\"\n [attr.placeholder]=\"fieldPlaceholder()\"\n [readOnly]=\"!allowInput()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalid() || typedInvalid() || rangeInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (input)=\"onFieldInput($event)\"\n (blur)=\"onFieldBlur()\"\n (keydown)=\"onFieldKeydown($event)\"\n (keydown.arrowdown)=\"open(true); $event.preventDefault()\"\n />\n\n <!-- Ghost mask: the typed part mirrored transparently to reserve width,\n then the unfilled tail in the placeholder colour. Monospace font\n keeps letters and digits equal width, so the tail never shifts as\n digits replace the M/D/Y placeholders. aria-hidden \u2014 the real input\n carries the value and (via placeholder) the format. -->\n @if (allowInput()) {\n <!-- Whitespace-tight on purpose: the ghost paints with `white-space:\n pre`, so the mirrored content must hug its tags or stray spaces\n would render and knock the tail out of alignment. -->\n <!-- eslint-disable ds/template/element-content-newline, ds/template/sibling-blank-line -->\n <span\n class=\"mask-ghost\"\n aria-hidden=\"true\"\n >\n <span class=\"filled\">{{ fieldText() }}</span>\n <span class=\"rest\">{{ ghostRemainder() }}</span>\n </span>\n <!-- eslint-enable ds/template/element-content-newline, ds/template/sibling-blank-line -->\n }\n </span>\n\n <button\n type=\"button\"\n class=\"calendar-toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (click)=\"open(true); $event.stopPropagation()\"\n >\n <ds-icon\n name=\"calendar\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <ds-field-message\n [text]=\"messageText()\"\n [state]=\"messageState()\"\n [messageId]=\"hintId()\"\n />\n</div>\n\n<ng-template #panel>\n <div\n class=\"calendar\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Choose date\"\n cdkTrapFocus\n [id]=\"panelId\"\n [class.has-presets]=\"presets().length > 0\"\n (click)=\"closeMenus()\"\n >\n <span\n class=\"visually-hidden\"\n aria-live=\"polite\"\n >\n {{ monthYearLabel() }}\n </span>\n\n <div class=\"calendar-body\">\n <div class=\"head\">\n <span\n class=\"period\"\n [id]=\"captionId\"\n >\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"monthMenuOpen()\"\n (click)=\"toggleMonthMenu($event)\"\n >\n {{ monthNames()[viewMonthIndex()] }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (monthMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select month\"\n >\n @for (name of monthNames(); track $index) {\n <button\n type=\"button\"\n class=\"picker-cell\"\n [class.selected]=\"$index === viewMonthIndex()\"\n [attr.aria-label]=\"name\"\n [attr.aria-current]=\"$index === viewMonthIndex() ? 'true' : null\"\n (click)=\"selectMonth($index, $event)\"\n >\n {{ name.slice(0, 3) }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"yearMenuOpen()\"\n (click)=\"toggleYearMenu($event)\"\n >\n {{ viewYear() }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (yearMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div class=\"picker-head\">\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Previous years\"\n [disabled]=\"!canPrevYearPage()\"\n (click)=\"prevYearPage($event)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n />\n </button>\n\n <span class=\"picker-range\">\n {{ yearRangeLabel() }}\n </span>\n\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Next years\"\n [disabled]=\"!canNextYearPage()\"\n (click)=\"nextYearPage($event)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n />\n </button>\n </div>\n\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select year\"\n >\n @for (year of yearsOnPage(); track year) {\n <button\n type=\"button\"\n class=\"picker-cell year-cell\"\n [class.selected]=\"year === viewYear()\"\n [attr.aria-current]=\"year === viewYear() ? 'true' : null\"\n (click)=\"selectYear(year, $event)\"\n >\n {{ year }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n </span>\n\n <span class=\"nav\">\n <button\n type=\"button\"\n (click)=\"prevMonth()\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n <button\n type=\"button\"\n (click)=\"nextMonth()\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </span>\n </div>\n\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-labelledby]=\"captionId\"\n >\n <div\n class=\"dow-row\"\n role=\"row\"\n >\n @for (dow of weekdays(); track $index) {\n <span\n class=\"dow\"\n role=\"columnheader\"\n [attr.aria-label]=\"weekdaysFull()[$index]\"\n >\n {{ dow }}\n </span>\n }\n </div>\n\n @for (week of weeksGrid(); track $index) {\n <div\n class=\"week\"\n role=\"row\"\n >\n @for (cell of week; track $index) {\n <ds-calendar-day\n [muted]=\"!cell.inMonth\"\n [today]=\"cell.isToday\"\n [selected]=\"cell.isSelected\"\n [inRange]=\"cell.inRange\"\n [rangeStart]=\"cell.isRangeStart\"\n [rangeEnd]=\"cell.isRangeEnd\"\n [disabled]=\"cell.isDisabled\"\n [dataDay]=\"dayKey(cell.date)\"\n [tabIndex]=\"isFocusDay(cell) ? 0 : -1\"\n [ariaLabel]=\"dayLabel(cell)\"\n (daySelected)=\"selectDay(cell)\"\n (dayKeydown)=\"onGridKeydown($event, cell)\"\n >\n {{ cell.day }}\n </ds-calendar-day>\n }\n </div>\n }\n </div>\n </div>\n\n @if (presets().length > 0) {\n <div class=\"presets\">\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"preset-btn\"\n [disabled]=\"isPresetDisabled(preset)\"\n (click)=\"applyPreset(preset); $event.stopPropagation()\"\n >\n {{ preset.label }}\n </button>\n }\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_date-picker-focus-shadow: var(--ds-date-picker-focus-shadow, var(--ds-control-focus-shadow));--_date-picker-trigger-bg-color: var(--ds-date-picker-trigger-bg-color, var(--surface-default));--_date-picker-trigger-border-color: var(--ds-date-picker-trigger-border-color, var(--border-default));--_date-picker-trigger-label-color: var(--ds-date-picker-trigger-label-color, var(--text-primary));--_date-picker-required-color: var(--ds-date-picker-required-color, var(--error));--_date-picker-placeholder-color: var(--ds-date-picker-placeholder-color, var(--text-tertiary));display:block;width:fit-content;max-width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap);width:100%}.field .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-secondary);display:flex;align-items:center;gap:var(--space-1)}.field .label .req{color:var(--_date-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_date-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_date-picker-trigger-border-color);border-radius:var(--radius-md);padding:0 var(--space-3);height:var(--hit-cozy);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-trigger-label-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}.trigger:focus-visible,.trigger:focus-within{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.trigger.sm{height:var(--hit-min);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{height:var(--field-h-lg);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.error{background:var(--error-subtitle);border-color:var(--error)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;opacity:var(--opacity-muted)}.input-wrap{position:relative;display:inline-flex;align-items:center}.mask-ghost{position:absolute;inset:0;display:flex;align-items:center;font:inherit;font-family:var(--font-mono);white-space:pre;pointer-events:none;overflow:hidden}.mask-ghost .filled{color:transparent}.mask-ghost .rest{color:var(--_date-picker-placeholder-color)}.date-input{width:auto;border:none;background:transparent;color:inherit;font:inherit;font-family:var(--font-mono);padding:0;outline:none}.date-input::placeholder{color:var(--_date-picker-placeholder-color)}.date-input.masked::placeholder{color:transparent}.date-input:read-only{cursor:pointer}.date-input:disabled{cursor:not-allowed}.calendar-toggle{display:inline-flex;align-items:center;border:none;background:transparent;color:var(--icon-default);padding:0;cursor:pointer}.calendar-toggle:disabled{cursor:not-allowed}.calendar{--_date-picker-bg-color: var(--ds-date-picker-bg-color, var(--surface-overlay));--_date-picker-border: var(--ds-date-picker-border, var(--border-default));--_date-picker-shadow: var(--ds-date-picker-shadow, var(--shadow-popover));--_date-picker-day-hover-bg-color: var(--ds-date-picker-day-hover-bg-color, var(--surface-secondary));--_date-picker-day-today-label-color: var(--ds-date-picker-day-today-label-color, var(--accent));--_date-picker-day-selected-bg-color: var(--ds-date-picker-day-selected-bg-color, var(--accent));--_date-picker-day-selected-bg-color-hover: var(--ds-date-picker-day-selected-bg-color-hover, var(--accent-hover));--_date-picker-day-selected-label-color: var(--ds-date-picker-day-selected-label-color, var(--accent-on));--_date-picker-day-range-bg-color: var(--ds-date-picker-day-range-bg-color, var(--accent-subtitle));--_date-picker-day-range-label-color: var(--ds-date-picker-day-range-label-color, var(--accent-strong));--_date-picker-day-disabled-label-color: var(--ds-date-picker-day-disabled-label-color, var(--text-disabled));--_date-picker-day-label-color: var(--ds-date-picker-day-label-color, var(--text-primary));--_date-picker-day-muted-label-color: var(--ds-date-picker-day-muted-label-color, var(--text-muted));--_date-picker-weekday-color: var(--ds-date-picker-weekday-color, var(--text-tertiary));--_date-picker-header-label-color: var(--ds-date-picker-header-label-color, var(--text-primary));--_date-picker-nav-icon-color: var(--ds-date-picker-nav-icon-color, var(--icon-default));--_date-picker-width: var(--ds-date-picker-width, var(--date-picker-w));background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-lg);box-shadow:var(--_date-picker-shadow);padding:var(--space-3);width:var(--_date-picker-width)}.calendar .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-2)}.calendar .period{display:flex;gap:var(--space-1)}.calendar .period-item{position:relative}.calendar .period-trigger{display:inline-flex;align-items:center;gap:var(--space-1);border:0;background:transparent;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color);cursor:pointer}.calendar .period-trigger:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .period-trigger:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-menu{position:absolute;top:calc(100% + var(--space-1));left:0;z-index:1;padding:var(--space-2);width:max-content;min-width:100%;background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-md);box-shadow:var(--_date-picker-shadow)}.calendar .picker-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}.calendar .picker-head .picker-nav{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .picker-head .picker-nav:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-head .picker-nav:disabled{opacity:var(--opacity-muted);cursor:not-allowed}.calendar .picker-head .picker-range{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color)}.calendar .picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-1)}.calendar .picker-cell{border:0;background:transparent;padding:var(--space-1-5) var(--space-2);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:center;white-space:nowrap}.calendar .picker-cell:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-cell:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-cell.selected{background-color:var(--_date-picker-day-selected-bg-color);color:var(--_date-picker-day-selected-label-color);font-weight:var(--font-weight-bold)}.calendar .nav{display:flex;gap:var(--space-1)}.calendar .nav button{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .nav button:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--date-picker-cell-gap)}.calendar .dow-row,.calendar .week{display:contents}.calendar .dow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);text-align:center;padding:var(--space-1) 0;color:var(--_date-picker-weekday-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider)}.calendar.has-presets{display:flex;flex-direction:row;gap:var(--space-3);width:auto}.calendar.has-presets .calendar-body{flex:0 0 var(--_date-picker-width);width:var(--_date-picker-width)}.calendar .calendar-body{display:flex;flex-direction:column}.calendar .presets{display:flex;flex-direction:column;gap:var(--space-1);border-left:var(--border-width-default) solid var(--_date-picker-border);padding-left:var(--space-3);min-width:8.5rem}.calendar .preset-btn{display:flex;align-items:center;width:100%;min-height:var(--hit-min);border:0;background:transparent;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:left;white-space:nowrap}.calendar .preset-btn:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .preset-btn:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .preset-btn:disabled{color:var(--_date-picker-day-disabled-label-color);cursor:not-allowed}\n"] }]
3424
+ ], template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\"\n >\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\"\n >\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\"\n >\n (optional)\n </span>\n }\n </span>\n }\n\n <!-- Whole-field click opens the panel; keyboard access is on the inner input\n (aria-haspopup + ArrowDown), so the wrapper needs no key handler of its own. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n #anchor\n [class]=\"triggerClasses()\"\n (click)=\"onFieldClick()\"\n >\n <span class=\"input-wrap\">\n <input\n #inputEl\n type=\"text\"\n class=\"date-input\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [class.masked]=\"allowInput()\"\n [value]=\"fieldText()\"\n [attr.size]=\"fieldSize()\"\n [readOnly]=\"!allowInput()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalid() || typedInvalid() || rangeInvalid() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-placeholder]=\"fieldPlaceholder()\"\n (beforeinput)=\"onFieldBeforeInput($event)\"\n (input)=\"onFieldInput($event)\"\n (paste)=\"onFieldPaste($event)\"\n (blur)=\"onFieldBlur()\"\n (keydown)=\"onFieldKeydown($event)\"\n (keydown.arrowdown)=\"open(true); $event.preventDefault()\"\n />\n\n <!-- Per-slot overlay: the real input is transparent (see .masked in the\n SCSS), so this paints every glyph \u2014 digits at normal weight, unfilled\n positions muted. Monospace font keeps letters and digits equal\n width, so glyphs stay aligned 1:1 with the invisible input's caret. -->\n @if (allowInput()) {\n <!-- Whitespace-tight on purpose: the overlay paints with `white-space:\n pre`, so it must hug its tags or stray whitespace would render\n and shift later glyphs out of alignment. -->\n <!-- eslint-disable ds/template/element-content-newline -->\n <span\n class=\"mask-ghost\"\n aria-hidden=\"true\"\n >@for (part of displaySlots(); track $index) {<span\n [class.muted]=\"part.muted\"\n >{{ part.text }}</span\n >}</span\n >\n <!-- eslint-enable ds/template/element-content-newline -->\n }\n </span>\n\n <button\n type=\"button\"\n class=\"calendar-toggle\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [disabled]=\"isDisabled()\"\n (click)=\"open(true); $event.stopPropagation()\"\n >\n <ds-icon\n name=\"calendar\"\n [size]=\"16\"\n />\n </button>\n </div>\n\n <ds-field-message\n [text]=\"messageText()\"\n [state]=\"messageState()\"\n [messageId]=\"hintId()\"\n />\n</div>\n\n<ng-template #panel>\n <div\n class=\"calendar\"\n role=\"dialog\"\n aria-label=\"Choose date\"\n cdkTrapFocus\n [id]=\"panelId\"\n [class.has-presets]=\"presets().length > 0\"\n (click)=\"closeMenus()\"\n >\n <span\n class=\"visually-hidden\"\n aria-live=\"polite\"\n >\n {{ monthYearLabel() }}\n </span>\n\n <div class=\"calendar-body\">\n <div class=\"head\">\n <span\n class=\"period\"\n [id]=\"captionId\"\n >\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"monthMenuOpen()\"\n (click)=\"toggleMonthMenu($event)\"\n >\n {{ monthNames()[viewMonthIndex()] }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (monthMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select month\"\n >\n @for (name of monthNames(); track $index) {\n <button\n type=\"button\"\n class=\"picker-cell\"\n [class.selected]=\"$index === viewMonthIndex()\"\n [attr.aria-label]=\"name\"\n [attr.aria-current]=\"$index === viewMonthIndex() ? 'true' : null\"\n (click)=\"selectMonth($index, $event)\"\n >\n {{ name.slice(0, 3) }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n\n <span class=\"period-item\">\n <button\n type=\"button\"\n class=\"period-trigger\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"yearMenuOpen()\"\n (click)=\"toggleYearMenu($event)\"\n >\n {{ viewYear() }}\n <ds-icon\n name=\"chevronDown\"\n [size]=\"12\"\n />\n </button>\n\n @if (yearMenuOpen()) {\n <div\n class=\"picker-menu\"\n (click)=\"$event.stopPropagation()\"\n (keydown.escape)=\"closeMenus()\"\n >\n <div class=\"picker-head\">\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Previous years\"\n [disabled]=\"!canPrevYearPage()\"\n (click)=\"prevYearPage($event)\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n />\n </button>\n\n <span class=\"picker-range\">\n {{ yearRangeLabel() }}\n </span>\n\n <button\n type=\"button\"\n class=\"picker-nav\"\n aria-label=\"Next years\"\n [disabled]=\"!canNextYearPage()\"\n (click)=\"nextYearPage($event)\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n />\n </button>\n </div>\n\n <div\n class=\"picker-grid\"\n role=\"group\"\n aria-label=\"Select year\"\n >\n @for (year of yearsOnPage(); track year) {\n <button\n type=\"button\"\n class=\"picker-cell year-cell\"\n [class.selected]=\"year === viewYear()\"\n [attr.aria-current]=\"year === viewYear() ? 'true' : null\"\n (click)=\"selectYear(year, $event)\"\n >\n {{ year }}\n </button>\n }\n </div>\n </div>\n }\n </span>\n </span>\n\n <span class=\"nav\">\n <button\n type=\"button\"\n (click)=\"prevMonth()\"\n >\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n\n <button\n type=\"button\"\n (click)=\"nextMonth()\"\n >\n <ds-icon\n name=\"chevronRight\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </span>\n </div>\n\n <div\n class=\"grid\"\n role=\"grid\"\n [attr.aria-labelledby]=\"captionId\"\n >\n <div\n class=\"dow-row\"\n role=\"row\"\n >\n @for (dow of weekdays(); track $index) {\n <span\n class=\"dow\"\n role=\"columnheader\"\n [attr.aria-label]=\"weekdaysFull()[$index]\"\n >\n {{ dow }}\n </span>\n }\n </div>\n\n @for (week of weeksGrid(); track $index) {\n <div\n class=\"week\"\n role=\"row\"\n >\n @for (cell of week; track $index) {\n <ds-calendar-day\n [muted]=\"!cell.inMonth\"\n [today]=\"cell.isToday\"\n [selected]=\"cell.isSelected\"\n [inRange]=\"cell.inRange\"\n [rangeStart]=\"cell.isRangeStart\"\n [rangeEnd]=\"cell.isRangeEnd\"\n [disabled]=\"cell.isDisabled\"\n [dataDay]=\"dayKey(cell.date)\"\n [tabIndex]=\"isFocusDay(cell) ? 0 : -1\"\n [ariaLabel]=\"dayLabel(cell)\"\n (daySelected)=\"selectDay(cell)\"\n (dayKeydown)=\"onGridKeydown($event, cell)\"\n >\n {{ cell.day }}\n </ds-calendar-day>\n }\n </div>\n }\n </div>\n </div>\n\n @if (presets().length > 0) {\n <div class=\"presets\">\n @for (preset of presets(); track $index) {\n <button\n type=\"button\"\n class=\"preset-btn\"\n [disabled]=\"isPresetDisabled(preset)\"\n (click)=\"applyPreset(preset); $event.stopPropagation()\"\n >\n {{ preset.label }}\n </button>\n }\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{--_date-picker-focus-shadow: var(--ds-date-picker-focus-shadow, var(--ds-control-focus-shadow));--_date-picker-trigger-bg-color: var(--ds-date-picker-trigger-bg-color, var(--surface-default));--_date-picker-trigger-border-color: var(--ds-date-picker-trigger-border-color, var(--border-default));--_date-picker-trigger-label-color: var(--ds-date-picker-trigger-label-color, var(--text-primary));--_date-picker-required-color: var(--ds-date-picker-required-color, var(--error));--_date-picker-placeholder-color: var(--ds-date-picker-placeholder-color, var(--text-tertiary));display:block;width:fit-content;max-width:100%}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--field-label-gap);width:100%}.field .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-secondary);display:flex;align-items:center;gap:var(--space-1)}.field .label .req{color:var(--_date-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_date-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_date-picker-trigger-border-color);border-radius:var(--radius-md);padding:0 var(--space-3);height:var(--hit-cozy);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-trigger-label-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}.trigger:focus-visible,.trigger:focus-within{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.trigger.sm{height:var(--hit-min);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{height:var(--field-h-lg);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.error{background:var(--error-subtitle);border-color:var(--error)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;opacity:var(--opacity-muted)}.input-wrap{position:relative;display:inline-flex;align-items:center}.mask-ghost{position:absolute;inset:0;display:flex;align-items:center;font:inherit;font-family:var(--font-mono);white-space:pre;pointer-events:none;overflow:hidden}.mask-ghost .muted{color:var(--_date-picker-placeholder-color)}.date-input{width:auto;border:none;background:transparent;color:inherit;font:inherit;font-family:var(--font-mono);padding:0;outline:none}.date-input.masked{color:transparent;caret-color:var(--_date-picker-trigger-label-color)}.date-input:read-only{cursor:pointer}.date-input:disabled{cursor:not-allowed}.calendar-toggle{display:inline-flex;align-items:center;border:none;background:transparent;color:var(--icon-default);padding:0;cursor:pointer}.calendar-toggle:disabled{cursor:not-allowed}.calendar{--_date-picker-bg-color: var(--ds-date-picker-bg-color, var(--surface-overlay));--_date-picker-border: var(--ds-date-picker-border, var(--border-default));--_date-picker-shadow: var(--ds-date-picker-shadow, var(--shadow-popover));--_date-picker-day-hover-bg-color: var(--ds-date-picker-day-hover-bg-color, var(--surface-secondary));--_date-picker-day-today-label-color: var(--ds-date-picker-day-today-label-color, var(--accent));--_date-picker-day-selected-bg-color: var(--ds-date-picker-day-selected-bg-color, var(--accent));--_date-picker-day-selected-bg-color-hover: var(--ds-date-picker-day-selected-bg-color-hover, var(--accent-hover));--_date-picker-day-selected-label-color: var(--ds-date-picker-day-selected-label-color, var(--accent-on));--_date-picker-day-range-bg-color: var(--ds-date-picker-day-range-bg-color, var(--accent-subtitle));--_date-picker-day-range-label-color: var(--ds-date-picker-day-range-label-color, var(--accent-strong));--_date-picker-day-disabled-label-color: var(--ds-date-picker-day-disabled-label-color, var(--text-disabled));--_date-picker-day-label-color: var(--ds-date-picker-day-label-color, var(--text-primary));--_date-picker-day-muted-label-color: var(--ds-date-picker-day-muted-label-color, var(--text-muted));--_date-picker-weekday-color: var(--ds-date-picker-weekday-color, var(--text-tertiary));--_date-picker-header-label-color: var(--ds-date-picker-header-label-color, var(--text-primary));--_date-picker-nav-icon-color: var(--ds-date-picker-nav-icon-color, var(--icon-default));--_date-picker-width: var(--ds-date-picker-width, var(--date-picker-w));background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-lg);box-shadow:var(--_date-picker-shadow);padding:var(--space-3);width:var(--_date-picker-width)}.calendar .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-2)}.calendar .period{display:flex;gap:var(--space-1)}.calendar .period-item{position:relative}.calendar .period-trigger{display:inline-flex;align-items:center;gap:var(--space-1);border:0;background:transparent;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color);cursor:pointer}.calendar .period-trigger:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .period-trigger:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-menu{position:absolute;top:calc(100% + var(--space-1));left:0;z-index:1;padding:var(--space-2);width:max-content;min-width:100%;background-color:var(--_date-picker-bg-color);border:var(--border-width-default) solid var(--_date-picker-border);border-radius:var(--radius-md);box-shadow:var(--_date-picker-shadow)}.calendar .picker-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}.calendar .picker-head .picker-nav{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .picker-head .picker-nav:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-head .picker-nav:disabled{opacity:var(--opacity-muted);cursor:not-allowed}.calendar .picker-head .picker-range{font:var(--font-weight-bold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_date-picker-header-label-color)}.calendar .picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-1)}.calendar .picker-cell{border:0;background:transparent;padding:var(--space-1-5) var(--space-2);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:center;white-space:nowrap}.calendar .picker-cell:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .picker-cell:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .picker-cell.selected{background-color:var(--_date-picker-day-selected-bg-color);color:var(--_date-picker-day-selected-label-color);font-weight:var(--font-weight-bold)}.calendar .nav{display:flex;gap:var(--space-1)}.calendar .nav button{width:var(--date-picker-nav-size);height:var(--date-picker-nav-size);border:0;background:transparent;display:grid;place-items:center;color:var(--_date-picker-nav-icon-color);cursor:pointer;border-radius:var(--radius-sm)}.calendar .nav button:hover{background-color:var(--_date-picker-day-hover-bg-color)}.calendar .grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--date-picker-cell-gap)}.calendar .dow-row,.calendar .week{display:contents}.calendar .dow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);text-align:center;padding:var(--space-1) 0;color:var(--_date-picker-weekday-color);text-transform:uppercase;letter-spacing:var(--letter-spacing-wider)}.calendar.has-presets{display:flex;flex-direction:row;gap:var(--space-3);width:auto}.calendar.has-presets .calendar-body{flex:0 0 var(--_date-picker-width);width:var(--_date-picker-width)}.calendar .calendar-body{display:flex;flex-direction:column}.calendar .presets{display:flex;flex-direction:column;gap:var(--space-1);border-left:var(--border-width-default) solid var(--_date-picker-border);padding-left:var(--space-3);min-width:8.5rem}.calendar .preset-btn{display:flex;align-items:center;width:100%;min-height:var(--hit-min);border:0;background:transparent;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-primary);cursor:pointer;text-align:left;white-space:nowrap}.calendar .preset-btn:hover:not(:disabled){background-color:var(--_date-picker-day-hover-bg-color)}.calendar .preset-btn:focus-visible{outline:none;box-shadow:var(--_date-picker-focus-shadow)}.calendar .preset-btn:disabled{color:var(--_date-picker-day-disabled-label-color);cursor:not-allowed}@media(width<640px){.calendar{max-width:calc(100vw - var(--space-4))}.calendar.has-presets{flex-direction:column;width:100%}.calendar.has-presets .calendar-body{flex:1 1 auto;width:100%}.calendar .presets{border-left:0;padding-left:0;border-top:var(--border-width-default) solid var(--_date-picker-border);padding-top:var(--space-3);min-width:0;width:100%}}\n"] }]
2965
3425
  }], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], minYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "minYear", required: false }] }], maxYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxYear", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDate", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], defaultMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultMonth", required: false }] }], allowInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowInput", required: false }] }], anchor: [{ type: i0.ViewChild, args: ['anchor', { isSignal: true }] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
2966
3426
 
2967
3427
  function pad2(value) {
@@ -3320,18 +3780,31 @@ class TimePickerComponent extends DsControlValueAccessor {
3320
3780
  '--ds-time-picker-border',
3321
3781
  '--ds-time-picker-shadow',
3322
3782
  ];
3783
+ /** Selected time, or `[start, end]` tuple when `mode="range"`. Two-way bound. */
3323
3784
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3785
+ /** Single time or `[start, end]` range picker. */
3324
3786
  mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
3787
+ /** Minute increment shown in the picker columns. */
3325
3788
  minuteStep = input(1, { ...(ngDevMode ? { debugName: "minuteStep" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3789
+ /** Earliest selectable time ("HH:MM"). */
3326
3790
  minTime = input(null, ...(ngDevMode ? [{ debugName: "minTime" }] : /* istanbul ignore next */ []));
3791
+ /** Latest selectable time ("HH:MM"). */
3327
3792
  maxTime = input(null, ...(ngDevMode ? [{ debugName: "maxTime" }] : /* istanbul ignore next */ []));
3793
+ /** Predicate marking individual times unselectable. */
3328
3794
  disabledTime = input(null, ...(ngDevMode ? [{ debugName: "disabledTime" }] : /* istanbul ignore next */ []));
3795
+ /** Trigger height — sm/md/lg. */
3329
3796
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3797
+ /** Disables the picker and blocks all interaction. */
3330
3798
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3799
+ /** Applies error styling and marks the trigger `aria-invalid`. */
3331
3800
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3801
+ /** Helper text shown below the picker. */
3332
3802
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
3803
+ /** Shown in the trigger when no time is set. */
3333
3804
  placeholder = input('--:--', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
3805
+ /** Shows an inline clear button when a value is set — single mode only. */
3334
3806
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3807
+ /** Accessible name for the trigger(s), suffixed "(from)"/"(to)" in range mode. */
3335
3808
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3336
3809
  /** Override the DS-config format for this instance. */
3337
3810
  format = input(null, ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
@@ -3580,8 +4053,11 @@ class BreadcrumbsComponent {
3580
4053
  * Pass an explicit array to opt out of the service (per-page override).
3581
4054
  */
3582
4055
  items = input(null, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
4056
+ /** Icon between crumbs; falls back to `DS_CONFIG.breadcrumbs.separator`, then `chevronRight`. */
3583
4057
  separator = input(null, ...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
4058
+ /** Whether crumbs render as links; falls back to `DS_CONFIG.breadcrumbs.clickable`, then `true`. */
3584
4059
  clickable = input(null, ...(ngDevMode ? [{ debugName: "clickable" }] : /* istanbul ignore next */ []));
4060
+ /** Fires when a clickable crumb with `href` is activated; default navigation is always prevented. */
3585
4061
  navigate = output();
3586
4062
  resolvedItems = computed(() => this.items() ?? this.svc.items(), ...(ngDevMode ? [{ debugName: "resolvedItems" }] : /* istanbul ignore next */ []));
3587
4063
  effectiveSeparator = computed(() => this.separator() ?? this.cfg.breadcrumbs?.separator ?? 'chevronRight', ...(ngDevMode ? [{ debugName: "effectiveSeparator" }] : /* istanbul ignore next */ []));
@@ -3605,7 +4081,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3605
4081
  const SIDENAV = new InjectionToken('SIDENAV');
3606
4082
 
3607
4083
  class SidenavComponent {
4084
+ /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */
3608
4085
  collapsed = input(false, { ...(ngDevMode ? { debugName: "collapsed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4086
+ /** Brand/logo text shown at the top of the rail. */
3609
4087
  brand = input('', ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
3610
4088
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3611
4089
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SidenavComponent, isStandalone: true, selector: "ds-sidenav", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.sidenav": "true", "class.collapsed": "collapsed()" } }, providers: [{ provide: SIDENAV, useExisting: SidenavComponent }], ngImport: i0, template: "@if (brand()) {\n <div class=\"brand\">\n <span class=\"mark\">\n {{ brand().charAt(0) }}\n </span>\n\n <span class=\"brand-name\">\n {{ brand() }}\n </span>\n </div>\n}\n\n<ng-content></ng-content>\n", styles: ["@charset \"UTF-8\";:host{--_sidenav-bg-color: var(--ds-sidenav-bg-color, var(--surface-default));--_sidenav-border: var(--ds-sidenav-border, var(--border-divider));--_sidenav-width: var(--ds-sidenav-width, var(--sidenav-w));--_sidenav-width-collapsed: var(--ds-sidenav-width-collapsed, var(--sidenav-w-collapsed));--_sidenav-mark-bg-color: var(--ds-sidenav-mark-bg-color, var(--accent));--_sidenav-mark-label-color: var(--ds-sidenav-mark-label-color, var(--accent-on));display:flex;flex-direction:column;gap:var(--space-1);width:var(--_sidenav-width);background-color:var(--_sidenav-bg-color);border-right:var(--border-width-default) solid var(--_sidenav-border);padding:var(--space-5);transition:width var(--duration-base) var(--ease-standard)}.brand{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-2) var(--space-6)}.mark{width:var(--sidenav-logo-size);height:var(--sidenav-logo-size);border-radius:var(--radius-md);background-color:var(--_sidenav-mark-bg-color);display:grid;place-items:center;color:var(--_sidenav-mark-label-color);font-size:var(--font-size-s);flex-shrink:0}.brand-name{font:var(--font-weight-extrabold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans)}:host(.collapsed){width:var(--_sidenav-width-collapsed);padding:var(--space-3);align-items:center}:host(.collapsed) .brand{padding:var(--sidenav-pad-brand-y) 0 var(--sidenav-pad-brand-b);justify-content:center}:host(.collapsed) .brand-name{display:none}\n"] });
@@ -3619,15 +4097,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3619
4097
  }], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }] } });
3620
4098
 
3621
4099
  class SidenavGroupComponent {
4100
+ /** Group heading text. */
3622
4101
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
3623
- // Optional group icon (DS IconName). Consumers without a DS icon can project
3624
- // custom content via the `[icon]` slot.
4102
+ /** Optional group icon; omit to project custom content via the `[icon]` slot instead. */
3625
4103
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
3626
- // When true the label/icon row becomes a clickable header that expands /
3627
- // collapses the projected children with a caret rotation.
4104
+ /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */
3628
4105
  expandable = input(false, { ...(ngDevMode ? { debugName: "expandable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3629
- // Two-way bindable open state. Defaults to open (true) so a non-expandable
3630
- // group always shows its items.
4106
+ /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */
3631
4107
  expanded = model(true, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
3632
4108
  toggle() {
3633
4109
  if (!this.expandable()) {
@@ -3644,8 +4120,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3644
4120
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }] } });
3645
4121
 
3646
4122
  class TooltipPanelComponent {
4123
+ /** Tooltip text content. */
3647
4124
  text = input.required(...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
4125
+ /** Side of the trigger the panel is positioned on; also drives the arrow class. */
3648
4126
  placement = input.required(...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
4127
+ /** Element `id`, referenced by the trigger's `aria-describedby`. */
3649
4128
  panelId = input('', ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
3650
4129
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3651
4130
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: TooltipPanelComponent, isStandalone: true, selector: "ds-tooltip-panel", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: true, transformFunction: null }, panelId: { classPropertyName: "panelId", publicName: "panelId", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "attr.id": "panelId()", "class.top": "placement() === 'top'", "class.bottom": "placement() === 'bottom'", "class.left": "placement() === 'left'", "class.right": "placement() === 'right'" } }, ngImport: i0, template: `{{ text() }}`, isInline: true, styles: ["@charset \"UTF-8\";:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--surface-inverted));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--text-inverted));--_tooltip-radius: var(--ds-tooltip-radius, var(--radius-md));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--shadow-2));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host:after{content:\"\";position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);transform:rotate(45deg)}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2);left:50%;margin-left:calc(var(--tooltip-arrow) / -2)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2);top:50%;margin-top:calc(var(--tooltip-arrow) / -2)}\n"] });
@@ -3790,18 +4269,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3790
4269
  }] } });
3791
4270
 
3792
4271
  class SidenavItemComponent {
3793
- // `icon` is optional — consumers without a DS IconName can project a custom
3794
- // icon via the `[icon]` content slot. When both are supplied, the input
3795
- // wins (legacy DS-consumer behaviour).
4272
+ /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */
3796
4273
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4274
+ /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */
3797
4275
  label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4276
+ /** Plain `href` target, used when `routerLink` is not set. */
3798
4277
  href = input('', ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
3799
- // Angular RouterLink accepts both string and array forms — mirror that so
3800
- // consumers can pass dynamic segments (e.g. `['/programs', id, 'overview']`).
4278
+ /** Angular `RouterLink` target — string or array form for dynamic segments. */
3801
4279
  routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
4280
+ /** Applies the active style; also drives `aria-current` when not using `routerLink`. */
3802
4281
  active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4282
+ /** Numeric count shown at the end of the item. */
3803
4283
  badge = input(null, ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
4284
+ /** Shows an alert dot alongside the badge. */
3804
4285
  hasAlert = input(false, { ...(ngDevMode ? { debugName: "hasAlert" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4286
+ /** Disables the item — non-navigable and styled as inactive. */
3805
4287
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3806
4288
  sidenav = inject(SIDENAV, { optional: true });
3807
4289
  /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */
@@ -3844,11 +4326,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3844
4326
  }] });
3845
4327
 
3846
4328
  class PageHeaderComponent {
4329
+ /** Small label shown above the title. */
3847
4330
  eyebrow = input('', ...(ngDevMode ? [{ debugName: "eyebrow" }] : /* istanbul ignore next */ []));
4331
+ /** Page title, rendered as the `h1`. */
3848
4332
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4333
+ /** Supporting line shown under the title. */
3849
4334
  subtitle = input('', ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
4335
+ /** Tightens spacing for dense layouts. */
3850
4336
  compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4337
+ /** Shows a rule under the whole header. */
3851
4338
  divider = input(false, { ...(ngDevMode ? { debugName: "divider" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4339
+ /** Shows a rule under the meta row only. */
3852
4340
  metaDivider = input(false, { ...(ngDevMode ? { debugName: "metaDivider" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3853
4341
  classes = computed(() => {
3854
4342
  const parts = ['page-header'];
@@ -3864,21 +4352,28 @@ class PageHeaderComponent {
3864
4352
  return parts.join(' ');
3865
4353
  }, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3866
4354
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: PageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3867
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: PageHeaderComponent, isStandalone: true, selector: "ds-page-header", inputs: { eyebrow: { classPropertyName: "eyebrow", publicName: "eyebrow", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, metaDivider: { classPropertyName: "metaDivider", publicName: "metaDivider", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<header [class]=\"classes()\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"row title-row\">\n <div class=\"title-block\">\n @if (eyebrow()) {\n <div class=\"eyebrow\">\n {{ eyebrow() }}\n </div>\n }\n\n <div class=\"title-line\">\n @if (title()) {\n <h1 class=\"title\">\n {{ title() }}\n </h1>\n }\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n\n <div class=\"meta\">\n <ng-content select=\"[meta]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n\n <ng-content select=\"[tabs]\"></ng-content>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--text-tertiary));--_page-header-title-text-color: var(--ds-page-header-title-text-color, var(--text-primary));--_page-header-subtitle-text-color: var(--ds-page-header-subtitle-text-color, var(--text-secondary));--_page-header-meta-text-color: var(--ds-page-header-meta-text-color, var(--text-secondary));--_page-header-meta-icon-color: var(--ds-page-header-meta-icon-color, var(--icon-default));--_page-header-crumb-text-color: var(--ds-page-header-crumb-text-color, var(--text-tertiary));--_page-header-crumb-text-color-hover: var(--ds-page-header-crumb-text-color-hover, var(--accent));--_page-header-divider: var(--ds-page-header-divider, var(--border-divider));--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h3));--_page-header-title-gap: var(--ds-page-header-title-gap, var(--space-1-5));display:block}:host(.eyebrow-secondary){--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--secondary-strong))}.page-header{display:flex;flex-direction:column;gap:var(--space-3)}.page-header.with-divider{padding-bottom:var(--space-4);border-bottom:var(--border-width-default) solid var(--_page-header-divider)}.page-header:has(>[tabs]){padding-bottom:0;border-bottom:0}.page-header .row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.page-header .title-block{display:flex;flex-direction:column;gap:var(--_page-header-title-gap);min-width:0;flex:1 1 0;align-self:flex-start}.page-header .eyebrow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;color:var(--_page-header-eyebrow-text-color)}.page-header .title{font:var(--font-weight-extrabold) var(--_page-header-title-fs)/var(--line-height-tight) var(--font-display);color:var(--_page-header-title-text-color);margin:0;letter-spacing:var(--letter-spacing-tight)}.page-header .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.page-header .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-tertiary);min-width:0;flex-wrap:nowrap;overflow:hidden;padding-bottom:var(--space-1)}.page-header .crumb{color:var(--_page-header-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.page-header .crumb:hover{color:var(--_page-header-crumb-text-color-hover)}.page-header .crumb.crumb--current{color:var(--text-primary);font-weight:var(--font-weight-bold);max-width:32ch}.page-header .crumb-sep{color:var(--icon-muted);display:inline-flex;align-items:center}.page-header .subtitle{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_page-header-subtitle-text-color);margin:0}.page-header .actions{display:flex;align-items:flex-end;gap:var(--space-2);flex-shrink:0;align-self:flex-start}.page-header .meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-1-5)}.page-header .meta:not(:has(>*)){display:none}.page-header.with-meta-divider .meta{padding-top:var(--space-2);border-top:var(--border-width-default) solid var(--_page-header-divider)}.page-header .meta-item{display:inline-flex;align-items:center;gap:var(--space-1-5);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);color:var(--_page-header-meta-text-color)}.page-header .meta-item .icon{width:var(--icon-sm);height:var(--icon-sm);color:var(--_page-header-meta-icon-color)}.page-header.compact{--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h4));gap:var(--space-2);padding-bottom:var(--space-3)}@media(width<=720px){.page-header .actions{width:100%}}\n"] });
4355
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: PageHeaderComponent, isStandalone: true, selector: "ds-page-header", inputs: { eyebrow: { classPropertyName: "eyebrow", publicName: "eyebrow", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, metaDivider: { classPropertyName: "metaDivider", publicName: "metaDivider", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<header [class]=\"classes()\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"row title-row\">\n <div class=\"title-block\">\n @if (eyebrow()) {\n <div class=\"eyebrow\">\n {{ eyebrow() }}\n </div>\n }\n\n <div class=\"title-line\">\n @if (title()) {\n <h1 class=\"title\">\n {{ title() }}\n </h1>\n }\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n\n <div class=\"meta\">\n <ng-content select=\"[meta]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n\n <ng-content select=\"[tabs]\"></ng-content>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--text-tertiary));--_page-header-title-text-color: var(--ds-page-header-title-text-color, var(--text-primary));--_page-header-subtitle-text-color: var(--ds-page-header-subtitle-text-color, var(--text-secondary));--_page-header-meta-text-color: var(--ds-page-header-meta-text-color, var(--text-secondary));--_page-header-meta-icon-color: var(--ds-page-header-meta-icon-color, var(--icon-default));--_page-header-crumb-text-color: var(--ds-page-header-crumb-text-color, var(--text-tertiary));--_page-header-crumb-text-color-hover: var(--ds-page-header-crumb-text-color-hover, var(--accent));--_page-header-divider: var(--ds-page-header-divider, var(--border-divider));--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h3));--_page-header-title-gap: var(--ds-page-header-title-gap, var(--space-1-5));display:block}:host(.eyebrow-secondary){--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--secondary-strong))}.page-header{display:flex;flex-direction:column;gap:var(--space-3)}.page-header.with-divider{padding-bottom:var(--space-4);border-bottom:var(--border-width-default) solid var(--_page-header-divider)}.page-header:has(>[tabs]){padding-bottom:0;border-bottom:0}.page-header .row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.page-header .title-block{display:flex;flex-direction:column;gap:var(--_page-header-title-gap);min-width:0;flex:1 1 0;align-self:flex-start}.page-header .eyebrow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;color:var(--_page-header-eyebrow-text-color)}.page-header .title{font:var(--font-weight-extrabold) var(--_page-header-title-fs)/var(--line-height-tight) var(--font-display);color:var(--_page-header-title-text-color);margin:0;letter-spacing:var(--letter-spacing-tight)}.page-header .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.page-header .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-tertiary);min-width:0;flex-wrap:nowrap;overflow:hidden;padding-bottom:var(--space-1)}.page-header .crumb{color:var(--_page-header-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.page-header .crumb:hover{color:var(--_page-header-crumb-text-color-hover)}.page-header .crumb.crumb--current{color:var(--text-primary);font-weight:var(--font-weight-bold);max-width:32ch}.page-header .crumb-sep{color:var(--icon-muted);display:inline-flex;align-items:center}.page-header .subtitle{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_page-header-subtitle-text-color);margin:0}.page-header .actions{display:flex;align-items:flex-end;gap:var(--space-2);flex-shrink:0;align-self:flex-start}@media(width<768px){.page-header .actions{width:100%}}.page-header .meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-1-5)}.page-header .meta:not(:has(>*)){display:none}.page-header.with-meta-divider .meta{padding-top:var(--space-2);border-top:var(--border-width-default) solid var(--_page-header-divider)}.page-header .meta-item{display:inline-flex;align-items:center;gap:var(--space-1-5);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);color:var(--_page-header-meta-text-color)}.page-header .meta-item .icon{width:var(--icon-sm);height:var(--icon-sm);color:var(--_page-header-meta-icon-color)}.page-header.compact{--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h4));gap:var(--space-2);padding-bottom:var(--space-3)}\n"] });
3868
4356
  }
3869
4357
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: PageHeaderComponent, decorators: [{
3870
4358
  type: Component,
3871
- args: [{ selector: 'ds-page-header', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header [class]=\"classes()\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"row title-row\">\n <div class=\"title-block\">\n @if (eyebrow()) {\n <div class=\"eyebrow\">\n {{ eyebrow() }}\n </div>\n }\n\n <div class=\"title-line\">\n @if (title()) {\n <h1 class=\"title\">\n {{ title() }}\n </h1>\n }\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n\n <div class=\"meta\">\n <ng-content select=\"[meta]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n\n <ng-content select=\"[tabs]\"></ng-content>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--text-tertiary));--_page-header-title-text-color: var(--ds-page-header-title-text-color, var(--text-primary));--_page-header-subtitle-text-color: var(--ds-page-header-subtitle-text-color, var(--text-secondary));--_page-header-meta-text-color: var(--ds-page-header-meta-text-color, var(--text-secondary));--_page-header-meta-icon-color: var(--ds-page-header-meta-icon-color, var(--icon-default));--_page-header-crumb-text-color: var(--ds-page-header-crumb-text-color, var(--text-tertiary));--_page-header-crumb-text-color-hover: var(--ds-page-header-crumb-text-color-hover, var(--accent));--_page-header-divider: var(--ds-page-header-divider, var(--border-divider));--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h3));--_page-header-title-gap: var(--ds-page-header-title-gap, var(--space-1-5));display:block}:host(.eyebrow-secondary){--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--secondary-strong))}.page-header{display:flex;flex-direction:column;gap:var(--space-3)}.page-header.with-divider{padding-bottom:var(--space-4);border-bottom:var(--border-width-default) solid var(--_page-header-divider)}.page-header:has(>[tabs]){padding-bottom:0;border-bottom:0}.page-header .row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.page-header .title-block{display:flex;flex-direction:column;gap:var(--_page-header-title-gap);min-width:0;flex:1 1 0;align-self:flex-start}.page-header .eyebrow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;color:var(--_page-header-eyebrow-text-color)}.page-header .title{font:var(--font-weight-extrabold) var(--_page-header-title-fs)/var(--line-height-tight) var(--font-display);color:var(--_page-header-title-text-color);margin:0;letter-spacing:var(--letter-spacing-tight)}.page-header .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.page-header .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-tertiary);min-width:0;flex-wrap:nowrap;overflow:hidden;padding-bottom:var(--space-1)}.page-header .crumb{color:var(--_page-header-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.page-header .crumb:hover{color:var(--_page-header-crumb-text-color-hover)}.page-header .crumb.crumb--current{color:var(--text-primary);font-weight:var(--font-weight-bold);max-width:32ch}.page-header .crumb-sep{color:var(--icon-muted);display:inline-flex;align-items:center}.page-header .subtitle{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_page-header-subtitle-text-color);margin:0}.page-header .actions{display:flex;align-items:flex-end;gap:var(--space-2);flex-shrink:0;align-self:flex-start}.page-header .meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-1-5)}.page-header .meta:not(:has(>*)){display:none}.page-header.with-meta-divider .meta{padding-top:var(--space-2);border-top:var(--border-width-default) solid var(--_page-header-divider)}.page-header .meta-item{display:inline-flex;align-items:center;gap:var(--space-1-5);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);color:var(--_page-header-meta-text-color)}.page-header .meta-item .icon{width:var(--icon-sm);height:var(--icon-sm);color:var(--_page-header-meta-icon-color)}.page-header.compact{--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h4));gap:var(--space-2);padding-bottom:var(--space-3)}@media(width<=720px){.page-header .actions{width:100%}}\n"] }]
4359
+ args: [{ selector: 'ds-page-header', standalone: true, encapsulation: ViewEncapsulation.Emulated, template: "<header [class]=\"classes()\">\n <ng-content select=\"[breadcrumbs]\"></ng-content>\n\n <div class=\"row title-row\">\n <div class=\"title-block\">\n @if (eyebrow()) {\n <div class=\"eyebrow\">\n {{ eyebrow() }}\n </div>\n }\n\n <div class=\"title-line\">\n @if (title()) {\n <h1 class=\"title\">\n {{ title() }}\n </h1>\n }\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n\n <div class=\"meta\">\n <ng-content select=\"[meta]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n </div>\n\n <ng-content select=\"[tabs]\"></ng-content>\n</header>\n", styles: ["@charset \"UTF-8\";:host{--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--text-tertiary));--_page-header-title-text-color: var(--ds-page-header-title-text-color, var(--text-primary));--_page-header-subtitle-text-color: var(--ds-page-header-subtitle-text-color, var(--text-secondary));--_page-header-meta-text-color: var(--ds-page-header-meta-text-color, var(--text-secondary));--_page-header-meta-icon-color: var(--ds-page-header-meta-icon-color, var(--icon-default));--_page-header-crumb-text-color: var(--ds-page-header-crumb-text-color, var(--text-tertiary));--_page-header-crumb-text-color-hover: var(--ds-page-header-crumb-text-color-hover, var(--accent));--_page-header-divider: var(--ds-page-header-divider, var(--border-divider));--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h3));--_page-header-title-gap: var(--ds-page-header-title-gap, var(--space-1-5));display:block}:host(.eyebrow-secondary){--_page-header-eyebrow-text-color: var(--ds-page-header-eyebrow-text-color, var(--secondary-strong))}.page-header{display:flex;flex-direction:column;gap:var(--space-3)}.page-header.with-divider{padding-bottom:var(--space-4);border-bottom:var(--border-width-default) solid var(--_page-header-divider)}.page-header:has(>[tabs]){padding-bottom:0;border-bottom:0}.page-header .row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.page-header .title-block{display:flex;flex-direction:column;gap:var(--_page-header-title-gap);min-width:0;flex:1 1 0;align-self:flex-start}.page-header .eyebrow{font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;color:var(--_page-header-eyebrow-text-color)}.page-header .title{font:var(--font-weight-extrabold) var(--_page-header-title-fs)/var(--line-height-tight) var(--font-display);color:var(--_page-header-title-text-color);margin:0;letter-spacing:var(--letter-spacing-tight)}.page-header .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.page-header .crumbs-trail{display:flex;align-items:center;gap:var(--space-2);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-tertiary);min-width:0;flex-wrap:nowrap;overflow:hidden;padding-bottom:var(--space-1)}.page-header .crumb{color:var(--_page-header-crumb-text-color);text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch;transition:color var(--duration-fast) var(--ease-standard)}.page-header .crumb:hover{color:var(--_page-header-crumb-text-color-hover)}.page-header .crumb.crumb--current{color:var(--text-primary);font-weight:var(--font-weight-bold);max-width:32ch}.page-header .crumb-sep{color:var(--icon-muted);display:inline-flex;align-items:center}.page-header .subtitle{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_page-header-subtitle-text-color);margin:0}.page-header .actions{display:flex;align-items:flex-end;gap:var(--space-2);flex-shrink:0;align-self:flex-start}@media(width<768px){.page-header .actions{width:100%}}.page-header .meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-1-5)}.page-header .meta:not(:has(>*)){display:none}.page-header.with-meta-divider .meta{padding-top:var(--space-2);border-top:var(--border-width-default) solid var(--_page-header-divider)}.page-header .meta-item{display:inline-flex;align-items:center;gap:var(--space-1-5);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);color:var(--_page-header-meta-text-color)}.page-header .meta-item .icon{width:var(--icon-sm);height:var(--icon-sm);color:var(--_page-header-meta-icon-color)}.page-header.compact{--_page-header-title-fs: var(--ds-page-header-title-fs, var(--font-size-h4));gap:var(--space-2);padding-bottom:var(--space-3)}\n"] }]
3872
4360
  }], propDecorators: { eyebrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyebrow", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], metaDivider: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaDivider", required: false }] }] } });
3873
4361
 
3874
4362
  let nextId$5 = 0;
3875
4363
  class ModalCardComponent {
4364
+ /** Card width — sm/md/lg/xl/fullscreen. */
3876
4365
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
4366
+ /** Renders the error styling (icon badge and card accent). */
3877
4367
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4368
+ /** Card title, shown in the header and used for `aria-labelledby`. */
3878
4369
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4370
+ /** Shows the header close button. */
3879
4371
  showClose = input(true, { ...(ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4372
+ /** Icon badge shown next to the title. */
3880
4373
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4374
+ /** ARIA role for the dialog element. */
3881
4375
  dialogRole = input('dialog', ...(ngDevMode ? [{ debugName: "dialogRole" }] : /* istanbul ignore next */ []));
4376
+ /** Fires when the header close button is clicked. */
3882
4377
  closed = output();
3883
4378
  titleId = `ds-modal-title-${++nextId$5}`;
3884
4379
  classes = computed(() => {
@@ -3892,21 +4387,27 @@ class ModalCardComponent {
3892
4387
  this.closed.emit();
3893
4388
  }
3894
4389
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3895
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"dialogRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\"\n>\n <div class=\"header\">\n @if (icon(); as iconName) {\n <span\n class=\"icon-badge\"\n [class.error]=\"error()\"\n >\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\"\n />\n </span>\n }\n\n <h2\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h2>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-height:90vh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
4390
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"dialogRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\"\n>\n <div class=\"header\">\n @if (icon(); as iconName) {\n <span\n class=\"icon-badge\"\n [class.error]=\"error()\"\n >\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\"\n />\n </span>\n }\n\n <h2\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h2>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
3896
4391
  }
3897
4392
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalCardComponent, decorators: [{
3898
4393
  type: Component,
3899
- args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"dialogRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\"\n>\n <div class=\"header\">\n @if (icon(); as iconName) {\n <span\n class=\"icon-badge\"\n [class.error]=\"error()\"\n >\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\"\n />\n </span>\n }\n\n <h2\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h2>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-height:90vh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"] }]
4394
+ args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"dialogRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\"\n>\n <div class=\"header\">\n @if (icon(); as iconName) {\n <span\n class=\"icon-badge\"\n [class.error]=\"error()\"\n >\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\"\n />\n </span>\n }\n\n <h2\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h2>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n aria-label=\"Close dialog\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n >\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"] }]
3900
4395
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogRole", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
3901
4396
 
3902
4397
  class ModalComponent {
3903
4398
  doc = inject(DOCUMENT);
3904
4399
  preview = inject(DsStaticPreview);
4400
+ /** Open state, two-way bound. */
3905
4401
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
4402
+ /** Dialog width — sm/md/lg/xl/fullscreen. */
3906
4403
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
4404
+ /** Renders the error styling on the modal card. */
3907
4405
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4406
+ /** Dialog title, shown in the header and used for `aria-labelledby`. */
3908
4407
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4408
+ /** Fires once the close (leave) animation finishes. */
3909
4409
  closed = output();
4410
+ /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */
3910
4411
  confirmed = output();
3911
4412
  /** When false, clicking the scrim does not close the modal. */
3912
4413
  closeOnBackdrop = input(true, { ...(ngDevMode ? { debugName: "closeOnBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -3917,6 +4418,7 @@ class ModalComponent {
3917
4418
  /** Playing the scrim fade-out leave animation. */
3918
4419
  closing = signal(false, ...(ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []));
3919
4420
  wasOpen = false;
4421
+ closeFallbackTimer = null;
3920
4422
  constructor() {
3921
4423
  // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted
3922
4424
  // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview
@@ -3929,9 +4431,15 @@ class ModalComponent {
3929
4431
  if (isOpen) {
3930
4432
  this.closing.set(false);
3931
4433
  this.rendered.set(true);
4434
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4435
+ this.closeFallbackTimer = null;
3932
4436
  }
3933
4437
  else if (this.wasOpen) {
3934
4438
  this.closing.set(true);
4439
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
4440
+ // may never fire — this synthetic fallback guarantees teardown anyway.
4441
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4442
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
3935
4443
  }
3936
4444
  this.wasOpen = isOpen;
3937
4445
  });
@@ -3947,6 +4455,8 @@ class ModalComponent {
3947
4455
  ngOnDestroy() {
3948
4456
  // Restore body scroll if the host is torn down mid-open.
3949
4457
  this.doc.body.style.overflow = '';
4458
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4459
+ this.closeFallbackTimer = null;
3950
4460
  }
3951
4461
  onClose() {
3952
4462
  if (this.preview.staticPreview()) {
@@ -3958,9 +4468,17 @@ class ModalComponent {
3958
4468
  // Angular scopes @keyframes names under emulated encapsulation, so
3959
4469
  // event.animationName arrives as `_ngcontent-…_modal-out`, not the bare
3960
4470
  // name — match the suffix or teardown never fires and the lock leaks.
3961
- if (!event.animationName.endsWith('modal-out') || !this.closing()) {
4471
+ if (!event.animationName.endsWith('modal-out')) {
3962
4472
  return;
3963
4473
  }
4474
+ this.finishClose();
4475
+ }
4476
+ finishClose() {
4477
+ if (!this.closing()) {
4478
+ return;
4479
+ }
4480
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4481
+ this.closeFallbackTimer = null;
3964
4482
  this.closing.set(false);
3965
4483
  this.rendered.set(false);
3966
4484
  this.closed.emit();
@@ -3981,11 +4499,11 @@ class ModalComponent {
3981
4499
  this.onClose();
3982
4500
  }
3983
4501
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3984
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, hostDirectives: [{ directive: DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (click)=\"onBackdrop($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [error]=\"error()\"\n [title]=\"title()\"\n (closed)=\"onClose()\"\n >\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-height:90vh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "error", "title", "showClose", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
4502
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, hostDirectives: [{ directive: DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (click)=\"onBackdrop($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [error]=\"error()\"\n [title]=\"title()\"\n (closed)=\"onClose()\"\n >\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "error", "title", "showClose", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
3985
4503
  }
3986
4504
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalComponent, decorators: [{
3987
4505
  type: Component,
3988
- args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (click)=\"onBackdrop($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [error]=\"error()\"\n [title]=\"title()\"\n (closed)=\"onClose()\"\n >\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-height:90vh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"] }]
4506
+ args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (click)=\"onBackdrop($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [error]=\"error()\"\n [title]=\"title()\"\n (closed)=\"onClose()\"\n >\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--radius-lg));--_modal-shadow: var(--ds-modal-shadow, var(--shadow-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));display:contents}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation:modal-card-in var(--duration-base) var(--ease-decelerate)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);max-height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--space-4) var(--space-5);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-heading);margin:0;flex:1;min-width:0;color:var(--_modal-title-text-color)}.modal .close{background:none;border:0;cursor:pointer;color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size);display:grid;place-items:center}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .close:active:not(:disabled):not([disabled]):not(.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .body{padding:var(--space-5);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--space-4) var(--space-5);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation:fade-in var(--duration-base) var(--ease-decelerate)}.modal-backdrop.closing{animation:modal-out var(--duration-fast) var(--ease-accelerate) forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-out{to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:scale(.97)}}\n"] }]
3989
4507
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], persistent: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistent", required: false }] }] } });
3990
4508
 
3991
4509
  const MODAL_CONFIRM_DATA = new InjectionToken('MODAL_CONFIRM_DATA');
@@ -4080,13 +4598,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4080
4598
  }] });
4081
4599
 
4082
4600
  class BannerComponent {
4601
+ /** Severity — drives colour, the default icon and the ARIA role/live. */
4083
4602
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
4603
+ /** Optional bold heading above the message. */
4084
4604
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4605
+ /** Show a close button that emits `closed`. */
4085
4606
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4607
+ /** Override the variant's default icon. */
4086
4608
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4609
+ /** Tighter padding, centred items, single-line title. */
4087
4610
  compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4611
+ /** `'stacked'` wraps actions onto their own line; `'row'` keeps them inline. */
4088
4612
  layout = input('stacked', ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
4613
+ /** Coloured accent rail on the leading edge; set false to hide it. */
4089
4614
  accentRail = input(true, { ...(ngDevMode ? { debugName: "accentRail" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4615
+ /** Fires when the user dismisses the banner. */
4090
4616
  closed = output();
4091
4617
  get noRail() {
4092
4618
  return !this.accentRail();
@@ -4144,10 +4670,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4144
4670
  }] } });
4145
4671
 
4146
4672
  class AlertComponent {
4673
+ /** Severity — drives colour, the default icon and the ARIA role/live. */
4147
4674
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
4675
+ /** Optional bold heading above the message. */
4148
4676
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4677
+ /** Show a close button that emits `closed`. */
4149
4678
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4679
+ /** Override the variant's default icon. */
4150
4680
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4681
+ /** Fires when the user dismisses the alert. */
4151
4682
  closed = output();
4152
4683
  get ariaRole() {
4153
4684
  const value = this.variant();
@@ -4189,15 +4720,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4189
4720
  }] } });
4190
4721
 
4191
4722
  class DropzoneComponent {
4723
+ /** Native `accept` attribute — comma-separated MIME types or extensions. */
4192
4724
  accept = input('', ...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
4725
+ /** Allows picking more than one file at once (ignored when `single`). */
4193
4726
  multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4727
+ /** Files shown in the list — the consumer owns upload state and progress. */
4194
4728
  files = model([], ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
4195
4729
  /** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */
4196
4730
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4197
4731
  /** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */
4198
4732
  single = input(false, { ...(ngDevMode ? { debugName: "single" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4199
4733
  dragOver = signal(false, ...(ngDevMode ? [{ debugName: "dragOver" }] : /* istanbul ignore next */ []));
4734
+ /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */
4200
4735
  filesAdded = output();
4736
+ /** Fires when the user removes a file from the list. */
4201
4737
  fileRemoved = output();
4202
4738
  classes = computed(() => {
4203
4739
  const parts = ['dropzone'];
@@ -4292,11 +4828,15 @@ class MenuItemComponent {
4292
4828
  vcr = inject(ViewContainerRef);
4293
4829
  hostElement = inject((ElementRef));
4294
4830
  button = viewChild.required('button');
4831
+ /** Leading icon shown before the projected label. */
4295
4832
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4833
+ /** Disables the item and excludes it from `ds-menu`'s roving-tabindex navigation. */
4296
4834
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4835
+ /** Renders the item in an error/destructive style. */
4297
4836
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4298
4837
  /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */
4299
4838
  submenu = input(null, ...(ngDevMode ? [{ debugName: "submenu" }] : /* istanbul ignore next */ []));
4839
+ /** Fires on click, unless the item is disabled or opens a submenu. */
4300
4840
  pressed = output();
4301
4841
  /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the
4302
4842
  * rest -1. Defaults true so a standalone item (outside ds-menu) stays
@@ -4542,9 +5082,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4542
5082
  }] });
4543
5083
 
4544
5084
  class EmptyStateComponent {
5085
+ /** State — drives the default icon and shows a loading overlay when `'loading'`. */
4545
5086
  variant = input('none', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5087
+ /** Override the variant's default icon. */
4546
5088
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
5089
+ /** Optional heading below the icon. */
4547
5090
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5091
+ /** Optional supporting text below the title. */
4548
5092
  body = input('', ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
4549
5093
  classes = computed(() => {
4550
5094
  const variant = this.variant();
@@ -4579,8 +5123,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4579
5123
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], body: [{ type: i0.Input, args: [{ isSignal: true, alias: "body", required: false }] }] } });
4580
5124
 
4581
5125
  class ProgressComponent {
5126
+ /** Progress 0–100; clamped, and ignored while `indeterminate`. */
4582
5127
  value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
5128
+ /** Colour variant — drives the success/warning/error styling. */
4583
5129
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5130
+ /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */
4584
5131
  indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4585
5132
  /** Accessible name for the progress bar (e.g. "Upload progress"). */
4586
5133
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -4611,8 +5158,11 @@ const ACCORDION = new InjectionToken('ACCORDION');
4611
5158
 
4612
5159
  let nextId$3 = 0;
4613
5160
  class AccordionItemComponent {
5161
+ /** Header text shown in the toggle button. */
4614
5162
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5163
+ /** Open state, two-way bound. */
4615
5164
  expanded = model(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
5165
+ /** Disables the toggle button; state stays as-is. */
4616
5166
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4617
5167
  uid = `ds-accordion-${++nextId$3}`;
4618
5168
  headId = `${this.uid}-head`;
@@ -4680,14 +5230,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4680
5230
  }], propDecorators: { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItemComponent), { isSignal: true }] }] } });
4681
5231
 
4682
5232
  class StepperComponent {
5233
+ /** Step labels, in order — one node is rendered per entry. */
4683
5234
  steps = input([], ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
5235
+ /** Zero-based index of the active step; earlier steps render as completed. */
4684
5236
  current = input(0, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
5237
+ /** Where the step caption sits relative to its node. */
4685
5238
  labelPosition = input('bottom', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
5239
+ /** Layout axis of the stepper. */
4686
5240
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
4687
5241
  /** When true, each step node renders as a button and emits its index on activation. */
4688
5242
  clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4689
5243
  /** Zero-based indices of steps in an error state. Error wins over completed/current/upcoming. */
4690
5244
  errorSteps = input([], ...(ngDevMode ? [{ debugName: "errorSteps" }] : /* istanbul ignore next */ []));
5245
+ /** Fires with a step's index when it's activated (only when `clickable`). */
4691
5246
  stepClicked = output();
4692
5247
  stepState(index) {
4693
5248
  if (this.errorSteps().includes(index)) {
@@ -4756,6 +5311,7 @@ class PopoverComponent {
4756
5311
  '--ds-popover-max-width',
4757
5312
  '--ds-popover-arrow-size',
4758
5313
  ];
5314
+ /** Cross-axis alignment of the panel against the trigger. */
4759
5315
  align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
4760
5316
  /** Which side of the trigger the panel prefers to appear on. */
4761
5317
  placement = input('bottom', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
@@ -4785,7 +5341,8 @@ class PopoverComponent {
4785
5341
  const positionStrategy = this.overlay
4786
5342
  .position()
4787
5343
  .flexibleConnectedTo(trigger)
4788
- .withPositions(buildPositions(placement, this.align(), arrowOffset));
5344
+ .withPositions(buildPositions(placement, this.align(), arrowOffset))
5345
+ .withViewportMargin(8);
4789
5346
  positionStrategy.positionChanges.subscribe((change) => {
4790
5347
  this.resolvedPlacement.set(connectionToPlacement(change.connectionPair.overlayY, change.connectionPair.overlayX));
4791
5348
  });
@@ -4942,12 +5499,19 @@ function connectionToPlacement(overlayY, overlayX) {
4942
5499
  * AND by static showcases that need to display a toast specimen inline.
4943
5500
  */
4944
5501
  class ToastComponent {
5502
+ /** Severity — drives colour, the default icon/spinner and the ARIA role/live. */
4945
5503
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5504
+ /** Optional bold heading above the message. */
4946
5505
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5506
+ /** Body text of the toast. */
4947
5507
  message = input('', ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
5508
+ /** Show a close button that emits `closed`. */
4948
5509
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5510
+ /** Override the variant's default icon. */
4949
5511
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
5512
+ /** Optional action button rendered before the dismiss control. */
4950
5513
  action = input(null, ...(ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []));
5514
+ /** Fires when the toast is dismissed or its action is invoked. */
4951
5515
  closed = output();
4952
5516
  isLoading = computed(() => this.variant() === 'loading', ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
4953
5517
  onAction(action) {
@@ -5179,10 +5743,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5179
5743
  let nextId$2 = 0;
5180
5744
  class DrawerComponent {
5181
5745
  doc = inject(DOCUMENT);
5746
+ /** Open state, two-way bound. */
5182
5747
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
5748
+ /** Panel size — sm/md/lg. */
5183
5749
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
5750
+ /** Edge the panel slides in from. */
5184
5751
  placement = input('right', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
5752
+ /** Drawer title, shown in the header and used for `aria-labelledby`. */
5185
5753
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5754
+ /** Fires once the close (slide-out) animation finishes. */
5186
5755
  closed = output();
5187
5756
  titleId = `ds-drawer-title-${++nextId$2}`;
5188
5757
  /** Panel is in the DOM (kept true through the slide-out). */
@@ -5190,6 +5759,7 @@ class DrawerComponent {
5190
5759
  /** Playing the slide-out + scrim-fade leave animation. */
5191
5760
  closing = signal(false, ...(ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []));
5192
5761
  wasOpen = false;
5762
+ closeFallbackTimer = null;
5193
5763
  classes = computed(() => {
5194
5764
  const parts = ['drawer', this.placement(), this.size()];
5195
5765
  return parts.join(' ');
@@ -5202,9 +5772,15 @@ class DrawerComponent {
5202
5772
  if (isOpen) {
5203
5773
  this.closing.set(false);
5204
5774
  this.rendered.set(true);
5775
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5776
+ this.closeFallbackTimer = null;
5205
5777
  }
5206
5778
  else if (this.wasOpen) {
5207
5779
  this.closing.set(true);
5780
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
5781
+ // may never fire — this synthetic fallback guarantees teardown anyway.
5782
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5783
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
5208
5784
  }
5209
5785
  this.wasOpen = isOpen;
5210
5786
  });
@@ -5217,6 +5793,8 @@ class DrawerComponent {
5217
5793
  ngOnDestroy() {
5218
5794
  // Restore body scroll if the host is torn down mid-open.
5219
5795
  this.doc.body.style.overflow = '';
5796
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5797
+ this.closeFallbackTimer = null;
5220
5798
  }
5221
5799
  onClose() {
5222
5800
  this.open.set(false);
@@ -5224,11 +5802,21 @@ class DrawerComponent {
5224
5802
  onLeaveEnd(event) {
5225
5803
  // Angular scopes @keyframes names under emulated encapsulation, so
5226
5804
  // event.animationName arrives as `_ngcontent-…_drawer-panel-close-right`,
5227
- // not the bare name — check the common infix or teardown never fires.
5228
- if (!event.animationName.includes('drawer-panel-close') ||
5229
- !this.closing()) {
5805
+ // not the bare name — match the suffix or teardown never fires.
5806
+ if (!event.animationName.endsWith('drawer-panel-close-right') &&
5807
+ !event.animationName.endsWith('drawer-panel-close-left') &&
5808
+ !event.animationName.endsWith('drawer-panel-close-top') &&
5809
+ !event.animationName.endsWith('drawer-panel-close-bottom')) {
5230
5810
  return;
5231
5811
  }
5812
+ this.finishClose();
5813
+ }
5814
+ finishClose() {
5815
+ if (!this.closing()) {
5816
+ return;
5817
+ }
5818
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5819
+ this.closeFallbackTimer = null;
5232
5820
  this.closing.set(false);
5233
5821
  this.rendered.set(false);
5234
5822
  this.closed.emit();
@@ -5256,8 +5844,11 @@ let nextId$1 = 0;
5256
5844
  * desktop-first layouts. position: fixed resolves against the nearest
5257
5845
  * ancestor containing block, so framed hosts contain the sheet. */
5258
5846
  class BottomSheetComponent {
5847
+ /** Open state, two-way bound. */
5259
5848
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
5849
+ /** Sheet title, shown in the header and used for `aria-labelledby`. */
5260
5850
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5851
+ /** Fires once the close (leave) animation finishes. */
5261
5852
  closed = output();
5262
5853
  titleId = `ds-bottom-sheet-title-${++nextId$1}`;
5263
5854
  /**
@@ -5291,6 +5882,7 @@ class BottomSheetComponent {
5291
5882
  velocity = 0;
5292
5883
  previousBodyOverflow = null;
5293
5884
  wasOpen = false;
5885
+ closeFallbackTimer = null;
5294
5886
  constructor() {
5295
5887
  // open → DOM lifecycle. Opening renders immediately; closing keeps the
5296
5888
  // sheet mounted and flips `closing` so the leave animation can play —
@@ -5300,6 +5892,8 @@ class BottomSheetComponent {
5300
5892
  if (isOpen) {
5301
5893
  this.closing.set(false);
5302
5894
  this.rendered.set(true);
5895
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5896
+ this.closeFallbackTimer = null;
5303
5897
  // Reset to first snap point when opening with snap points configured.
5304
5898
  if (this.snapPoints().length > 0) {
5305
5899
  this.activeSnapIndex.set(0);
@@ -5307,6 +5901,10 @@ class BottomSheetComponent {
5307
5901
  }
5308
5902
  else if (this.wasOpen) {
5309
5903
  this.closing.set(true);
5904
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
5905
+ // may never fire — this synthetic fallback guarantees teardown anyway.
5906
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5907
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
5310
5908
  }
5311
5909
  this.wasOpen = isOpen;
5312
5910
  });
@@ -5324,6 +5922,10 @@ class BottomSheetComponent {
5324
5922
  });
5325
5923
  });
5326
5924
  }
5925
+ ngOnDestroy() {
5926
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5927
+ this.closeFallbackTimer = null;
5928
+ }
5327
5929
  close() {
5328
5930
  this.dragOffset.set(null);
5329
5931
  this.open.set(false);
@@ -5332,9 +5934,17 @@ class BottomSheetComponent {
5332
5934
  // Angular scopes @keyframes names under emulated encapsulation, so
5333
5935
  // event.animationName arrives as `_ngcontent-…_ds-sheet-down`, not the bare
5334
5936
  // name — match the suffix or teardown never fires and the lock leaks.
5335
- if (!event.animationName.endsWith('ds-sheet-down') || !this.closing()) {
5937
+ if (!event.animationName.endsWith('ds-sheet-down')) {
5938
+ return;
5939
+ }
5940
+ this.finishClose();
5941
+ }
5942
+ finishClose() {
5943
+ if (!this.closing()) {
5336
5944
  return;
5337
5945
  }
5946
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5947
+ this.closeFallbackTimer = null;
5338
5948
  this.closing.set(false);
5339
5949
  this.rendered.set(false);
5340
5950
  this.closed.emit();
@@ -5422,13 +6032,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5422
6032
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }], snapPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapPoints", required: false }] }], sheetRef: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }] } });
5423
6033
 
5424
6034
  class TagComponent {
6035
+ /** Fill style — `solid` for high-emphasis, `neutral` for low-emphasis chips. */
5425
6036
  variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
6037
+ /** Shows a close button that emits `closed`. */
5426
6038
  closable = input(false, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6039
+ /** Makes the tag clickable, emitting `toggled` on click. */
5427
6040
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6041
+ /** Applies the active/selected visual state. */
5428
6042
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5429
6043
  /** Accessible label for the close button (e.g. "Remove Source filter"). */
5430
6044
  closeLabel = input('Remove', ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
6045
+ /** Fires when the close button is clicked. */
5431
6046
  closed = output();
6047
+ /** Fires on click when `interactive` is true. */
5432
6048
  toggled = output();
5433
6049
  onClick() {
5434
6050
  if (this.interactive()) {
@@ -5450,9 +6066,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5450
6066
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], toggled: [{ type: i0.Output, args: ["toggled"] }] } });
5451
6067
 
5452
6068
  class W3wComponent {
6069
+ /** Marker rendered before the address (e.g. the "///" glyph). */
5453
6070
  prefix = input('///', ...(ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []));
6071
+ /** The three-word address, rendered after `prefix`. */
5454
6072
  address = input.required(...(ngDevMode ? [{ debugName: "address" }] : /* istanbul ignore next */ []));
6073
+ /** Makes the address clickable/focusable and copies `prefix` + `address` to the clipboard. */
5455
6074
  copyable = input(true, { ...(ngDevMode ? { debugName: "copyable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6075
+ /** Fires with `address` after a successful copy. */
5456
6076
  copied = output();
5457
6077
  onKeyActivate(event) {
5458
6078
  event.preventDefault();
@@ -5484,6 +6104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5484
6104
  }], propDecorators: { prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: true }] }], copyable: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyable", required: false }] }], copied: [{ type: i0.Output, args: ["copied"] }] } });
5485
6105
 
5486
6106
  class PageFooterComponent {
6107
+ /** Visual style — default, compact, or the accented `save`-bar look. */
5487
6108
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5488
6109
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: PageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5489
6110
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: PageFooterComponent, isStandalone: true, selector: "ds-page-footer", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.compact": "variant() === 'compact'", "class.save": "variant() === 'save'" } }, ngImport: i0, template: "<ng-content select=\"[brand]\"></ng-content>\n\n<ng-content select=\"[nav]\"></ng-content>\n\n<ng-content select=\"[actions]\"></ng-content>\n\n<ng-content></ng-content>\n", styles: [":host{--_page-footer-bg-color: var(--ds-page-footer-bg-color, var(--surface-secondary));--_page-footer-border-color: var(--ds-page-footer-border-color, var(--border-divider));--_page-footer-save-bg-color: var(--ds-page-footer-save-bg-color, var(--accent-subtitle));--_page-footer-save-border-color: var(--ds-page-footer-save-border-color, var(--accent));--_page-footer-radius: var(--ds-page-footer-radius, var(--radius-lg));display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-4) 0;border-top:var(--border-width-default) solid var(--_page-footer-border-color);flex-wrap:wrap}:host(.compact){padding:var(--space-3) var(--space-4);gap:var(--space-3);background:var(--_page-footer-bg-color);border-radius:var(--_page-footer-radius);border:var(--border-width-default) solid var(--_page-footer-border-color);border-top:var(--border-width-default) solid var(--_page-footer-border-color)}:host(.save){position:relative;padding:var(--space-3) var(--space-4);background:var(--_page-footer-save-bg-color);border:var(--border-width-default) solid var(--_page-footer-save-border-color);border-radius:var(--_page-footer-radius)}\n"] });
@@ -5507,19 +6128,31 @@ class AutocompleteComponent extends DsControlValueAccessor {
5507
6128
  '--ds-autocomplete-panel-bg-color',
5508
6129
  '--ds-autocomplete-option-bg-color-hover',
5509
6130
  ];
6131
+ /** Flat option list — ignored when `optionGroups` is set. */
5510
6132
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
6133
+ /** Options grouped under labelled sections, rendered instead of `options`. */
5511
6134
  optionGroups = input([], ...(ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []));
6135
+ /** Selected value, or an array of values when `multiple`. */
5512
6136
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6137
+ /** Allows selecting more than one option, shown as removable tags. */
5513
6138
  multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6139
+ /** Trigger height — sm/md/lg. */
5514
6140
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
6141
+ /** Trigger width — `fill` stretches to the container, `content` hugs the value. */
5515
6142
  width = input('fill', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
6143
+ /** Placeholder shown in the input when empty. */
5516
6144
  placeholder = input('Select…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
6145
+ /** Disables the trigger and blocks all interaction. */
5517
6146
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6147
+ /** Applies error styling and marks the field `aria-invalid`. */
5518
6148
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6149
+ /** Helper text shown below the field. */
5519
6150
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6151
+ /** Shows a "Create «text»" row when the typed text matches no option. */
5520
6152
  allowCreate = input(false, { ...(ngDevMode ? { debugName: "allowCreate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5521
6153
  /** Accessible name for the combobox input. */
5522
6154
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6155
+ /** Fires with the typed text when the user picks the create-new option. */
5523
6156
  create = output();
5524
6157
  isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
5525
6158
  hintId = computed(() => this.hint() ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
@@ -5856,7 +6489,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5856
6489
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }] } });
5857
6490
 
5858
6491
  class DescriptionListComponent {
5859
- // horizontal = label column + value; stacked = label above value.
6492
+ /** horizontal = label column + value; stacked = label above value. */
5860
6493
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
5861
6494
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DescriptionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5862
6495
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: DescriptionListComponent, isStandalone: true, selector: "ds-description-list", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.stacked": "orientation() === 'stacked'" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{--_dl-label-w: var(--ds-description-list-label-w, var(--dl-spec-label-w));--_dl-row-gap: var(--ds-description-list-row-gap, var(--space-3));--_dl-col-gap: var(--ds-description-list-col-gap, var(--space-5));display:flex;flex-direction:column;row-gap:var(--_dl-row-gap)}\n"] });
@@ -5870,9 +6503,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5870
6503
 
5871
6504
  class DescriptionItemComponent {
5872
6505
  list = inject(DescriptionListComponent, { optional: true });
5873
- // The label. Plain text; rich values go in the projected content.
6506
+ /** The label. Plain text; rich values go in the projected content. */
5874
6507
  term = input('', ...(ngDevMode ? [{ debugName: "term" }] : /* istanbul ignore next */ []));
5875
- // When set, a copy button appears that copies this string to the clipboard.
6508
+ /** When set, a copy button appears that copies this string to the clipboard. */
5876
6509
  copyValue = input(null, ...(ngDevMode ? [{ debugName: "copyValue" }] : /* istanbul ignore next */ []));
5877
6510
  stacked = computed(() => this.list?.orientation() === 'stacked', ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
5878
6511
  copied = signal(false, ...(ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []));
@@ -5886,14 +6519,14 @@ class DescriptionItemComponent {
5886
6519
  setTimeout(() => this.copied.set(false), 1200);
5887
6520
  }
5888
6521
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DescriptionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5889
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: [":host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));display:grid;grid-template-columns:var(--_dl-label-w, var(--dl-spec-label-w)) 1fr;column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--font-weight-regular) var(--_term-font-size)/var(--line-height-base) var(--font-sans)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.value{min-width:0}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color, currentColor);outline-offset:1px}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
6522
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--font-weight-regular) var(--_term-font-size)/var(--line-height-base) var(--font-sans)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color, currentColor);outline-offset:1px}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
5890
6523
  }
5891
6524
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DescriptionItemComponent, decorators: [{
5892
6525
  type: Component,
5893
6526
  args: [{ selector: 'ds-description-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: {
5894
6527
  role: 'group',
5895
6528
  '[class.stacked]': 'stacked()',
5896
- }, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: [":host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));display:grid;grid-template-columns:var(--_dl-label-w, var(--dl-spec-label-w)) 1fr;column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--font-weight-regular) var(--_term-font-size)/var(--line-height-base) var(--font-sans)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.value{min-width:0}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color, currentColor);outline-offset:1px}:host(:hover) .copy{opacity:1}\n"] }]
6529
+ }, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--font-weight-regular) var(--_term-font-size)/var(--line-height-base) var(--font-sans)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color, currentColor);outline-offset:1px}:host(:hover) .copy{opacity:1}\n"] }]
5897
6530
  }], propDecorators: { term: [{ type: i0.Input, args: [{ isSignal: true, alias: "term", required: false }] }], copyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyValue", required: false }] }] } });
5898
6531
 
5899
6532
  class StackComponent {
@@ -5944,8 +6577,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5944
6577
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
5945
6578
 
5946
6579
  class SegmentedComponent {
6580
+ /** Segments to render — each needs a `label` and `value`, optional `icon`/`disabled`. */
5947
6581
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
6582
+ /** Selected segment's `value`, two-way bound. */
5948
6583
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6584
+ /** Accessible name for the segmented control (radiogroup role). */
5949
6585
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
5950
6586
  buttons = viewChildren('seg', ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
5951
6587
  // The single roving-tabindex entry point: the selected segment, or the first
@@ -6019,6 +6655,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6019
6655
  }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], buttons: [{ type: i0.ViewChildren, args: ['seg', { isSignal: true }] }] } });
6020
6656
 
6021
6657
  class ButtonGroupComponent {
6658
+ /** Accessible name for the group, set as `aria-label` on the `role="group"` host. */
6022
6659
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6023
6660
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6024
6661
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: ButtonGroupComponent, isStandalone: true, selector: "ds-button-group", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:inline-flex}:host ::ng-deep ds-button:not(:first-child){margin-left:var(--btn-group-overlap)}:host ::ng-deep ds-button .button{border-radius:var(--radius-flat)}:host ::ng-deep ds-button:first-child .button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}:host ::ng-deep ds-button:last-child .button{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}:host ::ng-deep ds-button .button:focus-visible{z-index:var(--btn-group-focus-z)}\n"] });
@@ -6032,7 +6669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6032
6669
  }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
6033
6670
 
6034
6671
  class ListComponent {
6035
- // Draw a hairline separator between adjacent items.
6672
+ /** Draw a hairline separator between adjacent items. */
6036
6673
  dividers = input(true, { ...(ngDevMode ? { debugName: "dividers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6037
6674
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6038
6675
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: ListComponent, isStandalone: true, selector: "ds-list", inputs: { dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "list" }, properties: { "class.dividers": "dividers()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;--_divider-color: var(--ds-list-divider-color, var(--border-divider))}:host(.dividers) ::ng-deep ds-list-item:not(:last-child){border-bottom:var(--border-width-default) solid var(--_divider-color)}\n"] });
@@ -6046,14 +6683,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6046
6683
  }], propDecorators: { dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }] } });
6047
6684
 
6048
6685
  class ListItemComponent {
6049
- // Convenience text; richer middle content can be projected as default content.
6686
+ /** Convenience text; richer middle content can be projected as default content. */
6050
6687
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
6688
+ /** Secondary line below `title`. */
6051
6689
  subtitle = input('', ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
6052
- // Whole-row navigation: renders an inner button and emits `activated`. Use for
6053
- // rows without their own interactive trailing control.
6690
+ /** Whole-row navigation: renders an inner button and emits `activated`. */
6054
6691
  clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6692
+ /** Marks the row current via `aria-current`. */
6055
6693
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6694
+ /** Disables the row; only affects the button when `clickable`. */
6056
6695
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6696
+ /** Fires when the clickable row's button is activated. */
6057
6697
  activated = output();
6058
6698
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6059
6699
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<ng-template #content>\n <span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n </span>\n\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n</ng-template>\n\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n [attr.aria-current]=\"selected() ? 'true' : null\"\n (click)=\"activated.emit()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n </button>\n} @else {\n <div class=\"activator\">\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n </div>\n}\n", styles: [":host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:block}.activator{display:flex;align-items:center;gap:var(--_list-item-gap);width:100%;padding:var(--_list-item-pad-y) var(--_list-item-pad-x);border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard)}button.activator:hover{background-color:var(--_list-item-hover-bg-color)}button.activator:active:not(:disabled){background-color:var(--surface-muted)}button.activator:focus-visible{outline:var(--border-width-strong) solid var(--focus-ring-color, currentColor);outline-offset:calc(-1 * var(--border-width-strong))}button.activator:disabled{cursor:not-allowed}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected) .activator{background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
@@ -6069,14 +6709,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6069
6709
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], activated: [{ type: i0.Output, args: ["activated"] }] } });
6070
6710
 
6071
6711
  class SplitButtonComponent {
6712
+ /** Label text on the main button. */
6072
6713
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
6714
+ /** Visual style — primary (solid) or outline. */
6073
6715
  variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
6716
+ /** Icon shown on the main button, before the label. */
6074
6717
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
6718
+ /** Disables both the main button and the dropdown trigger. */
6075
6719
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6720
+ /** Items listed in the dropdown menu. */
6076
6721
  menuItems = input([], ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
6077
6722
  /** Accessible name for the dropdown trigger. */
6078
6723
  menuLabel = input('More actions', ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
6724
+ /** Fires when the main button (not the dropdown trigger) is clicked. */
6079
6725
  pressed = output();
6726
+ /** Fires with the chosen menu item. */
6080
6727
  itemSelected = output();
6081
6728
  onItemSelect(item) {
6082
6729
  if (item.disabled) {
@@ -6114,9 +6761,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6114
6761
  }] });
6115
6762
 
6116
6763
  class TimelineItemComponent {
6764
+ /** Primary text for the entry. */
6117
6765
  heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
6766
+ /** Timestamp or date label shown below the content. */
6118
6767
  time = input('', ...(ngDevMode ? [{ debugName: "time" }] : /* istanbul ignore next */ []));
6768
+ /** Icon shown in the marker; omit for a plain dot. */
6119
6769
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
6770
+ /** Semantic accent color for the marker. */
6120
6771
  tone = input('default', ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
6121
6772
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TimelineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6122
6773
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: TimelineItemComponent, isStandalone: true, selector: "ds-timeline-item", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-tone": "tone()" } }, ngImport: i0, template: "<div class=\"node-col\">\n <span class=\"node\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"15\"\n />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"content\">\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_timeline-node-size: var(--ds-timeline-node-size, var(--timeline-node-size));--_timeline-spine-w: var(--ds-timeline-spine-w, var(--timeline-spine-w));--_timeline-gap: var(--ds-timeline-gap, var(--timeline-gap));--_timeline-node-bg-color: var(--ds-timeline-node-bg-color, var(--surface-secondary));--_timeline-node-color: var(--ds-timeline-node-color, var(--text-tertiary));--_timeline-node-border: var(--ds-timeline-node-border-color, var(--border-strong));--_timeline-spine-color: var(--ds-timeline-spine-color, var(--border-divider));display:grid;grid-template-columns:var(--_timeline-node-size) 1fr;column-gap:var(--space-4)}.node-col{display:flex;flex-direction:column;align-items:center}.node{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--_timeline-node-size);height:var(--_timeline-node-size);border-radius:var(--radius-pill);background-color:var(--_timeline-node-bg-color);color:var(--_timeline-node-color);border:var(--border-width-strong) solid var(--_timeline-node-border)}.spine{flex:1;width:var(--_timeline-spine-w);margin-top:var(--space-1);background-color:var(--_timeline-spine-color)}.content{display:flex;flex-direction:column;gap:var(--space-0-5);padding-bottom:var(--_timeline-gap);min-width:0}:host(:last-child) .spine{display:none}:host(:last-child) .content{padding-bottom:0}.heading{color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.time{color:var(--text-tertiary);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host([data-tone=primary]){--_timeline-node-bg-color: var(--accent);--_timeline-node-color: var(--text-on-primary);--_timeline-node-border: var(--accent)}:host([data-tone=success]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border: var(--success)}:host([data-tone=warning]){--_timeline-node-bg-color: var(--warning);--_timeline-node-color: var(--text-on-warning);--_timeline-node-border: var(--warning)}:host([data-tone=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border: var(--error)}:host([data-tone=muted]){--_timeline-node-bg-color: var(--surface-secondary);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border: var(--border-strong)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
@@ -6130,14 +6781,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6130
6781
  }], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], time: [{ type: i0.Input, args: [{ isSignal: true, alias: "time", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }] } });
6131
6782
 
6132
6783
  class OtpInputComponent extends DsControlValueAccessor {
6784
+ /** Entered code, two-way bound. */
6133
6785
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6786
+ /** Number of character cells. */
6134
6787
  length = input(6, ...(ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []));
6788
+ /** Restricts input and the mobile keyboard to digits-only, or allows letters too. */
6135
6789
  mode = input('numeric', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
6790
+ /** Renders each cell as a password dot instead of the typed character. */
6136
6791
  mask = input(false, { ...(ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6792
+ /** Disables all cells and blocks interaction. */
6137
6793
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6794
+ /** Applies error styling and marks each cell `aria-invalid`. */
6138
6795
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6796
+ /** Helper text shown below the cells. */
6139
6797
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6798
+ /** Accessible group label for the cell row. */
6140
6799
  ariaLabel = input('Verification code', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6800
+ /** Fires once, with the full code, on the partial → complete transition. */
6141
6801
  completed = output();
6142
6802
  boxes = viewChildren('box', ...(ngDevMode ? [{ debugName: "boxes" }] : /* istanbul ignore next */ []));
6143
6803
  wasComplete = false;
@@ -6285,14 +6945,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6285
6945
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], completed: [{ type: i0.Output, args: ["completed"] }], boxes: [{ type: i0.ViewChildren, args: ['box', { isSignal: true }] }] } });
6286
6946
 
6287
6947
  class SliderComponent extends DsControlValueAccessor {
6948
+ /** Current value, or `[low, high]` when `range`. Two-way bound. */
6288
6949
  value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6950
+ /** Minimum selectable value. */
6289
6951
  min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6952
+ /** Maximum selectable value. */
6290
6953
  max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6954
+ /** Increment applied when dragging (snap) or nudging with arrow keys. */
6291
6955
  step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6956
+ /** Two-thumb range mode — `value` becomes a `[low, high]` tuple. */
6292
6957
  range = input(false, { ...(ngDevMode ? { debugName: "range" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6958
+ /** Disables the slider and blocks all interaction. */
6293
6959
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6960
+ /** Accessible name for the thumb(s) — suffixed "minimum"/"maximum" in `range` mode. */
6294
6961
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6962
+ /** Applies error styling. */
6295
6963
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6964
+ /** Helper text shown below the slider. */
6296
6965
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6297
6966
  track = viewChild.required('track');
6298
6967
  dragging = -1;
@@ -6463,9 +7132,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6463
7132
 
6464
7133
  class TreeComponent {
6465
7134
  host = inject(ElementRef);
7135
+ /** Root-level nodes; nest via `children`. */
6466
7136
  nodes = input([], ...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
7137
+ /** Two-way set of currently expanded node ids. */
6467
7138
  expandedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "expandedIds" }] : /* istanbul ignore next */ []));
7139
+ /** Two-way id of the currently selected node. */
6468
7140
  selectedId = model(null, ...(ngDevMode ? [{ debugName: "selectedId" }] : /* istanbul ignore next */ []));
7141
+ /** Fires with the node when a row is selected (click or Enter/Space). */
6469
7142
  nodeSelected = output();
6470
7143
  activeId = signal(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
6471
7144
  // Depth-first list of currently-visible nodes; drives rendering and keyboard nav.
@@ -6711,11 +7384,17 @@ class ColorPickerComponent extends DsControlValueAccessor {
6711
7384
  '--ds-color-picker-hue-h',
6712
7385
  '--ds-color-picker-thumb',
6713
7386
  ];
7387
+ /** Selected colour as a hex string, two-way bound. */
6714
7388
  value = model('#2F54FF', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7389
+ /** Swatches shown in the panel — defaults to a built-in palette. */
6715
7390
  presets = input(DEFAULT_PRESETS, ...(ngDevMode ? [{ debugName: "presets" }] : /* istanbul ignore next */ []));
7391
+ /** Disables the trigger and blocks all interaction. */
6716
7392
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7393
+ /** Accessible name for the trigger button and panel. */
6717
7394
  ariaLabel = input('Choose colour', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
7395
+ /** Applies error styling and marks the trigger `aria-invalid`. */
6718
7396
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7397
+ /** Helper text shown below the trigger. */
6719
7398
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6720
7399
  trigger = viewChild.required('trigger');
6721
7400
  panelTpl = viewChild.required('panel');
@@ -6990,17 +7669,25 @@ class MultiSelectComponent extends DsControlValueAccessor {
6990
7669
  '--ds-multi-select-option-bg-color-active',
6991
7670
  '--ds-multi-select-check-bg-color',
6992
7671
  ];
7672
+ /** Selected values, two-way bound. */
6993
7673
  value = model([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7674
+ /** Options shown in the panel. */
6994
7675
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
7676
+ /** Placeholder shown in the trigger when nothing is selected. */
6995
7677
  placeholder = input('Select…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
7678
+ /** Placeholder for the in-panel filter input. */
6996
7679
  searchPlaceholder = input('Filter…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
6997
- // 0 / null shows every chip; a positive cap collapses the rest into "+N more".
7680
+ /** Caps the number of chips shown before collapsing the rest into "+N more" — 0/null shows all. */
6998
7681
  maxVisibleChips = input(null, { ...(ngDevMode ? { debugName: "maxVisibleChips" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
7682
+ /** Disables the trigger and blocks all interaction. */
6999
7683
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7684
+ /** Applies error styling and marks the field `aria-invalid`. */
7000
7685
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7686
+ /** Helper text shown below the field. */
7001
7687
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
7688
+ /** Accessible name for the trigger — falls back to `placeholder`. */
7002
7689
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
7003
- // Show a "Select all" row that toggles every (filter-matching, enabled) option.
7690
+ /** Shows a "Select all" row that toggles every filter-matching, enabled option. */
7004
7691
  selectAll = input(false, { ...(ngDevMode ? { debugName: "selectAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7005
7692
  uid = nextControlId('ds-multi-select');
7006
7693
  listboxId = `${this.uid}-listbox`;
@@ -7243,14 +7930,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7243
7930
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], maxVisibleChips: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleChips", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ['search', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
7244
7931
 
7245
7932
  class CheckboxComponent extends DsBooleanControlValueAccessor {
7933
+ /** Checked state, two-way bound. */
7246
7934
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
7935
+ /** Shows the partial/mixed visual state — independent of `checked`. */
7247
7936
  indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7937
+ /** Disables the checkbox and blocks all interaction. */
7248
7938
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7939
+ /** Native `name` attribute. */
7249
7940
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
7941
+ /** Overrides the generated id used by the native `<input>` and its `<label for>`. */
7250
7942
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
7943
+ /** Applies error styling and marks the input `aria-invalid`. */
7251
7944
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7945
+ /** Helper text shown below the checkbox. */
7252
7946
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
7947
+ /** Checkbox size — sm/md/lg. */
7253
7948
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
7949
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
7254
7950
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7255
7951
  /** Inline label rendered beside the box and wired via for/id. Omit to
7256
7952
  * bring your own <label>. */
@@ -7290,13 +7986,21 @@ class RadioComponent {
7290
7986
  /** Standalone two-way binding. When inside ds-radio-group, isChecked() is
7291
7987
  * derived from the group value instead. */
7292
7988
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
7989
+ /** Disables the radio; a disabled parent `ds-radio-group` also disables it. */
7293
7990
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7991
+ /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */
7294
7992
  name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
7993
+ /** Value compared against the group's selection when inside `ds-radio-group`. */
7295
7994
  value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7995
+ /** Overrides the auto-generated id used for the input and its label's `for`. */
7296
7996
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
7997
+ /** Applies error styling and marks the input `aria-invalid`. */
7297
7998
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7999
+ /** Helper text shown below the control. */
7298
8000
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
8001
+ /** Control size — sm/md/lg. */
7299
8002
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
8003
+ /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */
7300
8004
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7301
8005
  /** Inline label rendered beside the dot and wired via for/id. Omit to bring
7302
8006
  * your own <label>. */
@@ -7343,12 +8047,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7343
8047
  }], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], inputElement: [{ type: i0.ViewChild, args: ['inputRef', { isSignal: true }] }] } });
7344
8048
 
7345
8049
  class RadioGroupComponent extends DsControlValueAccessor {
8050
+ /** Selected radio value; two-way bound. */
7346
8051
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
8052
+ /** Native `name` shared by every radio in the group. */
7347
8053
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
8054
+ /** Disables the whole group. */
7348
8055
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8056
+ /** Applies error styling and marks the group `aria-invalid`. */
7349
8057
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8058
+ /** Helper text shown below the group. */
7350
8059
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
8060
+ /** Accessible name for the group when no visible label is provided. */
7351
8061
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
8062
+ /** Visible group label; omit to supply your own. */
7352
8063
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
7353
8064
  isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
7354
8065
  uid = nextControlId('ds-radio-group');
@@ -7464,14 +8175,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7464
8175
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], radios: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => RadioComponent), { isSignal: true }] }] } });
7465
8176
 
7466
8177
  class SwitchComponent extends DsBooleanControlValueAccessor {
8178
+ /** On/off state, two-way bound. */
7467
8179
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
8180
+ /** Disables the switch and blocks all interaction. */
7468
8181
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8182
+ /** Native `name` attribute. */
7469
8183
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
8184
+ /** Track colour when checked. */
7470
8185
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
8186
+ /** Overrides the generated id used by the native `<input>` and its `<label for>`. */
7471
8187
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
8188
+ /** Applies error styling and marks the input `aria-invalid`. */
7472
8189
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8190
+ /** Helper text shown below the switch. */
7473
8191
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
8192
+ /** Switch size — sm/md/lg. */
7474
8193
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
8194
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
7475
8195
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7476
8196
  /** Inline label rendered beside the track and wired via for/id. Omit to
7477
8197
  * bring your own <label>. */