@thalassic/ui 22.22.0 → 22.24.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, 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,9 +11,9 @@ 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
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, deepMerge } from '@thalassic/core';
16
+ import { Grid, GridRow, GridCell } from '@angular/aria/grid';
17
17
  import { Directionality } from '@angular/cdk/bidi';
18
18
  import { ConfigurableFocusTrapFactory, InputModalityDetector } from '@angular/cdk/a11y';
19
19
  import { filter as filter$1 } from 'rxjs/operators';
@@ -49,6 +49,13 @@ const FORM_CONTROL_CONFIG = new InjectionToken('FORM_CONTROL_CONFIG', {
49
49
  factory: () => DEFAULT_FORM_CONTROL_CONFIG,
50
50
  });
51
51
 
52
+ /**
53
+ * The element that draws the border of the field a control sits in, provided by a wrapper
54
+ * that frames one or more controls and their addons as a single field. A control with no
55
+ * such wrapper above it draws its own border and is its own frame.
56
+ */
57
+ const FORM_CONTROL_FRAME = new InjectionToken('FORM_CONTROL_FRAME');
58
+
52
59
  class FormControl {
53
60
  // Injections
54
61
  _formControlConfig = inject(FORM_CONTROL_CONFIG);
@@ -58,6 +65,10 @@ class FormControl {
58
65
  * layout before it can hand anything to it.
59
66
  */
60
67
  elementRef = inject(ElementRef);
68
+ /** The frame a wrapper above the control provides, if any; read through `frameElement()`. */
69
+ _providedFrame = inject(FORM_CONTROL_FRAME, {
70
+ optional: true,
71
+ });
61
72
  // Models
62
73
  touched = model(false, /* @ts-ignore */
63
74
  ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
@@ -199,6 +210,31 @@ class FormControl {
199
210
  focusTarget() {
200
211
  return this.elementRef.nativeElement.querySelector(FOCUSABLE_CONTROL_SELECTOR);
201
212
  }
213
+ /**
214
+ * The element that draws the field's border: the wrapper framing the control when it sits
215
+ * in one, otherwise the control's own host. A panel the control opens is aligned to it, so
216
+ * the panel lines up with the field as drawn, its addons included, rather than with an
217
+ * element inside the border. A provided frame counts only while it contains the control: a
218
+ * control rendered in a panel that a grouped control opens inherits the group's frame
219
+ * through injection, yet sits outside it on the page and frames itself.
220
+ */
221
+ frameElement() {
222
+ const hostElement = this.elementRef.nativeElement;
223
+ const frame = this._providedFrame;
224
+ if (frame && frame.nativeElement.contains(hostElement))
225
+ return frame.nativeElement;
226
+ return hostElement;
227
+ }
228
+ /**
229
+ * Hands focus back to the control once a panel it opened has closed, unless a press
230
+ * elsewhere closed it: focus then already belongs to whatever was pressed, and taking it
231
+ * back would make that press only dismiss the panel.
232
+ */
233
+ restoreFocusAfterPanel(cause) {
234
+ if (cause === 'outside-pointer')
235
+ return;
236
+ this.focus();
237
+ }
202
238
  baseControlClasses() {
203
239
  const className = this.CLASS_NAME;
204
240
  const array = [className];
@@ -560,6 +596,29 @@ const OVERLAY_POSITION_MAP = {
560
596
  },
561
597
  };
562
598
 
599
+ /**
600
+ * Each placement mirrored to the opposite side of its origin, alignment kept: the one an
601
+ * overlay falls back to first when its preferred side has no room.
602
+ */
603
+ const OVERLAY_FLIPPED_POSITION_MAP = {
604
+ top: 'bottom',
605
+ 'top-start': 'bottom-start',
606
+ 'top-end': 'bottom-end',
607
+ right: 'left',
608
+ 'right-start': 'left-start',
609
+ 'right-end': 'left-end',
610
+ bottom: 'top',
611
+ 'bottom-start': 'top-start',
612
+ 'bottom-end': 'top-end',
613
+ left: 'right',
614
+ 'left-start': 'right-start',
615
+ 'left-end': 'right-end',
616
+ 'top-left': 'bottom-left',
617
+ 'top-right': 'bottom-right',
618
+ 'bottom-left': 'top-left',
619
+ 'bottom-right': 'top-right',
620
+ };
621
+
563
622
  /** Every step of the theme radius scale, used to tell a token apart from a raw CSS length. */
564
623
  const RADIUS_TOKENS = ['sm', 'md', 'lg', 'xl', '2xl', '3xl'];
565
624
 
@@ -569,10 +628,23 @@ const RADIUS_TOKENS = ['sm', 'md', 'lg', 'xl', '2xl', '3xl'];
569
628
  */
570
629
  const NOW_REFRESH_INTERVAL_MS = 60_000;
571
630
 
631
+ /**
632
+ * The placements an overlay tries, in order: the preferred one, then the same placement
633
+ * mirrored to the opposite side of its origin, then every other. Flipping keeps the
634
+ * alignment, so a panel opened `bottom-start` that has no room below opens `top-start`,
635
+ * still lined up with the start of its trigger, rather than jumping to a centred `top`.
636
+ *
637
+ * @example
638
+ * buildOverlayPositions('bottom-start', { x: 0, y: 4 }).slice(0, 2);
639
+ * // [bottom-start, top-start] — mirrored, alignment kept
640
+ * buildOverlayPositions('right', { x: 4, y: 0 }).slice(0, 2);
641
+ * // [right, left]
642
+ */
572
643
  const buildOverlayPositions = (position, offset) => {
573
644
  const preferred = OVERLAY_POSITION_MAP[position];
574
- const rest = Object.values(OVERLAY_POSITION_MAP).filter(p => p !== preferred);
575
- const positions = [preferred, ...rest];
645
+ const flipped = OVERLAY_POSITION_MAP[OVERLAY_FLIPPED_POSITION_MAP[position]];
646
+ const rest = Object.values(OVERLAY_POSITION_MAP).filter(p => p !== preferred && p !== flipped);
647
+ const positions = [preferred, flipped, ...rest];
576
648
  return positions.map(position => ({
577
649
  ...position,
578
650
  offsetX: Math.sign(position.offsetX ?? 0) * offset.x,
@@ -1021,6 +1093,10 @@ class OverlayManager {
1021
1093
  }),
1022
1094
  });
1023
1095
  this._wireDismissal(this._overlayRef, config);
1096
+ // The pane outlives every attach, so its listener is added once, with the pane.
1097
+ if (config.keepFocusOnPanePress) {
1098
+ this._overlayRef.overlayElement.addEventListener('mousedown', event => event.preventDefault());
1099
+ }
1024
1100
  }
1025
1101
  else {
1026
1102
  // Reused ref (`reuse: true`): re-apply the position strategy so a new
@@ -1030,14 +1106,22 @@ class OverlayManager {
1030
1106
  if (sheet) {
1031
1107
  this._overlayRef.updateSize({ width: '100%' });
1032
1108
  }
1033
- else if (config.minWidth != null) {
1034
- this._overlayRef.updateSize({ minWidth: config.minWidth });
1109
+ else if (config.width != null || config.minWidth != null) {
1110
+ this._overlayRef.updateSize({
1111
+ ...(config.width != null && { width: config.width }),
1112
+ ...(config.minWidth != null && { minWidth: config.minWidth }),
1113
+ });
1035
1114
  }
1036
1115
  this._overlayRef.attach(new TemplatePortal(config.content, this._viewContainerRef));
1037
1116
  this._isOpen.set(true);
1038
1117
  this._ignoreTrailingAuxClick = Boolean(config.ignoreTrailingAuxClick);
1039
1118
  }
1040
1119
  close() {
1120
+ this._close('requested');
1121
+ }
1122
+ // Private
1123
+ /** Closes the overlay and tells the owner what closed it. */
1124
+ _close(cause) {
1041
1125
  if (!this._isOpen())
1042
1126
  return;
1043
1127
  this._isOpen.set(false);
@@ -1057,9 +1141,8 @@ class OverlayManager {
1057
1141
  }
1058
1142
  }
1059
1143
  if (config && config.onClose)
1060
- config.onClose();
1144
+ config.onClose(cause);
1061
1145
  }
1062
- // Private
1063
1146
  _buildPositionStrategy(config) {
1064
1147
  if (config.presentation === 'sheet') {
1065
1148
  return this._overlay.position().global().centerHorizontally().bottom('0');
@@ -1083,12 +1166,17 @@ class OverlayManager {
1083
1166
  overlayRef
1084
1167
  .backdropClick()
1085
1168
  .pipe(takeUntilDestroyed(this._destroyRef))
1086
- .subscribe(() => this.close());
1169
+ .subscribe(() => this._close('backdrop'));
1087
1170
  }
1088
1171
  if (config.closeOnOutsidePointer ?? !hasBackdrop) {
1089
1172
  overlayRef
1090
1173
  .outsidePointerEvents()
1091
1174
  .pipe(takeUntilDestroyed(this._destroyRef), filter(event => event.type === 'click' || event.type === 'auxclick'), filter(event => {
1175
+ const insideElement = config.insideElement;
1176
+ if (!insideElement || !(event.target instanceof Node))
1177
+ return true;
1178
+ return !insideElement.contains(event.target);
1179
+ }), filter(event => {
1092
1180
  // Swallow exactly the first outside `auxclick` after an armed open —
1093
1181
  // the release of the right-click that opened a context menu — then
1094
1182
  // let every later outside pointer dismiss as usual.
@@ -1098,13 +1186,13 @@ class OverlayManager {
1098
1186
  }
1099
1187
  return true;
1100
1188
  }))
1101
- .subscribe(() => this.close());
1189
+ .subscribe(() => this._close('outside-pointer'));
1102
1190
  }
1103
1191
  if (config.closeOnEscape ?? true) {
1104
1192
  overlayRef
1105
1193
  .keydownEvents()
1106
1194
  .pipe(takeUntilDestroyed(this._destroyRef), filter(event => event.key === 'Escape'))
1107
- .subscribe(() => this.close());
1195
+ .subscribe(() => this._close('escape'));
1108
1196
  }
1109
1197
  }
1110
1198
  _dispose() {
@@ -1305,6 +1393,12 @@ class AbstractSelect extends ValueFormControl {
1305
1393
  get listboxId() {
1306
1394
  return `${this.uniqueId}-listbox`;
1307
1395
  }
1396
+ /**
1397
+ * Whether the panel takes exactly the field's width instead of starting at it. A list of
1398
+ * fixed choices may grow past the field so a long option reads whole, as a native select's
1399
+ * does; a list of suggestions for typed text stays as wide as the text it completes.
1400
+ */
1401
+ panelMatchesFieldWidth = false;
1308
1402
  /**
1309
1403
  * Host modifiers for states only one control has, listed alongside the shared ones. Read from
1310
1404
  * within the host-class computation, so signals a control reads here stay reactive.
@@ -1346,9 +1440,13 @@ class AbstractSelect extends ValueFormControl {
1346
1440
  const panelTemplate = this.panelTemplate();
1347
1441
  if (this.notInteractive() || this.isOpen() || !triggerElement || !panelTemplate)
1348
1442
  return;
1443
+ // Anchored to the frame rather than the trigger inside it, so the panel lines up with
1444
+ // the field's outer edges. Measured unrounded: a fluid field's width is fractional.
1445
+ const frameElement = this.frameElement();
1446
+ const fieldWidth = frameElement.getBoundingClientRect().width;
1349
1447
  this.overlay.open({
1350
1448
  content: panelTemplate,
1351
- origin: triggerElement,
1449
+ origin: frameElement,
1352
1450
  positions: [
1353
1451
  { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
1354
1452
  { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },
@@ -1356,15 +1454,21 @@ class AbstractSelect extends ValueFormControl {
1356
1454
  flexibleDimensions: false,
1357
1455
  push: false,
1358
1456
  panelClass: this.panelClass,
1457
+ // No backdrop: a press elsewhere closes the list and lands where it was aimed, focusing
1458
+ // another field on the first press rather than only dismissing the list, as the WAI-ARIA
1459
+ // combobox pattern and a native autocomplete do. Presses on the field itself stay with
1460
+ // the field, and presses in the list leave focus on the trigger, which drives the list
1461
+ // from the keyboard while its options are only pointed at.
1462
+ hasBackdrop: false,
1463
+ insideElement: frameElement,
1464
+ keepFocusOnPanePress: true,
1359
1465
  // The control handles Escape itself via the trigger's keydown handler.
1360
1466
  closeOnEscape: false,
1361
- minWidth: triggerElement.nativeElement.offsetWidth,
1467
+ ...(this.panelMatchesFieldWidth ? { width: fieldWidth } : { minWidth: fieldWidth }),
1362
1468
  reuse: true,
1363
- onClose: () => {
1469
+ onClose: cause => {
1364
1470
  this.activeIndex.set(-1);
1365
- const trigger = this.triggerElement();
1366
- if (trigger)
1367
- trigger.nativeElement.focus();
1471
+ this.restoreFocusAfterPanel(cause);
1368
1472
  this.onClosed();
1369
1473
  },
1370
1474
  });
@@ -1439,9 +1543,12 @@ class AbstractSelect extends ValueFormControl {
1439
1543
  if (this.isOpen())
1440
1544
  this.close();
1441
1545
  }
1442
- else if ((event.key === 'Delete' || event.key === 'Backspace') &&
1546
+ else if (
1547
+ // A read-only trigger keeps focus but offers no clear button, so the keys refuse too.
1548
+ (event.key === 'Delete' || event.key === 'Backspace') &&
1443
1549
  this.clearable() &&
1444
- this.hasValue()) {
1550
+ this.hasValue() &&
1551
+ !this.notInteractive()) {
1445
1552
  event.preventDefault();
1446
1553
  this.clear();
1447
1554
  }
@@ -1620,6 +1727,10 @@ const DEFAULT_ICONS = {
1620
1727
  '<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
1728
  eyedropper: svg('<path d="m2 22 1-1h3l9-9" /><path d="M3 21v-3l9-9" />' +
1622
1729
  '<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" />'),
1730
+ calendar: svg('<rect x="3" y="4" width="18" height="18" rx="2" />' +
1731
+ '<line x1="16" y1="2" x2="16" y2="6" /><line x1="8" y1="2" x2="8" y2="6" />' +
1732
+ '<line x1="3" y1="10" x2="21" y2="10" />'),
1733
+ clock: svg('<circle cx="12" cy="12" r="10" /><polyline points="12 6 12 12 16 14" />'),
1623
1734
  };
1624
1735
  function svg(body) {
1625
1736
  return ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" ' +
@@ -1909,6 +2020,330 @@ const ACCORDION_CONFIG = new InjectionToken('ACCORDION_CONFIG', {
1909
2020
  factory: () => DEFAULT_ACCORDION_CONFIG,
1910
2021
  });
1911
2022
 
2023
+ const DEFAULT_RIPPLE_CONFIG = {
2024
+ pointerTypes: ['touch', 'pen'],
2025
+ };
2026
+
2027
+ /** Marks a host while its ink is expanding; the theme's `ripple` mixin animates on it. */
2028
+ const RIPPLE_ACTIVE_CLASS = 'tls-rippling';
2029
+ /**
2030
+ * Marks a host whose contact has ended, so its ink fades out. Ink spreads and holds for as
2031
+ * long as the finger stays down — a held control keeps showing that it is pressed — and only
2032
+ * lets go when the contact does.
2033
+ */
2034
+ const RIPPLE_RELEASED_CLASS = 'tls-ripple-released';
2035
+ /**
2036
+ * How long a touch waits before it inks. A finger landing on a control may be starting a
2037
+ * scroll, and ink struck at once would flash under every flick that happens to begin on
2038
+ * one; waiting out the first moments lets a scroll declare itself first. A tap lifted
2039
+ * sooner inks at once, so no tap goes unanswered. The value sits with Android's tap timeout
2040
+ * and MUI's touch-ripple delay, short enough not to read as lag.
2041
+ */
2042
+ const RIPPLE_TOUCH_DELAY_MS = 80;
2043
+ /** Contact point of the press, relative to the host's own box. */
2044
+ const RIPPLE_X_PROPERTY = '--tls-ripple-x';
2045
+ const RIPPLE_Y_PROPERTY = '--tls-ripple-y';
2046
+ /** Radius the ink has to reach to cover the host from that contact point. */
2047
+ const RIPPLE_DIAMETER_PROPERTY = '--tls-ripple-diameter';
2048
+ /** Suppression hook the press mixin reads: 1 leaves the control at rest. */
2049
+ const PRESS_SCALE_PROPERTY = '--tls-press-scale';
2050
+ /**
2051
+ * How far a pointer may travel before its press is read as the start of a scroll.
2052
+ * A ripple keeps expanding for its full duration, so one spawned by a flick stays
2053
+ * on screen well after the surface has moved — worse than a press, which ends
2054
+ * with the contact.
2055
+ */
2056
+ const RIPPLE_MOVE_SLOP_PX = 8;
2057
+ /**
2058
+ * The `position` values that make an element positioned — the box its absolutely placed
2059
+ * descendants, the ink layer among them, are laid out against.
2060
+ */
2061
+ const POSITIONED_VALUES = new Set(['relative', 'absolute', 'fixed', 'sticky']);
2062
+
2063
+ const RIPPLE_CONFIG = new InjectionToken('RIPPLE_CONFIG', {
2064
+ factory: () => DEFAULT_RIPPLE_CONFIG,
2065
+ });
2066
+
2067
+ /**
2068
+ * Spreads ink from the point of contact when the host is touched, and stands its
2069
+ * press down for that one interaction so a single tap produces a single effect.
2070
+ *
2071
+ * A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
2072
+ * covering the control it is spreading from — a cursor occludes nothing, and a
2073
+ * mouse press is over in a fraction of the ink's duration, leaving most of it
2074
+ * playing after the button has already been released. Which pointers ink is set
2075
+ * app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
2076
+ *
2077
+ * A touch inks a moment after it lands rather than at once, so a flick that
2078
+ * merely begins on the host scrolls without flashing it; a tap lifted sooner inks
2079
+ * on release. The ink spreads and holds while the contact lasts, so a held press
2080
+ * keeps showing, and fades when it ends.
2081
+ *
2082
+ * The ink is expressive and outlives the contact that spawned it, so it is
2083
+ * confined to the `full` motion level; below that the press it suppresses is
2084
+ * restored and acknowledges the touch instead. Removing this directive therefore
2085
+ * takes nothing away — the press underneath is pure CSS and is what a host shows
2086
+ * without it.
2087
+ *
2088
+ * Requires the theme's `ripple` mixin on the element the ink is drawn on — the
2089
+ * host, or the `rippleSurface` it names — which draws the ink from the values
2090
+ * written there.
2091
+ *
2092
+ * @example
2093
+ * ```html
2094
+ * <button class="tls-button" tlsRipple>Save</button>
2095
+ * ```
2096
+ */
2097
+ class RippleDirective {
2098
+ // Injections
2099
+ _elementRef = inject(ElementRef);
2100
+ _document = inject(DOCUMENT);
2101
+ _config = inject(RIPPLE_CONFIG);
2102
+ _renderer = inject(Renderer2);
2103
+ // Inputs
2104
+ /**
2105
+ * Turns the ink off.
2106
+ *
2107
+ * Deliberately not named `disabled`: an input shadows the DOM property of the
2108
+ * same name on the element it sits on, so a directive claiming `disabled` would
2109
+ * capture a host's `[disabled]` binding and leave the control enabled.
2110
+ */
2111
+ rippleDisabled = input(false, { ...(ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
2112
+ /**
2113
+ * Pointer types whose presses ink here, overriding the app-wide default for
2114
+ * this one host. Unset defers to `RIPPLE_CONFIG`.
2115
+ */
2116
+ ripplePointerTypes = input(undefined, /* @ts-ignore */
2117
+ ...(ngDevMode ? [{ debugName: "ripplePointerTypes" }] : /* istanbul ignore next */ []));
2118
+ /**
2119
+ * The element the ink is drawn on, when it is not the host itself: a part of the control
2120
+ * that carries its shape, such as a navigation item's indicator pill around its icon. The
2121
+ * whole host still answers the press, and still stands its own press down. Unset draws on
2122
+ * the host.
2123
+ */
2124
+ rippleSurface = input(undefined, /* @ts-ignore */
2125
+ ...(ngDevMode ? [{ debugName: "rippleSurface" }] : /* istanbul ignore next */ []));
2126
+ // Computed
2127
+ _pointerTypes = computed(() => this.ripplePointerTypes() ?? this._config.pointerTypes, /* @ts-ignore */
2128
+ ...(ngDevMode ? [{ debugName: "_pointerTypes" }] : /* istanbul ignore next */ []));
2129
+ // State
2130
+ /** Where the press landed, to measure a scroll against. */
2131
+ _origin = null;
2132
+ /**
2133
+ * Teardown of the listeners that follow a press — its moves and its end — bound
2134
+ * only while one is live. Host listeners would schedule change detection for
2135
+ * every hover movement across every host, although only a press needs them.
2136
+ */
2137
+ _stopTrackingContact = null;
2138
+ /** The ink a touch is waiting to strike, until the wait passes or the contact ends. */
2139
+ _pendingInk = null;
2140
+ constructor() {
2141
+ inject(DestroyRef).onDestroy(() => this._stopTracking());
2142
+ }
2143
+ // Protected methods
2144
+ onPointerDown(event) {
2145
+ const host = this._elementRef.nativeElement;
2146
+ const surface = this._surface();
2147
+ this._stopTracking();
2148
+ // Anything this directive does not ink is the press's to acknowledge, so the
2149
+ // suppression is lifted here rather than on release. `:active` outlives the
2150
+ // contact that set it: dropping the suppression at `pointerup` hands the
2151
+ // control back to a press that is still matching, which then depresses and
2152
+ // settles after the finger has already gone. Restoring it as a press begins
2153
+ // leaves no window to flash in.
2154
+ if (this.rippleDisabled() || !this._inksFor(event.pointerType) || !this._isFullMotion()) {
2155
+ surface.classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2156
+ host.style.removeProperty(PRESS_SCALE_PROPERTY);
2157
+ return;
2158
+ }
2159
+ const bounds = this._inkLayerBounds(surface);
2160
+ const x = event.clientX - bounds.left;
2161
+ const y = event.clientY - bounds.top;
2162
+ this._origin = { x: event.clientX, y: event.clientY };
2163
+ this._trackContact(host, event.pointerId);
2164
+ surface.style.setProperty(RIPPLE_X_PROPERTY, `${x}px`);
2165
+ surface.style.setProperty(RIPPLE_Y_PROPERTY, `${y}px`);
2166
+ surface.style.setProperty(RIPPLE_DIAMETER_PROPERTY, `${this._radiusToCover(bounds, x, y)}px`);
2167
+ // Press and ink both answer the same contact; the ink is the louder of the
2168
+ // two, so the press stands down rather than playing underneath it — from the
2169
+ // moment the contact lands, so a press waiting to ink does not depress first.
2170
+ host.style.setProperty(PRESS_SCALE_PROPERTY, '1');
2171
+ if (event.pointerType !== 'touch') {
2172
+ this._restartInk(surface);
2173
+ return;
2174
+ }
2175
+ this._pendingInk = setTimeout(() => {
2176
+ this._pendingInk = null;
2177
+ this._restartInk(surface);
2178
+ }, RIPPLE_TOUCH_DELAY_MS);
2179
+ }
2180
+ // Private methods
2181
+ /** A tap lifted before its ink was struck inks now, and every ink lets go with the contact. */
2182
+ _onPointerRelease() {
2183
+ const surface = this._surface();
2184
+ if (this._pendingInk) {
2185
+ this._clearPendingInk();
2186
+ this._restartInk(surface);
2187
+ }
2188
+ this._stopTracking();
2189
+ this._release(surface);
2190
+ }
2191
+ /**
2192
+ * The browser took the contact over, most often for a scroll: an ink still waiting is
2193
+ * dropped, and one already spreading fades as on release.
2194
+ */
2195
+ _onPointerCancel() {
2196
+ const struck = !this._pendingInk;
2197
+ this._stopTracking();
2198
+ if (struck)
2199
+ this._release(this._surface());
2200
+ }
2201
+ _onPointerMove(event) {
2202
+ const origin = this._origin;
2203
+ if (!origin)
2204
+ return;
2205
+ const travelled = Math.hypot(event.clientX - origin.x, event.clientY - origin.y);
2206
+ if (travelled <= RIPPLE_MOVE_SLOP_PX)
2207
+ return;
2208
+ // The press turned out to be a scroll. The ink goes immediately — or is never
2209
+ // struck, if the wait has not passed — but the press stays suppressed until
2210
+ // the contact ends: restoring it here would depress the control mid-scroll,
2211
+ // which is what the ink was cancelled for.
2212
+ this._stopTracking();
2213
+ this._surface().classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2214
+ }
2215
+ /**
2216
+ * Follows one press until it ends. Its end is heard on the document rather than the host:
2217
+ * only a touch is captured by the element it lands on, so a pen — or a mouse, where one
2218
+ * inks — lifted after sliding off the host would otherwise never release the ink it holds.
2219
+ * The capture phase hears the end even where a component stops it from bubbling.
2220
+ */
2221
+ _trackContact(host, pointerId) {
2222
+ const onEnd = (event) => {
2223
+ if (event.pointerId !== pointerId)
2224
+ return;
2225
+ if (event.type === 'pointerup') {
2226
+ this._onPointerRelease();
2227
+ }
2228
+ else {
2229
+ this._onPointerCancel();
2230
+ }
2231
+ };
2232
+ const stopMoves = this._renderer.listen(host, 'pointermove', (event) => this._onPointerMove(event));
2233
+ const stopRelease = this._renderer.listen(this._document, 'pointerup', onEnd, { capture: true });
2234
+ const stopCancel = this._renderer.listen(this._document, 'pointercancel', onEnd, {
2235
+ capture: true,
2236
+ });
2237
+ this._stopTrackingContact = () => {
2238
+ stopMoves();
2239
+ stopRelease();
2240
+ stopCancel();
2241
+ };
2242
+ }
2243
+ _stopTracking() {
2244
+ this._origin = null;
2245
+ this._clearPendingInk();
2246
+ if (!this._stopTrackingContact)
2247
+ return;
2248
+ this._stopTrackingContact();
2249
+ this._stopTrackingContact = null;
2250
+ }
2251
+ /**
2252
+ * Whether a press from this kind of pointer inks. `pointerType` is read off the
2253
+ * event rather than from a media query so a device carrying both a touchscreen
2254
+ * and a mouse is answered by the one in use, not by the one it reports as
2255
+ * primary.
2256
+ */
2257
+ _inksFor(pointer) {
2258
+ return this._pointerTypes().some(allowed => allowed === pointer);
2259
+ }
2260
+ /**
2261
+ * Whether the document is at the motion level the ink belongs to.
2262
+ *
2263
+ * Read from the attribute the stylesheet gates on rather than from
2264
+ * `MotionService`, for two reasons: the two can never disagree about a level
2265
+ * they read from one place, and a host is not made to depend on a provider it
2266
+ * would otherwise never need — an app that never configures motion has no
2267
+ * attribute, and the ink is off exactly as the stylesheet has it.
2268
+ */
2269
+ _isFullMotion() {
2270
+ return this._document.documentElement.getAttribute(MOTION_ATTRIBUTE) === 'full';
2271
+ }
2272
+ /** The element the ink is drawn on. */
2273
+ _surface() {
2274
+ return this.rippleSurface() ?? this._elementRef.nativeElement;
2275
+ }
2276
+ /**
2277
+ * The box the ink layer occupies, which the contact point and the ink's reach are measured
2278
+ * against. The layer is laid out against the surface, unless the surface is not positioned:
2279
+ * it is then laid out against the nearest positioned ancestor instead — a stretched link
2280
+ * inks the whole row its hit area covers, not just its own text. Its insets are read back
2281
+ * rather than assumed to be zero, so a layer that bleeds past that box is measured as drawn.
2282
+ */
2283
+ _inkLayerBounds(surface) {
2284
+ const container = POSITIONED_VALUES.has(getComputedStyle(surface).position)
2285
+ ? surface
2286
+ : (surface.offsetParent ?? surface);
2287
+ const bounds = container.getBoundingClientRect();
2288
+ const layer = getComputedStyle(surface, '::before');
2289
+ // An inset that does not resolve to a length — the layer is not laid out — reads as none.
2290
+ const top = parseFloat(layer.top) || 0;
2291
+ const right = parseFloat(layer.right) || 0;
2292
+ const bottom = parseFloat(layer.bottom) || 0;
2293
+ const left = parseFloat(layer.left) || 0;
2294
+ return new DOMRect(bounds.left + left, bounds.top + top, bounds.width - left - right, bounds.height - top - bottom);
2295
+ }
2296
+ /**
2297
+ * Distance from the contact point to the farthest corner. The ink is struck
2298
+ * where the finger landed, so a press near an edge has farther to travel than
2299
+ * one in the middle; covering the control means reaching that corner.
2300
+ */
2301
+ _radiusToCover(bounds, x, y) {
2302
+ const horizontal = Math.max(x, bounds.width - x);
2303
+ const vertical = Math.max(y, bounds.height - y);
2304
+ return Math.hypot(horizontal, vertical);
2305
+ }
2306
+ /**
2307
+ * Retriggers the animation. A class already present does not restart a running
2308
+ * animation, so a second tap arriving before the first has faded would
2309
+ * otherwise be swallowed; reading back a layout property between the removal
2310
+ * and the addition forces the two to land as separate states.
2311
+ */
2312
+ _restartInk(surface) {
2313
+ surface.classList.remove(RIPPLE_ACTIVE_CLASS, RIPPLE_RELEASED_CLASS);
2314
+ void surface.offsetWidth;
2315
+ surface.classList.add(RIPPLE_ACTIVE_CLASS);
2316
+ }
2317
+ /**
2318
+ * Lets the ink go. Its held strength is read back first: the fade is a transition from
2319
+ * that strength, and an ink struck and released in one go — a quick tap — would otherwise
2320
+ * have no style at full strength to fade from, and vanish without being seen.
2321
+ */
2322
+ _release(surface) {
2323
+ if (!surface.classList.contains(RIPPLE_ACTIVE_CLASS))
2324
+ return;
2325
+ void getComputedStyle(surface, '::before').opacity;
2326
+ surface.classList.add(RIPPLE_RELEASED_CLASS);
2327
+ }
2328
+ _clearPendingInk() {
2329
+ if (!this._pendingInk)
2330
+ return;
2331
+ clearTimeout(this._pendingInk);
2332
+ this._pendingInk = null;
2333
+ }
2334
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2335
+ 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 });
2336
+ }
2337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, decorators: [{
2338
+ type: Directive,
2339
+ args: [{
2340
+ selector: '[tlsRipple]',
2341
+ host: {
2342
+ '(pointerdown)': 'onPointerDown($event)',
2343
+ },
2344
+ }]
2345
+ }], 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 }] }] } });
2346
+
1912
2347
  /**
1913
2348
  * A stack of collapsible sections. The container owns the policy shared by the
1914
2349
  * whole stack — how many sections may stay open, whether arrowing wraps, the
@@ -1961,7 +2396,7 @@ class Accordion {
1961
2396
  return this.headingLevel();
1962
2397
  }
1963
2398
  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"] }] });
2399
+ 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
2400
  }
1966
2401
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Accordion, decorators: [{
1967
2402
  type: Component,
@@ -1972,6 +2407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1972
2407
  AccordionContent,
1973
2408
  Icon,
1974
2409
  NgTemplateOutlet,
2410
+ RippleDirective,
1975
2411
  ], host: {
1976
2412
  '[class]': 'hostClasses()',
1977
2413
  // The accordion pattern gives the container no implicit role, so an
@@ -1980,7 +2416,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
1980
2416
  '[attr.role]': "hasAccessibleName() ? 'group' : null",
1981
2417
  '[attr.aria-label]': 'ariaLabel() ?? null',
1982
2418
  '[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" }]
2419
+ }, 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
2420
  }], 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
2421
 
1986
2422
  /**
@@ -3455,203 +3891,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
3455
3891
  }]
3456
3892
  }], 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
3893
 
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
- }
3607
- /**
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.
3615
- */
3616
- _isFullMotion() {
3617
- return this._document.documentElement.getAttribute(MOTION_ATTRIBUTE) === 'full';
3618
- }
3619
- /**
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.
3623
- */
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
- }
3629
- /**
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.
3634
- */
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 });
3642
- }
3643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RippleDirective, decorators: [{
3644
- type: Directive,
3645
- args: [{
3646
- selector: '[tlsRipple]',
3647
- host: {
3648
- '(pointerdown)': 'onPointerDown($event)',
3649
- '(pointerup)': 'onPointerRelease()',
3650
- '(pointercancel)': 'onPointerRelease()',
3651
- },
3652
- }]
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 }] }] } });
3654
-
3655
3894
  const DEFAULT_BUTTON_CONFIG = {
3656
3895
  color: 'primary',
3657
3896
  variant: 'filled',
@@ -3852,7 +4091,7 @@ class Button extends ButtonBase {
3852
4091
  event.preventDefault();
3853
4092
  }
3854
4093
  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"] }] });
4094
+ 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
4095
  }
