@ezeep/ezeep-js 1.0.209 → 1.0.212
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 +32 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-dialog/ezp-dialog.js +1 -2
- package/dist/collection/components/ezp-printing/ezp-printing.js +24 -2
- package/dist/collection/components/ezp-status/ezp-status.js +4 -3
- package/dist/collection/services/auth.js +20 -1
- package/dist/custom-elements/index.js +32 -7
- package/dist/directives/proxies.ts +1 -1
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_14.entry.js +32 -7
- 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-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-e36b0952.entry.js → p-2509cf15.entry.js} +2 -2
- package/dist/ezeep/{p-874fb948.system.entry.js → p-9f9ce985.system.entry.js} +3 -3
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/services/auth.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +4 -3
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-e36b0952.entry.js → p-2509cf15.entry.js} +2 -2
- package/www/build/{p-874fb948.system.entry.js → p-9f9ce985.system.entry.js} +3 -3
package/dist/cjs/ezeep.cjs.js
CHANGED
|
@@ -17,5 +17,5 @@ const patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(options => {
|
|
19
19
|
appGlobals.globalScripts();
|
|
20
|
-
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
20
|
+
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"logOutandRevokeToken":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
21
21
|
});
|
|
@@ -3146,6 +3146,25 @@ class EzpAuthorizationService {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
});
|
|
3148
3148
|
}
|
|
3149
|
+
revokeRefreshToken() {
|
|
3150
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3151
|
+
credentials: 'include',
|
|
3152
|
+
headers: {
|
|
3153
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3154
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3155
|
+
},
|
|
3156
|
+
method: 'POST',
|
|
3157
|
+
body: encodeFormData({
|
|
3158
|
+
token: authStore.state.refreshToken,
|
|
3159
|
+
}),
|
|
3160
|
+
})
|
|
3161
|
+
.then((response) => {
|
|
3162
|
+
console.log(response.json());
|
|
3163
|
+
})
|
|
3164
|
+
.catch((error) => {
|
|
3165
|
+
console.log(error);
|
|
3166
|
+
});
|
|
3167
|
+
}
|
|
3149
3168
|
}
|
|
3150
3169
|
const authStore = createStore({
|
|
3151
3170
|
code: '',
|
|
@@ -3156,7 +3175,7 @@ const authStore = createStore({
|
|
|
3156
3175
|
devApi: false,
|
|
3157
3176
|
authApiHostUrl: '',
|
|
3158
3177
|
redirectUri: '',
|
|
3159
|
-
authUri: ''
|
|
3178
|
+
authUri: '',
|
|
3160
3179
|
});
|
|
3161
3180
|
function sendCodeToParentWindow() {
|
|
3162
3181
|
// get the URL parameters which will include the auth code
|
|
@@ -3310,8 +3329,7 @@ let EzpDialog = class {
|
|
|
3310
3329
|
* Lifecycle methods
|
|
3311
3330
|
*
|
|
3312
3331
|
*/
|
|
3313
|
-
componentWillLoad() {
|
|
3314
|
-
}
|
|
3332
|
+
componentWillLoad() { }
|
|
3315
3333
|
/**
|
|
3316
3334
|
*
|
|
3317
3335
|
* Render method
|
|
@@ -33209,6 +33227,8 @@ let EzpPrinting = class {
|
|
|
33209
33227
|
}
|
|
33210
33228
|
}
|
|
33211
33229
|
async logOut() {
|
|
33230
|
+
//implement once live
|
|
33231
|
+
//this.auth.revokeRefreshToken()
|
|
33212
33232
|
localStorage.removeItem('properties');
|
|
33213
33233
|
localStorage.removeItem('refreshToken');
|
|
33214
33234
|
localStorage.removeItem('access_token');
|
|
@@ -33216,6 +33236,10 @@ let EzpPrinting = class {
|
|
|
33216
33236
|
localStorage.removeItem('isAuthorized');
|
|
33217
33237
|
this.printOpen = false;
|
|
33218
33238
|
}
|
|
33239
|
+
async logOutandRevokeToken() {
|
|
33240
|
+
this.auth.revokeRefreshToken();
|
|
33241
|
+
this.logOut();
|
|
33242
|
+
}
|
|
33219
33243
|
async getSasUri() {
|
|
33220
33244
|
this.onlyGetSasUri = true;
|
|
33221
33245
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
@@ -33229,7 +33253,6 @@ let EzpPrinting = class {
|
|
|
33229
33253
|
}
|
|
33230
33254
|
}
|
|
33231
33255
|
async getAuthUri() {
|
|
33232
|
-
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33233
33256
|
this.auth.generateCodeVerifier();
|
|
33234
33257
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33235
33258
|
this.auth.buildAuthURI();
|
|
@@ -33289,6 +33312,7 @@ let EzpPrinting = class {
|
|
|
33289
33312
|
else {
|
|
33290
33313
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33291
33314
|
}
|
|
33315
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33292
33316
|
sendCodeToParentWindow();
|
|
33293
33317
|
initi18n(this.language);
|
|
33294
33318
|
this.checkAuth();
|
|
@@ -33498,15 +33522,16 @@ let EzpStatus = class {
|
|
|
33498
33522
|
* Lifecycle methods
|
|
33499
33523
|
*
|
|
33500
33524
|
*/
|
|
33501
|
-
componentWillLoad() {
|
|
33502
|
-
}
|
|
33525
|
+
componentWillLoad() { }
|
|
33503
33526
|
/**
|
|
33504
33527
|
*
|
|
33505
33528
|
* Render method
|
|
33506
33529
|
*
|
|
33507
33530
|
*/
|
|
33508
33531
|
render() {
|
|
33509
|
-
return (index.h(index.Host, null, index.h("div", { id: "box" }, this.processing ? (index.h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), index.h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (index.h("ezp-icon", { name: this.icon, framed: true })) : null, index.h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (index.h("div", { id: "footer" }, this.cancel && (index.h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33532
|
+
return (index.h(index.Host, null, index.h("div", { id: "box" }, this.processing ? (index.h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), index.h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (index.h("ezp-icon", { name: this.icon, framed: true })) : null, index.h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (index.h("div", { id: "footer" }, this.cancel && (index.h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33533
|
+
? this.cancel
|
|
33534
|
+
: i18next.t('button_actions.cancel') })), this.close && (index.h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (index.h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
|
|
33510
33535
|
}
|
|
33511
33536
|
};
|
|
33512
33537
|
EzpStatus.style = ezpStatusCss;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -16,7 +16,7 @@ const defineCustomElements = (win, options) => {
|
|
|
16
16
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
17
17
|
return patchEsm().then(() => {
|
|
18
18
|
appGlobals.globalScripts();
|
|
19
|
-
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
19
|
+
return index.bootstrapLazy([["ezp-auth_14.cjs",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"logOutandRevokeToken":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Host, State, Listen, Method, h, Prop, Watch, Event } from '@stencil/core';
|
|
1
|
+
import { Component, Host, State, Listen, Method, h, Prop, Watch, Event, } from '@stencil/core';
|
|
2
2
|
import authStore, { EzpAuthorizationService, sendCodeToParentWindow } from '../../services/auth';
|
|
3
3
|
import printStore, { EzpPrintService } from '../../services/print';
|
|
4
4
|
import userStore from '../../services/user';
|
|
@@ -110,6 +110,8 @@ export class EzpPrinting {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
async logOut() {
|
|
113
|
+
//implement once live
|
|
114
|
+
//this.auth.revokeRefreshToken()
|
|
113
115
|
localStorage.removeItem('properties');
|
|
114
116
|
localStorage.removeItem('refreshToken');
|
|
115
117
|
localStorage.removeItem('access_token');
|
|
@@ -117,6 +119,10 @@ export class EzpPrinting {
|
|
|
117
119
|
localStorage.removeItem('isAuthorized');
|
|
118
120
|
this.printOpen = false;
|
|
119
121
|
}
|
|
122
|
+
async logOutandRevokeToken() {
|
|
123
|
+
this.auth.revokeRefreshToken();
|
|
124
|
+
this.logOut();
|
|
125
|
+
}
|
|
120
126
|
async getSasUri() {
|
|
121
127
|
this.onlyGetSasUri = true;
|
|
122
128
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
@@ -130,7 +136,6 @@ export class EzpPrinting {
|
|
|
130
136
|
}
|
|
131
137
|
}
|
|
132
138
|
async getAuthUri() {
|
|
133
|
-
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
134
139
|
this.auth.generateCodeVerifier();
|
|
135
140
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
136
141
|
this.auth.buildAuthURI();
|
|
@@ -190,6 +195,7 @@ export class EzpPrinting {
|
|
|
190
195
|
else {
|
|
191
196
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
192
197
|
}
|
|
198
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
193
199
|
sendCodeToParentWindow();
|
|
194
200
|
initi18n(this.language);
|
|
195
201
|
this.checkAuth();
|
|
@@ -621,6 +627,22 @@ export class EzpPrinting {
|
|
|
621
627
|
"tags": []
|
|
622
628
|
}
|
|
623
629
|
},
|
|
630
|
+
"logOutandRevokeToken": {
|
|
631
|
+
"complexType": {
|
|
632
|
+
"signature": "() => Promise<void>",
|
|
633
|
+
"parameters": [],
|
|
634
|
+
"references": {
|
|
635
|
+
"Promise": {
|
|
636
|
+
"location": "global"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"return": "Promise<void>"
|
|
640
|
+
},
|
|
641
|
+
"docs": {
|
|
642
|
+
"text": "",
|
|
643
|
+
"tags": []
|
|
644
|
+
}
|
|
645
|
+
},
|
|
624
646
|
"getSasUri": {
|
|
625
647
|
"complexType": {
|
|
626
648
|
"signature": "() => Promise<string>",
|
|
@@ -29,8 +29,7 @@ export class EzpStatus {
|
|
|
29
29
|
* Lifecycle methods
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
}
|
|
32
|
+
componentWillLoad() { }
|
|
34
33
|
/**
|
|
35
34
|
*
|
|
36
35
|
* Render method
|
|
@@ -44,7 +43,9 @@ export class EzpStatus {
|
|
|
44
43
|
h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null,
|
|
45
44
|
h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }),
|
|
46
45
|
(this.cancel || this.close || this.retry) && (h("div", { id: "footer" },
|
|
47
|
-
this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
46
|
+
this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
47
|
+
? this.cancel
|
|
48
|
+
: i18next.t('button_actions.cancel') })),
|
|
48
49
|
this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })),
|
|
49
50
|
this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
|
|
50
51
|
}
|
|
@@ -99,6 +99,25 @@ export class EzpAuthorizationService {
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
revokeRefreshToken() {
|
|
103
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
104
|
+
credentials: 'include',
|
|
105
|
+
headers: {
|
|
106
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
107
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
108
|
+
},
|
|
109
|
+
method: 'POST',
|
|
110
|
+
body: encodeFormData({
|
|
111
|
+
token: authStore.state.refreshToken,
|
|
112
|
+
}),
|
|
113
|
+
})
|
|
114
|
+
.then((response) => {
|
|
115
|
+
console.log(response.json());
|
|
116
|
+
})
|
|
117
|
+
.catch((error) => {
|
|
118
|
+
console.log(error);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
102
121
|
}
|
|
103
122
|
const authStore = createStore({
|
|
104
123
|
code: '',
|
|
@@ -109,7 +128,7 @@ const authStore = createStore({
|
|
|
109
128
|
devApi: false,
|
|
110
129
|
authApiHostUrl: '',
|
|
111
130
|
redirectUri: '',
|
|
112
|
-
authUri: ''
|
|
131
|
+
authUri: '',
|
|
113
132
|
});
|
|
114
133
|
export default authStore;
|
|
115
134
|
export function sendCodeToParentWindow() {
|
|
@@ -3155,6 +3155,25 @@ class EzpAuthorizationService {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
});
|
|
3157
3157
|
}
|
|
3158
|
+
revokeRefreshToken() {
|
|
3159
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3160
|
+
credentials: 'include',
|
|
3161
|
+
headers: {
|
|
3162
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3163
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3164
|
+
},
|
|
3165
|
+
method: 'POST',
|
|
3166
|
+
body: encodeFormData({
|
|
3167
|
+
token: authStore.state.refreshToken,
|
|
3168
|
+
}),
|
|
3169
|
+
})
|
|
3170
|
+
.then((response) => {
|
|
3171
|
+
console.log(response.json());
|
|
3172
|
+
})
|
|
3173
|
+
.catch((error) => {
|
|
3174
|
+
console.log(error);
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3158
3177
|
}
|
|
3159
3178
|
const authStore = createStore({
|
|
3160
3179
|
code: '',
|
|
@@ -3165,7 +3184,7 @@ const authStore = createStore({
|
|
|
3165
3184
|
devApi: false,
|
|
3166
3185
|
authApiHostUrl: '',
|
|
3167
3186
|
redirectUri: '',
|
|
3168
|
-
authUri: ''
|
|
3187
|
+
authUri: '',
|
|
3169
3188
|
});
|
|
3170
3189
|
function sendCodeToParentWindow() {
|
|
3171
3190
|
// get the URL parameters which will include the auth code
|
|
@@ -3325,8 +3344,7 @@ let EzpDialog$1 = class extends HTMLElement {
|
|
|
3325
3344
|
* Lifecycle methods
|
|
3326
3345
|
*
|
|
3327
3346
|
*/
|
|
3328
|
-
componentWillLoad() {
|
|
3329
|
-
}
|
|
3347
|
+
componentWillLoad() { }
|
|
3330
3348
|
/**
|
|
3331
3349
|
*
|
|
3332
3350
|
* Render method
|
|
@@ -33234,6 +33252,8 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33234
33252
|
}
|
|
33235
33253
|
}
|
|
33236
33254
|
async logOut() {
|
|
33255
|
+
//implement once live
|
|
33256
|
+
//this.auth.revokeRefreshToken()
|
|
33237
33257
|
localStorage.removeItem('properties');
|
|
33238
33258
|
localStorage.removeItem('refreshToken');
|
|
33239
33259
|
localStorage.removeItem('access_token');
|
|
@@ -33241,6 +33261,10 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33241
33261
|
localStorage.removeItem('isAuthorized');
|
|
33242
33262
|
this.printOpen = false;
|
|
33243
33263
|
}
|
|
33264
|
+
async logOutandRevokeToken() {
|
|
33265
|
+
this.auth.revokeRefreshToken();
|
|
33266
|
+
this.logOut();
|
|
33267
|
+
}
|
|
33244
33268
|
async getSasUri() {
|
|
33245
33269
|
this.onlyGetSasUri = true;
|
|
33246
33270
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
@@ -33254,7 +33278,6 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33254
33278
|
}
|
|
33255
33279
|
}
|
|
33256
33280
|
async getAuthUri() {
|
|
33257
|
-
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33258
33281
|
this.auth.generateCodeVerifier();
|
|
33259
33282
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33260
33283
|
this.auth.buildAuthURI();
|
|
@@ -33314,6 +33337,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33314
33337
|
else {
|
|
33315
33338
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33316
33339
|
}
|
|
33340
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33317
33341
|
sendCodeToParentWindow();
|
|
33318
33342
|
initi18n(this.language);
|
|
33319
33343
|
this.checkAuth();
|
|
@@ -33527,15 +33551,16 @@ let EzpStatus$1 = class extends HTMLElement {
|
|
|
33527
33551
|
* Lifecycle methods
|
|
33528
33552
|
*
|
|
33529
33553
|
*/
|
|
33530
|
-
componentWillLoad() {
|
|
33531
|
-
}
|
|
33554
|
+
componentWillLoad() { }
|
|
33532
33555
|
/**
|
|
33533
33556
|
*
|
|
33534
33557
|
* Render method
|
|
33535
33558
|
*
|
|
33536
33559
|
*/
|
|
33537
33560
|
render() {
|
|
33538
|
-
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33561
|
+
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33562
|
+
? this.cancel
|
|
33563
|
+
: i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
|
|
33539
33564
|
}
|
|
33540
33565
|
static get style() { return ezpStatusCss; }
|
|
33541
33566
|
};
|
|
@@ -167,7 +167,7 @@ export class EzpPrinterSelection {
|
|
|
167
167
|
export declare interface EzpPrinting extends Components.EzpPrinting {}
|
|
168
168
|
@ProxyCmp({
|
|
169
169
|
inputs: ['appearance', 'authapihosturl', 'clientid', 'code', 'custom', 'filedata', 'fileid', 'filename', 'filetype', 'fileurl', 'hideheader', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'seamless', 'theme', 'trigger'],
|
|
170
|
-
methods: ['open', 'logOut', 'getSasUri', 'getAuthUri', 'checkAuth']
|
|
170
|
+
methods: ['open', 'logOut', 'logOutandRevokeToken', 'getSasUri', 'getAuthUri', 'checkAuth']
|
|
171
171
|
})
|
|
172
172
|
@Component({
|
|
173
173
|
selector: 'ezp-printing',
|
package/dist/esm/ezeep.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
17
|
globalScripts();
|
|
18
|
-
return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
18
|
+
return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"logOutandRevokeToken":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
19
19
|
});
|
|
@@ -3142,6 +3142,25 @@ class EzpAuthorizationService {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
});
|
|
3144
3144
|
}
|
|
3145
|
+
revokeRefreshToken() {
|
|
3146
|
+
fetch(`https://${this.oauthUrl}/oauth/revoke/`, {
|
|
3147
|
+
credentials: 'include',
|
|
3148
|
+
headers: {
|
|
3149
|
+
Authorization: 'Basic ' + btoa(this.clientID + ':'),
|
|
3150
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3151
|
+
},
|
|
3152
|
+
method: 'POST',
|
|
3153
|
+
body: encodeFormData({
|
|
3154
|
+
token: authStore.state.refreshToken,
|
|
3155
|
+
}),
|
|
3156
|
+
})
|
|
3157
|
+
.then((response) => {
|
|
3158
|
+
console.log(response.json());
|
|
3159
|
+
})
|
|
3160
|
+
.catch((error) => {
|
|
3161
|
+
console.log(error);
|
|
3162
|
+
});
|
|
3163
|
+
}
|
|
3145
3164
|
}
|
|
3146
3165
|
const authStore = createStore({
|
|
3147
3166
|
code: '',
|
|
@@ -3152,7 +3171,7 @@ const authStore = createStore({
|
|
|
3152
3171
|
devApi: false,
|
|
3153
3172
|
authApiHostUrl: '',
|
|
3154
3173
|
redirectUri: '',
|
|
3155
|
-
authUri: ''
|
|
3174
|
+
authUri: '',
|
|
3156
3175
|
});
|
|
3157
3176
|
function sendCodeToParentWindow() {
|
|
3158
3177
|
// get the URL parameters which will include the auth code
|
|
@@ -3306,8 +3325,7 @@ let EzpDialog = class {
|
|
|
3306
3325
|
* Lifecycle methods
|
|
3307
3326
|
*
|
|
3308
3327
|
*/
|
|
3309
|
-
componentWillLoad() {
|
|
3310
|
-
}
|
|
3328
|
+
componentWillLoad() { }
|
|
3311
3329
|
/**
|
|
3312
3330
|
*
|
|
3313
3331
|
* Render method
|
|
@@ -33205,6 +33223,8 @@ let EzpPrinting = class {
|
|
|
33205
33223
|
}
|
|
33206
33224
|
}
|
|
33207
33225
|
async logOut() {
|
|
33226
|
+
//implement once live
|
|
33227
|
+
//this.auth.revokeRefreshToken()
|
|
33208
33228
|
localStorage.removeItem('properties');
|
|
33209
33229
|
localStorage.removeItem('refreshToken');
|
|
33210
33230
|
localStorage.removeItem('access_token');
|
|
@@ -33212,6 +33232,10 @@ let EzpPrinting = class {
|
|
|
33212
33232
|
localStorage.removeItem('isAuthorized');
|
|
33213
33233
|
this.printOpen = false;
|
|
33214
33234
|
}
|
|
33235
|
+
async logOutandRevokeToken() {
|
|
33236
|
+
this.auth.revokeRefreshToken();
|
|
33237
|
+
this.logOut();
|
|
33238
|
+
}
|
|
33215
33239
|
async getSasUri() {
|
|
33216
33240
|
this.onlyGetSasUri = true;
|
|
33217
33241
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
@@ -33225,7 +33249,6 @@ let EzpPrinting = class {
|
|
|
33225
33249
|
}
|
|
33226
33250
|
}
|
|
33227
33251
|
async getAuthUri() {
|
|
33228
|
-
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33229
33252
|
this.auth.generateCodeVerifier();
|
|
33230
33253
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33231
33254
|
this.auth.buildAuthURI();
|
|
@@ -33285,6 +33308,7 @@ let EzpPrinting = class {
|
|
|
33285
33308
|
else {
|
|
33286
33309
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33287
33310
|
}
|
|
33311
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33288
33312
|
sendCodeToParentWindow();
|
|
33289
33313
|
initi18n(this.language);
|
|
33290
33314
|
this.checkAuth();
|
|
@@ -33494,15 +33518,16 @@ let EzpStatus = class {
|
|
|
33494
33518
|
* Lifecycle methods
|
|
33495
33519
|
*
|
|
33496
33520
|
*/
|
|
33497
|
-
componentWillLoad() {
|
|
33498
|
-
}
|
|
33521
|
+
componentWillLoad() { }
|
|
33499
33522
|
/**
|
|
33500
33523
|
*
|
|
33501
33524
|
* Render method
|
|
33502
33525
|
*
|
|
33503
33526
|
*/
|
|
33504
33527
|
render() {
|
|
33505
|
-
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33528
|
+
return (h(Host, null, h("div", { id: "box" }, this.processing ? (h("svg", { id: "indicator", viewBox: "0 0 42 42", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { id: "track", cx: "21", cy: "21", r: "18" }), h("circle", { id: "value", cx: "21", cy: "21", r: "18" }))) : this.icon ? (h("ezp-icon", { name: this.icon, framed: true })) : null, h("ezp-label", { id: "description", level: "tertiary", weight: "strong", text: this.description }), (this.cancel || this.close || this.retry) && (h("div", { id: "footer" }, this.cancel && (h("ezp-text-button", { level: "secondary", small: true, onClick: this.handleCancel, label: typeof this.cancel === 'string'
|
|
33529
|
+
? this.cancel
|
|
33530
|
+
: i18next.t('button_actions.cancel') })), this.close && (h("ezp-text-button", { level: this.retry ? 'secondary' : 'primary', small: true, onClick: this.handleClose, label: typeof this.close === 'string' ? this.close : i18next.t('button_actions.close') })), this.retry && (h("ezp-text-button", { level: "primary", small: true, onClick: this.handleRetry, label: typeof this.retry === 'string' ? this.retry : i18next.t('button_actions.retry') })))))));
|
|
33506
33531
|
}
|
|
33507
33532
|
};
|
|
33508
33533
|
EzpStatus.style = ezpStatusCss;
|
package/dist/esm/loader.js
CHANGED
|
@@ -12,7 +12,7 @@ const defineCustomElements = (win, options) => {
|
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
14
|
globalScripts();
|
|
15
|
-
return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
15
|
+
return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[32],"open":[64],"logOut":[64],"logOutandRevokeToken":[64],"getSasUri":[64],"getAuthUri":[64],"checkAuth":[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],"hideheader":[4],"seamless":[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],"trigger":[1],"code":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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]}]]]], options);
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
|
package/dist/esm-es5/ezeep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-13f75d28.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[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],hideheader:[4],seamless:[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],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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)}));
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-13f75d28.js";import{g as globalScripts}from"./app-globals-28960cbc.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["ezp-auth_14",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],logOutandRevokeToken:[64],getSasUri:[64],getAuthUri:[64],checkAuth:[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],hideheader:[4],seamless:[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],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[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)}));
|