q2-tecton-elements 1.53.0 → 1.53.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +64 -61
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-07285783.js → index-76f63767.js} +1 -21
  4. package/dist/cjs/index-76f63767.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
  7. package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
  8. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-badge_7.cjs.entry.js +12 -4
  10. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  11. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  14. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
  16. package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
  17. package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  21. package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  23. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-dropdown.cjs.entry.js +10 -12
  25. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  26. package/dist/cjs/q2-editable-field.cjs.entry.js +7 -8
  27. package/dist/cjs/q2-editable-field.cjs.entry.js.map +1 -1
  28. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-file-picker.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-item_3.cjs.entry.js +3 -3
  32. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  33. package/dist/cjs/q2-loc.cjs.entry.js +2 -2
  34. package/dist/cjs/q2-message.cjs.entry.js +2 -2
  35. package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
  36. package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
  37. package/dist/cjs/q2-option-list.cjs.entry.js +1 -1
  38. package/dist/cjs/q2-option.cjs.entry.js +2 -2
  39. package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
  40. package/dist/cjs/q2-pill.cjs.entry.js +2 -2
  41. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  42. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  43. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  44. package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
  45. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  46. package/dist/cjs/q2-select.cjs.entry.js +89 -13
  47. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  48. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  49. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  50. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  51. package/dist/cjs/q2-tag.cjs.entry.js +2 -2
  52. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  53. package/dist/cjs/q2-textarea.cjs.entry.js +3 -2
  54. package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
  55. package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
  56. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  57. package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
  58. package/dist/collection/components/click-elsewhere/test/click-elsewhere-test.e2e.js.map +1 -1
  59. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  60. package/dist/collection/components/q2-action-group/q2-action-group.js.map +1 -1
  61. package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js.map +1 -1
  62. package/dist/collection/components/q2-action-group/test/q2-action-group.spec.js.map +1 -1
  63. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  64. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
  65. package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.e2e.js.map +1 -1
  66. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  67. package/dist/collection/components/q2-avatar/q2-avatar.js.map +1 -1
  68. package/dist/collection/components/q2-avatar/test/q2-avatar-test.e2e.js.map +1 -1
  69. package/dist/collection/components/q2-badge/q2-badge.js.map +1 -1
  70. package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js.map +1 -1
  71. package/dist/collection/components/q2-btn/q2-btn.js +4 -0
  72. package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
  73. package/dist/collection/components/q2-btn/test/q2-btn-test.e2e.js.map +1 -1
  74. package/dist/collection/components/q2-calendar/q2-calendar-helpers.js.map +1 -1
  75. package/dist/collection/components/q2-calendar/q2-calendar-types.js.map +1 -1
  76. package/dist/collection/components/q2-calendar/q2-calendar-validation.js.map +1 -1
  77. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  78. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  79. package/dist/collection/components/q2-calendar/q2-month-picker.js.map +1 -1
  80. package/dist/collection/components/q2-calendar/test/helpers-test.e2e.js.map +1 -1
  81. package/dist/collection/components/q2-calendar/test/q2-calendar-month-picker-test.e2e.js.map +1 -1
  82. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +2 -2
  83. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
  84. package/dist/collection/components/q2-calendar/test/validation-test.e2e.js.map +1 -1
  85. package/dist/collection/components/q2-card/q2-card.js.map +1 -1
  86. package/dist/collection/components/q2-card/test/q2-card-test.e2e.js.map +1 -1
  87. package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
  88. package/dist/collection/components/q2-carousel/test/q2-carousel-test.e2e.js.map +1 -1
  89. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  90. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js.map +1 -1
  91. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.e2e.js.map +1 -1
  92. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.spec.js.map +1 -1
  93. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  94. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  95. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
  96. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  97. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
  98. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.e2e.js.map +1 -1
  99. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  100. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  101. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
  102. package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
  103. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js.map +1 -1
  104. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
  105. package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.e2e.js.map +1 -1
  106. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  107. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  108. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
  109. package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
  110. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
  111. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  112. package/dist/collection/components/q2-detail/q2-detail.js.map +1 -1
  113. package/dist/collection/components/q2-detail/test/q2-detail-test.e2e.js.map +1 -1
  114. package/dist/collection/components/q2-dropdown/q2-dropdown.js +9 -11
  115. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  116. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +5 -17
  117. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
  118. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
  119. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
  120. package/dist/collection/components/q2-editable-field/q2-editable-field.js +12 -7
  121. package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
  122. package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.e2e.js.map +1 -1
  123. package/dist/collection/components/q2-example/q2-example.js +1 -1
  124. package/dist/collection/components/q2-example/q2-example.js.map +1 -1
  125. package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -1
  126. package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -1
  127. package/dist/collection/components/q2-file-picker/q2-file-picker.js.map +1 -1
  128. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js.map +1 -1
  129. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js.map +1 -1
  130. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  131. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js.map +1 -1
  132. package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.e2e.js.map +1 -1
  133. package/dist/collection/components/q2-icon/q2-icon-types.js.map +1 -1
  134. package/dist/collection/components/q2-icon/q2-icon.js +4 -0
  135. package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
  136. package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js.map +1 -1
  137. package/dist/collection/components/q2-input/formatting/alpha.js.map +1 -1
  138. package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -1
  139. package/dist/collection/components/q2-input/formatting/alphanumeric.js.map +1 -1
  140. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -1
  141. package/dist/collection/components/q2-input/formatting/credit-card.js.map +1 -1
  142. package/dist/collection/components/q2-input/formatting/credit-card.spec.js.map +1 -1
  143. package/dist/collection/components/q2-input/formatting/currency.js.map +1 -1
  144. package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -1
  145. package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
  146. package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -1
  147. package/dist/collection/components/q2-input/formatting/generic.js.map +1 -1
  148. package/dist/collection/components/q2-input/formatting/number.js.map +1 -1
  149. package/dist/collection/components/q2-input/formatting/numeric.js.map +1 -1
  150. package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -1
  151. package/dist/collection/components/q2-input/formatting/phone.js.map +1 -1
  152. package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -1
  153. package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
  154. package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -1
  155. package/dist/collection/components/q2-input/formatting/ssn.js.map +1 -1
  156. package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -1
  157. package/dist/collection/components/q2-input/formatting/tin.js.map +1 -1
  158. package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -1
  159. package/dist/collection/components/q2-input/q2-input-types.js.map +1 -1
  160. package/dist/collection/components/q2-input/q2-input.js +1 -1
  161. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  162. package/dist/collection/components/q2-input/test/q2-input-credit-card-test.e2e.js.map +1 -1
  163. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  164. package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -1
  165. package/dist/collection/components/q2-item/q2-item.js +1 -1
  166. package/dist/collection/components/q2-item/q2-item.js.map +1 -1
  167. package/dist/collection/components/q2-item/test/q2-item-test.e2e.js.map +1 -1
  168. package/dist/collection/components/q2-item/test/q2-item-test.spec.js.map +1 -1
  169. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  170. package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
  171. package/dist/collection/components/q2-legend/test/q2-legend-test.e2e.js.map +1 -1
  172. package/dist/collection/components/q2-legend/test/q2-legend-test.spec.js.map +1 -1
  173. package/dist/collection/components/q2-link/q2-link.js.map +1 -1
  174. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
  175. package/dist/collection/components/q2-list/q2-list.js +1 -1
  176. package/dist/collection/components/q2-list/q2-list.js.map +1 -1
  177. package/dist/collection/components/q2-list/test/q2-list-test.e2e.js.map +1 -1
  178. package/dist/collection/components/q2-loading/q2-loading.js.map +1 -1
  179. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js.map +1 -1
  180. package/dist/collection/components/q2-loading/skeleton/shapes.js.map +1 -1
  181. package/dist/collection/components/q2-loading/test/q2-loading-element-test.e2e.js.map +1 -1
  182. package/dist/collection/components/q2-loading/test/q2-loading-test.e2e.js.map +1 -1
  183. package/dist/collection/components/q2-loc/q2-loc.js +1 -1
  184. package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
  185. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
  186. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -1
  187. package/dist/collection/components/q2-message/q2-message.js +1 -1
  188. package/dist/collection/components/q2-message/q2-message.js.map +1 -1
  189. package/dist/collection/components/q2-message/test/q2-message-test.e2e.js.map +1 -1
  190. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  191. package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
  192. package/dist/collection/components/q2-optgroup/test/q2-optgroup-test.e2e.js.map +1 -1
  193. package/dist/collection/components/q2-option/q2-option.js +1 -1
  194. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  195. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
  196. package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -1
  197. package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
  198. package/dist/collection/components/q2-option-list/test/q2-option-list-test.e2e.js.map +1 -1
  199. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  200. package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
  201. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +1 -0
  202. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
  203. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  204. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  205. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js +1 -1
  206. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
  207. package/dist/collection/components/q2-popover/q2-popover.css +18 -10
  208. package/dist/collection/components/q2-popover/q2-popover.js +64 -60
  209. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  210. package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js +1 -34
  211. package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
  212. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +743 -435
  213. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
  214. package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
  215. package/dist/collection/components/q2-radio/test/q2-radio-test.e2e.js.map +1 -1
  216. package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
  217. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.e2e.js.map +1 -1
  218. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  219. package/dist/collection/components/q2-relative-time/q2-relative-time.js.map +1 -1
  220. package/dist/collection/components/q2-relative-time/test/q2-relative-time-test.e2e.js.map +1 -1
  221. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  222. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js.map +1 -1
  223. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.e2e.js.map +1 -1
  224. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.spec.js.map +1 -1
  225. package/dist/collection/components/q2-section/q2-section.js +2 -2
  226. package/dist/collection/components/q2-section/q2-section.js.map +1 -1
  227. package/dist/collection/components/q2-section/test/q2-section-test.e2e.js.map +1 -1
  228. package/dist/collection/components/q2-select/q2-select.js +110 -15
  229. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  230. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +1 -1
  231. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
  232. package/dist/collection/components/q2-select/test/q2-select-test.spec.js +412 -0
  233. package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -0
  234. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  235. package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
  236. package/dist/collection/components/q2-stepper/test/q2-stepper-test.e2e.js.map +1 -1
  237. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
  238. package/dist/collection/components/q2-stepper-pane/test/q2-stepper-pane-test.e2e.js.map +1 -1
  239. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  240. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
  241. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
  242. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  243. package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
  244. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.e2e.js.map +1 -1
  245. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.spec.js.map +1 -1
  246. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  247. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js.map +1 -1
  248. package/dist/collection/components/q2-tab-pane/test/q2-tab-pane-test.e2e.js.map +1 -1
  249. package/dist/collection/components/q2-tag/q2-tag.js +1 -1
  250. package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
  251. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +6 -1
  252. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
  253. package/dist/collection/components/q2-textarea/q2-textarea.js +2 -1
  254. package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
  255. package/dist/collection/components/q2-textarea/test/q2-textarea-test.e2e.js.map +1 -1
  256. package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
  257. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.e2e.js.map +1 -1
  258. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane-types.js.map +1 -1
  259. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  260. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js.map +1 -1
  261. package/dist/collection/components/tecton-tab-pane/test/tecton-tab-pane-test.e2e.js.map +1 -1
  262. package/dist/collection/index.js.map +1 -1
  263. package/dist/collection/utils/action-sheet.js.map +1 -1
  264. package/dist/collection/utils/charting.js.map +1 -1
  265. package/dist/collection/utils/helpers.js.map +1 -1
  266. package/dist/collection/utils/index.js.map +1 -1
  267. package/dist/collection/utils/sanitize-html-string.js.map +1 -1
  268. package/dist/collection/utils/sanitize-regex-string.js.map +1 -1
  269. package/dist/collection/utils/test/action-sheet-test.e2e.js.map +1 -1
  270. package/dist/collection/utils/test/index.spec.js.map +1 -1
  271. package/dist/components/index2.js +1 -20
  272. package/dist/components/index2.js.map +1 -1
  273. package/dist/components/q2-action-group.js +1 -1
  274. package/dist/components/q2-action-sheet.js +1 -1
  275. package/dist/components/q2-avatar2.js +1 -1
  276. package/dist/components/q2-btn2.js +4 -0
  277. package/dist/components/q2-btn2.js.map +1 -1
  278. package/dist/components/q2-carousel-pane.js +2 -2
  279. package/dist/components/q2-chart-area.js +1 -1
  280. package/dist/components/q2-chart-bar.js +1 -1
  281. package/dist/components/q2-chart-donut.js +1 -1
  282. package/dist/components/q2-currency.js +1 -1
  283. package/dist/components/q2-detail.js +1 -1
  284. package/dist/components/q2-dropdown.js +9 -11
  285. package/dist/components/q2-dropdown.js.map +1 -1
  286. package/dist/components/q2-editable-field.js +7 -8
  287. package/dist/components/q2-editable-field.js.map +1 -1
  288. package/dist/components/q2-example.js +1 -1
  289. package/dist/components/q2-formatted-text.js +1 -1
  290. package/dist/components/q2-icon2.js +4 -0
  291. package/dist/components/q2-icon2.js.map +1 -1
  292. package/dist/components/q2-input2.js +1 -1
  293. package/dist/components/q2-item2.js +1 -1
  294. package/dist/components/q2-legend2.js +1 -1
  295. package/dist/components/q2-list2.js +1 -1
  296. package/dist/components/q2-loc.js +1 -1
  297. package/dist/components/q2-message2.js +1 -1
  298. package/dist/components/q2-month-picker.js +2 -2
  299. package/dist/components/q2-optgroup2.js +1 -1
  300. package/dist/components/q2-option2.js +1 -1
  301. package/dist/components/q2-pagination.js +3 -3
  302. package/dist/components/q2-pill.js +1 -1
  303. package/dist/components/q2-popover2.js +63 -60
  304. package/dist/components/q2-popover2.js.map +1 -1
  305. package/dist/components/q2-relative-time.js +1 -1
  306. package/dist/components/q2-resize-observer2.js +1 -1
  307. package/dist/components/q2-section.js +2 -2
  308. package/dist/components/q2-select2.js +92 -16
  309. package/dist/components/q2-select2.js.map +1 -1
  310. package/dist/components/q2-stepper-vertical.js +1 -1
  311. package/dist/components/q2-stepper.js +1 -1
  312. package/dist/components/q2-tab-container.js +1 -1
  313. package/dist/components/q2-tab-pane.js +1 -1
  314. package/dist/components/q2-tag.js +1 -1
  315. package/dist/components/q2-textarea.js +2 -1
  316. package/dist/components/q2-textarea.js.map +1 -1
  317. package/dist/components/tecton-tab-pane.js +2 -2
  318. package/dist/esm/click-elsewhere_2.entry.js +64 -61
  319. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  320. package/dist/esm/{index-d18e2a20.js → index-504f1a9e.js} +2 -21
  321. package/dist/esm/index-504f1a9e.js.map +1 -0
  322. package/dist/esm/loader.js +1 -1
  323. package/dist/esm/q2-action-group.entry.js +2 -2
  324. package/dist/esm/q2-action-sheet.entry.js +2 -2
  325. package/dist/esm/q2-avatar.entry.js +1 -1
  326. package/dist/esm/q2-badge_7.entry.js +12 -4
  327. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  328. package/dist/esm/q2-calendar.entry.js +1 -1
  329. package/dist/esm/q2-card.entry.js +1 -1
  330. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  331. package/dist/esm/q2-carousel.entry.js +1 -1
  332. package/dist/esm/q2-chart-area.entry.js +2 -2
  333. package/dist/esm/q2-chart-bar.entry.js +2 -2
  334. package/dist/esm/q2-chart-donut.entry.js +2 -2
  335. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  336. package/dist/esm/q2-checkbox.entry.js +1 -1
  337. package/dist/esm/q2-currency.entry.js +1 -1
  338. package/dist/esm/q2-data-table.entry.js +1 -1
  339. package/dist/esm/q2-detail.entry.js +2 -2
  340. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  341. package/dist/esm/q2-dropdown.entry.js +10 -12
  342. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  343. package/dist/esm/q2-editable-field.entry.js +7 -8
  344. package/dist/esm/q2-editable-field.entry.js.map +1 -1
  345. package/dist/esm/q2-example.entry.js +1 -1
  346. package/dist/esm/q2-file-picker.entry.js +1 -1
  347. package/dist/esm/q2-formatted-text.entry.js +1 -1
  348. package/dist/esm/q2-item_3.entry.js +3 -3
  349. package/dist/esm/q2-legend.entry.js +1 -1
  350. package/dist/esm/q2-loc.entry.js +2 -2
  351. package/dist/esm/q2-message.entry.js +2 -2
  352. package/dist/esm/q2-month-picker.entry.js +3 -3
  353. package/dist/esm/q2-optgroup.entry.js +2 -2
  354. package/dist/esm/q2-option-list.entry.js +1 -1
  355. package/dist/esm/q2-option.entry.js +2 -2
  356. package/dist/esm/q2-pagination.entry.js +4 -4
  357. package/dist/esm/q2-pill.entry.js +2 -2
  358. package/dist/esm/q2-radio-group.entry.js +1 -1
  359. package/dist/esm/q2-radio.entry.js +1 -1
  360. package/dist/esm/q2-relative-time.entry.js +2 -2
  361. package/dist/esm/q2-resize-observer.entry.js +1 -1
  362. package/dist/esm/q2-section.entry.js +3 -3
  363. package/dist/esm/q2-select.entry.js +90 -14
  364. package/dist/esm/q2-select.entry.js.map +1 -1
  365. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  366. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  367. package/dist/esm/q2-stepper.entry.js +2 -2
  368. package/dist/esm/q2-tag.entry.js +2 -2
  369. package/dist/esm/q2-tecton-elements.js +1 -1
  370. package/dist/esm/q2-textarea.entry.js +3 -2
  371. package/dist/esm/q2-textarea.entry.js.map +1 -1
  372. package/dist/esm/q2-tooltip.entry.js +1 -1
  373. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  374. package/dist/jest.setup.js +22 -0
  375. package/dist/jest.setup.js.map +1 -0
  376. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js +175 -163
  377. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js.map +1 -1
  378. package/dist/q2-tecton-elements/{index-d18e2a20.js → index-504f1a9e.js} +51 -69
  379. package/dist/q2-tecton-elements/index-504f1a9e.js.map +1 -0
  380. package/dist/q2-tecton-elements/q2-action-group.entry.js +4 -4
  381. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +34 -34
  382. package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
  383. package/dist/q2-tecton-elements/q2-badge_7.entry.js +25 -17
  384. package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
  385. package/dist/q2-tecton-elements/q2-calendar.entry.js +1 -1
  386. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  387. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +21 -21
  388. package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
  389. package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
  390. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
  391. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +101 -101
  392. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +1 -1
  393. package/dist/q2-tecton-elements/q2-checkbox.entry.js +1 -1
  394. package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
  395. package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
  396. package/dist/q2-tecton-elements/q2-detail.entry.js +39 -39
  397. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
  398. package/dist/q2-tecton-elements/q2-dropdown.entry.js +14 -16
  399. package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
  400. package/dist/q2-tecton-elements/q2-editable-field.entry.js +27 -18
  401. package/dist/q2-tecton-elements/q2-editable-field.entry.js.map +1 -1
  402. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  403. package/dist/q2-tecton-elements/q2-file-picker.entry.js +1 -1
  404. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  405. package/dist/q2-tecton-elements/q2-item_3.entry.js +19 -19
  406. package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
  407. package/dist/q2-tecton-elements/q2-loc.entry.js +5 -5
  408. package/dist/q2-tecton-elements/q2-message.entry.js +21 -21
  409. package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
  410. package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
  411. package/dist/q2-tecton-elements/q2-option-list.entry.js +1 -1
  412. package/dist/q2-tecton-elements/q2-option.entry.js +14 -14
  413. package/dist/q2-tecton-elements/q2-pagination.entry.js +34 -34
  414. package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
  415. package/dist/q2-tecton-elements/q2-radio-group.entry.js +1 -1
  416. package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
  417. package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
  418. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
  419. package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
  420. package/dist/q2-tecton-elements/q2-select.entry.js +156 -92
  421. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
  422. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
  423. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +37 -37
  424. package/dist/q2-tecton-elements/q2-stepper.entry.js +29 -29
  425. package/dist/q2-tecton-elements/q2-tag.entry.js +25 -25
  426. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  427. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  428. package/dist/q2-tecton-elements/q2-textarea.entry.js +4 -3
  429. package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
  430. package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
  431. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
  432. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
  433. package/dist/types/components/q2-btn/q2-btn.d.ts +1 -0
  434. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +1 -4
  435. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +2 -1
  436. package/dist/types/components/q2-icon/q2-icon.d.ts +1 -0
  437. package/dist/types/components/q2-popover/q2-popover.d.ts +4 -4
  438. package/dist/types/components/q2-select/q2-select.d.ts +19 -0
  439. package/package.json +3 -3
  440. package/dist/cjs/index-07285783.js.map +0 -1
  441. package/dist/esm/index-d18e2a20.js.map +0 -1
  442. package/dist/q2-tecton-elements/index-d18e2a20.js.map +0 -1
