@tectra-ng/ui 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amount/README.md +19 -1
- package/analog-clock/README.md +1 -1
- package/autocomplete/README.md +1 -1
- package/avatar/README.md +24 -4
- package/cascade-select/README.md +1 -1
- package/chips-input/README.md +10 -5
- package/color-picker/README.md +5 -0
- package/countdown/README.md +7 -1
- package/country/README.md +14 -1
- package/country-select/README.md +2 -1
- package/export/README.md +27 -2
- package/export-font/README.md +1 -1
- package/fesm2022/tectra-ng-ui-accordion.mjs +21 -21
- package/fesm2022/tectra-ng-ui-amount.mjs +99 -17
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -25
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +8 -7
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +68 -26
- 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 +11 -11
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +5 -5
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs +15 -15
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +10 -7
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- 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 +120 -21
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +96 -9
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-swatches.mjs +3 -3
- package/fesm2022/tectra-ng-ui-confirm.mjs +9 -9
- package/fesm2022/tectra-ng-ui-countdown.mjs +48 -19
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +31 -8
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +18 -9
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +30 -30
- package/fesm2022/tectra-ng-ui-datepicker.mjs +53 -40
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +30 -30
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- 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 +1264 -111
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +4 -3
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +5 -5
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- 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 +63 -35
- 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 +5 -5
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-otp.mjs +3 -3
- package/fesm2022/tectra-ng-ui-input.mjs +11 -10
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +87 -22
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +30 -8
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +77 -18
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +44 -20
- 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 +19 -8
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- 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 +23 -19
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +32 -15
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +6 -5
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- 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 +51 -20
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +7 -5
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs +24 -7
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +14 -14
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +39 -19
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- 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 +11 -11
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +3 -3
- package/fesm2022/tectra-ng-ui-select-button.mjs +6 -6
- package/fesm2022/tectra-ng-ui-select.mjs +66 -43
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- 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 +99 -14
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +43 -6
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs +41 -35
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +74 -60
- 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 +8 -8
- 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 +11 -11
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- 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 +13 -11
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +7 -7
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs +30 -30
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +36 -12
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +15 -15
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/icon-field/README.md +2 -1
- package/input/README.md +1 -1
- package/key-filter/README.md +3 -2
- package/knob/README.md +3 -1
- package/label/README.md +4 -1
- package/link/README.md +4 -1
- package/message/README.md +2 -2
- package/month-calendar/README.md +2 -1
- package/multiselect/README.md +1 -1
- package/package.json +4 -4
- package/panel/README.md +3 -1
- package/panel-menu/README.md +3 -2
- package/password-generator/README.md +2 -0
- package/pill/README.md +4 -4
- package/select/README.md +1 -1
- package/stat-tiles/README.md +17 -1
- package/status-icon/README.md +3 -1
- package/table/README.md +1 -1
- package/tag/README.md +2 -0
- package/tree-select/README.md +1 -1
- package/truncate-text/README.md +2 -1
- package/types/tectra-ng-ui-amount.d.ts +41 -1
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +1 -4
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +45 -12
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +3 -2
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +54 -6
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +38 -1
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +12 -1
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +17 -4
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +7 -1
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +4 -2
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +68 -8
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +9 -2
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +19 -4
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +10 -2
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +8 -1
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +8 -2
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +5 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +1 -1
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +14 -4
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +34 -6
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +1 -1
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +10 -3
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +9 -5
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +5 -2
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +49 -5
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +20 -2
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +1 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +2 -1
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +3 -3
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +7 -2
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +1 -1
|
@@ -48,7 +48,7 @@ var TxChip = class TxChip {
|
|
|
48
48
|
}
|
|
49
49
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
50
50
|
minVersion: "12.0.0",
|
|
51
|
-
version: "22.2.
|
|
51
|
+
version: "22.2.6",
|
|
52
52
|
ngImport: i0,
|
|
53
53
|
type: TxChip,
|
|
54
54
|
deps: [],
|
|
@@ -56,7 +56,7 @@ var TxChip = class TxChip {
|
|
|
56
56
|
});
|
|
57
57
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
58
58
|
minVersion: "17.0.0",
|
|
59
|
-
version: "22.2.
|
|
59
|
+
version: "22.2.6",
|
|
60
60
|
type: TxChip,
|
|
61
61
|
isStandalone: true,
|
|
62
62
|
selector: "tx-chip",
|
|
@@ -198,7 +198,7 @@ var TxChip = class TxChip {
|
|
|
198
198
|
};
|
|
199
199
|
i0.ɵɵngDeclareClassMetadata({
|
|
200
200
|
minVersion: "12.0.0",
|
|
201
|
-
version: "22.2.
|
|
201
|
+
version: "22.2.6",
|
|
202
202
|
ngImport: i0,
|
|
203
203
|
type: TxChip,
|
|
204
204
|
decorators: [{
|
|
@@ -16,7 +16,7 @@ var TxChipsInputItemTemplate = class TxChipsInputItemTemplate {
|
|
|
16
16
|
}
|
|
17
17
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
18
18
|
minVersion: "12.0.0",
|
|
19
|
-
version: "22.2.
|
|
19
|
+
version: "22.2.6",
|
|
20
20
|
ngImport: i0,
|
|
21
21
|
type: TxChipsInputItemTemplate,
|
|
22
22
|
deps: [],
|
|
@@ -24,7 +24,7 @@ var TxChipsInputItemTemplate = class TxChipsInputItemTemplate {
|
|
|
24
24
|
});
|
|
25
25
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
26
26
|
minVersion: "14.0.0",
|
|
27
|
-
version: "22.2.
|
|
27
|
+
version: "22.2.6",
|
|
28
28
|
type: TxChipsInputItemTemplate,
|
|
29
29
|
isStandalone: true,
|
|
30
30
|
selector: "ng-template[txChipsInputItem]",
|
|
@@ -33,7 +33,7 @@ var TxChipsInputItemTemplate = class TxChipsInputItemTemplate {
|
|
|
33
33
|
};
|
|
34
34
|
i0.ɵɵngDeclareClassMetadata({
|
|
35
35
|
minVersion: "12.0.0",
|
|
36
|
-
version: "22.2.
|
|
36
|
+
version: "22.2.6",
|
|
37
37
|
ngImport: i0,
|
|
38
38
|
type: TxChipsInputItemTemplate,
|
|
39
39
|
decorators: [{
|
|
@@ -54,6 +54,7 @@ const CHIPS_INPUT_THEME = {
|
|
|
54
54
|
};
|
|
55
55
|
var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
56
56
|
chipsInputTheme = injectTokens(CHIPS_INPUT_THEME);
|
|
57
|
+
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
57
58
|
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
58
59
|
separator = input(",", ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
|
|
59
60
|
addOnBlur = input(true, {
|
|
@@ -70,6 +71,8 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
70
71
|
});
|
|
71
72
|
max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
72
73
|
maxLength = input(void 0, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
74
|
+
maxLengthMode = input("truncate", ...ngDevMode ? [{ debugName: "maxLengthMode" }] : /* istanbul ignore next */ []);
|
|
75
|
+
normalize = input(void 0, ...ngDevMode ? [{ debugName: "normalize" }] : /* istanbul ignore next */ []);
|
|
73
76
|
itemPattern = input(void 0, ...ngDevMode ? [{ debugName: "itemPattern" }] : /* istanbul ignore next */ []);
|
|
74
77
|
showClear = input(false, {
|
|
75
78
|
...ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {},
|
|
@@ -99,6 +102,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
99
102
|
added = output();
|
|
100
103
|
removed = output();
|
|
101
104
|
rejected = output();
|
|
105
|
+
committed = output();
|
|
102
106
|
itemTemplate = contentChild(TxChipsInputItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
103
107
|
field = viewChild.required("field", ...ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []);
|
|
104
108
|
translations = injectTranslations();
|
|
@@ -131,11 +135,23 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
131
135
|
} else this.text.set(text);
|
|
132
136
|
}
|
|
133
137
|
onPaste(event) {
|
|
134
|
-
const
|
|
138
|
+
const pasted = event.clipboardData?.getData("text") ?? "";
|
|
139
|
+
const field = this.field().nativeElement;
|
|
140
|
+
const current = field.value;
|
|
141
|
+
const start = field.selectionStart ?? current.length;
|
|
142
|
+
const end = field.selectionEnd ?? current.length;
|
|
143
|
+
const combined = current.slice(0, start) + pasted + current.slice(end);
|
|
144
|
+
const parts = combined.split(/\r?\n/).flatMap((line) => line.split(this.separator()));
|
|
135
145
|
if (parts.length > 1) {
|
|
136
146
|
event.preventDefault();
|
|
137
147
|
this.addAll(parts);
|
|
138
148
|
this.setText("");
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const value = this.prepare(combined);
|
|
152
|
+
if (value !== null && this.rejectReason(value, this.values()) === "length") {
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
this.addAll([combined]);
|
|
139
155
|
}
|
|
140
156
|
}
|
|
141
157
|
onKeydown(event) {
|
|
@@ -188,26 +204,55 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
188
204
|
}
|
|
189
205
|
addAll(parts) {
|
|
190
206
|
let values = this.values();
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
|
|
207
|
+
const added = [];
|
|
208
|
+
const refused = [];
|
|
209
|
+
for (const part of parts) {
|
|
210
|
+
const value = this.prepare(part);
|
|
211
|
+
if (value === null) continue;
|
|
212
|
+
const reason = this.rejectReason(value, values);
|
|
213
|
+
if (reason) {
|
|
214
|
+
refused.push({
|
|
199
215
|
value,
|
|
200
|
-
|
|
216
|
+
reason
|
|
201
217
|
});
|
|
202
218
|
continue;
|
|
203
219
|
}
|
|
204
220
|
values = [...values, value];
|
|
205
|
-
|
|
206
|
-
this.added.emit({
|
|
221
|
+
added.push({
|
|
207
222
|
value,
|
|
208
223
|
values
|
|
209
224
|
});
|
|
210
225
|
}
|
|
226
|
+
if (added.length) this.updateValue(values);
|
|
227
|
+
const rejected = refused.map((item) => ({
|
|
228
|
+
...item,
|
|
229
|
+
values
|
|
230
|
+
}));
|
|
231
|
+
added.forEach((event) => this.added.emit(event));
|
|
232
|
+
rejected.forEach((event) => this.rejected.emit(event));
|
|
233
|
+
if (added.length || rejected.length) this.committed.emit({
|
|
234
|
+
added: added.map((event) => event.value),
|
|
235
|
+
rejected,
|
|
236
|
+
values
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
prepare(part) {
|
|
240
|
+
const trimmed = part.trim();
|
|
241
|
+
const normalize = this.normalize();
|
|
242
|
+
const value = trimmed && normalize ? normalize(trimmed)?.trim() : trimmed;
|
|
243
|
+
if (!value) return null;
|
|
244
|
+
const maxLength = this.maxLength();
|
|
245
|
+
return maxLength && this.maxLengthMode() === "truncate" ? value.slice(0, maxLength).trimEnd() : value;
|
|
246
|
+
}
|
|
247
|
+
rejectReason(value, values) {
|
|
248
|
+
const maxLength = this.maxLength();
|
|
249
|
+
if (maxLength && value.length > maxLength) return "length";
|
|
250
|
+
const pattern = this.itemPattern();
|
|
251
|
+
if (pattern && !pattern.test(value)) return "pattern";
|
|
252
|
+
const caseSensitive = this.caseSensitive();
|
|
253
|
+
if (!this.allowDuplicate() && values.some((item) => caseSensitive ? item === value : item.toLowerCase() === value.toLowerCase())) return "duplicate";
|
|
254
|
+
const max = this.max();
|
|
255
|
+
return max !== void 0 && values.length >= max ? "max" : null;
|
|
211
256
|
}
|
|
212
257
|
setText(text) {
|
|
213
258
|
this.text.set(text);
|
|
@@ -215,7 +260,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
215
260
|
}
|
|
216
261
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
217
262
|
minVersion: "12.0.0",
|
|
218
|
-
version: "22.2.
|
|
263
|
+
version: "22.2.6",
|
|
219
264
|
ngImport: i0,
|
|
220
265
|
type: TxChipsInput,
|
|
221
266
|
deps: null,
|
|
@@ -223,11 +268,18 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
223
268
|
});
|
|
224
269
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
225
270
|
minVersion: "17.0.0",
|
|
226
|
-
version: "22.2.
|
|
271
|
+
version: "22.2.6",
|
|
227
272
|
type: TxChipsInput,
|
|
228
273
|
isStandalone: true,
|
|
229
274
|
selector: "tx-chips-input",
|
|
230
275
|
inputs: {
|
|
276
|
+
value: {
|
|
277
|
+
classPropertyName: "value",
|
|
278
|
+
publicName: "value",
|
|
279
|
+
isSignal: true,
|
|
280
|
+
isRequired: false,
|
|
281
|
+
transformFunction: null
|
|
282
|
+
},
|
|
231
283
|
placeholder: {
|
|
232
284
|
classPropertyName: "placeholder",
|
|
233
285
|
publicName: "placeholder",
|
|
@@ -277,6 +329,20 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
277
329
|
isRequired: false,
|
|
278
330
|
transformFunction: null
|
|
279
331
|
},
|
|
332
|
+
maxLengthMode: {
|
|
333
|
+
classPropertyName: "maxLengthMode",
|
|
334
|
+
publicName: "maxLengthMode",
|
|
335
|
+
isSignal: true,
|
|
336
|
+
isRequired: false,
|
|
337
|
+
transformFunction: null
|
|
338
|
+
},
|
|
339
|
+
normalize: {
|
|
340
|
+
classPropertyName: "normalize",
|
|
341
|
+
publicName: "normalize",
|
|
342
|
+
isSignal: true,
|
|
343
|
+
isRequired: false,
|
|
344
|
+
transformFunction: null
|
|
345
|
+
},
|
|
280
346
|
itemPattern: {
|
|
281
347
|
classPropertyName: "itemPattern",
|
|
282
348
|
publicName: "itemPattern",
|
|
@@ -377,10 +443,12 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
377
443
|
}
|
|
378
444
|
},
|
|
379
445
|
outputs: {
|
|
446
|
+
value: "valueChange",
|
|
380
447
|
text: "textChange",
|
|
381
448
|
added: "added",
|
|
382
449
|
removed: "removed",
|
|
383
|
-
rejected: "rejected"
|
|
450
|
+
rejected: "rejected",
|
|
451
|
+
committed: "committed"
|
|
384
452
|
},
|
|
385
453
|
host: {
|
|
386
454
|
listeners: { "click": "onHostClick($event)" },
|
|
@@ -420,7 +488,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
420
488
|
usesInheritance: true,
|
|
421
489
|
ngImport: i0,
|
|
422
490
|
template: "<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [value]=\"text()\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n",
|
|
423
|
-
styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width
|
|
491
|
+
styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width);min-width:var(--tx-chips-input-input-min-width)}:host(.tx-chips-input--disabled) .tx-chips-input__box{cursor:not-allowed}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-chips-input__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);gap:var(--tx-chips-input-gap);width:100%}:host([data-styled])[data-variant=filled] .tx-chips-input__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-chips-input--disabled,.tx-chips-input--readonly) .tx-chips-input__box:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]).tx-chips-input--readonly .tx-chips-input__box{background-color:var(--tx-form-field-readonly-background);caret-color:transparent;cursor:default}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-chips-input--disabled .tx-chips-input__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height)}:host([data-styled])[data-size=large] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height)}:host([data-styled]) .tx-chips-input__chip{--tx-chip-height: var(--tx-chips-input-chip-height);--tx-chip-font-size: var(--tx-chips-input-chip-font-size);--tx-chip-padding-x: var(--tx-chips-input-chip-padding-x);--tx-chip-border-radius: var(--tx-chips-input-chip-border-radius);--tx-chip-remove-size: var(--tx-chips-input-chip-remove-size);margin-block:calc((1lh - var(--tx-chips-input-chip-height)) / 2)}:host([data-styled]) .tx-chips-input__input{padding:0;border:none;outline:none;background:transparent;color:inherit;font:inherit}:host([data-styled]) .tx-chips-input__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-chips-input__clear{display:grid;place-items:center;width:var(--tx-form-field-action-size);height:var(--tx-form-field-action-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-chips-input__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-chips-input__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-chips-input__clear{margin-block:calc((1lh - var(--tx-form-field-action-size)) / 2);margin-inline-start:auto}\n"],
|
|
424
492
|
dependencies: [
|
|
425
493
|
{
|
|
426
494
|
kind: "directive",
|
|
@@ -464,7 +532,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
|
|
|
464
532
|
};
|
|
465
533
|
i0.ɵɵngDeclareClassMetadata({
|
|
466
534
|
minVersion: "12.0.0",
|
|
467
|
-
version: "22.2.
|
|
535
|
+
version: "22.2.6",
|
|
468
536
|
ngImport: i0,
|
|
469
537
|
type: TxChipsInput,
|
|
470
538
|
decorators: [{
|
|
@@ -498,10 +566,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
498
566
|
},
|
|
499
567
|
viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],
|
|
500
568
|
template: "<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [value]=\"text()\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n",
|
|
501
|
-
styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width
|
|
569
|
+
styles: [":host{display:block;width:100%}.tx-chips-input__box{display:flex;flex-wrap:wrap;align-items:center;cursor:text}.tx-chips-input__list{display:contents}.tx-chips-input__input{flex:1 1 var(--tx-chips-input-input-min-width);min-width:var(--tx-chips-input-input-min-width)}:host(.tx-chips-input--disabled) .tx-chips-input__box{cursor:not-allowed}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-chips-input__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);gap:var(--tx-chips-input-gap);width:100%}:host([data-styled])[data-variant=filled] .tx-chips-input__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-chips-input--disabled,.tx-chips-input--readonly) .tx-chips-input__box:hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled]) .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled]).tx-chips-input--readonly .tx-chips-input__box{background-color:var(--tx-form-field-readonly-background);caret-color:transparent;cursor:default}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-chips-input--invalid .tx-chips-input__box:focus-within{border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-chips-input--disabled .tx-chips-input__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height)}:host([data-styled])[data-size=large] .tx-chips-input__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height)}:host([data-styled]) .tx-chips-input__chip{--tx-chip-height: var(--tx-chips-input-chip-height);--tx-chip-font-size: var(--tx-chips-input-chip-font-size);--tx-chip-padding-x: var(--tx-chips-input-chip-padding-x);--tx-chip-border-radius: var(--tx-chips-input-chip-border-radius);--tx-chip-remove-size: var(--tx-chips-input-chip-remove-size);margin-block:calc((1lh - var(--tx-chips-input-chip-height)) / 2)}:host([data-styled]) .tx-chips-input__input{padding:0;border:none;outline:none;background:transparent;color:inherit;font:inherit}:host([data-styled]) .tx-chips-input__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-chips-input__clear{display:grid;place-items:center;width:var(--tx-form-field-action-size);height:var(--tx-form-field-action-size);padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-chips-input__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-chips-input__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-chips-input__clear{margin-block:calc((1lh - var(--tx-form-field-action-size)) / 2);margin-inline-start:auto}\n"]
|
|
502
570
|
}]
|
|
503
571
|
}],
|
|
504
572
|
propDecorators: {
|
|
573
|
+
value: [{
|
|
574
|
+
type: i0.Input,
|
|
575
|
+
args: [{
|
|
576
|
+
isSignal: true,
|
|
577
|
+
alias: "value",
|
|
578
|
+
required: false
|
|
579
|
+
}]
|
|
580
|
+
}, {
|
|
581
|
+
type: i0.Output,
|
|
582
|
+
args: ["valueChange"]
|
|
583
|
+
}],
|
|
505
584
|
placeholder: [{
|
|
506
585
|
type: i0.Input,
|
|
507
586
|
args: [{
|
|
@@ -558,6 +637,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
558
637
|
required: false
|
|
559
638
|
}]
|
|
560
639
|
}],
|
|
640
|
+
maxLengthMode: [{
|
|
641
|
+
type: i0.Input,
|
|
642
|
+
args: [{
|
|
643
|
+
isSignal: true,
|
|
644
|
+
alias: "maxLengthMode",
|
|
645
|
+
required: false
|
|
646
|
+
}]
|
|
647
|
+
}],
|
|
648
|
+
normalize: [{
|
|
649
|
+
type: i0.Input,
|
|
650
|
+
args: [{
|
|
651
|
+
isSignal: true,
|
|
652
|
+
alias: "normalize",
|
|
653
|
+
required: false
|
|
654
|
+
}]
|
|
655
|
+
}],
|
|
561
656
|
itemPattern: [{
|
|
562
657
|
type: i0.Input,
|
|
563
658
|
args: [{
|
|
@@ -685,6 +780,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
685
780
|
type: i0.Output,
|
|
686
781
|
args: ["rejected"]
|
|
687
782
|
}],
|
|
783
|
+
committed: [{
|
|
784
|
+
type: i0.Output,
|
|
785
|
+
args: ["committed"]
|
|
786
|
+
}],
|
|
688
787
|
itemTemplate: [{
|
|
689
788
|
type: i0.ContentChild,
|
|
690
789
|
args: [i0.forwardRef(() => TxChipsInputItemTemplate), { isSignal: true }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-chips-input.mjs","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.icons.ts","../../../../packages/ui/chips-input/src/chips-input.theme.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts","../../../../packages/ui/chips-input/src/chips-input.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxChipsInputItemContext } from './chips-input.types';\n\n@Directive({ selector: 'ng-template[txChipsInputItem]' })\nexport class TxChipsInputItemTemplate {\n readonly templateRef = inject<TemplateRef<TxChipsInputItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxChipsInputItemTemplate, context: unknown): context is TxChipsInputItemContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconList, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const CHIPS_INPUT_ICON_DEFAULTS: TxIconSet = {\n list: txIconList,\n text: txIconText,\n times: txIconTimes,\n};\n","import { chipTokens, chipsInputTokens, fieldTokens, formFieldTokens } from '@tectra-ng/themes';\n\nexport const CHIPS_INPUT_THEME = {\n chip: chipTokens,\n chipsInput: chipsInputTokens,\n field: fieldTokens,\n formField: formFieldTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraChipsInputTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxChip } from '@tectra-ng/ui/chip';\nimport { TxChipsInputItemTemplate } from './chips-input-item.directive';\nimport { TxChipsInputEvent, TxChipsInputPart, TxChipsInputSize, TxChipsInputVariant } from './chips-input.types';\nimport { CHIPS_INPUT_ICON_DEFAULTS } from './chips-input.icons';\nimport { CHIPS_INPUT_THEME } from './chips-input.theme';\n\n/**\n * A text field that turns typed text into removable chips; works with forms and a list of strings as the value.\n */\n@Component({\n selector: 'tx-chips-input',\n imports: [NgTemplateOutlet, TxChip, TxIcon],\n templateUrl: './chips-input.component.html',\n styleUrl: './chips-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxChipsInput), multi: true }],\n host: {\n class: 'tx-chips-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[class.tx-chips-input--disabled]': 'disabled()',\n '[class.tx-chips-input--invalid]': 'isInvalid()',\n '[class.tx-chips-input--readonly]': 'readonly()',\n '[class.tx-chips-input--filled]': 'values().length > 0 || !!text()',\n '[class.tx-chips-input--full]': 'isFull()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],\n})\nexport class TxChipsInput extends TxFormControlBase<string[]> {\n private readonly chipsInputTheme = injectTokens(CHIPS_INPUT_THEME);\n\n readonly placeholder = input<string>('');\n readonly separator = input<string | RegExp>(',');\n readonly addOnBlur = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly allowDuplicate = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly caseSensitive = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly max = input<number | undefined>(undefined);\n readonly maxLength = input<number | undefined>(undefined);\n readonly itemPattern = input<RegExp | undefined>(undefined);\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly size = input<TxChipsInputSize>('medium');\n readonly variant = input<TxChipsInputVariant>('outlined');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraChipsInputTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxChipsInputPart, TxChipsInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly text = model('');\n\n readonly added = output<TxChipsInputEvent>();\n readonly removed = output<TxChipsInputEvent>();\n readonly rejected = output<TxChipsInputEvent>();\n\n readonly itemTemplate = contentChild(TxChipsInputItemTemplate);\n readonly field = viewChild.required<ElementRef<HTMLInputElement>>('field');\n\n readonly translations = injectTranslations();\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('chipsInput', this, this.pt, this.ptOptions);\n\n readonly values = computed(() => this.value() ?? []);\n readonly isFull = computed(() => {\n const max = this.max();\n return max !== undefined && this.values().length >= max;\n });\n readonly canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chips-input'), ...this.passThrough().root?.style }));\n\n override writeValue(value: string[] | null): void {\n super.writeValue(Array.isArray(value) ? value : []);\n }\n\n removeLabel(item: string): string {\n return this.translations().removeItem.replace('{item}', item);\n }\n\n onInput(event: Event): void {\n const text = (event.target as HTMLInputElement).value;\n const separator = this.separator();\n const parts = text.split(separator);\n if (parts.length > 1) {\n this.addAll(parts.slice(0, -1));\n this.setText(parts[parts.length - 1]);\n } else {\n this.text.set(text);\n }\n }\n\n onPaste(event: ClipboardEvent): void {\n const pasted = event.clipboardData?.getData('text') ?? '';\n const parts = pasted.split(/\\r?\\n/).flatMap((line) => line.split(this.separator()));\n if (parts.length > 1) {\n event.preventDefault();\n this.addAll(parts);\n this.setText('');\n }\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.readonly()) {\n return;\n }\n if (event.key === 'Enter') {\n if (this.text().trim()) {\n event.preventDefault();\n this.addAll([this.text()]);\n this.setText('');\n }\n return;\n }\n if (event.key === 'Backspace' && !this.text() && this.values().length) {\n event.preventDefault();\n this.removeAt(this.values().length - 1);\n }\n }\n\n onBlur(): void {\n if (this.addOnBlur() && this.text().trim()) {\n this.addAll([this.text()]);\n this.setText('');\n }\n this.markTouched();\n }\n\n onHostClick(event: MouseEvent): void {\n if (!(event.target as HTMLElement).closest('button')) {\n this.field().nativeElement.focus();\n }\n }\n\n removeAt(index: number): void {\n if (this.disabled() || this.readonly()) {\n return;\n }\n const value = this.values()[index];\n const values = this.values().filter((_, position) => position !== index);\n this.updateValue(values);\n this.removed.emit({ value, values });\n this.field().nativeElement.focus();\n }\n\n clear(): void {\n this.updateValue([]);\n this.setText('');\n this.field().nativeElement.focus();\n }\n\n add(value: string | readonly string[]): void {\n if (this.disabled() || this.readonly()) {\n return;\n }\n this.addAll(typeof value === 'string' ? [value] : [...value]);\n }\n\n clearText(): void {\n this.setText('');\n }\n\n private addAll(parts: string[]): void {\n let values = this.values();\n for (const part of parts.map((item) => item.trim()).filter(Boolean)) {\n const value = this.maxLength() ? part.slice(0, this.maxLength()) : part;\n const duplicate = values.some((item) => (this.caseSensitive() ? item === value : item.toLowerCase() === value.toLowerCase()));\n const max = this.max();\n const full = max !== undefined && values.length >= max;\n const invalidPattern = !!this.itemPattern() && !this.itemPattern()?.test(value);\n if ((duplicate && !this.allowDuplicate()) || full || invalidPattern) {\n this.rejected.emit({ value, values });\n continue;\n }\n values = [...values, value];\n this.updateValue(values);\n this.added.emit({ value, values });\n }\n }\n\n private setText(text: string): void {\n this.text.set(text);\n this.field().nativeElement.value = text;\n }\n}\n","<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [value]=\"text()\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n"],"mappings":";;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;ACDxD,MAAa,4BAAuC;CAClD,MAAM;CACN,MAAM;CACN,OAAO;AACR;ACJD,MAAa,oBAAoB;CAC/B,MAAM;CACN,YAAY;CACZ,OAAO;CACP,WAAW;AACZ;AC8CD,IAAa,eAAb,MAAa,qBAAqB,kBAA2B;CAC1C,kBAAkB,aAAa,iBAAiB;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-ui-chips-input.mjs","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.icons.ts","../../../../packages/ui/chips-input/src/chips-input.theme.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts","../../../../packages/ui/chips-input/src/chips-input.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxChipsInputItemContext } from './chips-input.types';\n\n@Directive({ selector: 'ng-template[txChipsInputItem]' })\nexport class TxChipsInputItemTemplate {\n readonly templateRef = inject<TemplateRef<TxChipsInputItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxChipsInputItemTemplate, context: unknown): context is TxChipsInputItemContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconList, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const CHIPS_INPUT_ICON_DEFAULTS: TxIconSet = {\n list: txIconList,\n text: txIconText,\n times: txIconTimes,\n};\n","import { chipTokens, chipsInputTokens, fieldTokens, formFieldTokens } from '@tectra-ng/themes';\n\nexport const CHIPS_INPUT_THEME = {\n chip: chipTokens,\n chipsInput: chipsInputTokens,\n field: fieldTokens,\n formField: formFieldTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraChipsInputTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxChip } from '@tectra-ng/ui/chip';\nimport { TxChipsInputItemTemplate } from './chips-input-item.directive';\nimport {\n TxChipsInputCommitEvent,\n TxChipsInputEvent,\n TxChipsInputLengthMode,\n TxChipsInputNormalizer,\n TxChipsInputPart,\n TxChipsInputRejectReason,\n TxChipsInputRejectedEvent,\n TxChipsInputSize,\n TxChipsInputVariant,\n} from './chips-input.types';\nimport { CHIPS_INPUT_ICON_DEFAULTS } from './chips-input.icons';\nimport { CHIPS_INPUT_THEME } from './chips-input.theme';\n\n/**\n * A text field that turns typed text into removable chips; the value is a list of strings. A `ControlValueAccessor` —\n * works with `[formControl]`, `ngModel`, signal forms and `[(value)]`.\n */\n@Component({\n selector: 'tx-chips-input',\n imports: [NgTemplateOutlet, TxChip, TxIcon],\n templateUrl: './chips-input.component.html',\n styleUrl: './chips-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxChipsInput), multi: true }],\n host: {\n class: 'tx-chips-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[class.tx-chips-input--disabled]': 'disabled()',\n '[class.tx-chips-input--invalid]': 'isInvalid()',\n '[class.tx-chips-input--readonly]': 'readonly()',\n '[class.tx-chips-input--filled]': 'values().length > 0 || !!text()',\n '[class.tx-chips-input--full]': 'isFull()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],\n})\nexport class TxChipsInput extends TxFormControlBase<string[]> {\n private readonly chipsInputTheme = injectTokens(CHIPS_INPUT_THEME);\n\n override readonly value = model<string[] | null>(null);\n readonly placeholder = input<string>('');\n readonly separator = input<string | RegExp>(',');\n readonly addOnBlur = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly allowDuplicate = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly caseSensitive = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly max = input<number | undefined>(undefined);\n readonly maxLength = input<number | undefined>(undefined);\n readonly maxLengthMode = input<TxChipsInputLengthMode>('truncate');\n readonly normalize = input<TxChipsInputNormalizer | undefined>(undefined);\n readonly itemPattern = input<RegExp | undefined>(undefined);\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly size = input<TxChipsInputSize>('medium');\n readonly variant = input<TxChipsInputVariant>('outlined');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraChipsInputTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxChipsInputPart, TxChipsInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly text = model('');\n\n readonly added = output<TxChipsInputEvent>();\n readonly removed = output<TxChipsInputEvent>();\n readonly rejected = output<TxChipsInputRejectedEvent>();\n readonly committed = output<TxChipsInputCommitEvent>();\n\n readonly itemTemplate = contentChild(TxChipsInputItemTemplate);\n readonly field = viewChild.required<ElementRef<HTMLInputElement>>('field');\n\n readonly translations = injectTranslations();\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('chipsInput', this, this.pt, this.ptOptions);\n\n readonly values = computed(() => this.value() ?? []);\n readonly isFull = computed(() => {\n const max = this.max();\n return max !== undefined && this.values().length >= max;\n });\n readonly canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chips-input'), ...this.passThrough().root?.style }));\n\n override writeValue(value: string[] | null): void {\n super.writeValue(Array.isArray(value) ? value : []);\n }\n\n removeLabel(item: string): string {\n return this.translations().removeItem.replace('{item}', item);\n }\n\n onInput(event: Event): void {\n const text = (event.target as HTMLInputElement).value;\n const separator = this.separator();\n const parts = text.split(separator);\n if (parts.length > 1) {\n this.addAll(parts.slice(0, -1));\n this.setText(parts[parts.length - 1]);\n } else {\n this.text.set(text);\n }\n }\n\n onPaste(event: ClipboardEvent): void {\n const pasted = event.clipboardData?.getData('text') ?? '';\n const field = this.field().nativeElement;\n const current = field.value;\n const start = field.selectionStart ?? current.length;\n const end = field.selectionEnd ?? current.length;\n const combined = current.slice(0, start) + pasted + current.slice(end);\n const parts = combined.split(/\\r?\\n/).flatMap((line) => line.split(this.separator()));\n if (parts.length > 1) {\n event.preventDefault();\n this.addAll(parts);\n this.setText('');\n return;\n }\n const value = this.prepare(combined);\n if (value !== null && this.rejectReason(value, this.values()) === 'length') {\n event.preventDefault();\n this.addAll([combined]);\n }\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.readonly()) {\n return;\n }\n if (event.key === 'Enter') {\n if (this.text().trim()) {\n event.preventDefault();\n this.addAll([this.text()]);\n this.setText('');\n }\n return;\n }\n if (event.key === 'Backspace' && !this.text() && this.values().length) {\n event.preventDefault();\n this.removeAt(this.values().length - 1);\n }\n }\n\n onBlur(): void {\n if (this.addOnBlur() && this.text().trim()) {\n this.addAll([this.text()]);\n this.setText('');\n }\n this.markTouched();\n }\n\n onHostClick(event: MouseEvent): void {\n if (!(event.target as HTMLElement).closest('button')) {\n this.field().nativeElement.focus();\n }\n }\n\n removeAt(index: number): void {\n if (this.disabled() || this.readonly()) {\n return;\n }\n const value = this.values()[index];\n const values = this.values().filter((_, position) => position !== index);\n this.updateValue(values);\n this.removed.emit({ value, values });\n this.field().nativeElement.focus();\n }\n\n clear(): void {\n this.updateValue([]);\n this.setText('');\n this.field().nativeElement.focus();\n }\n\n add(value: string | readonly string[]): void {\n if (this.disabled() || this.readonly()) {\n return;\n }\n this.addAll(typeof value === 'string' ? [value] : [...value]);\n }\n\n clearText(): void {\n this.setText('');\n }\n\n private addAll(parts: readonly string[]): void {\n let values = this.values();\n const added: TxChipsInputEvent[] = [];\n const refused: { value: string; reason: TxChipsInputRejectReason }[] = [];\n for (const part of parts) {\n const value = this.prepare(part);\n if (value === null) {\n continue;\n }\n const reason = this.rejectReason(value, values);\n if (reason) {\n refused.push({ value, reason });\n continue;\n }\n values = [...values, value];\n added.push({ value, values });\n }\n if (added.length) {\n this.updateValue(values);\n }\n const rejected = refused.map((item): TxChipsInputRejectedEvent => ({ ...item, values }));\n added.forEach((event) => this.added.emit(event));\n rejected.forEach((event) => this.rejected.emit(event));\n if (added.length || rejected.length) {\n this.committed.emit({ added: added.map((event) => event.value), rejected, values });\n }\n }\n\n private prepare(part: string): string | null {\n const trimmed = part.trim();\n const normalize = this.normalize();\n const value = trimmed && normalize ? normalize(trimmed)?.trim() : trimmed;\n if (!value) {\n return null;\n }\n const maxLength = this.maxLength();\n return maxLength && this.maxLengthMode() === 'truncate' ? value.slice(0, maxLength).trimEnd() : value;\n }\n\n private rejectReason(value: string, values: readonly string[]): TxChipsInputRejectReason | null {\n const maxLength = this.maxLength();\n if (maxLength && value.length > maxLength) {\n return 'length';\n }\n const pattern = this.itemPattern();\n if (pattern && !pattern.test(value)) {\n return 'pattern';\n }\n const caseSensitive = this.caseSensitive();\n if (!this.allowDuplicate() && values.some((item) => (caseSensitive ? item === value : item.toLowerCase() === value.toLowerCase()))) {\n return 'duplicate';\n }\n const max = this.max();\n return max !== undefined && values.length >= max ? 'max' : null;\n }\n\n private setText(text: string): void {\n this.text.set(text);\n this.field().nativeElement.value = text;\n }\n}\n","<div class=\"tx-chips-input__box\">\n @if (values().length) {\n <span class=\"tx-chips-input__list\" role=\"list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (item of values(); track $index) {\n <tx-chip\n role=\"listitem\"\n class=\"tx-chips-input__chip\"\n [class]=\"passThrough().chip?.class\"\n [style]=\"passThrough().chip?.style\"\n [removable]=\"!disabled() && !readonly()\"\n [removeIcon]=\"'times'\"\n [removeLabel]=\"removeLabel(item)\"\n (removed)=\"removeAt($index)\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index }\" />\n } @else {\n {{ item }}\n }\n </tx-chip>\n }\n </span>\n }\n <input\n #field\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-chips-input__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [value]=\"text()\"\n [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n"],"mappings":";;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OA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