@univerjs/ui 0.4.2 → 0.5.0-beta.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.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +22 -22
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/facade.js +46 -0
  10. package/lib/es/index.js +5941 -6313
  11. package/lib/es/locale/en-US.js +64 -0
  12. package/lib/es/locale/fa-IR.js +64 -0
  13. package/lib/es/locale/ru-RU.js +64 -0
  14. package/lib/es/locale/vi-VN.js +64 -0
  15. package/lib/es/locale/zh-CN.js +64 -0
  16. package/lib/es/locale/zh-TW.js +64 -0
  17. package/lib/index.css +1 -1
  18. package/lib/types/common/menu-hidden-observable.d.ts +1 -1
  19. package/lib/types/components/hooks/observable.d.ts +2 -0
  20. package/lib/types/components/progress-bar/ProgressBar.d.ts +1 -0
  21. package/lib/types/facade/f-hooks.d.ts +38 -0
  22. package/lib/types/facade/f-univer.d.ts +23 -0
  23. package/lib/types/facade/index.d.ts +17 -0
  24. package/lib/types/index.d.ts +5 -5
  25. package/lib/types/services/menu/menu.d.ts +0 -32
  26. package/lib/types/services/popup/canvas-popup.service.d.ts +5 -2
  27. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -2
  28. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +4 -1
  29. package/lib/types/services/sidebar/hooks/useSidebarClick.d.ts +19 -0
  30. package/lib/types/services/sidebar/sidebar.service.d.ts +2 -0
  31. package/lib/types/views/components/popup/RectPopup.d.ts +41 -0
  32. package/lib/types/views/components/ribbon/hook.d.ts +1 -24
  33. package/lib/umd/facade.js +1 -0
  34. package/lib/umd/index.js +22 -22
  35. package/lib/umd/locale/en-US.js +1 -0
  36. package/lib/umd/locale/fa-IR.js +1 -0
  37. package/lib/umd/locale/ru-RU.js +1 -0
  38. package/lib/umd/locale/vi-VN.js +1 -0
  39. package/lib/umd/locale/zh-CN.js +1 -0
  40. package/lib/umd/locale/zh-TW.js +1 -0
  41. package/package.json +37 -21
  42. package/lib/locale/en-US.json +0 -61
  43. package/lib/locale/fa-IR.json +0 -61
  44. package/lib/locale/ru-RU.json +0 -61
  45. package/lib/locale/vi-VN.json +0 -61
  46. package/lib/locale/zh-CN.json +0 -61
  47. package/lib/locale/zh-TW.json +0 -61
  48. package/lib/types/commands/operations/editor/set-editor-resize.operation.d.ts +0 -2
  49. package/lib/types/services/menu/menu.service.d.ts +0 -57
