@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,33 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Row } from '@tanstack/vue-table';
|
|
3
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
4
|
+
import type { NuGridProps } from '../../types/index.js';
|
|
5
|
+
import type { NuGridAnimationContext } from '../../types/_internal/index.js';
|
|
6
|
+
interface NuGridAnimationOptions<T extends TableData> {
|
|
7
|
+
/** Root element ref for finding row elements */
|
|
8
|
+
rootRef: Ref<HTMLElement | null>;
|
|
9
|
+
/** Rows that trigger animation when order changes (sorted/filtered output from TanStack) */
|
|
10
|
+
rows: ComputedRef<Row<T>[]>;
|
|
11
|
+
/** Animation class from theme (overrides preset if provided) */
|
|
12
|
+
animationClass?: ComputedRef<string>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Composable for NuGrid row animations
|
|
16
|
+
*
|
|
17
|
+
* Provides:
|
|
18
|
+
* - Animation configuration from props
|
|
19
|
+
* - Row animation execution (refresh effect on reorder)
|
|
20
|
+
* - Accessibility support (prefers-reduced-motion)
|
|
21
|
+
* - Animation presets and customization
|
|
22
|
+
*
|
|
23
|
+
* Animations are triggered by:
|
|
24
|
+
* - Sorting changes
|
|
25
|
+
* - Filtering changes
|
|
26
|
+
* - Row additions/removals
|
|
27
|
+
*
|
|
28
|
+
* @param props - NuGrid props
|
|
29
|
+
* @param options - Animation options (rootRef, rows)
|
|
30
|
+
* @returns Animation context with computed values
|
|
31
|
+
*/
|
|
32
|
+
export declare function useNuGridAnimation<T extends TableData = TableData>(props: NuGridProps<T>, options?: NuGridAnimationOptions<T>): NuGridAnimationContext;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { usePreferredReducedMotion } from "@vueuse/core";
|
|
2
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
|
+
import { usePropWithDefault } from "../../config/_internal/index.js";
|
|
4
|
+
const presetClasses = {
|
|
5
|
+
refresh: "animate-nugrid-refresh",
|
|
6
|
+
fade: "animate-nugrid-fade",
|
|
7
|
+
slide: "animate-nugrid-slide",
|
|
8
|
+
scale: "animate-nugrid-scale"
|
|
9
|
+
};
|
|
10
|
+
export function useNuGridAnimation(props, options) {
|
|
11
|
+
const enabledProp = usePropWithDefault(props, "animation", "enabled");
|
|
12
|
+
const presetProp = usePropWithDefault(props, "animation", "preset");
|
|
13
|
+
const durationProp = usePropWithDefault(props, "animation", "duration");
|
|
14
|
+
const easingProp = usePropWithDefault(props, "animation", "easing");
|
|
15
|
+
const staggerProp = usePropWithDefault(props, "animation", "stagger");
|
|
16
|
+
const maxStaggerProp = usePropWithDefault(props, "animation", "maxStagger");
|
|
17
|
+
const preferredMotion = usePreferredReducedMotion();
|
|
18
|
+
const prefersReducedMotion = computed(() => preferredMotion.value === "reduce");
|
|
19
|
+
const isMounted = ref(false);
|
|
20
|
+
let mountTimer;
|
|
21
|
+
onMounted(() => {
|
|
22
|
+
mountTimer = setTimeout(() => {
|
|
23
|
+
isMounted.value = true;
|
|
24
|
+
}, 250);
|
|
25
|
+
});
|
|
26
|
+
onBeforeUnmount(() => {
|
|
27
|
+
if (mountTimer) {
|
|
28
|
+
clearTimeout(mountTimer);
|
|
29
|
+
mountTimer = void 0;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const enabled = computed(() => {
|
|
33
|
+
if (!isMounted.value) return false;
|
|
34
|
+
if (prefersReducedMotion.value) return false;
|
|
35
|
+
if (props.animation === false) return false;
|
|
36
|
+
return enabledProp.value;
|
|
37
|
+
});
|
|
38
|
+
const duration = computed(() => durationProp.value);
|
|
39
|
+
const easing = computed(() => easingProp.value);
|
|
40
|
+
const stagger = computed(() => staggerProp.value);
|
|
41
|
+
const maxStagger = computed(() => maxStaggerProp.value);
|
|
42
|
+
const presetExplicit = computed(() => {
|
|
43
|
+
const anim = props.animation;
|
|
44
|
+
if (!anim || typeof anim !== "object") return false;
|
|
45
|
+
return Object.prototype.hasOwnProperty.call(anim, "preset");
|
|
46
|
+
});
|
|
47
|
+
const animationClass = computed(() => {
|
|
48
|
+
if (options?.animationClass?.value && !presetExplicit.value) {
|
|
49
|
+
return options.animationClass.value;
|
|
50
|
+
}
|
|
51
|
+
return presetClasses[presetProp.value] ?? presetClasses.refresh;
|
|
52
|
+
});
|
|
53
|
+
let currentAnimationId = 0;
|
|
54
|
+
const isAnimating = ref(false);
|
|
55
|
+
let cleanupTimer = null;
|
|
56
|
+
let activeAnimationListeners = [];
|
|
57
|
+
let previousRowIds = [];
|
|
58
|
+
function cancelAnimation() {
|
|
59
|
+
currentAnimationId++;
|
|
60
|
+
if (cleanupTimer) {
|
|
61
|
+
clearTimeout(cleanupTimer);
|
|
62
|
+
cleanupTimer = null;
|
|
63
|
+
}
|
|
64
|
+
if (activeAnimationListeners.length) {
|
|
65
|
+
activeAnimationListeners.forEach(
|
|
66
|
+
({ el, handler }) => el.removeEventListener("animationend", handler)
|
|
67
|
+
);
|
|
68
|
+
activeAnimationListeners = [];
|
|
69
|
+
}
|
|
70
|
+
if (options?.rootRef.value) {
|
|
71
|
+
const rowElements = options.rootRef.value.querySelectorAll("[data-row-id]");
|
|
72
|
+
rowElements.forEach((el) => {
|
|
73
|
+
const htmlEl = el;
|
|
74
|
+
htmlEl.classList.remove(animationClass.value);
|
|
75
|
+
htmlEl.style.animationDelay = "";
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
isAnimating.value = false;
|
|
79
|
+
}
|
|
80
|
+
async function animateReorder() {
|
|
81
|
+
if (!enabled.value || !options?.rootRef.value) return;
|
|
82
|
+
if (isAnimating.value) {
|
|
83
|
+
cancelAnimation();
|
|
84
|
+
}
|
|
85
|
+
const root = options.rootRef.value;
|
|
86
|
+
const cssClass = animationClass.value;
|
|
87
|
+
const animationId = ++currentAnimationId;
|
|
88
|
+
isAnimating.value = true;
|
|
89
|
+
await nextTick();
|
|
90
|
+
if (animationId !== currentAnimationId) return;
|
|
91
|
+
const rowElements = Array.from(root.querySelectorAll("[data-row-id]"));
|
|
92
|
+
if (!rowElements.length) {
|
|
93
|
+
isAnimating.value = false;
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const staggerMs = stagger.value;
|
|
97
|
+
const maxStaggerMs = maxStagger.value;
|
|
98
|
+
const cleanupElement = (el) => {
|
|
99
|
+
el.classList.remove(cssClass);
|
|
100
|
+
el.style.animationDelay = "";
|
|
101
|
+
};
|
|
102
|
+
const schedule = typeof requestAnimationFrame === "function" ? requestAnimationFrame : (fn) => setTimeout(fn, 16);
|
|
103
|
+
activeAnimationListeners = [];
|
|
104
|
+
schedule(() => {
|
|
105
|
+
if (animationId !== currentAnimationId) return;
|
|
106
|
+
const total = rowElements.length;
|
|
107
|
+
let finished = 0;
|
|
108
|
+
const handleDone = () => {
|
|
109
|
+
finished++;
|
|
110
|
+
if (finished >= total) {
|
|
111
|
+
if (cleanupTimer) {
|
|
112
|
+
clearTimeout(cleanupTimer);
|
|
113
|
+
cleanupTimer = null;
|
|
114
|
+
}
|
|
115
|
+
activeAnimationListeners = [];
|
|
116
|
+
isAnimating.value = false;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
rowElements.forEach((el, index) => {
|
|
120
|
+
const delay = Math.min(index * staggerMs, maxStaggerMs);
|
|
121
|
+
const handler = () => {
|
|
122
|
+
if (animationId !== currentAnimationId) return;
|
|
123
|
+
cleanupElement(el);
|
|
124
|
+
handleDone();
|
|
125
|
+
};
|
|
126
|
+
activeAnimationListeners.push({ el, handler });
|
|
127
|
+
el.addEventListener("animationend", handler, { once: true });
|
|
128
|
+
el.style.animationDelay = `${delay}ms`;
|
|
129
|
+
el.classList.add(cssClass);
|
|
130
|
+
});
|
|
131
|
+
cleanupTimer = setTimeout(
|
|
132
|
+
() => {
|
|
133
|
+
if (animationId !== currentAnimationId) return;
|
|
134
|
+
if (activeAnimationListeners.length) {
|
|
135
|
+
activeAnimationListeners.forEach(
|
|
136
|
+
({ el, handler }) => el.removeEventListener("animationend", handler)
|
|
137
|
+
);
|
|
138
|
+
activeAnimationListeners = [];
|
|
139
|
+
}
|
|
140
|
+
rowElements.forEach(cleanupElement);
|
|
141
|
+
isAnimating.value = false;
|
|
142
|
+
},
|
|
143
|
+
duration.value + maxStaggerMs + 50
|
|
144
|
+
);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (options) {
|
|
148
|
+
watch(
|
|
149
|
+
() => options.rows.value.map((row) => row.id),
|
|
150
|
+
(newIds) => {
|
|
151
|
+
if (!isMounted.value) {
|
|
152
|
+
previousRowIds = [...newIds];
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
let hasChanged = newIds.length !== previousRowIds.length;
|
|
156
|
+
if (!hasChanged) {
|
|
157
|
+
for (let i = 0; i < newIds.length; i++) {
|
|
158
|
+
if (newIds[i] !== previousRowIds[i]) {
|
|
159
|
+
hasChanged = true;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
previousRowIds = [...newIds];
|
|
165
|
+
if (hasChanged) {
|
|
166
|
+
animateReorder();
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{ immediate: true }
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
enabled,
|
|
174
|
+
duration,
|
|
175
|
+
easing,
|
|
176
|
+
animateReorder
|
|
177
|
+
};
|
|
178
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Table } from '@tanstack/vue-table';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
import type { NuGridProps } from '../../types/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Autosize functionality for tables similar to AG Grid
|
|
7
|
+
* Supports two modes:
|
|
8
|
+
* - fitCell: Auto-size columns to fit cell contents
|
|
9
|
+
* - fitGrid: Auto-size columns to fit cell contents and scale up to fill grid width
|
|
10
|
+
*/
|
|
11
|
+
export declare function useNuGridAutosize<T extends TableData>(props: NuGridProps<T>, tableApi: Table<T>, tableRef: Ref<HTMLElement | null>): {
|
|
12
|
+
autoSizeColumns: (mode?: "fitCell" | "fitGrid") => void;
|
|
13
|
+
autoSizeColumn: (columnId: string) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { useDebounceFn } from "@vueuse/core";
|
|
2
|
+
import { nextTick, watch } from "vue";
|
|
3
|
+
import { usePropWithDefault } from "../../config/_internal/index.js";
|
|
4
|
+
export function useNuGridAutosize(props, tableApi, tableRef) {
|
|
5
|
+
function measureSingleColumnWidth(columnId, measureDiv) {
|
|
6
|
+
let maxWidth = 0;
|
|
7
|
+
const column = tableApi.getColumn(columnId);
|
|
8
|
+
if (!column) return 150;
|
|
9
|
+
const headerGroups = tableApi.getHeaderGroups();
|
|
10
|
+
headerGroups.forEach((headerGroup) => {
|
|
11
|
+
const header = headerGroup.headers.find((h) => h.column.id === columnId);
|
|
12
|
+
if (header) {
|
|
13
|
+
let headerText = "";
|
|
14
|
+
if (typeof header.column.columnDef.header === "string") {
|
|
15
|
+
headerText = header.column.columnDef.header;
|
|
16
|
+
} else if (header.column.id) {
|
|
17
|
+
headerText = header.column.id;
|
|
18
|
+
}
|
|
19
|
+
if (headerText) {
|
|
20
|
+
measureDiv.textContent = headerText;
|
|
21
|
+
const width = measureDiv.offsetWidth + 64;
|
|
22
|
+
maxWidth = Math.max(maxWidth, width);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const rows = tableApi.getRowModel().rows;
|
|
27
|
+
const sampleSize = Math.min(rows.length, 100);
|
|
28
|
+
for (let i = 0; i < sampleSize; i++) {
|
|
29
|
+
const row = rows[i];
|
|
30
|
+
if (!row) continue;
|
|
31
|
+
const cell = row.getVisibleCells().find((c) => c.column.id === columnId);
|
|
32
|
+
if (cell) {
|
|
33
|
+
const value = cell.getValue();
|
|
34
|
+
let cellText = "";
|
|
35
|
+
if (value !== null && value !== void 0) {
|
|
36
|
+
cellText = String(value);
|
|
37
|
+
}
|
|
38
|
+
if (cellText) {
|
|
39
|
+
measureDiv.textContent = cellText;
|
|
40
|
+
const width = measureDiv.offsetWidth + 48;
|
|
41
|
+
maxWidth = Math.max(maxWidth, width);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return maxWidth || 150;
|
|
46
|
+
}
|
|
47
|
+
function measureAllColumnsContentWidth(columnIds) {
|
|
48
|
+
if (!tableRef.value) return {};
|
|
49
|
+
const measureDiv = document.createElement("div");
|
|
50
|
+
measureDiv.style.cssText = "position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap;";
|
|
51
|
+
document.body.appendChild(measureDiv);
|
|
52
|
+
const widths = {};
|
|
53
|
+
try {
|
|
54
|
+
for (const columnId of columnIds) {
|
|
55
|
+
widths[columnId] = measureSingleColumnWidth(columnId, measureDiv);
|
|
56
|
+
}
|
|
57
|
+
} finally {
|
|
58
|
+
document.body.removeChild(measureDiv);
|
|
59
|
+
}
|
|
60
|
+
return widths;
|
|
61
|
+
}
|
|
62
|
+
function measureColumnContentWidth(columnId, _columnIndex) {
|
|
63
|
+
if (!tableRef.value) return 0;
|
|
64
|
+
const measureDiv = document.createElement("div");
|
|
65
|
+
measureDiv.style.cssText = "position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap;";
|
|
66
|
+
document.body.appendChild(measureDiv);
|
|
67
|
+
try {
|
|
68
|
+
return measureSingleColumnWidth(columnId, measureDiv);
|
|
69
|
+
} finally {
|
|
70
|
+
document.body.removeChild(measureDiv);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const autoSize = usePropWithDefault(props, "layout", "autoSize");
|
|
74
|
+
function autoSizeColumns(mode) {
|
|
75
|
+
const effectiveMode = mode || autoSize.value;
|
|
76
|
+
if (!effectiveMode || !tableRef.value) return;
|
|
77
|
+
const visibleColumns = tableApi.getVisibleLeafColumns();
|
|
78
|
+
const skipColumns = props.skipAutoSizeColumns || [];
|
|
79
|
+
const newSizing = {};
|
|
80
|
+
const columnsToMeasure = visibleColumns.filter((column) => !skipColumns.includes(column.id)).map((column) => column.id);
|
|
81
|
+
const measuredWidths = measureAllColumnsContentWidth(columnsToMeasure);
|
|
82
|
+
const columnWidths = visibleColumns.map((column) => {
|
|
83
|
+
if (skipColumns.includes(column.id)) {
|
|
84
|
+
return { id: column.id, width: column.getSize(), skip: true };
|
|
85
|
+
}
|
|
86
|
+
const minSize = column.columnDef.minSize ?? 20;
|
|
87
|
+
const maxSize = column.columnDef.maxSize ?? Number.MAX_SAFE_INTEGER;
|
|
88
|
+
const measuredWidth = measuredWidths[column.id] || 150;
|
|
89
|
+
const constrainedWidth = Math.max(minSize, Math.min(measuredWidth, maxSize));
|
|
90
|
+
return { id: column.id, width: constrainedWidth, skip: false };
|
|
91
|
+
});
|
|
92
|
+
const totalContentWidth = columnWidths.reduce((sum, col) => sum + col.width, 0);
|
|
93
|
+
if (effectiveMode === "fitGrid" && tableRef.value) {
|
|
94
|
+
const containerWidth = tableRef.value.offsetWidth;
|
|
95
|
+
if (totalContentWidth < containerWidth && totalContentWidth > 0) {
|
|
96
|
+
const scaleFactor = containerWidth / totalContentWidth;
|
|
97
|
+
columnWidths.forEach((col) => {
|
|
98
|
+
if (!col.skip) {
|
|
99
|
+
const column = tableApi.getColumn(col.id);
|
|
100
|
+
if (column) {
|
|
101
|
+
const scaledWidth = col.width * scaleFactor;
|
|
102
|
+
const maxSize = column.columnDef.maxSize ?? Number.MAX_SAFE_INTEGER;
|
|
103
|
+
newSizing[col.id] = Math.min(scaledWidth, maxSize);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
} else {
|
|
108
|
+
columnWidths.forEach((col) => {
|
|
109
|
+
if (!col.skip) {
|
|
110
|
+
newSizing[col.id] = col.width;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
columnWidths.forEach((col) => {
|
|
116
|
+
if (!col.skip) {
|
|
117
|
+
newSizing[col.id] = col.width;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (Object.keys(newSizing).length > 0) {
|
|
122
|
+
tableApi.setColumnSizing((old) => ({
|
|
123
|
+
...old,
|
|
124
|
+
...newSizing
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function autoSizeColumn(columnId) {
|
|
129
|
+
const column = tableApi.getColumn(columnId);
|
|
130
|
+
if (!column) return;
|
|
131
|
+
const skipColumns = props.skipAutoSizeColumns || [];
|
|
132
|
+
if (skipColumns.includes(columnId)) return;
|
|
133
|
+
const visibleColumns = tableApi.getVisibleLeafColumns();
|
|
134
|
+
const columnIndex = visibleColumns.findIndex((col) => col.id === columnId);
|
|
135
|
+
if (columnIndex === -1) return;
|
|
136
|
+
const minSize = column.columnDef.minSize ?? 20;
|
|
137
|
+
const maxSize = column.columnDef.maxSize ?? Number.MAX_SAFE_INTEGER;
|
|
138
|
+
const measuredWidth = measureColumnContentWidth(columnId, columnIndex);
|
|
139
|
+
const constrainedWidth = Math.max(minSize, Math.min(measuredWidth, maxSize));
|
|
140
|
+
tableApi.setColumnSizing((old) => ({
|
|
141
|
+
...old,
|
|
142
|
+
[columnId]: constrainedWidth
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
145
|
+
const debouncedAutosize = useDebounceFn(() => {
|
|
146
|
+
autoSizeColumns();
|
|
147
|
+
}, 100);
|
|
148
|
+
watch(
|
|
149
|
+
[() => props.data, autoSize],
|
|
150
|
+
() => {
|
|
151
|
+
if (autoSize.value) {
|
|
152
|
+
nextTick(debouncedAutosize);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{ immediate: true, flush: "post" }
|
|
156
|
+
);
|
|
157
|
+
return {
|
|
158
|
+
autoSizeColumns,
|
|
159
|
+
autoSizeColumn
|
|
160
|
+
};
|
|
161
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Column, Row, Table } from '@tanstack/vue-table';
|
|
3
|
+
import type { ComponentPublicInstance, Ref } from 'vue';
|
|
4
|
+
import type { NuGridEventEmitter, NuGridProps } from '../../types/index.js';
|
|
5
|
+
import type { NuGridAddRowContext, NuGridCellEditing, NuGridEditingCell, NuGridFocus, NuGridInteractionRouter } from '../../types/_internal/index.js';
|
|
6
|
+
export declare const defaultValidationIcon: string;
|
|
7
|
+
/**
|
|
8
|
+
* Cell editing management with inline editing support
|
|
9
|
+
*/
|
|
10
|
+
export declare function useNuGridCellEditing<T extends TableData>(props: NuGridProps<T>, tableApi: Table<T>, data: Ref<T[]>, rows: Ref<Row<T>[]>, tableRef: Ref<HTMLElement | null>, rootRef: Ref<HTMLElement | ComponentPublicInstance | null | undefined>, focusFns: NuGridFocus<T>, interactionRouter: NuGridInteractionRouter<T> | undefined, emit: (payload: {
|
|
11
|
+
row: Row<T>;
|
|
12
|
+
column: Column<T, any>;
|
|
13
|
+
oldValue: any;
|
|
14
|
+
newValue: any;
|
|
15
|
+
}) => void, navigableRows?: Ref<Row<T>[]> | null, externalEditingCell?: Ref<NuGridEditingCell | null>, addRowContext?: NuGridAddRowContext<T> | null, eventEmitter?: NuGridEventEmitter<T>): NuGridCellEditing<T>;
|