q2-tecton-elements 1.67.2 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (807) hide show
  1. package/dist/bundle-report.json +22598 -10670
  2. package/dist/cjs/click-elsewhere.q2-option-list.q2-popover.entry.cjs.js.map +1 -1
  3. package/dist/cjs/click-elsewhere_3.cjs.entry.js +46 -32
  4. package/dist/cjs/click-elsewhere_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/{component-DRAntnCA.js → component-iASoq6gx.js} +9 -3
  6. package/dist/cjs/component-iASoq6gx.js.map +1 -0
  7. package/dist/cjs/{index-YvKoRT-t.js → index-DmGkqdX2.js} +3 -3
  8. package/dist/cjs/index-DmGkqdX2.js.map +1 -0
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/q2-action-group.q2-resize-observer.entry.cjs.js.map +1 -1
  11. package/dist/cjs/q2-action-group_2.cjs.entry.js +2 -2
  12. package/dist/cjs/q2-action-group_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/q2-action-sheet.cjs.entry.js +109 -4
  14. package/dist/cjs/q2-action-sheet.cjs.entry.js.map +1 -1
  15. package/dist/cjs/q2-action-sheet.entry.cjs.js.map +1 -1
  16. package/dist/cjs/q2-avatar.cjs.entry.js.map +1 -1
  17. package/dist/cjs/q2-avatar.entry.cjs.js.map +1 -1
  18. package/dist/cjs/q2-badge.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-badge.cjs.entry.js.map +1 -1
  20. package/dist/cjs/q2-badge.entry.cjs.js.map +1 -1
  21. package/dist/cjs/q2-btn.q2-loading.entry.cjs.js.map +1 -1
  22. package/dist/cjs/q2-btn_2.cjs.entry.js +1 -1
  23. package/dist/cjs/q2-btn_2.cjs.entry.js.map +1 -1
  24. package/dist/cjs/q2-calendar.cjs.entry.js +6 -3
  25. package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
  26. package/dist/cjs/q2-calendar.entry.cjs.js.map +1 -1
  27. package/dist/cjs/q2-card-image.cjs.entry.js +2 -2
  28. package/dist/cjs/q2-card-image.cjs.entry.js.map +1 -1
  29. package/dist/cjs/q2-card-image.entry.cjs.js.map +1 -1
  30. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/q2-card.entry.cjs.js.map +1 -1
  33. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  34. package/dist/cjs/q2-carousel-pane.cjs.entry.js.map +1 -1
  35. package/dist/cjs/q2-carousel-pane.entry.cjs.js.map +1 -1
  36. package/dist/cjs/q2-carousel.cjs.entry.js +162 -29
  37. package/dist/cjs/q2-carousel.cjs.entry.js.map +1 -1
  38. package/dist/cjs/q2-carousel.entry.cjs.js.map +1 -1
  39. package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
  40. package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-chart-donut.cjs.entry.js +3 -2
  42. package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
  43. package/dist/cjs/q2-chart-donut.entry.cjs.js.map +1 -1
  44. package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
  45. package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
  46. package/dist/cjs/q2-checkbox-group.entry.cjs.js.map +1 -1
  47. package/dist/cjs/q2-checkbox.q2-tag.entry.cjs.js.map +1 -1
  48. package/dist/cjs/q2-checkbox_2.cjs.entry.js +3 -3
  49. package/dist/cjs/q2-checkbox_2.cjs.entry.js.map +1 -1
  50. package/dist/cjs/q2-context.cjs.entry.js +2 -2
  51. package/dist/cjs/q2-context.cjs.entry.js.map +1 -1
  52. package/dist/cjs/q2-context.entry.cjs.js.map +1 -1
  53. package/dist/cjs/q2-currency.cjs.entry.js +2 -3
  54. package/dist/cjs/q2-currency.cjs.entry.js.map +1 -1
  55. package/dist/cjs/q2-currency.entry.cjs.js.map +1 -1
  56. package/dist/cjs/q2-data-table.cjs.entry.js +2 -2
  57. package/dist/cjs/q2-data-table.cjs.entry.js.map +1 -1
  58. package/dist/cjs/q2-data-table.entry.cjs.js.map +1 -1
  59. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  60. package/dist/cjs/q2-detail.cjs.entry.js.map +1 -1
  61. package/dist/cjs/q2-detail.entry.cjs.js.map +1 -1
  62. package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
  63. package/dist/cjs/q2-dropdown-item.cjs.entry.js.map +1 -1
  64. package/dist/cjs/q2-dropdown-item.entry.cjs.js.map +1 -1
  65. package/dist/cjs/q2-dropdown.cjs.entry.js +3 -5
  66. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  67. package/dist/cjs/q2-dropdown.entry.cjs.js.map +1 -1
  68. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  69. package/dist/cjs/q2-editable-field.cjs.entry.js.map +1 -1
  70. package/dist/cjs/q2-editable-field.entry.cjs.js.map +1 -1
  71. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  72. package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
  73. package/dist/cjs/q2-file-picker.cjs.entry.js.map +1 -1
  74. package/dist/cjs/q2-file-picker.entry.cjs.js.map +1 -1
  75. package/dist/cjs/q2-form.cjs.entry.js +2 -2
  76. package/dist/cjs/q2-form.cjs.entry.js.map +1 -1
  77. package/dist/cjs/q2-form.entry.cjs.js.map +1 -1
  78. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  79. package/dist/cjs/q2-formatted-text.cjs.entry.js.map +1 -1
  80. package/dist/cjs/q2-formatted-text.entry.cjs.js.map +1 -1
  81. package/dist/cjs/q2-grid-area.cjs.entry.js +1 -1
  82. package/dist/cjs/q2-grid.cjs.entry.js +32 -8
  83. package/dist/cjs/q2-grid.cjs.entry.js.map +1 -1
  84. package/dist/cjs/q2-grid.entry.cjs.js.map +1 -1
  85. package/dist/cjs/q2-icon.cjs.entry.js +1 -1
  86. package/dist/cjs/q2-icon.cjs.entry.js.map +1 -1
  87. package/dist/cjs/q2-icon.entry.cjs.js.map +1 -1
  88. package/dist/cjs/q2-input.cjs.entry.js +8 -5
  89. package/dist/cjs/q2-input.cjs.entry.js.map +1 -1
  90. package/dist/cjs/q2-input.entry.cjs.js.map +1 -1
  91. package/dist/cjs/q2-item.cjs.entry.js +2 -2
  92. package/dist/cjs/q2-item.cjs.entry.js.map +1 -1
  93. package/dist/cjs/q2-item.entry.cjs.js.map +1 -1
  94. package/dist/cjs/q2-legend.cjs.entry.js +2 -3
  95. package/dist/cjs/q2-legend.cjs.entry.js.map +1 -1
  96. package/dist/cjs/q2-legend.entry.cjs.js.map +1 -1
  97. package/dist/cjs/q2-link.q2-list.entry.cjs.js.map +1 -1
  98. package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
  99. package/dist/cjs/q2-link_2.cjs.entry.js.map +1 -1
  100. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  101. package/dist/cjs/q2-message.cjs.entry.js +3 -3
  102. package/dist/cjs/q2-message.cjs.entry.js.map +1 -1
  103. package/dist/cjs/q2-message.entry.cjs.js.map +1 -1
  104. package/dist/cjs/q2-meter.cjs.entry.js +2 -2
  105. package/dist/cjs/q2-meter.cjs.entry.js.map +1 -1
  106. package/dist/cjs/q2-meter.entry.cjs.js.map +1 -1
  107. package/dist/cjs/q2-modal.cjs.entry.js +3 -3
  108. package/dist/cjs/q2-modal.cjs.entry.js.map +1 -1
  109. package/dist/cjs/q2-modal.entry.cjs.js.map +1 -1
  110. package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
  111. package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
  112. package/dist/cjs/q2-optgroup.cjs.entry.js +3 -3
  113. package/dist/cjs/q2-optgroup.cjs.entry.js.map +1 -1
  114. package/dist/cjs/q2-optgroup.entry.cjs.js.map +1 -1
  115. package/dist/cjs/q2-option.cjs.entry.js +3 -3
  116. package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
  117. package/dist/cjs/q2-option.entry.cjs.js.map +1 -1
  118. package/dist/cjs/q2-otp.cjs.entry.js +373 -0
  119. package/dist/cjs/q2-otp.cjs.entry.js.map +1 -0
  120. package/dist/cjs/q2-otp.entry.cjs.js.map +1 -0
  121. package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
  122. package/dist/cjs/q2-pagination.cjs.entry.js.map +1 -1
  123. package/dist/cjs/q2-pagination.entry.cjs.js.map +1 -1
  124. package/dist/cjs/q2-pill.cjs.entry.js +24 -15
  125. package/dist/cjs/q2-pill.cjs.entry.js.map +1 -1
  126. package/dist/cjs/q2-pill.entry.cjs.js.map +1 -1
  127. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  128. package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
  129. package/dist/cjs/q2-radio-group.entry.cjs.js.map +1 -1
  130. package/dist/cjs/q2-radio.cjs.entry.js +3 -3
  131. package/dist/cjs/q2-radio.cjs.entry.js.map +1 -1
  132. package/dist/cjs/q2-radio.entry.cjs.js.map +1 -1
  133. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  134. package/dist/cjs/q2-section-container.cjs.entry.js +1 -1
  135. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  136. package/dist/cjs/q2-section.cjs.entry.js.map +1 -1
  137. package/dist/cjs/q2-section.entry.cjs.js.map +1 -1
  138. package/dist/cjs/q2-select.cjs.entry.js +1 -1
  139. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  140. package/dist/cjs/q2-select.entry.cjs.js.map +1 -1
  141. package/dist/cjs/q2-stepper-pane.cjs.entry.js +3 -3
  142. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  143. package/dist/cjs/q2-stepper-vertical.cjs.entry.js.map +1 -1
  144. package/dist/cjs/q2-stepper-vertical.entry.cjs.js.map +1 -1
  145. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  146. package/dist/cjs/q2-stepper.cjs.entry.js.map +1 -1
  147. package/dist/cjs/q2-stepper.entry.cjs.js.map +1 -1
  148. package/dist/cjs/q2-tab-container.cjs.entry.js +3 -3
  149. package/dist/cjs/q2-tab-container.cjs.entry.js.map +1 -1
  150. package/dist/cjs/q2-tab-container.entry.cjs.js.map +1 -1
  151. package/dist/cjs/q2-tab-pane.cjs.entry.js +2 -2
  152. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  153. package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
  154. package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
  155. package/dist/cjs/q2-textarea.entry.cjs.js.map +1 -1
  156. package/dist/cjs/q2-toast.cjs.entry.js +1 -1
  157. package/dist/cjs/q2-toast.cjs.entry.js.map +1 -1
  158. package/dist/cjs/q2-toast.entry.cjs.js.map +1 -1
  159. package/dist/cjs/q2-tooltip.cjs.entry.js +124 -5
  160. package/dist/cjs/q2-tooltip.cjs.entry.js.map +1 -1
  161. package/dist/cjs/q2-tooltip.entry.cjs.js.map +1 -1
  162. package/dist/cjs/{sanitize-html-string-CW6y5624.js → sanitize-html-string-D17Pr7-c.js} +21 -4
  163. package/dist/cjs/{sanitize-html-string-CW6y5624.js.map → sanitize-html-string-D17Pr7-c.js.map} +1 -1
  164. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  165. package/dist/collection/collection-manifest.json +1 -0
  166. package/dist/collection/components/click-elsewhere/click-elsewhere.js +2 -0
  167. package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
  168. package/dist/collection/components/q2-action-group/q2-action-group.css +14 -0
  169. package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +16 -0
  170. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +107 -2
  171. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
  172. package/dist/collection/components/q2-avatar/q2-avatar.css +24 -0
  173. package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +61 -0
  174. package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js.map +1 -0
  175. package/dist/collection/components/q2-badge/q2-badge.css +30 -0
  176. package/dist/collection/components/q2-badge/test/q2-badge-test.vr.js +34 -0
  177. package/dist/collection/components/q2-badge/test/q2-badge-test.vr.js.map +1 -0
  178. package/dist/collection/components/q2-btn/q2-btn.css +279 -0
  179. package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +80 -0
  180. package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js.map +1 -0
  181. package/dist/collection/components/q2-calendar/q2-calendar.css +36 -0
  182. package/dist/collection/components/q2-calendar/q2-calendar.js +5 -2
  183. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  184. package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +170 -0
  185. package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js.map +1 -0
  186. package/dist/collection/components/q2-card/q2-card.css +62 -0
  187. package/dist/collection/components/q2-card/test/q2-card-test.vr.js +72 -0
  188. package/dist/collection/components/q2-card/test/q2-card-test.vr.js.map +1 -0
  189. package/dist/collection/components/q2-card-image/q2-card-image.css +74 -13
  190. package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +152 -0
  191. package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js.map +1 -0
  192. package/dist/collection/components/q2-carousel/q2-carousel.css +78 -13
  193. package/dist/collection/components/q2-carousel/q2-carousel.js +241 -27
  194. package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
  195. package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +104 -0
  196. package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js.map +1 -0
  197. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.css +26 -1
  198. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +126 -0
  199. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js.map +1 -0
  200. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +105 -0
  201. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js.map +1 -0
  202. package/dist/collection/components/q2-chart-donut/q2-chart-donut.css +29 -0
  203. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +21 -1
  204. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  205. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +151 -0
  206. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js.map +1 -0
  207. package/dist/collection/components/q2-checkbox/q2-checkbox.css +128 -0
  208. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.vr.js +69 -0
  209. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.vr.js.map +1 -0
  210. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +21 -0
  211. package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.js +61 -0
  212. package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.js.map +1 -0
  213. package/dist/collection/components/q2-context/q2-context.css +16 -0
  214. package/dist/collection/components/q2-context/test/q2-context-test.vr.js +95 -0
  215. package/dist/collection/components/q2-context/test/q2-context-test.vr.js.map +1 -0
  216. package/dist/collection/components/q2-currency/q2-currency.css +31 -0
  217. package/dist/collection/components/q2-currency/q2-currency.js +3 -4
  218. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  219. package/dist/collection/components/q2-currency/test/q2-currency-test.vr.js +79 -0
  220. package/dist/collection/components/q2-currency/test/q2-currency-test.vr.js.map +1 -0
  221. package/dist/collection/components/q2-data-table/q2-data-table.css +51 -0
  222. package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
  223. package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +79 -0
  224. package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js.map +1 -0
  225. package/dist/collection/components/q2-detail/q2-detail.css +42 -0
  226. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  227. package/dist/collection/components/q2-dropdown/q2-dropdown.css +8 -0
  228. package/dist/collection/components/q2-dropdown/q2-dropdown.js +2 -4
  229. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  230. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.css +11 -0
  231. package/dist/collection/components/q2-editable-field/q2-editable-field.css +5 -0
  232. package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.vr.js +89 -0
  233. package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.vr.js.map +1 -0
  234. package/dist/collection/components/q2-example/q2-example.js +1 -1
  235. package/dist/collection/components/q2-file-picker/q2-file-picker.css +64 -0
  236. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +92 -0
  237. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js.map +1 -0
  238. package/dist/collection/components/q2-form/q2-form.css +34 -20
  239. package/dist/collection/components/q2-form/q2-form.js +1 -1
  240. package/dist/collection/components/q2-formatted-text/q2-formatted-text.css +14 -0
  241. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  242. package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.vr.js +55 -0
  243. package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.vr.js.map +1 -0
  244. package/dist/collection/components/q2-grid/q2-grid.css +13 -0
  245. package/dist/collection/components/q2-grid/q2-grid.js +31 -7
  246. package/dist/collection/components/q2-grid/q2-grid.js.map +1 -1
  247. package/dist/collection/components/q2-icon/assets/standard.symbol.svg +1 -1
  248. package/dist/collection/components/q2-icon/q2-icon.css +15 -0
  249. package/dist/collection/components/q2-icon/test/q2-icon-test.vr.js +55 -0
  250. package/dist/collection/components/q2-icon/test/q2-icon-test.vr.js.map +1 -0
  251. package/dist/collection/components/q2-input/q2-input.css +104 -0
  252. package/dist/collection/components/q2-input/q2-input.js +6 -3
  253. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  254. package/dist/collection/components/q2-input/test/q2-input-test.vr.js +97 -0
  255. package/dist/collection/components/q2-input/test/q2-input-test.vr.js.map +1 -0
  256. package/dist/collection/components/q2-item/q2-item.css +28 -0
  257. package/dist/collection/components/q2-item/q2-item.js +1 -1
  258. package/dist/collection/components/q2-legend/q2-legend.css +16 -0
  259. package/dist/collection/components/q2-legend/q2-legend.js +21 -3
  260. package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
  261. package/dist/collection/components/q2-link/q2-link.css +20 -0
  262. package/dist/collection/components/q2-link/test/q2-link-test.vr.js +70 -0
  263. package/dist/collection/components/q2-link/test/q2-link-test.vr.js.map +1 -0
  264. package/dist/collection/components/q2-list/q2-list.css +14 -0
  265. package/dist/collection/components/q2-list/q2-list.js +1 -1
  266. package/dist/collection/components/q2-list/test/q2-list-test.vr.js +58 -0
  267. package/dist/collection/components/q2-list/test/q2-list-test.vr.js.map +1 -0
  268. package/dist/collection/components/q2-loading/q2-loading.css +9 -0
  269. package/dist/collection/components/q2-message/q2-message.css +29 -1
  270. package/dist/collection/components/q2-message/q2-message.js +1 -1
  271. package/dist/collection/components/q2-message/test/q2-message-test.vr.js +57 -0
  272. package/dist/collection/components/q2-message/test/q2-message-test.vr.js.map +1 -0
  273. package/dist/collection/components/q2-meter/q2-meter.css +40 -0
  274. package/dist/collection/components/q2-meter/q2-meter.js +1 -1
  275. package/dist/collection/components/q2-meter/test/q2-meter-test.vr.js +78 -0
  276. package/dist/collection/components/q2-meter/test/q2-meter-test.vr.js.map +1 -0
  277. package/dist/collection/components/q2-modal/q2-modal.css +21 -0
  278. package/dist/collection/components/q2-modal/q2-modal.js +1 -1
  279. package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +107 -0
  280. package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js.map +1 -0
  281. package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
  282. package/dist/collection/components/q2-optgroup/q2-optgroup.css +11 -0
  283. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  284. package/dist/collection/components/q2-option/q2-option.css +9 -0
  285. package/dist/collection/components/q2-option/q2-option.js +1 -1
  286. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  287. package/dist/collection/components/q2-option-list/q2-option-list.css +3 -0
  288. package/dist/collection/components/q2-option-list/q2-option-list.js +37 -28
  289. package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
  290. package/dist/collection/components/q2-otp/q2-otp.css +312 -0
  291. package/dist/collection/components/q2-otp/q2-otp.js +873 -0
  292. package/dist/collection/components/q2-otp/q2-otp.js.map +1 -0
  293. package/dist/collection/components/q2-pagination/q2-pagination.css +22 -0
  294. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  295. package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +145 -0
  296. package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js.map +1 -0
  297. package/dist/collection/components/q2-pill/q2-pill.css +53 -0
  298. package/dist/collection/components/q2-pill/q2-pill.js +23 -14
  299. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  300. package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +110 -0
  301. package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js.map +1 -0
  302. package/dist/collection/components/q2-popover/q2-popover.css +20 -0
  303. package/dist/collection/components/q2-popover/q2-popover.js +5 -2
  304. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  305. package/dist/collection/components/q2-radio/q2-radio.css +52 -1
  306. package/dist/collection/components/q2-radio/q2-radio.js +2 -2
  307. package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
  308. package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +73 -0
  309. package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js.map +1 -0
  310. package/dist/collection/components/q2-radio-group/q2-radio-group.css +22 -0
  311. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +99 -0
  312. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js.map +1 -0
  313. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  314. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  315. package/dist/collection/components/q2-section/q2-section.css +26 -0
  316. package/dist/collection/components/q2-section/q2-section.js +2 -2
  317. package/dist/collection/components/q2-section/test/q2-section-test.vr.js +68 -0
  318. package/dist/collection/components/q2-section/test/q2-section-test.vr.js.map +1 -0
  319. package/dist/collection/components/q2-select/q2-select.css +17 -0
  320. package/dist/collection/components/q2-select/test/q2-select-test.vr.js +107 -0
  321. package/dist/collection/components/q2-select/test/q2-select-test.vr.js.map +1 -0
  322. package/dist/collection/components/q2-stepper/q2-stepper.css +36 -0
  323. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  324. package/dist/collection/components/q2-stepper/test/q2-stepper-test.vr.js +86 -0
  325. package/dist/collection/components/q2-stepper/test/q2-stepper-test.vr.js.map +1 -0
  326. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
  327. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.css +31 -0
  328. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  329. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.js +97 -0
  330. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.js.map +1 -0
  331. package/dist/collection/components/q2-tab-container/q2-tab-container.css +38 -0
  332. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  333. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.vr.js +78 -0
  334. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.vr.js.map +1 -0
  335. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  336. package/dist/collection/components/q2-tag/q2-tag.css +30 -1
  337. package/dist/collection/components/q2-tag/q2-tag.js +1 -1
  338. package/dist/collection/components/q2-tag/test/q2-tag-test.vr.js +83 -0
  339. package/dist/collection/components/q2-tag/test/q2-tag-test.vr.js.map +1 -0
  340. package/dist/collection/components/q2-textarea/q2-textarea.css +80 -0
  341. package/dist/collection/components/q2-textarea/test/q2-textarea-test.vr.js +102 -0
  342. package/dist/collection/components/q2-textarea/test/q2-textarea-test.vr.js.map +1 -0
  343. package/dist/collection/components/q2-toast/q2-toast.css +15 -0
  344. package/dist/collection/components/q2-tooltip/q2-tooltip.css +31 -0
  345. package/dist/collection/components/q2-tooltip/q2-tooltip.js +135 -4
  346. package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
  347. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +76 -0
  348. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js.map +1 -0
  349. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  350. package/dist/collection/utils/component.js +7 -1
  351. package/dist/collection/utils/component.js.map +1 -1
  352. package/dist/collection/utils/index.js +1 -1
  353. package/dist/collection/utils/index.js.map +1 -1
  354. package/dist/collection/utils/sanitize-html-string.js +19 -2
  355. package/dist/collection/utils/sanitize-html-string.js.map +1 -1
  356. package/dist/collection/utils/test/vr-helpers.js +98 -0
  357. package/dist/collection/utils/test/vr-helpers.js.map +1 -0
  358. package/dist/components/click-elsewhere2.js +2 -0
  359. package/dist/components/click-elsewhere2.js.map +1 -1
  360. package/dist/components/component.js +7 -1
  361. package/dist/components/component.js.map +1 -1
  362. package/dist/components/index.js +2 -0
  363. package/dist/components/index.js.map +1 -1
  364. package/dist/components/index2.js +1 -1
  365. package/dist/components/index2.js.map +1 -1
  366. package/dist/components/q2-action-group2.js.map +1 -1
  367. package/dist/components/q2-action-sheet.js +107 -2
  368. package/dist/components/q2-action-sheet.js.map +1 -1
  369. package/dist/components/q2-avatar2.js.map +1 -1
  370. package/dist/components/q2-badge2.js.map +1 -1
  371. package/dist/components/q2-btn2.js.map +1 -1
  372. package/dist/components/q2-calendar.js +5 -2
  373. package/dist/components/q2-calendar.js.map +1 -1
  374. package/dist/components/q2-card-image.js +1 -1
  375. package/dist/components/q2-card-image.js.map +1 -1
  376. package/dist/components/q2-card.js.map +1 -1
  377. package/dist/components/q2-carousel-pane.js +1 -135
  378. package/dist/components/q2-carousel-pane.js.map +1 -1
  379. package/dist/components/q2-carousel-pane2.js +140 -0
  380. package/dist/components/q2-carousel-pane2.js.map +1 -0
  381. package/dist/components/q2-carousel.js +173 -29
  382. package/dist/components/q2-carousel.js.map +1 -1
  383. package/dist/components/q2-chart-donut.js +3 -1
  384. package/dist/components/q2-chart-donut.js.map +1 -1
  385. package/dist/components/q2-checkbox-group.js.map +1 -1
  386. package/dist/components/q2-checkbox2.js.map +1 -1
  387. package/dist/components/q2-context.js +1 -1
  388. package/dist/components/q2-context.js.map +1 -1
  389. package/dist/components/q2-currency.js +3 -4
  390. package/dist/components/q2-currency.js.map +1 -1
  391. package/dist/components/q2-data-table.js +1 -1
  392. package/dist/components/q2-data-table.js.map +1 -1
  393. package/dist/components/q2-detail.js +1 -1
  394. package/dist/components/q2-detail.js.map +1 -1
  395. package/dist/components/q2-dropdown-item2.js.map +1 -1
  396. package/dist/components/q2-dropdown.js +2 -4
  397. package/dist/components/q2-dropdown.js.map +1 -1
  398. package/dist/components/q2-editable-field.js.map +1 -1
  399. package/dist/components/q2-example.js +1 -1
  400. package/dist/components/q2-file-picker.js.map +1 -1
  401. package/dist/components/q2-form.js +2 -2
  402. package/dist/components/q2-form.js.map +1 -1
  403. package/dist/components/q2-formatted-text.js +1 -1
  404. package/dist/components/q2-formatted-text.js.map +1 -1
  405. package/dist/components/q2-grid.js +32 -8
  406. package/dist/components/q2-grid.js.map +1 -1
  407. package/dist/components/q2-icon2.js.map +1 -1
  408. package/dist/components/q2-input2.js +7 -4
  409. package/dist/components/q2-input2.js.map +1 -1
  410. package/dist/components/q2-item2.js +1 -1
  411. package/dist/components/q2-item2.js.map +1 -1
  412. package/dist/components/q2-legend2.js +3 -3
  413. package/dist/components/q2-legend2.js.map +1 -1
  414. package/dist/components/q2-link2.js.map +1 -1
  415. package/dist/components/q2-list2.js +1 -1
  416. package/dist/components/q2-list2.js.map +1 -1
  417. package/dist/components/q2-loading2.js.map +1 -1
  418. package/dist/components/q2-message2.js +2 -2
  419. package/dist/components/q2-message2.js.map +1 -1
  420. package/dist/components/q2-meter.js +1 -1
  421. package/dist/components/q2-meter.js.map +1 -1
  422. package/dist/components/q2-modal.js +1 -1
  423. package/dist/components/q2-modal.js.map +1 -1
  424. package/dist/components/q2-mutation-observer.js +1 -1
  425. package/dist/components/q2-optgroup2.js +1 -1
  426. package/dist/components/q2-optgroup2.js.map +1 -1
  427. package/dist/components/q2-option-list2.js +37 -28
  428. package/dist/components/q2-option-list2.js.map +1 -1
  429. package/dist/components/q2-option2.js +1 -1
  430. package/dist/components/q2-option2.js.map +1 -1
  431. package/dist/components/q2-otp.d.ts +11 -0
  432. package/dist/components/q2-otp.js +439 -0
  433. package/dist/components/q2-otp.js.map +1 -0
  434. package/dist/components/q2-pagination.js +3 -3
  435. package/dist/components/q2-pagination.js.map +1 -1
  436. package/dist/components/q2-pill.js +23 -14
  437. package/dist/components/q2-pill.js.map +1 -1
  438. package/dist/components/q2-popover2.js +5 -2
  439. package/dist/components/q2-popover2.js.map +1 -1
  440. package/dist/components/q2-radio-group.js.map +1 -1
  441. package/dist/components/q2-radio.js +2 -2
  442. package/dist/components/q2-radio.js.map +1 -1
  443. package/dist/components/q2-relative-time.js +1 -1
  444. package/dist/components/q2-resize-observer2.js +1 -1
  445. package/dist/components/q2-section.js +2 -2
  446. package/dist/components/q2-section.js.map +1 -1
  447. package/dist/components/q2-select2.js.map +1 -1
  448. package/dist/components/q2-stepper-pane.js +1 -1
  449. package/dist/components/q2-stepper-vertical.js +1 -1
  450. package/dist/components/q2-stepper-vertical.js.map +1 -1
  451. package/dist/components/q2-stepper.js +1 -1
  452. package/dist/components/q2-stepper.js.map +1 -1
  453. package/dist/components/q2-tab-container.js +1 -1
  454. package/dist/components/q2-tab-container.js.map +1 -1
  455. package/dist/components/q2-tab-pane.js +1 -1
  456. package/dist/components/q2-tag2.js +2 -2
  457. package/dist/components/q2-tag2.js.map +1 -1
  458. package/dist/components/q2-textarea.js.map +1 -1
  459. package/dist/components/q2-toast.js.map +1 -1
  460. package/dist/components/q2-tooltip2.js +124 -5
  461. package/dist/components/q2-tooltip2.js.map +1 -1
  462. package/dist/components/sanitize-html-string.js +19 -2
  463. package/dist/components/sanitize-html-string.js.map +1 -1
  464. package/dist/components/tecton-tab-pane.js +2 -2
  465. package/dist/esm/click-elsewhere.q2-option-list.q2-popover.entry.js.map +1 -1
  466. package/dist/esm/click-elsewhere_3.entry.js +46 -32
  467. package/dist/esm/click-elsewhere_3.entry.js.map +1 -1
  468. package/dist/esm/{component-DVxzK3WH.js → component-DaQM9u3s.js} +9 -3
  469. package/dist/esm/component-DaQM9u3s.js.map +1 -0
  470. package/dist/esm/{index-C4PILj1_.js → index-C5gj0T_3.js} +4 -4
  471. package/dist/esm/index-C5gj0T_3.js.map +1 -0
  472. package/dist/esm/loader.js +1 -1
  473. package/dist/esm/q2-action-group.q2-resize-observer.entry.js.map +1 -1
  474. package/dist/esm/q2-action-group_2.entry.js +2 -2
  475. package/dist/esm/q2-action-group_2.entry.js.map +1 -1
  476. package/dist/esm/q2-action-sheet.entry.js +109 -4
  477. package/dist/esm/q2-action-sheet.entry.js.map +1 -1
  478. package/dist/esm/q2-avatar.entry.js.map +1 -1
  479. package/dist/esm/q2-badge.entry.js +1 -1
  480. package/dist/esm/q2-badge.entry.js.map +1 -1
  481. package/dist/esm/q2-btn.q2-loading.entry.js.map +1 -1
  482. package/dist/esm/q2-btn_2.entry.js +1 -1
  483. package/dist/esm/q2-btn_2.entry.js.map +1 -1
  484. package/dist/esm/q2-calendar.entry.js +6 -3
  485. package/dist/esm/q2-calendar.entry.js.map +1 -1
  486. package/dist/esm/q2-card-image.entry.js +2 -2
  487. package/dist/esm/q2-card-image.entry.js.map +1 -1
  488. package/dist/esm/q2-card.entry.js +1 -1
  489. package/dist/esm/q2-card.entry.js.map +1 -1
  490. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  491. package/dist/esm/q2-carousel-pane.entry.js.map +1 -1
  492. package/dist/esm/q2-carousel.entry.js +162 -29
  493. package/dist/esm/q2-carousel.entry.js.map +1 -1
  494. package/dist/esm/q2-chart-area.entry.js +1 -1
  495. package/dist/esm/q2-chart-bar.entry.js +1 -1
  496. package/dist/esm/q2-chart-donut.entry.js +3 -2
  497. package/dist/esm/q2-chart-donut.entry.js.map +1 -1
  498. package/dist/esm/q2-checkbox-group.entry.js +2 -2
  499. package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
  500. package/dist/esm/q2-checkbox.q2-tag.entry.js.map +1 -1
  501. package/dist/esm/q2-checkbox_2.entry.js +3 -3
  502. package/dist/esm/q2-checkbox_2.entry.js.map +1 -1
  503. package/dist/esm/q2-context.entry.js +2 -2
  504. package/dist/esm/q2-context.entry.js.map +1 -1
  505. package/dist/esm/q2-currency.entry.js +3 -4
  506. package/dist/esm/q2-currency.entry.js.map +1 -1
  507. package/dist/esm/q2-data-table.entry.js +2 -2
  508. package/dist/esm/q2-data-table.entry.js.map +1 -1
  509. package/dist/esm/q2-detail.entry.js +2 -2
  510. package/dist/esm/q2-detail.entry.js.map +1 -1
  511. package/dist/esm/q2-dropdown-item.entry.js +2 -2
  512. package/dist/esm/q2-dropdown-item.entry.js.map +1 -1
  513. package/dist/esm/q2-dropdown.entry.js +3 -5
  514. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  515. package/dist/esm/q2-editable-field.entry.js +1 -1
  516. package/dist/esm/q2-editable-field.entry.js.map +1 -1
  517. package/dist/esm/q2-example.entry.js +1 -1
  518. package/dist/esm/q2-file-picker.entry.js +1 -1
  519. package/dist/esm/q2-file-picker.entry.js.map +1 -1
  520. package/dist/esm/q2-form.entry.js +2 -2
  521. package/dist/esm/q2-form.entry.js.map +1 -1
  522. package/dist/esm/q2-formatted-text.entry.js +1 -1
  523. package/dist/esm/q2-formatted-text.entry.js.map +1 -1
  524. package/dist/esm/q2-grid-area.entry.js +1 -1
  525. package/dist/esm/q2-grid.entry.js +33 -9
  526. package/dist/esm/q2-grid.entry.js.map +1 -1
  527. package/dist/esm/q2-icon.entry.js +1 -1
  528. package/dist/esm/q2-icon.entry.js.map +1 -1
  529. package/dist/esm/q2-input.entry.js +8 -5
  530. package/dist/esm/q2-input.entry.js.map +1 -1
  531. package/dist/esm/q2-item.entry.js +2 -2
  532. package/dist/esm/q2-item.entry.js.map +1 -1
  533. package/dist/esm/q2-legend.entry.js +2 -3
  534. package/dist/esm/q2-legend.entry.js.map +1 -1
  535. package/dist/esm/q2-link.q2-list.entry.js.map +1 -1
  536. package/dist/esm/q2-link_2.entry.js +2 -2
  537. package/dist/esm/q2-link_2.entry.js.map +1 -1
  538. package/dist/esm/q2-loc.entry.js +1 -1
  539. package/dist/esm/q2-message.entry.js +3 -3
  540. package/dist/esm/q2-message.entry.js.map +1 -1
  541. package/dist/esm/q2-meter.entry.js +2 -2
  542. package/dist/esm/q2-meter.entry.js.map +1 -1
  543. package/dist/esm/q2-modal.entry.js +3 -3
  544. package/dist/esm/q2-modal.entry.js.map +1 -1
  545. package/dist/esm/q2-month-picker.entry.js +1 -1
  546. package/dist/esm/q2-mutation-observer.entry.js +1 -1
  547. package/dist/esm/q2-optgroup.entry.js +3 -3
  548. package/dist/esm/q2-optgroup.entry.js.map +1 -1
  549. package/dist/esm/q2-option.entry.js +3 -3
  550. package/dist/esm/q2-option.entry.js.map +1 -1
  551. package/dist/esm/q2-otp.entry.js +371 -0
  552. package/dist/esm/q2-otp.entry.js.map +1 -0
  553. package/dist/esm/q2-pagination.entry.js +4 -4
  554. package/dist/esm/q2-pagination.entry.js.map +1 -1
  555. package/dist/esm/q2-pill.entry.js +24 -15
  556. package/dist/esm/q2-pill.entry.js.map +1 -1
  557. package/dist/esm/q2-radio-group.entry.js +1 -1
  558. package/dist/esm/q2-radio-group.entry.js.map +1 -1
  559. package/dist/esm/q2-radio.entry.js +3 -3
  560. package/dist/esm/q2-radio.entry.js.map +1 -1
  561. package/dist/esm/q2-relative-time.entry.js +2 -2
  562. package/dist/esm/q2-section-container.entry.js +1 -1
  563. package/dist/esm/q2-section.entry.js +3 -3
  564. package/dist/esm/q2-section.entry.js.map +1 -1
  565. package/dist/esm/q2-select.entry.js +1 -1
  566. package/dist/esm/q2-select.entry.js.map +1 -1
  567. package/dist/esm/q2-stepper-pane.entry.js +3 -3
  568. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  569. package/dist/esm/q2-stepper-vertical.entry.js.map +1 -1
  570. package/dist/esm/q2-stepper.entry.js +2 -2
  571. package/dist/esm/q2-stepper.entry.js.map +1 -1
  572. package/dist/esm/q2-tab-container.entry.js +3 -3
  573. package/dist/esm/q2-tab-container.entry.js.map +1 -1
  574. package/dist/esm/q2-tab-pane.entry.js +2 -2
  575. package/dist/esm/q2-tecton-elements.js +1 -1
  576. package/dist/esm/q2-textarea.entry.js +1 -1
  577. package/dist/esm/q2-textarea.entry.js.map +1 -1
  578. package/dist/esm/q2-toast.entry.js +1 -1
  579. package/dist/esm/q2-toast.entry.js.map +1 -1
  580. package/dist/esm/q2-tooltip.entry.js +124 -5
  581. package/dist/esm/q2-tooltip.entry.js.map +1 -1
  582. package/dist/esm/{sanitize-html-string-B35VmRc9.js → sanitize-html-string-DPHNpMWE.js} +21 -4
  583. package/dist/{q2-tecton-elements/sanitize-html-string-B35VmRc9.js.map → esm/sanitize-html-string-DPHNpMWE.js.map} +1 -1
  584. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  585. package/dist/playwright.config.js +12 -0
  586. package/dist/playwright.config.js.map +1 -0
  587. package/dist/q2-tecton-elements/assets/standard.symbol.svg +1 -1
  588. package/dist/q2-tecton-elements/click-elsewhere.q2-option-list.q2-popover.entry.esm.js.map +1 -1
  589. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +44 -35
  590. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js.map +1 -1
  591. package/dist/q2-tecton-elements/component-DaQM9u3s.js +46 -0
  592. package/dist/q2-tecton-elements/component-DaQM9u3s.js.map +1 -0
  593. package/dist/q2-tecton-elements/{index-C4PILj1_.js → index-C5gj0T_3.js} +4 -4
  594. package/dist/q2-tecton-elements/index-C5gj0T_3.js.map +1 -0
  595. package/dist/q2-tecton-elements/q2-action-group.q2-resize-observer.entry.esm.js.map +1 -1
  596. package/dist/q2-tecton-elements/q2-action-group_2.entry.js +2 -2
  597. package/dist/q2-tecton-elements/q2-action-group_2.entry.js.map +1 -1
  598. package/dist/q2-tecton-elements/q2-action-sheet.entry.esm.js.map +1 -1
  599. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +166 -70
  600. package/dist/q2-tecton-elements/q2-action-sheet.entry.js.map +1 -1
  601. package/dist/q2-tecton-elements/q2-avatar.entry.esm.js.map +1 -1
  602. package/dist/q2-tecton-elements/q2-avatar.entry.js.map +1 -1
  603. package/dist/q2-tecton-elements/q2-badge.entry.esm.js.map +1 -1
  604. package/dist/q2-tecton-elements/q2-badge.entry.js +1 -1
  605. package/dist/q2-tecton-elements/q2-badge.entry.js.map +1 -1
  606. package/dist/q2-tecton-elements/q2-btn.q2-loading.entry.esm.js.map +1 -1
  607. package/dist/q2-tecton-elements/q2-btn_2.entry.js +1 -1
  608. package/dist/q2-tecton-elements/q2-btn_2.entry.js.map +1 -1
  609. package/dist/q2-tecton-elements/q2-calendar.entry.esm.js.map +1 -1
  610. package/dist/q2-tecton-elements/q2-calendar.entry.js +4 -4
  611. package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -1
  612. package/dist/q2-tecton-elements/q2-card-image.entry.esm.js.map +1 -1
  613. package/dist/q2-tecton-elements/q2-card-image.entry.js +2 -2
  614. package/dist/q2-tecton-elements/q2-card-image.entry.js.map +1 -1
  615. package/dist/q2-tecton-elements/q2-card.entry.esm.js.map +1 -1
  616. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  617. package/dist/q2-tecton-elements/q2-card.entry.js.map +1 -1
  618. package/dist/q2-tecton-elements/q2-carousel-pane.entry.esm.js.map +1 -1
  619. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +6 -6
  620. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js.map +1 -1
  621. package/dist/q2-tecton-elements/q2-carousel.entry.esm.js.map +1 -1
  622. package/dist/q2-tecton-elements/q2-carousel.entry.js +402 -271
  623. package/dist/q2-tecton-elements/q2-carousel.entry.js.map +1 -1
  624. package/dist/q2-tecton-elements/q2-chart-area.entry.js +1 -1
  625. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +1 -1
  626. package/dist/q2-tecton-elements/q2-chart-donut.entry.esm.js.map +1 -1
  627. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +18 -16
  628. package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -1
  629. package/dist/q2-tecton-elements/q2-checkbox-group.entry.esm.js.map +1 -1
  630. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +2 -2
  631. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
  632. package/dist/q2-tecton-elements/q2-checkbox.q2-tag.entry.esm.js.map +1 -1
  633. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +7 -7
  634. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js.map +1 -1
  635. package/dist/q2-tecton-elements/q2-context.entry.esm.js.map +1 -1
  636. package/dist/q2-tecton-elements/q2-context.entry.js +2 -2
  637. package/dist/q2-tecton-elements/q2-context.entry.js.map +1 -1
  638. package/dist/q2-tecton-elements/q2-currency.entry.esm.js.map +1 -1
  639. package/dist/q2-tecton-elements/q2-currency.entry.js +34 -33
  640. package/dist/q2-tecton-elements/q2-currency.entry.js.map +1 -1
  641. package/dist/q2-tecton-elements/q2-data-table.entry.esm.js.map +1 -1
  642. package/dist/q2-tecton-elements/q2-data-table.entry.js +4 -4
  643. package/dist/q2-tecton-elements/q2-data-table.entry.js.map +1 -1
  644. package/dist/q2-tecton-elements/q2-detail.entry.esm.js.map +1 -1
  645. package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
  646. package/dist/q2-tecton-elements/q2-detail.entry.js.map +1 -1
  647. package/dist/q2-tecton-elements/q2-dropdown-item.entry.esm.js.map +1 -1
  648. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +2 -2
  649. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js.map +1 -1
  650. package/dist/q2-tecton-elements/q2-dropdown.entry.esm.js.map +1 -1
  651. package/dist/q2-tecton-elements/q2-dropdown.entry.js +18 -19
  652. package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
  653. package/dist/q2-tecton-elements/q2-editable-field.entry.esm.js.map +1 -1
  654. package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
  655. package/dist/q2-tecton-elements/q2-editable-field.entry.js.map +1 -1
  656. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  657. package/dist/q2-tecton-elements/q2-file-picker.entry.esm.js.map +1 -1
  658. package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
  659. package/dist/q2-tecton-elements/q2-file-picker.entry.js.map +1 -1
  660. package/dist/q2-tecton-elements/q2-form.entry.esm.js.map +1 -1
  661. package/dist/q2-tecton-elements/q2-form.entry.js +9 -9
  662. package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -1
  663. package/dist/q2-tecton-elements/q2-formatted-text.entry.esm.js.map +1 -1
  664. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  665. package/dist/q2-tecton-elements/q2-formatted-text.entry.js.map +1 -1
  666. package/dist/q2-tecton-elements/q2-grid-area.entry.js +1 -1
  667. package/dist/q2-tecton-elements/q2-grid.entry.esm.js.map +1 -1
  668. package/dist/q2-tecton-elements/q2-grid.entry.js +39 -14
  669. package/dist/q2-tecton-elements/q2-grid.entry.js.map +1 -1
  670. package/dist/q2-tecton-elements/q2-icon.entry.esm.js.map +1 -1
  671. package/dist/q2-tecton-elements/q2-icon.entry.js +52 -52
  672. package/dist/q2-tecton-elements/q2-icon.entry.js.map +1 -1
  673. package/dist/q2-tecton-elements/q2-input.entry.esm.js.map +1 -1
  674. package/dist/q2-tecton-elements/q2-input.entry.js +10 -6
  675. package/dist/q2-tecton-elements/q2-input.entry.js.map +1 -1
  676. package/dist/q2-tecton-elements/q2-item.entry.esm.js.map +1 -1
  677. package/dist/q2-tecton-elements/q2-item.entry.js +14 -14
  678. package/dist/q2-tecton-elements/q2-item.entry.js.map +1 -1
  679. package/dist/q2-tecton-elements/q2-legend.entry.esm.js.map +1 -1
  680. package/dist/q2-tecton-elements/q2-legend.entry.js +4 -5
  681. package/dist/q2-tecton-elements/q2-legend.entry.js.map +1 -1
  682. package/dist/q2-tecton-elements/q2-link.q2-list.entry.esm.js.map +1 -1
  683. package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
  684. package/dist/q2-tecton-elements/q2-link_2.entry.js.map +1 -1
  685. package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
  686. package/dist/q2-tecton-elements/q2-message.entry.esm.js.map +1 -1
  687. package/dist/q2-tecton-elements/q2-message.entry.js +28 -28
  688. package/dist/q2-tecton-elements/q2-message.entry.js.map +1 -1
  689. package/dist/q2-tecton-elements/q2-meter.entry.esm.js.map +1 -1
  690. package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
  691. package/dist/q2-tecton-elements/q2-meter.entry.js.map +1 -1
  692. package/dist/q2-tecton-elements/q2-modal.entry.esm.js.map +1 -1
  693. package/dist/q2-tecton-elements/q2-modal.entry.js +53 -53
  694. package/dist/q2-tecton-elements/q2-modal.entry.js.map +1 -1
  695. package/dist/q2-tecton-elements/q2-month-picker.entry.js +1 -1
  696. package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
  697. package/dist/q2-tecton-elements/q2-optgroup.entry.esm.js.map +1 -1
  698. package/dist/q2-tecton-elements/q2-optgroup.entry.js +6 -6
  699. package/dist/q2-tecton-elements/q2-optgroup.entry.js.map +1 -1
  700. package/dist/q2-tecton-elements/q2-option.entry.esm.js.map +1 -1
  701. package/dist/q2-tecton-elements/q2-option.entry.js +3 -3
  702. package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -1
  703. package/dist/q2-tecton-elements/q2-otp.entry.esm.js.map +1 -0
  704. package/dist/q2-tecton-elements/q2-otp.entry.js +453 -0
  705. package/dist/q2-tecton-elements/q2-otp.entry.js.map +1 -0
  706. package/dist/q2-tecton-elements/q2-pagination.entry.esm.js.map +1 -1
  707. package/dist/q2-tecton-elements/q2-pagination.entry.js +29 -29
  708. package/dist/q2-tecton-elements/q2-pagination.entry.js.map +1 -1
  709. package/dist/q2-tecton-elements/q2-pill.entry.esm.js.map +1 -1
  710. package/dist/q2-tecton-elements/q2-pill.entry.js +43 -28
  711. package/dist/q2-tecton-elements/q2-pill.entry.js.map +1 -1
  712. package/dist/q2-tecton-elements/q2-radio-group.entry.esm.js.map +1 -1
  713. package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
  714. package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -1
  715. package/dist/q2-tecton-elements/q2-radio.entry.esm.js.map +1 -1
  716. package/dist/q2-tecton-elements/q2-radio.entry.js +10 -10
  717. package/dist/q2-tecton-elements/q2-radio.entry.js.map +1 -1
  718. package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
  719. package/dist/q2-tecton-elements/q2-section-container.entry.js +1 -1
  720. package/dist/q2-tecton-elements/q2-section.entry.esm.js.map +1 -1
  721. package/dist/q2-tecton-elements/q2-section.entry.js +21 -21
  722. package/dist/q2-tecton-elements/q2-section.entry.js.map +1 -1
  723. package/dist/q2-tecton-elements/q2-select.entry.esm.js.map +1 -1
  724. package/dist/q2-tecton-elements/q2-select.entry.js +1 -1
  725. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
  726. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +10 -10
  727. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.esm.js.map +1 -1
  728. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
  729. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js.map +1 -1
  730. package/dist/q2-tecton-elements/q2-stepper.entry.esm.js.map +1 -1
  731. package/dist/q2-tecton-elements/q2-stepper.entry.js +33 -33
  732. package/dist/q2-tecton-elements/q2-stepper.entry.js.map +1 -1
  733. package/dist/q2-tecton-elements/q2-tab-container.entry.esm.js.map +1 -1
  734. package/dist/q2-tecton-elements/q2-tab-container.entry.js +14 -14
  735. package/dist/q2-tecton-elements/q2-tab-container.entry.js.map +1 -1
  736. package/dist/q2-tecton-elements/q2-tab-pane.entry.js +6 -6
  737. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  738. package/dist/q2-tecton-elements/q2-textarea.entry.esm.js.map +1 -1
  739. package/dist/q2-tecton-elements/q2-textarea.entry.js +1 -1
  740. package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
  741. package/dist/q2-tecton-elements/q2-toast.entry.esm.js.map +1 -1
  742. package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
  743. package/dist/q2-tecton-elements/q2-toast.entry.js.map +1 -1
  744. package/dist/q2-tecton-elements/q2-tooltip.entry.esm.js.map +1 -1
  745. package/dist/q2-tecton-elements/q2-tooltip.entry.js +136 -20
  746. package/dist/q2-tecton-elements/q2-tooltip.entry.js.map +1 -1
  747. package/dist/q2-tecton-elements/{sanitize-html-string-B35VmRc9.js → sanitize-html-string-DPHNpMWE.js} +147 -142
  748. package/dist/{esm/sanitize-html-string-B35VmRc9.js.map → q2-tecton-elements/sanitize-html-string-DPHNpMWE.js.map} +1 -1
  749. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
  750. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/playwright.config.d.ts +2 -0
  751. package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +22 -0
  752. package/dist/types/components/q2-avatar/test/q2-avatar-test.vr.d.ts +1 -0
  753. package/dist/types/components/q2-badge/test/q2-badge-test.vr.d.ts +1 -0
  754. package/dist/types/components/q2-btn/test/q2-btn-test.vr.d.ts +1 -0
  755. package/dist/types/components/q2-calendar/test/q2-calendar-test.vr.d.ts +1 -0
  756. package/dist/types/components/q2-card/test/q2-card-test.vr.d.ts +1 -0
  757. package/dist/types/components/q2-card-image/test/q2-card-image-test.vr.d.ts +1 -0
  758. package/dist/types/components/q2-carousel/q2-carousel.d.ts +29 -0
  759. package/dist/types/components/q2-carousel/test/q2-carousel-test.vr.d.ts +1 -0
  760. package/dist/types/components/q2-chart-area/test/q2-chart-area-test.vr.d.ts +1 -0
  761. package/dist/types/components/q2-chart-bar/test/q2-chart-bar-test.vr.d.ts +1 -0
  762. package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +2 -0
  763. package/dist/types/components/q2-chart-donut/test/q2-chart-donut-test.vr.d.ts +1 -0
  764. package/dist/types/components/q2-checkbox/test/q2-checkbox-test.vr.d.ts +1 -0
  765. package/dist/types/components/q2-checkbox-group/test/q2-checkbox-group-test.vr.d.ts +1 -0
  766. package/dist/types/components/q2-context/test/q2-context-test.vr.d.ts +1 -0
  767. package/dist/types/components/q2-currency/test/q2-currency-test.vr.d.ts +1 -0
  768. package/dist/types/components/q2-data-table/test/q2-data-table-test.vr.d.ts +1 -0
  769. package/dist/types/components/q2-editable-field/test/q2-editable-field-test.vr.d.ts +1 -0
  770. package/dist/types/components/q2-file-picker/test/q2-file-picker-test.vr.d.ts +1 -0
  771. package/dist/types/components/q2-formatted-text/test/q2-formatted-text-test.vr.d.ts +1 -0
  772. package/dist/types/components/q2-grid/q2-grid.d.ts +10 -0
  773. package/dist/types/components/q2-icon/test/q2-icon-test.vr.d.ts +1 -0
  774. package/dist/types/components/q2-input/test/q2-input-test.vr.d.ts +1 -0
  775. package/dist/types/components/q2-legend/q2-legend.d.ts +2 -0
  776. package/dist/types/components/q2-link/test/q2-link-test.vr.d.ts +1 -0
  777. package/dist/types/components/q2-list/test/q2-list-test.vr.d.ts +1 -0
  778. package/dist/types/components/q2-message/test/q2-message-test.vr.d.ts +1 -0
  779. package/dist/types/components/q2-meter/test/q2-meter-test.vr.d.ts +1 -0
  780. package/dist/types/components/q2-modal/test/q2-modal-test.vr.d.ts +1 -0
  781. package/dist/types/components/q2-otp/q2-otp.d.ts +159 -0
  782. package/dist/types/components/q2-pagination/test/q2-pagination-test.vr.d.ts +1 -0
  783. package/dist/types/components/q2-pill/q2-pill.d.ts +5 -2
  784. package/dist/types/components/q2-pill/test/q2-pill-test.vr.d.ts +1 -0
  785. package/dist/types/components/q2-radio/q2-radio.d.ts +1 -1
  786. package/dist/types/components/q2-radio/test/q2-radio-test.vr.d.ts +1 -0
  787. package/dist/types/components/q2-radio-group/test/q2-radio-group-test.vr.d.ts +1 -0
  788. package/dist/types/components/q2-section/test/q2-section-test.vr.d.ts +1 -0
  789. package/dist/types/components/q2-select/test/q2-select-test.vr.d.ts +1 -0
  790. package/dist/types/components/q2-stepper/test/q2-stepper-test.vr.d.ts +1 -0
  791. package/dist/types/components/q2-stepper-vertical/test/q2-stepper-vertical-test.vr.d.ts +1 -0
  792. package/dist/types/components/q2-tab-container/test/q2-tab-container-test.vr.d.ts +1 -0
  793. package/dist/types/components/q2-tag/test/q2-tag-test.vr.d.ts +1 -0
  794. package/dist/types/components/q2-textarea/test/q2-textarea-test.vr.d.ts +1 -0
  795. package/dist/types/components/q2-tooltip/q2-tooltip.d.ts +4 -0
  796. package/dist/types/components/q2-tooltip/test/q2-tooltip-test.vr.d.ts +1 -0
  797. package/dist/types/components.d.ts +306 -2
  798. package/dist/types/utils/component.d.ts +1 -1
  799. package/dist/types/utils/test/vr-helpers.d.ts +14 -0
  800. package/package.json +12 -3
  801. package/dist/cjs/component-DRAntnCA.js.map +0 -1
  802. package/dist/cjs/index-YvKoRT-t.js.map +0 -1
  803. package/dist/esm/component-DVxzK3WH.js.map +0 -1
  804. package/dist/esm/index-C4PILj1_.js.map +0 -1
  805. package/dist/q2-tecton-elements/component-DVxzK3WH.js +0 -40
  806. package/dist/q2-tecton-elements/component-DVxzK3WH.js.map +0 -1
  807. package/dist/q2-tecton-elements/index-C4PILj1_.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["q2ToastCss","Q2Toast","constructor","hostRef","this","closeAnimationTimeMs","isClosing","isOpen","autoClose","closable","duration","hideIcon","showPersistent","size","type","onCloseClick","dismiss","disconnectedCallback","clearAutoClose","clearCloseTimer","componentDidLoad","startAutoClose","onAutoCloseChange","onShowPersistentChange","onSizeChange","ariaLive","resolvedType","ariaRole","hasIconSlot","hasSlotContent","hostElement","isLarge","resolvedIcon","icon","iconMap","success","warning","alert","info","shouldShowIcon","showFooter","hasActions","hasTime","time","srTypeLabel","labelMap","loc","default","toastClasses","classes","push","join","autoCloseTimer","clearTimeout","undefined","closeTimer","reason","toastEl","_a","shadowRoot","querySelector","height","Math","ceil","getBoundingClientRect","style","setProperty","setTimeout","tctClose","emit","renderIcon","h","name","render","class","role","tctTitle","onClick","message"],"sources":["src/components/q2-toast/q2-toast.scss?tag=q2-toast&encapsulation=shadow","src/components/q2-toast/q2-toast.tsx"],"sourcesContent":["@import '../../styles/host.scss';\n@import '../../styles/functions';\n\n:host {\n display: block;\n}\n\n\n.toast {\n --comp-accent-width: 1px;\n --comp-icon-size: 32px;\n --comp-icon-bg: transparent;\n --comp-text-color: #{var-list(--tct-toast-text, --tct-gray-2, --app-gray-2, #333333)};\n --comp-subtle-color: #{var-list(--tct-toast-subtle, --tct-gray-5, --app-gray-5, #6b6b6b)};\n\n\n --comp-color-success: #{var-list(--tct-stoplight-success, --const-stoplight-success, #0e8a00)};\n --comp-color-info: #{var-list(--tct-stoplight-info, --const-stoplight-info, #0079c1)};\n --comp-color-warning: #{var-list(--tct-stoplight-warning, --const-stoplight-warning, #c35500)};\n --comp-color-alert: #{var-list(--tct-stoplight-alert, --const-stoplight-alert, #d20a0a)};\n --comp-color-default: white;\n\n &.success {\n border-color: var(--comp-color-success);\n background-color: var(--comp-color-success);\n --comp-icon-bg: #e7f5e3;\n }\n\n &.info {\n border-color: var(--comp-color-info);\n background-color: var(--comp-color-info);\n --comp-icon-bg: #e6f1fb;\n }\n\n &.warning {\n border-color: var(--comp-color-warning);\n background-color: var(--comp-color-warning);\n --comp-icon-bg: #fff0df;\n }\n\n &.alert {\n border-color: var(--comp-color-alert);\n background-color: var(--comp-color-alert);\n --comp-icon-bg: #fde6e6;\n }\n\n display: flex;\n flex-direction: column;\n gap: var-list(--tct-toast-gap, --app-scale-2x, 10px);\n padding-left: 3px;\n border-radius: 5px;\n border: 1px solid transparent;\n background: var-list(--tct-toast-background, --tct-gray-14, --app-gray-l3, #ffffff);\n color: var(--comp-text-color);\n box-shadow: var-list(--tct-toast-shadow, --app-shadow-2, unquote('0 12px 24px rgb(0 0 0 / 0.12)'));\n overflow:hidden;\n\n &.is-closing{\n animation-name: shrink;\n animation-duration: 500ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n transform-origin: top;\n overflow: hidden;\n }\n\n &.small {\n\n & .container{\n padding: var-list(--tct-toast-padding-small, --app-scale-2x, 10px);\n }\n }\n\n &.default {\n --comp-border-color: #{var-list(--tct-toast-border, --tct-gray-9, --app-gray-4, #d1d1d1)};\n --comp-icon-bg: #{var-list(--tct-toast-icon-bg, --tct-gray-12, --app-gray-l2, #f3f3f3)};\n border-color: var(--comp-border-color);\n }\n}\n\n.header {\n display: grid;\n grid-template-columns: var(--comp-icon-size) 1fr auto;\n gap: var-list(--tct-toast-gap, --app-scale-2x, 10px);\n align-items: center;\n}\n\n.toast.no-icon .header {\n grid-template-columns: 1fr auto;\n}\n\n.icon {\n width: var(--comp-icon-size);\n height: var(--comp-icon-size);\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: var(--comp-icon-bg);\n}\n\n.icon q2-icon {\n --tct-icon-size: calc(var(--comp-icon-size) - 6px);\n --tct-icon-stroke-primary: var(--comp-border-color);\n --tct-icon-stroke-secondary: var(--comp-border-color);\n --tct-icon-fill: var(--comp-border-color);\n}\n\n.title {\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n\n.title-text {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.content {\n color: var(--comp-subtle-color);\n display: -webkit-box;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.footer {\n margin-top: var-list(--tct-toast-footer-gap, --app-scale-2x, 10px);\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var-list(--tct-toast-footer-spacing, --app-scale-2x, 10px);\n color: var(--comp-subtle-color);\n font-size: 0.875rem;\n}\n\n.time {\n white-space: nowrap;\n}\n\n.actions {\n display: inline-flex;\n align-items: center;\n gap: var-list(--tct-toast-actions-gap, --app-scale-2x, 10px);\n}\n\n.close {\n border: none;\n background: transparent;\n padding: 2px;\n margin-left: var-list(--tct-toast-close-offset, --app-scale-1x, 5px);\n color: var(--comp-subtle-color);\n cursor: pointer;\n}\n\n.close q2-icon {\n --tct-icon-size: 18px;\n}\n\n.container {\n padding: var-list(--tct-toast-padding, --app-scale-3x, 15px);\n background-color: white;\n}\n\n@keyframes shrink {\n from {\n transform: scale(1);\n height: var(--toast-close-height, 0px);\n opacity: 1;\n }\n\n to {\n transform:scale(0);\n height: 0;\n opacity: 0;\n }\n}\n","import { Component, Prop, h, ComponentInterface, Event, EventEmitter, Element, State, Watch } from '@stencil/core';\nimport { hasSlotContent, loc } from 'src/utils';\n\n/**\n * @slot icon - Optional slot for a custom icon.\n * @slot title - Optional slot for the title content.\n * @slot - Optional slot for the message content.\n * @slot time - Optional slot for the time marker.\n * @slot actions - Optional slot for action links in the footer.\n */\n@Component({ tag: 'q2-toast', shadow: true, styleUrl: 'q2-toast.scss' })\nexport class Q2Toast implements ComponentInterface {\n // #region Own Properties\n\n private autoCloseTimer?: ReturnType<typeof setTimeout>;\n private closeAnimationTimeMs = 500;\n private closeTimer?: ReturnType<typeof setTimeout>;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n hostElement: HTMLElement;\n\n // #endregion\n // #region State Properties\n\n @State()\n isClosing: boolean = false;\n\n @State()\n isOpen: boolean = true;\n\n // #endregion\n // #region Public Property API\n\n /** Enables automatic dismissal after a duration. */\n @Prop({ reflect: true })\n autoClose: boolean = false;\n\n /** Controls whether the close button is displayed. */\n @Prop({ reflect: true })\n closable: boolean = true;\n\n /** The duration in milliseconds before auto dismissal. */\n @Prop({ reflect: true })\n duration: number = 7000;\n\n /** Manually hide the icon where it would otherwise appear. */\n @Prop({ reflect: true })\n hideIcon: boolean = false;\n\n /** Optional icon type to display. */\n @Prop()\n icon: string;\n\n /** Optional message for the toast body. */\n @Prop()\n message: string;\n\n /**\n * Convenience prop for persistent toasts. When true, sets autoClose to false and closable to true.\n * Aligns with acceptance criteria for showPersistent behavior.\n */\n @Prop({ reflect: true })\n showPersistent: boolean = false;\n\n /** Controls the visual size of the toast. */\n @Prop({ reflect: true })\n size: 'large' | 'small' = 'large';\n\n /** Optional title for the toast. */\n @Prop()\n tctTitle: string;\n\n /** Optional time marker for the footer. */\n @Prop()\n time: string;\n\n /** The visual status of the toast. */\n @Prop({ reflect: true })\n type: 'warning' | 'info' | 'alert' | 'success' | 'default' | 'error' = 'default';\n\n // #endregion\n // #region Events\n\n /** Emitted when the toast is dismissed. */\n @Event()\n tctClose: EventEmitter<{ reason: 'close' | 'timeout' }>;\n\n // #endregion\n // #region Component Lifecycle Events\n\n disconnectedCallback(): void {\n this.clearAutoClose();\n this.clearCloseTimer();\n }\n\n componentDidLoad(): void {\n this.startAutoClose();\n }\n\n // #endregion\n // #region Watchers\n\n @Watch('autoClose')\n @Watch('duration')\n onAutoCloseChange() {\n this.startAutoClose();\n }\n\n @Watch('showPersistent')\n onShowPersistentChange() {\n if (this.showPersistent) {\n this.autoClose = false;\n this.closable = true;\n } else {\n this.autoClose = true;\n }\n }\n\n @Watch('size')\n onSizeChange() {\n if (this.size === 'large') {\n this.showPersistent = true;\n }\n }\n\n // #endregion\n // #region Local Methods\n\n get ariaLive(): 'assertive' | 'polite' {\n // Alert/error/warning types should be assertive, others polite\n return this.resolvedType === 'alert' || this.resolvedType === 'warning' ? 'assertive' : 'polite';\n }\n\n get ariaRole(): 'alert' | 'status' {\n // Alert/error/warning types use \"alert\" role, others use \"status\"\n return this.resolvedType === 'alert' || this.resolvedType === 'warning' ? 'alert' : 'status';\n }\n\n get hasIconSlot(): boolean {\n return hasSlotContent(this.hostElement, 'icon');\n }\n\n get isLarge(): boolean {\n return this.size !== 'small';\n }\n\n get resolvedIcon(): string {\n if (this.icon) return this.icon;\n\n const iconMap = {\n success: 'success-filled',\n warning: 'warning-filled',\n alert: 'error-filled',\n info: 'info-filled',\n };\n\n return iconMap[this.resolvedType];\n }\n\n get resolvedType(): 'warning' | 'info' | 'alert' | 'success' | 'default' {\n return this.type === 'error' ? 'alert' : this.type;\n }\n\n get shouldShowIcon(): boolean {\n return (this.hasIconSlot || !!this.resolvedIcon) && !this.hideIcon;\n }\n\n get showFooter(): boolean {\n const hasActions = hasSlotContent(this.hostElement, 'actions');\n const hasTime = hasSlotContent(this.hostElement, 'time') || !!this.time;\n return this.isLarge && (hasActions || hasTime);\n }\n\n get srTypeLabel(): string {\n // Screen reader label for toast type\n const labelMap = {\n success: loc('tecton.element.toast.type.success'),\n warning: loc('tecton.element.toast.type.warning'),\n alert: loc('tecton.element.toast.type.alert'),\n info: loc('tecton.element.toast.type.info'),\n default: loc('tecton.element.toast.type.default'),\n };\n return labelMap[this.resolvedType] || '';\n }\n\n get toastClasses(): string {\n const classes = ['toast', this.resolvedType, this.size];\n classes.push(this.shouldShowIcon ? 'has-icon' : 'no-icon');\n if (this.isClosing) classes.push('is-closing');\n return classes.join(' ');\n }\n\n clearAutoClose() {\n if (!this.autoCloseTimer) return;\n clearTimeout(this.autoCloseTimer);\n this.autoCloseTimer = undefined;\n }\n\n clearCloseTimer() {\n if (!this.closeTimer) return;\n clearTimeout(this.closeTimer);\n this.closeTimer = undefined;\n }\n\n dismiss(reason: 'close' | 'timeout') {\n if (!this.isOpen || this.isClosing) return;\n this.clearAutoClose();\n this.clearCloseTimer();\n const toastEl = this.hostElement.shadowRoot?.querySelector('.toast') as HTMLElement | null;\n if (toastEl) {\n const height = Math.ceil(toastEl.getBoundingClientRect().height);\n this.hostElement.style.setProperty('--toast-close-height', `${height}px`);\n this.hostElement.style.setProperty('margin-bottom', '0');\n }\n this.isClosing = true;\n this.closeTimer = setTimeout(() => {\n this.isOpen = false;\n this.isClosing = false;\n this.tctClose.emit({ reason });\n }, this.closeAnimationTimeMs);\n }\n\n onCloseClick = () => {\n this.dismiss('close');\n };\n\n startAutoClose() {\n this.clearAutoClose();\n if (!this.autoClose || !this.duration || this.duration <= 0 || !this.isOpen) return;\n this.autoCloseTimer = setTimeout(() => {\n this.dismiss('timeout');\n }, this.duration);\n }\n\n // #endregion\n // #region Render Methods\n\n renderIcon() {\n if (this.hideIcon) return null;\n if (this.hasIconSlot) return <slot name=\"icon\"></slot>;\n if (!this.resolvedIcon) return null;\n return <q2-icon type={this.resolvedIcon} />;\n }\n\n render() {\n if (!this.isOpen) return null;\n\n return (\n <div\n class={this.toastClasses}\n role={this.ariaRole}\n aria-live={this.ariaLive}\n aria-atomic=\"true\"\n aria-relevant=\"all\"\n >\n {this.srTypeLabel && <span class=\"sr\">{this.srTypeLabel}</span>}\n <div class=\"container\">\n <div class=\"header\">\n {this.shouldShowIcon && <div class=\"icon\">{this.renderIcon()}</div>}\n <div class=\"title\">\n <span class=\"title-text\">\n <slot name=\"title\">{this.tctTitle}</slot>\n </span>\n </div>\n {this.closable && (\n <button\n class=\"close\"\n type=\"button\"\n aria-label={loc('tecton.element.toast.close')}\n onClick={this.onCloseClick}\n >\n <q2-icon type=\"close\" />\n </button>\n )}\n </div>\n {this.isLarge && (\n <div class=\"content\">\n {this.message}\n <slot />\n </div>\n )}\n {this.showFooter && (\n <div class=\"footer\">\n <div class=\"time\">\n <slot name=\"time\">{this.time}</slot>\n </div>\n <div class=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n\n // #endregion\n}\n"],"mappings":";;;;AAAA,MAAMA,IAAa;;MCWNC,IAAO;EADpB,WAAAC,CAAAC;;;IAKYC,KAAoBC,uBAAG;;;QAa/BD,KAASE,YAAY;IAGrBF,KAAMG,SAAY;;;4DAOlBH,KAASI,YAAY;8DAIrBJ,KAAQK,WAAY;kEAIpBL,KAAQM,WAAW;sEAInBN,KAAQO,WAAY;;;;eAepBP,KAAcQ,iBAAY;qDAI1BR,KAAIS,OAAsB;8CAY1BT,KAAIU,OAAmE;IAgJvEV,KAAYW,eAAG;MACXX,KAAKY,QAAQ;AAAQ;AA0E5B;;;EA/MG,oBAAAC;IACIb,KAAKc;IACLd,KAAKe;;EAGT,gBAAAC;IACIhB,KAAKiB;;;;EAQT,iBAAAC;IACIlB,KAAKiB;;EAIT,sBAAAE;IACI,IAAInB,KAAKQ,gBAAgB;MACrBR,KAAKI,YAAY;MACjBJ,KAAKK,WAAW;WACb;MACHL,KAAKI,YAAY;;;EAKzB,YAAAgB;IACI,IAAIpB,KAAKS,SAAS,SAAS;MACvBT,KAAKQ,iBAAiB;;;;;EAO9B,YAAIa;;IAEA,OAAOrB,KAAKsB,iBAAiB,WAAWtB,KAAKsB,iBAAiB,YAAY,cAAc;;EAG5F,YAAIC;;IAEA,OAAOvB,KAAKsB,iBAAiB,WAAWtB,KAAKsB,iBAAiB,YAAY,UAAU;;EAGxF,eAAIE;IACA,OAAOC,EAAezB,KAAK0B,aAAa;;EAG5C,WAAIC;IACA,OAAO3B,KAAKS,SAAS;;EAGzB,gBAAImB;IACA,IAAI5B,KAAK6B,MAAM,OAAO7B,KAAK6B;IAE3B,MAAMC,IAAU;MACZC,SAAS;MACTC,SAAS;MACTC,OAAO;MACPC,MAAM;;IAGV,OAAOJ,EAAQ9B,KAAKsB;;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E5B4B,EAAK;MAAAG,OAAM;OACPH,EAAM;MAAAC,MAAK","ignoreList":[]}
