@thalassic/ui 22.23.0 → 22.25.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ElementRef, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, afterNextRender, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, makeEnvironmentProviders, contentChildren, Service, Renderer2, effect, TemplateRef, forwardRef, ChangeDetectorRef, Injector, untracked, isDevMode, RendererStyleFlags2, viewChildren, provideEnvironmentInitializer } from '@angular/core';
2
+ import { InjectionToken, inject, ElementRef, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, afterNextRender, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, makeEnvironmentProviders, Renderer2, contentChildren, Service, effect, TemplateRef, forwardRef, ChangeDetectorRef, Injector, untracked, isDevMode, RendererStyleFlags2, LOCALE_ID, viewChildren, provideEnvironmentInitializer } from '@angular/core';
3
3
  import { CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, ViewportRuler } from '@angular/cdk/scrolling';
4
4
  import { eachDayOfInterval, endOfWeek, endOfMonth, startOfWeek, startOfMonth, startOfDay, isSameMonth, format, isSameDay, addDays, subMonths, subWeeks, isBefore, isAfter, differenceInCalendarDays, addHours, differenceInMinutes, isSameWeek, addMonths, addWeeks, endOfDay, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, setMinutes, setHours, setYear } from 'date-fns';
5
5
  import { isPlatformBrowser, NgComponentOutlet, NgTemplateOutlet, LocationStrategy, DOCUMENT as DOCUMENT$1 } from '@angular/common';
@@ -11,11 +11,11 @@ import { Router, ActivatedRoute, RouterLink, NavigationStart, RouterLinkActive }
11
11
  import { AccordionGroup, AccordionTrigger, AccordionPanel, AccordionContent } from '@angular/aria/accordion';
12
12
  import { HttpClient } from '@angular/common/http';
13
13
  import { DomSanitizer } from '@angular/platform-browser';
14
- import { Grid, GridRow, GridCell } from '@angular/aria/grid';
15
14
  import * as i1 from '@thalassic/core';
16
- import { MOTION_ATTRIBUTE, SwipeDirective, MotionService, resolvePagingStep, resistPagingDrag, PanDirective, ViewportService, SWIPE_DEFAULT_MIN_VELOCITY, DRAG_DISMISS_RATIO, PAN_CONFIG, DRAG_DISMISS_POINTER_TYPES, DEFAULT_PAN_CONFIG, deepMerge } from '@thalassic/core';
15
+ import { MOTION_ATTRIBUTE, SwipeDirective, MotionService, resolvePagingStep, resistPagingDrag, PanDirective, ViewportService, SWIPE_DEFAULT_MIN_VELOCITY, DRAG_DISMISS_RATIO, PAN_CONFIG, DRAG_DISMISS_POINTER_TYPES, DEFAULT_PAN_CONFIG, HAPTIC_FEEDBACK, deepMerge } from '@thalassic/core';
16
+ import { Grid, GridRow, GridCell } from '@angular/aria/grid';
17
+ import { InputModalityDetector, ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
17
18
  import { Directionality } from '@angular/cdk/bidi';
18
- import { ConfigurableFocusTrapFactory, InputModalityDetector } from '@angular/cdk/a11y';
19
19
  import { filter as filter$1 } from 'rxjs/operators';
20
20
  import { CdkDialogContainer, DialogRef as DialogRef$1, Dialog as Dialog$1, DIALOG_DATA } from '@angular/cdk/dialog';
21
21
  import { Menu as Menu$1, MenuItem } from '@angular/aria/menu';
@@ -26,7 +26,8 @@ import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1, TabContent } from '@an
26
26
  import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
27
27
 
28
28
  const DEFAULT_ACCESSIBILITY_CONFIG = {
29
- expandTouchTargets: true,
29
+ expandTouchTargets: false,
30
+ enlargeTouchControls: false,
30
31
  };
31
32
 
