@univerjs/docs-ui 0.4.2 → 0.5.0-nightly.202411091605

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 (48) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +14 -14
  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 +106 -0
  10. package/lib/es/index.js +7415 -7591
  11. package/lib/es/locale/en-US.js +85 -0
  12. package/lib/es/locale/fa-IR.js +85 -0
  13. package/lib/es/locale/ru-RU.js +85 -0
  14. package/lib/es/locale/vi-VN.js +85 -0
  15. package/lib/es/locale/zh-CN.js +85 -0
  16. package/lib/es/locale/zh-TW.js +85 -0
  17. package/lib/types/basics/custom-decoration-factory.d.ts +1 -1
  18. package/lib/types/basics/paragraph.d.ts +4 -85
  19. package/lib/types/basics/selection.d.ts +2 -0
  20. package/lib/types/commands/commands/core-editing.command.d.ts +0 -1
  21. package/lib/types/commands/commands/doc-select-all.command.d.ts +5 -0
  22. package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -1
  23. package/lib/types/facade/f-document.d.ts +34 -0
  24. package/lib/types/facade/f-univer.d.ts +34 -0
  25. package/lib/types/facade/index.d.ts +17 -0
  26. package/lib/types/index.d.ts +1 -3
  27. package/lib/types/services/doc-menu-style.service.d.ts +6 -2
  28. package/lib/types/services/doc-popup-manager.service.d.ts +3 -3
  29. package/lib/types/services/editor/editor-manager.service.d.ts +63 -0
  30. package/lib/umd/facade.js +1 -0
  31. package/lib/umd/index.js +14 -14
  32. package/lib/umd/locale/en-US.js +1 -0
  33. package/lib/umd/locale/fa-IR.js +1 -0
  34. package/lib/umd/locale/ru-RU.js +1 -0
  35. package/lib/umd/locale/vi-VN.js +1 -0
  36. package/lib/umd/locale/zh-CN.js +1 -0
  37. package/lib/umd/locale/zh-TW.js +1 -0
  38. package/package.json +39 -21
  39. package/LICENSE +0 -176
  40. package/lib/locale/en-US.json +0 -82
  41. package/lib/locale/fa-IR.json +0 -82
  42. package/lib/locale/ru-RU.json +0 -82
  43. package/lib/locale/vi-VN.json +0 -82
  44. package/lib/locale/zh-CN.json +0 -82
  45. package/lib/locale/zh-TW.json +0 -82
  46. package/lib/types/basics/custom-range-factory.d.ts +0 -25
  47. package/lib/types/basics/replace.d.ts +0 -20
  48. package/lib/types/commands/operations/select-all.operation.d.ts +0 -5
