@ezeep/ezeep-js 1.0.196 → 1.0.200

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.
@@ -33132,6 +33132,11 @@ let EzpPrinting = class {
33132
33132
  this.filename = newValue;
33133
33133
  }
33134
33134
  }
33135
+ watchFileUrl(newValue, oldValue) {
33136
+ if (newValue !== oldValue && newValue.length > 0) {
33137
+ this.fileurl = newValue;
33138
+ }
33139
+ }
33135
33140
  /**
33136
33141
  *
33137
33142
  * Listeners
@@ -33186,7 +33191,6 @@ let EzpPrinting = class {
33186
33191
  */
33187
33192
  async open() {
33188
33193
  if (authStore.state.isAuthorized) {
33189
- this.authOpen = true;
33190
33194
  if (this.filename) {
33191
33195
  this.printOpen = true;
33192
33196
  }
@@ -33239,6 +33243,7 @@ let EzpPrinting = class {
33239
33243
  })
33240
33244
  .catch(() => {
33241
33245
  authStore.state.isAuthorized = false;
33246
+ localStorage.setItem('isAuthorized', 'false');
33242
33247
  return false;
33243
33248
  });
33244
33249
  if (accessToken === '') {
@@ -33297,7 +33302,8 @@ let EzpPrinting = class {
33297
33302
  }
33298
33303
  static get watchers() { return {
33299
33304
  "filedata": ["watchFileData"],
33300
- "filename": ["watchFilename"]
33305
+ "filename": ["watchFilename"],
33306
+ "fileurl": ["watchFileUrl"]
33301
33307
  }; }
33302
33308
  };
33303
33309
  EzpPrinting.style = ezpPrintingCss;
@@ -35,6 +35,11 @@ export class EzpPrinting {
35
35
  this.filename = newValue;
36
36
  }
37
37
  }
38
+ watchFileUrl(newValue, oldValue) {
39
+ if (newValue !== oldValue && newValue.length > 0) {
40
+ this.fileurl = newValue;
41
+ }
42
+ }
38
43
  /**
39
44
  *
40
45
  * Listeners
@@ -89,7 +94,6 @@ export class EzpPrinting {
89
94
  */
90
95
  async open() {
91
96
  if (authStore.state.isAuthorized) {
92
- this.authOpen = true;
93
97
  if (this.filename) {
94
98
  this.printOpen = true;
95
99
  }
@@ -142,6 +146,7 @@ export class EzpPrinting {
142
146
  })
143
147
  .catch(() => {
144
148
  authStore.state.isAuthorized = false;
149
+ localStorage.setItem('isAuthorized', 'false');
145
150
  return false;
146
151
  });
147
152
  if (accessToken === '') {
@@ -615,6 +620,9 @@ export class EzpPrinting {
615
620
  }, {
616
621
  "propName": "filename",
617
622
  "methodName": "watchFilename"
623
+ }, {
624
+ "propName": "fileurl",
625
+ "methodName": "watchFileUrl"
618
626
  }]; }
619
627
  static get listeners() { return [{
620
628
  "name": "printCancel",
@@ -33157,6 +33157,11 @@ let EzpPrinting$1 = class extends HTMLElement {
33157
33157
  this.filename = newValue;
33158
33158
  }
33159
33159
  }
33160
+ watchFileUrl(newValue, oldValue) {
33161
+ if (newValue !== oldValue && newValue.length > 0) {
33162
+ this.fileurl = newValue;
33163
+ }
33164
+ }
33160
33165
  /**
33161
33166
  *
33162
33167
  * Listeners
@@ -33211,7 +33216,6 @@ let EzpPrinting$1 = class extends HTMLElement {
33211
33216
  */
33212
33217
  async open() {
33213
33218
  if (authStore.state.isAuthorized) {
33214
- this.authOpen = true;
33215
33219
  if (this.filename) {
33216
33220
  this.printOpen = true;
33217
33221
  }
@@ -33264,6 +33268,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33264
33268
  })
33265
33269
  .catch(() => {
33266
33270
  authStore.state.isAuthorized = false;
33271
+ localStorage.setItem('isAuthorized', 'false');
33267
33272
  return false;
33268
33273
  });
33269
33274
  if (accessToken === '') {
@@ -33322,7 +33327,8 @@ let EzpPrinting$1 = class extends HTMLElement {
33322
33327
  }
33323
33328
  static get watchers() { return {
33324
33329
  "filedata": ["watchFileData"],
33325
- "filename": ["watchFilename"]
33330
+ "filename": ["watchFilename"],
33331
+ "fileurl": ["watchFileUrl"]
33326
33332
  }; }
33327
33333
  static get style() { return ezpPrintingCss; }
33328
33334
  };
@@ -33128,6 +33128,11 @@ let EzpPrinting = class {
33128
33128
  this.filename = newValue;
33129
33129
  }
33130
33130
  }
33131
+ watchFileUrl(newValue, oldValue) {
33132
+ if (newValue !== oldValue && newValue.length > 0) {
33133
+ this.fileurl = newValue;
33134
+ }
33135
+ }
33131
33136
  /**
33132
33137
  *
33133
33138
  * Listeners
@@ -33182,7 +33187,6 @@ let EzpPrinting = class {
33182
33187
  */
33183
33188
  async open() {
33184
33189
  if (authStore.state.isAuthorized) {
33185
- this.authOpen = true;
33186
33190
  if (this.filename) {
33187
33191
  this.printOpen = true;
33188
33192
  }
@@ -33235,6 +33239,7 @@ let EzpPrinting = class {
33235
33239
  })
33236
33240
  .catch(() => {
33237
33241
  authStore.state.isAuthorized = false;
33242
+ localStorage.setItem('isAuthorized', 'false');
33238
33243
  return false;
33239
33244
  });
33240
33245
  if (accessToken === '') {
@@ -33293,7 +33298,8 @@ let EzpPrinting = class {
33293
33298
  }
33294
33299
  static get watchers() { return {
33295
33300
  "filedata": ["watchFileData"],
33296
- "filename": ["watchFilename"]
33301
+ "filename": ["watchFilename"],
33302
+ "fileurl": ["watchFileUrl"]
33297
33303
  }; }
33298
33304
  };
33299
33305
  EzpPrinting.style = ezpPrintingCss;