@univerjs/sheets-conditional-formatting-ui 0.23.0 → 0.24.0-insiders.20260528-29f582d

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 (90) hide show
  1. package/lib/cjs/index.js +123 -123
  2. package/lib/cjs/locale/ar-SA.js +159 -0
  3. package/lib/cjs/locale/ca-ES.js +4 -3
  4. package/lib/cjs/locale/de-DE.js +159 -0
  5. package/lib/cjs/locale/en-US.js +4 -3
  6. package/lib/cjs/locale/es-ES.js +4 -3
  7. package/lib/cjs/locale/fa-IR.js +4 -3
  8. package/lib/cjs/locale/fr-FR.js +4 -3
  9. package/lib/cjs/locale/id-ID.js +159 -0
  10. package/lib/cjs/locale/it-IT.js +159 -0
  11. package/lib/cjs/locale/ja-JP.js +4 -3
  12. package/lib/cjs/locale/ko-KR.js +4 -3
  13. package/lib/cjs/locale/pl-PL.js +159 -0
  14. package/lib/cjs/locale/pt-BR.js +159 -0
  15. package/lib/cjs/locale/ru-RU.js +4 -3
  16. package/lib/cjs/locale/sk-SK.js +4 -3
  17. package/lib/cjs/locale/vi-VN.js +4 -3
  18. package/lib/cjs/locale/zh-CN.js +4 -3
  19. package/lib/cjs/locale/zh-HK.js +159 -0
  20. package/lib/cjs/locale/zh-TW.js +4 -3
  21. package/lib/es/index.js +123 -123
  22. package/lib/es/locale/ar-SA.js +158 -0
  23. package/lib/es/locale/ca-ES.js +4 -3
  24. package/lib/es/locale/de-DE.js +158 -0
  25. package/lib/es/locale/en-US.js +4 -3
  26. package/lib/es/locale/es-ES.js +4 -3
  27. package/lib/es/locale/fa-IR.js +4 -3
  28. package/lib/es/locale/fr-FR.js +4 -3
  29. package/lib/es/locale/id-ID.js +158 -0
  30. package/lib/es/locale/it-IT.js +158 -0
  31. package/lib/es/locale/ja-JP.js +4 -3
  32. package/lib/es/locale/ko-KR.js +4 -3
  33. package/lib/es/locale/pl-PL.js +158 -0
  34. package/lib/es/locale/pt-BR.js +158 -0
  35. package/lib/es/locale/ru-RU.js +4 -3
  36. package/lib/es/locale/sk-SK.js +4 -3
  37. package/lib/es/locale/vi-VN.js +4 -3
  38. package/lib/es/locale/zh-CN.js +4 -3
  39. package/lib/es/locale/zh-HK.js +158 -0
  40. package/lib/es/locale/zh-TW.js +4 -3
  41. package/lib/index.js +123 -123
  42. package/lib/locale/ar-SA.js +158 -0
  43. package/lib/locale/ca-ES.js +4 -3
  44. package/lib/locale/de-DE.js +158 -0
  45. package/lib/locale/en-US.js +4 -3
  46. package/lib/locale/es-ES.js +4 -3
  47. package/lib/locale/fa-IR.js +4 -3
  48. package/lib/locale/fr-FR.js +4 -3
  49. package/lib/locale/id-ID.js +158 -0
  50. package/lib/locale/it-IT.js +158 -0
  51. package/lib/locale/ja-JP.js +4 -3
  52. package/lib/locale/ko-KR.js +4 -3
  53. package/lib/locale/pl-PL.js +158 -0
  54. package/lib/locale/pt-BR.js +158 -0
  55. package/lib/locale/ru-RU.js +4 -3
  56. package/lib/locale/sk-SK.js +4 -3
  57. package/lib/locale/vi-VN.js +4 -3
  58. package/lib/locale/zh-CN.js +4 -3
  59. package/lib/locale/zh-HK.js +158 -0
  60. package/lib/locale/zh-TW.js +4 -3
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +130 -127
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/umd/index.js +3 -3
  70. package/lib/umd/locale/ar-SA.js +1 -0
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -0
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -0
  78. package/lib/umd/locale/it-IT.js +1 -0
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -0
  82. package/lib/umd/locale/pt-BR.js +1 -0
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -0
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +13 -13
  90. package/LICENSE +0 -176
package/lib/cjs/index.js CHANGED
@@ -468,15 +468,15 @@ const previewClassName = (0, _univerjs_design.clsx)("univer-mt-5 univer-px-1 uni
468
468
  //#endregion
469
469
  //#region src/components/panel/rule-edit/ColorScale.tsx
470
470
  const createOptionItem$2 = (text, localeService) => ({
471
- label: localeService.t(`sheet.cf.valueType.${text}`),
471
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${text}`),
472
472
  value: text
473
473
  });
474
474
  const TextInput$1 = (props) => {
475
475
  var _getActiveSheet;
476
476
  const { type, className, onChange, id, value } = props;
477
477
  const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
478
- const unitId = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
479
- const subUnitId = (_getActiveSheet = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
478
+ const unitId = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
479
+ const subUnitId = (_getActiveSheet = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
480
480
  const formulaInitValue = (0, react.useMemo)(() => {
481
481
  return String(value).startsWith("=") ? String(value) : "=";
482
482
  }, [value]);
@@ -661,7 +661,7 @@ const ColorScaleStyleEditor = (props) => {
661
661
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
662
662
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
663
663
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
664
- children: localeService.t("sheet.cf.panel.styleRule")
664
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
665
665
  }),
666
666
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
667
667
  className: previewClassName,
@@ -679,7 +679,7 @@ const ColorScaleStyleEditor = (props) => {
679
679
  }),
680
680
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
681
681
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
682
- children: localeService.t("sheet.cf.valueType.min")
682
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.min")
683
683
  }),
684
684
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
685
685
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -747,7 +747,7 @@ const ColorScaleStyleEditor = (props) => {
747
747
  }),
748
748
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
749
749
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
750
- children: localeService.t("sheet.cf.panel.medianValue")
750
+ children: localeService.t("sheets-conditional-formatting-ui.panel.medianValue")
751
751
  }),
752
752
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
753
753
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -815,7 +815,7 @@ const ColorScaleStyleEditor = (props) => {
815
815
  }),
816
816
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
817
817
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
818
- children: localeService.t("sheet.cf.valueType.max")
818
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.max")
819
819
  }),
820
820
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
821
821
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -887,7 +887,7 @@ const ColorScaleStyleEditor = (props) => {
887
887
  //#endregion
888
888
  //#region src/components/panel/rule-edit/DataBar.tsx
889
889
  const createOptionItem$1 = (text, localeService) => ({
890
- label: localeService.t(`sheet.cf.valueType.${text}`),
890
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${text}`),
891
891
  value: text
892
892
  });
