@ezeep/ezeep-js 1.0.171 → 1.0.177
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 +34 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-auth/ezp-auth.js +28 -1
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +18 -10
- package/dist/collection/components/ezp-printing/ezp-printing.js +56 -1
- package/dist/collection/services/auth.js +2 -0
- package/dist/custom-elements/index.js +36 -13
- package/dist/directives/proxies.ts +5 -5
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_14.entry.js +34 -11
- 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-e1769616.entry.js → p-70885e51.entry.js} +2 -2
- package/dist/ezeep/{p-370b0d9a.system.entry.js → p-eb9fd10d.system.entry.js} +2 -2
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +1 -0
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +3 -1
- package/dist/types/components.d.ts +7 -0
- package/dist/types/services/auth.d.ts +1 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-e1769616.entry.js → p-70885e51.entry.js} +2 -2
- package/www/build/{p-370b0d9a.system.entry.js → p-eb9fd10d.system.entry.js} +2 -2
- package/www/index.html +4 -4
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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[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],"trigger":[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",{"file":[1040],"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],"code":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[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],"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
|
});
|
|
@@ -3080,6 +3080,7 @@ class EzpAuthorizationService {
|
|
|
3080
3080
|
this.urlParams.append('code_challenge', this.codeChallenge);
|
|
3081
3081
|
this.urlParams.append('code_challenge_method', 'S256');
|
|
3082
3082
|
this.authURI.search = this.urlParams.toString();
|
|
3083
|
+
authStore.state.authUri = this.authURI.toString();
|
|
3083
3084
|
}
|
|
3084
3085
|
getAccessToken() {
|
|
3085
3086
|
return fetch(this.accessTokenURL, {
|
|
@@ -3151,6 +3152,7 @@ const authStore = createStore({
|
|
|
3151
3152
|
devApi: false,
|
|
3152
3153
|
authApiHostUrl: '',
|
|
3153
3154
|
redirectUri: '',
|
|
3155
|
+
authUri: ''
|
|
3154
3156
|
});
|
|
3155
3157
|
function sendCodeToParentWindow() {
|
|
3156
3158
|
// get the URL parameters which will include the auth code
|
|
@@ -3236,6 +3238,16 @@ let EzpAuth = class {
|
|
|
3236
3238
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
3237
3239
|
this.auth.buildAuthURI();
|
|
3238
3240
|
}
|
|
3241
|
+
if (this.code) {
|
|
3242
|
+
this.auth.code = this.code;
|
|
3243
|
+
this.auth.getAccessToken().then(() => {
|
|
3244
|
+
this.authCancel.emit();
|
|
3245
|
+
this.authSuccess.emit();
|
|
3246
|
+
}).catch(() => {
|
|
3247
|
+
this.authCancel.emit();
|
|
3248
|
+
});
|
|
3249
|
+
return;
|
|
3250
|
+
}
|
|
3239
3251
|
if (this.hidelogin && this.trigger === 'button') {
|
|
3240
3252
|
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
3241
3253
|
}
|
|
@@ -32827,7 +32839,15 @@ let EzpPrinterSelection = class {
|
|
|
32827
32839
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32828
32840
|
}
|
|
32829
32841
|
if (localStorage.getItem('printer')) {
|
|
32830
|
-
|
|
32842
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32843
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
32844
|
+
this.selectedPrinter = savedPrinter;
|
|
32845
|
+
}
|
|
32846
|
+
else {
|
|
32847
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32848
|
+
localStorage.removeItem('printer');
|
|
32849
|
+
localStorage.removeItem('properties');
|
|
32850
|
+
}
|
|
32831
32851
|
}
|
|
32832
32852
|
else {
|
|
32833
32853
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32963,10 +32983,18 @@ let EzpPrinterSelection = class {
|
|
|
32963
32983
|
*/
|
|
32964
32984
|
/** Description... */
|
|
32965
32985
|
async connectedCallback() {
|
|
32966
|
-
this.getPropertiesFromLocalStorage();
|
|
32967
32986
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32968
32987
|
this.printService.registerFetchInterceptor();
|
|
32969
32988
|
await this.getUserInfo();
|
|
32989
|
+
await this.printService
|
|
32990
|
+
.getPrinterList(authStore.state.accessToken)
|
|
32991
|
+
.then((printers) => {
|
|
32992
|
+
this.printers = printers;
|
|
32993
|
+
if (!(this.printers.length > 0)) {
|
|
32994
|
+
this.noPrinters = true;
|
|
32995
|
+
}
|
|
32996
|
+
});
|
|
32997
|
+
this.getPropertiesFromLocalStorage();
|
|
32970
32998
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32971
32999
|
if (this.selectedPrinter.id != '') {
|
|
32972
33000
|
await this.printService
|
|
@@ -32981,14 +33009,6 @@ let EzpPrinterSelection = class {
|
|
|
32981
33009
|
.then((response) => {
|
|
32982
33010
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
32983
33011
|
});
|
|
32984
|
-
await this.printService
|
|
32985
|
-
.getPrinterList(authStore.state.accessToken)
|
|
32986
|
-
.then((printers) => {
|
|
32987
|
-
this.printers = printers;
|
|
32988
|
-
if (!(this.printers.length > 0)) {
|
|
32989
|
-
this.noPrinters = true;
|
|
32990
|
-
}
|
|
32991
|
-
});
|
|
32992
33012
|
await this.printService
|
|
32993
33013
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
32994
33014
|
.then((printerConfig) => {
|
|
@@ -33186,6 +33206,9 @@ let EzpPrinting = class {
|
|
|
33186
33206
|
return sasUri;
|
|
33187
33207
|
}
|
|
33188
33208
|
}
|
|
33209
|
+
async getAuthUri() {
|
|
33210
|
+
return authStore.state.authUri;
|
|
33211
|
+
}
|
|
33189
33212
|
checkAuth() {
|
|
33190
33213
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33191
33214
|
let accessToken = authStore.state.accessToken;
|
|
@@ -33253,7 +33276,7 @@ let EzpPrinting = class {
|
|
|
33253
33276
|
render() {
|
|
33254
33277
|
return (index.h(index.Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
33255
33278
|
? this.systemAppearance
|
|
33256
|
-
: userStore.state.appearance}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33279
|
+
: userStore.state.appearance}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (index.h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33257
33280
|
}
|
|
33258
33281
|
};
|
|
33259
33282
|
EzpPrinting.style = ezpPrintingCss;
|
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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[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],"trigger":[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",{"file":[1040],"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],"code":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[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],"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, h, Prop, State, Event, Listen
|
|
1
|
+
import { Component, Host, h, Prop, State, Event, Listen } from '@stencil/core';
|
|
2
2
|
import { EzpAuthorizationService } from '../../services/auth';
|
|
3
3
|
import authStore from '../../services/auth';
|
|
4
4
|
import i18next from 'i18next';
|
|
@@ -68,6 +68,16 @@ export class EzpAuth {
|
|
|
68
68
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
69
69
|
this.auth.buildAuthURI();
|
|
70
70
|
}
|
|
71
|
+
if (this.code) {
|
|
72
|
+
this.auth.code = this.code;
|
|
73
|
+
this.auth.getAccessToken().then(() => {
|
|
74
|
+
this.authCancel.emit();
|
|
75
|
+
this.authSuccess.emit();
|
|
76
|
+
}).catch(() => {
|
|
77
|
+
this.authCancel.emit();
|
|
78
|
+
});
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
71
81
|
if (this.hidelogin && this.trigger === 'button') {
|
|
72
82
|
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
73
83
|
}
|
|
@@ -151,6 +161,23 @@ export class EzpAuth {
|
|
|
151
161
|
},
|
|
152
162
|
"attribute": "trigger",
|
|
153
163
|
"reflect": false
|
|
164
|
+
},
|
|
165
|
+
"code": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "string",
|
|
170
|
+
"resolved": "string",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": ""
|
|
178
|
+
},
|
|
179
|
+
"attribute": "code",
|
|
180
|
+
"reflect": false
|
|
154
181
|
}
|
|
155
182
|
}; }
|
|
156
183
|
static get states() { return {
|
|
@@ -205,7 +205,15 @@ export class EzpPrinterSelection {
|
|
|
205
205
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
206
206
|
}
|
|
207
207
|
if (localStorage.getItem('printer')) {
|
|
208
|
-
|
|
208
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
209
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
210
|
+
this.selectedPrinter = savedPrinter;
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
214
|
+
localStorage.removeItem('printer');
|
|
215
|
+
localStorage.removeItem('properties');
|
|
216
|
+
}
|
|
209
217
|
}
|
|
210
218
|
else {
|
|
211
219
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -343,10 +351,18 @@ export class EzpPrinterSelection {
|
|
|
343
351
|
*/
|
|
344
352
|
/** Description... */
|
|
345
353
|
async connectedCallback() {
|
|
346
|
-
this.getPropertiesFromLocalStorage();
|
|
347
354
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
348
355
|
this.printService.registerFetchInterceptor();
|
|
349
356
|
await this.getUserInfo();
|
|
357
|
+
await this.printService
|
|
358
|
+
.getPrinterList(authStore.state.accessToken)
|
|
359
|
+
.then((printers) => {
|
|
360
|
+
this.printers = printers;
|
|
361
|
+
if (!(this.printers.length > 0)) {
|
|
362
|
+
this.noPrinters = true;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
this.getPropertiesFromLocalStorage();
|
|
350
366
|
// if printer is stored from previous print, get the config to enable property selection
|
|
351
367
|
if (this.selectedPrinter.id != '') {
|
|
352
368
|
await this.printService
|
|
@@ -361,14 +377,6 @@ export class EzpPrinterSelection {
|
|
|
361
377
|
.then((response) => {
|
|
362
378
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
363
379
|
});
|
|
364
|
-
await this.printService
|
|
365
|
-
.getPrinterList(authStore.state.accessToken)
|
|
366
|
-
.then((printers) => {
|
|
367
|
-
this.printers = printers;
|
|
368
|
-
if (!(this.printers.length > 0)) {
|
|
369
|
-
this.noPrinters = true;
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
380
|
await this.printService
|
|
373
381
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
374
382
|
.then((printerConfig) => {
|
|
@@ -109,6 +109,9 @@ export class EzpPrinting {
|
|
|
109
109
|
return sasUri;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
+
async getAuthUri() {
|
|
113
|
+
return authStore.state.authUri;
|
|
114
|
+
}
|
|
112
115
|
checkAuth() {
|
|
113
116
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
114
117
|
let accessToken = authStore.state.accessToken;
|
|
@@ -178,7 +181,7 @@ export class EzpPrinting {
|
|
|
178
181
|
? this.systemAppearance
|
|
179
182
|
: userStore.state.appearance}` },
|
|
180
183
|
this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))),
|
|
181
|
-
this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
184
|
+
this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
182
185
|
}
|
|
183
186
|
static get is() { return "ezp-printing"; }
|
|
184
187
|
static get encapsulation() { return "shadow"; }
|
|
@@ -189,6 +192,25 @@ export class EzpPrinting {
|
|
|
189
192
|
"$": ["ezp-printing.css"]
|
|
190
193
|
}; }
|
|
191
194
|
static get properties() { return {
|
|
195
|
+
"file": {
|
|
196
|
+
"type": "unknown",
|
|
197
|
+
"mutable": true,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "File",
|
|
200
|
+
"resolved": "File",
|
|
201
|
+
"references": {
|
|
202
|
+
"File": {
|
|
203
|
+
"location": "global"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
}
|
|
213
|
+
},
|
|
192
214
|
"clientid": {
|
|
193
215
|
"type": "string",
|
|
194
216
|
"mutable": false,
|
|
@@ -463,6 +485,23 @@ export class EzpPrinting {
|
|
|
463
485
|
"attribute": "language",
|
|
464
486
|
"reflect": false,
|
|
465
487
|
"defaultValue": "''"
|
|
488
|
+
},
|
|
489
|
+
"code": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"mutable": false,
|
|
492
|
+
"complexType": {
|
|
493
|
+
"original": "string",
|
|
494
|
+
"resolved": "string",
|
|
495
|
+
"references": {}
|
|
496
|
+
},
|
|
497
|
+
"required": false,
|
|
498
|
+
"optional": false,
|
|
499
|
+
"docs": {
|
|
500
|
+
"tags": [],
|
|
501
|
+
"text": ""
|
|
502
|
+
},
|
|
503
|
+
"attribute": "code",
|
|
504
|
+
"reflect": false
|
|
466
505
|
}
|
|
467
506
|
}; }
|
|
468
507
|
static get states() { return {
|
|
@@ -520,6 +559,22 @@ export class EzpPrinting {
|
|
|
520
559
|
"text": "",
|
|
521
560
|
"tags": []
|
|
522
561
|
}
|
|
562
|
+
},
|
|
563
|
+
"getAuthUri": {
|
|
564
|
+
"complexType": {
|
|
565
|
+
"signature": "() => Promise<string>",
|
|
566
|
+
"parameters": [],
|
|
567
|
+
"references": {
|
|
568
|
+
"Promise": {
|
|
569
|
+
"location": "global"
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"return": "Promise<string>"
|
|
573
|
+
},
|
|
574
|
+
"docs": {
|
|
575
|
+
"text": "",
|
|
576
|
+
"tags": []
|
|
577
|
+
}
|
|
523
578
|
}
|
|
524
579
|
}; }
|
|
525
580
|
static get listeners() { return [{
|
|
@@ -36,6 +36,7 @@ export class EzpAuthorizationService {
|
|
|
36
36
|
this.urlParams.append('code_challenge', this.codeChallenge);
|
|
37
37
|
this.urlParams.append('code_challenge_method', 'S256');
|
|
38
38
|
this.authURI.search = this.urlParams.toString();
|
|
39
|
+
authStore.state.authUri = this.authURI.toString();
|
|
39
40
|
}
|
|
40
41
|
getAccessToken() {
|
|
41
42
|
return fetch(this.accessTokenURL, {
|
|
@@ -107,6 +108,7 @@ const authStore = createStore({
|
|
|
107
108
|
devApi: false,
|
|
108
109
|
authApiHostUrl: '',
|
|
109
110
|
redirectUri: '',
|
|
111
|
+
authUri: ''
|
|
110
112
|
});
|
|
111
113
|
export default authStore;
|
|
112
114
|
export function sendCodeToParentWindow() {
|
|
@@ -3089,6 +3089,7 @@ class EzpAuthorizationService {
|
|
|
3089
3089
|
this.urlParams.append('code_challenge', this.codeChallenge);
|
|
3090
3090
|
this.urlParams.append('code_challenge_method', 'S256');
|
|
3091
3091
|
this.authURI.search = this.urlParams.toString();
|
|
3092
|
+
authStore.state.authUri = this.authURI.toString();
|
|
3092
3093
|
}
|
|
3093
3094
|
getAccessToken() {
|
|
3094
3095
|
return fetch(this.accessTokenURL, {
|
|
@@ -3160,6 +3161,7 @@ const authStore = createStore({
|
|
|
3160
3161
|
devApi: false,
|
|
3161
3162
|
authApiHostUrl: '',
|
|
3162
3163
|
redirectUri: '',
|
|
3164
|
+
authUri: ''
|
|
3163
3165
|
});
|
|
3164
3166
|
function sendCodeToParentWindow() {
|
|
3165
3167
|
// get the URL parameters which will include the auth code
|
|
@@ -3247,6 +3249,16 @@ let EzpAuth$1 = class extends HTMLElement {
|
|
|
3247
3249
|
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
3248
3250
|
this.auth.buildAuthURI();
|
|
3249
3251
|
}
|
|
3252
|
+
if (this.code) {
|
|
3253
|
+
this.auth.code = this.code;
|
|
3254
|
+
this.auth.getAccessToken().then(() => {
|
|
3255
|
+
this.authCancel.emit();
|
|
3256
|
+
this.authSuccess.emit();
|
|
3257
|
+
}).catch(() => {
|
|
3258
|
+
this.authCancel.emit();
|
|
3259
|
+
});
|
|
3260
|
+
return;
|
|
3261
|
+
}
|
|
3250
3262
|
if (this.hidelogin && this.trigger === 'button') {
|
|
3251
3263
|
this.openSignInWindow(this.auth.authURI.toString(), 'ezeep Login');
|
|
3252
3264
|
}
|
|
@@ -32850,7 +32862,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32850
32862
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32851
32863
|
}
|
|
32852
32864
|
if (localStorage.getItem('printer')) {
|
|
32853
|
-
|
|
32865
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32866
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
32867
|
+
this.selectedPrinter = savedPrinter;
|
|
32868
|
+
}
|
|
32869
|
+
else {
|
|
32870
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32871
|
+
localStorage.removeItem('printer');
|
|
32872
|
+
localStorage.removeItem('properties');
|
|
32873
|
+
}
|
|
32854
32874
|
}
|
|
32855
32875
|
else {
|
|
32856
32876
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32986,10 +33006,18 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32986
33006
|
*/
|
|
32987
33007
|
/** Description... */
|
|
32988
33008
|
async connectedCallback() {
|
|
32989
|
-
this.getPropertiesFromLocalStorage();
|
|
32990
33009
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32991
33010
|
this.printService.registerFetchInterceptor();
|
|
32992
33011
|
await this.getUserInfo();
|
|
33012
|
+
await this.printService
|
|
33013
|
+
.getPrinterList(authStore.state.accessToken)
|
|
33014
|
+
.then((printers) => {
|
|
33015
|
+
this.printers = printers;
|
|
33016
|
+
if (!(this.printers.length > 0)) {
|
|
33017
|
+
this.noPrinters = true;
|
|
33018
|
+
}
|
|
33019
|
+
});
|
|
33020
|
+
this.getPropertiesFromLocalStorage();
|
|
32993
33021
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32994
33022
|
if (this.selectedPrinter.id != '') {
|
|
32995
33023
|
await this.printService
|
|
@@ -33004,14 +33032,6 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33004
33032
|
.then((response) => {
|
|
33005
33033
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
33006
33034
|
});
|
|
33007
|
-
await this.printService
|
|
33008
|
-
.getPrinterList(authStore.state.accessToken)
|
|
33009
|
-
.then((printers) => {
|
|
33010
|
-
this.printers = printers;
|
|
33011
|
-
if (!(this.printers.length > 0)) {
|
|
33012
|
-
this.noPrinters = true;
|
|
33013
|
-
}
|
|
33014
|
-
});
|
|
33015
33035
|
await this.printService
|
|
33016
33036
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
33017
33037
|
.then((printerConfig) => {
|
|
@@ -33211,6 +33231,9 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33211
33231
|
return sasUri;
|
|
33212
33232
|
}
|
|
33213
33233
|
}
|
|
33234
|
+
async getAuthUri() {
|
|
33235
|
+
return authStore.state.authUri;
|
|
33236
|
+
}
|
|
33214
33237
|
checkAuth() {
|
|
33215
33238
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33216
33239
|
let accessToken = authStore.state.accessToken;
|
|
@@ -33278,7 +33301,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33278
33301
|
render() {
|
|
33279
33302
|
return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
33280
33303
|
? this.systemAppearance
|
|
33281
|
-
: userStore.state.appearance}` }, this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33304
|
+
: userStore.state.appearance}` }, this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, file: this.file, hidemenu: this.hidemenu })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33282
33305
|
}
|
|
33283
33306
|
static get style() { return ezpPrintingCss; }
|
|
33284
33307
|
};
|
|
@@ -33769,14 +33792,14 @@ let EzpUserMenu$1 = class extends HTMLElement {
|
|
|
33769
33792
|
};
|
|
33770
33793
|
|
|
33771
33794
|
globalScripts();
|
|
33772
|
-
const EzpAuth = /*@__PURE__*/proxyCustomElement(EzpAuth$1, [1,"ezp-auth",{"clientID":[1025,"client-i-d"],"redirectURI":[1025,"redirect-u-r-i"],"hidelogin":[4],"trigger":[1],"auth":[32],"authURI":[32],"accessToken":[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]]);
|
|
33795
|
+
const EzpAuth = /*@__PURE__*/proxyCustomElement(EzpAuth$1, [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"]]]);
|
|
33773
33796
|
const EzpBackdrop = /*@__PURE__*/proxyCustomElement(EzpBackdrop$1, [1,"ezp-backdrop",{"visible":[1028]},[[0,"animationend","listenAnimationEnd"]]]);
|
|
33774
33797
|
const EzpDialog = /*@__PURE__*/proxyCustomElement(EzpDialog$1, [1,"ezp-dialog",{"heading":[1],"description":[1],"action":[1],"iconName":[1,"icon-name"],"iconSize":[1,"icon-size"],"iconFramed":[4,"icon-framed"],"instance":[1]}]);
|
|
33775
33798
|
const EzpIcon = /*@__PURE__*/proxyCustomElement(EzpIcon$1, [1,"ezp-icon",{"name":[1],"size":[1],"framed":[4]}]);
|
|
33776
33799
|
const EzpIconButton = /*@__PURE__*/proxyCustomElement(EzpIconButton$1, [1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}]);
|
|
33777
33800
|
const EzpLabel = /*@__PURE__*/proxyCustomElement(EzpLabel$1, [1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]);
|
|
33778
33801
|
const EzpPrinterSelection = /*@__PURE__*/proxyCustomElement(EzpPrinterSelection$1, [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"]]]);
|
|
33779
|
-
const EzpPrinting = /*@__PURE__*/proxyCustomElement(EzpPrinting$1, [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],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]]);
|
|
33802
|
+
const EzpPrinting = /*@__PURE__*/proxyCustomElement(EzpPrinting$1, [1,"ezp-printing",{"file":[1040],"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],"code":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]]);
|
|
33780
33803
|
const EzpSelect = /*@__PURE__*/proxyCustomElement(EzpSelect$1, [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]}]);
|
|
33781
33804
|
const EzpStatus = /*@__PURE__*/proxyCustomElement(EzpStatus$1, [1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}]);
|
|
33782
33805
|
const EzpStepper = /*@__PURE__*/proxyCustomElement(EzpStepper$1, [1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}]);
|
|
@@ -8,13 +8,13 @@ import { Components } from '@ezeep/ezeep-js';
|
|
|
8
8
|
|
|
9
9
|
export declare interface EzpAuth extends Components.EzpAuth {}
|
|
10
10
|
@ProxyCmp({
|
|
11
|
-
inputs: ['clientID', 'hidelogin', 'redirectURI', 'trigger']
|
|
11
|
+
inputs: ['clientID', 'code', 'hidelogin', 'redirectURI', 'trigger']
|
|
12
12
|
})
|
|
13
13
|
@Component({
|
|
14
14
|
selector: 'ezp-auth',
|
|
15
15
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
16
|
template: '<ng-content></ng-content>',
|
|
17
|
-
inputs: ['clientID', 'hidelogin', 'redirectURI', 'trigger'],
|
|
17
|
+
inputs: ['clientID', 'code', 'hidelogin', 'redirectURI', 'trigger'],
|
|
18
18
|
outputs: ['authCancel', 'authSuccess']
|
|
19
19
|
})
|
|
20
20
|
export class EzpAuth {
|
|
@@ -166,14 +166,14 @@ export class EzpPrinterSelection {
|
|
|
166
166
|
|
|
167
167
|
export declare interface EzpPrinting extends Components.EzpPrinting {}
|
|
168
168
|
@ProxyCmp({
|
|
169
|
-
inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger'],
|
|
170
|
-
methods: ['open', 'logOut', 'getSasUri']
|
|
169
|
+
inputs: ['appearance', 'authapihosturl', 'clientid', 'code', 'custom', 'file', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger'],
|
|
170
|
+
methods: ['open', 'logOut', 'getSasUri', 'getAuthUri']
|
|
171
171
|
})
|
|
172
172
|
@Component({
|
|
173
173
|
selector: 'ezp-printing',
|
|
174
174
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
175
175
|
template: '<ng-content></ng-content>',
|
|
176
|
-
inputs: ['appearance', 'authapihosturl', 'clientid', 'custom', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger']
|
|
176
|
+
inputs: ['appearance', 'authapihosturl', 'clientid', 'code', 'custom', 'file', 'fileid', 'filename', 'filetype', 'fileurl', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger']
|
|
177
177
|
})
|
|
178
178
|
export class EzpPrinting {
|
|
179
179
|
protected el: HTMLElement;
|
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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[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],"trigger":[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",{"file":[1040],"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],"code":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"open":[64],"logOut":[64],"getSasUri":[64],"getAuthUri":[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],"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
|
});
|