@taocompany/magic-grid 0.11.8 → 0.12.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.
Files changed (104) hide show
  1. package/README.md +24 -19
  2. package/dist/components/MagicGrid/MagicGrid.vue.d.ts +10 -1
  3. package/dist/components/MagicGrid/MagicGrid.vue.d.ts.map +1 -1
  4. package/dist/components/MagicGrid/magicGridProps.d.ts +5 -0
  5. package/dist/components/MagicGrid/magicGridProps.d.ts.map +1 -1
  6. package/dist/components/MagicGrid/useMagicGrid.d.ts.map +1 -1
  7. package/dist/components/cellEditor/executeFocus.d.ts +12 -0
  8. package/dist/components/cellEditor/executeFocus.d.ts.map +1 -0
  9. package/dist/components/cellEditor/index.d.ts +2 -1
  10. package/dist/components/cellEditor/index.d.ts.map +1 -1
  11. package/dist/components/cellEditor/useCellEditor.d.ts +8 -2
  12. package/dist/components/cellEditor/useCellEditor.d.ts.map +1 -1
  13. package/dist/components/cellEditor/vueCellEditorHost.d.ts +16 -2
  14. package/dist/components/cellEditor/vueCellEditorHost.d.ts.map +1 -1
  15. package/dist/core/cell/cellCtrl.d.ts +1 -0
  16. package/dist/core/cell/cellCtrl.d.ts.map +1 -1
  17. package/dist/core/column/columnModel.d.ts.map +1 -1
  18. package/dist/core/column/horizontalResize.d.ts.map +1 -1
  19. package/dist/core/editing/builtInEditors.d.ts.map +1 -1
  20. package/dist/core/editing/cellEditPipeline.d.ts +1 -1
  21. package/dist/core/editing/cellEditPipeline.d.ts.map +1 -1
  22. package/dist/core/editing/cellEditingService.d.ts.map +1 -1
  23. package/dist/core/editing/cellEditorHost.d.ts.map +1 -1
  24. package/dist/core/editing/index.d.ts +4 -0
  25. package/dist/core/editing/index.d.ts.map +1 -1
  26. package/dist/core/editing/inlineCellEditorHost.d.ts +1 -1
  27. package/dist/core/editing/inlineCellEditorHost.d.ts.map +1 -1
  28. package/dist/core/editing/inlineCellEditorService.d.ts.map +1 -1
  29. package/dist/core/editing/mergeCellEditorParams.d.ts +14 -0
  30. package/dist/core/editing/mergeCellEditorParams.d.ts.map +1 -0
  31. package/dist/core/editing/resolveCellEditorParams.d.ts +6 -0
  32. package/dist/core/editing/resolveCellEditorParams.d.ts.map +1 -0
  33. package/dist/core/editing/rowEditingService.d.ts.map +1 -1
  34. package/dist/core/editing/switchEditorValue.d.ts +2 -1
  35. package/dist/core/editing/switchEditorValue.d.ts.map +1 -1
  36. package/dist/core/grid/cellEditing/editorParams.d.ts +2 -0
  37. package/dist/core/grid/cellEditing/editorParams.d.ts.map +1 -1
  38. package/dist/core/grid/cellRangeDeleteWrite.d.ts.map +1 -1
  39. package/dist/core/grid/cellRangeFillWrite.d.ts.map +1 -1
  40. package/dist/core/grid/gridBootstrap.d.ts.map +1 -1
  41. package/dist/core/grid/gridColumnLayout.d.ts +6 -1
  42. package/dist/core/grid/gridColumnLayout.d.ts.map +1 -1
  43. package/dist/core/grid/gridInteraction/cellBodyInteractionHandlers.d.ts.map +1 -1
  44. package/dist/core/grid/gridInteraction/cellRangeDragSession.d.ts +1 -0
  45. package/dist/core/grid/gridInteraction/cellRangeDragSession.d.ts.map +1 -1
  46. package/dist/core/grid/gridInteraction/cellRangeInteraction.d.ts +8 -1
  47. package/dist/core/grid/gridInteraction/cellRangeInteraction.d.ts.map +1 -1
  48. package/dist/core/grid/gridInteraction/columnHeaderDragSession.d.ts +3 -0
  49. package/dist/core/grid/gridInteraction/columnHeaderDragSession.d.ts.map +1 -1
  50. package/dist/core/grid/gridInteraction/domTargets.d.ts +15 -0
  51. package/dist/core/grid/gridInteraction/domTargets.d.ts.map +1 -1
  52. package/dist/core/grid/gridInteraction/fillHandleSession.d.ts +1 -0
  53. package/dist/core/grid/gridInteraction/fillHandleSession.d.ts.map +1 -1
  54. package/dist/core/grid/gridInteraction/focusController.d.ts +10 -1
  55. package/dist/core/grid/gridInteraction/focusController.d.ts.map +1 -1
  56. package/dist/core/grid/gridInteraction/gridInteraction.d.ts +1 -1
  57. package/dist/core/grid/gridInteraction/gridInteraction.d.ts.map +1 -1
  58. package/dist/core/grid/gridInteraction/gridInteractionHostActions.d.ts +2 -0
  59. package/dist/core/grid/gridInteraction/gridInteractionHostActions.d.ts.map +1 -1
  60. package/dist/core/grid/gridInteraction/gridInteractionWiring.d.ts.map +1 -1
  61. package/dist/core/grid/gridInteraction/headerInteractionHandlers.d.ts.map +1 -1
  62. package/dist/core/grid/gridInteraction/indexSelectionDragSession.d.ts +1 -0
  63. package/dist/core/grid/gridInteraction/indexSelectionDragSession.d.ts.map +1 -1
  64. package/dist/core/grid/gridInteraction/rangeHandleSession.d.ts +1 -0
  65. package/dist/core/grid/gridInteraction/rangeHandleSession.d.ts.map +1 -1
  66. package/dist/core/grid/gridInteraction/rowDragSession.d.ts +1 -0
  67. package/dist/core/grid/gridInteraction/rowDragSession.d.ts.map +1 -1
  68. package/dist/core/grid/gridInteraction/types.d.ts +1 -0
  69. package/dist/core/grid/gridInteraction/types.d.ts.map +1 -1
  70. package/dist/core/row/cellComp.d.ts +2 -0
  71. package/dist/core/row/cellComp.d.ts.map +1 -1
  72. package/dist/core/row/rowLaneCellSync.d.ts.map +1 -1
  73. package/dist/core/selection/cellClipboardService.d.ts.map +1 -1
  74. package/dist/core/theme/gridTheme.d.ts +13 -15
  75. package/dist/core/theme/gridTheme.d.ts.map +1 -1
  76. package/dist/core/theme/index.d.ts +1 -1
  77. package/dist/core/theme/index.d.ts.map +1 -1
  78. package/dist/core/types/cellColor.d.ts +5 -0
  79. package/dist/core/types/cellColor.d.ts.map +1 -1
  80. package/dist/core/types/cellEditor.d.ts +41 -8
  81. package/dist/core/types/cellEditor.d.ts.map +1 -1
  82. package/dist/core/types/column.d.ts +4 -11
  83. package/dist/core/types/column.d.ts.map +1 -1
  84. package/dist/core/types/index.d.ts +2 -2
  85. package/dist/core/types/index.d.ts.map +1 -1
  86. package/dist/core/types/validation.d.ts +6 -2
  87. package/dist/core/types/validation.d.ts.map +1 -1
  88. package/dist/index.cjs.js +6 -6
  89. package/dist/index.cjs.js.map +1 -1
  90. package/dist/index.d.ts +2 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.es.js +4321 -4121
  93. package/dist/index.es.js.map +1 -1
  94. package/dist/style.css +1 -1
  95. package/dist/styles/entries/mg-tokens.d.ts +1 -0
  96. package/dist/styles/entries/mg-tokens.d.ts.map +1 -0
  97. package/dist/token-catalog.json +2236 -0
  98. package/dist/tokens.css +2 -0
  99. package/dist/tokens.js +0 -0
  100. package/dist/types/core.d.ts +79 -26
  101. package/dist/types/core.d.ts.map +1 -1
  102. package/dist/types/magic-grid.d.ts +19 -13
  103. package/dist/types/magic-grid.d.ts.map +1 -1
  104. package/package.json +105 -98
