@ids-group-ltd/ids-design-system 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +175 -0
  2. package/agent/INDEX.md +1 -1
  3. package/agent/feedback/ds-alert.md +3 -2
  4. package/agent/feedback/ds-chat-message.md +3 -3
  5. package/agent/feedback/ds-chat-step.md +1 -1
  6. package/agent/feedback/ds-chat-steps.md +1 -1
  7. package/agent/feedback/ds-chat-thread.md +2 -2
  8. package/agent/feedback/ds-tree.md +1 -1
  9. package/agent/forms/ds-chat-input.md +1 -1
  10. package/agent/foundations/tokens.md +2 -2
  11. package/components.md +14 -13
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +5 -3
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +141 -71
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +16 -12
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +116 -10
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +4 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +4 -19
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +40 -4
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +31 -4
  61. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +20 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -2
  65. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  68. package/migrations/0.11.2.json +1 -0
  69. package/migrations/1.0.1.json +4 -0
  70. package/migrations/1.0.2.json +9 -1
  71. package/migrations/1.1.0.json +25 -0
  72. package/migrations/1.1.1.json +190 -0
  73. package/migrations/README.md +6 -6
  74. package/package.json +1 -1
  75. package/schematics/check-overrides/surface.json +20 -3
  76. package/styles/_dropdown-overlay.scss +5 -2
  77. package/styles/_field-box.scss +2 -2
  78. package/themes/README.md +1 -1
  79. package/themes/_semantic.scss +5 -0
  80. package/themes/dark/_theme.scss +11 -3
  81. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +3 -1
  82. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +42 -5
  83. package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +15 -1
  84. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
  85. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +39 -3
  86. package/types/ids-group-ltd-ids-design-system-components.d.ts +8 -4
  87. package/types/ids-group-ltd-ids-design-system-core.d.ts +22 -0
  88. package/types/ids-group-ltd-ids-design-system.d.ts +2 -2
@@ -1,17 +1,17 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ElementRef, NgZone, viewChild, input, model, numberAttribute, signal, computed } from '@angular/core';
3
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ElementRef, NgZone, viewChild, input, model, numberAttribute, booleanAttribute, signal, computed } from '@angular/core';
4
4
  import { nextControlId } from '@ids-group-ltd/ids-design-system/components';
5
5
  import { DS_INTL, DS_INTL_DEFAULTS, retainStyles } from '@ids-group-ltd/ids-design-system/core';
6
6
 
7
7
  /** @internal Never rendered: creating it once registers the page-wide drag rules globally. */
8
8
  class SplitterDraggingStylesComponent {
9
9
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterDraggingStylesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: SplitterDraggingStylesComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: SplitterDraggingStylesComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}html[data-ds-splitter-dragging] :is(iframe,webview,embed,object){pointer-events:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterDraggingStylesComponent, decorators: [{
13
13
  type: Component,
14
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}\n"] }]
14
+ args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}html[data-ds-splitter-dragging] :is(iframe,webview,embed,object){pointer-events:none!important}\n"] }]
15
15
  }] });
16
16
 
17
17
  const STEP = 16;
@@ -20,6 +20,10 @@ const LARGE_STEP = 64;
20
20
  // than a third of the pane it squashes, whose content would otherwise read as distorted.
21
21
  const OVERDRAG_CAP = 100;
22
22
  const OVERDRAG_SQUASH = 1 / 3;
23
+ // Fog strength is speed x distance, each 0.1..1: full from 1.2 px/ms and from 180px off the grab point.
24
+ const FOG_FULL_SPEED = 1.2;
25
+ const FOG_FULL_DISTANCE = 180;
26
+ const FOG_IDLE = 180;
23
27
  /**
24
28
  * Two panes with a handle between them that resizes one of them. Slots: `[start]` and `[end]`.
25
29
  * Drag the handle, or focus it and use the arrow keys (Shift or PageUp / PageDown for a large step,
@@ -32,6 +36,8 @@ class SplitterComponent {
32
36
  document = inject(DOCUMENT);
33
37
  zone = inject(NgZone);
34
38
  handle = viewChild.required('handle');
39
+ fogStart = viewChild('fogStart', ...(ngDevMode ? [{ debugName: "fogStart" }] : /* istanbul ignore next */ []));
40
+ fogEnd = viewChild('fogEnd', ...(ngDevMode ? [{ debugName: "fogEnd" }] : /* istanbul ignore next */ []));
35
41
  /** `'horizontal'`: panes side by side. `'vertical'`: panes stacked. */
36
42
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
37
43
  /** The pane `size` measures; the other pane takes the rest. */
