@ezeep/ezeep-js 1.0.235 → 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.
Files changed (31) hide show
  1. package/dist/cjs/ezeep.cjs.js +1 -1
  2. package/dist/cjs/ezp-auth_15.cjs.entry.js +225 -107
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +206 -95
  5. package/dist/collection/components/ezp-printing/ezp-printing.js +6 -5
  6. package/dist/collection/components/ezp-upload/ezp-upload.js +13 -11
  7. package/dist/collection/services/print.js +9 -0
  8. package/dist/custom-elements/index.js +228 -110
  9. package/dist/directives/proxies.ts +2 -2
  10. package/dist/esm/ezeep.js +1 -1
  11. package/dist/esm/ezp-auth_15.entry.js +225 -107
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm-es5/ezeep.js +1 -1
  14. package/dist/esm-es5/ezp-auth_15.entry.js +3 -3
  15. package/dist/esm-es5/loader.js +1 -1
  16. package/dist/ezeep/ezeep.esm.js +1 -1
  17. package/dist/ezeep/{p-9e3d9e95.entry.js → p-0aba6822.entry.js} +2 -2
  18. package/dist/ezeep/p-84bd195a.system.js +1 -1
  19. package/dist/ezeep/{p-d89d8671.system.entry.js → p-dba5d7b7.system.entry.js} +3 -3
  20. package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +10 -3
  21. package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -1
  22. package/dist/types/components/ezp-upload/ezp-upload.d.ts +1 -1
  23. package/dist/types/components.d.ts +2 -2
  24. package/dist/types/services/print.d.ts +2 -0
  25. package/package.json +1 -1
  26. package/www/build/ezeep.esm.js +1 -1
  27. package/www/build/{p-9e3d9e95.entry.js → p-0aba6822.entry.js} +2 -2
  28. package/www/build/p-84bd195a.system.js +1 -1
  29. package/www/build/{p-d89d8671.system.entry.js → p-dba5d7b7.system.entry.js} +3 -3
  30. package/www/data/locales/de.json +3 -3
  31. 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 eine Datei hier in den Browser ",
2902
+ description: "Ziehe Dateien hier in den Browser ",
2903
2903
  meta_leading: "oder",
2904
- meta_select: "wähle eine Datei aus",
2904
+ meta_select: "wähle Dateien aus",
2905
2905
  meta_trailing: "um mit ezeep Blue zu drucken.",
2906
- selected_file: "Ausgewählte Datei:"
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 a file here into the browser ",
2985
+ description: "Drop files here into the browser ",
2986
2986
  meta_leading: "or",
2987
- meta_select: "select a file",
2987
+ meta_select: "select files",
2988
2988
  meta_trailing: "to print with ezeep Blue.",
2989
- selected_file: "Selected File:"
2989
+ selected_files: "Selected Files:"
2990
2990
  };
