@univerjs/sheets-conditional-formatting 0.1.5 → 0.1.7

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 (60) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/index.js +1 -11
  3. package/lib/es/index.js +1380 -8697
  4. package/lib/types/commands/mutations/move-conditional-rule.mutation.d.ts +4 -4
  5. package/lib/types/commands/mutations/set-conditional-rule.mutation.d.ts +1 -0
  6. package/lib/types/index.d.ts +22 -1
  7. package/lib/types/models/conditional-formatting-rule-model.d.ts +4 -3
  8. package/lib/types/models/type.d.ts +1 -0
  9. package/lib/types/plugin.d.ts +3 -3
  10. package/lib/types/render/type.d.ts +1 -0
  11. package/lib/types/services/conditional-formatting.service.d.ts +3 -1
  12. package/lib/types/{locale/index.d.ts → utils/__test__/anchor.spec.d.ts} +1 -2
  13. package/lib/types/utils/anchor.d.ts +34 -0
  14. package/lib/types/utils/create-cf-id.d.ts +16 -0
  15. package/lib/umd/index.js +1 -11
  16. package/package.json +14 -38
  17. package/lib/index.css +0 -1
  18. package/lib/types/commands/commands/add-average-cf.command.d.ts +0 -11
  19. package/lib/types/commands/commands/add-cf.command.d.ts +0 -10
  20. package/lib/types/commands/commands/add-color-scale-cf.command.d.ts +0 -10
  21. package/lib/types/commands/commands/add-data-bar-cf.command.d.ts +0 -14
  22. package/lib/types/commands/commands/add-duplicate-values-cf.command.d.ts +0 -10
  23. package/lib/types/commands/commands/add-number-cf.command.d.ts +0 -12
  24. package/lib/types/commands/commands/add-rank-cf.command.d.ts +0 -13
  25. package/lib/types/commands/commands/add-text-cf.command.d.ts +0 -12
  26. package/lib/types/commands/commands/add-time-period-cf.command.d.ts +0 -11
  27. package/lib/types/commands/commands/add-unique-values-cf.command.d.ts +0 -10
  28. package/lib/types/commands/commands/clear-range-cf.command.d.ts +0 -8
  29. package/lib/types/commands/commands/clear-worksheet-cf.command.d.ts +0 -7
  30. package/lib/types/commands/commands/delete-cf.command.d.ts +0 -8
  31. package/lib/types/commands/commands/move-cf.command.d.ts +0 -9
  32. package/lib/types/commands/commands/set-cf.command.d.ts +0 -9
  33. package/lib/types/commands/operations/open-conditional-formatting-panel.d.ts +0 -15
  34. package/lib/types/components/color-picker/index.d.ts +0 -12
  35. package/lib/types/components/conditional-style-editor/index.d.ts +0 -10
  36. package/lib/types/components/panel/index.d.ts +0 -8
  37. package/lib/types/components/panel/rule-edit/colorScale.d.ts +0 -4
  38. package/lib/types/components/panel/rule-edit/dataBar.d.ts +0 -4
  39. package/lib/types/components/panel/rule-edit/formula.d.ts +0 -4
  40. package/lib/types/components/panel/rule-edit/highlightCell.d.ts +0 -5
  41. package/lib/types/components/panel/rule-edit/iconSet.d.ts +0 -5
  42. package/lib/types/components/panel/rule-edit/index.d.ts +0 -9
  43. package/lib/types/components/panel/rule-edit/rank.d.ts +0 -4
  44. package/lib/types/components/panel/rule-edit/type.d.ts +0 -13
  45. package/lib/types/components/panel/rule-list/index.d.ts +0 -9
  46. package/lib/types/components/preview/index.d.ts +0 -6
  47. package/lib/types/controllers/cf.auto-fill.controller.d.ts +0 -15
  48. package/lib/types/controllers/cf.clear.controller.d.ts +0 -14
  49. package/lib/types/controllers/cf.copy-paste.controller.d.ts +0 -18
  50. package/lib/types/controllers/cf.editor.controller.d.ts +0 -15
  51. package/lib/types/controllers/cf.i18n.controller.d.ts +0 -10
  52. package/lib/types/controllers/cf.menu.controller.d.ts +0 -16
  53. package/lib/types/controllers/cf.ref-range.controller.d.ts +0 -15
  54. package/lib/types/controllers/cf.render.controller.d.ts +0 -21
  55. package/lib/types/locale/en-US.d.ts +0 -4
  56. package/lib/types/locale/zh-CN.d.ts +0 -169
  57. package/lib/types/menu/manage-rule.d.ts +0 -4
  58. /package/lib/types/utils/{getStringFromDataStream.d.ts → get-string-from-data-stream.d.ts} +0 -0
  59. /package/lib/types/utils/{isRangesEqual.d.ts → is-ranges-equal.d.ts} +0 -0
  60. /package/lib/types/utils/{removeUndefinedAttr.d.ts → remove-undefined-attr.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-conditional-formatting",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "description": "Conditional formatting plugin for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -20,9 +20,6 @@
20
20
  "keywords": [
21
21
  "univer"
22
22
  ],
23
- "sideEffects": [
24
- "**/*.css"
25
- ],
26
23
  "exports": {
27
24
  ".": {
28
25
  "import": "./lib/es/index.js",
@@ -54,51 +51,30 @@
54
51
  },
55
52
  "peerDependencies": {
56
53
  "@wendellhu/redi": "0.13.0",
57
- "clsx": ">=2.0.0",
58
- "react": ">=16.9.0",
59
- "react-dom": ">=16.9.0",
60
54
  "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"
55
+ "@univerjs/core": "0.1.7",
56
+ "@univerjs/engine-formula": "0.1.7",
57
+ "@univerjs/engine-render": "0.1.7",
58
+ "@univerjs/sheets": "0.1.7"
68
59
  },
69
60
  "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"
61
+ "dayjs": "^1.11.10"
76
62
  },
77
63
  "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",
64
+ "@univerjs/icons-svg": "^0.1.43",
82
65
  "@wendellhu/redi": "^0.13.0",
83
- "clsx": "^2.1.0",
84
- "less": "^4.2.0",
85
- "react": "^18.2.0",
86
66
  "rxjs": "^7.8.1",
87
67
  "sharp": "^0.33.3",
88
- "typescript": "^5.4.3",
89
- "vite": "^5.2.6",
68
+ "typescript": "^5.4.5",
69
+ "vite": "^5.2.8",
90
70
  "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"
71
+ "@univerjs/core": "0.1.7",
72
+ "@univerjs/engine-formula": "0.1.7",
73
+ "@univerjs/engine-render": "0.1.7",
74
+ "@univerjs/shared": "0.1.7",
75
+ "@univerjs/sheets": "0.1.7"
99
76
  },