@@ -0,0 +1,64 @@
1
+ const e = {
2
+ ribbon: {
3
+ start: "Start",
4
+ insert: "Insert",
5
+ formulas: "Formulas",
6
+ data: "Data",
7
+ view: "View",
8
+ others: "Others",
9
+ more: "More"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "Microsoft YaHei",
17
+ SimSun: "SimSun",
18
+ SimHei: "SimHei",
19
+ Kaiti: "Kaiti",
20
+ FangSong: "FangSong",
21
+ NSimSun: "NSimSun",
22
+ STXinwei: "STXinwei",
23
+ STXingkai: "STXingkai",
24
+ STLiti: "STLiti",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "Shortcuts"
31
+ },
32
+ shortcut: {
33
+ undo: "Undo",
34
+ redo: "Redo",
35
+ cut: "Cut",
36
+ copy: "Copy",
37
+ paste: "Paste",
38
+ "shortcut-panel": "Toggle Shortcut Panel"
39
+ },
40
+ "common-edit": "Common Editing Shortcuts",
41
+ "toggle-shortcut-panel": "Toggle Shortcut Panel",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "Permission Denied",
45
+ content: "Please allow Univer to access your clipboard."
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "Please enter a valid formula, such as =SUM(A1)",
50
+ rangeError: "Please enter a valid range, such as A1:B10"
51
+ },
52
+ rangeSelector: {
53
+ title: "Select a data range",
54
+ addAnotherRange: "Add range",
55
+ buttonTooltip: "Select data range",
56
+ placeHolder: "Select range or enter.",
57
+ confirm: "Confirm",
58
+ cancel: "Cancel"
59
+ },
60
+ "global-shortcut": "Global Shortcut"
61
+ };
62
+ export {
63
+ e as default
64
+ };
@@ -0,0 +1,64 @@
1
+ const i = {
2
+ ribbon: {
3
+ start: "شروع",
4
+ insert: "درج",
5
+ formulas: "فرمول‌ها",
6
+ data: "داده‌ها",
7
+ view: "نمایش",
8
+ others: "دیگر",
9
+ more: "بیشتر"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "Microsoft YaHei",
17
+ SimSun: "SimSun",
18
+ SimHei: "SimHei",
19
+ Kaiti: "Kaiti",
20
+ FangSong: "FangSong",
21
+ NSimSun: "NSimSun",
22
+ STXinwei: "STXinwei",
23
+ STXingkai: "STXingkai",
24
+ STLiti: "STLiti",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "کلیدهای میانبر"
31
+ },
32
+ shortcut: {
33
+ undo: "بازگرداندن",
34
+ redo: "تکرار",
35
+ cut: "بریدن",
36
+ copy: "کپی کردن",
37
+ paste: "چسباندن",
38
+ "shortcut-panel": "نمایش/مخفی کردن پنل کلیدهای میانبر"
39
+ },
40
+ "common-edit": "کلیدهای میانبر ویرایش عمومی",
41
+ "toggle-shortcut-panel": "نمایش/مخفی کردن پنل کلیدهای میانبر",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "اجازه دسترسی داده نشده است",
45
+ content: "لطفا به Univer اجازه دسترسی به کلیپ بورد خود را بدهید."
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "لطفا یک فرمول معتبر مانند =SUM(A1) وارد کنید.",
50
+ rangeError: "لطفا یک محدوده معتبر مانند A1:B10 وارد کنید."
51
+ },
52
+ rangeSelector: {
53
+ title: "انتخاب محدوده داده",
54
+ addAnotherRange: "افزودن محدوده",
55
+ buttonTooltip: "انتخاب محدوده داده",
56
+ placeHolder: "انتخاب محدوده یا وارد کردن.",
57
+ confirm: "تایید",
58
+ cancel: "انصراف"
59
+ },
60
+ "global-shortcut": "کلید میانبر جهانی"
61
+ };
62
+ export {
63
+ i as default
64
+ };
@@ -0,0 +1,64 @@
1
+ const i = {
2
+ ribbon: {
3
+ start: "Начало",
4
+ insert: "Вставка",
5
+ formulas: "Формулы",
6
+ data: "Данные",
7
+ view: "Вид",
8
+ others: "Другие",
9
+ more: "Больше"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "Microsoft YaHei",
17
+ SimSun: "SimSun",
18
+ SimHei: "SimHei",
19
+ Kaiti: "Kaiti",
20
+ FangSong: "FangSong",
21
+ NSimSun: "NSimSun",
22
+ STXinwei: "STXinwei",
23
+ STXingkai: "STXingkai",
24
+ STLiti: "STLiti",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "Ярлыки"
31
+ },
32
+ shortcut: {
33
+ undo: "Отменить",
34
+ redo: "Повторить",
35
+ cut: "Вырезать",
36
+ copy: "Копировать",
37
+ paste: "Вставить",
38
+ "shortcut-panel": "Переключить панель ярлыков"
39
+ },
40
+ "common-edit": "Общие команды редактирования",
41
+ "toggle-shortcut-panel": "Переключить панель ярлыков",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "Доступ запрещен",
45
+ content: "Пожалуйста, разрешите Univer доступ к вашему буферу обмена."
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "Пожалуйста, введите корректную формулу, например =SUM(A1)",
50
+ rangeError: "Пожалуйста, введите корректный диапазон, например A1:B10"
51
+ },
52
+ rangeSelector: {
53
+ title: "Выберите диапазон данных",
54
+ addAnotherRange: "Добавить диапазон",
55
+ buttonTooltip: "Выбрать диапазон данных",
56
+ placeHolder: "Выберите диапазон или введите.",
57
+ confirm: "Подтвердить",
58
+ cancel: "Отменить"
59
+ },
60
+ "global-shortcut": "Глобальные ярлыки"
61
+ };
62
+ export {
63
+ i as default
64
+ };
@@ -0,0 +1,64 @@
1
+ const n = {
2
+ ribbon: {
3
+ start: "Bắt đầu",
4
+ insert: "Chèn",
5
+ formulas: "Công thức",
6
+ data: "Dữ liệu",
7
+ view: "Xem",
8
+ others: "Khác",
9
+ more: "Thêm"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "Microsoft YaHei",
17
+ SimSun: "SimSun",
18
+ SimHei: "SimHei",
19
+ Kaiti: "Kaiti",
20
+ FangSong: "FangSong",
21
+ NSimSun: "NSimSun",
22
+ STXinwei: "STXinwei",
23
+ STXingkai: "STXingkai",
24
+ STLiti: "STLiti",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "Bảng phím tắt"
31
+ },
32
+ shortcut: {
33
+ undo: "Hoàn tác",
34
+ redo: "Làm lại",
35
+ cut: "Cắt",
36
+ copy: "Sao chép",
37
+ paste: "Dán",
38
+ "shortcut-panel": "Mở/Đóng bảng phím tắt"
39
+ },
40
+ "common-edit": "Chỉnh sửa thường dùng",
41
+ "toggle-shortcut-panel": "Mở/Đóng bảng phím tắt",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "Không thể truy cập vào bảng nhớ tạm",
45
+ content: "Vui lòng cho phép Univer truy cập vào bảng nhớ tạm của bạn."
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "Vui lòng nhập công thức hợp lệ, ví dụ =SUM(A1)",
50
+ rangeError: "Vui lòng nhập phạm vi hợp lệ, ví dụ A1:B10"
51
+ },
52
+ rangeSelector: {
53
+ title: "Chọn một phạm vi dữ liệu",
54
+ addAnotherRange: "Thêm phạm vi",
55
+ buttonTooltip: "Chọn phạm vi dữ liệu",
56
+ placeHolder: "Chọn phạm vi hoặc nhập",
57
+ confirm: "Xác nhận",
58
+ cancel: "Hủy"
59
+ },
60
+ "global-shortcut": "Phím tắt toàn cầu"
61
+ };
62
+ export {
63
+ n as default
64
+ };
@@ -0,0 +1,64 @@
1
+ const t = {
2
+ ribbon: {
3
+ start: "开始",
4
+ insert: "插入",
5
+ formulas: "公式",
6
+ data: "数据",
7
+ view: "视图",
8
+ others: "其他",
9
+ more: "更多"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "微软雅黑",
17
+ SimSun: "宋体",
18
+ SimHei: "黑体",
19
+ Kaiti: "楷体",
20
+ FangSong: "仿宋",
21
+ NSimSun: "新宋体",
22
+ STXinwei: "华文新魏",
23
+ STXingkai: "华文行楷",
24
+ STLiti: "华文隶书",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "快捷键面板"
31
+ },
32
+ shortcut: {
33
+ undo: "撤销",
34
+ redo: "重做",
35
+ cut: "剪切",
36
+ copy: "复制",
37
+ paste: "粘贴",
38
+ "shortcut-panel": "打开收起快捷键面板"
39
+ },
40
+ "common-edit": "常用编辑",
41
+ "toggle-shortcut-panel": "打开收起快捷键面板",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "无法访问剪贴板",
45
+ content: "请允许 Univer 访问您的剪贴板。"
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "请输入合法的公式,例如=SUM(A1)",
50
+ rangeError: "请输入合法的范围,例如 A1:B10"
51
+ },
52
+ rangeSelector: {
53
+ title: "选择一个数据范围",
54
+ addAnotherRange: "添加范围",
55
+ buttonTooltip: "选择数据范围",
56
+ placeHolder: "框选范围或输入",
57
+ confirm: "确认",
58
+ cancel: "取消"
59
+ },
60
+ "global-shortcut": "全局快捷键"
61
+ };
62
+ export {
63
+ t as default
64
+ };
@@ -0,0 +1,64 @@
1
+ const t = {
2
+ ribbon: {
3
+ start: "開始",
4
+ insert: "插入",
5
+ formulas: "公式",
6
+ data: "資料",
7
+ view: "視圖",
8
+ others: "其他",
9
+ more: "更多"
10
+ },
11
+ fontFamily: {
12
+ TimesNewRoman: "Times New Roman",
13
+ Arial: "Arial",
14
+ Tahoma: "Tahoma",
15
+ Verdana: "Verdana",
16
+ MicrosoftYaHei: "微軟雅黑",
17
+ SimSun: "宋體",
18
+ SimHei: "黑體",
19
+ Kaiti: "楷體",
20
+ FangSong: "仿宋",
21
+ NSimSun: "新宋體",
22
+ STXinwei: "華文新魏",
23
+ STXingkai: "華文行楷",
24
+ STLiti: "華文隸書",
25
+ HanaleiFill: "HanaleiFill",
26
+ Anton: "Anton",
27
+ Pacifico: "Pacifico"
28
+ },
29
+ "shortcut-panel": {
30
+ title: "快捷鍵面板"
31
+ },
32
+ shortcut: {
33
+ undo: "撤銷",
34
+ redo: "重做",
35
+ cut: "剪切",
36
+ copy: "複製",
37
+ paste: "貼上",
38
+ "shortcut-panel": "開啟收起快捷鍵面板"
39
+ },
40
+ "common-edit": "常用編輯",
41
+ "toggle-shortcut-panel": "開啟收起快速鍵面板",
42
+ clipboard: {
43
+ authentication: {
44
+ title: "無法存取剪貼簿",
45
+ content: "請允許 Univer 存取您的剪貼簿。 "
46
+ }
47
+ },
48
+ textEditor: {
49
+ formulaError: "請輸入合法的公式,例如=SUM(A1)",
50
+ rangeError: "請輸入合法的範圍,例如 A1:B10"
51
+ },
52
+ rangeSelector: {
53
+ title: "選擇一個資料範圍",
54
+ addAnotherRange: "新增範圍",
55
+ buttonTooltip: "選擇資料範圍",
56
+ placeHolder: "框選範圍或輸入",
57
+ confirm: "確認",
58
+ cancel: "取消"
59
+ },
60
+ "global-shortcut": "全域快捷鍵"
61
+ };
62
+ export {
63
+ t as default
64
+ };
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:8px}.univer-progress-bar-container{display:flex;align-items:center;margin:0 8px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:12px;color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-headerbar{user-select:none;position:relative}.univer-headerbar>.univer-header-menu{position:absolute;top:0;right:0;display:flex;box-sizing:border-box;height:100%}.univer-headerbar>.univer-header-menu>div{user-select:none;display:inline-flex;align-items:center;height:28px;margin-left:4px;padding:2px 4px;text-align:center;border-radius:4px}.univer-headerbar>.univer-header-menu>div:hover{background-color:rgb(var(--grey-300))}.univer-menubar{display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;height:32px}.univer-menubar-item{cursor:pointer;display:block;padding:var(--padding-xs) var(--padding-sm);font-size:var(--font-size-xs);font-weight:400;border-radius:var(--border-radius-base);transition:all .1s ease-in-out}.univer-menubar-item:hover:not(.univer-menubar-item-active){background:rgb(var(--grey-300))}.univer-menubar-item-active{color:rgb(var(--color-white));background:rgb(var(--primary-color))}.univer-toolbar{user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding-right:18px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated,.univer-toolbar-item-select-button:hover,.univer-toolbar-item-select-button:hover .univer-toolbar-item-select-button-label{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select-button-label:hover{background-color:rgb(var(--grey-300))!important}.univer-toolbar-item-select-button-arrow{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;padding-right:var(--padding-xs);color:rgb(var(--grey-400))}.univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-300))}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated:hover,.univer-toolbar-item-select-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover,.univer-toolbar-item-select-arrow-activated{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color));transition:all .15s}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;z-index:-1;transition:all .2s ease-in-out}.univer-zen-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color));opacity:1}.univer-zen-zone-close{opacity:0}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-workbench-container-doc-content{background:rgb(var(--bg-color-secondary))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}
1
+ .univer-ui-plugin-sheets-font-family{overflow:hidden;width:120px;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:28px;height:24px;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:24px;line-height:24px;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-popup-fixed{position:fixed;z-index:1000;top:-9999px;left:-9999px}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-progress-bar{width:160px;height:4px;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:var(--margin-xs)}.univer-progress-bar-container{display:flex;align-items:center;margin:0 var(--margin-xs) 0 var(--margin-xs)}.univer-progress-bar-label{font-size:var(--font-size-xxs);color:rgb(var(--text-color-secondary));width:98px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--margin-xs);line-height:17px}.univer-progress-bar-inner{height:4px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:var(--font-size-xxs);color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}.univer-shortcut-panel-group-title{height:40px;font-size:13px;font-weight:700;line-height:40px}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:40px;font-size:13px;line-height:40px}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:200px;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:1px solid rgb(var(--grey-200))}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-headerbar{user-select:none;position:relative}.univer-headerbar>.univer-header-menu{position:absolute;top:0;right:0;display:flex;box-sizing:border-box;height:100%}.univer-headerbar>.univer-header-menu>div{user-select:none;display:inline-flex;align-items:center;height:28px;margin-left:4px;padding:2px 4px;text-align:center;border-radius:4px}.univer-headerbar>.univer-header-menu>div:hover{background-color:rgb(var(--grey-300))}.univer-menubar{display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;height:32px}.univer-menubar-item{cursor:pointer;display:block;padding:var(--padding-xs) var(--padding-sm);font-size:var(--font-size-xs);font-weight:400;border-radius:var(--border-radius-base);transition:all .1s ease-in-out}.univer-menubar-item:hover:not(.univer-menubar-item-active){background:rgb(var(--grey-300))}.univer-menubar-item-active{color:rgb(var(--color-white));background:rgb(var(--primary-color))}.univer-toolbar{user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-toolbar-container{padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:1px;height:20px;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding-right:18px;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated,.univer-toolbar-item-select-button:hover,.univer-toolbar-item-select-button:hover .univer-toolbar-item-select-button-label{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select-button-label:hover{background-color:rgb(var(--grey-300))!important}.univer-toolbar-item-select-button-arrow{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;padding-right:var(--padding-xs);color:rgb(var(--grey-400))}.univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-300))}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:24px;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated:hover,.univer-toolbar-item-select-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover,.univer-toolbar-item-select-arrow-activated{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color));transition:all .15s}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:380px}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color));border-left:1px solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:44px;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;z-index:-1;transition:all .2s ease-in-out}.univer-zen-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color));opacity:1}.univer-zen-zone-close{opacity:0}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-workbench-container-doc-content{background:rgb(var(--bg-color-secondary))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:32px;max-width:200px;display:grid;grid-gap:4px;background-color:#000;border-radius:4px;padding:4px 8px}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:48px}.univer-mobile-menu-item>svg{font-size:18px;height:18px;width:18px}.univer-mobile-menu-item>span{width:100%;margin-top:2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:1px solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:280px;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}
@@ -1,4 +1,4 @@
1
1
  import { IAccessor, UniverInstanceType } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
- export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType, matchUnitId?: string, needHideUnitId?: string): Observable<boolean>;
3
+ export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType, matchUnitId?: string, needHideUnitId?: string | string[]): Observable<boolean>;
4
4
  export declare function getHeaderFooterMenuHiddenObservable(accessor: IAccessor): Observable<boolean>;
