@univerjs/preset-sheets-table 0.25.0 → 1.0.0-alpha.0

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 (107) hide show
  1. package/README.md +3 -3
  2. package/lib/cjs/index.js +25 -1
  3. package/lib/cjs/locales/ar-SA.js +11 -1
  4. package/lib/cjs/locales/ca-ES.js +11 -1
  5. package/lib/cjs/locales/de-DE.js +11 -1
  6. package/lib/cjs/locales/en-US.js +11 -1
  7. package/lib/cjs/locales/es-ES.js +11 -1
  8. package/lib/cjs/locales/fa-IR.js +11 -1
  9. package/lib/cjs/locales/fr-FR.js +11 -1
  10. package/lib/cjs/locales/id-ID.js +11 -1
  11. package/lib/cjs/locales/it-IT.js +11 -1
  12. package/lib/cjs/locales/ja-JP.js +11 -1
  13. package/lib/cjs/locales/ko-KR.js +11 -1
  14. package/lib/cjs/locales/pl-PL.js +11 -1
  15. package/lib/cjs/locales/pt-BR.js +11 -1
  16. package/lib/cjs/locales/ru-RU.js +11 -1
  17. package/lib/cjs/locales/sk-SK.js +11 -1
  18. package/lib/cjs/locales/vi-VN.js +11 -1
  19. package/lib/cjs/locales/zh-CN.js +11 -1
  20. package/lib/cjs/locales/zh-HK.js +11 -1
  21. package/lib/cjs/locales/zh-TW.js +11 -1
  22. package/lib/cjs/rolldown-runtime-C_NdSu1c.js +34 -0
  23. package/lib/es/index.js +14 -15
  24. package/lib/es/locales/ar-SA.js +8 -10
  25. package/lib/es/locales/ca-ES.js +8 -10
  26. package/lib/es/locales/de-DE.js +8 -10
  27. package/lib/es/locales/en-US.js +8 -10
  28. package/lib/es/locales/es-ES.js +8 -10
  29. package/lib/es/locales/fa-IR.js +8 -10
  30. package/lib/es/locales/fr-FR.js +8 -10
  31. package/lib/es/locales/id-ID.js +8 -10
  32. package/lib/es/locales/it-IT.js +8 -10
  33. package/lib/es/locales/ja-JP.js +8 -10
  34. package/lib/es/locales/ko-KR.js +8 -10
  35. package/lib/es/locales/pl-PL.js +8 -10
  36. package/lib/es/locales/pt-BR.js +8 -10
  37. package/lib/es/locales/ru-RU.js +8 -10
  38. package/lib/es/locales/sk-SK.js +8 -10
  39. package/lib/es/locales/vi-VN.js +8 -10
  40. package/lib/es/locales/zh-CN.js +8 -10
  41. package/lib/es/locales/zh-HK.js +8 -10
  42. package/lib/es/locales/zh-TW.js +8 -10
  43. package/lib/index.css +482 -1
  44. package/lib/index.js +14 -15
  45. package/lib/locales/ar-SA.js +8 -10
  46. package/lib/locales/ca-ES.js +8 -10
  47. package/lib/locales/de-DE.js +8 -10
  48. package/lib/locales/en-US.js +8 -10
  49. package/lib/locales/es-ES.js +8 -10
  50. package/lib/locales/fa-IR.js +8 -10
  51. package/lib/locales/fr-FR.js +8 -10
  52. package/lib/locales/id-ID.js +8 -10
  53. package/lib/locales/it-IT.js +8 -10
  54. package/lib/locales/ja-JP.js +8 -10
  55. package/lib/locales/ko-KR.js +8 -10
  56. package/lib/locales/pl-PL.js +8 -10
  57. package/lib/locales/pt-BR.js +8 -10
  58. package/lib/locales/ru-RU.js +8 -10
  59. package/lib/locales/sk-SK.js +8 -10
  60. package/lib/locales/vi-VN.js +8 -10
  61. package/lib/locales/zh-CN.js +8 -10
  62. package/lib/locales/zh-HK.js +8 -10
  63. package/lib/locales/zh-TW.js +8 -10
  64. package/lib/types/index.d.ts +16 -1
  65. package/lib/types/locales/ar-SA.d.ts +136 -1
  66. package/lib/types/locales/ca-ES.d.ts +136 -1
  67. package/lib/types/locales/de-DE.d.ts +136 -1
  68. package/lib/types/locales/en-US.d.ts +136 -1
  69. package/lib/types/locales/es-ES.d.ts +136 -1
  70. package/lib/types/locales/fa-IR.d.ts +136 -1
  71. package/lib/types/locales/fr-FR.d.ts +136 -1
  72. package/lib/types/locales/id-ID.d.ts +136 -1
  73. package/lib/types/locales/it-IT.d.ts +136 -1
  74. package/lib/types/locales/ja-JP.d.ts +136 -1
  75. package/lib/types/locales/ko-KR.d.ts +136 -1
  76. package/lib/types/locales/pl-PL.d.ts +136 -1
  77. package/lib/types/locales/pt-BR.d.ts +136 -1
  78. package/lib/types/locales/ru-RU.d.ts +136 -1
  79. package/lib/types/locales/sk-SK.d.ts +136 -1
  80. package/lib/types/locales/vi-VN.d.ts +136 -1
  81. package/lib/types/locales/zh-CN.d.ts +136 -1
  82. package/lib/types/locales/zh-HK.d.ts +136 -1
  83. package/lib/types/locales/zh-TW.d.ts +136 -1
  84. package/lib/types/preset.d.ts +19 -0
  85. package/package.json +13 -15
  86. package/lib/types/types.d.ts +0 -11
  87. package/lib/types/umd.d.ts +0 -5
  88. package/lib/umd/index.js +0 -11
  89. package/lib/umd/locales/ar-SA.js +0 -8
  90. package/lib/umd/locales/ca-ES.js +0 -8
  91. package/lib/umd/locales/de-DE.js +0 -8
  92. package/lib/umd/locales/en-US.js +0 -8
  93. package/lib/umd/locales/es-ES.js +0 -8
  94. package/lib/umd/locales/fa-IR.js +0 -8
  95. package/lib/umd/locales/fr-FR.js +0 -8
  96. package/lib/umd/locales/id-ID.js +0 -8
  97. package/lib/umd/locales/it-IT.js +0 -8
  98. package/lib/umd/locales/ja-JP.js +0 -8
  99. package/lib/umd/locales/ko-KR.js +0 -8
  100. package/lib/umd/locales/pl-PL.js +0 -8
  101. package/lib/umd/locales/pt-BR.js +0 -8
  102. package/lib/umd/locales/ru-RU.js +0 -8
  103. package/lib/umd/locales/sk-SK.js +0 -8
  104. package/lib/umd/locales/vi-VN.js +0 -8
  105. package/lib/umd/locales/zh-CN.js +0 -8
  106. package/lib/umd/locales/zh-HK.js +0 -8
  107. package/lib/umd/locales/zh-TW.js +0 -8