3857
4096
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, decorators: [{
3858
4097
  type: Component,
@@ -3922,18 +4161,18 @@ class ToggleGroup extends SelectionGroup {
3922
4161
  }, /* @ts-ignore */
3923
4162
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
3924
4163
  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"] }] });
4164
+ 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
4165
  }
3927
4166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, decorators: [{
3928
4167
  type: Component,
3929
- args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
4168
+ args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet, RippleDirective], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
3930
4169
  role: 'group',
3931
4170
  '[class]': 'classes()',
3932
4171
  '[attr.aria-label]': 'ariaLabel() ?? null',
3933
4172
  '[attr.aria-labelledby]': 'labelledBy()',
3934
4173
  '[attr.aria-describedby]': 'describedBy()',
3935
4174
  '[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" }]
4175
+ }, 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
4176
  }], 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
4177
 
3939
4178
  /** Days in a calendar week. */
@@ -4043,11 +4282,11 @@ class CalendarEventItem {
4043
4282
  this.activate.emit(this.event());
4044
4283
  }
4045
4284
  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"] }] });
4285
+ 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
4286
  }
4048
4287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarEventItem, decorators: [{
4049
4288
  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" }]
4289
+ 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
4290
  }], 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
4291
 
4053
4292
  const DEFAULT_CALENDAR_CONFIG = {
@@ -4142,15 +4381,15 @@ class CalendarAgendaView {
4142
4381
  }, /* @ts-ignore */
4143
4382
  ...(ngDevMode ? [{ debugName: "days" }] : /* istanbul ignore next */ []));
