@univerjs/sheets-table-ui 0.24.0 → 0.25.0-insiders.20260604-29ebbff

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 (91) hide show
  1. package/lib/cjs/index.js +138 -126
  2. package/lib/cjs/locale/ar-SA.js +129 -0
  3. package/lib/cjs/locale/ca-ES.js +5 -1
  4. package/lib/cjs/locale/de-DE.js +129 -0
  5. package/lib/cjs/locale/en-US.js +5 -1
  6. package/lib/cjs/locale/es-ES.js +5 -1
  7. package/lib/cjs/locale/fa-IR.js +5 -1
  8. package/lib/cjs/locale/fr-FR.js +5 -1
  9. package/lib/cjs/locale/id-ID.js +129 -0
  10. package/lib/cjs/locale/it-IT.js +129 -0
  11. package/lib/cjs/locale/ja-JP.js +5 -1
  12. package/lib/cjs/locale/ko-KR.js +5 -1
  13. package/lib/cjs/locale/pl-PL.js +129 -0
  14. package/lib/cjs/locale/pt-BR.js +129 -0
  15. package/lib/cjs/locale/ru-RU.js +5 -1
  16. package/lib/cjs/locale/sk-SK.js +5 -1
  17. package/lib/cjs/locale/vi-VN.js +5 -1
  18. package/lib/cjs/locale/zh-CN.js +5 -1
  19. package/lib/cjs/locale/zh-HK.js +129 -0
  20. package/lib/cjs/locale/zh-TW.js +5 -1
  21. package/lib/es/index.js +139 -127
  22. package/lib/es/locale/ar-SA.js +128 -0
  23. package/lib/es/locale/ca-ES.js +5 -1
  24. package/lib/es/locale/de-DE.js +128 -0
  25. package/lib/es/locale/en-US.js +5 -1
  26. package/lib/es/locale/es-ES.js +5 -1
  27. package/lib/es/locale/fa-IR.js +5 -1
  28. package/lib/es/locale/fr-FR.js +5 -1
  29. package/lib/es/locale/id-ID.js +128 -0
  30. package/lib/es/locale/it-IT.js +128 -0
  31. package/lib/es/locale/ja-JP.js +5 -1
  32. package/lib/es/locale/ko-KR.js +5 -1
  33. package/lib/es/locale/pl-PL.js +128 -0
  34. package/lib/es/locale/pt-BR.js +128 -0
  35. package/lib/es/locale/ru-RU.js +5 -1
  36. package/lib/es/locale/sk-SK.js +5 -1
  37. package/lib/es/locale/vi-VN.js +5 -1
  38. package/lib/es/locale/zh-CN.js +5 -1
  39. package/lib/es/locale/zh-HK.js +128 -0
  40. package/lib/es/locale/zh-TW.js +5 -1
  41. package/lib/index.css +8 -8
  42. package/lib/index.js +139 -127
  43. package/lib/locale/ar-SA.js +128 -0
  44. package/lib/locale/ca-ES.js +5 -1
  45. package/lib/locale/de-DE.js +128 -0
  46. package/lib/locale/en-US.js +5 -1
  47. package/lib/locale/es-ES.js +5 -1
  48. package/lib/locale/fa-IR.js +5 -1
  49. package/lib/locale/fr-FR.js +5 -1
  50. package/lib/locale/id-ID.js +128 -0
  51. package/lib/locale/it-IT.js +128 -0
  52. package/lib/locale/ja-JP.js +5 -1
  53. package/lib/locale/ko-KR.js +5 -1
  54. package/lib/locale/pl-PL.js +128 -0
  55. package/lib/locale/pt-BR.js +128 -0
  56. package/lib/locale/ru-RU.js +5 -1
  57. package/lib/locale/sk-SK.js +5 -1
  58. package/lib/locale/vi-VN.js +5 -1
  59. package/lib/locale/zh-CN.js +5 -1
  60. package/lib/locale/zh-HK.js +128 -0
  61. package/lib/locale/zh-TW.js +5 -1
  62. package/lib/types/locale/ar-SA.d.ts +18 -0
  63. package/lib/types/locale/de-DE.d.ts +18 -0
  64. package/lib/types/locale/en-US.d.ts +5 -1
  65. package/lib/types/locale/id-ID.d.ts +18 -0
  66. package/lib/types/locale/it-IT.d.ts +18 -0
  67. package/lib/types/locale/pl-PL.d.ts +18 -0
  68. package/lib/types/locale/pt-BR.d.ts +18 -0
  69. package/lib/types/locale/zh-HK.d.ts +18 -0
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -0
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -0
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -0
  79. package/lib/umd/locale/it-IT.js +1 -0
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -0
  83. package/lib/umd/locale/pt-BR.js +1 -0
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -0
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +14 -14
  91. package/LICENSE +0 -176
package/lib/cjs/index.js CHANGED
@@ -16,7 +16,7 @@ let _univerjs_sheets_formula_ui = require("@univerjs/sheets-formula-ui");
16
16
 
17
17
  //#region package.json
18
18
  var name = "@univerjs/sheets-table-ui";
19
- var version = "0.24.0";
19
+ var version = "0.25.0-insiders.20260604-29ebbff";
20
20
 
21
21
  //#endregion
22
22
  //#region src/const.ts
@@ -51,7 +51,7 @@ const TABLE_BORDER_NONE = "none";
51
51
  const TABLE_BORDER_DEFAULT = "1px solid rgb(var(--grey-200))";
52
52
 
53
53
  //#endregion
