@aquera/nile-elements 1.1.3-beta-1.2 → 1.1.3-beta-1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (761) hide show
  1. package/README.md +9 -0
  2. package/demo/index.html +16 -314
  3. package/demo/nxtgen.css +7 -2
  4. package/dist/{fixture-3bfb4490.cjs.js → fixture-5b79f853.cjs.js} +2 -2
  5. package/dist/{fixture-3bfb4490.cjs.js.map → fixture-5b79f853.cjs.js.map} +1 -1
  6. package/dist/{fixture-ba65262e.esm.js → fixture-90b199c4.esm.js} +2 -2
  7. package/dist/{fixture-8edec91c.esm.js → fixture-9871e8a9.esm.js} +1 -1
  8. package/dist/{fixture-d1470b58.cjs.js → fixture-c1d78368.cjs.js} +2 -2
  9. package/dist/{fixture-d1470b58.cjs.js.map → fixture-c1d78368.cjs.js.map} +1 -1
  10. package/dist/{fixture-985bba12.esm.js → fixture-cf7bfcf5.esm.js} +1 -1
  11. package/dist/{fixture-e3592de4.cjs.js → fixture-dbd66009.cjs.js} +4 -4
  12. package/dist/fixture-dbd66009.cjs.js.map +1 -0
  13. package/dist/index.cjs.js +1 -1
  14. package/dist/index.esm.js +1 -1
  15. package/dist/index.js +698 -1272
  16. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  17. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  20. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  21. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  22. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  23. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  24. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  25. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  26. package/dist/nile-button/nile-button.css.esm.js +66 -12
  27. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  28. package/dist/nile-button/nile-button.test.esm.js +1 -1
  29. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  31. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  33. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  34. package/dist/nile-card/nile-card.test.esm.js +1 -1
  35. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  37. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  38. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  39. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +2 -0
  40. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +1 -0
  41. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +1 -0
  42. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  43. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  44. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  45. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  46. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  47. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  48. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  49. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  50. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  51. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  52. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  53. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  54. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  55. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  56. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  57. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  58. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  59. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  60. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  61. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  62. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  63. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  64. package/dist/nile-grid/nile-grid.css.cjs.js +1 -1
  65. package/dist/nile-grid/nile-grid.css.cjs.js.map +1 -1
  66. package/dist/nile-grid/nile-grid.css.esm.js +8 -4
  67. package/dist/nile-grid/nile-grid.esm.js +6 -6
  68. package/dist/nile-grid/nile-grid.types.cjs.js +2 -0
  69. package/dist/nile-grid/nile-grid.types.cjs.js.map +1 -0
  70. package/dist/nile-grid/nile-grid.types.esm.js +1 -0
  71. package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
  72. package/dist/nile-grid/nile-grid.utils.cjs.js.map +1 -1
  73. package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
  74. package/dist/nile-grid-body/nile-grid-body.cjs.js +1 -1
  75. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +1 -1
  76. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +1 -1
  77. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +1 -1
  78. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -4
  79. package/dist/nile-grid-body/nile-grid-body.esm.js +3 -3
  80. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
  81. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
  82. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +1 -1
  83. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -1
  84. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +18 -3
  85. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +3 -3
  86. package/dist/nile-grid-head/nile-grid-head.cjs.js +1 -1
  87. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +1 -1
  88. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +1 -1
  89. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +1 -1
  90. package/dist/nile-grid-head/nile-grid-head.css.esm.js +1 -1
  91. package/dist/nile-grid-head/nile-grid-head.esm.js +3 -3
  92. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  93. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  94. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +1 -1
  95. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -1
  96. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +20 -5
  97. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +4 -3
  98. package/dist/nile-grid-row/nile-grid-row.cjs.js +1 -1
  99. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +1 -1
  100. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +1 -1
  101. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +1 -1
  102. package/dist/nile-grid-row/nile-grid-row.css.esm.js +17 -5
  103. package/dist/nile-grid-row/nile-grid-row.esm.js +4 -5
  104. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  105. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  106. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  107. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  108. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  109. package/dist/nile-input/nile-input.test.esm.js +1 -1
  110. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  111. package/dist/nile-link/nile-link.test.esm.js +1 -1
  112. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  113. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  114. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  115. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  116. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  117. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  118. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  119. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  120. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  121. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  122. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  123. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  124. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  125. package/dist/nile-select/nile-select.test.esm.js +1 -1
  126. package/dist/nile-sidebar/index.cjs.js.map +1 -1
  127. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +1 -1
  128. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +1 -1
  129. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +1 -1
  130. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  131. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  132. package/dist/nile-stepper/index.cjs.js +1 -1
  133. package/dist/nile-stepper/index.esm.js +1 -1
  134. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  135. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  136. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  137. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  138. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  139. package/dist/nile-stepper-item/nile-stepper-item.esm.js +2 -2
  140. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  141. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  142. package/dist/nile-table-body/index.cjs.js +1 -1
  143. package/dist/nile-table-body/index.esm.js +1 -1
  144. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  145. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  146. package/dist/nile-table-body/nile-table-body.esm.js +3 -3
  147. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  148. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  149. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +0 -4
  150. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  151. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  152. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  153. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  154. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +7 -7
  155. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  156. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  157. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  158. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  159. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  160. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +2 -0
  161. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +1 -0
  162. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +231 -0
  163. package/dist/src/index.d.ts +4 -17
  164. package/dist/src/index.js +4 -17
  165. package/dist/src/index.js.map +1 -1
  166. package/dist/src/internal/resizable-helper.d.ts +59 -0
  167. package/dist/src/internal/resizable-helper.js +115 -0
  168. package/dist/src/internal/resizable-helper.js.map +1 -0
  169. package/dist/src/internal/resizable-styles.d.ts +16 -0
  170. package/dist/src/internal/resizable-styles.js +144 -0
  171. package/dist/src/internal/resizable-styles.js.map +1 -0
  172. package/dist/src/internal/virtualizer-error-handler.d.ts +30 -0
  173. package/dist/src/internal/virtualizer-error-handler.js +82 -0
  174. package/dist/src/internal/virtualizer-error-handler.js.map +1 -0
  175. package/dist/src/lib/index.d.ts +7 -0
  176. package/dist/src/lib/index.js +8 -0
  177. package/dist/src/lib/index.js.map +1 -0
  178. package/dist/src/lib/virtualize.d.ts +32 -0
  179. package/dist/src/lib/virtualize.js +105 -0
  180. package/dist/src/lib/virtualize.js.map +1 -0
  181. package/dist/src/lib/virtualize.test.d.ts +7 -0
  182. package/dist/src/lib/virtualize.test.js +57 -0
  183. package/dist/src/lib/virtualize.test.js.map +1 -0
  184. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  185. package/dist/src/nile-button/nile-button.css.js +66 -12
  186. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  187. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  188. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  189. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  190. package/dist/src/nile-code-editor/Old_theme copy.d.ts +191 -0
  191. package/dist/src/nile-code-editor/Old_theme copy.js +193 -0
  192. package/dist/src/nile-code-editor/Old_theme copy.js.map +1 -0
  193. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  194. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +675 -0
  195. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +1 -0
  196. package/dist/src/nile-code-editor/theme copy.d.ts +191 -0
  197. package/dist/src/nile-code-editor/theme copy.js +193 -0
  198. package/dist/src/nile-code-editor/theme copy.js.map +1 -0
  199. package/dist/src/nile-grid/data-processor.d.ts +37 -0
  200. package/dist/src/nile-grid/data-processor.js +122 -0
  201. package/dist/src/nile-grid/data-processor.js.map +1 -0
  202. package/dist/src/nile-grid/event-handlers.d.ts +35 -0
  203. package/dist/src/nile-grid/event-handlers.js +158 -0
  204. package/dist/src/nile-grid/event-handlers.js.map +1 -0
  205. package/dist/src/nile-grid/nile-grid.css.js +6 -2
  206. package/dist/src/nile-grid/nile-grid.css.js.map +1 -1
  207. package/dist/src/nile-grid/nile-grid.d.ts +9 -3
  208. package/dist/src/nile-grid/nile-grid.js +96 -20
  209. package/dist/src/nile-grid/nile-grid.js.map +1 -1
  210. package/dist/src/nile-grid/nile-grid.types.d.ts +3 -0
  211. package/dist/src/nile-grid/nile-grid.types.js +2 -0
  212. package/dist/src/nile-grid/nile-grid.types.js.map +1 -0
  213. package/dist/src/nile-grid/nile-grid.utils.d.ts +3 -2
  214. package/dist/src/nile-grid/nile-grid.utils.js +223 -81
  215. package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
  216. package/dist/src/nile-grid/renderer.d.ts +8 -0
  217. package/dist/src/nile-grid/renderer.js +78 -0
  218. package/dist/src/nile-grid/renderer.js.map +1 -0
  219. package/dist/src/nile-grid/resize-handler.d.ts +4 -0
  220. package/dist/src/nile-grid/resize-handler.js +36 -0
  221. package/dist/src/nile-grid/resize-handler.js.map +1 -0
  222. package/dist/src/nile-grid/types.d.ts +32 -0
  223. package/dist/src/nile-grid/types.js +2 -0
  224. package/dist/src/nile-grid/types.js.map +1 -0
  225. package/dist/src/nile-grid/utils.d.ts +4 -0
  226. package/dist/src/nile-grid/utils.js +32 -0
  227. package/dist/src/nile-grid/utils.js.map +1 -0
  228. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -4
  229. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +1 -1
  230. package/dist/src/nile-grid-body/nile-grid-body.js +1 -1
  231. package/dist/src/nile-grid-body/nile-grid-body.js.map +1 -1
  232. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +17 -2
  233. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -1
  234. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -3
  235. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +1 -11
  236. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +1 -1
  237. package/dist/src/nile-grid-head/nile-grid-head.css.js +1 -1
  238. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +1 -1
  239. package/dist/src/nile-grid-head/nile-grid-head.js +1 -1
  240. package/dist/src/nile-grid-head/nile-grid-head.js.map +1 -1
  241. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +18 -3
  242. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -1
  243. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +3 -2
  244. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +14 -11
  245. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
  246. package/dist/src/nile-grid-row/nile-grid-row.css.js +17 -5
  247. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +1 -1
  248. package/dist/src/nile-grid-row/nile-grid-row.d.ts +4 -1
  249. package/dist/src/nile-grid-row/nile-grid-row.js +19 -4
  250. package/dist/src/nile-grid-row/nile-grid-row.js.map +1 -1
  251. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  252. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  253. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  254. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  255. package/dist/src/nile-sidebar/index.d.ts +1 -1
  256. package/dist/src/nile-stepper/nile-stepper.d.ts +1 -0
  257. package/dist/src/nile-stepper/nile-stepper.js +61 -40
  258. package/dist/src/nile-stepper/nile-stepper.js.map +1 -1
  259. package/dist/src/nile-stepper-item/nile-stepper-item.d.ts +3 -0
  260. package/dist/src/nile-stepper-item/nile-stepper-item.js +14 -2
  261. package/dist/src/nile-stepper-item/nile-stepper-item.js.map +1 -1
  262. package/dist/src/nile-table-body/nile-table-body.js +2 -1
  263. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  264. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +9 -0
  265. package/dist/src/nile-table-body/virtual-scroll-helper.js +24 -0
  266. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +1 -0
  267. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +0 -4
  268. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  269. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.d.ts +3 -0
  270. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js +14 -2
  271. package/dist/src/nile-vertical-stepper-item/nile-vertical-stepper-item.js.map +1 -1
  272. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +1 -0
  273. package/dist/src/nile-virtual-select/nile-virtual-select.js +18 -13
  274. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  275. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +273 -0
  276. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +1305 -0
  277. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +1 -0
  278. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +21 -0
  279. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +56 -0
  280. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +1 -0
  281. package/dist/src/nile-virtual-table-body/index.d.ts +2 -0
  282. package/dist/src/nile-virtual-table-body/index.js +3 -0
  283. package/dist/src/nile-virtual-table-body/index.js.map +1 -0
  284. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +1 -0
  285. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +44 -0
  286. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +1 -0
  287. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +50 -0
  288. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +135 -0
  289. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +1 -0
  290. package/dist/src/nile-virtual-table-body/renderer.d.ts +16 -0
  291. package/dist/src/nile-virtual-table-body/renderer.js +49 -0
  292. package/dist/src/nile-virtual-table-body/renderer.js.map +1 -0
  293. package/dist/src/utilities/stepper-utils.d.ts +71 -0
  294. package/dist/src/utilities/stepper-utils.js +108 -0
  295. package/dist/src/utilities/stepper-utils.js.map +1 -0
  296. package/dist/src/version.js +2 -2
  297. package/dist/src/version.js.map +1 -1
  298. package/dist/tsconfig.tsbuildinfo +1 -1
  299. package/package.json +3 -20
  300. package/src/index.ts +4 -18
  301. package/src/nile-button/nile-button.css.ts +66 -12
  302. package/src/nile-grid/nile-grid.css.ts +6 -2
  303. package/src/nile-grid/nile-grid.ts +124 -21
  304. package/src/nile-grid/nile-grid.types.ts +1 -0
  305. package/src/nile-grid/nile-grid.utils.ts +353 -98
  306. package/src/nile-grid-body/nile-grid-body.css.ts +0 -4
  307. package/src/nile-grid-body/nile-grid-body.ts +2 -2
  308. package/src/nile-grid-cell-item/nile-grid-cell-item.css.ts +17 -2
  309. package/src/nile-grid-cell-item/nile-grid-cell-item.ts +3 -11
  310. package/src/nile-grid-head/nile-grid-head.css.ts +1 -1
  311. package/src/nile-grid-head/nile-grid-head.ts +2 -2
  312. package/src/nile-grid-head-item/nile-grid-head-item.css.ts +18 -3
  313. package/src/nile-grid-head-item/nile-grid-head-item.ts +8 -16
  314. package/src/nile-grid-row/nile-grid-row.css.ts +17 -5
  315. package/src/nile-grid-row/nile-grid-row.ts +9 -6
  316. package/src/nile-sidebar/index.ts +133 -0
  317. package/src/nile-sidebar/logo.svg +1 -0
  318. package/src/nile-sidebar-menu/index.ts +1 -0
  319. package/src/nile-sidebar-menu/nile-sidebar-menu.css.ts +52 -0
  320. package/src/nile-sidebar-menu/nile-sidebar-menu.ts +97 -0
  321. package/src/nile-sidebar-menu-items/index.ts +1 -0
  322. package/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.ts +50 -0
  323. package/src/nile-sidebar-menu-items/nile-sidebar-menu-items.ts +81 -0
  324. package/src/nile-sidebar-wrapper/index.ts +1 -0
  325. package/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.ts +119 -0
  326. package/src/nile-sidebar-wrapper/nile-sidebar-wrapper.ts +97 -0
  327. package/src/nile-stepper/nile-stepper.ts +56 -39
  328. package/src/nile-stepper/stepper-utils.ts +49 -0
  329. package/src/nile-stepper-item/nile-stepper-item.ts +6 -3
  330. package/src/nile-table-body/nile-table-body.ts +2 -1
  331. package/src/nile-table-header-item/nile-table-header-item.css.ts +0 -4
  332. package/src/nile-vertical-stepper-item/nile-vertical-stepper-item.ts +6 -3
  333. package/src/nile-virtual-select/nile-virtual-select.ts +8 -2
  334. package/vscode-html-custom-data.json +89 -382
  335. package/dist/axe.min-140df6c2.cjs.js +0 -2
  336. package/dist/axe.min-140df6c2.cjs.js.map +0 -1
  337. package/dist/axe.min-591c52c3.esm.js +0 -1
  338. package/dist/css-tag-3c4464f5.esm.js +0 -6
  339. package/dist/css-tag-b6258454.cjs.js +0 -6
  340. package/dist/css-tag-b6258454.cjs.js.map +0 -1
  341. package/dist/fixture-e3592de4.cjs.js.map +0 -1
  342. package/dist/flow-3e83b6f4.esm.js +0 -17
  343. package/dist/flow-ca47f938.cjs.js +0 -14
  344. package/dist/flow-ca47f938.cjs.js.map +0 -1
  345. package/dist/lit-html-21bc9a48.cjs.js +0 -6
  346. package/dist/lit-html-21bc9a48.cjs.js.map +0 -1
  347. package/dist/lit-html-82603fd0.esm.js +0 -6
  348. package/dist/nile-icon/icons/svg/ng-link-external-02.cjs.js +0 -2
  349. package/dist/nile-icon/icons/svg/ng-link-external-02.cjs.js.map +0 -1
  350. package/dist/nile-icon/icons/svg/ng-link-external-02.esm.js +0 -1
  351. package/dist/nile-side-bar/index.cjs.js +0 -2
  352. package/dist/nile-side-bar/index.cjs.js.map +0 -1
  353. package/dist/nile-side-bar/index.esm.js +0 -1
  354. package/dist/nile-side-bar/nile-side-bar.cjs.js +0 -2
  355. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +0 -1
  356. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +0 -2
  357. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +0 -1
  358. package/dist/nile-side-bar/nile-side-bar.css.esm.js +0 -100
  359. package/dist/nile-side-bar/nile-side-bar.esm.js +0 -1
  360. package/dist/nile-side-bar-action/index.cjs.js +0 -2
  361. package/dist/nile-side-bar-action/index.cjs.js.map +0 -1
  362. package/dist/nile-side-bar-action/index.esm.js +0 -1
  363. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +0 -2
  364. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js.map +0 -1
  365. package/dist/nile-side-bar-action/nile-side-bar-action.css.cjs.js +0 -2
  366. package/dist/nile-side-bar-action/nile-side-bar-action.css.cjs.js.map +0 -1
  367. package/dist/nile-side-bar-action/nile-side-bar-action.css.esm.js +0 -51
  368. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +0 -34
  369. package/dist/nile-side-bar-action-menu/index.cjs.js +0 -2
  370. package/dist/nile-side-bar-action-menu/index.cjs.js.map +0 -1
  371. package/dist/nile-side-bar-action-menu/index.esm.js +0 -1
  372. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js +0 -2
  373. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js.map +0 -1
  374. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.css.cjs.js +0 -2
  375. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.css.cjs.js.map +0 -1
  376. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.css.esm.js +0 -61
  377. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.esm.js +0 -40
  378. package/dist/nile-side-bar-action-menu-item/index.cjs.js +0 -2
  379. package/dist/nile-side-bar-action-menu-item/index.cjs.js.map +0 -1
  380. package/dist/nile-side-bar-action-menu-item/index.esm.js +0 -1
  381. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +0 -2
  382. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +0 -1
  383. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +0 -2
  384. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +0 -1
  385. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +0 -128
  386. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +0 -36
  387. package/dist/nile-side-bar-content/index.cjs.js +0 -2
  388. package/dist/nile-side-bar-content/index.cjs.js.map +0 -1
  389. package/dist/nile-side-bar-content/index.esm.js +0 -1
  390. package/dist/nile-side-bar-content/nile-side-bar-content.cjs.js +0 -2
  391. package/dist/nile-side-bar-content/nile-side-bar-content.cjs.js.map +0 -1
  392. package/dist/nile-side-bar-content/nile-side-bar-content.css.cjs.js +0 -2
  393. package/dist/nile-side-bar-content/nile-side-bar-content.css.cjs.js.map +0 -1
  394. package/dist/nile-side-bar-content/nile-side-bar-content.css.esm.js +0 -5
  395. package/dist/nile-side-bar-content/nile-side-bar-content.esm.js +0 -3
  396. package/dist/nile-side-bar-expand/index.cjs.js +0 -2
  397. package/dist/nile-side-bar-expand/index.cjs.js.map +0 -1
  398. package/dist/nile-side-bar-expand/index.esm.js +0 -1
  399. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +0 -2
  400. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +0 -1
  401. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js +0 -2
  402. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js.map +0 -1
  403. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.esm.js +0 -33
  404. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +0 -6
  405. package/dist/nile-side-bar-footer/index.cjs.js +0 -2
  406. package/dist/nile-side-bar-footer/index.cjs.js.map +0 -1
  407. package/dist/nile-side-bar-footer/index.esm.js +0 -1
  408. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +0 -2
  409. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +0 -1
  410. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +0 -2
  411. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +0 -1
  412. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +0 -40
  413. package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +0 -5
  414. package/dist/nile-side-bar-footer-icon/index.cjs.js +0 -2
  415. package/dist/nile-side-bar-footer-icon/index.cjs.js.map +0 -1
  416. package/dist/nile-side-bar-footer-icon/index.esm.js +0 -1
  417. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.cjs.js +0 -2
  418. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.cjs.js.map +0 -1
  419. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.cjs.js +0 -2
  420. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.cjs.js.map +0 -1
  421. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.esm.js +0 -5
  422. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.esm.js +0 -3
  423. package/dist/nile-side-bar-footer-item/index.cjs.js +0 -2
  424. package/dist/nile-side-bar-footer-item/index.cjs.js.map +0 -1
  425. package/dist/nile-side-bar-footer-item/index.esm.js +0 -1
  426. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +0 -2
  427. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +0 -1
  428. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +0 -2
  429. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +0 -1
  430. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +0 -72
  431. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +0 -7
  432. package/dist/nile-side-bar-footer-text/index.cjs.js +0 -2
  433. package/dist/nile-side-bar-footer-text/index.cjs.js.map +0 -1
  434. package/dist/nile-side-bar-footer-text/index.esm.js +0 -1
  435. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +0 -2
  436. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +0 -1
  437. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +0 -2
  438. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +0 -1
  439. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +0 -29
  440. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +0 -6
  441. package/dist/nile-side-bar-group/index.cjs.js +0 -2
  442. package/dist/nile-side-bar-group/index.cjs.js.map +0 -1
  443. package/dist/nile-side-bar-group/index.esm.js +0 -1
  444. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +0 -2
  445. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +0 -1
  446. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +0 -2
  447. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +0 -1
  448. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +0 -48
  449. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +0 -12
  450. package/dist/nile-side-bar-group-item/index.cjs.js +0 -2
  451. package/dist/nile-side-bar-group-item/index.cjs.js.map +0 -1
  452. package/dist/nile-side-bar-group-item/index.esm.js +0 -1
  453. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +0 -2
  454. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +0 -1
  455. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +0 -2
  456. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +0 -1
  457. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +0 -54
  458. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +0 -37
  459. package/dist/nile-side-bar-group-item-content/index.cjs.js +0 -2
  460. package/dist/nile-side-bar-group-item-content/index.cjs.js.map +0 -1
  461. package/dist/nile-side-bar-group-item-content/index.esm.js +0 -1
  462. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.cjs.js +0 -2
  463. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.cjs.js.map +0 -1
  464. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.cjs.js +0 -2
  465. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.cjs.js.map +0 -1
  466. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.esm.js +0 -5
  467. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.esm.js +0 -3
  468. package/dist/nile-side-bar-group-item-icon/index.cjs.js +0 -2
  469. package/dist/nile-side-bar-group-item-icon/index.cjs.js.map +0 -1
  470. package/dist/nile-side-bar-group-item-icon/index.esm.js +0 -1
  471. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +0 -2
  472. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +0 -1
  473. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +0 -2
  474. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +0 -1
  475. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +0 -31
  476. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +0 -11
  477. package/dist/nile-side-bar-group-item-text/index.cjs.js +0 -2
  478. package/dist/nile-side-bar-group-item-text/index.cjs.js.map +0 -1
  479. package/dist/nile-side-bar-group-item-text/index.esm.js +0 -1
  480. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js +0 -2
  481. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js.map +0 -1
  482. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +0 -2
  483. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +0 -1
  484. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +0 -24
  485. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.esm.js +0 -1
  486. package/dist/nile-side-bar-header/index.cjs.js +0 -2
  487. package/dist/nile-side-bar-header/index.cjs.js.map +0 -1
  488. package/dist/nile-side-bar-header/index.esm.js +0 -1
  489. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +0 -2
  490. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +0 -1
  491. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +0 -2
  492. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +0 -1
  493. package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +0 -52
  494. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +0 -6
  495. package/dist/nile-side-bar-logo/index.cjs.js +0 -2
  496. package/dist/nile-side-bar-logo/index.cjs.js.map +0 -1
  497. package/dist/nile-side-bar-logo/index.esm.js +0 -1
  498. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js +0 -2
  499. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js.map +0 -1
  500. package/dist/nile-side-bar-logo/nile-side-bar-logo.css.cjs.js +0 -2
  501. package/dist/nile-side-bar-logo/nile-side-bar-logo.css.cjs.js.map +0 -1
  502. package/dist/nile-side-bar-logo/nile-side-bar-logo.css.esm.js +0 -35
  503. package/dist/nile-side-bar-logo/nile-side-bar-logo.esm.js +0 -4
  504. package/dist/scopedElementsWrapper-abad3c53.cjs.js +0 -2
  505. package/dist/scopedElementsWrapper-abad3c53.cjs.js.map +0 -1
  506. package/dist/scopedElementsWrapper-ef11f868.esm.js +0 -1
  507. package/dist/sinon-esm-283dcc9b.cjs.js +0 -2
  508. package/dist/sinon-esm-283dcc9b.cjs.js.map +0 -1
  509. package/dist/sinon-esm-abe9b0ec.esm.js +0 -1
  510. package/dist/src/nile-icon/icons/svg/ng-link-external-02.d.ts +0 -5
  511. package/dist/src/nile-icon/icons/svg/ng-link-external-02.js +0 -5
  512. package/dist/src/nile-icon/icons/svg/ng-link-external-02.js.map +0 -1
  513. package/dist/src/nile-side-bar/index.d.ts +0 -1
  514. package/dist/src/nile-side-bar/index.js +0 -2
  515. package/dist/src/nile-side-bar/index.js.map +0 -1
  516. package/dist/src/nile-side-bar/nile-side-bar.css.d.ts +0 -12
  517. package/dist/src/nile-side-bar/nile-side-bar.css.js +0 -112
  518. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +0 -1
  519. package/dist/src/nile-side-bar/nile-side-bar.d.ts +0 -40
  520. package/dist/src/nile-side-bar/nile-side-bar.js +0 -67
  521. package/dist/src/nile-side-bar/nile-side-bar.js.map +0 -1
  522. package/dist/src/nile-side-bar-action/index.d.ts +0 -1
  523. package/dist/src/nile-side-bar-action/index.js +0 -2
  524. package/dist/src/nile-side-bar-action/index.js.map +0 -1
  525. package/dist/src/nile-side-bar-action/nile-side-bar-action.css.d.ts +0 -3
  526. package/dist/src/nile-side-bar-action/nile-side-bar-action.css.js +0 -54
  527. package/dist/src/nile-side-bar-action/nile-side-bar-action.css.js.map +0 -1
  528. package/dist/src/nile-side-bar-action/nile-side-bar-action.d.ts +0 -75
  529. package/dist/src/nile-side-bar-action/nile-side-bar-action.js +0 -338
  530. package/dist/src/nile-side-bar-action/nile-side-bar-action.js.map +0 -1
  531. package/dist/src/nile-side-bar-action-menu/index.d.ts +0 -1
  532. package/dist/src/nile-side-bar-action-menu/index.js +0 -2
  533. package/dist/src/nile-side-bar-action-menu/index.js.map +0 -1
  534. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.css.d.ts +0 -12
  535. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.css.js +0 -73
  536. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.css.js.map +0 -1
  537. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.d.ts +0 -49
  538. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.js +0 -223
  539. package/dist/src/nile-side-bar-action-menu/nile-side-bar-action-menu.js.map +0 -1
  540. package/dist/src/nile-side-bar-action-menu-item/index.d.ts +0 -1
  541. package/dist/src/nile-side-bar-action-menu-item/index.js +0 -2
  542. package/dist/src/nile-side-bar-action-menu-item/index.js.map +0 -1
  543. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.d.ts +0 -12
  544. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +0 -140
  545. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +0 -1
  546. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.d.ts +0 -64
  547. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.js +0 -198
  548. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.js.map +0 -1
  549. package/dist/src/nile-side-bar-content/index.d.ts +0 -1
  550. package/dist/src/nile-side-bar-content/index.js +0 -2
  551. package/dist/src/nile-side-bar-content/index.js.map +0 -1
  552. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.d.ts +0 -12
  553. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.js +0 -17
  554. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.js.map +0 -1
  555. package/dist/src/nile-side-bar-content/nile-side-bar-content.d.ts +0 -32
  556. package/dist/src/nile-side-bar-content/nile-side-bar-content.js +0 -43
  557. package/dist/src/nile-side-bar-content/nile-side-bar-content.js.map +0 -1
  558. package/dist/src/nile-side-bar-expand/index.d.ts +0 -1
  559. package/dist/src/nile-side-bar-expand/index.js +0 -2
  560. package/dist/src/nile-side-bar-expand/index.js.map +0 -1
  561. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.d.ts +0 -12
  562. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js +0 -45
  563. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js.map +0 -1
  564. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.d.ts +0 -21
  565. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js +0 -55
  566. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js.map +0 -1
  567. package/dist/src/nile-side-bar-footer/index.d.ts +0 -1
  568. package/dist/src/nile-side-bar-footer/index.js +0 -2
  569. package/dist/src/nile-side-bar-footer/index.js.map +0 -1
  570. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.d.ts +0 -6
  571. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +0 -46
  572. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +0 -1
  573. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +0 -26
  574. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +0 -37
  575. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +0 -1
  576. package/dist/src/nile-side-bar-footer-icon/index.d.ts +0 -1
  577. package/dist/src/nile-side-bar-footer-icon/index.js +0 -2
  578. package/dist/src/nile-side-bar-footer-icon/index.js.map +0 -1
  579. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.d.ts +0 -12
  580. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.js +0 -17
  581. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.js.map +0 -1
  582. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.d.ts +0 -32
  583. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.js +0 -43
  584. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.js.map +0 -1
  585. package/dist/src/nile-side-bar-footer-item/index.d.ts +0 -1
  586. package/dist/src/nile-side-bar-footer-item/index.js +0 -2
  587. package/dist/src/nile-side-bar-footer-item/index.js.map +0 -1
  588. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.d.ts +0 -3
  589. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +0 -75
  590. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +0 -1
  591. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +0 -27
  592. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +0 -46
  593. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +0 -1
  594. package/dist/src/nile-side-bar-footer-text/index.d.ts +0 -1
  595. package/dist/src/nile-side-bar-footer-text/index.js +0 -2
  596. package/dist/src/nile-side-bar-footer-text/index.js.map +0 -1
  597. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.d.ts +0 -3
  598. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +0 -32
  599. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +0 -1
  600. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.d.ts +0 -30
  601. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.js +0 -53
  602. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.js.map +0 -1
  603. package/dist/src/nile-side-bar-group/index.d.ts +0 -1
  604. package/dist/src/nile-side-bar-group/index.js +0 -2
  605. package/dist/src/nile-side-bar-group/index.js.map +0 -1
  606. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.d.ts +0 -6
  607. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +0 -54
  608. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +0 -1
  609. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +0 -42
  610. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +0 -76
  611. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +0 -1
  612. package/dist/src/nile-side-bar-group-item/index.d.ts +0 -1
  613. package/dist/src/nile-side-bar-group-item/index.js +0 -2
  614. package/dist/src/nile-side-bar-group-item/index.js.map +0 -1
  615. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.d.ts +0 -12
  616. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +0 -66
  617. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +0 -1
  618. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.d.ts +0 -54
  619. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.js +0 -143
  620. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.js.map +0 -1
  621. package/dist/src/nile-side-bar-group-item-content/index.d.ts +0 -1
  622. package/dist/src/nile-side-bar-group-item-content/index.js +0 -2
  623. package/dist/src/nile-side-bar-group-item-content/index.js.map +0 -1
  624. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.d.ts +0 -12
  625. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.js +0 -17
  626. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.js.map +0 -1
  627. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.d.ts +0 -32
  628. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.js +0 -43
  629. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.js.map +0 -1
  630. package/dist/src/nile-side-bar-group-item-icon/index.d.ts +0 -1
  631. package/dist/src/nile-side-bar-group-item-icon/index.js +0 -2
  632. package/dist/src/nile-side-bar-group-item-icon/index.js.map +0 -1
  633. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.d.ts +0 -3
  634. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +0 -34
  635. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +0 -1
  636. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +0 -40
  637. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +0 -89
  638. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +0 -1
  639. package/dist/src/nile-side-bar-group-item-text/index.d.ts +0 -1
  640. package/dist/src/nile-side-bar-group-item-text/index.js +0 -2
  641. package/dist/src/nile-side-bar-group-item-text/index.js.map +0 -1
  642. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.d.ts +0 -6
  643. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +0 -30
  644. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +0 -1
  645. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.d.ts +0 -30
  646. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.js +0 -42
  647. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.js.map +0 -1
  648. package/dist/src/nile-side-bar-header/index.d.ts +0 -1
  649. package/dist/src/nile-side-bar-header/index.js +0 -2
  650. package/dist/src/nile-side-bar-header/index.js.map +0 -1
  651. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.d.ts +0 -12
  652. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +0 -64
  653. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +0 -1
  654. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +0 -32
  655. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +0 -46
  656. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +0 -1
  657. package/dist/src/nile-side-bar-logo/index.d.ts +0 -1
  658. package/dist/src/nile-side-bar-logo/index.js +0 -2
  659. package/dist/src/nile-side-bar-logo/index.js.map +0 -1
  660. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.css.d.ts +0 -12
  661. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.css.js +0 -47
  662. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.css.js.map +0 -1
  663. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.d.ts +0 -34
  664. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.js +0 -53
  665. package/dist/src/nile-side-bar-logo/nile-side-bar-logo.js.map +0 -1
  666. package/dist/src/nile-side-bar-menu/index.d.ts +0 -1
  667. package/dist/src/nile-side-bar-menu/index.js +0 -2
  668. package/dist/src/nile-side-bar-menu/index.js.map +0 -1
  669. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.css.d.ts +0 -12
  670. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.css.js +0 -17
  671. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.css.js.map +0 -1
  672. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.d.ts +0 -32
  673. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.js +0 -43
  674. package/dist/src/nile-side-bar-menu/nile-side-bar-menu.js.map +0 -1
  675. package/dist/src/nile-side-bar-menu-item/index.d.ts +0 -1
  676. package/dist/src/nile-side-bar-menu-item/index.js +0 -2
  677. package/dist/src/nile-side-bar-menu-item/index.js.map +0 -1
  678. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.css.d.ts +0 -12
  679. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.css.js +0 -17
  680. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.css.js.map +0 -1
  681. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.d.ts +0 -32
  682. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.js +0 -43
  683. package/dist/src/nile-side-bar-menu-item/nile-side-bar-menu-item.js.map +0 -1
  684. package/dist/src/nile-table-row-content/index.d.ts +0 -1
  685. package/dist/src/nile-table-row-content/index.js +0 -2
  686. package/dist/src/nile-table-row-content/index.js.map +0 -1
  687. package/dist/src/nile-table-row-content/nile-table-row-content.css.d.ts +0 -12
  688. package/dist/src/nile-table-row-content/nile-table-row-content.css.js +0 -30
  689. package/dist/src/nile-table-row-content/nile-table-row-content.css.js.map +0 -1
  690. package/dist/src/nile-table-row-content/nile-table-row-content.d.ts +0 -32
  691. package/dist/src/nile-table-row-content/nile-table-row-content.js +0 -46
  692. package/dist/src/nile-table-row-content/nile-table-row-content.js.map +0 -1
  693. package/dist/src/nile-test/index.d.ts +0 -1
  694. package/dist/src/nile-test/index.js +0 -2
  695. package/dist/src/nile-test/index.js.map +0 -1
  696. package/dist/src/nile-test/nile-test.css.d.ts +0 -12
  697. package/dist/src/nile-test/nile-test.css.js +0 -17
  698. package/dist/src/nile-test/nile-test.css.js.map +0 -1
  699. package/dist/src/nile-test/nile-test.d.ts +0 -32
  700. package/dist/src/nile-test/nile-test.js +0 -43
  701. package/dist/src/nile-test/nile-test.js.map +0 -1
  702. package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +0 -18
  703. package/dist/src/nile-tooltip/nile-tooltip-utils.js +0 -216
  704. package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +0 -1
  705. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +0 -1
  706. package/dist/src/nile-tooltip/nile-tooltip.test.js +0 -148
  707. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +0 -1
  708. package/dist/virtualize-73f68d08.esm.js +0 -22
  709. package/dist/virtualize-eb33a9a0.cjs.js +0 -18
  710. package/dist/virtualize-eb33a9a0.cjs.js.map +0 -1
  711. package/src/nile-side-bar/index.ts +0 -1
  712. package/src/nile-side-bar/nile-side-bar.css.ts +0 -114
  713. package/src/nile-side-bar/nile-side-bar.ts +0 -66
  714. package/src/nile-side-bar-action/index.ts +0 -1
  715. package/src/nile-side-bar-action/nile-side-bar-action.css.ts +0 -55
  716. package/src/nile-side-bar-action/nile-side-bar-action.ts +0 -367
  717. package/src/nile-side-bar-action-menu/index.ts +0 -1
  718. package/src/nile-side-bar-action-menu/nile-side-bar-action-menu.css.ts +0 -75
  719. package/src/nile-side-bar-action-menu/nile-side-bar-action-menu.ts +0 -239
  720. package/src/nile-side-bar-action-menu-item/index.ts +0 -1
  721. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +0 -142
  722. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.ts +0 -203
  723. package/src/nile-side-bar-content/index.ts +0 -1
  724. package/src/nile-side-bar-content/nile-side-bar-content.css.ts +0 -19
  725. package/src/nile-side-bar-content/nile-side-bar-content.ts +0 -54
  726. package/src/nile-side-bar-expand/index.ts +0 -1
  727. package/src/nile-side-bar-expand/nile-side-bar-expand.css.ts +0 -47
  728. package/src/nile-side-bar-expand/nile-side-bar-expand.ts +0 -55
  729. package/src/nile-side-bar-footer/index.ts +0 -1
  730. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +0 -47
  731. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +0 -42
  732. package/src/nile-side-bar-footer-icon/index.ts +0 -1
  733. package/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.ts +0 -19
  734. package/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.ts +0 -54
  735. package/src/nile-side-bar-footer-item/index.ts +0 -1
  736. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +0 -76
  737. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +0 -45
  738. package/src/nile-side-bar-footer-text/index.ts +0 -1
  739. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +0 -33
  740. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.ts +0 -51
  741. package/src/nile-side-bar-group/index.ts +0 -1
  742. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +0 -55
  743. package/src/nile-side-bar-group/nile-side-bar-group.ts +0 -74
  744. package/src/nile-side-bar-group-item/index.ts +0 -1
  745. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +0 -68
  746. package/src/nile-side-bar-group-item/nile-side-bar-group-item.ts +0 -146
  747. package/src/nile-side-bar-group-item-content/index.ts +0 -1
  748. package/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.ts +0 -19
  749. package/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.ts +0 -54
  750. package/src/nile-side-bar-group-item-icon/index.ts +0 -1
  751. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +0 -35
  752. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +0 -97
  753. package/src/nile-side-bar-group-item-text/index.ts +0 -1
  754. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +0 -31
  755. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.ts +0 -49
  756. package/src/nile-side-bar-header/index.ts +0 -1
  757. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +0 -66
  758. package/src/nile-side-bar-header/nile-side-bar-header.ts +0 -57
  759. package/src/nile-side-bar-logo/index.ts +0 -1
  760. package/src/nile-side-bar-logo/nile-side-bar-logo.css.ts +0 -49
  761. package/src/nile-side-bar-logo/nile-side-bar-logo.ts +0 -52
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid.css.cjs.js","sources":["../../../src/nile-grid/nile-grid.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\nexport const styles = css`\n :host {\n display: grid;\n grid-template-rows: auto;\n overflow: auto;\n inline-size: 100%;\n position: relative;\n contain: content;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400);\n border-radius: var(--nile-radius-radius-xl);\n max-height: 100%;\n }\n\n ::slotted(nile-grid-head),\n ::slotted(nile-grid-body) {\n inline-size: 100%;\n display: grid;\n }\n\n .nile-resize-start,\n .nile-resize-end {\n position: fixed;\n z-index: 2;\n background-color: var(--nile-colors-neutral-400);\n width: 2px;\n height: 100%;\n top: 0;\n display: none;\n bottom: 0;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTASaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-grid.css.cjs.js","sources":["../../../src/nile-grid/nile-grid.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\nexport const styles = css`\n :host {\n --min-width: 180px;\n display: grid;\n grid-template-rows: auto;\n overflow: auto;\n inline-size: 100%;\n position: relative;\n contain: content;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400);\n border-radius: var(--nile-radius-radius-xl);\n max-height: 100%;\n width: 100%;\n min-width: var(--min-width);\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),\n 0px 1px 2px 0px rgba(16, 24, 40, 0.06);\n }\n\n ::slotted(nile-grid-head),\n ::slotted(nile-grid-body) {\n inline-size: 100%;\n }\n\n .nile-resize-start,\n .nile-resize-end {\n position: fixed;\n z-index: 4;\n background-color: var(--nile-colors-neutral-400);\n width: 2px;\n height: 100%;\n top: 0;\n display: none;\n bottom: 0;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTASaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,5 +1,6 @@
1
- import{css as i}from"lit";const e=i`
1
+ import{css as i}from"lit";const o=i`
2
2
  :host {
3
+ --min-width: 180px;
3
4
  display: grid;
4
5
  grid-template-rows: auto;
5
6
  overflow: auto;
@@ -10,18 +11,21 @@ import{css as i}from"lit";const e=i`
10
11
  border: 1px solid var(--nile-colors-neutral-400);
11
12
  border-radius: var(--nile-radius-radius-xl);
12
13
  max-height: 100%;
14
+ width: 100%;
15
+ min-width: var(--min-width);
16
+ box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),
17
+ 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
13
18
  }
14
19
 
15
20
  ::slotted(nile-grid-head),
16
21
  ::slotted(nile-grid-body) {
17
22
  inline-size: 100%;
18
- display: grid;
19
23
  }
20
24
 
21
25
  .nile-resize-start,
22
26
  .nile-resize-end {
23
27
  position: fixed;
24
- z-index: 2;
28
+ z-index: 4;
25
29
  background-color: var(--nile-colors-neutral-400);
26
30
  width: 2px;
27
31
  height: 100%;
@@ -29,4 +33,4 @@ import{css as i}from"lit";const e=i`
29
33
  display: none;
30
34
  bottom: 0;
31
35
  }
32
- `;export{e as s};
36
+ `;export{o as s};
@@ -1,7 +1,7 @@
1
- import{__decorate as t}from"tslib";import{html as s}from"lit";import{property as i,state as e,query as h,customElement as r}from"lit/decorators.js";import{s as a}from"./nile-grid.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{r as n,a as l,b as d,g as c,c as m,l as u,d as p,e as v}from"./nile-grid.utils.esm.js";let b=class extends o{constructor(){super(...arguments),this.customWidths=[],this.colTemplate="",this.columnWidths=[...this.customWidths],this.raf=0,this.onResize=t=>{const{col:s,widthPx:i}=t.detail;let e;e=t.target.getAttribute("colspan")&&parseInt(t.target.getAttribute("colspan"))>1?Math.max(60,Math.round(i-this.columnWidths[s-1])):Math.max(60,Math.round(i)),this.columnWidths[s]=e,n(this.resizeStart,this.resizeEnd,s,i,this.scrollHeight,this.columnWidths,t),this.colTemplate=l(this.columnWidths.length,this.columnWidths),d(m(this.slotEl),c(this.slotEl),this.colTemplate)}}static get styles(){return[a]}scheduleLayout(){this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame((()=>{this.raf=0,u(this,this.slotEl,this.ensureWidths.bind(this),l,d,this.columnWidths)}))}ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(""))}firstUpdated(){this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}_attachObserverAndLayout(){this.mo?.disconnect(),this.mo=new MutationObserver((()=>{this.scheduleLayout()}));const t=m(this.slotEl),s=c(this.slotEl);if(!t&&!s)return;const i=s??this;this.mo.observe(i,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["colspan","rowspan"]}),u(this,this.slotEl,this.ensureWidths.bind(this),l,d,this.columnWidths)}render(){return s`
2
- <div>
3
- <slot></slot>
4
- <div class="nile-resize-start"></div>
5
- <div class="nile-resize-end"></div>
1
+ import{__decorate as t}from"tslib";import{html as s}from"lit";import{state as i,query as e,property as h,customElement as r}from"lit/decorators.js";import{s as a}from"./nile-grid.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{r as o,a as n,b as d,g as c,c as m,d as u,l as p,e as v,f}from"./nile-grid.utils.esm.js";let b=class extends l{constructor(){super(...arguments),this.colTemplate="",this.columnWidths=[],this.enableResizeScroll=!1,this.raf=0,this.stickyLeftIndexes=[],this.stickyRightIndexes=[],this.onResize=t=>{const{col:s,widthPx:i}=t.detail,e=t.target,h=!!e.getAttribute("colspan")&&parseInt(e.getAttribute("colspan"),10)>1,r=this.columnWidths[s]??60,a=h?i-(this.columnWidths[s-1]??0):i,l=Math.max(60,Math.round(Number.isFinite(a)?a:r));let p=l-r;if(0===p)return void o(this.resizeStart,this.resizeEnd,s,this.scrollHeight,this.columnWidths);const v=(t,s)=>{let i=s;for(let s=t;s<this.columnWidths.length&&i>0;s++){const t=Math.max(0,this.columnWidths[s]-60),e=Math.min(t,i);e>0&&(this.columnWidths[s]-=e,i-=e)}return i},f=(t,s)=>{let i=s;return t<this.columnWidths.length&&i>0&&(this.columnWidths[t]+=i,i=0),i};if(this.enableResizeScroll)this.columnWidths[s]=l;else if(p>0){let t=0;for(let i=s+1;i<this.columnWidths.length;i++)t+=Math.max(0,this.columnWidths[i]-60);t<=0?p=0:p>t&&(p=t),this.columnWidths[s]=r+p,p>0&&v(s+1,p)}else if(s===this.columnWidths.length-1)p=0;else{const t=-p;this.columnWidths[s]=Math.max(60,r-t);f(s+1,t)>0&&(this.columnWidths[s]=r,p=0)}o(this.resizeStart,this.resizeEnd,s,this.scrollHeight,this.columnWidths),this.colTemplate=n(this.columnWidths.length,this.columnWidths),d(m(this.slotEl),c(this.slotEl),this.colTemplate),u(this,this.columnWidths,this.slotEl)}}static get styles(){return[a]}scheduleLayout(){this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame((()=>{this.raf=0,p(this,this.slotEl,this.ensureWidths.bind(this),n,d,this.stickyLeftIndexes,this.stickyRightIndexes)}))}ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(""))}firstUpdated(){this.setAttribute("role","table"),v(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}_attachObserverAndLayout(){this.mo?.disconnect(),this.mo=new MutationObserver((()=>{this.scheduleLayout()})),this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>{p(this,this.slotEl,this.ensureWidths.bind(this),n,d,this.stickyLeftIndexes,this.stickyRightIndexes)}));const t=m(this.slotEl),s=c(this.slotEl);if(!t&&!s)return;const i=s??this;this.mo.observe(i,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["colspan","rowspan"]}),this.resizeObserver?.observe(this),p(this,this.slotEl,this.ensureWidths.bind(this),n,d,this.stickyLeftIndexes,this.stickyRightIndexes)}render(){return s`
2
+ <div part="grid-base" class="nile-grid-base">
3
+ <slot part="grid-slot"></slot>
4
+ <div part="resize-start" class="nile-resize-start"></div>
5
+ <div part="resize-end" class="nile-resize-end"></div>
6
6
  </div>
7
- `}disconnectedCallback(){super.disconnectedCallback?.(),this.mo?.disconnect(),this.raf&&cancelAnimationFrame(this.raf),v(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}};t([i({type:Array,attribute:!0})],b.prototype,"customWidths",void 0),t([e()],b.prototype,"colTemplate",void 0),t([e()],b.prototype,"columnWidths",void 0),t([h("slot")],b.prototype,"slotEl",void 0),t([h(".nile-resize-start")],b.prototype,"resizeStart",void 0),t([h(".nile-resize-end")],b.prototype,"resizeEnd",void 0),b=t([r("nile-grid")],b);export{b as N};
7
+ `}disconnectedCallback(){super.disconnectedCallback?.(),this.mo?.disconnect(),this.resizeObserver?.disconnect(),this.raf&&cancelAnimationFrame(this.raf),f(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}};t([i()],b.prototype,"colTemplate",void 0),t([i()],b.prototype,"columnWidths",void 0),t([e("slot")],b.prototype,"slotEl",void 0),t([e(".nile-resize-start")],b.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],b.prototype,"resizeEnd",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],b.prototype,"enableResizeScroll",void 0),t([i()],b.prototype,"stickyLeftIndexes",void 0),t([i()],b.prototype,"stickyRightIndexes",void 0),b=t([r("nile-grid")],b);export{b as N};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=nile-grid.types.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid.types.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register([],function(_export,_context){"use strict";var e,t,n,r,o,a,l,s;return{setters:[],execute:function execute(){_export("r",e=function e(_e3,t,n,r,o,a,l){if(_e3.style.display="block",t.style.display="block",_e3.style.height=o+"px",t.style.height=o+"px",0===n)_e3.style.left=Math.max(60,r)-6+"px",t.style.left=Math.max(60,r)-2+"px";else{var _o=0;if(l.target.getAttribute("colspan")&&parseInt(l.target.getAttribute("colspan"))>1){r-=a[n-1];for(var _e=0;_e<n;_e++)_o+=a[_e];}else for(var _e2=0;_e2<n;_e2++)_o+=a[_e2];_e3.style.left=_o+Math.max(60,r)-6+"px",t.style.left=_o+Math.max(60,r)-2+"px";}}),_export("d",t=function t(e,_t,n,r){e.addEventListener("nile-resize",_t),e.addEventListener("nile-resize-start",function(){e.resizeStart.style.display="block";}),e.addEventListener("nile-resize-end",function(){e.resizeStart.style.display="none",e.resizeEnd.style.display="none";}),n.addEventListener("slotchange",function(){return r();});}),_export("e",n=function n(e,t,_n,r){e.removeEventListener("nile-resize",t),e.removeEventListener("nile-resize-start",function(){e.resizeStart.style.display="block";}),e.removeEventListener("nile-resize-end",function(){e.resizeStart.style.display="none",e.resizeEnd.style.display="none";}),_n.removeEventListener("slotchange",function(){return r();});}),_export("c",r=function r(e){var _e$assignedElements;return((_e$assignedElements=e===null||e===void 0?void 0:e.assignedElements())!==null&&_e$assignedElements!==void 0?_e$assignedElements:[]).find(function(e){return"nile-grid-head"===e.tagName.toLowerCase();})||null;}),_export("g",o=function o(e){var _e$assignedElements2;return((_e$assignedElements2=e===null||e===void 0?void 0:e.assignedElements())!==null&&_e$assignedElements2!==void 0?_e$assignedElements2:[]).find(function(e){return"nile-grid-body"===e.tagName.toLowerCase();})||null;}),_export("a",a=function a(e,t){var n=[];for(var _r=0;_r<e;_r++){var _o2=t[_r];_r===e-1?n.push("minmax(".concat(_o2,"px, auto)")):n.push("".concat(_o2,"px"));}return n.join(" ");}),_export("b",l=function l(e,t,n){e&&(e.style.gridTemplateColumns=n),t&&(t.style.gridTemplateColumns=n,t.style.overflowX="auto");});_export("l",s=function s(e,t,n,a,l,_s){var i=r(t),c=o(t);if(!c)return;var h=i?Array.from(i.querySelectorAll("nile-grid-row")):[],f=Array.from(c.querySelectorAll("nile-grid-row"));var u=0;u=function(e,t,n){return e.forEach(function(e,r){var o=1;var a=Array.from(e.querySelectorAll("nile-grid-head-item, nile-grid-cell")),l=r+1;a.forEach(function(e){for(;t[o-1]>0;)o++;var r=Math.max(1,Number(e.getAttribute("colspan"))||1),a=Math.max(1,Number(e.getAttribute("rowspan"))||1),s=o,i=o+r,c=l+a;e.style.gridColumn="".concat(s," / ").concat(i),e.style.gridRow="".concat(l," / ").concat(c),e.dataset.cStart=String(s);for(var _e4=0;_e4<r;_e4++){var _n2=o-1+_e4;t[_n2]=Math.max(t[_n2]||0,a);}o=i,n=Math.max(n,i-1);});for(var _e5=0;_e5<t.length;_e5++)t[_e5]>0&&t[_e5]--;}),n;}(h,[],u),u=function(e,t,n){return e.forEach(function(e,r){var _e$shadowRoot;var o=1;var a=Array.from(e.querySelectorAll("nile-grid-cell, nile-grid-header")),l=r+1;var s=1;var i=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector("[data-row-bg]");if(i&&(i.style.gridColumn="1 / -1"),a.forEach(function(e){for(;t[o-1]>0;)o++;var r=Math.max(1,Number(e.getAttribute("colspan"))||1),a=Math.max(1,Number(e.getAttribute("rowspan"))||1),i=o,c=o+r,h=l+a;e.style.gridColumn="".concat(i," / ").concat(c),e.style.gridRow="".concat(l," / ").concat(h),e.dataset.cStart=String(i);for(var _e6=0;_e6<r;_e6++){var _n3=o-1+_e6;t[_n3]=Math.max(t[_n3]||0,a);}s=Math.max(s,a),o=c,n=Math.max(n,c-1);}),i){var _e7=l+s;i.style.gridRow="".concat(l," / ").concat(_e7);}for(var _e8=0;_e8<t.length;_e8++)t[_e8]>0&&t[_e8]--;}),n;}(f,[],u),function(e,t,n){for(var _r2=0;_r2<t;_r2++){var _o3=(e.getBoundingClientRect().width||1)-2;n[_r2]=e.customWidths[_r2]||_o3/Math.max(t,1);}}(e,u,_s),n(u),c.style.gridAutoRows="auto",c.style.overflowY="auto",e.colTemplate=a(u,_s),l(i,c,e.colTemplate,e.colTemplate);});}};});
1
+ System.register([],function(_export,_context){"use strict";var t,n,e,r,o,l,i,a;function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n6=0,F=function F(){};return{s:F,n:function n(){return _n6>=r.length?{done:!0}:{done:!1,value:r[_n6++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread 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 _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}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 c(t,n,e,r,o,l,i){return t.forEach(function(t,c){var _t$shadowRoot$querySe,_t$shadowRoot;var s=1;var a=c+1;var u=1,f=null;i.handleRowBg&&(f=(_t$shadowRoot$querySe=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector("[data-row-bg]"))!==null&&_t$shadowRoot$querySe!==void 0?_t$shadowRoot$querySe:null,f&&(f.style.gridColumn="1 / -1"));if(Array.from(t.querySelectorAll(i.itemSelector)).forEach(function(t){for(;(n[s-1]||0)>0;)s++;var c=Math.max(1,Number(t.getAttribute("colspan"))||1),f=Math.max(1,Number(t.getAttribute("rowspan"))||1);f>1&&(t.style.position="absolute",t.style.height=50*f+"px",t.style.zIndex="1");var h=s,d=s+c,g=a+f;t.style.gridColumn="".concat(h," / ").concat(d),t.style.gridRow="".concat(a," / ").concat(g),t.dataset.cStart=String(h),i.useStickyAttr&&t.hasAttribute("colSticky")&&r.push(h-1),i.useStickyAttr&&t.hasAttribute("lastColSticky")&&o.push(h-1),function(t,n,e,r,o){var l=e.includes(n),i=r.includes(n);if(!l&&!i)return;if(t.style.position="sticky",t.style.zIndex="2",l&&!i){var _r2=_toConsumableArray(e).sort(function(t,n){return t-n;}),_l=_r2.indexOf(n);var _i=0;for(var _t2=0;_t2<_l;_t2++){var _o$_r2$_t;_i+=(_o$_r2$_t=o[_r2[_t2]])!==null&&_o$_r2$_t!==void 0?_o$_r2$_t:0;}return void(t.style.left="".concat(_i,"px"));}var c=_toConsumableArray(r).sort(function(t,n){return n-t;}),s=c.indexOf(n),a=t.closest("nile-grid");var u=a?a.offsetWidth-a.clientWidth:0;for(var _t3=0;_t3<s;_t3++){var _o$c$_t;u+=(_o$c$_t=o[c[_t3]])!==null&&_o$c$_t!==void 0?_o$c$_t:0;}t.style.right=u-2+"px";}(t,h-1,r,o,l);for(var _t4=0;_t4<c;_t4++){var _e2=s-1+_t4;n[_e2]=Math.max(n[_e2]||0,f);}u=Math.max(u,f),s=d,e=Math.max(e,d-1);}),i.handleRowBg&&f){var _t5=a+u;f.style.gridRow="".concat(a," / ").concat(_t5);}for(var _t6=0;_t6<n.length;_t6++)n[_t6]>0&&n[_t6]--;}),e;}function s(t,n,e,o){var l=function(t){return Math.max(0,(t.getBoundingClientRect().width||0)-4);}(t),i=function(t,n){var e=Array(n).fill(null),o=r(t);if(!o)return e;var l=Array.from(o.children).filter(function(t){return"nile-grid-row"===t.tagName.toLowerCase();});var _iterator=_createForOfIteratorHelper(l),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _t7=_step.value;Array.from(_t7.children).filter(function(t){return"nile-grid-head-item"===t.tagName.toLowerCase();}).map(function(t){var _t$dataset,_t$customWidth;var n=Number((_t$dataset=t.dataset)===null||_t$dataset===void 0?void 0:_t$dataset.cStart)||1,e=Math.max(1,Number(t.getAttribute("colspan"))||1),r=t.getAttribute("customWidth");return{cStart:n,colspan:e,cw:null!=r?Number(r):(_t$customWidth=t.customWidth)!==null&&_t$customWidth!==void 0?_t$customWidth:null};}).filter(function(t){return null!=t.cw&&!Number.isNaN(t.cw);}).sort(function(t,n){return t.colspan-n.colspan;}).forEach(function(_ref){var t=_ref.cStart,r=_ref.colspan,o=_ref.cw;var l=o/r;for(var _o2=0;_o2<r;_o2++){var _r3=t-1+_o2;_r3>=0&&_r3<n&&null==e[_r3]&&(e[_r3]=l);}});}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}(o,n),c=function(t,n,e){var r=Array(t.length).fill(!1);for(var _o3=0;_o3<t.length;_o3++){var _t$_o;var _l2=(_t$_o=t[_o3])!==null&&_t$_o!==void 0?_t$_o:null;n[_o3]=null==_l2||Number.isNaN(_l2)?0:Math.max(e,Number(_l2)),r[_o3]=null!=_l2&&!Number.isNaN(_l2);}return r;}(i,e,60);!function(t,n,e,r){var o=t.reduce(function(t,n){return t+n;},0),l=e-o,i=Array.from({length:t.length},function(t,n){return n;}).filter(function(t){return!n[t];});if(0===i.length)return;var c=l/i.length;var _iterator2=_createForOfIteratorHelper(i),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n2=_step2.value;t[_n2]=Math.max(r,c);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}(e,c,l,60),function(t,n,e){var r=t.reduce(function(t,n){return t+n;},0);if(r<n&&t.length>0){var _e3=n-r,_o4=r||1;for(var _n3=0;_n3<t.length;_n3++)t[_n3]+=_e3*(t[_n3]/_o4);}else if(r>n){var _o5=r-n;for(var _n4=0;_n4<8&&_o5>.5;_n4++){var _n5=0;var _r4=[];for(var _o6=0;_o6<t.length;_o6++){Math.max(0,t[_o6]-e)>0&&(_r4.push(_o6),_n5+=t[_o6]);}if(0===_r4.length||_n5<=0)break;var _l3=0;for(var _i2=0,_r5=_r4;_i2<_r5.length;_i2++){var _i3=_r5[_i2];var _r6=Math.max(0,t[_i3]-e),_c=t[_i3]/_n5,_s=Math.min(_r6,_o5*_c);t[_i3]-=_s,_l3+=_s;}if(_o5-=_l3,_l3<.5)break;}}}(e,l,60),function(t,n){for(var _e4=0;_e4<t.length;_e4++)t[_e4]=Math.max(n,Math.round(t[_e4]));}(e,60),u(t,e,o);}function u(t,n,e){var r=n.map(function(t,e){return e===n.length-1?"minmax(".concat(Math.round(t),"px, auto)"):"".concat(Math.max(0,Math.round(t)),"px");}).join(" ");t.style.setProperty("--nile-grid-columns",r);var o=e.querySelector("nile-grid-head");o&&(o.style.setProperty("--nile-grid-columns",r),o.querySelectorAll("nile-grid-row").forEach(function(t){return t.style.setProperty("--nile-grid-columns",r);}));var l=e.querySelector("nile-grid-body");l&&(l.style.setProperty("--nile-grid-columns",r),l.querySelectorAll("nile-grid-row").forEach(function(t){return t.style.setProperty("--nile-grid-columns",r);}));}_export("d",u);return{setters:[],execute:function execute(){_export("r",t=function t(_t,n,e,r,o){var _o$e;_t.style.display="block",n.style.display="block",_t.style.height=r+"px",n.style.height=r+"px";var l=function l(t){return Math.max(0,Math.round(t||0));},i=l(o.reduce(function(t,n){return t+(n||0);},0)),c=(s=e,l(o.slice(0,Math.max(0,s)).reduce(function(t,n){return t+(n||0);},0)));var s;var a=c+l(Math.max(60,(_o$e=o[e])!==null&&_o$e!==void 0?_o$e:60));var u=c+60,f=i;a=Math.min(Math.max(a,u),f),_t.style.left=a-6+"px",n.style.left=a-2+"px";}),_export("e",n=function n(t,_n,e,r){t.addEventListener("nile-resize",_n),t.addEventListener("nile-resize-start",function(){t.resizeStart.style.display="block";}),t.addEventListener("nile-resize-end",function(){t.resizeStart.style.display="none",t.resizeEnd.style.display="none";}),e.addEventListener("slotchange",function(){return r();});}),_export("f",e=function e(t,n,_e,r){t.removeEventListener("nile-resize",n),t.removeEventListener("nile-resize-start",function(){t.resizeStart.style.display="block";}),t.removeEventListener("nile-resize-end",function(){t.resizeStart.style.display="none",t.resizeEnd.style.display="none";}),_e.removeEventListener("slotchange",function(){return r();});}),_export("c",r=function r(t){var _t$assignedElements;return((_t$assignedElements=t===null||t===void 0?void 0:t.assignedElements())!==null&&_t$assignedElements!==void 0?_t$assignedElements:[]).find(function(t){return"nile-grid-head"===t.tagName.toLowerCase();})||null;}),_export("g",o=function o(t){var _t$assignedElements2;return((_t$assignedElements2=t===null||t===void 0?void 0:t.assignedElements())!==null&&_t$assignedElements2!==void 0?_t$assignedElements2:[]).find(function(t){return"nile-grid-body"===t.tagName.toLowerCase();})||null;}),_export("a",l=function l(t,n){var e=[];for(var _r=0;_r<t;_r++){var _o=n[_r];_r===t-1?e.push("minmax(".concat(_o,"px, auto)")):e.push("".concat(_o,"px"));}return e.join(" ");}),_export("b",i=function i(t,n,e){t&&(t.style.gridTemplateColumns=e),n&&(n.style.gridTemplateColumns=e);});_export("l",a=function a(t,n,e,l,i,_a,u){var f=r(n),h=o(n);if(!h)return;var d=f?Array.from(f.querySelectorAll("nile-grid-row")):[],g=Array.from(h.querySelectorAll("nile-grid-row"));var m=0;m=function(t,n,e,r,o,l){return c(t,n,e,r,o,l,{itemSelector:"nile-grid-head-item",useStickyAttr:!0,handleRowBg:!1});}(d,[],m,_a,u,t.columnWidths),m=function(t,n,e,r,o,l){return c(t,n,e,r,o,l,{itemSelector:"nile-grid-cell-item",useStickyAttr:!1,handleRowBg:!0});}(g,[],m,_a,u,t.columnWidths),s(t,m,t.columnWidths,n),e(m),h.style.gridAutoRows="auto",t.colTemplate=l(m,t.columnWidths),i(f,h,t.colTemplate,t.colTemplate);});}};});
2
2
  //# sourceMappingURL=nile-grid.utils.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid.utils.cjs.js","sources":["../../../src/nile-grid/nile-grid.utils.ts"],"sourcesContent":["import { NileGrid } from './nile-grid';\n\nexport const resizeLinesHandler = (\n resizeStart: any,\n resizeEnd: any,\n col: number,\n widthPx: number,\n scrollHeight: any,\n columnWidths: any,\n e: any\n) => {\n resizeStart.style.display = 'block';\n resizeEnd.style.display = 'block';\n resizeStart.style.height = scrollHeight + 'px';\n resizeEnd.style.height = scrollHeight + 'px';\n if (col === 0) {\n resizeStart.style.left = `${Math.max(60, widthPx) - 6}px`;\n resizeEnd.style.left = `${Math.max(60, widthPx) - 2}px`;\n } else {\n let totalWidth = 0;\n if (\n (e.target as HTMLElement).getAttribute('colspan') &&\n parseInt((e.target as HTMLElement).getAttribute('colspan')!) > 1\n ) {\n widthPx = widthPx - columnWidths[col - 1];\n for (let i = 0; i < col; i++) {\n totalWidth += columnWidths[i];\n }\n } else {\n for (let i = 0; i < col; i++) {\n totalWidth += columnWidths[i];\n }\n }\n resizeStart.style.left = `${totalWidth + Math.max(60, widthPx) - 6}px`;\n resizeEnd.style.left = `${totalWidth + Math.max(60, widthPx) - 2}px`;\n }\n};\n\nexport const listenToEventListeners = (\n nileGrid: NileGrid,\n onResize: any,\n slotEl: any,\n _attachObserverAndLayout: any\n) => {\n nileGrid.addEventListener('nile-resize', onResize);\n nileGrid.addEventListener('nile-resize-start', () => {\n nileGrid.resizeStart.style.display = 'block';\n });\n nileGrid.addEventListener('nile-resize-end', () => {\n nileGrid.resizeStart.style.display = 'none';\n nileGrid.resizeEnd.style.display = 'none';\n });\n slotEl.addEventListener('slotchange', () => _attachObserverAndLayout());\n};\n\nexport const removeEventListeners = (\n nileGrid: NileGrid,\n onResize: any,\n slotEl: any,\n _attachObserverAndLayout: any\n) => {\n nileGrid.removeEventListener('nile-resize', onResize);\n nileGrid.removeEventListener('nile-resize-start', () => {\n nileGrid.resizeStart.style.display = 'block';\n });\n nileGrid.removeEventListener('nile-resize-end', () => {\n nileGrid.resizeStart.style.display = 'none';\n nileGrid.resizeEnd.style.display = 'none';\n });\n slotEl.removeEventListener('slotchange', () => _attachObserverAndLayout());\n};\n\nexport const getHead = (slotEl: any) => {\n const nodes = slotEl?.assignedElements() ?? [];\n return (\n (nodes.find(\n (n: any) => n.tagName.toLowerCase() === 'nile-grid-head'\n ) as HTMLElement) || null\n );\n};\n\nexport const getBody = (slotEl: any) => {\n const nodes = slotEl?.assignedElements() ?? [];\n return (\n (nodes.find(\n (n: any) => n.tagName.toLowerCase() === 'nile-grid-body'\n ) as HTMLElement) || null\n );\n};\n\nexport const rebuildTemplate = (\n colCount: number,\n columnWidths: number[]\n): string => {\n const parts: string[] = [];\n\n for (let i = 0; i < colCount; i++) {\n const explicit = columnWidths[i];\n if (i === colCount - 1) {\n parts.push(`minmax(${explicit}px, auto)`);\n } else {\n parts.push(`${explicit}px`);\n }\n }\n return parts.join(' ');\n};\n\nexport const applyTemplate = (\n head: HTMLElement | null,\n body: HTMLElement | null,\n colTemplate: string\n) => {\n if (head) head.style.gridTemplateColumns = colTemplate;\n if (body) {\n body.style.gridTemplateColumns = colTemplate;\n body.style.overflowX = 'auto';\n }\n};\n\nfunction computeHeadLayout(\n headRows: HTMLElement[],\n carryHead: number[],\n colCount: number\n): number {\n headRows.forEach((row, rIdx) => {\n let c = 1;\n const cells = Array.from(\n row.querySelectorAll('nile-grid-head-item, nile-grid-cell')\n ) as HTMLElement[];\n const rStart = rIdx + 1;\n\n cells.forEach(cell => {\n while (carryHead[c - 1] > 0) c++;\n const colspan = Math.max(1, Number(cell.getAttribute('colspan')) || 1);\n const rowspan = Math.max(1, Number(cell.getAttribute('rowspan')) || 1);\n\n const cStart = c,\n cEnd = c + colspan;\n const rEnd = rStart + rowspan;\n\n cell.style.gridColumn = `${cStart} / ${cEnd}`;\n cell.style.gridRow = `${rStart} / ${rEnd}`;\n (cell as any).dataset.cStart = String(cStart);\n\n for (let k = 0; k < colspan; k++) {\n const idx = c - 1 + k;\n carryHead[idx] = Math.max(carryHead[idx] || 0, rowspan);\n }\n c = cEnd;\n colCount = Math.max(colCount, cEnd - 1);\n });\n\n for (let i = 0; i < carryHead.length; i++)\n if (carryHead[i] > 0) carryHead[i]--;\n });\n return colCount;\n}\n\nfunction computeBodyLayout(\n bodyRows: HTMLElement[],\n carryBody: number[],\n colCount: number\n) {\n bodyRows.forEach((row, rIdx) => {\n let c = 1;\n const cells = Array.from(\n row.querySelectorAll('nile-grid-cell, nile-grid-header')\n ) as HTMLElement[];\n const rStart = rIdx + 1;\n let maxRowspan = 1;\n\n const bg = row.shadowRoot?.querySelector<HTMLElement>('[data-row-bg]');\n if (bg) bg.style.gridColumn = `1 / -1`;\n\n cells.forEach(cell => {\n while (carryBody[c - 1] > 0) c++;\n const colspan = Math.max(1, Number(cell.getAttribute('colspan')) || 1);\n const rowspan = Math.max(1, Number(cell.getAttribute('rowspan')) || 1);\n\n const cStart = c,\n cEnd = c + colspan;\n const rEnd = rStart + rowspan;\n\n cell.style.gridColumn = `${cStart} / ${cEnd}`;\n cell.style.gridRow = `${rStart} / ${rEnd}`;\n (cell as any).dataset.cStart = String(cStart);\n\n for (let k = 0; k < colspan; k++) {\n const idx = c - 1 + k;\n carryBody[idx] = Math.max(carryBody[idx] || 0, rowspan);\n }\n maxRowspan = Math.max(maxRowspan, rowspan);\n c = cEnd;\n colCount = Math.max(colCount, cEnd - 1);\n });\n\n if (bg) {\n const rEnd = rStart + maxRowspan;\n bg.style.gridRow = `${rStart} / ${rEnd}`;\n }\n\n for (let i = 0; i < carryBody.length; i++)\n if (carryBody[i] > 0) carryBody[i]--;\n });\n\n return colCount;\n}\n\nfunction computeColumnWidths(\n nileGrid: NileGrid,\n colCount: number,\n columnWidths: number[]\n) {\n for (let col = 0; col < colCount; col++) {\n const containerWidth = (nileGrid.getBoundingClientRect().width || 1) - 2;\n columnWidths[col] =\n nileGrid.customWidths[col] || containerWidth / Math.max(colCount, 1);\n }\n}\n\nexport const layout = (\n nileGrid: NileGrid,\n slotEl: any,\n ensureWidths: any,\n rebuildTemplate: any,\n applyTemplate: any,\n columnWidths: any\n) => {\n const head = getHead(slotEl);\n const body = getBody(slotEl);\n if (!body) return;\n\n const headRows = head\n ? (Array.from(head.querySelectorAll('nile-grid-row')) as HTMLElement[])\n : [];\n const bodyRows = Array.from(\n body.querySelectorAll('nile-grid-row')\n ) as HTMLElement[];\n\n let colCount = 0;\n\n colCount = computeHeadLayout(headRows, [], colCount);\n colCount = computeBodyLayout(bodyRows, [], colCount);\n\n computeColumnWidths(nileGrid, colCount, columnWidths);\n\n ensureWidths(colCount);\n body.style.gridAutoRows = 'auto';\n body.style.overflowY = 'auto';\n nileGrid.colTemplate = rebuildTemplate(colCount, columnWidths);\n applyTemplate(head, body, nileGrid.colTemplate, nileGrid.colTemplate);\n};\n"],"names":["resizeLinesHandler","resizeStart","resizeEnd","col","widthPx","scrollHeight","columnWidths","e","style","display","height","left","Math","max","totalWidth","target","getAttribute","parseInt","i","listenToEventListeners","nileGrid","onResize","slotEl","_attachObserverAndLayout","addEventListener","removeEventListeners","n","removeEventListener","getHead","assignedElements","find","tagName","toLowerCase","getBody","rebuildTemplate","colCount","parts","explicit","push","concat","join","_export","applyTemplate","l","head","body","colTemplate","gridTemplateColumns","overflowX","layout","s","ensureWidths","headRows","Array","from","querySelectorAll","bodyRows","carryHead","forEach","row","rIdx","c","cells","rStart","cell","colspan","Number","rowspan","cStart","cEnd","rEnd","gridColumn","gridRow","dataset","String","k","idx","length","computeHeadLayout","carryBody","_e$shadowRoot","maxRowspan","bg","shadowRoot","querySelector","computeBodyLayout","containerWidth","getBoundingClientRect","width","customWidths","computeColumnWidths","gridAutoRows","overflowY"],"mappings":"wIAEaA,EAAqB,QAArBA,CAAAA,EACXC,GAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CAMA,CAAA,CAAA,GAJAN,IAAYO,KAAMC,CAAAA,OAAAA,CAAU,OAC5BP,CAAAA,CAAAA,CAAUM,MAAMC,OAAU,CAAA,OAA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AAKrC,CAAAA,KAAAA,CAAMmF,aAAe,MAC1B9C,CAAAA,CAAAA,CAAKrC,MAAMoF,SAAY,CAAA,MAAA,CACvBxE,CAAS0B,CAAAA,WAAAA,CAAcZ,EAAgBC,CAAU7B,CAAAA,EAAAA,CAAAA,CACjDoC,CAAcE,CAAAA,CAAAA,CAAMC,EAAMzB,CAAS0B,CAAAA,WAAAA,CAAa1B,CAAS0B,CAAAA,WAAAA,CAAY"}
1
+ {"version":3,"file":"nile-grid.utils.cjs.js","sources":["../../../src/nile-grid/nile-grid.utils.ts"],"sourcesContent":["import { NileGrid } from './nile-grid';\nimport { HeadItemEl } from './nile-grid.types';\n\nexport const resizeLinesHandler = (\n resizeStart: HTMLElement,\n resizeEnd: HTMLElement,\n col: number,\n scrollHeight: number,\n columnWidths: number[],\n) => {\n resizeStart.style.display = 'block';\n resizeEnd.style.display = 'block';\n resizeStart.style.height = scrollHeight + 'px';\n resizeEnd.style.height = scrollHeight + 'px';\n const floor = 60;\n const safe = (n: number) => Math.max(0, Math.round(n || 0));\n\n const sum = (arr: number[], endExclusive: number) =>\n safe(\n arr.slice(0, Math.max(0, endExclusive)).reduce((a, b) => a + (b || 0), 0)\n );\n\n const totalGridWidth = safe(columnWidths.reduce((a, b) => a + (b || 0), 0));\n const baseLeft = sum(columnWidths, col);\n const appliedColWidth = safe(Math.max(floor, columnWidths[col] ?? floor));\n let handleLeft = baseLeft + appliedColWidth;\n\n const minEdge = baseLeft + floor;\n const maxEdge = totalGridWidth;\n handleLeft = Math.min(Math.max(handleLeft, minEdge), maxEdge);\n\n resizeStart.style.left = `${handleLeft - 6}px`;\n resizeEnd.style.left = `${handleLeft - 2}px`;\n};\n\n\nexport const listenToEventListeners = (\n nileGrid: NileGrid,\n onResize: any,\n slotEl: any,\n _attachObserverAndLayout: any\n) => {\n nileGrid.addEventListener('nile-resize', onResize);\n nileGrid.addEventListener('nile-resize-start', () => {\n nileGrid.resizeStart.style.display = 'block';\n });\n nileGrid.addEventListener('nile-resize-end', () => {\n nileGrid.resizeStart.style.display = 'none';\n nileGrid.resizeEnd.style.display = 'none';\n });\n slotEl.addEventListener('slotchange', () => _attachObserverAndLayout());\n};\n\nexport const removeEventListeners = (\n nileGrid: NileGrid,\n onResize: any,\n slotEl: any,\n _attachObserverAndLayout: any\n) => {\n nileGrid.removeEventListener('nile-resize', onResize);\n nileGrid.removeEventListener('nile-resize-start', () => {\n nileGrid.resizeStart.style.display = 'block';\n });\n nileGrid.removeEventListener('nile-resize-end', () => {\n nileGrid.resizeStart.style.display = 'none';\n nileGrid.resizeEnd.style.display = 'none';\n });\n slotEl.removeEventListener('slotchange', () => _attachObserverAndLayout());\n};\n\nexport const getHead = (slotEl: any) => {\n const nodes = slotEl?.assignedElements() ?? [];\n return (\n (nodes.find(\n (n: any) => n.tagName.toLowerCase() === 'nile-grid-head'\n ) as HTMLElement) || null\n );\n};\n\nexport const getBody = (slotEl: any) => {\n const nodes = slotEl?.assignedElements() ?? [];\n return (\n (nodes.find(\n (n: any) => n.tagName.toLowerCase() === 'nile-grid-body'\n ) as HTMLElement) || null\n );\n};\n\nexport const rebuildTemplate = (\n colCount: number,\n columnWidths: number[]\n): string => {\n const parts: string[] = [];\n\n for (let i = 0; i < colCount; i++) {\n const explicit = columnWidths[i];\n if (i === colCount - 1) {\n parts.push(`minmax(${explicit}px, auto)`);\n } else {\n parts.push(`${explicit}px`);\n }\n }\n return parts.join(' ');\n};\n\nexport const applyTemplate = (\n head: HTMLElement | null,\n body: HTMLElement | null,\n colTemplate: string\n) => {\n if (head) head.style.gridTemplateColumns = colTemplate;\n if (body) {\n body.style.gridTemplateColumns = colTemplate;\n }\n};\n\nfunction layoutRows(\n rows: HTMLElement[],\n carry: number[],\n colCount: number,\n stickyLeftIndexes: number[],\n stickyRightIndexes: number[],\n columnWidths: number[],\n opts: {\n itemSelector: string;\n useStickyAttr?: boolean;\n handleRowBg?: boolean;\n }\n): number {\n rows.forEach((row, rIdx) => {\n let c = 1;\n const rStart = rIdx + 1;\n let maxRowspan = 1;\n\n let bg: HTMLElement | null = null;\n if (opts.handleRowBg) {\n bg = row.shadowRoot?.querySelector<HTMLElement>('[data-row-bg]') ?? null;\n if (bg) bg.style.gridColumn = `1 / -1`;\n }\n\n const items = Array.from(\n row.querySelectorAll(opts.itemSelector)\n ) as HTMLElement[];\n\n items.forEach((el) => {\n while ((carry[c - 1] || 0) > 0) c++;\n\n const colspan = Math.max(1, Number(el.getAttribute('colspan')) || 1);\n const rowspan = Math.max(1, Number(el.getAttribute('rowspan')) || 1);\n\n if (rowspan > 1) {\n el.style.position = \"absolute\";\n el.style.height = `${\n 50 * rowspan\n }px`;\n el.style.zIndex = \"1\";\n }\n\n const cStart = c;\n const cEnd = c + colspan;\n const rEnd = rStart + rowspan;\n\n el.style.gridColumn = `${cStart} / ${cEnd}`;\n el.style.gridRow = `${rStart} / ${rEnd}`;\n (el as any).dataset.cStart = String(cStart);\n\n if (opts.useStickyAttr && el.hasAttribute('colSticky')) {\n stickyLeftIndexes.push(cStart - 1);\n }\n\n if (opts.useStickyAttr && el.hasAttribute('lastColSticky')) {\n stickyRightIndexes.push(cStart - 1);\n }\n\n applySticky(el, cStart - 1, stickyLeftIndexes, stickyRightIndexes, columnWidths);\n\n for (let k = 0; k < colspan; k++) {\n const idx = c - 1 + k;\n carry[idx] = Math.max(carry[idx] || 0, rowspan);\n }\n\n maxRowspan = Math.max(maxRowspan, rowspan);\n c = cEnd;\n colCount = Math.max(colCount, cEnd - 1);\n });\n\n if (opts.handleRowBg && bg) {\n const rEnd = rStart + maxRowspan;\n bg.style.gridRow = `${rStart} / ${rEnd}`;\n }\n\n for (let i = 0; i < carry.length; i++) {\n if (carry[i] > 0) carry[i]--;\n }\n });\n\n return colCount;\n}\n\nfunction computeHeadLayout(\n headRows: HTMLElement[],\n carryHead: number[],\n colCount: number,\n stickyLeftIndexes: number[],\n stickyRightIndexes: number[],\n columnWidths: number[]\n): number {\n return layoutRows(\n headRows,\n carryHead,\n colCount,\n stickyLeftIndexes,\n stickyRightIndexes,\n columnWidths,\n {\n itemSelector: 'nile-grid-head-item',\n useStickyAttr: true,\n handleRowBg: false,\n }\n );\n}\n\nfunction computeBodyLayout(\n bodyRows: HTMLElement[],\n carryBody: number[],\n colCount: number,\n stickyLeftIndexes: number[],\n stickyRightIndexes: number[],\n columnWidths: number[]\n): number {\n return layoutRows(\n bodyRows,\n carryBody,\n colCount,\n stickyLeftIndexes,\n stickyRightIndexes,\n columnWidths,\n {\n itemSelector: 'nile-grid-cell-item',\n useStickyAttr: false,\n handleRowBg: true,\n }\n );\n}\n\nfunction computeColumnWidths(\n nileGrid: NileGrid,\n colCount: number,\n columnWidths: number[],\n slotEl: any\n) {\n const minCol = 60;\n const containerWidth = getContainerWidth(nileGrid);\n\n const desired = readDesiredFromHead(slotEl, colCount);\n const isSeeded = seedWidthsFromDesired(desired, columnWidths, minCol);\n\n distributeFlex(columnWidths, isSeeded, containerWidth, minCol);\n\n normalizeToContainer(columnWidths, containerWidth, minCol);\n\n clampAndRound(columnWidths, minCol);\n applyColumnsTemplate(nileGrid, columnWidths, slotEl);\n}\n\n\nfunction getContainerWidth(nileGrid: NileGrid): number {\n return Math.max(0, (nileGrid.getBoundingClientRect().width || 0) - 4);\n}\n\nfunction readDesiredFromHead(slotEl: any, colCount: number): (number | null)[] {\n const desired: (number | null)[] = Array(colCount).fill(null);\n const head = getHead(slotEl) as HTMLElement | null;\n if (!head) return desired;\n\n const headRows = Array.from(head.children).filter(\n el => el.tagName.toLowerCase() === 'nile-grid-row'\n ) as HTMLElement[];\n\n for (const row of headRows) {\n const items = Array.from(row.children).filter(\n el => el.tagName.toLowerCase() === 'nile-grid-head-item'\n ) as Array<HeadItemEl>;\n\n items\n .map(h => {\n const cStart = Number((h as any).dataset?.cStart) || 1;\n const colspan = Math.max(1, Number(h.getAttribute('colspan')) || 1);\n const attr = h.getAttribute('customWidth');\n const cw = attr != null ? Number(attr) : (h as any).customWidth ?? null;\n return { cStart, colspan, cw };\n })\n .filter(x => x.cw != null && !Number.isNaN(x.cw!))\n .sort((a, b) => {\n return a.colspan - b.colspan;\n })\n .forEach(({ cStart, colspan, cw }) => {\n const perCol = (cw as number) / colspan;\n for (let k = 0; k < colspan; k++) {\n const idx = cStart - 1 + k;\n if (idx >= 0 && idx < colCount && desired[idx] == null) {\n desired[idx] = perCol;\n }\n }\n });\n }\n return desired;\n}\n\nfunction seedWidthsFromDesired(\n desired: (number | null)[],\n columnWidths: number[],\n minCol: number\n): boolean[] {\n const isSeeded = Array(desired.length).fill(false);\n for (let i = 0; i < desired.length; i++) {\n const w = desired[i] ?? null;\n columnWidths[i] =\n w != null && !Number.isNaN(w) ? Math.max(minCol, Number(w)) : 0;\n isSeeded[i] = w != null && !Number.isNaN(w);\n }\n return isSeeded;\n}\n\nfunction distributeFlex(\n columnWidths: number[],\n isSeeded: boolean[],\n containerWidth: number,\n minCol: number\n) {\n const sumSeed = columnWidths.reduce((a, b) => a + b, 0);\n const remaining = containerWidth - sumSeed;\n const flexIdxs = Array.from(\n { length: columnWidths.length },\n (_, i) => i\n ).filter(i => !isSeeded[i]);\n if (flexIdxs.length === 0) return;\n\n const each = remaining / flexIdxs.length;\n for (const i of flexIdxs) columnWidths[i] = Math.max(minCol, each);\n}\n\nfunction normalizeToContainer(\n columnWidths: number[],\n containerWidth: number,\n minCol: number\n) {\n let total = columnWidths.reduce((a, b) => a + b, 0);\n\n if (total < containerWidth && columnWidths.length > 0) {\n const add = containerWidth - total;\n const weight = total || 1;\n for (let i = 0; i < columnWidths.length; i++) {\n columnWidths[i] += add * (columnWidths[i] / weight);\n }\n } else if (total > containerWidth) {\n let need = total - containerWidth;\n \n for (let iter = 0; iter < 8 && need > 0.5; iter++) {\n let weightSum = 0;\n const candidates: number[] = [];\n for (let i = 0; i < columnWidths.length; i++) {\n const reducible = Math.max(0, columnWidths[i] - minCol);\n if (reducible > 0) {\n candidates.push(i);\n weightSum += columnWidths[i];\n }\n }\n if (candidates.length === 0 || weightSum <= 0) break;\n\n let reduced = 0;\n for (const i of candidates) {\n const reducible = Math.max(0, columnWidths[i] - minCol);\n const share = columnWidths[i] / weightSum;\n const cut = Math.min(reducible, need * share);\n columnWidths[i] -= cut;\n reduced += cut;\n }\n need -= reduced;\n if (reduced < 0.5) break;\n }\n }\n}\n\nfunction clampAndRound(columnWidths: number[], minCol: number) {\n for (let i = 0; i < columnWidths.length; i++) {\n columnWidths[i] = Math.max(minCol, Math.round(columnWidths[i]));\n }\n}\n\nexport const layout = (\n nileGrid: NileGrid,\n slotEl: any,\n ensureWidths: any,\n rebuildTemplate: any,\n applyTemplate: any,\n stickyLeftIndexes: number[],\n stickyRightIndexes: number[]\n) => {\n const head = getHead(slotEl);\n const body = getBody(slotEl);\n if (!body) return;\n\n const headRows = head\n ? (Array.from(head.querySelectorAll('nile-grid-row')) as HTMLElement[])\n : [];\n const bodyRows = Array.from(\n body.querySelectorAll('nile-grid-row')\n ) as HTMLElement[];\n\n let colCount = 0;\n\n colCount = computeHeadLayout(\n headRows,\n [],\n colCount,\n stickyLeftIndexes,\n stickyRightIndexes,\n nileGrid.columnWidths\n );\n colCount = computeBodyLayout(\n bodyRows,\n [],\n colCount,\n stickyLeftIndexes,\n stickyRightIndexes,\n nileGrid.columnWidths\n );\n computeColumnWidths(nileGrid, colCount, nileGrid.columnWidths, slotEl);\n\n ensureWidths(colCount);\n body.style.gridAutoRows = 'auto';\n nileGrid.colTemplate = rebuildTemplate(colCount, nileGrid.columnWidths);\n applyTemplate(head, body, nileGrid.colTemplate, nileGrid.colTemplate);\n};\n\nfunction applySticky(\n el: HTMLElement,\n colIndex: number,\n stickyLeftIndexes: number[],\n stickyRightIndexes: number[],\n columnWidths: number[]\n) {\n const onLeft = stickyLeftIndexes.includes(colIndex);\n const onRight = stickyRightIndexes.includes(colIndex);\n\n if (!onLeft && !onRight) return;\n\n el.style.position = 'sticky';\n el.style.zIndex = '2';\n\n if (onLeft && !onRight) {\n const leftOrder = [...stickyLeftIndexes].sort((a, b) => a - b);\n const pos = leftOrder.indexOf(colIndex);\n let left = 0;\n for (let i = 0; i < pos; i++) left += columnWidths[leftOrder[i]] ?? 0;\n el.style.left = `${left}px`;\n return;\n }\n\n const rightOrder = [...stickyRightIndexes].sort((a, b) => b - a);\n const pos = rightOrder.indexOf(colIndex);\n\n const scroller = el.closest('nile-grid') as HTMLElement | null;\n const sb = scroller ? scroller.offsetWidth - scroller.clientWidth : 0;\n\n let right = sb;\n for (let i = 0; i < pos; i++) right += columnWidths[rightOrder[i]] ?? 0;\n\n el.style.right = `${right - 2}px`;\n}\n\n\nexport function applyColumnsTemplate(\n nileGrid: HTMLElement,\n columnWidths: number[],\n slotEl: HTMLElement\n) {\n const cols = columnWidths\n .map((w, idx) => {\n if (idx === columnWidths.length - 1) {\n return `minmax(${Math.round(w)}px, auto)`;\n }\n return `${Math.max(0, Math.round(w))}px`;\n })\n .join(' ');\n nileGrid.style.setProperty('--nile-grid-columns', cols);\n\n const head = slotEl.querySelector('nile-grid-head') as HTMLElement | null;\n if (head) {\n head.style.setProperty('--nile-grid-columns', cols);\n head\n .querySelectorAll('nile-grid-row')\n .forEach(r =>\n (r as HTMLElement).style.setProperty('--nile-grid-columns', cols)\n );\n }\n const body = slotEl.querySelector('nile-grid-body') as HTMLElement | null;\n if (body) {\n body.style.setProperty('--nile-grid-columns', cols);\n body\n .querySelectorAll('nile-grid-row')\n .forEach(r =>\n (r as HTMLElement).style.setProperty('--nile-grid-columns', cols)\n );\n }\n}\n"],"names":["layoutRows","rows","carry","colCount","stickyLeftIndexes","stickyRightIndexes","columnWidths","opts","forEach","row","rIdx","_t$shadowRoot$querySe","_t$shadowRoot","c","rStart","maxRowspan","bg","handleRowBg","shadowRoot","querySelector","style","gridColumn","Array","from","querySelectorAll","itemSelector","el","colspan","Math","max","Number","getAttribute","rowspan","position","height","zIndex","cStart","cEnd","rEnd","gridRow","concat","dataset","String","useStickyAttr","hasAttribute","push","colIndex","onLeft","includes","onRight","leftOrder","_toConsumableArray","sort","a","b","pos","indexOf","left","i","rightOrder","scroller","closest","right","offsetWidth","clientWidth","applySticky","k","idx","length","computeColumnWidths","nileGrid","slotEl","containerWidth","getBoundingClientRect","width","getContainerWidth","desired","fill","head","getHead","headRows","children","filter","tagName","toLowerCase","_iterator","_createForOfIteratorHelper","_step","s","n","done","map","h","attr","cw","customWidth","x","isNaN","_ref","perCol","err","e","f","readDesiredFromHead","isSeeded","minCol","_t$_o","w","seedWidthsFromDesired","sumSeed","reduce","remaining","flexIdxs","_","each","_iterator2","_step2","distributeFlex","total","add","weight","need","iter","weightSum","candidates","reduced","_i2","_r5","reducible","share","cut","min","normalizeToContainer","round","clampAndRound","applyColumnsTemplate","cols","join","setProperty","r","body","resizeLinesHandler","t","resizeStart","resizeEnd","col","scrollHeight","display","safe","totalGridWidth","baseLeft","endExclusive","slice","handleLeft","_o$e","minEdge","maxEdge","_export","listenToEventListeners","onResize","_attachObserverAndLayout","addEventListener","removeEventListeners","removeEventListener","assignedElements","_t$assignedElements","find","getBody","rebuildTemplate","l","parts","explicit","applyTemplate","colTemplate","gridTemplateColumns","layout","ensureWidths","bodyRows","carryHead","computeHeadLayout","carryBody","computeBodyLayout","gridAutoRows"],"mappings":"+vDAoHA,QAASA,CAAAA,CAAAA,CACPC,CACAC,CAAAA,CAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CAAAA,CAyEA,MAnEAN,CAAAA,CAAAA,CAAKO,OAAQ,CAAA,SAACC,EAAKC,CACjB,CAAA,KAAAC,qBAAA,CAAAC,aAAA,CAAA,GAAIC,CAAAA,CAAI,CAAA,CAAA,CACR,GAAMC,CAAAA,CAASJ,CAAAA,CAAAA,CAAO,CACtB,CAAA,GAAIK,CAAAA,EAAa,CAEbC,CAAAA,CAAAA,CAAyB,IACzBT,CAAAA,CAAAA,CAAKU,cACPD,CAAKP,EAAAA,qBAAAA,EAAAA,aAAAA,CAAAA,CAAAA,CAAIS,UAAYC,UAAAA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AC,CACA,CAAA,CACEmB,aAAc,qBACdkB,CAAAA,aAAAA,CAAAA,CAAe,CACf1B,CAAAA,WAAAA,CAAAA,CAAa,CAGnB,CAAA,CAAA,EAgMakK,CACTnG,CAAAA,CACA,GACA7E,CACAC,CAAAA,EAAAA,CACAC,CACAiE,CAAAA,CAAAA,CAAShE,cAEXH,CAtMF,CAAA,SACE8K,CACAG,CAAAA,CAAAA,CACAjL,EACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,MAAON,CAAAA,EACLiL,CACAG,CAAAA,CAAAA,CACAjL,CACAC,CAAAA,CAAAA,CACAC,EACAC,CACA,CAAA,CACEmB,YAAc,CAAA,qBAAA,CACdkB,eAAe,CACf1B,CAAAA,WAAAA,CAAAA,CAAa,CAGnB,CAAA,CAAA,EAiLaoK,CACTJ,CACA,CAAA,EAAA,CACA9K,CACAC,CAAAA,EAAAA,CACAC,CACAiE,CAAAA,CAAAA,CAAShE,YAEX+D,CAAAA,CAAAA,CAAAA,CAAoBC,EAAUnE,CAAUmE,CAAAA,CAAAA,CAAShE,YAAciE,CAAAA,CAAAA,CAAAA,CAE/DyG,EAAa7K,CACbyI,CAAAA,CAAAA,CAAAA,CAAKxH,KAAMkK,CAAAA,YAAAA,CAAe,OAC1BhH,CAASuG,CAAAA,WAAAA,CAAcL,CAAgBrK,CAAAA,CAAAA,CAAUmE,EAAShE,YAC1DsK,CAAAA,CAAAA,CAAAA,CAAc9F,CAAM8D,CAAAA,CAAAA,CAAMtE,EAASuG,WAAavG,CAAAA,CAAAA,CAASuG,WAAY,CAAA,EAAA"}
@@ -1 +1 @@
1
- const e=(e,t,n,r,o,a,l)=>{if(e.style.display="block",t.style.display="block",e.style.height=o+"px",t.style.height=o+"px",0===n)e.style.left=Math.max(60,r)-6+"px",t.style.left=Math.max(60,r)-2+"px";else{let o=0;if(l.target.getAttribute("colspan")&&parseInt(l.target.getAttribute("colspan"))>1){r-=a[n-1];for(let e=0;e<n;e++)o+=a[e]}else for(let e=0;e<n;e++)o+=a[e];e.style.left=o+Math.max(60,r)-6+"px",t.style.left=o+Math.max(60,r)-2+"px"}},t=(e,t,n,r)=>{e.addEventListener("nile-resize",t),e.addEventListener("nile-resize-start",(()=>{e.resizeStart.style.display="block"})),e.addEventListener("nile-resize-end",(()=>{e.resizeStart.style.display="none",e.resizeEnd.style.display="none"})),n.addEventListener("slotchange",(()=>r()))},n=(e,t,n,r)=>{e.removeEventListener("nile-resize",t),e.removeEventListener("nile-resize-start",(()=>{e.resizeStart.style.display="block"})),e.removeEventListener("nile-resize-end",(()=>{e.resizeStart.style.display="none",e.resizeEnd.style.display="none"})),n.removeEventListener("slotchange",(()=>r()))},r=e=>(e?.assignedElements()??[]).find((e=>"nile-grid-head"===e.tagName.toLowerCase()))||null,o=e=>(e?.assignedElements()??[]).find((e=>"nile-grid-body"===e.tagName.toLowerCase()))||null,a=(e,t)=>{const n=[];for(let r=0;r<e;r++){const o=t[r];r===e-1?n.push(`minmax(${o}px, auto)`):n.push(`${o}px`)}return n.join(" ")},l=(e,t,n)=>{e&&(e.style.gridTemplateColumns=n),t&&(t.style.gridTemplateColumns=n,t.style.overflowX="auto")};const s=(e,t,n,a,l,s)=>{const i=r(t),c=o(t);if(!c)return;const h=i?Array.from(i.querySelectorAll("nile-grid-row")):[],f=Array.from(c.querySelectorAll("nile-grid-row"));let u=0;u=function(e,t,n){return e.forEach(((e,r)=>{let o=1;const a=Array.from(e.querySelectorAll("nile-grid-head-item, nile-grid-cell")),l=r+1;a.forEach((e=>{for(;t[o-1]>0;)o++;const r=Math.max(1,Number(e.getAttribute("colspan"))||1),a=Math.max(1,Number(e.getAttribute("rowspan"))||1),s=o,i=o+r,c=l+a;e.style.gridColumn=`${s} / ${i}`,e.style.gridRow=`${l} / ${c}`,e.dataset.cStart=String(s);for(let e=0;e<r;e++){const n=o-1+e;t[n]=Math.max(t[n]||0,a)}o=i,n=Math.max(n,i-1)}));for(let e=0;e<t.length;e++)t[e]>0&&t[e]--})),n}(h,[],u),u=function(e,t,n){return e.forEach(((e,r)=>{let o=1;const a=Array.from(e.querySelectorAll("nile-grid-cell, nile-grid-header")),l=r+1;let s=1;const i=e.shadowRoot?.querySelector("[data-row-bg]");if(i&&(i.style.gridColumn="1 / -1"),a.forEach((e=>{for(;t[o-1]>0;)o++;const r=Math.max(1,Number(e.getAttribute("colspan"))||1),a=Math.max(1,Number(e.getAttribute("rowspan"))||1),i=o,c=o+r,h=l+a;e.style.gridColumn=`${i} / ${c}`,e.style.gridRow=`${l} / ${h}`,e.dataset.cStart=String(i);for(let e=0;e<r;e++){const n=o-1+e;t[n]=Math.max(t[n]||0,a)}s=Math.max(s,a),o=c,n=Math.max(n,c-1)})),i){const e=l+s;i.style.gridRow=`${l} / ${e}`}for(let e=0;e<t.length;e++)t[e]>0&&t[e]--})),n}(f,[],u),function(e,t,n){for(let r=0;r<t;r++){const o=(e.getBoundingClientRect().width||1)-2;n[r]=e.customWidths[r]||o/Math.max(t,1)}}(e,u,s),n(u),c.style.gridAutoRows="auto",c.style.overflowY="auto",e.colTemplate=a(u,s),l(i,c,e.colTemplate,e.colTemplate)};export{a,l as b,r as c,t as d,n as e,o as g,s as l,e as r};
1
+ const t=(t,n,e,r,o)=>{t.style.display="block",n.style.display="block",t.style.height=r+"px",n.style.height=r+"px";const l=t=>Math.max(0,Math.round(t||0)),i=l(o.reduce(((t,n)=>t+(n||0)),0)),c=(s=e,l(o.slice(0,Math.max(0,s)).reduce(((t,n)=>t+(n||0)),0)));var s;let a=c+l(Math.max(60,o[e]??60));const u=c+60,f=i;a=Math.min(Math.max(a,u),f),t.style.left=a-6+"px",n.style.left=a-2+"px"},n=(t,n,e,r)=>{t.addEventListener("nile-resize",n),t.addEventListener("nile-resize-start",(()=>{t.resizeStart.style.display="block"})),t.addEventListener("nile-resize-end",(()=>{t.resizeStart.style.display="none",t.resizeEnd.style.display="none"})),e.addEventListener("slotchange",(()=>r()))},e=(t,n,e,r)=>{t.removeEventListener("nile-resize",n),t.removeEventListener("nile-resize-start",(()=>{t.resizeStart.style.display="block"})),t.removeEventListener("nile-resize-end",(()=>{t.resizeStart.style.display="none",t.resizeEnd.style.display="none"})),e.removeEventListener("slotchange",(()=>r()))},r=t=>(t?.assignedElements()??[]).find((t=>"nile-grid-head"===t.tagName.toLowerCase()))||null,o=t=>(t?.assignedElements()??[]).find((t=>"nile-grid-body"===t.tagName.toLowerCase()))||null,l=(t,n)=>{const e=[];for(let r=0;r<t;r++){const o=n[r];r===t-1?e.push(`minmax(${o}px, auto)`):e.push(`${o}px`)}return e.join(" ")},i=(t,n,e)=>{t&&(t.style.gridTemplateColumns=e),n&&(n.style.gridTemplateColumns=e)};function c(t,n,e,r,o,l,i){return t.forEach(((t,c)=>{let s=1;const a=c+1;let u=1,f=null;i.handleRowBg&&(f=t.shadowRoot?.querySelector("[data-row-bg]")??null,f&&(f.style.gridColumn="1 / -1"));if(Array.from(t.querySelectorAll(i.itemSelector)).forEach((t=>{for(;(n[s-1]||0)>0;)s++;const c=Math.max(1,Number(t.getAttribute("colspan"))||1),f=Math.max(1,Number(t.getAttribute("rowspan"))||1);f>1&&(t.style.position="absolute",t.style.height=50*f+"px",t.style.zIndex="1");const h=s,d=s+c,g=a+f;t.style.gridColumn=`${h} / ${d}`,t.style.gridRow=`${a} / ${g}`,t.dataset.cStart=String(h),i.useStickyAttr&&t.hasAttribute("colSticky")&&r.push(h-1),i.useStickyAttr&&t.hasAttribute("lastColSticky")&&o.push(h-1),function(t,n,e,r,o){const l=e.includes(n),i=r.includes(n);if(!l&&!i)return;if(t.style.position="sticky",t.style.zIndex="2",l&&!i){const r=[...e].sort(((t,n)=>t-n)),l=r.indexOf(n);let i=0;for(let t=0;t<l;t++)i+=o[r[t]]??0;return void(t.style.left=`${i}px`)}const c=[...r].sort(((t,n)=>n-t)),s=c.indexOf(n),a=t.closest("nile-grid");let u=a?a.offsetWidth-a.clientWidth:0;for(let t=0;t<s;t++)u+=o[c[t]]??0;t.style.right=u-2+"px"}(t,h-1,r,o,l);for(let t=0;t<c;t++){const e=s-1+t;n[e]=Math.max(n[e]||0,f)}u=Math.max(u,f),s=d,e=Math.max(e,d-1)})),i.handleRowBg&&f){const t=a+u;f.style.gridRow=`${a} / ${t}`}for(let t=0;t<n.length;t++)n[t]>0&&n[t]--})),e}function s(t,n,e,o){const l=function(t){return Math.max(0,(t.getBoundingClientRect().width||0)-4)}(t),i=function(t,n){const e=Array(n).fill(null),o=r(t);if(!o)return e;const l=Array.from(o.children).filter((t=>"nile-grid-row"===t.tagName.toLowerCase()));for(const t of l){Array.from(t.children).filter((t=>"nile-grid-head-item"===t.tagName.toLowerCase())).map((t=>{const n=Number(t.dataset?.cStart)||1,e=Math.max(1,Number(t.getAttribute("colspan"))||1),r=t.getAttribute("customWidth");return{cStart:n,colspan:e,cw:null!=r?Number(r):t.customWidth??null}})).filter((t=>null!=t.cw&&!Number.isNaN(t.cw))).sort(((t,n)=>t.colspan-n.colspan)).forEach((({cStart:t,colspan:r,cw:o})=>{const l=o/r;for(let o=0;o<r;o++){const r=t-1+o;r>=0&&r<n&&null==e[r]&&(e[r]=l)}}))}return e}(o,n),c=function(t,n,e){const r=Array(t.length).fill(!1);for(let o=0;o<t.length;o++){const l=t[o]??null;n[o]=null==l||Number.isNaN(l)?0:Math.max(e,Number(l)),r[o]=null!=l&&!Number.isNaN(l)}return r}(i,e,60);!function(t,n,e,r){const o=t.reduce(((t,n)=>t+n),0),l=e-o,i=Array.from({length:t.length},((t,n)=>n)).filter((t=>!n[t]));if(0===i.length)return;const c=l/i.length;for(const n of i)t[n]=Math.max(r,c)}(e,c,l,60),function(t,n,e){let r=t.reduce(((t,n)=>t+n),0);if(r<n&&t.length>0){const e=n-r,o=r||1;for(let n=0;n<t.length;n++)t[n]+=e*(t[n]/o)}else if(r>n){let o=r-n;for(let n=0;n<8&&o>.5;n++){let n=0;const r=[];for(let o=0;o<t.length;o++){Math.max(0,t[o]-e)>0&&(r.push(o),n+=t[o])}if(0===r.length||n<=0)break;let l=0;for(const i of r){const r=Math.max(0,t[i]-e),c=t[i]/n,s=Math.min(r,o*c);t[i]-=s,l+=s}if(o-=l,l<.5)break}}}(e,l,60),function(t,n){for(let e=0;e<t.length;e++)t[e]=Math.max(n,Math.round(t[e]))}(e,60),u(t,e,o)}const a=(t,n,e,l,i,a,u)=>{const f=r(n),h=o(n);if(!h)return;const d=f?Array.from(f.querySelectorAll("nile-grid-row")):[],g=Array.from(h.querySelectorAll("nile-grid-row"));let m=0;m=function(t,n,e,r,o,l){return c(t,n,e,r,o,l,{itemSelector:"nile-grid-head-item",useStickyAttr:!0,handleRowBg:!1})}(d,[],m,a,u,t.columnWidths),m=function(t,n,e,r,o,l){return c(t,n,e,r,o,l,{itemSelector:"nile-grid-cell-item",useStickyAttr:!1,handleRowBg:!0})}(g,[],m,a,u,t.columnWidths),s(t,m,t.columnWidths,n),e(m),h.style.gridAutoRows="auto",t.colTemplate=l(m,t.columnWidths),i(f,h,t.colTemplate,t.colTemplate)};function u(t,n,e){const r=n.map(((t,e)=>e===n.length-1?`minmax(${Math.round(t)}px, auto)`:`${Math.max(0,Math.round(t))}px`)).join(" ");t.style.setProperty("--nile-grid-columns",r);const o=e.querySelector("nile-grid-head");o&&(o.style.setProperty("--nile-grid-columns",r),o.querySelectorAll("nile-grid-row").forEach((t=>t.style.setProperty("--nile-grid-columns",r))));const l=e.querySelector("nile-grid-body");l&&(l.style.setProperty("--nile-grid-columns",r),l.querySelectorAll("nile-grid-row").forEach((t=>t.style.setProperty("--nile-grid-columns",r))))}export{l as a,i as b,r as c,u as d,n as e,e as f,o as g,a as l,t as r};
@@ -1,2 +1,2 @@
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));}};});
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 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(_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 t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-body-base\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[e];}}]);}(o));_export("N",i=r([s("nile-grid-body")],i));}};});
2
2
  //# sourceMappingURL=nile-grid-body.cjs.js.map