2991
2991
  const user_menu = {
2992
2992
  theme: "Color theme",
@@ -32594,6 +32594,7 @@ class PageBlobClient extends BlobClient {
32594
32594
 
32595
32595
  class EzpPrintService {
32596
32596
  constructor(redirectURI, clientID) {
32597
+ this.abortController = null;
32597
32598
  this.getPrintStatus = () => {
32598
32599
  return fetch(`https://${this.printingApi}/sfapi/Status/?id=${encodeURIComponent(printStore.state.jobID)}`, {
32599
32600
  headers: {
@@ -32682,6 +32683,7 @@ class EzpPrintService {
32682
32683
  });
32683
32684
  }
32684
32685
  printFileByUrl(accessToken, fileUrl, fileType, printerID, properties, filename, printAndDelete) {
32686
+ this.abortController = new AbortController();
32685
32687
  return fetch(`https://${this.printingApi}/sfapi/Print/`, {
32686
32688
  method: 'POST',
32687
32689
  headers: {
@@ -32689,8 +32691,15 @@ class EzpPrintService {
32689
32691
  'Content-Type': 'application/json',
32690
32692
  },
32691
32693
  body: JSON.stringify(Object.assign(Object.assign(Object.assign({ fileurl: fileUrl, type: fileType, printerid: printerID }, (filename && { alias: filename })), (printAndDelete && { printanddelete: printAndDelete })), { properties })),
32694
+ signal: this.abortController.signal
32692
32695
  });
32693
32696
  }
32697
+ abortPrint() {
32698
+ if (this.abortController) {
32699
+ this.abortController.abort();
32700
+ this.abortController = null;
32701
+ }
32702
+ }
32694
32703
  printByFileID(accessToken, fileID, fileType, printerID, properties, filename, printAndDelete) {
32695
32704
  return fetch(`https://${this.printingApi}/sfapi/Print/`, {
32696
32705
  method: 'POST',
@@ -32786,7 +32795,6 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32786
32795
  this.printCancel = createEvent(this, "printCancel", 7);
32787
32796
  this.printSubmit = createEvent(this, "printSubmit", 7);
32788
32797
  this.logout = createEvent(this, "logout", 7);
32789
- this.sasUri = '';
32790
32798
  this.fileExtension = '';
32791
32799
  this.duplexOptions = [
32792
32800
  {
@@ -32810,7 +32818,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32810
32818
  {
32811
32819
  id: 2,
32812
32820
  title: i18next.t('printer_selection.color_grayscale'),
32813
- }
32821
+ },
32814
32822
  ];
32815
32823
  this.hidemenu = false;
32816
32824
  this.hideheader = false;
@@ -32837,14 +32845,14 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32837
32845
  Paper: '',
32838
32846
  Orientation: '',
32839
32847
  Resolution: '',
32840
- Tray: ''
32848
+ Tray: '',
32841
32849
  },
32842
32850
  OrientationsSupported: [],
32843
32851
  PaperFormats: [],
32844
32852
  Resolutions: [],
32845
32853
  DuplexSupported: false,
32846
32854
  Color: false,
32847
- Trays: []
32855
+ Trays: [],
32848
32856
  };
32849
32857
  // needs to be initialised with empty strings
32850
32858
  this.selectedProperties = {
@@ -32862,6 +32870,11 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32862
32870
  trayname: '',
32863
32871
  PageRanges: '',
32864
32872
  };
32873
+ this.currentFileIndex = 0;
32874
+ this.totalFiles = 0;
32875
+ this.failedFiles = [];
32876
+ this.successfulFiles = [];
32877
+ this.partialSuccess = false;
32865
32878
  /**
32866
32879
  *
32867
32880
  * Private methods
@@ -32869,6 +32882,9 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32869
32882
  */
32870
32883
  /** Description... */
32871
32884
  this.handleCancel = () => {
32885
+ this.failedFiles = [];
32886
+ this.successfulFiles = [];
32887
+ this.partialSuccess = false;
32872
32888
  this.printCancel.emit();
32873
32889
  };
32874
32890
  this.validateData = (data) => {
@@ -32885,9 +32901,14 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32885
32901
  this.handlePrint = async () => {
32886
32902
  this.printButton.blur();
32887
32903
  this.printProcessing = true;
32904
+ this.failedFiles = [];
32905
+ this.successfulFiles = [];
32906
+ this.partialSuccess = false;
32888
32907
  // we have to initialse this obj with empty strings to display the select component
32889
32908
  // but don't want to send any attributes with empty strings to the API
32890
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
32909
+ if (this.selectedPrinterConfig.Trays &&
32910
+ this.selectedPrinterConfig.Trays.length >= 0 &&
32911
+ this.selectedPrinterConfig.Trays[0] == null) {
32891
32912
  delete this.selectedProperties.trayname;
32892
32913
  delete this.selectedProperties.defaultSource;
32893
32914
  }
@@ -32947,8 +32968,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32947
32968
  this.printProcessing = false;
32948
32969
  });
32949
32970
  }
32950
- if (this.file) {
32951
- await this.handleFiles(this.file, cleanPrintProperties);
32971
+ if (this.files && this.files.length > 0) {
32972
+ await this.handleFiles(this.files, cleanPrintProperties);
32952
32973
  }
32953
32974
  localStorage.setItem('properties', JSON.stringify(this.selectedProperties));
32954
32975
  localStorage.setItem('printer', JSON.stringify(this.selectedPrinter));
@@ -32988,17 +33009,24 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32988
33009
  if (event.detail === 'print-processing') {
32989
33010
  this.printStopped = true;
32990
33011
  this.printProcessing = false;
33012
+ // Abort the print request
33013
+ this.printService.abortPrint();
32991
33014
  }
32992
33015
  }
32993
33016
  listenStatusClose(event) {
32994
33017
  switch (event.detail) {
32995
33018
  case 'print-success':
32996
33019
  this.printSuccess = false;
33020
+ this.partialSuccess = false;
33021
+ this.failedFiles = [];
33022
+ this.successfulFiles = [];
32997
33023
  this.printCancel.emit();
32998
33024
  break;
32999
33025
  case 'print-failed':
33000
33026
  this.printProcessing = false;
33001
33027
  this.printFailed = false;
33028
+ this.failedFiles = [];
33029
+ this.successfulFiles = [];
33002
33030
  break;
33003
33031
  case 'no-printers':
33004
33032
  this.noPrinters = false;
@@ -33058,18 +33086,23 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33058
33086
  .then((data) => {
33059
33087
  var _a, _b, _c, _d, _e, _f, _g;
33060
33088
  this.selectedPrinterConfig = Object.assign(Object.assign({}, this.selectedPrinterConfig), data[0]);
33061
- this.selectedProperties.color = ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color" ? true : false;
33089
+ this.selectedProperties.color =
33090
+ ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
33062
33091
  this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
33063
33092
  this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
33064
- 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);
33065
33094
  this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
33066
33095
  this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
33067
- let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
33068
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
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) {
33069
33100
  this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
33070
33101
  this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
33071
33102
  }
33072
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33103
+ if (this.selectedPrinterConfig.Trays &&
33104
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33105
+ this.selectedPrinterConfig.Trays[0] == null) {
33073
33106
  delete this.selectedProperties.trayname;
33074
33107
  delete this.selectedProperties.defaultSource;
33075
33108
  }
@@ -33080,7 +33113,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33080
33113
  // this.setDefaultPaperFormat()
33081
33114
  break;
33082
33115
  case 'color':
33083
- this.selectedProperties.color = eventDetails.title == i18next.t('printer_selection.color_color') ? true : false;
33116
+ this.selectedProperties.color =
33117
+ eventDetails.title == i18next.t('printer_selection.color_color') ? true : false;
33084
33118
  break;
33085
33119
  case 'orientation':
33086
33120
  this.selectedProperties.orientation = eventDetails.id;
@@ -33099,11 +33133,15 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33099
33133
  this.selectedProperties.paperwidth = eventDetails.value;
33100
33134
  break;
33101
33135
  case 'tray':
33102
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33136
+ if (this.selectedPrinterConfig.Trays &&
33137
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33138
+ this.selectedPrinterConfig.Trays[0] == null) {
33103
33139
  delete this.selectedProperties.trayname;
33104
33140
  delete this.selectedProperties.defaultSource;
33105
33141
  }
33106
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
33142
+ if (this.selectedPrinterConfig.Trays &&
33143
+ this.selectedPrinterConfig.Trays.length >= 1 &&
33144
+ this.selectedPrinterConfig.Trays[0] != null) {
33107
33145
  this.selectedProperties.trayname = eventDetails.title;
33108
33146
  this.selectedProperties.defaultSource = eventDetails.id;
33109
33147
  }
@@ -33113,9 +33151,9 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33113
33151
  this.pageRangeInvalid = !validatePageRange(this.selectedProperties.PageRanges);
33114
33152
  break;
33115
33153
  case 'duplex':
33116
- if (eventDetails.title == i18next.t('printer_selection.duplex_none')
33117
- || eventDetails.title == i18next.t('printer_selection.duplex_long')
33118
- || eventDetails.title == i18next.t('printer_selection.duplex_short')) {
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')) {
33119
33157
  this.selectedProperties.duplex = true;
33120
33158
  }
33121
33159
  else {
@@ -33126,59 +33164,107 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33126
33164
  }
33127
33165
  this.setPaperid();
33128
33166
  }
33129
- async handleFiles(file, printPorperties) {
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) {
33130
33207
  this.preparingUpload = true;
33131
33208
  const response = await this.printService.prepareFileUpload(authStore.state.accessToken);
33132
33209
  this.preparingUpload = false;
33133
- this.fileid = response.fileid;
33134
- this.sasUri = response.sasUri;
33135
- this.filetype = this.fileExtension;
33136
- let res;
33210
+ const fileid = response.fileid;
33211
+ const sasUri = response.sasUri;
33212
+ const filetype = this.getFileExtension(file.name);
33137
33213
  this.uploading = true;
33138
33214
  try {
33139
- res = await this.printService.uploadBlobFiles(this.sasUri, file);
33140
- }
33141
- catch (error) {
33142
- this.printProcessing = false;
33143
- this.printFailed = true;
33144
- }
33145
- this.uploading = false;
33146
- if (res._response.status === 201) {
33147
- this.printService
33148
- .printByFileID(authStore.state.accessToken, this.fileid, this.filetype, this.selectedPrinter.id, printPorperties, this.filename)
33149
- .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);
33150
33220
  if (data.code === 804) {
33151
- this.printFailed = true;
33152
- this.printProcessing = false;
33221
+ throw new Error(`Print failed for file: ${file.name}`);
33153
33222
  }
33154
33223
  if (data.jobid) {
33155
33224
  printStore.state.jobID = data.jobid;
33156
- poll({
33157
- fn: this.printService.getPrintStatus,
33158
- validate: this.validateData,
33159
- interval: this.POLL_INTERVAL,
33160
- maxAttempts: this.MAX_POLL_ATTEMPTS,
33161
- }).catch((err) => {
33162
- console.log(err);
33163
- this.printFailed = true;
33164
- this.printProcessing = false;
33165
- });
33225
+ // Wait for this print job to complete before processing the next file
33226
+ await this.waitForPrintCompletion();
33166
33227
  }
33167
33228
  else {
33168
- this.printFailed = true;
33169
- this.printProcessing = false;
33229
+ throw new Error(`No job ID returned for file: ${file.name}`);
33170
33230
  }
33171
- })
33172
- .catch((error) => {
33173
- console.log(error);
33174
- this.printFailed = true;
33175
- this.printProcessing = false;
33176
- });
33231
+ }
33232
+ else {
33233
+ throw new Error(`Upload failed for file: ${file.name}`);
33234
+ }
33177
33235
  }
33178
- else {
33179
- this.printFailed = true;
33180
- this.printProcessing = false;
33236
+ catch (error) {
33237
+ this.uploading = false;
33238
+ throw error;
33181
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() : '';
33182
33268
  }
33183
33269
  setDefaultPaperFormat() {
33184
33270
  var _a, _b, _c, _d, _e;
@@ -33229,18 +33315,23 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33229
33315
  .then((data) => {
33230
33316
  var _a, _b, _c, _d, _e, _f, _g;
33231
33317
  this.selectedPrinterConfig = data[0];
33232
- this.selectedProperties.color = ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == "color" ? true : false;
33318
+ this.selectedProperties.color =
33319
+ ((_a = this.selectedPrinterConfig.Default) === null || _a === void 0 ? void 0 : _a.Color) == 'color' ? true : false;
33233
33320
  this.selectedProperties.orientation = (_b = this.selectedPrinterConfig.Default) === null || _b === void 0 ? void 0 : _b.Orientation;
33234
33321
  this.selectedProperties.resolution = (_c = this.selectedPrinterConfig.Default) === null || _c === void 0 ? void 0 : _c.Resolution;
33235
- 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);
33236
33323
  this.selectedProperties.paper = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Name;
33237
33324
  this.selectedProperties.paperid = defaultPaper === null || defaultPaper === void 0 ? void 0 : defaultPaper.Id;
33238
- let defaultSource = (_e = this.selectedPrinterConfig.Trays) === null || _e === void 0 ? void 0 : _e.find(obj => obj.Default === true);
33239
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 1 && this.selectedPrinterConfig.Trays[0] != null) {
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) {
33240
33329
  this.selectedProperties.trayname = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Name;
33241
33330
  this.selectedProperties.defaultSource = defaultSource === null || defaultSource === void 0 ? void 0 : defaultSource.Index;
33242
33331
  }
33243
- if (this.selectedPrinterConfig.Trays && this.selectedPrinterConfig.Trays.length >= 0 && this.selectedPrinterConfig.Trays[0] == null) {
33332
+ if (this.selectedPrinterConfig.Trays &&
33333
+ this.selectedPrinterConfig.Trays.length >= 0 &&
33334
+ this.selectedPrinterConfig.Trays[0] == null) {
33244
33335
  delete this.selectedProperties.trayname;
33245
33336
  delete this.selectedProperties.defaultSource;
33246
33337
  }
@@ -33262,10 +33353,12 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33262
33353
  .then((printerConfig) => {
33263
33354
  this.printerConfig = printerConfig;
33264
33355
  });
33265
- if (this.file) {
33266
- await this.validateFileType(this.filename).then((valid) => {
33267
- this.notSupported = !valid ? true : false;
33268
- });
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;
33269
33362
  }
33270
33363
  this.loading = false;
33271
33364
  }
@@ -33276,11 +33369,25 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33276
33369
  */
33277
33370
  render() {
33278
33371
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
33279
- 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.preparingUpload
33280
- ? i18next.t('printer_selection.prepare_upload')
33281
- : this.uploading
33282
- ? i18next.t('printer_selection.uploading')
33283
- : 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)), !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 ? 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
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
33284
33391
  ? i18next.t('printer_selection.select_printer')
33285
33392
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33286
33393
  id: printer.id,
@@ -33292,27 +33399,29 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33292
33399
  id: option.id,
33293
33400
  title: option.title,
33294
33401
  meta: '',
33295
- type: 'color'
33296
- })), preSelected: this.selectedPrinter.id
33297
- && ((_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'
33298
33404
  ? i18next.t('printer_selection.color_color')
33299
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) => ({
33300
33406
  id: option.id,
33301
33407
  title: option.title,
33302
33408
  meta: '',
33303
33409
  type: 'duplex',
33304
- })), preSelected: this.selectedPrinter.id && ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == "duplex_simplex"
33410
+ })), preSelected: this.selectedPrinter.id &&
33411
+ ((_d = this.selectedPrinterConfig.Default) === null || _d === void 0 ? void 0 : _d.Duplex) == 'duplex_simplex'
33305
33412
  ? i18next.t('printer_selection.duplex_none')