@@ -1,4 +1,139 @@
1
1
  declare const _default: {
2
- [x: string]: any;
2
+ 'sheets-table': {
3
+ columnPrefix: string;
4
+ tablePrefix: string;
5
+ tableNameError: string;
6
+ };
7
+ } & {
8
+ 'sheets-table-ui': {
9
+ title: string;
10
+ selectRange: string;
11
+ rename: string;
12
+ renamePlaceholder: string;
13
+ updateRange: string;
14
+ tableRangeWithMergeError: string;
15
+ tableRangeWithOtherTableError: string;
16
+ tableRangeSingleRowError: string;
17
+ updateError: string;
18
+ tableStyle: string;
19
+ defaultStyle: string;
20
+ customStyle: string;
21
+ customTooMore: string;
22
+ setTheme: string;
23
+ removeTable: string;
24
+ cancel: string;
25
+ confirm: string;
26
+ header: string;
27
+ footer: string;
28
+ firstLine: string;
29
+ secondLine: string;
30
+ columnPrefix: string;
31
+ tablePrefix: string;
32
+ tableNameError: string;
33
+ columnMenu: {
34
+ 'insert-left': string;
35
+ 'insert-right': string;
36
+ delete: string;
37
+ };
38
+ sort: {
39
+ 'sort-asc': string;
40
+ 'sort-desc': string;
41
+ };
42
+ insert: {
43
+ main: string;
44
+ row: string;
45
+ col: string;
46
+ };
47
+ remove: {
48
+ main: string;
49
+ row: string;
50
+ col: string;
51
+ };
52
+ condition: {
53
+ string: string;
54
+ number: string;
55
+ date: string;
56
+ empty: string;
57
+ };
58
+ string: {
59
+ compare: {
60
+ equal: string;
61
+ notEqual: string;
62
+ contains: string;
63
+ notContains: string;
64
+ startsWith: string;
65
+ endsWith: string;
66
+ };
67
+ };
68
+ number: {
69
+ compare: {
70
+ equal: string;
71
+ notEqual: string;
72
+ greaterThan: string;
73
+ greaterThanOrEqual: string;
74
+ lessThan: string;
75
+ lessThanOrEqual: string;
76
+ between: string;
77
+ notBetween: string;
78
+ above: string;
79
+ below: string;
80
+ topN: string;
81
+ };
82
+ };
83
+ date: {
84
+ compare: {
85
+ equal: string;
86
+ notEqual: string;
87
+ after: string;
88
+ afterOrEqual: string;
89
+ before: string;
90
+ beforeOrEqual: string;
91
+ between: string;
92
+ notBetween: string;
93
+ today: string;
94
+ yesterday: string;
95
+ tomorrow: string;
96
+ thisWeek: string;
97
+ lastWeek: string;
98
+ nextWeek: string;
99
+ thisMonth: string;
100
+ lastMonth: string;
101
+ nextMonth: string;
102
+ thisQuarter: string;
103
+ lastQuarter: string;
104
+ nextQuarter: string;
105
+ thisYear: string;
106
+ nextYear: string;
107
+ lastYear: string;
108
+ quarter: string;
109
+ month: string;
110
+ q1: string;
111
+ q2: string;
112
+ q3: string;
113
+ q4: string;
114
+ m1: string;
115
+ m2: string;
116
+ m3: string;
117
+ m4: string;
118
+ m5: string;
119
+ m6: string;
120
+ m7: string;
121
+ m8: string;
122
+ m9: string;
123
+ m10: string;
124
+ m11: string;
125
+ m12: string;
126
+ };
127
+ };
128
+ filter: {
129
+ 'by-values': string;
130
+ 'by-conditions': string;
131
+ 'clear-filter': string;
132
+ cancel: string;
133
+ confirm: string;
134
+ 'search-placeholder': string;
135
+ 'select-all': string;
136
+ };
137
+ };
3
138
  };
