@sixbell-telco/sdk 4.4.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +272 -985
  2. package/GLOSSARY.md +76 -0
  3. package/README.md +143 -1346
  4. package/banner.webp +0 -0
  5. package/components/badge/src/badge.component.d.ts +6 -1
  6. package/components/dropdown-menu/README.md +1 -0
  7. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
  8. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
  9. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
  10. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
  11. package/components/dropdown-menu/public-api.d.ts +1 -0
  12. package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
  13. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
  14. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
  15. package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
  16. package/components/status-illustration/README.md +38 -0
  17. package/components/status-illustration/index.d.ts +5 -0
  18. package/components/status-illustration/public-api.d.ts +1 -0
  19. package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
  20. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  21. package/components/tree/README.md +11 -1
  22. package/components/tree/src/tree.component.d.ts +44 -5
  23. package/components/wizard/README.md +17 -0
  24. package/components/wizard/services/wizard.service.d.ts +9 -0
  25. package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
  26. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
  27. package/directives/text/src/text.directive.d.ts +6 -2
  28. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
  29. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  30. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
  31. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  32. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
  33. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  34. package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
  35. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  36. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
  37. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
  39. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
  41. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
  43. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  44. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
  45. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
  47. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
  51. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
  53. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  55. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
  57. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  59. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
  61. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  63. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
  65. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
  67. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
  73. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
  77. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
  78. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
  79. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
  81. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
  85. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
  87. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
  89. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
  91. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
  93. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
  95. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  96. package/i18n/sdk/en.json +4 -1
  97. package/i18n/sdk/es.json +4 -1
  98. package/i18n/sdk/pt.json +4 -1
  99. package/layouts/README.md +24 -6
  100. package/layouts/public-api.d.ts +1 -1
  101. package/layouts/src/layout-account.d.ts +16 -0
  102. package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
  103. package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
  104. package/manifest.json +10943 -0
  105. package/package.json +50 -38
  106. package/schematics/lib/plan.cjs +179 -0
  107. package/schematics/lib/tokens.cjs +133 -0
  108. package/schematics/lib/workspace.cjs +118 -0
  109. package/schematics/manual-steps.json +90 -0
  110. package/schematics/migration.json +15 -0
  111. package/schematics/migrations/v4-0-0/assets.cjs +331 -0
  112. package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
  113. package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
  114. package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
  115. package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
  116. package/schematics/migrations/v4-0-0/index.cjs +96 -0
  117. package/schematics/migrations/v4-0-0/layout.cjs +269 -0
  118. package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
  119. package/schematics/migrations/v4-6-0/index.cjs +394 -0
  120. package/src/_index.css +257 -26
  121. package/utils/theme/README.md +1 -1
  122. package/utils/theme/public-api.d.ts +1 -1
  123. package/utils/theme/src/models/theme.d.ts +10 -0
  124. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
  125. package/banner.png +0 -0
  126. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
  127. package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
  128. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
