@aquera/nile-elements 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +4 -0
  2. package/demo/variables.css +4 -2
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +167 -88
  6. package/dist/nile-grid/index.cjs.js +1 -1
  7. package/dist/nile-grid/index.esm.js +1 -1
  8. package/dist/nile-grid/nile-grid-body/index.cjs.js +2 -0
  9. package/dist/{nile-grid-body → nile-grid/nile-grid-body}/index.esm.js +1 -1
  10. package/dist/{nile-grid-cell-item/nile-grid-cell-item.cjs.js → nile-grid/nile-grid-body/nile-grid-body.cjs.js} +2 -2
  11. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js.map +1 -0
  12. package/dist/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.css.cjs.js +1 -1
  13. package/dist/nile-grid/nile-grid-body/nile-grid-body.css.cjs.js.map +1 -0
  14. package/dist/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.css.esm.js +0 -4
  15. package/dist/nile-grid/nile-grid-body/nile-grid-body.esm.js +5 -0
  16. package/dist/nile-grid/nile-grid-cell-item/index.cjs.js +2 -0
  17. package/dist/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/index.esm.js +1 -1
  18. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +2 -0
  19. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -0
  20. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +2 -0
  21. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -0
  22. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +67 -0
  23. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +12 -0
  24. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +1 -0
  25. package/dist/nile-grid/nile-grid-head/index.cjs.js +2 -0
  26. package/dist/{nile-grid-head → nile-grid/nile-grid-head}/index.esm.js +1 -1
  27. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js +2 -0
  28. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js.map +1 -0
  29. package/dist/nile-grid/nile-grid-head/nile-grid-head.css.cjs.js.map +1 -0
  30. package/dist/nile-grid/nile-grid-head/nile-grid-head.esm.js +5 -0
  31. package/dist/nile-grid/nile-grid-head-item/index.cjs.js +2 -0
  32. package/dist/{nile-grid-head-item → nile-grid/nile-grid-head-item}/index.esm.js +1 -1
  33. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +2 -0
  34. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -0
  35. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js +2 -0
  36. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -0
  37. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.esm.js +59 -0
  38. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +13 -0
  39. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +2 -0
  40. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -0
  41. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -0
  42. package/dist/nile-grid/nile-grid-row/index.cjs.js +2 -0
  43. package/dist/{nile-grid-row → nile-grid/nile-grid-row}/index.esm.js +1 -1
  44. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js +2 -0
  45. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js.map +1 -0
  46. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.cjs.js +2 -0
  47. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.cjs.js.map +1 -0
  48. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.esm.js +36 -0
  49. package/dist/nile-grid/nile-grid-row/nile-grid-row.esm.js +8 -0
  50. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  51. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  52. package/dist/nile-grid/nile-grid.css.cjs.js +1 -1
  53. package/dist/nile-grid/nile-grid.css.cjs.js.map +1 -1
  54. package/dist/nile-grid/nile-grid.css.esm.js +9 -6
  55. package/dist/nile-grid/nile-grid.esm.js +6 -6
  56. package/dist/nile-grid/nile-grid.layout.cjs.js +2 -0
  57. package/dist/nile-grid/nile-grid.layout.cjs.js.map +1 -0
  58. package/dist/nile-grid/nile-grid.layout.esm.js +1 -0
  59. package/dist/nile-grid/nile-grid.resize.cjs.js +2 -0
  60. package/dist/nile-grid/nile-grid.resize.cjs.js.map +1 -0
  61. package/dist/nile-grid/nile-grid.resize.esm.js +1 -0
  62. package/dist/nile-grid/nile-grid.types.cjs.js +2 -0
  63. package/dist/nile-grid/nile-grid.types.cjs.js.map +1 -0
  64. package/dist/nile-grid/nile-grid.types.esm.js +1 -0
  65. package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
  66. package/dist/nile-grid/nile-grid.utils.cjs.js.map +1 -1
  67. package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
  68. package/dist/nile-grid/nile-grid.width.cjs.js +2 -0
  69. package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -0
  70. package/dist/nile-grid/nile-grid.width.esm.js +1 -0
  71. package/dist/src/index.d.ts +5 -5
  72. package/dist/src/index.js +5 -5
  73. package/dist/src/index.js.map +1 -1
  74. package/dist/src/nile-grid/nile-grid-body/index.js.map +1 -0
  75. package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.css.js +0 -4
  76. package/dist/src/nile-grid/nile-grid-body/nile-grid-body.css.js.map +1 -0
  77. package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.d.ts +1 -1
  78. package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.js +2 -2
  79. package/dist/src/nile-grid/nile-grid-body/nile-grid-body.js.map +1 -0
  80. package/dist/src/nile-grid/nile-grid-cell-item/index.js.map +1 -0
  81. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js +79 -0
  82. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -0
  83. package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.d.ts +1 -4
  84. package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.js +2 -12
  85. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.js.map +1 -0
  86. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +1 -0
  87. package/dist/src/nile-grid/nile-grid-head/index.js.map +1 -0
  88. package/dist/src/nile-grid/nile-grid-head/nile-grid-head.css.js.map +1 -0
  89. package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.d.ts +2 -1
  90. package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.js +11 -3
  91. package/dist/src/nile-grid/nile-grid-head/nile-grid-head.js.map +1 -0
  92. package/dist/src/nile-grid/nile-grid-head-item/index.js.map +1 -0
  93. package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.css.js +30 -5
  94. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -0
  95. package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.d.ts +3 -4
  96. package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.js +12 -15
  97. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -0
  98. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +34 -0
  99. package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.utils.js +27 -4
  100. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -0
  101. package/dist/src/nile-grid/nile-grid-row/index.js.map +1 -0
  102. package/dist/src/nile-grid/nile-grid-row/nile-grid-row.css.js +48 -0
  103. package/dist/src/nile-grid/nile-grid-row/nile-grid-row.css.js.map +1 -0
  104. package/dist/src/{nile-grid-row → nile-grid/nile-grid-row}/nile-grid-row.d.ts +5 -2
  105. package/dist/src/{nile-grid-row → nile-grid/nile-grid-row}/nile-grid-row.js +23 -6
  106. package/dist/src/nile-grid/nile-grid-row/nile-grid-row.js.map +1 -0
  107. package/dist/src/nile-grid/nile-grid.css.js +7 -4
  108. package/dist/src/nile-grid/nile-grid.css.js.map +1 -1
  109. package/dist/src/nile-grid/nile-grid.d.ts +19 -4
  110. package/dist/src/nile-grid/nile-grid.js +76 -23
  111. package/dist/src/nile-grid/nile-grid.js.map +1 -1
  112. package/dist/src/nile-grid/nile-grid.layout.d.ts +28 -0
  113. package/dist/src/nile-grid/nile-grid.layout.js +346 -0
  114. package/dist/src/nile-grid/nile-grid.layout.js.map +1 -0
  115. package/dist/src/nile-grid/nile-grid.resize.d.ts +58 -0
  116. package/dist/src/nile-grid/nile-grid.resize.js +100 -0
  117. package/dist/src/nile-grid/nile-grid.resize.js.map +1 -0
  118. package/dist/src/nile-grid/nile-grid.types.d.ts +3 -0
  119. package/dist/src/nile-grid/nile-grid.types.js +2 -0
  120. package/dist/src/nile-grid/nile-grid.types.js.map +1 -0
  121. package/dist/src/nile-grid/nile-grid.utils.d.ts +22 -4
  122. package/dist/src/nile-grid/nile-grid.utils.js +24 -141
  123. package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
  124. package/dist/src/nile-grid/nile-grid.width.d.ts +25 -0
  125. package/dist/src/nile-grid/nile-grid.width.js +301 -0
  126. package/dist/src/nile-grid/nile-grid.width.js.map +1 -0
  127. package/dist/src/version.js +2 -2
  128. package/dist/src/version.js.map +1 -1
  129. package/dist/tsconfig.tsbuildinfo +1 -1
  130. package/package.json +1 -1
  131. package/src/index.ts +5 -5
  132. package/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.css.ts +0 -4
  133. package/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.ts +3 -3
  134. package/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts +81 -0
  135. package/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.ts +5 -15
  136. package/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.ts +6 -4
  137. package/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.css.ts +30 -5
  138. package/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.ts +10 -25
  139. package/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.utils.ts +30 -4
  140. package/src/nile-grid/nile-grid-row/nile-grid-row.css.ts +50 -0
  141. package/src/{nile-grid-row → nile-grid/nile-grid-row}/nile-grid-row.ts +13 -8
  142. package/src/nile-grid/nile-grid.css.ts +7 -4
  143. package/src/nile-grid/nile-grid.layout.ts +514 -0
  144. package/src/nile-grid/nile-grid.resize.ts +143 -0
  145. package/src/nile-grid/nile-grid.ts +79 -53
  146. package/src/nile-grid/nile-grid.types.ts +1 -0
  147. package/src/nile-grid/nile-grid.utils.ts +27 -203
  148. package/src/nile-grid/nile-grid.width.ts +397 -0
  149. package/vscode-html-custom-data.json +48 -65
  150. package/dist/nile-grid-body/index.cjs.js +0 -2
  151. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  152. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  153. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  154. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  155. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  156. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  157. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  158. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  159. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  160. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  161. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  162. package/dist/nile-grid-head/index.cjs.js +0 -2
  163. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  164. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  165. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  166. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  167. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  168. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  169. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  170. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  171. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  172. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  173. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  174. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  175. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  176. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  177. package/dist/nile-grid-row/index.cjs.js +0 -2
  178. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  179. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  180. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  181. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  182. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  183. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  184. package/dist/src/nile-grid-body/index.js.map +0 -1
  185. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  186. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  187. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  188. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  189. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  190. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  191. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  192. package/dist/src/nile-grid-head/index.js.map +0 -1
  193. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  194. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  195. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  196. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  197. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  198. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  199. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  200. package/dist/src/nile-grid-row/index.js.map +0 -1
  201. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  202. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  203. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  204. package/src/nile-grid-cell-item/nile-grid-cell-item.css.ts +0 -49
  205. package/src/nile-grid-row/nile-grid-row.css.ts +0 -29
  206. /package/dist/{nile-grid-body → nile-grid/nile-grid-body}/index.cjs.js.map +0 -0
  207. /package/dist/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/index.cjs.js.map +0 -0
  208. /package/dist/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.utils.cjs.js +0 -0
  209. /package/dist/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.utils.esm.js +0 -0
  210. /package/dist/{nile-grid-head → nile-grid/nile-grid-head}/index.cjs.js.map +0 -0
  211. /package/dist/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.css.cjs.js +0 -0
  212. /package/dist/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.css.esm.js +0 -0
  213. /package/dist/{nile-grid-head-item → nile-grid/nile-grid-head-item}/index.cjs.js.map +0 -0
  214. /package/dist/{nile-grid-row → nile-grid/nile-grid-row}/index.cjs.js.map +0 -0
  215. /package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/index.d.ts +0 -0
  216. /package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/index.js +0 -0
  217. /package/dist/src/{nile-grid-body → nile-grid/nile-grid-body}/nile-grid-body.css.d.ts +0 -0
  218. /package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/index.d.ts +0 -0
  219. /package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/index.js +0 -0
  220. /package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.css.d.ts +0 -0
  221. /package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.utils.d.ts +0 -0
  222. /package/dist/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.utils.js +0 -0
  223. /package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/index.d.ts +0 -0
  224. /package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/index.js +0 -0
  225. /package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.css.d.ts +0 -0
  226. /package/dist/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.css.js +0 -0
  227. /package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/index.d.ts +0 -0
  228. /package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/index.js +0 -0
  229. /package/dist/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/nile-grid-head-item.css.d.ts +0 -0
  230. /package/dist/src/{nile-grid-row → nile-grid/nile-grid-row}/index.d.ts +0 -0
  231. /package/dist/src/{nile-grid-row → nile-grid/nile-grid-row}/index.js +0 -0
  232. /package/dist/src/{nile-grid-row → nile-grid/nile-grid-row}/nile-grid-row.css.d.ts +0 -0
  233. /package/src/{nile-grid-body → nile-grid/nile-grid-body}/index.ts +0 -0
  234. /package/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/index.ts +0 -0
  235. /package/src/{nile-grid-cell-item → nile-grid/nile-grid-cell-item}/nile-grid-cell-item.utils.ts +0 -0
  236. /package/src/{nile-grid-head → nile-grid/nile-grid-head}/index.ts +0 -0
  237. /package/src/{nile-grid-head → nile-grid/nile-grid-head}/nile-grid-head.css.ts +0 -0
  238. /package/src/{nile-grid-head-item → nile-grid/nile-grid-head-item}/index.ts +0 -0
  239. /package/src/{nile-grid-row → nile-grid/nile-grid-row}/index.ts +0 -0
