@tectra-ng/ui 0.1.1 → 0.1.3
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/README.md +36 -19
- package/analog-clock/README.md +31 -0
- package/countdown/README.md +45 -0
- package/country/README.md +14 -4
- package/data-view/README.md +71 -0
- package/datepicker/README.md +109 -0
- package/export/README.md +79 -0
- package/export-font/OFL.txt +93 -0
- package/export-font/README.md +7 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +386 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chip.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +513 -0
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country.mjs +47 -6
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +1370 -0
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2640 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs +7 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export.mjs +2574 -0
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +4 -4
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs +2 -2
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +2 -2
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +601 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +2 -2
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +4 -4
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-slider.mjs +2 -2
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs +240 -0
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +661 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +1368 -1348
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-timeline.mjs +407 -0
- package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +7 -46
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +901 -0
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree.mjs +1940 -0
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +928 -0
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -0
- package/month-calendar/README.md +46 -0
- package/package.json +56 -4
- package/sparkline/README.md +27 -0
- package/stat-tiles/README.md +53 -0
- package/timeline/README.md +42 -0
- package/tree/README.md +93 -0
- package/tree-table/README.md +84 -0
- package/types/tectra-ng-ui-analog-clock.d.ts +127 -0
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +11 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +3 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +150 -0
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -0
- package/types/tectra-ng-ui-country-select.d.ts +11 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +9 -3
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +363 -0
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -0
- package/types/tectra-ng-ui-datepicker.d.ts +801 -0
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -0
- package/types/tectra-ng-ui-export-font.d.ts +5 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -0
- package/types/tectra-ng-ui-export.d.ts +427 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +8 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +1 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +4 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +2 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +5 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +287 -0
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -0
- package/types/tectra-ng-ui-multiselect.d.ts +11 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +1 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +11 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +1 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +80 -0
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts +287 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +181 -15
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +8 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +129 -0
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts +5 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +19 -22
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +94 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree.d.ts +571 -0
- package/types/tectra-ng-ui-tree.d.ts.map +1 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts +297 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -0
- package/virtual-scroller/README.md +60 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input } from "@angular/core";
|
|
3
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
7
|
+
import { RouterLink } from "@angular/router";
|
|
8
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
9
|
+
var TxStatTiles = class TxStatTiles {
|
|
10
|
+
minWidth = input(void 0, ...ngDevMode ? [{ debugName: "minWidth" }] : /* istanbul ignore next */ []);
|
|
11
|
+
compact = input(false, {
|
|
12
|
+
...ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {},
|
|
13
|
+
transform: booleanAttribute
|
|
14
|
+
});
|
|
15
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
16
|
+
ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
17
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
18
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
19
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
20
|
+
unstyled = input(void 0, {
|
|
21
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
22
|
+
transform: optionalBoolean
|
|
23
|
+
});
|
|
24
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
25
|
+
passThrough = injectPassThrough("statTiles", this, this.pt, this.ptOptions);
|
|
26
|
+
hostStyle = computed(() => {
|
|
27
|
+
const minWidth = this.minWidth();
|
|
28
|
+
return {
|
|
29
|
+
...toStyleObject(this.dt(), "--tx-stat-tiles"),
|
|
30
|
+
...minWidth ? { "--tx-stat-tiles-min-width": minWidth } : {},
|
|
31
|
+
...this.passThrough().root?.style
|
|
32
|
+
};
|
|
33
|
+
}, ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
35
|
+
minVersion: "12.0.0",
|
|
36
|
+
version: "22.2.3",
|
|
37
|
+
ngImport: i0,
|
|
38
|
+
type: TxStatTiles,
|
|
39
|
+
deps: [],
|
|
40
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
41
|
+
});
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
43
|
+
minVersion: "17.1.0",
|
|
44
|
+
version: "22.2.3",
|
|
45
|
+
type: TxStatTiles,
|
|
46
|
+
isStandalone: true,
|
|
47
|
+
selector: "tx-stat-tiles",
|
|
48
|
+
inputs: {
|
|
49
|
+
minWidth: {
|
|
50
|
+
classPropertyName: "minWidth",
|
|
51
|
+
publicName: "minWidth",
|
|
52
|
+
isSignal: true,
|
|
53
|
+
isRequired: false,
|
|
54
|
+
transformFunction: null
|
|
55
|
+
},
|
|
56
|
+
compact: {
|
|
57
|
+
classPropertyName: "compact",
|
|
58
|
+
publicName: "compact",
|
|
59
|
+
isSignal: true,
|
|
60
|
+
isRequired: false,
|
|
61
|
+
transformFunction: null
|
|
62
|
+
},
|
|
63
|
+
ariaLabel: {
|
|
64
|
+
classPropertyName: "ariaLabel",
|
|
65
|
+
publicName: "ariaLabel",
|
|
66
|
+
isSignal: true,
|
|
67
|
+
isRequired: false,
|
|
68
|
+
transformFunction: null
|
|
69
|
+
},
|
|
70
|
+
ariaLabelledBy: {
|
|
71
|
+
classPropertyName: "ariaLabelledBy",
|
|
72
|
+
publicName: "ariaLabelledBy",
|
|
73
|
+
isSignal: true,
|
|
74
|
+
isRequired: false,
|
|
75
|
+
transformFunction: null
|
|
76
|
+
},
|
|
77
|
+
dt: {
|
|
78
|
+
classPropertyName: "dt",
|
|
79
|
+
publicName: "dt",
|
|
80
|
+
isSignal: true,
|
|
81
|
+
isRequired: false,
|
|
82
|
+
transformFunction: null
|
|
83
|
+
},
|
|
84
|
+
pt: {
|
|
85
|
+
classPropertyName: "pt",
|
|
86
|
+
publicName: "pt",
|
|
87
|
+
isSignal: true,
|
|
88
|
+
isRequired: false,
|
|
89
|
+
transformFunction: null
|
|
90
|
+
},
|
|
91
|
+
ptOptions: {
|
|
92
|
+
classPropertyName: "ptOptions",
|
|
93
|
+
publicName: "ptOptions",
|
|
94
|
+
isSignal: true,
|
|
95
|
+
isRequired: false,
|
|
96
|
+
transformFunction: null
|
|
97
|
+
},
|
|
98
|
+
unstyled: {
|
|
99
|
+
classPropertyName: "unstyled",
|
|
100
|
+
publicName: "unstyled",
|
|
101
|
+
isSignal: true,
|
|
102
|
+
isRequired: false,
|
|
103
|
+
transformFunction: null
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
host: {
|
|
107
|
+
attributes: { "role": "list" },
|
|
108
|
+
properties: {
|
|
109
|
+
"class": "passThrough().root?.class",
|
|
110
|
+
"class.tx-stat-tiles--compact": "compact()",
|
|
111
|
+
"style": "hostStyle()",
|
|
112
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
113
|
+
"attr.aria-label": "ariaLabel() || null",
|
|
114
|
+
"attr.aria-labelledby": "ariaLabelledBy() || null"
|
|
115
|
+
},
|
|
116
|
+
classAttribute: "tx-stat-tiles"
|
|
117
|
+
},
|
|
118
|
+
ngImport: i0,
|
|
119
|
+
template: "<ng-content />",
|
|
120
|
+
isInline: true,
|
|
121
|
+
styles: [":host{display:block}:host([data-styled]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(var(--tx-stat-tiles-min-width),var(--tx-stat-tiles-floor-width))),1fr));gap:var(--tx-stat-tiles-gap)}:host([data-styled].tx-stat-tiles--compact){grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--tx-stat-tiles-min-width)),1fr));gap:var(--tx-stat-tiles-compact-gap)}\n"],
|
|
122
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
126
|
+
minVersion: "12.0.0",
|
|
127
|
+
version: "22.2.3",
|
|
128
|
+
ngImport: i0,
|
|
129
|
+
type: TxStatTiles,
|
|
130
|
+
decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: "tx-stat-tiles",
|
|
134
|
+
template: "<ng-content />",
|
|
135
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
136
|
+
host: {
|
|
137
|
+
class: "tx-stat-tiles",
|
|
138
|
+
role: "list",
|
|
139
|
+
"[class]": "passThrough().root?.class",
|
|
140
|
+
"[class.tx-stat-tiles--compact]": "compact()",
|
|
141
|
+
"[style]": "hostStyle()",
|
|
142
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
143
|
+
"[attr.aria-label]": "ariaLabel() || null",
|
|
144
|
+
"[attr.aria-labelledby]": "ariaLabelledBy() || null"
|
|
145
|
+
},
|
|
146
|
+
styles: [":host{display:block}:host([data-styled]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(var(--tx-stat-tiles-min-width),var(--tx-stat-tiles-floor-width))),1fr));gap:var(--tx-stat-tiles-gap)}:host([data-styled].tx-stat-tiles--compact){grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--tx-stat-tiles-min-width)),1fr));gap:var(--tx-stat-tiles-compact-gap)}\n"]
|
|
147
|
+
}]
|
|
148
|
+
}],
|
|
149
|
+
propDecorators: {
|
|
150
|
+
minWidth: [{
|
|
151
|
+
type: i0.Input,
|
|
152
|
+
args: [{
|
|
153
|
+
isSignal: true,
|
|
154
|
+
alias: "minWidth",
|
|
155
|
+
required: false
|
|
156
|
+
}]
|
|
157
|
+
}],
|
|
158
|
+
compact: [{
|
|
159
|
+
type: i0.Input,
|
|
160
|
+
args: [{
|
|
161
|
+
isSignal: true,
|
|
162
|
+
alias: "compact",
|
|
163
|
+
required: false
|
|
164
|
+
}]
|
|
165
|
+
}],
|
|
166
|
+
ariaLabel: [{
|
|
167
|
+
type: i0.Input,
|
|
168
|
+
args: [{
|
|
169
|
+
isSignal: true,
|
|
170
|
+
alias: "ariaLabel",
|
|
171
|
+
required: false
|
|
172
|
+
}]
|
|
173
|
+
}],
|
|
174
|
+
ariaLabelledBy: [{
|
|
175
|
+
type: i0.Input,
|
|
176
|
+
args: [{
|
|
177
|
+
isSignal: true,
|
|
178
|
+
alias: "ariaLabelledBy",
|
|
179
|
+
required: false
|
|
180
|
+
}]
|
|
181
|
+
}],
|
|
182
|
+
dt: [{
|
|
183
|
+
type: i0.Input,
|
|
184
|
+
args: [{
|
|
185
|
+
isSignal: true,
|
|
186
|
+
alias: "dt",
|
|
187
|
+
required: false
|
|
188
|
+
}]
|
|
189
|
+
}],
|
|
190
|
+
pt: [{
|
|
191
|
+
type: i0.Input,
|
|
192
|
+
args: [{
|
|
193
|
+
isSignal: true,
|
|
194
|
+
alias: "pt",
|
|
195
|
+
required: false
|
|
196
|
+
}]
|
|
197
|
+
}],
|
|
198
|
+
ptOptions: [{
|
|
199
|
+
type: i0.Input,
|
|
200
|
+
args: [{
|
|
201
|
+
isSignal: true,
|
|
202
|
+
alias: "ptOptions",
|
|
203
|
+
required: false
|
|
204
|
+
}]
|
|
205
|
+
}],
|
|
206
|
+
unstyled: [{
|
|
207
|
+
type: i0.Input,
|
|
208
|
+
args: [{
|
|
209
|
+
isSignal: true,
|
|
210
|
+
alias: "unstyled",
|
|
211
|
+
required: false
|
|
212
|
+
}]
|
|
213
|
+
}]
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
var TxStatTile = class TxStatTile {
|
|
217
|
+
tiles = inject(TxStatTiles, { optional: true });
|
|
218
|
+
label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
219
|
+
value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
220
|
+
unit = input("", ...ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []);
|
|
221
|
+
icon = input(void 0, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
222
|
+
meta = input("", ...ngDevMode ? [{ debugName: "meta" }] : /* istanbul ignore next */ []);
|
|
223
|
+
tone = input("primary", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
224
|
+
share = input(null, ...ngDevMode ? [{ debugName: "share" }] : /* istanbul ignore next */ []);
|
|
225
|
+
textValue = input(false, {
|
|
226
|
+
...ngDevMode ? { debugName: "textValue" } : /* istanbul ignore next */ {},
|
|
227
|
+
transform: booleanAttribute
|
|
228
|
+
});
|
|
229
|
+
fitValue = input(false, {
|
|
230
|
+
...ngDevMode ? { debugName: "fitValue" } : /* istanbul ignore next */ {},
|
|
231
|
+
transform: booleanAttribute
|
|
232
|
+
});
|
|
233
|
+
accentValue = input(false, {
|
|
234
|
+
...ngDevMode ? { debugName: "accentValue" } : /* istanbul ignore next */ {},
|
|
235
|
+
transform: booleanAttribute
|
|
236
|
+
});
|
|
237
|
+
highlighted = input(false, {
|
|
238
|
+
...ngDevMode ? { debugName: "highlighted" } : /* istanbul ignore next */ {},
|
|
239
|
+
transform: booleanAttribute
|
|
240
|
+
});
|
|
241
|
+
link = input(void 0, ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
|
|
242
|
+
queryParams = input(void 0, ...ngDevMode ? [{ debugName: "queryParams" }] : /* istanbul ignore next */ []);
|
|
243
|
+
href = input(void 0, ...ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []);
|
|
244
|
+
target = input(void 0, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
245
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
246
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
247
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
248
|
+
unstyled = input(void 0, {
|
|
249
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
250
|
+
transform: optionalBoolean
|
|
251
|
+
});
|
|
252
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
253
|
+
passThrough = injectPassThrough("statTile", this, this.pt, this.ptOptions);
|
|
254
|
+
hostStyle = computed(() => ({
|
|
255
|
+
...toStyleObject(this.dt(), "--tx-stat-tile"),
|
|
256
|
+
...this.passThrough().root?.style
|
|
257
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
258
|
+
isCompact = computed(() => this.tiles?.compact() ?? false, ...ngDevMode ? [{ debugName: "isCompact" }] : /* istanbul ignore next */ []);
|
|
259
|
+
isLink = computed(() => !!this.link() || !!this.href(), ...ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []);
|
|
260
|
+
displayValue = computed(() => this.value() ?? "-", ...ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []);
|
|
261
|
+
valueTitle = computed(() => this.textValue() ? String(this.displayValue()) : null, ...ngDevMode ? [{ debugName: "valueTitle" }] : /* istanbul ignore next */ []);
|
|
262
|
+
sharePercent = computed(() => {
|
|
263
|
+
const share = this.share();
|
|
264
|
+
return share === null || share === void 0 || Number.isNaN(share) ? null : Math.min(100, Math.max(0, share));
|
|
265
|
+
}, ...ngDevMode ? [{ debugName: "sharePercent" }] : /* istanbul ignore next */ []);
|
|
266
|
+
rel = computed(() => this.target() === "_blank" ? "noopener noreferrer" : null, ...ngDevMode ? [{ debugName: "rel" }] : /* istanbul ignore next */ []);
|
|
267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
268
|
+
minVersion: "12.0.0",
|
|
269
|
+
version: "22.2.3",
|
|
270
|
+
ngImport: i0,
|
|
271
|
+
type: TxStatTile,
|
|
272
|
+
deps: [],
|
|
273
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
274
|
+
});
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
276
|
+
minVersion: "17.0.0",
|
|
277
|
+
version: "22.2.3",
|
|
278
|
+
type: TxStatTile,
|
|
279
|
+
isStandalone: true,
|
|
280
|
+
selector: "tx-stat-tile",
|
|
281
|
+
inputs: {
|
|
282
|
+
label: {
|
|
283
|
+
classPropertyName: "label",
|
|
284
|
+
publicName: "label",
|
|
285
|
+
isSignal: true,
|
|
286
|
+
isRequired: true,
|
|
287
|
+
transformFunction: null
|
|
288
|
+
},
|
|
289
|
+
value: {
|
|
290
|
+
classPropertyName: "value",
|
|
291
|
+
publicName: "value",
|
|
292
|
+
isSignal: true,
|
|
293
|
+
isRequired: false,
|
|
294
|
+
transformFunction: null
|
|
295
|
+
},
|
|
296
|
+
unit: {
|
|
297
|
+
classPropertyName: "unit",
|
|
298
|
+
publicName: "unit",
|
|
299
|
+
isSignal: true,
|
|
300
|
+
isRequired: false,
|
|
301
|
+
transformFunction: null
|
|
302
|
+
},
|
|
303
|
+
icon: {
|
|
304
|
+
classPropertyName: "icon",
|
|
305
|
+
publicName: "icon",
|
|
306
|
+
isSignal: true,
|
|
307
|
+
isRequired: false,
|
|
308
|
+
transformFunction: null
|
|
309
|
+
},
|
|
310
|
+
meta: {
|
|
311
|
+
classPropertyName: "meta",
|
|
312
|
+
publicName: "meta",
|
|
313
|
+
isSignal: true,
|
|
314
|
+
isRequired: false,
|
|
315
|
+
transformFunction: null
|
|
316
|
+
},
|
|
317
|
+
tone: {
|
|
318
|
+
classPropertyName: "tone",
|
|
319
|
+
publicName: "tone",
|
|
320
|
+
isSignal: true,
|
|
321
|
+
isRequired: false,
|
|
322
|
+
transformFunction: null
|
|
323
|
+
},
|
|
324
|
+
share: {
|
|
325
|
+
classPropertyName: "share",
|
|
326
|
+
publicName: "share",
|
|
327
|
+
isSignal: true,
|
|
328
|
+
isRequired: false,
|
|
329
|
+
transformFunction: null
|
|
330
|
+
},
|
|
331
|
+
textValue: {
|
|
332
|
+
classPropertyName: "textValue",
|
|
333
|
+
publicName: "textValue",
|
|
334
|
+
isSignal: true,
|
|
335
|
+
isRequired: false,
|
|
336
|
+
transformFunction: null
|
|
337
|
+
},
|
|
338
|
+
fitValue: {
|
|
339
|
+
classPropertyName: "fitValue",
|
|
340
|
+
publicName: "fitValue",
|
|
341
|
+
isSignal: true,
|
|
342
|
+
isRequired: false,
|
|
343
|
+
transformFunction: null
|
|
344
|
+
},
|
|
345
|
+
accentValue: {
|
|
346
|
+
classPropertyName: "accentValue",
|
|
347
|
+
publicName: "accentValue",
|
|
348
|
+
isSignal: true,
|
|
349
|
+
isRequired: false,
|
|
350
|
+
transformFunction: null
|
|
351
|
+
},
|
|
352
|
+
highlighted: {
|
|
353
|
+
classPropertyName: "highlighted",
|
|
354
|
+
publicName: "highlighted",
|
|
355
|
+
isSignal: true,
|
|
356
|
+
isRequired: false,
|
|
357
|
+
transformFunction: null
|
|
358
|
+
},
|
|
359
|
+
link: {
|
|
360
|
+
classPropertyName: "link",
|
|
361
|
+
publicName: "link",
|
|
362
|
+
isSignal: true,
|
|
363
|
+
isRequired: false,
|
|
364
|
+
transformFunction: null
|
|
365
|
+
},
|
|
366
|
+
queryParams: {
|
|
367
|
+
classPropertyName: "queryParams",
|
|
368
|
+
publicName: "queryParams",
|
|
369
|
+
isSignal: true,
|
|
370
|
+
isRequired: false,
|
|
371
|
+
transformFunction: null
|
|
372
|
+
},
|
|
373
|
+
href: {
|
|
374
|
+
classPropertyName: "href",
|
|
375
|
+
publicName: "href",
|
|
376
|
+
isSignal: true,
|
|
377
|
+
isRequired: false,
|
|
378
|
+
transformFunction: null
|
|
379
|
+
},
|
|
380
|
+
target: {
|
|
381
|
+
classPropertyName: "target",
|
|
382
|
+
publicName: "target",
|
|
383
|
+
isSignal: true,
|
|
384
|
+
isRequired: false,
|
|
385
|
+
transformFunction: null
|
|
386
|
+
},
|
|
387
|
+
dt: {
|
|
388
|
+
classPropertyName: "dt",
|
|
389
|
+
publicName: "dt",
|
|
390
|
+
isSignal: true,
|
|
391
|
+
isRequired: false,
|
|
392
|
+
transformFunction: null
|
|
393
|
+
},
|
|
394
|
+
pt: {
|
|
395
|
+
classPropertyName: "pt",
|
|
396
|
+
publicName: "pt",
|
|
397
|
+
isSignal: true,
|
|
398
|
+
isRequired: false,
|
|
399
|
+
transformFunction: null
|
|
400
|
+
},
|
|
401
|
+
ptOptions: {
|
|
402
|
+
classPropertyName: "ptOptions",
|
|
403
|
+
publicName: "ptOptions",
|
|
404
|
+
isSignal: true,
|
|
405
|
+
isRequired: false,
|
|
406
|
+
transformFunction: null
|
|
407
|
+
},
|
|
408
|
+
unstyled: {
|
|
409
|
+
classPropertyName: "unstyled",
|
|
410
|
+
publicName: "unstyled",
|
|
411
|
+
isSignal: true,
|
|
412
|
+
isRequired: false,
|
|
413
|
+
transformFunction: null
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
host: {
|
|
417
|
+
attributes: { "role": "listitem" },
|
|
418
|
+
properties: {
|
|
419
|
+
"class": "passThrough().root?.class",
|
|
420
|
+
"class.tx-stat-tile--highlighted": "highlighted()",
|
|
421
|
+
"class.tx-stat-tile--link": "isLink()",
|
|
422
|
+
"class.tx-stat-tile--fit": "fitValue()",
|
|
423
|
+
"class.tx-stat-tile--compact": "isCompact()",
|
|
424
|
+
"style": "hostStyle()",
|
|
425
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
426
|
+
"attr.data-tone": "tone()"
|
|
427
|
+
},
|
|
428
|
+
classAttribute: "tx-stat-tile"
|
|
429
|
+
},
|
|
430
|
+
ngImport: i0,
|
|
431
|
+
template: "@if (link(); as commands) {\n <a\n class=\"tx-stat-tile__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [routerLink]=\"commands\"\n [queryParams]=\"queryParams()\"\n [attr.target]=\"target() || null\"\n [attr.rel]=\"rel()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\" />\n </a>\n} @else if (href(); as url) {\n <a\n class=\"tx-stat-tile__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [attr.href]=\"url\"\n [attr.target]=\"target() || null\"\n [attr.rel]=\"rel()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\" />\n </a>\n} @else {\n <div class=\"tx-stat-tile__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-container [ngTemplateOutlet]=\"body\" />\n </div>\n}\n\n<ng-template #body>\n <span class=\"tx-stat-tile__head\" [class]=\"passThrough().head?.class\" [style]=\"passThrough().head?.style\">\n @if (icon(); as name) {\n <span class=\"tx-stat-tile__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <span class=\"tx-stat-tile__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <span class=\"tx-stat-tile__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n <span\n class=\"tx-stat-tile__value\"\n [class.tx-stat-tile__value--text]=\"textValue()\"\n [class.tx-stat-tile__value--accent]=\"accentValue()\"\n [class]=\"passThrough().value?.class\"\n [style]=\"passThrough().value?.style\"\n [attr.title]=\"valueTitle()\"\n >{{ displayValue() }}\n @if (unit()) {\n <span class=\"tx-stat-tile__unit\" [class]=\"passThrough().unit?.class\" [style]=\"passThrough().unit?.style\">{{ unit() }}</span>\n }\n </span>\n @if (meta()) {\n <span class=\"tx-stat-tile__meta\" [class]=\"passThrough().meta?.class\" [style]=\"passThrough().meta?.style\">{{ meta() }}</span>\n }\n </span>\n <span class=\"tx-stat-tile__aside\" [class]=\"passThrough().aside?.class\" [style]=\"passThrough().aside?.style\">\n <ng-content select=\"[txStatTileAside]\" />\n </span>\n </span>\n @if (sharePercent() !== null) {\n <span\n class=\"tx-stat-tile__bar\"\n role=\"meter\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"sharePercent()\"\n [attr.aria-label]=\"label()\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n >\n <span\n class=\"tx-stat-tile__bar-fill\"\n [class]=\"passThrough().barFill?.class\"\n [style]=\"passThrough().barFill?.style\"\n [style.width.%]=\"sharePercent()\"\n ></span>\n </span>\n }\n <ng-content />\n</ng-template>\n\n",
|
|
432
|
+
styles: [":host{display:block;min-width:0}.tx-stat-tile__aside:empty{display:none}:host([data-styled]){--_tone: var(--tx-stat-tile-tone-primary);--_ring: var(--tx-stat-tile-border-color);--_ring-width: var(--tx-stat-tile-border-width);--_padding-x: var(--tx-stat-tile-padding-x);--_padding-y: var(--tx-stat-tile-padding-y);--_gap: var(--tx-stat-tile-gap);--_icon-size: var(--tx-stat-tile-icon-size);--_value-font-size: var(--tx-stat-tile-value-font-size);border-radius:var(--tx-stat-tile-border-radius);background:var(--tx-stat-tile-background);box-shadow:0 0 0 var(--_ring-width) var(--_ring);font-family:var(--tx-font-family);font-variant-numeric:tabular-nums;transition:box-shadow var(--tx-stat-tile-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-stat-tile__body{display:flex;flex-direction:column;gap:var(--_gap);box-sizing:border-box;height:100%;min-width:0;padding:var(--_padding-y) var(--_padding-x);border-radius:inherit;color:inherit;text-decoration:none;outline:none}:host([data-styled]) .tx-stat-tile__head{display:flex;align-items:center;gap:var(--tx-stat-tile-head-gap);min-width:0}:host([data-styled]) .tx-stat-tile__main{display:flex;flex:1;flex-direction:column;gap:var(--tx-stat-tile-main-gap);min-width:0}:host([data-styled]) .tx-stat-tile__aside{flex-shrink:0;align-self:flex-start}:host([data-styled]) .tx-stat-tile__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:var(--tx-stat-tile-icon-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-stat-tile-icon-background-mix),transparent);color:var(--_tone);font-size:var(--tx-stat-tile-icon-font-size)}:host([data-styled]) .tx-stat-tile__label{color:var(--tx-stat-tile-label-color);font-size:var(--tx-stat-tile-label-font-size);font-weight:var(--tx-stat-tile-label-font-weight)}:host([data-styled]) .tx-stat-tile__value{color:var(--tx-stat-tile-value-color);font-size:var(--_value-font-size);font-weight:var(--tx-stat-tile-value-font-weight);line-height:var(--tx-stat-tile-value-line-height);letter-spacing:var(--tx-stat-tile-value-letter-spacing)}:host([data-styled]) .tx-stat-tile__value--text{overflow:hidden;font-size:var(--tx-stat-tile-value-text-font-size);line-height:var(--tx-stat-tile-value-text-line-height);white-space:nowrap;text-overflow:ellipsis}:host([data-styled]) .tx-stat-tile__value--accent{color:var(--_tone)}:host([data-styled]) .tx-stat-tile__unit{margin-inline-start:var(--tx-stat-tile-unit-gap);color:var(--tx-stat-tile-unit-color);font-size:var(--tx-stat-tile-unit-font-size);font-weight:var(--tx-stat-tile-unit-font-weight);line-height:var(--tx-stat-tile-unit-line-height);letter-spacing:normal}:host([data-styled]) .tx-stat-tile__meta{overflow:hidden;color:var(--tx-stat-tile-meta-color);font-size:var(--tx-stat-tile-meta-font-size);line-height:var(--tx-stat-tile-meta-line-height);white-space:nowrap;text-overflow:ellipsis}:host([data-styled]) .tx-stat-tile__bar{display:block;height:var(--tx-stat-tile-bar-height);margin-top:var(--tx-stat-tile-bar-margin-top);overflow:hidden;border-radius:var(--tx-stat-tile-bar-border-radius);background:var(--tx-stat-tile-bar-background)}:host([data-styled]) .tx-stat-tile__bar-fill{display:block;height:100%;border-radius:var(--tx-stat-tile-bar-border-radius);background:var(--_tone);transition:width var(--tx-stat-tile-bar-transition-duration) var(--tx-motion-easing)}:host([data-styled][data-tone=neutral]){--_tone: var(--tx-stat-tile-tone-neutral)}:host([data-styled][data-tone=success]){--_tone: var(--tx-stat-tile-tone-success)}:host([data-styled][data-tone=info]){--_tone: var(--tx-stat-tile-tone-info)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-stat-tile-tone-warn)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-stat-tile-tone-danger)}:host([data-styled].tx-stat-tile--compact){--_padding-x: var(--tx-stat-tile-compact-padding-x);--_padding-y: var(--tx-stat-tile-compact-padding-y);--_gap: var(--tx-stat-tile-compact-gap);--_icon-size: var(--tx-stat-tile-compact-icon-size);--_value-font-size: var(--tx-stat-tile-compact-value-font-size)}:host([data-styled].tx-stat-tile--highlighted){--_ring: color-mix(in srgb, var(--_tone) var(--tx-stat-tile-highlighted-border-mix), var(--tx-stat-tile-border-color));background:color-mix(in srgb,var(--_tone) var(--tx-stat-tile-highlighted-background-mix),var(--tx-stat-tile-background))}:host([data-styled].tx-stat-tile--link:hover){--_ring: var(--tx-stat-tile-link-hover-border-color)}:host([data-styled].tx-stat-tile--link:focus-within){--_ring: var(--tx-stat-tile-link-focus-ring-color);--_ring-width: var(--tx-stat-tile-link-focus-ring-width)}:host([data-styled].tx-stat-tile--fit) .tx-stat-tile__main{container-type:inline-size}:host([data-styled].tx-stat-tile--fit) .tx-stat-tile__value{font-size:clamp(var(--tx-stat-tile-value-fit-min-font-size),var(--tx-stat-tile-value-fit-font-size),var(--tx-stat-tile-value-fit-max-font-size));white-space:nowrap}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-stat-tile__bar-fill{transition:none}}\n"],
|
|
433
|
+
dependencies: [
|
|
434
|
+
{
|
|
435
|
+
kind: "directive",
|
|
436
|
+
type: NgTemplateOutlet,
|
|
437
|
+
selector: "[ngTemplateOutlet]",
|
|
438
|
+
inputs: [
|
|
439
|
+
"ngTemplateOutletContext",
|
|
440
|
+
"ngTemplateOutlet",
|
|
441
|
+
"ngTemplateOutletInjector"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
kind: "directive",
|
|
446
|
+
type: RouterLink,
|
|
447
|
+
selector: "[routerLink]",
|
|
448
|
+
inputs: [
|
|
449
|
+
"target",
|
|
450
|
+
"queryParams",
|
|
451
|
+
"fragment",
|
|
452
|
+
"queryParamsHandling",
|
|
453
|
+
"state",
|
|
454
|
+
"info",
|
|
455
|
+
"relativeTo",
|
|
456
|
+
"preserveFragment",
|
|
457
|
+
"skipLocationChange",
|
|
458
|
+
"replaceUrl",
|
|
459
|
+
"browserUrl",
|
|
460
|
+
"routerLink"
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
kind: "component",
|
|
465
|
+
type: TxIcon,
|
|
466
|
+
selector: "tx-icon",
|
|
467
|
+
inputs: ["name"]
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
471
|
+
});
|
|
472
|
+
};
|
|
473
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
474
|
+
minVersion: "12.0.0",
|
|
475
|
+
version: "22.2.3",
|
|
476
|
+
ngImport: i0,
|
|
477
|
+
type: TxStatTile,
|
|
478
|
+
decorators: [{
|
|
479
|
+
type: Component,
|
|
480
|
+
args: [{
|
|
481
|
+
selector: "tx-stat-tile",
|
|
482
|
+
imports: [
|
|
483
|
+
NgTemplateOutlet,
|
|
484
|
+
RouterLink,
|
|
485
|
+
TxIcon
|
|
486
|
+
],
|
|
487
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
488
|
+
host: {
|
|
489
|
+
class: "tx-stat-tile",
|
|
490
|
+
role: "listitem",
|
|
491
|
+
"[class]": "passThrough().root?.class",
|
|
492
|
+
"[class.tx-stat-tile--highlighted]": "highlighted()",
|
|
493
|
+
"[class.tx-stat-tile--link]": "isLink()",
|
|
494
|
+
"[class.tx-stat-tile--fit]": "fitValue()",
|
|
495
|
+
"[class.tx-stat-tile--compact]": "isCompact()",
|
|
496
|
+
"[style]": "hostStyle()",
|
|
497
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
498
|
+
"[attr.data-tone]": "tone()"
|
|
499
|
+
},
|
|
500
|
+
template: "@if (link(); as commands) {\n <a\n class=\"tx-stat-tile__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [routerLink]=\"commands\"\n [queryParams]=\"queryParams()\"\n [attr.target]=\"target() || null\"\n [attr.rel]=\"rel()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\" />\n </a>\n} @else if (href(); as url) {\n <a\n class=\"tx-stat-tile__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [attr.href]=\"url\"\n [attr.target]=\"target() || null\"\n [attr.rel]=\"rel()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\" />\n </a>\n} @else {\n <div class=\"tx-stat-tile__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-container [ngTemplateOutlet]=\"body\" />\n </div>\n}\n\n<ng-template #body>\n <span class=\"tx-stat-tile__head\" [class]=\"passThrough().head?.class\" [style]=\"passThrough().head?.style\">\n @if (icon(); as name) {\n <span class=\"tx-stat-tile__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <span class=\"tx-stat-tile__main\" [class]=\"passThrough().main?.class\" [style]=\"passThrough().main?.style\">\n <span class=\"tx-stat-tile__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n <span\n class=\"tx-stat-tile__value\"\n [class.tx-stat-tile__value--text]=\"textValue()\"\n [class.tx-stat-tile__value--accent]=\"accentValue()\"\n [class]=\"passThrough().value?.class\"\n [style]=\"passThrough().value?.style\"\n [attr.title]=\"valueTitle()\"\n >{{ displayValue() }}\n @if (unit()) {\n <span class=\"tx-stat-tile__unit\" [class]=\"passThrough().unit?.class\" [style]=\"passThrough().unit?.style\">{{ unit() }}</span>\n }\n </span>\n @if (meta()) {\n <span class=\"tx-stat-tile__meta\" [class]=\"passThrough().meta?.class\" [style]=\"passThrough().meta?.style\">{{ meta() }}</span>\n }\n </span>\n <span class=\"tx-stat-tile__aside\" [class]=\"passThrough().aside?.class\" [style]=\"passThrough().aside?.style\">\n <ng-content select=\"[txStatTileAside]\" />\n </span>\n </span>\n @if (sharePercent() !== null) {\n <span\n class=\"tx-stat-tile__bar\"\n role=\"meter\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"sharePercent()\"\n [attr.aria-label]=\"label()\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n >\n <span\n class=\"tx-stat-tile__bar-fill\"\n [class]=\"passThrough().barFill?.class\"\n [style]=\"passThrough().barFill?.style\"\n [style.width.%]=\"sharePercent()\"\n ></span>\n </span>\n }\n <ng-content />\n</ng-template>\n\n",
|
|
501
|
+
styles: [":host{display:block;min-width:0}.tx-stat-tile__aside:empty{display:none}:host([data-styled]){--_tone: var(--tx-stat-tile-tone-primary);--_ring: var(--tx-stat-tile-border-color);--_ring-width: var(--tx-stat-tile-border-width);--_padding-x: var(--tx-stat-tile-padding-x);--_padding-y: var(--tx-stat-tile-padding-y);--_gap: var(--tx-stat-tile-gap);--_icon-size: var(--tx-stat-tile-icon-size);--_value-font-size: var(--tx-stat-tile-value-font-size);border-radius:var(--tx-stat-tile-border-radius);background:var(--tx-stat-tile-background);box-shadow:0 0 0 var(--_ring-width) var(--_ring);font-family:var(--tx-font-family);font-variant-numeric:tabular-nums;transition:box-shadow var(--tx-stat-tile-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-stat-tile__body{display:flex;flex-direction:column;gap:var(--_gap);box-sizing:border-box;height:100%;min-width:0;padding:var(--_padding-y) var(--_padding-x);border-radius:inherit;color:inherit;text-decoration:none;outline:none}:host([data-styled]) .tx-stat-tile__head{display:flex;align-items:center;gap:var(--tx-stat-tile-head-gap);min-width:0}:host([data-styled]) .tx-stat-tile__main{display:flex;flex:1;flex-direction:column;gap:var(--tx-stat-tile-main-gap);min-width:0}:host([data-styled]) .tx-stat-tile__aside{flex-shrink:0;align-self:flex-start}:host([data-styled]) .tx-stat-tile__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:var(--tx-stat-tile-icon-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-stat-tile-icon-background-mix),transparent);color:var(--_tone);font-size:var(--tx-stat-tile-icon-font-size)}:host([data-styled]) .tx-stat-tile__label{color:var(--tx-stat-tile-label-color);font-size:var(--tx-stat-tile-label-font-size);font-weight:var(--tx-stat-tile-label-font-weight)}:host([data-styled]) .tx-stat-tile__value{color:var(--tx-stat-tile-value-color);font-size:var(--_value-font-size);font-weight:var(--tx-stat-tile-value-font-weight);line-height:var(--tx-stat-tile-value-line-height);letter-spacing:var(--tx-stat-tile-value-letter-spacing)}:host([data-styled]) .tx-stat-tile__value--text{overflow:hidden;font-size:var(--tx-stat-tile-value-text-font-size);line-height:var(--tx-stat-tile-value-text-line-height);white-space:nowrap;text-overflow:ellipsis}:host([data-styled]) .tx-stat-tile__value--accent{color:var(--_tone)}:host([data-styled]) .tx-stat-tile__unit{margin-inline-start:var(--tx-stat-tile-unit-gap);color:var(--tx-stat-tile-unit-color);font-size:var(--tx-stat-tile-unit-font-size);font-weight:var(--tx-stat-tile-unit-font-weight);line-height:var(--tx-stat-tile-unit-line-height);letter-spacing:normal}:host([data-styled]) .tx-stat-tile__meta{overflow:hidden;color:var(--tx-stat-tile-meta-color);font-size:var(--tx-stat-tile-meta-font-size);line-height:var(--tx-stat-tile-meta-line-height);white-space:nowrap;text-overflow:ellipsis}:host([data-styled]) .tx-stat-tile__bar{display:block;height:var(--tx-stat-tile-bar-height);margin-top:var(--tx-stat-tile-bar-margin-top);overflow:hidden;border-radius:var(--tx-stat-tile-bar-border-radius);background:var(--tx-stat-tile-bar-background)}:host([data-styled]) .tx-stat-tile__bar-fill{display:block;height:100%;border-radius:var(--tx-stat-tile-bar-border-radius);background:var(--_tone);transition:width var(--tx-stat-tile-bar-transition-duration) var(--tx-motion-easing)}:host([data-styled][data-tone=neutral]){--_tone: var(--tx-stat-tile-tone-neutral)}:host([data-styled][data-tone=success]){--_tone: var(--tx-stat-tile-tone-success)}:host([data-styled][data-tone=info]){--_tone: var(--tx-stat-tile-tone-info)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-stat-tile-tone-warn)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-stat-tile-tone-danger)}:host([data-styled].tx-stat-tile--compact){--_padding-x: var(--tx-stat-tile-compact-padding-x);--_padding-y: var(--tx-stat-tile-compact-padding-y);--_gap: var(--tx-stat-tile-compact-gap);--_icon-size: var(--tx-stat-tile-compact-icon-size);--_value-font-size: var(--tx-stat-tile-compact-value-font-size)}:host([data-styled].tx-stat-tile--highlighted){--_ring: color-mix(in srgb, var(--_tone) var(--tx-stat-tile-highlighted-border-mix), var(--tx-stat-tile-border-color));background:color-mix(in srgb,var(--_tone) var(--tx-stat-tile-highlighted-background-mix),var(--tx-stat-tile-background))}:host([data-styled].tx-stat-tile--link:hover){--_ring: var(--tx-stat-tile-link-hover-border-color)}:host([data-styled].tx-stat-tile--link:focus-within){--_ring: var(--tx-stat-tile-link-focus-ring-color);--_ring-width: var(--tx-stat-tile-link-focus-ring-width)}:host([data-styled].tx-stat-tile--fit) .tx-stat-tile__main{container-type:inline-size}:host([data-styled].tx-stat-tile--fit) .tx-stat-tile__value{font-size:clamp(var(--tx-stat-tile-value-fit-min-font-size),var(--tx-stat-tile-value-fit-font-size),var(--tx-stat-tile-value-fit-max-font-size));white-space:nowrap}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-stat-tile__bar-fill{transition:none}}\n"]
|
|
502
|
+
}]
|
|
503
|
+
}],
|
|
504
|
+
propDecorators: {
|
|
505
|
+
label: [{
|
|
506
|
+
type: i0.Input,
|
|
507
|
+
args: [{
|
|
508
|
+
isSignal: true,
|
|
509
|
+
alias: "label",
|
|
510
|
+
required: true
|
|
511
|
+
}]
|
|
512
|
+
}],
|
|
513
|
+
value: [{
|
|
514
|
+
type: i0.Input,
|
|
515
|
+
args: [{
|
|
516
|
+
isSignal: true,
|
|
517
|
+
alias: "value",
|
|
518
|
+
required: false
|
|
519
|
+
}]
|
|
520
|
+
}],
|
|
521
|
+
unit: [{
|
|
522
|
+
type: i0.Input,
|
|
523
|
+
args: [{
|
|
524
|
+
isSignal: true,
|
|
525
|
+
alias: "unit",
|
|
526
|
+
required: false
|
|
527
|
+
}]
|
|
528
|
+
}],
|
|
529
|
+
icon: [{
|
|
530
|
+
type: i0.Input,
|
|
531
|
+
args: [{
|
|
532
|
+
isSignal: true,
|
|
533
|
+
alias: "icon",
|
|
534
|
+
required: false
|
|
535
|
+
}]
|
|
536
|
+
}],
|
|
537
|
+
meta: [{
|
|
538
|
+
type: i0.Input,
|
|
539
|
+
args: [{
|
|
540
|
+
isSignal: true,
|
|
541
|
+
alias: "meta",
|
|
542
|
+
required: false
|
|
543
|
+
}]
|
|
544
|
+
}],
|
|
545
|
+
tone: [{
|
|
546
|
+
type: i0.Input,
|
|
547
|
+
args: [{
|
|
548
|
+
isSignal: true,
|
|
549
|
+
alias: "tone",
|
|
550
|
+
required: false
|
|
551
|
+
}]
|
|
552
|
+
}],
|
|
553
|
+
share: [{
|
|
554
|
+
type: i0.Input,
|
|
555
|
+
args: [{
|
|
556
|
+
isSignal: true,
|
|
557
|
+
alias: "share",
|
|
558
|
+
required: false
|
|
559
|
+
}]
|
|
560
|
+
}],
|
|
561
|
+
textValue: [{
|
|
562
|
+
type: i0.Input,
|
|
563
|
+
args: [{
|
|
564
|
+
isSignal: true,
|
|
565
|
+
alias: "textValue",
|
|
566
|
+
required: false
|
|
567
|
+
}]
|
|
568
|
+
}],
|
|
569
|
+
fitValue: [{
|
|
570
|
+
type: i0.Input,
|
|
571
|
+
args: [{
|
|
572
|
+
isSignal: true,
|
|
573
|
+
alias: "fitValue",
|
|
574
|
+
required: false
|
|
575
|
+
}]
|
|
576
|
+
}],
|
|
577
|
+
accentValue: [{
|
|
578
|
+
type: i0.Input,
|
|
579
|
+
args: [{
|
|
580
|
+
isSignal: true,
|
|
581
|
+
alias: "accentValue",
|
|
582
|
+
required: false
|
|
583
|
+
}]
|
|
584
|
+
}],
|
|
585
|
+
highlighted: [{
|
|
586
|
+
type: i0.Input,
|
|
587
|
+
args: [{
|
|
588
|
+
isSignal: true,
|
|
589
|
+
alias: "highlighted",
|
|
590
|
+
required: false
|
|
591
|
+
}]
|
|
592
|
+
}],
|
|
593
|
+
link: [{
|
|
594
|
+
type: i0.Input,
|
|
595
|
+
args: [{
|
|
596
|
+
isSignal: true,
|
|
597
|
+
alias: "link",
|
|
598
|
+
required: false
|
|
599
|
+
}]
|
|
600
|
+
}],
|
|
601
|
+
queryParams: [{
|
|
602
|
+
type: i0.Input,
|
|
603
|
+
args: [{
|
|
604
|
+
isSignal: true,
|
|
605
|
+
alias: "queryParams",
|
|
606
|
+
required: false
|
|
607
|
+
}]
|
|
608
|
+
}],
|
|
609
|
+
href: [{
|
|
610
|
+
type: i0.Input,
|
|
611
|
+
args: [{
|
|
612
|
+
isSignal: true,
|
|
613
|
+
alias: "href",
|
|
614
|
+
required: false
|
|
615
|
+
}]
|
|
616
|
+
}],
|
|
617
|
+
target: [{
|
|
618
|
+
type: i0.Input,
|
|
619
|
+
args: [{
|
|
620
|
+
isSignal: true,
|
|
621
|
+
alias: "target",
|
|
622
|
+
required: false
|
|
623
|
+
}]
|
|
624
|
+
}],
|
|
625
|
+
dt: [{
|
|
626
|
+
type: i0.Input,
|
|
627
|
+
args: [{
|
|
628
|
+
isSignal: true,
|
|
629
|
+
alias: "dt",
|
|
630
|
+
required: false
|
|
631
|
+
}]
|
|
632
|
+
}],
|
|
633
|
+
pt: [{
|
|
634
|
+
type: i0.Input,
|
|
635
|
+
args: [{
|
|
636
|
+
isSignal: true,
|
|
637
|
+
alias: "pt",
|
|
638
|
+
required: false
|
|
639
|
+
}]
|
|
640
|
+
}],
|
|
641
|
+
ptOptions: [{
|
|
642
|
+
type: i0.Input,
|
|
643
|
+
args: [{
|
|
644
|
+
isSignal: true,
|
|
645
|
+
alias: "ptOptions",
|
|
646
|
+
required: false
|
|
647
|
+
}]
|
|
648
|
+
}],
|
|
649
|
+
unstyled: [{
|
|
650
|
+
type: i0.Input,
|
|
651
|
+
args: [{
|
|
652
|
+
isSignal: true,
|
|
653
|
+
alias: "unstyled",
|
|
654
|
+
required: false
|
|
655
|
+
}]
|
|
656
|
+
}]
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
export { TxStatTile, TxStatTiles };
|
|
660
|
+
|
|
661
|
+
//# sourceMappingURL=tectra-ng-ui-stat-tiles.mjs.map
|