@aquera/nile-elements 1.3.0-beta-1.1 → 1.3.0-beta-1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/README.md +1 -0
  2. package/demo/index.html +269 -34
  3. package/dist/assets/nile-elements-4b5c262d.css +1 -0
  4. package/dist/{fixture-54600b35.cjs.js → fixture-1c49c014.cjs.js} +2 -2
  5. package/dist/{fixture-73855806.cjs.js.map → fixture-1c49c014.cjs.js.map} +1 -1
  6. package/dist/{fixture-9871e8a9.esm.js → fixture-985bba12.esm.js} +1 -1
  7. package/dist/{fixture-73855806.cjs.js → fixture-d1470b58.cjs.js} +2 -2
  8. package/dist/{fixture-54600b35.cjs.js.map → fixture-d1470b58.cjs.js.map} +1 -1
  9. package/dist/{fixture-5b79f853.cjs.js → fixture-dff65c89.cjs.js} +2 -2
  10. package/dist/{fixture-c1d78368.cjs.js.map → fixture-dff65c89.cjs.js.map} +1 -1
  11. package/dist/index.cjs.js +1 -1
  12. package/dist/index.esm.js +1 -1
  13. package/dist/index.js +280 -280
  14. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  15. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  16. package/dist/nile-auto-complete/index.cjs.js +1 -1
  17. package/dist/nile-auto-complete/index.esm.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  20. package/dist/nile-auto-complete/nile-auto-complete.esm.js +2 -2
  21. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  34. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  35. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  36. package/dist/nile-card/nile-card.test.esm.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  38. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  39. package/dist/nile-chip/index.cjs.js +1 -1
  40. package/dist/nile-chip/index.esm.js +1 -1
  41. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  42. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  43. package/dist/nile-chip/nile-chip.esm.js +2 -2
  44. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  45. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  46. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  47. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  48. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  49. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  50. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  51. package/dist/nile-dropdown/index.cjs.js +1 -1
  52. package/dist/nile-dropdown/index.esm.js +1 -1
  53. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  54. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  55. package/dist/nile-dropdown/nile-dropdown.esm.js +2 -2
  56. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  57. package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +1 -1
  58. package/dist/nile-dropdown/nile-dropdown.test.esm.js +6 -6
  59. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  60. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  61. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  62. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  63. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  64. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  65. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  66. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  67. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  68. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  69. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  70. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  71. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  72. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  73. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  74. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  75. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  76. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  77. package/dist/nile-inline-edit/index.cjs.js +1 -1
  78. package/dist/nile-inline-edit/index.esm.js +1 -1
  79. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  80. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  81. package/dist/nile-inline-edit/nile-inline-edit.esm.js +4 -4
  82. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  83. package/dist/nile-input/nile-input.test.esm.js +1 -1
  84. package/dist/nile-light-tooltip/index.esm.js +1 -0
  85. package/dist/nile-light-tooltip/nile-light-tooltip.css.esm.js +6 -0
  86. package/dist/nile-light-tooltip/nile-light-tooltip.esm.js +1 -0
  87. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  88. package/dist/nile-link/nile-link.test.esm.js +1 -1
  89. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  90. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  91. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  92. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  93. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  94. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  95. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  96. package/dist/nile-popover/index.cjs.js +1 -1
  97. package/dist/nile-popover/index.esm.js +1 -1
  98. package/dist/nile-popover/nile-popover.cjs.js +3 -3
  99. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  100. package/dist/nile-popover/nile-popover.esm.js +4 -4
  101. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  102. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  103. package/dist/nile-popover/nile-popover.test.esm.js +4 -4
  104. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  105. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  106. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  107. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  108. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  109. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  110. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  111. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  112. package/dist/nile-select/index.cjs.js +1 -1
  113. package/dist/nile-select/index.esm.js +1 -1
  114. package/dist/nile-select/nile-select.cjs.js +1 -1
  115. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  116. package/dist/nile-select/nile-select.esm.js +2 -2
  117. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  118. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  119. package/dist/nile-select/nile-select.test.esm.js +1 -1
  120. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  121. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  122. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  123. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  124. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  125. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  126. package/dist/nile-tooltip/index.cjs.js +1 -1
  127. package/dist/nile-tooltip/index.esm.js +1 -1
  128. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  129. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  130. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  131. package/dist/nile-virtual-select/index.cjs.js +1 -1
  132. package/dist/nile-virtual-select/index.esm.js +1 -1
  133. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  134. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  135. package/dist/nile-virtual-select/nile-virtual-select.esm.js +13 -13
  136. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  137. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  138. package/dist/src/nile-auto-complete/nile-auto-complete.d.ts +4 -0
  139. package/dist/src/nile-auto-complete/nile-auto-complete.js +41 -0
  140. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  141. package/dist/src/nile-chip/nile-chip.d.ts +4 -0
  142. package/dist/src/nile-chip/nile-chip.js +47 -0
  143. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  144. package/dist/src/nile-dropdown/nile-dropdown.d.ts +4 -1
  145. package/dist/src/nile-dropdown/nile-dropdown.js +38 -1
  146. package/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
  147. package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +0 -8
  148. package/dist/src/nile-inline-edit/nile-inline-edit.js +1 -47
  149. package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -1
  150. package/dist/src/nile-light-tooltip/index.d.ts +1 -0
  151. package/dist/src/nile-light-tooltip/index.js +2 -0
  152. package/dist/src/nile-light-tooltip/index.js.map +1 -0
  153. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.d.ts +12 -0
  154. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js +18 -0
  155. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js.map +1 -0
  156. package/dist/src/nile-light-tooltip/nile-light-tooltip.d.ts +40 -0
  157. package/dist/src/nile-light-tooltip/nile-light-tooltip.js +101 -0
  158. package/dist/src/nile-light-tooltip/nile-light-tooltip.js.map +1 -0
  159. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.d.ts +5 -1
  160. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js +44 -0
  161. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js.map +1 -1
  162. package/dist/src/nile-menu/virtual-menu-search-manager.d.ts +11 -0
  163. package/dist/src/nile-menu/virtual-menu-search-manager.js +43 -0
  164. package/dist/src/nile-menu/virtual-menu-search-manager.js.map +1 -0
  165. package/dist/src/nile-popover/nile-popover.d.ts +4 -0
  166. package/dist/src/nile-popover/nile-popover.js +40 -0
  167. package/dist/src/nile-popover/nile-popover.js.map +1 -1
  168. package/dist/src/nile-select/nile-select.d.ts +1 -5
  169. package/dist/src/nile-select/nile-select.js +28 -67
  170. package/dist/src/nile-select/nile-select.js.map +1 -1
  171. package/dist/src/nile-tooltip/nile-tooltip.d.ts +3 -0
  172. package/dist/src/nile-tooltip/nile-tooltip.js +38 -0
  173. package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
  174. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +2 -5
  175. package/dist/src/nile-virtual-select/nile-virtual-select.js +29 -66
  176. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  177. package/dist/src/utilities/visibility-manager.d.ts +20 -0
  178. package/dist/src/utilities/visibility-manager.js +64 -0
  179. package/dist/src/utilities/visibility-manager.js.map +1 -0
  180. package/dist/src/version.js +1 -1
  181. package/dist/src/version.js.map +1 -1
  182. package/dist/tsconfig.tsbuildinfo +1 -1
  183. package/dist/utilities/visibility-manager.cjs.js +2 -0
  184. package/dist/utilities/visibility-manager.cjs.js.map +1 -0
  185. package/dist/utilities/visibility-manager.esm.js +1 -0
  186. package/package.json +2 -2
  187. package/src/nile-auto-complete/nile-auto-complete.ts +44 -0
  188. package/src/nile-chip/nile-chip.ts +53 -0
  189. package/src/nile-dropdown/nile-dropdown.ts +40 -1
  190. package/src/nile-inline-edit/nile-inline-edit.ts +1 -59
  191. package/src/nile-lite-tooltip/nile-lite-tooltip.ts +52 -1
  192. package/src/nile-popover/nile-popover.ts +44 -0
  193. package/src/nile-select/nile-select.ts +31 -87
  194. package/src/nile-tooltip/nile-tooltip.ts +39 -0
  195. package/src/nile-virtual-select/nile-virtual-select.ts +32 -87
  196. package/src/utilities/visibility-manager.ts +104 -0
  197. package/vscode-html-custom-data.json +69 -13
  198. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  199. package/dist/fixture-90b199c4.esm.js +0 -569
  200. package/dist/fixture-c1d78368.cjs.js +0 -395
  201. package/dist/fixture-cf7bfcf5.esm.js +0 -569
  202. package/dist/fixture-dbd66009.cjs.js +0 -395
  203. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  204. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  205. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  206. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  207. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js +0 -2
  208. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js.map +0 -1
  209. package/dist/nile-inline-edit/nile-inline-edit-utils.esm.js +0 -1
  210. package/dist/nile-sidebar/index.cjs.js +0 -2
  211. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  212. package/dist/nile-sidebar/index.esm.js +0 -75
  213. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  214. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  215. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  216. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  217. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  218. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  219. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  220. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  221. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  222. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  223. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  224. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  225. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  226. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  227. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  228. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  229. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  230. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  231. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  232. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  233. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  234. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  235. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  236. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  237. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  238. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  239. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  240. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  241. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  242. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  243. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  244. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  245. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  246. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  247. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  248. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  249. package/dist/src/internal/portal-manager.d.ts +0 -53
  250. package/dist/src/internal/portal-manager.js +0 -196
  251. package/dist/src/internal/portal-manager.js.map +0 -1
  252. package/dist/src/internal/portal.d.ts +0 -60
  253. package/dist/src/internal/portal.js +0 -199
  254. package/dist/src/internal/portal.js.map +0 -1
  255. package/dist/src/internal/resizable-helper.d.ts +0 -59
  256. package/dist/src/internal/resizable-helper.js +0 -115
  257. package/dist/src/internal/resizable-helper.js.map +0 -1
  258. package/dist/src/internal/resizable-styles.d.ts +0 -16
  259. package/dist/src/internal/resizable-styles.js +0 -144
  260. package/dist/src/internal/resizable-styles.js.map +0 -1
  261. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  262. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  263. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  264. package/dist/src/lib/index.d.ts +0 -7
  265. package/dist/src/lib/index.js +0 -8
  266. package/dist/src/lib/index.js.map +0 -1
  267. package/dist/src/lib/virtualize.d.ts +0 -32
  268. package/dist/src/lib/virtualize.js +0 -105
  269. package/dist/src/lib/virtualize.js.map +0 -1
  270. package/dist/src/lib/virtualize.test.d.ts +0 -7
  271. package/dist/src/lib/virtualize.test.js +0 -57
  272. package/dist/src/lib/virtualize.test.js.map +0 -1
  273. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  274. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  275. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  276. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  277. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  278. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  279. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  280. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  281. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  282. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  283. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  284. package/dist/src/nile-code-editor/theme copy.js +0 -193
  285. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  286. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  287. package/dist/src/nile-grid/data-processor.js +0 -122
  288. package/dist/src/nile-grid/data-processor.js.map +0 -1
  289. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  290. package/dist/src/nile-grid/event-handlers.js +0 -158
  291. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  292. package/dist/src/nile-grid/renderer.d.ts +0 -8
  293. package/dist/src/nile-grid/renderer.js +0 -78
  294. package/dist/src/nile-grid/renderer.js.map +0 -1
  295. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  296. package/dist/src/nile-grid/resize-handler.js +0 -36
  297. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  298. package/dist/src/nile-grid/types.d.ts +0 -32
  299. package/dist/src/nile-grid/types.js +0 -2
  300. package/dist/src/nile-grid/types.js.map +0 -1
  301. package/dist/src/nile-grid/utils.d.ts +0 -4
  302. package/dist/src/nile-grid/utils.js +0 -32
  303. package/dist/src/nile-grid/utils.js.map +0 -1
  304. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  305. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  306. package/dist/src/nile-inline-edit/nile-inline-edit-utils.d.ts +0 -20
  307. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js +0 -70
  308. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js.map +0 -1
  309. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  310. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  311. package/dist/src/nile-menu/portal-manager.js +0 -340
  312. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  313. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  314. package/dist/src/nile-menu/portal-utils.js +0 -128
  315. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  316. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  317. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  318. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  319. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  320. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  321. package/dist/src/nile-portal-wrapper/index.js +0 -2
  322. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  323. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  324. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  325. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  326. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  327. package/dist/src/nile-select/body-append-manager.js +0 -298
  328. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  329. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  330. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  331. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  332. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  333. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  334. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  335. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  336. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  337. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  338. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  339. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  340. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  341. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  342. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  343. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  344. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  345. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  346. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  347. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  348. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  349. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  350. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  351. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  352. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  353. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  354. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  355. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  356. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  357. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  358. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  359. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  360. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  361. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  362. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  363. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  364. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  365. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  366. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  367. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  368. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  369. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  370. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  371. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  372. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  373. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  374. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  375. package/dist/src/nile-virtual-table-body/index.js +0 -3
  376. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  377. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  378. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  379. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  380. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  381. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  382. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  383. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  384. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  385. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  386. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  387. package/dist/src/utilities/stepper-utils.js +0 -108
  388. package/dist/src/utilities/stepper-utils.js.map +0 -1
  389. package/src/nile-inline-edit/nile-inline-edit-utils.ts +0 -94