893
893
  const InputText = (props) => {
@@ -1081,7 +1081,7 @@ const DataBarStyleEditor = (props) => {
1081
1081
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
1082
1082
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1083
1083
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1084
- children: localeService.t("sheet.cf.panel.styleRule")
1084
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1085
1085
  }),
1086
1086
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1087
1087
  className: previewClassName,
@@ -1098,7 +1098,7 @@ const DataBarStyleEditor = (props) => {
1098
1098
  }),
1099
1099
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1100
1100
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1101
- children: localeService.t("sheet.cf.panel.fillType")
1101
+ children: localeService.t("sheets-conditional-formatting-ui.panel.fillType")
1102
1102
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1103
1103
  className: "univer-ml-1 univer-mt-3 univer-flex univer-items-center",
1104
1104
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.RadioGroup, {
@@ -1120,13 +1120,13 @@ const DataBarStyleEditor = (props) => {
1120
1120
  value: "0",
1121
1121
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1122
1122
  className: "univer-text-xs",
1123
- children: localeService.t("sheet.cf.panel.pureColor")
1123
+ children: localeService.t("sheets-conditional-formatting-ui.panel.pureColor")
1124
1124
  })
1125
1125
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Radio, {
1126
1126
  value: "1",
1127
1127
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1128
1128
  className: "univer-text-xs",
1129
- children: localeService.t("sheet.cf.panel.gradient")
1129
+ children: localeService.t("sheets-conditional-formatting-ui.panel.gradient")
1130
1130
  })
1131
1131
  })]
1132
1132
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -1146,19 +1146,19 @@ const DataBarStyleEditor = (props) => {
1146
1146
  isShowValue: !v
1147
1147
  });
1148
1148
  }
1149
- }), localeService.t("sheet.cf.panel.onlyShowDataBar")]
1149
+ }), localeService.t("sheets-conditional-formatting-ui.panel.onlyShowDataBar")]
1150
1150
  })]
1151
1151
  })] }),
1152
1152
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1153
1153
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1154
- children: localeService.t("sheet.cf.panel.colorSet")
1154
+ children: localeService.t("sheets-conditional-formatting-ui.panel.colorSet")
1155
1155
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1156
1156
  className: "univer-ml-1 univer-mt-3 univer-flex univer-items-center",
1157
1157
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1158
1158
  className: "univer-flex univer-items-center",
1159
1159
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1160
1160
  className: "univer-text-xs",
1161
- children: localeService.t("sheet.cf.panel.native")
1161
+ children: localeService.t("sheets-conditional-formatting-ui.panel.native")
1162
1162
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ColorPicker, {
1163
1163
  color: nativeColor,
1164
1164
  onChange: handleNativeColorChange
@@ -1167,7 +1167,7 @@ const DataBarStyleEditor = (props) => {
1167
1167
  className: "univer-ml-3 univer-flex univer-items-center",
1168
1168
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1169
1169
  className: "univer-text-xs",
1170
- children: localeService.t("sheet.cf.panel.positive")
1170
+ children: localeService.t("sheets-conditional-formatting-ui.panel.positive")
1171
1171
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ColorPicker, {
1172
1172
  color: positiveColor,
1173
1173
  onChange: handlePositiveColorChange
@@ -1177,7 +1177,7 @@ const DataBarStyleEditor = (props) => {
1177
1177
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
1178
1178
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1179
1179
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1180
- children: localeService.t("sheet.cf.valueType.min")
1180
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.min")
1181
1181
  }),
1182
1182
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1183
1183
  className: "univer-mt-3 univer-flex univer-items-center",
@@ -1223,7 +1223,7 @@ const DataBarStyleEditor = (props) => {
1223
1223
  }),
1224
1224
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1225
1225
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1226
- children: localeService.t("sheet.cf.valueType.max")
1226
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.max")
1227
1227
  }),
1228
1228
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1229
1229
  className: "univer-mt-3 univer-flex univer-items-center",
@@ -1372,7 +1372,7 @@ const FormulaStyleEditor = (props) => {
1372
1372
  var _props$rule;
1373
1373
  const { onChange, interceptorManager } = props;
1374
1374
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
1375
- const workbook = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService).getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
1375
+ const workbook = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService).getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
1376
1376
  const worksheet = workbook.getActiveSheet();
1377
1377
  const rule = ((_props$rule = props.rule) === null || _props$rule === void 0 ? void 0 : _props$rule.type) === _univerjs_sheets_conditional_formatting.CFRuleType.highlightCell ? props.rule : void 0;
1378
1378
  const divEleRef = (0, react.useRef)(null);
