@ezeep/ezeep-js 1.0.143 → 1.0.144

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.
@@ -32694,6 +32694,7 @@ let EzpPrinterSelection = class {
32694
32694
  title: 'Short edge binding',
32695
32695
  },
32696
32696
  ];
32697
+ this.hidemenu = false;
32697
32698
  /**
32698
32699
  *
32699
32700
  * States
@@ -32982,6 +32983,8 @@ let EzpPrinterSelection = class {
32982
32983
  */
32983
32984
  /** Description... */
32984
32985
  async componentWillLoad() {
32986
+ console.log(navigator.language);
32987
+ console.log(this.hidemenu);
32985
32988
  initi18n();
32986
32989
  this.loading = true;
32987
32990
  this.getPropertiesFromLocalStorage();
@@ -33022,7 +33025,7 @@ let EzpPrinterSelection = class {
33022
33025
  ? i18next.t('printer_selection.prepare_upload')
33023
33026
  : this.uploading
33024
33027
  ? i18next.t('printer_selection.uploading')
33025
- : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported ? this.filename : '' }), this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
33028
+ : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: true })) : this.printSuccess ? (index.h("ezp-status", { icon: "checkmark-alt", description: i18next.t('printer_selection.print_success'), instance: "print-success", close: true })) : this.printFailed ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.print_failed'), instance: "print-failed", close: true, retry: true })) : this.notSupported ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.not_supported'), instance: "not-supported", retry: true })) : this.noPrinters ? (index.h("ezp-status", { icon: "exclamation-mark", description: i18next.t('printer_selection.no_printers'), instance: "no-printers", close: true })) : null)), index.h("div", { id: "header" }, index.h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }), index.h("ezp-label", { text: !this.notSupported ? this.filename : '' }), !this.hidemenu && (index.h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))), index.h("div", { id: "body" }, index.h("div", { id: "printer" }, index.h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
33026
33029
  ? i18next.t('printer_selection.select_printer')
33027
33030
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33028
33031
  id: printer.id,
@@ -33115,7 +33118,7 @@ let EzpPrinterSelection = class {
33115
33118
  // ? this.selectedPrinterConfig.Resolutions[0]
33116
33119
  // : null
33117
33120
  // }
33118
- disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), index.h("ezp-stepper", { label: "Copies", max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33121
+ disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), index.h("ezp-stepper", { label: "Copies", max: 10, icon: "copies" })), index.h("div", { id: "footer" }, index.h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }), index.h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), !this.hidemenu && index.h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33119
33122
  }
33120
33123
  };
33121
33124
  EzpPrinterSelection.style = ezpPrinterSelectionCss;
@@ -33132,6 +33135,7 @@ const ezpPrintingCss = ":host{font-family:\"Inter\", sans-serif;-webkit-font-fea
33132
33135
  let EzpPrinting = class {
33133
33136
  constructor(hostRef) {
33134
33137
  index.registerInstance(this, hostRef);
33138
+ this.hidemenu = false;
33135
33139
  this.theme = 'cyan';
33136
33140
  this.appearance = 'system';
33137
33141
  /**
@@ -23,6 +23,7 @@ export class EzpPrinterSelection {
23
23
  title: 'Short edge binding',
24
24
  },
25
25
  ];
26
+ this.hidemenu = false;
26
27
  /**
27
28
  *
28
29
  * States
@@ -313,6 +314,8 @@ export class EzpPrinterSelection {
313
314
  */
314
315
  /** Description... */
315
316
  async componentWillLoad() {
317
+ console.log(navigator.language);
318
+ console.log(this.hidemenu);
316
319
  initi18n();
317
320
  this.loading = true;
318
321
  this.getPropertiesFromLocalStorage();
@@ -359,7 +362,7 @@ export class EzpPrinterSelection {
359
362
  h("div", { id: "header" },
360
363
  h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }),
361
364
  h("ezp-label", { text: !this.notSupported ? this.filename : '' }),
362
- this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))),
365
+ !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))),
363
366
  h("div", { id: "body" },
364
367
  h("div", { id: "printer" },
365
368
  h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
@@ -466,7 +469,7 @@ export class EzpPrinterSelection {
466
469
  h("div", { id: "footer" },
467
470
  h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }),
468
471
  h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })),
469
- this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
472
+ !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
470
473
  }
471
474
  static get is() { return "ezp-printer-selection"; }
472
475
  static get encapsulation() { return "shadow"; }
@@ -613,7 +616,8 @@ export class EzpPrinterSelection {
613
616
  "text": ""
614
617
  },
615
618
  "attribute": "hidemenu",
616
- "reflect": false
619
+ "reflect": false,
620
+ "defaultValue": "false"
617
621
  }
618
622
  }; }
