@ezeep/ezeep-js 1.0.232 → 1.0.233
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 -11
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +11 -11
- package/dist/custom-elements/index.js +11 -11
- package/dist/esm/ezp-auth_15.entry.js +11 -11
- package/dist/esm-es5/ezp-auth_15.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-3ceb1074.system.entry.js → p-4ee581b3.system.entry.js} +1 -1
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/ezeep/{p-6174466d.entry.js → p-f031e8b7.entry.js} +1 -1
- package/dist/types/shared/types.d.ts +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-3ceb1074.system.entry.js → p-4ee581b3.system.entry.js} +1 -1
- package/www/build/p-84bd195a.system.js +1 -1
- package/www/build/{p-6174466d.entry.js → p-f031e8b7.entry.js} +1 -1
|
@@ -32796,7 +32796,7 @@ let EzpPrinterSelection = class {
|
|
|
32796
32796
|
this.userMenuOpen = false;
|
|
32797
32797
|
this.printStopped = false;
|
|
32798
32798
|
this.selectedPrinterConfig = {
|
|
32799
|
-
|
|
32799
|
+
Default: {
|
|
32800
32800
|
Color: '',
|
|
32801
32801
|
Duplex: '',
|
|
32802
32802
|
Paper: '',
|
|
@@ -33248,7 +33248,7 @@ let EzpPrinterSelection = class {
|
|
|
33248
33248
|
type: 'color',
|
|
33249
33249
|
},
|
|
33250
33250
|
], preSelected: this.selectedPrinter.id
|
|
33251
|
-
? ((_a = this.selectedPrinterConfig.
|
|
33251
|
+
? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
|
|
33252
33252
|
? i18next.t('printer_selection.color_color')
|
|
33253
33253
|
: i18next.t('printer_selection.color_grayscale')
|
|
33254
33254
|
: null, disabled: !this.selectedPrinterConfig.ColorSupported }), index.h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
|
|
@@ -33256,19 +33256,19 @@ let EzpPrinterSelection = class {
|
|
|
33256
33256
|
title: option.title,
|
|
33257
33257
|
meta: '',
|
|
33258
33258
|
type: 'duplex',
|
|
33259
|
-
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.
|
|
33259
|
+
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
|
|
33260
33260
|
? i18next.t('printer_selection.duplex_none')
|
|
33261
|
-
: ((_d = this.selectedPrinterConfig.
|
|
33261
|
+
: ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
|
|
33262
33262
|
? i18next.t('printer_selection.duplex_long')
|
|
33263
|
-
: ((_e = this.selectedPrinterConfig.
|
|
33263
|
+
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
|
|
33264
33264
|
? i18next.t('printer_selection.duplex_short')
|
|
33265
33265
|
: null, disabled: !this.selectedPrinterConfig.DuplexSupported }), index.h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33266
33266
|
id: format.Id,
|
|
33267
33267
|
title: format.Name,
|
|
33268
33268
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
33269
33269
|
type: 'format',
|
|
33270
|
-
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.
|
|
33271
|
-
? (_g = this.selectedPrinterConfig.
|
|
33270
|
+
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
|
|
33271
|
+
? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
|
|
33272
33272
|
: null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }), this.paperid == PAPER_ID ? (index.h(index.Fragment, null, index.h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), index.h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, index.h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
33273
33273
|
id: index + 1,
|
|
33274
33274
|
title: i18next.t(`printer_selection.orientation_${orientation}`),
|
|
@@ -33279,15 +33279,15 @@ let EzpPrinterSelection = class {
|
|
|
33279
33279
|
title: option,
|
|
33280
33280
|
meta: '',
|
|
33281
33281
|
type: 'quality',
|
|
33282
|
-
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.
|
|
33283
|
-
? this.selectedPrinterConfig.
|
|
33282
|
+
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
|
|
33283
|
+
? this.selectedPrinterConfig.Default.Resolution
|
|
33284
33284
|
: null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (index.h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({
|
|
33285
33285
|
title: trays.Name,
|
|
33286
33286
|
id: trays.Index,
|
|
33287
33287
|
meta: '',
|
|
33288
33288
|
type: 'tray',
|
|
33289
|
-
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.
|
|
33290
|
-
? this.selectedPrinterConfig.
|
|
33289
|
+
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
|
|
33290
|
+
? this.selectedPrinterConfig.Default.Tray
|
|
33291
33291
|
: null })) : null, index.h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), index.h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })), !this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33292
33292
|
}
|
|
33293
33293
|
};
|
|
@@ -42,7 +42,7 @@ export class EzpPrinterSelection {
|
|
|
42
42
|
this.userMenuOpen = false;
|
|
43
43
|
this.printStopped = false;
|
|
44
44
|
this.selectedPrinterConfig = {
|
|
45
|
-
|
|
45
|
+
Default: {
|
|
46
46
|
Color: '',
|
|
47
47
|
Duplex: '',
|
|
48
48
|
Paper: '',
|
|
@@ -507,7 +507,7 @@ export class EzpPrinterSelection {
|
|
|
507
507
|
type: 'color',
|
|
508
508
|
},
|
|
509
509
|
], preSelected: this.selectedPrinter.id
|
|
510
|
-
? ((_a = this.selectedPrinterConfig.
|
|
510
|
+
? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
|
|
511
511
|
? i18next.t('printer_selection.color_color')
|
|
512
512
|
: i18next.t('printer_selection.color_grayscale')
|
|
513
513
|
: null, disabled: !this.selectedPrinterConfig.ColorSupported }),
|
|
@@ -516,11 +516,11 @@ export class EzpPrinterSelection {
|
|
|
516
516
|
title: option.title,
|
|
517
517
|
meta: '',
|
|
518
518
|
type: 'duplex',
|
|
519
|
-
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.
|
|
519
|
+
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
|
|
520
520
|
? i18next.t('printer_selection.duplex_none')
|
|
521
|
-
: ((_d = this.selectedPrinterConfig.
|
|
521
|
+
: ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
|
|
522
522
|
? i18next.t('printer_selection.duplex_long')
|
|
523
|
-
: ((_e = this.selectedPrinterConfig.
|
|
523
|
+
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
|
|
524
524
|
? i18next.t('printer_selection.duplex_short')
|
|
525
525
|
: null, disabled: !this.selectedPrinterConfig.DuplexSupported }),
|
|
526
526
|
h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
@@ -528,8 +528,8 @@ export class EzpPrinterSelection {
|
|
|
528
528
|
title: format.Name,
|
|
529
529
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
530
530
|
type: 'format',
|
|
531
|
-
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.
|
|
532
|
-
? (_g = this.selectedPrinterConfig.
|
|
531
|
+
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
|
|
532
|
+
? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
|
|
533
533
|
: null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }),
|
|
534
534
|
this.paperid == PAPER_ID ? (h(Fragment, null,
|
|
535
535
|
h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }),
|
|
@@ -545,16 +545,16 @@ export class EzpPrinterSelection {
|
|
|
545
545
|
title: option,
|
|
546
546
|
meta: '',
|
|
547
547
|
type: 'quality',
|
|
548
|
-
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.
|
|
549
|
-
? this.selectedPrinterConfig.
|
|
548
|
+
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
|
|
549
|
+
? this.selectedPrinterConfig.Default.Resolution
|
|
550
550
|
: null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }),
|
|
551
551
|
this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({
|
|
552
552
|
title: trays.Name,
|
|
553
553
|
id: trays.Index,
|
|
554
554
|
meta: '',
|
|
555
555
|
type: 'tray',
|
|
556
|
-
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.
|
|
557
|
-
? this.selectedPrinterConfig.
|
|
556
|
+
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
|
|
557
|
+
? this.selectedPrinterConfig.Default.Tray
|
|
558
558
|
: null })) : null,
|
|
559
559
|
h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })),
|
|
560
560
|
h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })),
|
|
@@ -32821,7 +32821,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32821
32821
|
this.userMenuOpen = false;
|
|
32822
32822
|
this.printStopped = false;
|
|
32823
32823
|
this.selectedPrinterConfig = {
|
|
32824
|
-
|
|
32824
|
+
Default: {
|
|
32825
32825
|
Color: '',
|
|
32826
32826
|
Duplex: '',
|
|
32827
32827
|
Paper: '',
|
|
@@ -33273,7 +33273,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33273
33273
|
type: 'color',
|
|
33274
33274
|
},
|
|
33275
33275
|
], preSelected: this.selectedPrinter.id
|
|
33276
|
-
? ((_a = this.selectedPrinterConfig.
|
|
33276
|
+
? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
|
|
33277
33277
|
? i18next.t('printer_selection.color_color')
|
|
33278
33278
|
: i18next.t('printer_selection.color_grayscale')
|
|
33279
33279
|
: null, disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
|
|
@@ -33281,19 +33281,19 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33281
33281
|
title: option.title,
|
|
33282
33282
|
meta: '',
|
|
33283
33283
|
type: 'duplex',
|
|
33284
|
-
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.
|
|
33284
|
+
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
|
|
33285
33285
|
? i18next.t('printer_selection.duplex_none')
|
|
33286
|
-
: ((_d = this.selectedPrinterConfig.
|
|
33286
|
+
: ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
|
|
33287
33287
|
? i18next.t('printer_selection.duplex_long')
|
|
33288
|
-
: ((_e = this.selectedPrinterConfig.
|
|
33288
|
+
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
|
|
33289
33289
|
? i18next.t('printer_selection.duplex_short')
|
|
33290
33290
|
: null, disabled: !this.selectedPrinterConfig.DuplexSupported }), h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33291
33291
|
id: format.Id,
|
|
33292
33292
|
title: format.Name,
|
|
33293
33293
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
33294
33294
|
type: 'format',
|
|
33295
|
-
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.
|
|
33296
|
-
? (_g = this.selectedPrinterConfig.
|
|
33295
|
+
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
|
|
33296
|
+
? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
|
|
33297
33297
|
: null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
33298
33298
|
id: index + 1,
|
|
33299
33299
|
title: i18next.t(`printer_selection.orientation_${orientation}`),
|
|
@@ -33304,15 +33304,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33304
33304
|
title: option,
|
|
33305
33305
|
meta: '',
|
|
33306
33306
|
type: 'quality',
|
|
33307
|
-
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.
|
|
33308
|
-
? this.selectedPrinterConfig.
|
|
33307
|
+
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
|
|
33308
|
+
? this.selectedPrinterConfig.Default.Resolution
|
|
33309
33309
|
: null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({
|
|
33310
33310
|
title: trays.Name,
|
|
33311
33311
|
id: trays.Index,
|
|
33312
33312
|
meta: '',
|
|
33313
33313
|
type: 'tray',
|
|
33314
|
-
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.
|
|
33315
|
-
? this.selectedPrinterConfig.
|
|
33314
|
+
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
|
|
33315
|
+
? this.selectedPrinterConfig.Default.Tray
|
|
33316
33316
|
: null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33317
33317
|
}
|
|
33318
33318
|
static get style() { return ezpPrinterSelectionCss; }
|
|
@@ -32792,7 +32792,7 @@ let EzpPrinterSelection = class {
|
|
|
32792
32792
|
this.userMenuOpen = false;
|
|
32793
32793
|
this.printStopped = false;
|
|
32794
32794
|
this.selectedPrinterConfig = {
|
|
32795
|
-
|
|
32795
|
+
Default: {
|
|
32796
32796
|
Color: '',
|
|
32797
32797
|
Duplex: '',
|
|
32798
32798
|
Paper: '',
|
|
@@ -33244,7 +33244,7 @@ let EzpPrinterSelection = class {
|
|
|
33244
33244
|
type: 'color',
|
|
33245
33245
|
},
|
|
33246
33246
|
], preSelected: this.selectedPrinter.id
|
|
33247
|
-
? ((_a = this.selectedPrinterConfig.
|
|
33247
|
+
? ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color"
|
|
33248
33248
|
? i18next.t('printer_selection.color_color')
|
|
33249
33249
|
: i18next.t('printer_selection.color_grayscale')
|
|
33250
33250
|
: null, disabled: !this.selectedPrinterConfig.ColorSupported }), h("ezp-select", { label: i18next.t('printer_selection.duplex'), icon: "duplex", placeholder: i18next.t('printer_selection.select_duplex'), toggleFlow: "horizontal", options: (_b = this.duplexOptions) === null || _b === void 0 ? void 0 : _b.map((option) => ({
|
|
@@ -33252,19 +33252,19 @@ let EzpPrinterSelection = class {
|
|
|
33252
33252
|
title: option.title,
|
|
33253
33253
|
meta: '',
|
|
33254
33254
|
type: 'duplex',
|
|
33255
|
-
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.
|
|
33255
|
+
})), preSelected: this.selectedPrinter.id && ((_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Duplex) == "duplex_simplex"
|
|
33256
33256
|
? i18next.t('printer_selection.duplex_none')
|
|
33257
|
-
: ((_d = this.selectedPrinterConfig.
|
|
33257
|
+
: ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_vertical"
|
|
33258
33258
|
? i18next.t('printer_selection.duplex_long')
|
|
33259
|
-
: ((_e = this.selectedPrinterConfig.
|
|
33259
|
+
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_horizontal"
|
|
33260
33260
|
? i18next.t('printer_selection.duplex_short')
|
|
33261
33261
|
: null, disabled: !this.selectedPrinterConfig.DuplexSupported }), h("ezp-select", { label: i18next.t('printer_selection.size'), icon: "size", placeholder: i18next.t('printer_selection.select_size'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.PaperFormats && this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33262
33262
|
id: format.Id,
|
|
33263
33263
|
title: format.Name,
|
|
33264
33264
|
meta: `${format.XRes} x ${format.YRes}`,
|
|
33265
33265
|
type: 'format',
|
|
33266
|
-
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.
|
|
33267
|
-
? (_g = this.selectedPrinterConfig.
|
|
33266
|
+
})), preSelected: this.selectedPrinter.id && ((_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
|
|
33267
|
+
? (_g = this.selectedPrinterConfig.Default) === null || _g === void 0 ? void 0 : _g.Paper
|
|
33268
33268
|
: null, disabled: !(((_h = this.selectedPrinterConfig.PaperFormats) === null || _h === void 0 ? void 0 : _h.length) > 0) }), this.paperid == PAPER_ID ? (h(Fragment, null, h("ezp-input", { icon: "width", suffix: "mm", value: this.selectedProperties.paperwidth, eventType: "width", type: "number", label: i18next.t('printer_selection.width') }), h("ezp-input", { icon: "height", suffix: "mm", value: this.selectedProperties.paperlength, eventType: "length", type: "number", label: i18next.t('printer_selection.length') }))) : null, h("ezp-select", { label: i18next.t('printer_selection.orientation'), icon: "orientation", placeholder: i18next.t('printer_selection.select_orientation'), toggleFlow: "horizontal", options: this.selectedPrinterConfig.OrientationsSupported.map((orientation, index) => ({
|
|
33269
33269
|
id: index + 1,
|
|
33270
33270
|
title: i18next.t(`printer_selection.orientation_${orientation}`),
|
|
@@ -33275,15 +33275,15 @@ let EzpPrinterSelection = class {
|
|
|
33275
33275
|
title: option,
|
|
33276
33276
|
meta: '',
|
|
33277
33277
|
type: 'quality',
|
|
33278
|
-
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.
|
|
33279
|
-
? this.selectedPrinterConfig.
|
|
33278
|
+
})), preSelected: this.selectedPrinter.id && ((_k = this.selectedPrinterConfig.Resolutions) === null || _k === void 0 ? void 0 : _k.includes(this.selectedPrinterConfig.Default.Resolution))
|
|
33279
|
+
? this.selectedPrinterConfig.Default.Resolution
|
|
33280
33280
|
: null, disabled: !(((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.length) > 0) }), this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null ? (h("ezp-select", { label: i18next.t('printer_selection.trays'), icon: "trays", placeholder: i18next.t('printer_selection.select_trays'), toggleFlow: "horizontal", optionFlow: "horizontal", options: this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays.map((trays) => ({
|
|
33281
33281
|
title: trays.Name,
|
|
33282
33282
|
id: trays.Index,
|
|
33283
33283
|
meta: '',
|
|
33284
33284
|
type: 'tray',
|
|
33285
|
-
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.
|
|
33286
|
-
? this.selectedPrinterConfig.
|
|
33285
|
+
})), preSelected: this.selectedPrinter.id && ((_m = this.selectedPrinterConfig.Trays) === null || _m === void 0 ? void 0 : _m.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
|
|
33286
|
+
? this.selectedPrinterConfig.Default.Tray
|
|
33287
33287
|
: null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: localStorage.getItem('pageRanges') ? this.selectedProperties.PageRanges : '', eventType: "paper_ranges", type: "text", label: i18next.t('printer_selection.page_ranges') })), h("ezp-stepper", { label: i18next.t('printer_selection.copies'), max: 10, icon: "copies" })), h("div", { id: "footer" }, h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel'), class: "action", id: "cancel" }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '' || this.printProcessing || this.pageRangeInvalid, type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print'), ref: (button) => (this.printButton = button), class: "action", id: "print" })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
|
|
33288
33288
|
}
|
|
33289
33289
|
};
|