@univerjs/sheets-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/facade.js +47 -37
- package/lib/cjs/index.js +8906 -7574
- package/lib/cjs/locale/ar-SA.js +9 -1
- package/lib/cjs/locale/ca-ES.js +9 -1
- package/lib/cjs/locale/de-DE.js +9 -1
- package/lib/cjs/locale/en-US.js +9 -1
- package/lib/cjs/locale/es-ES.js +10 -2
- package/lib/cjs/locale/fa-IR.js +9 -1
- package/lib/cjs/locale/fr-FR.js +9 -1
- package/lib/cjs/locale/id-ID.js +9 -1
- package/lib/cjs/locale/it-IT.js +9 -1
- package/lib/cjs/locale/ja-JP.js +9 -1
- package/lib/cjs/locale/ko-KR.js +9 -1
- package/lib/cjs/locale/pl-PL.js +9 -1
- package/lib/cjs/locale/pt-BR.js +9 -1
- package/lib/cjs/locale/ru-RU.js +9 -1
- package/lib/cjs/locale/sk-SK.js +9 -1
- package/lib/cjs/locale/vi-VN.js +9 -1
- package/lib/cjs/locale/zh-CN.js +9 -1
- package/lib/cjs/locale/zh-HK.js +9 -1
- package/lib/cjs/locale/zh-TW.js +9 -1
- package/lib/es/facade.js +47 -37
- package/lib/es/index.js +8894 -7559
- package/lib/es/locale/ar-SA.js +9 -1
- package/lib/es/locale/ca-ES.js +9 -1
- package/lib/es/locale/de-DE.js +9 -1
- package/lib/es/locale/en-US.js +9 -1
- package/lib/es/locale/es-ES.js +10 -2
- package/lib/es/locale/fa-IR.js +9 -1
- package/lib/es/locale/fr-FR.js +9 -1
- package/lib/es/locale/id-ID.js +9 -1
- package/lib/es/locale/it-IT.js +9 -1
- package/lib/es/locale/ja-JP.js +9 -1
- package/lib/es/locale/ko-KR.js +9 -1
- package/lib/es/locale/pl-PL.js +9 -1
- package/lib/es/locale/pt-BR.js +9 -1
- package/lib/es/locale/ru-RU.js +9 -1
- package/lib/es/locale/sk-SK.js +9 -1
- package/lib/es/locale/vi-VN.js +9 -1
- package/lib/es/locale/zh-CN.js +9 -1
- package/lib/es/locale/zh-HK.js +9 -1
- package/lib/es/locale/zh-TW.js +9 -1
- package/lib/facade.js +47 -37
- package/lib/index.css +49 -0
- package/lib/index.js +8894 -7559
- package/lib/locale/ar-SA.js +9 -1
- package/lib/locale/ca-ES.js +9 -1
- package/lib/locale/de-DE.js +9 -1
- package/lib/locale/en-US.js +9 -1
- package/lib/locale/es-ES.js +10 -2
- package/lib/locale/fa-IR.js +9 -1
- package/lib/locale/fr-FR.js +9 -1
- package/lib/locale/id-ID.js +9 -1
- package/lib/locale/it-IT.js +9 -1
- package/lib/locale/ja-JP.js +9 -1
- package/lib/locale/ko-KR.js +9 -1
- package/lib/locale/pl-PL.js +9 -1
- package/lib/locale/pt-BR.js +9 -1
- package/lib/locale/ru-RU.js +9 -1
- package/lib/locale/sk-SK.js +9 -1
- package/lib/locale/vi-VN.js +9 -1
- package/lib/locale/zh-CN.js +9 -1
- package/lib/locale/zh-HK.js +9 -1
- package/lib/locale/zh-TW.js +9 -1
- package/lib/types/commands/commands/set-scroll.command.d.ts +3 -0
- package/lib/types/{controllers/cell-alert.controller.d.ts → commands/commands/set-zoom-ratio-from-toolbar.command.d.ts} +4 -8
- package/lib/types/controllers/editor/editing.render-controller.d.ts +1 -0
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +1 -0
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +1 -9
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +7 -2
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +7 -1
- package/lib/types/controllers/render-controllers/header-unhide.render-controller.d.ts +0 -1
- package/lib/types/embed-tab-anchor.d.ts +23 -0
- package/lib/types/facade/f-univer.d.ts +1 -0
- package/lib/types/index.d.ts +17 -3
- package/lib/types/locale/en-US.d.ts +9 -1
- package/lib/types/menu/frozen.menu.d.ts +2 -0
- package/lib/types/menu/fullscreen.menu.d.ts +19 -0
- package/lib/types/menu/menu.d.ts +1 -0
- package/lib/types/menu/text-to-number.menu.d.ts +0 -2
- package/lib/types/menu/zoom.menu.d.ts +20 -0
- package/lib/types/services/canvas-pop-manager.service.d.ts +9 -0
- package/lib/types/services/cell-dropdown-manager.service.d.ts +1 -3
- package/lib/types/services/cell-popup-manager.service.d.ts +1 -0
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +4 -1
- package/lib/types/services/editor-bridge.service.d.ts +2 -0
- package/lib/types/services/print-interceptor.service.d.ts +8 -0
- package/lib/types/services/selection/base-selection-render.service.d.ts +1 -0
- package/lib/types/services/sheet-embed-integration.service.d.ts +126 -0
- package/lib/types/services/sheet-embed-runtime.service.d.ts +26 -0
- package/lib/types/services/sheet-host-chrome-override.service.d.ts +25 -0
- package/lib/types/services/sheet-loading-render.service.d.ts +65 -0
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -0
- package/lib/types/views/CellPopup.d.ts +2 -2
- package/lib/types/views/border-panel/interface.d.ts +63 -2
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -1
- package/lib/types/views/dropdown/CascaderDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/ColorDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/DateDropdown.d.ts +2 -2
- package/lib/types/views/dropdown/ListDropDown.d.ts +2 -2
- package/lib/types/views/editor-container/EditorContainer.d.ts +7 -5
- package/lib/types/{menu/mobile-menu.d.ts → views/editor-container/EditorContainer.spec.d.ts} +1 -1
- package/lib/types/views/editor-container/focus-editor.d.ts +25 -0
- package/lib/types/views/hook.d.ts +4 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +2 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/sheet-tab-drag-sort.d.ts +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +2 -1
- package/lib/types/views/sheet-slider/SheetZoomInput.d.ts +18 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +12 -12
- 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/cjs/locale/vi-VN.js
CHANGED
|
@@ -44,13 +44,14 @@ const locale = { "sheets-ui": {
|
|
|
44
44
|
main: "Ngắt dòng văn bản",
|
|
45
45
|
right: "Chọn kiểu ngắt"
|
|
46
46
|
},
|
|
47
|
+
shrinkToFit: "Thu nhỏ để vừa",
|
|
47
48
|
textRotateMode: {
|
|
48
49
|
main: "Xoay văn bản",
|
|
49
50
|
right: "Chọn kiểu xoay"
|
|
50
51
|
},
|
|
51
52
|
more: "Thêm",
|
|
52
53
|
toggleGridlines: "Chuyển đổi đường lưới",
|
|
53
|
-
|
|
54
|
+
fullscreen: "Toàn màn hình"
|
|
54
55
|
},
|
|
55
56
|
align: {
|
|
56
57
|
left: "Căn trái",
|
|
@@ -80,6 +81,11 @@ const locale = { "sheets-ui": {
|
|
|
80
81
|
borderInside: "Bên trong",
|
|
81
82
|
borderHorizontal: "Đường ngang bên trong",
|
|
82
83
|
borderVertical: "Đường dọc bên trong",
|
|
84
|
+
borderTlbr: "Đường viền chéo xuống",
|
|
85
|
+
borderTlbcTlmr: "Đường viền chéo xuống kép",
|
|
86
|
+
borderTlbrTlbcTlmr: "Đường viền chéo xuống ba",
|
|
87
|
+
borderBlTr: "Đường viền chéo lên",
|
|
88
|
+
borderMltrBctr: "Đường viền chéo lên kép",
|
|
83
89
|
borderColor: "Màu viền",
|
|
84
90
|
borderSize: "Độ dày viền",
|
|
85
91
|
borderType: "Loại đường viền"
|
|
@@ -114,6 +120,7 @@ const locale = { "sheets-ui": {
|
|
|
114
120
|
rotationDown: "Xoay xuống"
|
|
115
121
|
},
|
|
116
122
|
sheetConfig: {
|
|
123
|
+
sheetTabs: "Thẻ trang tính",
|
|
117
124
|
delete: "Xóa",
|
|
118
125
|
copy: "Sao chép",
|
|
119
126
|
rename: "Đổi tên",
|
|
@@ -390,6 +397,7 @@ const locale = { "sheets-ui": {
|
|
|
390
397
|
EditExtraObject: "Chỉnh sửa đối tượng khác"
|
|
391
398
|
},
|
|
392
399
|
dialog: {
|
|
400
|
+
emptyList: "Danh sách người dùng trống",
|
|
393
401
|
allowUserToEdit: "Cho phép người dùng chỉnh sửa",
|
|
394
402
|
allowedPermissionType: "Loại quyền hạn cho phép",
|
|
395
403
|
setCellValue: "Thiết lập giá trị ô",
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -44,13 +44,14 @@ const locale = { "sheets-ui": {
|
|
|
44
44
|
main: "文本换行",
|
|
45
45
|
right: "换行方式"
|
|
46
46
|
},
|
|
47
|
+
shrinkToFit: "缩小字体填充",
|
|
47
48
|
textRotateMode: {
|
|
48
49
|
main: "文本旋转",
|
|
49
50
|
right: "旋转方式"
|
|
50
51
|
},
|
|
51
52
|
more: "更多",
|
|
52
53
|
toggleGridlines: "切换网格线",
|
|
53
|
-
|
|
54
|
+
fullscreen: "全屏"
|
|
54
55
|
},
|
|
55
56
|
align: {
|
|
56
57
|
left: "左对齐",
|
|
@@ -80,6 +81,11 @@ const locale = { "sheets-ui": {
|
|
|
80
81
|
borderInside: "内侧",
|
|
81
82
|
borderHorizontal: "内侧横线",
|
|
82
83
|
borderVertical: "内侧竖线",
|
|
84
|
+
borderTlbr: "右下斜线",
|
|
85
|
+
borderTlbcTlmr: "右下双斜线",
|
|
86
|
+
borderTlbrTlbcTlmr: "右下三斜线",
|
|
87
|
+
borderBlTr: "右上斜线",
|
|
88
|
+
borderMltrBctr: "右上双斜线",
|
|
83
89
|
borderColor: "边框颜色",
|
|
84
90
|
borderSize: "边框粗细",
|
|
85
91
|
borderType: "边框线类型"
|
|
@@ -114,6 +120,7 @@ const locale = { "sheets-ui": {
|
|
|
114
120
|
rotationDown: "向下90°"
|
|
115
121
|
},
|
|
116
122
|
sheetConfig: {
|
|
123
|
+
sheetTabs: "工作表标签页",
|
|
117
124
|
delete: "删除",
|
|
118
125
|
copy: "复制",
|
|
119
126
|
rename: "重命名",
|
|
@@ -390,6 +397,7 @@ const locale = { "sheets-ui": {
|
|
|
390
397
|
EditExtraObject: "编辑其他对象"
|
|
391
398
|
},
|
|
392
399
|
dialog: {
|
|
400
|
+
emptyList: "用户列表为空",
|
|
393
401
|
allowUserToEdit: "允许用户编辑",
|
|
394
402
|
allowedPermissionType: "允许权限类型",
|
|
395
403
|
setCellValue: "设置单元格值",
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -44,13 +44,14 @@ const locale = { "sheets-ui": {
|
|
|
44
44
|
main: "自動換行",
|
|
45
45
|
right: "換行方式"
|
|
46
46
|
},
|
|
47
|
+
shrinkToFit: "縮小字型填滿",
|
|
47
48
|
textRotateMode: {
|
|
48
49
|
main: "文字旋轉",
|
|
49
50
|
right: "旋轉方式"
|
|
50
51
|
},
|
|
51
52
|
more: "更多",
|
|
52
53
|
toggleGridlines: "切換網格線",
|
|
53
|
-
|
|
54
|
+
fullscreen: "全螢幕"
|
|
54
55
|
},
|
|
55
56
|
align: {
|
|
56
57
|
left: "靠左對齊",
|
|
@@ -80,6 +81,11 @@ const locale = { "sheets-ui": {
|
|
|
80
81
|
borderInside: "內側",
|
|
81
82
|
borderHorizontal: "內側水平框線",
|
|
82
83
|
borderVertical: "內側垂直框線",
|
|
84
|
+
borderTlbr: "右下斜線",
|
|
85
|
+
borderTlbcTlmr: "右下雙斜線",
|
|
86
|
+
borderTlbrTlbcTlmr: "右下三斜線",
|
|
87
|
+
borderBlTr: "右上斜線",
|
|
88
|
+
borderMltrBctr: "右上雙斜線",
|
|
83
89
|
borderColor: "邊框顏色",
|
|
84
90
|
borderSize: "邊框粗細",
|
|
85
91
|
borderType: "邊框線類型"
|
|
@@ -114,6 +120,7 @@ const locale = { "sheets-ui": {
|
|
|
114
120
|
rotationDown: "向下90°"
|
|
115
121
|
},
|
|
116
122
|
sheetConfig: {
|
|
123
|
+
sheetTabs: "工作表分頁",
|
|
117
124
|
delete: "刪除",
|
|
118
125
|
copy: "複製",
|
|
119
126
|
rename: "重新命名",
|
|
@@ -390,6 +397,7 @@ const locale = { "sheets-ui": {
|
|
|
390
397
|
EditExtraObject: "編輯其他物件"
|
|
391
398
|
},
|
|
392
399
|
dialog: {
|
|
400
|
+
emptyList: "使用者清單為空",
|
|
393
401
|
allowUserToEdit: "允許使用者編輯",
|
|
394
402
|
allowedPermissionType: "允許權限類型",
|
|
395
403
|
setCellValue: "設定儲存格值",
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -44,13 +44,14 @@ const locale = { "sheets-ui": {
|
|
|
44
44
|
main: "自動換行",
|
|
45
45
|
right: "換行方式"
|
|
46
46
|
},
|
|
47
|
+
shrinkToFit: "縮小字型填滿",
|
|
47
48
|
textRotateMode: {
|
|
48
49
|
main: "文字旋轉",
|
|
49
50
|
right: "旋轉方式"
|
|
50
51
|
},
|
|
51
52
|
more: "更多",
|
|
52
53
|
toggleGridlines: "切換網格線",
|
|
53
|
-
|
|
54
|
+
fullscreen: "全螢幕"
|
|
54
55
|
},
|
|
55
56
|
align: {
|
|
56
57
|
left: "靠左對齊",
|
|
@@ -80,6 +81,11 @@ const locale = { "sheets-ui": {
|
|
|
80
81
|
borderInside: "內側",
|
|
81
82
|
borderHorizontal: "內側水平框線",
|
|
82
83
|
borderVertical: "內側垂直框線",
|
|
84
|
+
borderTlbr: "右下斜線",
|
|
85
|
+
borderTlbcTlmr: "右下雙斜線",
|
|
86
|
+
borderTlbrTlbcTlmr: "右下三斜線",
|
|
87
|
+
borderBlTr: "右上斜線",
|
|
88
|
+
borderMltrBctr: "右上雙斜線",
|
|
83
89
|
borderColor: "邊框顏色",
|
|
84
90
|
borderSize: "邊框粗細",
|
|
85
91
|
borderType: "邊框線類型"
|
|
@@ -114,6 +120,7 @@ const locale = { "sheets-ui": {
|
|
|
114
120
|
rotationDown: "向下90°"
|
|
115
121
|
},
|
|
116
122
|
sheetConfig: {
|
|
123
|
+
sheetTabs: "工作表分頁",
|
|
117
124
|
delete: "刪除",
|
|
118
125
|
copy: "複製",
|
|
119
126
|
rename: "重新命名",
|
|
@@ -390,6 +397,7 @@ const locale = { "sheets-ui": {
|
|
|
390
397
|
EditExtraObject: "編輯其他物件"
|
|
391
398
|
},
|
|
392
399
|
dialog: {
|
|
400
|
+
emptyList: "使用者清單為空",
|
|
393
401
|
allowUserToEdit: "允許使用者編輯",
|
|
394
402
|
allowedPermissionType: "允許權限類型",
|
|
395
403
|
setCellValue: "設定儲存格值",
|
package/lib/es/facade.js
CHANGED
|
@@ -448,7 +448,7 @@ var FUniverSheetsUIMixin = class extends FUniver {
|
|
|
448
448
|
if (!workbook) return;
|
|
449
449
|
combined$Disposable.dispose();
|
|
450
450
|
const scrollManagerService = sheetRenderUnit.with(SheetScrollManagerService);
|
|
451
|
-
const selectionService =
|
|
451
|
+
const selectionService = this._tryGetRenderDependency(sheetRenderUnit, SheetsSelectionsService);
|
|
452
452
|
combined$Disposable.add(this.registerEventHandler(this.Event.Scroll, () => scrollManagerService.validViewportScrollInfo$.subscribe((params) => {
|
|
453
453
|
if (!params) return;
|
|
454
454
|
const eventParams = {
|
|
@@ -458,46 +458,56 @@ var FUniverSheetsUIMixin = class extends FUniver {
|
|
|
458
458
|
};
|
|
459
459
|
this.fireEvent(this.Event.Scroll, eventParams);
|
|
460
460
|
})));
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
461
|
+
if (selectionService) {
|
|
462
|
+
combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveStart, () => selectionService.selectionMoveStart$.subscribe((selections) => {
|
|
463
|
+
var _selections$map;
|
|
464
|
+
const eventParams = {
|
|
465
|
+
workbook,
|
|
466
|
+
worksheet: workbook.getActiveSheet(),
|
|
467
|
+
selections: (_selections$map = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map !== void 0 ? _selections$map : []
|
|
468
|
+
};
|
|
469
|
+
this.fireEvent(this.Event.SelectionMoveStart, eventParams);
|
|
470
|
+
})));
|
|
471
|
+
combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoving, () => selectionService.selectionMoving$.subscribe((selections) => {
|
|
472
|
+
var _selections$map2;
|
|
473
|
+
const eventParams = {
|
|
474
|
+
workbook,
|
|
475
|
+
worksheet: workbook.getActiveSheet(),
|
|
476
|
+
selections: (_selections$map2 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map2 !== void 0 ? _selections$map2 : []
|
|
477
|
+
};
|
|
478
|
+
this.fireEvent(this.Event.SelectionMoving, eventParams);
|
|
479
|
+
})));
|
|
480
|
+
combined$Disposable.add(this.registerEventHandler(this.Event.SelectionMoveEnd, () => selectionService.selectionMoveEnd$.subscribe((selections) => {
|
|
481
|
+
var _selections$map3;
|
|
482
|
+
const eventParams = {
|
|
483
|
+
workbook,
|
|
484
|
+
worksheet: workbook.getActiveSheet(),
|
|
485
|
+
selections: (_selections$map3 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map3 !== void 0 ? _selections$map3 : []
|
|
486
|
+
};
|
|
487
|
+
this.fireEvent(this.Event.SelectionMoveEnd, eventParams);
|
|
488
|
+
})));
|
|
489
|
+
combined$Disposable.add(this.registerEventHandler(this.Event.SelectionChanged, () => selectionService.selectionChanged$.subscribe((selections) => {
|
|
490
|
+
var _selections$map4;
|
|
491
|
+
const eventParams = {
|
|
492
|
+
workbook,
|
|
493
|
+
worksheet: workbook.getActiveSheet(),
|
|
494
|
+
selections: (_selections$map4 = selections === null || selections === void 0 ? void 0 : selections.map((s) => s.range)) !== null && _selections$map4 !== void 0 ? _selections$map4 : []
|
|
495
|
+
};
|
|
496
|
+
this.fireEvent(this.Event.SelectionChanged, eventParams);
|
|
497
|
+
})));
|
|
498
|
+
}
|
|
497
499
|
sheetRenderUnit = null;
|
|
498
500
|
this.disposeWithMe(combined$Disposable);
|
|
499
501
|
}));
|
|
500
502
|
}
|
|
503
|
+
_tryGetRenderDependency(render, dependency) {
|
|
504
|
+
try {
|
|
505
|
+
return render.with(dependency);
|
|
506
|
+
} catch (error) {
|
|
507
|
+
if (error instanceof Error && (error.message.includes("DependencyNotFoundError") || error.message.includes("Cannot find"))) return null;
|
|
508
|
+
throw error;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
501
511
|
/**
|
|
502
512
|
* @ignore
|
|
503
513
|
*/
|