@aquera/nile-elements 1.4.4-beta-1.1 → 1.4.4-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 (491) hide show
  1. package/demo/index.html +31 -65
  2. package/dist/axe.min-140df6c2.cjs.js +2 -0
  3. package/dist/axe.min-140df6c2.cjs.js.map +1 -0
  4. package/dist/axe.min-591c52c3.esm.js +1 -0
  5. package/dist/{fixture-54600b35.cjs.js → fixture-1c49c014.cjs.js} +2 -2
  6. package/dist/{fixture-73855806.cjs.js.map → fixture-1c49c014.cjs.js.map} +1 -1
  7. package/dist/{fixture-9871e8a9.esm.js → fixture-985bba12.esm.js} +1 -1
  8. package/dist/{fixture-73855806.cjs.js → fixture-dff65c89.cjs.js} +2 -2
  9. package/dist/{fixture-54600b35.cjs.js.map → fixture-dff65c89.cjs.js.map} +1 -1
  10. package/dist/{fixture-cf7bfcf5.esm.js → fixture-eddab1c0.esm.js} +2 -2
  11. package/dist/{fixture-5b79f853.cjs.js → fixture-f575d0df.cjs.js} +4 -4
  12. package/dist/fixture-f575d0df.cjs.js.map +1 -0
  13. package/dist/floating-ui.dom-70d5643f.esm.js +1 -0
  14. package/dist/floating-ui.dom-f19772dc.cjs.js +2 -0
  15. package/dist/floating-ui.dom-f19772dc.cjs.js.map +1 -0
  16. package/dist/flow-3e83b6f4.esm.js +17 -0
  17. package/dist/flow-ca47f938.cjs.js +14 -0
  18. package/dist/flow-ca47f938.cjs.js.map +1 -0
  19. package/dist/index.js +5 -3
  20. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  21. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +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.esm.js +1 -1
  34. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  35. package/dist/nile-card/nile-card.test.esm.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  38. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  39. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  40. package/dist/nile-chip/nile-chip.esm.js +11 -9
  41. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  42. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  43. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  44. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  45. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  47. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  48. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  49. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  50. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  51. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  52. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  53. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  54. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  55. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  56. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  57. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  58. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  59. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  60. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  61. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  62. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  63. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  64. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  65. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  66. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  67. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  68. package/dist/nile-input/nile-input.test.esm.js +1 -1
  69. package/dist/nile-light-tooltip/index.cjs.js +2 -0
  70. package/dist/nile-light-tooltip/index.esm.js +1 -0
  71. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js +2 -0
  72. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js.map +1 -0
  73. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js +2 -0
  74. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js.map +1 -0
  75. package/dist/nile-light-tooltip/nile-light-tooltip.css.esm.js +5 -0
  76. package/dist/nile-light-tooltip/nile-light-tooltip.esm.js +1 -0
  77. package/dist/nile-light-tooltip/utils.cjs.js +2 -0
  78. package/dist/nile-light-tooltip/utils.cjs.js.map +1 -0
  79. package/dist/nile-light-tooltip/utils.esm.js +1 -0
  80. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  81. package/dist/nile-link/nile-link.test.esm.js +1 -1
  82. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  83. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  84. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  85. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  86. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  87. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  88. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  89. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  90. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  91. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  92. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  93. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  94. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  95. package/dist/nile-select/nile-select.test.esm.js +1 -1
  96. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  97. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  98. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  99. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  100. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  101. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  102. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  103. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  104. package/dist/scopedElementsWrapper-067597d2.cjs.js +6 -0
  105. package/dist/scopedElementsWrapper-067597d2.cjs.js.map +1 -0
  106. package/dist/scopedElementsWrapper-4374e962.esm.js +7 -0
  107. package/dist/sinon-esm-283dcc9b.cjs.js +2 -0
  108. package/dist/sinon-esm-283dcc9b.cjs.js.map +1 -0
  109. package/dist/sinon-esm-abe9b0ec.esm.js +1 -0
  110. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +45 -0
  111. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +47 -0
  112. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  113. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +31 -0
  114. package/dist/src/internal/accessibility/a11y.property.enum.js +33 -0
  115. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  116. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +41 -0
  117. package/dist/src/internal/accessibility/a11y.role.enum.js +43 -0
  118. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  119. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +16 -0
  120. package/dist/src/internal/accessibility/a11y.state.enum.js +18 -0
  121. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  122. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  123. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  124. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  125. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  126. package/dist/src/internal/accessibility/role.enum.js +5 -0
  127. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  128. package/dist/src/nile-chip/nile-chip.d.ts +3 -0
  129. package/dist/src/nile-chip/nile-chip.js +19 -0
  130. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  131. package/dist/src/nile-css-tooltip/index.d.ts +1 -0
  132. package/dist/src/nile-css-tooltip/index.js +2 -0
  133. package/dist/src/nile-css-tooltip/index.js.map +1 -0
  134. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.d.ts +12 -0
  135. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js +76 -0
  136. package/dist/src/nile-css-tooltip/nile-css-tooltip.css.js.map +1 -0
  137. package/dist/src/nile-css-tooltip/nile-css-tooltip.d.ts +12 -0
  138. package/dist/src/nile-css-tooltip/nile-css-tooltip.js +31 -0
  139. package/dist/src/nile-css-tooltip/nile-css-tooltip.js.map +1 -0
  140. package/dist/src/nile-light-tooltip/index.d.ts +1 -0
  141. package/dist/src/nile-light-tooltip/index.js +2 -0
  142. package/dist/src/nile-light-tooltip/index.js.map +1 -0
  143. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.d.ts +12 -0
  144. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js +17 -0
  145. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js.map +1 -0
  146. package/dist/src/nile-light-tooltip/nile-light-tooltip.d.ts +79 -0
  147. package/dist/src/nile-light-tooltip/nile-light-tooltip.js +350 -0
  148. package/dist/src/nile-light-tooltip/nile-light-tooltip.js.map +1 -0
  149. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.d.ts +12 -0
  150. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js +17 -0
  151. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js.map +1 -0
  152. package/dist/src/nile-light-tooltip/nile-lite-tooltip.d.ts +79 -0
  153. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js +350 -0
  154. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js.map +1 -0
  155. package/dist/src/nile-light-tooltip/utils.d.ts +2 -0
  156. package/dist/src/nile-light-tooltip/utils.js +29 -0
  157. package/dist/src/nile-light-tooltip/utils.js.map +1 -0
  158. package/dist/src/version.js +1 -1
  159. package/dist/src/version.js.map +1 -1
  160. package/dist/tsconfig.tsbuildinfo +1 -1
  161. package/dist/virtualize-73f68d08.esm.js +22 -0
  162. package/dist/virtualize-eb33a9a0.cjs.js +18 -0
  163. package/dist/virtualize-eb33a9a0.cjs.js.map +1 -0
  164. package/package.json +1 -1
  165. package/src/nile-chip/nile-chip.ts +30 -1
  166. package/vscode-html-custom-data.json +1 -1
  167. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  168. package/dist/fixture-90b199c4.esm.js +0 -569
  169. package/dist/fixture-c1d78368.cjs.js +0 -395
  170. package/dist/fixture-c1d78368.cjs.js.map +0 -1
  171. package/dist/fixture-dbd66009.cjs.js +0 -395
  172. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  173. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  174. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  175. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  176. package/dist/nile-grid-body/index.cjs.js +0 -2
  177. package/dist/nile-grid-body/index.esm.js +0 -1
  178. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  179. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  180. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
  181. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  182. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -10
  183. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  184. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  185. package/dist/nile-grid-cell-item/index.cjs.js.map +0 -1
  186. package/dist/nile-grid-cell-item/index.esm.js +0 -1
  187. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +0 -2
  188. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  189. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  190. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  191. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  192. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  193. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +0 -2
  194. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  195. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +0 -1
  196. package/dist/nile-grid-head/index.cjs.js +0 -2
  197. package/dist/nile-grid-head/index.cjs.js.map +0 -1
  198. package/dist/nile-grid-head/index.esm.js +0 -1
  199. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  200. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  201. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +0 -2
  202. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  203. package/dist/nile-grid-head/nile-grid-head.css.esm.js +0 -7
  204. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  205. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  206. package/dist/nile-grid-head-item/index.cjs.js.map +0 -1
  207. package/dist/nile-grid-head-item/index.esm.js +0 -1
  208. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  209. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  210. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  211. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  212. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  213. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  214. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  215. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  216. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  217. package/dist/nile-grid-row/index.cjs.js +0 -2
  218. package/dist/nile-grid-row/index.cjs.js.map +0 -1
  219. package/dist/nile-grid-row/index.esm.js +0 -1
  220. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  221. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  222. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  223. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  224. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  225. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  226. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  227. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  228. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  229. package/dist/nile-sidebar/index.cjs.js +0 -2
  230. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  231. package/dist/nile-sidebar/index.esm.js +0 -75
  232. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  233. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  234. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  235. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  236. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  237. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  238. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  239. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  240. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  241. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  242. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  243. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  244. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  245. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  246. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  247. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  248. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  249. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  250. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  251. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  252. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  253. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  254. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  255. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  256. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  257. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  258. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  259. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  260. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  261. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  262. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  263. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  264. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  265. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  266. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  267. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  268. package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
  269. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
  270. package/dist/src/internal/portal-manager.d.ts +0 -53
  271. package/dist/src/internal/portal-manager.js +0 -196
  272. package/dist/src/internal/portal-manager.js.map +0 -1
  273. package/dist/src/internal/portal.d.ts +0 -60
  274. package/dist/src/internal/portal.js +0 -199
  275. package/dist/src/internal/portal.js.map +0 -1
  276. package/dist/src/internal/resizable-helper.d.ts +0 -59
  277. package/dist/src/internal/resizable-helper.js +0 -115
  278. package/dist/src/internal/resizable-helper.js.map +0 -1
  279. package/dist/src/internal/resizable-styles.d.ts +0 -16
  280. package/dist/src/internal/resizable-styles.js +0 -144
  281. package/dist/src/internal/resizable-styles.js.map +0 -1
  282. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  283. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  284. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  285. package/dist/src/lib/index.d.ts +0 -7
  286. package/dist/src/lib/index.js +0 -8
  287. package/dist/src/lib/index.js.map +0 -1
  288. package/dist/src/lib/virtualize.d.ts +0 -32
  289. package/dist/src/lib/virtualize.js +0 -105
  290. package/dist/src/lib/virtualize.js.map +0 -1
  291. package/dist/src/lib/virtualize.test.d.ts +0 -7
  292. package/dist/src/lib/virtualize.test.js +0 -57
  293. package/dist/src/lib/virtualize.test.js.map +0 -1
  294. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  295. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  296. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  297. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  298. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  299. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  300. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  301. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  302. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  303. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  304. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  305. package/dist/src/nile-code-editor/theme copy.js +0 -193
  306. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  307. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  308. package/dist/src/nile-grid/data-processor.js +0 -122
  309. package/dist/src/nile-grid/data-processor.js.map +0 -1
  310. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  311. package/dist/src/nile-grid/event-handlers.js +0 -158
  312. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  313. package/dist/src/nile-grid/renderer.d.ts +0 -8
  314. package/dist/src/nile-grid/renderer.js +0 -78
  315. package/dist/src/nile-grid/renderer.js.map +0 -1
  316. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  317. package/dist/src/nile-grid/resize-handler.js +0 -36
  318. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  319. package/dist/src/nile-grid/types.d.ts +0 -32
  320. package/dist/src/nile-grid/types.js +0 -2
  321. package/dist/src/nile-grid/types.js.map +0 -1
  322. package/dist/src/nile-grid/utils.d.ts +0 -4
  323. package/dist/src/nile-grid/utils.js +0 -32
  324. package/dist/src/nile-grid/utils.js.map +0 -1
  325. package/dist/src/nile-grid-body/index.d.ts +0 -1
  326. package/dist/src/nile-grid-body/index.js +0 -2
  327. package/dist/src/nile-grid-body/index.js.map +0 -1
  328. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +0 -12
  329. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -22
  330. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  331. package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -29
  332. package/dist/src/nile-grid-body/nile-grid-body.js +0 -43
  333. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  334. package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
  335. package/dist/src/nile-grid-cell-item/index.js +0 -2
  336. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  337. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
  338. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  339. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  340. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
  341. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
  342. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  343. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
  344. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
  345. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  346. package/dist/src/nile-grid-head/index.d.ts +0 -1
  347. package/dist/src/nile-grid-head/index.js +0 -2
  348. package/dist/src/nile-grid-head/index.js.map +0 -1
  349. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
  350. package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
  351. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  352. package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
  353. package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
  354. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  355. package/dist/src/nile-grid-head-item/index.d.ts +0 -1
  356. package/dist/src/nile-grid-head-item/index.js +0 -2
  357. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  358. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
  359. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
  360. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  361. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
  362. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
  363. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  364. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  365. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
  366. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  367. package/dist/src/nile-grid-row/index.d.ts +0 -1
  368. package/dist/src/nile-grid-row/index.js +0 -2
  369. package/dist/src/nile-grid-row/index.js.map +0 -1
  370. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
  371. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  372. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  373. package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -29
  374. package/dist/src/nile-grid-row/nile-grid-row.js +0 -45
  375. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  376. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  377. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  378. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  379. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  380. package/dist/src/nile-menu/portal-manager.js +0 -340
  381. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  382. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  383. package/dist/src/nile-menu/portal-utils.js +0 -128
  384. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  385. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  386. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  387. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  388. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  389. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  390. package/dist/src/nile-portal-wrapper/index.js +0 -2
  391. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  392. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  393. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  394. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  395. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  396. package/dist/src/nile-rich-text-editor/utils.js +0 -538
  397. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  398. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  399. package/dist/src/nile-select/body-append-manager.js +0 -298
  400. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  401. package/dist/src/nile-sidebar/index.d.ts +0 -28
  402. package/dist/src/nile-sidebar/index.js +0 -116
  403. package/dist/src/nile-sidebar/index.js.map +0 -1
  404. package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
  405. package/dist/src/nile-sidebar-menu/index.js +0 -2
  406. package/dist/src/nile-sidebar-menu/index.js.map +0 -1
  407. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
  408. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
  409. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
  410. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
  411. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
  412. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
  413. package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
  414. package/dist/src/nile-sidebar-menu-items/index.js +0 -2
  415. package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
  416. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
  417. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
  418. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
  419. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
  420. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
  421. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
  422. package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
  423. package/dist/src/nile-sidebar-wrapper/index.js +0 -2
  424. package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
  425. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
  426. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
  427. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
  428. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
  429. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
  430. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
  431. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  432. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  433. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  434. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  435. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  436. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  437. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  438. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  439. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  440. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  441. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  442. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  443. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  444. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  445. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  446. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  447. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  448. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  449. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  450. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  451. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  452. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  453. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  454. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  455. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  456. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  457. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  458. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  459. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  460. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  461. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  462. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  463. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  464. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  465. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  466. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  467. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  468. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  469. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  470. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  471. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  472. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  473. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  474. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  475. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  476. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  477. package/dist/src/nile-virtual-table-body/index.js +0 -3
  478. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  479. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  480. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  481. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  482. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  483. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  484. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  485. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  486. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  487. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  488. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  489. package/dist/src/utilities/stepper-utils.js +0 -108
  490. package/dist/src/utilities/stepper-utils.js.map +0 -1
  491. /package/dist/{nile-grid-body → nile-light-tooltip}/index.cjs.js.map +0 -0
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=backup_nile-code-editor copy.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"backup_nile-code-editor copy.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- System.register(["./nile-grid-body.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-body.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridBodyCjsJs){_export("NileGridBody",_nileGridBodyCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridBodyCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- export{N as NileGridBody}from"./nile-grid-body.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-body.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-body.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,r,s,e,o,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.customElement;},function(_nileGridBodyCssCjsJs){e=_nileGridBodyCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",i=/*#__PURE__*/function(_o){function i(){_classCallCheck(this,i);return _callSuper(this,i,arguments);}_inherits(i,_o);return _createClass(i,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(i,"connectedCallback",this,3)([]),this.setAttribute("role","rowgroup");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[e];}}]);}(o));_export("N",i=t([s("nile-grid-body")],i));}};});
2
- //# sourceMappingURL=nile-grid-body.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-body.cjs.js","sources":["../../../src/nile-grid-body/nile-grid-body.ts"],"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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-grid-body.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile grid-body component.\n *\n * @tag nile-grid-body\n *\n */\n@customElement('nile-grid-body')\nexport class NileGridBody extends NileElement {\n /**\n * The styles for nile-grid-body\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'rowgroup');\n }\n\n public render(): TemplateResult {\n return html`\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-body': NileGridBody;\n }\n}\n"],"names":["NileGridBody","_o","i","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","connectedCallback","super","this","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"inHAmBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,qBAAAC,KAAA,CASL,SAAAC,iBAAAA,CAAAA,CAAAA,CACEC,aAAAA,CAAAA,CAAAA,iCACAC,IAAAA,CAAKC,YAAa,CAAA,MAAA,CAAQ,UAC3B,CAAA,EAEM,GAAAL,GAAA,UAAAC,KAAA,UAAAK,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,8FAKZ,CAAA,KAAAT,GAAA,UAAAU,GAAA,CAfM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAED,MATgCC,IAArBpB,OAAAA,KAAAA,CAAYqB,CAAAA,CAAAA,CAAA,CADxBC,CAAAA,CAAc,mBACFtB"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: grid;\n overflow-y: auto;\n overflow-x: visible;\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n height: 100%;\n }\n"]))));}};});
2
- //# sourceMappingURL=nile-grid-body.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-body.css.cjs.js","sources":["../../../src/nile-grid-body/nile-grid-body.css.ts"],"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 { css } from 'lit';\n\n/**\n * GridBody CSS\n */\nexport const styles = css`\n :host {\n display: grid;\n overflow-y: auto;\n overflow-x: visible;\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n height: 100%;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,10 +0,0 @@
1
- import{css as o}from"lit";const r=o`
2
- :host {
3
- display: grid;
4
- overflow-y: auto;
5
- overflow-x: visible;
6
- box-sizing: border-box;
7
- background-color: var(--nile-colors-white-base);
8
- height: 100%;
9
- }
10
- `;export{r as s};
@@ -1,5 +0,0 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-body.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","rowgroup")}render(){return e`
2
- <div style="display: contents;">
3
- <slot></slot>
4
- </div>
5
- `}};i=t([r("nile-grid-body")],i);export{i as N};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-grid-cell-item.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridCellItemCjsJs){_export("NileGridCellItem",_nileGridCellItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridCellItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridCellItemUtilsCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileGridCellItem}from"./nile-grid-cell-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-cell-item.css.esm.js";import"../internal/nile-element.esm.js";import"./nile-grid-cell-item.utils.esm.js";
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,r,s,l,o,n,a,_templateObject,_templateObject2,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){s=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;n=_nileGridCellItemUtilsCjsJs.c;a=_nileGridCellItemUtilsCjsJs.a;}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_l){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.textOverflowType="ellipsis",_this.onHandlePointerDown=function(t){var e=_assertThisInitialized(_this),i={value:0},r={value:0},s=o(e,t,i,r);if(!s)return;var l=s.target,_c=s.col,p=function p(t){return n(e,_c,r.value,i.value,t);},d=function d(){return a(e,t,l,p);};l.addEventListener("pointermove",p),l.addEventListener("pointerup",d,{once:!0}),l.addEventListener("pointercancel",d,{once:!0});};return _this;}_inherits(c,_l);return _createClass(c,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(c,"connectedCallback",this,3)([]),this.setAttribute("role","cell");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div style=\"display: contents;\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"true\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));t([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),t([i({type:String,reflect:!0,attribute:!0})],c.prototype,"align",void 0),t([i({type:String,reflect:!0,attribute:!0})],c.prototype,"valign",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"textOverflowType",void 0),_export("N",c=t([r("nile-grid-cell-item")],c));}};});
2
- //# sourceMappingURL=nile-grid-cell-item.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-cell-item.cjs.js","sources":["../../../src/nile-grid-cell-item/nile-grid-cell-item.ts"],"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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-cell-item.css';\nimport NileElement from '../internal/nile-element';\nimport {\n initCellResize,\n cellResizeMove,\n cellResizeDone,\n} from './nile-grid-cell-item.utils';\n\n/**\n * Nile grid-cell component.\n *\n * @tag nile-grid-cell-item\n *\n */\n@customElement('nile-grid-cell-item')\nexport class NileGridCellItem extends NileElement {\n /**\n * The styles for nile-grid-cell-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: String, reflect: true, attribute: true }) align?:\n | 'start'\n | 'center'\n | 'end';\n @property({ type: String, reflect: true, attribute: true }) valign?:\n | 'top'\n | 'middle'\n | 'bottom';\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: Boolean, reflect: true, attribute: true }) textOverflowType: 'ellipsis' | 'clip' = 'ellipsis';\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'cell');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initCellResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n\n const move = (e: PointerEvent) =>\n cellResizeMove(el, col, startWRef.value, downXRef.value, e);\n const done = () => cellResizeDone(el, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n public render(): TemplateResult {\n return html`\n <div style=\"display: contents;\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"true\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-cell-item': NileGridCellItem;\n }\n}\n"],"names":["NileGridCellItem","c","constructor","this","colspan","rowspan","resizable","textOverflowType","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initCellResize","target","move","col","e","cellResizeMove","done","cellResizeDone","addEventListener","once","_this","_inherits","_l","_createClass","key","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","Number","reflect","attribute","prototype","String","Boolean","customElement"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",i=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n height: auto;\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n border-right: 1px solid var(--nile-colors-neutral-400);\n position: relative;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: min-content;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n"]))));}};});
2
- //# sourceMappingURL=nile-grid-cell-item.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-cell-item.css.cjs.js","sources":["../../../src/nile-grid-cell-item/nile-grid-cell-item.css.ts"],"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 { css } from 'lit';\n\n/**\n * Grid Cell Item CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n height: auto;\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n border-right: 1px solid var(--nile-colors-neutral-400);\n position: relative;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: min-content;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,35 +0,0 @@
1
- import{css as o}from"lit";const i=o`
2
- :host {
3
- --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);
4
- box-sizing: border-box;
5
- min-width: 0;
6
- white-space: nowrap;
7
- width: 100%;
8
- overflow: hidden;
9
- text-overflow: ellipsis;
10
- padding: var(--padding);
11
- height: auto;
12
- border-bottom: 1px solid var(--nile-colors-neutral-400);
13
- border-right: 1px solid var(--nile-colors-neutral-400);
14
- position: relative;
15
- }
16
-
17
- ::slotted(*) {
18
- overflow: hidden;
19
- text-overflow: ellipsis;
20
- white-space: nowrap;
21
- width: min-content;
22
- }
23
-
24
- .resize-handle {
25
- position: absolute;
26
- top: 0;
27
- right: 0;
28
- height: 100%;
29
- cursor: col-resize;
30
- touch-action: none;
31
- z-index: 1;
32
- width: 2px;
33
- border-right: 1px solid var(--nile-colors-neutral-400);
34
- }
35
- `;export{i as s};
@@ -1,12 +0,0 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-cell-item.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{i as o,c as n,a}from"./nile-grid-cell-item.utils.esm.js";let c=class extends l{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.textOverflowType="ellipsis",this.onHandlePointerDown=e=>{const t=this,i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;const{target:l,col:c}=s,p=e=>n(t,c,r.value,i.value,e),d=()=>a(t,e,l,p);l.addEventListener("pointermove",p),l.addEventListener("pointerup",d,{once:!0}),l.addEventListener("pointercancel",d,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
2
- <div style="display: contents;">
3
- <slot></slot>
4
- ${this.resizable?t`
5
- <div
6
- aria-hidden="true"
7
- class="resize-handle"
8
- @pointerdown=${this.onHandlePointerDown}
9
- ></div>
10
- `:null}
11
- </div>
12
- `}};e([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),e([i({type:String,reflect:!0,attribute:!0})],c.prototype,"align",void 0),e([i({type:String,reflect:!0,attribute:!0})],c.prototype,"valign",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"textOverflowType",void 0),c=e([r("nile-grid-cell-item")],c);export{c as N};
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function e(e,t,n,o){t.preventDefault(),t.stopPropagation();var s=Number(e.dataset.cStart);if(!s)return null;var i=Number(e.getAttribute("colspan"))||1,c=Math.max(0,s+i-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;var l=t.currentTarget;return l.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:c,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:l,col:c};}function t(e,t,n,o,s){var i=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:t,widthPx:i},bubbles:!0,composed:!0}));}function n(e,t,n,o){n.releasePointerCapture(t.pointerId),n.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}));}_export({a:n,c:t,i:e});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=nile-grid-cell-item.utils.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-cell-item.utils.cjs.js","sources":["../../../src/nile-grid-cell-item/nile-grid-cell-item.utils.ts"],"sourcesContent":["export function initCellResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function cellResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function cellResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initCellResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","cellResizeMove","startW","downX","e","round","cellResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DAAM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,IAAKC,CAAAA,GAAAA,CAAI,CAAGP,CAAAA,CAAAA,CAASG,EAAO,CAAI,CAAA,CAAA,CAAA,CAE5CP,CAASY,CAAAA,KAAAA,CAAQb,CAAGc,CAAAA,OAAAA,CACpBZ,CAAUW,CAAAA,KAAAA,CAAQd,EAAGgB,qBAAwBC,CAAAA,CAAAA,CAAAA,KAAAA,CAE7C,GAAMC,CAAAA,CAAAA,CAASjB,CAAGkB,CAAAA,aAAAA,CAelB,MAdAD,CAAAA,CAAAA,CAAOE,kBAAkBnB,CAAGoB,CAAAA,SAAAA,CAAAA,CAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,aAAe,CAAA,CAC7BC,OAAQ,CAAEb,GAAAA,CAAAA,CAAAA,CAAKc,OAAStB,CAAAA,CAAAA,CAAUW,KAClCY,CAAAA,CAAAA,OAAAA,CAAAA,CAAS,CACTC,CAAAA,QAAAA,CAAAA,CAAU,KAId3B,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,mBAAqB,CAAA,CAAEG,OAAS,CAAA,CAAA,CAAA,CAAMC,UAAU,CAG3D,CAAA,CAAA,CAAA,CAAA,CAAET,MAAQP,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,CAAAA,CACnB,EAEM,QAAUiB,CAAAA,CACd5B,CAAAA,CAAAA,CACAW,EACAkB,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMN,CAAAA,CAAUb,CAAAA,IAAAA,CAAKC,GAAI,CAAA,EAAA,CAAID,KAAKoB,KAAMH,CAAAA,CAAAA,EAAUE,CAAEhB,CAAAA,OAAAA,CAAUe,CAC9D9B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAGsB,aACD,CAAA,GAAIC,CAAAA,YAAY,aAAe,CAAA,CAC7BC,MAAQ,CAAA,CAAEb,GAAKc,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CACfC,OAAS,CAAA,CAAA,CAAA,CACTC,UAAU,CAGhB,CAAA,CAAA,CAAA,EAEM,QAAUM,CAAAA,CAAAA,CACdjC,CACAC,CAAAA,CAAAA,CACAiB,CACAgB,CAAAA,CAAAA,CAAAA,CAEAhB,EAAOiB,qBAAsBlC,CAAAA,CAAAA,CAAGoB,SAChCH,CAAAA,CAAAA,CAAAA,CAAOkB,mBAAoB,CAAA,aAAA,CAAeF,CAC1ClC,CAAAA,CAAAA,CAAAA,CAAGsB,cACD,GAAIC,CAAAA,WAAAA,CAAY,iBAAmB,CAAA,CAAEG,SAAS,CAAMC,CAAAA,QAAAA,CAAAA,CAAU,CAElE,CAAA,CAAA,CAAA,EAAAU,OAAA,EAAAC,CAAA"}
@@ -1 +0,0 @@
1
- function e(e,t,n,o){t.preventDefault(),t.stopPropagation();const s=Number(e.dataset.cStart);if(!s)return null;const i=Number(e.getAttribute("colspan"))||1,c=Math.max(0,s+i-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;const l=t.currentTarget;return l.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:c,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:l,col:c}}function t(e,t,n,o,s){const i=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:t,widthPx:i},bubbles:!0,composed:!0}))}function n(e,t,n,o){n.releasePointerCapture(t.pointerId),n.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}))}export{n as a,t as c,e as i};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-grid-head.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadCjsJs){_export("NileGridHead",_nileGridHeadCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileGridHead}from"./nile-grid-head.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-head.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,s,e,r,i,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){s=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;},function(_nileGridHeadCssCjsJs){r=_nileGridHeadCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_i){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_i);return _createClass(o,[{key:"render",value:function render(){return s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[r];}}]);}(i));_export("N",o=t([e("nile-grid-head")],o));}};});
2
- //# sourceMappingURL=nile-grid-head.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-head.cjs.js","sources":["../../../src/nile-grid-head/nile-grid-head.ts"],"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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile grid-head component.\n *\n * @tag nile-grid-head\n *\n */\n@customElement('nile-grid-head')\nexport class NileGridHead extends NileElement {\n /**\n * The styles for nile-grid-head\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n public render(): TemplateResult {\n return html`\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHead;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head': NileGridHead;\n }\n}\n"],"names":["NileGridHead","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"omGAmBaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,CAaJ,SAAAC,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,8FAKZ,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAdM,SAAAA,IAAA,EACL,MAAO,CAACC,EACT,EAMM,MAbyBC,CAKzB,GALIR,OAAAA,KAAAA,CAAYS,CAAAA,CAAAA,CAAA,CADxBC,CAAAA,CAAc,mBACFV"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var t,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){t=_lit.css;}],execute:function execute(){_export("s",o=t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n"]))));}};});
2
- //# sourceMappingURL=nile-grid-head.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-head.css.cjs.js","sources":["../../../src/nile-grid-head/nile-grid-head.css.ts"],"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 { css } from 'lit';\n\n/**\n * GridHead CSS\n */\nexport const styles = css`\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,7 +0,0 @@
1
- import{css as t}from"lit";const o=t`
2
- :host([sticky]) {
3
- position: sticky;
4
- z-index: 2;
5
- top: 0;
6
- }
7
- `;export{o as s};
@@ -1,5 +0,0 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as s}from"lit/decorators.js";import{s as r}from"./nile-grid-head.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";let o=class extends i{static get styles(){return[r]}render(){return e`
2
- <div style="display: contents;">
3
- <slot></slot>
4
- </div>
5
- `}};o=t([s("nile-grid-head")],o);export{o as N};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-grid-head-item.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadItemCjsJs){_export("NileGridHeadItem",_nileGridHeadItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridHeadItemUtilsCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileGridHeadItem}from"./nile-grid-head-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head-item.css.esm.js";import"../internal/nile-element.esm.js";import"./nile-grid-head-item.utils.esm.js";
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";var e,t,r,i,s,o,l,a,n,_templateObject,_templateObject2,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileGridHeadItemCssCjsJs){s=_nileGridHeadItemCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_nileGridHeadItemUtilsCjsJs){l=_nileGridHeadItemUtilsCjsJs.i;a=_nileGridHeadItemUtilsCjsJs.h;n=_nileGridHeadItemUtilsCjsJs.a;}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_o){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.colspan=1,_this.rowspan=1,_this.scope="col",_this.resizable=!1,_this.sticky=!1,_this.onHandlePointerDown=function(e){var t=_assertThisInitialized(_this),r={value:0},i={value:0},s=l(t,e,r,i);if(!s)return;var o=s.target,_c=s.col,d=function d(e){return a(t,_c,i.value,r.value,e);},p=function p(){return n(t,e,o,d);};o.addEventListener("pointermove",d),o.addEventListener("pointerup",p,{once:!0}),o.addEventListener("pointercancel",p,{once:!0});};return _this;}_inherits(c,_o);return _createClass(c,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(c,"connectedCallback",this,3)([]),this.setAttribute("role","row"===this.scope?"rowheader":"columnheader");}},{key:"updated",value:function updated(e){e.has("scope")&&this.setAttribute("role","row"===this.scope?"rowheader":"columnheader");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(c,"disconnectedCallback",this,3)([]),this.removeAttribute("role");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div style=\"display: contents;\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(o));e([r({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),e([r({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),e([r({type:String,reflect:!0,attribute:!0})],c.prototype,"scope",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"sticky",void 0),_export("N",c=e([i("nile-grid-head-item")],c));}};});
2
- //# sourceMappingURL=nile-grid-head-item.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-head-item.cjs.js","sources":["../../../src/nile-grid-head-item/nile-grid-head-item.ts"],"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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n} from './nile-grid-head-item.utils';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: String, reflect: true, attribute: true }) scope:\n | 'col'\n | 'row' = 'col';\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: Boolean, reflect: true, attribute: true }) sticky = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute(\n 'role',\n this.scope === 'row' ? 'rowheader' : 'columnheader'\n );\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n\n const move = (e: PointerEvent) =>\n headResizeMove(el, col, startWRef.value, downXRef.value, e);\n\n const done = () => headResizeDone(el, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n protected updated(changed: Map<string, unknown>) {\n if (changed.has('scope')) {\n this.setAttribute(\n 'role',\n this.scope === 'row' ? 'rowheader' : 'columnheader'\n );\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeAttribute('role');\n }\n\n public render(): TemplateResult {\n return html`\n <div style=\"display: contents;\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHeadItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head-item': NileGridHeadItem;\n }\n}\n"],"names":["NileGridHeadItem","_o","c","this","colspan","rowspan","scope","resizable","sticky","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initHeadResize","target","col","move","e","headResizeMove","done","p","headResizeDone","addEventListener","once","_this","_inherits","_createClass","key","connectedCallback","super","setAttribute","updated","changed","has","disconnectedCallback","removeAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","Number","reflect","attribute","prototype","String","Boolean","customElement"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",e=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);\n position: relative;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n"]))));}};});
2
- //# sourceMappingURL=nile-grid-head-item.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-head-item.css.cjs.js","sources":["../../../src/nile-grid-head-item/nile-grid-head-item.css.ts"],"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 { css } from 'lit';\n\n/**\n * NileGridHeadItem CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);\n position: relative;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,34 +0,0 @@
1
- import{css as o}from"lit";const e=o`
2
- :host {
3
- --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);
4
- position: relative;
5
- box-sizing: border-box;
6
- user-select: none;
7
- white-space: nowrap;
8
- width: 100%;
9
- overflow: hidden;
10
- text-overflow: ellipsis;
11
- padding: var(--padding);
12
- background-color: var(--nile-colors-neutral-100);
13
- border-bottom: 1px solid var(--nile-colors-neutral-400);
14
- border-right: 1px solid var(--nile-colors-neutral-400);
15
- }
16
-
17
- ::slotted(*) {
18
- overflow: hidden;
19
- text-overflow: ellipsis;
20
- white-space: nowrap;
21
- }
22
-
23
- .resize-handle {
24
- position: absolute;
25
- top: 0;
26
- right: 0;
27
- height: 100%;
28
- cursor: col-resize;
29
- touch-action: none;
30
- z-index: 1;
31
- width: 2px;
32
- border-right: 1px solid var(--nile-colors-neutral-400);
33
- }
34
- `;export{e as s};
@@ -1,12 +0,0 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as r,customElement as i}from"lit/decorators.js";import{s}from"./nile-grid-head-item.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{i as l,h as a,a as n}from"./nile-grid-head-item.utils.esm.js";let c=class extends o{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.scope="col",this.resizable=!1,this.sticky=!1,this.onHandlePointerDown=e=>{const t=this,r={value:0},i={value:0},s=l(t,e,r,i);if(!s)return;const{target:o,col:c}=s,d=e=>a(t,c,i.value,r.value,e),p=()=>n(t,e,o,d);o.addEventListener("pointermove",d),o.addEventListener("pointerup",p,{once:!0}),o.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row"===this.scope?"rowheader":"columnheader")}updated(e){e.has("scope")&&this.setAttribute("role","row"===this.scope?"rowheader":"columnheader")}disconnectedCallback(){super.disconnectedCallback(),this.removeAttribute("role")}render(){return t`
2
- <div style="display: contents;">
3
- <slot></slot>
4
- ${this.resizable?t`
5
- <div
6
- aria-hidden="false"
7
- class="resize-handle"
8
- @pointerdown=${this.onHandlePointerDown}
9
- ></div>
10
- `:null}
11
- </div>
12
- `}};e([r({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),e([r({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),e([r({type:String,reflect:!0,attribute:!0})],c.prototype,"scope",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"sticky",void 0),c=e([i("nile-grid-head-item")],c);export{c as N};
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function e(e,t,n,o){t.preventDefault(),t.stopPropagation();var s=Number(e.dataset.cStart);if(!s)return null;var i=Number(e.getAttribute("colspan"))||1,l=Math.max(0,s+i-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;var u=t.currentTarget;return u.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:l,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:l};}function t(e,t,n,o,s){var i=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:t,widthPx:i},bubbles:!0,composed:!0}));}function n(e,t,n,o){n.releasePointerCapture(t.pointerId),n.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}));}_export({a:n,h:t,i:e});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=nile-grid-head-item.utils.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-head-item.utils.cjs.js","sources":["../../../src/nile-grid-head-item/nile-grid-head-item.utils.ts"],"sourcesContent":["export function initHeadResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function headResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function headResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initHeadResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","headResizeMove","startW","downX","e","round","headResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DAAM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,IAAKC,CAAAA,GAAAA,CAAI,CAAGP,CAAAA,CAAAA,CAASG,EAAO,CAAI,CAAA,CAAA,CAAA,CAE5CP,CAASY,CAAAA,KAAAA,CAAQb,CAAGc,CAAAA,OAAAA,CACpBZ,CAAUW,CAAAA,KAAAA,CAAQd,EAAGgB,qBAAwBC,CAAAA,CAAAA,CAAAA,KAAAA,CAE7C,GAAMC,CAAAA,CAAAA,CAASjB,CAAGkB,CAAAA,aAAAA,CAelB,MAdAD,CAAAA,CAAAA,CAAOE,kBAAkBnB,CAAGoB,CAAAA,SAAAA,CAAAA,CAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,aAAe,CAAA,CAC7BC,OAAQ,CAAEb,GAAAA,CAAAA,CAAAA,CAAKc,OAAStB,CAAAA,CAAAA,CAAUW,KAClCY,CAAAA,CAAAA,OAAAA,CAAAA,CAAS,CACTC,CAAAA,QAAAA,CAAAA,CAAU,KAId3B,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,mBAAqB,CAAA,CAAEG,OAAS,CAAA,CAAA,CAAA,CAAMC,UAAU,CAG3D,CAAA,CAAA,CAAA,CAAA,CAAET,MAAQP,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,CAAAA,CACnB,EAEM,QAAUiB,CAAAA,CACd5B,CAAAA,CAAAA,CACAW,EACAkB,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMN,CAAAA,CAAUb,CAAAA,IAAAA,CAAKC,GAAI,CAAA,EAAA,CAAID,KAAKoB,KAAMH,CAAAA,CAAAA,EAAUE,CAAEhB,CAAAA,OAAAA,CAAUe,CAC9D9B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAGsB,aACD,CAAA,GAAIC,CAAAA,YAAY,aAAe,CAAA,CAC7BC,MAAQ,CAAA,CAAEb,GAAKc,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CACfC,OAAS,CAAA,CAAA,CAAA,CACTC,UAAU,CAGhB,CAAA,CAAA,CAAA,EAEM,QAAUM,CAAAA,CAAAA,CACdjC,CACAC,CAAAA,CAAAA,CACAiB,CACAgB,CAAAA,CAAAA,CAAAA,CAEAhB,EAAOiB,qBAAsBlC,CAAAA,CAAAA,CAAGoB,SAChCH,CAAAA,CAAAA,CAAAA,CAAOkB,mBAAoB,CAAA,aAAA,CAAeF,CAE1ClC,CAAAA,CAAAA,CAAAA,CAAGsB,cACD,GAAIC,CAAAA,WAAAA,CAAY,iBAAmB,CAAA,CAAEG,SAAS,CAAMC,CAAAA,QAAAA,CAAAA,CAAU,CAElE,CAAA,CAAA,CAAA,EAAAU,OAAA,EAAAC,CAAA"}
@@ -1 +0,0 @@
1
- function e(e,t,n,o){t.preventDefault(),t.stopPropagation();const s=Number(e.dataset.cStart);if(!s)return null;const i=Number(e.getAttribute("colspan"))||1,l=Math.max(0,s+i-1-1);n.value=t.clientX,o.value=e.getBoundingClientRect().width;const u=t.currentTarget;return u.setPointerCapture(t.pointerId),e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:l,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:l}}function t(e,t,n,o,s){const i=Math.max(40,Math.round(n+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-resize",{detail:{col:t,widthPx:i},bubbles:!0,composed:!0}))}function n(e,t,n,o){n.releasePointerCapture(t.pointerId),n.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}))}export{n as a,t as h,e as i};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-grid-row.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-row.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridRowCjsJs){_export("NileGridRow",_nileGridRowCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridRowCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileGridRow}from"./nile-grid-row.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-row.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-row.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var r,t,s,e,o,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){r=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.customElement;},function(_nileGridRowCssCjsJs){e=_nileGridRowCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",i=/*#__PURE__*/function(_o){function i(){_classCallCheck(this,i);return _callSuper(this,i,arguments);}_inherits(i,_o);return _createClass(i,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(i,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"row-layer\" class=\"row-layer\" data-row-bg></div>\n\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[e];}}]);}(o));_export("N",i=r([s("nile-grid-row")],i));}};});
2
- //# sourceMappingURL=nile-grid-row.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-row.cjs.js","sources":["../../../src/nile-grid-row/nile-grid-row.ts"],"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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-grid-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile grid-row component.\n *\n * @tag nile-grid-row\n *\n */\n@customElement('nile-grid-row')\nexport class NileGridRow extends NileElement {\n /**\n * The styles for nile-grid-row\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'row');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"row-layer\" class=\"row-layer\" data-row-bg></div>\n\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-row': NileGridRow;\n }\n}\n"],"names":["NileGridRow","_o","i","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","connectedCallback","super","this","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"8mHAmBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,qBAAAC,KAAA,CASL,SAAAC,iBAAAA,CAAAA,CAAAA,CACEC,aAAAA,CAAAA,CAAAA,iCACAC,IAAAA,CAAKC,YAAa,CAAA,MAAA,CAAQ,KAC3B,CAAA,EAEM,GAAAL,GAAA,UAAAC,KAAA,UAAAK,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,sKAOZ,CAAA,KAAAT,GAAA,UAAAU,GAAA,CAjBM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAED,MAT+BC,IAApBpB,OAAAA,KAAAA,CAAWqB,CAAAA,CAAAA,CAAA,CADvBC,CAAAA,CAAc,kBACFtB"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: contents;\n }\n\n ::slotted(nile-grid-header) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .row-layer {\n background-color: var(--row-bg, transparent);\n z-index: 0;\n pointer-events: auto;\n }\n"]))));}};});
2
- //# sourceMappingURL=nile-grid-row.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-grid-row.css.cjs.js","sources":["../../../src/nile-grid-row/nile-grid-row.css.ts"],"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 { css } from 'lit';\n\n/**\n * GridRow CSS\n */\nexport const styles = css`\n :host {\n display: contents;\n }\n\n ::slotted(nile-grid-header) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .row-layer {\n background-color: var(--row-bg, transparent);\n z-index: 0;\n pointer-events: auto;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,15 +0,0 @@
1
- import{css as o}from"lit";const r=o`
2
- :host {
3
- display: contents;
4
- }
5
-
6
- ::slotted(nile-grid-header) {
7
- background-color: var(--nile-colors-neutral-100);
8
- }
9
-
10
- .row-layer {
11
- background-color: var(--row-bg, transparent);
12
- z-index: 0;
13
- pointer-events: auto;
14
- }
15
- `;export{r as s};
@@ -1,7 +0,0 @@
1
- import{__decorate as r}from"tslib";import{html as t}from"lit";import{customElement as e}from"lit/decorators.js";import{s}from"./nile-grid-row.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return t`
2
- <div part="row-layer" class="row-layer" data-row-bg></div>
3
-
4
- <div style="display: contents;">
5
- <slot></slot>
6
- </div>
7
- `}};i=r([e("nile-grid-row")],i);export{i as N};
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function n(n,t){for(;n&&n!==t;){var _n;if(n instanceof HTMLElement){var _t=getComputedStyle(n).display;if(n.tagName.match(/^(P|DIV|H1|H2|H3|H4|H5|H6|LI)$/)||"block"===_t||"list-item"===_t)return n;}n=((_n=n)===null||_n===void 0?void 0:_n.parentNode)||null;}return t;}function t(n){for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n;}function o(n){var t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(!t)return"#000000";return"#".concat(Number(t[1]).toString(16).padStart(2,"0")).concat(Number(t[2]).toString(16).padStart(2,"0")).concat(Number(t[3]).toString(16).padStart(2,"0"));}function e(n){var t=n.parentNode;if(t){for(;n.firstChild;)t.insertBefore(n.firstChild,n);t.removeChild(n);}}function r(n,t,o){var e=document.createElement(t);o&&Object.entries(o).forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),n=_ref2[0],t=_ref2[1];return e.setAttribute(n,t);});try{n.surroundContents(e);}catch(_unused){var _t2=n.extractContents();e.appendChild(_t2),n.insertNode(e);}}function c(n,t,o){var r=n.parentNode;for(;r&&r!==t;)r instanceof HTMLElement&&o(r)?(e(r),r=n.parentNode):r=r.parentNode;}function u(t,o,e){var _strong$em$u$span$o;var u=document.getSelection();if(!u||0===u.rangeCount)return;var i=u.getRangeAt(0),f=(_strong$em$u$span$o={strong:["strong","b"],em:["em","i"],u:["u"],span:["span"]}[o])!==null&&_strong$em$u$span$o!==void 0?_strong$em$u$span$o:[o];function s(n){return f.includes(n.tagName.toLowerCase());}if(i.collapsed){var _n2=i.startContainer;for(;_n2&&_n2!==t;){if(_n2 instanceof HTMLElement&&s(_n2))return void c(i.startContainer,t,s);_n2=_n2.parentNode;}var _r=document.createElement(o);e&&Object.entries(e).forEach(function(_ref3){var _ref4=_slicedToArray(_ref3,2),n=_ref4[0],t=_ref4[1];return _r.setAttribute(n,t);}),_r.appendChild(document.createTextNode("​")),i.insertNode(_r);var _f=document.createRange();return _f.setStart(_r.firstChild,1),_f.collapse(!0),u.removeAllRanges(),void u.addRange(_f);}var d=n(i.startContainer,t),l=n(i.endContainer,t);if(d&&l&&d!==l){var _n3=[];var _t3=d;for(;_t3&&(_t3 instanceof HTMLElement&&_n3.push(_t3),_t3!==l);)_t3=_t3.nextSibling;return void _n3.forEach(function(n,t){var u=document.createRange();u.selectNodeContents(n);var i=[],f=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null);var d;for(;d=f.nextNode();){var _d$nodeValue;((_d$nodeValue=d.nodeValue)===null||_d$nodeValue===void 0?void 0:_d$nodeValue.trim())&&i.push(d);}i.length>0&&i.every(function(t){var o=t;for(;o&&o!==n;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode;}return!1;})?i.forEach(function(t){return c(t,n,s);}):r(u,o,e);});}var m=document.createTreeWalker(i.commonAncestorContainer,NodeFilter.SHOW_TEXT,{acceptNode:function acceptNode(n){if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;var t=document.createRange();t.selectNodeContents(n);return i.compareBoundaryPoints(Range.END_TO_START,t)<=0&&i.compareBoundaryPoints(Range.START_TO_END,t)>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}}),a=[];var H;for(;H=m.nextNode();)a.push(H);if(0===a.length){var _n4=i.startContainer;for(;_n4&&_n4!==t;){if(_n4 instanceof HTMLElement&&s(_n4))return void c(i.startContainer,t,s);_n4=_n4.parentNode;}}a.length>0&&a.every(function(n){var o=n;for(;o&&o!==t;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode;}return!1;})?a.forEach(function(n){return c(n,t,s);}):r(i,o,e);var N=document.createRange();N.setStart(i.startContainer,i.startOffset),N.setEnd(i.endContainer,i.endOffset),u.removeAllRanges(),u.addRange(N);}function i(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=n(e.getRangeAt(0).startContainer,t);if(!r)return;if(r.tagName.toLowerCase()===o)return;var c=document.createElement(o);for(;r.firstChild;)c.appendChild(r.firstChild);r.replaceWith(c);var u=document.createRange();u.selectNodeContents(c),u.collapse(!0),e.removeAllRanges(),e.addRange(u);}function f(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=n(e.getRangeAt(0).startContainer,t);if(r)if("li"===r.tagName.toLowerCase()){r.style.textAlign=o;var _n5=r.closest("ul,ol");_n5&&(_n5.style.textAlign=o);}else r.style.textAlign="justify"===o?"justify":o;}function s(n,t){var o=document.getSelection();if(!o||0===o.rangeCount)return;var e=o.getRangeAt(0);if(e.collapsed){var _n6=document.createElement("span");_n6.style.fontFamily=t,_n6.appendChild(document.createTextNode("​")),e.insertNode(_n6);var _r2=document.createRange();return _r2.setStart(_n6.firstChild,1),_r2.collapse(!0),o.removeAllRanges(),void o.addRange(_r2);}r(e,"span",{style:"font-family:".concat(t)});}function d(n,t,o){for(;t&&t!==n;){if(t instanceof HTMLSpanElement&&t.hasAttribute(o))return t;t=t.parentNode;}return null;}function l(n,t,o,e){var r=window.getSelection();if(!r||0===r.rangeCount)return;var c=r.getRangeAt(0);if(!n.contains(c.commonAncestorContainer))return;var u=c.cloneRange();if(u.collapsed){var _c=d(n,u.startContainer,e);if(_c)return _c.style[t]=o,void a(n,e,t);var _i=document.createElement("span");_i.setAttribute(e,"1"),_i.style[t]=o,_i.appendChild(document.createTextNode("​")),u.insertNode(_i);var _f2=document.createRange();return _f2.setStart(_i.firstChild,1),_f2.collapse(!0),r.removeAllRanges(),r.addRange(_f2),void a(n,e,t);}var i=d(n,u.startContainer,e),f=d(n,u.endContainer,e);if(i&&i===f){if(function(n,t){var o=document.createRange();return o.selectNodeContents(t),n.compareBoundaryPoints(Range.START_TO_START,o)<=0&&n.compareBoundaryPoints(Range.END_TO_END,o)>=0;}(u,i))i.style[t]=o;else{var _n7=function(n,t,o,e,r){var c=n.style[e],u=document.createRange();u.setStart(n,0),u.setEnd(t.startContainer,t.startOffset);var i=document.createRange();i.setStart(t.endContainer,t.endOffset),i.setEnd(n,n.childNodes.length);var f=document.createDocumentFragment(),s=function s(n){var t=document.createElement("span");return t.setAttribute(o,"1"),t.style[e]=n,t;};if(m(u)){var _n8=s(c);_n8.appendChild(u.cloneContents()),f.appendChild(_n8);}var d=s(r);if(d.appendChild(t.cloneContents()),f.appendChild(d),m(i)){var _n9=s(c);_n9.appendChild(i.cloneContents()),f.appendChild(_n9);}return n.replaceWith(f),d;}(i,u,e,t,o),_r3=window.getSelection(),_c2=document.createRange();_c2.selectNodeContents(_n7),_r3!==null&&_r3!==void 0&&_r3.removeAllRanges(),_r3===null||_r3===void 0?void 0:_r3.addRange(_c2);}return void a(n,e,t);}var s=function(){var n=u.commonAncestorContainer;for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n;}(),l=document.createTreeWalker(s||n,NodeFilter.SHOW_TEXT,{acceptNode:function acceptNode(n){if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;var t=document.createRange();t.selectNodeContents(n);return u.compareBoundaryPoints(Range.END_TO_START,t)<0&&u.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}}),H=[];var N;for(;N=l.nextNode();)H.push(N);H.forEach(function(r){var c=0,i=r.length;r===u.startContainer&&(c=u.startOffset),r===u.endContainer&&(i=u.endOffset),c>0&&(r=r.splitText(c)),i<r.length&&r.splitText(i);var f=d(n,r,e);if(f)return void(f.style[t]=o);var s=document.createElement("span");s.setAttribute(e,"1"),s.style[t]=o;r.parentElement.replaceChild(s,r),s.appendChild(r);}),a(n,e,t),r.removeAllRanges(),r.addRange(u);}function m(n){if(n.collapsed)return!1;return(n.cloneContents().textContent||"").length>0;}function a(n,t,o){var e=Array.from(n.querySelectorAll("span[".concat(t,"]"))),r=function r(n){return n.style[o];};e.forEach(function(n){Array.from(n.querySelectorAll("span[".concat(t,"]"))).forEach(function(t){if(r(t)===r(n)){for(;t.firstChild;)n.insertBefore(t.firstChild,t);t.remove();}});var o=n.previousSibling;if(o instanceof HTMLSpanElement&&o.hasAttribute(t)&&r(o)===r(n)){for(;n.firstChild;)o.appendChild(n.firstChild);return void n.remove();}var e=n.nextSibling;if(e instanceof HTMLSpanElement&&e.hasAttribute(t)&&r(e)===r(n)){for(;e.firstChild;)n.appendChild(e.firstChild);e.remove();}});}function H(n,t){l(n,"color",t,"data-rte-color");}function N(n,t){l(n,"backgroundColor",t,"data-rte-bg");}function p(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=e.getRangeAt(0),c=[],u=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function acceptNode(n){if(!(n instanceof HTMLElement))return NodeFilter.FILTER_SKIP;if(!/^(P|DIV|LI|H[1-6])$/.test(n.tagName))return NodeFilter.FILTER_SKIP;var t=document.createRange();t.selectNodeContents(n);return r.compareBoundaryPoints(Range.END_TO_START,t)<0&&r.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}});var i;for(;i=u.nextNode();)c.push(i);if(0===c.length){var _o=n(r.startContainer,t);_o&&c.push(_o);}var f=c[0].closest("li");if(f){var _n10=f.closest("ul,ol");if(!_n10)return;if(_n10.tagName.toLowerCase()===o){var _t4=document.createDocumentFragment();for(var _i2=0,_Array$from=Array.from(_n10.querySelectorAll("li"));_i2<_Array$from.length;_i2++){var _o2=_Array$from[_i2];var _n11=document.createElement("p");for(;_o2.firstChild;)_n11.appendChild(_o2.firstChild);_t4.appendChild(_n11);}_n10.replaceWith(_t4);}else{var _t5=document.createElement(o);for(;_n10.firstChild;)_t5.appendChild(_n10.firstChild);_n10.replaceWith(_t5);}return;}var s=document.createElement(o);for(var _i3=0,_c3=c;_i3<_c3.length;_i3++){var _n12=_c3[_i3];var _t6=document.createElement("li");for(;_n12.firstChild;)_t6.appendChild(_n12.firstChild);s.appendChild(_t6),_n12.replaceWith(s);}}_export({a:i,b:s,c:N,d:H,e:p,f:n,n:t,r:o,s:f,t:u});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=utils.cjs.js.map