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
test(core): rename sheetId to id
Dushusir4f6db2eca9ee
diff --git a/packages/core/src/Command/index.ts b/packages/core/src/Command/index.tsindex aab405b47d..1fbc60ca24 100644--- a/packages/core/src/Command/index.ts+++ b/packages/core/src/Command/index.ts@@ -1,8 +1,4 @@// @index(['./*.ts','./Action/index.ts'], f => `export * from '${f.path}'`)-/**- * @internal- */-export * from '../Sheets/Action/index';export * from './ActionBase';export * from './ActionObservers';export * from './Command';@@ -11,6 +7,7 @@ export * from './CommandManager';export * from './UndoManager';export * from './ActionExtensionManager';export * from './ActionExtensionFactory';+export * from '../Sheets/Action/index';/* eslint-disable import/first */import './RegisterAction';diff --git a/packages/core/src/Sheets/Domain/NamedRange.ts b/packages/core/src/Sheets/Domain/NamedRange.tsindex 9d3165346f..f5c4c8c73b 100644--- a/packages/core/src/Sheets/Domain/NamedRange.ts+++ b/packages/core/src/Sheets/Domain/NamedRange.ts@@ -1,12 +1,14 @@import { Context } from '../../Basics';-import { Command, CommandManager } from '../../Command';-import { ACTION_NAMES } from '../../Const';-import { Workbook, Worksheet } from './index';import {+ Command,+ CommandManager,IAddNamedRangeActionData,IDeleteNamedRangeActionData,ISetNamedRangeActionData,-} from '../../Module/NamedRange/Action';+} from '../../Command';+import { ACTION_NAMES } from '../../Const';+import { Workbook, Worksheet } from './index';+import { INamedRange } from '../../Interfaces/INamedRange';/**diff --git a/packages/core/test/Basics/UniverSheet.test.ts b/packages/core/test/Basics/UniverSheet.test.tsindex 33c78b8e9d..3689128f87 100644--- a/packages/core/test/Basics/UniverSheet.test.ts+++ b/packages/core/test/Basics/UniverSheet.test.ts@@ -10,11 +10,12 @@ describe('UniverSheet', () => {beforeAll(async () => {univerSheet = UniverSheet.newInstance({id: 'workbook-01',- sheets: [- {+ sheets: {+ 'sheet-01': {name: 'first sheet',+ id: 'sheet-01',},- ],+ },});});afterAll(async () => {});diff --git a/packages/core/test/Domain/Range.test.ts b/packages/core/test/Domain/Range.test.tsindex 44d5ac28b1..3792a22da6 100644--- a/packages/core/test/Domain/Range.test.ts+++ b/packages/core/test/Domain/Range.test.ts@@ -95,7 +95,7 @@ export function demo() {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -156,7 +156,7 @@ test('Test setFontColor', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -209,7 +209,7 @@ test('Test setFontFamily', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -271,7 +271,7 @@ test('Test setFontFamilies', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -330,7 +330,7 @@ test('Test setUnderline', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -383,7 +383,7 @@ test('Test setOverline', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -436,7 +436,7 @@ test('Test setStrikeThrough', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -493,7 +493,7 @@ test('Test setFontSize', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -556,7 +556,7 @@ test('Test setHorizontalAlignment', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -617,7 +617,7 @@ test('Test setVerticalAlignment', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -678,7 +678,7 @@ test('Test setTextDirection', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -738,7 +738,7 @@ test('Test setWrapStrategy', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -821,7 +821,7 @@ test('Test setWrapStrategies', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -906,7 +906,7 @@ test('Test setBorder', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1064,7 +1064,7 @@ test('Test copyTo formatOnly', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1124,7 +1124,7 @@ test('Test copyTo contentsOnly', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1203,7 +1203,7 @@ test('Test copyTo CopyPasteType', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1269,7 +1269,7 @@ test('Test copyFormatToRange by sheet', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1340,7 +1340,7 @@ test('Test copyFormatToRange by sheetId', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1412,7 +1412,7 @@ test('Test copyValuesToRange by sheet', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1502,7 +1502,7 @@ test('Test copyValuesToRange by sheetId', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1591,7 +1591,7 @@ test('Test moveTo', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1732,7 +1732,7 @@ test('Test offset', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1782,7 +1782,7 @@ test('Test setValue', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1836,7 +1836,7 @@ test('Test setValues ICellV', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1890,7 +1890,7 @@ test('Test setValues ObjectMatrix', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1949,7 +1949,7 @@ test('Test clear', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2005,7 +2005,7 @@ test('Test clearFormat', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2061,7 +2061,7 @@ test('Test deleteCells', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2206,7 +2206,7 @@ test('Test insertCells', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2364,7 +2364,7 @@ test('Test insertCells COLUMNS', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2462,7 +2462,7 @@ test('Create a Merge', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2556,7 +2556,7 @@ test('Test getBackground', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2657,7 +2657,7 @@ test('Test getBackgrounds', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2714,7 +2714,7 @@ test('Test getCell', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2771,7 +2771,7 @@ test('Test getColumn', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2828,7 +2828,7 @@ test('Test getDisplayValue', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2885,7 +2885,7 @@ test('Test getDisplayValues', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2942,7 +2942,7 @@ test('Test getFontColor', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2999,7 +2999,7 @@ test('Test getFontColors', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3058,7 +3058,7 @@ test('Test getFontFamily', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3117,7 +3117,7 @@ test('Test getFontFamilies', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3166,7 +3166,7 @@ test('Test getFontLines', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3225,7 +3225,7 @@ test('Test getFontLine', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3288,7 +3288,7 @@ test('Test getFontSize', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3347,7 +3347,7 @@ test('Test getFontSizes', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3392,7 +3392,7 @@ test('Test getFontWeight', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3459,7 +3459,7 @@ test('Test getFontWeights', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3504,7 +3504,7 @@ test('Test getHorizontalAlignment', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3549,7 +3549,7 @@ test('Test getHorizontalAlignments', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3594,7 +3594,7 @@ test('Test getVerticalAlignments', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3639,7 +3639,7 @@ test('Test getVerticalAlignment', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3684,7 +3684,7 @@ test('Test getFontStyles', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3729,7 +3729,7 @@ test('Test getFontStyle', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3774,7 +3774,7 @@ test('Test getTextDirections', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3819,7 +3819,7 @@ test('Test getTextDirection', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3868,7 +3868,7 @@ test('Test getTextRotations', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3926,7 +3926,7 @@ test('Test getTextRotation', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3973,7 +3973,7 @@ test('Test getTextStyles', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4031,7 +4031,7 @@ test('Test getTextStyle', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4093,7 +4093,7 @@ test('Test getSheet', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4137,7 +4137,7 @@ test('Test getNumColumns', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4196,7 +4196,7 @@ test('Test getNumRows', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4250,7 +4250,7 @@ test('Test getRowIndex', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4288,7 +4288,7 @@ test('Test getLastColumn', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4325,7 +4325,7 @@ test('Test getWrapStrategies', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4368,7 +4368,7 @@ test('Test getWraps/getWrap', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4418,7 +4418,7 @@ test('Test setFontColors', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4488,7 +4488,7 @@ test('Test setBackground', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4565,7 +4565,7 @@ test('Test setBackgrounds', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4647,7 +4647,7 @@ test('Test setBackgroundRGB', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4725,7 +4725,7 @@ test('Test setUnderline', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4778,7 +4778,7 @@ test('Test setOverline', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4831,7 +4831,7 @@ test('Test setStrikeThrough', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4884,7 +4884,7 @@ test('Test setHorizontalAlignments', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4961,7 +4961,7 @@ test('Test isPartOfMerge', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',mergeData: [{startRow: 0,@@ -5560,7 +5560,7 @@ test('Test removeDuplicates', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5644,7 +5644,7 @@ test('Test getColumnMatrix', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5708,7 +5708,7 @@ test('Test isBlank', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -6069,7 +6069,7 @@ test('Test trimWhitespace', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {diff --git a/packages/core/test/Domain/RangeList.test.ts b/packages/core/test/Domain/RangeList.test.tsindex 588960f207..917ed69f48 100644--- a/packages/core/test/Domain/RangeList.test.ts+++ b/packages/core/test/Domain/RangeList.test.ts@@ -29,7 +29,7 @@ test('Test RangeList setValue', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -83,7 +83,7 @@ test('Test RangeList clear', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -140,7 +140,7 @@ function demo() {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {diff --git a/packages/core/test/Domain/Selection.test.ts b/packages/core/test/Domain/Selection.test.tsindex cf85d27a72..d0576aad2e 100644--- a/packages/core/test/Domain/Selection.test.ts+++ b/packages/core/test/Domain/Selection.test.ts@@ -80,7 +80,7 @@ function demo() {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -432,7 +432,7 @@ test('Test cellInRange', () => {test('Test getNextDataRange:top1', () => {const { workbook, worksheet } = demo();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -666,7 +666,7 @@ test('Test getNextDataRange:top2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -901,7 +901,7 @@ test('Test getNextDataRange:top2.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1134,7 +1134,7 @@ test('Test getNextDataRange:top2.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1369,7 +1369,7 @@ test('Test getNextDataRange:top2.3', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1508,7 +1508,7 @@ test('Test getNextDataRange:top2.4', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1743,7 +1743,7 @@ test('Test getNextDataRange:top2.5', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1987,7 +1987,7 @@ test('Test getNextDataRange:top3', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2231,7 +2231,7 @@ test('Test getNextDataRange:top4', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2475,7 +2475,7 @@ test('Test getNextDataRange:bottom1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2649,7 +2649,7 @@ test('Test getNextDataRange:bottom1.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2821,7 +2821,7 @@ test('Test getNextDataRange:bottom2.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3027,7 +3027,7 @@ test('Test getNextDataRange:bottom2.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3231,7 +3231,7 @@ test('Test getNextDataRange:bottom3.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3441,7 +3441,7 @@ test('Test getNextDataRange:bottom3.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3650,7 +3650,7 @@ test('Test getNextDataRange:bottom4.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3860,7 +3860,7 @@ test('Test getNextDataRange:bottom4.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4071,7 +4071,7 @@ test('Test getNextDataRange:left1.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4155,7 +4155,7 @@ test('Test getNextDataRange:left1.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4235,7 +4235,7 @@ test('Test getNextDataRange:left2.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4317,7 +4317,7 @@ test('Test getNextDataRange:left2.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4401,7 +4401,7 @@ test('Test getNextDataRange:left3.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4479,7 +4479,7 @@ test('Test getNextDataRange:left3.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4555,7 +4555,7 @@ test('Test getNextDataRange:left4.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4633,7 +4633,7 @@ test('Test getNextDataRange:left4.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4709,7 +4709,7 @@ test('Test getNextDataRange:right1.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4786,7 +4786,7 @@ test('Test getNextDataRange:right1.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4861,7 +4861,7 @@ test('Test getNextDataRange:right2.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -4938,7 +4938,7 @@ test('Test getNextDataRange:right2.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5017,7 +5017,7 @@ test('Test getNextDataRange:right3.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5101,7 +5101,7 @@ test('Test getNextDataRange:right3.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5184,7 +5184,7 @@ test('Test getNextDataRange:right4.1', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -5268,7 +5268,7 @@ test('Test getNextDataRange:right4.2', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {diff --git a/packages/core/test/Domain/WorkBook.test.ts b/packages/core/test/Domain/WorkBook.test.tsindex 0c9028a5ef..721876e3fe 100644--- a/packages/core/test/Domain/WorkBook.test.ts+++ b/packages/core/test/Domain/WorkBook.test.ts@@ -83,7 +83,7 @@ test('Test activateSheet', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet-01',+ id: 'sheet-01',cellData: {0: {0: {@@ -100,7 +100,7 @@ test('Test activateSheet', () => {worksheet.setCommandManager(commandManager);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -152,7 +152,7 @@ test('Test setActiveRange', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -210,7 +210,7 @@ test('Test getIndexBySheetId', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -250,7 +250,7 @@ test('Test insertSheet', () => {workbook.setContext(context);const oneConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -289,8 +289,8 @@ test('Test insertSheet', () => {workbook.insertSheet(1, { name: 'sheet5' });expect(workbook.getSheets().length).toEqual(7);- const towConfigure = {- sheetId: 'sheet6',+ const twoConfigure = {+ id: 'sheet6',cellData: {0: {0: {@@ -302,7 +302,7 @@ test('Test insertSheet', () => {},status: 0,};- const towWorksheet = new Worksheet(context, towConfigure);+ const towWorksheet = new Worksheet(context, twoConfigure);oneWorksheet.setCommandManager(commandManager);workbook.insertSheet(1, towWorksheet);@@ -337,7 +337,7 @@ test('Test getActiveRangeList', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -406,7 +406,7 @@ test('Test getCurrentCell', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -461,7 +461,7 @@ test('Test setSheetOrder', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -507,7 +507,7 @@ test('Test removeSheetBySheetId', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -554,7 +554,7 @@ test('Test getSheetBySheetName', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',name: 'sheet-luck',cellData: {0: {@@ -601,7 +601,7 @@ test('Test getSheetBySheetName', () => {// workbook.setContext(context);// const secondConfigure = {-// sheetId: 'sheet-02',+// id: 'sheet-02',// name: 'sheet-luck',// cellData: {// 0: {@@ -664,7 +664,7 @@ test('Test getSheetBySheetId', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',name: 'sheet-luck',cellData: {0: {@@ -711,7 +711,7 @@ test('Test setActiveSheet', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',name: 'sheet-luck',cellData: {0: {@@ -757,7 +757,7 @@ test('Test setActiveSheet', () => {// workbook.setContext(context);// const secondConfigure = {-// sheetId: 'sheet-02',+// id: 'sheet-02',// name: 'sheet-luck',// cellData: {// 0: {@@ -804,7 +804,7 @@ test('Test setActiveSheet', () => {// workbook.setContext(context);// const secondConfigure = {-// sheetId: 'sheet-02',+// id: 'sheet-02',// name: 'sheet-luck',// cellData: {// 0: {@@ -851,7 +851,7 @@ test('Test getCommandManager', () => {workbook.setContext(context);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',name: 'sheet-luck',cellData: {0: {@@ -878,7 +878,7 @@ test('Test getCommandManager', () => {// test('Test newFilterCriteria', () => {// const container = IOCContainerStartUpReady({-// sheets: [{ sheetId: 'sheet1' }, { sheetId: 'sheet2' }],+// sheets: [{ id: 'sheet1' }, { id: 'sheet2' }],// });// const workbook = container.getSingleton<WorkBook>('WorkBook');// workbook.setPluginMeta('test', {});@@ -896,7 +896,7 @@ test('Test getPluginMeta/setPluginMeta', () => {// test('Test newConditionalFormatRule', () => {// const container = IOCContainerStartUpReady({-// sheets: [{ sheetId: 'sheet1' }, { sheetId: 'sheet2' }],+// sheets: [{ id: 'sheet1' }, { id: 'sheet2' }],// });// const workbook = container.getSingleton<WorkBook>('WorkBook');// workbook.setPluginMeta('test', {});@@ -920,7 +920,7 @@ test('Test setActiveSheet', () => {const context = container.getSingleton<Context>('Context');const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',name: 'sheet-luck',cellData: {0: {diff --git a/packages/core/test/Domain/WorkSheet.test.ts b/packages/core/test/Domain/WorkSheet.test.tsindex f8a83b6e3b..1a4ba02617 100644--- a/packages/core/test/Domain/WorkSheet.test.ts+++ b/packages/core/test/Domain/WorkSheet.test.ts@@ -29,7 +29,7 @@ test('Test activate', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet-01',+ id: 'sheet-01',cellData: {0: {0: {@@ -47,7 +47,7 @@ test('Test activate', () => {worksheet.setCommandManager(commandManager);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -94,7 +94,7 @@ test('Test getCellMatrix', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -222,7 +222,7 @@ test('Test Clear', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -463,7 +463,7 @@ test('Test SetCurrentCell/getActiveCell/getActiveRangeList', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -570,7 +570,7 @@ test('Test SetCurrentCell/getActiveCell/getActiveRangeList', () => {// const commandManager = workbook.getCommandManager();// const configure = {-// sheetId: 'sheet',+// id: 'sheet',// cellData: {// 0: {// 0: {@@ -638,7 +638,7 @@ test('Test getRange', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -748,7 +748,7 @@ test('Test getRangeList', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -872,7 +872,7 @@ test('Test hideRow/hideRows', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -949,7 +949,7 @@ test('Test showColumns/hideColumns', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1044,7 +1044,7 @@ test('Test showRows/hideRows', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1114,7 +1114,7 @@ test('Test unhideRow/unhideColumn', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1208,7 +1208,7 @@ test('Test getTabColor', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1280,7 +1280,7 @@ test('Test setColumnWidth/getColumnWidth', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1380,7 +1380,7 @@ test('Test setRowHeights/getRowHeight', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1481,7 +1481,7 @@ test('Test setActiveSelection', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1576,7 +1576,7 @@ test('Test getFrozenRows/getFrozenColumns/getMaxColumns/getMaxRows/getType/getRoconst commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1673,7 +1673,7 @@ test('Test getFrozenRows/getFrozenColumns/getMaxColumns/getMaxRows/getType/getRo// const commandManager = workbook.getCommandManager();// const configure = {-// sheetId: 'sheet',+// id: 'sheet',// cellData: {// 0: {// 0: {@@ -1831,7 +1831,7 @@ test('Test getLastRow/getLastColumn', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -1927,7 +1927,7 @@ test('Test copyTo', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet-01',+ id: 'sheet-01',cellData: {0: {0: {@@ -1944,7 +1944,7 @@ test('Test copyTo', () => {worksheet.setCommandManager(commandManager);const secondConfigure = {- sheetId: 'sheet-02',+ id: 'sheet-02',cellData: {0: {0: {@@ -1971,7 +1971,7 @@ test('Test getSheetValues', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2062,7 +2062,7 @@ test('Test getSheetValues', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2153,7 +2153,7 @@ test('Test InsertRows', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2246,7 +2246,7 @@ test('Test insertrowsafter/insertrowsbefore', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2337,7 +2337,7 @@ test('Test insertrowsbefore', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2429,7 +2429,7 @@ test('Test moveRows', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2520,7 +2520,7 @@ test('Test insertColumns', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2614,7 +2614,7 @@ test('Test insertColumnsBefore', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2707,7 +2707,7 @@ test('Test insertColumnsAfter', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2800,7 +2800,7 @@ test('Test moveColumns', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2891,7 +2891,7 @@ test('Test deleteColumns/deleteColumn', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -2986,7 +2986,7 @@ test('Test getContext', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3076,7 +3076,7 @@ test('Test getMerges', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3166,7 +3166,7 @@ test('Test getSheetData', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3256,7 +3256,7 @@ test('Test getSelection', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3350,7 +3350,7 @@ test('Test setActiveRange', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {@@ -3458,7 +3458,7 @@ test('Test setActiveRangeList', () => {const commandManager = workbook.getCommandManager();const configure = {- sheetId: 'sheet',+ id: 'sheet',cellData: {0: {0: {diff --git a/packages/core/test/Module/NamedRange/Action/AddNamedRangeAction.test.ts b/packages/core/test/Module/NamedRange/Action/AddNamedRangeAction.test.tsindex 4e590d965a..eab39be900 100644--- a/packages/core/test/Module/NamedRange/Action/AddNamedRangeAction.test.ts+++ b/packages/core/test/Module/NamedRange/Action/AddNamedRangeAction.test.ts@@ -3,9 +3,8 @@*/import { ACTION_NAMES } from '../../../../src';import { Context } from '../../../../src/Basics';-import { ActionObservers } from '../../../../src/Command';+import { ActionObservers, AddNamedRangeAction } from '../../../../src/Command';import { Workbook, Worksheet } from '../../../../src/Sheets/Domain';-import { AddNamedRangeAction } from '../../../../src/Module/NamedRange/Action';import { INamedRange } from '../../../../src/Interfaces/INamedRange';import { IOCContainerStartUpReady } from '../../../ContainerStartUp';diff --git a/packages/core/test/Module/NamedRange/Action/DeleteNamedRangeAction.test.ts b/packages/core/test/Module/NamedRange/Action/DeleteNamedRangeAction.test.tsindex c9902938b7..1ec39a225d 100644--- a/packages/core/test/Module/NamedRange/Action/DeleteNamedRangeAction.test.ts+++ b/packages/core/test/Module/NamedRange/Action/DeleteNamedRangeAction.test.ts@@ -1,14 +1,14 @@/*** @jest-environment jsdom*/-import { ACTION_NAMES } from '../../../../src';-import { Context } from '../../../../src/Basics';-import { ActionObservers } from '../../../../src/Command';-import { Workbook, Worksheet } from '../../../../src/Sheets/Domain';import {+ ActionObservers,+ ACTION_NAMES,AddNamedRangeAction,DeleteNamedRangeAction,-} from '../../../../src/Module/NamedRange/Action';+} from '../../../../src';+import { Context } from '../../../../src/Basics';+import { Workbook, Worksheet } from '../../../../src/Sheets/Domain';import { INamedRange } from '../../../../src/Interfaces/INamedRange';import { IOCContainerStartUpReady } from '../../../ContainerStartUp';diff --git a/packages/core/test/Module/NamedRange/Action/SetNamedRangeAction.test.ts b/packages/core/test/Module/NamedRange/Action/SetNamedRangeAction.test.tsindex 3e21198e4c..0568d9bb72 100644--- a/packages/core/test/Module/NamedRange/Action/SetNamedRangeAction.test.ts+++ b/packages/core/test/Module/NamedRange/Action/SetNamedRangeAction.test.ts@@ -1,14 +1,15 @@/*** @jest-environment jsdom*/-import { ACTION_NAMES } from '../../../../src';-import { Context } from '../../../../src/Basics';-import { ActionObservers } from '../../../../src/Command';-import { Workbook, Worksheet } from '../../../../src/Sheets/Domain';import {+ ActionObservers,+ ACTION_NAMES,AddNamedRangeAction,SetNamedRangeAction,-} from '../../../../src/Module/NamedRange/Action';+} from '../../../../src';+import { Context } from '../../../../src/Basics';++import { Workbook, Worksheet } from '../../../../src/Sheets/Domain';import { INamedRange } from '../../../../src/Interfaces/INamedRange';import { IOCContainerStartUpReady } from '../../../ContainerStartUp';