@ezeep/ezeep-js 1.0.190 → 1.0.193
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 +18 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-printing/ezp-printing.js +27 -3
- package/dist/custom-elements/index.js +18 -9
- package/dist/directives/proxies.ts +1 -1
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_14.entry.js +18 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
- 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-37743193.system.entry.js → p-6f695f1d.system.entry.js} +2 -2
- package/dist/ezeep/{p-03b7e94c.entry.js → p-ffa1d6a9.entry.js} +2 -2
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +2 -1
- package/dist/types/components.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-37743193.system.entry.js → p-6f695f1d.system.entry.js} +2 -2
- package/www/build/{p-03b7e94c.entry.js → p-ffa1d6a9.entry.js} +2 -2
- package/www/data/locales/de.json +7 -4
- package/www/data/locales/en.json +1 -1
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],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[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
|
+
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],"code":[1],"filedata":[1],"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],"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
|
});
|
|
@@ -2872,20 +2872,23 @@ const printer_selection$1 = {
|
|
|
2872
2872
|
duplex_none: "Keine",
|
|
2873
2873
|
copies: "Kopien",
|
|
2874
2874
|
duplex_long: "auf der langen Seite umdrehen",
|
|
2875
|
-
duplex_short: "auf der kurzen Seite umdrehen"
|
|
2875
|
+
duplex_short: "auf der kurzen Seite umdrehen",
|
|
2876
|
+
pull_print_success: "Bereit zum Auslösen."
|
|
2876
2877
|
};
|
|
2877
2878
|
const button_actions$1 = {
|
|
2878
2879
|
login: "Anmelden",
|
|
2879
2880
|
print: "Drucken",
|
|
2880
2881
|
cancel: "Abbrechen",
|
|
2881
2882
|
close: "Schließen",
|
|
2882
|
-
retry: "Wiederholen"
|
|
2883
|
+
retry: "Wiederholen",
|
|
2884
|
+
select_printer: "Wähle Drucker"
|
|
2883
2885
|
};
|
|
2884
2886
|
const upload$1 = {
|
|
2885
2887
|
description: "Ziehe eine Datei hier in den Browser ",
|
|
2886
2888
|
meta_leading: "oder",
|
|
2887
2889
|
meta_select: "wähle eine Datei aus",
|
|
2888
|
-
meta_trailing: "um mit ezeep Blue zu drucken."
|
|
2890
|
+
meta_trailing: "um mit ezeep Blue zu drucken.",
|
|
2891
|
+
selected_file: "Ausgewählte Datei:"
|
|
2889
2892
|
};
|
|
2890
2893
|
const user_menu$1 = {
|
|
2891
2894
|
theme: "Farbschema",
|
|
@@ -2893,7 +2896,7 @@ const user_menu$1 = {
|
|
|
2893
2896
|
system: "System",
|
|
2894
2897
|
light: "Hell",
|
|
2895
2898
|
dark: "Dunkel",
|
|
2896
|
-
account: "
|
|
2899
|
+
account: "Konto verwalten",
|
|
2897
2900
|
help: "Hilfe & Unterstützung",
|
|
2898
2901
|
logout: "Ausloggen"
|
|
2899
2902
|
};
|
|
@@ -2970,7 +2973,7 @@ const user_menu = {
|
|
|
2970
2973
|
system: "System",
|
|
2971
2974
|
light: "Light",
|
|
2972
2975
|
dark: "Dark",
|
|
2973
|
-
account: "Manage
|
|
2976
|
+
account: "Manage Account",
|
|
2974
2977
|
help: "Help & Support",
|
|
2975
2978
|
logout: "Logout"
|
|
2976
2979
|
};
|
|
@@ -33124,6 +33127,11 @@ let EzpPrinting = class {
|
|
|
33124
33127
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33125
33128
|
}
|
|
33126
33129
|
}
|
|
33130
|
+
watchFilename(newValue, oldValue) {
|
|
33131
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33132
|
+
this.filename = newValue;
|
|
33133
|
+
}
|
|
33134
|
+
}
|
|
33127
33135
|
/**
|
|
33128
33136
|
*
|
|
33129
33137
|
* Listeners
|
|
@@ -33217,7 +33225,7 @@ let EzpPrinting = class {
|
|
|
33217
33225
|
this.auth.buildAuthURI();
|
|
33218
33226
|
return authStore.state.authUri;
|
|
33219
33227
|
}
|
|
33220
|
-
checkAuth() {
|
|
33228
|
+
async checkAuth() {
|
|
33221
33229
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33222
33230
|
let accessToken = authStore.state.accessToken;
|
|
33223
33231
|
if (accessToken === '') {
|
|
@@ -33228,8 +33236,7 @@ let EzpPrinting = class {
|
|
|
33228
33236
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33229
33237
|
this.authOpen = !authStore.state.isAuthorized;
|
|
33230
33238
|
}
|
|
33231
|
-
printService
|
|
33232
|
-
.getConfig(authStore.state.accessToken)
|
|
33239
|
+
printService.getConfig(authStore.state.accessToken)
|
|
33233
33240
|
.then((response) => {
|
|
33234
33241
|
if (response.ok) {
|
|
33235
33242
|
authStore.state.isAuthorized = true;
|
|
@@ -33241,6 +33248,7 @@ let EzpPrinting = class {
|
|
|
33241
33248
|
.catch(() => {
|
|
33242
33249
|
authStore.state.isAuthorized = false;
|
|
33243
33250
|
});
|
|
33251
|
+
return authStore.state.isAuthorized;
|
|
33244
33252
|
}
|
|
33245
33253
|
refreshTokensPeriodically(seconds) {
|
|
33246
33254
|
const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
@@ -33287,7 +33295,8 @@ let EzpPrinting = class {
|
|
|
33287
33295
|
: 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));
|
|
33288
33296
|
}
|
|
33289
33297
|
static get watchers() { return {
|
|
33290
|
-
"filedata": ["watchFileData"]
|
|
33298
|
+
"filedata": ["watchFileData"],
|
|
33299
|
+
"filename": ["watchFilename"]
|
|
33291
33300
|
}; }
|
|
33292
33301
|
};
|
|
33293
33302
|
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],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[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
|
+
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],"code":[1],"filedata":[1],"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],"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
|
|
|
@@ -30,6 +30,11 @@ export class EzpPrinting {
|
|
|
30
30
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
watchFilename(newValue, oldValue) {
|
|
34
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
35
|
+
this.filename = newValue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
33
38
|
/**
|
|
34
39
|
*
|
|
35
40
|
* Listeners
|
|
@@ -123,7 +128,7 @@ export class EzpPrinting {
|
|
|
123
128
|
this.auth.buildAuthURI();
|
|
124
129
|
return authStore.state.authUri;
|
|
125
130
|
}
|
|
126
|
-
checkAuth() {
|
|
131
|
+
async checkAuth() {
|
|
127
132
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
128
133
|
let accessToken = authStore.state.accessToken;
|
|
129
134
|
if (accessToken === '') {
|
|
@@ -134,8 +139,7 @@ export class EzpPrinting {
|
|
|
134
139
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
135
140
|
this.authOpen = !authStore.state.isAuthorized;
|
|
136
141
|
}
|
|
137
|
-
printService
|
|
138
|
-
.getConfig(authStore.state.accessToken)
|
|
142
|
+
printService.getConfig(authStore.state.accessToken)
|
|
139
143
|
.then((response) => {
|
|
140
144
|
if (response.ok) {
|
|
141
145
|
authStore.state.isAuthorized = true;
|
|
@@ -147,6 +151,7 @@ export class EzpPrinting {
|
|
|
147
151
|
.catch(() => {
|
|
148
152
|
authStore.state.isAuthorized = false;
|
|
149
153
|
});
|
|
154
|
+
return authStore.state.isAuthorized;
|
|
150
155
|
}
|
|
151
156
|
refreshTokensPeriodically(seconds) {
|
|
152
157
|
const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
@@ -585,11 +590,30 @@ export class EzpPrinting {
|
|
|
585
590
|
"text": "",
|
|
586
591
|
"tags": []
|
|
587
592
|
}
|
|
593
|
+
},
|
|
594
|
+
"checkAuth": {
|
|
595
|
+
"complexType": {
|
|
596
|
+
"signature": "() => Promise<boolean>",
|
|
597
|
+
"parameters": [],
|
|
598
|
+
"references": {
|
|
599
|
+
"Promise": {
|
|
600
|
+
"location": "global"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"return": "Promise<boolean>"
|
|
604
|
+
},
|
|
605
|
+
"docs": {
|
|
606
|
+
"text": "",
|
|
607
|
+
"tags": []
|
|
608
|
+
}
|
|
588
609
|
}
|
|
589
610
|
}; }
|
|
590
611
|
static get watchers() { return [{
|
|
591
612
|
"propName": "filedata",
|
|
592
613
|
"methodName": "watchFileData"
|
|
614
|
+
}, {
|
|
615
|
+
"propName": "filename",
|
|
616
|
+
"methodName": "watchFilename"
|
|
593
617
|
}]; }
|
|
594
618
|
static get listeners() { return [{
|
|
595
619
|
"name": "printCancel",
|
|
@@ -2881,20 +2881,23 @@ const printer_selection$1 = {
|
|
|
2881
2881
|
duplex_none: "Keine",
|
|
2882
2882
|
copies: "Kopien",
|
|
2883
2883
|
duplex_long: "auf der langen Seite umdrehen",
|
|
2884
|
-
duplex_short: "auf der kurzen Seite umdrehen"
|
|
2884
|
+
duplex_short: "auf der kurzen Seite umdrehen",
|
|
2885
|
+
pull_print_success: "Bereit zum Auslösen."
|
|
2885
2886
|
};
|
|
2886
2887
|
const button_actions$1 = {
|
|
2887
2888
|
login: "Anmelden",
|
|
2888
2889
|
print: "Drucken",
|
|
2889
2890
|
cancel: "Abbrechen",
|
|
2890
2891
|
close: "Schließen",
|
|
2891
|
-
retry: "Wiederholen"
|
|
2892
|
+
retry: "Wiederholen",
|
|
2893
|
+
select_printer: "Wähle Drucker"
|
|
2892
2894
|
};
|
|
2893
2895
|
const upload$1 = {
|
|
2894
2896
|
description: "Ziehe eine Datei hier in den Browser ",
|
|
2895
2897
|
meta_leading: "oder",
|
|
2896
2898
|
meta_select: "wähle eine Datei aus",
|
|
2897
|
-
meta_trailing: "um mit ezeep Blue zu drucken."
|
|
2899
|
+
meta_trailing: "um mit ezeep Blue zu drucken.",
|
|
2900
|
+
selected_file: "Ausgewählte Datei:"
|
|
2898
2901
|
};
|
|
2899
2902
|
const user_menu$1 = {
|
|
2900
2903
|
theme: "Farbschema",
|
|
@@ -2902,7 +2905,7 @@ const user_menu$1 = {
|
|
|
2902
2905
|
system: "System",
|
|
2903
2906
|
light: "Hell",
|
|
2904
2907
|
dark: "Dunkel",
|
|
2905
|
-
account: "
|
|
2908
|
+
account: "Konto verwalten",
|
|
2906
2909
|
help: "Hilfe & Unterstützung",
|
|
2907
2910
|
logout: "Ausloggen"
|
|
2908
2911
|
};
|
|
@@ -2979,7 +2982,7 @@ const user_menu = {
|
|
|
2979
2982
|
system: "System",
|
|
2980
2983
|
light: "Light",
|
|
2981
2984
|
dark: "Dark",
|
|
2982
|
-
account: "Manage
|
|
2985
|
+
account: "Manage Account",
|
|
2983
2986
|
help: "Help & Support",
|
|
2984
2987
|
logout: "Logout"
|
|
2985
2988
|
};
|
|
@@ -33149,6 +33152,11 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33149
33152
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33150
33153
|
}
|
|
33151
33154
|
}
|
|
33155
|
+
watchFilename(newValue, oldValue) {
|
|
33156
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33157
|
+
this.filename = newValue;
|
|
33158
|
+
}
|
|
33159
|
+
}
|
|
33152
33160
|
/**
|
|
33153
33161
|
*
|
|
33154
33162
|
* Listeners
|
|
@@ -33242,7 +33250,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33242
33250
|
this.auth.buildAuthURI();
|
|
33243
33251
|
return authStore.state.authUri;
|
|
33244
33252
|
}
|
|
33245
|
-
checkAuth() {
|
|
33253
|
+
async checkAuth() {
|
|
33246
33254
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33247
33255
|
let accessToken = authStore.state.accessToken;
|
|
33248
33256
|
if (accessToken === '') {
|
|
@@ -33253,8 +33261,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33253
33261
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33254
33262
|
this.authOpen = !authStore.state.isAuthorized;
|
|
33255
33263
|
}
|
|
33256
|
-
printService
|
|
33257
|
-
.getConfig(authStore.state.accessToken)
|
|
33264
|
+
printService.getConfig(authStore.state.accessToken)
|
|
33258
33265
|
.then((response) => {
|
|
33259
33266
|
if (response.ok) {
|
|
33260
33267
|
authStore.state.isAuthorized = true;
|
|
@@ -33266,6 +33273,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33266
33273
|
.catch(() => {
|
|
33267
33274
|
authStore.state.isAuthorized = false;
|
|
33268
33275
|
});
|
|
33276
|
+
return authStore.state.isAuthorized;
|
|
33269
33277
|
}
|
|
33270
33278
|
refreshTokensPeriodically(seconds) {
|
|
33271
33279
|
const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
@@ -33312,7 +33320,8 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33312
33320
|
: 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));
|
|
33313
33321
|
}
|
|
33314
33322
|
static get watchers() { return {
|
|
33315
|
-
"filedata": ["watchFileData"]
|
|
33323
|
+
"filedata": ["watchFileData"],
|
|
33324
|
+
"filename": ["watchFilename"]
|
|
33316
33325
|
}; }
|
|
33317
33326
|
static get style() { return ezpPrintingCss; }
|
|
33318
33327
|
};
|
|
@@ -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', 'hidelogin', 'hidemenu', 'language', 'printapihosturl', 'redirecturi', 'theme', 'trigger'],
|
|
170
|
-
methods: ['open', 'logOut', 'getSasUri', 'getAuthUri']
|
|
170
|
+
methods: ['open', 'logOut', '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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[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);
|
|
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],"code":[1],"filedata":[1],"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],"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
|
});
|
|
@@ -2868,20 +2868,23 @@ const printer_selection$1 = {
|
|
|
2868
2868
|
duplex_none: "Keine",
|
|
2869
2869
|
copies: "Kopien",
|
|
2870
2870
|
duplex_long: "auf der langen Seite umdrehen",
|
|
2871
|
-
duplex_short: "auf der kurzen Seite umdrehen"
|
|
2871
|
+
duplex_short: "auf der kurzen Seite umdrehen",
|
|
2872
|
+
pull_print_success: "Bereit zum Auslösen."
|
|
2872
2873
|
};
|
|
2873
2874
|
const button_actions$1 = {
|
|
2874
2875
|
login: "Anmelden",
|
|
2875
2876
|
print: "Drucken",
|
|
2876
2877
|
cancel: "Abbrechen",
|
|
2877
2878
|
close: "Schließen",
|
|
2878
|
-
retry: "Wiederholen"
|
|
2879
|
+
retry: "Wiederholen",
|
|
2880
|
+
select_printer: "Wähle Drucker"
|
|
2879
2881
|
};
|
|
2880
2882
|
const upload$1 = {
|
|
2881
2883
|
description: "Ziehe eine Datei hier in den Browser ",
|
|
2882
2884
|
meta_leading: "oder",
|
|
2883
2885
|
meta_select: "wähle eine Datei aus",
|
|
2884
|
-
meta_trailing: "um mit ezeep Blue zu drucken."
|
|
2886
|
+
meta_trailing: "um mit ezeep Blue zu drucken.",
|
|
2887
|
+
selected_file: "Ausgewählte Datei:"
|
|
2885
2888
|
};
|
|
2886
2889
|
const user_menu$1 = {
|
|
2887
2890
|
theme: "Farbschema",
|
|
@@ -2889,7 +2892,7 @@ const user_menu$1 = {
|
|
|
2889
2892
|
system: "System",
|
|
2890
2893
|
light: "Hell",
|
|
2891
2894
|
dark: "Dunkel",
|
|
2892
|
-
account: "
|
|
2895
|
+
account: "Konto verwalten",
|
|
2893
2896
|
help: "Hilfe & Unterstützung",
|
|
2894
2897
|
logout: "Ausloggen"
|
|
2895
2898
|
};
|
|
@@ -2966,7 +2969,7 @@ const user_menu = {
|
|
|
2966
2969
|
system: "System",
|
|
2967
2970
|
light: "Light",
|
|
2968
2971
|
dark: "Dark",
|
|
2969
|
-
account: "Manage
|
|
2972
|
+
account: "Manage Account",
|
|
2970
2973
|
help: "Help & Support",
|
|
2971
2974
|
logout: "Logout"
|
|
2972
2975
|
};
|
|
@@ -33120,6 +33123,11 @@ let EzpPrinting = class {
|
|
|
33120
33123
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33121
33124
|
}
|
|
33122
33125
|
}
|
|
33126
|
+
watchFilename(newValue, oldValue) {
|
|
33127
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33128
|
+
this.filename = newValue;
|
|
33129
|
+
}
|
|
33130
|
+
}
|
|
33123
33131
|
/**
|
|
33124
33132
|
*
|
|
33125
33133
|
* Listeners
|
|
@@ -33213,7 +33221,7 @@ let EzpPrinting = class {
|
|
|
33213
33221
|
this.auth.buildAuthURI();
|
|
33214
33222
|
return authStore.state.authUri;
|
|
33215
33223
|
}
|
|
33216
|
-
checkAuth() {
|
|
33224
|
+
async checkAuth() {
|
|
33217
33225
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33218
33226
|
let accessToken = authStore.state.accessToken;
|
|
33219
33227
|
if (accessToken === '') {
|
|
@@ -33224,8 +33232,7 @@ let EzpPrinting = class {
|
|
|
33224
33232
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33225
33233
|
this.authOpen = !authStore.state.isAuthorized;
|
|
33226
33234
|
}
|
|
33227
|
-
printService
|
|
33228
|
-
.getConfig(authStore.state.accessToken)
|
|
33235
|
+
printService.getConfig(authStore.state.accessToken)
|
|
33229
33236
|
.then((response) => {
|
|
33230
33237
|
if (response.ok) {
|
|
33231
33238
|
authStore.state.isAuthorized = true;
|
|
@@ -33237,6 +33244,7 @@ let EzpPrinting = class {
|
|
|
33237
33244
|
.catch(() => {
|
|
33238
33245
|
authStore.state.isAuthorized = false;
|
|
33239
33246
|
});
|
|
33247
|
+
return authStore.state.isAuthorized;
|
|
33240
33248
|
}
|
|
33241
33249
|
refreshTokensPeriodically(seconds) {
|
|
33242
33250
|
const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
@@ -33283,7 +33291,8 @@ let EzpPrinting = class {
|
|
|
33283
33291
|
: 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));
|
|
33284
33292
|
}
|
|
33285
33293
|
static get watchers() { return {
|
|
33286
|
-
"filedata": ["watchFileData"]
|
|
33294
|
+
"filedata": ["watchFileData"],
|
|
33295
|
+
"filename": ["watchFilename"]
|
|
33287
33296
|
}; }
|
|
33288
33297
|
};
|
|
33289
33298
|
EzpPrinting.style = ezpPrintingCss;
|
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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"file":[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);
|
|
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],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"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],"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],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[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]}]]]],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],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],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],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)}));
|