@univerjs/sheets-conditional-formatting-ui 0.4.2 → 0.5.0-beta.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.
@@ -0,0 +1,162 @@
1
+ const e = {
2
+ sheet: {
3
+ cf: {
4
+ title: "条件格式",
5
+ menu: {
6
+ manageConditionalFormatting: "管理条件格式",
7
+ createConditionalFormatting: "新建条件格式",
8
+ clearRangeRules: "清除所选区域的规则",
9
+ clearWorkSheetRules: "清除整个工作表的规则"
10
+ },
11
+ form: {
12
+ lessThan: "该值必须小于 {0}",
13
+ lessThanOrEqual: "该值必须小于等于 {0}",
14
+ greaterThan: "该值必大于 {0}",
15
+ greaterThanOrEqual: "该值必大于等于 {0}",
16
+ rangeSelector: "选择范围或者输入值"
17
+ },
18
+ iconSet: {
19
+ direction: "方向",
20
+ shape: "形状",
21
+ mark: "标记",
22
+ rank: "等级",
23
+ rule: "规则",
24
+ icon: "图标",
25
+ type: "类型",
26
+ value: "值",
27
+ reverseIconOrder: "反转图标次序",
28
+ and: "且",
29
+ when: "当值",
30
+ onlyShowIcon: "仅显示图标"
31
+ },
32
+ symbol: {
33
+ greaterThan: ">",
34
+ greaterThanOrEqual: ">=",
35
+ lessThan: "<",
36
+ lessThanOrEqual: "<="
37
+ },
38
+ panel: {
39
+ createRule: "新增规则",
40
+ clear: "清空所有规则",
41
+ range: "应用范围",
42
+ styleType: "样式类型",
43
+ submit: "确认",
44
+ cancel: "取消",
45
+ rankAndAverage: "最前/最后/平均值",
46
+ styleRule: "样式规则",
47
+ isNotBottom: "最前",
48
+ isBottom: "最后",
49
+ greaterThanAverage: "大于平均值",
50
+ lessThanAverage: "小于平均值",
51
+ medianValue: "中间值",
52
+ fillType: "填充方式",
53
+ pureColor: "纯色",
54
+ gradient: "渐变",
55
+ colorSet: "颜色设置",
56
+ positive: "正值",
57
+ native: "负值",
58
+ workSheet: "整张工作表",
59
+ selectedRange: "所选单元格",
60
+ managerRuleSelect: "管理 {0} 的规则",
61
+ onlyShowDataBar: "仅显示数据条"
62
+ },
63
+ preview: {
64
+ describe: {
65
+ beginsWith: "开头为{0}",
66
+ endsWith: "结尾为{0}",
67
+ containsText: "文本包含{0}",
68
+ notContainsText: "文本不包含{0}",
69
+ equal: "等于{0}",
70
+ notEqual: "不等于{0}",
71
+ containsBlanks: "为空",
72
+ notContainsBlanks: "不为空",
73
+ containsErrors: "错误",
74
+ notContainsErrors: "非错误",
75
+ greaterThan: "大于{0}",
76
+ greaterThanOrEqual: "大于等于{0}",
77
+ lessThan: "小于{0}",
78
+ lessThanOrEqual: "小于等于{0}",
79
+ notBetween: "不介于{0}和{1}之间",
80
+ between: "介于{0}和{1}之间",
81
+ yesterday: "昨日",
82
+ tomorrow: "明日",
83
+ last7Days: "最近7天",
84
+ thisMonth: "本月",
85
+ lastMonth: "上个月",
86
+ nextMonth: "下个月",
87
+ thisWeek: "本周",
88
+ lastWeek: "上周",
89
+ nextWeek: "下周",
90
+ today: "今日",
91
+ topN: "前{0}项",
92
+ bottomN: "后{0}项",
93
+ topNPercent: "前{0}%",
94
+ bottomNPercent: "后{0}%"
95
+ }
96
+ },
97
+ operator: {
98
+ beginsWith: "开头为",
99
+ endsWith: "结尾为",
100
+ containsText: "文本包含",
101
+ notContainsText: "文本不包含",
102
+ equal: "等于",
103
+ notEqual: "不等于",
104
+ containsBlanks: "为空",
105
+ notContainsBlanks: "不为空",
106
+ containsErrors: "错误",
107
+ notContainsErrors: "非错误",
108
+ greaterThan: "大于",
109
+ greaterThanOrEqual: "大于等于",
110
+ lessThan: "小于",
111
+ lessThanOrEqual: "小于等于",
112
+ notBetween: "不介于",
113
+ between: "介于",
114
+ yesterday: "昨日",
115
+ tomorrow: "明日",
116
+ last7Days: "最近 7 天",
117
+ thisMonth: "本月",
118
+ lastMonth: "上个月",
119
+ nextMonth: "下个月",
120
+ thisWeek: "本周",
121
+ lastWeek: "上周",
122
+ nextWeek: "下周",
123
+ today: "今日"
124
+ },
125
+ ruleType: {
126
+ highlightCell: "突出显示单元格",
127
+ dataBar: "数据条",
128
+ colorScale: "色阶",
129
+ formula: "自定义公式",
130
+ iconSet: "图标集",
131
+ duplicateValues: "重复值",
132
+ uniqueValues: "唯一值"
133
+ },
134
+ subRuleType: {
135
+ uniqueValues: "唯一值",
136
+ duplicateValues: "重复值",
137
+ rank: "最前最后",
138
+ text: "文本",
139
+ timePeriod: "时间日期",
140
+ number: "数值",
141
+ average: "平均值"
142
+ },
143
+ valueType: {
144
+ num: "数值",
145
+ min: "最小值",
146
+ max: "最大值",
147
+ percent: "百分比",
148
+ percentile: "百分点",
149
+ formula: "公式",
150
+ none: "无"
151
+ },
152
+ errorMessage: {
153
+ notBlank: "条件不能为空",
154
+ rangeError: "选区错误",
155
+ formulaError: "公式错误"
156
+ }
157
+ }
158
+ }
159
+ };
160
+ export {
161
+ e as default
162
+ };
@@ -0,0 +1,162 @@
1
+ const e = {
2
+ sheet: {
3
+ cf: {
4
+ title: "條件格式",
5
+ menu: {
6
+ manageConditionalFormatting: "管理條件格式",
7
+ createConditionalFormatting: "新建條件格式",
8
+ clearRangeRules: "清除所選區域的規則",
9
+ clearWorkSheetRules: "清除整個工作表的規則"
10
+ },
11
+ form: {
12
+ lessThan: "該值必須小於 {0}",
13
+ lessThanOrEqual: "該值必須小於等於 {0}",
14
+ greaterThan: "該值必大於 {0}",
15
+ greaterThanOrEqual: "該值必大於等於 {0}",
16
+ rangeSelector: "選擇範圍或輸入值"
17
+ },
18
+ iconSet: {
19
+ direction: "方向",
20
+ shape: "形狀",
21
+ mark: "標記",
22
+ rank: "等級",
23
+ rule: "規則",
24
+ icon: "圖示",
25
+ type: "類型",
26
+ value: "值",
27
+ reverseIconOrder: "反轉圖示次序",
28
+ and: "且",
29
+ when: "當值",
30
+ onlyShowIcon: "僅顯示圖示"
31
+ },
32
+ symbol: {
33
+ greaterThan: ">",
34
+ greaterThanOrEqual: ">=",
35
+ lessThan: "<",
36
+ lessThanOrEqual: "<="
37
+ },
38
+ panel: {
39
+ createRule: "新增規則",
40
+ clear: "清空所有規則",
41
+ range: "應用範圍",
42
+ styleType: "樣式類型",
43
+ submit: "確認",
44
+ cancel: "取消",
45
+ rankAndAverage: "最前/最後/平均",
46
+ styleRule: "樣式規則",
47
+ isNotBottom: "最前面",
48
+ isBottom: "最後",
49
+ greaterThanAverage: "大於平均值",
50
+ lessThanAverage: "小於平均值",
51
+ medianValue: "中間值",
52
+ fillType: "填滿方式",
53
+ pureColor: "純色",
54
+ gradient: "漸層",
55
+ colorSet: "顏色設定",
56
+ positive: "正值",
57
+ native: "負值",
58
+ workSheet: "整張工作表",
59
+ selectedRange: "所選儲存格",
60
+ managerRuleSelect: "管理 {0} 的規則",
61
+ onlyShowDataBar: "僅顯示資料條"
62
+ },
63
+ preview: {
64
+ describe: {
65
+ beginsWith: "開頭為{0}",
66
+ endsWith: "結尾為{0}",
67
+ containsText: "文字包含{0}",
68
+ notContainsText: "文字不包含{0}",
69
+ equal: "等於{0}",
70
+ notEqual: "不等於{0}",
71
+ containsBlanks: "為空",
72
+ notContainsBlanks: "不為空",
73
+ containsErrors: "錯誤",
74
+ notContainsErrors: "非錯誤",
75
+ greaterThan: "大於{0}",
76
+ greaterThanOrEqual: "大於等於{0}",
77
+ lessThan: "小於{0}",
78
+ lessThanOrEqual: "小於等於{0}",
79
+ notBetween: "不介於{0}和{1}之間",
80
+ between: "介於{0}和{1}之間",
81
+ yesterday: "昨日",
82
+ tomorrow: "明日",
83
+ last7Days: "最近7天",
84
+ thisMonth: "本月",
85
+ lastMonth: "上個月",
86
+ nextMonth: "下個月",
87
+ thisWeek: "本週",
88
+ lastWeek: "上週",
89
+ nextWeek: "下週",
90
+ today: "今日",
91
+ topN: "前{0}項",
92
+ bottomN: "後{0}項",
93
+ topNPercent: "前{0}%",
94
+ bottomNPercent: "後{0}%"
95
+ }
96
+ },
97
+ operator: {
98
+ beginsWith: "開頭為",
99
+ endsWith: "結尾為",
100
+ containsText: "文字包含",
101
+ notContainsText: "文字不包含",
102
+ equal: "等於",
103
+ notEqual: "不等於",
104
+ containsBlanks: "為空",
105
+ notContainsBlanks: "不為空",
106
+ containsErrors: "錯誤",
107
+ notContainsErrors: "非錯誤",
108
+ greaterThan: "大於",
109
+ greaterThanOrEqual: "大於等於",
110
+ lessThan: "小於",
111
+ lessThanOrEqual: "小於等於",
112
+ notBetween: "不介於",
113
+ between: "介於",
114
+ yesterday: "昨日",
115
+ tomorrow: "明日",
116
+ last7Days: "最近 7 天",
117
+ thisMonth: "本月",
118
+ lastMonth: "上個月",
119
+ nextMonth: "下個月",
120
+ thisWeek: "本週",
121
+ lastWeek: "上週",
122
+ nextWeek: "下週",
123
+ today: "今日"
124
+ },
125
+ ruleType: {
126
+ highlightCell: "突出顯示單元格",
127
+ dataBar: "資料條",
128
+ colorScale: "色階",
129
+ formula: "自訂公式",
130
+ iconSet: "圖標集",
131
+ duplicateValues: "重複值",
132
+ uniqueValues: "唯一值"
133
+ },
134
+ subRuleType: {
135
+ uniqueValues: "唯一值",
136
+ duplicateValues: "重複值",
137
+ rank: "最前最後",
138
+ text: "文字",
139
+ timePeriod: "時間日期",
140
+ number: "數值",
141
+ average: "平均值"
142
+ },
143
+ valueType: {
144
+ num: "數值",
145
+ min: "最小值",
146
+ max: "最大值",
147
+ percent: "百分比",
148
+ percentile: "百分點",
149
+ formula: "公式",
150
+ none: "無"
151
+ },
152
+ errorMessage: {
153
+ notBlank: "條件不能為空",
154
+ rangeError: "選區錯誤",
155
+ formulaError: "公式錯誤"
156
+ }
157
+ }
158
+ }
159
+ };
160
+ export {
161
+ e as default
162
+ };
package/lib/index.css CHANGED
@@ -1 +1 @@
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:138px}.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-util-item{display:flex;justify-content:flex-start;align-items:center;font-size:var(--font-size-xxs)}.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-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);box-sizing:border-box;width:328px;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:flex-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
+ .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:138px}.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-lg);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-util-item{display:flex;justify-content:flex-start;align-items:center;font-size:var(--font-size-xxs)}.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-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);box-sizing:border-box;width:328px;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:flex-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,3 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { IStyleEditorProps } from './type';
2
+ import { default as React } from 'react';
3
3
  export declare const ColorScaleStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { IStyleEditorProps } from './type';