@@ -1 +1 @@
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
+ {"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 { 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 part=\"grid-body-base\">\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,yFAKZ,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 +1,2 @@
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"]))));}};});
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 box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n }\n"]))));}};});
2
2
  //# sourceMappingURL=nile-grid-body.css.cjs.js.map
@@ -1 +1 @@
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
+ {"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 box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\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 +1,6 @@
1
1
  import{css as o}from"lit";const r=o`
2
2
  :host {
3
- display: grid;
4
- overflow-y: auto;
5
- overflow-x: visible;
6
3
  box-sizing: border-box;
7
4
  background-color: var(--nile-colors-white-base);
8
- height: 100%;
9
5
  }
10
6
  `;export{r as s};
@@ -1,5 +1,5 @@
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;">
1
+ import{__decorate as r}from"tslib";import{html as e}from"lit";import{customElement as t}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 part="grid-body-base">
3
3
  <slot></slot>
4
4
  </div>
5
- `}};i=t([r("nile-grid-body")],i);export{i as N};
5
+ `}};i=r([t("nile-grid-body")],i);export{i as N};
@@ -1,2 +1,2 @@
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));}};});
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 e,t,i,r,s,l,o,a,c,_templateObject,_templateObject2,n;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){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){s=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;a=_nileGridCellItemUtilsCjsJs.c;c=_nileGridCellItemUtilsCjsJs.a;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_l){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.onHandlePointerDown=function(e){var t=_assertThisInitialized(_this),i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;var l=s.target,_n=s.col,m=function m(e){return a(t,_n,r.value,i.value,e);},p=function p(){return c(t,e,l,m);};l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0});};return _this;}_inherits(n,_l);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(n,"connectedCallback",this,3)([]),this.setAttribute("role","cell");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"cell-item-base\" part=\"cell-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_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));e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],n.prototype,"resizable",void 0),_export("N",n=e([r("nile-grid-cell-item")],n));}};});
2
2
  //# sourceMappingURL=nile-grid-cell-item.cjs.js.map
