@aquera/nile-elements 1.4.1-beta-1.3 → 1.4.2-beta-1.0

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 (467) hide show
  1. package/README.md +5 -2
  2. package/demo/variables.css +1 -0
  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 +1 -1
  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.test.cjs.js +1 -1
  26. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  27. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  28. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  29. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  30. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  31. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  32. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  33. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  34. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  35. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  36. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  37. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  38. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  39. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  40. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  41. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  42. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  43. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  44. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  45. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  46. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  47. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  48. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  49. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  50. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  51. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  52. package/dist/nile-input/nile-input.test.esm.js +1 -1
  53. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  54. package/dist/nile-link/nile-link.test.esm.js +1 -1
  55. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  56. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  57. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  58. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  59. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  60. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  61. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  62. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  63. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  64. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  65. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  66. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  67. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  68. package/dist/nile-select/nile-select.test.esm.js +1 -1
  69. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  70. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  71. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  72. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  73. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  74. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  75. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  76. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  77. package/dist/src/nile-css-tooltip/index.d.ts +1 -0
  78. package/dist/src/nile-css-tooltip/index.js +2 -0
  79. package/dist/src/nile-css-tooltip/index.js.map +1 -0
  80. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.d.ts +9 -0
  81. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js +459 -0
  82. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js.map +1 -0
  83. package/dist/src/nile-css-tooltip/nile-css-tooltip.d.ts +113 -0
  84. package/dist/src/nile-css-tooltip/nile-css-tooltip.js +213 -0
  85. package/dist/src/nile-css-tooltip/nile-css-tooltip.js.map +1 -0
  86. package/dist/src/version.js +1 -1
  87. package/dist/src/version.js.map +1 -1
  88. package/package.json +1 -1
  89. package/dist/fixture-54600b35.cjs.js.map +0 -1
  90. package/dist/fixture-5b79f853.cjs.js +0 -395
  91. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  92. package/dist/fixture-73855806.cjs.js +0 -395
  93. package/dist/fixture-90b199c4.esm.js +0 -569
  94. package/dist/fixture-c1d78368.cjs.js +0 -395
  95. package/dist/fixture-c1d78368.cjs.js.map +0 -1
  96. package/dist/fixture-cf7bfcf5.esm.js +0 -569
  97. package/dist/fixture-dbd66009.cjs.js +0 -395
  98. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  99. package/dist/nile-carousel/carousel-helpers.cjs.js +0 -2
  100. package/dist/nile-carousel/carousel-helpers.cjs.js.map +0 -1
  101. package/dist/nile-carousel/carousel-helpers.esm.js +0 -1
  102. package/dist/nile-carousel/index.cjs.js +0 -2
  103. package/dist/nile-carousel/index.cjs.js.map +0 -1
  104. package/dist/nile-carousel/index.esm.js +0 -1
  105. package/dist/nile-carousel/nile-carousel-item/index.cjs.js +0 -2
  106. package/dist/nile-carousel/nile-carousel-item/index.cjs.js.map +0 -1
  107. package/dist/nile-carousel/nile-carousel-item/index.esm.js +0 -1
  108. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js +0 -2
  109. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js.map +0 -1
  110. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.css.cjs.js +0 -2
  111. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.css.cjs.js.map +0 -1
  112. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.css.esm.js +0 -18
  113. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.esm.js +0 -5
  114. package/dist/nile-carousel/nile-carousel.cjs.js +0 -2
  115. package/dist/nile-carousel/nile-carousel.cjs.js.map +0 -1
  116. package/dist/nile-carousel/nile-carousel.css.cjs.js +0 -2
  117. package/dist/nile-carousel/nile-carousel.css.cjs.js.map +0 -1
  118. package/dist/nile-carousel/nile-carousel.css.esm.js +0 -157
  119. package/dist/nile-carousel/nile-carousel.esm.js +0 -58
  120. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  121. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  122. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  123. package/dist/nile-grid/nile-grid.types.cjs.js +0 -2
  124. package/dist/nile-grid/nile-grid.types.cjs.js.map +0 -1
  125. package/dist/nile-grid/nile-grid.types.esm.js +0 -1
  126. package/dist/nile-grid-body/index.cjs.js +0 -2
  127. package/dist/nile-grid-body/index.cjs.js.map +0 -1
  128. package/dist/nile-grid-body/index.esm.js +0 -1
  129. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  130. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  131. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
  132. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  133. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -10
  134. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  135. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  136. package/dist/nile-grid-cell-item/index.cjs.js.map +0 -1
  137. package/dist/nile-grid-cell-item/index.esm.js +0 -1
  138. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +0 -2
  139. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  140. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  141. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  142. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  143. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  144. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +0 -2
  145. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  146. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +0 -1
  147. package/dist/nile-grid-head/index.cjs.js +0 -2
  148. package/dist/nile-grid-head/index.cjs.js.map +0 -1
  149. package/dist/nile-grid-head/index.esm.js +0 -1
  150. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  151. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  152. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +0 -2
  153. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  154. package/dist/nile-grid-head/nile-grid-head.css.esm.js +0 -7
  155. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  156. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  157. package/dist/nile-grid-head-item/index.cjs.js.map +0 -1
  158. package/dist/nile-grid-head-item/index.esm.js +0 -1
  159. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  160. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  161. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  162. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  163. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  164. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  165. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  166. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  167. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  168. package/dist/nile-grid-row/index.cjs.js +0 -2
  169. package/dist/nile-grid-row/index.cjs.js.map +0 -1
  170. package/dist/nile-grid-row/index.esm.js +0 -1
  171. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  172. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  173. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  174. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  175. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  176. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  177. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  178. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  179. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  180. package/dist/nile-sidebar/index.cjs.js +0 -2
  181. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  182. package/dist/nile-sidebar/index.esm.js +0 -75
  183. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  184. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  185. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  186. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  187. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  188. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  189. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  190. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  191. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  192. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  193. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  194. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  195. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  196. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  197. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  198. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  199. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  200. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  201. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  202. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  203. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  204. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  205. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  206. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  207. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  208. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  209. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  210. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  211. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  212. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  213. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  214. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  215. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  216. package/dist/scopedElementsWrapper-1bff26ef.cjs.js +0 -2
  217. package/dist/scopedElementsWrapper-1bff26ef.cjs.js.map +0 -1
  218. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  219. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  220. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  221. package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
  222. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
  223. package/dist/src/internal/portal-manager.d.ts +0 -53
  224. package/dist/src/internal/portal-manager.js +0 -196
  225. package/dist/src/internal/portal-manager.js.map +0 -1
  226. package/dist/src/internal/portal.d.ts +0 -60
  227. package/dist/src/internal/portal.js +0 -199
  228. package/dist/src/internal/portal.js.map +0 -1
  229. package/dist/src/internal/resizable-helper.d.ts +0 -59
  230. package/dist/src/internal/resizable-helper.js +0 -115
  231. package/dist/src/internal/resizable-helper.js.map +0 -1
  232. package/dist/src/internal/resizable-styles.d.ts +0 -16
  233. package/dist/src/internal/resizable-styles.js +0 -144
  234. package/dist/src/internal/resizable-styles.js.map +0 -1
  235. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  236. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  237. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  238. package/dist/src/lib/index.d.ts +0 -7
  239. package/dist/src/lib/index.js +0 -8
  240. package/dist/src/lib/index.js.map +0 -1
  241. package/dist/src/lib/virtualize.d.ts +0 -32
  242. package/dist/src/lib/virtualize.js +0 -105
  243. package/dist/src/lib/virtualize.js.map +0 -1
  244. package/dist/src/lib/virtualize.test.d.ts +0 -7
  245. package/dist/src/lib/virtualize.test.js +0 -57
  246. package/dist/src/lib/virtualize.test.js.map +0 -1
  247. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  248. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  249. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  250. package/dist/src/nile-carousel/carousel-helpers.d.ts +0 -18
  251. package/dist/src/nile-carousel/carousel-helpers.js +0 -53
  252. package/dist/src/nile-carousel/carousel-helpers.js.map +0 -1
  253. package/dist/src/nile-carousel/index.d.ts +0 -1
  254. package/dist/src/nile-carousel/index.js +0 -2
  255. package/dist/src/nile-carousel/index.js.map +0 -1
  256. package/dist/src/nile-carousel/nile-carousel-item/index.d.ts +0 -1
  257. package/dist/src/nile-carousel/nile-carousel-item/index.js +0 -2
  258. package/dist/src/nile-carousel/nile-carousel-item/index.js.map +0 -1
  259. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.css.d.ts +0 -12
  260. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.css.js +0 -30
  261. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.css.js.map +0 -1
  262. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.d.ts +0 -24
  263. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.js +0 -35
  264. package/dist/src/nile-carousel/nile-carousel-item/nile-carousel-item.js.map +0 -1
  265. package/dist/src/nile-carousel/nile-carousel.css.d.ts +0 -12
  266. package/dist/src/nile-carousel/nile-carousel.css.js +0 -169
  267. package/dist/src/nile-carousel/nile-carousel.css.js.map +0 -1
  268. package/dist/src/nile-carousel/nile-carousel.d.ts +0 -56
  269. package/dist/src/nile-carousel/nile-carousel.js +0 -340
  270. package/dist/src/nile-carousel/nile-carousel.js.map +0 -1
  271. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  272. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  273. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  274. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  275. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  276. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  277. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  278. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  279. package/dist/src/nile-code-editor/theme copy.js +0 -193
  280. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  281. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  282. package/dist/src/nile-grid/data-processor.js +0 -122
  283. package/dist/src/nile-grid/data-processor.js.map +0 -1
  284. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  285. package/dist/src/nile-grid/event-handlers.js +0 -158
  286. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  287. package/dist/src/nile-grid/nile-grid.types.d.ts +0 -3
  288. package/dist/src/nile-grid/nile-grid.types.js +0 -2
  289. package/dist/src/nile-grid/nile-grid.types.js.map +0 -1
  290. package/dist/src/nile-grid/renderer.d.ts +0 -8
  291. package/dist/src/nile-grid/renderer.js +0 -78
  292. package/dist/src/nile-grid/renderer.js.map +0 -1
  293. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  294. package/dist/src/nile-grid/resize-handler.js +0 -36
  295. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  296. package/dist/src/nile-grid/types.d.ts +0 -32
  297. package/dist/src/nile-grid/types.js +0 -2
  298. package/dist/src/nile-grid/types.js.map +0 -1
  299. package/dist/src/nile-grid/utils.d.ts +0 -4
  300. package/dist/src/nile-grid/utils.js +0 -32
  301. package/dist/src/nile-grid/utils.js.map +0 -1
  302. package/dist/src/nile-grid-body/index.d.ts +0 -1
  303. package/dist/src/nile-grid-body/index.js +0 -2
  304. package/dist/src/nile-grid-body/index.js.map +0 -1
  305. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +0 -12
  306. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -22
  307. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  308. package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -29
  309. package/dist/src/nile-grid-body/nile-grid-body.js +0 -43
  310. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  311. package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
  312. package/dist/src/nile-grid-cell-item/index.js +0 -2
  313. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  314. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
  315. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  316. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  317. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
  318. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
  319. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  320. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
  321. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
  322. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  323. package/dist/src/nile-grid-head/index.d.ts +0 -1
  324. package/dist/src/nile-grid-head/index.js +0 -2
  325. package/dist/src/nile-grid-head/index.js.map +0 -1
  326. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
  327. package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
  328. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  329. package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
  330. package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
  331. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  332. package/dist/src/nile-grid-head-item/index.d.ts +0 -1
  333. package/dist/src/nile-grid-head-item/index.js +0 -2
  334. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  335. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
  336. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
  337. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  338. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
  339. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
  340. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  341. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  342. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
  343. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  344. package/dist/src/nile-grid-row/index.d.ts +0 -1
  345. package/dist/src/nile-grid-row/index.js +0 -2
  346. package/dist/src/nile-grid-row/index.js.map +0 -1
  347. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
  348. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  349. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  350. package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -29
  351. package/dist/src/nile-grid-row/nile-grid-row.js +0 -45
  352. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  353. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  354. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  355. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  356. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  357. package/dist/src/nile-menu/portal-manager.js +0 -340
  358. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  359. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  360. package/dist/src/nile-menu/portal-utils.js +0 -128
  361. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  362. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  363. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  364. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  365. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  366. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  367. package/dist/src/nile-portal-wrapper/index.js +0 -2
  368. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  369. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  370. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  371. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  372. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  373. package/dist/src/nile-rich-text-editor/utils.js +0 -538
  374. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  375. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  376. package/dist/src/nile-select/body-append-manager.js +0 -298
  377. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  378. package/dist/src/nile-sidebar/index.d.ts +0 -28
  379. package/dist/src/nile-sidebar/index.js +0 -116
  380. package/dist/src/nile-sidebar/index.js.map +0 -1
  381. package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
  382. package/dist/src/nile-sidebar-menu/index.js +0 -2
  383. package/dist/src/nile-sidebar-menu/index.js.map +0 -1
  384. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
  385. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
  386. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
  387. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
  388. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
  389. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
  390. package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
  391. package/dist/src/nile-sidebar-menu-items/index.js +0 -2
  392. package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
  393. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
  394. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
  395. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
  396. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
  397. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
  398. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
  399. package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
  400. package/dist/src/nile-sidebar-wrapper/index.js +0 -2
  401. package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
  402. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
  403. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
  404. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
  405. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
  406. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
  407. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
  408. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  409. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  410. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  411. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  412. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  413. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  414. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  415. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  416. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  417. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  418. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  419. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  420. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  421. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  422. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  423. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  424. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  425. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  426. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  427. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  428. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  429. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  430. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  431. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  432. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  433. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  434. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  435. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  436. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  437. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  438. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  439. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  440. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  441. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  442. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  443. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  444. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  445. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  446. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  447. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  448. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  449. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  450. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  451. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  452. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  453. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  454. package/dist/src/nile-virtual-table-body/index.js +0 -3
  455. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  456. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  457. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  458. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  459. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  460. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  461. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  462. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  463. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  464. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  465. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  466. package/dist/src/utilities/stepper-utils.js +0 -108
  467. package/dist/src/utilities/stepper-utils.js.map +0 -1
