@univerjs/sheets-ui 1.0.4 → 1.1.0
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 +295 -199
- package/lib/cjs/locale/ar-SA.js +15 -0
- package/lib/cjs/locale/ca-ES.js +15 -0
- package/lib/cjs/locale/de-DE.js +15 -0
- package/lib/cjs/locale/en-US.js +15 -0
- package/lib/cjs/locale/es-ES.js +15 -0
- package/lib/cjs/locale/fa-IR.js +15 -0
- package/lib/cjs/locale/fr-FR.js +15 -0
- package/lib/cjs/locale/id-ID.js +15 -0
- package/lib/cjs/locale/it-IT.js +15 -0
- package/lib/cjs/locale/ja-JP.js +15 -0
- package/lib/cjs/locale/ko-KR.js +15 -0
- package/lib/cjs/locale/pl-PL.js +15 -0
- package/lib/cjs/locale/pt-BR.js +15 -0
- package/lib/cjs/locale/ru-RU.js +15 -0
- package/lib/cjs/locale/sk-SK.js +15 -0
- package/lib/cjs/locale/vi-VN.js +15 -0
- package/lib/cjs/locale/zh-CN.js +15 -0
- package/lib/cjs/locale/zh-HK.js +15 -0
- package/lib/cjs/locale/zh-TW.js +15 -0
- package/lib/es/index.js +261 -165
- package/lib/es/locale/ar-SA.js +15 -0
- package/lib/es/locale/ca-ES.js +15 -0
- package/lib/es/locale/de-DE.js +15 -0
- package/lib/es/locale/en-US.js +15 -0
- package/lib/es/locale/es-ES.js +15 -0
- package/lib/es/locale/fa-IR.js +15 -0
- package/lib/es/locale/fr-FR.js +15 -0
- package/lib/es/locale/id-ID.js +15 -0
- package/lib/es/locale/it-IT.js +15 -0
- package/lib/es/locale/ja-JP.js +15 -0
- package/lib/es/locale/ko-KR.js +15 -0
- package/lib/es/locale/pl-PL.js +15 -0
- package/lib/es/locale/pt-BR.js +15 -0
- package/lib/es/locale/ru-RU.js +15 -0
- package/lib/es/locale/sk-SK.js +15 -0
- package/lib/es/locale/vi-VN.js +15 -0
- package/lib/es/locale/zh-CN.js +15 -0
- package/lib/es/locale/zh-HK.js +15 -0
- package/lib/es/locale/zh-TW.js +15 -0
- package/lib/index.css +0 -20
- package/lib/index.js +261 -165
- package/lib/locale/ar-SA.js +15 -0
- package/lib/locale/ca-ES.js +15 -0
- package/lib/locale/de-DE.js +15 -0
- package/lib/locale/en-US.js +15 -0
- package/lib/locale/es-ES.js +15 -0
- package/lib/locale/fa-IR.js +15 -0
- package/lib/locale/fr-FR.js +15 -0
- package/lib/locale/id-ID.js +15 -0
- package/lib/locale/it-IT.js +15 -0
- package/lib/locale/ja-JP.js +15 -0
- package/lib/locale/ko-KR.js +15 -0
- package/lib/locale/pl-PL.js +15 -0
- package/lib/locale/pt-BR.js +15 -0
- package/lib/locale/ru-RU.js +15 -0
- package/lib/locale/sk-SK.js +15 -0
- package/lib/locale/vi-VN.js +15 -0
- package/lib/locale/zh-CN.js +15 -0
- package/lib/locale/zh-HK.js +15 -0
- package/lib/locale/zh-TW.js +15 -0
- package/lib/types/locale/en-US.d.ts +15 -0
- package/lib/types/menu/zoom.menu.d.ts +2 -2
- package/lib/types/services/cell-alert-manager.service.d.ts +1 -0
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +6 -0
- package/lib/types/views/border-panel/interface.d.ts +37 -4
- package/lib/umd/facade.js +3 -1
- package/lib/umd/index.js +10 -10
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
- package/lib/types/views/sheet-slider/SheetZoomInput.d.ts +0 -18
package/lib/cjs/index.js
CHANGED
|
@@ -241,7 +241,7 @@ let SHEET_VIEW_KEY = /* @__PURE__ */ function(SHEET_VIEW_KEY) {
|
|
|
241
241
|
}({});
|
|
242
242
|
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region \0@oxc-project+runtime@0.
|
|
244
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
245
245
|
function _typeof(o) {
|
|
246
246
|
"@babel/helpers - typeof";
|
|
247
247
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -252,7 +252,7 @@ function _typeof(o) {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
//#endregion
|
|
255
|
-
//#region \0@oxc-project+runtime@0.
|
|
255
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
256
256
|
function toPrimitive(t, r) {
|
|
257
257
|
if ("object" != _typeof(t) || !t) return t;
|
|
258
258
|
var e = t[Symbol.toPrimitive];
|
|
@@ -265,14 +265,14 @@ function toPrimitive(t, r) {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
//#endregion
|
|
268
|
-
//#region \0@oxc-project+runtime@0.
|
|
268
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
269
269
|
function toPropertyKey(t) {
|
|
270
270
|
var i = toPrimitive(t, "string");
|
|
271
271
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
//#endregion
|
|
275
|
-
//#region \0@oxc-project+runtime@0.
|
|
275
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
276
276
|
function _defineProperty(e, r, t) {
|
|
277
277
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
278
278
|
value: t,
|
|
@@ -1045,7 +1045,7 @@ function genSelectionByRange(skeleton, range) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
1047
|
//#endregion
|
|
1048
|
-
//#region \0@oxc-project+runtime@0.
|
|
1048
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
1049
1049
|
function __decorateParam(paramIndex, decorator) {
|
|
1050
1050
|
return function(target, key) {
|
|
1051
1051
|
decorator(target, key, paramIndex);
|
|
@@ -1053,7 +1053,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
//#endregion
|
|
1056
|
-
//#region \0@oxc-project+runtime@0.
|
|
1056
|
+
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
1057
1057
|
function __decorate(decorators, target, key, desc) {
|
|
1058
1058
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1059
1059
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3106,9 +3106,10 @@ var HtmlToUSMService = class HtmlToUSMService {
|
|
|
3106
3106
|
cellDataStream = `${dataStream.substring(starts[i])}\r\n`;
|
|
3107
3107
|
if (cellDataStream === "\r\n") continue;
|
|
3108
3108
|
} else cellDataStream = `${dataStream.substring(starts[i], starts[i + 1] - 1)}\r\n`;
|
|
3109
|
+
const end = starts[i + 1] ?? dataStream.length;
|
|
3109
3110
|
const cellTextRuns = [];
|
|
3110
3111
|
textRuns === null || textRuns === void 0 || textRuns.forEach((t) => {
|
|
3111
|
-
if (t.st >= starts[i] && t.ed <=
|
|
3112
|
+
if (t.st >= starts[i] && t.ed <= end) cellTextRuns.push({
|
|
3112
3113
|
st: t.st - starts[i],
|
|
3113
3114
|
ed: t.ed - starts[i],
|
|
3114
3115
|
ts: t.ts
|
|
@@ -3116,7 +3117,7 @@ var HtmlToUSMService = class HtmlToUSMService {
|
|
|
3116
3117
|
});
|
|
3117
3118
|
const cellCustomRanges = [];
|
|
3118
3119
|
customRanges === null || customRanges === void 0 || customRanges.forEach((c) => {
|
|
3119
|
-
if (c.startIndex >= starts[i] && c.endIndex <=
|
|
3120
|
+
if (c.startIndex >= starts[i] && c.endIndex <= end) cellCustomRanges.push({
|
|
3120
3121
|
...c,
|
|
3121
3122
|
startIndex: c.startIndex - starts[i],
|
|
3122
3123
|
endIndex: c.endIndex - starts[i]
|
|
@@ -3144,14 +3145,9 @@ var HtmlToUSMService = class HtmlToUSMService {
|
|
|
3144
3145
|
payloads,
|
|
3145
3146
|
customRanges
|
|
3146
3147
|
};
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
valueMatrix.setValue(0, 0, convertToCellStyle({
|
|
3151
|
-
v: dataStream,
|
|
3152
|
-
p
|
|
3153
|
-
}, dataStream, textRuns));
|
|
3154
|
-
}
|
|
3148
|
+
const cell = { v: dataStream };
|
|
3149
|
+
if ((textRuns === null || textRuns === void 0 ? void 0 : textRuns.length) || (customRanges === null || customRanges === void 0 ? void 0 : customRanges.length)) cell.p = this._generateDocumentDataModelSnapshot({ body: singleDocBody });
|
|
3150
|
+
valueMatrix.setValue(0, 0, convertToCellStyle(cell, dataStream, textRuns));
|
|
3155
3151
|
rowProperties.push({});
|
|
3156
3152
|
}
|
|
3157
3153
|
if (tableStrings) tableStrings.forEach((t, index) => {
|
|
@@ -3768,7 +3764,7 @@ const LarkPastePlugin = {
|
|
|
3768
3764
|
const UniverPastePlugin = {
|
|
3769
3765
|
name: "univer-sheet-paste-plugin-univer",
|
|
3770
3766
|
checkPasteType(html) {
|
|
3771
|
-
return
|
|
3767
|
+
return /<p\b[^>]*\sclass\s*=\s*["'](?:[^"']*\s)?UniverNormal(?:\s[^"']*)?["']/i.test(html);
|
|
3772
3768
|
},
|
|
3773
3769
|
stylesRules: [],
|
|
3774
3770
|
afterProcessRules: [{
|
|
@@ -4145,9 +4141,9 @@ function wrapHtmlForExcel(html) {
|
|
|
4145
4141
|
/**
|
|
4146
4142
|
* This service provide hooks for sheet features to supplement content or modify behavior of clipboard.
|
|
4147
4143
|
*/
|
|
4144
|
+
HtmlToUSMService.use(UniverPastePlugin);
|
|
4148
4145
|
HtmlToUSMService.use(WordPastePlugin);
|
|
4149
4146
|
HtmlToUSMService.use(LarkPastePlugin);
|
|
4150
|
-
HtmlToUSMService.use(UniverPastePlugin);
|
|
4151
4147
|
const ISheetClipboardService = (0, _univerjs_core.createIdentifier)("sheet.clipboard-service");
|
|
4152
4148
|
let SheetClipboardService = class SheetClipboardService extends _univerjs_core.Disposable {
|
|
4153
4149
|
constructor(_logService, _univerInstanceService, _selectionManagerService, _clipboardInterfaceService, _undoRedoService, _commandService, _markSelectionService, _notificationService, _platformService, _renderManagerService, _themeService, _localeService, _errorService, _injector) {
|
|
@@ -6942,7 +6938,7 @@ const SetSelectionFrozenCommand = {
|
|
|
6942
6938
|
if (selectRow === 0) selectRow = 1;
|
|
6943
6939
|
let selectColumn = (primary === null || primary === void 0 ? void 0 : primary.startColumn) ?? range.startColumn;
|
|
6944
6940
|
if (selectColumn === 0) selectColumn = 1;
|
|
6945
|
-
const rangeType = range.rangeType;
|
|
6941
|
+
const rangeType = range.rangeType ?? _univerjs_core.RANGE_TYPE.NORMAL;
|
|
6946
6942
|
if (rangeType === _univerjs_core.RANGE_TYPE.ROW || type === 1) {
|
|
6947
6943
|
startRow = selectRow;
|
|
6948
6944
|
freezedRowCount = selectRow - sheetViewStartRow;
|
|
@@ -8241,14 +8237,17 @@ function transformPosition2Offset(x, y, scene, skeleton, worksheet) {
|
|
|
8241
8237
|
const endSheetView = skeleton.getNoMergeCellWithCoordByIndex(startRow, startColumn, false);
|
|
8242
8238
|
const { rowHeaderWidth, columnHeaderHeight } = skeleton;
|
|
8243
8239
|
const freezeWidth = endSheetView.startX - startSheetView.startX;
|
|
8244
|
-
const
|
|
8240
|
+
const freezeStartY = ySplit > 0 && startRow === ySplit ? 0 : startSheetView.startY;
|
|
8241
|
+
const freezeHeight = endSheetView.startY - freezeStartY;
|
|
8245
8242
|
const { top, left, viewportScrollX, viewportScrollY } = viewMain;
|
|
8243
|
+
const viewportLeft = left / scaleX;
|
|
8244
|
+
const viewportTop = top / scaleY;
|
|
8246
8245
|
let offsetX;
|
|
8247
|
-
if (x >
|
|
8248
|
-
else offsetX = (freezeWidth + rowHeaderWidth - (
|
|
8246
|
+
if (x > viewportLeft) offsetX = (x - viewportScrollX) * scaleX;
|
|
8247
|
+
else offsetX = (freezeWidth + rowHeaderWidth - (viewportLeft - x)) * scaleX;
|
|
8249
8248
|
let offsetY;
|
|
8250
|
-
if (y >
|
|
8251
|
-
else offsetY = (freezeHeight + columnHeaderHeight - (
|
|
8249
|
+
if (y > viewportTop) offsetY = (y - viewportScrollY) * scaleY;
|
|
8250
|
+
else offsetY = (freezeHeight + columnHeaderHeight - (viewportTop - y)) * scaleY;
|
|
8252
8251
|
return {
|
|
8253
8252
|
x: offsetX,
|
|
8254
8253
|
y: offsetY
|
|
@@ -10394,6 +10393,18 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10394
10393
|
this._univerInstanceService = _univerInstanceService;
|
|
10395
10394
|
this._configService = _configService;
|
|
10396
10395
|
this._embedFloatingGeometryService = _embedFloatingGeometryService;
|
|
10396
|
+
_defineProperty(this, "_editorWidth", 0);
|
|
10397
|
+
_defineProperty(this, "_editorHeight", 0);
|
|
10398
|
+
_defineProperty(this, "_initialEditorSize", null);
|
|
10399
|
+
_defineProperty(this, "_cellSize", null);
|
|
10400
|
+
this.disposeWithMe(this._editorBridgeService.visible$.subscribe(({ visible }) => {
|
|
10401
|
+
if (!visible) {
|
|
10402
|
+
this._editorWidth = 0;
|
|
10403
|
+
this._editorHeight = 0;
|
|
10404
|
+
this._initialEditorSize = null;
|
|
10405
|
+
this._cellSize = null;
|
|
10406
|
+
}
|
|
10407
|
+
}));
|
|
10397
10408
|
}
|
|
10398
10409
|
get _currentRenderer() {
|
|
10399
10410
|
return (0, _univerjs_engine_render.getCurrentTypeOfRenderer)(_univerjs_core.UniverInstanceType.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService);
|
|
@@ -10421,10 +10432,13 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10421
10432
|
if (!param) return;
|
|
10422
10433
|
const { position, documentLayoutObject, canvasOffset, scaleX, scaleY } = param;
|
|
10423
10434
|
const { startX, startY, endX, endY } = position;
|
|
10435
|
+
const cellWidth = endX - startX;
|
|
10436
|
+
const cellHeight = endY - startY;
|
|
10424
10437
|
const documentDataModel = this._univerInstanceService.getUnit(_univerjs_core.DOCS_NORMAL_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
10425
10438
|
if (documentDataModel == null) return;
|
|
10426
10439
|
const documentSkeleton = this._getEditorSkeleton();
|
|
10427
10440
|
if (!documentSkeleton) return;
|
|
10441
|
+
this._syncCellSize(cellWidth / scaleX, cellHeight / scaleY);
|
|
10428
10442
|
documentSkeleton.resetInitialWidth();
|
|
10429
10443
|
const info = this._predictingSize(position, canvasOffset, documentSkeleton, documentLayoutObject, scaleX, scaleY);
|
|
10430
10444
|
if (!info || info.actualWidth <= 0) return;
|
|
@@ -10432,17 +10446,17 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10432
10446
|
const { verticalAlign, horizontalAlign, paddingData, fill } = documentLayoutObject;
|
|
10433
10447
|
actualWidth = actualWidth + (paddingData.l ?? 0) * scaleX + (paddingData.r ?? 0) * scaleX;
|
|
10434
10448
|
actualHeight = actualHeight + (paddingData.t ?? 0) * scaleY + (paddingData.b ?? 0) * scaleY;
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10449
|
+
const contentWidth = cellWidth < actualWidth ? Math.ceil(actualWidth) : cellWidth;
|
|
10450
|
+
const contentHeight = cellHeight < actualHeight ? Math.ceil(actualHeight) : cellHeight;
|
|
10451
|
+
const editorWidth = Math.max(contentWidth, Math.min(this._editorWidth * scaleX, info.maxSize.width));
|
|
10452
|
+
const editorHeight = Math.max(contentHeight, Math.min(this._editorHeight * scaleY, info.maxSize.height));
|
|
10439
10453
|
let offsetTop = 0;
|
|
10440
10454
|
if (verticalAlign === _univerjs_core.VerticalAlign.MIDDLE) offsetTop = (editorHeight - actualHeight) / 2 / scaleY;
|
|
10441
10455
|
else if (verticalAlign === _univerjs_core.VerticalAlign.TOP) offsetTop = paddingData.t || 0;
|
|
10442
10456
|
else offsetTop = (editorHeight - actualHeight) / scaleY;
|
|
10443
10457
|
let offsetLeft = 0;
|
|
10444
|
-
if (horizontalAlign === _univerjs_core.HorizontalAlign.
|
|
10445
|
-
else offsetLeft = paddingData.l || 0;
|
|
10458
|
+
if (horizontalAlign === _univerjs_core.HorizontalAlign.RIGHT) offsetLeft = (editorWidth - actualWidth) / scaleX;
|
|
10459
|
+
else if (horizontalAlign !== _univerjs_core.HorizontalAlign.CENTER) offsetLeft = paddingData.l || 0;
|
|
10446
10460
|
offsetTop = Math.max(offsetTop, paddingData.t || 0);
|
|
10447
10461
|
offsetLeft = Math.max(offsetLeft, paddingData.l || 0);
|
|
10448
10462
|
documentDataModel.updateDocumentDataMargin({
|
|
@@ -10450,7 +10464,22 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10450
10464
|
l: offsetLeft
|
|
10451
10465
|
});
|
|
10452
10466
|
documentSkeleton.calculate();
|
|
10453
|
-
this._editAreaProcessing(
|
|
10467
|
+
this._editAreaProcessing({
|
|
10468
|
+
width: editorWidth,
|
|
10469
|
+
height: editorHeight,
|
|
10470
|
+
contentWidth
|
|
10471
|
+
}, position, canvasOffset, fill, scaleX, scaleY, horizontalAlign, callback);
|
|
10472
|
+
}
|
|
10473
|
+
_syncCellSize(width, height) {
|
|
10474
|
+
if (this._cellSize && (Math.abs(this._cellSize.width - width) > 1e-6 || Math.abs(this._cellSize.height - height) > 1e-6)) {
|
|
10475
|
+
var _this$_initialEditorS, _this$_initialEditorS2;
|
|
10476
|
+
this._editorWidth = ((_this$_initialEditorS = this._initialEditorSize) === null || _this$_initialEditorS === void 0 ? void 0 : _this$_initialEditorS.width) ?? 0;
|
|
10477
|
+
this._editorHeight = ((_this$_initialEditorS2 = this._initialEditorSize) === null || _this$_initialEditorS2 === void 0 ? void 0 : _this$_initialEditorS2.height) ?? 0;
|
|
10478
|
+
}
|
|
10479
|
+
this._cellSize = {
|
|
10480
|
+
width,
|
|
10481
|
+
height
|
|
10482
|
+
};
|
|
10454
10483
|
}
|
|
10455
10484
|
/**
|
|
10456
10485
|
* Mainly used to pre-calculate the width of the editor,
|
|
@@ -10461,25 +10490,26 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10461
10490
|
const { textRotation, wrapStrategy, paddingData } = documentLayoutObject;
|
|
10462
10491
|
const documentDataModel = this._univerInstanceService.getUnit(_univerjs_core.DOCS_NORMAL_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
10463
10492
|
const { vertexAngle: angle } = (0, _univerjs_engine_render.convertTextRotation)(textRotation);
|
|
10493
|
+
const maxSize = this._getEditorMaxSize(actualRangeWithCoord, canvasOffset, documentLayoutObject.horizontalAlign);
|
|
10494
|
+
if (!maxSize) return;
|
|
10495
|
+
documentDataModel === null || documentDataModel === void 0 || documentDataModel.updateDocumentDataMargin({
|
|
10496
|
+
l: paddingData.l,
|
|
10497
|
+
t: paddingData.t
|
|
10498
|
+
});
|
|
10464
10499
|
if (wrapStrategy === _univerjs_core.WrapStrategy.WRAP && angle === 0) {
|
|
10465
10500
|
documentDataModel === null || documentDataModel === void 0 || documentDataModel.updateDocumentDataPageSize((endX - startX) / scaleX);
|
|
10466
|
-
documentDataModel === null || documentDataModel === void 0 || documentDataModel.updateDocumentDataMargin({
|
|
10467
|
-
l: paddingData.l,
|
|
10468
|
-
t: paddingData.t
|
|
10469
|
-
});
|
|
10470
10501
|
documentSkeleton.calculate();
|
|
10471
10502
|
const { actualWidth, actualHeight } = documentSkeleton.getActualSize();
|
|
10472
10503
|
return {
|
|
10473
10504
|
actualWidth: actualWidth * scaleX,
|
|
10474
|
-
actualHeight: actualHeight * scaleY
|
|
10505
|
+
actualHeight: actualHeight * scaleY,
|
|
10506
|
+
maxSize
|
|
10475
10507
|
};
|
|
10476
10508
|
}
|
|
10477
|
-
const maxSize = this._getEditorMaxSize(actualRangeWithCoord, canvasOffset, documentLayoutObject.horizontalAlign);
|
|
10478
|
-
if (!maxSize) return;
|
|
10479
10509
|
documentDataModel === null || documentDataModel === void 0 || documentDataModel.updateDocumentDataPageSize(maxSize.width / scaleX);
|
|
10480
10510
|
documentSkeleton.calculate();
|
|
10481
10511
|
const size = documentSkeleton.getActualSize();
|
|
10482
|
-
let editorWidth = endX - startX;
|
|
10512
|
+
let editorWidth = Math.max(endX - startX, Math.min(this._editorWidth * scaleX, maxSize.width));
|
|
10483
10513
|
if (editorWidth < size.actualWidth * scaleX + EDITOR_INPUT_SELF_EXTEND_GAP * scaleX) editorWidth = size.actualWidth * scaleX + EDITOR_INPUT_SELF_EXTEND_GAP * scaleX;
|
|
10484
10514
|
documentDataModel === null || documentDataModel === void 0 || documentDataModel.updateDocumentDataPageSize(editorWidth / scaleX);
|
|
10485
10515
|
/**
|
|
@@ -10491,7 +10521,8 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10491
10521
|
});
|
|
10492
10522
|
return {
|
|
10493
10523
|
actualWidth: size.actualWidth * scaleX,
|
|
10494
|
-
actualHeight: size.actualHeight * scaleY
|
|
10524
|
+
actualHeight: size.actualHeight * scaleY,
|
|
10525
|
+
maxSize
|
|
10495
10526
|
};
|
|
10496
10527
|
}
|
|
10497
10528
|
_getEditorMaxSize(position, canvasOffset, horizontalAlign) {
|
|
@@ -10537,7 +10568,7 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10537
10568
|
* determine whether a scrollbar appears,
|
|
10538
10569
|
* and calculate the editor's boundaries relative to the browser.
|
|
10539
10570
|
*/
|
|
10540
|
-
_editAreaProcessing(
|
|
10571
|
+
_editAreaProcessing(size, actualRangeWithCoord, canvasOffset, fill, scaleX = 1, scaleY = 1, horizontalAlign, callback) {
|
|
10541
10572
|
const editorObject = this._getEditorObject();
|
|
10542
10573
|
if (editorObject == null) return;
|
|
10543
10574
|
const engine = this.engine;
|
|
@@ -10545,25 +10576,16 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10545
10576
|
const canvasElement = engine.getCanvasElement();
|
|
10546
10577
|
let { startX, startY } = actualRangeWithCoord;
|
|
10547
10578
|
const { document: documentComponent, scene: editorScene, engine: docEngine } = editorObject;
|
|
10548
|
-
const viewportMain = editorScene.getViewport(_univerjs_docs_ui.VIEWPORT_KEY.VIEW_MAIN);
|
|
10549
10579
|
const { height: clientHeight, width: clientWidth, contentScaleX, contentScaleY, scaleAdjustX, scaleAdjustY } = this._getEditorMaxSize(actualRangeWithCoord, canvasOffset, horizontalAlign);
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
physicHeight = clientHeight;
|
|
10560
|
-
} else {
|
|
10561
|
-
var _viewportMain$getScro;
|
|
10562
|
-
scrollBar = null;
|
|
10563
|
-
viewportMain === null || viewportMain === void 0 || (_viewportMain$getScro = viewportMain.getScrollBar()) === null || _viewportMain$getScro === void 0 || _viewportMain$getScro.dispose();
|
|
10564
|
-
}
|
|
10565
|
-
editorWidth += (scrollBar === null || scrollBar === void 0 ? void 0 : scrollBar.barSize) || 0;
|
|
10566
|
-
if (editorWidth > clientWidth) editorWidth = clientWidth;
|
|
10580
|
+
const { physicHeight, scrollBarWidth } = this._fitEditorViewport(editorScene, size.height, clientHeight);
|
|
10581
|
+
const editorWidth = Math.min(Math.max(size.width, size.contentWidth + scrollBarWidth), clientWidth);
|
|
10582
|
+
const editorHeight = size.height;
|
|
10583
|
+
this._editorWidth = Math.max(this._editorWidth, editorWidth / scaleX);
|
|
10584
|
+
this._editorHeight = Math.max(this._editorHeight, physicHeight / scaleY);
|
|
10585
|
+
if (!this._initialEditorSize && this._editorBridgeService.isVisible().visible) this._initialEditorSize = {
|
|
10586
|
+
width: editorWidth / scaleX,
|
|
10587
|
+
height: physicHeight / scaleY
|
|
10588
|
+
};
|
|
10567
10589
|
this._addBackground(editorScene, editorWidth / scaleX, editorHeight / scaleY, fill);
|
|
10568
10590
|
const { scaleX: precisionScaleX, scaleY: precisionScaleY } = editorScene.getPrecisionScale();
|
|
10569
10591
|
editorScene.transformByState({
|
|
@@ -10573,11 +10595,6 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10573
10595
|
scaleY: scaleY * scaleAdjustY
|
|
10574
10596
|
});
|
|
10575
10597
|
documentComponent.resize(editorWidth * scaleAdjustX / scaleX, editorHeight * scaleAdjustY / scaleY);
|
|
10576
|
-
/**
|
|
10577
|
-
* sometimes requestIdleCallback is invalid, so use setTimeout to ensure the successful execution of the resizeBySize method.
|
|
10578
|
-
* resize canvas
|
|
10579
|
-
* When modifying the selection area for a formula, it is necessary to add a setTimeout to ensure successful updating.
|
|
10580
|
-
*/
|
|
10581
10598
|
setTimeout(() => {
|
|
10582
10599
|
docEngine.resizeBySize((0, _univerjs_engine_render.fixLineWidthByScale)(editorWidth, precisionScaleX), (0, _univerjs_engine_render.fixLineWidthByScale)(physicHeight, precisionScaleY));
|
|
10583
10600
|
callback === null || callback === void 0 || callback();
|
|
@@ -10597,6 +10614,26 @@ let SheetCellEditorResizeService = class SheetCellEditorResizeService extends _u
|
|
|
10597
10614
|
show: true
|
|
10598
10615
|
});
|
|
10599
10616
|
}
|
|
10617
|
+
_fitEditorViewport(editorScene, editorHeight, clientHeight) {
|
|
10618
|
+
const viewportMain = editorScene.getViewport(_univerjs_docs_ui.VIEWPORT_KEY.VIEW_MAIN);
|
|
10619
|
+
let scrollBar = viewportMain === null || viewportMain === void 0 ? void 0 : viewportMain.getScrollBar();
|
|
10620
|
+
if (editorHeight > clientHeight) {
|
|
10621
|
+
if (scrollBar == null) viewportMain && new _univerjs_engine_render.ScrollBar(viewportMain, {
|
|
10622
|
+
enableHorizontal: false,
|
|
10623
|
+
barSize: 8
|
|
10624
|
+
});
|
|
10625
|
+
else viewportMain === null || viewportMain === void 0 || viewportMain.resetCanvasSizeAndUpdateScroll();
|
|
10626
|
+
viewportMain === null || viewportMain === void 0 || viewportMain.scrollToViewportPos({ viewportScrollY: editorHeight - clientHeight });
|
|
10627
|
+
} else {
|
|
10628
|
+
var _viewportMain$getScro;
|
|
10629
|
+
scrollBar = null;
|
|
10630
|
+
viewportMain === null || viewportMain === void 0 || (_viewportMain$getScro = viewportMain.getScrollBar()) === null || _viewportMain$getScro === void 0 || _viewportMain$getScro.dispose();
|
|
10631
|
+
}
|
|
10632
|
+
return {
|
|
10633
|
+
physicHeight: Math.min(editorHeight, clientHeight),
|
|
10634
|
+
scrollBarWidth: (scrollBar === null || scrollBar === void 0 ? void 0 : scrollBar.barSize) ?? 0
|
|
10635
|
+
};
|
|
10636
|
+
}
|
|
10600
10637
|
_getEditorContentElement() {
|
|
10601
10638
|
var _this$_embedFloatingG;
|
|
10602
10639
|
return ((_this$_embedFloatingG = this._embedFloatingGeometryService) === null || _this$_embedFloatingG === void 0 || (_this$_embedFloatingG = _this$_embedFloatingG.getRegistrationByChildUnitId(this._editingUnitId)) === null || _this$_embedFloatingG === void 0 ? void 0 : _this$_embedFloatingG.contentRoot) ?? this._layoutService.getContentElement();
|
|
@@ -14685,6 +14722,7 @@ let HeaderFreezeRenderController = class HeaderFreezeRenderController extends _u
|
|
|
14685
14722
|
if (row === -1 || row === 0) isTopView = false;
|
|
14686
14723
|
if (column === -1 || column === 0) isLeftView = false;
|
|
14687
14724
|
const startSheetView = skeleton.getNoMergeCellWithCoordByIndex(row - ySplit, column - xSplit, false);
|
|
14725
|
+
if (isTopView && row === ySplit) startSheetView.startY = 0;
|
|
14688
14726
|
const endSheetView = skeleton.getNoMergeCellWithCoordByIndex(row, column, false);
|
|
14689
14727
|
viewMainLeftTop.disable();
|
|
14690
14728
|
viewMainTop.disable();
|
|
@@ -14917,6 +14955,10 @@ let HeaderFreezeRenderController = class HeaderFreezeRenderController extends _u
|
|
|
14917
14955
|
* When switching sheet tabs, it is necessary to update the frozen state of the current view.
|
|
14918
14956
|
*/
|
|
14919
14957
|
_skeletonListener() {
|
|
14958
|
+
this.disposeWithMe(this._sheetSkeletonManagerService.currentSkeleton$.pipe((0, rxjs.switchMap)((param) => {
|
|
14959
|
+
var _param$skeleton;
|
|
14960
|
+
return (param === null || param === void 0 || (_param$skeleton = param.skeleton) === null || _param$skeleton === void 0 ? void 0 : _param$skeleton.gapConfigChanged$) ?? rxjs.EMPTY;
|
|
14961
|
+
})).subscribe(() => this._refreshCurrent()));
|
|
14920
14962
|
this.disposeWithMe((0, _univerjs_core.toDisposable)(this._sheetSkeletonManagerService.currentSkeleton$.subscribe((param) => {
|
|
14921
14963
|
if ([
|
|
14922
14964
|
_univerjs_sheets.SetWorksheetActiveOperation.id,
|
|
@@ -17452,51 +17494,51 @@ const BORDER_LINE_CHILDREN = [
|
|
|
17452
17494
|
];
|
|
17453
17495
|
const BORDER_SIZE_CHILDREN = [
|
|
17454
17496
|
{
|
|
17455
|
-
label:
|
|
17497
|
+
label: "sheets-ui.borderStyle.thin",
|
|
17456
17498
|
value: _univerjs_core.BorderStyleTypes.THIN
|
|
17457
17499
|
},
|
|
17458
17500
|
{
|
|
17459
|
-
label:
|
|
17501
|
+
label: "sheets-ui.borderStyle.hair",
|
|
17460
17502
|
value: _univerjs_core.BorderStyleTypes.HAIR
|
|
17461
17503
|
},
|
|
17462
17504
|
{
|
|
17463
|
-
label:
|
|
17505
|
+
label: "sheets-ui.borderStyle.dotted",
|
|
17464
17506
|
value: _univerjs_core.BorderStyleTypes.DOTTED
|
|
17465
17507
|
},
|
|
17466
17508
|
{
|
|
17467
|
-
label:
|
|
17509
|
+
label: "sheets-ui.borderStyle.dashed",
|
|
17468
17510
|
value: _univerjs_core.BorderStyleTypes.DASHED
|
|
17469
17511
|
},
|
|
17470
17512
|
{
|
|
17471
|
-
label:
|
|
17513
|
+
label: "sheets-ui.borderStyle.dashDot",
|
|
17472
17514
|
value: _univerjs_core.BorderStyleTypes.DASH_DOT
|
|
17473
17515
|
},
|
|
17474
17516
|
{
|
|
17475
|
-
label:
|
|
17517
|
+
label: "sheets-ui.borderStyle.dashDotDot",
|
|
17476
17518
|
value: _univerjs_core.BorderStyleTypes.DASH_DOT_DOT
|
|
17477
17519
|
},
|
|
17478
17520
|
{
|
|
17479
|
-
label:
|
|
17521
|
+
label: "sheets-ui.borderStyle.medium",
|
|
17480
17522
|
value: _univerjs_core.BorderStyleTypes.MEDIUM
|
|
17481
17523
|
},
|
|
17482
17524
|
{
|
|
17483
|
-
label:
|
|
17525
|
+
label: "sheets-ui.borderStyle.mediumDashed",
|
|
17484
17526
|
value: _univerjs_core.BorderStyleTypes.MEDIUM_DASHED
|
|
17485
17527
|
},
|
|
17486
17528
|
{
|
|
17487
|
-
label:
|
|
17529
|
+
label: "sheets-ui.borderStyle.mediumDashDot",
|
|
17488
17530
|
value: _univerjs_core.BorderStyleTypes.MEDIUM_DASH_DOT
|
|
17489
17531
|
},
|
|
17490
17532
|
{
|
|
17491
|
-
label:
|
|
17533
|
+
label: "sheets-ui.borderStyle.mediumDashDotDot",
|
|
17492
17534
|
value: _univerjs_core.BorderStyleTypes.MEDIUM_DASH_DOT_DOT
|
|
17493
17535
|
},
|
|
17494
17536
|
{
|
|
17495
|
-
label:
|
|
17537
|
+
label: "sheets-ui.borderStyle.thick",
|
|
17496
17538
|
value: _univerjs_core.BorderStyleTypes.THICK
|
|
17497
17539
|
},
|
|
17498
17540
|
{
|
|
17499
|
-
label:
|
|
17541
|
+
label: "sheets-ui.borderStyle.double",
|
|
17500
17542
|
value: _univerjs_core.BorderStyleTypes.DOUBLE
|
|
17501
17543
|
}
|
|
17502
17544
|
];
|
|
@@ -19526,6 +19568,7 @@ function PasteRibbonMenuItemFactory(accessor) {
|
|
|
19526
19568
|
return {
|
|
19527
19569
|
...PasteSpacialMenuItemFactory(accessor),
|
|
19528
19570
|
id: PASTE_RIBBON_MENU_ID,
|
|
19571
|
+
icon: "DocPasteOptionsIcon",
|
|
19529
19572
|
title: "sheets-ui.rightClick.paste",
|
|
19530
19573
|
hidden$: (0, rxjs.combineLatest)([getObservableWithExclusiveRange$(accessor, (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET)), accessor.get(_univerjs_core.IContextService).subscribeContextValue$(_univerjs_core.FOCUSING_SHAPE_TEXT_EDITOR).pipe((0, rxjs.startWith)(false))]).pipe((0, rxjs.map)(([hidden, editing]) => hidden || editing))
|
|
19531
19574
|
};
|
|
@@ -19798,6 +19841,9 @@ function SetColWidthMenuItemFactory(accessor) {
|
|
|
19798
19841
|
//#endregion
|
|
19799
19842
|
//#region src/menu/merge.menu.ts
|
|
19800
19843
|
function CellMergeMenuItemFactory(accessor) {
|
|
19844
|
+
const commandService = accessor.get(_univerjs_core.ICommandService);
|
|
19845
|
+
const instanceService = accessor.get(_univerjs_core.IUniverInstanceService);
|
|
19846
|
+
const selectionService = accessor.get(_univerjs_sheets.SheetsSelectionsService);
|
|
19801
19847
|
const editDisabled$ = getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, {
|
|
19802
19848
|
workbookTypes: [_univerjs_sheets.WorkbookEditablePermission],
|
|
19803
19849
|
worksheetTypes: [
|
|
@@ -19813,6 +19859,22 @@ function CellMergeMenuItemFactory(accessor) {
|
|
|
19813
19859
|
icon: "MergeAllIcon",
|
|
19814
19860
|
tooltip: "sheets-ui.toolbar.mergeCell.main",
|
|
19815
19861
|
type: _univerjs_ui.MenuItemType.SUBITEMS,
|
|
19862
|
+
activated$: deriveStateFromActiveSheet$(instanceService, false, ({ worksheet }) => new rxjs.Observable((subscriber) => {
|
|
19863
|
+
const update = () => {
|
|
19864
|
+
var _selectionService$get;
|
|
19865
|
+
const primary = (_selectionService$get = selectionService.getCurrentLastSelection()) === null || _selectionService$get === void 0 ? void 0 : _selectionService$get.primary;
|
|
19866
|
+
subscriber.next(!!primary && !!worksheet.getMergedCell(primary.actualRow, primary.actualColumn));
|
|
19867
|
+
};
|
|
19868
|
+
const selectionSubscription = selectionService.selectionChanged$.subscribe(update);
|
|
19869
|
+
const commandDisposable = commandService.onCommandExecuted((command) => {
|
|
19870
|
+
if (command.id === _univerjs_sheets.AddWorksheetMergeMutation.id || command.id === _univerjs_sheets.RemoveWorksheetMergeMutation.id) update();
|
|
19871
|
+
});
|
|
19872
|
+
update();
|
|
19873
|
+
return () => {
|
|
19874
|
+
selectionSubscription.unsubscribe();
|
|
19875
|
+
commandDisposable.dispose();
|
|
19876
|
+
};
|
|
19877
|
+
})).pipe((0, rxjs.distinctUntilChanged)()),
|
|
19816
19878
|
hidden$: (0, rxjs.combineLatest)([(0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET), accessor.get(_univerjs_core.IContextService).subscribeContextValue$(_univerjs_core.FOCUSING_COMMON_DRAWINGS).pipe((0, rxjs.startWith)(false))]).pipe((0, rxjs.map)(([hidden, focusingDrawing]) => hidden || focusingDrawing)),
|
|
19817
19879
|
disabled$: editDisabled$.pipe((0, rxjs.combineLatestWith)(selectionsHasCross$), (0, rxjs.map)(([disable, hasCross]) => disable || hasCross))
|
|
19818
19880
|
};
|
|
@@ -20396,18 +20458,6 @@ function Text2NumberContextMenuItemFactory(accessor) {
|
|
|
20396
20458
|
};
|
|
20397
20459
|
}
|
|
20398
20460
|
|
|
20399
|
-
//#endregion
|
|
20400
|
-
//#region src/views/sheet-slider/SheetZoomInput.tsx
|
|
20401
|
-
const SHEET_ZOOM_INPUT_COMPONENT = "SHEET_ZOOM_INPUT_COMPONENT";
|
|
20402
|
-
function SheetZoomInput({ className, ...props }) {
|
|
20403
|
-
const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
|
|
20404
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_ui.ZoomInput, {
|
|
20405
|
-
...props,
|
|
20406
|
-
className: (0, _univerjs_design.clsx)("!univer-bg-transparent dark:!univer-bg-transparent", className),
|
|
20407
|
-
onChange: (value) => commandService.executeCommand(SetZoomRatioFromToolbarCommand.id, { value })
|
|
20408
|
-
});
|
|
20409
|
-
}
|
|
20410
|
-
|
|
20411
20461
|
//#endregion
|
|
20412
20462
|
//#region src/menu/zoom.menu.ts
|
|
20413
20463
|
const ZOOM_RATIO_MENU_ID = "sheet.menu.zoom-ratio";
|
|
@@ -20436,16 +20486,14 @@ function getZoomRatioValue$(accessor) {
|
|
|
20436
20486
|
function ZoomRatioMenuItemFactory(accessor) {
|
|
20437
20487
|
return {
|
|
20438
20488
|
id: ZOOM_RATIO_MENU_ID,
|
|
20439
|
-
|
|
20440
|
-
type: _univerjs_ui.MenuItemType.
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
}
|
|
20448
|
-
},
|
|
20489
|
+
selectionsCommandId: SetZoomRatioFromToolbarCommand.id,
|
|
20490
|
+
type: _univerjs_ui.MenuItemType.SELECTOR,
|
|
20491
|
+
icon: "ZoomInIcon",
|
|
20492
|
+
tooltip: "sheets-ui.toolbar.zoom",
|
|
20493
|
+
selections: ZOOM_RATIO_LIST.map((value) => ({
|
|
20494
|
+
value,
|
|
20495
|
+
label: `${value}%`
|
|
20496
|
+
})),
|
|
20449
20497
|
value$: getZoomRatioValue$(accessor),
|
|
20450
20498
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET)
|
|
20451
20499
|
};
|
|
@@ -20682,31 +20730,29 @@ const menuSchema = {
|
|
|
20682
20730
|
order: 1,
|
|
20683
20731
|
gridLayout: {
|
|
20684
20732
|
row: 1,
|
|
20685
|
-
column: 2
|
|
20686
|
-
width: 112
|
|
20733
|
+
column: 2
|
|
20687
20734
|
},
|
|
20688
20735
|
menuItemFactory: ZoomRatioMenuItemFactory
|
|
20736
|
+
}
|
|
20737
|
+
},
|
|
20738
|
+
[_univerjs_ui.RibbonViewGroup.VISIBILITY]: {
|
|
20739
|
+
[_univerjs_sheets.ToggleGridlinesCommand.id]: {
|
|
20740
|
+
order: 0,
|
|
20741
|
+
gridLayout: {
|
|
20742
|
+
row: 1,
|
|
20743
|
+
column: 1
|
|
20744
|
+
},
|
|
20745
|
+
menuItemFactory: ToggleGridlinesMenuFactory
|
|
20689
20746
|
},
|
|
20690
20747
|
[_univerjs_ui.ToggleFullscreenOperation.id]: {
|
|
20691
|
-
order:
|
|
20748
|
+
order: 1,
|
|
20692
20749
|
gridLayout: {
|
|
20693
20750
|
row: 2,
|
|
20694
|
-
column:
|
|
20695
|
-
showLabel: true,
|
|
20696
|
-
width: 112
|
|
20751
|
+
column: 1
|
|
20697
20752
|
},
|
|
20698
20753
|
menuItemFactory: FullscreenMenuItemFactory
|
|
20699
20754
|
}
|
|
20700
|
-
}
|
|
20701
|
-
[_univerjs_ui.RibbonViewGroup.VISIBILITY]: { [_univerjs_sheets.ToggleGridlinesCommand.id]: {
|
|
20702
|
-
order: 0,
|
|
20703
|
-
gridLayout: {
|
|
20704
|
-
row: 1,
|
|
20705
|
-
column: 1,
|
|
20706
|
-
showLabel: true
|
|
20707
|
-
},
|
|
20708
|
-
menuItemFactory: ToggleGridlinesMenuFactory
|
|
20709
|
-
} }
|
|
20755
|
+
}
|
|
20710
20756
|
},
|
|
20711
20757
|
[_univerjs_ui.ContextMenuPosition.MAIN_AREA]: {
|
|
20712
20758
|
[_univerjs_ui.ContextMenuGroup.QUICK]: {
|
|
@@ -22121,11 +22167,15 @@ function DefinedName({ disable }) {
|
|
|
22121
22167
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
22122
22168
|
ref: nameBoxRef,
|
|
22123
22169
|
"data-u-comp": "defined-name",
|
|
22170
|
+
onMouseDown: (e) => {
|
|
22171
|
+
if (disable) e.preventDefault();
|
|
22172
|
+
},
|
|
22124
22173
|
className: "univer-relative univer-box-border univer-flex univer-h-full univer-w-24 univer-border-r-gray-200 univer-py-1.5 univer-transition-all",
|
|
22125
22174
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
22126
22175
|
ref: inputRef,
|
|
22127
22176
|
className: (0, _univerjs_design.clsx)("univer-box-border univer-size-full univer-appearance-none univer-bg-transparent univer-pl-1.5 univer-pr-5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-text-gray-0", _univerjs_design.borderRightClassName, { "univer-cursor-not-allowed": disable }),
|
|
22128
22177
|
type: "text",
|
|
22178
|
+
disabled: disable,
|
|
22129
22179
|
value: inputValue,
|
|
22130
22180
|
onChange: handleChangeSelection,
|
|
22131
22181
|
onKeyDown: handleKeyDown,
|
|
@@ -22142,7 +22192,7 @@ function DefinedName({ disable }) {
|
|
|
22142
22192
|
})
|
|
22143
22193
|
}),
|
|
22144
22194
|
disabled: disable,
|
|
22145
|
-
open,
|
|
22195
|
+
open: !disable && open,
|
|
22146
22196
|
onOpenChange: setOpen,
|
|
22147
22197
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
22148
22198
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
@@ -22323,7 +22373,7 @@ function FormulaBar(props) {
|
|
|
22323
22373
|
children: [
|
|
22324
22374
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
22325
22375
|
className: "univer-relative univer-box-border univer-h-full univer-w-[100px]",
|
|
22326
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DefinedName, { disable: disableDefinedName ?? editDisable })
|
|
22376
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DefinedName, { disable: iconActivated || (disableDefinedName ?? editDisable) })
|
|
22327
22377
|
}),
|
|
22328
22378
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
22329
22379
|
className: "univer-flex univer-size-full",
|
|
@@ -23514,6 +23564,7 @@ function SheetBarTabs() {
|
|
|
23514
23564
|
const slideTabBarContainerRef = (0, react.useRef)(null);
|
|
23515
23565
|
const activeSheetIdRef = (0, react.useRef)(activeSheetId);
|
|
23516
23566
|
const commandService = (0, _univerjs_ui.useDependency)(_univerjs_core.ICommandService);
|
|
23567
|
+
const layoutService = (0, _univerjs_ui.useDependency)(_univerjs_ui.ILayoutService);
|
|
23517
23568
|
const renderManagerService = (0, _univerjs_ui.useDependency)(_univerjs_engine_render.IRenderManagerService);
|
|
23518
23569
|
const sheetBarService = (0, _univerjs_ui.useDependency)(ISheetBarService);
|
|
23519
23570
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -23699,6 +23750,7 @@ function SheetBarTabs() {
|
|
|
23699
23750
|
subUnitId,
|
|
23700
23751
|
unitId: workbookRef.current.getUnitId()
|
|
23701
23752
|
}).then((result) => {
|
|
23753
|
+
requestAnimationFrame(() => layoutService.focus(workbookRef.current.getUnitId()));
|
|
23702
23754
|
if (result !== false) return;
|
|
23703
23755
|
const worksheet = workbookRef.current.getSheetBySheetId(subUnitId);
|
|
23704
23756
|
if (worksheet) {
|
|
@@ -23706,7 +23758,11 @@ function SheetBarTabs() {
|
|
|
23706
23758
|
syncActiveSheetRender(subUnitId);
|
|
23707
23759
|
}
|
|
23708
23760
|
});
|
|
23709
|
-
}, [
|
|
23761
|
+
}, [
|
|
23762
|
+
commandService,
|
|
23763
|
+
layoutService,
|
|
23764
|
+
syncActiveSheetRender
|
|
23765
|
+
]);
|
|
23710
23766
|
const observeResize = (0, react.useCallback)((slideTabBar) => {
|
|
23711
23767
|
var _slideTabBarContainer;
|
|
23712
23768
|
const slideTabBarContainer = (_slideTabBarContainer = slideTabBarContainerRef.current) === null || _slideTabBarContainer === void 0 ? void 0 : _slideTabBarContainer.querySelector("[data-u-comp=slide-tab-bar]");
|
|
@@ -25016,7 +25072,7 @@ const useHighlightRange = (ranges = []) => {
|
|
|
25016
25072
|
//#endregion
|
|
25017
25073
|
//#region package.json
|
|
25018
25074
|
var name = "@univerjs/sheets-ui";
|
|
25019
|
-
var version = "1.0
|
|
25075
|
+
var version = "1.1.0";
|
|
25020
25076
|
|
|
25021
25077
|
//#endregion
|
|
25022
25078
|
//#region src/views/cell-popup/config.ts
|
|
@@ -25349,7 +25405,7 @@ function CellAlert({ popup, DropdownMenuComponent = _univerjs_design.DropdownMen
|
|
|
25349
25405
|
const [isHovered, setIsHovered] = (0, react.useState)(false);
|
|
25350
25406
|
const alert = (_popup$extraProps = popup.extraProps) === null || _popup$extraProps === void 0 ? void 0 : _popup$extraProps.alert;
|
|
25351
25407
|
if (!alert) return null;
|
|
25352
|
-
const { type, title, message, menu } = alert;
|
|
25408
|
+
const { type, title, message, menu, action, width } = alert;
|
|
25353
25409
|
if (menu === null || menu === void 0 ? void 0 : menu.length) {
|
|
25354
25410
|
const accessibleLabel = [title, message].filter((value) => typeof value === "string").join(": ");
|
|
25355
25411
|
const showMore = visible || isHovered;
|
|
@@ -25389,14 +25445,24 @@ function CellAlert({ popup, DropdownMenuComponent = _univerjs_design.DropdownMen
|
|
|
25389
25445
|
[1]: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.WarningIcon, { className: "univer-text-yellow-500" })
|
|
25390
25446
|
};
|
|
25391
25447
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25448
|
+
style: { width },
|
|
25449
|
+
className: "univer-z-[100] univer-box-border univer-rounded-lg univer-bg-gray-0 univer-px-2 univer-py-1 univer-text-gray-900 univer-shadow dark:!univer-bg-gray-1000 dark:!univer-text-gray-0",
|
|
25450
|
+
children: [
|
|
25451
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25452
|
+
className: "univer-mb-1.5 univer-flex univer-h-5 univer-flex-row univer-items-center univer-gap-x-1.5 univer-text-sm univer-font-medium",
|
|
25453
|
+
children: [type ? iconMap[type] : null, title]
|
|
25454
|
+
}),
|
|
25455
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25456
|
+
className: "univer-text-sm",
|
|
25457
|
+
children: message
|
|
25458
|
+
}),
|
|
25459
|
+
action && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
25460
|
+
className: "univer-mt-2",
|
|
25461
|
+
disabled: action.disabled,
|
|
25462
|
+
onClick: action.onSelect,
|
|
25463
|
+
children: action.label
|
|
25464
|
+
})
|
|
25465
|
+
]
|
|
25400
25466
|
});
|
|
25401
25467
|
}
|
|
25402
25468
|
|
|
@@ -25424,15 +25490,17 @@ let CellAlertManagerService = class CellAlertManagerService extends _univerjs_co
|
|
|
25424
25490
|
_defineProperty(this, "_currentAlert", /* @__PURE__ */ new Map());
|
|
25425
25491
|
_defineProperty(this, "currentAlert$", this._currentAlert$.asObservable());
|
|
25426
25492
|
this.disposeWithMe(() => {
|
|
25493
|
+
this.clearAlert();
|
|
25427
25494
|
this._currentAlert$.complete();
|
|
25428
25495
|
});
|
|
25429
25496
|
}
|
|
25430
25497
|
showAlert(alert) {
|
|
25431
25498
|
var _alert$menu, _alert$menu2, _alert$menu3;
|
|
25432
25499
|
let lastPopup = this._currentAlert.get(alert.key);
|
|
25433
|
-
if (lastPopup)
|
|
25434
|
-
|
|
25435
|
-
|
|
25500
|
+
if (lastPopup) {
|
|
25501
|
+
lastPopup.dispose.dispose();
|
|
25502
|
+
lastPopup.alert = alert;
|
|
25503
|
+
} else {
|
|
25436
25504
|
lastPopup = {
|
|
25437
25505
|
alert,
|
|
25438
25506
|
dispose: { dispose() {} }
|
|
@@ -25455,13 +25523,7 @@ let CellAlertManagerService = class CellAlertManagerService extends _univerjs_co
|
|
|
25455
25523
|
extraProps: { alert },
|
|
25456
25524
|
priority: 1
|
|
25457
25525
|
});
|
|
25458
|
-
if (disposable)
|
|
25459
|
-
if (lastPopup) {
|
|
25460
|
-
var _lastPopup$dispose;
|
|
25461
|
-
(_lastPopup$dispose = lastPopup.dispose) === null || _lastPopup$dispose === void 0 || _lastPopup$dispose.dispose();
|
|
25462
|
-
}
|
|
25463
|
-
lastPopup.dispose = disposable;
|
|
25464
|
-
}
|
|
25526
|
+
if (disposable) lastPopup.dispose = disposable;
|
|
25465
25527
|
this._currentAlert$.next(Array.from(this._currentAlert.entries()));
|
|
25466
25528
|
}
|
|
25467
25529
|
removeAlert(key) {
|
|
@@ -26313,8 +26375,8 @@ function SelectList(props) {
|
|
|
26313
26375
|
const filteredOptions = (0, react.useMemo)(() => {
|
|
26314
26376
|
return options.filter((item) => lowerFilter ? item.label.toLowerCase().includes(lowerFilter) : true);
|
|
26315
26377
|
}, [options, lowerFilter]);
|
|
26316
|
-
const handleSearchChange = (
|
|
26317
|
-
setLowerFilter(
|
|
26378
|
+
const handleSearchChange = (value) => {
|
|
26379
|
+
setLowerFilter(value.toLowerCase());
|
|
26318
26380
|
};
|
|
26319
26381
|
const sheetPermissionCheckController = (0, _univerjs_ui.useDependency)(_univerjs_sheets.SheetPermissionCheckController);
|
|
26320
26382
|
const hasPermission = (0, react.useMemo)(() => sheetPermissionCheckController.permissionCheckWithRanges({
|
|
@@ -26340,9 +26402,8 @@ function SelectList(props) {
|
|
|
26340
26402
|
children: [
|
|
26341
26403
|
showSearchOnDropdown && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
26342
26404
|
className: "univer-box-border univer-flex univer-w-full univer-px-2",
|
|
26343
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
26405
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
|
|
26344
26406
|
ref: searchRef,
|
|
26345
|
-
className: (0, _univerjs_design.clsx)("univer-w-full univer-rounded-md univer-bg-gray-0 univer-px-2 univer-py-1 univer-text-sm univer-text-gray-900 focus:univer-border-primary-500 focus:univer-outline-none dark:!univer-bg-gray-1000 dark:!univer-text-gray-0", _univerjs_design.borderClassName),
|
|
26346
26407
|
type: "text",
|
|
26347
26408
|
value: lowerFilter,
|
|
26348
26409
|
autoFocus: true,
|
|
@@ -26371,14 +26432,16 @@ function SelectList(props) {
|
|
|
26371
26432
|
const index = item.label.toLocaleLowerCase().indexOf(lowerFilter);
|
|
26372
26433
|
const isThemeColor = Boolean(((_item$color = item.color) === null || _item$color === void 0 ? void 0 : _item$color.includes(".")) && themeService.isValidThemeColor(item.color));
|
|
26373
26434
|
const backgroundColor = isThemeColor ? themeService.getColorFromTheme(item.color) : item.color;
|
|
26374
|
-
const
|
|
26435
|
+
const color = new _univerjs_core.ColorKit(backgroundColor);
|
|
26436
|
+
const hasBackground = Boolean(backgroundColor) && backgroundColor !== "transparent" && color.getAlpha() > 0;
|
|
26437
|
+
const isDark = color.isDark();
|
|
26375
26438
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
26376
26439
|
className: "univer-flex univer-cursor-pointer univer-flex-row univer-items-center univer-justify-between univer-rounded-md univer-px-1.5 univer-py-1 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-700",
|
|
26377
26440
|
onClick: handleClick,
|
|
26378
26441
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
26379
26442
|
className: (0, _univerjs_design.clsx)("univer-inline-flex univer-h-4 univer-w-fit univer-items-center univer-truncate univer-rounded-full univer-px-1.5 univer-text-xs", {
|
|
26380
|
-
"univer-text-gray-900": isThemeColor || !isDark,
|
|
26381
|
-
"univer-text-gray-0": !isThemeColor && isDark
|
|
26443
|
+
"univer-text-gray-900": hasBackground && (isThemeColor || !isDark),
|
|
26444
|
+
"univer-text-gray-0": hasBackground && !isThemeColor && isDark
|
|
26382
26445
|
}),
|
|
26383
26446
|
style: { background: backgroundColor },
|
|
26384
26447
|
children: lowerFilter && item.label.toLowerCase().includes(lowerFilter) ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
@@ -27043,6 +27106,7 @@ function BorderLine(props) {
|
|
|
27043
27106
|
//#endregion
|
|
27044
27107
|
//#region src/views/border-panel/BorderPanel.tsx
|
|
27045
27108
|
function BorderPanel(props) {
|
|
27109
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
27046
27110
|
const iconManager = (0, _univerjs_ui.useDependency)(_univerjs_ui.IconManager);
|
|
27047
27111
|
const selectionManagerService = (0, _univerjs_ui.useDependency)(_univerjs_sheets.SheetsSelectionsService);
|
|
27048
27112
|
const { direction } = (0, react.useContext)(_univerjs_design.ConfigContext);
|
|
@@ -27108,7 +27172,7 @@ function BorderPanel(props) {
|
|
|
27108
27172
|
className: "univer-m-0 univer-grid univer-list-none univer-gap-1 univer-p-0",
|
|
27109
27173
|
children: BORDER_SIZE_CHILDREN.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
27110
27174
|
type: "button",
|
|
27111
|
-
"aria-label":
|
|
27175
|
+
"aria-label": localeService.t(item.label),
|
|
27112
27176
|
"aria-pressed": item.value === value.style,
|
|
27113
27177
|
className: (0, _univerjs_design.clsx)("univer-flex univer-w-full univer-cursor-pointer univer-items-center univer-justify-center univer-rounded univer-border-none univer-bg-transparent univer-px-1 univer-py-3 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700", { "univer-bg-gray-200 dark:!univer-bg-gray-600": item.value === value.style }),
|
|
27114
27178
|
onClick: () => handleClick(item.value, "style"),
|
|
@@ -27656,16 +27720,35 @@ function MobileMenuItemInput(props) {
|
|
|
27656
27720
|
const { prefix, suffix, value, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER, disabled$, onChange } = props;
|
|
27657
27721
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
27658
27722
|
const disabled = (0, _univerjs_ui.useObservable)(disabled$ ?? null, false);
|
|
27659
|
-
const
|
|
27723
|
+
const [draft, setDraft] = (0, react.useState)(null);
|
|
27724
|
+
const inputValue = draft !== null && draft.source === value ? draft.value : Math.min(max, Math.max(min, Number(value)));
|
|
27725
|
+
if (draft !== null && draft.source !== value) setDraft(null);
|
|
27660
27726
|
function handleChange(nextValue) {
|
|
27661
|
-
|
|
27727
|
+
setDraft({
|
|
27728
|
+
source: value,
|
|
27729
|
+
value: nextValue
|
|
27730
|
+
});
|
|
27731
|
+
}
|
|
27732
|
+
function handleConfirm() {
|
|
27733
|
+
if (disabled || inputValue == null || !Number.isFinite(inputValue)) return;
|
|
27734
|
+
const nextValue = Math.min(max, Math.max(min, inputValue));
|
|
27735
|
+
setDraft({
|
|
27736
|
+
source: value,
|
|
27737
|
+
value: nextValue
|
|
27738
|
+
});
|
|
27662
27739
|
onChange(nextValue.toString());
|
|
27663
27740
|
}
|
|
27664
27741
|
function handleKeyDown(event) {
|
|
27742
|
+
if (event.key === "Escape" && !event.nativeEvent.isComposing) return;
|
|
27665
27743
|
event.stopPropagation();
|
|
27744
|
+
if (event.key === "Enter" && !event.nativeEvent.isComposing) {
|
|
27745
|
+
event.preventDefault();
|
|
27746
|
+
handleConfirm();
|
|
27747
|
+
}
|
|
27666
27748
|
}
|
|
27667
27749
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27668
|
-
className: "univer-flex univer-min-w-0 univer-flex-1 univer-items-center univer-gap-2",
|
|
27750
|
+
className: "univer-flex univer-min-w-0 univer-flex-1 univer-flex-wrap univer-items-center univer-gap-2",
|
|
27751
|
+
onClick: (event) => event.stopPropagation(),
|
|
27669
27752
|
children: [
|
|
27670
27753
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27671
27754
|
className: "univer-shrink-0 univer-text-base univer-font-medium",
|
|
@@ -27673,13 +27756,11 @@ function MobileMenuItemInput(props) {
|
|
|
27673
27756
|
}),
|
|
27674
27757
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27675
27758
|
className: "univer-w-20 univer-shrink-0",
|
|
27676
|
-
onClick: (event) => event.stopPropagation(),
|
|
27677
27759
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
|
|
27678
27760
|
value: inputValue,
|
|
27679
27761
|
size: "small",
|
|
27680
27762
|
precision: 0,
|
|
27681
|
-
|
|
27682
|
-
max,
|
|
27763
|
+
allowEmpty: true,
|
|
27683
27764
|
disabled,
|
|
27684
27765
|
onKeyDown: handleKeyDown,
|
|
27685
27766
|
onChange: handleChange
|
|
@@ -27688,6 +27769,15 @@ function MobileMenuItemInput(props) {
|
|
|
27688
27769
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
27689
27770
|
className: "univer-min-w-0 univer-truncate univer-text-base univer-font-medium",
|
|
27690
27771
|
children: localeService.t(suffix)
|
|
27772
|
+
}),
|
|
27773
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
27774
|
+
type: "button",
|
|
27775
|
+
variant: "primary",
|
|
27776
|
+
size: "large",
|
|
27777
|
+
className: "univer-shrink-0",
|
|
27778
|
+
disabled: disabled || inputValue == null || !Number.isFinite(inputValue),
|
|
27779
|
+
onClick: handleConfirm,
|
|
27780
|
+
children: localeService.t("sheets-ui.button.confirm")
|
|
27691
27781
|
})
|
|
27692
27782
|
]
|
|
27693
27783
|
});
|
|
@@ -28982,6 +29072,7 @@ const sheetsUIIcons = {
|
|
|
28982
29072
|
DeleteColumnDoubleIcon: _univerjs_icons.DeleteColumnDoubleIcon,
|
|
28983
29073
|
DeleteIcon: _univerjs_icons.DeleteIcon,
|
|
28984
29074
|
DeleteRowDoubleIcon: _univerjs_icons.DeleteRowDoubleIcon,
|
|
29075
|
+
DocPasteOptionsIcon: _univerjs_icons.DocPasteOptionsIcon,
|
|
28985
29076
|
DownBorderDoubleIcon: _univerjs_icons.DownBorderDoubleIcon,
|
|
28986
29077
|
DownloadImageIcon: _univerjs_icons.DownloadImageIcon,
|
|
28987
29078
|
EyeIcon: _univerjs_icons.EyeIcon,
|
|
@@ -29039,7 +29130,8 @@ const sheetsUIIcons = {
|
|
|
29039
29130
|
VerticalCenterIcon: _univerjs_icons.VerticalCenterIcon,
|
|
29040
29131
|
VerticalIntegrationIcon: _univerjs_icons.VerticalIntegrationIcon,
|
|
29041
29132
|
VerticalTextIcon: _univerjs_icons.VerticalTextIcon,
|
|
29042
|
-
WriteIcon: _univerjs_icons.WriteIcon
|
|
29133
|
+
WriteIcon: _univerjs_icons.WriteIcon,
|
|
29134
|
+
ZoomInIcon: _univerjs_icons.ZoomInIcon
|
|
29043
29135
|
};
|
|
29044
29136
|
|
|
29045
29137
|
//#endregion
|
|
@@ -29055,7 +29147,6 @@ let MobileComponentsController = class MobileComponentsController extends _unive
|
|
|
29055
29147
|
this.disposeWithMe(componentManager.register(CascaderDropdown.componentKey, CascaderDropdown));
|
|
29056
29148
|
this.disposeWithMe(componentManager.register(MENU_ITEM_INPUT_COMPONENT, MobileMenuItemInput));
|
|
29057
29149
|
this.disposeWithMe(componentManager.register(MENU_ITEM_FROZEN_COMPONENT, MenuItemFrozen));
|
|
29058
|
-
this.disposeWithMe(componentManager.register(SHEET_ZOOM_INPUT_COMPONENT, SheetZoomInput));
|
|
29059
29150
|
this.disposeWithMe(componentManager.register(BORDER_PANEL_COMPONENT, MobileBorderPanel));
|
|
29060
29151
|
this.disposeWithMe(componentManager.register(DEFINED_NAME_CONTAINER, MobileDefinedNameContainer));
|
|
29061
29152
|
this.disposeWithMe(componentManager.register(CELL_POPUP_COMPONENT_KEY, CellPopup));
|
|
@@ -30719,6 +30810,7 @@ function MobileBorderColorView(props) {
|
|
|
30719
30810
|
}
|
|
30720
30811
|
function MobileBorderStyleView(props) {
|
|
30721
30812
|
const { value, onExecute } = props;
|
|
30813
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
30722
30814
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
30723
30815
|
className: "univer-overflow-hidden univer-rounded-xl univer-bg-gray-0 dark:!univer-bg-gray-800",
|
|
30724
30816
|
children: BORDER_SIZE_CHILDREN.map((option, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
@@ -30738,7 +30830,7 @@ function MobileBorderStyleView(props) {
|
|
|
30738
30830
|
}),
|
|
30739
30831
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
30740
30832
|
className: "univer-flex-1 univer-text-left univer-text-sm",
|
|
30741
|
-
children: option.
|
|
30833
|
+
children: localeService.t(option.label)
|
|
30742
30834
|
}),
|
|
30743
30835
|
value.style === option.value && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.CheckMarkIcon, { className: "univer-text-primary-600 dark:!univer-text-primary-400" })
|
|
30744
30836
|
]
|
|
@@ -31283,7 +31375,11 @@ function MobileFormulaBar() {
|
|
|
31283
31375
|
let cursorFrame;
|
|
31284
31376
|
const contentFrame = requestAnimationFrame(() => {
|
|
31285
31377
|
editorBridgeService.refreshEditCellState();
|
|
31286
|
-
editorService.focus(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
31378
|
+
if (editorService.getFocusId() !== _univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY) editorService.focus(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
31379
|
+
else {
|
|
31380
|
+
var _editorService$getEdi;
|
|
31381
|
+
(_editorService$getEdi = editorService.getEditor(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY)) === null || _editorService$getEdi === void 0 || _editorService$getEdi.focus();
|
|
31382
|
+
}
|
|
31287
31383
|
cursorFrame = requestAnimationFrame(() => {
|
|
31288
31384
|
var _editor$getDocumentDa;
|
|
31289
31385
|
const editor = editorService.getEditor(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
@@ -31845,7 +31941,7 @@ const MobileFormulaBarSubmitCommand = {
|
|
|
31845
31941
|
id: MOBILE_FORMULA_BAR_SUBMIT_COMMAND_ID,
|
|
31846
31942
|
type: _univerjs_core.CommandType.COMMAND,
|
|
31847
31943
|
async handler(accessor) {
|
|
31848
|
-
var _accessor$get$getCurr, _workbook$getActiveSh, _formulaModel$getBody
|
|
31944
|
+
var _accessor$get$getCurr, _workbook$getActiveSh, _formulaModel$getBody;
|
|
31849
31945
|
const instanceService = accessor.get(_univerjs_core.IUniverInstanceService);
|
|
31850
31946
|
const workbook = instanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
31851
31947
|
const formulaModel = instanceService.getUnit(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
@@ -31877,8 +31973,12 @@ const MobileFormulaBarSubmitCommand = {
|
|
|
31877
31973
|
});
|
|
31878
31974
|
editorBridgeService.refreshEditCellState();
|
|
31879
31975
|
editorBridgeService.changeEditorDirty(false);
|
|
31976
|
+
const editorService = accessor.get(_univerjs_docs_ui.IEditorService);
|
|
31977
|
+
const formulaEditor = editorService.getEditor(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
31978
|
+
if (editorService.getFocusId() !== _univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY) editorService.focus(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
31979
|
+
else formulaEditor === null || formulaEditor === void 0 || formulaEditor.focus();
|
|
31880
31980
|
const endOffset = Math.max(0, (((_formulaModel$getBody = formulaModel.getBody()) === null || _formulaModel$getBody === void 0 ? void 0 : _formulaModel$getBody.dataStream.length) ?? 2) - 2);
|
|
31881
|
-
|
|
31981
|
+
formulaEditor === null || formulaEditor === void 0 || formulaEditor.setSelectionRanges([{
|
|
31882
31982
|
startOffset: endOffset,
|
|
31883
31983
|
endOffset
|
|
31884
31984
|
}], false);
|
|
@@ -31961,6 +32061,7 @@ let SheetUIMobileController = class SheetUIMobileController extends _univerjs_co
|
|
|
31961
32061
|
ScrollToRangeOperation,
|
|
31962
32062
|
_univerjs_sheets.SetUnderlineCommand,
|
|
31963
32063
|
SetZoomRatioCommand,
|
|
32064
|
+
SetZoomRatioFromToolbarCommand,
|
|
31964
32065
|
SetZoomRatioOperation,
|
|
31965
32066
|
ShowMenuListCommand,
|
|
31966
32067
|
InsertRangeMoveDownConfirmCommand,
|
|
@@ -32971,11 +33072,7 @@ let MobileCellEditRenderController = class MobileCellEditRenderController extend
|
|
|
32971
33072
|
this._commandService.syncExecuteCommand(SetCellEditVisibleOperation.id, {
|
|
32972
33073
|
visible: true,
|
|
32973
33074
|
eventType: _univerjs_engine_render.DeviceInputEventType.Dblclick,
|
|
32974
|
-
unitId: this._context.unitId
|
|
32975
|
-
pointerPosition: {
|
|
32976
|
-
x: cell.event.clientX,
|
|
32977
|
-
y: cell.event.clientY
|
|
32978
|
-
}
|
|
33075
|
+
unitId: this._context.unitId
|
|
32979
33076
|
});
|
|
32980
33077
|
}));
|
|
32981
33078
|
this.disposeWithMe(hoverManagerService.currentPointerDownCell$.subscribe((cell) => {
|
|
@@ -35466,7 +35563,6 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
35466
35563
|
const componentManager = this._componentManager;
|
|
35467
35564
|
this.disposeWithMe(componentManager.register(MENU_ITEM_INPUT_COMPONENT, MenuItemInput));
|
|
35468
35565
|
this.disposeWithMe(componentManager.register(MENU_ITEM_FROZEN_COMPONENT, MenuItemFrozen));
|
|
35469
|
-
this.disposeWithMe(componentManager.register(SHEET_ZOOM_INPUT_COMPONENT, SheetZoomInput));
|
|
35470
35566
|
this.disposeWithMe(componentManager.register(BORDER_PANEL_COMPONENT, BorderPanel));
|
|
35471
35567
|
this.disposeWithMe(componentManager.register(DEFINED_NAME_CONTAINER, DefinedNameContainer));
|
|
35472
35568
|
this.disposeWithMe(componentManager.register(CELL_POPUP_COMPONENT_KEY, CellPopup));
|
|
@@ -36370,19 +36466,19 @@ exports.AddRangeProtectionFromSheetBarCommand = AddRangeProtectionFromSheetBarCo
|
|
|
36370
36466
|
exports.AddRangeProtectionFromToolbarCommand = AddRangeProtectionFromToolbarCommand;
|
|
36371
36467
|
exports.ApplyFormatPainterCommand = ApplyFormatPainterCommand;
|
|
36372
36468
|
exports.AutoFillPopupMenu = AutoFillPopupMenu;
|
|
36373
|
-
Object.defineProperty(exports,
|
|
36469
|
+
Object.defineProperty(exports, "AutoFillUIController", {
|
|
36374
36470
|
enumerable: true,
|
|
36375
36471
|
get: function () {
|
|
36376
36472
|
return AutoFillUIController;
|
|
36377
36473
|
}
|
|
36378
36474
|
});
|
|
36379
|
-
Object.defineProperty(exports,
|
|
36475
|
+
Object.defineProperty(exports, "AutoHeightController", {
|
|
36380
36476
|
enumerable: true,
|
|
36381
36477
|
get: function () {
|
|
36382
36478
|
return AutoHeightController;
|
|
36383
36479
|
}
|
|
36384
36480
|
});
|
|
36385
|
-
Object.defineProperty(exports,
|
|
36481
|
+
Object.defineProperty(exports, "AutoWidthController", {
|
|
36386
36482
|
enumerable: true,
|
|
36387
36483
|
get: function () {
|
|
36388
36484
|
return AutoWidthController;
|
|
@@ -36394,21 +36490,21 @@ exports.BaseSelectionRenderService = BaseSelectionRenderService;
|
|
|
36394
36490
|
exports.BorderLine = BorderLine;
|
|
36395
36491
|
exports.COPY_SPECIAL_MENU_ID = COPY_SPECIAL_MENU_ID;
|
|
36396
36492
|
exports.COPY_TYPE = COPY_TYPE;
|
|
36397
|
-
Object.defineProperty(exports,
|
|
36493
|
+
Object.defineProperty(exports, "CellAlertManagerService", {
|
|
36398
36494
|
enumerable: true,
|
|
36399
36495
|
get: function () {
|
|
36400
36496
|
return CellAlertManagerService;
|
|
36401
36497
|
}
|
|
36402
36498
|
});
|
|
36403
36499
|
exports.CellAlertType = CellAlertType;
|
|
36404
|
-
Object.defineProperty(exports,
|
|
36500
|
+
Object.defineProperty(exports, "CellCustomRenderController", {
|
|
36405
36501
|
enumerable: true,
|
|
36406
36502
|
get: function () {
|
|
36407
36503
|
return CellCustomRenderController;
|
|
36408
36504
|
}
|
|
36409
36505
|
});
|
|
36410
36506
|
exports.CellEditorManagerService = CellEditorManagerService;
|
|
36411
|
-
Object.defineProperty(exports,
|
|
36507
|
+
Object.defineProperty(exports, "CellPopupManagerService", {
|
|
36412
36508
|
enumerable: true,
|
|
36413
36509
|
get: function () {
|
|
36414
36510
|
return CellPopupManagerService;
|
|
@@ -36421,13 +36517,13 @@ exports.DeleteRangeMoveLeftConfirmCommand = DeleteRangeMoveLeftConfirmCommand;
|
|
|
36421
36517
|
exports.DeleteRangeMoveUpConfirmCommand = DeleteRangeMoveUpConfirmCommand;
|
|
36422
36518
|
exports.DeleteRangeProtectionFromContextMenuCommand = DeleteRangeProtectionFromContextMenuCommand;
|
|
36423
36519
|
exports.DeleteWorksheetProtectionFormSheetBarCommand = DeleteWorksheetProtectionFormSheetBarCommand;
|
|
36424
|
-
Object.defineProperty(exports,
|
|
36520
|
+
Object.defineProperty(exports, "DragManagerService", {
|
|
36425
36521
|
enumerable: true,
|
|
36426
36522
|
get: function () {
|
|
36427
36523
|
return DragManagerService;
|
|
36428
36524
|
}
|
|
36429
36525
|
});
|
|
36430
|
-
Object.defineProperty(exports,
|
|
36526
|
+
Object.defineProperty(exports, "DragRenderController", {
|
|
36431
36527
|
enumerable: true,
|
|
36432
36528
|
get: function () {
|
|
36433
36529
|
return DragRenderController;
|
|
@@ -36435,13 +36531,13 @@ Object.defineProperty(exports, 'DragRenderController', {
|
|
|
36435
36531
|
});
|
|
36436
36532
|
exports.EMBEDDING_FORMULA_EDITOR = EMBEDDING_FORMULA_EDITOR;
|
|
36437
36533
|
exports.EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY = EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY;
|
|
36438
|
-
Object.defineProperty(exports,
|
|
36534
|
+
Object.defineProperty(exports, "EditingRenderController", {
|
|
36439
36535
|
enumerable: true,
|
|
36440
36536
|
get: function () {
|
|
36441
36537
|
return EditingRenderController;
|
|
36442
36538
|
}
|
|
36443
36539
|
});
|
|
36444
|
-
Object.defineProperty(exports,
|
|
36540
|
+
Object.defineProperty(exports, "EditorBridgeService", {
|
|
36445
36541
|
enumerable: true,
|
|
36446
36542
|
get: function () {
|
|
36447
36543
|
return EditorBridgeService;
|
|
@@ -36452,26 +36548,26 @@ exports.ExpandSelectionCommand = ExpandSelectionCommand;
|
|
|
36452
36548
|
exports.FORMULA_CLIPBOARD_MIME_TYPE = FORMULA_CLIPBOARD_MIME_TYPE;
|
|
36453
36549
|
exports.FormatPainterStatus = FormatPainterStatus;
|
|
36454
36550
|
exports.FormulaBar = FormulaBar;
|
|
36455
|
-
Object.defineProperty(exports,
|
|
36551
|
+
Object.defineProperty(exports, "FormulaEditorController", {
|
|
36456
36552
|
enumerable: true,
|
|
36457
36553
|
get: function () {
|
|
36458
36554
|
return FormulaEditorController;
|
|
36459
36555
|
}
|
|
36460
36556
|
});
|
|
36461
36557
|
exports.HEADER_UNHIDE_RANGE_VISIBLE_CHECK = HEADER_UNHIDE_RANGE_VISIBLE_CHECK;
|
|
36462
|
-
Object.defineProperty(exports,
|
|
36558
|
+
Object.defineProperty(exports, "HeaderFreezeRenderController", {
|
|
36463
36559
|
enumerable: true,
|
|
36464
36560
|
get: function () {
|
|
36465
36561
|
return HeaderFreezeRenderController;
|
|
36466
36562
|
}
|
|
36467
36563
|
});
|
|
36468
|
-
Object.defineProperty(exports,
|
|
36564
|
+
Object.defineProperty(exports, "HeaderMoveRenderController", {
|
|
36469
36565
|
enumerable: true,
|
|
36470
36566
|
get: function () {
|
|
36471
36567
|
return HeaderMoveRenderController;
|
|
36472
36568
|
}
|
|
36473
36569
|
});
|
|
36474
|
-
Object.defineProperty(exports,
|
|
36570
|
+
Object.defineProperty(exports, "HeaderResizeRenderController", {
|
|
36475
36571
|
enumerable: true,
|
|
36476
36572
|
get: function () {
|
|
36477
36573
|
return HeaderResizeRenderController;
|
|
@@ -36479,7 +36575,7 @@ Object.defineProperty(exports, 'HeaderResizeRenderController', {
|
|
|
36479
36575
|
});
|
|
36480
36576
|
exports.HeaderUnhideRangeAxis = HeaderUnhideRangeAxis;
|
|
36481
36577
|
exports.HeaderUnhideRangeService = HeaderUnhideRangeService;
|
|
36482
|
-
Object.defineProperty(exports,
|
|
36578
|
+
Object.defineProperty(exports, "HeaderUnhideRenderController", {
|
|
36483
36579
|
enumerable: true,
|
|
36484
36580
|
get: function () {
|
|
36485
36581
|
return HeaderUnhideRenderController;
|
|
@@ -36487,13 +36583,13 @@ Object.defineProperty(exports, 'HeaderUnhideRenderController', {
|
|
|
36487
36583
|
});
|
|
36488
36584
|
exports.HideColConfirmCommand = HideColConfirmCommand;
|
|
36489
36585
|
exports.HideRowConfirmCommand = HideRowConfirmCommand;
|
|
36490
|
-
Object.defineProperty(exports,
|
|
36586
|
+
Object.defineProperty(exports, "HoverManagerService", {
|
|
36491
36587
|
enumerable: true,
|
|
36492
36588
|
get: function () {
|
|
36493
36589
|
return HoverManagerService;
|
|
36494
36590
|
}
|
|
36495
36591
|
});
|
|
36496
|
-
Object.defineProperty(exports,
|
|
36592
|
+
Object.defineProperty(exports, "HoverRenderController", {
|
|
36497
36593
|
enumerable: true,
|
|
36498
36594
|
get: function () {
|
|
36499
36595
|
return HoverRenderController;
|
|
@@ -36522,7 +36618,7 @@ exports.MOBILE_CONTEXT_MENU = MOBILE_CONTEXT_MENU;
|
|
|
36522
36618
|
exports.MOBILE_EXPANDING_SELECTION = MOBILE_EXPANDING_SELECTION;
|
|
36523
36619
|
exports.MOBILE_FORMULA_FUNCTION_PANEL_OPEN = MOBILE_FORMULA_FUNCTION_PANEL_OPEN;
|
|
36524
36620
|
exports.MOBILE_PINCH_ZOOMING = MOBILE_PINCH_ZOOMING;
|
|
36525
|
-
Object.defineProperty(exports,
|
|
36621
|
+
Object.defineProperty(exports, "MarkSelectionService", {
|
|
36526
36622
|
enumerable: true,
|
|
36527
36623
|
get: function () {
|
|
36528
36624
|
return MarkSelectionService;
|
|
@@ -36596,37 +36692,37 @@ exports.SetZoomRatioCommand = SetZoomRatioCommand;
|
|
|
36596
36692
|
exports.SetZoomRatioOperation = SetZoomRatioOperation;
|
|
36597
36693
|
exports.SheetBar = SheetBar;
|
|
36598
36694
|
exports.SheetBarService = SheetBarService;
|
|
36599
|
-
Object.defineProperty(exports,
|
|
36695
|
+
Object.defineProperty(exports, "SheetCanvasPopManagerService", {
|
|
36600
36696
|
enumerable: true,
|
|
36601
36697
|
get: function () {
|
|
36602
36698
|
return SheetCanvasPopManagerService;
|
|
36603
36699
|
}
|
|
36604
36700
|
});
|
|
36605
|
-
Object.defineProperty(exports,
|
|
36701
|
+
Object.defineProperty(exports, "SheetCellDropdownManagerService", {
|
|
36606
36702
|
enumerable: true,
|
|
36607
36703
|
get: function () {
|
|
36608
36704
|
return SheetCellDropdownManagerService;
|
|
36609
36705
|
}
|
|
36610
36706
|
});
|
|
36611
|
-
Object.defineProperty(exports,
|
|
36707
|
+
Object.defineProperty(exports, "SheetCellEditorResizeService", {
|
|
36612
36708
|
enumerable: true,
|
|
36613
36709
|
get: function () {
|
|
36614
36710
|
return SheetCellEditorResizeService;
|
|
36615
36711
|
}
|
|
36616
36712
|
});
|
|
36617
|
-
Object.defineProperty(exports,
|
|
36713
|
+
Object.defineProperty(exports, "SheetClipboardController", {
|
|
36618
36714
|
enumerable: true,
|
|
36619
36715
|
get: function () {
|
|
36620
36716
|
return SheetClipboardController;
|
|
36621
36717
|
}
|
|
36622
36718
|
});
|
|
36623
|
-
Object.defineProperty(exports,
|
|
36719
|
+
Object.defineProperty(exports, "SheetClipboardService", {
|
|
36624
36720
|
enumerable: true,
|
|
36625
36721
|
get: function () {
|
|
36626
36722
|
return SheetClipboardService;
|
|
36627
36723
|
}
|
|
36628
36724
|
});
|
|
36629
|
-
Object.defineProperty(exports,
|
|
36725
|
+
Object.defineProperty(exports, "SheetContextMenuMobileRenderController", {
|
|
36630
36726
|
enumerable: true,
|
|
36631
36727
|
get: function () {
|
|
36632
36728
|
return SheetContextMenuMobileRenderController;
|
|
@@ -36641,7 +36737,7 @@ exports.SheetPasteCommand = SheetPasteCommand;
|
|
|
36641
36737
|
exports.SheetPasteFormatCommand = SheetPasteFormatCommand;
|
|
36642
36738
|
exports.SheetPasteShortKeyCommand = SheetPasteShortKeyCommand;
|
|
36643
36739
|
exports.SheetPasteValueCommand = SheetPasteValueCommand;
|
|
36644
|
-
Object.defineProperty(exports,
|
|
36740
|
+
Object.defineProperty(exports, "SheetPermissionCheckUIController", {
|
|
36645
36741
|
enumerable: true,
|
|
36646
36742
|
get: function () {
|
|
36647
36743
|
return SheetPermissionCheckUIController;
|
|
@@ -36649,7 +36745,7 @@ Object.defineProperty(exports, 'SheetPermissionCheckUIController', {
|
|
|
36649
36745
|
});
|
|
36650
36746
|
exports.SheetPermissionOpenDialogOperation = SheetPermissionOpenDialogOperation;
|
|
36651
36747
|
exports.SheetPermissionOpenPanelOperation = SheetPermissionOpenPanelOperation;
|
|
36652
|
-
Object.defineProperty(exports,
|
|
36748
|
+
Object.defineProperty(exports, "SheetPermissionRenderManagerService", {
|
|
36653
36749
|
enumerable: true,
|
|
36654
36750
|
get: function () {
|
|
36655
36751
|
return SheetPermissionRenderManagerService;
|
|
@@ -36658,43 +36754,43 @@ Object.defineProperty(exports, 'SheetPermissionRenderManagerService', {
|
|
|
36658
36754
|
exports.SheetPermissionUserManagerService = SheetPermissionUserManagerService;
|
|
36659
36755
|
exports.SheetPrintInterceptorService = SheetPrintInterceptorService;
|
|
36660
36756
|
exports.SheetPrintingResourceCollector = SheetPrintingResourceCollector;
|
|
36661
|
-
Object.defineProperty(exports,
|
|
36757
|
+
Object.defineProperty(exports, "SheetRenderController", {
|
|
36662
36758
|
enumerable: true,
|
|
36663
36759
|
get: function () {
|
|
36664
36760
|
return SheetRenderController;
|
|
36665
36761
|
}
|
|
36666
36762
|
});
|
|
36667
|
-
Object.defineProperty(exports,
|
|
36763
|
+
Object.defineProperty(exports, "SheetScrollManagerService", {
|
|
36668
36764
|
enumerable: true,
|
|
36669
36765
|
get: function () {
|
|
36670
36766
|
return SheetScrollManagerService;
|
|
36671
36767
|
}
|
|
36672
36768
|
});
|
|
36673
|
-
Object.defineProperty(exports,
|
|
36769
|
+
Object.defineProperty(exports, "SheetSelectionRenderService", {
|
|
36674
36770
|
enumerable: true,
|
|
36675
36771
|
get: function () {
|
|
36676
36772
|
return SheetSelectionRenderService;
|
|
36677
36773
|
}
|
|
36678
36774
|
});
|
|
36679
|
-
Object.defineProperty(exports,
|
|
36775
|
+
Object.defineProperty(exports, "SheetSkeletonManagerService", {
|
|
36680
36776
|
enumerable: true,
|
|
36681
36777
|
get: function () {
|
|
36682
36778
|
return SheetSkeletonManagerService;
|
|
36683
36779
|
}
|
|
36684
36780
|
});
|
|
36685
|
-
Object.defineProperty(exports,
|
|
36781
|
+
Object.defineProperty(exports, "SheetUIController", {
|
|
36686
36782
|
enumerable: true,
|
|
36687
36783
|
get: function () {
|
|
36688
36784
|
return SheetUIController;
|
|
36689
36785
|
}
|
|
36690
36786
|
});
|
|
36691
|
-
Object.defineProperty(exports,
|
|
36787
|
+
Object.defineProperty(exports, "SheetsRenderService", {
|
|
36692
36788
|
enumerable: true,
|
|
36693
36789
|
get: function () {
|
|
36694
36790
|
return SheetsRenderService;
|
|
36695
36791
|
}
|
|
36696
36792
|
});
|
|
36697
|
-
Object.defineProperty(exports,
|
|
36793
|
+
Object.defineProperty(exports, "SheetsScrollRenderController", {
|
|
36698
36794
|
enumerable: true,
|
|
36699
36795
|
get: function () {
|
|
36700
36796
|
return SheetsScrollRenderController;
|
|
@@ -36704,7 +36800,7 @@ exports.SheetsUIMenuSchema = menuSchema;
|
|
|
36704
36800
|
exports.SheetsUIPart = SheetsUIPart;
|
|
36705
36801
|
exports.ShowMenuListCommand = ShowMenuListCommand;
|
|
36706
36802
|
exports.SidebarDefinedNameOperation = SidebarDefinedNameOperation;
|
|
36707
|
-
Object.defineProperty(exports,
|
|
36803
|
+
Object.defineProperty(exports, "StatusBarController", {
|
|
36708
36804
|
enumerable: true,
|
|
36709
36805
|
get: function () {
|
|
36710
36806
|
return StatusBarController;
|
|
@@ -36712,13 +36808,13 @@ Object.defineProperty(exports, 'StatusBarController', {
|
|
|
36712
36808
|
});
|
|
36713
36809
|
exports.StatusBarService = StatusBarService;
|
|
36714
36810
|
exports.UNIVER_SHEET_PERMISSION_USER_PART = UNIVER_SHEET_PERMISSION_USER_PART;
|
|
36715
|
-
Object.defineProperty(exports,
|
|
36811
|
+
Object.defineProperty(exports, "UniverSheetsMobileUIPlugin", {
|
|
36716
36812
|
enumerable: true,
|
|
36717
36813
|
get: function () {
|
|
36718
36814
|
return UniverSheetsMobileUIPlugin;
|
|
36719
36815
|
}
|
|
36720
36816
|
});
|
|
36721
|
-
Object.defineProperty(exports,
|
|
36817
|
+
Object.defineProperty(exports, "UniverSheetsUIPlugin", {
|
|
36722
36818
|
enumerable: true,
|
|
36723
36819
|
get: function () {
|
|
36724
36820
|
return UniverSheetsUIPlugin;
|