@@ -0,0 +1,22 @@
1
+ import { MockHTMLElement } from "@stencil/core/mock-doc";
2
+ /**
3
+ * mocks for specPage tests
4
+ */
5
+ global.MutationObserver = class {
6
+ constructor() {
7
+ this.observe = jest.fn();
8
+ this.disconnect = jest.fn();
9
+ this.takeRecords = jest.fn(() => []);
10
+ }
11
+ };
12
+ Object.defineProperty(MockHTMLElement.prototype, 'assignedElements', {
13
+ value: () => [],
14
+ configurable: true,
15
+ writable: true,
16
+ });
17
+ Object.defineProperty(MockHTMLElement.prototype, 'assignedNodes', {
18
+ value: () => [],
19
+ configurable: true,
20
+ writable: true,
21
+ });
22
+ //# sourceMappingURL=jest.setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.setup.js","sourceRoot":"","sources":["../jest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;GAEG;AAEH,MAAM,CAAC,gBAAgB,GAAG;IAAA;QACtB,YAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACpB,eAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QACvB,gBAAW,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;CAAsC,CAAC;AAExC,MAAM,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS,EAAE,kBAAkB,EAAE;IACjE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS,EAAE,eAAe,EAAE;IAC9D,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE;IACf,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC","sourcesContent":["import { MockHTMLElement } from '@stencil/core/mock-doc';\n\n/**\n * mocks for specPage tests\n */\n\nglobal.MutationObserver = class {\n observe = jest.fn();\n disconnect = jest.fn();\n takeRecords = jest.fn(() => []);\n} as unknown as typeof MutationObserver;\n\nObject.defineProperty(MockHTMLElement.prototype, 'assignedElements', {\n value: () => [],\n configurable: true,\n writable: true,\n});\n\nObject.defineProperty(MockHTMLElement.prototype, 'assignedNodes', {\n value: () => [],\n configurable: true,\n writable: true,\n});\n"]}
@@ -1,25 +1,25 @@
1
- import { r as t, c as o, g as i, h as e } from "./index-7a5365e2.js";
1
+ import { r as o, c as t, g as i, h as e } from "./index-7a5365e2.js";
2
2
 
