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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,18 @@ 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
+ }
1279
1386
 
1280
1387
  /** Showcase-only: renders the component's open/overlay surface inline in normal
1281
1388
  * flow instead of its real overlay mechanics (for static docs specimens).
@@ -1298,20 +1405,33 @@ class SelectComponent extends DsControlValueAccessor {
1298
1405
  overlay = inject(Overlay);
1299
1406
  vcr = inject(ViewContainerRef);
1300
1407
  preview = inject(DsStaticPreview);
1408
+ /** Selected option's value, two-way bound. */
1301
1409
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1410
+ /** Flat options or option groups rendered in the dropdown panel. */
1302
1411
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
1412
+ /** Shown in the trigger when nothing is selected. */
1303
1413
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
1414
+ /** Trigger height — sm/md/lg. */
1304
1415
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1416
+ /** Label shown above the trigger. */
1305
1417
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1418
+ /** Disables the trigger and blocks all interaction. */
1306
1419
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1420
+ /** Prevents opening the dropdown while still allowing focus. */
1307
1421
  readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1422
+ /** Applies error styling and marks the trigger `aria-invalid`. */
1308
1423
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1424
+ /** Helper text shown below the trigger. */
1309
1425
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
1426
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
1310
1427
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1428
+ /** Shows an "(optional)" marker next to the label (ignored when `required`). */
1311
1429
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1430
+ /** Native `name` attribute forwarded to the trigger. */
1312
1431
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
1313
1432
  /** Accessible name when no visible `label` is provided. */
1314
1433
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
1434
+ /** Shows an inline clear (×) button when a value is selected. */
1315
1435
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1316
1436
  uid = nextControlId('ds-select');
1317
1437
  labelId = `${this.uid}-label`;
@@ -1602,9 +1722,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1602
1722
  }], 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
1723
 
