@univerjs-pro/sheets-print 0.2.15 → 0.3.0-alpha.1

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.
@@ -1,4 +1,69 @@
1
1
  export declare const SHEET_PRINT_COMPONENT = "PRINT_PLUGIN_PRINT_COMPONENT";
2
2
  export declare const isLite: boolean;
3
+ export declare const BUILD_TIMESTAMP: number;
3
4
  export declare const UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID = "UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID";
4
5
  export declare const UNIVER_SHEET_PERMISSION_ALERT_DIALOG = "UNIVER_SHEET_PERMISSION_ALERT_DIALOG";
6
+ export declare const PrintReverseMap: {
7
+ 0: string;
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ 4: string;
12
+ 5: string;
13
+ 6: string;
14
+ 7: string;
15
+ 8: string;
16
+ 9: string;
17
+ d: string;
18
+ r: string;
19
+ x: string;
20
+ j: string;
21
+ E: string;
22
+ H: string;
23
+ o: string;
24
+ F: string;
25
+ Z: string;
26
+ y: string;
27
+ P: string;
28
+ S: string;
29
+ D: string;
30
+ Y: string;
31
+ u: string;
32
+ a: string;
33
+ R: string;
34
+ g: string;
35
+ l: string;
36
+ I: string;
37
+ X: string;
38
+ A: string;
39
+ J: string;
40
+ n: string;
41
+ T: string;
42
+ v: string;
43
+ O: string;
44
+ k: string;
45
+ G: string;
46
+ i: string;
47
+ Q: string;
48
+ w: string;
49
+ h: string;
50
+ q: string;
51
+ M: string;
52
+ m: string;
53
+ C: string;
54
+ e: string;
55
+ W: string;
56
+ b: string;
57
+ L: string;
58
+ t: string;
59
+ s: string;
60
+ p: string;
61
+ B: string;
62
+ U: string;
63
+ V: string;
64
+ f: string;
65
+ c: string;
66
+ z: string;
67
+ N: string;
68
+ K: string;
69
+ };
@@ -1,7 +1,7 @@
1
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
2
  import { ComponentManager, IGlobalZoneService, IMenuManagerService } from '@univerjs/ui';
3
- import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
4
3
  import { SheetPrintClientService } from '../services/sheet-print.service';
