@ezeep/ezeep-js 1.0.237 → 1.0.238
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/ezeep.cjs.js +1 -1
- package/dist/cjs/ezp-auth_15.cjs.entry.js +214 -107
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +204 -95
- package/dist/collection/components/ezp-printing/ezp-printing.js +6 -5
- package/dist/collection/components/ezp-upload/ezp-upload.js +13 -11
- package/dist/custom-elements/index.js +217 -110
- package/dist/directives/proxies.ts +2 -2
- package/dist/esm/ezeep.js +1 -1
- package/dist/esm/ezp-auth_15.entry.js +214 -107
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-7b589922.entry.js → p-0aba6822.entry.js} +2 -2
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/ezeep/{p-62b9b554.system.entry.js → p-dba5d7b7.system.entry.js} +3 -3
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +10 -3
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -1
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-7b589922.entry.js → p-0aba6822.entry.js} +2 -2
- package/www/build/p-84bd195a.system.js +1 -1
- package/www/build/{p-62b9b554.system.entry.js → p-dba5d7b7.system.entry.js} +3 -3
- package/www/data/locales/de.json +3 -3
- package/www/data/locales/en.json +3 -3
|
@@ -2899,11 +2899,11 @@ const button_actions$1 = {
|
|
|
2899
2899
|
select_printer: "Wähle Drucker"
|
|
2900
2900
|
};
|
|
2901
2901
|
const upload$1 = {
|
|
2902
|
-
description: "Ziehe
|
|
2902
|
+
description: "Ziehe Dateien hier in den Browser ",
|
|
2903
2903
|
meta_leading: "oder",
|
|
2904
|
-
meta_select: "wähle
|
|
2904
|
+
meta_select: "wähle Dateien aus",
|
|
2905
2905
|
meta_trailing: "um mit ezeep Blue zu drucken.",
|
|
2906
|
-
|
|
2906
|
+
selected_files: "Ausgewählte Dateien:"
|
|
2907
2907
|
};
|
|
2908
2908
|
const user_menu$1 = {
|
|
2909
2909
|
theme: "Farbschema",
|
|
@@ -2982,11 +2982,11 @@ const button_actions = {
|
|
|
2982
2982
|
select_printer: "Select Printer"
|
|
2983
2983
|
};
|
|
2984
2984
|
const upload = {
|
|
2985
|
-
description: "Drop
|
|
2985
|
+
description: "Drop files here into the browser ",
|
|
2986
2986
|
meta_leading: "or",
|
|
2987
|
-
meta_select: "select
|
|
2987
|
+
meta_select: "select files",
|
|
2988
2988
|
meta_trailing: "to print with ezeep Blue.",
|
|
2989
|
-
|
|
2989
|
+
selected_files: "Selected Files:"
|
|
2990
2990
|
};
|
|
2991
2991
|
const user_menu = {
|
|
2992
2992
|
theme: "Color theme",
|
|
@@ -32795,7 +32795,6 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32795
32795
|
this.printCancel = createEvent(this, "printCancel", 7);
|
|
32796
32796
|
this.printSubmit = createEvent(this, "printSubmit", 7);
|
|
32797
32797
|
this.logout = createEvent(this, "logout", 7);
|
|
32798
|
-
this.sasUri = '';
|
|
32799
32798
|
this.fileExtension = '';
|
|
32800
32799
|
this.duplexOptions = [
|
|
32801
32800
|
{
|
|
@@ -32819,7 +32818,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32819
32818
|
{
|
|
32820
32819
|
id: 2,
|
|
32821
32820
|
title: i18next.t('printer_selection.color_grayscale'),
|
|
32822
|
-
}
|
|
32821
|
+
},
|
|
32823
32822
|
];
|
|
32824
32823
|
this.hidemenu = false;
|
|
32825
32824
|
this.hideheader = false;
|
|
@@ -32846,14 +32845,14 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32846
32845
|
Paper: '',
|
|
32847
32846
|
Orientation: '',
|
|
32848
32847
|
Resolution: '',
|
|
32849
|
-
Tray: ''
|
|
32848
|
+
Tray: '',
|
|
32850
32849
|
},
|
|
32851
32850
|
OrientationsSupported: [],
|
|
32852
32851
|
PaperFormats: [],
|
|
32853
32852
|
Resolutions: [],
|
|
32854
32853
|
DuplexSupported: false,
|
|
32855
32854
|
Color: false,
|
|
32856
|
-
Trays: []
|
|
32855
|
+
Trays: [],
|
|
32857
32856
|
};
|
|
32858
32857
|
// needs to be initialised with empty strings
|
|
32859
32858
|
this.selectedProperties = {
|
|
@@ -32871,6 +32870,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32871
32870
|
trayname: '',
|
|
32872
32871
|
PageRanges: '',
|
|
32873
32872
|
};
|
|
32873
|
+
this.currentFileIndex = 0;
|
|
32874
|
+
this.totalFiles = 0;
|
|
32875
|
+
this.failedFiles = [];
|
|
32876
|
+
this.successfulFiles = [];
|
|
32877
|
+
this.partialSuccess = false;
|
|
32874
32878
|
/**
|
|
32875
32879
|
*
|
|
32876
32880
|
* Private methods
|
|
@@ -32878,6 +32882,9 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32878
32882
|
*/
|
|
32879
32883
|
/** Description... */
|
|
32880
32884
|
this.handleCancel = () => {
|
|
32885
|
+
this.failedFiles = [];
|
|
32886
|
+
this.successfulFiles = [];
|
|
32887
|
+
this.partialSuccess = false;
|
|
32881
32888
|
this.printCancel.emit();
|
|
32882
32889
|
};
|
|
32883
32890
|
this.validateData = (data) => {
|
|
@@ -32894,9 +32901,14 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32894
32901
|
this.handlePrint = async () => {
|
|
32895
32902
|
this.printButton.blur();
|
|
32896
32903
|
this.printProcessing = true;
|
|
32904
|
+
this.failedFiles = [];
|
|
32905
|
+
this.successfulFiles = [];
|
|
32906
|
+
this.partialSuccess = false;
|
|
32897
32907
|
// we have to initialse this obj with empty strings to display the select component
|
|
32898
32908
|
// but don't want to send any attributes with empty strings to the API
|
|
32899
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
32909
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
32910
|
+
this.selectedPrinterConfig.Trays.length >= 0 &&
|
|
32911
|
+
this.selectedPrinterConfig.Trays[0] == null) {
|
|
32900
32912
|
delete this.selectedProperties.trayname;
|
|
32901
32913
|
delete this.selectedProperties.defaultSource;
|
|
32902
32914
|
}
|
|
@@ -32956,8 +32968,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
32956
32968
|
this.printProcessing = false;
|
|
32957
32969
|
});
|
|
32958
32970
|
}
|
|
32959
|
-
if (this.
|
|
32960
|
-
await this.handleFiles(this.
|
|
32971
|
+
if (this.files && this.files.length > 0) {
|
|
32972
|
+
await this.handleFiles(this.files, cleanPrintProperties);
|
|
32961
32973
|
}
|
|
32962
32974
|
localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
|
|
32963
32975
|
localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
|
|
@@ -33005,11 +33017,16 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33005
33017
|
switch (event.detail) {
|
|
33006
33018
|
case 'print-success':
|
|
33007
33019
|
this.printSuccess = false;
|
|
33020
|
+
this.partialSuccess = false;
|
|
33021
|
+
this.failedFiles = [];
|
|
33022
|
+
this.successfulFiles = [];
|
|
33008
33023
|
this.printCancel.emit();
|
|
33009
33024
|
break;
|
|
33010
33025
|
case 'print-failed':
|
|
33011
33026
|
this.printProcessing = false;
|
|
33012
33027
|
this.printFailed = false;
|
|
33028
|
+
this.failedFiles = [];
|
|
33029
|
+
this.successfulFiles = [];
|
|
33013
33030
|
break;
|
|
33014
33031
|
case 'no-printers':
|
|
33015
33032
|
this.noPrinters = false;
|
|
@@ -33069,18 +33086,23 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33069
33086
|
.then((data) => {
|
|
33070
33087
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33071
33088
|
this.selectedPrinterConfig = Object.assign(Object.assign({}, this.selectedPrinterConfig), data[0]);
|
|
33072
|
-
this.selectedProperties.color =
|
|
33089
|
+
this.selectedProperties.color =
|
|
33090
|
+
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
33073
33091
|
this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
33074
33092
|
this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
|
|
33075
|
-
let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find(obj => obj.Default === true);
|
|
33093
|
+
let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find((obj) => obj.Default === true);
|
|
33076
33094
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
33077
33095
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
33078
|
-
let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
|
|
33079
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33096
|
+
let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find((obj) => obj.Default === true);
|
|
33097
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33098
|
+
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
33099
|
+
this.selectedPrinterConfig.Trays[0] != null) {
|
|
33080
33100
|
this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
|
|
33081
33101
|
this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
|
|
33082
33102
|
}
|
|
33083
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33103
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33104
|
+
this.selectedPrinterConfig.Trays.length >= 0 &&
|
|
33105
|
+
this.selectedPrinterConfig.Trays[0] == null) {
|
|
33084
33106
|
delete this.selectedProperties.trayname;
|
|
33085
33107
|
delete this.selectedProperties.defaultSource;
|
|
33086
33108
|
}
|
|
@@ -33091,7 +33113,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33091
33113
|
// this.setDefaultPaperFormat()
|
|
33092
33114
|
break;
|
|
33093
33115
|
case 'color':
|
|
33094
|
-
this.selectedProperties.color =
|
|
33116
|
+
this.selectedProperties.color =
|
|
33117
|
+
eventDetails.title == i18next.t('printer_selection.color_color') ? true : false;
|
|
33095
33118
|
break;
|
|
33096
33119
|
case 'orientation':
|
|
33097
33120
|
this.selectedProperties.orientation = eventDetails.id;
|
|
@@ -33110,11 +33133,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33110
33133
|
this.selectedProperties.paperwidth = eventDetails.value;
|
|
33111
33134
|
break;
|
|
33112
33135
|
case 'tray':
|
|
33113
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33136
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33137
|
+
this.selectedPrinterConfig.Trays.length >= 0 &&
|
|
33138
|
+
this.selectedPrinterConfig.Trays[0] == null) {
|
|
33114
33139
|
delete this.selectedProperties.trayname;
|
|
33115
33140
|
delete this.selectedProperties.defaultSource;
|
|
33116
33141
|
}
|
|
33117
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33142
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33143
|
+
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
33144
|
+
this.selectedPrinterConfig.Trays[0] != null) {
|
|
33118
33145
|
this.selectedProperties.trayname = eventDetails.title;
|
|
33119
33146
|
this.selectedProperties.defaultSource = eventDetails.id;
|
|
33120
33147
|
}
|
|
@@ -33124,9 +33151,9 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33124
33151
|
this.pageRangeInvalid = !validatePageRange(this.selectedProperties.PageRanges);
|
|
33125
33152
|
break;
|
|
33126
33153
|
case 'duplex':
|
|
33127
|
-
if (eventDetails.title == i18next.t('printer_selection.duplex_none')
|
|
33128
|
-
|
|
33129
|
-
|
|
33154
|
+
if (eventDetails.title == i18next.t('printer_selection.duplex_none') ||
|
|
33155
|
+
eventDetails.title == i18next.t('printer_selection.duplex_long') ||
|
|
33156
|
+
eventDetails.title == i18next.t('printer_selection.duplex_short')) {
|
|
33130
33157
|
this.selectedProperties.duplex = true;
|
|
33131
33158
|
}
|
|
33132
33159
|
else {
|
|
@@ -33137,59 +33164,107 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33137
33164
|
}
|
|
33138
33165
|
this.setPaperid();
|
|
33139
33166
|
}
|
|
33140
|
-
async handleFiles(
|
|
33167
|
+
async handleFiles(files, printPorperties) {
|
|
33168
|
+
this.totalFiles = files.length;
|
|
33169
|
+
this.currentFileIndex = 0;
|
|
33170
|
+
this.failedFiles = [];
|
|
33171
|
+
this.successfulFiles = [];
|
|
33172
|
+
// Process each file individually
|
|
33173
|
+
for (let i = 0; i < files.length; i++) {
|
|
33174
|
+
this.currentFileIndex = i;
|
|
33175
|
+
const file = files[i];
|
|
33176
|
+
try {
|
|
33177
|
+
await this.processSingleFile(file, printPorperties);
|
|
33178
|
+
this.successfulFiles.push(file.name);
|
|
33179
|
+
}
|
|
33180
|
+
catch (error) {
|
|
33181
|
+
console.error(`Error processing file ${file.name}:`, error);
|
|
33182
|
+
this.failedFiles.push(file.name);
|
|
33183
|
+
// Continue with the next file instead of stopping
|
|
33184
|
+
}
|
|
33185
|
+
}
|
|
33186
|
+
// Determine final status based on results
|
|
33187
|
+
if (this.failedFiles.length === 0) {
|
|
33188
|
+
// All files processed successfully
|
|
33189
|
+
this.printSuccess = true;
|
|
33190
|
+
this.partialSuccess = false;
|
|
33191
|
+
this.printProcessing = false;
|
|
33192
|
+
}
|
|
33193
|
+
else if (this.successfulFiles.length === 0) {
|
|
33194
|
+
// All files failed
|
|
33195
|
+
this.printFailed = true;
|
|
33196
|
+
this.partialSuccess = false;
|
|
33197
|
+
this.printProcessing = false;
|
|
33198
|
+
}
|
|
33199
|
+
else {
|
|
33200
|
+
// Some files succeeded, some failed - show partial success
|
|
33201
|
+
this.printSuccess = true;
|
|
33202
|
+
this.partialSuccess = true;
|
|
33203
|
+
this.printProcessing = false;
|
|
33204
|
+
}
|
|
33205
|
+
}
|
|
33206
|
+
async processSingleFile(file, printProperties) {
|
|
33141
33207
|
this.preparingUpload = true;
|
|
33142
33208
|
const response = await this.printService.prepareFileUpload(authStore.state.accessToken);
|
|
33143
33209
|
this.preparingUpload = false;
|
|
33144
|
-
|
|
33145
|
-
|
|
33146
|
-
|
|
33147
|
-
let res;
|
|
33210
|
+
const fileid = response.fileid;
|
|
33211
|
+
const sasUri = response.sasUri;
|
|
33212
|
+
const filetype = this.getFileExtension(file.name);
|
|
33148
33213
|
this.uploading = true;
|
|
33149
33214
|
try {
|
|
33150
|
-
|
|
33151
|
-
|
|
33152
|
-
|
|
33153
|
-
|
|
33154
|
-
|
|
33155
|
-
}
|
|
33156
|
-
this.uploading = false;
|
|
33157
|
-
if (res._response.status === 201) {
|
|
33158
|
-
this.printService
|
|
33159
|
-
.printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, printPorperties, this.filename)
|
|
33160
|
-
.then((data) => {
|
|
33215
|
+
// Upload the file
|
|
33216
|
+
const res = await this.printService.uploadBlobFiles(sasUri, file);
|
|
33217
|
+
if (res._response.status === 201) {
|
|
33218
|
+
// Print the file
|
|
33219
|
+
const data = await this.printService.printByFileID(authStore.state.accessToken, fileid, filetype, this.selectedPrinter.id, printProperties, file.name);
|
|
33161
33220
|
if (data.code === 804) {
|
|
33162
|
-
|
|
33163
|
-
this.printProcessing = false;
|
|
33221
|
+
throw new Error(`Print failed for file: ${file.name}`);
|
|
33164
33222
|
}
|
|
33165
33223
|
if (data.jobid) {
|
|
33166
33224
|
printStore.state.jobID = data.jobid;
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
validate: this.validateData,
|
|
33170
|
-
interval: this.POLL_INTERVAL,
|
|
33171
|
-
maxAttempts: this.MAX_POLL_ATTEMPTS,
|
|
33172
|
-
}).catch((err) => {
|
|
33173
|
-
console.log(err);
|
|
33174
|
-
this.printFailed = true;
|
|
33175
|
-
this.printProcessing = false;
|
|
33176
|
-
});
|
|
33225
|
+
// Wait for this print job to complete before processing the next file
|
|
33226
|
+
await this.waitForPrintCompletion();
|
|
33177
33227
|
}
|
|
33178
33228
|
else {
|
|
33179
|
-
|
|
33180
|
-
this.printProcessing = false;
|
|
33229
|
+
throw new Error(`No job ID returned for file: ${file.name}`);
|
|
33181
33230
|
}
|
|
33182
|
-
}
|
|
33183
|
-
|
|
33184
|
-
|
|
33185
|
-
|
|
33186
|
-
this.printProcessing = false;
|
|
33187
|
-
});
|
|
33231
|
+
}
|
|
33232
|
+
else {
|
|
33233
|
+
throw new Error(`Upload failed for file: ${file.name}`);
|
|
33234
|
+
}
|
|
33188
33235
|
}
|
|
33189
|
-
|
|
33190
|
-
this.
|
|
33191
|
-
|
|
33236
|
+
catch (error) {
|
|
33237
|
+
this.uploading = false;
|
|
33238
|
+
throw error;
|
|
33192
33239
|
}
|
|
33240
|
+
this.uploading = false;
|
|
33241
|
+
}
|
|
33242
|
+
async waitForPrintCompletion() {
|
|
33243
|
+
return new Promise((resolve, reject) => {
|
|
33244
|
+
const poll = async () => {
|
|
33245
|
+
try {
|
|
33246
|
+
const data = await this.printService.getPrintStatus();
|
|
33247
|
+
if (data.jobstatus === 0) {
|
|
33248
|
+
resolve();
|
|
33249
|
+
}
|
|
33250
|
+
else if (data.jobstatus === 1) {
|
|
33251
|
+
// Still processing, continue polling
|
|
33252
|
+
setTimeout(poll, this.POLL_INTERVAL);
|
|
33253
|
+
}
|
|
33254
|
+
else {
|
|
33255
|
+
reject(new Error('Print job failed'));
|
|
33256
|
+
}
|
|
33257
|
+
}
|
|
33258
|
+
catch (error) {
|
|
33259
|
+
reject(error);
|
|
33260
|
+
}
|
|
33261
|
+
};
|
|
33262
|
+
poll();
|
|
33263
|
+
});
|
|
33264
|
+
}
|
|
33265
|
+
getFileExtension(filename) {
|
|
33266
|
+
const extension = filename.split('.').pop();
|
|
33267
|
+
return extension ? extension.toLowerCase() : '';
|
|
33193
33268
|
}
|
|
33194
33269
|
setDefaultPaperFormat() {
|
|
33195
33270
|
var _a, _b, _c, _d, _e;
|
|
@@ -33240,18 +33315,23 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33240
33315
|
.then((data) => {
|
|
33241
33316
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33242
33317
|
this.selectedPrinterConfig = data[0];
|
|
33243
|
-
this.selectedProperties.color =
|
|
33318
|
+
this.selectedProperties.color =
|
|
33319
|
+
((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
|
|
33244
33320
|
this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
|
|
33245
33321
|
this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
|
|
33246
|
-
let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find(obj => obj.Default === true);
|
|
33322
|
+
let defaultPaper = (_d = this.selectedPrinterConfig.PaperFormats) === null || _d === void 0 ? void 0 : _d.find((obj) => obj.Default === true);
|
|
33247
33323
|
this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
|
|
33248
33324
|
this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
|
|
33249
|
-
let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
|
|
33250
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33325
|
+
let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find((obj) => obj.Default === true);
|
|
33326
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33327
|
+
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
33328
|
+
this.selectedPrinterConfig.Trays[0] != null) {
|
|
33251
33329
|
this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
|
|
33252
33330
|
this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
|
|
33253
33331
|
}
|
|
33254
|
-
if (this.selectedPrinterConfig.Trays &&
|
|
33332
|
+
if (this.selectedPrinterConfig.Trays &&
|
|
33333
|
+
this.selectedPrinterConfig.Trays.length >= 0 &&
|
|
33334
|
+
this.selectedPrinterConfig.Trays[0] == null) {
|
|
33255
33335
|
delete this.selectedProperties.trayname;
|
|
33256
33336
|
delete this.selectedProperties.defaultSource;
|
|
33257
33337
|
}
|
|
@@ -33273,10 +33353,12 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33273
33353
|
.then((printerConfig) => {
|
|
33274
33354
|
this.printerConfig = printerConfig;
|
|
33275
33355
|
});
|
|
33276
|
-
if (this.
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33356
|
+
if (this.files && this.files.length > 0) {
|
|
33357
|
+
// Validate all files
|
|
33358
|
+
const validationPromises = this.files.map((file) => this.validateFileType(file.name));
|
|
33359
|
+
const validationResults = await Promise.all(validationPromises);
|
|
33360
|
+
const allValid = validationResults.every((valid) => valid);
|
|
33361
|
+
this.notSupported = !allValid;
|
|
33280
33362
|
}
|
|
33281
33363
|
this.loading = false;
|
|
33282
33364
|
}
|
|
@@ -33287,11 +33369,25 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33287
33369
|
*/
|
|
33288
33370
|
render() {
|
|
33289
33371
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
33290
|
-
return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.
|
|
33291
|
-
? i18next.t('printer_selection.
|
|
33292
|
-
: this.
|
|
33293
|
-
? i18next.t('printer_selection.
|
|
33294
|
-
:
|
|
33372
|
+
return this.loading ? (h("ezp-status", { processing: true, description: i18next.t('printer_selection.loading'), instance: "loading" })) : (h(Host, { class: { seamless: this.seamless } }, h("div", { id: "box", "data-backdrop-surface": true }, !this.printStopped && (h(Fragment, null, this.printProcessing ? (h("ezp-status", { processing: true, description: this.totalFiles > 1
|
|
33373
|
+
? `${i18next.t('printer_selection.print_processing')} (${this.currentFileIndex + 1}/${this.totalFiles})`
|
|
33374
|
+
: this.preparingUpload
|
|
33375
|
+
? i18next.t('printer_selection.prepare_upload')
|
|
33376
|
+
: this.uploading
|
|
33377
|
+
? i18next.t('printer_selection.uploading')
|
|
33378
|
+
: i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.selectedPrinter.is_queue && this.printSuccess ? (h("ezp-status", { icon: "checkmark-alt", description: this.totalFiles > 1
|
|
33379
|
+
? this.failedFiles.length > 0
|
|
33380
|
+
? `${i18next.t('printer_selection.pull_print_success')} (${this.successfulFiles.length}/${this.totalFiles} files)`
|
|
33381
|
+
: `${i18next.t('printer_selection.pull_print_success')} (${this.totalFiles} files)`
|
|
33382
|
+
: i18next.t('printer_selection.pull_print_success'), instance: "print-success", close: true })) : this.printSuccess ? (h("ezp-status", { icon: this.partialSuccess ? 'exclamation-mark' : 'checkmark-alt', description: this.totalFiles > 1
|
|
33383
|
+
? this.partialSuccess
|
|
33384
|
+
? `${i18next.t('printer_selection.print_success')} (${this.successfulFiles.length}/${this.totalFiles} files) - ${this.failedFiles.length} failed`
|
|
33385
|
+
: `${i18next.t('printer_selection.print_success')} (${this.totalFiles} files)`
|
|
33386
|
+
: 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)), !this.hideheader && (h("div", { id: "header" }, h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), h("ezp-label", { text: !this.notSupported
|
|
33387
|
+
? this.files && this.files.length > 1
|
|
33388
|
+
? `${this.files.length} files selected`
|
|
33389
|
+
: this.filename
|
|
33390
|
+
: '', 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
|
|
33295
33391
|
? i18next.t('printer_selection.select_printer')
|
|
33296
33392
|
: i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
|
|
33297
33393
|
id: printer.id,
|
|
@@ -33303,27 +33399,29 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33303
33399
|
id: option.id,
|
|
33304
33400
|
title: option.title,
|
|
33305
33401
|
meta: '',
|
|
33306
|
-
type: 'color'
|
|
33307
|
-
})), preSelected: this.selectedPrinter.id
|
|
33308
|
-
&& ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == "color"
|
|
33402
|
+
type: 'color',
|
|
33403
|
+
})), preSelected: this.selectedPrinter.id && ((_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Color) == 'color'
|
|
33309
33404
|
? i18next.t('printer_selection.color_color')
|
|
33310
33405
|
: i18next.t('printer_selection.color_grayscale'), 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: (_c = this.duplexOptions) === null || _c === void 0 ? void 0 : _c.map((option) => ({
|
|
33311
33406
|
id: option.id,
|
|
33312
33407
|
title: option.title,
|
|
33313
33408
|
meta: '',
|
|
33314
33409
|
type: 'duplex',
|
|
33315
|
-
})), preSelected: this.selectedPrinter.id &&
|
|
33410
|
+
})), preSelected: this.selectedPrinter.id &&
|
|
33411
|
+
((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == 'duplex_simplex'
|
|
33316
33412
|
? i18next.t('printer_selection.duplex_none')
|
|
33317
|
-
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) ==
|
|
33413
|
+
: ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == 'duplex_vertical'
|
|
33318
33414
|
? i18next.t('printer_selection.duplex_long')
|
|
33319
|
-
: ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) ==
|
|
33415
|
+
: ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == 'duplex_horizontal'
|
|
33320
33416
|
? i18next.t('printer_selection.duplex_short')
|
|
33321
|
-
: 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 &&
|
|
33322
|
-
|
|
33323
|
-
|
|
33324
|
-
|
|
33325
|
-
|
|
33326
|
-
|
|
33417
|
+
: 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 &&
|
|
33418
|
+
this.selectedPrinterConfig.PaperFormats.map((format) => ({
|
|
33419
|
+
id: format.Id,
|
|
33420
|
+
title: format.Name,
|
|
33421
|
+
meta: `${format.XRes} x ${format.YRes}`,
|
|
33422
|
+
type: 'format',
|
|
33423
|
+
})), preSelected: this.selectedPrinter.id &&
|
|
33424
|
+
((_g = this.selectedPrinterConfig.PaperFormats) === null || _g === void 0 ? void 0 : _g.find((el) => { var _a; return el.Name.includes((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Paper); }))
|
|
33327
33425
|
? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
|
|
33328
33426
|
: null, disabled: !(((_j = this.selectedPrinterConfig.PaperFormats) === null || _j === void 0 ? void 0 : _j.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) => ({
|
|
33329
33427
|
id: index + 1,
|
|
@@ -33335,14 +33433,20 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
|
|
|
33335
33433
|
title: option,
|
|
33336
33434
|
meta: '',
|
|
33337
33435
|
type: 'quality',
|
|
33338
|
-
})), preSelected: this.selectedPrinter.id &&
|
|
33436
|
+
})), preSelected: this.selectedPrinter.id &&
|
|
33437
|
+
((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
|
|
33339
33438
|
? this.selectedPrinterConfig.Default.Resolution
|
|
33340
|
-
: null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.length) > 0) }), this.selectedPrinterConfig.Trays &&
|
|
33341
|
-
|
|
33342
|
-
|
|
33343
|
-
|
|
33344
|
-
|
|
33345
|
-
|
|
33439
|
+
: null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.length) > 0) }), this.selectedPrinterConfig.Trays &&
|
|
33440
|
+
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
33441
|
+
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 &&
|
|
33442
|
+
this.selectedPrinterConfig.Trays.length >= 1 &&
|
|
33443
|
+
this.selectedPrinterConfig.Trays.map((trays) => ({
|
|
33444
|
+
title: trays.Name,
|
|
33445
|
+
id: trays.Index,
|
|
33446
|
+
meta: '',
|
|
33447
|
+
type: 'tray',
|
|
33448
|
+
})), preSelected: this.selectedPrinter.id &&
|
|
33449
|
+
((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
|
|
33346
33450
|
? this.selectedPrinterConfig.Default.Tray
|
|
33347
33451
|
: null })) : null, h("ezp-input", { icon: "paper_range", suffix: "", placeholder: "1-2,4-5,8", value: 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 }))));
|
|
33348
33452
|
}
|
|
@@ -33381,6 +33485,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33381
33485
|
this.authOpen = false;
|
|
33382
33486
|
this.onlyGetSasUri = false;
|
|
33383
33487
|
this.noDocumentOpen = false;
|
|
33488
|
+
this.files = [];
|
|
33384
33489
|
}
|
|
33385
33490
|
/** Watchers */
|
|
33386
33491
|
watchFileData(newValue, oldValue) {
|
|
@@ -33390,7 +33495,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33390
33495
|
for (let i = 0; i < newValue.length; i++) {
|
|
33391
33496
|
array[i] = newValue.charCodeAt(i);
|
|
33392
33497
|
}
|
|
33393
|
-
this.
|
|
33498
|
+
this.files = [new File([array], this.filename)];
|
|
33394
33499
|
}
|
|
33395
33500
|
}
|
|
33396
33501
|
watchFilename(newValue, oldValue) {
|
|
@@ -33442,8 +33547,8 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33442
33547
|
}
|
|
33443
33548
|
}
|
|
33444
33549
|
listenUploadFile(event) {
|
|
33445
|
-
this.
|
|
33446
|
-
this.
|
|
33550
|
+
this.files = event.detail;
|
|
33551
|
+
this.filename = this.files.length > 0 ? this.files[0].name : '';
|
|
33447
33552
|
this.open();
|
|
33448
33553
|
}
|
|
33449
33554
|
listenDialogClose(event) {
|
|
@@ -33574,7 +33679,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33574
33679
|
render() {
|
|
33575
33680
|
return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
|
|
33576
33681
|
? this.systemAppearance
|
|
33577
|
-
: userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid,
|
|
33682
|
+
: userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, this.trigger === 'custom' ? (h("slot", null)) : this.trigger === 'file' ? (h("ezp-upload", null)) : (this.trigger === 'button' && (h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (h("ezp-printer-selection", { clientID: this.clientid, redirectURI: this.redirecturi, filename: this.filename, fileurl: this.fileurl, filetype: this.filetype, fileid: this.fileid, files: this.files, hidemenu: this.hidemenu, hideheader: this.hideheader, seamless: this.seamless })) : this.noDocumentOpen ? (h("ezp-dialog", { heading: i18next.t('no_document_dialog.heading'), description: i18next.t('no_document_dialog.description'), action: i18next.t('no_document_dialog.action'), iconName: "question-mark", instance: "no-document-selected" })) : null));
|
|
33578
33683
|
}
|
|
33579
33684
|
static get watchers() { return {
|
|
33580
33685
|
"filedata": ["watchFileData"],
|
|
@@ -33932,7 +34037,7 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
33932
34037
|
* States
|
|
33933
34038
|
*
|
|
33934
34039
|
*/
|
|
33935
|
-
this.
|
|
34040
|
+
this.selectedFiles = [];
|
|
33936
34041
|
this.dragging = false;
|
|
33937
34042
|
/**
|
|
33938
34043
|
*
|
|
@@ -33940,8 +34045,9 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
33940
34045
|
*
|
|
33941
34046
|
*/
|
|
33942
34047
|
this.handleInput = () => {
|
|
33943
|
-
|
|
33944
|
-
this.
|
|
34048
|
+
const files = Array.from(this.input.files);
|
|
34049
|
+
this.selectedFiles = files;
|
|
34050
|
+
this.uploadFile.emit(files);
|
|
33945
34051
|
};
|
|
33946
34052
|
}
|
|
33947
34053
|
/**
|
|
@@ -33964,12 +34070,13 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
33964
34070
|
event.stopPropagation();
|
|
33965
34071
|
event.preventDefault();
|
|
33966
34072
|
this.dragging = false;
|
|
33967
|
-
|
|
33968
|
-
this.
|
|
34073
|
+
const files = Array.from(event.dataTransfer.files);
|
|
34074
|
+
this.selectedFiles = files;
|
|
34075
|
+
this.uploadFile.emit(files);
|
|
33969
34076
|
}
|
|
33970
34077
|
listenPrintCancel() {
|
|
33971
34078
|
this.form.reset();
|
|
33972
|
-
this.
|
|
34079
|
+
this.selectedFiles = [];
|
|
33973
34080
|
}
|
|
33974
34081
|
/**
|
|
33975
34082
|
*
|
|
@@ -33977,7 +34084,7 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
33977
34084
|
*
|
|
33978
34085
|
*/
|
|
33979
34086
|
render() {
|
|
33980
|
-
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.
|
|
34087
|
+
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: file.name })))))))));
|
|
33981
34088
|
}
|
|
33982
34089
|
static get style() { return ezpUploadCss; }
|
|
33983
34090
|
};
|
|
@@ -34088,13 +34195,13 @@ const EzpIcon = /*@__PURE__*/proxyCustomElement(EzpIcon$1, [1,"ezp-icon",{"name"
|
|
|
34088
34195
|
const EzpIconButton = /*@__PURE__*/proxyCustomElement(EzpIconButton$1, [1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}]);
|
|
34089
34196
|
const EzpInput = /*@__PURE__*/proxyCustomElement(EzpInput$1, [1,"ezp-input",{"label":[1],"value":[1032],"type":[1],"icon":[1],"suffix":[513],"eventType":[1,"event-type"],"placeholder":[1],"focused":[32]}]);
|
|
34090
34197
|
const EzpLabel = /*@__PURE__*/proxyCustomElement(EzpLabel$1, [1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]);
|
|
34091
|
-
const EzpPrinterSelection = /*@__PURE__*/proxyCustomElement(EzpPrinterSelection$1, [1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"
|
|
34092
|
-
const EzpPrinting = /*@__PURE__*/proxyCustomElement(EzpPrinting$1, [1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"
|
|
34198
|
+
const EzpPrinterSelection = /*@__PURE__*/proxyCustomElement(EzpPrinterSelection$1, [1,"ezp-printer-selection",{"clientID":[1,"client-i-d"],"redirectURI":[1,"redirect-u-r-i"],"filename":[1025],"fileurl":[1],"filetype":[1025],"fileid":[1025],"files":[16],"hidemenu":[4],"hideheader":[4],"seamless":[4],"loading":[32],"printProcessing":[32],"pageRangeInvalid":[32],"uploading":[32],"preparingUpload":[32],"printSuccess":[32],"printFailed":[32],"notSupported":[32],"noPrinters":[32],"userMenuOpen":[32],"printStopped":[32],"userName":[32],"printers":[32],"selectedPrinter":[32],"printerConfig":[32],"selectedPrinterConfig":[32],"selectedProperties":[32],"paperid":[32],"currentFileIndex":[32],"totalFiles":[32],"failedFiles":[32],"successfulFiles":[32],"partialSuccess":[32]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
|
|
34199
|
+
const EzpPrinting = /*@__PURE__*/proxyCustomElement(EzpPrinting$1, [1,"ezp-printing",{"clientid":[1],"redirecturi":[1],"filename":[1025],"fileurl":[1],"filetype":[1],"custom":[4],"hidelogin":[4],"hidemenu":[4],"hideheader":[4],"authapihosturl":[1],"printapihosturl":[1],"theme":[1],"fileid":[1],"appearance":[1],"trigger":[1],"language":[1],"code":[1],"filedata":[1],"seamless":[4],"printOpen":[32],"authOpen":[32],"onlyGetSasUri":[32],"noDocumentOpen":[32],"systemAppearance":[32],"files":[32]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"],[0,"logout","listenLogout"]]]);
|
|
34093
34200
|
const EzpSelect = /*@__PURE__*/proxyCustomElement(EzpSelect$1, [1,"ezp-select",{"icon":[1],"label":[1],"optionFlow":[1,"option-flow"],"options":[16],"placeholder":[1],"preSelected":[8,"pre-selected"],"toggleFlow":[1,"toggle-flow"],"disabled":[4],"expanded":[32],"selected":[32]}]);
|
|
34094
34201
|
const EzpStatus = /*@__PURE__*/proxyCustomElement(EzpStatus$1, [1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}]);
|
|
34095
34202
|
const EzpStepper = /*@__PURE__*/proxyCustomElement(EzpStepper$1, [1,"ezp-stepper",{"icon":[1],"label":[1],"max":[2],"min":[2],"canDecrease":[32],"canIncrease":[32],"focused":[32],"value":[32]}]);
|
|
34096
34203
|
const EzpTextButton = /*@__PURE__*/proxyCustomElement(EzpTextButton$1, [1,"ezp-text-button",{"blank":[4],"disabled":[4],"href":[1],"level":[1],"label":[1],"type":[1],"small":[4]}]);
|
|
34097
|
-
const EzpUpload = /*@__PURE__*/proxyCustomElement(EzpUpload$1, [1,"ezp-upload",{"
|
|
34204
|
+
const EzpUpload = /*@__PURE__*/proxyCustomElement(EzpUpload$1, [1,"ezp-upload",{"selectedFiles":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]]);
|
|
34098
34205
|
const EzpUserMenu = /*@__PURE__*/proxyCustomElement(EzpUserMenu$1, [1,"ezp-user-menu",{"name":[1],"open":[1028]}]);
|
|
34099
34206
|
const defineCustomElements = (opts) => {
|
|
34100
34207
|
if (typeof customElements !== 'undefined') {
|
|
@@ -165,13 +165,13 @@ export class EzpLabel {
|
|
|
165
165
|
|
|
166
166
|
export declare interface EzpPrinterSelection extends Components.EzpPrinterSelection {}
|
|
167
167
|
@ProxyCmp({
|
|
168
|
-
inputs: ['clientID', '
|
|
168
|
+
inputs: ['clientID', 'fileid', 'filename', 'files', 'filetype', 'fileurl', 'hideheader', 'hidemenu', 'redirectURI', 'seamless']
|
|
169
169
|
})
|
|
170
170
|
@Component({
|
|
171
171
|
selector: 'ezp-printer-selection',
|
|
172
172
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
173
173
|
template: '<ng-content></ng-content>',
|
|
174
|
-
inputs: ['clientID', '
|
|
174
|
+
inputs: ['clientID', 'fileid', 'filename', 'files', 'filetype', 'fileurl', 'hideheader', 'hidemenu', 'redirectURI', 'seamless'],
|
|
175
175
|
outputs: ['printCancel', 'printSubmit', 'logout']
|
|
176
176
|
})
|
|
177
177
|
export class EzpPrinterSelection {
|