@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,297 @@
1
+ import writeXlsxFile from "write-excel-file";
2
+ function getCellValue(row, column) {
3
+ const key = column.accessorKey || column.id;
4
+ if (!key) return void 0;
5
+ if (key.includes(".")) {
6
+ return key.split(".").reduce((obj, k) => obj?.[k], row);
7
+ }
8
+ return row[key];
9
+ }
10
+ function formatCellForExcel(value, cellDataType) {
11
+ if (value === null || value === void 0) {
12
+ return { value: "", type: String };
13
+ }
14
+ switch (cellDataType) {
15
+ case "date":
16
+ if (typeof value === "string") {
17
+ const date = new Date(value);
18
+ if (!Number.isNaN(date.getTime())) {
19
+ return { value: date, type: Date, format: "yyyy-mm-dd" };
20
+ }
21
+ }
22
+ return { value: String(value), type: String };
23
+ case "boolean":
24
+ return { value: value ? "Yes" : "No", type: String };
25
+ case "currency":
26
+ if (typeof value === "number") {
27
+ return { value, type: Number, format: "$#,##0.00" };
28
+ }
29
+ return { value: String(value), type: String };
30
+ case "number":
31
+ if (typeof value === "number") {
32
+ return { value, type: Number };
33
+ }
34
+ if (typeof value === "string") {
35
+ const num = Number.parseFloat(value);
36
+ if (!Number.isNaN(num)) {
37
+ return { value: num, type: Number };
38
+ }
39
+ }
40
+ return { value: String(value), type: String };
41
+ case "lookup":
42
+ if (typeof value === "object" && value !== null) {
43
+ const label = value.label || value.value;
44
+ return { value: String(label ?? value), type: String };
45
+ }
46
+ return { value: String(value), type: String };
47
+ default:
48
+ if (typeof value === "object") {
49
+ return { value: JSON.stringify(value), type: String };
50
+ }
51
+ return { value: String(value), type: String };
52
+ }
53
+ }
54
+ function getDisplayWidth(value, cellDataType) {
55
+ if (value === null || value === void 0 || value === "") {
56
+ return 0;
57
+ }
58
+ switch (cellDataType) {
59
+ case "date":
60
+ return 10;
61
+ // yyyy-mm-dd
62
+ case "currency":
63
+ if (typeof value === "number") {
64
+ const formatted = new Intl.NumberFormat("en-US", {
65
+ style: "currency",
66
+ currency: "USD"
67
+ }).format(value);
68
+ return formatted.length;
69
+ }
70
+ return String(value).length;
71
+ case "number":
72
+ return String(value).length;
73
+ case "boolean":
74
+ return 3;
75
+ // "Yes" or "No"
76
+ default:
77
+ return String(value).length;
78
+ }
79
+ }
80
+ function calculateColumnWidth(header, values, cellDataType) {
81
+ const headerLength = header.length;
82
+ const maxValueLength = values.reduce((max, val) => {
83
+ const displayLen = getDisplayWidth(val, cellDataType);
84
+ return Math.max(max, displayLen);
85
+ }, 0);
86
+ const isTextType = !cellDataType || cellDataType === "text" || cellDataType === "textarea";
87
+ const multiplier = isTextType ? 1.2 : 1;
88
+ const maxWidth = isTextType ? 80 : 50;
89
+ const baseWidth = Math.max(headerLength, maxValueLength);
90
+ return Math.min(Math.ceil(baseWidth * multiplier) + 2, maxWidth);
91
+ }
92
+ function getColumnInfo(tableColumn, columnDefinitions) {
93
+ const colId = tableColumn.id;
94
+ const colDef = tableColumn.columnDef;
95
+ const cellDataType = colDef.cellDataType;
96
+ if (cellDataType === "selection" || cellDataType === "action-menu") {
97
+ return null;
98
+ }
99
+ const originalCol = columnDefinitions.find(
100
+ (c) => c.accessorKey === colId || c.id === colId
101
+ );
102
+ let header = colId;
103
+ if (typeof colDef.header === "string") {
104
+ header = colDef.header;
105
+ } else if (originalCol && typeof originalCol.header === "string") {
106
+ header = originalCol.header;
107
+ }
108
+ return {
109
+ id: colId,
110
+ header,
111
+ accessorKey: colDef.accessorKey || colId,
112
+ cellDataType: originalCol?.cellDataType || cellDataType
113
+ };
114
+ }
115
+ export async function exportToExcel(tableApi, columns, options = {}) {
116
+ const {
117
+ filename = "export",
118
+ sheetName = "Sheet1",
119
+ includeHeaders = true,
120
+ visibleColumnsOnly = true,
121
+ columnWidths = {}
122
+ } = options;
123
+ const tableColumns = visibleColumnsOnly ? tableApi.getVisibleLeafColumns() : tableApi.getAllLeafColumns();
124
+ const exportColumns = [];
125
+ for (const tableCol of tableColumns) {
126
+ const colInfo = getColumnInfo(tableCol, columns);
127
+ if (colInfo) {
128
+ exportColumns.push(colInfo);
129
+ }
130
+ }
131
+ const rows = tableApi.getSortedRowModel().rows.map((r) => r.original);
132
+ const data = [];
133
+ if (includeHeaders) {
134
+ const headerRow = exportColumns.map((col) => ({
135
+ value: col.header,
136
+ type: String,
137
+ fontWeight: "bold"
138
+ }));
139
+ data.push(headerRow);
140
+ }
141
+ for (const row of rows) {
142
+ const rowData = exportColumns.map((col) => {
143
+ const rawValue = getCellValue(row, col);
144
+ return formatCellForExcel(rawValue, col.cellDataType);
145
+ });
146
+ data.push(rowData);
147
+ }
148
+ const columnWidthsArray = exportColumns.map((col) => {
149
+ if (columnWidths[col.id]) {
150
+ return { width: columnWidths[col.id] };
151
+ }
152
+ const columnValues = rows.map((row) => getCellValue(row, col));
153
+ const width = calculateColumnWidth(col.header, columnValues, col.cellDataType);
154
+ return { width };
155
+ });
156
+ await writeXlsxFile(data, {
157
+ columns: columnWidthsArray,
158
+ fileName: `${filename}.xlsx`,
159
+ sheet: sheetName
160
+ });
161
+ }
162
+ function processGroupedRows(rows, exportColumns, options, depth = 0) {
163
+ const result = [];
164
+ for (const row of rows) {
165
+ if (row.getIsGrouped?.()) {
166
+ if (options.includeGroupHeaders) {
167
+ const groupColumnId = row.groupingColumnId;
168
+ const groupValue = row.getGroupingValue?.(groupColumnId);
169
+ const count = row.subRows?.length ?? 0;
170
+ let headerText = options.groupHeaderFormat.replace("{groupName}", groupColumnId).replace("{groupValue}", String(groupValue ?? "Unknown")).replace("{count}", String(count));
171
+ if (depth > 0) {
172
+ headerText = " ".repeat(options.groupIndent * depth) + headerText;
173
+ }
174
+ const groupRow = exportColumns.map((_, index) => {
175
+ if (index === 0) {
176
+ return {
177
+ value: headerText,
178
+ type: String,
179
+ fontWeight: "bold",
180
+ backgroundColor: "#E8E8E8"
181
+ };
182
+ }
183
+ return {
184
+ value: "",
185
+ type: String,
186
+ backgroundColor: "#E8E8E8"
187
+ };
188
+ });
189
+ result.push(groupRow);
190
+ }
191
+ if (row.subRows && row.subRows.length > 0) {
192
+ const subRowsData = processGroupedRows(row.subRows, exportColumns, options, depth + 1);
193
+ result.push(...subRowsData);
194
+ }
195
+ } else {
196
+ const indent = options.includeGroupHeaders && depth > 0 ? " ".repeat(options.groupIndent * depth) : "";
197
+ const rowData = exportColumns.map((col, index) => {
198
+ const rawValue = getCellValue(row.original, col);
199
+ const cell = formatCellForExcel(rawValue, col.cellDataType);
200
+ if (index === 0 && indent && cell && typeof cell.value === "string") {
201
+ return { ...cell, value: indent + cell.value };
202
+ }
203
+ return cell;
204
+ });
205
+ result.push(rowData);
206
+ }
207
+ }
208
+ return result;
209
+ }
210
+ export async function exportGroupedToExcel(tableApi, columns, options = {}) {
211
+ const {
212
+ filename = "export",
213
+ sheetName = "Sheet1",
214
+ includeHeaders = true,
215
+ visibleColumnsOnly = true,
216
+ columnWidths = {},
217
+ includeGroupHeaders = true,
218
+ groupIndent = 2,
219
+ groupHeaderFormat = "{groupName}: {groupValue} ({count})"
220
+ } = options;
221
+ const tableColumns = visibleColumnsOnly ? tableApi.getVisibleLeafColumns() : tableApi.getAllLeafColumns();
222
+ const exportColumns = [];
223
+ for (const tableCol of tableColumns) {
224
+ const colInfo = getColumnInfo(tableCol, columns);
225
+ if (colInfo) {
226
+ exportColumns.push(colInfo);
227
+ }
228
+ }
229
+ const data = [];
230
+ if (includeHeaders) {
231
+ const headerRow = exportColumns.map((col) => ({
232
+ value: col.header,
233
+ type: String,
234
+ fontWeight: "bold"
235
+ }));
236
+ data.push(headerRow);
237
+ }
238
+ const rowModel = tableApi.getRowModel();
239
+ const groupedData = processGroupedRows(
240
+ rowModel.rows,
241
+ exportColumns,
242
+ { includeGroupHeaders, groupIndent, groupHeaderFormat },
243
+ 0
244
+ );
245
+ data.push(...groupedData);
246
+ const allRows = tableApi.getSortedRowModel().rows.map((r) => r.original);
247
+ const columnWidthsArray = exportColumns.map((col) => {
248
+ if (columnWidths[col.id]) {
249
+ return { width: columnWidths[col.id] };
250
+ }
251
+ const columnValues = allRows.map((row) => getCellValue(row, col));
252
+ const width = calculateColumnWidth(col.header, columnValues, col.cellDataType);
253
+ return { width };
254
+ });
255
+ await writeXlsxFile(data, {
256
+ columns: columnWidthsArray,
257
+ fileName: `${filename}.xlsx`,
258
+ sheet: sheetName
259
+ });
260
+ }
261
+ export async function exportDataToExcel(data, columns, options = {}) {
262
+ const {
263
+ filename = "export",
264
+ sheetName = "Sheet1",
265
+ includeHeaders = true,
266
+ columnWidths = {}
267
+ } = options;
268
+ const excelData = [];
269
+ if (includeHeaders) {
270
+ const headerRow = columns.map((col) => ({
271
+ value: col.header,
272
+ type: String,
273
+ fontWeight: "bold"
274
+ }));
275
+ excelData.push(headerRow);
276
+ }
277
+ for (const row of data) {
278
+ const rowData = columns.map((col) => {
279
+ const rawValue = row[col.key];
280
+ return formatCellForExcel(rawValue, col.cellDataType);
281
+ });
282
+ excelData.push(rowData);
283
+ }
284
+ const columnWidthsArray = columns.map((col) => {
285
+ if (columnWidths[col.key]) {
286
+ return { width: columnWidths[col.key] };
287
+ }
288
+ const columnValues = data.map((row) => row[col.key]);
289
+ const width = calculateColumnWidth(col.header, columnValues, col.cellDataType);
290
+ return { width };
291
+ });
292
+ await writeXlsxFile(excelData, {
293
+ columns: columnWidthsArray,
294
+ fileName: `${filename}.xlsx`,
295
+ sheet: sheetName
296
+ });
297
+ }
@@ -0,0 +1,2 @@
1
+ export * from './columnHelper.js';
2
+ export * from './standardSchema.js';
@@ -0,0 +1,2 @@
1
+ export * from "./columnHelper.js";
2
+ export * from "./standardSchema.js";
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Standard Schema v1 utilities for NuGrid validation
3
+ * @see https://standardschema.dev
4
+ */
5
+ import type { NuGridValidationResult } from '../types/cells.js';
6
+ export type { NuGridValidationResult };
7
+ /**
8
+ * Standard Schema v1 interfaces
9
+ */
10
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
11
+ readonly '~standard': StandardSchemaV1Props<Input, Output>;
12
+ }
13
+ export interface StandardSchemaV1Props<Input = unknown, Output = Input> {
14
+ readonly version: 1;
15
+ readonly vendor: string;
16
+ readonly validate: (value: unknown, options?: StandardSchemaV1Options | undefined) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
17
+ readonly types?: {
18
+ readonly input: Input;
19
+ readonly output: Output;
20
+ };
21
+ }
22
+ export interface StandardSchemaV1Options {
23
+ /** Explicit support for additional vendor-specific parameters, if needed. */
24
+ readonly libraryOptions?: Record<string, unknown> | undefined;
25
+ }
26
+ export type StandardSchemaV1Result<Output> = StandardSchemaV1SuccessResult<Output> | StandardSchemaV1FailureResult;
27
+ export interface StandardSchemaV1SuccessResult<Output> {
28
+ readonly value: Output;
29
+ readonly issues?: undefined;
30
+ }
31
+ export interface StandardSchemaV1FailureResult {
32
+ readonly issues: ReadonlyArray<StandardSchemaV1Issue>;
33
+ }
34
+ export interface StandardSchemaV1Issue {
35
+ readonly message: string;
36
+ readonly path?: ReadonlyArray<PropertyKey | StandardSchemaV1PathSegment> | undefined;
37
+ }
38
+ export interface StandardSchemaV1PathSegment {
39
+ readonly key: PropertyKey;
40
+ }
41
+ /**
42
+ * Type inference helpers
43
+ */
44
+ export type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
45
+ export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
46
+ /**
47
+ * Split a path string like "foo.bar.baz" or "foo[0].bar" into segments
48
+ */
49
+ export declare function splitPath(path: string): (string | number)[];
50
+ /**
51
+ * Get a value at a path from an object
52
+ */
53
+ export declare function getValueAtPath(obj: any, path: (string | number)[]): any;
54
+ /**
55
+ * Set a value at a path in an object, returning a new object
56
+ */
57
+ export declare function setValueAtPath<T extends Record<string, any>>(obj: T, path: (string | number)[], value: any): T;
58
+ /**
59
+ * Check if a schema is a Standard Schema v1
60
+ */
61
+ export declare function isStandardSchema(schema: unknown): schema is StandardSchemaV1;
62
+ /**
63
+ * Validate a value against a Standard Schema
64
+ * Returns a normalized result suitable for NuGrid
65
+ * Supports both sync and async schema validation
66
+ */
67
+ export declare function validateStandardValue<T>(schema: StandardSchemaV1<T>, value: unknown): NuGridValidationResult | Promise<NuGridValidationResult>;
68
+ /**
69
+ * Validate a single field value against a schema
70
+ * This validates the entire row with the candidate value and filters to field-specific errors
71
+ * Supports both sync and async schema validation
72
+ */
73
+ export declare function validateFieldValue<T>(schema: StandardSchemaV1<T>, fieldPath: (string | number)[], value: unknown, fullRowData?: Record<string, any>): NuGridValidationResult | Promise<NuGridValidationResult>;
74
+ /**
75
+ * Format validation issues into a user-friendly message
76
+ */
77
+ export declare function formatStandardSchemaIssues(issues: StandardSchemaV1Issue[]): string;
@@ -0,0 +1,141 @@
1
+ export function splitPath(path) {
2
+ if (!path) return [];
3
+ const segments = [];
4
+ let current = "";
5
+ let i = 0;
6
+ while (i < path.length) {
7
+ const char = path[i];
8
+ if (char === ".") {
9
+ if (current) {
10
+ segments.push(current);
11
+ current = "";
12
+ }
13
+ i++;
14
+ } else if (char === "[") {
15
+ if (current) {
16
+ segments.push(current);
17
+ current = "";
18
+ }
19
+ i++;
20
+ let bracketContent = "";
21
+ while (i < path.length && path[i] !== "]") {
22
+ bracketContent += path[i];
23
+ i++;
24
+ }
25
+ if (i < path.length) i++;
26
+ const numIndex = Number.parseInt(bracketContent, 10);
27
+ if (!Number.isNaN(numIndex) && String(numIndex) === bracketContent) {
28
+ segments.push(numIndex);
29
+ } else {
30
+ segments.push(bracketContent.replace(/^['"]|['"]$/g, ""));
31
+ }
32
+ } else {
33
+ current += char;
34
+ i++;
35
+ }
36
+ }
37
+ if (current) {
38
+ segments.push(current);
39
+ }
40
+ return segments;
41
+ }
42
+ export function getValueAtPath(obj, path) {
43
+ let current = obj;
44
+ for (const segment of path) {
45
+ if (current == null) return void 0;
46
+ current = current[segment];
47
+ }
48
+ return current;
49
+ }
50
+ export function setValueAtPath(obj, path, value) {
51
+ if (path.length === 0) return value;
52
+ const result = Array.isArray(obj) ? [...obj] : { ...obj };
53
+ let current = result;
54
+ const lastIndex = path.length - 1;
55
+ for (let i = 0; i < lastIndex; i++) {
56
+ const segment = path[i];
57
+ const nextSegment = path[i + 1];
58
+ if (current[segment] == null) {
59
+ current[segment] = typeof nextSegment === "number" ? [] : {};
60
+ } else {
61
+ current[segment] = Array.isArray(current[segment]) ? [...current[segment]] : { ...current[segment] };
62
+ }
63
+ current = current[segment];
64
+ }
65
+ const lastSegment = path[lastIndex];
66
+ current[lastSegment] = value;
67
+ return result;
68
+ }
69
+ export function isStandardSchema(schema) {
70
+ return schema != null && typeof schema === "object" && "~standard" in schema && typeof schema["~standard"]?.validate === "function";
71
+ }
72
+ function toNuGridResult(result) {
73
+ if (result.issues && result.issues.length > 0) {
74
+ return {
75
+ valid: false,
76
+ message: result.issues[0]?.message || "Validation failed",
77
+ issues: result.issues
78
+ };
79
+ }
80
+ return { valid: true };
81
+ }
82
+ export function validateStandardValue(schema, value) {
83
+ try {
84
+ const result = schema["~standard"].validate(value);
85
+ if (result instanceof Promise) {
86
+ return result.then(toNuGridResult).catch((error) => ({
87
+ valid: false,
88
+ message: error instanceof Error ? error.message : "Validation error"
89
+ }));
90
+ }
91
+ return toNuGridResult(result);
92
+ } catch (error) {
93
+ return {
94
+ valid: false,
95
+ message: error instanceof Error ? error.message : "Validation error"
96
+ };
97
+ }
98
+ }
99
+ function filterIssuesForField(issues, fieldPath) {
100
+ const fieldPathStr = fieldPath.join(".");
101
+ return issues.filter((issue) => {
102
+ if (!issue.path || issue.path.length === 0) return false;
103
+ const issuePath = issue.path.map((p) => typeof p === "object" && "key" in p ? p.key : p).join(".");
104
+ return issuePath === fieldPathStr || issuePath.startsWith(`${fieldPathStr}.`);
105
+ });
106
+ }
107
+ function processFieldValidationResult(result, fieldPath) {
108
+ if (!result.valid && result.issues) {
109
+ const relevantIssues = filterIssuesForField(result.issues, fieldPath);
110
+ if (relevantIssues.length > 0) {
111
+ return {
112
+ valid: false,
113
+ message: relevantIssues[0]?.message || "Validation failed",
114
+ issues: relevantIssues
115
+ };
116
+ }
117
+ return { valid: true };
118
+ }
119
+ return result;
120
+ }
121
+ export function validateFieldValue(schema, fieldPath, value, fullRowData) {
122
+ if (fullRowData) {
123
+ const candidateRow = setValueAtPath(fullRowData, fieldPath, value);
124
+ const result = validateStandardValue(schema, candidateRow);
125
+ if (result instanceof Promise) {
126
+ return result.then((r) => processFieldValidationResult(r, fieldPath));
127
+ }
128
+ return processFieldValidationResult(result, fieldPath);
129
+ }
130
+ return validateStandardValue(schema, value);
131
+ }
132
+ export function formatStandardSchemaIssues(issues) {
133
+ if (!issues || issues.length === 0) return "Validation failed";
134
+ return issues.map((issue) => {
135
+ if (issue.path && issue.path.length > 0) {
136
+ const pathStr = issue.path.map((p) => typeof p === "object" && "key" in p ? p.key : p).join(".");
137
+ return `${pathStr}: ${issue.message}`;
138
+ }
139
+ return issue.message;
140
+ }).join("; ");
141
+ }
@@ -0,0 +1,3 @@
1
+ export { default } from './module.mjs'
2
+
3
+ export { type ModuleOptions } from './module.mjs'
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "@nu-grid/nuxt",
3
+ "type": "module",
4
+ "version": "0.1.1",
5
+ "packageManager": "pnpm@10.21.0",
6
+ "description": "A powerful data grid component for Nuxt with virtualization, cell editing, and TanStack Table integration",
7
+ "license": "MIT",
8
+ "homepage": "https://www.nu-grid.dev",
9
+ "repository": "https://github.com/nu-grid/nu-grid-nuxt",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/types.d.mts",
13
+ "import": "./dist/module.mjs",
14
+ "style": "./src/runtime/index.css"
15
+ },
16
+ "./types": {
17
+ "types": "./dist/runtime/types/index.d.ts",
18
+ "import": "./dist/runtime/types/index.js"
19
+ },
20
+ "./themes": {
21
+ "types": "./dist/runtime/themes/index.d.ts",
22
+ "import": "./dist/runtime/themes/index.js"
23
+ },
24
+ "./cells": {
25
+ "types": "./dist/runtime/types/cells.d.ts",
26
+ "import": "./dist/runtime/types/cells.js"
27
+ }
28
+ },
29
+ "style": "./src/runtime/index.css",
30
+ "main": "./dist/module.mjs",
31
+ "typesVersions": {
32
+ "*": {
33
+ ".": [
34
+ "./dist/types.d.mts"
35
+ ],
36
+ "types": [
37
+ "./dist/runtime/types/index.d.ts"
38
+ ],
39
+ "themes": [
40
+ "./dist/runtime/themes/index.d.ts"
41
+ ],
42
+ "cells": [
43
+ "./dist/runtime/types/cells.d.ts"
44
+ ]
45
+ }
46
+ },
47
+ "files": [
48
+ "dist"
49
+ ],
50
+ "scripts": {
51
+ "build": "pnpm run dev:prepare && pnpm run prepack",
52
+ "prepack": "nuxt-module-build build",
53
+ "dev": "pnpm run dev:prepare && nuxi dev playgrounds/nuxt",
54
+ "dev:build": "nuxi build playgrounds/nuxt",
55
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playgrounds/nuxt",
56
+ "docs": "nuxt dev docs --uiDev",
57
+ "docs:build": "nuxt build docs",
58
+ "lint": "eslint .",
59
+ "lint:fix": "eslint --fix .",
60
+ "format": "prettier --write .",
61
+ "docs:sync-defaults": "tsx scripts/sync-default-docs.ts",
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "test:ui": "vitest --ui",
65
+ "test:coverage": "vitest run --coverage",
66
+ "test:e2e": "playwright test",
67
+ "test:e2e:ui": "playwright test --ui",
68
+ "test:types": "vue-tsc --noEmit && cd playgrounds/nuxt && vue-tsc --noEmit",
69
+ "typecheck": "nuxi typecheck",
70
+ "typecheck:playground": "nuxi typecheck playgrounds/nuxt",
71
+ "typecheck:tests": "vue-tsc --noEmit -p tsconfig.test.json --skipLibCheck 2>&1 | grep -E 'test/.*\\.ts'",
72
+ "netlify-build": "pnpm run dev:prepare && pnpm run prepack && pnpm run docs:build",
73
+ "clean": "rm -rf node_modules dist .nuxt .output coverage playgrounds/nuxt/.nuxt playgrounds/nuxt/.output playgrounds/nuxt/node_modules docs/.nuxt docs/.output docs/node_modules"
74
+ },
75
+ "peerDependencies": {
76
+ "@nuxt/ui": "^4.0.0",
77
+ "@vueuse/nuxt": "^13.0.0"
78
+ },
79
+ "peerDependenciesMeta": {
80
+ "write-excel-file": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "dependencies": {
85
+ "@nuxt/kit": "catalog:",
86
+ "@tanstack/vue-table": "catalog:",
87
+ "defu": "catalog:",
88
+ "tailwind-scrollbar": "catalog:"
89
+ },
90
+ "optionalDependencies": {
91
+ "write-excel-file": "^2.3.10"
92
+ },
93
+ "devDependencies": {
94
+ "@antfu/eslint-config": "catalog:",
95
+ "@nuxt/devtools": "catalog:",
96
+ "@nuxt/eslint": "catalog:",
97
+ "@nuxt/module-builder": "catalog:",
98
+ "@nuxt/schema": "catalog:",
99
+ "@nuxt/test-utils": "catalog:",
100
+ "@nuxt/ui": "catalog:",
101
+ "@playwright/test": "catalog:",
102
+ "@types/node": "catalog:",
103
+ "@vitest/ui": "catalog:",
104
+ "@vue/test-utils": "catalog:",
105
+ "@vueuse/nuxt": "catalog:",
106
+ "eslint": "catalog:",
107
+ "eslint-config-prettier": "catalog:",
108
+ "eslint-plugin-prettier": "catalog:",
109
+ "happy-dom": "catalog:",
110
+ "nuxt": "catalog:",
111
+ "prettier": "catalog:",
112
+ "prettier-plugin-classnames": "catalog:",
113
+ "typescript": "catalog:",
114
+ "vitest": "catalog:",
115
+ "vue-tsc": "catalog:"
116
+ }
117
+ }