@tectra-ng/ui 0.4.5 → 0.4.6

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.
@@ -24,6 +24,7 @@ A text field that turns what you type into chips — keywords, tags, emails, dom
24
24
  | size | `small`, `medium`, `large` |
25
25
  | variant | `outlined` or `filled` |
26
26
  | invalid | Red border and `aria-invalid`; follows the form control by default |
27
+ | disabled | Disables the field (also from the form control), so `[(value)]` works without forms |
27
28
  | readonly | Shows the chips, cannot change them |
28
29
  | dt | Design tokens of this instance (`chipsInput`) |
29
30
  | pt | Classes and styles of the parts: `root`, `list`, `chip`, `input`, `clear` |
@@ -87,6 +87,11 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
87
87
  ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
88
88
  transform: optionalBoolean
89
89
  });
90
+ disabledInput = input(false, {
91
+ ...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
92
+ alias: "disabled",
93
+ transform: booleanAttribute
94
+ });
90
95
  readonly = input(false, {
91
96
  ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
92
97
  transform: booleanAttribute
@@ -114,7 +119,8 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
114
119
  const max = this.max();
115
120
  return max !== void 0 && this.values().length >= max;
116
121
  }, ...ngDevMode ? [{ debugName: "isFull" }] : /* istanbul ignore next */ []);
117
- canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []);
122
+ isDisabled = computed(() => this.disabled() || this.disabledInput(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
123
+ canClear = computed(() => this.showClear() && this.values().length > 0 && !this.isDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []);
118
124
  hostStyle = computed(() => ({
119
125
  ...toStyleObject(this.dt(), "--tx-chips-input"),
120
126
  ...this.passThrough().root?.style
@@ -180,7 +186,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
180
186
  if (!event.target.closest("button")) this.field().nativeElement.focus();
181
187
  }
182
188
  removeAt(index) {
183
- if (this.disabled() || this.readonly()) return;
189
+ if (this.isDisabled() || this.readonly()) return;
184
190
  const value = this.values()[index];
185
191
  const values = this.values().filter((_, position) => position !== index);
186
192
  this.updateValue(values);
@@ -196,7 +202,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
196
202
  this.field().nativeElement.focus();
197
203
  }
198
204
  add(value) {
199
- if (this.disabled() || this.readonly()) return;
205
+ if (this.isDisabled() || this.readonly()) return;
200
206
  this.addAll(typeof value === "string" ? [value] : [...value]);
201
207
  }
202
208
  clearText() {
@@ -399,6 +405,13 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
399
405
  isRequired: false,
400
406
  transformFunction: null
401
407
  },
408
+ disabledInput: {
409
+ classPropertyName: "disabledInput",
410
+ publicName: "disabled",
411
+ isSignal: true,
412
+ isRequired: false,
413
+ transformFunction: null
414
+ },
402
415
  readonly: {
403
416
  classPropertyName: "readonly",
404
417
  publicName: "readonly",
@@ -458,7 +471,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
458
471
  "attr.data-styled": "!isUnstyled() || null",
459
472
  "attr.data-size": "size()",
460
473
  "attr.data-variant": "variant()",
461
- "class.tx-chips-input--disabled": "disabled()",
474
+ "class.tx-chips-input--disabled": "isDisabled()",
462
475
  "class.tx-chips-input--invalid": "isInvalid()",
463
476
  "class.tx-chips-input--readonly": "readonly()",
464
477
  "class.tx-chips-input--filled": "values().length > 0 || !!text()",
@@ -487,7 +500,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
487
500
  }],
488
501
  usesInheritance: true,
489
502
  ngImport: i0,
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",
503
+ 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]=\"!isDisabled() && !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]=\"isDisabled()\"\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",
491
504
  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"],
492
505
  dependencies: [
493
506
  {
@@ -557,7 +570,7 @@ i0.ɵɵngDeclareClassMetadata({
557
570
  "[attr.data-styled]": "!isUnstyled() || null",
558
571
  "[attr.data-size]": "size()",
559
572
  "[attr.data-variant]": "variant()",
560
- "[class.tx-chips-input--disabled]": "disabled()",
573
+ "[class.tx-chips-input--disabled]": "isDisabled()",
561
574
  "[class.tx-chips-input--invalid]": "isInvalid()",
562
575
  "[class.tx-chips-input--readonly]": "readonly()",
563
576
  "[class.tx-chips-input--filled]": "values().length > 0 || !!text()",
@@ -565,7 +578,7 @@ i0.ɵɵngDeclareClassMetadata({
565
578
  "(click)": "onHostClick($event)"
566
579
  },
567
580
  viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],
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",
581
+ 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]=\"!isDisabled() && !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]=\"isDisabled()\"\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",
569
582
  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"]
570
583
  }]
571
584
  }],
@@ -717,6 +730,14 @@ i0.ɵɵngDeclareClassMetadata({
717
730
  required: false
718
731
  }]
719
732
  }],
