Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: update action name
jerry0afd172a1bd0
diff --git a/packages/core/src/Sheets/Action/InsertRowAction.ts b/packages/core/src/Sheets/Action/InsertRowAction.tsindex 7a3027e924..962543f60e 100644--- a/packages/core/src/Sheets/Action/InsertRowAction.ts+++ b/packages/core/src/Sheets/Action/InsertRowAction.ts@@ -1,8 +1,12 @@-import { SheetActionBase, ISheetActionData } from '../../Command/SheetActionBase';+import {+ SheetActionBase,+ ISheetActionData,+ ActionObservers,+ ActionType,+ CommandUnit,+} from '../../Command';import { InsertRow, RemoveRow } from '../Apply';-import { ActionObservers, ActionType } from '../../Command/ActionObservers';import { IRemoveRowActionData } from './RemoveRowAction';-import { CommandUnit } from '../../Command';/*** @internaldiff --git a/packages/core/src/Sheets/Domain/RangeList.ts b/packages/core/src/Sheets/Domain/RangeList.tsindex 2d49087b91..d270433917 100644--- a/packages/core/src/Sheets/Domain/RangeList.ts+++ b/packages/core/src/Sheets/Domain/RangeList.ts@@ -1,22 +1,28 @@import { Worksheet } from './index';import { SheetContext } from '../../Basics';+import {- Command,- CommandManager,+ ISetRangeStyleActionData,IClearRangeActionData,ISetRangeDataActionData,+ Command,+ CommandManager,ISetRangeFormulaActionData,- ISetRangeStyleActionData,ISetRangeFormattedValueActionData,+ SetRangeDataAction,+ ClearRangeAction,+ SetRangeStyleAction,} from '../../Command';import { ACTION_NAMES } from '../../Const';+import {BooleanNumber,HorizontalAlign,VerticalAlign,WrapStrategy,} from '../../Enum';+import {ICellData,ICellV,@@ -26,8 +32,11 @@ import {IStyleData,ITextDecoration,} from '../../Interfaces';-import { Nullable, ObjectMatrix, Tools, Tuples } from '../../Shared';+import { Workbook } from './Workbook';++import { Nullable, ObjectMatrix, Tools, Tuples } from '../../Shared';+/*** A collection of one or more Range instances in the same sheet.*@@ -125,7 +134,7 @@ export class RangeList {let setValue: ISetRangeDataActionData = {sheetId: _worksheet.getSheetId(),- actionName: ACTION_NAMES.SET_RANGE_DATA_ACTION,+ actionName: SetRangeDataAction.NAME,cellValue: cellValue.getData(),};return setValue;@@ -174,7 +183,7 @@ export class RangeList {const clearList = _rangeList.map((range) => {let clearRange: IClearRangeActionData = {sheetId: _worksheet.getSheetId(),- actionName: ACTION_NAMES.CLEAR_RANGE_ACTION,+ actionName: ClearRangeAction.NAME,options,rangeData: range,};@@ -248,9 +257,9 @@ export class RangeList {const setStyle: ISetRangeStyleActionData = {sheetId: _worksheet.getSheetId(),- actionName: ACTION_NAMES.SET_RANGE_STYLE_ACTION,value: stylesMatrix,rangeData: range,+ actionName: SetRangeStyleAction.NAME,};return setStyle;diff --git a/packages/core/src/Sheets/Domain/RowManager.ts b/packages/core/src/Sheets/Domain/RowManager.tsindex b444732a44..33eb3f38ea 100644--- a/packages/core/src/Sheets/Domain/RowManager.ts+++ b/packages/core/src/Sheets/Domain/RowManager.ts@@ -1,10 +1,8 @@import { Command } from '../../Command';-import { ISetRowHeightActionData } from '../Action';-import { ACTION_NAMES } from '../../Const';+import { ISetRowHeightActionData, SetRowHeightAction } from '../Action';import { BooleanNumber } from '../../Enum';import { IRowData } from '../../Interfaces';-import { Nullable } from '../../Shared';-import { ObjectArray, ObjectArrayType } from '../../Shared/ObjectArray';+import { Nullable, ObjectArray, ObjectArrayType } from '../../Shared';import { Worksheet } from './Worksheet';/**@@ -85,7 +83,7 @@ export class RowManager {const _commandManager = this._workSheet.getCommandManager();const setRowHeight: ISetRowHeightActionData = {sheetId: this._workSheet.getSheetId(),- actionName: ACTION_NAMES.SET_ROW_HEIGHT_ACTION,+ actionName: SetRowHeightAction.NAME,rowIndex,rowHeight,};diff --git a/packages/core/src/Sheets/Domain/Selection.ts b/packages/core/src/Sheets/Domain/Selection.tsindex 1e99c2aca9..8910254f5a 100644--- a/packages/core/src/Sheets/Domain/Selection.ts+++ b/packages/core/src/Sheets/Domain/Selection.ts@@ -1,7 +1,12 @@import { SheetContext } from '../../Basics';import { Command, CommandManager } from '../../Command';-import { ISetSelectionActivateActionData } from '../Action';-import { ACTION_NAMES, DEFAULT_SELECTION } from '../../Const';++import {+ ISetSelectionActivateActionData,+ SetSelectionActivateAction,+} from '../Action';++import { DEFAULT_SELECTION } from '../../Const';import { Direction } from '../../Enum';import { IRangeData, IRangeType, ISelectionData } from '../../Interfaces';import { Nullable, Tools } from '../../Shared';@@ -165,7 +170,7 @@ export class Selection {const { _context, _workSheet, _commandManager } = this;const setSelection: ISetSelectionActivateActionData = {sheetId: _workSheet.getSheetId(),- actionName: ACTION_NAMES.SET_SELECTION_ACTION,+ actionName: SetSelectionActivateAction.NAME,activeRangeList,activeRange,currentCell,@@ -285,7 +290,7 @@ export class Selection {const { _context, _workSheet, _commandManager } = this;const setSelection: ISetSelectionActivateActionData = {sheetId: _workSheet.getSheetId(),- actionName: ACTION_NAMES.SET_SELECTION_ACTION,+ actionName: SetSelectionActivateAction.NAME,activeRangeList,activeRange: range,currentCell: range,diff --git a/packages/core/src/Sheets/Domain/Workbook.ts b/packages/core/src/Sheets/Domain/Workbook.tsindex be0183a94d..edd341b3b8 100644--- a/packages/core/src/Sheets/Domain/Workbook.ts+++ b/packages/core/src/Sheets/Domain/Workbook.ts@@ -1,13 +1,22 @@import { nanoid } from 'nanoid';+import {- ACTION_NAMES,DEFAULT_RANGE_ARRAY,DEFAULT_WORKBOOK,DEFAULT_WORKSHEET,} from '../../Const';+import { BooleanNumber } from '../../Enum';import { SheetContext } from '../../Basics';-import { Command, CommandManager, ISetSheetOrderActionData } from '../../Command';++import {+ CommandManager,+ InsertSheetAction,+ Command,+ ISetSheetOrderActionData,+ RemoveSheetAction,+ SetSheetOrderAction,+} from '../../Command';import {IColumnStartEndData,@@ -20,13 +29,12 @@ import {IWorksheetConfig,} from '../../Interfaces';-import { NameGen, Nullable, Tools } from '../../Shared';-import { Tuples } from '../../Shared/Tuples';-import { Range } from './Range';+import { NameGen, Nullable, Tools, Tuples } from '../../Shared';import { RangeList } from './RangeList';import { Selection } from './Selection';import { Styles } from './Styles';import { Worksheet } from './Worksheet';+import { Range } from './Range';import { IInsertSheetActionData, IRemoveSheetActionData } from '../Action';import { NamedRange } from './NamedRange';@@ -296,7 +304,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -327,7 +335,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -359,7 +367,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -392,7 +400,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -420,7 +428,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -455,7 +463,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -468,7 +476,6 @@ export class Workbook {});return worksheetConfig.id;}-if (Tools.isNumber(argument[0])) {// insert clone worksheet instance to indexif (Tools.isAssignableFrom(argument[1], Worksheet)) {@@ -486,7 +493,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -512,7 +519,7 @@ export class Workbook {WorkBookUnit: _context.getWorkBook(),},{- actionName: ACTION_NAMES.INSERT_SHEET_ACTION,+ actionName: InsertSheetAction.NAME,sheetId: worksheetConfig.id,index,sheet: worksheetConfig as IWorksheetConfig,@@ -694,7 +701,7 @@ export class Workbook {const { _context, _commandManager } = this;const observer = _context.getContextObserver('onSheetOrderObservable');const config: ISetSheetOrderActionData = {- actionName: ACTION_NAMES.SET_SHEET_ORDER_ACTION,+ actionName: SetSheetOrderAction.NAME,sheetId,order,};@@ -749,7 +756,7 @@ export class Workbook {WorkBookUnit: this,},{- actionName: ACTION_NAMES.REMOVE_SHEET_ACTION,+ actionName: RemoveSheetAction.NAME,sheetId,} as IRemoveSheetActionData)@@ -902,7 +909,6 @@ export class Workbook {if (typeof range !== 'string' && 'startRow' in range) {return { sheetId: '', rangeData: range };}-return DEFAULT_RANGE_ARRAY;}diff --git a/packages/core/src/Sheets/Domain/Worksheet.ts b/packages/core/src/Sheets/Domain/Worksheet.tsindex a3b6c8d69d..a24b275279 100644--- a/packages/core/src/Sheets/Domain/Worksheet.ts+++ b/packages/core/src/Sheets/Domain/Worksheet.ts@@ -20,9 +20,34 @@ import {ISetWorkSheetActivateActionData,ISetWorkSheetHideActionData,ISetWorkSheetStatusActionData,+ SetWorkSheetActivateAction,+ SetWorkSheetNameAction,+ SetWorkSheetStatusAction,+ SetZoomRatioAction,+ InsertRowDataAction,+ InsertRowAction,+ InsertColumnDataAction,+ InsertColumnAction,+ ClearRangeAction,+ SetTabColorAction,+ SetBorderAction,} from '../../Command';-import { IInsertColumnActionData, IRemoveColumnAction } from '../Action';-import { ACTION_NAMES, DEFAULT_WORKSHEET } from '../../Const';+import {+ IInsertColumnActionData,+ IRemoveColumnAction,+ RemoveColumnAction,+ RemoveColumnDataAction,+ RemoveRowAction,+ RemoveRowDataAction,+ SetColumnHideAction,+ SetColumnShowAction,+ SetHiddenGridlinesAction,+ SetRightToLeftAction,+ SetRowHideAction,+ SetRowShowAction,+ SetWorkSheetHideAction,+} from '../Action';+import { DEFAULT_WORKSHEET } from '../../Const';import { Direction, BooleanNumber, SheetTypes } from '../../Enum';import {IBorderStyleData,@@ -35,9 +60,7 @@ import {IStyleData,IWorksheetConfig,} from '../../Interfaces';-import { Nullable, ObjectMatrix, Tools } from '../../Shared';-import { ObjectArray } from '../../Shared/ObjectArray';-import { Tuples } from '../../Shared/Tuples';+import { Nullable, ObjectMatrix, Tools, ObjectArray, Tuples } from '../../Shared';import { ColumnManager } from './ColumnManager';import { Merges } from './Merges';import { Range } from './Range';@@ -151,7 +174,7 @@ export class Worksheet {);const setActive: ISetWorkSheetActivateActionData = {sheetId: this._sheetId,- actionName: ACTION_NAMES.SET_WORKSHEET_ACTIVATE_ACTION,+ actionName: SetWorkSheetActivateAction.NAME,status: BooleanNumber.TRUE,};const command = new Command(@@ -224,7 +247,7 @@ export class Worksheet {'onAfterChangeSheetNameObservable');const configure = {- actionName: ACTION_NAMES.SET_WORKSHEET_NAME_ACTION,+ actionName: SetWorkSheetNameAction.NAME,sheetName: name,sheetId: _sheetId,};@@ -411,7 +434,7 @@ export class Worksheet {setStatus(status: BooleanNumber): Worksheet {const { _context, _commandManager, _sheetId } = this;const configure: ISetWorkSheetStatusActionData = {- actionName: ACTION_NAMES.SET_WORKSHEET_STATUS_ACTION,+ actionName: SetWorkSheetStatusAction.NAME,sheetId: _sheetId,sheetStatus: status,};@@ -440,9 +463,9 @@ export class Worksheet {setZoomRatio(zoomRatio: number): void {const { _context, _sheetId, _commandManager } = this;const zoomRation = {- actionName: ACTION_NAMES.SET_ZOOM_RATIO_ACTION,- sheetId: _sheetId,+ actionName: SetZoomRatioAction.NAME,zoom: zoomRatio,+ sheetId: _sheetId,};const command = new Command({@@ -529,13 +552,13 @@ export class Worksheet {const { _context, _commandManager, _sheetId } = this;const insertRowData: IInsertRowDataActionData = {- actionName: ACTION_NAMES.INSERT_ROW_DATA_ACTION,+ actionName: InsertRowDataAction.NAME,sheetId: _sheetId,rowIndex,rowData: new ObjectMatrix<ICellData>(new ObjectArray(numRows)).toJSON(),};const insertRow: IInsertRowActionData = {- actionName: ACTION_NAMES.INSERT_ROW_ACTION,+ actionName: InsertRowAction.NAME,sheetId: _sheetId,rowIndex,rowCount: numRows,@@ -578,13 +601,13 @@ export class Worksheet {const { _context, _commandManager, _sheetId } = this;const insertRowData = {- actionName: ACTION_NAMES.INSERT_ROW_DATA_ACTION,+ actionName: InsertRowDataAction.NAME,sheetId: _sheetId,rowIndex,rowData: new ObjectMatrix<ICellData>(new ObjectArray(numRows)).toJSON(),};const insertRow = {- actionName: ACTION_NAMES.INSERT_ROW_ACTION,+ actionName: InsertRowAction.NAME,sheetId: _sheetId,rowIndex,rowCount: numRows,@@ -632,13 +655,13 @@ export class Worksheet {const { _context, _commandManager, _sheetId } = this;const insertRowData = {- actionName: ACTION_NAMES.INSERT_ROW_DATA_ACTION,+ actionName: InsertRowDataAction.NAME,sheetId: _sheetId,rowIndex,rowData: new ObjectMatrix<ICellData>(new ObjectArray(numRows)).toJSON(),};const insertRow = {- actionName: ACTION_NAMES.INSERT_ROW_ACTION,+ actionName: InsertRowAction.NAME,sheetId: _sheetId,rowIndex,rowCount: numRows,@@ -687,13 +710,13 @@ export class Worksheet {}});const insertColumnData = {- actionName: ACTION_NAMES.INSERT_COLUMN_DATA_ACTION,+ actionName: InsertColumnDataAction.NAME,sheetId: _sheetId,columnIndex,columnData: columnData.toJSON(),};const insertColumn = {- actionName: ACTION_NAMES.INSERT_COLUMN_ACTION,+ actionName: InsertColumnAction.NAME,sheetId: _sheetId,columnIndex,columnCount: numColumns,@@ -747,13 +770,13 @@ export class Worksheet {}});const insertColumnData: IInsertColumnDataActionData = {- actionName: ACTION_NAMES.INSERT_COLUMN_DATA_ACTION,+ actionName: InsertColumnDataAction.NAME,sheetId: _sheetId,columnIndex,columnData: columnData.toJSON(),};const insertColumn: IInsertColumnActionData = {- actionName: ACTION_NAMES.INSERT_COLUMN_ACTION,+ actionName: InsertColumnAction.NAME,sheetId: _sheetId,columnIndex,columnCount: numColumns,@@ -803,13 +826,13 @@ export class Worksheet {}});const insertColumnData: IInsertColumnDataActionData = {- actionName: ACTION_NAMES.INSERT_COLUMN_DATA_ACTION,+ actionName: InsertColumnDataAction.NAME,sheetId: _sheetId,columnIndex,columnData: columnData.toJSON(),};const insertColumn: IInsertColumnActionData = {- actionName: ACTION_NAMES.INSERT_COLUMN_ACTION,+ actionName: InsertColumnAction.NAME,sheetId: _sheetId,columnIndex,columnCount: numColumns,@@ -860,7 +883,7 @@ export class Worksheet {const setValue: IClearRangeActionData = {sheetId: this._sheetId,- actionName: ACTION_NAMES.CLEAR_RANGE_ACTION,+ actionName: ClearRangeAction.NAME,options,rangeData: _range,};@@ -886,7 +909,7 @@ export class Worksheet {);const setTabColor: ISetTabColorActionData = {sheetId: this._sheetId,- actionName: ACTION_NAMES.SET_TAB_COLOR_ACTION,+ actionName: SetTabColorAction.NAME,color,};const command = new Command(@@ -910,9 +933,9 @@ export class Worksheet {if (!this._config.hidden) {const observer = _context.getContextObserver('onHideSheetObservable');const setHiddenAction: ISetWorkSheetHideActionData = {- sheetId: this._sheetId,- actionName: ACTION_NAMES.HIDE_SHEET_ACTION,hidden: BooleanNumber.TRUE,+ sheetId: this._sheetId,+ actionName: SetWorkSheetHideAction.NAME,};const command = new Command({@@ -946,9 +969,9 @@ export class Worksheet {}const { _context, _commandManager } = this;const setHidden: ISetWorkSheetHideActionData = {- sheetId: this._sheetId,- actionName: ACTION_NAMES.HIDE_SHEET_ACTION,hidden: BooleanNumber.FALSE,+ sheetId: this._sheetId,+ actionName: SetWorkSheetHideAction.NAME,};const command = new Command({@@ -1116,19 +1139,17 @@ export class Worksheet {deleteColumn(columnPosition: number): Worksheet {const { _context, _commandManager, _sheetId } = this;const deleteColumnData: IRemoveColumnDataAction = {- actionName: ACTION_NAMES.REMOVE_COLUMN_DATA_ACTION,+ actionName: RemoveColumnDataAction.NAME,sheetId: _sheetId,columnCount: 1,columnIndex: columnPosition,};-const deleteColumn: IRemoveColumnAction = {- actionName: ACTION_NAMES.REMOVE_COLUMN_ACTION,+ actionName: RemoveColumnAction.NAME,sheetId: _sheetId,columnCount: 1,columnIndex: columnPosition,};-const command = new Command({WorkBookUnit: _context.getWorkBook(),@@ -1150,19 +1171,17 @@ export class Worksheet {deleteColumns(columnPosition: number, howMany: number): Worksheet {const { _context, _commandManager, _sheetId } = this;const deleteColumnData: IRemoveColumnDataAction = {- actionName: ACTION_NAMES.REMOVE_COLUMN_DATA_ACTION,+ actionName: RemoveColumnDataAction.NAME,sheetId: _sheetId,columnCount: howMany,columnIndex: columnPosition,};-const deleteColumn: IRemoveColumnAction = {- actionName: ACTION_NAMES.REMOVE_COLUMN_ACTION,+ actionName: RemoveColumnAction.NAME,sheetId: _sheetId,columnCount: howMany,columnIndex: columnPosition,};-const command = new Command({WorkBookUnit: _context.getWorkBook(),@@ -1183,14 +1202,13 @@ export class Worksheet {deleteRow(rowPosition: number): Worksheet {const { _context, _commandManager, _sheetId } = this;const dataRowDelete: IRemoveRowDataActionData = {- actionName: ACTION_NAMES.REMOVE_ROW_DATA_ACTION,+ actionName: RemoveRowDataAction.NAME,sheetId: _sheetId,rowCount: 1,rowIndex: rowPosition,};-const rowDelete: IRemoveRowActionData = {- actionName: ACTION_NAMES.REMOVE_ROW_ACTION,+ actionName: RemoveRowAction.NAME,sheetId: _sheetId,rowCount: 1,rowIndex: rowPosition,@@ -1216,21 +1234,18 @@ export class Worksheet {*/deleteRows(rowPosition: number, howMany: number): Worksheet {const { _context, _commandManager, _sheetId } = this;-const dataRowDelete: IRemoveRowDataActionData = {- actionName: ACTION_NAMES.REMOVE_ROW_DATA_ACTION,+ actionName: RemoveRowDataAction.NAME,sheetId: _sheetId,rowCount: howMany,rowIndex: rowPosition,};-const rowDelete: IRemoveRowActionData = {- actionName: ACTION_NAMES.REMOVE_ROW_ACTION,+ actionName: RemoveRowAction.NAME,sheetId: _sheetId,rowCount: howMany,rowIndex: rowPosition,};-const command = new Command({WorkBookUnit: _context.getWorkBook(),@@ -1378,7 +1393,7 @@ export class Worksheet {if (directions.includes(Direction.TOP)) {const setBottomData: BorderStyleData = {sheetId: _sheetId,- actionName: ACTION_NAMES.SET_BORDER_ACTION,+ actionName: SetBorderAction.NAME,styles: mbr.toJSON(),};actions.push(setBottomData);@@ -1386,7 +1401,7 @@ export class Worksheet {if (directions.includes(Direction.BOTTOM)) {const setTopData: BorderStyleData = {sheetId: _sheetId,- actionName: ACTION_NAMES.SET_BORDER_ACTION,+ actionName: SetBorderAction.NAME,styles: mtr.toJSON(),};actions.push(setTopData);@@ -1394,7 +1409,7 @@ export class Worksheet {if (directions.includes(Direction.LEFT)) {const setRightData: BorderStyleData = {sheetId: _sheetId,- actionName: ACTION_NAMES.SET_BORDER_ACTION,+ actionName: SetBorderAction.NAME,styles: mrr.toJSON(),};actions.push(setRightData);@@ -1402,14 +1417,14 @@ export class Worksheet {if (directions.includes(Direction.RIGHT)) {const setLeftData: BorderStyleData = {sheetId: _sheetId,- actionName: ACTION_NAMES.SET_BORDER_ACTION,+ actionName: SetBorderAction.NAME,styles: mlr.toJSON(),};actions.push(setLeftData);}const setCCData: BorderStyleData = {sheetId: _sheetId,- actionName: ACTION_NAMES.SET_BORDER_ACTION,+ actionName: SetBorderAction.NAME,styles: mcr.toJSON(),};actions.push(setCCData);@@ -1617,7 +1632,7 @@ export class Worksheet {const count = range.endRow - range.startRow + 1;const { _context, _commandManager, _sheetId } = this;const hideRow: ISetRowHideActionData = {- actionName: ACTION_NAMES.SET_HIDE_ROW_ACTION,+ actionName: SetRowHideAction.NAME,sheetId: _sheetId,rowCount: count,rowIndex: index,@@ -1653,7 +1668,7 @@ export class Worksheet {}const { _context, _commandManager, _sheetId } = this;const hideRow: ISetRowHideActionData = {- actionName: ACTION_NAMES.SET_HIDE_ROW_ACTION,+ actionName: SetRowHideAction.NAME,sheetId: _sheetId,rowCount: count,rowIndex: index,@@ -1679,7 +1694,7 @@ export class Worksheet {const count = range.endColumn - range.startColumn + 1;const { _context, _commandManager, _sheetId } = this;const hideColumn: ISetColumnHideActionData = {- actionName: ACTION_NAMES.SET_HIDE_COLUMN_ACTION,+ actionName: SetColumnHideAction.NAME,sheetId: _sheetId,columnCount: count,columnIndex: index,@@ -1715,7 +1730,7 @@ export class Worksheet {}const { _context, _commandManager, _sheetId } = this;const hideColumn: ISetColumnHideActionData = {- actionName: ACTION_NAMES.SET_HIDE_COLUMN_ACTION,+ actionName: SetColumnHideAction.NAME,sheetId: _sheetId,columnCount: count,columnIndex: index,@@ -1741,10 +1756,10 @@ export class Worksheet {const count = range.endRow - range.startRow + 1;const { _context, _commandManager, _sheetId } = this;const unhideRow: ISetRowShowActionData = {- actionName: ACTION_NAMES.SET_SHOW_ROW_ACTION,- sheetId: _sheetId,+ actionName: SetRowShowAction.NAME,rowCount: count,rowIndex: index,+ sheetId: _sheetId,};const command = new Command({@@ -1767,7 +1782,7 @@ export class Worksheet {const count = range.endColumn - range.startColumn + 1;const { _context, _commandManager, _sheetId } = this;const unhideColumn: ISetColumnShowActionData = {- actionName: ACTION_NAMES.SET_SHOW_COLUMN_ACTION,+ actionName: SetColumnShowAction.NAME,sheetId: _sheetId,columnCount: count,columnIndex: index,@@ -1803,7 +1818,7 @@ export class Worksheet {}const { _context, _commandManager, _sheetId } = this;const showColumn: ISetColumnShowActionData = {- actionName: ACTION_NAMES.SET_SHOW_COLUMN_ACTION,+ actionName: SetColumnShowAction.NAME,sheetId: _sheetId,columnCount: count,columnIndex: index,@@ -1839,7 +1854,7 @@ export class Worksheet {}const { _context, _commandManager, _sheetId } = this;const showRow: ISetRowShowActionData = {- actionName: ACTION_NAMES.SET_SHOW_ROW_ACTION,+ actionName: SetRowShowAction.NAME,sheetId: _sheetId,rowCount: count,rowIndex: index,@@ -1967,7 +1982,7 @@ export class Worksheet {setHiddenGridlines(hideGridlines: boolean): Worksheet {const { _context, _commandManager, _sheetId } = this;const configure = {- actionName: ACTION_NAMES.SET_HIDDEN_GRIDLINES_ACTION,+ actionName: SetHiddenGridlinesAction.NAME,hideGridlines,sheetId: _sheetId,};@@ -2019,7 +2034,7 @@ export class Worksheet {setRightToLeft(rightToLeft: BooleanNumber): Worksheet {const { _context, _commandManager, _sheetId } = this;const configure = {- actionName: ACTION_NAMES.SET_RIGHT_TO_LEFT_ACTION,+ actionName: SetRightToLeftAction.NAME,rightToLeft,sheetId: _sheetId,};