q2-tecton-elements 1.48.0 → 1.48.1

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 (284) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +73 -28
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-c385e32f.js → index-f69742cf.js} +1 -1
  4. package/dist/cjs/{index-c385e32f.js.map → index-f69742cf.js.map} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
  9. package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
  10. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
  14. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  16. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
  18. package/dist/cjs/q2-detail.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  21. package/dist/cjs/q2-input.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-item.cjs.entry.js +1 -1
  23. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-list.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-message.cjs.entry.js +1 -1
  27. package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
  28. package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-option-list.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-pagination.cjs.entry.js +2 -2
  32. package/dist/cjs/q2-pill.cjs.entry.js +1 -1
  33. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  34. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  36. package/dist/cjs/q2-section.cjs.entry.js +2 -2
  37. package/dist/cjs/q2-select.cjs.entry.js +55 -7
  38. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  39. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  40. package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  42. package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
  43. package/dist/collection/collection-manifest.json +5 -5
  44. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  45. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  46. package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
  47. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  48. package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
  49. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  50. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  51. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  52. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  53. package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
  54. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
  55. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  56. package/dist/collection/components/q2-data-table/q2-data-table.js +7 -7
  57. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  58. package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
  59. package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
  60. package/dist/collection/components/q2-input/q2-input.js +2 -2
  61. package/dist/collection/components/q2-item/q2-item.js +1 -1
  62. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  63. package/dist/collection/components/q2-list/q2-list.js +1 -1
  64. package/dist/collection/components/q2-loc/q2-loc.js +1 -1
  65. package/dist/collection/components/q2-message/q2-message.js +1 -1
  66. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  67. package/dist/collection/components/q2-option/q2-option.js +1 -1
  68. package/dist/collection/components/q2-option-list/q2-option-list.js +4 -4
  69. package/dist/collection/components/q2-pagination/q2-pagination.js +2 -2
  70. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  71. package/dist/collection/components/q2-popover/q2-popover.css +19 -11
  72. package/dist/collection/components/q2-popover/q2-popover.js +74 -28
  73. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  74. package/dist/collection/components/q2-radio/q2-radio.js +1 -1
  75. package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
  76. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  77. package/dist/collection/components/q2-section/q2-section.js +2 -2
  78. package/dist/collection/components/q2-select/q2-select.js +64 -9
  79. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  80. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  81. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
  82. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  83. package/dist/components/q2-action-sheet.js +1 -1
  84. package/dist/components/q2-avatar2.js +1 -1
  85. package/dist/components/q2-calendar.js +1 -1
  86. package/dist/components/q2-carousel-pane.js +2 -2
  87. package/dist/components/q2-carousel.js +1 -1
  88. package/dist/components/q2-chart-area.js +1 -1
  89. package/dist/components/q2-chart-bar.js +1 -1
  90. package/dist/components/q2-chart-donut.js +1 -1
  91. package/dist/components/q2-checkbox-group.js +1 -1
  92. package/dist/components/q2-checkbox2.js +1 -1
  93. package/dist/components/q2-currency.js +1 -1
  94. package/dist/components/q2-data-table.js +1 -1
  95. package/dist/components/q2-detail.js +1 -1
  96. package/dist/components/q2-dropdown.js +1 -1
  97. package/dist/components/q2-editable-field.js +1 -1
  98. package/dist/components/q2-input2.js +1 -1
  99. package/dist/components/q2-item.js +1 -1
  100. package/dist/components/q2-legend2.js +1 -1
  101. package/dist/components/q2-list.js +1 -1
  102. package/dist/components/q2-loc.js +1 -1
  103. package/dist/components/q2-message2.js +1 -1
  104. package/dist/components/q2-month-picker.js +2 -2
  105. package/dist/components/q2-optgroup2.js +1 -1
  106. package/dist/components/q2-option-list2.js +1 -1
  107. package/dist/components/q2-option2.js +1 -1
  108. package/dist/components/q2-pagination.js +2 -2
  109. package/dist/components/q2-pill.js +1 -1
  110. package/dist/components/q2-popover2.js +73 -28
  111. package/dist/components/q2-popover2.js.map +1 -1
  112. package/dist/components/q2-radio-group.js +1 -1
  113. package/dist/components/q2-radio.js +1 -1
  114. package/dist/components/q2-relative-time.js +1 -1
  115. package/dist/components/q2-section.js +2 -2
  116. package/dist/components/q2-select2.js +57 -9
  117. package/dist/components/q2-select2.js.map +1 -1
  118. package/dist/components/q2-stepper-pane.js +1 -1
  119. package/dist/components/q2-stepper.js +1 -1
  120. package/dist/components/q2-textarea.js +1 -1
  121. package/dist/esm/click-elsewhere_2.entry.js +73 -28
  122. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  123. package/dist/esm/{index-f0dfb099.js → index-3184c760.js} +1 -1
  124. package/dist/esm/{index-f0dfb099.js.map → index-3184c760.js.map} +1 -1
  125. package/dist/esm/loader.js +1 -1
  126. package/dist/esm/q2-action-sheet.entry.js +1 -1
  127. package/dist/esm/q2-avatar.entry.js +1 -1
  128. package/dist/esm/q2-calendar.entry.js +2 -2
  129. package/dist/esm/q2-carousel-pane.entry.js +2 -2
  130. package/dist/esm/q2-carousel.entry.js +1 -1
  131. package/dist/esm/q2-chart-area.entry.js +1 -1
  132. package/dist/esm/q2-chart-bar.entry.js +1 -1
  133. package/dist/esm/q2-chart-donut.entry.js +1 -1
  134. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  135. package/dist/esm/q2-checkbox.entry.js +1 -1
  136. package/dist/esm/q2-currency.entry.js +1 -1
  137. package/dist/esm/q2-data-table.entry.js +1 -1
  138. package/dist/esm/q2-detail.entry.js +1 -1
  139. package/dist/esm/q2-dropdown.entry.js +1 -1
  140. package/dist/esm/q2-editable-field.entry.js +1 -1
  141. package/dist/esm/q2-input.entry.js +1 -1
  142. package/dist/esm/q2-item.entry.js +1 -1
  143. package/dist/esm/q2-legend.entry.js +1 -1
  144. package/dist/esm/q2-list.entry.js +1 -1
  145. package/dist/esm/q2-loc.entry.js +1 -1
  146. package/dist/esm/q2-message.entry.js +1 -1
  147. package/dist/esm/q2-month-picker.entry.js +2 -2
  148. package/dist/esm/q2-optgroup.entry.js +1 -1
  149. package/dist/esm/q2-option-list.entry.js +1 -1
  150. package/dist/esm/q2-option.entry.js +1 -1
  151. package/dist/esm/q2-pagination.entry.js +2 -2
  152. package/dist/esm/q2-pill.entry.js +1 -1
  153. package/dist/esm/q2-radio-group.entry.js +1 -1
  154. package/dist/esm/q2-radio.entry.js +1 -1
  155. package/dist/esm/q2-relative-time.entry.js +2 -2
  156. package/dist/esm/q2-section.entry.js +2 -2
  157. package/dist/esm/q2-select.entry.js +56 -8
  158. package/dist/esm/q2-select.entry.js.map +1 -1
  159. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  160. package/dist/esm/q2-stepper.entry.js +1 -1
  161. package/dist/esm/q2-tecton-elements.js +1 -1
  162. package/dist/esm/q2-textarea.entry.js +1 -1
  163. package/dist/jest.setup.js +22 -0
  164. package/dist/jest.setup.js.map +1 -0
  165. package/dist/q2-tecton-elements/{p-7dafc5da.entry.js → p-044b8914.entry.js} +2 -2
  166. package/dist/q2-tecton-elements/{p-a891571c.entry.js → p-07f40176.entry.js} +2 -2
  167. package/dist/q2-tecton-elements/{p-24d96969.entry.js → p-0a211fb4.entry.js} +2 -2
  168. package/dist/q2-tecton-elements/{p-32b56406.entry.js → p-0d73466a.entry.js} +2 -2
  169. package/dist/q2-tecton-elements/{p-35cc1039.entry.js → p-132005d2.entry.js} +2 -2
  170. package/dist/q2-tecton-elements/{p-0e482a7c.entry.js → p-149044cd.entry.js} +2 -2
  171. package/dist/q2-tecton-elements/{p-33af97b0.entry.js → p-1a628982.entry.js} +2 -2
  172. package/dist/q2-tecton-elements/p-25a0f807.entry.js +2 -0
  173. package/dist/q2-tecton-elements/p-25a0f807.entry.js.map +1 -0
  174. package/dist/q2-tecton-elements/{p-8fc099f5.entry.js → p-28b0de1c.entry.js} +2 -2
  175. package/dist/q2-tecton-elements/{p-ced89010.entry.js → p-3dff9fb0.entry.js} +2 -2
  176. package/dist/q2-tecton-elements/{p-fb7dd7ab.entry.js → p-432532fe.entry.js} +2 -2
  177. package/dist/q2-tecton-elements/{p-2d6a9a94.entry.js → p-46085a34.entry.js} +2 -2
  178. package/dist/q2-tecton-elements/{p-1b89b9c3.entry.js → p-4740e969.entry.js} +2 -2
  179. package/dist/q2-tecton-elements/{p-dd18416f.entry.js → p-502af427.entry.js} +2 -2
  180. package/dist/q2-tecton-elements/{p-66ae329f.entry.js → p-5214296a.entry.js} +2 -2
  181. package/dist/q2-tecton-elements/{p-ca43e917.entry.js → p-572805fc.entry.js} +2 -2
  182. package/dist/q2-tecton-elements/{p-abe30d0c.entry.js → p-644d5b2e.entry.js} +2 -2
  183. package/dist/q2-tecton-elements/{p-30d70f4a.entry.js → p-68276771.entry.js} +2 -2
  184. package/dist/q2-tecton-elements/{p-43236cac.entry.js → p-6af21a10.entry.js} +2 -2
  185. package/dist/q2-tecton-elements/{p-23183c61.entry.js → p-6be0e333.entry.js} +2 -2
  186. package/dist/q2-tecton-elements/{p-f4b28e89.entry.js → p-77e6704d.entry.js} +2 -2
  187. package/dist/q2-tecton-elements/{p-9a71bd16.entry.js → p-7deda459.entry.js} +2 -2
  188. package/dist/q2-tecton-elements/{p-3f665c56.entry.js → p-84fc61f5.entry.js} +2 -2
  189. package/dist/q2-tecton-elements/{p-d75e4752.entry.js → p-85a7b1ab.entry.js} +2 -2
  190. package/dist/q2-tecton-elements/{p-4f7e6e79.entry.js → p-8734e1cb.entry.js} +2 -2
  191. package/dist/q2-tecton-elements/{p-7cbb989e.entry.js → p-a2caa101.entry.js} +2 -2
  192. package/dist/q2-tecton-elements/{p-30296b0e.entry.js → p-cfabf5d1.entry.js} +2 -2
  193. package/dist/q2-tecton-elements/{p-56dd051a.entry.js → p-d5c182d8.entry.js} +2 -2
  194. package/dist/q2-tecton-elements/{p-f18caa3f.entry.js → p-d6c8d94d.entry.js} +2 -2
  195. package/dist/q2-tecton-elements/{p-6fdda37e.entry.js → p-de2f3111.entry.js} +2 -2
  196. package/dist/q2-tecton-elements/{p-a03c29f3.entry.js → p-def9be7b.entry.js} +2 -2
  197. package/dist/q2-tecton-elements/{p-aed969d4.entry.js → p-e654d2d6.entry.js} +2 -2
  198. package/dist/q2-tecton-elements/{p-9eafabd5.entry.js → p-e786ba03.entry.js} +2 -2
  199. package/dist/q2-tecton-elements/p-eb45704f.entry.js +2 -0
  200. package/dist/q2-tecton-elements/p-eb45704f.entry.js.map +1 -0
  201. package/dist/q2-tecton-elements/{p-3c42c90f.js → p-f1e887f5.js} +1 -1
  202. package/dist/q2-tecton-elements/{p-8a00552f.entry.js → p-fe1f1ff4.entry.js} +2 -2
  203. package/dist/q2-tecton-elements/{p-4b47816d.entry.js → p-fe2fd83b.entry.js} +2 -2
  204. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  205. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  206. package/dist/test/elements/q2-calendar-test.e2e.js +2 -2
  207. package/dist/test/elements/q2-calendar-test.e2e.js.map +1 -1
  208. package/dist/test/elements/q2-dropdown-test.e2e.js +2 -14
  209. package/dist/test/elements/q2-dropdown-test.e2e.js.map +1 -1
  210. package/dist/test/elements/q2-pill-test.e2e.js +1 -1
  211. package/dist/test/elements/q2-pill-test.e2e.js.map +1 -1
  212. package/dist/test/elements/q2-popover-test.e2e.js +1 -34
  213. package/dist/test/elements/q2-popover-test.e2e.js.map +1 -1
  214. package/dist/test/elements/q2-popover-test.spec.js +750 -435
  215. package/dist/test/elements/q2-popover-test.spec.js.map +1 -1
  216. package/dist/test/elements/q2-relative-time-test.e2e.js.map +1 -1
  217. package/dist/test/elements/q2-select-test.e2e.js +1 -1
  218. package/dist/test/elements/q2-select-test.e2e.js.map +1 -1
  219. package/dist/test/elements/q2-select-test.spec.js +412 -0
  220. package/dist/test/elements/q2-select-test.spec.js.map +1 -0
  221. package/dist/test/elements/q2-tag-test.e2e.js +1 -1
  222. package/dist/test/elements/q2-tag-test.e2e.js.map +1 -1
  223. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
  224. package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +60 -0
  225. package/dist/types/components/q2-calendar/q2-calendar.d.ts +324 -0
  226. package/dist/types/components/q2-carousel/q2-carousel.d.ts +2 -2
  227. package/dist/types/components/q2-data-table/q2-data-table.d.ts +223 -0
  228. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +130 -0
  229. package/dist/types/components/q2-dropdown-item/q2-dropdown-item.d.ts +50 -0
  230. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +140 -0
  231. package/dist/types/components/q2-loading/skeleton/shapes.d.ts +1 -0
  232. package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
  233. package/dist/types/components/q2-option-list/q2-option-list.d.ts +99 -0
  234. package/dist/types/components/q2-pagination/q2-pagination.d.ts +60 -0
  235. package/dist/types/components/q2-pill/q2-pill.d.ts +102 -0
  236. package/dist/types/components/q2-popover/q2-popover.d.ts +5 -3
  237. package/dist/types/components/q2-select/q2-select.d.ts +239 -0
  238. package/dist/types/components/q2-stepper/q2-stepper.d.ts +52 -0
  239. package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +62 -0
  240. package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
  241. package/dist/types/components/q2-tag/q2-tag.d.ts +59 -0
  242. package/dist/types/utils/action-sheet.d.ts +12 -0
  243. package/package.json +5 -5
  244. package/dist/q2-tecton-elements/p-24719520.entry.js +0 -2
  245. package/dist/q2-tecton-elements/p-24719520.entry.js.map +0 -1
  246. package/dist/q2-tecton-elements/p-6986a60e.entry.js +0 -2
  247. package/dist/q2-tecton-elements/p-6986a60e.entry.js.map +0 -1
  248. /package/dist/q2-tecton-elements/{p-7dafc5da.entry.js.map → p-044b8914.entry.js.map} +0 -0
  249. /package/dist/q2-tecton-elements/{p-a891571c.entry.js.map → p-07f40176.entry.js.map} +0 -0
  250. /package/dist/q2-tecton-elements/{p-24d96969.entry.js.map → p-0a211fb4.entry.js.map} +0 -0
  251. /package/dist/q2-tecton-elements/{p-32b56406.entry.js.map → p-0d73466a.entry.js.map} +0 -0
  252. /package/dist/q2-tecton-elements/{p-35cc1039.entry.js.map → p-132005d2.entry.js.map} +0 -0
  253. /package/dist/q2-tecton-elements/{p-0e482a7c.entry.js.map → p-149044cd.entry.js.map} +0 -0
  254. /package/dist/q2-tecton-elements/{p-33af97b0.entry.js.map → p-1a628982.entry.js.map} +0 -0
  255. /package/dist/q2-tecton-elements/{p-8fc099f5.entry.js.map → p-28b0de1c.entry.js.map} +0 -0
  256. /package/dist/q2-tecton-elements/{p-ced89010.entry.js.map → p-3dff9fb0.entry.js.map} +0 -0
  257. /package/dist/q2-tecton-elements/{p-fb7dd7ab.entry.js.map → p-432532fe.entry.js.map} +0 -0
  258. /package/dist/q2-tecton-elements/{p-2d6a9a94.entry.js.map → p-46085a34.entry.js.map} +0 -0
  259. /package/dist/q2-tecton-elements/{p-1b89b9c3.entry.js.map → p-4740e969.entry.js.map} +0 -0
  260. /package/dist/q2-tecton-elements/{p-dd18416f.entry.js.map → p-502af427.entry.js.map} +0 -0
  261. /package/dist/q2-tecton-elements/{p-66ae329f.entry.js.map → p-5214296a.entry.js.map} +0 -0
  262. /package/dist/q2-tecton-elements/{p-ca43e917.entry.js.map → p-572805fc.entry.js.map} +0 -0
  263. /package/dist/q2-tecton-elements/{p-abe30d0c.entry.js.map → p-644d5b2e.entry.js.map} +0 -0
  264. /package/dist/q2-tecton-elements/{p-30d70f4a.entry.js.map → p-68276771.entry.js.map} +0 -0
  265. /package/dist/q2-tecton-elements/{p-43236cac.entry.js.map → p-6af21a10.entry.js.map} +0 -0
  266. /package/dist/q2-tecton-elements/{p-23183c61.entry.js.map → p-6be0e333.entry.js.map} +0 -0
  267. /package/dist/q2-tecton-elements/{p-f4b28e89.entry.js.map → p-77e6704d.entry.js.map} +0 -0
  268. /package/dist/q2-tecton-elements/{p-9a71bd16.entry.js.map → p-7deda459.entry.js.map} +0 -0
  269. /package/dist/q2-tecton-elements/{p-3f665c56.entry.js.map → p-84fc61f5.entry.js.map} +0 -0
  270. /package/dist/q2-tecton-elements/{p-d75e4752.entry.js.map → p-85a7b1ab.entry.js.map} +0 -0
  271. /package/dist/q2-tecton-elements/{p-4f7e6e79.entry.js.map → p-8734e1cb.entry.js.map} +0 -0
  272. /package/dist/q2-tecton-elements/{p-7cbb989e.entry.js.map → p-a2caa101.entry.js.map} +0 -0
  273. /package/dist/q2-tecton-elements/{p-30296b0e.entry.js.map → p-cfabf5d1.entry.js.map} +0 -0
  274. /package/dist/q2-tecton-elements/{p-56dd051a.entry.js.map → p-d5c182d8.entry.js.map} +0 -0
  275. /package/dist/q2-tecton-elements/{p-f18caa3f.entry.js.map → p-d6c8d94d.entry.js.map} +0 -0
  276. /package/dist/q2-tecton-elements/{p-6fdda37e.entry.js.map → p-de2f3111.entry.js.map} +0 -0
  277. /package/dist/q2-tecton-elements/{p-a03c29f3.entry.js.map → p-def9be7b.entry.js.map} +0 -0
  278. /package/dist/q2-tecton-elements/{p-aed969d4.entry.js.map → p-e654d2d6.entry.js.map} +0 -0
  279. /package/dist/q2-tecton-elements/{p-9eafabd5.entry.js.map → p-e786ba03.entry.js.map} +0 -0
  280. /package/dist/q2-tecton-elements/{p-3c42c90f.js.map → p-f1e887f5.js.map} +0 -0
  281. /package/dist/q2-tecton-elements/{p-8a00552f.entry.js.map → p-fe1f1ff4.entry.js.map} +0 -0
  282. /package/dist/q2-tecton-elements/{p-4b47816d.entry.js.map → p-fe2fd83b.entry.js.map} +0 -0
  283. /package/dist/types/{workspace/workspace/_Gitlab_tecton-production_master → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/test/elements/q2-detail/slot-component.d.ts +0 -0
  284. /package/dist/types/{workspace/workspace/_Gitlab_tecton-production_master → builds/q2e/development/tecton/tecton}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
@@ -6,7 +6,7 @@ export class Q2Loc {
6
6
  this.value = undefined;
7
7
  }
8
8
  render() {
9
- return h("span", { key: '207c331410df3dfa7963912368b2fab219a84a97' }, loc(this.value, this.substitutions));
9
+ return h("span", { key: 'a983e0108524632f36c67d59ca55046889e959a1' }, loc(this.value, this.substitutions));
10
10
  }
11
11
  static get is() { return "q2-loc"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class Q2Message {
36
36
  const addDivForAriaLive = !isFirefox && this.presentToggle;
37
37
  const { description } = this;
38
38
  const messageLabel = loc(`tecton.element.message.type.${this.type ? this.type : 'info'}`);
39
- return (h("div", { key: '48c08c15096e1787af65a9d847a191f5b7ee7100', tabindex: "-1", class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : 'assertive', "aria-atomic": description ? undefined : 'true', "aria-relevant": description && addAriaHiddenForAriaLive ? undefined : 'all', "test-id": "messageContainer" }, this.appearance === 'standard' ? this.messageIcon(this.type) : '', addDivForAriaLive && h("div", { key: '4d673d2bdf92f56606ab1075d8af807992982a57', class: "sr" }), h("div", { key: 'c31396c4d2aaed7b2d6ee96e33697e7c14c814af', class: "sr message-label" }, messageLabel), h("div", { key: '9bedced6017fa3da2024ce713688e4b5b006f563', class: "message-content", "aria-hidden": addAriaHiddenForAriaLive ? 'true' : undefined }, h("slot", { key: 'b3d452032ef55d3aca7ea63768f820a522241ba6' }))));
39
+ return (h("div", { key: '7803d7b21356ca0c70883387b8add4a6babd192c', tabindex: "-1", class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : 'assertive', "aria-atomic": description ? undefined : 'true', "aria-relevant": description && addAriaHiddenForAriaLive ? undefined : 'all', "test-id": "messageContainer" }, this.appearance === 'standard' ? this.messageIcon(this.type) : '', addDivForAriaLive && h("div", { key: '18bc8892294dc16d5668a2c10b80e2b3c21bf94c', class: "sr" }), h("div", { key: '00c9adcd0ce6a0021baf03041443a12d3673908a', class: "sr message-label" }, messageLabel), h("div", { key: '6d697ed20f5ceef552d819f2b22212ee750f06a6', class: "message-content", "aria-hidden": addAriaHiddenForAriaLive ? 'true' : undefined }, h("slot", { key: '789fd82fdd39c79b1ca48f3e353c7ebd3abe82b7' }))));
40
40
  }
41
41
  messageIcon(type) {
42
42
  const iconMap = {
@@ -36,7 +36,7 @@ export class Q2Optgroup {
36
36
  });
37
37
  }
38
38
  render() {
39
- return (h("div", { key: '22334d6ad4d588af06d33c426442c17e517bfdff', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: '82470c713ed744c41ca8a1682d78e4795e83e125', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: 'd246db5839936be3b0ee56eec47e7a11aa0269ee', class: "q2-optgroup-options" }, h("slot", { key: '12442af1a98a84db8023dd7572ffa3d6fba34fdc' }))));
39
+ return (h("div", { key: '7296e98c4ba1bf5b7d43a7a41bd71674b6a29786', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: '9f6acc6efc59b09550b809b2a47b2e8680ba8857', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: 'b2b13e828cf5974f021047dc08006d389518c7bc', class: "q2-optgroup-options" }, h("slot", { key: 'e0eb0eb5889abb67a65c514a4fd8054625fa3901' }))));
40
40
  }
