@tectra-ng/ui 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/amount/README.md +19 -1
  2. package/analog-clock/README.md +1 -1
  3. package/autocomplete/README.md +1 -1
  4. package/avatar/README.md +24 -4
  5. package/cascade-select/README.md +1 -1
  6. package/chips-input/README.md +10 -5
  7. package/color-picker/README.md +5 -0
  8. package/countdown/README.md +7 -1
  9. package/country/README.md +14 -1
  10. package/country-select/README.md +2 -1
  11. package/export/README.md +27 -2
  12. package/export-font/README.md +1 -1
  13. package/fesm2022/tectra-ng-ui-accordion.mjs +21 -21
  14. package/fesm2022/tectra-ng-ui-amount.mjs +99 -17
  15. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -25
  17. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-autocomplete.mjs +8 -7
  19. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-avatar.mjs +68 -26
  21. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-badge.mjs +3 -3
  23. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +9 -9
  24. package/fesm2022/tectra-ng-ui-button-group.mjs +3 -3
  25. package/fesm2022/tectra-ng-ui-button.mjs +11 -11
  26. package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-card.mjs +5 -5
  28. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-carousel.mjs +15 -15
  30. package/fesm2022/tectra-ng-ui-cascade-select.mjs +10 -7
  31. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-checkbox.mjs +9 -9
  33. package/fesm2022/tectra-ng-ui-chip.mjs +3 -3
  34. package/fesm2022/tectra-ng-ui-chips-input.mjs +120 -21
  35. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-color-picker.mjs +96 -9
  37. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-color-swatches.mjs +3 -3
  39. package/fesm2022/tectra-ng-ui-confirm.mjs +9 -9
  40. package/fesm2022/tectra-ng-ui-countdown.mjs +48 -19
  41. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-country-select.mjs +31 -8
  43. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-country.mjs +18 -9
  45. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-data-view.mjs +30 -30
  47. package/fesm2022/tectra-ng-ui-datepicker.mjs +53 -40
  48. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-dialog.mjs +30 -30
  50. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  51. package/fesm2022/tectra-ng-ui-divider.mjs +3 -3
  52. package/fesm2022/tectra-ng-ui-drawer.mjs +9 -9
  53. package/fesm2022/tectra-ng-ui-email-suggestion.mjs +3 -3
  54. package/fesm2022/tectra-ng-ui-export.mjs +1264 -111
  55. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-field.mjs +4 -3
  57. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-fieldset.mjs +5 -5
  59. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
  60. package/fesm2022/tectra-ng-ui-file-upload.mjs +12 -12
  61. package/fesm2022/tectra-ng-ui-galleria.mjs +21 -21
  62. package/fesm2022/tectra-ng-ui-highlight-text.mjs +3 -3
  63. package/fesm2022/tectra-ng-ui-icon-field.mjs +63 -35
  64. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  65. package/fesm2022/tectra-ng-ui-image.mjs +9 -9
  66. package/fesm2022/tectra-ng-ui-input-group.mjs +6 -6
  67. package/fesm2022/tectra-ng-ui-input-mask.mjs +3 -3
  68. package/fesm2022/tectra-ng-ui-input-number.mjs +5 -5
  69. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-input-otp.mjs +3 -3
  71. package/fesm2022/tectra-ng-ui-input.mjs +11 -10
  72. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  73. package/fesm2022/tectra-ng-ui-key-filter.mjs +87 -22
  74. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  75. package/fesm2022/tectra-ng-ui-knob.mjs +30 -8
  76. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
  77. package/fesm2022/tectra-ng-ui-label.mjs +77 -18
  78. package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
  79. package/fesm2022/tectra-ng-ui-link.mjs +44 -20
  80. package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
  81. package/fesm2022/tectra-ng-ui-list-input.mjs +3 -3
  82. package/fesm2022/tectra-ng-ui-listbox.mjs +3 -3
  83. package/fesm2022/tectra-ng-ui-mention-textarea.mjs +19 -8
  84. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  85. package/fesm2022/tectra-ng-ui-menu.mjs +15 -15
  86. package/fesm2022/tectra-ng-ui-menubar.mjs +6 -6
  87. package/fesm2022/tectra-ng-ui-message.mjs +23 -19
  88. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  89. package/fesm2022/tectra-ng-ui-month-calendar.mjs +32 -15
  90. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  91. package/fesm2022/tectra-ng-ui-multiselect.mjs +6 -5
  92. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  93. package/fesm2022/tectra-ng-ui-overlay-badge.mjs +3 -3
  94. package/fesm2022/tectra-ng-ui-paginator.mjs +9 -9
  95. package/fesm2022/tectra-ng-ui-panel-menu.mjs +51 -20
  96. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  97. package/fesm2022/tectra-ng-ui-panel.mjs +7 -5
  98. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
  99. package/fesm2022/tectra-ng-ui-password-generator.mjs +24 -7
  100. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  101. package/fesm2022/tectra-ng-ui-password.mjs +14 -14
  102. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
  103. package/fesm2022/tectra-ng-ui-pill.mjs +39 -19
  104. package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
  105. package/fesm2022/tectra-ng-ui-popover.mjs +15 -15
  106. package/fesm2022/tectra-ng-ui-progress-bar.mjs +6 -6
  107. package/fesm2022/tectra-ng-ui-progress-spinner.mjs +3 -3
  108. package/fesm2022/tectra-ng-ui-radio-button.mjs +6 -6
  109. package/fesm2022/tectra-ng-ui-rating.mjs +11 -11
  110. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
  111. package/fesm2022/tectra-ng-ui-scroll-panel.mjs +3 -3
  112. package/fesm2022/tectra-ng-ui-select-button.mjs +6 -6
  113. package/fesm2022/tectra-ng-ui-select.mjs +66 -43
  114. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  115. package/fesm2022/tectra-ng-ui-skeleton.mjs +6 -6
  116. package/fesm2022/tectra-ng-ui-slider.mjs +3 -3
  117. package/fesm2022/tectra-ng-ui-sparkline.mjs +3 -3
  118. package/fesm2022/tectra-ng-ui-speed-dial.mjs +3 -3
  119. package/fesm2022/tectra-ng-ui-split-button.mjs +3 -3
  120. package/fesm2022/tectra-ng-ui-splitter.mjs +6 -6
  121. package/fesm2022/tectra-ng-ui-stat-tiles.mjs +99 -14
  122. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  123. package/fesm2022/tectra-ng-ui-status-icon.mjs +43 -6
  124. package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
  125. package/fesm2022/tectra-ng-ui-stepper.mjs +41 -35
  126. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/tectra-ng-ui-table.mjs +74 -60
  128. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  129. package/fesm2022/tectra-ng-ui-tabs.mjs +18 -18
  130. package/fesm2022/tectra-ng-ui-tag.mjs +8 -8
  131. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
  132. package/fesm2022/tectra-ng-ui-textarea.mjs +9 -9
  133. package/fesm2022/tectra-ng-ui-timeline.mjs +15 -15
  134. package/fesm2022/tectra-ng-ui-toast.mjs +11 -11
  135. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  136. package/fesm2022/tectra-ng-ui-toggle-button.mjs +3 -3
  137. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +6 -6
  138. package/fesm2022/tectra-ng-ui-toolbar.mjs +12 -12
  139. package/fesm2022/tectra-ng-ui-tooltip.mjs +9 -9
  140. package/fesm2022/tectra-ng-ui-tree-select.mjs +13 -11
  141. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  142. package/fesm2022/tectra-ng-ui-tree-table.mjs +7 -7
  143. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  144. package/fesm2022/tectra-ng-ui-tree.mjs +30 -30
  145. package/fesm2022/tectra-ng-ui-truncate-text.mjs +36 -12
  146. package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
  147. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +15 -15
  148. package/fesm2022/tectra-ng-ui.mjs +1 -1
  149. package/icon-field/README.md +2 -1
  150. package/input/README.md +1 -1
  151. package/key-filter/README.md +3 -2
  152. package/knob/README.md +3 -1
  153. package/label/README.md +4 -1
  154. package/link/README.md +4 -1
  155. package/message/README.md +2 -2
  156. package/month-calendar/README.md +2 -1
  157. package/multiselect/README.md +1 -1
  158. package/package.json +4 -4
  159. package/panel/README.md +3 -1
  160. package/panel-menu/README.md +3 -2
  161. package/password-generator/README.md +2 -0
  162. package/pill/README.md +4 -4
  163. package/select/README.md +1 -1
  164. package/stat-tiles/README.md +17 -1
  165. package/status-icon/README.md +3 -1
  166. package/table/README.md +1 -1
  167. package/tag/README.md +2 -0
  168. package/tree-select/README.md +1 -1
  169. package/truncate-text/README.md +2 -1
  170. package/types/tectra-ng-ui-amount.d.ts +41 -1
  171. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  172. package/types/tectra-ng-ui-analog-clock.d.ts +1 -4
  173. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  174. package/types/tectra-ng-ui-autocomplete.d.ts +1 -1
  175. package/types/tectra-ng-ui-avatar.d.ts +45 -12
  176. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-cascade-select.d.ts +3 -2
  178. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  179. package/types/tectra-ng-ui-chips-input.d.ts +54 -6
  180. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  181. package/types/tectra-ng-ui-color-picker.d.ts +38 -1
  182. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-countdown.d.ts +12 -1
  184. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-country-select.d.ts +17 -4
  186. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-country.d.ts +7 -1
  188. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-datepicker.d.ts +4 -2
  190. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-export.d.ts +68 -8
  192. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-icon-field.d.ts +9 -2
  194. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-input.d.ts +1 -1
  196. package/types/tectra-ng-ui-key-filter.d.ts +19 -4
  197. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  198. package/types/tectra-ng-ui-knob.d.ts +10 -2
  199. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  200. package/types/tectra-ng-ui-label.d.ts +8 -1
  201. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  202. package/types/tectra-ng-ui-link.d.ts +8 -2
  203. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  204. package/types/tectra-ng-ui-mention-textarea.d.ts +5 -0
  205. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  206. package/types/tectra-ng-ui-message.d.ts +1 -1
  207. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  208. package/types/tectra-ng-ui-month-calendar.d.ts +14 -4
  209. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  210. package/types/tectra-ng-ui-multiselect.d.ts +1 -1
  211. package/types/tectra-ng-ui-panel-menu.d.ts +34 -6
  212. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  213. package/types/tectra-ng-ui-panel.d.ts +1 -1
  214. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-password-generator.d.ts +10 -3
  216. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  217. package/types/tectra-ng-ui-pill.d.ts +9 -5
  218. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  219. package/types/tectra-ng-ui-select.d.ts +5 -2
  220. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  221. package/types/tectra-ng-ui-stat-tiles.d.ts +49 -5
  222. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  223. package/types/tectra-ng-ui-status-icon.d.ts +20 -2
  224. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  225. package/types/tectra-ng-ui-stepper.d.ts +1 -0
  226. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  227. package/types/tectra-ng-ui-table.d.ts +2 -1
  228. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  229. package/types/tectra-ng-ui-tree-select.d.ts +3 -3
  230. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  231. package/types/tectra-ng-ui-truncate-text.d.ts +7 -2
  232. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  233. package/types/tectra-ng-ui.d.ts +1 -1
