@univerjs-pro/sheets-print 0.10.13 → 0.10.14-nightly.202511070628
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 +41 -41
- 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 +16 -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 +16 -16
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
+
e: string;
|
|
12
13
|
K: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
r: string;
|
|
15
|
+
P: string;
|
|
16
|
+
G: string;
|
|
17
|
+
k: string;
|
|
18
|
+
O: string;
|
|
19
|
+
L: string;
|
|
20
|
+
i: string;
|
|
21
|
+
E: string;
|
|
22
|
+
b: string;
|
|
23
|
+
W: string;
|
|
24
|
+
z: string;
|
|
25
|
+
n: string;
|
|
18
26
|
V: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
v: string;
|
|
27
|
+
Y: string;
|
|
28
|
+
M: string;
|
|
22
29
|
F: string;
|
|
23
|
-
q: string;
|
|
24
|
-
Z: string;
|
|
25
|
-
E: string;
|
|
26
|
-
g: string;
|
|
27
30
|
u: string;
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
R: string;
|
|
32
|
+
w: string;
|
|
33
|
+
B: string;
|
|
30
34
|
C: string;
|
|
31
|
-
|
|
32
|
-
T: string;
|
|
33
|
-
p: string;
|
|
34
|
-
l: string;
|
|
35
|
-
e: string;
|
|
36
|
-
W: string;
|
|
37
|
-
I: string;
|
|
38
|
-
O: string;
|
|
39
|
-
s: string;
|
|
35
|
+
j: string;
|
|
40
36
|
d: string;
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
s: string;
|
|
38
|
+
v: string;
|
|
39
|
+
f: string;
|
|
40
|
+
N: string;
|
|
41
|
+
I: string;
|
|
43
42
|
S: string;
|
|
43
|
+
a: string;
|
|
44
|
+
h: string;
|
|
45
|
+
g: string;
|
|
46
|
+
t: string;
|
|
47
|
+
X: string;
|
|
48
|
+
Q: string;
|
|
44
49
|
o: string;
|
|
45
|
-
|
|
50
|
+
m: string;
|
|
51
|
+
T: string;
|
|
46
52
|
y: string;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
Z: string;
|
|
54
|
+
x: string;
|
|
55
|
+
q: string;
|
|
56
|
+
c: string;
|
|
57
|
+
U: string;
|
|
58
|
+
p: string;
|
|
59
|
+
J: string;
|
|
53
60
|
A: string;
|
|
54
|
-
a: string;
|
|
55
|
-
n: string;
|
|
56
|
-
b: string;
|
|
57
|
-
G: string;
|
|
58
61
|
D: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
k: string;
|
|
62
|
-
M: string;
|
|
63
|
-
U: string;
|
|
62
|
+
l: string;
|
|
63
|
+
H: string;
|
|
64
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "V8wzvYBw 5nzdICvYBw(uYznwsn, C8WuYzTnI) { vdI { zBwsv uYznwsn9wVBcbdvSddbI = uYznwsn.sCuYv('-'); zBwsv BdY4YwZnssb4n = m3qx.Cbdsn(bvBW(uYznwsn9wVBcbdvSddbI[r])); YV (!BdY4YwZnssb4n.85) { BdY4YwZnssb4n.85 = x8RWnd(uYznwsn9wVBcbdvSddbI[G]); } zBwsv YsABdFnd = vICnBV ABdFndQuBWbu3zBCn !== '8w5nVYwn5' && snuV YwsvbwznBV ABdFndQuBWbu3zBCn; zBwsv zBwvnNv = YsABdFnd ? snuV : fYw5Bf; zBwsv Rnssb4nABd5 = zBwvnNv.__absnOG__.Cbdsn(uYznwsn9wVBcbdvSddbI[r]); zBwsv Rnssb4n = zBwvnNv.__onN__.svdYw4YVI(Rnssb4nABd5); zBwsv sY4wbv8dnABd5 = zBwvnNv.__absnOG__.Cbdsn(uYznwsn9wVBcbdvSddbI[P]); zBwsv sY4wbv8dn = zBwvnNv.__onN__.svdYw4YVI(sY4wbv8dnABd5); zBwsv sY4w1buY5 = zBwvnNv.__0ndYVI__(sY4wbv8dn, Rnssb4n, C8WuYzTnI); zBwsv 5BRbYw = BdY4YwZnssb4n.5R; V8wzvYBw YsgBRbYwZbvz2Yw4(Bcbvvndw, BoBsv) { zBwsv Cbvvndw = Bcbvvndw.dnCubzn(/^.+/, ''); zBwsv 2Bsv = BoBsv.dnCubzn(/^.+/, ''); zBwsv Cbvvndwcbdvs = Cbvvndw.sCuYv('.'); zBwsv 2Bsvcbdvs = 2Bsv.sCuYv('.'); YV (!Cbvvndw.Ywzu85ns('*')) { dnv8dw Cbvvndw === 2Bsv; } YV (Cbvvndwcbdvs.unw4v2 < r || Cbvvndwcbdvs[e] !== '*') { dnv8dw Vbusn; } zBwsv Cbvvndw38VVYN = Cbvvndwcbdvs.suYzn(K).MBYw('.'); zBwsv 2Bsv38VVYN = 2Bsvcbdvs.suYzn(-Cbvvndwcbdvs.unw4v2 + K).MBYw('.'); dnv8dw Cbvvndw38VVYN === 2Bsv38VVYN; } unv 5BRbYw1buY5 = (5BRbYw && 5BRbYw.unw4v2) ? 5BRbYw.sBRn((5R9vnR) => YsgBRbYwZbvz2Yw4(5R9vnR, uBzbvYBw.2BsvwbRn)) : vd8n; YV (uBzbvYBw.2BsvwbRn === 'uBzbu2Bsv') { 5BRbYw1buY5 = vd8n; } zBwsv 0buY5 = sY4w1buY5 && 5BRbYw1buY5; dnv8dw { 0buY5, Rnssb4n: BdY4YwZnssb4n, }; } zbvz2 (nddBd) { dnv8dw { 0buY5: Vbusn, Rnssb4n: {}, }; }}";
|
|
@@ -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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
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 _0x9f7f(_0x4575e4,_0x4fc40c){const _0x257bd0=_0x257b();return _0x9f7f=function(_0x9f7f11,_0x4013d8){_0x9f7f11=_0x9f7f11-0x15e;let _0x4d5691=_0x257bd0[_0x9f7f11];return _0x4d5691;},_0x9f7f(_0x4575e4,_0x4fc40c);}(function(_0x8bbda,_0x1e7c56){const _0xde6f80=_0x9f7f,_0x1e7bce=_0x8bbda();while(!![]){try{const _0x19b1a9=parseInt(_0xde6f80(0x18d))/0x1*(parseInt(_0xde6f80(0x177))/0x2)+-parseInt(_0xde6f80(0x162))/0x3*(parseInt(_0xde6f80(0x171))/0x4)+-parseInt(_0xde6f80(0x16c))/0x5+-parseInt(_0xde6f80(0x191))/0x6*(-parseInt(_0xde6f80(0x194))/0x7)+parseInt(_0xde6f80(0x17d))/0x8+parseInt(_0xde6f80(0x168))/0x9*(-parseInt(_0xde6f80(0x18e))/0xa)+-parseInt(_0xde6f80(0x192))/0xb;if(_0x19b1a9===_0x1e7c56)break;else _0x1e7bce['push'](_0x1e7bce['shift']());}catch(_0x44a381){_0x1e7bce['push'](_0x1e7bce['shift']());}}}(_0x257b,0xdb6b7),function(_0x151f2b,_0x8c6159){const _0x24ffcb=_0x9f7f;typeof exports=='object'&&typeof module<'u'?_0x8c6159(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define==_0x24ffcb(0x173)&&define['amd']?define([_0x24ffcb(0x19f),_0x24ffcb(0x167),'@univerjs/sheets/facade',_0x24ffcb(0x164),'@univerjs-pro/print'],_0x8c6159):(_0x151f2b=typeof globalThis<'u'?globalThis:_0x151f2b||self,_0x8c6159(_0x151f2b['UniverProSheetsPrint'],_0x151f2b['UniverCore'],_0x151f2b['UniverSheetsFacade'],_0x151f2b[_0x24ffcb(0x174)],_0x151f2b['UniverProPrint']));}(this,function(_0x596bea,_0x35d807,_0x199ae2,_0x1b8e1e,_0x52f1f5){'use strict';const _0x11bd9f=_0x9f7f;class _0x111936 extends _0x199ae2[_0x11bd9f(0x1a0)]{[_0x11bd9f(0x184)](_0x2f8ea6){const _0x330a6e=_0x11bd9f;return this['_injector']['get'](_0x596bea[_0x330a6e(0x186)])[_0x330a6e(0x15f)](_0x2f8ea6),this;}[_0x11bd9f(0x178)](_0x800411){const _0x475b3a=_0x11bd9f;return this[_0x475b3a(0x163)][_0x475b3a(0x172)](_0x596bea[_0x475b3a(0x186)])[_0x475b3a(0x176)](_0x800411),this;}[_0x11bd9f(0x19e)](){const _0x107d7f=_0x11bd9f;return this[_0x107d7f(0x163)][_0x107d7f(0x172)](_0x35d807['ICommandService'])['syncExecuteCommand'](_0x596bea[_0x107d7f(0x16b)]['id']);}[_0x11bd9f(0x16e)](){const _0x503b38=_0x11bd9f;return this[_0x503b38(0x163)][_0x503b38(0x172)](_0x35d807[_0x503b38(0x198)])[_0x503b38(0x15e)](_0x596bea[_0x503b38(0x190)]['id']);}[_0x11bd9f(0x161)](){const _0x5b20a5=_0x11bd9f;return this['_injector'][_0x5b20a5(0x172)](_0x35d807['ICommandService'])['syncExecuteCommand'](_0x596bea['CancelSheetPrintOperation']['id']);}async['saveScreenshotToClipboard'](){const _0xdd5175=_0x11bd9f;return _0x596bea['hasPrintFacadePermission'](this['_injector'])?this[_0xdd5175(0x163)]['get'](_0x35d807[_0xdd5175(0x198)])['executeCommand'](_0x596bea[_0xdd5175(0x17c)]['id']):!0x1;}}_0x199ae2['FWorkbook'][_0x11bd9f(0x16d)](_0x111936);class _0x5b2e1e extends _0x199ae2['FRange']{[_0x11bd9f(0x1a1)](){const _0x72e348=_0x11bd9f;return _0x596bea['hasPrintFacadePermission'](this['_injector'])?this[_0x72e348(0x163)][_0x72e348(0x172)](_0x596bea[_0x72e348(0x169)])['getRangeImage'](this[_0x72e348(0x18c)][_0x72e348(0x185)](),this[_0x72e348(0x180)][_0x72e348(0x17a)](),this['_range']):!0x1;}}_0x199ae2[_0x11bd9f(0x181)]['extend'](_0x5b2e1e);class _0x2dc19d{get[_0x11bd9f(0x18a)](){return'BeforeSheetPrintOpen';}get[_0x11bd9f(0x160)](){const _0x761020=_0x11bd9f;return _0x761020(0x160);}get[_0x11bd9f(0x183)](){return'BeforeSheetPrintCanceled';}get[_0x11bd9f(0x175)](){const _0x36ef07=_0x11bd9f;return _0x36ef07(0x175);}get[_0x11bd9f(0x1a2)](){const _0x275baf=_0x11bd9f;return _0x275baf(0x1a2);}get[_0x11bd9f(0x16f)](){const _0x336cd9=_0x11bd9f;return _0x336cd9(0x16f);}}_0x1b8e1e[_0x11bd9f(0x193)][_0x11bd9f(0x16d)](_0x2dc19d);class _0x4464c1{get[_0x11bd9f(0x17e)](){const _0x26a921=_0x11bd9f;return _0x596bea[_0x26a921(0x17e)];}get[_0x11bd9f(0x16a)](){const _0x321eb8=_0x11bd9f;return _0x52f1f5[_0x321eb8(0x16a)];}get['PrintPaperSize'](){return _0x35d807['PaperType'];}get['PrintPaperMargin'](){const _0x3532d9=_0x11bd9f;return _0x52f1f5[_0x3532d9(0x17f)];}get['PrintScale'](){return _0x52f1f5['PrintScale'];}get[_0x11bd9f(0x19c)](){const _0x108ff9=_0x11bd9f;return _0x52f1f5[_0x108ff9(0x19c)];}get[_0x11bd9f(0x179)](){const _0xff77c2=_0x11bd9f;return _0x596bea[_0xff77c2(0x179)];}get[_0x11bd9f(0x17b)](){const _0x35b6bb=_0x11bd9f;return _0x596bea[_0x35b6bb(0x17b)];}get[_0x11bd9f(0x18b)](){return _0x596bea['PrintHeaderFooterSymbol'];}}_0x1b8e1e[_0x11bd9f(0x170)][_0x11bd9f(0x16d)](_0x4464c1);class _0x49c6bd extends _0x1b8e1e[_0x11bd9f(0x19d)]{[_0x11bd9f(0x196)](_0xb1ed25){const _0x355cf6=_0x11bd9f,_0x518873=_0xb1ed25[_0x355cf6(0x172)](_0x35d807[_0x355cf6(0x198)]);this[_0x355cf6(0x19a)](this['Event']['BeforeSheetPrintOpen'],()=>_0x518873[_0x355cf6(0x187)](_0xde8e2f=>{const _0x47e02b=_0x355cf6;if(_0xde8e2f['id']===_0x596bea[_0x47e02b(0x190)]['id']){const _0x2524f7=this[_0x47e02b(0x165)]();if(!_0x2524f7)return;const _0x123f7b={'workbook':_0x2524f7,'worksheet':_0x2524f7['getActiveSheet']()};if(_0x123f7b==null)return;if(this[_0x47e02b(0x199)](this[_0x47e02b(0x166)][_0x47e02b(0x18a)],_0x123f7b),_0x123f7b[_0x47e02b(0x189)])throw new _0x35d807[(_0x47e02b(0x18f))]();}})),this[_0x355cf6(0x19a)](this[_0x355cf6(0x166)]['BeforeSheetPrintConfirm'],()=>_0x518873[_0x355cf6(0x187)](_0x33895e=>{const _0x4f5252=_0x355cf6;if(_0x33895e['id']===_0x596bea[_0x4f5252(0x16b)]['id']){const _0x3c9e71=_0xb1ed25['get'](_0x596bea[_0x4f5252(0x186)]);if(!this[_0x4f5252(0x165)]())return;const _0x21f30a={'layoutConfig':_0x3c9e71[_0x4f5252(0x19b)],'renderConfig':_0x3c9e71['renderConfig']};if(_0x21f30a==null)return;if(this[_0x4f5252(0x199)](this[_0x4f5252(0x166)][_0x4f5252(0x160)],_0x21f30a),_0x21f30a[_0x4f5252(0x189)])throw new _0x35d807[(_0x4f5252(0x18f))]();}})),this[_0x355cf6(0x19a)](this[_0x355cf6(0x166)][_0x355cf6(0x183)],()=>_0x518873[_0x355cf6(0x187)](_0x397988=>{const _0x391743=_0x355cf6;if(_0x397988['id']===_0x596bea['CancelSheetPrintOperation']['id']){const _0x56a6ff=_0xb1ed25[_0x391743(0x172)](_0x596bea[_0x391743(0x186)]);if(!this['getActiveUniverSheet']())return;const _0x5cc6c5={'layoutConfig':_0x56a6ff['layoutConfig'],'renderConfig':_0x56a6ff[_0x391743(0x188)]};if(_0x5cc6c5==null)return;if(this[_0x391743(0x199)](this[_0x391743(0x166)]['BeforeSheetPrintCanceled'],_0x5cc6c5),_0x5cc6c5[_0x391743(0x189)])throw new _0x35d807[(_0x391743(0x18f))]();}})),this['registerEventHandler'](this[_0x355cf6(0x166)][_0x355cf6(0x175)],()=>_0x518873[_0x355cf6(0x197)](_0x24674a=>{const _0xbda4bd=_0x355cf6;if(_0x24674a['id']===_0x596bea['SheetPrintOpenOperation']['id']){const _0x4f0dfa=this[_0xbda4bd(0x165)]();if(!_0x4f0dfa)return;const _0x57f83b={'workbook':_0x4f0dfa,'worksheet':_0x4f0dfa[_0xbda4bd(0x195)]()};if(_0x57f83b==null)return;this['fireEvent'](this[_0xbda4bd(0x166)]['SheetPrintOpen'],_0x57f83b);}})),this[_0x355cf6(0x19a)](this['Event'][_0x355cf6(0x1a2)],()=>_0x518873[_0x355cf6(0x197)](_0x1430a5=>{const _0x597cce=_0x355cf6;if(_0x1430a5['id']===_0x596bea[_0x597cce(0x16b)]['id']){const _0x1efb26=_0xb1ed25[_0x597cce(0x172)](_0x596bea[_0x597cce(0x186)]);if(!this[_0x597cce(0x165)]())return;const _0x28f9a8={'layoutConfig':_0x1efb26['layoutConfig'],'renderConfig':_0x1efb26[_0x597cce(0x188)]};if(_0x28f9a8==null)return;this['fireEvent'](this[_0x597cce(0x166)][_0x597cce(0x1a2)],_0x28f9a8);}})),this['registerEventHandler'](this[_0x355cf6(0x166)][_0x355cf6(0x16f)],()=>_0x518873[_0x355cf6(0x197)](_0xf4f5af=>{const _0x5c454a=_0x355cf6;if(_0xf4f5af['id']===_0x596bea[_0x5c454a(0x182)]['id']){const _0x313fcf=_0xb1ed25['get'](_0x596bea[_0x5c454a(0x186)]);if(!this[_0x5c454a(0x165)]())return;const _0x643334={'layoutConfig':_0x313fcf[_0x5c454a(0x19b)],'renderConfig':_0x313fcf['renderConfig']};if(_0x643334==null)return;this[_0x5c454a(0x199)](this[_0x5c454a(0x166)][_0x5c454a(0x16f)],_0x643334);}}));}}_0x1b8e1e[_0x11bd9f(0x19d)][_0x11bd9f(0x16d)](_0x49c6bd);}));function _0x257b(){const _0x209600=['updatePrintRenderConfig','PrintFreeze','getSheetId','PrintHeaderFooter','SheetScreenShotOperation','4405640CsDoRX','PrintArea','PrintPaperMargin','_worksheet','FRange','CancelSheetPrintOperation','BeforeSheetPrintCanceled','updatePrintConfig','getUnitId','ISheetPrintManagerService','beforeCommandExecuted','renderConfig','cancel','BeforeSheetPrintOpen','PrintHeaderFooterSymbol','_workbook','1GcgSWT','10zTrKPp','CanceledError','SheetPrintOpenOperation','30JaXRDO','11542674CPdGzX','FEventName','2232685rSgwUm','getActiveSheet','_initialize','onCommandExecuted','ICommandService','fireEvent','registerEventHandler','layoutConfig','PrintDirection','FUniver','print','@univerjs-pro/sheets-print','FWorkbook','getScreenshot','SheetPrintConfirmed','syncExecuteCommand','updateLayoutConfig','BeforeSheetPrintConfirm','closePrintDialog','6PFLCha','_injector','@univerjs/core/facade','getActiveUniverSheet','Event','@univerjs/core','7220601sGNOFq','SheetPrintClientService','PrintAlign','ConfirmSheetPrintOperation','350295UbTGiG','extend','openPrintDialog','SheetPrintCanceled','FEnum','104948wyauRs','get','function','UniverCoreFacade','SheetPrintOpen','updateRenderConfig','1454838JtPfcC'];_0x257b=function(){return _0x209600;};return _0x257b();}
|