@univerjs/sheets 1.0.0-alpha.1 → 1.0.0-insiders.20260701-0ef51b0
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.
- package/lib/cjs/index.js +167 -8
- package/lib/es/index.js +166 -10
- package/lib/index.js +166 -10
- package/lib/types/embed-guest.d.ts +19 -0
- package/lib/types/facade/f-types.d.ts +22 -0
- package/lib/types/facade/index.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/permission/range-permission/range-protection.service.d.ts +1 -0
- package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +1 -0
- package/lib/umd/index.js +2 -2
- package/package.json +8 -7
- package/LICENSE +0 -176
package/lib/cjs/index.js
CHANGED
|
@@ -5,6 +5,7 @@ let _univerjs_engine_formula = require("@univerjs/engine-formula");
|
|
|
5
5
|
let _univerjs_engine_render = require("@univerjs/engine-render");
|
|
6
6
|
let _univerjs_protocol = require("@univerjs/protocol");
|
|
7
7
|
let rxjs_operators = require("rxjs/operators");
|
|
8
|
+
let _univerjs_embed = require("@univerjs/embed");
|
|
8
9
|
let _univerjs_rpc = require("@univerjs/rpc");
|
|
9
10
|
|
|
10
11
|
//#region src/basics/cell-type.ts
|
|
@@ -16194,7 +16195,7 @@ let WorksheetPermissionService = class WorksheetPermissionService extends _unive
|
|
|
16194
16195
|
getAllWorksheetPermissionPoint().forEach((F) => {
|
|
16195
16196
|
const instance = new F(unitId, subUnitId);
|
|
16196
16197
|
instance.value = false;
|
|
16197
|
-
this.
|
|
16198
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
16198
16199
|
});
|
|
16199
16200
|
});
|
|
16200
16201
|
this._worksheetProtectionRuleModel.changeRuleInitState(true);
|
|
@@ -16241,7 +16242,7 @@ let WorksheetPermissionService = class WorksheetPermissionService extends _unive
|
|
|
16241
16242
|
Object.keys(resources).forEach((subUnitId) => {
|
|
16242
16243
|
getAllWorksheetPermissionPointByPointPanel().forEach((F) => {
|
|
16243
16244
|
const instance = new F(unitId, subUnitId);
|
|
16244
|
-
this.
|
|
16245
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
16245
16246
|
});
|
|
16246
16247
|
});
|
|
16247
16248
|
},
|
|
@@ -16250,6 +16251,13 @@ let WorksheetPermissionService = class WorksheetPermissionService extends _unive
|
|
|
16250
16251
|
}
|
|
16251
16252
|
}));
|
|
16252
16253
|
}
|
|
16254
|
+
_addOrUpdatePermissionPoint(instance) {
|
|
16255
|
+
if (this._permissionService.getPermissionPoint(instance.id)) {
|
|
16256
|
+
this._permissionService.updatePermissionPoint(instance.id, instance.value);
|
|
16257
|
+
return;
|
|
16258
|
+
}
|
|
16259
|
+
this._permissionService.addPermissionPoint(instance);
|
|
16260
|
+
}
|
|
16253
16261
|
};
|
|
16254
16262
|
WorksheetPermissionService = __decorate([
|
|
16255
16263
|
__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.IPermissionService)),
|
|
@@ -18991,6 +18999,150 @@ ZebraCrossingCacheController = __decorate([
|
|
|
18991
18999
|
__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.IUniverInstanceService))
|
|
18992
19000
|
], ZebraCrossingCacheController);
|
|
18993
19001
|
|
|
19002
|
+
//#endregion
|
|
19003
|
+
//#region package.json
|
|
19004
|
+
var name = "@univerjs/sheets";
|
|
19005
|
+
var version = "1.0.0-insiders.20260701-0ef51b0";
|
|
19006
|
+
|
|
19007
|
+
//#endregion
|
|
19008
|
+
//#region src/embed-guest.ts
|
|
19009
|
+
const SHEETS_HOST_EMBED_CAPABILITIES = [
|
|
19010
|
+
{
|
|
19011
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19012
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19013
|
+
entry: "sheets-floating-object",
|
|
19014
|
+
mode: "float",
|
|
19015
|
+
renderHost: "sheets-drawing-dom",
|
|
19016
|
+
layout: "scroll-contained",
|
|
19017
|
+
menuBehavior: "floating",
|
|
19018
|
+
nestedEmbed: false
|
|
19019
|
+
},
|
|
19020
|
+
{
|
|
19021
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19022
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_DOC,
|
|
19023
|
+
entry: "sheets-floating-object",
|
|
19024
|
+
mode: "float",
|
|
19025
|
+
renderHost: "sheets-drawing-dom",
|
|
19026
|
+
layout: "doc-width-scale",
|
|
19027
|
+
menuBehavior: "floating",
|
|
19028
|
+
nestedEmbed: false
|
|
19029
|
+
},
|
|
19030
|
+
{
|
|
19031
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19032
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_SLIDE,
|
|
19033
|
+
entry: "sheets-floating-object",
|
|
19034
|
+
mode: "float",
|
|
19035
|
+
renderHost: "sheets-drawing-dom",
|
|
19036
|
+
layout: "aspect-fit",
|
|
19037
|
+
menuBehavior: "floating",
|
|
19038
|
+
nestedEmbed: false
|
|
19039
|
+
},
|
|
19040
|
+
{
|
|
19041
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19042
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_BASE,
|
|
19043
|
+
entry: "sheets-floating-object",
|
|
19044
|
+
mode: "float",
|
|
19045
|
+
renderHost: "sheets-drawing-dom",
|
|
19046
|
+
layout: "scroll-contained",
|
|
19047
|
+
menuBehavior: "floating",
|
|
19048
|
+
nestedEmbed: false
|
|
19049
|
+
},
|
|
19050
|
+
{
|
|
19051
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19052
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_BASE,
|
|
19053
|
+
entry: "sheets-sheet-tab",
|
|
19054
|
+
mode: "tab",
|
|
19055
|
+
layout: "tab-peer",
|
|
19056
|
+
menuBehavior: "host-override",
|
|
19057
|
+
nestedEmbed: false
|
|
19058
|
+
},
|
|
19059
|
+
{
|
|
19060
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19061
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_DOC,
|
|
19062
|
+
entry: "sheets-sheet-tab",
|
|
19063
|
+
mode: "tab",
|
|
19064
|
+
layout: "tab-peer",
|
|
19065
|
+
menuBehavior: "host-override",
|
|
19066
|
+
nestedEmbed: false
|
|
19067
|
+
},
|
|
19068
|
+
{
|
|
19069
|
+
hostType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19070
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_SLIDE,
|
|
19071
|
+
entry: "sheets-sheet-tab",
|
|
19072
|
+
mode: "tab",
|
|
19073
|
+
layout: "tab-peer",
|
|
19074
|
+
menuBehavior: "host-override",
|
|
19075
|
+
nestedEmbed: false
|
|
19076
|
+
}
|
|
19077
|
+
];
|
|
19078
|
+
function registerSheetsEmbedHostCapabilities(injector) {
|
|
19079
|
+
(0, _univerjs_embed.registerEmbedCapabilities)(injector, SHEETS_HOST_EMBED_CAPABILITIES);
|
|
19080
|
+
}
|
|
19081
|
+
function registerSheetsEmbedGuestContribution(injector) {
|
|
19082
|
+
if (!injector.has(_univerjs_core.IUniverInstanceService)) return;
|
|
19083
|
+
const univerInstanceService = injector.get(_univerjs_core.IUniverInstanceService);
|
|
19084
|
+
(0, _univerjs_embed.registerEmbedGuestContribution)(injector, {
|
|
19085
|
+
childType: _univerjs_core.UniverInstanceType.UNIVER_SHEET,
|
|
19086
|
+
createEmptyUnit: (config, options) => createSheetsEmbedEmptyUnit(univerInstanceService, config, options)
|
|
19087
|
+
});
|
|
19088
|
+
}
|
|
19089
|
+
function createSheetsEmbedEmptySnapshot(config = {}) {
|
|
19090
|
+
const unitId = typeof config.id === "string" ? config.id : `embed_sheet_${(0, _univerjs_core.generateRandomId)(8)}`;
|
|
19091
|
+
const sheetId = typeof config.sheetId === "string" ? config.sheetId : `${unitId}_sheet_1`;
|
|
19092
|
+
const sheetName = typeof config.sheetName === "string" ? config.sheetName : "Sheet1";
|
|
19093
|
+
return {
|
|
19094
|
+
id: unitId,
|
|
19095
|
+
name: typeof config.name === "string" ? config.name : "Embedded Sheet",
|
|
19096
|
+
appVersion: version,
|
|
19097
|
+
locale: _univerjs_core.LocaleType.EN_US,
|
|
19098
|
+
styles: {},
|
|
19099
|
+
sheetOrder: [sheetId],
|
|
19100
|
+
sheets: { [sheetId]: createSheetsEmbedDefaultWorksheet(sheetId, sheetName) },
|
|
19101
|
+
resources: []
|
|
19102
|
+
};
|
|
19103
|
+
}
|
|
19104
|
+
function createSheetsEmbedDefaultWorksheet(sheetId, name) {
|
|
19105
|
+
return {
|
|
19106
|
+
id: sheetId,
|
|
19107
|
+
name,
|
|
19108
|
+
tabColor: "",
|
|
19109
|
+
hidden: _univerjs_core.BooleanNumber.FALSE,
|
|
19110
|
+
rowCount: 100,
|
|
19111
|
+
columnCount: 20,
|
|
19112
|
+
zoomRatio: 1,
|
|
19113
|
+
freeze: {
|
|
19114
|
+
startRow: -1,
|
|
19115
|
+
startColumn: -1,
|
|
19116
|
+
ySplit: 0,
|
|
19117
|
+
xSplit: 0
|
|
19118
|
+
},
|
|
19119
|
+
scrollTop: 0,
|
|
19120
|
+
scrollLeft: 0,
|
|
19121
|
+
defaultColumnWidth: 88,
|
|
19122
|
+
defaultRowHeight: 24,
|
|
19123
|
+
mergeData: [],
|
|
19124
|
+
cellData: {},
|
|
19125
|
+
rowData: {},
|
|
19126
|
+
columnData: {},
|
|
19127
|
+
showGridlines: _univerjs_core.BooleanNumber.TRUE,
|
|
19128
|
+
rowHeader: {
|
|
19129
|
+
width: 46,
|
|
19130
|
+
hidden: _univerjs_core.BooleanNumber.FALSE
|
|
19131
|
+
},
|
|
19132
|
+
columnHeader: {
|
|
19133
|
+
height: 20,
|
|
19134
|
+
hidden: _univerjs_core.BooleanNumber.FALSE
|
|
19135
|
+
},
|
|
19136
|
+
rightToLeft: _univerjs_core.BooleanNumber.FALSE
|
|
19137
|
+
};
|
|
19138
|
+
}
|
|
19139
|
+
function createSheetsEmbedEmptyUnit(univerInstanceService, config, options) {
|
|
19140
|
+
return {
|
|
19141
|
+
unitId: univerInstanceService.createUnit(_univerjs_core.UniverInstanceType.UNIVER_SHEET, createSheetsEmbedEmptySnapshot(config), options).getUnitId(),
|
|
19142
|
+
unitType: _univerjs_core.UniverInstanceType.UNIVER_SHEET
|
|
19143
|
+
};
|
|
19144
|
+
}
|
|
19145
|
+
|
|
18994
19146
|
//#endregion
|
|
18995
19147
|
//#region src/models/range-protection-render.model.ts
|
|
18996
19148
|
let RangeProtectionRenderModel = class RangeProtectionRenderModel {
|
|
@@ -19345,11 +19497,6 @@ RangeProtectionCache = __decorate([
|
|
|
19345
19497
|
__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.IUniverInstanceService))
|
|
19346
19498
|
], RangeProtectionCache);
|
|
19347
19499
|
|
|
19348
|
-
//#endregion
|
|
19349
|
-
//#region package.json
|
|
19350
|
-
var name = "@univerjs/sheets";
|
|
19351
|
-
var version = "1.0.0-alpha.1";
|
|
19352
|
-
|
|
19353
19500
|
//#endregion
|
|
19354
19501
|
//#region src/controllers/active-worksheet.controller.ts
|
|
19355
19502
|
let ActiveWorksheetController = class ActiveWorksheetController extends _univerjs_core.Disposable {
|
|
@@ -20605,7 +20752,7 @@ let RangeProtectionService = class RangeProtectionService extends _univerjs_core
|
|
|
20605
20752
|
getAllRangePermissionPoint().forEach((Factor) => {
|
|
20606
20753
|
const instance = new Factor(unitId, subUnitId, rule.permissionId);
|
|
20607
20754
|
instance.value = false;
|
|
20608
|
-
this.
|
|
20755
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
20609
20756
|
});
|
|
20610
20757
|
});
|
|
20611
20758
|
this._selectionProtectionCache.reBuildCache(unitId, subUnitId);
|
|
@@ -20616,6 +20763,13 @@ let RangeProtectionService = class RangeProtectionService extends _univerjs_core
|
|
|
20616
20763
|
}
|
|
20617
20764
|
}));
|
|
20618
20765
|
}
|
|
20766
|
+
_addOrUpdatePermissionPoint(instance) {
|
|
20767
|
+
if (this._permissionService.getPermissionPoint(instance.id)) {
|
|
20768
|
+
this._permissionService.updatePermissionPoint(instance.id, instance.value);
|
|
20769
|
+
return;
|
|
20770
|
+
}
|
|
20771
|
+
this._permissionService.addPermissionPoint(instance);
|
|
20772
|
+
}
|
|
20619
20773
|
};
|
|
20620
20774
|
RangeProtectionService = __decorate([
|
|
20621
20775
|
__decorateParam(0, (0, _univerjs_core.Inject)(RangeProtectionRuleModel)),
|
|
@@ -20744,6 +20898,8 @@ let UniverSheetsPlugin = class UniverSheetsPlugin extends _univerjs_core.Plugin
|
|
|
20744
20898
|
}
|
|
20745
20899
|
onStarting() {
|
|
20746
20900
|
var _this$_config5;
|
|
20901
|
+
registerSheetsEmbedHostCapabilities(this._injector);
|
|
20902
|
+
registerSheetsEmbedGuestContribution(this._injector);
|
|
20747
20903
|
(0, _univerjs_core.touchDependencies)(this._injector, [
|
|
20748
20904
|
[BasicWorksheetController],
|
|
20749
20905
|
[MergeCellController],
|
|
@@ -21730,6 +21886,7 @@ exports.convertPrimaryWithCoordToPrimary = convertPrimaryWithCoordToPrimary;
|
|
|
21730
21886
|
exports.convertSelectionDataToRange = convertSelectionDataToRange;
|
|
21731
21887
|
exports.copyRangeStyles = copyRangeStyles;
|
|
21732
21888
|
exports.countCells = countCells;
|
|
21889
|
+
exports.createSheetsEmbedEmptySnapshot = createSheetsEmbedEmptySnapshot;
|
|
21733
21890
|
exports.createTopMatrixFromMatrix = createTopMatrixFromMatrix;
|
|
21734
21891
|
exports.createTopMatrixFromRanges = createTopMatrixFromRanges;
|
|
21735
21892
|
exports.defaultLargeSheetOperationConfig = defaultLargeSheetOperationConfig;
|
|
@@ -21791,6 +21948,8 @@ exports.handleMoveRows = handleMoveRows;
|
|
|
21791
21948
|
exports.isSingleCellSelection = isSingleCellSelection;
|
|
21792
21949
|
exports.rangeMerge = rangeMerge;
|
|
21793
21950
|
exports.rangeToDiscreteRange = rangeToDiscreteRange;
|
|
21951
|
+
exports.registerSheetsEmbedGuestContribution = registerSheetsEmbedGuestContribution;
|
|
21952
|
+
exports.registerSheetsEmbedHostCapabilities = registerSheetsEmbedHostCapabilities;
|
|
21794
21953
|
exports.rotateRange = rotateRange;
|
|
21795
21954
|
exports.runRefRangeMutations = runRefRangeMutations;
|
|
21796
21955
|
exports.serializeListOptions = serializeListOptions;
|
package/lib/es/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, STYLE_KEYS, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, escapeRegExp, generateRandomId, getArrayLength, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, numfmt, queryObjectMatrix, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
1
|
+
import { AUTO_HEIGHT_FOR_MERGED_CELLS, BORDER_KEYS, BORDER_STYLE_KEYS, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, COLOR_STYLE_KEYS, CellModeEnum, CellValueType, CommandType, CustomCommandExecutionError, DependentOn, Dimension, Direction, Disposable, DisposableCollection, DocumentDataModel, ErrorService, FontItalic, FontWeight, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, ILogService, IPermissionService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IUndoRedoService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, InterceptorManager, LRUMap, LocaleService, LocaleType, MAX_COLUMN_COUNT, MAX_ROW_COUNT, ObjectMatrix, Optional, PADDING_KEYS, PermissionStatus, Plugin, RANGE_TYPE, RTree, Range, Rectangle, RxDisposable, STYLE_KEYS, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, TextX, Tools, UniverInstanceType, UserManagerService, cellToRange, cloneWorksheetData, composeInterceptors, concatMatrixArray, createIdentifier, createInterceptorKey, createRowColIter, escapeRegExp, generateRandomId, getArrayLength, isBooleanString, isDefaultFormat, isFormulaId, isFormulaString, isICellData, isRealNum, isSafeNumeric, isTextFormat, mapObjectMatrix, merge, mergeIntervals, mergeOverrideWithDependencies, mergeWorksheetSnapshotWithDefault, moveMatrixArray, normalizeTextRuns, numfmt, queryObjectMatrix, registerDependencies, remove, selectionToArray, sequenceExecute, sliceMatrixArray, spliceArray, throttle, toDisposable, touchDependencies, willLoseNumericPrecision } from "@univerjs/core";
|
|
2
2
|
import { BehaviorSubject, Subject, distinctUntilChanged, filter, first, map, merge as merge$1, of, share, shareReplay, skip, switchMap, takeUntil } from "rxjs";
|
|
3
3
|
import { IDefinedNamesService, LexerTreeBuilder, RemoveDefinedNameMutation, SetDefinedNameMutation, SetDefinedNameMutationFactory, SetFormulaCalculationResultMutation, UniverFormulaEnginePlugin, deserializeRangeWithSheet, deserializeRangeWithSheetWithCache, handleNumfmtInCell, isReferenceStringWithEffectiveColumn, operatorToken, sequenceNodeType, stripErrorMargin } from "@univerjs/engine-formula";
|
|
4
4
|
import { SpreadsheetSkeleton, hasCJKText, precisionTo } from "@univerjs/engine-render";
|
|
5
5
|
import { UnitAction, UnitObject } from "@univerjs/protocol";
|
|
6
6
|
import { filter as filter$1, map as map$1, takeUntil as takeUntil$1 } from "rxjs/operators";
|
|
7
|
+
import { registerEmbedCapabilities, registerEmbedGuestContribution } from "@univerjs/embed";
|
|
7
8
|
import { DataSyncPrimaryController } from "@univerjs/rpc";
|
|
8
9
|
|
|
9
10
|
//#region src/basics/cell-type.ts
|
|
@@ -16193,7 +16194,7 @@ let WorksheetPermissionService = class WorksheetPermissionService extends RxDisp
|
|
|
16193
16194
|
getAllWorksheetPermissionPoint().forEach((F) => {
|
|
16194
16195
|
const instance = new F(unitId, subUnitId);
|
|
16195
16196
|
instance.value = false;
|
|
16196
|
-
this.
|
|
16197
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
16197
16198
|
});
|
|
16198
16199
|
});
|
|
16199
16200
|
this._worksheetProtectionRuleModel.changeRuleInitState(true);
|
|
@@ -16240,7 +16241,7 @@ let WorksheetPermissionService = class WorksheetPermissionService extends RxDisp
|
|
|
16240
16241
|
Object.keys(resources).forEach((subUnitId) => {
|
|
16241
16242
|
getAllWorksheetPermissionPointByPointPanel().forEach((F) => {
|
|
16242
16243
|
const instance = new F(unitId, subUnitId);
|
|
16243
|
-
this.
|
|
16244
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
16244
16245
|
});
|
|
16245
16246
|
});
|
|
16246
16247
|
},
|
|
@@ -16249,6 +16250,13 @@ let WorksheetPermissionService = class WorksheetPermissionService extends RxDisp
|
|
|
16249
16250
|
}
|
|
16250
16251
|
}));
|
|
16251
16252
|
}
|
|
16253
|
+
_addOrUpdatePermissionPoint(instance) {
|
|
16254
|
+
if (this._permissionService.getPermissionPoint(instance.id)) {
|
|
16255
|
+
this._permissionService.updatePermissionPoint(instance.id, instance.value);
|
|
16256
|
+
return;
|
|
16257
|
+
}
|
|
16258
|
+
this._permissionService.addPermissionPoint(instance);
|
|
16259
|
+
}
|
|
16252
16260
|
};
|
|
16253
16261
|
WorksheetPermissionService = __decorate([
|
|
16254
16262
|
__decorateParam(0, Inject(IPermissionService)),
|
|
@@ -18990,6 +18998,150 @@ ZebraCrossingCacheController = __decorate([
|
|
|
18990
18998
|
__decorateParam(2, Inject(IUniverInstanceService))
|
|
18991
18999
|
], ZebraCrossingCacheController);
|
|
18992
19000
|
|
|
19001
|
+
//#endregion
|
|
19002
|
+
//#region package.json
|
|
19003
|
+
var name = "@univerjs/sheets";
|
|
19004
|
+
var version = "1.0.0-insiders.20260701-0ef51b0";
|
|
19005
|
+
|
|
19006
|
+
//#endregion
|
|
19007
|
+
//#region src/embed-guest.ts
|
|
19008
|
+
const SHEETS_HOST_EMBED_CAPABILITIES = [
|
|
19009
|
+
{
|
|
19010
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19011
|
+
childType: UniverInstanceType.UNIVER_SHEET,
|
|
19012
|
+
entry: "sheets-floating-object",
|
|
19013
|
+
mode: "float",
|
|
19014
|
+
renderHost: "sheets-drawing-dom",
|
|
19015
|
+
layout: "scroll-contained",
|
|
19016
|
+
menuBehavior: "floating",
|
|
19017
|
+
nestedEmbed: false
|
|
19018
|
+
},
|
|
19019
|
+
{
|
|
19020
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19021
|
+
childType: UniverInstanceType.UNIVER_DOC,
|
|
19022
|
+
entry: "sheets-floating-object",
|
|
19023
|
+
mode: "float",
|
|
19024
|
+
renderHost: "sheets-drawing-dom",
|
|
19025
|
+
layout: "doc-width-scale",
|
|
19026
|
+
menuBehavior: "floating",
|
|
19027
|
+
nestedEmbed: false
|
|
19028
|
+
},
|
|
19029
|
+
{
|
|
19030
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19031
|
+
childType: UniverInstanceType.UNIVER_SLIDE,
|
|
19032
|
+
entry: "sheets-floating-object",
|
|
19033
|
+
mode: "float",
|
|
19034
|
+
renderHost: "sheets-drawing-dom",
|
|
19035
|
+
layout: "aspect-fit",
|
|
19036
|
+
menuBehavior: "floating",
|
|
19037
|
+
nestedEmbed: false
|
|
19038
|
+
},
|
|
19039
|
+
{
|
|
19040
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19041
|
+
childType: UniverInstanceType.UNIVER_BASE,
|
|
19042
|
+
entry: "sheets-floating-object",
|
|
19043
|
+
mode: "float",
|
|
19044
|
+
renderHost: "sheets-drawing-dom",
|
|
19045
|
+
layout: "scroll-contained",
|
|
19046
|
+
menuBehavior: "floating",
|
|
19047
|
+
nestedEmbed: false
|
|
19048
|
+
},
|
|
19049
|
+
{
|
|
19050
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19051
|
+
childType: UniverInstanceType.UNIVER_BASE,
|
|
19052
|
+
entry: "sheets-sheet-tab",
|
|
19053
|
+
mode: "tab",
|
|
19054
|
+
layout: "tab-peer",
|
|
19055
|
+
menuBehavior: "host-override",
|
|
19056
|
+
nestedEmbed: false
|
|
19057
|
+
},
|
|
19058
|
+
{
|
|
19059
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19060
|
+
childType: UniverInstanceType.UNIVER_DOC,
|
|
19061
|
+
entry: "sheets-sheet-tab",
|
|
19062
|
+
mode: "tab",
|
|
19063
|
+
layout: "tab-peer",
|
|
19064
|
+
menuBehavior: "host-override",
|
|
19065
|
+
nestedEmbed: false
|
|
19066
|
+
},
|
|
19067
|
+
{
|
|
19068
|
+
hostType: UniverInstanceType.UNIVER_SHEET,
|
|
19069
|
+
childType: UniverInstanceType.UNIVER_SLIDE,
|
|
19070
|
+
entry: "sheets-sheet-tab",
|
|
19071
|
+
mode: "tab",
|
|
19072
|
+
layout: "tab-peer",
|
|
19073
|
+
menuBehavior: "host-override",
|
|
19074
|
+
nestedEmbed: false
|
|
19075
|
+
}
|
|
19076
|
+
];
|
|
19077
|
+
function registerSheetsEmbedHostCapabilities(injector) {
|
|
19078
|
+
registerEmbedCapabilities(injector, SHEETS_HOST_EMBED_CAPABILITIES);
|
|
19079
|
+
}
|
|
19080
|
+
function registerSheetsEmbedGuestContribution(injector) {
|
|
19081
|
+
if (!injector.has(IUniverInstanceService)) return;
|
|
19082
|
+
const univerInstanceService = injector.get(IUniverInstanceService);
|
|
19083
|
+
registerEmbedGuestContribution(injector, {
|
|
19084
|
+
childType: UniverInstanceType.UNIVER_SHEET,
|
|
19085
|
+
createEmptyUnit: (config, options) => createSheetsEmbedEmptyUnit(univerInstanceService, config, options)
|
|
19086
|
+
});
|
|
19087
|
+
}
|
|
19088
|
+
function createSheetsEmbedEmptySnapshot(config = {}) {
|
|
19089
|
+
const unitId = typeof config.id === "string" ? config.id : `embed_sheet_${generateRandomId(8)}`;
|
|
19090
|
+
const sheetId = typeof config.sheetId === "string" ? config.sheetId : `${unitId}_sheet_1`;
|
|
19091
|
+
const sheetName = typeof config.sheetName === "string" ? config.sheetName : "Sheet1";
|
|
19092
|
+
return {
|
|
19093
|
+
id: unitId,
|
|
19094
|
+
name: typeof config.name === "string" ? config.name : "Embedded Sheet",
|
|
19095
|
+
appVersion: version,
|
|
19096
|
+
locale: LocaleType.EN_US,
|
|
19097
|
+
styles: {},
|
|
19098
|
+
sheetOrder: [sheetId],
|
|
19099
|
+
sheets: { [sheetId]: createSheetsEmbedDefaultWorksheet(sheetId, sheetName) },
|
|
19100
|
+
resources: []
|
|
19101
|
+
};
|
|
19102
|
+
}
|
|
19103
|
+
function createSheetsEmbedDefaultWorksheet(sheetId, name) {
|
|
19104
|
+
return {
|
|
19105
|
+
id: sheetId,
|
|
19106
|
+
name,
|
|
19107
|
+
tabColor: "",
|
|
19108
|
+
hidden: BooleanNumber.FALSE,
|
|
19109
|
+
rowCount: 100,
|
|
19110
|
+
columnCount: 20,
|
|
19111
|
+
zoomRatio: 1,
|
|
19112
|
+
freeze: {
|
|
19113
|
+
startRow: -1,
|
|
19114
|
+
startColumn: -1,
|
|
19115
|
+
ySplit: 0,
|
|
19116
|
+
xSplit: 0
|
|
19117
|
+
},
|
|
19118
|
+
scrollTop: 0,
|
|
19119
|
+
scrollLeft: 0,
|
|
19120
|
+
defaultColumnWidth: 88,
|
|
19121
|
+
defaultRowHeight: 24,
|
|
19122
|
+
mergeData: [],
|
|
19123
|
+
cellData: {},
|
|
19124
|
+
rowData: {},
|
|
19125
|
+
columnData: {},
|
|
19126
|
+
showGridlines: BooleanNumber.TRUE,
|
|
19127
|
+
rowHeader: {
|
|
19128
|
+
width: 46,
|
|
19129
|
+
hidden: BooleanNumber.FALSE
|
|
19130
|
+
},
|
|
19131
|
+
columnHeader: {
|
|
19132
|
+
height: 20,
|
|
19133
|
+
hidden: BooleanNumber.FALSE
|
|
19134
|
+
},
|
|
19135
|
+
rightToLeft: BooleanNumber.FALSE
|
|
19136
|
+
};
|
|
19137
|
+
}
|
|
19138
|
+
function createSheetsEmbedEmptyUnit(univerInstanceService, config, options) {
|
|
19139
|
+
return {
|
|
19140
|
+
unitId: univerInstanceService.createUnit(UniverInstanceType.UNIVER_SHEET, createSheetsEmbedEmptySnapshot(config), options).getUnitId(),
|
|
19141
|
+
unitType: UniverInstanceType.UNIVER_SHEET
|
|
19142
|
+
};
|
|
19143
|
+
}
|
|
19144
|
+
|
|
18993
19145
|
//#endregion
|
|
18994
19146
|
//#region src/models/range-protection-render.model.ts
|
|
18995
19147
|
let RangeProtectionRenderModel = class RangeProtectionRenderModel {
|
|
@@ -19344,11 +19496,6 @@ RangeProtectionCache = __decorate([
|
|
|
19344
19496
|
__decorateParam(2, Inject(IUniverInstanceService))
|
|
19345
19497
|
], RangeProtectionCache);
|
|
19346
19498
|
|
|
19347
|
-
//#endregion
|
|
19348
|
-
//#region package.json
|
|
19349
|
-
var name = "@univerjs/sheets";
|
|
19350
|
-
var version = "1.0.0-alpha.1";
|
|
19351
|
-
|
|
19352
19499
|
//#endregion
|
|
19353
19500
|
//#region src/controllers/active-worksheet.controller.ts
|
|
19354
19501
|
let ActiveWorksheetController = class ActiveWorksheetController extends Disposable {
|
|
@@ -20604,7 +20751,7 @@ let RangeProtectionService = class RangeProtectionService extends Disposable {
|
|
|
20604
20751
|
getAllRangePermissionPoint().forEach((Factor) => {
|
|
20605
20752
|
const instance = new Factor(unitId, subUnitId, rule.permissionId);
|
|
20606
20753
|
instance.value = false;
|
|
20607
|
-
this.
|
|
20754
|
+
this._addOrUpdatePermissionPoint(instance);
|
|
20608
20755
|
});
|
|
20609
20756
|
});
|
|
20610
20757
|
this._selectionProtectionCache.reBuildCache(unitId, subUnitId);
|
|
@@ -20615,6 +20762,13 @@ let RangeProtectionService = class RangeProtectionService extends Disposable {
|
|
|
20615
20762
|
}
|
|
20616
20763
|
}));
|
|
20617
20764
|
}
|
|
20765
|
+
_addOrUpdatePermissionPoint(instance) {
|
|
20766
|
+
if (this._permissionService.getPermissionPoint(instance.id)) {
|
|
20767
|
+
this._permissionService.updatePermissionPoint(instance.id, instance.value);
|
|
20768
|
+
return;
|
|
20769
|
+
}
|
|
20770
|
+
this._permissionService.addPermissionPoint(instance);
|
|
20771
|
+
}
|
|
20618
20772
|
};
|
|
20619
20773
|
RangeProtectionService = __decorate([
|
|
20620
20774
|
__decorateParam(0, Inject(RangeProtectionRuleModel)),
|
|
@@ -20743,6 +20897,8 @@ let UniverSheetsPlugin = class UniverSheetsPlugin extends Plugin {
|
|
|
20743
20897
|
}
|
|
20744
20898
|
onStarting() {
|
|
20745
20899
|
var _this$_config5;
|
|
20900
|
+
registerSheetsEmbedHostCapabilities(this._injector);
|
|
20901
|
+
registerSheetsEmbedGuestContribution(this._injector);
|
|
20746
20902
|
touchDependencies(this._injector, [
|
|
20747
20903
|
[BasicWorksheetController],
|
|
20748
20904
|
[MergeCellController],
|
|
@@ -21279,4 +21435,4 @@ function convertPositionCellToSheetOverGrid(unitId, subUnitId, cellOverGridPosit
|
|
|
21279
21435
|
}
|
|
21280
21436
|
|
|
21281
21437
|
//#endregion
|
|
21282
|
-
export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CalculateResultApplyController, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isSingleCellSelection, rangeMerge, rangeToDiscreteRange, rotateRange, runRefRangeMutations, serializeListOptions, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
|
|
21438
|
+
export { AFFECT_LAYOUT_STYLES, AFTER_CELL_EDIT, AUTO_FILL_APPLY_TYPE, AUTO_FILL_DATA_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeRedoSelectionsOperationFactory, AddMergeUndoMutationFactory, AddMergeUndoSelectionsOperationFactory, AddRangeProtectionCommand, AddRangeProtectionMutation, AddRangeThemeMutation, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeMutation, AddWorksheetMergeVerticalCommand, AddWorksheetProtectionCommand, AddWorksheetProtectionMutation, AppendRowCommand, AutoClearContentCommand, AutoFillCommand, AutoFillController, AutoFillRules, AutoFillService, AutoFillTools, BEFORE_CELL_EDIT, BorderStyleManagerService, COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE, CalculateResultApplyController, CancelFrozenCommand, CancelMarkDirtyRowAutoHeightOperation, ClearSelectionAllCommand, ClearSelectionContentCommand, ClearSelectionFormatCommand, CopySheetCommand, CopyWorksheetEndMutation, DISABLE_NORMAL_SELECTIONS, DefinedNameDataController, DeleteRangeMoveLeftCommand, DeleteRangeMoveUpCommand, DeleteRangeProtectionCommand, DeleteRangeProtectionMutation, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionMutation, DeleteWorksheetRangeThemeStyleCommand, DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleMutationFactory, DeltaColumnWidthCommand, DeltaRowHeightCommand, EditStateEnum, EffectRefRangId, EmptyMutation, ExclusiveRangeService, FactoryAddRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, FactorySetRangeProtectionMutation, IAutoFillService, IExclusiveRangeService, INTERCEPTOR_POINT, INumfmtService, IRefSelectionsService, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertColMutation, InsertColMutationUndoFactory, InsertDefinedNameCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRangeMoveDownCommand, InsertRangeMoveRightCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, InsertRowMutation, InsertRowMutationUndoFactory, InsertSheetCommand, InsertSheetMutation, InsertSheetUndoMutationFactory, InterceptCellContentPriority, MAX_CELL_PER_SHEET_KEY, MERGE_CELL_INTERCEPTOR_CHECK, MarkDirtyFilterChangeMutation, MarkDirtyRowAutoHeightOperation, MergeCellController, MoveColsCommand, MoveColsMutation, MoveColsMutationUndoFactory, MoveRangeCommand, MoveRangeMutation, MoveRowsCommand, MoveRowsMutation, MoveRowsMutationUndoFactory, NumfmtService, OperatorType, PermissionPointsDefinitions, REF_SELECTIONS_ENABLED, RangeMergeUtil, RangeProtectionCache, RangeProtectionPermissionDeleteProtectionPoint, RangeProtectionPermissionEditPoint, RangeProtectionPermissionManageCollaPoint, RangeProtectionPermissionViewPoint, RangeProtectionRefRangeService, RangeProtectionRenderModel, RangeProtectionRuleModel, RangeProtectionService, RangeThemeStyle, RefRangeService, RefSelectionsService, RefillCommand, RegisterWorksheetRangeThemeStyleCommand, RegisterWorksheetRangeThemeStyleMutation, RemoveColByRangeCommand, RemoveColCommand, RemoveColMutation, RemoveDefinedNameCommand, RemoveMergeUndoMutationFactory, RemoveNumfmtMutation, RemoveRangeThemeMutation, RemoveRowByRangeCommand, RemoveRowCommand, RemoveRowMutation, RemoveSheetCommand, RemoveSheetMutation, RemoveSheetUndoMutationFactory, RemoveWorksheetMergeCommand, RemoveWorksheetMergeMutation, ReorderRangeCommand, ReorderRangeMutation, ReorderRangeUndoMutationFactory, ResetBackgroundColorCommand, ResetTextColorCommand, SCOPE_WORKBOOK_VALUE_DEFINED_NAME, SELECTIONS_ENABLED, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, SHEETS_PLUGIN_CONFIG_KEY, ScrollToCellOperation, SelectRangeCommand, SelectionMoveType, SetBackgroundColorCommand, SetBoldCommand, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, SetColDataCommand, SetColDataMutation, SetColDataMutationFactory, SetColHiddenCommand, SetColHiddenMutation, SetColVisibleMutation, SetColWidthCommand, SetDefinedNameCommand, SetFontFamilyCommand, SetFontSizeCommand, SetFrozenCommand, SetFrozenMutation, SetFrozenMutationFactory, SetGridlinesColorCommand, SetGridlinesColorMutation, SetHorizontalTextAlignCommand, SetItalicCommand, SetNumfmtMutation, SetOverlineCommand, SetProtectionCommand, SetRangeCustomMetadataCommand, SetRangeProtectionMutation, SetRangeThemeMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SetRowDataCommand, SetRowDataMutation, SetRowDataMutationFactory, SetRowHeightCommand, SetRowHiddenCommand, SetRowHiddenMutation, SetRowVisibleMutation, SetSelectedColsVisibleCommand, SetSelectedRowsVisibleCommand, SetSelectionsOperation, SetSpecificColsVisibleCommand, SetSpecificRowsVisibleCommand, SetStrikeThroughCommand, SetStyleCommand, SetTabColorCommand, SetTabColorMutation, SetTextColorCommand, SetTextRotationCommand, SetTextWrapCommand, SetUnderlineCommand, SetVerticalTextAlignCommand, SetWorkbookNameCommand, SetWorkbookNameMutation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SetWorksheetColWidthMutation, SetWorksheetColWidthMutationFactory, SetWorksheetColumnCountCommand, SetWorksheetColumnCountMutation, SetWorksheetColumnCountUndoMutationFactory, SetWorksheetDefaultStyleCommand, SetWorksheetDefaultStyleMutation, SetWorksheetDefaultStyleMutationFactory, SetWorksheetHideCommand, SetWorksheetHideMutation, SetWorksheetNameCommand, SetWorksheetNameMutation, SetWorksheetOrderCommand, SetWorksheetOrderMutation, SetWorksheetPermissionPointsCommand, SetWorksheetPermissionPointsMutation, SetWorksheetProtectionCommand, SetWorksheetProtectionMutation, SetWorksheetRangeThemeStyleCommand, SetWorksheetRangeThemeStyleMutation, SetWorksheetRangeThemeStyleMutationFactory, SetWorksheetRightToLeftCommand, SetWorksheetRightToLeftMutation, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowCountCommand, SetWorksheetRowCountMutation, SetWorksheetRowCountUndoMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightCommand, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, SetWorksheetShowCommand, SheetCopyDownCommand, SheetCopyRightCommand, SheetInterceptorService, SheetLazyExecuteScheduleService, SheetPermissionCheckController, SheetPermissionInitController, SheetRangeThemeModel, SheetRangeThemeService, SheetSkeletonChangeType, SheetSkeletonService, SheetValueChangeType, SheetsFreezeSyncController, SheetsSelectionsService, SplitDelimiterEnum, SplitTextToColumnsCommand, TextToNumberCommand, ToggleCellCheckboxCommand, ToggleGridlinesCommand, ToggleGridlinesMutation, UniverSheetsPlugin, UnregisterWorksheetRangeThemeStyleCommand, UnregisterWorksheetRangeThemeStyleMutation, VALIDATE_CELL, ViewStateEnum, WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCopySheetPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookInsertColumnPermission, WorkbookInsertRowPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPermissionService, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSelectionModel, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPermissionService, WorksheetPivotTablePermission, WorksheetProtectionPointModel, WorksheetProtectionRuleModel, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, ZebraCrossingCacheController, addMergeCellsUtil, adjustRangeOnMutation, alignToMergedCellsBorders, attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord, baseProtectionActions, checkCellValueType, checkRangesEditablePermission, convertPositionCellToSheetOverGrid, convertPositionSheetOverGridToAbsolute, convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, copyRangeStyles, countCells, createSheetsEmbedEmptySnapshot, createTopMatrixFromMatrix, createTopMatrixFromRanges, defaultLargeSheetOperationConfig, defaultWorkbookPermissionPoints, defaultWorksheetPermissionPoint, deserializeListOptions, discreteRangeToRange, expandToContinuousRange, factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, findAllRectangle, findFirstNonEmptyCell, followSelectionOperation, generateNullCell, generateNullCellValue, getAddMergeMutationRangeByType, getAllRangePermissionPoint, getAllWorkbookPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel, getCellAtRowCol, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, getDefaultRangePermission, getInsertRangeMutations, getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, getNextPrimaryCell, getPrimaryForRange, getRemoveRangeMutations, getSelectionsService, getSeparateEffectedRangesOnCommand, getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget, getSkeletonChangedEffectedRange, getValueChangedEffectedRange, getVisibleRanges, handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleCommonDefaultRangeChangeWithEffectRefCommands, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleDeleteRangeMutation, handleIRemoveCol, handleIRemoveRow, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRangeMutation, handleInsertRow, handleMoveCols, handleMoveRange, handleMoveRows, isSingleCellSelection, rangeMerge, rangeToDiscreteRange, registerSheetsEmbedGuestContribution, registerSheetsEmbedHostCapabilities, rotateRange, runRefRangeMutations, serializeListOptions, setEndForRange, splitRangeText, transformCellsToRange, validateDefinedName };
|