@@ -1 +1 @@
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":"g2HAwBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,CACVD,CAA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,CAAA,CAGvC9C,EAAA+C,SAAA,CAAA,QAAA,CAAA,IAAA,IACgDN,CAAA,CAAA,CAA5DC,EAAS,CAAEC,IAAAA,CAAMM,QAASJ,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAA0B9C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+C,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAClBN,EAAA,CAA5DC,CAAAA,CAAS,CAAEC,IAAMM,CAAAA,OAAAA,CAASJ,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAA2D9C,CAAA+C,CAAAA,SAAAA,CAAA,uBAAA,EApBrG/C,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAgByC,EAAA,CAD5BS,CAAAA,CAAc,wBACFlD"}
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 { 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: Boolean, reflect: true, attribute: true }) resizable = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'cell');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n \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 class=\"cell-item-base\" part=\"cell-item-base\">\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","_l","n","this","colspan","rowspan","resizable","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initCellResize","target","col","move","e","cellResizeMove","done","p","cellResizeDone","addEventListener","once","_this","_inherits","_createClass","key","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","__decorate","get","styles","NileElement","property","type","Number","reflect","attribute","prototype","Boolean","_export","customElement"],"mappings":"g2HAwBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEASuDC,EAAAA,KAAAA,CAAOC,OAAG,CAAA,CAAA,CACVD,KAAAA,CAAOE,OAAAA,CAAG,EACTF,KAAAA,CAASG,SAAAA,CAAAA,CAAG,CAOjEH,CAAAA,KAAAA,CAAAI,mBAAuBC,CAAAA,SAAAA,CAAAA,CAAAA,CAE7B,GAAMC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,CAEAC,CAAAA,CAAAA,CAAW,CAAEC,KAAAA,CAAO,CACpBC,CAAAA,CA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,8HAGLhC,IAAAA,CAAKG,UACH2B,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,kLAIehC,IAAKI,CAAAA,mBAAAA,EAGxB,IAAA,EAGT,CA7C2D8B,KAAAA,GAAAA,UAAAA,GAAAA,CAJrD,SAAAC,IAAA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAMD,MAboCC,CAA/B,GASuDH,CAAAA,CAAA,CAA3DI,CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,EAAMC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB7C,EAAA8C,SAAA,CAAA,SAAA,CAAA,IAAA,IACZT,CAAA,CAAA,CAA3DI,EAAS,CAAEC,IAAAA,CAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAoB7C,CAAA8C,CAAAA,SAAAA,CAAA,cAAA,EACXT,CAAAA,CAAAA,CAAAA,CAAA,CAA5DI,CAAS,CAAA,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAA0B7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8C,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAAAE,OAAA,KAXpEhD,EAAgBqC,CAAA,CAAA,CAD5BY,CAAc,CAAA,qBAAA,CAAA,CAAA,CACFjD"}
@@ -1,2 +1,2 @@
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"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_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){e=_lit.css;}],execute:function execute(){_export("s",i=e(_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 font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-weight-regular);\n background-color: #FFFFFF;\n min-height: 44px;\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: min-content;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\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 display: none;\n }\n"]))));}};});
2
2
  //# sourceMappingURL=nile-grid-cell-item.css.cjs.js.map
