@tectra-ng/ui 0.4.1 → 0.4.3

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 (239) hide show
  1. package/README.md +1 -1
  2. package/amount/README.md +2 -2
  3. package/analog-clock/README.md +3 -2
  4. package/autocomplete/README.md +1 -1
  5. package/avatar/README.md +1 -1
  6. package/breadcrumb/README.md +1 -1
  7. package/button-group/README.md +34 -2
  8. package/carousel/README.md +7 -0
  9. package/chips-input/README.md +10 -0
  10. package/color-swatches/README.md +53 -0
  11. package/data-view/README.md +11 -0
  12. package/fesm2022/tectra-ng-ui-amount.mjs +11 -9
  13. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-analog-clock.mjs +12 -6
  15. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-autocomplete.mjs +17 -6
  17. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-avatar.mjs +11 -4
  19. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +5 -5
  21. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-button-group.mjs +139 -6
  23. package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-card.mjs +4 -2
  25. package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-carousel.mjs +21 -2
  27. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  29. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-checkbox.mjs +7 -4
  31. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-chips-input.mjs +41 -8
  33. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  35. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-color-swatches.mjs +378 -0
  37. package/fesm2022/tectra-ng-ui-color-swatches.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-ui-country-select.mjs +6 -4
  39. package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-data-view.mjs +61 -10
  41. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-datepicker.mjs +14 -2
  43. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-dialog.mjs +7 -2
  45. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-export.mjs +19 -20
  47. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-file-upload.mjs +44 -30
  49. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-galleria.mjs +63 -6
  51. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-image.mjs +6 -2
  53. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-input-otp.mjs +6 -2
  55. package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  57. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-knob.mjs +15 -4
  59. package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
  60. package/fesm2022/tectra-ng-ui-list-input.mjs +2 -2
  61. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  62. package/fesm2022/tectra-ng-ui-menu.mjs +110 -10
  63. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  64. package/fesm2022/tectra-ng-ui-message.mjs +62 -19
  65. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  66. package/fesm2022/tectra-ng-ui-multiselect.mjs +14 -6
  67. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  68. package/fesm2022/tectra-ng-ui-paginator.mjs +11 -22
  69. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-panel-menu.mjs +32 -8
  71. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  72. package/fesm2022/tectra-ng-ui-panel.mjs +4 -2
  73. package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
  74. package/fesm2022/tectra-ng-ui-password.mjs +9 -0
  75. package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
  76. package/fesm2022/tectra-ng-ui-pill.mjs +3 -2
  77. package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
  78. package/fesm2022/tectra-ng-ui-popover.mjs +16 -9
  79. package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -1
  80. package/fesm2022/tectra-ng-ui-progress-bar.mjs +3 -0
  81. package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -1
  82. package/fesm2022/tectra-ng-ui-radio-button.mjs +28 -8
  83. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  84. package/fesm2022/tectra-ng-ui-rating.mjs +6 -0
  85. package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
  86. package/fesm2022/tectra-ng-ui-scroll-panel.mjs +4 -4
  87. package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -1
  88. package/fesm2022/tectra-ng-ui-select-button.mjs +748 -0
  89. package/fesm2022/tectra-ng-ui-select-button.mjs.map +1 -0
  90. package/fesm2022/tectra-ng-ui-select.mjs +193 -10
  91. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  92. package/fesm2022/tectra-ng-ui-speed-dial.mjs +91 -60
  93. package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -1
  94. package/fesm2022/tectra-ng-ui-split-button.mjs +22 -8
  95. package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
  96. package/fesm2022/tectra-ng-ui-stat-tiles.mjs +8 -5
  97. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  98. package/fesm2022/tectra-ng-ui-stepper.mjs +72 -29
  99. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  100. package/fesm2022/tectra-ng-ui-table.mjs +323 -190
  101. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  102. package/fesm2022/tectra-ng-ui-tabs.mjs +10 -7
  103. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  104. package/fesm2022/tectra-ng-ui-timeline.mjs +87 -10
  105. package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -1
  106. package/fesm2022/tectra-ng-ui-toast.mjs +24 -7
  107. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  108. package/fesm2022/tectra-ng-ui-toggle-button.mjs +2 -2
  109. package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -1
  110. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +7 -4
  111. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  112. package/fesm2022/tectra-ng-ui-tooltip.mjs +5 -4
  113. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  114. package/fesm2022/tectra-ng-ui-tree-select.mjs +31 -9
  115. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  116. package/fesm2022/tectra-ng-ui-tree-table.mjs +7 -5
  117. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  118. package/fesm2022/tectra-ng-ui-tree.mjs +47 -14
  119. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  120. package/fesm2022/tectra-ng-ui-truncate-text.mjs +2 -2
  121. package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
  122. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +45 -4
  123. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  124. package/fesm2022/tectra-ng-ui.mjs +1 -1
  125. package/field/README.md +2 -2
  126. package/file-upload/README.md +2 -1
  127. package/galleria/README.md +9 -0
  128. package/input-otp/README.md +1 -1
  129. package/knob/README.md +1 -1
  130. package/menu/README.md +10 -2
  131. package/message/README.md +6 -5
  132. package/multiselect/README.md +1 -1
  133. package/package.json +12 -4
  134. package/paginator/README.md +1 -1
  135. package/panel-menu/README.md +1 -1
  136. package/pill/README.md +1 -1
  137. package/popover/README.md +2 -2
  138. package/select/README.md +9 -0
  139. package/select-button/README.md +70 -0
  140. package/speed-dial/README.md +2 -1
  141. package/split-button/README.md +1 -1
  142. package/stat-tiles/README.md +3 -3
  143. package/stepper/README.md +3 -2
  144. package/table/README.md +23 -7
  145. package/tabs/README.md +2 -2
  146. package/timeline/README.md +10 -2
  147. package/tree/README.md +7 -0
  148. package/tree-select/README.md +2 -2
  149. package/tree-table/README.md +1 -1
  150. package/truncate-text/README.md +1 -1
  151. package/types/tectra-ng-ui-amount.d.ts +6 -3
  152. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  153. package/types/tectra-ng-ui-analog-clock.d.ts +9 -4
  154. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  155. package/types/tectra-ng-ui-autocomplete.d.ts +2 -1
  156. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  157. package/types/tectra-ng-ui-avatar.d.ts +4 -2
  158. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  159. package/types/tectra-ng-ui-breadcrumb.d.ts +3 -3
  160. package/types/tectra-ng-ui-button-group.d.ts +58 -5
  161. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  162. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-carousel.d.ts +14 -5
  164. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-checkbox.d.ts +1 -0
  166. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-chips-input.d.ts +15 -1
  168. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-color-swatches.d.ts +141 -0
  170. package/types/tectra-ng-ui-color-swatches.d.ts.map +1 -0
  171. package/types/tectra-ng-ui-data-view.d.ts +31 -12
  172. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  173. package/types/tectra-ng-ui-datepicker.d.ts +6 -0
  174. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-dialog.d.ts +1 -0
  176. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-field.d.ts +2 -2
  178. package/types/tectra-ng-ui-file-upload.d.ts +10 -7
  179. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  180. package/types/tectra-ng-ui-galleria.d.ts +42 -15
  181. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  182. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-input-otp.d.ts +1 -1
  184. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-knob.d.ts +3 -1
  186. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-menu.d.ts +35 -12
  188. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-message.d.ts +17 -8
  190. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-multiselect.d.ts +2 -2
  192. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-paginator.d.ts +4 -21
  194. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-panel-menu.d.ts +9 -9
  196. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  197. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  198. package/types/tectra-ng-ui-password.d.ts +3 -0
  199. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  200. package/types/tectra-ng-ui-pill.d.ts +7 -3
  201. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  202. package/types/tectra-ng-ui-popover.d.ts +4 -2
  203. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  204. package/types/tectra-ng-ui-progress-bar.d.ts +1 -0
  205. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  206. package/types/tectra-ng-ui-radio-button.d.ts +3 -1
  207. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  208. package/types/tectra-ng-ui-rating.d.ts +2 -0
  209. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  210. package/types/tectra-ng-ui-select-button.d.ts +256 -0
  211. package/types/tectra-ng-ui-select-button.d.ts.map +1 -0
  212. package/types/tectra-ng-ui-select.d.ts +85 -20
  213. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  214. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  216. package/types/tectra-ng-ui-stat-tiles.d.ts +4 -3
  217. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  218. package/types/tectra-ng-ui-stepper.d.ts +25 -10
  219. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  220. package/types/tectra-ng-ui-table.d.ts +147 -75
  221. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  222. package/types/tectra-ng-ui-tabs.d.ts +7 -5
  223. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  224. package/types/tectra-ng-ui-timeline.d.ts +46 -9
  225. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  226. package/types/tectra-ng-ui-toast.d.ts +3 -0
  227. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  228. package/types/tectra-ng-ui-toggle-switch.d.ts +1 -0
  229. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  230. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  231. package/types/tectra-ng-ui-tree-select.d.ts +4 -2
  232. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  233. package/types/tectra-ng-ui-tree.d.ts +18 -7
  234. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  235. package/types/tectra-ng-ui-truncate-text.d.ts +1 -1
  236. package/types/tectra-ng-ui-virtual-scroller.d.ts +29 -10
  237. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  238. package/types/tectra-ng-ui.d.ts +1 -1
  239. package/virtual-scroller/README.md +8 -0
