@univerjs/sheets-conditional-formatting-ui 0.2.2 → 0.2.3

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/lib/es/index.js CHANGED
@@ -4,7 +4,7 @@ var Qt = (e, t, n) => oa(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { CommandType as Re, ICommandService as ue, IUniverInstanceService as re, IUndoRedoService as qt, ObjectMatrix as Vt, Range as ut, sequenceExecute as yi, UniverInstanceType as G, Rectangle as At, ColorKit as bi, BooleanNumber as He, Disposable as rt, OnLifecycle as ot, LifecycleStages as it, LocaleService as $e, createInterceptorKey as Si, createInternalEditorID as yn, Tools as bn, InterceptorManager as ia, toDisposable as Ci, Plugin as _i, DependentOn as wi } from "@univerjs/core";
5
5
  import { Inject as q, Injector as Rt } from "@wendellhu/redi";
6
6
  import { ConditionalFormattingRuleModel as he, CFRuleType as L, CFSubRuleType as j, AddConditionalRuleMutation as De, CFNumberOperator as F, setConditionalRuleMutationUndoFactory as Bt, SetConditionalRuleMutation as nt, DeleteConditionalRuleMutationUndoFactory as It, DeleteConditionalRuleMutation as Ye, MoveConditionalRuleMutation as Ln, transformSupportSymmetryAnchor as sa, MoveConditionalRuleMutationUndoFactory as aa, getColorScaleFromValue as la, iconMap as bt, DEFAULT_BG_COLOR as ca, DEFAULT_FONT_COLOR as ua, AddConditionalRuleMutationUndoFactory as xi, CFValueType as A, createDefaultValueByValueType as cn, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, removeUndefinedAttr as da, createDefaultValue as Pr, CFTextOperator as X, CFTimePeriodOperator as Ge, iconGroup as fa, getOppositeOperator as Dr, compareWithNumber as ha, EMPTY_ICON_TYPE as pa, createDefaultRule as ft, DEFAULT_PADDING as ga, DEFAULT_WIDTH as ma, ConditionalFormattingService as Ri, ConditionalFormattingViewModel as Ar, isRangesEqual as va, UniverSheetsConditionalFormattingPlugin as Ii, getStringFromDataStream as ya } from "@univerjs/sheets-conditional-formatting";
7
- import { getSheetCommandTarget as Te, SelectionManagerService as Gt, findAllRectangle as kr, createTopMatrixFromMatrix as qr, SetWorksheetActiveOperation as Br, WorkbookEditablePermission as Ti, WorksheetSetCellStylePermission as Oi, WorksheetEditPermission as Ei, RangeProtectionPermissionEditPoint as Pi, SetSelectionsOperation as ba, RemoveSheetMutation as Sa, setEndForRange as Ca, INTERCEPTOR_POINT as _a, SheetInterceptorService as Di, RefRangeService as wa, handleDefaultRangeChangeWithEffectRefCommands as xa, ClearSelectionFormatCommand as Ra, ClearSelectionAllCommand as Ia, RangeMergeUtil as Ta } from "@univerjs/sheets";
7
+ import { getSheetCommandTarget as Te, SheetsSelectionsService as Gt, findAllRectangle as kr, createTopMatrixFromMatrix as qr, SetWorksheetActiveOperation as Br, WorkbookEditablePermission as Ti, WorksheetSetCellStylePermission as Oi, WorksheetEditPermission as Ei, RangeProtectionPermissionEditPoint as Pi, SetSelectionsOperation as ba, RemoveSheetMutation as Sa, setEndForRange as Ca, INTERCEPTOR_POINT as _a, SheetInterceptorService as Di, RefRangeService as wa, handleDefaultRangeChangeWithEffectRefCommands as xa, ClearSelectionFormatCommand as Ra, ClearSelectionAllCommand as Ia, RangeMergeUtil as Ta } from "@univerjs/sheets";
8
8
  import { MenuItemType as Oa, MenuGroup as Ea, MenuPosition as Pa, getMenuHiddenObservable as Da, ComponentManager as Gr, TextEditor as Bn, ILayoutService as $a, useScrollYOverContainer as Ma, RangeSelector as Na, IMenuService as ja, ISidebarService as La } from "@univerjs/ui";
9
9
  import { Observable as mt, merge as Mo, debounceTime as No } from "rxjs";
10
10
  import { debounceTime as jo, bufferTime as pr, filter as gr } from "rxjs/operators";
@@ -242,7 +242,7 @@ const ji = {
242
242
  return !1;
243
243
  const n = e.get(he), r = e.get(re), o = e.get(ue), i = e.get(qt), s = e.get(Gt), l = Te(r, t);
244
244
  if (!l) return !1;
245
- const { unitId: a, subUnitId: c } = l, u = ((S = s.getSelections()) == null ? void 0 : S.map((I) => I.range)) || [], h = n.getSubunitRules(a, c);
245
+ const { unitId: a, subUnitId: c } = l, u = ((S = s.getCurrentSelections()) == null ? void 0 : S.map((I) => I.range)) || [], h = n.getSubunitRules(a, c);
246
246
  if (!(h != null && h.length) || !u.length)
247
247
  return !1;
248
248
  const f = [], g = [];
@@ -346,7 +346,7 @@ const Fo = [Br.id, De.id, nt.id, Ye.id, Ln.id], Za = (e) => {
346
346
  })
347
347
  ).pipe(jo(16)).subscribe(() => {
348
348
  var S;
349
- const u = ((S = n.getSelections()) == null ? void 0 : S.map((I) => I.range)) || [], h = o.getCurrentUnitForType(G.UNIVER_SHEET);
349
+ const u = ((S = n.getCurrentSelections()) == null ? void 0 : S.map((I) => I.range)) || [], h = o.getCurrentUnitForType(G.UNIVER_SHEET);
350
350
  if (!h) return;
351
351
  const f = h.getActiveSheet();
352
352
  if (!f) return;
@@ -4577,7 +4577,7 @@ const Ld = (e) => {
4577
4577
  if (!H || !H.length)
4578
4578
  return [];
4579
4579
  if (m === "1") {
4580
- const J = o.getLast();
4580
+ const J = o.getCurrentLastSelection();
4581
4581
  if (!J)
4582
4582
  return [];
4583
4583
  const ie = J.range;
@@ -6415,12 +6415,12 @@ const Cp = /* @__PURE__ */ Kr(Sp), Zs = (e, t) => (bt[e] || [])[Number(t)] || ""
6415
6415
  }, Tp = (e) => {
6416
6416
  var w, p, x, R;
6417
6417
  const t = oe($e), n = oe(ue), r = oe(re), o = oe(he), i = oe(Gt), s = fi(r), l = hi(r), a = pn((p = (w = e.rule) == null ? void 0 : w.ranges) != null ? p : []), c = be(() => {
6418
- var E, $;
6418
+ var E, $, N;
6419
6419
  let y = (E = e.rule) == null ? void 0 : E.ranges;
6420
- return y != null && y.length || (y = ($ = i.getSelectionRanges()) != null ? $ : []), a.current = y, y != null && y.length ? y.map((N) => {
6421
- const W = Mi(N);
6422
- return W === "NaN" ? "" : W;
6423
- }).filter((N) => !!N).join(",") : "";
6420
+ return y != null && y.length || (y = (N = ($ = i.getCurrentSelections()) == null ? void 0 : $.map((W) => W.range)) != null ? N : []), a.current = y, y != null && y.length ? y.map((W) => {
6421
+ const b = Mi(W);
6422
+ return b === "NaN" ? "" : b;
6423
+ }).filter((W) => !!W).join(",") : "";
6424
6424
  }, [e.rule]), u = [
6425
6425
  { label: t.t("sheet.cf.ruleType.highlightCell"), value: "1" },
6426
6426
  { label: t.t("sheet.cf.panel.rankAndAverage"), value: "2" },
@@ -6596,14 +6596,15 @@ const Po = {
6596
6596
  id: "sheet.operation.open.conditional.formatting.panel",
6597
6597
  type: Re.OPERATION,
6598
6598
  handler: (e, t) => {
6599
- const n = e.get(Ut), r = e.get(Gt), o = e.get(ue), i = r.getSelectionRanges() || [];
6599
+ var l;
6600
+ const n = e.get(Ut), r = e.get(Gt), o = e.get(ue), i = ((l = r.getCurrentSelections()) == null ? void 0 : l.map((a) => a.range)) || [];
6600
6601
  switch (t.value) {
6601
6602
  case 3: {
6602
6603
  n.openPanel({ ...ft(), ranges: i });
6603
6604
  break;
6604
6605
  }
6605
6606
  case 4: {
6606
- const l = {
6607
+ const a = {
6607
6608
  ...ft,
6608
6609
  ranges: i,
6609
6610
  rule: {
@@ -6611,11 +6612,11 @@ const Po = {
6611
6612
  subType: j.rank
6612
6613
  }
6613
6614
  };
6614
- n.openPanel(l);
6615
+ n.openPanel(a);
6615
6616
  break;
6616
6617
  }
6617
6618
  case 5: {
6618
- const l = {
6619
+ const a = {
6619
6620
  ...ft,
6620
6621
  ranges: i,
6621
6622
  rule: {
@@ -6624,11 +6625,11 @@ const Po = {
6624
6625
  value: "="
6625
6626
  }
6626
6627
  };
6627
- n.openPanel(l);
6628
+ n.openPanel(a);
6628
6629
  break;
6629
6630
  }
6630
6631
  case 6: {
6631
- const l = {
6632
+ const a = {
6632
6633
  ...ft,
6633
6634
  ranges: i,
6634
6635
  rule: {
@@ -6636,11 +6637,11 @@ const Po = {
6636
6637
  config: []
6637
6638
  }
6638
6639
  };
6639
- n.openPanel(l);
6640
+ n.openPanel(a);
6640
6641
  break;
6641
6642
  }
6642
6643
  case 7: {
6643
- const l = {
6644
+ const a = {
6644
6645
  ...ft,
6645
6646
  ranges: i,
6646
6647
  rule: {
@@ -6648,11 +6649,11 @@ const Po = {
6648
6649
  isShowValue: !0
6649
6650
  }
6650
6651
  };
6651
- n.openPanel(l);
6652
+ n.openPanel(a);
6652
6653
  break;
6653
6654
  }
6654
6655
  case 8: {
6655
- const l = {
6656
+ const a = {
6656
6657
  ...ft,
6657
6658
  ranges: i,
6658
6659
  rule: {
@@ -6661,7 +6662,7 @@ const Po = {
6661
6662
  isShowValue: !0
6662
6663
  }
6663
6664
  };
6664
- n.openPanel(l);
6665
+ n.openPanel(a);
6665
6666
  break;
6666
6667
  }
6667
6668
  case 2: {
@@ -7229,39 +7230,40 @@ let jn = class extends rt {
7229
7230
  _init() {
7230
7231
  this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
7231
7232
  getMutations: (e) => {
7233
+ var o;
7232
7234
  const t = [], n = [], r = { redos: t, undos: n };
7233
7235
  if ([Ra.id, Ia.id].includes(e.id)) {
7234
- const o = this._selectionManagerService.getSelectionRanges();
7235
- if (!o)
7236
+ const i = (o = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : o.map((c) => c.range);
7237
+ if (!i)
7236
7238
  return r;
7237
- const i = this._univerInstanceService.getCurrentUnitForType(G.UNIVER_SHEET), s = i.getActiveSheet();
7238
- if (!s)
7239
+ const s = this._univerInstanceService.getCurrentUnitForType(G.UNIVER_SHEET), l = s.getActiveSheet();
7240
+ if (!l)
7239
7241
  return r;
7240
- const l = this._conditionalFormattingRuleModel.getSubunitRules(i.getUnitId(), s.getSheetId());
7241
- if (!l || !l.length)
7242
+ const a = this._conditionalFormattingRuleModel.getSubunitRules(s.getUnitId(), l.getSheetId());
7243
+ if (!a || !a.length)
7242
7244
  return r;
7243
- l.filter((a) => o.some((c) => a.ranges.some((u) => At.getIntersects(u, c)))).forEach((a) => {
7244
- const u = new Ta().add(...a.ranges).subtract(...o).merge();
7245
- if (u.length) {
7246
- const h = {
7245
+ a.filter((c) => i.some((u) => c.ranges.some((h) => At.getIntersects(h, u)))).forEach((c) => {
7246
+ const h = new Ta().add(...c.ranges).subtract(...i).merge();
7247
+ if (h.length) {
7248
+ const f = {
7247
7249
  id: nt.id,
7248
7250
  params: {
7249
- unitId: i.getUnitId(),
7250
- subUnitId: s.getSheetId(),
7251
- rule: { ...a, ranges: u }
7251
+ unitId: s.getUnitId(),
7252
+ subUnitId: l.getSheetId(),
7253
+ rule: { ...c, ranges: h }
7252
7254
  }
7253
- }, f = Bt(this._injector, h.params);
7254
- t.push(h), n.push(...f);
7255
+ }, g = Bt(this._injector, f.params);
7256
+ t.push(f), n.push(...g);
7255
7257
  } else {
7256
- const h = {
7258
+ const f = {
7257
7259
  id: Ye.id,
7258
7260
  params: {
7259
- unitId: i.getUnitId(),
7260
- subUnitId: s.getSheetId(),
7261
- cfId: a.cfId
7261
+ unitId: s.getUnitId(),
7262
+ subUnitId: l.getSheetId(),
7263
+ cfId: c.cfId
7262
7264
  }
7263
- }, f = It(this._injector, h.params);
7264
- t.push(h), n.push(...f);
7265
+ }, g = It(this._injector, f.params);
7266
+ t.push(f), n.push(...g);
7265
7267
  }
7266
7268
  });
7267
7269
  }
@@ -0,0 +1,158 @@
1
+ {
2
+ "sheet": {
3
+ "cf": {
4
+ "title": "Định dạng có điều kiện",
5
+ "menu": {
6
+ "manageConditionalFormatting": "Quản lý định dạng có điều kiện",
7
+ "createConditionalFormatting": "Tạo định dạng có điều kiện mới",
8
+ "clearRangeRules": "Xóa quy tắc cho vùng chọn",
9
+ "clearWorkSheetRules": "Xóa quy tắc cho toàn bộ bảng tính"
10
+ },
11
+ "form": {
12
+ "lessThan": "Giá trị phải nhỏ hơn {0}",
13
+ "lessThanOrEqual": "Giá trị phải nhỏ hơn hoặc bằng {0}",
14
+ "greaterThan": "Giá trị phải lớn hơn {0}",
15
+ "greaterThanOrEqual": "Giá trị phải lớn hơn hoặc bằng {0}",
16
+ "rangeSelector": "Chọn phạm vi hoặc nhập giá trị"
17
+ },
18
+ "iconSet": {
19
+ "direction": "Hướng",
20
+ "shape": "Hình dạng",
21
+ "mark": "Dấu",
22
+ "rank": "Hạng",
23
+ "rule": "Quy tắc",
24
+ "icon": "Biểu tượng",
25
+ "type": "Loại",
26
+ "value": "Giá trị",
27
+ "reverseIconOrder": "Đảo ngược thứ tự biểu tượng",
28
+ "and": "Và",
29
+ "when": "Khi giá trị",
30
+ "onlyShowIcon": "Chỉ hiển thị biểu tượng"
31
+ },
32
+ "symbol": {
33
+ "greaterThan": ">",
34
+ "greaterThanOrEqual": ">=",
35
+ "lessThan": "<",
36
+ "lessThanOrEqual": "<="
37
+ },
38
+ "panel": {
39
+ "createRule": "Tạo quy tắc mới",
40
+ "clear": "Xóa tất cả quy tắc",
41
+ "range": "Phạm vi áp dụng",
42
+ "styleType": "Loại kiểu",
43
+ "submit": "Xác nhận",
44
+ "cancel": "Hủy bỏ",
45
+ "rankAndAverage": "Đầu / Cuối / Giá trị trung bình",
46
+ "styleRule": "Quy tắc kiểu",
47
+ "isNotBottom": "Đầu",
48
+ "isBottom": "Cuối",
49
+ "greaterThanAverage": "Lớn hơn giá trị trung bình",
50
+ "lessThanAverage": "Nhỏ hơn giá trị trung bình",
51
+ "medianValue": "Giá trị trung vị",
52
+ "fillType": "Cách thức điền",
53
+ "pureColor": "Màu thuần",
54
+ "gradient": "Chuyển màu",
55
+ "colorSet": "Thiết lập màu sắc",
56
+ "positive": "Giá trị dương",
57
+ "native": "Giá trị âm",
58
+ "workSheet": "Toàn bộ bảng tính",
59
+ "selectedRange": "Vùng chọn",
60
+ "managerRuleSelect": "Quản lý quy tắc của {0}",
61
+ "onlyShowDataBar": "Chỉ hiển thị thanh dữ liệu"
62
+ },
63
+ "preview": {
64
+ "describe": {
65
+ "beginsWith": "Bắt đầu với {0}",
66
+ "endsWith": "Kết thúc với {0}",
67
+ "containsText": "Chứa văn bản {0}",
68
+ "notContainsText": "Không chứa văn bản {0}",
69
+ "equal": "Bằng {0}",
70
+ "notEqual": "Không bằng {0}",
71
+ "containsBlanks": "Rỗng",
72
+ "notContainsBlanks": "Không rỗng",
73
+ "containsErrors": "Lỗi",
74
+ "notContainsErrors": "Không lỗi",
75
+ "greaterThan": "Lớn hơn {0}",
76
+ "greaterThanOrEqual": "Lớn hơn hoặc bằng {0}",
77
+ "lessThan": "Nhỏ hơn {0}",
78
+ "lessThanOrEqual": "Nhỏ hơn hoặc bằng {0}",
79
+ "notBetween": "Không nằm giữa {0} và {1}",
80
+ "between": "Nằm giữa {0} và {1}",
81
+ "yesterday": "Hôm qua",
82
+ "tomorrow": "Ngày mai",
83
+ "last7Days": "7 ngày qua",
84
+ "thisMonth": "Tháng này",
85
+ "lastMonth": "Tháng trước",
86
+ "nextMonth": "Tháng sau",
87
+ "thisWeek": "Tuần này",
88
+ "lastWeek": "Tuần trước",
89
+ "nextWeek": "Tuần sau",
90
+ "today": "Hôm nay",
91
+ "topN": "Top {0}",
92
+ "bottomN": "Cuối {0}",
93
+ "topNPercent": "Top {0}%",
94
+ "bottomNPercent": "Cuối {0}%"
95
+ }
96
+ },
97
+ "operator": {
98
+ "beginsWith": "Bắt đầu với",
99
+ "endsWith": "Kết thúc với",
100
+ "containsText": "Chứa văn bản",
101
+ "notContainsText": "Không chứa văn bản",
102
+ "equal": "Bằng",
103
+ "notEqual": "Không bằng",
104
+ "containsBlanks": "Rỗng",
105
+ "notContainsBlanks": "Không rỗng",
106
+ "containsErrors": "Lỗi",
107
+ "notContainsErrors": "Không lỗi",
108
+ "greaterThan": "Lớn hơn",
109
+ "greaterThanOrEqual": "Lớn hơn hoặc bằng",
110
+ "lessThan": "Nhỏ hơn",
111
+ "lessThanOrEqual": "Nhỏ hơn hoặc bằng",
112
+ "notBetween": "Không nằm giữa",
113
+ "between": "Nằm giữa",
114
+ "yesterday": "Hôm qua",
115
+ "tomorrow": "Ngày mai",
116
+ "last7Days": "7 ngày qua",
117
+ "thisMonth": "Tháng này",
118
+ "lastMonth": "Tháng trước",
119
+ "nextMonth": "Tháng sau",
120
+ "thisWeek": "Tuần này",
121
+ "lastWeek": "Tuần trước",
122
+ "nextWeek": "Tuần sau",
123
+ "today": "Hôm nay"
124
+ },
125
+ "ruleType": {
126
+ "highlightCell": "Làm nổi bật ô",
127
+ "dataBar": "Thanh dữ liệu",
128
+ "colorScale": "Thang màu",
129
+ "formula": "Công thức tùy chỉnh",
130
+ "iconSet": "Tập hợp biểu tượng",
131
+ "duplicateValues": "Giá trị trùng lặp",
132
+ "uniqueValues": "Giá trị duy nhất"
133
+ },
134
+ "subRuleType": {
135
+ "uniqueValues": "Giá trị duy nhất",
136
+ "duplicateValues": "Giá trị trùng lặp",
137
+ "rank": "Đầu cuối",
138
+ "text": "Văn bản",
139
+ "timePeriod": "Thời gian",
140
+ "number": "Giá trị số",
141
+ "average": "Giá trị trung bình"
142
+ },
143
+ "valueType": {
144
+ "num": "Giá trị số",
145
+ "min": "Giá trị nhỏ nhất",
146
+ "max": "Giá trị lớn nhất",
147
+ "percent": "Phần trăm",
148
+ "percentile": "Phần trăm điểm",
149
+ "formula": "Công thức",
150
+ "none": "Không"
151
+ },
152
+ "errorMessage": {
153
+ "notBlank": "Điều kiện không được để trống",
154
+ "formulaError": "Lỗi công thức"
155
+ }
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,158 @@
1
+ {
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
+ "formulaError": "公式錯誤"
155
+ }
156
+ }
157
+ }
158
+ }
@@ -1,5 +1,5 @@
1
1
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
2
+ import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
3
3
  import { Injector } from '@wendellhu/redi';
4
4
  import { ConditionalFormattingRuleModel } from '@univerjs/sheets-conditional-formatting';
5
5
 
@@ -9,6 +9,6 @@ export declare class ConditionalFormattingClearController extends Disposable {
9
9
  private _sheetInterceptorService;
10
10
  private _selectionManagerService;
11
11
  private _conditionalFormattingRuleModel;
12
- constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel);
12
+ constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _conditionalFormattingRuleModel: ConditionalFormattingRuleModel);
13
13
  private _init;
14
14
  }
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;