33306
- : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == "duplex_vertical"
33413
+ : ((_e = this.selectedPrinterConfig.Default) === null || _e === void 0 ? void 0 : _e.Duplex) == 'duplex_vertical'
33307
33414
  ? i18next.t('printer_selection.duplex_long')
33308
- : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == "duplex_horizontal"
33415
+ : ((_f = this.selectedPrinterConfig.Default) === null || _f === void 0 ? void 0 : _f.Duplex) == 'duplex_horizontal'
33309
33416
  ? i18next.t('printer_selection.duplex_short')
33310
- : 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) => ({
33311
- id: format.Id,
33312
- title: format.Name,
33313
- meta: `${format.XRes} x ${format.YRes}`,
33314
- type: 'format',
33315
- })), preSelected: this.selectedPrinter.id && ((_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); }))
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); }))
33316
33425
  ? (_h = this.selectedPrinterConfig.Default) === null || _h === void 0 ? void 0 : _h.Paper
33317
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) => ({
33318
33427
  id: index + 1,
@@ -33324,14 +33433,20 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33324
33433
  title: option,
33325
33434
  meta: '',
33326
33435
  type: 'quality',
33327
- })), preSelected: this.selectedPrinter.id && ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33436
+ })), preSelected: this.selectedPrinter.id &&
33437
+ ((_l = this.selectedPrinterConfig.Resolutions) === null || _l === void 0 ? void 0 : _l.includes(this.selectedPrinterConfig.Default.Resolution))
33328
33438
  ? this.selectedPrinterConfig.Default.Resolution