@@ -1,82 +0,0 @@
1
- {
2
- "toolbar": {
3
- "undo": "撤销",
4
- "redo": "重做",
5
- "font": "字体",
6
- "fontSize": "字号",
7
- "bold": "粗体",
8
- "italic": "斜体",
9
- "strikethrough": "删除线",
10
- "subscript": "下标",
11
- "superscript": "上标",
12
- "underline": "下划线",
13
- "textColor": {
14
- "main": "文本颜色",
15
- "right": "颜色选择"
16
- },
17
- "fillColor": {
18
- "main": "文本背景色",
19
- "right": "背景色选择"
20
- },
21
- "table": {
22
- "main": "表格",
23
- "insert": "插入表格",
24
- "colCount": "列数",
25
- "rowCount": "行数"
26
- },
27
- "resetColor": "重置颜色",
28
- "order": "有序列表",
29
- "unorder": "无序列表",
30
- "checklist": "任务列表",
31
- "documentFlavor": "现代模式",
32
- "alignLeft": "左对齐",
33
- "alignCenter": "居中对齐",
34
- "alignRight": "右对齐",
35
- "alignJustify": "两端对齐",
36
- "headerFooter": "页眉页脚"
37
- },
38
- "table": {
39
- "insert": "插入",
40
- "insertRowAbove": "上方插入行",
41
- "insertRowBelow": "下方插入行",
42
- "insertColumnLeft": "左方插入列",
43
- "insertColumnRight": "右方插入列",
44
- "delete": "表格删除",
45
- "deleteRows": "删除行",
46
- "deleteColumns": "删除列",
47
- "deleteTable": "删除表格"
48
- },
49
- "headerFooter": {
50
- "header": "页眉",
51
- "footer": "页脚",
52
- "panel": "页眉页脚设置",
53
- "firstPageCheckBox": "首页不同",
54
- "oddEvenCheckBox": "奇偶页不同",
55
- "headerTopMargin": "页眉顶端距离",
56
- "footerBottomMargin": "页脚底端距离",
57
- "closeHeaderFooter": "关闭页眉页脚",
58
- "disableText": "页眉页脚设置不可用"
59
- },
60
- "doc": {
61
- "menu": {
62
- "paragraphSetting": "段落设置"
63
- },
64
- "slider": {
65
- "paragraphSetting": "段落设置"
66
- },
67
- "paragraphSetting": {
68
- "alignment": "对齐方式",
69
- "indentation": "缩进",
70
- "left": "左边距",
71
- "right": "右边距",
72
- "firstLine": "首行",
73
- "hanging": "悬挂",
74
- "spacing": "间距",
75
- "before": "段落前",
76
- "after": "段落后",
77
- "lineSpace": "行距",
78
- "multiSpace": "多倍行距",
79
- "fixedValue": "固定值(px)"
80
- }
81
- }
82
- }
@@ -1,82 +0,0 @@
1
- {
2
- "toolbar": {
3
- "undo": "撤銷",
4
- "redo": "重做",
5
- "font": "字體",
6
- "fontSize": "字號",
7
- "bold": "粗體",
8
- "italic": "斜體",
9
- "strikethrough": "刪除線",
10
- "subscript": "下標",
11
- "superscript": "上標",
12
- "underline": "底線",
13
- "textColor": {
14
- "main": "文字顏色",
15
- "right": "顏色選擇"
16
- },
17
- "fillColor": {
18
- "main": "文字背景色",
19
- "right": "背景色選擇"
20
- },
21
- "table": {
22
- "main": "Table",
23
- "insert": "Insert Table",
24
- "colCount": "Column count",
25
- "rowCount": "Row count"
26
- },
27
- "resetColor": "重置顏色",
28
- "order": "有序列表",
29
- "unorder": "無序列表",
30
- "alignLeft": "左對齊",
31
- "alignCenter": "居中對齊",
32
- "alignRight": "右對齊",
33
- "alignJustify": "兩端對齊",
34
- "headerFooter": "頁眉頁腳",
35
- "checklist": "任務列表",
36
- "documentFlavor": "现代模式"
37
- },
38
- "table": {
39
- "insert": "Insert",
40
- "insertRowAbove": "Insert row above",
41
- "insertRowBelow": "Insert row below",
42
- "insertColumnLeft": "Insert column left",
43
- "insertColumnRight": "Insert column right",
44
- "delete": "Table delete",
45
- "deleteRows": "Delete row",
46
- "deleteColumns": "Delete column",
47
- "deleteTable": "Delete table"
48
- },
49
- "headerFooter": {
50
- "header": "頁眉",
51
- "footer": "頁腳",
52
- "panel": "頁眉頁腳設置",
53
- "firstPageCheckBox": "首頁不同",
54
- "oddEvenCheckBox": "奇偶頁不同",
55
- "headerTopMargin": "頁眉頂端距離(px)",
56
- "footerBottomMargin": "頁腳底端距離(px)",
57
- "closeHeaderFooter": "關閉頁眉頁腳",
58
- "disableText": "頁眉頁腳設置不可用"
59
- },
60
- "doc": {
61
- "menu": {
62
- "paragraphSetting": "Paragraph Setting"
63
- },
64
- "slider": {
65
- "paragraphSetting": "Paragraph Setting"
66
- },
67
- "paragraphSetting": {
68
- "alignment": "Alignment",
69
- "indentation": "Indentation",
70
- "left": "Left",
71
- "right": "Right",
72
- "firstLine": "First Line",
73
- "hanging": "Hanging",
74
- "spacing": "Spacing",
75
- "before": "Before",
76
- "after": "After",
77
- "lineSpace": "Line Space",
78
- "multiSpace": "Multi Space",
79
- "fixedValue": "Fixed Value(px)"
80
- }
81
- }
82
- }
@@ -1,25 +0,0 @@
1
- import { CustomRangeType, IAccessor, IAddCustomRangeTextXParam, IDocumentBody, IMutationInfo, ITextRangeParam, Nullable, TextX } from '@univerjs/core';
2
- import { IRichTextEditingMutationParams } from '@univerjs/docs';
3
- interface IAddCustomRangeParam extends IAddCustomRangeTextXParam {
4
- unitId: string;
5
- }
6
- export declare function addCustomRangeFactory(accessor: IAccessor, param: IAddCustomRangeParam, body: IDocumentBody): false | IMutationInfo<IRichTextEditingMutationParams>;
7
- interface IAddCustomRangeFactoryParam {
8
- rangeId: string;
9
- rangeType: CustomRangeType;
10
- wholeEntity?: boolean;
11
- properties?: Record<string, any>;
12
- unitId: string;
13
- selection?: ITextRangeParam;
14
- }
15
- export declare function addCustomRangeBySelectionFactory(accessor: IAccessor, param: IAddCustomRangeFactoryParam): false | (IMutationInfo<IRichTextEditingMutationParams> & {
16
- textX: TextX;
17
- });
18
- export interface IDeleteCustomRangeFactoryParams {
19
- rangeId: string;
20
- segmentId?: string;
21
- unitId: string;
22
- insert?: Nullable<IDocumentBody>;
23
- }
24
- export declare function deleteCustomRangeFactory(accessor: IAccessor, params: IDeleteCustomRangeFactoryParams): false | IMutationInfo<IRichTextEditingMutationParams>;
25
- export {};
@@ -1,20 +0,0 @@
1
- import { DocumentDataModel, IAccessor, IDocumentBody, IMutationInfo, ITextRangeParam, TextX } from '@univerjs/core';
2
- import { IRichTextEditingMutationParams } from '@univerjs/docs';
3
- import { ITextRangeWithStyle } from '@univerjs/engine-render';
4
- export interface IReplaceSelectionFactoryParams {
5
- unitId: string;
6
- /**
7
- * slelection to be replaced, if not provided, use the current selection.
8
- */
9
- selection?: ITextRangeParam;
10
- /** Body to be inserted at the given position. */
11
- body: IDocumentBody;
12
- /**
13
- * Text ranges to be replaced.
14
- */
15
- textRanges?: ITextRangeWithStyle[];
16
- doc?: DocumentDataModel;
17
- }
18
- export declare function replaceSelectionFactory(accessor: IAccessor, params: IReplaceSelectionFactoryParams): false | (IMutationInfo<IRichTextEditingMutationParams> & {
19
- textX: TextX;
20
- });
@@ -1,5 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- interface ISelectAllOperationParams {
3
- }
4
- export declare const SelectAllOperation: ICommand<ISelectAllOperationParams>;
5
- export {};