1
+ {"version":3,"names":["q2ToastCss","Q2Toast","constructor","hostRef","this","closeAnimationTimeMs","isClosing","isOpen","autoClose","closable","duration","hideIcon","showPersistent","size","type","onCloseClick","dismiss","disconnectedCallback","clearAutoClose","clearCloseTimer","componentDidLoad","startAutoClose","onAutoCloseChange","onShowPersistentChange","onSizeChange","ariaLive","resolvedType","ariaRole","hasIconSlot","hasSlotContent","hostElement","isLarge","resolvedIcon","icon","iconMap","success","warning","alert","info","shouldShowIcon","showFooter","hasActions","hasTime","time","srTypeLabel","labelMap","loc","default","toastClasses","classes","push","join","autoCloseTimer","clearTimeout","undefined","closeTimer","reason","toastEl","_a","shadowRoot","querySelector","height","Math","ceil","getBoundingClientRect","style","setProperty","setTimeout","tctClose","emit","renderIcon","h","name","render","class","role","tctTitle","onClick","message"],"sources":["src/components/q2-toast/q2-toast.scss?tag=q2-toast&encapsulation=shadow","src/components/q2-toast/q2-toast.tsx"],"sourcesContent":["@import '../../styles/host.scss';\n@import '../../styles/functions';\n@import './variables';\n\n:host {\n display: block;\n}\n\n\n.toast {\n --comp-accent-width: 1px;\n --comp-icon-size: 32px;\n --comp-icon-bg: transparent;\n --comp-text-color: #{var-list(--tct-toast-text, --tct-gray-2, --app-gray-2, #333333)};\n --comp-subtle-color: #{var-list(--tct-toast-subtle, --tct-gray-5, --app-gray-5, #6b6b6b)};\n\n\n --comp-color-success: #{var-list(--tct-stoplight-success, --const-stoplight-success, #0e8a00)};\n --comp-color-info: #{var-list(--tct-stoplight-info, --const-stoplight-info, #0079c1)};\n --comp-color-warning: #{var-list(--tct-stoplight-warning, --const-stoplight-warning, #c35500)};\n --comp-color-alert: #{var-list(--tct-stoplight-alert, --const-stoplight-alert, #d20a0a)};\n --comp-color-default: white;\n\n &.success {\n border-color: var(--comp-color-success);\n background-color: var(--comp-color-success);\n --comp-icon-bg: #e7f5e3;\n }\n\n &.info {\n border-color: var(--comp-color-info);\n background-color: var(--comp-color-info);\n --comp-icon-bg: #e6f1fb;\n }\n\n &.warning {\n border-color: var(--comp-color-warning);\n background-color: var(--comp-color-warning);\n --comp-icon-bg: #fff0df;\n }\n\n &.alert {\n border-color: var(--comp-color-alert);\n background-color: var(--comp-color-alert);\n --comp-icon-bg: #fde6e6;\n }\n\n display: flex;\n flex-direction: column;\n gap: var-list(--tct-toast-gap, --app-scale-2x, 10px);\n padding-left: 3px;\n border-radius: 5px;\n border: 1px solid transparent;\n background: var-list(--tct-toast-background, --tct-gray-14, --app-gray-l3, #ffffff);\n color: var(--comp-text-color);\n box-shadow: var-list(--tct-toast-shadow, --app-shadow-2, unquote('0 12px 24px rgb(0 0 0 / 0.12)'));\n overflow:hidden;\n\n &.is-closing{\n animation-name: shrink;\n animation-duration: 500ms;\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n transform-origin: top;\n overflow: hidden;\n }\n\n &.small {\n\n & .container{\n padding: var-list(--tct-toast-padding-small, --app-scale-2x, 10px);\n }\n }\n\n &.default {\n --comp-border-color: #{var-list(--tct-toast-border, --tct-gray-9, --app-gray-4, #d1d1d1)};\n --comp-icon-bg: #{var-list(--tct-toast-icon-bg, --tct-gray-12, --app-gray-l2, #f3f3f3)};\n border-color: var(--comp-border-color);\n }\n}\n\n.header {\n display: grid;\n grid-template-columns: var(--comp-icon-size) 1fr auto;\n gap: var-list(--tct-toast-gap, --app-scale-2x, 10px);\n align-items: center;\n}\n\n.toast.no-icon .header {\n grid-template-columns: 1fr auto;\n}\n\n.icon {\n width: var(--comp-icon-size);\n height: var(--comp-icon-size);\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: var(--comp-icon-bg);\n}\n\n.icon q2-icon {\n --tct-icon-size: calc(var(--comp-icon-size) - 6px);\n --tct-icon-stroke-primary: var(--comp-border-color);\n --tct-icon-stroke-secondary: var(--comp-border-color);\n --tct-icon-fill: var(--comp-border-color);\n}\n\n.title {\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n\n.title-text {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.content {\n color: var(--comp-subtle-color);\n display: -webkit-box;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.footer {\n margin-top: var-list(--tct-toast-footer-gap, --app-scale-2x, 10px);\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var-list(--tct-toast-footer-spacing, --app-scale-2x, 10px);\n color: var(--comp-subtle-color);\n font-size: 0.875rem;\n}\n\n.time {\n white-space: nowrap;\n}\n\n.actions {\n display: inline-flex;\n align-items: center;\n gap: var-list(--tct-toast-actions-gap, --app-scale-2x, 10px);\n}\n\n.close {\n border: none;\n background: transparent;\n padding: 2px;\n margin-left: var-list(--tct-toast-close-offset, --app-scale-1x, 5px);\n color: var(--comp-subtle-color);\n cursor: pointer;\n}\n\n.close q2-icon {\n --tct-icon-size: 18px;\n}\n\n.container {\n padding: var-list(--tct-toast-padding, --app-scale-3x, 15px);\n background-color: white;\n}\n\n@keyframes shrink {\n from {\n transform: scale(1);\n height: var(--toast-close-height, 0px);\n opacity: 1;\n }\n\n to {\n transform:scale(0);\n height: 0;\n opacity: 0;\n }\n}\n","import { Component, Prop, h, ComponentInterface, Event, EventEmitter, Element, State, Watch } from '@stencil/core';\nimport { hasSlotContent, loc } from 'src/utils';\n\n/**\n * @slot icon - Optional slot for a custom icon.\n * @slot title - Optional slot for the title content.\n * @slot - Optional slot for the message content.\n * @slot time - Optional slot for the time marker.\n * @slot actions - Optional slot for action links in the footer.\n */\n@Component({ tag: 'q2-toast', shadow: true, styleUrl: 'q2-toast.scss' })\nexport class Q2Toast implements ComponentInterface {\n // #region Own Properties\n\n private autoCloseTimer?: ReturnType<typeof setTimeout>;\n private closeAnimationTimeMs = 500;\n private closeTimer?: ReturnType<typeof setTimeout>;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n hostElement: HTMLElement;\n\n // #endregion\n // #region State Properties\n\n @State()\n isClosing: boolean = false;\n\n @State()\n isOpen: boolean = true;\n\n // #endregion\n // #region Public Property API\n\n /** Enables automatic dismissal after a duration. */\n @Prop({ reflect: true })\n autoClose: boolean = false;\n\n /** Controls whether the close button is displayed. */\n @Prop({ reflect: true })\n closable: boolean = true;\n\n /** The duration in milliseconds before auto dismissal. */\n @Prop({ reflect: true })\n duration: number = 7000;\n\n /** Manually hide the icon where it would otherwise appear. */\n @Prop({ reflect: true })\n hideIcon: boolean = false;\n\n /** Optional icon type to display. */\n @Prop()\n icon: string;\n\n /** Optional message for the toast body. */\n @Prop()\n message: string;\n\n /**\n * Convenience prop for persistent toasts. When true, sets autoClose to false and closable to true.\n * Aligns with acceptance criteria for showPersistent behavior.\n */\n @Prop({ reflect: true })\n showPersistent: boolean = false;\n\n /** Controls the visual size of the toast. */\n @Prop({ reflect: true })\n size: 'large' | 'small' = 'large';\n\n /** Optional title for the toast. */\n @Prop()\n tctTitle: string;\n\n /** Optional time marker for the footer. */\n @Prop()\n time: string;\n\n /** The visual status of the toast. */\n @Prop({ reflect: true })\n type: 'warning' | 'info' | 'alert' | 'success' | 'default' | 'error' = 'default';\n\n // #endregion\n // #region Events\n\n /** Emitted when the toast is dismissed. */\n @Event()\n tctClose: EventEmitter<{ reason: 'close' | 'timeout' }>;\n\n // #endregion\n // #region Component Lifecycle Events\n\n disconnectedCallback(): void {\n this.clearAutoClose();\n this.clearCloseTimer();\n }\n\n componentDidLoad(): void {\n this.startAutoClose();\n }\n\n // #endregion\n // #region Watchers\n\n @Watch('autoClose')\n @Watch('duration')\n onAutoCloseChange() {\n this.startAutoClose();\n }\n\n @Watch('showPersistent')\n onShowPersistentChange() {\n if (this.showPersistent) {\n this.autoClose = false;\n this.closable = true;\n } else {\n this.autoClose = true;\n }\n }\n\n @Watch('size')\n onSizeChange() {\n if (this.size === 'large') {\n this.showPersistent = true;\n }\n }\n\n // #endregion\n // #region Local Methods\n\n get ariaLive(): 'assertive' | 'polite' {\n // Alert/error/warning types should be assertive, others polite\n return this.resolvedType === 'alert' || this.resolvedType === 'warning' ? 'assertive' : 'polite';\n }\n\n get ariaRole(): 'alert' | 'status' {\n // Alert/error/warning types use \"alert\" role, others use \"status\"\n return this.resolvedType === 'alert' || this.resolvedType === 'warning' ? 'alert' : 'status';\n }\n\n get hasIconSlot(): boolean {\n return hasSlotContent(this.hostElement, 'icon');\n }\n\n get isLarge(): boolean {\n return this.size !== 'small';\n }\n\n get resolvedIcon(): string {\n if (this.icon) return this.icon;\n\n const iconMap = {\n success: 'success-filled',\n warning: 'warning-filled',\n alert: 'error-filled',\n info: 'info-filled',\n };\n\n return iconMap[this.resolvedType];\n }\n\n get resolvedType(): 'warning' | 'info' | 'alert' | 'success' | 'default' {\n return this.type === 'error' ? 'alert' : this.type;\n }\n\n get shouldShowIcon(): boolean {\n return (this.hasIconSlot || !!this.resolvedIcon) && !this.hideIcon;\n }\n\n get showFooter(): boolean {\n const hasActions = hasSlotContent(this.hostElement, 'actions');\n const hasTime = hasSlotContent(this.hostElement, 'time') || !!this.time;\n return this.isLarge && (hasActions || hasTime);\n }\n\n get srTypeLabel(): string {\n // Screen reader label for toast type\n const labelMap = {\n success: loc('tecton.element.toast.type.success'),\n warning: loc('tecton.element.toast.type.warning'),\n alert: loc('tecton.element.toast.type.alert'),\n info: loc('tecton.element.toast.type.info'),\n default: loc('tecton.element.toast.type.default'),\n };\n return labelMap[this.resolvedType] || '';\n }\n\n get toastClasses(): string {\n const classes = ['toast', this.resolvedType, this.size];\n classes.push(this.shouldShowIcon ? 'has-icon' : 'no-icon');\n if (this.isClosing) classes.push('is-closing');\n return classes.join(' ');\n }\n\n clearAutoClose() {\n if (!this.autoCloseTimer) return;\n clearTimeout(this.autoCloseTimer);\n this.autoCloseTimer = undefined;\n }\n\n clearCloseTimer() {\n if (!this.closeTimer) return;\n clearTimeout(this.closeTimer);\n this.closeTimer = undefined;\n }\n\n dismiss(reason: 'close' | 'timeout') {\n if (!this.isOpen || this.isClosing) return;\n this.clearAutoClose();\n this.clearCloseTimer();\n const toastEl = this.hostElement.shadowRoot?.querySelector('.toast') as HTMLElement | null;\n if (toastEl) {\n const height = Math.ceil(toastEl.getBoundingClientRect().height);\n this.hostElement.style.setProperty('--toast-close-height', `${height}px`);\n this.hostElement.style.setProperty('margin-bottom', '0');\n }\n this.isClosing = true;\n this.closeTimer = setTimeout(() => {\n this.isOpen = false;\n this.isClosing = false;\n this.tctClose.emit({ reason });\n }, this.closeAnimationTimeMs);\n }\n\n onCloseClick = () => {\n this.dismiss('close');\n };\n\n startAutoClose() {\n this.clearAutoClose();\n if (!this.autoClose || !this.duration || this.duration <= 0 || !this.isOpen) return;\n this.autoCloseTimer = setTimeout(() => {\n this.dismiss('timeout');\n }, this.duration);\n }\n\n // #endregion\n // #region Render Methods\n\n renderIcon() {\n if (this.hideIcon) return null;\n if (this.hasIconSlot) return <slot name=\"icon\"></slot>;\n if (!this.resolvedIcon) return null;\n return <q2-icon type={this.resolvedIcon} />;\n }\n\n render() {\n if (!this.isOpen) return null;\n\n return (\n <div\n class={this.toastClasses}\n role={this.ariaRole}\n aria-live={this.ariaLive}\n aria-atomic=\"true\"\n aria-relevant=\"all\"\n >\n {this.srTypeLabel && <span class=\"sr\">{this.srTypeLabel}</span>}\n <div class=\"container\">\n <div class=\"header\">\n {this.shouldShowIcon && <div class=\"icon\">{this.renderIcon()}</div>}\n <div class=\"title\">\n <span class=\"title-text\">\n <slot name=\"title\">{this.tctTitle}</slot>\n </span>\n </div>\n {this.closable && (\n <button\n class=\"close\"\n type=\"button\"\n aria-label={loc('tecton.element.toast.close')}\n onClick={this.onCloseClick}\n >\n <q2-icon type=\"close\" />\n </button>\n )}\n </div>\n {this.isLarge && (\n <div class=\"content\">\n {this.message}\n <slot />\n </div>\n )}\n {this.showFooter && (\n <div class=\"footer\">\n <div class=\"time\">\n <slot name=\"time\">{this.time}</slot>\n </div>\n <div class=\"actions\">\n <sl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@@
1
- {"version":3,"file":"q2-tooltip.entry.esm.js","sources":["src/components/q2-tooltip/q2-tooltip.scss?tag=q2-tooltip&encapsulation=shadow","src/components/q2-tooltip/q2-tooltip.tsx"],"sourcesContent":["@import '../../styles/host.scss';\n@import '../../styles/functions';\n\n:host {\n display: inline-block;\n}\n\n:host([block]) {\n display: block;\n}\n\n.tooltip {\n --comp-background: #{var-list(\n --tct-tooltip-background,\n var-prefixer(tooltip-background-color),\n --t-top-a3,\n #0d0d0dd9\n )};\n --comp-offset-default: calc(var(--app-scale-1x, 5px) * -1);\n --comp-offset: #{var-list(var-prefixer(tooltip-offset), --comp-offset-default)};\n --comp-position: #{var-list(var-prefixer(tooltip-position), --app-scale-1x, 5px)};\n --comp-body-offset-default: calc(var(--app-scale-3x, 15px) * -1);\n --comp-body-offset: #{var-list(var-prefixer(tooltip-body-offset), --comp-body-offset-default)};\n --comp-duration: #{var-list(var-prefixer(tooltip-transition-duration), --app-duration-1, 0.2s)};\n --comp-visible-duration: #{var-list(var-prefixer(tooltip-transition-visible-duration), 2s)};\n --comp-delay: #{var-list(var-prefixer(tooltip-transition-delay), 0s)};\n\n display: inline-block;\n position: relative;\n\n &:hover {\n --comp-delay: #{var-list(var-prefixer(tooltip-transition-delay), 1s)};\n\n :host([immediate]:not([immediate='false'])) & {\n --comp-delay: 0s;\n }\n }\n\n // Tooltip arrow\n &:before {\n position: absolute;\n z-index: 2;\n width: 0;\n height: 0;\n color: var(--comp-background);\n pointer-events: none;\n content: '';\n border: var-list(var-prefixer(tooltip-arrow-size), --app-scale-1x, 5px) solid transparent;\n }\n\n // Tooltip bubble\n &:after {\n --comp-padding: #{var-list(--app-scale-1x, 5px)} 8px;\n\n position: absolute;\n z-index: 1;\n padding: var-list(var-prefixer(tooltip-padding), --comp-padding);\n font-weight: var-list(var-prefixer(tooltip-font-weight), 600);\n font-size: var-list(var-prefixer(tooltip-font-size), --app-font-size-small, 12px);\n line-height: 1.5;\n color: var-list(var-prefixer(tooltip-color), --app-white, #ffffff);\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n word-wrap: break-word;\n white-space: pre;\n pointer-events: none;\n content: attr(data-label);\n background: var(--comp-background);\n border-radius: var-list(var-prefixer(tooltip-border-radius), --app-border-radius-1, 4px);\n }\n\n &:before,\n &:after {\n display: inline-block;\n visibility: hidden;\n opacity: 0;\n transition: all var(--comp-duration) ease-in-out var(--comp-delay);\n transition-property: visibility, opacity;\n }\n\n :host([block]) & {\n display: block;\n }\n\n :host([persist-on-hover]:not([persist-on-hover='false'])) & {\n &:before,\n &:after {\n pointer-events: auto;\n }\n }\n\n // When to show the tooltip\n &:not(.dismissed):hover,\n &:not(.dismissed).has-keyboard-focus:focus-within,\n :host([persistent]:not([persistent='false'])) &:not(.dismissed) {\n &:before,\n &:after {\n text-decoration: none;\n visibility: visible;\n opacity: 1;\n }\n }\n\n @keyframes tooltippedFade {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n &.has-generic-focus:focus-within {\n &:before,\n &:after {\n visibility: visible;\n opacity: 0;\n transition: none;\n animation-timing-function: ease-in-out;\n animation-fill-mode: forwards;\n animation-name: tooltippedFade, tooltippedFade;\n animation-direction: normal, reverse;\n animation-duration: var(--comp-duration);\n animation-delay: 0ms, calc(var(--comp-visible-duration) + var(--comp-duration));\n }\n }\n &.has-generic-focus-out {\n &:before,\n &:after {\n visibility: visible;\n opacity: 0;\n transition: none;\n animation-timing-function: ease-in-out;\n animation-fill-mode: forwards;\n animation-name: tooltippedFade;\n animation-direction: reverse;\n animation-duration: var(--comp-duration);\n }\n }\n\n :host([multiline]) & {\n &:after {\n width: max-content;\n max-width: var-list(var-prefixer(tooltip-max-width), 200px);\n word-break: break-word;\n word-wrap: normal;\n white-space: pre-line;\n border-collapse: separate;\n text-align: left;\n }\n\n :host([position='s']) &,\n :host([position='n']) & {\n &:after {\n right: auto;\n left: 50%;\n transform: translateX(-50%);\n }\n }\n\n :host([position='w']) &,\n :host([position='e']) & {\n &:after {\n right: 100%;\n }\n }\n\n &:hover,\n &:active,\n &:focus {\n &:after {\n display: table-cell;\n }\n }\n\n &:focus-within {\n &:after {\n display: table-cell;\n }\n }\n }\n\n // Below\n :host([position='s']) &,\n :host([position='se']) &,\n :host([position='sw']) & {\n &:after {\n top: 100%;\n right: 50%;\n margin-top: var(--comp-position);\n }\n\n &:before {\n top: auto;\n right: 50%;\n bottom: var(--comp-offset);\n margin-right: var(--comp-offset);\n border-bottom-color: var(--comp-background);\n }\n }\n\n // Above\n :host([position='n']) &,\n :host([position='ne']) &,\n :host([position='nw']) & {\n &:after {\n right: 50%;\n bottom: 100%;\n margin-bottom: var(--comp-position);\n }\n\n &:before {\n top: var(--comp-offset);\n right: 50%;\n bottom: auto;\n margin-right: var(--comp-offset);\n border-top-color: var(--comp-background);\n }\n }\n\n :host([position='se']) &,\n :host([position='ne']) & {\n &:after {\n right: auto;\n left: 50%;\n margin-left: var(--comp-body-offset);\n margin-right: var(--comp-body-offset);\n transform: #{translateX(#{var-list(--comp-offset-translate, 0)})};\n }\n }\n\n :host([position='sw']) &,\n :host([position='nw']) & {\n &:after {\n margin-right: var(--comp-body-offset);\n margin-left: var(--comp-body-offset);\n right: 50%;\n transform: #{translateX(#{var-list(--comp-offset-translate, 0)})};\n }\n }\n\n // Centered\n :host([position='s']) &,\n :host([position='n']) & {\n &:after {\n transform: #{translateX(calc(50% + #{var-list(--comp-offset-translate, 0)}))};\n }\n }\n\n // Left side\n :host([position='w']) & {\n &:after {\n right: 100%;\n bottom: 50%;\n margin-right: var(--comp-position);\n transform: translateY(50%);\n }\n\n &:before {\n top: 50%;\n bottom: 50%;\n left: var(--comp-offset);\n margin-top: var(--comp-offset);\n border-left-color: var(--comp-background);\n }\n }\n\n // Right side\n :host([position='e']) & {\n &:after {\n bottom: 50%;\n left: 100%;\n margin-left: var(--comp-position);\n transform: translateY(50%);\n }\n\n &:before {\n top: 50%;\n right: var(--comp-offset);\n bottom: 50%;\n margin-top: var(--comp-offset);\n border-right-color: var(--comp-background);\n }\n }\n}\n","import { Component, Prop, h, ComponentInterface, Element, Listen, State, Watch } from '@stencil/core';\nimport { isEventFromElement, overrideFocus } from 'src/utils';\n\n/**\n * @name Tooltip\n * @category Feedback\n * @summary Use for brief hints or explanations shown on hover or focus.\n */\n@Component({ tag: 'q2-tooltip', shadow: true, styleUrl: 'q2-tooltip.scss' })\nexport class Q2Tooltip implements ComponentInterface {\n // #region Own Properties\n\n animationEndCount = 0;\n tooltipElement: HTMLDivElement;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n hostElement: HTMLElement;\n\n // #endregion\n // #region State Properties\n\n @State()\n focusClass: 'has-keyboard-focus' | 'has-generic-focus' | 'has-generic-focus-out';\n\n @State()\n persistOnHoverDismissed: boolean;\n\n // #endregion\n // #region Public Property API\n\n /** Displays the element as a block, making it take up the full width of its container. */\n @Prop({ reflect: true })\n block: boolean;\n\n /**\n * Makes the component focusable, thereby putting it in the tab order of the keyboard.\n * @warning\n * This is only meant to be used when the `q2-tooltip` is wrapped around an element that is not focusable (e.g., icons, static text, badges, etc.).\n */\n @Prop({ reflect: true })\n focusable: boolean = false;\n\n /** Whether to show the tooltip immediately upon hover. */\n @Prop({ reflect: true })\n immediate: boolean;\n\n /** text that is displayed when the tooltip is activated. */\n @Prop({ reflect: true })\n label: string;\n\n /** Enables the use of multi-line tooltips with a default `max-width` of `200px`. */\n @Prop({ reflect: true })\n multiline: boolean;\n\n /** Displays the tooltip persistently. */\n @Prop({ reflect: true })\n persistent: boolean;\n\n /**\n * Allows the tooltip bubble itself to be hovered.\n * When enabled, the tooltip remains visible while moving between the trigger and the tooltip bubble.\n */\n @Prop({ reflect: true })\n persistOnHover: boolean;\n\n /** The position of the tooltip based on [cardinal and intercardinal directions](https://en.wikipedia.org/wiki/Cardinal_direction). */\n @Prop({ reflect: true })\n position: 'n' | 's' | 'e' | 'w' | 'nw' | 'ne' | 'sw' | 'se' = 'n';\n\n // #endregion\n // #region Component Lifecycle Events\n\n disconnectedCallback(): void {\n this.clearTooltipOnChildren();\n }\n\n componentDidLoad(): void {\n overrideFocus(this.hostElement);\n this.propagateTooltip();\n if (this.persistent) this.adjustSide();\n }\n\n // #endregion\n // #region Listeners\n\n @Listen('focus', { capture: true })\n focusCaptureHandler() {\n this.checkFocusClass();\n }\n\n @Listen('focus')\n focusHandler(event) {\n if (!isEventFromElement(event, this.hostElement)) return;\n if (!this.focusable) return;\n this.tooltipElement.focus();\n }\n\n @Listen('focusout')\n focusOutHandler() {\n if (this.shouldBeVisible) return;\n if (this.focusClass === 'has-generic-focus') this.focusClass = 'has-generic-focus-out';\n else this.focusClass = null;\n }\n\n // Escape must be handled on `document` so it still dismisses when the tooltip is visible by hover only and focus is not inside the tooltip host.\n @Listen('keydown', { target: 'document' })\n keyDownDocumentHandler(event: KeyboardEvent) {\n if (!['Esc', 'Escape'].includes(event.key)) return;\n if (!this.shouldBeVisible) return;\n if (this.persistOnHover) this.persistOnHoverDismissed = true;\n this.hideTooltip();\n }\n\n @Listen('mouseenter')\n mouseEnterHandler() {\n this.persistOnHoverDismissed = false;\n }\n\n @Listen('mouseover')\n @Listen('mouseclick')\n handleMouseOver() {\n this.adjustSide();\n }\n\n // #endregion\n // #region Watchers\n\n @Watch('label')\n labelChanged() {\n this.propagateTooltip();\n }\n\n // #endregion\n // #region Local Methods\n\n get shouldBeVisible() {\n if (this.persistent) return true;\n return this.hostElement.matches(':hover, :focus-within') && !this.persistOnHoverDismissed;\n }\n\n adjustSide() {\n const { left: hostLeft, right: hostRight, width: hostWidth } = this.hostElement.getBoundingClientRect();\n if (!hostLeft || !hostWidth) return;\n\n const { width, paddingLeft, paddingRight } = window.getComputedStyle(this.tooltipElement, '::after');\n\n const tooltipWidth =\n Number(width.replace(/[px]/g, '')) +\n Number(paddingLeft.replace(/[px]/g, '')) +\n Number(paddingRight.replace(/[px]/g, ''));\n const extraMargin = ['se', 'sw', 'ne', 'nw'].includes(this.position) ? 0 : 15;\n\n const distanceLeft = hostLeft + hostWidth / 2;\n const distanceRight = window.innerWidth - hostRight + +hostWidth / 2;\n\n if (['ne', 'se'].includes(this.position)) {\n if (tooltipWidth > distanceRight) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `-${Math.round(tooltipWidth - distanceRight + extraMargin)}px`\n );\n }\n } else if (['nw', 'sw'].includes(this.position)) {\n if (tooltipWidth > distanceLeft) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `${Math.round(tooltipWidth - distanceLeft + extraMargin)}px`\n );\n }\n } else if (['n', 's'].includes(this.position)) {\n if (tooltipWidth / 2 > distanceLeft) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `${Math.round(tooltipWidth / 2 - distanceLeft + extraMargin)}px`\n );\n } else if (tooltipWidth / 2 > distanceRight) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `-${Math.round(tooltipWidth / 2 - distanceRight + extraMargin)}px`\n );\n } else {\n this.tooltipElement.style.setProperty('--comp-offset-translate', `0px`);\n }\n }\n }\n\n animationEndHandler() {\n this.animationEndCount = this.animationEndCount + 1;\n const { focusClass, animationEndCount } = this;\n\n // animationEnd is fired once for :before and once for :after pseudo elements\n // there are multiple animations defined for .has-generic-focus\n // so we need to wait for all of them to finish before we can remove the class\n if (focusClass === 'has-generic-focus-out' || (focusClass === 'has-generic-focus' && animationEndCount === 4)) {\n this.focusClass = null;\n this.animationEndCount = 0;\n }\n }\n\n checkFocusClass() {\n if (!this.shouldBeVisible) return;\n const isKeyboardFocus = !!this.findFocusVisibleElement(document.activeElement);\n this.focusClass = isKeyboardFocus ? 'has-keyboard-focus' : 'has-generic-focus';\n if (isKeyboardFocus) return;\n }\n\n clearTooltipOnChildren() {\n const children = Array.from(this.hostElement.children);\n for (const child of children) {\n if ('_tooltip' in child) {\n (child as HTMLElement & { _tooltip: string })._tooltip = undefined;\n }\n }\n }\n\n findFocusVisibleElement(element: Element) {\n if (!element) return;\n if (element.shadowRoot) element = this.findFocusVisibleElement(element.shadowRoot.activeElement);\n return element?.matches(':focus-visible') ? element : null;\n }\n\n hideTooltip() {\n if (this.focusClass === 'has-generic-focus') this.focusClass = 'has-generic-focus-out';\n else this.focusClass = null;\n }\n\n propagateTooltip() {\n if (this.focusable) return;\n const children = Array.from(this.hostElement.children);\n for (const child of children) {\n if ('_tooltip' in child) {\n (child as HTMLElement & { _tooltip: string })._tooltip = this.label || undefined;\n }\n }\n }\n\n // #endregion\n // #region Render Methods\n\n render() {\n const { focusClass } = this;\n const classes = ['tooltip'];\n if (focusClass) classes.push(focusClass);\n if (this.persistOnHoverDismissed) classes.push('dismissed');\n\n return this.label ? (\n <div\n tabindex={this.focusable ? 0 : undefined}\n ref={el => (this.tooltipElement = el)}\n class={classes.join(' ')}\n aria-label={this.focusable ? this.label : undefined}\n data-label={this.label}\n onAnimationEnd={() => this.animationEndHandler()}\n role={this.focusable ? 'tooltip' : undefined}\n test-id=\"tooltipContainer\"\n >\n <slot onSlotchange={() => this.propagateTooltip()} />\n </div>\n ) : (\n <slot onSlotchange={() => this.propagateTooltip()} />\n );\n }\n\n // #endregion\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG,q0NAAq0N;;MCS70N,SAAS,GAAA,MAAA;AADtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAII,QAAA,IAAiB,CAAA,iBAAA,GAAG,CAAC;AAyBrB;;;;AAIG;AAEH,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK;;AA2B1B,QAAA,IAAQ,CAAA,QAAA,GAAsD,GAAG;AAqMpE;;;IAhMG,oBAAoB,GAAA;QAChB,IAAI,CAAC,sBAAsB,EAAE;;IAGjC,gBAAgB,GAAA;AACZ,QAAA,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;QAC/B,IAAI,CAAC,gBAAgB,EAAE;QACvB,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,UAAU,EAAE;;;;IAO1C,mBAAmB,GAAA;QACf,IA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;;IAQ5F,MAAM,GAAA;AACF,QAAA,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI;AAC3B,QAAA,MAAM,OAAO,GAAG,CAAC,SAAS,CAAC;AAC3B,QAAA,IAAI,UAAU;AAAE,YAAA,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;QACxC,IAAI,IAAI,CAAC,uBAAuB;AAAE,YAAA,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;AAE3D,QAAA,OAAO,IAAI,CAAC,KAAK,IACb,CACI,CAAA,KAAA,EAAA,EAAA,QAAQ,EAAE,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,SAAS,EACxC,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,EACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAA,YAAA,EACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,EACvC,YAAA,EAAA,IAAI,CAAC,KAAK,EACtB,cAAc,EAAE,MAAM,IAAI,CAAC,mBAAmB,EAAE,EAChD,IAAI,EAAE,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,aACpC,kBAAkB,EAAA,EAE1B,CAAA,CAAA,MAAA,EAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,EAAA,CAAI,CACnD,KAEN,CAAM,CAAA,MAAA,EAAA,EAAA,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,EAAI,CAAA,CACxD;;;;;;;;;;;"}
1
+ {"version":3,"file":"q2-tooltip.entry.esm.js","sources":["src/components/q2-tooltip/q2-tooltip.scss?tag=q2-tooltip&encapsulation=shadow","src/components/q2-tooltip/q2-tooltip.tsx"],"sourcesContent":["@import '../../styles/host.scss';\n@import '../../styles/functions';\n@import './variables';\n\n:host {\n display: inline-block;\n}\n\n:host([block]) {\n display: block;\n}\n\n.tooltip {\n --comp-background: #{var-list(\n --tct-tooltip-background,\n var-prefixer(tooltip-background-color),\n --t-top-a3,\n #0d0d0dd9\n )};\n --comp-offset-default: calc(var(--app-scale-1x, 5px) * -1);\n --comp-offset: #{var-list(var-prefixer(tooltip-offset), --comp-offset-default)};\n --comp-position: #{var-list(var-prefixer(tooltip-position), --app-scale-1x, 5px)};\n --comp-body-offset-default: calc(var(--app-scale-3x, 15px) * -1);\n --comp-body-offset: #{var-list(var-prefixer(tooltip-body-offset), --comp-body-offset-default)};\n --comp-duration: #{var-list(var-prefixer(tooltip-transition-duration), --app-duration-1, 0.2s)};\n --comp-visible-duration: #{var-list(var-prefixer(tooltip-transition-visible-duration), 2s)};\n --comp-delay: #{var-list(var-prefixer(tooltip-transition-delay), 0s)};\n\n display: inline-block;\n position: relative;\n\n &:hover {\n --comp-delay: #{var-list(var-prefixer(tooltip-transition-delay), 1s)};\n\n :host([immediate]:not([immediate='false'])) & {\n --comp-delay: 0s;\n }\n }\n\n // Tooltip arrow\n &:before {\n position: absolute;\n z-index: 2;\n width: 0;\n height: 0;\n color: var(--comp-background);\n pointer-events: none;\n content: '';\n border: var-list(var-prefixer(tooltip-arrow-size), --app-scale-1x, 5px) solid transparent;\n }\n\n // Tooltip bubble\n &:after {\n --comp-padding: #{var-list(--app-scale-1x, 5px)} 8px;\n\n position: absolute;\n z-index: 1;\n padding: var-list(var-prefixer(tooltip-padding), --comp-padding);\n font-weight: var-list(var-prefixer(tooltip-font-weight), 600);\n font-size: var-list(var-prefixer(tooltip-font-size), --app-font-size-small, 12px);\n line-height: 1.5;\n color: var-list(var-prefixer(tooltip-color), --app-white, #ffffff);\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n word-wrap: break-word;\n white-space: pre;\n pointer-events: none;\n content: attr(data-label);\n background: var(--comp-background);\n border-radius: var-list(var-prefixer(tooltip-border-radius), --app-border-radius-1, 4px);\n }\n\n &:before,\n &:after {\n display: inline-block;\n visibility: hidden;\n opacity: 0;\n transition: all var(--comp-duration) ease-in-out var(--comp-delay);\n transition-property: visibility, opacity;\n }\n\n :host([block]) & {\n display: block;\n }\n\n :host([persist-on-hover]:not([persist-on-hover='false'])) & {\n &:before,\n &:after {\n pointer-events: auto;\n }\n }\n\n // When to show the tooltip\n &:not(.dismissed):hover,\n &:not(.dismissed).has-keyboard-focus:focus-within,\n :host([persistent]:not([persistent='false'])) &:not(.dismissed) {\n &:before,\n &:after {\n text-decoration: none;\n visibility: visible;\n opacity: 1;\n }\n }\n\n @keyframes tooltippedFade {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n &.has-generic-focus:focus-within {\n &:before,\n &:after {\n visibility: visible;\n opacity: 0;\n transition: none;\n animation-timing-function: ease-in-out;\n animation-fill-mode: forwards;\n animation-name: tooltippedFade, tooltippedFade;\n animation-direction: normal, reverse;\n animation-duration: var(--comp-duration);\n animation-delay: 0ms, calc(var(--comp-visible-duration) + var(--comp-duration));\n }\n }\n &.has-generic-focus:hover:focus-within {\n &:before,\n &:after {\n animation-name: tooltippedFade;\n animation-direction: normal;\n animation-delay: 0ms;\n }\n }\n :host([persist-on-hover]:not([persist-on-hover='false'])) &.has-generic-focus:focus-within {\n &:before,\n &:after {\n animation-name: tooltippedFade;\n animation-direction: normal;\n animation-delay: 0ms;\n }\n }\n &.has-generic-focus-out {\n &:before,\n &:after {\n visibility: visible;\n opacity: 0;\n transition: none;\n animation-timing-function: ease-in-out;\n animation-fill-mode: forwards;\n animation-name: tooltippedFade;\n animation-direction: reverse;\n animation-duration: var(--comp-duration);\n }\n }\n &.dismissed {\n &:before,\n &:after {\n visibility: hidden;\n opacity: 0;\n animation-name: none;\n }\n }\n\n :host([multiline]) & {\n &:after {\n width: max-content;\n max-width: var-list(var-prefixer(tooltip-max-width), 200px);\n word-break: break-word;\n word-wrap: normal;\n white-space: pre-line;\n border-collapse: separate;\n text-align: left;\n }\n\n :host([position='s']) &,\n :host([position='n']) & {\n &:after {\n right: auto;\n left: 50%;\n transform: translateX(-50%);\n }\n }\n\n :host([position='w']) &,\n :host([position='e']) & {\n &:after {\n right: 100%;\n }\n }\n\n &:hover,\n &:active,\n &:focus {\n &:after {\n display: table-cell;\n }\n }\n\n &:focus-within {\n &:after {\n display: table-cell;\n }\n }\n }\n\n // Below\n :host([position='s']) &,\n :host([position='se']) &,\n :host([position='sw']) & {\n &:after {\n top: 100%;\n right: 50%;\n margin-top: var(--comp-position);\n }\n\n &:before {\n top: auto;\n right: 50%;\n bottom: var(--comp-offset);\n margin-right: var(--comp-offset);\n border-bottom-color: var(--comp-background);\n }\n }\n\n // Above\n :host([position='n']) &,\n :host([position='ne']) &,\n :host([position='nw']) & {\n &:after {\n right: 50%;\n bottom: 100%;\n margin-bottom: var(--comp-position);\n }\n\n &:before {\n top: var(--comp-offset);\n right: 50%;\n bottom: auto;\n margin-right: var(--comp-offset);\n border-top-color: var(--comp-background);\n }\n }\n\n :host([position='se']) &,\n :host([position='ne']) & {\n &:after {\n right: auto;\n left: 50%;\n margin-left: var(--comp-body-offset);\n margin-right: var(--comp-body-offset);\n transform: #{translateX(#{var-list(--comp-offset-translate, 0)})};\n }\n }\n\n :host([position='sw']) &,\n :host([position='nw']) & {\n &:after {\n margin-right: var(--comp-body-offset);\n margin-left: var(--comp-body-offset);\n right: 50%;\n transform: #{translateX(#{var-list(--comp-offset-translate, 0)})};\n }\n }\n\n // Centered\n :host([position='s']) &,\n :host([position='n']) & {\n &:after {\n transform: #{translateX(calc(50% + #{var-list(--comp-offset-translate, 0)}))};\n }\n }\n\n // Left side\n :host([position='w']) & {\n &:after {\n right: 100%;\n bottom: 50%;\n margin-right: var(--comp-position);\n transform: translateY(50%);\n }\n\n &:before {\n top: 50%;\n bottom: 50%;\n left: var(--comp-offset);\n margin-top: var(--comp-offset);\n border-left-color: var(--comp-background);\n }\n }\n\n // Right side\n :host([position='e']) & {\n &:after {\n bottom: 50%;\n left: 100%;\n margin-left: var(--comp-position);\n transform: translateY(50%);\n }\n\n &:before {\n top: 50%;\n right: var(--comp-offset);\n bottom: 50%;\n margin-top: var(--comp-offset);\n border-right-color: var(--comp-background);\n }\n }\n}\n","import { Component, Prop, h, ComponentInterface, Element, Listen, State, Watch } from '@stencil/core';\nimport { isEventFromElement, overrideFocus } from 'src/utils';\n\n/**\n * @name Tooltip\n * @category Feedback\n * @summary Use for brief hints or explanations shown on hover or focus.\n */\n@Component({ tag: 'q2-tooltip', shadow: true, styleUrl: 'q2-tooltip.scss' })\nexport class Q2Tooltip implements ComponentInterface {\n // #region Own Properties\n\n animationEndCount = 0;\n cachedTooltipHeight: number | null = null;\n tooltipElement: HTMLDivElement;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n hostElement: HTMLElement;\n\n // #endregion\n // #region State Properties\n\n @State()\n focusClass: 'has-keyboard-focus' | 'has-generic-focus' | 'has-generic-focus-out';\n\n @State()\n persistOnHoverDismissed: boolean;\n\n // #endregion\n // #region Public Property API\n\n /** Displays the element as a block, making it take up the full width of its container. */\n @Prop({ reflect: true })\n block: boolean;\n\n /**\n * Makes the component focusable, thereby putting it in the tab order of the keyboard.\n * @warning\n * This is only meant to be used when the `q2-tooltip` is wrapped around an element that is not focusable (e.g., icons, static text, badges, etc.).\n */\n @Prop({ reflect: true })\n focusable: boolean = false;\n\n /** Whether to show the tooltip immediately upon hover. */\n @Prop({ reflect: true })\n immediate: boolean;\n\n /** text that is displayed when the tooltip is activated. */\n @Prop({ reflect: true })\n label: string;\n\n /** Enables the use of multi-line tooltips with a default `max-width` of `200px`. */\n @Prop({ reflect: true })\n multiline: boolean;\n\n /** Displays the tooltip persistently. */\n @Prop({ reflect: true })\n persistent: boolean;\n\n /**\n * Allows the tooltip bubble itself to be hovered.\n * When enabled, the tooltip remains visible while moving between the trigger and the tooltip bubble.\n */\n @Prop({ reflect: true })\n persistOnHover: boolean;\n\n /** The position of the tooltip based on [cardinal and intercardinal directions](https://en.wikipedia.org/wiki/Cardinal_direction). */\n @Prop({ reflect: true })\n position: 'n' | 's' | 'e' | 'w' | 'nw' | 'ne' | 'sw' | 'se' = 'n';\n\n // #endregion\n // #region Component Lifecycle Events\n\n disconnectedCallback(): void {\n this.clearTooltipOnChildren();\n }\n\n componentDidLoad(): void {\n overrideFocus(this.hostElement);\n this.propagateTooltip();\n if (this.persistent) this.adjustSide();\n }\n\n // #endregion\n // #region Listeners\n\n @Listen('click', { target: 'document' })\n @Listen('touchstart', { target: 'document' })\n documentPointerHandler(event: Event) {\n if (!this.focusClass || this.persistent) return;\n const isEventInsideTooltip =\n event.composedPath?.().includes(this.hostElement) ||\n (event.target instanceof Node && this.hostElement.contains(event.target));\n if (isEventInsideTooltip) {\n this.persistOnHoverDismissed = false;\n return;\n }\n this.persistOnHoverDismissed = true;\n this.hideTooltip();\n }\n\n @Listen('focus', { capture: true })\n focusCaptureHandler() {\n this.checkFocusClass();\n }\n\n @Listen('focus')\n focusHandler(event) {\n if (!isEventFromElement(event, this.hostElement)) return;\n if (!this.focusable) return;\n this.tooltipElement.focus();\n }\n\n @Listen('focusout')\n focusOutHandler() {\n if (this.shouldBeVisible) return;\n if (this.focusClass === 'has-generic-focus') this.focusClass = 'has-generic-focus-out';\n else this.focusClass = null;\n }\n\n // Escape must be handled on `document` so it still dismisses when the tooltip is visible by hover only and focus is not inside the tooltip host.\n @Listen('keydown', { target: 'document' })\n keyDownDocumentHandler(event: KeyboardEvent) {\n if (!['Esc', 'Escape'].includes(event.key)) return;\n if (!this.shouldBeVisible) return;\n if (this.persistOnHover) this.persistOnHoverDismissed = true;\n this.hideTooltip();\n }\n\n @Listen('mouseenter')\n mouseEnterHandler() {\n this.persistOnHoverDismissed = false;\n }\n\n @Listen('mouseover')\n @Listen('click')\n handleMouseOver() {\n this.adjustSide();\n }\n\n // #endregion\n // #region Watchers\n\n @Watch('label')\n labelChanged() {\n this.propagateTooltip();\n this.cachedTooltipHeight = null; // Invalidate cache\n if (this.shouldBeVisible || this.persistent) {\n this.adjustSide();\n }\n }\n\n // #endregion\n // #region Local Methods\n\n get shouldBeVisible() {\n if (this.persistent) return true;\n return this.hostElement.matches(':hover, :focus-within') && !this.persistOnHoverDismissed;\n }\n\n adjustSide() {\n const {\n left: hostLeft,\n right: hostRight,\n width: hostWidth,\n top: hostTop,\n bottom: hostBottom,\n } = this.hostElement.getBoundingClientRect();\n if (!hostLeft || !hostWidth) return;\n\n // Find the constraining container (modal, dialog, or any overflow:hidden ancestor)\n const constrainingContainer = this.findConstrainingContainer();\n const containerRect = constrainingContainer.getBoundingClientRect();\n\n const { width, paddingLeft, paddingRight } = window.getComputedStyle(this.tooltipElement, '::after');\n\n const tooltipWidth =\n Number(width.replace(/[px]/g, '')) +\n Number(paddingLeft.replace(/[px]/g, '')) +\n Number(paddingRight.replace(/[px]/g, ''));\n const extraMargin = ['se', 'sw', 'ne', 'nw'].includes(this.position) ? 0 : 15;\n\n // Calculate available space relative to constraining container\n const distanceLeft = hostLeft - containerRect.left + hostWidth / 2;\n const distanceRight = containerRect.right - hostRight + hostWidth / 2;\n const distanceTop = hostTop - containerRect.top;\n const distanceBottom = containerRect.bottom - hostBottom;\n\n // Calculate tooltip height dynamically\n const tooltipHeight = this.calculateTooltipHeight();\n\n // Check if we need to flip vertical position\n if (['n', 'ne', 'nw'].includes(this.position) && distanceTop < tooltipHeight) {\n // Not enough space above, try flipping to bottom\n if (distanceBottom >= tooltipHeight) {\n this.position = this.position.replace('n', 's') as any;\n }\n } else if (['s', 'se', 'sw'].includes(this.position) && distanceBottom < tooltipHeight) {\n // Not enough space below, try flipping to top\n if (distanceTop >= tooltipHeight) {\n this.position = this.position.replace('s', 'n') as any;\n }\n }\n\n // Adjust horizontal positioning\n if (['ne', 'se'].includes(this.position)) {\n if (tooltipWidth > distanceRight) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `-${Math.round(tooltipWidth - distanceRight + extraMargin)}px`\n );\n }\n } else if (['nw', 'sw'].includes(this.position)) {\n if (tooltipWidth > distanceLeft) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `${Math.round(tooltipWidth - distanceLeft + extraMargin)}px`\n );\n }\n } else if (['n', 's'].includes(this.position)) {\n if (tooltipWidth / 2 > distanceLeft) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `${Math.round(tooltipWidth / 2 - distanceLeft + extraMargin)}px`\n );\n } else if (tooltipWidth / 2 > distanceRight) {\n this.tooltipElement.style.setProperty(\n '--comp-offset-translate',\n `-${Math.round(tooltipWidth / 2 - distanceRight + extraMargin)}px`\n );\n } else {\n this.tooltipElement.style.setProperty('--comp-offset-translate', `0px`);\n }\n }\n\n // Handle east/west positioning\n if (this.position === 'e' && tooltipWidth > distanceRight) {\n // Not enough space on right, flip to left\n if (distanceLeft >= tooltipWidth) {\n this.position = 'w';\n }\n } else if (this.position === 'w' && tooltipWidth > distanceLeft) {\n // Not enough space on left, flip to right\n if (distanceRight >= tooltipWidth) {\n this.position = 'e';\n }\n }\n }\n\n animationEndHandler() {\n this.animationEndCount = this.animationEndCount + 1;\n const { focusClass, animationEndCount } = this;\n\n // animationEnd is fired once for :before and once for :after pseudo elements\n // there are multiple animations defined for .has-generic-focus\n // so we need to wait for all of them to finish before we can remove the class\n if (focusClass === 'has-generic-focus-out' || (focusClass === 'has-generic-focus' && animationEndCount === 4)) {\n this.focusClass = null;\n this.animationEndCount = 0;\n }\n }\n\n calculateTooltipHeight(): number {\n if (this.cachedTooltipHeight !== null) {\n return this.cachedTooltipHeight;\n }\n\n try {\n const styles = window.getComputedStyle(this.tooltipElement, '::after');\n\n // Try to get computed height first\n const computedHeight = styles.height;\n if (computedHeight && computedHeight !== 'auto' && computedHeight !== '0px') {\n const height = Number(computedHeight.replace(/px/g, ''));\n const paddingTop = Number(styles.paddingTop.replace(/px/g, ''));\n const paddingBottom = Number(styles.paddingBottom.replace(/px/g, ''));\n this.cachedTooltipHeight = height + paddingTop + paddingBottom;\n return this.cachedTooltipHeight;\n }\n\n // Fallback: Calculate based on text and wrapping\n const width = Number(styles.width.replace(/px/g, ''));\n const paddingLeft = Number(styles.paddingLeft.replace(/px/g, ''));\n const paddingRight = Number(styles.paddingRight.replace(/px/g, ''));\n const paddingTop = Number(styles.paddingTop.replace(/px/g, ''));\n const paddingBottom = Number(styles.paddingBottom.replace(/px/g, ''));\n\n const fontSize = Number(styles.fontSize.replace(/px/g, ''));\n const lineHeightStr = styles.lineHeight;\n const lineHeight = lineHeightStr === 'normal' ? fontSize * 1.5 : Number(lineHeightStr.replace(/px/g, ''));\n\n const contentWidth = width - paddingLeft - paddingRight;\n const whiteSpace = styles.whiteSpace;\n\n // Single-line tooltip (white-space: pre)\n if (whiteSpace === 'pre' || !this.multiline) {\n return lineHeight + paddingTop + paddingBottom;\n }\n\n // Multi-line tooltip: estimate line count\n const text = this.label || '';\n const avgCharWidth = fontSize * 0.5; // Approximation for character width\n const charsPerLine = Math.floor(contentWidth / avgCharWidth);\n const estimatedLines = Math.max(1, Math.ceil(text.length / charsPerLine));\n\n const totalHeight = estimatedLines * lineHeight + paddingTop + paddingBottom;\n\n // Add some buffer for safety (10px)\n this.cachedTooltipHeight = Math.ceil(totalHeight) + 10;\n return this.cachedTooltipHeight;\n } catch (error) {\n console.warn('Failed to calculate tooltip height, using fallback', error);\n // Fallback based on multiline mode\n const fallbackHeight = this.multiline ? 80 : 50;\n this.cachedTooltipHeight = fallbackHeight;\n return fallbackHeight;\n }\n }\n\n checkFocusClass() {\n if (!this.shouldBeVisible) return;\n const isKeyboardFocus = !!this.findFocusVisibleElement(document.activeElement);\n this.focusClass = isKeyboardFocus ? 'has-keyboard-focus' : 'has-generic-focus';\n if (isKeyboardFocus) return;\n }\n\n clearTooltipOnChildren() {\n const children = Array.from(this.hostElement.children);\n for (const child of children) {\n if ('_tooltip' in child) {\n (child as HTMLElement & { _tooltip: string })._tooltip = undefined;\n }\n }\n }\n\n findConstrainingContainer(): Element {\n let element: Element = this.hostElement.parentElement;\n\n while (element && element !== document.body) {\n const style = window.getComputedStyle(element);\n const overflow = style.overflow + style.overflowX + style.overflowY;\n\n // Check if this element constrains overflow\n if (overflow.includes('hidden') || overflow.includes('auto') || overflow.includes('scroll')) {\n return element;\n }\n\n // Check for q2-modal interior element\n if (element.tagName === 'DIALOG' || element.classList.contains('interior')) {\n return element;\n }\n\n element = element.parentElement;\n }\n\n // If no constraining container found, use the viewport\n return document.documentElement;\n }\n\n findFocusVisibleElement(element: Element) {\n if (!element) return;\n if (element.shadowRoot) element = this.findFocusVisibleElement(element.shadowRoot.activeElement);\n return element?.matches(':focus-visible') ? element : null;\n }\n\n hideTooltip() {\n if (this.focusClass === 'has-generic-focus') this.focusClass = 'has-generic-focus-out';\n else this.focusClass = null;\n }\n\n propagateTooltip() {\n if (this.focusable) return;\n const children = Array.from(this.hostElement.children);\n for (const child of children) {\n if ('_tooltip' in child) {\n (child as HTMLElement & { _tooltip: string })._tooltip = this.label || undefined;\n }\n }\n }\n\n // #endregion\n // #region Render Methods\n\n render() {\n const { focusClass } = this;\n const classes = ['tooltip'];\n if (focusClass) classes.push(focusClass);\n if (this.persistOnHoverDismissed) classes.push('dismissed');\n\n return this.label ? (\n <div\n tabindex={this.focusable ? 0 : undefined}\n ref={el => (this.tooltipElement = el)}\n class={classes.join(' ')}\n aria-label={this.focusable ? this.label : undefined}\n data-label={this.label}\n onAnimationEnd={() => this.animationEndHandler()}\n role={this.focusable ? 'tooltip' : undefined}\n test-id=\"tooltipContainer\"\n >\n <slot onSlotchange={() => this.propagateTooltip()} />\n </div>\n ) : (\n <slot onSlotchange={() => this.propagateTooltip()} />\n );\n }\n\n // #endregion\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG,w3OAAw3O;;MCSh4O,SAAS,GAAA,MAAA;AADtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAII,QAAA,IAAiB,CAAA,iBAAA,GAAG,CAAC;AACrB,QAAA,IAAmB,CAAA,mBAAA,GAAkB,IAAI;AAyBzC;;;;AAIG;AAEH,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK;;AA2B1B,QAAA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AAG,SAAS,EACvC,YAAA,EAAA,IAAI,CAAC,KAAK,EACtB,cAAc,EAAE,MAAM,IAAI,CAAC,mBAAmB,EAAE,EAChD,IAAI,EAAE,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,aACpC,kBAAkB,EAAA,EAE1B,CAAA,CAAA,MAAA,EAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,EAAA,CAAI,CACnD,KAEN,CAAM,CAAA,MAAA,EAAA,EAAA,YAAY,EAAE,MAAM,IAAI,CAAC,gBAAgB,EAAE,EAAI,CAAA,CACxD;;;;;;;;;;;"}
@@ -1,14 +1,15 @@
1
1
  import { r as t, h as o, g as i } from "./index-CGkHOjh1.js";
2
2
 
3
- import { o as e, i as s } from "./index-C4PILj1_.js";
3
+ import { o as e, i as s } from "./index-C5gj0T_3.js";
4
4
 
5
- const r = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:inline-block}:host([block]){display:block}.tooltip{--comp-background:var(--tct-tooltip-background, var(--tct-tooltip-background-color, var(--t-tooltip-background-color, var(--t-top-a3, rgba(13, 13, 13, 0.8509803922)))));--comp-offset-default:calc(var(--app-scale-1x, 5px) * -1);--comp-offset:var(--tct-tooltip-offset, var(--t-tooltip-offset, var(--comp-offset-default)));--comp-position:var(--tct-tooltip-position, var(--t-tooltip-position, var(--app-scale-1x, 5px)));--comp-body-offset-default:calc(var(--app-scale-3x, 15px) * -1);--comp-body-offset:var(--tct-tooltip-body-offset, var(--t-tooltip-body-offset, var(--comp-body-offset-default)));--comp-duration:var(--tct-tooltip-transition-duration, var(--t-tooltip-transition-duration, var(--app-duration-1, 0.2s)));--comp-visible-duration:var(--tct-tooltip-transition-visible-duration, var(--t-tooltip-transition-visible-duration, 2s));--comp-delay:var(--tct-tooltip-transition-delay, var(--t-tooltip-transition-delay, 0s));display:inline-block;position:relative}.tooltip:hover{--comp-delay:var(--tct-tooltip-transition-delay, var(--t-tooltip-transition-delay, 1s))}:host([immediate]:not([immediate=false])) .tooltip:hover{--comp-delay:0s}.tooltip:before{position:absolute;z-index:2;width:0;height:0;color:var(--comp-background);pointer-events:none;content:"";border:var(--tct-tooltip-arrow-size, var(--t-tooltip-arrow-size, var(--app-scale-1x, 5px))) solid transparent}.tooltip:after{--comp-padding:var(--app-scale-1x, 5px) 8px;position:absolute;z-index:1;padding:var(--tct-tooltip-padding, var(--t-tooltip-padding, var(--comp-padding)));font-weight:var(--tct-tooltip-font-weight, var(--t-tooltip-font-weight, 600));font-size:var(--tct-tooltip-font-size, var(--t-tooltip-font-size, var(--app-font-size-small, 12px)));line-height:1.5;color:var(--tct-tooltip-color, var(--t-tooltip-color, var(--app-white, #ffffff)));text-align:center;text-decoration:none;text-shadow:none;text-transform:none;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(data-label);background:var(--comp-background);border-radius:var(--tct-tooltip-border-radius, var(--t-tooltip-border-radius, var(--app-border-radius-1, 4px)))}.tooltip:before,.tooltip:after{display:inline-block;visibility:hidden;opacity:0;transition:all var(--comp-duration) ease-in-out var(--comp-delay);transition-property:visibility, opacity}:host([block]) .tooltip{display:block}:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip:before,:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip:after{pointer-events:auto}.tooltip:not(.dismissed):hover:before,.tooltip:not(.dismissed):hover:after,.tooltip:not(.dismissed).has-keyboard-focus:focus-within:before,.tooltip:not(.dismissed).has-keyboard-focus:focus-within:after,:host([persistent]:not([persistent=false])) .tooltip:not(.dismissed):before,:host([persistent]:not([persistent=false])) .tooltip:not(.dismissed):after{text-decoration:none;visibility:visible;opacity:1}@keyframes tooltippedFade{from{opacity:0}to{opacity:1}}.tooltip.has-generic-focus:focus-within:before,.tooltip.has-generic-focus:focus-within:after{visibility:visible;opacity:0;transition:none;animation-timing-function:ease-in-out;animation-fill-mode:forwards;animation-name:tooltippedFade, tooltippedFade;animation-direction:normal, reverse;animation-duration:var(--comp-duration);animation-delay:0ms, calc(var(--comp-visible-duration) + var(--comp-duration))}.tooltip.has-generic-focus-out:before,.tooltip.has-generic-focus-out:after{visibility:visible;opacity:0;transition:none;animation-timing-function:ease-in-out;animation-fill-mode:forwards;animation-name:tooltippedFade;animation-direction:reverse;animation-duration:var(--comp-duration)}:host([multiline]) .tooltip:after{width:max-content;max-width:var(--tct-tooltip-max-width, var(--t-tooltip-max-width, 200px));word-break:break-word;word-wrap:normal;white-space:pre-line;border-collapse:separate;text-align:left}:host([position=s]) :host([multiline]) .tooltip:after,:host([position=n]) :host([multiline]) .tooltip:after{right:auto;left:50%;transform:translateX(-50%)}:host([position=w]) :host([multiline]) .tooltip:after,:host([position=e]) :host([multiline]) .tooltip:after{right:100%}:host([multiline]) .tooltip:hover:after,:host([multiline]) .tooltip:active:after,:host([multiline]) .tooltip:focus:after{display:table-cell}:host([multiline]) .tooltip:focus-within:after{display:table-cell}:host([position=s]) .tooltip:after,:host([position=se]) .tooltip:after,:host([position=sw]) .tooltip:after{top:100%;right:50%;margin-top:var(--comp-position)}:host([position=s]) .tooltip:before,:host([position=se]) .tooltip:before,:host([position=sw]) .tooltip:before{top:auto;right:50%;bottom:var(--comp-offset);margin-right:var(--comp-offset);border-bottom-color:var(--comp-background)}:host([position=n]) .tooltip:after,:host([position=ne]) .tooltip:after,:host([position=nw]) .tooltip:after{right:50%;bottom:100%;margin-bottom:var(--comp-position)}:host([position=n]) .tooltip:before,:host([position=ne]) .tooltip:before,:host([position=nw]) .tooltip:before{top:var(--comp-offset);right:50%;bottom:auto;margin-right:var(--comp-offset);border-top-color:var(--comp-background)}:host([position=se]) .tooltip:after,:host([position=ne]) .tooltip:after{right:auto;left:50%;margin-left:var(--comp-body-offset);margin-right:var(--comp-body-offset);transform:translateX(var(--comp-offset-translate, 0))}:host([position=sw]) .tooltip:after,:host([position=nw]) .tooltip:after{margin-right:var(--comp-body-offset);margin-left:var(--comp-body-offset);right:50%;transform:translateX(var(--comp-offset-translate, 0))}:host([position=s]) .tooltip:after,:host([position=n]) .tooltip:after{transform:translateX(calc(50% + var(--comp-offset-translate, 0)))}:host([position=w]) .tooltip:after{right:100%;bottom:50%;margin-right:var(--comp-position);transform:translateY(50%)}:host([position=w]) .tooltip:before{top:50%;bottom:50%;left:var(--comp-offset);margin-top:var(--comp-offset);border-left-color:var(--comp-background)}:host([position=e]) .tooltip:after{bottom:50%;left:100%;margin-left:var(--comp-position);transform:translateY(50%)}:host([position=e]) .tooltip:before{top:50%;right:var(--comp-offset);bottom:50%;margin-top:var(--comp-offset);border-right-color:var(--comp-background)}';
5
+ const n = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:inline-block}:host([block]){display:block}.tooltip{--comp-background:var(--tct-tooltip-background, var(--tct-tooltip-background-color, var(--t-tooltip-background-color, var(--t-top-a3, rgba(13, 13, 13, 0.8509803922)))));--comp-offset-default:calc(var(--app-scale-1x, 5px) * -1);--comp-offset:var(--tct-tooltip-offset, var(--t-tooltip-offset, var(--comp-offset-default)));--comp-position:var(--tct-tooltip-position, var(--t-tooltip-position, var(--app-scale-1x, 5px)));--comp-body-offset-default:calc(var(--app-scale-3x, 15px) * -1);--comp-body-offset:var(--tct-tooltip-body-offset, var(--t-tooltip-body-offset, var(--comp-body-offset-default)));--comp-duration:var(--tct-tooltip-transition-duration, var(--t-tooltip-transition-duration, var(--app-duration-1, 0.2s)));--comp-visible-duration:var(--tct-tooltip-transition-visible-duration, var(--t-tooltip-transition-visible-duration, 2s));--comp-delay:var(--tct-tooltip-transition-delay, var(--t-tooltip-transition-delay, 0s));display:inline-block;position:relative}.tooltip:hover{--comp-delay:var(--tct-tooltip-transition-delay, var(--t-tooltip-transition-delay, 1s))}:host([immediate]:not([immediate=false])) .tooltip:hover{--comp-delay:0s}.tooltip:before{position:absolute;z-index:2;width:0;height:0;color:var(--comp-background);pointer-events:none;content:"";border:var(--tct-tooltip-arrow-size, var(--t-tooltip-arrow-size, var(--app-scale-1x, 5px))) solid transparent}.tooltip:after{--comp-padding:var(--app-scale-1x, 5px) 8px;position:absolute;z-index:1;padding:var(--tct-tooltip-padding, var(--t-tooltip-padding, var(--comp-padding)));font-weight:var(--tct-tooltip-font-weight, var(--t-tooltip-font-weight, 600));font-size:var(--tct-tooltip-font-size, var(--t-tooltip-font-size, var(--app-font-size-small, 12px)));line-height:1.5;color:var(--tct-tooltip-color, var(--t-tooltip-color, var(--app-white, #ffffff)));text-align:center;text-decoration:none;text-shadow:none;text-transform:none;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(data-label);background:var(--comp-background);border-radius:var(--tct-tooltip-border-radius, var(--t-tooltip-border-radius, var(--app-border-radius-1, 4px)))}.tooltip:before,.tooltip:after{display:inline-block;visibility:hidden;opacity:0;transition:all var(--comp-duration) ease-in-out var(--comp-delay);transition-property:visibility, opacity}:host([block]) .tooltip{display:block}:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip:before,:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip:after{pointer-events:auto}.tooltip:not(.dismissed):hover:before,.tooltip:not(.dismissed):hover:after,.tooltip:not(.dismissed).has-keyboard-focus:focus-within:before,.tooltip:not(.dismissed).has-keyboard-focus:focus-within:after,:host([persistent]:not([persistent=false])) .tooltip:not(.dismissed):before,:host([persistent]:not([persistent=false])) .tooltip:not(.dismissed):after{text-decoration:none;visibility:visible;opacity:1}@keyframes tooltippedFade{from{opacity:0}to{opacity:1}}.tooltip.has-generic-focus:focus-within:before,.tooltip.has-generic-focus:focus-within:after{visibility:visible;opacity:0;transition:none;animation-timing-function:ease-in-out;animation-fill-mode:forwards;animation-name:tooltippedFade, tooltippedFade;animation-direction:normal, reverse;animation-duration:var(--comp-duration);animation-delay:0ms, calc(var(--comp-visible-duration) + var(--comp-duration))}.tooltip.has-generic-focus:hover:focus-within:before,.tooltip.has-generic-focus:hover:focus-within:after{animation-name:tooltippedFade;animation-direction:normal;animation-delay:0ms}:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip.has-generic-focus:focus-within:before,:host([persist-on-hover]:not([persist-on-hover=false])) .tooltip.has-generic-focus:focus-within:after{animation-name:tooltippedFade;animation-direction:normal;animation-delay:0ms}.tooltip.has-generic-focus-out:before,.tooltip.has-generic-focus-out:after{visibility:visible;opacity:0;transition:none;animation-timing-function:ease-in-out;animation-fill-mode:forwards;animation-name:tooltippedFade;animation-direction:reverse;animation-duration:var(--comp-duration)}.tooltip.dismissed:before,.tooltip.dismissed:after{visibility:hidden;opacity:0;animation-name:none}:host([multiline]) .tooltip:after{width:max-content;max-width:var(--tct-tooltip-max-width, var(--t-tooltip-max-width, 200px));word-break:break-word;word-wrap:normal;white-space:pre-line;border-collapse:separate;text-align:left}:host([position=s]) :host([multiline]) .tooltip:after,:host([position=n]) :host([multiline]) .tooltip:after{right:auto;left:50%;transform:translateX(-50%)}:host([position=w]) :host([multiline]) .tooltip:after,:host([position=e]) :host([multiline]) .tooltip:after{right:100%}:host([multiline]) .tooltip:hover:after,:host([multiline]) .tooltip:active:after,:host([multiline]) .tooltip:focus:after{display:table-cell}:host([multiline]) .tooltip:focus-within:after{display:table-cell}:host([position=s]) .tooltip:after,:host([position=se]) .tooltip:after,:host([position=sw]) .tooltip:after{top:100%;right:50%;margin-top:var(--comp-position)}:host([position=s]) .tooltip:before,:host([position=se]) .tooltip:before,:host([position=sw]) .tooltip:before{top:auto;right:50%;bottom:var(--comp-offset);margin-right:var(--comp-offset);border-bottom-color:var(--comp-background)}:host([position=n]) .tooltip:after,:host([position=ne]) .tooltip:after,:host([position=nw]) .tooltip:after{right:50%;bottom:100%;margin-bottom:var(--comp-position)}:host([position=n]) .tooltip:before,:host([position=ne]) .tooltip:before,:host([position=nw]) .tooltip:before{top:var(--comp-offset);right:50%;bottom:auto;margin-right:var(--comp-offset);border-top-color:var(--comp-background)}:host([position=se]) .tooltip:after,:host([position=ne]) .tooltip:after{right:auto;left:50%;margin-left:var(--comp-body-offset);margin-right:var(--comp-body-offset);transform:translateX(var(--comp-offset-translate, 0))}:host([position=sw]) .tooltip:after,:host([position=nw]) .tooltip:after{margin-right:var(--comp-body-offset);margin-left:var(--comp-body-offset);right:50%;transform:translateX(var(--comp-offset-translate, 0))}:host([position=s]) .tooltip:after,:host([position=n]) .tooltip:after{transform:translateX(calc(50% + var(--comp-offset-translate, 0)))}:host([position=w]) .tooltip:after{right:100%;bottom:50%;margin-right:var(--comp-position);transform:translateY(50%)}:host([position=w]) .tooltip:before{top:50%;bottom:50%;left:var(--comp-offset);margin-top:var(--comp-offset);border-left-color:var(--comp-background)}:host([position=e]) .tooltip:after{bottom:50%;left:100%;margin-left:var(--comp-position);transform:translateY(50%)}:host([position=e]) .tooltip:before{top:50%;right:var(--comp-offset);bottom:50%;margin-top:var(--comp-offset);border-right-color:var(--comp-background)}';
6
6
 
7
- const a = class {
7
+ const r = class {
8
8
  constructor(o) {
9
9
  t(this, o);
10
10
  // #region Own Properties
11
11
  this.animationEndCount = 0;
12
+ this.cachedTooltipHeight = null;
12
13
  /**
13
14
  * Makes the component focusable, thereby putting it in the tab order of the keyboard.
14
15
  * @warning
@@ -28,6 +29,17 @@ const a = class {
28
29
  }
29
30
  // #endregion
30
31
  // #region Listeners
32
+ documentPointerHandler(t) {
33
+ var o;
34
+ if (!this.focusClass || this.persistent) return;
35
+ const i = ((o = t.composedPath) === null || o === void 0 ? void 0 : o.call(t).includes(this.hostElement)) || t.target instanceof Node && this.hostElement.contains(t.target);
36
+ if (i) {
37
+ this.persistOnHoverDismissed = false;
38
+ return;
39
+ }
40
+ this.persistOnHoverDismissed = true;
41
+ this.hideTooltip();
42
+ }
31
43
  focusCaptureHandler() {
32
44
  this.checkFocusClass();
33
45
  }
@@ -57,6 +69,11 @@ const a = class {
57
69
  // #region Watchers
58
70
  labelChanged() {
59
71
  this.propagateTooltip();
72
+ this.cachedTooltipHeight = null;
73
+ // Invalidate cache
74
+ if (this.shouldBeVisible || this.persistent) {
75
+ this.adjustSide();
76
+ }
60
77
  }
61
78
  // #endregion
62
79
  // #region Local Methods
@@ -65,30 +82,63 @@ const a = class {
65
82
  return this.hostElement.matches(":hover, :focus-within") && !this.persistOnHoverDismissed;
66
83
  }
67
84
  adjustSide() {
68
- const {left: t, right: o, width: i} = this.hostElement.getBoundingClientRect();
85
+ const {left: t, right: o, width: i, top: e, bottom: s} = this.hostElement.getBoundingClientRect();
69
86
  if (!t || !i) return;
70
- const {width: e, paddingLeft: s, paddingRight: r} = window.getComputedStyle(this.tooltipElement, "::after");
71
- const a = Number(e.replace(/[px]/g, "")) + Number(s.replace(/[px]/g, "")) + Number(r.replace(/[px]/g, ""));
72
- const n = [ "se", "sw", "ne", "nw" ].includes(this.position) ? 0 : 15;
73
- const p = t + i / 2;
74
- const l = window.innerWidth - o + +i / 2;
75
- if ([ "ne", "se" ].includes(this.position)) {
76
- if (a > l) {
77
- this.tooltipElement.style.setProperty("--comp-offset-translate", `-${Math.round(a - l + n)}px`);
87
+ // Find the constraining container (modal, dialog, or any overflow:hidden ancestor)
88
+ const n = this.findConstrainingContainer();
89
+ const r = n.getBoundingClientRect();
90
+ const {width: a, paddingLeft: l, paddingRight: p} = window.getComputedStyle(this.tooltipElement, "::after");
91
+ const h = Number(a.replace(/[px]/g, "")) + Number(l.replace(/[px]/g, "")) + Number(p.replace(/[px]/g, ""));
92
+ const f = [ "se", "sw", "ne", "nw" ].includes(this.position) ? 0 : 15;
93
+ // Calculate available space relative to constraining container
94
+ const c = t - r.left + i / 2;
95
+ const d = r.right - o + i / 2;
96
+ const u = e - r.top;
97
+ const m = r.bottom - s;
98
+ // Calculate tooltip height dynamically
99
+ const b = this.calculateTooltipHeight();
100
+ // Check if we need to flip vertical position
101
+ if ([ "n", "ne", "nw" ].includes(this.position) && u < b) {
102
+ // Not enough space above, try flipping to bottom
103
+ if (m >= b) {
104
+ this.position = this.position.replace("n", "s");
105
+ }
106
+ } else if ([ "s", "se", "sw" ].includes(this.position) && m < b) {
107
+ // Not enough space below, try flipping to top
108
+ if (u >= b) {
109
+ this.position = this.position.replace("s", "n");
110
+ }
111
+ }
112
+ // Adjust horizontal positioning
113
+ if ([ "ne", "se" ].includes(this.position)) {
114
+ if (h > d) {
115
+ this.tooltipElement.style.setProperty("--comp-offset-translate", `-${Math.round(h - d + f)}px`);
78
116
  }
79
117
  } else if ([ "nw", "sw" ].includes(this.position)) {
80
- if (a > p) {
81
- this.tooltipElement.style.setProperty("--comp-offset-translate", `${Math.round(a - p + n)}px`);
118
+ if (h > c) {
119
+ this.tooltipElement.style.setProperty("--comp-offset-translate", `${Math.round(h - c + f)}px`);
82
120
  }
83
121
  } else if ([ "n", "s" ].includes(this.position)) {
84
- if (a / 2 > p) {
85
- this.tooltipElement.style.setProperty("--comp-offset-translate", `${Math.round(a / 2 - p + n)}px`);
86
- } else if (a / 2 > l) {
87
- this.tooltipElement.style.setProperty("--comp-offset-translate", `-${Math.round(a / 2 - l + n)}px`);
122
+ if (h / 2 > c) {
123
+ this.tooltipElement.style.setProperty("--comp-offset-translate", `${Math.round(h / 2 - c + f)}px`);
124
+ } else if (h / 2 > d) {
125
+ this.tooltipElement.style.setProperty("--comp-offset-translate", `-${Math.round(h / 2 - d + f)}px`);
88
126
  } else {
89
127
  this.tooltipElement.style.setProperty("--comp-offset-translate", `0px`);
90
128
  }
91
129
  }
130
+ // Handle east/west positioning
131
+ if (this.position === "e" && h > d) {
132
+ // Not enough space on right, flip to left
133
+ if (c >= h) {
134
+ this.position = "w";
135
+ }
136
+ } else if (this.position === "w" && h > c) {
137
+ // Not enough space on left, flip to right
138
+ if (d >= h) {
139
+ this.position = "e";
140
+ }
141
+ }
92
142
  }
93
143
  animationEndHandler() {
94
144
  this.animationEndCount = this.animationEndCount + 1;
@@ -101,6 +151,54 @@ const a = class {
101
151
  this.animationEndCount = 0;
102
152
  }
103
153
  }
154
+ calculateTooltipHeight() {
155
+ if (this.cachedTooltipHeight !== null) {
156
+ return this.cachedTooltipHeight;
157
+ }
158
+ try {
159
+ const t = window.getComputedStyle(this.tooltipElement, "::after");
160
+ // Try to get computed height first
161
+ const o = t.height;
162
+ if (o && o !== "auto" && o !== "0px") {
163
+ const i = Number(o.replace(/px/g, ""));
164
+ const e = Number(t.paddingTop.replace(/px/g, ""));
165
+ const s = Number(t.paddingBottom.replace(/px/g, ""));
166
+ this.cachedTooltipHeight = i + e + s;
167
+ return this.cachedTooltipHeight;
168
+ }
169
+ // Fallback: Calculate based on text and wrapping
170
+ const i = Number(t.width.replace(/px/g, ""));
171
+ const e = Number(t.paddingLeft.replace(/px/g, ""));
172
+ const s = Number(t.paddingRight.replace(/px/g, ""));
173
+ const n = Number(t.paddingTop.replace(/px/g, ""));
174
+ const r = Number(t.paddingBottom.replace(/px/g, ""));
175
+ const a = Number(t.fontSize.replace(/px/g, ""));
176
+ const l = t.lineHeight;
177
+ const p = l === "normal" ? a * 1.5 : Number(l.replace(/px/g, ""));
178
+ const h = i - e - s;
179
+ const f = t.whiteSpace;
180
+ // Single-line tooltip (white-space: pre)
181
+ if (f === "pre" || !this.multiline) {
182
+ return p + n + r;
183
+ }
184
+ // Multi-line tooltip: estimate line count
185
+ const c = this.label || "";
186
+ const d = a * .5;
187
+ // Approximation for character width
188
+ const u = Math.floor(h / d);
189
+ const m = Math.max(1, Math.ceil(c.length / u));
190
+ const b = m * p + n + r;
191
+ // Add some buffer for safety (10px)
192
+ this.cachedTooltipHeight = Math.ceil(b) + 10;
193
+ return this.cachedTooltipHeight;
194
+ } catch (t) {
195
+ console.warn("Failed to calculate tooltip height, using fallback", t);
196
+ // Fallback based on multiline mode
197
+ const o = this.multiline ? 80 : 50;
198
+ this.cachedTooltipHeight = o;
199
+ return o;
200
+ }
201
+ }
104
202
  checkFocusClass() {
105
203
  if (!this.shouldBeVisible) return;
106
204
  const t = !!this.findFocusVisibleElement(document.activeElement);
@@ -115,6 +213,24 @@ const a = class {
115
213
  }
116
214
  }
117
215
  }
216
+ findConstrainingContainer() {
217
+ let t = this.hostElement.parentElement;
218
+ while (t && t !== document.body) {
219
+ const o = window.getComputedStyle(t);
220
+ const i = o.overflow + o.overflowX + o.overflowY;
221
+ // Check if this element constrains overflow
222
+ if (i.includes("hidden") || i.includes("auto") || i.includes("scroll")) {
223
+ return t;
224
+ }
225
+ // Check for q2-modal interior element
226
+ if (t.tagName === "DIALOG" || t.classList.contains("interior")) {
227
+ return t;
228
+ }
229
+ t = t.parentElement;
230
+ }
231
+ // If no constraining container found, use the viewport
232
+ return document.documentElement;
233
+ }
118
234
  findFocusVisibleElement(t) {
119
235
  if (!t) return;
120
236
  if (t.shadowRoot) t = this.findFocusVisibleElement(t.shadowRoot.activeElement);
@@ -164,8 +280,8 @@ const a = class {
164
280
  }
165
281
  };
166
282
 
167
- a.style = r;
283
+ r.style = n;
168
284
 
169
- export { a as q2_tooltip };
285
+ export { r as q2_tooltip };
170
286
  //# sourceMappingURL=q2-tooltip.entry.esm.js.map
171
287
  //# sourceMappingURL=q2-tooltip.entry.js.map