33329
- : null, disabled: !(((_m = this.selectedPrinterConfig.Resolutions) === null || _m === void 0 ? void 0 : _m.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) => ({
33330
- title: trays.Name,
33331
- id: trays.Index,
33332
- meta: '',
33333
- type: 'tray',
33334
- })), preSelected: this.selectedPrinter.id && ((_o = this.selectedPrinterConfig.Trays) === null || _o === void 0 ? void 0 : _o.find((el) => el.Name.includes(this.selectedPrinterConfig.Default.Tray)))
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)))
33335
33450
  ? this.selectedPrinterConfig.Default.Tray
33336
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 }))));
33337
33452
  }
@@ -33370,6 +33485,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33370
33485
  this.authOpen = false;
33371
33486
  this.onlyGetSasUri = false;
33372
33487
  this.noDocumentOpen = false;
33488
+ this.files = [];
33373
33489
  }
33374
33490
  /** Watchers */
33375
33491
  watchFileData(newValue, oldValue) {
@@ -33379,7 +33495,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33379
33495
  for (let i = 0; i < newValue.length; i++) {
33380
33496
  array[i] = newValue.charCodeAt(i);
33381
33497
  }
33382
- this.file = new File([array], this.filename);
33498
+ this.files = [new File([array], this.filename)];
33383
33499
  }
