@univerjs-pro/sheets-print 0.10.14 → 0.11.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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/ko-KR.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/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/ko-KR.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/facade.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/print-grid-sidebar.operation.d.ts +4 -0
- package/lib/types/common/const.d.ts +40 -40
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/controllers/menu.d.ts +5 -2
- package/lib/types/controllers/sheet-print.controller.d.ts +8 -2
- package/lib/types/locale/en-US.d.ts +6 -0
- package/lib/types/services/print-grid.service.d.ts +17 -0
- package/lib/types/views/components/PrintGridSidebar.d.ts +1 -0
- package/lib/types/views/extensions/print-grid.extension.d.ts +12 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/ko-KR.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 +15 -15
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
M: string;
|
|
13
|
-
X: string;
|
|
14
12
|
s: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
y: string;
|
|
14
|
+
f: string;
|
|
15
|
+
X: string;
|
|
16
|
+
i: string;
|
|
18
17
|
A: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
a: string;
|
|
22
|
-
J: string;
|
|
18
|
+
O: string;
|
|
19
|
+
o: string;
|
|
23
20
|
g: string;
|
|
24
|
-
G: string;
|
|
25
|
-
F: string;
|
|
26
|
-
Q: string;
|
|
27
|
-
x: string;
|
|
28
|
-
p: string;
|
|
29
|
-
L: string;
|
|
30
21
|
h: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
e: string;
|
|
35
|
-
w: string;
|
|
36
|
-
b: string;
|
|
37
|
-
U: string;
|
|
38
|
-
y: string;
|
|
39
|
-
N: string;
|
|
40
|
-
D: string;
|
|
41
|
-
c: string;
|
|
42
|
-
q: string;
|
|
43
|
-
W: string;
|
|
22
|
+
I: string;
|
|
23
|
+
L: string;
|
|
24
|
+
Q: string;
|
|
44
25
|
R: string;
|
|
45
|
-
V: string;
|
|
46
|
-
i: string;
|
|
47
26
|
k: string;
|
|
48
|
-
|
|
49
|
-
o: string;
|
|
27
|
+
j: string;
|
|
50
28
|
z: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
x: string;
|
|
30
|
+
q: string;
|
|
31
|
+
m: string;
|
|
54
32
|
t: string;
|
|
55
|
-
|
|
56
|
-
|
|
33
|
+
H: string;
|
|
34
|
+
D: string;
|
|
35
|
+
r: string;
|
|
57
36
|
S: string;
|
|
37
|
+
U: string;
|
|
38
|
+
b: string;
|
|
58
39
|
K: string;
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
u: string;
|
|
41
|
+
F: string;
|
|
42
|
+
T: string;
|
|
43
|
+
Y: string;
|
|
44
|
+
d: string;
|
|
45
|
+
e: string;
|
|
46
|
+
v: string;
|
|
47
|
+
w: string;
|
|
48
|
+
M: string;
|
|
49
|
+
G: string;
|
|
61
50
|
l: string;
|
|
62
|
-
|
|
51
|
+
p: string;
|
|
52
|
+
V: string;
|
|
53
|
+
B: string;
|
|
54
|
+
a: string;
|
|
55
|
+
C: string;
|
|
56
|
+
c: string;
|
|
57
|
+
P: string;
|
|
63
58
|
Z: string;
|
|
59
|
+
W: string;
|
|
60
|
+
E: string;
|
|
61
|
+
J: string;
|
|
62
|
+
n: string;
|
|
63
|
+
N: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "Ir2gDRq2 9hgt7mDRq2(zRgh2Hh, mrozRgMh7) { Dt7 { gq2HD zRgh2Hhv2IqB4tDutt47 = zRgh2Hh.HmzRD('-'); gq2HD qtRLR2lhHH4Lh = wcVp.m4tHh(4Dqo(zRgh2Hhv2IqB4tDutt47[f])); RI (!qtRLR2lhHH4Lh.r9) { qtRLR2lhHH4Lh.r9 = prxoht(zRgh2Hhv2IqB4tDutt47[i]); } gq2HD RHEqtjht = D7mhqI Eqtjhtdzqo4zcgqmh !== 'r29hIR2h9' && HhzI R2HD42ghqI Eqtjhtdzqo4zcgqmh; gq2HD gq2DhbD = RHEqtjht ? HhzI : UR29qU; gq2HD xhHH4LhEqt9 = gq2DhbD.__F4Hh1i__.m4tHh(zRgh2Hhv2IqB4tDutt47[f]); gq2HD xhHH4Lh = gq2DhbD.__ehb__.HDtR2LRI7(xhHH4LhEqt9); gq2HD HRL24DrthEqt9 = gq2DhbD.__F4Hh1i__.m4tHh(zRgh2Hhv2IqB4tDutt47[X]); gq2HD HRL24Drth = gq2DhbD.__ehb__.HDtR2LRI7(HRL24DrthEqt9); gq2HD HRL2W4zR9 = gq2DhbD.__ShtRI7__(HRL24Drth, xhHH4Lh, mrozRgMh7); gq2HD 9qx4R2 = qtRLR2lhHH4Lh.9x; Ir2gDRq2 RHYqx4R2l4DgQR2L(qB4DDht2, qeqHD) { gq2HD m4DDht2 = qB4DDht2.thmz4gh(/^.+/, ''); gq2HD QqHD = qeqHD.thmz4gh(/^.+/, ''); gq2HD m4DDht2B4tDH = m4DDht2.HmzRD('.'); gq2HD QqHDB4tDH = QqHD.HmzRD('.'); RI (!m4DDht2.R2gzr9hH('*')) { thDrt2 m4DDht2 === QqHD; } RI (m4DDht2B4tDH.zh2LDQ < f || m4DDht2B4tDH[s] !== '*') { thDrt2 I4zHh; } gq2HD m4DDht2crIIRb = m4DDht2B4tDH.HzRgh(y).kqR2('.'); gq2HD QqHDcrIIRb = QqHDB4tDH.HzRgh(-m4DDht2B4tDH.zh2LDQ + y).kqR2('.'); thDrt2 m4DDht2crIIRb === QqHDcrIIRb; } zhD 9qx4R2W4zR9 = (9qx4R2 && 9qx4R2.zh2LDQ) ? 9qx4R2.Hqxh((9xvDhx) => RHYqx4R2l4DgQR2L(9xvDhx, zqg4DRq2.QqHD24xh)) : Dtrh; RI (zqg4DRq2.QqHD24xh === 'zqg4zQqHD') { 9qx4R2W4zR9 = Dtrh; } gq2HD S4zR9 = HRL2W4zR9 && 9qx4R2W4zR9; thDrt2 { S4zR9, xhHH4Lh: qtRLR2lhHH4Lh, }; } g4DgQ (httqt) { thDrt2 { S4zR9: I4zHh, xhHH4Lh: {}, }; }}";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { IAccessor } from '@univerjs/core';
|
|
2
|
-
import { IMenuButtonItem } from '@univerjs/ui';
|
|
3
|
-
export declare
|
|
2
|
+
import { IMenuButtonItem, IMenuItem } from '@univerjs/ui';
|
|
3
|
+
export declare const PRINT_MENU_ID = "sheet.menu.print";
|
|
4
|
+
export declare function PrintMenuFactory(accessor: IAccessor): IMenuItem;
|
|
5
|
+
export declare function PrintMenuItemFactory(_accessor: IAccessor): IMenuButtonItem;
|
|
4
6
|
export declare function ScreenshotMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
7
|
+
export declare function PrintGridMenuItemFactory(_accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
3
|
import { ComponentManager, IGlobalZoneService, IMenuManagerService, IShortcutService } from '@univerjs/ui';
|
|
3
4
|
import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
|
|
4
5
|
import { SheetPrintClientService } from '../services/sheet-print.service';
|
|
@@ -10,7 +11,10 @@ export declare class SheetPrintController extends Disposable {
|
|
|
10
11
|
private readonly _componentManager;
|
|
11
12
|
protected readonly _menuManagerService: IMenuManagerService;
|
|
12
13
|
private readonly _shortcutService;
|
|
13
|
-
|
|
14
|
+
private readonly _injector;
|
|
15
|
+
private readonly _univerInstanceService;
|
|
16
|
+
private readonly _renderManagerService;
|
|
17
|
+
constructor(_printService: IGlobalZoneService, _commandService: ICommandService, _sheetPrintManagerService: ISheetPrintManagerService, _sheetPrintClientService: SheetPrintClientService, _componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
14
18
|
private _initialize;
|
|
15
19
|
private _initCommands;
|
|
16
20
|
private _initComponents;
|
|
@@ -19,4 +23,6 @@ export declare class SheetPrintController extends Disposable {
|
|
|
19
23
|
private _initConfigChangeListener;
|
|
20
24
|
private _print;
|
|
21
25
|
private _initCommandListener;
|
|
26
|
+
private _initPrintGridExtension;
|
|
27
|
+
private _initMutationListener;
|
|
22
28
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
export interface IPrintGridService {
|
|
4
|
+
visible$: BehaviorSubject<boolean>;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
show(): void;
|
|
7
|
+
hide(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const IPrintGridService: import('@wendellhu/redi').IdentifierDecorator<IPrintGridService>;
|
|
10
|
+
export declare class PrintGridService extends Disposable implements IPrintGridService {
|
|
11
|
+
private readonly _visible$;
|
|
12
|
+
readonly visible$: BehaviorSubject<boolean>;
|
|
13
|
+
get visible(): boolean;
|
|
14
|
+
show(): void;
|
|
15
|
+
hide(): void;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PrintGridSidebar: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
|
|
3
|
+
import { IPrintGridService } from '../../services/print-grid.service';
|
|
4
|
+
import { ISheetPrintManagerService } from '../../services/sheet-print-manager.service';
|
|
5
|
+
export declare class PrintGridExtension extends SheetExtension {
|
|
6
|
+
uKey: string;
|
|
7
|
+
Z_INDEX: number;
|
|
8
|
+
static printGridService: IPrintGridService | null;
|
|
9
|
+
static printManagerService: ISheetPrintManagerService | null;
|
|
10
|
+
draw(ctx: UniverRenderingContext, parentScale: IScale, skeleton: SpreadsheetSkeleton, _diffRanges: IRange[]): void;
|
|
11
|
+
private _drawPrintGrid;
|
|
12
|
+
}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1218(_0x450d10,_0x4c28d0){const _0x42847d=_0x4284();return _0x1218=function(_0x12188b,_0x36700b){_0x12188b=_0x12188b-0xd3;let _0x4119d0=_0x42847d[_0x12188b];return _0x4119d0;},_0x1218(_0x450d10,_0x4c28d0);}function _0x4284(){const _0x470d61=['@univerjs-pro/print','PrintDirection','renderConfig','BeforeSheetPrintConfirm','PrintHeaderFooter','3920556BbmRUu','extend','@univerjs-pro/sheets-print','SheetPrintOpen','getActiveUniverSheet','10DFdvpn','FRange','PrintArea','5018121Bfaajb','print','object','openPrintDialog','registerEventHandler','UniverProPrint','closePrintDialog','cancel','PaperType','saveScreenshotToClipboard','UniverSheetsFacade','_workbook','PrintAlign','PrintFreeze','updatePrintConfig','layoutConfig','16225cFvQHv','CanceledError','FWorkbook','@univerjs/core/facade','SheetPrintConfirmed','FEventName','Event','CancelSheetPrintOperation','PrintPaperMargin','_injector','1734rewgQM','12845512VoMCtx','UniverCore','executeCommand','SheetPrintClientService','get','PrintHeaderFooterSymbol','getUnitId','getScreenshot','FUniver','hasPrintFacadePermission','_worksheet','getActiveSheet','61767693YUBSMI','ISheetPrintManagerService','fireEvent','SheetPrintOpenOperation','onCommandExecuted','@univerjs/core','_initialize','ConfirmSheetPrintOperation','getRangeImage','214QCZmqs','_range','4969573SyBiHx','14014DNdkEo','PrintScale','BeforeSheetPrintOpen','ICommandService','syncExecuteCommand','SheetPrintCanceled','beforeCommandExecuted','BeforeSheetPrintCanceled'];_0x4284=function(){return _0x470d61;};return _0x4284();}(function(_0x33dcee,_0x2c112d){const _0x9c6147=_0x1218,_0x492ce3=_0x33dcee();while(!![]){try{const _0x572bc6=-parseInt(_0x9c6147(0xeb))/0x1*(parseInt(_0x9c6147(0xe8))/0x2)+-parseInt(_0x9c6147(0x100))/0x3+-parseInt(_0x9c6147(0xf8))/0x4+-parseInt(_0x9c6147(0x110))/0x5*(parseInt(_0x9c6147(0x11a))/0x6)+parseInt(_0x9c6147(0xea))/0x7+-parseInt(_0x9c6147(0xd3))/0x8+-parseInt(_0x9c6147(0xdf))/0x9*(-parseInt(_0x9c6147(0xfd))/0xa);if(_0x572bc6===_0x2c112d)break;else _0x492ce3['push'](_0x492ce3['shift']());}catch(_0x43ca9f){_0x492ce3['push'](_0x492ce3['shift']());}}}(_0x4284,0xd627a),function(_0x1d38a8,_0x32aeb4){const _0x1cfe66=_0x1218;typeof exports==_0x1cfe66(0x102)&&typeof module<'u'?_0x32aeb4(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define=='function'&&define['amd']?define([_0x1cfe66(0xfa),_0x1cfe66(0xe4),'@univerjs/sheets/facade',_0x1cfe66(0x113),_0x1cfe66(0xf3)],_0x32aeb4):(_0x1d38a8=typeof globalThis<'u'?globalThis:_0x1d38a8||self,_0x32aeb4(_0x1d38a8['UniverProSheetsPrint'],_0x1d38a8[_0x1cfe66(0xd4)],_0x1d38a8[_0x1cfe66(0x10a)],_0x1d38a8['UniverCoreFacade'],_0x1d38a8[_0x1cfe66(0x105)]));}(this,function(_0xa1a90d,_0x281e40,_0x313cc8,_0x9889b,_0xb2ed85){'use strict';const _0x3bbd19=_0x1218;class _0xd6812 extends _0x313cc8[_0x3bbd19(0x112)]{[_0x3bbd19(0x10e)](_0x405fde){const _0x1cff3c=_0x3bbd19;return this[_0x1cff3c(0x119)][_0x1cff3c(0xd7)](_0xa1a90d[_0x1cff3c(0xe0)])['updateLayoutConfig'](_0x405fde),this;}['updatePrintRenderConfig'](_0x192179){const _0xc106da=_0x3bbd19;return this[_0xc106da(0x119)][_0xc106da(0xd7)](_0xa1a90d[_0xc106da(0xe0)])['updateRenderConfig'](_0x192179),this;}[_0x3bbd19(0x101)](){const _0x3667ec=_0x3bbd19;return this[_0x3667ec(0x119)]['get'](_0x281e40['ICommandService'])[_0x3667ec(0xef)](_0xa1a90d[_0x3667ec(0xe6)]['id']);}[_0x3bbd19(0x103)](){const _0x567cd6=_0x3bbd19;return this[_0x567cd6(0x119)][_0x567cd6(0xd7)](_0x281e40[_0x567cd6(0xee)])['syncExecuteCommand'](_0xa1a90d[_0x567cd6(0xe2)]['id']);}[_0x3bbd19(0x106)](){const _0x420a55=_0x3bbd19;return this[_0x420a55(0x119)][_0x420a55(0xd7)](_0x281e40[_0x420a55(0xee)])[_0x420a55(0xef)](_0xa1a90d[_0x420a55(0x117)]['id']);}async[_0x3bbd19(0x109)](){const _0x53262c=_0x3bbd19;return _0xa1a90d['hasPrintFacadePermission'](this[_0x53262c(0x119)])?this[_0x53262c(0x119)][_0x53262c(0xd7)](_0x281e40[_0x53262c(0xee)])[_0x53262c(0xd5)](_0xa1a90d['SheetScreenShotOperation']['id']):!0x1;}}_0x313cc8['FWorkbook'][_0x3bbd19(0xf9)](_0xd6812);class _0x4a9f3b extends _0x313cc8[_0x3bbd19(0xfe)]{[_0x3bbd19(0xda)](){const _0x1d9e8e=_0x3bbd19;return _0xa1a90d[_0x1d9e8e(0xdc)](this['_injector'])?this[_0x1d9e8e(0x119)][_0x1d9e8e(0xd7)](_0xa1a90d[_0x1d9e8e(0xd6)])[_0x1d9e8e(0xe7)](this[_0x1d9e8e(0x10b)][_0x1d9e8e(0xd9)](),this[_0x1d9e8e(0xdd)]['getSheetId'](),this[_0x1d9e8e(0xe9)]):!0x1;}}_0x313cc8[_0x3bbd19(0xfe)][_0x3bbd19(0xf9)](_0x4a9f3b);class _0xb3b284{get[_0x3bbd19(0xed)](){const _0x13c1f0=_0x3bbd19;return _0x13c1f0(0xed);}get[_0x3bbd19(0xf6)](){const _0x1e604d=_0x3bbd19;return _0x1e604d(0xf6);}get['BeforeSheetPrintCanceled'](){const _0xd32686=_0x3bbd19;return _0xd32686(0xf2);}get[_0x3bbd19(0xfb)](){const _0x4a33c7=_0x3bbd19;return _0x4a33c7(0xfb);}get[_0x3bbd19(0x114)](){const _0x552fc1=_0x3bbd19;return _0x552fc1(0x114);}get[_0x3bbd19(0xf0)](){const _0x53d751=_0x3bbd19;return _0x53d751(0xf0);}}_0x9889b[_0x3bbd19(0x115)][_0x3bbd19(0xf9)](_0xb3b284);class _0x1ddc72{get['PrintArea'](){const _0x30010a=_0x3bbd19;return _0xa1a90d[_0x30010a(0xff)];}get['PrintAlign'](){const _0x4d0f54=_0x3bbd19;return _0xb2ed85[_0x4d0f54(0x10c)];}get['PrintPaperSize'](){const _0x4a3441=_0x3bbd19;return _0x281e40[_0x4a3441(0x108)];}get[_0x3bbd19(0x118)](){const _0x25e60d=_0x3bbd19;return _0xb2ed85[_0x25e60d(0x118)];}get[_0x3bbd19(0xec)](){const _0x5d60f5=_0x3bbd19;return _0xb2ed85[_0x5d60f5(0xec)];}get[_0x3bbd19(0xf4)](){const _0x5b0788=_0x3bbd19;return _0xb2ed85[_0x5b0788(0xf4)];}get['PrintFreeze'](){const _0x209c05=_0x3bbd19;return _0xa1a90d[_0x209c05(0x10d)];}get[_0x3bbd19(0xf7)](){return _0xa1a90d['PrintHeaderFooter'];}get[_0x3bbd19(0xd8)](){return _0xa1a90d['PrintHeaderFooterSymbol'];}}_0x9889b['FEnum']['extend'](_0x1ddc72);class _0x4d7ae9 extends _0x9889b[_0x3bbd19(0xdb)]{[_0x3bbd19(0xe5)](_0x33fc5f){const _0x4a5abc=_0x3bbd19,_0x1e6e26=_0x33fc5f[_0x4a5abc(0xd7)](_0x281e40[_0x4a5abc(0xee)]);this[_0x4a5abc(0x104)](this[_0x4a5abc(0x116)][_0x4a5abc(0xed)],()=>_0x1e6e26[_0x4a5abc(0xf1)](_0x4bacda=>{const _0x1b5f46=_0x4a5abc;if(_0x4bacda['id']===_0xa1a90d['SheetPrintOpenOperation']['id']){const _0x56b055=this[_0x1b5f46(0xfc)]();if(!_0x56b055)return;const _0x5ab82d={'workbook':_0x56b055,'worksheet':_0x56b055[_0x1b5f46(0xde)]()};if(_0x5ab82d==null)return;if(this['fireEvent'](this['Event']['BeforeSheetPrintOpen'],_0x5ab82d),_0x5ab82d[_0x1b5f46(0x107)])throw new _0x281e40['CanceledError']();}})),this[_0x4a5abc(0x104)](this['Event'][_0x4a5abc(0xf6)],()=>_0x1e6e26[_0x4a5abc(0xf1)](_0xcb4405=>{const _0x5eb79c=_0x4a5abc;if(_0xcb4405['id']===_0xa1a90d['ConfirmSheetPrintOperation']['id']){const _0x3eea2f=_0x33fc5f['get'](_0xa1a90d[_0x5eb79c(0xe0)]);if(!this[_0x5eb79c(0xfc)]())return;const _0x59984c={'layoutConfig':_0x3eea2f[_0x5eb79c(0x10f)],'renderConfig':_0x3eea2f['renderConfig']};if(_0x59984c==null)return;if(this['fireEvent'](this[_0x5eb79c(0x116)]['BeforeSheetPrintConfirm'],_0x59984c),_0x59984c[_0x5eb79c(0x107)])throw new _0x281e40[(_0x5eb79c(0x111))]();}})),this[_0x4a5abc(0x104)](this['Event'][_0x4a5abc(0xf2)],()=>_0x1e6e26['beforeCommandExecuted'](_0x1818f6=>{const _0x4c9e89=_0x4a5abc;if(_0x1818f6['id']===_0xa1a90d[_0x4c9e89(0x117)]['id']){const _0x20afad=_0x33fc5f[_0x4c9e89(0xd7)](_0xa1a90d[_0x4c9e89(0xe0)]);if(!this[_0x4c9e89(0xfc)]())return;const _0x391714={'layoutConfig':_0x20afad[_0x4c9e89(0x10f)],'renderConfig':_0x20afad[_0x4c9e89(0xf5)]};if(_0x391714==null)return;if(this['fireEvent'](this['Event'][_0x4c9e89(0xf2)],_0x391714),_0x391714['cancel'])throw new _0x281e40[(_0x4c9e89(0x111))]();}})),this['registerEventHandler'](this[_0x4a5abc(0x116)][_0x4a5abc(0xfb)],()=>_0x1e6e26[_0x4a5abc(0xe3)](_0x3bebec=>{const _0x5ef856=_0x4a5abc;if(_0x3bebec['id']===_0xa1a90d[_0x5ef856(0xe2)]['id']){const _0x3c4c7a=this['getActiveUniverSheet']();if(!_0x3c4c7a)return;const _0x2d282e={'workbook':_0x3c4c7a,'worksheet':_0x3c4c7a[_0x5ef856(0xde)]()};if(_0x2d282e==null)return;this[_0x5ef856(0xe1)](this[_0x5ef856(0x116)][_0x5ef856(0xfb)],_0x2d282e);}})),this[_0x4a5abc(0x104)](this[_0x4a5abc(0x116)]['SheetPrintConfirmed'],()=>_0x1e6e26['onCommandExecuted'](_0x5f3982=>{const _0x279bf3=_0x4a5abc;if(_0x5f3982['id']===_0xa1a90d[_0x279bf3(0xe6)]['id']){const _0x2b02be=_0x33fc5f['get'](_0xa1a90d[_0x279bf3(0xe0)]);if(!this[_0x279bf3(0xfc)]())return;const _0xf26431={'layoutConfig':_0x2b02be[_0x279bf3(0x10f)],'renderConfig':_0x2b02be[_0x279bf3(0xf5)]};if(_0xf26431==null)return;this['fireEvent'](this[_0x279bf3(0x116)][_0x279bf3(0x114)],_0xf26431);}})),this['registerEventHandler'](this[_0x4a5abc(0x116)][_0x4a5abc(0xf0)],()=>_0x1e6e26[_0x4a5abc(0xe3)](_0x4707e7=>{const _0x269e27=_0x4a5abc;if(_0x4707e7['id']===_0xa1a90d[_0x269e27(0x117)]['id']){const _0x4face2=_0x33fc5f['get'](_0xa1a90d[_0x269e27(0xe0)]);if(!this[_0x269e27(0xfc)]())return;const _0x5056e7={'layoutConfig':_0x4face2[_0x269e27(0x10f)],'renderConfig':_0x4face2[_0x269e27(0xf5)]};if(_0x5056e7==null)return;this[_0x269e27(0xe1)](this[_0x269e27(0x116)]['SheetPrintCanceled'],_0x5056e7);}}));}}_0x9889b[_0x3bbd19(0xdb)]['extend'](_0x4d7ae9);}));
|