4
139
  export default _default;
@@ -1,4 +1,139 @@
1
1
  declare const _default: {
2
- [x: string]: any;
2
+ 'sheets-table': {
3
+ columnPrefix: string;
4
+ tablePrefix: string;
5
+ tableNameError: string;
6
+ };
7
+ } & {
8
+ 'sheets-table-ui': {
9
+ title: string;
10
+ selectRange: string;
11
+ rename: string;
12
+ renamePlaceholder: string;
13
+ updateRange: string;
14
+ tableRangeWithMergeError: string;
15
+ tableRangeWithOtherTableError: string;
16
+ tableRangeSingleRowError: string;
17
+ updateError: string;
18
+ tableStyle: string;
19
+ defaultStyle: string;
20
+ customStyle: string;
21
+ customTooMore: string;
22
+ setTheme: string;
23
+ removeTable: string;
24
+ cancel: string;
25
+ confirm: string;
26
+ header: string;
27
+ footer: string;
28
+ firstLine: string;
29
+ secondLine: string;
30
+ columnPrefix: string;
31
+ tablePrefix: string;
32
+ tableNameError: string;
33
+ columnMenu: {
34
+ 'insert-left': string;
35
+ 'insert-right': string;
36
+ delete: string;
37
+ };
38
+ sort: {
39
+ 'sort-asc': string;
40
+ 'sort-desc': string;
41
+ };
42
+ insert: {
43
+ main: string;
44
+ row: string;
45
+ col: string;
46
+ };
47
+ remove: {
48
+ main: string;
49
+ row: string;
50
+ col: string;
51
+ };
52
+ condition: {
53
+ string: string;
54
+ number: string;
55
+ date: string;
56
+ empty: string;
57
+ };
58
+ string: {
59
+ compare: {
60
+ equal: string;
61
+ notEqual: string;
62
+ contains: string;
63
+ notContains: string;
64
+ startsWith: string;
65
+ endsWith: string;
66
+ };
67
+ };
68
+ number: {
69
+ compare: {
70
+ equal: string;
71
+ notEqual: string;
72
+ greaterThan: string;
73
+ greaterThanOrEqual: string;
74
+ lessThan: string;
75
+ lessThanOrEqual: string;
76
+ between: string;
77
+ notBetween: string;
78
+ above: string;
79
+ below: string;
80
+ topN: string;
81
+ };
82
+ };
83
+ date: {
84
+ compare: {
85
+ equal: string;
86
+ notEqual: string;
87
+ after: string;
88
+ afterOrEqual: string;
89
+ before: string;
90
+ beforeOrEqual: string;
91
+ between: string;
92
+ notBetween: string;
93
+ today: string;
94
+ yesterday: string;
95
+ tomorrow: string;
96
+ thisWeek: string;
97
+ lastWeek: string;
98
+ nextWeek: string;
99
+ thisMonth: string;
100
+ lastMonth: string;
101
+ nextMonth: string;
102
+ thisQuarter: string;
103
+ lastQuarter: string;
104
+ nextQuarter: string;
105
+ thisYear: string;
106
+ nextYear: string;
107
+ lastYear: string;
108
+ quarter: string;
109
+ month: string;
110
+ q1: string;
111
+ q2: string;
112
+ q3: string;
113
+ q4: string;
114
+ m1: string;
115
+ m2: string;
116
+ m3: string;
117
+ m4: string;
118
+ m5: string;
119
+ m6: string;
120
+ m7: string;
121
+ m8: string;
122
+ m9: string;
123
+ m10: string;
124
+ m11: string;
125
+ m12: string;
126
+ };
127
+ };
128
+ filter: {
129
+ 'by-values': string;
130
+ 'by-conditions': string;
131
+ 'clear-filter': string;
132
+ cancel: string;
133
+ confirm: string;
134
+ 'search-placeholder': string;
135
+ 'select-all': string;
136
+ };
137
+ };
3
138
  };