@@ -1,451 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html, css } from 'lit';
3
- import { customElement, property, state } from 'lit/decorators.js';
4
- import { autoUpdate, computePosition, flip, offset, shift, size, platform } from '@floating-ui/dom';
5
- let NilePortalWrapper = class NilePortalWrapper extends LitElement {
6
- constructor() {
7
- super(...arguments);
8
- this.enabled = false;
9
- this.targetElement = null;
10
- this.content = null;
11
- this.placement = 'bottom';
12
- this.offset = 4;
13
- this.padding = 10;
14
- this.boundary = document.documentElement;
15
- this.fallbackPlacements = ['bottom', 'top', 'bottom-start', 'top-start', 'bottom-end', 'top-end'];
16
- this.strategy = 'fixed';
17
- this.className = '';
18
- this.zIndex = 9999;
19
- this.preserveStyles = true;
20
- this.cloneContent = true;
21
- this.portalContainer = null;
22
- this.clonedContent = null;
23
- this.currentPlacement = 'bottom';
24
- this.currentMiddlewareData = null;
25
- this.measuredHeight = null;
26
- this.cleanupAutoUpdate = null;
27
- this.injectedStyleId = null;
28
- this.resizeObserver = null;
29
- }
30
- connectedCallback() {
31
- super.connectedCallback();
32
- if (this.enabled) {
33
- this.setupPortal();
34
- }
35
- }
36
- disconnectedCallback() {
37
- super.disconnectedCallback();
38
- this.cleanup();
39
- }
40
- updated(changedProperties) {
41
- super.updated(changedProperties);
42
- if (changedProperties.has('enabled')) {
43
- if (this.enabled) {
44
- this.setupPortal();
45
- }
46
- else {
47
- this.cleanup();
48
- }
49
- }
50
- if (this.enabled && (changedProperties.has('targetElement') || changedProperties.has('content'))) {
51
- this.cleanup();
52
- this.setupPortal();
53
- }
54
- }
55
- async setupPortal() {
56
- if (!this.enabled || !this.targetElement || !this.content)
57
- return;
58
- await this.updateComplete;
59
- // Create portal container
60
- this.portalContainer = this.createPortalContainer();
61
- document.body.appendChild(this.portalContainer);
62
- // Create cloned content
63
- this.clonedContent = this.createClonedContent();
64
- this.portalContainer.appendChild(this.clonedContent);
65
- // Make sure the cloned content is visible
66
- this.clonedContent.style.display = '';
67
- this.clonedContent.style.visibility = '';
68
- // Inject styles if needed
69
- if (this.preserveStyles) {
70
- this.injectStyles();
71
- }
72
- // Position the portal
73
- await this.positionPortal();
74
- // Setup auto-update
75
- this.setupAutoUpdate();
76
- // Setup event listeners
77
- this.setupEventListeners();
78
- }
79
- createPortalContainer() {
80
- const container = document.createElement('div');
81
- container.style.position = 'absolute';
82
- container.style.zIndex = this.zIndex.toString();
83
- container.style.pointerEvents = 'none';
84
- container.className = `nile-portal-wrapper ${this.className}`;
85
- // Copy CSS classes from the original content to maintain styling context
86
- if (this.content) {
87
- const contentClasses = Array.from(this.content.classList);
88
- contentClasses.forEach(cls => {
89
- if (!container.classList.contains(cls)) {
90
- container.classList.add(cls);
91
- }
92
- });
93
- }
94
- return container;
95
- }
96
- createClonedContent() {
97
- if (!this.content) {
98
- throw new Error('Content element is required for cloning');
99
- }
100
- // Create a new listbox structure based on the original content
101
- const clonedContent = this.createPortalListbox();
102
- return clonedContent;
103
- }
104
- createPortalListbox() {
105
- const listbox = document.createElement('div');
106
- listbox.className = 'select__listbox';
107
- listbox.setAttribute('tabindex', '-1');
108
- listbox.setAttribute('role', 'listbox');
109
- listbox.setAttribute('aria-expanded', 'true');
110
- // Get the nile-select component
111
- const selectComponent = this.targetElement?.closest('nile-select');
112
- if (!selectComponent)
113
- return listbox;
114
- // Create options container
115
- const optionsContainer = document.createElement('div');
116
- optionsContainer.className = 'select__options';
117
- // Get options directly from the component (not from the slot)
118
- const options = Array.from(selectComponent.querySelectorAll('nile-option'));
119
- options.forEach((option) => {
120
- const clonedOption = this.cloneOption(option);
121
- optionsContainer.appendChild(clonedOption);
122
- });
123
- listbox.appendChild(optionsContainer);
124
- return listbox;
125
- }
126
- cloneOption(option) {
127
- const clonedOption = option.cloneNode(true);
128
- // Copy all attributes
129
- Array.from(option.attributes).forEach(attr => {
130
- clonedOption.setAttribute(attr.name, attr.value);
131
- });
132
- // Copy properties (matching the original implementation)
133
- const properties = ['selected', 'disabled', 'current', 'hidden'];
134
- properties.forEach(prop => {
135
- if (option[prop] !== undefined) {
136
- clonedOption[prop] = option[prop];
137
- }
138
- });
139
- return clonedOption;
140
- }
141
- async positionPortal() {
142
- if (!this.portalContainer || !this.targetElement)
143
- return;
144
- try {
145
- const { x, y, placement, middlewareData } = await computePosition(this.targetElement, this.portalContainer, {
146
- placement: this.placement,
147
- strategy: this.strategy,
148
- middleware: [
149
- offset(this.offset),
150
- size({
151
- apply: this.handleSizeMiddleware.bind(this),
152
- padding: this.padding,
153
- boundary: this.boundary
154
- }),
155
- flip({
156
- fallbackPlacements: this.fallbackPlacements,
157
- fallbackStrategy: 'bestFit',
158
- padding: this.padding,
159
- boundary: this.boundary
160
- }),
161
- shift({
162
- padding: this.padding,
163
- crossAxis: true,
164
- boundary: this.boundary
165
- })
166
- ],
167
- platform: platform
168
- });
169
- this.applyPosition(x, y, placement, middlewareData);
170
- }
171
- catch (error) {
172
- console.warn('Floating UI positioning failed, falling back to simple positioning:', error);
173
- this.fallbackPositioning();
174
- }
175
- }
176
- handleSizeMiddleware({ availableWidth, availableHeight, elements }) {
177
- elements.floating.style.maxWidth = `${availableWidth}px`;
178
- elements.floating.style.maxHeight = `${availableHeight}px`;
179
- }
180
- applyPosition(x, y, placement, middlewareData) {
181
- if (!this.portalContainer)
182
- return;
183
- Object.assign(this.portalContainer.style, {
184
- left: `${x}px`,
185
- top: `${y}px`,
186
- position: this.strategy,
187
- pointerEvents: 'auto'
188
- });
189
- this.currentPlacement = placement;
190
- this.currentMiddlewareData = middlewareData;
191
- // Apply placement class
192
- const placementClass = placement.split('-')[0];
193
- this.portalContainer.className = `nile-portal-wrapper select__listbox--${placementClass} ${this.className}`;
194
- // Set width to match target element
195
- if (this.targetElement) {
196
- const targetRect = this.targetElement.getBoundingClientRect();
197
- this.portalContainer.style.width = `${targetRect.width}px`;
198
- }
199
- }
200
- fallbackPositioning() {
201
- if (!this.portalContainer || !this.targetElement)
202
- return;
203
- const rect = this.targetElement.getBoundingClientRect();
204
- const viewportHeight = window.innerHeight;
205
- const popupHeight = this.measuredHeight || 200;
206
- const spaceBelow = viewportHeight - rect.bottom;
207
- const spaceAbove = rect.top;
208
- let topPosition;
209
- let placementClass;
210
- let maxHeight;
211
- if (spaceAbove > spaceBelow) {
212
- maxHeight = Math.max(spaceAbove - 20, 100);
213
- topPosition = Math.max(rect.top - maxHeight - this.offset, 10);
214
- placementClass = 'top';
215
- }
216
- else {
217
- maxHeight = Math.max(spaceBelow - 20, 100);
218
- topPosition = rect.bottom + this.offset;
219
- placementClass = 'bottom';
220
- }
221
- this.portalContainer.style.left = `${rect.left}px`;
222
- this.portalContainer.style.top = `${topPosition}px`;
223
- this.portalContainer.style.width = `${rect.width}px`;
224
- this.portalContainer.style.maxHeight = `${maxHeight}px`;
225
- this.portalContainer.style.pointerEvents = 'auto';
226
- this.portalContainer.className = `nile-portal-wrapper select__listbox--${placementClass} ${this.className}`;
227
- }
228
- setupAutoUpdate() {
229
- if (!this.portalContainer || !this.targetElement)
230
- return;
231
- this.cleanupAutoUpdate = autoUpdate(this.targetElement, this.portalContainer, () => {
232
- this.positionPortal();
233
- }, {
234
- ancestorScroll: true,
235
- ancestorResize: true,
236
- elementResize: true,
237
- layoutShift: true,
238
- animationFrame: true
239
- });
240
- }
241
- setupEventListeners() {
242
- if (!this.clonedContent)
243
- return;
244
- // Handle option clicks
245
- this.clonedContent.addEventListener('mouseup', (event) => {
246
- const target = event.target;
247
- const option = target.closest('nile-option');
248
- if (option) {
249
- this.handleOptionClick(option);
250
- }
251
- });
252
- // Handle other events that need to be forwarded
253
- const events = ['click', 'keydown', 'keyup', 'focus', 'blur'];
254
- events.forEach(eventType => {
255
- this.clonedContent?.addEventListener(eventType, (event) => {
256
- this.forwardEvent(event, eventType);
257
- });
258
- });
259
- }
260
- handleOptionClick(clonedOption) {
261
- if (!this.content)
262
- return;
263
- // Find the original option by value
264
- const value = clonedOption.getAttribute('value');
265
- if (!value)
266
- return;
267
- const originalOption = this.content.querySelector(`nile-option[value="${value}"]`);
268
- if (!originalOption)
269
- return;
270
- // Dispatch a synthetic event on the original option
271
- const syntheticEvent = new MouseEvent('mouseup', {
272
- bubbles: true,
273
- cancelable: true,
274
- view: window
275
- });
276
- Object.defineProperty(syntheticEvent, 'target', {
277
- value: originalOption,
278
- writable: false
279
- });
280
- originalOption.dispatchEvent(syntheticEvent);
281
- }
282
- forwardEvent(event, eventType) {
283
- const target = event.target;
284
- const originalTarget = this.findOriginalElement(target);
285
- if (originalTarget) {
286
- const syntheticEvent = new event.constructor(eventType, {
287
- view: window,
288
- ...event,
289
- bubbles: true,
290
- cancelable: true
291
- });
292
- Object.defineProperty(syntheticEvent, 'target', {
293
- value: originalTarget,
294
- writable: false
295
- });
296
- originalTarget.dispatchEvent(syntheticEvent);
297
- }
298
- }
299
- findOriginalElement(clonedElement) {
300
- if (!this.content || !this.clonedContent)
301
- return null;
302
- if (clonedElement.tagName === 'NILE-OPTION') {
303
- const value = clonedElement.getAttribute('value');
304
- if (value) {
305
- return this.content.querySelector(`nile-option[value="${value}"]`);
306
- }
307
- }
308
- const tagName = clonedElement.tagName;
309
- const attributes = Array.from(clonedElement.attributes).map(attr => `${attr.name}="${attr.value}"`);
310
- const originalElements = this.content.querySelectorAll(tagName);
311
- for (const original of originalElements) {
312
- const originalAttributes = Array.from(original.attributes).map(attr => `${attr.name}="${attr.value}"`);
313
- if (JSON.stringify(originalAttributes) === JSON.stringify(attributes)) {
314
- return original;
315
- }
316
- }
317
- return null;
318
- }
319
- injectStyles() {
320
- if (!this.preserveStyles || !this.portalContainer)
321
- return;
322
- const styleId = `nile-portal-styles-${Math.random().toString(36).substring(2, 11)}`;
323
- if (document.getElementById(styleId))
324
- return;
325
- // Try to get styles from the component's constructor
326
- const component = this.targetElement?.closest('nile-select');
327
- if (component) {
328
- const componentStyles = component.constructor.styles;
329
- if (componentStyles) {
330
- const styleElement = document.createElement('style');
331
- styleElement.id = styleId;
332
- styleElement.textContent = this.extractStylesAsCSS(componentStyles);
333
- document.head.appendChild(styleElement);
334
- this.injectedStyleId = styleId;
335
- return;
336
- }
337
- }
338
- // Fallback: try to copy styles from shadow root
339
- if (this.content) {
340
- const shadowRoot = this.content.getRootNode();
341
- if (shadowRoot && shadowRoot.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
342
- const styleElements = shadowRoot.querySelectorAll('style');
343
- styleElements.forEach(styleEl => {
344
- const styleElement = document.createElement('style');
345
- styleElement.id = `${styleId}-${Math.random().toString(36).substring(2, 6)}`;
346
- styleElement.textContent = styleEl.textContent;
347
- document.head.appendChild(styleElement);
348
- });
349
- this.injectedStyleId = styleId;
350
- }
351
- }
352
- }
353
- extractStylesAsCSS(styles) {
354
- if (typeof styles === 'string') {
355
- return styles;
356
- }
357
- if (Array.isArray(styles)) {
358
- return styles.map(style => this.extractStylesAsCSS(style)).join('\n');
359
- }
360
- if (styles && typeof styles === 'object' && styles.cssText) {
361
- return styles.cssText;
362
- }
363
- return '';
364
- }
365
- cleanup() {
366
- this.cleanupAutoUpdate?.();
367
- this.cleanupAutoUpdate = null;
368
- if (this.portalContainer && this.portalContainer.parentNode) {
369
- this.portalContainer.parentNode.removeChild(this.portalContainer);
370
- }
371
- if (this.injectedStyleId) {
372
- const styleElement = document.getElementById(this.injectedStyleId);
373
- if (styleElement) {
374
- styleElement.remove();
375
- }
376
- this.injectedStyleId = null;
377
- }
378
- this.portalContainer = null;
379
- this.clonedContent = null;
380
- this.currentPlacement = 'bottom';
381
- this.currentMiddlewareData = null;
382
- this.measuredHeight = null;
383
- }
384
- render() {
385
- return html ``;
386
- }
387
- };
388
- NilePortalWrapper.styles = css `
389
- :host {
390
- display: none;
391
- }
392
- `;
393
- __decorate([
394
- property({ type: Boolean })
395
- ], NilePortalWrapper.prototype, "enabled", void 0);
396
- __decorate([
397
- property({ type: Object, attribute: false })
398
- ], NilePortalWrapper.prototype, "targetElement", void 0);
399
- __decorate([
400
- property({ type: Object, attribute: false })
401
- ], NilePortalWrapper.prototype, "content", void 0);
402
- __decorate([
403
- property()
404
- ], NilePortalWrapper.prototype, "placement", void 0);
405
- __decorate([
406
- property({ type: Number })
407
- ], NilePortalWrapper.prototype, "offset", void 0);
408
- __decorate([
409
- property({ type: Number })
410
- ], NilePortalWrapper.prototype, "padding", void 0);
411
- __decorate([
412
- property({ type: Object, attribute: false })
413
- ], NilePortalWrapper.prototype, "boundary", void 0);
414
- __decorate([
415
- property({ type: Array, attribute: false })
416
- ], NilePortalWrapper.prototype, "fallbackPlacements", void 0);
417
- __decorate([
418
- property()
419
- ], NilePortalWrapper.prototype, "strategy", void 0);
420
- __decorate([
421
- property()
422
- ], NilePortalWrapper.prototype, "className", void 0);
423
- __decorate([
424
- property({ type: Number })
425
- ], NilePortalWrapper.prototype, "zIndex", void 0);
426
- __decorate([
427
- property({ type: Boolean })
428
- ], NilePortalWrapper.prototype, "preserveStyles", void 0);
429
- __decorate([
430
- property({ type: Boolean })
431
- ], NilePortalWrapper.prototype, "cloneContent", void 0);
432
- __decorate([
433
- state()
434
- ], NilePortalWrapper.prototype, "portalContainer", void 0);
435
- __decorate([
436
- state()
437
- ], NilePortalWrapper.prototype, "clonedContent", void 0);
438
- __decorate([
439
- state()
440
- ], NilePortalWrapper.prototype, "currentPlacement", void 0);
441
- __decorate([
442
- state()
443
- ], NilePortalWrapper.prototype, "currentMiddlewareData", void 0);
444
- __decorate([
445
- state()
446
- ], NilePortalWrapper.prototype, "measuredHeight", void 0);
447
- NilePortalWrapper = __decorate([
448
- customElement('nile-portal-wrapper')
449
- ], NilePortalWrapper);
450
- export { NilePortalWrapper };
451
- //# sourceMappingURL=nile-portal-wrapper.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AM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;kDAAoC;AACrE;IAAX,QAAQ,EAAE;oDAAiC;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAc;AACK;IAA7C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;mDAA+C;AAC/C;IAA5C,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6DAA2G;AAC3I;IAAX,QAAQ,EAAE;mDAA0C;AACzC;IAAX,QAAQ,EAAE;oDAAgB;AACC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAe;AACb;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;yDAAuB;AACtB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDAAqB;AAEhC;IAAhB,KAAK,EAAE;0DAAoD;AAC3C;IAAhB,KAAK,EAAE;wDAAkD;AACzC;IAAhB,KAAK,EAAE;2DAAgD;AACvC;IAAhB,KAAK,EAAE;gEAA6D;AACpD;IAAhB,KAAK,EAAE;yDAA8C;AAnB3C,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAid7B","sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { \n autoUpdate, \n computePosition, \n flip, \n offset, \n shift, \n size, \n platform,\n type Placement,\n type MiddlewareData,\n type ComputePositionConfig,\n type Boundary\n} from '@floating-ui/dom';\n\n@customElement('nile-portal-wrapper')\nexport class NilePortalWrapper extends LitElement {\n @property({ type: Boolean }) enabled = false;\n @property({ type: Object, attribute: false }) targetElement: HTMLElement | null = null;\n @property({ type: Object, attribute: false }) content: HTMLElement | null = null;\n @property() placement: Placement = 'bottom';\n @property({ type: Number }) offset = 4;\n @property({ type: Number }) padding = 10;\n @property({ type: Object, attribute: false }) boundary: Boundary = document.documentElement;\n @property({ type: Array, attribute: false }) fallbackPlacements: Placement[] = ['bottom', 'top', 'bottom-start', 'top-start', 'bottom-end', 'top-end'];\n @property() strategy: 'absolute' | 'fixed' = 'fixed';\n @property() className = '';\n @property({ type: Number }) zIndex = 9999;\n @property({ type: Boolean }) preserveStyles = true;\n @property({ type: Boolean }) cloneContent = true;\n\n @state() private portalContainer: HTMLElement | null = null;\n @state() private clonedContent: HTMLElement | null = null;\n @state() private currentPlacement: Placement = 'bottom';\n @state() private currentMiddlewareData: MiddlewareData | null = null;\n @state() private measuredHeight: number | null = null;\n\n private cleanupAutoUpdate: (() => void) | null = null;\n private injectedStyleId: string | null = null;\n private resizeObserver: ResizeObserver | null = null;\n\n static styles = css`\n :host {\n display: none;\n }\n `;\n\n connectedCallback() {\n super.connectedCallback();\n if (this.enabled) {\n this.setupPortal();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.cleanup();\n }\n\n updated(changedProperties: Map<string | number | symbol, unknown>) {\n super.updated(changedProperties);\n \n if (changedProperties.has('enabled')) {\n if (this.enabled) {\n this.setupPortal();\n } else {\n this.cleanup();\n }\n }\n \n if (this.enabled && (changedProperties.has('targetElement') || changedProperties.has('content'))) {\n this.cleanup();\n this.setupPortal();\n }\n }\n\n private async setupPortal() {\n if (!this.enabled || !this.targetElement || !this.content) return;\n\n await this.updateComplete;\n \n // Create portal container\n this.portalContainer = this.createPortalContainer();\n document.body.appendChild(this.portalContainer);\n \n // Create cloned content\n this.clonedContent = this.createClonedContent();\n this.portalContainer.appendChild(this.clonedContent);\n \n // Make sure the cloned content is visible\n this.clonedContent.style.display = '';\n this.clonedContent.style.visibility = '';\n \n // Inject styles if needed\n if (this.preserveStyles) {\n this.injectStyles();\n }\n \n // Position the portal\n await this.positionPortal();\n \n // Setup auto-update\n this.setupAutoUpdate();\n \n // Setup event listeners\n this.setupEventListeners();\n }\n\n private createPortalContainer(): HTMLElement {\n const container = document.createElement('div');\n container.style.position = 'absolute';\n container.style.zIndex = this.zIndex.toString();\n container.style.pointerEvents = 'none';\n container.className = `nile-portal-wrapper ${this.className}`;\n \n // Copy CSS classes from the original content to maintain styling context\n if (this.content) {\n const contentClasses = Array.from(this.content.classList);\n contentClasses.forEach(cls => {\n if (!container.classList.contains(cls)) {\n container.classList.add(cls);\n }\n });\n }\n \n return container;\n }\n\n private createClonedContent(): HTMLElement {\n if (!this.content) {\n throw new Error('Content element is required for cloning');\n }\n\n // Create a new listbox structure based on the original content\n const clonedContent = this.createPortalListbox();\n \n return clonedContent;\n }\n\n private createPortalListbox(): HTMLElement {\n const listbox = document.createElement('div');\n listbox.className = 'select__listbox';\n listbox.setAttribute('tabindex', '-1');\n listbox.setAttribute('role', 'listbox');\n listbox.setAttribute('aria-expanded', 'true');\n \n // Get the nile-select component\n const selectComponent = this.targetElement?.closest('nile-select');\n if (!selectComponent) return listbox;\n \n // Create options container\n const optionsContainer = document.createElement('div');\n optionsContainer.className = 'select__options';\n \n // Get options directly from the component (not from the slot)\n const options = Array.from(selectComponent.querySelectorAll('nile-option'));\n \n options.forEach((option: Element) => {\n const clonedOption = this.cloneOption(option as HTMLElement);\n optionsContainer.appendChild(clonedOption);\n });\n \n listbox.appendChild(optionsContainer);\n \n return listbox;\n }\n\n private cloneOption(option: HTMLElement): HTMLElement {\n const clonedOption = option.cloneNode(true) as HTMLElement;\n \n // Copy all attributes\n Array.from(option.attributes).forEach(attr => {\n clonedOption.setAttribute(attr.name, attr.value);\n });\n \n // Copy properties (matching the original implementation)\n const properties = ['selected', 'disabled', 'current', 'hidden'];\n properties.forEach(prop => {\n if ((option as any)[prop] !== undefined) {\n (clonedOption as any)[prop] = (option as any)[prop];\n }\n });\n \n return clonedOption;\n }\n\n private async positionPortal() {\n if (!this.portalContainer || !this.targetElement) return;\n\n try {\n const { x, y, placement, middlewareData } = await computePosition(\n this.targetElement,\n this.portalContainer,\n {\n placement: this.placement,\n strategy: this.strategy,\n middleware: [\n offset(this.offset),\n size({\n apply: this.handleSizeMiddleware.bind(this),\n padding: this.padding,\n boundary: this.boundary\n }),\n flip({\n fallbackPlacements: this.fallbackPlacements,\n fallbackStrategy: 'bestFit',\n padding: this.padding,\n boundary: this.boundary\n }),\n shift({\n padding: this.padding,\n crossAxis: true,\n boundary: this.boundary\n })\n ],\n platform: platform\n }\n );\n\n this.applyPosition(x, y, placement, middlewareData);\n } catch (error) {\n console.warn('Floating UI positioning failed, falling back to simple positioning:', error);\n this.fallbackPositioning();\n }\n }\n\n private handleSizeMiddleware({ availableWidth, availableHeight, elements }: {\n availableWidth: number;\n availableHeight: number;\n elements: { floating: HTMLElement };\n }): void {\n elements.floating.style.maxWidth = `${availableWidth}px`;\n elements.floating.style.maxHeight = `${availableHeight}px`;\n }\n\n private applyPosition(x: number, y: number, placement: Placement, middlewareData: MiddlewareData) {\n if (!this.portalContainer) return;\n\n Object.assign(this.portalContainer.style, {\n left: `${x}px`,\n top: `${y}px`,\n position: this.strategy,\n pointerEvents: 'auto'\n });\n\n this.currentPlacement = placement;\n this.currentMiddlewareData = middlewareData;\n \n // Apply placement class\n const placementClass = placement.split('-')[0];\n this.portalContainer.className = `nile-portal-wrapper select__listbox--${placementClass} ${this.className}`;\n\n // Set width to match target element\n if (this.targetElement) {\n const targetRect = this.targetElement.getBoundingClientRect();\n this.portalContainer.style.width = `${targetRect.width}px`;\n }\n }\n\n private fallbackPositioning() {\n if (!this.portalContainer || !this.targetElement) return;\n\n const rect = this.targetElement.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const popupHeight = this.measuredHeight || 200;\n \n const spaceBelow = viewportHeight - rect.bottom;\n const spaceAbove = rect.top;\n \n let topPosition: number;\n let placementClass: string;\n let maxHeight: number;\n \n if (spaceAbove > spaceBelow) {\n maxHeight = Math.max(spaceAbove - 20, 100);\n topPosition = Math.max(rect.top - maxHeight - this.offset, 10);\n placementClass = 'top';\n } else {\n maxHeight = Math.max(spaceBelow - 20, 100);\n topPosition = rect.bottom + this.offset;\n placementClass = 'bottom';\n }\n\n this.portalContainer.style.left = `${rect.left}px`;\n this.portalContainer.style.top = `${topPosition}px`;\n this.portalContainer.style.width = `${rect.width}px`;\n this.portalContainer.style.maxHeight = `${maxHeight}px`;\n this.portalContainer.style.pointerEvents = 'auto';\n this.portalContainer.className = `nile-portal-wrapper select__listbox--${placementClass} ${this.className}`;\n }\n\n private setupAutoUpdate() {\n if (!this.portalContainer || !this.targetElement) return;\n\n this.cleanupAutoUpdate = autoUpdate(\n this.targetElement,\n this.portalContainer,\n () => {\n this.positionPortal();\n },\n {\n ancestorScroll: true,\n ancestorResize: true,\n elementResize: true,\n layoutShift: true,\n animationFrame: true\n }\n );\n }\n\n private setupEventListeners() {\n if (!this.clonedContent) return;\n\n // Handle option clicks\n this.clonedContent.addEventListener('mouseup', (event) => {\n const target = event.target as HTMLElement;\n const option = target.closest('nile-option');\n \n if (option) {\n this.handleOptionClick(option as HTMLElement);\n }\n });\n\n // Handle other events that need to be forwarded\n const events = ['click', 'keydown', 'keyup', 'focus', 'blur'];\n events.forEach(eventType => {\n this.clonedContent?.addEventListener(eventType, (event) => {\n this.forwardEvent(event, eventType);\n });\n });\n }\n\n private handleOptionClick(clonedOption: HTMLElement) {\n if (!this.content) return;\n\n // Find the original option by value\n const value = clonedOption.getAttribute('value');\n if (!value) return;\n\n const originalOption = this.content.querySelector(`nile-option[value=\"${value}\"]`) as HTMLElement;\n if (!originalOption) return;\n\n // Dispatch a synthetic event on the original option\n const syntheticEvent = new MouseEvent('mouseup', {\n bubbles: true,\n cancelable: true,\n view: window\n });\n \n Object.defineProperty(syntheticEvent, 'target', {\n value: originalOption,\n writable: false\n });\n \n originalOption.dispatchEvent(syntheticEvent);\n }\n\n private forwardEvent(event: Event, eventType: string) {\n const target = event.target as HTMLElement;\n const originalTarget = this.findOriginalElement(target);\n\n if (originalTarget) {\n const syntheticEvent = new (event.constructor as any)(eventType, {\n view: window,\n ...event,\n bubbles: true,\n cancelable: true\n });\n\n Object.defineProperty(syntheticEvent, 'target', {\n value: originalTarget,\n writable: false\n });\n\n originalTarget.dispatchEvent(syntheticEvent);\n }\n }\n\n private findOriginalElement(clonedElement: HTMLElement): HTMLElement | null {\n if (!this.content || !this.clonedContent) return null;\n\n if (clonedElement.tagName === 'NILE-OPTION') {\n const value = clonedElement.getAttribute('value');\n if (value) {\n return this.content.querySelector(`nile-option[value=\"${value}\"]`) as HTMLElement;\n }\n }\n\n const tagName = clonedElement.tagName;\n const attributes = Array.from(clonedElement.attributes).map(attr => `${attr.name}=\"${attr.value}\"`);\n\n const originalElements = this.content.querySelectorAll(tagName);\n for (const original of originalElements) {\n const originalAttributes = Array.from(original.attributes).map(attr => `${attr.name}=\"${attr.value}\"`);\n if (JSON.stringify(originalAttributes) === JSON.stringify(attributes)) {\n return original as HTMLElement;\n }\n }\n\n return null;\n }\n\n private injectStyles() {\n if (!this.preserveStyles || !this.portalContainer) return;\n\n const styleId = `nile-portal-styles-${Math.random().toString(36).substring(2, 11)}`;\n \n if (document.getElementById(styleId)) return;\n\n // Try to get styles from the component's constructor\n const component = this.targetElement?.closest('nile-select');\n if (component) {\n const componentStyles = (component.constructor as any).styles;\n if (componentStyles) {\n const styleElement = document.createElement('style');\n styleElement.id = styleId;\n styleElement.textContent = this.extractStylesAsCSS(componentStyles);\n document.head.appendChild(styleElement);\n this.injectedStyleId = styleId;\n return;\n }\n }\n\n // Fallback: try to copy styles from shadow root\n if (this.content) {\n const shadowRoot = this.content.getRootNode() as ShadowRoot;\n if (shadowRoot && shadowRoot.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n const styleElements = shadowRoot.querySelectorAll('style');\n styleElements.forEach(styleEl => {\n const styleElement = document.createElement('style');\n styleElement.id = `${styleId}-${Math.random().toString(36).substring(2, 6)}`;\n styleElement.textContent = styleEl.textContent;\n document.head.appendChild(styleElement);\n });\n this.injectedStyleId = styleId;\n }\n }\n }\n\n private extractStylesAsCSS(styles: any): string {\n if (typeof styles === 'string') {\n return styles;\n }\n \n if (Array.isArray(styles)) {\n return styles.map(style => this.extractStylesAsCSS(style)).join('\\n');\n }\n \n if (styles && typeof styles === 'object' && styles.cssText) {\n return styles.cssText;\n }\n \n return '';\n }\n\n private cleanup() {\n this.cleanupAutoUpdate?.();\n this.cleanupAutoUpdate = null;\n\n if (this.portalContainer && this.portalContainer.parentNode) {\n this.portalContainer.parentNode.removeChild(this.portalContainer);\n }\n\n if (this.injectedStyleId) {\n const styleElement = document.getElementById(this.injectedStyleId);\n if (styleElement) {\n styleElement.remove();\n }\n this.injectedStyleId = null;\n }\n\n this.portalContainer = null;\n this.clonedContent = null;\n this.currentPlacement = 'bottom';\n this.currentMiddlewareData = null;\n this.measuredHeight = null;\n }\n\n render() {\n return html``;\n }\n}\n"]}
@@ -1,90 +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 NilePopup from '../nile-popup/nile-popup';
8
- import type NileSelect from './nile-select';
9
- /**
10
- * Manager class for handling bodyAppend functionality in nile-select
11
- * This class manages moving select options to document.body to avoid CSS clipping issues
12
- */
13
- export declare class BodyAppendManager {
14
- private bodyContainer?;
15
- private originalOptions;
16
- private boundHandlePopupReposition?;
17
- private selectElement;
18
- private popup?;
19
- private listbox?;
20
- private injectedStyleId?;
21
- constructor(selectElement: NileSelect);
22
- /**
23
- * Sets the popup and listbox references
24
- */
25
- setReferences(popup: NilePopup, listbox: HTMLSlotElement): void;
26
- /**
27
- * Handles the bodyAppend change
28
- */
29
- handleBodyAppendChange(bodyAppend: boolean): void;
30
- /**
31
- * Handles popup reposition events to update body container position
32
- */
33
- private handlePopupReposition;
34
- /**
35
- * Extracts styles as CSS string from various style formats
36
- */
37
- private extractStylesAsCSS;
38
- /**
39
- * Injects component styles into document head
40
- */
41
- private injectStylesToDocument;
42
- /**
43
- * Adopts component styles to the body container (similar to portal-manager pattern)
44
- */
45
- private adoptStylesToBodyContainer;
46
- /**
47
- * Creates a body container for options when bodyAppend is true
48
- */
49
- private createBodyContainer;
50
- /**
51
- * Cleans up the body container
52
- */
53
- private cleanupBodyContainer;
54
- /**
55
- * Moves options to body container when bodyAppend is true
56
- */
57
- private moveOptionsToBody;
58
- /**
59
- * Restores options to their original position
60
- */
61
- private restoreOptionsFromBody;
62
- /**
63
- * Updates body container visibility and positioning
64
- */
65
- private updateBodyContainerVisibility;
66
- /**
67
- * Gets all options from both original location and body container
68
- */
69
- private getAllOptions;
70
- /**
71
- * Updates body container visibility when select opens/closes
72
- */
73
- updateVisibility(visible: boolean): void;
74
- /**
75
- * Checks if bodyAppend is active (has body container)
76
- */
77
- isActive(): boolean;
78
- /**
79
- * Gets the body container element
80
- */
81
- getBodyContainer(): HTMLElement | undefined;
82
- /**
83
- * Gets the listbox container element inside the body container
84
- */
85
- getListboxContainer(): HTMLElement | undefined;
86
- /**
87
- * Cleans up all resources
88
- */
89
- destroy(): void;
90
- }