@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,624 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Row } from '@tanstack/vue-table';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
import type { NuGridEditorConfig } from './_internal/index.js';
|
|
5
|
+
import type { NuGridColumnMenuItemsCallback } from './column.js';
|
|
6
|
+
import type { NuGridScrollbars } from './props.js';
|
|
7
|
+
import type { NuGridSortIcon } from './sort-icon.js';
|
|
8
|
+
/**
|
|
9
|
+
* Focus and keyboard navigation configuration
|
|
10
|
+
*/
|
|
11
|
+
export interface NuGridFocusOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Focus mode for grid navigation and interaction
|
|
14
|
+
* - 'none': No focus behavior
|
|
15
|
+
* - 'cell': Individual cell focus with keyboard navigation
|
|
16
|
+
* - 'row': Row focus with keyboard navigation
|
|
17
|
+
* @defaultValue 'none'
|
|
18
|
+
*/
|
|
19
|
+
mode?: 'none' | 'cell' | 'row';
|
|
20
|
+
/**
|
|
21
|
+
* When enabled, the grid retains focus and responds to keyboard events even when
|
|
22
|
+
* other elements on the page are clicked
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
retain?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Controls Cmd/Ctrl+Arrow key navigation behavior
|
|
28
|
+
* - 'paging': Cmd+Up/Down act like PageUp/PageDown (cursor paging)
|
|
29
|
+
* - 'firstlast': Cmd+Up/Down jump to first/last row in grid
|
|
30
|
+
* @defaultValue 'paging'
|
|
31
|
+
*/
|
|
32
|
+
cmdArrows?: 'paging' | 'firstlast';
|
|
33
|
+
/**
|
|
34
|
+
* Whether arrow key navigation should loop from last to first row and vice versa
|
|
35
|
+
* @defaultValue false
|
|
36
|
+
*/
|
|
37
|
+
loopNavigation?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Number of rows to skip when using Page Up/Down keys
|
|
40
|
+
* @defaultValue 10
|
|
41
|
+
*/
|
|
42
|
+
pageStep?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Alignment to use when the focused row is changed via the v-model:focused-row-id binding
|
|
45
|
+
* (applies when no explicit align option is provided to focusRowById)
|
|
46
|
+
* - 'nearest': Just makes the row visible (no sticky offset)
|
|
47
|
+
* - 'top': Scrolls the row to the top, accounting for sticky headers
|
|
48
|
+
* - 'center': Centers the row in the viewport, accounting for sticky headers
|
|
49
|
+
* @defaultValue 'nearest'
|
|
50
|
+
*/
|
|
51
|
+
alignOnModel?: 'nearest' | 'top' | 'center';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Cell editing configuration
|
|
55
|
+
*/
|
|
56
|
+
export interface NuGridEditingOptions<T extends TableData = TableData> {
|
|
57
|
+
/**
|
|
58
|
+
* Controls whether cell editing is enabled globally
|
|
59
|
+
* @defaultValue false
|
|
60
|
+
*/
|
|
61
|
+
enabled?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Which keyboard shortcuts can start editing mode
|
|
64
|
+
* - 'all': All editing keys enabled (enter, f2, backspace, alpha, numeric)
|
|
65
|
+
* - 'minimal': Only Enter and F2
|
|
66
|
+
* - 'none': No keyboard shortcuts
|
|
67
|
+
* - Array: Custom combination of keys
|
|
68
|
+
* @defaultValue 'all'
|
|
69
|
+
*/
|
|
70
|
+
startKeys?: 'all' | 'minimal' | 'none' | ('enter' | 'f2' | 'bs' | 'alpha' | 'numeric')[];
|
|
71
|
+
/**
|
|
72
|
+
* How clicking on a cell starts editing mode
|
|
73
|
+
* - 'none': Clicking does not start editing
|
|
74
|
+
* - 'single': Single click starts editing
|
|
75
|
+
* - 'double': Double click starts editing
|
|
76
|
+
* @defaultValue 'double'
|
|
77
|
+
*/
|
|
78
|
+
startClicks?: 'none' | 'single' | 'double';
|
|
79
|
+
/**
|
|
80
|
+
* Debounce delay in milliseconds before committing value changes
|
|
81
|
+
* @defaultValue 0
|
|
82
|
+
*/
|
|
83
|
+
debounce?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to commit changes when editor loses focus
|
|
86
|
+
* @defaultValue true
|
|
87
|
+
*/
|
|
88
|
+
commitOnBlur?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Grid-level guard function to determine if a cell can be edited
|
|
91
|
+
* This provides a centralized place to define editing rules
|
|
92
|
+
* @param row The row containing the cell
|
|
93
|
+
* @param columnId The column identifier
|
|
94
|
+
* @returns Whether the cell can be edited
|
|
95
|
+
*/
|
|
96
|
+
canEdit?: (row: Row<T>, columnId: string) => boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Custom default editors for each cell data type
|
|
99
|
+
* Allows overriding the built-in default editors
|
|
100
|
+
*/
|
|
101
|
+
defaultEditors?: Record<string, NuGridEditorConfig>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Selection column placement
|
|
105
|
+
*/
|
|
106
|
+
export type NuGridColumnPlacement = 'start' | 'end';
|
|
107
|
+
/**
|
|
108
|
+
* Enhanced selection configuration
|
|
109
|
+
*/
|
|
110
|
+
export interface NuGridSelectionOptions<T extends TableData = TableData> {
|
|
111
|
+
/**
|
|
112
|
+
* Selection mode
|
|
113
|
+
* - 'single': Single row selection
|
|
114
|
+
* - 'multi': Multiple row selection
|
|
115
|
+
* @defaultValue 'multi'
|
|
116
|
+
*/
|
|
117
|
+
mode?: 'single' | 'multi';
|
|
118
|
+
/**
|
|
119
|
+
* Column placement
|
|
120
|
+
* @defaultValue 'start'
|
|
121
|
+
*/
|
|
122
|
+
placement?: NuGridColumnPlacement;
|
|
123
|
+
/**
|
|
124
|
+
* Whether selection column is hidden
|
|
125
|
+
* @defaultValue false
|
|
126
|
+
*/
|
|
127
|
+
hidden?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Whether selection checkboxes are enabled
|
|
130
|
+
* @defaultValue true
|
|
131
|
+
*/
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Function to determine if a row can be selected
|
|
135
|
+
*/
|
|
136
|
+
rowSelectionEnabled?: (row: Row<T>) => boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Callback for external state synchronization
|
|
139
|
+
* @param selectedIds Array of selected row IDs
|
|
140
|
+
*/
|
|
141
|
+
sync?: (selectedIds: string[]) => void;
|
|
142
|
+
/**
|
|
143
|
+
* Advanced column definition options
|
|
144
|
+
*/
|
|
145
|
+
columnDef?: any;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Actions column configuration
|
|
149
|
+
*/
|
|
150
|
+
export interface NuGridActionsOptions<T extends TableData = TableData> {
|
|
151
|
+
/**
|
|
152
|
+
* Whether actions column is enabled
|
|
153
|
+
* @defaultValue false
|
|
154
|
+
*/
|
|
155
|
+
enabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Function that returns action menu items for a row
|
|
158
|
+
*/
|
|
159
|
+
getActions?: (row: Row<T>) => Array<{
|
|
160
|
+
type?: 'label' | 'separator';
|
|
161
|
+
label?: string;
|
|
162
|
+
icon?: string;
|
|
163
|
+
color?: 'error' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'neutral';
|
|
164
|
+
disabled?: boolean;
|
|
165
|
+
onSelect?: (event?: Event) => void;
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* Column placement
|
|
169
|
+
* @defaultValue 'end'
|
|
170
|
+
*/
|
|
171
|
+
placement?: NuGridColumnPlacement;
|
|
172
|
+
/**
|
|
173
|
+
* Function to determine if actions are enabled for a row
|
|
174
|
+
* @defaultValue () => true
|
|
175
|
+
*/
|
|
176
|
+
isRowEnabled?: (row: Row<T>) => boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Button configuration
|
|
179
|
+
*/
|
|
180
|
+
button?: {
|
|
181
|
+
icon?: string;
|
|
182
|
+
color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
183
|
+
variant?: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
|
|
184
|
+
class?: string;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Whether actions column is hidden
|
|
188
|
+
* @defaultValue false
|
|
189
|
+
*/
|
|
190
|
+
hidden?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Advanced column definition options
|
|
193
|
+
*/
|
|
194
|
+
columnDef?: any;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Column menu preset options
|
|
198
|
+
*/
|
|
199
|
+
export type NuGridColumnMenuPreset = 'minimal' | 'full';
|
|
200
|
+
/**
|
|
201
|
+
* Column menu button configuration
|
|
202
|
+
*/
|
|
203
|
+
export interface NuGridColumnMenuButton {
|
|
204
|
+
/**
|
|
205
|
+
* Icon to display on the column menu button
|
|
206
|
+
* @defaultValue 'i-lucide-more-vertical'
|
|
207
|
+
*/
|
|
208
|
+
icon?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Button color
|
|
211
|
+
* @defaultValue 'neutral'
|
|
212
|
+
*/
|
|
213
|
+
color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
214
|
+
/**
|
|
215
|
+
* Button variant
|
|
216
|
+
* @defaultValue 'ghost'
|
|
217
|
+
*/
|
|
218
|
+
variant?: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Column menu configuration
|
|
222
|
+
*/
|
|
223
|
+
export interface NuGridColumnMenuOptions<T extends TableData = TableData> {
|
|
224
|
+
/**
|
|
225
|
+
* Preset configuration
|
|
226
|
+
* - 'minimal': Basic menu with essential items
|
|
227
|
+
* - 'full': Complete menu with all options
|
|
228
|
+
*/
|
|
229
|
+
preset?: NuGridColumnMenuPreset;
|
|
230
|
+
/**
|
|
231
|
+
* Custom menu items callback
|
|
232
|
+
*/
|
|
233
|
+
items?: NuGridColumnMenuItemsCallback<T>;
|
|
234
|
+
/**
|
|
235
|
+
* Whether to show column visibility toggle in menu
|
|
236
|
+
* @defaultValue true
|
|
237
|
+
*/
|
|
238
|
+
visibilityToggle?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Button configuration for the column menu trigger
|
|
241
|
+
* @defaultValue { icon: 'i-lucide-more-vertical', color: 'neutral', variant: 'ghost' }
|
|
242
|
+
*/
|
|
243
|
+
button?: NuGridColumnMenuButton;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Column defaults configuration
|
|
247
|
+
* Default settings applied to all columns, can be overridden at the column level
|
|
248
|
+
*/
|
|
249
|
+
export interface NuGridColumnDefaultsOptions<T extends TableData = TableData> {
|
|
250
|
+
/**
|
|
251
|
+
* Default sort icon configuration for all columns
|
|
252
|
+
* Can be overridden at the column level using column.sortIcons
|
|
253
|
+
* @defaultValue { unsorted: 'i-lucide-chevrons-up-down', asc: 'i-lucide-arrow-up', desc: 'i-lucide-arrow-down', unsortedHover: true, position: 'edge' }
|
|
254
|
+
*/
|
|
255
|
+
sortIcons?: NuGridSortIcon;
|
|
256
|
+
/**
|
|
257
|
+
* Default column menu configuration
|
|
258
|
+
* @defaultValue { visibilityToggle: true, button: { icon: 'i-lucide-more-vertical', color: 'neutral', variant: 'ghost' } }
|
|
259
|
+
*/
|
|
260
|
+
menu?: NuGridColumnMenuOptions<T>;
|
|
261
|
+
/**
|
|
262
|
+
* Enable column resizing by default
|
|
263
|
+
* Can be overridden at the column level using enableResizing
|
|
264
|
+
* @defaultValue false
|
|
265
|
+
*/
|
|
266
|
+
resize?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Enable column reordering by default
|
|
269
|
+
* Can be overridden at the column level using enableReordering
|
|
270
|
+
* @defaultValue false
|
|
271
|
+
*/
|
|
272
|
+
reorder?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Enable text wrapping by default for all columns
|
|
275
|
+
* When true, cell content will wrap to multiple lines instead of being truncated
|
|
276
|
+
* Can be overridden at the column level using wrapText
|
|
277
|
+
* @defaultValue false
|
|
278
|
+
*/
|
|
279
|
+
wrapText?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Default lookup configuration for all lookup cells
|
|
282
|
+
* Can be overridden at the column level using lookup
|
|
283
|
+
* @defaultValue { valueKey: 'value', labelKey: 'label', searchable: true, placeholder: 'Select...', clearable: false, autoOpen: true }
|
|
284
|
+
*/
|
|
285
|
+
lookup?: Omit<NuGridLookupOptions, 'items'>;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Grid layout mode
|
|
289
|
+
*/
|
|
290
|
+
export type NuGridLayoutMode = 'div' | 'group' | 'splitgroup';
|
|
291
|
+
/**
|
|
292
|
+
* Auto-size strategy
|
|
293
|
+
*/
|
|
294
|
+
export type NuGridAutoSizeStrategy = 'fitCell' | 'fitGrid' | false;
|
|
295
|
+
/**
|
|
296
|
+
* Layout and display configuration
|
|
297
|
+
*/
|
|
298
|
+
export interface NuGridLayoutOptions {
|
|
299
|
+
/**
|
|
300
|
+
* Grid rendering mode
|
|
301
|
+
* - 'div': Render with divs (default)
|
|
302
|
+
* - 'group': Grouped rows with headers at top
|
|
303
|
+
* - 'splitgroup': Separate tables per group
|
|
304
|
+
* @defaultValue 'div'
|
|
305
|
+
*/
|
|
306
|
+
mode?: NuGridLayoutMode;
|
|
307
|
+
/**
|
|
308
|
+
* Enable sticky headers
|
|
309
|
+
* @defaultValue false
|
|
310
|
+
*/
|
|
311
|
+
stickyHeaders?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Scrollbar styling mode
|
|
314
|
+
* @defaultValue 'scroll'
|
|
315
|
+
*/
|
|
316
|
+
scrollbars?: NuGridScrollbars;
|
|
317
|
+
/**
|
|
318
|
+
* Auto-size strategy for columns
|
|
319
|
+
* - 'fitCell': Fit cell contents
|
|
320
|
+
* - 'fitGrid': Fit cell contents and scale to grid width
|
|
321
|
+
* - false: Disable auto-sizing
|
|
322
|
+
* @defaultValue false
|
|
323
|
+
*/
|
|
324
|
+
autoSize?: NuGridAutoSizeStrategy;
|
|
325
|
+
/**
|
|
326
|
+
* Maintain table width during column resize
|
|
327
|
+
* @defaultValue false
|
|
328
|
+
*/
|
|
329
|
+
maintainWidth?: boolean;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* State persistence parts
|
|
333
|
+
*/
|
|
334
|
+
export type NuGridStatePart = 'filters' | 'sorting' | 'columnVisibility' | 'density' | 'columnOrder' | 'columnSizing' | 'pagination' | 'grouping' | 'expanded';
|
|
335
|
+
/**
|
|
336
|
+
* Storage type for state persistence
|
|
337
|
+
*/
|
|
338
|
+
export type NuGridStorageType = 'local' | 'session';
|
|
339
|
+
/**
|
|
340
|
+
* State persistence configuration
|
|
341
|
+
*/
|
|
342
|
+
export interface NuGridStateOptions {
|
|
343
|
+
/**
|
|
344
|
+
* Storage key identifier
|
|
345
|
+
*/
|
|
346
|
+
key: string;
|
|
347
|
+
/**
|
|
348
|
+
* Which state parts to persist
|
|
349
|
+
* @defaultValue ['filters', 'sorting', 'columnVisibility', 'columnOrder', 'columnSizing']
|
|
350
|
+
*/
|
|
351
|
+
parts?: NuGridStatePart[];
|
|
352
|
+
/**
|
|
353
|
+
* Storage type
|
|
354
|
+
* @defaultValue 'local'
|
|
355
|
+
*/
|
|
356
|
+
storage?: NuGridStorageType;
|
|
357
|
+
/**
|
|
358
|
+
* Throttle delay in milliseconds for saving state
|
|
359
|
+
* @defaultValue 300
|
|
360
|
+
*/
|
|
361
|
+
throttleMs?: number;
|
|
362
|
+
/**
|
|
363
|
+
* Callback when state changes
|
|
364
|
+
* @param state Current state snapshot
|
|
365
|
+
*/
|
|
366
|
+
onStateChange?: (state: any) => void;
|
|
367
|
+
/**
|
|
368
|
+
* Initial state for SSR-friendly hydration
|
|
369
|
+
*/
|
|
370
|
+
initialState?: any;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Multi-row configuration
|
|
374
|
+
* Allows a single data item to span multiple visual rows
|
|
375
|
+
*/
|
|
376
|
+
export interface NuGridMultiRowOptions {
|
|
377
|
+
/**
|
|
378
|
+
* Whether multi-row mode is enabled
|
|
379
|
+
* When enabled, columns can specify which row they appear on using the `row` property
|
|
380
|
+
* @defaultValue false
|
|
381
|
+
*/
|
|
382
|
+
enabled?: boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Number of visual rows per data item
|
|
385
|
+
* Must be >= 1. Columns without a `row` property default to row 0
|
|
386
|
+
* @defaultValue 1
|
|
387
|
+
*/
|
|
388
|
+
rowCount?: number;
|
|
389
|
+
/**
|
|
390
|
+
* Whether columns in extra rows should align with columns in row 0
|
|
391
|
+
* When enabled, columns in rows 1+ will match the widths of corresponding row 0 columns
|
|
392
|
+
* Columns can use the `span` property to span multiple column slots
|
|
393
|
+
* Pinned columns in row 0 will have spacer columns below them
|
|
394
|
+
* @defaultValue false
|
|
395
|
+
*/
|
|
396
|
+
alignColumns?: boolean;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Tooltip configuration
|
|
400
|
+
*/
|
|
401
|
+
export interface NuGridTooltipOptions {
|
|
402
|
+
/**
|
|
403
|
+
* Whether tooltips only show for truncated content
|
|
404
|
+
* When true, tooltips only appear when text is cut off
|
|
405
|
+
* When false, tooltips show for all cells regardless of truncation
|
|
406
|
+
* @defaultValue true
|
|
407
|
+
*/
|
|
408
|
+
truncatedOnly?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Delay in milliseconds before showing the tooltip
|
|
411
|
+
* @defaultValue 500
|
|
412
|
+
*/
|
|
413
|
+
showDelay?: number;
|
|
414
|
+
/**
|
|
415
|
+
* Delay in milliseconds before hiding the tooltip
|
|
416
|
+
* Helps prevent flicker when moving between cells
|
|
417
|
+
* @defaultValue 100
|
|
418
|
+
*/
|
|
419
|
+
hideDelay?: number;
|
|
420
|
+
/**
|
|
421
|
+
* Whether the tooltip follows the mouse cursor
|
|
422
|
+
* When false, tooltip stays at initial position
|
|
423
|
+
* @defaultValue false
|
|
424
|
+
*/
|
|
425
|
+
mouseFollow?: boolean;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Lookup item type for dropdown selections
|
|
429
|
+
*/
|
|
430
|
+
export interface NuGridLookupItem {
|
|
431
|
+
[key: string]: any;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Lookup/dropdown configuration for cells using cellDataType: 'lookup'
|
|
435
|
+
* Provides a dropdown selection interface using Nuxt UI's SelectMenu
|
|
436
|
+
*/
|
|
437
|
+
export interface NuGridLookupOptions {
|
|
438
|
+
/**
|
|
439
|
+
* Items to display in the dropdown
|
|
440
|
+
* Can be a static array, reactive ref, or async function that returns items
|
|
441
|
+
*/
|
|
442
|
+
items: NuGridLookupItem[] | Ref<NuGridLookupItem[]> | (() => Promise<NuGridLookupItem[]>);
|
|
443
|
+
/**
|
|
444
|
+
* Field to use as the stored value (what gets saved to the data)
|
|
445
|
+
* @defaultValue 'value'
|
|
446
|
+
*/
|
|
447
|
+
valueKey?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Field to use as the display label (what the user sees)
|
|
450
|
+
* @defaultValue 'label'
|
|
451
|
+
*/
|
|
452
|
+
labelKey?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Field to use for item description (shown below label in dropdown)
|
|
455
|
+
*/
|
|
456
|
+
descriptionKey?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Show search/filter input in dropdown
|
|
459
|
+
* @defaultValue true
|
|
460
|
+
*/
|
|
461
|
+
searchable?: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* Fields to search against when filtering
|
|
464
|
+
* Defaults to [labelKey] if not specified
|
|
465
|
+
*/
|
|
466
|
+
filterFields?: string[];
|
|
467
|
+
/**
|
|
468
|
+
* Placeholder text when no selection
|
|
469
|
+
* @defaultValue 'Select...'
|
|
470
|
+
*/
|
|
471
|
+
placeholder?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Icon to show (leading icon in trigger)
|
|
474
|
+
*/
|
|
475
|
+
icon?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Show clear button to reset selection
|
|
478
|
+
* @defaultValue false
|
|
479
|
+
*/
|
|
480
|
+
clearable?: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* Automatically open dropdown when ArrowDown is pressed
|
|
483
|
+
* @defaultValue true
|
|
484
|
+
*/
|
|
485
|
+
autoOpen?: boolean;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Paging configuration
|
|
489
|
+
* Controls client-side paging with built-in UI panel
|
|
490
|
+
*/
|
|
491
|
+
export interface NuGridPagingOptions {
|
|
492
|
+
/**
|
|
493
|
+
* Whether paging is enabled
|
|
494
|
+
* @defaultValue false
|
|
495
|
+
*/
|
|
496
|
+
enabled?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* Number of rows to display per page
|
|
499
|
+
* If autoPageSize is true, this is used as a fallback/initial value
|
|
500
|
+
* @defaultValue 20
|
|
501
|
+
*/
|
|
502
|
+
pageSize?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Page size selector options
|
|
505
|
+
* - Array of numbers: Custom page size options for the dropdown
|
|
506
|
+
* - true: Show default options [10, 20, 50, 100]
|
|
507
|
+
* - false: Hide the page size selector
|
|
508
|
+
* @defaultValue [10, 20, 50, 100]
|
|
509
|
+
*/
|
|
510
|
+
pageSizeSelector?: number[] | boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Automatically calculate page size based on container height
|
|
513
|
+
* When enabled, the grid will fit as many rows as possible in the available space
|
|
514
|
+
* @defaultValue false
|
|
515
|
+
*/
|
|
516
|
+
autoPageSize?: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Minimum page size when autoPageSize is enabled
|
|
519
|
+
* Ensures the calculated page size never falls below this value
|
|
520
|
+
* @defaultValue 5
|
|
521
|
+
*/
|
|
522
|
+
autoPageSizeMinimum?: number;
|
|
523
|
+
/**
|
|
524
|
+
* Hide the built-in paging panel
|
|
525
|
+
* Use this when you want to render your own paging controls
|
|
526
|
+
* The paging logic still works, you just control the UI via the #paging slot or external controls
|
|
527
|
+
* @defaultValue false
|
|
528
|
+
*/
|
|
529
|
+
suppressPanel?: boolean;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Available animation presets
|
|
533
|
+
* - 'refresh': Subtle fade + small translate (default)
|
|
534
|
+
* - 'fade': Simple opacity transition
|
|
535
|
+
* - 'slide': Slide up from below
|
|
536
|
+
* - 'scale': Subtle scale + fade
|
|
537
|
+
*/
|
|
538
|
+
export type NuGridAnimationPreset = 'refresh' | 'fade' | 'slide' | 'scale';
|
|
539
|
+
/**
|
|
540
|
+
* Row animation configuration
|
|
541
|
+
* Controls animations for row transitions after sorting, filtering, and other data changes
|
|
542
|
+
*/
|
|
543
|
+
export interface NuGridAnimationOptions {
|
|
544
|
+
/**
|
|
545
|
+
* Whether row animations are enabled
|
|
546
|
+
* @defaultValue false
|
|
547
|
+
*/
|
|
548
|
+
enabled?: boolean;
|
|
549
|
+
/**
|
|
550
|
+
* Animation preset to use
|
|
551
|
+
* - 'refresh': Subtle fade + small translate (default)
|
|
552
|
+
* - 'fade': Simple opacity transition
|
|
553
|
+
* - 'slide': Slide up from below
|
|
554
|
+
* - 'scale': Subtle scale + fade
|
|
555
|
+
* @defaultValue 'refresh'
|
|
556
|
+
*/
|
|
557
|
+
preset?: NuGridAnimationPreset;
|
|
558
|
+
/**
|
|
559
|
+
* Animation duration in milliseconds
|
|
560
|
+
* @defaultValue 300
|
|
561
|
+
*/
|
|
562
|
+
duration?: number;
|
|
563
|
+
/**
|
|
564
|
+
* CSS easing function for animations
|
|
565
|
+
* @defaultValue 'ease-out'
|
|
566
|
+
*/
|
|
567
|
+
easing?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Delay between each row's animation start (creates wave effect)
|
|
570
|
+
* @defaultValue 15
|
|
571
|
+
*/
|
|
572
|
+
stagger?: number;
|
|
573
|
+
/**
|
|
574
|
+
* Maximum total stagger delay across all rows
|
|
575
|
+
* Prevents long delays when animating many rows
|
|
576
|
+
* @defaultValue 120
|
|
577
|
+
*/
|
|
578
|
+
maxStagger?: number;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Excel export configuration options
|
|
582
|
+
*/
|
|
583
|
+
export interface NuGridExcelExportOptions {
|
|
584
|
+
/**
|
|
585
|
+
* Filename for the exported file (without extension)
|
|
586
|
+
* @defaultValue 'export'
|
|
587
|
+
*/
|
|
588
|
+
filename?: string;
|
|
589
|
+
/**
|
|
590
|
+
* Sheet name in the Excel file
|
|
591
|
+
* @defaultValue 'Sheet1'
|
|
592
|
+
*/
|
|
593
|
+
sheetName?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Whether to include column headers
|
|
596
|
+
* @defaultValue true
|
|
597
|
+
*/
|
|
598
|
+
includeHeaders?: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Whether to only export visible columns
|
|
601
|
+
* @defaultValue true
|
|
602
|
+
*/
|
|
603
|
+
visibleColumnsOnly?: boolean;
|
|
604
|
+
/**
|
|
605
|
+
* Custom column widths by column ID
|
|
606
|
+
*/
|
|
607
|
+
columnWidths?: Record<string, number>;
|
|
608
|
+
/**
|
|
609
|
+
* Whether to include group header rows (for grouped exports)
|
|
610
|
+
* @defaultValue true
|
|
611
|
+
*/
|
|
612
|
+
includeGroupHeaders?: boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Indent for grouped data (number of spaces)
|
|
615
|
+
* @defaultValue 2
|
|
616
|
+
*/
|
|
617
|
+
groupIndent?: number;
|
|
618
|
+
/**
|
|
619
|
+
* Format string for group headers
|
|
620
|
+
* Available placeholders: {groupName}, {groupValue}, {count}
|
|
621
|
+
* @defaultValue '{groupName}: {groupValue} ({count})'
|
|
622
|
+
*/
|
|
623
|
+
groupHeaderFormat?: string;
|
|
624
|
+
}
|
|
File without changes
|