@aquera/nile-elements 1.3.0-beta-1.0 → 1.3.0-beta-1.1

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 (540) hide show
  1. package/README.md +0 -1
  2. package/demo/index.css +0 -3
  3. package/demo/index.html +32 -79
  4. package/demo/variables.css +1 -0
  5. package/dist/{fixture-dff65c89.cjs.js → fixture-54600b35.cjs.js} +2 -2
  6. package/dist/{fixture-1c49c014.cjs.js.map → fixture-54600b35.cjs.js.map} +1 -1
  7. package/dist/{fixture-1c49c014.cjs.js → fixture-5b79f853.cjs.js} +2 -2
  8. package/dist/{fixture-dff65c89.cjs.js.map → fixture-5b79f853.cjs.js.map} +1 -1
  9. package/dist/{fixture-f575d0df.cjs.js → fixture-73855806.cjs.js} +4 -4
  10. package/dist/fixture-73855806.cjs.js.map +1 -0
  11. package/dist/fixture-90b199c4.esm.js +569 -0
  12. package/dist/{fixture-985bba12.esm.js → fixture-9871e8a9.esm.js} +1 -1
  13. package/dist/fixture-c1d78368.cjs.js +395 -0
  14. package/dist/fixture-c1d78368.cjs.js.map +1 -0
  15. package/dist/{fixture-eddab1c0.esm.js → fixture-cf7bfcf5.esm.js} +2 -2
  16. package/dist/fixture-dbd66009.cjs.js +395 -0
  17. package/dist/fixture-dbd66009.cjs.js.map +1 -0
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.esm.js +1 -1
  20. package/dist/index.js +173 -188
  21. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  22. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  24. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  26. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  28. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  29. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  30. package/dist/nile-button/nile-button.test.esm.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  32. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  34. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  35. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  36. package/dist/nile-card/nile-card.test.esm.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  38. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  39. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  40. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  41. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +2 -0
  42. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +1 -0
  43. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +1 -0
  44. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  45. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  47. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  48. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  49. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  50. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  51. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  52. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  53. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  54. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  55. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  56. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  57. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  58. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  59. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  60. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  61. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  62. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  63. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  64. package/dist/nile-grid-body/index.cjs.js +2 -0
  65. package/dist/nile-grid-body/index.esm.js +1 -0
  66. package/dist/nile-grid-body/nile-grid-body.cjs.js +2 -0
  67. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +1 -0
  68. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +2 -0
  69. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +1 -0
  70. package/dist/nile-grid-body/nile-grid-body.css.esm.js +10 -0
  71. package/dist/nile-grid-body/nile-grid-body.esm.js +5 -0
  72. package/dist/nile-grid-cell-item/index.cjs.js +2 -0
  73. package/dist/nile-grid-cell-item/index.cjs.js.map +1 -0
  74. package/dist/nile-grid-cell-item/index.esm.js +1 -0
  75. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +2 -0
  76. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -0
  77. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +2 -0
  78. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -0
  79. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +35 -0
  80. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +12 -0
  81. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +2 -0
  82. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +1 -0
  83. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +1 -0
  84. package/dist/nile-grid-head/index.cjs.js +2 -0
  85. package/dist/nile-grid-head/index.cjs.js.map +1 -0
  86. package/dist/nile-grid-head/index.esm.js +1 -0
  87. package/dist/nile-grid-head/nile-grid-head.cjs.js +2 -0
  88. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +1 -0
  89. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +2 -0
  90. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +1 -0
  91. package/dist/nile-grid-head/nile-grid-head.css.esm.js +7 -0
  92. package/dist/nile-grid-head/nile-grid-head.esm.js +5 -0
  93. package/dist/nile-grid-head-item/index.cjs.js +2 -0
  94. package/dist/nile-grid-head-item/index.cjs.js.map +1 -0
  95. package/dist/nile-grid-head-item/index.esm.js +1 -0
  96. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +2 -0
  97. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -0
  98. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +2 -0
  99. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -0
  100. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +34 -0
  101. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +12 -0
  102. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +2 -0
  103. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -0
  104. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -0
  105. package/dist/nile-grid-row/index.cjs.js +2 -0
  106. package/dist/nile-grid-row/index.cjs.js.map +1 -0
  107. package/dist/nile-grid-row/index.esm.js +1 -0
  108. package/dist/nile-grid-row/nile-grid-row.cjs.js +2 -0
  109. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +1 -0
  110. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +2 -0
  111. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +1 -0
  112. package/dist/nile-grid-row/nile-grid-row.css.esm.js +15 -0
  113. package/dist/nile-grid-row/nile-grid-row.esm.js +7 -0
  114. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  115. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  116. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  117. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  118. package/dist/nile-inline-edit/index.cjs.js +1 -1
  119. package/dist/nile-inline-edit/index.esm.js +1 -1
  120. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js +2 -0
  121. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js.map +1 -0
  122. package/dist/nile-inline-edit/nile-inline-edit-utils.esm.js +1 -0
  123. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  124. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  125. package/dist/nile-inline-edit/nile-inline-edit.esm.js +4 -4
  126. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  127. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  128. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js +1 -1
  129. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js.map +1 -1
  130. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.esm.js +2 -2
  131. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +6 -10
  132. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  133. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  134. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +2 -2
  135. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  136. package/dist/nile-input/nile-input.test.esm.js +1 -1
  137. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  138. package/dist/nile-link/nile-link.test.esm.js +1 -1
  139. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  140. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  141. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  142. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  143. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  144. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  145. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  146. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  147. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  148. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  149. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  150. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  151. package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
  152. package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
  153. package/dist/nile-rich-text-editor/utils.esm.js +1 -0
  154. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  155. package/dist/nile-select/nile-select.test.esm.js +1 -1
  156. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  157. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  158. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js +1 -1
  159. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js.map +1 -1
  160. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.esm.js +5 -3
  161. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +6 -6
  162. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  163. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  164. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +1 -0
  165. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  166. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  167. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  168. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  169. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +5 -17
  170. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +3 -3
  171. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  172. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  173. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +2 -2
  174. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  175. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  176. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +56 -58
  177. package/dist/nile-sidebar/index.cjs.js +2 -0
  178. package/dist/nile-sidebar/index.cjs.js.map +1 -0
  179. package/dist/nile-sidebar/index.esm.js +75 -0
  180. package/dist/nile-sidebar-menu/index.cjs.js +2 -0
  181. package/dist/nile-sidebar-menu/index.cjs.js.map +1 -0
  182. package/dist/nile-sidebar-menu/index.esm.js +1 -0
  183. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +2 -0
  184. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +1 -0
  185. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +2 -0
  186. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +1 -0
  187. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +38 -0
  188. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +10 -0
  189. package/dist/nile-sidebar-menu-items/index.cjs.js +2 -0
  190. package/dist/nile-sidebar-menu-items/index.cjs.js.map +1 -0
  191. package/dist/nile-sidebar-menu-items/index.esm.js +1 -0
  192. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +2 -0
  193. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +1 -0
  194. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +2 -0
  195. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +1 -0
  196. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +36 -0
  197. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +15 -0
  198. package/dist/nile-sidebar-wrapper/index.cjs.js +2 -0
  199. package/dist/nile-sidebar-wrapper/index.cjs.js.map +1 -0
  200. package/dist/nile-sidebar-wrapper/index.esm.js +1 -0
  201. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +2 -0
  202. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +1 -0
  203. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +2 -0
  204. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +1 -0
  205. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +105 -0
  206. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +16 -0
  207. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  208. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  209. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  210. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  211. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  212. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  213. package/dist/nile-virtual-select/group-manager.cjs.js +2 -0
  214. package/dist/nile-virtual-select/group-manager.cjs.js.map +1 -0
  215. package/dist/nile-virtual-select/group-manager.esm.js +1 -0
  216. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  217. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  218. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +2 -0
  219. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +1 -0
  220. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +231 -0
  221. package/dist/scopedElementsWrapper-4c29be11.esm.js +7 -0
  222. package/dist/scopedElementsWrapper-a112fc73.cjs.js +6 -0
  223. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +1 -0
  224. package/dist/scopedElementsWrapper-c815042c.cjs.js +2 -0
  225. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +1 -0
  226. package/dist/src/internal/portal-manager.d.ts +53 -0
  227. package/dist/src/internal/portal-manager.js +196 -0
  228. package/dist/src/internal/portal-manager.js.map +1 -0
  229. package/dist/src/internal/portal.d.ts +60 -0
  230. package/dist/src/internal/portal.js +199 -0
  231. package/dist/src/internal/portal.js.map +1 -0
  232. package/dist/src/internal/resizable-helper.d.ts +59 -0
  233. package/dist/src/internal/resizable-helper.js +115 -0
  234. package/dist/src/internal/resizable-helper.js.map +1 -0
  235. package/dist/src/internal/resizable-styles.d.ts +16 -0
  236. package/dist/src/internal/resizable-styles.js +144 -0
  237. package/dist/src/internal/resizable-styles.js.map +1 -0
  238. package/dist/src/internal/virtualizer-error-handler.d.ts +30 -0
  239. package/dist/src/internal/virtualizer-error-handler.js +82 -0
  240. package/dist/src/internal/virtualizer-error-handler.js.map +1 -0
  241. package/dist/src/lib/index.d.ts +7 -0
  242. package/dist/src/lib/index.js +8 -0
  243. package/dist/src/lib/index.js.map +1 -0
  244. package/dist/src/lib/virtualize.d.ts +32 -0
  245. package/dist/src/lib/virtualize.js +105 -0
  246. package/dist/src/lib/virtualize.js.map +1 -0
  247. package/dist/src/lib/virtualize.test.d.ts +7 -0
  248. package/dist/src/lib/virtualize.test.js +57 -0
  249. package/dist/src/lib/virtualize.test.js.map +1 -0
  250. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  251. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  252. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  253. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  254. package/dist/src/nile-code-editor/Old_theme copy.d.ts +191 -0
  255. package/dist/src/nile-code-editor/Old_theme copy.js +193 -0
  256. package/dist/src/nile-code-editor/Old_theme copy.js.map +1 -0
  257. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  258. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +675 -0
  259. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +1 -0
  260. package/dist/src/nile-code-editor/theme copy.d.ts +191 -0
  261. package/dist/src/nile-code-editor/theme copy.js +193 -0
  262. package/dist/src/nile-code-editor/theme copy.js.map +1 -0
  263. package/dist/src/nile-grid/data-processor.d.ts +37 -0
  264. package/dist/src/nile-grid/data-processor.js +122 -0
  265. package/dist/src/nile-grid/data-processor.js.map +1 -0
  266. package/dist/src/nile-grid/event-handlers.d.ts +35 -0
  267. package/dist/src/nile-grid/event-handlers.js +158 -0
  268. package/dist/src/nile-grid/event-handlers.js.map +1 -0
  269. package/dist/src/nile-grid/renderer.d.ts +8 -0
  270. package/dist/src/nile-grid/renderer.js +78 -0
  271. package/dist/src/nile-grid/renderer.js.map +1 -0
  272. package/dist/src/nile-grid/resize-handler.d.ts +4 -0
  273. package/dist/src/nile-grid/resize-handler.js +36 -0
  274. package/dist/src/nile-grid/resize-handler.js.map +1 -0
  275. package/dist/src/nile-grid/types.d.ts +32 -0
  276. package/dist/src/nile-grid/types.js +2 -0
  277. package/dist/src/nile-grid/types.js.map +1 -0
  278. package/dist/src/nile-grid/utils.d.ts +4 -0
  279. package/dist/src/nile-grid/utils.js +32 -0
  280. package/dist/src/nile-grid/utils.js.map +1 -0
  281. package/dist/src/nile-grid-body/index.d.ts +1 -0
  282. package/dist/src/nile-grid-body/index.js +2 -0
  283. package/dist/src/nile-grid-body/index.js.map +1 -0
  284. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +12 -0
  285. package/dist/src/nile-grid-body/nile-grid-body.css.js +22 -0
  286. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +1 -0
  287. package/dist/src/nile-grid-body/nile-grid-body.d.ts +29 -0
  288. package/dist/src/nile-grid-body/nile-grid-body.js +43 -0
  289. package/dist/src/nile-grid-body/nile-grid-body.js.map +1 -0
  290. package/dist/src/nile-grid-cell-item/index.d.ts +1 -0
  291. package/dist/src/nile-grid-cell-item/index.js +2 -0
  292. package/dist/src/nile-grid-cell-item/index.js.map +1 -0
  293. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +12 -0
  294. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +47 -0
  295. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -0
  296. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +36 -0
  297. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +93 -0
  298. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +1 -0
  299. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +10 -0
  300. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +34 -0
  301. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +1 -0
  302. package/dist/src/nile-grid-head/index.d.ts +1 -0
  303. package/dist/src/nile-grid-head/index.js +2 -0
  304. package/dist/src/nile-grid-head/index.js.map +1 -0
  305. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +12 -0
  306. package/dist/src/nile-grid-head/nile-grid-head.css.js +19 -0
  307. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +1 -0
  308. package/dist/src/nile-grid-head/nile-grid-head.d.ts +28 -0
  309. package/dist/src/nile-grid-head/nile-grid-head.js +41 -0
  310. package/dist/src/nile-grid-head/nile-grid-head.js.map +1 -0
  311. package/dist/src/nile-grid-head-item/index.d.ts +1 -0
  312. package/dist/src/nile-grid-head-item/index.js +2 -0
  313. package/dist/src/nile-grid-head-item/index.js.map +1 -0
  314. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +12 -0
  315. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +46 -0
  316. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -0
  317. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +37 -0
  318. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +100 -0
  319. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +1 -0
  320. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +10 -0
  321. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +34 -0
  322. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -0
  323. package/dist/src/nile-grid-row/index.d.ts +1 -0
  324. package/dist/src/nile-grid-row/index.js +2 -0
  325. package/dist/src/nile-grid-row/index.js.map +1 -0
  326. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +12 -0
  327. package/dist/src/nile-grid-row/nile-grid-row.css.js +27 -0
  328. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +1 -0
  329. package/dist/src/nile-grid-row/nile-grid-row.d.ts +29 -0
  330. package/dist/src/nile-grid-row/nile-grid-row.js +45 -0
  331. package/dist/src/nile-grid-row/nile-grid-row.js.map +1 -0
  332. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  333. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  334. package/dist/src/nile-inline-edit/nile-inline-edit-utils.d.ts +20 -0
  335. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js +70 -0
  336. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js.map +1 -0
  337. package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +8 -0
  338. package/dist/src/nile-inline-edit/nile-inline-edit.js +47 -1
  339. package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -1
  340. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js +2 -2
  341. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js.map +1 -1
  342. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js +3 -10
  343. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js.map +1 -1
  344. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.d.ts +0 -1
  345. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js +0 -4
  346. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js.map +1 -1
  347. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  348. package/dist/src/nile-menu/portal-manager.d.ts +39 -0
  349. package/dist/src/nile-menu/portal-manager.js +340 -0
  350. package/dist/src/nile-menu/portal-manager.js.map +1 -0
  351. package/dist/src/nile-menu/portal-utils.d.ts +21 -0
  352. package/dist/src/nile-menu/portal-utils.js +128 -0
  353. package/dist/src/nile-menu/portal-utils.js.map +1 -0
  354. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  355. package/dist/src/nile-popover/popover-portal-handler.d.ts +21 -0
  356. package/dist/src/nile-popover/popover-portal-handler.js +106 -0
  357. package/dist/src/nile-popover/popover-portal-handler.js.map +1 -0
  358. package/dist/src/nile-portal-wrapper/index.d.ts +1 -0
  359. package/dist/src/nile-portal-wrapper/index.js +2 -0
  360. package/dist/src/nile-portal-wrapper/index.js.map +1 -0
  361. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +47 -0
  362. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +451 -0
  363. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +1 -0
  364. package/dist/src/nile-rich-text-editor/utils.d.ts +13 -0
  365. package/dist/src/nile-rich-text-editor/utils.js +538 -0
  366. package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
  367. package/dist/src/nile-select/body-append-manager.d.ts +90 -0
  368. package/dist/src/nile-select/body-append-manager.js +298 -0
  369. package/dist/src/nile-select/body-append-manager.js.map +1 -0
  370. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js +5 -3
  371. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js.map +1 -1
  372. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js +4 -4
  373. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js.map +1 -1
  374. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +1 -0
  375. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  376. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +3 -15
  377. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  378. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -9
  379. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +15 -36
  380. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  381. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +2 -2
  382. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  383. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +46 -48
  384. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  385. package/dist/src/nile-sidebar/index.d.ts +28 -0
  386. package/dist/src/nile-sidebar/index.js +116 -0
  387. package/dist/src/nile-sidebar/index.js.map +1 -0
  388. package/dist/src/nile-sidebar-menu/index.d.ts +1 -0
  389. package/dist/src/nile-sidebar-menu/index.js +2 -0
  390. package/dist/src/nile-sidebar-menu/index.js.map +1 -0
  391. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +12 -0
  392. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +47 -0
  393. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +1 -0
  394. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +37 -0
  395. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +84 -0
  396. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +1 -0
  397. package/dist/src/nile-sidebar-menu-items/index.d.ts +1 -0
  398. package/dist/src/nile-sidebar-menu-items/index.js +2 -0
  399. package/dist/src/nile-sidebar-menu-items/index.js.map +1 -0
  400. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +12 -0
  401. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +45 -0
  402. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +1 -0
  403. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +35 -0
  404. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +78 -0
  405. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +1 -0
  406. package/dist/src/nile-sidebar-wrapper/index.d.ts +1 -0
  407. package/dist/src/nile-sidebar-wrapper/index.js +2 -0
  408. package/dist/src/nile-sidebar-wrapper/index.js.map +1 -0
  409. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +12 -0
  410. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +114 -0
  411. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +1 -0
  412. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +35 -0
  413. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +89 -0
  414. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +1 -0
  415. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +9 -0
  416. package/dist/src/nile-table-body/virtual-scroll-helper.js +24 -0
  417. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +1 -0
  418. package/dist/src/nile-virtual-select/body-append-helper.d.ts +16 -0
  419. package/dist/src/nile-virtual-select/body-append-helper.js +95 -0
  420. package/dist/src/nile-virtual-select/body-append-helper.js.map +1 -0
  421. package/dist/src/nile-virtual-select/group-manager.d.ts +32 -0
  422. package/dist/src/nile-virtual-select/group-manager.js +134 -0
  423. package/dist/src/nile-virtual-select/group-manager.js.map +1 -0
  424. package/dist/src/nile-virtual-select/portal-utils.d.ts +65 -0
  425. package/dist/src/nile-virtual-select/portal-utils.js +376 -0
  426. package/dist/src/nile-virtual-select/portal-utils.js.map +1 -0
  427. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +273 -0
  428. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +1305 -0
  429. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +1 -0
  430. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +21 -0
  431. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +56 -0
  432. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +1 -0
  433. package/dist/src/nile-virtual-select-disabled/index.d.ts +1 -0
  434. package/dist/src/nile-virtual-select-disabled/index.js +2 -0
  435. package/dist/src/nile-virtual-select-disabled/index.js.map +1 -0
  436. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +12 -0
  437. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +538 -0
  438. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +1 -0
  439. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +299 -0
  440. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +1441 -0
  441. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +1 -0
  442. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +7 -0
  443. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +631 -0
  444. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +1 -0
  445. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +45 -0
  446. package/dist/src/nile-virtual-select-disabled/portal-manager.js +333 -0
  447. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +1 -0
  448. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +16 -0
  449. package/dist/src/nile-virtual-select-disabled/renderer.js +79 -0
  450. package/dist/src/nile-virtual-select-disabled/renderer.js.map +1 -0
  451. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +12 -0
  452. package/dist/src/nile-virtual-select-disabled/search-manager.js +40 -0
  453. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +1 -0
  454. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +12 -0
  455. package/dist/src/nile-virtual-select-disabled/selection-manager.js +64 -0
  456. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +1 -0
  457. package/dist/src/nile-virtual-select-disabled/types.d.ts +50 -0
  458. package/dist/src/nile-virtual-select-disabled/types.js +8 -0
  459. package/dist/src/nile-virtual-select-disabled/types.js.map +1 -0
  460. package/dist/src/nile-virtual-table-body/index.d.ts +2 -0
  461. package/dist/src/nile-virtual-table-body/index.js +3 -0
  462. package/dist/src/nile-virtual-table-body/index.js.map +1 -0
  463. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +1 -0
  464. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +44 -0
  465. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +1 -0
  466. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +50 -0
  467. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +135 -0
  468. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +1 -0
  469. package/dist/src/nile-virtual-table-body/renderer.d.ts +16 -0
  470. package/dist/src/nile-virtual-table-body/renderer.js +49 -0
  471. package/dist/src/nile-virtual-table-body/renderer.js.map +1 -0
  472. package/dist/src/utilities/stepper-utils.d.ts +71 -0
  473. package/dist/src/utilities/stepper-utils.js +108 -0
  474. package/dist/src/utilities/stepper-utils.js.map +1 -0
  475. package/dist/src/version.js +1 -1
  476. package/dist/src/version.js.map +1 -1
  477. package/dist/tsconfig.tsbuildinfo +1 -1
  478. package/package.json +2 -2
  479. package/src/nile-inline-edit/nile-inline-edit-utils.ts +94 -0
  480. package/src/nile-inline-edit/nile-inline-edit.ts +59 -1
  481. package/src/nile-inline-sidebar/nile-inline-sidebar.css.ts +2 -2
  482. package/src/nile-inline-sidebar/nile-inline-sidebar.ts +5 -16
  483. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.ts +0 -1
  484. package/src/nile-side-bar-expand/nile-side-bar-expand.css.ts +5 -3
  485. package/src/nile-side-bar-expand/nile-side-bar-expand.ts +4 -4
  486. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +1 -0
  487. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +3 -15
  488. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +16 -42
  489. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +2 -2
  490. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +47 -49
  491. package/vscode-html-custom-data.json +8 -30
  492. package/dist/axe.min-140df6c2.cjs.js +0 -2
  493. package/dist/axe.min-140df6c2.cjs.js.map +0 -1
  494. package/dist/axe.min-591c52c3.esm.js +0 -1
  495. package/dist/fixture-f575d0df.cjs.js.map +0 -1
  496. package/dist/floating-ui.dom-70d5643f.esm.js +0 -1
  497. package/dist/floating-ui.dom-f19772dc.cjs.js +0 -2
  498. package/dist/floating-ui.dom-f19772dc.cjs.js.map +0 -1
  499. package/dist/flow-3e83b6f4.esm.js +0 -17
  500. package/dist/flow-ca47f938.cjs.js +0 -14
  501. package/dist/flow-ca47f938.cjs.js.map +0 -1
  502. package/dist/nile-light-tooltip/index.cjs.js +0 -2
  503. package/dist/nile-light-tooltip/index.esm.js +0 -1
  504. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js +0 -2
  505. package/dist/nile-light-tooltip/nile-light-tooltip.cjs.js.map +0 -1
  506. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js +0 -2
  507. package/dist/nile-light-tooltip/nile-light-tooltip.css.cjs.js.map +0 -1
  508. package/dist/nile-light-tooltip/nile-light-tooltip.css.esm.js +0 -5
  509. package/dist/nile-light-tooltip/nile-light-tooltip.esm.js +0 -1
  510. package/dist/nile-light-tooltip/utils.cjs.js +0 -2
  511. package/dist/nile-light-tooltip/utils.cjs.js.map +0 -1
  512. package/dist/nile-light-tooltip/utils.esm.js +0 -1
  513. package/dist/scopedElementsWrapper-067597d2.cjs.js +0 -6
  514. package/dist/scopedElementsWrapper-067597d2.cjs.js.map +0 -1
  515. package/dist/scopedElementsWrapper-4374e962.esm.js +0 -7
  516. package/dist/sinon-esm-283dcc9b.cjs.js +0 -2
  517. package/dist/sinon-esm-283dcc9b.cjs.js.map +0 -1
  518. package/dist/sinon-esm-abe9b0ec.esm.js +0 -1
  519. package/dist/src/nile-light-tooltip/index.d.ts +0 -1
  520. package/dist/src/nile-light-tooltip/index.js +0 -2
  521. package/dist/src/nile-light-tooltip/index.js.map +0 -1
  522. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.d.ts +0 -12
  523. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js +0 -17
  524. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js.map +0 -1
  525. package/dist/src/nile-light-tooltip/nile-light-tooltip.d.ts +0 -79
  526. package/dist/src/nile-light-tooltip/nile-light-tooltip.js +0 -350
  527. package/dist/src/nile-light-tooltip/nile-light-tooltip.js.map +0 -1
  528. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.d.ts +0 -12
  529. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js +0 -17
  530. package/dist/src/nile-light-tooltip/nile-lite-tooltip.css.js.map +0 -1
  531. package/dist/src/nile-light-tooltip/nile-lite-tooltip.d.ts +0 -79
  532. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js +0 -350
  533. package/dist/src/nile-light-tooltip/nile-lite-tooltip.js.map +0 -1
  534. package/dist/src/nile-light-tooltip/utils.d.ts +0 -2
  535. package/dist/src/nile-light-tooltip/utils.js +0 -29
  536. package/dist/src/nile-light-tooltip/utils.js.map +0 -1
  537. package/dist/virtualize-73f68d08.esm.js +0 -22
  538. package/dist/virtualize-eb33a9a0.cjs.js +0 -18
  539. package/dist/virtualize-eb33a9a0.cjs.js.map +0 -1
  540. /package/dist/{nile-light-tooltip → nile-grid-body}/index.cjs.js.map +0 -0
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { html } from 'lit';
9
+ import { customElement, property } from 'lit/decorators.js';
10
+ import { styles } from './nile-grid-head-item.css';
11
+ import NileElement from '../internal/nile-element';
12
+ import { initHeadResize, headResizeMove, headResizeDone, } from './nile-grid-head-item.utils';
13
+ /**
14
+ * Nile grid-head-item component.
15
+ *
16
+ * @tag nile-grid-head-item
17
+ *
18
+ */
19
+ let NileGridHeadItem = class NileGridHeadItem extends NileElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.colspan = 1;
23
+ this.rowspan = 1;
24
+ this.scope = 'col';
25
+ this.resizable = false;
26
+ this.sticky = false;
27
+ this.onHandlePointerDown = (ev) => {
28
+ const el = this;
29
+ const downXRef = { value: 0 };
30
+ const startWRef = { value: 0 };
31
+ const result = initHeadResize(el, ev, downXRef, startWRef);
32
+ if (!result)
33
+ return;
34
+ const { target, col } = result;
35
+ const move = (e) => headResizeMove(el, col, startWRef.value, downXRef.value, e);
36
+ const done = () => headResizeDone(el, ev, target, move);
37
+ target.addEventListener('pointermove', move);
38
+ target.addEventListener('pointerup', done, { once: true });
39
+ target.addEventListener('pointercancel', done, { once: true });
40
+ };
41
+ /* #endregion */
42
+ }
43
+ /**
44
+ * The styles for nile-grid-head-item
45
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
46
+ */
47
+ static get styles() {
48
+ return [styles];
49
+ }
50
+ connectedCallback() {
51
+ super.connectedCallback();
52
+ this.setAttribute('role', this.scope === 'row' ? 'rowheader' : 'columnheader');
53
+ }
54
+ updated(changed) {
55
+ if (changed.has('scope')) {
56
+ this.setAttribute('role', this.scope === 'row' ? 'rowheader' : 'columnheader');
57
+ }
58
+ }
59
+ disconnectedCallback() {
60
+ super.disconnectedCallback();
61
+ this.removeAttribute('role');
62
+ }
63
+ render() {
64
+ return html `
65
+ <div style="display: contents;">
66
+ <slot></slot>
67
+ ${this.resizable
68
+ ? html `
69
+ <div
70
+ aria-hidden="false"
71
+ class="resize-handle"
72
+ @pointerdown=${this.onHandlePointerDown}
73
+ ></div>
74
+ `
75
+ : null}
76
+ </div>
77
+ `;
78
+ }
79
+ };
80
+ __decorate([
81
+ property({ type: Number, reflect: true, attribute: true })
82
+ ], NileGridHeadItem.prototype, "colspan", void 0);
83
+ __decorate([
84
+ property({ type: Number, reflect: true, attribute: true })
85
+ ], NileGridHeadItem.prototype, "rowspan", void 0);
86
+ __decorate([
87
+ property({ type: String, reflect: true, attribute: true })
88
+ ], NileGridHeadItem.prototype, "scope", void 0);
89
+ __decorate([
90
+ property({ type: Boolean, reflect: true, attribute: true })
91
+ ], NileGridHeadItem.prototype, "resizable", void 0);
92
+ __decorate([
93
+ property({ type: Boolean, reflect: true, attribute: true })
94
+ ], NileGridHeadItem.prototype, "sticky", void 0);
95
+ NileGridHeadItem = __decorate([
96
+ customElement('nile-grid-head-item')
97
+ ], NileGridHeadItem);
98
+ export { NileGridHeadItem };
99
+ export default NileGridHeadItem;
100
+ //# sourceMappingURL=nile-grid-head-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-head-item.js","sourceRoot":"","sources":["../../../src/nile-grid-head-item/nile-grid-head-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAkC,MAAM,KAAK,CAAC;AACvE,OAAO,EAAE,aAA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AAC;iDAAa;AACZ;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;+CAEzC;AAC2C;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;mDAAmB;AAClB;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gDAAgB;AAfjE,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CA8E5B;;AAED,eAAe,gBAAgB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-grid-head-item.css';\nimport NileElement from '../internal/nile-element';\nimport {\n initHeadResize,\n headResizeMove,\n headResizeDone,\n} from './nile-grid-head-item.utils';\n\n/**\n * Nile grid-head-item component.\n *\n * @tag nile-grid-head-item\n *\n */\n@customElement('nile-grid-head-item')\nexport class NileGridHeadItem extends NileElement {\n /**\n * The styles for nile-grid-head-item\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number, reflect: true, attribute: true }) colspan = 1;\n @property({ type: Number, reflect: true, attribute: true }) rowspan = 1;\n @property({ type: String, reflect: true, attribute: true }) scope:\n | 'col'\n | 'row' = 'col';\n @property({ type: Boolean, reflect: true, attribute: true }) resizable = false;\n @property({ type: Boolean, reflect: true, attribute: true }) sticky = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute(\n 'role',\n this.scope === 'row' ? 'rowheader' : 'columnheader'\n );\n }\n\n private onHandlePointerDown = (ev: PointerEvent) => {\n const el = this as HTMLElement;\n\n const downXRef = { value: 0 };\n const startWRef = { value: 0 };\n\n const result = initHeadResize(el, ev, downXRef, startWRef);\n if (!result) return;\n\n const { target, col } = result;\n\n const move = (e: PointerEvent) =>\n headResizeMove(el, col, startWRef.value, downXRef.value, e);\n\n const done = () => headResizeDone(el, ev, target, move);\n\n target.addEventListener('pointermove', move);\n target.addEventListener('pointerup', done, { once: true });\n target.addEventListener('pointercancel', done, { once: true });\n };\n\n protected updated(changed: Map<string, unknown>) {\n if (changed.has('scope')) {\n this.setAttribute(\n 'role',\n this.scope === 'row' ? 'rowheader' : 'columnheader'\n );\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeAttribute('role');\n }\n\n public render(): TemplateResult {\n return html`\n <div style=\"display: contents;\">\n <slot></slot>\n ${this.resizable\n ? html`\n <div\n aria-hidden=\"false\"\n class=\"resize-handle\"\n @pointerdown=${this.onHandlePointerDown}\n ></div>\n `\n : null}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridHeadItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-head-item': NileGridHeadItem;\n }\n}\n"]}
@@ -0,0 +1,10 @@
1
+ export declare function initHeadResize(el: HTMLElement, ev: PointerEvent, downXRef: {
2
+ value: number;
3
+ }, startWRef: {
4
+ value: number;
5
+ }): {
6
+ target: HTMLElement;
7
+ col: number;
8
+ } | null;
9
+ export declare function headResizeMove(el: HTMLElement, col: number, startW: number, downX: number, e: PointerEvent): void;
10
+ export declare function headResizeDone(el: HTMLElement, ev: PointerEvent, target: HTMLElement, move: (e: PointerEvent) => void): void;
@@ -0,0 +1,34 @@
1
+ export function initHeadResize(el, ev, downXRef, startWRef) {
2
+ ev.preventDefault();
3
+ ev.stopPropagation();
4
+ const cStart = Number(el.dataset.cStart);
5
+ if (!cStart)
6
+ return null;
7
+ const span = Number(el.getAttribute('colspan')) || 1;
8
+ const col = Math.max(0, cStart + span - 1 - 1);
9
+ downXRef.value = ev.clientX;
10
+ startWRef.value = el.getBoundingClientRect().width;
11
+ const target = ev.currentTarget;
12
+ target.setPointerCapture(ev.pointerId);
13
+ el.dispatchEvent(new CustomEvent('nile-resize', {
14
+ detail: { col, widthPx: startWRef.value },
15
+ bubbles: true,
16
+ composed: true,
17
+ }));
18
+ el.dispatchEvent(new CustomEvent('nile-resize-start', { bubbles: true, composed: true }));
19
+ return { target, col };
20
+ }
21
+ export function headResizeMove(el, col, startW, downX, e) {
22
+ const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));
23
+ el.dispatchEvent(new CustomEvent('nile-resize', {
24
+ detail: { col, widthPx },
25
+ bubbles: true,
26
+ composed: true,
27
+ }));
28
+ }
29
+ export function headResizeDone(el, ev, target, move) {
30
+ target.releasePointerCapture(ev.pointerId);
31
+ target.removeEventListener('pointermove', move);
32
+ el.dispatchEvent(new CustomEvent('nile-resize-end', { bubbles: true, composed: true }));
33
+ }
34
+ //# sourceMappingURL=nile-grid-head-item.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-head-item.utils.js","sourceRoot":"","sources":["../../../src/nile-grid-head-item/nile-grid-head-item.utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAC5B,EAAe,EACf,EAAgB,EAChB,QAA2B,EAC3B,SAA4B;IAE5B,EAAE,CAAC,cAAc,EAAE,CAAC;IACpB,EAAE,CAAC,eAAe,EAAE,CAAC;IAErB,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM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E,CAAC,SAAS,CAAC,CAAC;IAC3C,MAAM,CAAC,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAEhD,EAAE,CAAC,aAAa,CACd,IAAI,WAAW,CAAC,iBAAiB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CACtE,CAAC;AACJ,CAAC","sourcesContent":["export function initHeadResize(\n el: HTMLElement,\n ev: PointerEvent,\n downXRef: { value: number },\n startWRef: { value: number }\n) {\n ev.preventDefault();\n ev.stopPropagation();\n\n const cStart = Number(el.dataset.cStart);\n if (!cStart) return null;\n\n const span = Number(el.getAttribute('colspan')) || 1;\n const col = Math.max(0, cStart + span - 1 - 1);\n\n downXRef.value = ev.clientX;\n startWRef.value = el.getBoundingClientRect().width;\n\n const target = ev.currentTarget as HTMLElement;\n target.setPointerCapture(ev.pointerId);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx: startWRef.value },\n bubbles: true,\n composed: true,\n })\n );\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-start', { bubbles: true, composed: true })\n );\n\n return { target, col };\n}\n\nexport function headResizeMove(\n el: HTMLElement,\n col: number,\n startW: number,\n downX: number,\n e: PointerEvent\n) {\n const widthPx = Math.max(40, Math.round(startW + (e.clientX - downX)));\n el.dispatchEvent(\n new CustomEvent('nile-resize', {\n detail: { col, widthPx },\n bubbles: true,\n composed: true,\n })\n );\n}\n\nexport function headResizeDone(\n el: HTMLElement,\n ev: PointerEvent,\n target: HTMLElement,\n move: (e: PointerEvent) => void\n) {\n target.releasePointerCapture(ev.pointerId);\n target.removeEventListener('pointermove', move);\n\n el.dispatchEvent(\n new CustomEvent('nile-resize-end', { bubbles: true, composed: true })\n );\n}\n"]}
@@ -0,0 +1 @@
1
+ export { NileGridRow } from './nile-grid-row';
@@ -0,0 +1,2 @@
1
+ export { NileGridRow } from './nile-grid-row';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-grid-row/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { NileGridRow } from './nile-grid-row';"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /**
8
+ * GridRow CSS
9
+ */
10
+ export declare const styles: import("lit").CSSResult;
11
+ declare const _default: import("lit").CSSResult[];
12
+ export default _default;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit';
8
+ /**
9
+ * GridRow CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ display: contents;
14
+ }
15
+
16
+ ::slotted(nile-grid-header) {
17
+ background-color: var(--nile-colors-neutral-100);
18
+ }
19
+
20
+ .row-layer {
21
+ background-color: var(--row-bg, transparent);
22
+ z-index: 0;
23
+ pointer-events: auto;
24
+ }
25
+ `;
26
+ export default [styles];
27
+ //# sourceMappingURL=nile-grid-row.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-row.css.js","sourceRoot":"","sources":["../../../src/nile-grid-row/nile-grid-row.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * GridRow CSS\n */\nexport const styles = css`\n :host {\n display: contents;\n }\n\n ::slotted(nile-grid-header) {\n background-color: var(--nile-colors-neutral-100);\n }\n\n .row-layer {\n background-color: var(--row-bg, transparent);\n z-index: 0;\n pointer-events: auto;\n }\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { CSSResultArray, TemplateResult } from 'lit';
8
+ import NileElement from '../internal/nile-element';
9
+ /**
10
+ * Nile grid-row component.
11
+ *
12
+ * @tag nile-grid-row
13
+ *
14
+ */
15
+ export declare class NileGridRow extends NileElement {
16
+ /**
17
+ * The styles for nile-grid-row
18
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
19
+ */
20
+ static get styles(): CSSResultArray;
21
+ connectedCallback(): void;
22
+ render(): TemplateResult;
23
+ }
24
+ export default NileGridRow;
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'nile-grid-row': NileGridRow;
28
+ }
29
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { html } from 'lit';
9
+ import { customElement } from 'lit/decorators.js';
10
+ import { styles } from './nile-grid-row.css';
11
+ import NileElement from '../internal/nile-element';
12
+ /**
13
+ * Nile grid-row component.
14
+ *
15
+ * @tag nile-grid-row
16
+ *
17
+ */
18
+ let NileGridRow = class NileGridRow extends NileElement {
19
+ /**
20
+ * The styles for nile-grid-row
21
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
22
+ */
23
+ static get styles() {
24
+ return [styles];
25
+ }
26
+ connectedCallback() {
27
+ super.connectedCallback();
28
+ this.setAttribute('role', 'row');
29
+ }
30
+ render() {
31
+ return html `
32
+ <div part="row-layer" class="row-layer" data-row-bg></div>
33
+
34
+ <div style="display: contents;">
35
+ <slot></slot>
36
+ </div>
37
+ `;
38
+ }
39
+ };
40
+ NileGridRow = __decorate([
41
+ customElement('nile-grid-row')
42
+ ], NileGridRow);
43
+ export { NileGridRow };
44
+ export default NileGridRow;
45
+ //# sourceMappingURL=nile-grid-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-grid-row.js","sourceRoot":"","sources":["../../../src/nile-grid-row/nile-grid-row.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAkC,MAAM,KAAK,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACI,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;;;KAMV,CAAC;IACJ,CAAC;CAGF,CAAA;AAzBY,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAyBvB;;AAED,eAAe,WAAW,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-grid-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile grid-row component.\n *\n * @tag nile-grid-row\n *\n */\n@customElement('nile-grid-row')\nexport class NileGridRow extends NileElement {\n /**\n * The styles for nile-grid-row\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'row');\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"row-layer\" class=\"row-layer\" data-row-bg></div>\n\n <div style=\"display: contents;\">\n <slot></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileGridRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-grid-row': NileGridRow;\n }\n}\n"]}
@@ -0,0 +1,47 @@
1
+ /* @web/test-runner snapshot v1 */
2
+ export const snapshots = {};
3
+
4
+ snapshots["NileHero renders correctly with default properties"] =
5
+ `<div
6
+ class="hero__container hero__container--expanded"
7
+ part="nile__hero__container"
8
+ >
9
+ <nile-hero-header
10
+ class="hero__header--collapsed"
11
+ hero-text="Test Hero"
12
+ icon="error"
13
+ part="nile__hero__header"
14
+ style="opacity:0"
15
+ >
16
+ </nile-hero-header>
17
+ <div
18
+ class="hero__slot__container"
19
+ style="opacity:1"
20
+ >
21
+ <div class="hero__slot">
22
+ <span class="icon__container">
23
+ <nile-icon
24
+ method="stroke"
25
+ name="error"
26
+ size="16"
27
+ >
28
+ </nile-icon>
29
+ </span>
30
+ <slot>
31
+ </slot>
32
+ </div>
33
+ </div>
34
+ <div
35
+ class="hero__img__container"
36
+ id="hero__img__container"
37
+ style="opacity:1"
38
+ >
39
+ <img
40
+ class="hero__img"
41
+ src=""
42
+ >
43
+ </div>
44
+ </div>
45
+ `;
46
+ /* end snapshot NileHero renders correctly with default properties */
47
+
@@ -0,0 +1,16 @@
1
+ /* @web/test-runner snapshot v1 */
2
+ export const snapshots = {};
3
+
4
+ snapshots["NileIcon should render the icon with the correct name"] =
5
+ `<nile-icon
6
+ description=""
7
+ method="fill"
8
+ name="info"
9
+ set="local"
10
+ size="16"
11
+ style="--nile-svg-fill: var(--nile-colors-dark-500); --nile-svg-height: 16px; --nile-svg-width: 16px;"
12
+ >
13
+ </nile-icon>
14
+ `;
15
+ /* end snapshot NileIcon should render the icon with the correct name */
16
+
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export declare function getSlottedElement(shadowRoot: ShadowRoot | null | undefined): HTMLElement | null;
8
+ export declare function getValueFromSlottedElement(shadowRoot: ShadowRoot | null | undefined): string;
9
+ export declare function getDisplayValue(value: string, maxPlaceholderLength: number): string;
10
+ export declare function setSlottedElementValue(shadowRoot: ShadowRoot | null | undefined, value: string): void;
11
+ export declare function updateSlottedElementValue(updateComplete: Promise<boolean> | Promise<void>, shadowRoot: ShadowRoot | null | undefined, value: string): void;
12
+ export declare function updateValueFromSlottedElement(shadowRoot: ShadowRoot | null | undefined, currentValue: string): string;
13
+ export declare function handleDocumentFocusIn(event: FocusEvent, component: HTMLElement, isOpen: boolean): {
14
+ shouldClose: boolean;
15
+ newValue: string | null;
16
+ };
17
+ export declare function handleDocumentMouseDown(event: MouseEvent, component: HTMLElement, isOpen: boolean): {
18
+ shouldClose: boolean;
19
+ newValue: string | null;
20
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export function getSlottedElement(shadowRoot) {
8
+ if (!shadowRoot)
9
+ return null;
10
+ const slot = shadowRoot.querySelector('slot');
11
+ if (!slot)
12
+ return null;
13
+ const assignedElements = slot.assignedElements({ flatten: true });
14
+ return assignedElements[0] || null;
15
+ }
16
+ export function getValueFromSlottedElement(shadowRoot) {
17
+ const slottedElement = getSlottedElement(shadowRoot);
18
+ if (!slottedElement)
19
+ return '';
20
+ const value = slottedElement.value;
21
+ return value != null ? String(value) : '';
22
+ }
23
+ export function getDisplayValue(value, maxPlaceholderLength) {
24
+ if (value && maxPlaceholderLength > 0 && value.length > maxPlaceholderLength) {
25
+ return value.substring(0, maxPlaceholderLength) + '...';
26
+ }
27
+ return value;
28
+ }
29
+ export function setSlottedElementValue(shadowRoot, value) {
30
+ const slottedElement = getSlottedElement(shadowRoot);
31
+ if (slottedElement && value) {
32
+ slottedElement.value = value;
33
+ }
34
+ }
35
+ export function updateSlottedElementValue(updateComplete, shadowRoot, value) {
36
+ updateComplete.then(() => {
37
+ setSlottedElementValue(shadowRoot, value);
38
+ });
39
+ }
40
+ export function updateValueFromSlottedElement(shadowRoot, currentValue) {
41
+ const newValue = getValueFromSlottedElement(shadowRoot);
42
+ return newValue !== currentValue ? newValue : currentValue;
43
+ }
44
+ export function handleDocumentFocusIn(event, component, isOpen) {
45
+ if (!isOpen)
46
+ return { shouldClose: false, newValue: null };
47
+ const path = event.composedPath();
48
+ const isWithinComponent = path.includes(component);
49
+ if (!isWithinComponent) {
50
+ const shadowRoot = component.shadowRoot;
51
+ const currentValue = component.value || '';
52
+ const newValue = updateValueFromSlottedElement(shadowRoot, currentValue);
53
+ return { shouldClose: true, newValue };
54
+ }
55
+ return { shouldClose: false, newValue: null };
56
+ }
57
+ export function handleDocumentMouseDown(event, component, isOpen) {
58
+ if (!isOpen)
59
+ return { shouldClose: false, newValue: null };
60
+ const path = event.composedPath();
61
+ const isWithinComponent = path.includes(component);
62
+ if (!isWithinComponent) {
63
+ const shadowRoot = component.shadowRoot;
64
+ const currentValue = component.value || '';
65
+ const newValue = updateValueFromSlottedElement(shadowRoot, currentValue);
66
+ return { shouldClose: true, newValue };
67
+ }
68
+ return { shouldClose: false, newValue: null };
69
+ }
70
+ //# sourceMappingURL=nile-inline-edit-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-inline-edit-utils.js","sourceRoot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EAAE,CAAC;IAE3D,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEnD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,UAAU,GAAI,SAAiB,CAAC,UAAU,CAAC;QACjD,MAAM,YAAY,GAAI,SAAiB,CAAC,KAAK,IAAI,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAG,6BAA6B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACzE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChD,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport function getSlottedElement(shadowRoot: ShadowRoot | null | undefined): HTMLElement | null {\n if (!shadowRoot) return null;\n const slot = shadowRoot.querySelector('slot');\n if (!slot) return null;\n const assignedElements = slot.assignedElements({ flatten: true });\n return (assignedElements[0] as HTMLElement) || null;\n}\n\nexport function getValueFromSlottedElement(shadowRoot: ShadowRoot | null | undefined): string {\n const slottedElement = getSlottedElement(shadowRoot);\n if (!slottedElement) return '';\n const value = (slottedElement as any).value;\n return value != null ? String(value) : '';\n}\n\nexport function getDisplayValue(value: string, maxPlaceholderLength: number): string {\n if (value && maxPlaceholderLength > 0 && value.length > maxPlaceholderLength) {\n return value.substring(0, maxPlaceholderLength) + '...';\n }\n return value;\n}\n\nexport function setSlottedElementValue(shadowRoot: ShadowRoot | null | undefined, value: string): void {\n const slottedElement = getSlottedElement(shadowRoot);\n if (slottedElement && value) {\n (slottedElement as any).value = value;\n }\n}\n\nexport function updateSlottedElementValue(\n updateComplete: Promise<boolean> | Promise<void>,\n shadowRoot: ShadowRoot | null | undefined,\n value: string\n): void {\n updateComplete.then(() => {\n setSlottedElementValue(shadowRoot, value);\n });\n}\n\nexport function updateValueFromSlottedElement(\n shadowRoot: ShadowRoot | null | undefined,\n currentValue: string\n): string {\n const newValue = getValueFromSlottedElement(shadowRoot);\n return newValue !== currentValue ? newValue : currentValue;\n}\n\nexport function handleDocumentFocusIn(\n event: FocusEvent,\n component: HTMLElement,\n isOpen: boolean\n): { shouldClose: boolean; newValue: string | null } {\n if (!isOpen) return { shouldClose: false, newValue: null };\n \n const path = event.composedPath();\n const isWithinComponent = path.includes(component);\n \n if (!isWithinComponent) {\n const shadowRoot = (component as any).shadowRoot;\n const currentValue = (component as any).value || '';\n const newValue = updateValueFromSlottedElement(shadowRoot, currentValue);\n return { shouldClose: true, newValue };\n }\n \n return { shouldClose: false, newValue: null };\n}\n\nexport function handleDocumentMouseDown(\n event: MouseEvent,\n component: HTMLElement,\n isOpen: boolean\n): { shouldClose: boolean; newValue: string | null } {\n if (!isOpen) return { shouldClose: false, newValue: null };\n \n const path = event.composedPath();\n const isWithinComponent = path.includes(component);\n \n if (!isWithinComponent) {\n const shadowRoot = (component as any).shadowRoot;\n const currentValue = (component as any).value || '';\n const newValue = updateValueFromSlottedElement(shadowRoot, currentValue);\n return { shouldClose: true, newValue };\n }\n \n return { shouldClose: false, newValue: null };\n}\n\n"]}
@@ -26,10 +26,18 @@ export declare class NileInlineEdit extends NileElement {
26
26
  open: boolean;
27
27
  /** Gives the Value to the Inline Edit */
28
28
  value: string;
29
+ /** Maximum length for the placeholder value. Values longer than this will be truncated */
30
+ maxPlaceholderLength: number;
29
31
  /**
30
32
  * Render method
31
33
  * @slot This is a slot test
32
34
  */
35
+ private handleCloseResult;
36
+ private handleDocumentFocusInWrapper;
37
+ private handleDocumentMouseDownWrapper;
38
+ connectedCallback(): void;
39
+ updated(changedProperties: Map<string, unknown>): void;
40
+ disconnectedCallback(): void;
33
41
  private handleClick;
34
42
  render(): TemplateResult;
35
43
  }
@@ -9,6 +9,7 @@ import { html, } from 'lit';
9
9
  import { customElement, property } from 'lit/decorators.js';
10
10
  import { styles } from './nile-inline-edit.css';
11
11
  import NileElement from '../internal/nile-element';
12
+ import { getDisplayValue, updateSlottedElementValue, handleDocumentFocusIn, handleDocumentMouseDown, } from './nile-inline-edit-utils';
12
13
  /**
13
14
  * Nile inline-edit component.
14
15
  *
@@ -26,6 +27,16 @@ let NileInlineEdit = class NileInlineEdit extends NileElement {
26
27
  this.open = false;
27
28
  /** Gives the Value to the Inline Edit */
28
29
  this.value = '';
30
+ /** Maximum length for the placeholder value. Values longer than this will be truncated */
31
+ this.maxPlaceholderLength = 25;
32
+ this.handleDocumentFocusInWrapper = (event) => {
33
+ const result = handleDocumentFocusIn(event, this, this.open);
34
+ this.handleCloseResult(result);
35
+ };
36
+ this.handleDocumentMouseDownWrapper = (event) => {
37
+ const result = handleDocumentMouseDown(event, this, this.open);
38
+ this.handleCloseResult(result);
39
+ };
29
40
  /* #endregion */
30
41
  }
31
42
  /**
@@ -41,11 +52,43 @@ let NileInlineEdit = class NileInlineEdit extends NileElement {
41
52
  * Render method
42
53
  * @slot This is a slot test
43
54
  */
55
+ handleCloseResult(result) {
56
+ if (result.shouldClose) {
57
+ if (result.newValue !== null) {
58
+ this.value = result.newValue;
59
+ }
60
+ this.open = false;
61
+ }
62
+ }
63
+ connectedCallback() {
64
+ super.connectedCallback();
65
+ }
66
+ updated(changedProperties) {
67
+ super.updated(changedProperties);
68
+ if (changedProperties.has('open')) {
69
+ if (this.open) {
70
+ updateSlottedElementValue(this.updateComplete, this.shadowRoot, this.value);
71
+ document.addEventListener('focusin', this.handleDocumentFocusInWrapper, true);
72
+ document.addEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);
73
+ }
74
+ else {
75
+ document.removeEventListener('focusin', this.handleDocumentFocusInWrapper, true);
76
+ document.removeEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);
77
+ }
78
+ }
79
+ }
80
+ disconnectedCallback() {
81
+ super.disconnectedCallback();
82
+ document.removeEventListener('focusin', this.handleDocumentFocusInWrapper, true);
83
+ document.removeEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);
84
+ }
44
85
  handleClick() {
45
86
  this.open = true;
46
87
  }
47
88
  render() {
48
- const textInsideContainer = this.value || this.placeholder;
89
+ // Use truncated value for display, or placeholder if empty
90
+ const displayValue = getDisplayValue(this.value, this.maxPlaceholderLength);
91
+ const textInsideContainer = displayValue || this.placeholder;
49
92
  return html `
