@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,36 @@
|
|
|
1
|
+
import SelectionEditor from "./SelectionEditor.vue";
|
|
2
|
+
import SelectionRenderer from "./SelectionRenderer.vue";
|
|
3
|
+
function canRowBeSelected(context) {
|
|
4
|
+
const meta = context.columnDef?.meta;
|
|
5
|
+
const globalEnabled = meta?.enabledRef?.value ?? meta?.selectionEnabled ?? true;
|
|
6
|
+
if (!globalEnabled) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
const rowSelectionEnabledFn = meta?.rowSelectionEnabledRef?.value;
|
|
10
|
+
if (!rowSelectionEnabledFn) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return rowSelectionEnabledFn(context.row);
|
|
14
|
+
}
|
|
15
|
+
export const selectionCellType = {
|
|
16
|
+
name: "selection",
|
|
17
|
+
displayName: "Selection",
|
|
18
|
+
description: "Row selection checkbox column",
|
|
19
|
+
editor: SelectionEditor,
|
|
20
|
+
renderer: SelectionRenderer,
|
|
21
|
+
keyboardHandler: (event, context) => {
|
|
22
|
+
const { isFocused, row } = context;
|
|
23
|
+
if (isFocused && event.key === " ") {
|
|
24
|
+
if (!canRowBeSelected(context)) {
|
|
25
|
+
return { handled: true, preventDefault: true, stopPropagation: true };
|
|
26
|
+
}
|
|
27
|
+
const currentValue = row.getIsSelected();
|
|
28
|
+
row.toggleSelected(!currentValue);
|
|
29
|
+
return { handled: true, preventDefault: true, stopPropagation: true };
|
|
30
|
+
}
|
|
31
|
+
if (isFocused && event.key === "Enter") {
|
|
32
|
+
return { handled: true, preventDefault: true, stopPropagation: true };
|
|
33
|
+
}
|
|
34
|
+
return { handled: false };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NuGridCellEditorProps } from '../../types/index.js';
|
|
2
|
+
type __VLS_Props = NuGridCellEditorProps;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (value: any) => any;
|
|
5
|
+
"update:isNavigating": (value: boolean) => any;
|
|
6
|
+
"stop-editing": (moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any;
|
|
7
|
+
"cancel-editing": () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
+
"onUpdate:isNavigating"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
"onStop-editing"?: ((moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any) | undefined;
|
|
12
|
+
"onCancel-editing"?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, inject, ref } from "vue";
|
|
3
|
+
import { useNuGridCellEditor } from "../../composables";
|
|
4
|
+
import { defaultValidationIcon } from "../../composables/_internal/useNuGridCellEditing";
|
|
5
|
+
defineOptions({ inheritAttrs: false });
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
modelValue: { type: null, required: true },
|
|
8
|
+
cell: { type: null, required: true },
|
|
9
|
+
row: { type: Object, required: true },
|
|
10
|
+
isNavigating: { type: Boolean, required: true },
|
|
11
|
+
shouldFocus: { type: Boolean, required: true },
|
|
12
|
+
validationError: { type: [String, null], required: false },
|
|
13
|
+
showValidationErrors: { type: String, required: false },
|
|
14
|
+
interactionRouter: { type: Object, required: false }
|
|
15
|
+
});
|
|
16
|
+
const emit = defineEmits(["update:modelValue", "stop-editing", "cancel-editing", "update:isNavigating"]);
|
|
17
|
+
const inputRef = ref(null);
|
|
18
|
+
const isHovered = ref(false);
|
|
19
|
+
const coreContext = inject("nugrid-core");
|
|
20
|
+
const validationContext = inject("nugrid-validation", null);
|
|
21
|
+
const { handleKeydown, handleBlur } = useNuGridCellEditor(props, emit, inputRef);
|
|
22
|
+
const hasError = computed(() => !!props.validationError);
|
|
23
|
+
const resolveShowErrors = (value) => {
|
|
24
|
+
if (value === "hover" || value === "never" || value === "always") return value;
|
|
25
|
+
return "always";
|
|
26
|
+
};
|
|
27
|
+
const showErrorsMode = computed(() => {
|
|
28
|
+
if (props.showValidationErrors !== void 0) return resolveShowErrors(props.showValidationErrors);
|
|
29
|
+
return resolveShowErrors(validationContext?.showErrors?.value);
|
|
30
|
+
});
|
|
31
|
+
const shouldShowPopover = computed(() => {
|
|
32
|
+
if (!hasError.value) return false;
|
|
33
|
+
const mode = showErrorsMode.value;
|
|
34
|
+
if (mode === "never") return false;
|
|
35
|
+
if (mode === "hover") return isHovered.value;
|
|
36
|
+
return true;
|
|
37
|
+
});
|
|
38
|
+
const popoverOuter = computed(() => coreContext.ui.value.validationPopoverContent?.());
|
|
39
|
+
const popoverInner = computed(() => coreContext.ui.value.validationPopoverInner?.());
|
|
40
|
+
const popoverUi = computed(() => ({ content: popoverOuter.value }));
|
|
41
|
+
const popoverIcon = computed(() => validationContext?.icon?.value ?? defaultValidationIcon);
|
|
42
|
+
const errorUi = computed(
|
|
43
|
+
() => hasError.value ? { base: coreContext.ui.value.editorErrorRing() } : void 0
|
|
44
|
+
);
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<UPopover :open="shouldShowPopover" :ui="popoverUi">
|
|
49
|
+
<template #anchor>
|
|
50
|
+
<UInput
|
|
51
|
+
ref="inputRef"
|
|
52
|
+
:model-value="modelValue"
|
|
53
|
+
:color="hasError ? 'error' : void 0"
|
|
54
|
+
:ui="errorUi"
|
|
55
|
+
class="w-full pl-0.5!"
|
|
56
|
+
@update:model-value="emit('update:modelValue', $event)"
|
|
57
|
+
@pointerenter="isHovered = true"
|
|
58
|
+
@pointerleave="isHovered = false"
|
|
59
|
+
@blur="handleBlur"
|
|
60
|
+
@keydown="handleKeydown"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
<template #content>
|
|
64
|
+
<div :class="[popoverInner, popoverOuter]">
|
|
65
|
+
<UIcon :name="popoverIcon" class="size-3.5 shrink-0" />
|
|
66
|
+
<span>{{ props.validationError }}</span>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
</UPopover>
|
|
70
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NuGridCellEditorProps } from '../../types/index.js';
|
|
2
|
+
type __VLS_Props = NuGridCellEditorProps;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (value: any) => any;
|
|
5
|
+
"update:isNavigating": (value: boolean) => any;
|
|
6
|
+
"stop-editing": (moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any;
|
|
7
|
+
"cancel-editing": () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
+
"onUpdate:isNavigating"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
"onStop-editing"?: ((moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any) | undefined;
|
|
12
|
+
"onCancel-editing"?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NuGridFilterContext } from '../../types/cells.js';
|
|
2
|
+
interface Props {
|
|
3
|
+
context: NuGridFilterContext;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
context: { type: Object, required: true }
|
|
5
|
+
});
|
|
6
|
+
const filterValue = computed({
|
|
7
|
+
get: () => props.context.filterValue.value,
|
|
8
|
+
set: (value) => props.context.setFilterValue(value)
|
|
9
|
+
});
|
|
10
|
+
const operator = ref("contains");
|
|
11
|
+
const operators = [
|
|
12
|
+
{ value: "contains", label: "Contains" },
|
|
13
|
+
{ value: "equals", label: "Equals" },
|
|
14
|
+
{ value: "startsWith", label: "Starts with" },
|
|
15
|
+
{ value: "endsWith", label: "Ends with" },
|
|
16
|
+
{ value: "notContains", label: "Does not contain" }
|
|
17
|
+
];
|
|
18
|
+
function clearFilter() {
|
|
19
|
+
filterValue.value = "";
|
|
20
|
+
props.context.clearFilter();
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div class="min-w-[200px] space-y-2 p-2">
|
|
26
|
+
<div class="flex items-center gap-2">
|
|
27
|
+
<USelect
|
|
28
|
+
v-model="operator"
|
|
29
|
+
:options="operators"
|
|
30
|
+
option-attribute="label"
|
|
31
|
+
value-attribute="value"
|
|
32
|
+
class="flex-1"
|
|
33
|
+
/>
|
|
34
|
+
<UButton
|
|
35
|
+
v-if="context.isFiltered"
|
|
36
|
+
icon="i-heroicons-x-mark"
|
|
37
|
+
size="xs"
|
|
38
|
+
color="neutral"
|
|
39
|
+
variant="ghost"
|
|
40
|
+
@click="clearFilter"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
<UInput
|
|
44
|
+
v-model="filterValue"
|
|
45
|
+
placeholder="Filter..."
|
|
46
|
+
autofocus
|
|
47
|
+
@update:model-value="context.setFilterValue($event)"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NuGridFilterContext } from '../../types/cells.js';
|
|
2
|
+
interface Props {
|
|
3
|
+
context: NuGridFilterContext;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NuGridCellEditorProps } from '../../types/index.js';
|
|
2
|
+
type __VLS_Props = NuGridCellEditorProps;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (value: any) => any;
|
|
5
|
+
"update:isNavigating": (value: boolean) => any;
|
|
6
|
+
"stop-editing": (moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any;
|
|
7
|
+
"cancel-editing": () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
+
"onUpdate:isNavigating"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
"onStop-editing"?: ((moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any) | undefined;
|
|
12
|
+
"onCancel-editing"?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, inject, ref } from "vue";
|
|
3
|
+
import { useNuGridCellEditor } from "../../composables";
|
|
4
|
+
import { defaultValidationIcon } from "../../composables/_internal/useNuGridCellEditing";
|
|
5
|
+
defineOptions({ inheritAttrs: false });
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
modelValue: { type: null, required: true },
|
|
8
|
+
cell: { type: null, required: true },
|
|
9
|
+
row: { type: Object, required: true },
|
|
10
|
+
isNavigating: { type: Boolean, required: true },
|
|
11
|
+
shouldFocus: { type: Boolean, required: true },
|
|
12
|
+
validationError: { type: [String, null], required: false },
|
|
13
|
+
showValidationErrors: { type: String, required: false },
|
|
14
|
+
interactionRouter: { type: Object, required: false }
|
|
15
|
+
});
|
|
16
|
+
const emit = defineEmits(["update:modelValue", "stop-editing", "cancel-editing", "update:isNavigating"]);
|
|
17
|
+
const textareaRef = ref(null);
|
|
18
|
+
const isHovered = ref(false);
|
|
19
|
+
const coreContext = inject("nugrid-core");
|
|
20
|
+
const validationContext = inject("nugrid-validation", null);
|
|
21
|
+
function focusTextarea() {
|
|
22
|
+
const textarea = textareaRef.value?.textareaRef ?? textareaRef.value?.$el?.querySelector("textarea");
|
|
23
|
+
if (textarea) {
|
|
24
|
+
textarea.focus({ preventScroll: true });
|
|
25
|
+
const len = textarea.value?.length ?? 0;
|
|
26
|
+
textarea.setSelectionRange(len, len);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const { handleBlur } = useNuGridCellEditor(props, emit, textareaRef, focusTextarea);
|
|
30
|
+
function handleKeydown(e) {
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
if (e.key === "Enter") {
|
|
33
|
+
if (e.metaKey || e.ctrlKey || e.shiftKey) {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
emit("stop-editing");
|
|
36
|
+
}
|
|
37
|
+
} else if (e.key === "Escape") {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
emit("cancel-editing");
|
|
40
|
+
} else if (e.key === "Tab") {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
emit("update:isNavigating", true);
|
|
43
|
+
if (e.shiftKey) {
|
|
44
|
+
emit("stop-editing", "previous");
|
|
45
|
+
} else {
|
|
46
|
+
emit("stop-editing", "next");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const hasError = computed(() => !!props.validationError);
|
|
51
|
+
const resolveShowErrors = (value) => {
|
|
52
|
+
if (value === "hover" || value === "never" || value === "always") return value;
|
|
53
|
+
return "always";
|
|
54
|
+
};
|
|
55
|
+
const showErrorsMode = computed(() => {
|
|
56
|
+
if (props.showValidationErrors !== void 0) return resolveShowErrors(props.showValidationErrors);
|
|
57
|
+
return resolveShowErrors(validationContext?.showErrors?.value);
|
|
58
|
+
});
|
|
59
|
+
const shouldShowPopover = computed(() => {
|
|
60
|
+
if (!hasError.value) return false;
|
|
61
|
+
const mode = showErrorsMode.value;
|
|
62
|
+
if (mode === "never") return false;
|
|
63
|
+
if (mode === "hover") return isHovered.value;
|
|
64
|
+
return true;
|
|
65
|
+
});
|
|
66
|
+
const popoverOuter = computed(() => coreContext.ui.value.validationPopoverContent?.());
|
|
67
|
+
const popoverInner = computed(() => coreContext.ui.value.validationPopoverInner?.());
|
|
68
|
+
const popoverUi = computed(() => ({ content: popoverOuter.value }));
|
|
69
|
+
const popoverIcon = computed(() => validationContext?.icon?.value ?? defaultValidationIcon);
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<!-- @click.stop prevents cell click handler from firing when clicking inside textarea -->
|
|
74
|
+
<UPopover :open="shouldShowPopover" :ui="popoverUi" class="size-full">
|
|
75
|
+
<template #anchor>
|
|
76
|
+
<div class="size-full" @click.stop>
|
|
77
|
+
<UTextarea
|
|
78
|
+
ref="textareaRef"
|
|
79
|
+
:model-value="modelValue"
|
|
80
|
+
:color="hasError ? 'error' : void 0"
|
|
81
|
+
:rows="1"
|
|
82
|
+
autoresize
|
|
83
|
+
class="size-full"
|
|
84
|
+
:ui="{ base: 'resize-none' }"
|
|
85
|
+
@update:model-value="emit('update:modelValue', $event)"
|
|
86
|
+
@pointerenter="isHovered = true"
|
|
87
|
+
@pointerleave="isHovered = false"
|
|
88
|
+
@blur="handleBlur"
|
|
89
|
+
@keydown="handleKeydown"
|
|
90
|
+
/>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
<template #content>
|
|
94
|
+
<div :class="[popoverInner, popoverOuter]">
|
|
95
|
+
<UIcon :name="popoverIcon" class="size-3.5 shrink-0" />
|
|
96
|
+
<span>{{ props.validationError }}</span>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
</UPopover>
|
|
100
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NuGridCellEditorProps } from '../../types/index.js';
|
|
2
|
+
type __VLS_Props = NuGridCellEditorProps;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (value: any) => any;
|
|
5
|
+
"update:isNavigating": (value: boolean) => any;
|
|
6
|
+
"stop-editing": (moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any;
|
|
7
|
+
"cancel-editing": () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
+
"onUpdate:isNavigating"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
"onStop-editing"?: ((moveDirection?: "up" | "down" | "next" | "previous" | undefined) => any) | undefined;
|
|
12
|
+
"onCancel-editing"?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NuGridCellType } from '../../types/cells.js';
|
|
2
|
+
import TextareaEditor from './TextareaEditor.vue.js';
|
|
3
|
+
import TextEditor from './TextEditor.vue.js';
|
|
4
|
+
/**
|
|
5
|
+
* Text cell type
|
|
6
|
+
* Standard text input with no special keyboard handling
|
|
7
|
+
*/
|
|
8
|
+
export declare const textCellType: NuGridCellType;
|
|
9
|
+
export { textareaCellType } from './textarea.js';
|
|
10
|
+
export { TextareaEditor, TextEditor };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import TextareaEditor from "./TextareaEditor.vue";
|
|
2
|
+
import TextEditor from "./TextEditor.vue";
|
|
3
|
+
import TextFilter from "./TextFilter.vue";
|
|
4
|
+
export const textCellType = {
|
|
5
|
+
name: "text",
|
|
6
|
+
displayName: "Text",
|
|
7
|
+
description: "Standard text input column",
|
|
8
|
+
editor: TextEditor,
|
|
9
|
+
filter: {
|
|
10
|
+
component: TextFilter,
|
|
11
|
+
defaultOperator: "contains"
|
|
12
|
+
},
|
|
13
|
+
enableFiltering: true
|
|
14
|
+
};
|
|
15
|
+
export { textareaCellType } from "./textarea.js";
|
|
16
|
+
export { TextareaEditor, TextEditor };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NuGridCellType } from '../../types/cells.js';
|
|
2
|
+
/**
|
|
3
|
+
* Textarea cell type
|
|
4
|
+
* Multi-line text input for long text content
|
|
5
|
+
*
|
|
6
|
+
* Keyboard behavior:
|
|
7
|
+
* - Enter: Creates a new line
|
|
8
|
+
* - Cmd/Ctrl+Enter or Shift+Enter: Saves and exits
|
|
9
|
+
* - Escape: Cancels editing
|
|
10
|
+
* - Tab/Shift+Tab: Saves and navigates to next/previous cell
|
|
11
|
+
* - Arrow keys: Move cursor within textarea (not intercepted for cell navigation)
|
|
12
|
+
*/
|
|
13
|
+
export declare const textareaCellType: NuGridCellType;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import TextareaEditor from "./TextareaEditor.vue";
|
|
2
|
+
import TextFilter from "./TextFilter.vue";
|
|
3
|
+
export const textareaCellType = {
|
|
4
|
+
name: "textarea",
|
|
5
|
+
displayName: "Textarea",
|
|
6
|
+
description: "Multi-line text input for long content",
|
|
7
|
+
editor: TextareaEditor,
|
|
8
|
+
filter: {
|
|
9
|
+
component: TextFilter,
|
|
10
|
+
defaultOperator: "contains"
|
|
11
|
+
},
|
|
12
|
+
enableFiltering: true
|
|
13
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { TableData, TableSlots } from '@nuxt/ui';
|
|
2
|
+
import type { ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowPinningState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/vue-table';
|
|
3
|
+
import type { NuGridStateSnapshot } from '../composables/_internal/useNuGridStatePersistence.js';
|
|
4
|
+
import type { NuGridAddRowState, NuGridCellClickEvent, NuGridCellEditingCancelledEvent, NuGridCellEditingStartedEvent, NuGridCellValueChangedEvent, NuGridExcelExportOptions, NuGridFilterChangedEvent, NuGridFocusedCellChangedEvent, NuGridFocusedRowChangedEvent, NuGridProps, NuGridRowClickEvent, NuGridSortChangedEvent } from '../types/index.js';
|
|
5
|
+
import type { RowDragEvent } from '../types/drag-drop.js';
|
|
6
|
+
declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(NuGridProps<T> & {
|
|
8
|
+
globalFilter?: string;
|
|
9
|
+
columnFilters?: ColumnFiltersState;
|
|
10
|
+
columnOrder?: ColumnOrderState;
|
|
11
|
+
columnVisibility?: VisibilityState;
|
|
12
|
+
columnPinning?: ColumnPinningState;
|
|
13
|
+
columnSizing?: ColumnSizingState;
|
|
14
|
+
columnSizingInfo?: ColumnSizingInfoState;
|
|
15
|
+
rowSelection?: RowSelectionState;
|
|
16
|
+
rowPinning?: RowPinningState;
|
|
17
|
+
sorting?: SortingState;
|
|
18
|
+
grouping?: GroupingState;
|
|
19
|
+
expanded?: ExpandedState;
|
|
20
|
+
pagination?: PaginationState;
|
|
21
|
+
focusedRowId?: string | null;
|
|
22
|
+
}) & {
|
|
23
|
+
onRowDragged?: ((event: RowDragEvent<T>) => any) | undefined;
|
|
24
|
+
onCellEditingCancelled?: ((event: NuGridCellEditingCancelledEvent<T>) => any) | undefined;
|
|
25
|
+
onCellEditingStarted?: ((event: NuGridCellEditingStartedEvent<T>) => any) | undefined;
|
|
26
|
+
onStateChanged?: ((state: NuGridStateSnapshot) => any) | undefined;
|
|
27
|
+
onFilterChanged?: ((event: NuGridFilterChangedEvent) => any) | undefined;
|
|
28
|
+
onSortChanged?: ((event: NuGridSortChangedEvent) => any) | undefined;
|
|
29
|
+
onFocusedRowChanged?: ((event: NuGridFocusedRowChangedEvent<T>) => any) | undefined;
|
|
30
|
+
onFocusedCellChanged?: ((event: NuGridFocusedCellChangedEvent<T>) => any) | undefined;
|
|
31
|
+
onCellClicked?: ((event: NuGridCellClickEvent<T>) => any) | undefined;
|
|
32
|
+
onRowClicked?: ((event: NuGridRowClickEvent<T>) => any) | undefined;
|
|
33
|
+
onCellDoubleClicked?: ((event: NuGridCellClickEvent<T>) => any) | undefined;
|
|
34
|
+
onRowDoubleClicked?: ((event: NuGridRowClickEvent<T>) => any) | undefined;
|
|
35
|
+
onCellValueChanged?: ((event: NuGridCellValueChangedEvent<T>) => any) | undefined;
|
|
36
|
+
onRowSelectionChanged?: ((event: RowSelectionState) => any) | undefined;
|
|
37
|
+
onReady?: (() => any) | undefined;
|
|
38
|
+
onRowAddRequested?: ((row: T) => any) | undefined;
|
|
39
|
+
onAddRowStateChanged?: ((state: NuGridAddRowState) => any) | undefined;
|
|
40
|
+
"onUpdate:globalFilter"?: ((value: string) => any) | undefined;
|
|
41
|
+
"onUpdate:columnFilters"?: ((value: ColumnFiltersState) => any) | undefined;
|
|
42
|
+
"onUpdate:columnOrder"?: ((value: ColumnOrderState) => any) | undefined;
|
|
43
|
+
"onUpdate:columnVisibility"?: ((value: VisibilityState) => any) | undefined;
|
|
44
|
+
"onUpdate:columnPinning"?: ((value: ColumnPinningState) => any) | undefined;
|
|
45
|
+
"onUpdate:columnSizing"?: ((value: ColumnSizingState) => any) | undefined;
|
|
46
|
+
"onUpdate:columnSizingInfo"?: ((value: ColumnSizingInfoState) => any) | undefined;
|
|
47
|
+
"onUpdate:rowSelection"?: ((value: RowSelectionState) => any) | undefined;
|
|
48
|
+
"onUpdate:rowPinning"?: ((value: RowPinningState) => any) | undefined;
|
|
49
|
+
"onUpdate:sorting"?: ((value: SortingState) => any) | undefined;
|
|
50
|
+
"onUpdate:grouping"?: ((value: GroupingState) => any) | undefined;
|
|
51
|
+
"onUpdate:expanded"?: ((value: ExpandedState) => any) | undefined;
|
|
52
|
+
"onUpdate:pagination"?: ((value: PaginationState) => any) | undefined;
|
|
53
|
+
"onUpdate:focusedRowId"?: ((value: string | null) => any) | undefined;
|
|
54
|
+
}> & (typeof globalThis extends {
|
|
55
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
56
|
+
} ? P : {});
|
|
57
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
58
|
+
readonly $el: any;
|
|
59
|
+
tableRef: import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
60
|
+
tableApi: import("@tanstack/table-core").Table<T>;
|
|
61
|
+
autoSizeColumns: (mode?: "fitCell" | "fitGrid") => void;
|
|
62
|
+
autoSizeColumn: (columnId: string) => void;
|
|
63
|
+
getState: () => {};
|
|
64
|
+
setState: (_snapshot: NuGridStateSnapshot) => void;
|
|
65
|
+
addRowState: import("vue").ComputedRef<NuGridAddRowState>;
|
|
66
|
+
excelExport: (filenameOrOptions?: string | NuGridExcelExportOptions, sheetName?: string) => Promise<void>;
|
|
67
|
+
getSelectedRows: <TRow = T>() => TRow[];
|
|
68
|
+
pagingGoToPage: (page: number) => void;
|
|
69
|
+
pagingGetCurrentPage: () => number;
|
|
70
|
+
pagingGetPageSize: () => number;
|
|
71
|
+
pagingGetTotalPages: () => number;
|
|
72
|
+
pinColumn: (columnId: string, side: "left" | "right") => void;
|
|
73
|
+
unpinColumn: (columnId: string) => void;
|
|
74
|
+
isPinned: (columnId: string) => "left" | "right" | false;
|
|
75
|
+
getPinnedColumns: () => {
|
|
76
|
+
left: string[];
|
|
77
|
+
right: string[];
|
|
78
|
+
};
|
|
79
|
+
focusRowById: (rowId: string | null, options?: {
|
|
80
|
+
columnIndex?: number;
|
|
81
|
+
align?: "nearest" | "top" | "center";
|
|
82
|
+
}) => boolean;
|
|
83
|
+
}>) => void;
|
|
84
|
+
attrs: any;
|
|
85
|
+
slots: TableSlots<T>;
|
|
86
|
+
emit: (((evt: "rowDragged", event: RowDragEvent<T>) => void) & ((evt: "cellEditingCancelled", event: NuGridCellEditingCancelledEvent<T>) => void) & ((evt: "cellEditingStarted", event: NuGridCellEditingStartedEvent<T>) => void) & ((evt: "stateChanged", state: NuGridStateSnapshot) => void) & ((evt: "filterChanged", event: NuGridFilterChangedEvent) => void) & ((evt: "sortChanged", event: NuGridSortChangedEvent) => void) & ((evt: "focusedRowChanged", event: NuGridFocusedRowChangedEvent<T>) => void) & ((evt: "focusedCellChanged", event: NuGridFocusedCellChangedEvent<T>) => void) & ((evt: "cellClicked", event: NuGridCellClickEvent<T>) => void) & ((evt: "rowClicked", event: NuGridRowClickEvent<T>) => void) & ((evt: "cellDoubleClicked", event: NuGridCellClickEvent<T>) => void) & ((evt: "rowDoubleClicked", event: NuGridRowClickEvent<T>) => void) & ((evt: "cellValueChanged", event: NuGridCellValueChangedEvent<T>) => void) & ((evt: "rowSelectionChanged", event: RowSelectionState) => void) & ((evt: "ready") => void) & ((evt: "rowAddRequested", row: T) => void) & ((evt: "addRowStateChanged", state: NuGridAddRowState) => void)) & (((evt: "update:globalFilter", value: string) => void) & ((evt: "update:columnFilters", value: ColumnFiltersState) => void) & ((evt: "update:columnOrder", value: ColumnOrderState) => void) & ((evt: "update:columnVisibility", value: VisibilityState) => void) & ((evt: "update:columnPinning", value: ColumnPinningState) => void) & ((evt: "update:columnSizing", value: ColumnSizingState) => void) & ((evt: "update:columnSizingInfo", value: ColumnSizingInfoState) => void) & ((evt: "update:rowSelection", value: RowSelectionState) => void) & ((evt: "update:rowPinning", value: RowPinningState) => void) & ((evt: "update:sorting", value: SortingState) => void) & ((evt: "update:grouping", value: GroupingState) => void) & ((evt: "update:expanded", value: ExpandedState) => void) & ((evt: "update:pagination", value: PaginationState) => void) & ((evt: "update:focusedRowId", value: string | null) => void));
|
|
87
|
+
}>) => import("vue").VNode & {
|
|
88
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
89
|
+
};
|
|
90
|
+
declare const _default: typeof __VLS_export;
|
|
91
|
+
export default _default;
|
|
92
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
93
|
+
[K in keyof T]: T[K];
|
|
94
|
+
} : {
|
|
95
|
+
[K in keyof T as K]: T[K];
|
|
96
|
+
}) & {};
|