@ezeep/ezeep-js 1.0.171 → 1.0.172
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_14.cjs.entry.js +18 -10
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +18 -10
- package/dist/custom-elements/index.js +18 -10
- package/dist/esm/ezp-auth_14.entry.js +18 -10
- package/dist/esm-es5/ezp-auth_14.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-e1769616.entry.js → p-555a4cd5.entry.js} +1 -1
- package/dist/ezeep/{p-370b0d9a.system.entry.js → p-ad175cb0.system.entry.js} +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-e1769616.entry.js → p-555a4cd5.entry.js} +1 -1
- package/www/build/{p-370b0d9a.system.entry.js → p-ad175cb0.system.entry.js} +1 -1
|
@@ -32827,7 +32827,15 @@ let EzpPrinterSelection = class {
|
|
|
32827
32827
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32828
32828
|
}
|
|
32829
32829
|
if (localStorage.getItem('printer')) {
|
|
32830
|
-
|
|
32830
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32831
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
32832
|
+
this.selectedPrinter = savedPrinter;
|
|
32833
|
+
}
|
|
32834
|
+
else {
|
|
32835
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32836
|
+
localStorage.removeItem('printer');
|
|
32837
|
+
localStorage.removeItem('properties');
|
|
32838
|
+
}
|
|
32831
32839
|
}
|
|
32832
32840
|
else {
|
|
32833
32841
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32963,10 +32971,18 @@ let EzpPrinterSelection = class {
|
|
|
32963
32971
|
*/
|
|
32964
32972
|
/** Description... */
|
|
32965
32973
|
async connectedCallback() {
|
|
32966
|
-
this.getPropertiesFromLocalStorage();
|
|
32967
32974
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32968
32975
|
this.printService.registerFetchInterceptor();
|
|
32969
32976
|
await this.getUserInfo();
|
|
32977
|
+
await this.printService
|
|
32978
|
+
.getPrinterList(authStore.state.accessToken)
|
|
32979
|
+
.then((printers) => {
|
|
32980
|
+
this.printers = printers;
|
|
32981
|
+
if (!(this.printers.length > 0)) {
|
|
32982
|
+
this.noPrinters = true;
|
|
32983
|
+
}
|
|
32984
|
+
});
|
|
32985
|
+
this.getPropertiesFromLocalStorage();
|
|
32970
32986
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32971
32987
|
if (this.selectedPrinter.id != '') {
|
|
32972
32988
|
await this.printService
|
|
@@ -32981,14 +32997,6 @@ let EzpPrinterSelection = class {
|
|
|
32981
32997
|
.then((response) => {
|
|
32982
32998
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
32983
32999
|
});
|
|
32984
|
-
await this.printService
|
|
32985
|
-
.getPrinterList(authStore.state.accessToken)
|
|
32986
|
-
.then((printers) => {
|
|
32987
|
-
this.printers = printers;
|
|
32988
|
-
if (!(this.printers.length > 0)) {
|
|
32989
|
-
this.noPrinters = true;
|
|
32990
|
-
}
|
|
32991
|
-
});
|
|
32992
33000
|
await this.printService
|
|
32993
33001
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
32994
33002
|
.then((printerConfig) => {
|
|
@@ -205,7 +205,15 @@ export class EzpPrinterSelection {
|
|
|
205
205
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
206
206
|
}
|
|
207
207
|
if (localStorage.getItem('printer')) {
|
|
208
|
-
|
|
208
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
209
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
210
|
+
this.selectedPrinter = savedPrinter;
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
214
|
+
localStorage.removeItem('printer');
|
|
215
|
+
localStorage.removeItem('properties');
|
|
216
|
+
}
|
|
209
217
|
}
|
|
210
218
|
else {
|
|
211
219
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -343,10 +351,18 @@ export class EzpPrinterSelection {
|
|
|
343
351
|
*/
|
|
344
352
|
/** Description... */
|
|
345
353
|
async connectedCallback() {
|
|
346
|
-
this.getPropertiesFromLocalStorage();
|
|
347
354
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
348
355
|
this.printService.registerFetchInterceptor();
|
|
349
356
|
await this.getUserInfo();
|
|
357
|
+
await this.printService
|
|
358
|
+
.getPrinterList(authStore.state.accessToken)
|
|
359
|
+
.then((printers) => {
|
|
360
|
+
this.printers = printers;
|
|
361
|
+
if (!(this.printers.length > 0)) {
|
|
362
|
+
this.noPrinters = true;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
this.getPropertiesFromLocalStorage();
|
|
350
366
|
// if printer is stored from previous print, get the config to enable property selection
|
|
351
367
|
if (this.selectedPrinter.id != '') {
|
|
352
368
|
await this.printService
|
|
@@ -361,14 +377,6 @@ export class EzpPrinterSelection {
|
|
|
361
377
|
.then((response) => {
|
|
362
378
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
363
379
|
});
|
|
364
|
-
await this.printService
|
|
365
|
-
.getPrinterList(authStore.state.accessToken)
|
|
366
|
-
.then((printers) => {
|
|
367
|
-
this.printers = printers;
|
|
368
|
-
if (!(this.printers.length > 0)) {
|
|
369
|
-
this.noPrinters = true;
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
380
|
await this.printService
|
|
373
381
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
374
382
|
.then((printerConfig) => {
|
|
@@ -32850,7 +32850,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32850
32850
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32851
32851
|
}
|
|
32852
32852
|
if (localStorage.getItem('printer')) {
|
|
32853
|
-
|
|
32853
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32854
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
32855
|
+
this.selectedPrinter = savedPrinter;
|
|
32856
|
+
}
|
|
32857
|
+
else {
|
|
32858
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32859
|
+
localStorage.removeItem('printer');
|
|
32860
|
+
localStorage.removeItem('properties');
|
|
32861
|
+
}
|
|
32854
32862
|
}
|
|
32855
32863
|
else {
|
|
32856
32864
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32986,10 +32994,18 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32986
32994
|
*/
|
|
32987
32995
|
/** Description... */
|
|
32988
32996
|
async connectedCallback() {
|
|
32989
|
-
this.getPropertiesFromLocalStorage();
|
|
32990
32997
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32991
32998
|
this.printService.registerFetchInterceptor();
|
|
32992
32999
|
await this.getUserInfo();
|
|
33000
|
+
await this.printService
|
|
33001
|
+
.getPrinterList(authStore.state.accessToken)
|
|
33002
|
+
.then((printers) => {
|
|
33003
|
+
this.printers = printers;
|
|
33004
|
+
if (!(this.printers.length > 0)) {
|
|
33005
|
+
this.noPrinters = true;
|
|
33006
|
+
}
|
|
33007
|
+
});
|
|
33008
|
+
this.getPropertiesFromLocalStorage();
|
|
32993
33009
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32994
33010
|
if (this.selectedPrinter.id != '') {
|
|
32995
33011
|
await this.printService
|
|
@@ -33004,14 +33020,6 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33004
33020
|
.then((response) => {
|
|
33005
33021
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
33006
33022
|
});
|
|
33007
|
-
await this.printService
|
|
33008
|
-
.getPrinterList(authStore.state.accessToken)
|
|
33009
|
-
.then((printers) => {
|
|
33010
|
-
this.printers = printers;
|
|
33011
|
-
if (!(this.printers.length > 0)) {
|
|
33012
|
-
this.noPrinters = true;
|
|
33013
|
-
}
|
|
33014
|
-
});
|
|
33015
33023
|
await this.printService
|
|
33016
33024
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
33017
33025
|
.then((printerConfig) => {
|
|
@@ -32823,7 +32823,15 @@ let EzpPrinterSelection = class {
|
|
|
32823
32823
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32824
32824
|
}
|
|
32825
32825
|
if (localStorage.getItem('printer')) {
|
|
32826
|
-
|
|
32826
|
+
const savedPrinter = JSON.parse(localStorage.getItem('printer'));
|
|
32827
|
+
if (this.printers.some((printer) => printer.id === savedPrinter.id)) {
|
|
32828
|
+
this.selectedPrinter = savedPrinter;
|
|
32829
|
+
}
|
|
32830
|
+
else {
|
|
32831
|
+
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
32832
|
+
localStorage.removeItem('printer');
|
|
32833
|
+
localStorage.removeItem('properties');
|
|
32834
|
+
}
|
|
32827
32835
|
}
|
|
32828
32836
|
else {
|
|
32829
32837
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32959,10 +32967,18 @@ let EzpPrinterSelection = class {
|
|
|
32959
32967
|
*/
|
|
32960
32968
|
/** Description... */
|
|
32961
32969
|
async connectedCallback() {
|
|
32962
|
-
this.getPropertiesFromLocalStorage();
|
|
32963
32970
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32964
32971
|
this.printService.registerFetchInterceptor();
|
|
32965
32972
|
await this.getUserInfo();
|
|
32973
|
+
await this.printService
|
|
32974
|
+
.getPrinterList(authStore.state.accessToken)
|
|
32975
|
+
.then((printers) => {
|
|
32976
|
+
this.printers = printers;
|
|
32977
|
+
if (!(this.printers.length > 0)) {
|
|
32978
|
+
this.noPrinters = true;
|
|
32979
|
+
}
|
|
32980
|
+
});
|
|
32981
|
+
this.getPropertiesFromLocalStorage();
|
|
32966
32982
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32967
32983
|
if (this.selectedPrinter.id != '') {
|
|
32968
32984
|
await this.printService
|
|
@@ -32977,14 +32993,6 @@ let EzpPrinterSelection = class {
|
|
|
32977
32993
|
.then((response) => {
|
|
32978
32994
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
32979
32995
|
});
|
|
32980
|
-
await this.printService
|
|
32981
|
-
.getPrinterList(authStore.state.accessToken)
|
|
32982
|
-
.then((printers) => {
|
|
32983
|
-
this.printers = printers;
|
|
32984
|
-
if (!(this.printers.length > 0)) {
|
|
32985
|
-
this.noPrinters = true;
|
|
32986
|
-
}
|
|
32987
|
-
});
|
|
32988
32996
|
await this.printService
|
|
32989
32997
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
32990
32998
|
.then((printerConfig) => {
|