@@ -1,10 +1,10 @@
1
- import { NgTemplateOutlet } from '@angular/common';
1
+ import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, input, model, contentChild, viewChildren, viewChild, signal, computed, linkedSignal, afterRenderEffect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { inject, TemplateRef, Directive, input, model, contentChild, viewChildren, viewChild, signal, computed, linkedSignal, afterRenderEffect, afterNextRender, effect, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { BadgeComponent } from '@sixbell-telco/sdk/components/badge';
5
5
  import { EmptyStateComponent } from '@sixbell-telco/sdk/components/empty-state';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
7
- import { matTuneOutline, matLayersOutline, matChevronRightOutline, matExpandMoreOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
7
+ import { matTuneOutline, matLayersOutline, matChevronRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
8
8
  import { cn } from '@sixbell-telco/sdk/utils/cn';
9
9
  import { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';
10
10
  import { cva } from 'class-variance-authority';
@@ -39,24 +39,46 @@ const INDENT_PX = 20;
39
39
  const BASE_PADDING_PX = 8;
40
40
  const ROW_HEIGHT_PX = 32;
41
41
  const ROW_GAP_PX = 2;
42
- const ACTIONS_HEIGHT_PX = 24;
43
42
  const TYPEAHEAD_RESET_MS = 500;
43
+ /** Matches the row `duration-150` collapse transition. */
44
+ const ROW_LEAVE_MS = 150;
45
+ const REDUCED_MOTION_QUERY = '(prefers-reduced-motion: reduce)';
44
46
  /**
45
47
  * @internal
46
48
  * Row classes: selected rows use the primary tint, the keyboard focus ring stays visible.
47
49
  */
48
50
  const treeRow = cva([
49
- 'rounded-field flex cursor-pointer items-center gap-1.5 pr-1 text-sm outline-hidden select-none',
51
+ 'rounded-field mt-0.5 flex h-8 cursor-pointer items-center gap-1.5 overflow-hidden pr-1 text-sm outline-hidden select-none',
50
52
  'focus-visible:ring-primary focus-visible:ring-offset-base-100 focus-visible:ring-2 focus-visible:ring-offset-1',
51
- 'motion-safe:transition-colors',
53
+ 'motion-safe:transition-[color,background-color,height,margin,opacity] motion-safe:duration-150 motion-safe:ease-out',
52
54
  ], {
53
55
  variants: {
54
56
  selected: {
55
57
  true: 'bg-primary/12 text-primary',
56
58
  false: 'text-base-content hover:bg-base-content/10',
57
59
  },
60
+ /** Rows inserted after the first render grow from 0 to the row height and fade in. */
61
+ entering: {
62
+ true: 'motion-safe:starting:mt-0 motion-safe:starting:h-0 motion-safe:starting:opacity-0',
63
+ false: '',
64
+ },
65
+ /** Rows of a collapsed branch shrink and fade out before they are removed. */
66
+ leaving: {
67
+ true: 'pointer-events-none mt-0 h-0 opacity-0',
68
+ false: '',
69
+ },
58
70
  },
59
- defaultVariants: { selected: false },
71
+ defaultVariants: { selected: false, entering: false, leaving: false },
72
+ });
73
+ /**
74
+ * @internal
75
+ * Chevron of a branch row: one icon that turns a quarter when the branch expands.
76
+ */
77
+ const treeChevron = cva('flex motion-safe:transition-transform motion-safe:duration-150 motion-safe:ease-out', {
78
+ variants: {
79
+ expanded: { true: 'rotate-90', false: 'rotate-0' },
80
+ },
81
+ defaultVariants: { expanded: false },
60
82
  });
61
83
  /**
62
84
  * Single-select tree following the WAI-ARIA treeview pattern.
@@ -96,9 +118,10 @@ class TreeComponent {
96
118
  /** Ids of the expanded branches, two-way with `[(expandedIds)]`. Ignored while a filter is active. */
97
119
  expandedIds = model([]);
98
120
  actionsTemplate = contentChild(TreeNodeActionsDirective);
99
- rowElements = viewChildren('row');
121
+ rowElements = viewChildren('treeRow');
100
122
  actionsElement = viewChild('actions');
101
123
  translateLabel = injectLabelTranslator();
124
+ reducedMotion = inject(DOCUMENT).defaultView?.matchMedia?.(REDUCED_MOTION_QUERY) ?? null;
102
125
  /** @internal */
103
126
  indent = INDENT_PX;
104
127
  /** @internal */
@@ -106,9 +129,7 @@ class TreeComponent {
106
129
  /** @internal */
107
130
  rowHeight = ROW_HEIGHT_PX;
108
131
  /** @internal */
109
- rowGap = ROW_GAP_PX;
110
- /** @internal */
111
- icons = { expanded: matExpandMoreOutline, collapsed: matChevronRightOutline, branch: matLayersOutline, leaf: matTuneOutline };
132
+ icons = { chevron: matChevronRightOutline, branch: matLayersOutline, leaf: matTuneOutline };
112
133
  /** @internal */
113
134
  focusedId = signal(null);
114
135
  /** @internal Measured width of the actions group, reserved as end padding on the row showing the actions. */
@@ -141,6 +162,30 @@ class TreeComponent {
141
162
  visit(this.nodes(), 0, null);
142
163
  return rows;
143
164
  });
165
+ /** @internal Rows inserted after the first render animate in; the first render stays still. */
166
+ animateEntering = signal(false);
167
+ /**
168
+ * @internal The rows in the DOM: the visible rows plus, unless reduced motion is on, rows that just left (collapsed
169
+ * branch, filtered out) kept in place for the collapse transition. Leaving rows are inert, hidden from assistive
170
+ * technology and never treeitems, so keyboard navigation and ARIA only ever see `rows()`.
171
+ */
172
+ renderedRows = linkedSignal({
173
+ source: this.rows,
174
+ computation: (rows, previous) => {
175
+ const visible = rows.map((row) => ({ row, leaving: false }));
176
+ if (!previous || !this.animateEntering() || this.reducedMotion?.matches)
177
+ return visible;
178
+ return mergeLeavingRows(previous.value, visible);
179
+ },
180
+ });
181
+ /**
182
+ * @internal True for one row transition after the visible rows change (unless reduced motion is on). Meanwhile
183
+ * the actions group moves with its row at the same timing, or stays transparent when it has no row to follow.
184
+ */
185
+ layoutShift = linkedSignal({
186
+ source: this.rows,
187
+ computation: (_rows, previous) => !!previous && this.animateEntering() && !this.reducedMotion?.matches,
188
+ });
144
189
  /** @internal The row holding the roving tab stop: last focused, else selected, else first. */
145
190
  focusId = computed(() => {
146
191
  const ids = this.rows().map((row) => row.node.id);
@@ -161,7 +206,21 @@ class TreeComponent {
161
206
  const index = rows.findIndex((row) => row.node.id === target);
162
207
  if (index < 0)
163
208
  return null;
164
- return { row: rows[index], template: actions.template, top: index * (ROW_HEIGHT_PX + ROW_GAP_PX) + (ROW_HEIGHT_PX - ACTIONS_HEIGHT_PX) / 2 };
209
+ return { row: rows[index], template: actions.template, top: index * (ROW_HEIGHT_PX + ROW_GAP_PX) };
210
+ });
211
+ /**
212
+ * @internal True while the actions follow their own row through a row transition. It turns false for the rest of
213
+ * the transition as soon as they switch to another row, so they jump there instead of sliding over other rows.
214
+ */
215
+ actionsFollowRow = linkedSignal({
216
+ source: computed(() => ({ active: this.layoutShift(), id: this.actionsRow()?.row.node.id ?? null })),
217
+ computation: (current, previous) => {
218
+ if (!current.active)
219
+ return false;
220
+ if (previous && previous.source.id !== current.id)
221
+ return false;
222
+ return previous?.source.active ? previous.value : true;
223
+ },
165
224
  });
166
225
  /** @internal */
167
226
  treeLabel = computed(() => this.label() || this.translateLabel({ key: 'sdk.tree.label', fallback: 'Tree' }));
@@ -185,10 +244,36 @@ class TreeComponent {
185
244
  const group = this.actionsElement()?.nativeElement;
186
245
  this.actionsWidth.set(group ? group.offsetWidth + BASE_PADDING_PX : 0);
187
246
  });
247
+ afterNextRender(() => this.animateEntering.set(true));
248
+ effect((onCleanup) => {
249
+ if (!this.layoutShift())
250
+ return;
251
+ const timer = setTimeout(() => this.layoutShift.set(false), ROW_LEAVE_MS);
252
+ onCleanup(() => clearTimeout(timer));
253
+ });
254
+ effect((onCleanup) => {
255
+ if (!this.renderedRows().some((rendered) => rendered.leaving))
256
+ return;
257
+ const timer = setTimeout(() => this.renderedRows.set(this.rows().map((row) => ({ row, leaving: false }))), ROW_LEAVE_MS);
258
+ onCleanup(() => clearTimeout(timer));
259
+ });
188
260
  }
189
261
  /** @internal */
190
- rowClass(selected) {
191
- return cn(treeRow({ selected }));
262
+ rowClass(selected, leaving = false) {
263
+ return cn(treeRow({ selected, leaving, entering: this.animateEntering() }));
264
+ }
265
+ /** @internal */
266
+ /**
267
+ * @internal While rows animate, actions that did not start on their row (a row still growing in, or a switch to
268
+ * another row mid-transition) have no settled position to sit on, so they stay transparent until the rows settle.
269
+ */
270
+ actionsHidden = computed(() => !!this.actionsRow() && this.layoutShift() && !this.actionsFollowRow());
271
+ actionsClass = computed(() => cn('absolute inset-e-1 flex items-center gap-0.5 motion-safe:ease-out motion-safe:starting:opacity-0', this.actionsFollowRow()
272
+ ? 'motion-safe:transition-[top,opacity] motion-safe:duration-150'
273
+ : 'motion-safe:transition-opacity motion-safe:duration-100', this.actionsHidden() && 'opacity-0 motion-safe:transition-none'));
274
+ /** @internal */
275
+ chevronClass(expanded) {
276
+ return cn(treeChevron({ expanded }));
192
277
  }
193
278
  /** @internal */
194
279
  focusActionsRow() {
@@ -333,24 +418,30 @@ class TreeComponent {
333
418
  ?.nativeElement.focus();
334
419
  }
335
420
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
336
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TreeComponent, isStandalone: true, selector: "st-tree", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, actionsLabel: { classPropertyName: "actionsLabel", publicName: "actionsLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, emptyHeading: { classPropertyName: "emptyHeading", publicName: "emptyHeading", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedId: "selectedIdChange", expandedIds: "expandedIdsChange" }, host: { properties: { "class": "hostClass()" } }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: TreeNodeActionsDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "rowElements", predicate: ["row"], descendants: true, isSignal: true }, { propertyName: "actionsElement", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: `
421
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TreeComponent, isStandalone: true, selector: "st-tree", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, actionsLabel: { classPropertyName: "actionsLabel", publicName: "actionsLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, emptyHeading: { classPropertyName: "emptyHeading", publicName: "emptyHeading", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, selectedId: { classPropertyName: "selectedId", publicName: "selectedId", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedId: "selectedIdChange", expandedIds: "expandedIdsChange" }, host: { properties: { "class": "hostClass()" } }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: TreeNodeActionsDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "rowElements", predicate: ["treeRow"], descendants: true, isSignal: true }, { propertyName: "actionsElement", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: `
337
422
  @if (rows().length) {
338
- <div class="relative" (mouseover)="onPointerOver($event)" (mouseleave)="hoveredId.set(null)">
339
- <div role="tree" class="flex flex-col" [attr.aria-label]="treeLabel()" [style.row-gap.px]="rowGap">
340
- @for (row of rows(); track row.node.id) {
341
- @let selected = row.node.id === selectedId();
423
+ <!-- Read on every pass, even with no actions shown, so the actions know whether they were on screen when the rows started moving. -->
424
+ @let actionsClasses = actionsClass();
425
+ <div class="relative flow-root" (mouseover)="onPointerOver($event)" (mouseleave)="hoveredId.set(null)">
426
+ <div role="tree" class="-mt-0.5 flex flex-col" [attr.aria-label]="treeLabel()">
427
+ @for (rendered of renderedRows(); track rendered.row.node.id) {
428
+ @let row = rendered.row;
429
+ @let leaving = rendered.leaving;
430
+ @let selected = !leaving && row.node.id === selectedId();
342
431
  <div
343
- #row
344
- role="treeitem"
345
- [attr.data-node-id]="row.node.id"
346
- [attr.aria-level]="row.level + 1"
347
- [attr.aria-setsize]="row.setSize"
348
- [attr.aria-posinset]="row.posInSet"
349
- [attr.aria-expanded]="row.hasChildren ? row.expanded : null"
350
- [attr.aria-selected]="selected"
351
- [attr.tabindex]="row.node.id === focusId() ? 0 : -1"
352
- [class]="rowClass(selected)"
353
- [style.height.px]="rowHeight"
432
+ #treeRow
433
+ [attr.role]="leaving ? null : 'treeitem'"
434
+ [attr.data-node-id]="leaving ? null : row.node.id"
435
+ [attr.data-leaving]="leaving ? '' : null"
436
+ [attr.aria-hidden]="leaving ? 'true' : null"
437
+ [attr.inert]="leaving ? '' : null"
438
+ [attr.aria-level]="leaving ? null : row.level + 1"
439
+ [attr.aria-setsize]="leaving ? null : row.setSize"
440
+ [attr.aria-posinset]="leaving ? null : row.posInSet"
441
+ [attr.aria-expanded]="!leaving && row.hasChildren ? row.expanded : null"
442
+ [attr.aria-selected]="leaving ? null : selected"
443
+ [attr.tabindex]="!leaving && row.node.id === focusId() ? 0 : -1"
444
+ [class]="rowClass(selected, leaving)"
354
445
  [style.padding-inline-start.px]="row.level * indent + basePadding"
355
446
  [style.padding-inline-end.px]="row.node.id === actionsRow()?.row?.node?.id ? actionsWidth() : null"
356
447
  (click)="onRowClick(row, $event)"
@@ -360,7 +451,7 @@ class TreeComponent {
360
451
  >
361
452
  <span data-tree-toggle class="flex size-4 shrink-0 items-center justify-center text-sm" aria-hidden="true">
362
453
  @if (row.hasChildren) {
363
- <st-icon [icon]="row.expanded ? icons.expanded : icons.collapsed" />
454
+ <span data-tree-chevron [class]="chevronClass(row.expanded)"><st-icon [icon]="icons.chevron" /></span>
364
455
  }
365
456
  </span>
366
457
  <st-icon class="shrink-0" [icon]="row.node.icon ?? (row.hasChildren ? icons.branch : icons.leaf)" size="xs" aria-hidden="true" />
@@ -375,10 +466,11 @@ class TreeComponent {
375
466
  <div
376
467
  #actions
377
468
  role="group"
378
- class="absolute inset-e-1 flex items-center gap-0.5"
469
+ [class]="actionsClasses"
379
470
  data-testid="tree-actions"
380
471
  [attr.aria-label]="actionsGroupLabel()"
381
472
  [style.top.px]="selection.top"
473
+ [style.height.px]="rowHeight"
382
474
  (keydown.escape)="focusActionsRow()"
383
475
  (focusin)="lockActions()"
384
476
  (focusout)="releaseLock($event)"
@@ -393,7 +485,7 @@ class TreeComponent {
393
485
  } @else {
394
486
  <st-empty-state size="sm" [illustration]="null" [heading]="emptyText().heading" [description]="emptyText().description" />
395
487
  }
396
- `, isInline: true, dependencies: [{ kind: "component", type: BadgeComponent, selector: "st-badge", inputs: ["variant", "size", "outline", "soft", "dash", "ghost", "icon", "iconPosition"] }, { kind: "component", type: EmptyStateComponent, selector: "st-empty-state", inputs: ["heading", "description", "illustration", "size", "class"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
488
+ `, isInline: true, dependencies: [{ kind: "component", type: BadgeComponent, selector: "st-badge", inputs: ["variant", "size", "outline", "soft", "dash", "ghost", "icon", "iconPosition", "truncate"] }, { kind: "component", type: EmptyStateComponent, selector: "st-empty-state", inputs: ["heading", "description", "illustration", "size", "class"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
397
489
  }
398
490
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TreeComponent, decorators: [{
399
491
  type: Component,
@@ -404,22 +496,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
404
496
  host: { '[class]': 'hostClass()' },
405
497
  template: `
406
498
  @if (rows().length) {
407
- <div class="relative" (mouseover)="onPointerOver($event)" (mouseleave)="hoveredId.set(null)">
408
- <div role="tree" class="flex flex-col" [attr.aria-label]="treeLabel()" [style.row-gap.px]="rowGap">
409
- @for (row of rows(); track row.node.id) {
410
- @let selected = row.node.id === selectedId();
499
+ <!-- Read on every pass, even with no actions shown, so the actions know whether they were on screen when the rows started moving. -->
500
+ @let actionsClasses = actionsClass();
501
+ <div class="relative flow-root" (mouseover)="onPointerOver($event)" (mouseleave)="hoveredId.set(null)">
502
+ <div role="tree" class="-mt-0.5 flex flex-col" [attr.aria-label]="treeLabel()">
503
+ @for (rendered of renderedRows(); track rendered.row.node.id) {
504
+ @let row = rendered.row;
505
+ @let leaving = rendered.leaving;
506
+ @let selected = !leaving && row.node.id === selectedId();
411
507
  <div
412
- #row
413
- role="treeitem"
414
- [attr.data-node-id]="row.node.id"
415
- [attr.aria-level]="row.level + 1"
416
- [attr.aria-setsize]="row.setSize"
417
- [attr.aria-posinset]="row.posInSet"
418
- [attr.aria-expanded]="row.hasChildren ? row.expanded : null"
419
- [attr.aria-selected]="selected"
420
- [attr.tabindex]="row.node.id === focusId() ? 0 : -1"
421
- [class]="rowClass(selected)"
422
- [style.height.px]="rowHeight"
508
+ #treeRow
509
+ [attr.role]="leaving ? null : 'treeitem'"
510
+ [attr.data-node-id]="leaving ? null : row.node.id"
511
+ [attr.data-leaving]="leaving ? '' : null"
512
+ [attr.aria-hidden]="leaving ? 'true' : null"
513
+ [attr.inert]="leaving ? '' : null"
514
+ [attr.aria-level]="leaving ? null : row.level + 1"
515
+ [attr.aria-setsize]="leaving ? null : row.setSize"
516
+ [attr.aria-posinset]="leaving ? null : row.posInSet"
517
+ [attr.aria-expanded]="!leaving && row.hasChildren ? row.expanded : null"
518
+ [attr.aria-selected]="leaving ? null : selected"
519
+ [attr.tabindex]="!leaving && row.node.id === focusId() ? 0 : -1"
520
+ [class]="rowClass(selected, leaving)"
423
521
  [style.padding-inline-start.px]="row.level * indent + basePadding"
424
522
  [style.padding-inline-end.px]="row.node.id === actionsRow()?.row?.node?.id ? actionsWidth() : null"
425
523
  (click)="onRowClick(row, $event)"
@@ -429,7 +527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
429
527
  >
430
528
  <span data-tree-toggle class="flex size-4 shrink-0 items-center justify-center text-sm" aria-hidden="true">
431
529
  @if (row.hasChildren) {
432
- <st-icon [icon]="row.expanded ? icons.expanded : icons.collapsed" />
530
+ <span data-tree-chevron [class]="chevronClass(row.expanded)"><st-icon [icon]="icons.chevron" /></span>
433
531
  }
434
532
  </span>
435
533
  <st-icon class="shrink-0" [icon]="row.node.icon ?? (row.hasChildren ? icons.branch : icons.leaf)" size="xs" aria-hidden="true" />
@@ -444,10 +542,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
444
542
  <div
445
543
  #actions
446
544
  role="group"
447
- class="absolute inset-e-1 flex items-center gap-0.5"
545
+ [class]="actionsClasses"
448
546
  data-testid="tree-actions"
449
547
  [attr.aria-label]="actionsGroupLabel()"
450
548
  [style.top.px]="selection.top"
549
+ [style.height.px]="rowHeight"
451
550
  (keydown.escape)="focusActionsRow()"
452
551
  (focusin)="lockActions()"
453
552
  (focusout)="releaseLock($event)"
@@ -465,6 +564,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
465
564
  `,
466
565
  }]
467
566
  }], ctorParameters: () => [] });
567
+ /**
568
+ * Keeps rows that left `next` at their previous place, flagged as leaving. Rows still visible keep the order of
569
+ * `next`; a row that left is emitted right after the visible row that preceded it before.
570
+ */
571
+ function mergeLeavingRows(previous, next) {
572
+ const nextIndex = new Map(next.map((rendered, index) => [rendered.row.node.id, index]));
573
+ const merged = [];
574
+ let cursor = 0;
575
+ for (const rendered of previous) {
576
+ const index = nextIndex.get(rendered.row.node.id);
577
+ if (index === undefined) {
578
+ merged.push({ row: rendered.row, leaving: true });
579
+ continue;
580
+ }
581
+ while (cursor <= index)
582
+ merged.push(next[cursor++]);
583
+ }
584
+ while (cursor < next.length)
585
+ merged.push(next[cursor++]);
586
+ return merged;
587
+ }
468
588
  const EMPTY_HEADING = { key: 'sdk.tree.empty', fallback: 'Nothing here yet' };
469
589
  const EMPTY_DESCRIPTION = { key: 'sdk.tree.emptyDescription', fallback: 'There are no items to show.' };
470
590
  const NO_RESULTS_HEADING = { key: 'sdk.tree.noResults', fallback: 'No matches' };
@@ -474,5 +594,5 @@ const NO_RESULTS_DESCRIPTION = { key: 'sdk.tree.noResultsDescription', fallback:
474
594
  * Generated bundle index. Do not edit.
475
595
  */
476
596
 
477
- export { TreeComponent, TreeNodeActionsDirective, treeRow };
597
+ export { TreeComponent, TreeNodeActionsDirective, treeChevron, treeRow };
478
598
  //# sourceMappingURL=sixbell-telco-sdk-components-tree.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-tree.mjs","sources":["../../../projects/sdk/components/tree/src/tree.component.ts","../../../projects/sdk/components/tree/sixbell-telco-sdk-components-tree.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDirective,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tviewChildren,\n} from '@angular/core';\nimport { BadgeComponent } from '@sixbell-telco/sdk/components/badge';\nimport { EmptyStateComponent } from '@sixbell-telco/sdk/components/empty-state';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matChevronRightOutline, matExpandMoreOutline, matLayersOutline, matTuneOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\n/** A node of `st-tree`. Nodes nest to any depth through `children`. */\nexport interface TreeNode<T = unknown> {\n\t/** Unique id, used by `selectedId` and `expandedIds`. */\n\tid: string;\n\t/** Visible text and the filter target. */\n\tlabel: string;\n\t/** Small badge after the label, such as the number of items the node owns. */\n\tbadge?: number | string;\n\t/** Icon SVG (same format as `st-icon` `icon`) shown before the label. Defaults to layers for a branch and tune for a leaf. */\n\ticon?: string;\n\tchildren?: TreeNode<T>[];\n\t/** Your own payload, handed back through the actions template context. */\n\tdata?: T;\n}\n\n/** Context of the `stTreeNodeActions` template. */\nexport interface TreeNodeActionsContext<T = unknown> {\n\t$implicit: TreeNode<T>;\n\t/** Zero-based depth of the node. */\n\tlevel: number;\n\texpanded: boolean;\n}\n\n/**\n * Marks the `ng-template` rendered as the actions of a node (add, edit, delete…).\n * The template is laid over the end of the row the actions belong to (the row whose actions hold focus, else the hovered row, else the selected row), inside a `role=\"group\"` that is a sibling\n * of the tree, so treeitems stay free of interactive content (APG treeview).\n *\n * @example\n * ```html\n * <st-tree [nodes]=\"nodes\" label=\"Categories\">\n * <ng-template stTreeNodeActions let-node>\n * <st-button size=\"xs\" [ghost]=\"true\" [square]=\"true\" [icon]=\"plus\" [ariaLabel]=\"'Add under ' + node.label\" />\n * </ng-template>\n * </st-tree>\n * ```\n */\n@Directive({ selector: 'ng-template[stTreeNodeActions]' })\nexport class TreeNodeActionsDirective<T = unknown> {\n\treadonly template = inject<TemplateRef<TreeNodeActionsContext<T>>>(TemplateRef);\n\n\tstatic ngTemplateContextGuard<T>(_directive: TreeNodeActionsDirective<T>, _context: unknown): _context is TreeNodeActionsContext<T> {\n\t\treturn true;\n\t}\n}\n\n/** A visible row of the flattened tree. */\ninterface TreeRow<T> {\n\tnode: TreeNode<T>;\n\tlevel: number;\n\tparentId: string | null;\n\thasChildren: boolean;\n\texpanded: boolean;\n\tposInSet: number;\n\tsetSize: number;\n}\n\nconst INDENT_PX = 20;\nconst BASE_PADDING_PX = 8;\nconst ROW_HEIGHT_PX = 32;\nconst ROW_GAP_PX = 2;\nconst ACTIONS_HEIGHT_PX = 24;\nconst TYPEAHEAD_RESET_MS = 500;\n\n/**\n * @internal\n * Row classes: selected rows use the primary tint, the keyboard focus ring stays visible.\n */\nexport const treeRow = cva(\n\t[\n\t\t'rounded-field flex cursor-pointer items-center gap-1.5 pr-1 text-sm outline-hidden select-none',\n\t\t'focus-visible:ring-primary focus-visible:ring-offset-base-100 focus-visible:ring-2 focus-visible:ring-offset-1',\n\t\t'motion-safe:transition-colors',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tselected: {\n\t\t\t\ttrue: 'bg-primary/12 text-primary',\n\t\t\t\tfalse: 'text-base-content hover:bg-base-content/10',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: { selected: false },\n\t},\n);\n\n/**\n * Single-select tree following the WAI-ARIA treeview pattern.\n *\n * Rows render flat with `aria-level`, `aria-setsize` and `aria-posinset`, and one roving `tabindex`:\n * Up/Down move, Right expands or enters the first child, Left collapses or returns to the parent,\n * Home/End jump, typing a character jumps to the next label that starts with it (Space joins the typed text while\n * a type-ahead is in progress), `*` expands every sibling branch, Enter/Space select.\n * While filtering, matches show with their ancestors expanded; Left and Right still collapse and\n * expand them until the filter changes.\n *\n * Treeitems hold no interactive content. Project an `ng-template[stTreeNodeActions]` for node\n * actions: it renders inside a `role=\"group\"` toolbar that is a sibling of the tree, laid over the\n * end of the hovered row, else the selected row, and next in the tab order. Hovering a row shows its\n * actions as well, which adds to the keyboard path and never replaces it: Tab from a tree row goes to\n * the actions of the selected node even if the pointer rests on another row, Shift+Tab returns, Escape\n * inside the actions returns focus to the row they belong to. While focus is inside the actions, the\n * pointer cannot move them to another row, not even when focus moves between two action buttons.\n */\n@Component({\n\tselector: 'st-tree',\n\timports: [BadgeComponent, EmptyStateComponent, IconComponent, NgTemplateOutlet],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { '[class]': 'hostClass()' },\n\ttemplate: `\n\t\t@if (rows().length) {\n\t\t\t<div class=\"relative\" (mouseover)=\"onPointerOver($event)\" (mouseleave)=\"hoveredId.set(null)\">\n\t\t\t\t<div role=\"tree\" class=\"flex flex-col\" [attr.aria-label]=\"treeLabel()\" [style.row-gap.px]=\"rowGap\">\n\t\t\t\t\t@for (row of rows(); track row.node.id) {\n\t\t\t\t\t\t@let selected = row.node.id === selectedId();\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t#row\n\t\t\t\t\t\t\trole=\"treeitem\"\n\t\t\t\t\t\t\t[attr.data-node-id]=\"row.node.id\"\n\t\t\t\t\t\t\t[attr.aria-level]=\"row.level + 1\"\n\t\t\t\t\t\t\t[attr.aria-setsize]=\"row.setSize\"\n\t\t\t\t\t\t\t[attr.aria-posinset]=\"row.posInSet\"\n\t\t\t\t\t\t\t[attr.aria-expanded]=\"row.hasChildren ? row.expanded : null\"\n\t\t\t\t\t\t\t[attr.aria-selected]=\"selected\"\n\t\t\t\t\t\t\t[attr.tabindex]=\"row.node.id === focusId() ? 0 : -1\"\n\t\t\t\t\t\t\t[class]=\"rowClass(selected)\"\n\t\t\t\t\t\t\t[style.height.px]=\"rowHeight\"\n\t\t\t\t\t\t\t[style.padding-inline-start.px]=\"row.level * indent + basePadding\"\n\t\t\t\t\t\t\t[style.padding-inline-end.px]=\"row.node.id === actionsRow()?.row?.node?.id ? actionsWidth() : null\"\n\t\t\t\t\t\t\t(click)=\"onRowClick(row, $event)\"\n\t\t\t\t\t\t\t(keydown)=\"onKeydown(row, $event)\"\n\t\t\t\t\t\t\t(focus)=\"focusedId.set(row.node.id)\"\n\t\t\t\t\t\t\t(blur)=\"releaseLock($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span data-tree-toggle class=\"flex size-4 shrink-0 items-center justify-center text-sm\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t@if (row.hasChildren) {\n\t\t\t\t\t\t\t\t\t<st-icon [icon]=\"row.expanded ? icons.expanded : icons.collapsed\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<st-icon class=\"shrink-0\" [icon]=\"row.node.icon ?? (row.hasChildren ? icons.branch : icons.leaf)\" size=\"xs\" aria-hidden=\"true\" />\n\t\t\t\t\t\t\t<span class=\"min-w-0 flex-1 truncate\">{{ row.node.label }}</span>\n\t\t\t\t\t\t\t@if (row.node.badge !== undefined) {\n\t\t\t\t\t\t\t\t<st-badge size=\"xs\" [variant]=\"selected ? 'primary' : 'base'\" [soft]=\"true\">{{ row.node.badge }}</st-badge>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t@if (actionsRow(); as selection) {\n\t\t\t\t\t<div\n\t\t\t\t\t\t#actions\n\t\t\t\t\t\trole=\"group\"\n\t\t\t\t\t\tclass=\"absolute inset-e-1 flex items-center gap-0.5\"\n\t\t\t\t\t\tdata-testid=\"tree-actions\"\n\t\t\t\t\t\t[attr.aria-label]=\"actionsGroupLabel()\"\n\t\t\t\t\t\t[style.top.px]=\"selection.top\"\n\t\t\t\t\t\t(keydown.escape)=\"focusActionsRow()\"\n\t\t\t\t\t\t(focusin)=\"lockActions()\"\n\t\t\t\t\t\t(focusout)=\"releaseLock($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"selection.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: selection.row.node, level: selection.row.level, expanded: selection.row.expanded }\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<st-empty-state size=\"sm\" [illustration]=\"null\" [heading]=\"emptyText().heading\" [description]=\"emptyText().description\" />\n\t\t}\n\t`,\n})\nexport class TreeComponent<T = unknown> {\n\t/** Root nodes. Nodes nest to any depth through `children`. */\n\tnodes = input.required<TreeNode<T>[]>();\n\t/** Accessible name of the tree. Defaults to a translated \"Tree\"; name it for the screen reader user. */\n\tlabel = input<string>('');\n\t/** Accessible name of the node actions group, e.g. \"Actions for Delivery\". Defaults to a translated \"Actions for {label}\". */\n\tactionsLabel = input<string>('');\n\t/** Case-insensitive label filter. Matches keep their ancestors and expand them. */\n\tfilter = input<string>('');\n\t/** Heading of the empty state shown when there are no nodes. Defaults to a translated text. */\n\temptyHeading = input<string>('');\n\t/** Description of the empty state shown when there are no nodes. Defaults to a translated text. */\n\temptyDescription = input<string>('');\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** Id of the selected node, two-way with `[(selectedId)]`. */\n\tselectedId = model<string | null>(null);\n\t/** Ids of the expanded branches, two-way with `[(expandedIds)]`. Ignored while a filter is active. */\n\texpandedIds = model<string[]>([]);\n\n\tprivate readonly actionsTemplate = contentChild(TreeNodeActionsDirective);\n\tprivate readonly rowElements = viewChildren<ElementRef<HTMLElement>>('row');\n\tprivate readonly actionsElement = viewChild<ElementRef<HTMLElement>>('actions');\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal */\n\tprotected readonly indent = INDENT_PX;\n\t/** @internal */\n\tprotected readonly basePadding = BASE_PADDING_PX;\n\t/** @internal */\n\tprotected readonly rowHeight = ROW_HEIGHT_PX;\n\t/** @internal */\n\tprotected readonly rowGap = ROW_GAP_PX;\n\t/** @internal */\n\tprotected readonly icons = { expanded: matExpandMoreOutline, collapsed: matChevronRightOutline, branch: matLayersOutline, leaf: matTuneOutline };\n\n\t/** @internal */\n\tprotected readonly focusedId = signal<string | null>(null);\n\t/** @internal Measured width of the actions group, reserved as end padding on the row showing the actions. */\n\tprotected readonly actionsWidth = signal(0);\n\tprivate typeahead = { buffer: '', at: 0 };\n\n\tprivate readonly normalizedFilter = computed(() => this.filter().trim().toLowerCase());\n\t/** Branches collapsed by the user while filtering; a new filter starts with every match expanded again. */\n\tprivate readonly collapsedWhileFiltering = linkedSignal<string, string[]>({ source: this.normalizedFilter, computation: () => [] });\n\n\t/** @internal */\n\tprotected readonly hostClass = computed(() => cn('block', this.class()));\n\t/** @internal */\n\tprotected readonly hasActions = computed(() => !!this.actionsTemplate());\n\n\t/** Visible rows: expanded branches only, or every match plus its ancestors while filtering. */\n\treadonly rows = computed<TreeRow<T>[]>(() => {\n\t\tconst query = this.normalizedFilter();\n\t\tconst expanded = new Set(this.expandedIds());\n\t\tconst collapsed = new Set(this.collapsedWhileFiltering());\n\t\tconst rows: TreeRow<T>[] = [];\n\n\t\tconst matches = (node: TreeNode<T>): boolean => node.label.toLowerCase().includes(query) || (node.children ?? []).some(matches);\n\n\t\tconst visit = (nodes: TreeNode<T>[], level: number, parentId: string | null) => {\n\t\t\tconst visible = query ? nodes.filter(matches) : nodes;\n\t\t\tvisible.forEach((node, index) => {\n\t\t\t\tconst children = node.children ?? [];\n\t\t\t\tconst isExpanded = children.length > 0 && (query ? !collapsed.has(node.id) : expanded.has(node.id));\n\t\t\t\trows.push({ node, level, parentId, hasChildren: children.length > 0, expanded: isExpanded, posInSet: index + 1, setSize: visible.length });\n\t\t\t\tif (isExpanded) visit(children, level + 1, node.id);\n\t\t\t});\n\t\t};\n\n\t\tvisit(this.nodes(), 0, null);\n\t\treturn rows;\n\t});\n\n\t/** @internal The row holding the roving tab stop: last focused, else selected, else first. */\n\tprotected readonly focusId = computed(() => {\n\t\tconst ids = this.rows().map((row) => row.node.id);\n\t\tconst candidate = [this.focusedId(), this.selectedId()].find((id) => id && ids.includes(id));\n\t\treturn candidate ?? ids[0] ?? null;\n\t});\n\n\t/** @internal Row under the pointer. Hover shows its actions in addition to the selected row's. */\n\tprotected readonly hoveredId = signal<string | null>(null);\n\t/** @internal Node whose actions hold focus; the group stays on it whatever the pointer does. */\n\tprotected readonly lockedId = signal<string | null>(null);\n\n\t/** @internal The row whose actions show (focused group, else hovered, else selected) and where they sit; none when that row is not visible or no actions template is projected. */\n\tprotected readonly actionsRow = computed(() => {\n\t\tconst actions = this.actionsTemplate();\n\t\tif (!actions) return null;\n\t\tconst rows = this.rows();\n\t\tconst target = [this.lockedId(), this.hoveredId(), this.selectedId()].find((id) => id && rows.some((row) => row.node.id === id));\n\t\tconst index = rows.findIndex((row) => row.node.id === target);\n\t\tif (index < 0) return null;\n\t\treturn { row: rows[index], template: actions.template, top: index * (ROW_HEIGHT_PX + ROW_GAP_PX) + (ROW_HEIGHT_PX - ACTIONS_HEIGHT_PX) / 2 };\n\t});\n\n\t/** @internal */\n\tprotected readonly treeLabel = computed(() => this.label() || this.translateLabel({ key: 'sdk.tree.label', fallback: 'Tree' }));\n\n\t/** @internal */\n\tprotected readonly actionsGroupLabel = computed(() => {\n\t\tconst explicit = this.actionsLabel();\n\t\tif (explicit) return explicit;\n\t\tconst label = this.actionsRow()?.row.node.label ?? '';\n\t\treturn this.translateLabel({ key: 'sdk.tree.actions', fallback: 'Actions for {{label}}', params: { label } });\n\t});\n\n\t/** @internal */\n\tprotected readonly emptyText = computed(() => {\n\t\tconst filtering = this.normalizedFilter() !== '' && this.nodes().length > 0;\n\t\tconst heading = this.emptyHeading() || this.translateLabel(filtering ? NO_RESULTS_HEADING : EMPTY_HEADING);\n\t\tconst description = this.emptyDescription() || this.translateLabel(filtering ? NO_RESULTS_DESCRIPTION : EMPTY_DESCRIPTION);\n\t\treturn { heading, description };\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst group = this.actionsElement()?.nativeElement;\n\t\t\tthis.actionsWidth.set(group ? group.offsetWidth + BASE_PADDING_PX : 0);\n\t\t});\n\t}\n\n\t/** @internal */\n\tprotected rowClass(selected: boolean): string {\n\t\treturn cn(treeRow({ selected }));\n\t}\n\n\t/** @internal */\n\tprotected focusActionsRow(): void {\n\t\tconst id = this.actionsRow()?.row.node.id;\n\t\tif (id) this.focusRow(id);\n\t}\n\n\t/** @internal */\n\tprotected lockActions(): void {\n\t\tif (this.lockedId() === null) this.lockedId.set(this.actionsRow()?.row.node.id ?? null);\n\t}\n\n\t/** @internal Drops the lock unless focus is moving inside the actions group (between two action buttons, or from a row into it). */\n\tprotected releaseLock(event: FocusEvent): void {\n\t\tconst next = event.relatedTarget as Node | null;\n\t\tif (next && this.actionsElement()?.nativeElement.contains(next)) return;\n\t\tthis.lockedId.set(null);\n\t}\n\n\t/** @internal Tracks the hovered row; the actions group itself keeps the row it belongs to. */\n\tprotected onPointerOver(event: MouseEvent): void {\n\t\tconst target = event.target as HTMLElement | null;\n\t\tconst id = target?.closest<HTMLElement>('[role=\"treeitem\"]')?.dataset['nodeId'];\n\t\tif (id) this.hoveredId.set(id);\n\t}\n\n\t/** @internal */\n\tprotected onRowClick(row: TreeRow<T>, event: MouseEvent): void {\n\t\tconst onToggle = (event.target as HTMLElement | null)?.closest('[data-tree-toggle]');\n\t\tif (onToggle && row.hasChildren) {\n\t\t\tthis.setExpanded(row.node.id, !row.expanded);\n\t\t} else {\n\t\t\tthis.selectedId.set(row.node.id);\n\t\t}\n\t\tthis.focusedId.set(row.node.id);\n\t}\n\n\t/** @internal */\n\tprotected onKeydown(row: TreeRow<T>, event: KeyboardEvent): void {\n\t\tconst rows = this.rows();\n\t\tconst index = rows.findIndex((candidate) => candidate.node.id === row.node.id);\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.moveFocus(rows[index + 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowUp':\n\t\t\t\tthis.moveFocus(rows[index - 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'Home':\n\t\t\t\tthis.moveFocus(rows[0]);\n\t\t\t\tbreak;\n\t\t\tcase 'End':\n\t\t\t\tthis.moveFocus(rows.at(-1));\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowRight':\n\t\t\t\tif (row.hasChildren && !row.expanded) this.setExpanded(row.node.id, true);\n\t\t\t\telse if (row.expanded) this.moveFocus(rows[index + 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowLeft':\n\t\t\t\tif (row.expanded) this.setExpanded(row.node.id, false);\n\t\t\t\telse this.moveFocus(rows.find((candidate) => candidate.node.id === row.parentId));\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tthis.expandSiblings(rows, row);\n\t\t\t\tbreak;\n\t\t\tcase 'Tab':\n\t\t\t\tthis.lockSelectedActions(event);\n\t\t\t\treturn;\n\t\t\tcase 'Enter':\n\t\t\t\tthis.selectedId.set(row.node.id);\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\t\tif (this.typeaheadActive()) this.typeaheadMove(rows, index, event);\n\t\t\t\telse this.selectedId.set(row.node.id);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (!this.typeaheadMove(rows, index, event)) return;\n\t\t}\n\t\tevent.preventDefault();\n\t}\n\n\t/** Keyboard path wins while focus is in the tree: Tab goes to the actions of the selected node, whatever row the pointer rests on. */\n\tprivate lockSelectedActions(event: KeyboardEvent): void {\n\t\tconst selected = this.selectedId();\n\t\tif (event.shiftKey || !selected || !this.rows().some((row) => row.node.id === selected)) return;\n\t\tthis.lockedId.set(selected);\n\t}\n\n\tprivate typeaheadActive(): boolean {\n\t\treturn this.typeahead.buffer !== '' && Date.now() - this.typeahead.at <= TYPEAHEAD_RESET_MS;\n\t}\n\n\t/** APG `*`: expands every collapsed branch among the siblings of the focused row. */\n\tprivate expandSiblings(rows: TreeRow<T>[], row: TreeRow<T>): void {\n\t\tconst ids = rows\n\t\t\t.filter((candidate) => candidate.parentId === row.parentId && candidate.hasChildren && !candidate.expanded)\n\t\t\t.map((candidate) => candidate.node.id);\n\t\tif (ids.length === 0) return;\n\t\tif (this.normalizedFilter()) {\n\t\t\tthis.collapsedWhileFiltering.set(this.collapsedWhileFiltering().filter((id) => !ids.includes(id)));\n\t\t\treturn;\n\t\t}\n\t\tthis.expandedIds.set([...this.expandedIds().filter((id) => !ids.includes(id)), ...ids]);\n\t}\n\n\t/** Moves focus to the next row whose label starts with the typed characters. Returns whether the key was a type-ahead character. */\n\tprivate typeaheadMove(rows: TreeRow<T>[], index: number, event: KeyboardEvent): boolean {\n\t\tif (event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return false;\n\t\tconst now = Date.now();\n\t\tconst continuing = now - this.typeahead.at <= TYPEAHEAD_RESET_MS;\n\t\tconst buffer = (continuing ? this.typeahead.buffer : '') + event.key.toLowerCase();\n\t\tthis.typeahead = { buffer, at: now };\n\n\t\tconst start = buffer.length === 1 ? index + 1 : index;\n\t\tconst ordered = [...rows.slice(start), ...rows.slice(0, start)];\n\t\tthis.moveFocus(ordered.find((candidate) => candidate.node.label.toLowerCase().startsWith(buffer)));\n\t\treturn true;\n\t}\n\n\tprivate setExpanded(id: string, expanded: boolean): void {\n\t\tif (this.normalizedFilter()) {\n\t\t\tconst others = this.collapsedWhileFiltering().filter((candidate) => candidate !== id);\n\t\t\tthis.collapsedWhileFiltering.set(expanded ? others : [...others, id]);\n\t\t\treturn;\n\t\t}\n\t\tconst others = this.expandedIds().filter((candidate) => candidate !== id);\n\t\tthis.expandedIds.set(expanded ? [...others, id] : others);\n\t}\n\n\tprivate moveFocus(row: TreeRow<T> | undefined): void {\n\t\tif (!row) return;\n\t\tthis.focusedId.set(row.node.id);\n\t\tthis.focusRow(row.node.id);\n\t}\n\n\tprivate focusRow(id: string): void {\n\t\tthis.rowElements()\n\t\t\t.find((element) => element.nativeElement.dataset['nodeId'] === id)\n\t\t\t?.nativeElement.focus();\n\t}\n}\n\nconst EMPTY_HEADING = { key: 'sdk.tree.empty', fallback: 'Nothing here yet' };\nconst EMPTY_DESCRIPTION = { key: 'sdk.tree.emptyDescription', fallback: 'There are no items to show.' };\nconst NO_RESULTS_HEADING = { key: 'sdk.tree.noResults', fallback: 'No matches' };\nconst NO_RESULTS_DESCRIPTION = { key: 'sdk.tree.noResultsDescription', fallback: 'No item matches the filter.' };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAiDA;;;;;;;;;;;;;AAaG;MAEU,wBAAwB,CAAA;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAyC,WAAW,CAAC;AAE/E,IAAA,OAAO,sBAAsB,CAA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AA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAiElE,aAAa,EAAA,UAAA,EAAA,CAAA;kBAnEzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,SAAS;oBACnB,OAAO,EAAE,CAAC,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,CAAC;oBAC/E,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE;AAClC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DT,CAAA,CAAA;AACD,iBAAA;;AAgRD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;AAC7E,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,2BAA2B,EAAE,QAAQ,EAAE,6BAA6B,EAAE;AACvG,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,oBAAoB,EAAE,QAAQ,EAAE,YAAY,EAAE;AAChF,MAAM,sBAAsB,GAAG,EAAE,GAAG,EAAE,+BAA+B,EAAE,QAAQ,EAAE,6BAA6B,EAAE;;ACtdhH;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-tree.mjs","sources":["../../../projects/sdk/components/tree/src/tree.component.ts","../../../projects/sdk/components/tree/sixbell-telco-sdk-components-tree.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterNextRender,\n\tafterRenderEffect,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tviewChildren,\n} from '@angular/core';\nimport { BadgeComponent } from '@sixbell-telco/sdk/components/badge';\nimport { EmptyStateComponent } from '@sixbell-telco/sdk/components/empty-state';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matChevronRightOutline, matLayersOutline, matTuneOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\n/** A node of `st-tree`. Nodes nest to any depth through `children`. */\nexport interface TreeNode<T = unknown> {\n\t/** Unique id, used by `selectedId` and `expandedIds`. */\n\tid: string;\n\t/** Visible text and the filter target. */\n\tlabel: string;\n\t/** Small badge after the label, such as the number of items the node owns. */\n\tbadge?: number | string;\n\t/** Icon SVG (same format as `st-icon` `icon`) shown before the label. Defaults to layers for a branch and tune for a leaf. */\n\ticon?: string;\n\tchildren?: TreeNode<T>[];\n\t/** Your own payload, handed back through the actions template context. */\n\tdata?: T;\n}\n\n/** Context of the `stTreeNodeActions` template. */\nexport interface TreeNodeActionsContext<T = unknown> {\n\t$implicit: TreeNode<T>;\n\t/** Zero-based depth of the node. */\n\tlevel: number;\n\texpanded: boolean;\n}\n\n/**\n * Marks the `ng-template` rendered as the actions of a node (add, edit, delete…).\n * The template is laid over the end of the row the actions belong to (the row whose actions hold focus, else the hovered row, else the selected row), inside a `role=\"group\"` that is a sibling\n * of the tree, so treeitems stay free of interactive content (APG treeview).\n *\n * @example\n * ```html\n * <st-tree [nodes]=\"nodes\" label=\"Categories\">\n * <ng-template stTreeNodeActions let-node>\n * <st-button size=\"xs\" [ghost]=\"true\" [square]=\"true\" [icon]=\"plus\" [ariaLabel]=\"'Add under ' + node.label\" />\n * </ng-template>\n * </st-tree>\n * ```\n */\n@Directive({ selector: 'ng-template[stTreeNodeActions]' })\nexport class TreeNodeActionsDirective<T = unknown> {\n\treadonly template = inject<TemplateRef<TreeNodeActionsContext<T>>>(TemplateRef);\n\n\tstatic ngTemplateContextGuard<T>(_directive: TreeNodeActionsDirective<T>, _context: unknown): _context is TreeNodeActionsContext<T> {\n\t\treturn true;\n\t}\n}\n\n/** A visible row of the flattened tree. */\ninterface TreeRow<T> {\n\tnode: TreeNode<T>;\n\tlevel: number;\n\tparentId: string | null;\n\thasChildren: boolean;\n\texpanded: boolean;\n\tposInSet: number;\n\tsetSize: number;\n}\n\n/** A rendered row: a visible row, or one still leaving after its branch collapsed or the filter dropped it. */\ninterface RenderedRow<T> {\n\trow: TreeRow<T>;\n\tleaving: boolean;\n}\n\nconst INDENT_PX = 20;\nconst BASE_PADDING_PX = 8;\nconst ROW_HEIGHT_PX = 32;\nconst ROW_GAP_PX = 2;\nconst TYPEAHEAD_RESET_MS = 500;\n/** Matches the row `duration-150` collapse transition. */\nconst ROW_LEAVE_MS = 150;\nconst REDUCED_MOTION_QUERY = '(prefers-reduced-motion: reduce)';\n\n/**\n * @internal\n * Row classes: selected rows use the primary tint, the keyboard focus ring stays visible.\n */\nexport const treeRow = cva(\n\t[\n\t\t'rounded-field mt-0.5 flex h-8 cursor-pointer items-center gap-1.5 overflow-hidden pr-1 text-sm outline-hidden select-none',\n\t\t'focus-visible:ring-primary focus-visible:ring-offset-base-100 focus-visible:ring-2 focus-visible:ring-offset-1',\n\t\t'motion-safe:transition-[color,background-color,height,margin,opacity] motion-safe:duration-150 motion-safe:ease-out',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tselected: {\n\t\t\t\ttrue: 'bg-primary/12 text-primary',\n\t\t\t\tfalse: 'text-base-content hover:bg-base-content/10',\n\t\t\t},\n\t\t\t/** Rows inserted after the first render grow from 0 to the row height and fade in. */\n\t\t\tentering: {\n\t\t\t\ttrue: 'motion-safe:starting:mt-0 motion-safe:starting:h-0 motion-safe:starting:opacity-0',\n\t\t\t\tfalse: '',\n\t\t\t},\n\t\t\t/** Rows of a collapsed branch shrink and fade out before they are removed. */\n\t\t\tleaving: {\n\t\t\t\ttrue: 'pointer-events-none mt-0 h-0 opacity-0',\n\t\t\t\tfalse: '',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: { selected: false, entering: false, leaving: false },\n\t},\n);\n\n/**\n * @internal\n * Chevron of a branch row: one icon that turns a quarter when the branch expands.\n */\nexport const treeChevron = cva('flex motion-safe:transition-transform motion-safe:duration-150 motion-safe:ease-out', {\n\tvariants: {\n\t\texpanded: { true: 'rotate-90', false: 'rotate-0' },\n\t},\n\tdefaultVariants: { expanded: false },\n});\n\n/**\n * Single-select tree following the WAI-ARIA treeview pattern.\n *\n * Rows render flat with `aria-level`, `aria-setsize` and `aria-posinset`, and one roving `tabindex`:\n * Up/Down move, Right expands or enters the first child, Left collapses or returns to the parent,\n * Home/End jump, typing a character jumps to the next label that starts with it (Space joins the typed text while\n * a type-ahead is in progress), `*` expands every sibling branch, Enter/Space select.\n * While filtering, matches show with their ancestors expanded; Left and Right still collapse and\n * expand them until the filter changes.\n *\n * Treeitems hold no interactive content. Project an `ng-template[stTreeNodeActions]` for node\n * actions: it renders inside a `role=\"group\"` toolbar that is a sibling of the tree, laid over the\n * end of the hovered row, else the selected row, and next in the tab order. Hovering a row shows its\n * actions as well, which adds to the keyboard path and never replaces it: Tab from a tree row goes to\n * the actions of the selected node even if the pointer rests on another row, Shift+Tab returns, Escape\n * inside the actions returns focus to the row they belong to. While focus is inside the actions, the\n * pointer cannot move them to another row, not even when focus moves between two action buttons.\n */\n@Component({\n\tselector: 'st-tree',\n\timports: [BadgeComponent, EmptyStateComponent, IconComponent, NgTemplateOutlet],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { '[class]': 'hostClass()' },\n\ttemplate: `\n\t\t@if (rows().length) {\n\t\t\t<!-- Read on every pass, even with no actions shown, so the actions know whether they were on screen when the rows started moving. -->\n\t\t\t@let actionsClasses = actionsClass();\n\t\t\t<div class=\"relative flow-root\" (mouseover)=\"onPointerOver($event)\" (mouseleave)=\"hoveredId.set(null)\">\n\t\t\t\t<div role=\"tree\" class=\"-mt-0.5 flex flex-col\" [attr.aria-label]=\"treeLabel()\">\n\t\t\t\t\t@for (rendered of renderedRows(); track rendered.row.node.id) {\n\t\t\t\t\t\t@let row = rendered.row;\n\t\t\t\t\t\t@let leaving = rendered.leaving;\n\t\t\t\t\t\t@let selected = !leaving && row.node.id === selectedId();\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t#treeRow\n\t\t\t\t\t\t\t[attr.role]=\"leaving ? null : 'treeitem'\"\n\t\t\t\t\t\t\t[attr.data-node-id]=\"leaving ? null : row.node.id\"\n\t\t\t\t\t\t\t[attr.data-leaving]=\"leaving ? '' : null\"\n\t\t\t\t\t\t\t[attr.aria-hidden]=\"leaving ? 'true' : null\"\n\t\t\t\t\t\t\t[attr.inert]=\"leaving ? '' : null\"\n\t\t\t\t\t\t\t[attr.aria-level]=\"leaving ? null : row.level + 1\"\n\t\t\t\t\t\t\t[attr.aria-setsize]=\"leaving ? null : row.setSize\"\n\t\t\t\t\t\t\t[attr.aria-posinset]=\"leaving ? null : row.posInSet\"\n\t\t\t\t\t\t\t[attr.aria-expanded]=\"!leaving && row.hasChildren ? row.expanded : null\"\n\t\t\t\t\t\t\t[attr.aria-selected]=\"leaving ? null : selected\"\n\t\t\t\t\t\t\t[attr.tabindex]=\"!leaving && row.node.id === focusId() ? 0 : -1\"\n\t\t\t\t\t\t\t[class]=\"rowClass(selected, leaving)\"\n\t\t\t\t\t\t\t[style.padding-inline-start.px]=\"row.level * indent + basePadding\"\n\t\t\t\t\t\t\t[style.padding-inline-end.px]=\"row.node.id === actionsRow()?.row?.node?.id ? actionsWidth() : null\"\n\t\t\t\t\t\t\t(click)=\"onRowClick(row, $event)\"\n\t\t\t\t\t\t\t(keydown)=\"onKeydown(row, $event)\"\n\t\t\t\t\t\t\t(focus)=\"focusedId.set(row.node.id)\"\n\t\t\t\t\t\t\t(blur)=\"releaseLock($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span data-tree-toggle class=\"flex size-4 shrink-0 items-center justify-center text-sm\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t@if (row.hasChildren) {\n\t\t\t\t\t\t\t\t\t<span data-tree-chevron [class]=\"chevronClass(row.expanded)\"><st-icon [icon]=\"icons.chevron\" /></span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<st-icon class=\"shrink-0\" [icon]=\"row.node.icon ?? (row.hasChildren ? icons.branch : icons.leaf)\" size=\"xs\" aria-hidden=\"true\" />\n\t\t\t\t\t\t\t<span class=\"min-w-0 flex-1 truncate\">{{ row.node.label }}</span>\n\t\t\t\t\t\t\t@if (row.node.badge !== undefined) {\n\t\t\t\t\t\t\t\t<st-badge size=\"xs\" [variant]=\"selected ? 'primary' : 'base'\" [soft]=\"true\">{{ row.node.badge }}</st-badge>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t@if (actionsRow(); as selection) {\n\t\t\t\t\t<div\n\t\t\t\t\t\t#actions\n\t\t\t\t\t\trole=\"group\"\n\t\t\t\t\t\t[class]=\"actionsClasses\"\n\t\t\t\t\t\tdata-testid=\"tree-actions\"\n\t\t\t\t\t\t[attr.aria-label]=\"actionsGroupLabel()\"\n\t\t\t\t\t\t[style.top.px]=\"selection.top\"\n\t\t\t\t\t\t[style.height.px]=\"rowHeight\"\n\t\t\t\t\t\t(keydown.escape)=\"focusActionsRow()\"\n\t\t\t\t\t\t(focusin)=\"lockActions()\"\n\t\t\t\t\t\t(focusout)=\"releaseLock($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t[ngTemplateOutlet]=\"selection.template\"\n\t\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: selection.row.node, level: selection.row.level, expanded: selection.row.expanded }\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<st-empty-state size=\"sm\" [illustration]=\"null\" [heading]=\"emptyText().heading\" [description]=\"emptyText().description\" />\n\t\t}\n\t`,\n})\nexport class TreeComponent<T = unknown> {\n\t/** Root nodes. Nodes nest to any depth through `children`. */\n\tnodes = input.required<TreeNode<T>[]>();\n\t/** Accessible name of the tree. Defaults to a translated \"Tree\"; name it for the screen reader user. */\n\tlabel = input<string>('');\n\t/** Accessible name of the node actions group, e.g. \"Actions for Delivery\". Defaults to a translated \"Actions for {label}\". */\n\tactionsLabel = input<string>('');\n\t/** Case-insensitive label filter. Matches keep their ancestors and expand them. */\n\tfilter = input<string>('');\n\t/** Heading of the empty state shown when there are no nodes. Defaults to a translated text. */\n\temptyHeading = input<string>('');\n\t/** Description of the empty state shown when there are no nodes. Defaults to a translated text. */\n\temptyDescription = input<string>('');\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** Id of the selected node, two-way with `[(selectedId)]`. */\n\tselectedId = model<string | null>(null);\n\t/** Ids of the expanded branches, two-way with `[(expandedIds)]`. Ignored while a filter is active. */\n\texpandedIds = model<string[]>([]);\n\n\tprivate readonly actionsTemplate = contentChild(TreeNodeActionsDirective);\n\tprivate readonly rowElements = viewChildren<ElementRef<HTMLElement>>('treeRow');\n\tprivate readonly actionsElement = viewChild<ElementRef<HTMLElement>>('actions');\n\tprivate readonly translateLabel = injectLabelTranslator();\n\tprivate readonly reducedMotion = inject(DOCUMENT).defaultView?.matchMedia?.(REDUCED_MOTION_QUERY) ?? null;\n\n\t/** @internal */\n\tprotected readonly indent = INDENT_PX;\n\t/** @internal */\n\tprotected readonly basePadding = BASE_PADDING_PX;\n\t/** @internal */\n\tprotected readonly rowHeight = ROW_HEIGHT_PX;\n\t/** @internal */\n\tprotected readonly icons = { chevron: matChevronRightOutline, branch: matLayersOutline, leaf: matTuneOutline };\n\n\t/** @internal */\n\tprotected readonly focusedId = signal<string | null>(null);\n\t/** @internal Measured width of the actions group, reserved as end padding on the row showing the actions. */\n\tprotected readonly actionsWidth = signal(0);\n\tprivate typeahead = { buffer: '', at: 0 };\n\n\tprivate readonly normalizedFilter = computed(() => this.filter().trim().toLowerCase());\n\t/** Branches collapsed by the user while filtering; a new filter starts with every match expanded again. */\n\tprivate readonly collapsedWhileFiltering = linkedSignal<string, string[]>({ source: this.normalizedFilter, computation: () => [] });\n\n\t/** @internal */\n\tprotected readonly hostClass = computed(() => cn('block', this.class()));\n\t/** @internal */\n\tprotected readonly hasActions = computed(() => !!this.actionsTemplate());\n\n\t/** Visible rows: expanded branches only, or every match plus its ancestors while filtering. */\n\treadonly rows = computed<TreeRow<T>[]>(() => {\n\t\tconst query = this.normalizedFilter();\n\t\tconst expanded = new Set(this.expandedIds());\n\t\tconst collapsed = new Set(this.collapsedWhileFiltering());\n\t\tconst rows: TreeRow<T>[] = [];\n\n\t\tconst matches = (node: TreeNode<T>): boolean => node.label.toLowerCase().includes(query) || (node.children ?? []).some(matches);\n\n\t\tconst visit = (nodes: TreeNode<T>[], level: number, parentId: string | null) => {\n\t\t\tconst visible = query ? nodes.filter(matches) : nodes;\n\t\t\tvisible.forEach((node, index) => {\n\t\t\t\tconst children = node.children ?? [];\n\t\t\t\tconst isExpanded = children.length > 0 && (query ? !collapsed.has(node.id) : expanded.has(node.id));\n\t\t\t\trows.push({ node, level, parentId, hasChildren: children.length > 0, expanded: isExpanded, posInSet: index + 1, setSize: visible.length });\n\t\t\t\tif (isExpanded) visit(children, level + 1, node.id);\n\t\t\t});\n\t\t};\n\n\t\tvisit(this.nodes(), 0, null);\n\t\treturn rows;\n\t});\n\n\t/** @internal Rows inserted after the first render animate in; the first render stays still. */\n\tprotected readonly animateEntering = signal(false);\n\n\t/**\n\t * @internal The rows in the DOM: the visible rows plus, unless reduced motion is on, rows that just left (collapsed\n\t * branch, filtered out) kept in place for the collapse transition. Leaving rows are inert, hidden from assistive\n\t * technology and never treeitems, so keyboard navigation and ARIA only ever see `rows()`.\n\t */\n\tprotected readonly renderedRows = linkedSignal<TreeRow<T>[], RenderedRow<T>[]>({\n\t\tsource: this.rows,\n\t\tcomputation: (rows, previous) => {\n\t\t\tconst visible = rows.map((row) => ({ row, leaving: false }));\n\t\t\tif (!previous || !this.animateEntering() || this.reducedMotion?.matches) return visible;\n\t\t\treturn mergeLeavingRows(previous.value, visible);\n\t\t},\n\t});\n\n\t/**\n\t * @internal True for one row transition after the visible rows change (unless reduced motion is on). Meanwhile\n\t * the actions group moves with its row at the same timing, or stays transparent when it has no row to follow.\n\t */\n\tprotected readonly layoutShift = linkedSignal<TreeRow<T>[], boolean>({\n\t\tsource: this.rows,\n\t\tcomputation: (_rows, previous) => !!previous && this.animateEntering() && !this.reducedMotion?.matches,\n\t});\n\n\t/** @internal The row holding the roving tab stop: last focused, else selected, else first. */\n\tprotected readonly focusId = computed(() => {\n\t\tconst ids = this.rows().map((row) => row.node.id);\n\t\tconst candidate = [this.focusedId(), this.selectedId()].find((id) => id && ids.includes(id));\n\t\treturn candidate ?? ids[0] ?? null;\n\t});\n\n\t/** @internal Row under the pointer. Hover shows its actions in addition to the selected row's. */\n\tprotected readonly hoveredId = signal<string | null>(null);\n\t/** @internal Node whose actions hold focus; the group stays on it whatever the pointer does. */\n\tprotected readonly lockedId = signal<string | null>(null);\n\n\t/** @internal The row whose actions show (focused group, else hovered, else selected) and where they sit; none when that row is not visible or no actions template is projected. */\n\tprotected readonly actionsRow = computed(() => {\n\t\tconst actions = this.actionsTemplate();\n\t\tif (!actions) return null;\n\t\tconst rows = this.rows();\n\t\tconst target = [this.lockedId(), this.hoveredId(), this.selectedId()].find((id) => id && rows.some((row) => row.node.id === id));\n\t\tconst index = rows.findIndex((row) => row.node.id === target);\n\t\tif (index < 0) return null;\n\t\treturn { row: rows[index], template: actions.template, top: index * (ROW_HEIGHT_PX + ROW_GAP_PX) };\n\t});\n\n\t/**\n\t * @internal True while the actions follow their own row through a row transition. It turns false for the rest of\n\t * the transition as soon as they switch to another row, so they jump there instead of sliding over other rows.\n\t */\n\tprivate readonly actionsFollowRow = linkedSignal<{ active: boolean; id: string | null }, boolean>({\n\t\tsource: computed(() => ({ active: this.layoutShift(), id: this.actionsRow()?.row.node.id ?? null })),\n\t\tcomputation: (current, previous) => {\n\t\t\tif (!current.active) return false;\n\t\t\tif (previous && previous.source.id !== current.id) return false;\n\t\t\treturn previous?.source.active ? previous.value : true;\n\t\t},\n\t});\n\n\t/** @internal */\n\tprotected readonly treeLabel = computed(() => this.label() || this.translateLabel({ key: 'sdk.tree.label', fallback: 'Tree' }));\n\n\t/** @internal */\n\tprotected readonly actionsGroupLabel = computed(() => {\n\t\tconst explicit = this.actionsLabel();\n\t\tif (explicit) return explicit;\n\t\tconst label = this.actionsRow()?.row.node.label ?? '';\n\t\treturn this.translateLabel({ key: 'sdk.tree.actions', fallback: 'Actions for {{label}}', params: { label } });\n\t});\n\n\t/** @internal */\n\tprotected readonly emptyText = computed(() => {\n\t\tconst filtering = this.normalizedFilter() !== '' && this.nodes().length > 0;\n\t\tconst heading = this.emptyHeading() || this.translateLabel(filtering ? NO_RESULTS_HEADING : EMPTY_HEADING);\n\t\tconst description = this.emptyDescription() || this.translateLabel(filtering ? NO_RESULTS_DESCRIPTION : EMPTY_DESCRIPTION);\n\t\treturn { heading, description };\n\t});\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tconst group = this.actionsElement()?.nativeElement;\n\t\t\tthis.actionsWidth.set(group ? group.offsetWidth + BASE_PADDING_PX : 0);\n\t\t});\n\n\t\tafterNextRender(() => this.animateEntering.set(true));\n\n\t\teffect((onCleanup) => {\n\t\t\tif (!this.layoutShift()) return;\n\t\t\tconst timer = setTimeout(() => this.layoutShift.set(false), ROW_LEAVE_MS);\n\t\t\tonCleanup(() => clearTimeout(timer));\n\t\t});\n\n\t\teffect((onCleanup) => {\n\t\t\tif (!this.renderedRows().some((rendered) => rendered.leaving)) return;\n\t\t\tconst timer = setTimeout(() => this.renderedRows.set(this.rows().map((row) => ({ row, leaving: false }))), ROW_LEAVE_MS);\n\t\t\tonCleanup(() => clearTimeout(timer));\n\t\t});\n\t}\n\n\t/** @internal */\n\tprotected rowClass(selected: boolean, leaving = false): string {\n\t\treturn cn(treeRow({ selected, leaving, entering: this.animateEntering() }));\n\t}\n\n\t/** @internal */\n\t/**\n\t * @internal While rows animate, actions that did not start on their row (a row still growing in, or a switch to\n\t * another row mid-transition) have no settled position to sit on, so they stay transparent until the rows settle.\n\t */\n\tprotected readonly actionsHidden = computed(() => !!this.actionsRow() && this.layoutShift() && !this.actionsFollowRow());\n\n\tprotected readonly actionsClass = computed(() =>\n\t\tcn(\n\t\t\t'absolute inset-e-1 flex items-center gap-0.5 motion-safe:ease-out motion-safe:starting:opacity-0',\n\t\t\tthis.actionsFollowRow()\n\t\t\t\t? 'motion-safe:transition-[top,opacity] motion-safe:duration-150'\n\t\t\t\t: 'motion-safe:transition-opacity motion-safe:duration-100',\n\t\t\tthis.actionsHidden() && 'opacity-0 motion-safe:transition-none',\n\t\t),\n\t);\n\n\t/** @internal */\n\tprotected chevronClass(expanded: boolean): string {\n\t\treturn cn(treeChevron({ expanded }));\n\t}\n\n\t/** @internal */\n\tprotected focusActionsRow(): void {\n\t\tconst id = this.actionsRow()?.row.node.id;\n\t\tif (id) this.focusRow(id);\n\t}\n\n\t/** @internal */\n\tprotected lockActions(): void {\n\t\tif (this.lockedId() === null) this.lockedId.set(this.actionsRow()?.row.node.id ?? null);\n\t}\n\n\t/** @internal Drops the lock unless focus is moving inside the actions group (between two action buttons, or from a row into it). */\n\tprotected releaseLock(event: FocusEvent): void {\n\t\tconst next = event.relatedTarget as Node | null;\n\t\tif (next && this.actionsElement()?.nativeElement.contains(next)) return;\n\t\tthis.lockedId.set(null);\n\t}\n\n\t/** @internal Tracks the hovered row; the actions group itself keeps the row it belongs to. */\n\tprotected onPointerOver(event: MouseEvent): void {\n\t\tconst target = event.target as HTMLElement | null;\n\t\tconst id = target?.closest<HTMLElement>('[role=\"treeitem\"]')?.dataset['nodeId'];\n\t\tif (id) this.hoveredId.set(id);\n\t}\n\n\t/** @internal */\n\tprotected onRowClick(row: TreeRow<T>, event: MouseEvent): void {\n\t\tconst onToggle = (event.target as HTMLElement | null)?.closest('[data-tree-toggle]');\n\t\tif (onToggle && row.hasChildren) {\n\t\t\tthis.setExpanded(row.node.id, !row.expanded);\n\t\t} else {\n\t\t\tthis.selectedId.set(row.node.id);\n\t\t}\n\t\tthis.focusedId.set(row.node.id);\n\t}\n\n\t/** @internal */\n\tprotected onKeydown(row: TreeRow<T>, event: KeyboardEvent): void {\n\t\tconst rows = this.rows();\n\t\tconst index = rows.findIndex((candidate) => candidate.node.id === row.node.id);\n\n\t\tswitch (event.key) {\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.moveFocus(rows[index + 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowUp':\n\t\t\t\tthis.moveFocus(rows[index - 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'Home':\n\t\t\t\tthis.moveFocus(rows[0]);\n\t\t\t\tbreak;\n\t\t\tcase 'End':\n\t\t\t\tthis.moveFocus(rows.at(-1));\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowRight':\n\t\t\t\tif (row.hasChildren && !row.expanded) this.setExpanded(row.node.id, true);\n\t\t\t\telse if (row.expanded) this.moveFocus(rows[index + 1]);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowLeft':\n\t\t\t\tif (row.expanded) this.setExpanded(row.node.id, false);\n\t\t\t\telse this.moveFocus(rows.find((candidate) => candidate.node.id === row.parentId));\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tthis.expandSiblings(rows, row);\n\t\t\t\tbreak;\n\t\t\tcase 'Tab':\n\t\t\t\tthis.lockSelectedActions(event);\n\t\t\t\treturn;\n\t\t\tcase 'Enter':\n\t\t\t\tthis.selectedId.set(row.node.id);\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\t\tif (this.typeaheadActive()) this.typeaheadMove(rows, index, event);\n\t\t\t\telse this.selectedId.set(row.node.id);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (!this.typeaheadMove(rows, index, event)) return;\n\t\t}\n\t\tevent.preventDefault();\n\t}\n\n\t/** Keyboard path wins while focus is in the tree: Tab goes to the actions of the selected node, whatever row the pointer rests on. */\n\tprivate lockSelectedActions(event: KeyboardEvent): void {\n\t\tconst selected = this.selectedId();\n\t\tif (event.shiftKey || !selected || !this.rows().some((row) => row.node.id === selected)) return;\n\t\tthis.lockedId.set(selected);\n\t}\n\n\tprivate typeaheadActive(): boolean {\n\t\treturn this.typeahead.buffer !== '' && Date.now() - this.typeahead.at <= TYPEAHEAD_RESET_MS;\n\t}\n\n\t/** APG `*`: expands every collapsed branch among the siblings of the focused row. */\n\tprivate expandSiblings(rows: TreeRow<T>[], row: TreeRow<T>): void {\n\t\tconst ids = rows\n\t\t\t.filter((candidate) => candidate.parentId === row.parentId && candidate.hasChildren && !candidate.expanded)\n\t\t\t.map((candidate) => candidate.node.id);\n\t\tif (ids.length === 0) return;\n\t\tif (this.normalizedFilter()) {\n\t\t\tthis.collapsedWhileFiltering.set(this.collapsedWhileFiltering().filter((id) => !ids.includes(id)));\n\t\t\treturn;\n\t\t}\n\t\tthis.expandedIds.set([...this.expandedIds().filter((id) => !ids.includes(id)), ...ids]);\n\t}\n\n\t/** Moves focus to the next row whose label starts with the typed characters. Returns whether the key was a type-ahead character. */\n\tprivate typeaheadMove(rows: TreeRow<T>[], index: number, event: KeyboardEvent): boolean {\n\t\tif (event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return false;\n\t\tconst now = Date.now();\n\t\tconst continuing = now - this.typeahead.at <= TYPEAHEAD_RESET_MS;\n\t\tconst buffer = (continuing ? this.typeahead.buffer : '') + event.key.toLowerCase();\n\t\tthis.typeahead = { buffer, at: now };\n\n\t\tconst start = buffer.length === 1 ? index + 1 : index;\n\t\tconst ordered = [...rows.slice(start), ...rows.slice(0, start)];\n\t\tthis.moveFocus(ordered.find((candidate) => candidate.node.label.toLowerCase().startsWith(buffer)));\n\t\treturn true;\n\t}\n\n\tprivate setExpanded(id: string, expanded: boolean): void {\n\t\tif (this.normalizedFilter()) {\n\t\t\tconst others = this.collapsedWhileFiltering().filter((candidate) => candidate !== id);\n\t\t\tthis.collapsedWhileFiltering.set(expanded ? others : [...others, id]);\n\t\t\treturn;\n\t\t}\n\t\tconst others = this.expandedIds().filter((candidate) => candidate !== id);\n\t\tthis.expandedIds.set(expanded ? [...others, id] : others);\n\t}\n\n\tprivate moveFocus(row: TreeRow<T> | undefined): void {\n\t\tif (!row) return;\n\t\tthis.focusedId.set(row.node.id);\n\t\tthis.focusRow(row.node.id);\n\t}\n\n\tprivate focusRow(id: string): void {\n\t\tthis.rowElements()\n\t\t\t.find((element) => element.nativeElement.dataset['nodeId'] === id)\n\t\t\t?.nativeElement.focus();\n\t}\n}\n\n/**\n * Keeps rows that left `next` at their previous place, flagged as leaving. Rows still visible keep the order of\n * `next`; a row that left is emitted right after the visible row that preceded it before.\n */\nfunction mergeLeavingRows<T>(previous: RenderedRow<T>[], next: RenderedRow<T>[]): RenderedRow<T>[] {\n\tconst nextIndex = new Map(next.map((rendered, index) => [rendered.row.node.id, index]));\n\tconst merged: RenderedRow<T>[] = [];\n\tlet cursor = 0;\n\tfor (const rendered of previous) {\n\t\tconst index = nextIndex.get(rendered.row.node.id);\n\t\tif (index === undefined) {\n\t\t\tmerged.push({ row: rendered.row, leaving: true });\n\t\t\tcontinue;\n\t\t}\n\t\twhile (cursor <= index) merged.push(next[cursor++]);\n\t}\n\twhile (cursor < next.length) merged.push(next[cursor++]);\n\treturn merged;\n}\n\nconst EMPTY_HEADING = { key: 'sdk.tree.empty', fallback: 'Nothing here yet' };\nconst EMPTY_DESCRIPTION = { key: 'sdk.tree.emptyDescription', fallback: 'There are no items to show.' };\nconst NO_RESULTS_HEADING = { key: 'sdk.tree.noResults', fallback: 'No matches' };\nconst NO_RESULTS_DESCRIPTION = { key: 'sdk.tree.noResultsDescription', fallback: 'No item matches the filter.' };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAmDA;;;;;;;;;;;;;AAaG;MAEU,wBAAwB,CAAA;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAyC,WAAW,CAAC;AAE/E,IAAA,OAAO,sBAAsB,CAAI,UAAuC,EAAE,QAAiB,EAAA;AAC1F,QAAA,OAAO,IAAI;IACZ;wGALY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,SAAS;mBAAC,EAAE,QAAQ,EAAE,gCAAgC,EAAE;;AA0BzD,MAAM,SAAS,GAAG,EAAE;AACpB,MAAM,eAAe,GAAG,CAAC;AACzB,MAAM,aAAa,GAAG,EAAE;AACxB,MAAM,UAAU,GAAG,CAAC;AACpB,MAAM,kBAAkB,GAAG,GAAG;AAC9B;AACA,MAAM,YAAY,GAAG,GAAG;AACxB,MAAM,oBAAoB,GAAG,kCAAkC;AAE/D;;;AAGG;AACI,MAAM,OAAO,GAAG,GAAG,CACzB;IACC,2HAA2H;IAC3H,gHAAgH;IAChH,qHAAqH;CACrH,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,4BAA4B;AAClC,YAAA,KAAK,EAAE,4CAA4C;AACnD,SAAA;;AAED,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,mFAAmF;AACzF,YAAA,KAAK,EAAE,EAAE;AACT,SAAA;;AAED,QAAA,OAAO,EAAE;AACR,YAA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