@@ -1,4 +1,5 @@
1
1
  import { Nullable } from '@univerjs/core';
2
+ import { RefObject } from 'react';
2
3
  import { Observable } from 'rxjs';
3
4
  type ObservableOrFn<T> = Observable<T> | (() => Observable<T>);
4
5
  export declare function useObservable<T>(observable: ObservableOrFn<T>, defaultValue: T | undefined, shouldHaveSyncValue?: true): T;
@@ -7,4 +8,5 @@ export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>
7
8
  export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: T, shouldHaveSyncValue?: boolean, deps?: any[]): T;
8
9
  export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue: undefined, shouldHaveSyncValue: true, deps?: any[]): T;
9
10
  export declare function useObservable<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue?: T, shouldHaveSyncValue?: boolean, deps?: any[]): T | undefined;
11
+ export declare function useObservableRef<T>(observable: Nullable<ObservableOrFn<T>>, defaultValue?: T): RefObject<Nullable<T>>;
10
12
  export {};
@@ -3,6 +3,7 @@ export interface IProgressBarProps {
3
3
  progress: {
4
4
  done: number;
5
5
  count: number;
6
+ label?: string;
6
7
  };
7
8
  barColor?: string;
8
9
  onTerminate?: () => void;
@@ -0,0 +1,38 @@
1
+ import { IDisposable } from '@univerjs/core';
2
+ interface IFHooksSheetsUIMixin {
3
+ /**
4
+ * The onBeforeCopy event is fired before a copy operation is performed.
5
+ * @param callback Callback function that will be called when the event is fired
6
+ * @returns A disposable object that can be used to unsubscribe from the event
7
+ */
8
+ onBeforeCopy(callback: () => void): IDisposable;
9
+ /**
10
+ * The onBeforeCopy event is fired before a copy operation is performed.
11
+ * @param callback Callback function that will be called when the event is fired
12
+ * @returns A disposable object that can be used to unsubscribe from the event
13
+ */
14
+ onBeforePaste(callback: () => void): IDisposable;
15
+ /**
16
+ * The onCopy event is fired after a copy operation is performed.
17
+ * @param callback Callback function that will be called when the event is fired
18
+ * @returns A disposable object that can be used to unsubscribe from the event
19
+ */
20
+ onCopy(callback: () => void): IDisposable;
21
+ /**
22
+ * The onBeforePaste event is fired before a paste operation is performed.
23
+ * @param callback Callback function that will be called when the event is fired
24
+ * @returns A disposable object that can be used to unsubscribe from the event
25
+ */
26
+ onBeforePaste(callback: () => void): IDisposable;
27
+ /**
28
+ * The onPaste event is fired after a paste operation is performed.
29
+ * @param callback Callback function that will be called when the event is fired
30
+ * @returns A disposable object that can be used to unsubscribe from the event
31
+ */
32
+ onPaste(callback: () => void): IDisposable;
33
+ }
34
+ declare module '@univerjs/core' {
35
+ interface FHooks extends IFHooksSheetsUIMixin {
36
+ }
37
+ }
38
+ export {};
@@ -0,0 +1,23 @@
1
+ import { IDisposable } from '@univerjs/core';
2
+ import { IDialogPartMethodOptions, ISidebarMethodOptions } from '@univerjs/ui';
3
+ interface IFUniverUIMixin {
4
+ copy(): Promise<boolean>;
5
+ paste(): Promise<boolean>;
6
+ /**
7
+ * Open a sidebar.
8
+ * @param params the sidebar options
9
+ * @returns the disposable object
10
+ */
11
+ openSiderbar(params: ISidebarMethodOptions): IDisposable;
12
+ /**
13
+ * Open a dialog.
14
+ * @param dialog the dialog options
15
+ * @returns the disposable object
16
+ */
17
+ openDialog(dialog: IDialogPartMethodOptions): IDisposable;
18
+ }
19
+ declare module '@univerjs/core' {
20
+ interface FUniver extends IFUniverUIMixin {
21
+ }
22
+ }
23
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import './f-univer';
17
+ import './f-hooks';
@@ -19,7 +19,8 @@ export { mergeMenuConfigs } from './common/menu-merge-configs';
19
19
  export * from './components';
20
20
  export { useEvent } from './components/hooks/event';
21
21
  export { t } from './components/hooks/locale';
22
- export { useObservable } from './components/hooks/observable';
22
+ export { useObservable, useObservableRef } from './components/hooks/observable';
23
+ export { RectPopup } from './views/components/popup/RectPopup';
23
24
  export { useVirtualList } from './components/hooks/virtual-list';
24
25
  export { Menu } from './components/menu/desktop/Menu';
25
26
  export { type INotificationOptions, type NotificationType } from './components/notification/Notification';
@@ -48,8 +49,7 @@ export { DesktopLayoutService, ILayoutService } from './services/layout/layout.s
48
49
  export { DesktopLocalFileService } from './services/local-file/desktop-local-file.service';
49
50
  export { ILocalFileService, type IOpenFileOptions } from './services/local-file/local-file.service';
50
51
  export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
51
- export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem, type IMenuItem, type IMenuItemFactory, type IMenuSelectorItem, type IValueOption, type MenuConfig, MenuGroup, type MenuItemDefaultValueType, MenuItemType, MenuPosition, } from './services/menu/menu';
52
- export { IMenuService, MenuService } from './services/menu/menu.service';
52
+ export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem, type IMenuItem, type IMenuItemFactory, type IMenuSelectorItem, type IValueOption, type MenuConfig, type MenuItemDefaultValueType, MenuItemType, } from './services/menu/menu';
53
53
  export { IMenuManagerService, MenuManagerService, type MenuSchemaType } from './services/menu/menu-manager.service';