619
623
  static get states() { return {
@@ -7,6 +7,7 @@ import i18next from 'i18next';
7
7
  import { initi18n } from '../../utils/utils';
8
8
  export class EzpPrinting {
9
9
  constructor() {
10
+ this.hidemenu = false;
10
11
  this.theme = 'cyan';
11
12
  this.appearance = 'system';
12
13
  /**
@@ -280,7 +281,8 @@ export class EzpPrinting {
280
281
  "text": ""
281
282
  },
282
283
  "attribute": "hidemenu",
283
- "reflect": false
284
+ "reflect": false,
285
+ "defaultValue": "false"
284
286
  },
285
287
  "authapihosturl": {
286
288
  "type": "string",
@@ -32717,6 +32717,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
32717
32717
  title: 'Short edge binding',
32718
32718
  },
32719
32719
  ];
32720
+ this.hidemenu = false;
32720
32721
  /**
32721
32722
  *
32722
32723
  * States
@@ -33005,6 +33006,8 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33005
33006
  */
33006
33007
  /** Description... */
33007
33008
  async componentWillLoad() {
33009
+ console.log(navigator.language);
33010
+ console.log(this.hidemenu);
33008
33011
  initi18n();
33009
33012
  this.loading = true;
33010
33013
  this.getPropertiesFromLocalStorage();
@@ -33045,7 +33048,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33045
33048
  ? i18next.t('printer_selection.prepare_upload')
33046
33049
  : this.uploading
33047
33050
  ? i18next.t('printer_selection.uploading')
33048
- : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: 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)), 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 : '' }), 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
33051
+ : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: 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)), 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 : '' }), !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
33049
33052
  ? i18next.t('printer_selection.select_printer')
33050
33053
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33051
33054
  id: printer.id,
@@ -33138,7 +33141,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33138
33141
  // ? this.selectedPrinterConfig.Resolutions[0]
33139
33142
  // : null
33140
33143
  // }
33141
- disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: "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') }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33144
+ disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: "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') }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33142
33145
  }
33143
33146
  static get style() { return ezpPrinterSelectionCss; }
33144
33147
  };
@@ -33157,6 +33160,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33157
33160
  super();
33158
33161
  this.__registerHost();
33159
33162
  this.__attachShadow();
33163
+ this.hidemenu = false;
33160
33164
  this.theme = 'cyan';
33161
33165
  this.appearance = 'system';
33162
33166
  /**
@@ -32690,6 +32690,7 @@ let EzpPrinterSelection = class {
32690
32690
  title: 'Short edge binding',
32691
32691
  },
32692
32692
  ];
32693
+ this.hidemenu = false;
32693
32694
  /**
32694
32695
  *
32695
32696
  * States
@@ -32978,6 +32979,8 @@ let EzpPrinterSelection = class {
32978
32979
  */
32979
32980
  /** Description... */
32980
32981
  async componentWillLoad() {
32982
+ console.log(navigator.language);
32983
+ console.log(this.hidemenu);
32981
32984
  initi18n();
32982
32985
  this.loading = true;
32983
32986
  this.getPropertiesFromLocalStorage();
@@ -33018,7 +33021,7 @@ let EzpPrinterSelection = class {
33018
33021
  ? i18next.t('printer_selection.prepare_upload')
33019
33022
  : this.uploading
33020
33023
  ? i18next.t('printer_selection.uploading')
33021
- : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: 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)), 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 : '' }), 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
33024
+ : i18next.t('printer_selection.print_processing'), instance: "print-processing", cancel: 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)), 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 : '' }), !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
33022
33025
  ? i18next.t('printer_selection.select_printer')
33023
33026
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33024
33027
  id: printer.id,
@@ -33111,7 +33114,7 @@ let EzpPrinterSelection = class {
33111
33114
  // ? this.selectedPrinterConfig.Resolutions[0]
33112
33115
  // : null
33113
33116
  // }
33114
- disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: "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') }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33117
+ disabled: !(this.selectedPrinterConfig.Resolutions.length > 0) })), h("ezp-stepper", { label: "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') }), h("ezp-text-button", { disabled: this.selectedPrinter.id === '', type: "button", onClick: this.handlePrint, label: i18next.t('button_actions.print') })), !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
33115
33118
  }
33116
33119
  };
33117
33120
  EzpPrinterSelection.style = ezpPrinterSelectionCss;
@@ -33128,6 +33131,7 @@ const ezpPrintingCss = ":host{font-family:\"Inter\", sans-serif;-webkit-font-fea
33128
33131
  let EzpPrinting = class {
33129
33132
  constructor(hostRef) {
33130
33133
  registerInstance(this, hostRef);
33134
+ this.hidemenu = false;
33131
33135
  this.theme = 'cyan';
33132
33136
  this.appearance = 'system';
33133
33137
  /**