@@ -162,6 +162,7 @@ var TxPanel = class TxPanel {
162
162
  "class": "passThrough().root?.class",
163
163
  "style": "hostStyle()",
164
164
  "attr.data-styled": "!isUnstyled() || null",
165
+ "attr.title": "null",
165
166
  "attr.data-variant": "variant()",
166
167
  "attr.data-align": "align()",
167
168
  "class.tx-panel--collapsed": "toggleable() && collapsed()",
@@ -172,7 +173,7 @@ var TxPanel = class TxPanel {
172
173
  },
173
174
  ngImport: i0,
174
175
  template: "<header class=\"tx-panel__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-panel__lead\">\n @if (icon(); as icon) {\n <span class=\"tx-panel__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <div class=\"tx-panel__heading\">\n @if (title()) {\n <div class=\"tx-panel__title\" role=\"heading\" [id]=\"titleId\" [attr.aria-level]=\"headingLevel()\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ title() }}\n </div>\n }\n @if (subtitle()) {\n <p class=\"tx-panel__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n <ng-content select=\"[txPanelHeader]\" />\n </div>\n </div>\n <div class=\"tx-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPanelActions]\" />\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"bodyId\"\n [attr.aria-label]=\"toggleLabel() ?? title() ?? null\"\n (click)=\"toggle()\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n </button>\n }\n </div>\n</header>\n<div class=\"tx-panel__collapse\" [id]=\"bodyId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-panel__collapse-inner\">\n <div class=\"tx-panel__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\"><ng-content /></div>\n <div class=\"tx-panel__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\"><ng-content select=\"[txPanelFooter]\" /></div>\n </div>\n</div>\n",
175
- styles: [":host{display:block;min-width:0}.tx-panel__header{display:flex;flex-wrap:wrap;justify-content:space-between}.tx-panel__lead{display:flex;align-items:center;min-width:0}.tx-panel__heading{display:flex;flex-direction:column;min-width:0}.tx-panel__actions{display:flex;align-items:center}.tx-panel__actions:empty,.tx-panel__body:empty,.tx-panel__footer:empty,.tx-panel__collapse:has(.tx-panel__body:empty):has(.tx-panel__footer:empty){display:none}.tx-panel__collapse{display:grid;grid-template-rows:1fr}:host(.tx-panel--collapsed) .tx-panel__collapse{grid-template-rows:0fr}.tx-panel__collapse-inner{min-height:0;overflow:hidden}:host(.tx-panel--collapsed) .tx-panel__collapse-inner{visibility:hidden}:host([data-styled]){--_gap: var(--tx-panel-gap);--_icon: var(--tx-panel-icon-size);--_title: var(--tx-panel-title-font-size);display:flex;flex-direction:column;gap:var(--_gap);padding:var(--tx-panel-padding);border-radius:var(--tx-panel-border-radius);background:var(--tx-panel-background);box-shadow:inset 0 0 0 1px var(--tx-panel-border-color);color:var(--tx-panel-color);font-family:var(--tx-font-family);transition:gap var(--tx-panel-transition-duration)}:host([data-styled].tx-panel--collapsed){gap:0}:host([data-styled][data-variant=inset]){--_gap: var(--tx-panel-inset-gap);padding:var(--tx-panel-inset-padding);background:var(--tx-panel-inset-background);box-shadow:none}:host([data-styled][data-variant=plain]){--_gap: var(--tx-panel-plain-gap);--_icon: var(--tx-panel-plain-icon-size);--_title: var(--tx-panel-plain-title-font-size);padding:0;border-radius:0;background:transparent;box-shadow:none}:host([data-styled]) .tx-panel__header{gap:12px}:host([data-styled][data-align=start]) .tx-panel__header{align-items:flex-start}:host([data-styled][data-align=center]) .tx-panel__header{align-items:center}:host([data-styled][data-align=end]) .tx-panel__header{align-items:flex-end;column-gap:24px;row-gap:16px}:host([data-styled][data-align=end]) .tx-panel__header .tx-panel__lead{align-self:flex-start}:host([data-styled]) .tx-panel__lead{gap:12px}:host([data-styled]) .tx-panel__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon);height:var(--_icon);border-radius:var(--tx-panel-icon-border-radius);background:var(--tx-panel-icon-background);color:var(--tx-panel-icon-color);font-size:calc(var(--_icon) * .45)}:host([data-styled]) .tx-panel__heading{gap:2px}:host([data-styled]) .tx-panel__title{font-size:var(--_title);font-weight:var(--tx-panel-title-font-weight);line-height:1.3}:host([data-styled]) .tx-panel__subtitle{margin:0;color:var(--tx-panel-subtitle-color);font-size:var(--tx-panel-subtitle-font-size);line-height:1.45}:host([data-styled]) .tx-panel__actions{flex-wrap:wrap;gap:8px}:host([data-styled]) .tx-panel__toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:var(--tx-radius-md);background:transparent;color:var(--tx-text-muted);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-panel__toggle tx-icon{transition:transform var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__toggle:hover{background:var(--tx-surface-hover);color:var(--tx-text-primary)}:host([data-styled]) .tx-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled].tx-panel--collapsed) .tx-panel__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-panel__collapse{transition:grid-template-rows var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:var(--_gap)}:host([data-styled]) .tx-panel__body:empty+.tx-panel__footer{margin-top:0}:host([data-styled]) .tx-panel__footer:empty{display:none}:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner{transition:visibility 0s linear var(--tx-panel-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-panel__collapse,:host([data-styled]) .tx-panel__toggle,:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner,:host([data-styled]) .tx-panel__toggle tx-icon{transition:none}}\n"],
176
+ styles: [":host{display:block;min-width:0}.tx-panel__header{display:flex;flex-wrap:wrap;justify-content:space-between}.tx-panel__lead{display:flex;align-items:center;min-width:0}.tx-panel__heading{display:flex;flex-direction:column;min-width:0}.tx-panel__actions{display:flex;align-items:center}.tx-panel__actions:empty,.tx-panel__body:empty,.tx-panel__footer:empty,.tx-panel__collapse:has(.tx-panel__body:empty):has(.tx-panel__footer:empty){display:none}.tx-panel__collapse{display:grid;grid-template-rows:1fr}:host(.tx-panel--collapsed) .tx-panel__collapse{grid-template-rows:0fr}.tx-panel__collapse-inner{min-height:0;overflow:hidden}:host(.tx-panel--collapsed) .tx-panel__collapse-inner{visibility:hidden}:host([data-styled]){--_gap: var(--tx-panel-gap);--_icon: var(--tx-panel-icon-size);--_title: var(--tx-panel-title-font-size);display:flex;flex-direction:column;gap:var(--_gap);padding:var(--tx-panel-padding);border-radius:var(--tx-panel-border-radius);background:var(--tx-panel-background);box-shadow:inset 0 0 0 1px var(--tx-panel-border-color),var(--tx-panel-shadow);color:var(--tx-panel-color);font-family:var(--tx-font-family);transition:gap var(--tx-panel-transition-duration)}:host([data-styled].tx-panel--collapsed){gap:0}:host([data-styled][data-variant=inset]){--_gap: var(--tx-panel-inset-gap);padding:var(--tx-panel-inset-padding);background:var(--tx-panel-inset-background);box-shadow:none}:host([data-styled][data-variant=plain]){--_gap: var(--tx-panel-plain-gap);--_icon: var(--tx-panel-plain-icon-size);--_title: var(--tx-panel-plain-title-font-size);padding:0;border-radius:0;background:transparent;box-shadow:none}:host([data-styled]) .tx-panel__header{gap:12px}:host([data-styled][data-align=start]) .tx-panel__header{align-items:flex-start}:host([data-styled][data-align=center]) .tx-panel__header{align-items:center}:host([data-styled][data-align=end]) .tx-panel__header{align-items:flex-end;column-gap:24px;row-gap:16px}:host([data-styled][data-align=end]) .tx-panel__header .tx-panel__lead{align-self:flex-start}:host([data-styled]) .tx-panel__lead{gap:12px}:host([data-styled]) .tx-panel__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon);height:var(--_icon);border-radius:var(--tx-panel-icon-border-radius);background:var(--tx-panel-icon-background);color:var(--tx-panel-icon-color);font-size:calc(var(--_icon) * .45)}:host([data-styled]) .tx-panel__heading{gap:2px}:host([data-styled]) .tx-panel__title{font-size:var(--_title);font-weight:var(--tx-panel-title-font-weight);line-height:1.3}:host([data-styled]) .tx-panel__subtitle{margin:0;color:var(--tx-panel-subtitle-color);font-size:var(--tx-panel-subtitle-font-size);line-height:1.45}:host([data-styled]) .tx-panel__actions{flex-wrap:wrap;gap:8px}:host([data-styled]) .tx-panel__toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:var(--tx-radius-md);background:transparent;color:var(--tx-text-muted);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-panel__toggle tx-icon{transition:transform var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__toggle:hover{background:var(--tx-surface-hover);color:var(--tx-text-primary)}:host([data-styled]) .tx-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled].tx-panel--collapsed) .tx-panel__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-panel__collapse{transition:grid-template-rows var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:var(--_gap)}:host([data-styled]) .tx-panel__body:empty+.tx-panel__footer{margin-top:0}:host([data-styled]) .tx-panel__footer:empty{display:none}:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner{transition:visibility 0s linear var(--tx-panel-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-panel__collapse,:host([data-styled]) .tx-panel__toggle,:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner,:host([data-styled]) .tx-panel__toggle tx-icon{transition:none}}\n"],
176
177
  dependencies: [{
177
178
  kind: "component",
178
179
  type: TxIcon,
@@ -199,6 +200,7 @@ i0.ɵɵngDeclareClassMetadata({
199
200
  "[class]": "passThrough().root?.class",
200
201
  "[style]": "hostStyle()",
201
202
  "[attr.data-styled]": "!isUnstyled() || null",
203
+ "[attr.title]": "null",
202
204
  "[attr.data-variant]": "variant()",
203
205
  "[attr.data-align]": "align()",
204
206
  "[class.tx-panel--collapsed]": "toggleable() && collapsed()",
@@ -207,7 +209,7 @@ i0.ɵɵngDeclareClassMetadata({
207
209
  },
208
210
  viewProviders: [provideTxIconDefaults(PANEL_ICON_DEFAULTS)],
209
211
  template: "<header class=\"tx-panel__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-panel__lead\">\n @if (icon(); as icon) {\n <span class=\"tx-panel__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <div class=\"tx-panel__heading\">\n @if (title()) {\n <div class=\"tx-panel__title\" role=\"heading\" [id]=\"titleId\" [attr.aria-level]=\"headingLevel()\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ title() }}\n </div>\n }\n @if (subtitle()) {\n <p class=\"tx-panel__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n <ng-content select=\"[txPanelHeader]\" />\n </div>\n </div>\n <div class=\"tx-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPanelActions]\" />\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"bodyId\"\n [attr.aria-label]=\"toggleLabel() ?? title() ?? null\"\n (click)=\"toggle()\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n </button>\n }\n </div>\n</header>\n<div class=\"tx-panel__collapse\" [id]=\"bodyId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-panel__collapse-inner\">\n <div class=\"tx-panel__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\"><ng-content /></div>\n <div class=\"tx-panel__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\"><ng-content select=\"[txPanelFooter]\" /></div>\n </div>\n</div>\n",
210
- styles: [":host{display:block;min-width:0}.tx-panel__header{display:flex;flex-wrap:wrap;justify-content:space-between}.tx-panel__lead{display:flex;align-items:center;min-width:0}.tx-panel__heading{display:flex;flex-direction:column;min-width:0}.tx-panel__actions{display:flex;align-items:center}.tx-panel__actions:empty,.tx-panel__body:empty,.tx-panel__footer:empty,.tx-panel__collapse:has(.tx-panel__body:empty):has(.tx-panel__footer:empty){display:none}.tx-panel__collapse{display:grid;grid-template-rows:1fr}:host(.tx-panel--collapsed) .tx-panel__collapse{grid-template-rows:0fr}.tx-panel__collapse-inner{min-height:0;overflow:hidden}:host(.tx-panel--collapsed) .tx-panel__collapse-inner{visibility:hidden}:host([data-styled]){--_gap: var(--tx-panel-gap);--_icon: var(--tx-panel-icon-size);--_title: var(--tx-panel-title-font-size);display:flex;flex-direction:column;gap:var(--_gap);padding:var(--tx-panel-padding);border-radius:var(--tx-panel-border-radius);background:var(--tx-panel-background);box-shadow:inset 0 0 0 1px var(--tx-panel-border-color);color:var(--tx-panel-color);font-family:var(--tx-font-family);transition:gap var(--tx-panel-transition-duration)}:host([data-styled].tx-panel--collapsed){gap:0}:host([data-styled][data-variant=inset]){--_gap: var(--tx-panel-inset-gap);padding:var(--tx-panel-inset-padding);background:var(--tx-panel-inset-background);box-shadow:none}:host([data-styled][data-variant=plain]){--_gap: var(--tx-panel-plain-gap);--_icon: var(--tx-panel-plain-icon-size);--_title: var(--tx-panel-plain-title-font-size);padding:0;border-radius:0;background:transparent;box-shadow:none}:host([data-styled]) .tx-panel__header{gap:12px}:host([data-styled][data-align=start]) .tx-panel__header{align-items:flex-start}:host([data-styled][data-align=center]) .tx-panel__header{align-items:center}:host([data-styled][data-align=end]) .tx-panel__header{align-items:flex-end;column-gap:24px;row-gap:16px}:host([data-styled][data-align=end]) .tx-panel__header .tx-panel__lead{align-self:flex-start}:host([data-styled]) .tx-panel__lead{gap:12px}:host([data-styled]) .tx-panel__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon);height:var(--_icon);border-radius:var(--tx-panel-icon-border-radius);background:var(--tx-panel-icon-background);color:var(--tx-panel-icon-color);font-size:calc(var(--_icon) * .45)}:host([data-styled]) .tx-panel__heading{gap:2px}:host([data-styled]) .tx-panel__title{font-size:var(--_title);font-weight:var(--tx-panel-title-font-weight);line-height:1.3}:host([data-styled]) .tx-panel__subtitle{margin:0;color:var(--tx-panel-subtitle-color);font-size:var(--tx-panel-subtitle-font-size);line-height:1.45}:host([data-styled]) .tx-panel__actions{flex-wrap:wrap;gap:8px}:host([data-styled]) .tx-panel__toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:var(--tx-radius-md);background:transparent;color:var(--tx-text-muted);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-panel__toggle tx-icon{transition:transform var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__toggle:hover{background:var(--tx-surface-hover);color:var(--tx-text-primary)}:host([data-styled]) .tx-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled].tx-panel--collapsed) .tx-panel__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-panel__collapse{transition:grid-template-rows var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:var(--_gap)}:host([data-styled]) .tx-panel__body:empty+.tx-panel__footer{margin-top:0}:host([data-styled]) .tx-panel__footer:empty{display:none}:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner{transition:visibility 0s linear var(--tx-panel-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-panel__collapse,:host([data-styled]) .tx-panel__toggle,:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner,:host([data-styled]) .tx-panel__toggle tx-icon{transition:none}}\n"]
212
+ styles: [":host{display:block;min-width:0}.tx-panel__header{display:flex;flex-wrap:wrap;justify-content:space-between}.tx-panel__lead{display:flex;align-items:center;min-width:0}.tx-panel__heading{display:flex;flex-direction:column;min-width:0}.tx-panel__actions{display:flex;align-items:center}.tx-panel__actions:empty,.tx-panel__body:empty,.tx-panel__footer:empty,.tx-panel__collapse:has(.tx-panel__body:empty):has(.tx-panel__footer:empty){display:none}.tx-panel__collapse{display:grid;grid-template-rows:1fr}:host(.tx-panel--collapsed) .tx-panel__collapse{grid-template-rows:0fr}.tx-panel__collapse-inner{min-height:0;overflow:hidden}:host(.tx-panel--collapsed) .tx-panel__collapse-inner{visibility:hidden}:host([data-styled]){--_gap: var(--tx-panel-gap);--_icon: var(--tx-panel-icon-size);--_title: var(--tx-panel-title-font-size);display:flex;flex-direction:column;gap:var(--_gap);padding:var(--tx-panel-padding);border-radius:var(--tx-panel-border-radius);background:var(--tx-panel-background);box-shadow:inset 0 0 0 1px var(--tx-panel-border-color),var(--tx-panel-shadow);color:var(--tx-panel-color);font-family:var(--tx-font-family);transition:gap var(--tx-panel-transition-duration)}:host([data-styled].tx-panel--collapsed){gap:0}:host([data-styled][data-variant=inset]){--_gap: var(--tx-panel-inset-gap);padding:var(--tx-panel-inset-padding);background:var(--tx-panel-inset-background);box-shadow:none}:host([data-styled][data-variant=plain]){--_gap: var(--tx-panel-plain-gap);--_icon: var(--tx-panel-plain-icon-size);--_title: var(--tx-panel-plain-title-font-size);padding:0;border-radius:0;background:transparent;box-shadow:none}:host([data-styled]) .tx-panel__header{gap:12px}:host([data-styled][data-align=start]) .tx-panel__header{align-items:flex-start}:host([data-styled][data-align=center]) .tx-panel__header{align-items:center}:host([data-styled][data-align=end]) .tx-panel__header{align-items:flex-end;column-gap:24px;row-gap:16px}:host([data-styled][data-align=end]) .tx-panel__header .tx-panel__lead{align-self:flex-start}:host([data-styled]) .tx-panel__lead{gap:12px}:host([data-styled]) .tx-panel__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_icon);height:var(--_icon);border-radius:var(--tx-panel-icon-border-radius);background:var(--tx-panel-icon-background);color:var(--tx-panel-icon-color);font-size:calc(var(--_icon) * .45)}:host([data-styled]) .tx-panel__heading{gap:2px}:host([data-styled]) .tx-panel__title{font-size:var(--_title);font-weight:var(--tx-panel-title-font-weight);line-height:1.3}:host([data-styled]) .tx-panel__subtitle{margin:0;color:var(--tx-panel-subtitle-color);font-size:var(--tx-panel-subtitle-font-size);line-height:1.45}:host([data-styled]) .tx-panel__actions{flex-wrap:wrap;gap:8px}:host([data-styled]) .tx-panel__toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:var(--tx-radius-md);background:transparent;color:var(--tx-text-muted);cursor:pointer;transition:color var(--tx-motion-duration),background-color var(--tx-motion-duration)}:host([data-styled]) .tx-panel__toggle tx-icon{transition:transform var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__toggle:hover{background:var(--tx-surface-hover);color:var(--tx-text-primary)}:host([data-styled]) .tx-panel__toggle:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled].tx-panel--collapsed) .tx-panel__toggle tx-icon{transform:rotate(-90deg)}:host([data-styled]) .tx-panel__collapse{transition:grid-template-rows var(--tx-panel-transition-duration) cubic-bezier(.2,0,0,1)}:host([data-styled]) .tx-panel__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:var(--_gap)}:host([data-styled]) .tx-panel__body:empty+.tx-panel__footer{margin-top:0}:host([data-styled]) .tx-panel__footer:empty{display:none}:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner{transition:visibility 0s linear var(--tx-panel-transition-duration)}@media(prefers-reduced-motion:reduce){:host([data-styled]),:host([data-styled]) .tx-panel__collapse,:host([data-styled]) .tx-panel__toggle,:host([data-styled].tx-panel--collapsed) .tx-panel__collapse-inner,:host([data-styled]) .tx-panel__toggle tx-icon{transition:none}}\n"]
211
213
  }]
212
214
  }],
213
215
  propDecorators: {
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-panel.mjs","names":[],"sources":["../../../../packages/ui/panel/src/panel.icons.ts","../../../../packages/ui/panel/src/panel.theme.ts","../../../../packages/ui/panel/src/panel.component.ts","../../../../packages/ui/panel/src/panel.component.html"],"sourcesContent":["import { TxIconSet, txIconChevronDown, txIconHeading } from '@tectra-ng/icons';\n\nexport const PANEL_ICON_DEFAULTS: TxIconSet = {\n 'chevron-down': txIconChevronDown,\n heading: txIconHeading,\n};\n","import { panelTokens } from '@tectra-ng/themes';\n\nexport const PANEL_THEME = {\n panel: panelTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, model } from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPanelTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPanelAlign, TxPanelPart, TxPanelVariant } from './panel.types';\nimport { PANEL_ICON_DEFAULTS } from './panel.icons';\nimport { PANEL_THEME } from './panel.theme';\n\n@Component({\n selector: 'tx-panel',\n imports: [TxIcon],\n templateUrl: './panel.component.html',\n styleUrl: './panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-align]': 'align()',\n '[class.tx-panel--collapsed]': 'toggleable() && collapsed()',\n '[attr.role]': 'title() ? \"region\" : null',\n '[attr.aria-labelledby]': 'title() ? titleId : null',\n },\n viewProviders: [provideTxIconDefaults(PANEL_ICON_DEFAULTS)],\n})\nexport class TxPanel {\n private readonly panelTheme = injectTokens(PANEL_THEME);\n\n private txIconRegistry = injectTxIcons();\n private id = uniqueId('tx-panel');\n\n readonly title = input<string | undefined>(undefined);\n readonly subtitle = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly variant = input<TxPanelVariant>('card');\n readonly align = input<TxPanelAlign>('start');\n readonly headingLevel = input<number>(2);\n readonly toggleable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly collapsed = model<boolean>(false);\n readonly toggleLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPanelTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPanelPart, TxPanel> | 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('panel', this, this.pt, this.ptOptions);\n readonly titleId = `${this.id}-title`;\n readonly bodyId = `${this.id}-body`;\n readonly isOpen = computed(() => !this.toggleable() || !this.collapsed());\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-panel'), ...this.passThrough().root?.style }));\n\n toggle(): void {\n this.collapsed.update((collapsed) => !collapsed);\n }\n}\n","<header class=\"tx-panel__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-panel__lead\">\n @if (icon(); as icon) {\n <span class=\"tx-panel__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <div class=\"tx-panel__heading\">\n @if (title()) {\n <div class=\"tx-panel__title\" role=\"heading\" [id]=\"titleId\" [attr.aria-level]=\"headingLevel()\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ title() }}\n </div>\n }\n @if (subtitle()) {\n <p class=\"tx-panel__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n <ng-content select=\"[txPanelHeader]\" />\n </div>\n </div>\n <div class=\"tx-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPanelActions]\" />\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"bodyId\"\n [attr.aria-label]=\"toggleLabel() ?? title() ?? null\"\n (click)=\"toggle()\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n </button>\n }\n </div>\n</header>\n<div class=\"tx-panel__collapse\" [id]=\"bodyId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-panel__collapse-inner\">\n <div class=\"tx-panel__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\"><ng-content /></div>\n <div class=\"tx-panel__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\"><ng-content select=\"[txPanelFooter]\" /></div>\n </div>\n</div>\n"],"mappings":";;;;;;;AAEA,MAAa,sBAAiC;CAC5C,gBAAgB;CAChB,SAAS;AACV;ACHD,MAAa,cAAc,EACzB,OAAO,YACR;ACyBD,IAAa,UAAb,MAAa,QAAO;CACD,aAAa,aAAa,WAAW;CAE9C,iBAAiB,cAAa;CAC9B,KAAK,SAAS,UAAU;CAEvB,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA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CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-panel.mjs","names":[],"sources":["../../../../packages/ui/panel/src/panel.icons.ts","../../../../packages/ui/panel/src/panel.theme.ts","../../../../packages/ui/panel/src/panel.component.ts","../../../../packages/ui/panel/src/panel.component.html"],"sourcesContent":["import { TxIconSet, txIconChevronDown, txIconHeading } from '@tectra-ng/icons';\n\nexport const PANEL_ICON_DEFAULTS: TxIconSet = {\n 'chevron-down': txIconChevronDown,\n heading: txIconHeading,\n};\n","import { panelTokens } from '@tectra-ng/themes';\n\nexport const PANEL_THEME = {\n panel: panelTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, model } from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPanelTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPanelAlign, TxPanelPart, TxPanelVariant } from './panel.types';\nimport { PANEL_ICON_DEFAULTS } from './panel.icons';\nimport { PANEL_THEME } from './panel.theme';\n\n@Component({\n selector: 'tx-panel',\n imports: [TxIcon],\n templateUrl: './panel.component.html',\n styleUrl: './panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-panel',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-align]': 'align()',\n '[class.tx-panel--collapsed]': 'toggleable() && collapsed()',\n '[attr.role]': 'title() ? \"region\" : null',\n '[attr.aria-labelledby]': 'title() ? titleId : null',\n },\n viewProviders: [provideTxIconDefaults(PANEL_ICON_DEFAULTS)],\n})\nexport class TxPanel {\n private readonly panelTheme = injectTokens(PANEL_THEME);\n\n private txIconRegistry = injectTxIcons();\n private id = uniqueId('tx-panel');\n\n readonly title = input<string | undefined>(undefined);\n readonly subtitle = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly variant = input<TxPanelVariant>('card');\n readonly align = input<TxPanelAlign>('start');\n readonly headingLevel = input<number>(2);\n readonly toggleable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly collapsed = model<boolean>(false);\n readonly toggleLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPanelTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPanelPart, TxPanel> | 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('panel', this, this.pt, this.ptOptions);\n readonly titleId = `${this.id}-title`;\n readonly bodyId = `${this.id}-body`;\n readonly isOpen = computed(() => !this.toggleable() || !this.collapsed());\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-panel'), ...this.passThrough().root?.style }));\n\n toggle(): void {\n this.collapsed.update((collapsed) => !collapsed);\n }\n}\n","<header class=\"tx-panel__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-panel__lead\">\n @if (icon(); as icon) {\n <span class=\"tx-panel__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <div class=\"tx-panel__heading\">\n @if (title()) {\n <div class=\"tx-panel__title\" role=\"heading\" [id]=\"titleId\" [attr.aria-level]=\"headingLevel()\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ title() }}\n </div>\n }\n @if (subtitle()) {\n <p class=\"tx-panel__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</p>\n }\n <ng-content select=\"[txPanelHeader]\" />\n </div>\n </div>\n <div class=\"tx-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n <ng-content select=\"[txPanelActions]\" />\n @if (toggleable()) {\n <button\n type=\"button\"\n class=\"tx-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.aria-controls]=\"bodyId\"\n [attr.aria-label]=\"toggleLabel() ?? title() ?? null\"\n (click)=\"toggle()\"\n >\n <tx-icon [name]=\"'chevron-down'\" />\n </button>\n }\n </div>\n</header>\n<div class=\"tx-panel__collapse\" [id]=\"bodyId\" [attr.inert]=\"isOpen() ? null : ''\">\n <div class=\"tx-panel__collapse-inner\">\n <div class=\"tx-panel__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\"><ng-content /></div>\n <div class=\"tx-panel__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\"><ng-content select=\"[txPanelFooter]\" /></div>\n </div>\n</div>\n"],"mappings":";;;;;;;AAEA,MAAa,sBAAiC;CAC5C,gBAAgB;CAChB,SAAS;AACV;ACHD,MAAa,cAAc,EACzB,OAAO,YACR;AC0BD,IAAa,UAAb,MAAa,QAAO;CACD,aAAa,aAAa,WAAW;CAE9C,iBAAiB,cAAa;CAC9B,KAAK,SAAS,UAAU;CAEvB,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,WAAW,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,OAAO,MAA8C,QAAU,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ACc,CAAC,sBAAsB,mBAAmB,CAAC;GAAC,UAAA;GAAA,QAAA,CAAA,0vIAAA;EAAA,CAAA"}
@@ -14,6 +14,9 @@ import { fieldTokens, formFieldTokens, passwordTokens, toStyleObject } from "@te
14
14
  import { TxInput } from "@tectra-ng/ui/input";
15
15
  var TxPasswordHeaderTemplate = class TxPasswordHeaderTemplate {
16
16
  templateRef = inject(TemplateRef);
17
+ static ngTemplateContextGuard(_directive, context) {
18
+ return !!context;
19
+ }
17
20
  static ɵfac = i0.ɵɵngDeclareFactory({
18
21
  minVersion: "12.0.0",
19
22
  version: "22.2.5",
@@ -43,6 +46,9 @@ i0.ɵɵngDeclareClassMetadata({
43
46
  });
44
47
  var TxPasswordContentTemplate = class TxPasswordContentTemplate {
45
48
  templateRef = inject(TemplateRef);
49
+ static ngTemplateContextGuard(_directive, context) {
50
+ return !!context;
51
+ }
46
52
  static ɵfac = i0.ɵɵngDeclareFactory({
47
53
  minVersion: "12.0.0",
48
54
  version: "22.2.5",
@@ -72,6 +78,9 @@ i0.ɵɵngDeclareClassMetadata({
72
78
  });
73
79
  var TxPasswordFooterTemplate = class TxPasswordFooterTemplate {
74
80
  templateRef = inject(TemplateRef);
81
+ static ngTemplateContextGuard(_directive, context) {
82
+ return !!context;
83
+ }
75
84
  static ɵfac = i0.ɵɵngDeclareFactory({
76
85
  minVersion: "12.0.0",
77
86
  version: "22.2.5",
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-password.mjs","names":[],"sources":["../../../../packages/ui/password/src/password-templates.directive.ts","../../../../packages/ui/password/src/password.icons.ts","../../../../packages/ui/password/src/password.theme.ts","../../../../packages/ui/password/src/password.component.ts","../../../../packages/ui/password/src/password.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPasswordTemplateContext } from './password.types';\n\n@Directive({ selector: 'ng-template[txPasswordHeader]' })\nexport class TxPasswordHeaderTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPasswordContent]' })\nexport class TxPasswordContentTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txPasswordFooter]' })\nexport class TxPasswordFooterTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n}\n","import { TxIconSet, txIconEye, txIconEyeSlash, txIconInfo, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const PASSWORD_ICON_DEFAULTS: TxIconSet = {\n eye: txIconEye,\n 'eye-slash': txIconEyeSlash,\n info: txIconInfo,\n text: txIconText,\n times: txIconTimes,\n};\n","import { fieldTokens, formFieldTokens, passwordTokens } from '@tectra-ng/themes';\n\nexport const PASSWORD_THEME = {\n field: fieldTokens,\n formField: formFieldTokens,\n password: passwordTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxOverlay, TxOverlayRef } from '@tectra-ng/core/overlay';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPasswordTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxPasswordContentTemplate, TxPasswordFooterTemplate, TxPasswordHeaderTemplate } from './password-templates.directive';\nimport { TxPasswordPart, TxPasswordSize, TxPasswordStrength, TxPasswordVariant } from './password.types';\nimport { PASSWORD_ICON_DEFAULTS } from './password.icons';\nimport { PASSWORD_THEME } from './password.theme';\n\nconst MEDIUM = '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})';\nconst STRONG = '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})';\n\n@Component({\n selector: 'tx-password',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './password.component.html',\n styleUrl: './password.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxPassword), multi: true }],\n host: {\n class: 'tx-password',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-password--fluid]': 'isFluid()',\n '[class.tx-password--filled]': 'hasValue()',\n '[class.tx-password--invalid]': 'isInvalid()',\n '[class.tx-password--disabled]': 'isDisabled()',\n },\n viewProviders: [provideTxIconDefaults(PASSWORD_ICON_DEFAULTS)],\n})\nexport class TxPassword extends TxFormControlBase<string> {\n private readonly passwordTheme = injectTokens(PASSWORD_THEME);\n\n private overlay = inject(TxOverlay);\n private viewContainerRef = inject(ViewContainerRef);\n private generatedId = uniqueId('tx-password');\n private panelRef: TxOverlayRef | null = null;\n\n readonly feedback = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly toggleMask = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly promptLabel = input<string | undefined>(undefined);\n readonly weakLabel = input<string | undefined>(undefined);\n readonly mediumLabel = input<string | undefined>(undefined);\n readonly strongLabel = input<string | undefined>(undefined);\n readonly mediumRegex = input<string | RegExp>(MEDIUM);\n readonly strongRegex = input<string | RegExp>(STRONG);\n readonly autocomplete = input<string>('current-password');\n readonly size = input<TxPasswordSize>('medium');\n readonly variant = input<TxPasswordVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly maxlength = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraPasswordTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPasswordPart, TxPassword> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly strengthChange = output<TxPasswordStrength | null>();\n readonly cleared = output<void>();\n\n readonly headerTemplate = contentChild(TxPasswordHeaderTemplate);\n readonly contentTemplate = contentChild(TxPasswordContentTemplate);\n readonly footerTemplate = contentChild(TxPasswordFooterTemplate);\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n readonly panelTemplate = viewChild.required<TemplateRef<unknown>>('panel');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('password', this, this.pt, this.ptOptions);\n\n readonly isMasked = signal(true);\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly infoId = `${this.generatedId}-info`;\n readonly text = computed(() => this.value() ?? '');\n readonly hasValue = computed(() => this.text() !== '');\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly strength = computed<TxPasswordStrength | null>(() => {\n const value = this.text();\n if (!value) {\n return null;\n }\n if (toRegExp(this.strongRegex()).test(value)) {\n return 'strong';\n }\n return toRegExp(this.mediumRegex()).test(value) ? 'medium' : 'weak';\n });\n readonly info = computed(() => {\n const t = this.translations();\n switch (this.strength()) {\n case 'strong':\n return this.strongLabel() ?? t.passwordStrong;\n case 'medium':\n return this.mediumLabel() ?? t.passwordMedium;\n case 'weak':\n return this.weakLabel() ?? t.passwordWeak;\n default:\n return this.promptLabel() ?? t.passwordPrompt;\n }\n });\n readonly actionCount = computed(() => Number(this.toggleMask()) + Number(this.showClear() && this.hasValue() && this.isEditable()));\n readonly templateContext = computed(() => ({ $implicit: this.strength(), value: this.text() }));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-password'),\n '--tx-password-actions': String(this.actionCount()),\n ...this.passThrough().root?.style,\n }));\n\n constructor() {\n super();\n let previous: TxPasswordStrength | null = null;\n effect(() => {\n const strength = this.strength();\n if (strength !== previous) {\n previous = strength;\n this.strengthChange.emit(strength);\n }\n });\n inject(DestroyRef).onDestroy(() => this.panelRef?.close());\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n this.updateValue((event.target as HTMLInputElement).value);\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n if (this.feedback() && this.isEditable() && !this.panelRef) {\n this.panelRef = this.overlay.open(this.panelTemplate(), {\n origin: this.inputRef().nativeElement,\n viewContainerRef: this.viewContainerRef,\n placement: 'bottom-start',\n matchWidth: true,\n closeOnOutsideClick: false,\n restoreFocus: false,\n panelClass: 'tx-password-overlay',\n });\n this.panelRef.closed.subscribe(() => (this.panelRef = null));\n }\n }\n\n onBlur(): void {\n this.isFocused.set(false);\n this.markTouched();\n this.panelRef?.close();\n }\n\n fill(value: string, reveal = true): void {\n this.updateValue(value);\n if (reveal) {\n this.isMasked.set(false);\n }\n }\n\n toggleVisibility(): void {\n this.isMasked.update((masked) => !masked);\n this.focus();\n }\n\n clear(): void {\n this.updateValue('');\n this.cleared.emit();\n this.focus();\n }\n}\n\nfunction toRegExp(pattern: string | RegExp): RegExp {\n return typeof pattern === 'string' ? new RegExp(pattern) : pattern;\n}\n","<input\n #input\n txInput\n class=\"tx-password__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [type]=\"isMasked() ? 'password' : 'text'\"\n [value]=\"text()\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"feedback() && isFocused() ? infoId : null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n/>\n<span class=\"tx-password__actions\">\n @if (showClear() && hasValue() && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n @if (toggleMask()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-label]=\"translations().showPassword\"\n [attr.aria-pressed]=\"!isMasked()\"\n [attr.aria-controls]=\"resolvedId()\"\n [title]=\"isMasked() ? translations().showPassword : translations().hidePassword\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleVisibility()\"\n >\n <tx-icon [name]=\"isMasked() ? 'eye' : 'eye-slash'\" />\n </button>\n }\n</span>\n\n<ng-template #panel>\n <div class=\"tx-password__panel\" [attr.data-styled]=\"!isUnstyled() || null\" [style]=\"hostStyle()\" [class]=\"passThrough().panel?.class\">\n @if (headerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n <div class=\"tx-password__meter\" [attr.data-strength]=\"strength()\" [class]=\"passThrough().meter?.class\" [style]=\"passThrough().meter?.style\">\n <span class=\"tx-password__meter-bar\"></span>\n </div>\n <div class=\"tx-password__info\" aria-live=\"polite\" [id]=\"infoId\" [class]=\"passThrough().info?.class\" [style]=\"passThrough().info?.style\">\n {{ info() }}\n </div>\n @if (contentTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n @if (footerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA+C,WAAW;CADtE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAA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["../../../../packages/ui/password/src/password-templates.directive.ts","../../../../packages/ui/password/src/password.icons.ts","../../../../packages/ui/password/src/password.theme.ts","../../../../packages/ui/password/src/password.component.ts","../../../../packages/ui/password/src/password.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxPasswordTemplateContext } from './password.types';\n\n@Directive({ selector: 'ng-template[txPasswordHeader]' })\nexport class TxPasswordHeaderTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxPasswordHeaderTemplate, context: unknown): context is TxPasswordTemplateContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txPasswordContent]' })\nexport class TxPasswordContentTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxPasswordContentTemplate, context: unknown): context is TxPasswordTemplateContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txPasswordFooter]' })\nexport class TxPasswordFooterTemplate {\n readonly templateRef = inject<TemplateRef<TxPasswordTemplateContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxPasswordFooterTemplate, context: unknown): context is TxPasswordTemplateContext {\n return !!context;\n }\n}\n","import { TxIconSet, txIconEye, txIconEyeSlash, txIconInfo, txIconText, txIconTimes } from '@tectra-ng/icons';\n\nexport const PASSWORD_ICON_DEFAULTS: TxIconSet = {\n eye: txIconEye,\n 'eye-slash': txIconEyeSlash,\n info: txIconInfo,\n text: txIconText,\n times: txIconTimes,\n};\n","import { fieldTokens, formFieldTokens, passwordTokens } from '@tectra-ng/themes';\n\nexport const PASSWORD_THEME = {\n field: fieldTokens,\n formField: formFieldTokens,\n password: passwordTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxFormControlBase, injectFieldInvalid } from '@tectra-ng/core/forms';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxOverlay, TxOverlayRef } from '@tectra-ng/core/overlay';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPasswordTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxInput } from '@tectra-ng/ui/input';\nimport { TxPasswordContentTemplate, TxPasswordFooterTemplate, TxPasswordHeaderTemplate } from './password-templates.directive';\nimport { TxPasswordPart, TxPasswordSize, TxPasswordStrength, TxPasswordVariant } from './password.types';\nimport { PASSWORD_ICON_DEFAULTS } from './password.icons';\nimport { PASSWORD_THEME } from './password.theme';\n\nconst MEDIUM = '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})';\nconst STRONG = '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})';\n\n@Component({\n selector: 'tx-password',\n imports: [TxInput, TxIcon, NgTemplateOutlet],\n templateUrl: './password.component.html',\n styleUrl: './password.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TxPassword), multi: true }],\n host: {\n class: 'tx-password',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-password--fluid]': 'isFluid()',\n '[class.tx-password--filled]': 'hasValue()',\n '[class.tx-password--invalid]': 'isInvalid()',\n '[class.tx-password--disabled]': 'isDisabled()',\n },\n viewProviders: [provideTxIconDefaults(PASSWORD_ICON_DEFAULTS)],\n})\nexport class TxPassword extends TxFormControlBase<string> {\n private readonly passwordTheme = injectTokens(PASSWORD_THEME);\n\n private overlay = inject(TxOverlay);\n private viewContainerRef = inject(ViewContainerRef);\n private generatedId = uniqueId('tx-password');\n private panelRef: TxOverlayRef | null = null;\n\n readonly feedback = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly toggleMask = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showClear = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<string | undefined>(undefined);\n readonly promptLabel = input<string | undefined>(undefined);\n readonly weakLabel = input<string | undefined>(undefined);\n readonly mediumLabel = input<string | undefined>(undefined);\n readonly strongLabel = input<string | undefined>(undefined);\n readonly mediumRegex = input<string | RegExp>(MEDIUM);\n readonly strongRegex = input<string | RegExp>(STRONG);\n readonly autocomplete = input<string>('current-password');\n readonly size = input<TxPasswordSize>('medium');\n readonly variant = input<TxPasswordVariant>('outlined');\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly invalid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly disabledInput = input<boolean, unknown>(false, { alias: 'disabled', transform: booleanAttribute });\n readonly readonly = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly required = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly maxlength = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly name = input<string | undefined>(undefined);\n readonly inputId = input<string | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly dt = input<TectraDeepPartial<TectraPasswordTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPasswordPart, TxPassword> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly strengthChange = output<TxPasswordStrength | null>();\n readonly cleared = output<void>();\n\n readonly headerTemplate = contentChild(TxPasswordHeaderTemplate);\n readonly contentTemplate = contentChild(TxPasswordContentTemplate);\n readonly footerTemplate = contentChild(TxPasswordFooterTemplate);\n readonly inputRef = viewChild.required<ElementRef<HTMLInputElement>>('input');\n readonly panelTemplate = viewChild.required<TemplateRef<unknown>>('panel');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly isFluid = injectFluid(this.fluid);\n readonly isInvalid = injectFieldInvalid(this.invalid);\n readonly passThrough = injectPassThrough('password', this, this.pt, this.ptOptions);\n\n readonly isMasked = signal(true);\n readonly isFocused = signal(false);\n readonly resolvedId = computed(() => this.inputId() ?? this.generatedId);\n readonly infoId = `${this.generatedId}-info`;\n readonly text = computed(() => this.value() ?? '');\n readonly hasValue = computed(() => this.text() !== '');\n readonly isDisabled = computed(() => this.disabled() || this.disabledInput());\n readonly isEditable = computed(() => !this.isDisabled() && !this.readonly());\n readonly strength = computed<TxPasswordStrength | null>(() => {\n const value = this.text();\n if (!value) {\n return null;\n }\n if (toRegExp(this.strongRegex()).test(value)) {\n return 'strong';\n }\n return toRegExp(this.mediumRegex()).test(value) ? 'medium' : 'weak';\n });\n readonly info = computed(() => {\n const t = this.translations();\n switch (this.strength()) {\n case 'strong':\n return this.strongLabel() ?? t.passwordStrong;\n case 'medium':\n return this.mediumLabel() ?? t.passwordMedium;\n case 'weak':\n return this.weakLabel() ?? t.passwordWeak;\n default:\n return this.promptLabel() ?? t.passwordPrompt;\n }\n });\n readonly actionCount = computed(() => Number(this.toggleMask()) + Number(this.showClear() && this.hasValue() && this.isEditable()));\n readonly templateContext = computed(() => ({ $implicit: this.strength(), value: this.text() }));\n readonly hostStyle = computed(() => ({\n ...toStyleObject(this.dt(), '--tx-password'),\n '--tx-password-actions': String(this.actionCount()),\n ...this.passThrough().root?.style,\n }));\n\n constructor() {\n super();\n let previous: TxPasswordStrength | null = null;\n effect(() => {\n const strength = this.strength();\n if (strength !== previous) {\n previous = strength;\n this.strengthChange.emit(strength);\n }\n });\n inject(DestroyRef).onDestroy(() => this.panelRef?.close());\n }\n\n focus(): void {\n this.inputRef().nativeElement.focus();\n }\n\n onInput(event: Event): void {\n this.updateValue((event.target as HTMLInputElement).value);\n }\n\n onFocus(): void {\n this.isFocused.set(true);\n if (this.feedback() && this.isEditable() && !this.panelRef) {\n this.panelRef = this.overlay.open(this.panelTemplate(), {\n origin: this.inputRef().nativeElement,\n viewContainerRef: this.viewContainerRef,\n placement: 'bottom-start',\n matchWidth: true,\n closeOnOutsideClick: false,\n restoreFocus: false,\n panelClass: 'tx-password-overlay',\n });\n this.panelRef.closed.subscribe(() => (this.panelRef = null));\n }\n }\n\n onBlur(): void {\n this.isFocused.set(false);\n this.markTouched();\n this.panelRef?.close();\n }\n\n fill(value: string, reveal = true): void {\n this.updateValue(value);\n if (reveal) {\n this.isMasked.set(false);\n }\n }\n\n toggleVisibility(): void {\n this.isMasked.update((masked) => !masked);\n this.focus();\n }\n\n clear(): void {\n this.updateValue('');\n this.cleared.emit();\n this.focus();\n }\n}\n\nfunction toRegExp(pattern: string | RegExp): RegExp {\n return typeof pattern === 'string' ? new RegExp(pattern) : pattern;\n}\n","<input\n #input\n txInput\n class=\"tx-password__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [type]=\"isMasked() ? 'password' : 'text'\"\n [value]=\"text()\"\n [id]=\"resolvedId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.maxlength]=\"maxlength() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"feedback() && isFocused() ? infoId : null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n/>\n<span class=\"tx-password__actions\">\n @if (showClear() && hasValue() && isEditable()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n [title]=\"translations().clear\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n @if (toggleMask()) {\n <button\n type=\"button\"\n class=\"tx-password__action tx-password__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-label]=\"translations().showPassword\"\n [attr.aria-pressed]=\"!isMasked()\"\n [attr.aria-controls]=\"resolvedId()\"\n [title]=\"isMasked() ? translations().showPassword : translations().hidePassword\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleVisibility()\"\n >\n <tx-icon [name]=\"isMasked() ? 'eye' : 'eye-slash'\" />\n </button>\n }\n</span>\n\n<ng-template #panel>\n <div class=\"tx-password__panel\" [attr.data-styled]=\"!isUnstyled() || null\" [style]=\"hostStyle()\" [class]=\"passThrough().panel?.class\">\n @if (headerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n <div class=\"tx-password__meter\" [attr.data-strength]=\"strength()\" [class]=\"passThrough().meter?.class\" [style]=\"passThrough().meter?.style\">\n <span class=\"tx-password__meter-bar\"></span>\n </div>\n <div class=\"tx-password__info\" aria-live=\"polite\" [id]=\"infoId\" [class]=\"passThrough().info?.class\" [style]=\"passThrough().info?.style\">\n {{ info() }}\n </div>\n @if (contentTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n @if (footerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"templateContext()\" />\n }\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA+C,WAAW;CAEjF,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAUxD,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,cAAc,OAA+C,WAAW;CAEjF,OAAO,uBAAuB,YAAuC,SAAgB;EACnF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAzB,GAAA,yBAAA;C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,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACvB,yBAAyB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC1B,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACM,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACV,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA6G3E,SAAS,SAAS,SAAwB;CACxC,OAAO,OAAO,YAAY,WAAW,IAAI,OAAO,OAAO,IAAI;AAC7D"}
@@ -38,6 +38,7 @@ var TxPill = class TxPill {
38
38
  translations = injectTranslations();
39
39
  isUnstyled = injectUnstyled(this.unstyled);
40
40
  passThrough = injectPassThrough("pill", this, this.pt, this.ptOptions);
41
+ resolvedTone = computed(() => this.tone() === "secondary" ? "neutral" : this.tone(), ...ngDevMode ? [{ debugName: "resolvedTone" }] : /* istanbul ignore next */ []);
41
42
  resolvedSize = computed(() => this.size() === "normal" ? "medium" : this.size(), ...ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []);
42
43
  iconName = computed(() => {
43
44
  const icon = this.icon();
@@ -158,7 +159,7 @@ var TxPill = class TxPill {
158
159
  "class": "passThrough().root?.class",
159
160
  "style": "hostStyle()",
160
161
  "attr.data-styled": "!isUnstyled() || null",
161
- "attr.data-tone": "tone()",
162
+ "attr.data-tone": "resolvedTone()",
162
163
  "attr.data-variant": "variant()",
163
164
  "attr.data-size": "resolvedSize()"
164
165
  },
@@ -253,7 +254,7 @@ i0.ɵɵngDeclareClassMetadata({
253
254
  "[class]": "passThrough().root?.class",
254
255
  "[style]": "hostStyle()",
255
256
  "[attr.data-styled]": "!isUnstyled() || null",
256
- "[attr.data-tone]": "tone()",
257
+ "[attr.data-tone]": "resolvedTone()",
257
258
  "[attr.data-variant]": "variant()",
258
259
  "[attr.data-size]": "resolvedSize()"
259
260
  },
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span class=\"tx-pill__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <ng-content select=\"[txPillLeading]\" />\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'tone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;ACoDD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,MAAM,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAClE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,E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gBAAA;EAAA;EAAA,UAAA;EAAA,UA3CP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BT,UAAA;EAAA,QAAA,CAAA,s4HAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA9BS;GAAM,UAAA;GAAA,QAAA,CAAA,MAAA;EAAA,CAAA;EAAA,eA0CD,CAAC,sBAAsB,kBAAkB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAE/C,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAM,YAAA,CAAA;EA9ClB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAS,SACV,CAAC,MAAM;GAAC,UACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,oBAAoB;GACrB;GAAA,eACc,CAAC,sBAAsB,kBAAkB,CAAC;GAAC,QAAA,CAAA,s4HAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-pill.mjs","names":[],"sources":["../../../../packages/ui/pill/src/pill.icons.ts","../../../../packages/ui/pill/src/pill.theme.ts","../../../../packages/ui/pill/src/pill.component.ts"],"sourcesContent":["import { TxIconSet, txIconInfo, txIconTimes } from '@tectra-ng/icons';\n\nexport const PILL_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n times: txIconTimes,\n};\n","import { pillTokens } from '@tectra-ng/themes';\n\nexport const PILL_THEME = {\n pill: pillTokens,\n};\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraPillTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPillPart, TxPillSize, TxPillTone, TxPillVariant } from './pill.types';\nimport { PILL_ICON_DEFAULTS } from './pill.icons';\nimport { PILL_THEME } from './pill.theme';\n\n@Component({\n selector: 'tx-pill',\n imports: [TxIcon],\n template: `\n @if (dot()) {\n <span class=\"tx-pill__dot\" aria-hidden=\"true\"></span>\n } @else if (icon(); as icon) {\n <span class=\"tx-pill__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <ng-content select=\"[txPillLeading]\" />\n <span class=\"tx-pill__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-pill__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './pill.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-pill',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'resolvedSize()',\n },\n viewProviders: [provideTxIconDefaults(PILL_ICON_DEFAULTS)],\n})\nexport class TxPill {\n private readonly pillTheme = injectTokens(PILL_THEME);\n\n private txIconRegistry = injectTxIcons();\n\n readonly value = input<string | number | undefined>(undefined);\n readonly tone = input<TxPillTone>('neutral');\n readonly variant = input<TxPillVariant>('soft');\n readonly size = input<TxPillSize>('medium');\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly dot = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraPillTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxPillPart, TxPill> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly removed = output<Event>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('pill', this, this.pt, this.ptOptions);\n readonly resolvedTone = computed(() => (this.tone() === 'secondary' ? 'neutral' : this.tone()));\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-pill'), ...this.passThrough().root?.style }));\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAEA,MAAa,qBAAgC;CAC3C,MAAM;CACN,OAAO;AACR;ACHD,MAAa,aAAa,EACxB,MAAM,WACP;ACoDD,IAAa,SAAb,MAAa,OAAM;CACA,YAAY,aAAa,UAAU;CAE5C,iBAAiB,cAAa;CAE7B,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,OAAO,MAAkB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,UAAU,MAAqB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,U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C;GAAC,QAAA,CAAA,s4HAAA;EAAA,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, TemplateRef, ViewContainerRef, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
3
- import { InteractivityChecker } from "@angular/cdk/a11y";
3
+ import { InputModalityDetector, InteractivityChecker } from "@angular/cdk/a11y";
4
4
  import { NgTemplateOutlet } from "@angular/common";
5
5
  import { nextTabbable, tabbableElements, uniqueId } from "@tectra-ng/core/a11y";
6
6
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
7
7
  import { injectTranslations } from "@tectra-ng/core/i18n";
8
- import { TxOverlay, parsePlacement, txArrowOffset } from "@tectra-ng/core/overlay";
8
+ import { TxOverlay, parsePlacement, txArrowInset, txArrowOffset } from "@tectra-ng/core/overlay";
9
9
  import { optionalBoolean } from "@tectra-ng/core/utils";
10
10
  import { TxIcon, provideTxIconDefaults, txIconTimes } from "@tectra-ng/icons";
11
11
  import { popoverTokens, toStyleObject } from "@tectra-ng/themes";
@@ -67,6 +67,9 @@ i0.ɵɵngDeclareClassMetadata({
67
67
  });
68
68
  var TxPopoverContent = class TxPopoverContent {
69
69
  template = inject(TemplateRef);
70
+ static ngTemplateContextGuard(_directive, context) {
71
+ return !!context;
72
+ }
70
73
  static ɵfac = i0.ɵɵngDeclareFactory({
71
74
  minVersion: "12.0.0",
72
75
  version: "22.2.5",
@@ -101,6 +104,7 @@ var TxPopover = class TxPopover {
101
104
  overlay = inject(TxOverlay);
102
105
  viewContainerRef = inject(ViewContainerRef);
103
106
  checker = inject(InteractivityChecker);
107
+ modality = inject(InputModalityDetector);
104
108
  document = inject(DOCUMENT);
105
109
  placement = input("bottom-start", ...ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []);
106
110
  offset = input(10, {
@@ -166,7 +170,7 @@ var TxPopover = class TxPopover {
166
170
  currentPlacement = computed(() => this.shown()?.placement() ?? this.placement(), ...ngDevMode ? [{ debugName: "currentPlacement" }] : /* istanbul ignore next */ []);
167
171
  side = computed(() => parsePlacement(this.currentPlacement()).side, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
168
172
  hasTitle = computed(() => Boolean(this.header()) || Boolean(this.headerSlot()), ...ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []);
169
- labelledBy = computed(() => this.ariaLabelledBy() ?? (this.hasTitle() && !this.ariaLabel() ? this.titleId : null), ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
173
+ labelledBy = computed(() => this.ariaLabelledBy() ?? (this.header() && !this.ariaLabel() ? this.titleId : null), ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
170
174
  panelStyle = computed(() => ({
171
175
  ...toStyleObject(this.dt(), "--tx-popover"),
172
176
  "--tx-popover-arrow-offset": this.arrowOffset(),
@@ -215,6 +219,7 @@ var TxPopover = class TxPopover {
215
219
  closeOnEscape: this.closeOnEscape(),
216
220
  closeOnOutsideClick: this.dismissable(),
217
221
  restoreFocus: this.restoreFocus(),
222
+ arrowInset: (pane) => txArrowInset(pane.querySelector(".tx-popover"), pane.querySelector(".tx-popover__arrow")),
218
223
  panelClass: ["tx-popover-pane", ...this.panelClass() ? [this.panelClass()] : []]
219
224
  });
220
225
  ref.closed.subscribe((reason) => {
@@ -274,11 +279,13 @@ var TxPopover = class TxPopover {
274
279
  focusInitial(pane) {
275
280
  const panel = pane.querySelector(".tx-popover");
276
281
  if (!panel || this.autoFocus() === "none") return;
277
- ((this.autoFocus() === "first" ? [
282
+ const first = this.autoFocus() === "first" ? [
278
283
  ".tx-popover__content",
279
284
  ".tx-popover__footer",
280
285
  ".tx-popover"
281
- ].map((selector) => panel.matches(selector) ? panel : panel.querySelector(selector)).map((part) => part ? tabbableElements(part, this.checker)[0] : void 0).find(Boolean) : void 0) ?? panel).focus({ preventScroll: true });
286
+ ].map((selector) => panel.matches(selector) ? panel : panel.querySelector(selector)).map((part) => part ? tabbableElements(part, this.checker)[0] : void 0).find(Boolean) : void 0;
287
+ panel.toggleAttribute("data-keyboard", this.modality.mostRecentModality === "keyboard");
288
+ (first ?? panel).focus({ preventScroll: true });
282
289
  }
283
290
  resolve(target) {
284
291
  if (!target) return null;
@@ -464,8 +471,8 @@ var TxPopover = class TxPopover {
464
471
  isSignal: true
465
472
  }],
466
473
  ngImport: i0,
467
- template: "<ng-template #panel>\n <div\n class=\"tx-popover\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"id\"\n [class]=\"passThrough().root?.class\"\n [style]=\"panelStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-side]=\"side()\"\n [attr.data-placement]=\"currentPlacement()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (arrow()) {\n <span class=\"tx-popover__arrow\" aria-hidden=\"true\" [class]=\"passThrough().arrow?.class\" [style]=\"passThrough().arrow?.style\"></span>\n }\n @if (hasTitle()) {\n <div class=\"tx-popover__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-popover__title\" [id]=\"titleId\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n @if (header()) {\n {{ header() }}\n }\n <ng-content select=\"[txPopoverHeader]\" />\n </div>\n @if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n </div>\n } @else if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n <div class=\"tx-popover__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n @if (lazyContent(); as lazy) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"contentContext\" />\n }\n </div>\n @if (footerSlot()) {\n <div class=\"tx-popover__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txPopoverFooter]\" />\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #close>\n <button\n type=\"button\"\n class=\"tx-popover__close\"\n [class.tx-popover__close--floating]=\"!hasTitle()\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"hide()\"\n >\n <tx-icon name=\"times\" />\n </button>\n</ng-template>\n",
468
- styles: [":host{display:contents}.tx-popover{position:relative;outline:none}.tx-popover[data-styled]{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--tx-popover-gap);min-width:var(--tx-popover-min-width);max-width:var(--tx-popover-max-width);padding:var(--tx-popover-padding);border:var(--tx-popover-border-width) solid var(--tx-popover-border-color);border-radius:var(--tx-popover-border-radius);background:var(--tx-popover-background);color:var(--tx-popover-color);font-size:var(--tx-popover-font-size);box-shadow:var(--tx-popover-shadow)}.tx-popover[data-styled]:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:2px}.tx-popover[data-styled] .tx-popover__header{display:flex;align-items:center;gap:var(--tx-popover-header-gap);padding:var(--tx-popover-header-padding)}.tx-popover[data-styled] .tx-popover__title{flex:1;min-width:0;font-size:var(--tx-popover-title-font-size);font-weight:var(--tx-popover-title-font-weight)}.tx-popover[data-styled] .tx-popover__content{position:relative;min-width:0;padding:var(--tx-popover-content-padding)}.tx-popover[data-styled]:has(>.tx-popover__close--floating) .tx-popover__content{padding-inline-end:calc(var(--tx-popover-close-button-size) + var(--tx-popover-header-gap))}.tx-popover[data-styled] .tx-popover__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--tx-popover-footer-gap);padding:var(--tx-popover-footer-padding)}.tx-popover[data-styled] .tx-popover__close{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tx-popover-close-button-size);height:var(--tx-popover-close-button-size);margin-block:calc(var(--tx-popover-close-button-size) / -4);margin-inline-end:calc(var(--tx-popover-close-button-size) / -4);padding:0;border:0;border-radius:var(--tx-popover-close-button-border-radius);background:none;color:var(--tx-popover-close-button-color);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-popover[data-styled] .tx-popover__close:hover{background:var(--tx-popover-close-button-hover-background);color:var(--tx-popover-close-button-hover-color)}.tx-popover[data-styled] .tx-popover__close:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:1px}.tx-popover[data-styled] .tx-popover__close--floating{position:absolute;top:calc(var(--tx-popover-close-button-size) / 4);inset-inline-end:calc(var(--tx-popover-close-button-size) / 4);z-index:1;margin:0}.tx-popover[data-styled] .tx-popover__arrow{position:absolute;box-sizing:border-box;width:var(--tx-popover-arrow-size);height:var(--tx-popover-arrow-size);border:var(--tx-popover-border-width) solid transparent;background:var(--tx-popover-background);transform:rotate(45deg)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow,.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{inset-inline-start:clamp(var(--tx-popover-arrow-size),var(--tx-popover-arrow-offset),100% - var(--tx-popover-arrow-size));margin-inline-start:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow,.tx-popover[data-styled][data-side=right] .tx-popover__arrow{top:clamp(var(--tx-popover-arrow-size),var(--tx-popover-arrow-offset),100% - var(--tx-popover-arrow-size));margin-top:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{top:calc(var(--tx-popover-arrow-size) / -2);border-top-color:var(--tx-popover-border-color);border-left-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow{bottom:calc(var(--tx-popover-arrow-size) / -2);border-right-color:var(--tx-popover-border-color);border-bottom-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow{left:calc(var(--tx-popover-arrow-size) / -2);border-bottom-color:var(--tx-popover-border-color);border-left-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow{right:calc(var(--tx-popover-arrow-size) / -2);border-top-color:var(--tx-popover-border-color);border-right-color:var(--tx-popover-border-color)}\n"],
474
+ template: "<ng-template #panel>\n <div\n class=\"tx-popover\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"id\"\n [class]=\"passThrough().root?.class\"\n [style]=\"panelStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-side]=\"side()\"\n [attr.data-placement]=\"currentPlacement()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (arrow()) {\n <span class=\"tx-popover__arrow\" aria-hidden=\"true\" [class]=\"passThrough().arrow?.class\" [style]=\"passThrough().arrow?.style\"></span>\n }\n @if (hasTitle()) {\n <div class=\"tx-popover__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n @if (header()) {\n <div class=\"tx-popover__title\" [id]=\"titleId\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ header() }}\n </div>\n }\n <ng-content select=\"[txPopoverHeader]\" />\n @if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n </div>\n } @else if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n <div class=\"tx-popover__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n @if (lazyContent(); as lazy) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"contentContext\" />\n }\n </div>\n @if (footerSlot()) {\n <div class=\"tx-popover__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txPopoverFooter]\" />\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #close>\n <button\n type=\"button\"\n class=\"tx-popover__close\"\n [class.tx-popover__close--floating]=\"!hasTitle()\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"hide()\"\n >\n <tx-icon name=\"times\" />\n </button>\n</ng-template>\n",
475
+ styles: [":host{display:contents}.tx-popover{position:relative;outline:none}.tx-popover[data-styled]{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--tx-popover-gap);min-width:var(--tx-popover-min-width);max-width:var(--tx-popover-max-width);padding:var(--tx-popover-padding);border:var(--tx-popover-border-width) solid var(--tx-popover-border-color);border-radius:var(--tx-popover-border-radius);background:var(--tx-popover-background);color:var(--tx-popover-color);font-size:var(--tx-popover-font-size);box-shadow:var(--tx-popover-shadow)}.tx-popover[data-styled][data-keyboard]:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:2px}.tx-popover[data-styled] .tx-popover__header{display:flex;align-items:center;gap:var(--tx-popover-header-gap);padding:var(--tx-popover-header-padding)}.tx-popover[data-styled] .tx-popover__title{flex:1;min-width:0;font-size:var(--tx-popover-title-font-size);font-weight:var(--tx-popover-title-font-weight)}.tx-popover[data-styled] .tx-popover__content{position:relative;min-width:0;padding:var(--tx-popover-content-padding)}.tx-popover[data-styled]:has(>.tx-popover__close--floating) .tx-popover__content{padding-inline-end:calc(var(--tx-popover-close-button-size) + var(--tx-popover-header-gap))}.tx-popover[data-styled] .tx-popover__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--tx-popover-footer-gap);padding:var(--tx-popover-footer-padding)}.tx-popover[data-styled] .tx-popover__close{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tx-popover-close-button-size);height:var(--tx-popover-close-button-size);margin-block:calc(var(--tx-popover-close-button-size) / -4);margin-inline-end:calc(var(--tx-popover-close-button-size) / -4);padding:0;border:0;border-radius:var(--tx-popover-close-button-border-radius);background:none;color:var(--tx-popover-close-button-color);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-popover[data-styled] .tx-popover__close:hover{background:var(--tx-popover-close-button-hover-background);color:var(--tx-popover-close-button-hover-color)}.tx-popover[data-styled] .tx-popover__close:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:1px}.tx-popover[data-styled] .tx-popover__close--floating{position:absolute;top:calc(var(--tx-popover-close-button-size) / 4);inset-inline-end:calc(var(--tx-popover-close-button-size) / 4);z-index:1;margin:0}.tx-popover[data-styled] .tx-popover__arrow{position:absolute;width:var(--tx-popover-arrow-size);height:var(--tx-popover-arrow-size);filter:var(--tx-popover-arrow-shadow);transform:rotate(45deg)}.tx-popover[data-styled] .tx-popover__arrow:before{position:absolute;inset:0;box-sizing:border-box;border:var(--tx-popover-arrow-border-width, var(--tx-popover-border-width)) solid transparent;background:var(--tx-popover-arrow-background, var(--tx-popover-background));content:\"\"}.tx-popover[data-styled][data-side=top] .tx-popover__arrow,.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{inset-inline-start:clamp(min(var(--tx-popover-border-radius) + var(--tx-popover-arrow-size),50%),var(--tx-popover-arrow-offset),max(100% - var(--tx-popover-border-radius) - var(--tx-popover-arrow-size),50%));margin-inline-start:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow,.tx-popover[data-styled][data-side=right] .tx-popover__arrow{top:clamp(min(var(--tx-popover-border-radius) + var(--tx-popover-arrow-size),50%),var(--tx-popover-arrow-offset),max(100% - var(--tx-popover-border-radius) - var(--tx-popover-arrow-size),50%));margin-top:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{top:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,150% -50%,150% calc(1px - 50%),calc(1px - 50%) 150%,-50% 150%)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow:before{border-top-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-left-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,100% 0,100% 1px,1px 100%,0 100%)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow{bottom:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(150% -50%,150% 150%,-50% 150%,-50% calc(150% - 1px),calc(150% - 1px) -50%)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow:before{border-right-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-bottom-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(100% 0,100% 100%,0 100%,0 calc(100% - 1px),calc(100% - 1px) 0)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow{left:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,calc(1px - 50%) -50%,150% calc(150% - 1px),150% 150%,-50% 150%)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow:before{border-bottom-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-left-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,1px 0,100% calc(100% - 1px),100% 100%,0 100%)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow{right:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,150% -50%,150% 150%,calc(150% - 1px) 150%,-50% calc(1px - 50%))}.tx-popover[data-styled][data-side=left] .tx-popover__arrow:before{border-top-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-right-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,100% 0,100% 100%,calc(100% - 1px) 100%,0 1px)}\n"],
469
476
  dependencies: [{
470
477
  kind: "directive",
471
478
  type: NgTemplateOutlet,
@@ -498,8 +505,8 @@ i0.ɵɵngDeclareClassMetadata({
498
505
  changeDetection: ChangeDetectionStrategy.OnPush,
499
506
  host: { class: "tx-popover-host" },
500
507
  viewProviders: [provideTxIconDefaults(POPOVER_ICON_DEFAULTS)],
501
- template: "<ng-template #panel>\n <div\n class=\"tx-popover\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"id\"\n [class]=\"passThrough().root?.class\"\n [style]=\"panelStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-side]=\"side()\"\n [attr.data-placement]=\"currentPlacement()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (arrow()) {\n <span class=\"tx-popover__arrow\" aria-hidden=\"true\" [class]=\"passThrough().arrow?.class\" [style]=\"passThrough().arrow?.style\"></span>\n }\n @if (hasTitle()) {\n <div class=\"tx-popover__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <div class=\"tx-popover__title\" [id]=\"titleId\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n @if (header()) {\n {{ header() }}\n }\n <ng-content select=\"[txPopoverHeader]\" />\n </div>\n @if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n </div>\n } @else if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n <div class=\"tx-popover__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n @if (lazyContent(); as lazy) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"contentContext\" />\n }\n </div>\n @if (footerSlot()) {\n <div class=\"tx-popover__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txPopoverFooter]\" />\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #close>\n <button\n type=\"button\"\n class=\"tx-popover__close\"\n [class.tx-popover__close--floating]=\"!hasTitle()\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"hide()\"\n >\n <tx-icon name=\"times\" />\n </button>\n</ng-template>\n",
502
- styles: [":host{display:contents}.tx-popover{position:relative;outline:none}.tx-popover[data-styled]{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--tx-popover-gap);min-width:var(--tx-popover-min-width);max-width:var(--tx-popover-max-width);padding:var(--tx-popover-padding);border:var(--tx-popover-border-width) solid var(--tx-popover-border-color);border-radius:var(--tx-popover-border-radius);background:var(--tx-popover-background);color:var(--tx-popover-color);font-size:var(--tx-popover-font-size);box-shadow:var(--tx-popover-shadow)}.tx-popover[data-styled]:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:2px}.tx-popover[data-styled] .tx-popover__header{display:flex;align-items:center;gap:var(--tx-popover-header-gap);padding:var(--tx-popover-header-padding)}.tx-popover[data-styled] .tx-popover__title{flex:1;min-width:0;font-size:var(--tx-popover-title-font-size);font-weight:var(--tx-popover-title-font-weight)}.tx-popover[data-styled] .tx-popover__content{position:relative;min-width:0;padding:var(--tx-popover-content-padding)}.tx-popover[data-styled]:has(>.tx-popover__close--floating) .tx-popover__content{padding-inline-end:calc(var(--tx-popover-close-button-size) + var(--tx-popover-header-gap))}.tx-popover[data-styled] .tx-popover__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--tx-popover-footer-gap);padding:var(--tx-popover-footer-padding)}.tx-popover[data-styled] .tx-popover__close{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tx-popover-close-button-size);height:var(--tx-popover-close-button-size);margin-block:calc(var(--tx-popover-close-button-size) / -4);margin-inline-end:calc(var(--tx-popover-close-button-size) / -4);padding:0;border:0;border-radius:var(--tx-popover-close-button-border-radius);background:none;color:var(--tx-popover-close-button-color);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-popover[data-styled] .tx-popover__close:hover{background:var(--tx-popover-close-button-hover-background);color:var(--tx-popover-close-button-hover-color)}.tx-popover[data-styled] .tx-popover__close:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:1px}.tx-popover[data-styled] .tx-popover__close--floating{position:absolute;top:calc(var(--tx-popover-close-button-size) / 4);inset-inline-end:calc(var(--tx-popover-close-button-size) / 4);z-index:1;margin:0}.tx-popover[data-styled] .tx-popover__arrow{position:absolute;box-sizing:border-box;width:var(--tx-popover-arrow-size);height:var(--tx-popover-arrow-size);border:var(--tx-popover-border-width) solid transparent;background:var(--tx-popover-background);transform:rotate(45deg)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow,.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{inset-inline-start:clamp(var(--tx-popover-arrow-size),var(--tx-popover-arrow-offset),100% - var(--tx-popover-arrow-size));margin-inline-start:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow,.tx-popover[data-styled][data-side=right] .tx-popover__arrow{top:clamp(var(--tx-popover-arrow-size),var(--tx-popover-arrow-offset),100% - var(--tx-popover-arrow-size));margin-top:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{top:calc(var(--tx-popover-arrow-size) / -2);border-top-color:var(--tx-popover-border-color);border-left-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow{bottom:calc(var(--tx-popover-arrow-size) / -2);border-right-color:var(--tx-popover-border-color);border-bottom-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow{left:calc(var(--tx-popover-arrow-size) / -2);border-bottom-color:var(--tx-popover-border-color);border-left-color:var(--tx-popover-border-color)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow{right:calc(var(--tx-popover-arrow-size) / -2);border-top-color:var(--tx-popover-border-color);border-right-color:var(--tx-popover-border-color)}\n"]
508
+ template: "<ng-template #panel>\n <div\n class=\"tx-popover\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"id\"\n [class]=\"passThrough().root?.class\"\n [style]=\"panelStyle()\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-side]=\"side()\"\n [attr.data-placement]=\"currentPlacement()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n (keydown)=\"onPanelKeydown($event)\"\n >\n @if (arrow()) {\n <span class=\"tx-popover__arrow\" aria-hidden=\"true\" [class]=\"passThrough().arrow?.class\" [style]=\"passThrough().arrow?.style\"></span>\n }\n @if (hasTitle()) {\n <div class=\"tx-popover__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n @if (header()) {\n <div class=\"tx-popover__title\" [id]=\"titleId\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n {{ header() }}\n </div>\n }\n <ng-content select=\"[txPopoverHeader]\" />\n @if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n </div>\n } @else if (closeButton()) {\n <ng-container [ngTemplateOutlet]=\"close\" />\n }\n <div class=\"tx-popover__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n <ng-content />\n @if (lazyContent(); as lazy) {\n <ng-container [ngTemplateOutlet]=\"lazy.template\" [ngTemplateOutletContext]=\"contentContext\" />\n }\n </div>\n @if (footerSlot()) {\n <div class=\"tx-popover__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txPopoverFooter]\" />\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #close>\n <button\n type=\"button\"\n class=\"tx-popover__close\"\n [class.tx-popover__close--floating]=\"!hasTitle()\"\n [class]=\"passThrough().closeButton?.class\"\n [style]=\"passThrough().closeButton?.style\"\n [attr.aria-label]=\"translations().close\"\n (click)=\"hide()\"\n >\n <tx-icon name=\"times\" />\n </button>\n</ng-template>\n",
509
+ styles: [":host{display:contents}.tx-popover{position:relative;outline:none}.tx-popover[data-styled]{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--tx-popover-gap);min-width:var(--tx-popover-min-width);max-width:var(--tx-popover-max-width);padding:var(--tx-popover-padding);border:var(--tx-popover-border-width) solid var(--tx-popover-border-color);border-radius:var(--tx-popover-border-radius);background:var(--tx-popover-background);color:var(--tx-popover-color);font-size:var(--tx-popover-font-size);box-shadow:var(--tx-popover-shadow)}.tx-popover[data-styled][data-keyboard]:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:2px}.tx-popover[data-styled] .tx-popover__header{display:flex;align-items:center;gap:var(--tx-popover-header-gap);padding:var(--tx-popover-header-padding)}.tx-popover[data-styled] .tx-popover__title{flex:1;min-width:0;font-size:var(--tx-popover-title-font-size);font-weight:var(--tx-popover-title-font-weight)}.tx-popover[data-styled] .tx-popover__content{position:relative;min-width:0;padding:var(--tx-popover-content-padding)}.tx-popover[data-styled]:has(>.tx-popover__close--floating) .tx-popover__content{padding-inline-end:calc(var(--tx-popover-close-button-size) + var(--tx-popover-header-gap))}.tx-popover[data-styled] .tx-popover__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--tx-popover-footer-gap);padding:var(--tx-popover-footer-padding)}.tx-popover[data-styled] .tx-popover__close{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tx-popover-close-button-size);height:var(--tx-popover-close-button-size);margin-block:calc(var(--tx-popover-close-button-size) / -4);margin-inline-end:calc(var(--tx-popover-close-button-size) / -4);padding:0;border:0;border-radius:var(--tx-popover-close-button-border-radius);background:none;color:var(--tx-popover-close-button-color);cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-popover[data-styled] .tx-popover__close:hover{background:var(--tx-popover-close-button-hover-background);color:var(--tx-popover-close-button-hover-color)}.tx-popover[data-styled] .tx-popover__close:focus-visible{outline:var(--tx-popover-focus-ring-width) solid var(--tx-popover-focus-ring-color);outline-offset:1px}.tx-popover[data-styled] .tx-popover__close--floating{position:absolute;top:calc(var(--tx-popover-close-button-size) / 4);inset-inline-end:calc(var(--tx-popover-close-button-size) / 4);z-index:1;margin:0}.tx-popover[data-styled] .tx-popover__arrow{position:absolute;width:var(--tx-popover-arrow-size);height:var(--tx-popover-arrow-size);filter:var(--tx-popover-arrow-shadow);transform:rotate(45deg)}.tx-popover[data-styled] .tx-popover__arrow:before{position:absolute;inset:0;box-sizing:border-box;border:var(--tx-popover-arrow-border-width, var(--tx-popover-border-width)) solid transparent;background:var(--tx-popover-arrow-background, var(--tx-popover-background));content:\"\"}.tx-popover[data-styled][data-side=top] .tx-popover__arrow,.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{inset-inline-start:clamp(min(var(--tx-popover-border-radius) + var(--tx-popover-arrow-size),50%),var(--tx-popover-arrow-offset),max(100% - var(--tx-popover-border-radius) - var(--tx-popover-arrow-size),50%));margin-inline-start:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow,.tx-popover[data-styled][data-side=right] .tx-popover__arrow{top:clamp(min(var(--tx-popover-border-radius) + var(--tx-popover-arrow-size),50%),var(--tx-popover-arrow-offset),max(100% - var(--tx-popover-border-radius) - var(--tx-popover-arrow-size),50%));margin-top:calc(var(--tx-popover-arrow-size) / -2)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow{top:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,150% -50%,150% calc(1px - 50%),calc(1px - 50%) 150%,-50% 150%)}.tx-popover[data-styled][data-side=bottom] .tx-popover__arrow:before{border-top-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-left-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,100% 0,100% 1px,1px 100%,0 100%)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow{bottom:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(150% -50%,150% 150%,-50% 150%,-50% calc(150% - 1px),calc(150% - 1px) -50%)}.tx-popover[data-styled][data-side=top] .tx-popover__arrow:before{border-right-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-bottom-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(100% 0,100% 100%,0 100%,0 calc(100% - 1px),calc(100% - 1px) 0)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow{left:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,calc(1px - 50%) -50%,150% calc(150% - 1px),150% 150%,-50% 150%)}.tx-popover[data-styled][data-side=right] .tx-popover__arrow:before{border-bottom-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-left-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,1px 0,100% calc(100% - 1px),100% 100%,0 100%)}.tx-popover[data-styled][data-side=left] .tx-popover__arrow{right:calc(var(--tx-popover-arrow-size) / -2 + 0px);clip-path:polygon(-50% -50%,150% -50%,150% 150%,calc(150% - 1px) 150%,-50% calc(1px - 50%))}.tx-popover[data-styled][data-side=left] .tx-popover__arrow:before{border-top-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));border-right-color:var(--tx-popover-arrow-border-color, var(--tx-popover-border-color));clip-path:polygon(0 0,100% 0,100% 100%,calc(100% - 1px) 100%,0 1px)}\n"]
503
510
  }]
504
511
  }],
505
512
  ctorParameters: () => [],