@aquera/nile-elements 1.6.2 → 1.6.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 (747) hide show
  1. package/README.md +16 -0
  2. package/demo/variables.css +1 -0
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +527 -339
  6. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js +2 -0
  7. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js.map +1 -0
  8. package/dist/internal/accessibility/a11y.custom-value.enum.esm.js +1 -0
  9. package/dist/internal/accessibility/a11y.property.enum.cjs.js +2 -0
  10. package/dist/internal/accessibility/a11y.property.enum.cjs.js.map +1 -0
  11. package/dist/internal/accessibility/a11y.property.enum.esm.js +1 -0
  12. package/dist/internal/accessibility/a11y.role.enum.cjs.js +2 -0
  13. package/dist/internal/accessibility/a11y.role.enum.cjs.js.map +1 -0
  14. package/dist/internal/accessibility/a11y.role.enum.esm.js +1 -0
  15. package/dist/internal/accessibility/a11y.state.enum.cjs.js +2 -0
  16. package/dist/internal/accessibility/a11y.state.enum.cjs.js.map +1 -0
  17. package/dist/internal/accessibility/a11y.state.enum.esm.js +1 -0
  18. package/dist/internal/accessibility/accessibility.const.cjs.js +2 -0
  19. package/dist/internal/accessibility/accessibility.const.cjs.js.map +1 -0
  20. package/dist/internal/accessibility/accessibility.const.esm.js +1 -0
  21. package/dist/internal/accessibility/role.enum.cjs.js +2 -0
  22. package/dist/internal/accessibility/role.enum.cjs.js.map +1 -0
  23. package/dist/internal/accessibility/role.enum.esm.js +1 -0
  24. package/dist/internal/nile-element.cjs.js +1 -1
  25. package/dist/internal/nile-element.cjs.js.map +1 -1
  26. package/dist/internal/nile-element.esm.js +1 -1
  27. package/dist/nile-accordion/index.cjs.js +1 -1
  28. package/dist/nile-accordion/index.esm.js +1 -1
  29. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  30. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  31. package/dist/nile-accordion/nile-accordion.esm.js +2 -2
  32. package/dist/nile-auto-complete/index.cjs.js +1 -1
  33. package/dist/nile-auto-complete/index.esm.js +1 -1
  34. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  35. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  36. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  37. package/dist/nile-avatar/index.cjs.js +1 -1
  38. package/dist/nile-avatar/index.esm.js +1 -1
  39. package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
  40. package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
  41. package/dist/nile-avatar/nile-avatar.esm.js +3 -1
  42. package/dist/nile-badge/index.cjs.js +1 -1
  43. package/dist/nile-badge/index.esm.js +1 -1
  44. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  45. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  46. package/dist/nile-badge/nile-badge.esm.js +2 -2
  47. package/dist/nile-breadcrumb/index.cjs.js +1 -1
  48. package/dist/nile-breadcrumb/index.esm.js +1 -1
  49. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +1 -1
  50. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -1
  51. package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +1 -1
  52. package/dist/nile-breadcrumb-item/index.cjs.js +1 -1
  53. package/dist/nile-breadcrumb-item/index.esm.js +1 -1
  54. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +1 -1
  55. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -1
  56. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +4 -4
  57. package/dist/nile-button/index.cjs.js +1 -1
  58. package/dist/nile-button/index.esm.js +1 -1
  59. package/dist/nile-button/nile-button.cjs.js +1 -1
  60. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  61. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  62. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  63. package/dist/nile-button/nile-button.css.esm.js +5 -0
  64. package/dist/nile-button/nile-button.esm.js +1 -1
  65. package/dist/nile-button-filter/index.cjs.js +1 -1
  66. package/dist/nile-button-filter/index.esm.js +1 -1
  67. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  68. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  69. package/dist/nile-button-filter/nile-button-filter.esm.js +7 -7
  70. package/dist/nile-button-toggle/index.cjs.js +1 -1
  71. package/dist/nile-button-toggle/index.esm.js +1 -1
  72. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +1 -1
  73. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -1
  74. package/dist/nile-button-toggle/nile-button-toggle.esm.js +2 -2
  75. package/dist/nile-button-toggle-group/index.cjs.js +1 -1
  76. package/dist/nile-button-toggle-group/index.esm.js +1 -1
  77. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
  78. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
  79. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
  80. package/dist/nile-calendar/index.cjs.js +1 -1
  81. package/dist/nile-calendar/index.esm.js +1 -1
  82. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  83. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  84. package/dist/nile-calendar/nile-calendar.esm.js +4 -4
  85. package/dist/nile-card/index.cjs.js +1 -1
  86. package/dist/nile-card/index.esm.js +1 -1
  87. package/dist/nile-card/nile-card.cjs.js +1 -1
  88. package/dist/nile-card/nile-card.cjs.js.map +1 -1
  89. package/dist/nile-card/nile-card.esm.js +2 -2
  90. package/dist/nile-carousel/index.cjs.js +1 -1
  91. package/dist/nile-carousel/index.esm.js +1 -1
  92. package/dist/nile-carousel/nile-carousel-item/index.cjs.js +1 -1
  93. package/dist/nile-carousel/nile-carousel-item/index.esm.js +1 -1
  94. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js +1 -1
  95. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js.map +1 -1
  96. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.esm.js +2 -2
  97. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  98. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  99. package/dist/nile-carousel/nile-carousel.esm.js +1 -1
  100. package/dist/nile-checkbox/index.cjs.js +1 -1
  101. package/dist/nile-checkbox/index.esm.js +1 -1
  102. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  103. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  104. package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
  105. package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
  106. package/dist/nile-checkbox/nile-checkbox.css.esm.js +4 -0
  107. package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
  108. package/dist/nile-checkbox-group/index.cjs.js +2 -0
  109. package/dist/nile-checkbox-group/index.cjs.js.map +1 -0
  110. package/dist/nile-checkbox-group/index.esm.js +1 -0
  111. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js +2 -0
  112. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js.map +1 -0
  113. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js +2 -0
  114. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js.map +1 -0
  115. package/dist/nile-checkbox-group/nile-checkbox-group.css.esm.js +68 -0
  116. package/dist/nile-checkbox-group/nile-checkbox-group.esm.js +56 -0
  117. package/dist/nile-chip/index.cjs.js +1 -1
  118. package/dist/nile-chip/index.esm.js +1 -1
  119. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  120. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  121. package/dist/nile-chip/nile-chip.esm.js +2 -2
  122. package/dist/nile-circular-progressbar/index.cjs.js +1 -1
  123. package/dist/nile-circular-progressbar/index.esm.js +1 -1
  124. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  125. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  126. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +2 -2
  127. package/dist/nile-code-editor/index.cjs.js +1 -1
  128. package/dist/nile-code-editor/index.esm.js +1 -1
  129. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  130. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  131. package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
  132. package/dist/nile-content-editor/index.cjs.js +1 -1
  133. package/dist/nile-content-editor/index.esm.js +1 -1
  134. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  135. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  136. package/dist/nile-content-editor/nile-content-editor.esm.js +5 -5
  137. package/dist/nile-date-picker/index.cjs.js +1 -1
  138. package/dist/nile-date-picker/index.esm.js +1 -1
  139. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  140. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  141. package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
  142. package/dist/nile-detail/index.cjs.js +1 -1
  143. package/dist/nile-detail/index.esm.js +1 -1
  144. package/dist/nile-detail/nile-detail.cjs.js +1 -1
  145. package/dist/nile-detail/nile-detail.cjs.js.map +1 -1
  146. package/dist/nile-detail/nile-detail.esm.js +2 -2
  147. package/dist/nile-dialog/index.cjs.js +1 -1
  148. package/dist/nile-dialog/index.esm.js +1 -1
  149. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  150. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  151. package/dist/nile-dialog/nile-dialog.esm.js +2 -2
  152. package/dist/nile-divider/index.cjs.js +1 -1
  153. package/dist/nile-divider/index.esm.js +1 -1
  154. package/dist/nile-divider/nile-divider.cjs.js +1 -1
  155. package/dist/nile-divider/nile-divider.cjs.js.map +1 -1
  156. package/dist/nile-divider/nile-divider.esm.js +2 -2
  157. package/dist/nile-drawer/index.cjs.js +1 -1
  158. package/dist/nile-drawer/index.esm.js +1 -1
  159. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  160. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  161. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  162. package/dist/nile-dropdown/index.cjs.js +1 -1
  163. package/dist/nile-dropdown/index.esm.js +1 -1
  164. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  165. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  166. package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
  167. package/dist/nile-empty-state/index.cjs.js +1 -1
  168. package/dist/nile-empty-state/index.esm.js +1 -1
  169. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  170. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  171. package/dist/nile-empty-state/nile-empty-state.esm.js +2 -2
  172. package/dist/nile-file-preview/index.cjs.js +1 -1
  173. package/dist/nile-file-preview/index.esm.js +1 -1
  174. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  175. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  176. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  177. package/dist/nile-file-upload/index.cjs.js +1 -1
  178. package/dist/nile-file-upload/index.esm.js +1 -1
  179. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  180. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  181. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  182. package/dist/nile-filter-chip/index.cjs.js +1 -1
  183. package/dist/nile-filter-chip/index.esm.js +1 -1
  184. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  185. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  186. package/dist/nile-filter-chip/nile-filter-chip.esm.js +2 -2
  187. package/dist/nile-floating-panel/index.cjs.js +1 -1
  188. package/dist/nile-floating-panel/index.esm.js +1 -1
  189. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  190. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
  191. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
  192. package/dist/nile-form-group/index.cjs.js +1 -1
  193. package/dist/nile-form-group/index.esm.js +1 -1
  194. package/dist/nile-form-group/nile-form-group.cjs.js +1 -1
  195. package/dist/nile-form-group/nile-form-group.cjs.js.map +1 -1
  196. package/dist/nile-form-group/nile-form-group.esm.js +2 -2
  197. package/dist/nile-format-date/index.cjs.js +1 -1
  198. package/dist/nile-format-date/index.esm.js +1 -1
  199. package/dist/nile-format-date/nile-format-date.cjs.js +1 -1
  200. package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -1
  201. package/dist/nile-format-date/nile-format-date.esm.js +1 -1
  202. package/dist/nile-grid/index.cjs.js +1 -1
  203. package/dist/nile-grid/index.esm.js +1 -1
  204. package/dist/nile-grid/nile-grid-body/index.cjs.js +1 -1
  205. package/dist/nile-grid/nile-grid-body/index.esm.js +1 -1
  206. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js +1 -1
  207. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js.map +1 -1
  208. package/dist/nile-grid/nile-grid-body/nile-grid-body.esm.js +2 -2
  209. package/dist/nile-grid/nile-grid-cell-item/index.cjs.js +1 -1
  210. package/dist/nile-grid/nile-grid-cell-item/index.esm.js +1 -1
  211. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
  212. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
  213. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +2 -2
  214. package/dist/nile-grid/nile-grid-head/index.cjs.js +1 -1
  215. package/dist/nile-grid/nile-grid-head/index.esm.js +1 -1
  216. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js +1 -1
  217. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js.map +1 -1
  218. package/dist/nile-grid/nile-grid-head/nile-grid-head.esm.js +2 -2
  219. package/dist/nile-grid/nile-grid-head-item/index.cjs.js +1 -1
  220. package/dist/nile-grid/nile-grid-head-item/index.esm.js +1 -1
  221. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  222. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  223. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  224. package/dist/nile-grid/nile-grid-row/index.cjs.js +1 -1
  225. package/dist/nile-grid/nile-grid-row/index.esm.js +1 -1
  226. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js +1 -1
  227. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js.map +1 -1
  228. package/dist/nile-grid/nile-grid-row/nile-grid-row.esm.js +2 -2
  229. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  230. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  231. package/dist/nile-grid/nile-grid.esm.js +2 -2
  232. package/dist/nile-hero/index.cjs.js +1 -1
  233. package/dist/nile-hero/index.esm.js +1 -1
  234. package/dist/nile-hero/nile-hero.cjs.js +1 -1
  235. package/dist/nile-hero/nile-hero.cjs.js.map +1 -1
  236. package/dist/nile-hero/nile-hero.esm.js +2 -2
  237. package/dist/nile-hero-header/index.cjs.js +1 -1
  238. package/dist/nile-hero-header/index.esm.js +1 -1
  239. package/dist/nile-hero-header/nile-hero-header.cjs.js +1 -1
  240. package/dist/nile-hero-header/nile-hero-header.cjs.js.map +1 -1
  241. package/dist/nile-hero-header/nile-hero-header.esm.js +2 -2
  242. package/dist/nile-icon/icons/svg/arrow-left-small.cjs.js +2 -0
  243. package/dist/nile-icon/icons/svg/arrow-left-small.cjs.js.map +1 -0
  244. package/dist/nile-icon/icons/svg/arrow-left-small.esm.js +1 -0
  245. package/dist/nile-icon/icons/svg/arrow-right-small.cjs.js +2 -0
  246. package/dist/nile-icon/icons/svg/arrow-right-small.cjs.js.map +1 -0
  247. package/dist/nile-icon/icons/svg/arrow-right-small.esm.js +1 -0
  248. package/dist/nile-icon/icons/svg/arrow_left_small.cjs.js +2 -0
  249. package/dist/nile-icon/icons/svg/arrow_left_small.cjs.js.map +1 -0
  250. package/dist/nile-icon/icons/svg/arrow_left_small.esm.js +1 -0
  251. package/dist/nile-icon/icons/svg/arrow_right_small.cjs.js +2 -0
  252. package/dist/nile-icon/icons/svg/arrow_right_small.cjs.js.map +1 -0
  253. package/dist/nile-icon/icons/svg/arrow_right_small.esm.js +1 -0
  254. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  255. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  256. package/dist/nile-icon/index.cjs.js +1 -1
  257. package/dist/nile-icon/index.cjs.js.map +1 -1
  258. package/dist/nile-icon/index.esm.js +1 -1
  259. package/dist/nile-icon-button/index.cjs.js +1 -1
  260. package/dist/nile-icon-button/index.esm.js +1 -1
  261. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  262. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  263. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  264. package/dist/nile-inline-edit/index.cjs.js +1 -1
  265. package/dist/nile-inline-edit/index.esm.js +1 -1
  266. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  267. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  268. package/dist/nile-inline-edit/nile-inline-edit.esm.js +2 -2
  269. package/dist/nile-inline-sidebar/index.cjs.js +1 -1
  270. package/dist/nile-inline-sidebar/index.esm.js +1 -1
  271. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  272. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  273. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +3 -3
  274. package/dist/nile-inline-sidebar-group/index.cjs.js +1 -1
  275. package/dist/nile-inline-sidebar-group/index.esm.js +1 -1
  276. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js +1 -1
  277. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js.map +1 -1
  278. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.esm.js +3 -3
  279. package/dist/nile-inline-sidebar-item/index.cjs.js +1 -1
  280. package/dist/nile-inline-sidebar-item/index.esm.js +1 -1
  281. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  282. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  283. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +3 -3
  284. package/dist/nile-input/index.cjs.js +1 -1
  285. package/dist/nile-input/index.esm.js +1 -1
  286. package/dist/nile-input/nile-input.cjs.js +1 -1
  287. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  288. package/dist/nile-input/nile-input.esm.js +1 -1
  289. package/dist/nile-link/index.cjs.js +1 -1
  290. package/dist/nile-link/index.esm.js +1 -1
  291. package/dist/nile-link/nile-link.cjs.js +1 -1
  292. package/dist/nile-link/nile-link.cjs.js.map +1 -1
  293. package/dist/nile-link/nile-link.esm.js +3 -3
  294. package/dist/nile-list/index.cjs.js +1 -1
  295. package/dist/nile-list/index.esm.js +1 -1
  296. package/dist/nile-list/nile-list.cjs.js +1 -1
  297. package/dist/nile-list/nile-list.cjs.js.map +1 -1
  298. package/dist/nile-list/nile-list.esm.js +1 -1
  299. package/dist/nile-list-item/index.cjs.js +1 -1
  300. package/dist/nile-list-item/index.esm.js +1 -1
  301. package/dist/nile-list-item/nile-list-item.cjs.js +1 -1
  302. package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -1
  303. package/dist/nile-list-item/nile-list-item.esm.js +2 -2
  304. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  305. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  306. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  307. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  308. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  309. package/dist/nile-menu/index.cjs.js +1 -1
  310. package/dist/nile-menu/index.esm.js +1 -1
  311. package/dist/nile-menu/nile-menu.cjs.js +1 -1
  312. package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
  313. package/dist/nile-menu/nile-menu.esm.js +2 -2
  314. package/dist/nile-menu-item/index.cjs.js +1 -1
  315. package/dist/nile-menu-item/index.esm.js +1 -1
  316. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  317. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  318. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  319. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  320. package/dist/nile-menu-item/nile-menu-item.css.esm.js +11 -2
  321. package/dist/nile-menu-item/nile-menu-item.esm.js +3 -3
  322. package/dist/nile-option/index.cjs.js +1 -1
  323. package/dist/nile-option/index.esm.js +1 -1
  324. package/dist/nile-option/nile-option.cjs.js +1 -1
  325. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  326. package/dist/nile-option/nile-option.esm.js +1 -1
  327. package/dist/nile-option-group/index.cjs.js +1 -1
  328. package/dist/nile-option-group/index.esm.js +1 -1
  329. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  330. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  331. package/dist/nile-option-group/nile-option-group.esm.js +2 -2
  332. package/dist/nile-otp-input/index.cjs.js +1 -1
  333. package/dist/nile-otp-input/index.esm.js +1 -1
  334. package/dist/nile-otp-input/nile-otp-input.cjs.js +1 -1
  335. package/dist/nile-otp-input/nile-otp-input.cjs.js.map +1 -1
  336. package/dist/nile-otp-input/nile-otp-input.esm.js +1 -1
  337. package/dist/nile-page-header/index.cjs.js +1 -1
  338. package/dist/nile-page-header/index.esm.js +1 -1
  339. package/dist/nile-page-header/nile-page-header.cjs.js +1 -1
  340. package/dist/nile-page-header/nile-page-header.cjs.js.map +1 -1
  341. package/dist/nile-page-header/nile-page-header.esm.js +2 -2
  342. package/dist/nile-pagination/index.cjs.js +1 -1
  343. package/dist/nile-pagination/index.esm.js +1 -1
  344. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  345. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  346. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  347. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  348. package/dist/nile-pagination/nile-pagination.css.esm.js +13 -0
  349. package/dist/nile-pagination/nile-pagination.esm.js +1 -1
  350. package/dist/nile-popover/index.cjs.js +1 -1
  351. package/dist/nile-popover/index.esm.js +1 -1
  352. package/dist/nile-popover/nile-popover.cjs.js +2 -2
  353. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  354. package/dist/nile-popover/nile-popover.esm.js +3 -3
  355. package/dist/nile-popup/index.cjs.js +1 -1
  356. package/dist/nile-popup/index.esm.js +1 -1
  357. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  358. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  359. package/dist/nile-popup/nile-popup.esm.js +2 -2
  360. package/dist/nile-progress-bar/index.cjs.js +1 -1
  361. package/dist/nile-progress-bar/index.esm.js +1 -1
  362. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  363. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  364. package/dist/nile-progress-bar/nile-progress-bar.esm.js +2 -2
  365. package/dist/nile-qr-code/index.cjs.js +1 -1
  366. package/dist/nile-qr-code/index.esm.js +1 -1
  367. package/dist/nile-qr-code/nile-qr-code.cjs.js +1 -1
  368. package/dist/nile-qr-code/nile-qr-code.cjs.js.map +1 -1
  369. package/dist/nile-qr-code/nile-qr-code.esm.js +2 -2
  370. package/dist/nile-radio/index.cjs.js +1 -1
  371. package/dist/nile-radio/index.esm.js +1 -1
  372. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  373. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  374. package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
  375. package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
  376. package/dist/nile-radio/nile-radio.css.esm.js +4 -0
  377. package/dist/nile-radio/nile-radio.esm.js +2 -2
  378. package/dist/nile-radio-group/index.cjs.js +1 -1
  379. package/dist/nile-radio-group/index.esm.js +1 -1
  380. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  381. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  382. package/dist/nile-radio-group/nile-radio-group.esm.js +2 -2
  383. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
  384. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
  385. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
  386. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
  387. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +8 -6
  388. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
  389. package/dist/nile-rich-text-editor/utils/list-utils.cjs.js +1 -1
  390. package/dist/nile-rich-text-editor/utils/list-utils.cjs.js.map +1 -1
  391. package/dist/nile-rich-text-editor/utils/list-utils.esm.js +1 -1
  392. package/dist/nile-section-message/index.cjs.js +1 -1
  393. package/dist/nile-section-message/index.esm.js +1 -1
  394. package/dist/nile-section-message/nile-section-message.cjs.js +1 -1
  395. package/dist/nile-section-message/nile-section-message.cjs.js.map +1 -1
  396. package/dist/nile-section-message/nile-section-message.esm.js +2 -2
  397. package/dist/nile-select/index.cjs.js +1 -1
  398. package/dist/nile-select/index.esm.js +1 -1
  399. package/dist/nile-select/nile-select.cjs.js +1 -1
  400. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  401. package/dist/nile-select/nile-select.css.cjs.js +1 -1
  402. package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
  403. package/dist/nile-select/nile-select.css.esm.js +21 -2
  404. package/dist/nile-select/nile-select.esm.js +33 -25
  405. package/dist/nile-select/portal-utils.cjs.js +1 -1
  406. package/dist/nile-select/portal-utils.cjs.js.map +1 -1
  407. package/dist/nile-select/portal-utils.esm.js +1 -1
  408. package/dist/nile-side-bar/index.cjs.js +1 -1
  409. package/dist/nile-side-bar/index.esm.js +1 -1
  410. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  411. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  412. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  413. package/dist/nile-side-bar-action/index.cjs.js +1 -1
  414. package/dist/nile-side-bar-action/index.esm.js +1 -1
  415. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +1 -1
  416. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js.map +1 -1
  417. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +3 -3
  418. package/dist/nile-side-bar-action-menu/index.cjs.js +1 -1
  419. package/dist/nile-side-bar-action-menu/index.esm.js +1 -1
  420. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js +1 -1
  421. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js.map +1 -1
  422. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.esm.js +2 -2
  423. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  424. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  425. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  426. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  427. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  428. package/dist/nile-side-bar-expand/index.cjs.js +1 -1
  429. package/dist/nile-side-bar-expand/index.esm.js +1 -1
  430. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  431. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  432. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +2 -2
  433. package/dist/nile-side-bar-footer/index.cjs.js +1 -1
  434. package/dist/nile-side-bar-footer/index.esm.js +1 -1
  435. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +1 -1
  436. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  437. package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +2 -2
  438. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  439. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  440. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  441. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  442. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +1 -1
  443. package/dist/nile-side-bar-footer-text/index.cjs.js +1 -1
  444. package/dist/nile-side-bar-footer-text/index.esm.js +1 -1
  445. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +1 -1
  446. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +1 -1
  447. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +3 -3
  448. package/dist/nile-side-bar-group/index.cjs.js +1 -1
  449. package/dist/nile-side-bar-group/index.esm.js +1 -1
  450. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  451. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  452. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +2 -2
  453. package/dist/nile-side-bar-group-item/index.cjs.js +1 -1
  454. package/dist/nile-side-bar-group-item/index.esm.js +1 -1
  455. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +1 -1
  456. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +1 -1
  457. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +2 -2
  458. package/dist/nile-side-bar-group-item-icon/index.cjs.js +1 -1
  459. package/dist/nile-side-bar-group-item-icon/index.esm.js +1 -1
  460. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  461. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  462. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +2 -2
  463. package/dist/nile-side-bar-group-item-text/index.cjs.js +1 -1
  464. package/dist/nile-side-bar-group-item-text/index.esm.js +1 -1
  465. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js +1 -1
  466. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js.map +1 -1
  467. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.esm.js +1 -1
  468. package/dist/nile-side-bar-header/index.cjs.js +1 -1
  469. package/dist/nile-side-bar-header/index.esm.js +1 -1
  470. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
  471. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  472. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +2 -2
  473. package/dist/nile-side-bar-logo/index.cjs.js +1 -1
  474. package/dist/nile-side-bar-logo/index.esm.js +1 -1
  475. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js +1 -1
  476. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js.map +1 -1
  477. package/dist/nile-side-bar-logo/nile-side-bar-logo.esm.js +2 -2
  478. package/dist/nile-side-bar-panel/index.cjs.js +1 -1
  479. package/dist/nile-side-bar-panel/index.esm.js +1 -1
  480. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js +1 -1
  481. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js.map +1 -1
  482. package/dist/nile-side-bar-panel/nile-side-bar-panel.esm.js +2 -2
  483. package/dist/nile-skeleton-loader/index.cjs.js +1 -1
  484. package/dist/nile-skeleton-loader/index.esm.js +1 -1
  485. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js +1 -1
  486. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js.map +1 -1
  487. package/dist/nile-skeleton-loader/nile-skeleton-loader.esm.js +2 -2
  488. package/dist/nile-slide-toggle/index.cjs.js +1 -1
  489. package/dist/nile-slide-toggle/index.esm.js +1 -1
  490. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  491. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  492. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  493. package/dist/nile-slider/index.cjs.js +1 -1
  494. package/dist/nile-slider/index.esm.js +1 -1
  495. package/dist/nile-slider/nile-slider.cjs.js +1 -1
  496. package/dist/nile-slider/nile-slider.cjs.js.map +1 -1
  497. package/dist/nile-slider/nile-slider.esm.js +3 -3
  498. package/dist/nile-split-panel/index.cjs.js +1 -1
  499. package/dist/nile-split-panel/index.esm.js +1 -1
  500. package/dist/nile-split-panel/nile-split-panel.cjs.js +1 -1
  501. package/dist/nile-split-panel/nile-split-panel.cjs.js.map +1 -1
  502. package/dist/nile-split-panel/nile-split-panel.esm.js +2 -2
  503. package/dist/nile-stepper/index.cjs.js +1 -1
  504. package/dist/nile-stepper/index.esm.js +1 -1
  505. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  506. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  507. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  508. package/dist/nile-stepper-item/index.cjs.js +1 -1
  509. package/dist/nile-stepper-item/index.esm.js +1 -1
  510. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  511. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  512. package/dist/nile-stepper-item/nile-stepper-item.esm.js +1 -1
  513. package/dist/nile-switcher/index.cjs.js +1 -1
  514. package/dist/nile-switcher/index.esm.js +1 -1
  515. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  516. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  517. package/dist/nile-switcher/nile-switcher.esm.js +23 -23
  518. package/dist/nile-tab/index.cjs.js +1 -1
  519. package/dist/nile-tab/index.esm.js +1 -1
  520. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  521. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  522. package/dist/nile-tab/nile-tab.esm.js +1 -1
  523. package/dist/nile-tab-group/index.cjs.js +1 -1
  524. package/dist/nile-tab-group/index.esm.js +1 -1
  525. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  526. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  527. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  528. package/dist/nile-tab-panel/index.cjs.js +1 -1
  529. package/dist/nile-tab-panel/index.esm.js +1 -1
  530. package/dist/nile-tab-panel/nile-tab-panel.cjs.js +1 -1
  531. package/dist/nile-tab-panel/nile-tab-panel.cjs.js.map +1 -1
  532. package/dist/nile-tab-panel/nile-tab-panel.esm.js +3 -3
  533. package/dist/nile-table/index.cjs.js +1 -1
  534. package/dist/nile-table/index.esm.js +1 -1
  535. package/dist/nile-table/nile-table.cjs.js +1 -1
  536. package/dist/nile-table/nile-table.cjs.js.map +1 -1
  537. package/dist/nile-table/nile-table.esm.js +1 -1
  538. package/dist/nile-table-body/index.cjs.js +1 -1
  539. package/dist/nile-table-body/index.esm.js +1 -1
  540. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  541. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  542. package/dist/nile-table-body/nile-table-body.esm.js +3 -3
  543. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  544. package/dist/nile-table-cell-item/index.esm.js +1 -1
  545. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  546. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  547. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +5 -5
  548. package/dist/nile-table-header-item/index.cjs.js +1 -1
  549. package/dist/nile-table-header-item/index.esm.js +1 -1
  550. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  551. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  552. package/dist/nile-table-header-item/nile-table-header-item.esm.js +1 -1
  553. package/dist/nile-table-row/index.cjs.js +1 -1
  554. package/dist/nile-table-row/index.esm.js +1 -1
  555. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  556. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  557. package/dist/nile-table-row/nile-table-row.esm.js +2 -2
  558. package/dist/nile-tag/index.cjs.js +1 -1
  559. package/dist/nile-tag/index.esm.js +1 -1
  560. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  561. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  562. package/dist/nile-tag/nile-tag.esm.js +1 -1
  563. package/dist/nile-textarea/index.cjs.js +1 -1
  564. package/dist/nile-textarea/index.esm.js +1 -1
  565. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  566. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  567. package/dist/nile-textarea/nile-textarea.esm.js +2 -2
  568. package/dist/nile-title/index.cjs.js +1 -1
  569. package/dist/nile-title/index.esm.js +1 -1
  570. package/dist/nile-title/nile-title.cjs.js +1 -1
  571. package/dist/nile-title/nile-title.cjs.js.map +1 -1
  572. package/dist/nile-title/nile-title.esm.js +1 -1
  573. package/dist/nile-toast/index.cjs.js +1 -1
  574. package/dist/nile-toast/index.esm.js +1 -1
  575. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  576. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  577. package/dist/nile-toast/nile-toast.esm.js +1 -1
  578. package/dist/nile-toolbar/index.cjs.js +1 -1
  579. package/dist/nile-toolbar/index.esm.js +1 -1
  580. package/dist/nile-toolbar/nile-toolbar.cjs.js +1 -1
  581. package/dist/nile-toolbar/nile-toolbar.cjs.js.map +1 -1
  582. package/dist/nile-toolbar/nile-toolbar.esm.js +2 -2
  583. package/dist/nile-tooltip/index.cjs.js +1 -1
  584. package/dist/nile-tooltip/index.esm.js +1 -1
  585. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  586. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  587. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  588. package/dist/nile-tree/index.cjs.js +1 -1
  589. package/dist/nile-tree/index.esm.js +1 -1
  590. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  591. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  592. package/dist/nile-tree/nile-tree.esm.js +1 -1
  593. package/dist/nile-tree-item/index.cjs.js +1 -1
  594. package/dist/nile-tree-item/index.esm.js +1 -1
  595. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  596. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  597. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  598. package/dist/nile-vertical-stepper-item/index.cjs.js +1 -1
  599. package/dist/nile-vertical-stepper-item/index.esm.js +1 -1
  600. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  601. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  602. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +7 -7
  603. package/dist/nile-virtual-select/index.cjs.js +1 -1
  604. package/dist/nile-virtual-select/index.esm.js +1 -1
  605. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  606. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  607. package/dist/src/index.d.ts +1 -0
  608. package/dist/src/index.js +1 -0
  609. package/dist/src/index.js.map +1 -1
  610. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +69 -0
  611. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +71 -0
  612. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  613. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +33 -0
  614. package/dist/src/internal/accessibility/a11y.property.enum.js +35 -0
  615. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  616. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +50 -0
  617. package/dist/src/internal/accessibility/a11y.role.enum.js +52 -0
  618. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  619. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +17 -0
  620. package/dist/src/internal/accessibility/a11y.state.enum.js +19 -0
  621. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  622. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  623. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  624. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  625. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  626. package/dist/src/internal/accessibility/role.enum.js +5 -0
  627. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  628. package/dist/src/internal/nile-element.d.ts +52 -0
  629. package/dist/src/internal/nile-element.js +45 -0
  630. package/dist/src/internal/nile-element.js.map +1 -1
  631. package/dist/src/nile-avatar/nile-avatar.js +2 -0
  632. package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
  633. package/dist/src/nile-badge/nile-badge.d.ts +1 -0
  634. package/dist/src/nile-badge/nile-badge.js +12 -1
  635. package/dist/src/nile-badge/nile-badge.js.map +1 -1
  636. package/dist/src/nile-button/nile-button.css.js +5 -0
  637. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  638. package/dist/src/nile-checkbox/nile-checkbox.css.js +4 -0
  639. package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  640. package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  641. package/dist/src/nile-checkbox/nile-checkbox.js +5 -0
  642. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  643. package/dist/src/nile-checkbox-group/index.d.ts +1 -0
  644. package/dist/src/nile-checkbox-group/index.js +2 -0
  645. package/dist/src/nile-checkbox-group/index.js.map +1 -0
  646. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.d.ts +1 -0
  647. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js +70 -0
  648. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js.map +1 -0
  649. package/dist/src/nile-checkbox-group/nile-checkbox-group.d.ts +84 -0
  650. package/dist/src/nile-checkbox-group/nile-checkbox-group.js +355 -0
  651. package/dist/src/nile-checkbox-group/nile-checkbox-group.js.map +1 -0
  652. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.d.ts +2 -0
  653. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js +671 -0
  654. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js.map +1 -0
  655. package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -1
  656. package/dist/src/nile-code-editor/nile-code-editor.js +1 -7
  657. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  658. package/dist/src/nile-icon/icons/svg/arrow-left-small.d.ts +5 -0
  659. package/dist/src/nile-icon/icons/svg/arrow-left-small.js +5 -0
  660. package/dist/src/nile-icon/icons/svg/arrow-left-small.js.map +1 -0
  661. package/dist/src/nile-icon/icons/svg/arrow-right-small.d.ts +5 -0
  662. package/dist/src/nile-icon/icons/svg/arrow-right-small.js +5 -0
  663. package/dist/src/nile-icon/icons/svg/arrow-right-small.js.map +1 -0
  664. package/dist/src/nile-icon/icons/svg/arrow_left_small.d.ts +5 -0
  665. package/dist/src/nile-icon/icons/svg/arrow_left_small.js +5 -0
  666. package/dist/src/nile-icon/icons/svg/arrow_left_small.js.map +1 -0
  667. package/dist/src/nile-icon/icons/svg/arrow_right_small.d.ts +5 -0
  668. package/dist/src/nile-icon/icons/svg/arrow_right_small.js +5 -0
  669. package/dist/src/nile-icon/icons/svg/arrow_right_small.js.map +1 -0
  670. package/dist/src/nile-icon/icons/svg/index.d.ts +4 -0
  671. package/dist/src/nile-icon/icons/svg/index.js +4 -0
  672. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  673. package/dist/src/nile-link/nile-link.d.ts +2 -1
  674. package/dist/src/nile-link/nile-link.js +18 -1
  675. package/dist/src/nile-link/nile-link.js.map +1 -1
  676. package/dist/src/nile-menu-item/nile-menu-item.css.js +11 -2
  677. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  678. package/dist/src/nile-menu-item/nile-menu-item.d.ts +2 -0
  679. package/dist/src/nile-menu-item/nile-menu-item.js +7 -1
  680. package/dist/src/nile-menu-item/nile-menu-item.js.map +1 -1
  681. package/dist/src/nile-otp-input/nile-otp-input.test.js +7 -7
  682. package/dist/src/nile-otp-input/nile-otp-input.test.js.map +1 -1
  683. package/dist/src/nile-pagination/nile-pagination.css.js +13 -0
  684. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  685. package/dist/src/nile-radio/nile-radio.css.js +4 -0
  686. package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
  687. package/dist/src/nile-radio-group/nile-radio-group.js +7 -0
  688. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  689. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +8 -6
  690. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
  691. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -0
  692. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +43 -0
  693. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
  694. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js +6 -5
  695. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js.map +1 -1
  696. package/dist/src/nile-rich-text-editor/utils/list-utils.js +0 -1
  697. package/dist/src/nile-rich-text-editor/utils/list-utils.js.map +1 -1
  698. package/dist/src/nile-select/nile-select.css.js +21 -2
  699. package/dist/src/nile-select/nile-select.css.js.map +1 -1
  700. package/dist/src/nile-select/nile-select.d.ts +4 -0
  701. package/dist/src/nile-select/nile-select.js +42 -24
  702. package/dist/src/nile-select/nile-select.js.map +1 -1
  703. package/dist/src/nile-select/portal-utils.d.ts +2 -0
  704. package/dist/src/nile-select/portal-utils.js +36 -3
  705. package/dist/src/nile-select/portal-utils.js.map +1 -1
  706. package/dist/src/version.js +2 -2
  707. package/dist/src/version.js.map +1 -1
  708. package/dist/tsconfig.tsbuildinfo +1 -1
  709. package/package.json +3 -2
  710. package/src/index.ts +1 -0
  711. package/src/internal/accessibility/a11y.custom-value.enum.ts +69 -0
  712. package/src/internal/accessibility/a11y.property.enum.ts +33 -0
  713. package/src/internal/accessibility/a11y.role.enum.ts +50 -0
  714. package/src/internal/accessibility/a11y.state.enum.ts +17 -0
  715. package/src/internal/accessibility/accessibility.const.ts +9 -0
  716. package/src/internal/accessibility/role.enum.ts +3 -0
  717. package/src/internal/nile-element.ts +99 -0
  718. package/src/nile-avatar/nile-avatar.ts +2 -0
  719. package/src/nile-badge/nile-badge.ts +13 -1
  720. package/src/nile-button/nile-button.css.ts +5 -0
  721. package/src/nile-checkbox/nile-checkbox.css.ts +4 -0
  722. package/src/nile-checkbox/nile-checkbox.ts +3 -0
  723. package/src/nile-checkbox-group/index.ts +1 -0
  724. package/src/nile-checkbox-group/nile-checkbox-group.css.ts +70 -0
  725. package/src/nile-checkbox-group/nile-checkbox-group.test.ts +769 -0
  726. package/src/nile-checkbox-group/nile-checkbox-group.ts +351 -0
  727. package/src/nile-code-editor/nile-code-editor.ts +1 -7
  728. package/src/nile-icon/icons/svg/arrow-left-small.ts +5 -0
  729. package/src/nile-icon/icons/svg/arrow-right-small.ts +5 -0
  730. package/src/nile-icon/icons/svg/arrow_left_small.ts +5 -0
  731. package/src/nile-icon/icons/svg/arrow_right_small.ts +5 -0
  732. package/src/nile-icon/icons/svg/index.ts +4 -0
  733. package/src/nile-link/nile-link.ts +21 -2
  734. package/src/nile-menu-item/nile-menu-item.css.ts +11 -2
  735. package/src/nile-menu-item/nile-menu-item.ts +5 -1
  736. package/src/nile-otp-input/nile-otp-input.test.ts +7 -7
  737. package/src/nile-pagination/nile-pagination.css.ts +13 -0
  738. package/src/nile-radio/nile-radio.css.ts +4 -0
  739. package/src/nile-radio-group/nile-radio-group.ts +7 -0
  740. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +8 -6
  741. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +43 -0
  742. package/src/nile-rich-text-editor/nile-rte-link.test.ts +6 -5
  743. package/src/nile-rich-text-editor/utils/list-utils.ts +1 -2
  744. package/src/nile-select/nile-select.css.ts +21 -2
  745. package/src/nile-select/nile-select.ts +44 -24
  746. package/src/nile-select/portal-utils.ts +46 -3
  747. package/vscode-html-custom-data.json +117 -20