4144
4383
  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"] }] });
4384
+ 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
4385
  }
4147
4386
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarAgendaView, decorators: [{
4148
4387
  type: Component,
4149
- args: [{ selector: 'tls-calendar-agenda-view', imports: [CalendarEventItem], host: {
4388
+ args: [{ selector: 'tls-calendar-agenda-view', imports: [CalendarEventItem, RippleDirective], host: {
4150
4389
  class: 'tls-calendar-agenda-view',
4151
4390
  role: 'list',
4152
4391
  '[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" }]
4392
+ }, 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
4393
  }], 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
4394
 
4156
4395
  /**
@@ -4475,17 +4714,17 @@ class CalendarMonthView {
4475
4714
  return classes;
4476
4715
  }
4477
4716
  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"] }] });
4717
+ 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
4718
  }
4480
4719
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarMonthView, decorators: [{
4481
4720
  type: Component,
4482
- args: [{ selector: 'tls-calendar-month-view', imports: [Grid, GridRow, GridCell, CalendarEventItem, NgTemplateOutlet], host: {
4721
+ args: [{ selector: 'tls-calendar-month-view', imports: [Grid, GridRow, GridCell, CalendarEventItem, NgTemplateOutlet, RippleDirective], host: {
4483
4722
  class: 'tls-calendar-month-view',
4484
4723
  '[class.tls-calendar-month-view--square]': 'squareCells()',
4485
4724
  '[class.tls-calendar-month-view--peek]': 'peekWeeks() > 0',
4486
4725
  '[style.--tls-calendar-peek-weeks]': 'peekWeeks()',
4487
4726
  '[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" }]
4727
+ }, 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
4728
  }], 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
4729
 
4491
4730
  const eventEnd = (event) => (event.end ?? event.start).getTime();
@@ -4663,17 +4902,17 @@ class CalendarTimeGrid {
4663
4902
  return new Date(Math.min(Math.max(date.getTime(), min.getTime()), max.getTime()));
4664
4903
  }
4665
4904
  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"] }] });
4905
+ 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
4906
  }
4668
4907
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CalendarTimeGrid, decorators: [{
4669
4908
  type: Component,
4670
- args: [{ selector: 'tls-calendar-time-grid', imports: [CalendarEventItem], host: {
4909
+ args: [{ selector: 'tls-calendar-time-grid', imports: [CalendarEventItem, RippleDirective], host: {
4671
4910
  class: 'tls-calendar-time-grid',
4672
4911
  role: 'group',
4673
4912
  '[attr.aria-label]': 'label() ?? null',
4674
4913
  '[style.--tls-calendar-hour-height.px]': 'hourHeight',
4675
4914
  '[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" }]
4915
+ }, 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
4916
  }], 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
4917
 
4679
4918
  class Calendar {
@@ -7596,15 +7835,15 @@ class FabMenu {
7596
7835
  this._open.set(false);
7597
7836
  }
7598
7837
  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"] }] });
7838
+ 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
7839
  }
7601
7840
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FabMenu, decorators: [{
7602
7841
  type: Component,
7603
- args: [{ selector: 'tls-fab-menu', imports: [NgTemplateOutlet, Menu$1, MenuItem, Button, Icon], host: {
7842
+ args: [{ selector: 'tls-fab-menu', imports: [NgTemplateOutlet, Menu$1, MenuItem, Button, Icon, RippleDirective], host: {
7604
7843
  class: 'tls-fab-menu',
7605
7844
  '[class.tls-fab-menu--open]': 'isOpen()',
7606
7845
  '(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" }]
7846
+ }, 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
7847
  }], ctorParameters: () => [], propDecorators: { _itemsList: [{ type: i0.ViewChild, args: ['itemsList', { isSignal: true }] }], _trigger: [{ type: i0.ViewChild, args: ['trigger', { ...{
7609
7848
  read: (ElementRef),
7610
7849
  }, 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 +7973,7 @@ class FormControlGroup {
7734
7973
  return nearest;
7735
7974
  }
7736
7975
  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 });
7976
+ 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
7977
  }
7739
7978
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormControlGroup, decorators: [{
7740
7979
  type: Component,
@@ -7742,6 +7981,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
7742
7981
  selector: 'tls-form-control-group',
7743
7982
  imports: [],
7744
7983
  template: '<ng-content></ng-content>',
7984
+ // The group draws the border around every control and addon it holds, so it is the
7985
+ // frame each of those controls aligns its panel to.
7986
+ providers: [{ provide: FORM_CONTROL_FRAME, useFactory: () => inject(ElementRef) }],
7745
7987
  host: {
7746
7988
  '[class]': 'hostClasses()',
7747
7989
  },
@@ -8109,6 +8351,7 @@ class Autocomplete extends AbstractSelect {
8109
8351
  uniqueId = `tls-autocomplete-${Autocomplete._nextUniqueId++}`;
8110
8352
  hostClassBase = 'tls-autocomplete';
8111
8353
  panelClass = 'tls-autocomplete-panel';
8354
+ panelMatchesFieldWidth = true;
8112
8355
  panelCssVariablePrefix = '--tls-autocomplete-panel';
8113
8356
  value = model(null, /* @ts-ignore */
8114
8357
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -8318,13 +8561,13 @@ class Autocomplete extends AbstractSelect {
8318
8561
  this.queryChange.emit('');
8319
8562
  }
8320
8563
  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"] }] });
8564
+ 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
8565
  }
8323
8566
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Autocomplete, decorators: [{
8324
8567
  type: Component,
8325
- args: [{ selector: 'tls-autocomplete', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
8568
+ args: [{ selector: 'tls-autocomplete', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
8326
8569
  '[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" }]
8570
+ }, 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
8571
  }], 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
8572
 
8330
8573
  const DEFAULT_CHECKBOX_CONFIG = {};
@@ -8428,18 +8671,37 @@ class Popover {
8428
8671
  */
8429
8672
  panelClass = input(undefined, /* @ts-ignore */
8430
8673
  ...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
8674
+ /**
8675
+ * Whether a backdrop covers the page while the panel is open, so the press that dismisses
8676
+ * the panel goes no further. Without one, a press elsewhere closes the panel and lands where
8677
+ * it was aimed, focusing another field on the first press, while presses on the element the
8678
+ * panel opened from are left to that element.
8679
+ */
8680
+ backdrop = input(true, { ...(ngDevMode ? { debugName: "backdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8681
+ /**
8682
+ * Leave focus where it is when the panel is pressed, for a panel that is only pointed at
8683
+ * while its owner keeps focus: picking from it then never blurs the field it belongs to.
8684
+ * Leave it off for a panel holding a text field, which a press has to be able to focus.
8685
+ */
8686
+ keepFocusOnPress = input(false, { ...(ngDevMode ? { debugName: "keepFocusOnPress" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8687
+ /** Emits after the panel closes, with what closed it. */
8688
+ closed = output();
8431
8689
  _positions = computed(() => buildOverlayPositions(this.position(), this.offset()), /* @ts-ignore */
8432
8690
  ...(ngDevMode ? [{ debugName: "_positions" }] : /* istanbul ignore next */ []));
8433
8691
  // Public methods
8434
8692
  open(trigger) {
8435
- const origin = trigger instanceof MouseEvent ? trigger.currentTarget : trigger;
8693
+ const originElement = trigger instanceof MouseEvent ? trigger.currentTarget : trigger;
8436
8694
  this._overlay.open({
8437
8695
  content: this._templateRef(),
8438
- origin,
8696
+ origin: originElement,
8439
8697
  positions: this._positions(),
8440
8698
  viewportMargin: this.viewportMargin(),
8441
8699
  shrinkToFit: this.shrinkToFit(),
8442
8700
  panelClass: this.panelClass(),
8701
+ hasBackdrop: this.backdrop(),
8702
+ insideElement: originElement,
8703
+ keepFocusOnPanePress: this.keepFocusOnPress(),
8704
+ onClose: cause => this.closed.emit(cause),
8443
8705
  });
8444
8706
  }
8445
8707
  close() {
@@ -8454,7 +8716,7 @@ class Popover {
8454
8716
  }
8455
8717
  }
8456
8718
  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: `
8719
+ 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
8720
  <ng-template #content>
8459
8721
  <div
8460
8722
  class="tls-popover"
@@ -8496,7 +8758,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
8496
8758
  </ng-template>
8497
8759
  `,
8498
8760
  }]
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 }] }] } });
8761
+ }], 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
8762
 
8501
8763
  /** Hue channel scale: degrees on the color wheel. */
8502
8764
  const HUE_MAX = 360;
@@ -9356,7 +9618,6 @@ class ColorInput extends ValueFormControl {
9356
9618
  // View children
9357
9619
  _popoverComponent = viewChild('popoverRef', /* @ts-ignore */
9358
9620
  ...(ngDevMode ? [{ debugName: "_popoverComponent" }] : /* istanbul ignore next */ []));
9359
- _trigger = viewChild.required('triggerRef');
9360
9621
  // State
9361
9622
  labels = this._config.labels;
9362
9623
  // Computed
@@ -9387,9 +9648,19 @@ class ColorInput extends ValueFormControl {
9387
9648
  const popover = this._popoverComponent();
9388
9649
  if (!popover)
9389
9650
  return;
9390
- popover.open(this._trigger().nativeElement);
9651
+ popover.open(this.frameElement());
9391
9652
  }
9392
9653
  // Protected methods
9654
+ /**
9655
+ * Opens the picker, or closes it. The panel is anchored to the field's frame rather than
9656
+ * the swatch inside it, so it starts at the field's outer edge.
9657
+ */
9658
+ onTriggerClick() {
9659
+ const popover = this._popoverComponent();
9660
+ if (!popover)
9661
+ return;
9662
+ popover.toggle(this.frameElement());
9663
+ }
9393
9664
  onPickerValueChange(next) {
9394
9665
  this.value.set(next);
9395
9666
  }
@@ -9424,7 +9695,7 @@ class ColorInput extends ValueFormControl {
9424
9695
  const popover = this._popoverComponent();
9425
9696
  if (!popover)
9426
9697
  return;
9427
- popover.open(this._trigger().nativeElement);
9698
+ popover.open(this.frameElement());
9428
9699
  }
9429
9700
  _commitField(field) {
9430
9701
  const parsed = parseColor(field.value);
@@ -9440,12 +9711,12 @@ class ColorInput extends ValueFormControl {
9440
9711
  field.value = this.displayValue();
9441
9712
  }
9442
9713
  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"] }] });
9714
+ 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
9715
  }
9445
9716
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ColorInput, decorators: [{
9446
9717
  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 }] }] } });
9718
+ 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"] }]
9719
+ }], 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
9720
 