100
77
  "scripts": {
101
- "postinstall": "node ./scripts/build-icons",
102
78
  "test": "vitest run",
103
79
  "test:watch": "vitest",
104
80
  "coverage": "vitest run --coverage",
package/lib/index.css DELETED
@@ -1 +0,0 @@
1
- .univer-conditional-formatting-wrap{height:100%;display:flex;flex-direction:column;justify-content:space-between}.univer-conditional-formatting-wrap .univer-cf-rule-item{display:flex;justify-content:space-between;align-items:center}.univer-conditional-formatting-wrap .univer-cf-rule-item .univer-preview{flex-shrink:0}.univer-conditional-formatting-wrap .univer-create-rule{margin-bottom:20px}.univer-conditional-formatting-wrap .univer-create-rule .univer-button{border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);display:flex;align-items:center;justify-content:center;padding:var(--padding-base);cursor:pointer;font-size:var(--font-size-sm)}.univer-conditional-formatting-wrap .univer-title{margin-top:var(--margin-base);font-size:15px;color:rgb(var(--text-color-secondary))}.univer-conditional-formatting-wrap .univer-label{font-size:12px;margin-top:var(--margin-sm);color:rgb(var(--text-color-secondary))}.univer-conditional-formatting-wrap .univer-label-container{display:flex;align-items:center}.univer-conditional-formatting-wrap .univer-label-container .univer-input-width{width:100px}.univer-conditional-formatting-wrap .univer-m-t-base{margin-top:var(--margin-base)}.univer-conditional-formatting-wrap .univer-m-t-sm{margin-top:var(--margin-sm)}.univer-conditional-formatting-wrap .univer-m-t-xl{margin-top:var(--margin-xl)}.univer-conditional-formatting-wrap .univer-m-l-sm{margin-left:var(--margin-sm)}.univer-conditional-formatting-wrap .univer-m-l-xl{margin-left:var(--margin-xl)}.univer-conditional-formatting-wrap .univer-m-l-xxs{margin-left:var(--margin-xxs)}.univer-conditional-formatting-wrap .univer-m-l-0{margin-left:0}.univer-conditional-formatting-wrap .univer-m-r-0{margin-right:0}.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.univer-cf-preview{display:flex;align-items:center;justify-content:center;pointer-events:none;min-width:72px;height:20px;font-size:12px}.univer-cf-rule-list .univer-rule-selector{color:rgb(var(--text-color-secondary));font-size:12px;display:flex;justify-content:space-between;align-items:center}.univer-cf-rule-list .univer-rule-selector .univer-select{color:rgb(var(--text-color));width:126px}.univer-cf-rule-list .univer-rule-selector .univer-select .univer-select-selector{border:none;padding:0}.univer-cf-rule-list .univer-rule-selector .univer-select .univer-select-selection-item{top:-2px;left:4px}.univer-cf-rule-list .univer-rule-selector .univer-select .univer-select-selection-search-input{cursor:pointer}.univer-cf-rule-list .univer-rule-selector .univer-btn-list{font-size:16px;color:#000;display:flex;justify-content:space-between;align-items:center}.univer-cf-rule-list .univer-rule-selector .univer-btn-list .univer-gap{margin-left:8px}.univer-cf-rule-list .univer-rule-selector .univer-btn-list .univer-icon{cursor:pointer;display:flex;justify-content:space-between;align-items:center;border-radius:4px;padding:4px}.univer-cf-rule-list .univer-rule-selector .univer-btn-list .univer-icon:hover{background:rgb(var(--grey-300))}.univer-cf-rule-list .univer-rule-selector .univer-btn-list .univer-disabled{color:rgb(var(--grey-500));display:flex;align-items:center;border-radius:4px;padding:4px}.univer-cf-rule-list .univer-rule-item{padding:8px 32px 8px 20px;display:flex;justify-content:space-between;position:relative;align-items:center;border-radius:var(--border-radius-base)}.univer-cf-rule-list .univer-rule-item .univer-rule-describe{max-width:100%;min-width:0px;overflow:hidden;flex-shrink:1;font-size:var(--font-size-sm);line-height:21px}.univer-cf-rule-list .univer-rule-item .univer-rule-describe .univer-rule-type{font-size:14px;line-height:22px;color:#1e222b}.univer-cf-rule-list .univer-rule-item .univer-rule-describe .univer-rule-range{font-size:12px;line-height:22px;color:#7a7a7a}.univer-cf-rule-list .univer-rule-item:hover,.univer-cf-rule-list .univer-rule-item.univer-active{background-color:rgb(var(--grey-100))}.univer-cf-rule-list .univer-rule-item .univer-draggableHandle{display:none;position:absolute;left:0;width:20px;height:20px;border-radius:var(--border-radius-base);cursor:grab}.univer-cf-rule-list .univer-rule-item:hover .univer-delete-item,.univer-cf-rule-list .univer-rule-item:hover .univer-draggableHandle{display:flex;align-items:center;justify-content:center}.univer-cf-rule-list .univer-rule-item .univer-delete-item{display:none;cursor:pointer;border-radius:var(--border-radius-base);position:absolute;right:4px;width:24px;height:24px}.univer-cf-rule-list .univer-rule-item .univer-delete-item:hover{background-color:rgb(var(--grey-300))}.univer-cf-rule-list .univer-rule-item .univer-active{display:flex;align-items:center;justify-content:center}.univer-cf-rule-list .univer-grid-layout-wrap{width:calc(100% - 2 * var(--padding-sm) + 2 * var(--padding-xl));margin-left:calc(-1 * var(--padding-xl));padding-left:var(--padding-sm)}.univer-cf-rule-list .univer-grid-layout-wrap .univer-react-grid-item{transition:none}.react-grid-item.react-grid-placeholder{background:rgb(var(--grey-300))}.univer-cf-color-picker{padding:var(--padding-base);font-size:var(--font-size-xs);list-style:none;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-cf-color-picker-icon{cursor:pointer;padding:4px;display:flex;align-items:center}.univer-cf-color-picker-icon:hover{background:rgb(var(--bg-color-hover));border-radius:var(--border-radius-base)}.univer-cf-color-picker-icon .univer-icon-dropdown{font-size:8px;color:rgb(var(--text-color-secondary));margin-left:6px}.univer-cf-rule-style-editor .univer-cf-preview-wrap{margin-top:var(--margin-sm);padding:var(--padding-xs) var(--padding-sm);border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-cf-rule-style-editor .univer-text{font-size:var(--font-size-xxs)}.univer-cf-rule-style-editor .univer-position-relative{position:relative}.univer-cf-rule-style-editor .univer-btn-list{display:flex;justify-content:flex-end;margin-bottom:var(--margin-base)}.univer-cf-rule-style-editor .univer-icon-set .univer-render-config{display:flex;align-items:center;font-size:var(--font-size-xxs);justify-content:flex-start}.univer-cf-rule-style-editor .univer-icon-set .univer-render-config .univer-util-item{display:flex;justify-content:flex-start;align-items:center}.univer-cf-rule-style-editor .univer-icon-set .univer-flex{display:flex;justify-content:space-between;align-items:center}.univer-cf-rule-style-editor .univer-icon-set .univer-width45{width:45%}.univer-cf-rule-style-editor .univer-icon-set .univer-icon-wrap{display:flex;align-items:center}.univer-cf-rule-style-editor .univer-icon-set .univer-icon{width:20px;height:20px}.univer-cf-rule-style-editor .univer-icon-set .univer-dropdown-icon{background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);display:flex;justify-content:space-between;width:100%;align-items:center;padding:var(--padding-sm) var(--padding-lg);font-size:var(--font-size-xxs);color:rgb(var(--text-color-secondary));transition:all .15s}.univer-cf-rule-style-editor .univer-icon-set .univer-dropdown-icon:hover{border-color:rgb(var(--primary-color))!important}.univer-cf-rule-style-editor .univer-icon-set .univer-dropdown-icon .univer-icon{width:16px;height:16px}.univer-cf-rule-style-editor .univer-icon-set .univer-error-input{border:1px solid rgb(var(--red-400))}.univer-cf-rule-style-editor .univer-icon-set .univer-error-text{color:rgb(var(--red-400));font-size:12px;position:absolute}.univer-icon-group-list{padding:var(--padding-base);font-size:var(--font-size-xs);width:314px;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-icon-group-list .univer-title{font-size:13px;margin-bottom:var(--margin-xxs)}.univer-icon-group-list .univer-group{margin-bottom:var(--margin-sm)}.univer-icon-group-list .univer-item-content{display:flex;flex-wrap:wrap}.univer-icon-group-list .univer-item-content .univer-item-wrap{display:flex;align-items:center;justify-content:start;width:50%;margin-bottom:4px}.univer-icon-group-list .univer-item-content .univer-item-wrap .univer-item{border-radius:var(--border-radius-base);cursor:pointer}.univer-icon-group-list .univer-item-content .univer-item-wrap .univer-item :not(:first-child).univer-icon{margin-left:8px}.univer-icon-group-list .univer-item-content .univer-item-wrap .univer-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-icon-group-list .univer-item-content .univer-item-wrap :not(:first-child).univer-icon{margin-left:8px}.univer-icon-group-list .univer-icon{width:20px;height:20px}.univer-icon-item-list-wrap{padding:var(--padding-base) 4px var(--padding-base) var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-icon-item-list-wrap .univer-none{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;padding-left:4px}.univer-icon-item-list-wrap .univer-none span{margin-left:8px}.univer-icon-item-list-wrap .univer-icon-item-list{display:flex;width:252px;flex-wrap:wrap}.univer-icon-item-list-wrap .univer-icon-item-list .univer-item{display:flex;align-items:center;justify-content:center;border-radius:var(--border-radius-base);margin-right:8px;margin-bottom:8px;cursor:pointer}.univer-icon-item-list-wrap .univer-icon-item-list .univer-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-icon-item-list-wrap .univer-icon-item-list .univer-icon{width:20px;height:20px}.univer-width100{width:100%}.univer-stress{color:rgb(var(--text-color));font-weight:500}.univer-cf-style-edit{display:flex;justify-content:space-between;margin:10px 0}.univer-cf-style-edit .univer-button-item{cursor:pointer;border-radius:var(--border-radius-base);display:flex;align-items:center;padding:0 3px}.univer-cf-style-edit .univer-button-item:hover,.univer-cf-style-edit .univer-isActive{background-color:rgb(var(--grey-100))}
@@ -1,11 +0,0 @@
1
- import { IAverageHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddAverageCfParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: IAverageHighlightCell['style'];
8
- operator: IAverageHighlightCell['operator'];
9
- }
10
- export declare const DddAverageCfCommand: ICommand<IAddAverageCfParams>;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { MakePropertyOptional } from '../../utils/type';
2
- import { IConditionFormattingRule } from '../../models/type';
3
- import { ICommand } from '@univerjs/core';
4
-
5
- export interface IAddCfCommandParams {
6
- unitId?: string;
7
- subUnitId?: string;
8
- rule: MakePropertyOptional<IConditionFormattingRule, 'cfId'>;
9
- }
10
- export declare const AddCfCommand: ICommand<IAddCfCommandParams>;
@@ -1,10 +0,0 @@
1
- import { IColorScale } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddColorScaleConditionalRuleParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- config: IColorScale['config'];
8
- }
9
- export declare const AddColorScaleConditionalRuleCommand: ICommand<IAddColorScaleConditionalRuleParams>;
10
- export {};
@@ -1,14 +0,0 @@
1
- import { IDataBar } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddUniqueValuesConditionalRuleParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- min: IDataBar['config']['min'];
8
- max: IDataBar['config']['max'];
9
- nativeColor: IDataBar['config']['nativeColor'];
10
- positiveColor: IDataBar['config']['positiveColor'];
11
- isGradient: IDataBar['config']['isGradient'];
12
- }
13
- export declare const AddDataBarConditionalRuleCommand: ICommand<IAddUniqueValuesConditionalRuleParams>;
14
- export {};
@@ -1,10 +0,0 @@
1
- import { IHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddDuplicateValuesConditionalRuleParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: IHighlightCell['style'];
8
- }
9
- export declare const AddDuplicateValuesCfCommand: ICommand<IAddDuplicateValuesConditionalRuleParams>;
10
- export {};
@@ -1,12 +0,0 @@
1
- import { INumberHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddNumberCfParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: INumberHighlightCell['style'];
8
- operator: INumberHighlightCell['operator'];
9
- value: number | [number, number];
10
- }
11
- export declare const AddNumberCfCommand: ICommand<IAddNumberCfParams>;
12
- export {};
@@ -1,13 +0,0 @@
1
- import { IRankHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddRankCfParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: IRankHighlightCell['style'];
8
- isPercent: boolean;
9
- isBottom: boolean;
10
- value: number;
11
- }
12
- export declare const AddRankCfCommand: ICommand<IAddRankCfParams>;
13
- export {};
@@ -1,12 +0,0 @@
1
- import { ITextHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddAverageCfParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: ITextHighlightCell['style'];
8
- operator: ITextHighlightCell['operator'];
9
- value: ITextHighlightCell['value'];
10
- }
11
- export declare const AddTextCfCommand: ICommand<IAddAverageCfParams>;
12
- export {};
@@ -1,11 +0,0 @@
1
- import { ITimePeriodHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddTimePeriodCf {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: ITimePeriodHighlightCell['style'];
8
- operator: ITimePeriodHighlightCell['operator'];
9
- }
10
- export declare const AddTimePeriodCfCommand: ICommand<IAddTimePeriodCf>;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { IHighlightCell } from '../../models/type';
2
- import { ICommand, IRange } from '@univerjs/core';
3
-
4
- interface IAddUniqueValuesConditionalRuleParams {
5
- ranges: IRange[];
6
- stopIfTrue?: boolean;
7
- style: IHighlightCell['style'];
8
- }
9
- export declare const AddUniqueValuesCfCommand: ICommand<IAddUniqueValuesConditionalRuleParams>;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { ICommand, IRange } from '@univerjs/core';
2
-
3
- export interface IClearRangeCfParams {
4
- ranges?: IRange[];
5
- unitId?: string;
6
- subUnitId?: string;
7
- }
8
- export declare const ClearRangeCfCommand: ICommand<IClearRangeCfParams>;
@@ -1,7 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
-
3
- export interface IClearWorksheetCfParams {
4
- unitId?: string;
5
- subUnitId?: string;
6
- }
7
- export declare const ClearWorksheetCfCommand: ICommand<IClearWorksheetCfParams>;
@@ -1,8 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
-
3
- export interface IDeleteCfCommandParams {
4
- unitId?: string;
5
- subUnitId?: string;
6
- cfId: string;
7
- }
8
- export declare const DeleteCfCommand: ICommand<IDeleteCfCommandParams>;
@@ -1,9 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
-
3
- export interface IMoveCfCommand {
4
- unitId?: string;
5
- subUnitId?: string;
6
- cfId: string;
7
- targetCfId: string;
8
- }
9
- export declare const moveCfCommand: ICommand<IMoveCfCommand>;
@@ -1,9 +0,0 @@
1
- import { IConditionFormattingRule } from '../../models/type';
2
- import { ICommand } from '@univerjs/core';
3
-
4
- export interface ISetCfCommandParams {
5
- unitId?: string;
6
- subUnitId?: string;
7
- rule: IConditionFormattingRule;
8
- }
9
- export declare const SetCfCommand: ICommand<ISetCfCommandParams>;
@@ -1,15 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
-
3
- export declare enum CF_MENU_OPERATION {
4
- createRule = 1,
5
- viewRule = 2,
6
- highlightCell = 3,
7
- rank = 4,
8
- formula = 5,
9
- colorScale = 6,
10
- dataBar = 7,
11
- icon = 8,
12
- clearRangeRules = 9,
13
- clearWorkSheetRules = 10
14
- }
15
- export declare const OpenConditionalFormattingOperator: ICommand;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface IColorPickerProps {
4
- color: string;
5
- onChange: (color: string) => void;
6
- disable?: boolean;
7
- iconId?: string;
8
- className?: string;
9
- isNeedDropdownIcon?: boolean;
10
- }
11
- export declare const ColorPicker: (props: IColorPickerProps) => React.JSX.Element | undefined;
12
- export {};
@@ -1,10 +0,0 @@
1
- import { IHighlightCell } from '../../models/type';
2
- import { default as React } from 'react';
3
-
4
- interface IConditionalStyleEditorProps {
5
- className?: string;
6
- style?: IHighlightCell['style'];
7
- onChange: (style: IHighlightCell['style']) => void;
8
- }
9
- export declare const ConditionalStyleEditor: (props: IConditionalStyleEditorProps) => React.JSX.Element;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { IConditionFormattingRule } from '../../models/type';
2
- import { default as React } from 'react';
3
-
4
- interface IConditionFormattingPanelProps {
5
- rule?: IConditionFormattingRule;
6
- }
7
- export declare const ConditionFormattingPanel: (props: IConditionFormattingPanelProps) => React.JSX.Element;
8
- export {};
@@ -1,4 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
-
4
- export declare const ColorScaleStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
-
4
- export declare const DataBarStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
-
4
- export declare const FormulaStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { INumberHighlightCell, ITextHighlightCell, ITimePeriodHighlightCell } from '../../../models/type';
3
- import { default as React } from 'react';
4
-
5
- export declare const HighlightCellStyleEditor: (props: IStyleEditorProps<any, ITextHighlightCell | INumberHighlightCell | ITimePeriodHighlightCell>) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { IIconSet } from '../../../models/type';
3
- import { default as React } from 'react';
4
-
5
- export declare const IconSet: (props: IStyleEditorProps<unknown, IIconSet>) => React.JSX.Element;
@@ -1,9 +0,0 @@
1
- import { IConditionFormattingRule } from '../../../models/type';
2
- import { default as React } from 'react';
3
-
4
- interface IRuleEditProps {
5
- rule?: IConditionFormattingRule;
6
- onCancel: () => void;
7
- }
8
- export declare const RuleEdit: (props: IRuleEditProps) => React.JSX.Element;
9
- export {};
@@ -1,4 +0,0 @@
1
- import { IStyleEditorProps } from './type';
2
- import { default as React } from 'react';
3
-
4
- export declare const RankStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import { IConditionalFormattingRuleConfig } from '../../../models/type';
2
- import { InterceptorManager } from '@univerjs/core';
3
-
4
- export declare const beforeSubmit: import('@univerjs/core').IInterceptor<boolean, null>;
5
- export declare const submit: import('@univerjs/core').IInterceptor<any, null>;
6
- export interface IStyleEditorProps<S = any, R = IConditionalFormattingRuleConfig> {
7
- onChange: (style: S) => void;
8
- rule?: R;
9
- interceptorManager: InterceptorManager<{
10
- beforeSubmit: typeof beforeSubmit;
11
- submit: typeof submit;
12
- }>;
13
- }
@@ -1,9 +0,0 @@
1
- import { IConditionFormattingRule } from '../../../models/type';
2
- import { default as React } from 'react';
3
-
4
- interface IRuleListProps {
5
- onClick: (rule: IConditionFormattingRule) => void;
6
- onCreate: () => void;
7
- }
8
- export declare const RuleList: (props: IRuleListProps) => React.JSX.Element;
9
- export {};
@@ -1,6 +0,0 @@
1
- import { IConditionalFormattingRuleConfig } from '../../models/type';
2
- import { default as React } from 'react';
3
-
4
- export declare const Preview: (props: {
5
- rule?: IConditionalFormattingRuleConfig;
6
- }) => React.JSX.Element | null | undefined;
@@ -1,15 +0,0 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
3
- import { Injector } from '@wendellhu/redi';
4
- import { IAutoFillService } from '@univerjs/sheets-ui';
5
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
6
-
7
- export declare class ConditionalFormattingAutoFillController extends Disposable {
8
- private _injector;
9
- private _univerInstanceService;
10
- private _autoFillService;
11
- private _conditionalFormattingRuleModel;
12
- private _conditionalFormattingViewModel;
13
- constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _autoFillService: IAutoFillService, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _conditionalFormattingViewModel: ConditionalFormattingViewModel);
14
- private _initAutoFill;
15
- }
@@ -1,14 +0,0 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { Injector } from '@wendellhu/redi';
3
- import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
4
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
5
-
6
- export declare class ConditionalFormattingClearController extends Disposable {
7
- private _injector;
8
- private _univerInstanceService;
9
- private _sheetInterceptorService;
10
- private _selectionManagerService;
11
- private _conditionalFormattingRuleModel;
12
- constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel);
13
- private _init;
14
- }
@@ -1,18 +0,0 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
3
- import { Injector } from '@wendellhu/redi';
4
- import { ISheetClipboardService } from '@univerjs/sheets-ui';
5
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
6
-
7
- export declare class ConditionalFormattingCopyPasteController extends Disposable {
8
- private _sheetClipboardService;
9
- private _conditionalFormattingRuleModel;
10
- private _injector;
11
- private _conditionalFormattingViewModel;
12
- private _univerInstanceService;
13
- private _copyInfo;
14
- constructor(_sheetClipboardService: ISheetClipboardService, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _injector: Injector, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _univerInstanceService: IUniverInstanceService);
15
- private _initClipboardHook;
16
- private _collectConditionalRule;
17
- private _generateConditionalFormattingMutations;
18
- }
@@ -1,15 +0,0 @@
1
- import { ConditionalFormattingService } from '../services/conditional-formatting.service';
2
- import { IEditorBridgeService } from '@univerjs/sheets-ui';
3
- import { Disposable } from '@univerjs/core';
4
-
5
- export declare class ConditionalFormattingEditorController extends Disposable {
6
- private _editorBridgeService;
7
- private _conditionalFormattingService;
8
- constructor(_editorBridgeService: IEditorBridgeService, _conditionalFormattingService: ConditionalFormattingService);
9
- /**
10
- * Process the values after edit
11
- * @private
12
- * @memberof NumfmtService
13
- */
14
- private _initInterceptorEditorEnd;
15
- }
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { Disposable, LocaleService } from '@univerjs/core';
3
-
4
- export declare class ConditionalFormattingI18nController extends Disposable {
5
- private _localeService;
6
- constructor(_localeService: LocaleService);
7
- private _initLocal;
8
- tWithReactNode(key: string, ...args: (ReactNode | string)[]): ReactNode[];
9
- private _findReplaceIndex;
10
- }
@@ -1,16 +0,0 @@
1
- import { IConditionFormattingRule } from '../models/type';
2
- import { ComponentManager, IMenuService, ISidebarService } from '@univerjs/ui';
3
- import { Disposable, LocaleService } from '@univerjs/core';
4
- import { Injector } from '@wendellhu/redi';
5
-
6
- export declare class ConditionalFormattingMenuController extends Disposable {
7
- private _injector;
8
- private _componentManager;
9
- private _menuService;
10
- private _sidebarService;
11
- private _localeService;
12
- constructor(_injector: Injector, _componentManager: ComponentManager, _menuService: IMenuService, _sidebarService: ISidebarService, _localeService: LocaleService);
13
- openPanel(rule?: IConditionFormattingRule): void;
14
- private _initMenu;
15
- private _initPanel;
16
- }
@@ -1,15 +0,0 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { Injector } from '@wendellhu/redi';
3
- import { RefRangeService } from '@univerjs/sheets';
4
- import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
6
-
7
- export declare class RefRangeController extends Disposable {
8
- private _conditionalFormattingRuleModel;
9
- private _univerInstanceService;
10
- private _injector;
11
- private _sheetSkeletonManagerService;
12
- private _refRangeService;
13
- constructor(_conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _univerInstanceService: IUniverInstanceService, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _refRangeService: RefRangeService);
14
- private _initRefRange;
15
- }
@@ -1,21 +0,0 @@
1
- import { ConditionalFormattingRuleModel } from '../models/conditional-formatting-rule-model';
2
- import { ConditionalFormattingViewModel } from '../models/conditional-formatting-view-model';
3
- import { ConditionalFormattingService } from '../services/conditional-formatting.service';
4
- import { IRenderManagerService } from '@univerjs/engine-render';
5
- import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
6
- import { SheetInterceptorService } from '@univerjs/sheets';
7
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
8
-
9
- export declare class RenderController extends Disposable {
10
- private _sheetInterceptorService;
11
- private _conditionalFormattingService;
12
- private _univerInstanceService;
13
- private _renderManagerService;
14
- private _conditionalFormattingViewModel;
15
- private _conditionalFormattingRuleModel;
16
- private _sheetSkeletonManagerService;
17
- constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _conditionalFormattingViewModel: ConditionalFormattingViewModel, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService);
18
- _initRender(): void;
19
- _initSkeleton(): void;
20
- _initViewModelInterceptor(): void;
21
- }
@@ -1,4 +0,0 @@
1
- import { default as zhCN } from './zh-CN';
2
-
3
- declare const locale: typeof zhCN;
4
- export default locale;