3
- import { h as s, w as r } from "./index-d18e2a20.js";
3
+ import { h as s, w as r } from "./index-504f1a9e.js";
4
4
 
5
5
  const n = class {
6
6
  constructor(i) {
7
- t(this, i);
8
- this.change = o(this, "change", 7);
7
+ o(this, i);
8
+ this.change = t(this, "change", 7);
9
9
  // #region Own Properties
10
10
  this.isCurrentlyFocused = false;
11
11
  /**
12
12
  * Listens for mouse and window events that happen outside this click-elsewhere element so we can close popovers when users click outside them
13
13
  */ this.mouseEventList = [ "mousedown", "dragstart", "touchstart" ];
14
- this.mouseHandler = t => {
15
- const o = this.shadowContains(this.findActiveElement());
16
- const i = this.shadowContains(this.shadowEventTarget(t)) || this.originatesInSlots(t.target);
17
- if (!i && (this.isCurrentlyFocused || o)) {
14
+ this.mouseHandler = o => {
15
+ const t = this.shadowContains(this.findActiveElement());
16
+ const i = this.shadowContains(this.shadowEventTarget(o)) || this.originatesInSlots(o.target);
17
+ if (!i && (this.isCurrentlyFocused || t)) {
18
18
  this.isCurrentlyFocused = false;
19
19
  this.change.emit();
20
20
  return;
21
21
  }
22
- this.isCurrentlyFocused = i || o;
22
+ this.isCurrentlyFocused = i || t;
23
23
  };
24
24
  this.windowBlurHandler = () => {
25
25
  this.isCurrentlyFocused = false;
@@ -30,14 +30,14 @@ const n = class {
30
30
  // #region Component Lifecycle Events
31
31
  /* tslint:enable:no-empty */
32
32
  connectedCallback() {
33
- this.mouseEventList.forEach((t => {
34
- document.addEventListener(t, this.mouseHandler);
33
+ this.mouseEventList.forEach((o => {
34
+ document.addEventListener(o, this.mouseHandler);
35
35
  }));
36
36
  window.addEventListener("blur", this.windowBlurHandler);
37
37
  }
38
38
  disconnectedCallback() {
39
- this.mouseEventList.forEach((t => {
40
- document.removeEventListener(t, this.mouseHandler);
39
+ this.mouseEventList.forEach((o => {
40
+ document.removeEventListener(o, this.mouseHandler);
41
41
  }));
42
42
  window.removeEventListener("blur", this.windowBlurHandler);
43
43
  }
@@ -46,108 +46,127 @@ const n = class {
46
46
  // #endregion
47
47
  // #region Local Methods
48
48
  findActiveElement() {
49
- let t = document.activeElement;
49
+ let o = document.activeElement;
50
50
  while (true) {
51
- if (!t || !t.shadowRoot) {
52
- return t;
51
+ if (!o || !o.shadowRoot) {
52
+ return o;
53
53
  }
54
- t = t.shadowRoot.activeElement;
54
+ o = o.shadowRoot.activeElement;
55
55
  }
56
56
  }
57
- originatesInSlots(t) {
58
- const o = this.hostElement.querySelectorAll("slot");
59
- for (const i of Array.from(o)) {
60
- const o = i && i.assignedNodes && i.assignedNodes() || this.hostElement.childNodes;
61
- for (const i of Array.from(o)) {
62
- if (i.contains(t)) {
57
+ originatesInSlots(o) {
58
+ const t = this.hostElement.querySelectorAll("slot");
59
+ for (const i of Array.from(t)) {
60
+ const t = i && i.assignedNodes && i.assignedNodes() || this.hostElement.childNodes;
61
+ for (const i of Array.from(t)) {
62
+ if (i.contains(o)) {
63
63
  return true;
64
64
  }
65
65
  }
66
66
  }
67
67
  return false;
68
68
  }
69
- shadowContains(t) {
69
+ shadowContains(o) {
70
70
  /**
71
71
  * shadow-dom enabled version of Node.contains()
72
72
  */
73
73
  while (true) {
74
- if (t === this.hostElement) {
74
+ if (o === this.hostElement) {
75
75
  return true;
76
76
  }
77
- if (!t) {
77
+ if (!o) {
78
78
  return false;
79
79
  }
80
- t = t.parentNode || t.host;
80
+ o = o.parentNode || o.host;
81
81
  }
82
82
  }
83
- shadowEventTarget(t) {
84
- return t.composedPath()[0] || t.target;
83
+ shadowEventTarget(o) {
84
+ return o.composedPath()[0] || o.target;
85
85
  }
86
86
  get hostElement() {
87
87
  return i(this);
88
88
  }
89
89
  };
90
90
 
91
- const a = "*{box-sizing:border-box}*:active{outline:none}*:focus{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}.container{display:none}.show{display:block;position:fixed;z-index:var(--tct-popover-z-index, 50);margin:0;padding:0;overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));color:var(--tct-popover-font-color, var(--t-text, #4d4d4d));min-width:var(--tct-popover-min-width, 135px);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 0);--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}:host([block]) .show{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:host([align=left]) .show{left:var(--comp-pop-left);right:unset}:host([align=right]) .show{right:var(--comp-pop-right);left:unset}.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}.show.up{top:unset;bottom:var(--comp-pop-bottom)}.show.legacy{position:absolute}.show::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.show::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.show::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}click-elsewhere{position:relative;display:block}";
91
+ const p = "*{box-sizing:border-box}*:active{outline:none}*:focus{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}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}:popover-open,.show{position:absolute;margin:0;padding:0;overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));color:var(--tct-popover-font-color, var(--t-text, #4d4d4d));min-width:var(--tct-popover-min-width, 135px);margin-block:var(--tct-popover-margin-block, 0);box-shadow:var(--tct-popover-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14)));border-width:var(--tct-popover-border-width, 0);border-style:solid;border-color:var(--tct-popover-border-color, transparent);border-radius:var(--tct-popover-border-radius, 0);max-height:var(--comp-pop-max-height);left:var(--comp-pop-left);opacity:var(--comp-pop-opacity, 0);--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}:popover-open.block,.show.block{right:unset;width:var(--comp-pop-width);min-width:var(--tct-popover-min-width, unset)}:popover-open.left,.show.left{left:var(--comp-pop-left);right:unset}:popover-open.right,.show.right{right:var(--comp-pop-right);left:unset}:popover-open.down,.show.down{top:var(--tct-popover-top, var(--comp-pop-top));bottom:unset}:popover-open.up,.show.up{top:unset;bottom:var(--comp-pop-bottom)}:popover-open::-webkit-scrollbar,.show::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}:popover-open::-webkit-scrollbar-thumb,.show::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}:popover-open::-webkit-scrollbar-track,.show::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}click-elsewhere{position:relative;display:block}";
92
92
 
93
- const c = a;
93
+ const a = p;
94
94
 
95
- const p = class {
95
+ const c = class {
96
96
  constructor(i) {
97
- t(this, i);
98
- this.popoverStateChanged = o(this, "popoverStateChanged", 7);
97
+ o(this, i);
98
+ this.popoverStateChanged = t(this, "popoverStateChanged", 7);
99
99
  /**
100
100
  * The number of pixels to leave between the popover and the edge of the viewport
101
101
  */ this.displayBuffer = 10;
102
- /** remove when Popover API is supported in iOS */ this.orientationChanged = false;
102
+ this.orientationChanged = false;
103
103
  this.handleMinHeight = () => {
104
104
  if (this.minHeight) {
105
105
  s(this, "minHeight", "prop");
106
106
  }
107
107
  };
108
+ this.handlePopoverToggleEvent = o => {
109
+ this.popoverStateChanged.emit({
110
+ open: o.newState === "open"
111
+ });
112
+ };
108
113
  this.setAbsoluteCSSProperties = async () => {
109
- const {controlElement: t, containerElement: o, currentDirection: i, align: e} = this;
114
+ const {controlElement: o, containerElement: t, currentDirection: i, align: e} = this;
110
115
  if (e === "right") {
111
- o.style.setProperty("--comp-pop-right", "0");
112
- o.style.setProperty("--comp-pop-left", "unset");
116
+ t.style.setProperty("--comp-pop-right", "0");
117
+ t.style.setProperty("--comp-pop-left", "unset");
113
118
  } else {
114
- o.style.setProperty("--comp-pop-left", "0");
115
- o.style.setProperty("--comp-pop-right", "unset");
119
+ t.style.setProperty("--comp-pop-left", "0");
120
+ t.style.setProperty("--comp-pop-right", "unset");
116
121
  }
117
122
  if (this.block) {
118
- o.style.setProperty("--comp-pop-width", "100%");
123
+ t.style.setProperty("--comp-pop-width", "100%");
119
124
  }
120
125
  if (i === "up") {
121
- const i = getComputedStyle(t);
126
+ const i = getComputedStyle(o);
122
127
  const e = parseInt(i.height || "0") + parseInt(i.borderTopWidth || "0") + parseInt(i.borderBottomWidth || "0");
123
- o.style.setProperty("--comp-pop-bottom", `${e}px`);
128
+ t.style.setProperty("--comp-pop-bottom", `${e}px`);
124
129
  }
125
130
  // Wait for one paint to prevent layout thrashing
126
131
  await r();
127
- o.style.setProperty("--comp-pop-opacity", "1");
132
+ t.style.setProperty("--comp-pop-opacity", "1");
128
133
  };
129
- this.setFixedCSSProperties = async () => {
130
- var t, o;
131
- const {controlElement: i, containerElement: e, currentDirection: s, rootElementRect: n} = this;
132
- const {top: a, bottom: c, left: p, right: h} = (o = (t = i === null || i === void 0 ? void 0 : i.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(i)) !== null && o !== void 0 ? o : {
134
+ this.setPopoverAPICSSProperties = async () => {
135
+ var o, t, i, e, s, n;
136
+ const {controlElement: p, containerElement: a, currentDirection: c, isModule: l, align: h} = this;
137
+ const {top: d, bottom: u, left: w, right: v} = (t = (o = p === null || p === void 0 ? void 0 : p.getBoundingClientRect) === null || o === void 0 ? void 0 : o.call(p)) !== null && t !== void 0 ? t : {
133
138
  top: 0,
134
139
  bottom: 0,
135
140
  left: 0,
136
141
  right: 0
137
142
  };
138
- const d = p - n.left;
139
- if (this.block) e.style.setProperty("--comp-pop-width", `${(i === null || i === void 0 ? void 0 : i.offsetWidth) || 0}px`);
140
- e.style.setProperty("--comp-pop-left", `${d}px`);
141
- e.style.setProperty("--comp-pop-right", `${n.width + n.left - h}px`);
142
- if (s === "up") {
143
- e.style.setProperty("--comp-pop-bottom", `${n.height + n.top - a}px`);
143
+ const b = w;
144
+ const f = ((i = window === null || window === void 0 ? void 0 : window.visualViewport) === null || i === void 0 ? void 0 : i.width) - v;
145
+ if (h === "right") {
146
+ a.style.setProperty("--comp-pop-right", `${f - window.scrollX}px`);
147
+ a.style.setProperty("--comp-pop-left", "unset");
148
+ } else {
149
+ a.style.setProperty("--comp-pop-left", `${b + window.scrollX}px`);
150
+ a.style.setProperty("--comp-pop-right", "unset");
151
+ }
152
+ if (this.block) a.style.setProperty("--comp-pop-width", `${(p === null || p === void 0 ? void 0 : p.offsetWidth) || 0}px`);
153
+ if (c === "up") {
154
+ if (l) {
155
+ a.style.setProperty("--comp-pop-bottom", `${window.innerHeight - d}px`);
156
+ } else {
157
+ a.style.setProperty("--comp-pop-bottom", `${window.innerHeight - d - ((e = window === null || window === void 0 ? void 0 : window.visualViewport) === null || e === void 0 ? void 0 : e.offsetTop) - window.scrollY}px`);
158
+ }
144
159
  }
145
- if (s === "down") {
146
- e.style.setProperty("--comp-pop-top", `${c - n.top}px`);
160
+ if (c === "down") {
161
+ if (l) {
162
+ a.style.setProperty("--comp-pop-top", `${u}px`);
163
+ } else {
164
+ a.style.setProperty("--comp-pop-top", `${u + ((n = (s = window === null || window === void 0 ? void 0 : window.visualViewport) === null || s === void 0 ? void 0 : s.offsetTop) !== null && n !== void 0 ? n : 0) + window.scrollY}px`);
165
+ }
147
166
  }
148
167
  // Wait for one paint to prevent layout thrashing
149
168
  await r();
150
- e.style.setProperty("--comp-pop-opacity", "1");
169
+ a.style.setProperty("--comp-pop-opacity", "1");
151
170
  };
152
171
  this.viewPortChanged = () => {
153
172
  if (!this.open) return;
@@ -159,7 +178,7 @@ const p = class {
159
178
  };
160
179
  this.currentDirection = undefined;
161
180
  this.show = false;
162
- this.align = undefined;
181
+ this.align = "left";
163
182
  this.block = undefined;
164
183
  this.controlElement = undefined;
165
184
  this.direction = undefined;
@@ -172,23 +191,34 @@ const p = class {
172
191
  // #region Component Lifecycle Events
173
192
  disconnectedCallback() {
174
193
  this.removeViewportListeners();
194
+ this.containerElement.removeEventListener("toggle", this.handlePopoverToggleEvent);
195
+ this.containerElement = null;
196
+ this.contentElement = null;
197
+ this.controlElement = null;
198
+ }
199
+ componentWillLoad() {
200
+ if (!this.supportsPopoverAPI) {
201
+ console.warn("The Popover API is not supported in this browser. Please update your browser to the latest version. The component will use legacy mode.");
202
+ this.mode = "legacy";
203
+ }
175
204
  }
176
205
  componentDidLoad() {
177
206
  this.handleMinHeight();
207
+ if (this.supportsPopoverAPI) this.containerElement.addEventListener("toggle", this.handlePopoverToggleEvent);
178
208
  if (this.open) this.determinePopDirection();
179
209
  }
180
210
  // #endregion
181
211
  // #region Listeners
182
- popoverStateHandler(t) {
183
- const {detail: {open: o}} = t;
184
- if (o === this.open) return;
185
- this.open = o;
186
- t.stopPropagation();
212
+ popoverStateHandler(o) {
213
+ const {detail: {open: t}} = o;
214
+ if (t === this.open) return;
215
+ this.open = t;
216
+ o.stopPropagation();
187
217
  }
188
218
  // #endregion
189
219
  // #region Public Methods API
190
- async scrollContainerTo(t) {
191
- this.containerElement.scrollTo(t);
220
+ async scrollContainerTo(o) {
221
+ this.containerElement.scrollTo(o);
192
222
  }
193
223
  async toggle() {
194
224
  this.open = !this.open;
@@ -198,18 +228,21 @@ const p = class {
198
228
  minHeightProvided() {
199
229
  this.handleMinHeight();
200
230
  }
201
- async openChanged(t) {
202
- this.setRootElement();
231
+ async openChanged(o) {
203
232
  this.popoverStateChanged.emit({
204
- open: t
233
+ open: o
205
234
  });
206
- if (t) {
235
+ if (o) {
207
236
  this.addViewportListeners();
208
237
  this.determinePopDirection();
209
238
  } else {
210
239
  this.removeViewportListeners();
211
240
  this.currentDirection = undefined;
212
- this.show = false;
241
+ if (this.mode === "legacy" || !this.supportsPopoverAPI) {
242
+ this.show = false;
243
+ } else {
244
+ this.containerElement.hidePopover();
245
+ }
213
246
  await r();
214
247
  this.clearCSSProperties();
215
248
  }
@@ -217,38 +250,40 @@ const p = class {
217
250
  // #endregion
218
251
  // #region Local Methods
219
252
  get isModule() {
220
- var t, o;
253
+ var o, t;
221
254
  const i = window !== window.top;
222
- const e = Object.keys((o = (t = window.Tecton) === null || t === void 0 ? void 0 : t.platformDimensions) !== null && o !== void 0 ? o : {}).length > 0;
255
+ const e = Object.keys((t = (o = window.Tecton) === null || o === void 0 ? void 0 : o.platformDimensions) !== null && t !== void 0 ? t : {}).length > 0;
223
256
  return i && e;
224
257
  }
225
258
  get providedDirection() {
226
- const {direction: t} = this;
227
- switch (t) {
259
+ const {direction: o} = this;
260
+ switch (o) {
228
261
  case "up":
229
262
  case "down":
230
- return t;
263
+ return o;
231
264
 
232
265
  default:
233
266
  return undefined;
234
267
  }
235
268
  }
269
+ get supportsPopoverAPI() {
270
+ return Object.hasOwn(HTMLElement.prototype, "popover");
271
+ }
236
272
  get validatedMaxHeight() {
237
- const {maxHeight: t} = this;
238
- return isNaN(t) ? undefined : t;
273
+ const {maxHeight: o} = this;
274
+ return isNaN(o) ? undefined : o;
239
275
  }
240
276
  addViewportListeners() {
241
- var t;
277
+ var o;
242
278
  window.addEventListener("resize", this.viewPortOrientationChanged);
243
- // #region remove when Popover API is supported in iOS
244
- window.addEventListener("scroll", this.viewPortChanged, {
279
+ visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener("resize", this.viewPortChanged);
280
+ window.addEventListener("scroll", this.viewPortChanged, {
245
281
  passive: true,
246
282
  capture: true
247
283
  });
248
- (t = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || t === void 0 ? void 0 : t.addEventListener("change", this.viewPortOrientationChanged);
284
+ (o = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || o === void 0 ? void 0 : o.addEventListener("orientationchange", this.viewPortOrientationChanged);
249
285
  window.addEventListener("orientationchange", this.viewPortOrientationChanged);
250
- // #endregion
251
- }
286
+ }
252
287
  clearCSSProperties() {
253
288
  this.containerElement.style.removeProperty("--comp-pop-max-height");
254
289
  this.containerElement.style.removeProperty("--comp-pop-top");
@@ -259,126 +294,103 @@ const p = class {
259
294
  this.containerElement.style.removeProperty("--comp-pop-opacity");
260
295
  }
261
296
  async determinePopDirection() {
262
- var t, o, i;
263
- const {containerElement: e, controlElement: s, providedDirection: n, displayBuffer: a} = this;
297
+ var o, t, i;
298
+ const {containerElement: e, controlElement: s, providedDirection: n, displayBuffer: p} = this;
264
299
  if (e) e.style.maxHeight = null;
265
300
  await r();
266
- const {isModule: c} = this;
267
- const {top: p, bottom: h} = (o = (t = s === null || s === void 0 ? void 0 : s.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(s)) !== null && o !== void 0 ? o : {
301
+ const {isModule: a} = this;
302
+ const {top: c, bottom: l} = (t = (o = s === null || s === void 0 ? void 0 : s.getBoundingClientRect) === null || o === void 0 ? void 0 : o.call(s)) !== null && t !== void 0 ? t : {
268
303
  top: 0,
269
304
  bottom: 0
270
305
  };
306
+ let h;
271
307
  let d;
272
- let l;
273
308
  let u;
274
- if (c) {
275
- const {outletOffset: t = 0, innerHeight: o = window.innerHeight} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
276
- const e = window.visualViewport.height - h;
277
- const s = o - (t + h);
309
+ if (a) {
310
+ const {outletOffset: o = 0, innerHeight: t = window.innerHeight} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
311
+ const e = window.visualViewport.height - l;
312
+ const s = t - (o + l);
278
313
  const r = e < s;
279
- d = o;
314
+ h = t;
280
315
  // If the top of the module is below the top of the window we just use the controlTop
281
316
  // Otherwise we need to add the outletOffset to the controlTop
282
- l = (t > 0 ? p : p + t) - a;
283
- u = r ? e - a : s - a;
317
+ d = (o > 0 ? c : c + o) - p;
318
+ u = r ? e - p : s - p;
284
319
  } else {
285
- d = window.visualViewport.height;
286
- l = p - a;
287
- u = d - h - a;
320
+ h = window.visualViewport.height;
321
+ d = c - p;
322
+ u = h - l - p;
288
323
  }
289
- const f = l > u ? "up" : "down";
324
+ const w = d > u ? "up" : "down";
290
325
  // We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)
291
- const w = !e.style.getPropertyValue("--comp-pop-max-height") || this.orientationChanged;
326
+ const v = !e.style.getPropertyValue("--comp-pop-max-height") || this.orientationChanged;
292
327
  // we do not want to constantly update the max-height after an orientation change, so we switch this back to false
293
328
  this.orientationChanged = false;
294
- const m = this.currentDirection || n || f;
295
- switch (m) {
329
+ const b = this.currentDirection || n || w;
330
+ switch (b) {
296
331
  case "up":
297
- if (w) {
298
- const t = this.validatedMaxHeight || l;
299
- const o = Math.min(l, t);
300
- e.style.setProperty("--comp-pop-max-height", `${o}px`);
332
+ if (v) {
333
+ const o = this.validatedMaxHeight || d;
334
+ const t = Math.min(d, o);
335
+ e.style.setProperty("--comp-pop-max-height", `${t}px`);
301
336
  }
302
337
  this.setDirectionAndShow("up");
303
338
  break;
304
339
 
305
340
  case "down":
306
- if (w) {
307
- const t = this.validatedMaxHeight || u;
308
- const o = Math.min(u, t);
309
- e.style.setProperty("--comp-pop-max-height", `${o}px`);
341
+ if (v) {
342
+ const o = this.validatedMaxHeight || u;
343
+ const t = Math.min(u, o);
344
+ e.style.setProperty("--comp-pop-max-height", `${t}px`);
310
345
  }
311
346
  this.setDirectionAndShow("down");
312
347
  break;
313
348
  }
314
349
  }
315
350
  removeViewportListeners() {
316
- var t;
351
+ var o;
317
352
  window.removeEventListener("resize", this.viewPortOrientationChanged);
318
- // #region remove when Popover API is supported in iOS
319
- window.removeEventListener("scroll", this.viewPortChanged);
320
- (t = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || t === void 0 ? void 0 : t.removeEventListener("orientationchange", this.viewPortOrientationChanged);
353
+ visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener("resize", this.viewPortChanged);
354
+ window.removeEventListener("scroll", this.viewPortChanged, {
355
+ capture: true
356
+ });
357
+ (o = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || o === void 0 ? void 0 : o.removeEventListener("orientationchange", this.viewPortOrientationChanged);
321
358
  window.removeEventListener("orientationchange", this.viewPortOrientationChanged);
322
- // #endregion
323
- }
324
- setDirectionAndShow(t) {
325
- this.setRootElement();
359
+ }
360
+ setDirectionAndShow(o) {
326
361
  // Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
327
362
  // popover can be closed between the time the popover is opened and the time the direction is determined
328
- const o = this.open;
329
- if (!o) return;
330
- this.currentDirection = t;
331
- this.show = true;
332
- if (this.mode === "legacy") {
363
+ const t = this.open;
364
+ if (!t) return;
365
+ this.currentDirection = o;
366
+ if (this.mode === "legacy" || !this.supportsPopoverAPI) {
367
+ this.show = true;
333
368
  this.setAbsoluteCSSProperties();
334
369
  } else {
335
- this.setFixedCSSProperties();
336
- }
337
- }
338
- setRootElement() {
339
- let t = this.hostElement;
340
- while (t && t !== document.documentElement) {
341
- const o = window.getComputedStyle(t);
342
- // Check if the element has any styles applied that create a new containg block
343
- if (o.transform !== "none" || o.filter !== "none" || o.perspective !== "none" || o.containerType !== "normal" || [ "transform", "perspective", "filter" ].includes(o.willChange) || [ "layout", "paint", "strict", "content" ].includes(o.contain)) {
344
- this.rootElementRect = t.getBoundingClientRect();
345
- return;
346
- }
347
- const i = t.getRootNode();
348
- const e = typeof ShadowRoot !== "undefined" && i instanceof ShadowRoot && i.host instanceof HTMLElement;
349
- if (e) {
350
- t = i.host;
351
- } else {
352
- t = t.parentElement;
353
- }
370
+ this.setPopoverAPICSSProperties();
371
+ this.containerElement.showPopover();
354
372
  }
355
- // Return the document's bounding rect if no element is found
356
- this.rootElementRect = {
357
- top: 0,
358
- bottom: 0,
359
- left: 0,
360
- right: 0,
361
- height: window.visualViewport.height,
362
- width: window.visualViewport.width
363
- };
364
373
  }
365
374
  // #endregion
366
375
  // #region Render Methods
367
376
  render() {
368
- const t = [ "container", this.currentDirection ];
369
- if (this.show) t.push("show");
370
- if (this.mode === "legacy") t.push("legacy");
377
+ const o = [ "container", this.currentDirection, this.align ];
378
+ if (this.show) o.push("show");
379
+ if (this.block) o.push("block");
380
+ if (this.mode === "legacy") o.push("legacy");
371
381
  return e("div", {
372
- key: "ea60a3f8f2005cd25dac56ac3c681aa5dbc27111",
373
- ref: t => this.containerElement = t,
374
- class: t.join(" "),
375
- "test-id": "outerContainer"
382
+ key: "acaaed8fe34bb4ee949c4032be9a08b61a28b238",
383
+ ref: o => this.containerElement = o,
384
+ class: o.join(" "),
385
+ "test-id": "outerContainer",
386
+ tabIndex: -1,
387
+ popover: "auto"
376
388
  }, e("div", {
377
- key: "92041f64b8d066240de5653f9035bb9165697525",
378
- ref: t => this.contentElement = t,
389
+ key: "b8e93864b158caa9e9e2cde64a84d9ea9288b761",
390
+ ref: o => this.contentElement = o,
379
391
  class: "content"
380
392
  }, e("slot", {
381
- key: "65db5e767d8992e8c084c045094306b6be42879f"
393
+ key: "e43fee80ed07626f26aba98271c8408f9d69a37e"
382
394
  })));
383
395
  }
384
396
  get hostElement() {
@@ -392,7 +404,7 @@ const p = class {
392
404
  }
393
405
  };
394
406
 
395
- p.style = c;
407
+ c.style = a;
396
408
 
397
- export { n as click_elsewhere, p as q2_popover };
409
+ export { n as click_elsewhere, c as q2_popover };
398
410
  //# sourceMappingURL=click-elsewhere_2.entry.js.map