54
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
54
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
55
55
  function _typeof(o) {
56
56
  "@babel/helpers - typeof";
57
57
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -62,7 +62,7 @@ function _typeof(o) {
62
62
  }
63
63
 
64
64
  //#endregion
65
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
65
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
66
66
  function toPrimitive(t, r) {
67
67
  if ("object" != _typeof(t) || !t) return t;
68
68
  var e = t[Symbol.toPrimitive];
@@ -75,14 +75,14 @@ function toPrimitive(t, r) {
75
75
  }
76
76
 
77
77
  //#endregion
78
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
78
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
79
79
  function toPropertyKey(t) {
80
80
  var i = toPrimitive(t, "string");
81
81
  return "symbol" == _typeof(i) ? i : i + "";
82
82
  }
83
83
 
84
84
  //#endregion
85
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
85
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
86
86
  function _defineProperty(e, r, t) {
87
87
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
88
88
  value: t,
@@ -93,7 +93,7 @@ function _defineProperty(e, r, t) {
93
93
  }
94
94
 
95
95
  //#endregion
96
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
96
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
97
97
  function __decorateParam(paramIndex, decorator) {
98
98
  return function(target, key) {
99
99
  decorator(target, key, paramIndex);
@@ -101,7 +101,7 @@ function __decorateParam(paramIndex, decorator) {
101
101
  }
102
102
 
103
103
  //#endregion
104
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
104
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
105
105
  function __decorate(decorators, target, key, desc) {
106
106
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
107
107
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -169,7 +169,7 @@ let SheetsTableUiService = class SheetsTableUiService extends _univerjs_core.Dis
169
169
  const checkedItems = [];
170
170
  if (table) {
171
171
  const filter = table.getTableFilterColumn(columnIndex);
172
- if (filter && (0, _univerjs_sheets_table.isManualTableFilter)(filter)) checkedItems.push(...filter.values);
172
+ if (filter && (0, _univerjs_sheets_table.isManualTableFilter)(filter)) checkedItems.push(...filter.values.map((value) => value === _univerjs_sheets_table.TABLE_FILTER_EMPTY_VALUE ? this._localeService.t("sheets-table-ui.condition.empty") : value));
173
173
  }
174
174
  return checkedItems;
175
175
  }
@@ -196,7 +196,8 @@ let SheetsTableUiService = class SheetsTableUiService extends _univerjs_core.Dis
196
196
  itemsCountMap: /* @__PURE__ */ new Map(),
197
197
  allItemsCount: 0
198
198
  };
199
- const { startRow, endRow, startColumn } = table.getTableFilterRange();
199
+ const tableRange = table.getTableFilterRange();
200
+ const { startRow, endRow, startColumn } = tableRange;
200
201
  const column = startColumn + columnIndex;
201
202
  const worksheet = (_this$_univerInstance = this._univerInstanceService.getUnit(unitId)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getSheetBySheetId(subUnitId);
202
203
  if (!worksheet) return {
@@ -206,11 +207,17 @@ let SheetsTableUiService = class SheetsTableUiService extends _univerjs_core.Dis
206
207
  };
207
208
  const data = [];
208
209
  const map = /* @__PURE__ */ new Map();
210
+ const filteredRowsByOtherColumns = /* @__PURE__ */ new Set();
211
+ const tableFilters = table.getTableFilters();
212
+ for (let i = tableRange.startColumn; i <= tableRange.endColumn; i++) {
213
+ const currentColumnIndex = i - tableRange.startColumn;
214
+ if (currentColumnIndex !== columnIndex && table.getTableFilterColumn(currentColumnIndex)) tableFilters.doColumnFilter(worksheet, tableRange, currentColumnIndex, filteredRowsByOtherColumns);
215
+ }
209
216
  let allItemsCount = 0;
210
217
  for (let row = startRow; row <= endRow; row++) {
211
- if (worksheet.isRowFiltered(row)) continue;
218
+ if (filteredRowsByOtherColumns.has(row)) continue;
212
219
  let stringItem = this._sheetTableService.getCellValueWithConditionType(worksheet, row, column);
213
- if (stringItem === void 0) stringItem = this._localeService.t("sheets-table.condition.empty");
220
+ if (stringItem == null) stringItem = this._localeService.t("sheets-table-ui.condition.empty");
214
221
  if (!map.has(stringItem)) data.push({
215
222
  title: stringItem,
216
223
  key: `${column}_${row}`,
@@ -246,171 +253,171 @@ function getCascaderListOptions(injector) {
246
253
  return [
247
254
  {
248
255
  value: _univerjs_sheets_table.TableConditionTypeEnum.String,
249
- label: t(`sheets-table.condition.${_univerjs_sheets_table.TableConditionTypeEnum.String}`),
256
+ label: t(`sheets-table-ui.condition.${_univerjs_sheets_table.TableConditionTypeEnum.String}`),
250
257
  children: [
251
258
  {
252
259
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.Equal,
253
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.Equal}`)
260
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.Equal}`)
254
261
  },
255
262
  {
256
263
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.NotEqual,
257
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.NotEqual}`)
264
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.NotEqual}`)
258
265
  },
259
266
  {
260
267
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.Contains,
261
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.Contains}`)
268
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.Contains}`)
262
269
  },
263
270
  {
264
271
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.NotContains,
265
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.NotContains}`)
272
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.NotContains}`)
266
273
  },
267
274
  {
268
275
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.StartsWith,
269
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.StartsWith}`)
276
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.StartsWith}`)
270
277
  },
271
278
  {
272
279
  value: _univerjs_sheets_table.TableStringCompareTypeEnum.EndsWith,
273
- label: t(`sheets-table.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.EndsWith}`)
280
+ label: t(`sheets-table-ui.string.compare.${_univerjs_sheets_table.TableStringCompareTypeEnum.EndsWith}`)
274
281
  }
275
282
  ]
276
283
  },
