@nu-grid/nuxt 0.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 (348) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +261 -0
  3. package/dist/module.d.mts +13 -0
  4. package/dist/module.json +9 -0
  5. package/dist/module.mjs +52 -0
  6. package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.d.vue.ts +12 -0
  7. package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.vue +123 -0
  8. package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.vue.d.ts +12 -0
  9. package/dist/runtime/cell-types/action-menu/index.d.ts +8 -0
  10. package/dist/runtime/cell-types/action-menu/index.js +28 -0
  11. package/dist/runtime/cell-types/boolean/BooleanEditor.d.vue.ts +15 -0
  12. package/dist/runtime/cell-types/boolean/BooleanEditor.vue +32 -0
  13. package/dist/runtime/cell-types/boolean/BooleanEditor.vue.d.ts +15 -0
  14. package/dist/runtime/cell-types/boolean/BooleanFilter.d.vue.ts +7 -0
  15. package/dist/runtime/cell-types/boolean/BooleanFilter.vue +42 -0
  16. package/dist/runtime/cell-types/boolean/BooleanFilter.vue.d.ts +7 -0
  17. package/dist/runtime/cell-types/boolean/BooleanRenderer.d.vue.ts +13 -0
  18. package/dist/runtime/cell-types/boolean/BooleanRenderer.vue +23 -0
  19. package/dist/runtime/cell-types/boolean/BooleanRenderer.vue.d.ts +13 -0
  20. package/dist/runtime/cell-types/boolean/index.d.ts +8 -0
  21. package/dist/runtime/cell-types/boolean/index.js +31 -0
  22. package/dist/runtime/cell-types/currency/CurrencyEditor.d.vue.ts +15 -0
  23. package/dist/runtime/cell-types/currency/CurrencyEditor.vue +40 -0
  24. package/dist/runtime/cell-types/currency/CurrencyEditor.vue.d.ts +15 -0
  25. package/dist/runtime/cell-types/currency/CurrencyFilter.d.vue.ts +7 -0
  26. package/dist/runtime/cell-types/currency/CurrencyFilter.vue +76 -0
  27. package/dist/runtime/cell-types/currency/CurrencyFilter.vue.d.ts +7 -0
  28. package/dist/runtime/cell-types/currency/index.d.ts +6 -0
  29. package/dist/runtime/cell-types/currency/index.js +42 -0
  30. package/dist/runtime/cell-types/date/DateEditor.d.vue.ts +15 -0
  31. package/dist/runtime/cell-types/date/DateEditor.vue +42 -0
  32. package/dist/runtime/cell-types/date/DateEditor.vue.d.ts +15 -0
  33. package/dist/runtime/cell-types/date/DateFilter.d.vue.ts +7 -0
  34. package/dist/runtime/cell-types/date/DateFilter.vue +58 -0
  35. package/dist/runtime/cell-types/date/DateFilter.vue.d.ts +7 -0
  36. package/dist/runtime/cell-types/date/index.d.ts +6 -0
  37. package/dist/runtime/cell-types/date/index.js +13 -0
  38. package/dist/runtime/cell-types/index.d.ts +17 -0
  39. package/dist/runtime/cell-types/index.js +34 -0
  40. package/dist/runtime/cell-types/lookup/LookupEditor.d.vue.ts +15 -0
  41. package/dist/runtime/cell-types/lookup/LookupEditor.vue +291 -0
  42. package/dist/runtime/cell-types/lookup/LookupEditor.vue.d.ts +15 -0
  43. package/dist/runtime/cell-types/lookup/LookupRenderer.d.vue.ts +8 -0
  44. package/dist/runtime/cell-types/lookup/LookupRenderer.vue +43 -0
  45. package/dist/runtime/cell-types/lookup/LookupRenderer.vue.d.ts +8 -0
  46. package/dist/runtime/cell-types/lookup/index.d.ts +36 -0
  47. package/dist/runtime/cell-types/lookup/index.js +50 -0
  48. package/dist/runtime/cell-types/number/NumberEditor.d.vue.ts +15 -0
  49. package/dist/runtime/cell-types/number/NumberEditor.vue +34 -0
  50. package/dist/runtime/cell-types/number/NumberEditor.vue.d.ts +15 -0
  51. package/dist/runtime/cell-types/number/NumberFilter.d.vue.ts +7 -0
  52. package/dist/runtime/cell-types/number/NumberFilter.vue +66 -0
  53. package/dist/runtime/cell-types/number/NumberFilter.vue.d.ts +7 -0
  54. package/dist/runtime/cell-types/number/index.d.ts +6 -0
  55. package/dist/runtime/cell-types/number/index.js +13 -0
  56. package/dist/runtime/cell-types/rating/RatingEditor.d.vue.ts +15 -0
  57. package/dist/runtime/cell-types/rating/RatingEditor.vue +219 -0
  58. package/dist/runtime/cell-types/rating/RatingEditor.vue.d.ts +15 -0
  59. package/dist/runtime/cell-types/rating/RatingFilter.d.vue.ts +7 -0
  60. package/dist/runtime/cell-types/rating/RatingFilter.vue +74 -0
  61. package/dist/runtime/cell-types/rating/RatingFilter.vue.d.ts +7 -0
  62. package/dist/runtime/cell-types/rating/RatingRenderer.d.vue.ts +10 -0
  63. package/dist/runtime/cell-types/rating/RatingRenderer.vue +75 -0
  64. package/dist/runtime/cell-types/rating/RatingRenderer.vue.d.ts +10 -0
  65. package/dist/runtime/cell-types/rating/index.d.ts +6 -0
  66. package/dist/runtime/cell-types/rating/index.js +67 -0
  67. package/dist/runtime/cell-types/selection/SelectionEditor.d.vue.ts +15 -0
  68. package/dist/runtime/cell-types/selection/SelectionEditor.vue +42 -0
  69. package/dist/runtime/cell-types/selection/SelectionEditor.vue.d.ts +15 -0
  70. package/dist/runtime/cell-types/selection/SelectionRenderer.d.vue.ts +14 -0
  71. package/dist/runtime/cell-types/selection/SelectionRenderer.vue +25 -0
  72. package/dist/runtime/cell-types/selection/SelectionRenderer.vue.d.ts +14 -0
  73. package/dist/runtime/cell-types/selection/index.d.ts +8 -0
  74. package/dist/runtime/cell-types/selection/index.js +36 -0
  75. package/dist/runtime/cell-types/text/TextEditor.d.vue.ts +15 -0
  76. package/dist/runtime/cell-types/text/TextEditor.vue +70 -0
  77. package/dist/runtime/cell-types/text/TextEditor.vue.d.ts +15 -0
  78. package/dist/runtime/cell-types/text/TextFilter.d.vue.ts +7 -0
  79. package/dist/runtime/cell-types/text/TextFilter.vue +50 -0
  80. package/dist/runtime/cell-types/text/TextFilter.vue.d.ts +7 -0
  81. package/dist/runtime/cell-types/text/TextareaEditor.d.vue.ts +15 -0
  82. package/dist/runtime/cell-types/text/TextareaEditor.vue +100 -0
  83. package/dist/runtime/cell-types/text/TextareaEditor.vue.d.ts +15 -0
  84. package/dist/runtime/cell-types/text/index.d.ts +10 -0
  85. package/dist/runtime/cell-types/text/index.js +16 -0
  86. package/dist/runtime/cell-types/text/textarea.d.ts +13 -0
  87. package/dist/runtime/cell-types/text/textarea.js +13 -0
  88. package/dist/runtime/components/NuGrid.d.vue.ts +96 -0
  89. package/dist/runtime/components/NuGrid.vue +651 -0
  90. package/dist/runtime/components/NuGrid.vue.d.ts +96 -0
  91. package/dist/runtime/components/NuGridCellCheckbox.d.vue.ts +24 -0
  92. package/dist/runtime/components/NuGridCellCheckbox.vue +105 -0
  93. package/dist/runtime/components/NuGridCellCheckbox.vue.d.ts +24 -0
  94. package/dist/runtime/components/NuGridGroup.d.vue.ts +20 -0
  95. package/dist/runtime/components/NuGridGroup.vue +650 -0
  96. package/dist/runtime/components/NuGridGroup.vue.d.ts +20 -0
  97. package/dist/runtime/components/NuGridLazyCell.d.vue.ts +62 -0
  98. package/dist/runtime/components/NuGridLazyCell.vue +133 -0
  99. package/dist/runtime/components/NuGridLazyCell.vue.d.ts +62 -0
  100. package/dist/runtime/components/_internal/NuGridAddRow.d.vue.ts +36 -0
  101. package/dist/runtime/components/_internal/NuGridAddRow.vue +144 -0
  102. package/dist/runtime/components/_internal/NuGridAddRow.vue.d.ts +36 -0
  103. package/dist/runtime/components/_internal/NuGridBase.d.vue.ts +20 -0
  104. package/dist/runtime/components/_internal/NuGridBase.vue +1172 -0
  105. package/dist/runtime/components/_internal/NuGridBase.vue.d.ts +20 -0
  106. package/dist/runtime/components/_internal/NuGridCellContent.d.vue.ts +9 -0
  107. package/dist/runtime/components/_internal/NuGridCellContent.vue +202 -0
  108. package/dist/runtime/components/_internal/NuGridCellContent.vue.d.ts +9 -0
  109. package/dist/runtime/components/_internal/NuGridColumnMenu.d.vue.ts +25 -0
  110. package/dist/runtime/components/_internal/NuGridColumnMenu.vue +391 -0
  111. package/dist/runtime/components/_internal/NuGridColumnMenu.vue.d.ts +25 -0
  112. package/dist/runtime/components/_internal/NuGridGroup.d.vue.ts +20 -0
  113. package/dist/runtime/components/_internal/NuGridGroup.vue +650 -0
  114. package/dist/runtime/components/_internal/NuGridGroup.vue.d.ts +20 -0
  115. package/dist/runtime/components/_internal/NuGridGroupCheckbox.d.vue.ts +22 -0
  116. package/dist/runtime/components/_internal/NuGridGroupCheckbox.vue +132 -0
  117. package/dist/runtime/components/_internal/NuGridGroupCheckbox.vue.d.ts +22 -0
  118. package/dist/runtime/components/_internal/NuGridHeaderSortButton.d.vue.ts +31 -0
  119. package/dist/runtime/components/_internal/NuGridHeaderSortButton.vue +61 -0
  120. package/dist/runtime/components/_internal/NuGridHeaderSortButton.vue.d.ts +31 -0
  121. package/dist/runtime/components/_internal/NuGridPaging.d.vue.ts +3 -0
  122. package/dist/runtime/components/_internal/NuGridPaging.vue +65 -0
  123. package/dist/runtime/components/_internal/NuGridPaging.vue.d.ts +3 -0
  124. package/dist/runtime/components/_internal/NuGridRow.d.vue.ts +40 -0
  125. package/dist/runtime/components/_internal/NuGridRow.vue +645 -0
  126. package/dist/runtime/components/_internal/NuGridRow.vue.d.ts +40 -0
  127. package/dist/runtime/components/_internal/NuGridSplitGroup.d.vue.ts +20 -0
  128. package/dist/runtime/components/_internal/NuGridSplitGroup.vue +735 -0
  129. package/dist/runtime/components/_internal/NuGridSplitGroup.vue.d.ts +20 -0
  130. package/dist/runtime/components/_internal/NuGridTooltip.d.vue.ts +3 -0
  131. package/dist/runtime/components/_internal/NuGridTooltip.vue +36 -0
  132. package/dist/runtime/components/_internal/NuGridTooltip.vue.d.ts +3 -0
  133. package/dist/runtime/composables/_internal/index.d.ts +31 -0
  134. package/dist/runtime/composables/_internal/index.js +28 -0
  135. package/dist/runtime/composables/_internal/keyboard-handlers/index.d.ts +5 -0
  136. package/dist/runtime/composables/_internal/keyboard-handlers/index.js +9 -0
  137. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardCellTypeDispatch.d.ts +18 -0
  138. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardCellTypeDispatch.js +53 -0
  139. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardEditingTriggers.d.ts +12 -0
  140. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardEditingTriggers.js +53 -0
  141. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardNavigation.d.ts +9 -0
  142. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardNavigation.js +35 -0
  143. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardSetup.d.ts +33 -0
  144. package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardSetup.js +111 -0
  145. package/dist/runtime/composables/_internal/keyboard-handlers/usePagingKeyboard.d.ts +11 -0
  146. package/dist/runtime/composables/_internal/keyboard-handlers/usePagingKeyboard.js +67 -0
  147. package/dist/runtime/composables/_internal/useNuGridActionMenu.d.ts +15 -0
  148. package/dist/runtime/composables/_internal/useNuGridActionMenu.js +137 -0
  149. package/dist/runtime/composables/_internal/useNuGridAddRow.d.ts +39 -0
  150. package/dist/runtime/composables/_internal/useNuGridAddRow.js +735 -0
  151. package/dist/runtime/composables/_internal/useNuGridAnimation.d.ts +33 -0
  152. package/dist/runtime/composables/_internal/useNuGridAnimation.js +178 -0
  153. package/dist/runtime/composables/_internal/useNuGridAutosize.d.ts +14 -0
  154. package/dist/runtime/composables/_internal/useNuGridAutosize.js +161 -0
  155. package/dist/runtime/composables/_internal/useNuGridCellEditing.d.ts +15 -0
  156. package/dist/runtime/composables/_internal/useNuGridCellEditing.js +1243 -0
  157. package/dist/runtime/composables/_internal/useNuGridColumnDragDrop.d.ts +8 -0
  158. package/dist/runtime/composables/_internal/useNuGridColumnDragDrop.js +148 -0
  159. package/dist/runtime/composables/_internal/useNuGridColumnPinning.d.ts +15 -0
  160. package/dist/runtime/composables/_internal/useNuGridColumnPinning.js +44 -0
  161. package/dist/runtime/composables/_internal/useNuGridColumnResize.d.ts +22 -0
  162. package/dist/runtime/composables/_internal/useNuGridColumnResize.js +427 -0
  163. package/dist/runtime/composables/_internal/useNuGridCore.d.ts +62 -0
  164. package/dist/runtime/composables/_internal/useNuGridCore.js +359 -0
  165. package/dist/runtime/composables/_internal/useNuGridExcel.d.ts +60 -0
  166. package/dist/runtime/composables/_internal/useNuGridExcel.js +35 -0
  167. package/dist/runtime/composables/_internal/useNuGridFocus.d.ts +15 -0
  168. package/dist/runtime/composables/_internal/useNuGridFocus.js +1378 -0
  169. package/dist/runtime/composables/_internal/useNuGridGroupSelection.d.ts +13 -0
  170. package/dist/runtime/composables/_internal/useNuGridGroupSelection.js +38 -0
  171. package/dist/runtime/composables/_internal/useNuGridGrouping.d.ts +28 -0
  172. package/dist/runtime/composables/_internal/useNuGridGrouping.js +211 -0
  173. package/dist/runtime/composables/_internal/useNuGridInteractionRouter.d.ts +9 -0
  174. package/dist/runtime/composables/_internal/useNuGridInteractionRouter.js +441 -0
  175. package/dist/runtime/composables/_internal/useNuGridInteractions.d.ts +10 -0
  176. package/dist/runtime/composables/_internal/useNuGridInteractions.js +36 -0
  177. package/dist/runtime/composables/_internal/useNuGridKeyboardNavigation.d.ts +54 -0
  178. package/dist/runtime/composables/_internal/useNuGridKeyboardNavigation.js +407 -0
  179. package/dist/runtime/composables/_internal/useNuGridPaging.d.ts +76 -0
  180. package/dist/runtime/composables/_internal/useNuGridPaging.js +147 -0
  181. package/dist/runtime/composables/_internal/useNuGridRowDragDrop.d.ts +68 -0
  182. package/dist/runtime/composables/_internal/useNuGridRowDragDrop.js +295 -0
  183. package/dist/runtime/composables/_internal/useNuGridRowSelection.d.ts +14 -0
  184. package/dist/runtime/composables/_internal/useNuGridRowSelection.js +214 -0
  185. package/dist/runtime/composables/_internal/useNuGridScroll.d.ts +110 -0
  186. package/dist/runtime/composables/_internal/useNuGridScroll.js +463 -0
  187. package/dist/runtime/composables/_internal/useNuGridScrollState.d.ts +32 -0
  188. package/dist/runtime/composables/_internal/useNuGridScrollState.js +60 -0
  189. package/dist/runtime/composables/_internal/useNuGridScrollbars.d.ts +24 -0
  190. package/dist/runtime/composables/_internal/useNuGridScrollbars.js +69 -0
  191. package/dist/runtime/composables/_internal/useNuGridStatePersistence.d.ts +27 -0
  192. package/dist/runtime/composables/_internal/useNuGridStatePersistence.js +243 -0
  193. package/dist/runtime/composables/_internal/useNuGridTooltip.d.ts +41 -0
  194. package/dist/runtime/composables/_internal/useNuGridTooltip.js +304 -0
  195. package/dist/runtime/composables/_internal/useNuGridUI.d.ts +3283 -0
  196. package/dist/runtime/composables/_internal/useNuGridUI.js +58 -0
  197. package/dist/runtime/composables/_internal/useNuGridVirtualization.d.ts +75 -0
  198. package/dist/runtime/composables/_internal/useNuGridVirtualization.js +534 -0
  199. package/dist/runtime/composables/_internal/useNuGridWheelSmoothing.d.ts +25 -0
  200. package/dist/runtime/composables/_internal/useNuGridWheelSmoothing.js +157 -0
  201. package/dist/runtime/composables/index.d.ts +3 -0
  202. package/dist/runtime/composables/index.js +2 -0
  203. package/dist/runtime/composables/useNuGridCellEditor.d.ts +91 -0
  204. package/dist/runtime/composables/useNuGridCellEditor.js +82 -0
  205. package/dist/runtime/composables/useNuGridCellTypeRegistry.d.ts +85 -0
  206. package/dist/runtime/composables/useNuGridCellTypeRegistry.js +202 -0
  207. package/dist/runtime/config/_internal/index.d.ts +5 -0
  208. package/dist/runtime/config/_internal/index.js +2 -0
  209. package/dist/runtime/config/_internal/options-defaults.d.ts +121 -0
  210. package/dist/runtime/config/_internal/options-defaults.js +121 -0
  211. package/dist/runtime/config/_internal/prop-utils.d.ts +54 -0
  212. package/dist/runtime/config/_internal/prop-utils.js +21 -0
  213. package/dist/runtime/config/config.d.ts +44 -0
  214. package/dist/runtime/config/config.js +18 -0
  215. package/dist/runtime/config/index.d.ts +2 -0
  216. package/dist/runtime/config/index.js +2 -0
  217. package/dist/runtime/config/presets.d.ts +15 -0
  218. package/dist/runtime/config/presets.js +58 -0
  219. package/dist/runtime/index.css +1 -0
  220. package/dist/runtime/index.d.ts +1 -0
  221. package/dist/runtime/index.js +1 -0
  222. package/dist/runtime/plugin.d.ts +5 -0
  223. package/dist/runtime/plugin.js +10 -0
  224. package/dist/runtime/themes/index.d.ts +56 -0
  225. package/dist/runtime/themes/index.js +68 -0
  226. package/dist/runtime/themes/nuGridTheme.d.ts +329 -0
  227. package/dist/runtime/themes/nuGridTheme.js +236 -0
  228. package/dist/runtime/themes/nuGridThemeCompact.d.ts +331 -0
  229. package/dist/runtime/themes/nuGridThemeCompact.js +236 -0
  230. package/dist/runtime/types/_internal/action-menu.d.ts +55 -0
  231. package/dist/runtime/types/_internal/action-menu.js +0 -0
  232. package/dist/runtime/types/_internal/cell-editing.d.ts +75 -0
  233. package/dist/runtime/types/_internal/cell-editing.js +0 -0
  234. package/dist/runtime/types/_internal/composable-returns.d.ts +52 -0
  235. package/dist/runtime/types/_internal/composable-returns.js +0 -0
  236. package/dist/runtime/types/_internal/config.d.ts +16 -0
  237. package/dist/runtime/types/_internal/config.js +0 -0
  238. package/dist/runtime/types/_internal/contexts/add-row.d.ts +25 -0
  239. package/dist/runtime/types/_internal/contexts/add-row.js +0 -0
  240. package/dist/runtime/types/_internal/contexts/animation.d.ts +24 -0
  241. package/dist/runtime/types/_internal/contexts/animation.js +0 -0
  242. package/dist/runtime/types/_internal/contexts/core.d.ts +24 -0
  243. package/dist/runtime/types/_internal/contexts/core.js +0 -0
  244. package/dist/runtime/types/_internal/contexts/drag.d.ts +13 -0
  245. package/dist/runtime/types/_internal/contexts/drag.js +0 -0
  246. package/dist/runtime/types/_internal/contexts/focus.d.ts +11 -0
  247. package/dist/runtime/types/_internal/contexts/focus.js +0 -0
  248. package/dist/runtime/types/_internal/contexts/grouping.d.ts +9 -0
  249. package/dist/runtime/types/_internal/contexts/grouping.js +0 -0
  250. package/dist/runtime/types/_internal/contexts/index.d.ts +15 -0
  251. package/dist/runtime/types/_internal/contexts/index.js +0 -0
  252. package/dist/runtime/types/_internal/contexts/interaction-router.d.ts +5 -0
  253. package/dist/runtime/types/_internal/contexts/interaction-router.js +0 -0
  254. package/dist/runtime/types/_internal/contexts/multi-row.d.ts +40 -0
  255. package/dist/runtime/types/_internal/contexts/multi-row.js +0 -0
  256. package/dist/runtime/types/_internal/contexts/paging.d.ts +39 -0
  257. package/dist/runtime/types/_internal/contexts/paging.js +0 -0
  258. package/dist/runtime/types/_internal/contexts/performance.d.ts +15 -0
  259. package/dist/runtime/types/_internal/contexts/performance.js +0 -0
  260. package/dist/runtime/types/_internal/contexts/resize.d.ts +12 -0
  261. package/dist/runtime/types/_internal/contexts/resize.js +0 -0
  262. package/dist/runtime/types/_internal/contexts/row-interactions.d.ts +12 -0
  263. package/dist/runtime/types/_internal/contexts/row-interactions.js +0 -0
  264. package/dist/runtime/types/_internal/contexts/scroll-state.d.ts +21 -0
  265. package/dist/runtime/types/_internal/contexts/scroll-state.js +0 -0
  266. package/dist/runtime/types/_internal/contexts/ui-config.d.ts +21 -0
  267. package/dist/runtime/types/_internal/contexts/ui-config.js +0 -0
  268. package/dist/runtime/types/_internal/contexts/virtualization.d.ts +16 -0
  269. package/dist/runtime/types/_internal/contexts/virtualization.js +0 -0
  270. package/dist/runtime/types/_internal/drag-drop.d.ts +48 -0
  271. package/dist/runtime/types/_internal/drag-drop.js +0 -0
  272. package/dist/runtime/types/_internal/focus.d.ts +68 -0
  273. package/dist/runtime/types/_internal/focus.js +0 -0
  274. package/dist/runtime/types/_internal/grouping.d.ts +48 -0
  275. package/dist/runtime/types/_internal/grouping.js +0 -0
  276. package/dist/runtime/types/_internal/index.d.ts +37 -0
  277. package/dist/runtime/types/_internal/index.js +2 -0
  278. package/dist/runtime/types/_internal/interaction-router.d.ts +176 -0
  279. package/dist/runtime/types/_internal/interaction-router.js +39 -0
  280. package/dist/runtime/types/_internal/props.d.ts +28 -0
  281. package/dist/runtime/types/_internal/props.js +0 -0
  282. package/dist/runtime/types/_internal/resize.d.ts +37 -0
  283. package/dist/runtime/types/_internal/resize.js +0 -0
  284. package/dist/runtime/types/_internal/row-interactions.d.ts +15 -0
  285. package/dist/runtime/types/_internal/row-interactions.js +0 -0
  286. package/dist/runtime/types/_internal/row-selection.d.ts +27 -0
  287. package/dist/runtime/types/_internal/row-selection.js +0 -0
  288. package/dist/runtime/types/_internal/states.d.ts +24 -0
  289. package/dist/runtime/types/_internal/states.js +0 -0
  290. package/dist/runtime/types/_internal/sticky-headers.d.ts +10 -0
  291. package/dist/runtime/types/_internal/sticky-headers.js +0 -0
  292. package/dist/runtime/types/_internal/validation.d.ts +54 -0
  293. package/dist/runtime/types/_internal/validation.js +0 -0
  294. package/dist/runtime/types/_internal/virtualization.d.ts +114 -0
  295. package/dist/runtime/types/_internal/virtualization.js +0 -0
  296. package/dist/runtime/types/action-menu.d.ts +62 -0
  297. package/dist/runtime/types/action-menu.js +0 -0
  298. package/dist/runtime/types/autosize.d.ts +8 -0
  299. package/dist/runtime/types/autosize.js +0 -0
  300. package/dist/runtime/types/cells.d.ts +292 -0
  301. package/dist/runtime/types/cells.js +5 -0
  302. package/dist/runtime/types/column.d.ts +248 -0
  303. package/dist/runtime/types/column.js +0 -0
  304. package/dist/runtime/types/config.d.ts +35 -0
  305. package/dist/runtime/types/config.js +0 -0
  306. package/dist/runtime/types/drag-drop.d.ts +92 -0
  307. package/dist/runtime/types/drag-drop.js +0 -0
  308. package/dist/runtime/types/events.d.ts +164 -0
  309. package/dist/runtime/types/events.js +1 -0
  310. package/dist/runtime/types/focus.d.ts +50 -0
  311. package/dist/runtime/types/focus.js +0 -0
  312. package/dist/runtime/types/grouping.d.ts +7 -0
  313. package/dist/runtime/types/grouping.js +0 -0
  314. package/dist/runtime/types/index.d.ts +15 -0
  315. package/dist/runtime/types/index.js +0 -0
  316. package/dist/runtime/types/option-groups.d.ts +624 -0
  317. package/dist/runtime/types/option-groups.js +0 -0
  318. package/dist/runtime/types/props.d.ts +418 -0
  319. package/dist/runtime/types/props.js +0 -0
  320. package/dist/runtime/types/resize.d.ts +14 -0
  321. package/dist/runtime/types/resize.js +0 -0
  322. package/dist/runtime/types/row-interactions.d.ts +11 -0
  323. package/dist/runtime/types/row-interactions.js +0 -0
  324. package/dist/runtime/types/row-selection.d.ts +48 -0
  325. package/dist/runtime/types/row-selection.js +0 -0
  326. package/dist/runtime/types/row.d.ts +7 -0
  327. package/dist/runtime/types/row.js +0 -0
  328. package/dist/runtime/types/sort-icon.d.ts +35 -0
  329. package/dist/runtime/types/sort-icon.js +0 -0
  330. package/dist/runtime/types/states.d.ts +17 -0
  331. package/dist/runtime/types/states.js +0 -0
  332. package/dist/runtime/types/sticky-headers.d.ts +6 -0
  333. package/dist/runtime/types/sticky-headers.js +0 -0
  334. package/dist/runtime/types/tanstack-table.d.ts +126 -0
  335. package/dist/runtime/types/theme.d.ts +22 -0
  336. package/dist/runtime/types/theme.js +0 -0
  337. package/dist/runtime/types/validation.d.ts +94 -0
  338. package/dist/runtime/types/validation.js +0 -0
  339. package/dist/runtime/utils/columnHelper.d.ts +208 -0
  340. package/dist/runtime/utils/columnHelper.js +23 -0
  341. package/dist/runtime/utils/excelExport.d.ts +63 -0
  342. package/dist/runtime/utils/excelExport.js +297 -0
  343. package/dist/runtime/utils/index.d.ts +2 -0
  344. package/dist/runtime/utils/index.js +2 -0
  345. package/dist/runtime/utils/standardSchema.d.ts +77 -0
  346. package/dist/runtime/utils/standardSchema.js +141 -0
  347. package/dist/types.d.mts +3 -0
  348. package/package.json +117 -0
