@univerjs/preset-sheets-conditional-formatting 0.25.1 → 1.0.0-alpha.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 (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 -8
  25. package/lib/es/locales/ca-ES.js +8 -8
  26. package/lib/es/locales/de-DE.js +8 -8
  27. package/lib/es/locales/en-US.js +8 -8
  28. package/lib/es/locales/es-ES.js +8 -8
  29. package/lib/es/locales/fa-IR.js +8 -8
  30. package/lib/es/locales/fr-FR.js +8 -8
  31. package/lib/es/locales/id-ID.js +8 -8
  32. package/lib/es/locales/it-IT.js +8 -8
  33. package/lib/es/locales/ja-JP.js +8 -8
  34. package/lib/es/locales/ko-KR.js +8 -8
  35. package/lib/es/locales/pl-PL.js +8 -8
  36. package/lib/es/locales/pt-BR.js +8 -8
  37. package/lib/es/locales/ru-RU.js +8 -8
  38. package/lib/es/locales/sk-SK.js +8 -8
  39. package/lib/es/locales/vi-VN.js +8 -8
  40. package/lib/es/locales/zh-CN.js +8 -8
  41. package/lib/es/locales/zh-HK.js +8 -8
  42. package/lib/es/locales/zh-TW.js +8 -8
  43. package/lib/index.css +432 -1
  44. package/lib/index.js +14 -15
  45. package/lib/locales/ar-SA.js +8 -8
  46. package/lib/locales/ca-ES.js +8 -8
  47. package/lib/locales/de-DE.js +8 -8
  48. package/lib/locales/en-US.js +8 -8
  49. package/lib/locales/es-ES.js +8 -8
  50. package/lib/locales/fa-IR.js +8 -8
  51. package/lib/locales/fr-FR.js +8 -8
  52. package/lib/locales/id-ID.js +8 -8
  53. package/lib/locales/it-IT.js +8 -8
  54. package/lib/locales/ja-JP.js +8 -8
  55. package/lib/locales/ko-KR.js +8 -8
  56. package/lib/locales/pl-PL.js +8 -8
  57. package/lib/locales/pt-BR.js +8 -8
  58. package/lib/locales/ru-RU.js +8 -8
  59. package/lib/locales/sk-SK.js +8 -8
  60. package/lib/locales/vi-VN.js +8 -8
  61. package/lib/locales/zh-CN.js +8 -8
  62. package/lib/locales/zh-HK.js +8 -8
  63. package/lib/locales/zh-TW.js +8 -8
  64. package/lib/types/index.d.ts +16 -1
  65. package/lib/types/locales/ar-SA.d.ts +169 -1
  66. package/lib/types/locales/ca-ES.d.ts +169 -1
  67. package/lib/types/locales/de-DE.d.ts +169 -1
  68. package/lib/types/locales/en-US.d.ts +169 -1
  69. package/lib/types/locales/es-ES.d.ts +169 -1
  70. package/lib/types/locales/fa-IR.d.ts +169 -1
  71. package/lib/types/locales/fr-FR.d.ts +169 -1
  72. package/lib/types/locales/id-ID.d.ts +169 -1
  73. package/lib/types/locales/it-IT.d.ts +169 -1
  74. package/lib/types/locales/ja-JP.d.ts +169 -1
  75. package/lib/types/locales/ko-KR.d.ts +169 -1
  76. package/lib/types/locales/pl-PL.d.ts +169 -1
  77. package/lib/types/locales/pt-BR.d.ts +169 -1
  78. package/lib/types/locales/ru-RU.d.ts +169 -1
  79. package/lib/types/locales/sk-SK.d.ts +169 -1
  80. package/lib/types/locales/vi-VN.d.ts +169 -1
  81. package/lib/types/locales/zh-CN.d.ts +169 -1
  82. package/lib/types/locales/zh-HK.d.ts +169 -1
  83. package/lib/types/locales/zh-TW.d.ts +169 -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 -16
  89. package/lib/umd/locales/ar-SA.js +0 -5
  90. package/lib/umd/locales/ca-ES.js +0 -5
  91. package/lib/umd/locales/de-DE.js +0 -5
  92. package/lib/umd/locales/en-US.js +0 -5
  93. package/lib/umd/locales/es-ES.js +0 -5
  94. package/lib/umd/locales/fa-IR.js +0 -5
  95. package/lib/umd/locales/fr-FR.js +0 -5
  96. package/lib/umd/locales/id-ID.js +0 -5
  97. package/lib/umd/locales/it-IT.js +0 -5
  98. package/lib/umd/locales/ja-JP.js +0 -5
  99. package/lib/umd/locales/ko-KR.js +0 -5
  100. package/lib/umd/locales/pl-PL.js +0 -5
  101. package/lib/umd/locales/pt-BR.js +0 -5
  102. package/lib/umd/locales/ru-RU.js +0 -5
  103. package/lib/umd/locales/sk-SK.js +0 -5
  104. package/lib/umd/locales/vi-VN.js +0 -5
  105. package/lib/umd/locales/zh-CN.js +0 -5
  106. package/lib/umd/locales/zh-HK.js +0 -5
  107. package/lib/umd/locales/zh-TW.js +0 -5
@@ -1,4 +1,172 @@
1
1
  declare const _default: {
2
- [x: string]: any;
2
+ 'sheets-conditional-formatting': {
3
+ iconSet: {
4
+ direction: string;
5
+ shape: string;
6
+ mark: string;
7
+ rank: string;
8
+ };
9
+ };
10
+ } & {
11
+ 'sheets-conditional-formatting-ui': {
12
+ title: string;
13
+ menu: {
14
+ manageConditionalFormatting: string;
15
+ createConditionalFormatting: string;
16
+ clearRangeRules: string;
17
+ clearWorkSheetRules: string;
18
+ };
19
+ form: {
20
+ lessThan: string;
21
+ lessThanOrEqual: string;
22
+ greaterThan: string;
23
+ greaterThanOrEqual: string;
24
+ rangeSelector: string;
25
+ };
26
+ iconSet: {
27
+ direction: string;
28
+ shape: string;
29
+ mark: string;
30
+ rank: string;
31
+ rule: string;
32
+ icon: string;
33
+ type: string;
34
+ value: string;
35
+ reverseIconOrder: string;
36
+ and: string;
37
+ when: string;
38
+ onlyShowIcon: string;
39
+ };
40
+ symbol: {
41
+ greaterThan: string;
42
+ greaterThanOrEqual: string;
43
+ lessThan: string;
44
+ lessThanOrEqual: string;
45
+ };
46
+ panel: {
47
+ createRule: string;
48
+ clear: string;
49
+ range: string;
50
+ styleType: string;
51
+ submit: string;
52
+ cancel: string;
53
+ rankAndAverage: string;
54
+ styleRule: string;
55
+ isNotBottom: string;
56
+ isBottom: string;
57
+ greaterThanAverage: string;
58
+ lessThanAverage: string;
59
+ medianValue: string;
60
+ fillType: string;
61
+ pureColor: string;
62
+ gradient: string;
63
+ colorSet: string;
64
+ positive: string;
65
+ native: string;
66
+ workSheet: string;
67
+ selectedRange: string;
68
+ managerRuleSelect: string;
69
+ onlyShowDataBar: string;
70
+ };
71
+ preview: {
72
+ describe: {
73
+ beginsWith: string;
74
+ endsWith: string;
75
+ containsText: string;
76
+ notContainsText: string;
77
+ equal: string;
78
+ notEqual: string;
79
+ containsBlanks: string;
80
+ notContainsBlanks: string;
81
+ containsErrors: string;
82
+ notContainsErrors: string;
83
+ greaterThan: string;
84
+ greaterThanOrEqual: string;
85
+ lessThan: string;
86
+ lessThanOrEqual: string;
87
+ notBetween: string;
88
+ between: string;
89
+ yesterday: string;
90
+ tomorrow: string;
91
+ last7Days: string;
92
+ thisMonth: string;
93
+ lastMonth: string;
94
+ nextMonth: string;
95
+ thisWeek: string;
96
+ lastWeek: string;
97
+ nextWeek: string;
98
+ today: string;
99
+ topN: string;
100
+ bottomN: string;
101
+ topNPercent: string;
102
+ bottomNPercent: string;
103
+ };
104
+ };
105
+ operator: {
106
+ beginsWith: string;
107
+ endsWith: string;
108
+ containsText: string;
109
+ notContainsText: string;
110
+ equal: string;
111
+ notEqual: string;
112
+ containsBlanks: string;
113
+ notContainsBlanks: string;
114
+ containsErrors: string;
115
+ notContainsErrors: string;
116
+ greaterThan: string;
117
+ greaterThanOrEqual: string;
118
+ lessThan: string;
119
+ lessThanOrEqual: string;
120
+ notBetween: string;
121
+ between: string;
122
+ yesterday: string;
123
+ tomorrow: string;
124
+ last7Days: string;
125
+ thisMonth: string;
126
+ lastMonth: string;
127
+ nextMonth: string;
128
+ thisWeek: string;
129
+ lastWeek: string;
130
+ nextWeek: string;
131
+ today: string;
132
+ };
133
+ ruleType: {
134
+ highlightCell: string;
135
+ dataBar: string;
136
+ colorScale: string;
137
+ formula: string;
138
+ iconSet: string;
139
+ duplicateValues: string;
140
+ uniqueValues: string;
141
+ };
142
+ subRuleType: {
143
+ uniqueValues: string;
144
+ duplicateValues: string;
145
+ rank: string;
146
+ text: string;
147
+ timePeriod: string;
148
+ number: string;
149
+ average: string;
150
+ };
151
+ valueType: {
152
+ num: string;
153
+ min: string;
154
+ max: string;
155
+ percent: string;
156
+ percentile: string;
157
+ formula: string;
158
+ none: string;
159
+ };
160
+ errorMessage: {
161
+ notBlank: string;
162
+ formulaError: string;
163
+ rangeError: string;
164
+ };
165
+ permission: {
166
+ dialog: {
167
+ setStyleErr: string;
168
+ };
169
+ };
170
+ };
3
171
  };
4
172
  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-conditional-formatting/facade';
18
+ export type * from '@univerjs/sheets-conditional-formatting/facade';
19
+ export declare function UniverSheetsConditionalFormattingPreset(): IPreset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-conditional-formatting",
3
- "version": "0.25.1",
3
+ "version": "1.0.0-alpha.1",
4
4
  "private": false,
5
5
  "description": "Preset for conditional formatting 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-conditional-formatting": "0.25.1",
64
- "@univerjs/sheets-conditional-formatting-ui": "0.25.1"
59
+ "@univerjs/sheets-conditional-formatting": "1.0.0-alpha.1",
60
+ "@univerjs/sheets-conditional-formatting-ui": "1.0.0-alpha.1"
65
61
  },
66
62
  "devDependencies": {
67
- "@univerjs/core": "0.25.1",
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.1"
67
+ "@univerjs-infra/shared": "1.0.0-alpha.1",
68
+ "@univerjs/core": "1.0.0-alpha.1",
69
+ "@univerjs/presets": "1.0.0-alpha.1"
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-conditional-formatting/lib/facade';
3
- import '@univerjs/sheets-conditional-formatting-ui/lib/index.css';
4
- export type * from '@univerjs/sheets-conditional-formatting/lib/facade';
5
- export declare function UniverSheetsConditionalFormattingPreset(): IPreset;