package/package.json CHANGED
@@ -1,98 +1,105 @@
1
- {
2
- "name": "@taocompany/magic-grid",
3
- "version": "0.11.8",
4
- "description": "A high-performance virtual table component library for Vue 3",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "songjiuzhang <jiuzhang.song@taoandcompany02.com>",
8
- "keywords": [
9
- "vue",
10
- "vue3",
11
- "virtual-table",
12
- "virtual-grid",
13
- "component-library",
14
- "magic-grid"
15
- ],
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.es.js",
20
- "require": "./dist/index.cjs.js"
21
- },
22
- "./types/core": {
23
- "types": "./dist/types/core.d.ts",
24
- "import": "./dist/types/core.es.js",
25
- "require": "./dist/types/core.cjs.js"
26
- },
27
- "./types/validation": {
28
- "types": "./dist/types/validation.d.ts",
29
- "import": "./dist/types/validation.es.js",
30
- "require": "./dist/types/validation.cjs.js"
31
- },
32
- "./validation": {
33
- "types": "./dist/validation.d.ts",
34
- "import": "./dist/validation.es.js",
35
- "require": "./dist/validation.cjs.js"
36
- },
37
- "./style.css": "./dist/style.css"
38
- },
39
- "main": "./dist/index.cjs.js",
40
- "module": "./dist/index.es.js",
41
- "types": "./dist/index.d.ts",
42
- "files": [
43
- "dist"
44
- ],
45
- "sideEffects": [
46
- "dist/style.css",
47
- "**/*.css"
48
- ],
49
- "publishConfig": {
50
- "access": "public",
51
- "registry": "https://registry.npmjs.org/"
52
- },
53
- "engines": {
54
- "node": ">=20.19"
55
- },
56
- "packageManager": "pnpm@12.5.1",
57
- "scripts": {
58
- "dev": "vite --config vite.config.playground.ts",
59
- "build": "vue-tsc -p tsconfig.build.json --noEmit && vite build && node --experimental-strip-types scripts/bundle-types.ts",
60
- "build:playground": "vite build --config vite.config.playground.ts",
61
- "preview": "vite preview --config vite.config.playground.ts",
62
- "typecheck": "vue-tsc -p tsconfig.build.json --noEmit",
63
- "test": "vitest",
64
- "test:run": "vitest run",
65
- "test:perf": "vitest run --include 'src/__tests__/**/*.perf.test.ts'",
66
- "test:coverage": "vitest run --coverage",
67
- "prepublishOnly": "pnpm run build",
68
- "deploy:dev": "node --experimental-strip-types scripts/deploy-dev.ts",
69
- "publish:dev": "node --experimental-strip-types scripts/publish-dev.ts",
70
- "docs:api": "node --experimental-strip-types scripts/generate-docs-api-entries.ts"
71
- },
72
- "peerDependencies": {
73
- "async-validator": "^4.2.0",
74
- "vue": "^3.5.0"
75
- },
76
- "devDependencies": {
77
- "@microsoft/api-extractor": "^7.55.0",
78
- "@vitejs/plugin-vue": "^6.0.8",
79
- "@vitest/coverage-v8": "^4.1.10",
80
- "@vue/test-utils": "^2.4.11",
81
- "@vue/tsconfig": "^0.8.1",
82
- "async-validator": "^4.2.5",
83
- "element-plus": "^2.14.3",
84
- "happy-dom": "^20.11.1",
85
- "less": "^4.8.1",
86
- "shiki": "^4.4.3",
87
- "typescript": "^5.9.3",
88
- "vite": "^8.2.0",
89
- "vite-plugin-dts": "^5.0.3",
90
- "vitest": "^4.1.10",
91
- "vue": "^3.5.40",
92
- "vue-router": "^4.6.4",
93
- "vue-tsc": "^3.2.0"
94
- },
95
- "dependencies": {
96
- "@lucide/vue": "^1.28.0"
97
- }
98
- }
1
+ {
2
+ "name": "@taocompany/magic-grid",
3
+ "version": "0.12.1",
4
+ "description": "A high-performance virtual table component library for Vue 3",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "songjiuzhang <jiuzhang.song@taoandcompany02.com>",
8
+ "keywords": [
9
+ "vue",
10
+ "vue3",
11
+ "virtual-table",
12
+ "virtual-grid",
13
+ "component-library",
14
+ "magic-grid"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.es.js",
20
+ "require": "./dist/index.cjs.js"
21
+ },
22
+ "./types/core": {
23
+ "types": "./dist/types/core.d.ts",
24
+ "import": "./dist/types/core.es.js",
25
+ "require": "./dist/types/core.cjs.js"
26
+ },
27
+ "./types/validation": {
28
+ "types": "./dist/types/validation.d.ts",
29
+ "import": "./dist/types/validation.es.js",
30
+ "require": "./dist/types/validation.cjs.js"
31
+ },
32
+ "./validation": {
33
+ "types": "./dist/validation.d.ts",
34
+ "import": "./dist/validation.es.js",
35
+ "require": "./dist/validation.cjs.js"
36
+ },
37
+ "./style.css": "./dist/style.css",
38
+ "./tokens.css": "./dist/tokens.css",
39
+ "./token-catalog.json": "./dist/token-catalog.json"
40
+ },
41
+ "main": "./dist/index.cjs.js",
42
+ "module": "./dist/index.es.js",
43
+ "types": "./dist/index.d.ts",
44
+ "files": [
45
+ "dist"
46
+ ],
47
+ "sideEffects": [
48
+ "dist/style.css",
49
+ "dist/tokens.css",
50
+ "**/*.css"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public",
54
+ "registry": "https://registry.npmjs.org/"
55
+ },
56
+ "engines": {
57
+ "node": ">=20.19"
58
+ },
59
+ "packageManager": "pnpm@12.5.1",
60
+ "scripts": {
61
+ "dev": "vite --config vite.config.playground.ts",
62
+ "build": "vue-tsc -p tsconfig.build.json --noEmit && vite build && vite build --config vite.config.tokens.ts && tsx scripts/generate-token-catalog.ts && node --experimental-strip-types scripts/bundle-types.ts",
63
+ "theme-studio:catalog": "vite build --config vite.config.tokens.ts && tsx scripts/generate-token-catalog.ts",
64
+ "theme-studio:validate": "tsx scripts/validate-theme-overrides.ts",
65
+ "build:playground": "vite build --config vite.config.playground.ts",
66
+ "preview": "vite preview --config vite.config.playground.ts",
67
+ "typecheck": "vue-tsc -p tsconfig.build.json --noEmit",
68
+ "test": "vitest",
69
+ "test:run": "vitest run",
70
+ "test:theme-studio": "vitest run theme-studio/__tests__",
71
+ "test:perf": "vitest run --include 'src/__tests__/**/*.perf.test.ts'",
72
+ "test:coverage": "vitest run --coverage",
73
+ "prepublishOnly": "pnpm run build",
74
+ "deploy:dev": "node --experimental-strip-types scripts/deploy-dev.ts",
75
+ "publish:dev": "node --experimental-strip-types scripts/publish-dev.ts",
76
+ "docs:api": "node --experimental-strip-types scripts/generate-docs-api-entries.ts"
77
+ },
78
+ "peerDependencies": {
79
+ "async-validator": "^4.2.0",
80
+ "vue": "^3.5.0"
81
+ },
82
+ "devDependencies": {
83
+ "@microsoft/api-extractor": "^7.55.0",
84
+ "@vitejs/plugin-vue": "^6.0.8",
85
+ "@vitest/coverage-v8": "^4.1.10",
86
+ "@vue/test-utils": "^2.4.11",
87
+ "@vue/tsconfig": "^0.8.1",
88
+ "async-validator": "^4.2.5",
89
+ "element-plus": "^2.14.3",
90
+ "happy-dom": "^20.11.1",
91
+ "less": "^4.8.1",
92
+ "shiki": "^4.4.3",
93
+ "tsx": "^4.23.15",
94
+ "typescript": "^5.9.3",
95
+ "vite": "^8.2.0",
96
+ "vite-plugin-dts": "^5.0.3",
97
+ "vitest": "^4.1.10",
98
+ "vue": "^3.5.40",
99
+ "vue-router": "^4.6.4",
100
+ "vue-tsc": "^3.2.0"
101
+ },
102
+ "dependencies": {
103
+ "@lucide/vue": "^1.28.0"
104
+ }
105
+ }