@tectra-ng/ui 0.1.3 → 0.1.5

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 (101) hide show
  1. package/accordion/README.md +61 -0
  2. package/breadcrumb/README.md +57 -0
  3. package/carousel/README.md +53 -0
  4. package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
  5. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
  6. package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
  7. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
  9. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
  10. package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
  11. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  13. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
  15. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  17. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-field.mjs +1 -1
  19. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
  21. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
  23. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-ui-image.mjs +759 -0
  25. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
  27. package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  29. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
  31. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
  33. package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
  35. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
  37. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
  39. package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-ui-select.mjs +2 -2
  41. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
  43. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
  45. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-ui-table.mjs +194 -50
  47. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
  49. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
  51. package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
  53. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
  54. package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
  55. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
  57. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  58. package/field/README.md +1 -1
  59. package/file-upload/README.md +85 -0
  60. package/galleria/README.md +62 -0
  61. package/image/README.md +54 -0
  62. package/menubar/README.md +51 -0
  63. package/package.json +56 -4
  64. package/panel-menu/README.md +45 -0
  65. package/scroll-panel/README.md +35 -0
  66. package/splitter/README.md +62 -0
  67. package/stepper/README.md +66 -0
  68. package/table/README.md +1 -1
  69. package/tabs/README.md +69 -0
  70. package/toolbar/README.md +35 -0
  71. package/types/tectra-ng-ui-accordion.d.ts +304 -0
  72. package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
  73. package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
  74. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
  75. package/types/tectra-ng-ui-carousel.d.ts +263 -0
  76. package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
  77. package/types/tectra-ng-ui-file-upload.d.ts +527 -0
  78. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
  79. package/types/tectra-ng-ui-galleria.d.ts +407 -0
  80. package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
  81. package/types/tectra-ng-ui-image.d.ts +259 -0
  82. package/types/tectra-ng-ui-image.d.ts.map +1 -0
  83. package/types/tectra-ng-ui-menubar.d.ts +201 -0
  84. package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
  85. package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
  86. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
  87. package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
  88. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
  89. package/types/tectra-ng-ui-splitter.d.ts +226 -0
  90. package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
  91. package/types/tectra-ng-ui-stepper.d.ts +446 -0
  92. package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
  93. package/types/tectra-ng-ui-table.d.ts +2 -4
  94. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  95. package/types/tectra-ng-ui-tabs.d.ts +420 -0
  96. package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
  97. package/types/tectra-ng-ui-textarea.d.ts +1 -0
  98. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  99. package/types/tectra-ng-ui-toolbar.d.ts +85 -0
  100. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
  101. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