@@ -10,6 +10,7 @@ const PILL_ICON_DEFAULTS = {
10
10
  times: txIconTimes
11
11
  };
12
12
  const PILL_THEME = { pill: pillTokens };
13
+ const SPIN_MODIFIERS = /* @__PURE__ */ new Set(["spin", "pi-spin"]);
13
14
  var TxPill = class TxPill {
14
15
  pillTheme = injectTokens(PILL_THEME);
15
16
  txIconRegistry = injectTxIcons();
@@ -40,10 +41,17 @@ var TxPill = class TxPill {
40
41
  passThrough = injectPassThrough("pill", this, this.pt, this.ptOptions);
41
42
  resolvedTone = computed(() => this.tone() === "secondary" ? "neutral" : this.tone(), ...ngDevMode ? [{ debugName: "resolvedTone" }] : /* istanbul ignore next */ []);
42
43
  resolvedSize = computed(() => this.size() === "normal" ? "medium" : this.size(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
43
- iconName = computed(() => {
44
- const icon = this.icon();
45
- return icon && this.txIconRegistry.has(icon) ? icon : null;
46
- }, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
44
+ iconParts = computed(() => {
45
+ const [name, ...modifiers] = (this.icon() ?? "").trim().split(/\s+/);
46
+ return this.txIconRegistry.has(name) ? {
47
+ name,
48
+ modifiers
49
+ } : null;
50
+ }, ...ngDevMode ? [{ debugName: "iconParts" }] : /* istanbul ignore next */ []);
51
+ iconName = computed(() => this.iconParts()?.name ?? null, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
52
+ iconModifiers = computed(() => this.iconParts()?.modifiers.join(" ") ?? "", ...ngDevMode ? [{ debugName: "iconModifiers" }] : /* istanbul ignore next */ []);
53
+ iconSpin = computed(() => this.iconParts()?.modifiers.some((modifier) => SPIN_MODIFIERS.has(modifier)) ?? false, ...ngDevMode ? [{ debugName: "iconSpin" }] : /* istanbul ignore next */ []);
54
+ removeText = computed(() => this.removeLabel() || this.translations().remove, ...ngDevMode ? [{ debugName: "removeText" }] : /* istanbul ignore next */ []);
47
55
  hostStyle = computed(() => ({
48
56
  ...toStyleObject(this.dt(), "--tx-pill"),
49
57
  ...this.passThrough().root?.style
@@ -55,7 +63,7 @@ var TxPill = class TxPill {
55
63
  }
56
64
  static ɵfac = i0.ɵɵngDeclareFactory({
57
65
  minVersion: "12.0.0",
58
- version: "22.2.5",
66
+ version: "22.2.6",
59
67
  ngImport: i0,
60
68
  type: TxPill,
61
69
  deps: [],
@@ -63,7 +71,7 @@ var TxPill = class TxPill {
63
71
  });
64
72
  static ɵcmp = i0.ɵɵngDeclareComponent({
65
73
  minVersion: "17.0.0",
66
- version: "22.2.5",
74
+ version: "22.2.6",
67
75
  type: TxPill,
68
76
  isStandalone: true,
69
77
  selector: "tx-pill",
@@ -170,15 +178,21 @@ var TxPill = class TxPill {
170
178
  @if (dot()) {
171
179
  <span class="tx-pill__dot" aria-hidden="true"></span>
172
180
  } @else if (icon(); as icon) {
173
- <span class="tx-pill__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
181
+ <span
182
+ class="tx-pill__icon"
183
+ aria-hidden="true"
184
+ [class.tx-pill__icon--spin]="iconSpin()"
185
+ [class]="passThrough().icon?.class"
186
+ [style]="passThrough().icon?.style"
187
+ >
174
188
  @if (iconName(); as name) {
175
- <tx-icon [name]="name" />
189
+ <tx-icon [name]="name" [class]="iconModifiers()" />
176
190
  } @else {
177
191
  <span [class]="icon"></span>
178
192
  }
179
193
  </span>
180
194
  }
181
- <ng-content select="[txPillLeading]" />
195
+ <span class="tx-pill__leading" [class]="passThrough().leading?.class" [style]="passThrough().leading?.style"><ng-content select="[txPillLeading]" /></span>
182
196
  <span class="tx-pill__label" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ value() }}<ng-content /></span>
183
197
  @if (removable()) {
184
198
  <button
@@ -186,8 +200,8 @@ var TxPill = class TxPill {
186
200
  class="tx-pill__remove"
187
201
  [class]="passThrough().remove?.class"
188
202
  [style]="passThrough().remove?.style"
189
- [attr.aria-label]="removeLabel() ?? translations().remove"
190
- [title]="removeLabel() ?? translations().remove"
203
+ [attr.aria-label]="removeText()"
204
+ [title]="removeText()"
191
205
  (click)="remove($event)"
192
206
  (keydown.delete)="remove($event)"
193
207
  (keydown.backspace)="remove($event)"
@@ -197,7 +211,7 @@ var TxPill = class TxPill {
197
211
  }
198
212
  `,
199
213
  isInline: true,
200
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) ::ng-deep>[txPillLeading]{flex-shrink:0;margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:-4px;padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}}\n"],
214
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty,.tx-pill__leading:empty{display:none}.tx-pill__leading{display:inline-flex;flex-shrink:0;align-items:center}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) .tx-pill__leading{margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__icon--spin tx-icon{animation:tx-pill-spin var(--tx-pill-spin-duration) linear infinite}@keyframes tx-pill-spin{to{transform:rotate(360deg)}}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:var(--tx-pill-remove-offset);padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}:host([data-styled]) .tx-pill__icon--spin tx-icon{animation-duration:calc(var(--tx-pill-spin-duration) * 3)}}\n"],
201
215
  dependencies: [{
202
216
  kind: "component",
203
217
  type: TxIcon,
@@ -210,7 +224,7 @@ var TxPill = class TxPill {
210
224
  };
211
225
  i0.ɵɵngDeclareClassMetadata({
212
226
  minVersion: "12.0.0",
213
- version: "22.2.5",
227
+ version: "22.2.6",
214
228
  ngImport: i0,
215
229
  type: TxPill,
216
230
  decorators: [{
@@ -222,15 +236,21 @@ i0.ɵɵngDeclareClassMetadata({
222
236
  @if (dot()) {
223
237
  <span class="tx-pill__dot" aria-hidden="true"></span>
224
238
  } @else if (icon(); as icon) {
225
- <span class="tx-pill__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
239
+ <span
240
+ class="tx-pill__icon"
241
+ aria-hidden="true"
242
+ [class.tx-pill__icon--spin]="iconSpin()"
243
+ [class]="passThrough().icon?.class"
244
+ [style]="passThrough().icon?.style"
245
+ >
226
246
  @if (iconName(); as name) {
227
- <tx-icon [name]="name" />
247
+ <tx-icon [name]="name" [class]="iconModifiers()" />
228
248
  } @else {
229
249
  <span [class]="icon"></span>
230
250
  }
231
251
  </span>
232
252
  }
233
- <ng-content select="[txPillLeading]" />
253
+ <span class="tx-pill__leading" [class]="passThrough().leading?.class" [style]="passThrough().leading?.style"><ng-content select="[txPillLeading]" /></span>
234
254
  <span class="tx-pill__label" [class]="passThrough().label?.class" [style]="passThrough().label?.style">{{ value() }}<ng-content /></span>
235
255
  @if (removable()) {
236
256
  <button
@@ -238,8 +258,8 @@ i0.ɵɵngDeclareClassMetadata({
238
258
  class="tx-pill__remove"
239
259
  [class]="passThrough().remove?.class"
240
260
  [style]="passThrough().remove?.style"
241
- [attr.aria-label]="removeLabel() ?? translations().remove"
242
- [title]="removeLabel() ?? translations().remove"
261
+ [attr.aria-label]="removeText()"
262
+ [title]="removeText()"
243
263
  (click)="remove($event)"
244
264
  (keydown.delete)="remove($event)"
245
265
  (keydown.backspace)="remove($event)"
@@ -259,7 +279,7 @@ i0.ɵɵngDeclareClassMetadata({
259
279
  "[attr.data-size]": "resolvedSize()"
260
280
  },
261
281
  viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],
262
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) ::ng-deep>[txPillLeading]{flex-shrink:0;margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:-4px;padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}}\n"]
282
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-pill__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-pill__label:empty,.tx-pill__leading:empty{display:none}.tx-pill__leading{display:inline-flex;flex-shrink:0;align-items:center}:host([data-styled]){--_tone: var(--tx-pill-neutral-color);--_solid-background: var(--tx-pill-neutral-solid-background);--_solid-color: var(--tx-pill-neutral-solid-color);flex-shrink:0;gap:var(--tx-pill-gap);box-sizing:border-box;padding:var(--tx-pill-padding-y) var(--tx-pill-padding-x);border-radius:var(--tx-pill-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-pill-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-pill-font-size);font-weight:var(--tx-pill-font-weight);line-height:var(--tx-pill-line-height);font-variant-numeric:tabular-nums}:host([data-styled][data-tone=primary]){--_tone: var(--tx-pill-primary-color);--_solid-background: var(--tx-pill-primary-solid-background);--_solid-color: var(--tx-pill-primary-solid-color)}:host([data-styled][data-tone=success]){--_tone: var(--tx-pill-success-color);--_solid-background: var(--tx-pill-success-solid-background);--_solid-color: var(--tx-pill-success-solid-color)}:host([data-styled][data-tone=info]){--_tone: var(--tx-pill-info-color);--_solid-background: var(--tx-pill-info-solid-background);--_solid-color: var(--tx-pill-info-solid-color)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-pill-warn-color);--_solid-background: var(--tx-pill-warn-solid-background);--_solid-color: var(--tx-pill-warn-solid-color)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-pill-danger-color);--_solid-background: var(--tx-pill-danger-solid-background);--_solid-color: var(--tx-pill-danger-solid-color)}:host([data-styled][data-tone=help]){--_tone: var(--tx-pill-help-color);--_solid-background: var(--tx-pill-help-solid-background);--_solid-color: var(--tx-pill-help-solid-color)}:host([data-styled][data-tone=contrast]){--_tone: var(--tx-pill-contrast-color);--_solid-background: var(--tx-pill-contrast-solid-background);--_solid-color: var(--tx-pill-contrast-solid-color)}:host([data-styled][data-size=small]){padding:var(--tx-pill-sm-padding-y) var(--tx-pill-sm-padding-x);font-size:var(--tx-pill-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-pill-lg-padding-y) var(--tx-pill-lg-padding-x);font-size:var(--tx-pill-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-pill-lg-gap)}:host([data-styled][data-variant=solid]){background:var(--_solid-background);color:var(--_solid-color)}:host([data-styled][data-variant=outline]){background:transparent;box-shadow:inset 0 0 0 1px var(--tx-pill-outline-border-color);color:var(--tx-pill-outline-color)}:host([data-styled][data-variant=outline]) .tx-pill__icon,:host([data-styled][data-variant=outline]) .tx-pill__dot{color:var(--_tone)}:host([data-styled]) .tx-pill__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-pill-icon-size)}:host([data-styled]) .tx-pill__dot{flex-shrink:0;width:var(--tx-pill-dot-size);height:var(--tx-pill-dot-size);border-radius:50%;background:currentColor}:host([data-styled]) .tx-pill__leading{margin-inline-start:calc(var(--tx-pill-padding-x) * -.5)}:host([data-styled]) .tx-pill__icon--spin tx-icon{animation:tx-pill-spin var(--tx-pill-spin-duration) linear infinite}@keyframes tx-pill-spin{to{transform:rotate(360deg)}}:host([data-styled]) .tx-pill__remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-pill-remove-size);height:var(--tx-pill-remove-size);margin-inline-end:var(--tx-pill-remove-offset);padding:0;border:none;border-radius:50%;background:transparent;color:inherit;font-size:.8em;opacity:.7;cursor:pointer;transition:opacity var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-pill__remove:hover{background:color-mix(in srgb,currentColor 18%,transparent);opacity:1}:host([data-styled]) .tx-pill__remove:focus-visible{outline:2px solid var(--tx-pill-focus-ring-color);outline-offset:1px;opacity:1}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-pill__remove{transition:none}:host([data-styled]) .tx-pill__icon--spin tx-icon{animation-duration:calc(var(--tx-pill-spin-duration) * 3)}}\n"]
263
283
  }]
264
284
  }],
265
285
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span class=\"tx-pill__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <ng-content select=\"[txPillLeading]\" />\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedTone = computed(() => (this.tone() === 'secondary' ? 'neutral' : this.tone()));\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;ACoDD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,MAAM,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAClE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA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,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,SAAA,UAAA;EAAA,MAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;IAAA,kBAAA;IAAA,qBAAA;IAAA,kBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA3CP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,UAAA;EAAA,QAAA,CAAA,s4HAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA9BS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,eA0CD,CAAC,sBAAsB,kBAAkB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAE/C,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAM,YAAA,CAAA;EA9ClB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAS,SACV,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,kBAAkB,CAAC;GAAC,QAAA,CAAA,s4HAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\nconst SPIN_MODIFIERS = new Set(['spin', 'pi-spin']);\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span\n class=\"tx-pill__icon\"\n aria-hidden=\"true\"\n [class.tx-pill__icon--spin]=\"iconSpin()\"\n [class]=\"passThrough().icon?.class\"\n [style]=\"passThrough().icon?.style\"\n >\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" [class]=\"iconModifiers()\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span class=\"tx-pill__leading\" [class]=\"passThrough().leading?.class\" [style]=\"passThrough().leading?.style\"><ng-content select=\"[txPillLeading]\" /></span>\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeText()\"\n [title]=\"removeText()\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedTone = computed(() => (this.tone() === 'secondary' ? 'neutral' : this.tone()));\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n private readonly iconParts = computed(() => {\n const [name, ...modifiers] = (this.icon() ?? '').trim().split(/\\s+/);\n return this.txIconRegistry.has(name) ? { name, modifiers } : null;\n });\n readonly iconName = computed(() => this.iconParts()?.name ?? null);\n readonly iconModifiers = computed(() => this.iconParts()?.modifiers.join(' ') ?? '');\n readonly iconSpin = computed(() => this.iconParts()?.modifiers.some((modifier) => SPIN_MODIFIERS.has(modifier)) ?? false);\n readonly removeText = computed(() => this.removeLabel() || this.translations().remove);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;ACMD,MAAM,iCAAiB,IAAI,IAAI,CAAC,QAAQ,SAAS,CAAC;AAsDlD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,MAAM,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAClE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAuD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACtE,KAAK,M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GACrB;GAAA,eACc,CAAC,sBAAsB,kBAAkB,CAAC;GAAC,QAAA,CAAA,8vIAAA;EAAA,CAAA"}
@@ -12,7 +12,7 @@ import { popoverTokens, toStyleObject } from "@tectra-ng/themes";
12
12
  var TxPopoverHeader = class TxPopoverHeader {
13
13
  static ɵfac = i0.ɵɵngDeclareFactory({
14
14
  minVersion: "12.0.0",
15
- version: "22.2.5",
15
+ version: "22.2.6",
16
16
  ngImport: i0,
17
17
  type: TxPopoverHeader,
18
18
  deps: [],
@@ -20,7 +20,7 @@ var TxPopoverHeader = class TxPopoverHeader {
20
20
  });
21
21
  static ɵdir = i0.ɵɵngDeclareDirective({
22
22
  minVersion: "14.0.0",
23
- version: "22.2.5",
23
+ version: "22.2.6",
24
24
  type: TxPopoverHeader,
25
25
  isStandalone: true,
26
26
  selector: "[txPopoverHeader]",
@@ -29,7 +29,7 @@ var TxPopoverHeader = class TxPopoverHeader {
29
29
  };
30
30
  i0.ɵɵngDeclareClassMetadata({
31
31
  minVersion: "12.0.0",
32
- version: "22.2.5",
32
+ version: "22.2.6",
33
33
  ngImport: i0,
34
34
  type: TxPopoverHeader,
35
35
  decorators: [{
@@ -40,7 +40,7 @@ i0.ɵɵngDeclareClassMetadata({
40
40
  var TxPopoverFooter = class TxPopoverFooter {
41
41
  static ɵfac = i0.ɵɵngDeclareFactory({
42
42
  minVersion: "12.0.0",
43
- version: "22.2.5",
43
+ version: "22.2.6",
44
44
  ngImport: i0,
45
45
  type: TxPopoverFooter,
46
46
  deps: [],
@@ -48,7 +48,7 @@ var TxPopoverFooter = class TxPopoverFooter {
48
48
  });
49
49
  static ɵdir = i0.ɵɵngDeclareDirective({
50
50
  minVersion: "14.0.0",
51
- version: "22.2.5",
51
+ version: "22.2.6",
52
52
  type: TxPopoverFooter,
53
53
  isStandalone: true,
54
54
  selector: "[txPopoverFooter]",
@@ -57,7 +57,7 @@ var TxPopoverFooter = class TxPopoverFooter {
57
57
  };
58
58
  i0.ɵɵngDeclareClassMetadata({
59
59
  minVersion: "12.0.0",
60
- version: "22.2.5",
60
+ version: "22.2.6",
61
61
  ngImport: i0,
62
62
  type: TxPopoverFooter,
63
63
  decorators: [{
@@ -72,7 +72,7 @@ var TxPopoverContent = class TxPopoverContent {
72
72
  }
73
73
  static ɵfac = i0.ɵɵngDeclareFactory({
74
74
  minVersion: "12.0.0",
75
- version: "22.2.5",
75
+ version: "22.2.6",
76
76
  ngImport: i0,
77
77
  type: TxPopoverContent,
78
78
  deps: [],
@@ -80,7 +80,7 @@ var TxPopoverContent = class TxPopoverContent {
80
80
  });
81
81
  static ɵdir = i0.ɵɵngDeclareDirective({
82
82
  minVersion: "14.0.0",
83
- version: "22.2.5",
83
+ version: "22.2.6",
84
84
  type: TxPopoverContent,
85
85
  isStandalone: true,
86
86
  selector: "ng-template[txPopoverContent]",
@@ -89,7 +89,7 @@ var TxPopoverContent = class TxPopoverContent {
89
89
  };
90
90
  i0.ɵɵngDeclareClassMetadata({
91
91
  minVersion: "12.0.0",
92
- version: "22.2.5",
92
+ version: "22.2.6",
93
93
  ngImport: i0,
94
94
  type: TxPopoverContent,
95
95
  decorators: [{
@@ -294,7 +294,7 @@ var TxPopover = class TxPopover {
294
294
  }
295
295
  static ɵfac = i0.ɵɵngDeclareFactory({
296
296
  minVersion: "12.0.0",
297
- version: "22.2.5",
297
+ version: "22.2.6",
298
298
  ngImport: i0,
299
299
  type: TxPopover,
300
300
  deps: [],
@@ -302,7 +302,7 @@ var TxPopover = class TxPopover {
302
302
  });
303
303
  static ɵcmp = i0.ɵɵngDeclareComponent({
304
304
  minVersion: "17.0.0",
305
- version: "22.2.5",
305
+ version: "22.2.6",
306
306
  type: TxPopover,
307
307
  isStandalone: true,
308
308
  selector: "tx-popover",
@@ -494,7 +494,7 @@ var TxPopover = class TxPopover {
494
494
  };
495
495
  i0.ɵɵngDeclareClassMetadata({
496
496
  minVersion: "12.0.0",
497
- version: "22.2.5",
497
+ version: "22.2.6",
498
498
  ngImport: i0,
499
499
  type: TxPopover,
500
500
  decorators: [{
@@ -693,7 +693,7 @@ var TxPopoverTrigger = class TxPopoverTrigger {
693
693
  }
694
694
  static ɵfac = i0.ɵɵngDeclareFactory({
695
695
  minVersion: "12.0.0",
696
- version: "22.2.5",
696
+ version: "22.2.6",
697
697
  ngImport: i0,
698
698
  type: TxPopoverTrigger,
699
699
  deps: [],
@@ -701,7 +701,7 @@ var TxPopoverTrigger = class TxPopoverTrigger {
701
701
  });
702
702
  static ɵdir = i0.ɵɵngDeclareDirective({
703
703
  minVersion: "17.1.0",
704
- version: "22.2.5",
704
+ version: "22.2.6",
705
705
  type: TxPopoverTrigger,
706
706
  isStandalone: true,
707
707
  selector: "[txPopoverTrigger]",
@@ -726,7 +726,7 @@ var TxPopoverTrigger = class TxPopoverTrigger {
726
726
  };
727
727
  i0.ɵɵngDeclareClassMetadata({
728
728
  minVersion: "12.0.0",
729
- version: "22.2.5",
729
+ version: "22.2.6",
730
730
  ngImport: i0,
731
731
  type: TxPopoverTrigger,
732
732
  decorators: [{
@@ -13,7 +13,7 @@ var TxProgressBarValueTemplate = class TxProgressBarValueTemplate {
13
13
  }
14
14
  static ɵfac = i0.ɵɵngDeclareFactory({
15
15
  minVersion: "12.0.0",
16
- version: "22.2.5",
16
+ version: "22.2.6",
17
17
  ngImport: i0,
18
18
  type: TxProgressBarValueTemplate,
19
19
  deps: [],
@@ -21,7 +21,7 @@ var TxProgressBarValueTemplate = class TxProgressBarValueTemplate {
21
21
  });
22
22
  static ɵdir = i0.ɵɵngDeclareDirective({
23
23
  minVersion: "14.0.0",
24
- version: "22.2.5",
24
+ version: "22.2.6",
25
25
  type: TxProgressBarValueTemplate,
26
26
  isStandalone: true,
27
27
  selector: "ng-template[txProgressBarValue]",
@@ -30,7 +30,7 @@ var TxProgressBarValueTemplate = class TxProgressBarValueTemplate {
30
30
  };
31
31
  i0.ɵɵngDeclareClassMetadata({
32
32
  minVersion: "12.0.0",
33
- version: "22.2.5",
33
+ version: "22.2.6",
34
34
  ngImport: i0,
35
35
  type: TxProgressBarValueTemplate,
36
36
  decorators: [{
@@ -95,7 +95,7 @@ var TxProgressBar = class TxProgressBar {
95
95
  }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
96
96
  static ɵfac = i0.ɵɵngDeclareFactory({
97
97
  minVersion: "12.0.0",
98
- version: "22.2.5",
98
+ version: "22.2.6",
99
99
  ngImport: i0,
100
100
  type: TxProgressBar,
101
101
  deps: [],
@@ -103,7 +103,7 @@ var TxProgressBar = class TxProgressBar {
103
103
  });
104
104
  static ɵcmp = i0.ɵɵngDeclareComponent({
105
105
  minVersion: "17.0.0",
106
- version: "22.2.5",
106
+ version: "22.2.6",
107
107
  type: TxProgressBar,
108
108
  isStandalone: true,
109
109
  selector: "tx-progress-bar",
@@ -273,7 +273,7 @@ var TxProgressBar = class TxProgressBar {
273
273
  };
274
274
  i0.ɵɵngDeclareClassMetadata({
275
275
  minVersion: "12.0.0",
276
- version: "22.2.5",
276
+ version: "22.2.6",
277
277
  ngImport: i0,
278
278
  type: TxProgressBar,
279
279
  decorators: [{
@@ -42,7 +42,7 @@ var TxProgressSpinner = class TxProgressSpinner {
42
42
  }, ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
43
43
  static ɵfac = i0.ɵɵngDeclareFactory({
44
44
  minVersion: "12.0.0",
45
- version: "22.2.5",
45
+ version: "22.2.6",
46
46
  ngImport: i0,
47
47
  type: TxProgressSpinner,
48
48
  deps: [],
@@ -50,7 +50,7 @@ var TxProgressSpinner = class TxProgressSpinner {
50
50
  });
51
51
  static ɵcmp = i0.ɵɵngDeclareComponent({
52
52
  minVersion: "17.1.0",
53
- version: "22.2.5",
53
+ version: "22.2.6",
54
54
  type: TxProgressSpinner,
55
55
  isStandalone: true,
56
56
  selector: "tx-progress-spinner",
@@ -155,7 +155,7 @@ var TxProgressSpinner = class TxProgressSpinner {
155
155
  };
156
156
  i0.ɵɵngDeclareClassMetadata({
157
157
  minVersion: "12.0.0",
158
- version: "22.2.5",
158
+ version: "22.2.6",
159
159
  ngImport: i0,
160
160
  type: TxProgressSpinner,
161
161
  decorators: [{
@@ -103,7 +103,7 @@ var TxRadioButton = class TxRadioButton extends TxFormControlBase {
103
103
  }
104
104
  static ɵfac = i0.ɵɵngDeclareFactory({
105
105
  minVersion: "12.0.0",
106
- version: "22.2.5",
106
+ version: "22.2.6",
107
107
  ngImport: i0,
108
108
  type: TxRadioButton,
109
109
  deps: null,
@@ -111,7 +111,7 @@ var TxRadioButton = class TxRadioButton extends TxFormControlBase {
111
111
  });
112
112
  static ɵcmp = i0.ɵɵngDeclareComponent({
113
113
  minVersion: "17.0.0",
114
- version: "22.2.5",
114
+ version: "22.2.6",
115
115
  type: TxRadioButton,
116
116
  isStandalone: true,
117
117
  selector: "tx-radio-button",
@@ -289,7 +289,7 @@ var TxRadioButton = class TxRadioButton extends TxFormControlBase {
289
289
  };
290
290
  i0.ɵɵngDeclareClassMetadata({
291
291
  minVersion: "12.0.0",
292
- version: "22.2.5",
292
+ version: "22.2.6",
293
293
  ngImport: i0,
294
294
  type: TxRadioButton,
295
295
  decorators: [{
@@ -544,7 +544,7 @@ var TxRadioGroup = class TxRadioGroup extends TxFormControlBase {
544
544
  };
545
545
  static ɵfac = i0.ɵɵngDeclareFactory({
546
546
  minVersion: "12.0.0",
547
- version: "22.2.5",
547
+ version: "22.2.6",
548
548
  ngImport: i0,
549
549
  type: TxRadioGroup,
550
550
  deps: null,
@@ -552,7 +552,7 @@ var TxRadioGroup = class TxRadioGroup extends TxFormControlBase {
552
552
  });
553
553
  static ɵcmp = i0.ɵɵngDeclareComponent({
554
554
  minVersion: "17.2.0",
555
- version: "22.2.5",
555
+ version: "22.2.6",
556
556
  type: TxRadioGroup,
557
557
  isStandalone: true,
558
558
  selector: "tx-radio-group",
@@ -691,7 +691,7 @@ var TxRadioGroup = class TxRadioGroup extends TxFormControlBase {
691
691
  };
692
692
  i0.ɵɵngDeclareClassMetadata({
693
693
  minVersion: "12.0.0",
694
- version: "22.2.5",
694
+ version: "22.2.6",
695
695
  ngImport: i0,
696
696
  type: TxRadioGroup,
697
697
  decorators: [{
@@ -15,7 +15,7 @@ var TxRatingOnIconTemplate = class TxRatingOnIconTemplate {
15
15
  }
16
16
  static ɵfac = i0.ɵɵngDeclareFactory({
17
17
  minVersion: "12.0.0",
18
- version: "22.2.5",
18
+ version: "22.2.6",
19
19
  ngImport: i0,
20
20
  type: TxRatingOnIconTemplate,
21
21
  deps: [],
@@ -23,7 +23,7 @@ var TxRatingOnIconTemplate = class TxRatingOnIconTemplate {
23
23
  });
24
24
  static ɵdir = i0.ɵɵngDeclareDirective({
25
25
  minVersion: "14.0.0",
26
- version: "22.2.5",
26
+ version: "22.2.6",
27
27
  type: TxRatingOnIconTemplate,
28
28
  isStandalone: true,
29
29
  selector: "ng-template[txRatingOnIcon]",
@@ -32,7 +32,7 @@ var TxRatingOnIconTemplate = class TxRatingOnIconTemplate {
32
32
  };
33
33
  i0.ɵɵngDeclareClassMetadata({
34
34
  minVersion: "12.0.0",
35
- version: "22.2.5",
35
+ version: "22.2.6",
36
36
  ngImport: i0,
37
37
  type: TxRatingOnIconTemplate,
38
38
  decorators: [{
@@ -47,7 +47,7 @@ var TxRatingOffIconTemplate = class TxRatingOffIconTemplate {
47
47
  }
48
48
  static ɵfac = i0.ɵɵngDeclareFactory({
49
49
  minVersion: "12.0.0",
50
- version: "22.2.5",
50
+ version: "22.2.6",
51
51
  ngImport: i0,
52
52
  type: TxRatingOffIconTemplate,
53
53
  deps: [],
@@ -55,7 +55,7 @@ var TxRatingOffIconTemplate = class TxRatingOffIconTemplate {
55
55
  });
56
56
  static ɵdir = i0.ɵɵngDeclareDirective({
57
57
  minVersion: "14.0.0",
58
- version: "22.2.5",
58
+ version: "22.2.6",
59
59
  type: TxRatingOffIconTemplate,
60
60
  isStandalone: true,
61
61
  selector: "ng-template[txRatingOffIcon]",
@@ -64,7 +64,7 @@ var TxRatingOffIconTemplate = class TxRatingOffIconTemplate {
64
64
  };
65
65
  i0.ɵɵngDeclareClassMetadata({
66
66
  minVersion: "12.0.0",
67
- version: "22.2.5",
67
+ version: "22.2.6",
68
68
  ngImport: i0,
69
69
  type: TxRatingOffIconTemplate,
70
70
  decorators: [{
@@ -219,7 +219,7 @@ var TxRating = class TxRating extends TxFormControlBase {
219
219
  }
220
220
  static ɵfac = i0.ɵɵngDeclareFactory({
221
221
  minVersion: "12.0.0",
222
- version: "22.2.5",
222
+ version: "22.2.6",
223
223
  ngImport: i0,
224
224
  type: TxRating,
225
225
  deps: null,
@@ -227,7 +227,7 @@ var TxRating = class TxRating extends TxFormControlBase {
227
227
  });
228
228
  static ɵcmp = i0.ɵɵngDeclareComponent({
229
229
  minVersion: "17.0.0",
230
- version: "22.2.5",
230
+ version: "22.2.6",
231
231
  type: TxRating,
232
232
  isStandalone: true,
233
233
  selector: "tx-rating",
@@ -390,7 +390,7 @@ var TxRating = class TxRating extends TxFormControlBase {
390
390
  usesInheritance: true,
391
391
  ngImport: i0,
392
392
  template: "<span\n class=\"tx-rating__stars\"\n role=\"slider\"\n [class]=\"passThrough().stars?.class\"\n [style]=\"passThrough().stars?.style\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"stars()\"\n [attr.aria-valuenow]=\"value() ?? 0\"\n [attr.aria-valuetext]=\"valueText()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (click)=\"onClick($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n>\n @for (index of indexes(); track index) {\n <span\n class=\"tx-rating__star\"\n [class.tx-rating__star--active]=\"fill(index) > 0\"\n [class]=\"passThrough().star?.class\"\n [style]=\"passThrough().star?.style\"\n [attr.data-index]=\"index\"\n >\n <span class=\"tx-rating__off\" aria-hidden=\"true\">\n @if (offTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: index }\" />\n } @else if (offIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"offIcon()\"></span>\n }\n </span>\n <span class=\"tx-rating__on\" aria-hidden=\"true\" [style.width.%]=\"fill(index)\">\n @if (onTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: index }\" />\n } @else if (onIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"onIcon()\"></span>\n }\n </span>\n </span>\n }\n</span>\n@if (clearable() && isEditable() && value()) {\n <button\n type=\"button\"\n class=\"tx-rating__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"clearLabel() ? null : translations().clear\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n @if (clearLabel()) {\n <span>{{ clearLabel() }}</span>\n }\n </button>\n}\n",
393
- styles: [":host{display:inline-flex;align-items:center;vertical-align:middle}.tx-rating__stars{display:inline-flex;align-items:center;line-height:0}.tx-rating__star{position:relative;display:block;flex-shrink:0;width:1em;height:1em}.tx-rating__off,.tx-rating__on{position:absolute;top:0;left:0;display:flex;align-items:center;height:1em;overflow:hidden;line-height:1}.tx-rating__off{width:1em}.tx-rating__off>*,.tx-rating__on>*{flex-shrink:0;width:1em;height:1em}:host([data-styled]){--_size: var(--tx-rating-icon-size);--_gap: var(--tx-rating-gap);gap:var(--tx-rating-clear-gap)}:host([data-styled][data-size=small]){--_size: var(--tx-rating-sm-icon-size);--_gap: var(--tx-rating-sm-gap)}:host([data-styled][data-size=large]){--_size: var(--tx-rating-lg-icon-size);--_gap: var(--tx-rating-lg-gap)}:host([data-styled]) .tx-rating__stars{gap:var(--_gap);border-radius:var(--tx-rating-border-radius);outline:none;font-size:var(--_size)}:host([data-styled]) .tx-rating__stars:focus-visible{outline:var(--tx-rating-focus-ring-width) solid var(--tx-rating-focus-ring-color);outline-offset:var(--tx-rating-focus-ring-offset)}:host([data-styled]) .tx-rating__star{color:var(--tx-rating-color);cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:scale(var(--tx-rating-hover-scale))}:host([data-styled]) .tx-rating__on{color:var(--tx-rating-active-color);transition:color var(--tx-rating-transition-duration)}:host([data-styled].tx-rating--preview) .tx-rating__on{color:var(--tx-rating-hover-color)}:host([data-styled].tx-rating--readonly) .tx-rating__star,:host([data-styled].tx-rating--disabled) .tx-rating__star{cursor:default}:host([data-styled].tx-rating--disabled) .tx-rating__stars{opacity:var(--tx-rating-disabled-opacity)}:host([data-styled].tx-rating--invalid) .tx-rating__star{color:var(--tx-form-field-invalid-border-color)}:host([data-styled]) .tx-rating__clear{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-rating-clear-color);font:inherit;font-size:var(--tx-rating-clear-font-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-rating__clear:hover{color:var(--tx-rating-clear-hover-color)}:host([data-styled]) .tx-rating__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rating__on,:host([data-styled]) .tx-rating__star{transition:none}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:none}}\n"],
393
+ styles: [":host{display:inline-flex;align-items:center;vertical-align:middle}.tx-rating__stars{display:inline-flex;align-items:center;line-height:0}.tx-rating__star{position:relative;display:block;flex-shrink:0;width:1em;height:1em}.tx-rating__off,.tx-rating__on{position:absolute;top:0;left:0;display:flex;align-items:center;height:1em;overflow:hidden;line-height:1}.tx-rating__off{width:1em}.tx-rating__off>*,.tx-rating__on>*{flex-shrink:0;width:1em;height:1em}:host([data-styled]){--_size: var(--tx-rating-icon-size);--_gap: var(--tx-rating-gap);gap:var(--tx-rating-clear-gap)}:host([data-styled][data-size=small]){--_size: var(--tx-rating-sm-icon-size);--_gap: var(--tx-rating-sm-gap)}:host([data-styled][data-size=large]){--_size: var(--tx-rating-lg-icon-size);--_gap: var(--tx-rating-lg-gap)}:host([data-styled]) .tx-rating__stars{gap:var(--_gap);border-radius:var(--tx-rating-border-radius);outline:none;font-size:var(--_size)}:host([data-styled]) .tx-rating__stars:focus-visible{outline:var(--tx-rating-focus-ring-width) solid var(--tx-rating-focus-ring-color);outline-offset:var(--tx-rating-focus-ring-offset)}:host([data-styled]) .tx-rating__star{color:var(--tx-rating-color);cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:scale(var(--tx-rating-hover-scale))}:host([data-styled]) .tx-rating__on{color:var(--tx-rating-active-color);transition:color var(--tx-rating-transition-duration)}:host([data-styled].tx-rating--preview) .tx-rating__on{color:var(--tx-rating-hover-color)}:host([data-styled].tx-rating--readonly) .tx-rating__star,:host([data-styled].tx-rating--disabled) .tx-rating__star{cursor:default}:host([data-styled].tx-rating--disabled) .tx-rating__stars{opacity:var(--tx-rating-disabled-opacity)}:host([data-styled].tx-rating--invalid) .tx-rating__star{color:var(--tx-form-field-invalid-border-color)}:host([data-styled]) .tx-rating__clear{display:inline-flex;align-items:center;gap:var(--tx-space-1);padding:var(--tx-rating-clear-padding);border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-rating-clear-color);font:inherit;font-size:var(--tx-rating-clear-font-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-rating__clear:hover{color:var(--tx-rating-clear-hover-color)}:host([data-styled]) .tx-rating__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rating__on,:host([data-styled]) .tx-rating__star{transition:none}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:none}}\n"],
394
394
  dependencies: [{
395
395
  kind: "directive",
396
396
  type: NgTemplateOutlet,
@@ -412,7 +412,7 @@ var TxRating = class TxRating extends TxFormControlBase {
412
412
  };
413
413
  i0.ɵɵngDeclareClassMetadata({
414
414
  minVersion: "12.0.0",
415
- version: "22.2.5",
415
+ version: "22.2.6",
416
416
  ngImport: i0,
417
417
  type: TxRating,
418
418
  decorators: [{
@@ -439,7 +439,7 @@ i0.ɵɵngDeclareClassMetadata({
439
439
  },
440
440
  viewProviders: [provideTxIconDefaults(RATING_ICON_DEFAULTS)],
441
441
  template: "<span\n class=\"tx-rating__stars\"\n role=\"slider\"\n [class]=\"passThrough().stars?.class\"\n [style]=\"passThrough().stars?.style\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"stars()\"\n [attr.aria-valuenow]=\"value() ?? 0\"\n [attr.aria-valuetext]=\"valueText()\"\n [attr.aria-readonly]=\"readonly() || null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur()\"\n (click)=\"onClick($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerleave)=\"onPointerLeave()\"\n>\n @for (index of indexes(); track index) {\n <span\n class=\"tx-rating__star\"\n [class.tx-rating__star--active]=\"fill(index) > 0\"\n [class]=\"passThrough().star?.class\"\n [style]=\"passThrough().star?.style\"\n [attr.data-index]=\"index\"\n >\n <span class=\"tx-rating__off\" aria-hidden=\"true\">\n @if (offTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: index }\" />\n } @else if (offIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"offIcon()\"></span>\n }\n </span>\n <span class=\"tx-rating__on\" aria-hidden=\"true\" [style.width.%]=\"fill(index)\">\n @if (onTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: index }\" />\n } @else if (onIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"onIcon()\"></span>\n }\n </span>\n </span>\n }\n</span>\n@if (clearable() && isEditable() && value()) {\n <button\n type=\"button\"\n class=\"tx-rating__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"clearLabel() ? null : translations().clear\"\n (click)=\"clear($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n @if (clearLabel()) {\n <span>{{ clearLabel() }}</span>\n }\n </button>\n}\n",
442
- styles: [":host{display:inline-flex;align-items:center;vertical-align:middle}.tx-rating__stars{display:inline-flex;align-items:center;line-height:0}.tx-rating__star{position:relative;display:block;flex-shrink:0;width:1em;height:1em}.tx-rating__off,.tx-rating__on{position:absolute;top:0;left:0;display:flex;align-items:center;height:1em;overflow:hidden;line-height:1}.tx-rating__off{width:1em}.tx-rating__off>*,.tx-rating__on>*{flex-shrink:0;width:1em;height:1em}:host([data-styled]){--_size: var(--tx-rating-icon-size);--_gap: var(--tx-rating-gap);gap:var(--tx-rating-clear-gap)}:host([data-styled][data-size=small]){--_size: var(--tx-rating-sm-icon-size);--_gap: var(--tx-rating-sm-gap)}:host([data-styled][data-size=large]){--_size: var(--tx-rating-lg-icon-size);--_gap: var(--tx-rating-lg-gap)}:host([data-styled]) .tx-rating__stars{gap:var(--_gap);border-radius:var(--tx-rating-border-radius);outline:none;font-size:var(--_size)}:host([data-styled]) .tx-rating__stars:focus-visible{outline:var(--tx-rating-focus-ring-width) solid var(--tx-rating-focus-ring-color);outline-offset:var(--tx-rating-focus-ring-offset)}:host([data-styled]) .tx-rating__star{color:var(--tx-rating-color);cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:scale(var(--tx-rating-hover-scale))}:host([data-styled]) .tx-rating__on{color:var(--tx-rating-active-color);transition:color var(--tx-rating-transition-duration)}:host([data-styled].tx-rating--preview) .tx-rating__on{color:var(--tx-rating-hover-color)}:host([data-styled].tx-rating--readonly) .tx-rating__star,:host([data-styled].tx-rating--disabled) .tx-rating__star{cursor:default}:host([data-styled].tx-rating--disabled) .tx-rating__stars{opacity:var(--tx-rating-disabled-opacity)}:host([data-styled].tx-rating--invalid) .tx-rating__star{color:var(--tx-form-field-invalid-border-color)}:host([data-styled]) .tx-rating__clear{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-rating-clear-color);font:inherit;font-size:var(--tx-rating-clear-font-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-rating__clear:hover{color:var(--tx-rating-clear-hover-color)}:host([data-styled]) .tx-rating__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rating__on,:host([data-styled]) .tx-rating__star{transition:none}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:none}}\n"]
442
+ styles: [":host{display:inline-flex;align-items:center;vertical-align:middle}.tx-rating__stars{display:inline-flex;align-items:center;line-height:0}.tx-rating__star{position:relative;display:block;flex-shrink:0;width:1em;height:1em}.tx-rating__off,.tx-rating__on{position:absolute;top:0;left:0;display:flex;align-items:center;height:1em;overflow:hidden;line-height:1}.tx-rating__off{width:1em}.tx-rating__off>*,.tx-rating__on>*{flex-shrink:0;width:1em;height:1em}:host([data-styled]){--_size: var(--tx-rating-icon-size);--_gap: var(--tx-rating-gap);gap:var(--tx-rating-clear-gap)}:host([data-styled][data-size=small]){--_size: var(--tx-rating-sm-icon-size);--_gap: var(--tx-rating-sm-gap)}:host([data-styled][data-size=large]){--_size: var(--tx-rating-lg-icon-size);--_gap: var(--tx-rating-lg-gap)}:host([data-styled]) .tx-rating__stars{gap:var(--_gap);border-radius:var(--tx-rating-border-radius);outline:none;font-size:var(--_size)}:host([data-styled]) .tx-rating__stars:focus-visible{outline:var(--tx-rating-focus-ring-width) solid var(--tx-rating-focus-ring-color);outline-offset:var(--tx-rating-focus-ring-offset)}:host([data-styled]) .tx-rating__star{color:var(--tx-rating-color);cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:scale(var(--tx-rating-hover-scale))}:host([data-styled]) .tx-rating__on{color:var(--tx-rating-active-color);transition:color var(--tx-rating-transition-duration)}:host([data-styled].tx-rating--preview) .tx-rating__on{color:var(--tx-rating-hover-color)}:host([data-styled].tx-rating--readonly) .tx-rating__star,:host([data-styled].tx-rating--disabled) .tx-rating__star{cursor:default}:host([data-styled].tx-rating--disabled) .tx-rating__stars{opacity:var(--tx-rating-disabled-opacity)}:host([data-styled].tx-rating--invalid) .tx-rating__star{color:var(--tx-form-field-invalid-border-color)}:host([data-styled]) .tx-rating__clear{display:inline-flex;align-items:center;gap:var(--tx-space-1);padding:var(--tx-rating-clear-padding);border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-rating-clear-color);font:inherit;font-size:var(--tx-rating-clear-font-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-rating__clear:hover{color:var(--tx-rating-clear-hover-color)}:host([data-styled]) .tx-rating__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rating__on,:host([data-styled]) .tx-rating__star{transition:none}:host([data-styled]:not(.tx-rating--readonly):not(.tx-rating--disabled)) .tx-rating__star:hover{transform:none}}\n"]
443
443
  }]
444
444
  }],
445
445
  propDecorators: {