@tectra-ng/ui 0.4.2 → 0.4.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 +1 -1
- package/amount/README.md +2 -2
- package/analog-clock/README.md +3 -2
- package/button-group/README.md +34 -2
- package/chips-input/README.md +10 -0
- package/data-view/README.md +3 -0
- package/fesm2022/tectra-ng-ui-amount.mjs +11 -9
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -6
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button-group.mjs +139 -6
- package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +36 -6
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +11 -3
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +14 -19
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-otp.mjs +6 -2
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +12 -4
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +3 -20
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +19 -2
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +2 -2
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +3 -2
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +4 -4
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select-button.mjs +748 -0
- package/fesm2022/tectra-ng-ui-select-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +91 -60
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-split-button.mjs +16 -5
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +8 -5
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs +72 -29
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +78 -141
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +2 -2
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +17 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +4 -4
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +2 -2
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/field/README.md +2 -2
- package/input-otp/README.md +1 -1
- package/knob/README.md +1 -1
- package/message/README.md +2 -2
- package/package.json +8 -4
- package/paginator/README.md +1 -1
- package/panel-menu/README.md +1 -1
- package/pill/README.md +1 -1
- package/select-button/README.md +70 -0
- package/speed-dial/README.md +2 -1
- package/stat-tiles/README.md +3 -3
- package/stepper/README.md +3 -2
- package/table/README.md +10 -7
- package/tabs/README.md +1 -1
- package/tree-select/README.md +1 -1
- package/tree-table/README.md +1 -1
- package/truncate-text/README.md +1 -1
- package/types/tectra-ng-ui-amount.d.ts +6 -3
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +9 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +58 -5
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +14 -1
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +2 -2
- package/types/tectra-ng-ui-input-otp.d.ts +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +2 -1
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +2 -2
- package/types/tectra-ng-ui-paginator.d.ts +2 -21
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +9 -9
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +7 -3
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select-button.d.ts +256 -0
- package/types/tectra-ng-ui-select-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +4 -3
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +25 -10
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +39 -42
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -1
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
|
@@ -36,7 +36,10 @@ var TxStatTiles = class TxStatTiles {
|
|
|
36
36
|
const minWidth = this.minWidth();
|
|
37
37
|
return {
|
|
38
38
|
...toStyleObject(this.dt(), "--tx-stat-tiles"),
|
|
39
|
-
...minWidth ? {
|
|
39
|
+
...minWidth ? {
|
|
40
|
+
"--tx-stat-tiles-min-width": minWidth,
|
|
41
|
+
"--tx-stat-tiles-floor-width": "0px"
|
|
42
|
+
} : {},
|
|
40
43
|
...this.passThrough().root?.style
|
|
41
44
|
};
|
|
42
45
|
}, ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
@@ -440,8 +443,8 @@ var TxStatTile = class TxStatTile {
|
|
|
440
443
|
classAttribute: "tx-stat-tile"
|
|
441
444
|
},
|
|
442
445
|
ngImport: i0,
|
|
443
|
-
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 [target]=\"target() || undefined\"\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",
|
|
444
|
-
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"],
|
|
446
|
+
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 [target]=\"target() || undefined\"\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\" [attr.title]=\"label()\">{{ 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\" [attr.title]=\"meta()\">{{ 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",
|
|
447
|
+
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),var(--tx-stat-tile-shadow);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{overflow:hidden;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);white-space:nowrap;text-overflow:ellipsis}: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"],
|
|
445
448
|
dependencies: [
|
|
446
449
|
{
|
|
447
450
|
kind: "directive",
|
|
@@ -511,8 +514,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
511
514
|
"[attr.data-tone]": "tone()"
|
|
512
515
|
},
|
|
513
516
|
viewProviders: [provideTxIconDefaults(STAT_TILES_ICON_DEFAULTS)],
|
|
514
|
-
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 [target]=\"target() || undefined\"\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",
|
|
515
|
-
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"]
|
|
517
|
+
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 [target]=\"target() || undefined\"\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\" [attr.title]=\"label()\">{{ 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\" [attr.title]=\"meta()\">{{ 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",
|
|
518
|
+
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),var(--tx-stat-tile-shadow);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{overflow:hidden;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);white-space:nowrap;text-overflow:ellipsis}: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"]
|
|
516
519
|
}]
|
|
517
520
|
}],
|
|
518
521
|
propDecorators: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-stat-tiles.mjs","names":[],"sources":["../../../../packages/ui/stat-tiles/src/stat-tiles.icons.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.theme.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.html"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconList } from '@tectra-ng/icons';\n\nexport const STAT_TILES_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n list: txIconList,\n};\n","import { statTileTokens, statTilesTokens } from '@tectra-ng/themes';\n\nexport const STAT_TILES_THEME = {\n statTile: statTileTokens,\n statTiles: statTilesTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraStatTilesTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxStatTilesPart } from './stat-tiles.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { STAT_TILES_ICON_DEFAULTS } from './stat-tiles.icons';\nimport { STAT_TILES_THEME } from './stat-tiles.theme';\n\n/** A responsive grid of key numbers made of `tx-stat-tile` elements. */\n@Component({\n selector: 'tx-stat-tiles',\n template: '<ng-content />',\n styleUrl: './stat-tiles.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-stat-tiles',\n role: 'list',\n '[class]': 'passThrough().root?.class',\n '[class.tx-stat-tiles--compact]': 'compact()',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n },\n viewProviders: [provideTxIconDefaults(STAT_TILES_ICON_DEFAULTS)],\n})\nexport class TxStatTiles {\n private readonly statTilesTheme = injectTokens(STAT_TILES_THEME);\n\n readonly minWidth = input<string | undefined>(undefined);\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraStatTilesTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxStatTilesPart, TxStatTiles> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('statTiles', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => {\n const minWidth = this.minWidth();\n return {\n ...toStyleObject(this.dt(), '--tx-stat-tiles'),\n ...(minWidth ? { '--tx-stat-tiles-min-width': minWidth } : {}),\n ...this.passThrough().root?.style,\n };\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { Params, RouterLink } from '@angular/router';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraStatTileTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxStatTiles } from './stat-tiles.component';\nimport { TxStatTileCommands, TxStatTilePart, TxStatTileTone } from './stat-tiles.types';\nimport { STAT_TILES_ICON_DEFAULTS } from './stat-tiles.icons';\nimport { STAT_TILES_THEME } from './stat-tiles.theme';\n\n/**\n * One key number: a tinted icon, label, value with unit, meta line, optional share bar and aside; can\n * be a link.\n */\n@Component({\n selector: 'tx-stat-tile',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './stat-tile.component.html',\n styleUrl: './stat-tile.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-stat-tile',\n role: 'listitem',\n '[class]': 'passThrough().root?.class',\n '[class.tx-stat-tile--highlighted]': 'highlighted()',\n '[class.tx-stat-tile--link]': 'isLink()',\n '[class.tx-stat-tile--fit]': 'fitValue()',\n '[class.tx-stat-tile--compact]': 'isCompact()',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'tone()',\n },\n viewProviders: [provideTxIconDefaults(STAT_TILES_ICON_DEFAULTS)],\n})\nexport class TxStatTile {\n private readonly statTilesTheme = injectTokens(STAT_TILES_THEME);\n\n private tiles = inject(TxStatTiles, { optional: true });\n\n readonly label = input.required<string>();\n readonly value = input<string | number | null | undefined>(null);\n readonly unit = input<string | null | undefined>('');\n readonly icon = input<TxIconName | (string & {}) | null | undefined>(undefined);\n readonly meta = input<string | null | undefined>('');\n readonly tone = input<TxStatTileTone>('primary');\n readonly share = input<number | null | undefined>(null);\n readonly textValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fitValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly accentValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly highlighted = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<TxStatTileCommands>(undefined);\n readonly queryParams = input<Params | null | undefined>(undefined);\n readonly href = input<string | null | undefined>(undefined);\n readonly target = input<string | null | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraStatTileTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxStatTilePart, TxStatTile> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('statTile', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-stat-tile'), ...this.passThrough().root?.style }));\n readonly isCompact = computed(() => this.tiles?.compact() ?? false);\n readonly isLink = computed(() => !!this.link() || !!this.href());\n readonly displayValue = computed(() => this.value() ?? '-');\n readonly valueTitle = computed(() => (this.textValue() ? String(this.displayValue()) : null));\n readonly sharePercent = computed(() => {\n const share = this.share();\n return share === null || share === undefined || Number.isNaN(share) ? null : Math.min(100, Math.max(0, share));\n });\n readonly rel = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n}\n","@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 [target]=\"target() || undefined\"\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"],"mappings":";;;;;;;;AAEA,MAAa,2B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AA;GAAA,QAAA,CAAA,2+JAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-stat-tiles.mjs","names":[],"sources":["../../../../packages/ui/stat-tiles/src/stat-tiles.icons.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.theme.ts","../../../../packages/ui/stat-tiles/src/stat-tiles.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.ts","../../../../packages/ui/stat-tiles/src/stat-tile.component.html"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconList } from '@tectra-ng/icons';\n\nexport const STAT_TILES_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n list: txIconList,\n};\n","import { statTileTokens, statTilesTokens } from '@tectra-ng/themes';\n\nexport const STAT_TILES_THEME = {\n statTile: statTileTokens,\n statTiles: statTilesTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraStatTilesTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxStatTilesPart } from './stat-tiles.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { STAT_TILES_ICON_DEFAULTS } from './stat-tiles.icons';\nimport { STAT_TILES_THEME } from './stat-tiles.theme';\n\n/** A responsive grid of key numbers made of `tx-stat-tile` elements. */\n@Component({\n selector: 'tx-stat-tiles',\n template: '<ng-content />',\n styleUrl: './stat-tiles.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-stat-tiles',\n role: 'list',\n '[class]': 'passThrough().root?.class',\n '[class.tx-stat-tiles--compact]': 'compact()',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n },\n viewProviders: [provideTxIconDefaults(STAT_TILES_ICON_DEFAULTS)],\n})\nexport class TxStatTiles {\n private readonly statTilesTheme = injectTokens(STAT_TILES_THEME);\n\n readonly minWidth = input<string | undefined>(undefined);\n readonly compact = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraStatTilesTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxStatTilesPart, TxStatTiles> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('statTiles', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => {\n const minWidth = this.minWidth();\n return {\n ...toStyleObject(this.dt(), '--tx-stat-tiles'),\n ...(minWidth ? { '--tx-stat-tiles-min-width': minWidth, '--tx-stat-tiles-floor-width': '0px' } : {}),\n ...this.passThrough().root?.style,\n };\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { Params, RouterLink } from '@angular/router';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraStatTileTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxStatTiles } from './stat-tiles.component';\nimport { TxStatTileCommands, TxStatTilePart, TxStatTileTone } from './stat-tiles.types';\nimport { STAT_TILES_ICON_DEFAULTS } from './stat-tiles.icons';\nimport { STAT_TILES_THEME } from './stat-tiles.theme';\n\n/**\n * One key number: a tinted icon, label, value with unit, meta line, optional share bar and aside; can\n * be a link.\n */\n@Component({\n selector: 'tx-stat-tile',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './stat-tile.component.html',\n styleUrl: './stat-tile.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-stat-tile',\n role: 'listitem',\n '[class]': 'passThrough().root?.class',\n '[class.tx-stat-tile--highlighted]': 'highlighted()',\n '[class.tx-stat-tile--link]': 'isLink()',\n '[class.tx-stat-tile--fit]': 'fitValue()',\n '[class.tx-stat-tile--compact]': 'isCompact()',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'tone()',\n },\n viewProviders: [provideTxIconDefaults(STAT_TILES_ICON_DEFAULTS)],\n})\nexport class TxStatTile {\n private readonly statTilesTheme = injectTokens(STAT_TILES_THEME);\n\n private tiles = inject(TxStatTiles, { optional: true });\n\n readonly label = input.required<string>();\n readonly value = input<string | number | null | undefined>(null);\n readonly unit = input<string | null | undefined>('');\n readonly icon = input<TxIconName | (string & {}) | null | undefined>(undefined);\n readonly meta = input<string | null | undefined>('');\n readonly tone = input<TxStatTileTone>('primary');\n readonly share = input<number | null | undefined>(null);\n readonly textValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fitValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly accentValue = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly highlighted = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<TxStatTileCommands>(undefined);\n readonly queryParams = input<Params | null | undefined>(undefined);\n readonly href = input<string | null | undefined>(undefined);\n readonly target = input<string | null | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraStatTileTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxStatTilePart, TxStatTile> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('statTile', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-stat-tile'), ...this.passThrough().root?.style }));\n readonly isCompact = computed(() => this.tiles?.compact() ?? false);\n readonly isLink = computed(() => !!this.link() || !!this.href());\n readonly displayValue = computed(() => this.value() ?? '-');\n readonly valueTitle = computed(() => (this.textValue() ? String(this.displayValue()) : null));\n readonly sharePercent = computed(() => {\n const share = this.share();\n return share === null || share === undefined || Number.isNaN(share) ? null : Math.min(100, Math.max(0, share));\n });\n readonly rel = computed(() => (this.target() === '_blank' ? 'noopener noreferrer' : null));\n}\n","@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 [target]=\"target() || undefined\"\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\" [attr.title]=\"label()\">{{ 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\" [attr.title]=\"meta()\">{{ 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"],"mappings":";;;;;;;;AAEA,MAAa,2BAAsC;CACjD,MAAM;CACN,MAAM;AACP;ACHD,MAAa,mBAAmB;CAC9B,UAAU;CACV,WAAW;AACZ;ACsBD,IAAa,cAAb,MAAa,YAAW;CACL,iBAAiB,aAAa,gBAAgB;CAEtD,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,UAAU,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,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A;IAAA,4BAAA;IAAA,2BAAA;IAAA,+BAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,kBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UCpCvB;EAgFA,QAAA,CAAA,gkKAAA;EAAA,cAAA;GAAA;IAAA,MAAA;IAAA,MD9DY;IAAgB,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAU,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAM,UAAA;IAAA,QAAA,CAAA,MAAA;GAAA;EAAA;EAAA,eAgB/B,CAAC,sBAAsB,wBAAwB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAErD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EApBtB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,SACf;IAAC;IAAkB;IAAY;GAAM;GAAC,iBAG9B,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,qCAAqC;IACrC,8BAA8B;IAC9B,6BAA6B;IAC7B,iCAAiC;IACjC,WAAW;IACX,sBAAsB;IACtB,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,wBAAwB,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,gkKAAA;EAAA,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, ViewEncapsulation, booleanAttribute, computed, contentChild, contentChildren, inject, input, linkedSignal, model, viewChild } from "@angular/core";
|
|
3
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
3
4
|
import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconCheck, txIconLink, txIconList } from "@tectra-ng/icons";
|
|
4
5
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
6
|
import { stepperTokens, stepsTokens, toStyleObject } from "@tectra-ng/themes";
|
|
6
7
|
import { NgTemplateOutlet } from "@angular/common";
|
|
7
|
-
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
8
|
-
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
9
8
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
9
|
+
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
10
10
|
var TxStepperRef = class {};
|
|
11
11
|
var TxStepContent = class TxStepContent {
|
|
12
12
|
templateRef = inject(TemplateRef);
|
|
@@ -116,9 +116,13 @@ const STEPPER_THEME = {
|
|
|
116
116
|
var TxStepItem = class TxStepItem {
|
|
117
117
|
stepperTheme = injectTokens(STEPPER_THEME);
|
|
118
118
|
stepper = inject(TxStepperRef);
|
|
119
|
-
value = input
|
|
119
|
+
value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
120
|
+
completed = input(void 0, {
|
|
121
|
+
...ngDevMode ? { debugName: "completed" } : /* istanbul ignore next */ {},
|
|
122
|
+
transform: optionalBoolean
|
|
123
|
+
});
|
|
120
124
|
active = computed(() => this.stepper.isActive(this.value()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
121
|
-
|
|
125
|
+
isCompleted = computed(() => this.completed() ?? this.stepper.isCompleted(this.value()), ...ngDevMode ? [{ debugName: "isCompleted" }] : /* istanbul ignore next */ []);
|
|
122
126
|
last = computed(() => this.stepper.isLast(this.value()), ...ngDevMode ? [{ debugName: "last" }] : /* istanbul ignore next */ []);
|
|
123
127
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
124
128
|
minVersion: "12.0.0",
|
|
@@ -134,19 +138,28 @@ var TxStepItem = class TxStepItem {
|
|
|
134
138
|
type: TxStepItem,
|
|
135
139
|
isStandalone: true,
|
|
136
140
|
selector: "tx-step-item",
|
|
137
|
-
inputs: {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
inputs: {
|
|
142
|
+
value: {
|
|
143
|
+
classPropertyName: "value",
|
|
144
|
+
publicName: "value",
|
|
145
|
+
isSignal: true,
|
|
146
|
+
isRequired: false,
|
|
147
|
+
transformFunction: null
|
|
148
|
+
},
|
|
149
|
+
completed: {
|
|
150
|
+
classPropertyName: "completed",
|
|
151
|
+
publicName: "completed",
|
|
152
|
+
isSignal: true,
|
|
153
|
+
isRequired: false,
|
|
154
|
+
transformFunction: null
|
|
155
|
+
}
|
|
156
|
+
},
|
|
144
157
|
host: {
|
|
145
158
|
properties: {
|
|
146
159
|
"class": "stepper.passThrough().item?.class",
|
|
147
160
|
"style": "stepper.passThrough().item?.style",
|
|
148
161
|
"class.tx-step-item--active": "active()",
|
|
149
|
-
"class.tx-step-item--completed": "
|
|
162
|
+
"class.tx-step-item--completed": "isCompleted()",
|
|
150
163
|
"class.tx-step-item--last": "last()"
|
|
151
164
|
},
|
|
152
165
|
classAttribute: "tx-step-item"
|
|
@@ -174,20 +187,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
174
187
|
"[class]": "stepper.passThrough().item?.class",
|
|
175
188
|
"[style]": "stepper.passThrough().item?.style",
|
|
176
189
|
"[class.tx-step-item--active]": "active()",
|
|
177
|
-
"[class.tx-step-item--completed]": "
|
|
190
|
+
"[class.tx-step-item--completed]": "isCompleted()",
|
|
178
191
|
"[class.tx-step-item--last]": "last()"
|
|
179
192
|
},
|
|
180
193
|
viewProviders: [provideTxIconDefaults(STEPPER_ICON_DEFAULTS)]
|
|
181
194
|
}]
|
|
182
195
|
}],
|
|
183
|
-
propDecorators: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
propDecorators: {
|
|
197
|
+
value: [{
|
|
198
|
+
type: i0.Input,
|
|
199
|
+
args: [{
|
|
200
|
+
isSignal: true,
|
|
201
|
+
alias: "value",
|
|
202
|
+
required: false
|
|
203
|
+
}]
|
|
204
|
+
}],
|
|
205
|
+
completed: [{
|
|
206
|
+
type: i0.Input,
|
|
207
|
+
args: [{
|
|
208
|
+
isSignal: true,
|
|
209
|
+
alias: "completed",
|
|
210
|
+
required: false
|
|
211
|
+
}]
|
|
189
212
|
}]
|
|
190
|
-
}
|
|
213
|
+
}
|
|
191
214
|
});
|
|
192
215
|
var TxStep = class TxStep {
|
|
193
216
|
stepperTheme = injectTokens(STEPPER_THEME);
|
|
@@ -198,13 +221,18 @@ var TxStep = class TxStep {
|
|
|
198
221
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
199
222
|
transform: booleanAttribute
|
|
200
223
|
});
|
|
224
|
+
completed = input(void 0, {
|
|
225
|
+
...ngDevMode ? { debugName: "completed" } : /* istanbul ignore next */ {},
|
|
226
|
+
transform: optionalBoolean
|
|
227
|
+
});
|
|
228
|
+
t = injectTranslations();
|
|
201
229
|
contentTemplate = contentChild(TxStepContent, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
202
230
|
header = viewChild("header", ...ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []);
|
|
203
231
|
inItem = !!this.item;
|
|
204
232
|
resolvedValue = computed(() => this.value() ?? this.item?.value(), ...ngDevMode ? [{ debugName: "resolvedValue" }] : /* istanbul ignore next */ []);
|
|
205
233
|
index = computed(() => this.stepper.indexOf(this.resolvedValue()), ...ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []);
|
|
206
234
|
active = computed(() => this.stepper.isActive(this.resolvedValue()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
207
|
-
|
|
235
|
+
isCompleted = computed(() => this.completed() ?? (this.item ? this.item.isCompleted() : this.stepper.isCompleted(this.resolvedValue())), ...ngDevMode ? [{ debugName: "isCompleted" }] : /* istanbul ignore next */ []);
|
|
208
236
|
isDisabled = computed(() => this.disabled() || this.stepper.linear() && !this.active(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
209
237
|
showSeparator = computed(() => !this.inItem && !this.stepper.isLast(this.resolvedValue()), ...ngDevMode ? [{ debugName: "showSeparator" }] : /* istanbul ignore next */ []);
|
|
210
238
|
stepId = computed(() => this.stepper.stepId(this.resolvedValue()), ...ngDevMode ? [{ debugName: "stepId" }] : /* istanbul ignore next */ []);
|
|
@@ -220,7 +248,7 @@ var TxStep = class TxStep {
|
|
|
220
248
|
value,
|
|
221
249
|
index: this.index(),
|
|
222
250
|
active: this.active(),
|
|
223
|
-
completed: this.
|
|
251
|
+
completed: this.isCompleted(),
|
|
224
252
|
disabled: this.isDisabled(),
|
|
225
253
|
activate: (target) => this.stepper.activate(target)
|
|
226
254
|
};
|
|
@@ -263,6 +291,13 @@ var TxStep = class TxStep {
|
|
|
263
291
|
isSignal: true,
|
|
264
292
|
isRequired: false,
|
|
265
293
|
transformFunction: null
|
|
294
|
+
},
|
|
295
|
+
completed: {
|
|
296
|
+
classPropertyName: "completed",
|
|
297
|
+
publicName: "completed",
|
|
298
|
+
isSignal: true,
|
|
299
|
+
isRequired: false,
|
|
300
|
+
transformFunction: null
|
|
266
301
|
}
|
|
267
302
|
},
|
|
268
303
|
host: {
|
|
@@ -271,7 +306,7 @@ var TxStep = class TxStep {
|
|
|
271
306
|
"class": "stepper.passThrough().step?.class",
|
|
272
307
|
"style": "stepper.passThrough().step?.style",
|
|
273
308
|
"class.tx-step--active": "active()",
|
|
274
|
-
"class.tx-step--completed": "
|
|
309
|
+
"class.tx-step--completed": "isCompleted()",
|
|
275
310
|
"class.tx-step--disabled": "disabled()"
|
|
276
311
|
},
|
|
277
312
|
classAttribute: "tx-step"
|
|
@@ -291,7 +326,7 @@ var TxStep = class TxStep {
|
|
|
291
326
|
isSignal: true
|
|
292
327
|
}],
|
|
293
328
|
ngImport: i0,
|
|
294
|
-
template: "@if (contentTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template.templateRef; context: context()\" />\n} @else {\n <button\n #header\n type=\"button\"\n class=\"tx-step__header\"\n [class]=\"stepper.passThrough().header?.class\"\n [style]=\"stepper.passThrough().header?.style\"\n [id]=\"stepId()\"\n [attr.role]=\"inItem ? null : 'tab'\"\n [attr.aria-selected]=\"inItem ? null : active()\"\n [attr.aria-expanded]=\"inItem && panelId() ? active() : null\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.tabindex]=\"tabIndex()\"\n [disabled]=\"isDisabled()\"\n (click)=\"select()\"\n (keydown)=\"onKeydown($event)\"\n >\n <span class=\"tx-step__number\" [class]=\"stepper.passThrough().number?.class\" [style]=\"stepper.passThrough().number?.style\">{{ index() + 1 }}</span>\n <span class=\"tx-step__title\" [class]=\"stepper.passThrough().title?.class\" [style]=\"stepper.passThrough().title?.style\"><ng-content /></span>\n </button>\n}\n@if (showSeparator()) {\n <span class=\"tx-stepper__separator\" aria-hidden=\"true\" [class]=\"stepper.passThrough().separator?.class\" [style]=\"stepper.passThrough().separator?.style\"></span>\n}\n",
|
|
329
|
+
template: "@if (contentTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template.templateRef; context: context()\" />\n} @else {\n <button\n #header\n type=\"button\"\n class=\"tx-step__header\"\n [class]=\"stepper.passThrough().header?.class\"\n [style]=\"stepper.passThrough().header?.style\"\n [id]=\"stepId()\"\n [attr.role]=\"inItem ? null : 'tab'\"\n [attr.aria-selected]=\"inItem ? null : active()\"\n [attr.aria-expanded]=\"inItem && panelId() ? active() : null\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.tabindex]=\"tabIndex()\"\n [disabled]=\"isDisabled()\"\n (click)=\"select()\"\n (keydown)=\"onKeydown($event)\"\n >\n <span class=\"tx-step__number\" [class]=\"stepper.passThrough().number?.class\" [style]=\"stepper.passThrough().number?.style\">{{ index() + 1 }}</span>\n <span class=\"tx-step__title\" [class]=\"stepper.passThrough().title?.class\" [style]=\"stepper.passThrough().title?.style\"><ng-content /></span>\n @if (isCompleted()) {\n <span class=\"tx-stepper__sr-only\">, {{ t().stepCompleted }}</span>\n }\n </button>\n}\n@if (showSeparator()) {\n <span class=\"tx-stepper__separator\" aria-hidden=\"true\" [class]=\"stepper.passThrough().separator?.class\" [style]=\"stepper.passThrough().separator?.style\"></span>\n}\n",
|
|
295
330
|
dependencies: [{
|
|
296
331
|
kind: "directive",
|
|
297
332
|
type: NgTemplateOutlet,
|
|
@@ -323,11 +358,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
323
358
|
"[class]": "stepper.passThrough().step?.class",
|
|
324
359
|
"[style]": "stepper.passThrough().step?.style",
|
|
325
360
|
"[class.tx-step--active]": "active()",
|
|
326
|
-
"[class.tx-step--completed]": "
|
|
361
|
+
"[class.tx-step--completed]": "isCompleted()",
|
|
327
362
|
"[class.tx-step--disabled]": "disabled()"
|
|
328
363
|
},
|
|
329
364
|
viewProviders: [provideTxIconDefaults(STEPPER_ICON_DEFAULTS)],
|
|
330
|
-
template: "@if (contentTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template.templateRef; context: context()\" />\n} @else {\n <button\n #header\n type=\"button\"\n class=\"tx-step__header\"\n [class]=\"stepper.passThrough().header?.class\"\n [style]=\"stepper.passThrough().header?.style\"\n [id]=\"stepId()\"\n [attr.role]=\"inItem ? null : 'tab'\"\n [attr.aria-selected]=\"inItem ? null : active()\"\n [attr.aria-expanded]=\"inItem && panelId() ? active() : null\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.tabindex]=\"tabIndex()\"\n [disabled]=\"isDisabled()\"\n (click)=\"select()\"\n (keydown)=\"onKeydown($event)\"\n >\n <span class=\"tx-step__number\" [class]=\"stepper.passThrough().number?.class\" [style]=\"stepper.passThrough().number?.style\">{{ index() + 1 }}</span>\n <span class=\"tx-step__title\" [class]=\"stepper.passThrough().title?.class\" [style]=\"stepper.passThrough().title?.style\"><ng-content /></span>\n </button>\n}\n@if (showSeparator()) {\n <span class=\"tx-stepper__separator\" aria-hidden=\"true\" [class]=\"stepper.passThrough().separator?.class\" [style]=\"stepper.passThrough().separator?.style\"></span>\n}\n"
|
|
365
|
+
template: "@if (contentTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template.templateRef; context: context()\" />\n} @else {\n <button\n #header\n type=\"button\"\n class=\"tx-step__header\"\n [class]=\"stepper.passThrough().header?.class\"\n [style]=\"stepper.passThrough().header?.style\"\n [id]=\"stepId()\"\n [attr.role]=\"inItem ? null : 'tab'\"\n [attr.aria-selected]=\"inItem ? null : active()\"\n [attr.aria-expanded]=\"inItem && panelId() ? active() : null\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-current]=\"active() ? 'step' : null\"\n [attr.tabindex]=\"tabIndex()\"\n [disabled]=\"isDisabled()\"\n (click)=\"select()\"\n (keydown)=\"onKeydown($event)\"\n >\n <span class=\"tx-step__number\" [class]=\"stepper.passThrough().number?.class\" [style]=\"stepper.passThrough().number?.style\">{{ index() + 1 }}</span>\n <span class=\"tx-step__title\" [class]=\"stepper.passThrough().title?.class\" [style]=\"stepper.passThrough().title?.style\"><ng-content /></span>\n @if (isCompleted()) {\n <span class=\"tx-stepper__sr-only\">, {{ t().stepCompleted }}</span>\n }\n </button>\n}\n@if (showSeparator()) {\n <span class=\"tx-stepper__separator\" aria-hidden=\"true\" [class]=\"stepper.passThrough().separator?.class\" [style]=\"stepper.passThrough().separator?.style\"></span>\n}\n"
|
|
331
366
|
}]
|
|
332
367
|
}],
|
|
333
368
|
propDecorators: {
|
|
@@ -347,6 +382,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
347
382
|
required: false
|
|
348
383
|
}]
|
|
349
384
|
}],
|
|
385
|
+
completed: [{
|
|
386
|
+
type: i0.Input,
|
|
387
|
+
args: [{
|
|
388
|
+
isSignal: true,
|
|
389
|
+
alias: "completed",
|
|
390
|
+
required: false
|
|
391
|
+
}]
|
|
392
|
+
}],
|
|
350
393
|
contentTemplate: [{
|
|
351
394
|
type: i0.ContentChild,
|
|
352
395
|
args: [i0.forwardRef(() => TxStepContent), { isSignal: true }]
|
|
@@ -624,7 +667,7 @@ var TxStepper = class TxStepper extends TxStepperRef {
|
|
|
624
667
|
...this.passThrough().root?.style
|
|
625
668
|
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
626
669
|
vertical = computed(() => this.items().length > 0, ...ngDevMode ? [{ debugName: "vertical" }] : /* istanbul ignore next */ []);
|
|
627
|
-
values = computed(() => this.steps().
|
|
670
|
+
values = computed(() => this.steps().flatMap((step) => step.resolvedValue() ?? []), ...ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []);
|
|
628
671
|
panelValues = computed(() => new Set(this.panels().map((panel) => panel.resolvedValue())), ...ngDevMode ? [{ debugName: "panelValues" }] : /* istanbul ignore next */ []);
|
|
629
672
|
activeIndex = computed(() => this.indexOf(this.value()), ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
|
|
630
673
|
indexOf(value) {
|
|
@@ -768,7 +811,7 @@ var TxStepper = class TxStepper extends TxStepperRef {
|
|
|
768
811
|
ngImport: i0,
|
|
769
812
|
template: "<ng-content />",
|
|
770
813
|
isInline: true,
|
|
771
|
-
styles: [".tx-stepper{display:block;min-width:0}.tx-stepper--vertical{display:flex;flex-direction:column}.tx-step-list{position:relative;display:flex;justify-content:space-between;align-items:center;overflow-x:auto}.tx-step{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-step:last-of-type,.tx-step-item .tx-step{flex:initial}.tx-step__header{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.tx-step__header:disabled{cursor:default}.tx-step--active .tx-step__header{cursor:default}.tx-step__title{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-step__number{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-stepper__separator{display:block;flex:1 1 0}.tx-step-item{display:flex;flex-direction:column;flex:initial}.tx-step-item--active{flex:1 1 auto}.tx-step-panel{display:block}.tx-step-panel[hidden]{display:none}.tx-step-item .tx-step-panel{display:grid;grid-template-rows:0fr}.tx-step-item--active .tx-step-panel{grid-template-rows:1fr}.tx-step-panel__collapse{min-height:0;overflow:hidden}.tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{visibility:hidden}.tx-step-panel__wrapper{display:flex;min-height:0}.tx-step-panel__content{flex:1 1 auto;min-width:0}.tx-stepper[data-styled]{--_duration: var(--tx-stepper-transition-duration);--_panel-duration: var(--tx-stepper-panel-transition-duration);--_number: var(--tx-stepper-step-number-size);--_separator: var(--tx-stepper-separator-size);font-family:var(--tx-font-family)}.tx-stepper[data-styled] .tx-step{gap:var(--tx-stepper-step-gap);padding:var(--tx-stepper-step-padding)}.tx-stepper[data-styled] .tx-step__header{gap:var(--tx-stepper-step-header-gap);padding:var(--tx-stepper-step-header-padding);border-radius:var(--tx-stepper-step-header-border-radius);outline:0 solid transparent;transition:color var(--_duration),outline-color var(--_duration),box-shadow var(--_duration)}.tx-stepper[data-styled] .tx-step__header:focus-visible{outline:var(--tx-stepper-step-header-focus-ring-width) var(--tx-stepper-step-header-focus-ring-style) var(--tx-stepper-step-header-focus-ring-color);outline-offset:var(--tx-stepper-step-header-focus-ring-offset);box-shadow:var(--tx-stepper-step-header-focus-ring-shadow)}.tx-stepper[data-styled] .tx-step__title{color:var(--tx-stepper-step-title-color);font-size:var(--tx-stepper-step-title-font-size);font-weight:var(--tx-stepper-step-title-font-weight);transition:color var(--_duration)}.tx-stepper[data-styled] .tx-step__number{z-index:1;min-width:var(--_number);height:var(--_number);border:var(--tx-stepper-step-number-border-width) solid var(--tx-stepper-step-number-border-color);border-radius:var(--tx-stepper-step-number-border-radius);background:var(--tx-stepper-step-number-background);color:var(--tx-stepper-step-number-color);font-size:var(--tx-stepper-step-number-font-size);font-weight:var(--tx-stepper-step-number-font-weight);line-height:var(--_number);transition:color var(--_duration),background-color var(--_duration),border-color var(--_duration)}.tx-stepper[data-styled] .tx-step__number:after{content:\"\";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--tx-stepper-step-number-shadow)}.tx-stepper[data-styled] .tx-step--active .tx-step__number{border-color:var(--tx-stepper-step-number-active-border-color);background:var(--tx-stepper-step-number-active-background);color:var(--tx-stepper-step-number-active-color)}.tx-stepper[data-styled] .tx-step--active .tx-step__title{color:var(--tx-stepper-step-title-active-color)}.tx-stepper[data-styled] .tx-step--disabled .tx-step__header{opacity:var(--tx-stepper-step-header-disabled-opacity)}.tx-stepper[data-styled] .tx-stepper__separator{width:100%;height:var(--_separator);background:var(--tx-stepper-separator-background);transition:background-color var(--_duration)}.tx-stepper[data-styled] .tx-step--completed .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item--completed .tx-stepper__separator{background:var(--tx-stepper-separator-active-background)}.tx-stepper[data-styled] .tx-step-panels{display:block;padding:var(--tx-stepper-steppanels-padding)}.tx-stepper[data-styled] .tx-step-panel{background:var(--tx-stepper-steppanel-background);color:var(--tx-stepper-steppanel-color)}.tx-stepper[data-styled] .tx-step-item .tx-step-panel{transition:grid-template-rows var(--_panel-duration) cubic-bezier(.2,0,0,1)}.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:visibility 0s linear var(--_panel-duration)}.tx-stepper[data-styled] .tx-step-panel__separator{flex:0 0 auto;width:var(--_separator);height:auto;margin:var(--tx-stepper-separator-margin);translate:calc(var(--_separator) / -2) 0}.tx-stepper[data-styled] .tx-step-item--last .tx-step-panel__separator{visibility:hidden}.tx-stepper[data-styled] .tx-step-panel__content{padding:var(--tx-stepper-steppanel-padding);margin-inline-start:var(--tx-stepper-steppanel-indent)}@media(prefers-reduced-motion:reduce){.tx-stepper[data-styled] .tx-step__header,.tx-stepper[data-styled] .tx-step__title,.tx-stepper[data-styled] .tx-step__number,.tx-stepper[data-styled] .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item .tx-step-panel,.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:none}}\n"],
|
|
814
|
+
styles: [".tx-stepper{display:block;min-width:0}.tx-stepper--vertical{display:flex;flex-direction:column}.tx-stepper__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-step-list{position:relative;display:flex;justify-content:space-between;align-items:center;overflow-x:auto}.tx-step{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-step:last-of-type,.tx-step-item .tx-step{flex:initial}.tx-step__header{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.tx-step__header:disabled{cursor:default}.tx-step--active .tx-step__header{cursor:default}.tx-step__title{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-step__number{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-stepper__separator{display:block;flex:1 1 0}.tx-step-item{display:flex;flex-direction:column;flex:initial}.tx-step-item--active{flex:1 1 auto}.tx-step-panel{display:block}.tx-step-panel[hidden]{display:none}.tx-step-item .tx-step-panel{display:grid;grid-template-rows:0fr}.tx-step-item--active .tx-step-panel{grid-template-rows:1fr}.tx-step-panel__collapse{min-height:0;overflow:hidden}.tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{visibility:hidden}.tx-step-panel__wrapper{display:flex;min-height:0}.tx-step-panel__content{flex:1 1 auto;min-width:0}.tx-stepper[data-styled]{--_duration: var(--tx-stepper-transition-duration);--_panel-duration: var(--tx-stepper-panel-transition-duration);--_number: var(--tx-stepper-step-number-size);--_separator: var(--tx-stepper-separator-size);font-family:var(--tx-font-family)}.tx-stepper[data-styled] .tx-step{gap:var(--tx-stepper-step-gap);padding:var(--tx-stepper-step-padding)}.tx-stepper[data-styled] .tx-step__header{gap:var(--tx-stepper-step-header-gap);padding:var(--tx-stepper-step-header-padding);border-radius:var(--tx-stepper-step-header-border-radius);outline:0 solid transparent;transition:color var(--_duration),outline-color var(--_duration),box-shadow var(--_duration)}.tx-stepper[data-styled] .tx-step__header:focus-visible{outline:var(--tx-stepper-step-header-focus-ring-width) var(--tx-stepper-step-header-focus-ring-style) var(--tx-stepper-step-header-focus-ring-color);outline-offset:var(--tx-stepper-step-header-focus-ring-offset);box-shadow:var(--tx-stepper-step-header-focus-ring-shadow)}.tx-stepper[data-styled] .tx-step__title{color:var(--tx-stepper-step-title-color);font-size:var(--tx-stepper-step-title-font-size);font-weight:var(--tx-stepper-step-title-font-weight);transition:color var(--_duration)}.tx-stepper[data-styled] .tx-step__number{z-index:1;min-width:var(--_number);height:var(--_number);border:var(--tx-stepper-step-number-border-width) solid var(--tx-stepper-step-number-border-color);border-radius:var(--tx-stepper-step-number-border-radius);background:var(--tx-stepper-step-number-background);color:var(--tx-stepper-step-number-color);font-size:var(--tx-stepper-step-number-font-size);font-weight:var(--tx-stepper-step-number-font-weight);line-height:var(--_number);transition:color var(--_duration),background-color var(--_duration),border-color var(--_duration)}.tx-stepper[data-styled] .tx-step__number:after{content:\"\";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--tx-stepper-step-number-shadow)}.tx-stepper[data-styled] .tx-step--active .tx-step__number{border-color:var(--tx-stepper-step-number-active-border-color);background:var(--tx-stepper-step-number-active-background);color:var(--tx-stepper-step-number-active-color)}.tx-stepper[data-styled] .tx-step--active .tx-step__title{color:var(--tx-stepper-step-title-active-color)}.tx-stepper[data-styled] .tx-step--disabled .tx-step__header{opacity:var(--tx-stepper-step-header-disabled-opacity)}.tx-stepper[data-styled] .tx-stepper__separator{width:100%;height:var(--_separator);background:var(--tx-stepper-separator-background);transition:background-color var(--_duration)}.tx-stepper[data-styled] .tx-step--completed .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item--completed .tx-stepper__separator{background:var(--tx-stepper-separator-active-background)}.tx-stepper[data-styled] .tx-step-panels{display:block;padding:var(--tx-stepper-steppanels-padding)}.tx-stepper[data-styled] .tx-step-panel{background:var(--tx-stepper-steppanel-background);color:var(--tx-stepper-steppanel-color)}.tx-stepper[data-styled] .tx-step-item .tx-step-panel{transition:grid-template-rows var(--_panel-duration) cubic-bezier(.2,0,0,1)}.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:visibility 0s linear var(--_panel-duration)}.tx-stepper[data-styled] .tx-step-panel__separator{flex:0 0 auto;width:var(--_separator);height:auto;margin:var(--tx-stepper-separator-margin);translate:calc(var(--_separator) / -2) 0}.tx-stepper[data-styled] .tx-step-item--last .tx-step-panel__separator{visibility:hidden}.tx-stepper[data-styled] .tx-step-panel__content{padding:var(--tx-stepper-steppanel-padding);margin-inline-start:var(--tx-stepper-steppanel-indent)}@media(prefers-reduced-motion:reduce){.tx-stepper[data-styled] .tx-step__header,.tx-stepper[data-styled] .tx-step__title,.tx-stepper[data-styled] .tx-step__number,.tx-stepper[data-styled] .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item .tx-step-panel,.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:none}}\n"],
|
|
772
815
|
viewProviders: [provideTxIconDefaults(STEPPER_ICON_DEFAULTS)],
|
|
773
816
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
774
817
|
encapsulation: i0.ViewEncapsulation.None
|
|
@@ -799,7 +842,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
799
842
|
"[class.tx-stepper--linear]": "linear()"
|
|
800
843
|
},
|
|
801
844
|
viewProviders: [provideTxIconDefaults(STEPPER_ICON_DEFAULTS)],
|
|
802
|
-
styles: [".tx-stepper{display:block;min-width:0}.tx-stepper--vertical{display:flex;flex-direction:column}.tx-step-list{position:relative;display:flex;justify-content:space-between;align-items:center;overflow-x:auto}.tx-step{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-step:last-of-type,.tx-step-item .tx-step{flex:initial}.tx-step__header{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.tx-step__header:disabled{cursor:default}.tx-step--active .tx-step__header{cursor:default}.tx-step__title{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-step__number{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-stepper__separator{display:block;flex:1 1 0}.tx-step-item{display:flex;flex-direction:column;flex:initial}.tx-step-item--active{flex:1 1 auto}.tx-step-panel{display:block}.tx-step-panel[hidden]{display:none}.tx-step-item .tx-step-panel{display:grid;grid-template-rows:0fr}.tx-step-item--active .tx-step-panel{grid-template-rows:1fr}.tx-step-panel__collapse{min-height:0;overflow:hidden}.tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{visibility:hidden}.tx-step-panel__wrapper{display:flex;min-height:0}.tx-step-panel__content{flex:1 1 auto;min-width:0}.tx-stepper[data-styled]{--_duration: var(--tx-stepper-transition-duration);--_panel-duration: var(--tx-stepper-panel-transition-duration);--_number: var(--tx-stepper-step-number-size);--_separator: var(--tx-stepper-separator-size);font-family:var(--tx-font-family)}.tx-stepper[data-styled] .tx-step{gap:var(--tx-stepper-step-gap);padding:var(--tx-stepper-step-padding)}.tx-stepper[data-styled] .tx-step__header{gap:var(--tx-stepper-step-header-gap);padding:var(--tx-stepper-step-header-padding);border-radius:var(--tx-stepper-step-header-border-radius);outline:0 solid transparent;transition:color var(--_duration),outline-color var(--_duration),box-shadow var(--_duration)}.tx-stepper[data-styled] .tx-step__header:focus-visible{outline:var(--tx-stepper-step-header-focus-ring-width) var(--tx-stepper-step-header-focus-ring-style) var(--tx-stepper-step-header-focus-ring-color);outline-offset:var(--tx-stepper-step-header-focus-ring-offset);box-shadow:var(--tx-stepper-step-header-focus-ring-shadow)}.tx-stepper[data-styled] .tx-step__title{color:var(--tx-stepper-step-title-color);font-size:var(--tx-stepper-step-title-font-size);font-weight:var(--tx-stepper-step-title-font-weight);transition:color var(--_duration)}.tx-stepper[data-styled] .tx-step__number{z-index:1;min-width:var(--_number);height:var(--_number);border:var(--tx-stepper-step-number-border-width) solid var(--tx-stepper-step-number-border-color);border-radius:var(--tx-stepper-step-number-border-radius);background:var(--tx-stepper-step-number-background);color:var(--tx-stepper-step-number-color);font-size:var(--tx-stepper-step-number-font-size);font-weight:var(--tx-stepper-step-number-font-weight);line-height:var(--_number);transition:color var(--_duration),background-color var(--_duration),border-color var(--_duration)}.tx-stepper[data-styled] .tx-step__number:after{content:\"\";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--tx-stepper-step-number-shadow)}.tx-stepper[data-styled] .tx-step--active .tx-step__number{border-color:var(--tx-stepper-step-number-active-border-color);background:var(--tx-stepper-step-number-active-background);color:var(--tx-stepper-step-number-active-color)}.tx-stepper[data-styled] .tx-step--active .tx-step__title{color:var(--tx-stepper-step-title-active-color)}.tx-stepper[data-styled] .tx-step--disabled .tx-step__header{opacity:var(--tx-stepper-step-header-disabled-opacity)}.tx-stepper[data-styled] .tx-stepper__separator{width:100%;height:var(--_separator);background:var(--tx-stepper-separator-background);transition:background-color var(--_duration)}.tx-stepper[data-styled] .tx-step--completed .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item--completed .tx-stepper__separator{background:var(--tx-stepper-separator-active-background)}.tx-stepper[data-styled] .tx-step-panels{display:block;padding:var(--tx-stepper-steppanels-padding)}.tx-stepper[data-styled] .tx-step-panel{background:var(--tx-stepper-steppanel-background);color:var(--tx-stepper-steppanel-color)}.tx-stepper[data-styled] .tx-step-item .tx-step-panel{transition:grid-template-rows var(--_panel-duration) cubic-bezier(.2,0,0,1)}.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:visibility 0s linear var(--_panel-duration)}.tx-stepper[data-styled] .tx-step-panel__separator{flex:0 0 auto;width:var(--_separator);height:auto;margin:var(--tx-stepper-separator-margin);translate:calc(var(--_separator) / -2) 0}.tx-stepper[data-styled] .tx-step-item--last .tx-step-panel__separator{visibility:hidden}.tx-stepper[data-styled] .tx-step-panel__content{padding:var(--tx-stepper-steppanel-padding);margin-inline-start:var(--tx-stepper-steppanel-indent)}@media(prefers-reduced-motion:reduce){.tx-stepper[data-styled] .tx-step__header,.tx-stepper[data-styled] .tx-step__title,.tx-stepper[data-styled] .tx-step__number,.tx-stepper[data-styled] .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item .tx-step-panel,.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:none}}\n"]
|
|
845
|
+
styles: [".tx-stepper{display:block;min-width:0}.tx-stepper--vertical{display:flex;flex-direction:column}.tx-stepper__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tx-step-list{position:relative;display:flex;justify-content:space-between;align-items:center;overflow-x:auto}.tx-step{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-step:last-of-type,.tx-step-item .tx-step{flex:initial}.tx-step__header{display:inline-flex;align-items:center;min-width:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.tx-step__header:disabled{cursor:default}.tx-step--active .tx-step__header{cursor:default}.tx-step__title{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-step__number{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-stepper__separator{display:block;flex:1 1 0}.tx-step-item{display:flex;flex-direction:column;flex:initial}.tx-step-item--active{flex:1 1 auto}.tx-step-panel{display:block}.tx-step-panel[hidden]{display:none}.tx-step-item .tx-step-panel{display:grid;grid-template-rows:0fr}.tx-step-item--active .tx-step-panel{grid-template-rows:1fr}.tx-step-panel__collapse{min-height:0;overflow:hidden}.tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{visibility:hidden}.tx-step-panel__wrapper{display:flex;min-height:0}.tx-step-panel__content{flex:1 1 auto;min-width:0}.tx-stepper[data-styled]{--_duration: var(--tx-stepper-transition-duration);--_panel-duration: var(--tx-stepper-panel-transition-duration);--_number: var(--tx-stepper-step-number-size);--_separator: var(--tx-stepper-separator-size);font-family:var(--tx-font-family)}.tx-stepper[data-styled] .tx-step{gap:var(--tx-stepper-step-gap);padding:var(--tx-stepper-step-padding)}.tx-stepper[data-styled] .tx-step__header{gap:var(--tx-stepper-step-header-gap);padding:var(--tx-stepper-step-header-padding);border-radius:var(--tx-stepper-step-header-border-radius);outline:0 solid transparent;transition:color var(--_duration),outline-color var(--_duration),box-shadow var(--_duration)}.tx-stepper[data-styled] .tx-step__header:focus-visible{outline:var(--tx-stepper-step-header-focus-ring-width) var(--tx-stepper-step-header-focus-ring-style) var(--tx-stepper-step-header-focus-ring-color);outline-offset:var(--tx-stepper-step-header-focus-ring-offset);box-shadow:var(--tx-stepper-step-header-focus-ring-shadow)}.tx-stepper[data-styled] .tx-step__title{color:var(--tx-stepper-step-title-color);font-size:var(--tx-stepper-step-title-font-size);font-weight:var(--tx-stepper-step-title-font-weight);transition:color var(--_duration)}.tx-stepper[data-styled] .tx-step__number{z-index:1;min-width:var(--_number);height:var(--_number);border:var(--tx-stepper-step-number-border-width) solid var(--tx-stepper-step-number-border-color);border-radius:var(--tx-stepper-step-number-border-radius);background:var(--tx-stepper-step-number-background);color:var(--tx-stepper-step-number-color);font-size:var(--tx-stepper-step-number-font-size);font-weight:var(--tx-stepper-step-number-font-weight);line-height:var(--_number);transition:color var(--_duration),background-color var(--_duration),border-color var(--_duration)}.tx-stepper[data-styled] .tx-step__number:after{content:\"\";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--tx-stepper-step-number-shadow)}.tx-stepper[data-styled] .tx-step--active .tx-step__number{border-color:var(--tx-stepper-step-number-active-border-color);background:var(--tx-stepper-step-number-active-background);color:var(--tx-stepper-step-number-active-color)}.tx-stepper[data-styled] .tx-step--active .tx-step__title{color:var(--tx-stepper-step-title-active-color)}.tx-stepper[data-styled] .tx-step--disabled .tx-step__header{opacity:var(--tx-stepper-step-header-disabled-opacity)}.tx-stepper[data-styled] .tx-stepper__separator{width:100%;height:var(--_separator);background:var(--tx-stepper-separator-background);transition:background-color var(--_duration)}.tx-stepper[data-styled] .tx-step--completed .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item--completed .tx-stepper__separator{background:var(--tx-stepper-separator-active-background)}.tx-stepper[data-styled] .tx-step-panels{display:block;padding:var(--tx-stepper-steppanels-padding)}.tx-stepper[data-styled] .tx-step-panel{background:var(--tx-stepper-steppanel-background);color:var(--tx-stepper-steppanel-color)}.tx-stepper[data-styled] .tx-step-item .tx-step-panel{transition:grid-template-rows var(--_panel-duration) cubic-bezier(.2,0,0,1)}.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:visibility 0s linear var(--_panel-duration)}.tx-stepper[data-styled] .tx-step-panel__separator{flex:0 0 auto;width:var(--_separator);height:auto;margin:var(--tx-stepper-separator-margin);translate:calc(var(--_separator) / -2) 0}.tx-stepper[data-styled] .tx-step-item--last .tx-step-panel__separator{visibility:hidden}.tx-stepper[data-styled] .tx-step-panel__content{padding:var(--tx-stepper-steppanel-padding);margin-inline-start:var(--tx-stepper-steppanel-indent)}@media(prefers-reduced-motion:reduce){.tx-stepper[data-styled] .tx-step__header,.tx-stepper[data-styled] .tx-step__title,.tx-stepper[data-styled] .tx-step__number,.tx-stepper[data-styled] .tx-stepper__separator,.tx-stepper[data-styled] .tx-step-item .tx-step-panel,.tx-stepper[data-styled] .tx-step-item:not(.tx-step-item--active) .tx-step-panel__collapse{transition:none}}\n"]
|
|
803
846
|
}]
|
|
804
847
|
}],
|
|
805
848
|
propDecorators: {
|