733
+ disabledInput: [{
734
+ type: i0.Input,
735
+ args: [{
736
+ isSignal: true,
737
+ alias: "disabled",
738
+ required: false
739
+ }]
740
+ }],
720
741
  readonly: [{
721
742
  type: i0.Input,
722
743
  args: [{
@@ -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 {\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,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,U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A,MAAA,CACK,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
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 {\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]': 'isDisabled()',\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 // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\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 isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly canClear = computed(() => this.showClear() && this.values().length > 0 && !this.isDisabled() && !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.isDisabled() || 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.isDisabled() || 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]=\"!isDisabled() && !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]=\"isDisabled()\"\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;CAC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AAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACK,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -4,7 +4,7 @@ import { NgTemplateOutlet } from "@angular/common";
4
4
  import { TECTRA_CONFIG, injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
5
5
  import { injectTranslations } from "@tectra-ng/core/i18n";
6
6
  import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
7
- import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconCheckCircle, txIconExclamationCircle, txIconInfo, txIconText, txIconTimes } from "@tectra-ng/icons";
7
+ import { TxIcon, injectTxIcons, provideTxIconDefaults, splitIconValue, txIconCheckCircle, txIconExclamationCircle, txIconInfo, txIconText, txIconTimes } from "@tectra-ng/icons";
8
8
  import { fieldMessageTokens, messageTokens, toStyleObject } from "@tectra-ng/themes";
9
9
  import { injectDescribedBy, uniqueId } from "@tectra-ng/core/a11y";
10
10
  var TxMessageIconTemplate = class TxMessageIconTemplate {
@@ -139,7 +139,13 @@ var TxMessage = class TxMessage {
139
139
  isClosed = signal(false, ...ngDevMode ? [{ debugName: "isClosed" }] : /* istanbul ignore next */ []);
140
140
  role = computed(() => this.severity() === "danger" || this.severity() === "warn" ? "alert" : "status", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
141
141
  hasIcon = computed(() => !!this.icon() || !!this.iconTemplate(), ...ngDevMode ? [{ debugName: "hasIcon" }] : /* istanbul ignore next */ []);
142
- iconName = computed(() => this.registered(this.icon()), ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
142
+ iconParts = computed(() => {
143
+ const parts = splitIconValue(this.icon());
144
+ return parts && this.txIconRegistry.has(parts.name) ? parts : null;
145
+ }, ...ngDevMode ? [{ debugName: "iconParts" }] : /* istanbul ignore next */ []);
146
+ iconName = computed(() => this.iconParts()?.name ?? null, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
147
+ iconModifiers = computed(() => this.iconParts()?.modifiers.join(" ") ?? "", ...ngDevMode ? [{ debugName: "iconModifiers" }] : /* istanbul ignore next */ []);
148
+ iconSpin = computed(() => this.iconParts()?.spin ?? false, ...ngDevMode ? [{ debugName: "iconSpin" }] : /* istanbul ignore next */ []);
143
149
  closeIconName = computed(() => this.registered(this.closeIcon()), ...ngDevMode ? [{ debugName: "closeIconName" }] : /* istanbul ignore next */ []);
144
150
  hostStyle = computed(() => ({
145
151
  ...toStyleObject(this.dt(), "--tx-message"),
@@ -313,8 +319,8 @@ var TxMessage = class TxMessage {
313
319
  }
314
320
  ],
315
321
  ngImport: i0,
316
- template: "@if (hasIcon()) {\n <span class=\"tx-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n",
317
- styles: [":host{display:block}:host([data-styled]){--_tone: var(--tx-message-info-tone);--_text: var(--tx-message-info-text);--_gap: var(--tx-message-gap);--_padding-y: var(--tx-message-padding-y);--_padding-start: var(--tx-message-padding-start);--_padding-end: var(--tx-message-padding-end);--_font-size: var(--tx-message-font-size);--_icon-size: var(--tx-message-icon-size);--_icon-font-size: var(--tx-message-icon-font-size);position:relative;display:flex;align-items:flex-start;gap:var(--_gap);box-sizing:border-box;overflow:hidden;padding:var(--_padding-y) var(--_padding-end) var(--_padding-y) var(--_padding-start);border-radius:var(--tx-message-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-message-background-tint),var(--tx-message-background));box-shadow:inset 0 0 0 var(--tx-message-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color));color:var(--tx-message-color);font-family:var(--tx-font-family);font-size:var(--_font-size);font-weight:var(--tx-message-font-weight);line-height:var(--tx-message-line-height);animation:tx-message-in var(--tx-message-transition-duration) ease}:host([data-styled]):before{position:absolute;inset-block:0;inset-inline-start:0;width:var(--tx-message-accent-width);background:var(--_tone);content:\"\"}:host([data-styled][data-severity=primary]){--_tone: var(--tx-message-primary-tone);--_text: var(--tx-message-primary-text)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-message-secondary-tone);--_text: var(--tx-message-secondary-text)}:host([data-styled][data-severity=success]){--_tone: var(--tx-message-success-tone);--_text: var(--tx-message-success-text)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-message-warn-tone);--_text: var(--tx-message-warn-text)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-message-danger-tone);--_text: var(--tx-message-danger-text)}:host([data-styled][data-severity=help]){--_tone: var(--tx-message-help-tone);--_text: var(--tx-message-help-text)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-message-contrast-tone);--_text: var(--tx-message-contrast-text)}:host([data-styled][data-size=small]){--_gap: var(--tx-message-sm-gap);--_padding-y: var(--tx-message-sm-padding-y);--_padding-start: var(--tx-message-sm-padding-start);--_padding-end: var(--tx-message-sm-padding-end);--_font-size: var(--tx-message-sm-font-size);--_icon-size: var(--tx-message-sm-icon-size);--_icon-font-size: var(--tx-message-sm-icon-font-size)}:host([data-styled][data-size=large]){--_gap: var(--tx-message-lg-gap);--_padding-y: var(--tx-message-lg-padding-y);--_padding-start: var(--tx-message-lg-padding-start);--_padding-end: var(--tx-message-lg-padding-end);--_font-size: var(--tx-message-lg-font-size);--_icon-size: var(--tx-message-lg-icon-size);--_icon-font-size: var(--tx-message-lg-icon-font-size)}:host([data-styled]) .tx-message__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:50%;background:color-mix(in srgb,var(--_tone) var(--tx-message-icon-tint),transparent);color:var(--_tone);font-size:var(--_icon-font-size)}:host([data-styled]) .tx-message__content{flex:1;min-width:0;align-self:center;overflow-wrap:anywhere}:host([data-styled]) .tx-message__actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;align-self:center;gap:var(--tx-message-actions-gap)}:host([data-styled]) .tx-message__close{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:var(--tx-message-close-button-size);height:var(--tx-message-close-button-size);margin-block:calc((var(--tx-message-close-button-size) - 1lh) / -2);padding:0;border:none;border-radius:var(--tx-message-close-button-border-radius);background:transparent;color:var(--tx-message-close-button-color);font-size:var(--tx-message-close-button-font-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-message__close:hover{background:var(--tx-message-close-button-hover-background);color:var(--tx-message-close-button-hover-color)}:host([data-styled]) .tx-message__close:focus-visible{outline:var(--tx-message-close-button-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-message-close-button-focus-ring-offset);box-shadow:var(--tx-message-close-button-focus-ring-shadow)}:host([data-styled][data-variant=outlined]){background:transparent;box-shadow:inset 0 0 0 var(--tx-message-outlined-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color))}:host([data-styled][data-variant=text]),:host([data-styled][data-variant=simple]){background:transparent;box-shadow:none;color:var(--_text)}:host([data-styled][data-variant=text]):before,:host([data-styled][data-variant=simple]):before{display:none}:host([data-styled][data-variant=text]) .tx-message__icon,:host([data-styled][data-variant=simple]) .tx-message__icon{width:auto;height:1lh;background:transparent;color:inherit}:host([data-styled][data-variant=simple]){padding:0}:host([data-styled].tx-message--closing){animation:tx-message-out var(--tx-message-transition-duration) ease-in forwards}@keyframes tx-message-in{0%{opacity:0;transform:translateY(-2px)}}@keyframes tx-message-out{to{opacity:0;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled].tx-message--closing){animation-duration:1ms}}\n"],
322
+ template: "@if (hasIcon()) {\n <span\n class=\"tx-message__icon\"\n aria-hidden=\"true\"\n [class.tx-message__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n",
323
+ styles: [":host{display:block}:host([data-styled]){--_tone: var(--tx-message-info-tone);--_text: var(--tx-message-info-text);--_gap: var(--tx-message-gap);--_padding-y: var(--tx-message-padding-y);--_padding-start: var(--tx-message-padding-start);--_padding-end: var(--tx-message-padding-end);--_font-size: var(--tx-message-font-size);--_icon-size: var(--tx-message-icon-size);--_icon-font-size: var(--tx-message-icon-font-size);position:relative;display:flex;align-items:flex-start;gap:var(--_gap);box-sizing:border-box;overflow:hidden;padding:var(--_padding-y) var(--_padding-end) var(--_padding-y) var(--_padding-start);border-radius:var(--tx-message-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-message-background-tint),var(--tx-message-background));box-shadow:inset 0 0 0 var(--tx-message-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color));color:var(--tx-message-color);font-family:var(--tx-font-family);font-size:var(--_font-size);font-weight:var(--tx-message-font-weight);line-height:var(--tx-message-line-height);animation:tx-message-in var(--tx-message-transition-duration) ease}:host([data-styled]):before{position:absolute;inset-block:0;inset-inline-start:0;width:var(--tx-message-accent-width);background:var(--_tone);content:\"\"}:host([data-styled][data-severity=primary]){--_tone: var(--tx-message-primary-tone);--_text: var(--tx-message-primary-text)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-message-secondary-tone);--_text: var(--tx-message-secondary-text)}:host([data-styled][data-severity=success]){--_tone: var(--tx-message-success-tone);--_text: var(--tx-message-success-text)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-message-warn-tone);--_text: var(--tx-message-warn-text)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-message-danger-tone);--_text: var(--tx-message-danger-text)}:host([data-styled][data-severity=help]){--_tone: var(--tx-message-help-tone);--_text: var(--tx-message-help-text)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-message-contrast-tone);--_text: var(--tx-message-contrast-text)}:host([data-styled][data-size=small]){--_gap: var(--tx-message-sm-gap);--_padding-y: var(--tx-message-sm-padding-y);--_padding-start: var(--tx-message-sm-padding-start);--_padding-end: var(--tx-message-sm-padding-end);--_font-size: var(--tx-message-sm-font-size);--_icon-size: var(--tx-message-sm-icon-size);--_icon-font-size: var(--tx-message-sm-icon-font-size)}:host([data-styled][data-size=large]){--_gap: var(--tx-message-lg-gap);--_padding-y: var(--tx-message-lg-padding-y);--_padding-start: var(--tx-message-lg-padding-start);--_padding-end: var(--tx-message-lg-padding-end);--_font-size: var(--tx-message-lg-font-size);--_icon-size: var(--tx-message-lg-icon-size);--_icon-font-size: var(--tx-message-lg-icon-font-size)}:host([data-styled]) .tx-message__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:50%;background:color-mix(in srgb,var(--_tone) var(--tx-message-icon-tint),transparent);color:var(--_tone);font-size:var(--_icon-font-size)}:host([data-styled]) .tx-message__icon--spin tx-icon{animation:tx-message-spin var(--tx-message-icon-spin-duration) linear infinite}@keyframes tx-message-spin{to{transform:rotate(360deg)}}:host([data-styled]) .tx-message__content{flex:1;min-width:0;align-self:center;overflow-wrap:anywhere}:host([data-styled]) .tx-message__actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;align-self:center;gap:var(--tx-message-actions-gap)}:host([data-styled]) .tx-message__close{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:var(--tx-message-close-button-size);height:var(--tx-message-close-button-size);margin-block:calc((var(--tx-message-close-button-size) - 1lh) / -2);padding:0;border:none;border-radius:var(--tx-message-close-button-border-radius);background:transparent;color:var(--tx-message-close-button-color);font-size:var(--tx-message-close-button-font-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-message__close:hover{background:var(--tx-message-close-button-hover-background);color:var(--tx-message-close-button-hover-color)}:host([data-styled]) .tx-message__close:focus-visible{outline:var(--tx-message-close-button-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-message-close-button-focus-ring-offset);box-shadow:var(--tx-message-close-button-focus-ring-shadow)}:host([data-styled][data-variant=outlined]){background:transparent;box-shadow:inset 0 0 0 var(--tx-message-outlined-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color))}:host([data-styled][data-variant=text]),:host([data-styled][data-variant=simple]){background:transparent;box-shadow:none;color:var(--_text)}:host([data-styled][data-variant=text]):before,:host([data-styled][data-variant=simple]):before{display:none}:host([data-styled][data-variant=text]) .tx-message__icon,:host([data-styled][data-variant=simple]) .tx-message__icon{width:auto;height:1lh;background:transparent;color:inherit}:host([data-styled][data-variant=simple]){padding:0}:host([data-styled].tx-message--closing){animation:tx-message-out var(--tx-message-transition-duration) ease-in forwards}@keyframes tx-message-in{0%{opacity:0;transform:translateY(-2px)}}@keyframes tx-message-out{to{opacity:0;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled].tx-message--closing){animation-duration:1ms}:host([data-styled]) .tx-message__icon--spin tx-icon{animation-duration:calc(var(--tx-message-icon-spin-duration) * 3)}}\n"],
318
324
  dependencies: [{
319
325
  kind: "directive",
320
326
  type: NgTemplateOutlet,
@@ -358,8 +364,8 @@ i0.ɵɵngDeclareClassMetadata({
358
364
  "(animationend)": "onAnimationEnd($event)"
359
365
  },
360
366
  viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],
361
- template: "@if (hasIcon()) {\n <span class=\"tx-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n",
362
- styles: [":host{display:block}:host([data-styled]){--_tone: var(--tx-message-info-tone);--_text: var(--tx-message-info-text);--_gap: var(--tx-message-gap);--_padding-y: var(--tx-message-padding-y);--_padding-start: var(--tx-message-padding-start);--_padding-end: var(--tx-message-padding-end);--_font-size: var(--tx-message-font-size);--_icon-size: var(--tx-message-icon-size);--_icon-font-size: var(--tx-message-icon-font-size);position:relative;display:flex;align-items:flex-start;gap:var(--_gap);box-sizing:border-box;overflow:hidden;padding:var(--_padding-y) var(--_padding-end) var(--_padding-y) var(--_padding-start);border-radius:var(--tx-message-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-message-background-tint),var(--tx-message-background));box-shadow:inset 0 0 0 var(--tx-message-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color));color:var(--tx-message-color);font-family:var(--tx-font-family);font-size:var(--_font-size);font-weight:var(--tx-message-font-weight);line-height:var(--tx-message-line-height);animation:tx-message-in var(--tx-message-transition-duration) ease}:host([data-styled]):before{position:absolute;inset-block:0;inset-inline-start:0;width:var(--tx-message-accent-width);background:var(--_tone);content:\"\"}:host([data-styled][data-severity=primary]){--_tone: var(--tx-message-primary-tone);--_text: var(--tx-message-primary-text)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-message-secondary-tone);--_text: var(--tx-message-secondary-text)}:host([data-styled][data-severity=success]){--_tone: var(--tx-message-success-tone);--_text: var(--tx-message-success-text)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-message-warn-tone);--_text: var(--tx-message-warn-text)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-message-danger-tone);--_text: var(--tx-message-danger-text)}:host([data-styled][data-severity=help]){--_tone: var(--tx-message-help-tone);--_text: var(--tx-message-help-text)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-message-contrast-tone);--_text: var(--tx-message-contrast-text)}:host([data-styled][data-size=small]){--_gap: var(--tx-message-sm-gap);--_padding-y: var(--tx-message-sm-padding-y);--_padding-start: var(--tx-message-sm-padding-start);--_padding-end: var(--tx-message-sm-padding-end);--_font-size: var(--tx-message-sm-font-size);--_icon-size: var(--tx-message-sm-icon-size);--_icon-font-size: var(--tx-message-sm-icon-font-size)}:host([data-styled][data-size=large]){--_gap: var(--tx-message-lg-gap);--_padding-y: var(--tx-message-lg-padding-y);--_padding-start: var(--tx-message-lg-padding-start);--_padding-end: var(--tx-message-lg-padding-end);--_font-size: var(--tx-message-lg-font-size);--_icon-size: var(--tx-message-lg-icon-size);--_icon-font-size: var(--tx-message-lg-icon-font-size)}:host([data-styled]) .tx-message__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:50%;background:color-mix(in srgb,var(--_tone) var(--tx-message-icon-tint),transparent);color:var(--_tone);font-size:var(--_icon-font-size)}:host([data-styled]) .tx-message__content{flex:1;min-width:0;align-self:center;overflow-wrap:anywhere}:host([data-styled]) .tx-message__actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;align-self:center;gap:var(--tx-message-actions-gap)}:host([data-styled]) .tx-message__close{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:var(--tx-message-close-button-size);height:var(--tx-message-close-button-size);margin-block:calc((var(--tx-message-close-button-size) - 1lh) / -2);padding:0;border:none;border-radius:var(--tx-message-close-button-border-radius);background:transparent;color:var(--tx-message-close-button-color);font-size:var(--tx-message-close-button-font-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-message__close:hover{background:var(--tx-message-close-button-hover-background);color:var(--tx-message-close-button-hover-color)}:host([data-styled]) .tx-message__close:focus-visible{outline:var(--tx-message-close-button-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-message-close-button-focus-ring-offset);box-shadow:var(--tx-message-close-button-focus-ring-shadow)}:host([data-styled][data-variant=outlined]){background:transparent;box-shadow:inset 0 0 0 var(--tx-message-outlined-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color))}:host([data-styled][data-variant=text]),:host([data-styled][data-variant=simple]){background:transparent;box-shadow:none;color:var(--_text)}:host([data-styled][data-variant=text]):before,:host([data-styled][data-variant=simple]):before{display:none}:host([data-styled][data-variant=text]) .tx-message__icon,:host([data-styled][data-variant=simple]) .tx-message__icon{width:auto;height:1lh;background:transparent;color:inherit}:host([data-styled][data-variant=simple]){padding:0}:host([data-styled].tx-message--closing){animation:tx-message-out var(--tx-message-transition-duration) ease-in forwards}@keyframes tx-message-in{0%{opacity:0;transform:translateY(-2px)}}@keyframes tx-message-out{to{opacity:0;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled].tx-message--closing){animation-duration:1ms}}\n"]
367
+ template: "@if (hasIcon()) {\n <span\n class=\"tx-message__icon\"\n aria-hidden=\"true\"\n [class.tx-message__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n",
368
+ styles: [":host{display:block}:host([data-styled]){--_tone: var(--tx-message-info-tone);--_text: var(--tx-message-info-text);--_gap: var(--tx-message-gap);--_padding-y: var(--tx-message-padding-y);--_padding-start: var(--tx-message-padding-start);--_padding-end: var(--tx-message-padding-end);--_font-size: var(--tx-message-font-size);--_icon-size: var(--tx-message-icon-size);--_icon-font-size: var(--tx-message-icon-font-size);position:relative;display:flex;align-items:flex-start;gap:var(--_gap);box-sizing:border-box;overflow:hidden;padding:var(--_padding-y) var(--_padding-end) var(--_padding-y) var(--_padding-start);border-radius:var(--tx-message-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-message-background-tint),var(--tx-message-background));box-shadow:inset 0 0 0 var(--tx-message-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color));color:var(--tx-message-color);font-family:var(--tx-font-family);font-size:var(--_font-size);font-weight:var(--tx-message-font-weight);line-height:var(--tx-message-line-height);animation:tx-message-in var(--tx-message-transition-duration) ease}:host([data-styled]):before{position:absolute;inset-block:0;inset-inline-start:0;width:var(--tx-message-accent-width);background:var(--_tone);content:\"\"}:host([data-styled][data-severity=primary]){--_tone: var(--tx-message-primary-tone);--_text: var(--tx-message-primary-text)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-message-secondary-tone);--_text: var(--tx-message-secondary-text)}:host([data-styled][data-severity=success]){--_tone: var(--tx-message-success-tone);--_text: var(--tx-message-success-text)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-message-warn-tone);--_text: var(--tx-message-warn-text)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-message-danger-tone);--_text: var(--tx-message-danger-text)}:host([data-styled][data-severity=help]){--_tone: var(--tx-message-help-tone);--_text: var(--tx-message-help-text)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-message-contrast-tone);--_text: var(--tx-message-contrast-text)}:host([data-styled][data-size=small]){--_gap: var(--tx-message-sm-gap);--_padding-y: var(--tx-message-sm-padding-y);--_padding-start: var(--tx-message-sm-padding-start);--_padding-end: var(--tx-message-sm-padding-end);--_font-size: var(--tx-message-sm-font-size);--_icon-size: var(--tx-message-sm-icon-size);--_icon-font-size: var(--tx-message-sm-icon-font-size)}:host([data-styled][data-size=large]){--_gap: var(--tx-message-lg-gap);--_padding-y: var(--tx-message-lg-padding-y);--_padding-start: var(--tx-message-lg-padding-start);--_padding-end: var(--tx-message-lg-padding-end);--_font-size: var(--tx-message-lg-font-size);--_icon-size: var(--tx-message-lg-icon-size);--_icon-font-size: var(--tx-message-lg-icon-font-size)}:host([data-styled]) .tx-message__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon-size);height:var(--_icon-size);border-radius:50%;background:color-mix(in srgb,var(--_tone) var(--tx-message-icon-tint),transparent);color:var(--_tone);font-size:var(--_icon-font-size)}:host([data-styled]) .tx-message__icon--spin tx-icon{animation:tx-message-spin var(--tx-message-icon-spin-duration) linear infinite}@keyframes tx-message-spin{to{transform:rotate(360deg)}}:host([data-styled]) .tx-message__content{flex:1;min-width:0;align-self:center;overflow-wrap:anywhere}:host([data-styled]) .tx-message__actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;align-self:center;gap:var(--tx-message-actions-gap)}:host([data-styled]) .tx-message__close{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:var(--tx-message-close-button-size);height:var(--tx-message-close-button-size);margin-block:calc((var(--tx-message-close-button-size) - 1lh) / -2);padding:0;border:none;border-radius:var(--tx-message-close-button-border-radius);background:transparent;color:var(--tx-message-close-button-color);font-size:var(--tx-message-close-button-font-size);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-message__close:hover{background:var(--tx-message-close-button-hover-background);color:var(--tx-message-close-button-hover-color)}:host([data-styled]) .tx-message__close:focus-visible{outline:var(--tx-message-close-button-focus-ring-width) solid var(--tx-focus-ring-color);outline-offset:var(--tx-message-close-button-focus-ring-offset);box-shadow:var(--tx-message-close-button-focus-ring-shadow)}:host([data-styled][data-variant=outlined]){background:transparent;box-shadow:inset 0 0 0 var(--tx-message-outlined-border-width) color-mix(in srgb,var(--_tone) var(--tx-message-border-tint),var(--tx-message-border-color))}:host([data-styled][data-variant=text]),:host([data-styled][data-variant=simple]){background:transparent;box-shadow:none;color:var(--_text)}:host([data-styled][data-variant=text]):before,:host([data-styled][data-variant=simple]):before{display:none}:host([data-styled][data-variant=text]) .tx-message__icon,:host([data-styled][data-variant=simple]) .tx-message__icon{width:auto;height:1lh;background:transparent;color:inherit}:host([data-styled][data-variant=simple]){padding:0}:host([data-styled].tx-message--closing){animation:tx-message-out var(--tx-message-transition-duration) ease-in forwards}@keyframes tx-message-in{0%{opacity:0;transform:translateY(-2px)}}@keyframes tx-message-out{to{opacity:0;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled].tx-message--closing){animation-duration:1ms}:host([data-styled]) .tx-message__icon--spin tx-icon{animation-duration:calc(var(--tx-message-icon-spin-duration) * 3)}}\n"]
363
369
  }]
364
370
  }],
365
371
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-message.mjs","names":[],"sources":["../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.icons.ts","../../../../packages/ui/message/src/message.theme.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/message.component.html","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts","../../../../packages/ui/message/src/field-error.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txMessageIcon]' })\nexport class TxMessageIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txMessageCloseIcon]' })\nexport class TxMessageCloseIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: '[txMessageActions]' })\nexport class TxMessageActions {}\n","import { TxIconSet, txIconCheckCircle, txIconExclamationCircle, txIconInfo, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const MESSAGE_ICON_DEFAULTS: TxIconSet = {\n 'check-circle': txIconCheckCircle,\n 'exclamation-circle': txIconExclamationCircle,\n info: txIconInfo,\n text: txIconText,\n times: txIconTimes,\n};\n","import { fieldMessageTokens, messageTokens } from '@tectra-ng/themes';\n\nexport const MESSAGE_THEME = {\n fieldMessage: fieldMessageTokens,\n message: messageTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, contentChild, effect, input, output, signal } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxMessageActions, TxMessageCloseIconTemplate, TxMessageIconTemplate } from './message-templates.directive';\nimport { TxMessagePart, TxMessageSeverity, TxMessageSize, TxMessageVariant } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\n@Component({\n selector: 'tx-message',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './message.component.html',\n styleUrl: './message.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-message',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant() ?? null',\n '[attr.role]': 'role()',\n '[class.tx-message--closing]': 'isClosing()',\n '(animationend)': 'onAnimationEnd($event)',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxMessage {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly severity = input<TxMessageSeverity>('info');\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly size = input<TxMessageSize>('medium');\n readonly variant = input<TxMessageVariant | undefined>(undefined);\n readonly closable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly closeIcon = input<TxIconName | (string & {})>('times');\n readonly life = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxMessagePart, TxMessage> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly closed = output<void>();\n\n readonly iconTemplate = contentChild(TxMessageIconTemplate);\n readonly closeIconTemplate = contentChild(TxMessageCloseIconTemplate);\n readonly actions = contentChild(TxMessageActions);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('message', this, this.pt, this.ptOptions);\n\n readonly isClosing = signal(false);\n readonly isClosed = signal(false);\n\n readonly role = computed(() => (this.severity() === 'danger' || this.severity() === 'warn' ? 'alert' : 'status'));\n readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n readonly iconName = computed(() => this.registered(this.icon()));\n readonly closeIconName = computed(() => this.registered(this.closeIcon()));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-message'),\n ...this.passThrough().root?.style,\n ...(this.isClosed() ? { display: 'none' } : {}),\n }));\n\n constructor() {\n effect((onCleanup) => {\n const life = this.life();\n if (life && life > 0) {\n const timer = setTimeout(() => this.close(), life);\n onCleanup(() => clearTimeout(timer));\n }\n });\n }\n\n close(): void {\n if (this.isClosing() || this.isClosed()) {\n return;\n }\n if (this.isUnstyled()) {\n this.finishClose();\n return;\n }\n this.isClosing.set(true);\n }\n\n onAnimationEnd(event: AnimationEvent): void {\n if (this.isClosing() && event.animationName.includes('tx-message-out')) {\n this.finishClose();\n }\n }\n\n private finishClose(): void {\n this.isClosing.set(false);\n this.isClosed.set(true);\n this.closed.emit();\n }\n\n private registered(icon: string | undefined): string | null {\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n }\n}\n","@if (hasIcon()) {\n <span class=\"tx-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldHintSeverity, TxFieldMessagePart } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\n@Component({\n selector: 'tx-field-hint',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\"><ng-content /></span>\n `,\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-hint',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxFieldHint {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private txIconRegistry = injectTxIcons();\n private generatedId = uniqueId('tx-field-hint');\n\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly severity = input<TxFieldHintSeverity>('secondary');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldHint> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldHint', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TECTRA_CONFIG, TxPassThrough, TxPassThroughOptions, TxTranslations, TxValidationMessages } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldMessagePart } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\nconst BUILT_IN_MESSAGES: Record<string, keyof TxTranslations> = {\n required: 'validationRequired',\n email: 'validationEmail',\n minlength: 'validationMinlength',\n maxlength: 'validationMaxlength',\n min: 'validationMin',\n max: 'validationMax',\n pattern: 'validationPattern',\n invalidCodeFormat: 'validationCodeFormat',\n invalidDate: 'validationDate',\n pastDate: 'validationPastDate',\n invalidUrl: 'validationUrl',\n weakPassword: 'validationWeakPassword',\n mismatch: 'validationMismatch',\n passwordMismatch: 'validationPasswordMismatch',\n distinctControls: 'validationDistinct',\n invalidIp: 'validationIp',\n invalidDomain: 'validationDomain',\n duplicate: 'validationDuplicate',\n invalidTime: 'validationTime',\n invalidJson: 'validationJson',\n valueMismatch: 'validationValueMismatch',\n sumExceeded: 'validationSumExceeded',\n priceFormat: 'validationPriceFormat',\n pricePositive: 'validationPricePositive',\n};\n\nconst FALLBACK_KEY = '*';\n\n@Component({\n selector: 'tx-field-error',\n imports: [TxIcon],\n templateUrl: './field-error.component.html',\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-error',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-state]': 'state()',\n 'aria-live': 'polite',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxFieldError {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private generatedId = uniqueId('tx-field-error');\n private globalMessages = inject(TECTRA_CONFIG, { optional: true })?.validationMessages;\n private translations = injectTranslations();\n private readonly version = signal(0);\n\n readonly control = input<AbstractControl | undefined>(undefined);\n readonly errorText = input<string | undefined>(undefined);\n readonly showImmediately = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly successText = input<string | undefined>(undefined);\n readonly messages = input<TxValidationMessages | undefined>(undefined);\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldError> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldError', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n readonly errorKey = computed(() => {\n this.version();\n return Object.keys(this.control()?.errors ?? {})[0] ?? null;\n });\n readonly shownError = computed(() => {\n this.version();\n const external = this.errorText();\n if (external) {\n return external;\n }\n const control = this.control();\n const key = this.errorKey();\n if (!control || !key || !(this.showImmediately() || control.touched || control.dirty)) {\n return null;\n }\n return this.describe(key, control.errors?.[key]);\n });\n readonly successShown = computed(() => {\n this.version();\n const control = this.control();\n return (\n !!control &&\n !!this.successText() &&\n !this.shownError() &&\n control.valid &&\n hasValue(control.value) &&\n (this.showImmediately() || control.touched || control.dirty)\n );\n });\n readonly state = computed(() => (this.shownError() ? 'error' : this.successShown() ? 'success' : null));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n effect((onCleanup) => {\n const subscription = this.control()?.events.subscribe(() => this.version.update((value) => value + 1));\n onCleanup(() => subscription?.unsubscribe());\n });\n }\n\n private describe(key: string, error: unknown): string {\n const custom = this.messages()?.[key] ?? this.globalMessages?.[key];\n if (custom) {\n return interpolate(typeof custom === 'function' ? custom(error) : custom, error);\n }\n if (isObject(error) && typeof error['message'] === 'string') {\n return error['message'];\n }\n const builtIn = BUILT_IN_MESSAGES[key];\n const fallback = builtIn ? undefined : (this.messages()?.[FALLBACK_KEY] ?? this.globalMessages?.[FALLBACK_KEY]);\n if (fallback) {\n return interpolate(typeof fallback === 'function' ? fallback(error) : fallback, error);\n }\n return interpolate(this.translations()[builtIn ?? 'validationInvalid'], error);\n }\n}\n\nfunction isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nfunction interpolate(template: string, error: unknown): string {\n const params = isObject(error) ? error : {};\n return template.replace(/\\{(\\w+)\\}/g, (match, name: string) => (params[name] === undefined ? match : String(params[name])));\n}\n\nfunction hasValue(value: unknown): boolean {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return value !== null && value !== undefined && String(value).trim() !== '';\n}\n","@if (shownError(); as text) {\n <div class=\"tx-field-message__row\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'exclamation-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text }}</span>\n </span>\n </div>\n} @else if (successShown()) {\n <div class=\"tx-field-message__row tx-field-message__row--success\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'check-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ successText() }}</span>\n </span>\n </div>\n}\n"],"mappings":";;;;;;;;;AAGA,IAAa,wBAAb,MAAa,sBAAqB;CACvB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAqB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAArB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAqB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAArB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EADjC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,6BAA4B,CAAE;;;AAMrD,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA0B,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAA1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA0B,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-message.mjs","names":[],"sources":["../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.icons.ts","../../../../packages/ui/message/src/message.theme.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/message.component.html","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts","../../../../packages/ui/message/src/field-error.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txMessageIcon]' })\nexport class TxMessageIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txMessageCloseIcon]' })\nexport class TxMessageCloseIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: '[txMessageActions]' })\nexport class TxMessageActions {}\n","import { TxIconSet, txIconCheckCircle, txIconExclamationCircle, txIconInfo, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const MESSAGE_ICON_DEFAULTS: TxIconSet = {\n 'check-circle': txIconCheckCircle,\n 'exclamation-circle': txIconExclamationCircle,\n info: txIconInfo,\n text: txIconText,\n times: txIconTimes,\n};\n","import { fieldMessageTokens, messageTokens } from '@tectra-ng/themes';\n\nexport const MESSAGE_THEME = {\n fieldMessage: fieldMessageTokens,\n message: messageTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, contentChild, effect, input, output, signal } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, splitIconValue, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxMessageActions, TxMessageCloseIconTemplate, TxMessageIconTemplate } from './message-templates.directive';\nimport { TxMessagePart, TxMessageSeverity, TxMessageSize, TxMessageVariant } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\n@Component({\n selector: 'tx-message',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './message.component.html',\n styleUrl: './message.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-message',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant() ?? null',\n '[attr.role]': 'role()',\n '[class.tx-message--closing]': 'isClosing()',\n '(animationend)': 'onAnimationEnd($event)',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxMessage {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly severity = input<TxMessageSeverity>('info');\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly size = input<TxMessageSize>('medium');\n readonly variant = input<TxMessageVariant | undefined>(undefined);\n readonly closable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly closeIcon = input<TxIconName | (string & {})>('times');\n readonly life = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxMessagePart, TxMessage> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly closed = output<void>();\n\n readonly iconTemplate = contentChild(TxMessageIconTemplate);\n readonly closeIconTemplate = contentChild(TxMessageCloseIconTemplate);\n readonly actions = contentChild(TxMessageActions);\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('message', this, this.pt, this.ptOptions);\n\n readonly isClosing = signal(false);\n readonly isClosed = signal(false);\n\n readonly role = computed(() => (this.severity() === 'danger' || this.severity() === 'warn' ? 'alert' : 'status'));\n readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n private readonly iconParts = computed(() => {\n const parts = splitIconValue(this.icon());\n return parts && this.txIconRegistry.has(parts.name) ? parts : null;\n });\n readonly iconName = computed(() => this.iconParts()?.name ?? null);\n readonly iconModifiers = computed(() => this.iconParts()?.modifiers.join(' ') ?? '');\n readonly iconSpin = computed(() => this.iconParts()?.spin ?? false);\n readonly closeIconName = computed(() => this.registered(this.closeIcon()));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-message'),\n ...this.passThrough().root?.style,\n ...(this.isClosed() ? { display: 'none' } : {}),\n }));\n\n constructor() {\n effect((onCleanup) => {\n const life = this.life();\n if (life && life > 0) {\n const timer = setTimeout(() => this.close(), life);\n onCleanup(() => clearTimeout(timer));\n }\n });\n }\n\n close(): void {\n if (this.isClosing() || this.isClosed()) {\n return;\n }\n if (this.isUnstyled()) {\n this.finishClose();\n return;\n }\n this.isClosing.set(true);\n }\n\n onAnimationEnd(event: AnimationEvent): void {\n if (this.isClosing() && event.animationName.includes('tx-message-out')) {\n this.finishClose();\n }\n }\n\n private finishClose(): void {\n this.isClosing.set(false);\n this.isClosed.set(true);\n this.closed.emit();\n }\n\n private registered(icon: string | undefined): string | null {\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n }\n}\n","@if (hasIcon()) {\n <span\n class=\"tx-message__icon\"\n aria-hidden=\"true\"\n [class.tx-message__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n}\n<div class=\"tx-message__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (text()) {\n {{ text() }}\n }\n <ng-content />\n</div>\n@if (actions()) {\n <div class=\"tx-message__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txMessageActions]\" />\n </div>\n}\n@if (closable()) {\n <button\n type=\"button\"\n class=\"tx-message__close\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"close()\"\n >\n @if (closeIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (closeIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"closeIcon()\" aria-hidden=\"true\"></span>\n }\n </button>\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldHintSeverity, TxFieldMessagePart } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\n@Component({\n selector: 'tx-field-hint',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\"><ng-content /></span>\n `,\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-hint',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxFieldHint {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private txIconRegistry = injectTxIcons();\n private generatedId = uniqueId('tx-field-hint');\n\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly severity = input<TxFieldHintSeverity>('secondary');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldHint> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldHint', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { injectDescribedBy, uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TECTRA_CONFIG, TxPassThrough, TxPassThroughOptions, TxTranslations, TxValidationMessages } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFieldMessageTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxFieldMessagePart } from './message.types';\nimport { MESSAGE_ICON_DEFAULTS } from './message.icons';\nimport { MESSAGE_THEME } from './message.theme';\n\nconst BUILT_IN_MESSAGES: Record<string, keyof TxTranslations> = {\n required: 'validationRequired',\n email: 'validationEmail',\n minlength: 'validationMinlength',\n maxlength: 'validationMaxlength',\n min: 'validationMin',\n max: 'validationMax',\n pattern: 'validationPattern',\n invalidCodeFormat: 'validationCodeFormat',\n invalidDate: 'validationDate',\n pastDate: 'validationPastDate',\n invalidUrl: 'validationUrl',\n weakPassword: 'validationWeakPassword',\n mismatch: 'validationMismatch',\n passwordMismatch: 'validationPasswordMismatch',\n distinctControls: 'validationDistinct',\n invalidIp: 'validationIp',\n invalidDomain: 'validationDomain',\n duplicate: 'validationDuplicate',\n invalidTime: 'validationTime',\n invalidJson: 'validationJson',\n valueMismatch: 'validationValueMismatch',\n sumExceeded: 'validationSumExceeded',\n priceFormat: 'validationPriceFormat',\n pricePositive: 'validationPricePositive',\n};\n\nconst FALLBACK_KEY = '*';\n\n@Component({\n selector: 'tx-field-error',\n imports: [TxIcon],\n templateUrl: './field-error.component.html',\n styleUrl: './field-message.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-field-message tx-field-error',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[id]': 'resolvedId()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-state]': 'state()',\n 'aria-live': 'polite',\n },\n viewProviders: [provideTxIconDefaults(MESSAGE_ICON_DEFAULTS)],\n})\nexport class TxFieldError {\n private readonly messageTheme = injectTokens(MESSAGE_THEME);\n\n private generatedId = uniqueId('tx-field-error');\n private globalMessages = inject(TECTRA_CONFIG, { optional: true })?.validationMessages;\n private translations = injectTranslations();\n private readonly version = signal(0);\n\n readonly control = input<AbstractControl | undefined>(undefined);\n readonly errorText = input<string | undefined>(undefined);\n readonly showImmediately = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly successText = input<string | undefined>(undefined);\n readonly messages = input<TxValidationMessages | undefined>(undefined);\n readonly for = input<string | undefined>(undefined);\n readonly id = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFieldMessageTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFieldMessagePart, TxFieldError> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('fieldError', this, this.pt, this.ptOptions);\n readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-field-message'), ...this.passThrough().root?.style }));\n\n readonly errorKey = computed(() => {\n this.version();\n return Object.keys(this.control()?.errors ?? {})[0] ?? null;\n });\n readonly shownError = computed(() => {\n this.version();\n const external = this.errorText();\n if (external) {\n return external;\n }\n const control = this.control();\n const key = this.errorKey();\n if (!control || !key || !(this.showImmediately() || control.touched || control.dirty)) {\n return null;\n }\n return this.describe(key, control.errors?.[key]);\n });\n readonly successShown = computed(() => {\n this.version();\n const control = this.control();\n return (\n !!control &&\n !!this.successText() &&\n !this.shownError() &&\n control.valid &&\n hasValue(control.value) &&\n (this.showImmediately() || control.touched || control.dirty)\n );\n });\n readonly state = computed(() => (this.shownError() ? 'error' : this.successShown() ? 'success' : null));\n\n constructor() {\n injectDescribedBy(this.for, this.resolvedId);\n effect((onCleanup) => {\n const subscription = this.control()?.events.subscribe(() => this.version.update((value) => value + 1));\n onCleanup(() => subscription?.unsubscribe());\n });\n }\n\n private describe(key: string, error: unknown): string {\n const custom = this.messages()?.[key] ?? this.globalMessages?.[key];\n if (custom) {\n return interpolate(typeof custom === 'function' ? custom(error) : custom, error);\n }\n if (isObject(error) && typeof error['message'] === 'string') {\n return error['message'];\n }\n const builtIn = BUILT_IN_MESSAGES[key];\n const fallback = builtIn ? undefined : (this.messages()?.[FALLBACK_KEY] ?? this.globalMessages?.[FALLBACK_KEY]);\n if (fallback) {\n return interpolate(typeof fallback === 'function' ? fallback(error) : fallback, error);\n }\n return interpolate(this.translations()[builtIn ?? 'validationInvalid'], error);\n }\n}\n\nfunction isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nfunction interpolate(template: string, error: unknown): string {\n const params = isObject(error) ? error : {};\n return template.replace(/\\{(\\w+)\\}/g, (match, name: string) => (params[name] === undefined ? match : String(params[name])));\n}\n\nfunction hasValue(value: unknown): boolean {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return value !== null && value !== undefined && String(value).trim() !== '';\n}\n","@if (shownError(); as text) {\n <div class=\"tx-field-message__row\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'exclamation-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text }}</span>\n </span>\n </div>\n} @else if (successShown()) {\n <div class=\"tx-field-message__row tx-field-message__row--success\" animate.enter=\"tx-field-message--enter\" animate.leave=\"tx-field-message--leave\">\n <span class=\"tx-field-message__inner\">\n <span class=\"tx-field-message__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"'check-circle'\" />\n </span>\n <span class=\"tx-field-message__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ successText() }}</span>\n </span>\n </div>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AU,QAAQ,UAAU,UAAa,OAAO,KAAK,CAAC,CAAC,KAAI,MAAO;AAC3E"}
@@ -3,14 +3,13 @@ import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input,
3
3
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
4
4
  import { injectTranslations } from "@tectra-ng/core/i18n";
5
5
  import { optionalBoolean } from "@tectra-ng/core/utils";
6
- import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconInfo, txIconTimes } from "@tectra-ng/icons";
6
+ import { TxIcon, injectTxIcons, provideTxIconDefaults, splitIconValue, txIconInfo, txIconTimes } from "@tectra-ng/icons";
7
7
  import { pillTokens, toStyleObject } from "@tectra-ng/themes";
8
8
  const PILL_ICON_DEFAULTS = {
9
9
  info: txIconInfo,
10
10
  times: txIconTimes
11
11
  };
12
12
  const PILL_THEME = { pill: pillTokens };
13
- const SPIN_MODIFIERS = /* @__PURE__ */ new Set(["spin", "pi-spin"]);
14
13
  var TxPill = class TxPill {
15
14
  pillTheme = injectTokens(PILL_THEME);
16
15
  txIconRegistry = injectTxIcons();
@@ -42,15 +41,12 @@ var TxPill = class TxPill {
42
41
  resolvedTone = computed(() => this.tone() === "secondary" ? "neutral" : this.tone(), ...ngDevMode ? [{ debugName: "resolvedTone" }] : /* istanbul ignore next */ []);
43
42
  resolvedSize = computed(() => this.size() === "normal" ? "medium" : this.size(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
44
43
  iconParts = computed(() => {
45
- const [name, ...modifiers] = (this.icon() ?? "").trim().split(/\s+/);
46
- return this.txIconRegistry.has(name) ? {
47
- name,
48
- modifiers
49
- } : null;
44
+ const parts = splitIconValue(this.icon());
45
+ return parts && this.txIconRegistry.has(parts.name) ? parts : null;
50
46
  }, ...ngDevMode ? [{ debugName: "iconParts" }] : /* istanbul ignore next */ []);
51
47
  iconName = computed(() => this.iconParts()?.name ?? null, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
52
48
  iconModifiers = computed(() => this.iconParts()?.modifiers.join(" ") ?? "", ...ngDevMode ? [{ debugName: "iconModifiers" }] : /* istanbul ignore next */ []);
53
- iconSpin = computed(() => this.iconParts()?.modifiers.some((modifier) => SPIN_MODIFIERS.has(modifier)) ?? false, ...ngDevMode ? [{ debugName: "iconSpin" }] : /* istanbul ignore next */ []);
49
+ iconSpin = computed(() => this.iconParts()?.spin ?? false, ...ngDevMode ? [{ debugName: "iconSpin" }] : /* istanbul ignore next */ []);
54
50
  removeText = computed(() => this.removeLabel() || this.translations().remove, ...ngDevMode ? [{ debugName: "removeText" }] : /* istanbul ignore next */ []);
55
51
  hostStyle = computed(() => ({
56
52
  ...toStyleObject(this.dt(), "--tx-pill"),
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\nconst SPIN_MODIFIERS = new Set(['spin', 'pi-spin']);\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span\n class=\"tx-pill__icon\"\n aria-hidden=\"true\"\n [class.tx-pill__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span class=\"tx-pill__leading\" [class]=\"passThrough().leading?.class\" [style]=\"passThrough().leading?.style\"><ng-content select=\"[txPillLeading]\" /></span>\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeText()\"\n [title]=\"removeText()\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedTone = computed(() => (this.tone() === 'secondary' ? 'neutral' : this.tone()));\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n private readonly iconParts = computed(() => {\n const [name, ...modifiers] = (this.icon() ?? '').trim().split(/\\s+/);\n return this.txIconRegistry.has(name) ? { name, modifiers } : null;\n });\n readonly iconName = computed(() => this.iconParts()?.name ?? null);\n readonly iconModifiers = computed(() => this.iconParts()?.modifiers.join(' ') ?? '');\n readonly iconSpin = computed(() => this.iconParts()?.modifiers.some((modifier) => SPIN_MODIFIERS.has(modifier)) ?? false);\n readonly removeText = computed(() => this.removeLabel() || this.translations().remove);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;ACMD,MAAM,iCAAiB,IAAI,IAAI,CAAC,QAAQ,SAAS,CAAC;AAsDlD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAA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A,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,SAAA,UAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,kBAAA;IAAA,qBAAA;IAAA,kBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UAjDP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCT,UAAA;EAAA,QAAA,CAAA,8vIAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MApCS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,eAgDD,CAAC,sBAAsB,kBAAkB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAE/C,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAM,YAAA,CAAA;EApDlB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAS,SACV,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,kBAAkB,CAAC;GAAC,QAAA,CAAA,8vIAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, splitIconValue, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span\n class=\"tx-pill__icon\"\n aria-hidden=\"true\"\n [class.tx-pill__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span class=\"tx-pill__leading\" [class]=\"passThrough().leading?.class\" [style]=\"passThrough().leading?.style\"><ng-content select=\"[txPillLeading]\" /></span>\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeText()\"\n [title]=\"removeText()\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedTone = computed(() => (this.tone() === 'secondary' ? 'neutral' : this.tone()));\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n private readonly iconParts = computed(() => {\n const parts = splitIconValue(this.icon());\n return parts && this.txIconRegistry.has(parts.name) ? parts : null;\n });\n readonly iconName = computed(() => this.iconParts()?.name ?? null);\n readonly iconModifiers = computed(() => this.iconParts()?.modifiers.join(' ') ?? '');\n readonly iconSpin = computed(() => this.iconParts()?.spin ?? false);\n readonly removeText = computed(() => this.removeLabel() || this.translations().remove);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;AC0DD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,MAAM,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAClE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAuD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACtE,KAAK,MAAqD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACpE,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAA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HANGED
@@ -17,7 +17,7 @@ Error texts: `messages` on the field, then `provideTectra({ validationMessages }
17
17
  |---|---|
18
18
  | severity | `tx-message`: `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help`, `contrast`. `tx-field-hint`: `secondary` or `success` |
19
19
  | text | `tx-message`: the text; the projected content follows it |
20
- | icon | Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default |
20
+ | icon | Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default. Words after a tectra icon name are classes on the icon: `spinner spin` (or `pi-spin`) rotates it (`icon.spinDuration` token, slower with reduced motion) |
21
21
  | size | `tx-message`: `small`, `medium`, `large` |
22
22
  | variant | `tx-message`: tinted box by default, `outlined` without the fill, `text` without the box, `simple` without the box and padding |
23
23
  | closable | `tx-message`: shows a close button |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/ui",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Angular UI components on signals: table, datepicker, select, multiselect, dialog, drawer, toast, tooltip, tree and 80+ more. Standalone, OnPush, zoneless, accessible and themable, one entry point per component.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -60,9 +60,9 @@
60
60
  "@angular/forms": "^22.2.0",
61
61
  "@angular/router": "^22.2.0",
62
62
  "rxjs": "^7.8.0",
63
- "@tectra-ng/core": "^0.4.5",
64
- "@tectra-ng/icons": "^0.4.5",
65
- "@tectra-ng/themes": "^0.4.5"
63
+ "@tectra-ng/core": "^0.4.6",
64
+ "@tectra-ng/icons": "^0.4.6",
65
+ "@tectra-ng/themes": "^0.4.6"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@angular/router": {
@@ -95,6 +95,8 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
95
95
  readonly variant: import("@angular/core").InputSignal<TxChipsInputVariant>;
96
96
  /** Red border and `aria-invalid`; follows the form control by default */
97
97
  readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
98
+ /** Disables the field (also from the form control), so `[(value)]` works without forms */
99
+ readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
98
100
  /** Shows the chips, cannot change them */
99
101
  readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
100
102
  /** Design tokens of this instance (`chipsInput`) */
@@ -123,6 +125,7 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
123
125
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxChipsInputPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
124
126
  readonly values: import("@angular/core").Signal<string[]>;
125
127
  readonly isFull: import("@angular/core").Signal<boolean>;
128
+ readonly isDisabled: import("@angular/core").Signal<boolean>;
126
129
  readonly canClear: import("@angular/core").Signal<boolean>;
127
130
  readonly hostStyle: import("@angular/core").Signal<{
128
131
  [x: string]: string;
@@ -238,6 +241,11 @@ export declare class TxChipsInput extends TxFormControlBase<string[]> {
238
241
  "required": false;
239
242
  "isSignal": true;
240
243
  };
244
+ "disabledInput": {
245
+ "alias": "disabled";
246
+ "required": false;
247
+ "isSignal": true;
248
+ };
241
249
  "readonly": {
242
250
  "alias": "readonly";
243
251
  "required": false;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;YAIU;;YAGA;;YAGA,0BAA0B;;iBAGrB,kCAAkC;;EAEjD,QAAQ;;;iBAIO;;EAEf;;EAEA,UAAU;;EAEV;;;;;;qBCzCW;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAA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AAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-chips-input.d.ts","names":[],"sources":["../../../../packages/ui/chips-input/src/chips-input.types.ts","../../../../packages/ui/chips-input/src/chips-input-item.directive.ts","../../../../packages/ui/chips-input/src/chips-input.component.ts"],"mappings":";;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;;YAIU;;YAGA;;YAGA,0BAA0B;;iBAGrB,kCAAkC;;EAEjD,QAAQ;;;iBAIO;;EAEf;;EAEA,UAAU;;EAEV;;;;;;qBCzCW;WACF,aAAW,YAAA;SAEb,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBC4DA,qBAAqB;mBACf;;WAEC,+BAAK;;WACd,qCAAW;;WACX,mCAAS,qBAAA;;WACT,mCAAS;;WACT,wCAAc;;WACd,uCAAa;;WACb,6BAAG;;WACH,mCAAS;;WACT,uCAAa,YAAA;;WACb,mCAAS,YAAA;;WACT,qCAAW,YAAA;;WACX,mCAAS;;WACT,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,iCAAO;;WAEP,uCAAa;;WACb,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mD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IAAA"}
@@ -53,7 +53,7 @@ export declare class TxMessage {
53
53
  readonly severity: import("@angular/core").InputSignal<TxMessageSeverity>;
54
54
  /** the text; the projected content follows it */
55
55
  readonly text: import("@angular/core").InputSignal<string | undefined>;
56
- /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
56
+ /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default. Words after a tectra icon name are classes on the icon: `spinner spin` (or `pi-spin`) rotates it (`icon.spinDuration` token, slower with reduced motion) */
57
57
  readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
58
58
  /** `small`, `medium`, `large` */
59
59
  readonly size: import("@angular/core").InputSignal<TxMessageSize>;
@@ -85,7 +85,10 @@ export declare class TxMessage {
85
85
  readonly isClosed: import("@angular/core").WritableSignal<boolean>;
86
86
  readonly role: import("@angular/core").Signal<"alert" | "status">;
87
87
  readonly hasIcon: import("@angular/core").Signal<boolean>;
88
+ private readonly iconParts;
88
89
  readonly iconName: import("@angular/core").Signal<string | null>;
90
+ readonly iconModifiers: import("@angular/core").Signal<string>;
91
+ readonly iconSpin: import("@angular/core").Signal<boolean>;
89
92
  readonly closeIconName: import("@angular/core").Signal<string | null>;
90
93
  readonly hostStyle: import("@angular/core").Signal<{
91
94
  display?: string | undefined;
@@ -174,7 +177,7 @@ export declare class TxFieldHint {
174
177
  /** `tx-field-hint`, `tx-field-error`: own id instead of a generated one */
175
178
  readonly id: import("@angular/core").InputSignal<string | undefined>;
176
179
  readonly severity: import("@angular/core").InputSignal<TxFieldHintSeverity>;
177
- /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
180
+ /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default. Words after a tectra icon name are classes on the icon: `spinner spin` (or `pi-spin`) rotates it (`icon.spinDuration` token, slower with reduced motion) */
178
181
  readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
179
182
  /** Design tokens of this instance (`message` or `fieldMessage`) */
180
183
  readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldMessageTokens> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;;YACY;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;;;;qBCRC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCmBA;mBACM;UAET;;WAEC,kCAAQ,YAAA;;WACR,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,kCAAQ;;WACR,mCAAS,YAAA;;WACT,8BAAI;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,gCAAM;WAEN,sCAAY,OAAA;WACZ,2CAAiB,OAAA;WACjB,iCAAO,OAAA;WAEP,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WAEX,mCAAS;WACT,kCAAQ;WAER,8BAAI;WACJ,iCAAO;WACP,kCAAQ;WACR,uCAAa;WACb,mCAAS;;;;EAgBlB;EAWA,eAAe,OAAO;UAMd;UAMA;SA1EG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA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,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;;YACY;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;;;;qBCRC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCmBA;mBACM;UAET;;WAEC,kCAAQ,YAAA;;WACR,8BAAI;;WACJ,8BAAI,YAAA;;WACJ,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,kCAAQ;;WACR,mCAAS,YAAA;;WACT,8BAAI;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,gCAAM;WAEN,sCAAY,OAAA;WACZ,2CAAiB,OAAA;WACjB,iCAAO,OAAA;WAEP,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;WAEX,mCAAS;WACT,kCAAQ;WAER,8BAAI;WACJ,iCAAO;mBACC;WAIR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BAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,oCAAU;WACV,mCAAS;;;WAET,kCAAQ;WAIR,oCAAU;WAaV,sCAAY;WAYZ,+BAAK;;UAUN;SAhEG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-pill.d.ts","names":[],"sources":["../../../../packages/ui/pill/src/pill.types.ts","../../../../packages/ui/pill/src/pill.component.ts"],"mappings":";;;;;;;;YAIY;;YAEA;;YAEA;;YAEA;;;;;qBCsDC;mBACM;UAET;;WAEC,+BAAK;;WACL,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,8BAAI,YAAA;;WACJ,8BAAI,YAAA;;WACJ,6BAAG;;WACH,mCAAS;;WACT,qCAAW;;WACX,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,6CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;WAEP,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,6CAAA;WACX,sCAAY,OAAA;WACZ,sCAAY,OAAA;mBACJ;WAIR,kCAAQ;WACR,uCAAa;WACb,kCAAQ;WACR,oCAAU;WACV,mCAAS;;;EAElB,OAAO,OAAO;SAnCH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAM;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-pill.d.ts","names":[],"sources":["../../../../packages/ui/pill/src/pill.types.ts","../../../../packages/ui/pill/src/pill.component.ts"],"mappings":";;;;;;;;YAIY;;YAEA;;YAEA;;YAEA;;;;;qBCoDC;mBACM;UAET;;WAEC,+BAAK;;WACL,8BAAI,YAAA;;WACJ,iCAAO,YAAA;;WACP,8BAAI,YAAA;;WACJ,8BAAI,YAAA;;WACJ,6BAAG;;WACH,mCAAS;;WACT,qCAAW;;WACX,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,6CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;WAEP,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,6CAAA;WACX,sCAAY,OAAA;WACZ,sCAAY,OAAA;mBACJ;WAIR,kCAAQ;WACR,uCAAa;WACb,kCAAQ;WACR,oCAAU;WACV,mCAAS;;;EAElB,OAAO,OAAO;SAnCH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAM;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
@@ -1,3 +1,3 @@
1
1
  /** Version of the installed `@tectra-ng/ui` package, written in when the package is built. */
2
- export declare const TECTRA_UI_VERSION = "0.4.5";
2
+ export declare const TECTRA_UI_VERSION = "0.4.6";
3
3
  //# sourceMappingURL=tectra-ng-ui.d.ts.map