@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,329 @@
|
|
|
1
|
+
export declare const nuGridTheme: {
|
|
2
|
+
slots: {
|
|
3
|
+
root: string;
|
|
4
|
+
checkboxBase: string;
|
|
5
|
+
checkboxIndicator: string;
|
|
6
|
+
checkboxContainer: string;
|
|
7
|
+
checkboxIcon: string;
|
|
8
|
+
base: string;
|
|
9
|
+
scrollbar: string;
|
|
10
|
+
th: string;
|
|
11
|
+
td: string;
|
|
12
|
+
tr: string;
|
|
13
|
+
loading: string;
|
|
14
|
+
empty: string;
|
|
15
|
+
separator: string;
|
|
16
|
+
rowDragHandle: string;
|
|
17
|
+
colResizeHandle: string;
|
|
18
|
+
colResizer: string;
|
|
19
|
+
rowDragHeaderHandle: string;
|
|
20
|
+
thInner: string;
|
|
21
|
+
sortHandle: string;
|
|
22
|
+
sortHandleHover: string;
|
|
23
|
+
rowDragIcon: string;
|
|
24
|
+
headerContainer: string;
|
|
25
|
+
footerContent: string;
|
|
26
|
+
groupHeader: string;
|
|
27
|
+
groupHeaderLeft: string;
|
|
28
|
+
groupIcon: string;
|
|
29
|
+
groupLabel: string;
|
|
30
|
+
groupHeaderSpacer: string;
|
|
31
|
+
collapsedHeaderCell: string;
|
|
32
|
+
collapsedText: string;
|
|
33
|
+
expandedText: string;
|
|
34
|
+
stickyGroupHeader: string;
|
|
35
|
+
stickyColumnHeader: string;
|
|
36
|
+
thGroup: string;
|
|
37
|
+
thGroupInner: string;
|
|
38
|
+
editorErrorRing: string;
|
|
39
|
+
validationPopoverContent: string;
|
|
40
|
+
validationPopoverInner: string;
|
|
41
|
+
multiRowHeaderRow: string;
|
|
42
|
+
multiRowContainer: string;
|
|
43
|
+
multiRowDragHandle: string;
|
|
44
|
+
multiRowContent: string;
|
|
45
|
+
visualRow: string;
|
|
46
|
+
alignedLayout: string;
|
|
47
|
+
alignedPinnedLeft: string;
|
|
48
|
+
alignedPinnedRight: string;
|
|
49
|
+
alignedContent: string;
|
|
50
|
+
alignedFiller: string;
|
|
51
|
+
rowAnimation: string;
|
|
52
|
+
addRowIndicator: string;
|
|
53
|
+
caption: string;
|
|
54
|
+
thead: string;
|
|
55
|
+
tbody: string;
|
|
56
|
+
tfoot: string;
|
|
57
|
+
};
|
|
58
|
+
variants: {
|
|
59
|
+
gridFocused: {
|
|
60
|
+
true: {};
|
|
61
|
+
false: {};
|
|
62
|
+
};
|
|
63
|
+
focusCell: {
|
|
64
|
+
true: {
|
|
65
|
+
td: string;
|
|
66
|
+
};
|
|
67
|
+
false: {};
|
|
68
|
+
};
|
|
69
|
+
focusRow: {
|
|
70
|
+
true: {
|
|
71
|
+
tr: string;
|
|
72
|
+
td: string;
|
|
73
|
+
};
|
|
74
|
+
false: {};
|
|
75
|
+
};
|
|
76
|
+
rowInvalid: {
|
|
77
|
+
true: {
|
|
78
|
+
td: string;
|
|
79
|
+
};
|
|
80
|
+
false: {};
|
|
81
|
+
};
|
|
82
|
+
hasLeftBorder: {
|
|
83
|
+
true: {};
|
|
84
|
+
};
|
|
85
|
+
hasRightBorder: {
|
|
86
|
+
true: {};
|
|
87
|
+
};
|
|
88
|
+
activeRow: {
|
|
89
|
+
true: {
|
|
90
|
+
td: string;
|
|
91
|
+
};
|
|
92
|
+
false: {};
|
|
93
|
+
};
|
|
94
|
+
colResizing: {
|
|
95
|
+
true: {
|
|
96
|
+
colResizeHandle: string;
|
|
97
|
+
colResizer: string;
|
|
98
|
+
};
|
|
99
|
+
false: {
|
|
100
|
+
colResizeHandle: string;
|
|
101
|
+
colResizer: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
colDraggable: {
|
|
105
|
+
true: {
|
|
106
|
+
thInner: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
colDragging: {
|
|
110
|
+
true: {
|
|
111
|
+
th: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
colDropTarget: {
|
|
115
|
+
true: {
|
|
116
|
+
th: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
focusMultiRow: {
|
|
120
|
+
true: {
|
|
121
|
+
multiRowContainer: string;
|
|
122
|
+
};
|
|
123
|
+
false: {};
|
|
124
|
+
};
|
|
125
|
+
virtualize: {
|
|
126
|
+
false: {
|
|
127
|
+
base: string;
|
|
128
|
+
tbody: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
pinned: {
|
|
132
|
+
true: {
|
|
133
|
+
th: string;
|
|
134
|
+
td: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
sticky: {
|
|
138
|
+
true: {
|
|
139
|
+
thead: string;
|
|
140
|
+
tfoot: string;
|
|
141
|
+
};
|
|
142
|
+
header: {
|
|
143
|
+
thead: string;
|
|
144
|
+
};
|
|
145
|
+
footer: {
|
|
146
|
+
tfoot: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
loading: {
|
|
150
|
+
true: {
|
|
151
|
+
thead: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
loadingAnimation: {
|
|
155
|
+
carousel: string;
|
|
156
|
+
"carousel-inverse": string;
|
|
157
|
+
swing: string;
|
|
158
|
+
elastic: string;
|
|
159
|
+
};
|
|
160
|
+
loadingColor: {
|
|
161
|
+
primary: string;
|
|
162
|
+
secondary: string;
|
|
163
|
+
success: string;
|
|
164
|
+
info: string;
|
|
165
|
+
warning: string;
|
|
166
|
+
error: string;
|
|
167
|
+
neutral: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
compoundVariants: ({
|
|
171
|
+
loading: boolean;
|
|
172
|
+
loadingColor: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
|
|
173
|
+
class: {
|
|
174
|
+
thead: string;
|
|
175
|
+
};
|
|
176
|
+
loadingAnimation?: undefined;
|
|
177
|
+
} | {
|
|
178
|
+
loading: boolean;
|
|
179
|
+
loadingAnimation: "carousel" | "carousel-inverse" | "swing" | "elastic";
|
|
180
|
+
class: {
|
|
181
|
+
thead: string;
|
|
182
|
+
};
|
|
183
|
+
loadingColor?: undefined;
|
|
184
|
+
} | {
|
|
185
|
+
pinned: boolean;
|
|
186
|
+
class: {
|
|
187
|
+
th: string;
|
|
188
|
+
td: string;
|
|
189
|
+
thGroup: string;
|
|
190
|
+
};
|
|
191
|
+
rowInvalid?: undefined;
|
|
192
|
+
activeRow?: undefined;
|
|
193
|
+
focusRow?: undefined;
|
|
194
|
+
focusCell?: undefined;
|
|
195
|
+
gridFocused?: undefined;
|
|
196
|
+
hasLeftBorder?: undefined;
|
|
197
|
+
hasRightBorder?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
rowInvalid: boolean;
|
|
200
|
+
activeRow: boolean;
|
|
201
|
+
class: {
|
|
202
|
+
td: string;
|
|
203
|
+
th?: undefined;
|
|
204
|
+
thGroup?: undefined;
|
|
205
|
+
};
|
|
206
|
+
pinned?: undefined;
|
|
207
|
+
focusRow?: undefined;
|
|
208
|
+
focusCell?: undefined;
|
|
209
|
+
gridFocused?: undefined;
|
|
210
|
+
hasLeftBorder?: undefined;
|
|
211
|
+
hasRightBorder?: undefined;
|
|
212
|
+
} | {
|
|
213
|
+
rowInvalid: boolean;
|
|
214
|
+
activeRow: boolean;
|
|
215
|
+
focusRow: boolean;
|
|
216
|
+
focusCell: boolean;
|
|
217
|
+
gridFocused: boolean;
|
|
218
|
+
class: {
|
|
219
|
+
td: string;
|
|
220
|
+
th?: undefined;
|
|
221
|
+
thGroup?: undefined;
|
|
222
|
+
};
|
|
223
|
+
pinned?: undefined;
|
|
224
|
+
hasLeftBorder?: undefined;
|
|
225
|
+
hasRightBorder?: undefined;
|
|
226
|
+
} | {
|
|
227
|
+
focusCell: boolean;
|
|
228
|
+
gridFocused: boolean;
|
|
229
|
+
rowInvalid: boolean;
|
|
230
|
+
class: {
|
|
231
|
+
td: string;
|
|
232
|
+
th?: undefined;
|
|
233
|
+
thGroup?: undefined;
|
|
234
|
+
};
|
|
235
|
+
pinned?: undefined;
|
|
236
|
+
activeRow?: undefined;
|
|
237
|
+
focusRow?: undefined;
|
|
238
|
+
hasLeftBorder?: undefined;
|
|
239
|
+
hasRightBorder?: undefined;
|
|
240
|
+
} | {
|
|
241
|
+
focusRow: boolean;
|
|
242
|
+
gridFocused: boolean;
|
|
243
|
+
pinned: boolean;
|
|
244
|
+
rowInvalid: boolean;
|
|
245
|
+
class: {
|
|
246
|
+
td: string;
|
|
247
|
+
th?: undefined;
|
|
248
|
+
thGroup?: undefined;
|
|
249
|
+
};
|
|
250
|
+
activeRow?: undefined;
|
|
251
|
+
focusCell?: undefined;
|
|
252
|
+
hasLeftBorder?: undefined;
|
|
253
|
+
hasRightBorder?: undefined;
|
|
254
|
+
} | {
|
|
255
|
+
focusRow: boolean;
|
|
256
|
+
hasLeftBorder: boolean;
|
|
257
|
+
class: {
|
|
258
|
+
td: string;
|
|
259
|
+
th?: undefined;
|
|
260
|
+
thGroup?: undefined;
|
|
261
|
+
};
|
|
262
|
+
pinned?: undefined;
|
|
263
|
+
rowInvalid?: undefined;
|
|
264
|
+
activeRow?: undefined;
|
|
265
|
+
focusCell?: undefined;
|
|
266
|
+
gridFocused?: undefined;
|
|
267
|
+
hasRightBorder?: undefined;
|
|
268
|
+
} | {
|
|
269
|
+
focusRow: boolean;
|
|
270
|
+
hasRightBorder: boolean;
|
|
271
|
+
class: {
|
|
272
|
+
td: string;
|
|
273
|
+
th?: undefined;
|
|
274
|
+
thGroup?: undefined;
|
|
275
|
+
};
|
|
276
|
+
pinned?: undefined;
|
|
277
|
+
rowInvalid?: undefined;
|
|
278
|
+
activeRow?: undefined;
|
|
279
|
+
focusCell?: undefined;
|
|
280
|
+
gridFocused?: undefined;
|
|
281
|
+
hasLeftBorder?: undefined;
|
|
282
|
+
} | {
|
|
283
|
+
focusRow: boolean;
|
|
284
|
+
hasLeftBorder: boolean;
|
|
285
|
+
hasRightBorder: boolean;
|
|
286
|
+
class: {
|
|
287
|
+
td: string;
|
|
288
|
+
th?: undefined;
|
|
289
|
+
thGroup?: undefined;
|
|
290
|
+
};
|
|
291
|
+
pinned?: undefined;
|
|
292
|
+
rowInvalid?: undefined;
|
|
293
|
+
activeRow?: undefined;
|
|
294
|
+
focusCell?: undefined;
|
|
295
|
+
gridFocused?: undefined;
|
|
296
|
+
} | {
|
|
297
|
+
focusRow: boolean;
|
|
298
|
+
rowInvalid: boolean;
|
|
299
|
+
class: {
|
|
300
|
+
td: string;
|
|
301
|
+
th?: undefined;
|
|
302
|
+
thGroup?: undefined;
|
|
303
|
+
};
|
|
304
|
+
pinned?: undefined;
|
|
305
|
+
activeRow?: undefined;
|
|
306
|
+
focusCell?: undefined;
|
|
307
|
+
gridFocused?: undefined;
|
|
308
|
+
hasLeftBorder?: undefined;
|
|
309
|
+
hasRightBorder?: undefined;
|
|
310
|
+
} | {
|
|
311
|
+
focusCell: boolean;
|
|
312
|
+
rowInvalid: boolean;
|
|
313
|
+
class: {
|
|
314
|
+
td: string;
|
|
315
|
+
th?: undefined;
|
|
316
|
+
thGroup?: undefined;
|
|
317
|
+
};
|
|
318
|
+
pinned?: undefined;
|
|
319
|
+
activeRow?: undefined;
|
|
320
|
+
focusRow?: undefined;
|
|
321
|
+
gridFocused?: undefined;
|
|
322
|
+
hasLeftBorder?: undefined;
|
|
323
|
+
hasRightBorder?: undefined;
|
|
324
|
+
})[];
|
|
325
|
+
defaultVariants: {
|
|
326
|
+
loadingColor: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
|
|
327
|
+
loadingAnimation: "carousel" | "carousel-inverse" | "swing" | "elastic";
|
|
328
|
+
};
|
|
329
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import theme from "#build/ui/table";
|
|
2
|
+
export const nuGridTheme = {
|
|
3
|
+
...theme,
|
|
4
|
+
slots: {
|
|
5
|
+
...theme.slots,
|
|
6
|
+
// Root container - extends base with height to fill parent container
|
|
7
|
+
root: "relative overflow-auto h-full",
|
|
8
|
+
// style the checkboxes to match compact theme
|
|
9
|
+
checkboxBase: "",
|
|
10
|
+
checkboxIndicator: "",
|
|
11
|
+
checkboxContainer: "",
|
|
12
|
+
checkboxIcon: "",
|
|
13
|
+
// Base slots with div mode styles merged in - pb-3 provides space for horizontal scrollbar
|
|
14
|
+
base: "flex flex-col pb-3 w-max min-w-0 border-separate border-spacing-0",
|
|
15
|
+
// Scrollbar styling - uses tailwind-scrollbar plugin
|
|
16
|
+
scrollbar: "scrollbar-thin scrollbar-track-transparent scrollbar-thumb-gray-400/50 hover:scrollbar-thumb-gray-500/60 dark:scrollbar-thumb-gray-500/50 dark:hover:scrollbar-thumb-gray-400/60 scrollbar-thumb-rounded",
|
|
17
|
+
th: "flex shrink-0 items-stretch overflow-hidden p-0! group text-left rtl:text-right text-sm font-semibold text-highlighted py-2 first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",
|
|
18
|
+
td: "flex shrink-0 items-center overflow-hidden p-4 whitespace-nowrap text-sm text-muted outline-none! focus-visible:outline-none! border-b border-default",
|
|
19
|
+
tr: "flex outline-none! focus-visible:outline-none!",
|
|
20
|
+
loading: "flex-1",
|
|
21
|
+
empty: "flex-1",
|
|
22
|
+
separator: "flex-1 h-0",
|
|
23
|
+
// Additional NuGrid-specific slots
|
|
24
|
+
rowDragHandle: "flex shrink-0 items-center justify-center px-2 w-10 min-w-10 max-w-10",
|
|
25
|
+
colResizeHandle: "flex shrink-0 items-center justify-center w-4 cursor-col-resize select-none touch-none opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity duration-200 relative z-10 hover:bg-primary-500/10 [&:hover_.col-resizer]:bg-primary-500/80",
|
|
26
|
+
colResizer: "w-0.5 h-3/5 rounded-sm transition-colors duration-200 bg-gray-400/60 col-resizer",
|
|
27
|
+
rowDragHeaderHandle: "shrink-0 w-10 min-w-10 max-w-10",
|
|
28
|
+
thInner: "flex flex-1 items-center px-3 py-2 truncate",
|
|
29
|
+
sortHandle: "flex shrink-0 items-center px-1 cursor-pointer select-none opacity-100 hover:text-primary-500 transition-opacity duration-200",
|
|
30
|
+
sortHandleHover: "flex shrink-0 items-center px-1 cursor-pointer select-none text-gray-400/60 opacity-0 group-hover:opacity-100 focus-within:opacity-100 hover:text-primary-500 transition-opacity duration-200",
|
|
31
|
+
rowDragIcon: "inline-block w-4 h-4",
|
|
32
|
+
headerContainer: "flex items-stretch w-full h-full",
|
|
33
|
+
footerContent: "w-full truncate",
|
|
34
|
+
groupHeader: "flex items-stretch cursor-pointer bg-primary/10 hover:bg-primary/15 transition-colors",
|
|
35
|
+
groupHeaderLeft: "sticky left-0 z-50 flex items-center gap-3 px-4 py-3 border-b-0 border-l-4 border-primary",
|
|
36
|
+
groupIcon: "shrink-0 w-5 h-5 text-primary transition-transform",
|
|
37
|
+
groupLabel: "text-sm font-medium text-muted",
|
|
38
|
+
groupHeaderSpacer: "flex-1",
|
|
39
|
+
collapsedHeaderCell: "flex shrink-0 items-center overflow-hidden px-3 py-2 border-r border-default/50",
|
|
40
|
+
collapsedText: "w-full truncate text-sm italic text-muted",
|
|
41
|
+
expandedText: "w-full truncate text-sm text-muted",
|
|
42
|
+
stickyGroupHeader: "sticky top-0 z-30 bg-default",
|
|
43
|
+
stickyColumnHeader: "sticky top-0 z-20 bg-default",
|
|
44
|
+
// Column group header styling (for multi-level headers)
|
|
45
|
+
thGroup: "group flex shrink-0 items-stretch overflow-hidden p-0! bg-elevated border-b-2 border-primary/30",
|
|
46
|
+
thGroupInner: "flex flex-1 items-center px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted",
|
|
47
|
+
// Editor validation error styling
|
|
48
|
+
editorErrorRing: "ring-error ring-1",
|
|
49
|
+
validationPopoverContent: "p-2 text-xs",
|
|
50
|
+
validationPopoverInner: "flex items-center gap-1.5 text-error",
|
|
51
|
+
// Multi-row layout slots
|
|
52
|
+
multiRowHeaderRow: "flex flex-row",
|
|
53
|
+
multiRowContainer: "flex flex-col outline-none",
|
|
54
|
+
multiRowDragHandle: "flex items-center justify-center self-stretch",
|
|
55
|
+
multiRowContent: "flex flex-col flex-1 min-w-0",
|
|
56
|
+
visualRow: "flex flex-row",
|
|
57
|
+
// Aligned mode layout slots
|
|
58
|
+
alignedLayout: "flex flex-row flex-1 min-w-0",
|
|
59
|
+
alignedPinnedLeft: "flex flex-row shrink-0 sticky left-0 z-10 bg-elevated",
|
|
60
|
+
alignedPinnedRight: "flex flex-row shrink-0 sticky right-0 z-10 bg-elevated",
|
|
61
|
+
alignedContent: "flex flex-col flex-1 min-w-0",
|
|
62
|
+
alignedFiller: "bg-transparent",
|
|
63
|
+
// Row animation slot - uses CSS variables --nugrid-animation-duration and --nugrid-animation-easing
|
|
64
|
+
// Override this slot to customize the animation effect (e.g., different keyframes or timing)
|
|
65
|
+
rowAnimation: "animate-nugrid-refresh",
|
|
66
|
+
// Add row indicator - shown when add row is idle (not focused or editing)
|
|
67
|
+
addRowIndicator: "absolute inset-0 flex items-center px-3 pointer-events-none text-sm text-muted z-10"
|
|
68
|
+
},
|
|
69
|
+
variants: {
|
|
70
|
+
...theme.variants,
|
|
71
|
+
gridFocused: {
|
|
72
|
+
true: {},
|
|
73
|
+
false: {}
|
|
74
|
+
},
|
|
75
|
+
focusCell: {
|
|
76
|
+
true: {
|
|
77
|
+
td: "z-1 shadow-[inset_2px_0_0_0_theme(colors.primary.500/70%),inset_-2px_0_0_0_theme(colors.primary.500/70%),inset_0_2px_0_0_theme(colors.primary.500/70%),inset_0_-2px_0_0_theme(colors.primary.500/70%)]"
|
|
78
|
+
},
|
|
79
|
+
false: {}
|
|
80
|
+
},
|
|
81
|
+
focusRow: {
|
|
82
|
+
true: {
|
|
83
|
+
tr: "bg-primary/10 ring-2 ring-inset ring-primary/50",
|
|
84
|
+
td: "bg-primary/10"
|
|
85
|
+
},
|
|
86
|
+
false: {}
|
|
87
|
+
},
|
|
88
|
+
rowInvalid: {
|
|
89
|
+
true: {
|
|
90
|
+
td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50"
|
|
91
|
+
},
|
|
92
|
+
false: {}
|
|
93
|
+
},
|
|
94
|
+
hasLeftBorder: {
|
|
95
|
+
true: {}
|
|
96
|
+
},
|
|
97
|
+
hasRightBorder: {
|
|
98
|
+
true: {}
|
|
99
|
+
},
|
|
100
|
+
activeRow: {
|
|
101
|
+
true: {
|
|
102
|
+
td: "bg-primary/5!"
|
|
103
|
+
},
|
|
104
|
+
false: {}
|
|
105
|
+
},
|
|
106
|
+
colResizing: {
|
|
107
|
+
true: {
|
|
108
|
+
colResizeHandle: "opacity-100! bg-primary-500/20",
|
|
109
|
+
colResizer: "bg-primary-500 w-1"
|
|
110
|
+
},
|
|
111
|
+
false: {
|
|
112
|
+
colResizeHandle: "",
|
|
113
|
+
colResizer: ""
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
colDraggable: {
|
|
117
|
+
true: {
|
|
118
|
+
thInner: "cursor-move transition-transform duration-300 ease-in-out"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
colDragging: {
|
|
122
|
+
true: {
|
|
123
|
+
th: "bg-primary-500/10 opacity-50 transition-[opacity,background-color] duration-200 ease-linear"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
colDropTarget: {
|
|
127
|
+
true: {
|
|
128
|
+
th: "bg-primary-500/5! data-[drop-position=left]:shadow-[inset_3px_0_0_0_theme(colors.primary.500/80%)] data-[drop-position=right]:shadow-[inset_-3px_0_0_0_theme(colors.primary.500/80%)] transition-shadow duration-200 ease-linear"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
// Multi-row focused state (row focus mode with multi-row layout)
|
|
132
|
+
focusMultiRow: {
|
|
133
|
+
true: {
|
|
134
|
+
multiRowContainer: "bg-primary/10 ring-2 ring-inset ring-primary rounded"
|
|
135
|
+
},
|
|
136
|
+
false: {}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
compoundVariants: [
|
|
140
|
+
...theme.compoundVariants,
|
|
141
|
+
{
|
|
142
|
+
pinned: true,
|
|
143
|
+
class: {
|
|
144
|
+
th: "sticky z-10",
|
|
145
|
+
td: "sticky z-10",
|
|
146
|
+
thGroup: "sticky z-10 bg-elevated"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
// Row invalid styling - apply early to ensure it takes precedence
|
|
150
|
+
{
|
|
151
|
+
rowInvalid: true,
|
|
152
|
+
activeRow: true,
|
|
153
|
+
class: {
|
|
154
|
+
td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
rowInvalid: true,
|
|
159
|
+
activeRow: false,
|
|
160
|
+
focusRow: false,
|
|
161
|
+
focusCell: false,
|
|
162
|
+
gridFocused: true,
|
|
163
|
+
class: {
|
|
164
|
+
td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
rowInvalid: true,
|
|
169
|
+
activeRow: false,
|
|
170
|
+
focusRow: false,
|
|
171
|
+
focusCell: false,
|
|
172
|
+
gridFocused: false,
|
|
173
|
+
class: {
|
|
174
|
+
td: "!bg-error/10 !text-error-700 dark:!bg-error/20 dark:!text-error-50"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
// Unfocused grid background
|
|
178
|
+
{
|
|
179
|
+
focusCell: true,
|
|
180
|
+
gridFocused: false,
|
|
181
|
+
rowInvalid: false,
|
|
182
|
+
class: { td: "bg-primary-500/20! dark:bg-primary-400/30!" }
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
focusRow: true,
|
|
186
|
+
gridFocused: false,
|
|
187
|
+
pinned: false,
|
|
188
|
+
rowInvalid: false,
|
|
189
|
+
class: { td: "bg-primary-500/20! dark:bg-primary-400/30!" }
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
focusRow: true,
|
|
193
|
+
gridFocused: false,
|
|
194
|
+
pinned: true,
|
|
195
|
+
rowInvalid: false,
|
|
196
|
+
class: { td: "z-10 bg-primary-500/20! dark:bg-primary-400/30!" }
|
|
197
|
+
},
|
|
198
|
+
// Focus row outline borders
|
|
199
|
+
{
|
|
200
|
+
focusRow: true,
|
|
201
|
+
hasLeftBorder: true,
|
|
202
|
+
class: {
|
|
203
|
+
td: "shadow-[inset_2px_0_0_0_theme(colors.primary.500/70%),inset_0_2px_0_0_theme(colors.primary.500/70%),inset_0_-2px_0_0_theme(colors.primary.500/70%)]"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
focusRow: true,
|
|
208
|
+
hasRightBorder: true,
|
|
209
|
+
class: {
|
|
210
|
+
td: "shadow-[inset_-2px_0_0_0_theme(colors.primary.500/70%),inset_0_2px_0_0_theme(colors.primary.500/70%),inset_0_-2px_0_0_theme(colors.primary.500/70%)]"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
focusRow: true,
|
|
215
|
+
hasLeftBorder: false,
|
|
216
|
+
hasRightBorder: false,
|
|
217
|
+
class: {
|
|
218
|
+
td: "shadow-[inset_0_2px_0_0_theme(colors.primary.500/70%),inset_0_-2px_0_0_theme(colors.primary.500/70%)]"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
focusRow: true,
|
|
223
|
+
rowInvalid: true,
|
|
224
|
+
class: {
|
|
225
|
+
td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50 shadow-none"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
focusCell: true,
|
|
230
|
+
rowInvalid: true,
|
|
231
|
+
class: {
|
|
232
|
+
td: "bg-error/10 text-error-700 dark:bg-error/20 dark:text-error-50 shadow-none"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
};
|