@univerjs/sheets 0.5.4 → 0.5.5-experimental.20250123-34738ff

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 (105) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +3 -3
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +2664 -1499
  11. package/lib/es/index.js +9211 -8683
  12. package/lib/es/locale/en-US.js +2 -2
  13. package/lib/es/locale/fa-IR.js +2 -2
  14. package/lib/es/locale/fr-FR.js +2 -2
  15. package/lib/es/locale/ru-RU.js +2 -2
  16. package/lib/es/locale/vi-VN.js +2 -2
  17. package/lib/es/locale/zh-CN.js +2 -2
  18. package/lib/es/locale/zh-TW.js +2 -2
  19. package/lib/types/basics/const/command-listener-const.d.ts +149 -13
  20. package/lib/types/commands/commands/remove-sheet.command.d.ts +1 -1
  21. package/lib/types/commands/commands/split-text-to-columns.command.d.ts +1 -1
  22. package/lib/types/commands/operations/selection.operation.d.ts +1 -0
  23. package/lib/types/commands/utils/selection-command-util.d.ts +1 -1
  24. package/lib/types/controllers/config.schema.d.ts +4 -0
  25. package/lib/types/facade/f-defined-name.d.ts +22 -16
  26. package/lib/types/facade/f-enum.d.ts +24 -0
  27. package/lib/types/facade/f-event.d.ts +474 -24
  28. package/lib/types/facade/f-permission.d.ts +141 -9
  29. package/lib/types/facade/f-range.d.ts +416 -98
  30. package/lib/types/facade/f-selection.d.ts +27 -1
  31. package/lib/types/facade/f-sheet-hooks.d.ts +3 -0
  32. package/lib/types/facade/f-univer.d.ts +39 -3
  33. package/lib/types/facade/f-workbook.d.ts +57 -60
  34. package/lib/types/facade/f-worksheet.d.ts +654 -209
  35. package/lib/types/facade/index.d.ts +2 -0
  36. package/lib/types/index.d.ts +2 -1
  37. package/lib/types/model/range-protection-rule.model.d.ts +1 -1
  38. package/lib/types/model/range-theme-util.d.ts +3 -3
  39. package/lib/types/services/permission/permission-point/const.d.ts +117 -4
  40. package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +1 -1
  41. package/lib/types/services/permission/range-permission/range-protection.service.d.ts +1 -1
  42. package/lib/types/services/permission/worksheet-permission/worksheet-permission-rule.model.d.ts +1 -1
  43. package/lib/types/services/selections/selection-data-model.d.ts +7 -7
  44. package/lib/types/services/selections/selection.service.d.ts +4 -0
  45. package/lib/umd/facade.js +1 -1
  46. package/lib/umd/index.js +3 -3
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +8 -8
  55. package/LICENSE +0 -176
  56. package/lib/types/basics/__tests__/cell-type.spec.d.ts +0 -16
  57. package/lib/types/basics/__tests__/cell-value.spec.d.ts +0 -16
  58. package/lib/types/basics/__tests__/expand.data.d.ts +0 -2
  59. package/lib/types/basics/__tests__/expand.spec.d.ts +0 -16
  60. package/lib/types/basics/__tests__/rangeMerge.spec.d.ts +0 -16
  61. package/lib/types/basics/__tests__/row-column-value.spec.d.ts +0 -16
  62. package/lib/types/basics/__tests__/utils.spec.d.ts +0 -16
  63. package/lib/types/commands/commands/__tests__/add-merge-command.spec.d.ts +0 -16
  64. package/lib/types/commands/commands/__tests__/clear-selection.command.spec.d.ts +0 -16
  65. package/lib/types/commands/commands/__tests__/copy-worksheet.command.spec.d.ts +0 -16
  66. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +0 -7
  67. package/lib/types/commands/commands/__tests__/delete-range.command.spec.d.ts +0 -16
  68. package/lib/types/commands/commands/__tests__/insert-range.command.spec.d.ts +0 -16
  69. package/lib/types/commands/commands/__tests__/insert-remove-rows-cols.command.spec.d.ts +0 -16
  70. package/lib/types/commands/commands/__tests__/move-range-commands.spec.d.ts +0 -16
  71. package/lib/types/commands/commands/__tests__/move-rows-cols.command.spec.d.ts +0 -16
  72. package/lib/types/commands/commands/__tests__/range-template-command.sepc.d.ts +0 -16
  73. package/lib/types/commands/commands/__tests__/remove-rows-cols.command.spec.d.ts +0 -16
  74. package/lib/types/commands/commands/__tests__/remove-sheet.command.spec.d.ts +0 -16
  75. package/lib/types/commands/commands/__tests__/set-border.command.spec.d.ts +0 -16
  76. package/lib/types/commands/commands/__tests__/set-col-data.command.spec.d.ts +0 -16
  77. package/lib/types/commands/commands/__tests__/set-col-width.command.spec.d.ts +0 -16
  78. package/lib/types/commands/commands/__tests__/set-frozen.command.spec.d.ts +0 -16
  79. package/lib/types/commands/commands/__tests__/set-gridlines-command.spec.d.ts +0 -16
  80. package/lib/types/commands/commands/__tests__/set-range-values.command.spec.d.ts +0 -16
  81. package/lib/types/commands/commands/__tests__/set-row-col-visible.command.spec.d.ts +0 -16
  82. package/lib/types/commands/commands/__tests__/set-row-data.command.spec.d.ts +0 -16
  83. package/lib/types/commands/commands/__tests__/set-row-height.command.spec.d.ts +0 -16
  84. package/lib/types/commands/commands/__tests__/set-style.command.spec.d.ts +0 -16
  85. package/lib/types/commands/commands/__tests__/set-tab-color.command.spec.d.ts +0 -16
  86. package/lib/types/commands/commands/__tests__/set-worksheet-default-style.command.spec.d.ts +0 -16
  87. package/lib/types/commands/commands/__tests__/set-worksheet-hide.command.spec.d.ts +0 -16
  88. package/lib/types/commands/commands/__tests__/set-worksheet-name.command.spec.d.ts +0 -16
  89. package/lib/types/commands/commands/__tests__/set-worksheet-order.command.spec.d.ts +0 -16
  90. package/lib/types/commands/commands/__tests__/set-worksheet-show.command.spec.d.ts +0 -16
  91. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +0 -8
  92. package/lib/types/commands/mutations/__tests__/move-rows-cols.mutation.spec.d.ts +0 -16
  93. package/lib/types/commands/mutations/__tests__/remove-row-col.mutation.spec.d.ts +0 -16
  94. package/lib/types/controllers/__tests__/util.d.ts +0 -13
  95. package/lib/types/facade/__tests__/utils.spec.d.ts +0 -16
  96. package/lib/types/services/__tests__/move-active-cell.spec.d.ts +0 -16
  97. package/lib/types/services/__tests__/numfmt.service.test.d.ts +0 -16
  98. package/lib/types/services/__tests__/ref-range.setvice.spec.d.ts +0 -16
  99. package/lib/types/services/__tests__/util.d.ts +0 -14
  100. package/lib/types/services/ref-range/__tests__/__testing__.d.ts +0 -14
  101. package/lib/types/services/ref-range/__tests__/ref-range.service.spec.d.ts +0 -13
  102. package/lib/types/services/ref-range/__tests__/utils.spec.d.ts +0 -16
  103. package/lib/types/services/ref-range/__tests__/watch-range.spec.d.ts +0 -16
  104. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +0 -13
  105. package/lib/types/services/sheet-interceptor/__tests__/sheet-interceptor.service.spec.d.ts +0 -16
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(Copy{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(کپی{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(Copie{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(Копия{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const h = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(Bản sao {0})",
@@ -13,5 +13,5 @@ const h = {
13
13
  }
14
14
  };
15
15
  export {
16
- h as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(副本{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,4 +1,4 @@
1
- const e = {
1
+ const locale = {
2
2
  sheets: {
3
3
  tabs: {
4
4
  sheetCopy: "(副本{0})",
@@ -13,5 +13,5 @@ const e = {
13
13
  }
14
14
  };
15
15
  export {
16
- e as default
16
+ locale as default
17
17
  };
@@ -1,20 +1,156 @@
1
+ import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
2
+ import { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../commands/mutations/move-rows-cols.mutation';
3
+ import { IReorderRangeMutationParams } from '../../commands/mutations/reorder-range.mutation';
4
+ import { ISetColDataMutationParams } from '../../commands/mutations/set-col-data.mutation';
5
+ import { ISetColHiddenMutationParams, ISetColVisibleMutationParams } from '../../commands/mutations/set-col-visible.mutation';
6
+ import { ISetGridlinesColorMutationParams } from '../../commands/mutations/set-gridlines-color.mutation';
7
+ import { ISetRangeValuesMutationParams } from '../../commands/mutations/set-range-values.mutation';
8
+ import { ISetRowDataMutationParams } from '../../commands/mutations/set-row-data.mutation';
9
+ import { ISetRowHiddenMutationParams, ISetRowVisibleMutationParams } from '../../commands/mutations/set-row-visible.mutation';
10
+ import { ISetWorksheetColWidthMutationParams } from '../../commands/mutations/set-worksheet-col-width.mutation';
11
+ import { ISetWorksheetDefaultStyleMutationParams } from '../../commands/mutations/set-worksheet-default-style.mutation';
12
+ import { ISetWorksheetRowAutoHeightMutationParams, ISetWorksheetRowHeightMutationParams, ISetWorksheetRowIsAutoHeightMutationParams } from '../../commands/mutations/set-worksheet-row-height.mutation';
13
+ import { IToggleGridlinesMutationParams } from '../../commands/mutations/toggle-gridlines.mutation';
14
+ import { ISetWorksheetActiveOperationParams } from '../../commands/operations/set-worksheet-active.operation';
15
+ import { IAddWorksheetMergeMutationParams, IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveWorksheetMergeMutationParams, IWorksheetRangeThemeStyleMutationParams } from '../interfaces';
16
+ import { ICommandInfo, IRange } from '@univerjs/core';
1
17
  /**
2
- * Copyright 2023-present DreamNum Inc.
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.
18
+ * Enum for all skeleton change command IDs
15
19
  */
20
+ export declare enum SheetSkeletonChangeType {
21
+ SET_WORKSHEET_ROW_HEIGHT = "sheet.mutation.set-worksheet-row-height",
22
+ SET_WORKSHEET_ROW_IS_AUTO_HEIGHT = "sheet.mutation.set-worksheet-row-is-auto-height",
23
+ SET_WORKSHEET_ROW_AUTO_HEIGHT = "sheet.mutation.set-worksheet-row-auto-height",
24
+ SET_WORKSHEET_COL_WIDTH = "sheet.mutation.set-worksheet-col-width",
25
+ SET_WORKSHEET_ACTIVE = "sheet.operation.set-worksheet-active",
26
+ MOVE_ROWS = "sheet.mutation.move-rows",
27
+ MOVE_COLUMNS = "sheet.mutation.move-columns",
28
+ SET_COL_HIDDEN = "sheet.mutation.set-col-hidden",
29
+ SET_COL_VISIBLE = "sheet.mutation.set-col-visible",
30
+ SET_ROW_HIDDEN = "sheet.mutation.set-row-hidden",
31
+ SET_ROW_VISIBLE = "sheet.mutation.set-row-visible",
32
+ INSERT_COL = "sheet.mutation.insert-col",
33
+ INSERT_ROW = "sheet.mutation.insert-row",
34
+ REMOVE_COL = "sheet.mutation.remove-col",
35
+ REMOVE_ROW = "sheet.mutation.remove-row",
36
+ TOGGLE_GRIDLINES = "sheet.mutation.toggle-gridlines",
37
+ SET_GRIDLINES_COLOR = "sheet.mutation.set-gridlines-color"
38
+ }
39
+ /**
40
+ * Enum for all value change command IDs
41
+ */
42
+ export declare enum SheetValueChangeType {
43
+ SET_RANGE_VALUES = "sheet.mutation.set-range-values",
44
+ MOVE_RANGE = "sheet.mutation.move-range",
45
+ REMOVE_WORKSHEET_MERGE = "sheet.mutation.remove-worksheet-merge",
46
+ ADD_WORKSHEET_MERGE = "sheet.mutation.add-worksheet-merge",
47
+ REORDER_RANGE = "sheet.mutation.reorder-range",
48
+ SET_WORKSHEET_DEFAULT_STYLE = "sheet.mutation.set-worksheet-default-style",
49
+ SET_ROW_DATA = "sheet.mutation.set-row-data",
50
+ SET_COL_DATA = "sheet.mutation.set-col-data",
51
+ SET_WORKSHEET_RANGE_THEME_STYLE = "sheet.mutation.set-worksheet-range-theme-style",
52
+ DELETE_WORKSHEET_RANGE_THEME_STYLE = "sheet.mutation.delete-worksheet-range-theme-style"
53
+ }
16
54
  /**
17
55
  * Mutations those will trigger the skeleton change.
18
56
  */
19
57
  export declare const COMMAND_LISTENER_SKELETON_CHANGE: string[];
20
58
  export declare const COMMAND_LISTENER_VALUE_CHANGE: string[];
59
+ export type CommandListenerSkeletonChange = {
60
+ id: SheetSkeletonChangeType.SET_WORKSHEET_ROW_HEIGHT;
61
+ params: ISetWorksheetRowHeightMutationParams;
62
+ } | {
63
+ id: SheetSkeletonChangeType.SET_WORKSHEET_ROW_IS_AUTO_HEIGHT;
64
+ params: ISetWorksheetRowIsAutoHeightMutationParams;
65
+ } | {
66
+ id: SheetSkeletonChangeType.SET_WORKSHEET_ROW_AUTO_HEIGHT;
67
+ params: ISetWorksheetRowAutoHeightMutationParams;
68
+ } | {
69
+ id: SheetSkeletonChangeType.SET_WORKSHEET_COL_WIDTH;
70
+ params: ISetWorksheetColWidthMutationParams;
71
+ } | {
72
+ id: SheetSkeletonChangeType.SET_WORKSHEET_ACTIVE;
73
+ params: ISetWorksheetActiveOperationParams;
74
+ } | {
75
+ id: SheetSkeletonChangeType.MOVE_ROWS;
76
+ params: IMoveRowsMutationParams;
77
+ } | {
78
+ id: SheetSkeletonChangeType.MOVE_COLUMNS;
79
+ params: IMoveColumnsMutationParams;
80
+ } | {
81
+ id: SheetSkeletonChangeType.SET_COL_HIDDEN;
82
+ params: ISetColHiddenMutationParams;
83
+ } | {
84
+ id: SheetSkeletonChangeType.SET_COL_VISIBLE;
85
+ params: ISetColVisibleMutationParams;
86
+ } | {
87
+ id: SheetSkeletonChangeType.SET_ROW_HIDDEN;
88
+ params: ISetRowHiddenMutationParams;
89
+ } | {
90
+ id: SheetSkeletonChangeType.SET_ROW_VISIBLE;
91
+ params: ISetRowVisibleMutationParams;
92
+ } | {
93
+ id: SheetSkeletonChangeType.INSERT_COL;
94
+ params: IInsertColMutationParams;
95
+ } | {
96
+ id: SheetSkeletonChangeType.INSERT_ROW;
97
+ params: IInsertRowMutationParams;
98
+ } | {
99
+ id: SheetSkeletonChangeType.REMOVE_COL;
100
+ params: IRemoveColMutationParams;
101
+ } | {
102
+ id: SheetSkeletonChangeType.REMOVE_ROW;
103
+ params: IRemoveRowsMutationParams;
104
+ } | {
105
+ id: SheetSkeletonChangeType.TOGGLE_GRIDLINES;
106
+ params: IToggleGridlinesMutationParams;
107
+ } | {
108
+ id: SheetSkeletonChangeType.SET_GRIDLINES_COLOR;
109
+ params: ISetGridlinesColorMutationParams;
110
+ };
111
+ export type CommandListenerValueChange = {
112
+ id: SheetValueChangeType.SET_RANGE_VALUES;
113
+ params: ISetRangeValuesMutationParams;
114
+ } | {
115
+ id: SheetValueChangeType.MOVE_RANGE;
116
+ params: IMoveRangeMutationParams;
117
+ } | {
118
+ id: SheetValueChangeType.REMOVE_WORKSHEET_MERGE;
119
+ params: IRemoveWorksheetMergeMutationParams;
120
+ } | {
121
+ id: SheetValueChangeType.ADD_WORKSHEET_MERGE;
122
+ params: IAddWorksheetMergeMutationParams;
123
+ } | {
124
+ id: SheetValueChangeType.REORDER_RANGE;
125
+ params: IReorderRangeMutationParams;
126
+ } | {
127
+ id: SheetValueChangeType.SET_WORKSHEET_DEFAULT_STYLE;
128
+ params: ISetWorksheetDefaultStyleMutationParams;
129
+ } | {
130
+ id: SheetValueChangeType.SET_ROW_DATA;
131
+ params: ISetRowDataMutationParams;
132
+ } | {
133
+ id: SheetValueChangeType.SET_COL_DATA;
134
+ params: ISetColDataMutationParams;
135
+ } | {
136
+ id: SheetValueChangeType.SET_WORKSHEET_RANGE_THEME_STYLE;
137
+ params: IWorksheetRangeThemeStyleMutationParams;
138
+ } | {
139
+ id: SheetValueChangeType.DELETE_WORKSHEET_RANGE_THEME_STYLE;
140
+ params: IWorksheetRangeThemeStyleMutationParams;
141
+ };
142
+ export declare function getValueChangedEffectedRange(commandInfo: ICommandInfo): {
143
+ unitId: string;
144
+ subUnitId: string;
145
+ range: IRange;
146
+ }[];
147
+ /**
148
+ * Get the affected range for skeleton change commands
149
+ * @param {ICommandInfo} commandInfo The command information
150
+ * @returns {{ unitId: string; subUnitId: string; range: IRange }[]} Array of affected ranges
151
+ */
152
+ export declare function getSkeletonChangedEffectedRange(commandInfo: ICommandInfo): {
153
+ unitId: string;
154
+ subUnitId: string;
155
+ range: IRange;
156
+ }[];
@@ -1,7 +1,7 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  export interface IRemoveSheetCommandParams {
3
3
  unitId?: string;
4
- subUnitId?: string;
4
+ subUnitId: string;
5
5
  }
6
6
  /**
7
7
  * The command to insert new worksheet
@@ -11,5 +11,5 @@ export interface ISplitTextToColumnsCommandParams {
11
11
  export declare const SplitTextToColumnsCommand: {
12
12
  type: CommandType;
13
13
  id: string;
14
- handler: (accessor: IAccessor, params: ISplitTextToColumnsCommandParams) => Promise<boolean>;
14
+ handler: (accessor: IAccessor, params: ISplitTextToColumnsCommandParams) => boolean;
15
15
  };
@@ -8,6 +8,7 @@ export interface ISetSelectionsOperationParams {
8
8
  type?: SelectionMoveType;
9
9
  /** If should scroll to the selected range. */
10
10
  reveal?: boolean;
11
+ extra?: string;
11
12
  }
12
13
  /**
13
14
  * Set selections to SelectionModel(WorkbookSelectionModel) by selectionManagerService.
@@ -1,3 +1,3 @@
1
1
  import { IAccessor } from '@univerjs/core';
2
2
  import { SheetsSelectionsService } from '../../services/selections/selection.service';
3
- export declare function getSelectionsService(accessor: IAccessor): SheetsSelectionsService;
3
+ export declare function getSelectionsService(accessor: IAccessor, fromCurrentSelection?: boolean): SheetsSelectionsService;
@@ -13,5 +13,9 @@ export interface IUniverSheetsConfig {
13
13
  * If the row style and column style be set both, and the row style should precede the column style or not.
14
14
  */
15
15
  isRowStylePrecedeColumnStyle?: boolean;
16
+ /**
17
+ * default false, auto height works for merged cells
18
+ */
19
+ autoHeightForMergedCells?: boolean;
16
20
  }
17
21
  export declare const defaultPluginConfig: IUniverSheetsConfig;
@@ -2,6 +2,9 @@ import { FWorksheet } from './f-worksheet';
2
2
  import { FBase, IAuthzIoService, ICommandService, Injector, IPermissionService, LocaleService } from '@univerjs/core';
3
3
  import { IDefinedNamesService, ISetDefinedNameMutationParam } from '@univerjs/engine-formula';
4
4
  import { RangeProtectionRuleModel, WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
5
+ /**
6
+ * @hideconstructor
7
+ */
5
8
  export declare class FDefinedNameBuilder {
6
9
  private _definedNameParam;
7
10
  constructor();
@@ -13,8 +16,8 @@ export declare class FDefinedNameBuilder {
13
16
  * ```ts
14
17
  * const workbook = univerAPI.getActiveWorkbook();
15
18
  * const definedNameBuilder = univerAPI.newDefinedName()
16
- * .setName('MyDefinedName')
17
- * .build();
19
+ * .setName('MyDefinedName')
20
+ * .build();
18
21
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
19
22
  * ```
20
23
  */
@@ -27,9 +30,9 @@ export declare class FDefinedNameBuilder {
27
30
  * ```ts
28
31
  * const workbook = univerAPI.getActiveWorkbook();
29
32
  * const definedNameBuilder = univerAPI.newDefinedName()
30
- * .setFormula('SUM(Sheet1!$A$1)')
31
- * .setName('MyDefinedName')
32
- * .build();
33
+ * .setFormula('SUM(Sheet1!$A$1)')
34
+ * .setName('MyDefinedName')
35
+ * .build();
33
36
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
34
37
  * ```
35
38
  */
@@ -42,8 +45,8 @@ export declare class FDefinedNameBuilder {
42
45
  * ```ts
43
46
  * const workbook = univerAPI.getActiveWorkbook();
44
47
  * const definedNameBuilder = univerAPI.newDefinedName()
45
- * .setRef('Sheet1!$A$1')
46
- * .build();
48
+ * .setRef('Sheet1!$A$1')
49
+ * .build();
47
50
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
48
51
  * ```
49
52
  */
@@ -59,8 +62,8 @@ export declare class FDefinedNameBuilder {
59
62
  * ```ts
60
63
  * const workbook = univerAPI.getActiveWorkbook();
61
64
  * const definedNameBuilder = univerAPI.newDefinedName()
62
- * .setRefByRange(1, 3, 2, 5)
63
- * .build();
65
+ * .setRefByRange(1, 3, 2, 5)
66
+ * .build();
64
67
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
65
68
  * ```
66
69
  */
@@ -73,8 +76,8 @@ export declare class FDefinedNameBuilder {
73
76
  * ```ts
74
77
  * const workbook = univerAPI.getActiveWorkbook();
75
78
  * const definedNameBuilder = univerAPI.newDefinedName()
76
- * .setComment('This is a comment')
77
- * .build();
79
+ * .setComment('This is a comment')
80
+ * .build();
78
81
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
79
82
  * ```
80
83
  */
@@ -87,8 +90,8 @@ export declare class FDefinedNameBuilder {
87
90
  * ```ts
88
91
  * const workbook = univerAPI.getActiveWorkbook();
89
92
  * const definedNameBuilder = univerAPI.newDefinedName()
90
- * .setHidden(true)
91
- * .build();
93
+ * .setHidden(true)
94
+ * .build();
92
95
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
93
96
  * ```
94
97
  */
@@ -100,15 +103,18 @@ export declare class FDefinedNameBuilder {
100
103
  * ```ts
101
104
  * const workbook = univerAPI.getActiveWorkbook();
102
105
  * const definedNameBuilder = univerAPI.newDefinedName()
103
- * .setRef('Sheet1!$A$1')
104
- * .setName('MyDefinedName')
105
- * .build();
106
+ * .setRef('Sheet1!$A$1')
107
+ * .setName('MyDefinedName')
108
+ * .build();
106
109
  * workbook.insertDefinedNameBuilder(definedNameBuilder);
107
110
  * ```
108
111
  */
109
112
  build(): ISetDefinedNameMutationParam;
110
113
  load(param: ISetDefinedNameMutationParam): FDefinedNameBuilder;
111
114
  }
115
+ /**
116
+ * @hideconstructor
117
+ */
112
118
  export declare class FDefinedName extends FBase {
113
119
  protected _definedNameParam: ISetDefinedNameMutationParam;
114
120
  protected readonly _injector: Injector;
@@ -0,0 +1,24 @@
1
+ import { SheetSkeletonChangeType, SheetValueChangeType } from '@univerjs/sheets';
2
+ /**
3
+ * @ignore
4
+ */
5
+ export interface IFSheetsEnum {
6
+ /**
7
+ * Sheet value change command types. These commands affect the content or style of cells.
8
+ * Includes operations like setting cell values, moving ranges, merging cells, and applying styles.
9
+ */
10
+ SheetValueChangeType: typeof SheetValueChangeType;
11
+ /**
12
+ * Sheet skeleton change command types. These commands affect the structure of the worksheet.
13
+ * Includes operations like changing row/column dimensions, visibility, and grid properties.
14
+ */
15
+ SheetSkeletonChangeType: typeof SheetSkeletonChangeType;
16
+ }
17
+ export declare class FSheetsEnum implements IFSheetsEnum {
18
+ get SheetValueChangeType(): typeof SheetValueChangeType;
19
+ get SheetSkeletonChangeType(): typeof SheetSkeletonChangeType;
20
+ }
21
+ declare module '@univerjs/core' {
22
+ interface FEnum extends IFSheetsEnum {
23
+ }
24
+ }