9450
9721
  class DatePickerCalendar {
9451
9722
  // Injections
@@ -9508,11 +9779,11 @@ class DatePickerCalendar {
9508
9779
  this.viewDateChange.emit(addMonths(this.viewDate(), 1));
9509
9780
  }
9510
9781
  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"] }] });
9782
+ 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
9783
  }
9513
9784
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DatePickerCalendar, decorators: [{
9514
9785
  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" }]
9786
+ 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
9787
  }], 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
9788
 
9518
9789
  /** `date-fns` format token for the trigger label in `calendar` mode, e.g. "Jul 20, 2026". */
@@ -9583,11 +9854,11 @@ class MonthPicker {
9583
9854
  return isSameMonth(new Date(), setMonth(this.viewDate(), monthIndex));
9584
9855
  }
9585
9856
  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"] }] });
9857
+ 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
9858
  }
9588
9859
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MonthPicker, decorators: [{
9589
9860
  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" }]
9861
+ 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
9862
  }], 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
9863
 
9593
9864
  class TimePicker {
@@ -9653,11 +9924,11 @@ class TimePicker {
9653
9924
  return setHours(this._baseDate, hours);
9654
9925
  }
9655
9926
  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"] }] });
9927
+ 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
9928
  }
9658
9929
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TimePicker, decorators: [{
9659
9930
  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" }]
9931
+ 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
9932
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }] } });
9662
9933
 
9663
9934
  class YearPicker {
@@ -9702,11 +9973,11 @@ class YearPicker {
9702
9973
  return getYear(new Date()) === year;
9703
9974
  }
9704
9975
  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"] }] });
9976
+ 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
9977
  }
9707
9978
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: YearPicker, decorators: [{
9708
9979
  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" }]
9980
+ 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
9981
  }], 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
9982
 
9712
9983
  class DateTimePicker extends ValueFormControl {
@@ -9782,6 +10053,12 @@ class DateTimePicker extends ValueFormControl {
9782
10053
  return format(value, `${DATE_LABEL_FORMAT} ${this._timeFormat}`, this._dateOptions);
9783
10054
  }, /* @ts-ignore */
9784
10055
  ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
10056
+ /**
10057
+ * The icon at the trigger's end names what the panel holds, as the select's chevron says a
10058
+ * list will drop: a clock for a time alone, a calendar for anything with a date in it.
10059
+ */
10060
+ triggerIcon = computed(() => this.mode() === 'time-picker' ? 'clock' : 'calendar', /* @ts-ignore */
10061
+ ...(ngDevMode ? [{ debugName: "triggerIcon" }] : /* istanbul ignore next */ []));
9785
10062
  // Public methods
9786
10063
  /**
9787
10064
  * Focus lands on the trigger and the picker opens with it: a date is chosen in the
@@ -9793,21 +10070,24 @@ class DateTimePicker extends ValueFormControl {
9793
10070
  if (this.notInteractive())
9794
10071
  return;
9795
10072
  const popover = this.popoverComponent();
9796
- const trigger = this.focusTarget();
9797
- if (!popover || !trigger || popover.isOpen())
10073
+ if (!popover || popover.isOpen())
9798
10074
  return;
9799
10075
  this._resetView();
9800
- popover.open(trigger);
10076
+ popover.open(this.frameElement());
9801
10077
  }
9802
10078
  // Protected methods
9803
- /** Opens on the home date, or closes; browsing from an earlier visit never carries over. */
9804
- onTriggerClick(event) {
10079
+ /**
10080
+ * Opens on the home date, or closes; browsing from an earlier visit never carries over.
10081
+ * The calendar is anchored to the field's frame rather than the trigger inside it, so it
10082
+ * starts at the field's outer edge.
10083
+ */
10084
+ onTriggerClick() {
9805
10085
  const popover = this.popoverComponent();
9806
10086
  if (!popover)
9807
10087
  return;
9808
10088
  if (!popover.isOpen())
9809
10089
  this._resetView();
9810
- popover.toggle(event);
10090
+ popover.toggle(this.frameElement());
9811
10091
  }
9812
10092
  onViewDateChange(date) {
9813
10093
  this.viewDate.set(date);
@@ -9878,7 +10158,7 @@ class DateTimePicker extends ValueFormControl {
9878
10158
  return today;
9879
10159
  }
9880
10160
  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"] }] });
10161
+ 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
10162
  }
9883
10163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DateTimePicker, decorators: [{
9884
10164
  type: Component,
@@ -9889,8 +10169,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
9889
10169
  TimePicker,
9890
10170
  Popover,
9891
10171
  NgTemplateOutlet,
10172
+ Icon,
9892
10173
  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" }]
10174
+ ], 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
10175
  }], 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
10176
 
9896
10177
  const DEFAULT_CHIP_GROUP_CONFIG = {
@@ -10637,18 +10918,16 @@ class Password extends ValueFormControl {
10637
10918
  this.value.set(target.value);
10638
10919
  }
10639
10920
  toggle() {
10640
- if (this.notInteractive())
10641
- return;
10642
10921
  this.visible.update(prev => !prev);
10643
10922
  }
10644
10923
  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"] }] });
10924
+ 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
10925
  }
10647
10926
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Password, decorators: [{
10648
10927
  type: Component,
10649
10928
  args: [{ selector: 'tls-password', imports: [FormControlGroup, NgTemplateOutlet, Loader], host: {
10650
10929
  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" }]
10930
+ }, 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
10931
  }], 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
10932
 
10654
10933
  /**
@@ -11207,13 +11486,13 @@ class MultiSelect extends AbstractSelect {
11207
11486
  this.toggleOption(option);
11208
11487
  }
11209
11488
  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"] }] });
11489
+ 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
11490
  }
11212
11491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MultiSelect, decorators: [{
11213
11492
  type: Component,
11214
- args: [{ selector: 'tls-multi-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
11493
+ args: [{ selector: 'tls-multi-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
11215
11494
  '[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" }]
11495
+ }, 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
11496
  }], 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
11497
 
11219
11498
  const DEFAULT_SELECT_CONFIG = {
@@ -11292,13 +11571,13 @@ class Select extends AbstractSelect {
11292
11571
  this.select(option);
11293
11572
  }
11294
11573
  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"] }] });
11574
+ 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
11575
  }
11297
11576
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Select, decorators: [{
11298
11577
  type: Component,
11299
- args: [{ selector: 'tls-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll], host: {
11578
+ args: [{ selector: 'tls-select', imports: [Loader, Icon, NgTemplateOutlet, VirtualScroll, RippleDirective], host: {
11300
11579
  '[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" }]
11580
+ }, 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
11581
  }], 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
11582
 
11304
11583
  const DEFAULT_SLIDER_CONFIG = {
@@ -13400,11 +13679,11 @@ class Menu {
13400
13679
  pointerTypes: DRAG_DISMISS_POINTER_TYPES,
13401
13680
  },
13402
13681
  },
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"] }] });
13682
+ ], 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
13683
  }
13405
13684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Menu, decorators: [{
13406
13685
  type: Component,
13407
- args: [{ selector: 'tls-menu', imports: [NgTemplateOutlet, Icon, Kbd, RouterLink, Menu$1, MenuItem, PanDirective], providers: [
13686
+ args: [{ selector: 'tls-menu', imports: [NgTemplateOutlet, Icon, Kbd, RouterLink, Menu$1, MenuItem, PanDirective, RippleDirective], providers: [
13408
13687
  // The sheet's dismissal drag runs down the vertical axis only, from the
13409
13688
  // pointers that drag panels shut anywhere else; whether the gesture is
13410
13689
  // live at all is driven per open through the pane's `tlsPan` binding, so
@@ -13423,7 +13702,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
13423
13702
  // an overlay — so the host leaves the flow rather than claiming a slot (and
13424
13703
  // a flex/grid gap) as an invisible empty box.
13425
13704
  '[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" }]
13705
+ }, 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
13706
  }], 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
13707
 
13429
13708
  class MenuTriggerDirective {
@@ -14030,16 +14309,16 @@ class Pagination {
14030
14309
  ];
14031
14310
  }
14032
14311
  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"] }] });
14312
+ 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
14313
  }
14035
14314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Pagination, decorators: [{
14036
14315
  type: Component,
14037
- args: [{ selector: 'tls-pagination', imports: [Icon], host: {
14316
+ args: [{ selector: 'tls-pagination', imports: [Icon, RippleDirective], host: {
14038
14317
  role: 'navigation',
14039
14318
  '[class]': 'classes()',
14040
14319
  '[attr.aria-label]': 'ariaLabelledby() ? null : ariaLabel()',
14041
14320
  '[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" }]
14321
+ }, 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
14322
  }], 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
14323
 
14045
14324
  const DEFAULT_PAGINATION_QUERY_SYNC_CONFIG = {
@@ -15451,13 +15730,13 @@ class Stepper {
15451
15730
  this.stepSelect.emit({ index, value });
15452
15731
  }
15453
15732
  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"] }] });
15733
+ 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
15734
  }
15456
15735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stepper, decorators: [{
15457
15736
  type: Component,
15458
- args: [{ selector: 'tls-stepper', imports: [NgTemplateOutlet, TabList, Tab$1], hostDirectives: [Tabs$1], host: {
15737
+ args: [{ selector: 'tls-stepper', imports: [NgTemplateOutlet, TabList, Tab$1, RippleDirective], hostDirectives: [Tabs$1], host: {
15459
15738
  '[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" }]
15739
+ }, 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
15740
  }], 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
15741
 
15463
15742
  const DEFAULT_SWIPE_ACTIONS_CONFIG = {
@@ -15787,11 +16066,12 @@ class TabLinkDirective {
15787
16066
  event.preventDefault();
15788
16067
  }
15789
16068
  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 });
16069
+ 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
16070
  }
15792
16071
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TabLinkDirective, decorators: [{
15793
16072
  type: Directive,
15794
16073
  args: [{
16074
+ hostDirectives: [RippleDirective],
15795
16075
  selector: 'a[tlsTabLink]',
15796
16076
  host: {
15797
16077
  class: 'tls-tab-header__item tls-tab-header__item-control',
@@ -16128,13 +16408,13 @@ class Tabs {
16128
16408
  control.nativeElement.focus();
16129
16409
  }
16130
16410
  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"] }] });
16411
+ 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
16412
  }
16133
16413
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, decorators: [{
16134
16414
  type: Component,
16135
- args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
16415
+ args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet, RippleDirective], hostDirectives: [Tabs$1], host: {
16136
16416
  '[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" }]
16417
+ }, 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
16418
  }], 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
16419
 
16140
16420
  const DEFAULT_TABS_QUERY_SYNC_CONFIG = {
@@ -16944,5 +17224,5 @@ const provideThalassicUIConfig = (config = {}) => {
16944
17224
  * Generated bundle index. Do not edit.
16945
17225
  */
16946
17226
 
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 };
17227
+ 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
17228
  //# sourceMappingURL=thalassic-ui.mjs.map