@@ -1407,7 +1407,7 @@ const FormulaStyleEditor = (props) => {
1407
1407
  (0, react.useEffect)(() => {
1408
1408
  return interceptorManager.intercept(interceptorManager.getInterceptPoints().beforeSubmit, { handler: (v, _c, next) => {
1409
1409
  if (formulaError || formula.length === 1 || !formula.startsWith("=")) {
1410
- setFormulaError(localeService.t("sheet.cf.errorMessage.formulaError"));
1410
+ setFormulaError(localeService.t("sheets-conditional-formatting-ui.errorMessage.formulaError"));
1411
1411
  return false;
1412
1412
  }
1413
1413
  return next(v);
@@ -1425,7 +1425,7 @@ const FormulaStyleEditor = (props) => {
1425
1425
  children: [
1426
1426
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1427
1427
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1428
- children: localeService.t("sheet.cf.panel.styleRule")
1428
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1429
1429
  }),
1430
1430
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1431
1431
  className: "univer-mt-3",
@@ -1448,7 +1448,7 @@ const FormulaStyleEditor = (props) => {
1448
1448
  });
1449
1449
  },
1450
1450
  onVerify: (result, formula) => {
1451
- if (!result || formula.length === 1) setFormulaError(localeService.t("sheet.cf.errorMessage.formulaError"));
1451
+ if (!result || formula.length === 1) setFormulaError(localeService.t("sheets-conditional-formatting-ui.errorMessage.formulaError"));
1452
1452
  else setFormulaError(void 0);
1453
1453
  }
1454
1454
  })
@@ -1490,10 +1490,10 @@ const WrapperError = (props) => {
1490
1490
  //#endregion
1491
1491
  //#region src/components/panel/rule-edit/HighlightCell.tsx
1492
1492
  const createOptionItem = (text, localeService) => ({
1493
- label: localeService.t(`sheet.cf.operator.${text}`),
1493
+ label: localeService.t(`sheets-conditional-formatting-ui.operator.${text}`),
1494
1494
  value: text
1495
1495
  });
1496
- const HighlightCellInput = (props) => {
1496
+ function HighlightCellInput(props) {
1497
1497
  const { type, operator, onChange, value, interceptorManager } = props;
1498
1498
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
1499
1499
  const [inputNumberValue, setInputNumberValue] = (0, react.useState)(() => typeof value === "number" ? value : 0);
@@ -1541,7 +1541,7 @@ const HighlightCellInput = (props) => {
1541
1541
  _univerjs_sheets_conditional_formatting.CFTextOperator.equal
1542
1542
  ].includes(operator)) {
1543
1543
  if (!inputTextValue) {
1544
- setTextError(localeService.t("sheet.cf.errorMessage.notBlank"));
1544
+ setTextError(localeService.t("sheets-conditional-formatting-ui.errorMessage.notBlank"));
1545
1545
  return false;
1546
1546
  }
1547
1547
  return next(v);
@@ -1650,7 +1650,7 @@ const HighlightCellInput = (props) => {
1650
1650
  }
1651
1651
  }
1652
1652
  return null;
1653
- };
1653
+ }
1654
1654
  const getOperatorOptions = (type, localeService) => {
1655
1655
  switch (type) {
1656
1656
  case _univerjs_sheets_conditional_formatting.CFSubRuleType.text: return [
@@ -1702,23 +1702,23 @@ const HighlightCellStyleEditor = (props) => {
1702
1702
  const typeOptions = [
1703
1703
  {
1704
1704
  value: _univerjs_sheets_conditional_formatting.CFSubRuleType.text,
1705
- label: localeService.t("sheet.cf.subRuleType.text")
1705
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.text")
1706
1706
  },
1707
1707
  {
1708
1708
  value: _univerjs_sheets_conditional_formatting.CFSubRuleType.number,
1709
- label: localeService.t("sheet.cf.subRuleType.number")
1709
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.number")
1710
1710
  },
1711
1711
  {
1712
1712
  value: _univerjs_sheets_conditional_formatting.CFSubRuleType.timePeriod,
1713
- label: localeService.t("sheet.cf.subRuleType.timePeriod")
1713
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.timePeriod")
1714
1714
  },
1715
1715
  {
1716
1716
  value: _univerjs_sheets_conditional_formatting.CFSubRuleType.duplicateValues,
1717
- label: localeService.t("sheet.cf.subRuleType.duplicateValues")
1717
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.duplicateValues")
1718
1718
  },
1719
1719
  {
1720
1720
  value: _univerjs_sheets_conditional_formatting.CFSubRuleType.uniqueValues,
1721
- label: localeService.t("sheet.cf.subRuleType.uniqueValues")
1721
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.uniqueValues")
1722
1722
  }
1723
1723
  ];
1724
1724
  const operatorOptions = (0, react.useMemo)(() => getOperatorOptions(subType, localeService), [subType]);
@@ -1833,7 +1833,7 @@ const HighlightCellStyleEditor = (props) => {
1833
1833
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
1834
1834
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1835
1835
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1836
- children: localeService.t("sheet.cf.panel.styleRule")
1836
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1837
1837
  }),
1838
1838
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1839
1839
  className: "univer-flex univer-justify-between univer-gap-4",
@@ -1881,8 +1881,8 @@ const TextInput = (props) => {
1881
1881
  var _getActiveSheet;
1882
1882
  const { error, type, onChange } = props;
1883
1883
  const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
1884
- const unitId = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
1885
- const subUnitId = (_getActiveSheet = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
1884
+ const unitId = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
1885
+ const subUnitId = (_getActiveSheet = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
1886
1886
  const formulaEditorRef = (0, react.useRef)(null);
1887
1887
  const [isFocusFormulaEditor, setIsFocusFormulaEditor] = (0, react.useState)(false);
1888
1888
  (0, _univerjs_ui.useSidebarClick)((e) => {
@@ -2009,27 +2009,27 @@ const IconSetRuleEdit = (props) => {
2009
2009
  const { onChange, configList, errorMap = {} } = props;
2010
2010
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
2011
2011
  const options = [{
2012
- label: localeService.t(`sheet.cf.symbol.${_univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThan}`),
2012
+ label: localeService.t(`sheets-conditional-formatting-ui.symbol.${_univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThan}`),
2013
2013
  value: _univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThan
2014
2014
  }, {
2015
- label: localeService.t(`sheet.cf.symbol.${_univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThanOrEqual}`),
2015
+ label: localeService.t(`sheets-conditional-formatting-ui.symbol.${_univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThanOrEqual}`),
2016
2016
  value: _univerjs_sheets_conditional_formatting.CFNumberOperator.greaterThanOrEqual
2017
2017
  }];
2018
2018
  const valueTypeOptions = [
2019
2019
  {
2020
- label: localeService.t(`sheet.cf.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.num}`),
2020
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.num}`),
2021
2021
  value: _univerjs_sheets_conditional_formatting.CFValueType.num
2022
2022
  },
2023
2023
  {
2024
- label: localeService.t(`sheet.cf.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.percent}`),
2024
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.percent}`),
2025
2025
  value: _univerjs_sheets_conditional_formatting.CFValueType.percent
2026
2026
  },
2027
2027
  {
2028
- label: localeService.t(`sheet.cf.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.percentile}`),
2028
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.percentile}`),
2029
2029
  value: _univerjs_sheets_conditional_formatting.CFValueType.percentile
2030
2030
  },
2031
2031
  {
2032
- label: localeService.t(`sheet.cf.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.formula}`),
2032
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${_univerjs_sheets_conditional_formatting.CFValueType.formula}`),
2033
2033
  value: _univerjs_sheets_conditional_formatting.CFValueType.formula
2034
2034
  }
2035
2035
  ];
@@ -2060,7 +2060,7 @@ const IconSetRuleEdit = (props) => {
2060
2060
  const isEnd = index === configList.length - 1;
2061
2061
  const isFirst = index === 0;
2062
2062
  const preItem = configList[index - 1];
2063
- const lessThanText = (preItem === null || preItem === void 0 ? void 0 : preItem.value.type) === _univerjs_sheets_conditional_formatting.CFValueType.formula ? localeService.t("sheet.cf.valueType.formula") : preItem === null || preItem === void 0 ? void 0 : preItem.value.value;
2063
+ const lessThanText = (preItem === null || preItem === void 0 ? void 0 : preItem.value.type) === _univerjs_sheets_conditional_formatting.CFValueType.formula ? localeService.t("sheets-conditional-formatting-ui.valueType.formula") : preItem === null || preItem === void 0 ? void 0 : preItem.value.value;
2064
2064
  const handleIconClick = (iconType, iconId) => {
2065
2065
  const value = {
2066
2066
  ...item,
@@ -2076,16 +2076,16 @@ const IconSetRuleEdit = (props) => {
2076
2076
  className: "univer-mt-3 univer-flex univer-items-center univer-justify-between univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2077
2077
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2078
2078
  className: "univer-w-[45%]",
2079
- children: [localeService.t("sheet.cf.iconSet.icon"), index + 1]
2079
+ children: [localeService.t("sheets-conditional-formatting-ui.iconSet.icon"), index + 1]
2080
2080
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2081
2081
  className: "univer-w-[45%]",
2082
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [!isFirst && !isEnd && localeService.t("sheet.cf.iconSet.rule"), !isFirst && !isEnd && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2082
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [!isFirst && !isEnd && localeService.t("sheets-conditional-formatting-ui.iconSet.rule"), !isFirst && !isEnd && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2083
2083
  className: "univer-font-medium univer-text-gray-600 dark:!univer-text-gray-200",
2084
2084
  children: [
2085
- localeService.t("sheet.cf.iconSet.when"),
2086
- localeService.t(`sheet.cf.symbol.${(0, _univerjs_sheets_conditional_formatting.getOppositeOperator)(preItem.operator)}`),
2085
+ localeService.t("sheets-conditional-formatting-ui.iconSet.when"),
2086
+ localeService.t(`sheets-conditional-formatting-ui.symbol.${(0, _univerjs_sheets_conditional_formatting.getOppositeOperator)(preItem.operator)}`),
2087
2087
  lessThanText,
2088
- isEnd ? "" : ` ${localeService.t("sheet.cf.iconSet.and")} `
2088
+ isEnd ? "" : ` ${localeService.t("sheets-conditional-formatting-ui.iconSet.and")} `
2089
2089
  ]
2090
2090
  })] })
2091
2091
  })]
@@ -2120,20 +2120,20 @@ const IconSetRuleEdit = (props) => {
2120
2120
  }
2121
2121
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2122
2122
  className: "univer-mt-0 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2123
- children: [localeService.t("sheet.cf.iconSet.rule"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2123
+ children: [localeService.t("sheets-conditional-formatting-ui.iconSet.rule"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2124
2124
  className: "univer-font-medium",
2125
2125
  children: [
2126
- localeService.t("sheet.cf.iconSet.when"),
2127
- localeService.t(`sheet.cf.symbol.${(0, _univerjs_sheets_conditional_formatting.getOppositeOperator)(preItem.operator)}`),
2126
+ localeService.t("sheets-conditional-formatting-ui.iconSet.when"),
2127
+ localeService.t(`sheets-conditional-formatting-ui.symbol.${(0, _univerjs_sheets_conditional_formatting.getOppositeOperator)(preItem.operator)}`),
2128
2128
  lessThanText,
2129
- isEnd ? "" : ` ${localeService.t("sheet.cf.iconSet.and")} `
2129
+ isEnd ? "" : ` ${localeService.t("sheets-conditional-formatting-ui.iconSet.and")} `
2130
2130
  ]
2131
2131
  })]
2132
2132
  })]
2133
2133
  }),
