@univerjs/docs-ui 0.5.4 → 0.5.5-experimental.20250122-3362a4a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +23 -30
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +61 -58
- package/lib/es/index.js +7679 -7808
- package/lib/es/locale/en-US.js +2 -2
- package/lib/es/locale/fa-IR.js +2 -2
- package/lib/es/locale/fr-FR.js +2 -2
- package/lib/es/locale/ru-RU.js +2 -2
- package/lib/es/locale/vi-VN.js +2 -2
- package/lib/es/locale/zh-CN.js +2 -2
- package/lib/es/locale/zh-TW.js +2 -2
- package/lib/index.css +1 -1
- package/lib/types/basics/custom-decoration-factory.d.ts +1 -0
- package/lib/types/basics/paragraph.d.ts +1 -1
- package/lib/types/commands/commands/replace-content.command.d.ts +1 -0
- package/lib/types/components/list-type-picker/picker.d.ts +3 -4
- package/lib/types/controllers/doc-container-ui-controller.d.ts +1 -1
- package/lib/types/controllers/render-controllers/doc-editor-bridge.controller.d.ts +0 -3
- package/lib/types/facade/f-document.d.ts +3 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/services/editor/editor-manager.service.d.ts +5 -177
- package/lib/types/services/editor/editor.d.ts +15 -77
- package/lib/types/services/selection/doc-selection-render.service.d.ts +7 -10
- package/lib/types/views/count-bar/CountBar.d.ts +16 -2
- package/lib/types/views/count-bar/ZoomSlider.d.ts +16 -2
- package/lib/types/views/doc-container/DocContainer.d.ts +5 -5
- package/lib/types/views/doc-footer/DocFooter.d.ts +16 -2
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +16 -2
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +16 -2
- package/lib/types/views/paragraph-setting/Setting.d.ts +1 -2
- package/lib/types/views/paragraph-setting/index.d.ts +16 -2
- package/lib/types/views/rich-text-editor/hooks/index.d.ts +17 -0
- package/lib/types/views/rich-text-editor/hooks/useEditor.d.ts +11 -0
- package/lib/types/views/rich-text-editor/hooks/useKeyboardEvent.d.ts +10 -0
- package/lib/types/views/rich-text-editor/hooks/useLeftAndRightArrow.d.ts +3 -0
- package/lib/types/views/rich-text-editor/hooks/useOnChange.d.ts +3 -0
- package/lib/types/views/rich-text-editor/index.d.ts +22 -0
- package/lib/types/views/table/create/TableCreate.d.ts +16 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +23 -30
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +10 -11
- package/LICENSE +0 -176
- package/lib/types/components/editor/TextEditor.d.ts +0 -36
- package/lib/types/components/range-selector/RangeSelector.d.ts +0 -24
package/lib/umd/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiEnUS=factory())})(this,function(){"use strict";return{toolbar:{undo:"Undo",redo:"Redo",font:"Font",fontSize:"Font size",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",underline:"Underline",textColor:{main:"Text color",right:"Choose color"},fillColor:{main:"Text Background color",right:"Choose color"},table:{main:"Table",insert:"Insert Table",colCount:"Column count",rowCount:"Row count"},resetColor:"Reset",order:"Ordered list",unorder:"Unordered list",checklist:"Task list",documentFlavor:"Modern Mode",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Justify",headerFooter:"Header & Footer"},table:{insert:"Insert",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",delete:"Table delete",deleteRows:"Delete row",deleteColumns:"Delete column",deleteTable:"Delete table"},headerFooter:{header:"Header",footer:"Footer",panel:"Header & Footer Settings",firstPageCheckBox:"Different first page",oddEvenCheckBox:"Different odd and even pages",headerTopMargin:"Header top margin(px)",footerBottomMargin:"Footer bottom margin(px)",closeHeaderFooter:"Close header & footer",disableText:"Header & footer settings are disabled"},doc:{menu:{paragraphSetting:"Paragraph Settings"},slider:{paragraphSetting:"Paragraph Settings"},paragraphSetting:{alignment:"Alignment",indentation:"Indentation",left:"Left",right:"Right",firstLine:"First Line",hanging:"Hanging",spacing:"Spacing",before:"Before",after:"After",lineSpace:"Line Space",multiSpace:"Multi Space",fixedValue:"Fixed Value(px)"}}}});
|
package/lib/umd/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiFaIR=factory())})(this,function(){"use strict";return{toolbar:{undo:"بازگرداندن",redo:"تکرار",font:"فونت",fontSize:"اندازه فونت",bold:"پررنگ",italic:"ایتالیک",strikethrough:"خطدار",subscript:"زیرنویس",superscript:"بالانویس",underline:"خطکشی",textColor:{main:"رنگ متن",right:"انتخاب رنگ"},fillColor:{main:"رنگ پسزمینه متن",right:"انتخاب رنگ"},table:{main:"جدول",insert:"درج جدول",colCount:"تعداد ستون",rowCount:"تعداد سطر"},resetColor:"بازنشانی",order:"لیست شمارهدار",unorder:"لیست بدون شماره",checklist:"لیست وظیفه",documentFlavor:"Modern Mode",alignLeft:"تراز چپ",alignCenter:"تراز وسط",alignRight:"تراز راست",alignJustify:"توجیه",headerFooter:"هدر و فوتر"},table:{insert:"درج",insertRowAbove:"درج سطر بالاتر",insertRowBelow:"درج سطر پایینتر",insertColumnLeft:"درج ستون چپ",insertColumnRight:"درج ستون راست",delete:"حذف جدول",deleteRows:"حذف سطر",deleteColumns:"حذف ستون",deleteTable:"حذف جدول"},headerFooter:{header:"هدر",footer:"فوتر",panel:"تنظیمات هدر و فوتر",firstPageCheckBox:"صفحه اول متفاوت",oddEvenCheckBox:"صفحات فرد و زوج متفاوت",headerTopMargin:"حاشیه بالای هدر(px)",footerBottomMargin:"حاشیه پایینی فوتر(px)",closeHeaderFooter:"بستن هدر و فوتر",disableText:"تنظیمات هدر و فوتر غیرفعال است"},doc:{menu:{paragraphSetting:"تنظیمات پاراگراف"},slider:{paragraphSetting:"تنظیمات پاراگراف"},paragraphSetting:{alignment:"تراز",indentation:"تورفتگی",left:"چپ",right:"راست",firstLine:"خط اول",hanging:"آویز",spacing:"فاصلهگذاری",before:"قبل",after:"بعد",lineSpace:"فاصله خط",multiSpace:"فاصله چندگانه",fixedValue:"مقدار ثابت(px)"}}}});
|
package/lib/umd/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiFrFR=factory())})(this,function(){"use strict";return{toolbar:{undo:"Annuler",redo:"Rétablir",font:"Police",fontSize:"Taille de la police",bold:"Gras",italic:"Italique",strikethrough:"Barré",subscript:"Indice",superscript:"Exposant",underline:"Souligné",textColor:{main:"Couleur du texte",right:"Choisir une couleur"},fillColor:{main:"Couleur de fond du texte",right:"Choisir une couleur"},table:{main:"Tableau",insert:"Insérer un tableau",colCount:"Nombre de colonnes",rowCount:"Nombre de lignes"},resetColor:"Réinitialiser",order:"Liste ordonnée",unorder:"Liste non ordonnée",checklist:"Liste de tâches",documentFlavor:"Modern Mode",alignLeft:"Aligner à gauche",alignCenter:"Aligner au centre",alignRight:"Aligner à droite",alignJustify:"Justifier",headerFooter:"En-tête et pied de page"},table:{insert:"Insérer",insertRowAbove:"Insérer une ligne au-dessus",insertRowBelow:"Insérer une ligne en dessous",insertColumnLeft:"Insérer une colonne à gauche",insertColumnRight:"Insérer une colonne à droite",delete:"Supprimer",deleteRows:"Supprimer une ligne",deleteColumns:"Supprimer une colonne",deleteTable:"Supprimer le tableau"},headerFooter:{header:"En-tête",footer:"Pied de page",panel:"En-tête et pied de page",firstPageCheckBox:"Différente la première page",oddEvenCheckBox:"Différente les pages impaires et paires",headerTopMargin:"Marge en haut de l'en-tête(px)",footerBottomMargin:"Marge en bas du pied de page(px)",closeHeaderFooter:"Fermer l'en-tête et le pied de page",disableText:"Les paramètres de l'en-tête et du pied de page sont désactivés"},doc:{menu:{paragraphSetting:"Paramètres de paragraphe"},slider:{paragraphSetting:"Paramètres de paragraphe"},paragraphSetting:{alignment:"Alignement",indentation:"Indentation",left:"Gauche",right:"Droite",firstLine:"Première ligne",hanging:"Retrait",spacing:"Espacement",before:"Avant",after:"Après",lineSpace:"Espacement de ligne",multiSpace:"Espacement multiple",fixedValue:"Valeur fixe(px)"}}}});
|
package/lib/umd/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiRuRU=factory())})(this,function(){"use strict";return{toolbar:{undo:"Отменить",redo:"Повторить",font:"Шрифт",fontSize:"Размер шрифта",bold:"Полужирный",italic:"Курсив",strikethrough:"Зачеркнутый",subscript:"Нижний индекс",superscript:"Верхний индекс",underline:"Подчеркнутый",textColor:{main:"Цвет текста",right:"Выбрать цвет"},fillColor:{main:"Цвет фона текста",right:"Выбрать цвет"},table:{main:"Table",insert:"Insert Table",colCount:"Column count",rowCount:"Row count"},resetColor:"Сбросить",order:"Упорядоченный список",unorder:"Неупорядоченный список",alignLeft:"Выровнять по левому краю",alignCenter:"Выровнять по центру",alignRight:"Выровнять по правому краю",alignJustify:"Выровнять по ширине",headerFooter:"Header & Footer",checklist:"Task list",documentFlavor:"Modern Mode"},table:{insert:"Insert",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",delete:"Table delete",deleteRows:"Delete row",deleteColumns:"Delete column",deleteTable:"Delete table"},headerFooter:{header:"Header",footer:"Footer",panel:"Header & Footer Settings",firstPageCheckBox:"Different first page",oddEvenCheckBox:"Different odd and even pages",headerTopMargin:"Header top margin(px)",footerBottomMargin:"Footer bottom margin(px)",closeHeaderFooter:"Close header & footer",disableText:"Header & footer settings are disabled"},doc:{menu:{paragraphSetting:"Paragraph Setting"},slider:{paragraphSetting:"Paragraph Setting"},paragraphSetting:{alignment:"Alignment",indentation:"Indentation",left:"Left",right:"Right",firstLine:"First Line",hanging:"Hanging",spacing:"Spacing",before:"Before",after:"After",lineSpace:"Line Space",multiSpace:"Multi Space",fixedValue:"Fixed Value(px)"}}}});
|
package/lib/umd/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiViVN=factory())})(this,function(){"use strict";return{toolbar:{undo:"Hoàn tác",redo:"Làm lại",font:"Phông chữ",fontSize:"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",strikethrough:"Gạch ngang",subscript:"Chỉ số dưới",superscript:"Chỉ số trên",underline:"Gạch chân",textColor:{main:"Màu chữ",right:"Chọn màu"},fillColor:{main:"Màu nền văn bản",right:"Chọn màu nền"},table:{main:"Table",insert:"Insert Table",colCount:"Column count",rowCount:"Row count"},resetColor:"Đặt lại màu",order:"Danh sách có thứ tự",unorder:"Danh sách không thứ tự",alignLeft:"Căn trái",alignCenter:"Căn giữa",alignRight:"Căn phải",alignJustify:"Căn đều hai bên",headerFooter:"Đầu trang và chân trang",checklist:"Task list",documentFlavor:"Modern Mode"},table:{insert:"Insert",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",delete:"Table delete",deleteRows:"Delete row",deleteColumns:"Delete column",deleteTable:"Delete table"},headerFooter:{header:"Đầu trang",footer:"Chân trang",panel:"Cài đặt đầu trang và chân trang",firstPageCheckBox:"Trang đầu khác biệt",oddEvenCheckBox:"Trang lẻ chẵn khác biệt",headerTopMargin:"Khoảng cách đầu trang từ trên cùng (px)",footerBottomMargin:"Khoảng cách chân trang từ dưới cùng (px)",closeHeaderFooter:"Đóng đầu trang và chân trang",disableText:"Cài đặt đầu trang và chân trang không khả dụng"},doc:{menu:{paragraphSetting:"Paragraph Setting"},slider:{paragraphSetting:"Paragraph Setting"},paragraphSetting:{alignment:"Alignment",indentation:"Indentation",left:"Left",right:"Right",firstLine:"First Line",hanging:"Hanging",spacing:"Spacing",before:"Before",after:"After",lineSpace:"Line Space",multiSpace:"Multi Space",fixedValue:"Fixed Value(px)"}}}});
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiZhCN=factory())})(this,function(){"use strict";return{toolbar:{undo:"撤销",redo:"重做",font:"字体",fontSize:"字号",bold:"粗体",italic:"斜体",strikethrough:"删除线",subscript:"下标",superscript:"上标",underline:"下划线",textColor:{main:"文本颜色",right:"颜色选择"},fillColor:{main:"文本背景色",right:"背景色选择"},table:{main:"表格",insert:"插入表格",colCount:"列数",rowCount:"行数"},resetColor:"重置颜色",order:"有序列表",unorder:"无序列表",checklist:"任务列表",documentFlavor:"现代模式",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignJustify:"两端对齐",headerFooter:"页眉页脚"},table:{insert:"插入",insertRowAbove:"上方插入行",insertRowBelow:"下方插入行",insertColumnLeft:"左方插入列",insertColumnRight:"右方插入列",delete:"表格删除",deleteRows:"删除行",deleteColumns:"删除列",deleteTable:"删除表格"},headerFooter:{header:"页眉",footer:"页脚",panel:"页眉页脚设置",firstPageCheckBox:"首页不同",oddEvenCheckBox:"奇偶页不同",headerTopMargin:"页眉顶端距离",footerBottomMargin:"页脚底端距离",closeHeaderFooter:"关闭页眉页脚",disableText:"页眉页脚设置不可用"},doc:{menu:{paragraphSetting:"段落设置"},slider:{paragraphSetting:"段落设置"},paragraphSetting:{alignment:"对齐方式",indentation:"缩进",left:"左边距",right:"右边距",firstLine:"首行",hanging:"悬挂",spacing:"间距",before:"段落前",after:"段落后",lineSpace:"行距",multiSpace:"多倍行距",fixedValue:"固定值(px)"}}}});
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.UniverDocsUiZhTW=factory())})(this,function(){"use strict";return{toolbar:{undo:"撤銷",redo:"重做",font:"字體",fontSize:"字號",bold:"粗體",italic:"斜體",strikethrough:"刪除線",subscript:"下標",superscript:"上標",underline:"底線",textColor:{main:"文字顏色",right:"顏色選擇"},fillColor:{main:"文字背景色",right:"背景色選擇"},table:{main:"Table",insert:"Insert Table",colCount:"Column count",rowCount:"Row count"},resetColor:"重置顏色",order:"有序列表",unorder:"無序列表",alignLeft:"左對齊",alignCenter:"居中對齊",alignRight:"右對齊",alignJustify:"兩端對齊",headerFooter:"頁眉頁腳",checklist:"任務列表",documentFlavor:"现代模式"},table:{insert:"Insert",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",delete:"Table delete",deleteRows:"Delete row",deleteColumns:"Delete column",deleteTable:"Delete table"},headerFooter:{header:"頁眉",footer:"頁腳",panel:"頁眉頁腳設置",firstPageCheckBox:"首頁不同",oddEvenCheckBox:"奇偶頁不同",headerTopMargin:"頁眉頂端距離(px)",footerBottomMargin:"頁腳底端距離(px)",closeHeaderFooter:"關閉頁眉頁腳",disableText:"頁眉頁腳設置不可用"},doc:{menu:{paragraphSetting:"Paragraph Setting"},slider:{paragraphSetting:"Paragraph Setting"},paragraphSetting:{alignment:"Alignment",indentation:"Indentation",left:"Left",right:"Right",firstLine:"First Line",hanging:"Hanging",spacing:"Spacing",before:"Before",after:"After",lineSpace:"Line Space",multiSpace:"Multi Space",fixedValue:"Fixed Value(px)"}}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/docs-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5-experimental.20250122-3362a4a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Univer normal ui-plugin-docs",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -55,19 +55,18 @@
|
|
|
55
55
|
"lib"
|
|
56
56
|
],
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"react": "
|
|
58
|
+
"react": ">=16.9.0 || >=17 || >=18 || >=19",
|
|
59
59
|
"rxjs": ">=7.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@univerjs/icons": "^0.2.12",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
|
-
"@univerjs/core": "0.5.
|
|
65
|
-
"@univerjs/docs": "0.5.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/ui": "0.5.
|
|
70
|
-
"@univerjs/engine-formula": "0.5.4"
|
|
64
|
+
"@univerjs/core": "0.5.5-experimental.20250122-3362a4a",
|
|
65
|
+
"@univerjs/docs": "0.5.5-experimental.20250122-3362a4a",
|
|
66
|
+
"@univerjs/drawing": "0.5.5-experimental.20250122-3362a4a",
|
|
67
|
+
"@univerjs/engine-render": "0.5.5-experimental.20250122-3362a4a",
|
|
68
|
+
"@univerjs/design": "0.5.5-experimental.20250122-3362a4a",
|
|
69
|
+
"@univerjs/ui": "0.5.5-experimental.20250122-3362a4a"
|
|
71
70
|
},
|
|
72
71
|
"devDependencies": {
|
|
73
72
|
"less": "^4.2.1",
|
|
@@ -78,8 +77,8 @@
|
|
|
78
77
|
"typescript": "^5.7.2",
|
|
79
78
|
"vite": "^6.0.7",
|
|
80
79
|
"vitest": "^2.1.8",
|
|
81
|
-
"@univerjs-infra/shared": "0.5.
|
|
82
|
-
"@univerjs/docs-drawing": "0.5.
|
|
80
|
+
"@univerjs-infra/shared": "0.5.5",
|
|
81
|
+
"@univerjs/docs-drawing": "0.5.5-experimental.20250122-3362a4a"
|
|
83
82
|
},
|
|
84
83
|
"scripts": {
|
|
85
84
|
"test": "vitest run",
|
package/LICENSE
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IDocumentData, Nullable } from '@univerjs/core';
|
|
2
|
-
import { IEditorCanvasStyle } from '../../services/editor/editor';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
type MyComponentProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
5
|
-
export interface ITextEditorProps {
|
|
6
|
-
id: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
snapshot?: IDocumentData;
|
|
9
|
-
value?: string;
|
|
10
|
-
resizeCallBack?: (editor: Nullable<HTMLDivElement>) => void;
|
|
11
|
-
cancelDefaultResizeListener?: boolean;
|
|
12
|
-
canvasStyle?: IEditorCanvasStyle;
|
|
13
|
-
isSheetEditor?: boolean;
|
|
14
|
-
isFormulaEditor?: boolean;
|
|
15
|
-
isSingle?: boolean;
|
|
16
|
-
isReadonly?: boolean;
|
|
17
|
-
onlyInputFormula?: boolean;
|
|
18
|
-
onlyInputRange?: boolean;
|
|
19
|
-
onlyInputContent?: boolean;
|
|
20
|
-
isSingleChoice?: boolean;
|
|
21
|
-
openForSheetUnitId?: Nullable<string>;
|
|
22
|
-
openForSheetSubUnitId?: Nullable<string>;
|
|
23
|
-
onChange?: (value: Nullable<string>) => void;
|
|
24
|
-
onActive?: (state: boolean) => void;
|
|
25
|
-
onValid?: (state: boolean) => void;
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
isValueValid?: boolean;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The component to render toolbar item label and menu item label.
|
|
32
|
-
* @param props
|
|
33
|
-
* @deprecated The business side encapsulates its own Editor component.
|
|
34
|
-
*/
|
|
35
|
-
export declare function TextEditor(props: ITextEditorProps & Omit<MyComponentProps, 'onChange' | 'onActive'>): JSX.Element | null;
|
|
36
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IUnitRangeWithName, Nullable } from '@univerjs/core';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export interface IRangeSelectorProps {
|
|
4
|
-
id: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onChange?: (ranges: IUnitRangeWithName[]) => void;
|
|
7
|
-
onActive?: (state: boolean) => void;
|
|
8
|
-
onValid?: (state: boolean) => void;
|
|
9
|
-
isSingleChoice?: boolean;
|
|
10
|
-
isReadonly?: boolean;
|
|
11
|
-
openForSheetUnitId?: Nullable<string>;
|
|
12
|
-
openForSheetSubUnitId?: Nullable<string>;
|
|
13
|
-
width?: number | string;
|
|
14
|
-
size?: 'mini' | 'small' | 'middle' | 'large';
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
textEditorClassName?: string;
|
|
18
|
-
onSelectorVisibleChange?: (visible: boolean) => void;
|
|
19
|
-
dialogOnly?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
export declare function RangeSelector(props: IRangeSelectorProps): React.JSX.Element;
|