@univerjs/sheets-ui 1.3.1 → 1.5.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/README.md +9 -5
- package/lib/cjs/facade.js +9 -12
- package/lib/cjs/index.js +2077 -1521
- package/lib/cjs/locale/ar-SA.js +9 -6
- package/lib/cjs/locale/ca-ES.js +9 -6
- package/lib/cjs/locale/de-DE.js +9 -6
- package/lib/cjs/locale/en-US.js +9 -6
- package/lib/cjs/locale/es-ES.js +9 -6
- package/lib/cjs/locale/fa-IR.js +9 -6
- package/lib/cjs/locale/fr-FR.js +9 -6
- package/lib/cjs/locale/id-ID.js +9 -6
- package/lib/cjs/locale/it-IT.js +9 -6
- package/lib/cjs/locale/ja-JP.js +9 -6
- package/lib/cjs/locale/ko-KR.js +9 -6
- package/lib/cjs/locale/pl-PL.js +9 -6
- package/lib/cjs/locale/pt-BR.js +9 -6
- package/lib/cjs/locale/ru-RU.js +9 -6
- package/lib/cjs/locale/sk-SK.js +9 -6
- package/lib/cjs/locale/vi-VN.js +9 -6
- package/lib/cjs/locale/zh-CN.js +9 -6
- package/lib/cjs/locale/zh-HK.js +9 -6
- package/lib/cjs/locale/zh-TW.js +9 -6
- package/lib/es/facade.js +9 -12
- package/lib/es/index.js +2083 -1527
- package/lib/es/locale/ar-SA.js +9 -6
- package/lib/es/locale/ca-ES.js +9 -6
- package/lib/es/locale/de-DE.js +9 -6
- package/lib/es/locale/en-US.js +9 -6
- package/lib/es/locale/es-ES.js +9 -6
- package/lib/es/locale/fa-IR.js +9 -6
- package/lib/es/locale/fr-FR.js +9 -6
- package/lib/es/locale/id-ID.js +9 -6
- package/lib/es/locale/it-IT.js +9 -6
- package/lib/es/locale/ja-JP.js +9 -6
- package/lib/es/locale/ko-KR.js +9 -6
- package/lib/es/locale/pl-PL.js +9 -6
- package/lib/es/locale/pt-BR.js +9 -6
- package/lib/es/locale/ru-RU.js +9 -6
- package/lib/es/locale/sk-SK.js +9 -6
- package/lib/es/locale/vi-VN.js +9 -6
- package/lib/es/locale/zh-CN.js +9 -6
- package/lib/es/locale/zh-HK.js +9 -6
- package/lib/es/locale/zh-TW.js +9 -6
- package/lib/facade.js +9 -12
- package/lib/index.css +50 -32
- package/lib/index.js +2083 -1527
- package/lib/locale/ar-SA.js +9 -6
- package/lib/locale/ca-ES.js +9 -6
- package/lib/locale/de-DE.js +9 -6
- package/lib/locale/en-US.js +9 -6
- package/lib/locale/es-ES.js +9 -6
- package/lib/locale/fa-IR.js +9 -6
- package/lib/locale/fr-FR.js +9 -6
- package/lib/locale/id-ID.js +9 -6
- package/lib/locale/it-IT.js +9 -6
- package/lib/locale/ja-JP.js +9 -6
- package/lib/locale/ko-KR.js +9 -6
- package/lib/locale/pl-PL.js +9 -6
- package/lib/locale/pt-BR.js +9 -6
- package/lib/locale/ru-RU.js +9 -6
- package/lib/locale/sk-SK.js +9 -6
- package/lib/locale/vi-VN.js +9 -6
- package/lib/locale/zh-CN.js +9 -6
- package/lib/locale/zh-HK.js +9 -6
- package/lib/locale/zh-TW.js +9 -6
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +3 -1
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +3 -1
- package/lib/types/common/keys.d.ts +1 -0
- package/lib/types/config/config.d.ts +18 -0
- package/lib/types/controllers/cell-custom-render.controller.d.ts +3 -0
- package/lib/types/controllers/components.controller.d.ts +0 -1
- package/lib/types/controllers/editor/data-sync.controller.d.ts +10 -0
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +5 -3
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +3 -2
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +3 -0
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +1 -0
- package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +9 -2
- package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts +7 -3
- package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +9 -0
- package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +9 -1
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -3
- package/lib/types/facade/f-worksheet.d.ts +8 -0
- package/lib/types/locale/en-US.d.ts +5 -1
- package/lib/types/menu/menu-util.d.ts +1 -1
- package/lib/types/menu/utils.d.ts +46 -1
- package/lib/types/services/auto-height.service.d.ts +2 -1
- package/lib/types/services/canvas-pop-manager.service.d.ts +4 -1
- package/lib/types/services/cell-dropdown-manager.service.d.ts +1 -1
- package/lib/types/services/clipboard/clipboard.service.d.ts +22 -22
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +1 -1
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +3 -3
- package/lib/types/services/clipboard/type.d.ts +2 -1
- package/lib/types/services/clipboard/utils.d.ts +1 -1
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor-bridge.service.d.ts +13 -8
- package/lib/types/services/format-painter/format-painter.service.d.ts +1 -1
- package/lib/types/services/hover-manager.service.d.ts +1 -0
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -1
- package/lib/types/services/repeat-last-action.service.d.ts +1 -1
- package/lib/types/services/scroll-manager.service.d.ts +1 -1
- package/lib/types/services/selection/base-selection-render.service.d.ts +3 -2
- package/lib/types/services/selection/mobile-selection-render.service.d.ts +7 -2
- package/lib/types/services/selection/mobile-selection-shape.d.ts +5 -2
- package/lib/types/services/selection/selection-render.service.d.ts +3 -0
- package/lib/types/services/selection/selection-shape-extension.d.ts +2 -0
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +1 -1
- package/lib/types/services/sheet-embed-integration.service.d.ts +3 -3
- package/lib/types/services/sheet-embed-runtime.service.d.ts +1 -1
- package/lib/types/services/sheet-host-chrome-override.service.d.ts +1 -1
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +8 -0
- package/lib/types/services/sheets-render.service.d.ts +4 -0
- package/lib/types/services/status-bar.service.d.ts +1 -1
- package/lib/types/views/hook.d.ts +1 -1
- package/lib/types/views/mobile/action-panel/MobileStylePanel.d.ts +3 -2
- package/lib/types/views/permission/extensions/range-protection.render.d.ts +6 -4
- package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +5 -2
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/sheet-tab-name-editor.d.ts +1 -0
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +7 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +9 -9
- 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 +19 -19
- package/lib/types/views/permission/panel-list/constant.d.ts +0 -16
- package/lib/types/views/permission/user-dialog/constant.d.ts +0 -16
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-ui": {
|
|
3
3
|
toolbar: {
|
|
4
4
|
formatPainter: "Chổi định dạng",
|
|
@@ -326,15 +326,18 @@ const locale = { "sheets-ui": {
|
|
|
326
326
|
EditExtraObject: "Chỉnh sửa đối tượng khác"
|
|
327
327
|
},
|
|
328
328
|
dialog: {
|
|
329
|
-
emptyList: "Danh sách người dùng trống",
|
|
330
329
|
allowedPermissionType: "Loại quyền hạn cho phép",
|
|
331
330
|
alert: "Thông báo",
|
|
332
331
|
search: "Tìm kiếm",
|
|
333
332
|
ownerInherit: "Chủ sở hữu tài liệu, đã bật kế thừa quyền",
|
|
334
333
|
ownerWithoutInherit: "Chủ sở hữu tài liệu, chưa bật kế thừa quyền",
|
|
335
334
|
alertContent: "Phạm vi này đã được bảo vệ, hiện không có quyền chỉnh sửa. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo.",
|
|
336
|
-
userEmpty: "
|
|
337
|
-
listEmpty: "
|
|
335
|
+
userEmpty: "Chưa chọn người có quyền chỉnh sửa.",
|
|
336
|
+
listEmpty: "Chưa có quy tắc bảo vệ",
|
|
337
|
+
listEmptyDescription: "Đặt quyền chỉnh sửa cho trang tính hoặc một vùng cụ thể.",
|
|
338
|
+
candidatesEmpty: "Không có người nào để thêm",
|
|
339
|
+
searchEmpty: "Không tìm thấy người phù hợp",
|
|
340
|
+
searchEmptyDescription: "Thử tên khác hoặc xóa nội dung tìm kiếm.",
|
|
338
341
|
commonErr: "Phạm vi này đã được bảo vệ, hiện không có quyền thực hiện thao tác này. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo.",
|
|
339
342
|
editErr: "Phạm vi này đã được bảo vệ, hiện không có quyền chỉnh sửa. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo.",
|
|
340
343
|
pasteErr: "Phạm vi này đã được bảo vệ, hiện không có quyền dán. Nếu cần dán, vui lòng liên hệ với người tạo.",
|
|
@@ -347,10 +350,10 @@ const locale = { "sheets-ui": {
|
|
|
347
350
|
button: {
|
|
348
351
|
confirm: "Xác nhận",
|
|
349
352
|
cancel: "Hủy",
|
|
350
|
-
addNewPermission: "Thêm quyền hạn mới"
|
|
353
|
+
addNewPermission: "Thêm quyền hạn mới",
|
|
354
|
+
clearSearch: "Xóa tìm kiếm"
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
} };
|
|
354
358
|
|
|
355
|
-
//#endregion
|
|
356
359
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "sheets-ui": {
|
|
3
3
|
toolbar: {
|
|
4
4
|
formatPainter: "格式刷",
|
|
@@ -326,15 +326,18 @@ const locale = { "sheets-ui": {
|
|
|
326
326
|
EditExtraObject: "编辑其他对象"
|
|
327
327
|
},
|
|
328
328
|
dialog: {
|
|
329
|
-
emptyList: "用户列表为空",
|
|
330
329
|
allowedPermissionType: "允许权限类型",
|
|
331
330
|
alert: "提示",
|
|
332
331
|
search: "搜索",
|
|
333
332
|
ownerInherit: "文档所有者,已开启权限继承",
|
|
334
333
|
ownerWithoutInherit: "文档所有者,未开启权限继承",
|
|
335
334
|
alertContent: "该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。",
|
|
336
|
-
userEmpty: "
|
|
337
|
-
listEmpty: "
|
|
335
|
+
userEmpty: "尚未指定可编辑的人员",
|
|
336
|
+
listEmpty: "暂无保护规则",
|
|
337
|
+
listEmptyDescription: "可为工作表或指定范围设置编辑权限。",
|
|
338
|
+
candidatesEmpty: "暂无可添加的人员",
|
|
339
|
+
searchEmpty: "未找到匹配的人员",
|
|
340
|
+
searchEmptyDescription: "试试其他姓名,或清除搜索。",
|
|
338
341
|
commonErr: "该范围已被保护,目前无该操作权限。如需编辑,请联系创建者。",
|
|
339
342
|
editErr: "该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。",
|
|
340
343
|
pasteErr: "该范围已被保护,目前无粘贴权限。如需粘贴,请联系创建者。",
|
|
@@ -347,10 +350,10 @@ const locale = { "sheets-ui": {
|
|
|
347
350
|
button: {
|
|
348
351
|
confirm: "确认",
|
|
349
352
|
cancel: "取消",
|
|
350
|
-
addNewPermission: "添加新权限"
|
|
353
|
+
addNewPermission: "添加新权限",
|
|
354
|
+
clearSearch: "清除搜索"
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
} };
|
|
354
358
|
|
|
355
|
-
//#endregion
|
|
356
359
|
export { locale as default };
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "sheets-ui": {
|
|
3
3
|
toolbar: {
|
|
4
4
|
formatPainter: "複製格式",
|
|
@@ -326,15 +326,18 @@ const locale = { "sheets-ui": {
|
|
|
326
326
|
EditExtraObject: "編輯其他物件"
|
|
327
327
|
},
|
|
328
328
|
dialog: {
|
|
329
|
-
emptyList: "使用者清單為空",
|
|
330
329
|
allowedPermissionType: "允許權限類型",
|
|
331
330
|
alert: "提示",
|
|
332
331
|
search: "搜尋",
|
|
333
332
|
ownerInherit: "文檔所有者,已開啟權限繼承",
|
|
334
333
|
ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
|
|
335
334
|
alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
|
|
336
|
-
userEmpty: "
|
|
337
|
-
listEmpty: "
|
|
335
|
+
userEmpty: "尚未指定可編輯的人員",
|
|
336
|
+
listEmpty: "暫無保護規則",
|
|
337
|
+
listEmptyDescription: "可為工作表或指定範圍設定編輯權限。",
|
|
338
|
+
candidatesEmpty: "暫無可新增的人員",
|
|
339
|
+
searchEmpty: "找不到符合的人員",
|
|
340
|
+
searchEmptyDescription: "試試其他姓名,或清除搜尋。",
|
|
338
341
|
commonErr: "該範圍已被保護,目前無該操作權限。如需編輯,請聯絡創建者。 ",
|
|
339
342
|
editErr: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
|
|
340
343
|
pasteErr: "該範圍已被保護,目前無貼上權限。如需貼上,請聯絡創作者。 ",
|
|
@@ -347,10 +350,10 @@ const locale = { "sheets-ui": {
|
|
|
347
350
|
button: {
|
|
348
351
|
confirm: "確認",
|
|
349
352
|
cancel: "取消",
|
|
350
|
-
addNewPermission: "新增權限"
|
|
353
|
+
addNewPermission: "新增權限",
|
|
354
|
+
clearSearch: "清除搜尋"
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
} };
|
|
354
358
|
|
|
355
|
-
//#endregion
|
|
356
359
|
export { locale as default };
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "sheets-ui": {
|
|
3
3
|
toolbar: {
|
|
4
4
|
formatPainter: "複製格式",
|
|
@@ -326,15 +326,18 @@ const locale = { "sheets-ui": {
|
|
|
326
326
|
EditExtraObject: "編輯其他物件"
|
|
327
327
|
},
|
|
328
328
|
dialog: {
|
|
329
|
-
emptyList: "使用者清單為空",
|
|
330
329
|
allowedPermissionType: "允許權限類型",
|
|
331
330
|
alert: "提示",
|
|
332
331
|
search: "搜尋",
|
|
333
332
|
ownerInherit: "文檔所有者,已開啟權限繼承",
|
|
334
333
|
ownerWithoutInherit: "文檔所有者,未開啟權限繼承",
|
|
335
334
|
alertContent: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
|
|
336
|
-
userEmpty: "
|
|
337
|
-
listEmpty: "
|
|
335
|
+
userEmpty: "尚未指定可編輯的人員",
|
|
336
|
+
listEmpty: "暫無保護規則",
|
|
337
|
+
listEmptyDescription: "可為工作表或指定範圍設定編輯權限。",
|
|
338
|
+
candidatesEmpty: "暫無可新增的人員",
|
|
339
|
+
searchEmpty: "找不到符合的人員",
|
|
340
|
+
searchEmptyDescription: "試試其他姓名,或清除搜尋。",
|
|
338
341
|
commonErr: "該範圍已被保護,目前無該操作權限。如需編輯,請聯絡創建者。 ",
|
|
339
342
|
editErr: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 ",
|
|
340
343
|
pasteErr: "該範圍已被保護,目前無貼上權限。如需貼上,請聯絡創作者。 ",
|
|
@@ -347,10 +350,10 @@ const locale = { "sheets-ui": {
|
|
|
347
350
|
button: {
|
|
348
351
|
confirm: "確認",
|
|
349
352
|
cancel: "取消",
|
|
350
|
-
addNewPermission: "新增權限"
|
|
353
|
+
addNewPermission: "新增權限",
|
|
354
|
+
clearSearch: "清除搜尋"
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
} };
|
|
354
358
|
|
|
355
|
-
//#endregion
|
|
356
359
|
export { locale as default };
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { ICommand } from '@univerjs/core';
|
|
16
|
+
import type { BooleanNumber, ICommand } from '@univerjs/core';
|
|
17
17
|
export interface ISetZoomRatioCommandParams {
|
|
18
18
|
zoomRatio: number;
|
|
19
|
+
/** Omission is a manual request, preserving historical callers; TRUE enters CHART continuous fit. */
|
|
20
|
+
zoomToFit?: BooleanNumber;
|
|
19
21
|
unitId: string;
|
|
20
22
|
subUnitId: string;
|
|
21
23
|
}
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IOperation } from '@univerjs/core';
|
|
16
|
+
import type { BooleanNumber, IOperation } from '@univerjs/core';
|
|
17
17
|
export interface ISetZoomRatioOperationParams {
|
|
18
18
|
zoomRatio: number;
|
|
19
|
+
/** Historical omission remains manual; only CHART consumes this optional view policy. */
|
|
20
|
+
zoomToFit?: BooleanNumber;
|
|
19
21
|
unitId: string;
|
|
20
22
|
subUnitId: string;
|
|
21
23
|
}
|
|
@@ -22,6 +22,7 @@ export declare const EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY = "EMBEDDING_FORMULA
|
|
|
22
22
|
export declare const EMBEDDING_CELL_EDITOR_COMPONENT_KEY = "EMBEDDING_CELL_EDITOR_COMPONENT_KEY";
|
|
23
23
|
export declare enum SHEET_VIEW_KEY {
|
|
24
24
|
MAIN = "__SpreadsheetRender__",
|
|
25
|
+
CHART_PAGE = "__ChartSheetPage__",
|
|
25
26
|
ROW = "__SpreadsheetRowHeader__",
|
|
26
27
|
COLUMN = "__SpreadsheetColumnHeader__",
|
|
27
28
|
LEFT_TOP = "__SpreadsheetLeftTopPlaceholder__"
|
|
@@ -29,11 +29,23 @@ export interface IUniverSheetsUIConfig {
|
|
|
29
29
|
* @default true
|
|
30
30
|
*/
|
|
31
31
|
allowArrowKeyWrapOnSheetBoundary?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to animate the selection outline when clicking between cells on desktop.
|
|
34
|
+
* The system preference for reduced motion takes precedence.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
selectionAnimation?: boolean;
|
|
32
38
|
/**
|
|
33
39
|
* The maximum count of rows triggering auto height. This is used to avoid performance issue.
|
|
34
40
|
* @default 1000
|
|
35
41
|
*/
|
|
36
42
|
maxAutoHeightCount?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show the desktop fill handle for dragging and double-click filling.
|
|
45
|
+
* Does not affect fill commands or Facade APIs.
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
enableFillHandle?: boolean;
|
|
37
49
|
/**
|
|
38
50
|
* Whether to show the formula bar.
|
|
39
51
|
*/
|
|
@@ -88,6 +100,12 @@ export interface IUniverSheetsUIConfig {
|
|
|
88
100
|
clipboardConfig?: {
|
|
89
101
|
hidePasteOptions?: boolean;
|
|
90
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Whether to ask for confirmation before a dragged range overwrites existing cell content.
|
|
105
|
+
* Disabling the warning does not bypass move validation or undo/redo.
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
warnBeforeDragOverwrite?: boolean;
|
|
91
109
|
/** The config of the scroll bar. */
|
|
92
110
|
scrollConfig?: IScrollBarProps;
|
|
93
111
|
/**
|
|
@@ -25,4 +25,7 @@ export declare class CellCustomRenderController extends Disposable implements IR
|
|
|
25
25
|
private _enterActiveRender;
|
|
26
26
|
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: RenderManagerService, _permissionService: IPermissionService);
|
|
27
27
|
private _initEventBinding;
|
|
28
|
+
private _getActiveRender;
|
|
29
|
+
private _bindEvents;
|
|
30
|
+
private _handlePointerMove;
|
|
28
31
|
}
|
|
@@ -21,6 +21,5 @@ export declare class ComponentsController extends Disposable {
|
|
|
21
21
|
private readonly _injector;
|
|
22
22
|
constructor(_componentManager: ComponentManager, _iconManager: IconManager, _injector: Injector);
|
|
23
23
|
private _registerComponents;
|
|
24
|
-
private _registerParts;
|
|
25
24
|
private _registerIcons;
|
|
26
25
|
}
|
|
@@ -40,6 +40,16 @@ export declare class EditorDataSyncController extends Disposable {
|
|
|
40
40
|
private _editorSyncHandler;
|
|
41
41
|
private _commandExecutedListener;
|
|
42
42
|
private _shouldRefreshCurrentEditCell;
|
|
43
|
+
/**
|
|
44
|
+
* Whether a matched mutation replaces the edited cell's content. Moving cells into or out of the edited
|
|
45
|
+
* cell does; a style-only write does not, because the editor does not own the cell style it renders with.
|
|
46
|
+
*/
|
|
47
|
+
private _writesCellContent;
|
|
48
|
+
/**
|
|
49
|
+
* A row/column pair is only meaningful inside the workbook and worksheet it belongs to, so a mutation
|
|
50
|
+
* on another sheet or another workbook must not be treated as an update of the edit cell.
|
|
51
|
+
*/
|
|
52
|
+
private _isEditedUnit;
|
|
43
53
|
private _hasMatrixCell;
|
|
44
54
|
private _syncActionsAndRender;
|
|
45
55
|
private _syncContentAndRender;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
17
17
|
import type { MenuConfig } from '@univerjs/ui';
|
|
18
|
-
import { Disposable, IConfigService, IPermissionService } from '@univerjs/core';
|
|
18
|
+
import { Disposable, IConfigService, IPermissionService, ThemeService } from '@univerjs/core';
|
|
19
19
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
20
|
import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
|
|
21
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -28,9 +28,10 @@ export declare class SheetPermissionRenderController extends Disposable implemen
|
|
|
28
28
|
private _sheetSkeletonManagerService;
|
|
29
29
|
private _permissionService;
|
|
30
30
|
private _configService;
|
|
31
|
+
private readonly _themeService;
|
|
31
32
|
private _rangeProtectionCanViewRenderExtension;
|
|
32
33
|
private _rangeProtectionCanNotViewRenderExtension;
|
|
33
|
-
constructor(_context: IRenderContext, _rangeProtectionRuleModel: RangeProtectionRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _permissionService: IPermissionService, _configService: IConfigService);
|
|
34
|
+
constructor(_context: IRenderContext, _rangeProtectionRuleModel: RangeProtectionRuleModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _permissionService: IPermissionService, _configService: IConfigService, _themeService: ThemeService);
|
|
34
35
|
private _initRender;
|
|
35
36
|
private _initSkeleton;
|
|
36
37
|
}
|
|
@@ -40,8 +41,9 @@ export declare class WorksheetProtectionRenderController extends Disposable impl
|
|
|
40
41
|
private _sheetSkeletonManagerService;
|
|
41
42
|
private _worksheetProtectionRuleModel;
|
|
42
43
|
private _configService;
|
|
44
|
+
private readonly _themeService;
|
|
43
45
|
private _worksheetProtectionRenderExtension;
|
|
44
|
-
constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _configService: IConfigService);
|
|
46
|
+
constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _configService: IConfigService, _themeService: ThemeService);
|
|
45
47
|
private _initRender;
|
|
46
48
|
private _initSkeleton;
|
|
47
49
|
}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import type { ISheetEmbedRuntimeDomScope } from '../../services/sheet-embed-integration.service';
|
|
19
|
-
import type { ISheetHostChromeOverride } from '../../services/sheet-host-chrome-override.service';
|
|
20
18
|
import { Disposable, IContextService, Injector } from '@univerjs/core';
|
|
21
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
22
20
|
import { IContextMenuService, IPlatformService } from '@univerjs/ui';
|
|
21
|
+
import type { ISheetEmbedRuntimeDomScope } from '../../services/sheet-embed-integration.service';
|
|
22
|
+
import type { ISheetHostChromeOverride } from '../../services/sheet-host-chrome-override.service';
|
|
23
23
|
import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
|
|
24
24
|
/**
|
|
25
25
|
* This controller subscribe to context menu events in sheet rendering views and invoke context menu at a correct
|
|
@@ -34,6 +34,7 @@ export declare class SheetContextMenuRenderController extends Disposable impleme
|
|
|
34
34
|
private readonly _platformService;
|
|
35
35
|
private readonly _contextService;
|
|
36
36
|
constructor(_context: IRenderContext<Workbook>, _contextMenuService: IContextMenuService, _selectionManagerService: SheetsSelectionsService, _selectionRenderService: ISheetSelectionRenderService, _injector: Injector, _platformService: IPlatformService, _contextService: IContextService);
|
|
37
|
+
private _getSheetType;
|
|
37
38
|
private _init;
|
|
38
39
|
private _isContextMenuGesture;
|
|
39
40
|
private _initEmbedRuntimeSessionListener;
|
|
@@ -30,12 +30,15 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
|
|
|
30
30
|
private readonly _embedRuntimeFocusCoordinator?;
|
|
31
31
|
private _d;
|
|
32
32
|
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _embedRuntimeFocusCoordinator?: ISheetEmbedRuntimeFocusCoordinator | undefined);
|
|
33
|
+
private _getSheetType;
|
|
34
|
+
dispose(): void;
|
|
33
35
|
private _init;
|
|
34
36
|
private _disposeCurrent;
|
|
35
37
|
private _initSelectionChangeListener;
|
|
36
38
|
private _updateEditorPosition;
|
|
37
39
|
refreshEditorPosition(): void;
|
|
38
40
|
private _commandExecutedListener;
|
|
41
|
+
private _closeEditorForChart;
|
|
39
42
|
private _tryHideEditor;
|
|
40
43
|
private _isEmbeddedFormulaEditorActive;
|
|
41
44
|
private _hideEditor;
|
|
@@ -56,6 +56,7 @@ export declare class HeaderFreezeRenderController extends Disposable implements
|
|
|
56
56
|
FREEZE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, null>;
|
|
57
57
|
}>;
|
|
58
58
|
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
|
|
59
|
+
private _getSheetType;
|
|
59
60
|
dispose(): void;
|
|
60
61
|
private _initialize;
|
|
61
62
|
private _createFreeze;
|
|
@@ -15,14 +15,17 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IRange, Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, ICommandService, InterceptorManager } from '@univerjs/core';
|
|
18
|
+
import { Disposable, ICommandService, IContextService, InterceptorManager } from '@univerjs/core';
|
|
19
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
20
|
+
import { IPlatformService } from '@univerjs/ui';
|
|
20
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
21
22
|
export declare const HEADER_MOVE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, IRange>;
|
|
22
23
|
export declare class HeaderMoveRenderController extends Disposable implements IRenderModule {
|
|
23
24
|
private readonly _context;
|
|
24
25
|
private readonly _sheetSkeletonManagerService;
|
|
25
26
|
private readonly _commandService;
|
|
27
|
+
private readonly _platformService;
|
|
28
|
+
private readonly _contextService;
|
|
26
29
|
private _startOffsetX;
|
|
27
30
|
private _startOffsetY;
|
|
28
31
|
private _moveHelperBackgroundShape;
|
|
@@ -41,11 +44,15 @@ export declare class HeaderMoveRenderController extends Disposable implements IR
|
|
|
41
44
|
HEADER_MOVE_PERMISSION_CHECK: import("@univerjs/core").IInterceptor<boolean, IRange>;
|
|
42
45
|
}>;
|
|
43
46
|
private readonly _workbookSelections;
|
|
44
|
-
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
|
|
47
|
+
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _platformService: IPlatformService, _contextService: IContextService);
|
|
45
48
|
dispose(): void;
|
|
46
49
|
private _init;
|
|
47
50
|
private _initialRowOrColumn;
|
|
51
|
+
private _onPointerDown;
|
|
52
|
+
private _startDragging;
|
|
53
|
+
private _onPointerUp;
|
|
48
54
|
private _rowColumnMoving;
|
|
55
|
+
private _updateMoveHelperLine;
|
|
49
56
|
private _clearObserverEvent;
|
|
50
57
|
private _newBackgroundAndLine;
|
|
51
58
|
private _disposeBackgroundAndLine;
|
package/lib/types/controllers/render-controllers/mobile/mobile-header-resize.render-controller.d.ts
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, ICommandService, IContextService } from '@univerjs/core';
|
|
19
|
-
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
18
|
+
import { Disposable, ICommandService, IContextService, Injector, IPermissionService } from '@univerjs/core';
|
|
19
|
+
import { RangeProtectionRuleModel, SheetsSelectionsService } from '@univerjs/sheets';
|
|
20
20
|
import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
|
|
21
21
|
import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
|
|
22
22
|
export declare class MobileHeaderResizeRenderController extends Disposable implements IRenderModule {
|
|
@@ -26,6 +26,9 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
|
|
|
26
26
|
private readonly _commandService;
|
|
27
27
|
private readonly _contextService;
|
|
28
28
|
private readonly _scrollManagerService;
|
|
29
|
+
private readonly _injector;
|
|
30
|
+
private readonly _permissionService;
|
|
31
|
+
private readonly _rangeProtectionRuleModel;
|
|
29
32
|
private _currentRow;
|
|
30
33
|
private _currentColumn;
|
|
31
34
|
private _rowResizeButton;
|
|
@@ -35,7 +38,7 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
|
|
|
35
38
|
private _resizeListeners;
|
|
36
39
|
private _selectionSubscription;
|
|
37
40
|
private _scrollSubscription;
|
|
38
|
-
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionManagerService: SheetsSelectionsService, _commandService: ICommandService, _contextService: IContextService, _scrollManagerService: SheetScrollManagerService);
|
|
41
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionManagerService: SheetsSelectionsService, _commandService: ICommandService, _contextService: IContextService, _scrollManagerService: SheetScrollManagerService, _injector: Injector, _permissionService: IPermissionService, _rangeProtectionRuleModel: RangeProtectionRuleModel);
|
|
39
42
|
dispose(): void;
|
|
40
43
|
private _init;
|
|
41
44
|
private _initResizeShapes;
|
|
@@ -48,6 +51,7 @@ export declare class MobileHeaderResizeRenderController extends Disposable imple
|
|
|
48
51
|
private _bindPointerEventsToButton;
|
|
49
52
|
private _startResize;
|
|
50
53
|
private _setupPointerHandlers;
|
|
54
|
+
private _canResize;
|
|
51
55
|
private _bindResizeListeners;
|
|
52
56
|
private _createResizeHelper;
|
|
53
57
|
private _updateResizeHelper;
|
|
@@ -33,12 +33,21 @@ export declare class SheetsScrollRenderController extends Disposable implements
|
|
|
33
33
|
private _pendingWheelOffsetX;
|
|
34
34
|
private _pendingWheelOffsetY;
|
|
35
35
|
private _pendingWheelFrameId;
|
|
36
|
+
private _scrollGeneration;
|
|
37
|
+
private readonly _selectionScrollTimers;
|
|
38
|
+
private _pendingWheelFrameSubscription;
|
|
39
|
+
private _pendingWheelSheetId;
|
|
36
40
|
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _contextService: IContextService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _scrollManagerService: SheetScrollManagerService);
|
|
41
|
+
private _getSheetType;
|
|
37
42
|
private _wheelEventListener;
|
|
43
|
+
private _queueWheelScroll;
|
|
44
|
+
private _cancelPendingWheelScroll;
|
|
38
45
|
private _flushPendingWheelScroll;
|
|
39
46
|
private _canUseScrollFastPath;
|
|
40
47
|
private _markSceneDirtyForScrolling;
|
|
41
48
|
private _scrollBarEventListener;
|
|
49
|
+
private _cancelPendingScroll;
|
|
50
|
+
private _getActiveGridSkeleton;
|
|
42
51
|
private _initSkeletonListener;
|
|
43
52
|
_smoothScrollToViewportPos(params: {
|
|
44
53
|
viewportMain: Viewport;
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
|
+
import type { ISetArrayFormulaDataMutationParams } from '@univerjs/engine-formula';
|
|
17
18
|
import type { IRenderContext, IRenderModule, ISummaryMetric } from '@univerjs/engine-render';
|
|
18
19
|
import { ICommandService, IConfigService, RxDisposable } from '@univerjs/core';
|
|
20
|
+
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
19
21
|
import { ITelemetryService } from '@univerjs/telemetry';
|
|
20
22
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
21
23
|
import { SheetsRenderService } from '../../services/sheets-render.service';
|
|
@@ -33,9 +35,13 @@ export declare class SheetRenderController extends RxDisposable implements IRend
|
|
|
33
35
|
private readonly _sheetRenderService;
|
|
34
36
|
private readonly _commandService;
|
|
35
37
|
private readonly _telemetryService?;
|
|
38
|
+
private readonly _formulaDataModel?;
|
|
39
|
+
private _arrayFormulaSheets;
|
|
40
|
+
private _hadEmbeddedArrayData;
|
|
36
41
|
private _renderMetric$;
|
|
37
42
|
renderMetric$: import("rxjs").Observable<ITelemetryData>;
|
|
38
|
-
constructor(_context: IRenderContext<Workbook>, _configService: IConfigService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetRenderService: SheetsRenderService, _commandService: ICommandService, _telemetryService?: ITelemetryService | undefined);
|
|
43
|
+
constructor(_context: IRenderContext<Workbook>, _configService: IConfigService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetRenderService: SheetsRenderService, _commandService: ICommandService, _telemetryService?: ITelemetryService | undefined, _formulaDataModel?: FormulaDataModel | undefined);
|
|
44
|
+
private _getSheetType;
|
|
39
45
|
private _addNewRender;
|
|
40
46
|
private _renderFrameTimeMetric;
|
|
41
47
|
private _renderFrameTags;
|
|
@@ -60,6 +66,7 @@ export declare class SheetRenderController extends RxDisposable implements IRend
|
|
|
60
66
|
* +-----------------+--------------------+-------------------+
|
|
61
67
|
*/
|
|
62
68
|
private _addViewport;
|
|
69
|
+
private _initWorksheetVisibility;
|
|
63
70
|
private _initRerenderScheduler;
|
|
64
71
|
private _initCommandListener;
|
|
65
72
|
private _markUnitDirty;
|
|
@@ -74,6 +81,7 @@ export declare class SheetRenderController extends RxDisposable implements IRend
|
|
|
74
81
|
private _markViewportDirty;
|
|
75
82
|
private _spreadsheetViewports;
|
|
76
83
|
}
|
|
84
|
+
export declare function getArrayFormulaSheetIds(unitId: string, params: Pick<ISetArrayFormulaDataMutationParams, 'arrayFormulaCellData' | 'arrayFormulaRange'>): Set<string>;
|
|
77
85
|
export declare function getLeftTopPlaceholderSize(skeleton: {
|
|
78
86
|
rowHeaderWidth: number;
|
|
79
87
|
columnHeaderHeight: number;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, ICommandService, IContextService } from '@univerjs/core';
|
|
18
|
+
import { BooleanNumber, Disposable, ICommandService, IContextService } from '@univerjs/core';
|
|
19
19
|
import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
20
20
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
21
21
|
/**
|
|
@@ -28,10 +28,10 @@ export declare class SheetsZoomRenderController extends Disposable implements IR
|
|
|
28
28
|
private readonly _contextService;
|
|
29
29
|
private readonly _editorBridgeService?;
|
|
30
30
|
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _contextService: IContextService, _editorBridgeService?: IEditorBridgeService | undefined);
|
|
31
|
-
updateZoom(worksheetId: string, zoomRatio: number): boolean;
|
|
31
|
+
updateZoom(worksheetId: string, zoomRatio: number, zoomToFit?: BooleanNumber): boolean;
|
|
32
32
|
private _initZoomEventListener;
|
|
33
33
|
private _zoom;
|
|
34
|
-
private
|
|
34
|
+
private _initWorksheetListener;
|
|
35
35
|
/**
|
|
36
36
|
* Triggered when zoom and switch sheet.
|
|
37
37
|
* @param zoomRatio
|
|
@@ -176,6 +176,10 @@ export interface IFWorksheetUIMixin {
|
|
|
176
176
|
getSkeleton(): Nullable<SpreadsheetSkeleton>;
|
|
177
177
|
/**
|
|
178
178
|
* Sets the width of all columns starting at the given column position to fit their contents.
|
|
179
|
+
*
|
|
180
|
+
* To resize multiple consecutive columns, pass the full `numColumns` in one call
|
|
181
|
+
* instead of repeatedly calling this method with the default count of one.
|
|
182
|
+
*
|
|
179
183
|
* @param {number} startColumn - The position of the first column to resize. index starts at 0.
|
|
180
184
|
* @param {number} [numColumns] - The number of columns to auto-resize. Default is 1.
|
|
181
185
|
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
@@ -192,6 +196,10 @@ export interface IFWorksheetUIMixin {
|
|
|
192
196
|
autoResizeColumns(startColumn: number, numColumns?: number): FWorksheet;
|
|
193
197
|
/**
|
|
194
198
|
* Sets the height of all rows starting at the given row position to fit their contents.
|
|
199
|
+
*
|
|
200
|
+
* To resize multiple consecutive rows, pass the full `numRows` in one call
|
|
201
|
+
* instead of repeatedly calling this method with the default count of one.
|
|
202
|
+
*
|
|
195
203
|
* @param {number} startRow - The position of the first row to resize. index starts at 0.
|
|
196
204
|
* @param {number} [numRows] - The number of rows to auto-resize. Default is 1.
|
|
197
205
|
* @returns {FWorksheet} - The FWorksheet instance for chaining.
|
|
@@ -363,7 +363,6 @@ declare const locale: {
|
|
|
363
363
|
EditExtraObject: string;
|
|
364
364
|
};
|
|
365
365
|
dialog: {
|
|
366
|
-
emptyList: string;
|
|
367
366
|
allowedPermissionType: string;
|
|
368
367
|
alert: string;
|
|
369
368
|
search: string;
|
|
@@ -372,6 +371,10 @@ declare const locale: {
|
|
|
372
371
|
alertContent: string;
|
|
373
372
|
userEmpty: string;
|
|
374
373
|
listEmpty: string;
|
|
374
|
+
listEmptyDescription: string;
|
|
375
|
+
candidatesEmpty: string;
|
|
376
|
+
searchEmpty: string;
|
|
377
|
+
searchEmptyDescription: string;
|
|
375
378
|
commonErr: string;
|
|
376
379
|
editErr: string;
|
|
377
380
|
pasteErr: string;
|
|
@@ -385,6 +388,7 @@ declare const locale: {
|
|
|
385
388
|
confirm: string;
|
|
386
389
|
cancel: string;
|
|
387
390
|
addNewPermission: string;
|
|
391
|
+
clearSearch: string;
|
|
388
392
|
};
|
|
389
393
|
};
|
|
390
394
|
};
|
|
@@ -36,7 +36,7 @@ export declare function getCurrentExclusiveRangeInterest$(accessor: IAccessor, d
|
|
|
36
36
|
* @returns {Observable<boolean>} The observable combine with exclusive range
|
|
37
37
|
*/
|
|
38
38
|
export declare function getObservableWithExclusiveRange$(accessor: IAccessor, observable$: Observable<boolean>, disableGroupSet?: Set<string>): Observable<boolean>;
|
|
39
|
-
export declare function getCurrentRangeDisable$(accessor: IAccessor, permissionTypes?: IPermissionTypes, supportCellEdit?: boolean): Observable<boolean>;
|
|
39
|
+
export declare function getCurrentRangeDisable$(accessor: IAccessor, permissionTypes?: IPermissionTypes, supportCellEdit?: boolean, supportShapeText?: boolean): Observable<boolean>;
|
|
40
40
|
export declare function getBaseRangeMenuHidden$(accessor: IAccessor): Observable<boolean>;
|
|
41
41
|
export declare function getInsertAfterMenuHidden$(accessor: IAccessor, type: 'row' | 'col'): Observable<boolean>;
|
|
42
42
|
export declare function getInsertBeforeMenuHidden$(accessor: IAccessor, type: 'row' | 'col'): Observable<boolean>;
|
|
@@ -14,4 +14,49 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IAccessor } from '@univerjs/core';
|
|
17
|
-
export declare function getFontStyleAtCursor(accessor: IAccessor):
|
|
17
|
+
export declare function getFontStyleAtCursor(accessor: IAccessor): {
|
|
18
|
+
st: number;
|
|
19
|
+
ed: number;
|
|
20
|
+
sId?: string;
|
|
21
|
+
ts: {
|
|
22
|
+
ff?: import("@univerjs/core").Nullable<string>;
|
|
23
|
+
eastAsiaFontFamily?: import("@univerjs/core").Nullable<string>;
|
|
24
|
+
it?: import("@univerjs/core").BooleanNumber;
|
|
25
|
+
bl?: import("@univerjs/core").BooleanNumber;
|
|
26
|
+
ul?: import("@univerjs/core").ITextDecoration;
|
|
27
|
+
bbl?: import("@univerjs/core").ITextDecoration;
|
|
28
|
+
st?: import("@univerjs/core").ITextDecoration;
|
|
29
|
+
ol?: import("@univerjs/core").ITextDecoration;
|
|
30
|
+
bg?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
31
|
+
bd?: import("@univerjs/core").Nullable<import("@univerjs/core").IBorderData>;
|
|
32
|
+
cl?: import("@univerjs/core").Nullable<import("@univerjs/core").IColorStyle>;
|
|
33
|
+
va?: import("@univerjs/core").Nullable<import("@univerjs/core").BaselineOffset>;
|
|
34
|
+
n?: import("@univerjs/core").Nullable<{
|
|
35
|
+
pattern: string;
|
|
36
|
+
}>;
|
|
37
|
+
hidden?: boolean;
|
|
38
|
+
fontHint?: 'default' | 'eastAsia' | 'cs';
|
|
39
|
+
positionedTab?: {
|
|
40
|
+
alignment: import("@univerjs/core").TabStopAlignment;
|
|
41
|
+
relativeTo: 'margin' | 'indent';
|
|
42
|
+
leader?: import("@univerjs/core").TabStopLeader;
|
|
43
|
+
};
|
|
44
|
+
symbol?: {
|
|
45
|
+
font: string;
|
|
46
|
+
code: number;
|
|
47
|
+
};
|
|
48
|
+
lang?: string;
|
|
49
|
+
altLang?: string;
|
|
50
|
+
kerning?: number;
|
|
51
|
+
caps?: boolean;
|
|
52
|
+
smallCaps?: boolean;
|
|
53
|
+
sc?: number;
|
|
54
|
+
pos?: number;
|
|
55
|
+
sa?: number;
|
|
56
|
+
textFill?: import("@univerjs/core").IDocTextFill;
|
|
57
|
+
textOutline?: import("@univerjs/core").IDocTextOutline;
|
|
58
|
+
glow?: import("@univerjs/core").IGlowEffect;
|
|
59
|
+
outerShadow?: import("@univerjs/core").IShadowEffect;
|
|
60
|
+
fs: number | undefined;
|
|
61
|
+
};
|
|
62
|
+
} | null | undefined;
|