2134
2134
  !isEnd ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2135
2135
  className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2136
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("sheet.cf.iconSet.type") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("sheet.cf.iconSet.value") })]
2136
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("sheets-conditional-formatting-ui.iconSet.type") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: localeService.t("sheets-conditional-formatting-ui.iconSet.value") })]
2137
2137
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2138
2138
  className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4",
2139
2139
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
@@ -2233,7 +2233,7 @@ const IconSet = (props) => {
2233
2233
  if (!(0, _univerjs_sheets_conditional_formatting.compareWithNumber)({
2234
2234
  operator: preOperator,
2235
2235
  value: preItem.value.value
2236
- }, item.value.value)) result[index] = `${localeService.t(`sheet.cf.form.${preOperator}`, String(preItem.value.value))} `;
2236
+ }, item.value.value)) result[index] = `${localeService.t(`sheets-conditional-formatting-ui.form.${preOperator}`, String(preItem.value.value))} `;
2237
2237
  });
2238
2238
  return result;
2239
2239
  }
@@ -2297,7 +2297,7 @@ const IconSet = (props) => {
2297
2297
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
2298
2298
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2299
2299
  className: "univer-mt-4 univer-text-sm univer-text-gray-600",
2300
- children: localeService.t("sheet.cf.panel.styleRule")
2300
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
2301
2301
  }),
2302
2302
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2303
2303
  className: "univer-mt-3",
@@ -2322,7 +2322,7 @@ const IconSet = (props) => {
2322
2322
  className: "univer-mt-3 univer-flex univer-items-center univer-text-xs",
2323
2323
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2324
2324
  className: "univer-flex univer-items-center univer-text-xs",
2325
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, { onChange: reverseIcon }), localeService.t("sheet.cf.iconSet.reverseIconOrder")]
2325
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, { onChange: reverseIcon }), localeService.t("sheets-conditional-formatting-ui.iconSet.reverseIconOrder")]
2326
2326
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2327
2327
  className: "univer-ml-6 univer-flex univer-items-center univer-text-xs",
2328
2328
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
@@ -2330,7 +2330,7 @@ const IconSet = (props) => {
2330
2330
  onChange: (v) => {
2331
2331
  setIsShowValue(!v);
2332
2332
  }
2333
- }), localeService.t("sheet.cf.iconSet.onlyShowIcon")]
2333
+ }), localeService.t("sheets-conditional-formatting-ui.iconSet.onlyShowIcon")]
2334
2334
  })]
2335
2335
  }),
2336
2336
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSetRuleEdit, {
@@ -2350,19 +2350,19 @@ const RankStyleEditor = (props) => {
2350
2350
  const rule = ((_props$rule = props.rule) === null || _props$rule === void 0 ? void 0 : _props$rule.type) === _univerjs_sheets_conditional_formatting.CFRuleType.highlightCell ? props.rule : void 0;
2351
2351
  const options = [
2352
2352
  {
2353
- label: localeService.t("sheet.cf.panel.isNotBottom"),
2353
+ label: localeService.t("sheets-conditional-formatting-ui.panel.isNotBottom"),
2354
2354
  value: "isNotBottom"
2355
2355
  },
2356
2356
  {
2357
- label: localeService.t("sheet.cf.panel.isBottom"),
2357
+ label: localeService.t("sheets-conditional-formatting-ui.panel.isBottom"),
2358
2358
  value: "isBottom"
2359
2359
  },
2360
2360
  {
2361
- label: localeService.t("sheet.cf.panel.greaterThanAverage"),
2361
+ label: localeService.t("sheets-conditional-formatting-ui.panel.greaterThanAverage"),
2362
2362
  value: "greaterThanAverage"
2363
2363
  },
2364
2364
  {
2365
- label: localeService.t("sheet.cf.panel.lessThanAverage"),
2365
+ label: localeService.t("sheets-conditional-formatting-ui.panel.lessThanAverage"),
2366
2366
  value: "lessThanAverage"
2367
2367
  }
2368
2368
  ];
@@ -2458,7 +2458,7 @@ const RankStyleEditor = (props) => {
2458
2458
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
2459
2459
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2460
2460
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2461
- children: localeService.t("sheet.cf.panel.styleRule")
2461
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
2462
2462
  }),
2463
2463
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2464
2464
  className: "univer-mt-3 univer-w-full",
@@ -2503,7 +2503,7 @@ const RankStyleEditor = (props) => {
2503
2503
  style
2504
2504
  });
