@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.
Files changed (78) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +30 -0
  3. package/lib/cjs/index.js +11 -0
  4. package/lib/es/index.js +9334 -0
  5. package/lib/index.css +1 -0
  6. package/lib/types/assets/icon-map.json.d.ts +82 -0
  7. package/lib/types/base/const.d.ts +66 -0
  8. package/lib/types/commands/commands/add-average-cf.command.d.ts +11 -0
  9. package/lib/types/commands/commands/add-cf.command.d.ts +10 -0
  10. package/lib/types/commands/commands/add-color-scale-cf.command.d.ts +10 -0
  11. package/lib/types/commands/commands/add-data-bar-cf.command.d.ts +14 -0
  12. package/lib/types/commands/commands/add-duplicate-values-cf.command.d.ts +10 -0
  13. package/lib/types/commands/commands/add-number-cf.command.d.ts +12 -0
  14. package/lib/types/commands/commands/add-rank-cf.command.d.ts +13 -0
  15. package/lib/types/commands/commands/add-text-cf.command.d.ts +12 -0
  16. package/lib/types/commands/commands/add-time-period-cf.command.d.ts +11 -0
  17. package/lib/types/commands/commands/add-unique-values-cf.command.d.ts +10 -0
  18. package/lib/types/commands/commands/clear-range-cf.command.d.ts +8 -0
  19. package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +7 -0
  20. package/lib/types/commands/commands/delete-cf.command.d.ts +8 -0
  21. package/lib/types/commands/commands/move-cf.command.d.ts +9 -0
  22. package/lib/types/commands/commands/set-cf.command.d.ts +9 -0
  23. package/lib/types/commands/mutations/add-conditional-rule.mutation.d.ts +15 -0
  24. package/lib/types/commands/mutations/delete-conditional-rule.mutation.d.ts +10 -0
  25. package/lib/types/commands/mutations/formula-mark-dirty.mutation.d.ts +10 -0
  26. package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +14 -0
  27. package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +14 -0
  28. package/lib/types/commands/operations/open-conditional-formatting-panel.d.ts +15 -0
  29. package/lib/types/components/color-picker/index.d.ts +12 -0
  30. package/lib/types/components/conditional-style-editor/index.d.ts +10 -0
  31. package/lib/types/components/panel/index.d.ts +8 -0
  32. package/lib/types/components/panel/rule-edit/colorScale.d.ts +4 -0
  33. package/lib/types/components/panel/rule-edit/dataBar.d.ts +4 -0
  34. package/lib/types/components/panel/rule-edit/formula.d.ts +4 -0
  35. package/lib/types/components/panel/rule-edit/highlightCell.d.ts +5 -0
  36. package/lib/types/components/panel/rule-edit/iconSet.d.ts +5 -0
  37. package/lib/types/components/panel/rule-edit/index.d.ts +9 -0
  38. package/lib/types/components/panel/rule-edit/rank.d.ts +4 -0
  39. package/lib/types/components/panel/rule-edit/type.d.ts +13 -0
  40. package/lib/types/components/panel/rule-list/index.d.ts +9 -0
  41. package/lib/types/components/preview/index.d.ts +6 -0
  42. package/lib/types/controllers/cf.auto-fill.controller.d.ts +15 -0
  43. package/lib/types/controllers/cf.clear.controller.d.ts +14 -0
  44. package/lib/types/controllers/cf.copy-paste.controller.d.ts +18 -0
  45. package/lib/types/controllers/cf.editor.controller.d.ts +15 -0
  46. package/lib/types/controllers/cf.i18n.controller.d.ts +10 -0
  47. package/lib/types/controllers/cf.menu.controller.d.ts +16 -0
  48. package/lib/types/controllers/cf.ref-range.controller.d.ts +15 -0
  49. package/lib/types/controllers/cf.render.controller.d.ts +21 -0
  50. package/lib/types/index.d.ts +17 -0
  51. package/lib/types/locale/en-US.d.ts +4 -0
  52. package/lib/types/locale/index.d.ts +17 -0
  53. package/lib/types/locale/zh-CN.d.ts +169 -0
  54. package/lib/types/menu/manage-rule.d.ts +4 -0
  55. package/lib/types/models/conditional-formatting-rule-model.d.ts +32 -0
  56. package/lib/types/models/conditional-formatting-view-model.d.ts +29 -0
  57. package/lib/types/models/icon-map.d.ts +26 -0
  58. package/lib/types/models/type.d.ts +91 -0
  59. package/lib/types/plugin.d.ts +13 -0
  60. package/lib/types/render/data-bar.render.d.ts +13 -0
  61. package/lib/types/render/icon.render.d.ts +18 -0
  62. package/lib/types/render/type.d.ts +22 -0
  63. package/lib/types/services/__test__/cf.service.spec.d.ts +16 -0
  64. package/lib/types/services/__test__/test.util.d.ts +24 -0
  65. package/lib/types/services/calculate-unit/color-scale.d.ts +3 -0
  66. package/lib/types/services/calculate-unit/data-bar.d.ts +3 -0
  67. package/lib/types/services/calculate-unit/highlight-cell.d.ts +3 -0
  68. package/lib/types/services/calculate-unit/icon-set.d.ts +3 -0
  69. package/lib/types/services/calculate-unit/type.d.ts +17 -0
  70. package/lib/types/services/calculate-unit/utils.d.ts +33 -0
  71. package/lib/types/services/conditional-formatting-formula.service.d.ts +57 -0
  72. package/lib/types/services/conditional-formatting.service.d.ts +49 -0
  73. package/lib/types/utils/getStringFromDataStream.d.ts +3 -0
  74. package/lib/types/utils/isRangesEqual.d.ts +3 -0
  75. package/lib/types/utils/removeUndefinedAttr.d.ts +16 -0
  76. package/lib/types/utils/type.d.ts +18 -0
  77. package/lib/umd/index.js +11 -0
  78. 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
+ }