1604
1724
  class SkeletonComponent {
1725
+ /** CSS width of the placeholder (e.g. `'120px'`, `'50%'`). */
1605
1726
  width = input(undefined, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
1727
+ /** CSS height of the placeholder. */
1606
1728
  height = input(undefined, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
1729
+ /** Pill radius, for avatar/dot-shaped placeholders. */
1607
1730
  circle = input(false, { ...(ngDevMode ? { debugName: "circle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1731
+ /** `display: inline-block` instead of `block`, to sit inline with text. */
1608
1732
  inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1609
1733
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1610
1734
  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 +1745,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1621
1745
  }], 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
1746
 
1623
1747
  class PaginationComponent {
1748
+ /** Total item count, used to compute the page count. */
1624
1749
  total = input.required(...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
1750
+ /** Items per page, two-way bound. */
1625
1751
  pageSize = model(10, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
1752
+ /** 1-based active page, two-way bound. */
1626
1753
  currentPage = model(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
1754
+ /** Preset choices offered in the page-size dropdown. */
1627
1755
  pageSizeOptions = input([10, 25, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
1756
+ /** Shows the "Showing X–Y of Z" range label. */
1628
1757
  showLabel = input(true, { ...(ngDevMode ? { debugName: "showLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1758
+ /** Fires whenever the active page changes, including the reset to page 1 after a size change. */
1629
1759
  pageChange = output();
1760
+ /** Fires when the page size changes via the size dropdown. */
1630
1761
  pageSizeChange = output();
1631
1762
  totalPages = computed(() => Math.max(1, Math.ceil(this.total() / this.pageSize())), ...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
1632
1763
  pageItems = computed(() => {
@@ -1690,13 +1821,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1690
1821
  }], 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
1822
 
1692
1823
  class LoadingOverlayComponent {
1693
- // Show the scrim + spinner over the projected region.
1824
+ /** Show the scrim + spinner over the projected region. */
1694
1825
  loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1695
- // Optional caption beneath the spinner.
1826
+ /** Optional caption beneath the spinner. */
1696
1827
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1828
+ /** Backdrop-blur the projected content behind the scrim. */
1697
1829
  blur = input(true, { ...(ngDevMode ? { debugName: "blur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1830
+ /** Size of the spinner shown in the scrim. */
1698
1831
  spinnerSize = input('md', ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
1699
- // Offset the scrim top edge — useful when a sticky header should stay uncovered.
1832
+ /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */
1700
1833
  insetTop = input('0', ...(ngDevMode ? [{ debugName: "insetTop" }] : /* istanbul ignore next */ []));
1701
1834
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: LoadingOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1702
1835
  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 +1875,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
1742
1875
 
1743
1876
  const NUMERIC = /^-?\d+(\.\d+)?$/;
1744
1877
  class TableComponent {
1878
+ /** Rows to render. */
1745
1879
  data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1880
+ /** Column definitions driving headers, cells and sorting. */
1746
1881
  columns = input.required(...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
1882
+ /** Adds a checkbox column for row/select-all selection. */
1747
1883
  selectable = input(false, { ...(ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1748
1884
  /** Opt-in outer border + radius. Off by default so tables flush inside a
1749
1885
  * `<ds-card padding="none">` (workspaces, programs-list) don't double-border.
@@ -1756,10 +1892,15 @@ class TableComponent {
1756
1892
  * 'overlay' — re-fetch indicator; existing rows stay visible behind
1757
1893
  * a translucent overlay with a centred spinner. */
1758
1894
  loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
1895
+ /** Keeps the header row pinned while the body scrolls. */
1759
1896
  stickyHeader = input(true, { ...(ngDevMode ? { debugName: "stickyHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1897
+ /** Two-way set of currently selected row ids. */
1760
1898
  selectedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "selectedIds" }] : /* istanbul ignore next */ []));
1899
+ /** Column key currently sorted by; `null` when unsorted. */
1761
1900
  sortKey = model(null, ...(ngDevMode ? [{ debugName: "sortKey" }] : /* istanbul ignore next */ []));
1901
+ /** Sort direction for `sortKey`. */
1762
1902
  sortDir = model(null, ...(ngDevMode ? [{ debugName: "sortDir" }] : /* istanbul ignore next */ []));
1903
+ /** Number of shimmer rows rendered while `loading` is `'skeleton'`. */
1763
1904
  skeletonRows = input(5, ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
1764
1905
  /** Accessible name for the table (rendered as a visually-hidden caption).
1765
1906
  * Without it, screen-reader users get an unlabelled table. */
@@ -1773,13 +1914,16 @@ class TableComponent {
1773
1914
  pageSize = model(null, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
1774
1915
  /** Current 1-based page. Only meaningful when `pageSize()` is set. */
1775
1916
  page = model(1, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
1917
+ /** Selectable page-size choices shown in the pagination control. */
1776
1918
  pageSizeOptions = input([10, 25, 50, 100], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
1777
1919
  /** When true, the table sorts `data()` itself; otherwise it only emits
1778
1920
  * `sortChange` and leaves ordering to the consumer (default). */
1779
1921
  clientSort = input(false, { ...(ngDevMode ? { debugName: "clientSort" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1780
1922
  /** Pin the first data column (and the select column) on horizontal scroll. */
1781
1923
  stickyFirstColumn = input(false, { ...(ngDevMode ? { debugName: "stickyFirstColumn" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1924
+ /** Fires with the row on click (or Enter/Space when `rowInteractive`). */
1782
1925
  rowClicked = output();
1926
+ /** Fires whenever sort key/direction changes, regardless of `clientSort`. */
1783
1927
  sortChange = output();
1784
1928
  /** Cell templates supplied as an explicit map instead of (or in addition to)
1785
1929
  * projected `dsCellTemplate` directives. Lets a wrapper component (e.g.
@@ -2172,16 +2316,16 @@ function applyMask(raw, spec) {
2172
2316
  }
2173
2317
  return out;
2174
2318
  }
2175
- function parseDate(text, spec) {
2176
- const digits = text.replace(/\D/g, '');
2177
- if (digits.length !== totalDigits(spec)) {
2178
- return null;
2179
- }
2319
+ /** Build a date from three per-slot digit strings; null if any slot isn't full-width or invalid. */
2320
+ function parseSegments(segments, spec) {
2180
2321
  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;
2322
+ for (let index = 0; index < spec.segments.length; index++) {
2323
+ const seg = spec.segments[index];
2324
+ const digits = segments[index] ?? '';
2325
+ if (digits.length !== seg.length) {
2326
+ return null;
2327
+ }
2328
+ values[seg.type] = parseInt(digits, 10);
2185
2329
  }
2186
2330
  const { D: day, M: month, Y: year } = values;
2187
2331
  if (month < 1 || month > 12 || day < 1 || day > 31) {
@@ -2195,6 +2339,9 @@ function parseDate(text, spec) {
2195
2339
  }
2196
2340
  return date;
2197
2341
  }
2342
+ function parseDate(text, spec) {
2343
+ return parseSegments(parseFieldText(text, singleFieldLayout(spec)), spec);
2344
+ }
2198
2345
  /** Separator between the two dates of a range, in the field and its placeholder. */
2199
2346
  const RANGE_SEPARATOR = ' – ';
2200
2347
  /** Combined placeholder/mask for a range field, e.g. "MM/DD/YYYY – MM/DD/YYYY". */
@@ -2225,15 +2372,175 @@ function formatRange(range, spec) {
2225
2372
  }
2226
2373
  /** Parse a combined range field string into [start, end] (either may be null). */
2227
2374
  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);
2375
+ const slots = parseFieldText(text, rangeFieldLayout(spec));
2376
+ const perDate = spec.segments.length;
2232
2377
  return [
2233
- startDigits.length === perDate ? parseDate(startDigits, spec) : null,
2234
- endDigits.length === perDate ? parseDate(endDigits, spec) : null,
2378
+ parseSegments(slots.slice(0, perDate), spec),
2379
+ parseSegments(slots.slice(perDate, perDate * 2), spec),
2235
2380
  ];
2236
2381
  }
2382
+ function singleFieldLayout(spec) {
2383
+ return {
2384
+ slots: spec.segments.map((segment) => ({
2385
+ type: segment.type,
2386
+ maxLength: segment.length,
2387
+ })),
2388
+ literals: spec.segments.slice(1).map(() => spec.separator),
2389
+ };
2390
+ }
2391
+ function rangeFieldLayout(spec) {
2392
+ const single = singleFieldLayout(spec);
2393
+ return {
2394
+ slots: [...single.slots, ...single.slots],
2395
+ literals: [...single.literals, RANGE_SEPARATOR, ...single.literals],
2396
+ };
2397
+ }
2398
+ /** Split a fixed-width renderFieldValue output into per-slot digits, read at
2399
+ * each slot's fixed position — every slot is maxLength wide and every literal
2400
+ * always present, so a `_` pad or any stray char is simply dropped. */
2401
+ function parseFieldText(text, layout) {
2402
+ const segments = [];
2403
+ let position = 0;
2404
+ for (let index = 0; index < layout.slots.length; index++) {
2405
+ const raw = text.slice(position, position + layout.slots[index].maxLength);
2406
+ segments.push(raw.replace(/\D/g, ''));
2407
+ position += layout.slots[index].maxLength;
2408
+ if (index < layout.slots.length - 1) {
2409
+ position += layout.literals[index].length;
2410
+ }
2411
+ }
2412
+ return segments;
2413
+ }
2414
+ const PLACEHOLDER_CHAR = '_';
2415
+ function slotPlaceholder(slot) {
2416
+ return slot.type === 'Y' ? 'YYYY' : slot.type === 'M' ? 'MM' : 'DD';
2417
+ }
2418
+ /** Fixed-width input value: every slot padded to maxLength with `_`, all literals present. */
2419
+ function renderFieldValue(segments, layout) {
2420
+ let out = '';
2421
+ for (let index = 0; index < layout.slots.length; index++) {
2422
+ const slot = layout.slots[index];
2423
+ out += segments[index].padEnd(slot.maxLength, PLACEHOLDER_CHAR);
2424
+ if (index < layout.slots.length - 1) {
2425
+ out += layout.literals[index];
2426
+ }
2427
+ }
2428
+ return out;
2429
+ }
2430
+ /** Ordered runs for the overlay: digits (not muted), placeholders (muted), literals (not muted).
2431
+ * Untouched slot → its format letters; partial slot → digits + `_` for the missing positions. */
2432
+ function displayParts(segments, layout) {
2433
+ const parts = [];
2434
+ for (let index = 0; index < layout.slots.length; index++) {
2435
+ const slot = layout.slots[index];
2436
+ const digits = segments[index];
2437
+ if (digits.length === 0) {
2438
+ parts.push({ text: slotPlaceholder(slot), muted: true });
2439
+ }
2440
+ else {
2441
+ parts.push({ text: digits, muted: false });
2442
+ if (digits.length < slot.maxLength) {
2443
+ parts.push({
2444
+ text: PLACEHOLDER_CHAR.repeat(slot.maxLength - digits.length),
2445
+ muted: true,
2446
+ });
2447
+ }
2448
+ }
2449
+ if (index < layout.slots.length - 1) {
2450
+ parts.push({ text: layout.literals[index], muted: false });
2451
+ }
2452
+ }
2453
+ return parts;
2454
+ }
2455
+ /** Char offset where slot `index` begins in the fixed-width value — every
2456
+ * slot is maxLength wide and every literal always present. */
2457
+ function slotStart(segments, layout, index) {
2458
+ let position = 0;
2459
+ for (let slot = 0; slot < index; slot++) {
2460
+ position += layout.slots[slot].maxLength + layout.literals[slot].length;
2461
+ }
2462
+ return position;
2463
+ }
2464
+ function slotToCaret(segments, layout, slot, offset) {
2465
+ return slotStart(segments, layout, slot) + offset;
2466
+ }
2467
+ /** Map a caret char offset to its slot; a caret inside a literal snaps forward. */
2468
+ function caretToSlot(segments, layout, caret) {
2469
+ let position = 0;
2470
+ for (let index = 0; index < layout.slots.length; index++) {
2471
+ const width = layout.slots[index].maxLength;
2472
+ if (caret <= position + width) {
2473
+ return { slot: index, offset: Math.max(0, caret - position) };
2474
+ }
2475
+ position += width;
2476
+ const literalLength = index < layout.literals.length ? layout.literals[index].length : 0;
2477
+ if (caret < position + literalLength) {
2478
+ return { slot: index + 1, offset: 0 };
2479
+ }
2480
+ position += literalLength;
2481
+ }
2482
+ const last = layout.slots.length - 1;
2483
+ return { slot: last, offset: layout.slots[last].maxLength };
2484
+ }
2485
+ /** After typing, hop to the next slot once the current one is full. */
2486
+ function advanceAfterType(segments, layout, slot, offset) {
2487
+ if (offset >= layout.slots[slot].maxLength &&
2488
+ slot < layout.slots.length - 1) {
2489
+ return { segments, slot: slot + 1, offset: 0 };
2490
+ }
2491
+ return { segments, slot, offset };
2492
+ }
2493
+ /** Type a digit into the caret's slot: overtype under the caret, else append;
2494
+ * a full slot spills the digit into the next one instead of shifting. */
2495
+ function editType(segments, layout, slot, offset, digit) {
2496
+ const next = segments.slice();
2497
+ const maxLength = layout.slots[slot].maxLength;
2498
+ const current = next[slot];
2499
+ if (offset < current.length) {
2500
+ next[slot] = current.slice(0, offset) + digit + current.slice(offset + 1);
2501
+ return advanceAfterType(next, layout, slot, offset + 1);
2502
+ }
2503
+ if (current.length < maxLength) {
2504
+ next[slot] = current + digit;
2505
+ return advanceAfterType(next, layout, slot, current.length + 1);
2506
+ }
2507
+ if (slot < layout.slots.length - 1) {
2508
+ return editType(next, layout, slot + 1, 0, digit);
2509
+ }
2510
+ return { segments: next, slot, offset };
2511
+ }
2512
+ /** Backspace: drop the digit left of the caret within its slot, else the last
2513
+ * digit of the nearest earlier non-empty slot. Null when nothing precedes it. */
2514
+ function editBackspace(segments, layout, slot, offset) {
2515
+ const next = segments.slice();
2516
+ if (offset > 0) {
2517
+ next[slot] = next[slot].slice(0, offset - 1) + next[slot].slice(offset);
2518
+ return { segments: next, slot, offset: offset - 1 };
2519
+ }
2520
+ for (let index = slot - 1; index >= 0; index--) {
2521
+ if (next[index].length > 0) {
2522
+ next[index] = next[index].slice(0, -1);
2523
+ return { segments: next, slot: index, offset: next[index].length };
2524
+ }
2525
+ }
2526
+ return null;
2527
+ }
2528
+ /** Delete: drop the digit at the caret within its slot, else the first digit of
2529
+ * the nearest later non-empty slot. Null when nothing follows it. */
2530
+ function editDelete(segments, layout, slot, offset) {
2531
+ const next = segments.slice();
2532
+ if (offset < next[slot].length) {
2533
+ next[slot] = next[slot].slice(0, offset) + next[slot].slice(offset + 1);
2534
+ return { segments: next, slot, offset };
2535
+ }
2536
+ for (let index = slot + 1; index < next.length; index++) {
2537
+ if (next[index].length > 0) {
2538
+ next[index] = next[index].slice(1);
2539
+ return { segments: next, slot, offset };
2540
+ }
2541
+ }
2542
+ return null;
2543
+ }
2237
2544
  function weekdayLabels(locale, firstDayOfWeek, style = 'short') {
2238
2545
  const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
2239
2546
  // 2023-01-01 is a Sunday (getDay() === 0).
@@ -2265,19 +2572,42 @@ const YEAR_PAGE_SIZE = 12;
2265
2572
  class DatePickerComponent extends DsControlValueAccessor {
2266
2573
  constructor() {
2267
2574
  super();
2575
+ // Renders through toFieldText so the field is fixed-width `_`-padded once
2576
+ // any digit exists (even a partial range pads the empty end date), but
2577
+ // genuinely empty ('') when untouched — see Fix A.
2268
2578
  effect(() => {
2269
2579
  const spec = this.formatSpec();
2270
2580
  const value = this.value();
2581
+ const layout = this.layout();
2271
2582
  if (this.editing) {
2272
2583
  return;
2273
2584
  }
2274
2585
  if (this.mode() === 'single') {
2275
- this.inputText.set(formatDate(value, spec));
2586
+ const date = value;
2587
+ this.inputText.set(date
2588
+ ? formatDate(date, spec)
2589
+ : this.toFieldText(layout.slots.map(() => ''), layout));
2276
2590
  return;
2277
2591
  }
2278
- this.rangeText.set(formatRange(value, spec));
2592
+ const single = singleFieldLayout(spec);
2593
+ const [start, end] = value ?? [null, null];
2594
+ const startSegments = start
2595
+ ? parseFieldText(formatDate(start, spec), single)
2596
+ : single.slots.map(() => '');
2597
+ const endSegments = end
2598
+ ? parseFieldText(formatDate(end, spec), single)
2599
+ : single.slots.map(() => '');
2600
+ this.rangeText.set(this.toFieldText([...startSegments, ...endSegments], layout));
2279
2601
  });
2280
2602
  }
2603
+ /** Field text for the DOM: fixed-width `_`-padded once any digit exists,
2604
+ * else '' (so an untouched field is genuinely empty — no error on blur,
2605
+ * nothing for AT to read out). */
2606
+ toFieldText(segments, layout) {
2607
+ return segments.some((segment) => segment.length > 0)
2608
+ ? renderFieldValue(segments, layout)
2609
+ : '';
2610
+ }
2281
2611
  overlay = inject(Overlay);
2282
2612
  vcr = inject(ViewContainerRef);
2283
2613
  injector = inject(Injector);
@@ -2305,20 +2635,31 @@ class DatePickerComponent extends DsControlValueAccessor {
2305
2635
  '--ds-date-picker-nav-icon-color',
2306
2636
  '--ds-date-picker-width',
2307
2637
  ];
2638
+ /** Selection mode — single date or start/end range. */
2308
2639
  mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
2640
+ /** Trigger height — sm/md/lg. */
2309
2641
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
2642
+ /** Selected date (single) or `[start, end]` (range), two-way bound. */
2310
2643
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2644
+ /** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
2311
2645
  placeholder = input('Select date', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
2646
+ /** Field label shown above the trigger. */
2312
2647
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
2648
+ /** Helper text shown below the field. */
2313
2649
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
2650
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
2314
2651
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2652
+ /** Shows an "(optional)" marker beside the label — ignored when `required` is set. */
2315
2653
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2654
+ /** Disables the picker and blocks all interaction. */
2316
2655
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2656
+ /** Applies error styling and marks the trigger `aria-invalid`. */
2317
2657
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2318
2658
  /** Accessible name when no visible `label` is provided. */
2319
2659
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
2320
2660
  /** Bounds for the year dropdown in the calendar header. */
2321
2661
  minYear = input(new Date().getFullYear() - 100, ...(ngDevMode ? [{ debugName: "minYear" }] : /* istanbul ignore next */ []));
2662
+ /** Upper bound for the year dropdown in the calendar header. */
2322
2663
  maxYear = input(new Date().getFullYear() + 10, ...(ngDevMode ? [{ debugName: "maxYear" }] : /* istanbul ignore next */ []));
2323
2664
  /** Earliest selectable date (inclusive). Days before this are disabled. */
2324
2665
  minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
@@ -2354,6 +2695,10 @@ class DatePickerComponent extends DsControlValueAccessor {
2354
2695
  resolvedLocale = computed(() => this.locale() ?? this.config.datePicker?.locale ?? 'en-US', ...(ngDevMode ? [{ debugName: "resolvedLocale" }] : /* istanbul ignore next */ []));
2355
2696
  resolvedFirstDay = computed(() => this.firstDayOfWeek() ?? this.config.datePicker?.firstDayOfWeek ?? 1, ...(ngDevMode ? [{ debugName: "resolvedFirstDay" }] : /* istanbul ignore next */ []));
2356
2697
  formatSpec = computed(() => resolveDateFormat(this.resolvedLocale(), this.dateFormat() ?? this.config.datePicker?.dateFormat), ...(ngDevMode ? [{ debugName: "formatSpec" }] : /* istanbul ignore next */ []));
2698
+ /** Slot/literal layout for the current mode — single date or doubled range. */
2699
+ layout = computed(() => this.mode() === 'range'
2700
+ ? rangeFieldLayout(this.formatSpec())
2701
+ : singleFieldLayout(this.formatSpec()), ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
2357
2702
  monthNames = computed(() => monthLabels(this.resolvedLocale()), ...(ngDevMode ? [{ debugName: "monthNames" }] : /* istanbul ignore next */ []));
2358
2703
  weekdays = computed(() => weekdayLabels(this.resolvedLocale(), this.resolvedFirstDay()), ...(ngDevMode ? [{ debugName: "weekdays" }] : /* istanbul ignore next */ []));
2359
2704
  /** Full weekday names for the grid column headers' accessible names. */
@@ -2492,9 +2837,9 @@ class DatePickerComponent extends DsControlValueAccessor {
2492
2837
  * otherwise clip the last chars of the longer range mask. Digits render with
2493
2838
  * `tabular-nums` so the width never shifts as you type. */
2494
2839
  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 */ []));
2840
+ /** Per-slot overlay runs: digits at normal weight, unfilled positions
2841
+ * (format letters or `_` padding) muted — see displayParts(). */
2842
+ displaySlots = computed(() => displayParts(parseFieldText(this.fieldText(), this.layout()), this.layout()), ...(ngDevMode ? [{ debugName: "displaySlots" }] : /* istanbul ignore next */ []));
2498
2843
  // ---- Month / year grid pickers in the calendar header ----
2499
2844
  monthMenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "monthMenuOpen" }] : /* istanbul ignore next */ []));
2500
2845
  yearMenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "yearMenuOpen" }] : /* istanbul ignore next */ []));
@@ -2683,14 +3028,15 @@ class DatePickerComponent extends DsControlValueAccessor {
2683
3028
  ]);
2684
3029
  const cfg = {
2685
3030
  positionStrategy,
2686
- hasBackdrop: true,
2687
- backdropClass: 'cdk-overlay-transparent-backdrop',
3031
+ hasBackdrop: false,
2688
3032
  panelClass: 'ds-overlay-pane',
2689
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
3033
+ // No backdrop, so a page scroll would leave the panel floating — close it
3034
+ // instead (matches the non-modal "surroundings stay live" behaviour).
3035
+ scrollStrategy: this.overlay.scrollStrategies.close(),
2690
3036
  };
2691
3037
  this.overlayRef = this.overlay.create(cfg);
2692
3038
  forwardOverlayTokens(this.overlayRef, this.host.nativeElement, this.panelTokens);
2693
- this.overlayRef.backdropClick().subscribe(() => this.close());
3039
+ closeOnOutsidePointer(this.overlayRef, (target) => this.host.nativeElement.contains(target), () => this.close());
2694
3040
  this.overlayRef.keydownEvents().subscribe((event) => {
2695
3041
  if (event.key === 'Escape') {
2696
3042
  event.preventDefault();
@@ -2736,53 +3082,116 @@ class DatePickerComponent extends DsControlValueAccessor {
2736
3082
  return;
2737
3083
  }
2738
3084
  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);
3085
+ this.commitRaw(element, element.value);
2742
3086
  }
2743
- /** Backspace/Delete hop over mask separators — only digits are editable. */
3087
+ /** Per-key editing kept inside the caret's mask slot: typed digits fill their
3088
+ * own segment, Backspace/Delete never shift digits across a separator, so a
3089
+ * correction can't corrupt a neighbouring segment or fling the caret away.
3090
+ * A non-collapsed selection is handled here too (never natively erased) —
3091
+ * only IME/paste fall through to the stream re-mask in onFieldInput/onFieldPaste. */
2744
3092
  onFieldKeydown(event) {
2745
3093
  if (!this.allowInput()) {
2746
3094
  return;
2747
3095
  }
2748
3096
  const element = event.target;
2749
- const start = element.selectionStart ?? 0;
2750
- if (event.key === 'Backspace' && start === element.selectionEnd) {
3097
+ const key = event.key;
3098
+ const plain = !event.ctrlKey && !event.metaKey && !event.altKey;
3099
+ const isDigit = key.length === 1 && key >= '0' && key <= '9' && plain;
3100
+ if (key.length === 1 && plain && !isDigit) {
3101
+ // Reject non-numeric characters outright, as typed.
2751
3102
  event.preventDefault();
2752
- const removeIndex = this.countDigits(element.value.slice(0, start)) - 1;
2753
- this.commitRaw(element, this.removeDigit(element.value, removeIndex), removeIndex);
3103
+ return;
2754
3104
  }
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);
3105
+ if (!isDigit && key !== 'Backspace' && key !== 'Delete') {
3106
+ return;
3107
+ }
3108
+ event.preventDefault();
3109
+ const layout = this.layout();
3110
+ const segments = parseFieldText(element.value, layout);
3111
+ const caret = element.selectionStart ?? element.value.length;
3112
+ if (element.selectionStart !== element.selectionEnd) {
3113
+ // A selection is never natively erased: clear the digits it spans
3114
+ // through the segment model, so `_` placeholders can't be typed over or
3115
+ // deleted directly — only digits are real, editable content.
3116
+ const selectionEnd = element.selectionEnd ?? caret;
3117
+ const firstSel = caretToSlot(segments, layout, caret);
3118
+ const lastSel = caretToSlot(segments, layout, selectionEnd);
3119
+ const cleared = segments.slice();
3120
+ for (let index = firstSel.slot; index <= lastSel.slot; index++) {
3121
+ cleared[index] = '';
3122
+ }
3123
+ const edit = isDigit
3124
+ ? editType(cleared, layout, firstSel.slot, 0, key)
3125
+ : { segments: cleared, slot: firstSel.slot, offset: 0 };
3126
+ const text = this.toFieldText(edit.segments, layout);
3127
+ this.applyEditedText(element, text, text ? slotToCaret(edit.segments, layout, edit.slot, edit.offset) : 0);
3128
+ return;
3129
+ }
3130
+ const { slot, offset } = caretToSlot(segments, layout, caret);
3131
+ const edit = isDigit
3132
+ ? editType(segments, layout, slot, offset, key)
3133
+ : key === 'Backspace'
3134
+ ? editBackspace(segments, layout, slot, offset)
3135
+ : editDelete(segments, layout, slot, offset);
3136
+ if (!edit) {
3137
+ return;
3138
+ }
3139
+ const text = this.toFieldText(edit.segments, layout);
3140
+ this.applyEditedText(element, text, text ? slotToCaret(edit.segments, layout, edit.slot, edit.offset) : 0);
3141
+ }
3142
+ /** Paste digits into the segment model at the caret slot — never a global
3143
+ * flatten — so existing digits elsewhere in the field survive untouched. */
3144
+ onFieldPaste(event) {
3145
+ if (!this.allowInput()) {
3146
+ return;
3147
+ }
3148
+ event.preventDefault();
3149
+ const element = event.target;
3150
+ const layout = this.layout();
3151
+ const pasted = (event.clipboardData?.getData('text') ?? '').replace(/\D/g, '');
3152
+ if (!pasted) {
3153
+ return;
3154
+ }
3155
+ const segments = parseFieldText(element.value, layout);
3156
+ const caret = element.selectionStart ?? element.value.length;
3157
+ const start = caretToSlot(segments, layout, caret);
3158
+ let result = { segments, slot: start.slot, offset: start.offset };
3159
+ for (const digit of pasted) {
3160
+ result = editType(result.segments, layout, result.slot, result.offset, digit);
2759
3161
  }
3162
+ this.applyEditedText(element, this.toFieldText(result.segments, layout), slotToCaret(result.segments, layout, result.slot, result.offset));
2760
3163
  }
2761
3164
  countDigits(text) {
2762
3165
  return text.replace(/\D/g, '').length;
2763
3166
  }
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) {
3167
+ /** Rebuild `raw` as a digit stream (IME / other input-event fallback), split
3168
+ * per slot by its fixed width, then render fixed-width so it matches the
3169
+ * overlay — empty when no digits remain. */
3170
+ commitRaw(element, raw) {
3171
+ const layout = this.layout();
3172
+ const capacity = layout.slots.reduce((sum, slot) => sum + slot.maxLength, 0);
3173
+ const digits = raw.replace(/\D/g, '').slice(0, capacity);
3174
+ const segments = [];
3175
+ let index = 0;
3176
+ for (const slot of layout.slots) {
3177
+ segments.push(digits.slice(index, index + slot.maxLength));
3178
+ index += slot.maxLength;
3179
+ }
3180
+ const text = this.toFieldText(segments, layout);
3181
+ this.applyEditedText(element, text, this.caretAfterFill(segments, layout));
3182
+ }
3183
+ /** Write masked text + caret into the DOM, then parse and validate it. */
3184
+ applyEditedText(element, text, caret) {
2773
3185
  this.editing = true;
3186
+ this.writeBackText(element, text, caret);
2774
3187
  const spec = this.formatSpec();
2775
3188
  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);
3189
+ this.rangeText.set(text);
3190
+ this.applyRangeText(text, spec, false);
2780
3191
  return;
2781
3192
  }
2782
- const masked = applyMask(raw, spec);
2783
- this.writeBack(element, masked, targetDigits);
2784
- this.inputText.set(masked);
2785
- const parsed = parseDate(masked, spec);
3193
+ this.inputText.set(text);
3194
+ const parsed = parseDate(text, spec);
2786
3195
  if (!parsed) {
2787
3196
  // Incomplete input is not an error yet; a full-but-bad value is caught on blur.
2788
3197
  this.typedInvalid.set(false);
@@ -2808,9 +3217,10 @@ class DatePickerComponent extends DsControlValueAccessor {
2808
3217
  return;
2809
3218
  }
2810
3219
  const text = this.inputText();
2811
- if (!text) {
3220
+ if (this.countDigits(text) === 0) {
2812
3221
  this.typedInvalid.set(false);
2813
3222
  this.value.set(null);
3223
+ this.inputText.set('');
2814
3224
  return;
2815
3225
  }
2816
3226
  const parsed = parseDate(text, spec);
@@ -2823,42 +3233,50 @@ class DatePickerComponent extends DsControlValueAccessor {
2823
3233
  this.typedInvalid.set(true);
2824
3234
  }
2825
3235
  }
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;
3236
+ /** Force the DOM value to `text` (over-typed digits can't accumulate) and
3237
+ * place the caret at `caret`. Setting `value` first parks the caret at the
3238
+ * end, so the explicit range must follow; the later `[value]` binding writes
3239
+ * the same string, which leaves the caret untouched. */
3240
+ writeBackText(element, text, caret) {
3241
+ if (element.value !== text) {
3242
+ element.value = text;
2831
3243
  }
2832
- const caret = this.caretAfterDigits(masked, targetDigits);
2833
3244
  element.setSelectionRange(caret, caret);
2834
3245
  }
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
- }
3246
+ /** Caret just past the last digit filled by a flat digit stream (commitRaw's
3247
+ * fallback path) — the first slot short of its max length, or the very end
3248
+ * once every slot is full. Empty segments naturally resolve to 0. */
3249
+ caretAfterFill(segments, layout) {
3250
+ for (let slot = 0; slot < segments.length; slot++) {
3251
+ if (segments[slot].length < layout.slots[slot].maxLength) {
3252
+ return slotToCaret(segments, layout, slot, segments[slot].length);
2851
3253
  }
2852
3254
  }
2853
- return text.length;
3255
+ const last = segments.length - 1;
3256
+ return slotToCaret(segments, layout, last, layout.slots[last].maxLength);
2854
3257
  }
2855
3258
  /** Parse the combined range text, flag malformed segments, commit on blur. */
2856
3259
  applyRangeText(text, spec, commit) {
2857
- const perDate = spec.segments.reduce((sum, seg) => sum + seg.length, 0);
2858
- const digits = text.replace(/\D/g, '').length;
3260
+ if (this.countDigits(text) === 0) {
3261
+ this.rangeInvalid.set(false);
3262
+ this.value.set(null);
3263
+ if (commit) {
3264
+ this.rangeText.set('');
3265
+ }
3266
+ return;
3267
+ }
3268
+ const layout = rangeFieldLayout(spec);
3269
+ const slots = parseFieldText(text, layout);
3270
+ const perDate = spec.segments.length;
3271
+ const startFilled = slots
3272
+ .slice(0, perDate)
3273
+ .every((s, i) => s.length === spec.segments[i].length);
3274
+ const endFilled = slots
3275
+ .slice(perDate, perDate * 2)
3276
+ .every((s, i) => s.length === spec.segments[i].length);
2859
3277
  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));
3278
+ const startBad = startFilled && (!start || this.isDayDisabled(start));
3279
+ const endBad = endFilled && (!end || this.isDayDisabled(end));
2862
3280
  this.rangeInvalid.set(startBad || endBad);
2863
3281
  if (start && end && !startBad && !endBad) {
2864
3282
  const ordered = start.getTime() <= end.getTime() ? [start, end] : [end, start];
@@ -2951,7 +3369,7 @@ class DatePickerComponent extends DsControlValueAccessor {
2951
3369
  useExisting: forwardRef(() => DatePickerComponent),
2952
3370
  multi: true,
2953
3371
  },
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"] }] });
3372
+ ], 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 (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-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 .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(--text-primary)}.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
3373
  }
2956
3374
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DatePickerComponent, decorators: [{
2957
3375
  type: Component,
@@ -2961,7 +3379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
2961
3379
  useExisting: forwardRef(() => DatePickerComponent),
2962
3380
  multi: true,
2963
3381
  },
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"] }]
3382
+ ], 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 (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-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 .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(--text-primary)}.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
3383
  }], 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
3384
 
2967
3385
  function pad2(value) {
@@ -3320,18 +3738,31 @@ class TimePickerComponent extends DsControlValueAccessor {
3320
3738
  '--ds-time-picker-border',
3321
3739
  '--ds-time-picker-shadow',
3322
3740
  ];
3741
+ /** Selected time, or `[start, end]` tuple when `mode="range"`. Two-way bound. */
3323
3742
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3743
+ /** Single time or `[start, end]` range picker. */
3324
3744
  mode = input('single', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
3745
+ /** Minute increment shown in the picker columns. */
3325
3746
  minuteStep = input(1, { ...(ngDevMode ? { debugName: "minuteStep" } : /* istanbul ignore next */ {}), transform: numberAttribute });
3747
+ /** Earliest selectable time ("HH:MM"). */
3326
3748
  minTime = input(null, ...(ngDevMode ? [{ debugName: "minTime" }] : /* istanbul ignore next */ []));
3749
+ /** Latest selectable time ("HH:MM"). */
3327
3750
  maxTime = input(null, ...(ngDevMode ? [{ debugName: "maxTime" }] : /* istanbul ignore next */ []));
3751
+ /** Predicate marking individual times unselectable. */
3328
3752
  disabledTime = input(null, ...(ngDevMode ? [{ debugName: "disabledTime" }] : /* istanbul ignore next */ []));
3753
+ /** Trigger height — sm/md/lg. */
3329
3754
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3755
+ /** Disables the picker and blocks all interaction. */
3330
3756
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3757
+ /** Applies error styling and marks the trigger `aria-invalid`. */
3331
3758
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3759
+ /** Helper text shown below the picker. */
3332
3760
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
3761
+ /** Shown in the trigger when no time is set. */
3333
3762
  placeholder = input('--:--', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
3763
+ /** Shows an inline clear button when a value is set — single mode only. */
3334
3764
  clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3765
+ /** Accessible name for the trigger(s), suffixed "(from)"/"(to)" in range mode. */
3335
3766
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3336
3767
  /** Override the DS-config format for this instance. */
3337
3768
  format = input(null, ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
@@ -3580,8 +4011,11 @@ class BreadcrumbsComponent {
3580
4011
  * Pass an explicit array to opt out of the service (per-page override).
3581
4012
  */
3582
4013
  items = input(null, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
4014
+ /** Icon between crumbs; falls back to `DS_CONFIG.breadcrumbs.separator`, then `chevronRight`. */
3583
4015
  separator = input(null, ...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
4016
+ /** Whether crumbs render as links; falls back to `DS_CONFIG.breadcrumbs.clickable`, then `true`. */
3584
4017
  clickable = input(null, ...(ngDevMode ? [{ debugName: "clickable" }] : /* istanbul ignore next */ []));
4018
+ /** Fires when a clickable crumb with `href` is activated; default navigation is always prevented. */
3585
4019
  navigate = output();
3586
4020
  resolvedItems = computed(() => this.items() ?? this.svc.items(), ...(ngDevMode ? [{ debugName: "resolvedItems" }] : /* istanbul ignore next */ []));
3587
4021
  effectiveSeparator = computed(() => this.separator() ?? this.cfg.breadcrumbs?.separator ?? 'chevronRight', ...(ngDevMode ? [{ debugName: "effectiveSeparator" }] : /* istanbul ignore next */ []));
@@ -3605,7 +4039,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3605
4039
  const SIDENAV = new InjectionToken('SIDENAV');
3606
4040
 
3607
4041
  class SidenavComponent {
4042
+ /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */
3608
4043
  collapsed = input(false, { ...(ngDevMode ? { debugName: "collapsed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4044
+ /** Brand/logo text shown at the top of the rail. */
3609
4045
  brand = input('', ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
3610
4046
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3611
4047
  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 +4055,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3619
4055
  }], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }] } });
3620
4056
 
3621
4057
  class SidenavGroupComponent {
4058
+ /** Group heading text. */
3622
4059
  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.
4060
+ /** Optional group icon; omit to project custom content via the `[icon]` slot instead. */
3625
4061
  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.
4062
+ /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */
3628
4063
  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.
4064
+ /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */
3631
4065
  expanded = model(true, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
3632
4066
  toggle() {
3633
4067
  if (!this.expandable()) {
@@ -3644,8 +4078,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3644
4078
  }], 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
4079
 
3646
4080
  class TooltipPanelComponent {
4081
+ /** Tooltip text content. */
3647
4082
  text = input.required(...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
4083
+ /** Side of the trigger the panel is positioned on; also drives the arrow class. */
3648
4084
  placement = input.required(...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
4085
+ /** Element `id`, referenced by the trigger's `aria-describedby`. */
3649
4086
  panelId = input('', ...(ngDevMode ? [{ debugName: "panelId" }] : /* istanbul ignore next */ []));
3650
4087
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3651
4088
  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 +4227,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3790
4227
  }] } });
3791
4228
 
3792
4229
  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).
4230
+ /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */
3796
4231
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4232
+ /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */
3797
4233
  label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4234
+ /** Plain `href` target, used when `routerLink` is not set. */
3798
4235
  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']`).
4236
+ /** Angular `RouterLink` target — string or array form for dynamic segments. */
3801
4237
  routerLink = input(null, ...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
4238
+ /** Applies the active style; also drives `aria-current` when not using `routerLink`. */
3802
4239
  active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4240
+ /** Numeric count shown at the end of the item. */
3803
4241
  badge = input(null, ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
4242
+ /** Shows an alert dot alongside the badge. */
3804
4243
  hasAlert = input(false, { ...(ngDevMode ? { debugName: "hasAlert" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4244
+ /** Disables the item — non-navigable and styled as inactive. */
3805
4245
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3806
4246
  sidenav = inject(SIDENAV, { optional: true });
3807
4247
  /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */
@@ -3844,11 +4284,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
3844
4284
  }] });
3845
4285
 
3846
4286
  class PageHeaderComponent {
4287
+ /** Small label shown above the title. */
3847
4288
  eyebrow = input('', ...(ngDevMode ? [{ debugName: "eyebrow" }] : /* istanbul ignore next */ []));
4289
+ /** Page title, rendered as the `h1`. */
3848
4290
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4291
+ /** Supporting line shown under the title. */
3849
4292
  subtitle = input('', ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
4293
+ /** Tightens spacing for dense layouts. */
3850
4294
  compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4295
+ /** Shows a rule under the whole header. */
3851
4296
  divider = input(false, { ...(ngDevMode ? { debugName: "divider" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4297
+ /** Shows a rule under the meta row only. */
3852
4298
  metaDivider = input(false, { ...(ngDevMode ? { debugName: "metaDivider" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3853
4299
  classes = computed(() => {
3854
4300
  const parts = ['page-header'];
@@ -3864,21 +4310,28 @@ class PageHeaderComponent {
3864
4310
  return parts.join(' ');
3865
4311
  }, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3866
4312
  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"] });
4313
+ 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
4314
  }
3869
4315
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: PageHeaderComponent, decorators: [{
3870
4316
  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"] }]
4317
+ 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
4318
  }], 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
4319
 
3874
4320
  let nextId$5 = 0;
3875
4321
  class ModalCardComponent {
4322
+ /** Card width — sm/md/lg/xl/fullscreen. */
3876
4323
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
4324
+ /** Renders the error styling (icon badge and card accent). */
3877
4325
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4326
+ /** Card title, shown in the header and used for `aria-labelledby`. */
3878
4327
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4328
+ /** Shows the header close button. */
3879
4329
  showClose = input(true, { ...(ngDevMode ? { debugName: "showClose" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4330
+ /** Icon badge shown next to the title. */
3880
4331
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4332
+ /** ARIA role for the dialog element. */
3881
4333
  dialogRole = input('dialog', ...(ngDevMode ? [{ debugName: "dialogRole" }] : /* istanbul ignore next */ []));
4334
+ /** Fires when the header close button is clicked. */
3882
4335
  closed = output();
3883
4336
  titleId = `ds-modal-title-${++nextId$5}`;
3884
4337
  classes = computed(() => {
@@ -3892,21 +4345,27 @@ class ModalCardComponent {
3892
4345
  this.closed.emit();
3893
4346
  }
3894
4347
  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"] }] });
4348
+ 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
4349
  }
3897
4350
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalCardComponent, decorators: [{
3898
4351
  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"] }]
4352
+ 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
4353
  }], 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
4354
 
3902
4355
  class ModalComponent {
3903
4356
  doc = inject(DOCUMENT);
3904
4357
  preview = inject(DsStaticPreview);
4358
+ /** Open state, two-way bound. */
3905
4359
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
4360
+ /** Dialog width — sm/md/lg/xl/fullscreen. */
3906
4361
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
4362
+ /** Renders the error styling on the modal card. */
3907
4363
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4364
+ /** Dialog title, shown in the header and used for `aria-labelledby`. */
3908
4365
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4366
+ /** Fires once the close (leave) animation finishes. */
3909
4367
  closed = output();
4368
+ /** Emit this yourself from a confirm action in the projected content — not fired by the modal itself. */
3910
4369
  confirmed = output();
3911
4370
  /** When false, clicking the scrim does not close the modal. */
3912
4371
  closeOnBackdrop = input(true, { ...(ngDevMode ? { debugName: "closeOnBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -3917,6 +4376,7 @@ class ModalComponent {
3917
4376
  /** Playing the scrim fade-out leave animation. */
3918
4377
  closing = signal(false, ...(ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []));
3919
4378
  wasOpen = false;
4379
+ closeFallbackTimer = null;
3920
4380
  constructor() {
3921
4381
  // open → DOM lifecycle: opening renders now; closing keeps the dialog mounted
3922
4382
  // so the leave animation can play (teardown in onLeaveEnd). Skipped in preview
@@ -3929,9 +4389,15 @@ class ModalComponent {
3929
4389
  if (isOpen) {
3930
4390
  this.closing.set(false);
3931
4391
  this.rendered.set(true);
4392
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4393
+ this.closeFallbackTimer = null;
3932
4394
  }
3933
4395
  else if (this.wasOpen) {
3934
4396
  this.closing.set(true);
4397
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
4398
+ // may never fire — this synthetic fallback guarantees teardown anyway.
4399
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4400
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
3935
4401
  }
3936
4402
  this.wasOpen = isOpen;
3937
4403
  });
@@ -3947,6 +4413,8 @@ class ModalComponent {
3947
4413
  ngOnDestroy() {
3948
4414
  // Restore body scroll if the host is torn down mid-open.
3949
4415
  this.doc.body.style.overflow = '';
4416
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4417
+ this.closeFallbackTimer = null;
3950
4418
  }
3951
4419
  onClose() {
3952
4420
  if (this.preview.staticPreview()) {
@@ -3958,9 +4426,17 @@ class ModalComponent {
3958
4426
  // Angular scopes @keyframes names under emulated encapsulation, so
3959
4427
  // event.animationName arrives as `_ngcontent-…_modal-out`, not the bare
3960
4428
  // name — match the suffix or teardown never fires and the lock leaks.
3961
- if (!event.animationName.endsWith('modal-out') || !this.closing()) {
4429
+ if (!event.animationName.endsWith('modal-out')) {
4430
+ return;
4431
+ }
4432
+ this.finishClose();
4433
+ }
4434
+ finishClose() {
4435
+ if (!this.closing()) {
3962
4436
  return;
3963
4437
  }
4438
+ clearTimeout(this.closeFallbackTimer ?? undefined);
4439
+ this.closeFallbackTimer = null;
3964
4440
  this.closing.set(false);
3965
4441
  this.rendered.set(false);
3966
4442
  this.closed.emit();
@@ -3981,11 +4457,11 @@ class ModalComponent {
3981
4457
  this.onClose();
3982
4458
  }
3983
4459
  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"] }] });
4460
+ 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
4461
  }
3986
4462
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ModalComponent, decorators: [{
3987
4463
  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"] }]
4464
+ 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
4465
  }], 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
4466
 
3991
4467
  const MODAL_CONFIRM_DATA = new InjectionToken('MODAL_CONFIRM_DATA');
@@ -4080,13 +4556,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4080
4556
  }] });
4081
4557
 
4082
4558
  class BannerComponent {
4559
+ /** Severity — drives colour, the default icon and the ARIA role/live. */
4083
4560
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
4561
+ /** Optional bold heading above the message. */
4084
4562
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4563
+ /** Show a close button that emits `closed`. */
4085
4564
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4565
+ /** Override the variant's default icon. */
4086
4566
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4567
+ /** Tighter padding, centred items, single-line title. */
4087
4568
  compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4569
+ /** `'stacked'` wraps actions onto their own line; `'row'` keeps them inline. */
4088
4570
  layout = input('stacked', ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
4571
+ /** Coloured accent rail on the leading edge; set false to hide it. */
4089
4572
  accentRail = input(true, { ...(ngDevMode ? { debugName: "accentRail" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4573
+ /** Fires when the user dismisses the banner. */
4090
4574
  closed = output();
4091
4575
  get noRail() {
4092
4576
  return !this.accentRail();
@@ -4144,10 +4628,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4144
4628
  }] } });
4145
4629
 
4146
4630
  class AlertComponent {
4631
+ /** Severity — drives colour, the default icon and the ARIA role/live. */
4147
4632
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
4633
+ /** Optional bold heading above the message. */
4148
4634
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
4635
+ /** Show a close button that emits `closed`. */
4149
4636
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4637
+ /** Override the variant's default icon. */
4150
4638
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4639
+ /** Fires when the user dismisses the alert. */
4151
4640
  closed = output();
4152
4641
  get ariaRole() {
4153
4642
  const value = this.variant();
@@ -4189,15 +4678,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4189
4678
  }] } });
4190
4679
 
4191
4680
  class DropzoneComponent {
4681
+ /** Native `accept` attribute — comma-separated MIME types or extensions. */
4192
4682
  accept = input('', ...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
4683
+ /** Allows picking more than one file at once (ignored when `single`). */
4193
4684
  multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4685
+ /** Files shown in the list — the consumer owns upload state and progress. */
4194
4686
  files = model([], ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
4195
4687
  /** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */
4196
4688
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4197
4689
  /** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */
4198
4690
  single = input(false, { ...(ngDevMode ? { debugName: "single" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4199
4691
  dragOver = signal(false, ...(ngDevMode ? [{ debugName: "dragOver" }] : /* istanbul ignore next */ []));
4692
+ /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */
4200
4693
  filesAdded = output();
4694
+ /** Fires when the user removes a file from the list. */
4201
4695
  fileRemoved = output();
4202
4696
  classes = computed(() => {
4203
4697
  const parts = ['dropzone'];
@@ -4292,11 +4786,15 @@ class MenuItemComponent {
4292
4786
  vcr = inject(ViewContainerRef);
4293
4787
  hostElement = inject((ElementRef));
4294
4788
  button = viewChild.required('button');
4789
+ /** Leading icon shown before the projected label. */
4295
4790
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
4791
+ /** Disables the item and excludes it from `ds-menu`'s roving-tabindex navigation. */
4296
4792
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4793
+ /** Renders the item in an error/destructive style. */
4297
4794
  error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4298
4795
  /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */
4299
4796
  submenu = input(null, ...(ngDevMode ? [{ debugName: "submenu" }] : /* istanbul ignore next */ []));
4797
+ /** Fires on click, unless the item is disabled or opens a submenu. */
4300
4798
  pressed = output();
4301
4799
  /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the
4302
4800
  * rest -1. Defaults true so a standalone item (outside ds-menu) stays
@@ -4542,9 +5040,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4542
5040
  }] });
4543
5041
 
4544
5042
  class EmptyStateComponent {
5043
+ /** State — drives the default icon and shows a loading overlay when `'loading'`. */
4545
5044
  variant = input('none', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5045
+ /** Override the variant's default icon. */
4546
5046
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
5047
+ /** Optional heading below the icon. */
4547
5048
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5049
+ /** Optional supporting text below the title. */
4548
5050
  body = input('', ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
4549
5051
  classes = computed(() => {
4550
5052
  const variant = this.variant();
@@ -4579,8 +5081,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4579
5081
  }], 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
5082
 
4581
5083
  class ProgressComponent {
5084
+ /** Progress 0–100; clamped, and ignored while `indeterminate`. */
4582
5085
  value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
5086
+ /** Colour variant — drives the success/warning/error styling. */
4583
5087
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5088
+ /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */
4584
5089
  indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4585
5090
  /** Accessible name for the progress bar (e.g. "Upload progress"). */
4586
5091
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -4611,8 +5116,11 @@ const ACCORDION = new InjectionToken('ACCORDION');
4611
5116
 
4612
5117
  let nextId$3 = 0;
4613
5118
  class AccordionItemComponent {
5119
+ /** Header text shown in the toggle button. */
4614
5120
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5121
+ /** Open state, two-way bound. */
4615
5122
  expanded = model(false, ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
5123
+ /** Disables the toggle button; state stays as-is. */
4616
5124
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4617
5125
  uid = `ds-accordion-${++nextId$3}`;
4618
5126
  headId = `${this.uid}-head`;
@@ -4680,14 +5188,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4680
5188
  }], propDecorators: { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItemComponent), { isSignal: true }] }] } });
4681
5189
 
4682
5190
  class StepperComponent {
5191
+ /** Step labels, in order — one node is rendered per entry. */
4683
5192
  steps = input([], ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
5193
+ /** Zero-based index of the active step; earlier steps render as completed. */
4684
5194
  current = input(0, ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
5195
+ /** Where the step caption sits relative to its node. */
4685
5196
  labelPosition = input('bottom', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
5197
+ /** Layout axis of the stepper. */
4686
5198
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
4687
5199
  /** When true, each step node renders as a button and emits its index on activation. */
4688
5200
  clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4689
5201
  /** Zero-based indices of steps in an error state. Error wins over completed/current/upcoming. */
4690
5202
  errorSteps = input([], ...(ngDevMode ? [{ debugName: "errorSteps" }] : /* istanbul ignore next */ []));
5203
+ /** Fires with a step's index when it's activated (only when `clickable`). */
4691
5204
  stepClicked = output();
4692
5205
  stepState(index) {
4693
5206
  if (this.errorSteps().includes(index)) {
@@ -4756,6 +5269,7 @@ class PopoverComponent {
4756
5269
  '--ds-popover-max-width',
4757
5270
  '--ds-popover-arrow-size',
4758
5271
  ];
5272
+ /** Cross-axis alignment of the panel against the trigger. */
4759
5273
  align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
4760
5274
  /** Which side of the trigger the panel prefers to appear on. */
4761
5275
  placement = input('bottom', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
@@ -4785,7 +5299,8 @@ class PopoverComponent {
4785
5299
  const positionStrategy = this.overlay
4786
5300
  .position()
4787
5301
  .flexibleConnectedTo(trigger)
4788
- .withPositions(buildPositions(placement, this.align(), arrowOffset));
5302
+ .withPositions(buildPositions(placement, this.align(), arrowOffset))
5303
+ .withViewportMargin(8);
4789
5304
  positionStrategy.positionChanges.subscribe((change) => {
4790
5305
  this.resolvedPlacement.set(connectionToPlacement(change.connectionPair.overlayY, change.connectionPair.overlayX));
4791
5306
  });
@@ -4942,12 +5457,19 @@ function connectionToPlacement(overlayY, overlayX) {
4942
5457
  * AND by static showcases that need to display a toast specimen inline.
4943
5458
  */
4944
5459
  class ToastComponent {
5460
+ /** Severity — drives colour, the default icon/spinner and the ARIA role/live. */
4945
5461
  variant = input('info', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5462
+ /** Optional bold heading above the message. */
4946
5463
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5464
+ /** Body text of the toast. */
4947
5465
  message = input('', ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
5466
+ /** Show a close button that emits `closed`. */
4948
5467
  dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5468
+ /** Override the variant's default icon. */
4949
5469
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
5470
+ /** Optional action button rendered before the dismiss control. */
4950
5471
  action = input(null, ...(ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []));
5472
+ /** Fires when the toast is dismissed or its action is invoked. */
4951
5473
  closed = output();
4952
5474
  isLoading = computed(() => this.variant() === 'loading', ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
4953
5475
  onAction(action) {
@@ -5179,10 +5701,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5179
5701
  let nextId$2 = 0;
5180
5702
  class DrawerComponent {
5181
5703
  doc = inject(DOCUMENT);
5704
+ /** Open state, two-way bound. */
5182
5705
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
5706
+ /** Panel size — sm/md/lg. */
5183
5707
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
5708
+ /** Edge the panel slides in from. */
5184
5709
  placement = input('right', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
5710
+ /** Drawer title, shown in the header and used for `aria-labelledby`. */
5185
5711
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5712
+ /** Fires once the close (slide-out) animation finishes. */
5186
5713
  closed = output();
5187
5714
  titleId = `ds-drawer-title-${++nextId$2}`;
5188
5715
  /** Panel is in the DOM (kept true through the slide-out). */
@@ -5190,6 +5717,7 @@ class DrawerComponent {
5190
5717
  /** Playing the slide-out + scrim-fade leave animation. */
5191
5718
  closing = signal(false, ...(ngDevMode ? [{ debugName: "closing" }] : /* istanbul ignore next */ []));
5192
5719
  wasOpen = false;
5720
+ closeFallbackTimer = null;
5193
5721
  classes = computed(() => {
5194
5722
  const parts = ['drawer', this.placement(), this.size()];
5195
5723
  return parts.join(' ');
@@ -5202,9 +5730,15 @@ class DrawerComponent {
5202
5730
  if (isOpen) {
5203
5731
  this.closing.set(false);
5204
5732
  this.rendered.set(true);
5733
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5734
+ this.closeFallbackTimer = null;
5205
5735
  }
5206
5736
  else if (this.wasOpen) {
5207
5737
  this.closing.set(true);
5738
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
5739
+ // may never fire — this synthetic fallback guarantees teardown anyway.
5740
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5741
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
5208
5742
  }
5209
5743
  this.wasOpen = isOpen;
5210
5744
  });
@@ -5217,6 +5751,8 @@ class DrawerComponent {
5217
5751
  ngOnDestroy() {
5218
5752
  // Restore body scroll if the host is torn down mid-open.
5219
5753
  this.doc.body.style.overflow = '';
5754
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5755
+ this.closeFallbackTimer = null;
5220
5756
  }
5221
5757
  onClose() {
5222
5758
  this.open.set(false);
@@ -5224,11 +5760,21 @@ class DrawerComponent {
5224
5760
  onLeaveEnd(event) {
5225
5761
  // Angular scopes @keyframes names under emulated encapsulation, so
5226
5762
  // 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()) {
5763
+ // not the bare name — match the suffix or teardown never fires.
5764
+ if (!event.animationName.endsWith('drawer-panel-close-right') &&
5765
+ !event.animationName.endsWith('drawer-panel-close-left') &&
5766
+ !event.animationName.endsWith('drawer-panel-close-top') &&
5767
+ !event.animationName.endsWith('drawer-panel-close-bottom')) {
5768
+ return;
5769
+ }
5770
+ this.finishClose();
5771
+ }
5772
+ finishClose() {
5773
+ if (!this.closing()) {
5230
5774
  return;
5231
5775
  }
5776
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5777
+ this.closeFallbackTimer = null;
5232
5778
  this.closing.set(false);
5233
5779
  this.rendered.set(false);
5234
5780
  this.closed.emit();
@@ -5256,8 +5802,11 @@ let nextId$1 = 0;
5256
5802
  * desktop-first layouts. position: fixed resolves against the nearest
5257
5803
  * ancestor containing block, so framed hosts contain the sheet. */
5258
5804
  class BottomSheetComponent {
5805
+ /** Open state, two-way bound. */
5259
5806
  open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
5807
+ /** Sheet title, shown in the header and used for `aria-labelledby`. */
5260
5808
  title = input.required(...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
5809
+ /** Fires once the close (leave) animation finishes. */
5261
5810
  closed = output();
5262
5811
  titleId = `ds-bottom-sheet-title-${++nextId$1}`;
5263
5812
  /**
@@ -5291,6 +5840,7 @@ class BottomSheetComponent {
5291
5840
  velocity = 0;
5292
5841
  previousBodyOverflow = null;
5293
5842
  wasOpen = false;
5843
+ closeFallbackTimer = null;
5294
5844
  constructor() {
5295
5845
  // open → DOM lifecycle. Opening renders immediately; closing keeps the
5296
5846
  // sheet mounted and flips `closing` so the leave animation can play —
@@ -5300,6 +5850,8 @@ class BottomSheetComponent {
5300
5850
  if (isOpen) {
5301
5851
  this.closing.set(false);
5302
5852
  this.rendered.set(true);
5853
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5854
+ this.closeFallbackTimer = null;
5303
5855
  // Reset to first snap point when opening with snap points configured.
5304
5856
  if (this.snapPoints().length > 0) {
5305
5857
  this.activeSnapIndex.set(0);
@@ -5307,6 +5859,10 @@ class BottomSheetComponent {
5307
5859
  }
5308
5860
  else if (this.wasOpen) {
5309
5861
  this.closing.set(true);
5862
+ // Chrome freezes CSS animations on a backgrounded tab, so animationend
5863
+ // may never fire — this synthetic fallback guarantees teardown anyway.
5864
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5865
+ this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);
5310
5866
  }
5311
5867
  this.wasOpen = isOpen;
5312
5868
  });
@@ -5324,6 +5880,10 @@ class BottomSheetComponent {
5324
5880
  });
5325
5881
  });
5326
5882
  }
5883
+ ngOnDestroy() {
5884
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5885
+ this.closeFallbackTimer = null;
5886
+ }
5327
5887
  close() {
5328
5888
  this.dragOffset.set(null);
5329
5889
  this.open.set(false);
@@ -5332,9 +5892,17 @@ class BottomSheetComponent {
5332
5892
  // Angular scopes @keyframes names under emulated encapsulation, so
5333
5893
  // event.animationName arrives as `_ngcontent-…_ds-sheet-down`, not the bare
5334
5894
  // name — match the suffix or teardown never fires and the lock leaks.
5335
- if (!event.animationName.endsWith('ds-sheet-down') || !this.closing()) {
5895
+ if (!event.animationName.endsWith('ds-sheet-down')) {
5896
+ return;
5897
+ }
5898
+ this.finishClose();
5899
+ }
5900
+ finishClose() {
5901
+ if (!this.closing()) {
5336
5902
  return;
5337
5903
  }
5904
+ clearTimeout(this.closeFallbackTimer ?? undefined);
5905
+ this.closeFallbackTimer = null;
5338
5906
  this.closing.set(false);
5339
5907
  this.rendered.set(false);
5340
5908
  this.closed.emit();
@@ -5422,13 +5990,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5422
5990
  }], 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
5991
 
5424
5992
  class TagComponent {
5993
+ /** Fill style — `solid` for high-emphasis, `neutral` for low-emphasis chips. */
5425
5994
  variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5995
+ /** Shows a close button that emits `closed`. */
5426
5996
  closable = input(false, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5997
+ /** Makes the tag clickable, emitting `toggled` on click. */
5427
5998
  interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5999
+ /** Applies the active/selected visual state. */
5428
6000
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5429
6001
  /** Accessible label for the close button (e.g. "Remove Source filter"). */
5430
6002
  closeLabel = input('Remove', ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
6003
+ /** Fires when the close button is clicked. */
5431
6004
  closed = output();
6005
+ /** Fires on click when `interactive` is true. */
5432
6006
  toggled = output();
5433
6007
  onClick() {
5434
6008
  if (this.interactive()) {
@@ -5450,9 +6024,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5450
6024
  }], 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
6025
 
5452
6026
  class W3wComponent {
6027
+ /** Marker rendered before the address (e.g. the "///" glyph). */
5453
6028
  prefix = input('///', ...(ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []));
6029
+ /** The three-word address, rendered after `prefix`. */
5454
6030
  address = input.required(...(ngDevMode ? [{ debugName: "address" }] : /* istanbul ignore next */ []));
6031
+ /** Makes the address clickable/focusable and copies `prefix` + `address` to the clipboard. */
5455
6032
  copyable = input(true, { ...(ngDevMode ? { debugName: "copyable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6033
+ /** Fires with `address` after a successful copy. */
5456
6034
  copied = output();
5457
6035
  onKeyActivate(event) {
5458
6036
  event.preventDefault();
@@ -5484,6 +6062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5484
6062
  }], 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
6063
 
5486
6064
  class PageFooterComponent {
6065
+ /** Visual style — default, compact, or the accented `save`-bar look. */
5487
6066
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
5488
6067
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: PageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5489
6068
  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 +6086,31 @@ class AutocompleteComponent extends DsControlValueAccessor {
5507
6086
  '--ds-autocomplete-panel-bg-color',
5508
6087
  '--ds-autocomplete-option-bg-color-hover',
5509
6088
  ];
6089
+ /** Flat option list — ignored when `optionGroups` is set. */
5510
6090
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
6091
+ /** Options grouped under labelled sections, rendered instead of `options`. */
5511
6092
  optionGroups = input([], ...(ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []));
6093
+ /** Selected value, or an array of values when `multiple`. */
5512
6094
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6095
+ /** Allows selecting more than one option, shown as removable tags. */
5513
6096
  multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6097
+ /** Trigger height — sm/md/lg. */
5514
6098
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
6099
+ /** Trigger width — `fill` stretches to the container, `content` hugs the value. */
5515
6100
  width = input('fill', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
6101
+ /** Placeholder shown in the input when empty. */
5516
6102
  placeholder = input('Select…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
6103
+ /** Disables the trigger and blocks all interaction. */
5517
6104
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6105
+ /** Applies error styling and marks the field `aria-invalid`. */
5518
6106
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6107
+ /** Helper text shown below the field. */
5519
6108
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6109
+ /** Shows a "Create «text»" row when the typed text matches no option. */
5520
6110
  allowCreate = input(false, { ...(ngDevMode ? { debugName: "allowCreate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
5521
6111
  /** Accessible name for the combobox input. */
5522
6112
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6113
+ /** Fires with the typed text when the user picks the create-new option. */
5523
6114
  create = output();
5524
6115
  isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
5525
6116
  hintId = computed(() => this.hint() ? `${this.uid}-hint` : null, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
@@ -5856,7 +6447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5856
6447
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }] } });
5857
6448
 
5858
6449
  class DescriptionListComponent {
5859
- // horizontal = label column + value; stacked = label above value.
6450
+ /** horizontal = label column + value; stacked = label above value. */
5860
6451
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
5861
6452
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DescriptionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5862
6453
  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 +6461,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5870
6461
 
5871
6462
  class DescriptionItemComponent {
5872
6463
  list = inject(DescriptionListComponent, { optional: true });
5873
- // The label. Plain text; rich values go in the projected content.
6464
+ /** The label. Plain text; rich values go in the projected content. */
5874
6465
  term = input('', ...(ngDevMode ? [{ debugName: "term" }] : /* istanbul ignore next */ []));
5875
- // When set, a copy button appears that copies this string to the clipboard.
6466
+ /** When set, a copy button appears that copies this string to the clipboard. */
5876
6467
  copyValue = input(null, ...(ngDevMode ? [{ debugName: "copyValue" }] : /* istanbul ignore next */ []));
5877
6468
  stacked = computed(() => this.list?.orientation() === 'stacked', ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
5878
6469
  copied = signal(false, ...(ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []));
@@ -5886,14 +6477,14 @@ class DescriptionItemComponent {
5886
6477
  setTimeout(() => this.copied.set(false), 1200);
5887
6478
  }
5888
6479
  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"] }] });
6480
+ 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
6481
  }
5891
6482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: DescriptionItemComponent, decorators: [{
5892
6483
  type: Component,
5893
6484
  args: [{ selector: 'ds-description-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: {
5894
6485
  role: 'group',
5895
6486
  '[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"] }]
6487
+ }, 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
6488
  }], propDecorators: { term: [{ type: i0.Input, args: [{ isSignal: true, alias: "term", required: false }] }], copyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyValue", required: false }] }] } });
5898
6489
 
5899
6490
  class StackComponent {
@@ -5944,8 +6535,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
5944
6535
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
5945
6536
 
5946
6537
  class SegmentedComponent {
6538
+ /** Segments to render — each needs a `label` and `value`, optional `icon`/`disabled`. */
5947
6539
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
6540
+ /** Selected segment's `value`, two-way bound. */
5948
6541
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6542
+ /** Accessible name for the segmented control (radiogroup role). */
5949
6543
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
5950
6544
  buttons = viewChildren('seg', ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
5951
6545
  // The single roving-tabindex entry point: the selected segment, or the first
@@ -6019,6 +6613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6019
6613
  }], 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
6614
 
6021
6615
  class ButtonGroupComponent {
6616
+ /** Accessible name for the group, set as `aria-label` on the `role="group"` host. */
6022
6617
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6023
6618
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6024
6619
  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 +6627,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6032
6627
  }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
6033
6628
 
6034
6629
  class ListComponent {
6035
- // Draw a hairline separator between adjacent items.
6630
+ /** Draw a hairline separator between adjacent items. */
6036
6631
  dividers = input(true, { ...(ngDevMode ? { debugName: "dividers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6037
6632
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6038
6633
  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 +6641,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6046
6641
  }], propDecorators: { dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }] } });
6047
6642
 
6048
6643
  class ListItemComponent {
6049
- // Convenience text; richer middle content can be projected as default content.
6644
+ /** Convenience text; richer middle content can be projected as default content. */
6050
6645
  title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
6646
+ /** Secondary line below `title`. */
6051
6647
  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.
6648
+ /** Whole-row navigation: renders an inner button and emits `activated`. */
6054
6649
  clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6650
+ /** Marks the row current via `aria-current`. */
6055
6651
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6652
+ /** Disables the row; only affects the button when `clickable`. */
6056
6653
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6654
+ /** Fires when the clickable row's button is activated. */
6057
6655
  activated = output();
6058
6656
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6059
6657
  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 +6667,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6069
6667
  }], 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
6668
 
6071
6669
  class SplitButtonComponent {
6670
+ /** Label text on the main button. */
6072
6671
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
6672
+ /** Visual style — primary (solid) or outline. */
6073
6673
  variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
6674
+ /** Icon shown on the main button, before the label. */
6074
6675
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
6676
+ /** Disables both the main button and the dropdown trigger. */
6075
6677
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6678
+ /** Items listed in the dropdown menu. */
6076
6679
  menuItems = input([], ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
6077
6680
  /** Accessible name for the dropdown trigger. */
6078
6681
  menuLabel = input('More actions', ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
6682
+ /** Fires when the main button (not the dropdown trigger) is clicked. */
6079
6683
  pressed = output();
6684
+ /** Fires with the chosen menu item. */
6080
6685
  itemSelected = output();
6081
6686
  onItemSelect(item) {
6082
6687
  if (item.disabled) {
@@ -6114,9 +6719,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6114
6719
  }] });
6115
6720
 
6116
6721
  class TimelineItemComponent {
6722
+ /** Primary text for the entry. */
6117
6723
  heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
6724
+ /** Timestamp or date label shown below the content. */
6118
6725
  time = input('', ...(ngDevMode ? [{ debugName: "time" }] : /* istanbul ignore next */ []));
6726
+ /** Icon shown in the marker; omit for a plain dot. */
6119
6727
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
6728
+ /** Semantic accent color for the marker. */
6120
6729
  tone = input('default', ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
6121
6730
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TimelineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6122
6731
  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 +6739,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6130
6739
  }], 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
6740
 
6132
6741
  class OtpInputComponent extends DsControlValueAccessor {
6742
+ /** Entered code, two-way bound. */
6133
6743
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6744
+ /** Number of character cells. */
6134
6745
  length = input(6, ...(ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []));
6746
+ /** Restricts input and the mobile keyboard to digits-only, or allows letters too. */
6135
6747
  mode = input('numeric', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
6748
+ /** Renders each cell as a password dot instead of the typed character. */
6136
6749
  mask = input(false, { ...(ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6750
+ /** Disables all cells and blocks interaction. */
6137
6751
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6752
+ /** Applies error styling and marks each cell `aria-invalid`. */
6138
6753
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6754
+ /** Helper text shown below the cells. */
6139
6755
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6756
+ /** Accessible group label for the cell row. */
6140
6757
  ariaLabel = input('Verification code', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6758
+ /** Fires once, with the full code, on the partial → complete transition. */
6141
6759
  completed = output();
6142
6760
  boxes = viewChildren('box', ...(ngDevMode ? [{ debugName: "boxes" }] : /* istanbul ignore next */ []));
6143
6761
  wasComplete = false;
@@ -6285,14 +6903,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6285
6903
  }], 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
6904
 
6287
6905
  class SliderComponent extends DsControlValueAccessor {
6906
+ /** Current value, or `[low, high]` when `range`. Two-way bound. */
6288
6907
  value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6908
+ /** Minimum selectable value. */
6289
6909
  min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6910
+ /** Maximum selectable value. */
6290
6911
  max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6912
+ /** Increment applied when dragging (snap) or nudging with arrow keys. */
6291
6913
  step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
6914
+ /** Two-thumb range mode — `value` becomes a `[low, high]` tuple. */
6292
6915
  range = input(false, { ...(ngDevMode ? { debugName: "range" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6916
+ /** Disables the slider and blocks all interaction. */
6293
6917
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6918
+ /** Accessible name for the thumb(s) — suffixed "minimum"/"maximum" in `range` mode. */
6294
6919
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
6920
+ /** Applies error styling. */
6295
6921
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6922
+ /** Helper text shown below the slider. */
6296
6923
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6297
6924
  track = viewChild.required('track');
6298
6925
  dragging = -1;
@@ -6463,9 +7090,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6463
7090
 
6464
7091
  class TreeComponent {
6465
7092
  host = inject(ElementRef);
7093
+ /** Root-level nodes; nest via `children`. */
6466
7094
  nodes = input([], ...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
7095
+ /** Two-way set of currently expanded node ids. */
6467
7096
  expandedIds = model(new Set(), ...(ngDevMode ? [{ debugName: "expandedIds" }] : /* istanbul ignore next */ []));
7097
+ /** Two-way id of the currently selected node. */
6468
7098
  selectedId = model(null, ...(ngDevMode ? [{ debugName: "selectedId" }] : /* istanbul ignore next */ []));
7099
+ /** Fires with the node when a row is selected (click or Enter/Space). */
6469
7100
  nodeSelected = output();
6470
7101
  activeId = signal(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
6471
7102
  // Depth-first list of currently-visible nodes; drives rendering and keyboard nav.
@@ -6711,11 +7342,17 @@ class ColorPickerComponent extends DsControlValueAccessor {
6711
7342
  '--ds-color-picker-hue-h',
6712
7343
  '--ds-color-picker-thumb',
6713
7344
  ];
7345
+ /** Selected colour as a hex string, two-way bound. */
6714
7346
  value = model('#2F54FF', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7347
+ /** Swatches shown in the panel — defaults to a built-in palette. */
6715
7348
  presets = input(DEFAULT_PRESETS, ...(ngDevMode ? [{ debugName: "presets" }] : /* istanbul ignore next */ []));
7349
+ /** Disables the trigger and blocks all interaction. */
6716
7350
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7351
+ /** Accessible name for the trigger button and panel. */
6717
7352
  ariaLabel = input('Choose colour', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
7353
+ /** Applies error styling and marks the trigger `aria-invalid`. */
6718
7354
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7355
+ /** Helper text shown below the trigger. */
6719
7356
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
6720
7357
  trigger = viewChild.required('trigger');
6721
7358
  panelTpl = viewChild.required('panel');
@@ -6990,17 +7627,25 @@ class MultiSelectComponent extends DsControlValueAccessor {
6990
7627
  '--ds-multi-select-option-bg-color-active',
6991
7628
  '--ds-multi-select-check-bg-color',
6992
7629
  ];
7630
+ /** Selected values, two-way bound. */
6993
7631
  value = model([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7632
+ /** Options shown in the panel. */
6994
7633
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
7634
+ /** Placeholder shown in the trigger when nothing is selected. */
6995
7635
  placeholder = input('Select…', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
7636
+ /** Placeholder for the in-panel filter input. */
6996
7637
  searchPlaceholder = input('Filter…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
6997
- // 0 / null shows every chip; a positive cap collapses the rest into "+N more".
7638
+ /** Caps the number of chips shown before collapsing the rest into "+N more" — 0/null shows all. */
6998
7639
  maxVisibleChips = input(null, { ...(ngDevMode ? { debugName: "maxVisibleChips" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
7640
+ /** Disables the trigger and blocks all interaction. */
6999
7641
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7642
+ /** Applies error styling and marks the field `aria-invalid`. */
7000
7643
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7644
+ /** Helper text shown below the field. */
7001
7645
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
7646
+ /** Accessible name for the trigger — falls back to `placeholder`. */
7002
7647
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
7003
- // Show a "Select all" row that toggles every (filter-matching, enabled) option.
7648
+ /** Shows a "Select all" row that toggles every filter-matching, enabled option. */
7004
7649
  selectAll = input(false, { ...(ngDevMode ? { debugName: "selectAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7005
7650
  uid = nextControlId('ds-multi-select');
7006
7651
  listboxId = `${this.uid}-listbox`;
@@ -7243,14 +7888,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7243
7888
  }], 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
7889
 
7245
7890
  class CheckboxComponent extends DsBooleanControlValueAccessor {
7891
+ /** Checked state, two-way bound. */
7246
7892
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
7893
+ /** Shows the partial/mixed visual state — independent of `checked`. */
7247
7894
  indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7895
+ /** Disables the checkbox and blocks all interaction. */
7248
7896
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7897
+ /** Native `name` attribute. */
7249
7898
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
7899
+ /** Overrides the generated id used by the native `<input>` and its `<label for>`. */
7250
7900
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
7901
+ /** Applies error styling and marks the input `aria-invalid`. */
7251
7902
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7903
+ /** Helper text shown below the checkbox. */
7252
7904
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
7905
+ /** Checkbox size — sm/md/lg. */
7253
7906
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
7907
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
7254
7908
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7255
7909
  /** Inline label rendered beside the box and wired via for/id. Omit to
7256
7910
  * bring your own <label>. */
@@ -7290,13 +7944,21 @@ class RadioComponent {
7290
7944
  /** Standalone two-way binding. When inside ds-radio-group, isChecked() is
7291
7945
  * derived from the group value instead. */
7292
7946
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
7947
+ /** Disables the radio; a disabled parent `ds-radio-group` also disables it. */
7293
7948
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7949
+ /** Native `name` attribute — overridden by the group's name when inside `ds-radio-group`. */
7294
7950
  name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
7951
+ /** Value compared against the group's selection when inside `ds-radio-group`. */
7295
7952
  value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7953
+ /** Overrides the auto-generated id used for the input and its label's `for`. */
7296
7954
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
7955
+ /** Applies error styling and marks the input `aria-invalid`. */
7297
7956
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7957
+ /** Helper text shown below the control. */
7298
7958
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
7959
+ /** Control size — sm/md/lg. */
7299
7960
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
7961
+ /** Marks the radio required — shows an asterisk on the label and sets `aria-required`. */
7300
7962
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7301
7963
  /** Inline label rendered beside the dot and wired via for/id. Omit to bring
7302
7964
  * your own <label>. */
@@ -7343,12 +8005,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7343
8005
  }], 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
8006
 
7345
8007
  class RadioGroupComponent extends DsControlValueAccessor {
8008
+ /** Selected radio value; two-way bound. */
7346
8009
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
8010
+ /** Native `name` shared by every radio in the group. */
7347
8011
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
8012
+ /** Disables the whole group. */
7348
8013
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8014
+ /** Applies error styling and marks the group `aria-invalid`. */
7349
8015
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8016
+ /** Helper text shown below the group. */
7350
8017
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
8018
+ /** Accessible name for the group when no visible label is provided. */
7351
8019
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
8020
+ /** Visible group label; omit to supply your own. */
7352
8021
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
7353
8022
  isDisabled = computed(() => this.disabled() || this.formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
7354
8023
  uid = nextControlId('ds-radio-group');
@@ -7464,14 +8133,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
7464
8133
  }], 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
8134
 
7466
8135
  class SwitchComponent extends DsBooleanControlValueAccessor {
8136
+ /** On/off state, two-way bound. */
7467
8137
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
8138
+ /** Disables the switch and blocks all interaction. */
7468
8139
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8140
+ /** Native `name` attribute. */
7469
8141
  name = input(null, ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
8142
+ /** Track colour when checked. */
7470
8143
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
8144
+ /** Overrides the generated id used by the native `<input>` and its `<label for>`. */
7471
8145
  inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
8146
+ /** Applies error styling and marks the input `aria-invalid`. */
7472
8147
  invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8148
+ /** Helper text shown below the switch. */
7473
8149
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
8150
+ /** Switch size — sm/md/lg. */
7474
8151
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
8152
+ /** Marks the field required — shows an asterisk and sets `aria-required`. */
7475
8153
  required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7476
8154
  /** Inline label rendered beside the track and wired via for/id. Omit to
7477
8155
  * bring your own <label>. */