@ezeep/ezeep-js 1.0.189 → 1.0.192

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.
@@ -2872,20 +2872,23 @@ const printer_selection$1 = {
2872
2872
  duplex_none: "Keine",
2873
2873
  copies: "Kopien",
2874
2874
  duplex_long: "auf der langen Seite umdrehen",
2875
- duplex_short: "auf der kurzen Seite umdrehen"
2875
+ duplex_short: "auf der kurzen Seite umdrehen",
2876
+ pull_print_success: "Bereit zum Auslösen."
2876
2877
  };
2877
2878
  const button_actions$1 = {
2878
2879
  login: "Anmelden",
2879
2880
  print: "Drucken",
2880
2881
  cancel: "Abbrechen",
2881
2882
  close: "Schließen",
2882
- retry: "Wiederholen"
2883
+ retry: "Wiederholen",
2884
+ select_printer: "Wähle Drucker"
2883
2885
  };
2884
2886
  const upload$1 = {
2885
2887
  description: "Ziehe eine Datei hier in den Browser ",
2886
2888
  meta_leading: "oder",
2887
2889
  meta_select: "wähle eine Datei aus",
2888
- meta_trailing: "um mit ezeep Blue zu drucken."
2890
+ meta_trailing: "um mit ezeep Blue zu drucken.",
2891
+ selected_file: "Ausgewählte Datei:"
2889
2892
  };
