@tectra-ng/ui 0.2.1 → 0.2.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/fesm2022/tectra-ng-ui-accordion.mjs +21 -21
- package/fesm2022/tectra-ng-ui-amount.mjs +3 -3
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +6 -6
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +3 -3
- package/fesm2022/tectra-ng-ui-avatar.mjs +629 -8
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-badge.mjs +3 -3
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +9 -9
- package/fesm2022/tectra-ng-ui-button-group.mjs +3 -3
- package/fesm2022/tectra-ng-ui-button.mjs +9 -9
- package/fesm2022/tectra-ng-ui-card.mjs +3 -3
- package/fesm2022/tectra-ng-ui-carousel.mjs +15 -15
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +3 -3
- package/fesm2022/tectra-ng-ui-checkbox.mjs +9 -9
- package/fesm2022/tectra-ng-ui-chip.mjs +3 -3
- package/fesm2022/tectra-ng-ui-chips-input.mjs +6 -6
- package/fesm2022/tectra-ng-ui-color-picker.mjs +3 -3
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs +9 -9
- package/fesm2022/tectra-ng-ui-countdown.mjs +9 -9
- package/fesm2022/tectra-ng-ui-country-select.mjs +3 -3
- package/fesm2022/tectra-ng-ui-country.mjs +3 -3
- package/fesm2022/tectra-ng-ui-data-view.mjs +30 -30
- package/fesm2022/tectra-ng-ui-datepicker.mjs +24 -24
- package/fesm2022/tectra-ng-ui-dialog.mjs +24 -24
- package/fesm2022/tectra-ng-ui-divider.mjs +3 -3
- package/fesm2022/tectra-ng-ui-drawer.mjs +9 -9
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +3 -3
- package/fesm2022/tectra-ng-ui-export.mjs +28 -28
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +3 -3
- package/fesm2022/tectra-ng-ui-fieldset.mjs +3 -3
- package/fesm2022/tectra-ng-ui-file-upload.mjs +12 -12
- package/fesm2022/tectra-ng-ui-galleria.mjs +21 -21
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +3 -3
- package/fesm2022/tectra-ng-ui-icon-field.mjs +18 -18
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs +9 -9
- package/fesm2022/tectra-ng-ui-input-group.mjs +6 -6
- package/fesm2022/tectra-ng-ui-input-mask.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input-number.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input-otp.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input.mjs +6 -6
- package/fesm2022/tectra-ng-ui-key-filter.mjs +3 -3
- package/fesm2022/tectra-ng-ui-knob.mjs +6 -6
- package/fesm2022/tectra-ng-ui-label.mjs +9 -9
- package/fesm2022/tectra-ng-ui-link.mjs +10 -10
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs +3 -3
- package/fesm2022/tectra-ng-ui-listbox.mjs +3 -3
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +3 -3
- package/fesm2022/tectra-ng-ui-menu.mjs +15 -15
- package/fesm2022/tectra-ng-ui-menubar.mjs +6 -6
- package/fesm2022/tectra-ng-ui-message.mjs +15 -15
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +6 -6
- package/fesm2022/tectra-ng-ui-multiselect.mjs +3 -3
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +3 -3
- package/fesm2022/tectra-ng-ui-paginator.mjs +9 -9
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +6 -6
- package/fesm2022/tectra-ng-ui-panel.mjs +3 -3
- package/fesm2022/tectra-ng-ui-password-generator.mjs +6 -6
- package/fesm2022/tectra-ng-ui-password.mjs +12 -12
- package/fesm2022/tectra-ng-ui-pill.mjs +3 -3
- package/fesm2022/tectra-ng-ui-popover.mjs +15 -15
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +6 -6
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +3 -3
- package/fesm2022/tectra-ng-ui-radio-button.mjs +6 -6
- package/fesm2022/tectra-ng-ui-rating.mjs +9 -9
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +3 -3
- package/fesm2022/tectra-ng-ui-select.mjs +33 -33
- package/fesm2022/tectra-ng-ui-skeleton.mjs +6 -6
- package/fesm2022/tectra-ng-ui-slider.mjs +3 -3
- package/fesm2022/tectra-ng-ui-sparkline.mjs +3 -3
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +3 -3
- package/fesm2022/tectra-ng-ui-split-button.mjs +3 -3
- package/fesm2022/tectra-ng-ui-splitter.mjs +6 -6
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +6 -6
- package/fesm2022/tectra-ng-ui-status-icon.mjs +3 -3
- package/fesm2022/tectra-ng-ui-stepper.mjs +30 -30
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +51 -51
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +18 -18
- package/fesm2022/tectra-ng-ui-tag.mjs +398 -9
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs +9 -9
- package/fesm2022/tectra-ng-ui-timeline.mjs +15 -15
- package/fesm2022/tectra-ng-ui-toast.mjs +9 -9
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +3 -3
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +6 -6
- package/fesm2022/tectra-ng-ui-toolbar.mjs +12 -12
- package/fesm2022/tectra-ng-ui-tooltip.mjs +9 -9
- package/fesm2022/tectra-ng-ui-tree-select.mjs +3 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +3 -3
- package/fesm2022/tectra-ng-ui-tree.mjs +30 -30
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +7 -7
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +15 -15
- package/package.json +4 -4
- package/types/tectra-ng-ui-accordion.d.ts +1 -3
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +260 -0
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +0 -1
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +0 -5
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +1 -2
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +168 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
|
@@ -49,7 +49,7 @@ var TxTab = class TxTab {
|
|
|
49
49
|
}
|
|
50
50
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
51
51
|
minVersion: "12.0.0",
|
|
52
|
-
version: "22.2.
|
|
52
|
+
version: "22.2.5",
|
|
53
53
|
ngImport: i0,
|
|
54
54
|
type: TxTab,
|
|
55
55
|
deps: [],
|
|
@@ -57,7 +57,7 @@ var TxTab = class TxTab {
|
|
|
57
57
|
});
|
|
58
58
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
59
59
|
minVersion: "17.0.0",
|
|
60
|
-
version: "22.2.
|
|
60
|
+
version: "22.2.5",
|
|
61
61
|
type: TxTab,
|
|
62
62
|
isStandalone: true,
|
|
63
63
|
selector: "tx-tab, a[txTab], button[txTab]",
|
|
@@ -150,7 +150,7 @@ var TxTab = class TxTab {
|
|
|
150
150
|
};
|
|
151
151
|
i0.ɵɵngDeclareClassMetadata({
|
|
152
152
|
minVersion: "12.0.0",
|
|
153
|
-
version: "22.2.
|
|
153
|
+
version: "22.2.5",
|
|
154
154
|
ngImport: i0,
|
|
155
155
|
type: TxTab,
|
|
156
156
|
decorators: [{
|
|
@@ -378,7 +378,7 @@ var TxTabList = class TxTabList {
|
|
|
378
378
|
}
|
|
379
379
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
380
380
|
minVersion: "12.0.0",
|
|
381
|
-
version: "22.2.
|
|
381
|
+
version: "22.2.5",
|
|
382
382
|
ngImport: i0,
|
|
383
383
|
type: TxTabList,
|
|
384
384
|
deps: [],
|
|
@@ -386,7 +386,7 @@ var TxTabList = class TxTabList {
|
|
|
386
386
|
});
|
|
387
387
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
388
388
|
minVersion: "17.0.0",
|
|
389
|
-
version: "22.2.
|
|
389
|
+
version: "22.2.5",
|
|
390
390
|
type: TxTabList,
|
|
391
391
|
isStandalone: true,
|
|
392
392
|
selector: "tx-tab-list",
|
|
@@ -446,7 +446,7 @@ var TxTabList = class TxTabList {
|
|
|
446
446
|
};
|
|
447
447
|
i0.ɵɵngDeclareClassMetadata({
|
|
448
448
|
minVersion: "12.0.0",
|
|
449
|
-
version: "22.2.
|
|
449
|
+
version: "22.2.5",
|
|
450
450
|
ngImport: i0,
|
|
451
451
|
type: TxTabList,
|
|
452
452
|
decorators: [{
|
|
@@ -582,7 +582,7 @@ var TxTabs = class TxTabs {
|
|
|
582
582
|
}
|
|
583
583
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
584
584
|
minVersion: "12.0.0",
|
|
585
|
-
version: "22.2.
|
|
585
|
+
version: "22.2.5",
|
|
586
586
|
ngImport: i0,
|
|
587
587
|
type: TxTabs,
|
|
588
588
|
deps: [],
|
|
@@ -590,7 +590,7 @@ var TxTabs = class TxTabs {
|
|
|
590
590
|
});
|
|
591
591
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
592
592
|
minVersion: "17.0.0",
|
|
593
|
-
version: "22.2.
|
|
593
|
+
version: "22.2.5",
|
|
594
594
|
type: TxTabs,
|
|
595
595
|
isStandalone: true,
|
|
596
596
|
selector: "tx-tabs",
|
|
@@ -802,7 +802,7 @@ var TxTabs = class TxTabs {
|
|
|
802
802
|
};
|
|
803
803
|
i0.ɵɵngDeclareClassMetadata({
|
|
804
804
|
minVersion: "12.0.0",
|
|
805
|
-
version: "22.2.
|
|
805
|
+
version: "22.2.5",
|
|
806
806
|
ngImport: i0,
|
|
807
807
|
type: TxTabs,
|
|
808
808
|
decorators: [{
|
|
@@ -993,7 +993,7 @@ var TxTabPanels = class TxTabPanels {
|
|
|
993
993
|
tabs = inject(TX_TABS);
|
|
994
994
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
995
995
|
minVersion: "12.0.0",
|
|
996
|
-
version: "22.2.
|
|
996
|
+
version: "22.2.5",
|
|
997
997
|
ngImport: i0,
|
|
998
998
|
type: TxTabPanels,
|
|
999
999
|
deps: [],
|
|
@@ -1001,7 +1001,7 @@ var TxTabPanels = class TxTabPanels {
|
|
|
1001
1001
|
});
|
|
1002
1002
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1003
1003
|
minVersion: "14.0.0",
|
|
1004
|
-
version: "22.2.
|
|
1004
|
+
version: "22.2.5",
|
|
1005
1005
|
type: TxTabPanels,
|
|
1006
1006
|
isStandalone: true,
|
|
1007
1007
|
selector: "tx-tab-panels",
|
|
@@ -1023,7 +1023,7 @@ var TxTabPanels = class TxTabPanels {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
i0.ɵɵngDeclareClassMetadata({
|
|
1025
1025
|
minVersion: "12.0.0",
|
|
1026
|
-
version: "22.2.
|
|
1026
|
+
version: "22.2.5",
|
|
1027
1027
|
ngImport: i0,
|
|
1028
1028
|
type: TxTabPanels,
|
|
1029
1029
|
decorators: [{
|
|
@@ -1050,7 +1050,7 @@ var TxTabPanelContent = class TxTabPanelContent {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1052
1052
|
minVersion: "12.0.0",
|
|
1053
|
-
version: "22.2.
|
|
1053
|
+
version: "22.2.5",
|
|
1054
1054
|
ngImport: i0,
|
|
1055
1055
|
type: TxTabPanelContent,
|
|
1056
1056
|
deps: [],
|
|
@@ -1058,7 +1058,7 @@ var TxTabPanelContent = class TxTabPanelContent {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1060
1060
|
minVersion: "14.0.0",
|
|
1061
|
-
version: "22.2.
|
|
1061
|
+
version: "22.2.5",
|
|
1062
1062
|
type: TxTabPanelContent,
|
|
1063
1063
|
isStandalone: true,
|
|
1064
1064
|
selector: "ng-template[txTabPanelContent]",
|
|
@@ -1067,7 +1067,7 @@ var TxTabPanelContent = class TxTabPanelContent {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
i0.ɵɵngDeclareClassMetadata({
|
|
1069
1069
|
minVersion: "12.0.0",
|
|
1070
|
-
version: "22.2.
|
|
1070
|
+
version: "22.2.5",
|
|
1071
1071
|
ngImport: i0,
|
|
1072
1072
|
type: TxTabPanelContent,
|
|
1073
1073
|
decorators: [{
|
|
@@ -1093,7 +1093,7 @@ var TxTabPanel = class TxTabPanel {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1095
1095
|
minVersion: "12.0.0",
|
|
1096
|
-
version: "22.2.
|
|
1096
|
+
version: "22.2.5",
|
|
1097
1097
|
ngImport: i0,
|
|
1098
1098
|
type: TxTabPanel,
|
|
1099
1099
|
deps: [],
|
|
@@ -1101,7 +1101,7 @@ var TxTabPanel = class TxTabPanel {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1103
1103
|
minVersion: "17.0.0",
|
|
1104
|
-
version: "22.2.
|
|
1104
|
+
version: "22.2.5",
|
|
1105
1105
|
type: TxTabPanel,
|
|
1106
1106
|
isStandalone: true,
|
|
1107
1107
|
selector: "tx-tab-panel",
|
|
@@ -1163,7 +1163,7 @@ var TxTabPanel = class TxTabPanel {
|
|
|
1163
1163
|
};
|
|
1164
1164
|
i0.ɵɵngDeclareClassMetadata({
|
|
1165
1165
|
minVersion: "12.0.0",
|
|
1166
|
-
version: "22.2.
|
|
1166
|
+
version: "22.2.5",
|
|
1167
1167
|
ngImport: i0,
|
|
1168
1168
|
type: TxTabPanel,
|
|
1169
1169
|
decorators: [{
|
|
@@ -2,9 +2,12 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from "@angular/core";
|
|
3
3
|
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
5
|
-
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
+
import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
|
|
6
6
|
import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
|
|
7
7
|
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
9
|
+
import { TxPopover, TxPopoverContent, TxPopoverTrigger } from "@tectra-ng/ui/popover";
|
|
10
|
+
import { TxTooltip } from "@tectra-ng/ui/tooltip";
|
|
8
11
|
const COPIED_FOR = 1500;
|
|
9
12
|
var TxTag = class TxTag {
|
|
10
13
|
txIconRegistry = inject(TxIconRegistry);
|
|
@@ -68,7 +71,7 @@ var TxTag = class TxTag {
|
|
|
68
71
|
}
|
|
69
72
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
70
73
|
minVersion: "12.0.0",
|
|
71
|
-
version: "22.2.
|
|
74
|
+
version: "22.2.5",
|
|
72
75
|
ngImport: i0,
|
|
73
76
|
type: TxTag,
|
|
74
77
|
deps: [],
|
|
@@ -76,7 +79,7 @@ var TxTag = class TxTag {
|
|
|
76
79
|
});
|
|
77
80
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
78
81
|
minVersion: "17.0.0",
|
|
79
|
-
version: "22.2.
|
|
82
|
+
version: "22.2.5",
|
|
80
83
|
type: TxTag,
|
|
81
84
|
isStandalone: true,
|
|
82
85
|
selector: "tx-tag",
|
|
@@ -211,7 +214,7 @@ var TxTag = class TxTag {
|
|
|
211
214
|
[title]="isCopied() ? translations().copied : translations().copy"
|
|
212
215
|
(click)="copy()"
|
|
213
216
|
>
|
|
214
|
-
<tx-
|
|
217
|
+
<span class="tx-copy-swap" [class.tx-copy-swap--done]="isCopied()"><tx-icon class="tx-copy-swap__icon tx-copy-swap__icon--idle" name="copy" /><tx-icon class="tx-copy-swap__icon tx-copy-swap__icon--done" name="check" /></span>
|
|
215
218
|
</button>
|
|
216
219
|
}
|
|
217
220
|
@if (removable()) {
|
|
@@ -231,7 +234,7 @@ var TxTag = class TxTag {
|
|
|
231
234
|
}
|
|
232
235
|
`,
|
|
233
236
|
isInline: true,
|
|
234
|
-
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"],
|
|
237
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}.tx-copy-swap{display:inline-grid;place-items:center}.tx-copy-swap__icon{grid-area:1/1;transition:opacity var(--tx-motion-duration) ease,transform var(--tx-motion-duration) cubic-bezier(.34,1.56,.64,1)}.tx-copy-swap__icon--done{opacity:0;transform:scale(.4) rotate(-45deg)}.tx-copy-swap--done .tx-copy-swap__icon--idle{opacity:0;transform:scale(.4) rotate(45deg)}.tx-copy-swap--done .tx-copy-swap__icon--done{opacity:1;transform:none}@media(prefers-reduced-motion:reduce){.tx-copy-swap__icon{transition:none}}\n"],
|
|
235
238
|
dependencies: [{
|
|
236
239
|
kind: "component",
|
|
237
240
|
type: TxIcon,
|
|
@@ -243,7 +246,7 @@ var TxTag = class TxTag {
|
|
|
243
246
|
};
|
|
244
247
|
i0.ɵɵngDeclareClassMetadata({
|
|
245
248
|
minVersion: "12.0.0",
|
|
246
|
-
version: "22.2.
|
|
249
|
+
version: "22.2.5",
|
|
247
250
|
ngImport: i0,
|
|
248
251
|
type: TxTag,
|
|
249
252
|
decorators: [{
|
|
@@ -273,7 +276,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
273
276
|
[title]="isCopied() ? translations().copied : translations().copy"
|
|
274
277
|
(click)="copy()"
|
|
275
278
|
>
|
|
276
|
-
<tx-
|
|
279
|
+
<span class="tx-copy-swap" [class.tx-copy-swap--done]="isCopied()"><tx-icon class="tx-copy-swap__icon tx-copy-swap__icon--idle" name="copy" /><tx-icon class="tx-copy-swap__icon tx-copy-swap__icon--done" name="check" /></span>
|
|
277
280
|
</button>
|
|
278
281
|
}
|
|
279
282
|
@if (removable()) {
|
|
@@ -302,7 +305,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
302
305
|
"[attr.data-size]": "resolvedSize()",
|
|
303
306
|
"[class.tx-tag--rounded]": "rounded()"
|
|
304
307
|
},
|
|
305
|
-
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"]
|
|
308
|
+
styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}.tx-copy-swap{display:inline-grid;place-items:center}.tx-copy-swap__icon{grid-area:1/1;transition:opacity var(--tx-motion-duration) ease,transform var(--tx-motion-duration) cubic-bezier(.34,1.56,.64,1)}.tx-copy-swap__icon--done{opacity:0;transform:scale(.4) rotate(-45deg)}.tx-copy-swap--done .tx-copy-swap__icon--idle{opacity:0;transform:scale(.4) rotate(45deg)}.tx-copy-swap--done .tx-copy-swap__icon--done{opacity:1;transform:none}@media(prefers-reduced-motion:reduce){.tx-copy-swap__icon{transition:none}}\n"]
|
|
306
309
|
}]
|
|
307
310
|
}],
|
|
308
311
|
ctorParameters: () => [],
|
|
@@ -417,6 +420,392 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
417
420
|
}]
|
|
418
421
|
}
|
|
419
422
|
});
|
|
420
|
-
|
|
423
|
+
var TxTagList = class TxTagList {
|
|
424
|
+
tags = input([], ...ngDevMode ? [{ debugName: "tags" }] : /* istanbul ignore next */ []);
|
|
425
|
+
limit = input(void 0, {
|
|
426
|
+
...ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {},
|
|
427
|
+
transform: optionalNumber
|
|
428
|
+
});
|
|
429
|
+
severity = input("secondary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
430
|
+
size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
431
|
+
rounded = input(false, {
|
|
432
|
+
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
433
|
+
transform: booleanAttribute
|
|
434
|
+
});
|
|
435
|
+
emptyText = input("-", ...ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []);
|
|
436
|
+
moreLabel = input(void 0, ...ngDevMode ? [{ debugName: "moreLabel" }] : /* istanbul ignore next */ []);
|
|
437
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
438
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
439
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
440
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
441
|
+
unstyled = input(void 0, {
|
|
442
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
443
|
+
transform: optionalBoolean
|
|
444
|
+
});
|
|
445
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
446
|
+
passThrough = injectPassThrough("tagList", this, this.pt, this.ptOptions);
|
|
447
|
+
t = injectTranslations();
|
|
448
|
+
all = computed(() => this.tags() ?? [], ...ngDevMode ? [{ debugName: "all" }] : /* istanbul ignore next */ []);
|
|
449
|
+
visible = computed(() => {
|
|
450
|
+
const limit = this.limit();
|
|
451
|
+
return limit && limit > 0 ? this.all().slice(0, limit) : this.all();
|
|
452
|
+
}, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
453
|
+
hidden = computed(() => {
|
|
454
|
+
const limit = this.limit();
|
|
455
|
+
return limit && limit > 0 ? this.all().slice(limit) : [];
|
|
456
|
+
}, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
|
|
457
|
+
moreText = computed(() => this.moreLabel() ?? this.t().moreItems.replace("{count}", String(this.hidden().length)), ...ngDevMode ? [{ debugName: "moreText" }] : /* istanbul ignore next */ []);
|
|
458
|
+
hostStyle = computed(() => ({
|
|
459
|
+
...toStyleObject(this.dt(), "--tx-tag"),
|
|
460
|
+
...this.passThrough().root?.style
|
|
461
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
462
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
463
|
+
minVersion: "12.0.0",
|
|
464
|
+
version: "22.2.5",
|
|
465
|
+
ngImport: i0,
|
|
466
|
+
type: TxTagList,
|
|
467
|
+
deps: [],
|
|
468
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
469
|
+
});
|
|
470
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
471
|
+
minVersion: "17.0.0",
|
|
472
|
+
version: "22.2.5",
|
|
473
|
+
type: TxTagList,
|
|
474
|
+
isStandalone: true,
|
|
475
|
+
selector: "tx-tag-list",
|
|
476
|
+
inputs: {
|
|
477
|
+
tags: {
|
|
478
|
+
classPropertyName: "tags",
|
|
479
|
+
publicName: "tags",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
limit: {
|
|
485
|
+
classPropertyName: "limit",
|
|
486
|
+
publicName: "limit",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
severity: {
|
|
492
|
+
classPropertyName: "severity",
|
|
493
|
+
publicName: "severity",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
size: {
|
|
499
|
+
classPropertyName: "size",
|
|
500
|
+
publicName: "size",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
rounded: {
|
|
506
|
+
classPropertyName: "rounded",
|
|
507
|
+
publicName: "rounded",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
},
|
|
512
|
+
emptyText: {
|
|
513
|
+
classPropertyName: "emptyText",
|
|
514
|
+
publicName: "emptyText",
|
|
515
|
+
isSignal: true,
|
|
516
|
+
isRequired: false,
|
|
517
|
+
transformFunction: null
|
|
518
|
+
},
|
|
519
|
+
moreLabel: {
|
|
520
|
+
classPropertyName: "moreLabel",
|
|
521
|
+
publicName: "moreLabel",
|
|
522
|
+
isSignal: true,
|
|
523
|
+
isRequired: false,
|
|
524
|
+
transformFunction: null
|
|
525
|
+
},
|
|
526
|
+
ariaLabel: {
|
|
527
|
+
classPropertyName: "ariaLabel",
|
|
528
|
+
publicName: "ariaLabel",
|
|
529
|
+
isSignal: true,
|
|
530
|
+
isRequired: false,
|
|
531
|
+
transformFunction: null
|
|
532
|
+
},
|
|
533
|
+
dt: {
|
|
534
|
+
classPropertyName: "dt",
|
|
535
|
+
publicName: "dt",
|
|
536
|
+
isSignal: true,
|
|
537
|
+
isRequired: false,
|
|
538
|
+
transformFunction: null
|
|
539
|
+
},
|
|
540
|
+
pt: {
|
|
541
|
+
classPropertyName: "pt",
|
|
542
|
+
publicName: "pt",
|
|
543
|
+
isSignal: true,
|
|
544
|
+
isRequired: false,
|
|
545
|
+
transformFunction: null
|
|
546
|
+
},
|
|
547
|
+
ptOptions: {
|
|
548
|
+
classPropertyName: "ptOptions",
|
|
549
|
+
publicName: "ptOptions",
|
|
550
|
+
isSignal: true,
|
|
551
|
+
isRequired: false,
|
|
552
|
+
transformFunction: null
|
|
553
|
+
},
|
|
554
|
+
unstyled: {
|
|
555
|
+
classPropertyName: "unstyled",
|
|
556
|
+
publicName: "unstyled",
|
|
557
|
+
isSignal: true,
|
|
558
|
+
isRequired: false,
|
|
559
|
+
transformFunction: null
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
host: {
|
|
563
|
+
attributes: { "role": "list" },
|
|
564
|
+
properties: {
|
|
565
|
+
"class": "passThrough().root?.class",
|
|
566
|
+
"style": "hostStyle()",
|
|
567
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
568
|
+
"attr.aria-label": "ariaLabel() ?? null",
|
|
569
|
+
"class.tx-tag-list--empty": "!all().length"
|
|
570
|
+
},
|
|
571
|
+
classAttribute: "tx-tag-list"
|
|
572
|
+
},
|
|
573
|
+
ngImport: i0,
|
|
574
|
+
template: "<ng-template #tagTemplate let-tag>\n <tx-tag\n [value]=\"tag.value\"\n [severity]=\"tag.severity ?? severity()\"\n [icon]=\"tag.icon\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [unstyled]=\"isUnstyled()\"\n [txTooltip]=\"tag.tooltip ?? ''\"\n [class]=\"passThrough().tag?.class\"\n [style]=\"passThrough().tag?.style\"\n />\n</ng-template>\n\n@for (tag of visible(); track $index) {\n <span class=\"tx-tag-list__item\" role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n} @empty {\n <span class=\"tx-tag-list__empty\" role=\"listitem\">{{ emptyText() }}</span>\n}\n@if (hidden().length) {\n <span class=\"tx-tag-list__item\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tx-tag-list__more\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [attr.aria-label]=\"moreText()\"\n [txPopoverTrigger]=\"rest\"\n >\n <tx-tag [value]=\"'+' + hidden().length\" [severity]=\"severity()\" [size]=\"size()\" [rounded]=\"rounded()\" [unstyled]=\"isUnstyled()\" />\n </button>\n </span>\n <tx-popover #rest [ariaLabel]=\"t().tagListHidden\" autoFocus=\"none\" [unstyled]=\"isUnstyled()\">\n <ng-template txPopoverContent>\n <div\n class=\"tx-tag-list__popover\"\n role=\"list\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().popover?.class\"\n [style]=\"passThrough().popover?.style\"\n >\n @for (tag of hidden(); track $index) {\n <span role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n }\n </div>\n </ng-template>\n </tx-popover>\n}\n",
|
|
575
|
+
styles: [":host{display:inline-flex;align-items:center;min-width:0}.tx-tag-list__item{display:inline-flex;flex:none}.tx-tag-list__more{display:inline-flex;padding:0;border:none;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-tag-list-gap)}:host([data-styled]) .tx-tag-list__item{white-space:nowrap}:host([data-styled]) .tx-tag-list__more{border-radius:var(--tx-tag-border-radius)}:host([data-styled]) .tx-tag-list__more:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-tag-list__empty{color:var(--tx-tag-list-empty-color)}.tx-tag-list__popover[data-styled]{display:flex;flex-wrap:wrap;gap:var(--tx-tag-list-popover-gap);max-width:var(--tx-tag-list-popover-max-width);max-height:var(--tx-tag-list-popover-max-height);padding:var(--tx-tag-list-popover-padding);overflow-y:auto}\n"],
|
|
576
|
+
dependencies: [
|
|
577
|
+
{
|
|
578
|
+
kind: "directive",
|
|
579
|
+
type: NgTemplateOutlet,
|
|
580
|
+
selector: "[ngTemplateOutlet]",
|
|
581
|
+
inputs: [
|
|
582
|
+
"ngTemplateOutletContext",
|
|
583
|
+
"ngTemplateOutlet",
|
|
584
|
+
"ngTemplateOutletInjector"
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
kind: "component",
|
|
589
|
+
type: TxTag,
|
|
590
|
+
selector: "tx-tag",
|
|
591
|
+
inputs: [
|
|
592
|
+
"value",
|
|
593
|
+
"severity",
|
|
594
|
+
"size",
|
|
595
|
+
"rounded",
|
|
596
|
+
"icon",
|
|
597
|
+
"copyable",
|
|
598
|
+
"removable",
|
|
599
|
+
"removeLabel",
|
|
600
|
+
"dt",
|
|
601
|
+
"pt",
|
|
602
|
+
"ptOptions",
|
|
603
|
+
"unstyled"
|
|
604
|
+
],
|
|
605
|
+
outputs: ["copied", "removed"]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
kind: "directive",
|
|
609
|
+
type: TxTooltip,
|
|
610
|
+
selector: "[txTooltip]",
|
|
611
|
+
inputs: [
|
|
612
|
+
"txTooltip",
|
|
613
|
+
"tooltipPlacement",
|
|
614
|
+
"tooltipEvent",
|
|
615
|
+
"tooltipShowDelay",
|
|
616
|
+
"tooltipHideDelay",
|
|
617
|
+
"tooltipLife",
|
|
618
|
+
"tooltipOffset",
|
|
619
|
+
"tooltipArrow",
|
|
620
|
+
"tooltipInteractive",
|
|
621
|
+
"tooltipDisabled",
|
|
622
|
+
"tooltipOverflowOnly",
|
|
623
|
+
"tooltipMultiline",
|
|
624
|
+
"tooltipContext",
|
|
625
|
+
"tooltipClass",
|
|
626
|
+
"tooltipDt",
|
|
627
|
+
"tooltipPt",
|
|
628
|
+
"tooltipPtOptions",
|
|
629
|
+
"tooltipUnstyled"
|
|
630
|
+
],
|
|
631
|
+
outputs: ["tooltipShown", "tooltipHidden"],
|
|
632
|
+
exportAs: ["txTooltip"]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
kind: "component",
|
|
636
|
+
type: TxPopover,
|
|
637
|
+
selector: "tx-popover",
|
|
638
|
+
inputs: [
|
|
639
|
+
"placement",
|
|
640
|
+
"offset",
|
|
641
|
+
"arrow",
|
|
642
|
+
"header",
|
|
643
|
+
"closeButton",
|
|
644
|
+
"dismissable",
|
|
645
|
+
"closeOnEscape",
|
|
646
|
+
"autoFocus",
|
|
647
|
+
"restoreFocus",
|
|
648
|
+
"scroll",
|
|
649
|
+
"ariaLabel",
|
|
650
|
+
"ariaLabelledBy",
|
|
651
|
+
"panelClass",
|
|
652
|
+
"open",
|
|
653
|
+
"dt",
|
|
654
|
+
"pt",
|
|
655
|
+
"ptOptions",
|
|
656
|
+
"unstyled"
|
|
657
|
+
],
|
|
658
|
+
outputs: [
|
|
659
|
+
"openChange",
|
|
660
|
+
"opened",
|
|
661
|
+
"closed"
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
kind: "directive",
|
|
666
|
+
type: TxPopoverContent,
|
|
667
|
+
selector: "ng-template[txPopoverContent]"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
kind: "directive",
|
|
671
|
+
type: TxPopoverTrigger,
|
|
672
|
+
selector: "[txPopoverTrigger]",
|
|
673
|
+
inputs: ["txPopoverTrigger"]
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
680
|
+
minVersion: "12.0.0",
|
|
681
|
+
version: "22.2.5",
|
|
682
|
+
ngImport: i0,
|
|
683
|
+
type: TxTagList,
|
|
684
|
+
decorators: [{
|
|
685
|
+
type: Component,
|
|
686
|
+
args: [{
|
|
687
|
+
selector: "tx-tag-list",
|
|
688
|
+
imports: [
|
|
689
|
+
NgTemplateOutlet,
|
|
690
|
+
TxTag,
|
|
691
|
+
TxTooltip,
|
|
692
|
+
TxPopover,
|
|
693
|
+
TxPopoverContent,
|
|
694
|
+
TxPopoverTrigger
|
|
695
|
+
],
|
|
696
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
697
|
+
host: {
|
|
698
|
+
class: "tx-tag-list",
|
|
699
|
+
role: "list",
|
|
700
|
+
"[class]": "passThrough().root?.class",
|
|
701
|
+
"[style]": "hostStyle()",
|
|
702
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
703
|
+
"[attr.aria-label]": "ariaLabel() ?? null",
|
|
704
|
+
"[class.tx-tag-list--empty]": "!all().length"
|
|
705
|
+
},
|
|
706
|
+
template: "<ng-template #tagTemplate let-tag>\n <tx-tag\n [value]=\"tag.value\"\n [severity]=\"tag.severity ?? severity()\"\n [icon]=\"tag.icon\"\n [size]=\"size()\"\n [rounded]=\"rounded()\"\n [unstyled]=\"isUnstyled()\"\n [txTooltip]=\"tag.tooltip ?? ''\"\n [class]=\"passThrough().tag?.class\"\n [style]=\"passThrough().tag?.style\"\n />\n</ng-template>\n\n@for (tag of visible(); track $index) {\n <span class=\"tx-tag-list__item\" role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n} @empty {\n <span class=\"tx-tag-list__empty\" role=\"listitem\">{{ emptyText() }}</span>\n}\n@if (hidden().length) {\n <span class=\"tx-tag-list__item\" role=\"listitem\">\n <button\n type=\"button\"\n class=\"tx-tag-list__more\"\n [class]=\"passThrough().more?.class\"\n [style]=\"passThrough().more?.style\"\n [attr.aria-label]=\"moreText()\"\n [txPopoverTrigger]=\"rest\"\n >\n <tx-tag [value]=\"'+' + hidden().length\" [severity]=\"severity()\" [size]=\"size()\" [rounded]=\"rounded()\" [unstyled]=\"isUnstyled()\" />\n </button>\n </span>\n <tx-popover #rest [ariaLabel]=\"t().tagListHidden\" autoFocus=\"none\" [unstyled]=\"isUnstyled()\">\n <ng-template txPopoverContent>\n <div\n class=\"tx-tag-list__popover\"\n role=\"list\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().popover?.class\"\n [style]=\"passThrough().popover?.style\"\n >\n @for (tag of hidden(); track $index) {\n <span role=\"listitem\"><ng-container *ngTemplateOutlet=\"tagTemplate; context: { $implicit: tag }\" /></span>\n }\n </div>\n </ng-template>\n </tx-popover>\n}\n",
|
|
707
|
+
styles: [":host{display:inline-flex;align-items:center;min-width:0}.tx-tag-list__item{display:inline-flex;flex:none}.tx-tag-list__more{display:inline-flex;padding:0;border:none;background:none;font:inherit;cursor:pointer}:host([data-styled]){gap:var(--tx-tag-list-gap)}:host([data-styled]) .tx-tag-list__item{white-space:nowrap}:host([data-styled]) .tx-tag-list__more{border-radius:var(--tx-tag-border-radius)}:host([data-styled]) .tx-tag-list__more:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-tag-list__empty{color:var(--tx-tag-list-empty-color)}.tx-tag-list__popover[data-styled]{display:flex;flex-wrap:wrap;gap:var(--tx-tag-list-popover-gap);max-width:var(--tx-tag-list-popover-max-width);max-height:var(--tx-tag-list-popover-max-height);padding:var(--tx-tag-list-popover-padding);overflow-y:auto}\n"]
|
|
708
|
+
}]
|
|
709
|
+
}],
|
|
710
|
+
propDecorators: {
|
|
711
|
+
tags: [{
|
|
712
|
+
type: i0.Input,
|
|
713
|
+
args: [{
|
|
714
|
+
isSignal: true,
|
|
715
|
+
alias: "tags",
|
|
716
|
+
required: false
|
|
717
|
+
}]
|
|
718
|
+
}],
|
|
719
|
+
limit: [{
|
|
720
|
+
type: i0.Input,
|
|
721
|
+
args: [{
|
|
722
|
+
isSignal: true,
|
|
723
|
+
alias: "limit",
|
|
724
|
+
required: false
|
|
725
|
+
}]
|
|
726
|
+
}],
|
|
727
|
+
severity: [{
|
|
728
|
+
type: i0.Input,
|
|
729
|
+
args: [{
|
|
730
|
+
isSignal: true,
|
|
731
|
+
alias: "severity",
|
|
732
|
+
required: false
|
|
733
|
+
}]
|
|
734
|
+
}],
|
|
735
|
+
size: [{
|
|
736
|
+
type: i0.Input,
|
|
737
|
+
args: [{
|
|
738
|
+
isSignal: true,
|
|
739
|
+
alias: "size",
|
|
740
|
+
required: false
|
|
741
|
+
}]
|
|
742
|
+
}],
|
|
743
|
+
rounded: [{
|
|
744
|
+
type: i0.Input,
|
|
745
|
+
args: [{
|
|
746
|
+
isSignal: true,
|
|
747
|
+
alias: "rounded",
|
|
748
|
+
required: false
|
|
749
|
+
}]
|
|
750
|
+
}],
|
|
751
|
+
emptyText: [{
|
|
752
|
+
type: i0.Input,
|
|
753
|
+
args: [{
|
|
754
|
+
isSignal: true,
|
|
755
|
+
alias: "emptyText",
|
|
756
|
+
required: false
|
|
757
|
+
}]
|
|
758
|
+
}],
|
|
759
|
+
moreLabel: [{
|
|
760
|
+
type: i0.Input,
|
|
761
|
+
args: [{
|
|
762
|
+
isSignal: true,
|
|
763
|
+
alias: "moreLabel",
|
|
764
|
+
required: false
|
|
765
|
+
}]
|
|
766
|
+
}],
|
|
767
|
+
ariaLabel: [{
|
|
768
|
+
type: i0.Input,
|
|
769
|
+
args: [{
|
|
770
|
+
isSignal: true,
|
|
771
|
+
alias: "ariaLabel",
|
|
772
|
+
required: false
|
|
773
|
+
}]
|
|
774
|
+
}],
|
|
775
|
+
dt: [{
|
|
776
|
+
type: i0.Input,
|
|
777
|
+
args: [{
|
|
778
|
+
isSignal: true,
|
|
779
|
+
alias: "dt",
|
|
780
|
+
required: false
|
|
781
|
+
}]
|
|
782
|
+
}],
|
|
783
|
+
pt: [{
|
|
784
|
+
type: i0.Input,
|
|
785
|
+
args: [{
|
|
786
|
+
isSignal: true,
|
|
787
|
+
alias: "pt",
|
|
788
|
+
required: false
|
|
789
|
+
}]
|
|
790
|
+
}],
|
|
791
|
+
ptOptions: [{
|
|
792
|
+
type: i0.Input,
|
|
793
|
+
args: [{
|
|
794
|
+
isSignal: true,
|
|
795
|
+
alias: "ptOptions",
|
|
796
|
+
required: false
|
|
797
|
+
}]
|
|
798
|
+
}],
|
|
799
|
+
unstyled: [{
|
|
800
|
+
type: i0.Input,
|
|
801
|
+
args: [{
|
|
802
|
+
isSignal: true,
|
|
803
|
+
alias: "unstyled",
|
|
804
|
+
required: false
|
|
805
|
+
}]
|
|
806
|
+
}]
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
export { TxTag, TxTagList };
|
|
421
810
|
|
|
422
811
|
//# sourceMappingURL=tectra-ng-ui-tag.mjs.map
|