33384
33500
  }
33385
33501
  watchFilename(newValue, oldValue) {
@@ -33431,8 +33547,8 @@ let EzpPrinting$1 = class extends HTMLElement {
33431
33547
  }
33432
33548
  }
33433
33549
  listenUploadFile(event) {
33434
- this.filename = event.detail[0].name;
33435
- this.file = event.detail[0];
33550
+ this.files = event.detail;
33551
+ this.filename = this.files.length > 0 ? this.files[0].name : '';
33436
33552
  this.open();
33437
33553
  }
33438
33554
  listenDialogClose(event) {
@@ -33563,7 +33679,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33563
33679
  render() {
33564
33680
  return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
33565
33681
  ? this.systemAppearance
33566
- : 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, file: this.file, 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));
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));
33567
33683
  }
33568
33684
  static get watchers() { return {
33569
33685
  "filedata": ["watchFileData"],
@@ -33921,7 +34037,7 @@ let EzpUpload$1 = class extends HTMLElement {
33921
34037
  * States
33922
34038
  *
33923
34039
  */
33924
- this.filename = '';
34040
+ this.selectedFiles = [];
33925
34041
  this.dragging = false;
33926
34042
  /**
33927
34043
  *
@@ -33929,8 +34045,9 @@ let EzpUpload$1 = class extends HTMLElement {
33929
34045
  *
33930
34046
  */
33931
34047
  this.handleInput = () => {
33932
- this.filename = this.input.files[0].name;
33933
- this.uploadFile.emit(this.input.files);
34048
+ const files = Array.from(this.input.files);
34049
+ this.selectedFiles = files;
34050
+ this.uploadFile.emit(files);
33934
34051
  };
33935
34052
  }
33936
34053
  /**
@@ -33953,12 +34070,13 @@ let EzpUpload$1 = class extends HTMLElement {
33953
34070
  event.stopPropagation();
33954
34071
  event.preventDefault();
33955
34072
  this.dragging = false;
33956
- this.filename = event.dataTransfer.files[0].name;
33957
- this.uploadFile.emit(event.dataTransfer.files);
34073
+ const files = Array.from(event.dataTransfer.files);
34074
+ this.selectedFiles = files;
34075
+ this.uploadFile.emit(files);
33958
34076
  }
33959
34077
  listenPrintCancel() {
33960
34078
  this.form.reset();
33961
- this.filename = '';
34079
+ this.selectedFiles = [];
33962
34080
  }
33963
34081
  /**
33964
34082
  *
@@ -33966,7 +34084,7 @@ let EzpUpload$1 = class extends HTMLElement {
33966
34084
  *
33967
34085
  */
33968
34086
  render() {
33969
- 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.filename != '' && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_file') }), h("ezp-label", { level: "tertiary", text: this.filename })))))));
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 })))))))));
33970
34088
  }
