q2-tecton-elements 1.49.3 → 1.49.4

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 (208) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +16 -11
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-83b024c4.js → index-4b69f62d.js} +33 -1
  4. package/dist/cjs/index-4b69f62d.js.map +1 -0
  5. package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
  6. package/dist/cjs/q2-btn_2.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
  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-data-table.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-detail.cjs.entry.js +1 -1
  18. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-dropdown.cjs.entry.js +4 -2
  20. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  21. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/q2-input.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-item.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-list.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  27. package/dist/cjs/q2-message.cjs.entry.js +1 -1
  28. package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-option-list.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
  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 +1 -1
  36. package/dist/cjs/q2-section.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-select.cjs.entry.js +43 -3
  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-vertical.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
  42. package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
  43. package/dist/cjs/q2-tag.cjs.entry.js +1 -1
  44. package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
  45. package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
  46. package/dist/collection/components/q2-dropdown/q2-dropdown.js +3 -1
  47. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  48. package/dist/collection/components/q2-popover/q2-popover.js +16 -11
  49. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  50. package/dist/collection/components/q2-select/q2-select.js +42 -2
  51. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  52. package/dist/collection/utils/index.js +46 -0
  53. package/dist/collection/utils/index.js.map +1 -1
  54. package/dist/components/index2.js +32 -1
  55. package/dist/components/index2.js.map +1 -1
  56. package/dist/components/q2-dropdown.js +3 -1
  57. package/dist/components/q2-dropdown.js.map +1 -1
  58. package/dist/components/q2-popover2.js +16 -11
  59. package/dist/components/q2-popover2.js.map +1 -1
  60. package/dist/components/q2-select2.js +43 -3
  61. package/dist/components/q2-select2.js.map +1 -1
  62. package/dist/esm/click-elsewhere_2.entry.js +16 -11
  63. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  64. package/dist/esm/{index-e5ac05c3.js → index-73081b4d.js} +33 -2
  65. package/dist/esm/index-73081b4d.js.map +1 -0
  66. package/dist/esm/q2-action-sheet.entry.js +1 -1
  67. package/dist/esm/q2-btn_2.entry.js +1 -1
  68. package/dist/esm/q2-calendar.entry.js +1 -1
  69. package/dist/esm/q2-card.entry.js +1 -1
  70. package/dist/esm/q2-carousel-pane.entry.js +1 -1
  71. package/dist/esm/q2-carousel.entry.js +1 -1
  72. package/dist/esm/q2-chart-area.entry.js +1 -1
  73. package/dist/esm/q2-chart-bar.entry.js +1 -1
  74. package/dist/esm/q2-chart-donut.entry.js +1 -1
  75. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  76. package/dist/esm/q2-checkbox.entry.js +1 -1
  77. package/dist/esm/q2-data-table.entry.js +1 -1
  78. package/dist/esm/q2-detail.entry.js +1 -1
  79. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  80. package/dist/esm/q2-dropdown.entry.js +4 -2
  81. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  82. package/dist/esm/q2-editable-field.entry.js +1 -1
  83. package/dist/esm/q2-icon.entry.js +1 -1
  84. package/dist/esm/q2-input.entry.js +1 -1
  85. package/dist/esm/q2-item.entry.js +1 -1
  86. package/dist/esm/q2-list.entry.js +1 -1
  87. package/dist/esm/q2-loc.entry.js +1 -1
  88. package/dist/esm/q2-message.entry.js +1 -1
  89. package/dist/esm/q2-month-picker.entry.js +1 -1
  90. package/dist/esm/q2-optgroup.entry.js +1 -1
  91. package/dist/esm/q2-option-list.entry.js +1 -1
  92. package/dist/esm/q2-pagination.entry.js +1 -1
  93. package/dist/esm/q2-pill.entry.js +1 -1
  94. package/dist/esm/q2-radio-group.entry.js +1 -1
  95. package/dist/esm/q2-radio.entry.js +1 -1
  96. package/dist/esm/q2-relative-time.entry.js +1 -1
  97. package/dist/esm/q2-section.entry.js +1 -1
  98. package/dist/esm/q2-select.entry.js +43 -3
  99. package/dist/esm/q2-select.entry.js.map +1 -1
  100. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  101. package/dist/esm/q2-stepper-vertical.entry.js +1 -1
  102. package/dist/esm/q2-stepper.entry.js +1 -1
  103. package/dist/esm/q2-tab-container.entry.js +1 -1
  104. package/dist/esm/q2-tag.entry.js +1 -1
  105. package/dist/esm/q2-textarea.entry.js +1 -1
  106. package/dist/esm/q2-tooltip.entry.js +1 -1
  107. package/dist/jest.setup.js +11 -0
  108. package/dist/jest.setup.js.map +1 -1
  109. package/dist/q2-tecton-elements/{p-73c6ecee.entry.js → p-014c6454.entry.js} +2 -2
  110. package/dist/q2-tecton-elements/{p-d950ae4c.entry.js → p-01b436c4.entry.js} +2 -2
  111. package/dist/q2-tecton-elements/p-03fcf787.entry.js +2 -0
  112. package/dist/q2-tecton-elements/{p-3fe148c2.entry.js.map → p-03fcf787.entry.js.map} +1 -1
  113. package/dist/q2-tecton-elements/{p-a6ca739a.entry.js → p-0b33965c.entry.js} +2 -2
  114. package/dist/q2-tecton-elements/{p-70e8ddbe.entry.js → p-0c5ff345.entry.js} +2 -2
  115. package/dist/q2-tecton-elements/p-0d46b95e.js +2 -0
  116. package/dist/q2-tecton-elements/p-0d46b95e.js.map +1 -0
  117. package/dist/q2-tecton-elements/{p-36e541b9.entry.js → p-152641b0.entry.js} +2 -2
  118. package/dist/q2-tecton-elements/p-19d02441.entry.js +2 -0
  119. package/dist/q2-tecton-elements/p-19d02441.entry.js.map +1 -0
  120. package/dist/q2-tecton-elements/p-1bb08555.entry.js +2 -0
  121. package/dist/q2-tecton-elements/p-1bb08555.entry.js.map +1 -0
  122. package/dist/q2-tecton-elements/{p-23638c08.entry.js → p-1be2778a.entry.js} +2 -2
  123. package/dist/q2-tecton-elements/{p-d1ba78ec.entry.js → p-26a23f08.entry.js} +2 -2
  124. package/dist/q2-tecton-elements/{p-a4294b4d.entry.js → p-2a471072.entry.js} +2 -2
  125. package/dist/q2-tecton-elements/{p-11883a2d.entry.js → p-2cd69fc5.entry.js} +2 -2
  126. package/dist/q2-tecton-elements/{p-24c2cc43.entry.js → p-2cdc1c18.entry.js} +2 -2
  127. package/dist/q2-tecton-elements/{p-48a45547.entry.js → p-3b8fbd85.entry.js} +2 -2
  128. package/dist/q2-tecton-elements/{p-b45b6a3e.entry.js → p-408f5dd0.entry.js} +2 -2
  129. package/dist/q2-tecton-elements/{p-60940069.entry.js → p-4635d8fd.entry.js} +2 -2
  130. package/dist/q2-tecton-elements/{p-4f6eebbf.entry.js → p-55554655.entry.js} +2 -2
  131. package/dist/q2-tecton-elements/{p-d63cb875.entry.js → p-6443ae6f.entry.js} +2 -2
  132. package/dist/q2-tecton-elements/{p-ff5f28fb.entry.js → p-79cc72fc.entry.js} +2 -2
  133. package/dist/q2-tecton-elements/{p-e098f6c5.entry.js → p-7db2c188.entry.js} +2 -2
  134. package/dist/q2-tecton-elements/{p-48181bc2.entry.js → p-818fc8a7.entry.js} +2 -2
  135. package/dist/q2-tecton-elements/{p-bd4c5570.entry.js → p-835cf95a.entry.js} +2 -2
  136. package/dist/q2-tecton-elements/{p-436b9b84.entry.js → p-8feb8b28.entry.js} +2 -2
  137. package/dist/q2-tecton-elements/{p-cb4d177a.entry.js → p-926bf280.entry.js} +2 -2
  138. package/dist/q2-tecton-elements/{p-960ee73c.entry.js → p-97ab03d0.entry.js} +2 -2
  139. package/dist/q2-tecton-elements/{p-de4bce7e.entry.js → p-9c9a2662.entry.js} +2 -2
  140. package/dist/q2-tecton-elements/{p-26a7f68d.entry.js → p-a531a983.entry.js} +2 -2
  141. package/dist/q2-tecton-elements/{p-99a8fdc4.entry.js → p-aa7d16b8.entry.js} +2 -2
  142. package/dist/q2-tecton-elements/{p-0c1e2b0d.entry.js → p-adf615fc.entry.js} +2 -2
  143. package/dist/q2-tecton-elements/{p-04dd9b90.entry.js → p-b6e531bb.entry.js} +2 -2
  144. package/dist/q2-tecton-elements/{p-85eff820.entry.js → p-b7805a04.entry.js} +2 -2
  145. package/dist/q2-tecton-elements/{p-f6901c57.entry.js → p-bdaa03ca.entry.js} +2 -2
  146. package/dist/q2-tecton-elements/{p-33a16719.entry.js → p-be03e61f.entry.js} +2 -2
  147. package/dist/q2-tecton-elements/{p-8b032c77.entry.js → p-c08dba38.entry.js} +2 -2
  148. package/dist/q2-tecton-elements/{p-631226a9.entry.js → p-e3d214f7.entry.js} +2 -2
  149. package/dist/q2-tecton-elements/{p-85ddbe4f.entry.js → p-e5e9718c.entry.js} +2 -2
  150. package/dist/q2-tecton-elements/{p-ba7ffb2f.entry.js → p-e844e6f1.entry.js} +2 -2
  151. package/dist/q2-tecton-elements/{p-38a2862e.entry.js → p-ecddccef.entry.js} +2 -2
  152. package/dist/q2-tecton-elements/{p-bf4a9be3.entry.js → p-f6a9e28d.entry.js} +2 -2
  153. package/dist/q2-tecton-elements/{p-2154fd27.entry.js → p-fdf819d2.entry.js} +2 -2
  154. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  155. package/dist/test/elements/q2-popover-test.spec.js +230 -147
  156. package/dist/test/elements/q2-popover-test.spec.js.map +1 -1
  157. package/dist/test/elements/q2-select-test.spec.js +146 -6
  158. package/dist/test/elements/q2-select-test.spec.js.map +1 -1
  159. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +9 -0
  160. package/dist/types/components/q2-select/q2-select.d.ts +4 -0
  161. package/dist/types/utils/index.d.ts +4 -0
  162. package/package.json +3 -3
  163. package/dist/cjs/index-83b024c4.js.map +0 -1
  164. package/dist/esm/index-e5ac05c3.js.map +0 -1
  165. package/dist/q2-tecton-elements/p-3fe148c2.entry.js +0 -2
  166. package/dist/q2-tecton-elements/p-76bd33da.entry.js +0 -2
  167. package/dist/q2-tecton-elements/p-76bd33da.entry.js.map +0 -1
  168. package/dist/q2-tecton-elements/p-ac6c467f.entry.js +0 -2
  169. package/dist/q2-tecton-elements/p-ac6c467f.entry.js.map +0 -1
  170. package/dist/q2-tecton-elements/p-d24bb23e.js +0 -2
  171. package/dist/q2-tecton-elements/p-d24bb23e.js.map +0 -1
  172. /package/dist/q2-tecton-elements/{p-73c6ecee.entry.js.map → p-014c6454.entry.js.map} +0 -0
  173. /package/dist/q2-tecton-elements/{p-d950ae4c.entry.js.map → p-01b436c4.entry.js.map} +0 -0
  174. /package/dist/q2-tecton-elements/{p-a6ca739a.entry.js.map → p-0b33965c.entry.js.map} +0 -0
  175. /package/dist/q2-tecton-elements/{p-70e8ddbe.entry.js.map → p-0c5ff345.entry.js.map} +0 -0
  176. /package/dist/q2-tecton-elements/{p-36e541b9.entry.js.map → p-152641b0.entry.js.map} +0 -0
  177. /package/dist/q2-tecton-elements/{p-23638c08.entry.js.map → p-1be2778a.entry.js.map} +0 -0
  178. /package/dist/q2-tecton-elements/{p-d1ba78ec.entry.js.map → p-26a23f08.entry.js.map} +0 -0
  179. /package/dist/q2-tecton-elements/{p-a4294b4d.entry.js.map → p-2a471072.entry.js.map} +0 -0
  180. /package/dist/q2-tecton-elements/{p-11883a2d.entry.js.map → p-2cd69fc5.entry.js.map} +0 -0
  181. /package/dist/q2-tecton-elements/{p-24c2cc43.entry.js.map → p-2cdc1c18.entry.js.map} +0 -0
  182. /package/dist/q2-tecton-elements/{p-48a45547.entry.js.map → p-3b8fbd85.entry.js.map} +0 -0
  183. /package/dist/q2-tecton-elements/{p-b45b6a3e.entry.js.map → p-408f5dd0.entry.js.map} +0 -0
  184. /package/dist/q2-tecton-elements/{p-60940069.entry.js.map → p-4635d8fd.entry.js.map} +0 -0
  185. /package/dist/q2-tecton-elements/{p-4f6eebbf.entry.js.map → p-55554655.entry.js.map} +0 -0
  186. /package/dist/q2-tecton-elements/{p-d63cb875.entry.js.map → p-6443ae6f.entry.js.map} +0 -0
  187. /package/dist/q2-tecton-elements/{p-ff5f28fb.entry.js.map → p-79cc72fc.entry.js.map} +0 -0
  188. /package/dist/q2-tecton-elements/{p-e098f6c5.entry.js.map → p-7db2c188.entry.js.map} +0 -0
  189. /package/dist/q2-tecton-elements/{p-48181bc2.entry.js.map → p-818fc8a7.entry.js.map} +0 -0
  190. /package/dist/q2-tecton-elements/{p-bd4c5570.entry.js.map → p-835cf95a.entry.js.map} +0 -0
  191. /package/dist/q2-tecton-elements/{p-436b9b84.entry.js.map → p-8feb8b28.entry.js.map} +0 -0
  192. /package/dist/q2-tecton-elements/{p-cb4d177a.entry.js.map → p-926bf280.entry.js.map} +0 -0
  193. /package/dist/q2-tecton-elements/{p-960ee73c.entry.js.map → p-97ab03d0.entry.js.map} +0 -0
  194. /package/dist/q2-tecton-elements/{p-de4bce7e.entry.js.map → p-9c9a2662.entry.js.map} +0 -0
  195. /package/dist/q2-tecton-elements/{p-26a7f68d.entry.js.map → p-a531a983.entry.js.map} +0 -0
  196. /package/dist/q2-tecton-elements/{p-99a8fdc4.entry.js.map → p-aa7d16b8.entry.js.map} +0 -0
  197. /package/dist/q2-tecton-elements/{p-0c1e2b0d.entry.js.map → p-adf615fc.entry.js.map} +0 -0
  198. /package/dist/q2-tecton-elements/{p-04dd9b90.entry.js.map → p-b6e531bb.entry.js.map} +0 -0
  199. /package/dist/q2-tecton-elements/{p-85eff820.entry.js.map → p-b7805a04.entry.js.map} +0 -0
  200. /package/dist/q2-tecton-elements/{p-f6901c57.entry.js.map → p-bdaa03ca.entry.js.map} +0 -0
  201. /package/dist/q2-tecton-elements/{p-33a16719.entry.js.map → p-be03e61f.entry.js.map} +0 -0
  202. /package/dist/q2-tecton-elements/{p-8b032c77.entry.js.map → p-c08dba38.entry.js.map} +0 -0
  203. /package/dist/q2-tecton-elements/{p-631226a9.entry.js.map → p-e3d214f7.entry.js.map} +0 -0
  204. /package/dist/q2-tecton-elements/{p-85ddbe4f.entry.js.map → p-e5e9718c.entry.js.map} +0 -0
  205. /package/dist/q2-tecton-elements/{p-ba7ffb2f.entry.js.map → p-e844e6f1.entry.js.map} +0 -0
  206. /package/dist/q2-tecton-elements/{p-38a2862e.entry.js.map → p-ecddccef.entry.js.map} +0 -0
  207. /package/dist/q2-tecton-elements/{p-bf4a9be3.entry.js.map → p-f6a9e28d.entry.js.map} +0 -0
  208. /package/dist/q2-tecton-elements/{p-2154fd27.entry.js.map → p-fdf819d2.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"q2-popover-test.spec.js","sourceRoot":"","sources":["../../../test/elements/q2-popover-test.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,IAAI,WAAsB,CAAC;IAE3B,MAAM,wBAAwB,GAAG;QAC7B,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,GAAG;QACf,YAAY,EAAE,EAAE;KACnB,CAAC;IAEF,MAAM,kBAAkB,GAAG;QACvB,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,EAAE;QACf,kBAAkB,EAAE,wBAAwB;KAC/C,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC1B,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACjG,CAAC,CAAC;IAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACnB,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;YACnB,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;gBAC7D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;oBAC3B,UAAU,EAAE,CAAC,SAAS,CAAC;oBACvB,IAA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gBAEhD,UAAU,CAAC,WAAW,EAAE,CAAC;YAC7B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage, SpecPage } from '@stencil/core/testing';\nimport { Q2Popover } from '../../src/components/q2-popover/q2-popover';\nimport { handleDeprecationWarning } from '@/utils';\n\ndescribe('popover', () => {\n let specPopover: Q2Popover;\n\n const samplePlatformDimensions = {\n scrollY: 0,\n innerHeight: 800,\n innerWidth: 600,\n outletOffset: 20,\n };\n\n const sampleTectonWindow = {\n inMobileApp: false,\n noStrings: false,\n platformUrl: '',\n platformDimensions: samplePlatformDimensions,\n };\n\n const enablePopoverAPI = () => {\n Object.defineProperty(HTMLElement.prototype, 'popover', { value: true, configurable: true });\n };\n\n describe('Props', () => {\n describe('align', () => {\n it('adds the left class on the container by default', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('left')).toBeTruthy();\n });\n\n it('adds the left class on the container when align is \"left\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover align=\"left\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('left')).toBeTruthy();\n });\n\n it('adds the right class on the container when align is \"right\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover align=\"right\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('right')).toBeTruthy();\n });\n });\n\n describe('block', () => {\n it('adds the block class on the container when block is true', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover block=\"true\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('block')).toBeTruthy();\n });\n\n it('does not add the block class when block is false', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover block=\"false\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('block')).toBeFalsy();\n });\n });\n\n describe('direction', () => {\n const setupPopoverWithDirection = async (direction: 'up' | 'down') => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover direction=\"${direction}\"></q2-popover>`,\n });\n\n // Mock essential dependencies\n window.visualViewport = { width: 800, height: 600 } as VisualViewport;\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.controlElement = document.createElement('div');\n\n // Simulate opening the popover and setting the direction\n page.rootInstance.open = true;\n page.rootInstance.currentDirection = direction;\n page.rootInstance.show = true;\n await page.waitForChanges();\n\n return page;\n };\n\n it('adds the up class on the container when direction is \"up\" and popover is open', async () => {\n const page = await setupPopoverWithDirection('up');\n\n expect(page.rootInstance.currentDirection).toBe('up');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('up')).toBeTruthy();\n });\n\n it('adds the down class on the container when direction is \"down\" and popover is open', async () => {\n const page = await setupPopoverWithDirection('down');\n\n expect(page.rootInstance.currentDirection).toBe('down');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('down')).toBeTruthy();\n });\n });\n\n describe('mode', () => {\n it('adds the legacy class on the container when mode is \"legacy\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover mode=\"legacy\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeTruthy();\n });\n\n it('sets mode to legacy and adds the legacy class when Popover API is NOT supported at runtime', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n expect(page.rootInstance.mode).toBe('legacy');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeTruthy();\n });\n\n it('does not add the legacy class when Popover API is supported at runtime', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n\n enablePopoverAPI();\n page.rootInstance.mode = null;\n page.rootInstance.componentWillLoad();\n\n await page.waitForChanges();\n\n expect(page.rootInstance.mode).not.toBe('legacy');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeFalsy();\n });\n });\n\n describe('open', () => {\n it('sets the open attribute on the hostElement when open is true', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.removeViewportListeners = jest.fn();\n page.rootInstance.open = true;\n await page.waitForChanges();\n expect(page.rootInstance.hostElement.hasAttribute('open')).toBe(true);\n });\n\n it('removes the open attribute on the hostElement when open is false', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.removeViewportListeners = jest.fn();\n page.rootInstance.open = false;\n await page.waitForChanges();\n expect(page.rootInstance.hostElement.hasAttribute('open')).toBe(false);\n });\n });\n });\n\n describe('Events', () => {\n describe('popoverStateChanged', () => {\n let specPopover: Q2Popover;\n let page: SpecPage;\n\n beforeEach(async () => {\n page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n specPopover = page.rootInstance;\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n });\n\n it('emits popoverStateChanged when open changes to true', async () => {\n const popoverStateChangedSpy = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.open = true;\n await page.waitForChanges();\n expect(popoverStateChangedSpy).toHaveBeenCalledWith({ open: true });\n });\n\n it('emits popoverStateChanged when open changes to false', async () => {\n const popoverStateChangedSpy = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.open = false;\n await page.waitForChanges();\n expect(popoverStateChangedSpy).toHaveBeenCalledWith({ open: false });\n });\n });\n });\n\n describe('Lifecycle Events', () => {\n describe('disconnectedCallback', () => {\n beforeEach(async () => {\n specPopover = new Q2Popover();\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n specPopover.containerElement = document.createElement('div');\n specPopover.contentElement = document.createElement('div');\n specPopover.controlElement = document.createElement('div');\n });\n\n it('calls removeViewportListeners', async () => {\n specPopover.disconnectedCallback();\n expect(specPopover.removeViewportListeners).toHaveBeenCalled();\n });\n\n it('removes the toggle event listener from containerElement', async () => {\n const removeEventListenerSpy = jest.spyOn(specPopover.containerElement, 'removeEventListener');\n specPopover.disconnectedCallback();\n expect(removeEventListenerSpy).toHaveBeenCalledWith('toggle', specPopover.handlePopoverToggleEvent);\n });\n\n it('sets containerElement to null', async () => {\n expect(specPopover.containerElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.containerElement).toBeNull();\n });\n\n it('sets contentElement to null', async () => {\n expect(specPopover.contentElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.contentElement).toBeNull();\n });\n\n it('sets controlElement to null', async () => {\n expect(specPopover.controlElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.controlElement).toBeNull();\n });\n });\n\n describe('componentDidLoad', () => {\n it('calls handleMinHeight', async () => {\n specPopover = new Q2Popover();\n specPopover.handleMinHeight = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.handleMinHeight).toHaveBeenCalled();\n });\n\n it('when Popover API is supported, it sets up the \"toggle\" Popover API event listener on container element', async () => {\n specPopover = new Q2Popover();\n enablePopoverAPI();\n specPopover.containerElement = document.createElement('div');\n specPopover.containerElement.addEventListener = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.containerElement.addEventListener).toHaveBeenCalledWith(\n 'toggle',\n specPopover.handlePopoverToggleEvent\n );\n });\n\n it('when open is true it calls determinePopDirection', async () => {\n specPopover = new Q2Popover();\n specPopover.open = true;\n specPopover.determinePopDirection = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n });\n\n describe('componentWillLoad', () => {\n it('if supportsPopoverAPI is false it sets mode to \"legacy\"', async () => {\n specPopover = new Q2Popover();\n\n specPopover.componentWillLoad();\n expect(specPopover.mode).toBe('legacy');\n });\n\n it('if supportsPopoverAPI is true it does NOT set mode to \"legacy\"', async () => {\n specPopover = new Q2Popover();\n enablePopoverAPI();\n specPopover.componentWillLoad();\n expect(specPopover.mode).toBeNull();\n });\n });\n });\n\n describe('Listeners', () => {\n describe('popoverState', () => {\n it('updates open property when event detail and attribute do not match', async () => {\n specPopover = new Q2Popover();\n specPopover.open = false;\n specPopover.popoverStateHandler(new CustomEvent('popoverState', { detail: { open: true } }));\n expect(specPopover.open).toBe(true);\n });\n\n it('does not update the open property if detail and attribute match', async () => {\n specPopover = new Q2Popover();\n specPopover.open = true;\n specPopover.popoverStateHandler(new CustomEvent('popoverState', { detail: { open: true } }));\n expect(specPopover.open).toBe(true);\n });\n\n it('calls stopPropogation on the event', async () => {\n specPopover = new Q2Popover();\n const event = new CustomEvent('popoverState', { detail: { open: true } });\n const stopSpy = jest.spyOn(event, 'stopPropagation');\n specPopover.popoverStateHandler(event);\n expect(stopSpy).toHaveBeenCalled();\n });\n });\n });\n\n describe('Public Methods API', () => {\n beforeEach(() => {\n specPopover = new Q2Popover();\n });\n\n describe('toggle', () => {\n it('sets open to true when open is false', async () => {\n specPopover.open = false;\n await specPopover.toggle();\n expect(specPopover.open).toBe(true);\n });\n\n it('sets open to false when open is true', async () => {\n specPopover.open = true;\n await specPopover.toggle();\n expect(specPopover.open).toBe(false);\n });\n });\n\n describe('scrollContainerTo', () => {\n it('scrolls the container to the given position', async () => {\n const containerElement = document.createElement('div');\n containerElement.scrollTo = jest.fn();\n specPopover.containerElement = containerElement;\n await specPopover.scrollContainerTo({ top: 100, left: 50 });\n expect(containerElement.scrollTo).toHaveBeenCalledWith({ top: 100, left: 50 });\n });\n });\n });\n\n describe('Watchers', () => {\n describe('minHeightProvided', () => {\n it('calls handleMinHeight', async () => {\n specPopover = new Q2Popover();\n specPopover.handleMinHeight = jest.fn();\n specPopover.minHeight = 100;\n specPopover.minHeightProvided();\n expect(specPopover.handleMinHeight).toHaveBeenCalled();\n });\n });\n\n describe('openChanged', () => {\n beforeEach(async () => {\n specPopover = new Q2Popover();\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n specPopover.determinePopDirection = jest.fn();\n specPopover.clearCSSProperties = jest.fn();\n });\n\n it('calls popoverStateChanged with the new open value', async () => {\n specPopover.popoverStateChanged = { emit: jest.fn() };\n await specPopover.openChanged(true);\n expect(specPopover.popoverStateChanged.emit).toHaveBeenCalledWith({ open: true });\n });\n\n describe('when open is true', () => {\n it('calls addViewportListeners', async () => {\n await specPopover.openChanged(true);\n expect(specPopover.addViewportListeners).toHaveBeenCalled();\n });\n\n it('calls determinePopDirection', async () => {\n await specPopover.openChanged(true);\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n });\n\n describe('when open is false', () => {\n it('calls removeViewportListeners', async () => {\n await specPopover.openChanged(false);\n expect(specPopover.removeViewportListeners).toHaveBeenCalled();\n });\n\n it('sets currentDirection to undefined', async () => {\n specPopover.currentDirection = 'up';\n expect(specPopover.currentDirection).toBe('up');\n await specPopover.openChanged(false);\n expect(specPopover.currentDirection).toBeUndefined();\n });\n\n it('sets show to false if mode is legacy', async () => {\n specPopover.mode = 'legacy';\n specPopover.show = true;\n expect(specPopover.show).toBe(true);\n await specPopover.openChanged(false);\n expect(specPopover.show).toBe(false);\n });\n\n it('sets show to false if Popover API is not supported', async () => {\n specPopover.show = true;\n expect(specPopover.show).toBe(true);\n await specPopover.openChanged(false);\n expect(specPopover.show).toBe(false);\n });\n\n it('calls hidePopover if Popover API is supported', async () => {\n enablePopoverAPI();\n specPopover.containerElement = document.createElement('div');\n specPopover.containerElement.hidePopover = jest.fn();\n await specPopover.openChanged(false);\n expect(specPopover.containerElement.hidePopover).toHaveBeenCalled();\n });\n\n it('calls clearCSSProperties', async () => {\n await specPopover.openChanged(false);\n expect(specPopover.clearCSSProperties).toHaveBeenCalled();\n });\n });\n });\n });\n\n describe('Local Methods', () => {\n describe('Getters', () => {\n beforeEach(() => {\n specPopover = new Q2Popover();\n });\n\n describe('isModule', () => {\n it('returns false when window top matches window and platformDimensions is not defined', async () => {\n expect(window.top).toBe(window);\n expect(window.Tecton).toBeUndefined();\n expect(specPopover.isModule).toBe(false);\n });\n\n it('returns false when window top does not match window and platformDimensions is not defined', async () => {\n const windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n expect(window.top).not.toEqual(window);\n expect(window.Tecton).toBeUndefined();\n expect(specPopover.isModule).toBe(false);\n windowSpy.mockRestore();\n });\n\n it('returns false when window top matches window and platformDimensions is defined', async () => {\n window.Tecton = sampleTectonWindow;\n expect(window.top).toBe(window);\n expect(window.Tecton.platformDimensions).toBeTruthy();\n expect(specPopover.isModule).toBe(false);\n });\n\n it('returns true when window top does not match window and platformDimensions is defined', async () => {\n const windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n window.Tecton = sampleTectonWindow;\n expect(specPopover.isModule).toBe(true);\n windowSpy.mockRestore();\n });\n });\n\n describe('providedDirection', () => {\n it('returns direction when \"up\"', async () => {\n specPopover.direction = 'up';\n expect(specPopover.providedDirection).toBe('up');\n });\n\n it('returns direction when \"down\"', async () => {\n specPopover.direction = 'down';\n expect(specPopover.providedDirection).toBe('down');\n });\n\n it('returns undefined when not \"up\" or \"down\"', async () => {\n (specPopover.direction as any) = 'bottom';\n expect(specPopover.providedDirection).toBeUndefined();\n });\n });\n\n describe('supportsPopoverAPI', () => {\n it('returns false when Popover API is not supported', async () => {\n specPopover = new Q2Popover();\n expect(specPopover.supportsPopoverAPI).toBe(false);\n });\n\n it('returns true when Popover API is supported', async () => {\n enablePopoverAPI();\n specPopover = new Q2Popover();\n expect(specPopover.supportsPopoverAPI).toBe(true);\n });\n });\n });\n\n describe('Methods', () => {\n describe('addViewPortListeners', () => {\n let specPopover: Q2Popover;\n let windowAddEventListenerSpy: jest.SpyInstance;\n let visualViewportAddEventListenerSpy: jest.SpyInstance;\n let screenOrientationAddEventListenerSpy: jest.SpyInstance;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n windowAddEventListenerSpy = jest.spyOn(window, 'addEventListener');\n\n // Mock visualViewport\n const mockVisualViewport = {\n addEventListener: jest.fn(),\n removeEventListener: jest.fn(),\n width: 800,\n height: 600,\n };\n Object.defineProperty(window, 'visualViewport', {\n value: mockVisualViewport,\n configurable: true,\n });\n (global as any).visualViewport = mockVisualViewport;\n visualViewportAddEventListenerSpy = jest.spyOn(mockVisualViewport, 'addEventListener');\n\n // Mock screen.orientation\n const mockScreenOrientation = {\n addEventListener: jest.fn(),\n removeEventListener: jest.fn(),\n };\n const mockScreen = { orientation: mockScreenOrientation };\n Object.defineProperty(window, 'screen', {\n value: mockScreen,\n configurable: true,\n });\n (global as any).screen = mockScreen;\n\n screenOrientationAddEventListenerSpy = jest.spyOn(mockScreenOrientation, 'addEventListener');\n });\n\n afterEach(() => {\n windowAddEventListenerSpy.mockRestore();\n visualViewportAddEventListenerSpy.mockRestore();\n screenOrientationAddEventListenerSpy.mockRestore();\n\n delete (global as any).visualViewport;\n delete (global as any).screen;\n delete (window as any).visualViewport;\n delete (window as any).screen;\n });\n\n it('adds resize listener to window with viewPortOrientationChanged handler', () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('adds resize listener to visualViewport with viewPortChanged handler', () => {\n specPopover.addViewportListeners();\n\n expect(visualViewportAddEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortChanged\n );\n });\n\n it('adds scroll listener to window with viewPortChanged handler and proper options', () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith('scroll', specPopover.viewPortChanged, {\n passive: true,\n capture: true,\n });\n });\n\n it('adds orientationchange listener to screen.orientation with viewPortOrientationChanged handler', () => {\n specPopover.addViewportListeners();\n\n expect(screenOrientationAddEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('adds orientationchange listener to window with viewPortOrientationChanged handler', () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('adds all expected listeners when called', () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalled();\n expect(visualViewportAddEventListenerSpy).toHaveBeenCalled();\n expect(screenOrientationAddEventListenerSpy).toHaveBeenCalled();\n });\n });\n\n describe('clearCSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n containerElement.style.setProperty('--comp-pop-max-height', '100px');\n containerElement.style.setProperty('--comp-pop-top', '20px');\n containerElement.style.setProperty('--comp-pop-bottom', '25px');\n containerElement.style.setProperty('--comp-pop-left', '30px');\n containerElement.style.setProperty('--comp-pop-right', '35px');\n containerElement.style.setProperty('--comp-pop-width', '200px');\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n specPopover.containerElement = containerElement;\n });\n\n it('clears the necessary CSS properties', async () => {\n await specPopover.clearCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBeFalsy();\n });\n });\n\n describe('determinePopDirection', () => {\n let specPopover: Q2Popover;\n let controlElement: HTMLDivElement;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n controlElement = document.createElement('div');\n containerElement = document.createElement('div');\n specPopover.controlElement = controlElement;\n specPopover.containerElement = containerElement;\n window.visualViewport = { width: 800, height: 600 } as VisualViewport;\n specPopover.setDirectionAndShow = jest.fn();\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 500,\n bottom: 550,\n } as DOMRect);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('490px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n\n controlSpy.mockRestore();\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 100,\n bottom: 150,\n } as DOMRect);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('440px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n\n controlSpy.mockRestore();\n });\n });\n\n describe('handleMinHeight', () => {\n it('calls handleDeprecationWarning for minHeight', async () => {\n specPopover = new Q2Popover();\n const handleDeprecationMock = jest.fn();\n (handleDeprecationWarning as any) = handleDeprecationMock;\n specPopover.minHeight = 100;\n specPopover.handleMinHeight();\n expect(handleDeprecationWarning).toHaveBeenCalled();\n });\n });\n\n describe('removeViewportListeners', () => {\n let specPopover: Q2Popover;\n let windowRemoveEventListenerSpy: jest.SpyInstance;\n let visualViewportRemoveEventListenerSpy: jest.SpyInstance;\n let screenOrientationRemoveEventListenerSpy: jest.SpyInstance;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n windowRemoveEventListenerSpy = jest.spyOn(window, 'removeEventListener');\n\n // Mock visualViewport\n const mockVisualViewport = {\n removeEventListener: jest.fn(),\n };\n Object.defineProperty(window, 'visualViewport', {\n value: mockVisualViewport,\n configurable: true,\n });\n (global as any).visualViewport = mockVisualViewport;\n visualViewportRemoveEventListenerSpy = jest.spyOn(mockVisualViewport, 'removeEventListener');\n\n // Mock screen.orientation\n const mockScreenOrientation = {\n removeEventListener: jest.fn(),\n };\n const mockScreen = { orientation: mockScreenOrientation };\n Object.defineProperty(window, 'screen', {\n value: mockScreen,\n configurable: true,\n });\n (global as any).screen = mockScreen;\n\n screenOrientationRemoveEventListenerSpy = jest.spyOn(mockScreenOrientation, 'removeEventListener');\n });\n\n afterEach(() => {\n windowRemoveEventListenerSpy.mockRestore();\n visualViewportRemoveEventListenerSpy.mockRestore();\n screenOrientationRemoveEventListenerSpy.mockRestore();\n\n delete (global as any).visualViewport;\n delete (global as any).screen;\n delete (window as any).visualViewport;\n delete (window as any).screen;\n });\n\n it('removes resize listener from window with viewPortOrientationChanged handler', () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('removes resize listener from visualViewport with viewPortChanged handler', () => {\n specPopover.removeViewportListeners();\n\n expect(visualViewportRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortChanged\n );\n });\n\n it('removes scroll listener from window with viewPortChanged handler and proper options', () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenNthCalledWith(\n 2,\n 'scroll',\n specPopover.viewPortChanged,\n { capture: true }\n );\n });\n\n it('removes orientationchange listener from screen.orientation with viewPortOrientationChanged handler', () => {\n specPopover.removeViewportListeners();\n\n expect(screenOrientationRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('removes orientationchange listener from window with viewPortOrientationChanged handler', () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n });\n\n describe('setAbsoluteCSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.mode = 'legacy';\n specPopover.containerElement = containerElement;\n\n const controlElement = document.createElement('div');\n controlElement.getBoundingClientRect = jest.fn().mockReturnValue({\n top: 20,\n bottom: 70,\n left: 30,\n right: 80,\n } as DOMRect);\n specPopover.controlElement = controlElement;\n window.visualViewport = { width: 800, height: 600 } as VisualViewport;\n });\n\n it('sets the necessary CSS properties', async () => {\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('0');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('');\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBe('1');\n });\n\n it('sets the necessary CSS properties when align is right', async () => {\n specPopover.align = 'right';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('0');\n });\n\n it('sets --comp-pop-bottom when direction is up', async () => {\n specPopover.currentDirection = 'up';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('0px');\n });\n\n it('does not set --comp-pop-top when direction is down', async () => {\n specPopover.currentDirection = 'down';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBe('');\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('');\n });\n\n it('sets --comp-pop-width when block is true', async () => {\n specPopover.block = true;\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('100%');\n });\n });\n\n describe('setDirectionAndShow', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n specPopover.setPopoverAPICSSProperties = jest.fn();\n specPopover.setAbsoluteCSSProperties = jest.fn();\n specPopover.scrollContainerTo = jest.fn();\n });\n\n it('does nothing when open is false', async () => {\n specPopover.open = false;\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBeUndefined();\n expect(specPopover.show).toBe(false);\n expect(specPopover.setPopoverAPICSSProperties).not.toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).not.toHaveBeenCalled();\n });\n\n describe('when open is true', () => {\n beforeEach(() => {\n specPopover.open = true;\n });\n\n it('sets the direction, shows the popover, and sets fixed position properties', async () => {\n enablePopoverAPI();\n containerElement.showPopover = jest.fn();\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBe('up');\n expect(specPopover.setPopoverAPICSSProperties).toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).not.toHaveBeenCalled();\n expect(containerElement.showPopover).toHaveBeenCalled();\n });\n\n it('sets the direction, shows the popover, and sets absolute position properties when mode is \"legacy\"', async () => {\n specPopover.mode = 'legacy';\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBe('up');\n expect(specPopover.show).toBe(true);\n expect(specPopover.setPopoverAPICSSProperties).not.toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).toHaveBeenCalled();\n });\n });\n });\n\n describe('setPopoverAPICSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n window.visualViewport = { width: 800, height: 600, offsetTop: 0 } as VisualViewport;\n window.innerHeight = 600;\n window.scrollY = 0;\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n\n const controlElement = document.createElement('div');\n controlElement.getBoundingClientRect = jest.fn().mockReturnValue({\n top: 20,\n bottom: 70,\n left: 30,\n right: 80,\n } as DOMRect);\n specPopover.controlElement = controlElement;\n });\n\n it('sets the necessary CSS properties', async () => {\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('30px');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBe('1');\n });\n\n it('sets --comp-pop-right when align is right', async () => {\n specPopover.align = 'right';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('720px');\n });\n\n it('sets --comp-pop-bottom when direction is up', async () => {\n specPopover.currentDirection = 'up';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('580px');\n });\n\n it('sets --comp-pop-top when direction is down', async () => {\n specPopover.currentDirection = 'down';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBe('70px');\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n });\n\n it('sets --comp-pop-width when block is true', async () => {\n specPopover.block = true;\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('0px');\n });\n });\n\n describe('viewPortChanged', () => {\n let specPopover: Q2Popover;\n let windowSpy: jest.SpyInstance;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n window.Tecton = sampleTectonWindow;\n expect(specPopover.isModule).toBe(true);\n specPopover.determinePopDirection = jest.fn();\n });\n\n afterEach(() => {\n windowSpy.mockRestore();\n });\n\n it('calls determinePopDirection when open is true', async () => {\n specPopover.open = true;\n specPopover.viewPortChanged();\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n\n it('does nothing when open is false', async () => {\n specPopover.open = false;\n specPopover.viewPortChanged();\n expect(specPopover.determinePopDirection).not.toHaveBeenCalled();\n });\n });\n\n describe('viewPortOrientationChanged', () => {\n let specPopover: Q2Popover;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n specPopover.viewPortChanged = jest.fn();\n });\n\n it('sets orientationChanged to true and calls viewportChanged', async () => {\n specPopover.viewPortOrientationChanged();\n expect(specPopover.orientationChanged).toBe(true);\n expect(specPopover.viewPortChanged).toHaveBeenCalled();\n });\n });\n });\n });\n\n describe('when in a module', () => {\n let specPopover: Q2Popover;\n let windowSpy: jest.SpyInstance;\n let controlElement: HTMLDivElement;\n let containerElement: HTMLDivElement;\n\n beforeEach(async () => {\n specPopover = new Q2Popover();\n windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n window.Tecton = sampleTectonWindow;\n expect(specPopover.isModule).toBe(true);\n\n controlElement = document.createElement('div');\n specPopover.controlElement = controlElement;\n\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n });\n\n afterEach(() => {\n windowSpy.mockRestore();\n });\n\n describe(\"when the module is taller than the window's viewport\", () => {\n beforeEach(() => {\n specPopover.open = true;\n window.visualViewport = { height: 1200 } as any;\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('700px');\n expect(specPopover.currentDirection).toBe('down');\n\n controlSpy.mockRestore();\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('590px');\n expect(specPopover.currentDirection).toBe('up');\n\n controlSpy.mockRestore();\n });\n\n describe('when the outletOffset is less than 0', () => {\n beforeEach(() => {\n window.Tecton = {\n ...sampleTectonWindow,\n platformDimensions: { ...samplePlatformDimensions, outletOffset: -50 },\n };\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('770px');\n expect(specPopover.currentDirection).toBe('down');\n\n controlSpy.mockRestore();\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('540px');\n expect(specPopover.currentDirection).toBe('up');\n\n controlSpy.mockRestore();\n });\n });\n });\n\n describe(\"when the module is shorter than the window's viewport\", () => {\n beforeEach(() => {\n specPopover.open = true;\n window.visualViewport = { height: 600 } as any;\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('520px');\n expect(specPopover.currentDirection).toBe('down');\n\n controlSpy.mockRestore();\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 500,\n bottom: 550,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('490px');\n expect(specPopover.currentDirection).toBe('up');\n\n controlSpy.mockRestore();\n });\n });\n });\n});\n"]}