277
284
  {
278
285
  value: _univerjs_sheets_table.TableConditionTypeEnum.Number,
279
- label: t(`sheets-table.condition.${_univerjs_sheets_table.TableConditionTypeEnum.Number}`),
286
+ label: t(`sheets-table-ui.condition.${_univerjs_sheets_table.TableConditionTypeEnum.Number}`),
280
287
  children: [
281
288
  {
282
289
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.Equal,
283
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Equal}`)
290
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Equal}`)
284
291
  },
285
292
  {
286
293
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.NotEqual,
287
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.NotEqual}`)
294
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.NotEqual}`)
288
295
  },
289
296
  {
290
297
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThan,
291
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThan}`)
298
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThan}`)
292
299
  },
293
300
  {
294
301
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThanOrEqual,
295
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThanOrEqual}`)
302
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.GreaterThanOrEqual}`)
296
303
  },
297
304
  {
298
305
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.LessThan,
299
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.LessThan}`)
306
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.LessThan}`)
300
307
  },
301
308
  {
302
309
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.LessThanOrEqual,
303
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.LessThanOrEqual}`)
310
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.LessThanOrEqual}`)
304
311
  },
305
312
  {
306
313
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.Between,
307
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Between}`)
314
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Between}`)
308
315
  },
309
316
  {
310
317
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.NotBetween,
311
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.NotBetween}`)
318
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.NotBetween}`)
312
319
  },
313
320
  {
314
321
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.Above,
315
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Above}`)
322
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Above}`)
316
323
  },
317
324
  {
318
325
  value: _univerjs_sheets_table.TableNumberCompareTypeEnum.Below,
319
- label: t(`sheets-table.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Below}`)
326
+ label: t(`sheets-table-ui.number.compare.${_univerjs_sheets_table.TableNumberCompareTypeEnum.Below}`)
320
327
  }
321
328
  ]
322
329
  },
323
330
  {
324
331
  value: _univerjs_sheets_table.TableConditionTypeEnum.Date,
325
- label: t(`sheets-table.condition.${_univerjs_sheets_table.TableConditionTypeEnum.Date}`),
332
+ label: t(`sheets-table-ui.condition.${_univerjs_sheets_table.TableConditionTypeEnum.Date}`),
326
333
  children: [
327
334
  {
328
335
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Equal,
329
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Equal}`)
336
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Equal}`)
330
337
  },
331
338
  {
332
339
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.NotEqual,
333
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NotEqual}`)
340
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NotEqual}`)
334
341
  },
335
342
  {
336
343
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.After,
337
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.After}`)
344
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.After}`)
338
345
  },
339
346
  {
340
347
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.AfterOrEqual,
341
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.AfterOrEqual}`)
348
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.AfterOrEqual}`)
342
349
  },
343
350
  {
344
351
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Before,
345
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Before}`)
352
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Before}`)
346
353
  },
347
354
  {
348
355
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.BeforeOrEqual,
349
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.BeforeOrEqual}`)
356
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.BeforeOrEqual}`)
350
357
  },
351
358
  {
352
359
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Between,
353
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Between}`)
360
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Between}`)
354
361
  },
355
362
  {
356
363
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.NotBetween,
357
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NotBetween}`)
364
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NotBetween}`)
358
365
  },
359
366
  {
360
367
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Today,
361
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Today}`)
368
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Today}`)
362
369
  },
363
370
  {
364
371
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Yesterday,
365
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Yesterday}`)
372
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Yesterday}`)
366
373
  },
367
374
  {
368
375
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Tomorrow,
369
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Tomorrow}`)
376
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Tomorrow}`)
370
377
  },
371
378
  {
372
379
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.ThisWeek,
373
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisWeek}`)
380
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisWeek}`)
374
381
  },
375
382
  {
376
383
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.LastWeek,
377
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastWeek}`)
384
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastWeek}`)
378
385
  },
379
386
  {
380
387
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.NextWeek,
381
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextWeek}`)
388
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextWeek}`)
382
389
  },
383
390
  {
384
391
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.ThisMonth,
385
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisMonth}`)
392
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisMonth}`)
386
393
  },
387
394
  {
388
395
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.LastMonth,
389
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastMonth}`)
396
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastMonth}`)
390
397
  },
391
398
  {
392
399
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.NextMonth,
393
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextMonth}`)
400
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextMonth}`)
394
401
  },
395
402
  {
396
403
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.ThisYear,
397
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisYear}`)
404
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.ThisYear}`)
398
405
  },
399
406
  {
400
407
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.LastYear,
401
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastYear}`)
408
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.LastYear}`)
402
409
  },
403
410
  {
404
411
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.NextYear,
405
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextYear}`)
412
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.NextYear}`)
406
413
  },
407
414
  {
408
415
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Quarter,
409
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Quarter}`)
416
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Quarter}`)
410
417
  },
411
418
  {
412
419
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Month,
413
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Month}`)
420
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Month}`)
414
421
  }
415
422
  ]
416
423
  }
@@ -423,69 +430,69 @@ function getConditionDateSelect(injector, dateType) {
423
430
  case _univerjs_sheets_table.TableDateCompareTypeEnum.Quarter: return [
424
431
  {
425
432
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Q1,
426
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q1}`)
433
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q1}`)
427
434
  },
428
435
  {
429
436
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Q2,
430
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q2}`)
437
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q2}`)
431
438
  },