2505
2505
  }
2506
- }), localeService.t("sheet.cf.valueType.percent")]
2506
+ }), localeService.t("sheets-conditional-formatting-ui.valueType.percent")]
2507
2507
  })]
2508
2508
  }),
2509
2509
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -2538,10 +2538,10 @@ const submit = (0, _univerjs_core.createInterceptorKey)("submit");
2538
2538
 
2539
2539
  //#endregion
2540
2540
  //#region src/components/panel/rule-edit/index.tsx
2541
- const getUnitId = (univerInstanceService) => univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
2541
+ const getUnitId = (univerInstanceService) => univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
2542
2542
  const getSubUnitId = (univerInstanceService) => {
2543
2543
  var _getActiveSheet;
2544
- return (_getActiveSheet = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
2544
+ return (_getActiveSheet = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
2545
2545
  };
2546
2546
  const RuleEdit = (props) => {
2547
2547
  var _props$rule$ranges, _props$rule, _props$rule5;
@@ -2570,27 +2570,27 @@ const RuleEdit = (props) => {
2570
2570
  }, [props.rule]);
2571
2571
  const options = [
2572
2572
  {
2573
- label: localeService.t("sheet.cf.ruleType.highlightCell"),
2573
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.highlightCell"),
2574
2574
  value: "1"
2575
2575
  },
2576
2576
  {
2577
- label: localeService.t("sheet.cf.panel.rankAndAverage"),
2577
+ label: localeService.t("sheets-conditional-formatting-ui.panel.rankAndAverage"),
2578
2578
  value: "2"
2579
2579
  },
2580
2580
  {
2581
- label: localeService.t("sheet.cf.ruleType.dataBar"),
2581
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.dataBar"),
2582
2582
  value: "3"
2583
2583
  },
2584
2584
  {
2585
- label: localeService.t("sheet.cf.ruleType.colorScale"),
2585
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.colorScale"),
2586
2586
  value: "4"
2587
2587
  },
2588
2588
  {
2589
- label: localeService.t("sheet.cf.ruleType.formula"),
2589
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.formula"),
2590
2590
  value: "5"
2591
2591
  },
2592
2592
  {
2593
- label: localeService.t("sheet.cf.ruleType.iconSet"),
2593
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.iconSet"),
2594
2594
  value: "6"
2595
2595
  }
2596
2596
  ];
@@ -2656,7 +2656,7 @@ const RuleEdit = (props) => {
2656
2656
  const handleSubmit = () => {
2657
2657
  if (errorText) return;
2658
2658
  const getRanges = () => {
2659
- const worksheet = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet();
2659
+ const worksheet = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet();
2660
2660
  if (!worksheet) throw new Error("No active sheet found");
2661
2661
  return rangeResult.current.map((range) => (0, _univerjs_sheets.setEndForRange)(range, worksheet.getRowCount(), worksheet.getColumnCount())).filter((range) => !(Number.isNaN(range.startRow) || Number.isNaN(range.startColumn)));
2662
2662
  };
@@ -2701,14 +2701,14 @@ const RuleEdit = (props) => {
2701
2701
  props.onCancel();
2702
2702
  };
2703
2703
  const handleVerify = (v, rangeText) => {
2704
- if (v) if (rangeText.length < 1) setErrorText(localeService.t("sheet.cf.errorMessage.rangeError"));
2704
+ if (v) if (rangeText.length < 1) setErrorText(localeService.t("sheets-conditional-formatting-ui.errorMessage.rangeError"));
2705
2705
  else setErrorText(void 0);
2706
- else setErrorText(localeService.t("sheet.cf.errorMessage.rangeError"));
2706
+ else setErrorText(localeService.t("sheets-conditional-formatting-ui.errorMessage.rangeError"));
2707
2707
  };
2708
2708
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
2709
2709
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2710
2710
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2711
- children: localeService.t("sheet.cf.panel.range")
2711
+ children: localeService.t("sheets-conditional-formatting-ui.panel.range")
2712
2712
  }),
2713
2713
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2714
2714
  className: "univer-mt-4",
@@ -2725,7 +2725,7 @@ const RuleEdit = (props) => {
2725
2725
  }),
2726
2726
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2727
2727
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2728
- children: localeService.t("sheet.cf.panel.styleType")
2728
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleType")
2729
2729
  }),
2730
2730
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
2731
2731
  className: "univer-mt-4 univer-w-full",
@@ -2742,12 +2742,12 @@ const RuleEdit = (props) => {
2742
2742
  className: "univer-mt-4 univer-flex univer-justify-end",
2743
2743
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2744
2744
  onClick: handleCancel,
2745
- children: localeService.t("sheet.cf.panel.cancel")
2745
+ children: localeService.t("sheets-conditional-formatting-ui.panel.cancel")
2746
2746
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2747
2747
  className: "univer-ml-3",
2748
2748
  variant: "primary",
2749
2749
  onClick: handleSubmit,
2750
- children: localeService.t("sheet.cf.panel.submit")
2750
+ children: localeService.t("sheets-conditional-formatting-ui.panel.submit")
2751
2751
  })]
2752
2752
  })
2753
2753
  ] });