@@ -51,6 +57,10 @@ class SplitterComponent {
51
57
  /** Dragged past `min` or `max`: `'elastic'` follows the pointer with growing resistance and springs
52
58
  * back on release, `'none'` stops at the limit. Off under `prefers-reduced-motion: reduce`. */
53
59
  overdrag = input('elastic', ...(ngDevMode ? [{ debugName: "overdrag" }] : /* istanbul ignore next */ []));
60
+ /** While dragging, shades the pane the handle moves towards, stronger the faster and farther the drag;
61
+ * the shade rides the rubber band past a limit and fades when the hand stops or lets go. Colour:
62
+ * `--ds-splitter-fog-color`. Off under `prefers-reduced-motion: reduce`. */
63
+ dragFog = input(false, { ...(ngDevMode ? { debugName: "dragFog" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
54
64
  startId = nextControlId('ds-splitter-pane');
55
65
  endId = nextControlId('ds-splitter-pane');
56
66
  dragging = signal(false, ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
@@ -66,6 +76,7 @@ class SplitterComponent {
66
76
  pendingMove = null;
67
77
  frame = 0;
68
78
  springTimer = 0;
79
+ fogTimer = 0;
69
80
  constructor() {
70
81
  retainStyles(SplitterDraggingStylesComponent);
71
82
  }
@@ -97,18 +108,30 @@ class SplitterComponent {
97
108
  // A grab during the spring-back stops it where the layout puts the handle, before anything is measured.
98
109
  this.stopSpring();
99
110
  // The grab point's distance from the measured pane's edge stays fixed, so the handle never jumps.
111
+ const reduced = !!this.document.defaultView?.matchMedia('(prefers-reduced-motion: reduce)').matches;
112
+ const at = this.alongAxis(event);
100
113
  this.drag = {
101
114
  pointerId: event.pointerId,
102
115
  grab: this.fromPaneEdge(event, handle.getBoundingClientRect()),
103
116
  size: this.current(),
104
117
  box: this.panesBox(),
105
- elastic: this.overdrag() === 'elastic' &&
106
- !this.document.defaultView?.matchMedia('(prefers-reduced-motion: reduce)').matches,
118
+ elastic: this.overdrag() === 'elastic' && !reduced,
107
119
  pull: 0,
120
+ fog: this.dragFog() && !reduced,
121
+ start: at,
122
+ last: at,
123
+ lastTime: event.timeStamp,
124
+ speed: 0,
125
+ velocity: 0,
126
+ side: 0,
127
+ reversalSince: null,
108
128
  };
109
129
  this.dragging.set(true);
110
130
  // Outside Angular: a move writes the DOM itself, so it must not start change detection per frame.
111
- this.zone.runOutsideAngular(() => handle.addEventListener('pointermove', this.onPointerMove));
131
+ this.zone.runOutsideAngular(() => {
132
+ handle.addEventListener('pointermove', this.onPointerMove);
133
+ this.document.defaultView?.addEventListener('blur', this.onWindowBlur);
134
+ });
112
135
  const root = this.document.documentElement;
113
136
  root.setAttribute('data-ds-splitter-dragging', '');
114
137
  root.style.setProperty('--_ds-splitter-cursor', this.cursor());
@@ -137,6 +160,9 @@ class SplitterComponent {
137
160
  // Against the unrounded limit: within min and max the excess is exactly 0, not the rounding.
138
161
  this.stretch(raw - this.clamp(raw, room));
139
162
  }
163
+ if (this.drag.fog) {
164
+ this.shade(event);
165
+ }
140
166
  if (size === this.drag.size) {
141
167
  return;
142
168
  }
@@ -178,6 +204,71 @@ class SplitterComponent {
178
204
  handle.style.setProperty('--_splitter-pull-ratio', String(Math.abs(pull) / cap));
179
205
  measured.style.transform = `${scale}(${(extent(measured) + pull) / extent(measured)})`;
180
206
  other.style.transform = `${scale}(${Math.max(0, extent(other) - pull) / extent(other)})`;
207
+ this.syncFogTransforms();
208
+ }
209
+ // The side is the pointer's direction, never where it stands: past a limit the pointer stays beyond
210
+ // the line while the hand already pulls back, and the fog has to turn with the hand.
211
+ shade(event) {
212
+ const drag = this.drag;
213
+ const at = this.alongAxis(event);
214
+ const step = at - drag.last;
215
+ const elapsed = Math.max(1, event.timeStamp - drag.lastTime);
216
+ drag.speed = drag.speed * 0.6 + (Math.abs(step) / elapsed) * 0.4;
217
+ drag.velocity +=
218
+ (1 - Math.exp(-elapsed / 100)) * (step / elapsed - drag.velocity);
219
+ drag.side = this.sideOf(drag, at, event.timeStamp);
220
+ drag.last = at;
221
+ drag.lastTime = event.timeStamp;
222
+ const start = this.fogStart()?.nativeElement;
223
+ const end = this.fogEnd()?.nativeElement;
224
+ if (step === 0 || drag.side === 0 || !start || !end) {
225
+ return;
226
+ }
227
+ const factor = (value) => Math.max(0.1, Math.min(1, value));
228
+ const strength = factor(drag.speed / FOG_FULL_SPEED) *
229
+ factor(Math.abs(at - drag.start) / FOG_FULL_DISTANCE);
230
+ const [toward, away] = drag.side > 0 ? [end, start] : [start, end];
231
+ toward.style.opacity = String(strength);
232
+ away.style.removeProperty('opacity');
233
+ clearTimeout(this.fogTimer);
234
+ this.fogTimer = window.setTimeout(() => this.clearFog(), FOG_IDLE);
235
+ }
236
+ // Under 0.05 px/ms the side holds, and a reversal must last 100ms before it flips, so a slow or
237
+ // shaky hand never flickers the fog between the panes.
238
+ sideOf(drag, at, now) {
239
+ if (drag.side === 0) {
240
+ return Math.abs(at - drag.start) >= 2 ? Math.sign(at - drag.start) : 0;
241
+ }
242
+ const wanted = Math.abs(drag.velocity) < 0.05 ? 0 : Math.sign(drag.velocity);
243
+ if (wanted === 0 || wanted === drag.side) {
244
+ drag.reversalSince = null;
245
+ return drag.side;
246
+ }
247
+ drag.reversalSince ??= now;
248
+ if (now - drag.reversalSince < 100) {
249
+ return drag.side;
250
+ }
251
+ drag.reversalSince = null;
252
+ return wanted;
253
+ }
254
+ clearFog() {
255
+ clearTimeout(this.fogTimer);
256
+ for (const fog of [this.fogStart(), this.fogEnd()]) {
257
+ fog?.nativeElement.style.removeProperty('opacity');
258
+ }
259
+ }
260
+ // Each fog layer takes its pane's rubber-band transform, so the shade stays on the pane's edge.
261
+ syncFogTransforms() {
262
+ const handle = this.handle().nativeElement;
263
+ const pairs = [
264
+ [this.fogStart()?.nativeElement, handle.previousElementSibling],
265
+ [this.fogEnd()?.nativeElement, handle.nextElementSibling],
266
+ ];
267
+ for (const [fog, pane] of pairs) {
268
+ if (fog) {
269
+ fog.style.transform = pane.style.transform;
270
+ }
271
+ }
181
272
  }
182
273
  // The handle, the pane `size` measures, then the other pane.
183
274
  movingParts() {
@@ -193,6 +284,7 @@ class SplitterComponent {
193
284
  element.style.transform = '';
194
285
  }
195
286
  this.handle().nativeElement.style.removeProperty('--_splitter-pull-ratio');
287
+ this.syncFogTransforms();
196
288
  }
197
289
  stopSpring() {
198
290
  clearTimeout(this.springTimer);
@@ -213,6 +305,14 @@ class SplitterComponent {
213
305
  if (event.pointerId !== this.drag?.pointerId) {
214
306
  return;
215
307
  }
308
+ this.finishDrag();
309
+ }
310
+ // A release over a document of its own (an iframe, an Electron webview) or outside the window can
311
+ // reach no listener here: losing capture or focus is then the only sign the drag is over.
312
+ finishDrag = () => {
313
+ if (!this.drag) {
314
+ return;
315
+ }
216
316
  if (this.frame) {
217
317
  cancelAnimationFrame(this.frame);
218
318
  this.applyMove();
@@ -225,7 +325,8 @@ class SplitterComponent {
225
325
  if (size !== this.current()) {
226
326
  this.commit(size);
227
327
  }
228
- }
328
+ };
329
+ onWindowBlur = () => this.zone.run(this.finishDrag);
229
330
  onKeydown(event) {
230
331
  const horizontal = this.orientation() === 'horizontal';
231
332
  // An arrow moves the handle; the end pane grows as the handle moves towards the start.
@@ -276,6 +377,7 @@ class SplitterComponent {
276
377
  }
277
378
  const handle = this.handle().nativeElement;
278
379
  handle.removeEventListener('pointermove', this.onPointerMove);
380
+ this.document.defaultView?.removeEventListener('blur', this.onWindowBlur);
279
381
  cancelAnimationFrame(this.frame);
280
382
  this.frame = 0;
281
383
  this.pendingMove = null;
@@ -286,6 +388,7 @@ class SplitterComponent {
286
388
  // The pointer can already be gone.
287
389
  }
288
390
  this.drag = null;
391
+ this.clearFog();
289
392
  this.dragging.set(false);
290
393
  const root = this.document.documentElement;
291
394
  root.removeAttribute('data-ds-splitter-dragging');
@@ -295,6 +398,9 @@ class SplitterComponent {
295
398
  const key = this.persistKey().trim();
296
399
  return key ? `ds-splitter:${key}` : null;
297
400
  }
401
+ alongAxis(event) {
402
+ return this.orientation() === 'horizontal' ? event.clientX : event.clientY;
403
+ }
298
404
  // ponytail: left-to-right only; under `dir="rtl"` a horizontal start pane is measured from the left.
299
405
  fromPaneEdge(event, box) {
300
406
  const horizontal = this.orientation() === 'horizontal';
@@ -339,7 +445,7 @@ class SplitterComponent {
339
445
  return towardsEnd ? 's-resize' : 'n-resize';
340
446
  }
341
447
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
342
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: SplitterComponent, isStandalone: true, selector: "ds-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, pane: { classPropertyName: "pane", publicName: "pane", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, defaultSize: { classPropertyName: "defaultSize", publicName: "defaultSize", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, persistKey: { classPropertyName: "persistKey", publicName: "persistKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, overdrag: { classPropertyName: "overdrag", publicName: "overdrag", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-pane": "pane()", "style.--_splitter-size": "current() + \"px\"", "class.springing": "springing()" } }, viewQueries: [{ propertyName: "handle", first: true, predicate: ["handle"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] });
448
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SplitterComponent, isStandalone: true, selector: "ds-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, pane: { classPropertyName: "pane", publicName: "pane", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, defaultSize: { classPropertyName: "defaultSize", publicName: "defaultSize", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, persistKey: { classPropertyName: "persistKey", publicName: "persistKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, overdrag: { classPropertyName: "overdrag", publicName: "overdrag", isSignal: true, isRequired: false, transformFunction: null }, dragFog: { classPropertyName: "dragFog", publicName: "dragFog", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-pane": "pane()", "style.--_splitter-size": "current() + \"px\"", "class.springing": "springing()" } }, viewQueries: [{ propertyName: "handle", first: true, predicate: ["handle"], descendants: true, isSignal: true }, { propertyName: "fogStart", first: true, predicate: ["fogStart"], descendants: true, isSignal: true }, { propertyName: "fogEnd", first: true, predicate: ["fogEnd"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-fog-color: var( --ds-splitter-fog-color, color-mix(in srgb, var(--text-primary) 22%, transparent) );--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{grid-area:1/1}:host([data-orientation=horizontal]) .handle{grid-area:1/2}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{grid-area:1/3}:host([data-orientation=horizontal]) .fog-start{background-image:linear-gradient(to left,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=horizontal]) .fog-end{background-image:linear-gradient(to right,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{grid-area:1/1}:host([data-orientation=vertical]) .handle{grid-area:2/1}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{grid-area:3/1}:host([data-orientation=vertical]) .fog-start{background-image:linear-gradient(to top,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]) .fog-end{background-image:linear-gradient(to bottom,var(--_splitter-fog-color),transparent 60%)}.fog{pointer-events:none;opacity:0;transition:opacity var(--duration-slow) var(--ease-standard)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}:host(.springing) .fog{transition:opacity var(--duration-slow) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] });
343
449
  }
344
450
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterComponent, decorators: [{
345
451
  type: Component,
@@ -348,8 +454,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
348
454
  '[attr.data-pane]': 'pane()',
349
455
  '[style.--_splitter-size]': 'current() + "px"',
350
456
  '[class.springing]': 'springing()',
351
- }, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] }]
352
- }], ctorParameters: () => [], propDecorators: { handle: [{ type: i0.ViewChild, args: ['handle', { isSignal: true }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], pane: [{ type: i0.Input, args: [{ isSignal: true, alias: "pane", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], defaultSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSize", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], persistKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistKey", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], overdrag: [{ type: i0.Input, args: [{ isSignal: true, alias: "overdrag", required: false }] }] } });
457
+ }, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-fog-color: var( --ds-splitter-fog-color, color-mix(in srgb, var(--text-primary) 22%, transparent) );--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{grid-area:1/1}:host([data-orientation=horizontal]) .handle{grid-area:1/2}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{grid-area:1/3}:host([data-orientation=horizontal]) .fog-start{background-image:linear-gradient(to left,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=horizontal]) .fog-end{background-image:linear-gradient(to right,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{grid-area:1/1}:host([data-orientation=vertical]) .handle{grid-area:2/1}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{grid-area:3/1}:host([data-orientation=vertical]) .fog-start{background-image:linear-gradient(to top,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]) .fog-end{background-image:linear-gradient(to bottom,var(--_splitter-fog-color),transparent 60%)}.fog{pointer-events:none;opacity:0;transition:opacity var(--duration-slow) var(--ease-standard)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}:host(.springing) .fog{transition:opacity var(--duration-slow) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] }]
458
+ }], ctorParameters: () => [], propDecorators: { handle: [{ type: i0.ViewChild, args: ['handle', { isSignal: true }] }], fogStart: [{ type: i0.ViewChild, args: ['fogStart', { isSignal: true }] }], fogEnd: [{ type: i0.ViewChild, args: ['fogEnd', { isSignal: true }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], pane: [{ type: i0.Input, args: [{ isSignal: true, alias: "pane", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], defaultSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSize", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], persistKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistKey", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], overdrag: [{ type: i0.Input, args: [{ isSignal: true, alias: "overdrag", required: false }] }], dragFog: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragFog", required: false }] }] } });
353
459
 
354
460
  /**
355
461
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-splitter.mjs","sources":["../../../src/lib/components/splitter/splitter-dragging-styles.component.ts","../../../src/lib/components/splitter/splitter.component.ts","../../../src/lib/components/splitter/splitter.component.html","../../../src/lib/components/splitter/ids-group-ltd-ids-design-system-components-splitter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n} from '@angular/core';\n\n/** @internal Never rendered: creating it once registers the page-wide drag rules globally. */\n@Component({\n standalone: true,\n template: '',\n styleUrl: './splitter-dragging.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SplitterDraggingStylesComponent {}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n ElementRef,\n OnDestroy,\n NgZone,\n OnInit,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n viewChild,\n} from '@angular/core';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n retainStyles,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { SplitterDraggingStylesComponent } from './splitter-dragging-styles.component';\nimport type {\n SplitterOrientation,\n SplitterOverdrag,\n SplitterPane,\n} from './splitter.types';\n\nconst STEP = 16;\nconst LARGE_STEP = 64;\n// The farthest the rubber band pulls past a limit, approached and never reached: 100px, and never more\n// than a third of the pane it squashes, whose content would otherwise read as distorted.\nconst OVERDRAG_CAP = 100;\nconst OVERDRAG_SQUASH = 1 / 3;\n\n/**\n * Two panes with a handle between them that resizes one of them. Slots: `[start]` and `[end]`.\n * Drag the handle, or focus it and use the arrow keys (Shift or PageUp / PageDown for a large step,\n * Home / End for the limits); a double click returns to `defaultSize`. Give the splitter a size: it\n * fills the box its parent gives it and never grows to its content.\n */\n@Component({\n selector: 'ds-splitter',\n standalone: true,\n templateUrl: './splitter.component.html',\n styleUrl: './splitter.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-pane]': 'pane()',\n '[style.--_splitter-size]': 'current() + \"px\"',\n '[class.springing]': 'springing()',\n },\n})\nexport class SplitterComponent implements OnInit, OnDestroy {\n private readonly intl = inject(DS_INTL);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly handle =\n viewChild.required<ElementRef<HTMLElement>>('handle');\n\n /** `'horizontal'`: panes side by side. `'vertical'`: panes stacked. */\n readonly orientation = input<SplitterOrientation>('horizontal');\n /** The pane `size` measures; the other pane takes the rest. */\n readonly pane = input<SplitterPane>('start');\n /** Size of `pane` in px, two-way bound; `null` shows `defaultSize`. A drag writes it once, on release. */\n readonly size = model<number | null>(null);\n /** Size in px when `size` is `null`, and what a double click on the handle returns to. */\n readonly defaultSize = input(320, { transform: numberAttribute });\n /** Smallest size in px, inclusive. */\n readonly min = input(160, { transform: numberAttribute });\n /** Largest size in px, inclusive. The pane never takes more than the splitter less the handle. */\n readonly max = input(640, { transform: numberAttribute });\n /** Saves the size in `localStorage` under `ds-splitter:<key>` and restores it on init, over `size`. */\n readonly persistKey = input<string>('');\n /** Accessible name of the handle; unset falls back to `DS_INTL.splitter.label`. Name what it resizes. */\n readonly ariaLabel = input<string | null>(null);\n /** Dragged past `min` or `max`: `'elastic'` follows the pointer with growing resistance and springs\n * back on release, `'none'` stops at the limit. Off under `prefers-reduced-motion: reduce`. */\n readonly overdrag = input<SplitterOverdrag>('elastic');\n\n protected readonly startId = nextControlId('ds-splitter-pane');\n protected readonly endId = nextControlId('ds-splitter-pane');\n protected readonly dragging = signal(false);\n protected readonly springing = signal(false);\n protected readonly current = computed(() =>\n this.clamp(this.size() ?? this.defaultSize(), this.max()),\n );\n protected readonly cursor = computed(() => this.cursorFor(this.current()));\n protected readonly label = computed(\n () =>\n this.ariaLabel() ||\n this.intl().splitter?.label ||\n DS_INTL_DEFAULTS.splitter.label,\n );\n // ARIA names the orientation of the separator line, which is across the panes' axis.\n protected readonly lineOrientation = computed(() =>\n this.orientation() === 'horizontal' ? 'vertical' : 'horizontal',\n );\n\n private drag: {\n pointerId: number;\n grab: number;\n size: number;\n // Measured once at the grab: the rubber band transforms the panes, so their boxes are not read mid-drag.\n box: DOMRect;\n elastic: boolean;\n pull: number;\n } | null = null;\n private pendingMove: PointerEvent | null = null;\n private frame = 0;\n private springTimer = 0;\n\n constructor() {\n retainStyles(SplitterDraggingStylesComponent);\n }\n\n ngOnInit(): void {\n const key = this.storageKey();\n if (!key) {\n return;\n }\n try {\n const stored = Number(localStorage.getItem(key) ?? NaN);\n if (Number.isFinite(stored)) {\n this.size.set(stored);\n }\n } catch {\n // Storage blocked or absent (SSR): keep the bound size.\n }\n }\n\n ngOnDestroy(): void {\n this.endDrag();\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (event.button !== 0) {\n return;\n }\n event.preventDefault();\n const handle = this.handle().nativeElement;\n handle.setPointerCapture(event.pointerId);\n // A grab during the spring-back stops it where the layout puts the handle, before anything is measured.\n this.stopSpring();\n // The grab point's distance from the measured pane's edge stays fixed, so the handle never jumps.\n this.drag = {\n pointerId: event.pointerId,\n grab: this.fromPaneEdge(event, handle.getBoundingClientRect()),\n size: this.current(),\n box: this.panesBox(),\n elastic:\n this.overdrag() === 'elastic' &&\n !this.document.defaultView?.matchMedia(\n '(prefers-reduced-motion: reduce)',\n ).matches,\n pull: 0,\n };\n this.dragging.set(true);\n // Outside Angular: a move writes the DOM itself, so it must not start change detection per frame.\n this.zone.runOutsideAngular(() =>\n handle.addEventListener('pointermove', this.onPointerMove),\n );\n const root = this.document.documentElement;\n root.setAttribute('data-ds-splitter-dragging', '');\n root.style.setProperty('--_ds-splitter-cursor', this.cursor());\n }\n\n private readonly onPointerMove = (event: PointerEvent): void => {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n this.pendingMove = event;\n if (!this.frame) {\n this.frame = requestAnimationFrame(() => this.applyMove());\n }\n };\n\n private applyMove(): void {\n this.frame = 0;\n const event = this.pendingMove;\n this.pendingMove = null;\n if (!event || !this.drag) {\n return;\n }\n const { box } = this.drag;\n const raw = this.fromPaneEdge(event, box) - this.drag.grab;\n const room = this.room(box);\n const size = this.clamp(Math.round(raw), room);\n if (this.drag.elastic) {\n // Against the unrounded limit: within min and max the excess is exactly 0, not the rounding.\n this.stretch(raw - this.clamp(raw, room));\n }\n if (size === this.drag.size) {\n return;\n }\n this.drag.size = size;\n // Written straight to the DOM: no change detection per frame. `size` is set once, on release.\n const cursor = this.cursorFor(size);\n const handle = this.handle().nativeElement;\n this.host.nativeElement.style.setProperty('--_splitter-size', `${size}px`);\n handle.setAttribute('aria-valuenow', String(size));\n handle.style.cursor = cursor;\n this.document.documentElement.style.setProperty(\n '--_ds-splitter-cursor',\n cursor,\n );\n }\n\n // Past a limit by `excess` px of size, the pull approaches the cap and never reaches it. The handle\n // moves by the pull, the measured pane stretches by it and the other squashes by it (the other way\n // round past `min`), each from its outer edge, so no gap opens. Transforms only: the layout keeps\n // the clamped size.\n private stretch(excess: number): void {\n const drag = this.drag!;\n const [handle, measured, other] = this.movingParts();\n const horizontal = this.orientation() === 'horizontal';\n const extent = (element: HTMLElement) =>\n horizontal ? element.offsetWidth : element.offsetHeight;\n const squashed = excess > 0 ? other : measured;\n const cap = Math.min(OVERDRAG_CAP, extent(squashed) * OVERDRAG_SQUASH);\n const pull =\n cap > 0\n ? Math.sign(excess) * cap * (1 - 1 / (Math.abs(excess) / cap + 1))\n : 0;\n if (pull === drag.pull) {\n return;\n }\n drag.pull = pull;\n if (pull === 0) {\n this.clearTransforms();\n\n return;\n }\n const scale = horizontal ? 'scaleX' : 'scaleY';\n const shift = this.pane() === 'start' ? pull : -pull;\n handle.style.transform = `translate${horizontal ? 'X' : 'Y'}(${shift}px)`;\n // The line thickens on the same resistance curve; a custom property, because the line is a pseudo-element.\n handle.style.setProperty(\n '--_splitter-pull-ratio',\n String(Math.abs(pull) / cap),\n );\n measured.style.transform = `${scale}(${(extent(measured) + pull) / extent(measured)})`;\n other.style.transform = `${scale}(${Math.max(0, extent(other) - pull) / extent(other)})`;\n }\n\n // The handle, the pane `size` measures, then the other pane.\n private movingParts(): [HTMLElement, HTMLElement, HTMLElement] {\n const handle = this.handle().nativeElement;\n const start = handle.previousElementSibling as HTMLElement;\n const end = handle.nextElementSibling as HTMLElement;\n\n return this.pane() === 'start'\n ? [handle, start, end]\n : [handle, end, start];\n }\n\n private clearTransforms(): void {\n for (const element of this.movingParts()) {\n element.style.transform = '';\n }\n this.handle().nativeElement.style.removeProperty('--_splitter-pull-ratio');\n }\n\n private stopSpring(): void {\n clearTimeout(this.springTimer);\n this.springing.set(false);\n this.clearTransforms();\n }\n\n // The class adds the transition; clearing the transforms in the next frame plays it back to rest.\n private springBack(): void {\n this.springing.set(true);\n this.zone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n this.clearTransforms();\n this.springTimer = window.setTimeout(\n () => this.zone.run(() => this.springing.set(false)),\n 600,\n );\n });\n });\n }\n\n protected onPointerUp(event: PointerEvent): void {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n if (this.frame) {\n cancelAnimationFrame(this.frame);\n this.applyMove();\n }\n const { size, pull } = this.drag;\n this.endDrag();\n if (pull !== 0) {\n this.springBack();\n }\n if (size !== this.current()) {\n this.commit(size);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n // An arrow moves the handle; the end pane grows as the handle moves towards the start.\n const towardsEnd = this.pane() === 'start' ? 1 : -1;\n const step = event.shiftKey ? LARGE_STEP : STEP;\n const now = this.current();\n const next: Record<string, number> = {\n [horizontal ? 'ArrowRight' : 'ArrowDown']: now + step * towardsEnd,\n [horizontal ? 'ArrowLeft' : 'ArrowUp']: now - step * towardsEnd,\n PageUp: now + LARGE_STEP,\n PageDown: now - LARGE_STEP,\n Home: this.min(),\n End: this.max(),\n };\n if (!(event.key in next)) {\n return;\n }\n event.preventDefault();\n this.commit(this.clampToBox(next[event.key]));\n }\n\n protected reset(): void {\n this.size.set(null);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.removeItem(key);\n } catch {\n // Storage blocked: the reset still applies for this session.\n }\n }\n }\n\n private commit(size: number): void {\n this.size.set(size);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.setItem(key, String(size));\n } catch {\n // Full or blocked: a lost pane size is not worth an error.\n }\n }\n }\n\n private endDrag(): void {\n if (!this.drag) {\n return;\n }\n const handle = this.handle().nativeElement;\n handle.removeEventListener('pointermove', this.onPointerMove);\n cancelAnimationFrame(this.frame);\n this.frame = 0;\n this.pendingMove = null;\n try {\n handle.releasePointerCapture(this.drag.pointerId);\n } catch {\n // The pointer can already be gone.\n }\n this.drag = null;\n this.dragging.set(false);\n const root = this.document.documentElement;\n root.removeAttribute('data-ds-splitter-dragging');\n root.style.removeProperty('--_ds-splitter-cursor');\n }\n\n private storageKey(): string | null {\n const key = this.persistKey().trim();\n\n return key ? `ds-splitter:${key}` : null;\n }\n\n // ponytail: left-to-right only; under `dir=\"rtl\"` a horizontal start pane is measured from the left.\n private fromPaneEdge(event: PointerEvent, box: DOMRect): number {\n const horizontal = this.orientation() === 'horizontal';\n if (this.pane() === 'start') {\n return horizontal ? event.clientX - box.left : event.clientY - box.top;\n }\n\n return horizontal ? box.right - event.clientX : box.bottom - event.clientY;\n }\n\n private clamp(size: number, upper: number): number {\n return Math.max(this.min(), Math.min(upper, size));\n }\n\n private clampToBox(size: number): number {\n return this.clamp(size, this.room(this.panesBox()));\n }\n\n private room(box: DOMRect): number {\n const handle = this.handle().nativeElement;\n const room =\n this.orientation() === 'horizontal'\n ? box.width - handle.offsetWidth\n : box.height - handle.offsetHeight;\n\n return Math.min(this.max(), room);\n }\n\n // From the start pane's leading edge to the end pane's trailing edge: the host's border and\n // padding lie outside it.\n private panesBox(): DOMRect {\n const handle = this.handle().nativeElement;\n const start = (\n handle.previousElementSibling as HTMLElement\n ).getBoundingClientRect();\n const end = (\n handle.nextElementSibling as HTMLElement\n ).getBoundingClientRect();\n\n return new DOMRect(\n start.left,\n start.top,\n end.right - start.left,\n end.bottom - start.top,\n );\n }\n\n // At a limit the cursor shows the one direction the handle can still move. `ew-resize`, not\n // `col-resize`: Windows draws `ew`, `e` and `w-resize` alike, so the cursor keeps its shape there.\n private cursorFor(size: number): string {\n const horizontal = this.orientation() === 'horizontal';\n const atMin = size <= this.min();\n if (!atMin && size < this.max()) {\n return horizontal ? 'ew-resize' : 'ns-resize';\n }\n const towardsEnd = this.pane() === 'start' ? atMin : !atMin;\n if (horizontal) {\n return towardsEnd ? 'e-resize' : 'w-resize';\n }\n\n return towardsEnd ? 's-resize' : 'n-resize';\n }\n}\n","<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;MAQa,+BAA+B,CAAA;wGAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,wEALhC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gLAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAKD,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAP3C,SAAS;iCACI,IAA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,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7DxD;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-splitter.mjs","sources":["../../../src/lib/components/splitter/splitter-dragging-styles.component.ts","../../../src/lib/components/splitter/splitter.component.ts","../../../src/lib/components/splitter/splitter.component.html","../../../src/lib/components/splitter/ids-group-ltd-ids-design-system-components-splitter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n} from '@angular/core';\n\n/** @internal Never rendered: creating it once registers the page-wide drag rules globally. */\n@Component({\n standalone: true,\n template: '',\n styleUrl: './splitter-dragging.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SplitterDraggingStylesComponent {}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n booleanAttribute,\n ElementRef,\n OnDestroy,\n NgZone,\n OnInit,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n viewChild,\n} from '@angular/core';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n retainStyles,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { SplitterDraggingStylesComponent } from './splitter-dragging-styles.component';\nimport type {\n SplitterOrientation,\n SplitterOverdrag,\n SplitterPane,\n} from './splitter.types';\n\nconst STEP = 16;\nconst LARGE_STEP = 64;\n// The farthest the rubber band pulls past a limit, approached and never reached: 100px, and never more\n// than a third of the pane it squashes, whose content would otherwise read as distorted.\nconst OVERDRAG_CAP = 100;\nconst OVERDRAG_SQUASH = 1 / 3;\n// Fog strength is speed x distance, each 0.1..1: full from 1.2 px/ms and from 180px off the grab point.\nconst FOG_FULL_SPEED = 1.2;\nconst FOG_FULL_DISTANCE = 180;\nconst FOG_IDLE = 180;\n\n/**\n * Two panes with a handle between them that resizes one of them. Slots: `[start]` and `[end]`.\n * Drag the handle, or focus it and use the arrow keys (Shift or PageUp / PageDown for a large step,\n * Home / End for the limits); a double click returns to `defaultSize`. Give the splitter a size: it\n * fills the box its parent gives it and never grows to its content.\n */\n@Component({\n selector: 'ds-splitter',\n standalone: true,\n templateUrl: './splitter.component.html',\n styleUrl: './splitter.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-pane]': 'pane()',\n '[style.--_splitter-size]': 'current() + \"px\"',\n '[class.springing]': 'springing()',\n },\n})\nexport class SplitterComponent implements OnInit, OnDestroy {\n private readonly intl = inject(DS_INTL);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly handle =\n viewChild.required<ElementRef<HTMLElement>>('handle');\n private readonly fogStart = viewChild<ElementRef<HTMLElement>>('fogStart');\n private readonly fogEnd = viewChild<ElementRef<HTMLElement>>('fogEnd');\n\n /** `'horizontal'`: panes side by side. `'vertical'`: panes stacked. */\n readonly orientation = input<SplitterOrientation>('horizontal');\n /** The pane `size` measures; the other pane takes the rest. */\n readonly pane = input<SplitterPane>('start');\n /** Size of `pane` in px, two-way bound; `null` shows `defaultSize`. A drag writes it once, on release. */\n readonly size = model<number | null>(null);\n /** Size in px when `size` is `null`, and what a double click on the handle returns to. */\n readonly defaultSize = input(320, { transform: numberAttribute });\n /** Smallest size in px, inclusive. */\n readonly min = input(160, { transform: numberAttribute });\n /** Largest size in px, inclusive. The pane never takes more than the splitter less the handle. */\n readonly max = input(640, { transform: numberAttribute });\n /** Saves the size in `localStorage` under `ds-splitter:<key>` and restores it on init, over `size`. */\n readonly persistKey = input<string>('');\n /** Accessible name of the handle; unset falls back to `DS_INTL.splitter.label`. Name what it resizes. */\n readonly ariaLabel = input<string | null>(null);\n /** Dragged past `min` or `max`: `'elastic'` follows the pointer with growing resistance and springs\n * back on release, `'none'` stops at the limit. Off under `prefers-reduced-motion: reduce`. */\n readonly overdrag = input<SplitterOverdrag>('elastic');\n /** While dragging, shades the pane the handle moves towards, stronger the faster and farther the drag;\n * the shade rides the rubber band past a limit and fades when the hand stops or lets go. Colour:\n * `--ds-splitter-fog-color`. Off under `prefers-reduced-motion: reduce`. */\n readonly dragFog = input(false, { transform: booleanAttribute });\n\n protected readonly startId = nextControlId('ds-splitter-pane');\n protected readonly endId = nextControlId('ds-splitter-pane');\n protected readonly dragging = signal(false);\n protected readonly springing = signal(false);\n protected readonly current = computed(() =>\n this.clamp(this.size() ?? this.defaultSize(), this.max()),\n );\n protected readonly cursor = computed(() => this.cursorFor(this.current()));\n protected readonly label = computed(\n () =>\n this.ariaLabel() ||\n this.intl().splitter?.label ||\n DS_INTL_DEFAULTS.splitter.label,\n );\n // ARIA names the orientation of the separator line, which is across the panes' axis.\n protected readonly lineOrientation = computed(() =>\n this.orientation() === 'horizontal' ? 'vertical' : 'horizontal',\n );\n\n private drag: {\n pointerId: number;\n grab: number;\n size: number;\n // Measured once at the grab: the rubber band transforms the panes, so their boxes are not read mid-drag.\n box: DOMRect;\n elastic: boolean;\n pull: number;\n fog: boolean;\n // Pointer along the axis: at the grab, at the last frame, and when.\n start: number;\n last: number;\n lastTime: number;\n speed: number;\n velocity: number;\n // +1 towards the end pane, -1 towards the start pane, 0 before the first 2px of travel.\n side: number;\n reversalSince: number | null;\n } | null = null;\n private pendingMove: PointerEvent | null = null;\n private frame = 0;\n private springTimer = 0;\n private fogTimer = 0;\n\n constructor() {\n retainStyles(SplitterDraggingStylesComponent);\n }\n\n ngOnInit(): void {\n const key = this.storageKey();\n if (!key) {\n return;\n }\n try {\n const stored = Number(localStorage.getItem(key) ?? NaN);\n if (Number.isFinite(stored)) {\n this.size.set(stored);\n }\n } catch {\n // Storage blocked or absent (SSR): keep the bound size.\n }\n }\n\n ngOnDestroy(): void {\n this.endDrag();\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (event.button !== 0) {\n return;\n }\n event.preventDefault();\n const handle = this.handle().nativeElement;\n handle.setPointerCapture(event.pointerId);\n // A grab during the spring-back stops it where the layout puts the handle, before anything is measured.\n this.stopSpring();\n // The grab point's distance from the measured pane's edge stays fixed, so the handle never jumps.\n const reduced = !!this.document.defaultView?.matchMedia(\n '(prefers-reduced-motion: reduce)',\n ).matches;\n const at = this.alongAxis(event);\n this.drag = {\n pointerId: event.pointerId,\n grab: this.fromPaneEdge(event, handle.getBoundingClientRect()),\n size: this.current(),\n box: this.panesBox(),\n elastic: this.overdrag() === 'elastic' && !reduced,\n pull: 0,\n fog: this.dragFog() && !reduced,\n start: at,\n last: at,\n lastTime: event.timeStamp,\n speed: 0,\n velocity: 0,\n side: 0,\n reversalSince: null,\n };\n this.dragging.set(true);\n // Outside Angular: a move writes the DOM itself, so it must not start change detection per frame.\n this.zone.runOutsideAngular(() => {\n handle.addEventListener('pointermove', this.onPointerMove);\n this.document.defaultView?.addEventListener('blur', this.onWindowBlur);\n });\n const root = this.document.documentElement;\n root.setAttribute('data-ds-splitter-dragging', '');\n root.style.setProperty('--_ds-splitter-cursor', this.cursor());\n }\n\n private readonly onPointerMove = (event: PointerEvent): void => {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n this.pendingMove = event;\n if (!this.frame) {\n this.frame = requestAnimationFrame(() => this.applyMove());\n }\n };\n\n private applyMove(): void {\n this.frame = 0;\n const event = this.pendingMove;\n this.pendingMove = null;\n if (!event || !this.drag) {\n return;\n }\n const { box } = this.drag;\n const raw = this.fromPaneEdge(event, box) - this.drag.grab;\n const room = this.room(box);\n const size = this.clamp(Math.round(raw), room);\n if (this.drag.elastic) {\n // Against the unrounded limit: within min and max the excess is exactly 0, not the rounding.\n this.stretch(raw - this.clamp(raw, room));\n }\n if (this.drag.fog) {\n this.shade(event);\n }\n if (size === this.drag.size) {\n return;\n }\n this.drag.size = size;\n // Written straight to the DOM: no change detection per frame. `size` is set once, on release.\n const cursor = this.cursorFor(size);\n const handle = this.handle().nativeElement;\n this.host.nativeElement.style.setProperty('--_splitter-size', `${size}px`);\n handle.setAttribute('aria-valuenow', String(size));\n handle.style.cursor = cursor;\n this.document.documentElement.style.setProperty(\n '--_ds-splitter-cursor',\n cursor,\n );\n }\n\n // Past a limit by `excess` px of size, the pull approaches the cap and never reaches it. The handle\n // moves by the pull, the measured pane stretches by it and the other squashes by it (the other way\n // round past `min`), each from its outer edge, so no gap opens. Transforms only: the layout keeps\n // the clamped size.\n private stretch(excess: number): void {\n const drag = this.drag!;\n const [handle, measured, other] = this.movingParts();\n const horizontal = this.orientation() === 'horizontal';\n const extent = (element: HTMLElement) =>\n horizontal ? element.offsetWidth : element.offsetHeight;\n const squashed = excess > 0 ? other : measured;\n const cap = Math.min(OVERDRAG_CAP, extent(squashed) * OVERDRAG_SQUASH);\n const pull =\n cap > 0\n ? Math.sign(excess) * cap * (1 - 1 / (Math.abs(excess) / cap + 1))\n : 0;\n if (pull === drag.pull) {\n return;\n }\n drag.pull = pull;\n if (pull === 0) {\n this.clearTransforms();\n\n return;\n }\n const scale = horizontal ? 'scaleX' : 'scaleY';\n const shift = this.pane() === 'start' ? pull : -pull;\n handle.style.transform = `translate${horizontal ? 'X' : 'Y'}(${shift}px)`;\n // The line thickens on the same resistance curve; a custom property, because the line is a pseudo-element.\n handle.style.setProperty(\n '--_splitter-pull-ratio',\n String(Math.abs(pull) / cap),\n );\n measured.style.transform = `${scale}(${(extent(measured) + pull) / extent(measured)})`;\n other.style.transform = `${scale}(${Math.max(0, extent(other) - pull) / extent(other)})`;\n this.syncFogTransforms();\n }\n\n // The side is the pointer's direction, never where it stands: past a limit the pointer stays beyond\n // the line while the hand already pulls back, and the fog has to turn with the hand.\n private shade(event: PointerEvent): void {\n const drag = this.drag!;\n const at = this.alongAxis(event);\n const step = at - drag.last;\n const elapsed = Math.max(1, event.timeStamp - drag.lastTime);\n drag.speed = drag.speed * 0.6 + (Math.abs(step) / elapsed) * 0.4;\n drag.velocity +=\n (1 - Math.exp(-elapsed / 100)) * (step / elapsed - drag.velocity);\n drag.side = this.sideOf(drag, at, event.timeStamp);\n drag.last = at;\n drag.lastTime = event.timeStamp;\n const start = this.fogStart()?.nativeElement;\n const end = this.fogEnd()?.nativeElement;\n if (step === 0 || drag.side === 0 || !start || !end) {\n return;\n }\n const factor = (value: number) => Math.max(0.1, Math.min(1, value));\n const strength =\n factor(drag.speed / FOG_FULL_SPEED) *\n factor(Math.abs(at - drag.start) / FOG_FULL_DISTANCE);\n const [toward, away] = drag.side > 0 ? [end, start] : [start, end];\n toward.style.opacity = String(strength);\n away.style.removeProperty('opacity');\n clearTimeout(this.fogTimer);\n this.fogTimer = window.setTimeout(() => this.clearFog(), FOG_IDLE);\n }\n\n // Under 0.05 px/ms the side holds, and a reversal must last 100ms before it flips, so a slow or\n // shaky hand never flickers the fog between the panes.\n private sideOf(\n drag: NonNullable<SplitterComponent['drag']>,\n at: number,\n now: number,\n ): number {\n if (drag.side === 0) {\n return Math.abs(at - drag.start) >= 2 ? Math.sign(at - drag.start) : 0;\n }\n const wanted =\n Math.abs(drag.velocity) < 0.05 ? 0 : Math.sign(drag.velocity);\n if (wanted === 0 || wanted === drag.side) {\n drag.reversalSince = null;\n\n return drag.side;\n }\n drag.reversalSince ??= now;\n if (now - drag.reversalSince < 100) {\n return drag.side;\n }\n drag.reversalSince = null;\n\n return wanted;\n }\n\n private clearFog(): void {\n clearTimeout(this.fogTimer);\n for (const fog of [this.fogStart(), this.fogEnd()]) {\n fog?.nativeElement.style.removeProperty('opacity');\n }\n }\n\n // Each fog layer takes its pane's rubber-band transform, so the shade stays on the pane's edge.\n private syncFogTransforms(): void {\n const handle = this.handle().nativeElement;\n const pairs: [HTMLElement | undefined, Element | null][] = [\n [this.fogStart()?.nativeElement, handle.previousElementSibling],\n [this.fogEnd()?.nativeElement, handle.nextElementSibling],\n ];\n for (const [fog, pane] of pairs) {\n if (fog) {\n fog.style.transform = (pane as HTMLElement).style.transform;\n }\n }\n }\n\n // The handle, the pane `size` measures, then the other pane.\n private movingParts(): [HTMLElement, HTMLElement, HTMLElement] {\n const handle = this.handle().nativeElement;\n const start = handle.previousElementSibling as HTMLElement;\n const end = handle.nextElementSibling as HTMLElement;\n\n return this.pane() === 'start'\n ? [handle, start, end]\n : [handle, end, start];\n }\n\n private clearTransforms(): void {\n for (const element of this.movingParts()) {\n element.style.transform = '';\n }\n this.handle().nativeElement.style.removeProperty('--_splitter-pull-ratio');\n this.syncFogTransforms();\n }\n\n private stopSpring(): void {\n clearTimeout(this.springTimer);\n this.springing.set(false);\n this.clearTransforms();\n }\n\n // The class adds the transition; clearing the transforms in the next frame plays it back to rest.\n private springBack(): void {\n this.springing.set(true);\n this.zone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n this.clearTransforms();\n this.springTimer = window.setTimeout(\n () => this.zone.run(() => this.springing.set(false)),\n 600,\n );\n });\n });\n }\n\n protected onPointerUp(event: PointerEvent): void {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n this.finishDrag();\n }\n\n // A release over a document of its own (an iframe, an Electron webview) or outside the window can\n // reach no listener here: losing capture or focus is then the only sign the drag is over.\n private readonly finishDrag = (): void => {\n if (!this.drag) {\n return;\n }\n if (this.frame) {\n cancelAnimationFrame(this.frame);\n this.applyMove();\n }\n const { size, pull } = this.drag;\n this.endDrag();\n if (pull !== 0) {\n this.springBack();\n }\n if (size !== this.current()) {\n this.commit(size);\n }\n };\n\n private readonly onWindowBlur = (): void => this.zone.run(this.finishDrag);\n\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n // An arrow moves the handle; the end pane grows as the handle moves towards the start.\n const towardsEnd = this.pane() === 'start' ? 1 : -1;\n const step = event.shiftKey ? LARGE_STEP : STEP;\n const now = this.current();\n const next: Record<string, number> = {\n [horizontal ? 'ArrowRight' : 'ArrowDown']: now + step * towardsEnd,\n [horizontal ? 'ArrowLeft' : 'ArrowUp']: now - step * towardsEnd,\n PageUp: now + LARGE_STEP,\n PageDown: now - LARGE_STEP,\n Home: this.min(),\n End: this.max(),\n };\n if (!(event.key in next)) {\n return;\n }\n event.preventDefault();\n this.commit(this.clampToBox(next[event.key]));\n }\n\n protected reset(): void {\n this.size.set(null);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.removeItem(key);\n } catch {\n // Storage blocked: the reset still applies for this session.\n }\n }\n }\n\n private commit(size: number): void {\n this.size.set(size);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.setItem(key, String(size));\n } catch {\n // Full or blocked: a lost pane size is not worth an error.\n }\n }\n }\n\n private endDrag(): void {\n if (!this.drag) {\n return;\n }\n const handle = this.handle().nativeElement;\n handle.removeEventListener('pointermove', this.onPointerMove);\n this.document.defaultView?.removeEventListener('blur', this.onWindowBlur);\n cancelAnimationFrame(this.frame);\n this.frame = 0;\n this.pendingMove = null;\n try {\n handle.releasePointerCapture(this.drag.pointerId);\n } catch {\n // The pointer can already be gone.\n }\n this.drag = null;\n this.clearFog();\n this.dragging.set(false);\n const root = this.document.documentElement;\n root.removeAttribute('data-ds-splitter-dragging');\n root.style.removeProperty('--_ds-splitter-cursor');\n }\n\n private storageKey(): string | null {\n const key = this.persistKey().trim();\n\n return key ? `ds-splitter:${key}` : null;\n }\n\n private alongAxis(event: PointerEvent): number {\n return this.orientation() === 'horizontal' ? event.clientX : event.clientY;\n }\n\n // ponytail: left-to-right only; under `dir=\"rtl\"` a horizontal start pane is measured from the left.\n private fromPaneEdge(event: PointerEvent, box: DOMRect): number {\n const horizontal = this.orientation() === 'horizontal';\n if (this.pane() === 'start') {\n return horizontal ? event.clientX - box.left : event.clientY - box.top;\n }\n\n return horizontal ? box.right - event.clientX : box.bottom - event.clientY;\n }\n\n private clamp(size: number, upper: number): number {\n return Math.max(this.min(), Math.min(upper, size));\n }\n\n private clampToBox(size: number): number {\n return this.clamp(size, this.room(this.panesBox()));\n }\n\n private room(box: DOMRect): number {\n const handle = this.handle().nativeElement;\n const room =\n this.orientation() === 'horizontal'\n ? box.width - handle.offsetWidth\n : box.height - handle.offsetHeight;\n\n return Math.min(this.max(), room);\n }\n\n // From the start pane's leading edge to the end pane's trailing edge: the host's border and\n // padding lie outside it.\n private panesBox(): DOMRect {\n const handle = this.handle().nativeElement;\n const start = (\n handle.previousElementSibling as HTMLElement\n ).getBoundingClientRect();\n const end = (\n handle.nextElementSibling as HTMLElement\n ).getBoundingClientRect();\n\n return new DOMRect(\n start.left,\n start.top,\n end.right - start.left,\n end.bottom - start.top,\n );\n }\n\n // At a limit the cursor shows the one direction the handle can still move. `ew-resize`, not\n // `col-resize`: Windows draws `ew`, `e` and `w-resize` alike, so the cursor keeps its shape there.\n private cursorFor(size: number): string {\n const horizontal = this.orientation() === 'horizontal';\n const atMin = size <= this.min();\n if (!atMin && size < this.max()) {\n return horizontal ? 'ew-resize' : 'ns-resize';\n }\n const towardsEnd = this.pane() === 'start' ? atMin : !atMin;\n if (horizontal) {\n return towardsEnd ? 'e-resize' : 'w-resize';\n }\n\n return towardsEnd ? 's-resize' : 'n-resize';\n }\n}\n","<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;MAQa,+BAA+B,CAAA;wGAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,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AAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpEvE;;AAEG;;;;"}
@@ -56,7 +56,7 @@ class StepperComponent {
56
56
  }
57
57
  }
58
58
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
59
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: StepperComponent, isStandalone: true, selector: "ds-stepper", inputs: { steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, errorSteps: { classPropertyName: "errorSteps", publicName: "errorSteps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stepClicked: "stepClicked" }, host: { attributes: { "role": "list" }, properties: { "attr.aria-label": "intl().stepper.label", "class.labels-inline": "labelPosition() === 'inline'", "class.is-vertical": "orientation() === 'vertical'" } }, ngImport: i0, template: "@for (label of steps(); track $index; let i = $index, last = $last) {\n <span\n role=\"listitem\"\n class=\"step\"\n [class.is-current]=\"i === current()\"\n [attr.aria-current]=\"i === current() ? 'step' : null\">\n @if (clickable()) {\n <button\n type=\"button\"\n [class]=\"nodeClass(i)\"\n [attr.aria-label]=\"intl().stepper.step(i + 1, label, stepState(i))\"\n (click)=\"onStepClick(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">{{ i + 1 }}</span>\n }\n </button>\n } @else {\n <span\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">{{ i + 1 }}</span>\n }\n </span>\n }\n\n <span\n aria-hidden=\"true\"\n class=\"step-label\">\n {{ label }}\n </span>\n\n @if (!last) {\n <span\n aria-hidden=\"true\"\n [class]=\"connectorClass(i)\">\n </span>\n }\n\n @if (!clickable()) {\n <span class=\"visually-hidden\">\n {{ intl().stepper.step(i + 1, label, stepState(i)) }}\n </span>\n }\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:flex;align-items:flex-start;--_stepper-label-color: var(--ds-stepper-label-color, var(--text-tertiary));--_stepper-label-color-current: var(--ds-stepper-label-color-current, var(--text-primary));--_stepper-label-font-size: var(--ds-stepper-label-font-size, var(--font-size-xs));--_stepper-node-bg-color: var(--ds-stepper-node-bg-color, var(--surface-default));--_stepper-node-active-bg-color: var(--ds-stepper-node-active-bg-color, var(--accent));--_stepper-node-active-text-color: var(--ds-stepper-node-active-text-color, var(--accent-on));--_stepper-node-done-text-color: var(--ds-stepper-node-done-text-color, var(--accent));--_stepper-connector-color: var(--ds-stepper-connector-color, var(--border-divider));--_stepper-connector-done-color: var(--ds-stepper-connector-done-color, var(--accent))}:host .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host .step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}:host .node{position:relative;z-index:1;width:var(--stepper-node-size);height:var(--stepper-node-size);border-radius:var(--radius-pill);display:grid;place-items:center;border:var(--border-width-default) solid var(--text-tertiary);background:var(--_stepper-node-bg-color);color:var(--text-tertiary);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);transition:background-color var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),color var(--duration-base) var(--ease-standard)}:host .node .number{display:inline-block;translate:0 .033em}:host .node.done{background:var(--accent-subtitle);border-color:var(--accent);color:var(--_stepper-node-done-text-color)}:host .node.active{background:var(--_stepper-node-active-bg-color);border-color:var(--accent);color:var(--_stepper-node-active-text-color)}:host .node.error{background:var(--error-subtitle);border-color:var(--error);color:var(--error)}:host button.node{padding:0;appearance:none;cursor:pointer}:host button.node:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .connector{position:absolute;z-index:0;top:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);left:50%;width:100%;height:var(--stepper-bar-h);background:var(--_stepper-connector-color);transition:background-color var(--duration-base) var(--ease-standard)}:host .connector.done{background:var(--_stepper-connector-done-color)}:host .step-label{max-width:14ch;margin-top:var(--space-2);font-size:var(--_stepper-label-font-size);font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--_stepper-label-color);overflow-wrap:anywhere;transition:color var(--duration-base) var(--ease-standard)}:host .step.is-current .step-label{font-weight:var(--font-weight-bold);color:var(--_stepper-label-color-current)}:host(.labels-inline){display:inline-flex;align-items:center;gap:var(--space-2)}:host(.labels-inline) .step{flex:0 0 auto;flex-direction:row;gap:var(--space-2)}:host(.labels-inline) .step-label{max-width:none;margin-top:0;white-space:nowrap}:host(.labels-inline) .connector{position:static;flex:0 0 auto;width:var(--stepper-bar-w)}:host(.is-vertical){flex-direction:column;align-items:stretch}:host(.is-vertical) .step{flex:0 0 auto;flex-direction:row;align-items:flex-start;text-align:left;gap:var(--space-3);padding-bottom:var(--space-4)}:host(.is-vertical) .step:last-child{padding-bottom:0}:host(.is-vertical) .step-label{max-width:none;margin-top:0;align-self:center}:host(.is-vertical) .connector{position:absolute;top:var(--stepper-node-size);left:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);width:var(--stepper-bar-h);height:calc(100% - var(--stepper-node-size))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
59
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: StepperComponent, isStandalone: true, selector: "ds-stepper", inputs: { steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, errorSteps: { classPropertyName: "errorSteps", publicName: "errorSteps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stepClicked: "stepClicked" }, host: { attributes: { "role": "list" }, properties: { "attr.aria-label": "intl().stepper.label", "class.labels-inline": "labelPosition() === 'inline'", "class.is-vertical": "orientation() === 'vertical'" } }, ngImport: i0, template: "@for (label of steps(); track $index; let i = $index, last = $last) {\n <span\n role=\"listitem\"\n class=\"step\"\n [class.is-current]=\"i === current()\"\n [attr.aria-current]=\"i === current() ? 'step' : null\">\n @if (clickable()) {\n <button\n type=\"button\"\n [class]=\"nodeClass(i)\"\n [attr.aria-label]=\"intl().stepper.step(i + 1, label, stepState(i))\"\n (click)=\"onStepClick(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">\n {{ i + 1 }}\n </span>\n }\n </button>\n } @else {\n <span\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">\n {{ i + 1 }}\n </span>\n }\n </span>\n }\n\n <span\n aria-hidden=\"true\"\n class=\"step-label\">\n {{ label }}\n </span>\n\n @if (!last) {\n <span\n aria-hidden=\"true\"\n [class]=\"connectorClass(i)\">\n </span>\n }\n\n @if (!clickable()) {\n <span class=\"visually-hidden\">\n {{ intl().stepper.step(i + 1, label, stepState(i)) }}\n </span>\n }\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:flex;align-items:flex-start;--_stepper-label-color: var(--ds-stepper-label-color, var(--text-tertiary));--_stepper-label-color-current: var(--ds-stepper-label-color-current, var(--text-primary));--_stepper-label-font-size: var(--ds-stepper-label-font-size, var(--font-size-xs));--_stepper-node-bg-color: var(--ds-stepper-node-bg-color, var(--surface-default));--_stepper-node-active-bg-color: var(--ds-stepper-node-active-bg-color, var(--accent));--_stepper-node-active-text-color: var(--ds-stepper-node-active-text-color, var(--accent-on));--_stepper-node-done-text-color: var(--ds-stepper-node-done-text-color, var(--accent));--_stepper-connector-color: var(--ds-stepper-connector-color, var(--border-divider));--_stepper-connector-done-color: var(--ds-stepper-connector-done-color, var(--accent))}:host .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host .step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}:host .node{position:relative;z-index:1;width:var(--stepper-node-size);height:var(--stepper-node-size);border-radius:var(--radius-pill);display:grid;place-items:center;border:var(--border-width-default) solid var(--text-tertiary);background:var(--_stepper-node-bg-color);color:var(--text-tertiary);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);transition:background-color var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),color var(--duration-base) var(--ease-standard)}:host .node .number{display:inline-block;translate:0 .033em}:host .node.done{background:var(--accent-subtitle);border-color:var(--accent);color:var(--_stepper-node-done-text-color)}:host .node.active{background:var(--_stepper-node-active-bg-color);border-color:var(--accent);color:var(--_stepper-node-active-text-color)}:host .node.error{background:var(--error-subtitle);border-color:var(--error);color:var(--error)}:host button.node{padding:0;appearance:none;cursor:pointer}:host button.node:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .connector{position:absolute;z-index:0;top:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);left:50%;width:100%;height:var(--stepper-bar-h);background:var(--_stepper-connector-color);transition:background-color var(--duration-base) var(--ease-standard)}:host .connector.done{background:var(--_stepper-connector-done-color)}:host .step-label{max-width:14ch;margin-top:var(--space-2);font-size:var(--_stepper-label-font-size);font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--_stepper-label-color);overflow-wrap:anywhere;transition:color var(--duration-base) var(--ease-standard)}:host .step.is-current .step-label{font-weight:var(--font-weight-bold);color:var(--_stepper-label-color-current)}:host(.labels-inline){display:inline-flex;align-items:center;gap:var(--space-2)}:host(.labels-inline) .step{flex:0 0 auto;flex-direction:row;gap:var(--space-2)}:host(.labels-inline) .step-label{max-width:none;margin-top:0;white-space:nowrap}:host(.labels-inline) .connector{position:static;flex:0 0 auto;width:var(--stepper-bar-w)}:host(.is-vertical){flex-direction:column;align-items:stretch}:host(.is-vertical) .step{flex:0 0 auto;flex-direction:row;align-items:flex-start;text-align:left;gap:var(--space-3);padding-bottom:var(--space-4)}:host(.is-vertical) .step:last-child{padding-bottom:0}:host(.is-vertical) .step-label{max-width:none;margin-top:0;align-self:center}:host(.is-vertical) .connector{position:absolute;top:var(--stepper-node-size);left:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);width:var(--stepper-bar-h);height:calc(100% - var(--stepper-node-size))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
60
60
  }
61
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: StepperComponent, decorators: [{
62
62
  type: Component,
@@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
65
65
  '[attr.aria-label]': 'intl().stepper.label',
66
66
  '[class.labels-inline]': "labelPosition() === 'inline'",
67
67
  '[class.is-vertical]': "orientation() === 'vertical'",
68
- }, template: "@for (label of steps(); track $index; let i = $index, last = $last) {\n <span\n role=\"listitem\"\n class=\"step\"\n [class.is-current]=\"i === current()\"\n [attr.aria-current]=\"i === current() ? 'step' : null\">\n @if (clickable()) {\n <button\n type=\"button\"\n [class]=\"nodeClass(i)\"\n [attr.aria-label]=\"intl().stepper.step(i + 1, label, stepState(i))\"\n (click)=\"onStepClick(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">{{ i + 1 }}</span>\n }\n </button>\n } @else {\n <span\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">{{ i + 1 }}</span>\n }\n </span>\n }\n\n <span\n aria-hidden=\"true\"\n class=\"step-label\">\n {{ label }}\n </span>\n\n @if (!last) {\n <span\n aria-hidden=\"true\"\n [class]=\"connectorClass(i)\">\n </span>\n }\n\n @if (!clickable()) {\n <span class=\"visually-hidden\">\n {{ intl().stepper.step(i + 1, label, stepState(i)) }}\n </span>\n }\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:flex;align-items:flex-start;--_stepper-label-color: var(--ds-stepper-label-color, var(--text-tertiary));--_stepper-label-color-current: var(--ds-stepper-label-color-current, var(--text-primary));--_stepper-label-font-size: var(--ds-stepper-label-font-size, var(--font-size-xs));--_stepper-node-bg-color: var(--ds-stepper-node-bg-color, var(--surface-default));--_stepper-node-active-bg-color: var(--ds-stepper-node-active-bg-color, var(--accent));--_stepper-node-active-text-color: var(--ds-stepper-node-active-text-color, var(--accent-on));--_stepper-node-done-text-color: var(--ds-stepper-node-done-text-color, var(--accent));--_stepper-connector-color: var(--ds-stepper-connector-color, var(--border-divider));--_stepper-connector-done-color: var(--ds-stepper-connector-done-color, var(--accent))}:host .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host .step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}:host .node{position:relative;z-index:1;width:var(--stepper-node-size);height:var(--stepper-node-size);border-radius:var(--radius-pill);display:grid;place-items:center;border:var(--border-width-default) solid var(--text-tertiary);background:var(--_stepper-node-bg-color);color:var(--text-tertiary);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);transition:background-color var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),color var(--duration-base) var(--ease-standard)}:host .node .number{display:inline-block;translate:0 .033em}:host .node.done{background:var(--accent-subtitle);border-color:var(--accent);color:var(--_stepper-node-done-text-color)}:host .node.active{background:var(--_stepper-node-active-bg-color);border-color:var(--accent);color:var(--_stepper-node-active-text-color)}:host .node.error{background:var(--error-subtitle);border-color:var(--error);color:var(--error)}:host button.node{padding:0;appearance:none;cursor:pointer}:host button.node:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .connector{position:absolute;z-index:0;top:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);left:50%;width:100%;height:var(--stepper-bar-h);background:var(--_stepper-connector-color);transition:background-color var(--duration-base) var(--ease-standard)}:host .connector.done{background:var(--_stepper-connector-done-color)}:host .step-label{max-width:14ch;margin-top:var(--space-2);font-size:var(--_stepper-label-font-size);font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--_stepper-label-color);overflow-wrap:anywhere;transition:color var(--duration-base) var(--ease-standard)}:host .step.is-current .step-label{font-weight:var(--font-weight-bold);color:var(--_stepper-label-color-current)}:host(.labels-inline){display:inline-flex;align-items:center;gap:var(--space-2)}:host(.labels-inline) .step{flex:0 0 auto;flex-direction:row;gap:var(--space-2)}:host(.labels-inline) .step-label{max-width:none;margin-top:0;white-space:nowrap}:host(.labels-inline) .connector{position:static;flex:0 0 auto;width:var(--stepper-bar-w)}:host(.is-vertical){flex-direction:column;align-items:stretch}:host(.is-vertical) .step{flex:0 0 auto;flex-direction:row;align-items:flex-start;text-align:left;gap:var(--space-3);padding-bottom:var(--space-4)}:host(.is-vertical) .step:last-child{padding-bottom:0}:host(.is-vertical) .step-label{max-width:none;margin-top:0;align-self:center}:host(.is-vertical) .connector{position:absolute;top:var(--stepper-node-size);left:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);width:var(--stepper-bar-h);height:calc(100% - var(--stepper-node-size))}\n"] }]
68
+ }, template: "@for (label of steps(); track $index; let i = $index, last = $last) {\n <span\n role=\"listitem\"\n class=\"step\"\n [class.is-current]=\"i === current()\"\n [attr.aria-current]=\"i === current() ? 'step' : null\">\n @if (clickable()) {\n <button\n type=\"button\"\n [class]=\"nodeClass(i)\"\n [attr.aria-label]=\"intl().stepper.step(i + 1, label, stepState(i))\"\n (click)=\"onStepClick(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">\n {{ i + 1 }}\n </span>\n }\n </button>\n } @else {\n <span\n aria-hidden=\"true\"\n [class]=\"nodeClass(i)\">\n @if (stepState(i) === 'completed') {\n <ds-icon\n name=\"check\"\n [size]=\"14\" />\n } @else if (stepState(i) === 'error') {\n <ds-icon\n name=\"error\"\n [size]=\"14\" />\n } @else {\n <span class=\"number\">\n {{ i + 1 }}\n </span>\n }\n </span>\n }\n\n <span\n aria-hidden=\"true\"\n class=\"step-label\">\n {{ label }}\n </span>\n\n @if (!last) {\n <span\n aria-hidden=\"true\"\n [class]=\"connectorClass(i)\">\n </span>\n }\n\n @if (!clickable()) {\n <span class=\"visually-hidden\">\n {{ intl().stepper.step(i + 1, label, stepState(i)) }}\n </span>\n }\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:flex;align-items:flex-start;--_stepper-label-color: var(--ds-stepper-label-color, var(--text-tertiary));--_stepper-label-color-current: var(--ds-stepper-label-color-current, var(--text-primary));--_stepper-label-font-size: var(--ds-stepper-label-font-size, var(--font-size-xs));--_stepper-node-bg-color: var(--ds-stepper-node-bg-color, var(--surface-default));--_stepper-node-active-bg-color: var(--ds-stepper-node-active-bg-color, var(--accent));--_stepper-node-active-text-color: var(--ds-stepper-node-active-text-color, var(--accent-on));--_stepper-node-done-text-color: var(--ds-stepper-node-done-text-color, var(--accent));--_stepper-connector-color: var(--ds-stepper-connector-color, var(--border-divider));--_stepper-connector-done-color: var(--ds-stepper-connector-done-color, var(--accent))}:host .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host .step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}:host .node{position:relative;z-index:1;width:var(--stepper-node-size);height:var(--stepper-node-size);border-radius:var(--radius-pill);display:grid;place-items:center;border:var(--border-width-default) solid var(--text-tertiary);background:var(--_stepper-node-bg-color);color:var(--text-tertiary);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-flat) var(--font-sans);transition:background-color var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),color var(--duration-base) var(--ease-standard)}:host .node .number{display:inline-block;translate:0 .033em}:host .node.done{background:var(--accent-subtitle);border-color:var(--accent);color:var(--_stepper-node-done-text-color)}:host .node.active{background:var(--_stepper-node-active-bg-color);border-color:var(--accent);color:var(--_stepper-node-active-text-color)}:host .node.error{background:var(--error-subtitle);border-color:var(--error);color:var(--error)}:host button.node{padding:0;appearance:none;cursor:pointer}:host button.node:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host .connector{position:absolute;z-index:0;top:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);left:50%;width:100%;height:var(--stepper-bar-h);background:var(--_stepper-connector-color);transition:background-color var(--duration-base) var(--ease-standard)}:host .connector.done{background:var(--_stepper-connector-done-color)}:host .step-label{max-width:14ch;margin-top:var(--space-2);font-size:var(--_stepper-label-font-size);font-weight:var(--font-weight-medium);line-height:var(--line-height-snug);color:var(--_stepper-label-color);overflow-wrap:anywhere;transition:color var(--duration-base) var(--ease-standard)}:host .step.is-current .step-label{font-weight:var(--font-weight-bold);color:var(--_stepper-label-color-current)}:host(.labels-inline){display:inline-flex;align-items:center;gap:var(--space-2)}:host(.labels-inline) .step{flex:0 0 auto;flex-direction:row;gap:var(--space-2)}:host(.labels-inline) .step-label{max-width:none;margin-top:0;white-space:nowrap}:host(.labels-inline) .connector{position:static;flex:0 0 auto;width:var(--stepper-bar-w)}:host(.is-vertical){flex-direction:column;align-items:stretch}:host(.is-vertical) .step{flex:0 0 auto;flex-direction:row;align-items:flex-start;text-align:left;gap:var(--space-3);padding-bottom:var(--space-4)}:host(.is-vertical) .step:last-child{padding-bottom:0}:host(.is-vertical) .step-label{max-width:none;margin-top:0;align-self:center}:host(.is-vertical) .connector{position:absolute;top:var(--stepper-node-size);left:calc((var(--stepper-node-size) - var(--stepper-bar-h)) / 2);width:var(--stepper-bar-h);height:calc(100% - var(--stepper-node-size))}\n"] }]
69
69
  }], propDecorators: { steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], errorSteps: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorSteps", required: false }] }], stepClicked: [{ type: i0.Output, args: ["stepClicked"] }] } });
70
70
 
71
71
  /**