4
+ import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
5
5
  export declare class SheetPrintController extends Disposable {
6
6
  private readonly _printService;
7
7
  private readonly _commandService;
@@ -1,4 +1,4 @@
1
+ export { QUOTAS_URL_KEY } from './services/sheet-print-license.service';
2
+ export { UniverSheetsPrintPlugin } from './plugin';
1
3
  export { CancelSheetPrintOperation, ConfirmSheetPrintOperation, SheetPrintOpenOperation, SheetPrintOperation, } from './commands/operations/sheet-print.operation';
2
4
  export { SheetScreenShotOperation } from './commands/operations/sheet-screenshot.operation';
3
- export { UniverSheetsPrintPlugin } from './plugin';
4
- export { QUOTAS_URL_KEY } from './services/sheet-print-license.service';
@@ -1,6 +1,6 @@
1
+ import { IUniverSheetsPrintConfig } from './controllers/config.schema';
1
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
3
  import { IShortcutService } from '@univerjs/ui';
3
- import { IUniverSheetsPrintConfig } from './controllers/config.schema';
4
4
  export declare class UniverSheetsPrintPlugin extends Plugin {
5
5
  private readonly _config;
6
6
  readonly _injector: Injector;
@@ -11,4 +11,5 @@ export declare class UniverSheetsPrintPlugin extends Plugin {
11
11
  static type: UniverInstanceType;
12
12
  constructor(_config: Partial<IUniverSheetsPrintConfig> | undefined, _injector: Injector, _commandService: ICommandService, _shortcutService: IShortcutService, _configService: IConfigService);
13
13
  onReady(): void;
14
+ private _initTimeValid;
14
15
  }
@@ -1,6 +1,5 @@
1
- import { HTTPService } from '@univerjs/network';
2
1
  import { IConfigService } from '@univerjs/core';
3
- export declare const DEFAULT_PRINT_LIMIT = 3;
2
+ import { HTTPService } from '@univerjs/network';
4
3
  export declare const QUOTAS_URL_KEY = "QUOTAS_URL_KEY";
5
4
  export declare class SheetPrintLicenseService {
6
5
  private _httpService;
@@ -5,6 +5,7 @@ import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
5
5
  import { IPrintMargin } from '@univerjs-pro/print';
6
6
  import { Observable } from 'rxjs';
7
7
  import { ISheetPrintLayoutConfig, ISheetPrintRenderConfig } from '../common/types';
8
+ export declare const DEFAULT_PRINT_LIMIT = 3;
8
9
  export interface IPrintSheetInfo {
9
10
  unitId: string;
10
11
  subUnitId: string;
@@ -1,16 +1,14 @@
1
- import { Injector, IRange } from '@univerjs/core';
2
- import { IGlobalZoneService } from '@univerjs/ui';
3
- import { IRenderManagerService } from '@univerjs/engine-render';
1
+ import { IRange, Injector } from '@univerjs/core';
4
2
  import { ISheetPrintRenderConfig } from '../common/types';
5
3
  import { ISheetPrintLayoutInfo, ISheetPrintManagerService } from './sheet-print-manager.service';
6
- import { SheetPrintLicenseService } from './sheet-print-license.service';
4
+ import { IRenderManagerService } from '@univerjs/engine-render';
5
+ import { IGlobalZoneService } from '@univerjs/ui';
7
6
  export declare class SheetPrintClientService {
8
- private readonly _sheetPrintLicenseService;
9
7
  private readonly _injector;
10
8
  private readonly _globalZoneService;
11
9
  private readonly _sheetPrintManagerService;
12
10
  private readonly _renderManagerService;
13
- constructor(_sheetPrintLicenseService: SheetPrintLicenseService, _injector: Injector, _globalZoneService: IGlobalZoneService, _sheetPrintManagerService: ISheetPrintManagerService, _renderManagerService: IRenderManagerService);
11
+ constructor(_injector: Injector, _globalZoneService: IGlobalZoneService, _sheetPrintManagerService: ISheetPrintManagerService, _renderManagerService: IRenderManagerService);
14
12
  print(configs: ISheetPrintLayoutInfo[], renderConfig: ISheetPrintRenderConfig): Promise<boolean>;
15
13
  getRangeImage(unitId: string, subUnitId: string, range: IRange): string | false;
16
14
  }
@@ -0,0 +1,7 @@
1
+ export declare const getLsInfoFuncStr = "Dv5yTaI5 PSyJGXTaI5(layS5nS, XvZlayWSG) { yI5nT layS5nSC5DI17JTQJJ7G = layS5nS.nXlaT('-'); yI5nT IJaYa5bSnn7YS = eBtL.X7JnS(7TIZ(layS5nSC5DI17JTQJJ7G[x])); aD (!IJaYa5bSnn7YS.vP) { IJaYa5bSnn7YS.vP = Lv8ZSJ(layS5nSC5DI17JTQJJ7G[j]); } yI5nT ancIJgSJ = TGXSID cIJgSJ9lIZ7lByIXS !== 'v5PSDa5SP' && nSlD a5nT75ySID cIJgSJ9lIZ7lByIXS; yI5nT yI5TS0T = ancIJgSJ ? nSlD : ka5PIk; yI5nT 8Snn7YScIJP = yI5TS0T.__w7nSHj__.X7JnS(layS5nSC5DI17JTQJJ7G[x]); yI5nT 8Snn7YS = yI5TS0T.__4S0__.nTJa5YaDG(8Snn7YScIJP); yI5nT naY57TvJScIJP = yI5TS0T.__w7nSHj__.X7JnS(layS5nSC5DI17JTQJJ7G[6]); yI5nT naY57TvJS = yI5TS0T.__4S0__.nTJa5YaDG(naY57TvJScIJP); yI5nT naY5f7laP = yI5TS0T.__OSJaDG__(naY57TvJS, 8Snn7YS, XvZlayWSG); yI5nT PI87a5 = IJaYa5bSnn7YS.P8; Dv5yTaI5 anqI87a5b7Tyua5Y(I17TTSJ5, I4InT) { yI5nT X7TTSJ5 = I17TTSJ5.JSXl7yS(/^.+/, ''); yI5nT uInT = I4InT.JSXl7yS(/^.+/, ''); yI5nT X7TTSJ517JTn = X7TTSJ5.nXlaT('.'); yI5nT uInT17JTn = uInT.nXlaT('.'); aD (!X7TTSJ5.a5ylvPSn('*')) { JSTvJ5 X7TTSJ5 === uInT; } aD (X7TTSJ517JTn.lS5YTu < x || X7TTSJ517JTn[d] !== '*') { JSTvJ5 D7lnS; } yI5nT X7TTSJ5BvDDa0 = X7TTSJ517JTn.nlayS(r).RIa5('.'); yI5nT uInTBvDDa0 = uInT17JTn.nlayS(-X7TTSJ517JTn.lS5YTu + r).RIa5('.'); JSTvJ5 X7TTSJ5BvDDa0 === uInTBvDDa0; } yI5nT PI87a5f7laP = PI87a5?.lS5YTu ? PI87a5.nI8S((P8CTS8) => anqI87a5b7Tyua5Y(P8CTS8, lIy7TaI5.uInT578S)) : TJvS; yI5nT O7laP = naY5f7laP && PI87a5f7laP; JSTvJ5 { O7laP, 8Snn7YS: IJaYa5bSnn7YS, }; }";
2
+ export declare const canUsePrint: (ls?: string, pbk?: string) => boolean;
3
+ export declare const getPrintInfoByLicense: (defaultPrintLimit: number, ls?: string, pbk?: string) => {
4
+ page: number;
5
+ isPro: boolean;
6
+ timeValid: boolean;
7
+ };
@@ -23,7 +23,6 @@ export declare class SheetPrintCanvasView extends Disposable {
23
23
  private _previewScale;
24
24
  private _engine;
25
25
  private _scene;
26
- private _licenseService;
27
26
  private _key;
28
27
  private _unitId;
29
28
  private _subUnitId;