@@ -0,0 +1,331 @@
1
+ /**
2
+ * Compact theme for NuGrid
3
+ * Features tighter spacing and blue accent color for data-dense applications
4
+ */
5
+ export declare const nuGridThemeCompact: {
6
+ slots: {
7
+ root: string;
8
+ checkboxBase: string;
9
+ checkboxIndicator: string;
10
+ checkboxContainer: string;
11
+ checkboxIcon: string;
12
+ base: string;
13
+ th: string;
14
+ td: string;
15
+ tr: string;
16
+ loading: string;
17
+ empty: string;
18
+ separator: string;
19
+ rowDragHandle: string;
20
+ colResizeHandle: string;
21
+ colResizer: string;
22
+ rowDragHeaderHandle: string;
23
+ thInner: string;
24
+ sortHandle: string;
25
+ sortHandleHover: string;
26
+ rowDragIcon: string;
27
+ headerContainer: string;
28
+ footerContent: string;
29
+ groupHeader: string;
30
+ groupHeaderLeft: string;
31
+ groupIcon: string;
32
+ groupLabel: string;
33
+ groupHeaderSpacer: string;
34
+ collapsedHeaderCell: string;
35
+ collapsedText: string;
36
+ expandedText: string;
37
+ stickyGroupHeader: string;
38
+ stickyColumnHeader: string;
39
+ thGroup: string;
40
+ thGroupInner: string;
41
+ editorErrorRing: string;
42
+ validationPopoverContent: string;
43
+ validationPopoverInner: string;
44
+ multiRowHeaderRow: string;
45
+ multiRowContainer: string;
46
+ multiRowDragHandle: string;
47
+ multiRowContent: string;
48
+ visualRow: string;
49
+ alignedLayout: string;
50
+ alignedPinnedLeft: string;
51
+ alignedPinnedRight: string;
52
+ alignedContent: string;
53
+ alignedFiller: string;
54
+ addRowIndicator: string;
55
+ caption: string;
56
+ thead: string;
57
+ tbody: string;
58
+ tfoot: string;
59
+ };
60
+ variants: {
61
+ gridFocused: {
62
+ true: {};
63
+ false: {};
64
+ };
65
+ focusCell: {
66
+ true: {
67
+ td: string;
68
+ };
69
+ false: {};
70
+ };
71
+ focusRow: {
72
+ true: {
73
+ tr: string;
74
+ td: string;
75
+ };
76
+ false: {};
77
+ };
78
+ rowInvalid: {
79
+ true: {
80
+ td: string;
81
+ };
82
+ false: {};
83
+ };
84
+ hasLeftBorder: {
85
+ true: {};
86
+ };
87
+ hasRightBorder: {
88
+ true: {};
89
+ };
90
+ activeRow: {
91
+ true: {
92
+ td: string;
93
+ };
94
+ false: {};
95
+ };
96
+ colResizing: {
97
+ true: {
98
+ colResizeHandle: string;
99
+ colResizer: string;
100
+ };
101
+ false: {
102
+ colResizeHandle: string;
103
+ colResizer: string;
104
+ };
105
+ };
106
+ colDraggable: {
107
+ true: {
108
+ thInner: string;
109
+ };
110
+ };
111
+ colDragging: {
112
+ true: {
113
+ th: string;
114
+ };
115
+ };
116
+ colDropTarget: {
117
+ true: {
118
+ th: string;
119
+ };
120
+ };
121
+ focusMultiRow: {
122
+ true: {
123
+ multiRowContainer: string;
124
+ };
125
+ false: {};
126
+ };
127
+ virtualize: {
128
+ false: {
129
+ base: string;
130
+ tbody: string;
131
+ };
132
+ };
133
+ pinned: {
134
+ true: {
135
+ th: string;
136
+ td: string;
137
+ };
138
+ };
139
+ sticky: {
140
+ true: {
141
+ thead: string;
142
+ tfoot: string;
143
+ };
144
+ header: {
145
+ thead: string;
146
+ };
147
+ footer: {
148
+ tfoot: string;
149
+ };
150
+ };
151
+ loading: {
152
+ true: {
153
+ thead: string;
154
+ };
155
+ };
156
+ loadingAnimation: {
157
+ carousel: string;
158
+ "carousel-inverse": string;
159
+ swing: string;
160
+ elastic: string;
161
+ };
162
+ loadingColor: {
163
+ primary: string;
164
+ secondary: string;
165
+ success: string;
166
+ info: string;
167
+ warning: string;
168
+ error: string;
169
+ neutral: string;
170
+ };
171
+ };
172
+ compoundVariants: ({
173
+ loading: boolean;
174
+ loadingColor: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
175
+ class: {
176
+ thead: string;
177
+ };
178
+ loadingAnimation?: undefined;
179
+ } | {
180
+ loading: boolean;
181
+ loadingAnimation: "carousel" | "carousel-inverse" | "swing" | "elastic";
182
+ class: {
183
+ thead: string;
184
+ };
185
+ loadingColor?: undefined;
186
+ } | {
187
+ pinned: boolean;
188
+ class: {
189
+ th: string;
190
+ td: string;
191
+ thGroup: string;
192
+ };
193
+ rowInvalid?: undefined;
194
+ activeRow?: undefined;
195
+ focusRow?: undefined;
196
+ focusCell?: undefined;
197
+ gridFocused?: undefined;
198
+ hasLeftBorder?: undefined;
199
+ hasRightBorder?: undefined;
200
+ } | {
201
+ rowInvalid: boolean;
202
+ activeRow: boolean;
203
+ class: {
204
+ td: string;
205
+ th?: undefined;
206
+ thGroup?: undefined;
207
+ };
208
+ pinned?: undefined;
209
+ focusRow?: undefined;
210
+ focusCell?: undefined;
211
+ gridFocused?: undefined;
212
+ hasLeftBorder?: undefined;
213
+ hasRightBorder?: undefined;
214
+ } | {
215
+ rowInvalid: boolean;
216
+ activeRow: boolean;
217
+ focusRow: boolean;
218
+ focusCell: boolean;
219
+ gridFocused: boolean;
220
+ class: {
221
+ td: string;
222
+ th?: undefined;
223
+ thGroup?: undefined;
224
+ };
225
+ pinned?: undefined;
226
+ hasLeftBorder?: undefined;
227
+ hasRightBorder?: undefined;
228
+ } | {
229
+ focusCell: boolean;
230
+ gridFocused: boolean;
231
+ rowInvalid: boolean;
232
+ class: {
233
+ td: string;
234
+ th?: undefined;
235
+ thGroup?: undefined;
236
+ };
237
+ pinned?: undefined;
238
+ activeRow?: undefined;
239
+ focusRow?: undefined;
240
+ hasLeftBorder?: undefined;
241
+ hasRightBorder?: undefined;
242
+ } | {
243
+ focusRow: boolean;
244
+ gridFocused: boolean;
245
+ pinned: boolean;
246
+ rowInvalid: boolean;
247
+ class: {
248
+ td: string;
249
+ th?: undefined;
250
+ thGroup?: undefined;
251
+ };
252
+ activeRow?: undefined;
253
+ focusCell?: undefined;
254
+ hasLeftBorder?: undefined;
255
+ hasRightBorder?: undefined;
256
+ } | {
257
+ focusRow: boolean;
258
+ hasLeftBorder: boolean;
259
+ class: {
260
+ td: string;
261
+ th?: undefined;
262
+ thGroup?: undefined;
263
+ };
264
+ pinned?: undefined;
265
+ rowInvalid?: undefined;
266
+ activeRow?: undefined;
267
+ focusCell?: undefined;
268
+ gridFocused?: undefined;
269
+ hasRightBorder?: undefined;
270
+ } | {
271
+ focusRow: boolean;
272
+ hasRightBorder: boolean;
273
+ class: {
274
+ td: string;
275
+ th?: undefined;
276
+ thGroup?: undefined;
277
+ };
278
+ pinned?: undefined;
279
+ rowInvalid?: undefined;
280
+ activeRow?: undefined;
281
+ focusCell?: undefined;
282
+ gridFocused?: undefined;
283
+ hasLeftBorder?: undefined;
284
+ } | {
285
+ focusRow: boolean;
286
+ hasLeftBorder: boolean;
287
+ hasRightBorder: boolean;
288
+ class: {
289
+ td: string;
290
+ th?: undefined;
291
+ thGroup?: undefined;
292
+ };
293
+ pinned?: undefined;
294
+ rowInvalid?: undefined;
295
+ activeRow?: undefined;
296
+ focusCell?: undefined;
297
+ gridFocused?: undefined;
298
+ } | {
299
+ focusRow: boolean;
300
+ rowInvalid: boolean;
301
+ class: {
302
+ td: string;
303
+ th?: undefined;
304
+ thGroup?: undefined;
305
+ };
306
+ pinned?: undefined;
307
+ activeRow?: undefined;
308
+ focusCell?: undefined;
309
+ gridFocused?: undefined;
310
+ hasLeftBorder?: undefined;
311
+ hasRightBorder?: undefined;
312
+ } | {
313
+ focusCell: boolean;
314
+ rowInvalid: boolean;
315
+ class: {
316
+ td: string;
317
+ th?: undefined;
318
+ thGroup?: undefined;
319
+ };
320
+ pinned?: undefined;
321
+ activeRow?: undefined;
322
+ focusRow?: undefined;
323
+ gridFocused?: undefined;
324
+ hasLeftBorder?: undefined;
325
+ hasRightBorder?: undefined;
326
+ })[];
327
+ defaultVariants: {
328
+ loadingColor: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
329
+ loadingAnimation: "carousel" | "carousel-inverse" | "swing" | "elastic";
330
+ };
331
+ };
@@ -0,0 +1,236 @@
1
+ import theme from "#build/ui/table";
2
+ export const nuGridThemeCompact = {
3
+ ...theme,
4
+ slots: {
5
+ ...theme.slots,
6
+ // Root container - extends base with height to fill parent container
7
+ root: "relative overflow-auto h-full",
8
+ checkboxBase: "ring-blue-800 dark:ring-blue-400",
9
+ checkboxIndicator: "bg-blue-800! dark:bg-blue-400",
10
+ checkboxContainer: "",
11
+ checkboxIcon: "",
12
+ // style the checkboxes to match compact theme
13
+ // Base slots with div mode styles merged in
14
+ base: "flex flex-col bg-white dark:bg-gray-900",
15
+ // Tighter spacing: px-2 py-1.5 instead of px-4 py-3.5
16
+ th: "flex shrink-0 items-stretch overflow-hidden p-0! group bg-gray-50 dark:bg-gray-800 border-r border-gray-300 dark:border-gray-600 last:border-r-0 text-left rtl:text-right text-xs font-semibold text-gray-700 dark:text-gray-300 uppercase tracking-wide",
17
+ // Tighter cell padding: px-2 py-1 instead of p-4
18
+ td: "flex shrink-0 items-center overflow-hidden border-r border-gray-300/50 dark:border-gray-600/50 last:border-r-0 px-2 py-1 whitespace-nowrap text-sm text-gray-900 dark:text-white outline-none! focus-visible:outline-none!",
19
+ tr: "flex border-b border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700 outline-none! focus-visible:outline-none!",
20
+ loading: "flex-1",
21
+ empty: "flex-1",
22
+ separator: "flex-1",
23
+ // Additional NuGrid-specific slots
24
+ rowDragHandle: "flex shrink-0 items-center justify-center px-1 w-8 min-w-8 max-w-8",
25
+ colResizeHandle: "flex shrink-0 items-center justify-center w-3 cursor-col-resize select-none touch-none opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity duration-200 relative z-10 hover:bg-blue-500/10 [&:hover_.col-resizer]:bg-blue-500/80",
26
+ colResizer: "w-0.5 h-3/5 rounded-sm transition-colors duration-200 bg-gray-400/60 col-resizer",
27
+ rowDragHeaderHandle: "shrink-0 w-8 min-w-8 max-w-8",
28
+ // Tighter header inner: px-2 py-1 instead of px-3 py-2
29
+ thInner: "flex flex-1 items-center px-2 py-1 truncate",
30
+ sortHandle: "flex shrink-0 items-center px-1 cursor-pointer select-none opacity-100 hover:text-blue-500 transition-opacity duration-200",
31
+ sortHandleHover: "flex shrink-0 items-center px-1 cursor-pointer select-none text-gray-400/60 opacity-0 group-hover:opacity-100 focus-within:opacity-100 hover:text-blue-500 transition-opacity duration-200",
32
+ rowDragIcon: "inline-block w-3.5 h-3.5",
33
+ headerContainer: "flex items-stretch w-full h-full bg-gray-50 dark:bg-gray-800",
34
+ footerContent: "w-full truncate",
35
+ // Group header styling
36
+ groupHeader: "flex items-stretch cursor-pointer bg-blue-500/6 hover:bg-blue-500/10 dark:bg-blue-500/12 dark:hover:bg-blue-500/18 transition-colors",
37
+ groupHeaderLeft: "sticky left-0 z-50 flex items-center gap-2 px-2 py-1.5 border-b-0 border-l-3 border-blue-500",
38
+ groupIcon: "shrink-0 w-4 h-4 text-blue-500 transition-transform",
39
+ groupLabel: "text-xs font-medium text-gray-900 dark:text-white",
40
+ groupHeaderSpacer: "flex-1",
41
+ // Collapsed cells with tighter spacing
42
+ collapsedHeaderCell: "flex shrink-0 items-center overflow-hidden px-2 py-1 border-r border-gray-300 dark:border-gray-600",
43
+ collapsedText: "w-full truncate text-xs italic text-gray-500 dark:text-gray-400",
44
+ expandedText: "w-full truncate text-xs text-gray-900 dark:text-white",
45
+ stickyGroupHeader: "sticky top-0 z-30 bg-white dark:bg-gray-900",
46
+ stickyColumnHeader: "sticky top-0 z-20 bg-gray-50 dark:bg-gray-800",
47
+ // Column group header styling (for multi-level headers)
48
+ thGroup: "flex shrink-0 items-stretch overflow-hidden p-0! bg-gray-50 dark:bg-gray-800 border-b-2 border-blue-500/40",
49
+ thGroupInner: "flex flex-1 items-center px-2 py-1 text-xs font-semibold uppercase tracking-wide text-gray-700 dark:text-gray-300",
50
+ // Editor validation error styling
51
+ editorErrorRing: "ring-error ring-1",
52
+ validationPopoverContent: "p-2 text-xs",
53
+ validationPopoverInner: "flex items-center gap-1.5 text-error",
54
+ // Multi-row layout slots
55
+ multiRowHeaderRow: "flex flex-row",
56
+ multiRowContainer: "flex flex-col outline-none",
57
+ multiRowDragHandle: "flex items-center justify-center self-stretch",
58
+ multiRowContent: "flex flex-col flex-1 min-w-0",
59
+ visualRow: "flex flex-row",
60
+ // Aligned mode layout slots
61
+ alignedLayout: "flex flex-row flex-1 min-w-0",
62
+ alignedPinnedLeft: "flex flex-row shrink-0 sticky left-0 z-10 bg-white dark:bg-gray-900",
63
+ alignedPinnedRight: "flex flex-row shrink-0 sticky right-0 z-10 bg-white dark:bg-gray-900",
64
+ alignedContent: "flex flex-col flex-1 min-w-0",
65
+ alignedFiller: "bg-transparent",
66
+ // Add row indicator - shown when add row is idle (not focused or editing)
67
+ addRowIndicator: "absolute inset-0 flex items-center px-2 pointer-events-none text-xs text-gray-500 dark:text-gray-400 z-10"
68
+ },
69
+ variants: {
70
+ ...theme.variants,
71
+ gridFocused: {
72
+ true: {},
73
+ false: {}
74
+ },
75
+ focusCell: {
76
+ true: {
77
+ td: "z-1 shadow-[inset_1px_0_0_0_rgb(33_150_243),inset_-1px_0_0_0_rgb(33_150_243),inset_0_1px_0_0_rgb(33_150_243),inset_0_-1px_0_0_rgb(33_150_243)]"
78
+ },
79
+ false: {}
80
+ },
81
+ focusRow: {
82
+ true: {
83
+ tr: "bg-blue-500/12 dark:bg-blue-500/25 ring-1 ring-inset ring-blue-500/50",
84
+ td: "bg-blue-500/12 dark:bg-blue-500/25"
85
+ },
86
+ false: {}
87
+ },
88
+ rowInvalid: {
89
+ true: {
90
+ td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50"
91
+ },
92
+ false: {}
93
+ },
94
+ hasLeftBorder: {
95
+ true: {}
96
+ },
97
+ hasRightBorder: {
98
+ true: {}
99
+ },
100
+ activeRow: {
101
+ true: {
102
+ td: "bg-blue-500/8 dark:bg-blue-500/15!"
103
+ },
104
+ false: {}
105
+ },
106
+ colResizing: {
107
+ true: {
108
+ colResizeHandle: "opacity-100! bg-blue-500/10",
109
+ colResizer: "bg-blue-500 w-1"
110
+ },
111
+ false: {
112
+ colResizeHandle: "",
113
+ colResizer: ""
114
+ }
115
+ },
116
+ colDraggable: {
117
+ true: {
118
+ thInner: "cursor-move transition-transform duration-300 ease-in-out"
119
+ }
120
+ },
121
+ colDragging: {
122
+ true: {
123
+ th: "bg-blue-500/15 opacity-50 transition-[opacity,background-color] duration-200 ease-linear"
124
+ }
125
+ },
126
+ colDropTarget: {
127
+ true: {
128
+ th: "bg-blue-500/10! data-[drop-position=left]:shadow-[inset_3px_0_0_0_rgb(33_150_243)] data-[drop-position=right]:shadow-[inset_-3px_0_0_0_rgb(33_150_243)] transition-shadow duration-200 ease-linear"
129
+ }
130
+ },
131
+ // Multi-row focused state (row focus mode with multi-row layout)
132
+ focusMultiRow: {
133
+ true: {
134
+ multiRowContainer: "bg-blue-500/12 dark:bg-blue-500/25 ring-1 ring-inset ring-blue-500 rounded"
135
+ },
136
+ false: {}
137
+ }
138
+ },
139
+ compoundVariants: [
140
+ ...theme.compoundVariants,
141
+ {
142
+ pinned: true,
143
+ class: {
144
+ th: "sticky z-10 bg-gray-50 dark:bg-gray-800",
145
+ td: "sticky z-10 bg-white dark:bg-gray-900",
146
+ thGroup: "sticky z-10 bg-blue-500/6 dark:bg-blue-500/12"
147
+ }
148
+ },
149
+ // Row invalid styling - apply early to ensure it takes precedence
150
+ {
151
+ rowInvalid: true,
152
+ activeRow: true,
153
+ class: {
154
+ td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
155
+ }
156
+ },
157
+ {
158
+ rowInvalid: true,
159
+ activeRow: false,
160
+ focusRow: false,
161
+ focusCell: false,
162
+ gridFocused: true,
163
+ class: {
164
+ td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
165
+ }
166
+ },
167
+ {
168
+ rowInvalid: true,
169
+ activeRow: false,
170
+ focusRow: false,
171
+ focusCell: false,
172
+ gridFocused: false,
173
+ class: {
174
+ td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
175
+ }
176
+ },
177
+ // Unfocused grid background
178
+ {
179
+ focusCell: true,
180
+ gridFocused: false,
181
+ rowInvalid: false,
182
+ class: { td: "bg-blue-500/12! dark:bg-blue-500/25!" }
183
+ },
184
+ {
185
+ focusRow: true,
186
+ gridFocused: false,
187
+ pinned: false,
188
+ rowInvalid: false,
189
+ class: { td: "bg-blue-500/12! dark:bg-blue-500/25!" }
190
+ },
191
+ {
192
+ focusRow: true,
193
+ gridFocused: false,
194
+ pinned: true,
195
+ rowInvalid: false,
196
+ class: { td: "z-10 bg-blue-500/12! dark:bg-blue-500/25!" }
197
+ },
198
+ // Focus row outline borders
199
+ {
200
+ focusRow: true,
201
+ hasLeftBorder: true,
202
+ class: {
203
+ td: "shadow-[inset_1px_0_0_0_rgb(33_150_243),inset_0_1px_0_0_rgb(33_150_243),inset_0_-1px_0_0_rgb(33_150_243)]"
204
+ }
205
+ },
206
+ {
207
+ focusRow: true,
208
+ hasRightBorder: true,
209
+ class: {
210
+ td: "shadow-[inset_-1px_0_0_0_rgb(33_150_243),inset_0_1px_0_0_rgb(33_150_243),inset_0_-1px_0_0_rgb(33_150_243)]"
211
+ }
212
+ },
213
+ {
214
+ focusRow: true,
215
+ hasLeftBorder: false,
216
+ hasRightBorder: false,
217
+ class: {
218
+ td: "shadow-[inset_0_1px_0_0_rgb(33_150_243),inset_0_-1px_0_0_rgb(33_150_243)]"
219
+ }
220
+ },
221
+ {
222
+ focusRow: true,
223
+ rowInvalid: true,
224
+ class: {
225
+ td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50 shadow-none"
226
+ }
227
+ },
228
+ {
229
+ focusCell: true,
230
+ rowInvalid: true,
231
+ class: {
232
+ td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50 shadow-none"
233
+ }
234
+ }
235
+ ]
236
+ };
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ import type { TableColumn, TableData } from '@nuxt/ui';
5
+ import type { Row } from '@tanstack/vue-table';
6
+ import type { Ref } from 'vue';
7
+ import type { NuGridActionMenuItem } from '../action-menu.js';
8
+ /**
9
+ * Button configuration for the action menu trigger
10
+ * @internal
11
+ */
12
+ export interface NuGridActionMenuButton {
13
+ /**
14
+ * Icon to display on the button
15
+ * @default 'i-lucide-ellipsis-vertical'
16
+ */
17
+ icon?: string;
18
+ /**
19
+ * Button color
20
+ * @default 'neutral'
21
+ */
22
+ color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
23
+ /**
24
+ * Button variant
25
+ * @default 'ghost'
26
+ */
27
+ variant?: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
28
+ /**
29
+ * Additional CSS classes for the button
30
+ * @default 'ml-auto'
31
+ */
32
+ class?: string;
33
+ }
34
+ /**
35
+ * Column definition overrides for the action menu column
36
+ * Excludes properties that are required for the action menu column to function correctly
37
+ * @internal
38
+ */
39
+ export type NuGridActionMenuColumnDef<T extends TableData = TableData> = Partial<Omit<TableColumn<T>, 'id' | 'header' | 'cell' | 'accessorFn' | 'meta' | 'cellDataType'>>;
40
+ /**
41
+ * Meta data stored on the action menu column
42
+ * @internal
43
+ */
44
+ export interface NuGridActionMenuColumnMeta<T = any> {
45
+ actionMenuEnabled: boolean;
46
+ enabledRef?: Ref<boolean>;
47
+ getActions?: (row: Row<T>) => NuGridActionMenuItem[];
48
+ isRowEnabledFn?: (row: Row<T>) => boolean;
49
+ button: NuGridActionMenuButton;
50
+ /**
51
+ * Map of row ID to menu open state ref
52
+ * Used for keyboard navigation to toggle menus without DOM manipulation
53
+ */
54
+ menuOpenStates: Map<string, Ref<boolean>>;
55
+ }
File without changes
@@ -0,0 +1,75 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ import type { TableData } from '@nuxt/ui';
5
+ import type { Column, Row, Table } from '@tanstack/vue-table';
6
+ import type { Component, Ref } from 'vue';
7
+ import type { NuGridShowErrors } from '../validation.js';
8
+ /**
9
+ * Editor configuration type - supports multiple formats for flexibility
10
+ * @internal
11
+ */
12
+ export type NuGridEditorConfig = string | Component | {
13
+ component: string | Component;
14
+ props?: Record<string, any>;
15
+ } | ((context: NuGridEditorRenderContext) => any);
16
+ /**
17
+ * Editing cell position
18
+ * @internal
19
+ */
20
+ export interface NuGridEditingCell {
21
+ rowId: string;
22
+ columnId: string;
23
+ }
24
+ /**
25
+ * Row validation error state
26
+ * @internal
27
+ */
28
+ export interface NuGridRowValidationError {
29
+ message: string;
30
+ failedFields: string[];
31
+ }
32
+ /**
33
+ * Type for nugrid-celleditfns injection
34
+ * Provides cell editing functionality
35
+ * @internal
36
+ */
37
+ export interface NuGridCellEditing<T extends TableData = TableData> {
38
+ editingCell: Ref<NuGridEditingCell | null>;
39
+ editingValue: Ref<any>;
40
+ isNavigating: Ref<boolean>;
41
+ shouldFocusEditor: Ref<boolean>;
42
+ validationError: Ref<string | null>;
43
+ showValidationErrors: Ref<NuGridShowErrors>;
44
+ validationIcon: Ref<string>;
45
+ startClicks: Ref<'none' | 'single' | 'double'>;
46
+ rowValidationErrors: Ref<Map<string, NuGridRowValidationError>>;
47
+ hasRowValidationError: (rowId: string) => boolean;
48
+ hasCellValidationError: (rowId: string, columnId: string) => boolean;
49
+ getRowValidationError: (rowId: string) => string | null;
50
+ isEditingCell: (row: Row<T>, columnId: string) => boolean;
51
+ isCellEditable: (row: Row<T>, cell: any) => boolean;
52
+ startEditing: (row: Row<T>, cell: any, initialValue?: any) => void;
53
+ stopEditing: (row: Row<T>, cell: any, newValue: any, moveDirection?: 'up' | 'down' | 'next' | 'previous', options?: {
54
+ restoreFocus?: boolean;
55
+ }) => void;
56
+ createDefaultEditor: (cell: any, row: Row<T>) => any;
57
+ renderCellContent: (cell: any, row: Row<T>) => any;
58
+ onCellClick: (event: MouseEvent, row: Row<T>, cell: any) => void;
59
+ onCellDoubleClick: (event: MouseEvent, row: Row<T>, cell: any) => void;
60
+ onCellKeyDown: (event: KeyboardEvent, row: Row<T>, cell: any, cellIndex: number) => void;
61
+ }
62
+ /**
63
+ * Type for the editor render context
64
+ * Used when rendering editors with custom components or functions
65
+ * @internal
66
+ */
67
+ export interface NuGridEditorRenderContext<T = any> {
68
+ cell: any;
69
+ row: Row<T>;
70
+ getValue: () => any;
71
+ setValue: (value: any) => void;
72
+ stopEditing: (moveDirection?: 'up' | 'down' | 'next' | 'previous') => void;
73
+ table: Table<T>;
74
+ column: Column<T, unknown>;
75
+ }
File without changes