2890
2893
  const user_menu$1 = {
2891
2894
  theme: "Farbschema",
@@ -2893,7 +2896,7 @@ const user_menu$1 = {
2893
2896
  system: "System",
2894
2897
  light: "Hell",
2895
2898
  dark: "Dunkel",
2896
- account: "Account verwalten",
2899
+ account: "Konto verwalten",
2897
2900
  help: "Hilfe & Unterstützung",
2898
2901
  logout: "Ausloggen"
2899
2902
  };
@@ -2970,7 +2973,7 @@ const user_menu = {
2970
2973
  system: "System",
2971
2974
  light: "Light",
2972
2975
  dark: "Dark",
2973
- account: "Manage account",
2976
+ account: "Manage Account",
2974
2977
  help: "Help & Support",
2975
2978
  logout: "Logout"
2976
2979
  };
@@ -33117,11 +33120,16 @@ let EzpPrinting = class {
33117
33120
  this.onlyGetSasUri = false;
33118
33121
  this.noDocumentOpen = false;
33119
33122
  }
33123
+ /** Watchers */
33120
33124
  watchFileData(newValue, oldValue) {
33121
33125
  if (newValue !== oldValue && newValue.length > 0) {
33122
33126
  const uint8array = new TextEncoder().encode(newValue);
33123
33127
  this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33124
- console.log(this.file);
33128
+ }
33129
+ }
33130
+ watchFilename(newValue, oldValue) {
33131
+ if (newValue !== oldValue && newValue.length > 0) {
33132
+ this.filename = newValue;
33125
33133
  }
33126
33134
  }
33127
33135
  /**
@@ -33269,8 +33277,6 @@ let EzpPrinting = class {
33269
33277
  else {
33270
33278
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33271
33279
  }
33272
- console.log(this.filedata);
33273
- console.log(this.filename);
33274
33280
  sendCodeToParentWindow();
33275
33281
  initi18n(this.language);
33276
33282
  this.checkAuth();
@@ -33289,7 +33295,8 @@ let EzpPrinting = class {
33289
33295
  : userStore.state.appearance}` }, this.trigger === 'custom' ? (index.h("slot", null)) : this.trigger === 'file' ? (index.h("ezp-upload", null)) : (this.trigger === 'button' && (index.h("ezp-icon-button", { id: "print-trigger", icon: "printer", slot: "trigger", type: "button", onClick: () => this.open() }))), this.authOpen ? (index.h("ezp-auth", { clientID: this.clientid, redirectURI: this.redirecturi, hidelogin: this.hidelogin, trigger: this.trigger, code: this.code })) : this.printOpen ? (index.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 })) : this.noDocumentOpen ? (index.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));
33290
33296
  }
33291
33297
  static get watchers() { return {
33292
- "filedata": ["watchFileData"]
33298
+ "filedata": ["watchFileData"],
33299
+ "filename": ["watchFilename"]
33293
33300
  }; }
33294
33301
  };
33295
33302
  EzpPrinting.style = ezpPrintingCss;
@@ -23,11 +23,16 @@ export class EzpPrinting {
23
23
  this.onlyGetSasUri = false;
24
24
  this.noDocumentOpen = false;
25
25
  }
26
+ /** Watchers */
26
27
  watchFileData(newValue, oldValue) {
27
28
  if (newValue !== oldValue && newValue.length > 0) {
28
29
  const uint8array = new TextEncoder().encode(newValue);
29
30
  this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
30
- console.log(this.file);
31
+ }
32
+ }
33
+ watchFilename(newValue, oldValue) {
34
+ if (newValue !== oldValue && newValue.length > 0) {
35
+ this.filename = newValue;
31
36
  }
32
37
  }
33
38
  /**
@@ -175,8 +180,6 @@ export class EzpPrinting {
175
180
  else {
176
181
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
177
182
  }
178
- console.log(this.filedata);
179
- console.log(this.filename);
180
183
  sendCodeToParentWindow();
181
184
  initi18n(this.language);
182
185
  this.checkAuth();
@@ -592,6 +595,9 @@ export class EzpPrinting {
592
595
  static get watchers() { return [{
593
596
  "propName": "filedata",
594
597
  "methodName": "watchFileData"
598
+ }, {
599
+ "propName": "filename",
600
+ "methodName": "watchFilename"
595
601
  }]; }
596
602
  static get listeners() { return [{
597
603
  "name": "printCancel",
@@ -2881,20 +2881,23 @@ const printer_selection$1 = {
2881
2881
  duplex_none: "Keine",
2882
2882
  copies: "Kopien",
2883
2883
  duplex_long: "auf der langen Seite umdrehen",
2884
- duplex_short: "auf der kurzen Seite umdrehen"
2884
+ duplex_short: "auf der kurzen Seite umdrehen",
2885
+ pull_print_success: "Bereit zum Auslösen."
2885
2886
  };
2886
2887
  const button_actions$1 = {
2887
2888
  login: "Anmelden",
2888
2889
  print: "Drucken",
2889
2890
  cancel: "Abbrechen",
2890
2891
  close: "Schließen",
2891
- retry: "Wiederholen"
2892
+ retry: "Wiederholen",
2893
+ select_printer: "Wähle Drucker"
2892
2894
  };
2893
2895
  const upload$1 = {
2894
2896
  description: "Ziehe eine Datei hier in den Browser ",
2895
2897
  meta_leading: "oder",
2896
2898
  meta_select: "wähle eine Datei aus",
2897
- meta_trailing: "um mit ezeep Blue zu drucken."
2899
+ meta_trailing: "um mit ezeep Blue zu drucken.",
2900
+ selected_file: "Ausgewählte Datei:"
2898
2901
  };
2899
2902
  const user_menu$1 = {
2900
2903
  theme: "Farbschema",
@@ -2902,7 +2905,7 @@ const user_menu$1 = {
2902
2905
  system: "System",
2903
2906
  light: "Hell",
2904
2907
  dark: "Dunkel",
2905
- account: "Account verwalten",
2908
+ account: "Konto verwalten",
2906
2909
  help: "Hilfe & Unterstützung",
2907
2910
  logout: "Ausloggen"
2908
2911
  };
@@ -2979,7 +2982,7 @@ const user_menu = {
2979
2982
  system: "System",
2980
2983
  light: "Light",
2981
2984
  dark: "Dark",
2982
- account: "Manage account",
2985
+ account: "Manage Account",
2983
2986
  help: "Help & Support",
2984
2987
  logout: "Logout"
2985
2988
  };
@@ -33142,11 +33145,16 @@ let EzpPrinting$1 = class extends HTMLElement {
33142
33145
  this.onlyGetSasUri = false;
33143
33146
  this.noDocumentOpen = false;
33144
33147
  }
33148
+ /** Watchers */
33145
33149
  watchFileData(newValue, oldValue) {
33146
33150
  if (newValue !== oldValue && newValue.length > 0) {
33147
33151
  const uint8array = new TextEncoder().encode(newValue);
33148
33152
  this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33149
- console.log(this.file);
33153
+ }
33154
+ }
33155
+ watchFilename(newValue, oldValue) {
33156
+ if (newValue !== oldValue && newValue.length > 0) {
33157
+ this.filename = newValue;
33150
33158
  }
33151
33159
  }
33152
33160
  /**
@@ -33294,8 +33302,6 @@ let EzpPrinting$1 = class extends HTMLElement {
33294
33302
  else {
33295
33303
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33296
33304
  }
33297
- console.log(this.filedata);
33298
- console.log(this.filename);
33299
33305
  sendCodeToParentWindow();
33300
33306
  initi18n(this.language);
33301
33307
  this.checkAuth();
@@ -33314,7 +33320,8 @@ let EzpPrinting$1 = class extends HTMLElement {
33314
33320
  : userStore.state.appearance}` }, 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 })) : 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));
33315
33321
  }
33316
33322
  static get watchers() { return {
33317
- "filedata": ["watchFileData"]
33323
+ "filedata": ["watchFileData"],
33324
+ "filename": ["watchFilename"]
33318
33325
  }; }
33319
33326
  static get style() { return ezpPrintingCss; }
33320
33327
  };
@@ -2868,20 +2868,23 @@ const printer_selection$1 = {
2868
2868
  duplex_none: "Keine",
2869
2869
  copies: "Kopien",
2870
2870
  duplex_long: "auf der langen Seite umdrehen",
2871
- duplex_short: "auf der kurzen Seite umdrehen"
2871
+ duplex_short: "auf der kurzen Seite umdrehen",
2872
+ pull_print_success: "Bereit zum Auslösen."
2872
2873
  };
2873
2874
  const button_actions$1 = {
2874
2875
  login: "Anmelden",
2875
2876
  print: "Drucken",
2876
2877
  cancel: "Abbrechen",
2877
2878
  close: "Schließen",
2878
- retry: "Wiederholen"
2879
+ retry: "Wiederholen",
2880
+ select_printer: "Wähle Drucker"
2879
2881
  };
2880
2882
  const upload$1 = {
2881
2883
  description: "Ziehe eine Datei hier in den Browser ",
2882
2884
  meta_leading: "oder",
2883
2885
  meta_select: "wähle eine Datei aus",
2884
- meta_trailing: "um mit ezeep Blue zu drucken."
2886
+ meta_trailing: "um mit ezeep Blue zu drucken.",
2887
+ selected_file: "Ausgewählte Datei:"
2885
2888
  };
2886
2889
  const user_menu$1 = {
2887
2890
  theme: "Farbschema",
@@ -2889,7 +2892,7 @@ const user_menu$1 = {
2889
2892
  system: "System",
2890
2893
  light: "Hell",
2891
2894
  dark: "Dunkel",
2892
- account: "Account verwalten",
2895
+ account: "Konto verwalten",
2893
2896
  help: "Hilfe & Unterstützung",
2894
2897
  logout: "Ausloggen"
2895
2898
  };
@@ -2966,7 +2969,7 @@ const user_menu = {
2966
2969
  system: "System",
2967
2970
  light: "Light",
2968
2971
  dark: "Dark",
2969
- account: "Manage account",
2972
+ account: "Manage Account",
2970
2973
  help: "Help & Support",
2971
2974
  logout: "Logout"
2972
2975
  };
@@ -33113,11 +33116,16 @@ let EzpPrinting = class {
33113
33116
  this.onlyGetSasUri = false;
33114
33117
  this.noDocumentOpen = false;
33115
33118
  }
33119
+ /** Watchers */
33116
33120
  watchFileData(newValue, oldValue) {
33117
33121
  if (newValue !== oldValue && newValue.length > 0) {
33118
33122
  const uint8array = new TextEncoder().encode(newValue);
33119
33123
  this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
33120
- console.log(this.file);
33124
+ }
33125
+ }
33126
+ watchFilename(newValue, oldValue) {
33127
+ if (newValue !== oldValue && newValue.length > 0) {
33128
+ this.filename = newValue;
33121
33129
  }
33122
33130
  }
33123
33131
  /**
@@ -33265,8 +33273,6 @@ let EzpPrinting = class {
33265
33273
  else {
33266
33274
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33267
33275
  }
33268
- console.log(this.filedata);
33269
- console.log(this.filename);
33270
33276
  sendCodeToParentWindow();
33271
33277
  initi18n(this.language);
33272
33278
  this.checkAuth();
@@ -33285,7 +33291,8 @@ let EzpPrinting = class {
33285
33291
  : userStore.state.appearance}` }, 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 })) : 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));
33286
33292
  }
33287
33293
  static get watchers() { return {
33288
- "filedata": ["watchFileData"]
33294
+ "filedata": ["watchFileData"],
33295
+ "filename": ["watchFilename"]
33289
33296
  }; }
33290
33297
  };
33291
33298
  EzpPrinting.style = ezpPrintingCss;