@ezeep/ezeep-js 1.0.169 → 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 +23 -11
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +23 -11
- package/dist/custom-elements/index.js +23 -11
- package/dist/esm/ezp-auth_14.entry.js +23 -11
- 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-0ca9a8ac.entry.js → p-555a4cd5.entry.js} +1 -1
- package/dist/ezeep/{p-7acdedd4.system.entry.js → p-ad175cb0.system.entry.js} +3 -3
- 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-0ca9a8ac.entry.js → p-555a4cd5.entry.js} +1 -1
- package/www/build/{p-7acdedd4.system.entry.js → p-ad175cb0.system.entry.js} +3 -3
- package/www/index.html +2 -4
|
@@ -32715,6 +32715,10 @@ let EzpPrinterSelection = class {
|
|
|
32715
32715
|
this.printService
|
|
32716
32716
|
.printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename)
|
|
32717
32717
|
.then((response) => {
|
|
32718
|
+
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
32719
|
+
this.printProcessing = false;
|
|
32720
|
+
this.printSuccess = true;
|
|
32721
|
+
}
|
|
32718
32722
|
if (response.status === 412) {
|
|
32719
32723
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
32720
32724
|
this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename);
|
|
@@ -32823,7 +32827,15 @@ let EzpPrinterSelection = class {
|
|
|
32823
32827
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32824
32828
|
}
|
|
32825
32829
|
if (localStorage.getItem('printer')) {
|
|
32826
|
-
|
|
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
|
+
}
|
|
32827
32839
|
}
|
|
32828
32840
|
else {
|
|
32829
32841
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32959,10 +32971,18 @@ let EzpPrinterSelection = class {
|
|
|
32959
32971
|
*/
|
|
32960
32972
|
/** Description... */
|
|
32961
32973
|
async connectedCallback() {
|
|
32962
|
-
this.getPropertiesFromLocalStorage();
|
|
32963
32974
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32964
32975
|
this.printService.registerFetchInterceptor();
|
|
32965
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();
|
|
32966
32986
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32967
32987
|
if (this.selectedPrinter.id != '') {
|
|
32968
32988
|
await this.printService
|
|
@@ -32977,14 +32997,6 @@ let EzpPrinterSelection = class {
|
|
|
32977
32997
|
.then((response) => {
|
|
32978
32998
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
32979
32999
|
});
|
|
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
33000
|
await this.printService
|
|
32989
33001
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
32990
33002
|
.then((printerConfig) => {
|
|
@@ -33007,7 +33019,7 @@ let EzpPrinterSelection = class {
|
|
|
33007
33019
|
? i18next.t('printer_selection.prepare_upload')
|
|
33008
33020
|
: this.uploading
|
|
33009
33021
|
? i18next.t('printer_selection.uploading')
|
|
33010
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.
|
|
33022
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33011
33023
|
? i18next.t('printer_selection.select_printer')
|
|
33012
33024
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
33013
33025
|
id: printer.id,
|
|
@@ -93,6 +93,10 @@ export class EzpPrinterSelection {
|
|
|
93
93
|
this.printService
|
|
94
94
|
.printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename)
|
|
95
95
|
.then((response) => {
|
|
96
|
+
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
97
|
+
this.printProcessing = false;
|
|
98
|
+
this.printSuccess = true;
|
|
99
|
+
}
|
|
96
100
|
if (response.status === 412) {
|
|
97
101
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
98
102
|
this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename);
|
|
@@ -201,7 +205,15 @@ export class EzpPrinterSelection {
|
|
|
201
205
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
202
206
|
}
|
|
203
207
|
if (localStorage.getItem('printer')) {
|
|
204
|
-
|
|
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
|
+
}
|
|
205
217
|
}
|
|
206
218
|
else {
|
|
207
219
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -339,10 +351,18 @@ export class EzpPrinterSelection {
|
|
|
339
351
|
*/
|
|
340
352
|
/** Description... */
|
|
341
353
|
async connectedCallback() {
|
|
342
|
-
this.getPropertiesFromLocalStorage();
|
|
343
354
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
344
355
|
this.printService.registerFetchInterceptor();
|
|
345
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();
|
|
346
366
|
// if printer is stored from previous print, get the config to enable property selection
|
|
347
367
|
if (this.selectedPrinter.id != '') {
|
|
348
368
|
await this.printService
|
|
@@ -357,14 +377,6 @@ export class EzpPrinterSelection {
|
|
|
357
377
|
.then((response) => {
|
|
358
378
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
359
379
|
});
|
|
360
|
-
await this.printService
|
|
361
|
-
.getPrinterList(authStore.state.accessToken)
|
|
362
|
-
.then((printers) => {
|
|
363
|
-
this.printers = printers;
|
|
364
|
-
if (!(this.printers.length > 0)) {
|
|
365
|
-
this.noPrinters = true;
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
380
|
await this.printService
|
|
369
381
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
370
382
|
.then((printerConfig) => {
|
|
@@ -389,7 +401,7 @@ export class EzpPrinterSelection {
|
|
|
389
401
|
? i18next.t('printer_selection.prepare_upload')
|
|
390
402
|
: this.uploading
|
|
391
403
|
? i18next.t('printer_selection.uploading')
|
|
392
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.
|
|
404
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: 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)),
|
|
393
405
|
h("div", { id: "header" },
|
|
394
406
|
h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }),
|
|
395
407
|
h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }),
|
|
@@ -32738,6 +32738,10 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32738
32738
|
this.printService
|
|
32739
32739
|
.printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename)
|
|
32740
32740
|
.then((response) => {
|
|
32741
|
+
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
32742
|
+
this.printProcessing = false;
|
|
32743
|
+
this.printSuccess = true;
|
|
32744
|
+
}
|
|
32741
32745
|
if (response.status === 412) {
|
|
32742
32746
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
32743
32747
|
this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename);
|
|
@@ -32846,7 +32850,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32846
32850
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32847
32851
|
}
|
|
32848
32852
|
if (localStorage.getItem('printer')) {
|
|
32849
|
-
|
|
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
|
+
}
|
|
32850
32862
|
}
|
|
32851
32863
|
else {
|
|
32852
32864
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32982,10 +32994,18 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32982
32994
|
*/
|
|
32983
32995
|
/** Description... */
|
|
32984
32996
|
async connectedCallback() {
|
|
32985
|
-
this.getPropertiesFromLocalStorage();
|
|
32986
32997
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32987
32998
|
this.printService.registerFetchInterceptor();
|
|
32988
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();
|
|
32989
33009
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32990
33010
|
if (this.selectedPrinter.id != '') {
|
|
32991
33011
|
await this.printService
|
|
@@ -33000,14 +33020,6 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33000
33020
|
.then((response) => {
|
|
33001
33021
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
33002
33022
|
});
|
|
33003
|
-
await this.printService
|
|
33004
|
-
.getPrinterList(authStore.state.accessToken)
|
|
33005
|
-
.then((printers) => {
|
|
33006
|
-
this.printers = printers;
|
|
33007
|
-
if (!(this.printers.length > 0)) {
|
|
33008
|
-
this.noPrinters = true;
|
|
33009
|
-
}
|
|
33010
|
-
});
|
|
33011
33023
|
await this.printService
|
|
33012
33024
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
33013
33025
|
.then((printerConfig) => {
|
|
@@ -33030,7 +33042,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33030
33042
|
? i18next.t('printer_selection.prepare_upload')
|
|
33031
33043
|
: this.uploading
|
|
33032
33044
|
? i18next.t('printer_selection.uploading')
|
|
33033
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.
|
|
33045
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: 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)), h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33034
33046
|
? i18next.t('printer_selection.select_printer')
|
|
33035
33047
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
33036
33048
|
id: printer.id,
|
|
@@ -32711,6 +32711,10 @@ let EzpPrinterSelection = class {
|
|
|
32711
32711
|
this.printService
|
|
32712
32712
|
.printFileByUrl(authStore.state.accessToken, this.fileurl, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename)
|
|
32713
32713
|
.then((response) => {
|
|
32714
|
+
if (response.status === 200 && this.selectedPrinter.is_queue) {
|
|
32715
|
+
this.printProcessing = false;
|
|
32716
|
+
this.printSuccess = true;
|
|
32717
|
+
}
|
|
32714
32718
|
if (response.status === 412) {
|
|
32715
32719
|
response.json().then((data) => (this.fileid = data.fileid));
|
|
32716
32720
|
this.printService.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, cleanPrintProperties, this.filename);
|
|
@@ -32819,7 +32823,15 @@ let EzpPrinterSelection = class {
|
|
|
32819
32823
|
this.selectedProperties = JSON.parse(localStorage.getItem('properties'));
|
|
32820
32824
|
}
|
|
32821
32825
|
if (localStorage.getItem('printer')) {
|
|
32822
|
-
|
|
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
|
+
}
|
|
32823
32835
|
}
|
|
32824
32836
|
else {
|
|
32825
32837
|
this.selectedPrinter = { id: '', location: '', name: '', is_queue: false };
|
|
@@ -32955,10 +32967,18 @@ let EzpPrinterSelection = class {
|
|
|
32955
32967
|
*/
|
|
32956
32968
|
/** Description... */
|
|
32957
32969
|
async connectedCallback() {
|
|
32958
|
-
this.getPropertiesFromLocalStorage();
|
|
32959
32970
|
this.printService = new EzpPrintService(this.redirectURI, this.clientID);
|
|
32960
32971
|
this.printService.registerFetchInterceptor();
|
|
32961
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();
|
|
32962
32982
|
// if printer is stored from previous print, get the config to enable property selection
|
|
32963
32983
|
if (this.selectedPrinter.id != '') {
|
|
32964
32984
|
await this.printService
|
|
@@ -32973,14 +32993,6 @@ let EzpPrinterSelection = class {
|
|
|
32973
32993
|
.then((response) => {
|
|
32974
32994
|
printStore.state.supportedFileExtensions = response.System.FILEEXT;
|
|
32975
32995
|
});
|
|
32976
|
-
await this.printService
|
|
32977
|
-
.getPrinterList(authStore.state.accessToken)
|
|
32978
|
-
.then((printers) => {
|
|
32979
|
-
this.printers = printers;
|
|
32980
|
-
if (!(this.printers.length > 0)) {
|
|
32981
|
-
this.noPrinters = true;
|
|
32982
|
-
}
|
|
32983
|
-
});
|
|
32984
32996
|
await this.printService
|
|
32985
32997
|
.getAllPrinterProperties(authStore.state.accessToken)
|
|
32986
32998
|
.then((printerConfig) => {
|
|
@@ -33003,7 +33015,7 @@ let EzpPrinterSelection = class {
|
|
|
33003
33015
|
? i18next.t('printer_selection.prepare_upload')
|
|
33004
33016
|
: this.uploading
|
|
33005
33017
|
? i18next.t('printer_selection.uploading')
|
|
33006
|
-
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.
|
|
33018
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: 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)), h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported ? this.filename : '', ellipsis: true }), !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), h("div", { id: "body" }, h("div", { id: "printer" }, h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
|
|
33007
33019
|
? i18next.t('printer_selection.select_printer')
|
|
33008
33020
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
33009
33021
|
id: printer.id,
|