@@ -1,115 +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
- /**
8
- * Handles the start of a resize operation
9
- * @param e Mouse event
10
- * @param options Resize configuration options
11
- * @returns Cleanup function to remove event listeners
12
- */
13
- export function handleResizeStart(e, options) {
14
- e.preventDefault();
15
- e.stopPropagation();
16
- const { minWidth = 50, startX, startWidth, element } = options;
17
- const resizer = e.target;
18
- // Add resizing class for visual feedback
19
- resizer.classList.add('resizing');
20
- const onMouseMove = (e) => {
21
- e.preventDefault();
22
- e.stopPropagation();
23
- const delta = e.pageX - startX;
24
- const newWidth = Math.max(minWidth, startWidth + delta);
25
- // Apply width to the current element
26
- element.style.width = newWidth + 'px';
27
- // Synchronize width across all cells in the same column
28
- synchronizeColumnWidth(element, newWidth);
29
- };
30
- const onMouseUp = () => {
31
- resizer.classList.remove('resizing');
32
- document.removeEventListener('mousemove', onMouseMove);
33
- document.removeEventListener('mouseup', onMouseUp);
34
- };
35
- document.addEventListener('mousemove', onMouseMove);
36
- document.addEventListener('mouseup', onMouseUp);
37
- // Return cleanup function
38
- return () => {
39
- document.removeEventListener('mousemove', onMouseMove);
40
- document.removeEventListener('mouseup', onMouseUp);
41
- };
42
- }
43
- /**
44
- * Gets the column index of an element within its table row
45
- * @param element The table cell or header element
46
- * @param selector The CSS selector for the column elements
47
- * @returns Column index (0-based)
48
- */
49
- export function getColumnIndex(element, selector) {
50
- const tableRow = element.closest('nile-table-row');
51
- if (tableRow) {
52
- const columns = tableRow.querySelectorAll(selector);
53
- return Array.from(columns).indexOf(element);
54
- }
55
- return 0;
56
- }
57
- /**
58
- * Synchronizes the width of all cells in the same column
59
- * @param sourceElement The element that was resized
60
- * @param newWidth The new width to apply
61
- */
62
- export function synchronizeColumnWidth(sourceElement, newWidth) {
63
- const tableBody = sourceElement.closest('nile-table-body');
64
- if (!tableBody)
65
- return;
66
- const isHeader = sourceElement.tagName.toLowerCase() === 'nile-table-header-item';
67
- const selector = isHeader ? 'nile-table-header-item' : 'nile-table-cell-item';
68
- const targetSelector = isHeader ? 'nile-table-cell-item' : 'nile-table-cell-item';
69
- const columnIndex = getColumnIndex(sourceElement, selector);
70
- const rows = tableBody.querySelectorAll('nile-table-row');
71
- rows.forEach(row => {
72
- const cells = row.querySelectorAll(targetSelector);
73
- if (cells[columnIndex]) {
74
- cells[columnIndex].style.width = newWidth + 'px';
75
- }
76
- });
77
- }
78
- /**
79
- * Checks if an element has the resizable attribute
80
- * @param element The element to check
81
- * @returns True if the element is resizable
82
- */
83
- export function isResizable(element) {
84
- return element.hasAttribute('resizable');
85
- }
86
- /**
87
- * Creates a resize handler function for use in component event listeners
88
- * @param element The element to make resizable
89
- * @param minWidth Minimum width constraint
90
- * @returns Event handler function
91
- */
92
- export function createResizeHandler(element, minWidth = 50) {
93
- return (e) => {
94
- const options = {
95
- minWidth,
96
- startX: e.pageX,
97
- startWidth: element.offsetWidth,
98
- element
99
- };
100
- handleResizeStart(e, options);
101
- };
102
- }
103
- /**
104
- * Detects if any columns in a table are resizable
105
- * @param tableBody The table body element
106
- * @returns True if any columns have resizable attribute
107
- */
108
- export function hasResizableColumns(tableBody) {
109
- const headerItems = tableBody.querySelectorAll('nile-table-header-item');
110
- const cellItems = tableBody.querySelectorAll('nile-table-cell-item');
111
- const hasResizableHeaders = Array.from(headerItems).some(item => isResizable(item));
112
- const hasResizableCells = Array.from(cellItems).some(item => isResizable(item));
113
- return hasResizableHeaders || hasResizableCells;
114
- }
115
- //# sourceMappingURL=resizable-helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resizable-helper.js","sourceRoot":"","sources":["../../../src/internal/resizable-helper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,CAAa,EAAE,OAAsB;IACrE,CAAC,CAAC,cAAc,EAAE,CAAC;IACnB,CAAC,CAAC,eAAe,EAAE,CAAC;IAEpB,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC/D,MAAM,OAAO,GAAG,CAAC,CAAC,MAAqB,CAAC;IAExC,yCAAyC;IACzC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAElC,MAAM,WAAW,GAAG,CAAC,CAAa,EAAE,EAAE;QACpC,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QAEpB,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC;QAExD,qCAAqC;QACrC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;QAEtC,wDAAwD;QACxD,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACrC,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACvD,QAAQ,CAAC,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,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC1D,WAAW,CAAC,IAAI,CAAC,CAClB,CAAC;IAEF,OAAO,mBAAmB,IAAI,iBAAiB,CAAC;AAClD,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\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\n/**\n * Resizable Helper Utility\n * Provides common functionality for resizable table columns\n */\n\nexport interface ResizeOptions {\n minWidth?: number;\n startX: number;\n startWidth: number;\n element: HTMLElement;\n}\n\nexport interface ColumnResizeData {\n columnIndex: number;\n newWidth: number;\n}\n\n/**\n * Handles the start of a resize operation\n * @param e Mouse event\n * @param options Resize configuration options\n * @returns Cleanup function to remove event listeners\n */\nexport function handleResizeStart(e: MouseEvent, options: ResizeOptions): () => void {\n e.preventDefault();\n e.stopPropagation();\n \n const { minWidth = 50, startX, startWidth, element } = options;\n const resizer = e.target as HTMLElement;\n \n // Add resizing class for visual feedback\n resizer.classList.add('resizing');\n\n const onMouseMove = (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n \n const delta = e.pageX - startX;\n const newWidth = Math.max(minWidth, startWidth + delta);\n\n // Apply width to the current element\n element.style.width = newWidth + 'px';\n\n // Synchronize width across all cells in the same column\n synchronizeColumnWidth(element, newWidth);\n };\n\n const onMouseUp = () => {\n resizer.classList.remove('resizing');\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n };\n\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('mouseup', onMouseUp);\n\n // Return cleanup function\n return () => {\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n };\n}\n\n/**\n * Gets the column index of an element within its table row\n * @param element The table cell or header element\n * @param selector The CSS selector for the column elements\n * @returns Column index (0-based)\n */\nexport function getColumnIndex(element: HTMLElement, selector: string): number {\n const tableRow = element.closest('nile-table-row');\n if (tableRow) {\n const columns = tableRow.querySelectorAll(selector);\n return Array.from(columns).indexOf(element);\n }\n return 0;\n}\n\n/**\n * Synchronizes the width of all cells in the same column\n * @param sourceElement The element that was resized\n * @param newWidth The new width to apply\n */\nexport function synchronizeColumnWidth(sourceElement: HTMLElement, newWidth: number): void {\n const tableBody = sourceElement.closest('nile-table-body');\n if (!tableBody) return;\n\n const isHeader = sourceElement.tagName.toLowerCase() === 'nile-table-header-item';\n const selector = isHeader ? 'nile-table-header-item' : 'nile-table-cell-item';\n const targetSelector = isHeader ? 'nile-table-cell-item' : 'nile-table-cell-item';\n \n const columnIndex = getColumnIndex(sourceElement, selector);\n const rows = tableBody.querySelectorAll('nile-table-row');\n \n rows.forEach(row => {\n const cells = row.querySelectorAll(targetSelector);\n if (cells[columnIndex]) {\n cells[columnIndex].style.width = newWidth + 'px';\n }\n });\n}\n\n/**\n * Checks if an element has the resizable attribute\n * @param element The element to check\n * @returns True if the element is resizable\n */\nexport function isResizable(element: HTMLElement): boolean {\n return element.hasAttribute('resizable');\n}\n\n/**\n * Creates a resize handler function for use in component event listeners\n * @param element The element to make resizable\n * @param minWidth Minimum width constraint\n * @returns Event handler function\n */\nexport function createResizeHandler(element: HTMLElement, minWidth: number = 50): (e: MouseEvent) => void {\n return (e: MouseEvent) => {\n const options: ResizeOptions = {\n minWidth,\n startX: e.pageX,\n startWidth: element.offsetWidth,\n element\n };\n \n handleResizeStart(e, options);\n };\n}\n\n/**\n * Detects if any columns in a table are resizable\n * @param tableBody The table body element\n * @returns True if any columns have resizable attribute\n */\nexport function hasResizableColumns(tableBody: HTMLElement): boolean {\n const headerItems = tableBody.querySelectorAll('nile-table-header-item');\n const cellItems = tableBody.querySelectorAll('nile-table-cell-item');\n \n const hasResizableHeaders = Array.from(headerItems).some(item => \n isResizable(item)\n );\n const hasResizableCells = Array.from(cellItems).some(item => \n isResizable(item)\n );\n \n return hasResizableHeaders || hasResizableCells;\n} \n"]}
@@ -1,16 +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
- /**
8
- * Resizable Styles Utility
9
- * Centralized styles for resizable table functionality
10
- */
11
- export declare const resizableHostStyles: import("lit").CSSResult;
12
- export declare const resizableHeaderStyles: import("lit").CSSResult;
13
- export declare const resizerStyles: import("lit").CSSResult;
14
- export declare const headerResizerStyles: import("lit").CSSResult;
15
- export declare const resizableSlotStyles: import("lit").CSSResult;
16
- export declare const tableLayoutStyles: import("lit").CSSResult;
@@ -1,144 +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 { css } from 'lit';
8
- /**
9
- * Resizable Styles Utility
10
- * Centralized styles for resizable table functionality
11
- */
12
- export const resizableHostStyles = css `
13
- /* Resizable-specific host styles */
14
- :host([resizable]) {
15
- position: relative;
16
- overflow: hidden;
17
- table-layout: fixed;
18
- }
19
- `;
20
- export const resizableHeaderStyles = css `
21
- /* Resizable-specific header styles */
22
- :host([resizable]) {
23
- position: relative;
24
- border-right: 1px solid var(--nile-colors-neutral-400);
25
- }
26
-
27
- /* Resizable-specific wrapper styles */
28
- :host([resizable]) .header__item__wrapper {
29
- position: relative;
30
- }
31
- `;
32
- export const resizerStyles = css `
33
- /* Resizer styles - only apply when resizable */
34
- .resizer {
35
- position: absolute;
36
- right: 0;
37
- top: -1000px;
38
- bottom: -1000px;
39
- width: 8px;
40
- cursor: col-resize;
41
- user-select: none;
42
- background-color: var(--nile-colors-neutral-100);
43
- transition: background-color 0.2s;
44
- z-index: 10;
45
- opacity: 0;
46
- transition: opacity 0.2s ease;
47
- pointer-events: none;
48
- }
49
-
50
- :host([resizable]):hover .resizer {
51
- opacity: 1;
52
- pointer-events: auto;
53
- }
54
-
55
- .resizer::before {
56
- content: '';
57
- position: absolute;
58
- right: 3px;
59
- top: 0;
60
- width: 2px;
61
- height: 100%;
62
- background-color: var(--nile-colors-neutral-500);
63
- opacity: 0.8;
64
- }
65
-
66
- .resizer:hover {
67
- background-color: var(--nile-colors-neutral-400);
68
- }
69
-
70
- .resizer:hover::before {
71
- background-color: var(--nile-colors-neutral-700);
72
- opacity: 1;
73
- }
74
-
75
- .resizer.resizing {
76
- background-color: var(--nile-colors-neutral-400);
77
- opacity: 1;
78
- pointer-events: auto;
79
- }
80
-
81
- .resizer.resizing::before {
82
- background-color: var(--nile-colors-neutral-700);
83
- opacity: 1;
84
- width: 3px;
85
- }
86
- `;
87
- export const headerResizerStyles = css `
88
- /* Header resizer styles */
89
- .resizer {
90
- position: absolute;
91
- right: -2px;
92
- top: -1000px;
93
- bottom: -1000px;
94
- width: 8px;
95
- cursor: ew-resize;
96
- user-select: none;
97
- transition: background-color 0.2s;
98
- z-index: 10;
99
- opacity: 0;
100
- transition: opacity 0.2s ease;
101
- }
102
-
103
- :host([resizable]):hover .resizer {
104
- opacity: 1;
105
- }
106
-
107
- .resizer::before {
108
- content: '';
109
- position: absolute;
110
- height: 100%;
111
- opacity: 0.8;
112
- }
113
-
114
- .resizer.resizing {
115
- border-right: 4px double var(--nile-colors-neutral-400);
116
- background-color: transparent;
117
- opacity: 1;
118
- }
119
- `;
120
- export const resizableSlotStyles = css `
121
- /* Slot styles for resizable mode */
122
- :host([resizable]) ::slotted(*) {
123
- overflow: hidden;
124
- text-overflow: ellipsis;
125
- white-space: nowrap;
126
- display: block;
127
- }
128
-
129
- :host([resizable]) ::slotted(span),
130
- :host([resizable]) ::slotted(div),
131
- :host([resizable]) ::slotted(p) {
132
- overflow: hidden;
133
- text-overflow: ellipsis;
134
- white-space: nowrap;
135
- display: block;
136
- }
137
- `;
138
- export const tableLayoutStyles = css `
139
- /* Apply fixed table layout only when resizable columns are present */
140
- .nile__table__body[resizable] {
141
- table-layout: fixed;
142
- }
143
- `;
144
- //# sourceMappingURL=resizable-styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resizable-styles.js","sourceRoot":"","sources":["../../../src/internal/resizable-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;GAGG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;CAOrC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;CAWvC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD/B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCrC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBrC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;CAKnC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\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 { css } from 'lit';\n\n/**\n * Resizable Styles Utility\n * Centralized styles for resizable table functionality\n */\n\nexport const resizableHostStyles = css`\n /* Resizable-specific host styles */\n :host([resizable]) {\n position: relative;\n overflow: hidden;\n table-layout: fixed;\n }\n`;\n\nexport const resizableHeaderStyles = css`\n /* Resizable-specific header styles */\n :host([resizable]) {\n position: relative;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n /* Resizable-specific wrapper styles */\n :host([resizable]) .header__item__wrapper {\n position: relative;\n }\n`;\n\nexport const resizerStyles = css`\n /* Resizer styles - only apply when resizable */\n .resizer {\n position: absolute;\n right: 0;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: col-resize;\n user-select: none;\n background-color: var(--nile-colors-neutral-100);\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n right: 3px;\n top: 0;\n width: 2px;\n height: 100%;\n background-color: var(--nile-colors-neutral-500);\n opacity: 0.8;\n }\n\n .resizer:hover {\n background-color: var(--nile-colors-neutral-400);\n }\n\n .resizer:hover::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n }\n\n .resizer.resizing {\n background-color: var(--nile-colors-neutral-400);\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer.resizing::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n width: 3px;\n }\n`;\n\nexport const headerResizerStyles = css`\n /* Header resizer styles */\n .resizer {\n position: absolute;\n right: -2px;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: ew-resize;\n user-select: none;\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n height: 100%;\n opacity: 0.8;\n }\n\n .resizer.resizing {\n border-right: 4px double var(--nile-colors-neutral-400);\n background-color: transparent;\n opacity: 1;\n }\n`;\n\nexport const resizableSlotStyles = css`\n /* Slot styles for resizable mode */\n :host([resizable]) ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n\n :host([resizable]) ::slotted(span),\n :host([resizable]) ::slotted(div),\n :host([resizable]) ::slotted(p) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n\nexport const tableLayoutStyles = css`\n /* Apply fixed table layout only when resizable columns are present */\n .nile__table__body[resizable] {\n table-layout: fixed;\n }\n`; \n"]}
@@ -1,30 +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
- /**
8
- * Error handler specifically for virtualizer DOM manipulation errors
9
- * Catches and ignores common virtualizer errors that occur during rapid updates
10
- */
11
- export declare class VirtualizerErrorHandler {
12
- private static isSetup;
13
- private static originalConsoleError;
14
- /**
15
- * Sets up global error handling for virtualizer errors
16
- * This should be called once during application initialization
17
- */
18
- static setup(): void;
19
- /**
20
- * Restores original error handling
21
- */
22
- static teardown(): void;
23
- /**
24
- * Checks if an error is a virtualizer DOM manipulation error that should be ignored
25
- */
26
- static isVirtualizerError(error: any): boolean;
27
- private static setupConsoleErrorHandler;
28
- private static setupUnhandledErrorHandler;
29
- private static setupUnhandledRejectionHandler;
30
- }
@@ -1,82 +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
- /**
8
- * Error handler specifically for virtualizer DOM manipulation errors
9
- * Catches and ignores common virtualizer errors that occur during rapid updates
10
- */
11
- export class VirtualizerErrorHandler {
12
- /**
13
- * Sets up global error handling for virtualizer errors
14
- * This should be called once during application initialization
15
- */
16
- static setup() {
17
- if (this.isSetup) {
18
- return;
19
- }
20
- this.originalConsoleError = console.error;
21
- this.setupConsoleErrorHandler();
22
- this.setupUnhandledErrorHandler();
23
- this.setupUnhandledRejectionHandler();
24
- this.isSetup = true;
25
- }
26
- /**
27
- * Restores original error handling
28
- */
29
- static teardown() {
30
- if (!this.isSetup) {
31
- return;
32
- }
33
- if (this.originalConsoleError) {
34
- console.error = this.originalConsoleError;
35
- }
36
- this.isSetup = false;
37
- }
38
- /**
39
- * Checks if an error is a virtualizer DOM manipulation error that should be ignored
40
- */
41
- static isVirtualizerError(error) {
42
- const errorMessage = error?.message || error?.toString() || '';
43
- return (errorMessage.includes('Cannot read properties of null (reading \'insertBefore\')') ||
44
- errorMessage.includes('directive-helpers.ts:132') ||
45
- errorMessage.includes('repeat.ts:416') ||
46
- errorMessage.includes('virtualize.ts:139') ||
47
- errorMessage.includes('Virtualizer.ts:816') ||
48
- errorMessage.includes('Virtualizer.ts:546') ||
49
- errorMessage.includes('Virtualizer.ts:617'));
50
- }
51
- static setupConsoleErrorHandler() {
52
- console.error = (...args) => {
53
- const errorMessage = args[0]?.toString() || '';
54
- if (this.isVirtualizerError(errorMessage)) {
55
- console.warn('Virtualizer DOM error caught and ignored:', ...args);
56
- return;
57
- }
58
- // For all other errors, use the original console.error
59
- this.originalConsoleError.apply(console, args);
60
- };
61
- }
62
- static setupUnhandledErrorHandler() {
63
- window.addEventListener('error', (event) => {
64
- if (this.isVirtualizerError(event.error)) {
65
- console.warn('Unhandled virtualizer error caught and ignored:', event.error);
66
- event.preventDefault();
67
- return false;
68
- }
69
- });
70
- }
71
- static setupUnhandledRejectionHandler() {
72
- window.addEventListener('unhandledrejection', (event) => {
73
- if (this.isVirtualizerError(event.reason)) {
74
- console.warn('Unhandled virtualizer promise rejection caught and ignored:', event.reason);
75
- event.preventDefault();
76
- return false;
77
- }
78
- });
79
- }
80
- }
81
- VirtualizerErrorHandler.isSetup = false;
82
- //# sourceMappingURL=virtualizer-error-handler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtualizer-error-handler.js","sourceRoot":"","sources":["../../../src/internal/virtualizer-error-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IAIlC;;;OAGG;IACH,MAAM,CAAC,KAAK;QACV,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;QAC1C,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChC,IAAI,CAAC,0BAA0B,EAAE,CAAC;QAClC,IAAI,CAAC,8BAA8B,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CA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AAM,CAAC,0BAA0B;QACvC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACzC,IAAI,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzC,OAAO,CAAC,IAAI,CAAC,iDAAiD,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC7E,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,8BAA8B;QAC3C,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,KAAK,EAAE,EAAE;YACtD,IAAI,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1C,OAAO,CAAC,IAAI,CAAC,6DAA6D,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAC1F,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAjFc,+BAAO,GAAG,KAAK,CAAC","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\n/**\n * Error handler specifically for virtualizer DOM manipulation errors\n * Catches and ignores common virtualizer errors that occur during rapid updates\n */\nexport class VirtualizerErrorHandler {\n private static isSetup = false;\n private static originalConsoleError: typeof console.error;\n\n /**\n * Sets up global error handling for virtualizer errors\n * This should be called once during application initialization\n */\n static setup(): void {\n if (this.isSetup) {\n return;\n }\n\n this.originalConsoleError = console.error;\n this.setupConsoleErrorHandler();\n this.setupUnhandledErrorHandler();\n this.setupUnhandledRejectionHandler();\n this.isSetup = true;\n }\n\n /**\n * Restores original error handling\n */\n static teardown(): void {\n if (!this.isSetup) {\n return;\n }\n\n if (this.originalConsoleError) {\n console.error = this.originalConsoleError;\n }\n this.isSetup = false;\n }\n\n /**\n * Checks if an error is a virtualizer DOM manipulation error that should be ignored\n */\n static isVirtualizerError(error: any): boolean {\n const errorMessage = error?.message || error?.toString() || '';\n return (\n errorMessage.includes('Cannot read properties of null (reading \\'insertBefore\\')') ||\n errorMessage.includes('directive-helpers.ts:132') ||\n errorMessage.includes('repeat.ts:416') ||\n errorMessage.includes('virtualize.ts:139') ||\n errorMessage.includes('Virtualizer.ts:816') ||\n errorMessage.includes('Virtualizer.ts:546') ||\n errorMessage.includes('Virtualizer.ts:617')\n );\n }\n\n private static setupConsoleErrorHandler(): void {\n console.error = (...args: any[]) => {\n const errorMessage = args[0]?.toString() || '';\n \n if (this.isVirtualizerError(errorMessage)) {\n console.warn('Virtualizer DOM error caught and ignored:', ...args);\n return;\n }\n \n // For all other errors, use the original console.error\n this.originalConsoleError.apply(console, args);\n };\n }\n\n private static setupUnhandledErrorHandler(): void {\n window.addEventListener('error', (event) => {\n if (this.isVirtualizerError(event.error)) {\n console.warn('Unhandled virtualizer error caught and ignored:', event.error);\n event.preventDefault();\n return false;\n }\n });\n }\n\n private static setupUnhandledRejectionHandler(): void {\n window.addEventListener('unhandledrejection', (event) => {\n if (this.isVirtualizerError(event.reason)) {\n console.warn('Unhandled virtualizer promise rejection caught and ignored:', event.reason);\n event.preventDefault();\n return false;\n }\n });\n }\n}\n"]}
@@ -1,7 +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
- export { virtualize, createVirtualizer, type VirtualizeOptions } from './virtualize.js';
@@ -1,8 +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
- export { virtualize, createVirtualizer } from './virtualize.js';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAA0B,MAAM,iBAAiB,CAAC","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\nexport { virtualize, createVirtualizer, type VirtualizeOptions } from './virtualize.js';\n"]}
@@ -1,32 +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 TemplateResult } from 'lit';
8
- export interface VirtualizeOptions {
9
- items: any[];
10
- renderItem: (item: any, index: number) => TemplateResult;
11
- scroller?: boolean;
12
- itemHeight?: number;
13
- containerHeight?: number;
14
- overscan?: number;
15
- }
16
- /**
17
- * Custom virtualize function that mimics the @lit-labs/virtualizer API
18
- * but uses our own implementation for better control and customization
19
- */
20
- export declare function virtualize(options: VirtualizeOptions): TemplateResult;
21
- /**
22
- * Enhanced virtualize function with better performance and scroll handling
23
- */
24
- export declare function createVirtualizer(options: VirtualizeOptions): {
25
- handleScroll: (e: Event) => void;
26
- getVisibleRange: () => {
27
- start: number;
28
- end: number;
29
- };
30
- getTotalHeight: () => number;
31
- scrollToItem: (index: number, container: HTMLElement) => void;
32
- };
@@ -1,105 +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 { html } from 'lit';
8
- /**
9
- * Custom virtualize function that mimics the @lit-labs/virtualizer API
10
- * but uses our own implementation for better control and customization
11
- */
12
- export function virtualize(options) {
13
- const { items = [], renderItem, scroller = true, itemHeight = 40, containerHeight = 300, overscan = 5 } = options;
14
- // If no items, return empty template
15
- if (!items.length) {
16
- return html ``;
17
- }
18
- // For small datasets, render all items without virtualization
19
- if (items.length < 10) {
20
- return html `
21
- ${items.map((item, index) => renderItem(item, index))}
22
- `;
23
- }
24
- // Create a unique ID for this virtualizer instance
25
- const virtualizerId = `virtualizer-${Math.random().toString(36).substr(2, 9)}`;
26
- return html `
27
- <div
28
- id="${virtualizerId}"
29
- class="custom-virtualizer"
30
- style="
31
- height: ${containerHeight}px;
32
- overflow-y: auto;
33
- position: relative;
34
- contain: layout style paint;
35
- "
36
- @scroll=${(e) => {
37
- const container = e.target;
38
- const scrollTop = container.scrollTop;
39
- // Calculate visible range
40
- const start = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);
41
- const end = Math.min(start + Math.ceil(containerHeight / itemHeight) + (overscan * 2), items.length);
42
- // Update the virtualized content
43
- updateVirtualizedContent(container, items, renderItem, start, end, itemHeight);
44
- }}
45
- >
46
- ${(() => {
47
- // Initial render - show first visible items
48
- const start = 0;
49
- const end = Math.min(Math.ceil(containerHeight / itemHeight) + (overscan * 2), items.length);
50
- return html `
51
- ${updateVirtualizedContent(null, items, renderItem, start, end, itemHeight)}
52
- `;
53
- })()}
54
- </div>
55
- `;
56
- }
57
- /**
58
- * Update the virtualized content based on scroll position
59
- */
60
- function updateVirtualizedContent(container, items, renderItem, start, end, itemHeight) {
61
- const visibleItems = items.slice(start, end);
62
- const spacerBefore = start * itemHeight;
63
- const spacerAfter = (items.length - end) * itemHeight;
64
- return html `
65
- ${spacerBefore > 0 ? html `<div style="height: ${spacerBefore}px; flex-shrink: 0;"></div>` : ''}
66
- ${visibleItems.map((item, index) => html `<div style="height: ${itemHeight}px; flex-shrink: 0;">${renderItem(item, start + index)}</div>`)}
67
- ${spacerAfter > 0 ? html `<div style="height: ${spacerAfter}px; flex-shrink: 0;"></div>` : ''}
68
- `;
69
- }
70
- /**
71
- * Enhanced virtualize function with better performance and scroll handling
72
- */
73
- export function createVirtualizer(options) {
74
- const { items = [], renderItem, scroller = true, itemHeight = 40, containerHeight = 300, overscan = 5 } = options;
75
- let scrollTop = 0;
76
- let isScrolling = false;
77
- let scrollTimeout;
78
- const handleScroll = (e) => {
79
- const container = e.target;
80
- scrollTop = container.scrollTop;
81
- isScrolling = true;
82
- // Debounce scroll end detection
83
- if (scrollTimeout) {
84
- clearTimeout(scrollTimeout);
85
- }
86
- scrollTimeout = setTimeout(() => {
87
- isScrolling = false;
88
- }, 150);
89
- };
90
- return {
91
- handleScroll,
92
- getVisibleRange: () => {
93
- const start = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);
94
- const end = Math.min(start + Math.ceil(containerHeight / itemHeight) + (overscan * 2), items.length);
95
- return { start, end };
96
- },
97
- getTotalHeight: () => items.length * itemHeight,
98
- scrollToItem: (index, container) => {
99
- const scrollPosition = index * itemHeight;
100
- container.scrollTop = scrollPosition;
101
- scrollTop = scrollPosition;
102
- }
103
- };
104
- }
105
- //# sourceMappingURL=virtualize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtualize.js","sourceRoot":"","sources":["../../../src/lib/virtualize.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAA+B,MAAM,KAAK,CAAC;AAWxD;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,OAA0B;IACnD,MAAM,EACJ,KAAK,GAAG,EAAE,EACV,UAAU,EACV,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,EAAE,EACf,eAAe,GAAG,GAAG,EACrB,QAAQ,GAAG,CAAC,EACb,GAAG,OAAO,CAAC;IAEZ,qCAAqC;IACrC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,IAAI,CAAA,EAAE,CAAC;IAChB,CAAC;IAED,8DAA8D;IAC9D,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACtB,OAAO,IAAI,CAAA;QACP,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC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AI,CAAC;QAEnB,gCAAgC;QAChC,IAAI,aAAa,EAAE,CAAC;YAClB,YAAY,CAAC,aAAa,CAAC,CAAC;QAC9B,CAAC;QAED,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,WAAW,GAAG,KAAK,CAAC;QACtB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,eAAe,EAAE,GAAG,EAAE;YACpB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,UAAU,CAAC,GAAG,QAAQ,CAAC,CAAC;YACzE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAClB,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,EAChE,KAAK,CAAC,MAAM,CACb,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,cAAc,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,UAAU;QAC/C,YAAY,EAAE,CAAC,KAAa,EAAE,SAAsB,EAAE,EAAE;YACtD,MAAM,cAAc,GAAG,KAAK,GAAG,UAAU,CAAC;YAC1C,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC;YACrC,SAAS,GAAG,cAAc,CAAC;QAC7B,CAAC;KACF,CAAC;AACJ,CAAC","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 { html, type TemplateResult, render } from 'lit';\n\nexport interface VirtualizeOptions {\n items: any[];\n renderItem: (item: any, index: number) => TemplateResult;\n scroller?: boolean;\n itemHeight?: number;\n containerHeight?: number;\n overscan?: number;\n}\n\n/**\n * Custom virtualize function that mimics the @lit-labs/virtualizer API\n * but uses our own implementation for better control and customization\n */\nexport function virtualize(options: VirtualizeOptions): TemplateResult {\n const {\n items = [],\n renderItem,\n scroller = true,\n itemHeight = 40,\n containerHeight = 300,\n overscan = 5\n } = options;\n\n // If no items, return empty template\n if (!items.length) {\n return html``;\n }\n\n // For small datasets, render all items without virtualization\n if (items.length < 10) {\n return html`\n ${items.map((item, index) => renderItem(item, index))}\n `;\n }\n\n // Create a unique ID for this virtualizer instance\n const virtualizerId = `virtualizer-${Math.random().toString(36).substr(2, 9)}`;\n \n return html`\n <div \n id=\"${virtualizerId}\"\n class=\"custom-virtualizer\"\n style=\"\n height: ${containerHeight}px; \n overflow-y: auto; \n position: relative;\n contain: layout style paint;\n \"\n @scroll=${(e: Event) => {\n const container = e.target as HTMLElement;\n const scrollTop = container.scrollTop;\n \n // Calculate visible range\n const start = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);\n const end = Math.min(\n start + Math.ceil(containerHeight / itemHeight) + (overscan * 2),\n items.length\n );\n \n // Update the virtualized content\n updateVirtualizedContent(container, items, renderItem, start, end, itemHeight);\n }}\n >\n ${(() => {\n // Initial render - show first visible items\n const start = 0;\n const end = Math.min(\n Math.ceil(containerHeight / itemHeight) + (overscan * 2),\n items.length\n );\n \n return html`\n ${updateVirtualizedContent(null, items, renderItem, start, end, itemHeight)}\n `;\n })()}\n </div>\n `;\n}\n\n/**\n * Update the virtualized content based on scroll position\n */\nfunction updateVirtualizedContent(\n container: HTMLElement | null,\n items: any[],\n renderItem: (item: any, index: number) => TemplateResult,\n start: number,\n end: number,\n itemHeight: number\n): TemplateResult {\n const visibleItems = items.slice(start, end);\n const spacerBefore = start * itemHeight;\n const spacerAfter = (items.length - end) * itemHeight;\n \n return html`\n ${spacerBefore > 0 ? html`<div style=\"height: ${spacerBefore}px; flex-shrink: 0;\"></div>` : ''}\n ${visibleItems.map((item, index) => \n html`<div style=\"height: ${itemHeight}px; flex-shrink: 0;\">${renderItem(item, start + index)}</div>`\n )}\n ${spacerAfter > 0 ? html`<div style=\"height: ${spacerAfter}px; flex-shrink: 0;\"></div>` : ''}\n `;\n}\n\n/**\n * Enhanced virtualize function with better performance and scroll handling\n */\nexport function createVirtualizer(options: VirtualizeOptions) {\n const {\n items = [],\n renderItem,\n scroller = true,\n itemHeight = 40,\n containerHeight = 300,\n overscan = 5\n } = options;\n\n let scrollTop = 0;\n let isScrolling = false;\n let scrollTimeout: ReturnType<typeof setTimeout> | undefined;\n\n const handleScroll = (e: Event) => {\n const container = e.target as HTMLElement;\n scrollTop = container.scrollTop;\n isScrolling = true;\n\n // Debounce scroll end detection\n if (scrollTimeout) {\n clearTimeout(scrollTimeout);\n }\n \n scrollTimeout = setTimeout(() => {\n isScrolling = false;\n }, 150);\n };\n\n return {\n handleScroll,\n getVisibleRange: () => {\n const start = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);\n const end = Math.min(\n start + Math.ceil(containerHeight / itemHeight) + (overscan * 2),\n items.length\n );\n return { start, end };\n },\n getTotalHeight: () => items.length * itemHeight,\n scrollToItem: (index: number, container: HTMLElement) => {\n const scrollPosition = index * itemHeight;\n container.scrollTop = scrollPosition;\n scrollTop = scrollPosition;\n }\n };\n}\n"]}
@@ -1,7 +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
- export {};