@@ -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 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,_n,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=\"grid-cell-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(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));}};});
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","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,t,i,s,r,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;s=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){r=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;a=_nileGridCellItemUtilsCjsJs.c;c=_nileGridCellItemUtilsCjsJs.a;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],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},s={value:0},r=o(t,e,i,s);if(!r)return;var l=r.target,_n=r.col,m=function m(e){return a(t,_n,s.value,i.value,e);},p=function p(){return c(t,_n,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=\"grid-cell-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[r];}}]);}(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([s("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/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 const move = (e: PointerEvent) => cellResizeMove(el, col, startWRef.value, downXRef.value, e);\n const done = () => cellResizeDone(el, col, 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=\"grid-cell-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-cell-item': NileGridCellItem;\n }\n}\n"],"names":["NileGridCellItem","n","constructor","this","colspan","rowspan","resizable","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initCellResize","target","col","move","e","cellResizeMove","done","cellResizeDone","addEventListener","once","_this","_inherits","_l","_createClass","key","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","__decorate","get","styles","NileElement","property","type","Number","reflect","attribute","prototype","Boolean","_export","customElement"],"mappings":"m2HAwBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,CACVD,CAAAA,KAAAA,CAAOE,OAAG,CAAA,CAAA,CACTF,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CAOjEH,KAAAA,CAAAI,mBAAAA,CAAuBC,SAAAA,CAE7B,CAAA,CAAA,GAAMC,CAAAA,CAAKN,CAAAA,sBAAAA,CAAAA,KAAAA,CAAAA,CAELO,CAAW,CAAA,CAAEC,KAAO,CAAA,CAAA,CAAA,CACpBC,CAAY,CAAA,CAAED,MAAO,CAErBE,CAAAA,CAAAA,CAAAA,CAASC,CAAeL,CAAAA,CAAAA,CAAID,CAAIE,CAAAA,CAAAA,CAAUE,CAChD,CAAA,CAAA,GAAA,CAAKC,CAAQ,CAAA,OAEb,GAAQE,CAAAA,CAAMC,CAAUH,CAClBI,CADAF,MAAAA,CAAUC,GAAQH,CAClBI,CADQD,GAAAA,CACRC,CAAAA,CAAQC,QAARD,CAAAA,CAAAA,CAAQC,CAAoBC,QAAAA,CAAAA,CAAAA,CAAeV,CAAIO,CAAAA,EAAAA,CAAKJ,CAAUD,CAAAA,KAAAA,CAAOD,CAASC,CAAAA,KAAAA,CAAOO,CACrFE,CAAAA,G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ACZT,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
+ {"version":3,"file":"nile-grid-cell-item.cjs.js","sources":["../../../../src/nile-grid/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 const move = (e: PointerEvent) => cellResizeMove(el, col, startWRef.value, downXRef.value, e);\n const done = () => cellResizeDone(el, col, 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=\"grid-cell-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default 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","move","col","e","cellResizeMove","done","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":"+pIAwBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEASuDC,EAAAA,KAAAA,CAAOC,OAAG,CAAA,CAAA,CACVD,KAAAA,CAAOE,OAAG,CAAA,CAAA,CACTF,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,CAAAA,C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,CAAAC,sBAAA,mIAGL/B,IAAAA,CAAKG,UACH0B,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,mLAIe/B,IAAKI,CAAAA,mBAAAA,EAGxB,IAAA,EAGT,CA3C2D6B,KAAAA,GAAAA,UAAAA,GAAAA,CAJrD,SAAAC,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,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,CAAoB5C,EAAA6C,SAAA,CAAA,SAAA,CAAA,IAAA,IACZT,CAAA,CAAA,CAA3DI,EAAS,CAAEC,IAAAA,CAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAoB5C,CAAA6C,CAAAA,SAAAA,CAAA,cAAA,EACXT,CAAAA,CAAAA,CAAAA,CAAA,CAA5DI,CAAS,CAAA,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAA0B5C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6C,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAAAE,OAAA,KAXpE/C,EAAgBoC,CAAA,CAAA,CAD5BY,CAAc,CAAA,qBAAA,CAAA,CAAA,CACFhD"}
@@ -1,4 +1,4 @@
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,c,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`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}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";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.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},s={value:0},r=o(t,e,i,s);if(!r)return;const{target:l,col:c}=r,m=e=>a(t,c,s.value,i.value,e),p=()=>n(t,c,e,l,m);l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[r]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
2
2
  <div class="cell-item-base" part="grid-cell-item-base">
3
3
  <slot></slot>
4
4
  ${this.resizable?t`
@@ -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:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",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([s("nile-grid-cell-item")],c);export{c as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-grid-head.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head.css.cjs.js","../../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadCjsJs){_export("NileGridHead",_nileGridHeadCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-grid-head.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head.css.cjs.js","../../internal/nile-element.cjs.js","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadCjsJs){_export("NileGridHead",_nileGridHeadCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGridHead}from"./nile-grid-head.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head.css.esm.js";import"../../internal/nile-element.esm.js";
1
+ export{N as NileGridHead}from"./nile-grid-head.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head.css.esm.js";import"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";
@@ -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,r,e,s,i,o,_templateObject,l;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){r=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileGridHeadCssCjsJs){i=_nileGridHeadCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_o){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.sticky=!1;return _this;}_inherits(l,_o);return _createClass(l,[{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-base\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[i];}}]);}(o));t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"sticky",void 0),_export("N",l=t([s("nile-grid-head")],l));}};});
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","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,r,i,o,_templateObject,a;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){e=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridHeadCssCjsJs){i=_nileGridHeadCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_o){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.sticky=!1;return _this;}_inherits(a,_o);return _createClass(a,[{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-base\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[i];}}]);}(o));t([s({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"sticky",void 0),_export("N",a=t([r("nile-grid-head")],a));}};});
2
2
  //# sourceMappingURL=nile-grid-head.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid-head.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head/nile-grid-head.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head.css';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Nile grid-head component.\n *\n * @tag nile-grid-head\n *\n */\n@customElement('nile-grid-head')\nexport class NileGridHead extends NileElement {\n /**\n * The styles for nile-grid-head\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true, attribute: true }) sticky: boolean = false;\n\n /* #endregion */\n\n /* #region Methods */\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-head-base\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHead;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head': NileGridHead;\n }\n}\n"],"names":["NileGridHead","l","this","sticky","_this","_inherits","_o","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","Boolean","reflect","attribute","prototype","customElement"],"mappings":"qoGAmBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEASwDC,EAAAA,KAAAA,CAAMC,MAAY,CAAA,CAAA,CAehF,QAAAC,KAAA,EAnBQC,SAAA,CAAAJ,CAAA,CAAAK,EAAA,SAAAC,YAAA,CAAAN,CAAA,GAAAO,GAAA,UAAAC,KAAA,CAUA,SAAAC,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yFAKZ,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAhBM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAQM,MAfyBC,CAA3B,GASwDC,EAAA,CAA5DC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAgCtB,CAAAuB,CAAAA,SAAAA,CAAA,aAAA,EAT1EvB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAYiB,EAAA,CADxBO,CAAAA,CAAc,mBACFxB"}