@@ -1,2 +1,2 @@
1
- System.register(["./nile-grid.cjs.js","tslib","lit","lit/decorators.js","./nile-grid.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridCjsJs){_export("NileGrid",_nileGridCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridUtilsCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-grid.cjs.js","tslib","lit","lit/decorators.js","./nile-grid.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid.width.cjs.js","./nile-grid.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridCjsJs){_export("NileGrid",_nileGridCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridWidthCjsJs){},function(_nileGridUtilsCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGrid}from"./nile-grid.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid.css.esm.js";import"../internal/nile-element.esm.js";import"./nile-grid.utils.esm.js";
1
+ export{N as NileGrid}from"./nile-grid.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid.css.esm.js";import"../internal/nile-element.esm.js";import"./nile-grid.width.esm.js";import"./nile-grid.utils.esm.js";
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-grid-body.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-body.css.cjs.js","../../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridBodyCjsJs){_export("NileGridBody",_nileGridBodyCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridBodyCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGridBody}from"./nile-grid-body.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-body.css.esm.js";import"../internal/nile-element.esm.js";
1
+ export{N as NileGridBody}from"./nile-grid-body.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-body.css.esm.js";import"../../internal/nile-element.esm.js";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,r,s,l,o,n,a,_templateObject,_templateObject2,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridCellItemCssCjsJs){s=_nileGridCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridCellItemUtilsCjsJs){o=_nileGridCellItemUtilsCjsJs.i;n=_nileGridCellItemUtilsCjsJs.c;a=_nileGridCellItemUtilsCjsJs.a;}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_l){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.textOverflowType="ellipsis",_this.onHandlePointerDown=function(t){var e=_assertThisInitialized(_this),i={value:0},r={value:0},s=o(e,t,i,r);if(!s)return;var l=s.target,_c=s.col,p=function p(t){return n(e,_c,r.value,i.value,t);},d=function d(){return a(e,t,l,p);};l.addEventListener("pointermove",p),l.addEventListener("pointerup",d,{once:!0}),l.addEventListener("pointercancel",d,{once:!0});};return _this;}_inherits(c,_l);return _createClass(c,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(c,"connectedCallback",this,3)([]),this.setAttribute("role","cell");}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div style=\"display: contents;\">\n <slot></slot>\n ","\n </div>\n "])),this.resizable?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n aria-hidden=\"true\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));t([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),t([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),t([i({type:String,reflect:!0,attribute:!0})],c.prototype,"align",void 0),t([i({type:String,reflect:!0,attribute:!0})],c.prototype,"valign",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),t([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"textOverflowType",void 0),_export("N",c=t([r("nile-grid-cell-item")],c));}};});
2
- //# sourceMappingURL=nile-grid-cell-item.cjs.js.map
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-grid-body.css.cjs.js","../../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var r,t,s,e,o,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){r=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.customElement;},function(_nileGridBodyCssCjsJs){e=_nileGridBodyCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",i=/*#__PURE__*/function(_o){function i(){_classCallCheck(this,i);return _callSuper(this,i,arguments);}_inherits(i,_o);return _createClass(i,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(i,"connectedCallback",this,3)([]),this.setAttribute("role","rowgroup");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-body-base\">\n <slot></slot>\n </div>\n "])));}}],[{key:"styles",get:function get(){return[e];}}]);}(o));_export("N",i=r([s("nile-grid-body")],i));}};});
2
+ //# sourceMappingURL=nile-grid-body.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-body.cjs.js","sources":["../../../../src/nile-grid/nile-grid-body/nile-grid-body.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-grid-body.css';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Nile grid-body component.\n *\n * @tag nile-grid-body\n *\n */\n@customElement('nile-grid-body')\nexport class NileGridBody extends NileElement {\n /**\n * The styles for nile-grid-body\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'rowgroup');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"grid-body-base\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-body': NileGridBody;\n }\n}\n"],"names":["NileGridBody","_o","i","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","connectedCallback","super","this","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"onHAmBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,qBAAAC,KAAA,CASL,SAAAC,iBAAAA,CAAAA,CAAAA,CACEC,aAAAA,CAAAA,CAAAA,iCACAC,IAAAA,CAAKC,YAAa,CAAA,MAAA,CAAQ,UAC3B,CAAA,EAEM,GAAAL,GAAA,UAAAC,KAAA,UAAAK,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yFAKZ,CAAA,KAAAT,GAAA,UAAAU,GAAA,CAfM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAED,MATgCC,IAArBpB,OAAAA,KAAAA,CAAYqB,CAAAA,CAAAA,CAAA,CADxBC,CAAAA,CAAc,mBACFtB"}
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: grid;\n overflow-y: auto;\n overflow-x: visible;\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n height: 100%;\n }\n"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n }\n"]))));}};});
2
2
  //# sourceMappingURL=nile-grid-body.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-body.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-body/nile-grid-body.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridBody CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n background-color: var(--nile-colors-white-base);\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,10 +1,6 @@
