@ezeep/ezeep-js 1.0.239 → 1.0.240
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/ezp-auth_15.cjs.entry.js +24 -27
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +24 -27
- package/dist/custom-elements/index.js +24 -27
- package/dist/esm/ezp-auth_15.entry.js +24 -27
- package/dist/esm-es5/ezp-auth_15.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/ezeep/{p-69fc0c9c.entry.js → p-c6949ecf.entry.js} +1 -1
- package/dist/ezeep/{p-0afb1821.system.entry.js → p-d2371955.system.entry.js} +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-84bd195a.system.js +1 -1
- package/www/build/{p-69fc0c9c.entry.js → p-c6949ecf.entry.js} +1 -1
- package/www/build/{p-0afb1821.system.entry.js → p-d2371955.system.entry.js} +1 -1
|
@@ -32947,7 +32947,7 @@ let EzpPrinterSelection = class {
|
|
|
32947
32947
|
this.printProcessing = false;
|
|
32948
32948
|
});
|
|
32949
32949
|
}
|
|
32950
|
-
if (this.files && this.files.length > 1) {
|
|
32950
|
+
else if (this.files && this.files.length > 1) {
|
|
32951
32951
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
32952
32952
|
}
|
|
32953
32953
|
else if (this.files && this.files.length === 1) {
|
|
@@ -33222,34 +33222,31 @@ let EzpPrinterSelection = class {
|
|
|
33222
33222
|
this.uploading = false;
|
|
33223
33223
|
}
|
|
33224
33224
|
async waitForPrintCompletion() {
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
|
|
33228
|
-
|
|
33229
|
-
|
|
33230
|
-
|
|
33231
|
-
|
|
33232
|
-
resolve();
|
|
33233
|
-
}
|
|
33234
|
-
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33235
|
-
// Still processing, keep polling
|
|
33236
|
-
setTimeout(poll, this.POLL_INTERVAL);
|
|
33237
|
-
}
|
|
33238
|
-
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33239
|
-
// Failure
|
|
33240
|
-
reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
|
|
33241
|
-
}
|
|
33242
|
-
else {
|
|
33243
|
-
// Unknown status, treat as failure for safety
|
|
33244
|
-
reject(new Error('Unknown print job status: ' + data.jobstatus));
|
|
33245
|
-
}
|
|
33225
|
+
while (true) {
|
|
33226
|
+
try {
|
|
33227
|
+
const data = await this.printService.getPrintStatus();
|
|
33228
|
+
console.log('[waitForPrintCompletion] Poll response:', data);
|
|
33229
|
+
if (data.jobstatus === 0) {
|
|
33230
|
+
// Success
|
|
33231
|
+
return;
|
|
33246
33232
|
}
|
|
33247
|
-
|
|
33248
|
-
|
|
33233
|
+
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33234
|
+
// Still processing, wait before next poll
|
|
33235
|
+
await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
|
|
33249
33236
|
}
|
|
33250
|
-
|
|
33251
|
-
|
|
33252
|
-
|
|
33237
|
+
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33238
|
+
// Failure
|
|
33239
|
+
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
33240
|
+
}
|
|
33241
|
+
else {
|
|
33242
|
+
// Unknown status, treat as failure for safety
|
|
33243
|
+
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
33244
|
+
}
|
|
33245
|
+
}
|
|
33246
|
+
catch (error) {
|
|
33247
|
+
throw error;
|
|
33248
|
+
}
|
|
33249
|
+
}
|
|
33253
33250
|
}
|
|
33254
33251
|
getFileExtension(filename) {
|
|
33255
33252
|
const extension = filename.split('.').pop();
|
|
@@ -180,7 +180,7 @@ export class EzpPrinterSelection {
|
|
|
180
180
|
this.printProcessing = false;
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
if (this.files && this.files.length > 1) {
|
|
183
|
+
else if (this.files && this.files.length > 1) {
|
|
184
184
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
185
185
|
}
|
|
186
186
|
else if (this.files && this.files.length === 1) {
|
|
@@ -457,34 +457,31 @@ export class EzpPrinterSelection {
|
|
|
457
457
|
this.uploading = false;
|
|
458
458
|
}
|
|
459
459
|
async waitForPrintCompletion() {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
resolve();
|
|
468
|
-
}
|
|
469
|
-
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
470
|
-
// Still processing, keep polling
|
|
471
|
-
setTimeout(poll, this.POLL_INTERVAL);
|
|
472
|
-
}
|
|
473
|
-
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
474
|
-
// Failure
|
|
475
|
-
reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
// Unknown status, treat as failure for safety
|
|
479
|
-
reject(new Error('Unknown print job status: ' + data.jobstatus));
|
|
480
|
-
}
|
|
460
|
+
while (true) {
|
|
461
|
+
try {
|
|
462
|
+
const data = await this.printService.getPrintStatus();
|
|
463
|
+
console.log('[waitForPrintCompletion] Poll response:', data);
|
|
464
|
+
if (data.jobstatus === 0) {
|
|
465
|
+
// Success
|
|
466
|
+
return;
|
|
481
467
|
}
|
|
482
|
-
|
|
483
|
-
|
|
468
|
+
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
469
|
+
// Still processing, wait before next poll
|
|
470
|
+
await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
|
|
484
471
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
472
|
+
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
473
|
+
// Failure
|
|
474
|
+
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
// Unknown status, treat as failure for safety
|
|
478
|
+
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
throw error;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
488
485
|
}
|
|
489
486
|
getFileExtension(filename) {
|
|
490
487
|
const extension = filename.split('.').pop();
|
|
@@ -32972,7 +32972,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32972
32972
|
this.printProcessing = false;
|
|
32973
32973
|
});
|
|
32974
32974
|
}
|
|
32975
|
-
if (this.files && this.files.length > 1) {
|
|
32975
|
+
else if (this.files && this.files.length > 1) {
|
|
32976
32976
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
32977
32977
|
}
|
|
32978
32978
|
else if (this.files && this.files.length === 1) {
|
|
@@ -33247,34 +33247,31 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33247
33247
|
this.uploading = false;
|
|
33248
33248
|
}
|
|
33249
33249
|
async waitForPrintCompletion() {
|
|
33250
|
-
|
|
33251
|
-
|
|
33252
|
-
|
|
33253
|
-
|
|
33254
|
-
|
|
33255
|
-
|
|
33256
|
-
|
|
33257
|
-
resolve();
|
|
33258
|
-
}
|
|
33259
|
-
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33260
|
-
// Still processing, keep polling
|
|
33261
|
-
setTimeout(poll, this.POLL_INTERVAL);
|
|
33262
|
-
}
|
|
33263
|
-
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33264
|
-
// Failure
|
|
33265
|
-
reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
|
|
33266
|
-
}
|
|
33267
|
-
else {
|
|
33268
|
-
// Unknown status, treat as failure for safety
|
|
33269
|
-
reject(new Error('Unknown print job status: ' + data.jobstatus));
|
|
33270
|
-
}
|
|
33250
|
+
while (true) {
|
|
33251
|
+
try {
|
|
33252
|
+
const data = await this.printService.getPrintStatus();
|
|
33253
|
+
console.log('[waitForPrintCompletion] Poll response:', data);
|
|
33254
|
+
if (data.jobstatus === 0) {
|
|
33255
|
+
// Success
|
|
33256
|
+
return;
|
|
33271
33257
|
}
|
|
33272
|
-
|
|
33273
|
-
|
|
33258
|
+
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33259
|
+
// Still processing, wait before next poll
|
|
33260
|
+
await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
|
|
33274
33261
|
}
|
|
33275
|
-
|
|
33276
|
-
|
|
33277
|
-
|
|
33262
|
+
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33263
|
+
// Failure
|
|
33264
|
+
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
33265
|
+
}
|
|
33266
|
+
else {
|
|
33267
|
+
// Unknown status, treat as failure for safety
|
|
33268
|
+
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
33269
|
+
}
|
|
33270
|
+
}
|
|
33271
|
+
catch (error) {
|
|
33272
|
+
throw error;
|
|
33273
|
+
}
|
|
33274
|
+
}
|
|
33278
33275
|
}
|
|
33279
33276
|
getFileExtension(filename) {
|
|
33280
33277
|
const extension = filename.split('.').pop();
|
|
@@ -32943,7 +32943,7 @@ let EzpPrinterSelection = class {
|
|
|
32943
32943
|
this.printProcessing = false;
|
|
32944
32944
|
});
|
|
32945
32945
|
}
|
|
32946
|
-
if (this.files && this.files.length > 1) {
|
|
32946
|
+
else if (this.files && this.files.length > 1) {
|
|
32947
32947
|
await this.processMultipleFiles(this.files, cleanPrintProperties);
|
|
32948
32948
|
}
|
|
32949
32949
|
else if (this.files && this.files.length === 1) {
|
|
@@ -33218,34 +33218,31 @@ let EzpPrinterSelection = class {
|
|
|
33218
33218
|
this.uploading = false;
|
|
33219
33219
|
}
|
|
33220
33220
|
async waitForPrintCompletion() {
|
|
33221
|
-
|
|
33222
|
-
|
|
33223
|
-
|
|
33224
|
-
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
|
|
33228
|
-
resolve();
|
|
33229
|
-
}
|
|
33230
|
-
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33231
|
-
// Still processing, keep polling
|
|
33232
|
-
setTimeout(poll, this.POLL_INTERVAL);
|
|
33233
|
-
}
|
|
33234
|
-
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33235
|
-
// Failure
|
|
33236
|
-
reject(new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus)));
|
|
33237
|
-
}
|
|
33238
|
-
else {
|
|
33239
|
-
// Unknown status, treat as failure for safety
|
|
33240
|
-
reject(new Error('Unknown print job status: ' + data.jobstatus));
|
|
33241
|
-
}
|
|
33221
|
+
while (true) {
|
|
33222
|
+
try {
|
|
33223
|
+
const data = await this.printService.getPrintStatus();
|
|
33224
|
+
console.log('[waitForPrintCompletion] Poll response:', data);
|
|
33225
|
+
if (data.jobstatus === 0) {
|
|
33226
|
+
// Success
|
|
33227
|
+
return;
|
|
33242
33228
|
}
|
|
33243
|
-
|
|
33244
|
-
|
|
33229
|
+
else if (data.jobstatus === 1246 || data.jobstatus === 129) {
|
|
33230
|
+
// Still processing, wait before next poll
|
|
33231
|
+
await new Promise((resolve) => setTimeout(resolve, this.POLL_INTERVAL));
|
|
33245
33232
|
}
|
|
33246
|
-
|
|
33247
|
-
|
|
33248
|
-
|
|
33233
|
+
else if (data.jobstatus === 3011 || data.jobstatus === 2) {
|
|
33234
|
+
// Failure
|
|
33235
|
+
throw new Error('Print job failed: ' + (data.jobstatusstring || data.jobstatus));
|
|
33236
|
+
}
|
|
33237
|
+
else {
|
|
33238
|
+
// Unknown status, treat as failure for safety
|
|
33239
|
+
throw new Error('Unknown print job status: ' + data.jobstatus);
|
|
33240
|
+
}
|
|
33241
|
+
}
|
|
33242
|
+
catch (error) {
|
|
33243
|
+
throw error;
|
|
33244
|
+
}
|
|
33245
|
+
}
|
|
33249
33246
|
}
|
|
33250
33247
|
getFileExtension(filename) {
|
|
33251
33248
|
const extension = filename.split('.').pop();
|