432
439
  {
433
440
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Q3,
434
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q3}`)
441
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q3}`)
435
442
  },
436
443
  {
437
444
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.Q4,
438
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q4}`)
445
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.Q4}`)
439
446
  }
440
447
  ];
441
448
  case _univerjs_sheets_table.TableDateCompareTypeEnum.Month: return [
442
449
  {
443
450
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M1,
444
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M1}`)
451
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M1}`)
445
452
  },
446
453
  {
447
454
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M2,
448
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M2}`)
455
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M2}`)
449
456
  },
450
457
  {
451
458
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M3,
452
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M3}`)
459
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M3}`)
453
460
  },
454
461
  {
455
462
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M4,
456
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M4}`)
463
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M4}`)
457
464
  },
458
465
  {
459
466
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M5,
460
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M5}`)
467
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M5}`)
461
468
  },
462
469
  {
463
470
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M6,
464
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M6}`)
471
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M6}`)
465
472
  },
466
473
  {
467
474
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M7,
468
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M7}`)
475
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M7}`)
469
476
  },
470
477
  {
471
478
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M8,
472
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M8}`)
479
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M8}`)
473
480
  },
474
481
  {
475
482
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M9,
476
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M9}`)
483
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M9}`)
477
484
  },
478
485
  {
479
486
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M10,
480
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M10}`)
487
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M10}`)
481
488
  },
482
489
  {
483
490
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M11,
484
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M11}`)
491
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M11}`)
485
492
  },
486
493
  {
487
494
  value: _univerjs_sheets_table.TableDateCompareTypeEnum.M12,
488
- label: t(`sheets-table.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M12}`)
495
+ label: t(`sheets-table-ui.date.compare.${_univerjs_sheets_table.TableDateCompareTypeEnum.M12}`)
489
496
  }
490
497
  ];
491
498
  default: return [];
@@ -613,8 +620,8 @@ const SheetTableConditionPanel = (props) => {
613
620
  };
614
621
  const subComponentType = getSubComponentType(conditionInfo.type, conditionInfo.compare);
615
622
  let selectType = "";
616
- if (conditionInfo.compare) selectType = `${localeService.t(`sheets-table.condition.${conditionInfo.type}`)} - ${localeService.t(`sheets-table.${conditionInfo.type}.compare.${conditionInfo.compare}`)}`;
617
- else selectType = localeService.t(`sheets-table.condition.${conditionInfo.type}`);
623
+ if (conditionInfo.compare) selectType = `${localeService.t(`sheets-table-ui.condition.${conditionInfo.type}`)} - ${localeService.t(`sheets-table-ui.${conditionInfo.type}.compare.${conditionInfo.compare}`)}`;
624
+ else selectType = localeService.t(`sheets-table-ui.condition.${conditionInfo.type}`);
618
625
  const conditionDateOptions = getConditionDateSelect(injector, conditionInfo.compare);
619
626
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Dropdown, {
620
627
  align: "start",
@@ -776,17 +783,19 @@ function SheetTableItemsFilterPanel(props) {
776
783
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
777
784
  autoFocus: true,
778
785
  value: searchText,
779
- placeholder: localeService.t("sheets-table.filter.search-placeholder"),
786
+ placeholder: localeService.t("sheets-table-ui.filter.search-placeholder"),
780
787
  onChange: onSearchValueChange
781
788
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
782
789
  className: (0, _univerjs_design.clsx)("univer-mt-2 univer-box-border univer-flex univer-h-[180px] univer-max-h-[180px] univer-flex-grow univer-flex-col univer-overflow-hidden univer-rounded-md univer-py-1.5 univer-pl-2", _univerjs_design.borderClassName),
783
790
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
784
- className: (0, _univerjs_design.clsx)("univer-h-40 univer-overflow-y-auto univer-py-1 univer-pl-2", _univerjs_design.scrollbarClassName),
791
+ className: (0, _univerjs_design.clsx)("univer-h-40 univer-min-w-0 univer-overflow-y-auto univer-py-1 univer-pl-2", _univerjs_design.scrollbarClassName),
785
792
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
786
793
  className: "univer-h-full",
787
794
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
788
795
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
789
796
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
797
+ className: "univer-min-w-0 univer-flex-1",
798
+ contentClassName: "univer-flex-1 univer-min-w-0",
790
799
  indeterminate,
791
800
  disabled: items.length === 0,
792
801
  checked: allChecked,
@@ -794,8 +803,8 @@ function SheetTableItemsFilterPanel(props) {
794
803
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
795
804
  className: "univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm",
796
805
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
797
- className: "univer-inline-block univer-truncate",
798
- children: `${localeService.t("sheets-table.filter.select-all")}`
806
+ className: "univer-flex-1 univer-truncate",
807
+ children: `${localeService.t("sheets-table-ui.filter.select-all")}`
799
808
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
800
809
  className: "univer-ml univer-text-gray-400",
801
810
  children: `(${checkedCount}/${searchText ? displayItems.length : allItemsCount})`
@@ -806,17 +815,19 @@ function SheetTableItemsFilterPanel(props) {
806
815
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
807
816
  className: "univer-flex univer-items-center univer-px-2 univer-py-1",
808
817
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
818
+ className: "univer-min-w-0 univer-flex-1",
819
+ contentClassName: "univer-flex-1 univer-min-w-0",
809
820
  checked: allChecked || checkedItemSet.has(item.title),
810
821
  onChange: () => {
811
822
  onCheckItemToggled(item.title);
812
823
  },
813
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
814
- className: "univer-flex univer-h-5 univer-flex-1 univer-text-sm",
824
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
825
+ className: "univer-flex univer-h-5 univer-flex-1 univer-items-center univer-text-sm",
815
826
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
816
- className: "univer-inline-block univer-truncate",
827
+ className: "univer-flex-1 univer-truncate",
817
828
  children: item.title
818
829
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
819
- className: "univer-ml-1 univer-text-gray-400",
830
+ className: "univer-ml-1 univer-inline-flex univer-h-full univer-items-center univer-text-gray-400",
820
831
  children: `(${itemsCountMap.get(item.title) || 0})`
821
832
  })]
822
833
  })
