@ezeep/ezeep-js 1.0.197 → 1.0.201

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
@@ -33233,11 +33238,13 @@ let EzpPrinting = class {
33233
33238
  authStore.state.isAuthorized = true;
33234
33239
  }
33235
33240
  if (!response.ok) {
33241
+ authStore.state.isAuthorized = true;
33236
33242
  throw new Error('http status ' + response.status);
33237
33243
  }
33238
33244
  })
33239
33245
  .catch(() => {
33240
33246
  authStore.state.isAuthorized = false;
33247
+ localStorage.setItem('isAuthorized', 'false');
33241
33248
  return false;
33242
33249
  });
33243
33250
  if (accessToken === '') {
@@ -33296,7 +33303,8 @@ let EzpPrinting = class {
33296
33303
  }
33297
33304
  static get watchers() { return {
33298
33305
  "filedata": ["watchFileData"],
33299
- "filename": ["watchFilename"]
33306
+ "filename": ["watchFilename"],
33307
+ "fileurl": ["watchFileUrl"]
33300
33308
  }; }
33301
33309
  };
33302
33310
  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
@@ -136,11 +141,13 @@ export class EzpPrinting {
136
141
  authStore.state.isAuthorized = true;
137
142
  }
138
143
  if (!response.ok) {
144
+ authStore.state.isAuthorized = true;
139
145
  throw new Error('http status ' + response.status);
140
146
  }
141
147
  })
142
148
  .catch(() => {
143
149
  authStore.state.isAuthorized = false;
150
+ localStorage.setItem('isAuthorized', 'false');
144
151
  return false;
145
152
  });
146
153
  if (accessToken === '') {
@@ -614,6 +621,9 @@ export class EzpPrinting {
614
621
  }, {
615
622
  "propName": "filename",
616
623
  "methodName": "watchFilename"
624
+ }, {
625
+ "propName": "fileurl",
626
+ "methodName": "watchFileUrl"
617
627
  }]; }
618
628
  static get listeners() { return [{
619
629
  "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
@@ -33258,11 +33263,13 @@ let EzpPrinting$1 = class extends HTMLElement {
33258
33263
  authStore.state.isAuthorized = true;
33259
33264
  }
33260
33265
  if (!response.ok) {
33266
+ authStore.state.isAuthorized = true;
33261
33267
  throw new Error('http status ' + response.status);
33262
33268
  }
33263
33269
  })
33264
33270
  .catch(() => {
33265
33271
  authStore.state.isAuthorized = false;
33272
+ localStorage.setItem('isAuthorized', 'false');
33266
33273
  return false;
33267
33274
  });
33268
33275
  if (accessToken === '') {
@@ -33321,7 +33328,8 @@ let EzpPrinting$1 = class extends HTMLElement {
33321
33328
  }
33322
33329
  static get watchers() { return {
33323
33330
  "filedata": ["watchFileData"],
33324
- "filename": ["watchFilename"]
33331
+ "filename": ["watchFilename"],
33332
+ "fileurl": ["watchFileUrl"]
33325
33333
  }; }
33326
33334
  static get style() { return ezpPrintingCss; }
33327
33335
  };
@@ -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
@@ -33229,11 +33234,13 @@ let EzpPrinting = class {
33229
33234
  authStore.state.isAuthorized = true;
33230
33235
  }
33231
33236
  if (!response.ok) {
33237
+ authStore.state.isAuthorized = true;
33232
33238
  throw new Error('http status ' + response.status);
33233
33239
  }
33234
33240
  })
33235
33241
  .catch(() => {
33236
33242
  authStore.state.isAuthorized = false;
33243
+ localStorage.setItem('isAuthorized', 'false');
33237
33244
  return false;
33238
33245
  });
33239
33246
  if (accessToken === '') {
@@ -33292,7 +33299,8 @@ let EzpPrinting = class {
33292
33299
  }
33293
33300
  static get watchers() { return {
33294
33301
  "filedata": ["watchFileData"],
33295
- "filename": ["watchFilename"]
33302
+ "filename": ["watchFilename"],
33303
+ "fileurl": ["watchFileUrl"]
33296
33304
  }; }
33297
33305
  };
33298
33306
  EzpPrinting.style = ezpPrintingCss;