@univerjs-pro/sheets-print 0.2.2 → 0.2.3
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/vi-VN.json +94 -0
- package/lib/locale/zh-TW.json +94 -0
- package/lib/types/locale/en-US.d.ts +4 -95
- package/lib/types/locale/ru-RU.d.ts +4 -95
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +2 -2
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/services/sheet-print-manager.service.d.ts +3 -3
- package/lib/umd/index.js +1 -1
- package/package.json +21 -21
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"print": {
|
|
3
|
+
"header": {
|
|
4
|
+
"total": "Total: ",
|
|
5
|
+
"pages": "pages",
|
|
6
|
+
"cancel": "CANCEL",
|
|
7
|
+
"next": "NEXT"
|
|
8
|
+
},
|
|
9
|
+
"menu": "Print",
|
|
10
|
+
"title": "Print",
|
|
11
|
+
"size": {
|
|
12
|
+
"title": "Paper Size",
|
|
13
|
+
"letter": "Letter (8.5\" x11\")",
|
|
14
|
+
"tabloid": "Tabloid (11\" x 17\")",
|
|
15
|
+
"legal": "Legal (8.5\" x 14\")",
|
|
16
|
+
"statement": "Statement (5.5\" x 8.5\")",
|
|
17
|
+
"executive": "Executive (7.25\" x 10.5\")",
|
|
18
|
+
"folio": "Folio (8.5\" x 13\")",
|
|
19
|
+
"a3": "A3 (11.69\" x 16.54\")",
|
|
20
|
+
"a4": "A4 (8.27\" x 11.69\")",
|
|
21
|
+
"a5": "A5 (5.83\" x 8.27\")",
|
|
22
|
+
"b4": "B4 (9.84\" x 13.90\")",
|
|
23
|
+
"b5": "B5 (6.93\" x 9.84\")"
|
|
24
|
+
},
|
|
25
|
+
"margin": {
|
|
26
|
+
"title": "Margins",
|
|
27
|
+
"normal": "Normal",
|
|
28
|
+
"narrow": "Narrow",
|
|
29
|
+
"wide": "Wide"
|
|
30
|
+
},
|
|
31
|
+
"area": {
|
|
32
|
+
"title": "Print",
|
|
33
|
+
"currentSheet": "Current sheet",
|
|
34
|
+
"workbook": "Workbook",
|
|
35
|
+
"currentSelection": "Selected cells"
|
|
36
|
+
},
|
|
37
|
+
"selection": {
|
|
38
|
+
"title": "Selection",
|
|
39
|
+
"allWorkbook": "All sheets",
|
|
40
|
+
"workbookUnit": "sheets"
|
|
41
|
+
},
|
|
42
|
+
"scale": {
|
|
43
|
+
"title": "Scale",
|
|
44
|
+
"normal": "Normal (100%)",
|
|
45
|
+
"fitWidth": "Fit to width",
|
|
46
|
+
"fitHeight": "Fit to height",
|
|
47
|
+
"fitPage": "Fit to page",
|
|
48
|
+
"custom": "Custom number"
|
|
49
|
+
},
|
|
50
|
+
"orientation": {
|
|
51
|
+
"title": "Page orientation",
|
|
52
|
+
"landscape": "Landscape",
|
|
53
|
+
"portrait": "Portrait"
|
|
54
|
+
},
|
|
55
|
+
"formatting": {
|
|
56
|
+
"title": "Formatting",
|
|
57
|
+
"skeleton": "Show gridlines"
|
|
58
|
+
},
|
|
59
|
+
"align": {
|
|
60
|
+
"title": "Align",
|
|
61
|
+
"horizontal": {
|
|
62
|
+
"title": "Horizontal",
|
|
63
|
+
"middle": "Center",
|
|
64
|
+
"start": "Left",
|
|
65
|
+
"end": "Right"
|
|
66
|
+
},
|
|
67
|
+
"vertical": {
|
|
68
|
+
"title": "Vertical",
|
|
69
|
+
"start": "Top",
|
|
70
|
+
"end": "Bottom",
|
|
71
|
+
"middle": "Center"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"headerFooter": {
|
|
75
|
+
"title": "Headers & footers",
|
|
76
|
+
"page": " Page numbers",
|
|
77
|
+
"workbook": "Workbook title",
|
|
78
|
+
"sheet": "Sheet name",
|
|
79
|
+
"date": "Current date",
|
|
80
|
+
"time": "Current time"
|
|
81
|
+
},
|
|
82
|
+
"freeze": {
|
|
83
|
+
"title": " Row & column headers",
|
|
84
|
+
"desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
|
|
85
|
+
"row": "Repeat frozen rows",
|
|
86
|
+
"column": "Repeat frozen columns"
|
|
87
|
+
},
|
|
88
|
+
"limit": {
|
|
89
|
+
"page": "The free version only supports {limit} pages of printing, please purchase the commercial version for advanced features!",
|
|
90
|
+
"waterMark": "Univer free version, powered by univer.ai.",
|
|
91
|
+
"link": "https://univer.ai/#pricing"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"print": {
|
|
3
|
+
"header": {
|
|
4
|
+
"total": "Total: ",
|
|
5
|
+
"pages": "pages",
|
|
6
|
+
"cancel": "CANCEL",
|
|
7
|
+
"next": "NEXT"
|
|
8
|
+
},
|
|
9
|
+
"menu": "Print",
|
|
10
|
+
"title": "Print",
|
|
11
|
+
"size": {
|
|
12
|
+
"title": "Paper Size",
|
|
13
|
+
"letter": "Letter (8.5\" x11\")",
|
|
14
|
+
"tabloid": "Tabloid (11\" x 17\")",
|
|
15
|
+
"legal": "Legal (8.5\" x 14\")",
|
|
16
|
+
"statement": "Statement (5.5\" x 8.5\")",
|
|
17
|
+
"executive": "Executive (7.25\" x 10.5\")",
|
|
18
|
+
"folio": "Folio (8.5\" x 13\")",
|
|
19
|
+
"a3": "A3 (11.69\" x 16.54\")",
|
|
20
|
+
"a4": "A4 (8.27\" x 11.69\")",
|
|
21
|
+
"a5": "A5 (5.83\" x 8.27\")",
|
|
22
|
+
"b4": "B4 (9.84\" x 13.90\")",
|
|
23
|
+
"b5": "B5 (6.93\" x 9.84\")"
|
|
24
|
+
},
|
|
25
|
+
"margin": {
|
|
26
|
+
"title": "Margins",
|
|
27
|
+
"normal": "Normal",
|
|
28
|
+
"narrow": "Narrow",
|
|
29
|
+
"wide": "Wide"
|
|
30
|
+
},
|
|
31
|
+
"area": {
|
|
32
|
+
"title": "Print",
|
|
33
|
+
"currentSheet": "Current sheet",
|
|
34
|
+
"workbook": "Workbook",
|
|
35
|
+
"currentSelection": "Selected cells"
|
|
36
|
+
},
|
|
37
|
+
"selection": {
|
|
38
|
+
"title": "Selection",
|
|
39
|
+
"allWorkbook": "All sheets",
|
|
40
|
+
"workbookUnit": "sheets"
|
|
41
|
+
},
|
|
42
|
+
"scale": {
|
|
43
|
+
"title": "Scale",
|
|
44
|
+
"normal": "Normal (100%)",
|
|
45
|
+
"fitWidth": "Fit to width",
|
|
46
|
+
"fitHeight": "Fit to height",
|
|
47
|
+
"fitPage": "Fit to page",
|
|
48
|
+
"custom": "Custom number"
|
|
49
|
+
},
|
|
50
|
+
"orientation": {
|
|
51
|
+
"title": "Page orientation",
|
|
52
|
+
"landscape": "Landscape",
|
|
53
|
+
"portrait": "Portrait"
|
|
54
|
+
},
|
|
55
|
+
"formatting": {
|
|
56
|
+
"title": "Formatting",
|
|
57
|
+
"skeleton": "Show gridlines"
|
|
58
|
+
},
|
|
59
|
+
"align": {
|
|
60
|
+
"title": "Align",
|
|
61
|
+
"horizontal": {
|
|
62
|
+
"title": "Horizontal",
|
|
63
|
+
"middle": "Center",
|
|
64
|
+
"start": "Left",
|
|
65
|
+
"end": "Right"
|
|
66
|
+
},
|
|
67
|
+
"vertical": {
|
|
68
|
+
"title": "Vertical",
|
|
69
|
+
"start": "Top",
|
|
70
|
+
"end": "Bottom",
|
|
71
|
+
"middle": "Center"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"headerFooter": {
|
|
75
|
+
"title": "Headers & footers",
|
|
76
|
+
"page": " Page numbers",
|
|
77
|
+
"workbook": "Workbook title",
|
|
78
|
+
"sheet": "Sheet name",
|
|
79
|
+
"date": "Current date",
|
|
80
|
+
"time": "Current time"
|
|
81
|
+
},
|
|
82
|
+
"freeze": {
|
|
83
|
+
"title": " Row & column headers",
|
|
84
|
+
"desc": "Go to View > Freeze to select which rows/columns to repeat on all pages",
|
|
85
|
+
"row": "Repeat frozen rows",
|
|
86
|
+
"column": "Repeat frozen columns"
|
|
87
|
+
},
|
|
88
|
+
"limit": {
|
|
89
|
+
"page": "The free version only supports {limit} pages of printing, please purchase the commercial version for advanced features!",
|
|
90
|
+
"waterMark": "Univer free version, powered by univer.ai.",
|
|
91
|
+
"link": "https://univer.ai/#pricing"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -1,95 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
pages: string;
|
|
6
|
-
cancel: string;
|
|
7
|
-
next: string;
|
|
8
|
-
};
|
|
9
|
-
menu: string;
|
|
10
|
-
title: string;
|
|
11
|
-
size: {
|
|
12
|
-
title: string;
|
|
13
|
-
letter: string;
|
|
14
|
-
tabloid: string;
|
|
15
|
-
legal: string;
|
|
16
|
-
statement: string;
|
|
17
|
-
executive: string;
|
|
18
|
-
folio: string;
|
|
19
|
-
a3: string;
|
|
20
|
-
a4: string;
|
|
21
|
-
a5: string;
|
|
22
|
-
b4: string;
|
|
23
|
-
b5: string;
|
|
24
|
-
};
|
|
25
|
-
margin: {
|
|
26
|
-
title: string;
|
|
27
|
-
normal: string;
|
|
28
|
-
narrow: string;
|
|
29
|
-
wide: string;
|
|
30
|
-
};
|
|
31
|
-
area: {
|
|
32
|
-
title: string;
|
|
33
|
-
currentSheet: string;
|
|
34
|
-
workbook: string;
|
|
35
|
-
currentSelection: string;
|
|
36
|
-
};
|
|
37
|
-
selection: {
|
|
38
|
-
title: string;
|
|
39
|
-
allWorkbook: string;
|
|
40
|
-
workbookUnit: string;
|
|
41
|
-
};
|
|
42
|
-
scale: {
|
|
43
|
-
title: string;
|
|
44
|
-
normal: string;
|
|
45
|
-
fitWidth: string;
|
|
46
|
-
fitHeight: string;
|
|
47
|
-
fitPage: string;
|
|
48
|
-
custom: string;
|
|
49
|
-
};
|
|
50
|
-
orientation: {
|
|
51
|
-
title: string;
|
|
52
|
-
landscape: string;
|
|
53
|
-
portrait: string;
|
|
54
|
-
};
|
|
55
|
-
formatting: {
|
|
56
|
-
title: string;
|
|
57
|
-
skeleton: string;
|
|
58
|
-
};
|
|
59
|
-
align: {
|
|
60
|
-
title: string;
|
|
61
|
-
horizontal: {
|
|
62
|
-
title: string;
|
|
63
|
-
middle: string;
|
|
64
|
-
start: string;
|
|
65
|
-
end: string;
|
|
66
|
-
};
|
|
67
|
-
vertical: {
|
|
68
|
-
title: string;
|
|
69
|
-
start: string;
|
|
70
|
-
end: string;
|
|
71
|
-
middle: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
headerFooter: {
|
|
75
|
-
title: string;
|
|
76
|
-
page: string;
|
|
77
|
-
workbook: string;
|
|
78
|
-
sheet: string;
|
|
79
|
-
date: string;
|
|
80
|
-
time: string;
|
|
81
|
-
};
|
|
82
|
-
freeze: {
|
|
83
|
-
title: string;
|
|
84
|
-
desc: string;
|
|
85
|
-
row: string;
|
|
86
|
-
column: string;
|
|
87
|
-
};
|
|
88
|
-
limit: {
|
|
89
|
-
page: string;
|
|
90
|
-
waterMark: string;
|
|
91
|
-
link: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export default _default;
|
|
1
|
+
import { default as zhCN } from './zh-CN';
|
|
2
|
+
|
|
3
|
+
declare const locale: typeof zhCN;
|
|
4
|
+
export default locale;
|
|
@@ -1,95 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
pages: string;
|
|
6
|
-
cancel: string;
|
|
7
|
-
next: string;
|
|
8
|
-
};
|
|
9
|
-
menu: string;
|
|
10
|
-
title: string;
|
|
11
|
-
size: {
|
|
12
|
-
title: string;
|
|
13
|
-
letter: string;
|
|
14
|
-
tabloid: string;
|
|
15
|
-
legal: string;
|
|
16
|
-
statement: string;
|
|
17
|
-
executive: string;
|
|
18
|
-
folio: string;
|
|
19
|
-
a3: string;
|
|
20
|
-
a4: string;
|
|
21
|
-
a5: string;
|
|
22
|
-
b4: string;
|
|
23
|
-
b5: string;
|
|
24
|
-
};
|
|
25
|
-
margin: {
|
|
26
|
-
title: string;
|
|
27
|
-
normal: string;
|
|
28
|
-
narrow: string;
|
|
29
|
-
wide: string;
|
|
30
|
-
};
|
|
31
|
-
area: {
|
|
32
|
-
title: string;
|
|
33
|
-
currentSheet: string;
|
|
34
|
-
workbook: string;
|
|
35
|
-
currentSelection: string;
|
|
36
|
-
};
|
|
37
|
-
selection: {
|
|
38
|
-
title: string;
|
|
39
|
-
allWorkbook: string;
|
|
40
|
-
workbookUnit: string;
|
|
41
|
-
};
|
|
42
|
-
scale: {
|
|
43
|
-
title: string;
|
|
44
|
-
normal: string;
|
|
45
|
-
fitWidth: string;
|
|
46
|
-
fitHeight: string;
|
|
47
|
-
fitPage: string;
|
|
48
|
-
custom: string;
|
|
49
|
-
};
|
|
50
|
-
orientation: {
|
|
51
|
-
title: string;
|
|
52
|
-
landscape: string;
|
|
53
|
-
portrait: string;
|
|
54
|
-
};
|
|
55
|
-
formatting: {
|
|
56
|
-
title: string;
|
|
57
|
-
skeleton: string;
|
|
58
|
-
};
|
|
59
|
-
align: {
|
|
60
|
-
title: string;
|
|
61
|
-
horizontal: {
|
|
62
|
-
title: string;
|
|
63
|
-
middle: string;
|
|
64
|
-
start: string;
|
|
65
|
-
end: string;
|
|
66
|
-
};
|
|
67
|
-
vertical: {
|
|
68
|
-
title: string;
|
|
69
|
-
start: string;
|
|
70
|
-
end: string;
|
|
71
|
-
middle: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
headerFooter: {
|
|
75
|
-
title: string;
|
|
76
|
-
page: string;
|
|
77
|
-
workbook: string;
|
|
78
|
-
sheet: string;
|
|
79
|
-
date: string;
|
|
80
|
-
time: string;
|
|
81
|
-
};
|
|
82
|
-
freeze: {
|
|
83
|
-
title: string;
|
|
84
|
-
desc: string;
|
|
85
|
-
row: string;
|
|
86
|
-
column: string;
|
|
87
|
-
};
|
|
88
|
-
limit: {
|
|
89
|
-
page: string;
|
|
90
|
-
waterMark: string;
|
|
91
|
-
link: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export default _default;
|
|
1
|
+
import { default as zhCN } from './zh-CN';
|
|
2
|
+
|
|
3
|
+
declare const locale: typeof zhCN;
|
|
4
|
+
export default locale;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IFreeze, IRange, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import {
|
|
3
|
+
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { IPrintMargin } from '@univerjs-pro/print';
|
|
@@ -52,7 +52,7 @@ export interface ISheetPrintManagerService {
|
|
|
52
52
|
export declare const ISheetPrintManagerService: import('@wendellhu/redi').IdentifierDecorator<ISheetPrintManagerService>;
|
|
53
53
|
export declare class SheetPrintManagerService implements ISheetPrintManagerService {
|
|
54
54
|
private readonly _univerInstanceService;
|
|
55
|
-
private readonly
|
|
55
|
+
private readonly _sheetsSelectionsSrv;
|
|
56
56
|
private readonly _sheetPrintInterceptorService;
|
|
57
57
|
private readonly _renderManagerService;
|
|
58
58
|
private _layoutConfig;
|
|
@@ -64,7 +64,7 @@ export declare class SheetPrintManagerService implements ISheetPrintManagerServi
|
|
|
64
64
|
readonly layoutConfig$: Observable<ISheetPrintLayoutConfig>;
|
|
65
65
|
readonly renderConfig$: Observable<ISheetPrintRenderConfig>;
|
|
66
66
|
readonly layoutInfos$: Observable<ISheetPrintLayoutInfo[]>;
|
|
67
|
-
constructor(_univerInstanceService: IUniverInstanceService,
|
|
67
|
+
constructor(_univerInstanceService: IUniverInstanceService, _sheetsSelectionsSrv: SheetsSelectionsService, _sheetPrintInterceptorService: SheetPrintInterceptorService, _renderManagerService: IRenderManagerService);
|
|
68
68
|
get layoutInfos(): ISheetPrintLayoutInfo[];
|
|
69
69
|
get renderConfig(): ISheetPrintRenderConfig;
|
|
70
70
|
get layoutConfig(): ISheetPrintLayoutConfig;
|