@univerjs/sheets-conditional-formatting-ui 0.24.0 → 0.25.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.
Files changed (89) hide show
  1. package/lib/cjs/index.js +111 -115
  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 +111 -115
  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 +111 -115
  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 +14 -14
package/lib/es/index.js CHANGED
@@ -467,7 +467,7 @@ const previewClassName = clsx("univer-mt-5 univer-px-1 univer-py-2 univer-rounde
467
467
  //#endregion
468
468
  //#region src/components/panel/rule-edit/ColorScale.tsx
469
469
  const createOptionItem$2 = (text, localeService) => ({
470
- label: localeService.t(`sheet.cf.valueType.${text}`),
470
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${text}`),
471
471
  value: text
472
472
  });
473
473
  const TextInput$1 = (props) => {
@@ -660,7 +660,7 @@ const ColorScaleStyleEditor = (props) => {
660
660
  return /* @__PURE__ */ jsxs("div", { children: [
661
661
  /* @__PURE__ */ jsx("div", {
662
662
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
663
- children: localeService.t("sheet.cf.panel.styleRule")
663
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
664
664
  }),
665
665
  /* @__PURE__ */ jsx("div", {
666
666
  className: previewClassName,
@@ -678,7 +678,7 @@ const ColorScaleStyleEditor = (props) => {
678
678
  }),
679
679
  /* @__PURE__ */ jsx("div", {
680
680
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
681
- children: localeService.t("sheet.cf.valueType.min")
681
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.min")
682
682
  }),
683
683
  /* @__PURE__ */ jsxs("div", {
684
684
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -746,7 +746,7 @@ const ColorScaleStyleEditor = (props) => {
746
746
  }),
747
747
  /* @__PURE__ */ jsx("div", {
748
748
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
749
- children: localeService.t("sheet.cf.panel.medianValue")
749
+ children: localeService.t("sheets-conditional-formatting-ui.panel.medianValue")
750
750
  }),
751
751
  /* @__PURE__ */ jsxs("div", {
752
752
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -814,7 +814,7 @@ const ColorScaleStyleEditor = (props) => {
814
814
  }),
815
815
  /* @__PURE__ */ jsx("div", {
816
816
  className: "univer-mt-3 univer-text-xs univer-text-gray-600 dark:!univer-text-gray-200",
817
- children: localeService.t("sheet.cf.valueType.max")
817
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.max")
818
818
  }),
819
819
  /* @__PURE__ */ jsxs("div", {
820
820
  className: "univer-mt-3 univer-flex univer-h-8 univer-items-center",
@@ -886,7 +886,7 @@ const ColorScaleStyleEditor = (props) => {
886
886
  //#endregion
887
887
  //#region src/components/panel/rule-edit/DataBar.tsx
888
888
  const createOptionItem$1 = (text, localeService) => ({
889
- label: localeService.t(`sheet.cf.valueType.${text}`),
889
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${text}`),
890
890
  value: text
891
891
  });
892
892
  const InputText = (props) => {
@@ -1080,7 +1080,7 @@ const DataBarStyleEditor = (props) => {
1080
1080
  return /* @__PURE__ */ jsxs("div", { children: [
1081
1081
  /* @__PURE__ */ jsx("div", {
1082
1082
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1083
- children: localeService.t("sheet.cf.panel.styleRule")
1083
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1084
1084
  }),
1085
1085
  /* @__PURE__ */ jsx("div", {
1086
1086
  className: previewClassName,
@@ -1097,7 +1097,7 @@ const DataBarStyleEditor = (props) => {
1097
1097
  }),
1098
1098
  /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
1099
1099
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1100
- children: localeService.t("sheet.cf.panel.fillType")
1100
+ children: localeService.t("sheets-conditional-formatting-ui.panel.fillType")
1101
1101
  }), /* @__PURE__ */ jsxs("div", {
1102
1102
  className: "univer-ml-1 univer-mt-3 univer-flex univer-items-center",
1103
1103
  children: [/* @__PURE__ */ jsxs(RadioGroup, {
@@ -1119,13 +1119,13 @@ const DataBarStyleEditor = (props) => {
1119
1119
  value: "0",
1120
1120
  children: /* @__PURE__ */ jsx("span", {
1121
1121
  className: "univer-text-xs",
1122
- children: localeService.t("sheet.cf.panel.pureColor")
1122
+ children: localeService.t("sheets-conditional-formatting-ui.panel.pureColor")
1123
1123
  })
1124
1124
  }), /* @__PURE__ */ jsx(Radio, {
1125
1125
  value: "1",
1126
1126
  children: /* @__PURE__ */ jsx("span", {
1127
1127
  className: "univer-text-xs",
1128
- children: localeService.t("sheet.cf.panel.gradient")
1128
+ children: localeService.t("sheets-conditional-formatting-ui.panel.gradient")
1129
1129
  })
1130
1130
  })]
1131
1131
  }), /* @__PURE__ */ jsxs("div", {
@@ -1145,19 +1145,19 @@ const DataBarStyleEditor = (props) => {
1145
1145
  isShowValue: !v
1146
1146
  });
1147
1147
  }
1148
- }), localeService.t("sheet.cf.panel.onlyShowDataBar")]
1148
+ }), localeService.t("sheets-conditional-formatting-ui.panel.onlyShowDataBar")]
1149
1149
  })]
1150
1150
  })] }),
1151
1151
  /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
