@ezeep/ezeep-js 1.0.268 → 1.0.270
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 +30 -14
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +30 -14
- package/dist/collection/types/shared/types.d.ts +1 -0
- package/dist/components/ezp-printer-selection2.js +1 -1
- package/dist/esm/ezp-auth_15.entry.js +30 -14
- package/dist/esm-es5/ezp-auth_15.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-f3ad7583.system.entry.js → p-2177b8f4.system.entry.js} +1 -1
- package/dist/ezeep/p-CfQRcOh8.system.js +1 -1
- package/dist/ezeep/{p-ba70b358.entry.js → p-de8f6583.entry.js} +1 -1
- package/dist/ezeep/types/shared/types.d.ts +1 -0
- package/dist/types/shared/types.d.ts +1 -0
- package/package.json +2 -2
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-f3ad7583.system.entry.js → p-2177b8f4.system.entry.js} +1 -1
- package/www/build/{p-8f4a7bc3.js → p-256870db.js} +1 -1
- package/www/build/p-CfQRcOh8.system.js +1 -1
- package/www/build/{p-ba70b358.entry.js → p-de8f6583.entry.js} +1 -1
- package/www/index.html +1 -1
|
@@ -35114,16 +35114,24 @@ const EzpPrinterSelection = class {
|
|
|
35114
35114
|
await this.printService
|
|
35115
35115
|
.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
|
|
35116
35116
|
.then((data) => {
|
|
35117
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
35117
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
35118
35118
|
this.selectedPrinterConfig = Object.assign(Object.assign({}, this.selectedPrinterConfig), data[0]);
|
|
35119
35119
|
this.selectedProperties.color =
|
|
35120
35120
|
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
35121
|
-
|
|
35122
|
-
|
|
35123
|
-
let
|
|
35121
|
+
const defaultOrientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
35122
|
+
const defaultOrientationIndex = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.OrientationIndex;
|
|
35123
|
+
let orientationFallback;
|
|
35124
|
+
if (defaultOrientation) {
|
|
35125
|
+
const idx = (_d = this.selectedPrinterConfig.OrientationsSupported) === null || _d === void 0 ? void 0 : _d.indexOf(defaultOrientation);
|
|
35126
|
+
if (typeof idx === 'number' && idx >= 0)
|
|
35127
|
+
orientationFallback = idx + 1;
|
|
35128
|
+
}
|
|
35129
|
+
this.selectedProperties.orientation = defaultOrientationIndex !== null && defaultOrientationIndex !== void 0 ? defaultOrientationIndex : orientationFallback;
|
|
35130
|
+
this.selectedProperties.resolution = (_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Resolution;
|
|
35131
|
+
let defaultPaper = (_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((obj) => obj.Default === true);
|
|
35124
35132
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
35125
35133
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
35126
|
-
let defaultSource = (
|
|
35134
|
+
let defaultSource = (_g = this.selectedPrinterConfig.Trays) === null || _g === void 0 ? void 0 : _g.find((obj) => obj.Default === true);
|
|
35127
35135
|
if (this.selectedPrinterConfig.Trays &&
|
|
35128
35136
|
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
35129
35137
|
this.selectedPrinterConfig.Trays[0] != null) {
|
|
@@ -35136,8 +35144,8 @@ const EzpPrinterSelection = class {
|
|
|
35136
35144
|
delete this.selectedProperties.trayname;
|
|
35137
35145
|
delete this.selectedProperties.defaultSource;
|
|
35138
35146
|
}
|
|
35139
|
-
this.selectedProperties.duplex = (
|
|
35140
|
-
this.selectedProperties.duplexmode = (
|
|
35147
|
+
this.selectedProperties.duplex = (_h = this.selectedPrinterConfig) === null || _h === void 0 ? void 0 : _h.DuplexSupported;
|
|
35148
|
+
this.selectedProperties.duplexmode = (_j = this.selectedPrinterConfig) === null || _j === void 0 ? void 0 : _j.DuplexMode;
|
|
35141
35149
|
delete this.selectedProperties.PageRanges;
|
|
35142
35150
|
});
|
|
35143
35151
|
// this.setDefaultPaperFormat()
|
|
@@ -35398,16 +35406,24 @@ const EzpPrinterSelection = class {
|
|
|
35398
35406
|
await this.printService
|
|
35399
35407
|
.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
|
|
35400
35408
|
.then((data) => {
|
|
35401
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
35409
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
35402
35410
|
this.selectedPrinterConfig = data[0];
|
|
35403
35411
|
this.selectedProperties.color =
|
|
35404
35412
|
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
35405
|
-
|
|
35406
|
-
|
|
35407
|
-
let
|
|
35413
|
+
const defaultOrientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
35414
|
+
const defaultOrientationIndex = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.OrientationIndex;
|
|
35415
|
+
let orientationFallback;
|
|
35416
|
+
if (defaultOrientation) {
|
|
35417
|
+
const idx = (_d = this.selectedPrinterConfig.OrientationsSupported) === null || _d === void 0 ? void 0 : _d.indexOf(defaultOrientation);
|
|
35418
|
+
if (typeof idx === 'number' && idx >= 0)
|
|
35419
|
+
orientationFallback = idx + 1;
|
|
35420
|
+
}
|
|
35421
|
+
this.selectedProperties.orientation = defaultOrientationIndex !== null && defaultOrientationIndex !== void 0 ? defaultOrientationIndex : orientationFallback;
|
|
35422
|
+
this.selectedProperties.resolution = (_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Resolution;
|
|
35423
|
+
let defaultPaper = (_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((obj) => obj.Default === true);
|
|
35408
35424
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
35409
35425
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
35410
|
-
let defaultSource = (
|
|
35426
|
+
let defaultSource = (_g = this.selectedPrinterConfig.Trays) === null || _g === void 0 ? void 0 : _g.find((obj) => obj.Default === true);
|
|
35411
35427
|
if (this.selectedPrinterConfig.Trays &&
|
|
35412
35428
|
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
35413
35429
|
this.selectedPrinterConfig.Trays[0] != null) {
|
|
@@ -35420,8 +35436,8 @@ const EzpPrinterSelection = class {
|
|
|
35420
35436
|
delete this.selectedProperties.trayname;
|
|
35421
35437
|
delete this.selectedProperties.defaultSource;
|
|
35422
35438
|
}
|
|
35423
|
-
this.selectedProperties.duplex = (
|
|
35424
|
-
this.selectedProperties.duplexmode = (
|
|
35439
|
+
this.selectedProperties.duplex = (_h = this.selectedPrinterConfig) === null || _h === void 0 ? void 0 : _h.DuplexSupported;
|
|
35440
|
+
this.selectedProperties.duplexmode = (_j = this.selectedPrinterConfig) === null || _j === void 0 ? void 0 : _j.DuplexMode;
|
|
35425
35441
|
delete this.selectedProperties.PageRanges;
|
|
35426
35442
|
});
|
|
35427
35443
|
if (this.selectedProperties.paper === '') {
|
|
@@ -420,16 +420,24 @@ export class EzpPrinterSelection {
|
|
|
420
420
|
await this.printService
|
|
421
421
|
.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
|
|
422
422
|
.then((data) => {
|
|
423
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
423
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
424
424
|
this.selectedPrinterConfig = Object.assign(Object.assign({}, this.selectedPrinterConfig), data[0]);
|
|
425
425
|
this.selectedProperties.color =
|
|
426
426
|
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
let
|
|
427
|
+
const defaultOrientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
428
|
+
const defaultOrientationIndex = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.OrientationIndex;
|
|
429
|
+
let orientationFallback;
|
|
430
|
+
if (defaultOrientation) {
|
|
431
|
+
const idx = (_d = this.selectedPrinterConfig.OrientationsSupported) === null || _d === void 0 ? void 0 : _d.indexOf(defaultOrientation);
|
|
432
|
+
if (typeof idx === 'number' && idx >= 0)
|
|
433
|
+
orientationFallback = idx + 1;
|
|
434
|
+
}
|
|
435
|
+
this.selectedProperties.orientation = defaultOrientationIndex !== null && defaultOrientationIndex !== void 0 ? defaultOrientationIndex : orientationFallback;
|
|
436
|
+
this.selectedProperties.resolution = (_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Resolution;
|
|
437
|
+
let defaultPaper = (_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((obj) => obj.Default === true);
|
|
430
438
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
431
439
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
432
|
-
let defaultSource = (
|
|
440
|
+
let defaultSource = (_g = this.selectedPrinterConfig.Trays) === null || _g === void 0 ? void 0 : _g.find((obj) => obj.Default === true);
|
|
433
441
|
if (this.selectedPrinterConfig.Trays &&
|
|
434
442
|
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
435
443
|
this.selectedPrinterConfig.Trays[0] != null) {
|
|
@@ -442,8 +450,8 @@ export class EzpPrinterSelection {
|
|
|
442
450
|
delete this.selectedProperties.trayname;
|
|
443
451
|
delete this.selectedProperties.defaultSource;
|
|
444
452
|
}
|
|
445
|
-
this.selectedProperties.duplex = (
|
|
446
|
-
this.selectedProperties.duplexmode = (
|
|
453
|
+
this.selectedProperties.duplex = (_h = this.selectedPrinterConfig) === null || _h === void 0 ? void 0 : _h.DuplexSupported;
|
|
454
|
+
this.selectedProperties.duplexmode = (_j = this.selectedPrinterConfig) === null || _j === void 0 ? void 0 : _j.DuplexMode;
|
|
447
455
|
delete this.selectedProperties.PageRanges;
|
|
448
456
|
});
|
|
449
457
|
// this.setDefaultPaperFormat()
|
|
@@ -706,16 +714,24 @@ export class EzpPrinterSelection {
|
|
|
706
714
|
await this.printService
|
|
707
715
|
.getPrinterProperties(authStore.state.accessToken, this.selectedPrinter.id)
|
|
708
716
|
.then((data) => {
|
|
709
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
717
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
710
718
|
this.selectedPrinterConfig = data[0];
|
|
711
719
|
this.selectedProperties.color =
|
|
712
720
|
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
let
|
|
721
|
+
const defaultOrientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
722
|
+
const defaultOrientationIndex = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.OrientationIndex;
|
|
723
|
+
let orientationFallback;
|
|
724
|
+
if (defaultOrientation) {
|
|
725
|
+
const idx = (_d = this.selectedPrinterConfig.OrientationsSupported) === null || _d === void 0 ? void 0 : _d.indexOf(defaultOrientation);
|
|
726
|
+
if (typeof idx === 'number' && idx >= 0)
|
|
727
|
+
orientationFallback = idx + 1;
|
|
728
|
+
}
|
|
729
|
+
this.selectedProperties.orientation = defaultOrientationIndex !== null && defaultOrientationIndex !== void 0 ? defaultOrientationIndex : orientationFallback;
|
|
730
|
+
this.selectedProperties.resolution = (_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Resolution;
|
|
731
|
+
let defaultPaper = (_f = this.selectedPrinterConfig.PaperFormats) === null || _f === void 0 ? void 0 : _f.find((obj) => obj.Default === true);
|
|
716
732
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
717
733
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
718
|
-
let defaultSource = (
|
|
734
|
+
let defaultSource = (_g = this.selectedPrinterConfig.Trays) === null || _g === void 0 ? void 0 : _g.find((obj) => obj.Default === true);
|
|
719
735
|
if (this.selectedPrinterConfig.Trays &&
|
|
720
736
|
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
721
737
|
this.selectedPrinterConfig.Trays[0] != null) {
|
|
@@ -728,8 +744,8 @@ export class EzpPrinterSelection {
|
|
|
728
744
|
delete this.selectedProperties.trayname;
|
|
729
745
|
delete this.selectedProperties.defaultSource;
|
|
730
746
|
}
|
|
731
|
-
this.selectedProperties.duplex = (
|
|
732
|
-
this.selectedProperties.duplexmode = (
|
|
747
|
+
this.selectedProperties.duplex = (_h = this.selectedPrinterConfig) === null || _h === void 0 ? void 0 : _h.DuplexSupported;
|
|
748
|
+
this.selectedProperties.duplexmode = (_j = this.selectedPrinterConfig) === null || _j === void 0 ? void 0 : _j.DuplexMode;
|
|
733
749
|
delete this.selectedProperties.PageRanges;
|
|
734
750
|
});
|
|
735
751
|
if (this.selectedProperties.paper === '') {
|