@tectra-ng/ui 0.2.5 → 0.3.0

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 (342) hide show
  1. package/README.md +1 -0
  2. package/fesm2022/tectra-ng-ui-accordion.mjs +25 -7
  3. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-ui-amount.mjs +8 -2
  5. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-analog-clock.mjs +4 -2
  7. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-autocomplete.mjs +18 -3
  9. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-avatar.mjs +27 -4
  11. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-badge.mjs +8 -2
  13. package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +15 -4
  15. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-button.mjs +17 -4
  17. package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-card.mjs +8 -2
  19. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-carousel.mjs +13 -2
  21. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-cascade-select.mjs +19 -3
  23. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-checkbox.mjs +19 -4
  25. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-chip.mjs +13 -5
  27. package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-chips-input.mjs +17 -3
  29. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-color-picker.mjs +15 -3
  31. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-confirm.mjs +17 -2
  33. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-countdown.mjs +8 -2
  35. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-country-select.mjs +4 -0
  37. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-country.mjs +12 -2
  39. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-data-view.mjs +16 -3
  41. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-datepicker.mjs +22 -3
  43. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-dialog.mjs +33 -5
  45. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-divider.mjs +4 -2
  47. package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-email-suggestion.mjs +8 -2
  49. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-export.mjs +32 -6
  51. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-field.mjs +7 -2
  53. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-fieldset.mjs +8 -3
  55. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-file-upload.mjs +24 -3
  57. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-galleria.mjs +14 -3
  59. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  60. package/fesm2022/tectra-ng-ui-highlight-text.mjs +4 -2
  61. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  62. package/fesm2022/tectra-ng-ui-icon-field.mjs +25 -2
  63. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  64. package/fesm2022/tectra-ng-ui-image.mjs +16 -3
  65. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  66. package/fesm2022/tectra-ng-ui-input-group.mjs +9 -0
  67. package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
  68. package/fesm2022/tectra-ng-ui-input-mask.mjs +4 -2
  69. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-input-number.mjs +21 -4
  71. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  72. package/fesm2022/tectra-ng-ui-input-otp.mjs +8 -2
  73. package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -1
  74. package/fesm2022/tectra-ng-ui-input.mjs +8 -2
  75. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  76. package/fesm2022/tectra-ng-ui-key-filter.mjs +4 -2
  77. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  78. package/fesm2022/tectra-ng-ui-knob.mjs +11 -2
  79. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
  80. package/fesm2022/tectra-ng-ui-label.mjs +19 -1
  81. package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
  82. package/fesm2022/tectra-ng-ui-link.mjs +22 -4
  83. package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
  84. package/fesm2022/tectra-ng-ui-list-input.mjs +18 -2
  85. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  86. package/fesm2022/tectra-ng-ui-listbox.mjs +17 -3
  87. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
  88. package/fesm2022/tectra-ng-ui-mention-textarea.mjs +12 -2
  89. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  90. package/fesm2022/tectra-ng-ui-menu.mjs +26 -6
  91. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  92. package/fesm2022/tectra-ng-ui-menubar.mjs +14 -3
  93. package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -1
  94. package/fesm2022/tectra-ng-ui-message.mjs +25 -5
  95. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  96. package/fesm2022/tectra-ng-ui-month-calendar.mjs +8 -2
  97. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  98. package/fesm2022/tectra-ng-ui-multiselect.mjs +20 -3
  99. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  100. package/fesm2022/tectra-ng-ui-overlay-badge.mjs +8 -2
  101. package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -1
  102. package/fesm2022/tectra-ng-ui-paginator.mjs +17 -3
  103. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  104. package/fesm2022/tectra-ng-ui-panel-menu.mjs +14 -4
  105. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  106. package/fesm2022/tectra-ng-ui-panel.mjs +13 -5
  107. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
  108. package/fesm2022/tectra-ng-ui-password.mjs +18 -3
  109. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
  110. package/fesm2022/tectra-ng-ui-pill.mjs +13 -5
  111. package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
  112. package/fesm2022/tectra-ng-ui-popover.mjs +12 -4
  113. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -1
  114. package/fesm2022/tectra-ng-ui-progress-bar.mjs +8 -2
  115. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -1
  116. package/fesm2022/tectra-ng-ui-progress-spinner.mjs +8 -2
  117. package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/tectra-ng-ui-radio-button.mjs +14 -2
  119. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  120. package/fesm2022/tectra-ng-ui-rating.mjs +16 -4
  121. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
  122. package/fesm2022/tectra-ng-ui-scroll-panel.mjs +4 -2
  123. package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/tectra-ng-ui-select.mjs +26 -3
  125. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  126. package/fesm2022/tectra-ng-ui-skeleton.mjs +11 -2
  127. package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -1
  128. package/fesm2022/tectra-ng-ui-slider.mjs +4 -2
  129. package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
  130. package/fesm2022/tectra-ng-ui-sparkline.mjs +8 -2
  131. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  132. package/fesm2022/tectra-ng-ui-speed-dial.mjs +12 -2
  133. package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -1
  134. package/fesm2022/tectra-ng-ui-split-button.mjs +8 -2
  135. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
  136. package/fesm2022/tectra-ng-ui-splitter.mjs +5 -2
  137. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  138. package/fesm2022/tectra-ng-ui-stat-tiles.mjs +17 -3
  139. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  140. package/fesm2022/tectra-ng-ui-status-icon.mjs +17 -5
  141. package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
  142. package/fesm2022/tectra-ng-ui-stepper.mjs +37 -7
  143. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  144. package/fesm2022/tectra-ng-ui-table.mjs +1180 -1262
  145. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  146. package/fesm2022/tectra-ng-ui-tabs.mjs +25 -4
  147. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  148. package/fesm2022/tectra-ng-ui-tag.mjs +19 -4
  149. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
  150. package/fesm2022/tectra-ng-ui-textarea.mjs +6 -2
  151. package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
  152. package/fesm2022/tectra-ng-ui-timeline.mjs +8 -2
  153. package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -1
  154. package/fesm2022/tectra-ng-ui-toast.mjs +20 -4
  155. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  156. package/fesm2022/tectra-ng-ui-toggle-button.mjs +7 -5
  157. package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -1
  158. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +6 -4
  159. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  160. package/fesm2022/tectra-ng-ui-toolbar.mjs +4 -2
  161. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  162. package/fesm2022/tectra-ng-ui-tooltip.mjs +5 -2
  163. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  164. package/fesm2022/tectra-ng-ui-tree-select.mjs +23 -3
  165. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  166. package/fesm2022/tectra-ng-ui-tree-table.mjs +107 -213
  167. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  168. package/fesm2022/tectra-ng-ui-tree.mjs +20 -3
  169. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  170. package/fesm2022/tectra-ng-ui-truncate-text.mjs +14 -3
  171. package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
  172. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +8 -3
  173. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  174. package/package.json +4 -4
  175. package/types/tectra-ng-ui-accordion.d.ts +4 -0
  176. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-amount.d.ts +1 -0
  178. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  179. package/types/tectra-ng-ui-analog-clock.d.ts +1 -0
  180. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  181. package/types/tectra-ng-ui-autocomplete.d.ts +1 -0
  182. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-avatar.d.ts +3 -0
  184. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-badge.d.ts +1 -0
  186. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-breadcrumb.d.ts +1 -0
  188. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-button.d.ts +1 -0
  190. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-card.d.ts +1 -0
  192. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-carousel.d.ts +1 -0
  194. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-cascade-select.d.ts +1 -0
  196. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  197. package/types/tectra-ng-ui-checkbox.d.ts +2 -0
  198. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  199. package/types/tectra-ng-ui-chip.d.ts +1 -0
  200. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  201. package/types/tectra-ng-ui-chips-input.d.ts +1 -0
  202. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  203. package/types/tectra-ng-ui-color-picker.d.ts +1 -0
  204. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  205. package/types/tectra-ng-ui-confirm.d.ts +2 -0
  206. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  207. package/types/tectra-ng-ui-countdown.d.ts +1 -0
  208. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  209. package/types/tectra-ng-ui-country-select.d.ts +1 -0
  210. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  211. package/types/tectra-ng-ui-country.d.ts +1 -0
  212. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  213. package/types/tectra-ng-ui-data-view.d.ts +2 -0
  214. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-datepicker.d.ts +1 -0
  216. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  217. package/types/tectra-ng-ui-dialog.d.ts +7 -0
  218. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  219. package/types/tectra-ng-ui-divider.d.ts +1 -0
  220. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  221. package/types/tectra-ng-ui-email-suggestion.d.ts +1 -0
  222. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  223. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  224. package/types/tectra-ng-ui-field.d.ts +1 -0
  225. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  226. package/types/tectra-ng-ui-fieldset.d.ts +1 -0
  227. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  228. package/types/tectra-ng-ui-file-upload.d.ts +1 -0
  229. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  230. package/types/tectra-ng-ui-galleria.d.ts +1 -0
  231. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  232. package/types/tectra-ng-ui-highlight-text.d.ts +1 -0
  233. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  234. package/types/tectra-ng-ui-icon-field.d.ts +6 -2
  235. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  236. package/types/tectra-ng-ui-image.d.ts +1 -0
  237. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  238. package/types/tectra-ng-ui-input-group.d.ts +2 -0
  239. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  240. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  241. package/types/tectra-ng-ui-input-number.d.ts +1 -0
  242. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  243. package/types/tectra-ng-ui-input-otp.d.ts +1 -0
  244. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  245. package/types/tectra-ng-ui-input.d.ts +1 -0
  246. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  247. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  248. package/types/tectra-ng-ui-knob.d.ts +1 -0
  249. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  250. package/types/tectra-ng-ui-label.d.ts +3 -0
  251. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  252. package/types/tectra-ng-ui-link.d.ts +2 -0
  253. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  254. package/types/tectra-ng-ui-list-input.d.ts +1 -0
  255. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  256. package/types/tectra-ng-ui-listbox.d.ts +1 -0
  257. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  258. package/types/tectra-ng-ui-mention-textarea.d.ts +1 -0
  259. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  260. package/types/tectra-ng-ui-menu.d.ts +4 -0
  261. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  262. package/types/tectra-ng-ui-menubar.d.ts +1 -0
  263. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  264. package/types/tectra-ng-ui-message.d.ts +3 -0
  265. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  266. package/types/tectra-ng-ui-month-calendar.d.ts +1 -0
  267. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  268. package/types/tectra-ng-ui-multiselect.d.ts +1 -0
  269. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  270. package/types/tectra-ng-ui-overlay-badge.d.ts +1 -0
  271. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  272. package/types/tectra-ng-ui-paginator.d.ts +1 -0
  273. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  274. package/types/tectra-ng-ui-panel-menu.d.ts +1 -0
  275. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  276. package/types/tectra-ng-ui-panel.d.ts +1 -0
  277. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  278. package/types/tectra-ng-ui-password.d.ts +1 -0
  279. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  280. package/types/tectra-ng-ui-pill.d.ts +1 -0
  281. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  282. package/types/tectra-ng-ui-popover.d.ts +2 -0
  283. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  284. package/types/tectra-ng-ui-progress-bar.d.ts +1 -0
  285. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  286. package/types/tectra-ng-ui-progress-spinner.d.ts +1 -0
  287. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  288. package/types/tectra-ng-ui-radio-button.d.ts +2 -0
  289. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  290. package/types/tectra-ng-ui-rating.d.ts +1 -0
  291. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  292. package/types/tectra-ng-ui-scroll-panel.d.ts +1 -0
  293. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  294. package/types/tectra-ng-ui-select.d.ts +3 -1
  295. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  296. package/types/tectra-ng-ui-skeleton.d.ts +2 -0
  297. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  298. package/types/tectra-ng-ui-slider.d.ts +1 -0
  299. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  300. package/types/tectra-ng-ui-sparkline.d.ts +1 -0
  301. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  302. package/types/tectra-ng-ui-speed-dial.d.ts +1 -0
  303. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  304. package/types/tectra-ng-ui-split-button.d.ts +1 -0
  305. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  306. package/types/tectra-ng-ui-splitter.d.ts +2 -0
  307. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  308. package/types/tectra-ng-ui-stat-tiles.d.ts +2 -0
  309. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  310. package/types/tectra-ng-ui-status-icon.d.ts +1 -0
  311. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  312. package/types/tectra-ng-ui-stepper.d.ts +7 -0
  313. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  314. package/types/tectra-ng-ui-table.d.ts +15 -2
  315. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  316. package/types/tectra-ng-ui-tabs.d.ts +5 -0
  317. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  318. package/types/tectra-ng-ui-tag.d.ts +2 -0
  319. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  320. package/types/tectra-ng-ui-textarea.d.ts +2 -0
  321. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  322. package/types/tectra-ng-ui-timeline.d.ts +1 -0
  323. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  324. package/types/tectra-ng-ui-toast.d.ts +1 -0
  325. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  326. package/types/tectra-ng-ui-toggle-button.d.ts +1 -0
  327. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  328. package/types/tectra-ng-ui-toggle-switch.d.ts +1 -0
  329. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  330. package/types/tectra-ng-ui-toolbar.d.ts +1 -0
  331. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  332. package/types/tectra-ng-ui-tooltip.d.ts +2 -0
  333. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  334. package/types/tectra-ng-ui-tree-select.d.ts +1 -0
  335. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  336. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  337. package/types/tectra-ng-ui-tree.d.ts +1 -0
  338. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  339. package/types/tectra-ng-ui-truncate-text.d.ts +1 -0
  340. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  341. package/types/tectra-ng-ui-virtual-scroller.d.ts +1 -0
  342. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-country-select.mjs","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.component.ts","../../../../packages/ui/country-select/src/country-select.component.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, inject, input, output } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxFormControlBase } from '@tectra-ng/core/forms';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSelectTokens } from '@tectra-ng/themes';\nimport { TX_COUNTRY_CODES, TxCountry, TxFlagShape, countryName } from '@tectra-ng/ui/country';\nimport { TxMultiselect } from '@tectra-ng/ui/multiselect';\nimport { TxFieldVariant, TxSelect, TxSelectItem, TxSelectOptionTemplate, TxSelectSize, TxSelectValueTemplate } from '@tectra-ng/ui/select';\nimport { TxCountryItem, TxCountryOption, TxCountrySort } from './country-select.types';\n\n@Component({\n selector: 'tx-country-select',\n imports: [FormsModule, NgTemplateOutlet, TxSelect, TxMultiselect, TxSelectOptionTemplate, TxSelectValueTemplate, TxCountry],\n templateUrl: './country-select.component.html',\n styleUrl: './country-select.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCountrySelect), multi: true }],\n host: {\n class: 'tx-country-select',\n '[attr.data-styled]': 'unstyled() ? null : true',\n },\n})\nexport class TxCountrySelect extends TxFormControlBase<string | string[]> {\n private locale = inject(TxLocaleService);\n\n readonly options = input<readonly (string | TxCountryOption)[] | undefined>(undefined);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filter = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly sort = input<TxCountrySort>('name');\n readonly shape = input<TxFlagShape>('rectangle');\n readonly maxFlags = input<number>(3);\n readonly virtualScrollThreshold = input<number>(50);\n readonly placeholder = input<string>('');\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = 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<TxSelectSize>('medium');\n readonly variant = input<TxFieldVariant>('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<TectraSelectTokens> | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<string | string[] | null>();\n\n readonly items = computed<TxCountryItem[]>(() => {\n const locale = this.locale.locale().intl;\n const items = (this.options() ?? TX_COUNTRY_CODES).map((option) => {\n const entry: TxCountryOption = typeof option === 'string' ? { code: option } : option;\n const code = entry.code.trim().toUpperCase();\n return {\n code,\n value: entry.value ?? code,\n label: entry.label ?? countryName(code, locale),\n count: entry.count ?? null,\n hint: entry.hint ?? '',\n disabled: !!entry.disabled,\n };\n });\n if (this.sort() === 'name') {\n const collator = new Intl.Collator(locale);\n items.sort((a, b) => collator.compare(a.label, b.label));\n }\n return items;\n });\n readonly virtual = computed(() => this.items().length > this.virtualScrollThreshold());\n\n extraCount(items: TxSelectItem[]): number {\n return Math.max(0, items.length - this.maxFlags());\n }\n\n firstFlags(items: TxSelectItem[]): TxCountryItem[] {\n return items.slice(0, this.maxFlags()).map((item) => item.option as TxCountryItem);\n }\n\n onModelChange(value: string | string[] | null): void {\n this.updateValue(value);\n this.changed.emit(value);\n }\n\n onClosed(): void {\n this.markTouched();\n }\n}\n","@if (multiple()) {\n <tx-multiselect\n [options]=\"items()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [optionDisabled]=\"'disabled'\"\n [filter]=\"filter()\"\n [filterBy]=\"'label,code'\"\n [virtualScroll]=\"virtual()\"\n [placeholder]=\"placeholder()\"\n [showClear]=\"showClear()\"\n [loading]=\"loading()\"\n [inputId]=\"inputId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"invalid()\"\n [readonly]=\"readonly()\"\n [dt]=\"dt()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"value()\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"onModelChange($event)\"\n (closed)=\"onClosed()\"\n >\n <ng-template txSelectOption let-item>\n <ng-container [ngTemplateOutlet]=\"option\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </ng-template>\n <ng-template txSelectValue let-selected>\n <span class=\"tx-country-select__flags\" [class.tx-country-select__flags--styled]=\"!unstyled()\">\n @for (item of firstFlags(selected); track item.value) {\n <tx-country [country]=\"item.code\" [name]=\"item.label\" [showName]=\"selected.length === 1\" [shape]=\"shape()\" />\n }\n @if (extraCount(selected); as extra) {\n <span class=\"tx-country-select__more\">+{{ extra }}</span>\n }\n </span>\n </ng-template>\n </tx-multiselect>\n} @else {\n <tx-select\n [options]=\"items()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [optionDisabled]=\"'disabled'\"\n [filter]=\"filter()\"\n [filterBy]=\"'label,code'\"\n [virtualScroll]=\"virtual()\"\n [placeholder]=\"placeholder()\"\n [showClear]=\"showClear()\"\n [loading]=\"loading()\"\n [inputId]=\"inputId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"invalid()\"\n [readonly]=\"readonly()\"\n [dt]=\"dt()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"value()\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"onModelChange($event)\"\n (closed)=\"onClosed()\"\n >\n <ng-template txSelectOption let-item>\n <ng-container [ngTemplateOutlet]=\"option\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </ng-template>\n <ng-template txSelectValue let-item>\n <tx-country [country]=\"item.code\" [name]=\"item.label\" [shape]=\"shape()\" />\n </ng-template>\n </tx-select>\n}\n\n<ng-template #option let-item>\n <span class=\"tx-country-select__option\" [class.tx-country-select__option--styled]=\"!unstyled()\">\n <tx-country class=\"tx-country-select__country\" [country]=\"item.code\" [name]=\"item.label\" [shape]=\"shape()\" />\n @if (item.hint) {\n <span class=\"tx-country-select__hint\">{{ item.hint }}</span>\n }\n @if (item.count !== null) {\n <span class=\"tx-country-select__count\">{{ item.count }}</span>\n }\n </span>\n</ng-template>\n"],"mappings":";;;;;;;;;;;AAwBA,IAAa,kBAAb,MAAa,wBAAwB,kBAAoC;CAC/D,SAAS,OAAO,eAAe;CAE9B,UAAU,MAAyD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC7E,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,SAAS,MAAwB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAA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UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAQ,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,SAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAa,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,SAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAsB,UAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAqB,UAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAU/G,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAZ3B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,SACpB;IAAC;IAAa;IAAkB;IAAU;IAAe;IAAwB;IAAuB;GAAS;GAAC,iBAG1G,wBAAwB;GAAM,WACpC,CAAC;IAAE,SAAS;IAAmB,aAAa,iBAAgB,eAAgB;IAAG,OAAO;GAAI,CAAE;GAAC,MAClG;IACJ,OAAO;IACP,sBAAsB;GACvB;GAAA,UAAA;GAAA,QAAA,CAAA,i2BAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-country-select.mjs","names":[],"sources":["../../../../packages/ui/country-select/src/country-select.theme.ts","../../../../packages/ui/country-select/src/country-select.component.ts","../../../../packages/ui/country-select/src/country-select.component.html"],"sourcesContent":["import { countryTokens } from '@tectra-ng/themes';\n\nexport const COUNTRY_SELECT_THEME = {\n country: countryTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, booleanAttribute, computed, forwardRef, inject, input, output } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TxFormControlBase } from '@tectra-ng/core/forms';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraSelectTokens } from '@tectra-ng/themes';\nimport { TX_COUNTRY_CODES, TxCountry, TxFlagShape, countryName } from '@tectra-ng/ui/country';\nimport { TxMultiselect } from '@tectra-ng/ui/multiselect';\nimport { TxFieldVariant, TxSelect, TxSelectItem, TxSelectOptionTemplate, TxSelectSize, TxSelectValueTemplate } from '@tectra-ng/ui/select';\nimport { TxCountryItem, TxCountryOption, TxCountrySort } from './country-select.types';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { COUNTRY_SELECT_THEME } from './country-select.theme';\n\n@Component({\n selector: 'tx-country-select',\n imports: [FormsModule, NgTemplateOutlet, TxSelect, TxMultiselect, TxSelectOptionTemplate, TxSelectValueTemplate, TxCountry],\n templateUrl: './country-select.component.html',\n styleUrl: './country-select.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxCountrySelect), multi: true }],\n host: {\n class: 'tx-country-select',\n '[attr.data-styled]': 'unstyled() ? null : true',\n },\n})\nexport class TxCountrySelect extends TxFormControlBase<string | string[]> {\n private readonly countrySelectTheme = injectTokens(COUNTRY_SELECT_THEME);\n\n private locale = inject(TxLocaleService);\n\n readonly options = input<readonly (string | TxCountryOption)[] | undefined>(undefined);\n readonly multiple = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly filter = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly sort = input<TxCountrySort>('name');\n readonly shape = input<TxFlagShape>('rectangle');\n readonly maxFlags = input<number>(3);\n readonly virtualScrollThreshold = input<number>(50);\n readonly placeholder = input<string>('');\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loading = 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<TxSelectSize>('medium');\n readonly variant = input<TxFieldVariant>('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<TectraSelectTokens> | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly changed = output<string | string[] | null>();\n\n readonly items = computed<TxCountryItem[]>(() => {\n const locale = this.locale.locale().intl;\n const items = (this.options() ?? TX_COUNTRY_CODES).map((option) => {\n const entry: TxCountryOption = typeof option === 'string' ? { code: option } : option;\n const code = entry.code.trim().toUpperCase();\n return {\n code,\n value: entry.value ?? code,\n label: entry.label ?? countryName(code, locale),\n count: entry.count ?? null,\n hint: entry.hint ?? '',\n disabled: !!entry.disabled,\n };\n });\n if (this.sort() === 'name') {\n const collator = new Intl.Collator(locale);\n items.sort((a, b) => collator.compare(a.label, b.label));\n }\n return items;\n });\n readonly virtual = computed(() => this.items().length > this.virtualScrollThreshold());\n\n extraCount(items: TxSelectItem[]): number {\n return Math.max(0, items.length - this.maxFlags());\n }\n\n firstFlags(items: TxSelectItem[]): TxCountryItem[] {\n return items.slice(0, this.maxFlags()).map((item) => item.option as TxCountryItem);\n }\n\n onModelChange(value: string | string[] | null): void {\n this.updateValue(value);\n this.changed.emit(value);\n }\n\n onClosed(): void {\n this.markTouched();\n }\n}\n","@if (multiple()) {\n <tx-multiselect\n [options]=\"items()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [optionDisabled]=\"'disabled'\"\n [filter]=\"filter()\"\n [filterBy]=\"'label,code'\"\n [virtualScroll]=\"virtual()\"\n [placeholder]=\"placeholder()\"\n [showClear]=\"showClear()\"\n [loading]=\"loading()\"\n [inputId]=\"inputId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"invalid()\"\n [readonly]=\"readonly()\"\n [dt]=\"dt()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"value()\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"onModelChange($event)\"\n (closed)=\"onClosed()\"\n >\n <ng-template txSelectOption let-item>\n <ng-container [ngTemplateOutlet]=\"option\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </ng-template>\n <ng-template txSelectValue let-selected>\n <span class=\"tx-country-select__flags\" [class.tx-country-select__flags--styled]=\"!unstyled()\">\n @for (item of firstFlags(selected); track item.value) {\n <tx-country [country]=\"item.code\" [name]=\"item.label\" [showName]=\"selected.length === 1\" [shape]=\"shape()\" />\n }\n @if (extraCount(selected); as extra) {\n <span class=\"tx-country-select__more\">+{{ extra }}</span>\n }\n </span>\n </ng-template>\n </tx-multiselect>\n} @else {\n <tx-select\n [options]=\"items()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [optionDisabled]=\"'disabled'\"\n [filter]=\"filter()\"\n [filterBy]=\"'label,code'\"\n [virtualScroll]=\"virtual()\"\n [placeholder]=\"placeholder()\"\n [showClear]=\"showClear()\"\n [loading]=\"loading()\"\n [inputId]=\"inputId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [invalid]=\"invalid()\"\n [readonly]=\"readonly()\"\n [dt]=\"dt()\"\n [unstyled]=\"unstyled()\"\n [ngModel]=\"value()\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"onModelChange($event)\"\n (closed)=\"onClosed()\"\n >\n <ng-template txSelectOption let-item>\n <ng-container [ngTemplateOutlet]=\"option\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </ng-template>\n <ng-template txSelectValue let-item>\n <tx-country [country]=\"item.code\" [name]=\"item.label\" [shape]=\"shape()\" />\n </ng-template>\n </tx-select>\n}\n\n<ng-template #option let-item>\n <span class=\"tx-country-select__option\" [class.tx-country-select__option--styled]=\"!unstyled()\">\n <tx-country class=\"tx-country-select__country\" [country]=\"item.code\" [name]=\"item.label\" [shape]=\"shape()\" />\n @if (item.hint) {\n <span class=\"tx-country-select__hint\">{{ item.hint }}</span>\n }\n @if (item.count !== null) {\n <span class=\"tx-country-select__count\">{{ item.count }}</span>\n }\n </span>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,uBAAuB,EAClC,SAAS,cACV;ACsBD,IAAa,kBAAb,MAAa,wBAAwB,kBAAoC;CACtD,qBAAqB,aAAa,oBAAoB;CAE/D,SAAS,OAAO,eAAe;CAE9B,UAAU,MAAyD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC7E,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,SAAS,MAAwB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,SAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACpE,OAAO,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,QAAQ,MAAmB,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACvC,WAAW,MAAc,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC3B,yBAAyB,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,yBAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,cAAc,MAAc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AAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAqB,UAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAS,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAU/G,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAZ3B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAmB,SACpB;IAAC;IAAa;IAAkB;IAAU;IAAe;IAAwB;IAAuB;GAAS;GAAC,iBAG1G,wBAAwB;GAAM,WACpC,CAAC;IAAE,SAAS;IAAmB,aAAa,iBAAgB,eAAgB;IAAG,OAAO;GAAI,CAAE;GAAC,MAClG;IACJ,OAAO;IACP,sBAAsB;GACvB;GAAA,UAAA;GAAA,QAAA,CAAA,i2BAAA;EAAA,CAAA"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, InjectionToken, booleanAttribute, computed, effect, inject, input, signal } from "@angular/core";
3
- import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
3
+ import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
4
4
  import { TxLocaleService } from "@tectra-ng/core/i18n";
5
5
  import { optionalBoolean } from "@tectra-ng/core/utils";
6
- import { toStyleObject } from "@tectra-ng/themes";
6
+ import { countryTokens, toStyleObject } from "@tectra-ng/themes";
7
+ import { provideTxIconDefaults, txIconCircle, txIconCode, txIconFlag } from "@tectra-ng/icons";
7
8
  const TX_COUNTRY_CODES = "AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XK YE YT ZA ZM ZW".split(" ");
8
9
  const COUNTRY_CODE = /^[A-Z]{2}$/;
9
10
  const nameCache = /* @__PURE__ */ new Map();
@@ -41,7 +42,14 @@ function txFlagImages(url) {
41
42
  return typeof src === "string" ? { src } : src.then((value) => value ? { src: value } : null);
42
43
  };
43
44
  }
