@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.
- package/LICENSE.md +21 -0
- package/README.md +261 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +52 -0
- package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.d.vue.ts +12 -0
- package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.vue +123 -0
- package/dist/runtime/cell-types/action-menu/ActionMenuRenderer.vue.d.ts +12 -0
- package/dist/runtime/cell-types/action-menu/index.d.ts +8 -0
- package/dist/runtime/cell-types/action-menu/index.js +28 -0
- package/dist/runtime/cell-types/boolean/BooleanEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/boolean/BooleanEditor.vue +32 -0
- package/dist/runtime/cell-types/boolean/BooleanEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/boolean/BooleanFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/boolean/BooleanFilter.vue +42 -0
- package/dist/runtime/cell-types/boolean/BooleanFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/boolean/BooleanRenderer.d.vue.ts +13 -0
- package/dist/runtime/cell-types/boolean/BooleanRenderer.vue +23 -0
- package/dist/runtime/cell-types/boolean/BooleanRenderer.vue.d.ts +13 -0
- package/dist/runtime/cell-types/boolean/index.d.ts +8 -0
- package/dist/runtime/cell-types/boolean/index.js +31 -0
- package/dist/runtime/cell-types/currency/CurrencyEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/currency/CurrencyEditor.vue +40 -0
- package/dist/runtime/cell-types/currency/CurrencyEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/currency/CurrencyFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/currency/CurrencyFilter.vue +76 -0
- package/dist/runtime/cell-types/currency/CurrencyFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/currency/index.d.ts +6 -0
- package/dist/runtime/cell-types/currency/index.js +42 -0
- package/dist/runtime/cell-types/date/DateEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/date/DateEditor.vue +42 -0
- package/dist/runtime/cell-types/date/DateEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/date/DateFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/date/DateFilter.vue +58 -0
- package/dist/runtime/cell-types/date/DateFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/date/index.d.ts +6 -0
- package/dist/runtime/cell-types/date/index.js +13 -0
- package/dist/runtime/cell-types/index.d.ts +17 -0
- package/dist/runtime/cell-types/index.js +34 -0
- package/dist/runtime/cell-types/lookup/LookupEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/lookup/LookupEditor.vue +291 -0
- package/dist/runtime/cell-types/lookup/LookupEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/lookup/LookupRenderer.d.vue.ts +8 -0
- package/dist/runtime/cell-types/lookup/LookupRenderer.vue +43 -0
- package/dist/runtime/cell-types/lookup/LookupRenderer.vue.d.ts +8 -0
- package/dist/runtime/cell-types/lookup/index.d.ts +36 -0
- package/dist/runtime/cell-types/lookup/index.js +50 -0
- package/dist/runtime/cell-types/number/NumberEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/number/NumberEditor.vue +34 -0
- package/dist/runtime/cell-types/number/NumberEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/number/NumberFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/number/NumberFilter.vue +66 -0
- package/dist/runtime/cell-types/number/NumberFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/number/index.d.ts +6 -0
- package/dist/runtime/cell-types/number/index.js +13 -0
- package/dist/runtime/cell-types/rating/RatingEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/rating/RatingEditor.vue +219 -0
- package/dist/runtime/cell-types/rating/RatingEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/rating/RatingFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/rating/RatingFilter.vue +74 -0
- package/dist/runtime/cell-types/rating/RatingFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/rating/RatingRenderer.d.vue.ts +10 -0
- package/dist/runtime/cell-types/rating/RatingRenderer.vue +75 -0
- package/dist/runtime/cell-types/rating/RatingRenderer.vue.d.ts +10 -0
- package/dist/runtime/cell-types/rating/index.d.ts +6 -0
- package/dist/runtime/cell-types/rating/index.js +67 -0
- package/dist/runtime/cell-types/selection/SelectionEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/selection/SelectionEditor.vue +42 -0
- package/dist/runtime/cell-types/selection/SelectionEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/selection/SelectionRenderer.d.vue.ts +14 -0
- package/dist/runtime/cell-types/selection/SelectionRenderer.vue +25 -0
- package/dist/runtime/cell-types/selection/SelectionRenderer.vue.d.ts +14 -0
- package/dist/runtime/cell-types/selection/index.d.ts +8 -0
- package/dist/runtime/cell-types/selection/index.js +36 -0
- package/dist/runtime/cell-types/text/TextEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/text/TextEditor.vue +70 -0
- package/dist/runtime/cell-types/text/TextEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/text/TextFilter.d.vue.ts +7 -0
- package/dist/runtime/cell-types/text/TextFilter.vue +50 -0
- package/dist/runtime/cell-types/text/TextFilter.vue.d.ts +7 -0
- package/dist/runtime/cell-types/text/TextareaEditor.d.vue.ts +15 -0
- package/dist/runtime/cell-types/text/TextareaEditor.vue +100 -0
- package/dist/runtime/cell-types/text/TextareaEditor.vue.d.ts +15 -0
- package/dist/runtime/cell-types/text/index.d.ts +10 -0
- package/dist/runtime/cell-types/text/index.js +16 -0
- package/dist/runtime/cell-types/text/textarea.d.ts +13 -0
- package/dist/runtime/cell-types/text/textarea.js +13 -0
- package/dist/runtime/components/NuGrid.d.vue.ts +96 -0
- package/dist/runtime/components/NuGrid.vue +651 -0
- package/dist/runtime/components/NuGrid.vue.d.ts +96 -0
- package/dist/runtime/components/NuGridCellCheckbox.d.vue.ts +24 -0
- package/dist/runtime/components/NuGridCellCheckbox.vue +105 -0
- package/dist/runtime/components/NuGridCellCheckbox.vue.d.ts +24 -0
- package/dist/runtime/components/NuGridGroup.d.vue.ts +20 -0
- package/dist/runtime/components/NuGridGroup.vue +650 -0
- package/dist/runtime/components/NuGridGroup.vue.d.ts +20 -0
- package/dist/runtime/components/NuGridLazyCell.d.vue.ts +62 -0
- package/dist/runtime/components/NuGridLazyCell.vue +133 -0
- package/dist/runtime/components/NuGridLazyCell.vue.d.ts +62 -0
- package/dist/runtime/components/_internal/NuGridAddRow.d.vue.ts +36 -0
- package/dist/runtime/components/_internal/NuGridAddRow.vue +144 -0
- package/dist/runtime/components/_internal/NuGridAddRow.vue.d.ts +36 -0
- package/dist/runtime/components/_internal/NuGridBase.d.vue.ts +20 -0
- package/dist/runtime/components/_internal/NuGridBase.vue +1172 -0
- package/dist/runtime/components/_internal/NuGridBase.vue.d.ts +20 -0
- package/dist/runtime/components/_internal/NuGridCellContent.d.vue.ts +9 -0
- package/dist/runtime/components/_internal/NuGridCellContent.vue +202 -0
- package/dist/runtime/components/_internal/NuGridCellContent.vue.d.ts +9 -0
- package/dist/runtime/components/_internal/NuGridColumnMenu.d.vue.ts +25 -0
- package/dist/runtime/components/_internal/NuGridColumnMenu.vue +391 -0
- package/dist/runtime/components/_internal/NuGridColumnMenu.vue.d.ts +25 -0
- package/dist/runtime/components/_internal/NuGridGroup.d.vue.ts +20 -0
- package/dist/runtime/components/_internal/NuGridGroup.vue +650 -0
- package/dist/runtime/components/_internal/NuGridGroup.vue.d.ts +20 -0
- package/dist/runtime/components/_internal/NuGridGroupCheckbox.d.vue.ts +22 -0
- package/dist/runtime/components/_internal/NuGridGroupCheckbox.vue +132 -0
- package/dist/runtime/components/_internal/NuGridGroupCheckbox.vue.d.ts +22 -0
- package/dist/runtime/components/_internal/NuGridHeaderSortButton.d.vue.ts +31 -0
- package/dist/runtime/components/_internal/NuGridHeaderSortButton.vue +61 -0
- package/dist/runtime/components/_internal/NuGridHeaderSortButton.vue.d.ts +31 -0
- package/dist/runtime/components/_internal/NuGridPaging.d.vue.ts +3 -0
- package/dist/runtime/components/_internal/NuGridPaging.vue +65 -0
- package/dist/runtime/components/_internal/NuGridPaging.vue.d.ts +3 -0
- package/dist/runtime/components/_internal/NuGridRow.d.vue.ts +40 -0
- package/dist/runtime/components/_internal/NuGridRow.vue +645 -0
- package/dist/runtime/components/_internal/NuGridRow.vue.d.ts +40 -0
- package/dist/runtime/components/_internal/NuGridSplitGroup.d.vue.ts +20 -0
- package/dist/runtime/components/_internal/NuGridSplitGroup.vue +735 -0
- package/dist/runtime/components/_internal/NuGridSplitGroup.vue.d.ts +20 -0
- package/dist/runtime/components/_internal/NuGridTooltip.d.vue.ts +3 -0
- package/dist/runtime/components/_internal/NuGridTooltip.vue +36 -0
- package/dist/runtime/components/_internal/NuGridTooltip.vue.d.ts +3 -0
- package/dist/runtime/composables/_internal/index.d.ts +31 -0
- package/dist/runtime/composables/_internal/index.js +28 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/index.d.ts +5 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/index.js +9 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardCellTypeDispatch.d.ts +18 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardCellTypeDispatch.js +53 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardEditingTriggers.d.ts +12 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardEditingTriggers.js +53 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardNavigation.d.ts +9 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardNavigation.js +35 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardSetup.d.ts +33 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/useKeyboardSetup.js +111 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/usePagingKeyboard.d.ts +11 -0
- package/dist/runtime/composables/_internal/keyboard-handlers/usePagingKeyboard.js +67 -0
- package/dist/runtime/composables/_internal/useNuGridActionMenu.d.ts +15 -0
- package/dist/runtime/composables/_internal/useNuGridActionMenu.js +137 -0
- package/dist/runtime/composables/_internal/useNuGridAddRow.d.ts +39 -0
- package/dist/runtime/composables/_internal/useNuGridAddRow.js +735 -0
- package/dist/runtime/composables/_internal/useNuGridAnimation.d.ts +33 -0
- package/dist/runtime/composables/_internal/useNuGridAnimation.js +178 -0
- package/dist/runtime/composables/_internal/useNuGridAutosize.d.ts +14 -0
- package/dist/runtime/composables/_internal/useNuGridAutosize.js +161 -0
- package/dist/runtime/composables/_internal/useNuGridCellEditing.d.ts +15 -0
- package/dist/runtime/composables/_internal/useNuGridCellEditing.js +1243 -0
- package/dist/runtime/composables/_internal/useNuGridColumnDragDrop.d.ts +8 -0
- package/dist/runtime/composables/_internal/useNuGridColumnDragDrop.js +148 -0
- package/dist/runtime/composables/_internal/useNuGridColumnPinning.d.ts +15 -0
- package/dist/runtime/composables/_internal/useNuGridColumnPinning.js +44 -0
- package/dist/runtime/composables/_internal/useNuGridColumnResize.d.ts +22 -0
- package/dist/runtime/composables/_internal/useNuGridColumnResize.js +427 -0
- package/dist/runtime/composables/_internal/useNuGridCore.d.ts +62 -0
- package/dist/runtime/composables/_internal/useNuGridCore.js +359 -0
- package/dist/runtime/composables/_internal/useNuGridExcel.d.ts +60 -0
- package/dist/runtime/composables/_internal/useNuGridExcel.js +35 -0
- package/dist/runtime/composables/_internal/useNuGridFocus.d.ts +15 -0
- package/dist/runtime/composables/_internal/useNuGridFocus.js +1378 -0
- package/dist/runtime/composables/_internal/useNuGridGroupSelection.d.ts +13 -0
- package/dist/runtime/composables/_internal/useNuGridGroupSelection.js +38 -0
- package/dist/runtime/composables/_internal/useNuGridGrouping.d.ts +28 -0
- package/dist/runtime/composables/_internal/useNuGridGrouping.js +211 -0
- package/dist/runtime/composables/_internal/useNuGridInteractionRouter.d.ts +9 -0
- package/dist/runtime/composables/_internal/useNuGridInteractionRouter.js +441 -0
- package/dist/runtime/composables/_internal/useNuGridInteractions.d.ts +10 -0
- package/dist/runtime/composables/_internal/useNuGridInteractions.js +36 -0
- package/dist/runtime/composables/_internal/useNuGridKeyboardNavigation.d.ts +54 -0
- package/dist/runtime/composables/_internal/useNuGridKeyboardNavigation.js +407 -0
- package/dist/runtime/composables/_internal/useNuGridPaging.d.ts +76 -0
- package/dist/runtime/composables/_internal/useNuGridPaging.js +147 -0
- package/dist/runtime/composables/_internal/useNuGridRowDragDrop.d.ts +68 -0
- package/dist/runtime/composables/_internal/useNuGridRowDragDrop.js +295 -0
- package/dist/runtime/composables/_internal/useNuGridRowSelection.d.ts +14 -0
- package/dist/runtime/composables/_internal/useNuGridRowSelection.js +214 -0
- package/dist/runtime/composables/_internal/useNuGridScroll.d.ts +110 -0
- package/dist/runtime/composables/_internal/useNuGridScroll.js +463 -0
- package/dist/runtime/composables/_internal/useNuGridScrollState.d.ts +32 -0
- package/dist/runtime/composables/_internal/useNuGridScrollState.js +60 -0
- package/dist/runtime/composables/_internal/useNuGridScrollbars.d.ts +24 -0
- package/dist/runtime/composables/_internal/useNuGridScrollbars.js +69 -0
- package/dist/runtime/composables/_internal/useNuGridStatePersistence.d.ts +27 -0
- package/dist/runtime/composables/_internal/useNuGridStatePersistence.js +243 -0
- package/dist/runtime/composables/_internal/useNuGridTooltip.d.ts +41 -0
- package/dist/runtime/composables/_internal/useNuGridTooltip.js +304 -0
- package/dist/runtime/composables/_internal/useNuGridUI.d.ts +3283 -0
- package/dist/runtime/composables/_internal/useNuGridUI.js +58 -0
- package/dist/runtime/composables/_internal/useNuGridVirtualization.d.ts +75 -0
- package/dist/runtime/composables/_internal/useNuGridVirtualization.js +534 -0
- package/dist/runtime/composables/_internal/useNuGridWheelSmoothing.d.ts +25 -0
- package/dist/runtime/composables/_internal/useNuGridWheelSmoothing.js +157 -0
- package/dist/runtime/composables/index.d.ts +3 -0
- package/dist/runtime/composables/index.js +2 -0
- package/dist/runtime/composables/useNuGridCellEditor.d.ts +91 -0
- package/dist/runtime/composables/useNuGridCellEditor.js +82 -0
- package/dist/runtime/composables/useNuGridCellTypeRegistry.d.ts +85 -0
- package/dist/runtime/composables/useNuGridCellTypeRegistry.js +202 -0
- package/dist/runtime/config/_internal/index.d.ts +5 -0
- package/dist/runtime/config/_internal/index.js +2 -0
- package/dist/runtime/config/_internal/options-defaults.d.ts +121 -0
- package/dist/runtime/config/_internal/options-defaults.js +121 -0
- package/dist/runtime/config/_internal/prop-utils.d.ts +54 -0
- package/dist/runtime/config/_internal/prop-utils.js +21 -0
- package/dist/runtime/config/config.d.ts +44 -0
- package/dist/runtime/config/config.js +18 -0
- package/dist/runtime/config/index.d.ts +2 -0
- package/dist/runtime/config/index.js +2 -0
- package/dist/runtime/config/presets.d.ts +15 -0
- package/dist/runtime/config/presets.js +58 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/plugin.d.ts +5 -0
- package/dist/runtime/plugin.js +10 -0
- package/dist/runtime/themes/index.d.ts +56 -0
- package/dist/runtime/themes/index.js +68 -0
- package/dist/runtime/themes/nuGridTheme.d.ts +329 -0
- package/dist/runtime/themes/nuGridTheme.js +236 -0
- package/dist/runtime/themes/nuGridThemeCompact.d.ts +331 -0
- package/dist/runtime/themes/nuGridThemeCompact.js +236 -0
- package/dist/runtime/types/_internal/action-menu.d.ts +55 -0
- package/dist/runtime/types/_internal/action-menu.js +0 -0
- package/dist/runtime/types/_internal/cell-editing.d.ts +75 -0
- package/dist/runtime/types/_internal/cell-editing.js +0 -0
- package/dist/runtime/types/_internal/composable-returns.d.ts +52 -0
- package/dist/runtime/types/_internal/composable-returns.js +0 -0
- package/dist/runtime/types/_internal/config.d.ts +16 -0
- package/dist/runtime/types/_internal/config.js +0 -0
- package/dist/runtime/types/_internal/contexts/add-row.d.ts +25 -0
- package/dist/runtime/types/_internal/contexts/add-row.js +0 -0
- package/dist/runtime/types/_internal/contexts/animation.d.ts +24 -0
- package/dist/runtime/types/_internal/contexts/animation.js +0 -0
- package/dist/runtime/types/_internal/contexts/core.d.ts +24 -0
- package/dist/runtime/types/_internal/contexts/core.js +0 -0
- package/dist/runtime/types/_internal/contexts/drag.d.ts +13 -0
- package/dist/runtime/types/_internal/contexts/drag.js +0 -0
- package/dist/runtime/types/_internal/contexts/focus.d.ts +11 -0
- package/dist/runtime/types/_internal/contexts/focus.js +0 -0
- package/dist/runtime/types/_internal/contexts/grouping.d.ts +9 -0
- package/dist/runtime/types/_internal/contexts/grouping.js +0 -0
- package/dist/runtime/types/_internal/contexts/index.d.ts +15 -0
- package/dist/runtime/types/_internal/contexts/index.js +0 -0
- package/dist/runtime/types/_internal/contexts/interaction-router.d.ts +5 -0
- package/dist/runtime/types/_internal/contexts/interaction-router.js +0 -0
- package/dist/runtime/types/_internal/contexts/multi-row.d.ts +40 -0
- package/dist/runtime/types/_internal/contexts/multi-row.js +0 -0
- package/dist/runtime/types/_internal/contexts/paging.d.ts +39 -0
- package/dist/runtime/types/_internal/contexts/paging.js +0 -0
- package/dist/runtime/types/_internal/contexts/performance.d.ts +15 -0
- package/dist/runtime/types/_internal/contexts/performance.js +0 -0
- package/dist/runtime/types/_internal/contexts/resize.d.ts +12 -0
- package/dist/runtime/types/_internal/contexts/resize.js +0 -0
- package/dist/runtime/types/_internal/contexts/row-interactions.d.ts +12 -0
- package/dist/runtime/types/_internal/contexts/row-interactions.js +0 -0
- package/dist/runtime/types/_internal/contexts/scroll-state.d.ts +21 -0
- package/dist/runtime/types/_internal/contexts/scroll-state.js +0 -0
- package/dist/runtime/types/_internal/contexts/ui-config.d.ts +21 -0
- package/dist/runtime/types/_internal/contexts/ui-config.js +0 -0
- package/dist/runtime/types/_internal/contexts/virtualization.d.ts +16 -0
- package/dist/runtime/types/_internal/contexts/virtualization.js +0 -0
- package/dist/runtime/types/_internal/drag-drop.d.ts +48 -0
- package/dist/runtime/types/_internal/drag-drop.js +0 -0
- package/dist/runtime/types/_internal/focus.d.ts +68 -0
- package/dist/runtime/types/_internal/focus.js +0 -0
- package/dist/runtime/types/_internal/grouping.d.ts +48 -0
- package/dist/runtime/types/_internal/grouping.js +0 -0
- package/dist/runtime/types/_internal/index.d.ts +37 -0
- package/dist/runtime/types/_internal/index.js +2 -0
- package/dist/runtime/types/_internal/interaction-router.d.ts +176 -0
- package/dist/runtime/types/_internal/interaction-router.js +39 -0
- package/dist/runtime/types/_internal/props.d.ts +28 -0
- package/dist/runtime/types/_internal/props.js +0 -0
- package/dist/runtime/types/_internal/resize.d.ts +37 -0
- package/dist/runtime/types/_internal/resize.js +0 -0
- package/dist/runtime/types/_internal/row-interactions.d.ts +15 -0
- package/dist/runtime/types/_internal/row-interactions.js +0 -0
- package/dist/runtime/types/_internal/row-selection.d.ts +27 -0
- package/dist/runtime/types/_internal/row-selection.js +0 -0
- package/dist/runtime/types/_internal/states.d.ts +24 -0
- package/dist/runtime/types/_internal/states.js +0 -0
- package/dist/runtime/types/_internal/sticky-headers.d.ts +10 -0
- package/dist/runtime/types/_internal/sticky-headers.js +0 -0
- package/dist/runtime/types/_internal/validation.d.ts +54 -0
- package/dist/runtime/types/_internal/validation.js +0 -0
- package/dist/runtime/types/_internal/virtualization.d.ts +114 -0
- package/dist/runtime/types/_internal/virtualization.js +0 -0
- package/dist/runtime/types/action-menu.d.ts +62 -0
- package/dist/runtime/types/action-menu.js +0 -0
- package/dist/runtime/types/autosize.d.ts +8 -0
- package/dist/runtime/types/autosize.js +0 -0
- package/dist/runtime/types/cells.d.ts +292 -0
- package/dist/runtime/types/cells.js +5 -0
- package/dist/runtime/types/column.d.ts +248 -0
- package/dist/runtime/types/column.js +0 -0
- package/dist/runtime/types/config.d.ts +35 -0
- package/dist/runtime/types/config.js +0 -0
- package/dist/runtime/types/drag-drop.d.ts +92 -0
- package/dist/runtime/types/drag-drop.js +0 -0
- package/dist/runtime/types/events.d.ts +164 -0
- package/dist/runtime/types/events.js +1 -0
- package/dist/runtime/types/focus.d.ts +50 -0
- package/dist/runtime/types/focus.js +0 -0
- package/dist/runtime/types/grouping.d.ts +7 -0
- package/dist/runtime/types/grouping.js +0 -0
- package/dist/runtime/types/index.d.ts +15 -0
- package/dist/runtime/types/index.js +0 -0
- package/dist/runtime/types/option-groups.d.ts +624 -0
- package/dist/runtime/types/option-groups.js +0 -0
- package/dist/runtime/types/props.d.ts +418 -0
- package/dist/runtime/types/props.js +0 -0
- package/dist/runtime/types/resize.d.ts +14 -0
- package/dist/runtime/types/resize.js +0 -0
- package/dist/runtime/types/row-interactions.d.ts +11 -0
- package/dist/runtime/types/row-interactions.js +0 -0
- package/dist/runtime/types/row-selection.d.ts +48 -0
- package/dist/runtime/types/row-selection.js +0 -0
- package/dist/runtime/types/row.d.ts +7 -0
- package/dist/runtime/types/row.js +0 -0
- package/dist/runtime/types/sort-icon.d.ts +35 -0
- package/dist/runtime/types/sort-icon.js +0 -0
- package/dist/runtime/types/states.d.ts +17 -0
- package/dist/runtime/types/states.js +0 -0
- package/dist/runtime/types/sticky-headers.d.ts +6 -0
- package/dist/runtime/types/sticky-headers.js +0 -0
- package/dist/runtime/types/tanstack-table.d.ts +126 -0
- package/dist/runtime/types/theme.d.ts +22 -0
- package/dist/runtime/types/theme.js +0 -0
- package/dist/runtime/types/validation.d.ts +94 -0
- package/dist/runtime/types/validation.js +0 -0
- package/dist/runtime/utils/columnHelper.d.ts +208 -0
- package/dist/runtime/utils/columnHelper.js +23 -0
- package/dist/runtime/utils/excelExport.d.ts +63 -0
- package/dist/runtime/utils/excelExport.js +297 -0
- package/dist/runtime/utils/index.d.ts +2 -0
- package/dist/runtime/utils/index.js +2 -0
- package/dist/runtime/utils/standardSchema.d.ts +77 -0
- package/dist/runtime/utils/standardSchema.js +141 -0
- package/dist/types.d.mts +3 -0
- package/package.json +117 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Cell, Column, ColumnFiltersState, Row, SortingState } from '@tanstack/vue-table';
|
|
3
|
+
import type { NuGridStateSnapshot } from '../composables/_internal/useNuGridStatePersistence.js';
|
|
4
|
+
import type { RowDragEvent } from './drag-drop.js';
|
|
5
|
+
/**
|
|
6
|
+
* Event payload for cell click events
|
|
7
|
+
*/
|
|
8
|
+
export interface NuGridCellClickEvent<T extends TableData = TableData> {
|
|
9
|
+
/** The row containing the clicked cell */
|
|
10
|
+
row: Row<T>;
|
|
11
|
+
/** The column definition of the clicked cell */
|
|
12
|
+
column: Column<T, unknown>;
|
|
13
|
+
/** The cell that was clicked */
|
|
14
|
+
cell: Cell<T, unknown>;
|
|
15
|
+
/** The current value of the cell */
|
|
16
|
+
value: unknown;
|
|
17
|
+
/** The original mouse event */
|
|
18
|
+
event: MouseEvent;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Event payload for row click events
|
|
22
|
+
*/
|
|
23
|
+
export interface NuGridRowClickEvent<T extends TableData = TableData> {
|
|
24
|
+
/** The row that was clicked */
|
|
25
|
+
row: Row<T>;
|
|
26
|
+
/** The original mouse event */
|
|
27
|
+
event: MouseEvent;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Event payload for focused cell changed events
|
|
31
|
+
*/
|
|
32
|
+
export interface NuGridFocusedCellChangedEvent<T extends TableData = TableData> {
|
|
33
|
+
/** Current row ID (null if no cell focused) */
|
|
34
|
+
rowId: string | null;
|
|
35
|
+
/** Current column ID (null if no cell focused) */
|
|
36
|
+
columnId: string | null;
|
|
37
|
+
/** Current row index (-1 if no cell focused) */
|
|
38
|
+
rowIndex: number;
|
|
39
|
+
/** Current column index (-1 if no cell focused) */
|
|
40
|
+
columnIndex: number;
|
|
41
|
+
/** The currently focused row (null if no cell focused) */
|
|
42
|
+
row: Row<T> | null;
|
|
43
|
+
/** The currently focused column (null if no cell focused) */
|
|
44
|
+
column: Column<T, unknown> | null;
|
|
45
|
+
/** Previous row index (null if no previous focus) */
|
|
46
|
+
previousRowIndex: number | null;
|
|
47
|
+
/** Previous column index (null if no previous focus) */
|
|
48
|
+
previousColumnIndex: number | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Event payload for focused row changed events
|
|
52
|
+
*/
|
|
53
|
+
export interface NuGridFocusedRowChangedEvent<T extends TableData = TableData> {
|
|
54
|
+
/** Current row ID (null if no row focused) */
|
|
55
|
+
rowId: string | null;
|
|
56
|
+
/** Current row index (-1 if no row focused) */
|
|
57
|
+
rowIndex: number;
|
|
58
|
+
/** The currently focused row (null if no row focused) */
|
|
59
|
+
row: Row<T> | null;
|
|
60
|
+
/** Previous row index (null if no previous focus) */
|
|
61
|
+
previousRowIndex: number | null;
|
|
62
|
+
/** The previously focused row (null if no previous focus) */
|
|
63
|
+
previousRow: Row<T> | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Event payload for cell editing started events
|
|
67
|
+
*/
|
|
68
|
+
export interface NuGridCellEditingStartedEvent<T extends TableData = TableData> {
|
|
69
|
+
/** The row being edited */
|
|
70
|
+
row: Row<T>;
|
|
71
|
+
/** The column being edited */
|
|
72
|
+
column: Column<T, unknown>;
|
|
73
|
+
/** The initial value when editing started */
|
|
74
|
+
value: unknown;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Event payload for cell editing cancelled events
|
|
78
|
+
*/
|
|
79
|
+
export interface NuGridCellEditingCancelledEvent<T extends TableData = TableData> {
|
|
80
|
+
/** The row that was being edited */
|
|
81
|
+
row: Row<T>;
|
|
82
|
+
/** The column that was being edited */
|
|
83
|
+
column: Column<T, unknown>;
|
|
84
|
+
/** The value when editing was cancelled */
|
|
85
|
+
value: unknown;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Event payload for cell value changed events
|
|
89
|
+
*/
|
|
90
|
+
export interface NuGridCellValueChangedEvent<T extends TableData = TableData> {
|
|
91
|
+
/** The row that was modified */
|
|
92
|
+
row: Row<T>;
|
|
93
|
+
/** The column that was modified */
|
|
94
|
+
column: Column<T, unknown>;
|
|
95
|
+
/** The previous value before the change */
|
|
96
|
+
oldValue: unknown;
|
|
97
|
+
/** The new value after the change */
|
|
98
|
+
newValue: unknown;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Event payload for sort changed events
|
|
102
|
+
*/
|
|
103
|
+
export interface NuGridSortChangedEvent {
|
|
104
|
+
/** The current sorting state */
|
|
105
|
+
sorting: SortingState;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Event payload for filter changed events
|
|
109
|
+
*/
|
|
110
|
+
export interface NuGridFilterChangedEvent {
|
|
111
|
+
/** The current column filters state */
|
|
112
|
+
columnFilters: ColumnFiltersState;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Centralized event emitter interface for NuGrid events.
|
|
116
|
+
* This is provided at the grid level and injected into composables
|
|
117
|
+
* to emit events without threading callbacks through parameters.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```typescript
|
|
121
|
+
* // In NuGrid.vue
|
|
122
|
+
* const eventEmitter: NuGridEventEmitter<T> = {
|
|
123
|
+
* cellClicked: (e) => emit('cellClicked', e),
|
|
124
|
+
* // ... other events
|
|
125
|
+
* }
|
|
126
|
+
* provide('nugrid-events', eventEmitter)
|
|
127
|
+
*
|
|
128
|
+
* // In composables
|
|
129
|
+
* const eventEmitter = inject<NuGridEventEmitter<T>>('nugrid-events')
|
|
130
|
+
* eventEmitter?.cellClicked?.(event)
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
export interface NuGridEventEmitter<T extends TableData = TableData> {
|
|
134
|
+
/** Emit when a cell is clicked */
|
|
135
|
+
cellClicked?: (event: NuGridCellClickEvent<T>) => void;
|
|
136
|
+
/** Emit when a cell is double-clicked */
|
|
137
|
+
cellDoubleClicked?: (event: NuGridCellClickEvent<T>) => void;
|
|
138
|
+
/** Emit when a row is clicked */
|
|
139
|
+
rowClicked?: (event: NuGridRowClickEvent<T>) => void;
|
|
140
|
+
/** Emit when a row is double-clicked */
|
|
141
|
+
rowDoubleClicked?: (event: NuGridRowClickEvent<T>) => void;
|
|
142
|
+
/** Emit when the focused cell changes */
|
|
143
|
+
focusedCellChanged?: (event: NuGridFocusedCellChangedEvent<T>) => void;
|
|
144
|
+
/** Emit when the focused row changes */
|
|
145
|
+
focusedRowChanged?: (event: NuGridFocusedRowChangedEvent<T>) => void;
|
|
146
|
+
/** Emit when cell editing starts */
|
|
147
|
+
cellEditingStarted?: (event: NuGridCellEditingStartedEvent<T>) => void;
|
|
148
|
+
/** Emit when cell editing is cancelled */
|
|
149
|
+
cellEditingCancelled?: (event: NuGridCellEditingCancelledEvent<T>) => void;
|
|
150
|
+
/** Emit when a cell value is changed */
|
|
151
|
+
cellValueChanged?: (event: NuGridCellValueChangedEvent<T>) => void;
|
|
152
|
+
/** Emit when sorting changes */
|
|
153
|
+
sortChanged?: (event: NuGridSortChangedEvent) => void;
|
|
154
|
+
/** Emit when column filters change */
|
|
155
|
+
filterChanged?: (event: NuGridFilterChangedEvent) => void;
|
|
156
|
+
/** Emit when a row is dragged and dropped */
|
|
157
|
+
rowDragged?: (event: RowDragEvent<T>) => void;
|
|
158
|
+
/** Emit when grid state changes (for persistence) */
|
|
159
|
+
stateChanged?: (state: NuGridStateSnapshot) => void;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Injection key for the event emitter
|
|
163
|
+
*/
|
|
164
|
+
export declare const NUGRID_EVENTS_KEY: "nugrid-events";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const NUGRID_EVENTS_KEY = "nugrid-events";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Row } from '@tanstack/vue-table';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Focused cell position
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface NuGridFocusedCell {
|
|
9
|
+
rowIndex: number;
|
|
10
|
+
columnIndex: number;
|
|
11
|
+
groupId?: string;
|
|
12
|
+
suppressOutline?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Type for nugrid-focusfns injection
|
|
16
|
+
* Provides cell and row focus management
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export interface NuGridFocus<T extends TableData = TableData> {
|
|
20
|
+
focusedCell: Ref<NuGridFocusedCell | null>;
|
|
21
|
+
gridHasFocus: Ref<boolean>;
|
|
22
|
+
onCellClick: (e: Event, row: Row<T>, columnIndex: number) => void;
|
|
23
|
+
onCellKeyDown: (e: KeyboardEvent) => void;
|
|
24
|
+
onCellKeyUp: (e: KeyboardEvent) => void;
|
|
25
|
+
getRowTabIndex: (row: Row<T>) => number;
|
|
26
|
+
shouldRowHandleKeydown: (row: Row<T>) => boolean;
|
|
27
|
+
getCellTabIndex: (row: Row<T>, cellIndex: number) => number;
|
|
28
|
+
shouldCellHandleKeydown: (row: Row<T>, cellIndex: number) => boolean;
|
|
29
|
+
isActiveRow: (row: Row<T>) => boolean;
|
|
30
|
+
isFocusedRow: (row: Row<T>) => boolean;
|
|
31
|
+
isFocusedCell: (row: Row<T>, cellIndex: number) => boolean;
|
|
32
|
+
rowFocusProps: (row: Row<T>) => Record<string, unknown>;
|
|
33
|
+
cellFocusProps: (row: Row<T>, cellIndex: number) => Record<string, unknown>;
|
|
34
|
+
focusCell: (targetRow: Row<T>, newRowIndex: number, newColumnIndex: number) => void;
|
|
35
|
+
findFirstFocusableColumn: (row: Row<T>) => number;
|
|
36
|
+
/** Get a cell element by row ID and column index (uses internal cache for performance) */
|
|
37
|
+
getCellElement: (rowId: string, columnIndex: number) => HTMLElement | null;
|
|
38
|
+
/** Ensure footer rows are visible when scrolling to bottom of grid */
|
|
39
|
+
ensureFootersVisible: (scrollContainer: HTMLElement) => void;
|
|
40
|
+
/** Scroll to a cell and focus it, with proper scroll management */
|
|
41
|
+
scrollToCellAndFocus: (options: {
|
|
42
|
+
cellElement: HTMLElement;
|
|
43
|
+
rowId: string;
|
|
44
|
+
rowIndex: number;
|
|
45
|
+
columnIndex: number;
|
|
46
|
+
behavior?: 'instant' | 'smooth';
|
|
47
|
+
skipHorizontalScroll?: boolean;
|
|
48
|
+
onComplete?: () => void;
|
|
49
|
+
}) => void;
|
|
50
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GroupingOptions } from '@tanstack/vue-table';
|
|
2
|
+
/**
|
|
3
|
+
* NuGridGroupingOptions extends TanStack's GroupingOptions type.
|
|
4
|
+
* This wrapper type allows for future NuGrid-specific extensions
|
|
5
|
+
* without breaking changes to the public API.
|
|
6
|
+
*/
|
|
7
|
+
export type NuGridGroupingOptions = Omit<GroupingOptions, 'onGroupingChange'>;
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { NuGridAddRowFinalizeResult, NuGridAddRowState } from './_internal/contexts/add-row.js';
|
|
2
|
+
export type { NuGridActionMenuItem, NuGridActionMenuOptions } from './action-menu.js';
|
|
3
|
+
export type { NuGridAutosize } from './autosize.js';
|
|
4
|
+
export type { NuGridCellEditorEmits, NuGridCellEditorProps, NuGridCellRenderContext, NuGridCellType, NuGridCellTypeContext, NuGridCellTypeKeyboardResult, NuGridFilterConfig, NuGridFilterContext, NuGridFilterOperator, NuGridRendererConfig, NuGridValidationResult, } from './cells.js';
|
|
5
|
+
export type { NuGridColumn, NuGridColumnMenuItem, NuGridColumnMenuItemsCallback } from './column.js';
|
|
6
|
+
export type { RowDragEvent } from './drag-drop.js';
|
|
7
|
+
export type { NUGRID_EVENTS_KEY, NuGridCellClickEvent, NuGridCellEditingCancelledEvent, NuGridCellEditingStartedEvent, NuGridCellValueChangedEvent, NuGridEventEmitter, NuGridFilterChangedEvent, NuGridFocusedCellChangedEvent, NuGridFocusedRowChangedEvent, NuGridRowClickEvent, NuGridSortChangedEvent, } from './events.js';
|
|
8
|
+
export type { NuGridGroupingOptions } from './grouping.js';
|
|
9
|
+
export type { NuGridActionsOptions, NuGridAnimationOptions, NuGridAnimationPreset, NuGridAutoSizeStrategy, NuGridColumnMenuOptions, NuGridColumnMenuPreset, NuGridColumnPlacement, NuGridEditingOptions, NuGridExcelExportOptions, NuGridFocusOptions, NuGridLayoutMode, NuGridLayoutOptions, NuGridLookupItem, NuGridLookupOptions, NuGridMultiRowOptions, NuGridPagingOptions, NuGridSelectionOptions, NuGridStateOptions, NuGridStatePart, NuGridStorageType, NuGridTooltipOptions, } from './option-groups.js';
|
|
10
|
+
export type { NuGridProps, NuGridScrollbars } from './props.js';
|
|
11
|
+
export type { NuGridRow } from './row.js';
|
|
12
|
+
export type { NuGridRowSelectOptions } from './row-selection.js';
|
|
13
|
+
export type { NuGridSortIcon } from './sort-icon.js';
|
|
14
|
+
export type { NuGridTheme, NuGridThemeDefinition } from './theme.js';
|
|
15
|
+
export type { NuGridOnInvalid, NuGridShowErrors, NuGridValidateOn, NuGridValidationOptions, } from './validation.js';
|
|
File without changes
|