@tectra-ng/ui 0.4.1 → 0.4.2

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.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/README.md +1 -1
  3. package/avatar/README.md +1 -1
  4. package/breadcrumb/README.md +1 -1
  5. package/carousel/README.md +7 -0
  6. package/color-swatches/README.md +53 -0
  7. package/data-view/README.md +8 -0
  8. package/fesm2022/tectra-ng-ui-autocomplete.mjs +17 -6
  9. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-avatar.mjs +11 -4
  11. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +5 -5
  13. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-card.mjs +4 -2
  15. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-carousel.mjs +21 -2
  17. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  19. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-checkbox.mjs +7 -4
  21. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-chips-input.mjs +5 -2
  23. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  25. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-color-swatches.mjs +378 -0
  27. package/fesm2022/tectra-ng-ui-color-swatches.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-ui-country-select.mjs +4 -2
  29. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-data-view.mjs +50 -7
  31. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-datepicker.mjs +12 -0
  33. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-dialog.mjs +7 -2
  35. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-export.mjs +5 -1
  37. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-file-upload.mjs +44 -30
  39. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-galleria.mjs +63 -6
  41. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-image.mjs +6 -2
  43. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-knob.mjs +3 -0
  47. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-list-input.mjs +2 -2
  49. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-menu.mjs +110 -10
  51. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-message.mjs +61 -18
  53. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-multiselect.mjs +14 -6
  55. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-paginator.mjs +8 -2
  57. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-panel-menu.mjs +15 -8
  59. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  60. package/fesm2022/tectra-ng-ui-panel.mjs +2 -0
  61. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
  62. package/fesm2022/tectra-ng-ui-password.mjs +9 -0
  63. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
  64. package/fesm2022/tectra-ng-ui-popover.mjs +16 -9
  65. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -1
  66. package/fesm2022/tectra-ng-ui-progress-bar.mjs +3 -0
  67. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -1
  68. package/fesm2022/tectra-ng-ui-radio-button.mjs +28 -8
  69. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-rating.mjs +6 -0
  71. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
  72. package/fesm2022/tectra-ng-ui-select.mjs +193 -10
  73. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  74. package/fesm2022/tectra-ng-ui-split-button.mjs +6 -3
  75. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
  76. package/fesm2022/tectra-ng-ui-table.mjs +245 -49
  77. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  78. package/fesm2022/tectra-ng-ui-tabs.mjs +10 -7
  79. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  80. package/fesm2022/tectra-ng-ui-timeline.mjs +87 -10
  81. package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -1
  82. package/fesm2022/tectra-ng-ui-toast.mjs +24 -7
  83. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  84. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +7 -4
  85. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  86. package/fesm2022/tectra-ng-ui-tooltip.mjs +5 -4
  87. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  88. package/fesm2022/tectra-ng-ui-tree-select.mjs +14 -6
  89. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  90. package/fesm2022/tectra-ng-ui-tree-table.mjs +3 -1
  91. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  92. package/fesm2022/tectra-ng-ui-tree.mjs +47 -14
  93. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  94. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +45 -4
  95. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  96. package/fesm2022/tectra-ng-ui.mjs +1 -1
  97. package/file-upload/README.md +2 -1
  98. package/galleria/README.md +9 -0
  99. package/menu/README.md +10 -2
  100. package/message/README.md +4 -3
  101. package/multiselect/README.md +1 -1
  102. package/package.json +8 -4
  103. package/popover/README.md +2 -2
  104. package/select/README.md +9 -0
  105. package/split-button/README.md +1 -1
  106. package/table/README.md +15 -2
  107. package/tabs/README.md +1 -1
  108. package/timeline/README.md +10 -2
  109. package/tree/README.md +7 -0
  110. package/tree-select/README.md +1 -1
  111. package/types/tectra-ng-ui-autocomplete.d.ts +2 -1
  112. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-avatar.d.ts +4 -2
  114. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-breadcrumb.d.ts +3 -3
  116. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  117. package/types/tectra-ng-ui-carousel.d.ts +14 -5
  118. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-checkbox.d.ts +1 -0
  120. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-chips-input.d.ts +1 -0
  122. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-color-swatches.d.ts +141 -0
  124. package/types/tectra-ng-ui-color-swatches.d.ts.map +1 -0
  125. package/types/tectra-ng-ui-data-view.d.ts +31 -12
  126. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  127. package/types/tectra-ng-ui-datepicker.d.ts +6 -0
  128. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  129. package/types/tectra-ng-ui-dialog.d.ts +1 -0
  130. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-file-upload.d.ts +10 -7
  132. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-galleria.d.ts +42 -15
  134. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  135. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  136. package/types/tectra-ng-ui-knob.d.ts +1 -0
  137. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  138. package/types/tectra-ng-ui-menu.d.ts +35 -12
  139. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  140. package/types/tectra-ng-ui-message.d.ts +15 -6
  141. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  142. package/types/tectra-ng-ui-multiselect.d.ts +2 -2
  143. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  144. package/types/tectra-ng-ui-paginator.d.ts +2 -0
  145. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  146. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  147. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  148. package/types/tectra-ng-ui-password.d.ts +3 -0
  149. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  150. package/types/tectra-ng-ui-popover.d.ts +4 -2
  151. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  152. package/types/tectra-ng-ui-progress-bar.d.ts +1 -0
  153. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  154. package/types/tectra-ng-ui-radio-button.d.ts +3 -1
  155. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  156. package/types/tectra-ng-ui-rating.d.ts +2 -0
  157. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  158. package/types/tectra-ng-ui-select.d.ts +85 -20
  159. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  160. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  161. package/types/tectra-ng-ui-table.d.ts +121 -46
  162. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-tabs.d.ts +6 -4
  164. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-timeline.d.ts +46 -9
  166. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-toast.d.ts +3 -0
  168. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-toggle-switch.d.ts +1 -0
  170. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  171. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  172. package/types/tectra-ng-ui-tree-select.d.ts +1 -1
  173. package/types/tectra-ng-ui-tree.d.ts +18 -7
  174. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-virtual-scroller.d.ts +29 -10
  176. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  177. package/types/tectra-ng-ui.d.ts +1 -1
  178. package/virtual-scroller/README.md +8 -0
@@ -13,6 +13,9 @@ import { injectTranslations } from "@tectra-ng/core/i18n";
13
13
  const TX_CHECKBOX_GROUP = new InjectionToken("TX_CHECKBOX_GROUP");
