@ezeep/ezeep-js 1.0.212 → 1.0.213

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.
@@ -33159,6 +33159,11 @@ let EzpPrinting = class {
33159
33159
  this.fileurl = newValue;
33160
33160
  }
33161
33161
  }
33162
+ watchLanguage(newValue, oldValue) {
33163
+ if (newValue !== oldValue && newValue.length > 0) {
33164
+ this.language = newValue;
33165
+ }
33166
+ }
33162
33167
  /**
33163
33168
  *
33164
33169
  * Listeners
@@ -33168,7 +33173,7 @@ let EzpPrinting = class {
33168
33173
  listenPrintCancel() {
33169
33174
  this.printOpen = false;
33170
33175
  this.printFinished.emit();
33171
- this.checkAuth();
33176
+ this.auth.revokeRefreshToken();
33172
33177
  }
33173
33178
  /** Description... */
33174
33179
  listenPrintSubmit() {
@@ -33328,12 +33333,13 @@ let EzpPrinting = class {
33328
33333
  render() {
33329
33334
  return (index.h(index.Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
33330
33335
  ? this.systemAppearance
33331
- : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, 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, hideheader: this.hideheader, seamless: this.seamless })) : 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));
33336
+ : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` }, 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, hideheader: this.hideheader, seamless: this.seamless })) : 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, index.h("button", { onClick: () => this.auth.refreshTokens() }, "refresh tokens")));
33332
33337
  }
33333
33338
  static get watchers() { return {
33334
33339
  "filedata": ["watchFileData"],
33335
33340
  "filename": ["watchFilename"],
33336
- "fileurl": ["watchFileUrl"]
33341
+ "fileurl": ["watchFileUrl"],
33342
+ "language": ["watchLanguage"]
33337
33343
  }; }
33338
33344
  };
33339
33345
  EzpPrinting.style = ezpPrintingCss;
@@ -42,6 +42,11 @@ export class EzpPrinting {
42
42
  this.fileurl = newValue;
43
43
  }
44
44
  }
45
+ watchLanguage(newValue, oldValue) {
46
+ if (newValue !== oldValue && newValue.length > 0) {
47
+ this.language = newValue;
48
+ }
49
+ }
45
50
  /**
46
51
  *
47
52
  * Listeners
@@ -51,7 +56,7 @@ export class EzpPrinting {
51
56
  listenPrintCancel() {
52
57
  this.printOpen = false;
53
58
  this.printFinished.emit();
54
- this.checkAuth();
59
+ this.auth.revokeRefreshToken();
55
60
  }
56
61
  /** Description... */
57
62
  listenPrintSubmit() {
@@ -213,7 +218,8 @@ export class EzpPrinting {
213
218
  ? this.systemAppearance
214
219
  : userStore.state.appearance} ${this.seamless ? 'seamless' : ''}` },
215
220
  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() }))),
216
- 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));
221
+ 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,
222
+ h("button", { onClick: () => this.auth.refreshTokens() }, "refresh tokens")));
217
223
  }
218
224
  static get is() { return "ezp-printing"; }
219
225
  static get encapsulation() { return "shadow"; }
@@ -701,6 +707,9 @@ export class EzpPrinting {
701
707
  }, {
702
708
  "propName": "fileurl",
703
709
  "methodName": "watchFileUrl"
710
+ }, {
711
+ "propName": "language",
712
+ "methodName": "watchLanguage"
704
713
  }]; }
705
714
  static get listeners() { return [{
706
715
  "name": "printCancel",
@@ -33184,6 +33184,11 @@ let EzpPrinting$1 = class extends HTMLElement {
33184
33184
  this.fileurl = newValue;
33185
33185
  }
33186
33186
  }
33187
+ watchLanguage(newValue, oldValue) {
33188
+ if (newValue !== oldValue && newValue.length > 0) {
33189
+ this.language = newValue;
33190
+ }
33191
+ }
33187
33192
  /**
33188
33193
  *
33189
33194
  * Listeners
@@ -33193,7 +33198,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33193
33198
  listenPrintCancel() {
33194
33199
  this.printOpen = false;
33195
33200
  this.printFinished.emit();
33196
- this.checkAuth();
33201
+ this.auth.revokeRefreshToken();
33197
33202
  }
33198
33203
  /** Description... */
33199
33204
  listenPrintSubmit() {
@@ -33353,12 +33358,13 @@ let EzpPrinting$1 = class extends HTMLElement {
33353
33358
  render() {
33354
33359
  return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
33355
33360
  ? this.systemAppearance
33356
- : 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));
33361
+ : 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, h("button", { onClick: () => this.auth.refreshTokens() }, "refresh tokens")));
33357
33362
  }
33358
33363
  static get watchers() { return {
33359
33364
  "filedata": ["watchFileData"],
33360
33365
  "filename": ["watchFilename"],
33361
- "fileurl": ["watchFileUrl"]
33366
+ "fileurl": ["watchFileUrl"],
33367
+ "language": ["watchLanguage"]
33362
33368
  }; }
33363
33369
  static get style() { return ezpPrintingCss; }
33364
33370
  };
@@ -33155,6 +33155,11 @@ let EzpPrinting = class {
33155
33155
  this.fileurl = newValue;
33156
33156
  }
33157
33157
  }
33158
+ watchLanguage(newValue, oldValue) {
33159
+ if (newValue !== oldValue && newValue.length > 0) {
33160
+ this.language = newValue;
33161
+ }
33162
+ }
33158
33163
  /**
33159
33164
  *
33160
33165
  * Listeners
@@ -33164,7 +33169,7 @@ let EzpPrinting = class {
33164
33169
  listenPrintCancel() {
33165
33170
  this.printOpen = false;
33166
33171
  this.printFinished.emit();
33167
- this.checkAuth();
33172
+ this.auth.revokeRefreshToken();
33168
33173
  }
33169
33174
  /** Description... */
33170
33175
  listenPrintSubmit() {
@@ -33324,12 +33329,13 @@ let EzpPrinting = class {
33324
33329
  render() {
33325
33330
  return (h(Host, { class: `${userStore.state.theme} ${userStore.state.appearance === 'system'
33326
33331
  ? this.systemAppearance
33327
- : 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));
33332
+ : 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, h("button", { onClick: () => this.auth.refreshTokens() }, "refresh tokens")));
33328
33333
  }
33329
33334
  static get watchers() { return {
33330
33335
  "filedata": ["watchFileData"],
33331
33336
  "filename": ["watchFilename"],
33332
- "fileurl": ["watchFileUrl"]
33337
+ "fileurl": ["watchFileUrl"],
33338
+ "language": ["watchLanguage"]
33333
33339
  }; }
33334
33340
  };
33335
33341
  EzpPrinting.style = ezpPrintingCss;