@univerjs/sheets-conditional-formatting 0.1.5
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 +176 -0
- package/README.md +30 -0
- package/lib/cjs/index.js +11 -0
- package/lib/es/index.js +9334 -0
- package/lib/index.css +1 -0
- package/lib/types/assets/icon-map.json.d.ts +82 -0
- package/lib/types/base/const.d.ts +66 -0
- package/lib/types/commands/commands/add-average-cf.command.d.ts +11 -0
- package/lib/types/commands/commands/add-cf.command.d.ts +10 -0
- package/lib/types/commands/commands/add-color-scale-cf.command.d.ts +10 -0
- package/lib/types/commands/commands/add-data-bar-cf.command.d.ts +14 -0
- package/lib/types/commands/commands/add-duplicate-values-cf.command.d.ts +10 -0
- package/lib/types/commands/commands/add-number-cf.command.d.ts +12 -0
- package/lib/types/commands/commands/add-rank-cf.command.d.ts +13 -0
- package/lib/types/commands/commands/add-text-cf.command.d.ts +12 -0
- package/lib/types/commands/commands/add-time-period-cf.command.d.ts +11 -0
- package/lib/types/commands/commands/add-unique-values-cf.command.d.ts +10 -0
- package/lib/types/commands/commands/clear-range-cf.command.d.ts +8 -0
- package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +7 -0
- package/lib/types/commands/commands/delete-cf.command.d.ts +8 -0
- package/lib/types/commands/commands/move-cf.command.d.ts +9 -0
- package/lib/types/commands/commands/set-cf.command.d.ts +9 -0
- package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +15 -0
- package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +10 -0
- package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +14 -0
- package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +14 -0
- package/lib/types/commands/operations/open-conditional-formatting-panel.d.ts +15 -0
- package/lib/types/components/color-picker/index.d.ts +12 -0
- package/lib/types/components/conditional-style-editor/index.d.ts +10 -0
- package/lib/types/components/panel/index.d.ts +8 -0
- package/lib/types/components/panel/rule-edit/colorScale.d.ts +4 -0
- package/lib/types/components/panel/rule-edit/dataBar.d.ts +4 -0
- package/lib/types/components/panel/rule-edit/formula.d.ts +4 -0
- package/lib/types/components/panel/rule-edit/highlightCell.d.ts +5 -0
- package/lib/types/components/panel/rule-edit/iconSet.d.ts +5 -0
- package/lib/types/components/panel/rule-edit/index.d.ts +9 -0
- package/lib/types/components/panel/rule-edit/rank.d.ts +4 -0
- package/lib/types/components/panel/rule-edit/type.d.ts +13 -0
- package/lib/types/components/panel/rule-list/index.d.ts +9 -0
- package/lib/types/components/preview/index.d.ts +6 -0
- package/lib/types/controllers/cf.auto-fill.controller.d.ts +15 -0
- package/lib/types/controllers/cf.clear.controller.d.ts +14 -0
- package/lib/types/controllers/cf.copy-paste.controller.d.ts +18 -0
- package/lib/types/controllers/cf.editor.controller.d.ts +15 -0
- package/lib/types/controllers/cf.i18n.controller.d.ts +10 -0
- package/lib/types/controllers/cf.menu.controller.d.ts +16 -0
- package/lib/types/controllers/cf.ref-range.controller.d.ts +15 -0
- package/lib/types/controllers/cf.render.controller.d.ts +21 -0
- package/lib/types/index.d.ts +17 -0
- package/lib/types/locale/en-US.d.ts +4 -0
- package/lib/types/locale/index.d.ts +17 -0
- package/lib/types/locale/zh-CN.d.ts +169 -0
- package/lib/types/menu/manage-rule.d.ts +4 -0
- package/lib/types/models/conditional-formatting-rule-model.d.ts +32 -0
- package/lib/types/models/conditional-formatting-view-model.d.ts +29 -0
- package/lib/types/models/icon-map.d.ts +26 -0
- package/lib/types/models/type.d.ts +91 -0
- package/lib/types/plugin.d.ts +13 -0
- package/lib/types/render/data-bar.render.d.ts +13 -0
- package/lib/types/render/icon.render.d.ts +18 -0
- package/lib/types/render/type.d.ts +22 -0
- package/lib/types/services/__test__/cf.service.spec.d.ts +16 -0
- package/lib/types/services/__test__/test.util.d.ts +24 -0
- package/lib/types/services/calculate-unit/color-scale.d.ts +3 -0
- package/lib/types/services/calculate-unit/data-bar.d.ts +3 -0
- package/lib/types/services/calculate-unit/highlight-cell.d.ts +3 -0
- package/lib/types/services/calculate-unit/icon-set.d.ts +3 -0
- package/lib/types/services/calculate-unit/type.d.ts +17 -0
- package/lib/types/services/calculate-unit/utils.d.ts +33 -0
- package/lib/types/services/conditional-formatting-formula.service.d.ts +57 -0
- package/lib/types/services/conditional-formatting.service.d.ts +49 -0
- package/lib/types/utils/getStringFromDataStream.d.ts +3 -0
- package/lib/types/utils/isRangesEqual.d.ts +3 -0
- package/lib/types/utils/removeUndefinedAttr.d.ts +16 -0
- package/lib/types/utils/type.d.ts +18 -0
- package/lib/umd/index.js +11 -0
- package/package.json +108 -0
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs/sheets-conditional-formatting",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Conditional formatting plugin for Univer Sheets",
|
|
6
|
+
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"funding": {
|
|
9
|
+
"type": "opencollective",
|
|
10
|
+
"url": "https://opencollective.com/univer"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://univer.ai",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/dream-num/univer.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"univer"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./lib/es/index.js",
|
|
29
|
+
"require": "./lib/cjs/index.js",
|
|
30
|
+
"types": "./lib/types/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./*": {
|
|
33
|
+
"import": "./lib/es/*",
|
|
34
|
+
"require": "./lib/cjs/*",
|
|
35
|
+
"types": "./lib/types/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./lib/*": "./lib/*"
|
|
38
|
+
},
|
|
39
|
+
"main": "./lib/cjs/index.js",
|
|
40
|
+
"module": "./lib/es/index.js",
|
|
41
|
+
"types": "./lib/types/index.d.ts",
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"directories": {
|
|
46
|
+
"lib": "lib"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"lib"
|
|
50
|
+
],
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=16.0.0",
|
|
53
|
+
"npm": ">=8.0.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@wendellhu/redi": "0.13.0",
|
|
57
|
+
"clsx": ">=2.0.0",
|
|
58
|
+
"react": ">=16.9.0",
|
|
59
|
+
"react-dom": ">=16.9.0",
|
|
60
|
+
"rxjs": ">=7.0.0",
|
|
61
|
+
"@univerjs/core": "0.1.5",
|
|
62
|
+
"@univerjs/design": "0.1.5",
|
|
63
|
+
"@univerjs/engine-formula": "0.1.5",
|
|
64
|
+
"@univerjs/engine-render": "0.1.5",
|
|
65
|
+
"@univerjs/sheets": "0.1.5",
|
|
66
|
+
"@univerjs/sheets-ui": "0.1.5",
|
|
67
|
+
"@univerjs/ui": "0.1.5"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@univerjs/icons": "^0.1.42",
|
|
71
|
+
"dayjs": "^1.11.10",
|
|
72
|
+
"lodash.get": "^4.4.2",
|
|
73
|
+
"lodash.set": "^4.3.2",
|
|
74
|
+
"react-grid-layout": "^1.4.4",
|
|
75
|
+
"react-resizable": "^3.0.5"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/lodash.get": "^4.4.9",
|
|
79
|
+
"@types/lodash.set": "^4.3.9",
|
|
80
|
+
"@types/react-grid-layout": "^1.3.5",
|
|
81
|
+
"@univerjs/icons-svg": "^0.1.42",
|
|
82
|
+
"@wendellhu/redi": "^0.13.0",
|
|
83
|
+
"clsx": "^2.1.0",
|
|
84
|
+
"less": "^4.2.0",
|
|
85
|
+
"react": "^18.2.0",
|
|
86
|
+
"rxjs": "^7.8.1",
|
|
87
|
+
"sharp": "^0.33.3",
|
|
88
|
+
"typescript": "^5.4.3",
|
|
89
|
+
"vite": "^5.2.6",
|
|
90
|
+
"vitest": "^1.4.0",
|
|
91
|
+
"@univerjs/core": "0.1.5",
|
|
92
|
+
"@univerjs/engine-formula": "0.1.5",
|
|
93
|
+
"@univerjs/engine-render": "0.1.5",
|
|
94
|
+
"@univerjs/shared": "0.1.5",
|
|
95
|
+
"@univerjs/sheets-ui": "0.1.5",
|
|
96
|
+
"@univerjs/sheets": "0.1.5",
|
|
97
|
+
"@univerjs/ui": "0.1.5",
|
|
98
|
+
"@univerjs/design": "0.1.5"
|
|
99
|
+
},
|
|
100
|
+
"scripts": {
|
|
101
|
+
"postinstall": "node ./scripts/build-icons",
|
|
102
|
+
"test": "vitest run",
|
|
103
|
+
"test:watch": "vitest",
|
|
104
|
+
"coverage": "vitest run --coverage",
|
|
105
|
+
"lint:types": "tsc --noEmit",
|
|
106
|
+
"build": "tsc && vite build"
|
|
107
|
+
}
|
|
108
|
+
}
|