@ezeep/ezeep-js 1.0.160 → 1.0.164
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/dist/cjs/ezeep.cjs.js +1 -1
- package/dist/cjs/ezp-auth_14.cjs.entry.js +60 -138
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-auth/ezp-auth.js +3 -3
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +34 -55
- package/dist/collection/components/ezp-printing/ezp-printing.js +33 -1
- package/dist/collection/components/ezp-select/ezp-select.js +2 -0
- package/dist/collection/services/auth.js +5 -3
- package/dist/collection/services/print.js +0 -1
- package/dist/custom-elements/index.js +61 -139
- package/dist/directives/proxies.ts +1 -1
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_14.entry.js +60 -138
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-9ff19f99.entry.js → p-2bac1003.entry.js} +2 -2
- package/dist/ezeep/p-80d5c308.system.js +1 -1
- package/dist/ezeep/{p-e762ca0f.system.entry.js → p-a78a89f7.system.entry.js} +3 -3
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +2 -16
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +3 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/services/print.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +6 -6
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-9ff19f99.entry.js → p-2bac1003.entry.js} +2 -2
- package/www/build/p-80d5c308.system.js +1 -1
- package/www/build/{p-e762ca0f.system.entry.js → p-a78a89f7.system.entry.js} +3 -3
- package/www/index.html +5 -6
|
@@ -24,21 +24,6 @@ export declare class EzpPrinterSelection {
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
loading: boolean;
|
|
27
|
-
options: {
|
|
28
|
-
colors: {
|
|
29
|
-
id: number;
|
|
30
|
-
name: string;
|
|
31
|
-
}[];
|
|
32
|
-
orientations: {
|
|
33
|
-
id: number;
|
|
34
|
-
name: string;
|
|
35
|
-
}[];
|
|
36
|
-
sizes: {
|
|
37
|
-
id: number;
|
|
38
|
-
name: string;
|
|
39
|
-
description: string;
|
|
40
|
-
}[];
|
|
41
|
-
};
|
|
42
27
|
printProcessing: boolean;
|
|
43
28
|
uploading: boolean;
|
|
44
29
|
preparingUpload: boolean;
|
|
@@ -84,13 +69,14 @@ export declare class EzpPrinterSelection {
|
|
|
84
69
|
private handleCancel;
|
|
85
70
|
private validateData;
|
|
86
71
|
private POLL_INTERVAL;
|
|
72
|
+
private MAX_POLL_ATTEMPTS;
|
|
87
73
|
/** Description... */
|
|
88
74
|
private handlePrint;
|
|
89
75
|
private handleUserMenu;
|
|
90
76
|
private getPropertiesFromLocalStorage;
|
|
91
77
|
private getUserInfo;
|
|
92
78
|
private setSelectedProperties;
|
|
93
|
-
handleFiles(file: File): Promise<void>;
|
|
79
|
+
handleFiles(file: File, printPorperties: any): Promise<void>;
|
|
94
80
|
private validateFileType;
|
|
95
81
|
setDefaultPaperFormat(): void;
|
|
96
82
|
/**
|
|
@@ -48,8 +48,11 @@ export declare class EzpPrinting {
|
|
|
48
48
|
*/
|
|
49
49
|
open(): Promise<void>;
|
|
50
50
|
logOut(): Promise<void>;
|
|
51
|
+
getSasUri(): Promise<string>;
|
|
51
52
|
checkAuth(): void;
|
|
53
|
+
refreshTokensPeriodically(seconds: number): void;
|
|
52
54
|
componentWillLoad(): void;
|
|
55
|
+
componentDidLoad(): void;
|
|
53
56
|
/**
|
|
54
57
|
*
|
|
55
58
|
* Render method
|
|
@@ -7,7 +7,7 @@ export declare class EzpPrintService {
|
|
|
7
7
|
printerConfig: PrinterConfig;
|
|
8
8
|
printingApi: string;
|
|
9
9
|
private checkStoredRefreshToken;
|
|
10
|
-
|
|
10
|
+
registerFetchInterceptor(): void;
|
|
11
11
|
getPrinterList(accessToken: string): Promise<any>;
|
|
12
12
|
getConfig(accessToken: string): Promise<Response>;
|
|
13
13
|
getPrinterProperties(accessToken: string, printerID: string): Promise<any>;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -78,8 +78,8 @@ To get started, you can use the default ezeep print button within your web app:
|
|
|
78
78
|
<head>
|
|
79
79
|
<meta charset="utf-8" />
|
|
80
80
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
81
|
-
<script type="module" src="https://cdn.ezeep.com/
|
|
82
|
-
<script nomodule src="https://cdn.ezeep.com/
|
|
81
|
+
<script type="module" src="https://cdn.ezeep.com/ezeep-js/ezeep.esm.js"></script>
|
|
82
|
+
<script nomodule src="https://cdn.ezeep.com/ezeep-js/ezeep.js"></script>
|
|
83
83
|
<title>ezeep-js</title>
|
|
84
84
|
</head>
|
|
85
85
|
<body>
|
|
@@ -106,8 +106,8 @@ If you want to bind the printing process to a custom html element, you can use t
|
|
|
106
106
|
<head>
|
|
107
107
|
<meta charset="utf-8" />
|
|
108
108
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
109
|
-
<script type="module" src="https://cdn.ezeep.com/
|
|
110
|
-
<script nomodule src="https://cdn.ezeep.com/
|
|
109
|
+
<script type="module" src="https://cdn.ezeep.com/ezeep-js/ezeep.esm.js"></script>
|
|
110
|
+
<script nomodule src="https://cdn.ezeep.com/ezeep-js/ezeep.js"></script>
|
|
111
111
|
<title>ezeep-js</title>
|
|
112
112
|
<style>
|
|
113
113
|
.customButton {
|
|
@@ -154,8 +154,8 @@ If you want to bind the printing process to a custom html element, you can use t
|
|
|
154
154
|
<head>
|
|
155
155
|
<meta charset="utf-8" />
|
|
156
156
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
157
|
-
<script type="module" src="https://cdn.ezeep.com/
|
|
158
|
-
<script nomodule src="https://cdn.ezeep.com/
|
|
157
|
+
<script type="module" src="https://cdn.ezeep.com/ezeep-js/ezeep.esm.js"></script>
|
|
158
|
+
<script nomodule src="https://cdn.ezeep.com/ezeep-js/ezeep.js"></script>
|
|
159
159
|
<title>ezeep-js</title>
|
|
160
160
|
<style>
|
|
161
161
|
/*
|
package/www/build/ezeep.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-d9b69b53.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-
|
|
1
|
+
import{p as e,b as i}from"./p-d9b69b53.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-2bac1003",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],printOpen:[32],authOpen:[32],noDocumentOpen:[32],systemAppearance:[32],open:[64],logOut:[64],getSasUri:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],file:[16],hidemenu:[4],loading:[32],printProcessing:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32]},[[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1],small:[4]}],[1,"ezp-icon",{name:[1],size:[1],framed:[4]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e))));
|