45
+ const COUNTRY_ICON_DEFAULTS = {
46
+ circle: txIconCircle,
47
+ code: txIconCode,
48
+ flag: txIconFlag
49
+ };
50
+ const COUNTRY_THEME = { country: countryTokens };
44
51
  var TxCountry = class TxCountry {
52
+ countryTheme = injectTokens(COUNTRY_THEME);
45
53
  locale = inject(TxLocaleService);
46
54
  resolver = inject(TX_FLAG_RESOLVER, { optional: true });
47
55
  country = input(void 0, ...ngDevMode ? [{ debugName: "country" }] : /* istanbul ignore next */ []);
@@ -223,6 +231,7 @@ var TxCountry = class TxCountry {
223
231
  `,
224
232
  isInline: true,
225
233
  styles: [":host{display:inline-flex;align-items:center;min-width:0;vertical-align:middle}.tx-country__flag{display:inline-block;flex:none}.tx-country__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]){--_size: var(--tx-country-small-size);gap:var(--tx-country-gap)}:host([data-styled]) .tx-country__flag:not(.tx-country__flag--emoji){width:calc(var(--_size) * 4 / 3);height:var(--_size);border-radius:var(--tx-country-border-radius);background-position:center;background-size:cover;box-shadow:var(--tx-country-ring);object-fit:cover;margin-inline-start:var(--tx-country-ring-gutter)}:host([data-styled]) .tx-country__flag--loading{background:var(--tx-country-loading-background)}:host([data-styled]) .tx-country__flag--emoji{font-size:var(--_size);line-height:1}:host([data-styled]) .tx-country__name{color:var(--tx-country-name-color)}:host([data-styled][data-size=medium]){--_size: var(--tx-country-medium-size)}:host([data-styled][data-size=large]){--_size: var(--tx-country-large-size)}:host([data-styled][data-shape=circle]) .tx-country__flag:not(.tx-country__flag--emoji){width:var(--_size);border-radius:50%}\n"],
234
+ viewProviders: [provideTxIconDefaults(COUNTRY_ICON_DEFAULTS)],
226
235
  changeDetection: i0.ChangeDetectionStrategy.OnPush
227
236
  });
228
237
  };
@@ -267,6 +276,7 @@ i0.ɵɵngDeclareClassMetadata({
267
276
  "[attr.aria-label]": "showName() || !code() ? null : label()",
268
277
  "[attr.title]": "showName() ? null : label()"
269
278
  },
279
+ viewProviders: [provideTxIconDefaults(COUNTRY_ICON_DEFAULTS)],
270
280
  styles: [":host{display:inline-flex;align-items:center;min-width:0;vertical-align:middle}.tx-country__flag{display:inline-block;flex:none}.tx-country__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]){--_size: var(--tx-country-small-size);gap:var(--tx-country-gap)}:host([data-styled]) .tx-country__flag:not(.tx-country__flag--emoji){width:calc(var(--_size) * 4 / 3);height:var(--_size);border-radius:var(--tx-country-border-radius);background-position:center;background-size:cover;box-shadow:var(--tx-country-ring);object-fit:cover;margin-inline-start:var(--tx-country-ring-gutter)}:host([data-styled]) .tx-country__flag--loading{background:var(--tx-country-loading-background)}:host([data-styled]) .tx-country__flag--emoji{font-size:var(--_size);line-height:1}:host([data-styled]) .tx-country__name{color:var(--tx-country-name-color)}:host([data-styled][data-size=medium]){--_size: var(--tx-country-medium-size)}:host([data-styled][data-size=large]){--_size: var(--tx-country-large-size)}:host([data-styled][data-shape=circle]) .tx-country__flag:not(.tx-country__flag--emoji){width:var(--_size);border-radius:50%}\n"]
271
281
  }]
272
282
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-country.mjs","names":[],"sources":["../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts","../../../../packages/ui/country/src/country.component.ts"],"sourcesContent":["export const TX_COUNTRY_CODES: readonly string[] = (\n 'AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL ' +\n 'CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT ' +\n 'GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY ' +\n 'MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN ' +\n 'PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT ' +\n 'TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XK YE YT ZA ZM ZW'\n).split(' ');\n\nconst COUNTRY_CODE = /^[A-Z]{2}$/;\nconst nameCache = new Map<string, Intl.DisplayNames>();\n\nexport function isCountryCode(code: string | null | undefined): boolean {\n return !!code && COUNTRY_CODE.test(code.trim().toUpperCase());\n}\n\nexport function countryName(code: string, locale: string): string {\n const upper = code.trim().toUpperCase();\n if (!isCountryCode(upper)) {\n return code;\n }\n let names = nameCache.get(locale);\n if (!names) {\n names = new Intl.DisplayNames([locale], { type: 'region', fallback: 'code' });\n nameCache.set(locale, names);\n }\n return names.of(upper) ?? upper;\n}\n\nexport function countryEmoji(code: string): string {\n const upper = code.trim().toUpperCase();\n return isCountryCode(upper) ? String.fromCodePoint(...[...upper].map((letter) => 0x1f1e6 + letter.charCodeAt(0) - 65)) : '';\n}\n","import { InjectionToken, Provider } from '@angular/core';\nimport { TxFlagResolver, TxFlagShape } from './country.types';\n\nexport const TX_FLAG_RESOLVER = new InjectionToken<TxFlagResolver>('TX_FLAG_RESOLVER');\n\nexport function provideTxFlags(resolver: TxFlagResolver): Provider {\n return { provide: TX_FLAG_RESOLVER, useValue: resolver };\n}\n\nexport const txFlagIcons: TxFlagResolver = (code, shape) => ({\n class: `fi fi-${code.toLowerCase()}${shape === 'circle' ? ' fis' : ''}`,\n});\n\nexport function txFlagImages(url: (code: string, shape: TxFlagShape) => string | Promise<string | null>): TxFlagResolver {\n return (code, shape) => {\n const src = url(code.toLowerCase(), shape);\n return typeof src === 'string' ? { src } : src.then((value) => (value ? { src: value } : null));\n };\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraCountryTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { countryEmoji, countryName, isCountryCode } from './countries';\nimport { TxCountryPart, TxCountrySize, TxFlag, TxFlagShape } from './country.types';\nimport { TX_FLAG_RESOLVER } from './flags';\n\n@Component({\n selector: 'tx-country',\n template: `\n @if (code(); as iso) {\n @if (flag(); as image) {\n @if (image.src) {\n <img class=\"tx-country__flag tx-country__flag--image\" alt=\"\" [src]=\"image.src\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\" />\n } @else {\n <span class=\"tx-country__flag\" aria-hidden=\"true\" [class]=\"flagClass(image.class)\" [style]=\"passThrough().flag?.style\"></span>\n }\n } @else if (isLoading()) {\n <span class=\"tx-country__flag tx-country__flag--loading\" aria-hidden=\"true\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\"></span>\n } @else {\n <span class=\"tx-country__flag tx-country__flag--emoji\" aria-hidden=\"true\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\">{{\n emoji()\n }}</span>\n }\n }\n @if (showName()) {\n <span class=\"tx-country__name\" [class]=\"passThrough().name?.class\" [style]=\"passThrough().name?.style\">{{ label() }}</span>\n }\n `,\n styleUrl: './country.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-country',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-shape]': 'shape()',\n '[attr.role]': 'showName() || !code() ? null : \"img\"',\n '[attr.aria-label]': 'showName() || !code() ? null : label()',\n '[attr.title]': 'showName() ? null : label()',\n },\n})\nexport class TxCountry {\n private locale = inject(TxLocaleService);\n private resolver = inject(TX_FLAG_RESOLVER, { optional: true });\n\n readonly country = input<string | null | undefined>(undefined);\n readonly name = input<string | undefined>(undefined);\n readonly showName = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly size = input<TxCountrySize>('small');\n readonly shape = input<TxFlagShape>('rectangle');\n readonly dt = input<TectraDeepPartial<TectraCountryTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCountryPart, TxCountry> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('country', this, this.pt, this.ptOptions);\n readonly code = computed(() => {\n const value = (this.country() ?? '').trim().toUpperCase();\n return isCountryCode(value) ? value : null;\n });\n readonly label = computed(() => this.name() ?? (this.code() ? countryName(this.code() ?? '', this.locale.locale().intl) : (this.country() ?? '').trim()));\n private readonly loaded = signal<{ key: string; flag: TxFlag | null } | null>(null);\n private readonly resolution = computed(() => {\n const code = this.code();\n return code && this.resolver ? { key: `${this.shape()}:${code}`, value: this.resolver(code, this.shape()) } : null;\n });\n readonly isLoading = computed(() => {\n const resolution = this.resolution();\n return !!resolution && isPromise(resolution.value) && this.loaded()?.key !== resolution.key;\n });\n readonly flag = computed(() => {\n const resolution = this.resolution();\n if (!resolution) {\n return null;\n }\n if (!isPromise(resolution.value)) {\n return resolution.value;\n }\n const loaded = this.loaded();\n return loaded?.key === resolution.key ? loaded.flag : null;\n });\n readonly emoji = computed(() => countryEmoji(this.code() ?? ''));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-country'), ...this.passThrough().root?.style }));\n\n constructor() {\n effect(() => {\n const resolution = this.resolution();\n if (resolution && isPromise(resolution.value)) {\n const { key, value } = resolution;\n value.then(\n (flag) => this.loaded.set({ key, flag }),\n () => this.loaded.set({ key, flag: null }),\n );\n }\n });\n }\n\n flagClass(own: string | undefined): string {\n return [own, this.passThrough().flag?.class].filter(Boolean).join(' ');\n }\n}\n\nfunction isPromise<T>(value: T | Promise<T>): value is Promise<T> {\n return typeof (value as Promise<T> | null)?.then === 'function';\n}\n"],"mappings":";;;;;;AAAA,MAAa,mBACX,gvBAMA,MAAM,GAAG;AAEX,MAAM,eAAe;AACrB,MAAM,4BAAY,IAAI,IAAG;AAEzB,SAAgB,cAAc,MAA+B;CAC3D,OAAO,CAAC,CAAC,QAAQ,aAAa,KAAK,KAAK,KAAI,CAAE,CAAC,YAAW,CAAE;AAC9D;AAEA,SAAgB,YAAY,MAAc,QAAc;CACtD,MAAM,QAAQ,KAAK,KAAI,CAAE,CAAC,YAAW;CACrC,IAAI,CAAC,cAAc,KAAK,GACtB,OAAO;CAET,IAAI,QAAQ,UAAU,IAAI,MAAM;CAChC,IAAI,CAAC,OAAO;EACV,QAAQ,IA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CV;;;;;;;;;;;;;;;;;;;;EAmBT,UAAA;EAAA,QAAA,CAAA,moCAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAeU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EApCrB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAY,UACZ;;;;;;;;;;;;;;;;;;;;GAmBT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;GACjB;GAAA,QAAA,CAAA,moCAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,SAAS,UAAa,OAAqB;CACzC,OAAO,OAAQ,OAA6B,SAAS;AACvD"}
1
+ {"version":3,"file":"tectra-ng-ui-country.mjs","names":[],"sources":["../../../../packages/ui/country/src/countries.ts","../../../../packages/ui/country/src/flags.ts","../../../../packages/ui/country/src/country.icons.ts","../../../../packages/ui/country/src/country.theme.ts","../../../../packages/ui/country/src/country.component.ts"],"sourcesContent":["export const TX_COUNTRY_CODES: readonly string[] = (\n 'AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL ' +\n 'CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT ' +\n 'GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY ' +\n 'MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN ' +\n 'PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT ' +\n 'TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XK YE YT ZA ZM ZW'\n).split(' ');\n\nconst COUNTRY_CODE = /^[A-Z]{2}$/;\nconst nameCache = new Map<string, Intl.DisplayNames>();\n\nexport function isCountryCode(code: string | null | undefined): boolean {\n return !!code && COUNTRY_CODE.test(code.trim().toUpperCase());\n}\n\nexport function countryName(code: string, locale: string): string {\n const upper = code.trim().toUpperCase();\n if (!isCountryCode(upper)) {\n return code;\n }\n let names = nameCache.get(locale);\n if (!names) {\n names = new Intl.DisplayNames([locale], { type: 'region', fallback: 'code' });\n nameCache.set(locale, names);\n }\n return names.of(upper) ?? upper;\n}\n\nexport function countryEmoji(code: string): string {\n const upper = code.trim().toUpperCase();\n return isCountryCode(upper) ? String.fromCodePoint(...[...upper].map((letter) => 0x1f1e6 + letter.charCodeAt(0) - 65)) : '';\n}\n","import { InjectionToken, Provider } from '@angular/core';\nimport { TxFlagResolver, TxFlagShape } from './country.types';\n\nexport const TX_FLAG_RESOLVER = new InjectionToken<TxFlagResolver>('TX_FLAG_RESOLVER');\n\nexport function provideTxFlags(resolver: TxFlagResolver): Provider {\n return { provide: TX_FLAG_RESOLVER, useValue: resolver };\n}\n\nexport const txFlagIcons: TxFlagResolver = (code, shape) => ({\n class: `fi fi-${code.toLowerCase()}${shape === 'circle' ? ' fis' : ''}`,\n});\n\nexport function txFlagImages(url: (code: string, shape: TxFlagShape) => string | Promise<string | null>): TxFlagResolver {\n return (code, shape) => {\n const src = url(code.toLowerCase(), shape);\n return typeof src === 'string' ? { src } : src.then((value) => (value ? { src: value } : null));\n };\n}\n","import { TxIconSet, txIconCircle, txIconCode, txIconFlag } from '@tectra-ng/icons';\n\nexport const COUNTRY_ICON_DEFAULTS: TxIconSet = {\n circle: txIconCircle,\n code: txIconCode,\n flag: txIconFlag,\n};\n","import { countryTokens } from '@tectra-ng/themes';\n\nexport const COUNTRY_THEME = {\n country: countryTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, effect, inject, input, signal } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraCountryTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { countryEmoji, countryName, isCountryCode } from './countries';\nimport { TxCountryPart, TxCountrySize, TxFlag, TxFlagShape } from './country.types';\nimport { TX_FLAG_RESOLVER } from './flags';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { COUNTRY_ICON_DEFAULTS } from './country.icons';\nimport { COUNTRY_THEME } from './country.theme';\n\n@Component({\n selector: 'tx-country',\n template: `\n @if (code(); as iso) {\n @if (flag(); as image) {\n @if (image.src) {\n <img class=\"tx-country__flag tx-country__flag--image\" alt=\"\" [src]=\"image.src\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\" />\n } @else {\n <span class=\"tx-country__flag\" aria-hidden=\"true\" [class]=\"flagClass(image.class)\" [style]=\"passThrough().flag?.style\"></span>\n }\n } @else if (isLoading()) {\n <span class=\"tx-country__flag tx-country__flag--loading\" aria-hidden=\"true\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\"></span>\n } @else {\n <span class=\"tx-country__flag tx-country__flag--emoji\" aria-hidden=\"true\" [class]=\"passThrough().flag?.class\" [style]=\"passThrough().flag?.style\">{{\n emoji()\n }}</span>\n }\n }\n @if (showName()) {\n <span class=\"tx-country__name\" [class]=\"passThrough().name?.class\" [style]=\"passThrough().name?.style\">{{ label() }}</span>\n }\n `,\n styleUrl: './country.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-country',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-size]': 'size()',\n '[attr.data-shape]': 'shape()',\n '[attr.role]': 'showName() || !code() ? null : \"img\"',\n '[attr.aria-label]': 'showName() || !code() ? null : label()',\n '[attr.title]': 'showName() ? null : label()',\n },\n viewProviders: [provideTxIconDefaults(COUNTRY_ICON_DEFAULTS)],\n})\nexport class TxCountry {\n private readonly countryTheme = injectTokens(COUNTRY_THEME);\n\n private locale = inject(TxLocaleService);\n private resolver = inject(TX_FLAG_RESOLVER, { optional: true });\n\n readonly country = input<string | null | undefined>(undefined);\n readonly name = input<string | undefined>(undefined);\n readonly showName = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly size = input<TxCountrySize>('small');\n readonly shape = input<TxFlagShape>('rectangle');\n readonly dt = input<TectraDeepPartial<TectraCountryTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCountryPart, TxCountry> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('country', this, this.pt, this.ptOptions);\n readonly code = computed(() => {\n const value = (this.country() ?? '').trim().toUpperCase();\n return isCountryCode(value) ? value : null;\n });\n readonly label = computed(() => this.name() ?? (this.code() ? countryName(this.code() ?? '', this.locale.locale().intl) : (this.country() ?? '').trim()));\n private readonly loaded = signal<{ key: string; flag: TxFlag | null } | null>(null);\n private readonly resolution = computed(() => {\n const code = this.code();\n return code && this.resolver ? { key: `${this.shape()}:${code}`, value: this.resolver(code, this.shape()) } : null;\n });\n readonly isLoading = computed(() => {\n const resolution = this.resolution();\n return !!resolution && isPromise(resolution.value) && this.loaded()?.key !== resolution.key;\n });\n readonly flag = computed(() => {\n const resolution = this.resolution();\n if (!resolution) {\n return null;\n }\n if (!isPromise(resolution.value)) {\n return resolution.value;\n }\n const loaded = this.loaded();\n return loaded?.key === resolution.key ? loaded.flag : null;\n });\n readonly emoji = computed(() => countryEmoji(this.code() ?? ''));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-country'), ...this.passThrough().root?.style }));\n\n constructor() {\n effect(() => {\n const resolution = this.resolution();\n if (resolution && isPromise(resolution.value)) {\n const { key, value } = resolution;\n value.then(\n (flag) => this.loaded.set({ key, flag }),\n () => this.loaded.set({ key, flag: null }),\n );\n }\n });\n }\n\n flagClass(own: string | undefined): string {\n return [own, this.passThrough().flag?.class].filter(Boolean).join(' ');\n }\n}\n\nfunction isPromise<T>(value: T | Promise<T>): value is Promise<T> {\n return typeof (value as Promise<T> | null)?.then === 'function';\n}\n"],"mappings":";;;;;;;AAAA,MAAa,mBACX,gvBAMA,MAAM,GAAG;AAEX,MAAM,eAAe;AACrB,MAAM,4BAAY,IAAI,IAAG;AAEzB,SAAgB,cAAc,MAA+B;CAC3D,OAAO,CAAC,CAAC,QAAQ,aAAa,KAAK,KAAK,KAAI,CAAE,CAAC,YAAW,CAAE;AAC9D;AAEA,SAAgB,YAAY,MAAc,QAAc;CACtD,MAAM,QAAQ,KAAK,KAAI,CAAE,CAAC,YAAW;CACrC,IAAI,CAAC,cAAc,KAAK,GACtB,OAAO;CAET,IAAI,QAAQ,UAAU,IAAI,MAAM;CAChC,IAAI,CAAC,OAAO;EACV,QAAQ,IAAI,KAAK,aAAa,CAAC,MAAM,GAAG;GAAE,MAAM;GAAU,UAAU;EAAM,CAAE;EAC5E,UAAU,IAAI,QAAQ,KAAK;CAC7B;CACA,OAAO,MAAM,GAAG,KAAK,KAAK;AAC5B;AAEA,SAAgB,aAAa,MAAY;CACvC,MAAM,QAAQ,KAAK,KAAI,CAAE,CAAC,YAAW;CACrC,OAAO,cAAc,KAAK,IAAI,OAAO,c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AA;;AAElD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EArCrB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAY,UACZ;;;;;;;;;;;;;;;;;;;;GAmBT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;GACjB;GAAA,eACc,CAAC,sBAAsB,qBAAqB,CAAC;GAAC,QAAA,CAAA,moCAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkE/D,SAAS,UAAa,OAAqB;CACzC,OAAO,OAAQ,OAA6B,SAAS;AACvD"}
@@ -1,14 +1,15 @@
1
1
  import { NgTemplateOutlet } from "@angular/common";
2
2
  import * as i0 from "@angular/core";
3
3
  import { ChangeDetectionStrategy, Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, output, untracked } from "@angular/core";
4
- import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
4
+ import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
5
5
  import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
6
6
  import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
7
- import { toStyleObject } from "@tectra-ng/themes";
7
+ import { dataViewTokens, toStyleObject } from "@tectra-ng/themes";
8
8
  import { TxPaginator, TxPaginatorEnd, TxPaginatorStart } from "@tectra-ng/ui/paginator";
9
9
  import { TxProgressSpinner } from "@tectra-ng/ui/progress-spinner";
10
10
  import { foldText, readOptionField } from "@tectra-ng/ui/select";
11
11
  import { compareValues } from "@tectra-ng/ui/table";
12
+ import { provideTxIconDefaults, txIconBars, txIconList, txIconThLarge } from "@tectra-ng/icons";
12
13
  import { TxButton } from "@tectra-ng/ui/button";
13
14
  import { TxButtonGroup } from "@tectra-ng/ui/button-group";
14
15
  var TxDataViewList = class TxDataViewList {
@@ -243,7 +244,14 @@ i0.ɵɵngDeclareClassMetadata({
243
244
  args: [{ selector: "ng-template[txDataViewPaginatorEnd]" }]
244
245
  }]
245
246
  });
247
+ const DATA_VIEW_ICON_DEFAULTS = {
248
+ bars: txIconBars,
249
+ list: txIconList,
250
+ "th-large": txIconThLarge
251
+ };
252
+ const DATA_VIEW_THEME = { dataView: dataViewTokens };
246
253
  var TxDataView = class TxDataView {
254
+ dataViewTheme = injectTokens(DATA_VIEW_THEME);
247
255
  value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
248
256
  layout = model("list", ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
249
257
  paginator = input(false, {
@@ -822,6 +830,7 @@ var TxDataView = class TxDataView {
822
830
  ]
823
831
  }
824
832
  ],
833
+ viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)],
825
834
  changeDetection: i0.ChangeDetectionStrategy.OnPush
826
835
  });