50
93
  <div class="inline__edit--label" part="label">${this.label}</div>
51
94
  ${this.open
@@ -68,6 +111,9 @@ __decorate([
68
111
  __decorate([
69
112
  property({ type: String, reflect: true })
70
113
  ], NileInlineEdit.prototype, "value", void 0);
114
+ __decorate([
115
+ property({ type: Number, attribute: 'max-placeholder-length' })
116
+ ], NileInlineEdit.prototype, "maxPlaceholderLength", void 0);
71
117
  NileInlineEdit = __decorate([
72
118
  customElement('nile-inline-edit')
73
119
  ], NileInlineEdit);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-inline-edit.js","sourceRoot":"","sources":["../../../src/nile-inline-edit/nile-inline-edit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAEL,IAAI,GAGL,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,WAAW;IAAxC;;QASL,yCAAyC;QACE,UAAK,GAAG,EAAE,CAAC;QAEtD,+CAA+C;QACJ,gBAAW,GAAG,EAAE,CAAC;QAE5D,2DAA2D;QACf,SAAI,GAAG,KAAK,CAAC;QAEzD,yCAAyC;QACE,UAAK,GAAG,EAAE,CAAC;QA0BtD,gBAAgB;IAClB,CAAC;IA7CC;;;OAGG;IACI,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAcD,gBAAgB;IAEhB,qBAAqB;IAErB;;;OAGG;IAEK,WAAW;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IACM,MAAM;QACX,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,CAAC;QAC3D,OAAO,IAAI,CAAA;sDACuC,IAAI,CAAC,KAAK;QACxD,IAAI,CAAC,IAAI;YACT,CAAC,CAAC,IAAI,CAAA,mEAAmE;YACzE,CAAC,CAAC,IAAI,CAAA,iEAAiE,IAAI,CAAC,WAAW;cACjF,mBAAmB;iBAChB;KACZ,CAAC;IACJ,CAAC;CAGF,CAAA;AApC4C;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAY;AAGX;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAkB;AAGhB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAc;AAGd;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAY;AAnB3C,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA8C1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-inline-edit.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile inline-edit component.\n *\n * @tag nile-inline-edit\n *\n */\n@customElement('nile-inline-edit')\nexport class NileInlineEdit extends NileElement {\n /**\n * The styles for nile-inline-edit\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 /** Gives the label to the Inline Edit */\n @property({ type: String, reflect: true }) label = '';\n\n /** Gives the Placeholder to the Inline Edit */\n @property({ type: String, reflect: true }) placeholder = '';\n\n /** Open prop for displaying default slot in Inline Edit */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Gives the Value to the Inline Edit */\n @property({ type: String, reflect: true }) value = '';\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n\n private handleClick() {\n this.open = true;\n }\n public render(): TemplateResult {\n const textInsideContainer = this.value || this.placeholder;\n return html`\n <div class=\"inline__edit--label\" part=\"label\">${this.label}</div>\n ${this.open\n ? html` <slot class=\"inline__edit--open--container\" part=\"base\"> </slot>`\n : html` <div class=\"inline__edit--container\" part=\"container\" @click=${this.handleClick}>\n ${textInsideContainer}\n </div>`}\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileInlineEdit;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inline-edit': NileInlineEdit;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-inline-edit.js","sourceRoot":"","sources":["../../../src/nile-inline-edit/nile-inline-edit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAEL,IAAI,GAGL,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEL,eAAe,EAEf,yBAAyB,EAEzB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC;;;;;GAKG;AAEI,IAAM,cAAc,GA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AI,CAAA,mEAAmE;YACzE,CAAC,CAAC,IAAI,CAAA,iEAAiE,IAAI,CAAC,WAAW;cACjF,mBAAmB;iBAChB;KACZ,CAAC;IACJ,CAAC;CAGF,CAAA;AArF4C;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAY;AAGX;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAkB;AAGhB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAc;AAGd;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAAY;AAGW;IAAhE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC;4DAAmC;AAtBxF,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA+F1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-inline-edit.css';\nimport NileElement from '../internal/nile-element';\nimport {\n getValueFromSlottedElement,\n getDisplayValue,\n setSlottedElementValue,\n updateSlottedElementValue,\n updateValueFromSlottedElement,\n handleDocumentFocusIn,\n handleDocumentMouseDown,\n} from './nile-inline-edit-utils';\n\n/**\n * Nile inline-edit component.\n *\n * @tag nile-inline-edit\n *\n */\n@customElement('nile-inline-edit')\nexport class NileInlineEdit extends NileElement {\n /**\n * The styles for nile-inline-edit\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 /** Gives the label to the Inline Edit */\n @property({ type: String, reflect: true }) label = '';\n\n /** Gives the Placeholder to the Inline Edit */\n @property({ type: String, reflect: true }) placeholder = '';\n\n /** Open prop for displaying default slot in Inline Edit */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Gives the Value to the Inline Edit */\n @property({ type: String, reflect: true }) value = '';\n\n /** Maximum length for the placeholder value. Values longer than this will be truncated */\n @property({ type: Number, attribute: 'max-placeholder-length' }) maxPlaceholderLength: number = 25;\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n\n private handleCloseResult(result: { shouldClose: boolean; newValue: string | null }) {\n if (result.shouldClose) {\n if (result.newValue !== null) {\n this.value = result.newValue;\n }\n this.open = false;\n }\n }\n\n private handleDocumentFocusInWrapper = (event: FocusEvent) => {\n const result = handleDocumentFocusIn(event, this, this.open);\n this.handleCloseResult(result);\n };\n\n private handleDocumentMouseDownWrapper = (event: MouseEvent) => {\n const result = handleDocumentMouseDown(event, this, this.open);\n this.handleCloseResult(result);\n };\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n updated(changedProperties: Map<string, unknown>) {\n super.updated(changedProperties);\n \n if (changedProperties.has('open')) {\n if (this.open) {\n updateSlottedElementValue(this.updateComplete, this.shadowRoot, this.value);\n document.addEventListener('focusin', this.handleDocumentFocusInWrapper, true);\n document.addEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);\n } else {\n document.removeEventListener('focusin', this.handleDocumentFocusInWrapper, true);\n document.removeEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);\n }\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('focusin', this.handleDocumentFocusInWrapper, true);\n document.removeEventListener('mousedown', this.handleDocumentMouseDownWrapper, true);\n }\n\n private handleClick() {\n this.open = true;\n }\n public render(): TemplateResult {\n // Use truncated value for display, or placeholder if empty\n const displayValue = getDisplayValue(this.value, this.maxPlaceholderLength);\n const textInsideContainer = displayValue || this.placeholder;\n return html`\n <div class=\"inline__edit--label\" part=\"label\">${this.label}</div>\n ${this.open\n ? html` <slot class=\"inline__edit--open--container\" part=\"base\"> </slot>`\n : html` <div class=\"inline__edit--container\" part=\"container\" @click=${this.handleClick}>\n ${textInsideContainer}\n </div>`}\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileInlineEdit;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inline-edit': NileInlineEdit;\n }\n}\n"]}
@@ -48,8 +48,8 @@ export const styles = css `
48
48
  flex-direction: column;
49
49
  gap: var(--nile-spacing-xs);
50
50
  padding-right: var(--nile-spacing-xl);
51
- padding-top: var(--nile-spacing-3xl);
52
- padding-bottom: var(--nile-spacing-3xl);
51
+ padding-top: var(--nile-spacing-2xl);
52
+ padding-bottom: var(--nile-spacing-2xl);
53
53
  }
54
54
 
55
55
  nile-side-bar-action-menu {
@@ -1 +1 @@
1
- {"version":3,"file":"nile-inline-sidebar.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar/nile-inline-sidebar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FxB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n height: 100%;\n }\n .sidebar {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: white;\n border-right: 1px solid var(--nile-colors-neutral-400);\n transition: width 0.3s ease;\n position: relative;\n }\n .toggle-btn {\n position: absolute;\n top: var(--nile-spacing-2xl);\n right: -14px;\n z-index: 10;\n }\n\n nile-button.toggle-btn::part(base) {\n width: 30px;\n height: 30px;\n }\n :host(:not([collapsed])) .sidebar {\n width: 216px;\n }\n :host([collapsed]) .sidebar {\n width: 0px;\n }\n :host([collapsed]) .sidebar-nav {\n display: none;\n }\n .sidebar-header {\n display: flex;\n justify-content: flex-end;\n }\n .sidebar-nav {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xs);\n padding-right: var(--nile-spacing-xl);\n padding-top: var(--nile-spacing-3xl);\n padding-bottom: var(--nile-spacing-3xl);\n }\n\n nile-side-bar-action-menu {\n width: fit-content;\n max-width: 400px;\n min-width: 200px;\n }\n\n nile-side-bar-action-menu::part(menu__items-wrapper) {\n width: 100%;\n max-width: 400px;\n padding-top: var(--nile-spacing-lg);\n padding-bottom: var(--nile-spacing-lg);\n }\n\n nile-side-bar-action-menu-item::part(base) {\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n border-radius: 0;\n }\n\n nile-side-bar-action-menu-item::part(label) {\n display: block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* Transition for sidebar button when it is closed and opened */\n nile-side-bar-action::part(panel),\n nile-side-bar-action-menu {\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s ease-in;\n transition-delay: 50ms;\n }\n\n nile-side-bar-action:hover::part(panel),\n nile-side-bar-action:hover nile-side-bar-action-menu {\n opacity: 1;\n pointer-events: auto;\n transition-delay: 0ms;\n }\n`;\n"]}
1
+ {"version":3,"file":"nile-inline-sidebar.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar/nile-inline-sidebar.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FxB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n height: 100%;\n }\n .sidebar {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: white;\n border-right: 1px solid var(--nile-colors-neutral-400);\n transition: width 0.3s ease;\n position: relative;\n }\n .toggle-btn {\n position: absolute;\n top: var(--nile-spacing-2xl);\n right: -14px;\n z-index: 10;\n }\n\n nile-button.toggle-btn::part(base) {\n width: 30px;\n height: 30px;\n }\n :host(:not([collapsed])) .sidebar {\n width: 216px;\n }\n :host([collapsed]) .sidebar {\n width: 0px;\n }\n :host([collapsed]) .sidebar-nav {\n display: none;\n }\n .sidebar-header {\n display: flex;\n justify-content: flex-end;\n }\n .sidebar-nav {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xs);\n padding-right: var(--nile-spacing-xl);\n padding-top: var(--nile-spacing-2xl);\n padding-bottom: var(--nile-spacing-2xl);\n }\n\n nile-side-bar-action-menu {\n width: fit-content;\n max-width: 400px;\n min-width: 200px;\n }\n\n nile-side-bar-action-menu::part(menu__items-wrapper) {\n width: 100%;\n max-width: 400px;\n padding-top: var(--nile-spacing-lg);\n padding-bottom: var(--nile-spacing-lg);\n }\n\n nile-side-bar-action-menu-item::part(base) {\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n border-radius: 0;\n }\n\n nile-side-bar-action-menu-item::part(label) {\n display: block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* Transition for sidebar button when it is closed and opened */\n nile-side-bar-action::part(panel),\n nile-side-bar-action-menu {\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s ease-in;\n transition-delay: 50ms;\n }\n\n nile-side-bar-action:hover::part(panel),\n nile-side-bar-action:hover nile-side-bar-action-menu {\n opacity: 1;\n pointer-events: auto;\n transition-delay: 0ms;\n }\n`;\n"]}