41
41
  static get is() { return "q2-optgroup"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -50,7 +50,7 @@ export class Q2Option {
50
50
  render() {
51
51
  const { disabled, disabledGroup, selected, _multiSelectHidden } = this;
52
52
  const isDisabled = disabled || disabledGroup;
53
- return (h(Host, { key: '4b5001e4870ee08cbd313e029bc2fa6b15503ced', tabindex: "-1", "aria-disabled": isDisabled ? 'true' : undefined, "aria-selected": `${!!selected}`, "aria-hidden": _multiSelectHidden ? 'true' : undefined, display: this.display }, this.selected && h("q2-icon", { key: '652c794d376c56a8cdb116e8c9d37596dad6a4dd', type: "checkmark" }), h("div", { key: 'f39323dc5d9959daf61833a4cd8066bea83ea0c6', class: "content" }, h("slot", { key: '2107c286ec7b9ce7f94e4e3de3a0789217a56e45' }))));
53
+ return (h(Host, { key: 'f151dcc4f6c384ed57f161201e4f47130c9352bf', tabindex: "-1", "aria-disabled": isDisabled ? 'true' : undefined, "aria-selected": `${!!selected}`, "aria-hidden": _multiSelectHidden ? 'true' : undefined, display: this.display }, this.selected && h("q2-icon", { key: '999146b64cc2827794339665aa3d4a91468bb07f', type: "checkmark" }), h("div", { key: '8fe4f1e3d064ce8b2b0c834ba3b2a5896a8f3d66', class: "content" }, h("slot", { key: '4c95a66a6b32b5b388a69fd235febcefda232772' }))));
54
54
  }
55
55
  static get is() { return "q2-option"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -527,7 +527,7 @@ export class Q2OptionList {
527
527
  }
528
528
  /// DOM ///
529
529
  render() {
530
- return (h(Host, { key: '2a470de268f16262aa675475fd2425bd50b4edad' }, h("div", { key: '549deb2fbe009ea6cef0444a4867710b4ad1abf6', class: "content", ref: el => (this.contentElement = el), onFocusout: this.focusoutHandler }, h("div", { key: '0f5857df5db8f073ef28e2a6760d6d798ab3d1fd', class: "options", "aria-label": loc('tecton.element.optionList.label', [this.label]), "aria-multiselectable": `${!!this.multiple}`, role: this.type || 'listbox', onKeyDown: this.internalKeydownHandler, onClick: this.clickHandler }, h("slot", { key: 'cbee273a92302a2b8c9302d65444534a6c04b42f' })))));
530
+ return (h(Host, { key: '38a759a0589e0f90af160e0c5cd2bd21e29a44f1' }, h("div", { key: '0090c64f7fc14feb4dfece413f571da46417b40d', class: "content", ref: el => (this.contentElement = el), onFocusout: this.focusoutHandler }, h("div", { key: '90a3fdd55f2a0823ee5b0654a25bb1c80278091e', class: "options", "aria-label": loc('tecton.element.optionList.label', [this.label]), "aria-multiselectable": `${!!this.multiple}`, role: this.type || 'listbox', onKeyDown: this.internalKeydownHandler, onClick: this.clickHandler }, h("slot", { key: 'de7bc5452f74aeed9c0c45f1228defbeef6a7bba' })))));
531
531
  }
532
532
  static get is() { return "q2-option-list"; }
533
533
  static get encapsulation() { return "shadow"; }
@@ -658,7 +658,7 @@ export class Q2OptionList {
658
658
  "references": {
659
659
  "IOptionValue": {
660
660
  "location": "local",
661
- "path": "/workspace/workspace/_Gitlab_tecton-production_master/packages/q2-tecton-elements/src/components/q2-option-list/q2-option-list.tsx",
661
+ "path": "/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/src/components/q2-option-list/q2-option-list.tsx",
662
662
  "id": "src/components/q2-option-list/q2-option-list.tsx::IOptionValue"
663
663
  }
664
664
  }
@@ -730,7 +730,7 @@ export class Q2OptionList {
730
730
  "references": {
731
731
  "IOptionValue": {
732
732
  "location": "local",
733
- "path": "/workspace/workspace/_Gitlab_tecton-production_master/packages/q2-tecton-elements/src/components/q2-option-list/q2-option-list.tsx",
733
+ "path": "/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/src/components/q2-option-list/q2-option-list.tsx",
734
734
  "id": "src/components/q2-option-list/q2-option-list.tsx::IOptionValue"
735
735
  }
736
736
  }
@@ -856,7 +856,7 @@ export class Q2OptionList {
856
856
  "id": "global::HTMLQ2OptionElement"
857
857
  }
858
858
  },
859
- "return": "Promise<any[]>"
859
+ "return": "Promise<(HTMLQ2OptgroupElement | HTMLQ2OptionElement)[]>"
860
860
  },
861
861
  "docs": {
862
862
  "text": "",
@@ -169,7 +169,7 @@ export class Q2Pagination {
169
169
  total,
170
170
  });
171
171
  }
172
- return (h("nav", { key: '50343b3b19ac4d64966783eab66f5ce61dc1b94f', class: "container", ref: el => (this.containerElement = el), "aria-label": loc('tecton.element.pagination.title') }, h("div", { key: '7ab3dafbf56de8ec12ac49b470fdb5a8d4df2f74', class: "description", "test-id": "description" }, pagesOnly
172
+ return (h("nav", { key: '492ad7b6180eec733d0a21266b4f21b5f032e1a7', class: "container", ref: el => (this.containerElement = el), "aria-label": loc('tecton.element.pagination.title') }, h("div", { key: '30c1287dccf3a2da6a32f17529075e4ce07ec3ed', class: "description", "test-id": "description" }, pagesOnly
173
173
  ? loc('tecton.element.pagination.pages', {
174
174
  current: page,
175
175
  total: totalPages,
@@ -178,7 +178,7 @@ export class Q2Pagination {
178
178
  range: currentRange,
179
179
  recordType: recordType.toLowerCase(),
180
180
  total: total.toLocaleString(),
181
- })), h("div", { key: 'ccac7c6ba741c00ee29a273ff95d6f1376c82114', class: "btn-group" }, h("q2-btn", { key: '995f73fe6f8b7caba3f33b26d2951d6dfdb9c8ad', label: loc('tecton.element.pagination.goToFirstPage'), disabled: onFirstPage, hidden: isFullViewHidden, onClick: () => this.handlePageChange(1), "test-id": "firstPageBtn", "hide-label": true }, h("q2-icon", { key: '511c412f9b64ef9c255d3bb0c3036c508041ba1e', type: "chevron-double-left" })), h("q2-btn", { key: 'b31a58e9895d6bd0a290bc878bcc90e5d05573c4', label: prevButtonLabel, disabled: onFirstPage, onClick: () => this.handlePageChange(page - 1), "test-id": "prevPageBtn", "hide-label": true }, h("q2-icon", { key: '237e92a052c98544f5e5d3655b76a87fcbae1ffc', type: "chevron-left" }))), h("div", { key: 'c5f5dbcf26d85bf38329ca342462c097a6fdfbf2', class: "controls", hidden: isFullViewHidden, "test-id": "controls" }, h("span", { key: '744fc7c5fd66aa050e336173677c0560597773a2', "aria-hidden": "true" }, loc('tecton.element.pagination.page')), h("div", { key: '6a51a7881d8dc25f33e882cb801dfa49e66f5624', class: "input-wrapper", onClick: () => this.inputField.dispatchEvent(new FocusEvent('focus')) }, h("q2-input", { key: '9fcd3d30b4c641e428f9088c5da31fe9236af065', type: "number", value: `${page}`, min: 1, max: this.totalPages, hideLabel: true, optional: true, label: `${loc('tecton.element.pagination.page')} (${loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()])})`, onChange: event => this.handlePageChange(event.detail.value), "test-id": "pageInput", current: "page", ref: el => (this.inputField = el) })), h("span", { key: '74fb4e9dc5fb522a2a8e4d6bb079de21a75e7b8e', "aria-hidden": "true" }, loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()]))), h("div", { key: 'af17aff0c838a045e151651ff58c3aeae37310a4', class: "btn-group" }, h("q2-btn", { key: '6241c7d80e88ebf31dba7ac2c013174415e78860', label: nextButtonLabel, disabled: onLastPage, onClick: () => this.handlePageChange(page + 1), "test-id": "nextPageBtn", "hide-label": true }, h("q2-icon", { key: 'c101b0a222e94f3bef8a6e878c5d507bf15bf9a7', type: "chevron-right" })), h("q2-btn", { key: '91b74767914718048301eb21ac5ddf93ce7dca5e', label: "tecton.element.pagination.goToLastPage", disabled: onLastPage, hidden: isFullViewHidden, onClick: () => this.handlePageChange(totalPages), "test-id": "lastPageBtn", "hide-label": true }, h("q2-icon", { key: 'b8ce5dfd5622c941602e6439fff5e0e75b639855', type: "chevron-double-right" }))), h("div", { key: '5897095710edb3fa0fc00eaf072de8d6e1cee844', class: "per-page", hidden: isFullViewHidden || !((_a = this.perPageIncrements) === null || _a === void 0 ? void 0 : _a.length) }, this.renderPerPage())));
181
+ })), h("div", { key: '1e255884140a5fbb7ba51cb8046727ab8cb602a5', class: "btn-group" }, h("q2-btn", { key: '48fc8c61b04e0005b98cbffbc3320e4dd4f0855e', label: loc('tecton.element.pagination.goToFirstPage'), disabled: onFirstPage, hidden: isFullViewHidden, onClick: () => this.handlePageChange(1), "test-id": "firstPageBtn", "hide-label": true }, h("q2-icon", { key: '9c454decc6feadc6bbd3f21044c7bebd46d5a55a', type: "chevron-double-left" })), h("q2-btn", { key: '9214aee00653c2417a284292c5df431bcf9cdceb', label: prevButtonLabel, disabled: onFirstPage, onClick: () => this.handlePageChange(page - 1), "test-id": "prevPageBtn", "hide-label": true }, h("q2-icon", { key: '9761ca7c383a5ece9582fb07b30f0fb70eceba17', type: "chevron-left" }))), h("div", { key: 'd0749351d1ac3d1193a05a0f4b6f55860f98a220', class: "controls", hidden: isFullViewHidden, "test-id": "controls" }, h("span", { key: '2a160fdc5453904fcfb330b95ae548ab2df2a06a', "aria-hidden": "true" }, loc('tecton.element.pagination.page')), h("div", { key: '250476d5c0e4e4bb90065764c4e27bb49bf79076', class: "input-wrapper", onClick: () => this.inputField.dispatchEvent(new FocusEvent('focus')) }, h("q2-input", { key: '079e89b7938ae91ebf690d42a9ea0a6191decadc', type: "number", value: `${page}`, min: 1, max: this.totalPages, hideLabel: true, optional: true, label: `${loc('tecton.element.pagination.page')} (${loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()])})`, onChange: event => this.handlePageChange(event.detail.value), "test-id": "pageInput", current: "page", ref: el => (this.inputField = el) })), h("span", { key: 'f943840d83883da0908eed6cad0b0bbeeccee0a2', "aria-hidden": "true" }, loc('tecton.element.pagination.ofPages', [totalPages.toLocaleString()]))), h("div", { key: '8aa10edcf80ce32fb0252c133f28304cfbb0ccc9', class: "btn-group" }, h("q2-btn", { key: '2b97474ae891322efd074dae86881b09dac6eb62', label: nextButtonLabel, disabled: onLastPage, onClick: () => this.handlePageChange(page + 1), "test-id": "nextPageBtn", "hide-label": true }, h("q2-icon", { key: '47b3882a0c232fbe6737e8633adf8f4a0ad27b8d', type: "chevron-right" })), h("q2-btn", { key: '40604303f9479091821ee3390681d22c3d4507d0', label: "tecton.element.pagination.goToLastPage", disabled: onLastPage, hidden: isFullViewHidden, onClick: () => this.handlePageChange(totalPages), "test-id": "lastPageBtn", "hide-label": true }, h("q2-icon", { key: 'ecf929fe7b18bcd19c7e9045c82245d8c4764251', type: "chevron-double-right" }))), h("div", { key: '30c078a5b0224753dd5daaf0f83ca7efbe5fbaec', class: "per-page", hidden: isFullViewHidden || !((_a = this.perPageIncrements) === null || _a === void 0 ? void 0 : _a.length) }, this.renderPerPage())));
182
182
  }