1
+ {"version":3,"file":"nile-grid-head.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head/nile-grid-head.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head.css';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Nile grid-head component.\n *\n * @tag nile-grid-head\n *\n */\n@customElement('nile-grid-head')\nexport class NileGridHead extends NileElement {\n /**\n * The styles for nile-grid-head\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true, attribute: true }) sticky: boolean = false;\n\n /* #endregion */\n\n /* #region Methods */\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-head-base\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHead;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head': NileGridHead;\n }\n}\n"],"names":["NileGridHead","a","constructor","this","sticky","_this","_inherits","_o","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","Boolean","reflect","attribute","prototype","customElement"],"mappings":"i8GAmBaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASwDC,KAAAA,CAAMC,MAAAA,CAAAA,CAAY,CAehF,QAAAC,KAAA,EAnBQC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAUA,SAAAC,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yFAKZ,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAhBM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CACT,CAAA,EAQM,MAfyBC,CAAAA,GAS6BC,EAAA,CAA5DC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAgCvB,CAAAwB,CAAAA,SAAAA,CAAA,aAAA,EAT1ExB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAYkB,EAAA,CADxBO,CAAAA,CAAc,mBACFzB"}
@@ -1,5 +1,5 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as r,customElement as s}from"lit/decorators.js";import{s as i}from"./nile-grid-head.css.esm.js";import{N as o}from"../../internal/nile-element.esm.js";let l=class extends o{constructor(){super(...arguments),this.sticky=!1}static get styles(){return[i]}render(){return e`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as s,customElement as r}from"lit/decorators.js";import{s as i}from"./nile-grid-head.css.esm.js";import{N as o}from"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";let a=class extends o{constructor(){super(...arguments),this.sticky=!1}static get styles(){return[i]}render(){return t`
2
2
  <div part="grid-head-base">
3
3
  <slot></slot>
4
4
  </div>
5
- `}};t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"sticky",void 0),l=t([s("nile-grid-head")],l);export{l as N};
5
+ `}};e([s({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"sticky",void 0),a=e([r("nile-grid-head")],a);export{a as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-grid-head-item.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadItemCjsJs){_export("NileGridHeadItem",_nileGridHeadItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridHeadItemUtilsCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-grid-head-item.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../../internal/nile-element.cjs.js","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridHeadItemCjsJs){_export("NileGridHeadItem",_nileGridHeadItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridHeadItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_nileGridHeadItemUtilsCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGridHeadItem}from"./nile-grid-head-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head-item.css.esm.js";import"../../internal/nile-element.esm.js";import"./nile-grid-head-item.utils.esm.js";
1
+ export{N as NileGridHeadItem}from"./nile-grid-head-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-head-item.css.esm.js";import"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";import"./nile-grid-head-item.utils.esm.js";
@@ -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-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,r,s,a,l,o,n,d,c,_templateObject,_templateObject2,h;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(_nileGridHeadItemCssCjsJs){s=_nileGridHeadItemCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nileGridHeadItemUtilsCjsJs){l=_nileGridHeadItemUtilsCjsJs.i;o=_nileGridHeadItemUtilsCjsJs.a;n=_nileGridHeadItemUtilsCjsJs.h;d=_nileGridHeadItemUtilsCjsJs.b;c=_nileGridHeadItemUtilsCjsJs.r;}],execute:function execute(){_export("N",h=/*#__PURE__*/function(_a){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.width=null,_this.sticky=null,_this.lockWidth=!1,_this.onHandlePointerDown=function(t){var e=_assertThisInitialized(_this),i=_this.closest("nile-grid"),r={value:0},s={value:0},a=l(e,t,r,s);if(!a)return;var _h=a.target,p=a.col,u=function u(t){return n(e,p,s.value,r.value,t,i);},_m=function m(t){d(e,p,t,_h,u),c(_h,u,_m);};o(_h,u,_m);};return _this;}_inherits(h,_a);return _createClass(h,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(h,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(h,"disconnectedCallback",this,3)([]),this.removeAttribute("role");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(a));t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"rowspan",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"resizable",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"width",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"sticky",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"lockWidth",void 0),_export("N",h=t([r("nile-grid-head-item")],h));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-head-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-head-item.utils.cjs.js","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,r,a,l,o,n,c,d,_templateObject,_templateObject2,m;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;s=_litDecoratorsJs.customElement;},function(_nileGridHeadItemCssCjsJs){r=_nileGridHeadItemCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nileGridHeadItemUtilsCjsJs){l=_nileGridHeadItemUtilsCjsJs.i;o=_nileGridHeadItemUtilsCjsJs.a;n=_nileGridHeadItemUtilsCjsJs.h;c=_nileGridHeadItemUtilsCjsJs.b;d=_nileGridHeadItemUtilsCjsJs.r;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",m=/*#__PURE__*/function(_a){function m(){var _this;_classCallCheck(this,m);_this=_callSuper(this,m,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.width=null,_this.sticky=null,_this.lockWidth=!1,_this.onHandlePointerDown=function(t){var e=_assertThisInitialized(_this),i=_this.closest("nile-grid"),s={value:0},r={value:0},a=l(e,t,s,r);if(!a)return;var _m=a.target,p=a.col,h=function h(t){return n(e,p,r.value,s.value,t,i);},_u=function u(t){c(e,p,t,_m,h),d(_m,h,_u);};o(_m,h,_u);};return _this;}_inherits(m,_a);return _createClass(m,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(m,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(m,"disconnectedCallback",this,3)([]),this.removeAttribute("role");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[r];}}]);}(a));t([i({type:Number,reflect:!0,attribute:!0})],m.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],m.prototype,"rowspan",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],m.prototype,"resizable",void 0),t([i({type:String,reflect:!0,attribute:!0})],m.prototype,"width",void 0),t([i({type:String,reflect:!0,attribute:!0})],m.prototype,"sticky",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],m.prototype,"lockWidth",void 0),_export("N",m=t([s("nile-grid-head-item")],m));}};});
2
2
  //# sourceMappingURL=nile-grid-head-item.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid-head-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n addListeners,\n removeListeners,\n} from './nile-grid-head-item.utils';\nimport { NileGrid } from '../nile-grid';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: String, reflect: true, attribute: true }) width: string | null = null;\n @property({ type: String, reflect: true, attribute: true }) sticky: string | null = null;\n @property({ type: Boolean, reflect: true, attribute: true }) lockWidth: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role','row');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n const nileGrid = this.closest('nile-grid') as NileGrid;\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => headResizeMove(el, col, startWRef.value, downXRef.value, e, nileGrid);\n const done = (e: PointerEvent) => {\n headResizeDone(el, col, e, target, move);\n removeListeners(target, move, done);\n }\n addListeners(target, move, done);\n };\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeAttribute('role');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHeadItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head-item': NileGridHeadItem;\n }\n}\n"],"names":["NileGridHeadItem","h","constructor","this","colspan","rowspan","resizable","width","sticky","lockWidth","onHandlePointerDown","ev","el","nileGrid","closest","downXRef","value","startWRef","result","initHeadResize","target","col","move","e","headResizeMove","done","headResizeDone","removeListeners","addListeners","_this","_inherits","_a","_createClass","key","connectedCallback","super","setAttribute","disconnectedCallback","removeAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","Number","reflect","attribute","prototype","Boolean","String","customElement"],"mappings":"u6HA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,CACVD,CAAAA,KAAAA,CAAOE,QAAG,CACTF,CAAAA,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CACbH,KAAAA,CAAKI,KAAAA,CAAkB,IACvBJ,CAAAA,KAAAA,CAAMK,MAAkB,CAAA,IAAA,CACvBL,KAAAA,CAASM,SAAAA,CAAAA,CAAY,CAO1EN,CAAAA,KAAAA,CAAAO,mBAAuBC,CAAAA,SAAAA,CAAAA,CAAAA,CAC7B,GAAMC,CAAAA,CAAKT,CAAAA,sBAAAA,CAAAA,KAAAA,CAAAA,CACLU,CAAWV,CAAAA,KAAAA,CAAKW,OAAQ,CAAA,WAAA,CAAA,CACxBC,CAAW,CAAA,CAAEC,KAAO,CAAA,CAAA,CAAA,CACpBC,CAAY,CAAA,CAAED,KAAO,CAAA,CAAA,CAAA,CAErBE,CAASC,CAAAA,CAAAA,CAAeP,EAAID,CAAII,CAAAA,CAAAA,CAAUE,CAChD,CAAA,CAAA,GAAA,CAAKC,CAAQ,CAAA,OAEb,GAAQE,CAAAA,EAAMC,CAAUH,CAAAA,CAAlBE,MAAAA,CAAUC,CAAQH,CAAAA,CAAAA,CAAVG,GAAAA,CACRC,CAAQC,CAAAA,QAARD,CAAAA,CAAQC,CAAAA,CAAAA,QAAoBC,CAAAA,CAAeZ,CAAAA,CAAAA,CAAIS,EAAKJ,CAAUD,CAAAA,KAAAA,CAAOD,CAASC,CAAAA,KAAAA,CAAOO,CAAGV,CAAAA,CAAAA,CAAAA,GACxFY,EAAQF,C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CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAoBpD,CAAAqD,CAAAA,SAAAA,CAAA,cAAA,EACXN,CAAAA,CAAAA,CAAAA,CAAA,CAA5DC,CAAS,CAAA,CAAEC,KAAMK,OAASH,CAAAA,OAAAA,CAAAA,CAAS,EAAMC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0BpD,EAAAqD,SAAA,CAAA,WAAA,CAAA,IAAA,IACnBN,CAAA,CAAA,CAA3DC,CAAS,CAAA,CAAEC,KAAMM,MAAQJ,CAAAA,OAAAA,CAAAA,CAAS,EAAMC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoCpD,EAAAqD,SAAA,CAAA,OAAA,CAAA,IAAA,IAC5BN,CAAA,CAAA,CAA3DC,EAAS,CAAEC,IAAAA,CAAMM,OAAQJ,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAAqCpD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqD,UAAA,QAAA,CAAA,IAAA,EAAA,CAAA,CAC5BN,EAAA,CAA5DC,CAAAA,CAAS,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAAmCpD,CAAAqD,CAAAA,SAAAA,CAAA,gBAAA,EAd7ErD,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAgB+C,EAAA,CAD5BS,CAAAA,CAAc,wBACFxD"}
1
+ {"version":3,"file":"nile-grid-head-item.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n addListeners,\n removeListeners,\n} from './nile-grid-head-item.utils';\nimport { NileGrid } from '../nile-grid';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: String, reflect: true, attribute: true }) width: string | null = null;\n @property({ type: String, reflect: true, attribute: true }) sticky: string | null = null;\n @property({ type: Boolean, reflect: true, attribute: true }) lockWidth: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role','row');\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n const nileGrid = this.closest('nile-grid') as NileGrid;\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n const move = (e: PointerEvent) => headResizeMove(el, col, startWRef.value, downXRef.value, e, nileGrid);\n const done = (e: PointerEvent) => {\n headResizeDone(el, col, e, target, move);\n removeListeners(target, move, done);\n }\n addListeners(target, move, done);\n };\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeAttribute('role');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-head-item-base\" class=\"head-item-base\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n part=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHeadItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head-item': NileGridHeadItem;\n }\n}\n"],"names":["NileGridHeadItem","m","constructor","this","colspan","rowspan","resizable","width","sticky","lockWidth","onHandlePointerDown","ev","el","nileGrid","closest","downXRef","value","startWRef","result","initHeadResize","target","move","col","e","headResizeMove","done","headResizeDone","removeListeners","addListeners","_this","_inherits","_a","_createClass","key","connectedCallback","super","setAttribute","disconnectedCallback","removeAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","Number","reflect","attribute","prototype","Boolean","String","customElement"],"mappings":"muIA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuDC,KAAAA,CAAOC,OAAAA,CAAG,EACVD,KAAAA,CAAOE,OAAAA,CAAG,CACTF,CAAAA,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CACbH,KAAAA,CAAKI,KAAAA,CAAkB,IACvBJ,CAAAA,KAAAA,CAAMK,MAAkB,CAAA,IAAA,CACvBL,KAAAA,CAASM,SAAAA,CAAAA,CAAY,CAO1EN,CAAAA,KAAAA,CAAAO,oBAAuBC,SAAAA,CAC7B,CAAA,CAAA,GAAMC,CAAAA,CAAKT,CAAAA,sBAAAA,CAAAA,KAAAA,CAAAA,CACLU,CAAWV,CAAAA,KAAAA,CAAKW,OAAQ,CAAA,WAAA,CAAA,CACxBC,EAAW,CAAEC,KAAAA,CAAO,CACpBC,CAAAA,CAAAA,CAAAA,CAAY,CAAED,KAAAA,CAAO,CAErBE,CAAAA,CAAAA,CAAAA,CAASC,EAAeP,CAAID,CAAAA,CAAAA,CAAII,CAAUE,CAAAA,CAAAA,CAAAA,CAChD,GAAKC,CAAAA,CAAAA,CAAQ,OAEb,GAAQE,CAAAA,EAAAA,CAAgBF,CAClBG,CADAD,MAAEA,CAAQE,CAAAA,CAA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ib";import{html as e}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-head-item.css.esm.js";import{N as a}from"../../internal/nile-element.esm.js";import{i as l,a as o,h as n,b as d,r as c}from"./nile-grid-head-item.utils.esm.js";let h=class extends a{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.width=null,this.sticky=null,this.lockWidth=!1,this.onHandlePointerDown=t=>{const e=this,i=this.closest("nile-grid"),r={value:0},s={value:0},a=l(e,t,r,s);if(!a)return;const{target:h,col:m}=a,p=t=>n(e,m,s.value,r.value,t,i),u=t=>{d(e,m,t,h,p),c(h,p,u)};o(h,p,u)}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}disconnectedCallback(){super.disconnectedCallback(),this.removeAttribute("role")}render(){return e`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-grid-head-item.css.esm.js";import{N as a}from"../../internal/nile-element.esm.js";import{i as l,a as o,h as n,b as d,r as c}from"./nile-grid-head-item.utils.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";let m=class extends a{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.width=null,this.sticky=null,this.lockWidth=!1,this.onHandlePointerDown=e=>{const t=this,i=this.closest("nile-grid"),s={value:0},r={value:0},a=l(t,e,s,r);if(!a)return;const{target:m,col:p}=a,h=e=>n(t,p,r.value,s.value,e,i),u=e=>{d(t,p,e,m,h),c(m,h,u)};o(m,h,u)}}static get styles(){return[r]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}disconnectedCallback(){super.disconnectedCallback(),this.removeAttribute("role")}render(){return t`
2
2
  <div part="grid-head-item-base" class="head-item-base">
3
3
  <slot></slot>
4
- ${this.resizable?e`
4
+ ${this.resizable?t`
5
5
  <div
6
6
  aria-hidden="false"
7
7
  class="resize-handle"
@@ -10,4 +10,4 @@ import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as
10
10
  ></div>
11
11
  `:null}
12
12
  </div>
13
- `}};t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],h.prototype,"rowspan",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"resizable",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"width",void 0),t([i({type:String,reflect:!0,attribute:!0})],h.prototype,"sticky",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],h.prototype,"lockWidth",void 0),h=t([r("nile-grid-head-item")],h);export{h as N};
13
+ `}};e([i({type:Number,reflect:!0,attribute:!0})],m.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],m.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],m.prototype,"resizable",void 0),e([i({type:String,reflect:!0,attribute:!0})],m.prototype,"width",void 0),e([i({type:String,reflect:!0,attribute:!0})],m.prototype,"sticky",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],m.prototype,"lockWidth",void 0),m=e([s("nile-grid-head-item")],m);export{m as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-grid-row.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-row.css.cjs.js","../../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridRowCjsJs){_export("NileGridRow",_nileGridRowCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridRowCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-grid-row.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-row.css.cjs.js","../../internal/nile-element.cjs.js","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridRowCjsJs){_export("NileGridRow",_nileGridRowCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridRowCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGridRow}from"./nile-grid-row.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-row.css.esm.js";import"../../internal/nile-element.esm.js";
1
+ export{N as NileGridRow}from"./nile-grid-row.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-row.css.esm.js";import"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";
@@ -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-row.css.cjs.js","../../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,r,e,o,s,i,_templateObject,l;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){e=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;},function(_nileGridRowCssCjsJs){s=_nileGridRowCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_i){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.disabled=!1,_this.hover=!1,_this.selected=!1;return _this;}_inherits(l,_i);return _createClass(l,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(l,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-row-base\" class=\"row-base\">\n <div part=\"row-slot\" class=\"row-slot\">\n <slot></slot>\n </div>\n <div part=\"row-bg\" class=\"row-bg\"></div>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"disabled",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"hover",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"selected",void 0),_export("N",l=t([o("nile-grid-row")],l));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-row.css.cjs.js","../../internal/nile-element.cjs.js","../../internal/accessibility/a11y.state.enum.cjs.js","../../internal/accessibility/a11y.property.enum.cjs.js","../../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,r,s,i,o,_templateObject,l;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){r=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileGridRowCssCjsJs){i=_nileGridRowCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_o){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.disabled=!1,_this.hover=!1,_this.selected=!1;return _this;}_inherits(l,_o);return _createClass(l,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(l,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-row-base\" class=\"row-base\">\n <div part=\"row-slot\" class=\"row-slot\">\n <slot></slot>\n </div>\n <div part=\"row-bg\" class=\"row-bg\"></div>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[i];}}]);}(o));t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"disabled",void 0),t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"hover",void 0),t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"selected",void 0),_export("N",l=t([s("nile-grid-row")],l));}};});
2
2
  //# sourceMappingURL=nile-grid-row.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid-row.cjs.js","sources":["../../../../src/nile-grid/nile-grid-row/nile-grid-row.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-row.css';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Nile grid-row component.\n *\n * @tag nile-grid-row\n *\n */\n@customElement('nile-grid-row')\nexport class NileGridRow extends NileElement {\n /**\n * The styles for nile-grid-row\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true, attribute: true }) disabled: boolean = false;\n @property({ type: Boolean, reflect: true, attribute: true }) hover: boolean = false;\n @property({ type: Boolean, reflect: true, attribute: true }) selected: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'row');\n }\n\n protected render() {\n return html`\n <div part=\"grid-row-base\" class=\"row-base\">\n <div part=\"row-slot\" class=\"row-slot\">\n <slot></slot>\n </div>\n <div part=\"row-bg\" class=\"row-bg\"></div>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-row': NileGridRow;\n }\n}\n"],"names":["NileGridRow","_i","l","constructor","this","disabled","hover","selected","_this","_inherits","_createClass","key","value","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","NileElement","property","type","Boolean","reflect","attribute","prototype","_export","customElement"],"mappings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AAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KAX5E9B,EAAWoB,CAAA,CAAA,CADvBW,CAAc,CAAA,eAAA,CAAA,CAAA,CACF/B"}
1
+ {"version":3,"file":"nile-grid-row.cjs.js","sources":["../../../../src/nile-grid/nile-grid-row/nile-grid-row.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-row.css';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Nile grid-row component.\n *\n * @tag nile-grid-row\n *\n */\n@customElement('nile-grid-row')\nexport class NileGridRow extends NileElement {\n /**\n * The styles for nile-grid-row\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true, attribute: true }) disabled: boolean = false;\n @property({ type: Boolean, reflect: true, attribute: true }) hover: boolean = false;\n @property({ type: Boolean, reflect: true, attribute: true }) selected: boolean = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'row');\n }\n\n protected render() {\n return html`\n <div part=\"grid-row-base\" class=\"row-base\">\n <div part=\"row-slot\" class=\"row-slot\">\n <slot></slot>\n </div>\n <div part=\"row-bg\" class=\"row-bg\"></div>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-row': NileGridRow;\n }\n}\n"],"names":["NileGridRow","l","this","disabled","hover","selected","_this","_inherits","_o","_createClass","key","value","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","NileElement","property","type","Boolean","reflect","attribute","prototype","_export","customElement"],"mappings":"28HAmBaA,4BAAN,SAAAC,EAAA,qEASwD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CAAA,CADvBW,CAAc,CAAA,eAAA,CAAA,CAAA,CACF9B"}
@@ -1,8 +1,8 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as r,customElement as o}from"lit/decorators.js";import{s}from"./nile-grid-row.css.esm.js";import{N as i}from"../../internal/nile-element.esm.js";let l=class extends i{constructor(){super(...arguments),this.disabled=!1,this.hover=!1,this.selected=!1}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return e`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as r,customElement as s}from"lit/decorators.js";import{s as i}from"./nile-grid-row.css.esm.js";import{N as o}from"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";let l=class extends o{constructor(){super(...arguments),this.disabled=!1,this.hover=!1,this.selected=!1}static get styles(){return[i]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return t`
2
2
  <div part="grid-row-base" class="row-base">
3
3
  <div part="row-slot" class="row-slot">
4
4
  <slot></slot>
5
5
  </div>
6
6
  <div part="row-bg" class="row-bg"></div>
7
7
  </div>
8
- `}};t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"disabled",void 0),t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"hover",void 0),t([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"selected",void 0),l=t([o("nile-grid-row")],l);export{l as N};
8
+ `}};e([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"disabled",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"hover",void 0),e([r({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"selected",void 0),l=e([s("nile-grid-row")],l);export{l 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.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.width.cjs.js","./types/nile-grid.enums.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,r,o,d,l,a,n,c,u,v,m,p,b,f,w,_templateObject,g;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){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.state;e=_litDecoratorsJs.query;h=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCssCjsJs){o=_nileGridCssCjsJs.s;},function(_internalNileElementCjsJs){d=_internalNileElementCjsJs.N;},function(_nileGridWidthCjsJs){l=_nileGridWidthCjsJs.s;a=_nileGridWidthCjsJs.c;n=_nileGridWidthCjsJs.a;c=_nileGridWidthCjsJs.u;u=_nileGridWidthCjsJs.r;v=_nileGridWidthCjsJs.b;m=_nileGridWidthCjsJs.l;p=_nileGridWidthCjsJs.d;b=_nileGridWidthCjsJs.g;f=_nileGridWidthCjsJs.e;w=_nileGridWidthCjsJs.f;},function(_typesNileGridEnumsCjsJs){}],execute:function execute(){_export("N",g=/*#__PURE__*/function(_d){function g(){var _this;_classCallCheck(this,g);_this=_callSuper(this,g),_this.columnWidths=[],_this.enableScroll=!1,_this.hoverable=!1,_this.overflowScrollBehaviour="none",_this.raf=0,_this.minColumnWidth=40,_this.stickyLeftIndexes=[],_this.stickyRightIndexes=[],_this.cellHeight=null,_this.headHeight=null,_this.widthsInitialized=!1,_this.lockedWidthColumns=[],_this.prefixSumColumnsWidth=[],_this.stickyColumns=[],_this.bodyRows=[],_this.headRows=[],_this.needsStructureLayout=!1,_this.needsWidthLayout=!1,_this.needsSpanLayout=!1,_this.colCount=0,_this.isGridReady=!1,_this.stickyLeftHeadEls=[],_this.stickyRightHeadEls=[],_this.stickyLeftBodyEls=[],_this.stickyRightBodyEls=[],_this.resizeTimer=0,_this.shadowRaf=0,_this.resizeBaseColumnWidths=[],_this.syncStickyShadowsRaf=function(){_this.shadowRaf||(_this.shadowRaf=requestAnimationFrame(function(){_this.shadowRaf=0,l(_assertThisInitialized(_this));}));},_this.onResize=function(t){t.stopPropagation(),_this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});var _t$detail=t.detail,i=_t$detail.col,s=_t$detail.widthPx;if(!_this.resizeBaseColumnWidths)return;a(_this.columnWidths,_this.resizeBaseColumnWidths);var _n=n({target:t.target,col:i,widthPx:s,floor:_this.minColumnWidth,columnWidths:_this.columnWidths}),e=_n.prevW,h=_n.newW,r=_n.delta0;0!==r?(_this.enableScroll?v({grid:_assertThisInitialized(_this),col:i,newW:h}):u({grid:_assertThisInitialized(_this),col:i,prevW:e,newW:h,floor:_this.minColumnWidth}),c(_assertThisInitialized(_this),i)):c(_assertThisInitialized(_this),i);};return _this;}_inherits(g,_d);return _createClass(g,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(g,"connectedCallback",this,3)([]),this.emit("nile-init");}},{key:"updateOverscrollBehavior",value:function updateOverscrollBehavior(){var t=this.scrollHeight>this.clientHeight;this.style.overscrollBehavior=t?this.overflowScrollBehaviour:"";}},{key:"scheduleLayout",value:function scheduleLayout(){var _this2=this;this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame(function(){_this2.raf=0,m(_this2,_this2.slotEl,_this2.ensureWidths.bind(_this2),_this2.stickyLeftIndexes,_this2.stickyRightIndexes),l(_this2);});}},{key:"ensureWidths",value:function ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(0),this.lockedWidthColumns=Array(t).fill(!1));}},{key:"firstUpdated",value:function firstUpdated(){var _this3=this;this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",this.syncStickyShadowsRaf),this.resizeObserverStickyShadows=new ResizeObserver(function(){l(_this3),_this3.updateOverscrollBehavior();}),this.resizeObserverStickyShadows.observe(this),this.syncStickyShadowsRaf();}},{key:"updated",value:function updated(t){t.has("overflowScrollBehaviour")&&this.updateOverscrollBehavior();}},{key:"_attachObserverAndLayout",value:function _attachObserverAndLayout(){var _this$mo,_this4=this,_this$resizeObserver,_this$resizeObserver2,_this$columnWidths;(_this$mo=this.mo)!==null&&_this$mo!==void 0&&_this$mo.disconnect(),this.mo=new MutationObserver(function(){_this4.needsStructureLayout=!0,_this4.needsWidthLayout=!0,_this4.needsSpanLayout=!0,_this4.scheduleLayout();}),(_this$resizeObserver=this.resizeObserver)!==null&&_this$resizeObserver!==void 0&&_this$resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(function(){_this4.resizeTimer&&clearTimeout(_this4.resizeTimer),_this4.resizeTimer=setTimeout(function(){_this4.resizeTimer=0,_this4.needsWidthLayout=!0,_this4.scheduleLayout();},16);});var t=b(this.slotEl),i=f(this.slotEl);if(!t&&!i)return;var s=t!==null&&t!==void 0?t:this;this.mo.observe(s,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["colspan","rowspan","width","lockwidth","sticky"]}),(_this$resizeObserver2=this.resizeObserver)!==null&&_this$resizeObserver2!==void 0&&_this$resizeObserver2.observe(this),this.colCount&&((_this$columnWidths=this.columnWidths)===null||_this$columnWidths===void 0?void 0:_this$columnWidths.length)||(this.needsStructureLayout=!0,this.needsSpanLayout=!0,this.needsWidthLayout=!0,this.scheduleLayout());}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n "])));}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _superPropGet2,_this$mo2,_this$resizeObserver3,_this$resizeObserverS;this.emit("nile-destroy"),(_superPropGet2=_superPropGet(g,"disconnectedCallback",this,3))!==null&&_superPropGet2!==void 0&&_superPropGet2([]),(_this$mo2=this.mo)!==null&&_this$mo2!==void 0&&_this$mo2.disconnect(),(_this$resizeObserver3=this.resizeObserver)!==null&&_this$resizeObserver3!==void 0&&_this$resizeObserver3.disconnect(),(_this$resizeObserverS=this.resizeObserverStickyShadows)!==null&&_this$resizeObserverS!==void 0&&_this$resizeObserverS.disconnect(),this.raf&&cancelAnimationFrame(this.raf),w(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this));}}],[{key:"styles",get:function get(){return[o];}}]);}(d));t([s()],g.prototype,"columnWidths",void 0),t([e("slot")],g.prototype,"slotEl",void 0),t([e(".nile-resize-start")],g.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],g.prototype,"resizeEnd",void 0),t([e(".shadow-left")],g.prototype,"shadowLeft",void 0),t([e(".shadow-right")],g.prototype,"shadowRight",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"enableScroll",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"hoverable",void 0),t([h({type:String,attribute:!0,reflect:!0})],g.prototype,"overflowScrollBehaviour",void 0),t([h({type:Number,reflect:!0,attribute:!0})],g.prototype,"minColumnWidth",void 0),t([s()],g.prototype,"stickyLeftIndexes",void 0),t([s()],g.prototype,"stickyRightIndexes",void 0),t([s()],g.prototype,"cellHeight",void 0),t([s()],g.prototype,"headHeight",void 0),t([s()],g.prototype,"widthsInitialized",void 0),t([s()],g.prototype,"lockedWidthColumns",void 0),t([s()],g.prototype,"prefixSumColumnsWidth",void 0),t([s()],g.prototype,"stickyColumns",void 0),t([s()],g.prototype,"bodyRows",void 0),t([s()],g.prototype,"headRows",void 0),t([s()],g.prototype,"needsStructureLayout",void 0),t([s()],g.prototype,"needsWidthLayout",void 0),t([s()],g.prototype,"needsSpanLayout",void 0),t([s()],g.prototype,"colCount",void 0),_export("N",g=t([r("nile-grid")],g));}};});
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.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.width.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","./types/nile-grid.enums.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,r,o,l,a,n,d,c,u,v,m,p,b,y,f,_templateObject,w;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){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.state;e=_litDecoratorsJs.query;h=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCssCjsJs){o=_nileGridCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridWidthCjsJs){a=_nileGridWidthCjsJs.s;n=_nileGridWidthCjsJs.c;d=_nileGridWidthCjsJs.a;c=_nileGridWidthCjsJs.u;u=_nileGridWidthCjsJs.r;v=_nileGridWidthCjsJs.b;m=_nileGridWidthCjsJs.l;p=_nileGridWidthCjsJs.d;b=_nileGridWidthCjsJs.g;y=_nileGridWidthCjsJs.e;f=_nileGridWidthCjsJs.f;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_typesNileGridEnumsCjsJs){}],execute:function execute(){_export("N",w=/*#__PURE__*/function(_l){function w(){var _this;_classCallCheck(this,w);_this=_callSuper(this,w),_this.columnWidths=[],_this.enableScroll=!1,_this.hoverable=!1,_this.overflowScrollBehaviour="none",_this.raf=0,_this.minColumnWidth=40,_this.stickyLeftIndexes=[],_this.stickyRightIndexes=[],_this.cellHeight=null,_this.headHeight=null,_this.widthsInitialized=!1,_this.lockedWidthColumns=[],_this.prefixSumColumnsWidth=[],_this.stickyColumns=[],_this.bodyRows=[],_this.headRows=[],_this.needsStructureLayout=!1,_this.needsWidthLayout=!1,_this.needsSpanLayout=!1,_this.colCount=0,_this.isGridReady=!1,_this.stickyLeftHeadEls=[],_this.stickyRightHeadEls=[],_this.stickyLeftBodyEls=[],_this.stickyRightBodyEls=[],_this.resizeTimer=0,_this.shadowRaf=0,_this.resizeBaseColumnWidths=[],_this.syncStickyShadowsRaf=function(){_this.shadowRaf||(_this.shadowRaf=requestAnimationFrame(function(){_this.shadowRaf=0,a(_assertThisInitialized(_this));}));},_this.onResize=function(t){t.stopPropagation(),_this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});var _t$detail=t.detail,i=_t$detail.col,s=_t$detail.widthPx;if(!_this.resizeBaseColumnWidths)return;n(_this.columnWidths,_this.resizeBaseColumnWidths);var _d=d({target:t.target,col:i,widthPx:s,floor:_this.minColumnWidth,columnWidths:_this.columnWidths}),e=_d.prevW,h=_d.newW,r=_d.delta0;0!==r?(_this.enableScroll?v({grid:_assertThisInitialized(_this),col:i,newW:h}):u({grid:_assertThisInitialized(_this),col:i,prevW:e,newW:h,floor:_this.minColumnWidth}),c(_assertThisInitialized(_this),i)):c(_assertThisInitialized(_this),i);};return _this;}_inherits(w,_l);return _createClass(w,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(w,"connectedCallback",this,3)([]),this.emit("nile-init");}},{key:"updateOverscrollBehavior",value:function updateOverscrollBehavior(){var t=this.scrollHeight>this.clientHeight;this.style.overscrollBehavior=t?this.overflowScrollBehaviour:"";}},{key:"scheduleLayout",value:function scheduleLayout(){var _this2=this;this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame(function(){_this2.raf=0,m(_this2,_this2.slotEl,_this2.ensureWidths.bind(_this2),_this2.stickyLeftIndexes,_this2.stickyRightIndexes),a(_this2);});}},{key:"ensureWidths",value:function ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(0),this.lockedWidthColumns=Array(t).fill(!1));}},{key:"firstUpdated",value:function firstUpdated(){var _this3=this;this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",this.syncStickyShadowsRaf),this.resizeObserverStickyShadows=new ResizeObserver(function(){a(_this3),_this3.updateOverscrollBehavior();}),this.resizeObserverStickyShadows.observe(this),this.syncStickyShadowsRaf();}},{key:"updated",value:function updated(t){t.has("overflowScrollBehaviour")&&this.updateOverscrollBehavior();}},{key:"_attachObserverAndLayout",value:function _attachObserverAndLayout(){var _this$mo,_this4=this,_this$resizeObserver,_this$resizeObserver2,_this$columnWidths;(_this$mo=this.mo)!==null&&_this$mo!==void 0&&_this$mo.disconnect(),this.mo=new MutationObserver(function(){_this4.needsStructureLayout=!0,_this4.needsWidthLayout=!0,_this4.needsSpanLayout=!0,_this4.scheduleLayout();}),(_this$resizeObserver=this.resizeObserver)!==null&&_this$resizeObserver!==void 0&&_this$resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(function(){_this4.resizeTimer&&clearTimeout(_this4.resizeTimer),_this4.resizeTimer=setTimeout(function(){_this4.resizeTimer=0,_this4.needsWidthLayout=!0,_this4.scheduleLayout();},16);});var t=b(this.slotEl),i=y(this.slotEl);if(!t&&!i)return;var s=t!==null&&t!==void 0?t:this;this.mo.observe(s,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["colspan","rowspan","width","lockwidth","sticky"]}),(_this$resizeObserver2=this.resizeObserver)!==null&&_this$resizeObserver2!==void 0&&_this$resizeObserver2.observe(this),this.colCount&&((_this$columnWidths=this.columnWidths)===null||_this$columnWidths===void 0?void 0:_this$columnWidths.length)||(this.needsStructureLayout=!0,this.needsSpanLayout=!0,this.needsWidthLayout=!0,this.scheduleLayout());}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n "])));}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _superPropGet2,_this$mo2,_this$resizeObserver3,_this$resizeObserverS;this.emit("nile-destroy"),(_superPropGet2=_superPropGet(w,"disconnectedCallback",this,3))!==null&&_superPropGet2!==void 0&&_superPropGet2([]),(_this$mo2=this.mo)!==null&&_this$mo2!==void 0&&_this$mo2.disconnect(),(_this$resizeObserver3=this.resizeObserver)!==null&&_this$resizeObserver3!==void 0&&_this$resizeObserver3.disconnect(),(_this$resizeObserverS=this.resizeObserverStickyShadows)!==null&&_this$resizeObserverS!==void 0&&_this$resizeObserverS.disconnect(),this.raf&&cancelAnimationFrame(this.raf),f(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this));}}],[{key:"styles",get:function get(){return[o];}}]);}(l));t([s()],w.prototype,"columnWidths",void 0),t([e("slot")],w.prototype,"slotEl",void 0),t([e(".nile-resize-start")],w.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],w.prototype,"resizeEnd",void 0),t([e(".shadow-left")],w.prototype,"shadowLeft",void 0),t([e(".shadow-right")],w.prototype,"shadowRight",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],w.prototype,"enableScroll",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],w.prototype,"hoverable",void 0),t([h({type:String,attribute:!0,reflect:!0})],w.prototype,"overflowScrollBehaviour",void 0),t([h({type:Number,reflect:!0,attribute:!0})],w.prototype,"minColumnWidth",void 0),t([s()],w.prototype,"stickyLeftIndexes",void 0),t([s()],w.prototype,"stickyRightIndexes",void 0),t([s()],w.prototype,"cellHeight",void 0),t([s()],w.prototype,"headHeight",void 0),t([s()],w.prototype,"widthsInitialized",void 0),t([s()],w.prototype,"lockedWidthColumns",void 0),t([s()],w.prototype,"prefixSumColumnsWidth",void 0),t([s()],w.prototype,"stickyColumns",void 0),t([s()],w.prototype,"bodyRows",void 0),t([s()],w.prototype,"headRows",void 0),t([s()],w.prototype,"needsStructureLayout",void 0),t([s()],w.prototype,"needsWidthLayout",void 0),t([s()],w.prototype,"needsSpanLayout",void 0),t([s()],w.prototype,"colCount",void 0),_export("N",w=t([r("nile-grid")],w));}};});
2
2
  //# sourceMappingURL=nile-grid.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-grid.cjs.js","sources":["../../../src/nile-grid/nile-grid.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, query, state } from 'lit/decorators.js';\nimport { styles } from './nile-grid.css';\nimport NileElement from '../internal/nile-element';\nimport { syncStickyShadows, layout } from './nile-grid.layout';\nimport { listenToEventListeners, removeEventListeners, getHead, getBody, copyArrayValuesInPlace } from './nile-grid.utils';\nimport { computeNewWidth, resizeWithScroll, resizeNoScroll, updateResizeGuides } from './nile-grid.resize';\nimport { PrefixColumn } from './types/nile-grid.types';\n\n/**\n * Nile grid component.\n *\n * @tag nile-grid\n *\n */\n@customElement('nile-grid')\nexport class NileGrid extends NileElement {\n /**\n * The styles for nile-grid\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 /** To store the column widths in the beginning and after resizing */\n @state() public columnWidths: number[] = [];\n\n /** To get the slot element */\n @query('slot') public slotEl!: HTMLSlotElement;\n\n /** To get the first resize line to show the resize handle */\n @query('.nile-resize-start') resizeStart: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.nile-resize-end') resizeEnd: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-left') shadowLeft: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-right') shadowRight: HTMLElement;\n\n /** To enable horizontal scrolling when user is resizing */\n @property({ type: Boolean, attribute: true, reflect: true }) enableScroll: boolean = false;\n\n /** To enable hoverable rows */\n @property({ type: Boolean, attribute: true, reflect: true }) hoverable: boolean = false;\n\n /** Controls vertical overscroll behavior when the grid is scrollable. */\n @property({ type: String, attribute: true, reflect: true }) overflowScrollBehaviour: string = \"none\";\n\n /** To store the mutation observer */\n private mo?: MutationObserver;\n\n /** To store the resize observer */\n private resizeObserver?: ResizeObserver;\n\n private resizeObserverStickyShadows?: ResizeObserver;\n\n /** To store the request animation frame */\n private raf = 0;\n\n /** Minimum column width */\n @property({ type: Number, reflect: true, attribute: true }) minColumnWidth = 40;\n\n /** To store the sticky index's */\n @state() public stickyLeftIndexes: number[] = [];\n\n /** To store the sticky index's */\n @state() public stickyRightIndexes: number[] = [];\n\n /** To calculate the rowspan height */\n @state() public cellHeight: number | null = null;\n\n @state() public headHeight: number | null = null;\n\n /** To check if the widths are initialized */\n @state() public widthsInitialized = false;\n\n /** To check if the widths are initialized */\n @state() public lockedWidthColumns: boolean[] = [];\n\n /** prefix columns width */\n @state() public prefixSumColumnsWidth: PrefixColumn[] = [];\n\n /** prefix columns width */\n @state() public stickyColumns: number[] = [];\n\n /** body rows */\n @state() public bodyRows: HTMLElement[] = [];\n\n /** head rows */\n @state() public headRows: HTMLElement[] = [];\n\n @state() public needsStructureLayout = false;\n\n @state() public needsWidthLayout = false;\n\n @state() public needsSpanLayout = false;\n\n @state() public colCount = 0;\n \n public isGridReady = false;\n\n public shadowLeftVisibleSticky?: boolean;\n\n public shadowRightVisibleSticky?: boolean;\n\n public stickyLeftHeadEls: HTMLElement[] = [];\n\n public stickyRightHeadEls: HTMLElement[] = [];\n\n public stickyLeftBodyEls: HTMLElement[] = [];\n\n public stickyRightBodyEls: HTMLElement[] = [];\n\n private resizeTimer: any = 0;\n\n /** To throttle sticky shadow updates */\n private shadowRaf = 0;\n\n public resizeBaseColumnWidths: number[] = [];\n\n constructor() {\n super();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit('nile-init');\n }\n\n private syncStickyShadowsRaf = () => {\n if (this.shadowRaf) return;\n this.shadowRaf = requestAnimationFrame(() => {\n this.shadowRaf = 0;\n syncStickyShadows(this);\n });\n };\n\n private updateOverscrollBehavior() {\n const isVerticallyScrollable = this.scrollHeight > this.clientHeight;\n this.style.overscrollBehavior = isVerticallyScrollable\n ? this.overflowScrollBehaviour\n : '';\n }\n\n\n private scheduleLayout() {\n if (this.raf) cancelAnimationFrame(this.raf);\n this.raf = requestAnimationFrame(() => {\n this.raf = 0;\n layout(\n this,\n this.slotEl,\n this.ensureWidths.bind(this),\n this.stickyLeftIndexes,\n this.stickyRightIndexes\n );\n syncStickyShadows(this);\n });\n }\n\n private ensureWidths(colCount: number) {\n if (this.columnWidths.length !== colCount) {\n this.columnWidths = Array(colCount).fill(0);\n this.lockedWidthColumns = Array(colCount).fill(false); \n }\n }\n\n private onResize = (e: Event) => {\n e.stopPropagation();\n this.emit('nile-resize', {\n columnNumber: (e as CustomEvent).detail.col,\n columnWidth: (e as CustomEvent).detail.widthPx,\n });\n const { col, widthPx } = (e as CustomEvent).detail as {\n col: number;\n widthPx: number;\n };\n if (!this.resizeBaseColumnWidths) return;\n \n copyArrayValuesInPlace(this.columnWidths, this.resizeBaseColumnWidths);\n const { prevW, newW, delta0 } = computeNewWidth({\n target: e.target as HTMLElement,\n col,\n widthPx,\n floor: this.minColumnWidth,\n columnWidths: this.columnWidths,\n });\n\n if (delta0 === 0) {\n updateResizeGuides(this, col);\n return;\n }\n\n if (!this.enableScroll) {\n resizeNoScroll({ grid: this, col, prevW, newW, floor: this.minColumnWidth });\n } else {\n resizeWithScroll({ grid: this, col, newW });\n }\n updateResizeGuides(this, col);\n };\n\n protected firstUpdated() {\n this.setAttribute('role', 'table');\n listenToEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n this.addEventListener('scroll', this.syncStickyShadowsRaf);\n this.resizeObserverStickyShadows = new ResizeObserver(() => {\n syncStickyShadows(this);\n this.updateOverscrollBehavior();\n });\n this.resizeObserverStickyShadows.observe(this);\n this.syncStickyShadowsRaf();\n }\n\n updated(changed: Map<string, unknown>) {\n if (changed.has(\"overflowScrollBehaviour\")) {\n this.updateOverscrollBehavior();\n }\n }\n\n private _attachObserverAndLayout() {\n this.mo?.disconnect();\n this.mo = new MutationObserver(() => {\n this.needsStructureLayout = true;\n this.needsWidthLayout = true;\n this.needsSpanLayout = true;\n this.scheduleLayout();\n });\n this.resizeObserver?.disconnect();\n this.resizeObserver = new ResizeObserver(() => {\n if (this.resizeTimer) clearTimeout(this.resizeTimer);\n this.resizeTimer = setTimeout(() => {\n this.resizeTimer = 0;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }, 16);\n });\n\n const head = getHead(this.slotEl);\n const body = getBody(this.slotEl);\n \n if (!head && !body) return;\n const target = head ?? this;\n this.mo.observe(target, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['colspan', 'rowspan', 'width', 'lockwidth', 'sticky']\n });\n this.resizeObserver?.observe(this);\n\n if (!this.colCount || !this.columnWidths?.length) {\n this.needsStructureLayout = true;\n this.needsSpanLayout = true;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n this.emit('nile-destroy');\n super.disconnectedCallback?.();\n this.mo?.disconnect();\n this.resizeObserver?.disconnect();\n this.resizeObserverStickyShadows?.disconnect();\n\n if (this.raf) cancelAnimationFrame(this.raf);\n removeEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n }\n\n /* #endregion */\n}\n\nexport default NileGrid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid': NileGrid;\n }\n}\n"],"names":["NileGrid","g","super","this","columnWidths","enableScroll","hoverable","overflowScrollBehaviour","raf","minColumnWidth","stickyLeftIndexes","stickyRightIndexes","cellHeight","headHeight","widthsInitialized","lockedWidthColumns","prefixSumColumnsWidth","stickyColumns","bodyRows","headRows","needsStructureLayout","needsWidthLayout","needsSpanLayout","colCount","isGridReady","stickyLeftHeadEls","stickyRightHeadEls","stickyLeftBodyEls","stickyRightBodyEls","resizeTimer","shadowRaf","resizeBaseColumnWidths","syncStickyShadowsRaf","requestAnimationFrame","syncStickyShadows","onResize","e","stopPropagation","emit","columnNumber","detail","col","columnWidth","widthPx","_t$detail","copyArrayValuesInPlace","_n","computeNewWidth","target","floor","prevW","newW","delta0","resizeWithScroll","grid","resizeNoScroll","updateResizeGuides","_this","_inherits","_d","_createClass","key","value","connectedCallback","updateOverscrollBehavior","isVerticallyScrollable","scrollHeight","clientHeight","style","overscrollBehavior","scheduleLayout","cancelAnimationFrame","layout","slotEl","ensureWidths","bind","length","Array","fill","firstUpdated","setAttribute","listenToEventListeners","_attachObserverAndLayout","addEventListener","resizeObserverStickyShadows","ResizeObserver","observe","updated","changed","has","mo","disconnect","MutationObserver","resizeObserver","clearTimeout","setTimeout","head","getHead","body","getBody","childList","subtree","attributes","attributeFilter","_this$resizeObserver2","render","html","_templateObject","_taggedTemplateLiteral","disconnectedCallback","_superPropGet2","_superPropGet","_this$mo2","removeEventListeners","__decorate","get","styles","NileElement","state","prototype","query","property","type","Boolean","attribute","reflect","String","Number","customElement"],"mappings":"ulIAuBaA,4BA4GX,SAAAC,EAAA,CACEC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EAAAA,KAAAA,CAAAA,UAAAA,MAAAA,CAAAA,EAnGcC,KAAAA,CAAYC,YAAAA,CAAa,GAkBoBD,KAAAA,CAAYE,YAAAA,CAAAA,CAAY,CAGxBF,CAAAA,KAAAA,CAASG,SAAY,CAAA,CAAA,CAAA,CAGtBH,KAAAA,CAAuBI,uBAAW,CAAA,MAAA,CAWtFJ,KAAAA,CAAGK,GAAAA,CAAG,CAG8CL,CAAAA,KAAAA,CAAcM,eAAG,EAG7DN,CAAAA,KAAAA,CAAiBO,iBAAa,CAAA,EAAA,CAG9BP,KAAAA,CAAkBQ,kBAAAA,CAAa,GAG/BR,KAAAA,CAAUS,UAAAA,CAAkB,IAE5BT,CAAAA,KAAAA,CAAUU,UAAkB,CAAA,IA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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, query, state } from 'lit/decorators.js';\nimport { styles } from './nile-grid.css';\nimport NileElement from '../internal/nile-element';\nimport { syncStickyShadows, layout } from './nile-grid.layout';\nimport { listenToEventListeners, removeEventListeners, getHead, getBody, copyArrayValuesInPlace } from './nile-grid.utils';\nimport { computeNewWidth, resizeWithScroll, resizeNoScroll, updateResizeGuides } from './nile-grid.resize';\nimport { PrefixColumn } from './types/nile-grid.types';\n\n/**\n * Nile grid component.\n *\n * @tag nile-grid\n *\n */\n@customElement('nile-grid')\nexport class NileGrid extends NileElement {\n /**\n * The styles for nile-grid\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 /** To store the column widths in the beginning and after resizing */\n @state() public columnWidths: number[] = [];\n\n /** To get the slot element */\n @query('slot') public slotEl!: HTMLSlotElement;\n\n /** To get the first resize line to show the resize handle */\n @query('.nile-resize-start') resizeStart: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.nile-resize-end') resizeEnd: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-left') shadowLeft: HTMLElement;\n\n /** To get the last resize line to show the resize handle */\n @query('.shadow-right') shadowRight: HTMLElement;\n\n /** To enable horizontal scrolling when user is resizing */\n @property({ type: Boolean, attribute: true, reflect: true }) enableScroll: boolean = false;\n\n /** To enable hoverable rows */\n @property({ type: Boolean, attribute: true, reflect: true }) hoverable: boolean = false;\n\n /** Controls vertical overscroll behavior when the grid is scrollable. */\n @property({ type: String, attribute: true, reflect: true }) overflowScrollBehaviour: string = \"none\";\n\n /** To store the mutation observer */\n private mo?: MutationObserver;\n\n /** To store the resize observer */\n private resizeObserver?: ResizeObserver;\n\n private resizeObserverStickyShadows?: ResizeObserver;\n\n /** To store the request animation frame */\n private raf = 0;\n\n /** Minimum column width */\n @property({ type: Number, reflect: true, attribute: true }) minColumnWidth = 40;\n\n /** To store the sticky index's */\n @state() public stickyLeftIndexes: number[] = [];\n\n /** To store the sticky index's */\n @state() public stickyRightIndexes: number[] = [];\n\n /** To calculate the rowspan height */\n @state() public cellHeight: number | null = null;\n\n @state() public headHeight: number | null = null;\n\n /** To check if the widths are initialized */\n @state() public widthsInitialized = false;\n\n /** To check if the widths are initialized */\n @state() public lockedWidthColumns: boolean[] = [];\n\n /** prefix columns width */\n @state() public prefixSumColumnsWidth: PrefixColumn[] = [];\n\n /** prefix columns width */\n @state() public stickyColumns: number[] = [];\n\n /** body rows */\n @state() public bodyRows: HTMLElement[] = [];\n\n /** head rows */\n @state() public headRows: HTMLElement[] = [];\n\n @state() public needsStructureLayout = false;\n\n @state() public needsWidthLayout = false;\n\n @state() public needsSpanLayout = false;\n\n @state() public colCount = 0;\n \n public isGridReady = false;\n\n public shadowLeftVisibleSticky?: boolean;\n\n public shadowRightVisibleSticky?: boolean;\n\n public stickyLeftHeadEls: HTMLElement[] = [];\n\n public stickyRightHeadEls: HTMLElement[] = [];\n\n public stickyLeftBodyEls: HTMLElement[] = [];\n\n public stickyRightBodyEls: HTMLElement[] = [];\n\n private resizeTimer: any = 0;\n\n /** To throttle sticky shadow updates */\n private shadowRaf = 0;\n\n public resizeBaseColumnWidths: number[] = [];\n\n constructor() {\n super();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit('nile-init');\n }\n\n private syncStickyShadowsRaf = () => {\n if (this.shadowRaf) return;\n this.shadowRaf = requestAnimationFrame(() => {\n this.shadowRaf = 0;\n syncStickyShadows(this);\n });\n };\n\n private updateOverscrollBehavior() {\n const isVerticallyScrollable = this.scrollHeight > this.clientHeight;\n this.style.overscrollBehavior = isVerticallyScrollable\n ? this.overflowScrollBehaviour\n : '';\n }\n\n\n private scheduleLayout() {\n if (this.raf) cancelAnimationFrame(this.raf);\n this.raf = requestAnimationFrame(() => {\n this.raf = 0;\n layout(\n this,\n this.slotEl,\n this.ensureWidths.bind(this),\n this.stickyLeftIndexes,\n this.stickyRightIndexes\n );\n syncStickyShadows(this);\n });\n }\n\n private ensureWidths(colCount: number) {\n if (this.columnWidths.length !== colCount) {\n this.columnWidths = Array(colCount).fill(0);\n this.lockedWidthColumns = Array(colCount).fill(false); \n }\n }\n\n private onResize = (e: Event) => {\n e.stopPropagation();\n this.emit('nile-resize', {\n columnNumber: (e as CustomEvent).detail.col,\n columnWidth: (e as CustomEvent).detail.widthPx,\n });\n const { col, widthPx } = (e as CustomEvent).detail as {\n col: number;\n widthPx: number;\n };\n if (!this.resizeBaseColumnWidths) return;\n \n copyArrayValuesInPlace(this.columnWidths, this.resizeBaseColumnWidths);\n const { prevW, newW, delta0 } = computeNewWidth({\n target: e.target as HTMLElement,\n col,\n widthPx,\n floor: this.minColumnWidth,\n columnWidths: this.columnWidths,\n });\n\n if (delta0 === 0) {\n updateResizeGuides(this, col);\n return;\n }\n\n if (!this.enableScroll) {\n resizeNoScroll({ grid: this, col, prevW, newW, floor: this.minColumnWidth });\n } else {\n resizeWithScroll({ grid: this, col, newW });\n }\n updateResizeGuides(this, col);\n };\n\n protected firstUpdated() {\n this.setAttribute('role', 'table');\n listenToEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n this.addEventListener('scroll', this.syncStickyShadowsRaf);\n this.resizeObserverStickyShadows = new ResizeObserver(() => {\n syncStickyShadows(this);\n this.updateOverscrollBehavior();\n });\n this.resizeObserverStickyShadows.observe(this);\n this.syncStickyShadowsRaf();\n }\n\n updated(changed: Map<string, unknown>) {\n if (changed.has(\"overflowScrollBehaviour\")) {\n this.updateOverscrollBehavior();\n }\n }\n\n private _attachObserverAndLayout() {\n this.mo?.disconnect();\n this.mo = new MutationObserver(() => {\n this.needsStructureLayout = true;\n this.needsWidthLayout = true;\n this.needsSpanLayout = true;\n this.scheduleLayout();\n });\n this.resizeObserver?.disconnect();\n this.resizeObserver = new ResizeObserver(() => {\n if (this.resizeTimer) clearTimeout(this.resizeTimer);\n this.resizeTimer = setTimeout(() => {\n this.resizeTimer = 0;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }, 16);\n });\n\n const head = getHead(this.slotEl);\n const body = getBody(this.slotEl);\n \n if (!head && !body) return;\n const target = head ?? this;\n this.mo.observe(target, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['colspan', 'rowspan', 'width', 'lockwidth', 'sticky']\n });\n this.resizeObserver?.observe(this);\n\n if (!this.colCount || !this.columnWidths?.length) {\n this.needsStructureLayout = true;\n this.needsSpanLayout = true;\n this.needsWidthLayout = true;\n this.scheduleLayout();\n }\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-base\" class=\"nile-grid-base\">\n <div part=\"grid-slot-wrapper\">\n <slot part=\"grid-slot\"></slot>\n </div>\n <div part=\"resize-start\" class=\"nile-resize-start\"></div>\n <div part=\"resize-end\" class=\"nile-resize-end\"></div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n this.emit('nile-destroy');\n super.disconnectedCallback?.();\n this.mo?.disconnect();\n this.resizeObserver?.disconnect();\n this.resizeObserverStickyShadows?.disconnect();\n\n if (this.raf) cancelAnimationFrame(this.raf);\n removeEventListeners(\n this,\n this.onResize,\n this.slotEl,\n this._attachObserverAndLayout.bind(this)\n );\n }\n\n /* #endregion */\n}\n\nexport default NileGrid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid': NileGrid;\n }\n}\n"],"names":["NileGrid","_l","w","constructor","super","this","columnWidths","enableScroll","hoverable","overflowScrollBehaviour","raf","minColumnWidth","stickyLeftIndexes","stickyRightIndexes","cellHeight","headHeight","widthsInitialized","lockedWidthColumns","prefixSumColumnsWidth","stickyColumns","bodyRows","headRows","needsStructureLayout","needsWidthLayout","needsSpanLayout","colCount","isGridReady","stickyLeftHeadEls","stickyRightHeadEls","stickyLeftBodyEls","stickyRightBodyEls","resizeTimer","shadowRaf","resizeBaseColumnWidths","syncStickyShadowsRaf","requestAnimationFrame","syncStickyShadows","onResize","e","stopPropagation","emit","columnNumber","detail","col","columnWidth","widthPx","_t$detail","copyArrayValuesInPlace","_d","computeNewWidth","target","floor","prevW","newW","delta0","resizeWithScroll","grid","resizeNoScroll","updateResizeGuides","_this","_inherits","_createClass","key","value","connectedCallback","updateOverscrollBehavior","isVerticallyScrollable","scrollHeight","clientHeight","style","overscrollBehavior","scheduleLayout","cancelAnimationFrame","layout","slotEl","ensureWidths","bind","length","Array","fill","firstUpdated","setAttribute","listenToEventListeners","_attachObserverAndLayout","addEventListener","resizeObserverStickyShadows","ResizeObserver","observe","updated","changed","has","mo","disconnect","MutationObserver","resizeObserver","clearTimeout","setTimeout","head","getHead","body","getBody","childList","subtree","attributes","attributeFilter","_this$resizeObserver2","render","html","_templateObject","_taggedTemplateLiteral","disconnectedCallback","_superPropGet2","_superPropGet","_this$mo2","removeEventListeners","__decorate","get","styles","NileElement","state","prototype","query","property","type","Boolean","attribute","reflect","String","Number","customElement"],"mappings":"04IAuBaA,CAAN,uBAAAC,EAAA,EA4GL,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EACEC,KAAAA,CAAAA,UAAAA,MAAAA,CAAAA,EAnGcC,KAAAA,CAAYC,YAAAA,CAAa,EAkBoBD,CAAAA,KAAAA,CAAYE,YAAY,CAAA,CAAA,CAAA,CAGxBF,KAAAA,CAASG,SAAAA,CAAAA,CAAY,CAGtBH,CAAAA,KAAAA,CAAuBI,uBAAW,CAAA,MAAA,CAWtFJ,KAAAA,CAAGK,GAAAA,CAAG,EAG8CL,KAAAA,CAAcM,cAAAA,CAAG,EAG7DN,CAAAA,KAAAA,CAAiBO,iBAAa,CAAA,EAAA,CAG9BP,KAAAA,CAAkBQ,kBAAa,CAAA,EAAA,CAG/BR,KAAAA,CAAUS,UAAAA,CAAkB,IAE5BT,CAAAA,KAAAA,CAAUU,WAAkB,IAG5BV,CAAAA,KAAAA,CAAiBW,iB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A,SAAAA,CAAA,uBAAA,CAAA,IAAA,EAAA,CAAA,CAG3CL,CAAA,CAAA,CAAfI,CAA4CvH,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwH,SAAA,CAAA,eAAA,CAAA,IAAA,EAG7BL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAAA,CAAAA,CAAAA,CAAAA,CAA4CvH,EAAAwH,SAAA,CAAA,UAAA,CAAA,IAAA,EAG7BL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAAA,CAAAA,CAAAA,CAAAA,CAA4CvH,CAAAwH,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAE7BL,CAAA,CAAA,CAAfI,CAA4CvH,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwH,UAAA,sBAAA,CAAA,IAAA,EAAA,CAAA,CAE7BL,CAAA,CAAA,CAAfI,CAAwCvH,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwH,SAAA,CAAA,kBAAA,CAAA,IAAA,EAEzBL,CAAAA,CAAAA,CAAAA,CAAA,CAAfI,CAAAA,CAAAA,CAAAA,CAAAA,CAAuCvH,CAAAwH,CAAAA,SAAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAExBL,CAAA,CAAA,CAAfI,CAA4BvH,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwH,SAAA,CAAA,UAAA,CAAA,IAAA,EArFlBxH,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAQmH,CAAA,CAAA,CADpBc,CAAc,CAAA,WAAA,CAAA,CAAA,CACFjI"}
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{html as i}from"lit";import{state as s,query as e,property as h,customElement as r}from"lit/decorators.js";import{s as o}from"./nile-grid.css.esm.js";import{N as d}from"../internal/nile-element.esm.js";import{s as l,c as a,a as n,u as c,r as u,b as v,l as m,d as p,g as b,e as f,f as w}from"./nile-grid.width.esm.js";import"./types/nile-grid.enums.esm.js";let g=class extends d{static get styles(){return[o]}constructor(){super(),this.columnWidths=[],this.enableScroll=!1,this.hoverable=!1,this.overflowScrollBehaviour="none",this.raf=0,this.minColumnWidth=40,this.stickyLeftIndexes=[],this.stickyRightIndexes=[],this.cellHeight=null,this.headHeight=null,this.widthsInitialized=!1,this.lockedWidthColumns=[],this.prefixSumColumnsWidth=[],this.stickyColumns=[],this.bodyRows=[],this.headRows=[],this.needsStructureLayout=!1,this.needsWidthLayout=!1,this.needsSpanLayout=!1,this.colCount=0,this.isGridReady=!1,this.stickyLeftHeadEls=[],this.stickyRightHeadEls=[],this.stickyLeftBodyEls=[],this.stickyRightBodyEls=[],this.resizeTimer=0,this.shadowRaf=0,this.resizeBaseColumnWidths=[],this.syncStickyShadowsRaf=()=>{this.shadowRaf||(this.shadowRaf=requestAnimationFrame((()=>{this.shadowRaf=0,l(this)})))},this.onResize=t=>{t.stopPropagation(),this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});const{col:i,widthPx:s}=t.detail;if(!this.resizeBaseColumnWidths)return;a(this.columnWidths,this.resizeBaseColumnWidths);const{prevW:e,newW:h,delta0:r}=n({target:t.target,col:i,widthPx:s,floor:this.minColumnWidth,columnWidths:this.columnWidths});0!==r?(this.enableScroll?v({grid:this,col:i,newW:h}):u({grid:this,col:i,prevW:e,newW:h,floor:this.minColumnWidth}),c(this,i)):c(this,i)}}connectedCallback(){super.connectedCallback(),this.emit("nile-init")}updateOverscrollBehavior(){const t=this.scrollHeight>this.clientHeight;this.style.overscrollBehavior=t?this.overflowScrollBehaviour:""}scheduleLayout(){this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame((()=>{this.raf=0,m(this,this.slotEl,this.ensureWidths.bind(this),this.stickyLeftIndexes,this.stickyRightIndexes),l(this)}))}ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(0),this.lockedWidthColumns=Array(t).fill(!1))}firstUpdated(){this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",this.syncStickyShadowsRaf),this.resizeObserverStickyShadows=new ResizeObserver((()=>{l(this),this.updateOverscrollBehavior()})),this.resizeObserverStickyShadows.observe(this),this.syncStickyShadowsRaf()}updated(t){t.has("overflowScrollBehaviour")&&this.updateOverscrollBehavior()}_attachObserverAndLayout(){this.mo?.disconnect(),this.mo=new MutationObserver((()=>{this.needsStructureLayout=!0,this.needsWidthLayout=!0,this.needsSpanLayout=!0,this.scheduleLayout()})),this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.resizeTimer=0,this.needsWidthLayout=!0,this.scheduleLayout()}),16)}));const t=b(this.slotEl),i=f(this.slotEl);if(!t&&!i)return;const s=t??this;this.mo.observe(s,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["colspan","rowspan","width","lockwidth","sticky"]}),this.resizeObserver?.observe(this),this.colCount&&this.columnWidths?.length||(this.needsStructureLayout=!0,this.needsSpanLayout=!0,this.needsWidthLayout=!0,this.scheduleLayout())}render(){return i`
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{state as s,query as e,property as h,customElement as r}from"lit/decorators.js";import{s as o}from"./nile-grid.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{s as a,c as n,a as d,u as c,r as u,b as m,l as v,d as p,g as b,e as y,f}from"./nile-grid.width.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"./types/nile-grid.enums.esm.js";let w=class extends l{static get styles(){return[o]}constructor(){super(),this.columnWidths=[],this.enableScroll=!1,this.hoverable=!1,this.overflowScrollBehaviour="none",this.raf=0,this.minColumnWidth=40,this.stickyLeftIndexes=[],this.stickyRightIndexes=[],this.cellHeight=null,this.headHeight=null,this.widthsInitialized=!1,this.lockedWidthColumns=[],this.prefixSumColumnsWidth=[],this.stickyColumns=[],this.bodyRows=[],this.headRows=[],this.needsStructureLayout=!1,this.needsWidthLayout=!1,this.needsSpanLayout=!1,this.colCount=0,this.isGridReady=!1,this.stickyLeftHeadEls=[],this.stickyRightHeadEls=[],this.stickyLeftBodyEls=[],this.stickyRightBodyEls=[],this.resizeTimer=0,this.shadowRaf=0,this.resizeBaseColumnWidths=[],this.syncStickyShadowsRaf=()=>{this.shadowRaf||(this.shadowRaf=requestAnimationFrame((()=>{this.shadowRaf=0,a(this)})))},this.onResize=t=>{t.stopPropagation(),this.emit("nile-resize",{columnNumber:t.detail.col,columnWidth:t.detail.widthPx});const{col:i,widthPx:s}=t.detail;if(!this.resizeBaseColumnWidths)return;n(this.columnWidths,this.resizeBaseColumnWidths);const{prevW:e,newW:h,delta0:r}=d({target:t.target,col:i,widthPx:s,floor:this.minColumnWidth,columnWidths:this.columnWidths});0!==r?(this.enableScroll?m({grid:this,col:i,newW:h}):u({grid:this,col:i,prevW:e,newW:h,floor:this.minColumnWidth}),c(this,i)):c(this,i)}}connectedCallback(){super.connectedCallback(),this.emit("nile-init")}updateOverscrollBehavior(){const t=this.scrollHeight>this.clientHeight;this.style.overscrollBehavior=t?this.overflowScrollBehaviour:""}scheduleLayout(){this.raf&&cancelAnimationFrame(this.raf),this.raf=requestAnimationFrame((()=>{this.raf=0,v(this,this.slotEl,this.ensureWidths.bind(this),this.stickyLeftIndexes,this.stickyRightIndexes),a(this)}))}ensureWidths(t){this.columnWidths.length!==t&&(this.columnWidths=Array(t).fill(0),this.lockedWidthColumns=Array(t).fill(!1))}firstUpdated(){this.setAttribute("role","table"),p(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this)),this.addEventListener("scroll",this.syncStickyShadowsRaf),this.resizeObserverStickyShadows=new ResizeObserver((()=>{a(this),this.updateOverscrollBehavior()})),this.resizeObserverStickyShadows.observe(this),this.syncStickyShadowsRaf()}updated(t){t.has("overflowScrollBehaviour")&&this.updateOverscrollBehavior()}_attachObserverAndLayout(){this.mo?.disconnect(),this.mo=new MutationObserver((()=>{this.needsStructureLayout=!0,this.needsWidthLayout=!0,this.needsSpanLayout=!0,this.scheduleLayout()})),this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.resizeTimer=0,this.needsWidthLayout=!0,this.scheduleLayout()}),16)}));const t=b(this.slotEl),i=y(this.slotEl);if(!t&&!i)return;const s=t??this;this.mo.observe(s,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["colspan","rowspan","width","lockwidth","sticky"]}),this.resizeObserver?.observe(this),this.colCount&&this.columnWidths?.length||(this.needsStructureLayout=!0,this.needsSpanLayout=!0,this.needsWidthLayout=!0,this.scheduleLayout())}render(){return i`
2
2
  <div part="grid-base" class="nile-grid-base">
3
3
  <div part="grid-slot-wrapper">
4
4
  <slot part="grid-slot"></slot>
@@ -6,4 +6,4 @@ import{__decorate as t}from"tslib";import{html as i}from"lit";import{state as s,
6
6
  <div part="resize-start" class="nile-resize-start"></div>
7
7
  <div part="resize-end" class="nile-resize-end"></div>
8
8
  </div>
9
- `}disconnectedCallback(){this.emit("nile-destroy"),super.disconnectedCallback?.(),this.mo?.disconnect(),this.resizeObserver?.disconnect(),this.resizeObserverStickyShadows?.disconnect(),this.raf&&cancelAnimationFrame(this.raf),w(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}};t([s()],g.prototype,"columnWidths",void 0),t([e("slot")],g.prototype,"slotEl",void 0),t([e(".nile-resize-start")],g.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],g.prototype,"resizeEnd",void 0),t([e(".shadow-left")],g.prototype,"shadowLeft",void 0),t([e(".shadow-right")],g.prototype,"shadowRight",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"enableScroll",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],g.prototype,"hoverable",void 0),t([h({type:String,attribute:!0,reflect:!0})],g.prototype,"overflowScrollBehaviour",void 0),t([h({type:Number,reflect:!0,attribute:!0})],g.prototype,"minColumnWidth",void 0),t([s()],g.prototype,"stickyLeftIndexes",void 0),t([s()],g.prototype,"stickyRightIndexes",void 0),t([s()],g.prototype,"cellHeight",void 0),t([s()],g.prototype,"headHeight",void 0),t([s()],g.prototype,"widthsInitialized",void 0),t([s()],g.prototype,"lockedWidthColumns",void 0),t([s()],g.prototype,"prefixSumColumnsWidth",void 0),t([s()],g.prototype,"stickyColumns",void 0),t([s()],g.prototype,"bodyRows",void 0),t([s()],g.prototype,"headRows",void 0),t([s()],g.prototype,"needsStructureLayout",void 0),t([s()],g.prototype,"needsWidthLayout",void 0),t([s()],g.prototype,"needsSpanLayout",void 0),t([s()],g.prototype,"colCount",void 0),g=t([r("nile-grid")],g);export{g as N};
9
+ `}disconnectedCallback(){this.emit("nile-destroy"),super.disconnectedCallback?.(),this.mo?.disconnect(),this.resizeObserver?.disconnect(),this.resizeObserverStickyShadows?.disconnect(),this.raf&&cancelAnimationFrame(this.raf),f(this,this.onResize,this.slotEl,this._attachObserverAndLayout.bind(this))}};t([s()],w.prototype,"columnWidths",void 0),t([e("slot")],w.prototype,"slotEl",void 0),t([e(".nile-resize-start")],w.prototype,"resizeStart",void 0),t([e(".nile-resize-end")],w.prototype,"resizeEnd",void 0),t([e(".shadow-left")],w.prototype,"shadowLeft",void 0),t([e(".shadow-right")],w.prototype,"shadowRight",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],w.prototype,"enableScroll",void 0),t([h({type:Boolean,attribute:!0,reflect:!0})],w.prototype,"hoverable",void 0),t([h({type:String,attribute:!0,reflect:!0})],w.prototype,"overflowScrollBehaviour",void 0),t([h({type:Number,reflect:!0,attribute:!0})],w.prototype,"minColumnWidth",void 0),t([s()],w.prototype,"stickyLeftIndexes",void 0),t([s()],w.prototype,"stickyRightIndexes",void 0),t([s()],w.prototype,"cellHeight",void 0),t([s()],w.prototype,"headHeight",void 0),t([s()],w.prototype,"widthsInitialized",void 0),t([s()],w.prototype,"lockedWidthColumns",void 0),t([s()],w.prototype,"prefixSumColumnsWidth",void 0),t([s()],w.prototype,"stickyColumns",void 0),t([s()],w.prototype,"bodyRows",void 0),t([s()],w.prototype,"headRows",void 0),t([s()],w.prototype,"needsStructureLayout",void 0),t([s()],w.prototype,"needsWidthLayout",void 0),t([s()],w.prototype,"needsSpanLayout",void 0),t([s()],w.prototype,"colCount",void 0),w=t([r("nile-grid")],w);export{w as N};