33971
34089
  static get style() { return ezpUploadCss; }
33972
34090
  };
@@ -34077,13 +34195,13 @@ const EzpIcon = /*@__PURE__*/proxyCustomElement(EzpIcon$1, [1,"ezp-icon",{"name"
34077
34195
  const EzpIconButton = /*@__PURE__*/proxyCustomElement(EzpIconButton$1, [1,"ezp-icon-button",{"blank":[4],"disabled":[4],"href":[1],"icon":[1],"level":[1],"type":[1]}]);
34078
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]}]);
34079
34197
  const EzpLabel = /*@__PURE__*/proxyCustomElement(EzpLabel$1, [1,"ezp-label",{"ellipsis":[4],"level":[1],"noWrap":[4,"no-wrap"],"text":[1],"weight":[1]}]);
34080
- 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],"file":[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]},[[0,"inputValueChanged","listenInputValueChanged"],[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]]);
34081
- 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],"file":[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"]]]);
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"]]]);
34082
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]}]);
34083
34201
  const EzpStatus = /*@__PURE__*/proxyCustomElement(EzpStatus$1, [1,"ezp-status",{"description":[1],"processing":[4],"instance":[1],"icon":[1],"cancel":[8],"close":[8],"retry":[8]}]);
34084
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]}]);
34085
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]}]);
34086
- const EzpUpload = /*@__PURE__*/proxyCustomElement(EzpUpload$1, [1,"ezp-upload",{"filename":[32],"dragging":[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]]);
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"]]]);
34087
34205
  const EzpUserMenu = /*@__PURE__*/proxyCustomElement(EzpUserMenu$1, [1,"ezp-user-menu",{"name":[1],"open":[1028]}]);
34088
34206
  const defineCustomElements = (opts) => {
34089
34207
  if (typeof customElements !== 'undefined') {