14
14
  var TxCheckboxIconTemplate = class TxCheckboxIconTemplate {
15
15
  templateRef = inject(TemplateRef);
16
+ static ngTemplateContextGuard(_directive, context) {
17
+ return !!context;
18
+ }
16
19
  static ɵfac = i0.ɵɵngDeclareFactory({
17
20
  minVersion: "12.0.0",
18
21
  version: "22.2.5",
@@ -416,8 +419,8 @@ var TxCheckbox = class TxCheckbox extends TxFormControlBase {
416
419
  }],
417
420
  usesInheritance: true,
418
421
  ngImport: i0,
419
- template: "<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n",
420
- styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-checkbox-size);--_icon-size: var(--tx-checkbox-icon-size);--_label-font-size: var(--tx-checkbox-label-font-size);gap:var(--tx-checkbox-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-checkbox-sm-size);--_icon-size: var(--tx-checkbox-sm-icon-size);--_label-font-size: var(--tx-checkbox-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-checkbox-lg-size);--_icon-size: var(--tx-checkbox-lg-icon-size);--_label-font-size: var(--tx-checkbox-lg-label-font-size)}.tx-checkbox__box{position:relative;display:inline-flex;flex-shrink:0}.tx-checkbox__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-checkbox__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-checkbox__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-checkbox__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-checkbox-border-width) solid var(--tx-checkbox-border-color);border-radius:var(--tx-checkbox-border-radius);background:var(--tx-checkbox-background);color:var(--tx-checkbox-icon-color);font-size:var(--_icon-size);transition:background-color var(--tx-checkbox-transition-duration),border-color var(--tx-checkbox-transition-duration)}:host([data-styled]) .tx-checkbox__indicator tx-icon{--tx-icon-stroke-width: 3}:host([data-styled][data-variant=filled]) .tx-checkbox__indicator{background:var(--tx-checkbox-filled-background)}:host([data-styled]:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-hover-border-color)}:host([data-styled].tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-border-color);background:var(--tx-checkbox-checked-background)}:host([data-styled].tx-checkbox--checked:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-hover-border-color);background:var(--tx-checkbox-checked-hover-background)}:host([data-styled].tx-checkbox--invalid) .tx-checkbox__indicator{border-color:var(--tx-checkbox-invalid-border-color)}:host([data-styled]) .tx-checkbox__input:focus-visible+.tx-checkbox__indicator{outline:var(--tx-checkbox-focus-ring-width) solid var(--tx-checkbox-focus-ring-color);outline-offset:var(--tx-checkbox-focus-ring-offset)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-border-color);background:var(--tx-checkbox-disabled-background)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__label{color:var(--tx-checkbox-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-checkbox--disabled.tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--disabled.tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-checked-background);background:var(--tx-checkbox-disabled-checked-background);color:var(--tx-checkbox-disabled-icon-color)}:host(.tx-checkbox--readonly) .tx-checkbox__input,:host(.tx-checkbox--readonly) .tx-checkbox__label{cursor:default}.tx-checkbox__text{display:flex;flex-direction:column;min-width:0}.tx-checkbox__label:empty{display:none}:host([data-styled]) .tx-checkbox__label{color:var(--tx-checkbox-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-checkbox-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-checkbox__description{color:var(--tx-checkbox-description-color);font-size:var(--tx-checkbox-description-font-size);line-height:1.45}:host([data-styled].tx-checkbox--tile){box-sizing:border-box;gap:var(--tx-checkbox-tile-gap);padding:var(--tx-checkbox-tile-padding);border:1px solid var(--tx-checkbox-tile-border-color);border-radius:var(--tx-checkbox-tile-border-radius);background:var(--tx-checkbox-tile-background);cursor:pointer;transition:border-color var(--tx-checkbox-transition-duration),background-color var(--tx-checkbox-transition-duration)}:host([data-styled].tx-checkbox--tile) .tx-checkbox__label{font-weight:var(--tx-checkbox-tile-label-font-weight)}:host([data-styled].tx-checkbox--tile:not(.tx-checkbox--disabled):hover){border-color:var(--tx-checkbox-tile-hover-border-color)}:host([data-styled].tx-checkbox--tile.tx-checkbox--checked){border-color:var(--tx-checkbox-tile-checked-border-color);background:var(--tx-checkbox-tile-checked-background)}:host([data-styled].tx-checkbox--tile.tx-checkbox--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--tile){transition:none}}\n"],
422
+ template: "<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >@if (label()) {{{ label() }}}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n",
423
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-checkbox-size);--_icon-size: var(--tx-checkbox-icon-size);--_label-font-size: var(--tx-checkbox-label-font-size);gap:var(--tx-checkbox-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-checkbox-sm-size);--_icon-size: var(--tx-checkbox-sm-icon-size);--_label-font-size: var(--tx-checkbox-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-checkbox-lg-size);--_icon-size: var(--tx-checkbox-lg-icon-size);--_label-font-size: var(--tx-checkbox-lg-label-font-size)}.tx-checkbox__box{position:relative;display:inline-flex;flex-shrink:0}.tx-checkbox__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-checkbox__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-checkbox__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-checkbox__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-checkbox-border-width) solid var(--tx-checkbox-border-color);border-radius:var(--tx-checkbox-border-radius);background:var(--tx-checkbox-background);color:var(--tx-checkbox-icon-color);font-size:var(--_icon-size);transition:background-color var(--tx-checkbox-transition-duration),border-color var(--tx-checkbox-transition-duration)}:host([data-styled]) .tx-checkbox__indicator tx-icon{--tx-icon-stroke-width: 3}:host([data-styled][data-variant=filled]) .tx-checkbox__indicator{background:var(--tx-checkbox-filled-background)}:host([data-styled]:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-hover-border-color)}:host([data-styled].tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-border-color);background:var(--tx-checkbox-checked-background)}:host([data-styled].tx-checkbox--checked:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-hover-border-color);background:var(--tx-checkbox-checked-hover-background)}:host([data-styled].tx-checkbox--invalid) .tx-checkbox__indicator{border-color:var(--tx-checkbox-invalid-border-color)}:host([data-styled]) .tx-checkbox__input:focus-visible+.tx-checkbox__indicator{outline:var(--tx-checkbox-focus-ring-width) solid var(--tx-checkbox-focus-ring-color);outline-offset:var(--tx-checkbox-focus-ring-offset)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-border-color);background:var(--tx-checkbox-disabled-background)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__label{color:var(--tx-checkbox-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-checkbox--disabled.tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--disabled.tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-checked-background);background:var(--tx-checkbox-disabled-checked-background);color:var(--tx-checkbox-disabled-icon-color)}:host(.tx-checkbox--readonly) .tx-checkbox__input,:host(.tx-checkbox--readonly) .tx-checkbox__label{cursor:default}.tx-checkbox__text{display:flex;flex-direction:column;min-width:0}.tx-checkbox__label:empty{display:none}.tx-checkbox__text:has(>.tx-checkbox__label:empty):not(:has(>.tx-checkbox__description)){display:none}:host([data-styled]) .tx-checkbox__label{color:var(--tx-checkbox-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-checkbox-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-checkbox__description{color:var(--tx-checkbox-description-color);font-size:var(--tx-checkbox-description-font-size);line-height:1.45}:host([data-styled].tx-checkbox--tile){box-sizing:border-box;gap:var(--tx-checkbox-tile-gap);padding:var(--tx-checkbox-tile-padding);border:1px solid var(--tx-checkbox-tile-border-color);border-radius:var(--tx-checkbox-tile-border-radius);background:var(--tx-checkbox-tile-background);cursor:pointer;transition:border-color var(--tx-checkbox-transition-duration),background-color var(--tx-checkbox-transition-duration)}:host([data-styled].tx-checkbox--tile) .tx-checkbox__label{font-weight:var(--tx-checkbox-tile-label-font-weight)}:host([data-styled].tx-checkbox--tile:not(.tx-checkbox--disabled):hover){border-color:var(--tx-checkbox-tile-hover-border-color)}:host([data-styled].tx-checkbox--tile.tx-checkbox--checked){border-color:var(--tx-checkbox-tile-checked-border-color);background:var(--tx-checkbox-tile-checked-background)}:host([data-styled].tx-checkbox--tile.tx-checkbox--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--tile){transition:none}}\n"],
421
424
  dependencies: [{
422
425
  kind: "directive",
423
426
  type: NgTemplateOutlet,
@@ -469,8 +472,8 @@ i0.ɵɵngDeclareClassMetadata({
469
472
  "(click)": "onHostClick($event)"
470
473
  },
471
474
  viewProviders: [provideTxIconDefaults(CHECKBOX_ICON_DEFAULTS)],
472
- template: "<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n",
473
- styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-checkbox-size);--_icon-size: var(--tx-checkbox-icon-size);--_label-font-size: var(--tx-checkbox-label-font-size);gap:var(--tx-checkbox-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-checkbox-sm-size);--_icon-size: var(--tx-checkbox-sm-icon-size);--_label-font-size: var(--tx-checkbox-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-checkbox-lg-size);--_icon-size: var(--tx-checkbox-lg-icon-size);--_label-font-size: var(--tx-checkbox-lg-label-font-size)}.tx-checkbox__box{position:relative;display:inline-flex;flex-shrink:0}.tx-checkbox__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-checkbox__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-checkbox__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-checkbox__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-checkbox-border-width) solid var(--tx-checkbox-border-color);border-radius:var(--tx-checkbox-border-radius);background:var(--tx-checkbox-background);color:var(--tx-checkbox-icon-color);font-size:var(--_icon-size);transition:background-color var(--tx-checkbox-transition-duration),border-color var(--tx-checkbox-transition-duration)}:host([data-styled]) .tx-checkbox__indicator tx-icon{--tx-icon-stroke-width: 3}:host([data-styled][data-variant=filled]) .tx-checkbox__indicator{background:var(--tx-checkbox-filled-background)}:host([data-styled]:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-hover-border-color)}:host([data-styled].tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-border-color);background:var(--tx-checkbox-checked-background)}:host([data-styled].tx-checkbox--checked:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-hover-border-color);background:var(--tx-checkbox-checked-hover-background)}:host([data-styled].tx-checkbox--invalid) .tx-checkbox__indicator{border-color:var(--tx-checkbox-invalid-border-color)}:host([data-styled]) .tx-checkbox__input:focus-visible+.tx-checkbox__indicator{outline:var(--tx-checkbox-focus-ring-width) solid var(--tx-checkbox-focus-ring-color);outline-offset:var(--tx-checkbox-focus-ring-offset)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-border-color);background:var(--tx-checkbox-disabled-background)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__label{color:var(--tx-checkbox-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-checkbox--disabled.tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--disabled.tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-checked-background);background:var(--tx-checkbox-disabled-checked-background);color:var(--tx-checkbox-disabled-icon-color)}:host(.tx-checkbox--readonly) .tx-checkbox__input,:host(.tx-checkbox--readonly) .tx-checkbox__label{cursor:default}.tx-checkbox__text{display:flex;flex-direction:column;min-width:0}.tx-checkbox__label:empty{display:none}:host([data-styled]) .tx-checkbox__label{color:var(--tx-checkbox-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-checkbox-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-checkbox__description{color:var(--tx-checkbox-description-color);font-size:var(--tx-checkbox-description-font-size);line-height:1.45}:host([data-styled].tx-checkbox--tile){box-sizing:border-box;gap:var(--tx-checkbox-tile-gap);padding:var(--tx-checkbox-tile-padding);border:1px solid var(--tx-checkbox-tile-border-color);border-radius:var(--tx-checkbox-tile-border-radius);background:var(--tx-checkbox-tile-background);cursor:pointer;transition:border-color var(--tx-checkbox-transition-duration),background-color var(--tx-checkbox-transition-duration)}:host([data-styled].tx-checkbox--tile) .tx-checkbox__label{font-weight:var(--tx-checkbox-tile-label-font-weight)}:host([data-styled].tx-checkbox--tile:not(.tx-checkbox--disabled):hover){border-color:var(--tx-checkbox-tile-hover-border-color)}:host([data-styled].tx-checkbox--tile.tx-checkbox--checked){border-color:var(--tx-checkbox-tile-checked-border-color);background:var(--tx-checkbox-tile-checked-background)}:host([data-styled].tx-checkbox--tile.tx-checkbox--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--tile){transition:none}}\n"]
475
+ template: "<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >@if (label()) {{{ label() }}}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n",
476
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-styled]){--_size: var(--tx-checkbox-size);--_icon-size: var(--tx-checkbox-icon-size);--_label-font-size: var(--tx-checkbox-label-font-size);gap:var(--tx-checkbox-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_size: var(--tx-checkbox-sm-size);--_icon-size: var(--tx-checkbox-sm-icon-size);--_label-font-size: var(--tx-checkbox-sm-label-font-size)}:host([data-styled][data-size=large]){--_size: var(--tx-checkbox-lg-size);--_icon-size: var(--tx-checkbox-lg-icon-size);--_label-font-size: var(--tx-checkbox-lg-label-font-size)}.tx-checkbox__box{position:relative;display:inline-flex;flex-shrink:0}.tx-checkbox__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-checkbox__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-checkbox__box{margin-top:calc((var(--_label-font-size) * 1.5 - var(--_size)) / 2)}:host([data-styled]) .tx-checkbox__indicator{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--tx-checkbox-border-width) solid var(--tx-checkbox-border-color);border-radius:var(--tx-checkbox-border-radius);background:var(--tx-checkbox-background);color:var(--tx-checkbox-icon-color);font-size:var(--_icon-size);transition:background-color var(--tx-checkbox-transition-duration),border-color var(--tx-checkbox-transition-duration)}:host([data-styled]) .tx-checkbox__indicator tx-icon{--tx-icon-stroke-width: 3}:host([data-styled][data-variant=filled]) .tx-checkbox__indicator{background:var(--tx-checkbox-filled-background)}:host([data-styled]:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-hover-border-color)}:host([data-styled].tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-border-color);background:var(--tx-checkbox-checked-background)}:host([data-styled].tx-checkbox--checked:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator,:host([data-styled].tx-checkbox--indeterminate:not(.tx-checkbox--disabled):not(.tx-checkbox--readonly)) .tx-checkbox__input:hover+.tx-checkbox__indicator{border-color:var(--tx-checkbox-checked-hover-border-color);background:var(--tx-checkbox-checked-hover-background)}:host([data-styled].tx-checkbox--invalid) .tx-checkbox__indicator{border-color:var(--tx-checkbox-invalid-border-color)}:host([data-styled]) .tx-checkbox__input:focus-visible+.tx-checkbox__indicator{outline:var(--tx-checkbox-focus-ring-width) solid var(--tx-checkbox-focus-ring-color);outline-offset:var(--tx-checkbox-focus-ring-offset)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-border-color);background:var(--tx-checkbox-disabled-background)}:host([data-styled].tx-checkbox--disabled) .tx-checkbox__label{color:var(--tx-checkbox-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-checkbox--disabled.tx-checkbox--checked) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--disabled.tx-checkbox--indeterminate) .tx-checkbox__indicator{border-color:var(--tx-checkbox-disabled-checked-background);background:var(--tx-checkbox-disabled-checked-background);color:var(--tx-checkbox-disabled-icon-color)}:host(.tx-checkbox--readonly) .tx-checkbox__input,:host(.tx-checkbox--readonly) .tx-checkbox__label{cursor:default}.tx-checkbox__text{display:flex;flex-direction:column;min-width:0}.tx-checkbox__label:empty{display:none}.tx-checkbox__text:has(>.tx-checkbox__label:empty):not(:has(>.tx-checkbox__description)){display:none}:host([data-styled]) .tx-checkbox__label{color:var(--tx-checkbox-label-color);font-size:var(--_label-font-size);font-weight:var(--tx-checkbox-label-font-weight);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-checkbox__description{color:var(--tx-checkbox-description-color);font-size:var(--tx-checkbox-description-font-size);line-height:1.45}:host([data-styled].tx-checkbox--tile){box-sizing:border-box;gap:var(--tx-checkbox-tile-gap);padding:var(--tx-checkbox-tile-padding);border:1px solid var(--tx-checkbox-tile-border-color);border-radius:var(--tx-checkbox-tile-border-radius);background:var(--tx-checkbox-tile-background);cursor:pointer;transition:border-color var(--tx-checkbox-transition-duration),background-color var(--tx-checkbox-transition-duration)}:host([data-styled].tx-checkbox--tile) .tx-checkbox__label{font-weight:var(--tx-checkbox-tile-label-font-weight)}:host([data-styled].tx-checkbox--tile:not(.tx-checkbox--disabled):hover){border-color:var(--tx-checkbox-tile-hover-border-color)}:host([data-styled].tx-checkbox--tile.tx-checkbox--checked){border-color:var(--tx-checkbox-tile-checked-border-color);background:var(--tx-checkbox-tile-checked-background)}:host([data-styled].tx-checkbox--tile.tx-checkbox--disabled){cursor:not-allowed}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-checkbox__indicator,:host([data-styled].tx-checkbox--tile){transition:none}}\n"]
474
477
  }]