1
+ {"version":3,"file":"q2-popover-test.spec.js","sourceRoot":"","sources":["../../../test/elements/q2-popover-test.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,IAAI,WAAsB,CAAC;IAE3B,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,MAAM,wBAAwB,GAAG;QAC7B,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,GAAG;QACf,YAAY,EAAE,EAAE;QAChB,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,CAAC;KACZ,CAAC;IAEF,MAAM,kBAAkB,GAAG;QACvB,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,EAAE;QACf,kBAAkB,EAAE,wBAAwB;KAC/C,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC1B,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACjG,CAAC,CAAC;IAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACnB,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;YACnB,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;gBAC7D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;oBAC3B,UAAU,EAAE,CAAC,SAAS,CA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gBAAgB,EAAE,CAAC;gBACrE,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YAEH,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;gBACxC,IAAI,WAAsB,CAAC;gBAE3B,UAAU,CAAC,GAAG,EAAE;oBACZ,WAAW,GAAG,IAAI,SAAS,EAAE,CAAC;oBAC9B,WAAW,CAAC,eAAe,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;gBAC5C,CAAC,CAAC,CAAC;gBAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;oBACvE,WAAW,CAAC,0BAA0B,EAAE,CAAC;oBACzC,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAClD,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;gBAC3D,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage, SpecPage } from '@stencil/core/testing';\nimport { Q2Popover } from '../../src/components/q2-popover/q2-popover';\nimport * as utils from '@/utils';\n\ndescribe('popover', () => {\n let specPopover: Q2Popover;\n\n afterEach(() => {\n jest.restoreAllMocks();\n });\n\n const samplePlatformDimensions = {\n scrollY: 0,\n innerHeight: 800,\n innerWidth: 600,\n outletOffset: 20,\n top: 0,\n bottom: 0,\n };\n\n const sampleTectonWindow = {\n inMobileApp: false,\n noStrings: false,\n platformUrl: '',\n platformDimensions: samplePlatformDimensions,\n };\n\n const enablePopoverAPI = () => {\n Object.defineProperty(HTMLElement.prototype, 'popover', { value: true, configurable: true });\n };\n\n describe('Props', () => {\n describe('align', () => {\n it('adds the left class on the container by default', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('left')).toBeTruthy();\n });\n\n it('adds the left class on the container when align is \"left\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover align=\"left\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('left')).toBeTruthy();\n });\n\n it('adds the right class on the container when align is \"right\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover align=\"right\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('right')).toBeTruthy();\n });\n });\n\n describe('block', () => {\n it('adds the block class on the container when block is true', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover block=\"true\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('block')).toBeTruthy();\n });\n\n it('does not add the block class when block is false', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover block=\"false\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('block')).toBeFalsy();\n });\n });\n\n describe('direction', () => {\n const setupPopoverWithDirection = async (direction: 'up' | 'down') => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover direction=\"${direction}\"></q2-popover>`,\n });\n\n // Mock essential dependencies\n window.visualViewport = { width: 800, height: 600 } as VisualViewport;\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.controlElement = document.createElement('div');\n\n // Simulate opening the popover and setting the direction\n page.rootInstance.open = true;\n page.rootInstance.currentDirection = direction;\n page.rootInstance.show = true;\n await page.waitForChanges();\n\n return page;\n };\n\n it('adds the up class on the container when direction is \"up\" and popover is open', async () => {\n const page = await setupPopoverWithDirection('up');\n\n expect(page.rootInstance.currentDirection).toBe('up');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('up')).toBeTruthy();\n });\n\n it('adds the down class on the container when direction is \"down\" and popover is open', async () => {\n const page = await setupPopoverWithDirection('down');\n\n expect(page.rootInstance.currentDirection).toBe('down');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('down')).toBeTruthy();\n });\n });\n\n describe('mode', () => {\n it('adds the legacy class on the container when mode is \"legacy\"', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover mode=\"legacy\"></q2-popover>`,\n });\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeTruthy();\n });\n\n it('sets mode to legacy and adds the legacy class when Popover API is NOT supported at runtime', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n expect(page.rootInstance.mode).toBe('legacy');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeTruthy();\n });\n\n it('does not add the legacy class when Popover API is supported at runtime', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n\n enablePopoverAPI();\n page.rootInstance.mode = null;\n page.rootInstance.componentWillLoad();\n\n await page.waitForChanges();\n\n expect(page.rootInstance.mode).not.toBe('legacy');\n expect(page.root.shadowRoot.firstElementChild.classList.contains('legacy')).toBeFalsy();\n });\n });\n\n describe('open', () => {\n it('sets the open attribute on the hostElement when open is true', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.removeViewportListeners = jest.fn();\n page.rootInstance.open = true;\n await page.waitForChanges();\n expect(page.rootInstance.hostElement.hasAttribute('open')).toBe(true);\n });\n\n it('removes the open attribute on the hostElement when open is false', async () => {\n const page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n page.rootInstance.addViewportListeners = jest.fn();\n page.rootInstance.removeViewportListeners = jest.fn();\n page.rootInstance.open = false;\n await page.waitForChanges();\n expect(page.rootInstance.hostElement.hasAttribute('open')).toBe(false);\n });\n });\n });\n\n describe('Events', () => {\n describe('popoverStateChanged', () => {\n let specPopover: Q2Popover;\n let page: SpecPage;\n\n beforeEach(async () => {\n page = await newSpecPage({\n components: [Q2Popover],\n html: `<q2-popover></q2-popover>`,\n });\n specPopover = page.rootInstance;\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n });\n\n it('emits popoverStateChanged when open changes to true', async () => {\n const popoverStateChangedSpy = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.open = true;\n await page.waitForChanges();\n expect(popoverStateChangedSpy).toHaveBeenCalledWith({ open: true });\n });\n\n it('emits popoverStateChanged when open changes to false', async () => {\n const popoverStateChangedSpy = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.open = false;\n await page.waitForChanges();\n expect(popoverStateChangedSpy).toHaveBeenCalledWith({ open: false });\n });\n });\n });\n\n describe('Lifecycle Events', () => {\n describe('disconnectedCallback', () => {\n beforeEach(async () => {\n specPopover = new Q2Popover();\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n specPopover.containerElement = document.createElement('div');\n specPopover.contentElement = document.createElement('div');\n specPopover.controlElement = document.createElement('div');\n });\n\n it('calls removeViewportListeners', async () => {\n specPopover.disconnectedCallback();\n expect(specPopover.removeViewportListeners).toHaveBeenCalled();\n });\n\n it('removes the toggle event listener from containerElement', async () => {\n const removeEventListenerSpy = jest.spyOn(specPopover.containerElement, 'removeEventListener');\n specPopover.disconnectedCallback();\n expect(removeEventListenerSpy).toHaveBeenCalledWith('toggle', specPopover.handlePopoverToggleEvent);\n });\n\n it('sets containerElement to null', async () => {\n expect(specPopover.containerElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.containerElement).toBeNull();\n });\n\n it('sets contentElement to null', async () => {\n expect(specPopover.contentElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.contentElement).toBeNull();\n });\n\n it('sets controlElement to null', async () => {\n expect(specPopover.controlElement).not.toBeNull();\n specPopover.disconnectedCallback();\n expect(specPopover.controlElement).toBeNull();\n });\n });\n\n describe('componentDidLoad', () => {\n it('calls handleMinHeight', async () => {\n specPopover = new Q2Popover();\n specPopover.handleMinHeight = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.handleMinHeight).toHaveBeenCalled();\n });\n\n it('when Popover API is supported, it sets up the \"toggle\" Popover API event listener on container element', async () => {\n specPopover = new Q2Popover();\n enablePopoverAPI();\n specPopover.containerElement = document.createElement('div');\n specPopover.containerElement.addEventListener = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.containerElement.addEventListener).toHaveBeenCalledWith(\n 'toggle',\n specPopover.handlePopoverToggleEvent\n );\n });\n\n it('when open is true it calls determinePopDirection', async () => {\n specPopover = new Q2Popover();\n specPopover.open = true;\n specPopover.determinePopDirection = jest.fn();\n specPopover.componentDidLoad();\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n });\n\n describe('componentWillLoad', () => {\n it('if supportsPopoverAPI is false it sets mode to \"legacy\"', async () => {\n specPopover = new Q2Popover();\n\n specPopover.componentWillLoad();\n expect(specPopover.mode).toBe('legacy');\n });\n\n it('if supportsPopoverAPI is true it does NOT set mode to \"legacy\"', async () => {\n specPopover = new Q2Popover();\n enablePopoverAPI();\n specPopover.componentWillLoad();\n expect(specPopover.mode).toBeNull();\n });\n });\n });\n\n describe('Listeners', () => {\n describe('popoverState', () => {\n it('updates open property when event detail and attribute do not match', async () => {\n specPopover = new Q2Popover();\n specPopover.open = false;\n specPopover.popoverStateHandler(new CustomEvent('popoverState', { detail: { open: true } }));\n expect(specPopover.open).toBe(true);\n });\n\n it('does not update the open property if detail and attribute match', async () => {\n specPopover = new Q2Popover();\n specPopover.open = true;\n specPopover.popoverStateHandler(new CustomEvent('popoverState', { detail: { open: true } }));\n expect(specPopover.open).toBe(true);\n });\n\n it('calls stopPropogation on the event', async () => {\n specPopover = new Q2Popover();\n const event = new CustomEvent('popoverState', { detail: { open: true } });\n const stopSpy = jest.spyOn(event, 'stopPropagation');\n specPopover.popoverStateHandler(event);\n expect(stopSpy).toHaveBeenCalled();\n });\n });\n });\n\n describe('Public Methods API', () => {\n beforeEach(() => {\n specPopover = new Q2Popover();\n });\n\n describe('toggle', () => {\n it('sets open to true when open is false', async () => {\n specPopover.open = false;\n await specPopover.toggle();\n expect(specPopover.open).toBe(true);\n });\n\n it('sets open to false when open is true', async () => {\n specPopover.open = true;\n await specPopover.toggle();\n expect(specPopover.open).toBe(false);\n });\n });\n\n describe('scrollContainerTo', () => {\n it('scrolls the container to the given position', async () => {\n const containerElement = document.createElement('div');\n containerElement.scrollTo = jest.fn();\n specPopover.containerElement = containerElement;\n await specPopover.scrollContainerTo({ top: 100, left: 50 });\n expect(containerElement.scrollTo).toHaveBeenCalledWith({ top: 100, left: 50 });\n });\n });\n });\n\n describe('Watchers', () => {\n describe('minHeightProvided', () => {\n it('calls handleMinHeight', async () => {\n specPopover = new Q2Popover();\n specPopover.handleMinHeight = jest.fn();\n specPopover.minHeight = 100;\n specPopover.minHeightProvided();\n expect(specPopover.handleMinHeight).toHaveBeenCalled();\n });\n });\n\n describe('openChanged', () => {\n beforeEach(async () => {\n specPopover = new Q2Popover();\n specPopover.addViewportListeners = jest.fn();\n specPopover.removeViewportListeners = jest.fn();\n specPopover.determinePopDirection = jest.fn();\n specPopover.clearCSSProperties = jest.fn();\n });\n\n it('calls popoverStateChanged with the new open value', async () => {\n specPopover.popoverStateChanged = { emit: jest.fn() };\n await specPopover.openChanged(true);\n expect(specPopover.popoverStateChanged.emit).toHaveBeenCalledWith({ open: true });\n });\n\n describe('when open is true', () => {\n it('calls addViewportListeners', async () => {\n await specPopover.openChanged(true);\n expect(specPopover.addViewportListeners).toHaveBeenCalled();\n });\n\n it('calls determinePopDirection', async () => {\n await specPopover.openChanged(true);\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n });\n\n describe('when open is false', () => {\n it('calls removeViewportListeners', async () => {\n await specPopover.openChanged(false);\n expect(specPopover.removeViewportListeners).toHaveBeenCalled();\n });\n\n it('sets currentDirection to undefined', async () => {\n specPopover.currentDirection = 'up';\n expect(specPopover.currentDirection).toBe('up');\n await specPopover.openChanged(false);\n expect(specPopover.currentDirection).toBeUndefined();\n });\n\n it('sets show to false if mode is legacy', async () => {\n specPopover.mode = 'legacy';\n specPopover.show = true;\n expect(specPopover.show).toBe(true);\n await specPopover.openChanged(false);\n expect(specPopover.show).toBe(false);\n });\n\n it('sets show to false if Popover API is not supported', async () => {\n specPopover.show = true;\n expect(specPopover.show).toBe(true);\n await specPopover.openChanged(false);\n expect(specPopover.show).toBe(false);\n });\n\n it('calls hidePopover if Popover API is supported', async () => {\n enablePopoverAPI();\n specPopover.containerElement = document.createElement('div');\n specPopover.containerElement.hidePopover = jest.fn();\n await specPopover.openChanged(false);\n expect(specPopover.containerElement.hidePopover).toHaveBeenCalled();\n });\n\n it('calls clearCSSProperties', async () => {\n await specPopover.openChanged(false);\n expect(specPopover.clearCSSProperties).toHaveBeenCalled();\n });\n });\n });\n });\n\n describe('Local Methods', () => {\n describe('Getters', () => {\n beforeEach(() => {\n specPopover = new Q2Popover();\n });\n\n describe('isModule', () => {\n it('returns false when window top matches window and platformDimensions is not defined', async () => {\n expect(window.top).toBe(window);\n expect(window.Tecton).toBeUndefined();\n expect(specPopover.isModule).toBe(false);\n });\n\n it('returns false when window top does not match window and platformDimensions is not defined', async () => {\n const windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n expect(window.top).not.toEqual(window);\n expect(window.Tecton).toBeUndefined();\n expect(specPopover.isModule).toBe(false);\n windowSpy.mockRestore();\n });\n\n it('returns false when window top matches window and platformDimensions is defined', async () => {\n window.Tecton = sampleTectonWindow;\n expect(window.top).toBe(window);\n expect(window.Tecton.platformDimensions).toBeTruthy();\n expect(specPopover.isModule).toBe(false);\n });\n\n it('returns true when window top does not match window and platformDimensions is defined', async () => {\n const windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n window.Tecton = sampleTectonWindow;\n expect(specPopover.isModule).toBe(true);\n windowSpy.mockRestore();\n });\n });\n\n describe('providedDirection', () => {\n it('returns direction when \"up\"', async () => {\n specPopover.direction = 'up';\n expect(specPopover.providedDirection).toBe('up');\n });\n\n it('returns direction when \"down\"', async () => {\n specPopover.direction = 'down';\n expect(specPopover.providedDirection).toBe('down');\n });\n\n it('returns undefined when not \"up\" or \"down\"', async () => {\n (specPopover.direction as any) = 'bottom';\n expect(specPopover.providedDirection).toBeUndefined();\n });\n });\n\n describe('supportsPopoverAPI', () => {\n it('returns false when Popover API is not supported', async () => {\n specPopover = new Q2Popover();\n expect(specPopover.supportsPopoverAPI).toBe(false);\n });\n\n it('returns true when Popover API is supported', async () => {\n enablePopoverAPI();\n specPopover = new Q2Popover();\n expect(specPopover.supportsPopoverAPI).toBe(true);\n });\n });\n });\n\n describe('Methods', () => {\n describe('addViewPortListeners', () => {\n let specPopover: Q2Popover;\n let windowAddEventListenerSpy: jest.SpyInstance;\n let visualViewportAddEventListenerSpy: jest.SpyInstance;\n let screenOrientationAddEventListenerSpy: jest.SpyInstance;\n\n beforeEach(() => {\n windowAddEventListenerSpy = jest.spyOn(window, 'addEventListener');\n\n // Mock visualViewport\n const mockVisualViewport = {\n addEventListener: jest.fn(),\n removeEventListener: jest.fn(),\n width: 800,\n height: 600,\n };\n Object.defineProperty(window, 'visualViewport', {\n value: mockVisualViewport,\n configurable: true,\n });\n (global as any).visualViewport = mockVisualViewport;\n visualViewportAddEventListenerSpy = jest.spyOn(mockVisualViewport, 'addEventListener');\n\n // Mock screen.orientation\n const mockScreenOrientation = {\n addEventListener: jest.fn(),\n removeEventListener: jest.fn(),\n };\n const mockScreen = { orientation: mockScreenOrientation };\n Object.defineProperty(window, 'screen', {\n value: mockScreen,\n configurable: true,\n });\n (global as any).screen = mockScreen;\n\n screenOrientationAddEventListenerSpy = jest.spyOn(mockScreenOrientation, 'addEventListener');\n\n specPopover = new Q2Popover();\n });\n\n afterEach(() => {\n windowAddEventListenerSpy.mockRestore();\n visualViewportAddEventListenerSpy.mockRestore();\n screenOrientationAddEventListenerSpy.mockRestore();\n\n delete (global as any).visualViewport;\n delete (global as any).screen;\n delete (window as any).visualViewport;\n delete (window as any).screen;\n });\n\n describe('resize', () => {\n it('adds resize listener to window with viewPortOrientationChanged handler', async () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('adds resize listener to visualViewport with viewPortChanged handler', async () => {\n specPopover.addViewportListeners();\n\n expect(visualViewportAddEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortChanged\n );\n });\n });\n\n describe('scroll', () => {\n it('adds scroll listener to window when in scrollable container on desktop only', async () => {\n jest.spyOn(utils, 'isInScrollableContainer').mockReturnValue(true);\n jest.spyOn(utils, 'isMobile').mockReturnValue(false);\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith('scroll', specPopover.viewPortChanged, {\n passive: true,\n capture: true,\n });\n });\n\n it('does not add scroll listener on mobile', async () => {\n jest.spyOn(utils, 'isInScrollableContainer').mockReturnValue(true);\n jest.spyOn(utils, 'isMobile').mockReturnValue(true);\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).not.toHaveBeenCalledWith(\n 'scroll',\n specPopover.viewPortChanged,\n {\n passive: true,\n capture: true,\n }\n );\n });\n\n it('does not add scroll listener in non-scrollable container', async () => {\n jest.spyOn(utils, 'isInScrollableContainer').mockReturnValue(false);\n jest.spyOn(utils, 'isMobile').mockReturnValue(false);\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).not.toHaveBeenCalledWith(\n 'scroll',\n specPopover.viewPortChanged,\n {\n passive: true,\n capture: true,\n }\n );\n });\n });\n\n describe('orientationchange', () => {\n it('adds orientationchange listener to screen.orientation with viewPortOrientationChanged handler', async () => {\n specPopover.addViewportListeners();\n\n expect(screenOrientationAddEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('adds orientationchange listener to window with viewPortOrientationChanged handler', async () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n });\n\n it('adds all expected listeners when called', async () => {\n specPopover.addViewportListeners();\n\n expect(windowAddEventListenerSpy).toHaveBeenCalled();\n expect(visualViewportAddEventListenerSpy).toHaveBeenCalled();\n expect(screenOrientationAddEventListenerSpy).toHaveBeenCalled();\n });\n });\n\n describe('clearCSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n containerElement.style.setProperty('--comp-pop-max-height', '100px');\n containerElement.style.setProperty('--comp-pop-top', '20px');\n containerElement.style.setProperty('--comp-pop-bottom', '25px');\n containerElement.style.setProperty('--comp-pop-left', '30px');\n containerElement.style.setProperty('--comp-pop-right', '35px');\n containerElement.style.setProperty('--comp-pop-width', '200px');\n containerElement.style.setProperty('--comp-pop-opacity', '1');\n specPopover.containerElement = containerElement;\n });\n\n it('clears the necessary CSS properties', async () => {\n await specPopover.clearCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBeFalsy();\n });\n });\n\n describe('determinePopDirection', () => {\n let specPopover: Q2Popover;\n let controlElement: HTMLDivElement;\n let containerElement: HTMLDivElement;\n\n beforeEach(async () => {\n specPopover = new Q2Popover();\n specPopover.setDirectionAndShow = jest.fn();\n\n controlElement = document.createElement('div');\n specPopover.controlElement = controlElement;\n\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n });\n\n afterEach(() => {\n delete (window as any).visualViewport;\n delete (window as any).Tecton;\n delete (window as any).innerHeight;\n });\n\n describe('when in a module', () => {\n beforeEach(async () => {\n window.Tecton = sampleTectonWindow;\n jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n specPopover.open = true;\n expect(specPopover.isModule).toBe(true);\n });\n\n describe(\"when the module is taller than the window's viewport\", () => {\n beforeEach(() => {\n window.innerHeight = 1200;\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('700px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('590px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n });\n\n describe('when the outletOffset is 0 or less', () => {\n beforeEach(() => {\n window.Tecton = {\n ...sampleTectonWindow,\n platformDimensions: { ...samplePlatformDimensions, outletOffset: -50 },\n };\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('770px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('540px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n });\n });\n\n describe('when the \"top\" platformDimension has a value', () => {\n beforeEach(() => {\n window.Tecton = {\n ...sampleTectonWindow,\n platformDimensions: { ...samplePlatformDimensions, outletOffset: 0, top: 50 },\n };\n });\n\n it('takes the \"top\" into account when opening up', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('540px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n });\n\n it('ignores \"top\" when outletOffset is positive', async () => {\n window.Tecton = {\n ...sampleTectonWindow,\n platformDimensions: { ...samplePlatformDimensions, outletOffset: 20 },\n };\n\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 600,\n bottom: 650,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('590px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n });\n });\n\n describe('when the \"bottom\" platformDimension has a value', () => {\n it('takes \"bottom\" into account when calculating space below', async () => {\n window.Tecton = {\n ...sampleTectonWindow,\n platformDimensions: { ...samplePlatformDimensions, bottom: 50 },\n };\n\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('650px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n });\n });\n });\n\n describe(\"when the module is shorter than the window's viewport\", () => {\n beforeEach(() => {\n window.innerHeight = 600;\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 20,\n bottom: 70,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('520px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 500,\n bottom: 550,\n } as any);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('490px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n });\n });\n });\n\n describe('when at the platform level', () => {\n beforeEach(async () => {\n window.innerHeight = 600;\n\n expect(specPopover.isModule).toBe(false);\n });\n\n it('sets the direction to up when control element has more space above it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 500,\n bottom: 550,\n } as DOMRect);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('490px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('up');\n\n controlSpy.mockRestore();\n });\n\n it('sets the direction to down when control element has more space below it', async () => {\n const controlSpy = jest.spyOn(controlElement, 'getBoundingClientRect').mockReturnValue({\n top: 100,\n bottom: 150,\n } as DOMRect);\n await specPopover.determinePopDirection();\n\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBe('440px');\n expect(specPopover.setDirectionAndShow).toHaveBeenCalledWith('down');\n\n controlSpy.mockRestore();\n });\n });\n });\n\n describe('handleMinHeight', () => {\n it('calls handleDeprecationWarning for minHeight', async () => {\n specPopover = new Q2Popover();\n const mockHandleDeprecation = jest\n .spyOn(utils, 'handleDeprecationWarning')\n .mockImplementation(() => {});\n specPopover.minHeight = 100;\n specPopover.handleMinHeight();\n expect(mockHandleDeprecation).toHaveBeenCalled();\n });\n });\n\n describe('handlePopoverToggleEvent', () => {\n it('emits the popoverStateChanged event', async () => {\n specPopover = new Q2Popover();\n const mockEmit = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.handlePopoverToggleEvent({} as ToggleEvent);\n expect(mockEmit).toHaveBeenCalled();\n });\n\n describe('when the newState from the ToggleEvent is \"open\"', () => {\n it('emits the popoverStateChanged event open as true', async () => {\n specPopover = new Q2Popover();\n const mockEmit = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.handlePopoverToggleEvent({ newState: 'open' } as ToggleEvent);\n expect(mockEmit).toHaveBeenCalledWith({ open: true });\n });\n });\n\n describe('when the newState from the ToggleEvent is \"closed\"', () => {\n it('emits the popoverStateChanged event open as false', async () => {\n specPopover = new Q2Popover();\n const mockEmit = jest.spyOn(specPopover.popoverStateChanged, 'emit');\n specPopover.handlePopoverToggleEvent({ newState: 'closed' } as ToggleEvent);\n expect(mockEmit).toHaveBeenCalledWith({ open: false });\n });\n });\n });\n\n describe('removeViewportListeners', () => {\n let specPopover: Q2Popover;\n let windowRemoveEventListenerSpy: jest.SpyInstance;\n let visualViewportRemoveEventListenerSpy: jest.SpyInstance;\n let screenOrientationRemoveEventListenerSpy: jest.SpyInstance;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n windowRemoveEventListenerSpy = jest.spyOn(window, 'removeEventListener');\n\n // Mock visualViewport\n const mockVisualViewport = {\n removeEventListener: jest.fn(),\n };\n Object.defineProperty(window, 'visualViewport', {\n value: mockVisualViewport,\n configurable: true,\n });\n (global as any).visualViewport = mockVisualViewport;\n visualViewportRemoveEventListenerSpy = jest.spyOn(mockVisualViewport, 'removeEventListener');\n\n // Mock screen.orientation\n const mockScreenOrientation = {\n removeEventListener: jest.fn(),\n };\n const mockScreen = { orientation: mockScreenOrientation };\n Object.defineProperty(window, 'screen', {\n value: mockScreen,\n configurable: true,\n });\n (global as any).screen = mockScreen;\n\n screenOrientationRemoveEventListenerSpy = jest.spyOn(mockScreenOrientation, 'removeEventListener');\n });\n\n afterEach(() => {\n windowRemoveEventListenerSpy.mockRestore();\n visualViewportRemoveEventListenerSpy.mockRestore();\n screenOrientationRemoveEventListenerSpy.mockRestore();\n\n delete (global as any).visualViewport;\n delete (global as any).screen;\n delete (window as any).visualViewport;\n delete (window as any).screen;\n });\n\n it('removes resize listener from window with viewPortOrientationChanged handler', async () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('removes resize listener from visualViewport with viewPortChanged handler', async () => {\n specPopover.removeViewportListeners();\n\n expect(visualViewportRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'resize',\n specPopover.viewPortChanged\n );\n });\n\n it('removes scroll listener from window with viewPortChanged handler and proper options', async () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenNthCalledWith(\n 2,\n 'scroll',\n specPopover.viewPortChanged,\n { capture: true }\n );\n });\n\n it('removes orientationchange listener from screen.orientation with viewPortOrientationChanged handler', async () => {\n specPopover.removeViewportListeners();\n\n expect(screenOrientationRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n\n it('removes orientationchange listener from window with viewPortOrientationChanged handler', async () => {\n specPopover.removeViewportListeners();\n\n expect(windowRemoveEventListenerSpy).toHaveBeenCalledWith(\n 'orientationchange',\n specPopover.viewPortOrientationChanged\n );\n });\n });\n\n describe('setAbsoluteCSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.mode = 'legacy';\n specPopover.containerElement = containerElement;\n\n const controlElement = document.createElement('div');\n controlElement.getBoundingClientRect = jest.fn().mockReturnValue({\n top: 20,\n bottom: 70,\n left: 30,\n right: 80,\n } as DOMRect);\n specPopover.controlElement = controlElement;\n window.visualViewport = { width: 800, height: 600 } as VisualViewport;\n });\n\n it('sets the necessary CSS properties', async () => {\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('0');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('');\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBe('1');\n });\n\n it('sets the necessary CSS properties when align is right', async () => {\n specPopover.align = 'right';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('0');\n });\n\n it('sets --comp-pop-bottom when direction is up', async () => {\n specPopover.currentDirection = 'up';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('0px');\n });\n\n it('does not set --comp-pop-top when direction is down', async () => {\n specPopover.currentDirection = 'down';\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBe('');\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('');\n });\n\n it('sets --comp-pop-width when block is true', async () => {\n specPopover.block = true;\n await specPopover.setAbsoluteCSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('100%');\n });\n });\n\n describe('setDirectionAndShow', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n specPopover.setPopoverAPICSSProperties = jest.fn();\n specPopover.setAbsoluteCSSProperties = jest.fn();\n specPopover.scrollContainerTo = jest.fn();\n });\n\n it('does nothing when open is false', async () => {\n specPopover.open = false;\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBeUndefined();\n expect(specPopover.show).toBe(false);\n expect(specPopover.setPopoverAPICSSProperties).not.toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).not.toHaveBeenCalled();\n });\n\n describe('when open is true', () => {\n beforeEach(() => {\n specPopover.open = true;\n });\n\n it('sets the direction, shows the popover, and sets fixed position properties', async () => {\n enablePopoverAPI();\n containerElement.showPopover = jest.fn();\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBe('up');\n expect(specPopover.setPopoverAPICSSProperties).toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).not.toHaveBeenCalled();\n expect(containerElement.showPopover).toHaveBeenCalled();\n });\n\n it('sets the direction, shows the popover, and sets absolute position properties when mode is \"legacy\"', async () => {\n specPopover.mode = 'legacy';\n specPopover.setDirectionAndShow('up');\n expect(specPopover.currentDirection).toBe('up');\n expect(specPopover.show).toBe(true);\n expect(specPopover.setPopoverAPICSSProperties).not.toHaveBeenCalled();\n expect(specPopover.setAbsoluteCSSProperties).toHaveBeenCalled();\n });\n });\n });\n\n describe('setPopoverAPICSSProperties', () => {\n let specPopover: Q2Popover;\n let containerElement: HTMLDivElement;\n\n beforeEach(() => {\n window.visualViewport = { width: 800, height: 600, offsetTop: 0 } as VisualViewport;\n window.innerHeight = 600;\n window.scrollY = 0;\n specPopover = new Q2Popover();\n containerElement = document.createElement('div');\n specPopover.containerElement = containerElement;\n\n const controlElement = document.createElement('div');\n controlElement.getBoundingClientRect = jest.fn().mockReturnValue({\n top: 20,\n bottom: 70,\n left: 30,\n right: 80,\n } as DOMRect);\n specPopover.controlElement = controlElement;\n });\n\n it('sets the necessary CSS properties', async () => {\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-max-height')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('30px');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-opacity')).toBe('1');\n });\n\n it('sets --comp-pop-right when align is right', async () => {\n specPopover.align = 'right';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-left')).toBe('unset');\n expect(containerElement.style.getPropertyValue('--comp-pop-right')).toBe('720px');\n });\n\n it('sets --comp-pop-bottom when direction is up', async () => {\n specPopover.currentDirection = 'up';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBeFalsy();\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBe('580px');\n });\n\n it('sets --comp-pop-top when direction is down', async () => {\n specPopover.currentDirection = 'down';\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-top')).toBe('70px');\n expect(containerElement.style.getPropertyValue('--comp-pop-bottom')).toBeFalsy();\n });\n\n it('sets --comp-pop-width when block is true', async () => {\n specPopover.block = true;\n await specPopover.setPopoverAPICSSProperties();\n expect(containerElement.style.getPropertyValue('--comp-pop-width')).toBe('0px');\n });\n });\n\n describe('viewPortChanged', () => {\n let specPopover: Q2Popover;\n let windowSpy: jest.SpyInstance;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n windowSpy = jest.spyOn(window, 'top', 'get').mockReturnValue({} as any);\n window.Tecton = sampleTectonWindow;\n expect(specPopover.isModule).toBe(true);\n specPopover.determinePopDirection = jest.fn();\n });\n\n afterEach(() => {\n windowSpy.mockRestore();\n });\n\n it('calls determinePopDirection when open is true', async () => {\n specPopover.open = true;\n specPopover.viewPortChanged();\n expect(specPopover.determinePopDirection).toHaveBeenCalled();\n });\n\n it('does nothing when open is false', async () => {\n specPopover.open = false;\n specPopover.viewPortChanged();\n expect(specPopover.determinePopDirection).not.toHaveBeenCalled();\n });\n });\n\n describe('viewPortOrientationChanged', () => {\n let specPopover: Q2Popover;\n\n beforeEach(() => {\n specPopover = new Q2Popover();\n specPopover.viewPortChanged = jest.fn();\n });\n\n it('sets orientationChanged to true and calls viewportChanged', async () => {\n specPopover.viewPortOrientationChanged();\n expect(specPopover.orientationChanged).toBe(true);\n expect(specPopover.viewPortChanged).toHaveBeenCalled();\n });\n });\n });\n });\n});\n"]}