183
183
  static get is() { return "q2-pagination"; }
184
184
  static get encapsulation() { return "shadow"; }
@@ -254,7 +254,7 @@ export class Q2Pill {
254
254
  wrapperClassNames.push('has-icon');
255
255
  if (optionCount)
256
256
  wrapperClassNames.push('has-options');
257
- return (h("click-elsewhere", { key: 'dcb3816548945254bc0f94439f91de299fcbffac', onChange: this.onClickElsewhere }, h("div", { key: '794452f573f49b54160b50f4423802b712e54655', class: wrapperClassNames.join(' ') }, h("div", { key: '00f931b80cfd9d2003a2e094e2963cc7d006f767', class: "btn-height-wrapper", ref: el => (this.primaryBtnWrapper = el), onClick: this.handleWrapperClick, tabIndex: -1 }, h("button", { key: '2c4bf905fd879d7178e084e0dcce1c47d5949fd6', class: "btn-primary", "test-id": "btn-control", type: "button", role: (optionCount && 'combobox') || undefined, ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, onFocusout: this.handleButtonFocusout, disabled: this.disabled, "aria-roledescription": !optionCount && 'filter', "aria-controls": (optionCount && 'option-list') || undefined, "aria-expanded": (optionCount && `${!!open}`) || undefined, "aria-label": this.buttonContent, "aria-describedby": (optionCount && 'option-description') || undefined }, this.truncatedButtonContent, !optionCount && active && h("span", { key: '4df639376c78dbec98e5ddf38a8dd440bd2403ac', class: "sr" }, "(", loc('tecton.element.pill.active'), ")"))), this.generateIcon(), this.generateHiddenElement()), this.optionCount > 0 && (h("q2-popover", { key: 'f1feccaa07ab59adb5dda52dadc04300da3ebc12', ref: el => (this.popoverElement = el), controlElement: this.primaryBtn, open: this.open, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: this.popoverAlignment }, h("q2-option-list", { key: '637e3da2b231bc759d416bcf26ecd43b5ca17be3', type: "listbox", ref: el => (this.optionList = el), id: "option-list", onChange: this.handleChange, multiple: this.multiple, selectedOptions: this.selectedOptions, onReady: () => this.updateSelectedOptionElements(), label: loc('tecton.element.optionList.label', [this.optionListLabel]) }, h("slot", { key: '6d5388276f4c328299f7990a1235ad26279852e3' }))))));
257
+ return (h("click-elsewhere", { key: 'ca6bd41d2351dc05ba4e0ed87b69e335a11a4fe3', onChange: this.onClickElsewhere }, h("div", { key: 'cd9186c0d5f5b32f19f9221a7ba7f495c4a5a3fd', class: wrapperClassNames.join(' ') }, h("div", { key: '14d3658c8abe24567f42ffb82082ef1073326aa2', class: "btn-height-wrapper", ref: el => (this.primaryBtnWrapper = el), onClick: this.handleWrapperClick, tabIndex: -1 }, h("button", { key: '2e64deb6bc1caaa4f3b831060103532886f2d8a6', class: "btn-primary", "test-id": "btn-control", type: "button", role: (optionCount && 'combobox') || undefined, ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, onFocusout: this.handleButtonFocusout, disabled: this.disabled, "aria-roledescription": !optionCount && 'filter', "aria-controls": (optionCount && 'option-list') || undefined, "aria-expanded": (optionCount && `${!!open}`) || undefined, "aria-label": this.buttonContent, "aria-describedby": (optionCount && 'option-description') || undefined }, this.truncatedButtonContent, !optionCount && active && h("span", { key: '42b583abcc318ab1027f7fb5a5cbd437291f8cb4', class: "sr" }, "(", loc('tecton.element.pill.active'), ")"))), this.generateIcon(), this.generateHiddenElement()), this.optionCount > 0 && (h("q2-popover", { key: '0c197bbe3f080cc5c8ef78df88d635848e7910e0', ref: el => (this.popoverElement = el), controlElement: this.primaryBtn, open: this.open, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: this.popoverAlignment }, h("q2-option-list", { key: 'd1d84d56b201242986c8de169fce79e64dd978ab', type: "listbox", ref: el => (this.optionList = el), id: "option-list", onChange: this.handleChange, multiple: this.multiple, selectedOptions: this.selectedOptions, onReady: () => this.updateSelectedOptionElements(), label: loc('tecton.element.optionList.label', [this.optionListLabel]) }, h("slot", { key: '4ed0fe54a2b3b2bc969bf2f2466633148ad20ad0' }))))));
258
258
  }