1152
1152
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1153
- children: localeService.t("sheet.cf.panel.colorSet")
1153
+ children: localeService.t("sheets-conditional-formatting-ui.panel.colorSet")
1154
1154
  }), /* @__PURE__ */ jsxs("div", {
1155
1155
  className: "univer-ml-1 univer-mt-3 univer-flex univer-items-center",
1156
1156
  children: [/* @__PURE__ */ jsxs("div", {
1157
1157
  className: "univer-flex univer-items-center",
1158
1158
  children: [/* @__PURE__ */ jsx("div", {
1159
1159
  className: "univer-text-xs",
1160
- children: localeService.t("sheet.cf.panel.native")
1160
+ children: localeService.t("sheets-conditional-formatting-ui.panel.native")
1161
1161
  }), /* @__PURE__ */ jsx(ColorPicker$1, {
1162
1162
  color: nativeColor,
1163
1163
  onChange: handleNativeColorChange
@@ -1166,7 +1166,7 @@ const DataBarStyleEditor = (props) => {
1166
1166
  className: "univer-ml-3 univer-flex univer-items-center",
1167
1167
  children: [/* @__PURE__ */ jsx("div", {
1168
1168
  className: "univer-text-xs",
1169
- children: localeService.t("sheet.cf.panel.positive")
1169
+ children: localeService.t("sheets-conditional-formatting-ui.panel.positive")
1170
1170
  }), /* @__PURE__ */ jsx(ColorPicker$1, {
1171
1171
  color: positiveColor,
1172
1172
  onChange: handlePositiveColorChange
@@ -1176,7 +1176,7 @@ const DataBarStyleEditor = (props) => {
1176
1176
  /* @__PURE__ */ jsxs("div", { children: [
1177
1177
  /* @__PURE__ */ jsx("div", {
1178
1178
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1179
- children: localeService.t("sheet.cf.valueType.min")
1179
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.min")
1180
1180
  }),
1181
1181
  /* @__PURE__ */ jsxs("div", {
1182
1182
  className: "univer-mt-3 univer-flex univer-items-center",
@@ -1222,7 +1222,7 @@ const DataBarStyleEditor = (props) => {
1222
1222
  }),
1223
1223
  /* @__PURE__ */ jsx("div", {
1224
1224
  className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1225
- children: localeService.t("sheet.cf.valueType.max")
1225
+ children: localeService.t("sheets-conditional-formatting-ui.valueType.max")
1226
1226
  }),
1227
1227
  /* @__PURE__ */ jsxs("div", {
1228
1228
  className: "univer-mt-3 univer-flex univer-items-center",
@@ -1279,23 +1279,19 @@ const getBooleanFromNumber = (v) => v !== BooleanNumber.FALSE;
1279
1279
  const ConditionalStyleEditor = (props) => {
1280
1280
  const { style, onChange, className } = props;
1281
1281
  const [isBold, setIsBold] = useState(() => {
1282
- const defaultV = void 0;
1283
- if (!(style === null || style === void 0 ? void 0 : style.bl)) return defaultV;
1282
+ if (!(style === null || style === void 0 ? void 0 : style.bl)) return;
1284
1283
  return style.bl;
1285
1284
  });
1286
1285
  const [isItalic, setIsItalic] = useState(() => {
1287
- const defaultV = void 0;
1288
- if (!(style === null || style === void 0 ? void 0 : style.it)) return defaultV;
1286
+ if (!(style === null || style === void 0 ? void 0 : style.it)) return;
1289
1287
  return style.it;
1290
1288
  });
1291
1289
  const [isUnderline, setIsUnderline] = useState(() => {
1292
- const defaultV = void 0;
1293
- if (!(style === null || style === void 0 ? void 0 : style.ul)) return defaultV;
1290
+ if (!(style === null || style === void 0 ? void 0 : style.ul)) return;
1294
1291
  return style.ul.s;
1295
1292
  });
1296
1293
  const [isStrikethrough, setIsStrikethrough] = useState(() => {
1297
- const defaultV = void 0;
1298
- if (!(style === null || style === void 0 ? void 0 : style.st)) return defaultV;
1294
+ if (!(style === null || style === void 0 ? void 0 : style.st)) return;
1299
1295
  return style.st.s;
1300
1296
  });
1301
1297
  const [fontColor, setFontColor] = useState(() => {
@@ -1406,7 +1402,7 @@ const FormulaStyleEditor = (props) => {
1406
1402
  useEffect(() => {
1407
1403
  return interceptorManager.intercept(interceptorManager.getInterceptPoints().beforeSubmit, { handler: (v, _c, next) => {
1408
1404
  if (formulaError || formula.length === 1 || !formula.startsWith("=")) {
1409
- setFormulaError(localeService.t("sheet.cf.errorMessage.formulaError"));
1405
+ setFormulaError(localeService.t("sheets-conditional-formatting-ui.errorMessage.formulaError"));
1410
1406
  return false;
1411
1407
  }
1412
1408
  return next(v);
@@ -1424,7 +1420,7 @@ const FormulaStyleEditor = (props) => {
1424
1420
  children: [
1425
1421
  /* @__PURE__ */ jsx("div", {
1426
1422
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1427
- children: localeService.t("sheet.cf.panel.styleRule")
1423
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1428
1424
  }),
1429
1425
  /* @__PURE__ */ jsx("div", {
1430
1426
  className: "univer-mt-3",
@@ -1447,7 +1443,7 @@ const FormulaStyleEditor = (props) => {
1447
1443
  });
1448
1444
  },
1449
1445
  onVerify: (result, formula) => {
1450
- if (!result || formula.length === 1) setFormulaError(localeService.t("sheet.cf.errorMessage.formulaError"));
1446
+ if (!result || formula.length === 1) setFormulaError(localeService.t("sheets-conditional-formatting-ui.errorMessage.formulaError"));
1451
1447
  else setFormulaError(void 0);
1452
1448
  }
1453
1449
  })
@@ -1489,10 +1485,10 @@ const WrapperError = (props) => {
1489
1485
  //#endregion
1490
1486
  //#region src/components/panel/rule-edit/HighlightCell.tsx
1491
1487
  const createOptionItem = (text, localeService) => ({
1492
- label: localeService.t(`sheet.cf.operator.${text}`),
1488
+ label: localeService.t(`sheets-conditional-formatting-ui.operator.${text}`),
1493
1489
  value: text
1494
1490
  });
1495
- const HighlightCellInput = (props) => {
1491
+ function HighlightCellInput(props) {
1496
1492
  const { type, operator, onChange, value, interceptorManager } = props;
1497
1493
  const localeService = useDependency(LocaleService);
1498
1494
  const [inputNumberValue, setInputNumberValue] = useState(() => typeof value === "number" ? value : 0);
@@ -1540,7 +1536,7 @@ const HighlightCellInput = (props) => {
1540
1536
  CFTextOperator.equal
1541
1537
  ].includes(operator)) {
1542
1538
  if (!inputTextValue) {
1543
- setTextError(localeService.t("sheet.cf.errorMessage.notBlank"));
1539
+ setTextError(localeService.t("sheets-conditional-formatting-ui.errorMessage.notBlank"));
1544
1540
  return false;
1545
1541
  }
1546
1542
  return next(v);
@@ -1649,7 +1645,7 @@ const HighlightCellInput = (props) => {
1649
1645
  }
1650
1646
  }
1651
1647
  return null;
1652
- };
1648
+ }
1653
1649
  const getOperatorOptions = (type, localeService) => {
1654
1650
  switch (type) {
1655
1651
  case CFSubRuleType.text: return [
@@ -1701,23 +1697,23 @@ const HighlightCellStyleEditor = (props) => {
1701
1697
  const typeOptions = [
1702
1698
  {
1703
1699
  value: CFSubRuleType.text,
1704
- label: localeService.t("sheet.cf.subRuleType.text")
1700
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.text")
1705
1701
  },
1706
1702
  {
1707
1703
  value: CFSubRuleType.number,
1708
- label: localeService.t("sheet.cf.subRuleType.number")
1704
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.number")
1709
1705
  },
1710
1706
  {
1711
1707
  value: CFSubRuleType.timePeriod,
1712
- label: localeService.t("sheet.cf.subRuleType.timePeriod")
1708
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.timePeriod")
1713
1709
  },
1714
1710
  {
1715
1711
  value: CFSubRuleType.duplicateValues,
1716
- label: localeService.t("sheet.cf.subRuleType.duplicateValues")
1712
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.duplicateValues")
1717
1713
  },
1718
1714
  {
1719
1715
  value: CFSubRuleType.uniqueValues,
1720
- label: localeService.t("sheet.cf.subRuleType.uniqueValues")
1716
+ label: localeService.t("sheets-conditional-formatting-ui.subRuleType.uniqueValues")
1721
1717
  }
1722
1718
  ];
1723
1719
  const operatorOptions = useMemo(() => getOperatorOptions(subType, localeService), [subType]);
@@ -1832,7 +1828,7 @@ const HighlightCellStyleEditor = (props) => {
1832
1828
  return /* @__PURE__ */ jsxs("div", { children: [
1833
1829
  /* @__PURE__ */ jsx("div", {
1834
1830
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
1835
- children: localeService.t("sheet.cf.panel.styleRule")
1831
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
1836
1832
  }),
1837
1833
  /* @__PURE__ */ jsxs("div", {
1838
1834
  className: "univer-flex univer-justify-between univer-gap-4",
@@ -2008,27 +2004,27 @@ const IconSetRuleEdit = (props) => {
2008
2004
  const { onChange, configList, errorMap = {} } = props;
2009
2005
  const localeService = useDependency(LocaleService);
2010
2006
  const options = [{
2011
- label: localeService.t(`sheet.cf.symbol.${CFNumberOperator.greaterThan}`),
2007
+ label: localeService.t(`sheets-conditional-formatting-ui.symbol.${CFNumberOperator.greaterThan}`),
2012
2008
  value: CFNumberOperator.greaterThan
2013
2009
  }, {
2014
- label: localeService.t(`sheet.cf.symbol.${CFNumberOperator.greaterThanOrEqual}`),
2010
+ label: localeService.t(`sheets-conditional-formatting-ui.symbol.${CFNumberOperator.greaterThanOrEqual}`),
2015
2011
  value: CFNumberOperator.greaterThanOrEqual
2016
2012
  }];
2017
2013
  const valueTypeOptions = [
2018
2014
  {
2019
- label: localeService.t(`sheet.cf.valueType.${CFValueType.num}`),
2015
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${CFValueType.num}`),
2020
2016
  value: CFValueType.num
2021
2017
  },
2022
2018
  {
2023
- label: localeService.t(`sheet.cf.valueType.${CFValueType.percent}`),
2019
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${CFValueType.percent}`),
2024
2020
  value: CFValueType.percent
2025
2021
  },
2026
2022
  {
2027
- label: localeService.t(`sheet.cf.valueType.${CFValueType.percentile}`),
2023
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${CFValueType.percentile}`),
2028
2024
  value: CFValueType.percentile
2029
2025
  },
2030
2026
  {
2031
- label: localeService.t(`sheet.cf.valueType.${CFValueType.formula}`),
2027
+ label: localeService.t(`sheets-conditional-formatting-ui.valueType.${CFValueType.formula}`),
2032
2028
  value: CFValueType.formula
2033
2029
  }
2034
2030
  ];
@@ -2059,7 +2055,7 @@ const IconSetRuleEdit = (props) => {
2059
2055
  const isEnd = index === configList.length - 1;
2060
2056
  const isFirst = index === 0;
2061
2057
  const preItem = configList[index - 1];
2062
- const lessThanText = (preItem === null || preItem === void 0 ? void 0 : preItem.value.type) === CFValueType.formula ? localeService.t("sheet.cf.valueType.formula") : preItem === null || preItem === void 0 ? void 0 : preItem.value.value;
2058
+ const lessThanText = (preItem === null || preItem === void 0 ? void 0 : preItem.value.type) === CFValueType.formula ? localeService.t("sheets-conditional-formatting-ui.valueType.formula") : preItem === null || preItem === void 0 ? void 0 : preItem.value.value;
2063
2059
  const handleIconClick = (iconType, iconId) => {
2064
2060
  const value = {
2065
2061
  ...item,
@@ -2075,16 +2071,16 @@ const IconSetRuleEdit = (props) => {
2075
2071
  className: "univer-mt-3 univer-flex univer-items-center univer-justify-between univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2076
2072
  children: [/* @__PURE__ */ jsxs("div", {
2077
2073
  className: "univer-w-[45%]",
2078
- children: [localeService.t("sheet.cf.iconSet.icon"), index + 1]
2074
+ children: [localeService.t("sheets-conditional-formatting-ui.iconSet.icon"), index + 1]
2079
2075
  }), /* @__PURE__ */ jsx("div", {
2080
2076
  className: "univer-w-[45%]",
2081
- children: /* @__PURE__ */ jsxs(Fragment, { children: [!isFirst && !isEnd && localeService.t("sheet.cf.iconSet.rule"), !isFirst && !isEnd && /* @__PURE__ */ jsxs("span", {
2077
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [!isFirst && !isEnd && localeService.t("sheets-conditional-formatting-ui.iconSet.rule"), !isFirst && !isEnd && /* @__PURE__ */ jsxs("span", {
2082
2078
  className: "univer-font-medium univer-text-gray-600 dark:!univer-text-gray-200",
2083
2079
  children: [
2084
- localeService.t("sheet.cf.iconSet.when"),
2085
- localeService.t(`sheet.cf.symbol.${getOppositeOperator(preItem.operator)}`),
2080
+ localeService.t("sheets-conditional-formatting-ui.iconSet.when"),
2081
+ localeService.t(`sheets-conditional-formatting-ui.symbol.${getOppositeOperator(preItem.operator)}`),
2086
2082
  lessThanText,
2087
- isEnd ? "" : ` ${localeService.t("sheet.cf.iconSet.and")} `
2083
+ isEnd ? "" : ` ${localeService.t("sheets-conditional-formatting-ui.iconSet.and")} `
2088
2084
  ]
2089
2085
  })] })
2090
2086
  })]
@@ -2119,20 +2115,20 @@ const IconSetRuleEdit = (props) => {
2119
2115
  }
2120
2116
  }) : /* @__PURE__ */ jsxs("div", {
2121
2117
  className: "univer-mt-0 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2122
- children: [localeService.t("sheet.cf.iconSet.rule"), /* @__PURE__ */ jsxs("span", {
2118
+ children: [localeService.t("sheets-conditional-formatting-ui.iconSet.rule"), /* @__PURE__ */ jsxs("span", {
2123
2119
  className: "univer-font-medium",
2124
2120
  children: [
2125
- localeService.t("sheet.cf.iconSet.when"),
2126
- localeService.t(`sheet.cf.symbol.${getOppositeOperator(preItem.operator)}`),
2121
+ localeService.t("sheets-conditional-formatting-ui.iconSet.when"),
2122
+ localeService.t(`sheets-conditional-formatting-ui.symbol.${getOppositeOperator(preItem.operator)}`),
2127
2123
  lessThanText,
2128
- isEnd ? "" : ` ${localeService.t("sheet.cf.iconSet.and")} `
2124
+ isEnd ? "" : ` ${localeService.t("sheets-conditional-formatting-ui.iconSet.and")} `
2129
2125
  ]
2130
2126
  })]
2131
2127
  })]
2132
2128
  }),
2133
2129
  !isEnd ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
2134
2130
  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",
2135
- children: [/* @__PURE__ */ jsx("div", { children: localeService.t("sheet.cf.iconSet.type") }), /* @__PURE__ */ jsx("div", { children: localeService.t("sheet.cf.iconSet.value") })]
2131
+ children: [/* @__PURE__ */ jsx("div", { children: localeService.t("sheets-conditional-formatting-ui.iconSet.type") }), /* @__PURE__ */ jsx("div", { children: localeService.t("sheets-conditional-formatting-ui.iconSet.value") })]
2136
2132
  }), /* @__PURE__ */ jsxs("div", {
2137
2133
  className: "univer-mt-3 univer-grid univer-grid-cols-2 univer-gap-4",
2138
2134
  children: [/* @__PURE__ */ jsx(Select, {
@@ -2232,7 +2228,7 @@ const IconSet = (props) => {
2232
2228
  if (!compareWithNumber({
2233
2229
  operator: preOperator,
2234
2230
  value: preItem.value.value
2235
- }, item.value.value)) result[index] = `${localeService.t(`sheet.cf.form.${preOperator}`, String(preItem.value.value))} `;
2231
+ }, item.value.value)) result[index] = `${localeService.t(`sheets-conditional-formatting-ui.form.${preOperator}`, String(preItem.value.value))} `;
2236
2232
  });
2237
2233
  return result;
2238
2234
  }
@@ -2296,7 +2292,7 @@ const IconSet = (props) => {
2296
2292
  return /* @__PURE__ */ jsxs("div", { children: [
2297
2293
  /* @__PURE__ */ jsx("div", {
2298
2294
  className: "univer-mt-4 univer-text-sm univer-text-gray-600",
2299
- children: localeService.t("sheet.cf.panel.styleRule")
2295
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
2300
2296
  }),
2301
2297
  /* @__PURE__ */ jsx("div", {
2302
2298
  className: "univer-mt-3",
@@ -2321,7 +2317,7 @@ const IconSet = (props) => {
2321
2317
  className: "univer-mt-3 univer-flex univer-items-center univer-text-xs",
2322
2318
  children: [/* @__PURE__ */ jsxs("div", {
2323
2319
  className: "univer-flex univer-items-center univer-text-xs",
2324
- children: [/* @__PURE__ */ jsx(Checkbox, { onChange: reverseIcon }), localeService.t("sheet.cf.iconSet.reverseIconOrder")]
2320
+ children: [/* @__PURE__ */ jsx(Checkbox, { onChange: reverseIcon }), localeService.t("sheets-conditional-formatting-ui.iconSet.reverseIconOrder")]
2325
2321
  }), /* @__PURE__ */ jsxs("div", {
2326
2322
  className: "univer-ml-6 univer-flex univer-items-center univer-text-xs",
2327
2323
  children: [/* @__PURE__ */ jsx(Checkbox, {
@@ -2329,7 +2325,7 @@ const IconSet = (props) => {
2329
2325
  onChange: (v) => {
2330
2326
  setIsShowValue(!v);
2331
2327
  }
2332
- }), localeService.t("sheet.cf.iconSet.onlyShowIcon")]
2328
+ }), localeService.t("sheets-conditional-formatting-ui.iconSet.onlyShowIcon")]
2333
2329
  })]
2334
2330
  }),
2335
2331
  /* @__PURE__ */ jsx(IconSetRuleEdit, {
@@ -2349,19 +2345,19 @@ const RankStyleEditor = (props) => {
2349
2345
  const rule = ((_props$rule = props.rule) === null || _props$rule === void 0 ? void 0 : _props$rule.type) === CFRuleType.highlightCell ? props.rule : void 0;
2350
2346
  const options = [
2351
2347
  {
2352
- label: localeService.t("sheet.cf.panel.isNotBottom"),
2348
+ label: localeService.t("sheets-conditional-formatting-ui.panel.isNotBottom"),
2353
2349
  value: "isNotBottom"
2354
2350
  },
2355
2351
  {
2356
- label: localeService.t("sheet.cf.panel.isBottom"),
2352
+ label: localeService.t("sheets-conditional-formatting-ui.panel.isBottom"),
2357
2353
  value: "isBottom"
2358
2354
  },
2359
2355
  {
2360
- label: localeService.t("sheet.cf.panel.greaterThanAverage"),
2356
+ label: localeService.t("sheets-conditional-formatting-ui.panel.greaterThanAverage"),
2361
2357
  value: "greaterThanAverage"
2362
2358
  },
2363
2359
  {
2364
- label: localeService.t("sheet.cf.panel.lessThanAverage"),
2360
+ label: localeService.t("sheets-conditional-formatting-ui.panel.lessThanAverage"),
2365
2361
  value: "lessThanAverage"
2366
2362
  }
2367
2363
  ];
@@ -2457,7 +2453,7 @@ const RankStyleEditor = (props) => {
2457
2453
  return /* @__PURE__ */ jsxs("div", { children: [
2458
2454
  /* @__PURE__ */ jsx("div", {
2459
2455
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2460
- children: localeService.t("sheet.cf.panel.styleRule")
2456
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleRule")
2461
2457
  }),
2462
2458
  /* @__PURE__ */ jsx(Select, {
2463
2459
  className: "univer-mt-3 univer-w-full",
@@ -2502,7 +2498,7 @@ const RankStyleEditor = (props) => {
2502
2498
  style
2503
2499
  });
2504
2500
  }
2505
- }), localeService.t("sheet.cf.valueType.percent")]
2501
+ }), localeService.t("sheets-conditional-formatting-ui.valueType.percent")]
2506
2502
  })]
2507
2503
  }),
2508
2504
  /* @__PURE__ */ jsx("div", {
@@ -2569,27 +2565,27 @@ const RuleEdit = (props) => {
2569
2565
  }, [props.rule]);
2570
2566
  const options = [
2571
2567
  {
2572
- label: localeService.t("sheet.cf.ruleType.highlightCell"),
2568
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.highlightCell"),
2573
2569
  value: "1"
2574
2570
  },
2575
2571
  {
2576
- label: localeService.t("sheet.cf.panel.rankAndAverage"),
2572
+ label: localeService.t("sheets-conditional-formatting-ui.panel.rankAndAverage"),
2577
2573
  value: "2"
2578
2574
  },
2579
2575
  {
2580
- label: localeService.t("sheet.cf.ruleType.dataBar"),
2576
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.dataBar"),
2581
2577
  value: "3"
2582
2578
  },
2583
2579
  {
2584
- label: localeService.t("sheet.cf.ruleType.colorScale"),
2580
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.colorScale"),
2585
2581
  value: "4"
2586
2582
  },
2587
2583
  {
2588
- label: localeService.t("sheet.cf.ruleType.formula"),
2584
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.formula"),
2589
2585
  value: "5"
2590
2586
  },
2591
2587
  {
2592
- label: localeService.t("sheet.cf.ruleType.iconSet"),
2588
+ label: localeService.t("sheets-conditional-formatting-ui.ruleType.iconSet"),
2593
2589
  value: "6"
2594
2590
  }
2595
2591
  ];
@@ -2700,14 +2696,14 @@ const RuleEdit = (props) => {
2700
2696
  props.onCancel();
2701
2697
  };
2702
2698
  const handleVerify = (v, rangeText) => {
2703
- if (v) if (rangeText.length < 1) setErrorText(localeService.t("sheet.cf.errorMessage.rangeError"));
2699
+ if (v) if (rangeText.length < 1) setErrorText(localeService.t("sheets-conditional-formatting-ui.errorMessage.rangeError"));
2704
2700
  else setErrorText(void 0);
2705
- else setErrorText(localeService.t("sheet.cf.errorMessage.rangeError"));
2701
+ else setErrorText(localeService.t("sheets-conditional-formatting-ui.errorMessage.rangeError"));
2706
2702
  };
2707
2703
  return /* @__PURE__ */ jsxs("div", { children: [
2708
2704
  /* @__PURE__ */ jsx("div", {
2709
2705
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2710
- children: localeService.t("sheet.cf.panel.range")
2706
+ children: localeService.t("sheets-conditional-formatting-ui.panel.range")
2711
2707
  }),
2712
2708
  /* @__PURE__ */ jsxs("div", {
2713
2709
  className: "univer-mt-4",
@@ -2724,7 +2720,7 @@ const RuleEdit = (props) => {
2724
2720
  }),
2725
2721
  /* @__PURE__ */ jsx("div", {
2726
2722
  className: "univer-mt-4 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
2727
- children: localeService.t("sheet.cf.panel.styleType")
2723
+ children: localeService.t("sheets-conditional-formatting-ui.panel.styleType")
2728
2724
  }),
2729
2725
  /* @__PURE__ */ jsx(Select, {
2730
2726
  className: "univer-mt-4 univer-w-full",
@@ -2741,19 +2737,19 @@ const RuleEdit = (props) => {
2741
2737
  className: "univer-mt-4 univer-flex univer-justify-end",
2742
2738
  children: [/* @__PURE__ */ jsx(Button, {
2743
2739
  onClick: handleCancel,
2744
- children: localeService.t("sheet.cf.panel.cancel")
2740
+ children: localeService.t("sheets-conditional-formatting-ui.panel.cancel")
2745
2741
  }), /* @__PURE__ */ jsx(Button, {
2746
2742
  className: "univer-ml-3",
2747
2743
  variant: "primary",
2748
2744
  onClick: handleSubmit,
2749
- children: localeService.t("sheet.cf.panel.submit")
2745
+ children: localeService.t("sheets-conditional-formatting-ui.panel.submit")
2750
2746
  })]
2751
2747
  })
2752
2748
  ] });
2753
2749
  };
2754
2750
 
2755
2751
  //#endregion
2756
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
2752
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
2757
2753
  function _typeof(o) {
2758
2754
  "@babel/helpers - typeof";
2759
2755
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -2764,7 +2760,7 @@ function _typeof(o) {
2764
2760
  }
2765
2761
 
2766
2762
  //#endregion
2767
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
2763
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
2768
2764
  function toPrimitive(t, r) {
2769
2765
  if ("object" != _typeof(t) || !t) return t;
2770
2766
  var e = t[Symbol.toPrimitive];
@@ -2777,14 +2773,14 @@ function toPrimitive(t, r) {
2777
2773
  }
2778
2774
 
2779
2775
  //#endregion
2780
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
2776
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
2781
2777
  function toPropertyKey(t) {
2782
2778
  var i = toPrimitive(t, "string");
2783
2779
  return "symbol" == _typeof(i) ? i : i + "";
2784
2780
  }
2785
2781
 
2786
2782
  //#endregion
2787
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
2783
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
2788
2784
  function _defineProperty(e, r, t) {
2789
2785
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2790
2786
  value: t,
@@ -2795,7 +2791,7 @@ function _defineProperty(e, r, t) {
2795
2791
  }
2796
2792
 
2797
2793
  //#endregion
2798
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
2794
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
2799
2795
  function __decorateParam(paramIndex, decorator) {
2800
2796
  return function(target, key) {
2801
2797
  decorator(target, key, paramIndex);
@@ -2803,7 +2799,7 @@ function __decorateParam(paramIndex, decorator) {
2803
2799
  }
2804
2800
 
2805
2801
  //#endregion
2806
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
2802
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
2807
2803
  function __decorate(decorators, target, key, desc) {
2808
2804
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2809
2805
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2867,33 +2863,33 @@ ConditionalFormattingI18nController = __decorate([__decorateParam(0, Inject(Loca
2867
2863
  const getRuleDescribe = (rule, localeService) => {
2868
2864
  const ruleConfig = rule.rule;
2869
2865
  switch (ruleConfig.type) {
2870
- case CFRuleType.colorScale: return localeService.t("sheet.cf.ruleType.colorScale");
2871
- case CFRuleType.dataBar: return localeService.t("sheet.cf.ruleType.dataBar");
2872
- case CFRuleType.iconSet: return localeService.t("sheet.cf.ruleType.iconSet");
2866
+ case CFRuleType.colorScale: return localeService.t("sheets-conditional-formatting-ui.ruleType.colorScale");
2867
+ case CFRuleType.dataBar: return localeService.t("sheets-conditional-formatting-ui.ruleType.dataBar");
2868
+ case CFRuleType.iconSet: return localeService.t("sheets-conditional-formatting-ui.ruleType.iconSet");
2873
2869
  case CFRuleType.highlightCell: switch (ruleConfig.subType) {
2874
2870
  case CFSubRuleType.average: {
2875
2871
  const operator = ruleConfig.operator;
2876
- return localeService.t(`sheet.cf.preview.describe.${operator}`, localeService.t("sheet.cf.subRuleType.average"));
2872
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, localeService.t("sheets-conditional-formatting-ui.subRuleType.average"));
2877
2873
  }
2878
- case CFSubRuleType.duplicateValues: return localeService.t("sheet.cf.subRuleType.duplicateValues");
2879
- case CFSubRuleType.uniqueValues: return localeService.t("sheet.cf.subRuleType.uniqueValues");
2874
+ case CFSubRuleType.duplicateValues: return localeService.t("sheets-conditional-formatting-ui.subRuleType.duplicateValues");
2875
+ case CFSubRuleType.uniqueValues: return localeService.t("sheets-conditional-formatting-ui.subRuleType.uniqueValues");
2880
2876
  case CFSubRuleType.number: {
2881
2877
  const operator = ruleConfig.operator;
2882
- return localeService.t(`sheet.cf.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e) => String(e)) : [String(ruleConfig.value || "")]);
2878
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, ...Array.isArray(ruleConfig.value) ? ruleConfig.value.map((e) => String(e)) : [String(ruleConfig.value || "")]);
2883
2879
  }
2884
2880
  case CFSubRuleType.text: {
2885
2881
  const operator = ruleConfig.operator;
2886
- return localeService.t(`sheet.cf.preview.describe.${operator}`, ruleConfig.value || "");
2882
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`, ruleConfig.value || "");
2887
2883
  }
2888
2884
  case CFSubRuleType.timePeriod: {
2889
2885
  const operator = ruleConfig.operator;
2890
- return localeService.t(`sheet.cf.preview.describe.${operator}`);
2886
+ return localeService.t(`sheets-conditional-formatting-ui.preview.describe.${operator}`);
2891
2887
  }
2892
- case CFSubRuleType.rank: if (ruleConfig.isPercent) if (ruleConfig.isBottom) return localeService.t("sheet.cf.preview.describe.bottomNPercent", String(ruleConfig.value));
2893
- else return localeService.t("sheet.cf.preview.describe.topNPercent", String(ruleConfig.value));
2894
- else if (ruleConfig.isBottom) return localeService.t("sheet.cf.preview.describe.bottomN", String(ruleConfig.value));
2895
- else return localeService.t("sheet.cf.preview.describe.topN", String(ruleConfig.value));
2896
- case CFSubRuleType.formula: return localeService.t("sheet.cf.ruleType.formula");
2888
+ case CFSubRuleType.rank: if (ruleConfig.isPercent) if (ruleConfig.isBottom) return localeService.t("sheets-conditional-formatting-ui.preview.describe.bottomNPercent", String(ruleConfig.value));
2889
+ else return localeService.t("sheets-conditional-formatting-ui.preview.describe.topNPercent", String(ruleConfig.value));
2890
+ else if (ruleConfig.isBottom) return localeService.t("sheets-conditional-formatting-ui.preview.describe.bottomN", String(ruleConfig.value));
2891
+ else return localeService.t("sheets-conditional-formatting-ui.preview.describe.topN", String(ruleConfig.value));
2892
+ case CFSubRuleType.formula: return localeService.t("sheets-conditional-formatting-ui.ruleType.formula");
2897
2893
  }
2898
2894
  }
2899
2895
  };
@@ -2916,10 +2912,10 @@ const RuleList = (props) => {
2916
2912
  const [fetchRuleListId, setFetchRuleListId] = useState(0);
2917
2913
  const [draggingId, setDraggingId] = useState("");
2918
2914
  const selectOption = [{
2919
- label: localeService.t("sheet.cf.panel.workSheet"),
2915
+ label: localeService.t("sheets-conditional-formatting-ui.panel.workSheet"),
2920
2916
  value: "2"
2921
2917
  }, {
2922
- label: localeService.t("sheet.cf.panel.selectedRange"),
2918
+ label: localeService.t("sheets-conditional-formatting-ui.panel.selectedRange"),
2923
2919
  value: "1"
2924
2920
  }];
2925
2921
  const getRuleList = () => {
@@ -3060,7 +3056,7 @@ const RuleList = (props) => {
3060
3056
  className: "\n univer-mb-2 univer-flex univer-items-center univer-justify-between univer-gap-2 univer-text-sm\n ",
3061
3057
  children: [/* @__PURE__ */ jsx("div", {
3062
3058
  className: "univer-flex univer-items-center univer-gap-2",
3063
- children: conditionalFormattingI18nController.tWithReactNode("sheet.cf.panel.managerRuleSelect", /* @__PURE__ */ jsx(Select, {
3059
+ children: conditionalFormattingI18nController.tWithReactNode("sheets-conditional-formatting-ui.panel.managerRuleSelect", /* @__PURE__ */ jsx(Select, {
3064
3060
  className: "univer-w-36",
3065
3061
  options: selectOption,
3066
3062
  value: selectValue,
@@ -3071,7 +3067,7 @@ const RuleList = (props) => {
3071
3067
  }), /* @__PURE__ */ jsxs("div", {
3072
3068
  className: "univer-flex univer-justify-end univer-space-x-2",
3073
3069
  children: [/* @__PURE__ */ jsx(Tooltip, {
3074
- title: localeService.t("sheet.cf.panel.createRule"),
3070
+ title: localeService.t("sheets-conditional-formatting-ui.panel.createRule"),
3075
3071
  placement: "bottom",
3076
3072
  children: /* @__PURE__ */ jsx("a", {
3077
3073
  className: "univer-size-5 univer-cursor-pointer",
@@ -3079,7 +3075,7 @@ const RuleList = (props) => {
3079
3075
  children: /* @__PURE__ */ jsx(IncreaseIcon, {})
3080
3076
  })
3081
3077
  }), ruleList.length && isHasAllRuleEditPermission ? /* @__PURE__ */ jsx(Tooltip, {
3082
- title: localeService.t("sheet.cf.panel.clear"),
3078
+ title: localeService.t("sheets-conditional-formatting-ui.panel.clear"),
3083
3079
  placement: "bottom",
3084
3080
  children: /* @__PURE__ */ jsx("a", {
3085
3081
  className: "univer-size-5 univer-cursor-pointer",
@@ -3194,7 +3190,7 @@ let ConditionalFormattingPanelController = class ConditionalFormattingPanelContr
3194
3190
  openPanel(rule) {
3195
3191
  const props = {
3196
3192
  id: CF_PANEL_KEY,
3197
- header: { title: this._localeService.t("sheet.cf.title") },
3193
+ header: { title: this._localeService.t("sheets-conditional-formatting-ui.title") },
3198
3194
  children: {
3199
3195
  label: CF_PANEL_KEY,
3200
3196
  rule,
@@ -3422,7 +3418,7 @@ function generateClearCfMutations(injector, allRules, ranges, unitId, subUnitId)
3422
3418
  //#endregion
3423
3419
  //#region package.json
3424
3420
  var name = "@univerjs/sheets-conditional-formatting-ui";
3425
- var version = "0.24.0";
3421
+ var version = "0.25.0";
3426
3422
 
3427
3423
  //#endregion
3428
3424
  //#region src/config/config.ts
@@ -3867,7 +3863,7 @@ let ConditionalFormattingPermissionController = class ConditionalFormattingPermi
3867
3863
  workbookTypes: [WorkbookEditablePermission],
3868
3864
  rangeTypes: [RangeProtectionPermissionEditPoint],
3869
3865
  worksheetTypes: [WorksheetEditPermission, WorksheetSetCellStylePermission]
3870
- }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"));
3866
+ }, ranges, unitId, subUnitId)) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-conditional-formatting-ui.permission.dialog.setStyleErr"));
3871
3867
  }
3872
3868
  }));
3873
3869
  }
@@ -4564,63 +4560,63 @@ const commandList = [
4564
4560
  const commonSelections = [
4565
4561
  {
4566
4562
  label: {
4567
- name: "sheet.cf.ruleType.highlightCell",
4563
+ name: "sheets-conditional-formatting-ui.ruleType.highlightCell",
4568
4564
  selectable: false
4569
4565
  },
4570
4566
  value: 3
4571
4567
  },
4572
4568
  {
4573
4569
  label: {
4574
- name: "sheet.cf.panel.rankAndAverage",
4570
+ name: "sheets-conditional-formatting-ui.panel.rankAndAverage",
4575
4571
  selectable: false
4576
4572
  },
4577
4573
  value: 4
4578
4574
  },
4579
4575
  {
4580
4576
  label: {
4581
- name: "sheet.cf.ruleType.formula",
4577
+ name: "sheets-conditional-formatting-ui.ruleType.formula",
4582
4578
  selectable: false
4583
4579
  },
4584
4580
  value: 5
4585
4581
  },
4586
4582
  {
4587
4583
  label: {
4588
- name: "sheet.cf.ruleType.colorScale",
4584
+ name: "sheets-conditional-formatting-ui.ruleType.colorScale",
4589
4585
  selectable: false
4590
4586
  },
4591
4587
  value: 6
4592
4588
  },
4593
4589
  {
4594
4590
  label: {
4595
- name: "sheet.cf.ruleType.dataBar",
4591
+ name: "sheets-conditional-formatting-ui.ruleType.dataBar",
4596
4592
  selectable: false
4597
4593
  },
4598
4594
  value: 7
4599
4595
  },
4600
4596
  {
4601
4597
  label: {
4602
- name: "sheet.cf.ruleType.iconSet",
4598
+ name: "sheets-conditional-formatting-ui.ruleType.iconSet",
4603
4599
  selectable: false
4604
4600
  },
4605
4601
  value: 8
4606
4602
  },
4607
4603
  {
4608
4604
  label: {
4609
- name: "sheet.cf.menu.manageConditionalFormatting",
4605
+ name: "sheets-conditional-formatting-ui.menu.manageConditionalFormatting",
4610
4606
  selectable: false
4611
4607
  },
4612
4608
  value: 2
4613
4609
  },
4614
4610
  {
4615
4611
  label: {
4616
- name: "sheet.cf.menu.createConditionalFormatting",
4612
+ name: "sheets-conditional-formatting-ui.menu.createConditionalFormatting",
4617
4613
  selectable: false
4618
4614
  },
4619
4615
  value: 1
4620
4616
  },
4621
4617
  {
4622
4618
  label: {
4623
- name: "sheet.cf.menu.clearRangeRules",
4619
+ name: "sheets-conditional-formatting-ui.menu.clearRangeRules",
4624
4620
  selectable: false
4625
4621
  },
4626
4622
  value: 9,
@@ -4628,7 +4624,7 @@ const commonSelections = [
4628
4624
  },
4629
4625
  {
4630
4626
  label: {
4631
- name: "sheet.cf.menu.clearWorkSheetRules",
4627
+ name: "sheets-conditional-formatting-ui.menu.clearWorkSheetRules",
4632
4628
  selectable: false
4633
4629
  },
4634
4630
  value: 10
@@ -4703,7 +4699,7 @@ const FactoryManageConditionalFormattingRule = (accessor) => {
4703
4699
  id: OpenConditionalFormattingOperator.id,
4704
4700
  type: MenuItemType.SELECTOR,
4705
4701
  icon: "ConditionsDoubleIcon",
4706
- tooltip: "sheet.cf.title",
4702
+ tooltip: "sheets-conditional-formatting-ui.title",
4707
4703
  selections: selections$,
4708
4704
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
4709
4705
  disabled$: getCurrentRangeDisable$(accessor, {