@univerjs/sheets-table-ui 1.0.0-alpha.7 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/index.js +41 -50
  2. package/lib/cjs/locale/ca-ES.js +4 -4
  3. package/lib/cjs/locale/es-ES.js +4 -4
  4. package/lib/cjs/locale/fa-IR.js +4 -4
  5. package/lib/cjs/locale/fr-FR.js +4 -4
  6. package/lib/cjs/locale/ja-JP.js +4 -4
  7. package/lib/cjs/locale/ko-KR.js +4 -4
  8. package/lib/cjs/locale/pl-PL.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +4 -4
  10. package/lib/cjs/locale/sk-SK.js +4 -4
  11. package/lib/cjs/locale/vi-VN.js +5 -5
  12. package/lib/cjs/locale/zh-HK.js +15 -15
  13. package/lib/cjs/locale/zh-TW.js +15 -15
  14. package/lib/es/index.js +44 -53
  15. package/lib/es/locale/ca-ES.js +4 -4
  16. package/lib/es/locale/es-ES.js +4 -4
  17. package/lib/es/locale/fa-IR.js +4 -4
  18. package/lib/es/locale/fr-FR.js +4 -4
  19. package/lib/es/locale/ja-JP.js +4 -4
  20. package/lib/es/locale/ko-KR.js +4 -4
  21. package/lib/es/locale/pl-PL.js +1 -1
  22. package/lib/es/locale/ru-RU.js +4 -4
  23. package/lib/es/locale/sk-SK.js +4 -4
  24. package/lib/es/locale/vi-VN.js +5 -5
  25. package/lib/es/locale/zh-HK.js +15 -15
  26. package/lib/es/locale/zh-TW.js +15 -15
  27. package/lib/index.js +44 -53
  28. package/lib/locale/ca-ES.js +4 -4
  29. package/lib/locale/es-ES.js +4 -4
  30. package/lib/locale/fa-IR.js +4 -4
  31. package/lib/locale/fr-FR.js +4 -4
  32. package/lib/locale/ja-JP.js +4 -4
  33. package/lib/locale/ko-KR.js +4 -4
  34. package/lib/locale/pl-PL.js +1 -1
  35. package/lib/locale/ru-RU.js +4 -4
  36. package/lib/locale/sk-SK.js +4 -4
  37. package/lib/locale/vi-VN.js +5 -5
  38. package/lib/locale/zh-HK.js +15 -15
  39. package/lib/locale/zh-TW.js +15 -15
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ja-JP.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/pl-PL.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-HK.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +14 -14
package/lib/cjs/index.js CHANGED
@@ -50,14 +50,13 @@ const OpenTableSelectorOperation = {
50
50
  type: _univerjs_core.CommandType.OPERATION,
51
51
  id: "sheet.operation.open-table-selector",
52
52
  async handler(accessor) {
53
- var _lastSelection$range;
54
53
  const univerInstanceService = accessor.get(_univerjs_core.IUniverInstanceService);
55
54
  const commandService = accessor.get(_univerjs_core.ICommandService);
56
55
  const target = (0, _univerjs_sheets.getSheetCommandTarget)(univerInstanceService);
57
56
  if (!target) return false;
58
57
  const { unitId, subUnitId, worksheet } = target;
59
58
  const lastSelection = accessor.get(_univerjs_sheets.SheetsSelectionsService).getCurrentLastSelection();
60
- const range = (_lastSelection$range = lastSelection === null || lastSelection === void 0 ? void 0 : lastSelection.range) !== null && _lastSelection$range !== void 0 ? _lastSelection$range : {
59
+ const range = (lastSelection === null || lastSelection === void 0 ? void 0 : lastSelection.range) ?? {
61
60
  startRow: 0,
62
61
  endRow: 0,
63
62
  startColumn: 0,
@@ -96,7 +95,6 @@ async function openRangeSelector(accessor, unitId, subUnitId, range, tableId) {
96
95
  id: TABLE_SELECTOR_DIALOG,
97
96
  title: { title: localeService.t("sheets-table-ui.selectRange") },
98
97
  draggable: true,
99
- destroyOnClose: true,
100
98
  mask: false,
101
99
  maskClosable: false,
102
100
  children: { label: {
@@ -250,10 +248,10 @@ const menuSchema = {
250
248
  //#endregion
251
249
  //#region package.json
252
250
  var name = "@univerjs/sheets-table-ui";
253
- var version = "1.0.0-alpha.7";
251
+ var version = "1.0.0-beta.0";
254
252
 
255
253
  //#endregion
256
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
254
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
257
255
  function _typeof(o) {
258
256
  "@babel/helpers - typeof";
259
257
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -264,7 +262,7 @@ function _typeof(o) {
264
262
  }
265
263
 
266
264
  //#endregion
267
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
265
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
268
266
  function toPrimitive(t, r) {
269
267
  if ("object" != _typeof(t) || !t) return t;
270
268
  var e = t[Symbol.toPrimitive];
@@ -277,14 +275,14 @@ function toPrimitive(t, r) {
277
275
  }
278
276
 
279
277
  //#endregion
280
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
278
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
281
279
  function toPropertyKey(t) {
282
280
  var i = toPrimitive(t, "string");
283
281
  return "symbol" == _typeof(i) ? i : i + "";
284
282
  }
285
283
 
286
284
  //#endregion
287
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
285
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
288
286
  function _defineProperty(e, r, t) {
289
287
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
290
288
  value: t,
@@ -295,7 +293,7 @@ function _defineProperty(e, r, t) {
295
293
  }
296
294
 
297
295
  //#endregion
298
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorateParam.js
296
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
299
297
  function __decorateParam(paramIndex, decorator) {
300
298
  return function(target, key) {
301
299
  decorator(target, key, paramIndex);
@@ -303,7 +301,7 @@ function __decorateParam(paramIndex, decorator) {
303
301
  }
304
302
 
305
303
  //#endregion
306
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
304
+ //#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
307
305
  function __decorate(decorators, target, key, desc) {
308
306
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
309
307
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -901,7 +899,7 @@ function getInitConditionInfo(tableFilter) {
901
899
  //#endregion
902
900
  //#region src/views/components/SheetTableConditionPanel.tsx
903
901
  const SheetTableConditionPanel = (props) => {
904
- var _conditionInfo$info$d, _conditionInfo$info$d2, _conditionInfo$info$d3, _conditionInfo$info$d4, _conditionInfo$info$d5, _conditionInfo$info$n, _conditionInfo$info$n3, _conditionInfo$info$d6;
902
+ var _conditionInfo$info$d, _conditionInfo$info$d2, _conditionInfo$info$n, _conditionInfo$info$n3;
905
903
  const { conditionInfo, onChange } = props;
906
904
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
907
905
  const [conditionVisible, setConditionVisible] = (0, react.useState)(false);
@@ -909,13 +907,12 @@ const SheetTableConditionPanel = (props) => {
909
907
  const cascaderOptions = getCascaderListOptions(injector);
910
908
  const handleConditionInfo = (info, type, compare) => {
911
909
  onChange({
912
- type: type !== null && type !== void 0 ? type : conditionInfo.type,
913
- compare: compare !== null && compare !== void 0 ? compare : conditionInfo.compare,
910
+ type: type ?? conditionInfo.type,
911
+ compare: compare ?? conditionInfo.compare,
914
912
  info
915
913
  });
916
914
  };
917
915
  const handleChange = (value) => {
918
- var _ref;
919
916
  const type = value[0];
920
917
  const compare = value[1];
921
918
  if (compare) setConditionVisible(false);
@@ -926,7 +923,7 @@ const SheetTableConditionPanel = (props) => {
926
923
  else info.dateRange = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()];
927
924
  else if (type === _univerjs_sheets_table.TableConditionTypeEnum.Number) info.number = 0;
928
925
  else if (type === _univerjs_sheets_table.TableConditionTypeEnum.String) info.string = "";
929
- handleConditionInfo(info, value[0], (_ref = value[1]) !== null && _ref !== void 0 ? _ref : _univerjs_sheets_table.TableStringCompareTypeEnum.Equal);
926
+ handleConditionInfo(info, value[0], value[1] ?? _univerjs_sheets_table.TableStringCompareTypeEnum.Equal);
930
927
  };
931
928
  const subComponentType = getSubComponentType(conditionInfo.type, conditionInfo.compare);
932
929
  let selectType = "";
@@ -968,7 +965,7 @@ const SheetTableConditionPanel = (props) => {
968
965
  id: "univer-table-date-picker-wrapper",
969
966
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.DatePicker, {
970
967
  className: "univer-w-full",
971
- value: (_conditionInfo$info$d = conditionInfo.info.date) !== null && _conditionInfo$info$d !== void 0 ? _conditionInfo$info$d : /* @__PURE__ */ new Date(),
968
+ value: conditionInfo.info.date ?? /* @__PURE__ */ new Date(),
972
969
  onValueChange: (v) => handleConditionInfo({ date: v })
973
970
  })
974
971
  }),
@@ -976,7 +973,7 @@ const SheetTableConditionPanel = (props) => {
976
973
  id: "univer-table-date-range-wrapper",
977
974
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.DateRangePicker, {
978
975
  className: "univer-w-full",
979
- value: [(_conditionInfo$info$d2 = (_conditionInfo$info$d3 = conditionInfo.info.dateRange) === null || _conditionInfo$info$d3 === void 0 ? void 0 : _conditionInfo$info$d3[0]) !== null && _conditionInfo$info$d2 !== void 0 ? _conditionInfo$info$d2 : /* @__PURE__ */ new Date(), (_conditionInfo$info$d4 = (_conditionInfo$info$d5 = conditionInfo.info.dateRange) === null || _conditionInfo$info$d5 === void 0 ? void 0 : _conditionInfo$info$d5[1]) !== null && _conditionInfo$info$d4 !== void 0 ? _conditionInfo$info$d4 : /* @__PURE__ */ new Date()],
976
+ value: [((_conditionInfo$info$d = conditionInfo.info.dateRange) === null || _conditionInfo$info$d === void 0 ? void 0 : _conditionInfo$info$d[0]) ?? /* @__PURE__ */ new Date(), ((_conditionInfo$info$d2 = conditionInfo.info.dateRange) === null || _conditionInfo$info$d2 === void 0 ? void 0 : _conditionInfo$info$d2[1]) ?? /* @__PURE__ */ new Date()],
980
977
  onValueChange: (v) => {
981
978
  if (v) handleConditionInfo({ dateRange: v });
982
979
  else handleConditionInfo({});
@@ -1013,7 +1010,7 @@ const SheetTableConditionPanel = (props) => {
1013
1010
  }),
1014
1011
  !!(subComponentType === "Select") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
1015
1012
  className: "univer-w-full",
1016
- value: (_conditionInfo$info$d6 = conditionInfo.info.dateSelect) !== null && _conditionInfo$info$d6 !== void 0 ? _conditionInfo$info$d6 : conditionDateOptions[0].value,
1013
+ value: conditionInfo.info.dateSelect ?? conditionDateOptions[0].value,
1017
1014
  options: conditionDateOptions,
1018
1015
  onChange: (v) => handleConditionInfo({ dateSelect: v })
1019
1016
  })
@@ -1026,8 +1023,7 @@ const SheetTableConditionPanel = (props) => {
1026
1023
  const getCheckedItemCount = (map, checkedItemSet) => {
1027
1024
  let count = 0;
1028
1025
  checkedItemSet.forEach((item) => {
1029
- var _map$get;
1030
- count += (_map$get = map.get(item)) !== null && _map$get !== void 0 ? _map$get : 0;
1026
+ count += map.get(item) ?? 0;
1031
1027
  });
1032
1028
  return count;
1033
1029
  };
@@ -1382,7 +1378,6 @@ function SheetTableFilterPanel() {
1382
1378
  //#endregion
1383
1379
  //#region src/views/components/SheetTableRenameDialog.tsx
1384
1380
  function SheetTableRenameDialog(props) {
1385
- var _table$getDisplayName;
1386
1381
  const { unitId, tableId, onClose } = props;
1387
1382
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
1388
1383
  const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
@@ -1390,7 +1385,7 @@ function SheetTableRenameDialog(props) {
1390
1385
  const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
1391
1386
  const definedNamesService = (0, _univerjs_ui.useDependency)(_univerjs_engine_formula.IDefinedNamesService);
1392
1387
  const table = tableManager.getTableById(unitId, tableId);
1393
- const [value, setValue] = (0, react.useState)((_table$getDisplayName = table === null || table === void 0 ? void 0 : table.getDisplayName()) !== null && _table$getDisplayName !== void 0 ? _table$getDisplayName : "");
1388
+ const [value, setValue] = (0, react.useState)((table === null || table === void 0 ? void 0 : table.getDisplayName()) ?? "");
1394
1389
  const [error, setError] = (0, react.useState)("");
1395
1390
  const existingNames = (0, react.useMemo)(() => {
1396
1391
  const names = (0, _univerjs_sheets_table.getExistingNamesSet)(unitId, {
@@ -1578,7 +1573,7 @@ SheetTableThemeUIController = __decorate([__decorateParam(0, (0, _univerjs_core.
1578
1573
  //#endregion
1579
1574
  //#region src/views/components/SheetTableThemePanel.tsx
1580
1575
  const SheetTableThemePanel = (props) => {
1581
- var _customStyle$getHeade, _customStyle$getHeade2, _customStyle$getFirst, _customStyle$getFirst2, _customStyle$getSecon, _customStyle$getSecon2, _customStyle$getLastR, _customStyle$getLastR2;
1576
+ var _customStyle$getHeade, _customStyle$getFirst, _customStyle$getSecon, _customStyle$getLastR;
1582
1577
  const { unitId, subUnitId, tableId } = props;
1583
1578
  const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
1584
1579
  const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
@@ -1603,10 +1598,10 @@ const SheetTableThemePanel = (props) => {
1603
1598
  const customSelected = customRangeThemes.find((item) => item === selectedTheme);
1604
1599
  const customStyleName = customSelected || customRangeThemes[0];
1605
1600
  const customStyle = rangeThemeModel.getCustomRangeThemeStyle(unitId, customStyleName);
1606
- const headerBg = (_customStyle$getHeade = customStyle === null || customStyle === void 0 || (_customStyle$getHeade2 = customStyle.getHeaderRowStyle()) === null || _customStyle$getHeade2 === void 0 || (_customStyle$getHeade2 = _customStyle$getHeade2.bg) === null || _customStyle$getHeade2 === void 0 ? void 0 : _customStyle$getHeade2.rgb) !== null && _customStyle$getHeade !== void 0 ? _customStyle$getHeade : TABLE_DEFAULT_BG_COLOR;
1607
- const firstRowBg = (_customStyle$getFirst = customStyle === null || customStyle === void 0 || (_customStyle$getFirst2 = customStyle.getFirstRowStyle()) === null || _customStyle$getFirst2 === void 0 || (_customStyle$getFirst2 = _customStyle$getFirst2.bg) === null || _customStyle$getFirst2 === void 0 ? void 0 : _customStyle$getFirst2.rgb) !== null && _customStyle$getFirst !== void 0 ? _customStyle$getFirst : TABLE_DEFAULT_BG_COLOR;
1608
- const secondRowBg = (_customStyle$getSecon = customStyle === null || customStyle === void 0 || (_customStyle$getSecon2 = customStyle.getSecondRowStyle()) === null || _customStyle$getSecon2 === void 0 || (_customStyle$getSecon2 = _customStyle$getSecon2.bg) === null || _customStyle$getSecon2 === void 0 ? void 0 : _customStyle$getSecon2.rgb) !== null && _customStyle$getSecon !== void 0 ? _customStyle$getSecon : TABLE_DEFAULT_BG_COLOR;
1609
- const lastRowBg = (_customStyle$getLastR = customStyle === null || customStyle === void 0 || (_customStyle$getLastR2 = customStyle.getLastRowStyle()) === null || _customStyle$getLastR2 === void 0 || (_customStyle$getLastR2 = _customStyle$getLastR2.bg) === null || _customStyle$getLastR2 === void 0 ? void 0 : _customStyle$getLastR2.rgb) !== null && _customStyle$getLastR !== void 0 ? _customStyle$getLastR : TABLE_DEFAULT_BG_COLOR;
1601
+ const headerBg = (customStyle === null || customStyle === void 0 || (_customStyle$getHeade = customStyle.getHeaderRowStyle()) === null || _customStyle$getHeade === void 0 || (_customStyle$getHeade = _customStyle$getHeade.bg) === null || _customStyle$getHeade === void 0 ? void 0 : _customStyle$getHeade.rgb) ?? "rgb(255, 255, 255)";
1602
+ const firstRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getFirst = customStyle.getFirstRowStyle()) === null || _customStyle$getFirst === void 0 || (_customStyle$getFirst = _customStyle$getFirst.bg) === null || _customStyle$getFirst === void 0 ? void 0 : _customStyle$getFirst.rgb) ?? "rgb(255, 255, 255)";
1603
+ const secondRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getSecon = customStyle.getSecondRowStyle()) === null || _customStyle$getSecon === void 0 || (_customStyle$getSecon = _customStyle$getSecon.bg) === null || _customStyle$getSecon === void 0 ? void 0 : _customStyle$getSecon.rgb) ?? "rgb(255, 255, 255)";
1604
+ const lastRowBg = (customStyle === null || customStyle === void 0 || (_customStyle$getLastR = customStyle.getLastRowStyle()) === null || _customStyle$getLastR === void 0 || (_customStyle$getLastR = _customStyle$getLastR.bg) === null || _customStyle$getLastR === void 0 ? void 0 : _customStyle$getLastR.rgb) ?? "rgb(255, 255, 255)";
1610
1605
  const [hoverCustomId, setHoverCustomId] = (0, react.useState)(null);
1611
1606
  const handleThemeChange = (theme) => {
1612
1607
  commandService.executeCommand(_univerjs_sheets_table.SetSheetTableCommand.id, {
@@ -1713,28 +1708,28 @@ const SheetTableThemePanel = (props) => {
1713
1708
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1714
1709
  className: "univer-box-border univer-h-2.5",
1715
1710
  style: {
1716
- background: headerRowBg !== null && headerRowBg !== void 0 ? headerRowBg : TABLE_BORDER_NONE,
1711
+ background: headerRowBg ?? "none",
1717
1712
  border: `${headerRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
1718
1713
  }
1719
1714
  }),
1720
1715
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1721
1716
  className: "univer-box-border univer-h-2.5",
1722
1717
  style: {
1723
- background: firstRowBg !== null && firstRowBg !== void 0 ? firstRowBg : TABLE_BORDER_NONE,
1718
+ background: firstRowBg ?? "none",
1724
1719
  border: `${firstRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
1725
1720
  }
1726
1721
  }),
1727
1722
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1728
1723
  className: "univer-box-border univer-h-2.5",
1729
1724
  style: {
1730
- background: secondRowBg !== null && secondRowBg !== void 0 ? secondRowBg : TABLE_BORDER_NONE,
1725
+ background: secondRowBg ?? "none",
1731
1726
  border: `${secondRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
1732
1727
  }
1733
1728
  }),
1734
1729
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1735
1730
  className: "univer-box-border univer-h-2.5",
1736
1731
  style: {
1737
- background: lastRowBg !== null && lastRowBg !== void 0 ? lastRowBg : TABLE_BORDER_NONE,
1732
+ background: lastRowBg ?? "none",
1738
1733
  border: `${lastRowBg ? TABLE_BORDER_NONE : TABLE_BORDER_DEFAULT}`
1739
1734
  }
1740
1735
  }),
@@ -2057,12 +2052,11 @@ var SheetTableControlsShape = class extends _univerjs_engine_render.Shape {
2057
2052
  ctx.textBaseline = "middle";
2058
2053
  for (const item of this._items) this._drawAnchor(ctx, skeleton, item);
2059
2054
  if (this._hoveredInsertRegion) {
2060
- var _item$fill;
2061
2055
  const item = this._items.find((renderItem) => {
2062
2056
  var _this$_hoveredInsertR;
2063
2057
  return renderItem.tableId === ((_this$_hoveredInsertR = this._hoveredInsertRegion) === null || _this$_hoveredInsertR === void 0 ? void 0 : _this$_hoveredInsertR.tableId);
2064
2058
  });
2065
- this._drawInsertButton(ctx, this._hoveredInsertRegion, (_item$fill = item === null || item === void 0 ? void 0 : item.fill) !== null && _item$fill !== void 0 ? _item$fill : "#355bb7");
2059
+ this._drawInsertButton(ctx, this._hoveredInsertRegion, (item === null || item === void 0 ? void 0 : item.fill) ?? "#355bb7");
2066
2060
  this._regions.push(this._hoveredInsertRegion);
2067
2061
  }
2068
2062
  ctx.restore();
@@ -2256,7 +2250,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2256
2250
  this._refresh();
2257
2251
  }
2258
2252
  _initShape() {
2259
- var _this$_context$compon, _this$_context$compon2;
2253
+ var _this$_context$compon;
2260
2254
  this._context.scene.addObjects([this._shape], TABLE_CONTROLS_LAYER_INDEX);
2261
2255
  this.disposeWithMe((0, _univerjs_core.toDisposable)(() => {
2262
2256
  this._context.scene.removeObjects([this._shape]);
@@ -2270,11 +2264,11 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2270
2264
  this.disposeWithMe(this._shape.onPointerDown$.subscribeEvent((evt, state) => {
2271
2265
  this._handlePointerDown(evt, state);
2272
2266
  }));
2273
- this.disposeWithMe((_this$_context$compon = (_this$_context$compon2 = this._context.components.get(_univerjs_sheets_ui.SHEET_VIEW_KEY.MAIN)) === null || _this$_context$compon2 === void 0 ? void 0 : _this$_context$compon2.onPointerMove$.subscribeEvent((evt) => {
2267
+ this.disposeWithMe(((_this$_context$compon = this._context.components.get(_univerjs_sheets_ui.SHEET_VIEW_KEY.MAIN)) === null || _this$_context$compon === void 0 ? void 0 : _this$_context$compon.onPointerMove$.subscribeEvent((evt) => {
2274
2268
  const point = this._getLocalPoint(evt);
2275
2269
  const insertRegion = this._getInsertRegionFromPoint(point.x, point.y);
2276
2270
  this._shape.setHoveredInsertRegion(insertRegion);
2277
- })) !== null && _this$_context$compon !== void 0 ? _this$_context$compon : (0, _univerjs_core.toDisposable)(() => {}));
2271
+ })) ?? (0, _univerjs_core.toDisposable)(() => {}));
2278
2272
  }
2279
2273
  _initRefresh() {
2280
2274
  const commandExecuted$ = (0, _univerjs_core.fromCallback)(this._commandService.onCommandExecuted.bind(this._commandService)).pipe((0, rxjs.filter)(([command]) => {
@@ -2314,14 +2308,14 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2314
2308
  const unitId = this._context.unit.getUnitId();
2315
2309
  const subUnitId = worksheet.getSheetId();
2316
2310
  const items = this._tableManager.getTablesBySubunitId(unitId, subUnitId).map((table) => {
2317
- var _rangeTheme$getHeader, _rangeTheme$getHeader2, _rangeTheme$getHeader3, _rangeTheme$getHeader4;
2311
+ var _rangeTheme$getHeader, _rangeTheme$getHeader2;
2318
2312
  const rangeTheme = this._rangeThemeModel.getRangeThemeStyle(unitId, table.getTableStyleId());
2319
2313
  return {
2320
2314
  tableId: table.getId(),
2321
2315
  tableName: table.getDisplayName(),
2322
2316
  range: table.getRange(),
2323
- fill: (_rangeTheme$getHeader = rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader2 = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader2 === void 0 || (_rangeTheme$getHeader2 = _rangeTheme$getHeader2.bg) === null || _rangeTheme$getHeader2 === void 0 ? void 0 : _rangeTheme$getHeader2.rgb) !== null && _rangeTheme$getHeader !== void 0 ? _rangeTheme$getHeader : "rgb(53,91,183)",
2324
- text: (_rangeTheme$getHeader3 = rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader4 = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader4 === void 0 || (_rangeTheme$getHeader4 = _rangeTheme$getHeader4.cl) === null || _rangeTheme$getHeader4 === void 0 ? void 0 : _rangeTheme$getHeader4.rgb) !== null && _rangeTheme$getHeader3 !== void 0 ? _rangeTheme$getHeader3 : "rgb(255,255,255)"
2317
+ fill: (rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader === void 0 || (_rangeTheme$getHeader = _rangeTheme$getHeader.bg) === null || _rangeTheme$getHeader === void 0 ? void 0 : _rangeTheme$getHeader.rgb) ?? "rgb(53,91,183)",
2318
+ text: (rangeTheme === null || rangeTheme === void 0 || (_rangeTheme$getHeader2 = rangeTheme.getHeaderRowStyle()) === null || _rangeTheme$getHeader2 === void 0 || (_rangeTheme$getHeader2 = _rangeTheme$getHeader2.cl) === null || _rangeTheme$getHeader2 === void 0 ? void 0 : _rangeTheme$getHeader2.rgb) ?? "rgb(255,255,255)"
2325
2319
  };
2326
2320
  });
2327
2321
  this._shape.setItems(items);
@@ -2338,7 +2332,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2338
2332
  const point = this._getLocalPoint(evt);
2339
2333
  const hit = this._shape.hitTest(point.x, point.y);
2340
2334
  const insertRegion = this._isInsertHit(hit) ? hit : hit ? null : this._getInsertRegionFromPoint(point.x, point.y);
2341
- const activeHit = hit !== null && hit !== void 0 ? hit : insertRegion;
2335
+ const activeHit = hit ?? insertRegion;
2342
2336
  this._shape.setHoveredRegion(this._isInsertHit(hit) ? null : hit);
2343
2337
  this._shape.setHoveredInsertRegion(insertRegion);
2344
2338
  if (activeHit) {
@@ -2356,10 +2350,9 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2356
2350
  this._context.scene.resetCursor();
2357
2351
  }
2358
2352
  _handlePointerDown(evt, state) {
2359
- var _this$_shape$hitTest;
2360
2353
  if (evt.button === 2) return;
2361
2354
  const point = this._getLocalPoint(evt);
2362
- const hit = (_this$_shape$hitTest = this._shape.hitTest(point.x, point.y)) !== null && _this$_shape$hitTest !== void 0 ? _this$_shape$hitTest : this._getInsertRegionFromPoint(point.x, point.y);
2355
+ const hit = this._shape.hitTest(point.x, point.y) ?? this._getInsertRegionFromPoint(point.x, point.y);
2363
2356
  if (!hit) {
2364
2357
  this._closeFloatingControls();
2365
2358
  return;
@@ -2426,7 +2419,6 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2426
2419
  id: SHEET_TABLE_RENAME_DIALOG_ID,
2427
2420
  title: { title: this._localeService.t("sheets-table-ui.rename") },
2428
2421
  draggable: true,
2429
- destroyOnClose: true,
2430
2422
  mask: true,
2431
2423
  children: { label: {
2432
2424
  name: SHEET_TABLE_RENAME_DIALOG,
@@ -2517,12 +2509,11 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
2517
2509
  const previousTopGap = rowGaps[TABLE_CONTROL_GAP_ROW] ? { ...rowGaps[TABLE_CONTROL_GAP_ROW] } : null;
2518
2510
  let shouldSync = false;
2519
2511
  if (hasTopTable) {
2520
- var _baseGap$size;
2521
2512
  if (!this._topGapBaseBySkeleton.has(skeleton)) this._topGapBaseBySkeleton.set(skeleton, rowGaps[TABLE_CONTROL_GAP_ROW] ? { ...rowGaps[TABLE_CONTROL_GAP_ROW] } : null);
2522
2513
  const baseGap = this._topGapBaseBySkeleton.get(skeleton);
2523
2514
  rowGaps[TABLE_CONTROL_GAP_ROW] = {
2524
- ...baseGap !== null && baseGap !== void 0 ? baseGap : rowGaps[TABLE_CONTROL_GAP_ROW],
2525
- size: ((_baseGap$size = baseGap === null || baseGap === void 0 ? void 0 : baseGap.size) !== null && _baseGap$size !== void 0 ? _baseGap$size : 0) + 32
2515
+ ...baseGap ?? rowGaps[TABLE_CONTROL_GAP_ROW],
2516
+ size: ((baseGap === null || baseGap === void 0 ? void 0 : baseGap.size) ?? 0) + 32
2526
2517
  };
2527
2518
  shouldSync = true;
2528
2519
  } else if (this._topGapBaseBySkeleton.has(skeleton)) {
@@ -2743,12 +2734,12 @@ let SheetsTableFilterButtonRenderController = class SheetsTableFilterButtonRende
2743
2734
  const worksheet = workbook.getSheetBySheetId(worksheetId);
2744
2735
  if (!worksheet) return;
2745
2736
  for (const { range, states, tableId } of tableFilterRanges) {
2746
- var _this$_rangeThemeMode, _headerStyle$cl$rgb, _headerStyle$cl, _headerStyle$bg$rgb, _headerStyle$bg;
2737
+ var _this$_rangeThemeMode, _headerStyle$cl, _headerStyle$bg;
2747
2738
  const { startRow, startColumn, endColumn } = range;
2748
2739
  const table = this._tableManager.getTableById(unitId, tableId);
2749
2740
  const headerStyle = table ? (_this$_rangeThemeMode = this._rangeThemeModel.getRangeThemeStyle(unitId, table.getTableStyleId())) === null || _this$_rangeThemeMode === void 0 ? void 0 : _this$_rangeThemeMode.getHeaderRowStyle() : null;
2750
- const iconColor = (_headerStyle$cl$rgb = headerStyle === null || headerStyle === void 0 || (_headerStyle$cl = headerStyle.cl) === null || _headerStyle$cl === void 0 ? void 0 : _headerStyle$cl.rgb) !== null && _headerStyle$cl$rgb !== void 0 ? _headerStyle$cl$rgb : "#fff";
2751
- const hoverIconColor = (_headerStyle$bg$rgb = headerStyle === null || headerStyle === void 0 || (_headerStyle$bg = headerStyle.bg) === null || _headerStyle$bg === void 0 ? void 0 : _headerStyle$bg.rgb) !== null && _headerStyle$bg$rgb !== void 0 ? _headerStyle$bg$rgb : "#202124";
2741
+ const iconColor = (headerStyle === null || headerStyle === void 0 || (_headerStyle$cl = headerStyle.cl) === null || _headerStyle$cl === void 0 ? void 0 : _headerStyle$cl.rgb) ?? "#fff";
2742
+ const hoverIconColor = (headerStyle === null || headerStyle === void 0 || (_headerStyle$bg = headerStyle.bg) === null || _headerStyle$bg === void 0 ? void 0 : _headerStyle$bg.rgb) ?? "#202124";
2752
2743
  this._interceptCellContent(unitId, worksheetId, range);
2753
2744
  for (let col = startColumn; col <= endColumn; col++) {
2754
2745
  const key = `sheets-table-filter-button-${startRow}-${col}`;
@@ -3019,7 +3010,7 @@ _defineProperty(UniverSheetsTableUIPlugin, "packageName", name);
3019
3010
  _defineProperty(UniverSheetsTableUIPlugin, "version", version);
3020
3011
  _defineProperty(UniverSheetsTableUIPlugin, "type", _univerjs_core.UniverInstanceType.UNIVER_SHEET);
3021
3012
  UniverSheetsTableUIPlugin = __decorate([
3022
- (0, _univerjs_core.DependentOn)(_univerjs_sheets_table.UniverSheetsTablePlugin),
3013
+ (0, _univerjs_core.DependentOn)(_univerjs_engine_render.UniverRenderEnginePlugin, _univerjs_sheets.UniverSheetsPlugin, _univerjs_sheets_table.UniverSheetsTablePlugin, _univerjs_sheets_ui.UniverSheetsUIPlugin),
3023
3014
  __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
3024
3015
  __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.ICommandService)),
3025
3016
  __decorateParam(3, _univerjs_core.IConfigService),
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Taula",
5
5
  selectRange: "Selecciona el rang de la taula",
6
6
  rename: "Reanomena la taula",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Introdueix el nom de la taula",
8
8
  updateRange: "Actualitza el rang de la taula",
9
9
  tableRangeWithMergeError: "El rang de la taula no es pot superposar amb cel·les combinades",
10
10
  tableRangeWithOtherTableError: "El rang de la taula no es pot superposar amb altres taules",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Taula",
27
27
  tableNameError: "El nom de la taula no pot contenir espais, no pot començar amb un número i no pot ser idèntic a un nom de taula existent",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Insereix una columna de taula a l’esquerra",
30
+ "insert-right": "Insereix una columna de taula a la dreta",
31
+ delete: "Suprimeix la columna de la taula"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "Ascendent",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Tabla",
5
5
  selectRange: "Seleccionar rango de tabla",
6
6
  rename: "Renombrar tabla",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Introduce el nombre de la tabla",
8
8
  updateRange: "Actualizar rango de tabla",
9
9
  tableRangeWithMergeError: "El rango de la tabla no puede superponerse con celdas combinadas",
10
10
  tableRangeWithOtherTableError: "El rango de la tabla no puede superponerse con otras tablas",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Tabla",
27
27
  tableNameError: "El nombre de la tabla no puede contener espacios, no puede comenzar con un número y no puede ser idéntico a un nombre de tabla existente",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Insertar 1 columna a la izquierda",
30
+ "insert-right": "Insertar 1 columna a la derecha",
31
+ delete: "Eliminar columna de la tabla"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "Ascendente",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "جدول",
5
5
  selectRange: "انتخاب محدوده جدول",
6
6
  rename: "تغییر نام جدول",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "نام جدول را وارد کنید",
8
8
  updateRange: "به‌روزرسانی محدوده جدول",
9
9
  tableRangeWithMergeError: "محدوده جدول نمی‌تواند با سلول‌های ادغام‌شده همپوشانی داشته باشد",
10
10
  tableRangeWithOtherTableError: "محدوده جدول نمی‌تواند با جداول دیگر همپوشانی داشته باشد",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "جدول",
27
27
  tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يتكرر مع أسماء الجداول الموجودة",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "درج ۱ ستون جدول در سمت چپ",
30
+ "insert-right": "درج ۱ ستون جدول در سمت راست",
31
+ delete: "حذف ستون جدول"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "صعودی",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Tableau",
5
5
  selectRange: "Sélectionner la plage du tableau",
6
6
  rename: "Renommer le tableau",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Saisir le nom du tableau",
8
8
  updateRange: "Mettre à jour la plage du tableau",
9
9
  tableRangeWithMergeError: "La plage du tableau ne peut pas chevaucher des cellules fusionnées",
10
10
  tableRangeWithOtherTableError: "La plage du tableau ne peut pas chevaucher d'autres tableaux",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Tableau",
27
27
  tableNameError: "Le nom du tableau ne peut pas contenir d'espaces, ne peut pas commencer par un chiffre et ne peut pas être identique à un nom de tableau existant",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Insérer 1 colonne à gauche",
30
+ "insert-right": "Insérer 1 colonne à droite",
31
+ delete: "Supprimer la colonne du tableau"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "Croissant",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "表",
5
5
  selectRange: "表の範囲を選択",
6
6
  rename: "表の名前を変更",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "テーブル名を入力",
8
8
  updateRange: "表の範囲を更新",
9
9
  tableRangeWithMergeError: "表の範囲は結合セルと重複できません",
10
10
  tableRangeWithOtherTableError: "表の範囲は他の表と重複できません",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "表",
27
27
  tableNameError: "表の名前は空白を含めることはできず、数字で始めることはできず、既存の表名と重複できません",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "左に 1 列挿入",
30
+ "insert-right": "右に 1 列挿入",
31
+ delete: "列を削除"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "昇順",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "표",
5
5
  selectRange: "표 범위 선택",
6
6
  rename: "표 이름 바꾸기",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "테이블 이름 입력",
8
8
  updateRange: "표 범위 업데이트",
9
9
  tableRangeWithMergeError: "표 범위는 병합된 셀과 겹칠 수 없습니다",
10
10
  tableRangeWithOtherTableError: "표 범위는 다른 표와 겹칠 수 없습니다",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "표",
27
27
  tableNameError: "표 이름은 공백을 포함할 수 없으며 숫자로 시작할 수 없고 기존 표 이름과 중복될 수 없습니다",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "왼쪽에 열 1개 삽입",
30
+ "insert-right": "오른쪽에 열 1개 삽입",
31
+ delete: "테이블 열 삭제"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "오름차순",
@@ -69,7 +69,7 @@ const locale = { "sheets-table-ui": {
69
69
  notBetween: "Nie między",
70
70
  above: "Powyżej",
71
71
  below: "Poniżej",
72
- topN: "Top {0}"
72
+ topN: "Górne {0}"
73
73
  } },
74
74
  date: { compare: {
75
75
  equal: "Równe",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Таблица",
5
5
  selectRange: "Выбрать диапазон таблицы",
6
6
  rename: "Переименовать таблицу",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Введите имя таблицы",
8
8
  updateRange: "Обновить диапазон таблицы",
9
9
  tableRangeWithMergeError: "Диапазон таблицы не может перекрываться с объединенными ячейками",
10
10
  tableRangeWithOtherTableError: "Диапазон таблицы не может перекрываться с другими таблицами",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Таблица",
27
27
  tableNameError: "Имя таблицы не может содержать пробелы, не может начинаться с цифры и не может совпадать с именем существующей таблицы",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Вставить 1 столбец слева",
30
+ "insert-right": "Вставить 1 столбец справа",
31
+ delete: "Удалить столбец таблицы"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "По возрастанию",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Tabuľka",
5
5
  selectRange: "Vyberte rozsah tabuľky",
6
6
  rename: "Premenovať tabuľku",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Zadajte názov tabuľky",
8
8
  updateRange: "Aktualizovať rozsah tabuľky",
9
9
  tableRangeWithMergeError: "Rozsah tabuľky sa nemôže prekrývať so zlúčenými bunkami",
10
10
  tableRangeWithOtherTableError: "Rozsah tabuľky sa nemôže prekrývať s inými tabuľkami",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Tabuľka",
27
27
  tableNameError: "Názov tabuľky nesmie obsahovať medzery, nesmie začínať číslom a nesmie byť zhodný s existujúcim názvom tabuľky",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Vložiť 1 stĺpec tabuľky vľavo",
30
+ "insert-right": "Vložiť 1 stĺpec tabuľky vpravo",
31
+ delete: "Odstrániť stĺpec tabuľky"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "Vzostupne",
@@ -4,7 +4,7 @@ const locale = { "sheets-table-ui": {
4
4
  title: "Bảng",
5
5
  selectRange: "Chọn phạm vi bảng",
6
6
  rename: "Đổi tên bảng",
7
- renamePlaceholder: "Enter table name",
7
+ renamePlaceholder: "Nhập tên bảng",
8
8
  updateRange: "Cập nhật phạm vi bảng",
9
9
  tableRangeWithMergeError: "Phạm vi bảng không thể chồng lấp với các ô đã được hợp nhất",
10
10
  tableRangeWithOtherTableError: "Phạm vi bảng không thể chồng lấp với các bảng khác",
@@ -26,9 +26,9 @@ const locale = { "sheets-table-ui": {
26
26
  tablePrefix: "Bảng",
27
27
  tableNameError: "Tên bảng không thể chứa khoảng trắng, không được bắt đầu bằng số và không được trùng với tên bảng đã có",
28
28
  columnMenu: {
29
- "insert-left": "Insert 1 table column left",
30
- "insert-right": "Insert 1 table column right",
31
- delete: "Delete table column"
29
+ "insert-left": "Chèn 1 cột bảng bên trái",
30
+ "insert-right": "Chèn 1 cột bảng bên phải",
31
+ delete: "Xóa cột bảng"
32
32
  },
33
33
  sort: {
34
34
  "sort-asc": "Tăng dần",
@@ -69,7 +69,7 @@ const locale = { "sheets-table-ui": {
69
69
  notBetween: "Không trong khoảng",
70
70
  above: "Lớn hơn",
71
71
  below: "Nhỏ hơn",
72
- topN: "Top {0}"
72
+ topN: "Trên cùng {0}"
73
73
  } },
74
74
  date: { compare: {
75
75
  equal: "Bằng",
@@ -3,28 +3,28 @@
3
3
  const locale = { "sheets-table-ui": {
4
4
  title: "表格",
5
5
  selectRange: "選擇表格範圍",
6
- rename: "重命名表格",
7
- renamePlaceholder: "Enter table name",
6
+ rename: "重新命名表格",
7
+ renamePlaceholder: "輸入表格名稱",
8
8
  updateRange: "更新表格範圍",
9
9
  tableRangeWithMergeError: "表格範圍不能與合併儲存格重疊",
10
10
  tableRangeWithOtherTableError: "表格範圍不能與其他表格重疊",
11
- tableRangeSingleRowError: "表格範圍不能是單獨的一行",
12
- updateError: "不能將表格範圍設置到和原先不重合且不在同一行的範圍",
11
+ tableRangeSingleRowError: "表格範圍不能只有一列",
12
+ updateError: "不能將表格範圍設定為與原範圍不重疊且不在同一列的範圍",
13
13
  tableStyle: "表格樣式",
14
14
  defaultStyle: "預設樣式",
15
- customStyle: "自定義樣式",
16
- customTooMore: "自定義主題數量超出最大限制,請刪除一些無用的主題後再次添加",
17
- setTheme: "設置表格主題",
15
+ customStyle: "自訂樣式",
16
+ customTooMore: "自訂主題數量超出上限,請刪除一些不需要的主題後再新增",
17
+ setTheme: "設定表格主題",
18
18
  removeTable: "刪除表格",
19
19
  cancel: "取消",
20
20
  confirm: "確認",
21
21
  header: "頁首",
22
22
  footer: "頁尾",
23
- firstLine: "第一行",
24
- secondLine: "第二行",
25
- columnPrefix: "列",
23
+ firstLine: "第一列",
24
+ secondLine: "第二列",
25
+ columnPrefix: "欄",
26
26
  tablePrefix: "表格",
27
- tableNameError: "表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複",
27
+ tableNameError: "表格名稱不能包含空格、以數字開頭或與現有表格名稱重複",
28
28
  columnMenu: {
29
29
  "insert-left": "向左插入 1 個表格欄",
30
30
  "insert-right": "向右插入 1 個表格欄",
@@ -36,13 +36,13 @@ const locale = { "sheets-table-ui": {
36
36
  },
37
37
  insert: {
38
38
  main: "表格插入",
39
- row: "插入表格行",
40
- col: "插入表格列"
39
+ row: "插入表格列",
40
+ col: "插入表格欄"
41
41
  },
42
42
  remove: {
43
43
  main: "表格刪除",
44
- row: "刪除表格行",
45
- col: "刪除表格列"
44
+ row: "刪除表格列",
45
+ col: "刪除表格欄"
46
46
  },
47
47
  condition: {
48
48
  string: "文字",