@ezeep/ezeep-js 1.0.240 → 1.0.242
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_15.cjs.entry.js +125 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +126 -15
- package/dist/custom-elements/index.js +126 -16
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_15.entry.js +125 -15
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-c6949ecf.entry.js → p-412261e1.entry.js} +2 -2
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/ezeep/{p-d2371955.system.entry.js → p-9afd2743.system.entry.js} +3 -3
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +2 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-c6949ecf.entry.js → p-412261e1.entry.js} +2 -2
- package/www/build/p-84bd195a.system.js +1 -1
- package/www/build/{p-d2371955.system.entry.js → p-9afd2743.system.entry.js} +3 -3
|
@@ -32840,6 +32840,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32840
32840
|
this.printFailed = false;
|
|
32841
32841
|
this.notSupported = false;
|
|
32842
32842
|
this.noPrinters = false;
|
|
32843
|
+
this.hubDriverError = false;
|
|
32843
32844
|
this.userMenuOpen = false;
|
|
32844
32845
|
this.printStopped = false;
|
|
32845
32846
|
this.selectedPrinterConfig = {
|
|
@@ -32889,18 +32890,55 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32889
32890
|
this.failedFiles = [];
|
|
32890
32891
|
this.successfulFiles = [];
|
|
32891
32892
|
this.partialSuccess = false;
|
|
32893
|
+
this.hubDriverError = false;
|
|
32892
32894
|
this.printCancel.emit();
|
|
32893
32895
|
};
|
|
32894
32896
|
this.validateData = (data) => {
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
+
console.log('[validateData] Checking data:', data);
|
|
32898
|
+
const { jobstatus } = data;
|
|
32899
|
+
// Define status handlers
|
|
32900
|
+
const statusHandlers = {
|
|
32901
|
+
0: () => {
|
|
32902
|
+
// Success
|
|
32903
|
+
this.printSuccess = true;
|
|
32904
|
+
this.printProcessing = false;
|
|
32905
|
+
return true;
|
|
32906
|
+
},
|
|
32907
|
+
1246: () => false,
|
|
32908
|
+
129: () => false,
|
|
32909
|
+
3011: () => {
|
|
32910
|
+
// Failure
|
|
32911
|
+
this.printFailed = true;
|
|
32912
|
+
this.printProcessing = false;
|
|
32913
|
+
return true;
|
|
32914
|
+
},
|
|
32915
|
+
2: () => {
|
|
32916
|
+
// Failure
|
|
32917
|
+
this.printFailed = true;
|
|
32918
|
+
this.printProcessing = false;
|
|
32919
|
+
return true;
|
|
32920
|
+
},
|
|
32921
|
+
};
|
|
32922
|
+
// Check for hub printer driver errors
|
|
32923
|
+
const hubDriverErrorCodes = [412, 500, 503, 1048579];
|
|
32924
|
+
if (hubDriverErrorCodes.includes(jobstatus) && this.selectedPrinter.is_queue) {
|
|
32925
|
+
this.hubDriverError = true;
|
|
32897
32926
|
this.printProcessing = false;
|
|
32898
32927
|
return true;
|
|
32899
32928
|
}
|
|
32900
|
-
|
|
32929
|
+
// Use handler if exists, otherwise treat as failure
|
|
32930
|
+
const handler = statusHandlers[jobstatus];
|
|
32931
|
+
if (handler) {
|
|
32932
|
+
return handler();
|
|
32933
|
+
}
|
|
32934
|
+
// Unknown status, treat as failure for safety
|
|
32935
|
+
this.printFailed = true;
|
|
32936
|
+
this.printProcessing = false;
|
|
32937
|
+
return true;
|
|
32901
32938
|
};
|
|
32902
32939
|
this.POLL_INTERVAL = 2000;
|
|
32903
32940
|
this.MAX_POLL_ATTEMPTS = Infinity;
|
|
32941
|
+
this.HUB_TIMEOUT = 30000; // 30 seconds timeout for hub printers
|
|
32904
32942
|
/** Description... */
|
|
32905
32943
|
this.handlePrint = async () => {
|
|
32906
32944
|
this.printButton.blur();
|
|
@@ -32908,6 +32946,16 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32908
32946
|
this.failedFiles = [];
|
|
32909
32947
|
this.successfulFiles = [];
|
|
32910
32948
|
this.partialSuccess = false;
|
|
32949
|
+
this.hubDriverError = false;
|
|
32950
|
+
// Set up timeout for hub printers to prevent infinite loading
|
|
32951
|
+
let hubTimeout;
|
|
32952
|
+
if (this.selectedPrinter.is_queue) {
|
|
32953
|
+
hubTimeout = setTimeout(() => {
|
|
32954
|
+
console.log('[handlePrint] Hub printer timeout reached, setting driver error');
|
|
32955
|
+
this.hubDriverError = true;
|
|
32956
|
+
this.printProcessing = false;
|
|
32957
|
+
}, this.HUB_TIMEOUT);
|
|
32958
|
+
}
|
|
32911
32959
|
// we have to initialse this obj with empty strings to display the select component
|
|
32912
32960
|
// but don't want to send any attributes with empty strings to the API
|
|
32913
32961
|
if (this.selectedPrinterConfig.Trays &&
|
|
@@ -32934,6 +32982,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32934
32982
|
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
32935
32983
|
this.printProcessing = false;
|
|
32936
32984
|
this.printSuccess = true;
|
|
32985
|
+
if (hubTimeout)
|
|
32986
|
+
clearTimeout(hubTimeout);
|
|
32937
32987
|
}
|
|
32938
32988
|
if (response.status === 412) {
|
|
32939
32989
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
@@ -32947,8 +32997,19 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32947
32997
|
if (data.code === 804) {
|
|
32948
32998
|
this.printFailed = true;
|
|
32949
32999
|
this.printProcessing = false;
|
|
33000
|
+
if (hubTimeout)
|
|
33001
|
+
clearTimeout(hubTimeout);
|
|
33002
|
+
}
|
|
33003
|
+
else if (this.selectedPrinter.is_queue &&
|
|
33004
|
+
(data.code === 412 || data.code === 500 || data.code === 503 || data.code === 1048579)) {
|
|
33005
|
+
// Hub printer specific errors - likely driver not assigned
|
|
33006
|
+
console.log('[handlePrint] Hub printer driver error detected:', data);
|
|
33007
|
+
this.hubDriverError = true;
|
|
33008
|
+
this.printProcessing = false;
|
|
33009
|
+
if (hubTimeout)
|
|
33010
|
+
clearTimeout(hubTimeout);
|
|
32950
33011
|
}
|
|
32951
|
-
if (data.jobid) {
|
|
33012
|
+
else if (data.jobid) {
|
|
32952
33013
|
printStore.state.jobID = data.jobid;
|
|
32953
33014
|
poll({
|
|
32954
33015
|
fn: this.printService.getPrintStatus,
|
|
@@ -32956,27 +33017,55 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32956
33017
|
interval: this.POLL_INTERVAL,
|
|
32957
33018
|
maxAttempts: this.MAX_POLL_ATTEMPTS,
|
|
32958
33019
|
}).catch((err) => {
|
|
32959
|
-
console.warn(err);
|
|
32960
|
-
this
|
|
33020
|
+
console.warn('[handlePrint] Polling error:', err);
|
|
33021
|
+
// Check if this is a hub printer and the error might be driver-related
|
|
33022
|
+
if (this.selectedPrinter.is_queue) {
|
|
33023
|
+
this.hubDriverError = true;
|
|
33024
|
+
}
|
|
33025
|
+
else {
|
|
33026
|
+
this.printFailed = true;
|
|
33027
|
+
}
|
|
32961
33028
|
this.printProcessing = false;
|
|
33029
|
+
if (hubTimeout)
|
|
33030
|
+
clearTimeout(hubTimeout);
|
|
32962
33031
|
});
|
|
32963
33032
|
}
|
|
32964
33033
|
else {
|
|
32965
|
-
|
|
33034
|
+
// No job ID returned - check if it's a hub printer
|
|
33035
|
+
if (this.selectedPrinter.is_queue) {
|
|
33036
|
+
this.hubDriverError = true;
|
|
33037
|
+
}
|
|
33038
|
+
else {
|
|
33039
|
+
this.printFailed = true;
|
|
33040
|
+
}
|
|
32966
33041
|
this.printProcessing = false;
|
|
33042
|
+
if (hubTimeout)
|
|
33043
|
+
clearTimeout(hubTimeout);
|
|
32967
33044
|
}
|
|
32968
33045
|
})
|
|
32969
33046
|
.catch((error) => {
|
|
32970
|
-
console.log(error);
|
|
32971
|
-
this
|
|
33047
|
+
console.log('[handlePrint] Error caught:', error);
|
|
33048
|
+
// Check if this is a hub printer and the error might be driver-related
|
|
33049
|
+
if (this.selectedPrinter.is_queue) {
|
|
33050
|
+
this.hubDriverError = true;
|
|
33051
|
+
}
|
|
33052
|
+
else {
|
|
33053
|
+
this.printFailed = true;
|
|
33054
|
+
}
|
|
32972
33055
|
this.printProcessing = false;
|
|
33056
|
+
if (hubTimeout)
|
|
33057
|
+
clearTimeout(hubTimeout);
|
|
32973
33058
|
});
|
|
32974
33059
|
}
|
|
32975
33060
|
else if (this.files && this.files.length > 1) {
|
|
32976
33061
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
33062
|
+
if (hubTimeout)
|
|
33063
|
+
clearTimeout(hubTimeout);
|
|
32977
33064
|
}
|
|
32978
33065
|
else if (this.files && this.files.length === 1) {
|
|
32979
33066
|
await this.processSingleFile(this.files[0], cleanPrintProperties);
|
|
33067
|
+
if (hubTimeout)
|
|
33068
|
+
clearTimeout(hubTimeout);
|
|
32980
33069
|
}
|
|
32981
33070
|
localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
|
|
32982
33071
|
localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
|
|
@@ -33030,12 +33119,12 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33030
33119
|
this.printCancel.emit();
|
|
33031
33120
|
break;
|
|
33032
33121
|
case 'print-failed':
|
|
33033
|
-
this.printProcessing = false;
|
|
33034
33122
|
this.printFailed = false;
|
|
33035
|
-
this.failedFiles = [];
|
|
33036
|
-
this.successfulFiles = [];
|
|
33037
33123
|
break;
|
|
33038
|
-
case '
|
|
33124
|
+
case 'hub-driver-error':
|
|
33125
|
+
this.hubDriverError = false;
|
|
33126
|
+
break;
|
|
33127
|
+
case 'not-supported':
|
|
33039
33128
|
this.noPrinters = false;
|
|
33040
33129
|
break;
|
|
33041
33130
|
}
|
|
@@ -33050,6 +33139,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33050
33139
|
this.printProcessing = false;
|
|
33051
33140
|
this.handlePrint();
|
|
33052
33141
|
break;
|
|
33142
|
+
case 'hub-driver-error':
|
|
33143
|
+
this.hubDriverError = false;
|
|
33144
|
+
this.printProcessing = false;
|
|
33145
|
+
this.handlePrint();
|
|
33146
|
+
break;
|
|
33053
33147
|
}
|
|
33054
33148
|
}
|
|
33055
33149
|
getPropertiesFromLocalStorage() {
|
|
@@ -33187,7 +33281,13 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33187
33281
|
catch (error) {
|
|
33188
33282
|
console.error(`Error processing file ${file.name}:`, error);
|
|
33189
33283
|
this.failedFiles.push(file.name);
|
|
33190
|
-
//
|
|
33284
|
+
// Check if this is a hub driver error
|
|
33285
|
+
if (error.message && error.message.includes('Hub printer driver error')) {
|
|
33286
|
+
this.hubDriverError = true;
|
|
33287
|
+
this.printProcessing = false;
|
|
33288
|
+
return; // Stop processing other files if it's a hub driver issue
|
|
33289
|
+
}
|
|
33290
|
+
// Continue with the next file
|
|
33191
33291
|
}
|
|
33192
33292
|
}
|
|
33193
33293
|
// Determine final status based on results
|
|
@@ -33227,6 +33327,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33227
33327
|
if (data.code === 804) {
|
|
33228
33328
|
throw new Error(`Print failed for file: ${file.name}`);
|
|
33229
33329
|
}
|
|
33330
|
+
// Check for hub printer driver errors
|
|
33331
|
+
if (this.selectedPrinter.is_queue &&
|
|
33332
|
+
(data.code === 412 || data.code === 500 || data.code === 503)) {
|
|
33333
|
+
throw new Error(`Hub printer driver error for file: ${file.name}`);
|
|
33334
|
+
}
|
|
33230
33335
|
if (data.jobid) {
|
|
33231
33336
|
printStore.state.jobID = data.jobid;
|
|
33232
33337
|
// Wait for this print job to complete before processing the next file
|
|
@@ -33263,6 +33368,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33263
33368
|
// Failure
|
|
33264
33369
|
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
33265
33370
|
}
|
|
33371
|
+
else if (this.selectedPrinter.is_queue &&
|
|
33372
|
+
(data.jobstatus === 412 || data.jobstatus === 500 || data.jobstatus === 503)) {
|
|
33373
|
+
// Hub printer driver error
|
|
33374
|
+
throw new Error('Hub printer driver error: ' + (data.jobstatusstring || data.jobstatus));
|
|
33375
|
+
}
|
|
33266
33376
|
else {
|
|
33267
33377
|
// Unknown status, treat as failure for safety
|
|
33268
33378
|
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
@@ -33429,7 +33539,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33429
33539
|
? this.partialSuccess
|
|
33430
33540
|
? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
|
|
33431
33541
|
: `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
|
|
33432
|
-
: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
|
|
33542
|
+
: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.hubDriverError ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "hub-driver-error", close: true, retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
|
|
33433
33543
|
? this.files && this.files.length > 1
|
|
33434
33544
|
? i18next.t('printer_selection.files_selected', { count: this.files.length })
|
|
33435
33545
|
: this.filename
|
|
@@ -34241,7 +34351,7 @@ const EzpIcon = /*@__PURE__*/proxyCustomElement(EzpIcon$1, [1,"ezp-icon",{"name"
|
|
|
34241
34351
|
const EzpIconButton = /*@__PURE__*/proxyCustomElement(EzpIconButton$1, [1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}]);
|
|
34242
34352
|
const EzpInput = /*@__PURE__*/proxyCustomElement(EzpInput$1, [1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}]);
|
|
34243
34353
|
const EzpLabel = /*@__PURE__*/proxyCustomElement(EzpLabel$1, [1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]);
|
|
34244
|
-
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],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[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],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
|
|
34354
|
+
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],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
|
|
34245
34355
|
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],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]]);
|
|
34246
34356
|
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]}]);
|
|
34247
34357
|
const EzpStatus = /*@__PURE__*/proxyCustomElement(EzpStatus$1, [1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}]);
|
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_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[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],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{"selectedFiles":[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-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[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_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{"selectedFiles":[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-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[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
|
});
|
|
@@ -32811,6 +32811,7 @@ let EzpPrinterSelection = class {
|
|
|
32811
32811
|
this.printFailed = false;
|
|
32812
32812
|
this.notSupported = false;
|
|
32813
32813
|
this.noPrinters = false;
|
|
32814
|
+
this.hubDriverError = false;
|
|
32814
32815
|
this.userMenuOpen = false;
|
|
32815
32816
|
this.printStopped = false;
|
|
32816
32817
|
this.selectedPrinterConfig = {
|
|
@@ -32860,18 +32861,55 @@ let EzpPrinterSelection = class {
|
|
|
32860
32861
|
this.failedFiles = [];
|
|
32861
32862
|
this.successfulFiles = [];
|
|
32862
32863
|
this.partialSuccess = false;
|
|
32864
|
+
this.hubDriverError = false;
|
|
32863
32865
|
this.printCancel.emit();
|
|
32864
32866
|
};
|
|
32865
32867
|
this.validateData = (data) => {
|
|
32866
|
-
|
|
32867
|
-
|
|
32868
|
+
console.log('[validateData] Checking data:', data);
|
|
32869
|
+
const { jobstatus } = data;
|
|
32870
|
+
// Define status handlers
|
|
32871
|
+
const statusHandlers = {
|
|
32872
|
+
0: () => {
|
|
32873
|
+
// Success
|
|
32874
|
+
this.printSuccess = true;
|
|
32875
|
+
this.printProcessing = false;
|
|
32876
|
+
return true;
|
|
32877
|
+
},
|
|
32878
|
+
1246: () => false,
|
|
32879
|
+
129: () => false,
|
|
32880
|
+
3011: () => {
|
|
32881
|
+
// Failure
|
|
32882
|
+
this.printFailed = true;
|
|
32883
|
+
this.printProcessing = false;
|
|
32884
|
+
return true;
|
|
32885
|
+
},
|
|
32886
|
+
2: () => {
|
|
32887
|
+
// Failure
|
|
32888
|
+
this.printFailed = true;
|
|
32889
|
+
this.printProcessing = false;
|
|
32890
|
+
return true;
|
|
32891
|
+
},
|
|
32892
|
+
};
|
|
32893
|
+
// Check for hub printer driver errors
|
|
32894
|
+
const hubDriverErrorCodes = [412, 500, 503, 1048579];
|
|
32895
|
+
if (hubDriverErrorCodes.includes(jobstatus) && this.selectedPrinter.is_queue) {
|
|
32896
|
+
this.hubDriverError = true;
|
|
32868
32897
|
this.printProcessing = false;
|
|
32869
32898
|
return true;
|
|
32870
32899
|
}
|
|
32871
|
-
|
|
32900
|
+
// Use handler if exists, otherwise treat as failure
|
|
32901
|
+
const handler = statusHandlers[jobstatus];
|
|
32902
|
+
if (handler) {
|
|
32903
|
+
return handler();
|
|
32904
|
+
}
|
|
32905
|
+
// Unknown status, treat as failure for safety
|
|
32906
|
+
this.printFailed = true;
|
|
32907
|
+
this.printProcessing = false;
|
|
32908
|
+
return true;
|
|
32872
32909
|
};
|
|
32873
32910
|
this.POLL_INTERVAL = 2000;
|
|
32874
32911
|
this.MAX_POLL_ATTEMPTS = Infinity;
|
|
32912
|
+
this.HUB_TIMEOUT = 30000; // 30 seconds timeout for hub printers
|
|
32875
32913
|
/** Description... */
|
|
32876
32914
|
this.handlePrint = async () => {
|
|
32877
32915
|
this.printButton.blur();
|
|
@@ -32879,6 +32917,16 @@ let EzpPrinterSelection = class {
|
|
|
32879
32917
|
this.failedFiles = [];
|
|
32880
32918
|
this.successfulFiles = [];
|
|
32881
32919
|
this.partialSuccess = false;
|
|
32920
|
+
this.hubDriverError = false;
|
|
32921
|
+
// Set up timeout for hub printers to prevent infinite loading
|
|
32922
|
+
let hubTimeout;
|
|
32923
|
+
if (this.selectedPrinter.is_queue) {
|
|
32924
|
+
hubTimeout = setTimeout(() => {
|
|
32925
|
+
console.log('[handlePrint] Hub printer timeout reached, setting driver error');
|
|
32926
|
+
this.hubDriverError = true;
|
|
32927
|
+
this.printProcessing = false;
|
|
32928
|
+
}, this.HUB_TIMEOUT);
|
|
32929
|
+
}
|
|
32882
32930
|
// we have to initialse this obj with empty strings to display the select component
|
|
32883
32931
|
// but don't want to send any attributes with empty strings to the API
|
|
32884
32932
|
if (this.selectedPrinterConfig.Trays &&
|
|
@@ -32905,6 +32953,8 @@ let EzpPrinterSelection = class {
|
|
|
32905
32953
|
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
32906
32954
|
this.printProcessing = false;
|
|
32907
32955
|
this.printSuccess = true;
|
|
32956
|
+
if (hubTimeout)
|
|
32957
|
+
clearTimeout(hubTimeout);
|
|
32908
32958
|
}
|
|
32909
32959
|
if (response.status === 412) {
|
|
32910
32960
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
@@ -32918,8 +32968,19 @@ let EzpPrinterSelection = class {
|
|
|
32918
32968
|
if (data.code === 804) {
|
|
32919
32969
|
this.printFailed = true;
|
|
32920
32970
|
this.printProcessing = false;
|
|
32971
|
+
if (hubTimeout)
|
|
32972
|
+
clearTimeout(hubTimeout);
|
|
32973
|
+
}
|
|
32974
|
+
else if (this.selectedPrinter.is_queue &&
|
|
32975
|
+
(data.code === 412 || data.code === 500 || data.code === 503 || data.code === 1048579)) {
|
|
32976
|
+
// Hub printer specific errors - likely driver not assigned
|
|
32977
|
+
console.log('[handlePrint] Hub printer driver error detected:', data);
|
|
32978
|
+
this.hubDriverError = true;
|
|
32979
|
+
this.printProcessing = false;
|
|
32980
|
+
if (hubTimeout)
|
|
32981
|
+
clearTimeout(hubTimeout);
|
|
32921
32982
|
}
|
|
32922
|
-
if (data.jobid) {
|
|
32983
|
+
else if (data.jobid) {
|
|
32923
32984
|
printStore.state.jobID = data.jobid;
|
|
32924
32985
|
poll({
|
|
32925
32986
|
fn: this.printService.getPrintStatus,
|
|
@@ -32927,27 +32988,55 @@ let EzpPrinterSelection = class {
|
|
|
32927
32988
|
interval: this.POLL_INTERVAL,
|
|
32928
32989
|
maxAttempts: this.MAX_POLL_ATTEMPTS,
|
|
32929
32990
|
}).catch((err) => {
|
|
32930
|
-
console.warn(err);
|
|
32931
|
-
this
|
|
32991
|
+
console.warn('[handlePrint] Polling error:', err);
|
|
32992
|
+
// Check if this is a hub printer and the error might be driver-related
|
|
32993
|
+
if (this.selectedPrinter.is_queue) {
|
|
32994
|
+
this.hubDriverError = true;
|
|
32995
|
+
}
|
|
32996
|
+
else {
|
|
32997
|
+
this.printFailed = true;
|
|
32998
|
+
}
|
|
32932
32999
|
this.printProcessing = false;
|
|
33000
|
+
if (hubTimeout)
|
|
33001
|
+
clearTimeout(hubTimeout);
|
|
32933
33002
|
});
|
|
32934
33003
|
}
|
|
32935
33004
|
else {
|
|
32936
|
-
|
|
33005
|
+
// No job ID returned - check if it's a hub printer
|
|
33006
|
+
if (this.selectedPrinter.is_queue) {
|
|
33007
|
+
this.hubDriverError = true;
|
|
33008
|
+
}
|
|
33009
|
+
else {
|
|
33010
|
+
this.printFailed = true;
|
|
33011
|
+
}
|
|
32937
33012
|
this.printProcessing = false;
|
|
33013
|
+
if (hubTimeout)
|
|
33014
|
+
clearTimeout(hubTimeout);
|
|
32938
33015
|
}
|
|
32939
33016
|
})
|
|
32940
33017
|
.catch((error) => {
|
|
32941
|
-
console.log(error);
|
|
32942
|
-
this
|
|
33018
|
+
console.log('[handlePrint] Error caught:', error);
|
|
33019
|
+
// Check if this is a hub printer and the error might be driver-related
|
|
33020
|
+
if (this.selectedPrinter.is_queue) {
|
|
33021
|
+
this.hubDriverError = true;
|
|
33022
|
+
}
|
|
33023
|
+
else {
|
|
33024
|
+
this.printFailed = true;
|
|
33025
|
+
}
|
|
32943
33026
|
this.printProcessing = false;
|
|
33027
|
+
if (hubTimeout)
|
|
33028
|
+
clearTimeout(hubTimeout);
|
|
32944
33029
|
});
|
|
32945
33030
|
}
|
|
32946
33031
|
else if (this.files && this.files.length > 1) {
|
|
32947
33032
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
33033
|
+
if (hubTimeout)
|
|
33034
|
+
clearTimeout(hubTimeout);
|
|
32948
33035
|
}
|
|
32949
33036
|
else if (this.files && this.files.length === 1) {
|
|
32950
33037
|
await this.processSingleFile(this.files[0], cleanPrintProperties);
|
|
33038
|
+
if (hubTimeout)
|
|
33039
|
+
clearTimeout(hubTimeout);
|
|
32951
33040
|
}
|
|
32952
33041
|
localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
|
|
32953
33042
|
localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
|
|
@@ -33001,12 +33090,12 @@ let EzpPrinterSelection = class {
|
|
|
33001
33090
|
this.printCancel.emit();
|
|
33002
33091
|
break;
|
|
33003
33092
|
case 'print-failed':
|
|
33004
|
-
this.printProcessing = false;
|
|
33005
33093
|
this.printFailed = false;
|
|
33006
|
-
this.failedFiles = [];
|
|
33007
|
-
this.successfulFiles = [];
|
|
33008
33094
|
break;
|
|
33009
|
-
case '
|
|
33095
|
+
case 'hub-driver-error':
|
|
33096
|
+
this.hubDriverError = false;
|
|
33097
|
+
break;
|
|
33098
|
+
case 'not-supported':
|
|
33010
33099
|
this.noPrinters = false;
|
|
33011
33100
|
break;
|
|
33012
33101
|
}
|
|
@@ -33021,6 +33110,11 @@ let EzpPrinterSelection = class {
|
|
|
33021
33110
|
this.printProcessing = false;
|
|
33022
33111
|
this.handlePrint();
|
|
33023
33112
|
break;
|
|
33113
|
+
case 'hub-driver-error':
|
|
33114
|
+
this.hubDriverError = false;
|
|
33115
|
+
this.printProcessing = false;
|
|
33116
|
+
this.handlePrint();
|
|
33117
|
+
break;
|
|
33024
33118
|
}
|
|
33025
33119
|
}
|
|
33026
33120
|
getPropertiesFromLocalStorage() {
|
|
@@ -33158,7 +33252,13 @@ let EzpPrinterSelection = class {
|
|
|
33158
33252
|
catch (error) {
|
|
33159
33253
|
console.error(`Error processing file ${file.name}:`, error);
|
|
33160
33254
|
this.failedFiles.push(file.name);
|
|
33161
|
-
//
|
|
33255
|
+
// Check if this is a hub driver error
|
|
33256
|
+
if (error.message && error.message.includes('Hub printer driver error')) {
|
|
33257
|
+
this.hubDriverError = true;
|
|
33258
|
+
this.printProcessing = false;
|
|
33259
|
+
return; // Stop processing other files if it's a hub driver issue
|
|
33260
|
+
}
|
|
33261
|
+
// Continue with the next file
|
|
33162
33262
|
}
|
|
33163
33263
|
}
|
|
33164
33264
|
// Determine final status based on results
|
|
@@ -33198,6 +33298,11 @@ let EzpPrinterSelection = class {
|
|
|
33198
33298
|
if (data.code === 804) {
|
|
33199
33299
|
throw new Error(`Print failed for file: ${file.name}`);
|
|
33200
33300
|
}
|
|
33301
|
+
// Check for hub printer driver errors
|
|
33302
|
+
if (this.selectedPrinter.is_queue &&
|
|
33303
|
+
(data.code === 412 || data.code === 500 || data.code === 503)) {
|
|
33304
|
+
throw new Error(`Hub printer driver error for file: ${file.name}`);
|
|
33305
|
+
}
|
|
33201
33306
|
if (data.jobid) {
|
|
33202
33307
|
printStore.state.jobID = data.jobid;
|
|
33203
33308
|
// Wait for this print job to complete before processing the next file
|
|
@@ -33234,6 +33339,11 @@ let EzpPrinterSelection = class {
|
|
|
33234
33339
|
// Failure
|
|
33235
33340
|
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
33236
33341
|
}
|
|
33342
|
+
else if (this.selectedPrinter.is_queue &&
|
|
33343
|
+
(data.jobstatus === 412 || data.jobstatus === 500 || data.jobstatus === 503)) {
|
|
33344
|
+
// Hub printer driver error
|
|
33345
|
+
throw new Error('Hub printer driver error: ' + (data.jobstatusstring || data.jobstatus));
|
|
33346
|
+
}
|
|
33237
33347
|
else {
|
|
33238
33348
|
// Unknown status, treat as failure for safety
|
|
33239
33349
|
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
@@ -33400,7 +33510,7 @@ let EzpPrinterSelection = class {
|
|
|
33400
33510
|
? this.partialSuccess
|
|
33401
33511
|
? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} ${i18next.t('printer_selection.files')} - ${this.failedFiles.length} failed`
|
|
33402
33512
|
: `${i18next.t('printer_selection.print_success')} (${this.totalFiles} ${i18next.t('printer_selection.files')})`
|
|
33403
|
-
: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
|
|
33513
|
+
: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.hubDriverError ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "hub-driver-error", close: true, retry: true })) : this.noPrinters ? (h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
|
|
33404
33514
|
? this.files && this.files.length > 1
|
|
33405
33515
|
? i18next.t('printer_selection.files_selected', { count: this.files.length })
|
|
33406
33516
|
: this.filename
|
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_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[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],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{"selectedFiles":[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-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[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_15",[[1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"hubDriverError":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{"selectedFiles":[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-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[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-3ac1b749.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_15",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],files:[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],files:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],pageRangeInvalid:[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],paperid:[32],currentFileIndex:[32],totalFiles:[32],failedFiles:[32],successfulFiles:[32],partialSuccess:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{selectedFiles:[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-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],eventType:[1,"event-type"],placeholder:[1],focused:[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-3ac1b749.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_15",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],hideheader:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],seamless:[4],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],files:[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"],[0,"logout","listenLogout"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],files:[16],hidemenu:[4],hideheader:[4],seamless:[4],loading:[32],printProcessing:[32],pageRangeInvalid:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],hubDriverError:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32],paperid:[32],currentFileIndex:[32],totalFiles:[32],failedFiles:[32],successfulFiles:[32],partialSuccess:[32]},[[0,"inputValueChanged","listenInputValueChanged"],[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",{selectedFiles:[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-input",{label:[1],value:[1032],type:[1],icon:[1],suffix:[513],eventType:[1,"event-type"],placeholder:[1],focused:[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)}));
|