@ids-group-ltd/ids-design-system 0.14.1 → 0.14.2
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.
- package/CHANGELOG.md +243 -0
- package/components.md +29 -26
- package/docs/agent/INDEX.md +3 -3
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +3 -3
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +3 -3
- package/docs/agent/charts/ds-config.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +3 -3
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +2 -2
- package/docs/agent/charts/ds-pie-chart.md +2 -2
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +1 -0
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/tables/ds-table.md +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +22 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +19 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +180 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +175 -93
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +47 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +11 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +11 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +15 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +35 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +32 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +66 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +61 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +78 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +25 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +85 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.2.json +427 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +31 -2
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +10 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_overlay-motion.scss +6 -0
- package/styles/_tokens.scss +19 -4
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +24 -10
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +33 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +151 -103
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +23 -11
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +29 -2
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -8
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +17 -7
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +13 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +22 -4
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +33 -6
- package/types/ids-group-ltd-ids-design-system-core.d.ts +14 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, booleanAttribute, viewChild, ViewEncapsulation, Component, inject, model, output, ElementRef, contentChildren, Injector,
|
|
3
|
+
import { input, booleanAttribute, viewChild, ViewEncapsulation, Component, inject, model, output, ElementRef, computed, signal, contentChildren, Injector, afterRenderEffect, isDevMode, effect } from '@angular/core';
|
|
4
4
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
|
|
6
6
|
import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
|
|
@@ -56,8 +56,11 @@ class TabsComponent {
|
|
|
56
56
|
/** When true, a tab's content is instantiated only on first activation and
|
|
57
57
|
kept alive thereafter. When false (default), all panels render eagerly. */
|
|
58
58
|
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
59
|
-
/** When true,
|
|
60
|
-
|
|
59
|
+
/** When true, a horizontal strip scrolls inside its own box and shows
|
|
60
|
+
previous/next arrows while tabs lie beyond its edges, each arrow hidden at
|
|
61
|
+
its own edge. The active tab is scrolled into view on selection. When
|
|
62
|
+
false, tabs keep their width and a strip too long for its container
|
|
63
|
+
overflows it. */
|
|
61
64
|
scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
62
65
|
/** When true, each tab shows a close button. Clicking it emits tabClosed with
|
|
63
66
|
the tab's value (or label as fallback) and does not switch to that tab. */
|
|
@@ -98,6 +101,12 @@ class TabsComponent {
|
|
|
98
101
|
tabClosed = output();
|
|
99
102
|
host = inject((ElementRef));
|
|
100
103
|
uid = `ds-tabs-${++nextId}`;
|
|
104
|
+
tablist = viewChild.required('tablist');
|
|
105
|
+
scrollsHorizontally = computed(() => this.scrollable() && this.orientation() === 'horizontal', ...(ngDevMode ? [{ debugName: "scrollsHorizontally" }] : /* istanbul ignore next */ []));
|
|
106
|
+
overflowing = signal(false, ...(ngDevMode ? [{ debugName: "overflowing" }] : /* istanbul ignore next */ []));
|
|
107
|
+
showScrollArrows = computed(() => this.scrollsHorizontally() && this.overflowing(), ...(ngDevMode ? [{ debugName: "showScrollArrows" }] : /* istanbul ignore next */ []));
|
|
108
|
+
canScrollPrevious = signal(false, ...(ngDevMode ? [{ debugName: "canScrollPrevious" }] : /* istanbul ignore next */ []));
|
|
109
|
+
canScrollNext = signal(false, ...(ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []));
|
|
101
110
|
tabs = contentChildren(TabComponent, ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
102
111
|
// Nothing router-shaped is touched until `urlParam` is set: no DI lookup, and
|
|
103
112
|
// above all no subscription. A tab strip is perfectly valid outside a routed
|
|
@@ -109,6 +118,21 @@ class TabsComponent {
|
|
|
109
118
|
route = null;
|
|
110
119
|
urlParams = signal(null, ...(ngDevMode ? [{ debugName: "urlParams" }] : /* istanbul ignore next */ []));
|
|
111
120
|
constructor() {
|
|
121
|
+
afterRenderEffect((onCleanup) => {
|
|
122
|
+
this.tabs();
|
|
123
|
+
if (!this.scrollsHorizontally()) {
|
|
124
|
+
this.overflowing.set(false);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const strip = this.tablist().nativeElement;
|
|
128
|
+
const observer = new ResizeObserver(() => this.updateScrollArrows());
|
|
129
|
+
observer.observe(strip);
|
|
130
|
+
observer.observe(strip.parentElement);
|
|
131
|
+
for (const tab of Array.from(strip.children)) {
|
|
132
|
+
observer.observe(tab);
|
|
133
|
+
}
|
|
134
|
+
onCleanup(() => observer.disconnect());
|
|
135
|
+
});
|
|
112
136
|
/**
|
|
113
137
|
* Two strips sharing a parameter is the failure mode of going round a screen
|
|
114
138
|
* turning this on: `tab` is the obvious name, so the second strip takes it
|
|
@@ -299,6 +323,41 @@ class TabsComponent {
|
|
|
299
323
|
});
|
|
300
324
|
}
|
|
301
325
|
}
|
|
326
|
+
updateScrollArrows() {
|
|
327
|
+
const strip = this.tablist().nativeElement;
|
|
328
|
+
const scrolled = Math.abs(strip.scrollLeft);
|
|
329
|
+
const hidden = strip.scrollWidth - strip.clientWidth;
|
|
330
|
+
// Against the row, not the strip: the arrows narrow the strip, and a strip
|
|
331
|
+
// measured against its own width would keep them for tabs that fit without them.
|
|
332
|
+
this.overflowing.set(strip.scrollWidth > strip.parentElement.clientWidth + 1);
|
|
333
|
+
this.canScrollPrevious.set(scrolled > 1);
|
|
334
|
+
this.canScrollNext.set(scrolled < hidden - 1);
|
|
335
|
+
}
|
|
336
|
+
scrollPage(towardEnd) {
|
|
337
|
+
const strip = this.tablist().nativeElement;
|
|
338
|
+
const mirror = getComputedStyle(strip).direction === 'rtl' ? -1 : 1;
|
|
339
|
+
const inlineStart = (rect) => mirror === 1 ? rect.left : -rect.right;
|
|
340
|
+
const inlineEnd = (rect) => mirror === 1 ? rect.right : -rect.left;
|
|
341
|
+
const view = strip.getBoundingClientRect();
|
|
342
|
+
const tabRects = Array.from(strip.children, (tab) => tab.getBoundingClientRect());
|
|
343
|
+
const step = towardEnd ? 1 : -1;
|
|
344
|
+
let distance = 0;
|
|
345
|
+
if (towardEnd) {
|
|
346
|
+
const next = tabRects.find((rect) => inlineEnd(rect) > inlineEnd(view) + 1);
|
|
347
|
+
distance = next ? inlineStart(next) - inlineStart(view) : 0;
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
const previous = tabRects
|
|
351
|
+
.reverse()
|
|
352
|
+
.find((rect) => inlineStart(rect) < inlineStart(view) - 1);
|
|
353
|
+
distance = previous ? inlineEnd(previous) - inlineEnd(view) : 0;
|
|
354
|
+
}
|
|
355
|
+
// A tab wider than the strip is already aligned, so move a full width.
|
|
356
|
+
if (distance * step < 1) {
|
|
357
|
+
distance = step * strip.clientWidth;
|
|
358
|
+
}
|
|
359
|
+
strip.scrollBy({ left: mirror * distance });
|
|
360
|
+
}
|
|
302
361
|
onCloseClick(event, index) {
|
|
303
362
|
event.stopPropagation();
|
|
304
363
|
this.closeTab(index);
|
|
@@ -366,14 +425,15 @@ class TabsComponent {
|
|
|
366
425
|
});
|
|
367
426
|
}
|
|
368
427
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
369
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TabsComponent, isStandalone: true, selector: "ds-tabs", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, urlParam: { classPropertyName: "urlParam", publicName: "urlParam", isSignal: true, isRequired: false, transformFunction: null }, rememberLastTab: { classPropertyName: "rememberLastTab", publicName: "rememberLastTab", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", tabClosed: "tabClosed" }, host: { properties: { "class.vertical-host": "orientation() === 'vertical'" } }, queries: [{ propertyName: "tabs", predicate: TabComponent, isSignal: true }], ngImport: i0, template: "<div\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\">\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\">\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"intl().tabs.close(tab.label())\"\n (click)=\"onCloseClick($event, $index)\">\n <ds-icon\n name=\"x\"\n [size]=\"12\">\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\">\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n", styles: ["@charset \"UTF-8\";:where(: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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tabs-divider: var(--ds-tabs-divider, var(--border-divider));--_tab-padding-x: var(--ds-tab-padding-x, var(--space-4));--_tab-padding-y: var(--ds-tab-padding-y, var(--space-3));--_tab-padding-top: var(--ds-tab-padding-top, var(--_tab-padding-y));--_tab-padding-bottom: var(--ds-tab-padding-bottom, var(--_tab-padding-y));--_tab-label-font-weight: var(--ds-tab-label-font-weight, var(--font-weight-semibold));--_tab-label-font-size: var(--ds-tab-label-font-size, var(--font-size-s));--_tabs-gap: var(--ds-tabs-gap, var(--space-2));--_tabs-panel-padding-top: var(--ds-tabs-panel-padding-top, var(--space-3));--_tab-label-color: var(--ds-tab-label-color, var(--text-secondary));--_tab-label-color-hover: var(--ds-tab-label-color-hover, var(--text-primary));--_tab-label-color-active: var(--ds-tab-label-color-active, var(--accent));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--accent));--_tab-indicator-width: var(--ds-tab-indicator-width, var(--border-width-strong));--_tabs-pills-bg-color: var(--ds-tabs-pills-bg-color, var(--surface-secondary));--_tab-pill-bg-color-hover: var(--ds-tab-pill-bg-color-hover, var(--accent-subtitle));--_tab-pill-bg-color-active: var(--ds-tab-pill-bg-color-active, var(--surface-default));--_tab-pill-bg-color-active-hover: var(--ds-tab-pill-bg-color-active-hover, var(--accent-subtitle));--_tab-pill-label-color-active: var(--ds-tab-pill-label-color-active, var(--accent-strong));--_tab-pill-radius: var(--ds-tab-pill-radius, var(--ds-radius-control));--_tab-badge-bg-color: var(--ds-tab-badge-bg-color, var(--surface-secondary));--_tab-badge-label-color: var(--ds-tab-badge-label-color, var(--text-secondary));--_tab-close-icon-color: var(--ds-tab-close-icon-color, var(--text-tertiary));--_tab-close-bg-color-hover: var(--ds-tab-close-bg-color-hover, var(--surface-secondary));display:block}.tabs{display:flex;gap:var(--_tabs-gap);border-bottom:var(--border-width-default) solid var(--_tabs-divider)}.tabs.scrollable{overflow-x:auto;--focus-ring-offset: calc(-1 * var(--focus-ring-width));flex-wrap:nowrap;scrollbar-width:none}.tabs.scrollable::-webkit-scrollbar{display:none}.tabs .tab{display:inline-flex;align-items:center;gap:var(--space-2);padding:var(--_tab-padding-top) var(--_tab-padding-x) var(--_tab-padding-bottom);border:0;background:transparent;font:var(--_tab-label-font-weight) var(--_tab-label-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_tab-label-color);cursor:pointer;border-bottom:var(--_tab-indicator-width) solid transparent;margin-bottom:calc(-1 * var(--border-width-default));white-space:nowrap;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.tabs .tab:hover{color:var(--_tab-label-color-hover)}.tabs .tab.active{color:var(--_tab-label-color-active);border-bottom-color:var(--_tab-indicator-color)}.tabs .tab .badge{min-width:var(--badge-count-size);height:var(--badge-count-size);padding:0 var(--space-1-5);display:inline-grid;place-items:center;border-radius:var(--radius-pill);font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wide);white-space:nowrap;background:var(--_tab-badge-bg-color);color:var(--_tab-badge-label-color);margin-left:var(--space-1)}.tabs .tab .tab-close{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);border-radius:var(--ds-radius-inner);color:var(--_tab-close-icon-color);margin-left:var(--space-1);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.tabs .tab .tab-close:hover{background-color:var(--_tab-close-bg-color-hover);color:var(--text-primary)}.tabs .tab .tab-close:active{background-color:var(--surface-muted)}.tabs .tab: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(--radius-sm)}.tabs .tab:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.tabs .tab[disabled],.tabs .tab.disabled{color:var(--text-disabled);cursor:not-allowed}:host(.secondary) .tab.active{--_tab-label-color-active: var(--ds-tab-label-color-active, var(--secondary-strong));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--secondary))}.tabs.pills{border-bottom:0;gap:var(--space-1);padding:var(--space-1);background-color:var(--_tabs-pills-bg-color);border-radius:var(--_tab-pill-radius);display:inline-flex}.tabs.pills .tab{padding:var(--space-2) var(--space-3);border-bottom:0;margin-bottom:0;border-radius:var(--_tab-pill-radius);color:var(--_tab-label-color)}.tabs.pills .tab:hover{background-color:var(--_tab-pill-bg-color-hover);color:var(--_tab-label-color-hover)}.tabs.pills .tab.active{background-color:var(--_tab-pill-bg-color-active);color:var(--_tab-pill-label-color-active);border-bottom:0}.tabs.pills .tab.active:not(:focus-visible){box-shadow:var(--shadow-1)}.tabs.pills .tab.active:hover{background-color:var(--_tab-pill-bg-color-active-hover)}.tabs.pills.scrollable{display:flex;width:100%}.tabs.vertical{flex-direction:column;border-bottom:0;border-right:var(--border-width-default) solid var(--_tabs-divider);gap:var(--space-1)}.tabs.vertical .tab{border-bottom:0;margin-bottom:0;border-right:var(--_tab-indicator-width) solid transparent;margin-right:calc(-1 * var(--border-width-default));text-align:left;justify-content:flex-start}.tabs.vertical .tab.active{color:var(--_tab-label-color-active);border-bottom-color:transparent;border-right-color:var(--_tab-indicator-color)}:host(.vertical-host){display:flex;flex-direction:row;align-items:flex-start;gap:var(--space-4)}.panel{padding-top:var(--_tabs-panel-padding-top)}.panel:empty{display:none}.panel[hidden]{display:none}:host(.vertical-host) .panel{padding-top:0;padding-left:var(--space-4);flex:1;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
428
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TabsComponent, isStandalone: true, selector: "ds-tabs", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, urlParam: { classPropertyName: "urlParam", publicName: "urlParam", isSignal: true, isRequired: false, transformFunction: null }, rememberLastTab: { classPropertyName: "rememberLastTab", publicName: "rememberLastTab", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", tabClosed: "tabClosed" }, host: { properties: { "class.vertical-host": "orientation() === 'vertical'", "class.scrolling-host": "scrollsHorizontally()" } }, queries: [{ propertyName: "tabs", predicate: TabComponent, isSignal: true }], viewQueries: [{ propertyName: "tablist", first: true, predicate: ["tablist"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollPrevious()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(false)\">\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n<div\n #tablist\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\"\n (scroll)=\"updateScrollArrows()\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\">\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\">\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"intl().tabs.close(tab.label())\"\n (click)=\"onCloseClick($event, $index)\">\n <ds-icon\n name=\"x\"\n [size]=\"12\">\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollNext()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(true)\">\n <ds-icon\n name=\"chevronRight\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\">\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n", styles: ["@charset \"UTF-8\";:where(: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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tabs-divider: var(--ds-tabs-divider, var(--border-divider));--_tab-padding-x: var(--ds-tab-padding-x, var(--space-4));--_tab-padding-y: var(--ds-tab-padding-y, var(--space-3));--_tab-padding-top: var(--ds-tab-padding-top, var(--_tab-padding-y));--_tab-padding-bottom: var(--ds-tab-padding-bottom, var(--_tab-padding-y));--_tab-label-font-weight: var(--ds-tab-label-font-weight, var(--font-weight-semibold));--_tab-label-font-size: var(--ds-tab-label-font-size, var(--font-size-s));--_tabs-gap: var(--ds-tabs-gap, var(--space-2));--_tabs-panel-padding-top: var(--ds-tabs-panel-padding-top, var(--space-3));--_tab-label-color: var(--ds-tab-label-color, var(--text-secondary));--_tab-label-color-hover: var(--ds-tab-label-color-hover, var(--text-primary));--_tab-label-color-active: var(--ds-tab-label-color-active, var(--accent));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--accent));--_tab-indicator-width: var(--ds-tab-indicator-width, var(--border-width-strong));--_tabs-pills-bg-color: var(--ds-tabs-pills-bg-color, var(--surface-secondary));--_tab-pill-bg-color-hover: var(--ds-tab-pill-bg-color-hover, var(--accent-subtitle));--_tab-pill-bg-color-active: var(--ds-tab-pill-bg-color-active, var(--surface-default));--_tab-pill-bg-color-active-hover: var(--ds-tab-pill-bg-color-active-hover, var(--accent-subtitle));--_tab-pill-label-color-active: var(--ds-tab-pill-label-color-active, var(--accent-strong));--_tab-pill-radius: var(--ds-tab-pill-radius, var(--ds-radius-control));--_tab-badge-bg-color: var(--ds-tab-badge-bg-color, var(--surface-secondary));--_tab-badge-label-color: var(--ds-tab-badge-label-color, var(--text-secondary));--_tab-close-icon-color: var(--ds-tab-close-icon-color, var(--text-tertiary));--_tab-close-bg-color-hover: var(--ds-tab-close-bg-color-hover, var(--surface-secondary));display:block}:host(.scrolling-host){display:grid;grid-template-columns:auto minmax(0,1fr) auto}:host(.scrolling-host)>.tabs{grid-column:2}:host(.scrolling-host)>.panel{grid-column:1/-1;min-width:0}.scroll-arrow{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--hit-sm);padding:0;border:0;border-bottom:var(--border-width-default) solid var(--_tabs-divider);border-radius:var(--ds-radius-control) var(--ds-radius-control) 0 0;background:transparent;color:var(--_tab-label-color);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.scroll-arrow:hover{background-color:var(--surface-muted);color:var(--_tab-label-color-hover)}.scroll-arrow:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.scroll-arrow.at-edge{visibility:hidden}.scroll-arrow:dir(rtl) ds-icon{transform:scaleX(-1)}:host(.scrolling-host:has(> .pills)) .scroll-arrow{border-bottom:0;border-radius:var(--ds-radius-control)}.tabs{display:flex;gap:var(--_tabs-gap);border-bottom:var(--border-width-default) solid var(--_tabs-divider)}.tabs.scrollable{overflow-x:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){.tabs.scrollable{scroll-behavior:auto}}.tabs.scrollable{--focus-ring-offset: calc(-1 * var(--focus-ring-width));flex-wrap:nowrap;scrollbar-width:none}.tabs.scrollable::-webkit-scrollbar{display:none}.tabs .tab{display:inline-flex;align-items:center;gap:var(--space-2);padding:var(--_tab-padding-top) var(--_tab-padding-x) var(--_tab-padding-bottom);border:0;background:transparent;font:var(--_tab-label-font-weight) var(--_tab-label-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_tab-label-color);cursor:pointer;border-bottom:var(--_tab-indicator-width) solid transparent;margin-bottom:calc(-1 * var(--border-width-default));white-space:nowrap;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.tabs .tab:hover{color:var(--_tab-label-color-hover)}.tabs .tab.active{color:var(--_tab-label-color-active);border-bottom-color:var(--_tab-indicator-color)}.tabs .tab .badge{min-width:var(--badge-count-size);height:var(--badge-count-size);padding:0 var(--space-1-5);display:inline-grid;place-items:center;border-radius:var(--radius-pill);font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wide);white-space:nowrap;background:var(--_tab-badge-bg-color);color:var(--_tab-badge-label-color);margin-left:var(--space-1)}.tabs .tab .tab-close{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);border-radius:var(--ds-radius-inner);color:var(--_tab-close-icon-color);margin-left:var(--space-1);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.tabs .tab .tab-close:hover{background-color:var(--_tab-close-bg-color-hover);color:var(--text-primary)}.tabs .tab .tab-close:active{background-color:var(--surface-muted)}.tabs .tab: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(--radius-sm)}.tabs .tab:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.tabs .tab[disabled],.tabs .tab.disabled{color:var(--text-disabled);cursor:not-allowed}:host(.secondary) .tab.active{--_tab-label-color-active: var(--ds-tab-label-color-active, var(--secondary-strong));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--secondary))}.tabs.pills{border-bottom:0;gap:var(--space-1);padding:var(--space-1);background-color:var(--_tabs-pills-bg-color);border-radius:var(--_tab-pill-radius);display:inline-flex}.tabs.pills .tab{padding:var(--space-2) var(--space-3);border-bottom:0;margin-bottom:0;border-radius:var(--_tab-pill-radius);color:var(--_tab-label-color)}.tabs.pills .tab:hover{background-color:var(--_tab-pill-bg-color-hover);color:var(--_tab-label-color-hover)}.tabs.pills .tab.active{background-color:var(--_tab-pill-bg-color-active);color:var(--_tab-pill-label-color-active);border-bottom:0}.tabs.pills .tab.active:not(:focus-visible){box-shadow:var(--shadow-1)}.tabs.pills .tab.active:hover{background-color:var(--_tab-pill-bg-color-active-hover)}.tabs.pills.scrollable{display:flex;width:100%}.tabs.vertical{flex-direction:column;border-bottom:0;border-right:var(--border-width-default) solid var(--_tabs-divider);gap:var(--space-1)}.tabs.vertical .tab{border-bottom:0;margin-bottom:0;border-right:var(--_tab-indicator-width) solid transparent;margin-right:calc(-1 * var(--border-width-default));text-align:left;justify-content:flex-start}.tabs.vertical .tab.active{color:var(--_tab-label-color-active);border-bottom-color:transparent;border-right-color:var(--_tab-indicator-color)}:host(.vertical-host){display:flex;flex-direction:row;align-items:flex-start;gap:var(--space-4)}.panel{padding-top:var(--_tabs-panel-padding-top)}.panel:empty{display:none}.panel[hidden]{display:none}:host(.vertical-host) .panel{padding-top:0;padding-left:var(--space-4);flex:1;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
370
429
|
}
|
|
371
430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TabsComponent, decorators: [{
|
|
372
431
|
type: Component,
|
|
373
432
|
args: [{ selector: 'ds-tabs', standalone: true, imports: [NgTemplateOutlet, IconComponent], encapsulation: ViewEncapsulation.Emulated, host: {
|
|
374
433
|
'[class.vertical-host]': "orientation() === 'vertical'",
|
|
375
|
-
|
|
376
|
-
}], ctorParameters: () => [], propDecorators: { selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], urlParam: [{ type: i0.Input, args: [{ isSignal: true, alias: "urlParam", required: false }] }], rememberLastTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "rememberLastTab", required: false }] }], tabClosed: [{ type: i0.Output, args: ["tabClosed"] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TabComponent), { isSignal: true }] }] } });
|
|
434
|
+
'[class.scrolling-host]': 'scrollsHorizontally()',
|
|
435
|
+
}, template: "@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollPrevious()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(false)\">\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n<div\n #tablist\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\"\n (scroll)=\"updateScrollArrows()\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\">\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\">\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"intl().tabs.close(tab.label())\"\n (click)=\"onCloseClick($event, $index)\">\n <ds-icon\n name=\"x\"\n [size]=\"12\">\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollNext()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(true)\">\n <ds-icon\n name=\"chevronRight\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\">\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n", styles: ["@charset \"UTF-8\";:where(: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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tabs-divider: var(--ds-tabs-divider, var(--border-divider));--_tab-padding-x: var(--ds-tab-padding-x, var(--space-4));--_tab-padding-y: var(--ds-tab-padding-y, var(--space-3));--_tab-padding-top: var(--ds-tab-padding-top, var(--_tab-padding-y));--_tab-padding-bottom: var(--ds-tab-padding-bottom, var(--_tab-padding-y));--_tab-label-font-weight: var(--ds-tab-label-font-weight, var(--font-weight-semibold));--_tab-label-font-size: var(--ds-tab-label-font-size, var(--font-size-s));--_tabs-gap: var(--ds-tabs-gap, var(--space-2));--_tabs-panel-padding-top: var(--ds-tabs-panel-padding-top, var(--space-3));--_tab-label-color: var(--ds-tab-label-color, var(--text-secondary));--_tab-label-color-hover: var(--ds-tab-label-color-hover, var(--text-primary));--_tab-label-color-active: var(--ds-tab-label-color-active, var(--accent));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--accent));--_tab-indicator-width: var(--ds-tab-indicator-width, var(--border-width-strong));--_tabs-pills-bg-color: var(--ds-tabs-pills-bg-color, var(--surface-secondary));--_tab-pill-bg-color-hover: var(--ds-tab-pill-bg-color-hover, var(--accent-subtitle));--_tab-pill-bg-color-active: var(--ds-tab-pill-bg-color-active, var(--surface-default));--_tab-pill-bg-color-active-hover: var(--ds-tab-pill-bg-color-active-hover, var(--accent-subtitle));--_tab-pill-label-color-active: var(--ds-tab-pill-label-color-active, var(--accent-strong));--_tab-pill-radius: var(--ds-tab-pill-radius, var(--ds-radius-control));--_tab-badge-bg-color: var(--ds-tab-badge-bg-color, var(--surface-secondary));--_tab-badge-label-color: var(--ds-tab-badge-label-color, var(--text-secondary));--_tab-close-icon-color: var(--ds-tab-close-icon-color, var(--text-tertiary));--_tab-close-bg-color-hover: var(--ds-tab-close-bg-color-hover, var(--surface-secondary));display:block}:host(.scrolling-host){display:grid;grid-template-columns:auto minmax(0,1fr) auto}:host(.scrolling-host)>.tabs{grid-column:2}:host(.scrolling-host)>.panel{grid-column:1/-1;min-width:0}.scroll-arrow{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--hit-sm);padding:0;border:0;border-bottom:var(--border-width-default) solid var(--_tabs-divider);border-radius:var(--ds-radius-control) var(--ds-radius-control) 0 0;background:transparent;color:var(--_tab-label-color);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.scroll-arrow:hover{background-color:var(--surface-muted);color:var(--_tab-label-color-hover)}.scroll-arrow:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.scroll-arrow.at-edge{visibility:hidden}.scroll-arrow:dir(rtl) ds-icon{transform:scaleX(-1)}:host(.scrolling-host:has(> .pills)) .scroll-arrow{border-bottom:0;border-radius:var(--ds-radius-control)}.tabs{display:flex;gap:var(--_tabs-gap);border-bottom:var(--border-width-default) solid var(--_tabs-divider)}.tabs.scrollable{overflow-x:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){.tabs.scrollable{scroll-behavior:auto}}.tabs.scrollable{--focus-ring-offset: calc(-1 * var(--focus-ring-width));flex-wrap:nowrap;scrollbar-width:none}.tabs.scrollable::-webkit-scrollbar{display:none}.tabs .tab{display:inline-flex;align-items:center;gap:var(--space-2);padding:var(--_tab-padding-top) var(--_tab-padding-x) var(--_tab-padding-bottom);border:0;background:transparent;font:var(--_tab-label-font-weight) var(--_tab-label-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_tab-label-color);cursor:pointer;border-bottom:var(--_tab-indicator-width) solid transparent;margin-bottom:calc(-1 * var(--border-width-default));white-space:nowrap;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.tabs .tab:hover{color:var(--_tab-label-color-hover)}.tabs .tab.active{color:var(--_tab-label-color-active);border-bottom-color:var(--_tab-indicator-color)}.tabs .tab .badge{min-width:var(--badge-count-size);height:var(--badge-count-size);padding:0 var(--space-1-5);display:inline-grid;place-items:center;border-radius:var(--radius-pill);font:var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wide);white-space:nowrap;background:var(--_tab-badge-bg-color);color:var(--_tab-badge-label-color);margin-left:var(--space-1)}.tabs .tab .tab-close{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);border-radius:var(--ds-radius-inner);color:var(--_tab-close-icon-color);margin-left:var(--space-1);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.tabs .tab .tab-close:hover{background-color:var(--_tab-close-bg-color-hover);color:var(--text-primary)}.tabs .tab .tab-close:active{background-color:var(--surface-muted)}.tabs .tab: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(--radius-sm)}.tabs .tab:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.tabs .tab[disabled],.tabs .tab.disabled{color:var(--text-disabled);cursor:not-allowed}:host(.secondary) .tab.active{--_tab-label-color-active: var(--ds-tab-label-color-active, var(--secondary-strong));--_tab-indicator-color: var(--ds-tab-indicator-color, var(--secondary))}.tabs.pills{border-bottom:0;gap:var(--space-1);padding:var(--space-1);background-color:var(--_tabs-pills-bg-color);border-radius:var(--_tab-pill-radius);display:inline-flex}.tabs.pills .tab{padding:var(--space-2) var(--space-3);border-bottom:0;margin-bottom:0;border-radius:var(--_tab-pill-radius);color:var(--_tab-label-color)}.tabs.pills .tab:hover{background-color:var(--_tab-pill-bg-color-hover);color:var(--_tab-label-color-hover)}.tabs.pills .tab.active{background-color:var(--_tab-pill-bg-color-active);color:var(--_tab-pill-label-color-active);border-bottom:0}.tabs.pills .tab.active:not(:focus-visible){box-shadow:var(--shadow-1)}.tabs.pills .tab.active:hover{background-color:var(--_tab-pill-bg-color-active-hover)}.tabs.pills.scrollable{display:flex;width:100%}.tabs.vertical{flex-direction:column;border-bottom:0;border-right:var(--border-width-default) solid var(--_tabs-divider);gap:var(--space-1)}.tabs.vertical .tab{border-bottom:0;margin-bottom:0;border-right:var(--_tab-indicator-width) solid transparent;margin-right:calc(-1 * var(--border-width-default));text-align:left;justify-content:flex-start}.tabs.vertical .tab.active{color:var(--_tab-label-color-active);border-bottom-color:transparent;border-right-color:var(--_tab-indicator-color)}:host(.vertical-host){display:flex;flex-direction:row;align-items:flex-start;gap:var(--space-4)}.panel{padding-top:var(--_tabs-panel-padding-top)}.panel:empty{display:none}.panel[hidden]{display:none}:host(.vertical-host) .panel{padding-top:0;padding-left:var(--space-4);flex:1;min-width:0}\n"] }]
|
|
436
|
+
}], ctorParameters: () => [], propDecorators: { selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], urlParam: [{ type: i0.Input, args: [{ isSignal: true, alias: "urlParam", required: false }] }], rememberLastTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "rememberLastTab", required: false }] }], tabClosed: [{ type: i0.Output, args: ["tabClosed"] }], tablist: [{ type: i0.ViewChild, args: ['tablist', { isSignal: true }] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TabComponent), { isSignal: true }] }] } });
|
|
377
437
|
|
|
378
438
|
/**
|
|
379
439
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tabs.mjs","sources":["../../../src/lib/components/tabs/tab.component.ts","../../../src/lib/components/tabs/tabs.component.ts","../../../src/lib/components/tabs/tabs.component.html","../../../src/lib/components/tabs/ids-group-ltd-ids-design-system-components-tabs.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n input,\n viewChild,\n} from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-tab',\n standalone: true,\n template: `<ng-template #content>\n <ng-content></ng-content>\n </ng-template>`,\n styles: [':host { display: none; }'],\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TabComponent {\n /** Text shown in the tab button. */\n readonly label = input.required<string>();\n /** Icon shown before the label. */\n readonly icon = input<IconName | null>(null);\n /** Numeric badge shown after the label. */\n readonly count = input<number | null>(null);\n /** Excludes the tab from selection and keyboard navigation. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Identifier emitted by tabClosed. Falls back to label when omitted. */\n readonly value = input<string | null>(null);\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n Injector,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { ActivatedRoute, Router, type ParamMap } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { TabComponent } from './tab.component';\nimport type { TabsOrientation, TabsVariant } from './tabs.types';\n\nlet nextId = 0;\n\n// Which query parameters are already claimed, so two strips on one screen cannot\n// quietly fight over the same one. Dev-only bookkeeping; nothing reads it in\n// production.\nconst claimedUrlParams = new Map<string, number>();\n\n/** Label → URL name. Diacritics are decomposed and dropped so \"Zusätze\" gives\n * `zusatze` rather than a percent-encoded umlaut. A label with nothing sluggable\n * in it — CJK, or bare punctuation — keeps its raw text rather than becoming an\n * empty parameter. */\nfunction slugify(label: string): string {\n const slug = label\n .normalize('NFKD')\n .replace(/\\p{M}/gu, '')\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '');\n\n return slug || label;\n}\n\n@Component({\n selector: 'ds-tabs',\n standalone: true,\n imports: [NgTemplateOutlet, IconComponent],\n templateUrl: './tabs.component.html',\n styleUrl: './tabs.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.vertical-host]': \"orientation() === 'vertical'\",\n },\n})\nexport class TabsComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Index of the active tab, two-way bound. */\n readonly selectedIndex = model<number>(0);\n /** Visual style of the tab strip. */\n readonly variant = input<TabsVariant>('line');\n\n /** When true, a tab's content is instantiated only on first activation and\n kept alive thereafter. When false (default), all panels render eagerly. */\n readonly lazy = input(false, { transform: booleanAttribute });\n\n /** When true, the tab strip scrolls horizontally instead of wrapping. The\n active tab is scrolled into view on selection. */\n readonly scrollable = input(false, { transform: booleanAttribute });\n\n /** When true, each tab shows a close button. Clicking it emits tabClosed with\n the tab's value (or label as fallback) and does not switch to that tab. */\n readonly closable = input(false, { transform: booleanAttribute });\n\n /** Controls whether the tab list and panel are stacked horizontally (default)\n or the tab list runs vertically beside the panel. */\n readonly orientation = input<TabsOrientation>('horizontal');\n\n /**\n * Keep the active tab in a query parameter, so it survives F5, a shared link\n * and the Back button: `urlParam=\"tab\"` gives `?tab=activity`. Empty (the\n * default) leaves the URL alone, and the strip works exactly as before.\n *\n * The names come from each `ds-tab`'s `value` (falling back to its `label`),\n * so there is no second list to keep in step. **Names, not indices** — writing\n * `?tab=1` would silently repoint every old link the moment a tab is inserted.\n * The FIRST tab writes no parameter and every write REPLACES the history\n * entry, so a pristine screen keeps a clean address and flipping tabs does not\n * fill the Back button.\n *\n * An unknown or missing name lands on the first tab rather than throwing: a\n * URL is user input, and a stale bookmark should still open the screen.\n *\n * Outside a routed context the input is inert. Nothing router-shaped is even\n * resolved until you set it — no DI lookup and, more to the point, no\n * subscription — so a strip that never uses this costs exactly what it did\n * before the input existed.\n */\n readonly urlParam = input<string>('');\n\n /** Reopen the tab this screen was last left on, per path, from `sessionStorage`.\n * Off by default, and needs `urlParam` for the names — a remembered INDEX would\n * repoint the moment a tab is inserted. A link always wins: the parameter is read\n * first, memory only fills the gap the first tab leaves in the URL. Session, not\n * local, so tomorrow is a fresh visit. */\n readonly rememberLastTab = input(false, { transform: booleanAttribute });\n\n /** Emitted when a close button is clicked. Carries the tab's value input, or\n its label when value is not set. The host is responsible for removing the\n tab from its list. */\n readonly tabClosed = output<string>();\n\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly uid = `ds-tabs-${++nextId}`;\n\n protected readonly tabs = contentChildren(TabComponent);\n\n // Nothing router-shaped is touched until `urlParam` is set: no DI lookup, and\n // above all no subscription. A tab strip is perfectly valid outside a routed\n // context — in a dialog, on a static page — and most are, so the default must\n // cost nothing. Resolved through the component's own Injector rather than\n // `inject(Router)` at construction, which would run for every instance.\n private readonly injector = inject(Injector);\n private router: Router | null = null;\n private route: ActivatedRoute | null = null;\n private readonly urlParams = signal<ParamMap | null>(null);\n\n constructor() {\n /**\n * Two strips sharing a parameter is the failure mode of going round a screen\n * turning this on: `tab` is the obvious name, so the second strip takes it\n * too, and from then on each write erases the other's tab. Nothing throws and\n * the URL looks plausible — it just restores the wrong tab on reload.\n */\n if (isDevMode()) {\n effect((onCleanup) => {\n const param = this.urlParam();\n if (!param) {\n return;\n }\n const held = claimedUrlParams.get(param) ?? 0;\n if (held > 0) {\n console.warn(\n `[ds-tabs] urlParam=\"${param}\" is already used by another ds-tabs on this screen. Both strips write the same query parameter, so each one erases the other's tab and a reload restores whichever wrote last. Give each strip its own name.`,\n );\n }\n claimedUrlParams.set(param, held + 1);\n // onCleanup alone: it runs before every re-run AND on destroy, so\n // releasing again from a DestroyRef would double-count the way out.\n onCleanup(() => {\n const now = (claimedUrlParams.get(param) ?? 1) - 1;\n if (now > 0) {\n claimedUrlParams.set(param, now);\n } else {\n claimedUrlParams.delete(param);\n }\n });\n });\n }\n\n // Subscribe only while the feature is on, and drop the subscription again if\n // `urlParam` is cleared.\n effect((onCleanup) => {\n if (!this.urlParam() || !this.resolveRouting()) {\n this.urlParams.set(null);\n\n return;\n }\n const subscription = this.route!.queryParamMap.subscribe((map) =>\n this.urlParams.set(map),\n );\n onCleanup(() => subscription.unsubscribe());\n });\n\n // URL -> tab. Runs again when the tabs arrive (content children resolve\n // after the first pass) and on every Back/Forward, which is what makes the\n // history walk the tabs. Writing back is guarded by the equality check\n // below, so this cannot loop with `writeUrl`.\n effect(() => {\n const param = this.urlParam();\n const params = this.urlParams();\n const tabs = this.tabs();\n if (!param || !params || tabs.length === 0) {\n return;\n }\n const target = params.get(param) ?? this.rememberedName();\n const found = target\n ? tabs.findIndex((tab) => this.tabName(tab) === target)\n : 0;\n const index = found < 0 ? 0 : found;\n if (index !== this.selectedIndex()) {\n this.selectedIndex.set(index);\n }\n });\n }\n\n /** Resolves the router pair on first use. Null outside a routed context, which\n * makes `urlParam` inert there rather than an error. */\n private resolveRouting(): boolean {\n this.router ??= this.injector.get(Router, null);\n this.route ??= this.injector.get(ActivatedRoute, null);\n\n return !!this.router && !!this.route;\n }\n\n /** The tab's name AS IT APPEARS IN THE URL, and deliberately NOT what\n * `tabClosed` emits — that stays the label, because a host matches it against\n * its own list. A slug is still derived from display copy, so renaming a tab\n * still breaks saved links; `value` is the only fix for that. */\n private tabName(tab: TabComponent): string {\n return tab.value() ?? slugify(tab.label());\n }\n\n /** Storage key for `rememberLastTab`: the path plus the parameter name. Per\n * path because that is the screen a reader returns to, and the parameter is\n * what keeps two strips on one path apart — which the dev warning above\n * already insists is unique. */\n private memoryKey(): string | null {\n const param = this.urlParam();\n if (!this.rememberLastTab() || !param || !this.resolveRouting()) {\n return null;\n }\n\n return `ds-tabs:${this.router!.url.split('?')[0]}:${param}`;\n }\n\n /** Every access is wrapped: Safari in private mode throws on write, and a\n * quota error must not take a tab strip down with it. Same guard as\n * `ds-table`'s persisted layout. */\n private rememberedName(): string | null {\n const key = this.memoryKey();\n if (!key) {\n return null;\n }\n try {\n return sessionStorage.getItem(key);\n } catch {\n return null;\n }\n }\n\n private remember(index: number): void {\n const key = this.memoryKey();\n const tab = this.tabs()[index];\n if (!key || !tab) {\n return;\n }\n try {\n // Stored for the first tab too, which writes no parameter: without that,\n // deliberately going back to tab one would be forgotten and the next visit\n // would reopen the tab before it.\n sessionStorage.setItem(key, this.tabName(tab));\n } catch {\n // Storage unavailable — the strip simply stops remembering.\n }\n }\n\n private writeUrl(index: number): void {\n this.remember(index);\n const param = this.urlParam();\n if (!param || !this.resolveRouting()) {\n return;\n }\n const tab = this.tabs()[index];\n void this.router!.navigate([], {\n relativeTo: this.route,\n queryParams: { [param]: index === 0 || !tab ? null : this.tabName(tab) },\n queryParamsHandling: 'merge',\n replaceUrl: true,\n });\n }\n\n /** Tracks which tab indices have ever been activated (for lazy rendering). */\n private readonly activatedIndices = signal<ReadonlySet<number>>(new Set([0]));\n\n protected tabId(index: number): string {\n return `${this.uid}-tab-${index}`;\n }\n\n protected panelId(index: number): string {\n return `${this.uid}-panel-${index}`;\n }\n\n protected readonly tablistClasses = computed(() => {\n const parts = ['tabs'];\n if (this.variant() === 'pills') {\n parts.push('pills');\n }\n if (this.scrollable()) {\n parts.push('scrollable');\n }\n if (this.orientation() === 'vertical') {\n parts.push('vertical');\n }\n\n return parts.join(' ');\n });\n\n /** Whether the panel for a given index should be rendered (lazy gate). */\n protected isPanelVisible(index: number): boolean {\n if (!this.lazy()) {\n return index === this.selectedIndex();\n }\n\n return this.activatedIndices().has(index);\n }\n\n protected tabClasses(index: number, disabled: boolean): string {\n const parts = ['tab'];\n if (index === this.selectedIndex()) {\n parts.push('active');\n }\n if (disabled) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n }\n\n protected select(index: number, disabled: boolean): void {\n if (disabled) {\n return;\n }\n this.selectedIndex.set(index);\n this.writeUrl(index);\n if (this.lazy()) {\n this.activatedIndices.update((previous) => {\n if (previous.has(index)) {\n return previous;\n }\n\n return new Set([...previous, index]);\n });\n }\n if (this.scrollable()) {\n setTimeout(() => {\n const button = this.host.nativeElement.querySelector(\n `#${this.tabId(index)}`,\n ) as HTMLElement | null;\n button?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n });\n }\n }\n\n protected onCloseClick(event: MouseEvent, index: number): void {\n event.stopPropagation();\n this.closeTab(index);\n }\n\n private closeTab(index: number): void {\n const tab = this.tabs()[index];\n if (!tab) {\n return;\n }\n this.tabClosed.emit(tab.value() ?? tab.label());\n }\n\n /** Roving keyboard navigation across the tablist (APG automatic activation).\n Arrow axis follows orientation: Left/Right for horizontal, Up/Down for vertical. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n const count = this.tabs().length;\n if (!count) {\n return;\n }\n // APG: Delete removes the focused tab when the tablist is closable.\n if (this.closable() && event.key === 'Delete') {\n event.preventDefault();\n this.closeTab(index);\n\n return;\n }\n const isVertical = this.orientation() === 'vertical';\n const forwardKey = isVertical ? 'ArrowDown' : 'ArrowRight';\n const backwardKey = isVertical ? 'ArrowUp' : 'ArrowLeft';\n // Keep both axes active so vertical also responds to Left/Right and\n // horizontal also responds to Up/Down for cross-axis discoverability,\n // matching the ARIA APG recommendation for roving tabindex.\n const forward =\n event.key === forwardKey ||\n (!isVertical && event.key === 'ArrowDown') ||\n (isVertical && event.key === 'ArrowRight');\n const backward =\n event.key === backwardKey ||\n (!isVertical && event.key === 'ArrowUp') ||\n (isVertical && event.key === 'ArrowLeft');\n\n let next: number;\n if (forward) {\n next = (index + 1) % count;\n } else if (backward) {\n next = (index - 1 + count) % count;\n } else if (event.key === 'Home') {\n next = 0;\n } else if (event.key === 'End') {\n next = count - 1;\n } else {\n return;\n }\n event.preventDefault();\n // Skip disabled tabs in the travel direction.\n const step = backward || event.key === 'End' ? -1 : 1;\n let guard = 0;\n while (this.tabs()[next]?.disabled() && guard < count) {\n next = (next + step + count) % count;\n guard++;\n }\n this.select(next, this.tabs()[next]?.disabled() ?? false);\n setTimeout(() => {\n const element = this.host.nativeElement.querySelector(\n `#${this.tabId(next)}`,\n ) as HTMLElement | null;\n element?.focus();\n });\n }\n}\n","<div\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\">\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\">\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"intl().tabs.close(tab.label())\"\n (click)=\"onCloseClick($event, $index)\">\n <ds-icon\n name=\"x\"\n [size]=\"12\">\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\">\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAmBa,YAAY,CAAA;;AAEd,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAEhC,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;;IAElC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;AAClC,IAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAuB,SAAS,CAAC;wGAX3D,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA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UAAA,EAAA,CAAA;kBAXzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,EAAE,aAAa,CAAC,EAAA,aAAA,EAG3B,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,uBAAuB,EAAE,8BAA8B;AACxD,qBAAA,EAAA,QAAA,EAAA,2zDAAA,EAAA,MAAA,EAAA,CAAA,q3NAAA,CAAA,EAAA;y/BA+DyC,YAAY,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AErHxD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tabs.mjs","sources":["../../../src/lib/components/tabs/tab.component.ts","../../../src/lib/components/tabs/tabs.component.ts","../../../src/lib/components/tabs/tabs.component.html","../../../src/lib/components/tabs/ids-group-ltd-ids-design-system-components-tabs.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n input,\n viewChild,\n} from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-tab',\n standalone: true,\n template: `<ng-template #content>\n <ng-content></ng-content>\n </ng-template>`,\n styles: [':host { display: none; }'],\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TabComponent {\n /** Text shown in the tab button. */\n readonly label = input.required<string>();\n /** Icon shown before the label. */\n readonly icon = input<IconName | null>(null);\n /** Numeric badge shown after the label. */\n readonly count = input<number | null>(null);\n /** Excludes the tab from selection and keyboard navigation. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Identifier emitted by tabClosed. Falls back to label when omitted. */\n readonly value = input<string | null>(null);\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n afterRenderEffect,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n inject,\n Injector,\n input,\n isDevMode,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ActivatedRoute, Router, type ParamMap } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { TabComponent } from './tab.component';\nimport type { TabsOrientation, TabsVariant } from './tabs.types';\n\nlet nextId = 0;\n\n// Which query parameters are already claimed, so two strips on one screen cannot\n// quietly fight over the same one. Dev-only bookkeeping; nothing reads it in\n// production.\nconst claimedUrlParams = new Map<string, number>();\n\n/** Label → URL name. Diacritics are decomposed and dropped so \"Zusätze\" gives\n * `zusatze` rather than a percent-encoded umlaut. A label with nothing sluggable\n * in it — CJK, or bare punctuation — keeps its raw text rather than becoming an\n * empty parameter. */\nfunction slugify(label: string): string {\n const slug = label\n .normalize('NFKD')\n .replace(/\\p{M}/gu, '')\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '');\n\n return slug || label;\n}\n\n@Component({\n selector: 'ds-tabs',\n standalone: true,\n imports: [NgTemplateOutlet, IconComponent],\n templateUrl: './tabs.component.html',\n styleUrl: './tabs.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.vertical-host]': \"orientation() === 'vertical'\",\n '[class.scrolling-host]': 'scrollsHorizontally()',\n },\n})\nexport class TabsComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Index of the active tab, two-way bound. */\n readonly selectedIndex = model<number>(0);\n /** Visual style of the tab strip. */\n readonly variant = input<TabsVariant>('line');\n\n /** When true, a tab's content is instantiated only on first activation and\n kept alive thereafter. When false (default), all panels render eagerly. */\n readonly lazy = input(false, { transform: booleanAttribute });\n\n /** When true, a horizontal strip scrolls inside its own box and shows\n previous/next arrows while tabs lie beyond its edges, each arrow hidden at\n its own edge. The active tab is scrolled into view on selection. When\n false, tabs keep their width and a strip too long for its container\n overflows it. */\n readonly scrollable = input(false, { transform: booleanAttribute });\n\n /** When true, each tab shows a close button. Clicking it emits tabClosed with\n the tab's value (or label as fallback) and does not switch to that tab. */\n readonly closable = input(false, { transform: booleanAttribute });\n\n /** Controls whether the tab list and panel are stacked horizontally (default)\n or the tab list runs vertically beside the panel. */\n readonly orientation = input<TabsOrientation>('horizontal');\n\n /**\n * Keep the active tab in a query parameter, so it survives F5, a shared link\n * and the Back button: `urlParam=\"tab\"` gives `?tab=activity`. Empty (the\n * default) leaves the URL alone, and the strip works exactly as before.\n *\n * The names come from each `ds-tab`'s `value` (falling back to its `label`),\n * so there is no second list to keep in step. **Names, not indices** — writing\n * `?tab=1` would silently repoint every old link the moment a tab is inserted.\n * The FIRST tab writes no parameter and every write REPLACES the history\n * entry, so a pristine screen keeps a clean address and flipping tabs does not\n * fill the Back button.\n *\n * An unknown or missing name lands on the first tab rather than throwing: a\n * URL is user input, and a stale bookmark should still open the screen.\n *\n * Outside a routed context the input is inert. Nothing router-shaped is even\n * resolved until you set it — no DI lookup and, more to the point, no\n * subscription — so a strip that never uses this costs exactly what it did\n * before the input existed.\n */\n readonly urlParam = input<string>('');\n\n /** Reopen the tab this screen was last left on, per path, from `sessionStorage`.\n * Off by default, and needs `urlParam` for the names — a remembered INDEX would\n * repoint the moment a tab is inserted. A link always wins: the parameter is read\n * first, memory only fills the gap the first tab leaves in the URL. Session, not\n * local, so tomorrow is a fresh visit. */\n readonly rememberLastTab = input(false, { transform: booleanAttribute });\n\n /** Emitted when a close button is clicked. Carries the tab's value input, or\n its label when value is not set. The host is responsible for removing the\n tab from its list. */\n readonly tabClosed = output<string>();\n\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly uid = `ds-tabs-${++nextId}`;\n private readonly tablist =\n viewChild.required<ElementRef<HTMLElement>>('tablist');\n\n protected readonly scrollsHorizontally = computed(\n () => this.scrollable() && this.orientation() === 'horizontal',\n );\n private readonly overflowing = signal(false);\n protected readonly showScrollArrows = computed(\n () => this.scrollsHorizontally() && this.overflowing(),\n );\n protected readonly canScrollPrevious = signal(false);\n protected readonly canScrollNext = signal(false);\n\n protected readonly tabs = contentChildren(TabComponent);\n\n // Nothing router-shaped is touched until `urlParam` is set: no DI lookup, and\n // above all no subscription. A tab strip is perfectly valid outside a routed\n // context — in a dialog, on a static page — and most are, so the default must\n // cost nothing. Resolved through the component's own Injector rather than\n // `inject(Router)` at construction, which would run for every instance.\n private readonly injector = inject(Injector);\n private router: Router | null = null;\n private route: ActivatedRoute | null = null;\n private readonly urlParams = signal<ParamMap | null>(null);\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n this.tabs();\n if (!this.scrollsHorizontally()) {\n this.overflowing.set(false);\n\n return;\n }\n const strip = this.tablist().nativeElement;\n const observer = new ResizeObserver(() => this.updateScrollArrows());\n observer.observe(strip);\n observer.observe(strip.parentElement!);\n for (const tab of Array.from(strip.children)) {\n observer.observe(tab);\n }\n onCleanup(() => observer.disconnect());\n });\n\n /**\n * Two strips sharing a parameter is the failure mode of going round a screen\n * turning this on: `tab` is the obvious name, so the second strip takes it\n * too, and from then on each write erases the other's tab. Nothing throws and\n * the URL looks plausible — it just restores the wrong tab on reload.\n */\n if (isDevMode()) {\n effect((onCleanup) => {\n const param = this.urlParam();\n if (!param) {\n return;\n }\n const held = claimedUrlParams.get(param) ?? 0;\n if (held > 0) {\n console.warn(\n `[ds-tabs] urlParam=\"${param}\" is already used by another ds-tabs on this screen. Both strips write the same query parameter, so each one erases the other's tab and a reload restores whichever wrote last. Give each strip its own name.`,\n );\n }\n claimedUrlParams.set(param, held + 1);\n // onCleanup alone: it runs before every re-run AND on destroy, so\n // releasing again from a DestroyRef would double-count the way out.\n onCleanup(() => {\n const now = (claimedUrlParams.get(param) ?? 1) - 1;\n if (now > 0) {\n claimedUrlParams.set(param, now);\n } else {\n claimedUrlParams.delete(param);\n }\n });\n });\n }\n\n // Subscribe only while the feature is on, and drop the subscription again if\n // `urlParam` is cleared.\n effect((onCleanup) => {\n if (!this.urlParam() || !this.resolveRouting()) {\n this.urlParams.set(null);\n\n return;\n }\n const subscription = this.route!.queryParamMap.subscribe((map) =>\n this.urlParams.set(map),\n );\n onCleanup(() => subscription.unsubscribe());\n });\n\n // URL -> tab. Runs again when the tabs arrive (content children resolve\n // after the first pass) and on every Back/Forward, which is what makes the\n // history walk the tabs. Writing back is guarded by the equality check\n // below, so this cannot loop with `writeUrl`.\n effect(() => {\n const param = this.urlParam();\n const params = this.urlParams();\n const tabs = this.tabs();\n if (!param || !params || tabs.length === 0) {\n return;\n }\n const target = params.get(param) ?? this.rememberedName();\n const found = target\n ? tabs.findIndex((tab) => this.tabName(tab) === target)\n : 0;\n const index = found < 0 ? 0 : found;\n if (index !== this.selectedIndex()) {\n this.selectedIndex.set(index);\n }\n });\n }\n\n /** Resolves the router pair on first use. Null outside a routed context, which\n * makes `urlParam` inert there rather than an error. */\n private resolveRouting(): boolean {\n this.router ??= this.injector.get(Router, null);\n this.route ??= this.injector.get(ActivatedRoute, null);\n\n return !!this.router && !!this.route;\n }\n\n /** The tab's name AS IT APPEARS IN THE URL, and deliberately NOT what\n * `tabClosed` emits — that stays the label, because a host matches it against\n * its own list. A slug is still derived from display copy, so renaming a tab\n * still breaks saved links; `value` is the only fix for that. */\n private tabName(tab: TabComponent): string {\n return tab.value() ?? slugify(tab.label());\n }\n\n /** Storage key for `rememberLastTab`: the path plus the parameter name. Per\n * path because that is the screen a reader returns to, and the parameter is\n * what keeps two strips on one path apart — which the dev warning above\n * already insists is unique. */\n private memoryKey(): string | null {\n const param = this.urlParam();\n if (!this.rememberLastTab() || !param || !this.resolveRouting()) {\n return null;\n }\n\n return `ds-tabs:${this.router!.url.split('?')[0]}:${param}`;\n }\n\n /** Every access is wrapped: Safari in private mode throws on write, and a\n * quota error must not take a tab strip down with it. Same guard as\n * `ds-table`'s persisted layout. */\n private rememberedName(): string | null {\n const key = this.memoryKey();\n if (!key) {\n return null;\n }\n try {\n return sessionStorage.getItem(key);\n } catch {\n return null;\n }\n }\n\n private remember(index: number): void {\n const key = this.memoryKey();\n const tab = this.tabs()[index];\n if (!key || !tab) {\n return;\n }\n try {\n // Stored for the first tab too, which writes no parameter: without that,\n // deliberately going back to tab one would be forgotten and the next visit\n // would reopen the tab before it.\n sessionStorage.setItem(key, this.tabName(tab));\n } catch {\n // Storage unavailable — the strip simply stops remembering.\n }\n }\n\n private writeUrl(index: number): void {\n this.remember(index);\n const param = this.urlParam();\n if (!param || !this.resolveRouting()) {\n return;\n }\n const tab = this.tabs()[index];\n void this.router!.navigate([], {\n relativeTo: this.route,\n queryParams: { [param]: index === 0 || !tab ? null : this.tabName(tab) },\n queryParamsHandling: 'merge',\n replaceUrl: true,\n });\n }\n\n /** Tracks which tab indices have ever been activated (for lazy rendering). */\n private readonly activatedIndices = signal<ReadonlySet<number>>(new Set([0]));\n\n protected tabId(index: number): string {\n return `${this.uid}-tab-${index}`;\n }\n\n protected panelId(index: number): string {\n return `${this.uid}-panel-${index}`;\n }\n\n protected readonly tablistClasses = computed(() => {\n const parts = ['tabs'];\n if (this.variant() === 'pills') {\n parts.push('pills');\n }\n if (this.scrollable()) {\n parts.push('scrollable');\n }\n if (this.orientation() === 'vertical') {\n parts.push('vertical');\n }\n\n return parts.join(' ');\n });\n\n /** Whether the panel for a given index should be rendered (lazy gate). */\n protected isPanelVisible(index: number): boolean {\n if (!this.lazy()) {\n return index === this.selectedIndex();\n }\n\n return this.activatedIndices().has(index);\n }\n\n protected tabClasses(index: number, disabled: boolean): string {\n const parts = ['tab'];\n if (index === this.selectedIndex()) {\n parts.push('active');\n }\n if (disabled) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n }\n\n protected select(index: number, disabled: boolean): void {\n if (disabled) {\n return;\n }\n this.selectedIndex.set(index);\n this.writeUrl(index);\n if (this.lazy()) {\n this.activatedIndices.update((previous) => {\n if (previous.has(index)) {\n return previous;\n }\n\n return new Set([...previous, index]);\n });\n }\n if (this.scrollable()) {\n setTimeout(() => {\n const button = this.host.nativeElement.querySelector(\n `#${this.tabId(index)}`,\n ) as HTMLElement | null;\n button?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n });\n }\n }\n\n protected updateScrollArrows(): void {\n const strip = this.tablist().nativeElement;\n const scrolled = Math.abs(strip.scrollLeft);\n const hidden = strip.scrollWidth - strip.clientWidth;\n // Against the row, not the strip: the arrows narrow the strip, and a strip\n // measured against its own width would keep them for tabs that fit without them.\n this.overflowing.set(\n strip.scrollWidth > strip.parentElement!.clientWidth + 1,\n );\n this.canScrollPrevious.set(scrolled > 1);\n this.canScrollNext.set(scrolled < hidden - 1);\n }\n\n protected scrollPage(towardEnd: boolean): void {\n const strip = this.tablist().nativeElement;\n const mirror = getComputedStyle(strip).direction === 'rtl' ? -1 : 1;\n const inlineStart = (rect: DOMRect): number =>\n mirror === 1 ? rect.left : -rect.right;\n const inlineEnd = (rect: DOMRect): number =>\n mirror === 1 ? rect.right : -rect.left;\n const view = strip.getBoundingClientRect();\n const tabRects = Array.from(strip.children, (tab) =>\n tab.getBoundingClientRect(),\n );\n const step = towardEnd ? 1 : -1;\n let distance = 0;\n if (towardEnd) {\n const next = tabRects.find(\n (rect) => inlineEnd(rect) > inlineEnd(view) + 1,\n );\n distance = next ? inlineStart(next) - inlineStart(view) : 0;\n } else {\n const previous = tabRects\n .reverse()\n .find((rect) => inlineStart(rect) < inlineStart(view) - 1);\n distance = previous ? inlineEnd(previous) - inlineEnd(view) : 0;\n }\n // A tab wider than the strip is already aligned, so move a full width.\n if (distance * step < 1) {\n distance = step * strip.clientWidth;\n }\n strip.scrollBy({ left: mirror * distance });\n }\n\n protected onCloseClick(event: MouseEvent, index: number): void {\n event.stopPropagation();\n this.closeTab(index);\n }\n\n private closeTab(index: number): void {\n const tab = this.tabs()[index];\n if (!tab) {\n return;\n }\n this.tabClosed.emit(tab.value() ?? tab.label());\n }\n\n /** Roving keyboard navigation across the tablist (APG automatic activation).\n Arrow axis follows orientation: Left/Right for horizontal, Up/Down for vertical. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n const count = this.tabs().length;\n if (!count) {\n return;\n }\n // APG: Delete removes the focused tab when the tablist is closable.\n if (this.closable() && event.key === 'Delete') {\n event.preventDefault();\n this.closeTab(index);\n\n return;\n }\n const isVertical = this.orientation() === 'vertical';\n const forwardKey = isVertical ? 'ArrowDown' : 'ArrowRight';\n const backwardKey = isVertical ? 'ArrowUp' : 'ArrowLeft';\n // Keep both axes active so vertical also responds to Left/Right and\n // horizontal also responds to Up/Down for cross-axis discoverability,\n // matching the ARIA APG recommendation for roving tabindex.\n const forward =\n event.key === forwardKey ||\n (!isVertical && event.key === 'ArrowDown') ||\n (isVertical && event.key === 'ArrowRight');\n const backward =\n event.key === backwardKey ||\n (!isVertical && event.key === 'ArrowUp') ||\n (isVertical && event.key === 'ArrowLeft');\n\n let next: number;\n if (forward) {\n next = (index + 1) % count;\n } else if (backward) {\n next = (index - 1 + count) % count;\n } else if (event.key === 'Home') {\n next = 0;\n } else if (event.key === 'End') {\n next = count - 1;\n } else {\n return;\n }\n event.preventDefault();\n // Skip disabled tabs in the travel direction.\n const step = backward || event.key === 'End' ? -1 : 1;\n let guard = 0;\n while (this.tabs()[next]?.disabled() && guard < count) {\n next = (next + step + count) % count;\n guard++;\n }\n this.select(next, this.tabs()[next]?.disabled() ?? false);\n setTimeout(() => {\n const element = this.host.nativeElement.querySelector(\n `#${this.tabId(next)}`,\n ) as HTMLElement | null;\n element?.focus();\n });\n }\n}\n","@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollPrevious()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(false)\">\n <ds-icon\n name=\"chevronLeft\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n<div\n #tablist\n role=\"tablist\"\n [class]=\"tablistClasses()\"\n [attr.aria-orientation]=\"orientation()\"\n (scroll)=\"updateScrollArrows()\">\n @for (tab of tabs(); track $index) {\n <button\n type=\"button\"\n role=\"tab\"\n [id]=\"tabId($index)\"\n [class]=\"tabClasses($index, tab.disabled())\"\n [attr.aria-selected]=\"$index === selectedIndex()\"\n [attr.aria-controls]=\"panelId($index)\"\n [attr.tabindex]=\"$index === selectedIndex() ? 0 : -1\"\n [disabled]=\"tab.disabled()\"\n (click)=\"select($index, tab.disabled())\"\n (keydown)=\"onKeydown($event, $index)\">\n @if (tab.icon()) {\n <ds-icon\n [name]=\"tab.icon()!\"\n [size]=\"14\">\n </ds-icon>\n }\n\n <span>\n {{ tab.label() }}\n </span>\n\n @if (tab.count() !== null) {\n <span class=\"badge\">\n {{ tab.count() }}\n </span>\n }\n\n @if (closable()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- mouse affordance; keyboard closes the focused tab via Delete (see onKeydown) -->\n <span\n class=\"tab-close\"\n [attr.aria-label]=\"intl().tabs.close(tab.label())\"\n (click)=\"onCloseClick($event, $index)\">\n <ds-icon\n name=\"x\"\n [size]=\"12\">\n </ds-icon>\n </span>\n }\n </button>\n }\n</div>\n\n@if (showScrollArrows()) {\n <button\n type=\"button\"\n class=\"scroll-arrow\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [class.at-edge]=\"!canScrollNext()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"scrollPage(true)\">\n <ds-icon\n name=\"chevronRight\"\n [size]=\"16\">\n </ds-icon>\n </button>\n}\n\n@for (tab of tabs(); track $index) {\n @if (isPanelVisible($index)) {\n <div\n class=\"panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId($index)\"\n [attr.aria-labelledby]=\"tabId($index)\"\n [hidden]=\"$index !== selectedIndex()\">\n <ng-container *ngTemplateOutlet=\"tab.content()\"></ng-container>\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":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