2
+ import { default as React } from 'react';
3
3
  export declare const DataBarStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { IStyleEditorProps } from './type';
2
+ import { default as React } from 'react';
3
3
  export declare const FormulaStyleEditor: (props: IStyleEditorProps) => React.JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
3
+ import 'react-grid-layout/css/styles.css';
4
+ import 'react-resizable/css/styles.css';
3
5
  interface IRuleListProps {
4
6
  onClick: (rule: IConditionFormattingRule) => void;
5
7
  onCreate: () => void;
@@ -1,10 +1,10 @@
1
1
  import { Disposable } from '@univerjs/core';
2
+ import { SheetInterceptorService } from '@univerjs/sheets';
2
3
  import { ConditionalFormattingService } from '@univerjs/sheets-conditional-formatting';
3
- import { IEditorBridgeService } from '@univerjs/sheets-ui';
4
4
  export declare class ConditionalFormattingEditorController extends Disposable {
5
- private _editorBridgeService;
6
- private _conditionalFormattingService;
7
- constructor(_editorBridgeService: IEditorBridgeService, _conditionalFormattingService: ConditionalFormattingService);
5
+ private readonly _sheetInterceptorService;
6
+ private readonly _conditionalFormattingService;
7
+ constructor(_sheetInterceptorService: SheetInterceptorService, _conditionalFormattingService: ConditionalFormattingService);
8
8
  /**
9
9
  * Process the values after edit
10
10
  * @private