@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,13 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Row, Table } from '@tanstack/vue-table';
|
|
3
|
+
import type { ComputedRef } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Composable for managing row selection within groups in a grouped table.
|
|
6
|
+
* Provides utilities to check and toggle selection state for rows within a specific group.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useNuGridGroupSelection<T extends TableData>(tableApi: Table<T>, groupedRows: ComputedRef<Record<string, Row<T>[]>>): {
|
|
9
|
+
areAllGroupRowsSelected: (groupId: string) => boolean;
|
|
10
|
+
areSomeGroupRowsSelected: (groupId: string) => boolean;
|
|
11
|
+
toggleAllGroupRows: (groupId: string, selected: boolean) => void;
|
|
12
|
+
getGroupCheckboxState: (groupId: string) => boolean | "indeterminate";
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export function useNuGridGroupSelection(tableApi, groupedRows) {
|
|
2
|
+
function areAllGroupRowsSelected(groupId) {
|
|
3
|
+
const rows = groupedRows.value[groupId] || [];
|
|
4
|
+
if (rows.length === 0) return false;
|
|
5
|
+
return rows.every((row) => row.getIsSelected());
|
|
6
|
+
}
|
|
7
|
+
function areSomeGroupRowsSelected(groupId) {
|
|
8
|
+
const rows = groupedRows.value[groupId] || [];
|
|
9
|
+
if (rows.length === 0) return false;
|
|
10
|
+
const selectedCount = rows.filter((row) => row.getIsSelected()).length;
|
|
11
|
+
return selectedCount > 0 && selectedCount < rows.length;
|
|
12
|
+
}
|
|
13
|
+
function toggleAllGroupRows(groupId, selected) {
|
|
14
|
+
const rows = groupedRows.value[groupId] || [];
|
|
15
|
+
const currentSelection = tableApi.getState().rowSelection;
|
|
16
|
+
const newSelection = { ...currentSelection };
|
|
17
|
+
rows.forEach((row) => {
|
|
18
|
+
if (selected) {
|
|
19
|
+
newSelection[row.id] = true;
|
|
20
|
+
} else {
|
|
21
|
+
delete newSelection[row.id];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
tableApi.setRowSelection(newSelection);
|
|
25
|
+
}
|
|
26
|
+
function getGroupCheckboxState(groupId) {
|
|
27
|
+
if (areSomeGroupRowsSelected(groupId)) {
|
|
28
|
+
return "indeterminate";
|
|
29
|
+
}
|
|
30
|
+
return areAllGroupRowsSelected(groupId);
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
areAllGroupRowsSelected,
|
|
34
|
+
areSomeGroupRowsSelected,
|
|
35
|
+
toggleAllGroupRows,
|
|
36
|
+
getGroupCheckboxState
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { Row, Table } from '@tanstack/vue-table';
|
|
3
|
+
import type { Primitive } from 'reka-ui';
|
|
4
|
+
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
5
|
+
import type { NuGridProps } from '../../types/index.js';
|
|
6
|
+
export declare function useNuGridGrouping<T extends TableData>(propsInput: MaybeRefOrGetter<NuGridProps<T>>, tableApi: Table<T>, rootRef: Ref<InstanceType<typeof Primitive> | null | undefined>, stickyEnabled?: Ref<boolean>, mode?: 'group' | 'splitgroup', addRowOptions?: {
|
|
7
|
+
addRowPosition: Ref<'top' | 'bottom' | 'none'>;
|
|
8
|
+
isAddRowRow: (row: Row<T>) => boolean;
|
|
9
|
+
getAddRowForGroup?: (groupId: string) => Row<T> | null;
|
|
10
|
+
}): {
|
|
11
|
+
rows: import("vue").ComputedRef<Row<T>[]>;
|
|
12
|
+
groupRows: import("vue").ComputedRef<Row<T>[]>;
|
|
13
|
+
groupedRows: import("vue").ComputedRef<Record<string, Row<T>[]>>;
|
|
14
|
+
groupExpanded: import("vue").ComputedRef<Record<string, boolean>>;
|
|
15
|
+
toggleGroup: (groupId: string) => void;
|
|
16
|
+
isGroupExpanded: (groupId: string) => boolean;
|
|
17
|
+
virtualRowItems: import("vue").ComputedRef<import("./useNuGridVirtualization.js").GroupVirtualRowItem<T>[]>;
|
|
18
|
+
virtualizer: Ref<import("../../types/_internal/index.js").NuGridVirtualizer<Element, Element>, import("../../types/_internal/index.js").NuGridVirtualizer<Element, Element>> | null;
|
|
19
|
+
virtualizationEnabled: import("vue").ComputedRef<boolean>;
|
|
20
|
+
navigableRows: import("vue").ComputedRef<Row<T>[]>;
|
|
21
|
+
groupingRowHeights: import("vue").ComputedRef<Required<import("../../types/_internal/index.js").GroupingVirtualRowHeights>>;
|
|
22
|
+
headerGroupCount: import("vue").ComputedRef<number>;
|
|
23
|
+
activeStickyIndexes: Ref<number[], number[]>;
|
|
24
|
+
activeStickyHeight: import("vue").ComputedRef<number>;
|
|
25
|
+
measuredVirtualSizes: import("vue").ComputedRef<Map<number, number> | null>;
|
|
26
|
+
getVirtualItemHeight: (index: number) => number;
|
|
27
|
+
stickyOffsets: import("vue").ComputedRef<Map<number, number>>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { computed, toValue, watch } from "vue";
|
|
2
|
+
import {
|
|
3
|
+
useNuGridGroupVirtualization,
|
|
4
|
+
useNuGridStandardGroupVirtualization
|
|
5
|
+
} from "./useNuGridVirtualization.js";
|
|
6
|
+
export function useNuGridGrouping(propsInput, tableApi, rootRef, stickyEnabled, mode = "splitgroup", addRowOptions) {
|
|
7
|
+
const props = computed(() => toValue(propsInput));
|
|
8
|
+
const rows = computed(() => {
|
|
9
|
+
return tableApi.getRowModel().rows;
|
|
10
|
+
});
|
|
11
|
+
function collectAllGroupRows(rowsToProcess) {
|
|
12
|
+
const allGroups = [];
|
|
13
|
+
rowsToProcess.forEach((row) => {
|
|
14
|
+
if (row.getIsGrouped()) {
|
|
15
|
+
allGroups.push(row);
|
|
16
|
+
if (row.subRows && row.subRows.length > 0) {
|
|
17
|
+
allGroups.push(...collectAllGroupRows(row.subRows));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return allGroups;
|
|
22
|
+
}
|
|
23
|
+
const groupRows = computed(() => {
|
|
24
|
+
return collectAllGroupRows(rows.value);
|
|
25
|
+
});
|
|
26
|
+
const isRowExpanded = (groupId) => {
|
|
27
|
+
const expanded = tableApi.getState().expanded;
|
|
28
|
+
if (expanded === true) return true;
|
|
29
|
+
if (typeof expanded === "object" && expanded !== null) {
|
|
30
|
+
return expanded[groupId] !== false;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
};
|
|
34
|
+
const setRowExpanded = (groupId, expanded) => {
|
|
35
|
+
const currentState = tableApi.getState().expanded;
|
|
36
|
+
if (currentState === true) {
|
|
37
|
+
const newState = {};
|
|
38
|
+
groupRows.value.forEach((gr) => {
|
|
39
|
+
newState[gr.id] = gr.id === groupId ? expanded : true;
|
|
40
|
+
});
|
|
41
|
+
tableApi.setExpanded(newState);
|
|
42
|
+
} else if (typeof currentState === "object" && currentState !== null) {
|
|
43
|
+
tableApi.setExpanded({
|
|
44
|
+
...currentState,
|
|
45
|
+
[groupId]: expanded
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
tableApi.setExpanded({ [groupId]: expanded });
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const groupExpanded = computed(() => {
|
|
52
|
+
const expanded = tableApi.getState().expanded;
|
|
53
|
+
if (expanded === true) {
|
|
54
|
+
const result = {};
|
|
55
|
+
groupRows.value.forEach((gr) => {
|
|
56
|
+
result[gr.id] = true;
|
|
57
|
+
});
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
return expanded || {};
|
|
61
|
+
});
|
|
62
|
+
const reorderGroup = (groupId, rowsForGroup) => {
|
|
63
|
+
if (!addRowOptions || addRowOptions.addRowPosition.value === "none") {
|
|
64
|
+
return rowsForGroup;
|
|
65
|
+
}
|
|
66
|
+
const placeholder = addRowOptions.getAddRowForGroup?.(groupId) || null;
|
|
67
|
+
const regularRows = rowsForGroup;
|
|
68
|
+
if (placeholder && addRowOptions.addRowPosition.value === "top") {
|
|
69
|
+
return [placeholder, ...regularRows];
|
|
70
|
+
}
|
|
71
|
+
if (placeholder && addRowOptions.addRowPosition.value === "bottom") {
|
|
72
|
+
return [...regularRows, placeholder];
|
|
73
|
+
}
|
|
74
|
+
return regularRows;
|
|
75
|
+
};
|
|
76
|
+
function extractDataRows(groupRow) {
|
|
77
|
+
const dataRows = [];
|
|
78
|
+
if (!groupRow.subRows || groupRow.subRows.length === 0) {
|
|
79
|
+
return dataRows;
|
|
80
|
+
}
|
|
81
|
+
groupRow.subRows.forEach((subRow) => {
|
|
82
|
+
if (subRow.getIsGrouped()) {
|
|
83
|
+
dataRows.push(...extractDataRows(subRow));
|
|
84
|
+
} else {
|
|
85
|
+
dataRows.push(subRow);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
return dataRows;
|
|
89
|
+
}
|
|
90
|
+
function processGroupsRecursively(rowsToProcess, groups) {
|
|
91
|
+
rowsToProcess.forEach((row) => {
|
|
92
|
+
if (row.getIsGrouped()) {
|
|
93
|
+
const groupId = row.id;
|
|
94
|
+
const dataRows = extractDataRows(row);
|
|
95
|
+
groups[groupId] = reorderGroup(groupId, dataRows);
|
|
96
|
+
if (row.subRows && row.subRows.length > 0) {
|
|
97
|
+
processGroupsRecursively(row.subRows, groups);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const groupedRows = computed(() => {
|
|
103
|
+
const groups = {};
|
|
104
|
+
processGroupsRecursively(rows.value, groups);
|
|
105
|
+
return groups;
|
|
106
|
+
});
|
|
107
|
+
watch(
|
|
108
|
+
groupRows,
|
|
109
|
+
(newGroupRows) => {
|
|
110
|
+
if (newGroupRows.length === 0) return;
|
|
111
|
+
const currentState = tableApi.getState().expanded;
|
|
112
|
+
if (!currentState || typeof currentState === "object" && Object.keys(currentState).length === 0) {
|
|
113
|
+
tableApi.setExpanded(true);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{ immediate: true }
|
|
117
|
+
);
|
|
118
|
+
function toggleGroup(groupId) {
|
|
119
|
+
setRowExpanded(groupId, !isRowExpanded(groupId));
|
|
120
|
+
}
|
|
121
|
+
function isGroupExpanded(groupId) {
|
|
122
|
+
return isRowExpanded(groupId);
|
|
123
|
+
}
|
|
124
|
+
const virtualizationFn = mode === "group" ? useNuGridStandardGroupVirtualization : useNuGridGroupVirtualization;
|
|
125
|
+
const {
|
|
126
|
+
groupingRowHeights,
|
|
127
|
+
headerGroupCount,
|
|
128
|
+
virtualRowItems,
|
|
129
|
+
virtualizer,
|
|
130
|
+
virtualizationEnabled,
|
|
131
|
+
activeStickyIndexes,
|
|
132
|
+
activeStickyHeight,
|
|
133
|
+
measuredVirtualSizes,
|
|
134
|
+
getVirtualItemHeight,
|
|
135
|
+
stickyOffsets
|
|
136
|
+
} = virtualizationFn({
|
|
137
|
+
props,
|
|
138
|
+
tableApi,
|
|
139
|
+
rootRef,
|
|
140
|
+
stickyEnabled,
|
|
141
|
+
groupRows,
|
|
142
|
+
groupedRows,
|
|
143
|
+
isGroupExpanded,
|
|
144
|
+
topLevelRows: rows,
|
|
145
|
+
addRowOptions
|
|
146
|
+
});
|
|
147
|
+
function findParentGroupId(groupRow, allRows) {
|
|
148
|
+
for (const row of allRows) {
|
|
149
|
+
if (row.getIsGrouped() && row.subRows) {
|
|
150
|
+
if (row.subRows.some((subRow) => subRow.id === groupRow.id)) {
|
|
151
|
+
return row.id;
|
|
152
|
+
}
|
|
153
|
+
const parentId = findParentGroupId(groupRow, row.subRows);
|
|
154
|
+
if (parentId) {
|
|
155
|
+
return parentId;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
function isGroupVisible(groupId, allRows) {
|
|
162
|
+
const groupRow = groupRows.value.find((gr) => gr.id === groupId);
|
|
163
|
+
if (!groupRow) {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
const parentId = findParentGroupId(groupRow, allRows);
|
|
167
|
+
if (parentId === null) {
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
if (!isGroupExpanded(parentId)) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
return isGroupVisible(parentId, allRows);
|
|
174
|
+
}
|
|
175
|
+
const navigableRows = computed(() => {
|
|
176
|
+
if (groupRows.value.length === 0) {
|
|
177
|
+
return rows.value;
|
|
178
|
+
}
|
|
179
|
+
const navRows = [];
|
|
180
|
+
groupRows.value.forEach((groupRow) => {
|
|
181
|
+
const groupId = groupRow.id;
|
|
182
|
+
const visible = isGroupVisible(groupId, rows.value);
|
|
183
|
+
const expanded = isGroupExpanded(groupId);
|
|
184
|
+
const hasSubgroups = groupRow.subRows?.some((subRow) => subRow.getIsGrouped());
|
|
185
|
+
if (visible && expanded && !hasSubgroups) {
|
|
186
|
+
const dataRows = groupedRows.value[groupId] || [];
|
|
187
|
+
navRows.push(...dataRows);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return navRows;
|
|
191
|
+
});
|
|
192
|
+
return {
|
|
193
|
+
rows,
|
|
194
|
+
groupRows,
|
|
195
|
+
groupedRows,
|
|
196
|
+
groupExpanded,
|
|
197
|
+
toggleGroup,
|
|
198
|
+
isGroupExpanded,
|
|
199
|
+
virtualRowItems,
|
|
200
|
+
virtualizer,
|
|
201
|
+
virtualizationEnabled,
|
|
202
|
+
navigableRows,
|
|
203
|
+
groupingRowHeights,
|
|
204
|
+
headerGroupCount,
|
|
205
|
+
activeStickyIndexes,
|
|
206
|
+
activeStickyHeight,
|
|
207
|
+
measuredVirtualSizes,
|
|
208
|
+
getVirtualItemHeight,
|
|
209
|
+
stickyOffsets
|
|
210
|
+
};
|
|
211
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableData } from '@nuxt/ui';
|
|
2
|
+
import type { NuGridEventEmitter } from '../../types/index.js';
|
|
3
|
+
import type { NuGridInteractionRouter } from '../../types/_internal/index.js';
|
|
4
|
+
interface RouterOptions<T extends TableData = TableData> {
|
|
5
|
+
debug?: boolean;
|
|
6
|
+
eventEmitter?: NuGridEventEmitter<T>;
|
|
7
|
+
}
|
|
8
|
+
export declare function useNuGridInteractionRouter<T extends TableData>(options?: RouterOptions<T>): NuGridInteractionRouter<T>;
|
|
9
|
+
export {};
|