@@ -905,7 +916,8 @@ function SheetTableFilterPanel() {
905
916
  const onApply = () => {
906
917
  if (filterBy === "items") {
907
918
  const filteredItems = [];
908
- for (const itemInfo of data) if (checkedItemSet.has(itemInfo.title)) filteredItems.push(itemInfo.title);
919
+ const emptyLabel = localeService.t("sheets-table-ui.condition.empty");
920
+ for (const itemInfo of data) if (checkedItemSet.has(itemInfo.title)) filteredItems.push(itemInfo.title === emptyLabel ? _univerjs_sheets_table.TABLE_FILTER_EMPTY_VALUE : itemInfo.title);
909
921
  const originFilter = table.getTableFilterColumn(columnIndex);
910
922
  if (originFilter) {
911
923
  if (originFilter.values.join(",") === filteredItems.join(",")) {
@@ -946,7 +958,7 @@ function SheetTableFilterPanel() {
946
958
  };
947
959
  const workbookEditableId = new _univerjs_sheets.WorkbookEditablePermission(unitId).id;
948
960
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
949
- className: "univer-box-border univer-flex univer-min-w-[312px] univer-flex-col univer-rounded-[10px] univer-bg-white univer-p-4 univer-shadow-lg dark:!univer-border-gray-600 dark:!univer-bg-gray-700",
961
+ className: "univer-box-border univer-flex univer-w-[400px] univer-flex-col univer-rounded-[10px] univer-bg-white univer-p-4 univer-shadow-lg dark:!univer-border-gray-600 dark:!univer-bg-gray-700",
950
962
  children: [
951
963
  ((_permissionService$ge = permissionService.getPermissionPoint(workbookEditableId)) === null || _permissionService$ge === void 0 ? void 0 : _permissionService$ge.value) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
952
964
  className: "-univer-mx-4 -univer-mt-2 univer-mb-3 univer-border-0 univer-border-b univer-border-solid univer-border-gray-200 univer-py-1",
@@ -958,7 +970,7 @@ function SheetTableFilterPanel() {
958
970
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.LeftInsertColumnDoubleIcon, {
959
971
  className: "univer-size-5",
960
972
  extend: { colorChannel1: "var(--univer-primary-600)" }
961
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table.columnMenu.insert-left") })]
973
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table-ui.columnMenu.insert-left") })]
962
974
  }),
963
975
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
964
976
  type: "button",
@@ -967,7 +979,7 @@ function SheetTableFilterPanel() {
967
979
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.RightInsertColumnDoubleIcon, {
968
980
  className: "univer-size-5",
969
981
  extend: { colorChannel1: "var(--univer-primary-600)" }
970
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table.columnMenu.insert-right") })]
982
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table-ui.columnMenu.insert-right") })]
971
983
  }),
972
984
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
973
985
  type: "button",
@@ -977,7 +989,7 @@ function SheetTableFilterPanel() {
977
989
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.DeleteColumnDoubleIcon, {
978
990
  className: "univer-size-5",
979
991
  extend: { colorChannel1: "var(--univer-primary-600)" }
980
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table.columnMenu.delete") })]
992
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: localeService.t("sheets-table-ui.columnMenu.delete") })]
981
993
  })
982
994
  ]
983
995
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -987,11 +999,11 @@ function SheetTableFilterPanel() {
987
999
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.Button, {
988
1000
  className: "univer-w-1/2",
989
1001
  onClick: () => applySort(true),
990
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.AscendingIcon, { className: "univer-mr-1" }), localeService.t("sheets-sort.general.sort-asc")]
1002
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.AscendingIcon, { className: "univer-mr-1" }), localeService.t("sheets-table-ui.sort.sort-asc")]
991
1003
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.Button, {
992
1004
  className: "univer-w-1/2",
993
1005
  onClick: () => applySort(false),
994
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.DescendingIcon, { className: "univer-mr-1" }), localeService.t("sheets-sort.general.sort-desc")]
1006
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.DescendingIcon, { className: "univer-mr-1" }), localeService.t("sheets-table-ui.sort.sort-desc")]
995
1007
  })]
996
1008
  })
997
1009
  })] }),
@@ -1031,15 +1043,15 @@ function SheetTableFilterPanel() {
1031
1043
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1032
1044
  disabled: tableFilter === void 0,
1033
1045
  onClick: onClearFilter,
1034
- children: localeService.t("sheets-table.filter.clear-filter")
1046
+ children: localeService.t("sheets-table-ui.filter.clear-filter")
1035
1047
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1036
1048
  className: "univer-mr-2",
1037
1049
  onClick: onCancel,
1038
- children: localeService.t("sheets-table.filter.cancel")
1050
+ children: localeService.t("sheets-table-ui.filter.cancel")
1039
1051
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1040
1052
  variant: "primary",
1041
1053
  onClick: onApply,
1042
- children: localeService.t("sheets-table.filter.confirm")
1054
+ children: localeService.t("sheets-table-ui.filter.confirm")
1043
1055
  })] })]
1044
1056
  })
1045
1057
  ]
@@ -1047,10 +1059,10 @@ function SheetTableFilterPanel() {
1047
1059
  }
1048
1060
  function useFilterByOptions(localeService) {
1049
1061
  return (0, react.useMemo)(() => [{
1050
- label: localeService.t("sheets-table.filter.by-values"),
1062
+ label: localeService.t("sheets-table-ui.filter.by-values"),
1051
1063
  value: "items"
1052
1064
  }, {
1053
- label: localeService.t("sheets-table.filter.by-conditions"),
1065
+ label: localeService.t("sheets-table-ui.filter.by-conditions"),
1054
1066
  value: "condition"
1055
1067
  }], [localeService.getCurrentLocale(), localeService]);
1056
1068
  }
@@ -1091,7 +1103,7 @@ function SheetTableRenameDialog(props) {
1091
1103
  return;
1092
1104
  }
1093
1105
  if (!(0, _univerjs_sheets_table.validateSheetTableName)(nextName, existingNames).valid) {
1094
- setError(localeService.t("sheets-table.tableNameError"));
1106
+ setError(localeService.t("sheets-table-ui.tableNameError"));
1095
1107
  return;
1096
1108
  }
1097
1109
  commandService.executeCommand(_univerjs_sheets_table.SetSheetTableCommand.id, {
@@ -1107,7 +1119,7 @@ function SheetTableRenameDialog(props) {
1107
1119
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
1108
1120
  size: "middle",
1109
1121
  value,
1110
- placeholder: localeService.t("sheets-table.renamePlaceholder"),
1122
+ placeholder: localeService.t("sheets-table-ui.renamePlaceholder"),
1111
1123
  onChange: (nextValue) => {
1112
1124
  setValue(nextValue);
1113
1125
  setError("");
@@ -1126,12 +1138,12 @@ function SheetTableRenameDialog(props) {
1126
1138
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1127
1139
  className: "univer-min-w-16",
1128
1140
  onClick: onClose,
1129
- children: localeService.t("sheets-table.cancel")
1141
+ children: localeService.t("sheets-table-ui.cancel")
1130
1142
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
1131
1143
  className: "univer-min-w-16",
1132
1144
  variant: "primary",
1133
1145
  onClick: handleConfirm,
1134
- children: localeService.t("sheets-table.confirm")
1146
+ children: localeService.t("sheets-table-ui.confirm")
1135
1147
  })]
1136
1148
  })
1137
1149
  ]
@@ -1295,7 +1307,7 @@ async function openRangeSelector(accessor, unitId, subUnitId, range, tableId) {
1295
1307
  };
1296
1308
  dialogService.open({
1297
1309
  id: TABLE_SELECTOR_DIALOG,
1298
- title: { title: localeService.t("sheets-table.selectRange") },
1310
+ title: { title: localeService.t("sheets-table-ui.selectRange") },
1299
1311
  draggable: true,
1300
1312
  destroyOnClose: true,
1301
1313
  mask: false,
@@ -1711,10 +1723,10 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
1711
1723
  }
1712
1724
  this._syncTopTableGap(skeleton);
1713
1725
  this._shape.setMenuLabels({
1714
- rename: this._localeService.t("sheets-table.rename"),
1715
- "update-range": this._localeService.t("sheets-table.updateRange"),
1716
- "set-theme": this._localeService.t("sheets-table.setTheme"),
1717
- delete: this._localeService.t("sheets-table.removeTable")
1726
+ rename: this._localeService.t("sheets-table-ui.rename"),
1727
+ "update-range": this._localeService.t("sheets-table-ui.updateRange"),
1728
+ "set-theme": this._localeService.t("sheets-table-ui.setTheme"),
1729
+ delete: this._localeService.t("sheets-table-ui.removeTable")
1718
1730
  });
1719
1731
  const unitId = this._context.unit.getUnitId();
1720
1732
  const subUnitId = worksheet.getSheetId();
@@ -1829,7 +1841,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
1829
1841
  _openRenameDialog(unitId, tableId) {
1830
1842
  this._dialogService.open({
1831
1843
  id: SHEET_TABLE_RENAME_DIALOG_ID,
1832
- title: { title: this._localeService.t("sheets-table.rename") },
1844
+ title: { title: this._localeService.t("sheets-table-ui.rename") },
1833
1845
  draggable: true,
1834
1846
  destroyOnClose: true,
1835
1847
  mask: true,
@@ -1861,7 +1873,7 @@ let SheetTableControlsRenderController = class SheetTableControlsRenderControlle
1861
1873
  if (!table) return;
1862
1874
  this._sidebarService.open({
1863
1875
  id: SHEET_TABLE_THEME_PANEL_ID,
1864
- header: { title: this._localeService.t("sheets-table.tableStyle") },
1876
+ header: { title: this._localeService.t("sheets-table-ui.tableStyle") },
1865
1877
  children: {
1866
1878
  label: SHEET_TABLE_THEME_PANEL,
1867
1879
  oldConfig: table.getTableConfig(),
@@ -2034,7 +2046,7 @@ let SheetsTableFilterButtonShape = class SheetsTableFilterButtonShape extends _u
2034
2046
  }
2035
2047
  _drawChevron(ctx, color) {
2036
2048
  const centerX = 16 / 2;
2037
- const centerY = 16 / 2 + 1;
2049
+ const centerY = 16 / 2;
2038
2050
  ctx.save();
2039
2051
  ctx.beginPath();
2040
2052
  ctx.strokeStyle = color;
@@ -2042,8 +2054,8 @@ let SheetsTableFilterButtonShape = class SheetsTableFilterButtonShape extends _u
2042
2054
  ctx.lineCap = "round";
2043
2055
  ctx.lineJoin = "round";
2044
2056
  ctx.moveTo(centerX - 4.5, centerY - 2.5);
2045
- ctx.lineTo(centerX, centerY + 2);
2046
- ctx.lineTo(centerX + 4.5, centerY - 2.5);
2057
+ ctx.lineTo(centerX, 10);
2058
+ ctx.lineTo(12.5, centerY - 2.5);
2047
2059
  ctx.stroke();
2048
2060
  ctx.restore();
2049
2061
  }
@@ -2202,7 +2214,7 @@ let SheetsTableFilterButtonRenderController = class SheetsTableFilterButtonRende
2202
2214
  if (!cell || cell === pos.rawData) cell = { ...pos.rawData };
2203
2215
  cell.fontRenderExtension = {
2204
2216
  ...cell === null || cell === void 0 ? void 0 : cell.fontRenderExtension,
2205
- rightOffset: 16
2217
+ rightOffset: 16 + 1 + 2
2206
2218
  };
2207
2219
  return next(cell);
2208
2220
  },
@@ -2366,7 +2378,7 @@ const SheetTableSelector = (props) => {
2366
2378
  if (target.worksheet.getMergeData().some((merge) => {
2367
2379
  return _univerjs_core.Rectangle.intersects(newRange, merge);
2368
2380
  })) {
2369
- setRangeError(localeService.t("sheets-table.tableRangeWithMergeError"));
2381
+ setRangeError(localeService.t("sheets-table-ui.tableRangeWithMergeError"));
2370
2382
  return;
2371
2383
  }
2372
2384
  if (tableManager.getTablesBySubunitId(unitId, subUnitId).some((table) => {
@@ -2374,12 +2386,12 @@ const SheetTableSelector = (props) => {
2374
2386
  const tableRange = table.getRange();
2375
2387
  return _univerjs_core.Rectangle.intersects(newRange, tableRange);
2376
2388
  })) {
2377
- setRangeError(localeService.t("sheets-table.tableRangeWithOtherTableError"));
2389
+ setRangeError(localeService.t("sheets-table-ui.tableRangeWithOtherTableError"));
2378
2390
  return;
2379
2391
  }
2380
2392
  const { startRow, endRow } = newRange;
2381
2393
  if (startRow === endRow) {
2382
- setRangeError(localeService.t("sheets-table.tableRangeSingleRowError"));
2394
+ setRangeError(localeService.t("sheets-table-ui.tableRangeSingleRowError"));
2383
2395
  return;
2384
2396
  }
2385
2397
  if (originValue === text) return;
@@ -2397,7 +2409,7 @@ const SheetTableSelector = (props) => {
2397
2409
  });
2398
2410
  return;
2399
2411
  } else {
2400
- setRangeError(localeService.t("sheets-table.updateError"));
2412
+ setRangeError(localeService.t("sheets-table-ui.updateError"));
2401
2413
  return;
2402
2414
  }
2403
2415
  }
@@ -2415,7 +2427,7 @@ const SheetTableSelector = (props) => {
2415
2427
  className: "univer-mt-4 univer-flex univer-justify-end",
2416
2428
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2417
2429
  onClick: onCancel,
2418
- children: localeService.t("sheets-table.cancel")
2430
+ children: localeService.t("sheets-table-ui.cancel")
2419
2431
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
2420
2432
  variant: "primary",
2421
2433
  onClick: () => {
@@ -2427,7 +2439,7 @@ const SheetTableSelector = (props) => {
2427
2439
  });
2428
2440
  },
2429
2441
  className: "univer-ml-2",
2430
- children: localeService.t("sheets-table.confirm")
2442
+ children: localeService.t("sheets-table-ui.confirm")
2431
2443
  })]
2432
2444
  })
2433
2445
  ] });
@@ -2475,7 +2487,7 @@ const SheetTableThemePanel = (props) => {
2475
2487
  };
2476
2488
  const handleAddCustomTheme = () => {
2477
2489
  if (customRangeThemes.length >= 11) {
2478
- errorService.emit(localeService.t("sheets-table.customTooMore"));
2490
+ errorService.emit(localeService.t("sheets-table-ui.customTooMore"));
2479
2491
  return;
2480
2492
  }
2481
2493
  const lastCustomTheme = customRangeThemes[customRangeThemes.length - 1];
@@ -2512,7 +2524,7 @@ const SheetTableThemePanel = (props) => {
2512
2524
  const secondRowBgIsDark = new _univerjs_core.ColorKit(secondRowBg).isDark();
2513
2525
  const lastRowBgIsDark = new _univerjs_core.ColorKit(lastRowBg).isDark();
2514
2526
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
2515
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h5", { children: localeService.t("sheets-table.defaultStyle") }),
2527
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h5", { children: localeService.t("sheets-table-ui.defaultStyle") }),
2516
2528
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2517
2529
  className: "univer-flex univer-gap-2",
2518
2530
  children: defaultRangeThemes.map((item) => {
@@ -2546,7 +2558,7 @@ const SheetTableThemePanel = (props) => {
2546
2558
  }, item);
2547
2559
  })
2548
2560
  }),
2549
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h5", { children: localeService.t("sheets-table.customStyle") }),
2561
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h5", { children: localeService.t("sheets-table-ui.customStyle") }),
2550
2562
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2551
2563
  className: (0, _univerjs_design.clsx)("univer-w-full univer-rounded-sm", _univerjs_design.borderClassName),
2552
2564
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -2619,7 +2631,7 @@ const SheetTableThemePanel = (props) => {
2619
2631
  "univer-text-gray-900": !headerBgIsDark
2620
2632
  }),
2621
2633
  style: { background: headerBg },
2622
- children: localeService.t("sheets-table.header")
2634
+ children: localeService.t("sheets-table-ui.header")
2623
2635
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Dropdown, {
2624
2636
  overlay: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2625
2637
  className: "univer-p-2",
@@ -2654,7 +2666,7 @@ const SheetTableThemePanel = (props) => {
2654
2666
  "univer-text-gray-900": !firstRowBgIsDark
2655
2667
  }),
2656
2668
  style: { background: firstRowBg },
2657
- children: localeService.t("sheets-table.firstLine")
2669
+ children: localeService.t("sheets-table-ui.firstLine")
2658
2670
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Dropdown, {
2659
2671
  overlay: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2660
2672
  className: "univer-p-2",
@@ -2685,7 +2697,7 @@ const SheetTableThemePanel = (props) => {
2685
2697
  "univer-text-gray-900": !secondRowBgIsDark
2686
2698
  }),
2687
2699
  style: { background: secondRowBg },
2688
- children: localeService.t("sheets-table.secondLine")
2700
+ children: localeService.t("sheets-table-ui.secondLine")
2689
2701
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Dropdown, {
2690
2702
  overlay: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2691
2703
  className: "univer-p-2",
@@ -2714,7 +2726,7 @@ const SheetTableThemePanel = (props) => {
2714
2726
  "univer-text-gray-900": !lastRowBgIsDark
2715
2727
  }),
2716
2728
  style: { background: lastRowBg },
2717
- children: localeService.t("sheets-table.footer")
2729
+ children: localeService.t("sheets-table-ui.footer")
2718
2730
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Dropdown, {
2719
2731
  overlay: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2720
2732
  className: "univer-p-2",
@@ -2753,8 +2765,8 @@ function sheetTableToolbarInsertMenuFactory(accessor) {
2753
2765
  id: OpenTableSelectorOperation.id,
2754
2766
  type: _univerjs_ui.MenuItemType.BUTTON,
2755
2767
  icon: TABLE_TOOLBAR_BUTTON,
2756
- tooltip: "sheets-table.title",
2757
- title: "sheets-table.title",
2768
+ tooltip: "sheets-table-ui.title",
2769
+ title: "sheets-table-ui.title",
2758
2770
  hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
2759
2771
  disabled$: (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {}, true)
2760
2772
  };
@@ -2764,7 +2776,7 @@ function SheetTableInsertContextMenuFactory(accessor) {
2764
2776
  id: SHEET_TABLE_CONTEXT_INSERT_MENU_ID,
2765
2777
  type: _univerjs_ui.MenuItemType.SUBITEMS,
2766
2778
  icon: "InsertDoubleIcon",
2767
- title: "sheets-table.insert.main",
2779
+ title: "sheets-table-ui.insert.main",
2768
2780
  hidden$: getSheetTableRowColOperationHidden$(accessor)
2769
2781
  };
2770
2782
  }
@@ -2773,7 +2785,7 @@ function SheetTableRemoveContextMenuFactory(accessor) {
2773
2785
  id: SHEET_TABLE_CONTEXT_REMOVE_MENU_ID,
2774
2786
  type: _univerjs_ui.MenuItemType.SUBITEMS,
2775
2787
  icon: "ReduceDoubleIcon",
2776
- title: "sheets-table.remove.main",
2788
+ title: "sheets-table-ui.remove.main",
2777
2789
  hidden$: getSheetTableRowColOperationHidden$(accessor)
2778
2790
  };
2779
2791
  }
@@ -2781,14 +2793,14 @@ function SheetTableInsertRowMenuFactory(accessor) {
2781
2793
  return {
2782
2794
  id: _univerjs_sheets_table.SheetTableInsertRowCommand.id,
2783
2795
  type: _univerjs_ui.MenuItemType.BUTTON,
2784
- title: "sheets-table.insert.row",
2796
+ title: "sheets-table-ui.insert.row",
2785
2797
  hidden$: getSheetTableHeaderOperationHidden$(accessor)
2786
2798
  };
2787
2799
  }
2788
2800
  function SheetTableInsertColMenuFactory(accessor) {
2789
2801
  return {
2790
2802
  id: _univerjs_sheets_table.SheetTableInsertColCommand.id,
2791
- title: "sheets-table.insert.col",
2803
+ title: "sheets-table-ui.insert.col",
2792
2804
  type: _univerjs_ui.MenuItemType.BUTTON
2793
2805
  };
2794
2806
  }
@@ -2796,14 +2808,14 @@ function SheetTableRemoveRowMenuFactory(accessor) {
2796
2808
  return {
2797
2809
  id: _univerjs_sheets_table.SheetTableRemoveRowCommand.id,
2798
2810
  type: _univerjs_ui.MenuItemType.BUTTON,
2799
- title: "sheets-table.remove.row",
2811
+ title: "sheets-table-ui.remove.row",
2800
2812
  hidden$: getSheetTableHeaderOperationHidden$(accessor)
2801
2813
  };
2802
2814
  }
2803
2815
  function SheetTableRemoveColMenuFactory(accessor) {
2804
2816
  return {
2805
2817
  id: _univerjs_sheets_table.SheetTableRemoveColCommand.id,
2806
- title: "sheets-table.remove.col",
2818
+ title: "sheets-table-ui.remove.col",
2807
2819
  type: _univerjs_ui.MenuItemType.BUTTON
2808
2820
  };
2809
2821
  }