1
1
  import{css as o}from"lit";const r=o`
2
2
  :host {
3
- display: grid;
4
- overflow-y: auto;
5
- overflow-x: visible;
6
3
  box-sizing: border-box;
7
4
  background-color: var(--nile-colors-white-base);
8
- height: 100%;
9
5
  }
10
6
  `;export{r as s};
@@ -0,0 +1,5 @@
1
+ import{__decorate as r}from"tslib";import{html as e}from"lit";import{customElement as t}from"lit/decorators.js";import{s}from"./nile-grid-body.css.esm.js";import{N as o}from"../../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","rowgroup")}render(){return e`
2
+ <div part="grid-body-base">
3
+ <slot></slot>
4
+ </div>
5
+ `}};i=r([t("nile-grid-body")],i);export{i as N};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-grid-cell-item.cjs.js","tslib","lit","lit/decorators.js","./nile-grid-cell-item.css.cjs.js","../../internal/nile-element.cjs.js","./nile-grid-cell-item.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileGridCellItemCjsJs){_export("NileGridCellItem",_nileGridCellItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileGridCellItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_nileGridCellItemUtilsCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileGridCellItem}from"./nile-grid-cell-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-cell-item.css.esm.js";import"../internal/nile-element.esm.js";import"./nile-grid-cell-item.utils.esm.js";
1
+ export{N as NileGridCellItem}from"./nile-grid-cell-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-grid-cell-item.css.esm.js";import"../../internal/nile-element.esm.js";import"./nile-grid-cell-item.utils.esm.js";
@@ -0,0 +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,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=\"true\"\n class=\"resize-handle\"\n @pointerdown=","\n ></div>\n "])),this.onHandlePointerDown):null);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],n.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],n.prototype,"resizable",void 0),_export("N",n=e([r("nile-grid-cell-item")],n));}};});
2
+ //# sourceMappingURL=nile-grid-cell-item.cjs.js.map
@@ -0,0 +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, 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=\"true\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-cell-item': NileGridCellItem;\n }\n}\n"],"names":["NileGridCellItem","_l","n","this","colspan","rowspan","resizable","onHandlePointerDown","ev","el","downXRef","value","startWRef","result","initCellResize","target","col","move","e","cellResizeMove","done","p","cellResizeDone","addEventListener","once","_this","_inherits","_createClass","key","connectedCallback","super","setAttribute","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","__decorate","get","styles","NileElement","property","type","Number","reflect","attribute","prototype","Boolean","_export","customElement"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",e=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-10px);\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-weight-regular);\n min-height: 44px;\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n display: none;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14);\n background-color: #fff;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14);\n background-color: #fff;\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-grid-cell-item.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-cell-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * Grid Cell Item CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-xl) var(--nile-spacing-10px);\n box-sizing: border-box;\n min-width: 0;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n height: auto;\n font-size: 14px;\n font-weight: 400;\n font-family: var(--nile-font-weight-regular);\n min-height: 44px;\n }\n\n .cell-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: col-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n display: none;\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-14);\n background-color: #fff;\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-14);\n background-color: #fff;\n }\n\n :host-context(nile-grid-row[hover]:hover),\n :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host-context(nile-grid-row[selected]),\n :host-context(nile-grid-row[selected]):host([data-sticky]) {\n background-color: var(--nile-colors-primary-100) !important;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,67 @@
1
+ import{css as o}from"lit";const e=o`
2
+ :host {
3
+ --padding: var(--nile-spacing-xl) var(--nile-spacing-10px);
4
+ box-sizing: border-box;
5
+ min-width: 0;
6
+ white-space: nowrap;
7
+ width: 100%;
8
+ overflow: hidden;
9
+ text-overflow: ellipsis;
10
+ padding: var(--padding);
11
+ height: auto;
12
+ font-size: 14px;
13
+ font-weight: 400;
14
+ font-family: var(--nile-font-weight-regular);
15
+ min-height: 44px;
16
+ }
17
+
18
+ .cell-item-base {
19
+ width: 100%;
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ }
23
+
24
+ ::slotted(*) {
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ :host(:last-child) .resize-handle {
31
+ border-right: none;
32
+ display: none;
33
+ }
34
+
35
+ .resize-handle {
36
+ position: absolute;
37
+ top: 0;
38
+ right: 0;
39
+ height: 100%;
40
+ cursor: col-resize;
41
+ touch-action: none;
42
+ z-index: 1;
43
+ width: 2px;
44
+ border-right: 1px solid var(--nile-colors-neutral-400);
45
+ display: none;
46
+ }
47
+
48
+ :host(.shadow-right) {
49
+ box-shadow: var(--nile-box-shadow-14);
50
+ background-color: #fff;
51
+ }
52
+
53
+ :host(.shadow-left) {
54
+ box-shadow: var(--nile-box-shadow-14);
55
+ background-color: #fff;
56
+ }
57
+
58
+ :host-context(nile-grid-row[hover]:hover),
59
+ :host-context(nile-grid-row[hover]:hover):host([data-sticky]) {
60
+ background-color: var(--nile-colors-neutral-100);
61
+ }
62
+
63
+ :host-context(nile-grid-row[selected]),
64
+ :host-context(nile-grid-row[selected]):host([data-sticky]) {
65
+ background-color: var(--nile-colors-primary-100) !important;
66
+ }
67
+ `;export{e as s};
@@ -0,0 +1,12 @@
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as r}from"lit/decorators.js";import{s}from"./nile-grid-cell-item.css.esm.js";import{N as l}from"../../internal/nile-element.esm.js";import{i as o,c as a,a as n}from"./nile-grid-cell-item.utils.esm.js";let c=class extends l{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.onHandlePointerDown=e=>{const t=this,i={value:0},r={value:0},s=o(t,e,i,r);if(!s)return;const{target:l,col:c}=s,m=e=>a(t,c,r.value,i.value,e),p=()=>n(t,e,l,m);l.addEventListener("pointermove",m),l.addEventListener("pointerup",p,{once:!0}),l.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}render(){return t`
2
+ <div class="cell-item-base" part="grid-cell-item-base">
3
+ <slot></slot>
4
+ ${this.resizable?t`
5
+ <div
6
+ aria-hidden="true"
7
+ class="resize-handle"
8
+ @pointerdown=${this.onHandlePointerDown}
9
+ ></div>
10
+ `:null}
11
+ </div>
12
+ `}};e([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],c.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],c.prototype,"resizable",void 0),c=e([r("nile-grid-cell-item")],c);export{c as N};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-cell-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.utils.ts"],"sourcesContent":["export function initCellResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function cellResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function cellResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initCellResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","cellResizeMove","startW","downX","e","round","cellResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DAAM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,IAAKC,CAAAA,GAAAA,CAAI,CAAGP,CAAAA,CAAAA,CAASG,EAAO,CAAI,CAAA,CAAA,CAAA,CAE5CP,CAASY,CAAAA,KAAAA,CAAQb,CAAGc,CAAAA,OAAAA,CACpBZ,CAAUW,CAAAA,KAAAA,CAAQd,EAAGgB,qBAAwBC,CAAAA,CAAAA,CAAAA,KAAAA,CAE7C,GAAMC,CAAAA,CAAAA,CAASjB,CAAGkB,CAAAA,aAAAA,CAelB,MAdAD,CAAAA,CAAAA,CAAOE,kBAAkBnB,CAAGoB,CAAAA,SAAAA,CAAAA,CAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,aAAe,CAAA,CAC7BC,OAAQ,CAAEb,GAAAA,CAAAA,CAAAA,CAAKc,OAAStB,CAAAA,CAAAA,CAAUW,KAClCY,CAAAA,CAAAA,OAAAA,CAAAA,CAAS,CACTC,CAAAA,QAAAA,CAAAA,CAAU,KAId3B,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,mBAAqB,CAAA,CAAEG,OAAS,CAAA,CAAA,CAAA,CAAMC,UAAU,CAG3D,CAAA,CAAA,CAAA,CAAA,CAAET,MAAQP,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,CAAAA,CACnB,EAEM,QAAUiB,CAAAA,CACd5B,CAAAA,CAAAA,CACAW,EACAkB,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMN,CAAAA,CAAUb,CAAAA,IAAAA,CAAKC,GAAI,CAAA,EAAA,CAAID,KAAKoB,KAAMH,CAAAA,CAAAA,EAAUE,CAAEhB,CAAAA,OAAAA,CAAUe,CAC9D9B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAGsB,aACD,CAAA,GAAIC,CAAAA,YAAY,aAAe,CAAA,CAC7BC,MAAQ,CAAA,CAAEb,GAAKc,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CACfC,OAAS,CAAA,CAAA,CAAA,CACTC,UAAU,CAGhB,CAAA,CAAA,CAAA,EAEM,QAAUM,CAAAA,CAAAA,CACdjC,CACAC,CAAAA,CAAAA,CACAiB,CACAgB,CAAAA,CAAAA,CAAAA,CAEAhB,EAAOiB,qBAAsBlC,CAAAA,CAAAA,CAAGoB,SAChCH,CAAAA,CAAAA,CAAAA,CAAOkB,mBAAoB,CAAA,aAAA,CAAeF,CAC1ClC,CAAAA,CAAAA,CAAAA,CAAGsB,cACD,GAAIC,CAAAA,WAAAA,CAAY,iBAAmB,CAAA,CAAEG,SAAS,CAAMC,CAAAA,QAAAA,CAAAA,CAAU,CAElE,CAAA,CAAA,CAAA,EAAAU,OAAA,EAAAC,CAAA"}
@@ -0,0 +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(){}};});
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";
@@ -0,0 +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));}};});
2
+ //# sourceMappingURL=nile-grid-head.cjs.js.map
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-head.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head/nile-grid-head.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridHead CSS\n */\nexport const styles = css`\n :host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +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`
2
+ <div part="grid-head-base">
3
+ <slot></slot>
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};
@@ -0,0 +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(){}};});
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"./nile-grid-head-item.utils.esm.js";
@@ -0,0 +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 e,t,i,r,s,l,a,o,n,_templateObject,_templateObject2,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_nileGridHeadItemCssCjsJs){s=_nileGridHeadItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileGridHeadItemUtilsCjsJs){a=_nileGridHeadItemUtilsCjsJs.i;o=_nileGridHeadItemUtilsCjsJs.h;n=_nileGridHeadItemUtilsCjsJs.a;}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_l){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.colspan=1,_this.rowspan=1,_this.resizable=!1,_this.width=null,_this.sticky=null,_this.onHandlePointerDown=function(e){var t=_assertThisInitialized(_this),i=_this.closest("nile-grid"),r={value:0},s={value:0},l=a(t,e,r,s);if(!l)return;var _c=l.target,d=l.col,p=function p(e){return o(t,d,s.value,r.value,e,i);},h=function h(){return n(t,e,_c,p);};_c.addEventListener("pointermove",p),_c.addEventListener("pointerup",h,{once:!0}),_c.addEventListener("pointercancel",h,{once:!0});};return _this;}_inherits(c,_l);return _createClass(c,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(c,"connectedCallback",this,3)([]),this.setAttribute("role","row");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(c,"disconnectedCallback",this,3)([]),this.removeAttribute("role");}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"grid-head-item-base\" class=\"head-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 part=\"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})],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),e([i({type:String,reflect:!0,attribute:!0})],c.prototype,"width",void 0),e([i({type:String,reflect:!0,attribute:!0})],c.prototype,"sticky",void 0),_export("N",c=e([r("nile-grid-head-item")],c));}};});
2
+ //# sourceMappingURL=nile-grid-head-item.cjs.js.map
@@ -0,0 +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} 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\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 = () => headResizeDone(el, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n 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","_l","c","this","colspan","rowspan","resizable","width","sticky","onHandlePointerDown","ev","el","nileGrid","closest","downXRef","value","startWRef","result","initHeadResize","target","move","col","e","headResizeMove","done","headResizeDone","addEventListener","once","_this","_inherits","_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":"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"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",e=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --padding: var(--nile-spacing-lg) var(--nile-spacing-10px);\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100);\n font-size: var(--nile-font-size-small);\n font-weight: var(--nile-font-weight-medium);\n font-family: var(--nile-font-family-sans-serif);\n min-height: var(--height);\n display: flex;\n align-items: center;\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-13);\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-13);\n background-color: var(--nile-colors-neutral-100);\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-grid-head-item.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-head-item.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * NileGridHeadItem CSS\n */\nexport const styles = css`\n :host {\n --padding: var(--nile-spacing-lg) var(--nile-spacing-10px);\n --height: 50px;\n position: relative;\n box-sizing: border-box;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: var(--padding);\n background-color: var(--nile-colors-neutral-100);\n font-size: var(--nile-font-size-small);\n font-weight: var(--nile-font-weight-medium);\n font-family: var(--nile-font-family-sans-serif);\n min-height: var(--height);\n display: flex;\n align-items: center;\n }\n\n .head-item-base {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n :host(:last-child) .resize-handle {\n border-right: none;\n display: none;\n }\n\n .resize-handle {\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n cursor: ew-resize;\n touch-action: none;\n z-index: 1;\n width: 2px;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n :host(.shadow-right) {\n box-shadow: var(--nile-box-shadow-13);\n background-color: var(--nile-colors-neutral-100);\n }\n\n :host(.shadow-left) {\n box-shadow: var(--nile-box-shadow-13);\n background-color: var(--nile-colors-neutral-100);\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,59 @@
1
+ import{css as o}from"lit";const e=o`
2
+ :host {
3
+ --padding: var(--nile-spacing-lg) var(--nile-spacing-10px);
4
+ --height: 50px;
5
+ position: relative;
6
+ box-sizing: border-box;
7
+ white-space: nowrap;
8
+ width: 100%;
9
+ overflow: hidden;
10
+ text-overflow: ellipsis;
11
+ padding: var(--padding);
12
+ background-color: var(--nile-colors-neutral-100);
13
+ font-size: var(--nile-font-size-small);
14
+ font-weight: var(--nile-font-weight-medium);
15
+ font-family: var(--nile-font-family-sans-serif);
16
+ min-height: var(--height);
17
+ display: flex;
18
+ align-items: center;
19
+ }
20
+
21
+ .head-item-base {
22
+ width: 100%;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ }
26
+
27
+ ::slotted(*) {
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ }
32
+
33
+ :host(:last-child) .resize-handle {
34
+ border-right: none;
35
+ display: none;
36
+ }
37
+
38
+ .resize-handle {
39
+ position: absolute;
40
+ top: 0;
41
+ right: 0;
42
+ height: 100%;
43
+ cursor: ew-resize;
44
+ touch-action: none;
45
+ z-index: 1;
46
+ width: 2px;
47
+ border-right: 1px solid var(--nile-colors-neutral-400);
48
+ }
49
+
50
+ :host(.shadow-right) {
51
+ box-shadow: var(--nile-box-shadow-13);
52
+ background-color: var(--nile-colors-neutral-100);
53
+ }
54
+
55
+ :host(.shadow-left) {
56
+ box-shadow: var(--nile-box-shadow-13);
57
+ background-color: var(--nile-colors-neutral-100);
58
+ }
59
+ `;export{e as s};
@@ -0,0 +1,13 @@
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-head-item.css.esm.js";import{N as l}from"../../internal/nile-element.esm.js";import{i as a,h as o,a as n}from"./nile-grid-head-item.utils.esm.js";let d=class extends l{constructor(){super(...arguments),this.colspan=1,this.rowspan=1,this.resizable=!1,this.width=null,this.sticky=null,this.onHandlePointerDown=e=>{const t=this,i=this.closest("nile-grid"),r={value:0},s={value:0},l=a(t,e,r,s);if(!l)return;const{target:d,col:c}=l,m=e=>o(t,c,s.value,r.value,e,i),p=()=>n(t,e,d,m);d.addEventListener("pointermove",m),d.addEventListener("pointerup",p,{once:!0}),d.addEventListener("pointercancel",p,{once:!0})}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}disconnectedCallback(){super.disconnectedCallback(),this.removeAttribute("role")}render(){return t`
2
+ <div part="grid-head-item-base" class="head-item-base">
3
+ <slot></slot>
4
+ ${this.resizable?t`
5
+ <div
6
+ aria-hidden="false"
7
+ class="resize-handle"
8
+ part="resize-handle"
9
+ @pointerdown=${this.onHandlePointerDown}
10
+ ></div>
11
+ `:null}
12
+ </div>
13
+ `}};e([i({type:Number,reflect:!0,attribute:!0})],d.prototype,"colspan",void 0),e([i({type:Number,reflect:!0,attribute:!0})],d.prototype,"rowspan",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],d.prototype,"resizable",void 0),e([i({type:String,reflect:!0,attribute:!0})],d.prototype,"width",void 0),e([i({type:String,reflect:!0,attribute:!0})],d.prototype,"sticky",void 0),d=e([r("nile-grid-head-item")],d);export{d as N};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";function e(e,n,t,o){n.preventDefault(),n.stopPropagation();var s=Number(e.dataset.cStart);if(!s)return null;var i=Number(e.getAttribute("colspan"))||1,l=Math.max(0,s+i-1-1);t.value=n.clientX,o.value=e.getBoundingClientRect().width;var u=n.currentTarget;return u.setPointerCapture(n.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:l,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:l};}function n(e,n,t,o,s,i){var l=Math.max(i.minColumnWidth,Math.round(t+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:n,widthPx:l},bubbles:!0,composed:!0}));}function t(e,n,t,o){t.releasePointerCapture(n.pointerId),t.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}));}_export({a:t,h:n,i:e});return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=nile-grid-head-item.utils.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-head-item.utils.cjs.js","sources":["../../../../src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts"],"sourcesContent":["import { NileGrid } from \"../nile-grid\";\n\n/** initHeadResize\n * @param el Target element\n * @param ev Pointer event\n * @param downXRef Reference to store downX value\n * @param startWRef Reference to store startW value\n * @returns Object containing target element and column index\n */\nexport function initHeadResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\n/** headResizeMove\n * @param el Target element\n * @param col Column index\n * @param startW Starting width\n * @param downX Down X coordinate\n * @param e Pointer event\n * @param nileGrid NileGrid instance\n * @returns void\n */\nexport function headResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent,\n nileGrid: NileGrid\n) {\n const widthPx = Math.max(nileGrid.minColumnWidth, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-column-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\n/** headResizeDone\n * @param el Target element\n * @param ev Pointer event\n * @param target Target element\n * @param move Pointer move handler\n * @returns void\n */\nexport function headResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"],"names":["initHeadResize","el","ev","downXRef","startWRef","preventDefault","stopPropagation","cStart","Number","dataset","span","getAttribute","col","Math","max","value","clientX","getBoundingClientRect","width","target","currentTarget","setPointerCapture","pointerId","dispatchEvent","CustomEvent","detail","widthPx","bubbles","composed","l","headResizeMove","startW","downX","e","nileGrid","minColumnWidth","round","headResizeDone","move","releasePointerCapture","removeEventListener","_export","a"],"mappings":"2DASM,QAAUA,CAAAA,CACdC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,GAEAF,CAAGG,CAAAA,cAAAA,CAAAA,CAAAA,CACHH,CAAGI,CAAAA,eAAAA,CAAAA,CAAAA,CAEH,GAAMC,CAAAA,CAAAA,CAASC,MAAOP,CAAAA,CAAAA,CAAGQ,QAAQF,MACjC,CAAA,CAAA,GAAA,CAAKA,CAAQ,CAAA,MAAO,KAEpB,CAAA,GAAMG,CAAAA,CAAOF,CAAAA,MAAAA,CAAOP,EAAGU,YAAa,CAAA,SAAA,CAAA,CAAA,EAAe,CAC7CC,CAAAA,CAAAA,CAAMC,IAAKC,CAAAA,GAAAA,CAAI,CAAGP,CAAAA,CAAAA,CAASG,EAAO,CAAI,CAAA,CAAA,CAAA,CAE5CP,CAASY,CAAAA,KAAAA,CAAQb,CAAGc,CAAAA,OAAAA,CACpBZ,CAAUW,CAAAA,KAAAA,CAAQd,EAAGgB,qBAAwBC,CAAAA,CAAAA,CAAAA,KAAAA,CAE7C,GAAMC,CAAAA,CAAAA,CAASjB,CAAGkB,CAAAA,aAAAA,CAelB,MAdAD,CAAAA,CAAAA,CAAOE,kBAAkBnB,CAAGoB,CAAAA,SAAAA,CAAAA,CAE5BrB,CAAGsB,CAAAA,aAAAA,CACD,GAAIC,CAAAA,WAAAA,CAAY,oBAAsB,CAAA,CACpCC,OAAQ,CAAEb,GAAAA,CAAAA,CAAAA,CAAKc,OAAStB,CAAAA,CAAAA,CAAUW,OAClCY,OAAS,CAAA,CAAA,CAAA,CACTC,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAId3B,EAAGsB,aACD,CAAA,GAAIC,CAAAA,WAAY,CAAA,mBAAA,CAAqB,CAAEG,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,QAAAA,CAAAA,CAAU,KAG3D,CAAET,MAAAA,CAAAA,CAAAA,CAAQP,GACnB,CAAAiB,CAAA,CAAA,EAWgB,QAAAC,CAAAA,CAAAA,CACd7B,CACAW,CAAAA,CAAAA,CACAmB,EACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMR,CAAAA,CAAUb,CAAAA,IAAAA,CAAKC,GAAIoB,CAAAA,CAAAA,CAASC,eAAgBtB,IAAKuB,CAAAA,KAAAA,CAAML,CAAUE,EAAAA,CAAAA,CAAEjB,QAAUgB,CACnF/B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAGsB,aACD,CAAA,GAAIC,CAAAA,YAAY,oBAAsB,CAAA,CACpCC,MAAQ,CAAA,CAAEb,GAAKc,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CACfC,OAAS,CAAA,CAAA,CAAA,CACTC,UAAU,CAGhB,CAAA,CAAA,CAAA,EASM,QAAUS,CAAAA,CAAAA,CACdpC,CACAC,CAAAA,CAAAA,CACAiB,CACAmB,CAAAA,CAAAA,CAAAA,CAEAnB,EAAOoB,qBAAsBrC,CAAAA,CAAAA,CAAGoB,SAChCH,CAAAA,CAAAA,CAAAA,CAAOqB,mBAAoB,CAAA,aAAA,CAAeF,CAE1CrC,CAAAA,CAAAA,CAAAA,CAAGsB,cACD,GAAIC,CAAAA,WAAAA,CAAY,iBAAmB,CAAA,CAAEG,SAAS,CAAMC,CAAAA,QAAAA,CAAAA,CAAU,CAElE,CAAA,CAAA,CAAA,EAAAa,OAAA,EAAAC,CAAA"}
@@ -0,0 +1 @@
1
+ function e(e,n,t,o){n.preventDefault(),n.stopPropagation();const s=Number(e.dataset.cStart);if(!s)return null;const i=Number(e.getAttribute("colspan"))||1,l=Math.max(0,s+i-1-1);t.value=n.clientX,o.value=e.getBoundingClientRect().width;const u=n.currentTarget;return u.setPointerCapture(n.pointerId),e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:l,widthPx:o.value},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("nile-resize-start",{bubbles:!0,composed:!0})),{target:u,col:l}}function n(e,n,t,o,s,i){const l=Math.max(i.minColumnWidth,Math.round(t+(s.clientX-o)));e.dispatchEvent(new CustomEvent("nile-column-resize",{detail:{col:n,widthPx:l},bubbles:!0,composed:!0}))}function t(e,n,t,o){t.releasePointerCapture(n.pointerId),t.removeEventListener("pointermove",o),e.dispatchEvent(new CustomEvent("nile-resize-end",{bubbles:!0,composed:!0}))}export{t as a,n as h,e as i};
@@ -0,0 +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(){}};});
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";
@@ -0,0 +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));}};});
2
+ //# sourceMappingURL=nile-grid-row.cjs.js.map
@@ -0,0 +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":"+oHAmBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCASwDC,EAAAA,KAAAA,CAAQC,QAAY,CAAA,CAAA,CAAA,CACpBD,KAAAA,CAAKE,KAAAA,CAAAA,CAAY,EACjBF,KAAAA,CAAQG,QAAAA,CAAAA,CAAY,CAmBlF,QAAAC,KAAA,EAzBQC,SAAA,CAAAP,CAAA,CAAAD,EAAA,SAAAS,YAAA,CAAAR,CAAA,GAAAS,GAAA,qBAAAC,KAAA,CAQP,SAAAC,iBAAAA,CAAAA,EACEC,aAAAA,CAAAA,CAAAA,iCACAV,KAAKW,YAAa,CAAA,MAAA,CAAQ,MAC3B,EAES,GAAAJ,GAAA,UAAAC,KAAA,UAAAI,MAAAA,CAAAA,CACR,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,uOAQZ,CAlB4DC,KAAAA,GAAAA,UAAAA,GAAAA,CAJtD,SAAAC,IAAA,EACL,MAAO,CAACC,EACT,EAMD,MAb+BC,IAS8BH,CAAAA,CAAA,CAA5DI,CAAS,CAAA,CAAEC,KAAMC,OAASC,CAAAA,OAAAA,CAAAA,CAAS,EAAMC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkC5B,EAAA6B,SAAA,CAAA,UAAA,CAAA,IAAA,IAC1BT,CAAA,CAAA,CAA5DI,EAAS,CAAEC,IAAAA,CAAMC,OAASC,CAAAA,OAAAA,CAAAA,CAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAA+B5B,CAAA6B,CAAAA,SAAAA,CAAA,YAAA,EACvBT,CAAAA,CAAAA,CAAAA,CAAA,CAA5DI,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAAkC5B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6B,UAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KAX5E9B,EAAWoB,CAAA,CAAA,CADvBW,CAAc,CAAA,eAAA,CAAA,CAAA,CACF/B"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",r=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n .row-base {\n display: grid;\n grid-template-columns: var(--nile-grid-columns);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background-color: var(--nile-colors-white-base);\n position: relative;\n }\n\n .row-bg {\n grid-column: 1 / -1;\n pointer-events: none;\n z-index: 0;\n display: none;\n }\n\n .row-slot {\n grid-column: 1 / -1;\n display: contents;\n z-index: 1;\n }\n\n :host([disabled]) {\n background: var(--nile-colors-white-base);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n opacity: 0.3;\n }\n\n :host([selected]) {\n background: var(--nile-colors-primary-100);\n }\n\n :host-context(nile-grid-body):host(:last-child) {\n border-bottom: none;\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-grid-row.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-row.css.cjs.js","sources":["../../../../src/nile-grid/nile-grid-row/nile-grid-row.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridRow CSS\n */\nexport const styles = css`\n .row-base {\n display: grid;\n grid-template-columns: var(--nile-grid-columns);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background-color: var(--nile-colors-white-base);\n position: relative;\n }\n\n .row-bg {\n grid-column: 1 / -1;\n pointer-events: none;\n z-index: 0;\n display: none;\n }\n\n .row-slot {\n grid-column: 1 / -1;\n display: contents;\n z-index: 1;\n }\n\n :host([disabled]) {\n background: var(--nile-colors-white-base);\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n opacity: 0.3;\n }\n\n :host([selected]) {\n background: var(--nile-colors-primary-100);\n }\n\n :host-context(nile-grid-body):host(:last-child) {\n border-bottom: none;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,36 @@
1
+ import{css as o}from"lit";const r=o`
2
+ .row-base {
3
+ display: grid;
4
+ grid-template-columns: var(--nile-grid-columns);
5
+ border-bottom: 1px solid var(--nile-colors-neutral-400);
6
+ background-color: var(--nile-colors-white-base);
7
+ position: relative;
8
+ }
9
+
10
+ .row-bg {
11
+ grid-column: 1 / -1;
12
+ pointer-events: none;
13
+ z-index: 0;
14
+ display: none;
15
+ }
16
+
17
+ .row-slot {
18
+ grid-column: 1 / -1;
19
+ display: contents;
20
+ z-index: 1;
21
+ }
22
+
23
+ :host([disabled]) {
24
+ background: var(--nile-colors-white-base);
25
+ border-bottom: 1px solid var(--nile-colors-neutral-400);
26
+ opacity: 0.3;
27
+ }
28
+
29
+ :host([selected]) {
30
+ background: var(--nile-colors-primary-100);
31
+ }
32
+
33
+ :host-context(nile-grid-body):host(:last-child) {
34
+ border-bottom: none;
35
+ }
36
+ `;export{r as s};
@@ -0,0 +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`
2
+ <div part="grid-row-base" class="row-base">
3
+ <div part="row-slot" class="row-slot">
4
+ <slot></slot>
5
+ </div>
6
+ <div part="row-bg" class="row-bg"></div>
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};