827
836
  };
@@ -851,6 +860,7 @@ i0.ɵɵngDeclareClassMetadata({
851
860
  "[class.tx-data-view--loading]": "loading()",
852
861
  "[attr.aria-busy]": "loading() || null"
853
862
  },
863
+ viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)],
854
864
  template: "@if (headerTemplate(); as header) {\n <div class=\"tx-data-view__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" />\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-data-view__body\">\n @if (loading()) {\n <div class=\"tx-data-view__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-data-view__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n } @else {\n @for (mode of layoutKey(); track mode) {\n <div\n class=\"tx-data-view__content\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.role]=\"ariaLabel() ? 'region' : null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n >\n @if (activeTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"itemsContext()\" />\n }\n </div>\n }\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n@if (footerTemplate(); as footer) {\n <div class=\"tx-data-view__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" />\n </div>\n}\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-data-view__paginator\"\n [class.tx-data-view__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n >\n @if (paginatorStartTemplate(); as start) {\n <ng-template txPaginatorStart let-state>\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n @if (paginatorEndTemplate(); as end) {\n <ng-template txPaginatorEnd let-state>\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n </tx-paginator>\n</ng-template>\n",
855
865
  styles: [":host{position:relative;display:block;min-width:0}.tx-data-view__body{position:relative}.tx-data-view__loading{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center}:host([data-styled]){border:var(--tx-data-view-border-width) solid var(--tx-data-view-border-color);border-radius:var(--tx-data-view-border-radius);background:var(--tx-data-view-background);color:var(--tx-data-view-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-data-view__header{padding:var(--tx-data-view-header-padding);border-radius:var(--tx-data-view-header-border-radius);border-bottom:1px solid var(--tx-data-view-border-color);background:var(--tx-data-view-header-background);color:var(--tx-data-view-header-color)}:host([data-styled]) .tx-data-view__footer{padding:var(--tx-data-view-footer-padding);border-radius:var(--tx-data-view-footer-border-radius);border-top:1px solid var(--tx-data-view-border-color);background:var(--tx-data-view-footer-background);color:var(--tx-data-view-footer-color)}:host([data-styled]) .tx-data-view__paginator{border-top:1px solid var(--tx-data-view-border-color)}:host([data-styled]) .tx-data-view__paginator--top{border-top:0;border-bottom:1px solid var(--tx-data-view-border-color)}:host([data-styled]) .tx-data-view__empty{padding:var(--tx-data-view-empty-padding);color:var(--tx-data-view-empty-color)}:host([data-styled]) .tx-data-view__loading{background:var(--tx-data-view-loading-background);-webkit-backdrop-filter:blur(var(--tx-data-view-loading-blur));backdrop-filter:blur(var(--tx-data-view-loading-blur))}:host([data-styled]) .tx-data-view__content{animation:tx-data-view-in calc(var(--tx-data-view-transition-duration) * 1.6) cubic-bezier(.2,0,0,1)}@keyframes tx-data-view-in{0%{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-data-view__content{animation:none}}\n"]