@@ -2868,33 +2868,33 @@ ConditionalFormattingI18nController = __decorate([__decorateParam(0, (0, _univer
2868
2868
  const getRuleDescribe = (rule, localeService) => {
2869
2869
  const ruleConfig = rule.rule;
2870
2870
  switch (ruleConfig.type) {
2871
- case _univerjs_sheets_conditional_formatting.CFRuleType.colorScale: return localeService.t("sheet.cf.ruleType.colorScale");
2872
- case _univerjs_sheets_conditional_formatting.CFRuleType.dataBar: return localeService.t("sheet.cf.ruleType.dataBar");
2873
- case _univerjs_sheets_conditional_formatting.CFRuleType.iconSet: return localeService.t("sheet.cf.ruleType.iconSet");
2871
+ case _univerjs_sheets_conditional_formatting.CFRuleType.colorScale: return localeService.t("sheets-conditional-formatting-ui.ruleType.colorScale");
2872
+ case _univerjs_sheets_conditional_formatting.CFRuleType.dataBar: return localeService.t("sheets-conditional-formatting-ui.ruleType.dataBar");
2873
+ case _univerjs_sheets_conditional_formatting.CFRuleType.iconSet: return localeService.t("sheets-conditional-formatting-ui.ruleType.iconSet");
2874
2874
  case _univerjs_sheets_conditional_formatting.CFRuleType.highlightCell: switch (ruleConfig.subType) {
2875
2875
  case _univerjs_sheets_conditional_formatting.CFSubRuleType.average: {
2876
2876
  const operator = ruleConfig.operator;
2877
- return localeService.t(`sheet.cf.preview.describe.${operator}`, localeService.t("sheet.cf.subRuleType.average"));
2877
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, localeService.t("sheets-conditional-formatting-ui.subRuleType.average"));
2878
2878
  }
2879
- case _univerjs_sheets_conditional_formatting.CFSubRuleType.duplicateValues: return localeService.t("sheet.cf.subRuleType.duplicateValues");
2880
- case _univerjs_sheets_conditional_formatting.CFSubRuleType.uniqueValues: return localeService.t("sheet.cf.subRuleType.uniqueValues");
2879
+ case _univerjs_sheets_conditional_formatting.CFSubRuleType.duplicateValues: return localeService.t("sheets-conditional-formatting-ui.subRuleType.duplicateValues");
2880
+ case _univerjs_sheets_conditional_formatting.CFSubRuleType.uniqueValues: return localeService.t("sheets-conditional-formatting-ui.subRuleType.uniqueValues");
2881
2881
  case _univerjs_sheets_conditional_formatting.CFSubRuleType.number: {
2882
2882
  const operator = ruleConfig.operator;
2883
- return localeService.t(`sheet.cf.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e) => String(e)) : [String(ruleConfig.value || "")]);
2883
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e) => String(e)) : [String(ruleConfig.value || "")]);
2884
2884
  }
2885
2885
  case _univerjs_sheets_conditional_formatting.CFSubRuleType.text: {
2886
2886
  const operator = ruleConfig.operator;
2887
- return localeService.t(`sheet.cf.preview.describe.${operator}`, ruleConfig.value || "");
2887
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, ruleConfig.value || "");
2888
2888
  }
2889
2889
  case _univerjs_sheets_conditional_formatting.CFSubRuleType.timePeriod: {
2890
2890
  const operator = ruleConfig.operator;
2891
- return localeService.t(`sheet.cf.preview.describe.${operator}`);
2891
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`);
2892
2892
  }
2893
- case _univerjs_sheets_conditional_formatting.CFSubRuleType.rank: if (ruleConfig.isPercent) if (ruleConfig.isBottom) return localeService.t("sheet.cf.preview.describe.bottomNPercent", String(ruleConfig.value));
2894
- else return localeService.t("sheet.cf.preview.describe.topNPercent", String(ruleConfig.value));
2895
- else if (ruleConfig.isBottom) return localeService.t("sheet.cf.preview.describe.bottomN", String(ruleConfig.value));
2896
- else return localeService.t("sheet.cf.preview.describe.topN", String(ruleConfig.value));
2897
- case _univerjs_sheets_conditional_formatting.CFSubRuleType.formula: return localeService.t("sheet.cf.ruleType.formula");
2893
+ case _univerjs_sheets_conditional_formatting.CFSubRuleType.rank: if (ruleConfig.isPercent) if (ruleConfig.isBottom) return localeService.t("sheets-conditional-formatting-ui.preview.describe.bottomNPercent", String(ruleConfig.value));
2894
+ else return localeService.t("sheets-conditional-formatting-ui.preview.describe.topNPercent", String(ruleConfig.value));
2895
+ else if (ruleConfig.isBottom) return localeService.t("sheets-conditional-formatting-ui.preview.describe.bottomN", String(ruleConfig.value));
2896
+ else return localeService.t("sheets-conditional-formatting-ui.preview.describe.topN", String(ruleConfig.value));
2897
+ case _univerjs_sheets_conditional_formatting.CFSubRuleType.formula: return localeService.t("sheets-conditional-formatting-ui.ruleType.formula");
2898
2898
  }
2899
2899
  }
2900
2900
  };
@@ -2917,10 +2917,10 @@ const RuleList = (props) => {
2917
2917
  const [fetchRuleListId, setFetchRuleListId] = (0, react.useState)(0);
2918
2918
  const [draggingId, setDraggingId] = (0, react.useState)("");
2919
2919
  const selectOption = [{
2920
- label: localeService.t("sheet.cf.panel.workSheet"),
2920
+ label: localeService.t("sheets-conditional-formatting-ui.panel.workSheet"),
2921
2921
  value: "2"
2922
2922
  }, {
2923
- label: localeService.t("sheet.cf.panel.selectedRange"),
2923
+ label: localeService.t("sheets-conditional-formatting-ui.panel.selectedRange"),
2924
2924
  value: "1"
2925
2925
  }];
2926
2926
  const getRuleList = () => {
@@ -3061,7 +3061,7 @@ const RuleList = (props) => {
3061
3061
  className: "\n univer-mb-2 univer-flex univer-items-center univer-justify-between univer-gap-2 univer-text-sm\n ",
3062
3062
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
3063
3063
  className: "univer-flex univer-items-center univer-gap-2",
3064
- children: conditionalFormattingI18nController.tWithReactNode("sheet.cf.panel.managerRuleSelect", /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
3064
+ children: conditionalFormattingI18nController.tWithReactNode("sheets-conditional-formatting-ui.panel.managerRuleSelect", /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
3065
3065
  className: "univer-w-36",
3066
3066
  options: selectOption,
3067
3067
  value: selectValue,
@@ -3072,7 +3072,7 @@ const RuleList = (props) => {
3072
3072
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3073
3073
  className: "univer-flex univer-justify-end univer-space-x-2",
3074
3074
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Tooltip, {
3075
- title: localeService.t("sheet.cf.panel.createRule"),
3075
+ title: localeService.t("sheets-conditional-formatting-ui.panel.createRule"),
3076
3076
  placement: "bottom",
3077
3077
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
3078
3078
  className: "univer-size-5 univer-cursor-pointer",
@@ -3080,7 +3080,7 @@ const RuleList = (props) => {
3080
3080
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.IncreaseIcon, {})
3081
3081
  })
3082
3082
  }), ruleList.length && isHasAllRuleEditPermission ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Tooltip, {
3083
- title: localeService.t("sheet.cf.panel.clear"),
3083
+ title: localeService.t("sheets-conditional-formatting-ui.panel.clear"),
3084
3084
  placement: "bottom",
3085
3085
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
3086
3086
  className: "univer-size-5 univer-cursor-pointer",
@@ -3195,7 +3195,7 @@ let ConditionalFormattingPanelController = class ConditionalFormattingPanelContr
3195
3195
  openPanel(rule) {
3196
3196
  const props = {
3197
3197
  id: CF_PANEL_KEY,
3198
- header: { title: this._localeService.t("sheet.cf.title") },
3198
+ header: { title: this._localeService.t("sheets-conditional-formatting-ui.title") },
3199
3199
  children: {
3200
3200
  label: CF_PANEL_KEY,
3201
3201
  rule,
@@ -3341,7 +3341,7 @@ let ConditionalFormattingClearController = class ConditionalFormattingClearContr
3341
3341
  var _this$_selectionManag;
3342
3342
  const ranges = (_this$_selectionManag = this._selectionManagerService.getCurrentSelections()) === null || _this$_selectionManag === void 0 ? void 0 : _this$_selectionManag.map((s) => s.range);
3343
3343
  if (!ranges) return defaultV;
3344
- const workbook = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
3344
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
3345
3345
  const worksheet = workbook.getActiveSheet();
3346
3346
  if (!worksheet) return defaultV;
3347
3347
  const unitId = workbook.getUnitId();
@@ -3423,7 +3423,7 @@ function generateClearCfMutations(injector, allRules, ranges, unitId, subUnitId)
3423
3423
  //#endregion
3424
3424
  //#region package.json
3425
3425
  var name = "@univerjs/sheets-conditional-formatting-ui";
3426
- var version = "0.23.0";
3426
+ var version = "0.24.0-insiders.20260528-29f582d";
3427
3427
 
3428
3428
  //#endregion
3429
3429
  //#region src/config/config.ts
@@ -3868,7 +3868,7 @@ let ConditionalFormattingPermissionController = class ConditionalFormattingPermi
3868
3868
  workbookTypes: [_univerjs_sheets.WorkbookEditablePermission],
3869
3869
  rangeTypes: [_univerjs_sheets.RangeProtectionPermissionEditPoint],
3870
3870
  worksheetTypes: [_univerjs_sheets.WorksheetEditPermission, _univerjs_sheets.WorksheetSetCellStylePermission]
3871
- }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
3871
+ }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-conditional-formatting-ui.permission.dialog.setStyleErr"));
3872
3872
  }
3873
3873
  }));
3874
3874
  }
@@ -3899,13 +3899,13 @@ let SheetsCfRenderController = class SheetsCfRenderController extends _univerjs_
3899
3899
  }
3900
3900
  _markDirtySkeleton() {
3901
3901
  var _this$_renderManagerS, _this$_renderManagerS2;
3902
- const unitId = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
3902
+ const unitId = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
3903
3903
  (_this$_renderManagerS = this._renderManagerService.getRenderById(unitId)) === null || _this$_renderManagerS === void 0 || _this$_renderManagerS.with(_univerjs_sheets_ui.SheetSkeletonManagerService).reCalculate();
3904
3904
  (_this$_renderManagerS2 = this._renderManagerService.getRenderById(unitId)) === null || _this$_renderManagerS2 === void 0 || (_this$_renderManagerS2 = _this$_renderManagerS2.mainComponent) === null || _this$_renderManagerS2 === void 0 || _this$_renderManagerS2.makeDirty();
3905
3905
  }
3906
3906
  _initSkeleton() {
3907
3907
  this.disposeWithMe((0, rxjs.merge)(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe((0, rxjs_operators.bufferTime)(16), (0, rxjs_operators.filter)((v) => !!v.length), (0, rxjs_operators.filter)((v) => {
3908
- const workbook = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
3908
+ const workbook = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
3909
3909
  if (!workbook) return false;
3910
3910
  const worksheet = workbook.getActiveSheet();
3911
3911
  if (!worksheet) return false;
@@ -4018,8 +4018,8 @@ let ConditionalFormattingAutoFillController = class ConditionalFormattingAutoFil
4018
4018
  });
4019
4019
  const loopFunc = (sourceStartCell, targetStartCell, relativeRange, matrixMap, mapFunc) => {
4020
4020
  var _getActiveSheet;
4021
- const unitId = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
4022
- const subUnitId = (_getActiveSheet = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
4021
+ const unitId = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
4022
+ const subUnitId = (_getActiveSheet = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getActiveSheet()) === null || _getActiveSheet === void 0 ? void 0 : _getActiveSheet.getSheetId();
4023
4023
  if (!unitId || !subUnitId) return;
4024
4024
  const sourceRange = {
4025
4025
  startRow: sourceStartCell.row,
@@ -4084,8 +4084,8 @@ let ConditionalFormattingAutoFillController = class ConditionalFormattingAutoFil
4084
4084
  };
4085
4085
  const generalApplyFunc = (sourceRange, targetRange) => {
4086
4086
  var _this$_univerInstance, _this$_univerInstance2;
4087
- const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
4088
- const subUnitId = (_this$_univerInstance2 = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance2 === void 0 || (_this$_univerInstance2 = _this$_univerInstance2.getActiveSheet()) === null || _this$_univerInstance2 === void 0 ? void 0 : _this$_univerInstance2.getSheetId();
4087
+ const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
4088
+ const subUnitId = (_this$_univerInstance2 = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance2 === void 0 || (_this$_univerInstance2 = _this$_univerInstance2.getActiveSheet()) === null || _this$_univerInstance2 === void 0 ? void 0 : _this$_univerInstance2.getSheetId();
4089
4089
  const matrixMap = /* @__PURE__ */ new Map();
4090
4090
  const redos = [];
4091
4091
  const undos = [];
@@ -4467,8 +4467,8 @@ let ConditionalFormattingPainterController = class ConditionalFormattingPainterC
4467
4467
  case _univerjs_sheets_ui.FormatPainterStatus.INFINITE:
4468
4468
  case _univerjs_sheets_ui.FormatPainterStatus.ONCE: {
4469
4469
  var _this$_univerInstance, _this$_univerInstance2;
4470
- const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
4471
- const subUnitId = (_this$_univerInstance2 = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance2 === void 0 || (_this$_univerInstance2 = _this$_univerInstance2.getActiveSheet()) === null || _this$_univerInstance2 === void 0 ? void 0 : _this$_univerInstance2.getSheetId();
4470
+ const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
4471
+ const subUnitId = (_this$_univerInstance2 = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _this$_univerInstance2 === void 0 || (_this$_univerInstance2 = _this$_univerInstance2.getActiveSheet()) === null || _this$_univerInstance2 === void 0 ? void 0 : _this$_univerInstance2.getSheetId();
4472
4472
  const selection = this._sheetsSelectionsService.getCurrentLastSelection();
4473
4473
  const range = selection === null || selection === void 0 ? void 0 : selection.range;
4474
4474
  if (unitId && subUnitId && range) this._painterConfig = {
@@ -4515,7 +4515,7 @@ let ConditionalFormattingViewportController = class ConditionalFormattingViewpor
4515
4515
  this._init();
4516
4516
  }
4517
4517
  _init() {
4518
- const unit = this._univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4518
+ const unit = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4519
4519
  const bindUnit = (unit) => {
4520
4520
  this._unitDisposable.dispose();
4521
4521
  this._unitDisposable = new _univerjs_core.DisposableCollection();
@@ -4565,63 +4565,63 @@ const commandList = [
4565
4565
  const commonSelections = [
4566
4566
  {
4567
4567
  label: {
4568
- name: "sheet.cf.ruleType.highlightCell",
4568
+ name: "sheets-conditional-formatting-ui.ruleType.highlightCell",
4569
4569
  selectable: false
4570
4570
  },
4571
4571
  value: 3
4572
4572
  },
4573
4573
  {
4574
4574
  label: {
4575
- name: "sheet.cf.panel.rankAndAverage",
4575
+ name: "sheets-conditional-formatting-ui.panel.rankAndAverage",
4576
4576
  selectable: false
4577
4577
  },
4578
4578
  value: 4
4579
4579
  },
4580
4580
  {
4581
4581
  label: {
4582
- name: "sheet.cf.ruleType.formula",
4582
+ name: "sheets-conditional-formatting-ui.ruleType.formula",
4583
4583
  selectable: false
4584
4584
  },
4585
4585
  value: 5
4586
4586
  },
4587
4587
  {
4588
4588
  label: {
4589
- name: "sheet.cf.ruleType.colorScale",
4589
+ name: "sheets-conditional-formatting-ui.ruleType.colorScale",
4590
4590
  selectable: false
4591
4591
  },
4592
4592
  value: 6
4593
4593
  },
4594
4594
  {
4595
4595
  label: {
4596
- name: "sheet.cf.ruleType.dataBar",
4596
+ name: "sheets-conditional-formatting-ui.ruleType.dataBar",
4597
4597
  selectable: false
4598
4598
  },
4599
4599
  value: 7
4600
4600
  },
4601
4601
  {
4602
4602
  label: {
4603
- name: "sheet.cf.ruleType.iconSet",
4603
+ name: "sheets-conditional-formatting-ui.ruleType.iconSet",
4604
4604
  selectable: false
4605
4605
  },
4606
4606
  value: 8
4607
4607
  },
4608
4608
  {
4609
4609
  label: {
4610
- name: "sheet.cf.menu.manageConditionalFormatting",
4610
+ name: "sheets-conditional-formatting-ui.menu.manageConditionalFormatting",
4611
4611
  selectable: false
4612
4612
  },
4613
4613
  value: 2
4614
4614
  },
4615
4615
  {
4616
4616
  label: {
4617
- name: "sheet.cf.menu.createConditionalFormatting",
4617
+ name: "sheets-conditional-formatting-ui.menu.createConditionalFormatting",
4618
4618
  selectable: false
4619
4619
  },
4620
4620
  value: 1
4621
4621
  },
4622
4622
  {
4623
4623
  label: {
4624
- name: "sheet.cf.menu.clearRangeRules",
4624
+ name: "sheets-conditional-formatting-ui.menu.clearRangeRules",
4625
4625
  selectable: false
4626
4626
  },
4627
4627
  value: 9,
@@ -4629,7 +4629,7 @@ const commonSelections = [
4629
4629
  },
4630
4630
  {
4631
4631
  label: {
4632
- name: "sheet.cf.menu.clearWorkSheetRules",
4632
+ name: "sheets-conditional-formatting-ui.menu.clearWorkSheetRules",
4633
4633
  selectable: false
4634
4634
  },
4635
4635
  value: 10
@@ -4644,14 +4644,14 @@ const FactoryManageConditionalFormattingRule = (accessor) => {
4644
4644
  const disposable = commandService.onCommandExecuted((commandInfo) => {
4645
4645
  var _univerInstanceServic;
4646
4646
  const { id, params } = commandInfo;
4647
- const unitId = (_univerInstanceServic = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic === void 0 ? void 0 : _univerInstanceServic.getUnitId();
4647
+ const unitId = (_univerInstanceServic = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic === void 0 ? void 0 : _univerInstanceServic.getUnitId();
4648
4648
  if (commandList.includes(id) && params.unitId === unitId) commandSubscribe.next(null);
4649
4649
  });
4650
4650
  return () => disposable.dispose();
4651
4651
  })).pipe((0, rxjs_operators.debounceTime)(16)).subscribe(() => {
4652
4652
  var _selectionManagerServ;
4653
4653
  const ranges = ((_selectionManagerServ = selectionManagerService.getCurrentSelections()) === null || _selectionManagerServ === void 0 ? void 0 : _selectionManagerServ.map((selection) => selection.range)) || [];
4654
- const workbook = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4654
+ const workbook = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4655
4655
  if (!workbook) return;
4656
4656
  const worksheet = workbook.getActiveSheet();
4657
4657
  if (!worksheet) return;
@@ -4664,12 +4664,12 @@ const FactoryManageConditionalFormattingRule = (accessor) => {
4664
4664
  const disposable = commandService.onCommandExecuted((commandInfo) => {
4665
4665
  var _univerInstanceServic2;
4666
4666
  const { id, params } = commandInfo;
4667
- const unitId = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getUnitId();
4667
+ const unitId = (_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getUnitId();
4668
4668
  if (commandList.includes(id) && params.unitId === unitId) commandSubscribe.next(null);
4669
4669
  });
4670
4670
  return () => disposable.dispose();
4671
4671
  }).pipe((0, rxjs_operators.debounceTime)(16)).subscribe(() => {
4672
- const workbook = univerInstanceService.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4672
+ const workbook = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
4673
4673
  if (!workbook) return;
4674
4674
  const worksheet = workbook.getActiveSheet();
4675
4675
  if (!worksheet) return;
@@ -4704,7 +4704,7 @@ const FactoryManageConditionalFormattingRule = (accessor) => {
4704
4704
  id: OpenConditionalFormattingOperator.id,
4705
4705
  type: _univerjs_ui.MenuItemType.SELECTOR,
4706
4706
  icon: "ConditionsDoubleIcon",
4707
- tooltip: "sheet.cf.title",
4707
+ tooltip: "sheets-conditional-formatting-ui.title",
4708
4708
  selections: selections$,
4709
4709
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
4710
4710
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {