@univerjs/sheets-table 0.24.0 → 0.25.0-insiders.20260608-e4336f7

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 (125) hide show
  1. package/lib/cjs/index.js +283 -160
  2. package/lib/cjs/locale/ar-SA.js +10 -0
  3. package/lib/cjs/locale/ca-ES.js +10 -0
  4. package/lib/cjs/locale/de-DE.js +10 -0
  5. package/lib/cjs/locale/en-US.js +25 -0
  6. package/lib/cjs/locale/es-ES.js +10 -0
  7. package/lib/cjs/locale/fa-IR.js +10 -0
  8. package/lib/cjs/locale/fr-FR.js +10 -0
  9. package/lib/cjs/locale/id-ID.js +10 -0
  10. package/lib/cjs/locale/it-IT.js +10 -0
  11. package/lib/cjs/locale/ja-JP.js +10 -0
  12. package/lib/cjs/locale/ko-KR.js +10 -0
  13. package/lib/cjs/locale/pl-PL.js +10 -0
  14. package/lib/cjs/locale/pt-BR.js +10 -0
  15. package/lib/cjs/locale/ru-RU.js +10 -0
  16. package/lib/cjs/locale/sk-SK.js +10 -0
  17. package/lib/cjs/locale/vi-VN.js +10 -0
  18. package/lib/cjs/locale/zh-CN.js +10 -0
  19. package/lib/cjs/locale/zh-HK.js +10 -0
  20. package/lib/cjs/locale/zh-TW.js +10 -0
  21. package/lib/es/index.js +283 -161
  22. package/lib/es/locale/ar-SA.js +9 -0
  23. package/lib/es/locale/ca-ES.js +9 -0
  24. package/lib/es/locale/de-DE.js +9 -0
  25. package/lib/es/locale/en-US.js +24 -0
  26. package/lib/es/locale/es-ES.js +9 -0
  27. package/lib/es/locale/fa-IR.js +9 -0
  28. package/lib/es/locale/fr-FR.js +9 -0
  29. package/lib/es/locale/id-ID.js +9 -0
  30. package/lib/es/locale/it-IT.js +9 -0
  31. package/lib/es/locale/ja-JP.js +9 -0
  32. package/lib/es/locale/ko-KR.js +9 -0
  33. package/lib/es/locale/pl-PL.js +9 -0
  34. package/lib/es/locale/pt-BR.js +9 -0
  35. package/lib/es/locale/ru-RU.js +9 -0
  36. package/lib/es/locale/sk-SK.js +9 -0
  37. package/lib/es/locale/vi-VN.js +9 -0
  38. package/lib/es/locale/zh-CN.js +9 -0
  39. package/lib/es/locale/zh-HK.js +9 -0
  40. package/lib/es/locale/zh-TW.js +9 -0
  41. package/lib/index.js +283 -161
  42. package/lib/locale/ar-SA.js +9 -0
  43. package/lib/locale/ca-ES.js +9 -0
  44. package/lib/locale/de-DE.js +9 -0
  45. package/lib/locale/en-US.js +24 -0
  46. package/lib/locale/es-ES.js +9 -0
  47. package/lib/locale/fa-IR.js +9 -0
  48. package/lib/locale/fr-FR.js +9 -0
  49. package/lib/locale/id-ID.js +9 -0
  50. package/lib/locale/it-IT.js +9 -0
  51. package/lib/locale/ja-JP.js +9 -0
  52. package/lib/locale/ko-KR.js +9 -0
  53. package/lib/locale/pl-PL.js +9 -0
  54. package/lib/locale/pt-BR.js +9 -0
  55. package/lib/locale/ru-RU.js +9 -0
  56. package/lib/locale/sk-SK.js +9 -0
  57. package/lib/locale/vi-VN.js +9 -0
  58. package/lib/locale/zh-CN.js +9 -0
  59. package/lib/locale/zh-HK.js +9 -0
  60. package/lib/locale/zh-TW.js +9 -0
  61. package/lib/types/commands/commands/set-sheet-table.command.d.ts +1 -0
  62. package/lib/types/const.d.ts +1 -0
  63. package/lib/types/controllers/sheet-table-formula.controller.d.ts +1 -1
  64. package/lib/types/controllers/sheet-table-range.controller.d.ts +1 -1
  65. package/lib/types/controllers/sheet-table-ref-range.controller.d.ts +4 -1
  66. package/lib/types/controllers/sheet-table-theme.controller.d.ts +1 -1
  67. package/lib/types/controllers/sheets-table.controller.d.ts +2 -2
  68. package/lib/types/controllers/table-filter.controller.d.ts +5 -5
  69. package/lib/types/controllers/table-theme.factory.d.ts +4 -4
  70. package/lib/types/facade/f-workbook.d.ts +8 -4
  71. package/lib/types/facade/f-worksheet.d.ts +18 -9
  72. package/lib/types/index.d.ts +2 -2
  73. package/lib/types/locale/ar-SA.d.ts +18 -0
  74. package/lib/types/locale/ca-ES.d.ts +18 -0
  75. package/lib/types/locale/de-DE.d.ts +18 -0
  76. package/lib/types/locale/en-US.d.ts +23 -0
  77. package/lib/types/locale/es-ES.d.ts +18 -0
  78. package/lib/types/locale/fa-IR.d.ts +18 -0
  79. package/lib/types/locale/fr-FR.d.ts +18 -0
  80. package/lib/types/locale/id-ID.d.ts +18 -0
  81. package/lib/types/locale/it-IT.d.ts +18 -0
  82. package/lib/types/locale/ja-JP.d.ts +18 -0
  83. package/lib/types/locale/ko-KR.d.ts +18 -0
  84. package/lib/types/locale/pl-PL.d.ts +18 -0
  85. package/lib/types/locale/pt-BR.d.ts +18 -0
  86. package/lib/types/locale/ru-RU.d.ts +18 -0
  87. package/lib/types/locale/sk-SK.d.ts +18 -0
  88. package/lib/types/locale/vi-VN.d.ts +18 -0
  89. package/lib/types/locale/zh-CN.d.ts +18 -0
  90. package/lib/types/locale/zh-HK.d.ts +18 -0
  91. package/lib/types/locale/zh-TW.d.ts +18 -0
  92. package/lib/types/services/table.service.d.ts +1 -1
  93. package/lib/types/util.d.ts +1 -1
  94. package/lib/umd/facade.js +1 -1
  95. package/lib/umd/index.js +1 -1
  96. package/lib/umd/locale/ar-SA.js +1 -0
  97. package/lib/umd/locale/ca-ES.js +1 -0
  98. package/lib/umd/locale/de-DE.js +1 -0
  99. package/lib/umd/locale/en-US.js +1 -0
  100. package/lib/umd/locale/es-ES.js +1 -0
  101. package/lib/umd/locale/fa-IR.js +1 -0
  102. package/lib/umd/locale/fr-FR.js +1 -0
  103. package/lib/umd/locale/id-ID.js +1 -0
  104. package/lib/umd/locale/it-IT.js +1 -0
  105. package/lib/umd/locale/ja-JP.js +1 -0
  106. package/lib/umd/locale/ko-KR.js +1 -0
  107. package/lib/umd/locale/pl-PL.js +1 -0
  108. package/lib/umd/locale/pt-BR.js +1 -0
  109. package/lib/umd/locale/ru-RU.js +1 -0
  110. package/lib/umd/locale/sk-SK.js +1 -0
  111. package/lib/umd/locale/vi-VN.js +1 -0
  112. package/lib/umd/locale/zh-CN.js +1 -0
  113. package/lib/umd/locale/zh-HK.js +1 -0
  114. package/lib/umd/locale/zh-TW.js +1 -0
  115. package/package.json +13 -6
  116. package/LICENSE +0 -176
  117. /package/lib/types/{model → models}/filter-util/condition.d.ts +0 -0
  118. /package/lib/types/{model → models}/filter-util/date-filter-util.d.ts +0 -0
  119. /package/lib/types/{model → models}/filter-util/number-filter-util.d.ts +0 -0
  120. /package/lib/types/{model → models}/filter-util/text-filter-util.d.ts +0 -0
  121. /package/lib/types/{model → models}/filter-util/top-n.d.ts +0 -0
  122. /package/lib/types/{model → models}/table-column.d.ts +0 -0
  123. /package/lib/types/{model → models}/table-filter.d.ts +0 -0
  124. /package/lib/types/{model → models}/table-manager.d.ts +0 -0
  125. /package/lib/types/{model → models}/table.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "عمود",
4
+ tablePrefix: "جدول",
5
+ tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يكون مطابقًا لاسم جدول موجود"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/ca-ES.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Columna",
4
+ tablePrefix: "Taula",
5
+ 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"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Spalte",
4
+ tablePrefix: "Tabelle",
5
+ tableNameError: "Tabellenname darf keine Leerzeichen enthalten, darf nicht mit einer Zahl beginnen und darf nicht mit einem vorhandenen Tabellennamen identisch sein"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,24 @@
1
+ //#region src/locale/en-US.ts
2
+ /**
3
+ * Copyright 2023-present DreamNum Co., Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ const locale = { "sheets-table": {
18
+ columnPrefix: "Column",
19
+ tablePrefix: "Table",
20
+ tableNameError: "Table name cannot contain spaces, cannot start with a number, and cannot be identical to an existing table name"
21
+ } };
22
+
23
+ //#endregion
24
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/es-ES.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Columna",
4
+ tablePrefix: "Tabla",
5
+ 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"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/fa-IR.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "ستون",
4
+ tablePrefix: "جدول",
5
+ tableNameError: "لا يمكن أن يحتوي اسم الجدول على مسافات، ولا يمكن أن يبدأ برقم، ولا يمكن أن يتكرر مع أسماء الجداول الموجودة"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/fr-FR.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Colonne",
4
+ tablePrefix: "Tableau",
5
+ 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"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Kolom",
4
+ tablePrefix: "Tabel",
5
+ tableNameError: "Nama tabel tidak boleh mengandung spasi, tidak boleh diawali dengan angka, dan tidak boleh sama dengan nama tabel yang sudah ada"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Colonna",
4
+ tablePrefix: "Tabella",
5
+ tableNameError: "Il nome della tabella non può contenere spazi, non può iniziare con un numero e non può essere identico a un nome di tabella esistente"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/ja-JP.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "列",
4
+ tablePrefix: "表",
5
+ tableNameError: "表の名前は空白を含めることはできず、数字で始めることはできず、既存の表名と重複できません"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/ko-KR.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "열",
4
+ tablePrefix: "표",
5
+ tableNameError: "표 이름은 공백을 포함할 수 없으며 숫자로 시작할 수 없고 기존 표 이름과 중복될 수 없습니다"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Kolumna",
4
+ tablePrefix: "Tabela",
5
+ tableNameError: "Nazwa tabeli nie może zawierać spacji, nie może zaczynać się od cyfry i nie może być identyczna z istniejącą nazwą tabeli"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Coluna",
4
+ tablePrefix: "Tabela",
5
+ tableNameError: "O nome da tabela não pode conter espaços, não pode começar com um número e não pode ser idêntico a um nome de tabela existente"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/ru-RU.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Столбец",
4
+ tablePrefix: "Таблица",
5
+ tableNameError: "Имя таблицы не может содержать пробелы, не может начинаться с цифры и не может совпадать с именем существующей таблицы"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/sk-SK.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Stĺpec",
4
+ tablePrefix: "Tabuľka",
5
+ tableNameError: "Názov tabuľky nesmie obsahovať medzery, nesmie začínať číslom a nesmie byť zhodný s existujúcim názvom tabuľky"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/vi-VN.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "Cột",
4
+ tablePrefix: "Bảng",
5
+ 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ó"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/zh-CN.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "列",
4
+ tablePrefix: "表格",
5
+ tableNameError: "表格名称不能包含空格, 不能以数字开头,不能和已有表格名称重复"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "列",
4
+ tablePrefix: "表格",
5
+ tableNameError: "表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -0,0 +1,9 @@
1
+ //#region src/locale/zh-TW.ts
2
+ const locale = { "sheets-table": {
3
+ columnPrefix: "列",
4
+ tablePrefix: "表格",
5
+ tableNameError: "表格名稱不能包含空格, 不能以數字開頭,不能和已有表格名稱重複"
6
+ } };
7
+
8
+ //#endregion
9
+ export { locale as default };
@@ -18,5 +18,6 @@ import type { ITableSetConfig } from '../../types/type';
18
18
  export interface ISetSheetTableCommandParams extends ITableSetConfig {
19
19
  unitId: string;
20
20
  tableId: string;
21
+ oldTableName?: string;
21
22
  }
22
23
  export declare const SetSheetTableCommand: ICommand<ISetSheetTableCommandParams>;
@@ -17,3 +17,4 @@ export declare const PLUGIN_NAME = "SHEET_TABLE_PLUGIN";
17
17
  export declare const FEATURE_TABLE_ID = "SHEET_TABLE";
18
18
  export declare const DEFAULT_COLUMN_NAME_PREFIX = "Column";
19
19
  export declare const SHEET_TABLE_CUSTOM_THEME_PREFIX = "table-custom";
20
+ export declare const TABLE_FILTER_EMPTY_VALUE = "__UNIVER_TABLE_FILTER_EMPTY__";
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, ICommandService } from '@univerjs/core';
17
- import { TableManager } from '../model/table-manager';
17
+ import { TableManager } from '../models/table-manager';
18
18
  export declare class SheetTableFormulaController extends Disposable {
19
19
  private _tableManager;
20
20
  private readonly _commandService;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Disposable } from '@univerjs/core';
17
17
  import { IExclusiveRangeService } from '@univerjs/sheets';
18
- import { TableManager } from '../model/table-manager';
18
+ import { TableManager } from '../models/table-manager';
19
19
  export declare class SheetTableRangeController extends Disposable {
20
20
  private _tableManager;
21
21
  private _exclusiveRangeService;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Disposable, ICommandService, Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
17
17
  import { RefRangeService, SheetInterceptorService } from '@univerjs/sheets';
18
- import { TableManager } from '../model/table-manager';
18
+ import { TableManager } from '../models/table-manager';
19
19
  export declare class SheetTableRefRangeController extends Disposable {
20
20
  private readonly _commandService;
21
21
  private readonly _refRangeService;
@@ -30,5 +30,8 @@ export declare class SheetTableRefRangeController extends Disposable {
30
30
  private _generateTableMutationWithInsertCol;
31
31
  private _generateTableMutationWithRemoveRow;
32
32
  private _generateTableMutationWithRemoveCol;
33
+ private _getDeleteTableMutation;
34
+ private _getAddTableMutation;
35
+ private _appendTableColumnFormulaMutations;
33
36
  private _initCommandListener;
34
37
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Disposable, IConfigService } from '@univerjs/core';
17
17
  import { SheetRangeThemeModel, SheetRangeThemeService } from '@univerjs/sheets';
18
- import { TableManager } from '../model/table-manager';
18
+ import { TableManager } from '../models/table-manager';
19
19
  export declare class SheetsTableThemeController extends Disposable {
20
20
  private _tableManager;
21
21
  private _sheetRangeThemeService;
@@ -16,7 +16,7 @@
16
16
  import type { IRange } from '@univerjs/core';
17
17
  import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
18
18
  import { SheetInterceptorService } from '@univerjs/sheets';
19
- import { TableManager } from '../model/table-manager';
19
+ import { TableManager } from '../models/table-manager';
20
20
  export declare class SheetsTableController extends Disposable {
21
21
  private _univerInstanceService;
22
22
  private _sheetInterceptorService;
@@ -24,7 +24,7 @@ export declare class SheetsTableController extends Disposable {
24
24
  private _resourceManagerService;
25
25
  private _tableRangeRTree;
26
26
  constructor(_univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _tableManager: TableManager, _resourceManagerService: IResourceManagerService);
27
- getContainerTableWithRange(unitId: string, subUnitId: string, range: IRange): import("../model/table").Table | undefined;
27
+ getContainerTableWithRange(unitId: string, subUnitId: string, range: IRange): import("../models/table").Table | undefined;
28
28
  private _ensureTableRangeRTree;
29
29
  registerTableChangeEvent(): void;
30
30
  registerTableHeaderInterceptor(): void;
@@ -15,20 +15,20 @@
15
15
  */
16
16
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
17
17
  import { SheetInterceptorService, ZebraCrossingCacheController } from '@univerjs/sheets';
18
- import { TableManager } from '../model/table-manager';
18
+ import { TableManager } from '../models/table-manager';
19
19
  export declare class TableFilterController extends Disposable {
20
20
  private _tableManager;
21
21
  private readonly _sheetInterceptorService;
22
22
  private readonly _univerInstanceService;
23
23
  private readonly _zebraCrossingCacheController;
24
- private readonly _tableFilteredOutRows$;
25
- readonly tableFilteredOutRows$: import("rxjs").Observable<Readonly<Set<number>>>;
24
+ private readonly _tableFilteredOutRows;
26
25
  private _subscription;
27
26
  constructor(_tableManager: TableManager, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _zebraCrossingCacheController: ZebraCrossingCacheController);
28
- get tableFilteredOutRows(): Set<number>;
29
- set tableFilteredOutRows(value: Set<number>);
30
27
  initTableHiddenRowIntercept(): void;
31
28
  private _initFilteredOutRows;
32
29
  registerFilterChangeEvent(): void;
30
+ private _refreshTableFilteredOutRows;
31
+ private _getTableFilteredOutRows;
32
+ private _getSheetKey;
33
33
  dispose(): void;
34
34
  }
