q2-tecton-elements 1.67.0 → 1.67.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 (294) hide show
  1. package/dist/bundle-report.json +450 -495
  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 +49 -33
  4. package/dist/cjs/click-elsewhere_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/q2-action-group_2.cjs.entry.js +2 -2
  7. package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
  8. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-btn.q2-loading.entry.cjs.js.map +1 -1
  10. package/dist/cjs/q2-btn_2.cjs.entry.js +4 -2
  11. package/dist/cjs/q2-btn_2.cjs.entry.js.map +1 -1
  12. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-card-image.cjs.entry.js +2 -2
  14. package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
  15. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  16. package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
  18. package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-checkbox.q2-tag.entry.cjs.js.map +1 -1
  21. package/dist/cjs/q2-checkbox_2.cjs.entry.js +41 -11
  22. package/dist/cjs/q2-checkbox_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/q2-context.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-detail.cjs.entry.js +1 -1
  27. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  28. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-form.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  32. package/dist/cjs/q2-grid-area.cjs.entry.js +1 -1
  33. package/dist/cjs/q2-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/q2-input.cjs.entry.js +1 -1
  35. package/dist/cjs/q2-item.cjs.entry.js +1 -1
  36. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-link_2.cjs.entry.js +1 -1
  38. package/dist/cjs/q2-message.cjs.entry.js +1 -1
  39. package/dist/cjs/q2-meter.cjs.entry.js +1 -1
  40. package/dist/cjs/q2-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
  42. package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
  43. package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
  44. package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
  45. package/dist/cjs/q2-pill.cjs.entry.js +1 -1
  46. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  47. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  48. package/dist/cjs/q2-relative-time.cjs.entry.js +1 -1
  49. package/dist/cjs/q2-section.cjs.entry.js +2 -2
  50. package/dist/cjs/q2-select.cjs.entry.js +1 -1
  51. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  52. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
  53. package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
  54. package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
  55. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  56. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  57. package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
  58. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  59. package/dist/collection/collection-manifest.json +3 -3
  60. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  61. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  62. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  63. package/dist/collection/components/q2-btn/q2-btn.js +4 -2
  64. package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
  65. package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
  66. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  67. package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
  68. package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
  69. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  70. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  71. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  72. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  73. package/dist/collection/components/q2-checkbox/q2-checkbox.css +5 -1
  74. package/dist/collection/components/q2-checkbox/q2-checkbox.js +45 -10
  75. package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
  76. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
  77. package/dist/collection/components/q2-context/q2-context.js +1 -1
  78. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  79. package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
  80. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  81. package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
  82. package/dist/collection/components/q2-editable-field/q2-editable-field.js +2 -2
  83. package/dist/collection/components/q2-example/q2-example.js +1 -1
  84. package/dist/collection/components/q2-form/q2-form.js +1 -1
  85. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  86. package/dist/collection/components/q2-grid/q2-grid.js +31 -31
  87. package/dist/collection/components/q2-grid-area/q2-grid-area.js +43 -43
  88. package/dist/collection/components/q2-input/q2-input.js +3 -3
  89. package/dist/collection/components/q2-item/q2-item.js +1 -1
  90. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  91. package/dist/collection/components/q2-list/q2-list.js +1 -1
  92. package/dist/collection/components/q2-message/q2-message.js +1 -1
  93. package/dist/collection/components/q2-meter/q2-meter.js +1 -1
  94. package/dist/collection/components/q2-modal/q2-modal.js +1 -1
  95. package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
  96. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  97. package/dist/collection/components/q2-option-list/q2-option-list.js +6 -6
  98. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  99. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  100. package/dist/collection/components/q2-popover/q2-popover.js +48 -52
  101. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  102. package/dist/collection/components/q2-radio/q2-radio.js +1 -1
  103. package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
  104. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  105. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  106. package/dist/collection/components/q2-section/q2-section.js +2 -2
  107. package/dist/collection/components/q2-select/q2-select.js +1 -1
  108. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  109. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
  110. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  111. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  112. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  113. package/dist/collection/components/q2-tag/q2-tag.js +1 -1
  114. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  115. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  116. package/dist/components/q2-action-group2.js +1 -1
  117. package/dist/components/q2-action-sheet.js +1 -1
  118. package/dist/components/q2-avatar2.js +1 -1
  119. package/dist/components/q2-btn2.js +4 -2
  120. package/dist/components/q2-btn2.js.map +1 -1
  121. package/dist/components/q2-calendar.js +1 -1
  122. package/dist/components/q2-card-image.js +2 -2
  123. package/dist/components/q2-carousel-pane.js +2 -2
  124. package/dist/components/q2-carousel.js +1 -1
  125. package/dist/components/q2-chart-area.js +1 -1
  126. package/dist/components/q2-chart-bar.js +1 -1
  127. package/dist/components/q2-chart-donut.js +1 -1
  128. package/dist/components/q2-checkbox-group.js +1 -1
  129. package/dist/components/q2-checkbox2.js +42 -11
  130. package/dist/components/q2-checkbox2.js.map +1 -1
  131. package/dist/components/q2-context.js +1 -1
  132. package/dist/components/q2-currency.js +1 -1
  133. package/dist/components/q2-data-table.js +1 -1
  134. package/dist/components/q2-detail.js +1 -1
  135. package/dist/components/q2-dropdown.js +1 -1
  136. package/dist/components/q2-editable-field.js +1 -1
  137. package/dist/components/q2-example.js +1 -1
  138. package/dist/components/q2-form.js +1 -1
  139. package/dist/components/q2-formatted-text.js +1 -1
  140. package/dist/components/q2-grid-area.js +1 -1
  141. package/dist/components/q2-grid.js +1 -1
  142. package/dist/components/q2-input2.js +1 -1
  143. package/dist/components/q2-item2.js +1 -1
  144. package/dist/components/q2-legend2.js +1 -1
  145. package/dist/components/q2-list2.js +1 -1
  146. package/dist/components/q2-message2.js +1 -1
  147. package/dist/components/q2-meter.js +1 -1
  148. package/dist/components/q2-modal.js +1 -1
  149. package/dist/components/q2-month-picker.js +2 -2
  150. package/dist/components/q2-mutation-observer.js +1 -1
  151. package/dist/components/q2-optgroup2.js +1 -1
  152. package/dist/components/q2-option-list2.js +1 -1
  153. package/dist/components/q2-pagination.js +3 -3
  154. package/dist/components/q2-pill.js +1 -1
  155. package/dist/components/q2-popover2.js +48 -33
  156. package/dist/components/q2-popover2.js.map +1 -1
  157. package/dist/components/q2-radio-group.js +1 -1
  158. package/dist/components/q2-radio.js +1 -1
  159. package/dist/components/q2-relative-time.js +1 -1
  160. package/dist/components/q2-resize-observer2.js +1 -1
  161. package/dist/components/q2-section.js +2 -2
  162. package/dist/components/q2-select2.js +1 -1
  163. package/dist/components/q2-stepper-pane.js +1 -1
  164. package/dist/components/q2-stepper-vertical.js +1 -1
  165. package/dist/components/q2-stepper.js +1 -1
  166. package/dist/components/q2-tab-container.js +1 -1
  167. package/dist/components/q2-tab-pane.js +1 -1
  168. package/dist/components/q2-tag2.js +1 -1
  169. package/dist/components/q2-textarea.js +1 -1
  170. package/dist/components/tecton-tab-pane.js +2 -2
  171. package/dist/esm/click-elsewhere.q2-option-list.q2-popover.entry.js.map +1 -1
  172. package/dist/esm/click-elsewhere_3.entry.js +49 -33
  173. package/dist/esm/click-elsewhere_3.entry.js.map +1 -1
  174. package/dist/esm/loader.js +1 -1
  175. package/dist/esm/q2-action-group_2.entry.js +2 -2
  176. package/dist/esm/q2-action-sheet.entry.js +1 -1
  177. package/dist/esm/q2-avatar.entry.js +1 -1
  178. package/dist/esm/q2-btn.q2-loading.entry.js.map +1 -1
  179. package/dist/esm/q2-btn_2.entry.js +4 -2
  180. package/dist/esm/q2-btn_2.entry.js.map +1 -1
  181. package/dist/esm/q2-calendar.entry.js +1 -1
  182. package/dist/esm/q2-card-image.entry.js +2 -2
  183. package/dist/esm/q2-carousel-pane.entry.js +2 -2
  184. package/dist/esm/q2-carousel.entry.js +1 -1
  185. package/dist/esm/q2-chart-area.entry.js +1 -1
  186. package/dist/esm/q2-chart-bar.entry.js +1 -1
  187. package/dist/esm/q2-chart-donut.entry.js +1 -1
  188. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  189. package/dist/esm/q2-checkbox.q2-tag.entry.js.map +1 -1
  190. package/dist/esm/q2-checkbox_2.entry.js +41 -11
  191. package/dist/esm/q2-checkbox_2.entry.js.map +1 -1
  192. package/dist/esm/q2-context.entry.js +1 -1
  193. package/dist/esm/q2-currency.entry.js +1 -1
  194. package/dist/esm/q2-data-table.entry.js +1 -1
  195. package/dist/esm/q2-detail.entry.js +1 -1
  196. package/dist/esm/q2-dropdown.entry.js +1 -1
  197. package/dist/esm/q2-editable-field.entry.js +1 -1
  198. package/dist/esm/q2-example.entry.js +1 -1
  199. package/dist/esm/q2-form.entry.js +1 -1
  200. package/dist/esm/q2-formatted-text.entry.js +1 -1
  201. package/dist/esm/q2-grid-area.entry.js +1 -1
  202. package/dist/esm/q2-grid.entry.js +1 -1
  203. package/dist/esm/q2-input.entry.js +1 -1
  204. package/dist/esm/q2-item.entry.js +1 -1
  205. package/dist/esm/q2-legend.entry.js +1 -1
  206. package/dist/esm/q2-link_2.entry.js +1 -1
  207. package/dist/esm/q2-message.entry.js +1 -1
  208. package/dist/esm/q2-meter.entry.js +1 -1
  209. package/dist/esm/q2-modal.entry.js +1 -1
  210. package/dist/esm/q2-month-picker.entry.js +2 -2
  211. package/dist/esm/q2-mutation-observer.entry.js +1 -1
  212. package/dist/esm/q2-optgroup.entry.js +1 -1
  213. package/dist/esm/q2-pagination.entry.js +3 -3
  214. package/dist/esm/q2-pill.entry.js +1 -1
  215. package/dist/esm/q2-radio-group.entry.js +1 -1
  216. package/dist/esm/q2-radio.entry.js +1 -1
  217. package/dist/esm/q2-relative-time.entry.js +1 -1
  218. package/dist/esm/q2-section.entry.js +2 -2
  219. package/dist/esm/q2-select.entry.js +1 -1
  220. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  221. package/dist/esm/q2-stepper-vertical.entry.js +1 -1
  222. package/dist/esm/q2-stepper.entry.js +1 -1
  223. package/dist/esm/q2-tab-container.entry.js +1 -1
  224. package/dist/esm/q2-tab-pane.entry.js +1 -1
  225. package/dist/esm/q2-tecton-elements.js +1 -1
  226. package/dist/esm/q2-textarea.entry.js +1 -1
  227. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  228. package/dist/q2-tecton-elements/click-elsewhere.q2-option-list.q2-popover.entry.esm.js.map +1 -1
  229. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +212 -200
  230. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js.map +1 -1
  231. package/dist/q2-tecton-elements/q2-action-group_2.entry.js +4 -4
  232. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +40 -40
  233. package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
  234. package/dist/q2-tecton-elements/q2-btn.q2-loading.entry.esm.js.map +1 -1
  235. package/dist/q2-tecton-elements/q2-btn_2.entry.js +4 -2
  236. package/dist/q2-tecton-elements/q2-btn_2.entry.js.map +1 -1
  237. package/dist/q2-tecton-elements/q2-calendar.entry.js +2 -2
  238. package/dist/q2-tecton-elements/q2-card-image.entry.js +2 -2
  239. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
  240. package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
  241. package/dist/q2-tecton-elements/q2-chart-area.entry.js +6 -6
  242. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +2 -2
  243. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +14 -14
  244. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +6 -6
  245. package/dist/q2-tecton-elements/q2-checkbox.q2-tag.entry.esm.js.map +1 -1
  246. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +70 -28
  247. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js.map +1 -1
  248. package/dist/q2-tecton-elements/q2-context.entry.js +11 -11
  249. package/dist/q2-tecton-elements/q2-currency.entry.js +11 -11
  250. package/dist/q2-tecton-elements/q2-data-table.entry.js +3 -3
  251. package/dist/q2-tecton-elements/q2-detail.entry.js +3 -3
  252. package/dist/q2-tecton-elements/q2-dropdown.entry.js +69 -69
  253. package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
  254. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  255. package/dist/q2-tecton-elements/q2-form.entry.js +7 -7
  256. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  257. package/dist/q2-tecton-elements/q2-grid-area.entry.js +2 -2
  258. package/dist/q2-tecton-elements/q2-grid.entry.js +3 -3
  259. package/dist/q2-tecton-elements/q2-input.entry.js +3 -3
  260. package/dist/q2-tecton-elements/q2-item.entry.js +21 -21
  261. package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
  262. package/dist/q2-tecton-elements/q2-link_2.entry.js +6 -6
  263. package/dist/q2-tecton-elements/q2-message.entry.js +6 -6
  264. package/dist/q2-tecton-elements/q2-meter.entry.js +13 -13
  265. package/dist/q2-tecton-elements/q2-modal.entry.js +21 -21
  266. package/dist/q2-tecton-elements/q2-month-picker.entry.js +81 -81
  267. package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
  268. package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
  269. package/dist/q2-tecton-elements/q2-pagination.entry.js +26 -26
  270. package/dist/q2-tecton-elements/q2-pill.entry.js +36 -36
  271. package/dist/q2-tecton-elements/q2-radio-group.entry.js +21 -21
  272. package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
  273. package/dist/q2-tecton-elements/q2-relative-time.entry.js +1 -1
  274. package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
  275. package/dist/q2-tecton-elements/q2-select.entry.js +1 -1
  276. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +8 -8
  277. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +4 -4
  278. package/dist/q2-tecton-elements/q2-stepper.entry.js +25 -25
  279. package/dist/q2-tecton-elements/q2-tab-container.entry.js +17 -17
  280. package/dist/q2-tecton-elements/q2-tab-pane.entry.js +2 -2
  281. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  282. package/dist/q2-tecton-elements/q2-textarea.entry.js +2 -2
  283. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +6 -6
  284. package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +8 -1
  285. package/dist/types/components/q2-popover/q2-popover.d.ts +1 -6
  286. package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +1 -1
  287. package/dist/types/components.d.ts +0 -10
  288. package/package.json +71 -69
  289. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/jest.e2e-coverage.d.ts +0 -0
  290. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
  291. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/scripts/docs-generator/index.d.ts +0 -0
  292. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/scripts/docs-generator/markdown-generator.d.ts +0 -0
  293. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/scripts/docs-generator/tag-handlers.d.ts +0 -0
  294. /package/dist/types/{Users/kvanhouten/Documents/Work/tecton_extra → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/scripts/docs-generator/types.d.ts +0 -0
@@ -1,30 +1,30 @@
1
- import { r as t, c as e, g as i, h as o, H as s } from "./index-CGkHOjh1.js";
1
+ import { r as t, c as i, g as e, h as o, H as s } from "./index-CGkHOjh1.js";
2
2
 
3
3
  import { m as n } from "./mirror-emit-DUjY_ucm.js";
4
4
 
5
5
  import { b as r } from "./component-DVxzK3WH.js";
6
6
 
7
- import { l as a, n as h, o as c, i as p, w as l, v as d, q as u, x as f, g as m } from "./index-C4PILj1_.js";
7
+ import { l as a, n as h, o as c, i as l, w as p, v as d, q as u, x as f, g as m } from "./index-C4PILj1_.js";
8
8
 
9
9
  const b = class {
10
- constructor(i) {
11
- t(this, i);
12
- this.change = e(this, "change", 7);
13
- this.tctChange = e(this, "tctChange", 7);
10
+ constructor(e) {
11
+ t(this, e);
12
+ this.change = i(this, "change", 7);
13
+ this.tctChange = i(this, "tctChange", 7);
14
14
  // #region Own Properties
15
15
  this.isCurrentlyFocused = false;
16
16
  /**
17
17
  * Listens for mouse and window events that happen outside this click-elsewhere element so we can close popovers when users click outside them
18
18
  */ this.mouseEventList = [ "mousedown", "dragstart", "touchstart" ];
19
19
  this.mouseHandler = t => {
20
- const e = this.shadowContains(this.findActiveElement());
21
- const i = this.shadowContains(this.shadowEventTarget(t)) || this.originatesInSlots(t.target);
22
- if (!i && (this.isCurrentlyFocused || e)) {
20
+ const i = this.shadowContains(this.findActiveElement());
21
+ const e = this.shadowContains(this.shadowEventTarget(t)) || this.originatesInSlots(t.target);
22
+ if (!e && (this.isCurrentlyFocused || i)) {
23
23
  this.isCurrentlyFocused = false;
24
24
  n(this, [ "change", "tctChange" ]);
25
25
  return;
26
26
  }
27
- this.isCurrentlyFocused = i || e;
27
+ this.isCurrentlyFocused = e || i;
28
28
  };
29
29
  this.windowBlurHandler = () => {
30
30
  this.isCurrentlyFocused = false;
@@ -60,11 +60,11 @@ const b = class {
60
60
  }
61
61
  }
62
62
  originatesInSlots(t) {
63
- const e = this.hostElement.querySelectorAll("slot");
64
- for (const i of Array.from(e)) {
65
- const e = i && i.assignedNodes && i.assignedNodes() || this.hostElement.childNodes;
66
- for (const i of Array.from(e)) {
67
- if (i.contains(t)) {
63
+ const i = this.hostElement.querySelectorAll("slot");
64
+ for (const e of Array.from(i)) {
65
+ const i = e && e.assignedNodes && e.assignedNodes() || this.hostElement.childNodes;
66
+ for (const e of Array.from(i)) {
67
+ if (e.contains(t)) {
68
68
  return true;
69
69
  }
70
70
  }
@@ -89,7 +89,7 @@ const b = class {
89
89
  return t.composedPath()[0] || t.target;
90
90
  }
91
91
  get hostElement() {
92
- return i(this);
92
+ return e(this);
93
93
  }
94
94
  };
95
95
 
@@ -100,12 +100,12 @@ function sanitizeRegexString(t) {
100
100
  const v = "*{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{position:relative;width:100%;display:block;line-height:var(--tct-option-list-line-height, var(--t-option-list-line-height, var(--app-line-height, 1.428571429em)))}.content{text-align:start}:host([is-sizeable]) .content{display:block;height:auto}";
101
101
 
102
102
  const w = class {
103
- constructor(i) {
104
- t(this, i);
105
- this.change = e(this, "change", 7);
106
- this.popoverState = e(this, "popoverState", 7);
107
- this.ready = e(this, "ready", 3);
108
- this.tctChange = e(this, "tctChange", 7);
103
+ constructor(e) {
104
+ t(this, e);
105
+ this.change = i(this, "change", 7);
106
+ this.popoverState = i(this, "popoverState", 7);
107
+ this.ready = i(this, "ready", 3);
108
+ this.tctChange = i(this, "tctChange", 7);
109
109
  this.keyStore = {
110
110
  queue: [],
111
111
  lastPressedAt: new Date
@@ -115,9 +115,9 @@ const w = class {
115
115
  /** A list of the selected options on the element. */ this.selectedOptions = [];
116
116
  /** Translates to the role of the option list */ this.type = "listbox";
117
117
  this.clickHandler = t => {
118
- const e = t.target;
119
- const i = e.closest("q2-option:not([separator]):not([separator=true]), q2-dropdown-item:not([separator]):not([separator=true])");
120
- this.selectOption(i);
118
+ const i = t.target;
119
+ const e = i.closest("q2-option:not([separator]):not([separator=true]), q2-dropdown-item:not([separator]):not([separator=true])");
120
+ this.selectOption(e);
121
121
  if (this.multiple) return;
122
122
  this.popoverState.emit({
123
123
  open: false,
@@ -125,18 +125,18 @@ const w = class {
125
125
  });
126
126
  };
127
127
  /* tslint:disable:cyclomatic-complexity */ this.externalKeydownHandler = t => {
128
- const {key: e} = t;
128
+ const {key: i} = t;
129
129
  // Allow modifier-only keys to propagate without being handled
130
- const i = [ "Shift", "Control", "Alt", "Meta" ];
131
- if (i.includes(e)) return;
130
+ const e = [ "Shift", "Control", "Alt", "Meta" ];
131
+ if (e.includes(i)) return;
132
132
  t.stopPropagation();
133
133
  const {activeIndex: o, customSearch: s, allOptions: n} = this;
134
134
  let r;
135
- switch (e) {
135
+ switch (i) {
136
136
  case " ":
137
137
  if (this.searchString) {
138
138
  if (s) break;
139
- this.searchOptions(e, true);
139
+ this.searchOptions(i, true);
140
140
  break;
141
141
  } else if (this.type === "menu") {
142
142
  this.activeIndex = 0;
@@ -215,28 +215,28 @@ const w = class {
215
215
 
216
216
  default:
217
217
  if (s) break;
218
- if (!e.match(/^[\w]$/)) break;
219
- this.searchOptions(e, true);
218
+ if (!i.match(/^[\w]$/)) break;
219
+ this.searchOptions(i, true);
220
220
  break;
221
221
  }
222
222
  };
223
223
  /* tslint:enable:cyclomatic-complexity */ this.focusoutHandler = t => {
224
- const {relatedTarget: e} = t;
225
- const i = this.allOptions.includes(e);
226
- const o = !i && this.hostElement.contains(e);
227
- if (i || o) {
224
+ const {relatedTarget: i} = t;
225
+ const e = this.allOptions.includes(i);
226
+ const o = !e && this.hostElement.contains(i);
227
+ if (e || o) {
228
228
  t.stopPropagation();
229
229
  }
230
230
  };
231
231
  this.internalKeydownHandler = t => {
232
232
  t.stopPropagation();
233
- const {activeIndex: e, customSearch: i, allOptions: o, allVisibleOptions: s, multiple: n} = this;
233
+ const {activeIndex: i, customSearch: e, allOptions: o, allVisibleOptions: s, multiple: n} = this;
234
234
  const {key: r, shiftKey: a} = t;
235
235
  let h;
236
236
  switch (r) {
237
237
  case " ":
238
238
  if (this.searchString && !this.multiple) {
239
- if (i) break;
239
+ if (e) break;
240
240
  this.searchOptions(r, false);
241
241
  break;
242
242
  }
@@ -272,30 +272,30 @@ const w = class {
272
272
  case "ArrowUp":
273
273
  t.preventDefault();
274
274
  const c = s[0];
275
- const p = c.active;
276
- if (p) break;
277
- if (e === undefined) {
275
+ const l = c.active;
276
+ if (l) break;
277
+ if (i === undefined) {
278
278
  this.setDefaultActiveElement();
279
279
  break;
280
280
  } else {
281
281
  const t = this.getNextVisibleIndex(-1);
282
282
  if (t === -1) break;
283
- this.adjustActiveOptionAndScroll(t - e);
283
+ this.adjustActiveOptionAndScroll(t - i);
284
284
  break;
285
285
  }
286
286
 
287
287
  case "ArrowDown":
288
288
  t.preventDefault();
289
- const l = s[s.length - 1];
290
- const d = l.active;
289
+ const p = s[s.length - 1];
290
+ const d = p.active;
291
291
  if (d) break;
292
- if (e === undefined) {
292
+ if (i === undefined) {
293
293
  this.setDefaultActiveElement();
294
294
  break;
295
295
  } else {
296
296
  const t = this.getNextVisibleIndex(1);
297
297
  if (t === -1) break;
298
- this.adjustActiveOptionAndScroll(t - e);
298
+ this.adjustActiveOptionAndScroll(t - i);
299
299
  break;
300
300
  }
301
301
 
@@ -311,12 +311,12 @@ const w = class {
311
311
 
312
312
  case "PageUp":
313
313
  t.preventDefault();
314
- this.openDropdownWithActiveElement(Math.max(e - 10, 0));
314
+ this.openDropdownWithActiveElement(Math.max(i - 10, 0));
315
315
  break;
316
316
 
317
317
  case "PageDown":
318
318
  t.preventDefault();
319
- this.openDropdownWithActiveElement(Math.min(e + 10, o.length - 1));
319
+ this.openDropdownWithActiveElement(Math.min(i + 10, o.length - 1));
320
320
  break;
321
321
 
322
322
  case "Tab":
@@ -344,37 +344,37 @@ const w = class {
344
344
  break;
345
345
 
346
346
  default:
347
- if (i) break;
347
+ if (e) break;
348
348
  if (!r.match(/^[\w]$/)) break;
349
349
  this.searchOptions(r, false);
350
350
  break;
351
351
  }
352
352
  };
353
- this.searchAndFocus = (t, e) => {
353
+ this.searchAndFocus = (t, i) => {
354
354
  // pseudo search in non-searchable select
355
355
  const reorder = () => {
356
356
  this.pivotIndex = this.pivotIndex === undefined ? 0 : (this.activeIndex || 0) + 1;
357
- const t = this.allOptions.map(((t, e) => ({
357
+ const t = this.allOptions.map(((t, i) => ({
358
358
  element: t,
359
- index: e
359
+ index: i
360
360
  })));
361
361
  return [ ...t.slice(this.pivotIndex), ...t.slice(0, this.pivotIndex) ];
362
362
  };
363
363
  const buildQueue = () => {
364
- const e = new Date;
365
- if (e.getTime() - this.keyStore.lastPressedAt.getTime() > 1e3) {
364
+ const i = new Date;
365
+ if (i.getTime() - this.keyStore.lastPressedAt.getTime() > 1e3) {
366
366
  // empty stored keys if delay > 1s
367
367
  this.keyStore.queue.length = 0;
368
368
  }
369
369
  if (this.keyStore.queue.length !== 1 || this.keyStore.queue[0] !== t) {
370
370
  this.keyStore.queue.push(t);
371
371
  }
372
- this.keyStore.lastPressedAt = e;
372
+ this.keyStore.lastPressedAt = i;
373
373
  };
374
374
  const searchIndex = t => {
375
- const e = this.keyStore.queue.join("");
376
- const i = sanitizeRegexString(e);
377
- return t.find((t => !t.element.disabled && t.element.display && (t.element.display.match(new RegExp(`^${i}`, "i")) || t.element.display.replace(/\s/g, "").match(new RegExp(`^${i}`, "i")))));
375
+ const i = this.keyStore.queue.join("");
376
+ const e = sanitizeRegexString(i);
377
+ return t.find((t => !t.element.disabled && t.element.display && (t.element.display.match(new RegExp(`^${e}`, "i")) || t.element.display.replace(/\s/g, "").match(new RegExp(`^${e}`, "i")))));
378
378
  };
379
379
  const setFocus = ({index: t}) => {
380
380
  if (this.multiple) {
@@ -382,7 +382,7 @@ const w = class {
382
382
  this.openDropdownWithActiveElement(t);
383
383
  } else {
384
384
  this.activeIndex = t;
385
- if (e) {
385
+ if (i) {
386
386
  this.selectOption(this.allOptions[t]);
387
387
  this.popoverState.emit({
388
388
  open: false,
@@ -392,9 +392,9 @@ const w = class {
392
392
  }
393
393
  };
394
394
  buildQueue();
395
- const i = searchIndex(reorder());
396
- if (i) {
397
- setFocus(i);
395
+ const e = searchIndex(reorder());
396
+ if (e) {
397
+ setFocus(e);
398
398
  }
399
399
  };
400
400
  }
@@ -420,13 +420,13 @@ const w = class {
420
420
  t.stopPropagation();
421
421
  }
422
422
  delegateFocus(t) {
423
- if (!p(t, this.hostElement)) return;
423
+ if (!l(t, this.hostElement)) return;
424
424
  this.popoverState.emit({
425
425
  open: true,
426
426
  action: "open"
427
427
  });
428
- const {activeIndex: e} = this;
429
- if (typeof e === "number" && e > -1) {
428
+ const {activeIndex: i} = this;
429
+ if (typeof i === "number" && i > -1) {
430
430
  this.setActiveOption();
431
431
  this.setFocusedOption();
432
432
  } else {
@@ -468,25 +468,25 @@ const w = class {
468
468
  this.showSelected = false;
469
469
  return;
470
470
  }
471
- this.allOptions.forEach((e => {
472
- if (!("_multiSelectHidden" in e)) return;
473
- e._multiSelectHidden = t ? !e.selected : false;
471
+ this.allOptions.forEach((i => {
472
+ if (!("_multiSelectHidden" in i)) return;
473
+ i._multiSelectHidden = t ? !i.selected : false;
474
474
  }));
475
475
  }
476
476
  // #endregion
477
477
  // #region Local Methods
478
478
  get allContents() {
479
479
  const t = this.getRootSlot(this.hostElement);
480
- const e = new Set([ "Q2-OPTGROUP", "Q2-OPTION", "Q2-DROPDOWN-ITEM" ]);
481
- return t.filter((t => e.has(t.tagName)));
480
+ const i = new Set([ "Q2-OPTGROUP", "Q2-OPTION", "Q2-DROPDOWN-ITEM" ]);
481
+ return t.filter((t => i.has(t.tagName)));
482
482
  }
483
483
  get allOptions() {
484
484
  const t = this.allContents;
485
- const extractOptions = t => t.reduce(((t, e) => {
486
- if (e.tagName === "Q2-OPTION" || e.tagName === "Q2-DROPDOWN-ITEM") {
487
- return e.separator ? t : [ ...t, e ];
488
- } else if (e.tagName === "Q2-OPTGROUP") {
489
- return [ ...t, ...extractOptions(Array.from(e.children)) ];
485
+ const extractOptions = t => t.reduce(((t, i) => {
486
+ if (i.tagName === "Q2-OPTION" || i.tagName === "Q2-DROPDOWN-ITEM") {
487
+ return i.separator ? t : [ ...t, i ];
488
+ } else if (i.tagName === "Q2-OPTGROUP") {
489
+ return [ ...t, ...extractOptions(Array.from(i.children)) ];
490
490
  } else {
491
491
  return t;
492
492
  }
@@ -505,22 +505,22 @@ const w = class {
505
505
  checkOptions() {
506
506
  const {type: t} = this;
507
507
  if (!t) return;
508
- const e = t === "menu" ? "menuitem" : "option";
508
+ const i = t === "menu" ? "menuitem" : "option";
509
509
  this.allOptions.forEach((t => {
510
- t.role = e;
510
+ t.role = i;
511
511
  }));
512
512
  }
513
513
  focusSelectedSibling(t) {
514
- const {allVisibleOptions: e, allOptions: i} = this;
515
- const o = e.length < 2;
514
+ const {allVisibleOptions: i, allOptions: e} = this;
515
+ const o = i.length < 2;
516
516
  if (o) {
517
517
  this.showSelected = false;
518
518
  return;
519
519
  }
520
- const s = e.indexOf(t);
520
+ const s = i.indexOf(t);
521
521
  const n = s ? s - 1 : s + 1;
522
- const r = e[n];
523
- const a = i.indexOf(r);
522
+ const r = i[n];
523
+ const a = e.indexOf(r);
524
524
  this.activeIndex = a;
525
525
  this.setFocusedOption();
526
526
  this.scheduledAfterRender.push((() => {
@@ -530,29 +530,29 @@ const w = class {
530
530
  }
531
531
  getDefaultActiveIndex() {
532
532
  const {allOptions: t} = this;
533
- const e = t.findIndex((t => "selected" in t && t.selected));
534
- if (e > -1) return e;
535
- const i = t.findIndex((t => !t.hidden));
533
+ const i = t.findIndex((t => "selected" in t && t.selected));
536
534
  if (i > -1) return i;
535
+ const e = t.findIndex((t => !t.hidden));
536
+ if (e > -1) return e;
537
537
  return 0;
538
538
  }
539
539
  getNextVisibleIndex(t) {
540
- const {allVisibleOptions: e, allOptions: i, activeIndex: o} = this;
541
- const s = i[o];
542
- const n = e.indexOf(s);
540
+ const {allVisibleOptions: i, allOptions: e, activeIndex: o} = this;
541
+ const s = e[o];
542
+ const n = i.indexOf(s);
543
543
  let r = n + t;
544
544
  if (r < 0) {
545
- r = e.length - 1;
546
- } else if (r > e.length - 1) {
545
+ r = i.length - 1;
546
+ } else if (r > i.length - 1) {
547
547
  r = 0;
548
548
  }
549
- const a = e[r];
550
- return i.indexOf(a);
549
+ const a = i[r];
550
+ return e.indexOf(a);
551
551
  }
552
552
  getRootSlot(t) {
553
- var e;
554
- const i = t.querySelector("slot");
555
- const o = (e = i === null || i === void 0 ? void 0 : i.assignedElements()) !== null && e !== void 0 ? e : Array.from(t.children);
553
+ var i;
554
+ const e = t.querySelector("slot");
555
+ const o = (i = e === null || e === void 0 ? void 0 : e.assignedElements()) !== null && i !== void 0 ? i : Array.from(t.children);
556
556
  const s = !!o.length && o[0].tagName === "SLOT";
557
557
  if (s) {
558
558
  return this.getRootSlot(o[0]);
@@ -566,7 +566,7 @@ const w = class {
566
566
  open: true,
567
567
  action: "open"
568
568
  });
569
- await l();
569
+ await p();
570
570
  this.activeIndex = t;
571
571
  this.setActiveOption();
572
572
  this.setFocusedOption();
@@ -583,18 +583,18 @@ const w = class {
583
583
  scrollToActiveOption() {
584
584
  const t = this.allOptions[this.activeIndex];
585
585
  if (!t) return;
586
- const {scrollX: e, scrollY: i} = window;
586
+ const {scrollX: i, scrollY: e} = window;
587
587
  t.scrollIntoView({
588
588
  block: "center"
589
589
  });
590
- window.scrollTo(e, i);
590
+ window.scrollTo(i, e);
591
591
  }
592
- searchOptions(t, e) {
592
+ searchOptions(t, i) {
593
593
  this.searchString = t;
594
- this.searchAndFocus(t, e);
594
+ this.searchAndFocus(t, i);
595
595
  }
596
596
  selectOption(t) {
597
- const {multiple: e, noSelect: i, showSelected: o} = this;
597
+ const {multiple: i, noSelect: e, showSelected: o} = this;
598
598
  if (!t || t.disabled || "disabledGroup" in t && t.disabledGroup) return;
599
599
  const s = t.value;
600
600
  const r = "display" in t && t.display ? t.display : t.innerText.trim();
@@ -603,19 +603,19 @@ const w = class {
603
603
  display: r
604
604
  };
605
605
  let h = [];
606
- if (e) {
607
- const {selectedOptions: e} = this;
608
- const i = e.find((t => t.value === s));
609
- if (i) {
610
- h = e.filter((({value: t}) => t !== s));
606
+ if (i) {
607
+ const {selectedOptions: i} = this;
608
+ const e = i.find((t => t.value === s));
609
+ if (e) {
610
+ h = i.filter((({value: t}) => t !== s));
611
611
  } else {
612
- h = [ ...e, a ];
612
+ h = [ ...i, a ];
613
613
  }
614
614
  if (o) this.focusSelectedSibling(t);
615
615
  } else {
616
616
  h = [ a ];
617
617
  }
618
- if (i) this.setActiveElement(null); else this.selectedOptions = h;
618
+ if (e) this.setActiveElement(null); else this.selectedOptions = h;
619
619
  n(this, [ "change", "tctChange" ], {
620
620
  value: s,
621
621
  values: h
@@ -623,35 +623,35 @@ const w = class {
623
623
  }
624
624
  setActiveOption() {
625
625
  const t = this.activeIndex;
626
- this.allOptions.forEach(((e, i) => {
627
- e.active = t === i;
626
+ this.allOptions.forEach(((i, e) => {
627
+ i.active = t === e;
628
628
  }));
629
629
  }
630
630
  setFocusedOption() {
631
631
  const t = this.allOptions[this.activeIndex];
632
632
  if (!t) return;
633
- const e = d(t);
634
- if (e) t.focus({
633
+ const i = d(t);
634
+ if (i) t.focus({
635
635
  preventScroll: true
636
636
  }); else h((() => t.focus({
637
637
  preventScroll: true
638
638
  })));
639
639
  }
640
640
  updateMultipleOptionAttrs() {
641
- const {allOptions: t, selectedOptions: e} = this;
642
- const i = e.map((({value: t}) => t));
641
+ const {allOptions: t, selectedOptions: i} = this;
642
+ const e = i.map((({value: t}) => t));
643
643
  if (this.noSelect) return;
644
644
  t.forEach((t => {
645
645
  if (!("selected" in t)) return;
646
- t.selected = i.includes(t.value);
646
+ t.selected = e.includes(t.value);
647
647
  }));
648
648
  }
649
649
  updateSingleOptionAttrs() {
650
650
  var t;
651
- const {allOptions: e, selectedOptions: i} = this;
652
- const o = ((t = i[0]) === null || t === void 0 ? void 0 : t.value) || undefined;
651
+ const {allOptions: i, selectedOptions: e} = this;
652
+ const o = ((t = e[0]) === null || t === void 0 ? void 0 : t.value) || undefined;
653
653
  if (this.noSelect) return;
654
- e.forEach((t => {
654
+ i.forEach((t => {
655
655
  if (!("selected" in t)) return;
656
656
  t.selected = t.value === o;
657
657
  }));
@@ -660,14 +660,14 @@ const w = class {
660
660
  // #region Render Methods
661
661
  render() {
662
662
  return o(s, {
663
- key: "05e3dbeb1ffe4910f7c3c922311f51e0e34a4771"
663
+ key: "99c8a52ef8c6adbd138bdd4ff40340fabe670903"
664
664
  }, o("div", {
665
- key: "152c7430207325f6d6bcb6b5253c61528f9338eb",
665
+ key: "632777fab876b3ef838e8658de35df410fc1d3b7",
666
666
  class: "content",
667
667
  ref: t => this.contentElement = t,
668
668
  onFocusout: this.focusoutHandler
669
669
  }, o("div", {
670
- key: "d94b9d6fe8fe5221b44c59424351cd2fa4e2139b",
670
+ key: "97079fcb63d10e57ae3e3f1fcbc0a4c307dcda3c",
671
671
  class: "options",
672
672
  "aria-label": a("tecton.element.optionList.label", [ this.label ]),
673
673
  "aria-multiselectable": this.type === "menu" ? undefined : `${!!this.multiple}`,
@@ -675,11 +675,11 @@ const w = class {
675
675
  onKeyDown: this.internalKeydownHandler,
676
676
  onClick: this.clickHandler
677
677
  }, o("slot", {
678
- key: "c655e10092d73bdeb985ee08776024c5dbd6fc96"
678
+ key: "07f07e638defb8427f320db9bf3cfb87f6711f9e"
679
679
  }))));
680
680
  }
681
681
  get hostElement() {
682
- return i(this);
682
+ return e(this);
683
683
  }
684
684
  static get watchers() {
685
685
  return {
@@ -694,14 +694,15 @@ w.style = v;
694
694
  const g = "*{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}.legacy.container{display:none}.legacy.show{display:block;z-index:var(--tct-popover-z-index, 50)}@keyframes popoverOpen{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}@keyframes popoverClose{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.95)}}:popover-open,.show{position:absolute;margin:0;padding:var(--tct-popover-padding, 0);overflow:auto;background:var(--tct-popover-background, var(--app-white, #ffffff));backdrop-filter:var(--tct-popover-backdrop-filter, none);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-3, 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.animating-open,.show.animating-open{animation-name:popoverOpen;animation-duration:var(--tct-popover-open-animation-duration, var(--t-tween-time-in-1, 150ms));animation-timing-function:var(--tct-popover-open-animation-timing-function, ease-out);animation-fill-mode:var(--tct-popover-open-animation-fill-mode, forwards)}:popover-open.animating-close,.show.animating-close{animation-name:popoverClose;animation-duration:var(--tct-popover-close-animation-duration, var(--t-tween-time-out-1, 100ms));animation-timing-function:var(--tct-popover-close-animation-timing-function, ease-in);animation-fill-mode:var(--tct-popover-close-animation-fill-mode, forwards)}@media (prefers-reduced-motion: reduce){:popover-open.animating-open,:popover-open.animating-close,.show.animating-open,.show.animating-close{animation:none}}: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.down.left:not(.mobile),.show.down.left:not(.mobile){transform-origin:top left}:popover-open.down.right:not(.mobile),.show.down.right:not(.mobile){transform-origin:top right}:popover-open.up.left:not(.mobile),.show.up.left:not(.mobile){transform-origin:bottom left}:popover-open.up.right:not(.mobile),.show.up.right:not(.mobile){transform-origin:bottom right}:popover-open.mobile.down,.show.mobile.down{transform-origin:center top}:popover-open.mobile.up,.show.mobile.up{transform-origin:center 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}";
695
695
 
696
696
  const k = class {
697
- constructor(i) {
698
- t(this, i);
699
- this.popoverStateChanged = e(this, "popoverStateChanged", 7);
700
- this.tctPopoverStateChanged = e(this, "tctPopoverStateChanged", 7);
697
+ constructor(e) {
698
+ t(this, e);
699
+ this.popoverStateChanged = i(this, "popoverStateChanged", 7);
700
+ this.tctPopoverStateChanged = i(this, "tctPopoverStateChanged", 7);
701
701
  /**
702
702
  * The number of pixels to leave between the popover and the edge of the viewport
703
703
  */ this.displayBuffer = 10;
704
704
  this.orientationChanged = false;
705
+ this.pendingAnimationResolve = null;
705
706
  // #endregion
706
707
  // #region State Properties
707
708
  this.animationState = "idle";
@@ -711,11 +712,6 @@ const k = class {
711
712
  // #endregion
712
713
  // #region Public Property API
713
714
  /** Aligns the popover to the left or right side of the control element. */ this.align = "left";
714
- /**
715
- * Controls whether the popover is animated when opening/closing.
716
- * Default is true (animated). Set to false to disable animations.
717
- * Animation is also disabled if the user has enabled prefers-reduced-motion.
718
- */ this.animated = true;
719
715
  this.mode = null;
720
716
  this.handleMinHeight = () => {
721
717
  if (this.minHeight) {
@@ -728,37 +724,39 @@ const k = class {
728
724
  });
729
725
  };
730
726
  this.setAbsoluteCSSProperties = async () => {
731
- const {controlElement: t, containerElement: e, currentDirection: i, align: o} = this;
727
+ const {controlElement: t, containerElement: i, currentDirection: e, align: o} = this;
728
+ if (!i) return;
732
729
  if (o === "right") {
733
- e.style.setProperty("--comp-pop-right", "0");
734
- e.style.setProperty("--comp-pop-left", "unset");
730
+ i.style.setProperty("--comp-pop-right", "0");
731
+ i.style.setProperty("--comp-pop-left", "unset");
735
732
  } else {
736
- e.style.setProperty("--comp-pop-left", "0");
737
- e.style.setProperty("--comp-pop-right", "unset");
733
+ i.style.setProperty("--comp-pop-left", "0");
734
+ i.style.setProperty("--comp-pop-right", "unset");
738
735
  }
739
736
  if (this.block) {
740
- e.style.setProperty("--comp-pop-width", "100%");
737
+ i.style.setProperty("--comp-pop-width", "100%");
741
738
  }
742
- if (i === "up") {
743
- const i = getComputedStyle(t);
744
- const o = parseInt(i.height || "0") + parseInt(i.borderTopWidth || "0") + parseInt(i.borderBottomWidth || "0");
745
- e.style.setProperty("--comp-pop-bottom", `${o}px`);
739
+ if (e === "up") {
740
+ const e = getComputedStyle(t);
741
+ const o = parseInt(e.height || "0") + parseInt(e.borderTopWidth || "0") + parseInt(e.borderBottomWidth || "0");
742
+ i.style.setProperty("--comp-pop-bottom", `${o}px`);
746
743
  }
747
744
  // Wait for one paint to prevent layout thrashing
748
- await l();
749
- e.style.setProperty("--comp-pop-opacity", "1");
745
+ await p();
746
+ if (this.containerElement) i.style.setProperty("--comp-pop-opacity", "1");
750
747
  };
751
748
  this.setPopoverAPICSSProperties = async () => {
752
- var t, e, i;
749
+ var t, i, e;
753
750
  const {controlElement: o, containerElement: s, currentDirection: n, isModule: r, align: a} = this;
754
- const {top: h, bottom: c, left: p, right: d} = (e = (t = o === null || o === void 0 ? void 0 : o.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(o)) !== null && e !== void 0 ? e : {
751
+ if (!s) return;
752
+ const {top: h, bottom: c, left: l, right: d} = (i = (t = o === null || o === void 0 ? void 0 : o.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(o)) !== null && i !== void 0 ? i : {
755
753
  top: 0,
756
754
  bottom: 0,
757
755
  left: 0,
758
756
  right: 0
759
757
  };
760
- const u = p;
761
- const m = ((i = window === null || window === void 0 ? void 0 : window.visualViewport) === null || i === void 0 ? void 0 : i.width) - d;
758
+ const u = l;
759
+ const m = ((e = window === null || window === void 0 ? void 0 : window.visualViewport) === null || e === void 0 ? void 0 : e.width) - d;
762
760
  if (a === "right") {
763
761
  s.style.setProperty("--comp-pop-right", `${m - window.scrollX}px`);
764
762
  s.style.setProperty("--comp-pop-left", "unset");
@@ -783,8 +781,8 @@ const k = class {
783
781
  }
784
782
  }
785
783
  // Wait for one paint to prevent layout thrashing
786
- await l();
787
- s.style.setProperty("--comp-pop-opacity", "1");
784
+ await p();
785
+ if (this.containerElement) s.style.setProperty("--comp-pop-opacity", "1");
788
786
  };
789
787
  this.viewPortChanged = () => {
790
788
  if (!this.open) return;
@@ -798,8 +796,13 @@ const k = class {
798
796
  // #endregion
799
797
  // #region Component Lifecycle Events
800
798
  disconnectedCallback() {
799
+ var t;
801
800
  this.removeViewportListeners();
802
- this.containerElement.removeEventListener("toggle", this.handlePopoverToggleEvent);
801
+ if (this.pendingAnimationResolve) {
802
+ this.pendingAnimationResolve();
803
+ this.pendingAnimationResolve = null;
804
+ }
805
+ (t = this.containerElement) === null || t === void 0 ? void 0 : t.removeEventListener("toggle", this.handlePopoverToggleEvent);
803
806
  this.containerElement = null;
804
807
  this.contentElement = null;
805
808
  this.controlElement = null;
@@ -811,22 +814,24 @@ const k = class {
811
814
  }
812
815
  }
813
816
  componentDidLoad() {
817
+ var t;
814
818
  this.handleMinHeight();
815
- if (this.supportsPopoverAPI) this.containerElement.addEventListener("toggle", this.handlePopoverToggleEvent);
819
+ if (this.supportsPopoverAPI) (t = this.containerElement) === null || t === void 0 ? void 0 : t.addEventListener("toggle", this.handlePopoverToggleEvent);
816
820
  if (this.open) this.determinePopDirection();
817
821
  }
818
822
  // #endregion
819
823
  // #region Listeners
820
824
  popoverStateHandler(t) {
821
- const {detail: {open: e}} = t;
822
- if (e === this.open) return;
823
- this.open = e;
825
+ const {detail: {open: i}} = t;
826
+ if (i === this.open) return;
827
+ this.open = i;
824
828
  t.stopPropagation();
825
829
  }
826
830
  // #endregion
827
831
  // #region Public Methods API
828
832
  async scrollContainerTo(t) {
829
- this.containerElement.scrollTo(t);
833
+ var i;
834
+ (i = this.containerElement) === null || i === void 0 ? void 0 : i.scrollTo(t);
830
835
  }
831
836
  async toggle() {
832
837
  this.open = !this.open;
@@ -848,18 +853,22 @@ const k = class {
848
853
  this.animationState = "closing";
849
854
  this.removeViewportListeners();
850
855
  // Wait for close animation to complete
851
- if (this.animated) {
852
- await new Promise((t => {
853
- const handleAnimationEnd = () => {
854
- this.containerElement.removeEventListener("animationend", handleAnimationEnd);
855
- t();
856
- };
857
- this.containerElement.addEventListener("animationend", handleAnimationEnd);
858
- }));
859
- } else {
860
- // No animation, proceed immediately
861
- await l();
862
- }
856
+ await new Promise((t => {
857
+ if (!this.containerElement) {
858
+ t();
859
+ return;
860
+ }
861
+ const handleAnimationEnd = () => {
862
+ this.pendingAnimationResolve = null;
863
+ t();
864
+ };
865
+ this.pendingAnimationResolve = handleAnimationEnd;
866
+ this.containerElement.addEventListener("animationend", handleAnimationEnd, {
867
+ once: true
868
+ });
869
+ }));
870
+ if (!this.containerElement) return;
871
+ if (this.open) return;
863
872
  this.currentDirection = undefined;
864
873
  this.animationState = "idle";
865
874
  if (this.mode === "legacy" || !this.supportsPopoverAPI) {
@@ -867,17 +876,17 @@ const k = class {
867
876
  } else {
868
877
  this.containerElement.hidePopover();
869
878
  }
870
- await l();
879
+ await p();
871
880
  this.clearCSSProperties();
872
881
  }
873
882
  }
874
883
  // #endregion
875
884
  // #region Local Methods
876
885
  get isModule() {
877
- var t, e;
878
- const i = window !== window.top;
879
- const o = Object.keys((e = (t = window.Tecton) === null || t === void 0 ? void 0 : t.platformDimensions) !== null && e !== void 0 ? e : {}).length > 0;
880
- return i && o;
886
+ var t, i;
887
+ const e = window !== window.top;
888
+ const o = Object.keys((i = (t = window.Tecton) === null || t === void 0 ? void 0 : t.platformDimensions) !== null && i !== void 0 ? i : {}).length > 0;
889
+ return e && o;
881
890
  }
882
891
  get providedDirection() {
883
892
  const {direction: t} = this;
@@ -911,6 +920,7 @@ const k = class {
911
920
  window.addEventListener("orientationchange", this.viewPortOrientationChanged);
912
921
  }
913
922
  clearCSSProperties() {
923
+ if (!this.containerElement) return;
914
924
  this.containerElement.style.removeProperty("--comp-pop-max-height");
915
925
  this.containerElement.style.removeProperty("--comp-pop-top");
916
926
  this.containerElement.style.removeProperty("--comp-pop-bottom");
@@ -920,58 +930,59 @@ const k = class {
920
930
  this.containerElement.style.removeProperty("--comp-pop-opacity");
921
931
  }
922
932
  async determinePopDirection() {
923
- var t, e, i;
933
+ var t, i, e;
924
934
  const {containerElement: o, controlElement: s, providedDirection: n, displayBuffer: r} = this;
925
935
  if (o) o.style.maxHeight = null;
926
- await l();
936
+ await p();
937
+ if (!this.containerElement) return;
927
938
  const {isModule: a} = this;
928
- const {top: h, bottom: c} = (e = (t = s === null || s === void 0 ? void 0 : s.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(s)) !== null && e !== void 0 ? e : {
939
+ const {top: h, bottom: c} = (i = (t = s === null || s === void 0 ? void 0 : s.getBoundingClientRect) === null || t === void 0 ? void 0 : t.call(s)) !== null && i !== void 0 ? i : {
929
940
  top: 0,
930
941
  bottom: 0
931
942
  };
932
- let p;
943
+ let l;
933
944
  let d;
934
945
  let u;
935
946
  const m = a && f(this.hostElement);
936
947
  if (a && !m) {
937
- const {outletOffset: t = 0, innerHeight: e = window.innerHeight, top: o = 0, bottom: s = 0} = ((i = window.Tecton) === null || i === void 0 ? void 0 : i.platformDimensions) || {};
948
+ const {outletOffset: t = 0, innerHeight: i = window.innerHeight, top: o = 0, bottom: s = 0} = ((e = window.Tecton) === null || e === void 0 ? void 0 : e.platformDimensions) || {};
938
949
  const n = window.innerHeight - c;
939
950
  // controlElement position visually on the page
940
951
  const a = t > 0 ? h : h + t - o;
941
- const p = t + c - o;
952
+ const l = t + c - o;
942
953
  // visual space around the controlElement
943
- const l = a;
944
- const f = e - s - p;
954
+ const p = a;
955
+ const f = i - s - l;
945
956
  // calculate space above and below controlElement
946
957
  const m = n < f;
947
- d = l - r;
958
+ d = p - r;
948
959
  u = m ? n - r : f - r;
949
960
  } else {
950
- p = window.innerHeight;
961
+ l = window.innerHeight;
951
962
  d = h - r;
952
- u = p - c - r;
963
+ u = l - c - r;
953
964
  }
954
965
  const b = d > u ? "up" : "down";
955
966
  // We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)
956
- const v = !o.style.getPropertyValue("--comp-pop-max-height") || this.orientationChanged;
967
+ const v = !(o === null || o === void 0 ? void 0 : o.style.getPropertyValue("--comp-pop-max-height")) || this.orientationChanged;
957
968
  // we do not want to constantly update the max-height after an orientation change, so we switch this back to false
958
969
  this.orientationChanged = false;
959
970
  const w = this.currentDirection || n || b;
960
971
  switch (w) {
961
972
  case "up":
962
- if (v) {
973
+ if (v && o) {
963
974
  const t = this.validatedMaxHeight || d;
964
- const e = Math.min(d, t);
965
- o.style.setProperty("--comp-pop-max-height", `${e}px`);
975
+ const i = Math.min(d, t);
976
+ o.style.setProperty("--comp-pop-max-height", `${i}px`);
966
977
  }
967
978
  this.setDirectionAndShow("up");
968
979
  break;
969
980
 
970
981
  case "down":
971
- if (v) {
982
+ if (v && o) {
972
983
  const t = this.validatedMaxHeight || u;
973
- const e = Math.min(u, t);
974
- o.style.setProperty("--comp-pop-max-height", `${e}px`);
984
+ const i = Math.min(u, t);
985
+ o.style.setProperty("--comp-pop-max-height", `${i}px`);
975
986
  }
976
987
  this.setDirectionAndShow("down");
977
988
  break;
@@ -988,17 +999,18 @@ const k = class {
988
999
  window.removeEventListener("orientationchange", this.viewPortOrientationChanged);
989
1000
  }
990
1001
  setDirectionAndShow(t) {
1002
+ var i;
991
1003
  // Due to some runtime inconsistency across devices/browsers we need to add one more check here because the
992
1004
  // popover can be closed between the time the popover is opened and the time the direction is determined
993
- const e = this.open;
994
- if (!e) return;
1005
+ const e = this.open;
1006
+ if (!e || !this.containerElement) return;
995
1007
  this.currentDirection = t;
996
1008
  if (this.mode === "legacy" || !this.supportsPopoverAPI) {
997
1009
  this.show = true;
998
1010
  this.setAbsoluteCSSProperties();
999
1011
  } else {
1000
1012
  this.setPopoverAPICSSProperties();
1001
- this.containerElement.showPopover();
1013
+ (i = this.containerElement) === null || i === void 0 ? void 0 : i.showPopover();
1002
1014
  }
1003
1015
  }
1004
1016
  // #endregion
@@ -1009,25 +1021,25 @@ const k = class {
1009
1021
  if (this.show) t.push("show");
1010
1022
  if (this.block) t.push("block");
1011
1023
  if (this.mode === "legacy") t.push("legacy");
1012
- if (this.animated && this.animationState === "opening") t.push("animating-open");
1013
- if (this.animated && this.animationState === "closing") t.push("animating-close");
1024
+ if (this.animationState === "opening") t.push("animating-open");
1025
+ if (this.animationState === "closing") t.push("animating-close");
1014
1026
  return o("div", {
1015
- key: "b5166478bf50c313679ce71b381e6fe305e03446",
1027
+ key: "32b8669d138922c8229232cbeffc24c12142a603",
1016
1028
  ref: t => this.containerElement = t,
1017
1029
  class: t.join(" "),
1018
1030
  "test-id": "outerContainer",
1019
1031
  tabIndex: -1,
1020
1032
  popover: "manual"
1021
1033
  }, o("div", {
1022
- key: "9e939ece2775d98418f726066c9e7b1e7dcb7fde",
1034
+ key: "c4a9582bcf7ed063aadd40a214606d32b406f05f",
1023
1035
  ref: t => this.contentElement = t,
1024
1036
  class: "content"
1025
1037
  }, o("slot", {
1026
- key: "dc16dc214cf71f050e49057f6f35271bb141b692"
1038
+ key: "e64707b4b54de39c9d9a487e4bdc6d4d5ca8b16f"
1027
1039
  })));
1028
1040
  }
1029
1041
  get hostElement() {
1030
- return i(this);
1042
+ return e(this);
1031
1043
  }
1032
1044
  static get watchers() {
1033
1045
  return {