4
139
  export default _default;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IPreset } from '@univerjs/presets';
17
+ import '@univerjs/sheets-table/facade';
18
+ export type * from '@univerjs/sheets-table/facade';
19
+ export declare function UniverSheetsTablePreset(): IPreset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-table",
3
- "version": "0.25.0",
3
+ "version": "1.0.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Preset for table features in Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -12,10 +12,10 @@
12
12
  "homepage": "https://univer.ai",
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "https://github.com/dream-num/univer-presets"
15
+ "url": "https://github.com/dream-num/univer"
16
16
  },
17
17
  "bugs": {
18
- "url": "https://github.com/dream-num/univer-presets/issues"
18
+ "url": "https://github.com/dream-num/univer/issues"
19
19
  },
20
20
  "keywords": [
21
21
  "univer",
@@ -32,11 +32,6 @@
32
32
  "require": "./lib/cjs/index.js",
33
33
  "types": "./lib/types/index.d.ts"
34
34
  },
35
- "./*": {
36
- "import": "./lib/es/*",
37
- "require": "./lib/cjs/*",
38
- "types": "./lib/types/index.d.ts"
39
- },
40
35
  "./locales/*": {
41
36
  "import": "./lib/es/locales/*.js",
42
37
  "require": "./lib/cjs/locales/*.js",
@@ -51,6 +46,7 @@
51
46
  "directories": {
52
47
  "lib": "lib"
53
48
  },
49
+ "types": "./lib/types/index.d.ts",
54
50
  "files": [
55
51
  "lib"
56
52
  ],
@@ -60,20 +56,22 @@
60
56
  "rxjs": ">=7.0.0"
61
57
  },
62
58
  "dependencies": {
63
- "@univerjs/sheets-table": "0.25.0",
64
- "@univerjs/sheets-table-ui": "0.25.0"
59
+ "@univerjs/sheets-table-ui": "1.0.0-alpha.0",
60
+ "@univerjs/sheets-table": "1.0.0-alpha.0"
65
61
  },
66
62
  "devDependencies": {
67
- "@univerjs/core": "0.25.0",
68
63
  "react": "18.3.1",
69
64
  "react-dom": "18.3.1",
70
- "rxjs": "7.8.2",
65
+ "rxjs": "^7.8.2",
71
66
  "typescript": "^6.0.3",
72
- "@univerjs-infra/shared": "0.25.0"
67
+ "@univerjs-infra/shared": "1.0.0-alpha.0",
68
+ "@univerjs/core": "1.0.0-alpha.0",
69
+ "@univerjs/presets": "1.0.0-alpha.0"
73
70
  },
74
71
  "scripts": {
75
- "prebuild:preset": "tsx prepare.ts",
76
- "build:preset": "tsx build.ts",
72
+ "build:bundle": "univer-cli preset build --cleanup",
73
+ "build:types": "tsc -p tsconfig.node.json",
74
+ "build": "pnpm run build:bundle && pnpm run build:types",
77
75
  "typecheck": "tsc --noEmit"
78
76
  },
79
77
  "module": "./lib/es/index.js"
@@ -1,11 +0,0 @@
1
- import { IUniverConfig, Plugin, PluginCtor } from '@univerjs/core';
2
- /**
3
- * A collection of plugins and their default configs.
4
- */
5
- export interface IPreset {
6
- plugins: Array<PluginCtor<Plugin> | [PluginCtor<Plugin>, ConstructorParameters<PluginCtor<Plugin>>[0]]>;
7
- locales?: IUniverConfig['locales'];
8
- }
9
- export interface IPresetOptions {
10
- lazy?: boolean;
11
- }
@@ -1,5 +0,0 @@
1
- import { IPreset } from './types';
2
- import '@univerjs/sheets-table/lib/facade';
3
- import '@univerjs/sheets-table-ui/lib/index.css';
4
- export type * from '@univerjs/sheets-table/lib/facade';
5
- export declare function UniverSheetsTablePreset(): IPreset;