@aquera/nile-elements 1.3.4-beta-1 → 1.3.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 (450) hide show
  1. package/README.md +3 -0
  2. package/demo/index.html +27 -20
  3. package/dist/{fixture-54600b35.cjs.js → fixture-1c49c014.cjs.js} +2 -2
  4. package/dist/{fixture-73855806.cjs.js.map → fixture-1c49c014.cjs.js.map} +1 -1
  5. package/dist/{fixture-9871e8a9.esm.js → fixture-985bba12.esm.js} +1 -1
  6. package/dist/index.js +3 -2
  7. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  8. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  9. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  10. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  11. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  12. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  13. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  14. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  15. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  16. package/dist/nile-button/nile-button.test.esm.js +1 -1
  17. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  18. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  19. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  20. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  21. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  22. package/dist/nile-card/nile-card.test.esm.js +1 -1
  23. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  24. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  25. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  26. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  27. package/dist/nile-chip/nile-chip.esm.js +3 -2
  28. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  29. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  30. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  31. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  32. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  33. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  34. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  35. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  36. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  37. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  38. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  39. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  40. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  41. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  42. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  43. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  44. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  45. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  46. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  47. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  48. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  49. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  50. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  51. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  52. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  53. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  54. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  55. package/dist/nile-input/nile-input.test.esm.js +1 -1
  56. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  57. package/dist/nile-link/nile-link.test.esm.js +1 -1
  58. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  59. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  60. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  61. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  62. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  63. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  64. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  65. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  66. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  67. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  68. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  69. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  70. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  71. package/dist/nile-select/nile-select.test.esm.js +1 -1
  72. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  73. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  74. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  75. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  76. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  77. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  78. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  79. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  80. package/dist/src/nile-chip/nile-chip.js +8 -0
  81. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  82. package/dist/src/version.js +1 -1
  83. package/dist/src/version.js.map +1 -1
  84. package/dist/tsconfig.tsbuildinfo +1 -1
  85. package/package.json +1 -1
  86. package/src/nile-chip/nile-chip.ts +9 -0
  87. package/dist/fixture-54600b35.cjs.js.map +0 -1
  88. package/dist/fixture-5b79f853.cjs.js +0 -395
  89. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  90. package/dist/fixture-73855806.cjs.js +0 -395
  91. package/dist/fixture-90b199c4.esm.js +0 -569
  92. package/dist/fixture-c1d78368.cjs.js +0 -395
  93. package/dist/fixture-c1d78368.cjs.js.map +0 -1
  94. package/dist/fixture-cf7bfcf5.esm.js +0 -569
  95. package/dist/fixture-dbd66009.cjs.js +0 -395
  96. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  97. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  98. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  99. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  100. package/dist/nile-grid/nile-grid.types.cjs.js +0 -2
  101. package/dist/nile-grid/nile-grid.types.cjs.js.map +0 -1
  102. package/dist/nile-grid/nile-grid.types.esm.js +0 -1
  103. package/dist/nile-grid-body/index.cjs.js +0 -2
  104. package/dist/nile-grid-body/index.cjs.js.map +0 -1
  105. package/dist/nile-grid-body/index.esm.js +0 -1
  106. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  107. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  108. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
  109. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  110. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -10
  111. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  112. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  113. package/dist/nile-grid-cell-item/index.cjs.js.map +0 -1
  114. package/dist/nile-grid-cell-item/index.esm.js +0 -1
  115. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +0 -2
  116. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  117. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  118. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  119. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  120. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  121. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +0 -2
  122. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  123. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +0 -1
  124. package/dist/nile-grid-head/index.cjs.js +0 -2
  125. package/dist/nile-grid-head/index.cjs.js.map +0 -1
  126. package/dist/nile-grid-head/index.esm.js +0 -1
  127. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  128. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  129. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +0 -2
  130. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  131. package/dist/nile-grid-head/nile-grid-head.css.esm.js +0 -7
  132. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  133. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  134. package/dist/nile-grid-head-item/index.cjs.js.map +0 -1
  135. package/dist/nile-grid-head-item/index.esm.js +0 -1
  136. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  137. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  138. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  139. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  140. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  141. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  142. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  143. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  144. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  145. package/dist/nile-grid-row/index.cjs.js +0 -2
  146. package/dist/nile-grid-row/index.cjs.js.map +0 -1
  147. package/dist/nile-grid-row/index.esm.js +0 -1
  148. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  149. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  150. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  151. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  152. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  153. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  154. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  155. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  156. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  157. package/dist/nile-sidebar/index.cjs.js +0 -2
  158. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  159. package/dist/nile-sidebar/index.esm.js +0 -75
  160. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  161. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  162. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  163. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  164. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  165. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  166. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  167. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  168. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  169. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  170. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  171. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  172. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  173. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  174. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  175. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  176. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  177. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  178. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  179. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  180. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  181. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  182. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  183. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  184. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  185. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  186. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  187. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  188. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  189. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  190. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  191. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  192. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  193. package/dist/scopedElementsWrapper-1bff26ef.cjs.js +0 -2
  194. package/dist/scopedElementsWrapper-1bff26ef.cjs.js.map +0 -1
  195. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  196. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  197. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  198. package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
  199. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
  200. package/dist/src/internal/portal-manager.d.ts +0 -53
  201. package/dist/src/internal/portal-manager.js +0 -196
  202. package/dist/src/internal/portal-manager.js.map +0 -1
  203. package/dist/src/internal/portal.d.ts +0 -60
  204. package/dist/src/internal/portal.js +0 -199
  205. package/dist/src/internal/portal.js.map +0 -1
  206. package/dist/src/internal/resizable-helper.d.ts +0 -59
  207. package/dist/src/internal/resizable-helper.js +0 -115
  208. package/dist/src/internal/resizable-helper.js.map +0 -1
  209. package/dist/src/internal/resizable-styles.d.ts +0 -16
  210. package/dist/src/internal/resizable-styles.js +0 -144
  211. package/dist/src/internal/resizable-styles.js.map +0 -1
  212. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  213. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  214. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  215. package/dist/src/lib/index.d.ts +0 -7
  216. package/dist/src/lib/index.js +0 -8
  217. package/dist/src/lib/index.js.map +0 -1
  218. package/dist/src/lib/virtualize.d.ts +0 -32
  219. package/dist/src/lib/virtualize.js +0 -105
  220. package/dist/src/lib/virtualize.js.map +0 -1
  221. package/dist/src/lib/virtualize.test.d.ts +0 -7
  222. package/dist/src/lib/virtualize.test.js +0 -57
  223. package/dist/src/lib/virtualize.test.js.map +0 -1
  224. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  225. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  226. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  227. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  228. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  229. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  230. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  231. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  232. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  233. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  234. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  235. package/dist/src/nile-code-editor/theme copy.js +0 -193
  236. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  237. package/dist/src/nile-floating-panel/anchor-manager.d.ts +0 -26
  238. package/dist/src/nile-floating-panel/anchor-manager.js +0 -49
  239. package/dist/src/nile-floating-panel/anchor-manager.js.map +0 -1
  240. package/dist/src/nile-floating-panel/content-manager.d.ts +0 -23
  241. package/dist/src/nile-floating-panel/content-manager.js +0 -67
  242. package/dist/src/nile-floating-panel/content-manager.js.map +0 -1
  243. package/dist/src/nile-floating-panel/event-manager.d.ts +0 -38
  244. package/dist/src/nile-floating-panel/event-manager.js +0 -81
  245. package/dist/src/nile-floating-panel/event-manager.js.map +0 -1
  246. package/dist/src/nile-floating-panel/index.d.ts +0 -1
  247. package/dist/src/nile-floating-panel/index.js +0 -2
  248. package/dist/src/nile-floating-panel/index.js.map +0 -1
  249. package/dist/src/nile-floating-panel/nile-floating-panel.css.d.ts +0 -17
  250. package/dist/src/nile-floating-panel/nile-floating-panel.css.js +0 -51
  251. package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +0 -1
  252. package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +0 -67
  253. package/dist/src/nile-floating-panel/nile-floating-panel.js +0 -203
  254. package/dist/src/nile-floating-panel/nile-floating-panel.js.map +0 -1
  255. package/dist/src/nile-floating-panel/position-manager.d.ts +0 -47
  256. package/dist/src/nile-floating-panel/position-manager.js +0 -94
  257. package/dist/src/nile-floating-panel/position-manager.js.map +0 -1
  258. package/dist/src/nile-floating-panel/style-manager.d.ts +0 -31
  259. package/dist/src/nile-floating-panel/style-manager.js +0 -74
  260. package/dist/src/nile-floating-panel/style-manager.js.map +0 -1
  261. package/dist/src/nile-floating-panel/types.d.ts +0 -29
  262. package/dist/src/nile-floating-panel/types.js +0 -8
  263. package/dist/src/nile-floating-panel/types.js.map +0 -1
  264. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  265. package/dist/src/nile-grid/data-processor.js +0 -122
  266. package/dist/src/nile-grid/data-processor.js.map +0 -1
  267. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  268. package/dist/src/nile-grid/event-handlers.js +0 -158
  269. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  270. package/dist/src/nile-grid/nile-grid.types.d.ts +0 -3
  271. package/dist/src/nile-grid/nile-grid.types.js +0 -2
  272. package/dist/src/nile-grid/nile-grid.types.js.map +0 -1
  273. package/dist/src/nile-grid/renderer.d.ts +0 -8
  274. package/dist/src/nile-grid/renderer.js +0 -78
  275. package/dist/src/nile-grid/renderer.js.map +0 -1
  276. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  277. package/dist/src/nile-grid/resize-handler.js +0 -36
  278. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  279. package/dist/src/nile-grid/types.d.ts +0 -32
  280. package/dist/src/nile-grid/types.js +0 -2
  281. package/dist/src/nile-grid/types.js.map +0 -1
  282. package/dist/src/nile-grid/utils.d.ts +0 -4
  283. package/dist/src/nile-grid/utils.js +0 -32
  284. package/dist/src/nile-grid/utils.js.map +0 -1
  285. package/dist/src/nile-grid-body/index.d.ts +0 -1
  286. package/dist/src/nile-grid-body/index.js +0 -2
  287. package/dist/src/nile-grid-body/index.js.map +0 -1
  288. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +0 -12
  289. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -22
  290. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  291. package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -29
  292. package/dist/src/nile-grid-body/nile-grid-body.js +0 -43
  293. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  294. package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
  295. package/dist/src/nile-grid-cell-item/index.js +0 -2
  296. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  297. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
  298. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  299. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  300. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
  301. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
  302. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  303. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
  304. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
  305. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  306. package/dist/src/nile-grid-head/index.d.ts +0 -1
  307. package/dist/src/nile-grid-head/index.js +0 -2
  308. package/dist/src/nile-grid-head/index.js.map +0 -1
  309. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
  310. package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
  311. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  312. package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
  313. package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
  314. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  315. package/dist/src/nile-grid-head-item/index.d.ts +0 -1
  316. package/dist/src/nile-grid-head-item/index.js +0 -2
  317. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  318. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
  319. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
  320. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  321. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
  322. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
  323. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  324. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  325. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
  326. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  327. package/dist/src/nile-grid-row/index.d.ts +0 -1
  328. package/dist/src/nile-grid-row/index.js +0 -2
  329. package/dist/src/nile-grid-row/index.js.map +0 -1
  330. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
  331. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  332. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  333. package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -29
  334. package/dist/src/nile-grid-row/nile-grid-row.js +0 -45
  335. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  336. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  337. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  338. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  339. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  340. package/dist/src/nile-menu/portal-manager.js +0 -340
  341. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  342. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  343. package/dist/src/nile-menu/portal-utils.js +0 -128
  344. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  345. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  346. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  347. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  348. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  349. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  350. package/dist/src/nile-portal-wrapper/index.js +0 -2
  351. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  352. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  353. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  354. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  355. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  356. package/dist/src/nile-rich-text-editor/utils.js +0 -538
  357. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  358. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  359. package/dist/src/nile-select/body-append-manager.js +0 -298
  360. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  361. package/dist/src/nile-sidebar/index.d.ts +0 -28
  362. package/dist/src/nile-sidebar/index.js +0 -116
  363. package/dist/src/nile-sidebar/index.js.map +0 -1
  364. package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
  365. package/dist/src/nile-sidebar-menu/index.js +0 -2
  366. package/dist/src/nile-sidebar-menu/index.js.map +0 -1
  367. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
  368. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
  369. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
  370. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
  371. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
  372. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
  373. package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
  374. package/dist/src/nile-sidebar-menu-items/index.js +0 -2
  375. package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
  376. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
  377. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
  378. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
  379. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
  380. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
  381. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
  382. package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
  383. package/dist/src/nile-sidebar-wrapper/index.js +0 -2
  384. package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
  385. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
  386. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
  387. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
  388. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
  389. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
  390. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
  391. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  392. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  393. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  394. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  395. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  396. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  397. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  398. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  399. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  400. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  401. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  402. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  403. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  404. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  405. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  406. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  407. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  408. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  409. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  410. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  411. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  412. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  413. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  414. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  415. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  416. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  417. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  418. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  419. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  420. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  421. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  422. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  423. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  424. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  425. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  426. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  427. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  428. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  429. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  430. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  431. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  432. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  433. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  434. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  435. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  436. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  437. package/dist/src/nile-virtual-table-body/index.js +0 -3
  438. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  439. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  440. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  441. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  442. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  443. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  444. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  445. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  446. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  447. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  448. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  449. package/dist/src/utilities/stepper-utils.js +0 -108
  450. package/dist/src/utilities/stepper-utils.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopedElementsWrapper-1bff26ef.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","ShadowRoot","prototype","createElement","ScopedElementsMixin","mixin","superclass","_e","_class","super","this","renderOptions","undefined","_this","_inherits","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","_objectSpread","mode","createdRoot","attachShadow","creationScope","adoptStyles","renderBefore","firstChild","createScopedElement","shadowRoot","document","registeredClass","console","error","concat","join","getScopedTagName","scopedElementsVersion","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","m","scopedElement","_this2","_n","firstUpdated","_changed","keys","forEach","render","properties","type","LitElement","l","counter","tag"],"mappings":"4lKA2EO,QAASA,CAAAA,CAAAA,CAA0BC,EAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,EAAiBC,EACvB,CAAA,CAAA,CAAA,GAAMC,CAAAA,+IAAcC,CAGpBC,EAAAA,cAAAA,CAAeC,OAAOL,CAAgBE,CAAAA,CAAAA,CAAAA,CAKtC,MAFc,IAAIA,CAAAA,CAAAA,CAAMH,CAAgBD,CAAAA,CAAAA,CAG1C,wKCtFMQ,EAAqB,GAAIC,CAAAA,OAAAA,CAAAA,CAAAA,CCWzBC,CAAU,CAAA,OAAA,CAEVC,EAAWC,MAA+B,CAAAC,sBAAA,GAAMD,OAA+BC,sBAAI,CAAA,EAAA,CAAA,CACpFF,EAASG,QAASJ,CAAAA,CAAAA,CAAAA,EACrBC,EAASI,IAAKL,CAAAA,CAAAA,CAAAA,CAIVM,CAA2BC,CAAAA,CAAAA,CAAAA,UAAAA,CAAWC,UAAUC,aAuLzCC,CAAAA,CAAAA,EDlLeC,ECEcC,QDFdD,CAAAA,ECEcC,CAExC,8BAAAC,EAAA,EA+CE,SAAAC,OAAA,CACEC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,MAAAA,EAAAA,KAAAA,CAAAA,UAAAA,MAAAA,MAAAA,EAEAC,KAAAA,CAAKC,aAAgBD,CAAAA,KAAAA,CAAKC,mBAAiBC,EAC5C,QAAAC,KAAA,EAODC,SAAA,CAAAN,MAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,MAAA,GAAAQ,GAAA,YAAAC,GAAA,UAAAA,IAAA,CAEE,CAAA,MA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mD,CAAA,CAAAG,EAAA,SAAArD,YAAA,CAAAkD,CAAA,GAAAjD,GAAA,gBAAAM,KAAA,UAAA+C,YAAAA,CAAaC,CACX7D,CAAAA,KAAAA,MAAAA,MAAAA,aAAAA,CAAAA,CAAAA,yBAAmB6D,CAEnB3C,GAAAA,MAAAA,CAAO4C,KAAK7D,IAAKzB,CAAAA,cAAAA,CAAAA,CAAgBuF,QAAQxD,SAAAA,CAEvCN,QAAAA,CAAAA,MAAAA,CAAK4B,oBAAoBtB,CAAKN,CAAAA,MAAAA,CAAKzB,eAAe+B,CAErD,CAAA,CAAA,EAAA,CAAA,EAED,GAAAA,GAAA,UAAAM,KAAA,UAAAmD,MAAAA,CAAAA,CACE,CAAA,MAAO/D,MAAK1B,QACb,EAAA,KAAAgC,GAAA,cAAAC,GAAA,CA7BD,SAAAA,IAAA,CAAWyD,CACT,MAAO,CACLzF,cAAAA,CAAgB,CAAE0F,IAAMhD,CAAAA,MAAAA,CAAAA,CACxB3C,SAAU,CAAE2F,IAAAA,CAAMhD,QAErB,EAED,MARsCvB,CAAAA,CAAoBwE,IAsCtDzF,EAAuB,CAAA,QAAvBA,CAAAA,CAAuB0F,CAAA,CAC3B,IAD4BC,CAAAA,4DAAU,CACtC,CAAA,GAAMC,CAAAA,yCAAsCD,CAAAA,CAAAA,CAE5C,WAAgClE,EAA5BtB,GAAAA,cAAAA,CAAe2B,IAAI8D,CACd5F,CAAAA,CAAAA,EAAAA,CAAqB2F,EAAU,CAGjCC,CAAAA,CAAAA,CAAG","x_google_ignoreList":[0,1,2]}