856
866
  }]
@@ -1162,6 +1172,7 @@ i0.ɵɵngDeclareClassMetadata({
1162
1172
  }
1163
1173
  });
1164
1174
  var TxDataViewLayoutSwitch = class TxDataViewLayoutSwitch {
1175
+ dataViewTheme = injectTokens(DATA_VIEW_THEME);
1165
1176
  layout = model("list", ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
1166
1177
  size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
1167
1178
  ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
@@ -1282,6 +1293,7 @@ var TxDataViewLayoutSwitch = class TxDataViewLayoutSwitch {
1282
1293
  type: TxButtonGroup,
1283
1294
  selector: "tx-button-group"
1284
1295
  }],
1296
+ viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)],
1285
1297
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1286
1298
  });
1287
1299
  };
@@ -1324,7 +1336,8 @@ i0.ɵɵngDeclareClassMetadata({
1324
1336
  </tx-button-group>
1325
1337
  `,
1326
1338
  changeDetection: ChangeDetectionStrategy.OnPush,
1327
- host: { class: "tx-data-view-layout" }
1339
+ host: { class: "tx-data-view-layout" },
1340
+ viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)]
1328
1341
  }]
1329
1342
  }],
1330
1343
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-data-view.mjs","names":[],"sources":["../../../../packages/ui/data-view/src/data-view.templates.ts","../../../../packages/ui/data-view/src/data-view.component.ts","../../../../packages/ui/data-view/src/data-view.component.html","../../../../packages/ui/data-view/src/data-view-layout.component.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPaginatorTemplateContext } from '@tectra-ng/ui/paginator';\nimport { TxDataViewItemsContext } from './data-view.types';\n\n@Directive({ selector: 'ng-template[txDataViewList]' })\nexport class TxDataViewList {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewGrid]' })\nexport class TxDataViewGrid {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewHeader]' })\nexport class TxDataViewHeader {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewFooter]' })\nexport class TxDataViewFooter {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewEmpty]' })\nexport class TxDataViewEmpty {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewLoading]' })\nexport class TxDataViewLoading {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorStart]' })\nexport class TxDataViewPaginatorStart {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorEnd]' })\nexport class TxDataViewPaginatorEnd {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n untracked,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraDataViewTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPageState, TxPaginator, TxPaginatorEnd, TxPaginatorStart, TxRowsPerPageOption } from '@tectra-ng/ui/paginator';\nimport { TxProgressSpinner } from '@tectra-ng/ui/progress-spinner';\nimport { foldText, readOptionField } from '@tectra-ng/ui/select';\nimport { compareValues } from '@tectra-ng/ui/table';\nimport {\n TxDataViewEmpty,\n TxDataViewFooter,\n TxDataViewGrid,\n TxDataViewHeader,\n TxDataViewList,\n TxDataViewLoading,\n TxDataViewPaginatorEnd,\n TxDataViewPaginatorStart,\n} from './data-view.templates';\nimport {\n TxDataViewItemsContext,\n TxDataViewLayout,\n TxDataViewLazyLoadEvent,\n TxDataViewPaginatorPosition,\n TxDataViewPart,\n TxDataViewSortEvent,\n TxDataViewSortOrder,\n} from './data-view.types';\n\n@Component({\n selector: 'tx-data-view',\n imports: [NgTemplateOutlet, TxPaginator, TxPaginatorStart, TxPaginatorEnd, TxProgressSpinner],\n templateUrl: './data-view.component.html',\n styleUrl: './data-view.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-data-view',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n '[class.tx-data-view--loading]': 'loading()',\n '[attr.aria-busy]': 'loading() || null',\n },\n})\nexport class TxDataView<T = unknown> {\n readonly value = input<readonly T[] | null | undefined>(undefined);\n readonly layout = model<TxDataViewLayout>('list');\n readonly paginator = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly paginatorPosition = input<TxDataViewPaginatorPosition>('bottom');\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly pageLinks = input(5, { transform: numberAttribute });\n readonly rowsPerPageOptions = input<TxRowsPerPageOption[] | null | undefined>(undefined);\n readonly alwaysShowPaginator = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showCurrentPageReport = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly currentPageReportTemplate = input<string | undefined>(undefined);\n readonly showJumpToPageDropdown = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showJumpToPageInput = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showFirstLastIcon = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showPageLinks = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showTotal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazyLoadOnInit = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly sortField = model<string | null>(null);\n readonly sortOrder = model<TxDataViewSortOrder>(null);\n readonly filterBy = input<string | undefined>(undefined);\n readonly filterValue = model('');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraDataViewTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxDataViewPart, TxDataView<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly lazyLoad = output<TxDataViewLazyLoadEvent>();\n readonly pageChange = output<TxPageState>();\n readonly sortChange = output<TxDataViewSortEvent>();\n\n readonly listTemplate = contentChild(TxDataViewList);\n readonly gridTemplate = contentChild(TxDataViewGrid);\n readonly headerTemplate = contentChild(TxDataViewHeader);\n readonly footerTemplate = contentChild(TxDataViewFooter);\n readonly emptyTemplate = contentChild(TxDataViewEmpty);\n readonly loadingTemplate = contentChild(TxDataViewLoading);\n readonly paginatorStartTemplate = contentChild(TxDataViewPaginatorStart);\n readonly paginatorEndTemplate = contentChild(TxDataViewPaginatorEnd);\n\n private readonly localeService = inject(TxLocaleService);\n private lastSort = '';\n private lastFilter: string | null = null;\n private loadedOnce = false;\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('dataView', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-data-view'), ...this.passThrough().root?.style }));\n\n readonly filterFields = computed(() =>\n (this.filterBy() ?? '')\n .split(',')\n .map((field) => field.trim())\n .filter(Boolean),\n );\n readonly filtered = computed<T[]>(() => {\n const items = [...(this.value() ?? [])];\n const query = foldText(this.filterValue().trim());\n const fields = this.filterFields();\n if (this.lazy() || !query || !fields.length) return items;\n return items.filter((item) => fields.some((field) => foldText(String(readOptionField(item, field) ?? '')).includes(query)));\n });\n readonly sorted = computed<T[]>(() => {\n const items = this.filtered();\n const field = this.sortField();\n const order = this.sortOrder();\n if (this.lazy() || !field || !order) return items;\n const intl = this.localeService.locale().intl;\n const direction = order === 'desc' ? -1 : 1;\n return [...items].sort((a, b) => compareValues(readOptionField(a, field), readOptionField(b, field), intl) * direction);\n });\n readonly total = computed(() => this.totalRecords() ?? this.sorted().length);\n readonly pageItems = computed<T[]>(() => {\n const items = this.sorted();\n if (!this.paginator() || this.lazy() || this.totalRecords() !== undefined) return items;\n return items.slice(this.first(), this.first() + this.rows());\n });\n readonly empty = computed(() => this.pageItems().length === 0);\n readonly itemsContext = computed<TxDataViewItemsContext<T>>(() => ({ $implicit: this.pageItems(), items: this.pageItems(), first: this.first() }));\n readonly activeTemplate = computed(() => (this.layout() === 'grid' ? (this.gridTemplate() ?? this.listTemplate()) : (this.listTemplate() ?? this.gridTemplate())));\n readonly layoutKey = computed(() => [this.layout()]);\n readonly showPaginatorTop = computed(() => this.paginator() && this.paginatorPosition() !== 'bottom');\n readonly showPaginatorBottom = computed(() => this.paginator() && this.paginatorPosition() !== 'top');\n\n constructor() {\n effect(() => {\n const total = this.total();\n const first = untracked(this.first);\n const rows = untracked(this.rows);\n if (this.paginator() && total > 0 && first >= total && rows > 0) {\n untracked(() => this.first.set(Math.max(0, Math.floor((total - 1) / rows) * rows)));\n }\n });\n\n effect(() => {\n const sortField = this.sortField();\n const sortOrder = this.sortOrder();\n const key = `${sortField}:${sortOrder}`;\n if (!this.lastSort) {\n this.lastSort = key;\n return;\n }\n if (key === this.lastSort) return;\n this.lastSort = key;\n untracked(() => {\n if (this.paginator() && !this.lazy()) this.first.set(0);\n this.sortChange.emit({ sortField, sortOrder });\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n const query = this.filterValue();\n if (this.lastFilter === null) {\n this.lastFilter = query;\n return;\n }\n if (query === this.lastFilter) return;\n this.lastFilter = query;\n untracked(() => {\n if (this.paginator()) this.first.set(0);\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n if (this.loadedOnce || !this.lazy() || !this.lazyLoadOnInit()) return;\n this.loadedOnce = true;\n untracked(() => this.emitLazyLoad());\n });\n }\n\n filter(value: string): void {\n this.filterValue.set(value);\n }\n\n onPage(state: TxPageState): void {\n this.first.set(state.first);\n this.rows.set(state.rows);\n this.pageChange.emit(state);\n this.emitLazyLoad();\n }\n\n emitLazyLoad(): void {\n if (!this.lazy()) return;\n this.lazyLoad.emit({ first: this.first(), rows: this.rows(), sortField: this.sortField(), sortOrder: this.sortOrder(), filter: this.filterValue() });\n }\n}\n","@if (headerTemplate(); as header) {\n <div class=\"tx-data-view__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" />\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-data-view__body\">\n @if (loading()) {\n <div class=\"tx-data-view__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-data-view__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n } @else {\n @for (mode of layoutKey(); track mode) {\n <div\n class=\"tx-data-view__content\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.role]=\"ariaLabel() ? 'region' : null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n >\n @if (activeTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"itemsContext()\" />\n }\n </div>\n }\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n@if (footerTemplate(); as footer) {\n <div class=\"tx-data-view__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" />\n </div>\n}\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-data-view__paginator\"\n [class.tx-data-view__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n >\n @if (paginatorStartTemplate(); as start) {\n <ng-template txPaginatorStart let-state>\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n @if (paginatorEndTemplate(); as end) {\n <ng-template txPaginatorEnd let-state>\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n </tx-paginator>\n</ng-template>\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxButton, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxDataViewLayout } from './data-view.types';\n\n@Component({\n selector: 'tx-data-view-layout',\n imports: [TxButton, TxButtonGroup],\n template: `\n <tx-button-group role=\"group\" [attr.aria-label]=\"ariaLabel() ?? translations().layout\">\n <button\n txButton\n type=\"button\"\n icon=\"bars\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'list'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().listView\"\n [attr.aria-pressed]=\"layout() === 'list'\"\n (click)=\"layout.set('list')\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"th-large\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'grid'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().gridView\"\n [attr.aria-pressed]=\"layout() === 'grid'\"\n (click)=\"layout.set('grid')\"\n ></button>\n </tx-button-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-data-view-layout' },\n})\nexport class TxDataViewLayoutSwitch {\n readonly layout = model<TxDataViewLayout>('list');\n readonly size = input<TxButtonSize>('medium');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n}\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAa,iBAAb,MAAa,eAAc;CAChB,cAAc,OAA4C,WAAW;CADnE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAd,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAD1B,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,8BAA6B,CAAE;;;AAMtD,IAAa,iBAAb,MAAa,eAAc;CAChB,cAAc,OAA4C,WAAW;CADnE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAd,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAD1B,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,8BAA6B,CAAE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AAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,MAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,QAAA,eAAA;EAAA,MAAA,EAAA,gBAAA,sBAAA;EAAA,UAAA;EAAA,UA/BvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BT,UAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA5BS;GAAQ,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,GAAA;GAAA,MAAA;GAAA,MAAE;GAAa,UAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAgCtB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EAlClC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,SAAS,CAAC,UAAU,aAAa;GACjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BV,iBAAiB,wBAAwB;GACzC,MAAM,EAAE,OAAO,sBAAqB;EACrC,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-data-view.mjs","names":[],"sources":["../../../../packages/ui/data-view/src/data-view.templates.ts","../../../../packages/ui/data-view/src/data-view.icons.ts","../../../../packages/ui/data-view/src/data-view.theme.ts","../../../../packages/ui/data-view/src/data-view.component.ts","../../../../packages/ui/data-view/src/data-view.component.html","../../../../packages/ui/data-view/src/data-view-layout.component.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPaginatorTemplateContext } from '@tectra-ng/ui/paginator';\nimport { TxDataViewItemsContext } from './data-view.types';\n\n@Directive({ selector: 'ng-template[txDataViewList]' })\nexport class TxDataViewList {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewGrid]' })\nexport class TxDataViewGrid {\n readonly templateRef = inject<TemplateRef<TxDataViewItemsContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewHeader]' })\nexport class TxDataViewHeader {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewFooter]' })\nexport class TxDataViewFooter {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewEmpty]' })\nexport class TxDataViewEmpty {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewLoading]' })\nexport class TxDataViewLoading {\n readonly templateRef = inject<TemplateRef<void>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorStart]' })\nexport class TxDataViewPaginatorStart {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txDataViewPaginatorEnd]' })\nexport class TxDataViewPaginatorEnd {\n readonly templateRef = inject<TemplateRef<TxPaginatorTemplateContext>>(TemplateRef);\n}\n","import { TxIconSet, txIconBars, txIconList, txIconThLarge } from '@tectra-ng/icons';\n\nexport const DATA_VIEW_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n list: txIconList,\n 'th-large': txIconThLarge,\n};\n","import { dataViewTokens } from '@tectra-ng/themes';\n\nexport const DATA_VIEW_THEME = {\n dataView: dataViewTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n numberAttribute,\n output,\n untracked,\n} from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraDataViewTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPageState, TxPaginator, TxPaginatorEnd, TxPaginatorStart, TxRowsPerPageOption } from '@tectra-ng/ui/paginator';\nimport { TxProgressSpinner } from '@tectra-ng/ui/progress-spinner';\nimport { foldText, readOptionField } from '@tectra-ng/ui/select';\nimport { compareValues } from '@tectra-ng/ui/table';\nimport {\n TxDataViewEmpty,\n TxDataViewFooter,\n TxDataViewGrid,\n TxDataViewHeader,\n TxDataViewList,\n TxDataViewLoading,\n TxDataViewPaginatorEnd,\n TxDataViewPaginatorStart,\n} from './data-view.templates';\nimport {\n TxDataViewItemsContext,\n TxDataViewLayout,\n TxDataViewLazyLoadEvent,\n TxDataViewPaginatorPosition,\n TxDataViewPart,\n TxDataViewSortEvent,\n TxDataViewSortOrder,\n} from './data-view.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { DATA_VIEW_ICON_DEFAULTS } from './data-view.icons';\nimport { DATA_VIEW_THEME } from './data-view.theme';\n\n@Component({\n selector: 'tx-data-view',\n imports: [NgTemplateOutlet, TxPaginator, TxPaginatorStart, TxPaginatorEnd, TxProgressSpinner],\n templateUrl: './data-view.component.html',\n styleUrl: './data-view.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-data-view',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n '[class.tx-data-view--loading]': 'loading()',\n '[attr.aria-busy]': 'loading() || null',\n },\n viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)],\n})\nexport class TxDataView<T = unknown> {\n private readonly dataViewTheme = injectTokens(DATA_VIEW_THEME);\n\n readonly value = input<readonly T[] | null | undefined>(undefined);\n readonly layout = model<TxDataViewLayout>('list');\n readonly paginator = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly paginatorPosition = input<TxDataViewPaginatorPosition>('bottom');\n readonly first = model(0);\n readonly rows = model(10);\n readonly totalRecords = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly pageLinks = input(5, { transform: numberAttribute });\n readonly rowsPerPageOptions = input<TxRowsPerPageOption[] | null | undefined>(undefined);\n readonly alwaysShowPaginator = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showCurrentPageReport = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly currentPageReportTemplate = input<string | undefined>(undefined);\n readonly showJumpToPageDropdown = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showJumpToPageInput = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showFirstLastIcon = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showPageLinks = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showTotal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly lazyLoadOnInit = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly emptyMessage = input<string | undefined>(undefined);\n readonly sortField = model<string | null>(null);\n readonly sortOrder = model<TxDataViewSortOrder>(null);\n readonly filterBy = input<string | undefined>(undefined);\n readonly filterValue = model('');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraDataViewTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxDataViewPart, TxDataView<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly lazyLoad = output<TxDataViewLazyLoadEvent>();\n readonly pageChange = output<TxPageState>();\n readonly sortChange = output<TxDataViewSortEvent>();\n\n readonly listTemplate = contentChild(TxDataViewList);\n readonly gridTemplate = contentChild(TxDataViewGrid);\n readonly headerTemplate = contentChild(TxDataViewHeader);\n readonly footerTemplate = contentChild(TxDataViewFooter);\n readonly emptyTemplate = contentChild(TxDataViewEmpty);\n readonly loadingTemplate = contentChild(TxDataViewLoading);\n readonly paginatorStartTemplate = contentChild(TxDataViewPaginatorStart);\n readonly paginatorEndTemplate = contentChild(TxDataViewPaginatorEnd);\n\n private readonly localeService = inject(TxLocaleService);\n private lastSort = '';\n private lastFilter: string | null = null;\n private loadedOnce = false;\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('dataView', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-data-view'), ...this.passThrough().root?.style }));\n\n readonly filterFields = computed(() =>\n (this.filterBy() ?? '')\n .split(',')\n .map((field) => field.trim())\n .filter(Boolean),\n );\n readonly filtered = computed<T[]>(() => {\n const items = [...(this.value() ?? [])];\n const query = foldText(this.filterValue().trim());\n const fields = this.filterFields();\n if (this.lazy() || !query || !fields.length) return items;\n return items.filter((item) => fields.some((field) => foldText(String(readOptionField(item, field) ?? '')).includes(query)));\n });\n readonly sorted = computed<T[]>(() => {\n const items = this.filtered();\n const field = this.sortField();\n const order = this.sortOrder();\n if (this.lazy() || !field || !order) return items;\n const intl = this.localeService.locale().intl;\n const direction = order === 'desc' ? -1 : 1;\n return [...items].sort((a, b) => compareValues(readOptionField(a, field), readOptionField(b, field), intl) * direction);\n });\n readonly total = computed(() => this.totalRecords() ?? this.sorted().length);\n readonly pageItems = computed<T[]>(() => {\n const items = this.sorted();\n if (!this.paginator() || this.lazy() || this.totalRecords() !== undefined) return items;\n return items.slice(this.first(), this.first() + this.rows());\n });\n readonly empty = computed(() => this.pageItems().length === 0);\n readonly itemsContext = computed<TxDataViewItemsContext<T>>(() => ({ $implicit: this.pageItems(), items: this.pageItems(), first: this.first() }));\n readonly activeTemplate = computed(() => (this.layout() === 'grid' ? (this.gridTemplate() ?? this.listTemplate()) : (this.listTemplate() ?? this.gridTemplate())));\n readonly layoutKey = computed(() => [this.layout()]);\n readonly showPaginatorTop = computed(() => this.paginator() && this.paginatorPosition() !== 'bottom');\n readonly showPaginatorBottom = computed(() => this.paginator() && this.paginatorPosition() !== 'top');\n\n constructor() {\n effect(() => {\n const total = this.total();\n const first = untracked(this.first);\n const rows = untracked(this.rows);\n if (this.paginator() && total > 0 && first >= total && rows > 0) {\n untracked(() => this.first.set(Math.max(0, Math.floor((total - 1) / rows) * rows)));\n }\n });\n\n effect(() => {\n const sortField = this.sortField();\n const sortOrder = this.sortOrder();\n const key = `${sortField}:${sortOrder}`;\n if (!this.lastSort) {\n this.lastSort = key;\n return;\n }\n if (key === this.lastSort) return;\n this.lastSort = key;\n untracked(() => {\n if (this.paginator() && !this.lazy()) this.first.set(0);\n this.sortChange.emit({ sortField, sortOrder });\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n const query = this.filterValue();\n if (this.lastFilter === null) {\n this.lastFilter = query;\n return;\n }\n if (query === this.lastFilter) return;\n this.lastFilter = query;\n untracked(() => {\n if (this.paginator()) this.first.set(0);\n this.emitLazyLoad();\n });\n });\n\n effect(() => {\n if (this.loadedOnce || !this.lazy() || !this.lazyLoadOnInit()) return;\n this.loadedOnce = true;\n untracked(() => this.emitLazyLoad());\n });\n }\n\n filter(value: string): void {\n this.filterValue.set(value);\n }\n\n onPage(state: TxPageState): void {\n this.first.set(state.first);\n this.rows.set(state.rows);\n this.pageChange.emit(state);\n this.emitLazyLoad();\n }\n\n emitLazyLoad(): void {\n if (!this.lazy()) return;\n this.lazyLoad.emit({ first: this.first(), rows: this.rows(), sortField: this.sortField(), sortOrder: this.sortOrder(), filter: this.filterValue() });\n }\n}\n","@if (headerTemplate(); as header) {\n <div class=\"tx-data-view__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-container [ngTemplateOutlet]=\"header.templateRef\" />\n </div>\n}\n\n@if (showPaginatorTop()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\" />\n}\n\n<div class=\"tx-data-view__body\">\n @if (loading()) {\n <div class=\"tx-data-view__loading\" [class]=\"passThrough().loading?.class\" [style]=\"passThrough().loading?.style\">\n @if (loadingTemplate(); as loadingTemplate) {\n <ng-container [ngTemplateOutlet]=\"loadingTemplate.templateRef\" />\n } @else {\n <tx-progress-spinner [ariaLabel]=\"translations().loading\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n }\n\n @if (empty()) {\n <div class=\"tx-data-view__empty\" role=\"status\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n @if (emptyTemplate(); as emptyTemplate) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate.templateRef\" />\n } @else {\n {{ emptyMessage() ?? translations().emptyMessage }}\n }\n </div>\n } @else {\n @for (mode of layoutKey(); track mode) {\n <div\n class=\"tx-data-view__content\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.role]=\"ariaLabel() ? 'region' : null\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n >\n @if (activeTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"itemsContext()\" />\n }\n </div>\n }\n }\n</div>\n\n@if (showPaginatorBottom()) {\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\" />\n}\n\n@if (footerTemplate(); as footer) {\n <div class=\"tx-data-view__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\" />\n </div>\n}\n\n<ng-template #pager let-position>\n <tx-paginator\n class=\"tx-data-view__paginator\"\n [class.tx-data-view__paginator--top]=\"position === 'top'\"\n [class]=\"passThrough().paginator?.class\"\n [style]=\"passThrough().paginator?.style\"\n [first]=\"first()\"\n [rows]=\"rows()\"\n [totalRecords]=\"total()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n [showTotal]=\"showTotal()\"\n [showCurrentPageReport]=\"showCurrentPageReport()\"\n [currentPageReportTemplate]=\"currentPageReportTemplate()\"\n [showFirstLastIcon]=\"showFirstLastIcon()\"\n [showPageLinks]=\"showPageLinks()\"\n [showJumpToPageDropdown]=\"showJumpToPageDropdown()\"\n [showJumpToPageInput]=\"showJumpToPageInput()\"\n [alwaysShow]=\"alwaysShowPaginator()\"\n [pageLinkSize]=\"pageLinks()\"\n [unstyled]=\"isUnstyled()\"\n (pageChange)=\"onPage($event)\"\n >\n @if (paginatorStartTemplate(); as start) {\n <ng-template txPaginatorStart let-state>\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n @if (paginatorEndTemplate(); as end) {\n <ng-template txPaginatorEnd let-state>\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state }\" />\n </ng-template>\n }\n </tx-paginator>\n</ng-template>\n","import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxButton, TxButtonSize } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxDataViewLayout } from './data-view.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { DATA_VIEW_ICON_DEFAULTS } from './data-view.icons';\nimport { DATA_VIEW_THEME } from './data-view.theme';\n\n@Component({\n selector: 'tx-data-view-layout',\n imports: [TxButton, TxButtonGroup],\n template: `\n <tx-button-group role=\"group\" [attr.aria-label]=\"ariaLabel() ?? translations().layout\">\n <button\n txButton\n type=\"button\"\n icon=\"bars\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'list'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().listView\"\n [attr.aria-pressed]=\"layout() === 'list'\"\n (click)=\"layout.set('list')\"\n ></button>\n <button\n txButton\n type=\"button\"\n icon=\"th-large\"\n severity=\"secondary\"\n [size]=\"size()\"\n [outlined]=\"layout() !== 'grid'\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().gridView\"\n [attr.aria-pressed]=\"layout() === 'grid'\"\n (click)=\"layout.set('grid')\"\n ></button>\n </tx-button-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'tx-data-view-layout' },\n viewProviders: [provideTxIconDefaults(DATA_VIEW_ICON_DEFAULTS)],\n})\nexport class TxDataViewLayoutSwitch {\n private readonly dataViewTheme = injectTokens(DATA_VIEW_THEME);\n\n readonly layout = model<TxDataViewLayout>('list');\n readonly size = input<TxButtonSize>('medium');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n}\n"],"mappings":";;;;;;;;;;;;;;AAKA,IAAa,iBAAb,MAAa,eAAc;CAChB,cAAc,OAA4C,WAAW;CADnE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CA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