@univerjs-pro/sheets-print 0.6.2 → 0.6.3-nightly.202503051607
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 +1 -1
- 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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +41 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-event.d.ts +44 -18
- package/lib/types/facade/f-range.d.ts +8 -5
- package/lib/types/facade/f-workbook.d.ts +63 -29
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- 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 +16 -16
|
@@ -86,61 +86,85 @@ export interface IBeforeSheetPrintCancelEvent extends IEventBase {
|
|
|
86
86
|
export interface IFSheetPrintEventName {
|
|
87
87
|
/**
|
|
88
88
|
* Event triggered before print dialog opens
|
|
89
|
+
* @see {@link IBeforeSheetPrintOpenEvent}
|
|
89
90
|
*
|
|
90
91
|
* @example
|
|
91
92
|
* ``` ts
|
|
92
|
-
* univerAPI.addEvent(univerAPI.
|
|
93
|
-
*
|
|
94
|
-
*
|
|
93
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetPrintOpen, (params) => {
|
|
94
|
+
* const { workbook, worksheet } = params;
|
|
95
|
+
* console.log('params', params);
|
|
96
|
+
*
|
|
97
|
+
* // Cancel the print preview operation
|
|
98
|
+
* params.cancel = true;
|
|
95
99
|
* });
|
|
100
|
+
*
|
|
101
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
96
102
|
* ```
|
|
97
103
|
*/
|
|
98
104
|
readonly BeforeSheetPrintOpen: 'BeforeSheetPrintOpen';
|
|
99
105
|
/**
|
|
100
106
|
* Event triggered before print settings are confirmed
|
|
107
|
+
* @see {@link IBeforeSheetPrintConfirmEvent}
|
|
101
108
|
*
|
|
102
109
|
* @example
|
|
103
110
|
* ``` ts
|
|
104
|
-
* univerAPI.addEvent(univerAPI.
|
|
105
|
-
*
|
|
106
|
-
*
|
|
111
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetPrintConfirm, (params) => {
|
|
112
|
+
* const { renderConfig, layoutConfig } = params;
|
|
113
|
+
* console.log('params', params);
|
|
114
|
+
*
|
|
115
|
+
* // Cancel the print confirmation operation
|
|
116
|
+
* params.cancel = true;
|
|
107
117
|
* });
|
|
118
|
+
*
|
|
119
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
108
120
|
* ```
|
|
109
121
|
*/
|
|
110
122
|
readonly BeforeSheetPrintConfirm: 'BeforeSheetPrintConfirm';
|
|
111
123
|
/**
|
|
112
124
|
* Event triggered before print operation is canceled
|
|
125
|
+
* @see {@link IBeforeSheetPrintCancelEvent}
|
|
113
126
|
*
|
|
114
127
|
* @example
|
|
115
128
|
* ``` ts
|
|
116
|
-
* univerAPI.addEvent(univerAPI.
|
|
117
|
-
*
|
|
118
|
-
*
|
|
129
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.BeforeSheetPrintCanceled, (params) => {
|
|
130
|
+
* const { renderConfig, layoutConfig } = params;
|
|
131
|
+
* console.log('params', params);
|
|
132
|
+
*
|
|
133
|
+
* // Cancel the print cancel operation
|
|
134
|
+
* params.cancel = true;
|
|
119
135
|
* });
|
|
136
|
+
*
|
|
137
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
120
138
|
* ```
|
|
121
139
|
*/
|
|
122
140
|
readonly BeforeSheetPrintCanceled: 'BeforeSheetPrintCanceled';
|
|
123
141
|
/**
|
|
124
142
|
* Event triggered when print dialog opens
|
|
143
|
+
* @see {@link ISheetPrintOpenEvent}
|
|
125
144
|
*
|
|
126
145
|
* @example
|
|
127
146
|
* ``` ts
|
|
128
|
-
* univerAPI.addEvent(univerAPI.
|
|
129
|
-
*
|
|
130
|
-
*
|
|
147
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.SheetPrintOpen, (params) => {
|
|
148
|
+
* const { workbook, worksheet } = params;
|
|
149
|
+
* console.log('params', params);
|
|
131
150
|
* });
|
|
151
|
+
*
|
|
152
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
132
153
|
* ```
|
|
133
154
|
*/
|
|
134
155
|
readonly SheetPrintOpen: 'SheetPrintOpen';
|
|
135
156
|
/**
|
|
136
157
|
* Event triggered when print settings are confirmed
|
|
158
|
+
* @see {@link ISheetPrintConfirmedEvent}
|
|
137
159
|
*
|
|
138
160
|
* @example
|
|
139
161
|
* ``` ts
|
|
140
|
-
* univerAPI.addEvent(univerAPI.
|
|
141
|
-
*
|
|
142
|
-
*
|
|
162
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.SheetPrintConfirmed, (params) => {
|
|
163
|
+
* const { renderConfig, layoutConfig } = params;
|
|
164
|
+
* console.log('params', params);
|
|
143
165
|
* });
|
|
166
|
+
*
|
|
167
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
144
168
|
* ```
|
|
145
169
|
*/
|
|
146
170
|
readonly SheetPrintConfirmed: 'SheetPrintConfirmed';
|
|
@@ -149,10 +173,12 @@ export interface IFSheetPrintEventName {
|
|
|
149
173
|
*
|
|
150
174
|
* @example
|
|
151
175
|
* ``` ts
|
|
152
|
-
* univerAPI.addEvent(univerAPI.
|
|
153
|
-
*
|
|
154
|
-
*
|
|
176
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.SheetPrintCanceled, (params) => {
|
|
177
|
+
* const { renderConfig, layoutConfig } = params;
|
|
178
|
+
* console.log('params', params);
|
|
155
179
|
* });
|
|
180
|
+
*
|
|
181
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
156
182
|
* ```
|
|
157
183
|
*/
|
|
158
184
|
readonly SheetPrintCanceled: 'SheetPrintCanceled';
|
|
@@ -4,13 +4,16 @@ import { FRange } from '@univerjs/sheets/facade';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface IFRangePrint {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Get screenshot of this range.
|
|
8
|
+
* This API is only available with a license. Users without a license will face usage restrictions. On failure, it returns false, and on success, it returns the image’s base64 string.
|
|
9
|
+
* @returns {string | false} - The base64 encoded image string, or false if the user does not have permission.
|
|
10
|
+
*
|
|
8
11
|
* @example
|
|
9
12
|
* ``` ts
|
|
10
|
-
* univerAPI.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
14
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
15
|
+
* const fRange = fWorksheet.getRange('A1:D10');
|
|
16
|
+
* console.log(fRange.getScreenshot());
|
|
14
17
|
* ```
|
|
15
18
|
*/
|
|
16
19
|
getScreenshot(): string | false;
|
|
@@ -5,75 +5,109 @@ import { FWorkbook } from '@univerjs/sheets/facade';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface IFWorkbookSheetsPrintMixin {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param config
|
|
8
|
+
* Update print config, include print area, page-setting, scale, freeze, margin, and etc.
|
|
9
|
+
* @param {ISheetPrintLayoutConfig} config - The print layout config.
|
|
10
|
+
* @returns {FWorkbook} - The current workbook instance for chaining.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ``` ts
|
|
13
|
-
* univerAPI.getActiveWorkbook()
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* },
|
|
14
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
15
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
16
|
+
* const subUnitId = fWorksheet.getSheetId();
|
|
17
|
+
*
|
|
18
|
+
* // Update print layout config
|
|
19
|
+
* fWorkbook.updatePrintConfig({
|
|
20
|
+
* area: univerAPI.Enum.PrintArea.CurrentSheet,
|
|
21
|
+
* subUnitIds: [subUnitId],
|
|
22
|
+
* paperSize: univerAPI.Enum.PrintPaperSize.A4,
|
|
23
|
+
* scale: univerAPI.Enum.PrintScale.FitPage,
|
|
24
|
+
* freeze: [univerAPI.Enum.PrintFreeze.Row],
|
|
25
|
+
* margin: univerAPI.Enum.PrintPaperMargin.Normal,
|
|
26
26
|
* });
|
|
27
|
+
*
|
|
28
|
+
* // Start print
|
|
29
|
+
* fWorkbook.print();
|
|
27
30
|
* ```
|
|
28
31
|
*/
|
|
29
32
|
updatePrintConfig(config: ISheetPrintLayoutConfig): FWorkbook;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param config
|
|
34
|
+
* Update print render config, include print header-footer setting, alignment, gridline, and etc.
|
|
35
|
+
* @param {ISheetPrintRenderConfig} config - The print render config.
|
|
36
|
+
* @returns {FWorkbook} - The current workbook instance for chaining.
|
|
33
37
|
*
|
|
34
38
|
* @example
|
|
35
39
|
* ``` ts
|
|
36
|
-
* univerAPI.getActiveWorkbook()
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
41
|
+
*
|
|
42
|
+
* // Update print layout config by default
|
|
43
|
+
* fWorkbook.updatePrintConfig({});
|
|
44
|
+
*
|
|
45
|
+
* // Update print render config
|
|
46
|
+
* fWorkbook.updatePrintRenderConfig({
|
|
47
|
+
* headerFooter: [univerAPI.Enum.PrintHeaderFooter.PageSize, univerAPI.Enum.PrintHeaderFooter.WorksheetTitle],
|
|
48
|
+
* vAlign: univerAPI.Enum.PrintAlign.Middle,
|
|
49
|
+
* gridlines: true,
|
|
40
50
|
* });
|
|
51
|
+
*
|
|
52
|
+
* // Start print
|
|
53
|
+
* fWorkbook.print();
|
|
41
54
|
* ```
|
|
42
55
|
*/
|
|
43
56
|
updatePrintRenderConfig(config: ISheetPrintRenderConfig): FWorkbook;
|
|
44
57
|
/**
|
|
45
|
-
*
|
|
58
|
+
* Using current print config and render config to print.
|
|
46
59
|
*
|
|
47
60
|
* @example
|
|
48
61
|
* ``` ts
|
|
49
|
-
* univerAPI.getActiveWorkbook()
|
|
62
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
63
|
+
*
|
|
64
|
+
* // Update print layout config by default
|
|
65
|
+
* fWorkbook.updatePrintConfig({});
|
|
66
|
+
*
|
|
67
|
+
* // Update print render config by default
|
|
68
|
+
* fWorkbook.updatePrintRenderConfig({});
|
|
69
|
+
*
|
|
70
|
+
* // Start print
|
|
71
|
+
* fWorkbook.print();
|
|
50
72
|
* ```
|
|
51
73
|
*/
|
|
52
74
|
print(): void;
|
|
53
75
|
/**
|
|
54
|
-
*
|
|
76
|
+
* Open print preview dialog.
|
|
55
77
|
*
|
|
56
78
|
* @example
|
|
57
79
|
* ``` ts
|
|
58
|
-
* univerAPI.getActiveWorkbook()
|
|
80
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
81
|
+
* fWorkbook.openPrintDialog();
|
|
59
82
|
* ```
|
|
60
83
|
*/
|
|
61
84
|
openPrintDialog(): void;
|
|
62
85
|
/**
|
|
63
|
-
*
|
|
86
|
+
* Close print preview dialog.
|
|
64
87
|
*
|
|
65
88
|
* @example
|
|
66
89
|
* ``` ts
|
|
67
|
-
* univerAPI.getActiveWorkbook()
|
|
90
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
91
|
+
* fWorkbook.openPrintDialog();
|
|
92
|
+
*
|
|
93
|
+
* // Close print dialog after 3 seconds
|
|
94
|
+
* setTimeout(() => {
|
|
95
|
+
* fWorkbook.closePrintDialog();
|
|
96
|
+
* }, 3000);
|
|
68
97
|
* ```
|
|
69
98
|
*/
|
|
70
99
|
closePrintDialog(): void;
|
|
71
100
|
/**
|
|
72
|
-
*
|
|
101
|
+
* Save screenshot of current range to clipboard.
|
|
102
|
+
* This API is only available with a license. Without a license, usage is restricted, and save operations will return `false`.
|
|
103
|
+
* We use the Clipboard API to save the image to the clipboard, which may fail in an insecure network environment or in some unsupported browsers. A successful save will return `true`.
|
|
104
|
+
* @returns {Promise<boolean>} - The result of saving the screenshot to the clipboard.
|
|
73
105
|
*
|
|
74
106
|
* @example
|
|
75
107
|
* ``` ts
|
|
76
|
-
* univerAPI.getActiveWorkbook()
|
|
108
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
109
|
+
* const result = await fWorkbook.saveScreenshotToClipboard();
|
|
110
|
+
* console.log(result); // true or false
|
|
77
111
|
* ```
|
|
78
112
|
*/
|
|
79
113
|
saveScreenshotToClipboard(): Promise<boolean>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4f52(_0x6e52ee,_0xd084b7){const _0x3e69f0=_0x3e69();return _0x4f52=function(_0x4f5294,_0x5bc4e8){_0x4f5294=_0x4f5294-0x14a;let _0x1ce21f=_0x3e69f0[_0x4f5294];return _0x1ce21f;},_0x4f52(_0x6e52ee,_0xd084b7);}(function(_0x30f032,_0x31bc65){const _0x5476fd=_0x4f52,_0x36f984=_0x30f032();while(!![]){try{const _0x299736=parseInt(_0x5476fd(0x15d))/0x1+-parseInt(_0x5476fd(0x16b))/0x2+parseInt(_0x5476fd(0x18e))/0x3+-parseInt(_0x5476fd(0x183))/0x4*(parseInt(_0x5476fd(0x160))/0x5)+parseInt(_0x5476fd(0x18a))/0x6*(parseInt(_0x5476fd(0x169))/0x7)+-parseInt(_0x5476fd(0x16c))/0x8*(parseInt(_0x5476fd(0x165))/0x9)+parseInt(_0x5476fd(0x189))/0xa*(parseInt(_0x5476fd(0x17e))/0xb);if(_0x299736===_0x31bc65)break;else _0x36f984['push'](_0x36f984['shift']());}catch(_0x56f66f){_0x36f984['push'](_0x36f984['shift']());}}}(_0x3e69,0x2069e),function(_0x32eead,_0x8f1746){const _0x91d03c=_0x4f52;typeof exports==_0x91d03c(0x156)&&typeof module<'u'?_0x8f1746(require(_0x91d03c(0x16a)),require(_0x91d03c(0x18c)),require(_0x91d03c(0x168)),require(_0x91d03c(0x150)),require(_0x91d03c(0x182))):typeof define==_0x91d03c(0x177)&&define[_0x91d03c(0x185)]?define([_0x91d03c(0x16a),_0x91d03c(0x18c),_0x91d03c(0x168),'@univerjs/core/facade',_0x91d03c(0x182)],_0x8f1746):(_0x32eead=typeof globalThis<'u'?globalThis:_0x32eead||self,_0x8f1746(_0x32eead[_0x91d03c(0x16e)],_0x32eead[_0x91d03c(0x17c)],_0x32eead[_0x91d03c(0x179)],_0x32eead[_0x91d03c(0x17f)],_0x32eead[_0x91d03c(0x15c)]));}(this,function(_0x4b74a6,_0x323ada,_0x368a69,_0x57a223,_0x455dad){'use strict';const _0x15f65b=_0x4f52;class _0x7d48ac extends _0x368a69[_0x15f65b(0x151)]{[_0x15f65b(0x159)](_0x3044d7){const _0x51cf21=_0x15f65b;return this[_0x51cf21(0x17b)][_0x51cf21(0x18f)](_0x4b74a6['ISheetPrintManagerService'])[_0x51cf21(0x14c)](_0x3044d7),this;}['updatePrintRenderConfig'](_0x18d74d){const _0x325be0=_0x15f65b;return this['_injector'][_0x325be0(0x18f)](_0x4b74a6[_0x325be0(0x155)])[_0x325be0(0x152)](_0x18d74d),this;}['print'](){const _0x38da9c=_0x15f65b;return this[_0x38da9c(0x17b)][_0x38da9c(0x18f)](_0x323ada[_0x38da9c(0x14f)])['syncExecuteCommand'](_0x4b74a6[_0x38da9c(0x15a)]['id']);}[_0x15f65b(0x163)](){const _0xc63e6d=_0x15f65b;return this['_injector'][_0xc63e6d(0x18f)](_0x323ada[_0xc63e6d(0x14f)])['syncExecuteCommand'](_0x4b74a6['SheetPrintOpenOperation']['id']);}['closePrintDialog'](){const _0x8a72c=_0x15f65b;return this[_0x8a72c(0x17b)][_0x8a72c(0x18f)](_0x323ada[_0x8a72c(0x14f)])[_0x8a72c(0x191)](_0x4b74a6['CancelSheetPrintOperation']['id']);}async[_0x15f65b(0x18b)](){const _0x3f350a=_0x15f65b;return _0x4b74a6['hasPrintFacadePermission'](this['_injector'])?this[_0x3f350a(0x17b)][_0x3f350a(0x18f)](_0x323ada['ICommandService'])[_0x3f350a(0x180)](_0x4b74a6['SheetScreenShotOperation']['id']):!0x1;}}_0x368a69[_0x15f65b(0x151)][_0x15f65b(0x166)](_0x7d48ac);class _0x4380be extends _0x368a69[_0x15f65b(0x164)]{[_0x15f65b(0x186)](){const _0x5d00fc=_0x15f65b;return _0x4b74a6[_0x5d00fc(0x192)](this[_0x5d00fc(0x17b)])?this[_0x5d00fc(0x17b)][_0x5d00fc(0x18f)](_0x4b74a6[_0x5d00fc(0x161)])['getRangeImage'](this['_workbook'][_0x5d00fc(0x171)](),this['_worksheet']['getSheetId'](),this[_0x5d00fc(0x190)]):!0x1;}}_0x368a69[_0x15f65b(0x164)][_0x15f65b(0x166)](_0x4380be);class _0x5bc3a3{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get[_0x15f65b(0x178)](){const _0x59fd8a=_0x15f65b;return _0x59fd8a(0x178);}get[_0x15f65b(0x188)](){const _0x361ec0=_0x15f65b;return _0x361ec0(0x188);}get[_0x15f65b(0x15b)](){const _0x221638=_0x15f65b;return _0x221638(0x15b);}get['SheetPrintConfirmed'](){const _0x10d933=_0x15f65b;return _0x10d933(0x16f);}get[_0x15f65b(0x14b)](){return'SheetPrintCanceled';}}_0x57a223['FEventName'][_0x15f65b(0x166)](_0x5bc3a3);class _0x48b06e{get[_0x15f65b(0x187)](){return _0x4b74a6['PrintArea'];}get[_0x15f65b(0x181)](){return _0x455dad['PrintAlign'];}get['PrintPaperSize'](){const _0x32a0f5=_0x15f65b;return _0x455dad[_0x32a0f5(0x153)];}get[_0x15f65b(0x173)](){const _0x2273d9=_0x15f65b;return _0x455dad[_0x2273d9(0x173)];}get[_0x15f65b(0x174)](){const _0x406e32=_0x15f65b;return _0x455dad[_0x406e32(0x174)];}get['PrintDirection'](){const _0x253581=_0x15f65b;return _0x455dad[_0x253581(0x162)];}get['PrintFreeze'](){const _0x2260aa=_0x15f65b;return _0x4b74a6[_0x2260aa(0x14d)];}get[_0x15f65b(0x184)](){const _0x4d3b7d=_0x15f65b;return _0x4b74a6[_0x4d3b7d(0x184)];}get[_0x15f65b(0x16d)](){const _0x5cda49=_0x15f65b;return _0x4b74a6[_0x5cda49(0x16d)];}}_0x57a223[_0x15f65b(0x158)][_0x15f65b(0x166)](_0x48b06e);class _0x10c59b extends _0x57a223[_0x15f65b(0x176)]{[_0x15f65b(0x175)](_0x574122){const _0x20abcc=_0x15f65b,_0x4eeec2=_0x574122[_0x20abcc(0x18f)](_0x323ada[_0x20abcc(0x14f)]);this[_0x20abcc(0x170)](this['Event'][_0x20abcc(0x18d)],()=>_0x4eeec2[_0x20abcc(0x157)](_0x473d20=>{const _0x32cddb=_0x20abcc;if(_0x473d20['id']===_0x4b74a6[_0x32cddb(0x154)]['id']){const _0x5b1fd2=this[_0x32cddb(0x17d)]();if(!_0x5b1fd2)return;const _0x30256b={'workbook':_0x5b1fd2,'worksheet':_0x5b1fd2['getActiveSheet']()};if(_0x30256b==null)return;if(this[_0x32cddb(0x14a)](this[_0x32cddb(0x15f)][_0x32cddb(0x18d)],_0x30256b),_0x30256b[_0x32cddb(0x167)])throw new _0x323ada[(_0x32cddb(0x17a))]();}})),this[_0x20abcc(0x170)](this['Event'][_0x20abcc(0x178)],()=>_0x4eeec2[_0x20abcc(0x157)](_0x51703a=>{const _0x3fad87=_0x20abcc;if(_0x51703a['id']===_0x4b74a6[_0x3fad87(0x15a)]['id']){const _0x2ae001=_0x574122['get'](_0x4b74a6['ISheetPrintManagerService']);if(!this[_0x3fad87(0x17d)]())return;const _0x2db2ba={'layoutConfig':_0x2ae001[_0x3fad87(0x172)],'renderConfig':_0x2ae001[_0x3fad87(0x15e)]};if(_0x2db2ba==null)return;if(this[_0x3fad87(0x14a)](this['Event']['BeforeSheetPrintConfirm'],_0x2db2ba),_0x2db2ba[_0x3fad87(0x167)])throw new _0x323ada['CanceledError']();}})),this[_0x20abcc(0x170)](this[_0x20abcc(0x15f)]['BeforeSheetPrintCanceled'],()=>_0x4eeec2[_0x20abcc(0x157)](_0x2e9f72=>{const _0x19e47a=_0x20abcc;if(_0x2e9f72['id']===_0x4b74a6[_0x19e47a(0x14e)]['id']){const _0x1a6264=_0x574122[_0x19e47a(0x18f)](_0x4b74a6[_0x19e47a(0x155)]);if(!this[_0x19e47a(0x17d)]())return;const _0x4bda69={'layoutConfig':_0x1a6264[_0x19e47a(0x172)],'renderConfig':_0x1a6264['renderConfig']};if(_0x4bda69==null)return;if(this[_0x19e47a(0x14a)](this[_0x19e47a(0x15f)][_0x19e47a(0x188)],_0x4bda69),_0x4bda69['cancel'])throw new _0x323ada['CanceledError']();}})),this[_0x20abcc(0x170)](this[_0x20abcc(0x15f)][_0x20abcc(0x15b)],()=>_0x4eeec2['onCommandExecuted'](_0x57aeec=>{const _0x726231=_0x20abcc;if(_0x57aeec['id']===_0x4b74a6[_0x726231(0x154)]['id']){const _0x2272de=this[_0x726231(0x17d)]();if(!_0x2272de)return;const _0xbc64b1={'workbook':_0x2272de,'worksheet':_0x2272de['getActiveSheet']()};if(_0xbc64b1==null)return;this[_0x726231(0x14a)](this['Event']['SheetPrintOpen'],_0xbc64b1);}})),this['registerEventHandler'](this['Event']['SheetPrintConfirmed'],()=>_0x4eeec2['onCommandExecuted'](_0x257f1e=>{const _0x14e661=_0x20abcc;if(_0x257f1e['id']===_0x4b74a6[_0x14e661(0x15a)]['id']){const _0x297626=_0x574122[_0x14e661(0x18f)](_0x4b74a6[_0x14e661(0x155)]);if(!this[_0x14e661(0x17d)]())return;const _0x3851fa={'layoutConfig':_0x297626[_0x14e661(0x172)],'renderConfig':_0x297626[_0x14e661(0x15e)]};if(_0x3851fa==null)return;this['fireEvent'](this['Event'][_0x14e661(0x16f)],_0x3851fa);}})),this[_0x20abcc(0x170)](this['Event'][_0x20abcc(0x14b)],()=>_0x4eeec2['onCommandExecuted'](_0x94e3b5=>{const _0x183d79=_0x20abcc;if(_0x94e3b5['id']===_0x4b74a6[_0x183d79(0x14e)]['id']){const _0x2919ed=_0x574122[_0x183d79(0x18f)](_0x4b74a6[_0x183d79(0x155)]);if(!this['getActiveUniverSheet']())return;const _0x49c545={'layoutConfig':_0x2919ed[_0x183d79(0x172)],'renderConfig':_0x2919ed['renderConfig']};if(_0x49c545==null)return;this[_0x183d79(0x14a)](this[_0x183d79(0x15f)]['SheetPrintCanceled'],_0x49c545);}}));}}_0x57a223[_0x15f65b(0x176)][_0x15f65b(0x166)](_0x10c59b);}));function _0x3e69(){const _0x444f0f=['PrintAlign','@univerjs-pro/print','60CeAePK','PrintHeaderFooter','amd','getScreenshot','PrintArea','BeforeSheetPrintCanceled','50qFHJYn','18EeXSlH','saveScreenshotToClipboard','@univerjs/core','BeforeSheetPrintOpen','253485IaYSAj','get','_range','syncExecuteCommand','hasPrintFacadePermission','fireEvent','SheetPrintCanceled','updateLayoutConfig','PrintFreeze','CancelSheetPrintOperation','ICommandService','@univerjs/core/facade','FWorkbook','updateRenderConfig','PrintPaperSize','SheetPrintOpenOperation','ISheetPrintManagerService','object','beforeCommandExecuted','FEnum','updatePrintConfig','ConfirmSheetPrintOperation','SheetPrintOpen','UniverProPrint','13017kPjBkq','renderConfig','Event','30615nUjqOI','SheetPrintClientService','PrintDirection','openPrintDialog','FRange','723321NXmDHt','extend','cancel','@univerjs/sheets/facade','345541tRUxPq','@univerjs-pro/sheets-print','64152QTzCED','8mLFNij','PrintHeaderFooterSymbol','UniverProSheetsPrint','SheetPrintConfirmed','registerEventHandler','getUnitId','layoutConfig','PrintPaperMargin','PrintScale','_initialize','FUniver','function','BeforeSheetPrintConfirm','UniverSheetsFacade','CanceledError','_injector','UniverCore','getActiveUniverSheet','201201SWZGzp','UniverCoreFacade','executeCommand'];_0x3e69=function(){return _0x444f0f;};return _0x3e69();}
|