475
478
  }],
476
479
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-checkbox.mjs","names":[],"sources":["../../../../packages/ui/checkbox/src/checkbox-group.token.ts","../../../../packages/ui/checkbox/src/checkbox-templates.directive.ts","../../../../packages/ui/checkbox/src/checkbox.icons.ts","../../../../packages/ui/checkbox/src/checkbox.theme.ts","../../../../packages/ui/checkbox/src/checkbox.component.ts","../../../../packages/ui/checkbox/src/checkbox.component.html","../../../../packages/ui/checkbox/src/checkbox-group.component.ts"],"sourcesContent":["import { InjectionToken, Signal } from '@angular/core';\nimport { TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\n\n/** What a checkbox needs from the `tx-checkbox-group` around it. */\nexport interface TxCheckboxGroupContext {\n /** Shared `name` of the checkboxes. */\n readonly name: Signal<string | undefined>;\n /** Whether the whole group is disabled. */\n readonly isDisabled: Signal<boolean>;\n /** Whether the group shows the invalid state. */\n readonly isInvalid: Signal<boolean>;\n /** Size the group gives to its checkboxes. */\n readonly size: Signal<TxCheckboxSize | undefined>;\n /** Look the group gives to its checkboxes. */\n readonly variant: Signal<TxCheckboxVariant | undefined>;\n /** Tells whether the value is among the checked ones. */\n isChecked(value: unknown): boolean;\n /** Adds the value to the checked ones or removes it. */\n toggle(value: unknown, checked: boolean): void;\n /** Tells the group about a checkbox value, for \"select all\"; returns a function that withdraws it. */\n register(value: unknown): () => void;\n /** Marks the group as touched, as a blur does. */\n touch(): void;\n}\n\n/** Lets a checkbox read its `tx-checkbox-group`: the shared name, state and the list of checked values. */\nexport const TX_CHECKBOX_GROUP = new InjectionToken<TxCheckboxGroupContext>('TX_CHECKBOX_GROUP');\n","import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxCheckboxIconContext } from './checkbox.types';\n\n@Directive({ selector: 'ng-template[txCheckboxIcon]' })\nexport class TxCheckboxIconTemplate {\n readonly templateRef = inject<TemplateRef<TxCheckboxIconContext>>(TemplateRef);\n}\n","import { TxIconSet, txIconBox, txIconCheck, txIconMinus } from '@tectra-ng/icons';\n\nexport const CHECKBOX_ICON_DEFAULTS: TxIconSet = {\n box: txIconBox,\n check: txIconCheck,\n minus: txIconMinus,\n};\n","import { checkboxTokens, iconTokens } from '@tectra-ng/themes';\n\nexport const CHECKBOX_THEME = {\n checkbox: checkboxTokens,\n icon: iconTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCheckboxTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CHECKBOX_GROUP } from './checkbox-group.token';\nimport { TxCheckboxIconTemplate } from './checkbox-templates.directive';\nimport { TxCheckboxChangeEvent, TxCheckboxPart, TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\nimport { CHECKBOX_ICON_DEFAULTS } from './checkbox.icons';\nimport { CHECKBOX_THEME } from './checkbox.theme';\n\n@Component({\n selector: 'tx-checkbox',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './checkbox.component.html',\n styleUrl: './checkbox.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCheckbox), multi: true }],\n host: {\n class: 'tx-checkbox',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[class.tx-checkbox--checked]': 'checked()',\n '[class.tx-checkbox--indeterminate]': 'indeterminate() && !checked()',\n '[class.tx-checkbox--disabled]': 'isDisabled()',\n '[class.tx-checkbox--readonly]': 'readonly()',\n '[class.tx-checkbox--invalid]': 'isInvalid()',\n '[class.tx-checkbox--tile]': 'tile()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHECKBOX_ICON_DEFAULTS)],\n})\nexport class TxCheckbox extends TxFormControlBase<unknown> {\n private readonly checkboxTheme = injectTokens(CHECKBOX_THEME);\n\n private txIconRegistry = injectTxIcons();\n private group = inject(TX_CHECKBOX_GROUP, { optional: true });\n private generatedId = uniqueId('tx-checkbox');\n\n readonly label = input<string | undefined>(undefined);\n readonly description = input<string | undefined>(undefined);\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly optionValue = input<unknown>(undefined, { alias: 'value' });\n readonly binary = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly trueValue = input<unknown>(true);\n readonly falseValue = input<unknown>(false);\n readonly indeterminate = model<boolean>(false);\n readonly icon = input<TxIconName | (string & {})>('check');\n readonly indeterminateIcon = input<TxIconName | (string & {})>('minus');\n readonly size = input<TxCheckboxSize | undefined>(undefined);\n readonly variant = input<TxCheckboxVariant | undefined>(undefined);\n readonly tile = input<boolean, unknown>(false, { transform: booleanAttribute });\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 required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraCheckboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCheckboxPart, TxCheckbox> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxCheckboxChangeEvent>();\n\n readonly iconTemplate = contentChild(TxCheckboxIconTemplate);\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('checkbox', this, this.pt, this.ptOptions);\n private ownInvalid = injectFieldInvalid(this.invalid);\n\n readonly inGroup = computed(() => !!this.group && this.optionValue() !== undefined);\n readonly isBinary = computed(() => this.binary() ?? this.optionValue() === undefined);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly descriptionId = `${this.generatedId}-description`;\n readonly resolvedName = computed(() => this.name() ?? this.group?.name());\n readonly resolvedSize = computed(() => this.size() ?? this.group?.size() ?? 'medium');\n readonly resolvedVariant = computed(() => this.variant() ?? this.group?.variant() ?? 'outlined');\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput() || !!this.group?.isDisabled());\n readonly isInvalid = computed(() => this.ownInvalid() || (this.inGroup() && !!this.group?.isInvalid()));\n readonly checked = computed(() => {\n if (this.inGroup()) {\n return !!this.group?.isChecked(this.optionValue());\n }\n const model = this.value();\n if (this.isBinary()) {\n return model === this.trueValue();\n }\n return Array.isArray(model) && model.includes(this.optionValue());\n });\n readonly iconName = computed(() => {\n const icon = this.indeterminate() && !this.checked() ? this.indeterminateIcon() : this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly iconClass = computed(() => (this.indeterminate() && !this.checked() ? this.indeterminateIcon() : this.icon()));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-checkbox'), ...this.passThrough().root?.style }));\n\n constructor() {\n super();\n effect((onCleanup) => {\n const value = this.optionValue();\n if (this.group && value !== undefined) {\n onCleanup(this.group.register(value));\n }\n });\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInputClick(event: MouseEvent): void {\n if (this.readonly()) {\n event.preventDefault();\n }\n }\n\n onInputChange(event: Event): void {\n const next = (event.target as HTMLInputElement).checked;\n this.indeterminate.set(false);\n if (this.inGroup()) {\n this.group?.toggle(this.optionValue(), next);\n this.changed.emit({ checked: next, value: this.optionValue(), originalEvent: event });\n return;\n }\n let model: unknown;\n if (this.isBinary()) {\n model = next ? this.trueValue() : this.falseValue();\n } else {\n const current = Array.isArray(this.value()) ? (this.value() as unknown[]) : [];\n model = next ? [...current.filter((item) => item !== this.optionValue()), this.optionValue()] : current.filter((item) => item !== this.optionValue());\n }\n this.updateValue(model);\n this.changed.emit({ checked: next, value: model, originalEvent: event });\n }\n\n onBlur(): void {\n this.markTouched();\n this.group?.touch();\n }\n\n onHostClick(event: MouseEvent): void {\n if (!this.tile() || this.isDisabled()) {\n return;\n }\n const target = event.target as HTMLElement;\n if (!target.closest('label, input, a, button')) {\n this.inputRef().nativeElement.click();\n }\n }\n}\n","<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { FormsModule, 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 { TectraCheckboxTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CHECKBOX_GROUP, TxCheckboxGroupContext } from './checkbox-group.token';\nimport { TxCheckbox } from './checkbox.component';\nimport { TxCheckboxGroupOrientation, TxCheckboxGroupPart, TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CHECKBOX_ICON_DEFAULTS } from './checkbox.icons';\nimport { CHECKBOX_THEME } from './checkbox.theme';\n\n@Component({\n selector: 'tx-checkbox-group',\n imports: [TxCheckbox, FormsModule],\n template: `\n @if (selectAll()) {\n <tx-checkbox\n class=\"tx-checkbox-group__select-all\"\n [class]=\"passThrough().selectAll?.class\"\n [style]=\"passThrough().selectAll?.style\"\n [label]=\"selectAllLabel() ?? translations().selectAll\"\n [binary]=\"true\"\n [indeterminate]=\"isPartial()\"\n [disabled]=\"isDisabled()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"isAll()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n <div class=\"tx-checkbox-group__items\" [class]=\"passThrough().items?.class\" [style]=\"passThrough().items?.style\">\n <ng-content />\n </div>\n `,\n styles: `\n :host {\n display: block;\n }\n\n :host([data-styled]) .tx-checkbox-group__items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--tx-checkbox-group-gap);\n }\n\n :host([data-styled][data-orientation='horizontal']) .tx-checkbox-group__items {\n flex-direction: row;\n flex-wrap: wrap;\n column-gap: var(--tx-checkbox-group-horizontal-gap);\n }\n\n :host([data-styled]) .tx-checkbox-group__select-all {\n margin-bottom: var(--tx-checkbox-group-select-all-gap);\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCheckboxGroup), multi: true },\n { provide: TX_CHECKBOX_GROUP, useFactory: () => inject(TxCheckboxGroup).context },\n ],\n host: {\n class: 'tx-checkbox-group',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'orientation()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() ?? null',\n '[attr.aria-invalid]': 'isInvalid() || null',\n },\n viewProviders: [provideTxIconDefaults(CHECKBOX_ICON_DEFAULTS)],\n})\nexport class TxCheckboxGroup extends TxFormControlBase<unknown[]> {\n private readonly checkboxTheme = injectTokens(CHECKBOX_THEME);\n\n private readonly registered = signal<unknown[]>([]);\n\n readonly selectAll = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly selectAllLabel = input<string | undefined>(undefined);\n readonly orientation = input<TxCheckboxGroupOrientation>('vertical');\n readonly name = input<string | undefined>(undefined);\n readonly size = input<TxCheckboxSize | undefined>(undefined);\n readonly variant = input<TxCheckboxVariant | undefined>(undefined);\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 ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraCheckboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCheckboxGroupPart, TxCheckboxGroup> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<unknown[]>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('checkboxGroup', this, this.pt, this.ptOptions);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly selected = computed(() => (Array.isArray(this.value()) ? (this.value() as unknown[]) : []));\n readonly isAll = computed(() => this.registered().length > 0 && this.registered().every((item) => this.selected().includes(item)));\n readonly isPartial = computed(() => !this.isAll() && this.registered().some((item) => this.selected().includes(item)));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-checkbox'), ...this.passThrough().root?.style }));\n\n readonly context: TxCheckboxGroupContext = {\n name: this.name,\n isDisabled: this.isDisabled,\n isInvalid: this.isInvalid,\n size: this.size,\n variant: this.variant,\n isChecked: (value) => this.selected().includes(value),\n toggle: (value, checked) => this.toggle(value, checked),\n register: (value) => {\n this.registered.update((items) => [...items, value]);\n return () => this.registered.update((items) => items.filter((item) => item !== value));\n },\n touch: () => this.markTouched(),\n };\n\n toggleAll(checked: boolean): void {\n const order = this.registered();\n const rest = this.selected().filter((item) => !order.includes(item));\n this.commit(checked ? [...rest, ...order] : rest);\n }\n\n private toggle(value: unknown, checked: boolean): void {\n const without = this.selected().filter((item) => item !== value);\n this.commit(checked ? [...without, value] : without);\n }\n\n private commit(next: unknown[]): void {\n this.updateValue(next);\n this.changed.emit(next);\n }\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,oBAAoB,IAAI,eAAuC,mBAAmB;ACtB/F,IAAa,yBAAb,MAAa,uBAAsB;CACxB,cAAc,OAA2C,WAAW;CADlE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAsB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAtB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAsB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAtB,GAAA,yBAAA;CAAA,YAAA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;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,uBAAA,SAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;GAAW;GAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAA,GAAA;IAAA,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,eAAA;IAAA,UAAA,CAAA,SAAA;GAAA;EAAA;EAAA,eA6DlB,CAAC,sBAAsB,sBAAsB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEnD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAjE3B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,SACpB,CAAC,YAAY,WAAW;GAAC,UACxB;;;;;;;;;;;;;;;;;;;;;;GAqBT,iBAuBgB,wBAAwB;GAAM,WACpC,CACT;IAAE,SAAS;IAAmB,aAAa,iBAAgB,eAAgB;IAAG,OAAO;GAAI,GACzF;IAAE,SAAS;IAAmB,kBAAkB,OAAM,eAAA,CAAiB,CAAC;GAAO,CAChF;GAAA,MACK;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,2BAA2B;IAC3B,qBAAqB;IACrB,0BAA0B;IAC1B,uBAAuB;GACxB;GAAA,eACc,CAAC,sBAAsB,sBAAsB,CAAC;GAAC,QAAA,CAAA,ibAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-checkbox.mjs","names":[],"sources":["../../../../packages/ui/checkbox/src/checkbox-group.token.ts","../../../../packages/ui/checkbox/src/checkbox-templates.directive.ts","../../../../packages/ui/checkbox/src/checkbox.icons.ts","../../../../packages/ui/checkbox/src/checkbox.theme.ts","../../../../packages/ui/checkbox/src/checkbox.component.ts","../../../../packages/ui/checkbox/src/checkbox.component.html","../../../../packages/ui/checkbox/src/checkbox-group.component.ts"],"sourcesContent":["import { InjectionToken, Signal } from '@angular/core';\nimport { TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\n\n/** What a checkbox needs from the `tx-checkbox-group` around it. */\nexport interface TxCheckboxGroupContext {\n /** Shared `name` of the checkboxes. */\n readonly name: Signal<string | undefined>;\n /** Whether the whole group is disabled. */\n readonly isDisabled: Signal<boolean>;\n /** Whether the group shows the invalid state. */\n readonly isInvalid: Signal<boolean>;\n /** Size the group gives to its checkboxes. */\n readonly size: Signal<TxCheckboxSize | undefined>;\n /** Look the group gives to its checkboxes. */\n readonly variant: Signal<TxCheckboxVariant | undefined>;\n /** Tells whether the value is among the checked ones. */\n isChecked(value: unknown): boolean;\n /** Adds the value to the checked ones or removes it. */\n toggle(value: unknown, checked: boolean): void;\n /** Tells the group about a checkbox value, for \"select all\"; returns a function that withdraws it. */\n register(value: unknown): () => void;\n /** Marks the group as touched, as a blur does. */\n touch(): void;\n}\n\n/** Lets a checkbox read its `tx-checkbox-group`: the shared name, state and the list of checked values. */\nexport const TX_CHECKBOX_GROUP = new InjectionToken<TxCheckboxGroupContext>('TX_CHECKBOX_GROUP');\n","import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxCheckboxIconContext } from './checkbox.types';\n\n@Directive({ selector: 'ng-template[txCheckboxIcon]' })\nexport class TxCheckboxIconTemplate {\n readonly templateRef = inject<TemplateRef<TxCheckboxIconContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxCheckboxIconTemplate, context: unknown): context is TxCheckboxIconContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconBox, txIconCheck, txIconMinus } from '@tectra-ng/icons';\n\nexport const CHECKBOX_ICON_DEFAULTS: TxIconSet = {\n box: txIconBox,\n check: txIconCheck,\n minus: txIconMinus,\n};\n","import { checkboxTokens, iconTokens } from '@tectra-ng/themes';\n\nexport const CHECKBOX_THEME = {\n checkbox: checkboxTokens,\n icon: iconTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCheckboxTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CHECKBOX_GROUP } from './checkbox-group.token';\nimport { TxCheckboxIconTemplate } from './checkbox-templates.directive';\nimport { TxCheckboxChangeEvent, TxCheckboxPart, TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\nimport { CHECKBOX_ICON_DEFAULTS } from './checkbox.icons';\nimport { CHECKBOX_THEME } from './checkbox.theme';\n\n@Component({\n selector: 'tx-checkbox',\n imports: [NgTemplateOutlet, TxIcon],\n templateUrl: './checkbox.component.html',\n styleUrl: './checkbox.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCheckbox), multi: true }],\n host: {\n class: 'tx-checkbox',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[class.tx-checkbox--checked]': 'checked()',\n '[class.tx-checkbox--indeterminate]': 'indeterminate() && !checked()',\n '[class.tx-checkbox--disabled]': 'isDisabled()',\n '[class.tx-checkbox--readonly]': 'readonly()',\n '[class.tx-checkbox--invalid]': 'isInvalid()',\n '[class.tx-checkbox--tile]': 'tile()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHECKBOX_ICON_DEFAULTS)],\n})\nexport class TxCheckbox extends TxFormControlBase<unknown> {\n private readonly checkboxTheme = injectTokens(CHECKBOX_THEME);\n\n private txIconRegistry = injectTxIcons();\n private group = inject(TX_CHECKBOX_GROUP, { optional: true });\n private generatedId = uniqueId('tx-checkbox');\n\n readonly label = input<string | undefined>(undefined);\n readonly description = input<string | undefined>(undefined);\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly optionValue = input<unknown>(undefined, { alias: 'value' });\n readonly binary = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly trueValue = input<unknown>(true);\n readonly falseValue = input<unknown>(false);\n readonly indeterminate = model<boolean>(false);\n readonly icon = input<TxIconName | (string & {})>('check');\n readonly indeterminateIcon = input<TxIconName | (string & {})>('minus');\n readonly size = input<TxCheckboxSize | undefined>(undefined);\n readonly variant = input<TxCheckboxVariant | undefined>(undefined);\n readonly tile = input<boolean, unknown>(false, { transform: booleanAttribute });\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 required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraCheckboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCheckboxPart, TxCheckbox> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<TxCheckboxChangeEvent>();\n\n readonly iconTemplate = contentChild(TxCheckboxIconTemplate);\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('checkbox', this, this.pt, this.ptOptions);\n private ownInvalid = injectFieldInvalid(this.invalid);\n\n readonly inGroup = computed(() => !!this.group && this.optionValue() !== undefined);\n readonly isBinary = computed(() => this.binary() ?? this.optionValue() === undefined);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly descriptionId = `${this.generatedId}-description`;\n readonly resolvedName = computed(() => this.name() ?? this.group?.name());\n readonly resolvedSize = computed(() => this.size() ?? this.group?.size() ?? 'medium');\n readonly resolvedVariant = computed(() => this.variant() ?? this.group?.variant() ?? 'outlined');\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput() || !!this.group?.isDisabled());\n readonly isInvalid = computed(() => this.ownInvalid() || (this.inGroup() && !!this.group?.isInvalid()));\n readonly checked = computed(() => {\n if (this.inGroup()) {\n return !!this.group?.isChecked(this.optionValue());\n }\n const model = this.value();\n if (this.isBinary()) {\n return model === this.trueValue();\n }\n return Array.isArray(model) && model.includes(this.optionValue());\n });\n readonly iconName = computed(() => {\n const icon = this.indeterminate() && !this.checked() ? this.indeterminateIcon() : this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly iconClass = computed(() => (this.indeterminate() && !this.checked() ? this.indeterminateIcon() : this.icon()));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-checkbox'), ...this.passThrough().root?.style }));\n\n constructor() {\n super();\n effect((onCleanup) => {\n const value = this.optionValue();\n if (this.group && value !== undefined) {\n onCleanup(this.group.register(value));\n }\n });\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInputClick(event: MouseEvent): void {\n if (this.readonly()) {\n event.preventDefault();\n }\n }\n\n onInputChange(event: Event): void {\n const next = (event.target as HTMLInputElement).checked;\n this.indeterminate.set(false);\n if (this.inGroup()) {\n this.group?.toggle(this.optionValue(), next);\n this.changed.emit({ checked: next, value: this.optionValue(), originalEvent: event });\n return;\n }\n let model: unknown;\n if (this.isBinary()) {\n model = next ? this.trueValue() : this.falseValue();\n } else {\n const current = Array.isArray(this.value()) ? (this.value() as unknown[]) : [];\n model = next ? [...current.filter((item) => item !== this.optionValue()), this.optionValue()] : current.filter((item) => item !== this.optionValue());\n }\n this.updateValue(model);\n this.changed.emit({ checked: next, value: model, originalEvent: event });\n }\n\n onBlur(): void {\n this.markTouched();\n this.group?.touch();\n }\n\n onHostClick(event: MouseEvent): void {\n if (!this.tile() || this.isDisabled()) {\n return;\n }\n const target = event.target as HTMLElement;\n if (!target.closest('label, input, a, button')) {\n this.inputRef().nativeElement.click();\n }\n }\n}\n","<span class=\"tx-checkbox__box\" [class]=\"passThrough().box?.class\" [style]=\"passThrough().box?.style\">\n <input\n #input\n type=\"checkbox\"\n class=\"tx-checkbox__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"resolvedName() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-checkbox__indicator\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked(), indeterminate: indeterminate() && !checked() }\" />\n } @else if (checked() || indeterminate()) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"iconClass()\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-checkbox__text\">\n <label class=\"tx-checkbox__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >@if (label()) {{{ label() }}}<ng-content\n /></label>\n @if (description()) {\n <span class=\"tx-checkbox__description\" [id]=\"descriptionId\" [class]=\"passThrough().description?.class\" [style]=\"passThrough().description?.style\">{{\n description()\n }}</span>\n }\n</span>\n","import {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { FormsModule, 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 { TectraCheckboxTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TX_CHECKBOX_GROUP, TxCheckboxGroupContext } from './checkbox-group.token';\nimport { TxCheckbox } from './checkbox.component';\nimport { TxCheckboxGroupOrientation, TxCheckboxGroupPart, TxCheckboxSize, TxCheckboxVariant } from './checkbox.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CHECKBOX_ICON_DEFAULTS } from './checkbox.icons';\nimport { CHECKBOX_THEME } from './checkbox.theme';\n\n@Component({\n selector: 'tx-checkbox-group',\n imports: [TxCheckbox, FormsModule],\n template: `\n @if (selectAll()) {\n <tx-checkbox\n class=\"tx-checkbox-group__select-all\"\n [class]=\"passThrough().selectAll?.class\"\n [style]=\"passThrough().selectAll?.style\"\n [label]=\"selectAllLabel() ?? translations().selectAll\"\n [binary]=\"true\"\n [indeterminate]=\"isPartial()\"\n [disabled]=\"isDisabled()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"isAll()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"toggleAll($event)\"\n />\n }\n <div class=\"tx-checkbox-group__items\" [class]=\"passThrough().items?.class\" [style]=\"passThrough().items?.style\">\n <ng-content />\n </div>\n `,\n styles: `\n :host {\n display: block;\n }\n\n :host([data-styled]) .tx-checkbox-group__items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--tx-checkbox-group-gap);\n }\n\n :host([data-styled][data-orientation='horizontal']) .tx-checkbox-group__items {\n flex-direction: row;\n flex-wrap: wrap;\n column-gap: var(--tx-checkbox-group-horizontal-gap);\n }\n\n :host([data-styled]) .tx-checkbox-group__select-all {\n margin-bottom: var(--tx-checkbox-group-select-all-gap);\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCheckboxGroup), multi: true },\n { provide: TX_CHECKBOX_GROUP, useFactory: () => inject(TxCheckboxGroup).context },\n ],\n host: {\n class: 'tx-checkbox-group',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'orientation()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() ?? null',\n '[attr.aria-invalid]': 'isInvalid() || null',\n },\n viewProviders: [provideTxIconDefaults(CHECKBOX_ICON_DEFAULTS)],\n})\nexport class TxCheckboxGroup extends TxFormControlBase<unknown[]> {\n private readonly checkboxTheme = injectTokens(CHECKBOX_THEME);\n\n private readonly registered = signal<unknown[]>([]);\n\n readonly selectAll = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly selectAllLabel = input<string | undefined>(undefined);\n readonly orientation = input<TxCheckboxGroupOrientation>('vertical');\n readonly name = input<string | undefined>(undefined);\n readonly size = input<TxCheckboxSize | undefined>(undefined);\n readonly variant = input<TxCheckboxVariant | undefined>(undefined);\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 ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraCheckboxTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCheckboxGroupPart, TxCheckboxGroup> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<unknown[]>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('checkboxGroup', this, this.pt, this.ptOptions);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly selected = computed(() => (Array.isArray(this.value()) ? (this.value() as unknown[]) : []));\n readonly isAll = computed(() => this.registered().length > 0 && this.registered().every((item) => this.selected().includes(item)));\n readonly isPartial = computed(() => !this.isAll() && this.registered().some((item) => this.selected().includes(item)));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-checkbox'), ...this.passThrough().root?.style }));\n\n readonly context: TxCheckboxGroupContext = {\n name: this.name,\n isDisabled: this.isDisabled,\n isInvalid: this.isInvalid,\n size: this.size,\n variant: this.variant,\n isChecked: (value) => this.selected().includes(value),\n toggle: (value, checked) => this.toggle(value, checked),\n register: (value) => {\n this.registered.update((items) => [...items, value]);\n return () => this.registered.update((items) => items.filter((item) => item !== value));\n },\n touch: () => this.markTouched(),\n };\n\n toggleAll(checked: boolean): void {\n const order = this.registered();\n const rest = this.selected().filter((item) => !order.includes(item));\n this.commit(checked ? [...rest, ...order] : rest);\n }\n\n private toggle(value: unknown, checked: boolean): void {\n const without = this.selected().filter((item) => item !== value);\n this.commit(checked ? [...without, value] : without);\n }\n\n private commit(next: unknown[]): void {\n this.updateValue(next);\n this.changed.emit(next);\n }\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,MAAa,oBAAoB,IAAI,eAAuC,mBAAmB;ACtB/F,IAAa,yBAAb,MAAa,uBAAsB;CACxB,cAAc,OAA2C,WAAW;CAE7E,OAAO,uBAAuB,YAAoC,SAAgB;EAChF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAsB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAtB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAsB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAtB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EADlC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,8BAA6B,CAAE;;;ACDtD,MAAa,yBAAoC;CAC/C,KAAK;CACL,OAAO;CACP,OAAO;AACR;ACJD,MAAa,iBAAiB;CAC5B,UAAU;CACV,MAAM;AACP;ACgDD,IAAa,aAAb,MAAa,mBAAmB,kBAA0B;CACvC,gBAAgB,aAAa,cAAc;CAEpD,iBAAiB,cAAa;CAC9B,QAAQ,OAAO,mBAAmB,EAAE,UAAU,KAAI,CAAE;CACpD,cAAc,SAAS,aAAa;CAEnC,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,cAAc,MAA0B,QAAU,GAA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AAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,SACpB,CAAC,YAAY,WAAW;GAAC,UACxB;;;;;;;;;;;;;;;;;;;;;;GAqBT,iBAuBgB,wBAAwB;GAAM,WACpC,CACT;IAAE,SAAS;IAAmB,aAAa,iBAAgB,eAAgB;IAAG,OAAO;GAAI,GACzF;IAAE,SAAS;IAAmB,kBAAkB,OAAM,eAAA,CAAiB,CAAC;GAAO,CAChF;GAAA,MACK;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,2BAA2B;IAC3B,qBAAqB;IACrB,0BAA0B;IAC1B,uBAAuB;GACxB;GAAA,eACc,CAAC,sBAAsB,sBAAsB,CAAC;GAAC,QAAA,CAAA,ibAAA;EAAA,CAAA"}
@@ -11,6 +11,9 @@ import { chipTokens, chipsInputTokens, fieldTokens, formFieldTokens, toStyleObje
11
11
  import { TxChip } from "@tectra-ng/ui/chip";
12
12
  var TxChipsInputItemTemplate = class TxChipsInputItemTemplate {
13
13
  templateRef = inject(TemplateRef);
14
+ static ngTemplateContextGuard(_directive, context) {
15
+ return !!context;
16
+ }
14
17
  static ɵfac = i0.ɵɵngDeclareFactory({
15
18
  minVersion: "12.0.0",
16
19
  version: "22.2.5",
@@ -398,7 +401,7 @@ var TxChipsInput = class TxChipsInput extends TxFormControlBase {
398
401
  usesInheritance: true,
399
402
  ngImport: i0,
400
403
  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 [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",
401
- 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, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}: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);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: 16px;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:24px;height:24px;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 - 24px)/2);margin-inline-start:auto}\n"],
404
+ 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, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}: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: 16px;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:24px;height:24px;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 - 24px)/2);margin-inline-start:auto}\n"],
402
405
  dependencies: [
403
406
  {
404
407
  kind: "directive",
@@ -476,7 +479,7 @@ i0.ɵɵngDeclareClassMetadata({
476
479
  },
477
480
  viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],
478
481
  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 [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",
479
- 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, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}: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);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: 16px;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:24px;height:24px;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 - 24px)/2);margin-inline-start:auto}\n"]
482
+ 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, 80px);min-width:var(--tx-chips-input-input-min-width, 80px)}: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: 16px;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:24px;height:24px;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 - 24px)/2);margin-inline-start:auto}\n"]
480
483
  }]
