@ezeep/ezeep-js 1.0.235 → 1.0.237
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 +11 -0
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +2 -0
- package/dist/collection/services/print.js +9 -0
- package/dist/custom-elements/index.js +11 -0
- package/dist/esm/ezp-auth_15.entry.js +11 -0
- package/dist/esm-es5/ezp-auth_15.entry.js +3 -3
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-d89d8671.system.entry.js → p-62b9b554.system.entry.js} +1 -1
- package/dist/ezeep/{p-9e3d9e95.entry.js → p-7b589922.entry.js} +1 -1
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/types/services/print.d.ts +2 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-d89d8671.system.entry.js → p-62b9b554.system.entry.js} +1 -1
- package/www/build/{p-9e3d9e95.entry.js → p-7b589922.entry.js} +1 -1
- package/www/build/p-84bd195a.system.js +1 -1
|
@@ -32571,6 +32571,7 @@ class PageBlobClient extends BlobClient {
|
|
|
32571
32571
|
|
|
32572
32572
|
class EzpPrintService {
|
|
32573
32573
|
constructor(redirectURI, clientID) {
|
|
32574
|
+
this.abortController = null;
|
|
32574
32575
|
this.getPrintStatus = () => {
|
|
32575
32576
|
return fetch(`https://${this.printingApi}/sfapi/Status/?id=${encodeURIComponent(printStore.state.jobID)}`, {
|
|
32576
32577
|
headers: {
|
|
@@ -32659,6 +32660,7 @@ class EzpPrintService {
|
|
|
32659
32660
|
});
|
|
32660
32661
|
}
|
|
32661
32662
|
printFileByUrl(accessToken, fileUrl, fileType, printerID, properties, filename, printAndDelete) {
|
|
32663
|
+
this.abortController = new AbortController();
|
|
32662
32664
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32663
32665
|
method: 'POST',
|
|
32664
32666
|
headers: {
|
|
@@ -32666,8 +32668,15 @@ class EzpPrintService {
|
|
|
32666
32668
|
'Content-Type': 'application/json',
|
|
32667
32669
|
},
|
|
32668
32670
|
body: JSON.stringify(Object.assign(Object.assign(Object.assign({ fileurl: fileUrl, type: fileType, printerid: printerID }, (filename && { alias: filename })), (printAndDelete && { printanddelete: printAndDelete })), { properties })),
|
|
32671
|
+
signal: this.abortController.signal
|
|
32669
32672
|
});
|
|
32670
32673
|
}
|
|
32674
|
+
abortPrint() {
|
|
32675
|
+
if (this.abortController) {
|
|
32676
|
+
this.abortController.abort();
|
|
32677
|
+
this.abortController = null;
|
|
32678
|
+
}
|
|
32679
|
+
}
|
|
32671
32680
|
printByFileID(accessToken, fileID, fileType, printerID, properties, filename, printAndDelete) {
|
|
32672
32681
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32673
32682
|
method: 'POST',
|
|
@@ -32963,6 +32972,8 @@ let EzpPrinterSelection = class {
|
|
|
32963
32972
|
if (event.detail === 'print-processing') {
|
|
32964
32973
|
this.printStopped = true;
|
|
32965
32974
|
this.printProcessing = false;
|
|
32975
|
+
// Abort the print request
|
|
32976
|
+
this.printService.abortPrint();
|
|
32966
32977
|
}
|
|
32967
32978
|
}
|
|
32968
32979
|
listenStatusClose(event) {
|
|
@@ -209,6 +209,8 @@ export class EzpPrinterSelection {
|
|
|
209
209
|
if (event.detail === 'print-processing') {
|
|
210
210
|
this.printStopped = true;
|
|
211
211
|
this.printProcessing = false;
|
|
212
|
+
// Abort the print request
|
|
213
|
+
this.printService.abortPrint();
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
216
|
listenStatusClose(event) {
|
|
@@ -4,6 +4,7 @@ import fetchIntercept from 'fetch-intercept';
|
|
|
4
4
|
import { AnonymousCredential, BlockBlobClient, newPipeline } from '@azure/storage-blob';
|
|
5
5
|
export class EzpPrintService {
|
|
6
6
|
constructor(redirectURI, clientID) {
|
|
7
|
+
this.abortController = null;
|
|
7
8
|
this.getPrintStatus = () => {
|
|
8
9
|
return fetch(`https://${this.printingApi}/sfapi/Status/?id=${encodeURIComponent(printStore.state.jobID)}`, {
|
|
9
10
|
headers: {
|
|
@@ -92,6 +93,7 @@ export class EzpPrintService {
|
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
printFileByUrl(accessToken, fileUrl, fileType, printerID, properties, filename, printAndDelete) {
|
|
96
|
+
this.abortController = new AbortController();
|
|
95
97
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
96
98
|
method: 'POST',
|
|
97
99
|
headers: {
|
|
@@ -99,8 +101,15 @@ export class EzpPrintService {
|
|
|
99
101
|
'Content-Type': 'application/json',
|
|
100
102
|
},
|
|
101
103
|
body: JSON.stringify(Object.assign(Object.assign(Object.assign({ fileurl: fileUrl, type: fileType, printerid: printerID }, (filename && { alias: filename })), (printAndDelete && { printanddelete: printAndDelete })), { properties })),
|
|
104
|
+
signal: this.abortController.signal
|
|
102
105
|
});
|
|
103
106
|
}
|
|
107
|
+
abortPrint() {
|
|
108
|
+
if (this.abortController) {
|
|
109
|
+
this.abortController.abort();
|
|
110
|
+
this.abortController = null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
104
113
|
printByFileID(accessToken, fileID, fileType, printerID, properties, filename, printAndDelete) {
|
|
105
114
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
106
115
|
method: 'POST',
|
|
@@ -32594,6 +32594,7 @@ class PageBlobClient extends BlobClient {
|
|
|
32594
32594
|
|
|
32595
32595
|
class EzpPrintService {
|
|
32596
32596
|
constructor(redirectURI, clientID) {
|
|
32597
|
+
this.abortController = null;
|
|
32597
32598
|
this.getPrintStatus = () => {
|
|
32598
32599
|
return fetch(`https://${this.printingApi}/sfapi/Status/?id=${encodeURIComponent(printStore.state.jobID)}`, {
|
|
32599
32600
|
headers: {
|
|
@@ -32682,6 +32683,7 @@ class EzpPrintService {
|
|
|
32682
32683
|
});
|
|
32683
32684
|
}
|
|
32684
32685
|
printFileByUrl(accessToken, fileUrl, fileType, printerID, properties, filename, printAndDelete) {
|
|
32686
|
+
this.abortController = new AbortController();
|
|
32685
32687
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32686
32688
|
method: 'POST',
|
|
32687
32689
|
headers: {
|
|
@@ -32689,8 +32691,15 @@ class EzpPrintService {
|
|
|
32689
32691
|
'Content-Type': 'application/json',
|
|
32690
32692
|
},
|
|
32691
32693
|
body: JSON.stringify(Object.assign(Object.assign(Object.assign({ fileurl: fileUrl, type: fileType, printerid: printerID }, (filename && { alias: filename })), (printAndDelete && { printanddelete: printAndDelete })), { properties })),
|
|
32694
|
+
signal: this.abortController.signal
|
|
32692
32695
|
});
|
|
32693
32696
|
}
|
|
32697
|
+
abortPrint() {
|
|
32698
|
+
if (this.abortController) {
|
|
32699
|
+
this.abortController.abort();
|
|
32700
|
+
this.abortController = null;
|
|
32701
|
+
}
|
|
32702
|
+
}
|
|
32694
32703
|
printByFileID(accessToken, fileID, fileType, printerID, properties, filename, printAndDelete) {
|
|
32695
32704
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32696
32705
|
method: 'POST',
|
|
@@ -32988,6 +32997,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32988
32997
|
if (event.detail === 'print-processing') {
|
|
32989
32998
|
this.printStopped = true;
|
|
32990
32999
|
this.printProcessing = false;
|
|
33000
|
+
// Abort the print request
|
|
33001
|
+
this.printService.abortPrint();
|
|
32991
33002
|
}
|
|
32992
33003
|
}
|
|
32993
33004
|
listenStatusClose(event) {
|
|
@@ -32567,6 +32567,7 @@ class PageBlobClient extends BlobClient {
|
|
|
32567
32567
|
|
|
32568
32568
|
class EzpPrintService {
|
|
32569
32569
|
constructor(redirectURI, clientID) {
|
|
32570
|
+
this.abortController = null;
|
|
32570
32571
|
this.getPrintStatus = () => {
|
|
32571
32572
|
return fetch(`https://${this.printingApi}/sfapi/Status/?id=${encodeURIComponent(printStore.state.jobID)}`, {
|
|
32572
32573
|
headers: {
|
|
@@ -32655,6 +32656,7 @@ class EzpPrintService {
|
|
|
32655
32656
|
});
|
|
32656
32657
|
}
|
|
32657
32658
|
printFileByUrl(accessToken, fileUrl, fileType, printerID, properties, filename, printAndDelete) {
|
|
32659
|
+
this.abortController = new AbortController();
|
|
32658
32660
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32659
32661
|
method: 'POST',
|
|
32660
32662
|
headers: {
|
|
@@ -32662,8 +32664,15 @@ class EzpPrintService {
|
|
|
32662
32664
|
'Content-Type': 'application/json',
|
|
32663
32665
|
},
|
|
32664
32666
|
body: JSON.stringify(Object.assign(Object.assign(Object.assign({ fileurl: fileUrl, type: fileType, printerid: printerID }, (filename && { alias: filename })), (printAndDelete && { printanddelete: printAndDelete })), { properties })),
|
|
32667
|
+
signal: this.abortController.signal
|
|
32665
32668
|
});
|
|
32666
32669
|
}
|
|
32670
|
+
abortPrint() {
|
|
32671
|
+
if (this.abortController) {
|
|
32672
|
+
this.abortController.abort();
|
|
32673
|
+
this.abortController = null;
|
|
32674
|
+
}
|
|
32675
|
+
}
|
|
32667
32676
|
printByFileID(accessToken, fileID, fileType, printerID, properties, filename, printAndDelete) {
|
|
32668
32677
|
return fetch(`https://${this.printingApi}/sfapi/Print/`, {
|
|
32669
32678
|
method: 'POST',
|
|
@@ -32959,6 +32968,8 @@ let EzpPrinterSelection = class {
|
|
|
32959
32968
|
if (event.detail === 'print-processing') {
|
|
32960
32969
|
this.printStopped = true;
|
|
32961
32970
|
this.printProcessing = false;
|
|
32971
|
+
// Abort the print request
|
|
32972
|
+
this.printService.abortPrint();
|
|
32962
32973
|
}
|
|
32963
32974
|
}
|
|
32964
32975
|
listenStatusClose(event) {
|