@@ -1 +1 @@
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
+ {"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 font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-weight-regular);\n background-color: #FFFFFF;\n min-height: 44px;\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: min-content;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\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 display: none;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,4 +1,4 @@
1
- import{css as o}from"lit";const i=o`
1
+ import{css as e}from"lit";const i=e`
2
2
  :host {
3
3
  --padding: var(--nile-spacing-xl) var(--nile-spacing-3xl);
4
4
  box-sizing: border-box;
@@ -10,8 +10,17 @@ import{css as o}from"lit";const i=o`
10
10
  padding: var(--padding);
11
11
  height: auto;
12
12
  border-bottom: 1px solid var(--nile-colors-neutral-400);
13
- border-right: 1px solid var(--nile-colors-neutral-400);
14
- position: relative;
13
+ font-size: 14px;
14
+ font-weight: 400;
15
+ font-family: var(--nile-font-weight-regular);
16
+ background-color: #FFFFFF;
17
+ min-height: 44px;
18
+ }
19
+
20
+ .cell-item-base {
21
+ width: 100%;
22
+ overflow: hidden;
23
+ text-overflow: ellipsis;
15
24
  }
16
25
 
17
26
  ::slotted(*) {
@@ -21,6 +30,11 @@ import{css as o}from"lit";const i=o`
21
30
  width: min-content;
22
31
  }
23
32
 
33
+ :host(:last-child) .resize-handle {
34
+ border-right: none;
35
+ display: none;
36
+ }
37
+
24
38
  .resize-handle {
25
39
  position: absolute;
26
40
  top: 0;
@@ -31,5 +45,6 @@ import{css as o}from"lit";const i=o`
31
45
  z-index: 1;
32
46
  width: 2px;
33
47
  border-right: 1px solid var(--nile-colors-neutral-400);
48
+ display: none;
34
49
  }
35
50
  `;export{i as s};
@@ -1,5 +1,5 @@
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;">
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 a,a as n}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.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,m=e=>a(t,c,r.value,i.value,e),p=()=>n(t,e,l,m);l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
2
+ <div class="cell-item-base" part="cell-item-base">
3
3
  <slot></slot>
4
4
  ${this.resizable?t`
5
5
  <div
@@ -9,4 +9,4 @@ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as
9
9
  ></div>
10
10
  `:null}
11
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};
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:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),c=e([r("nile-grid-cell-item")],c);export{c as N};
@@ -1,2 +1,2 @@
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));}};});
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 r,t,e,s,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){r=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;},function(_nileGridHeadCssCjsJs){s=_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 t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-base\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[s];}}]);}(i));_export("N",o=r([e("nile-grid-head")],o));}};});
2
2
  //# sourceMappingURL=nile-grid-head.cjs.js.map