481
484
  }],
482
485
  propDecorators: {
@@ -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","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 output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraChipsInputTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxChip } from '@tectra-ng/ui/chip';\nimport { TxChipsInputItemTemplate } from './chips-input-item.directive';\nimport { TxChipsInputEvent, TxChipsInputPart, TxChipsInputSize, TxChipsInputVariant } from './chips-input.types';\nimport { CHIPS_INPUT_ICON_DEFAULTS } from './chips-input.icons';\nimport { CHIPS_INPUT_THEME } from './chips-input.theme';\n\n/**\n * A text field that turns typed text into removable chips; works with forms and a list of strings as the value.\n */\n@Component({\n selector: 'tx-chips-input',\n imports: [NgTemplateOutlet, TxChip, TxIcon],\n templateUrl: './chips-input.component.html',\n styleUrl: './chips-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxChipsInput), multi: true }],\n host: {\n class: 'tx-chips-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[class.tx-chips-input--disabled]': 'disabled()',\n '[class.tx-chips-input--invalid]': 'isInvalid()',\n '[class.tx-chips-input--readonly]': 'readonly()',\n '[class.tx-chips-input--filled]': 'values().length > 0 || !!text()',\n '[class.tx-chips-input--full]': 'isFull()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],\n})\nexport class TxChipsInput extends TxFormControlBase<string[]> {\n private readonly chipsInputTheme = injectTokens(CHIPS_INPUT_THEME);\n\n readonly placeholder = input<string>('');\n readonly separator = input<string | RegExp>(',');\n readonly addOnBlur = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly allowDuplicate = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly caseSensitive = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly max = input<number | undefined>(undefined);\n readonly maxLength = input<number | undefined>(undefined);\n readonly itemPattern = input<RegExp | undefined>(undefined);\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly size = input<TxChipsInputSize>('medium');\n readonly variant = input<TxChipsInputVariant>('outlined');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraChipsInputTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxChipsInputPart, TxChipsInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly added = output<TxChipsInputEvent>();\n readonly removed = output<TxChipsInputEvent>();\n readonly rejected = output<TxChipsInputEvent>();\n\n readonly itemTemplate = contentChild(TxChipsInputItemTemplate);\n readonly field = viewChild.required<ElementRef<HTMLInputElement>>('field');\n\n readonly translations = injectTranslations();\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('chipsInput', this, this.pt, this.ptOptions);\n readonly text = signal('');\n\n readonly values = computed(() => this.value() ?? []);\n readonly isFull = computed(() => {\n const max = this.max();\n return max !== undefined && this.values().length >= max;\n });\n readonly canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chips-input'), ...this.passThrough().root?.style }));\n\n override writeValue(value: string[] | null): void {\n super.writeValue(Array.isArray(value) ? value : []);\n }\n\n removeLabel(item: string): string {\n return this.translations().removeItem.replace('{item}', item);\n }\n\n onInput(event: Event): void {\n const text = (event.target as HTMLInputElement).value;\n const separator = this.separator();\n const parts = text.split(separator);\n if (parts.length > 1) {\n this.addAll(parts.slice(0, -1));\n this.setText(parts[parts.length - 1]);\n } else {\n this.text.set(text);\n }\n }\n\n onPaste(event: ClipboardEvent): void {\n const pasted = event.clipboardData?.getData('text') ?? '';\n const parts = pasted.split(/\\r?\\n/).flatMap((line) => line.split(this.separator()));\n if (parts.length > 1) {\n event.preventDefault();\n this.addAll(parts);\n }\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 }\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 }\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 private addAll(parts: string[]): void {\n let values = this.values();\n for (const part of parts.map((item) => item.trim()).filter(Boolean)) {\n const value = this.maxLength() ? part.slice(0, this.maxLength()) : part;\n const duplicate = values.some((item) => (this.caseSensitive() ? item === value : item.toLowerCase() === value.toLowerCase()));\n const max = this.max();\n const full = max !== undefined && values.length >= max;\n const invalidPattern = !!this.itemPattern() && !this.itemPattern()?.test(value);\n if ((duplicate && !this.allowDuplicate()) || full || invalidPattern) {\n this.rejected.emit({ value, values });\n continue;\n }\n values = [...values, value];\n this.updateValue(values);\n this.added.emit({ value, values });\n }\n this.setText('');\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 [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;CADpE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAA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EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;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,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"}
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 output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraChipsInputTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxChip } from '@tectra-ng/ui/chip';\nimport { TxChipsInputItemTemplate } from './chips-input-item.directive';\nimport { TxChipsInputEvent, TxChipsInputPart, TxChipsInputSize, TxChipsInputVariant } from './chips-input.types';\nimport { CHIPS_INPUT_ICON_DEFAULTS } from './chips-input.icons';\nimport { CHIPS_INPUT_THEME } from './chips-input.theme';\n\n/**\n * A text field that turns typed text into removable chips; works with forms and a list of strings as the value.\n */\n@Component({\n selector: 'tx-chips-input',\n imports: [NgTemplateOutlet, TxChip, TxIcon],\n templateUrl: './chips-input.component.html',\n styleUrl: './chips-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxChipsInput), multi: true }],\n host: {\n class: 'tx-chips-input',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'variant()',\n '[class.tx-chips-input--disabled]': 'disabled()',\n '[class.tx-chips-input--invalid]': 'isInvalid()',\n '[class.tx-chips-input--readonly]': 'readonly()',\n '[class.tx-chips-input--filled]': 'values().length > 0 || !!text()',\n '[class.tx-chips-input--full]': 'isFull()',\n '(click)': 'onHostClick($event)',\n },\n viewProviders: [provideTxIconDefaults(CHIPS_INPUT_ICON_DEFAULTS)],\n})\nexport class TxChipsInput extends TxFormControlBase<string[]> {\n private readonly chipsInputTheme = injectTokens(CHIPS_INPUT_THEME);\n\n readonly placeholder = input<string>('');\n readonly separator = input<string | RegExp>(',');\n readonly addOnBlur = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly allowDuplicate = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly caseSensitive = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly max = input<number | undefined>(undefined);\n readonly maxLength = input<number | undefined>(undefined);\n readonly itemPattern = input<RegExp | undefined>(undefined);\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly size = input<TxChipsInputSize>('medium');\n readonly variant = input<TxChipsInputVariant>('outlined');\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraChipsInputTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxChipsInputPart, TxChipsInput> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly added = output<TxChipsInputEvent>();\n readonly removed = output<TxChipsInputEvent>();\n readonly rejected = output<TxChipsInputEvent>();\n\n readonly itemTemplate = contentChild(TxChipsInputItemTemplate);\n readonly field = viewChild.required<ElementRef<HTMLInputElement>>('field');\n\n readonly translations = injectTranslations();\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('chipsInput', this, this.pt, this.ptOptions);\n readonly text = signal('');\n\n readonly values = computed(() => this.value() ?? []);\n readonly isFull = computed(() => {\n const max = this.max();\n return max !== undefined && this.values().length >= max;\n });\n readonly canClear = computed(() => this.showClear() && this.values().length > 0 && !this.disabled() && !this.readonly());\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-chips-input'), ...this.passThrough().root?.style }));\n\n override writeValue(value: string[] | null): void {\n super.writeValue(Array.isArray(value) ? value : []);\n }\n\n removeLabel(item: string): string {\n return this.translations().removeItem.replace('{item}', item);\n }\n\n onInput(event: Event): void {\n const text = (event.target as HTMLInputElement).value;\n const separator = this.separator();\n const parts = text.split(separator);\n if (parts.length > 1) {\n this.addAll(parts.slice(0, -1));\n this.setText(parts[parts.length - 1]);\n } else {\n this.text.set(text);\n }\n }\n\n onPaste(event: ClipboardEvent): void {\n const pasted = event.clipboardData?.getData('text') ?? '';\n const parts = pasted.split(/\\r?\\n/).flatMap((line) => line.split(this.separator()));\n if (parts.length > 1) {\n event.preventDefault();\n this.addAll(parts);\n }\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 }\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 }\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 private addAll(parts: string[]): void {\n let values = this.values();\n for (const part of parts.map((item) => item.trim()).filter(Boolean)) {\n const value = this.maxLength() ? part.slice(0, this.maxLength()) : part;\n const duplicate = values.some((item) => (this.caseSensitive() ? item === value : item.toLowerCase() === value.toLowerCase()));\n const max = this.max();\n const full = max !== undefined && values.length >= max;\n const invalidPattern = !!this.itemPattern() && !this.itemPattern()?.test(value);\n if ((duplicate && !this.allowDuplicate()) || full || invalidPattern) {\n this.rejected.emit({ value, values });\n continue;\n }\n values = [...values, value];\n this.updateValue(values);\n this.added.emit({ value, values });\n }\n this.setText('');\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 [placeholder]=\"values().length ? '' : placeholder()\"\n [readOnly]=\"readonly() || isFull()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-chips-input__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n</div>\n"],"mappings":";;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CA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