32
33
  const ACCESSIBILITY_CONFIG = new InjectionToken('ACCESSIBILITY_CONFIG', {
@@ -49,6 +50,13 @@ const FORM_CONTROL_CONFIG = new InjectionToken('FORM_CONTROL_CONFIG', {
49
50
  factory: () => DEFAULT_FORM_CONTROL_CONFIG,
50
51
  });
51
52
 
53
+ /**
54
+ * The element that draws the border of the field a control sits in, provided by a wrapper
55
+ * that frames one or more controls and their addons as a single field. A control with no
56
+ * such wrapper above it draws its own border and is its own frame.
57
+ */
58
+ const FORM_CONTROL_FRAME = new InjectionToken('FORM_CONTROL_FRAME');
59
+
52
60
  class FormControl {
53
61
  // Injections
54
62
  _formControlConfig = inject(FORM_CONTROL_CONFIG);
@@ -58,6 +66,10 @@ class FormControl {
58
66
  * layout before it can hand anything to it.
59
67
  */
60
68
  elementRef = inject(ElementRef);
69
+ /** The frame a wrapper above the control provides, if any; read through `frameElement()`. */
70
+ _providedFrame = inject(FORM_CONTROL_FRAME, {
71
+ optional: true,
72
+ });
61
73
  // Models
62
74
  touched = model(false, /* @ts-ignore */
63
75
  ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
@@ -199,6 +211,31 @@ class FormControl {
199
211
  focusTarget() {
200
212
  return this.elementRef.nativeElement.querySelector(FOCUSABLE_CONTROL_SELECTOR);
201
213
  }
214
+ /**
215
+ * The element that draws the field's border: the wrapper framing the control when it sits
216
+ * in one, otherwise the control's own host. A panel the control opens is aligned to it, so
217
+ * the panel lines up with the field as drawn, its addons included, rather than with an
218
+ * element inside the border. A provided frame counts only while it contains the control: a
219
+ * control rendered in a panel that a grouped control opens inherits the group's frame
220
+ * through injection, yet sits outside it on the page and frames itself.
221
+ */
222
+ frameElement() {
223
+ const hostElement = this.elementRef.nativeElement;
224
+ const frame = this._providedFrame;
225
+ if (frame && frame.nativeElement.contains(hostElement))
226
+ return frame.nativeElement;
227
+ return hostElement;
228
+ }
229
+ /**
230
+ * Hands focus back to the control once a panel it opened has closed, unless a press
231
+ * elsewhere closed it: focus then already belongs to whatever was pressed, and taking it
232
+ * back would make that press only dismiss the panel.
233
+ */
234
+ restoreFocusAfterPanel(cause) {
235
+ if (cause === 'outside-pointer')
236
+ return;
237
+ this.focus();
238
+ }
202
239
  baseControlClasses() {
203
240
  const className = this.CLASS_NAME;
204
241
  const array = [className];
@@ -560,6 +597,29 @@ const OVERLAY_POSITION_MAP = {
560
597
  },
561
598
  };
562
599
 
600
+ /**
601
+ * Each placement mirrored to the opposite side of its origin, alignment kept: the one an
602
+ * overlay falls back to first when its preferred side has no room.
603
+ */
604
+ const OVERLAY_FLIPPED_POSITION_MAP = {
605
+ top: 'bottom',
606
+ 'top-start': 'bottom-start',
607
+ 'top-end': 'bottom-end',
608
+ right: 'left',
609
+ 'right-start': 'left-start',
610
+ 'right-end': 'left-end',
611
+ bottom: 'top',
612
+ 'bottom-start': 'top-start',
613
+ 'bottom-end': 'top-end',
614
+ left: 'right',
615
+ 'left-start': 'right-start',
616
+ 'left-end': 'right-end',
617
+ 'top-left': 'bottom-left',
618
+ 'top-right': 'bottom-right',
619
+ 'bottom-left': 'top-left',
620
+ 'bottom-right': 'top-right',
621
+ };
622
+
563
623
  /** Every step of the theme radius scale, used to tell a token apart from a raw CSS length. */
564
624
  const RADIUS_TOKENS = ['sm', 'md', 'lg', 'xl', '2xl', '3xl'];
565
625
 
@@ -569,10 +629,23 @@ const RADIUS_TOKENS = ['sm', 'md', 'lg', 'xl', '2xl', '3xl'];
569
629
  */
570
630
  const NOW_REFRESH_INTERVAL_MS = 60_000;
571
631
 
632
+ /**
633
+ * The placements an overlay tries, in order: the preferred one, then the same placement
634
+ * mirrored to the opposite side of its origin, then every other. Flipping keeps the
635
+ * alignment, so a panel opened `bottom-start` that has no room below opens `top-start`,
636
+ * still lined up with the start of its trigger, rather than jumping to a centred `top`.
637
+ *
638
+ * @example
639
+ * buildOverlayPositions('bottom-start', { x: 0, y: 4 }).slice(0, 2);
640
+ * // [bottom-start, top-start] — mirrored, alignment kept
641
+ * buildOverlayPositions('right', { x: 4, y: 0 }).slice(0, 2);
642
+ * // [right, left]
643
+ */
572
644
  const buildOverlayPositions = (position, offset) => {
573
645
  const preferred = OVERLAY_POSITION_MAP[position];
574
- const rest = Object.values(OVERLAY_POSITION_MAP).filter(p => p !== preferred);
575
- const positions = [preferred, ...rest];
646
+ const flipped = OVERLAY_POSITION_MAP[OVERLAY_FLIPPED_POSITION_MAP[position]];
647
+ const rest = Object.values(OVERLAY_POSITION_MAP).filter(p => p !== preferred && p !== flipped);
648
+ const positions = [preferred, flipped, ...rest];
576
649
  return positions.map(position => ({
577
650
  ...position,
578
651
  offsetX: Math.sign(position.offsetX ?? 0) * offset.x,
@@ -612,9 +685,41 @@ const createNowSignal = (intervalMs) => {
612
685
  return now.asReadonly();
613
686
  };
614
687
 
688
+ /**
689
+ * How many digits a number carries after its decimal point, read from its
690
+ * shortest round-trip form, so `0.1` has one even though its binary value does
691
+ * not end there.
692
+ *
693
+ * @example
694
+ * decimalPlaces(5); // 0
695
+ * decimalPlaces(0.25); // 2
696
+ * decimalPlaces(1e-7); // 7 — exponent notation, not the "1e-7" text
697
+ */
698
+ const decimalPlaces = (value) => {
699
+ const [mantissa, exponent] = String(Math.abs(value)).split('e');
700
+ const [, fraction = ''] = mantissa.split('.');
701
+ return Math.max(0, fraction.length - Number(exponent ?? 0));
702
+ };
703
+
615
704
  /** Escapes RegExp metacharacters so the string matches literally inside a pattern. */
616
705
  const escapeRegularExpression = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
617
706
 
707
+ /**
708
+ * `booleanAttribute` for an input whose absence means something: an unwritten
709
+ * input stays `undefined` instead of collapsing to `false`, so the component can
710
+ * fall back to a configured default only where the template said nothing.
711
+ *
712
+ * @example
713
+ * optionalBooleanAttribute(undefined); // undefined — not written
714
+ * optionalBooleanAttribute(''); // true — the bare attribute
715
+ * optionalBooleanAttribute(false); // false — an explicit binding
716
+ */
717
+ const optionalBooleanAttribute = (value) => {
718
+ if (value === undefined)
719
+ return undefined;
720
+ return booleanAttribute(value);
721
+ };
722
+
618
723
  /**
619
724
  * Drops `id` from `element`'s `aria-describedby`, leaving the consumer's own descriptions in
620
725
  * place and removing the attribute only once nothing is left in it.
@@ -947,6 +1052,21 @@ function disposeAfterLeaveAnimation(overlayRef) {
947
1052
  });
948
1053
  }
949
1054
 
1055
+ /**
1056
+ * Fades a modal overlay's backdrop out alongside the surface's own exit, rather
1057
+ * than leaving it at full strength until the overlay is disposed and it vanishes
1058
+ * in a single frame. The fade is the stylesheet's backdrop transition, so it
1059
+ * follows the motion level like the rest of the exit. Written inline because a
1060
+ * drag may already have left an inline opacity on the backdrop, which no
1061
+ * stylesheet rule could override, and may have suspended its transition inline.
1062
+ */
1063
+ function fadeOutBackdrop(backdrop, renderer) {
1064
+ if (backdrop === null)
1065
+ return;
1066
+ renderer.removeStyle(backdrop, 'transition');
1067
+ renderer.setStyle(backdrop, 'opacity', '0');
1068
+ }
1069
+
950
1070
  /**
951
1071
  * Dimmed backdrop behind any modal-grade surface — a centered confirm, a
952
1072
  * bottom sheet. Shared with `tls-dialog` so every modal surface renders an
@@ -1021,6 +1141,10 @@ class OverlayManager {
1021
1141
  }),
1022
1142
  });
1023
1143
  this._wireDismissal(this._overlayRef, config);
1144
+ // The pane outlives every attach, so its listener is added once, with the pane.
1145
+ if (config.keepFocusOnPanePress) {
1146
+ this._overlayRef.overlayElement.addEventListener('mousedown', event => event.preventDefault());
1147
+ }
1024
1148
  }
1025
1149
  else {
1026
1150
  // Reused ref (`reuse: true`): re-apply the position strategy so a new
@@ -1030,14 +1154,22 @@ class OverlayManager {
1030
1154
  if (sheet) {
1031
1155
  this._overlayRef.updateSize({ width: '100%' });
1032
1156
  }
1033
- else if (config.minWidth != null) {
1034
- this._overlayRef.updateSize({ minWidth: config.minWidth });
1157
+ else if (config.width != null || config.minWidth != null) {
1158
+ this._overlayRef.updateSize({
1159
+ ...(config.width != null && { width: config.width }),
1160
+ ...(config.minWidth != null && { minWidth: config.minWidth }),
1161
+ });
1035
1162
  }
1036
1163
  this._overlayRef.attach(new TemplatePortal(config.content, this._viewContainerRef));
1037
1164
  this._isOpen.set(true);
1038
1165
  this._ignoreTrailingAuxClick = Boolean(config.ignoreTrailingAuxClick);
1039
1166
  }
1040
1167
  close() {
1168
+ this._close('requested');
1169
+ }
1170
+ // Private
1171
+ /** Closes the overlay and tells the owner what closed it. */
1172
+ _close(cause) {
1041
1173
  if (!this._isOpen())
1042
1174
  return;
1043
1175
  this._isOpen.set(false);
@@ -1057,9 +1189,8 @@ class OverlayManager {
1057
1189
  }
1058
1190
  }
1059
1191
  if (config && config.onClose)
1060
- config.onClose();
1192
+ config.onClose(cause);
1061
1193
  }
1062
- // Private
1063
1194
  _buildPositionStrategy(config) {
1064
1195
  if (config.presentation === 'sheet') {
1065
1196
  return this._overlay.position().global().centerHorizontally().bottom('0');
@@ -1083,12 +1214,17 @@ class OverlayManager {
1083
1214
  overlayRef
1084
1215
  .backdropClick()
1085
1216
  .pipe(takeUntilDestroyed(this._destroyRef))
1086
- .subscribe(() => this.close());
1217
+ .subscribe(() => this._close('backdrop'));
1087
1218
  }
1088
1219
  if (config.closeOnOutsidePointer ?? !hasBackdrop) {
1089
1220
  overlayRef
1090
1221
  .outsidePointerEvents()
1091
1222
  .pipe(takeUntilDestroyed(this._destroyRef), filter(event => event.type === 'click' || event.type === 'auxclick'), filter(event => {
1223
+ const insideElement = config.insideElement;
1224
+ if (!insideElement || !(event.target instanceof Node))
1225
+ return true;
1226
+ return !insideElement.contains(event.target);
1227
+ }), filter(event => {
1092
1228
  // Swallow exactly the first outside `auxclick` after an armed open —
1093
1229
  // the release of the right-click that opened a context menu — then
1094
1230
  // let every later outside pointer dismiss as usual.
@@ -1098,13 +1234,13 @@ class OverlayManager {
1098
1234
  }
1099
1235
  return true;
1100
1236
  }))
1101
- .subscribe(() => this.close());
1237
+ .subscribe(() => this._close('outside-pointer'));
1102
1238
  }
1103
1239
  if (config.closeOnEscape ?? true) {
1104
1240
  overlayRef
1105
1241
  .keydownEvents()
1106
1242
  .pipe(takeUntilDestroyed(this._destroyRef), filter(event => event.key === 'Escape'))
1107
- .subscribe(() => this.close());
1243
+ .subscribe(() => this._close('escape'));
1108
1244
  }
1109
1245
  }
1110
1246
  _dispose() {
@@ -1305,6 +1441,12 @@ class AbstractSelect extends ValueFormControl {
1305
1441
  get listboxId() {
1306
1442
  return `${this.uniqueId}-listbox`;
1307
1443
  }
1444
+ /**
1445
+ * Whether the panel takes exactly the field's width instead of starting at it. A list of
1446
+ * fixed choices may grow past the field so a long option reads whole, as a native select's
1447
+ * does; a list of suggestions for typed text stays as wide as the text it completes.
1448
+ */
1449
+ panelMatchesFieldWidth = false;
1308
1450
  /**
1309
1451
  * Host modifiers for states only one control has, listed alongside the shared ones. Read from
1310
1452
  * within the host-class computation, so signals a control reads here stay reactive.
@@ -1346,9 +1488,13 @@ class AbstractSelect extends ValueFormControl {
1346
1488
  const panelTemplate = this.panelTemplate();
1347
1489
  if (this.notInteractive() || this.isOpen() || !triggerElement || !panelTemplate)
1348
1490
  return;
1491
+ // Anchored to the frame rather than the trigger inside it, so the panel lines up with
1492
+ // the field's outer edges. Measured unrounded: a fluid field's width is fractional.
1493
+ const frameElement = this.frameElement();
1494
+ const fieldWidth = frameElement.getBoundingClientRect().width;
1349
1495
  this.overlay.open({
1350
1496
  content: panelTemplate,
1351
- origin: triggerElement,
1497
+ origin: frameElement,
1352
1498
  positions: [
1353
1499
  { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
1354
1500
  { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },
@@ -1356,15 +1502,21 @@ class AbstractSelect extends ValueFormControl {
1356
1502
  flexibleDimensions: false,
1357
1503
  push: false,
1358
1504
  panelClass: this.panelClass,
1505
+ // No backdrop: a press elsewhere closes the list and lands where it was aimed, focusing
1506
+ // another field on the first press rather than only dismissing the list, as the WAI-ARIA
1507
+ // combobox pattern and a native autocomplete do. Presses on the field itself stay with
1508
+ // the field, and presses in the list leave focus on the trigger, which drives the list
1509
+ // from the keyboard while its options are only pointed at.
1510
+ hasBackdrop: false,
1511
+ insideElement: frameElement,
1512
+ keepFocusOnPanePress: true,
1359
1513
  // The control handles Escape itself via the trigger's keydown handler.
1360
1514
  closeOnEscape: false,
1361
- minWidth: triggerElement.nativeElement.offsetWidth,
1515
+ ...(this.panelMatchesFieldWidth ? { width: fieldWidth } : { minWidth: fieldWidth }),
1362
1516
  reuse: true,
1363
- onClose: () => {
1517
+ onClose: cause => {
1364
1518
  this.activeIndex.set(-1);
1365
- const trigger = this.triggerElement();
1366
- if (trigger)
1367
- trigger.nativeElement.focus();
1519
+ this.restoreFocusAfterPanel(cause);
1368
1520
  this.onClosed();
1369
1521
  },
1370
1522
  });
@@ -1439,9 +1591,12 @@ class AbstractSelect extends ValueFormControl {
1439
1591
  if (this.isOpen())
1440
1592
  this.close();
1441
1593
  }
1442
- else if ((event.key === 'Delete' || event.key === 'Backspace') &&
1594
+ else if (
1595
+ // A read-only trigger keeps focus but offers no clear button, so the keys refuse too.
1596
+ (event.key === 'Delete' || event.key === 'Backspace') &&
1443
1597
  this.clearable() &&
1444
- this.hasValue()) {
1598
+ this.hasValue() &&
1599
+ !this.notInteractive()) {
1445
1600
  event.preventDefault();
1446
1601
  this.clear();
1447
1602
  }
@@ -1620,6 +1775,10 @@ const DEFAULT_ICONS = {
1620
1775
  '<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" />'),
1621
1776
  eyedropper: svg('<path d="m2 22 1-1h3l9-9" /><path d="M3 21v-3l9-9" />' +
1622
1777
  '<path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" />'),
1778
+ calendar: svg('<rect x="3" y="4" width="18" height="18" rx="2" />' +
1779
+ '<line x1="16" y1="2" x2="16" y2="6" /><line x1="8" y1="2" x2="8" y2="6" />' +
1780
+ '<line x1="3" y1="10" x2="21" y2="10" />'),
1781
+ clock: svg('<circle cx="12" cy="12" r="10" /><polyline points="12 6 12 12 16 14" />'),
1623
1782
  };
1624
1783
  function svg(body) {
1625
1784
  return ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" ' +
@@ -1909,6 +2068,330 @@ const ACCORDION_CONFIG = new InjectionToken('ACCORDION_CONFIG', {
1909
2068
  factory: () => DEFAULT_ACCORDION_CONFIG,
1910
2069
  });
1911
2070
 
2071
+ const DEFAULT_RIPPLE_CONFIG = {
2072
+ pointerTypes: ['touch', 'pen'],
2073
+ };
2074
+
2075
+ /** Marks a host while its ink is expanding; the theme's `ripple` mixin animates on it. */
2076
+ const RIPPLE_ACTIVE_CLASS = 'tls-rippling';
2077
+ /**
2078
+ * Marks a host whose contact has ended, so its ink fades out. Ink spreads and holds for as
2079
+ * long as the finger stays down — a held control keeps showing that it is pressed — and only
2080
+ * lets go when the contact does.
2081
+ */
2082
+ const RIPPLE_RELEASED_CLASS = 'tls-ripple-released';
2083
+ /**
2084
+ * How long a touch waits before it inks. A finger landing on a control may be starting a
2085
+ * scroll, and ink struck at once would flash under every flick that happens to begin on
2086
+ * one; waiting out the first moments lets a scroll declare itself first. A tap lifted
2087
+ * sooner inks at once, so no tap goes unanswered. The value sits with Android's tap timeout
2088
+ * and MUI's touch-ripple delay, short enough not to read as lag.
2089
+ */
2090
+ const RIPPLE_TOUCH_DELAY_MS = 80;
2091
+ /** Contact point of the press, relative to the host's own box. */
2092
+ const RIPPLE_X_PROPERTY = '--tls-ripple-x';
2093
+ const RIPPLE_Y_PROPERTY = '--tls-ripple-y';
2094
+ /** Radius the ink has to reach to cover the host from that contact point. */
2095
+ const RIPPLE_DIAMETER_PROPERTY = '--tls-ripple-diameter';
2096
+ /** Suppression hook the press mixin reads: 1 leaves the control at rest. */
2097
+ const PRESS_SCALE_PROPERTY = '--tls-press-scale';
2098
+ /**
2099
+ * How far a pointer may travel before its press is read as the start of a scroll.
2100
+ * A ripple keeps expanding for its full duration, so one spawned by a flick stays
2101
+ * on screen well after the surface has moved — worse than a press, which ends
2102
+ * with the contact.
2103
+ */
2104
+ const RIPPLE_MOVE_SLOP_PX = 8;
2105
+ /**
2106
+ * The `position` values that make an element positioned — the box its absolutely placed
2107
+ * descendants, the ink layer among them, are laid out against.
2108
+ */
2109
+ const POSITIONED_VALUES = new Set(['relative', 'absolute', 'fixed', 'sticky']);
2110
+
2111
+ const RIPPLE_CONFIG = new InjectionToken('RIPPLE_CONFIG', {
2112
+ factory: () => DEFAULT_RIPPLE_CONFIG,
2113
+ });
2114
+
2115
+ /**
2116
+ * Spreads ink from the point of contact when the host is touched, and stands its
2117
+ * press down for that one interaction so a single tap produces a single effect.
2118
+ *
2119
+ * A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
2120
+ * covering the control it is spreading from — a cursor occludes nothing, and a
2121
+ * mouse press is over in a fraction of the ink's duration, leaving most of it
2122
+ * playing after the button has already been released. Which pointers ink is set
2123
+ * app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
2124
+ *
2125
+ * A touch inks a moment after it lands rather than at once, so a flick that
2126
+ * merely begins on the host scrolls without flashing it; a tap lifted sooner inks
2127
+ * on release. The ink spreads and holds while the contact lasts, so a held press
2128
+ * keeps showing, and fades when it ends.
2129
+ *
2130
+ * The ink is expressive and outlives the contact that spawned it, so it is
2131
+ * confined to the `full` motion level; below that the press it suppresses is
2132
+ * restored and acknowledges the touch instead. Removing this directive therefore
2133
+ * takes nothing away — the press underneath is pure CSS and is what a host shows
2134
+ * without it.
2135
+ *
2136
+ * Requires the theme's `ripple` mixin on the element the ink is drawn on — the
2137
+ * host, or the `rippleSurface` it names — which draws the ink from the values
2138
+ * written there.
2139
+ *
2140
+ * @example
2141
+ * ```html
2142
+ * <button class="tls-button" tlsRipple>Save</button>
2143
+ * ```
2144
+ */
2145
+ class RippleDirective {
2146
+ // Injections
2147
+ _elementRef = inject(ElementRef);
2148
+ _document = inject(DOCUMENT);
2149
+ _config = inject(RIPPLE_CONFIG);
2150
+ _renderer = inject(Renderer2);
2151
+ // Inputs
2152
+ /**
2153
+ * Turns the ink off.
2154
+ *
2155
+ * Deliberately not named `disabled`: an input shadows the DOM property of the
2156
+ * same name on the element it sits on, so a directive claiming `disabled` would
2157
+ * capture a host's `[disabled]` binding and leave the control enabled.
2158
+ */
2159
+ rippleDisabled = input(false, { ...(ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2160
+ /**
2161
+ * Pointer types whose presses ink here, overriding the app-wide default for
2162
+ * this one host. Unset defers to `RIPPLE_CONFIG`.
2163
+ */
2164
+ ripplePointerTypes = input(undefined, /* @ts-ignore */
2165
+ ...(ngDevMode ? [{ debugName: "ripplePointerTypes" }] : /* istanbul ignore next */ []));
2166
+ /**
2167
+ * The element the ink is drawn on, when it is not the host itself: a part of the control
2168
+ * that carries its shape, such as a navigation item's indicator pill around its icon. The
2169
+ * whole host still answers the press, and still stands its own press down. Unset draws on
2170
+ * the host.
2171
+ */
2172
+ rippleSurface = input(undefined, /* @ts-ignore */
2173
+ ...(ngDevMode ? [{ debugName: "rippleSurface" }] : /* istanbul ignore next */ []));
2174
+ // Computed
2175
+ _pointerTypes = computed(() => this.ripplePointerTypes() ?? this._config.pointerTypes, /* @ts-ignore */
2176
+ ...(ngDevMode ? [{ debugName: "_pointerTypes" }] : /* istanbul ignore next */ []));
2177
+ // State
2178
+ /** Where the press landed, to measure a scroll against. */
2179
+ _origin = null;
2180
+ /**
2181
+ * Teardown of the listeners that follow a press — its moves and its end — bound
2182
+ * only while one is live. Host listeners would schedule change detection for
2183
+ * every hover movement across every host, although only a press needs them.
2184
+ */
2185
+ _stopTrackingContact = null;
2186
+ /** The ink a touch is waiting to strike, until the wait passes or the contact ends. */
2187
+ _pendingInk = null;
2188
+ constructor() {
2189
+ inject(DestroyRef).onDestroy(() => this._stopTracking());
2190
+ }
2191
+ // Protected methods
2192
+ onPointerDown(event) {
2193
+ const host = this._elementRef.nativeElement;
2194
+ const surface = this._surface();
2195
+ this._stopTracking();
2196
+ // Anything this directive does not ink is the press's to acknowledge, so the
2197
+ // suppression is lifted here rather than on release. `:active` outlives the
2198
+ // contact that set it: dropping the suppression at `pointerup` hands the
2199
+ // control back to a press that is still matching, which then depresses and
2200
+ // settles after the finger has already gone. Restoring it as a press begins
2201
+ // leaves no window to flash in.
2202
+ if (this.rippleDisabled() || !this._inksFor(event.pointerType) || !this._isFullMotion()) {
2203
+ surface.classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2204
+ host.style.removeProperty(PRESS_SCALE_PROPERTY);
2205
+ return;
2206
+ }
2207
+ const bounds = this._inkLayerBounds(surface);
2208
+ const x = event.clientX - bounds.left;
2209
+ const y = event.clientY - bounds.top;
2210
+ this._origin = { x: event.clientX, y: event.clientY };
2211
+ this._trackContact(host, event.pointerId);
2212
+ surface.style.setProperty(RIPPLE_X_PROPERTY, `${x}px`);
2213
+ surface.style.setProperty(RIPPLE_Y_PROPERTY, `${y}px`);
2214
+ surface.style.setProperty(RIPPLE_DIAMETER_PROPERTY, `${this._radiusToCover(bounds, x, y)}px`);
2215
+ // Press and ink both answer the same contact; the ink is the louder of the
2216
+ // two, so the press stands down rather than playing underneath it — from the
2217
+ // moment the contact lands, so a press waiting to ink does not depress first.
2218
+ host.style.setProperty(PRESS_SCALE_PROPERTY, '1');
2219
+ if (event.pointerType !== 'touch') {
2220
+ this._restartInk(surface);
2221
+ return;
2222
+ }
2223
+ this._pendingInk = setTimeout(() => {
2224
+ this._pendingInk = null;
2225
+ this._restartInk(surface);
2226
+ }, RIPPLE_TOUCH_DELAY_MS);
2227
+ }
2228
+ // Private methods
2229
+ /** A tap lifted before its ink was struck inks now, and every ink lets go with the contact. */
2230
+ _onPointerRelease() {
2231
+ const surface = this._surface();
2232
+ if (this._pendingInk) {
2233
+ this._clearPendingInk();
2234
+ this._restartInk(surface);
2235
+ }
2236
+ this._stopTracking();
2237
+ this._release(surface);
2238
+ }
2239
+ /**
2240
+ * The browser took the contact over, most often for a scroll: an ink still waiting is
2241
+ * dropped, and one already spreading fades as on release.
2242
+ */
2243
+ _onPointerCancel() {
2244
+ const struck = !this._pendingInk;
2245
+ this._stopTracking();
2246
+ if (struck)
2247
+ this._release(this._surface());
2248
+ }
2249
+ _onPointerMove(event) {
2250
+ const origin = this._origin;
2251
+ if (!origin)
2252
+ return;
2253
+ const travelled = Math.hypot(event.clientX - origin.x, event.clientY - origin.y);
2254
+ if (travelled <= RIPPLE_MOVE_SLOP_PX)
2255
+ return;
2256
+ // The press turned out to be a scroll. The ink goes immediately — or is never
2257
+ // struck, if the wait has not passed — but the press stays suppressed until
2258
+ // the contact ends: restoring it here would depress the control mid-scroll,
2259
+ // which is what the ink was cancelled for.
2260
+ this._stopTracking();
2261
+ this._surface().classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2262
+ }
2263
+ /**
2264
+ * Follows one press until it ends. Its end is heard on the document rather than the host:
2265
+ * only a touch is captured by the element it lands on, so a pen — or a mouse, where one
2266
+ * inks — lifted after sliding off the host would otherwise never release the ink it holds.
2267
+ * The capture phase hears the end even where a component stops it from bubbling.
2268
+ */
2269
+ _trackContact(host, pointerId) {
2270
+ const onEnd = (event) => {
2271
+ if (event.pointerId !== pointerId)
2272
+ return;
2273
+ if (event.type === 'pointerup') {
2274
+ this._onPointerRelease();
2275
+ }
2276
+ else {
2277
+ this._onPointerCancel();
2278
+ }
2279
+ };
2280
+ const stopMoves = this._renderer.listen(host, 'pointermove', (event) => this._onPointerMove(event));
2281
+ const stopRelease = this._renderer.listen(this._document, 'pointerup', onEnd, { capture: true });
2282
+ const stopCancel = this._renderer.listen(this._document, 'pointercancel', onEnd, {
2283
+ capture: true,
2284
+ });
2285
+ this._stopTrackingContact = () => {
2286
+ stopMoves();
2287
+ stopRelease();
2288
+ stopCancel();
2289
+ };
2290
+ }
2291
+ _stopTracking() {
2292
+ this._origin = null;
2293
+ this._clearPendingInk();
2294
+ if (!this._stopTrackingContact)
2295
+ return;
2296
+ this._stopTrackingContact();
2297
+ this._stopTrackingContact = null;
2298
+ }
2299
+ /**
2300
+ * Whether a press from this kind of pointer inks. `pointerType` is read off the
2301
+ * event rather than from a media query so a device carrying both a touchscreen
2302
+ * and a mouse is answered by the one in use, not by the one it reports as
2303
+ * primary.
2304
+ */
2305
+ _inksFor(pointer) {
2306
+ return this._pointerTypes().some(allowed => allowed === pointer);
2307
+ }
2308
+ /**
2309
+ * Whether the document is at the motion level the ink belongs to.
2310
+ *
2311
+ * Read from the attribute the stylesheet gates on rather than from
2312
+ * `MotionService`, for two reasons: the two can never disagree about a level
2313
+ * they read from one place, and a host is not made to depend on a provider it
2314
+ * would otherwise never need — an app that never configures motion has no
2315
+ * attribute, and the ink is off exactly as the stylesheet has it.
2316
+ */
2317
+ _isFullMotion() {
2318
+ return this._document.documentElement.getAttribute(MOTION_ATTRIBUTE) === 'full';
2319
+ }
2320
+ /** The element the ink is drawn on. */
2321
+ _surface() {
2322
+ return this.rippleSurface() ?? this._elementRef.nativeElement;
2323
+ }
2324
+ /**
2325
+ * The box the ink layer occupies, which the contact point and the ink's reach are measured
2326
+ * against. The layer is laid out against the surface, unless the surface is not positioned:
2327
+ * it is then laid out against the nearest positioned ancestor instead — a stretched link
2328
+ * inks the whole row its hit area covers, not just its own text. Its insets are read back
2329
+ * rather than assumed to be zero, so a layer that bleeds past that box is measured as drawn.
2330
+ */
2331
+ _inkLayerBounds(surface) {
2332
+ const container = POSITIONED_VALUES.has(getComputedStyle(surface).position)
2333
+ ? surface
2334
+ : (surface.offsetParent ?? surface);
2335
+ const bounds = container.getBoundingClientRect();
2336
+ const layer = getComputedStyle(surface, '::before');
2337
+ // An inset that does not resolve to a length — the layer is not laid out — reads as none.
2338
+ const top = parseFloat(layer.top) || 0;
2339
+ const right = parseFloat(layer.right) || 0;
2340
+ const bottom = parseFloat(layer.bottom) || 0;
2341
+ const left = parseFloat(layer.left) || 0;
2342
+ return new DOMRect(bounds.left + left, bounds.top + top, bounds.width - left - right, bounds.height - top - bottom);
2343
+ }
2344
+ /**
2345
+ * Distance from the contact point to the farthest corner. The ink is struck
2346
+ * where the finger landed, so a press near an edge has farther to travel than
2347
+ * one in the middle; covering the control means reaching that corner.
2348
+ */
2349
+ _radiusToCover(bounds, x, y) {
2350
+ const horizontal = Math.max(x, bounds.width - x);
2351
+ const vertical = Math.max(y, bounds.height - y);
2352
+ return Math.hypot(horizontal, vertical);
2353
+ }
2354
+ /**
2355
+ * Retriggers the animation. A class already present does not restart a running
2356
+ * animation, so a second tap arriving before the first has faded would
2357
+ * otherwise be swallowed; reading back a layout property between the removal
2358
+ * and the addition forces the two to land as separate states.
2359
+ */
2360
+ _restartInk(surface) {
2361
+ surface.classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2362
+ void surface.offsetWidth;
2363
+ surface.classList.add(RIPPLE_ACTIVE_CLASS);
2364
+ }
2365
+ /**
2366
+ * Lets the ink go. Its held strength is read back first: the fade is a transition from
2367
+ * that strength, and an ink struck and released in one go — a quick tap — would otherwise
2368
+ * have no style at full strength to fade from, and vanish without being seen.
2369
+ */
2370
+ _release(surface) {
2371
+ if (!surface.classList.contains(RIPPLE_ACTIVE_CLASS))
2372
+ return;
2373
+ void getComputedStyle(surface, '::before').opacity;
2374
+ surface.classList.add(RIPPLE_RELEASED_CLASS);
2375
+ }
2376
+ _clearPendingInk() {
2377
+ if (!this._pendingInk)
2378
+ return;
2379
+ clearTimeout(this._pendingInk);
2380
+ this._pendingInk = null;
2381
+ }
2382
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2383
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: RippleDirective, isStandalone: true, selector: "[tlsRipple]", inputs: { rippleDisabled: { classPropertyName: "rippleDisabled", publicName: "rippleDisabled", isSignal: true, isRequired: false, transformFunction: null }, ripplePointerTypes: { classPropertyName: "ripplePointerTypes", publicName: "ripplePointerTypes", isSignal: true, isRequired: false, transformFunction: null }, rippleSurface: { classPropertyName: "rippleSurface", publicName: "rippleSurface", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerdown": "onPointerDown($event)" } }, ngImport: i0 });
2384
+ }
2385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, decorators: [{
2386
+ type: Directive,
2387
+ args: [{
2388
+ selector: '[tlsRipple]',
2389
+ host: {
2390
+ '(pointerdown)': 'onPointerDown($event)',
2391
+ },
2392
+ }]
2393
+ }], ctorParameters: () => [], propDecorators: { rippleDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleDisabled", required: false }] }], ripplePointerTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripplePointerTypes", required: false }] }], rippleSurface: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleSurface", required: false }] }] } });
2394
+
1912
2395
  /**
1913
2396
  * A stack of collapsible sections. The container owns the policy shared by the
1914
2397
  * whole stack — how many sections may stay open, whether arrowing wraps, the
@@ -1961,7 +2444,7 @@ class Accordion {
1961
2444
  return this.headingLevel();
1962
2445
  }
1963
2446
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Accordion, deps: [], target: i0.ɵɵFactoryTarget.Component });
1964
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Accordion, isStandalone: true, selector: "tls-accordion", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, multiExpandable: { classPropertyName: "multiExpandable", publicName: "multiExpandable", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, preserveContent: { classPropertyName: "preserveContent", publicName: "preserveContent", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, softDisabled: { classPropertyName: "softDisabled", publicName: "softDisabled", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "hasAccessibleName() ? 'group' : null", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, queries: [{ propertyName: "items", predicate: AccordionItem, isSignal: true }], viewQueries: [{ propertyName: "_group", first: true, predicate: AccordionGroup, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n The group directive carries the stack's policy as bindings, which a host\n directive cannot receive, so it sits on an element of its own. That element is\n laid out as `display: contents`, so the items remain direct layout children of\n the accordion and the extra element paints nothing.\n-->\n<div\n ngAccordionGroup\n class=\"tls-accordion__group\"\n [multiExpandable]=\"multiExpandable()\"\n [disabled]=\"disabled()\"\n [softDisabled]=\"softDisabled()\"\n [wrap]=\"wrap()\"\n>\n @for (item of items(); track item) {\n <div\n class=\"tls-accordion__item\"\n [class.tls-accordion__item--expanded]=\"item.expanded()\"\n [class.tls-accordion__item--disabled]=\"item.disabled() || disabled()\"\n >\n <!--\n The heading is a `role=\"heading\"` element rather than an `h2`\u2013`h6`,\n since the rank varies with the surrounding document outline and a tag\n name cannot be chosen at runtime.\n -->\n <div\n class=\"tls-accordion__heading\"\n role=\"heading\"\n [attr.aria-level]=\"resolveHeadingLevel(item)\"\n >\n <button\n ngAccordionTrigger\n class=\"tls-accordion__trigger\"\n type=\"button\"\n [panel]=\"panel\"\n [disabled]=\"item.disabled()\"\n [(expanded)]=\"item.expanded\"\n [attr.aria-label]=\"item.headerTemplateRef() ? item.label() : null\"\n >\n @if (item.headerTemplateRef(); as headerTemplateRef) {\n <span class=\"tls-accordion__header\">\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n </span>\n } @else {\n <span class=\"tls-accordion__text\">\n <span class=\"tls-accordion__label\">{{ item.label() }}</span>\n @if (item.description(); as description) {\n <span class=\"tls-accordion__description\">{{ description }}</span>\n }\n </span>\n }\n\n @if (item.trailingTemplateRef(); as trailingTemplateRef) {\n <span class=\"tls-accordion__trailing\">\n <ng-container [ngTemplateOutlet]=\"trailingTemplateRef\"></ng-container>\n </span>\n }\n\n <tls-icon class=\"tls-accordion__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <div\n #panel=\"ngAccordionPanel\"\n ngAccordionPanel\n class=\"tls-accordion__panel\"\n [preserveContent]=\"preserveContent()\"\n >\n <div class=\"tls-accordion__content\">\n <div class=\"tls-accordion__body\">\n <ng-template ngAccordionContent>\n <ng-container [ngTemplateOutlet]=\"item.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: AccordionGroup, selector: "[ngAccordionGroup]", inputs: ["disabled", "multiExpandable", "softDisabled", "wrap"], exportAs: ["ngAccordionGroup"] }, { kind: "directive", type: AccordionTrigger, selector: "[ngAccordionTrigger]", inputs: ["panel", "id", "disabled", "expanded"], outputs: ["expandedChange"], exportAs: ["ngAccordionTrigger"] }, { kind: "directive", type: AccordionPanel, selector: "[ngAccordionPanel]", inputs: ["id"], exportAs: ["ngAccordionPanel"] }, { kind: "directive", type: AccordionContent, selector: "ng-template[ngAccordionContent]" }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2447
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Accordion, isStandalone: true, selector: "tls-accordion", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, multiExpandable: { classPropertyName: "multiExpandable", publicName: "multiExpandable", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, preserveContent: { classPropertyName: "preserveContent", publicName: "preserveContent", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, softDisabled: { classPropertyName: "softDisabled", publicName: "softDisabled", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "hasAccessibleName() ? 'group' : null", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, queries: [{ propertyName: "items", predicate: AccordionItem, isSignal: true }], viewQueries: [{ propertyName: "_group", first: true, predicate: AccordionGroup, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n The group directive carries the stack's policy as bindings, which a host\n directive cannot receive, so it sits on an element of its own. That element is\n laid out as `display: contents`, so the items remain direct layout children of\n the accordion and the extra element paints nothing.\n-->\n<div\n ngAccordionGroup\n class=\"tls-accordion__group\"\n [multiExpandable]=\"multiExpandable()\"\n [disabled]=\"disabled()\"\n [softDisabled]=\"softDisabled()\"\n [wrap]=\"wrap()\"\n>\n @for (item of items(); track item) {\n <div\n class=\"tls-accordion__item\"\n [class.tls-accordion__item--expanded]=\"item.expanded()\"\n [class.tls-accordion__item--disabled]=\"item.disabled() || disabled()\"\n >\n <!--\n The heading is a `role=\"heading\"` element rather than an `h2`\u2013`h6`,\n since the rank varies with the surrounding document outline and a tag\n name cannot be chosen at runtime.\n -->\n <div\n class=\"tls-accordion__heading\"\n role=\"heading\"\n [attr.aria-level]=\"resolveHeadingLevel(item)\"\n >\n <button\n ngAccordionTrigger\n class=\"tls-accordion__trigger\"\n tlsRipple\n type=\"button\"\n [panel]=\"panel\"\n [disabled]=\"item.disabled()\"\n [(expanded)]=\"item.expanded\"\n [attr.aria-label]=\"item.headerTemplateRef() ? item.label() : null\"\n >\n @if (item.headerTemplateRef(); as headerTemplateRef) {\n <span class=\"tls-accordion__header\">\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n </span>\n } @else {\n <span class=\"tls-accordion__text\">\n <span class=\"tls-accordion__label\">{{ item.label() }}</span>\n @if (item.description(); as description) {\n <span class=\"tls-accordion__description\">{{ description }}</span>\n }\n </span>\n }\n\n @if (item.trailingTemplateRef(); as trailingTemplateRef) {\n <span class=\"tls-accordion__trailing\">\n <ng-container [ngTemplateOutlet]=\"trailingTemplateRef\"></ng-container>\n </span>\n }\n\n <tls-icon class=\"tls-accordion__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <div\n #panel=\"ngAccordionPanel\"\n ngAccordionPanel\n class=\"tls-accordion__panel\"\n [preserveContent]=\"preserveContent()\"\n >\n <div class=\"tls-accordion__content\">\n <div class=\"tls-accordion__body\">\n <ng-template ngAccordionContent>\n <ng-container [ngTemplateOutlet]=\"item.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: AccordionGroup, selector: "[ngAccordionGroup]", inputs: ["disabled", "multiExpandable", "softDisabled", "wrap"], exportAs: ["ngAccordionGroup"] }, { kind: "directive", type: AccordionTrigger, selector: "[ngAccordionTrigger]", inputs: ["panel", "id", "disabled", "expanded"], outputs: ["expandedChange"], exportAs: ["ngAccordionTrigger"] }, { kind: "directive", type: AccordionPanel, selector: "[ngAccordionPanel]", inputs: ["id"], exportAs: ["ngAccordionPanel"] }, { kind: "directive", type: AccordionContent, selector: "ng-template[ngAccordionContent]" }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
1965
2448
  }
1966
2449
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Accordion, decorators: [{
1967
2450
  type: Component,
@@ -1972,6 +2455,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1972
2455
  AccordionContent,
1973
2456
  Icon,
1974
2457
  NgTemplateOutlet,
2458
+ RippleDirective,
1975
2459
  ], host: {
1976
2460
  '[class]': 'hostClasses()',
1977
2461
  // The accordion pattern gives the container no implicit role, so an
@@ -1980,7 +2464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1980
2464
  '[attr.role]': "hasAccessibleName() ? 'group' : null",
1981
2465
  '[attr.aria-label]': 'ariaLabel() ?? null',
1982
2466
  '[attr.aria-labelledby]': 'ariaLabelledby() ?? null',
1983
- }, template: "<!--\n The group directive carries the stack's policy as bindings, which a host\n directive cannot receive, so it sits on an element of its own. That element is\n laid out as `display: contents`, so the items remain direct layout children of\n the accordion and the extra element paints nothing.\n-->\n<div\n ngAccordionGroup\n class=\"tls-accordion__group\"\n [multiExpandable]=\"multiExpandable()\"\n [disabled]=\"disabled()\"\n [softDisabled]=\"softDisabled()\"\n [wrap]=\"wrap()\"\n>\n @for (item of items(); track item) {\n <div\n class=\"tls-accordion__item\"\n [class.tls-accordion__item--expanded]=\"item.expanded()\"\n [class.tls-accordion__item--disabled]=\"item.disabled() || disabled()\"\n >\n <!--\n The heading is a `role=\"heading\"` element rather than an `h2`\u2013`h6`,\n since the rank varies with the surrounding document outline and a tag\n name cannot be chosen at runtime.\n -->\n <div\n class=\"tls-accordion__heading\"\n role=\"heading\"\n [attr.aria-level]=\"resolveHeadingLevel(item)\"\n >\n <button\n ngAccordionTrigger\n class=\"tls-accordion__trigger\"\n type=\"button\"\n [panel]=\"panel\"\n [disabled]=\"item.disabled()\"\n [(expanded)]=\"item.expanded\"\n [attr.aria-label]=\"item.headerTemplateRef() ? item.label() : null\"\n >\n @if (item.headerTemplateRef(); as headerTemplateRef) {\n <span class=\"tls-accordion__header\">\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n </span>\n } @else {\n <span class=\"tls-accordion__text\">\n <span class=\"tls-accordion__label\">{{ item.label() }}</span>\n @if (item.description(); as description) {\n <span class=\"tls-accordion__description\">{{ description }}</span>\n }\n </span>\n }\n\n @if (item.trailingTemplateRef(); as trailingTemplateRef) {\n <span class=\"tls-accordion__trailing\">\n <ng-container [ngTemplateOutlet]=\"trailingTemplateRef\"></ng-container>\n </span>\n }\n\n <tls-icon class=\"tls-accordion__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <div\n #panel=\"ngAccordionPanel\"\n ngAccordionPanel\n class=\"tls-accordion__panel\"\n [preserveContent]=\"preserveContent()\"\n >\n <div class=\"tls-accordion__content\">\n <div class=\"tls-accordion__body\">\n <ng-template ngAccordionContent>\n <ng-container [ngTemplateOutlet]=\"item.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n }\n</div>\n" }]
2467
+ }, template: "<!--\n The group directive carries the stack's policy as bindings, which a host\n directive cannot receive, so it sits on an element of its own. That element is\n laid out as `display: contents`, so the items remain direct layout children of\n the accordion and the extra element paints nothing.\n-->\n<div\n ngAccordionGroup\n class=\"tls-accordion__group\"\n [multiExpandable]=\"multiExpandable()\"\n [disabled]=\"disabled()\"\n [softDisabled]=\"softDisabled()\"\n [wrap]=\"wrap()\"\n>\n @for (item of items(); track item) {\n <div\n class=\"tls-accordion__item\"\n [class.tls-accordion__item--expanded]=\"item.expanded()\"\n [class.tls-accordion__item--disabled]=\"item.disabled() || disabled()\"\n >\n <!--\n The heading is a `role=\"heading\"` element rather than an `h2`\u2013`h6`,\n since the rank varies with the surrounding document outline and a tag\n name cannot be chosen at runtime.\n -->\n <div\n class=\"tls-accordion__heading\"\n role=\"heading\"\n [attr.aria-level]=\"resolveHeadingLevel(item)\"\n >\n <button\n ngAccordionTrigger\n class=\"tls-accordion__trigger\"\n tlsRipple\n type=\"button\"\n [panel]=\"panel\"\n [disabled]=\"item.disabled()\"\n [(expanded)]=\"item.expanded\"\n [attr.aria-label]=\"item.headerTemplateRef() ? item.label() : null\"\n >\n @if (item.headerTemplateRef(); as headerTemplateRef) {\n <span class=\"tls-accordion__header\">\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n </span>\n } @else {\n <span class=\"tls-accordion__text\">\n <span class=\"tls-accordion__label\">{{ item.label() }}</span>\n @if (item.description(); as description) {\n <span class=\"tls-accordion__description\">{{ description }}</span>\n }\n </span>\n }\n\n @if (item.trailingTemplateRef(); as trailingTemplateRef) {\n <span class=\"tls-accordion__trailing\">\n <ng-container [ngTemplateOutlet]=\"trailingTemplateRef\"></ng-container>\n </span>\n }\n\n <tls-icon class=\"tls-accordion__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n </div>\n\n <div\n #panel=\"ngAccordionPanel\"\n ngAccordionPanel\n class=\"tls-accordion__panel\"\n [preserveContent]=\"preserveContent()\"\n >\n <div class=\"tls-accordion__content\">\n <div class=\"tls-accordion__body\">\n <ng-template ngAccordionContent>\n <ng-container [ngTemplateOutlet]=\"item.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n }\n</div>\n" }]
1984
2468
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], multiExpandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiExpandable", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], preserveContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "preserveContent", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], softDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "softDisabled", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AccordionItem), { isSignal: true }] }], _group: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AccordionGroup), { isSignal: true }] }] } });
1985
2469
 
1986
2470
  /**
@@ -2227,6 +2711,7 @@ class TooltipTrigger {
2227
2711
  _tooltipService = inject(TooltipService);
2228
2712
  _renderer = inject(Renderer2);
2229
2713
  _config = inject(TOOLTIP_CONFIG);
2714
+ _inputModalityDetector = inject(InputModalityDetector);
2230
2715
  // Inputs
2231
2716
  tooltipDisabled = input(false, /* @ts-ignore */
2232
2717
  ...(ngDevMode ? [{ debugName: "tooltipDisabled" }] : /* istanbul ignore next */ []));
@@ -2333,6 +2818,20 @@ class TooltipTrigger {
2333
2818
  _followsPointer() {
2334
2819
  return Date.now() - this._lastPointerAt < TOUCH_HANDOVER_WINDOW_MS;
2335
2820
  }
2821
+ /**
2822
+ * Whether a focus arriving now came from the keyboard — the one reader the
2823
+ * focus trigger serves. Focus handed over by a press on the control is not it:
2824
+ * a tap's tooltip was already told not to claim the activation, and a click's
2825
+ * would outlive the hover that click just retired. Neither is focus a script
2826
+ * moves while a pointer is in use, such as a closing dialog returning it to its
2827
+ * opener after a tap on the backdrop: the latest input says which it was.
2828
+ */
2829
+ _isKeyboardFocus() {
2830
+ if (this._followsPointer())
2831
+ return false;
2832
+ const modality = this._inputModalityDetector.mostRecentModality;
2833
+ return modality !== 'mouse' && modality !== 'touch';
2834
+ }
2336
2835
  /** Whether the element is, or wraps, a control a tap activates. */
2337
2836
  _isInteractive(element) {
2338
2837
  const interactiveSelector = 'button, a[href], input, select, textarea, [role="button"]';
@@ -2567,11 +3066,7 @@ class TooltipDelegateDirective extends TooltipTrigger {
2567
3066
  const item = this._resolveItem(event.target);
2568
3067
  if (!item)
2569
3068
  return;
2570
- // The focus trigger serves readers who reach the item without a pointer;
2571
- // focus handed over by a tap or a click is not that reader — a tap's
2572
- // tooltip was already told not to claim the activation, and a click's
2573
- // would outlive the hover that click just retired.
2574
- if (this._followsPointer())
3069
+ if (!this._isKeyboardFocus())
2575
3070
  return;
2576
3071
  // No cursor to anchor to; a focus-triggered tooltip always anchors to the item. An item that
2577
3072
  // is a composite holds the control focus actually landed on, and that is what it describes.
@@ -2704,11 +3199,7 @@ class TooltipDirective extends TooltipTrigger {
2704
3199
  // whose <button> is inside the template — would never hear about the focus its own tooltip
2705
3200
  // is for. `focusin` does, and the control that took focus is what the tooltip describes.
2706
3201
  const focused = event.target;
2707
- // The focus trigger serves readers who reach the control without a pointer;
2708
- // focus handed over by a tap or a click is not that reader — a tap's
2709
- // tooltip was already told not to claim the activation, and a click's
2710
- // would outlive the hover that click just retired.
2711
- if (this._followsPointer())
3202
+ if (!this._isKeyboardFocus())
2712
3203
  return;
2713
3204
  // No cursor to anchor to; a focus-triggered tooltip always anchors to the element.
2714
3205
  this._showHost('focus', null, focused instanceof HTMLElement ? focused : null);
@@ -3236,6 +3727,13 @@ class Badge {
3236
3727
  hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3237
3728
  inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3238
3729
  bordered = input(false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3730
+ /**
3731
+ * Sets the indicator in the flow of the content instead of over a corner of
3732
+ * it — a standalone count, such as one at the end of a list row or beside a
3733
+ * label, where there is no element for it to decorate. `position` and
3734
+ * `inset` have nothing to place it against then and are ignored.
3735
+ */
3736
+ inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3239
3737
  ariaLabel = input(undefined, /* @ts-ignore */
3240
3738
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3241
3739
  // Computed
@@ -3282,18 +3780,20 @@ class Badge {
3282
3780
  array.push(`${className}--inset`);
3283
3781
  if (this.bordered())
3284
3782
  array.push(`${className}--bordered`);
3783
+ if (this.inline())
3784
+ array.push(`${className}--inline`);
3285
3785
  return array;
3286
3786
  }, /* @ts-ignore */
3287
3787
  ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
3288
3788
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, deps: [], target: i0.ɵɵFactoryTarget.Component });
3289
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Badge, isStandalone: true, selector: "tls-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, showZero: { classPropertyName: "showZero", publicName: "showZero", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" });
3789
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Badge, isStandalone: true, selector: "tls-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, showZero: { classPropertyName: "showZero", publicName: "showZero", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" });
3290
3790
  }
3291
3791
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, decorators: [{
3292
3792
  type: Component,
3293
3793
  args: [{ selector: 'tls-badge', imports: [], host: {
3294
3794
  '[class]': 'hostClasses()',
3295
3795
  }, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" }]
3296
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], showZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZero", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
3796
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], showZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZero", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
3297
3797
 
3298
3798
  const DEFAULT_BREADCRUMBS_CONFIG = {
3299
3799
  separatorIcon: 'chevron-right',
@@ -3310,347 +3810,150 @@ class Breadcrumbs {
3310
3810
  // Inputs
3311
3811
  items = input([], /* @ts-ignore */
3312
3812
  ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
3313
- separatorIcon = input(this._config.separatorIcon, /* @ts-ignore */
3314
- ...(ngDevMode ? [{ debugName: "separatorIcon" }] : /* istanbul ignore next */ []));
3315
- /** Overall scale of the trail: type size, link height, and glyph sizes together. */
3316
- size = input(this._config.size, /* @ts-ignore */
3317
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3318
- /**
3319
- * Keeps the trail on a single line: instead of wrapping, crumbs shrink and
3320
- * truncate their labels with an ellipsis. For trails in width-constrained
3321
- * chrome (a header bar) where a second line would break the surrounding
3322
- * layout.
3323
- */
3324
- nowrap = input(false, { ...(ngDevMode ? { debugName: "nowrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3325
- /** Accessible name for the breadcrumb navigation landmark. */
3326
- ariaLabel = input('Breadcrumb', /* @ts-ignore */
3327
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3328
- ariaLabelledby = input(undefined, /* @ts-ignore */
3329
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
3330
- /**
3331
- * Content
3332
- * Optional projected template for an item's inner content (label/icon),
3333
- * rendered in place of the built-in label. The list structure, links,
3334
- * separators, and `aria-current` stay owned by the component. Bind the item
3335
- * with `<ng-template let-item>`; see BreadcrumbItemContext for the full context.
3336
- */
3337
- itemTemplate = contentChild(TemplateRef, /* @ts-ignore */
3338
- ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
3339
- /**
3340
- * Whether each crumb gives way in a `nowrap` trail, in trail order: the marked
3341
- * ones, or the trailing crumb while none is marked.
3342
- */
3343
- truncatingItems = computed(() => {
3344
- const items = this.items();
3345
- const hasMarkedItem = items.some(item => item.truncate === true);
3346
- return items.map((item, index) => hasMarkedItem ? item.truncate === true : index === items.length - 1);
3347
- }, /* @ts-ignore */
3348
- ...(ngDevMode ? [{ debugName: "truncatingItems" }] : /* istanbul ignore next */ []));
3349
- classes = computed(() => {
3350
- const className = 'tls-breadcrumbs';
3351
- const array = [className];
3352
- array.push(`${className}--${this.size()}`);
3353
- if (this.nowrap())
3354
- array.push(`${className}--nowrap`);
3355
- return array;
3356
- }, /* @ts-ignore */
3357
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3358
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, deps: [], target: i0.ɵɵFactoryTarget.Component });
3359
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Breadcrumbs, isStandalone: true, selector: "tls-breadcrumbs", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separatorIcon: { classPropertyName: "separatorIcon", publicName: "separatorIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, nowrap: { classPropertyName: "nowrap", publicName: "nowrap", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let index = $index; let isLastItem = $last) {\n <li\n class=\"tls-breadcrumbs__item\"\n [class.tls-breadcrumbs__item--truncate]=\"truncatingItems()[index]\"\n >\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span\n class=\"tls-breadcrumbs__separator\"\n aria-hidden=\"true\"\n [style.view-transition-name]=\"item.separatorTransitionName\"\n >\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item let-index=\"index\" let-last=\"last\">\n @if (itemTemplate(); as customTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: last }\"\n />\n } @else {\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] });
3360
- }
3361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, decorators: [{
3362
- type: Component,
3363
- args: [{ selector: 'tls-breadcrumbs', imports: [Icon, NgTemplateOutlet, RouterLink], host: {
3364
- role: 'navigation',
3365
- '[class]': 'classes()',
3366
- '[attr.aria-label]': 'ariaLabelledby() ? null : ariaLabel()',
3367
- '[attr.aria-labelledby]': 'ariaLabelledby() ?? null',
3368
- }, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let index = $index; let isLastItem = $last) {\n <li\n class=\"tls-breadcrumbs__item\"\n [class.tls-breadcrumbs__item--truncate]=\"truncatingItems()[index]\"\n >\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span\n class=\"tls-breadcrumbs__separator\"\n aria-hidden=\"true\"\n [style.view-transition-name]=\"item.separatorTransitionName\"\n >\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item let-index=\"index\" let-last=\"last\">\n @if (itemTemplate(); as customTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: last }\"\n />\n } @else {\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n }\n</ng-template>\n" }]
3369
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], separatorIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorIcon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], nowrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "nowrap", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
3370
-
3371
- const DEFAULT_LOADER_CONFIG = {
3372
- size: 'md',
3373
- width: null,
3374
- widthRatio: 5,
3375
- ariaLabel: 'Loading',
3376
- };
3377
-
3378
- const LOADER_CONFIG = new InjectionToken('LOADER_CONFIG', {
3379
- factory: () => DEFAULT_LOADER_CONFIG,
3380
- });
3381
-
3382
- /**
3383
- * Indeterminate spinner for indicating a loading state.
3384
- *
3385
- * @example
3386
- * <!-- predefined size -->
3387
- * <tls-loader size="lg" />
3388
- *
3389
- * @example
3390
- * <!-- custom size in pixels -->
3391
- * <tls-loader [size]="64" />
3392
- *
3393
- * @example
3394
- * <!-- custom size with explicit stroke width -->
3395
- * <tls-loader [size]="64" [width]="8" />
3396
- */
3397
- class Loader {
3398
- _config = inject(LOADER_CONFIG);
3399
- /** Predefined size token or custom pixel value. */
3400
- size = input(this._config.size, /* @ts-ignore */
3401
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3402
- /** Stroke width in pixels. Overrides the size-class default for both token and numeric sizes. */
3403
- width = input(this._config.width, /* @ts-ignore */
3404
- ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
3405
- /** Divisor for auto stroke width when size is a number and width is null (`size / widthRatio`). */
3406
- widthRatio = input(this._config.widthRatio, /* @ts-ignore */
3407
- ...(ngDevMode ? [{ debugName: "widthRatio" }] : /* istanbul ignore next */ []));
3408
- /** Text announced by screen readers via `aria-label`. */
3409
- ariaLabel = input(this._config.ariaLabel, /* @ts-ignore */
3410
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3411
- hostClasses = computed(() => {
3412
- const className = 'tls-loader';
3413
- const size = this.size();
3414
- const array = [className];
3415
- if (typeof size === 'string') {
3416
- array.push(`${className}--${size}`);
3417
- }
3418
- return array;
3419
- }, /* @ts-ignore */
3420
- ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
3421
- hostStyles = computed(() => {
3422
- const size = this.size();
3423
- const width = this.width();
3424
- if (typeof size === 'string' && width === null) {
3425
- return null;
3426
- }
3427
- const styles = {};
3428
- if (typeof size === 'number') {
3429
- styles['--tls-loader-size'] = `${size}px`;
3430
- }
3431
- if (width !== null) {
3432
- styles['--tls-loader-width'] = `${width}px`;
3433
- }
3434
- else {
3435
- styles['--tls-loader-width'] = `${size / this.widthRatio()}px`;
3436
- }
3437
- return styles;
3438
- }, /* @ts-ignore */
3439
- ...(ngDevMode ? [{ debugName: "hostStyles" }] : /* istanbul ignore next */ []));
3440
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Loader, deps: [], target: i0.ɵɵFactoryTarget.Component });
3441
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: Loader, isStandalone: true, selector: "tls-loader", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthRatio: { classPropertyName: "widthRatio", publicName: "widthRatio", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "class": "hostClasses()", "style": "hostStyles()", "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: '', isInline: true });
3442
- }
3443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Loader, decorators: [{
3444
- type: Component,
3445
- args: [{
3446
- selector: 'tls-loader',
3447
- imports: [],
3448
- template: '',
3449
- host: {
3450
- '[class]': 'hostClasses()',
3451
- '[style]': 'hostStyles()',
3452
- role: 'status',
3453
- '[attr.aria-label]': 'ariaLabel()',
3454
- },
3455
- }]
3456
- }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthRatio", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
3457
-
3458
- const DEFAULT_RIPPLE_CONFIG = {
3459
- pointerTypes: ['touch', 'pen'],
3460
- };
3461
-
3462
- /** Marks a host while its ink is expanding; the theme's `ripple` mixin animates on it. */
3463
- const RIPPLE_ACTIVE_CLASS = 'tls-rippling';
3464
- /** Contact point of the press, relative to the host's own box. */
3465
- const RIPPLE_X_PROPERTY = '--tls-ripple-x';
3466
- const RIPPLE_Y_PROPERTY = '--tls-ripple-y';
3467
- /** Radius the ink has to reach to cover the host from that contact point. */
3468
- const RIPPLE_DIAMETER_PROPERTY = '--tls-ripple-diameter';
3469
- /** Suppression hook the press mixin reads: 1 leaves the control at rest. */
3470
- const PRESS_SCALE_PROPERTY = '--tls-press-scale';
3471
- /**
3472
- * How far a pointer may travel before its press is read as the start of a scroll.
3473
- * A ripple keeps expanding for its full duration, so one spawned by a flick stays
3474
- * on screen well after the surface has moved — worse than a press, which ends
3475
- * with the contact.
3476
- */
3477
- const RIPPLE_MOVE_SLOP_PX = 8;
3478
-
3479
- const RIPPLE_CONFIG = new InjectionToken('RIPPLE_CONFIG', {
3480
- factory: () => DEFAULT_RIPPLE_CONFIG,
3481
- });
3482
-
3483
- /**
3484
- * Spreads ink from the point of contact when the host is touched, and stands its
3485
- * press down for that one interaction so a single tap produces a single effect.
3486
- *
3487
- * A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
3488
- * covering the control it is spreading from — a cursor occludes nothing, and a
3489
- * mouse press is over in a fraction of the ink's duration, leaving most of it
3490
- * playing after the button has already been released. Which pointers ink is set
3491
- * app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
3492
- *
3493
- * The ink is expressive and outlives the contact that spawned it, so it is
3494
- * confined to the `full` motion level; below that the press it suppresses is
3495
- * restored and acknowledges the touch instead. Removing this directive therefore
3496
- * takes nothing away — the press underneath is pure CSS and is what a host shows
3497
- * without it.
3498
- *
3499
- * Requires the theme's `ripple` mixin on the same element, which draws the ink
3500
- * from the values written here.
3501
- *
3502
- * @example
3503
- * ```html
3504
- * <button class="tls-button" tlsRipple>Save</button>
3505
- * ```
3506
- */
3507
- class RippleDirective {
3508
- // Injections
3509
- _elementRef = inject(ElementRef);
3510
- _document = inject(DOCUMENT);
3511
- _config = inject(RIPPLE_CONFIG);
3512
- _renderer = inject(Renderer2);
3513
- // Inputs
3514
- /**
3515
- * Turns the ink off.
3516
- *
3517
- * Deliberately not named `disabled`: an input shadows the DOM property of the
3518
- * same name on the element it sits on, so a directive claiming `disabled` would
3519
- * capture a host's `[disabled]` binding and leave the control enabled.
3520
- */
3521
- rippleDisabled = input(false, { ...(ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3522
- /**
3523
- * Pointer types whose presses ink here, overriding the app-wide default for
3524
- * this one host. Unset defers to `RIPPLE_CONFIG`.
3525
- */
3526
- ripplePointerTypes = input(undefined, /* @ts-ignore */
3527
- ...(ngDevMode ? [{ debugName: "ripplePointerTypes" }] : /* istanbul ignore next */ []));
3528
- // Computed
3529
- _pointerTypes = computed(() => this.ripplePointerTypes() ?? this._config.pointerTypes, /* @ts-ignore */
3530
- ...(ngDevMode ? [{ debugName: "_pointerTypes" }] : /* istanbul ignore next */ []));
3531
- // State
3532
- /** Where the press landed, to measure a scroll against. */
3533
- _origin = null;
3534
- /**
3535
- * Teardown of the move listener, bound only while an ink is live. A host
3536
- * listener would schedule change detection for every hover movement across
3537
- * every host, although only a press ever needs the moves.
3538
- */
3539
- _stopTrackingMoves = null;
3540
- constructor() {
3541
- inject(DestroyRef).onDestroy(() => this._stopTracking());
3542
- }
3543
- // Protected methods
3544
- onPointerDown(event) {
3545
- const host = this._elementRef.nativeElement;
3546
- this._stopTracking();
3547
- // Anything this directive does not ink is the press's to acknowledge, so the
3548
- // suppression is lifted here rather than on release. `:active` outlives the
3549
- // contact that set it: dropping the suppression at `pointerup` hands the
3550
- // control back to a press that is still matching, which then depresses and
3551
- // settles after the finger has already gone. Restoring it as a press begins
3552
- // leaves no window to flash in.
3553
- if (this.rippleDisabled() || !this._inksFor(event.pointerType) || !this._isFullMotion()) {
3554
- host.classList.remove(RIPPLE_ACTIVE_CLASS);
3555
- host.style.removeProperty(PRESS_SCALE_PROPERTY);
3556
- return;
3557
- }
3558
- const bounds = host.getBoundingClientRect();
3559
- const x = event.clientX - bounds.left;
3560
- const y = event.clientY - bounds.top;
3561
- this._origin = { x: event.clientX, y: event.clientY };
3562
- this._trackMoves(host);
3563
- host.style.setProperty(RIPPLE_X_PROPERTY, `${x}px`);
3564
- host.style.setProperty(RIPPLE_Y_PROPERTY, `${y}px`);
3565
- host.style.setProperty(RIPPLE_DIAMETER_PROPERTY, `${this._radiusToCover(bounds, x, y)}px`);
3566
- // Press and ink both answer the same contact; the ink is the louder of the
3567
- // two, so the press stands down rather than playing underneath it.
3568
- host.style.setProperty(PRESS_SCALE_PROPERTY, '1');
3569
- this._restartInk(host);
3570
- }
3571
- onPointerRelease() {
3572
- this._stopTracking();
3573
- }
3574
- // Private methods
3575
- _onPointerMove(event) {
3576
- const origin = this._origin;
3577
- if (!origin)
3578
- return;
3579
- const travelled = Math.hypot(event.clientX - origin.x, event.clientY - origin.y);
3580
- if (travelled <= RIPPLE_MOVE_SLOP_PX)
3581
- return;
3582
- // The press turned out to be a scroll. The ink goes immediately, but the
3583
- // press stays suppressed until the contact ends — restoring it here would
3584
- // depress the control mid-scroll, which is what the ink was cancelled for.
3585
- this._stopTracking();
3586
- this._elementRef.nativeElement.classList.remove(RIPPLE_ACTIVE_CLASS);
3587
- }
3588
- _trackMoves(host) {
3589
- this._stopTrackingMoves = this._renderer.listen(host, 'pointermove', (event) => this._onPointerMove(event));
3590
- }
3591
- _stopTracking() {
3592
- this._origin = null;
3593
- if (!this._stopTrackingMoves)
3594
- return;
3595
- this._stopTrackingMoves();
3596
- this._stopTrackingMoves = null;
3597
- }
3598
- /**
3599
- * Whether a press from this kind of pointer inks. `pointerType` is read off the
3600
- * event rather than from a media query so a device carrying both a touchscreen
3601
- * and a mouse is answered by the one in use, not by the one it reports as
3602
- * primary.
3603
- */
3604
- _inksFor(pointer) {
3605
- return this._pointerTypes().some(allowed => allowed === pointer);
3606
- }
3813
+ separatorIcon = input(this._config.separatorIcon, /* @ts-ignore */
3814
+ ...(ngDevMode ? [{ debugName: "separatorIcon" }] : /* istanbul ignore next */ []));
3815
+ /** Overall scale of the trail: type size, link height, and glyph sizes together. */
3816
+ size = input(this._config.size, /* @ts-ignore */
3817
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3607
3818
  /**
3608
- * Whether the document is at the motion level the ink belongs to.
3609
- *
3610
- * Read from the attribute the stylesheet gates on rather than from
3611
- * `MotionService`, for two reasons: the two can never disagree about a level
3612
- * they read from one place, and a host is not made to depend on a provider it
3613
- * would otherwise never need — an app that never configures motion has no
3614
- * attribute, and the ink is off exactly as the stylesheet has it.
3819
+ * Keeps the trail on a single line: instead of wrapping, crumbs shrink and
3820
+ * truncate their labels with an ellipsis. For trails in width-constrained
3821
+ * chrome (a header bar) where a second line would break the surrounding
3822
+ * layout.
3615
3823
  */
3616
- _isFullMotion() {
3617
- return this._document.documentElement.getAttribute(MOTION_ATTRIBUTE) === 'full';
3618
- }
3824
+ nowrap = input(false, { ...(ngDevMode ? { debugName: "nowrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3825
+ /** Accessible name for the breadcrumb navigation landmark. */
3826
+ ariaLabel = input('Breadcrumb', /* @ts-ignore */
3827
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3828
+ ariaLabelledby = input(undefined, /* @ts-ignore */
3829
+ ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
3619
3830
  /**
3620
- * Distance from the contact point to the farthest corner. The ink is struck
3621
- * where the finger landed, so a press near an edge has farther to travel than
3622
- * one in the middle; covering the control means reaching that corner.
3831
+ * Content
3832
+ * Optional projected template for an item's inner content (label/icon),
3833
+ * rendered in place of the built-in label. The list structure, links,
3834
+ * separators, and `aria-current` stay owned by the component. Bind the item
3835
+ * with `<ng-template let-item>`; see BreadcrumbItemContext for the full context.
3623
3836
  */
3624
- _radiusToCover(bounds, x, y) {
3625
- const horizontal = Math.max(x, bounds.width - x);
3626
- const vertical = Math.max(y, bounds.height - y);
3627
- return Math.hypot(horizontal, vertical);
3628
- }
3837
+ itemTemplate = contentChild(TemplateRef, /* @ts-ignore */
3838
+ ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
3629
3839
  /**
3630
- * Retriggers the animation. A class already present does not restart a running
3631
- * animation, so a second tap arriving before the first has faded would
3632
- * otherwise be swallowed; reading back a layout property between the removal
3633
- * and the addition forces the two to land as separate states.
3840
+ * Whether each crumb gives way in a `nowrap` trail, in trail order: the marked
3841
+ * ones, or the trailing crumb while none is marked.
3634
3842
  */
3635
- _restartInk(host) {
3636
- host.classList.remove(RIPPLE_ACTIVE_CLASS);
3637
- void host.offsetWidth;
3638
- host.classList.add(RIPPLE_ACTIVE_CLASS);
3639
- }
3640
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3641
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: RippleDirective, isStandalone: true, selector: "[tlsRipple]", inputs: { rippleDisabled: { classPropertyName: "rippleDisabled", publicName: "rippleDisabled", isSignal: true, isRequired: false, transformFunction: null }, ripplePointerTypes: { classPropertyName: "ripplePointerTypes", publicName: "ripplePointerTypes", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerdown": "onPointerDown($event)", "pointerup": "onPointerRelease()", "pointercancel": "onPointerRelease()" } }, ngImport: i0 });
3843
+ truncatingItems = computed(() => {
3844
+ const items = this.items();
3845
+ const hasMarkedItem = items.some(item => item.truncate === true);
3846
+ return items.map((item, index) => hasMarkedItem ? item.truncate === true : index === items.length - 1);
3847
+ }, /* @ts-ignore */
3848
+ ...(ngDevMode ? [{ debugName: "truncatingItems" }] : /* istanbul ignore next */ []));
3849
+ classes = computed(() => {
3850
+ const className = 'tls-breadcrumbs';
3851
+ const array = [className];
3852
+ array.push(`${className}--${this.size()}`);
3853
+ if (this.nowrap())
3854
+ array.push(`${className}--nowrap`);
3855
+ return array;
3856
+ }, /* @ts-ignore */
3857
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3858
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, deps: [], target: i0.ɵɵFactoryTarget.Component });
3859
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Breadcrumbs, isStandalone: true, selector: "tls-breadcrumbs", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separatorIcon: { classPropertyName: "separatorIcon", publicName: "separatorIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, nowrap: { classPropertyName: "nowrap", publicName: "nowrap", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let index = $index; let isLastItem = $last) {\n <li\n class=\"tls-breadcrumbs__item\"\n [class.tls-breadcrumbs__item--truncate]=\"truncatingItems()[index]\"\n >\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span\n class=\"tls-breadcrumbs__separator\"\n aria-hidden=\"true\"\n [style.view-transition-name]=\"item.separatorTransitionName\"\n >\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item let-index=\"index\" let-last=\"last\">\n @if (itemTemplate(); as customTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: last }\"\n />\n } @else {\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] });
3642
3860
  }
3643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, decorators: [{
3644
- type: Directive,
3861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, decorators: [{
3862
+ type: Component,
3863
+ args: [{ selector: 'tls-breadcrumbs', imports: [Icon, NgTemplateOutlet, RouterLink], host: {
3864
+ role: 'navigation',
3865
+ '[class]': 'classes()',
3866
+ '[attr.aria-label]': 'ariaLabelledby() ? null : ariaLabel()',
3867
+ '[attr.aria-labelledby]': 'ariaLabelledby() ?? null',
3868
+ }, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let index = $index; let isLastItem = $last) {\n <li\n class=\"tls-breadcrumbs__item\"\n [class.tls-breadcrumbs__item--truncate]=\"truncatingItems()[index]\"\n >\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: isLastItem }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span\n class=\"tls-breadcrumbs__separator\"\n aria-hidden=\"true\"\n [style.view-transition-name]=\"item.separatorTransitionName\"\n >\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item let-index=\"index\" let-last=\"last\">\n @if (itemTemplate(); as customTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index, last: last }\"\n />\n } @else {\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n }\n</ng-template>\n" }]
3869
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], separatorIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorIcon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], nowrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "nowrap", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
3870
+
3871
+ const DEFAULT_LOADER_CONFIG = {
3872
+ size: 'md',
3873
+ width: null,
3874
+ widthRatio: 5,
3875
+ ariaLabel: 'Loading',
3876
+ };
3877
+
3878
+ const LOADER_CONFIG = new InjectionToken('LOADER_CONFIG', {
3879
+ factory: () => DEFAULT_LOADER_CONFIG,
3880
+ });
3881
+
3882
+ /**
3883
+ * Indeterminate spinner for indicating a loading state.
3884
+ *
3885
+ * @example
3886
+ * <!-- predefined size -->
3887
+ * <tls-loader size="lg" />
3888
+ *
3889
+ * @example
3890
+ * <!-- custom size in pixels -->
3891
+ * <tls-loader [size]="64" />
3892
+ *
3893
+ * @example
3894
+ * <!-- custom size with explicit stroke width -->
3895
+ * <tls-loader [size]="64" [width]="8" />
3896
+ */
3897
+ class Loader {
3898
+ _config = inject(LOADER_CONFIG);
3899
+ /** Predefined size token or custom pixel value. */
3900
+ size = input(this._config.size, /* @ts-ignore */
3901
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3902
+ /** Stroke width in pixels. Overrides the size-class default for both token and numeric sizes. */
3903
+ width = input(this._config.width, /* @ts-ignore */
3904
+ ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
3905
+ /** Divisor for auto stroke width when size is a number and width is null (`size / widthRatio`). */
3906
+ widthRatio = input(this._config.widthRatio, /* @ts-ignore */
3907
+ ...(ngDevMode ? [{ debugName: "widthRatio" }] : /* istanbul ignore next */ []));
3908
+ /** Text announced by screen readers via `aria-label`. */
3909
+ ariaLabel = input(this._config.ariaLabel, /* @ts-ignore */
3910
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
3911
+ hostClasses = computed(() => {
3912
+ const className = 'tls-loader';
3913
+ const size = this.size();
3914
+ const array = [className];
3915
+ if (typeof size === 'string') {
3916
+ array.push(`${className}--${size}`);
3917
+ }
3918
+ return array;
3919
+ }, /* @ts-ignore */
3920
+ ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
3921
+ hostStyles = computed(() => {
3922
+ const size = this.size();
3923
+ const width = this.width();
3924
+ if (typeof size === 'string' && width === null) {
3925
+ return null;
3926
+ }
3927
+ const styles = {};
3928
+ if (typeof size === 'number') {
3929
+ styles['--tls-loader-size'] = `${size}px`;
3930
+ }
3931
+ if (width !== null) {
3932
+ styles['--tls-loader-width'] = `${width}px`;
3933
+ }
3934
+ else {
3935
+ styles['--tls-loader-width'] = `${size / this.widthRatio()}px`;
3936
+ }
3937
+ return styles;
3938
+ }, /* @ts-ignore */
3939
+ ...(ngDevMode ? [{ debugName: "hostStyles" }] : /* istanbul ignore next */ []));
3940
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Loader, deps: [], target: i0.ɵɵFactoryTarget.Component });
3941
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: Loader, isStandalone: true, selector: "tls-loader", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthRatio: { classPropertyName: "widthRatio", publicName: "widthRatio", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "class": "hostClasses()", "style": "hostStyles()", "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: '', isInline: true });
3942
+ }
3943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Loader, decorators: [{
3944
+ type: Component,
3645
3945
  args: [{
3646
- selector: '[tlsRipple]',
3946
+ selector: 'tls-loader',
3947
+ imports: [],
3948
+ template: '',
3647
3949
  host: {
3648
- '(pointerdown)': 'onPointerDown($event)',
3649
- '(pointerup)': 'onPointerRelease()',
3650
- '(pointercancel)': 'onPointerRelease()',
3950
+ '[class]': 'hostClasses()',
3951
+ '[style]': 'hostStyles()',
3952
+ role: 'status',
3953
+ '[attr.aria-label]': 'ariaLabel()',
3651
3954
  },
3652
3955
  }]
3653
- }], ctorParameters: () => [], propDecorators: { rippleDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleDisabled", required: false }] }], ripplePointerTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripplePointerTypes", required: false }] }] } });
3956
+ }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthRatio", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
3654
3957
 
3655
3958
  const DEFAULT_BUTTON_CONFIG = {
3656
3959
  color: 'primary',
@@ -3658,6 +3961,7 @@ const DEFAULT_BUTTON_CONFIG = {
3658
3961
  size: 'md',
3659
3962
  type: 'button',
3660
3963
  fluid: false,
3964
+ iconRounded: false,
3661
3965
  };
3662
3966
 
3663
3967
  const BUTTON_CONFIG = new InjectionToken('BUTTON_CONFIG', {
@@ -3702,7 +4006,12 @@ class ButtonBase {
3702
4006
  ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
3703
4007
  size = input(this._config.size, /* @ts-ignore */
3704
4008
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3705
- rounded = input(false, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4009
+ /**
4010
+ * Rounds the button's ends fully: a pill for a labelled button, a circle for an icon-only
4011
+ * one. Left unset, an icon-only button takes the configured `iconRounded` and any other
4012
+ * keeps its corners; an explicit `[rounded]="false"` keeps them on an icon-only button too.
4013
+ */
4014
+ rounded = input(undefined, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: optionalBooleanAttribute });
3706
4015
  /** Whether the button stretches to fill its container's width. */
3707
4016
  fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
3708
4017
  /**
@@ -3719,6 +4028,9 @@ class ButtonBase {
3719
4028
  ...(ngDevMode ? [{ debugName: "unavailable" }] : /* istanbul ignore next */ []));
3720
4029
  ariaDisabled = computed(() => (this.unavailable() ? 'true' : null), /* @ts-ignore */
3721
4030
  ...(ngDevMode ? [{ debugName: "ariaDisabled" }] : /* istanbul ignore next */ []));
4031
+ /** The shape in force: the input where written, otherwise the configured default. */
4032
+ isRounded = computed(() => this.rounded() ?? (this.icon() && this._config.iconRounded), /* @ts-ignore */
4033
+ ...(ngDevMode ? [{ debugName: "isRounded" }] : /* istanbul ignore next */ []));
3722
4034
  classes = computed(() => {
3723
4035
  const className = 'tls-button';
3724
4036
  const array = [className];
@@ -3736,7 +4048,7 @@ class ButtonBase {
3736
4048
  array.push(`${className}--fluid`);
3737
4049
  if (this.stretch())
3738
4050
  array.push(`${className}--stretch`);
3739
- if (this.rounded())
4051
+ if (this.isRounded())
3740
4052
  array.push(`${className}--rounded`);
3741
4053
  return array;
3742
4054
  }, /* @ts-ignore */
@@ -3852,7 +4164,7 @@ class Button extends ButtonBase {
3852
4164
  event.preventDefault();
3853
4165
  }
3854
4166
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, deps: null, target: i0.ɵɵFactoryTarget.Component });
3855
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Button, isStandalone: true, selector: "tls-button", inputs: { busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n tlsRipple\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [class.tls-button--busy]=\"busy()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n tlsRipple\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [class.tls-button--busy]=\"busy()\"\n (click)=\"onControlClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n @if (busy()) {\n <!-- The control itself reports aria-busy, so the spinner is only seen. -->\n <tls-loader class=\"tls-button__spinner\" size=\"xs\" aria-hidden=\"true\" />\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-flex}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}:host:has(.tls-button.tls-button--stretch){height:100%}:host .tls-button{flex-grow:1}\n"], dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes"] }] });
4167
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Button, isStandalone: true, selector: "tls-button", inputs: { busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n tlsRipple\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [class.tls-button--busy]=\"busy()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n tlsRipple\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [class.tls-button--busy]=\"busy()\"\n (click)=\"onControlClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n @if (busy()) {\n <!-- The control itself reports aria-busy, so the spinner is only seen. -->\n <tls-loader class=\"tls-button__spinner\" size=\"xs\" aria-hidden=\"true\" />\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-flex}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}:host:has(.tls-button.tls-button--stretch){height:100%}:host .tls-button{flex-grow:1}\n"], dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
3856
4168
  }
3857
4169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, decorators: [{
3858
4170
  type: Component,
@@ -3922,18 +4234,18 @@ class ToggleGroup extends SelectionGroup {
3922
4234
  }, /* @ts-ignore */
3923
4235
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3924
4236
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
3925
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ToggleGroup, isStandalone: true, selector: "tls-toggle-group", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "labelledBy()", "attr.aria-describedby": "describedBy()", "attr.aria-invalid": "invalid() ? 'true' : null" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
4237
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ToggleGroup, isStandalone: true, selector: "tls-toggle-group", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "labelledBy()", "attr.aria-describedby": "describedBy()", "attr.aria-invalid": "invalid() ? 'true' : null" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n tlsRipple\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
3926
4238
  }
3927
4239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, decorators: [{
3928
4240
  type: Component,
3929
- args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
4241
+ args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet, RippleDirective], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
3930
4242
  role: 'group',
3931
4243
  '[class]': 'classes()',
3932
4244
  '[attr.aria-label]': 'ariaLabel() ?? null',
3933
4245
  '[attr.aria-labelledby]': 'labelledBy()',
3934
4246
  '[attr.aria-describedby]': 'describedBy()',
3935
4247
  '[attr.aria-invalid]': "invalid() ? 'true' : null",
3936
- }, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n" }]
4248
+ }, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n tlsRipple\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n" }]
3937
4249
  }], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], unselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "unselectable", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: ['option', { isSignal: true }] }] } });
3938
4250
 
3939
4251
  /** Days in a calendar week. */
@@ -4043,11 +4355,11 @@ class CalendarEventItem {
4043
4355
  this.activate.emit(this.event());
4044
4356
  }
4045
4357
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarEventItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
4046
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarEventItem, isStandalone: true, selector: "tls-calendar-event", inputs: { event: { classPropertyName: "event", publicName: "event", isSignal: true, isRequired: true, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate" }, host: { classAttribute: "tls-calendar-event" }, ngImport: i0, template: "<button\n type=\"button\"\n tabindex=\"-1\"\n [class]=\"classes()\"\n (click)=\"onClick($event)\"\n>\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"context()\" />\n } @else {\n <span class=\"tls-calendar-event__label\">{{ defaultLabel() }}</span>\n }\n</button>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
4358
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarEventItem, isStandalone: true, selector: "tls-calendar-event", inputs: { event: { classPropertyName: "event", publicName: "event", isSignal: true, isRequired: true, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate" }, host: { classAttribute: "tls-calendar-event" }, ngImport: i0, template: "<button\n type=\"button\"\n tabindex=\"-1\"\n tlsRipple\n [class]=\"classes()\"\n (click)=\"onClick($event)\"\n>\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"context()\" />\n } @else {\n <span class=\"tls-calendar-event__label\">{{ defaultLabel() }}</span>\n }\n</button>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
4047
4359
  }
4048
4360
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarEventItem, decorators: [{
4049
4361
  type: Component,
4050
- args: [{ selector: 'tls-calendar-event', imports: [NgTemplateOutlet], host: { class: 'tls-calendar-event' }, template: "<button\n type=\"button\"\n tabindex=\"-1\"\n [class]=\"classes()\"\n (click)=\"onClick($event)\"\n>\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"context()\" />\n } @else {\n <span class=\"tls-calendar-event__label\">{{ defaultLabel() }}</span>\n }\n</button>\n" }]
4362
+ args: [{ selector: 'tls-calendar-event', imports: [NgTemplateOutlet, RippleDirective], host: { class: 'tls-calendar-event' }, template: "<button\n type=\"button\"\n tabindex=\"-1\"\n tlsRipple\n [class]=\"classes()\"\n (click)=\"onClick($event)\"\n>\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"context()\" />\n } @else {\n <span class=\"tls-calendar-event__label\">{{ defaultLabel() }}</span>\n }\n</button>\n" }]
4051
4363
  }], propDecorators: { event: [{ type: i0.Input, args: [{ isSignal: true, alias: "event", required: true }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: true }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], activate: [{ type: i0.Output, args: ["activate"] }] } });
4052
4364
 
4053
4365
  const DEFAULT_CALENDAR_CONFIG = {
@@ -4142,15 +4454,15 @@ class CalendarAgendaView {
4142
4454
  }, /* @ts-ignore */
4143
4455
  ...(ngDevMode ? [{ debugName: "days" }] : /* istanbul ignore next */ []));
4144
4456
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarAgendaView, deps: [], target: i0.ɵɵFactoryTarget.Component });
4145
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarAgendaView, isStandalone: true, selector: "tls-calendar-agenda-view", inputs: { activeDate: { classPropertyName: "activeDate", publicName: "activeDate", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { attributes: { "role": "list" }, properties: { "attr.aria-label": "label() ?? null" }, classAttribute: "tls-calendar-agenda-view" }, ngImport: i0, template: "@for (day of days(); track day.date.getTime()) {\n <div class=\"tls-calendar-agenda-view__day\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tls-calendar-agenda-view__date\"\n [class.tls-calendar-agenda-view__date--today]=\"day.isToday\"\n (click)=\"dateSelect.emit(day.date)\"\n >\n <span class=\"tls-calendar-agenda-view__weekday\">{{ day.weekday }}</span>\n <span class=\"tls-calendar-agenda-view__date-label\">{{ day.dateLabel }}</span>\n </button>\n\n <ul class=\"tls-calendar-agenda-view__events\">\n @for (event of day.events; track event.id) {\n <li>\n <tls-calendar-event\n view=\"agenda\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n </li>\n }\n </ul>\n </div>\n} @empty {\n <p class=\"tls-calendar-agenda-view__empty\">{{ noEventsLabel }}</p>\n}\n", dependencies: [{ kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }] });
4457
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarAgendaView, isStandalone: true, selector: "tls-calendar-agenda-view", inputs: { activeDate: { classPropertyName: "activeDate", publicName: "activeDate", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { attributes: { "role": "list" }, properties: { "attr.aria-label": "label() ?? null" }, classAttribute: "tls-calendar-agenda-view" }, ngImport: i0, template: "@for (day of days(); track day.date.getTime()) {\n <div class=\"tls-calendar-agenda-view__day\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tls-calendar-agenda-view__date\"\n tlsRipple\n [class.tls-calendar-agenda-view__date--today]=\"day.isToday\"\n (click)=\"dateSelect.emit(day.date)\"\n >\n <span class=\"tls-calendar-agenda-view__weekday\">{{ day.weekday }}</span>\n <span class=\"tls-calendar-agenda-view__date-label\">{{ day.dateLabel }}</span>\n </button>\n\n <ul class=\"tls-calendar-agenda-view__events\">\n @for (event of day.events; track event.id) {\n <li>\n <tls-calendar-event\n view=\"agenda\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n </li>\n }\n </ul>\n </div>\n} @empty {\n <p class=\"tls-calendar-agenda-view__empty\">{{ noEventsLabel }}</p>\n}\n", dependencies: [{ kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
4146
4458
  }
4147
4459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarAgendaView, decorators: [{
4148
4460
  type: Component,
4149
- args: [{ selector: 'tls-calendar-agenda-view', imports: [CalendarEventItem], host: {
4461
+ args: [{ selector: 'tls-calendar-agenda-view', imports: [CalendarEventItem, RippleDirective], host: {
4150
4462
  class: 'tls-calendar-agenda-view',
4151
4463
  role: 'list',
4152
4464
  '[attr.aria-label]': 'label() ?? null',
4153
- }, template: "@for (day of days(); track day.date.getTime()) {\n <div class=\"tls-calendar-agenda-view__day\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tls-calendar-agenda-view__date\"\n [class.tls-calendar-agenda-view__date--today]=\"day.isToday\"\n (click)=\"dateSelect.emit(day.date)\"\n >\n <span class=\"tls-calendar-agenda-view__weekday\">{{ day.weekday }}</span>\n <span class=\"tls-calendar-agenda-view__date-label\">{{ day.dateLabel }}</span>\n </button>\n\n <ul class=\"tls-calendar-agenda-view__events\">\n @for (event of day.events; track event.id) {\n <li>\n <tls-calendar-event\n view=\"agenda\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n </li>\n }\n </ul>\n </div>\n} @empty {\n <p class=\"tls-calendar-agenda-view__empty\">{{ noEventsLabel }}</p>\n}\n" }]
4465
+ }, template: "@for (day of days(); track day.date.getTime()) {\n <div class=\"tls-calendar-agenda-view__day\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tls-calendar-agenda-view__date\"\n tlsRipple\n [class.tls-calendar-agenda-view__date--today]=\"day.isToday\"\n (click)=\"dateSelect.emit(day.date)\"\n >\n <span class=\"tls-calendar-agenda-view__weekday\">{{ day.weekday }}</span>\n <span class=\"tls-calendar-agenda-view__date-label\">{{ day.dateLabel }}</span>\n </button>\n\n <ul class=\"tls-calendar-agenda-view__events\">\n @for (event of day.events; track event.id) {\n <li>\n <tls-calendar-event\n view=\"agenda\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n </li>\n }\n </ul>\n </div>\n} @empty {\n <p class=\"tls-calendar-agenda-view__empty\">{{ noEventsLabel }}</p>\n}\n" }]
4154
4466
  }], propDecorators: { activeDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeDate", required: true }] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: true }] }], eventTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "eventTemplate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], eventSelect: [{ type: i0.Output, args: ["eventSelect"] }] } });
4155
4467
 
4156
4468
  /**
@@ -4475,17 +4787,17 @@ class CalendarMonthView {
4475
4787
  return classes;
4476
4788
  }
4477
4789
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarMonthView, deps: [], target: i0.ɵɵFactoryTarget.Component });
4478
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarMonthView, isStandalone: true, selector: "tls-calendar-month-view", inputs: { activeDate: { classPropertyName: "activeDate", publicName: "activeDate", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: true, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: true, transformFunction: null }, maxEventsPerDay: { classPropertyName: "maxEventsPerDay", publicName: "maxEventsPerDay", isSignal: true, isRequired: true, transformFunction: null }, squareCells: { classPropertyName: "squareCells", publicName: "squareCells", isSignal: true, isRequired: false, transformFunction: null }, peekWeeks: { classPropertyName: "peekWeeks", publicName: "peekWeeks", isSignal: true, isRequired: false, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, dayTemplate: { classPropertyName: "dayTemplate", publicName: "dayTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { properties: { "class.tls-calendar-month-view--square": "squareCells()", "class.tls-calendar-month-view--peek": "peekWeeks() > 0", "style.--tls-calendar-peek-weeks": "peekWeeks()", "style.--tls-calendar-week-rows": "gridWindow().weekCount" }, classAttribute: "tls-calendar-month-view" }, viewQueries: [{ propertyName: "_grid", first: true, predicate: ["grid"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"tls-calendar-month-view__weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdayHeaders(); track weekday) {\n <span class=\"tls-calendar-month-view__weekday\">{{ weekday }}</span>\n }\n</div>\n\n<!-- The viewport holds the grid's outer border and resting height, clipping the widened\n grid while a month-navigation scroll slides it through. -->\n<div class=\"tls-calendar-month-view__viewport\">\n <div\n ngGrid\n #grid\n class=\"tls-calendar-month-view__grid\"\n rowWrap=\"nowrap\"\n colWrap=\"nowrap\"\n [attr.aria-label]=\"label() ?? null\"\n [style.--tls-calendar-max-lanes]=\"maxEventsPerDay()\"\n >\n <!-- Keyed by date so the rows two month windows share keep their DOM identity across a\n navigation scroll, travelling instead of being rebuilt. -->\n @for (week of weeks(); track week.days[0].date.getTime()) {\n <div ngGridRow class=\"tls-calendar-month-view__week\">\n @for (cell of week.days; track cell.date.getTime()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- ngGridCell manages role and roving tabindex -->\n <div\n ngGridCell\n class=\"tls-calendar-month-view__day\"\n [class.tls-calendar-month-view__day--outside]=\"!cell.inCurrentMonth\"\n [class.tls-calendar-month-view__day--today]=\"cell.isToday\"\n (click)=\"dateSelect.emit(cell.date)\"\n (keydown.enter)=\"dateSelect.emit(cell.date)\"\n (keydown.space)=\"onDaySpace($event, cell.date)\"\n >\n @if (dayTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"cell.context\" />\n } @else {\n <span class=\"tls-calendar-month-view__day-number\">{{ cell.dayNumber }}</span>\n\n <!-- Dots stand in for the event bars in the dense layout, which hides those instead. -->\n @if (cell.eventCount > 0) {\n <span class=\"tls-calendar-month-view__markers\">\n <span class=\"tls-calendar-month-view__markers-label\">\n {{ eventCountLabel(cell.eventCount) }}\n </span>\n\n @for (marker of cell.markers; track marker.id) {\n <span [class]=\"marker.classes\" aria-hidden=\"true\"></span>\n }\n </span>\n }\n\n @if (cell.hiddenCount > 0) {\n <span class=\"tls-calendar-month-view__more\">{{ moreLabel(cell.hiddenCount) }}</span>\n }\n }\n </div>\n }\n\n <!-- Event bars span day columns and stack by lane, overlaid on the cells above. -->\n <div class=\"tls-calendar-month-view__bars\">\n @for (bar of week.bars; track bar.event.id) {\n <tls-calendar-event\n view=\"month\"\n class=\"tls-calendar-month-view__bar\"\n [class.tls-calendar-month-view__bar--continues-before]=\"bar.continuesBefore\"\n [class.tls-calendar-month-view__bar--continues-after]=\"bar.continuesAfter\"\n [event]=\"bar.event\"\n [template]=\"eventTemplate()\"\n [style.grid-column]=\"bar.gridColumn\"\n [style.grid-row]=\"bar.gridRow\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "tabindex"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
4790
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarMonthView, isStandalone: true, selector: "tls-calendar-month-view", inputs: { activeDate: { classPropertyName: "activeDate", publicName: "activeDate", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: true, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: true, transformFunction: null }, maxEventsPerDay: { classPropertyName: "maxEventsPerDay", publicName: "maxEventsPerDay", isSignal: true, isRequired: true, transformFunction: null }, squareCells: { classPropertyName: "squareCells", publicName: "squareCells", isSignal: true, isRequired: false, transformFunction: null }, peekWeeks: { classPropertyName: "peekWeeks", publicName: "peekWeeks", isSignal: true, isRequired: false, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, dayTemplate: { classPropertyName: "dayTemplate", publicName: "dayTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { properties: { "class.tls-calendar-month-view--square": "squareCells()", "class.tls-calendar-month-view--peek": "peekWeeks() > 0", "style.--tls-calendar-peek-weeks": "peekWeeks()", "style.--tls-calendar-week-rows": "gridWindow().weekCount" }, classAttribute: "tls-calendar-month-view" }, viewQueries: [{ propertyName: "_grid", first: true, predicate: ["grid"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"tls-calendar-month-view__weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdayHeaders(); track weekday) {\n <span class=\"tls-calendar-month-view__weekday\">{{ weekday }}</span>\n }\n</div>\n\n<!-- The viewport holds the grid's outer border and resting height, clipping the widened\n grid while a month-navigation scroll slides it through. -->\n<div class=\"tls-calendar-month-view__viewport\">\n <div\n ngGrid\n #grid\n class=\"tls-calendar-month-view__grid\"\n rowWrap=\"nowrap\"\n colWrap=\"nowrap\"\n [attr.aria-label]=\"label() ?? null\"\n [style.--tls-calendar-max-lanes]=\"maxEventsPerDay()\"\n >\n <!-- Keyed by date so the rows two month windows share keep their DOM identity across a\n navigation scroll, travelling instead of being rebuilt. -->\n @for (week of weeks(); track week.days[0].date.getTime()) {\n <div ngGridRow class=\"tls-calendar-month-view__week\">\n @for (cell of week.days; track cell.date.getTime()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- ngGridCell manages role and roving tabindex -->\n <div\n ngGridCell\n class=\"tls-calendar-month-view__day\"\n tlsRipple\n [class.tls-calendar-month-view__day--outside]=\"!cell.inCurrentMonth\"\n [class.tls-calendar-month-view__day--today]=\"cell.isToday\"\n (click)=\"dateSelect.emit(cell.date)\"\n (keydown.enter)=\"dateSelect.emit(cell.date)\"\n (keydown.space)=\"onDaySpace($event, cell.date)\"\n >\n @if (dayTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"cell.context\" />\n } @else {\n <span class=\"tls-calendar-month-view__day-number\">{{ cell.dayNumber }}</span>\n\n <!-- Dots stand in for the event bars in the dense layout, which hides those instead. -->\n @if (cell.eventCount > 0) {\n <span class=\"tls-calendar-month-view__markers\">\n <span class=\"tls-calendar-month-view__markers-label\">\n {{ eventCountLabel(cell.eventCount) }}\n </span>\n\n @for (marker of cell.markers; track marker.id) {\n <span [class]=\"marker.classes\" aria-hidden=\"true\"></span>\n }\n </span>\n }\n\n @if (cell.hiddenCount > 0) {\n <span class=\"tls-calendar-month-view__more\">{{ moreLabel(cell.hiddenCount) }}</span>\n }\n }\n </div>\n }\n\n <!-- Event bars span day columns and stack by lane, overlaid on the cells above. -->\n <div class=\"tls-calendar-month-view__bars\">\n @for (bar of week.bars; track bar.event.id) {\n <tls-calendar-event\n view=\"month\"\n class=\"tls-calendar-month-view__bar\"\n [class.tls-calendar-month-view__bar--continues-before]=\"bar.continuesBefore\"\n [class.tls-calendar-month-view__bar--continues-after]=\"bar.continuesAfter\"\n [event]=\"bar.event\"\n [template]=\"eventTemplate()\"\n [style.grid-column]=\"bar.gridColumn\"\n [style.grid-row]=\"bar.gridRow\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "tabindex"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
4479
4791
  }
4480
4792
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarMonthView, decorators: [{
4481
4793
  type: Component,
4482
- args: [{ selector: 'tls-calendar-month-view', imports: [Grid, GridRow, GridCell, CalendarEventItem, NgTemplateOutlet], host: {
4794
+ args: [{ selector: 'tls-calendar-month-view', imports: [Grid, GridRow, GridCell, CalendarEventItem, NgTemplateOutlet, RippleDirective], host: {
4483
4795
  class: 'tls-calendar-month-view',
4484
4796
  '[class.tls-calendar-month-view--square]': 'squareCells()',
4485
4797
  '[class.tls-calendar-month-view--peek]': 'peekWeeks() > 0',
4486
4798
  '[style.--tls-calendar-peek-weeks]': 'peekWeeks()',
4487
4799
  '[style.--tls-calendar-week-rows]': 'gridWindow().weekCount',
4488
- }, template: "<div class=\"tls-calendar-month-view__weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdayHeaders(); track weekday) {\n <span class=\"tls-calendar-month-view__weekday\">{{ weekday }}</span>\n }\n</div>\n\n<!-- The viewport holds the grid's outer border and resting height, clipping the widened\n grid while a month-navigation scroll slides it through. -->\n<div class=\"tls-calendar-month-view__viewport\">\n <div\n ngGrid\n #grid\n class=\"tls-calendar-month-view__grid\"\n rowWrap=\"nowrap\"\n colWrap=\"nowrap\"\n [attr.aria-label]=\"label() ?? null\"\n [style.--tls-calendar-max-lanes]=\"maxEventsPerDay()\"\n >\n <!-- Keyed by date so the rows two month windows share keep their DOM identity across a\n navigation scroll, travelling instead of being rebuilt. -->\n @for (week of weeks(); track week.days[0].date.getTime()) {\n <div ngGridRow class=\"tls-calendar-month-view__week\">\n @for (cell of week.days; track cell.date.getTime()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- ngGridCell manages role and roving tabindex -->\n <div\n ngGridCell\n class=\"tls-calendar-month-view__day\"\n [class.tls-calendar-month-view__day--outside]=\"!cell.inCurrentMonth\"\n [class.tls-calendar-month-view__day--today]=\"cell.isToday\"\n (click)=\"dateSelect.emit(cell.date)\"\n (keydown.enter)=\"dateSelect.emit(cell.date)\"\n (keydown.space)=\"onDaySpace($event, cell.date)\"\n >\n @if (dayTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"cell.context\" />\n } @else {\n <span class=\"tls-calendar-month-view__day-number\">{{ cell.dayNumber }}</span>\n\n <!-- Dots stand in for the event bars in the dense layout, which hides those instead. -->\n @if (cell.eventCount > 0) {\n <span class=\"tls-calendar-month-view__markers\">\n <span class=\"tls-calendar-month-view__markers-label\">\n {{ eventCountLabel(cell.eventCount) }}\n </span>\n\n @for (marker of cell.markers; track marker.id) {\n <span [class]=\"marker.classes\" aria-hidden=\"true\"></span>\n }\n </span>\n }\n\n @if (cell.hiddenCount > 0) {\n <span class=\"tls-calendar-month-view__more\">{{ moreLabel(cell.hiddenCount) }}</span>\n }\n }\n </div>\n }\n\n <!-- Event bars span day columns and stack by lane, overlaid on the cells above. -->\n <div class=\"tls-calendar-month-view__bars\">\n @for (bar of week.bars; track bar.event.id) {\n <tls-calendar-event\n view=\"month\"\n class=\"tls-calendar-month-view__bar\"\n [class.tls-calendar-month-view__bar--continues-before]=\"bar.continuesBefore\"\n [class.tls-calendar-month-view__bar--continues-after]=\"bar.continuesAfter\"\n [event]=\"bar.event\"\n [template]=\"eventTemplate()\"\n [style.grid-column]=\"bar.gridColumn\"\n [style.grid-row]=\"bar.gridRow\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n </div>\n }\n </div>\n</div>\n" }]
4800
+ }, template: "<div class=\"tls-calendar-month-view__weekdays\" aria-hidden=\"true\">\n @for (weekday of weekdayHeaders(); track weekday) {\n <span class=\"tls-calendar-month-view__weekday\">{{ weekday }}</span>\n }\n</div>\n\n<!-- The viewport holds the grid's outer border and resting height, clipping the widened\n grid while a month-navigation scroll slides it through. -->\n<div class=\"tls-calendar-month-view__viewport\">\n <div\n ngGrid\n #grid\n class=\"tls-calendar-month-view__grid\"\n rowWrap=\"nowrap\"\n colWrap=\"nowrap\"\n [attr.aria-label]=\"label() ?? null\"\n [style.--tls-calendar-max-lanes]=\"maxEventsPerDay()\"\n >\n <!-- Keyed by date so the rows two month windows share keep their DOM identity across a\n navigation scroll, travelling instead of being rebuilt. -->\n @for (week of weeks(); track week.days[0].date.getTime()) {\n <div ngGridRow class=\"tls-calendar-month-view__week\">\n @for (cell of week.days; track cell.date.getTime()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- ngGridCell manages role and roving tabindex -->\n <div\n ngGridCell\n class=\"tls-calendar-month-view__day\"\n tlsRipple\n [class.tls-calendar-month-view__day--outside]=\"!cell.inCurrentMonth\"\n [class.tls-calendar-month-view__day--today]=\"cell.isToday\"\n (click)=\"dateSelect.emit(cell.date)\"\n (keydown.enter)=\"dateSelect.emit(cell.date)\"\n (keydown.space)=\"onDaySpace($event, cell.date)\"\n >\n @if (dayTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"cell.context\" />\n } @else {\n <span class=\"tls-calendar-month-view__day-number\">{{ cell.dayNumber }}</span>\n\n <!-- Dots stand in for the event bars in the dense layout, which hides those instead. -->\n @if (cell.eventCount > 0) {\n <span class=\"tls-calendar-month-view__markers\">\n <span class=\"tls-calendar-month-view__markers-label\">\n {{ eventCountLabel(cell.eventCount) }}\n </span>\n\n @for (marker of cell.markers; track marker.id) {\n <span [class]=\"marker.classes\" aria-hidden=\"true\"></span>\n }\n </span>\n }\n\n @if (cell.hiddenCount > 0) {\n <span class=\"tls-calendar-month-view__more\">{{ moreLabel(cell.hiddenCount) }}</span>\n }\n }\n </div>\n }\n\n <!-- Event bars span day columns and stack by lane, overlaid on the cells above. -->\n <div class=\"tls-calendar-month-view__bars\">\n @for (bar of week.bars; track bar.event.id) {\n <tls-calendar-event\n view=\"month\"\n class=\"tls-calendar-month-view__bar\"\n [class.tls-calendar-month-view__bar--continues-before]=\"bar.continuesBefore\"\n [class.tls-calendar-month-view__bar--continues-after]=\"bar.continuesAfter\"\n [event]=\"bar.event\"\n [template]=\"eventTemplate()\"\n [style.grid-column]=\"bar.gridColumn\"\n [style.grid-row]=\"bar.gridRow\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n </div>\n }\n </div>\n</div>\n" }]
4489
4801
  }], ctorParameters: () => [], propDecorators: { activeDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeDate", required: true }] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: true }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: true }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: true }] }], maxEventsPerDay: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxEventsPerDay", required: true }] }], squareCells: [{ type: i0.Input, args: [{ isSignal: true, alias: "squareCells", required: false }] }], peekWeeks: [{ type: i0.Input, args: [{ isSignal: true, alias: "peekWeeks", required: false }] }], eventTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "eventTemplate", required: false }] }], dayTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dayTemplate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], eventSelect: [{ type: i0.Output, args: ["eventSelect"] }], _grid: [{ type: i0.ViewChild, args: ['grid', { isSignal: true }] }] } });
4490
4802
 
4491
4803
  const eventEnd = (event) => (event.end ?? event.start).getTime();
@@ -4663,17 +4975,17 @@ class CalendarTimeGrid {
4663
4975
  return new Date(Math.min(Math.max(date.getTime(), min.getTime()), max.getTime()));
4664
4976
  }
4665
4977
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarTimeGrid, deps: [], target: i0.ɵɵFactoryTarget.Component });
4666
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarTimeGrid, isStandalone: true, selector: "tls-calendar-time-grid", inputs: { days: { classPropertyName: "days", publicName: "days", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, hourStart: { classPropertyName: "hourStart", publicName: "hourStart", isSignal: true, isRequired: true, transformFunction: null }, hourEnd: { classPropertyName: "hourEnd", publicName: "hourEnd", isSignal: true, isRequired: true, transformFunction: null }, showAllDayRow: { classPropertyName: "showAllDayRow", publicName: "showAllDayRow", isSignal: true, isRequired: true, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label() ?? null", "style.--tls-calendar-hour-height.px": "hourHeight", "style.--tls-calendar-columns": "days().length" }, classAttribute: "tls-calendar-time-grid" }, ngImport: i0, template: "<div class=\"tls-calendar-time-grid__header\">\n <div class=\"tls-calendar-time-grid__gutter-spacer\"></div>\n @for (column of columns(); track column.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar-time-grid__heading\"\n [class.tls-calendar-time-grid__heading--today]=\"column.isToday\"\n (click)=\"dateSelect.emit(column.date)\"\n >\n {{ column.heading }}\n </button>\n }\n</div>\n\n@if (showAllDayRow()) {\n <div class=\"tls-calendar-time-grid__all-day\">\n <div class=\"tls-calendar-time-grid__gutter-label\">{{ allDayLabel }}</div>\n @for (column of columns(); track column.date.getTime()) {\n <div class=\"tls-calendar-time-grid__all-day-cell\">\n @for (event of column.allDayEvents; track event.id) {\n <tls-calendar-event\n [view]=\"view()\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n }\n </div>\n}\n\n<div class=\"tls-calendar-time-grid__body\">\n <div class=\"tls-calendar-time-grid__gutter\">\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-label\">{{ hourLabel(hour) }}</div>\n }\n </div>\n\n @for (column of columns(); track column.date.getTime()) {\n <div\n class=\"tls-calendar-time-grid__column\"\n [class.tls-calendar-time-grid__column--today]=\"column.isToday\"\n >\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-line\"></div>\n }\n\n @for (layout of column.timedEvents; track layout.event.id) {\n <tls-calendar-event\n class=\"tls-calendar-time-grid__event\"\n [view]=\"view()\"\n [event]=\"layout.event\"\n [template]=\"eventTemplate()\"\n [style.top.px]=\"layout.top\"\n [style.height.px]=\"layout.height\"\n [style.inset-inline-start.%]=\"laneOffset(layout)\"\n [style.width.%]=\"laneWidth(layout)\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n\n @if (column.isToday && nowOffset() !== null) {\n <div class=\"tls-calendar-time-grid__now\" [style.top.px]=\"nowOffset()\"></div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }] });
4978
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CalendarTimeGrid, isStandalone: true, selector: "tls-calendar-time-grid", inputs: { days: { classPropertyName: "days", publicName: "days", isSignal: true, isRequired: true, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: true, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, hourStart: { classPropertyName: "hourStart", publicName: "hourStart", isSignal: true, isRequired: true, transformFunction: null }, hourEnd: { classPropertyName: "hourEnd", publicName: "hourEnd", isSignal: true, isRequired: true, transformFunction: null }, showAllDayRow: { classPropertyName: "showAllDayRow", publicName: "showAllDayRow", isSignal: true, isRequired: true, transformFunction: null }, eventTemplate: { classPropertyName: "eventTemplate", publicName: "eventTemplate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelect: "dateSelect", eventSelect: "eventSelect" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label() ?? null", "style.--tls-calendar-hour-height.px": "hourHeight", "style.--tls-calendar-columns": "days().length" }, classAttribute: "tls-calendar-time-grid" }, ngImport: i0, template: "<div class=\"tls-calendar-time-grid__header\">\n <div class=\"tls-calendar-time-grid__gutter-spacer\"></div>\n @for (column of columns(); track column.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar-time-grid__heading\"\n tlsRipple\n [class.tls-calendar-time-grid__heading--today]=\"column.isToday\"\n (click)=\"dateSelect.emit(column.date)\"\n >\n {{ column.heading }}\n </button>\n }\n</div>\n\n@if (showAllDayRow()) {\n <div class=\"tls-calendar-time-grid__all-day\">\n <div class=\"tls-calendar-time-grid__gutter-label\">{{ allDayLabel }}</div>\n @for (column of columns(); track column.date.getTime()) {\n <div class=\"tls-calendar-time-grid__all-day-cell\">\n @for (event of column.allDayEvents; track event.id) {\n <tls-calendar-event\n [view]=\"view()\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n }\n </div>\n}\n\n<div class=\"tls-calendar-time-grid__body\">\n <div class=\"tls-calendar-time-grid__gutter\">\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-label\">{{ hourLabel(hour) }}</div>\n }\n </div>\n\n @for (column of columns(); track column.date.getTime()) {\n <div\n class=\"tls-calendar-time-grid__column\"\n [class.tls-calendar-time-grid__column--today]=\"column.isToday\"\n >\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-line\"></div>\n }\n\n @for (layout of column.timedEvents; track layout.event.id) {\n <tls-calendar-event\n class=\"tls-calendar-time-grid__event\"\n [view]=\"view()\"\n [event]=\"layout.event\"\n [template]=\"eventTemplate()\"\n [style.top.px]=\"layout.top\"\n [style.height.px]=\"layout.height\"\n [style.inset-inline-start.%]=\"laneOffset(layout)\"\n [style.width.%]=\"laneWidth(layout)\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n\n @if (column.isToday && nowOffset() !== null) {\n <div class=\"tls-calendar-time-grid__now\" [style.top.px]=\"nowOffset()\"></div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: CalendarEventItem, selector: "tls-calendar-event", inputs: ["event", "view", "template"], outputs: ["activate"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
4667
4979
  }
4668
4980
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarTimeGrid, decorators: [{
4669
4981
  type: Component,
4670
- args: [{ selector: 'tls-calendar-time-grid', imports: [CalendarEventItem], host: {
4982
+ args: [{ selector: 'tls-calendar-time-grid', imports: [CalendarEventItem, RippleDirective], host: {
4671
4983
  class: 'tls-calendar-time-grid',
4672
4984
  role: 'group',
4673
4985
  '[attr.aria-label]': 'label() ?? null',
4674
4986
  '[style.--tls-calendar-hour-height.px]': 'hourHeight',
4675
4987
  '[style.--tls-calendar-columns]': 'days().length',
4676
- }, template: "<div class=\"tls-calendar-time-grid__header\">\n <div class=\"tls-calendar-time-grid__gutter-spacer\"></div>\n @for (column of columns(); track column.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar-time-grid__heading\"\n [class.tls-calendar-time-grid__heading--today]=\"column.isToday\"\n (click)=\"dateSelect.emit(column.date)\"\n >\n {{ column.heading }}\n </button>\n }\n</div>\n\n@if (showAllDayRow()) {\n <div class=\"tls-calendar-time-grid__all-day\">\n <div class=\"tls-calendar-time-grid__gutter-label\">{{ allDayLabel }}</div>\n @for (column of columns(); track column.date.getTime()) {\n <div class=\"tls-calendar-time-grid__all-day-cell\">\n @for (event of column.allDayEvents; track event.id) {\n <tls-calendar-event\n [view]=\"view()\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n }\n </div>\n}\n\n<div class=\"tls-calendar-time-grid__body\">\n <div class=\"tls-calendar-time-grid__gutter\">\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-label\">{{ hourLabel(hour) }}</div>\n }\n </div>\n\n @for (column of columns(); track column.date.getTime()) {\n <div\n class=\"tls-calendar-time-grid__column\"\n [class.tls-calendar-time-grid__column--today]=\"column.isToday\"\n >\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-line\"></div>\n }\n\n @for (layout of column.timedEvents; track layout.event.id) {\n <tls-calendar-event\n class=\"tls-calendar-time-grid__event\"\n [view]=\"view()\"\n [event]=\"layout.event\"\n [template]=\"eventTemplate()\"\n [style.top.px]=\"layout.top\"\n [style.height.px]=\"layout.height\"\n [style.inset-inline-start.%]=\"laneOffset(layout)\"\n [style.width.%]=\"laneWidth(layout)\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n\n @if (column.isToday && nowOffset() !== null) {\n <div class=\"tls-calendar-time-grid__now\" [style.top.px]=\"nowOffset()\"></div>\n }\n </div>\n }\n</div>\n" }]
4988
+ }, template: "<div class=\"tls-calendar-time-grid__header\">\n <div class=\"tls-calendar-time-grid__gutter-spacer\"></div>\n @for (column of columns(); track column.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar-time-grid__heading\"\n tlsRipple\n [class.tls-calendar-time-grid__heading--today]=\"column.isToday\"\n (click)=\"dateSelect.emit(column.date)\"\n >\n {{ column.heading }}\n </button>\n }\n</div>\n\n@if (showAllDayRow()) {\n <div class=\"tls-calendar-time-grid__all-day\">\n <div class=\"tls-calendar-time-grid__gutter-label\">{{ allDayLabel }}</div>\n @for (column of columns(); track column.date.getTime()) {\n <div class=\"tls-calendar-time-grid__all-day-cell\">\n @for (event of column.allDayEvents; track event.id) {\n <tls-calendar-event\n [view]=\"view()\"\n [event]=\"event\"\n [template]=\"eventTemplate()\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n </div>\n }\n </div>\n}\n\n<div class=\"tls-calendar-time-grid__body\">\n <div class=\"tls-calendar-time-grid__gutter\">\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-label\">{{ hourLabel(hour) }}</div>\n }\n </div>\n\n @for (column of columns(); track column.date.getTime()) {\n <div\n class=\"tls-calendar-time-grid__column\"\n [class.tls-calendar-time-grid__column--today]=\"column.isToday\"\n >\n @for (hour of hours(); track hour) {\n <div class=\"tls-calendar-time-grid__hour-line\"></div>\n }\n\n @for (layout of column.timedEvents; track layout.event.id) {\n <tls-calendar-event\n class=\"tls-calendar-time-grid__event\"\n [view]=\"view()\"\n [event]=\"layout.event\"\n [template]=\"eventTemplate()\"\n [style.top.px]=\"layout.top\"\n [style.height.px]=\"layout.height\"\n [style.inset-inline-start.%]=\"laneOffset(layout)\"\n [style.width.%]=\"laneWidth(layout)\"\n (activate)=\"eventSelect.emit($event)\"\n />\n }\n\n @if (column.isToday && nowOffset() !== null) {\n <div class=\"tls-calendar-time-grid__now\" [style.top.px]=\"nowOffset()\"></div>\n }\n </div>\n }\n</div>\n" }]
4677
4989
  }], propDecorators: { days: [{ type: i0.Input, args: [{ isSignal: true, alias: "days", required: true }] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: true }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: true }] }], hourStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourStart", required: true }] }], hourEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourEnd", required: true }] }], showAllDayRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAllDayRow", required: true }] }], eventTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "eventTemplate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], eventSelect: [{ type: i0.Output, args: ["eventSelect"] }] } });
4678
4990
 
4679
4991
  class Calendar {
@@ -5612,7 +5924,7 @@ class ConfirmPanel {
5612
5924
  variant: source.variant ?? slotDefault.variant ?? this._buttonConfig.variant,
5613
5925
  size: source.size ?? slotDefault.size ?? this._buttonConfig.size,
5614
5926
  icon: source.icon ?? slotDefault.icon ?? false,
5615
- rounded: source.rounded ?? slotDefault.rounded ?? false,
5927
+ rounded: source.rounded ?? slotDefault.rounded,
5616
5928
  fluid: source.fluid ?? slotDefault.fluid ?? false,
5617
5929
  disabled: source.disabled ?? slotDefault.disabled ?? false,
5618
5930
  };
@@ -5994,6 +6306,8 @@ class Dialog extends CdkDialogContainer {
5994
6306
  // Injections
5995
6307
  _tlsConfig = inject(DIALOG_CONFIG);
5996
6308
  _dialogRef = inject(DialogRef$1);
6309
+ /** Named apart from the CDK container's own `_renderer`, which is private to it. */
6310
+ _renderer2 = inject(Renderer2);
5997
6311
  // State
5998
6312
  _state = signal('enter', /* @ts-ignore */
5999
6313
  ...(ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []));
@@ -6020,6 +6334,7 @@ class Dialog extends CdkDialogContainer {
6020
6334
  return;
6021
6335
  this._closing = true;
6022
6336
  this._state.set('leave');
6337
+ fadeOutBackdrop(this._dialogRef.overlayRef.backdropElement, this._renderer2);
6023
6338
  afterLeaveAnimation(this._elementRef.nativeElement, () => this._dialogRef.close(result));
6024
6339
  }
6025
6340
  // Protected methods
@@ -6430,10 +6745,12 @@ class SheetMotion {
6430
6745
  */
6431
6746
  const DRAWER_NAMED_SIZES = ['sm', 'md', 'lg', 'full', 'auto'];
6432
6747
  /**
6433
- * Theme tokens the slide from an origin is timed by — the same the plain slide
6434
- * uses, so a drawer moves alike whichever way it opened.
6748
+ * Tokens the slide from an origin is timed by — the same the plain slide uses,
6749
+ * so a drawer moves alike whichever way it opened. The durations are the
6750
+ * drawer's own, since a side may set a pace of its own.
6435
6751
  */
6436
- const DRAWER_SLIDE_DURATION_TOKEN = '--motion-default';
6752
+ const DRAWER_SLIDE_ENTER_DURATION_TOKEN = '--tls-drawer-enter-duration';
6753
+ const DRAWER_SLIDE_LEAVE_DURATION_TOKEN = '--tls-drawer-leave-duration';
6437
6754
  const DRAWER_SLIDE_ENTER_EASING_TOKEN = '--motion-ease-out';
6438
6755
  const DRAWER_SLIDE_LEAVE_EASING_TOKEN = '--motion-ease-in';
6439
6756
  /**
@@ -6499,12 +6816,14 @@ function offscreenOffset(panel, side, isRtl) {
6499
6816
  }
6500
6817
  }
6501
6818
  /**
6502
- * The slide's timing in one direction, from the theme's motion tokens as the
6503
- * panel resolves them: easing out on the way in, in on the way out.
6819
+ * The slide's timing in one direction, from the panel's slide tokens as it
6820
+ * resolves them — its side may set a pace of its own: easing out on the way
6821
+ * in, in on the way out.
6504
6822
  */
6505
6823
  function readSlideTiming(panel, direction) {
6506
6824
  const style = getComputedStyle(panel);
6507
- const duration = style.getPropertyValue(DRAWER_SLIDE_DURATION_TOKEN).trim();
6825
+ const durationToken = direction === 'enter' ? DRAWER_SLIDE_ENTER_DURATION_TOKEN : DRAWER_SLIDE_LEAVE_DURATION_TOKEN;
6826
+ const duration = style.getPropertyValue(durationToken).trim();
6508
6827
  const easingToken = direction === 'enter' ? DRAWER_SLIDE_ENTER_EASING_TOKEN : DRAWER_SLIDE_LEAVE_EASING_TOKEN;
6509
6828
  const easing = style.getPropertyValue(easingToken).trim();
6510
6829
  return {
@@ -6870,6 +7189,9 @@ class Drawer extends CdkDialogContainer {
6870
7189
  }
6871
7190
  this._closing = true;
6872
7191
  const host = this._elementRef.nativeElement;
7192
+ // Every exit from here on — reversing an entrance, sliding off-screen or
7193
+ // back into the origin — takes the dimming with it.
7194
+ fadeOutBackdrop(this._dialogRef.overlayRef.backdropElement, this._dragRenderer);
6873
7195
  const running = this._entrance.filter(animation => animation.playState === 'running');
6874
7196
  if (running.length) {
6875
7197
  this._reverseEntrance(running, result);
@@ -7596,15 +7918,15 @@ class FabMenu {
7596
7918
  this._open.set(false);
7597
7919
  }
7598
7920
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FabMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
7599
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: FabMenu, isStandalone: true, selector: "tls-fab-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:click": "onDocumentClick($event)" }, properties: { "class.tls-fab-menu--open": "isOpen()" }, classAttribute: "tls-fab-menu" }, queries: [{ propertyName: "iconTemplate", first: true, predicate: ["itemIcon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_itemsList", first: true, predicate: ["itemsList"], descendants: true, isSignal: true }, { propertyName: "_trigger", first: true, predicate: ["trigger"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (isOpen()) {\n <ul\n #itemsList\n class=\"tls-fab-menu__items\"\n ngMenu\n tabindex=\"-1\"\n [id]=\"id\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemSelected($event)\"\n (keydown.escape)=\"close(true)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n animate.enter=\"tls-fab-menu__items--enter\"\n animate.leave=\"tls-fab-menu__items--leave\"\n >\n @for (item of items(); track $index) {\n <!-- Inside role=\"menu\" the list markup is presentational; the button is\n the menuitem. The index drives the fan-out stagger. -->\n <li\n class=\"tls-fab-menu__entry\"\n role=\"none\"\n [style.--tls-fab-menu-entry-index]=\"$index\"\n >\n <button\n ngMenuItem\n type=\"button\"\n class=\"tls-fab-menu__item\"\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n @if (iconTemplate(); as template) {\n <span class=\"tls-fab-menu__item-icon\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n } @else if (item.icon) {\n <tls-icon class=\"tls-fab-menu__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-fab-menu__item-label\">{{ item.label }}</span>\n </button>\n </li>\n }\n </ul>\n}\n\n<tls-button\n #trigger\n class=\"tls-fab-menu__trigger\"\n fab\n rounded\n icon\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"'menu'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? id : null\"\n (click)=\"toggle()\"\n>\n <span class=\"tls-fab-menu__trigger-icon\" aria-hidden=\"true\">\n <!-- The consumer's glyph, with the speed dial's canonical plus standing in\n when nothing is projected. -->\n <ng-content><tls-icon name=\"plus\" /></ng-content>\n </span>\n</tls-button>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Menu$1, selector: "[ngMenu]", inputs: ["id", "wrap", "typeaheadDelay", "disabled", "softDisabled", "expansionDelay"], outputs: ["itemSelected"], exportAs: ["ngMenu"] }, { kind: "directive", type: MenuItem, selector: "[ngMenuItem]", inputs: ["id", "value", "disabled", "searchTerm", "role", "submenu"], outputs: ["searchTermChange"], exportAs: ["ngMenuItem"] }, { kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
7921
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: FabMenu, isStandalone: true, selector: "tls-fab-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:click": "onDocumentClick($event)" }, properties: { "class.tls-fab-menu--open": "isOpen()" }, classAttribute: "tls-fab-menu" }, queries: [{ propertyName: "iconTemplate", first: true, predicate: ["itemIcon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_itemsList", first: true, predicate: ["itemsList"], descendants: true, isSignal: true }, { propertyName: "_trigger", first: true, predicate: ["trigger"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (isOpen()) {\n <ul\n #itemsList\n class=\"tls-fab-menu__items\"\n ngMenu\n tabindex=\"-1\"\n [id]=\"id\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemSelected($event)\"\n (keydown.escape)=\"close(true)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n animate.enter=\"tls-fab-menu__items--enter\"\n animate.leave=\"tls-fab-menu__items--leave\"\n >\n @for (item of items(); track $index) {\n <!-- Inside role=\"menu\" the list markup is presentational; the button is\n the menuitem. The index drives the fan-out stagger. -->\n <li\n class=\"tls-fab-menu__entry\"\n role=\"none\"\n [style.--tls-fab-menu-entry-index]=\"$index\"\n >\n <button\n ngMenuItem\n type=\"button\"\n class=\"tls-fab-menu__item\"\n tlsRipple\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n @if (iconTemplate(); as template) {\n <span class=\"tls-fab-menu__item-icon\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n } @else if (item.icon) {\n <tls-icon class=\"tls-fab-menu__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-fab-menu__item-label\">{{ item.label }}</span>\n </button>\n </li>\n }\n </ul>\n}\n\n<tls-button\n #trigger\n class=\"tls-fab-menu__trigger\"\n fab\n rounded\n icon\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"'menu'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? id : null\"\n (click)=\"toggle()\"\n>\n <span class=\"tls-fab-menu__trigger-icon\" aria-hidden=\"true\">\n <!-- The consumer's glyph, with the speed dial's canonical plus standing in\n when nothing is projected. -->\n <ng-content><tls-icon name=\"plus\" /></ng-content>\n </span>\n</tls-button>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Menu$1, selector: "[ngMenu]", inputs: ["id", "wrap", "typeaheadDelay", "disabled", "softDisabled", "expansionDelay"], outputs: ["itemSelected"], exportAs: ["ngMenu"] }, { kind: "directive", type: MenuItem, selector: "[ngMenuItem]", inputs: ["id", "value", "disabled", "searchTerm", "role", "submenu"], outputs: ["searchTermChange"], exportAs: ["ngMenuItem"] }, { kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
7600
7922
  }
7601
7923
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FabMenu, decorators: [{
7602
7924
  type: Component,
7603
- args: [{ selector: 'tls-fab-menu', imports: [NgTemplateOutlet, Menu$1, MenuItem, Button, Icon], host: {
7925
+ args: [{ selector: 'tls-fab-menu', imports: [NgTemplateOutlet, Menu$1, MenuItem, Button, Icon, RippleDirective], host: {
7604
7926
  class: 'tls-fab-menu',
7605
7927
  '[class.tls-fab-menu--open]': 'isOpen()',
7606
7928
  '(document:click)': 'onDocumentClick($event)',
7607
- }, template: "@if (isOpen()) {\n <ul\n #itemsList\n class=\"tls-fab-menu__items\"\n ngMenu\n tabindex=\"-1\"\n [id]=\"id\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemSelected($event)\"\n (keydown.escape)=\"close(true)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n animate.enter=\"tls-fab-menu__items--enter\"\n animate.leave=\"tls-fab-menu__items--leave\"\n >\n @for (item of items(); track $index) {\n <!-- Inside role=\"menu\" the list markup is presentational; the button is\n the menuitem. The index drives the fan-out stagger. -->\n <li\n class=\"tls-fab-menu__entry\"\n role=\"none\"\n [style.--tls-fab-menu-entry-index]=\"$index\"\n >\n <button\n ngMenuItem\n type=\"button\"\n class=\"tls-fab-menu__item\"\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n @if (iconTemplate(); as template) {\n <span class=\"tls-fab-menu__item-icon\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n } @else if (item.icon) {\n <tls-icon class=\"tls-fab-menu__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-fab-menu__item-label\">{{ item.label }}</span>\n </button>\n </li>\n }\n </ul>\n}\n\n<tls-button\n #trigger\n class=\"tls-fab-menu__trigger\"\n fab\n rounded\n icon\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"'menu'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? id : null\"\n (click)=\"toggle()\"\n>\n <span class=\"tls-fab-menu__trigger-icon\" aria-hidden=\"true\">\n <!-- The consumer's glyph, with the speed dial's canonical plus standing in\n when nothing is projected. -->\n <ng-content><tls-icon name=\"plus\" /></ng-content>\n </span>\n</tls-button>\n" }]
7929
+ }, template: "@if (isOpen()) {\n <ul\n #itemsList\n class=\"tls-fab-menu__items\"\n ngMenu\n tabindex=\"-1\"\n [id]=\"id\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemSelected($event)\"\n (keydown.escape)=\"close(true)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n animate.enter=\"tls-fab-menu__items--enter\"\n animate.leave=\"tls-fab-menu__items--leave\"\n >\n @for (item of items(); track $index) {\n <!-- Inside role=\"menu\" the list markup is presentational; the button is\n the menuitem. The index drives the fan-out stagger. -->\n <li\n class=\"tls-fab-menu__entry\"\n role=\"none\"\n [style.--tls-fab-menu-entry-index]=\"$index\"\n >\n <button\n ngMenuItem\n type=\"button\"\n class=\"tls-fab-menu__item\"\n tlsRipple\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n @if (iconTemplate(); as template) {\n <span class=\"tls-fab-menu__item-icon\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n } @else if (item.icon) {\n <tls-icon class=\"tls-fab-menu__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-fab-menu__item-label\">{{ item.label }}</span>\n </button>\n </li>\n }\n </ul>\n}\n\n<tls-button\n #trigger\n class=\"tls-fab-menu__trigger\"\n fab\n rounded\n icon\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"'menu'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? id : null\"\n (click)=\"toggle()\"\n>\n <span class=\"tls-fab-menu__trigger-icon\" aria-hidden=\"true\">\n <!-- The consumer's glyph, with the speed dial's canonical plus standing in\n when nothing is projected. -->\n <ng-content><tls-icon name=\"plus\" /></ng-content>\n </span>\n</tls-button>\n" }]
7608
7930
  }], ctorParameters: () => [], propDecorators: { _itemsList: [{ type: i0.ViewChild, args: ['itemsList', { isSignal: true }] }], _trigger: [{ type: i0.ViewChild, args: ['trigger', { ...{
7609
7931
  read: (ElementRef),
7610
7932
  }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['itemIcon', { isSignal: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
@@ -7734,7 +8056,7 @@ class FormControlGroup {
7734
8056
  return nearest;
7735
8057
  }
7736
8058
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormControlGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
7737
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: FormControlGroup, isStandalone: true, selector: "tls-form-control-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "_projectedControls", predicate: FORM_CONTROL, descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
8059
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: FormControlGroup, isStandalone: true, selector: "tls-form-control-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL_FRAME, useFactory: () => inject(ElementRef) }], queries: [{ propertyName: "_projectedControls", predicate: FORM_CONTROL, descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
7738
8060
  }
7739
8061
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormControlGroup, decorators: [{
7740
8062
  type: Component,
@@ -7742,6 +8064,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
7742
8064
  selector: 'tls-form-control-group',
7743
8065
  imports: [],
7744
8066
  template: '<ng-content></ng-content>',
8067
+ // The group draws the border around every control and addon it holds, so it is the
8068
+ // frame each of those controls aligns its panel to.
8069
+ providers: [{ provide: FORM_CONTROL_FRAME, useFactory: () => inject(ElementRef) }],
7745
8070
  host: {
7746
8071
  '[class]': 'hostClasses()',
7747
8072
  },
@@ -7999,6 +8324,10 @@ class FormItem {
7999
8324
  if (this.spread())
8000
8325
  array.push(`${className}--spread`);
8001
8326
  }
8327
+ // Set by whether a hint is configured, never by what the footer shows now: an
8328
+ // error taking the hint's place must not change the row's layout.
8329
+ if (this.hint())
8330
+ array.push(`${className}--has-hint`);
8002
8331
  if (this.reserveErrorSpace())
8003
8332
  array.push(`${className}--error-space-reserved`);
8004
8333
  if (this.reserveLabelSpace())
@@ -8109,6 +8438,7 @@ class Autocomplete extends AbstractSelect {
8109
8438
  uniqueId = `tls-autocomplete-${Autocomplete._nextUniqueId++}`;
8110
8439
  hostClassBase = 'tls-autocomplete';
8111
8440
  panelClass = 'tls-autocomplete-panel';
8441
+ panelMatchesFieldWidth = true;
8112
8442
  panelCssVariablePrefix = '--tls-autocomplete-panel';
8113
8443
  value = model(null, /* @ts-ignore */
8114
8444
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -8318,13 +8648,13 @@ class Autocomplete extends AbstractSelect {
8318
8648
  this.queryChange.emit('');
8319
8649
  }
8320
8650
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Autocomplete, deps: null, target: i0.ɵɵFactoryTarget.Component });
8321
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Autocomplete, isStandalone: true, selector: "tls-autocomplete", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, minQueryLength: { classPropertyName: "minQueryLength", publicName: "minQueryLength", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", queryChange: "queryChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Autocomplete) }], usesInheritance: true, ngImport: i0, template: "<input\n #trigger\n type=\"text\"\n class=\"tls-autocomplete__trigger\"\n role=\"combobox\"\n autocomplete=\"off\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-expanded]=\"isOpen()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n (click)=\"open()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n/>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-autocomplete__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-autocomplete__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-autocomplete__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the loading state writes into it. The panel's own\n notice is hidden from assistive technology to keep it from being read twice. Only a search\n behind an open panel is announced: a list nobody is looking at has nothing to report.\n-->\n<div class=\"tls-autocomplete__status\" role=\"status\">\n {{ loading() && isOpen() ? loadingMessage() : '' }}\n</div>\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-autocomplete__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"entry.option.value === value()\"\n [class.tls-autocomplete__option--active]=\"entry.index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-autocomplete__panel tls-autocomplete__panel--virtual\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"option.value === value()\"\n [class.tls-autocomplete__option--active]=\"index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n @if (visibleOptions().length === 0) {\n @if (loading()) {\n <div class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </div>\n } @else if (!belowMinQueryLength()) {\n <div class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</div>\n }\n }\n </div>\n } @else {\n <ul\n class=\"tls-autocomplete__panel\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-autocomplete__group\" role=\"presentation\">\n <ul class=\"tls-autocomplete__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-autocomplete__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n } @empty {\n @if (loading()) {\n <li class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </li>\n } @else if (!belowMinQueryLength()) {\n <li class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }] });
8651
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Autocomplete, isStandalone: true, selector: "tls-autocomplete", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, minQueryLength: { classPropertyName: "minQueryLength", publicName: "minQueryLength", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", queryChange: "queryChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Autocomplete) }], usesInheritance: true, ngImport: i0, template: "<input\n #trigger\n type=\"text\"\n class=\"tls-autocomplete__trigger\"\n role=\"combobox\"\n autocomplete=\"off\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-expanded]=\"isOpen()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n (click)=\"open()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n/>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-autocomplete__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-autocomplete__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-autocomplete__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the loading state writes into it. The panel's own\n notice is hidden from assistive technology to keep it from being read twice. Only a search\n behind an open panel is announced: a list nobody is looking at has nothing to report.\n-->\n<div class=\"tls-autocomplete__status\" role=\"status\">\n {{ loading() && isOpen() ? loadingMessage() : '' }}\n</div>\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-autocomplete__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"entry.option.value === value()\"\n [class.tls-autocomplete__option--active]=\"entry.index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-autocomplete__panel tls-autocomplete__panel--virtual\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"option.value === value()\"\n [class.tls-autocomplete__option--active]=\"index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n @if (visibleOptions().length === 0) {\n @if (loading()) {\n <div class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </div>\n } @else if (!belowMinQueryLength()) {\n <div class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</div>\n }\n }\n </div>\n } @else {\n <ul\n class=\"tls-autocomplete__panel\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-autocomplete__group\" role=\"presentation\">\n <ul class=\"tls-autocomplete__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-autocomplete__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n } @empty {\n @if (loading()) {\n <li class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </li>\n } @else if (!belowMinQueryLength()) {\n <li class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
8322
8652
  }
8323
8653
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Autocomplete, decorators: [{
8324
8654
  type: Component,
8325
- args: [{ selector: 'tls-autocomplete', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
8655
+ args: [{ selector: 'tls-autocomplete', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
8326
8656
  '[class]': 'hostClasses()',
8327
- }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Autocomplete) }], template: "<input\n #trigger\n type=\"text\"\n class=\"tls-autocomplete__trigger\"\n role=\"combobox\"\n autocomplete=\"off\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-expanded]=\"isOpen()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n (click)=\"open()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n/>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-autocomplete__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-autocomplete__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-autocomplete__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the loading state writes into it. The panel's own\n notice is hidden from assistive technology to keep it from being read twice. Only a search\n behind an open panel is announced: a list nobody is looking at has nothing to report.\n-->\n<div class=\"tls-autocomplete__status\" role=\"status\">\n {{ loading() && isOpen() ? loadingMessage() : '' }}\n</div>\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-autocomplete__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"entry.option.value === value()\"\n [class.tls-autocomplete__option--active]=\"entry.index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-autocomplete__panel tls-autocomplete__panel--virtual\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"option.value === value()\"\n [class.tls-autocomplete__option--active]=\"index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n @if (visibleOptions().length === 0) {\n @if (loading()) {\n <div class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </div>\n } @else if (!belowMinQueryLength()) {\n <div class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</div>\n }\n }\n </div>\n } @else {\n <ul\n class=\"tls-autocomplete__panel\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-autocomplete__group\" role=\"presentation\">\n <ul class=\"tls-autocomplete__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-autocomplete__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n } @empty {\n @if (loading()) {\n <li class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </li>\n } @else if (!belowMinQueryLength()) {\n <li class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
8657
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Autocomplete) }], template: "<input\n #trigger\n type=\"text\"\n class=\"tls-autocomplete__trigger\"\n role=\"combobox\"\n autocomplete=\"off\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [attr.aria-expanded]=\"isOpen()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [value]=\"query()\"\n (input)=\"onInput($event)\"\n (click)=\"open()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n/>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-autocomplete__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-autocomplete__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-autocomplete__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the loading state writes into it. The panel's own\n notice is hidden from assistive technology to keep it from being read twice. Only a search\n behind an open panel is announced: a list nobody is looking at has nothing to report.\n-->\n<div class=\"tls-autocomplete__status\" role=\"status\">\n {{ loading() && isOpen() ? loadingMessage() : '' }}\n</div>\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-autocomplete__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"entry.option.value === value()\"\n [class.tls-autocomplete__option--active]=\"entry.index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-autocomplete__panel tls-autocomplete__panel--virtual\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-autocomplete__option\"\n role=\"presentation\"\n [class.tls-autocomplete__option--selected]=\"option.value === value()\"\n [class.tls-autocomplete__option--active]=\"index === activeIndex()\"\n [class.tls-autocomplete__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n @if (visibleOptions().length === 0) {\n @if (loading()) {\n <div class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </div>\n } @else if (!belowMinQueryLength()) {\n <div class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</div>\n }\n }\n </div>\n } @else {\n <ul\n class=\"tls-autocomplete__panel\"\n [class.tls-autocomplete__panel--hidden]=\"!hasPanelContent()\"\n animate.enter=\"tls-autocomplete__panel--enter\"\n animate.leave=\"tls-autocomplete__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-autocomplete__group\" role=\"presentation\">\n <ul class=\"tls-autocomplete__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-autocomplete__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n } @empty {\n @if (loading()) {\n <li class=\"tls-autocomplete__loading\" role=\"presentation\" aria-hidden=\"true\">\n <tls-loader size=\"xs\" />\n {{ loadingMessage() }}\n </li>\n } @else if (!belowMinQueryLength()) {\n <li class=\"tls-autocomplete__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
8328
8658
  }], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], minQueryLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minQueryLength", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], loadingMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMessage", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], queryChange: [{ type: i0.Output, args: ["queryChange"] }] } });
8329
8659
 
8330
8660
  const DEFAULT_CHECKBOX_CONFIG = {};
@@ -8428,18 +8758,37 @@ class Popover {
8428
8758
  */
8429
8759
  panelClass = input(undefined, /* @ts-ignore */
8430
8760
  ...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
8761
+ /**
8762
+ * Whether a backdrop covers the page while the panel is open, so the press that dismisses
8763
+ * the panel goes no further. Without one, a press elsewhere closes the panel and lands where
8764
+ * it was aimed, focusing another field on the first press, while presses on the element the
8765
+ * panel opened from are left to that element.
8766
+ */
8767
+ backdrop = input(true, { ...(ngDevMode ? { debugName: "backdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8768
+ /**
8769
+ * Leave focus where it is when the panel is pressed, for a panel that is only pointed at
8770
+ * while its owner keeps focus: picking from it then never blurs the field it belongs to.
8771
+ * Leave it off for a panel holding a text field, which a press has to be able to focus.
8772
+ */
8773
+ keepFocusOnPress = input(false, { ...(ngDevMode ? { debugName: "keepFocusOnPress" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8774
+ /** Emits after the panel closes, with what closed it. */
8775
+ closed = output();
8431
8776
  _positions = computed(() => buildOverlayPositions(this.position(), this.offset()), /* @ts-ignore */
8432
8777
  ...(ngDevMode ? [{ debugName: "_positions" }] : /* istanbul ignore next */ []));
8433
8778
  // Public methods
8434
8779
  open(trigger) {
8435
- const origin = trigger instanceof MouseEvent ? trigger.currentTarget : trigger;
8780
+ const originElement = trigger instanceof MouseEvent ? trigger.currentTarget : trigger;
8436
8781
  this._overlay.open({
8437
8782
  content: this._templateRef(),
8438
- origin,
8783
+ origin: originElement,
8439
8784
  positions: this._positions(),
8440
8785
  viewportMargin: this.viewportMargin(),
8441
8786
  shrinkToFit: this.shrinkToFit(),
8442
8787
  panelClass: this.panelClass(),
8788
+ hasBackdrop: this.backdrop(),
8789
+ insideElement: originElement,
8790
+ keepFocusOnPanePress: this.keepFocusOnPress(),
8791
+ onClose: cause => this.closed.emit(cause),
8443
8792
  });
8444
8793
  }
8445
8794
  close() {
@@ -8454,7 +8803,7 @@ class Popover {
8454
8803
  }
8455
8804
  }
8456
8805
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Popover, deps: [], target: i0.ɵɵFactoryTarget.Component });
8457
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Popover, isStandalone: true, selector: "tls-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, viewportMargin: { classPropertyName: "viewportMargin", publicName: "viewportMargin", isSignal: true, isRequired: false, transformFunction: null }, shrinkToFit: { classPropertyName: "shrinkToFit", publicName: "shrinkToFit", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: none" }, viewQueries: [{ propertyName: "_templateRef", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
8806
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Popover, isStandalone: true, selector: "tls-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, viewportMargin: { classPropertyName: "viewportMargin", publicName: "viewportMargin", isSignal: true, isRequired: false, transformFunction: null }, shrinkToFit: { classPropertyName: "shrinkToFit", publicName: "shrinkToFit", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, keepFocusOnPress: { classPropertyName: "keepFocusOnPress", publicName: "keepFocusOnPress", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { styleAttribute: "display: none" }, viewQueries: [{ propertyName: "_templateRef", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
8458
8807
  <ng-template #content>
8459
8808
  <div
8460
8809
  class="tls-popover"
@@ -8496,7 +8845,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
8496
8845
  </ng-template>
8497
8846
  `,
8498
8847
  }]
8499
- }], propDecorators: { _templateRef: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], shrinkToFit: [{ type: i0.Input, args: [{ isSignal: true, alias: "shrinkToFit", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }] } });
8848
+ }], propDecorators: { _templateRef: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], viewportMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportMargin", required: false }] }], shrinkToFit: [{ type: i0.Input, args: [{ isSignal: true, alias: "shrinkToFit", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], keepFocusOnPress: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepFocusOnPress", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
8500
8849
 
8501
8850
  /** Hue channel scale: degrees on the color wheel. */
8502
8851
  const HUE_MAX = 360;
@@ -9356,7 +9705,6 @@ class ColorInput extends ValueFormControl {
9356
9705
  // View children
9357
9706
  _popoverComponent = viewChild('popoverRef', /* @ts-ignore */
9358
9707
  ...(ngDevMode ? [{ debugName: "_popoverComponent" }] : /* istanbul ignore next */ []));
9359
- _trigger = viewChild.required('triggerRef');
9360
9708
  // State
9361
9709
  labels = this._config.labels;
9362
9710
  // Computed
@@ -9387,9 +9735,19 @@ class ColorInput extends ValueFormControl {
9387
9735
  const popover = this._popoverComponent();
9388
9736
  if (!popover)
9389
9737
  return;
9390
- popover.open(this._trigger().nativeElement);
9738
+ popover.open(this.frameElement());
9391
9739
  }
9392
9740
  // Protected methods
9741
+ /**
9742
+ * Opens the picker, or closes it. The panel is anchored to the field's frame rather than
9743
+ * the swatch inside it, so it starts at the field's outer edge.
9744
+ */
9745
+ onTriggerClick() {
9746
+ const popover = this._popoverComponent();
9747
+ if (!popover)
9748
+ return;
9749
+ popover.toggle(this.frameElement());
9750
+ }
9393
9751
  onPickerValueChange(next) {
9394
9752
  this.value.set(next);
9395
9753
  }
@@ -9424,7 +9782,7 @@ class ColorInput extends ValueFormControl {
9424
9782
  const popover = this._popoverComponent();
9425
9783
  if (!popover)
9426
9784
  return;
9427
- popover.open(this._trigger().nativeElement);
9785
+ popover.open(this.frameElement());
9428
9786
  }
9429
9787
  _commitField(field) {
9430
9788
  const parsed = parseColor(field.value);
@@ -9440,12 +9798,12 @@ class ColorInput extends ValueFormControl {
9440
9798
  field.value = this.displayValue();
9441
9799
  }
9442
9800
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ColorInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
9443
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: ColorInput, isStandalone: true, selector: "tls-color-input", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, formats: { classPropertyName: "formats", publicName: "formats", isSignal: true, isRequired: false, transformFunction: null }, hexCase: { classPropertyName: "hexCase", publicName: "hexCase", isSignal: true, isRequired: false, transformFunction: null }, pickerOnly: { classPropertyName: "pickerOnly", publicName: "pickerOnly", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ColorInput) }], viewQueries: [{ propertyName: "_popoverComponent", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }, { propertyName: "_trigger", first: true, predicate: ["triggerRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<button\n #triggerRef\n type=\"button\"\n class=\"tls-color-input__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"labels.openPicker\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"popoverRef.toggle($event)\"\n (blur)=\"touched.set(true)\"\n>\n <tls-color-swatch [value]=\"swatchColor()\" size=\"xs\" aria-hidden=\"true\" />\n</button>\n<input\n type=\"text\"\n tlsInput\n class=\"tls-color-input__input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || pickerOnly()\"\n [class.tls-color-input__input--picker-only]=\"pickerOnly()\"\n [attr.aria-haspopup]=\"pickerOnly() ? 'dialog' : null\"\n [attr.aria-expanded]=\"pickerOnly() ? popoverRef.isOpen() : null\"\n [value]=\"displayValue()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onFieldKeydown($event)\"\n (blur)=\"onFieldBlur($event)\"\n/>\n<tls-popover #popoverRef position=\"bottom-start\" [ariaLabel]=\"labels.panel\">\n <tls-color-picker\n [value]=\"pickerValue()\"\n (valueChange)=\"onPickerValueChange($event)\"\n [alpha]=\"alpha()\"\n [formats]=\"formats()\"\n [hexCase]=\"hexCase()\"\n [presets]=\"presets()\"\n [size]=\"size()\"\n [readonly]=\"readonly()\"\n />\n</tls-popover>\n", styles: [":host{--tls-color-input-width: 200px;--tls-color-input-trigger-width: 32px;position:relative;width:var(--tls-color-input-width);display:inline-block}:host:has(.tls-form-control--fluid){--tls-color-input-width: 100%}:host .tls-color-input__input{width:100%;padding-inline-start:calc(var(--tls-color-input-trigger-width) + var(--spacing-1))}:host .tls-color-input__input--picker-only{cursor:pointer}:host .tls-color-input__trigger{position:absolute;inset-block:1px;inset-inline-start:1px;z-index:1;width:var(--tls-color-input-trigger-width);padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}\n"], dependencies: [{ kind: "component", type: ColorPicker, selector: "tls-color-picker", inputs: ["value", "alpha", "size", "formats", "presets", "hexCase"], outputs: ["valueChange"] }, { kind: "component", type: ColorSwatch, selector: "tls-color-swatch", inputs: ["value", "size", "ariaLabel"] }, { kind: "directive", type: InputDirective, selector: "[tlsInput]", inputs: ["size", "variant", "fluid"] }, { kind: "component", type: Popover, selector: "tls-popover", inputs: ["position", "offset", "viewportMargin", "shrinkToFit", "ariaLabel", "panelClass"] }] });
9801
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: ColorInput, isStandalone: true, selector: "tls-color-input", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null }, formats: { classPropertyName: "formats", publicName: "formats", isSignal: true, isRequired: false, transformFunction: null }, hexCase: { classPropertyName: "hexCase", publicName: "hexCase", isSignal: true, isRequired: false, transformFunction: null }, pickerOnly: { classPropertyName: "pickerOnly", publicName: "pickerOnly", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ColorInput) }], viewQueries: [{ propertyName: "_popoverComponent", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<button\n type=\"button\"\n class=\"tls-color-input__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"labels.openPicker\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick()\"\n (blur)=\"touched.set(true)\"\n>\n <tls-color-swatch [value]=\"swatchColor()\" size=\"xs\" aria-hidden=\"true\" />\n</button>\n<input\n type=\"text\"\n tlsInput\n class=\"tls-color-input__input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || pickerOnly()\"\n [class.tls-color-input__input--picker-only]=\"pickerOnly()\"\n [attr.aria-haspopup]=\"pickerOnly() ? 'dialog' : null\"\n [attr.aria-expanded]=\"pickerOnly() ? popoverRef.isOpen() : null\"\n [value]=\"displayValue()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onFieldKeydown($event)\"\n (blur)=\"onFieldBlur($event)\"\n/>\n<tls-popover\n #popoverRef\n position=\"bottom-start\"\n panelClass=\"tls-field-popover\"\n [backdrop]=\"false\"\n [ariaLabel]=\"labels.panel\"\n (closed)=\"restoreFocusAfterPanel($event)\"\n>\n <tls-color-picker\n [value]=\"pickerValue()\"\n (valueChange)=\"onPickerValueChange($event)\"\n [alpha]=\"alpha()\"\n [formats]=\"formats()\"\n [hexCase]=\"hexCase()\"\n [presets]=\"presets()\"\n [size]=\"size()\"\n [readonly]=\"readonly()\"\n />\n</tls-popover>\n", styles: [":host{--tls-color-input-width: 200px;--tls-color-input-trigger-width: 32px;position:relative;width:var(--tls-color-input-width);display:inline-block}:host:has(.tls-form-control--fluid){--tls-color-input-width: 100%}:host .tls-color-input__input{width:100%;padding-inline-start:calc(var(--tls-color-input-trigger-width) + var(--spacing-1))}:host .tls-color-input__input--picker-only{cursor:pointer}:host .tls-color-input__trigger{position:absolute;inset-block:1px;inset-inline-start:1px;z-index:1;width:var(--tls-color-input-trigger-width);padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}\n"], dependencies: [{ kind: "component", type: ColorPicker, selector: "tls-color-picker", inputs: ["value", "alpha", "size", "formats", "presets", "hexCase"], outputs: ["valueChange"] }, { kind: "component", type: ColorSwatch, selector: "tls-color-swatch", inputs: ["value", "size", "ariaLabel"] }, { kind: "directive", type: InputDirective, selector: "[tlsInput]", inputs: ["size", "variant", "fluid"] }, { kind: "component", type: Popover, selector: "tls-popover", inputs: ["position", "offset", "viewportMargin", "shrinkToFit", "ariaLabel", "panelClass", "backdrop", "keepFocusOnPress"], outputs: ["closed"] }] });
9444
9802
  }
9445
9803
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ColorInput, decorators: [{
9446
9804
  type: Component,
9447
- args: [{ selector: 'tls-color-input', imports: [ColorPicker, ColorSwatch, InputDirective, Popover], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ColorInput) }], template: "<button\n #triggerRef\n type=\"button\"\n class=\"tls-color-input__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"labels.openPicker\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"popoverRef.toggle($event)\"\n (blur)=\"touched.set(true)\"\n>\n <tls-color-swatch [value]=\"swatchColor()\" size=\"xs\" aria-hidden=\"true\" />\n</button>\n<input\n type=\"text\"\n tlsInput\n class=\"tls-color-input__input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || pickerOnly()\"\n [class.tls-color-input__input--picker-only]=\"pickerOnly()\"\n [attr.aria-haspopup]=\"pickerOnly() ? 'dialog' : null\"\n [attr.aria-expanded]=\"pickerOnly() ? popoverRef.isOpen() : null\"\n [value]=\"displayValue()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onFieldKeydown($event)\"\n (blur)=\"onFieldBlur($event)\"\n/>\n<tls-popover #popoverRef position=\"bottom-start\" [ariaLabel]=\"labels.panel\">\n <tls-color-picker\n [value]=\"pickerValue()\"\n (valueChange)=\"onPickerValueChange($event)\"\n [alpha]=\"alpha()\"\n [formats]=\"formats()\"\n [hexCase]=\"hexCase()\"\n [presets]=\"presets()\"\n [size]=\"size()\"\n [readonly]=\"readonly()\"\n />\n</tls-popover>\n", styles: [":host{--tls-color-input-width: 200px;--tls-color-input-trigger-width: 32px;position:relative;width:var(--tls-color-input-width);display:inline-block}:host:has(.tls-form-control--fluid){--tls-color-input-width: 100%}:host .tls-color-input__input{width:100%;padding-inline-start:calc(var(--tls-color-input-trigger-width) + var(--spacing-1))}:host .tls-color-input__input--picker-only{cursor:pointer}:host .tls-color-input__trigger{position:absolute;inset-block:1px;inset-inline-start:1px;z-index:1;width:var(--tls-color-input-trigger-width);padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}\n"] }]
9448
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], formats: [{ type: i0.Input, args: [{ isSignal: true, alias: "formats", required: false }] }], hexCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "hexCase", required: false }] }], pickerOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "pickerOnly", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], _popoverComponent: [{ type: i0.ViewChild, args: ['popoverRef', { isSignal: true }] }], _trigger: [{ type: i0.ViewChild, args: ['triggerRef', { isSignal: true }] }] } });
9805
+ args: [{ selector: 'tls-color-input', imports: [ColorPicker, ColorSwatch, InputDirective, Popover], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ColorInput) }], template: "<button\n type=\"button\"\n class=\"tls-color-input__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"labels.openPicker\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick()\"\n (blur)=\"touched.set(true)\"\n>\n <tls-color-swatch [value]=\"swatchColor()\" size=\"xs\" aria-hidden=\"true\" />\n</button>\n<input\n type=\"text\"\n tlsInput\n class=\"tls-color-input__input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || pickerOnly()\"\n [class.tls-color-input__input--picker-only]=\"pickerOnly()\"\n [attr.aria-haspopup]=\"pickerOnly() ? 'dialog' : null\"\n [attr.aria-expanded]=\"pickerOnly() ? popoverRef.isOpen() : null\"\n [value]=\"displayValue()\"\n (click)=\"onFieldClick()\"\n (keydown)=\"onFieldKeydown($event)\"\n (blur)=\"onFieldBlur($event)\"\n/>\n<tls-popover\n #popoverRef\n position=\"bottom-start\"\n panelClass=\"tls-field-popover\"\n [backdrop]=\"false\"\n [ariaLabel]=\"labels.panel\"\n (closed)=\"restoreFocusAfterPanel($event)\"\n>\n <tls-color-picker\n [value]=\"pickerValue()\"\n (valueChange)=\"onPickerValueChange($event)\"\n [alpha]=\"alpha()\"\n [formats]=\"formats()\"\n [hexCase]=\"hexCase()\"\n [presets]=\"presets()\"\n [size]=\"size()\"\n [readonly]=\"readonly()\"\n />\n</tls-popover>\n", styles: [":host{--tls-color-input-width: 200px;--tls-color-input-trigger-width: 32px;position:relative;width:var(--tls-color-input-width);display:inline-block}:host:has(.tls-form-control--fluid){--tls-color-input-width: 100%}:host .tls-color-input__input{width:100%;padding-inline-start:calc(var(--tls-color-input-trigger-width) + var(--spacing-1))}:host .tls-color-input__input--picker-only{cursor:pointer}:host .tls-color-input__trigger{position:absolute;inset-block:1px;inset-inline-start:1px;z-index:1;width:var(--tls-color-input-trigger-width);padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}\n"] }]
9806
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }], presets: [{ type: i0.Input, args: [{ isSignal: true, alias: "presets", required: false }] }], formats: [{ type: i0.Input, args: [{ isSignal: true, alias: "formats", required: false }] }], hexCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "hexCase", required: false }] }], pickerOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "pickerOnly", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], _popoverComponent: [{ type: i0.ViewChild, args: ['popoverRef', { isSignal: true }] }] } });
9449
9807
 
9450
9808
  class DatePickerCalendar {
9451
9809
  // Injections
@@ -9508,11 +9866,11 @@ class DatePickerCalendar {
9508
9866
  this.viewDateChange.emit(addMonths(this.viewDate(), 1));
9509
9867
  }
9510
9868
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DatePickerCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
9511
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DatePickerCalendar, isStandalone: true, selector: "tls-date-picker-calendar", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: true, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: true, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { daySelect: "daySelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-date-picker-calendar" }, ngImport: i0, template: "<div class=\"tls-date-picker-calendar__header\">\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"prevMonth()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__header-button\" (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"nextMonth()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<div class=\"tls-date-picker-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-date-picker-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-date-picker-calendar__day\"\n [class.tls-date-picker-calendar__day--outside]=\"!day.inCurrentMonth\"\n [class.tls-date-picker-calendar__day--today]=\"day.isToday\"\n [class.tls-date-picker-calendar__day--selected]=\"day.isSelected\"\n [disabled]=\"day.isDisabled\"\n (click)=\"daySelect.emit(day.date)\"\n >\n {{ day.label }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
9869
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DatePickerCalendar, isStandalone: true, selector: "tls-date-picker-calendar", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: true, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: true, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { daySelect: "daySelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-date-picker-calendar" }, ngImport: i0, template: "<div class=\"tls-date-picker-calendar__header\">\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" tlsRipple (click)=\"prevMonth()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__header-button\" tlsRipple (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" tlsRipple (click)=\"nextMonth()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<div class=\"tls-date-picker-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-date-picker-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-date-picker-calendar__day\"\n tlsRipple\n [class.tls-date-picker-calendar__day--outside]=\"!day.inCurrentMonth\"\n [class.tls-date-picker-calendar__day--today]=\"day.isToday\"\n [class.tls-date-picker-calendar__day--selected]=\"day.isSelected\"\n [disabled]=\"day.isDisabled\"\n (click)=\"daySelect.emit(day.date)\"\n >\n {{ day.label }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
9512
9870
  }
9513
9871
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DatePickerCalendar, decorators: [{
9514
9872
  type: Component,
9515
- args: [{ selector: 'tls-date-picker-calendar', imports: [Icon], host: { class: 'tls-date-picker-calendar' }, template: "<div class=\"tls-date-picker-calendar__header\">\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"prevMonth()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__header-button\" (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"nextMonth()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<div class=\"tls-date-picker-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-date-picker-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-date-picker-calendar__day\"\n [class.tls-date-picker-calendar__day--outside]=\"!day.inCurrentMonth\"\n [class.tls-date-picker-calendar__day--today]=\"day.isToday\"\n [class.tls-date-picker-calendar__day--selected]=\"day.isSelected\"\n [disabled]=\"day.isDisabled\"\n (click)=\"daySelect.emit(day.date)\"\n >\n {{ day.label }}\n </button>\n }\n</div>\n" }]
9873
+ args: [{ selector: 'tls-date-picker-calendar', imports: [Icon, RippleDirective], host: { class: 'tls-date-picker-calendar' }, template: "<div class=\"tls-date-picker-calendar__header\">\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" tlsRipple (click)=\"prevMonth()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__header-button\" tlsRipple (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" tlsRipple (click)=\"nextMonth()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<div class=\"tls-date-picker-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-date-picker-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.date.getTime()) {\n <button\n type=\"button\"\n class=\"tls-date-picker-calendar__day\"\n tlsRipple\n [class.tls-date-picker-calendar__day--outside]=\"!day.inCurrentMonth\"\n [class.tls-date-picker-calendar__day--today]=\"day.isToday\"\n [class.tls-date-picker-calendar__day--selected]=\"day.isSelected\"\n [disabled]=\"day.isDisabled\"\n (click)=\"daySelect.emit(day.date)\"\n >\n {{ day.label }}\n </button>\n }\n</div>\n" }]
9516
9874
  }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: true }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: true }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], daySelect: [{ type: i0.Output, args: ["daySelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
9517
9875
 
9518
9876
  /** `date-fns` format token for the trigger label in `calendar` mode, e.g. "Jul 20, 2026". */
@@ -9583,11 +9941,11 @@ class MonthPicker {
9583
9941
  return isSameMonth(new Date(), setMonth(this.viewDate(), monthIndex));
9584
9942
  }
9585
9943
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MonthPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
9586
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: MonthPicker, isStandalone: true, selector: "tls-month-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { monthSelect: "monthSelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-month-picker" }, ngImport: i0, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"prevYear()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"nextYear()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
9944
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: MonthPicker, isStandalone: true, selector: "tls-month-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { monthSelect: "monthSelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-month-picker" }, ngImport: i0, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" tlsRipple (click)=\"prevYear()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" tlsRipple (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" tlsRipple (click)=\"nextYear()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n tlsRipple\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
9587
9945
  }
9588
9946
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MonthPicker, decorators: [{
9589
9947
  type: Component,
9590
- args: [{ selector: 'tls-month-picker', imports: [Icon], host: { class: 'tls-month-picker' }, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"prevYear()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"nextYear()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n" }]
9948
+ args: [{ selector: 'tls-month-picker', imports: [Icon, RippleDirective], host: { class: 'tls-month-picker' }, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" tlsRipple (click)=\"prevYear()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" tlsRipple (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" tlsRipple (click)=\"nextYear()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n tlsRipple\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n" }]
9591
9949
  }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], monthSelect: [{ type: i0.Output, args: ["monthSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
9592
9950
 
9593
9951
  class TimePicker {
@@ -9653,11 +10011,11 @@ class TimePicker {
9653
10011
  return setHours(this._baseDate, hours);
9654
10012
  }
9655
10013
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TimePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
9656
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: TimePicker, isStandalone: true, selector: "tls-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { timeChange: "timeChange" }, host: { classAttribute: "tls-time-picker" }, ngImport: i0, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
10014
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: TimePicker, isStandalone: true, selector: "tls-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { timeChange: "timeChange" }, host: { classAttribute: "tls-time-picker" }, ngImport: i0, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" tlsRipple (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
9657
10015
  }
9658
10016
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TimePicker, decorators: [{
9659
10017
  type: Component,
9660
- args: [{ selector: 'tls-time-picker', imports: [Icon], host: { class: 'tls-time-picker' }, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n" }]
10018
+ args: [{ selector: 'tls-time-picker', imports: [Icon, RippleDirective], host: { class: 'tls-time-picker' }, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" tlsRipple (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" tlsRipple (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n" }]
9661
10019
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }] } });
9662
10020
 
9663
10021
  class YearPicker {
@@ -9702,11 +10060,11 @@ class YearPicker {
9702
10060
  return getYear(new Date()) === year;
9703
10061
  }
9704
10062
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: YearPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
9705
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: YearPicker, isStandalone: true, selector: "tls-year-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { yearSelect: "yearSelect", viewDateChange: "viewDateChange" }, host: { classAttribute: "tls-year-picker" }, ngImport: i0, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"prevPage()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"nextPage()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
10063
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: YearPicker, isStandalone: true, selector: "tls-year-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { yearSelect: "yearSelect", viewDateChange: "viewDateChange" }, host: { classAttribute: "tls-year-picker" }, ngImport: i0, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" tlsRipple (click)=\"prevPage()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" tlsRipple (click)=\"nextPage()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n tlsRipple\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
9706
10064
  }
9707
10065
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: YearPicker, decorators: [{
9708
10066
  type: Component,
9709
- args: [{ selector: 'tls-year-picker', imports: [Icon], host: { class: 'tls-year-picker' }, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"prevPage()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"nextPage()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n" }]
10067
+ args: [{ selector: 'tls-year-picker', imports: [Icon, RippleDirective], host: { class: 'tls-year-picker' }, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" tlsRipple (click)=\"prevPage()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" tlsRipple (click)=\"nextPage()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n tlsRipple\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n" }]
9710
10068
  }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], yearsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "yearsPerPage", required: true }] }], yearSelect: [{ type: i0.Output, args: ["yearSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }] } });
9711
10069
 
9712
10070
  class DateTimePicker extends ValueFormControl {
@@ -9782,6 +10140,12 @@ class DateTimePicker extends ValueFormControl {
9782
10140
  return format(value, `${DATE_LABEL_FORMAT} ${this._timeFormat}`, this._dateOptions);
9783
10141
  }, /* @ts-ignore */
9784
10142
  ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
10143
+ /**
10144
+ * The icon at the trigger's end names what the panel holds, as the select's chevron says a
10145
+ * list will drop: a clock for a time alone, a calendar for anything with a date in it.
10146
+ */
10147
+ triggerIcon = computed(() => this.mode() === 'time-picker' ? 'clock' : 'calendar', /* @ts-ignore */
10148
+ ...(ngDevMode ? [{ debugName: "triggerIcon" }] : /* istanbul ignore next */ []));
9785
10149
  // Public methods
9786
10150
  /**
9787
10151
  * Focus lands on the trigger and the picker opens with it: a date is chosen in the
@@ -9793,21 +10157,24 @@ class DateTimePicker extends ValueFormControl {
9793
10157
  if (this.notInteractive())
9794
10158
  return;
9795
10159
  const popover = this.popoverComponent();
9796
- const trigger = this.focusTarget();
9797
- if (!popover || !trigger || popover.isOpen())
10160
+ if (!popover || popover.isOpen())
9798
10161
  return;
9799
10162
  this._resetView();
9800
- popover.open(trigger);
10163
+ popover.open(this.frameElement());
9801
10164
  }
9802
10165
  // Protected methods
9803
- /** Opens on the home date, or closes; browsing from an earlier visit never carries over. */
9804
- onTriggerClick(event) {
10166
+ /**
10167
+ * Opens on the home date, or closes; browsing from an earlier visit never carries over.
10168
+ * The calendar is anchored to the field's frame rather than the trigger inside it, so it
10169
+ * starts at the field's outer edge.
10170
+ */
10171
+ onTriggerClick() {
9805
10172
  const popover = this.popoverComponent();
9806
10173
  if (!popover)
9807
10174
  return;
9808
10175
  if (!popover.isOpen())
9809
10176
  this._resetView();
9810
- popover.toggle(event);
10177
+ popover.toggle(this.frameElement());
9811
10178
  }
9812
10179
  onViewDateChange(date) {
9813
10180
  this.viewDate.set(date);
@@ -9878,7 +10245,7 @@ class DateTimePicker extends ValueFormControl {
9878
10245
  return today;
9879
10246
  }
9880
10247
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DateTimePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
9881
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DateTimePicker, isStandalone: true, selector: "tls-date-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], viewQueries: [{ propertyName: "popoverComponent", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick($event)\"\n (blur)=\"touched.set(true)\"\n >\n <span [class.tls-form-control__placeholder]=\"!value()\">{{ triggerLabel() }}</span>\n @if (pending()) {\n <tls-loader class=\"tls-date-time-picker__spinner\" size=\"xs\" aria-hidden=\"true\" />\n }\n </button>\n <tls-popover #popoverRef position=\"bottom-start\">\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n", dependencies: [{ kind: "component", type: DatePickerCalendar, selector: "tls-date-picker-calendar", inputs: ["viewDate", "selectedDate", "weekStartsOn", "weekDays", "minDate", "maxDate"], outputs: ["daySelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: MonthPicker, selector: "tls-month-picker", inputs: ["viewDate", "selectedDate"], outputs: ["monthSelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: YearPicker, selector: "tls-year-picker", inputs: ["viewDate", "selectedDate", "yearsPerPage"], outputs: ["yearSelect", "viewDateChange"] }, { kind: "component", type: TimePicker, selector: "tls-time-picker", inputs: ["value"], outputs: ["timeChange"] }, { kind: "component", type: Popover, selector: "tls-popover", inputs: ["position", "offset", "viewportMargin", "shrinkToFit", "ariaLabel", "panelClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
10248
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DateTimePicker, isStandalone: true, selector: "tls-date-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], viewQueries: [{ propertyName: "popoverComponent", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick()\"\n (blur)=\"touched.set(true)\"\n >\n <span class=\"tls-date-time-picker__value\" [class.tls-form-control__placeholder]=\"!value()\">\n {{ triggerLabel() }}\n </span>\n @if (pending()) {\n <tls-loader class=\"tls-date-time-picker__spinner\" size=\"xs\" aria-hidden=\"true\" />\n } @else {\n <span class=\"tls-date-time-picker__icon\" aria-hidden=\"true\">\n <tls-icon class=\"tls-date-time-picker__glyph\" [name]=\"triggerIcon()\" aria-hidden=\"true\" />\n </span>\n }\n </button>\n <tls-popover\n #popoverRef\n position=\"bottom-start\"\n panelClass=\"tls-field-popover\"\n [backdrop]=\"false\"\n keepFocusOnPress\n (closed)=\"restoreFocusAfterPanel($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n", dependencies: [{ kind: "component", type: DatePickerCalendar, selector: "tls-date-picker-calendar", inputs: ["viewDate", "selectedDate", "weekStartsOn", "weekDays", "minDate", "maxDate"], outputs: ["daySelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: MonthPicker, selector: "tls-month-picker", inputs: ["viewDate", "selectedDate"], outputs: ["monthSelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: YearPicker, selector: "tls-year-picker", inputs: ["viewDate", "selectedDate", "yearsPerPage"], outputs: ["yearSelect", "viewDateChange"] }, { kind: "component", type: TimePicker, selector: "tls-time-picker", inputs: ["value"], outputs: ["timeChange"] }, { kind: "component", type: Popover, selector: "tls-popover", inputs: ["position", "offset", "viewportMargin", "shrinkToFit", "ariaLabel", "panelClass", "backdrop", "keepFocusOnPress"], outputs: ["closed"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
9882
10249
  }
9883
10250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DateTimePicker, decorators: [{
9884
10251
  type: Component,
@@ -9889,8 +10256,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
9889
10256
  TimePicker,
9890
10257
  Popover,
9891
10258
  NgTemplateOutlet,
10259
+ Icon,
9892
10260
  Loader,
9893
- ], host: { '[class]': 'hostClasses()' }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick($event)\"\n (blur)=\"touched.set(true)\"\n >\n <span [class.tls-form-control__placeholder]=\"!value()\">{{ triggerLabel() }}</span>\n @if (pending()) {\n <tls-loader class=\"tls-date-time-picker__spinner\" size=\"xs\" aria-hidden=\"true\" />\n }\n </button>\n <tls-popover #popoverRef position=\"bottom-start\">\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n" }]
10261
+ ], host: { '[class]': 'hostClasses()' }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-date-picker-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n role=\"group\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"onTriggerClick()\"\n (blur)=\"touched.set(true)\"\n >\n <span class=\"tls-date-time-picker__value\" [class.tls-form-control__placeholder]=\"!value()\">\n {{ triggerLabel() }}\n </span>\n @if (pending()) {\n <tls-loader class=\"tls-date-time-picker__spinner\" size=\"xs\" aria-hidden=\"true\" />\n } @else {\n <span class=\"tls-date-time-picker__icon\" aria-hidden=\"true\">\n <tls-icon class=\"tls-date-time-picker__glyph\" [name]=\"triggerIcon()\" aria-hidden=\"true\" />\n </span>\n }\n </button>\n <tls-popover\n #popoverRef\n position=\"bottom-start\"\n panelClass=\"tls-field-popover\"\n [backdrop]=\"false\"\n keepFocusOnPress\n (closed)=\"restoreFocusAfterPanel($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n" }]
9894
10262
  }], propDecorators: { popoverComponent: [{ type: i0.ViewChild, args: ['popoverRef', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], yearsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "yearsPerPage", required: false }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: false }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }] } });
9895
10263
 
9896
10264
  const DEFAULT_CHIP_GROUP_CONFIG = {
@@ -10328,16 +10696,65 @@ const DEFAULT_INPUT_NUMBER_CONFIG = {
10328
10696
  placeholder: '',
10329
10697
  fluid: false,
10330
10698
  step: 1,
10331
- hideArrows: true,
10332
10699
  };
10333
10700
 
10334
10701
  const INPUT_NUMBER_CONFIG = new InjectionToken('INPUT_NUMBER_CONFIG', {
10335
10702
  factory: () => DEFAULT_INPUT_NUMBER_CONFIG,
10336
10703
  });
10337
10704
 
10705
+ /**
10706
+ * Whether `text` is a number on its way to being typed — empty, a lone sign,
10707
+ * digits with or without a trailing separator — that the field may hold.
10708
+ *
10709
+ * Both `.` and `,` count as the decimal separator in every locale. The field
10710
+ * never groups digits, so a comma cannot be a thousands separator in it; and
10711
+ * the separator a virtual keypad offers follows the device's region, not the
10712
+ * page's language, so either may arrive.
10713
+ *
10714
+ * @example
10715
+ * isPartialNumberText('-', { allowsNegative: true, allowsFraction: true }); // true
10716
+ * isPartialNumberText('62,', { allowsNegative: false, allowsFraction: true }); // true
10717
+ * isPartialNumberText('6.2', { allowsNegative: false, allowsFraction: false }); // false — whole numbers only
10718
+ * isPartialNumberText('1.2.3', { allowsNegative: true, allowsFraction: true }); // false — two separators
10719
+ */
10720
+ const isPartialNumberText = (text, rules) => {
10721
+ const sign = rules.allowsNegative ? '-?' : '';
10722
+ const fraction = rules.allowsFraction ? '(?:[.,]\\d*)?' : '';
10723
+ return new RegExp(`^${sign}\\d*${fraction}$`).test(text);
10724
+ };
10725
+ /**
10726
+ * The number partial text stands for, or null while it holds no digit yet.
10727
+ *
10728
+ * @example
10729
+ * parseNumberText('62,5'); // 62.5
10730
+ * parseNumberText('-'); // null
10731
+ * parseNumberText('3.'); // 3
10732
+ */
10733
+ const parseNumberText = (text) => {
10734
+ if (!/\d/.test(text))
10735
+ return null;
10736
+ const parsed = Number(text.replace(',', '.'));
10737
+ return Number.isFinite(parsed) ? parsed : null;
10738
+ };
10739
+
10740
+ /**
10741
+ * A field for a number, typed as text the field reads itself — the model React
10742
+ * Aria's and Base UI's number fields follow — rather than a native
10743
+ * `type="number"`, which reads the decimal separator by its own rules: WebKit
10744
+ * drops a typed comma, turning `62,5` into `625`, and Chromium rejects it,
10745
+ * while the decimal keypad of a device set to a comma region offers nothing
10746
+ * else. Here either separator reads as the decimal point, the value is shown
10747
+ * in the page's locale, and the virtual keyboard is the one the number needs.
10748
+ *
10749
+ * The step sets the precision: a whole step takes whole numbers, a fractional
10750
+ * one decimals. A minimum below zero, or none, admits a sign. ArrowUp and
10751
+ * ArrowDown move the value by a step, as a native number field's do; a typed
10752
+ * value is clamped into `[min, max]` once committed.
10753
+ */
10338
10754
  class InputNumber extends ValueFormControl {
10339
10755
  // Injections
10340
10756
  _config = inject(INPUT_NUMBER_CONFIG);
10757
+ _localeId = inject(LOCALE_ID);
10341
10758
  supportsLabelFor = true;
10342
10759
  // Inputs
10343
10760
  value = model(null, /* @ts-ignore */
@@ -10354,7 +10771,28 @@ class InputNumber extends ValueFormControl {
10354
10771
  max = input(undefined, /* @ts-ignore */
10355
10772
  ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
10356
10773
  step = input(this._config.step, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
10357
- hideArrows = input(this._config.hideArrows, { ...(ngDevMode ? { debugName: "hideArrows" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
10774
+ /**
10775
+ * The virtual keyboard to ask for. Left unset, it follows what the field
10776
+ * accepts: `decimal` for a fractional step, `numeric` for a whole one, and
10777
+ * `text` for a minimum below zero, since iOS's number keypads have no minus
10778
+ * key. A field with no minimum gets a number keypad all the same: most never
10779
+ * take a negative, and a form library that owns the bounds may not hand them
10780
+ * to the control — a field that does take negatives says so with its minimum.
10781
+ */
10782
+ inputMode = input(undefined, /* @ts-ignore */
10783
+ ...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
10784
+ // State
10785
+ /**
10786
+ * The field's text. Follows the value whenever the value changes to one the
10787
+ * text does not already say, so a number still being typed — `62,` on its
10788
+ * way to `62,5` — is kept as typed instead of being rewritten as `62`.
10789
+ */
10790
+ text = linkedSignal({ ...(ngDevMode ? { debugName: "text" } : /* istanbul ignore next */ {}), source: this.value,
10791
+ computation: (value, previous) => {
10792
+ if (previous && parseNumberText(previous.value) === value)
10793
+ return previous.value;
10794
+ return this._format(value);
10795
+ } });
10358
10796
  // Computed
10359
10797
  classes = computed(() => {
10360
10798
  const array = [this.CLASS_NAME, 'tls-input-number'];
@@ -10362,45 +10800,139 @@ class InputNumber extends ValueFormControl {
10362
10800
  array.push(`${this.CLASS_NAME}--${this.variant()}`);
10363
10801
  if (this.fluid())
10364
10802
  array.push(`${this.CLASS_NAME}--fluid`);
10365
- if (this.hideArrows())
10366
- array.push('tls-input-number--no-arrows');
10367
10803
  return array.concat(this.controlClasses());
10368
10804
  }, /* @ts-ignore */
10369
10805
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
10806
+ effectiveInputMode = computed(() => {
10807
+ const inputMode = this.inputMode();
10808
+ if (inputMode)
10809
+ return inputMode;
10810
+ const min = this.min();
10811
+ if (min !== undefined && min < 0)
10812
+ return 'text';
10813
+ return this._rules().allowsFraction ? 'decimal' : 'numeric';
10814
+ }, /* @ts-ignore */
10815
+ ...(ngDevMode ? [{ debugName: "effectiveInputMode" }] : /* istanbul ignore next */ []));
10816
+ /** What may be typed, from the bounds and the step. */
10817
+ _rules = computed(() => {
10818
+ const min = this.min();
10819
+ return {
10820
+ allowsNegative: min === undefined || min < 0,
10821
+ allowsFraction: !Number.isInteger(this.step()),
10822
+ };
10823
+ }, /* @ts-ignore */
10824
+ ...(ngDevMode ? [{ debugName: "_rules" }] : /* istanbul ignore next */ []));
10825
+ /**
10826
+ * Writes a value in the page's locale, in the form the field reads back:
10827
+ * ungrouped, so a comma can only be the decimal point, and in Latin digits,
10828
+ * which are the only ones typing accepts — a locale that writes its own
10829
+ * (`ar-EG`, `fa`, `bn`) would otherwise show a figure no edit could follow.
10830
+ */
10831
+ _formatter = computed(() => new Intl.NumberFormat(this._localeId, {
10832
+ useGrouping: false,
10833
+ maximumFractionDigits: 20,
10834
+ numberingSystem: 'latn',
10835
+ }), /* @ts-ignore */
10836
+ ...(ngDevMode ? [{ debugName: "_formatter" }] : /* istanbul ignore next */ []));
10370
10837
  // Protected methods
10838
+ /**
10839
+ * Refuses an insertion that would leave the text no number could become, so
10840
+ * a stray letter or a second separator never appears at all. A deletion
10841
+ * always leaves a part of a valid number, which is still valid.
10842
+ */
10843
+ onBeforeInput(event) {
10844
+ if (!event.inputType.startsWith('insert'))
10845
+ return;
10846
+ const target = event.target;
10847
+ const pasted = event.dataTransfer ? event.dataTransfer.getData('text/plain') : '';
10848
+ const inserted = event.data ?? pasted;
10849
+ const start = target.selectionStart ?? target.value.length;
10850
+ const end = target.selectionEnd ?? start;
10851
+ const next = target.value.slice(0, start) + inserted + target.value.slice(end);
10852
+ if (!isPartialNumberText(next, this._rules()))
10853
+ event.preventDefault();
10854
+ }
10855
+ /**
10856
+ * Takes the text as the new value. Text that reached the field past
10857
+ * `beforeinput` — an IME composition, which cannot be refused before it
10858
+ * lands — and is no number is put back to what the field held.
10859
+ */
10371
10860
  onInput(event) {
10372
10861
  const target = event.target;
10373
- const parsed = target.valueAsNumber;
10374
- this.value.set(isNaN(parsed) ? null : parsed);
10862
+ if (!isPartialNumberText(target.value, this._rules())) {
10863
+ target.value = this.text();
10864
+ return;
10865
+ }
10866
+ this.text.set(target.value);
10867
+ this.value.set(parseNumberText(target.value));
10375
10868
  }
10376
10869
  /**
10377
10870
  * Clamps a typed value into `[min, max]` once editing is committed (`change`
10378
- * fires on blur/Enter). The spinner arrows already honor the bounds natively;
10379
- * clamping only here keeps mid-typing values ("1" on the way to "10") intact.
10871
+ * fires on blur/Enter) and rewrites the text in the field's own form, so
10872
+ * `62,` reads `62`. Clamping only here keeps mid-typing values ("1" on the
10873
+ * way to "10") intact.
10380
10874
  */
10381
- onChange(event) {
10382
- const current = this.value();
10383
- if (current === null)
10875
+ onChange() {
10876
+ const value = this.value();
10877
+ if (value === null) {
10878
+ this.text.set('');
10879
+ return;
10880
+ }
10881
+ this._commit(this._clamp(value));
10882
+ }
10883
+ /** ArrowUp and ArrowDown step the value, as they do in a native number field. */
10884
+ onKeydown(event) {
10885
+ if (event.key !== 'ArrowUp' && event.key !== 'ArrowDown')
10886
+ return;
10887
+ event.preventDefault();
10888
+ if (this.readonly())
10384
10889
  return;
10890
+ this._stepBy(event.key === 'ArrowUp' ? 1 : -1);
10891
+ }
10892
+ // Private methods
10893
+ /**
10894
+ * Moves the value by one step in `direction`, rounded to the precision of the
10895
+ * step and the value so repeated steps never collect float error
10896
+ * (`0.1 + 0.2`). An empty field starts from the minimum, or zero.
10897
+ */
10898
+ _stepBy(direction) {
10899
+ const value = this.value();
10900
+ if (value === null) {
10901
+ this._commit(this._clamp(this.min() ?? 0));
10902
+ return;
10903
+ }
10904
+ const step = this.step();
10905
+ const precision = Math.max(decimalPlaces(step), decimalPlaces(value));
10906
+ this._commit(this._clamp(Number((value + direction * step).toFixed(precision))));
10907
+ }
10908
+ /** Sets a value the field produced itself, and shows it in the field's own form. */
10909
+ _commit(value) {
10910
+ this.value.set(value);
10911
+ this.text.set(this._format(value));
10912
+ }
10913
+ /** Keeps `value` within `[min, max]`, where either is set. */
10914
+ _clamp(value) {
10385
10915
  const min = this.min();
10386
10916
  const max = this.max();
10387
- let clamped = current;
10388
- if (min !== undefined && clamped < min)
10389
- clamped = min;
10390
- if (max !== undefined && clamped > max)
10391
- clamped = max;
10392
- if (clamped === current)
10393
- return;
10394
- this.value.set(clamped);
10395
- event.target.value = String(clamped);
10917
+ if (min !== undefined && value < min)
10918
+ return min;
10919
+ if (max !== undefined && value > max)
10920
+ return max;
10921
+ return value;
10922
+ }
10923
+ /** The text the field shows for `value`: empty for none. */
10924
+ _format(value) {
10925
+ if (value === null)
10926
+ return '';
10927
+ return this._formatter().format(value);
10396
10928
  }
10397
10929
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
10398
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputNumber, isStandalone: true, selector: "tls-input-number", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, hideArrows: { classPropertyName: "hideArrows", publicName: "hideArrows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], usesInheritance: true, ngImport: i0, template: "<input\n type=\"number\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value() ?? ''\"\n [attr.min]=\"min() ?? null\"\n [attr.max]=\"max() ?? null\"\n [step]=\"step()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"], dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
10930
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputNumber, isStandalone: true, selector: "tls-input-number", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, inputMode: { classPropertyName: "inputMode", publicName: "inputMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], usesInheritance: true, ngImport: i0, template: "<!-- Text rather than `type=\"number\"`: the field reads the number itself (see\n the component's documentation). `autocorrect` and `spellcheck` are off so\n the keyboard never rewrites a figure as a word. -->\n<input\n type=\"text\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.inputmode]=\"effectiveInputMode()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"text()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"], dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
10399
10931
  }
10400
10932
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputNumber, decorators: [{
10401
10933
  type: Component,
10402
- args: [{ selector: 'tls-input-number', imports: [Loader], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], template: "<input\n type=\"number\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value() ?? ''\"\n [attr.min]=\"min() ?? null\"\n [attr.max]=\"max() ?? null\"\n [step]=\"step()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"] }]
10403
- }], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", 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 }] }], hideArrows: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideArrows", required: false }] }] } });
10934
+ args: [{ selector: 'tls-input-number', imports: [Loader], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], template: "<!-- Text rather than `type=\"number\"`: the field reads the number itself (see\n the component's documentation). `autocorrect` and `spellcheck` are off so\n the keyboard never rewrites a figure as a word. -->\n<input\n type=\"text\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.inputmode]=\"effectiveInputMode()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"text()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"] }]
10935
+ }], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", 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 }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }] } });
10404
10936
 
10405
10937
  /**
10406
10938
  * Token characters recognised inside a mask pattern; every other character is a
@@ -10637,18 +11169,16 @@ class Password extends ValueFormControl {
10637
11169
  this.value.set(target.value);
10638
11170
  }
10639
11171
  toggle() {
10640
- if (this.notInteractive())
10641
- return;
10642
11172
  this.visible.update(prev => !prev);
10643
11173
  }
10644
11174
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Password, deps: null, target: i0.ɵɵFactoryTarget.Component });
10645
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Password, isStandalone: true, selector: "tls-password", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", visible: "visibleChange" }, host: { classAttribute: "tls-password" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], queries: [{ propertyName: "startIconTemplate", first: true, predicate: ["startIcon"], descendants: true, isSignal: true }, { propertyName: "showIconTemplate", first: true, predicate: ["showIcon"], descendants: true, isSignal: true }, { propertyName: "hideIconTemplate", first: true, predicate: ["hideIcon"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ showLabel }}\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ hideLabel }}\n }\n </span>\n </button>\n</tls-form-control-group>\n", dependencies: [{ kind: "component", type: FormControlGroup, selector: "tls-form-control-group", inputs: ["size", "fluid"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
11175
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Password, isStandalone: true, selector: "tls-password", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", visible: "visibleChange" }, host: { classAttribute: "tls-password" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], queries: [{ propertyName: "startIconTemplate", first: true, predicate: ["startIcon"], descendants: true, isSignal: true }, { propertyName: "showIconTemplate", first: true, predicate: ["showIcon"], descendants: true, isSignal: true }, { propertyName: "hideIconTemplate", first: true, predicate: ["hideIcon"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n [disabled]=\"notInteractive()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ showLabel }}\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ hideLabel }}\n }\n </span>\n </button>\n</tls-form-control-group>\n", dependencies: [{ kind: "component", type: FormControlGroup, selector: "tls-form-control-group", inputs: ["size", "fluid"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
10646
11176
  }
10647
11177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Password, decorators: [{
10648
11178
  type: Component,
10649
11179
  args: [{ selector: 'tls-password', imports: [FormControlGroup, NgTemplateOutlet, Loader], host: {
10650
11180
  class: 'tls-password',
10651
- }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ showLabel }}\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ hideLabel }}\n }\n </span>\n </button>\n</tls-form-control-group>\n" }]
11181
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.autocomplete]=\"autocomplete() ?? null\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n [attr.aria-pressed]=\"visible()\"\n [disabled]=\"notInteractive()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ showLabel }}\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n {{ hideLabel }}\n }\n </span>\n </button>\n</tls-form-control-group>\n" }]
10652
11182
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], startIconTemplate: [{ type: i0.ContentChild, args: ['startIcon', { isSignal: true }] }], showIconTemplate: [{ type: i0.ContentChild, args: ['showIcon', { isSignal: true }] }], hideIconTemplate: [{ type: i0.ContentChild, args: ['hideIcon', { isSignal: true }] }] } });
10653
11183
 
10654
11184
  /**
@@ -11207,13 +11737,13 @@ class MultiSelect extends AbstractSelect {
11207
11737
  this.toggleOption(option);
11208
11738
  }
11209
11739
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MultiSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
11210
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: MultiSelect, isStandalone: true, selector: "tls-multi-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, maxLabels: { classPropertyName: "maxLabels", publicName: "maxLabels", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => MultiSelect) }], usesInheritance: true, ngImport: i0, template: "<button\n #trigger\n type=\"button\"\n class=\"tls-multi-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-multi-select__value\" [class.tls-form-control__placeholder]=\"!triggerLabel()\">\n {{ triggerLabel() || placeholder() }}\n </span>\n <div class=\"tls-multi-select__icon\" aria-hidden=\"true\" [class.tls-multi-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-multi-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-multi-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-multi-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-multi-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-multi-select__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"toggleOption(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n <span class=\"tls-multi-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </span>\n @if (isSelected(option)) {\n <tls-icon class=\"tls-multi-select__option-check\" name=\"check\" aria-hidden=\"true\" />\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(entry.option)\"\n [class.tls-multi-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-multi-select__panel tls-multi-select__panel--virtual\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [ariaMultiselectable]=\"true\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(option)\"\n [class.tls-multi-select__option--active]=\"index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-multi-select__panel\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-multi-select__group\" role=\"presentation\">\n <ul class=\"tls-multi-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-multi-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }] });
11740
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: MultiSelect, isStandalone: true, selector: "tls-multi-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, maxLabels: { classPropertyName: "maxLabels", publicName: "maxLabels", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => MultiSelect) }], usesInheritance: true, ngImport: i0, template: "<button\n #trigger\n type=\"button\"\n class=\"tls-multi-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-multi-select__value\" [class.tls-form-control__placeholder]=\"!triggerLabel()\">\n {{ triggerLabel() || placeholder() }}\n </span>\n <div class=\"tls-multi-select__icon\" aria-hidden=\"true\" [class.tls-multi-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-multi-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-multi-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-multi-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-multi-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-multi-select__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"toggleOption(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n <span class=\"tls-multi-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </span>\n @if (isSelected(option)) {\n <tls-icon class=\"tls-multi-select__option-check\" name=\"check\" aria-hidden=\"true\" />\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(entry.option)\"\n [class.tls-multi-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-multi-select__panel tls-multi-select__panel--virtual\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [ariaMultiselectable]=\"true\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(option)\"\n [class.tls-multi-select__option--active]=\"index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-multi-select__panel\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-multi-select__group\" role=\"presentation\">\n <ul class=\"tls-multi-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-multi-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
11211
11741
  }
11212
11742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MultiSelect, decorators: [{
11213
11743
  type: Component,
11214
- args: [{ selector: 'tls-multi-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
11744
+ args: [{ selector: 'tls-multi-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
11215
11745
  '[class]': 'hostClasses()',
11216
- }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => MultiSelect) }], template: "<button\n #trigger\n type=\"button\"\n class=\"tls-multi-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-multi-select__value\" [class.tls-form-control__placeholder]=\"!triggerLabel()\">\n {{ triggerLabel() || placeholder() }}\n </span>\n <div class=\"tls-multi-select__icon\" aria-hidden=\"true\" [class.tls-multi-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-multi-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-multi-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-multi-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-multi-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-multi-select__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"toggleOption(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n <span class=\"tls-multi-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </span>\n @if (isSelected(option)) {\n <tls-icon class=\"tls-multi-select__option-check\" name=\"check\" aria-hidden=\"true\" />\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(entry.option)\"\n [class.tls-multi-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-multi-select__panel tls-multi-select__panel--virtual\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [ariaMultiselectable]=\"true\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(option)\"\n [class.tls-multi-select__option--active]=\"index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-multi-select__panel\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-multi-select__group\" role=\"presentation\">\n <ul class=\"tls-multi-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-multi-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
11746
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => MultiSelect) }], template: "<button\n #trigger\n type=\"button\"\n class=\"tls-multi-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-multi-select__value\" [class.tls-form-control__placeholder]=\"!triggerLabel()\">\n {{ triggerLabel() || placeholder() }}\n </span>\n <div class=\"tls-multi-select__icon\" aria-hidden=\"true\" [class.tls-multi-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-multi-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-multi-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-multi-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-multi-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-multi-select__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"toggleOption(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n <span class=\"tls-multi-select__option-label\">\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </span>\n @if (isSelected(option)) {\n <tls-icon class=\"tls-multi-select__option-check\" name=\"check\" aria-hidden=\"true\" />\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(entry.option)\"\n [class.tls-multi-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-multi-select__panel tls-multi-select__panel--virtual\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [ariaMultiselectable]=\"true\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-multi-select__option\"\n role=\"presentation\"\n [class.tls-multi-select__option--selected]=\"isSelected(option)\"\n [class.tls-multi-select__option--active]=\"index === activeIndex()\"\n [class.tls-multi-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-multi-select__panel\"\n animate.enter=\"tls-multi-select__panel--enter\"\n animate.leave=\"tls-multi-select__panel--leave\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-multi-select__group\" role=\"presentation\">\n <ul class=\"tls-multi-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-multi-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
11217
11747
  }], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], maxLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLabels", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }] } });
11218
11748
 
11219
11749
  const DEFAULT_SELECT_CONFIG = {
@@ -11292,13 +11822,13 @@ class Select extends AbstractSelect {
11292
11822
  this.select(option);
11293
11823
  }
11294
11824
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Select, deps: null, target: i0.ɵɵFactoryTarget.Component });
11295
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Select, isStandalone: true, selector: "tls-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], usesInheritance: true, ngImport: i0, template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\" [class.tls-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-select__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"entry.option.value === value()\"\n [class.tls-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-select__panel tls-select__panel--virtual\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"index === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-select__panel\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-select__group\" role=\"presentation\">\n <ul class=\"tls-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }] });
11825
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Select, isStandalone: true, selector: "tls-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], usesInheritance: true, ngImport: i0, template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\" [class.tls-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-select__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"entry.option.value === value()\"\n [class.tls-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-select__panel tls-select__panel--virtual\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"index === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-select__panel\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-select__group\" role=\"presentation\">\n <ul class=\"tls-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualScroll, selector: "tls-virtual-scroll", inputs: ["items", "itemSize", "minBufferPx", "maxBufferPx", "orientation", "appendOnly", "templateCacheSize", "trackBy", "viewportRole", "viewportId", "ariaMultiselectable", "focusable", "ariaLabel", "ariaLabelledby", "ariaDescribedby"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
11296
11826
  }
11297
11827
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Select, decorators: [{
11298
11828
  type: Component,
11299
- args: [{ selector: 'tls-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
11829
+ args: [{ selector: 'tls-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
11300
11830
  '[class]': 'hostClasses()',
11301
- }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\" [class.tls-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-select__option-button\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"entry.option.value === value()\"\n [class.tls-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-select__panel tls-select__panel--virtual\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"index === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-select__panel\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-select__group\" role=\"presentation\">\n <ul class=\"tls-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
11831
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"effectiveInputId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n aria-haspopup=\"listbox\"\n [attr.aria-controls]=\"isOpen() ? listboxId : null\"\n [attr.aria-activedescendant]=\"activeDescendantId()\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\" [class.tls-select__icon--hidden]=\"pending()\">\n <tls-icon class=\"tls-select__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </div>\n</button>\n@if (clearable() && hasValue() && !notInteractive()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clear()\"\n >\n <tls-icon class=\"tls-select__clear-icon\" name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n@if (pending()) {\n <tls-loader class=\"tls-select__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n\n<ng-template #panel>\n <ng-template #optionButton let-option let-index=\"index\" let-setsize=\"setsize\">\n <button\n class=\"tls-select__option-button\"\n tlsRipple\n role=\"option\"\n [id]=\"optionId(index)\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n [attr.aria-posinset]=\"setsize !== null ? index + 1 : null\"\n [attr.aria-setsize]=\"setsize\"\n (click)=\"select(option)\"\n (pointerenter)=\"onOptionHover($event, index, option.disabled)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n </ng-template>\n\n <ng-template #optionItem let-entry>\n <li\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"entry.option.value === value()\"\n [class.tls-select__option--active]=\"entry.index === activeIndex()\"\n [class.tls-select__option--disabled]=\"entry.option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.option, index: entry.index, setsize: null }\"\n />\n </li>\n </ng-template>\n\n @if (virtualScroll()) {\n <div\n class=\"tls-select__panel tls-select__panel--virtual\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n >\n <tls-virtual-scroll\n [items]=\"visibleOptions()\"\n [itemSize]=\"virtualScrollItemSize()\"\n trackBy=\"value\"\n viewportRole=\"listbox\"\n [viewportId]=\"listboxId\"\n [focusable]=\"false\"\n [style.--tls-virtual-scroll-height]=\"virtualPanelHeight()\"\n >\n <ng-template #item let-option let-index=\"index\" let-count=\"count\">\n <div\n class=\"tls-select__option\"\n role=\"presentation\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"index === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionButton\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: index, setsize: count }\"\n />\n </div>\n </ng-template>\n </tls-virtual-scroll>\n </div>\n } @else {\n <ul\n class=\"tls-select__panel\"\n animate.enter=\"tls-select__panel--enter\"\n animate.leave=\"tls-select__panel--leave\"\n role=\"listbox\"\n [id]=\"listboxId\"\n >\n @for (group of optionGroups(); track group.label; let groupIndex = $index) {\n @if (group.label === null) {\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n } @else {\n <li class=\"tls-select__group\" role=\"presentation\">\n <ul class=\"tls-select__group-options\" role=\"group\" [attr.aria-labelledby]=\"groupLabelId(groupIndex)\">\n <li class=\"tls-select__group-label\" role=\"presentation\" [id]=\"groupLabelId(groupIndex)\">\n {{ group.label }}\n </li>\n @for (entry of group.options; track entry.option.value) {\n <ng-container [ngTemplateOutlet]=\"optionItem\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </ul>\n </li>\n }\n }\n </ul>\n }\n</ng-template>\n" }]
11302
11832
  }], propDecorators: { 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 }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }] } });
11303
11833
 
11304
11834
  const DEFAULT_SLIDER_CONFIG = {
@@ -12818,6 +13348,8 @@ const DEFAULT_INFINITE_SCROLL_CONFIG = {
12818
13348
  loading: 'Loading more items',
12819
13349
  complete: 'No more items',
12820
13350
  loadMore: 'Load more',
13351
+ failed: "Couldn't load more items",
13352
+ retry: 'Try again',
12821
13353
  },
12822
13354
  };
12823
13355
 
@@ -12851,10 +13383,12 @@ const INFINITE_SCROLL_CONFIG = new InjectionToken('INFINITE_SCROLL_CONFIG', { fa
12851
13383
  *
12852
13384
  * Content that grows without end leaves anything below it unreachable, so the automatic
12853
13385
  * loads are rationed: after `autoLoadLimit` of them in a row the component stops watching
12854
- * and renders a button, and the allowance is renewed each time that button is used. The
12855
- * three states each accept replacement content —
12856
- * `[tlsInfiniteScrollLoading]`, `[tlsInfiniteScrollComplete]`, `[tlsInfiniteScrollTrigger]`
12857
- * — projected in place of the loader, the end notice and the button:
13386
+ * and renders a button, and the allowance is renewed each time that button is used. A page
13387
+ * that fails to arrive is reported through `failed`, which renders a notice and a button to
13388
+ * try again in place of loading on approach. The four states each accept replacement
13389
+ * content — `[tlsInfiniteScrollLoading]`, `[tlsInfiniteScrollComplete]`,
13390
+ * `[tlsInfiniteScrollTrigger]`, `[tlsInfiniteScrollFailed]` — projected in place of the
13391
+ * loader, the end notice, the button and the failure notice with its button:
12858
13392
  *
12859
13393
  * ```html
12860
13394
  * <tls-infinite-scroll [loading]="loading()" (loadMore)="loadNextPage()">
@@ -12868,8 +13402,9 @@ const INFINITE_SCROLL_CONFIG = new InjectionToken('INFINITE_SCROLL_CONFIG', { fa
12868
13402
  * Left unset inside a panel, the next page is therefore requested only as the sentinel
12869
13403
  * reaches the panel's edge; pass that panel as `root` to get the margin back.
12870
13404
  *
12871
- * The end notice is announced from `labels.complete`, whatever stands in the slot, so
12872
- * replacement content belongs with a label that says the same thing.
13405
+ * The end and failure notices are announced from `labels.complete` and `labels.failed`,
13406
+ * whatever stands in their slots, so replacement content belongs with a label that says the
13407
+ * same thing.
12873
13408
  */
12874
13409
  class InfiniteScroll {
12875
13410
  // Injections
@@ -12891,6 +13426,13 @@ class InfiniteScroll {
12891
13426
  * everything ends silently.
12892
13427
  */
12893
13428
  complete = input(false, { ...(ngDevMode ? { debugName: "complete" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13429
+ /**
13430
+ * Whether the last page asked for failed to arrive. Stops loading on approach — retrying a
13431
+ * failure every time the sentinel comes into view would hammer whatever is failing — and
13432
+ * renders the failure notice with a button that asks for the page again. Lowering it, as
13433
+ * the next attempt starts, resumes the cycle.
13434
+ */
13435
+ failed = input(false, { ...(ngDevMode ? { debugName: "failed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
12894
13436
  /**
12895
13437
  * Suspends the whole trigger without ending it: nothing is watched, nothing is rendered,
12896
13438
  * and the automatic allowance is kept for when it is lifted.
@@ -12953,6 +13495,8 @@ class InfiniteScroll {
12953
13495
  return this._hasRequested() ? 'complete' : 'settled';
12954
13496
  if (this.loading())
12955
13497
  return 'loading';
13498
+ if (this.failed())
13499
+ return 'failed';
12956
13500
  const limit = this.autoLoadLimit();
12957
13501
  if (this.manual() || (limit > 0 && this._automaticLoads() >= limit))
12958
13502
  return 'manual';
@@ -12966,6 +13510,8 @@ class InfiniteScroll {
12966
13510
  return this.labels.loading;
12967
13511
  if (state === 'complete')
12968
13512
  return this.labels.complete;
13513
+ if (state === 'failed')
13514
+ return this.labels.failed;
12969
13515
  return '';
12970
13516
  }, /* @ts-ignore */
12971
13517
  ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
@@ -13018,12 +13564,13 @@ class InfiniteScroll {
13018
13564
  }
13019
13565
  // Public methods
13020
13566
  /**
13021
- * Requests the next page as the button does, renewing the automatic allowance. Ignored
13022
- * while a page is in flight, once the collection is exhausted and while suspended.
13567
+ * Requests the next page as the button does, renewing the automatic allowance — after a
13568
+ * failure, the page that failed. Ignored while a page is in flight, once the collection is
13569
+ * exhausted and while suspended.
13023
13570
  */
13024
13571
  load() {
13025
13572
  const state = this.state();
13026
- if (state !== 'idle' && state !== 'manual')
13573
+ if (state !== 'idle' && state !== 'manual' && state !== 'failed')
13027
13574
  return;
13028
13575
  this._automaticLoads.set(0);
13029
13576
  this._emit();
@@ -13053,14 +13600,14 @@ class InfiniteScroll {
13053
13600
  this.loadMore.emit();
13054
13601
  }
13055
13602
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, deps: [], target: i0.ɵɵFactoryTarget.Component });
13056
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InfiniteScroll, isStandalone: true, selector: "tls-infinite-scroll", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, rootMargin: { classPropertyName: "rootMargin", publicName: "rootMargin", isSignal: true, isRequired: false, transformFunction: null }, autoLoadLimit: { classPropertyName: "autoLoadLimit", publicName: "autoLoadLimit", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadMore: "loadMore" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"], dependencies: [{ kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
13603
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InfiniteScroll, isStandalone: true, selector: "tls-infinite-scroll", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null }, failed: { classPropertyName: "failed", publicName: "failed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, rootMargin: { classPropertyName: "rootMargin", publicName: "rootMargin", isSignal: true, isRequired: false, transformFunction: null }, autoLoadLimit: { classPropertyName: "autoLoadLimit", publicName: "autoLoadLimit", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadMore: "loadMore" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('failed') {\n <!-- Hidden from assistive technology like the end notice: the live region above\n announces the failure, and the button stays reachable on its own. -->\n <div class=\"state state--failed\">\n <ng-content select=\"[tlsInfiniteScrollFailed]\">\n <span class=\"notice\" aria-hidden=\"true\">{{ labels.failed }}</span>\n <tls-button variant=\"tonal\" [label]=\"labels.retry\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .state--failed{flex-direction:column;gap:var(--spacing-2)}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"], dependencies: [{ kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
13057
13604
  }
13058
13605
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, decorators: [{
13059
13606
  type: Component,
13060
13607
  args: [{ selector: 'tls-infinite-scroll', imports: [Button, Loader], host: {
13061
13608
  '[class]': 'hostClasses()',
13062
- }, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"] }]
13063
- }], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], complete: [{ type: i0.Input, args: [{ isSignal: true, alias: "complete", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], manual: [{ type: i0.Input, args: [{ isSignal: true, alias: "manual", required: false }] }], rootMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootMargin", required: false }] }], autoLoadLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoLoadLimit", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }] } });
13609
+ }, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('failed') {\n <!-- Hidden from assistive technology like the end notice: the live region above\n announces the failure, and the button stays reachable on its own. -->\n <div class=\"state state--failed\">\n <ng-content select=\"[tlsInfiniteScrollFailed]\">\n <span class=\"notice\" aria-hidden=\"true\">{{ labels.failed }}</span>\n <tls-button variant=\"tonal\" [label]=\"labels.retry\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .state--failed{flex-direction:column;gap:var(--spacing-2)}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"] }]
13610
+ }], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], complete: [{ type: i0.Input, args: [{ isSignal: true, alias: "complete", required: false }] }], failed: [{ type: i0.Input, args: [{ isSignal: true, alias: "failed", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], manual: [{ type: i0.Input, args: [{ isSignal: true, alias: "manual", required: false }] }], rootMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootMargin", required: false }] }], autoLoadLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoLoadLimit", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }] } });
13064
13611
 
13065
13612
  const DEFAULT_KBD_CONFIG = {
13066
13613
  size: 'md',
@@ -13400,11 +13947,11 @@ class Menu {
13400
13947
  pointerTypes: DRAG_DISMISS_POINTER_TYPES,
13401
13948
  },
13402
13949
  },
13403
- ], queries: [{ propertyName: "_customItems", predicate: MenuItemComponent, isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, isSignal: true }, { propertyName: "labelTemplate", first: true, predicate: ["labelTemplate"], descendants: true, isSignal: true }, { propertyName: "dividerTemplate", first: true, predicate: ["dividerTemplate"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["iconTemplate"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #panel>\n <div\n #sheetPane\n class=\"tls-menu\"\n [class.tls-menu--sheet]=\"sheet()\"\n [class.tls-menu--dragging]=\"sheetMotion.state() === 'dragging'\"\n [class.tls-menu--settling]=\"sheetMotion.state() === 'settling'\"\n animate.enter=\"tls-menu--enter\"\n animate.leave=\"tls-menu--leave\"\n [id]=\"id\"\n ngMenu\n tabindex=\"-1\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemClick($event)\"\n (keydown.escape)=\"close()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [tlsPan]=\"sheet()\"\n (panStart)=\"onSheetPanStart(sheetPane)\"\n (panMove)=\"onSheetPanMove($event)\"\n (panEnd)=\"onSheetPanEnd($event)\"\n (panCancel)=\"onSheetPanCancel()\"\n >\n @if (sheet()) {\n <div class=\"tls-menu__grabber\" aria-hidden=\"true\"></div>\n }\n @for (block of blocks(); track $index) {\n @if (block.kind === 'group') {\n <div class=\"tls-menu__group\" role=\"group\" [attr.aria-label]=\"block.label.label\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: block.label }\" />\n } @else {\n <!-- The group carries the section name via aria-label; the visible header stays hidden to avoid double announcement. -->\n <span class=\"tls-menu__label\" aria-hidden=\"true\">{{ block.label.label }}</span>\n }\n @for (entry of block.entries; track entry.index) {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: block.entry }\" />\n }\n }\n\n <ng-template #entryTemplate let-entry>\n @switch (entry.item.type) {\n @case ('item') {\n @let actionItem = entry.item;\n @let itemIndex = entry.index;\n @if (actionItem.link) {\n <a\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n [routerLink]=\"actionItem.link\"\n [class.tls-menu__item--disabled]=\"actionItem.disabled ?? false\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </a>\n } @else {\n <button\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n [attr.disabled]=\"actionItem.disabled ? '' : null\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </button>\n }\n\n <ng-template #actionItemContent let-actionItem let-index=\"index\">\n @if (itemContentTemplate(actionItem); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem }\" />\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"defaultItemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: index }\"\n />\n }\n </ng-template>\n\n <ng-template #defaultItemContent let-actionItem let-index=\"index\">\n @if (isCheckable(actionItem)) {\n <span class=\"tls-menu__item-check\" aria-hidden=\"true\">\n @if (actionItem.checked) {\n <tls-icon name=\"check\" />\n }\n </span>\n }\n @if (actionItem.icon) {\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem.icon, data: actionItem }\" />\n } @else {\n <tls-icon class=\"tls-menu__item-icon\" [iconSrc]=\"actionItem.icon\" />\n }\n }\n <span class=\"tls-menu__item-text\">\n <span class=\"tls-menu__item-label\" [id]=\"itemLabelId(index)\">{{ actionItem.label }}</span>\n @if (actionItem.description) {\n <span class=\"tls-menu__item-description\" [id]=\"itemDescriptionId(index)\">{{ actionItem.description }}</span>\n }\n </span>\n @if (actionItem.shortcut && actionItem.shortcut.length) {\n <kbd class=\"tls-menu__item-shortcut\">\n @for (key of actionItem.shortcut; track $index) {\n <kbd tlsKbd size=\"sm\">{{ key }}</kbd>\n }\n </kbd>\n }\n </ng-template>\n }\n @case ('divider') {\n @if (dividerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: entry.item }\" />\n } @else {\n <hr class=\"tls-menu__divider\" role=\"separator\" />\n }\n }\n @case ('custom') {\n @if (customTemplates().get(entry.item.key); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n }\n }\n </ng-template>\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"panel\" />\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: Kbd, selector: "kbd[tlsKbd]", inputs: ["size"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: Menu$1, selector: "[ngMenu]", inputs: ["id", "wrap", "typeaheadDelay", "disabled", "softDisabled", "expansionDelay"], outputs: ["itemSelected"], exportAs: ["ngMenu"] }, { kind: "directive", type: MenuItem, selector: "[ngMenuItem]", inputs: ["id", "value", "disabled", "searchTerm", "role", "submenu"], outputs: ["searchTermChange"], exportAs: ["ngMenuItem"] }, { kind: "directive", type: PanDirective, selector: "[tlsPan]", inputs: ["tlsPan", "axis", "manageTouchAction", "threshold", "lockRatio", "edge", "edgeSize", "pointerTypes"], outputs: ["panStart", "panMove", "panEnd", "panCancel"] }] });
13950
+ ], queries: [{ propertyName: "_customItems", predicate: MenuItemComponent, isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, isSignal: true }, { propertyName: "labelTemplate", first: true, predicate: ["labelTemplate"], descendants: true, isSignal: true }, { propertyName: "dividerTemplate", first: true, predicate: ["dividerTemplate"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["iconTemplate"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #panel>\n <div\n #sheetPane\n class=\"tls-menu\"\n [class.tls-menu--sheet]=\"sheet()\"\n [class.tls-menu--dragging]=\"sheetMotion.state() === 'dragging'\"\n [class.tls-menu--settling]=\"sheetMotion.state() === 'settling'\"\n animate.enter=\"tls-menu--enter\"\n animate.leave=\"tls-menu--leave\"\n [id]=\"id\"\n ngMenu\n tabindex=\"-1\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemClick($event)\"\n (keydown.escape)=\"close()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [tlsPan]=\"sheet()\"\n (panStart)=\"onSheetPanStart(sheetPane)\"\n (panMove)=\"onSheetPanMove($event)\"\n (panEnd)=\"onSheetPanEnd($event)\"\n (panCancel)=\"onSheetPanCancel()\"\n >\n @if (sheet()) {\n <div class=\"tls-menu__grabber\" aria-hidden=\"true\"></div>\n }\n @for (block of blocks(); track $index) {\n @if (block.kind === 'group') {\n <div class=\"tls-menu__group\" role=\"group\" [attr.aria-label]=\"block.label.label\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: block.label }\" />\n } @else {\n <!-- The group carries the section name via aria-label; the visible header stays hidden to avoid double announcement. -->\n <span class=\"tls-menu__label\" aria-hidden=\"true\">{{ block.label.label }}</span>\n }\n @for (entry of block.entries; track entry.index) {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: block.entry }\" />\n }\n }\n\n <ng-template #entryTemplate let-entry>\n @switch (entry.item.type) {\n @case ('item') {\n @let actionItem = entry.item;\n @let itemIndex = entry.index;\n @if (actionItem.link) {\n <a\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n tlsRipple\n [routerLink]=\"actionItem.link\"\n [class.tls-menu__item--disabled]=\"actionItem.disabled ?? false\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </a>\n } @else {\n <button\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n tlsRipple\n [attr.disabled]=\"actionItem.disabled ? '' : null\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </button>\n }\n\n <ng-template #actionItemContent let-actionItem let-index=\"index\">\n @if (itemContentTemplate(actionItem); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem }\" />\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"defaultItemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: index }\"\n />\n }\n </ng-template>\n\n <ng-template #defaultItemContent let-actionItem let-index=\"index\">\n @if (isCheckable(actionItem)) {\n <span class=\"tls-menu__item-check\" aria-hidden=\"true\">\n @if (actionItem.checked) {\n <tls-icon name=\"check\" />\n }\n </span>\n }\n @if (actionItem.icon) {\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem.icon, data: actionItem }\" />\n } @else {\n <tls-icon class=\"tls-menu__item-icon\" [iconSrc]=\"actionItem.icon\" />\n }\n }\n <span class=\"tls-menu__item-text\">\n <span class=\"tls-menu__item-label\" [id]=\"itemLabelId(index)\">{{ actionItem.label }}</span>\n @if (actionItem.description) {\n <span class=\"tls-menu__item-description\" [id]=\"itemDescriptionId(index)\">{{ actionItem.description }}</span>\n }\n </span>\n @if (actionItem.shortcut && actionItem.shortcut.length) {\n <kbd class=\"tls-menu__item-shortcut\">\n @for (key of actionItem.shortcut; track $index) {\n <kbd tlsKbd size=\"sm\">{{ key }}</kbd>\n }\n </kbd>\n }\n </ng-template>\n }\n @case ('divider') {\n @if (dividerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: entry.item }\" />\n } @else {\n <hr class=\"tls-menu__divider\" role=\"separator\" />\n }\n }\n @case ('custom') {\n @if (customTemplates().get(entry.item.key); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n }\n }\n </ng-template>\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"panel\" />\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: Kbd, selector: "kbd[tlsKbd]", inputs: ["size"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: Menu$1, selector: "[ngMenu]", inputs: ["id", "wrap", "typeaheadDelay", "disabled", "softDisabled", "expansionDelay"], outputs: ["itemSelected"], exportAs: ["ngMenu"] }, { kind: "directive", type: MenuItem, selector: "[ngMenuItem]", inputs: ["id", "value", "disabled", "searchTerm", "role", "submenu"], outputs: ["searchTermChange"], exportAs: ["ngMenuItem"] }, { kind: "directive", type: PanDirective, selector: "[tlsPan]", inputs: ["tlsPan", "axis", "manageTouchAction", "threshold", "lockRatio", "edge", "edgeSize", "pointerTypes"], outputs: ["panStart", "panMove", "panEnd", "panCancel"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
13404
13951
  }
13405
13952
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Menu, decorators: [{
13406
13953
  type: Component,
13407
- args: [{ selector: 'tls-menu', imports: [NgTemplateOutlet, Icon, Kbd, RouterLink, Menu$1, MenuItem, PanDirective], providers: [
13954
+ args: [{ selector: 'tls-menu', imports: [NgTemplateOutlet, Icon, Kbd, RouterLink, Menu$1, MenuItem, PanDirective, RippleDirective], providers: [
13408
13955
  // The sheet's dismissal drag runs down the vertical axis only, from the
13409
13956
  // pointers that drag panels shut anywhere else; whether the gesture is
13410
13957
  // live at all is driven per open through the pane's `tlsPan` binding, so
@@ -13423,7 +13970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
13423
13970
  // an overlay — so the host leaves the flow rather than claiming a slot (and
13424
13971
  // a flex/grid gap) as an invisible empty box.
13425
13972
  '[style.display]': "inline() ? null : 'none'",
13426
- }, template: "<ng-template #panel>\n <div\n #sheetPane\n class=\"tls-menu\"\n [class.tls-menu--sheet]=\"sheet()\"\n [class.tls-menu--dragging]=\"sheetMotion.state() === 'dragging'\"\n [class.tls-menu--settling]=\"sheetMotion.state() === 'settling'\"\n animate.enter=\"tls-menu--enter\"\n animate.leave=\"tls-menu--leave\"\n [id]=\"id\"\n ngMenu\n tabindex=\"-1\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemClick($event)\"\n (keydown.escape)=\"close()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [tlsPan]=\"sheet()\"\n (panStart)=\"onSheetPanStart(sheetPane)\"\n (panMove)=\"onSheetPanMove($event)\"\n (panEnd)=\"onSheetPanEnd($event)\"\n (panCancel)=\"onSheetPanCancel()\"\n >\n @if (sheet()) {\n <div class=\"tls-menu__grabber\" aria-hidden=\"true\"></div>\n }\n @for (block of blocks(); track $index) {\n @if (block.kind === 'group') {\n <div class=\"tls-menu__group\" role=\"group\" [attr.aria-label]=\"block.label.label\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: block.label }\" />\n } @else {\n <!-- The group carries the section name via aria-label; the visible header stays hidden to avoid double announcement. -->\n <span class=\"tls-menu__label\" aria-hidden=\"true\">{{ block.label.label }}</span>\n }\n @for (entry of block.entries; track entry.index) {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: block.entry }\" />\n }\n }\n\n <ng-template #entryTemplate let-entry>\n @switch (entry.item.type) {\n @case ('item') {\n @let actionItem = entry.item;\n @let itemIndex = entry.index;\n @if (actionItem.link) {\n <a\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n [routerLink]=\"actionItem.link\"\n [class.tls-menu__item--disabled]=\"actionItem.disabled ?? false\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </a>\n } @else {\n <button\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n [attr.disabled]=\"actionItem.disabled ? '' : null\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </button>\n }\n\n <ng-template #actionItemContent let-actionItem let-index=\"index\">\n @if (itemContentTemplate(actionItem); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem }\" />\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"defaultItemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: index }\"\n />\n }\n </ng-template>\n\n <ng-template #defaultItemContent let-actionItem let-index=\"index\">\n @if (isCheckable(actionItem)) {\n <span class=\"tls-menu__item-check\" aria-hidden=\"true\">\n @if (actionItem.checked) {\n <tls-icon name=\"check\" />\n }\n </span>\n }\n @if (actionItem.icon) {\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem.icon, data: actionItem }\" />\n } @else {\n <tls-icon class=\"tls-menu__item-icon\" [iconSrc]=\"actionItem.icon\" />\n }\n }\n <span class=\"tls-menu__item-text\">\n <span class=\"tls-menu__item-label\" [id]=\"itemLabelId(index)\">{{ actionItem.label }}</span>\n @if (actionItem.description) {\n <span class=\"tls-menu__item-description\" [id]=\"itemDescriptionId(index)\">{{ actionItem.description }}</span>\n }\n </span>\n @if (actionItem.shortcut && actionItem.shortcut.length) {\n <kbd class=\"tls-menu__item-shortcut\">\n @for (key of actionItem.shortcut; track $index) {\n <kbd tlsKbd size=\"sm\">{{ key }}</kbd>\n }\n </kbd>\n }\n </ng-template>\n }\n @case ('divider') {\n @if (dividerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: entry.item }\" />\n } @else {\n <hr class=\"tls-menu__divider\" role=\"separator\" />\n }\n }\n @case ('custom') {\n @if (customTemplates().get(entry.item.key); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n }\n }\n </ng-template>\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"panel\" />\n}\n" }]
13973
+ }, template: "<ng-template #panel>\n <div\n #sheetPane\n class=\"tls-menu\"\n [class.tls-menu--sheet]=\"sheet()\"\n [class.tls-menu--dragging]=\"sheetMotion.state() === 'dragging'\"\n [class.tls-menu--settling]=\"sheetMotion.state() === 'settling'\"\n animate.enter=\"tls-menu--enter\"\n animate.leave=\"tls-menu--leave\"\n [id]=\"id\"\n ngMenu\n tabindex=\"-1\"\n [softDisabled]=\"false\"\n (itemSelected)=\"onItemClick($event)\"\n (keydown.escape)=\"close()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [tlsPan]=\"sheet()\"\n (panStart)=\"onSheetPanStart(sheetPane)\"\n (panMove)=\"onSheetPanMove($event)\"\n (panEnd)=\"onSheetPanEnd($event)\"\n (panCancel)=\"onSheetPanCancel()\"\n >\n @if (sheet()) {\n <div class=\"tls-menu__grabber\" aria-hidden=\"true\"></div>\n }\n @for (block of blocks(); track $index) {\n @if (block.kind === 'group') {\n <div class=\"tls-menu__group\" role=\"group\" [attr.aria-label]=\"block.label.label\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: block.label }\" />\n } @else {\n <!-- The group carries the section name via aria-label; the visible header stays hidden to avoid double announcement. -->\n <span class=\"tls-menu__label\" aria-hidden=\"true\">{{ block.label.label }}</span>\n }\n @for (entry of block.entries; track entry.index) {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n }\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"entryTemplate\" [ngTemplateOutletContext]=\"{ $implicit: block.entry }\" />\n }\n }\n\n <ng-template #entryTemplate let-entry>\n @switch (entry.item.type) {\n @case ('item') {\n @let actionItem = entry.item;\n @let itemIndex = entry.index;\n @if (actionItem.link) {\n <a\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n tlsRipple\n [routerLink]=\"actionItem.link\"\n [class.tls-menu__item--disabled]=\"actionItem.disabled ?? false\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </a>\n } @else {\n <button\n ngMenuItem\n [value]=\"actionItem\"\n [disabled]=\"actionItem.disabled ?? false\"\n class=\"tls-menu__item\"\n tlsRipple\n [attr.disabled]=\"actionItem.disabled ? '' : null\"\n [role]=\"actionItem.role ?? 'menuitem'\"\n [attr.aria-checked]=\"isCheckable(actionItem) ? (actionItem.checked ?? false) : null\"\n [attr.aria-labelledby]=\"itemContentTemplate(actionItem) ? null : itemLabelId(itemIndex)\"\n [attr.aria-describedby]=\"!itemContentTemplate(actionItem) && actionItem.description ? itemDescriptionId(itemIndex) : null\"\n >\n <ng-container [ngTemplateOutlet]=\"actionItemContent\" [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: itemIndex }\" />\n </button>\n }\n\n <ng-template #actionItemContent let-actionItem let-index=\"index\">\n @if (itemContentTemplate(actionItem); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem }\" />\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"defaultItemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: actionItem, index: index }\"\n />\n }\n </ng-template>\n\n <ng-template #defaultItemContent let-actionItem let-index=\"index\">\n @if (isCheckable(actionItem)) {\n <span class=\"tls-menu__item-check\" aria-hidden=\"true\">\n @if (actionItem.checked) {\n <tls-icon name=\"check\" />\n }\n </span>\n }\n @if (actionItem.icon) {\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: actionItem.icon, data: actionItem }\" />\n } @else {\n <tls-icon class=\"tls-menu__item-icon\" [iconSrc]=\"actionItem.icon\" />\n }\n }\n <span class=\"tls-menu__item-text\">\n <span class=\"tls-menu__item-label\" [id]=\"itemLabelId(index)\">{{ actionItem.label }}</span>\n @if (actionItem.description) {\n <span class=\"tls-menu__item-description\" [id]=\"itemDescriptionId(index)\">{{ actionItem.description }}</span>\n }\n </span>\n @if (actionItem.shortcut && actionItem.shortcut.length) {\n <kbd class=\"tls-menu__item-shortcut\">\n @for (key of actionItem.shortcut; track $index) {\n <kbd tlsKbd size=\"sm\">{{ key }}</kbd>\n }\n </kbd>\n }\n </ng-template>\n }\n @case ('divider') {\n @if (dividerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: entry.item }\" />\n } @else {\n <hr class=\"tls-menu__divider\" role=\"separator\" />\n }\n }\n @case ('custom') {\n @if (customTemplates().get(entry.item.key); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n }\n }\n </ng-template>\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"panel\" />\n}\n" }]
13427
13974
  }], ctorParameters: () => [], propDecorators: { _panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], _customItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MenuItemComponent), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['itemTemplate', { isSignal: true }] }], labelTemplate: [{ type: i0.ContentChild, args: ['labelTemplate', { isSignal: true }] }], dividerTemplate: [{ type: i0.ContentChild, args: ['dividerTemplate', { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['iconTemplate', { isSignal: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }] } });
13428
13975
 
13429
13976
  class MenuTriggerDirective {
@@ -14030,16 +14577,16 @@ class Pagination {
14030
14577
  ];
14031
14578
  }
14032
14579
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Pagination, deps: [], target: i0.ɵɵFactoryTarget.Component });
14033
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Pagination, isStandalone: true, selector: "tls-pagination", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, boundaries: { classPropertyName: "boundaries", publicName: "boundaries", isSignal: true, isRequired: false, transformFunction: null }, siblings: { classPropertyName: "siblings", publicName: "siblings", isSignal: true, isRequired: false, transformFunction: null }, showFirstButton: { classPropertyName: "showFirstButton", publicName: "showFirstButton", isSignal: true, isRequired: false, transformFunction: null }, showLastButton: { classPropertyName: "showLastButton", publicName: "showLastButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "navigation" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, ngImport: i0, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.first\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-left\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.previous\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n [class.tls-pagination__item-button--active]=\"value() === item\"\n [attr.aria-label]=\"labels.page(item)\"\n [attr.aria-current]=\"value() === item ? 'page' : null\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.next\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.last\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-right\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
14580
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Pagination, isStandalone: true, selector: "tls-pagination", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, boundaries: { classPropertyName: "boundaries", publicName: "boundaries", isSignal: true, isRequired: false, transformFunction: null }, siblings: { classPropertyName: "siblings", publicName: "siblings", isSignal: true, isRequired: false, transformFunction: null }, showFirstButton: { classPropertyName: "showFirstButton", publicName: "showFirstButton", isSignal: true, isRequired: false, transformFunction: null }, showLastButton: { classPropertyName: "showLastButton", publicName: "showLastButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "navigation" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "ariaLabelledby() ?? null" } }, ngImport: i0, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.first\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-left\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.previous\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n tlsRipple\n [class.tls-pagination__item-button--active]=\"value() === item\"\n [attr.aria-label]=\"labels.page(item)\"\n [attr.aria-current]=\"value() === item ? 'page' : null\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.next\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.last\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-right\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
14034
14581
  }
14035
14582
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Pagination, decorators: [{
14036
14583
  type: Component,
14037
- args: [{ selector: 'tls-pagination', imports: [Icon], host: {
14584
+ args: [{ selector: 'tls-pagination', imports: [Icon, RippleDirective], host: {
14038
14585
  role: 'navigation',
14039
14586
  '[class]': 'classes()',
14040
14587
  '[attr.aria-label]': 'ariaLabelledby() ? null : ariaLabel()',
14041
14588
  '[attr.aria-labelledby]': 'ariaLabelledby() ?? null',
14042
- }, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.first\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-left\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.previous\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n [class.tls-pagination__item-button--active]=\"value() === item\"\n [attr.aria-label]=\"labels.page(item)\"\n [attr.aria-current]=\"value() === item ? 'page' : null\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.next\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n [attr.aria-label]=\"labels.last\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-right\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n" }]
14589
+ }, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.first\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-left\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.previous\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n tlsRipple\n [class.tls-pagination__item-button--active]=\"value() === item\"\n [attr.aria-label]=\"labels.page(item)\"\n [attr.aria-current]=\"value() === item ? 'page' : null\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.next\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n tlsRipple\n [attr.aria-label]=\"labels.last\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <tls-icon name=\"chevrons-right\" aria-hidden=\"true\" />\n </span>\n </button>\n}\n" }]
14043
14590
  }], ctorParameters: () => [], propDecorators: { 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 }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], boundaries: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundaries", required: false }] }], siblings: [{ type: i0.Input, args: [{ isSignal: true, alias: "siblings", required: false }] }], showFirstButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstButton", required: false }] }], showLastButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLastButton", required: false }] }] } });
14044
14591
 
14045
14592
  const DEFAULT_PAGINATION_QUERY_SYNC_CONFIG = {
@@ -15451,13 +15998,13 @@ class Stepper {
15451
15998
  this.stepSelect.emit({ index, value });
15452
15999
  }
15453
16000
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
15454
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Stepper, isStandalone: true, selector: "tls-stepper", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", stepSelect: "stepSelect" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "steps", predicate: Step, isSignal: true }, { propertyName: "completedTemplateRef", first: true, predicate: ["completedTemplate"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }] });
16001
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Stepper, isStandalone: true, selector: "tls-stepper", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", stepSelect: "stepSelect" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "steps", predicate: Step, isSignal: true }, { propertyName: "completedTemplateRef", first: true, predicate: ["completedTemplate"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n tlsRipple\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
15455
16002
  }
15456
16003
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stepper, decorators: [{
15457
16004
  type: Component,
15458
- args: [{ selector: 'tls-stepper', imports: [NgTemplateOutlet, TabList, Tab$1], hostDirectives: [Tabs$1], host: {
16005
+ args: [{ selector: 'tls-stepper', imports: [NgTemplateOutlet, TabList, Tab$1, RippleDirective], hostDirectives: [Tabs$1], host: {
15459
16006
  '[class]': 'hostClasses()',
15460
- }, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n" }]
16007
+ }, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n tlsRipple\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n" }]
15461
16008
  }], propDecorators: { steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Step), { isSignal: true }] }], completedTemplateRef: [{ type: i0.ContentChild, args: ['completedTemplate', { isSignal: true }] }], completedIconTemplateRef: [{ type: i0.ContentChild, args: ['stepCompletedIcon', { isSignal: true }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: true }] }, { type: i0.Output, args: ["activeChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], completed: [{ type: i0.Input, args: [{ isSignal: true, alias: "completed", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], stepSelect: [{ type: i0.Output, args: ["stepSelect"] }] } });
15462
16009
 
15463
16010
  const DEFAULT_SWIPE_ACTIONS_CONFIG = {
@@ -15498,6 +16045,7 @@ class SwipeActions {
15498
16045
  // Injections
15499
16046
  _config = inject(SWIPE_ACTIONS_CONFIG);
15500
16047
  _directionality = inject(Directionality);
16048
+ _hapticFeedback = inject(HAPTIC_FEEDBACK);
15501
16049
  // View children
15502
16050
  contentElement = viewChild.required('content');
15503
16051
  startPanel = viewChild('startPanel', /* @ts-ignore */
@@ -15651,8 +16199,10 @@ class SwipeActions {
15651
16199
  }
15652
16200
  /**
15653
16201
  * Tracks whether releasing at this reveal would commit, mirroring the answer
15654
- * onto the panels as a class and onto `armedChanged`. Both writes bypass
15655
- * bindings: this runs on the move stream, outside the Angular zone.
16202
+ * onto the panels as a class and onto `armedChanged`, and marking the moment
16203
+ * it arms with a light haptic tap, as a native list's full swipe does. The
16204
+ * writes bypass bindings: this runs on the move stream, outside the Angular
16205
+ * zone.
15656
16206
  */
15657
16207
  _updateArmed(offset) {
15658
16208
  const armed = Math.abs(offset) >= this.commitThreshold();
@@ -15669,6 +16219,8 @@ class SwipeActions {
15669
16219
  if (endPanel) {
15670
16220
  endPanel.nativeElement.classList.toggle('tls-swipe-actions__panel--armed', armed && offset < 0);
15671
16221
  }
16222
+ if (armed)
16223
+ this._hapticFeedback.impact('light');
15672
16224
  this.armedChanged.emit(armed);
15673
16225
  }
15674
16226
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SwipeActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -15787,11 +16339,12 @@ class TabLinkDirective {
15787
16339
  event.preventDefault();
15788
16340
  }
15789
16341
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TabLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15790
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: TabLinkDirective, isStandalone: true, selector: "a[tlsTabLink]", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick($event)" }, properties: { "class.tls-tab-header__item--active": "isActive()", "class.tls-tab-header__item--disabled": "disabled()", "attr.aria-current": "isActive() ? 'page' : null", "attr.aria-disabled": "disabled() ? 'true' : null", "attr.tabindex": "disabled() ? -1 : null" }, classAttribute: "tls-tab-header__item tls-tab-header__item-control" }, ngImport: i0 });
16342
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: TabLinkDirective, isStandalone: true, selector: "a[tlsTabLink]", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "handleClick($event)" }, properties: { "class.tls-tab-header__item--active": "isActive()", "class.tls-tab-header__item--disabled": "disabled()", "attr.aria-current": "isActive() ? 'page' : null", "attr.aria-disabled": "disabled() ? 'true' : null", "attr.tabindex": "disabled() ? -1 : null" }, classAttribute: "tls-tab-header__item tls-tab-header__item-control" }, hostDirectives: [{ directive: RippleDirective }], ngImport: i0 });
15791
16343
  }
15792
16344
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TabLinkDirective, decorators: [{
15793
16345
  type: Directive,
15794
16346
  args: [{
16347
+ hostDirectives: [RippleDirective],
15795
16348
  selector: 'a[tlsTabLink]',
15796
16349
  host: {
15797
16350
  class: 'tls-tab-header__item tls-tab-header__item-control',
@@ -16128,13 +16681,13 @@ class Tabs {
16128
16681
  control.nativeElement.focus();
16129
16682
  }
16130
16683
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
16131
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, headerAlign: { classPropertyName: "headerAlign", publicName: "headerAlign", isSignal: true, isRequired: false, transformFunction: null }, itemsAlign: { classPropertyName: "itemsAlign", publicName: "itemsAlign", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], viewQueries: [{ propertyName: "_tabControls", predicate: ["tabControl"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n #tabControl\n ngTab\n class=\"tls-tab-header__item-control\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "directive", type: TabContent, selector: "ng-template[ngTabContent]", exportAs: ["ngTabContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
16684
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, headerAlign: { classPropertyName: "headerAlign", publicName: "headerAlign", isSignal: true, isRequired: false, transformFunction: null }, itemsAlign: { classPropertyName: "itemsAlign", publicName: "itemsAlign", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], viewQueries: [{ propertyName: "_tabControls", predicate: ["tabControl"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n #tabControl\n ngTab\n class=\"tls-tab-header__item-control\"\n tlsRipple\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "directive", type: TabContent, selector: "ng-template[ngTabContent]", exportAs: ["ngTabContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RippleDirective, selector: "[tlsRipple]", inputs: ["rippleDisabled", "ripplePointerTypes", "rippleSurface"] }] });
16132
16685
  }
16133
16686
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, decorators: [{
16134
16687
  type: Component,
16135
- args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
16688
+ args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet, RippleDirective], hostDirectives: [Tabs$1], host: {
16136
16689
  '[class]': 'hostClasses()',
16137
- }, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n #tabControl\n ngTab\n class=\"tls-tab-header__item-control\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n" }]
16690
+ }, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n #tabControl\n ngTab\n class=\"tls-tab-header__item-control\"\n tlsRipple\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n" }]
16138
16691
  }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], headerAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerAlign", required: false }] }], itemsAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsAlign", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Tab), { isSignal: true }] }], _tabControls: [{ type: i0.ViewChildren, args: ['tabControl', { isSignal: true }] }] } });
16139
16692
 
16140
16693
  const DEFAULT_TABS_QUERY_SYNC_CONFIG = {
@@ -16701,15 +17254,26 @@ const provideThalassicUIConfig = (config = {}) => {
16701
17254
  provide: RIPPLE_CONFIG,
16702
17255
  useValue: deepMerge(DEFAULT_RIPPLE_CONFIG, config.ripple),
16703
17256
  },
16704
- // Reflect the touch-target opt-out onto the document root. Absent the attribute the
16705
- // expansion is active (accessible by default); this only disables it. The overflow is
16706
- // transparent, so a late (browser-only) reflection causes no visual flash.
17257
+ // Reflect the touch-target opt-in onto the document root, where the expansion reads
17258
+ // it. The overflow is transparent, so a late (browser-only) reflection causes no
17259
+ // visual flash.
17260
+ provideEnvironmentInitializer(() => {
17261
+ if (!accessibility.expandTouchTargets)
17262
+ return;
17263
+ if (!isPlatformBrowser(inject(PLATFORM_ID)))
17264
+ return;
17265
+ inject(DOCUMENT).documentElement.setAttribute('data-touch-targets', 'expanded');
17266
+ }),
17267
+ // Reflect the touch-control opt-in onto the document root, where the control height
17268
+ // scale reads it. Unlike the transparent hit area, the larger controls change layout,
17269
+ // so a page rendered on the server keeps the base heights until the browser reflects
17270
+ // the attribute.
16707
17271
  provideEnvironmentInitializer(() => {
16708
- if (accessibility.expandTouchTargets)
17272
+ if (!accessibility.enlargeTouchControls)
16709
17273
  return;
16710
17274
  if (!isPlatformBrowser(inject(PLATFORM_ID)))
16711
17275
  return;
16712
- inject(DOCUMENT).documentElement.setAttribute('data-touch-targets', 'off');
17276
+ inject(DOCUMENT).documentElement.setAttribute('data-touch-controls', 'large');
16713
17277
  }),
16714
17278
  // Cross-cutting form defaults
16715
17279
  {
@@ -16944,5 +17508,5 @@ const provideThalassicUIConfig = (config = {}) => {
16944
17508
  * Generated bundle index. Do not edit.
16945
17509
  */
16946
17510
 
16947
- export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MOVE_SLOP_PX, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, isTypeRejected, normalizeAccept, parseColor, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, toImagePreviewImage };
17511
+ export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, POSITIONED_VALUES, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MOVE_SLOP_PX, RIPPLE_RELEASED_CLASS, RIPPLE_TOUCH_DELAY_MS, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, isTypeRejected, normalizeAccept, parseColor, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, toImagePreviewImage };
16948
17512
  //# sourceMappingURL=thalassic-ui.mjs.map