259
259
  static get is() { return "q2-pill"; }
260
260
  static get encapsulation() { return "shadow"; }
@@ -65,14 +65,17 @@ button {
65
65
  visibility: hidden;
66
66
  }
67
67
 
68
- .container {
68
+ .legacy.container {
69
69
  display: none;
70
70
  }
71
-
72
- .show {
71
+ .legacy.show {
73
72
  display: block;
74
- position: fixed;
75
73
  z-index: var(--tct-popover-z-index, 50);
74
+ }
75
+
76
+ :popover-open,
77
+ .show {
78
+ position: absolute;
76
79
  margin: 0;
77
80
  padding: 0;
78
81
  overflow: auto;
@@ -80,7 +83,7 @@ button {
80
83
  color: var(--tct-popover-font-color, var(--t-text, #4d4d4d));
81
84
  min-width: var(--tct-popover-min-width, 135px);
82
85
  margin-block: var(--tct-popover-margin-block, 0);
83
- box-shadow: var(--tct-popover-box-shadow, var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3)));
86
+ 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)));
84
87
  border-width: var(--tct-popover-border-width, 0);
85
88
  border-style: solid;
86
89
  border-color: var(--tct-popover-border-color, transparent);
@@ -94,39 +97,44 @@ button {
94
97
  scrollbar-width: thin;
95
98
  scrollbar-color: var(--comp-scrollbar-color) transparent;
96
99
  }
97
- :host([block]) .show {
100
+ :popover-open.block,
101
+ .show.block {
98
102
  right: unset;
99
103
  width: var(--comp-pop-width);
100
104
  min-width: var(--tct-popover-min-width, unset);
101
105
  }
102
- :host([align=left]) .show {
106
+ :popover-open.left,
107
+ .show.left {
103
108
  left: var(--comp-pop-left);
104
109
  right: unset;
105
110
  }
106
- :host([align=right]) .show {
111
+ :popover-open.right,
112
+ .show.right {
107
113
  right: var(--comp-pop-right);
108
114
  left: unset;
109
115
  }
116
+ :popover-open.down,
110
117
  .show.down {
111
118
  top: var(--tct-popover-top, var(--comp-pop-top));
112
119
  bottom: unset;
113
120
  }
121
+ :popover-open.up,
114
122
  .show.up {
115
123
  top: unset;
116
124
  bottom: var(--comp-pop-bottom);
117
125
  }
118
- .show.legacy {
119
- position: absolute;
120
- }
126
+ :popover-open::-webkit-scrollbar,
121
127
  .show::-webkit-scrollbar {
122
128
  width: var(--comp-scrollbar-size);
123
129
  height: var(--comp-scrollbar-size);
124
130
  margin: 5px;
125
131
  }
132
+ :popover-open::-webkit-scrollbar-thumb,
126
133
  .show::-webkit-scrollbar-thumb {
127
134
  background: var(--comp-scrollbar-color);
128
135
  border-radius: var(--comp-scrollbar-border-radius);
129
136
  }
137
+ :popover-open::-webkit-scrollbar-track,
130
138
  .show::-webkit-scrollbar-track {
131
139
  background: transparent;
132
140
  border-radius: var(--comp-scrollbar-border-radius);
@@ -6,7 +6,6 @@ export class Q2Popover {
6
6
  * The number of pixels to leave between the popover and the edge of the viewport
7
7
  */
8
8
  this.displayBuffer = 10;
9
- /** remove when Popover API is supported in iOS */
10
9
  this.orientationChanged = false;
11
10
  /// Helpers ///
12
11
  this.handleMinHeight = () => {
@@ -14,6 +13,9 @@ export class Q2Popover {
14
13
  handleDeprecationWarning(this, 'minHeight', 'prop');
15
14
  }
16
15
  };
16
+ this.handlePopoverToggleEvent = (event) => {
17
+ this.popoverStateChanged.emit({ open: event.newState === 'open' });
18
+ };
17
19
  this.viewPortChanged = () => {
18
20
  if (!this.open)
19
21
  return;
@@ -23,25 +25,42 @@ export class Q2Popover {
23
25
  this.orientationChanged = true;
24
26
  this.viewPortChanged();
25
27
  };
26
- this.setFixedCSSProperties = async () => {
27
- var _a, _b;
28
- const { controlElement, containerElement, currentDirection, rootElementRect } = this;
28
+ this.setPopoverAPICSSProperties = async () => {
29
+ var _a, _b, _c, _d, _e, _f;
30
+ const { controlElement, containerElement, currentDirection, isModule, align } = this;
29
31
  const { top: controlTop, bottom: controlBottom, left: controlLeft, right: controlRight, } = (_b = (_a = controlElement === null || controlElement === void 0 ? void 0 : controlElement.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(controlElement)) !== null && _b !== void 0 ? _b : {
30
32
  top: 0,
31
33
  bottom: 0,
32
34
  left: 0,
33
35
  right: 0,
34
36
  };
35
- const popoverLeft = controlLeft - rootElementRect.left;
37
+ const popoverLeft = controlLeft;
38
+ const popoverRight = ((_c = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _c === void 0 ? void 0 : _c.width) - controlRight;
39
+ if (align === 'right') {
40
+ containerElement.style.setProperty('--comp-pop-right', `${popoverRight - window.scrollX}px`);
41
+ containerElement.style.setProperty('--comp-pop-left', 'unset');
42
+ }
43
+ else {
44
+ containerElement.style.setProperty('--comp-pop-left', `${popoverLeft + window.scrollX}px`);
45
+ containerElement.style.setProperty('--comp-pop-right', 'unset');
46
+ }
36
47
  if (this.block)
37
- containerElement.style.setProperty('--comp-pop-width', `${controlElement.offsetWidth || 0}px`);
38
- containerElement.style.setProperty('--comp-pop-left', `${popoverLeft}px`);
39
- containerElement.style.setProperty('--comp-pop-right', `${rootElementRect.width + rootElementRect.left - controlRight}px`);
48
+ containerElement.style.setProperty('--comp-pop-width', `${(controlElement === null || controlElement === void 0 ? void 0 : controlElement.offsetWidth) || 0}px`);
40
49
  if (currentDirection === 'up') {
41
- containerElement.style.setProperty('--comp-pop-bottom', `${rootElementRect.height + rootElementRect.top - controlTop}px`);
50
+ if (isModule) {
51
+ containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop}px`);
52
+ }
53
+ else {
54
+ containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop - ((_d = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _d === void 0 ? void 0 : _d.offsetTop) - window.scrollY}px`);
55
+ }
42
56
  }
43
57
  if (currentDirection === 'down') {
44
- containerElement.style.setProperty('--comp-pop-top', `${controlBottom - rootElementRect.top}px`);
58
+ if (isModule) {
59
+ containerElement.style.setProperty('--comp-pop-top', `${controlBottom}px`);
60
+ }
61
+ else {
62
+ containerElement.style.setProperty('--comp-pop-top', `${controlBottom + ((_f = (_e = window === null || window === void 0 ? void 0 : window.visualViewport) === null || _e === void 0 ? void 0 : _e.offsetTop) !== null && _f !== void 0 ? _f : 0) + window.scrollY}px`);
63
+ }
45
64
  }
46
65
  // Wait for one paint to prevent layout thrashing
47
66
  await waitForNextPaint();
@@ -72,7 +91,7 @@ export class Q2Popover {
72
91
  containerElement.style.setProperty('--comp-pop-opacity', '1');
73
92
  };
74
93
  this.direction = undefined;
75
- this.align = undefined;
94
+ this.align = 'left';
76
95
  this.open = undefined;
77
96
  this.block = undefined;
78
97
  this.controlElement = undefined;
@@ -82,13 +101,25 @@ export class Q2Popover {
82
101
  this.show = false;
83
102
  }
84
103
  /// Lifecycle hooks ///
104
+ componentWillLoad() {
105
+ if (!this.supportsPopoverAPI) {
106
+ 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.');
107
+ this.mode = 'legacy';
108
+ }
109
+ }
85
110
  componentDidLoad() {
86
111
  this.handleMinHeight();
112
+ if (this.supportsPopoverAPI)
113
+ this.containerElement.addEventListener('toggle', this.handlePopoverToggleEvent);
87
114
  if (this.open)
88
115
  this.determinePopDirection();
89
116
  }
90
117
  disconnectedCallback() {
91
118
  this.removeViewportListeners();
119
+ this.containerElement.removeEventListener('toggle', this.handlePopoverToggleEvent);
120
+ this.containerElement = null;
121
+ this.contentElement = null;
122
+ this.controlElement = null;
92
123
  }
93
124
  /// Methods ///
94
125
  async toggle() {
@@ -143,7 +174,12 @@ export class Q2Popover {
143
174
  else {
144
175
  this.removeViewportListeners();
145
176
  this.currentDirection = undefined;
146
- this.show = false;
177
+ if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
178
+ this.show = false;
179
+ }
180
+ else {
181
+ this.containerElement.hidePopover();
182
+ }
147
183
  await waitForNextPaint();
148
184
  this.clearCSSProperties();
149
185
  }
@@ -160,7 +196,7 @@ export class Q2Popover {
160
196
  event.stopPropagation();
161
197
  }
162
198
  /// Getters ///
163
- get actualDirection() {
199
+ get providedDirection() {
164
200
  const { direction } = this;
165
201
  switch (direction) {
166
202
  case 'up':
@@ -176,23 +212,29 @@ export class Q2Popover {
176
212
  const hasPlatformDimensions = Object.keys((_b = (_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.platformDimensions) !== null && _b !== void 0 ? _b : {}).length > 0;
177
213
  return isIframe && hasPlatformDimensions;
178
214
  }
215
+ get supportsPopoverAPI() {
216
+ return Object.hasOwn(HTMLElement.prototype, 'popover');
217
+ }
179
218
  addViewportListeners() {
180
219
  var _a;
181
220
  window.addEventListener('resize', this.viewPortOrientationChanged);
182
- // #region remove when Popover API is supported in iOS
183
- window.addEventListener('scroll', this.viewPortChanged, { passive: true, capture: true });
184
- (_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.addEventListener('change', this.viewPortOrientationChanged);
221
+ visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.addEventListener('resize', this.viewPortChanged);
222
+ window.addEventListener('scroll', this.viewPortChanged, {
223
+ passive: true,
224
+ capture: true,
225
+ });
226
+ (_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.addEventListener('orientationchange', this.viewPortOrientationChanged);
185
227
  window.addEventListener('orientationchange', this.viewPortOrientationChanged);
186
- // #endregion
187
228
  }
188
229
  removeViewportListeners() {
189
230
  var _a;
190
231
  window.removeEventListener('resize', this.viewPortOrientationChanged);
191
- // #region remove when Popover API is supported in iOS
192
- window.removeEventListener('scroll', this.viewPortChanged);
232
+ visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.removeEventListener('resize', this.viewPortChanged);
233
+ window.removeEventListener('scroll', this.viewPortChanged, {
234
+ capture: true,
235
+ });
193
236
  (_a = screen === null || screen === void 0 ? void 0 : screen.orientation) === null || _a === void 0 ? void 0 : _a.removeEventListener('orientationchange', this.viewPortOrientationChanged);
194
237
  window.removeEventListener('orientationchange', this.viewPortOrientationChanged);
195
- // #endregion
196
238
  }
197
239
  clearCSSProperties() {
198
240
  this.containerElement.style.removeProperty('--comp-pop-max-height');
@@ -211,17 +253,18 @@ export class Q2Popover {
211
253
  if (!isOpen)
212
254
  return;
213
255
  this.currentDirection = direction;
214
- this.show = true;
215
- if (this.mode === 'legacy') {
256
+ if (this.mode === 'legacy' || !this.supportsPopoverAPI) {
257
+ this.show = true;
216
258
  this.setAbsoluteCSSProperties();
217
259
  }
218
260
  else {
219
- this.setFixedCSSProperties();
261
+ this.setPopoverAPICSSProperties();
262
+ this.containerElement.showPopover();
220
263
  }
221
264
  }
222
265
  async determinePopDirection() {
223
266
  var _a, _b, _c;
224
- const { containerElement, controlElement, actualDirection, displayBuffer } = this;
267
+ const { containerElement, controlElement, providedDirection, displayBuffer } = this;
225
268
  if (containerElement)
226
269
  containerElement.style.maxHeight = null;
227
270
  await waitForNextPaint();
@@ -256,7 +299,7 @@ export class Q2Popover {
256
299
  const shouldUpdateMaxHeight = !containerElement.style.getPropertyValue('--comp-pop-max-height') || this.orientationChanged;
257
300
  // we do not want to constantly update the max-height after an orientation change, so we switch this back to false
258
301
  this.orientationChanged = false;
259
- const currentOrDetermineDirection = this.currentDirection || actualDirection || directionWithMostSpace;
302
+ const currentOrDetermineDirection = this.currentDirection || providedDirection || directionWithMostSpace;
260
303
  switch (currentOrDetermineDirection) {
261
304
  case 'up':
262
305
  if (shouldUpdateMaxHeight) {
@@ -276,12 +319,14 @@ export class Q2Popover {
276
319
  }
277
320
  /// DOM ///
278
321
  render() {
279
- const containerClasses = ['container', this.currentDirection];
322
+ const containerClasses = ['container', this.currentDirection, this.align];
280
323
  if (this.show)
281
324
  containerClasses.push('show');
325
+ if (this.block)
326
+ containerClasses.push('block');
282
327
  if (this.mode === 'legacy')
283
328
  containerClasses.push('legacy');
284
- return (h("div", { key: 'c520b4b578cc1febf85121901d4e5abd490b777a', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer" }, h("div", { key: 'c827ea0a3f5528fd03efb6879fc38bfabe3fbbf8', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '49038fed6866dc8f56e194127e96c0b9a4567f91' }))));
329
+ return (h("div", { key: '72de4e17657e0e9b7b3697ff7b1cdd8aa6c9c776', ref: el => (this.containerElement = el), class: containerClasses.join(' '), "test-id": "outerContainer", tabIndex: -1, popover: "auto" }, h("div", { key: 'e1c29594d6106380473e38fd11ff9720db93d03e', ref: el => (this.contentElement = el), class: "content" }, h("slot", { key: '35b98793008291b8b51780bb3167804365127b9e' }))));
285
330
  }
286
331
  static get is() { return "q2-popover"; }
287
332
  static get encapsulation() { return "shadow"; }
@@ -329,7 +374,8 @@ export class Q2Popover {
329
374
  "text": "Aligns the popover to the left or right side of the control element."
330
375
  },
331
376
  "attribute": "align",
332
- "reflect": true
377
+ "reflect": true,
378
+ "defaultValue": "'left'"
333
379
  },
334
380
  "open": {
335
381
  "type": "boolean",
@@ -1 +1 @@
1
- {"version":3,"file":"q2-popover.js","sourceRoot":"","sources":["../../../../src/components/q2-popover/q2-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,IAAI,EACJ,CAAC,EAED,OAAO,EACP,KAAK,EACL,MAAM,EACN,MAAM,EAEN,KAAK,EACL,KAAK,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGzE,MAAM,OAAO,SAAS;;QAuClB;;WAEG;QACH,kBAAa,GAAG,EAAE,CAAC;QAEnB,kDAAkD;QAClD,uBAAkB,GAAY,KAAK,CAAC;QAsHpC,eAAe;QACf,oBAAe,GAAG,GAAG,EAAE;YACnB,IAAI,IAAI,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Prop,\n h,\n ComponentInterface,\n Element,\n Watch,\n Method,\n Listen,\n EventEmitter,\n Event,\n State,\n} from '@stencil/core';\nimport { handleDeprecationWarning, waitForNextPaint } from '../../utils';\n\n@Component({ tag: 'q2-popover', shadow: true, styleUrl: 'q2-popover.scss' })\nexport class Q2Popover implements ComponentInterface {\n /**\n * Force the direction of the popover when it opens.\n * If no value is passed, the component will auto-detect the direction based on available space.\n */\n @Prop({ reflect: true }) direction: 'up' | 'down';\n\n /** Aligns the popover to the left or right side of the control element. */\n @Prop({ reflect: true }) align: 'left' | 'right';\n\n /** Controls whether the popover is open or closed. */\n @Prop({ reflect: true, mutable: true }) open: boolean;\n\n /** Indicates the popover will match the width of its parent element. */\n @Prop({ reflect: true }) block: boolean;\n\n /** The element that controls the popover's behavior. */\n @Prop() controlElement: HTMLElement;\n\n @Prop() mode: 'legacy' = null;\n\n /** @deprecated */\n @Prop() minHeight: number;\n\n @Element() hostElement: HTMLElement;\n\n /**\n * Emitted when the popover is opened or closed.\n */\n @Event() popoverStateChanged: EventEmitter<{ open: boolean }>;\n\n @State() currentDirection: 'down' | 'up' = undefined;\n // remove `show` when Popover API is supported in iOS\n @State() show: boolean = false;\n\n containerElement: HTMLDivElement;\n contentElement: HTMLDivElement;\n rootElementRect: DOMRect;\n\n /**\n * The number of pixels to leave between the popover and the edge of the viewport\n */\n displayBuffer = 10;\n\n /** remove when Popover API is supported in iOS */\n orientationChanged: boolean = false;\n\n /// Lifecycle hooks ///\n componentDidLoad() {\n this.handleMinHeight();\n if (this.open) this.determinePopDirection();\n }\n\n disconnectedCallback() {\n this.removeViewportListeners();\n }\n\n /// Methods ///\n @Method()\n async toggle() {\n this.open = !this.open;\n }\n\n @Method()\n async scrollContainerTo(options: ScrollToOptions) {\n this.containerElement.scrollTo(options);\n }\n\n setRootElement() {\n let currentElement: HTMLElement = this.hostElement;\n\n while (currentElement && currentElement !== document.documentElement) {\n const computedStyle = window.getComputedStyle(currentElement);\n\n // Check if the element has any styles applied that create a new containg block\n if (\n computedStyle.transform !== 'none' ||\n computedStyle.filter !== 'none' ||\n computedStyle.perspective !== 'none' ||\n computedStyle.containerType !== 'normal' ||\n ['transform', 'perspective', 'filter'].includes(computedStyle.willChange) ||\n ['layout', 'paint', 'strict', 'content'].includes(computedStyle.contain)\n ) {\n this.rootElementRect = currentElement.getBoundingClientRect();\n return;\n }\n\n const rootNode = currentElement.getRootNode();\n const isRootNodeWebComponent =\n typeof ShadowRoot !== 'undefined' &&\n rootNode instanceof ShadowRoot &&\n rootNode.host instanceof HTMLElement;\n if (isRootNodeWebComponent) {\n currentElement = rootNode.host;\n } else {\n currentElement = currentElement.parentElement;\n }\n }\n\n // Return the document's bounding rect if no element is found\n this.rootElementRect = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n height: window.visualViewport.height,\n width: window.visualViewport.width,\n } as DOMRect;\n }\n\n /// Watchers ///\n @Watch('open')\n async openChanged(open: boolean) {\n this.setRootElement();\n this.popoverStateChanged.emit({ open });\n\n if (open) {\n this.addViewportListeners();\n this.determinePopDirection();\n } else {\n this.removeViewportListeners();\n this.currentDirection = undefined;\n this.show = false;\n await waitForNextPaint();\n this.clearCSSProperties();\n }\n }\n\n @Watch('minHeight')\n minHeightProvided() {\n this.handleMinHeight();\n }\n\n /// Listeners ///\n @Listen('popoverState')\n popoverStateHandler(event: CustomEvent<{ open: boolean }>) {\n const {\n detail: { open },\n } = event;\n if (open === this.open) return;\n\n this.open = open;\n event.stopPropagation();\n }\n\n /// Getters ///\n get actualDirection(): 'up' | 'down' | undefined {\n const { direction } = this;\n switch (direction) {\n case 'up':\n case 'down':\n return direction;\n default:\n return undefined;\n }\n }\n\n get isModule() {\n const isIframe = window !== window.top;\n const hasPlatformDimensions = Object.keys(window.Tecton?.platformDimensions ?? {}).length > 0;\n return isIframe && hasPlatformDimensions;\n }\n\n /// Helpers ///\n handleMinHeight = () => {\n if (this.minHeight) {\n handleDeprecationWarning(this, 'minHeight', 'prop');\n }\n };\n\n viewPortChanged = () => {\n if (!this.open) return;\n this.determinePopDirection();\n };\n\n viewPortOrientationChanged = () => {\n this.orientationChanged = true;\n this.viewPortChanged();\n };\n\n addViewportListeners() {\n window.addEventListener('resize', this.viewPortOrientationChanged);\n // #region remove when Popover API is supported in iOS\n window.addEventListener('scroll', this.viewPortChanged, { passive: true, capture: true });\n screen?.orientation?.addEventListener('change', this.viewPortOrientationChanged);\n window.addEventListener('orientationchange', this.viewPortOrientationChanged);\n // #endregion\n }\n\n removeViewportListeners() {\n window.removeEventListener('resize', this.viewPortOrientationChanged);\n // #region remove when Popover API is supported in iOS\n window.removeEventListener('scroll', this.viewPortChanged);\n screen?.orientation?.removeEventListener('orientationchange', this.viewPortOrientationChanged);\n window.removeEventListener('orientationchange', this.viewPortOrientationChanged);\n // #endregion\n }\n\n setFixedCSSProperties = async () => {\n const { controlElement, containerElement, currentDirection, rootElementRect } = this;\n const {\n top: controlTop,\n bottom: controlBottom,\n left: controlLeft,\n right: controlRight,\n } = controlElement?.getBoundingClientRect?.() ?? {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n };\n const popoverLeft: number = controlLeft - rootElementRect.left;\n\n if (this.block) containerElement.style.setProperty('--comp-pop-width', `${controlElement.offsetWidth || 0}px`);\n containerElement.style.setProperty('--comp-pop-left', `${popoverLeft}px`);\n containerElement.style.setProperty(\n '--comp-pop-right',\n `${rootElementRect.width + rootElementRect.left - controlRight}px`\n );\n\n if (currentDirection === 'up') {\n containerElement.style.setProperty(\n '--comp-pop-bottom',\n `${rootElementRect.height + rootElementRect.top - controlTop}px`\n );\n }\n if (currentDirection === 'down') {\n containerElement.style.setProperty('--comp-pop-top', `${controlBottom - rootElementRect.top}px`);\n }\n\n // Wait for one paint to prevent layout thrashing\n await waitForNextPaint();\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n };\n\n setAbsoluteCSSProperties = async () => {\n const { controlElement, containerElement, currentDirection, align } = this;\n\n if (align === 'right') {\n containerElement.style.setProperty('--comp-pop-right', '0');\n containerElement.style.setProperty('--comp-pop-left', 'unset');\n } else {\n containerElement.style.setProperty('--comp-pop-left', '0');\n containerElement.style.setProperty('--comp-pop-right', 'unset');\n }\n\n if (this.block) {\n containerElement.style.setProperty('--comp-pop-width', '100%');\n }\n\n if (currentDirection === 'up') {\n const controlStyle = getComputedStyle(controlElement);\n const controlSize =\n parseInt(controlStyle.height || '0') +\n parseInt(controlStyle.borderTopWidth || '0') +\n parseInt(controlStyle.borderBottomWidth || '0');\n\n containerElement.style.setProperty('--comp-pop-bottom', `${controlSize}px`);\n }\n\n // Wait for one paint to prevent layout thrashing\n await waitForNextPaint();\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n };\n\n clearCSSProperties() {\n this.containerElement.style.removeProperty('--comp-pop-max-height');\n this.containerElement.style.removeProperty('--comp-pop-top');\n this.containerElement.style.removeProperty('--comp-pop-bottom');\n this.containerElement.style.removeProperty('--comp-pop-left');\n this.containerElement.style.removeProperty('--comp-pop-right');\n this.containerElement.style.removeProperty('--comp-pop-width');\n this.containerElement.style.removeProperty('--comp-pop-opacity');\n }\n\n setDirectionAndShow(direction: 'up' | 'down') {\n this.setRootElement();\n // Due to some runtime inconsistency across devices/browsers we need to add one more check here because the\n // popover can be closed between the time the popover is opened and the time the direction is determined\n const isOpen = this.open;\n if (!isOpen) return;\n\n this.currentDirection = direction;\n this.show = true;\n if (this.mode === 'legacy') {\n this.setAbsoluteCSSProperties();\n } else {\n this.setFixedCSSProperties();\n }\n }\n\n async determinePopDirection() {\n const { containerElement, controlElement, actualDirection, displayBuffer } = this;\n if (containerElement) containerElement.style.maxHeight = null;\n\n await waitForNextPaint();\n\n const { isModule } = this;\n const { top: controlTop, bottom: controlBottom } = controlElement?.getBoundingClientRect?.() ?? {\n top: 0,\n bottom: 0,\n };\n\n let windowHeight: number;\n let maxSpaceAbove: number;\n let maxSpaceBelow: number;\n\n if (isModule) {\n const { outletOffset = 0, innerHeight = window.innerHeight } = window.Tecton?.platformDimensions || {};\n const distanceToIframeBottom = window.visualViewport.height - controlBottom;\n const viewableSpaceBelow = innerHeight - (outletOffset + controlBottom);\n const isIframeShorterThanWindow = distanceToIframeBottom < viewableSpaceBelow;\n windowHeight = innerHeight;\n // If the top of the module is below the top of the window we just use the controlTop\n // Otherwise we need to add the outletOffset to the controlTop\n maxSpaceAbove = (outletOffset > 0 ? controlTop : controlTop + outletOffset) - displayBuffer;\n maxSpaceBelow = isIframeShorterThanWindow\n ? distanceToIframeBottom - displayBuffer\n : viewableSpaceBelow - displayBuffer;\n } else {\n windowHeight = window.visualViewport.height;\n maxSpaceAbove = controlTop - displayBuffer;\n maxSpaceBelow = windowHeight - controlBottom - displayBuffer;\n }\n\n const directionWithMostSpace: 'up' | 'down' = maxSpaceAbove > maxSpaceBelow ? 'up' : 'down';\n\n // We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)\n const shouldUpdateMaxHeight =\n !containerElement.style.getPropertyValue('--comp-pop-max-height') || this.orientationChanged;\n // we do not want to constantly update the max-height after an orientation change, so we switch this back to false\n this.orientationChanged = false;\n const currentOrDetermineDirection = this.currentDirection || actualDirection || directionWithMostSpace;\n\n switch (currentOrDetermineDirection) {\n case 'up':\n if (shouldUpdateMaxHeight) {\n containerElement.style.setProperty('--comp-pop-max-height', `${maxSpaceAbove}px`);\n }\n this.setDirectionAndShow('up');\n break;\n case 'down':\n if (shouldUpdateMaxHeight) {\n containerElement.style.setProperty('--comp-pop-max-height', `${maxSpaceBelow}px`);\n }\n this.setDirectionAndShow('down');\n break;\n default:\n break;\n }\n }\n\n /// DOM ///\n render() {\n const containerClasses = ['container', this.currentDirection];\n if (this.show) containerClasses.push('show');\n if (this.mode === 'legacy') containerClasses.push('legacy');\n\n return (\n <div\n ref={el => (this.containerElement = el)}\n class={containerClasses.join(' ')}\n test-id=\"outerContainer\"\n >\n <div\n ref={el => (this.contentElement = el)}\n class=\"content\"\n >\n <slot />\n </div>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"q2-popover.js","sourceRoot":"","sources":["../../../../src/components/q2-popover/q2-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,IAAI,EACJ,CAAC,EAED,OAAO,EACP,KAAK,EACL,MAAM,EACN,MAAM,EAEN,KAAK,EACL,KAAK,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGzE,MAAM,OAAO,SAAS;;QAuClB;;WAEG;QACH,kBAAa,GAAG,EAAE,CAAC;QAEnB,uBAAkB,GAAY,KAAK,CAAC;QA6IpC,eAAe;QACf,oBAAe,GAAG,GAAG,EAAE;YACnB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,wBAAwB,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;YACxD,CAAC;QACL,CAAC,CAAC;QAEF,6BAAwB,GAAG,CAAC,KAAkB,EAAE,EAAE;YAC9C,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC,CAAC;QACvE,CAAC,CAAC;QAEF,oBAAe,GAAG,GAAG,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,IAAI;gBAAE,OAAO;YACvB,IAAI,CAAC,qBAAqB,EAAE,CAAC;QACjC,CAAC,CAAC;QAEF,+BAA0B,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;YAC/B,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3B,CAAC,CAAC;QAuBF,+BAA0B,GAAG,KAAK,IAAI,EAAE;;YACpC,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;YAC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AC,EACZ,OAAO,EAAC,MAAM;YAEd,4DACI,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,EACrC,KAAK,EAAC,SAAS;gBAEf,8DAAQ,CACN,CACJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Prop,\n h,\n ComponentInterface,\n Element,\n Watch,\n Method,\n Listen,\n EventEmitter,\n Event,\n State,\n} from '@stencil/core';\nimport { handleDeprecationWarning, waitForNextPaint } from '../../utils';\n\n@Component({ tag: 'q2-popover', shadow: true, styleUrl: 'q2-popover.scss' })\nexport class Q2Popover implements ComponentInterface {\n /**\n * Force the direction of the popover when it opens.\n * If no value is passed, the component will auto-detect the direction based on available space.\n */\n @Prop({ reflect: true }) direction: 'up' | 'down';\n\n /** Aligns the popover to the left or right side of the control element. */\n @Prop({ reflect: true }) align: 'left' | 'right' = 'left';\n\n /** Controls whether the popover is open or closed. */\n @Prop({ reflect: true, mutable: true }) open: boolean;\n\n /** Indicates the popover will match the width of its parent element. */\n @Prop({ reflect: true }) block: boolean;\n\n /** The element that controls the popover's behavior. */\n @Prop() controlElement: HTMLElement;\n\n @Prop() mode: 'legacy' = null;\n\n /** @deprecated */\n @Prop() minHeight: number;\n\n @Element() hostElement: HTMLElement;\n\n /**\n * Emitted when the popover is opened or closed.\n */\n @Event() popoverStateChanged: EventEmitter<{ open: boolean }>;\n\n @State() currentDirection: 'down' | 'up' = undefined;\n // remove `show` when Popover API is supported in iOS\n @State() show: boolean = false;\n\n containerElement: HTMLDivElement;\n contentElement: HTMLDivElement;\n rootElementRect: DOMRect;\n\n /**\n * The number of pixels to leave between the popover and the edge of the viewport\n */\n displayBuffer = 10;\n\n orientationChanged: boolean = false;\n\n /// Lifecycle hooks ///\n componentWillLoad() {\n if (!this.supportsPopoverAPI) {\n console.warn(\n 'The Popover API is not supported in this browser. Please update your browser to the latest version. The component will use legacy mode.'\n );\n this.mode = 'legacy';\n }\n }\n\n componentDidLoad() {\n this.handleMinHeight();\n if (this.supportsPopoverAPI) this.containerElement.addEventListener('toggle', this.handlePopoverToggleEvent);\n if (this.open) this.determinePopDirection();\n }\n\n disconnectedCallback() {\n this.removeViewportListeners();\n this.containerElement.removeEventListener('toggle', this.handlePopoverToggleEvent);\n this.containerElement = null;\n this.contentElement = null;\n this.controlElement = null;\n }\n\n /// Methods ///\n @Method()\n async toggle() {\n this.open = !this.open;\n }\n\n @Method()\n async scrollContainerTo(options: ScrollToOptions) {\n this.containerElement.scrollTo(options);\n }\n\n setRootElement() {\n let currentElement: HTMLElement = this.hostElement;\n\n while (currentElement && currentElement !== document.documentElement) {\n const computedStyle = window.getComputedStyle(currentElement);\n\n // Check if the element has any styles applied that create a new containg block\n if (\n computedStyle.transform !== 'none' ||\n computedStyle.filter !== 'none' ||\n computedStyle.perspective !== 'none' ||\n computedStyle.containerType !== 'normal' ||\n ['transform', 'perspective', 'filter'].includes(computedStyle.willChange) ||\n ['layout', 'paint', 'strict', 'content'].includes(computedStyle.contain)\n ) {\n this.rootElementRect = currentElement.getBoundingClientRect();\n return;\n }\n\n const rootNode = currentElement.getRootNode();\n const isRootNodeWebComponent =\n typeof ShadowRoot !== 'undefined' &&\n rootNode instanceof ShadowRoot &&\n rootNode.host instanceof HTMLElement;\n if (isRootNodeWebComponent) {\n currentElement = rootNode.host;\n } else {\n currentElement = currentElement.parentElement;\n }\n }\n\n // Return the document's bounding rect if no element is found\n this.rootElementRect = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n height: window.visualViewport.height,\n width: window.visualViewport.width,\n } as DOMRect;\n }\n\n /// Watchers ///\n @Watch('open')\n async openChanged(open: boolean) {\n this.setRootElement();\n this.popoverStateChanged.emit({ open });\n\n if (open) {\n this.addViewportListeners();\n this.determinePopDirection();\n } else {\n this.removeViewportListeners();\n this.currentDirection = undefined;\n if (this.mode === 'legacy' || !this.supportsPopoverAPI) {\n this.show = false;\n } else {\n this.containerElement.hidePopover();\n }\n\n await waitForNextPaint();\n this.clearCSSProperties();\n }\n }\n\n @Watch('minHeight')\n minHeightProvided() {\n this.handleMinHeight();\n }\n\n /// Listeners ///\n @Listen('popoverState')\n popoverStateHandler(event: CustomEvent<{ open: boolean }>) {\n const {\n detail: { open },\n } = event;\n if (open === this.open) return;\n\n this.open = open;\n event.stopPropagation();\n }\n\n /// Getters ///\n get providedDirection(): 'up' | 'down' | undefined {\n const { direction } = this;\n switch (direction) {\n case 'up':\n case 'down':\n return direction;\n default:\n return undefined;\n }\n }\n\n get isModule() {\n const isIframe = window !== window.top;\n const hasPlatformDimensions = Object.keys(window.Tecton?.platformDimensions ?? {}).length > 0;\n return isIframe && hasPlatformDimensions;\n }\n\n get supportsPopoverAPI(): boolean {\n return Object.hasOwn(HTMLElement.prototype, 'popover');\n }\n\n /// Helpers ///\n handleMinHeight = () => {\n if (this.minHeight) {\n handleDeprecationWarning(this, 'minHeight', 'prop');\n }\n };\n\n handlePopoverToggleEvent = (event: ToggleEvent) => {\n this.popoverStateChanged.emit({ open: event.newState === 'open' });\n };\n\n viewPortChanged = () => {\n if (!this.open) return;\n this.determinePopDirection();\n };\n\n viewPortOrientationChanged = () => {\n this.orientationChanged = true;\n this.viewPortChanged();\n };\n\n addViewportListeners() {\n window.addEventListener('resize', this.viewPortOrientationChanged);\n visualViewport?.addEventListener('resize', this.viewPortChanged);\n window.addEventListener('scroll', this.viewPortChanged, {\n passive: true,\n capture: true,\n });\n screen?.orientation?.addEventListener('orientationchange', this.viewPortOrientationChanged);\n window.addEventListener('orientationchange', this.viewPortOrientationChanged);\n }\n\n removeViewportListeners() {\n window.removeEventListener('resize', this.viewPortOrientationChanged);\n visualViewport?.removeEventListener('resize', this.viewPortChanged);\n window.removeEventListener('scroll', this.viewPortChanged, {\n capture: true,\n });\n screen?.orientation?.removeEventListener('orientationchange', this.viewPortOrientationChanged);\n window.removeEventListener('orientationchange', this.viewPortOrientationChanged);\n }\n\n setPopoverAPICSSProperties = async () => {\n const { controlElement, containerElement, currentDirection, isModule, align } = this;\n const {\n top: controlTop,\n bottom: controlBottom,\n left: controlLeft,\n right: controlRight,\n } = controlElement?.getBoundingClientRect?.() ?? {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n };\n\n const popoverLeft: number = controlLeft;\n const popoverRight: number = window?.visualViewport?.width - controlRight;\n\n if (align === 'right') {\n containerElement.style.setProperty('--comp-pop-right', `${popoverRight - window.scrollX}px`);\n containerElement.style.setProperty('--comp-pop-left', 'unset');\n } else {\n containerElement.style.setProperty('--comp-pop-left', `${popoverLeft + window.scrollX}px`);\n containerElement.style.setProperty('--comp-pop-right', 'unset');\n }\n\n if (this.block) containerElement.style.setProperty('--comp-pop-width', `${controlElement?.offsetWidth || 0}px`);\n\n if (currentDirection === 'up') {\n if (isModule) {\n containerElement.style.setProperty('--comp-pop-bottom', `${window.innerHeight - controlTop}px`);\n } else {\n containerElement.style.setProperty(\n '--comp-pop-bottom',\n `${window.innerHeight - controlTop - window?.visualViewport?.offsetTop - window.scrollY}px`\n );\n }\n }\n\n if (currentDirection === 'down') {\n if (isModule) {\n containerElement.style.setProperty('--comp-pop-top', `${controlBottom}px`);\n } else {\n containerElement.style.setProperty(\n '--comp-pop-top',\n `${controlBottom + (window?.visualViewport?.offsetTop ?? 0) + window.scrollY}px`\n );\n }\n }\n\n // Wait for one paint to prevent layout thrashing\n await waitForNextPaint();\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n };\n\n setAbsoluteCSSProperties = async () => {\n const { controlElement, containerElement, currentDirection, align } = this;\n\n if (align === 'right') {\n containerElement.style.setProperty('--comp-pop-right', '0');\n containerElement.style.setProperty('--comp-pop-left', 'unset');\n } else {\n containerElement.style.setProperty('--comp-pop-left', '0');\n containerElement.style.setProperty('--comp-pop-right', 'unset');\n }\n\n if (this.block) {\n containerElement.style.setProperty('--comp-pop-width', '100%');\n }\n\n if (currentDirection === 'up') {\n const controlStyle = getComputedStyle(controlElement);\n const controlSize =\n parseInt(controlStyle.height || '0') +\n parseInt(controlStyle.borderTopWidth || '0') +\n parseInt(controlStyle.borderBottomWidth || '0');\n\n containerElement.style.setProperty('--comp-pop-bottom', `${controlSize}px`);\n }\n\n // Wait for one paint to prevent layout thrashing\n await waitForNextPaint();\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n };\n\n clearCSSProperties() {\n this.containerElement.style.removeProperty('--comp-pop-max-height');\n this.containerElement.style.removeProperty('--comp-pop-top');\n this.containerElement.style.removeProperty('--comp-pop-bottom');\n this.containerElement.style.removeProperty('--comp-pop-left');\n this.containerElement.style.removeProperty('--comp-pop-right');\n this.containerElement.style.removeProperty('--comp-pop-width');\n this.containerElement.style.removeProperty('--comp-pop-opacity');\n }\n\n setDirectionAndShow(direction: 'up' | 'down') {\n this.setRootElement();\n // Due to some runtime inconsistency across devices/browsers we need to add one more check here because the\n // popover can be closed between the time the popover is opened and the time the direction is determined\n const isOpen = this.open;\n if (!isOpen) return;\n\n this.currentDirection = direction;\n if (this.mode === 'legacy' || !this.supportsPopoverAPI) {\n this.show = true;\n this.setAbsoluteCSSProperties();\n } else {\n this.setPopoverAPICSSProperties();\n this.containerElement.showPopover();\n }\n }\n\n async determinePopDirection() {\n const { containerElement, controlElement, providedDirection, displayBuffer } = this;\n if (containerElement) containerElement.style.maxHeight = null;\n\n await waitForNextPaint();\n\n const { isModule } = this;\n const { top: controlTop, bottom: controlBottom } = controlElement?.getBoundingClientRect?.() ?? {\n top: 0,\n bottom: 0,\n };\n\n let windowHeight: number;\n let maxSpaceAbove: number;\n let maxSpaceBelow: number;\n\n if (isModule) {\n const { outletOffset = 0, innerHeight = window.innerHeight } = window.Tecton?.platformDimensions || {};\n const distanceToIframeBottom = window.visualViewport.height - controlBottom;\n const viewableSpaceBelow = innerHeight - (outletOffset + controlBottom);\n const isIframeShorterThanWindow = distanceToIframeBottom < viewableSpaceBelow;\n windowHeight = innerHeight;\n // If the top of the module is below the top of the window we just use the controlTop\n // Otherwise we need to add the outletOffset to the controlTop\n maxSpaceAbove = (outletOffset > 0 ? controlTop : controlTop + outletOffset) - displayBuffer;\n maxSpaceBelow = isIframeShorterThanWindow\n ? distanceToIframeBottom - displayBuffer\n : viewableSpaceBelow - displayBuffer;\n } else {\n windowHeight = window.visualViewport.height;\n maxSpaceAbove = controlTop - displayBuffer;\n maxSpaceBelow = windowHeight - controlBottom - displayBuffer;\n }\n\n const directionWithMostSpace: 'up' | 'down' = maxSpaceAbove > maxSpaceBelow ? 'up' : 'down';\n\n // We do not want to update the max height once the popover is open unless the page orientation shifts (resize or mobile use cases)\n const shouldUpdateMaxHeight =\n !containerElement.style.getPropertyValue('--comp-pop-max-height') || this.orientationChanged;\n // we do not want to constantly update the max-height after an orientation change, so we switch this back to false\n this.orientationChanged = false;\n const currentOrDetermineDirection = this.currentDirection || providedDirection || directionWithMostSpace;\n\n switch (currentOrDetermineDirection) {\n case 'up':\n if (shouldUpdateMaxHeight) {\n containerElement.style.setProperty('--comp-pop-max-height', `${maxSpaceAbove}px`);\n }\n this.setDirectionAndShow('up');\n break;\n case 'down':\n if (shouldUpdateMaxHeight) {\n containerElement.style.setProperty('--comp-pop-max-height', `${maxSpaceBelow}px`);\n }\n this.setDirectionAndShow('down');\n break;\n default:\n break;\n }\n }\n\n /// DOM ///\n render() {\n const containerClasses = ['container', this.currentDirection, this.align];\n if (this.show) containerClasses.push('show');\n if (this.block) containerClasses.push('block');\n if (this.mode === 'legacy') containerClasses.push('legacy');\n\n return (\n <div\n ref={el => (this.containerElement = el)}\n class={containerClasses.join(' ')}\n test-id=\"outerContainer\"\n tabIndex={-1}\n popover=\"auto\"\n >\n <div\n ref={el => (this.contentElement = el)}\n class=\"content\"\n >\n <slot />\n </div>\n </div>\n );\n }\n}\n"]}
@@ -67,7 +67,7 @@ export class Q2Radio {
67
67
  }
68
68
  }
69
69
  render() {
70
- return (h("div", { key: '747de74f65700a44bec6fb7fbaf6e910685897e4', class: this.groupTileLayout ? 'radio-tile' : 'radio-container' }, h("input", { key: '4727b651cdc7e2fa095c8b4a1050463ef1aeca1d', ref: el => (this.inputField = el), class: "sr", id: this._id, type: "radio", name: this.name, value: this.value, disabled: this.disabled || this.groupDisabled, checked: this.checked, "aria-label": this.label && this.hideLabel ? loc(this.label) : undefined, onChange: this.inputChange, "test-id": "q2RadioInnerRadioBox" }), h("label", { key: 'bc37d7119b83407f93dabf4d75be15e3d31be876', htmlFor: this._id, class: this.hideLabel ? 'label-hidden' : undefined, "test-id": "radioButton" }, !this.groupTileLayout && (h("svg", { key: '197549ba1fcfe3d509a00f3c5e45f36fab4c4ff2', viewBox: "0 0 18 18" }, h("circle", { key: '206836e8921b866e27fadbdc8354b305acad2c0d', stroke: "none", fill: "none", cx: "9", cy: "9", r: "8" }), h("circle", { key: '50ef8f9239754be1d153df0e38bc55a663e0c12c', stroke: "none", fill: "none", cx: "9", cy: "9", r: "4" }))), !this.hideLabel && (h("div", { key: '5a2d36332cc8231daaa08eb5c3db99598d921f08', class: "label-content" }, (this.label && loc(this.label)) || '', h("slot", { key: '3b3b5c2e89a82092dc8b727e5cfc15609aaba27e' }))))));
70
+ return (h("div", { key: '11d52f8240d6022946c837b15afb173c44eb8962', class: this.groupTileLayout ? 'radio-tile' : 'radio-container' }, h("input", { key: '640bea7973f39132323acab2877d7995110c17d7', ref: el => (this.inputField = el), class: "sr", id: this._id, type: "radio", name: this.name, value: this.value, disabled: this.disabled || this.groupDisabled, checked: this.checked, "aria-label": this.label && this.hideLabel ? loc(this.label) : undefined, onChange: this.inputChange, "test-id": "q2RadioInnerRadioBox" }), h("label", { key: 'e198013184a88d97d76997c5f6e4c6c2784639b5', htmlFor: this._id, class: this.hideLabel ? 'label-hidden' : undefined, "test-id": "radioButton" }, !this.groupTileLayout && (h("svg", { key: 'cf8114adaf788f34a482c577c0f236e37d49e1ec', viewBox: "0 0 18 18" }, h("circle", { key: 'ccbd318974b142dc6bb8d86500c015bbb181bf6e', stroke: "none", fill: "none", cx: "9", cy: "9", r: "8" }), h("circle", { key: '07514318a21df53b3a85714b4a6e586ca2c5ad05', stroke: "none", fill: "none", cx: "9", cy: "9", r: "4" }))), !this.hideLabel && (h("div", { key: 'a77b401809a6a1f7adeb5f118efeaa2a238ebbf9', class: "label-content" }, (this.label && loc(this.label)) || '', h("slot", { key: '884d312374997e55428215c5f302b55dded2ed0f' }))))));
71
71
  }
72
72
  static get is() { return "q2-radio"; }
73
73
  static get encapsulation() { return "shadow"; }
@@ -154,7 +154,7 @@ export class Q2RadioGroup {
154
154
  const showLabel = this.label || this.optional || this.readonly;
155
155
  const { hasError } = this;
156
156
  const showLabelRow = showLabel || hasError;
157
- return (h(Fragment, { key: '5fc0ba8dc6df9631a891e6997e520e663671dbf8' }, showLabelRow && (h("div", { key: 'd65d48917b4dfa90b498467baf1b0d546f57df1b', class: "label-row" }, showLabel && h("div", { key: '43e5db86c270d7e0822c1683d1eca97cb64e72c2', class: "group-legend" }, labelDOM(this)), hasError && (h("q2-icon", { key: 'f57ca3a0da21160ac81d00cac3c85a069fd3d9e5', type: "error", "test-id": "iconError" })))), h("fieldset", { key: 'e85a89714c71b43670d392ba311d436a4c73038b', onChange: this.onInnerRadioChange, "aria-invalid": `${this.hasError}` }, showLabel && h("legend", { key: '701af7a401c2871f9cbc472ffa27edac8b3e109e', class: "sr" }, labelDOM(this)), this.inputDom())));
157
+ return (h(Fragment, { key: '89b900da542fcef23c5b83f79a5f9d0a94c46b94' }, showLabelRow && (h("div", { key: 'c8b042825052f086c86daeea2a4785a935e89669', class: "label-row" }, showLabel && h("div", { key: '0b76b8f8da79ef43aaaac6fb9dbd55deb98ae4f0', class: "group-legend" }, labelDOM(this)), hasError && (h("q2-icon", { key: '114c828a9a38c6e967f309a9cc33e36b81c6688f', type: "error", "test-id": "iconError" })))), h("fieldset", { key: '08ea4a163a783340e50f9cb7c89b30fb1cd1e8a7', onChange: this.onInnerRadioChange, "aria-invalid": `${this.hasError}` }, showLabel && h("legend", { key: '668f4d97c9b8e8056589260ebac95d060709f490', class: "sr" }, labelDOM(this)), this.inputDom())));
158
158
  }
159
159
  inputDom() {
160
160
  if (this.tileLayout) {
@@ -131,7 +131,7 @@ export class Q2RelativeTime {
131
131
  /// DOM ///
132
132
  render() {
133
133
  const { shouldShow, displayedMessage } = this;
134
- return h(Fragment, { key: 'bc05bc398a991b70bb5c19adde0d739768db76cd' }, shouldShow ? h("time", { dateTime: displayedMessage }, displayedMessage) : null);
134
+ return h(Fragment, { key: '395ab095d5167c217b92461697cd7283c5dc4fd3' }, shouldShow ? h("time", { dateTime: displayedMessage }, displayedMessage) : null);
135
135
  }
136
136
  static get is() { return "q2-relative-time"; }
137
137
  static get encapsulation() { return "shadow"; }