@ezeep/ezeep-js 1.0.143 → 1.0.147

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
@@ -33022,7 +33023,7 @@ let EzpPrinterSelection = class {
33022
33023
  ? i18next.t('printer_selection.prepare_upload')
33023
33024
  : this.uploading
33024
33025
  ? 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
33026
+ : 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
33027
  ? i18next.t('printer_selection.select_printer')
33027
33028
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33028
33029
  id: printer.id,
@@ -33115,7 +33116,7 @@ let EzpPrinterSelection = class {
33115
33116
  // ? this.selectedPrinterConfig.Resolutions[0]
33116
33117
  // : null
33117
33118
  // }
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 }))));
33119
+ 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
33120
  }
33120
33121
  };
33121
33122
  EzpPrinterSelection.style = ezpPrinterSelectionCss;
@@ -33132,6 +33133,7 @@ const ezpPrintingCss = ":host{font-family:\"Inter\", sans-serif;-webkit-font-fea
33132
33133
  let EzpPrinting = class {
33133
33134
  constructor(hostRef) {
33134
33135
  index.registerInstance(this, hostRef);
33136
+ this.hidemenu = false;
33135
33137
  this.theme = 'cyan';
33136
33138
  this.appearance = 'system';
33137
33139
  /**
@@ -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
@@ -359,7 +360,7 @@ export class EzpPrinterSelection {
359
360
  h("div", { id: "header" },
360
361
  h("ezp-label", { weight: "heavy", text: i18next.t('printer_selection.print') + `${!this.notSupported ? ':' : ''}` }),
361
362
  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 }))),
363
+ !this.hidemenu && (h("ezp-icon-button", { level: "tertiary", icon: "menu", id: "toggle-menu", type: "button", onClick: this.handleUserMenu }))),
363
364
  h("div", { id: "body" },
364
365
  h("div", { id: "printer" },
365
366
  h("ezp-select", { label: i18next.t('printer_selection.printer'), icon: "printer", placeholder: this.printers.length > 0
@@ -466,7 +467,7 @@ export class EzpPrinterSelection {
466
467
  h("div", { id: "footer" },
467
468
  h("ezp-text-button", { type: "button", level: "secondary", onClick: this.handleCancel, label: i18next.t('button_actions.cancel') }),
468
469
  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 }))));
470
+ !this.hidemenu && h("ezp-user-menu", { open: this.userMenuOpen, name: this.userName }))));
470
471
  }
471
472
  static get is() { return "ezp-printer-selection"; }
472
473
  static get encapsulation() { return "shadow"; }
@@ -613,7 +614,8 @@ export class EzpPrinterSelection {
613
614
  "text": ""
614
615
  },
615
616
  "attribute": "hidemenu",
616
- "reflect": false
617
+ "reflect": false,
618
+ "defaultValue": "false"
617
619
  }
618
620
  }; }
619
621
  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
@@ -33045,7 +33046,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33045
33046
  ? i18next.t('printer_selection.prepare_upload')
33046
33047
  : this.uploading
33047
33048
  ? 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
33049
+ : 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
33050
  ? i18next.t('printer_selection.select_printer')
33050
33051
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33051
33052
  id: printer.id,
@@ -33138,7 +33139,7 @@ let EzpPrinterSelection$1 = class extends HTMLElement {
33138
33139
  // ? this.selectedPrinterConfig.Resolutions[0]
33139
33140
  // : null
33140
33141
  // }
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 }))));
33142
+ 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
33143
  }
33143
33144
  static get style() { return ezpPrinterSelectionCss; }
33144
33145
  };
@@ -33157,6 +33158,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33157
33158
  super();
33158
33159
  this.__registerHost();
33159
33160
  this.__attachShadow();
33161
+ this.hidemenu = false;
33160
33162
  this.theme = 'cyan';
33161
33163
  this.appearance = 'system';
33162
33164
  /**
@@ -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
@@ -33018,7 +33019,7 @@ let EzpPrinterSelection = class {
33018
33019
  ? i18next.t('printer_selection.prepare_upload')
33019
33020
  : this.uploading
33020
33021
  ? 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
33022
+ : 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
33023
  ? i18next.t('printer_selection.select_printer')
33023
33024
  : i18next.t('printer_selection.no_printers'), toggleFlow: "vertical", optionFlow: "vertical", options: this.printers.map((printer) => ({
33024
33025
  id: printer.id,
@@ -33111,7 +33112,7 @@ let EzpPrinterSelection = class {
33111
33112
  // ? this.selectedPrinterConfig.Resolutions[0]
33112
33113
  // : null
33113
33114
  // }
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 }))));
33115
+ 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
33116
  }
33116
33117
  };
33117
33118
  EzpPrinterSelection.style = ezpPrinterSelectionCss;
@@ -33128,6 +33129,7 @@ const ezpPrintingCss = ":host{font-family:\"Inter\", sans-serif;-webkit-font-fea
33128
33129
  let EzpPrinting = class {
33129
33130
  constructor(hostRef) {
33130
33131
  registerInstance(this, hostRef);
33132
+ this.hidemenu = false;
33131
33133
  this.theme = 'cyan';
33132
33134
  this.appearance = 'system';
33133
33135
  /**