@@ -0,0 +1,382 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, TemplateRef, computed, contentChild, inject, input, output } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { Router, RouterLink } from "@angular/router";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { injectTranslations } from "@tectra-ng/core/i18n";
7
+ import { optionalBoolean } from "@tectra-ng/core/utils";
8
+ import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
9
+ import { toStyleObject } from "@tectra-ng/themes";
10
+ var TxBreadcrumbItemTemplate = class TxBreadcrumbItemTemplate {
11
+ templateRef = inject(TemplateRef);
12
+ static ngTemplateContextGuard(_directive, context) {
13
+ return !!context;
14
+ }
15
+ static ɵfac = i0.ɵɵngDeclareFactory({
16
+ minVersion: "12.0.0",
17
+ version: "22.2.3",
18
+ ngImport: i0,
19
+ type: TxBreadcrumbItemTemplate,
20
+ deps: [],
21
+ target: i0.ɵɵFactoryTarget.Directive
22
+ });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({
24
+ minVersion: "14.0.0",
25
+ version: "22.2.3",
26
+ type: TxBreadcrumbItemTemplate,
27
+ isStandalone: true,
28
+ selector: "ng-template[txBreadcrumbItem]",
29
+ ngImport: i0
30
+ });
31
+ };
32
+ i0.ɵɵngDeclareClassMetadata({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.3",
35
+ ngImport: i0,
36
+ type: TxBreadcrumbItemTemplate,
37
+ decorators: [{
38
+ type: Directive,
39
+ args: [{ selector: "ng-template[txBreadcrumbItem]" }]
40
+ }]
41
+ });
42
+ var TxBreadcrumbSeparatorTemplate = class TxBreadcrumbSeparatorTemplate {
43
+ templateRef = inject(TemplateRef);
44
+ static ɵfac = i0.ɵɵngDeclareFactory({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.3",
47
+ ngImport: i0,
48
+ type: TxBreadcrumbSeparatorTemplate,
49
+ deps: [],
50
+ target: i0.ɵɵFactoryTarget.Directive
51
+ });
52
+ static ɵdir = i0.ɵɵngDeclareDirective({
53
+ minVersion: "14.0.0",
54
+ version: "22.2.3",
55
+ type: TxBreadcrumbSeparatorTemplate,
56
+ isStandalone: true,
57
+ selector: "ng-template[txBreadcrumbSeparator]",
58
+ ngImport: i0
59
+ });
60
+ };
61
+ i0.ɵɵngDeclareClassMetadata({
62
+ minVersion: "12.0.0",
63
+ version: "22.2.3",
64
+ ngImport: i0,
65
+ type: TxBreadcrumbSeparatorTemplate,
66
+ decorators: [{
67
+ type: Directive,
68
+ args: [{ selector: "ng-template[txBreadcrumbSeparator]" }]
69
+ }]
70
+ });
71
+ var TxBreadcrumb = class TxBreadcrumb {
72
+ txIconRegistry = inject(TxIconRegistry);
73
+ hasRouter = inject(Router, { optional: true }) !== null;
74
+ model = input([], ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
75
+ home = input(void 0, ...ngDevMode ? [{ debugName: "home" }] : /* istanbul ignore next */ []);
76
+ separator = input("chevron", ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
77
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
78
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
79
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
80
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
81
+ unstyled = input(void 0, {
82
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
83
+ transform: optionalBoolean
84
+ });
85
+ itemClick = output();
86
+ translations = injectTranslations();
87
+ isUnstyled = injectUnstyled(this.unstyled);
88
+ passThrough = injectPassThrough("breadcrumb", this, this.pt, this.ptOptions);
89
+ itemTemplate = contentChild(TxBreadcrumbItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
90
+ separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate, ...ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []);
91
+ entries = computed(() => {
92
+ const home = this.home();
93
+ const items = home ? [home, ...this.model()] : [...this.model()];
94
+ return items.map((item, index) => this.toEntry(item, index === items.length - 1));
95
+ }, ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
96
+ label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
97
+ hostStyle = computed(() => ({
98
+ ...toStyleObject(this.dt(), "--tx-breadcrumb"),
99
+ ...this.passThrough().root?.style
100
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
101
+ select(event, item) {
102
+ if (item.disabled) {
103
+ event.preventDefault();
104
+ return;
105
+ }
106
+ const payload = {
107
+ originalEvent: event,
108
+ item
109
+ };
110
+ item.command?.(payload);
111
+ this.itemClick.emit(payload);
112
+ }
113
+ toEntry(item, current) {
114
+ const icon = item.icon ?? null;
115
+ const known = icon !== null && this.txIconRegistry.has(icon);
116
+ return {
117
+ item,
118
+ current,
119
+ kind: this.kindOf(item, current),
120
+ icon: known ? icon : null,
121
+ iconClass: icon !== null && !known ? icon : null
122
+ };
123
+ }
124
+ kindOf(item, current) {
125
+ if (current) return "current";
126
+ if (item.disabled) return "text";
127
+ if (item.routerLink !== void 0 && this.hasRouter) return "router";
128
+ if (item.url !== void 0 || item.routerLink !== void 0) return "url";
129
+ if (item.command) return "command";
130
+ return "text";
131
+ }
132
+ href(item) {
133
+ if (item.url !== void 0) return item.url;
134
+ const commands = item.routerLink;
135
+ return typeof commands === "string" ? commands : (commands ?? []).join("/");
136
+ }
137
+ static ɵfac = i0.ɵɵngDeclareFactory({
138
+ minVersion: "12.0.0",
139
+ version: "22.2.3",
140
+ ngImport: i0,
141
+ type: TxBreadcrumb,
142
+ deps: [],
143
+ target: i0.ɵɵFactoryTarget.Component
144
+ });
145
+ static ɵcmp = i0.ɵɵngDeclareComponent({
146
+ minVersion: "17.0.0",
147
+ version: "22.2.3",
148
+ type: TxBreadcrumb,
149
+ isStandalone: true,
150
+ selector: "tx-breadcrumb",
151
+ inputs: {
152
+ model: {
153
+ classPropertyName: "model",
154
+ publicName: "model",
155
+ isSignal: true,
156
+ isRequired: false,
157
+ transformFunction: null
158
+ },
159
+ home: {
160
+ classPropertyName: "home",
161
+ publicName: "home",
162
+ isSignal: true,
163
+ isRequired: false,
164
+ transformFunction: null
165
+ },
166
+ separator: {
167
+ classPropertyName: "separator",
168
+ publicName: "separator",
169
+ isSignal: true,
170
+ isRequired: false,
171
+ transformFunction: null
172
+ },
173
+ ariaLabel: {
174
+ classPropertyName: "ariaLabel",
175
+ publicName: "ariaLabel",
176
+ isSignal: true,
177
+ isRequired: false,
178
+ transformFunction: null
179
+ },
180
+ dt: {
181
+ classPropertyName: "dt",
182
+ publicName: "dt",
183
+ isSignal: true,
184
+ isRequired: false,
185
+ transformFunction: null
186
+ },
187
+ pt: {
188
+ classPropertyName: "pt",
189
+ publicName: "pt",
190
+ isSignal: true,
191
+ isRequired: false,
192
+ transformFunction: null
193
+ },
194
+ ptOptions: {
195
+ classPropertyName: "ptOptions",
196
+ publicName: "ptOptions",
197
+ isSignal: true,
198
+ isRequired: false,
199
+ transformFunction: null
200
+ },
201
+ unstyled: {
202
+ classPropertyName: "unstyled",
203
+ publicName: "unstyled",
204
+ isSignal: true,
205
+ isRequired: false,
206
+ transformFunction: null
207
+ }
208
+ },
209
+ outputs: { itemClick: "itemClick" },
210
+ host: {
211
+ properties: {
212
+ "class": "passThrough().root?.class",
213
+ "style": "hostStyle()",
214
+ "attr.data-styled": "!isUnstyled() || null",
215
+ "attr.data-separator": "separator()"
216
+ },
217
+ classAttribute: "tx-breadcrumb"
218
+ },
219
+ queries: [{
220
+ propertyName: "itemTemplate",
221
+ first: true,
222
+ predicate: TxBreadcrumbItemTemplate,
223
+ descendants: true,
224
+ isSignal: true
225
+ }, {
226
+ propertyName: "separatorTemplate",
227
+ first: true,
228
+ predicate: TxBreadcrumbSeparatorTemplate,
229
+ descendants: true,
230
+ isSignal: true
231
+ }],
232
+ ngImport: i0,
233
+ template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
234
+ styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"],
235
+ dependencies: [
236
+ {
237
+ kind: "directive",
238
+ type: NgTemplateOutlet,
239
+ selector: "[ngTemplateOutlet]",
240
+ inputs: [
241
+ "ngTemplateOutletContext",
242
+ "ngTemplateOutlet",
243
+ "ngTemplateOutletInjector"
244
+ ]
245
+ },
246
+ {
247
+ kind: "directive",
248
+ type: RouterLink,
249
+ selector: "[routerLink]",
250
+ inputs: [
251
+ "target",
252
+ "queryParams",
253
+ "fragment",
254
+ "queryParamsHandling",
255
+ "state",
256
+ "info",
257
+ "relativeTo",
258
+ "preserveFragment",
259
+ "skipLocationChange",
260
+ "replaceUrl",
261
+ "browserUrl",
262
+ "routerLink"
263
+ ]
264
+ },
265
+ {
266
+ kind: "component",
267
+ type: TxIcon,
268
+ selector: "tx-icon",
269
+ inputs: ["name"]
270
+ }
271
+ ],
272
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
273
+ });
274
+ };
275
+ i0.ɵɵngDeclareClassMetadata({
276
+ minVersion: "12.0.0",
277
+ version: "22.2.3",
278
+ ngImport: i0,
279
+ type: TxBreadcrumb,
280
+ decorators: [{
281
+ type: Component,
282
+ args: [{
283
+ selector: "tx-breadcrumb",
284
+ imports: [
285
+ NgTemplateOutlet,
286
+ RouterLink,
287
+ TxIcon
288
+ ],
289
+ changeDetection: ChangeDetectionStrategy.OnPush,
290
+ host: {
291
+ class: "tx-breadcrumb",
292
+ "[class]": "passThrough().root?.class",
293
+ "[style]": "hostStyle()",
294
+ "[attr.data-styled]": "!isUnstyled() || null",
295
+ "[attr.data-separator]": "separator()"
296
+ },
297
+ template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
298
+ styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"]
299
+ }]
300
+ }],
301
+ propDecorators: {
302
+ model: [{
303
+ type: i0.Input,
304
+ args: [{
305
+ isSignal: true,
306
+ alias: "model",
307
+ required: false
308
+ }]
309
+ }],
310
+ home: [{
311
+ type: i0.Input,
312
+ args: [{
313
+ isSignal: true,
314
+ alias: "home",
315
+ required: false
316
+ }]
317
+ }],
318
+ separator: [{
319
+ type: i0.Input,
320
+ args: [{
321
+ isSignal: true,
322
+ alias: "separator",
323
+ required: false
324
+ }]
325
+ }],
326
+ ariaLabel: [{
327
+ type: i0.Input,
328
+ args: [{
329
+ isSignal: true,
330
+ alias: "ariaLabel",
331
+ required: false
332
+ }]
333
+ }],
334
+ dt: [{
335
+ type: i0.Input,
336
+ args: [{
337
+ isSignal: true,
338
+ alias: "dt",
339
+ required: false
340
+ }]
341
+ }],
342
+ pt: [{
343
+ type: i0.Input,
344
+ args: [{
345
+ isSignal: true,
346
+ alias: "pt",
347
+ required: false
348
+ }]
349
+ }],
350
+ ptOptions: [{
351
+ type: i0.Input,
352
+ args: [{
353
+ isSignal: true,
354
+ alias: "ptOptions",
355
+ required: false
356
+ }]
357
+ }],
358
+ unstyled: [{
359
+ type: i0.Input,
360
+ args: [{
361
+ isSignal: true,
362
+ alias: "unstyled",
363
+ required: false
364
+ }]
365
+ }],
366
+ itemClick: [{
367
+ type: i0.Output,
368
+ args: ["itemClick"]
369
+ }],
370
+ itemTemplate: [{
371
+ type: i0.ContentChild,
372
+ args: [i0.forwardRef(() => TxBreadcrumbItemTemplate), { isSignal: true }]
373
+ }],
374
+ separatorTemplate: [{
375
+ type: i0.ContentChild,
376
+ args: [i0.forwardRef(() => TxBreadcrumbSeparatorTemplate), { isSignal: true }]
377
+ }]
378
+ }
379
+ });
380
+ export { TxBreadcrumb, TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate };
381
+
382
+ //# sourceMappingURL=tectra-ng-ui-breadcrumb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-breadcrumb.mjs","names":[],"sources":["../../../../packages/ui/breadcrumb/src/breadcrumb.templates.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxBreadcrumbItemContext } from './breadcrumb.types';\n\n@Directive({ selector: 'ng-template[txBreadcrumbItem]' })\nexport class TxBreadcrumbItemTemplate {\n readonly templateRef = inject<TemplateRef<TxBreadcrumbItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxBreadcrumbItemTemplate, context: unknown): context is TxBreadcrumbItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txBreadcrumbSeparator]' })\nexport class TxBreadcrumbSeparatorTemplate {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraBreadcrumbTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate } from './breadcrumb.templates';\nimport { TxBreadcrumbItem, TxBreadcrumbItemEvent, TxBreadcrumbPart, TxBreadcrumbSeparator } from './breadcrumb.types';\n\ntype TxBreadcrumbKind = 'current' | 'router' | 'url' | 'command' | 'text';\n\ninterface TxBreadcrumbEntry {\n item: TxBreadcrumbItem;\n kind: TxBreadcrumbKind;\n current: boolean;\n icon: string | null;\n iconClass: string | null;\n}\n\n@Component({\n selector: 'tx-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-breadcrumb',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-separator]': 'separator()',\n },\n})\nexport class TxBreadcrumb {\n private txIconRegistry = inject(TxIconRegistry);\n private hasRouter = inject(Router, { optional: true }) !== null;\n\n readonly model = input<readonly TxBreadcrumbItem[]>([]);\n readonly home = input<TxBreadcrumbItem | undefined>(undefined);\n readonly separator = input<TxBreadcrumbSeparator>('chevron');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraBreadcrumbTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxBreadcrumbPart, TxBreadcrumb> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemClick = output<TxBreadcrumbItemEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('breadcrumb', this, this.pt, this.ptOptions);\n protected readonly itemTemplate = contentChild(TxBreadcrumbItemTemplate);\n protected readonly separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate);\n\n readonly entries = computed<TxBreadcrumbEntry[]>(() => {\n const home = this.home();\n const items = home ? [home, ...this.model()] : [...this.model()];\n return items.map((item, index) => this.toEntry(item, index === items.length - 1));\n });\n readonly label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-breadcrumb'), ...this.passThrough().root?.style }));\n\n select(event: Event, item: TxBreadcrumbItem): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n const payload = { originalEvent: event, item };\n item.command?.(payload);\n this.itemClick.emit(payload);\n }\n\n private toEntry(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbEntry {\n const icon = item.icon ?? null;\n const known = icon !== null && this.txIconRegistry.has(icon);\n return { item, current, kind: this.kindOf(item, current), icon: known ? icon : null, iconClass: icon !== null && !known ? icon : null };\n }\n\n private kindOf(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbKind {\n if (current) return 'current';\n if (item.disabled) return 'text';\n if (item.routerLink !== undefined && this.hasRouter) return 'router';\n if (item.url !== undefined || item.routerLink !== undefined) return 'url';\n if (item.command) return 'command';\n return 'text';\n }\n\n protected href(item: TxBreadcrumbItem): string {\n if (item.url !== undefined) return item.url;\n const commands = item.routerLink;\n return typeof commands === 'string' ? commands : (commands ?? []).join('/');\n }\n}\n","<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n"],"mappings":";;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAUxD,IAAa,gCAAb,MAAa,8BAA6B;CAC/B,cAAc,OAA6B,WAAW;CADpD,OAAA,OAAA,GAAA,mBAAA;EA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