@@ -1,7 +0,0 @@
1
- import{LitElement as t}from"lit";const e=new WeakMap;
2
- /**
3
- * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const s=globalThis,o=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(n)||r.push(n);const i=!!ShadowRoot.prototype.createElement,c=(l=t=>class extends t{static get scopedElements(){return{}}static get scopedElementsVersion(){return n}static get shadowRootOptions(){return this.t}static set shadowRootOptions(t){this.t=t}static get elementStyles(){return this.o}static set elementStyles(t){this.o=t}constructor(...t){super(),this.renderOptions=this.renderOptions||void 0}get registry(){return this.constructor.i}set registry(t){this.constructor.i=t}createRenderRoot(){const{scopedElements:t,shadowRootOptions:e,elementStyles:n}=this.constructor;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry:customElements;for(const[e,s]of Object.entries(t))this.defineScopedElement(e,s)}const r={mode:"open",...e,customElements:this.registry,registry:this.registry},c=this.attachShadow(r);return i&&(this.renderOptions.creationScope=c),c instanceof ShadowRoot&&(((t,e)=>{if(o)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),n=s.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=o.cssText,t.appendChild(e)}})(c,n),this.renderOptions.renderBefore=this.renderOptions.renderBefore||c.firstChild),c}createScopedElement(t){return(i?this.shadowRoot:document).createElement(t)}defineScopedElement(t,e){const s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error([`You are trying to re-register the "${t}" custom element with a different class via ScopedElementsMixin.`,"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e)}getScopedTagName(t){return this.constructor.getScopedTagName(t)}static getScopedTagName(t){return this.i.get(t)?t:void 0}},t=>{if(function(t,s){let o=s;for(;o;){if(e.get(o)===t)return!0;o=Object.getPrototypeOf(o)}return!1}(l,t))return t;const s=l(t);return e.set(s,l),s});var l;class d extends(c(t)){static get properties(){return{scopedElements:{type:Object},template:{type:Object}}}constructor(t,e){super(),this.scopedElements=t,this.template=e}firstUpdated(t){super.firstUpdated(t),Object.keys(this.scopedElements).forEach((t=>this.defineScopedElement(t,this.scopedElements[t])))}render(){return this.template}}const m=(t=0)=>{const e=`scoped-elements-test-wrapper-${t}`;return void 0!==customElements.get(e)?m(t+1):e};function h(t,e){const s=m();class o extends d{}customElements.define(s,o);return new o(e,t)}export{h as getScopedElementsTemplate};
@@ -1,6 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["lit"],function(_export,_context){"use strict";var t,e,s,o,n,r,i,c,l,d,_m;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function h(t,e){var s=_m();var o=/*#__PURE__*/function(_d){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_d);return _createClass(o);}(d);customElements.define(s,o);return new o(e,t);}_export("getScopedElementsTemplate",h);return{setters:[function(_lit){t=_lit.LitElement;}],execute:function execute(){e=new WeakMap();/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */s=globalThis,o=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(n)||r.push(n);i=!!ShadowRoot.prototype.createElement,c=(l=function l(t){return/*#__PURE__*/function(_t){function _class(){var _this;_classCallCheck(this,_class);_this=_callSuper(this,_class),_this.renderOptions=_this.renderOptions||void 0;return _this;}_inherits(_class,_t);return _createClass(_class,[{key:"registry",get:function get(){return this.constructor.i;},set:function set(t){this.constructor.i=t;}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$constructor=this.constructor,t=_this$constructor.scopedElements,e=_this$constructor.shadowRootOptions,n=_this$constructor.elementStyles;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry():customElements;for(var _i=0,_Object$entries=Object.entries(t);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),_e=_Object$entries$_i[0],_s=_Object$entries$_i[1];this.defineScopedElement(_e,_s);}}var r=_objectSpread(_objectSpread({mode:"open"},e),{},{customElements:this.registry,registry:this.registry}),c=this.attachShadow(r);return i&&(this.renderOptions.creationScope=c),c instanceof ShadowRoot&&(function(t,e){if(o)t.adoptedStyleSheets=e.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet;});else{var _iterator=_createForOfIteratorHelper(e),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _o=_step.value;var _e2=document.createElement("style"),_n=s.litNonce;void 0!==_n&&_e2.setAttribute("nonce",_n),_e2.textContent=_o.cssText,t.appendChild(_e2);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}}(c,n),this.renderOptions.renderBefore=this.renderOptions.renderBefore||c.firstChild),c;}},{key:"createScopedElement",value:function createScopedElement(t){return(i?this.shadowRoot:document).createElement(t);}},{key:"defineScopedElement",value:function defineScopedElement(t,e){var s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error(["You are trying to re-register the \"".concat(t,"\" custom element with a different class via ScopedElementsMixin."),"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e);}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.constructor.getScopedTagName(t);}}],[{key:"scopedElements",get:function get(){return{};}},{key:"scopedElementsVersion",get:function get(){return n;}},{key:"shadowRootOptions",get:function get(){return this.t;},set:function set(t){this.t=t;}},{key:"elementStyles",get:function get(){return this.o;},set:function set(t){this.o=t;}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.i.get(t)?t:void 0;}}]);}(t);},function(t){if(function(t,s){var o=s;for(;o;){if(e.get(o)===t)return!0;o=Object.getPrototypeOf(o);}return!1;}(l,t))return t;var s=l(t);return e.set(s,l),s;});d=/*#__PURE__*/function(_c){function d(t,e){var _this2;_classCallCheck(this,d);_this2=_callSuper(this,d),_this2.scopedElements=t,_this2.template=e;return _this2;}_inherits(d,_c);return _createClass(d,[{key:"firstUpdated",value:function firstUpdated(t){var _this3=this;_superPropGet(d,"firstUpdated",this,3)([t]),Object.keys(this.scopedElements).forEach(function(t){return _this3.defineScopedElement(t,_this3.scopedElements[t]);});}},{key:"render",value:function render(){return this.template;}}],[{key:"properties",get:function get(){return{scopedElements:{type:Object},template:{type:Object}};}}]);}(c(t));_m=function m(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var e="scoped-elements-test-wrapper-".concat(t);return void 0!==customElements.get(e)?_m(t+1):e;};}};});
6
- //# sourceMappingURL=scopedElementsWrapper-a112fc73.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopedElementsWrapper-a112fc73.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","t","globalThis","e","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","createElement","ScopedElementsMixin","mixin","superclass","_class","super","this","renderOptions","undefined","_this","_inherits","_t","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","mode","createdRoot","attachShadow","creationScope","s","o","adoptedStyleSheets","map","styleSheet","_iterator","_createForOfIteratorHelper","_step","n","done","document","litNonce","setAttribute","textContent","cssText","appendChild","err","f","renderBefore","firstChild","createScopedElement","shadowRoot","registeredClass","console","error","concat","join","getScopedTagName","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","d","scopedElement","_this2","_c","firstUpdated","_changed","keys","forEach","render","type","LitElement","m","counter","arguments","length","tag"],"mappings":"2xLA2EO,QAASA,CAAAA,CAA0BC,CAAAA,CAAAA,CAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,CAAiBC,CAAAA,EAAAA,CAAAA,CAAAA,CACvB,GAAMC,CAAAA,CAAcC,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,IAAAA,CAAAA,EAGpBC,cAAeC,CAAAA,MAAAA,CAAOL,CAAgBE,CAAAA,CAAAA,CAAAA,CAKtC,MAFc,IAAIA,CAAAA,CAAAA,CAAMH,CAAgBD,CAAAA,CAAAA,CAG1C,wHCtFMQ,CAAAA,CAAqB,GAAIC,CAAAA,OAAAA,CAAAA,CAAAA;;;;GCKzBC,CAAAA,CAAEC,WAAWC,CAAEF,CAAAA,CAAAA,CAAEG,iBAAa,EAASH,GAAAA,CAAAA,CAAEI,QAAUJ,EAAAA,CAAAA,CAAEI,QAASC,CAAAA,YAAAA,CAAAA,EAAe,sBAAuBC,CAAAA,QAASC,CAAAA,SAAAA,EAAW,SAAYC,EAAAA,CAAAA,aAAAA,CAAcD,SCMlJE,CAAAA,CAAAA,CAAU,QAEVC,CAAWC,CAAAA,MAAAA,CAA+BC,sBAAMD,GAAAA,MAAAA,CAA+BC,sBAAI,CAAA,EAAA,CAAA,CACpFF,EAASG,QAASJ,CAAAA,CAAAA,CAAAA,EACrBC,EAASI,IAAKL,CAAAA,CAAAA,CAAAA,CAIVM,CAA2BZ,CAAAA,CAAAA,CAAAA,UAAAA,CAAWI,SAAUS,CAAAA,aAAAA,CAuLzCC,CFlLeC,EAAAA,CAAAA,CEEcC,QFFdD,CAAAA,CAAA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,CAGjCG,CAAG,EAAA","x_google_ignoreList":[0,1,2,3]}
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["./css-tag-bb10c0fa.cjs.js","lit"],function(_export,_context){"use strict";var t,e,s,o,r,i,n,c,m,_l;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function d(t,e){var s=_l();var o=/*#__PURE__*/function(_m){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_m);return _createClass(o);}(m);customElements.define(s,o);return new o(e,t);}_export("getScopedElementsTemplate",d);return{setters:[function(_cssTag002CjsJs){t=_cssTag002CjsJs.S;},function(_lit){e=_lit.LitElement;}],execute:function execute(){s=new WeakMap();o="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(o)||r.push(o);i=!!ShadowRoot.prototype.createElement,n=(c=function c(e){return/*#__PURE__*/function(_e){function _class(){var _this;_classCallCheck(this,_class);_this=_callSuper(this,_class),_this.renderOptions=_this.renderOptions||void 0;return _this;}_inherits(_class,_e);return _createClass(_class,[{key:"registry",get:function get(){return this.constructor.i;},set:function set(t){this.constructor.i=t;}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$constructor=this.constructor,e=_this$constructor.scopedElements,s=_this$constructor.shadowRootOptions,o=_this$constructor.elementStyles;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry():customElements;for(var _i=0,_Object$entries=Object.entries(e);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),_t=_Object$entries$_i[0],_s=_Object$entries$_i[1];this.defineScopedElement(_t,_s);}}var r=_objectSpread(_objectSpread({mode:"open"},s),{},{customElements:this.registry,registry:this.registry}),n=this.attachShadow(r);return i&&(this.renderOptions.creationScope=n),n instanceof ShadowRoot&&(t(n,o),this.renderOptions.renderBefore=this.renderOptions.renderBefore||n.firstChild),n;}},{key:"createScopedElement",value:function createScopedElement(t){return(i?this.shadowRoot:document).createElement(t);}},{key:"defineScopedElement",value:function defineScopedElement(t,e){var s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error(["You are trying to re-register the \"".concat(t,"\" custom element with a different class via ScopedElementsMixin."),"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e);}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.constructor.getScopedTagName(t);}}],[{key:"scopedElements",get:function get(){return{};}},{key:"scopedElementsVersion",get:function get(){return o;}},{key:"shadowRootOptions",get:function get(){return this.t;},set:function set(t){this.t=t;}},{key:"elementStyles",get:function get(){return this.o;},set:function set(t){this.o=t;}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.i.get(t)?t:void 0;}}]);}(e);},function(t){if(function(t,e){var o=e;for(;o;){if(s.get(o)===t)return!0;o=Object.getPrototypeOf(o);}return!1;}(c,t))return t;var e=c(t);return s.set(e,c),e;});m=/*#__PURE__*/function(_n){function m(t,e){var _this2;_classCallCheck(this,m);_this2=_callSuper(this,m),_this2.scopedElements=t,_this2.template=e;return _this2;}_inherits(m,_n);return _createClass(m,[{key:"firstUpdated",value:function firstUpdated(t){var _this3=this;_superPropGet(m,"firstUpdated",this,3)([t]),Object.keys(this.scopedElements).forEach(function(t){return _this3.defineScopedElement(t,_this3.scopedElements[t]);});}},{key:"render",value:function render(){return this.template;}}],[{key:"properties",get:function get(){return{scopedElements:{type:Object},template:{type:Object}};}}]);}(n(e));_l=function l(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var e="scoped-elements-test-wrapper-".concat(t);return void 0!==customElements.get(e)?_l(t+1):e;};}};});
2
- //# sourceMappingURL=scopedElementsWrapper-c815042c.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopedElementsWrapper-c815042c.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","ShadowRoot","prototype","createElement","ScopedElementsMixin","mixin","superclass","_e","_class","super","this","renderOptions","undefined","_this","_inherits","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","_objectSpread","mode","createdRoot","attachShadow","creationScope","adoptStyles","renderBefore","firstChild","createScopedElement","shadowRoot","document","registeredClass","console","error","concat","join","getScopedTagName","scopedElementsVersion","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","m","scopedElement","_this2","_n","firstUpdated","_changed","keys","forEach","render","properties","type","LitElement","l","counter","tag"],"mappings":"4lKA2EO,QAASA,CAAAA,CAAAA,CAA0BC,EAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,EAAiBC,EACvB,CAAA,CAAA,CAAA,GAAMC,CAAAA,+IAAcC,CAGpBC,EAAAA,cAAAA,CAAeC,OAAOL,CAAgBE,CAAAA,CAAAA,CAAAA,CAKtC,MAFc,IAAIA,CAAAA,CAAAA,CAAMH,CAAgBD,CAAAA,CAAAA,CAG1C,wKCtFMQ,EAAqB,GAAIC,CAAAA,OAAAA,CAAAA,CAAAA,CCWzBC,CAAU,CAAA,OAAA,CAEVC,EAAWC,MAA+B,CAAAC,sBAAA,GAAMD,OAA+BC,sBAAI,CAAA,EAAA,CAAA,CACpFF,EAASG,QAASJ,CAAAA,CAAAA,CAAAA,EACrBC,EAASI,IAAKL,CAAAA,CAAAA,CAAAA,CAIVM,CAA2BC,CAAAA,CAAAA,CAAAA,UAAAA,CAAWC,UAAUC,aAuLzCC,CAAAA,CAAAA,EDlLeC,ECEcC,QDFdD,CAAAA,ECEcC,CAExC,8BAAAC,EAAA,EA+CE,SAAAC,OAAA,CACEC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,MAAAA,EAAAA,KAAAA,CAAAA,UAAAA,MAAAA,MAAAA,EAEAC,KAAAA,CAAKC,aAAgBD,CAAAA,KAAAA,CAAKC,mBAAiBC,EAC5C,QAAAC,KAAA,EAODC,SAAA,CAAAN,MAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,MAAA,GAAAQ,GAAA,YAAAC,GAAA,UAAAA,IAAA,CAEE,CAAA,MAAOP,MAAKQ,WAAYC,CAAAA,CACzB,EAOD,CAAAC,GAAA,UAAAA,IAAaC,GAEXX,IAAKQ,CAAAA,WAA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,CAAaC,CACX7D,CAAAA,KAAAA,MAAAA,MAAAA,aAAAA,CAAAA,CAAAA,yBAAmB6D,CAEnB3C,GAAAA,MAAAA,CAAO4C,KAAK7D,IAAKzB,CAAAA,cAAAA,CAAAA,CAAgBuF,QAAQxD,SAAAA,CAEvCN,QAAAA,CAAAA,MAAAA,CAAK4B,oBAAoBtB,CAAKN,CAAAA,MAAAA,CAAKzB,eAAe+B,CAErD,CAAA,CAAA,EAAA,CAAA,EAED,GAAAA,GAAA,UAAAM,KAAA,UAAAmD,MAAAA,CAAAA,CACE,CAAA,MAAO/D,MAAK1B,QACb,EAAA,KAAAgC,GAAA,cAAAC,GAAA,CA7BD,SAAAA,IAAA,CAAWyD,CACT,MAAO,CACLzF,cAAAA,CAAgB,CAAE0F,IAAMhD,CAAAA,MAAAA,CAAAA,CACxB3C,SAAU,CAAE2F,IAAAA,CAAMhD,QAErB,EAED,MARsCvB,CAAAA,CAAoBwE,IAsCtDzF,EAAuB,CAAA,QAAvBA,CAAAA,CAAuB0F,CAAA,CAC3B,IAD4BC,CAAAA,4DAAU,CACtC,CAAA,GAAMC,CAAAA,yCAAsCD,CAAAA,CAAAA,CAE5C,WAAgClE,EAA5BtB,GAAAA,cAAAA,CAAe2B,IAAI8D,CACd5F,CAAAA,CAAAA,EAAAA,CAAqB2F,EAAU,CAGjCC,CAAAA,CAAAA,CAAG","x_google_ignoreList":[0,1,2]}
@@ -1,53 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { type Placement, type MiddlewareData, type Boundary } from '@floating-ui/dom';
8
- import type { CSSResultGroup } from 'lit';
9
- export interface PortalConfig {
10
- placement?: Placement;
11
- offset?: number;
12
- padding?: number;
13
- boundary?: Boundary;
14
- strategy?: 'absolute' | 'fixed';
15
- flip?: boolean;
16
- shift?: boolean;
17
- sync?: 'width' | 'height' | 'both' | boolean;
18
- autoSize?: 'width' | 'height' | 'both' | boolean;
19
- autoSizePadding?: number;
20
- }
21
- export interface PortalContentHandler {
22
- createPortalContent(): HTMLElement;
23
- updatePortalContent(portalElement: HTMLElement): void;
24
- setupEventListeners(portalElement: HTMLElement): void;
25
- cleanupEventListeners(portalElement: HTMLElement): void;
26
- getReferenceElement(): HTMLElement;
27
- getComponentStyles(): CSSResultGroup | undefined;
28
- }
29
- export declare class BasePortalManager {
30
- private portalContainer;
31
- private cleanupAutoUpdate;
32
- private currentPlacement;
33
- private currentMiddlewareData;
34
- private config;
35
- private contentHandler;
36
- constructor(contentHandler: PortalContentHandler, config?: PortalConfig);
37
- setupPortal(): void;
38
- updatePortal(): void;
39
- cleanupPortal(): void;
40
- private createPortalContainer;
41
- private positionPortal;
42
- private calculatePosition;
43
- private createMiddleware;
44
- private applyPosition;
45
- private fallbackPositioning;
46
- private setupAutoUpdate;
47
- private injectStyles;
48
- private extractStylesAsCSS;
49
- get portalElement(): HTMLElement | null;
50
- getCurrentPlacement(): Placement;
51
- getCurrentMiddlewareData(): MiddlewareData | null;
52
- isActive(): boolean;
53
- }
@@ -1,196 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { autoUpdate, computePosition, flip, offset, shift, size } from '@floating-ui/dom';
8
- export class BasePortalManager {
9
- constructor(contentHandler, config = {}) {
10
- this.portalContainer = null;
11
- this.cleanupAutoUpdate = null;
12
- this.currentPlacement = 'bottom';
13
- this.currentMiddlewareData = null;
14
- this.contentHandler = contentHandler;
15
- this.config = {
16
- placement: 'bottom',
17
- offset: 4,
18
- padding: 10,
19
- strategy: 'fixed',
20
- flip: true,
21
- shift: true,
22
- ...config
23
- };
24
- }
25
- setupPortal() {
26
- if (this.portalContainer)
27
- return;
28
- this.portalContainer = this.createPortalContainer();
29
- const portalContent = this.contentHandler.createPortalContent();
30
- this.portalContainer.appendChild(portalContent);
31
- document.body.appendChild(this.portalContainer);
32
- this.injectStyles();
33
- this.positionPortal();
34
- this.setupAutoUpdate();
35
- this.contentHandler.setupEventListeners(portalContent);
36
- }
37
- updatePortal() {
38
- if (!this.portalContainer)
39
- return;
40
- const portalContent = this.portalContainer.firstElementChild;
41
- if (portalContent) {
42
- this.contentHandler.updatePortalContent(portalContent);
43
- this.positionPortal();
44
- }
45
- }
46
- cleanupPortal() {
47
- if (this.cleanupAutoUpdate) {
48
- this.cleanupAutoUpdate();
49
- this.cleanupAutoUpdate = null;
50
- }
51
- if (this.portalContainer) {
52
- const portalContent = this.portalContainer.firstElementChild;
53
- if (portalContent) {
54
- this.contentHandler.cleanupEventListeners(portalContent);
55
- }
56
- this.portalContainer.remove();
57
- this.portalContainer = null;
58
- }
59
- }
60
- createPortalContainer() {
61
- const container = document.createElement('div');
62
- container.style.position = 'absolute';
63
- container.style.zIndex = '9999';
64
- container.style.pointerEvents = 'none';
65
- container.className = 'nile-portal-container';
66
- return container;
67
- }
68
- async positionPortal() {
69
- if (!this.portalContainer)
70
- return;
71
- const referenceElement = this.contentHandler.getReferenceElement();
72
- const floatingElement = this.portalContainer;
73
- try {
74
- const { x, y, placement, middlewareData } = await this.calculatePosition(referenceElement, floatingElement);
75
- this.applyPosition(floatingElement, x, y, placement, middlewareData);
76
- }
77
- catch (error) {
78
- console.warn('Portal positioning failed, using fallback:', error);
79
- this.fallbackPositioning();
80
- }
81
- }
82
- async calculatePosition(referenceElement, floatingElement) {
83
- const middleware = this.createMiddleware();
84
- return await computePosition(referenceElement, floatingElement, {
85
- placement: this.config.placement,
86
- strategy: this.config.strategy,
87
- middleware
88
- });
89
- }
90
- createMiddleware() {
91
- const middleware = [
92
- offset(this.config.offset)
93
- ];
94
- if (this.config.sync) {
95
- middleware.push(size({
96
- apply: ({ elements, availableWidth, availableHeight }) => {
97
- if (this.config.sync === 'width' || this.config.sync === 'both') {
98
- elements.floating.style.width = `${availableWidth}px`;
99
- }
100
- if (this.config.sync === 'height' || this.config.sync === 'both') {
101
- elements.floating.style.height = `${availableHeight}px`;
102
- }
103
- },
104
- padding: this.config.padding,
105
- boundary: this.config.boundary
106
- }));
107
- }
108
- if (this.config.flip) {
109
- middleware.push(flip({
110
- fallbackPlacements: ['bottom', 'top', 'bottom-start', 'top-start'],
111
- boundary: this.config.boundary,
112
- padding: this.config.padding
113
- }));
114
- }
115
- if (this.config.shift) {
116
- middleware.push(shift({
117
- boundary: this.config.boundary,
118
- padding: this.config.padding
119
- }));
120
- }
121
- return middleware;
122
- }
123
- applyPosition(floatingElement, x, y, placement, middlewareData) {
124
- Object.assign(floatingElement.style, {
125
- left: `${x}px`,
126
- top: `${y}px`,
127
- position: this.config.strategy,
128
- pointerEvents: 'auto'
129
- });
130
- this.currentPlacement = placement;
131
- this.currentMiddlewareData = middlewareData;
132
- }
133
- fallbackPositioning() {
134
- if (!this.portalContainer)
135
- return;
136
- const referenceElement = this.contentHandler.getReferenceElement();
137
- const rect = referenceElement.getBoundingClientRect();
138
- this.portalContainer.style.left = `${rect.left}px`;
139
- this.portalContainer.style.top = `${rect.bottom + 4}px`;
140
- this.portalContainer.style.width = `${rect.width}px`;
141
- this.portalContainer.style.pointerEvents = 'auto';
142
- }
143
- setupAutoUpdate() {
144
- if (!this.portalContainer)
145
- return;
146
- this.cleanupAutoUpdate = autoUpdate(this.contentHandler.getReferenceElement(), this.portalContainer, () => this.positionPortal(), {
147
- ancestorScroll: true,
148
- ancestorResize: true,
149
- elementResize: true,
150
- layoutShift: true
151
- });
152
- }
153
- injectStyles() {
154
- const styles = this.contentHandler.getComponentStyles();
155
- if (!styles)
156
- return;
157
- // Extract and inject styles into document
158
- const styleId = `nile-portal-styles-${Date.now()}`;
159
- if (document.getElementById(styleId))
160
- return;
161
- const styleElement = document.createElement('style');
162
- styleElement.id = styleId;
163
- styleElement.textContent = this.extractStylesAsCSS(styles);
164
- document.head.appendChild(styleElement);
165
- if (this.portalContainer) {
166
- this.portalContainer.__injectedStyleId = styleId;
167
- }
168
- }
169
- extractStylesAsCSS(styles) {
170
- if (Array.isArray(styles)) {
171
- return styles.map(style => {
172
- if ('cssText' in style) {
173
- return style.cssText;
174
- }
175
- return style.toString();
176
- }).join('\n');
177
- }
178
- if ('cssText' in styles) {
179
- return styles.cssText;
180
- }
181
- return styles.toString();
182
- }
183
- get portalElement() {
184
- return this.portalContainer;
185
- }
186
- getCurrentPlacement() {
187
- return this.currentPlacement;
188
- }
189
- getCurrentMiddlewareData() {
190
- return this.currentMiddlewareData;
191
- }
192
- isActive() {
193
- return this.portalContainer !== null;
194
- }
195
- }
196
- //# sourceMappingURL=portal-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-manager.js","sourceRoot":"","sources":["../../../src/internal/portal-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EACN,KAAK,EACL,IAAI,EAKL,MAAM,kBAAkB,CAAC;AAyB1B,MAAM,OAAO,iBAAiB;IAQ5B,YAAY,cAAoC,EAAE,SAAuB,EAAE;QAPnE,oBAAe,GAAuB,IAAI,CAAC;QAC3C,sBAAiB,GAAwB,IAAI,CAAC;QAC9C,qBAAgB,GAAc,QAAQ,CAAC;QACvC,0BAAqB,GAA0B,IAAI,CAAC;QAK1D,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG;YACZ,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,GAAG,MAAM;SACV,CAAC;IACJ,CAAC;IAED,WAAW;QACT,IAAI,IAAI,CAAC,eAAe;YAAE,OAAO;QAEjC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,c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MAAM,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,wBAAwB;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC;IACpC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,eAAe,KAAK,IAAI,CAAC;IACvC,CAAC;CACF","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { \n autoUpdate, \n computePosition, \n flip, \n offset, \n shift, \n size,\n type Placement,\n type MiddlewareData,\n type ComputePositionConfig,\n type Boundary\n} from '@floating-ui/dom';\nimport type { CSSResultGroup } from 'lit';\n\nexport interface PortalConfig {\n placement?: Placement;\n offset?: number;\n padding?: number;\n boundary?: Boundary;\n strategy?: 'absolute' | 'fixed';\n flip?: boolean;\n shift?: boolean;\n sync?: 'width' | 'height' | 'both' | boolean;\n autoSize?: 'width' | 'height' | 'both' | boolean;\n autoSizePadding?: number;\n}\n\nexport interface PortalContentHandler {\n createPortalContent(): HTMLElement;\n updatePortalContent(portalElement: HTMLElement): void;\n setupEventListeners(portalElement: HTMLElement): void;\n cleanupEventListeners(portalElement: HTMLElement): void;\n getReferenceElement(): HTMLElement;\n getComponentStyles(): CSSResultGroup | undefined;\n}\n\nexport class BasePortalManager {\n private portalContainer: HTMLElement | null = null;\n private cleanupAutoUpdate: (() => void) | null = null;\n private currentPlacement: Placement = 'bottom';\n private currentMiddlewareData: MiddlewareData | null = null;\n private config: PortalConfig;\n private contentHandler: PortalContentHandler;\n\n constructor(contentHandler: PortalContentHandler, config: PortalConfig = {}) {\n this.contentHandler = contentHandler;\n this.config = {\n placement: 'bottom',\n offset: 4,\n padding: 10,\n strategy: 'fixed',\n flip: true,\n shift: true,\n ...config\n };\n }\n\n setupPortal(): void {\n if (this.portalContainer) return;\n\n this.portalContainer = this.createPortalContainer();\n const portalContent = this.contentHandler.createPortalContent();\n this.portalContainer.appendChild(portalContent);\n \n document.body.appendChild(this.portalContainer);\n \n this.injectStyles();\n this.positionPortal();\n this.setupAutoUpdate();\n this.contentHandler.setupEventListeners(portalContent);\n }\n\n updatePortal(): void {\n if (!this.portalContainer) return;\n \n const portalContent = this.portalContainer.firstElementChild as HTMLElement;\n if (portalContent) {\n this.contentHandler.updatePortalContent(portalContent);\n this.positionPortal();\n }\n }\n\n cleanupPortal(): void {\n if (this.cleanupAutoUpdate) {\n this.cleanupAutoUpdate();\n this.cleanupAutoUpdate = null;\n }\n\n if (this.portalContainer) {\n const portalContent = this.portalContainer.firstElementChild as HTMLElement;\n if (portalContent) {\n this.contentHandler.cleanupEventListeners(portalContent);\n }\n \n this.portalContainer.remove();\n this.portalContainer = null;\n }\n }\n\n private createPortalContainer(): HTMLElement {\n const container = document.createElement('div');\n container.style.position = 'absolute';\n container.style.zIndex = '9999';\n container.style.pointerEvents = 'none';\n container.className = 'nile-portal-container';\n return container;\n }\n\n private async positionPortal(): Promise<void> {\n if (!this.portalContainer) return;\n\n const referenceElement = this.contentHandler.getReferenceElement();\n const floatingElement = this.portalContainer;\n\n try {\n const { x, y, placement, middlewareData } = await this.calculatePosition(\n referenceElement,\n floatingElement\n );\n\n this.applyPosition(floatingElement, x, y, placement, middlewareData);\n } catch (error) {\n console.warn('Portal positioning failed, using fallback:', error);\n this.fallbackPositioning();\n }\n }\n\n private async calculatePosition(\n referenceElement: HTMLElement,\n floatingElement: HTMLElement\n ): Promise<{ x: number; y: number; placement: Placement; middlewareData: MiddlewareData }> {\n const middleware = this.createMiddleware();\n\n return await computePosition(referenceElement, floatingElement, {\n placement: this.config.placement!,\n strategy: this.config.strategy!,\n middleware\n });\n }\n\n private createMiddleware(): ComputePositionConfig['middleware'] {\n const middleware: ComputePositionConfig['middleware'] = [\n offset(this.config.offset!)\n ];\n\n if (this.config.sync) {\n middleware.push(\n size({\n apply: ({ elements, availableWidth, availableHeight }) => {\n if (this.config.sync === 'width' || this.config.sync === 'both') {\n elements.floating.style.width = `${availableWidth}px`;\n }\n if (this.config.sync === 'height' || this.config.sync === 'both') {\n elements.floating.style.height = `${availableHeight}px`;\n }\n },\n padding: this.config.padding,\n boundary: this.config.boundary\n })\n );\n }\n\n if (this.config.flip) {\n middleware.push(\n flip({\n fallbackPlacements: ['bottom', 'top', 'bottom-start', 'top-start'],\n boundary: this.config.boundary,\n padding: this.config.padding\n })\n );\n }\n\n if (this.config.shift) {\n middleware.push(\n shift({\n boundary: this.config.boundary,\n padding: this.config.padding\n })\n );\n }\n\n return middleware;\n }\n\n private applyPosition(\n floatingElement: HTMLElement,\n x: number,\n y: number,\n placement: Placement,\n middlewareData: MiddlewareData\n ): void {\n Object.assign(floatingElement.style, {\n left: `${x}px`,\n top: `${y}px`,\n position: this.config.strategy!,\n pointerEvents: 'auto'\n });\n\n this.currentPlacement = placement;\n this.currentMiddlewareData = middlewareData;\n }\n\n private fallbackPositioning(): void {\n if (!this.portalContainer) return;\n\n const referenceElement = this.contentHandler.getReferenceElement();\n const rect = referenceElement.getBoundingClientRect();\n \n this.portalContainer.style.left = `${rect.left}px`;\n this.portalContainer.style.top = `${rect.bottom + 4}px`;\n this.portalContainer.style.width = `${rect.width}px`;\n this.portalContainer.style.pointerEvents = 'auto';\n }\n\n private setupAutoUpdate(): void {\n if (!this.portalContainer) return;\n\n this.cleanupAutoUpdate = autoUpdate(\n this.contentHandler.getReferenceElement(),\n this.portalContainer,\n () => this.positionPortal(),\n {\n ancestorScroll: true,\n ancestorResize: true,\n elementResize: true,\n layoutShift: true\n }\n );\n }\n\n private injectStyles(): void {\n const styles = this.contentHandler.getComponentStyles();\n if (!styles) return;\n\n // Extract and inject styles into document\n const styleId = `nile-portal-styles-${Date.now()}`;\n \n if (document.getElementById(styleId)) return;\n\n const styleElement = document.createElement('style');\n styleElement.id = styleId;\n styleElement.textContent = this.extractStylesAsCSS(styles);\n \n document.head.appendChild(styleElement);\n \n if (this.portalContainer) {\n (this.portalContainer as any).__injectedStyleId = styleId;\n }\n }\n\n private extractStylesAsCSS(styles: CSSResultGroup): string {\n if (Array.isArray(styles)) {\n return styles.map(style => {\n if ('cssText' in style) {\n return style.cssText;\n }\n return style.toString();\n }).join('\\n');\n }\n \n if ('cssText' in styles) {\n return styles.cssText;\n }\n return styles.toString();\n }\n\n get portalElement(): HTMLElement | null {\n return this.portalContainer;\n }\n\n getCurrentPlacement(): Placement {\n return this.currentPlacement;\n }\n\n getCurrentMiddlewareData(): MiddlewareData | null {\n return this.currentMiddlewareData;\n }\n\n isActive(): boolean {\n return this.portalContainer !== null;\n }\n}\n"]}
@@ -1,60 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import type { LitElement } from 'lit';
8
- export declare class PortalManager {
9
- private component;
10
- private portalContainer;
11
- private originalListboxParent;
12
- private measuredPopupHeight;
13
- private listboxSelector;
14
- private portalClassName;
15
- constructor(component: LitElement, listboxSelector?: string, portalClassName?: string);
16
- /**
17
- * Creates a portal container with proper styling
18
- */
19
- private createPortalContainer;
20
- /**
21
- * Positions the portal container relative to the component
22
- */
23
- private positionPortal;
24
- /**
25
- * Updates portal position (called on window resize/scroll)
26
- */
27
- updatePortalPosition(): void;
28
- /**
29
- * Updates portal content (called when content changes)
30
- */
31
- updatePortalContent(): void;
32
- /**
33
- * Injects component styles into document head for portal containers
34
- */
35
- private injectStylesToDocument;
36
- /**
37
- * Extracts styles as CSS string from various style formats
38
- */
39
- private extractStylesAsCSS;
40
- /**
41
- * Sets up the portal by moving the listbox to document body
42
- */
43
- setupPortal(): void;
44
- /**
45
- * Cleans up the portal by restoring the listbox to its original position
46
- */
47
- cleanupPortal(): void;
48
- /**
49
- * Resets the measured height (call when content changes)
50
- */
51
- resetMeasuredHeight(): void;
52
- /**
53
- * Gets the portal container element
54
- */
55
- getPortalContainer(): HTMLElement | null;
56
- /**
57
- * Checks if portal is currently active
58
- */
59
- isPortalActive(): boolean;
60
- }