@@ -28,12 +28,12 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
28
28
  r?: undefined;
29
29
  l?: undefined;
30
30
  };
31
- bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
32
31
  cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
33
32
  ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
34
33
  vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
35
34
  bl?: import("@univerjs/core").BooleanNumber | undefined;
36
35
  ol?: import("@univerjs/core").ITextDecoration | undefined;
36
+ bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
37
37
  } | {
38
38
  bd: {
39
39
  b: {
@@ -46,12 +46,12 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
46
46
  r?: undefined;
47
47
  l?: undefined;
48
48
  };
49
- bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
50
49
  cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
51
50
  ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
52
51
  vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
53
52
  bl?: import("@univerjs/core").BooleanNumber | undefined;
54
53
  ol?: import("@univerjs/core").ITextDecoration | undefined;
54
+ bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
55
55
  } | {
56
56
  bd: {
57
57
  r: {
@@ -64,12 +64,12 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
64
64
  b?: undefined;
65
65
  l?: undefined;
66
66
  };
67
- bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
68
67
  cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
69
68
  ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
70
69
  vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
71
70
  bl?: import("@univerjs/core").BooleanNumber | undefined;
72
71
  ol?: import("@univerjs/core").ITextDecoration | undefined;
72
+ bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
73
73
  } | {
74
74
  bd: {
75
75
  l: {
@@ -82,11 +82,11 @@ export declare const processStyleWithBorderStyle: (key: keyof Omit<IRangeThemeSt
82
82
  b?: undefined;
83
83
  r?: undefined;
84
84
  };
85
- bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
86
85
  cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
87
86
  ht?: import("@univerjs/core").Nullable<import("@univerjs/core").HorizontalAlign>;
88
87
  vt?: import("@univerjs/core").Nullable<import("@univerjs/core").VerticalAlign>;
89
88
  bl?: import("@univerjs/core").BooleanNumber | undefined;
90
89
  ol?: import("@univerjs/core").ITextDecoration | undefined;
90
+ bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
91
91
  };
92
92
  export declare const tableThemeConfig: ITableDefaultThemeStyle[];
@@ -26,7 +26,8 @@ export interface IFWorkbookSheetsTableMixin {
26
26
  * @example
27
27
  * ```typescript
28
28
  * const fWorkbook = univerAPI.getActiveWorkbook();
29
- * const fWorksheet = fWorkbook.getActiveSheet();
29
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
30
+ * if (!fWorksheet) return;
30
31
  *
31
32
  * // Insert a table in the range B2:F11
32
33
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -53,7 +54,8 @@ export interface IFWorkbookSheetsTableMixin {
53
54
  * @example
54
55
  * ```typescript
55
56
  * const fWorkbook = univerAPI.getActiveWorkbook();
56
- * const fWorksheet = fWorkbook.getActiveSheet();
57
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
58
+ * if (!fWorksheet) return;
57
59
  *
58
60
  * // Insert a table in the range B2:F11
59
61
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -95,7 +97,8 @@ export interface IFWorkbookSheetsTableMixin {
95
97
  * @example
96
98
  * ```typescript
97
99
  * const fWorkbook = univerAPI.getActiveWorkbook();
98
- * const fWorksheet = fWorkbook.getActiveSheet();
100
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
101
+ * if (!fWorksheet) return;
99
102
  *
100
103
  * // Insert a table in the range B2:F11
101
104
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -125,7 +128,8 @@ export interface IFWorkbookSheetsTableMixin {
125
128
  * @example
126
129
  * ```typescript
127
130
  * const fWorkbook = univerAPI.getActiveWorkbook();
128
- * const fWorksheet = fWorkbook.getActiveSheet();
131
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
132
+ * if (!fWorksheet) return;
129
133
  *
130
134
  * // Insert a table in the range B2:F11
131
135
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -30,7 +30,8 @@ export interface IFWorksheetTableMixin {
30
30
  * @example
31
31
  * ```typescript
32
32
  * const fWorkbook = univerAPI.getActiveWorkbook();
33
- * const fWorksheet = fWorkbook.getActiveSheet();
33
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
34
+ * if (!fWorksheet) return;
34
35
  *
35
36
  * // Insert a table in the range B2:F11
36
37
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -72,7 +73,8 @@ export interface IFWorksheetTableMixin {
72
73
  * @example
73
74
  * ```typescript
74
75
  * const fWorkbook = univerAPI.getActiveWorkbook();
75
- * const fWorksheet = fWorkbook.getActiveSheet();
76
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
77
+ * if (!fWorksheet) return;
76
78
  *
77
79
  * // Insert a table in the range B2:F11
78
80
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -109,7 +111,8 @@ export interface IFWorksheetTableMixin {
109
111
  * @example
110
112
  * ```typescript
111
113
  * const fWorkbook = univerAPI.getActiveWorkbook();
112
- * const fWorksheet = fWorkbook.getActiveSheet();
114
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
115
+ * if (!fWorksheet) return;
113
116
  * const tableInfo = fWorkbook.getTableInfo('id-1');
114
117
  * console.log('debugger tableInfo', tableInfo);
115
118
  *
@@ -128,7 +131,8 @@ export interface IFWorksheetTableMixin {
128
131
  * @example
129
132
  * ```typescript
130
133
  * const fWorkbook = univerAPI.getActiveWorkbook();
131
- * const fWorksheet = fWorkbook.getActiveSheet();
134
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
135
+ * if (!fWorksheet) return;
132
136
  *
133
137
  * // Insert a table in the range B2:F11
134
138
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -162,7 +166,8 @@ export interface IFWorksheetTableMixin {
162
166
  * @example
163
167
  * ```typescript
164
168
  * const fWorkbook = univerAPI.getActiveWorkbook();
165
- * const fWorksheet = fWorkbook.getActiveSheet();
169
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
170
+ * if (!fWorksheet) return;
166
171
  *
167
172
  * // Insert a table in the range B2:F11
168
173
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -193,7 +198,8 @@ export interface IFWorksheetTableMixin {
193
198
  * @example
194
199
  * ```typescript
195
200
  * const fWorkbook = univerAPI.getActiveWorkbook();
196
- * const fWorksheet = fWorkbook.getActiveSheet();
201
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
202
+ * if (!fWorksheet) return;
197
203
  * const tables = fWorksheet.getSubTableInfos();
198
204
  * console.log('debugger tables', tables);
199
205
  * ```
@@ -207,7 +213,8 @@ export interface IFWorksheetTableMixin {
207
213
  * @example
208
214
  * ```typescript
209
215
  * const fWorkbook = univerAPI.getActiveWorkbook();
210
- * const fWorksheet = fWorkbook.getActiveSheet();
216
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
217
+ * if (!fWorksheet) return;
211
218
  *
212
219
  * // Insert a table in the range B2:F11
213
220
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -250,7 +257,8 @@ export interface IFWorksheetTableMixin {
250
257
  * @example
251
258
  * ```typescript
252
259
  * const fWorkbook = univerAPI.getActiveWorkbook();
253
- * const fWorksheet = fWorkbook.getActiveSheet();
260
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
261
+ * if (!fWorksheet) return;
254
262
  *
255
263
  * const cellB2 = fWorksheet.getRange('B2');
256
264
  * const row = cellB2.getRow();
@@ -279,7 +287,8 @@ export interface IFWorksheetTableMixin {
279
287
  * @example
280
288
  * ```typescript
281
289
  * const fWorkbook = univerAPI.getActiveWorkbook();
282
- * const fWorksheet = fWorkbook.getActiveSheet();
290
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
291
+ * if (!fWorksheet) return;
283
292
  *
284
293
  * // Insert a table in the range B2:F11
285
294
  * const fRange = fWorksheet.getRange('B2:F11');
@@ -32,10 +32,10 @@ export type { ISetSheetTableMutationParams } from './commands/mutations/set-shee
32
32
  export { SetSheetTableFilterMutation } from './commands/mutations/set-table-filter.mutation';
33
33
  export type { ISetSheetTableParams } from './commands/mutations/set-table-filter.mutation';
34
34
  export type { IUniverSheetsTableConfig } from './config/config';
35
- export { SHEET_TABLE_CUSTOM_THEME_PREFIX } from './const';
35
+ export { SHEET_TABLE_CUSTOM_THEME_PREFIX, TABLE_FILTER_EMPTY_VALUE } from './const';
36
36
  export { SheetsTableController } from './controllers/sheets-table.controller';
37
37
  export { customEmptyThemeWithBorderStyle, processStyleWithBorderStyle } from './controllers/table-theme.factory';
38
- export { TableManager } from './model/table-manager';
38
+ export { TableManager } from './models/table-manager';
39
39
  export { UniverSheetsTablePlugin } from './plugin';
40
40
  export { SheetTableService } from './services/table.service';
41
41
  export { SheetsTableButtonStateEnum, SheetsTableSortStateEnum, TableColumnDataTypeEnum, TableColumnFilterTypeEnum, TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from './types/enum';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ declare const locale: {
17
+ 'sheets-table': {
18
+ columnPrefix: string;
19
+ tablePrefix: string;
20
+ tableNameError: string;
21
+ };
22
+ };
23
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;