54
54
  export { type IMenuSchema } from './services/menu/menu-manager.service';
55
55
  export { ContextMenuGroup, ContextMenuPosition, MenuManagerPosition, RibbonDataGroup, RibbonFormulasGroup, RibbonInsertGroup, RibbonOthersGroup, RibbonPosition, RibbonStartGroup, RibbonViewGroup, } from './services/menu/types';
@@ -64,6 +64,7 @@ export { KeyCode, MetaKeys } from './services/shortcut/keycode';
64
64
  export { type IShortcutItem, IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
65
65
  export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
66
66
  export { DesktopSidebarService } from './services/sidebar/desktop-sidebar.service';
67
+ export { useSidebarClick } from './services/sidebar/hooks/useSidebarClick';
67
68
  export { ILeftSidebarService, ISidebarService } from './services/sidebar/sidebar.service';
68
69
  export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';
69
70
  export { IZenZoneService } from './services/zen-zone/zen-zone.service';
@@ -81,10 +82,9 @@ export { FloatDom } from './views/components/dom/FloatDom';
81
82
  export { GlobalZone } from './views/components/global-zone/GlobalZone';
82
83
  export { CanvasPopup } from './views/components/popup/CanvasPopup';
83
84
  export { ToolbarButton } from './views/components/ribbon/Button/ToolbarButton';
84
- export { type IMenuGroup, useSimpleToolbarGroups, useToolbarGroups, useToolbarItemStatus } from './views/components/ribbon/hook';
85
+ export { useToolbarItemStatus } from './views/components/ribbon/hook';
85
86
  export { Ribbon } from './views/components/ribbon/Ribbon';
86
87
  export { ToolbarItem } from './views/components/ribbon/ToolbarItem';
87
88
  export { type ISidebarMethodOptions } from './views/components/sidebar/interface';
88
89
  export { Sidebar } from './views/components/sidebar/Sidebar';
89
- export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';
90
90
  export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';
@@ -1,32 +1,6 @@
1
1
  import { IAccessor } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  export type OneOrMany<T> = T | T[];
4
- /** @deprecated */
5
- export declare enum MenuPosition {
6
- VOID = "void",
7
- TOOLBAR_START = "ribbon.start",
8
- TOOLBAR_INSERT = "ribbon.insert",
9
- TOOLBAR_FORMULAS = "ribbon.formulas",
10
- TOOLBAR_DATA = "ribbon.data",
11
- TOOLBAR_VIEW = "ribbon.view",
12
- TOOLBAR_OTHERS = "ribbon.others",
13
- CONTEXT_MENU = "contextMenu.mainArea",
14
- FOOTER = "footer"
15
- }
16
- /** @deprecated */
17
- export declare enum MenuGroup {
18
- TOOLBAR_HISTORY = 0,
19
- TOOLBAR_FORMAT = 1,
20
- TOOLBAR_LAYOUT = 2,
21
- TOOLBAR_FORMULAS_INSERT = 3,
22
- TOOLBAR_FORMULAS_VIEW = 4,
23
- TOOLBAR_FILE = 5,
24
- TOOLBAR_OTHERS = 6,
25
- CONTEXT_MENU_FORMAT = 7,
26
- CONTEXT_MENU_LAYOUT = 8,
27
- CONTEXT_MENU_DATA = 9,
28
- CONTEXT_MENU_OTHERS = 10
29
- }
30
4
  export declare enum MenuItemType {
31
5
  /** Button style menu item. */
32
6
  BUTTON = 0,
@@ -50,12 +24,6 @@ interface IMenuItemBase<V> {
50
24
  description?: string;
51
25
  icon?: string | Observable<string>;
52
26
  tooltip?: string;
53
- /** The group that the item belongs to. */
54
- /** @deprecated group will be removed in the future. */
55
- group?: MenuGroup;
56
- /** In what menu should the item display. */
57
- /** @deprecated positions will be removed in the future. */
58
- positions?: OneOrMany<MenuPosition | string>;
59
27
  type: MenuItemType;
60
28
  /**
61
29
  * Custom label component id.