@ezeep/ezeep-js 1.0.198 → 1.0.202

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,12 +33238,13 @@ let EzpPrinting = class {
33233
33238
  authStore.state.isAuthorized = true;
33234
33239
  }
33235
33240
  if (!response.ok) {
33241
+ authStore.state.isAuthorized = false;
33236
33242
  throw new Error('http status ' + response.status);
33237
33243
  }
33238
33244
  })
33239
33245
  .catch(() => {
33240
33246
  authStore.state.isAuthorized = false;
33241
- localStorage.setItem('isAuthorized', 'false');
33247
+ localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
33242
33248
  return false;
33243
33249
  });
33244
33250
  if (accessToken === '') {
@@ -33247,7 +33253,6 @@ let EzpPrinting = class {
33247
33253
  }
33248
33254
  if (localStorage.getItem('isAuthorized')) {
33249
33255
  authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
33250
- this.authOpen = !authStore.state.isAuthorized;
33251
33256
  }
33252
33257
  return authStore.state.isAuthorized;
33253
33258
  }
@@ -33280,7 +33285,9 @@ let EzpPrinting = class {
33280
33285
  }
33281
33286
  sendCodeToParentWindow();
33282
33287
  initi18n(this.language);
33283
- this.checkAuth();
33288
+ this.checkAuth().then(() => {
33289
+ this.authOpen = !authStore.state.isAuthorized;
33290
+ });
33284
33291
  }
33285
33292
  componentDidLoad() {
33286
33293
  this.refreshTokensPeriodically(1800);
@@ -33297,7 +33304,8 @@ let EzpPrinting = class {
33297
33304
  }
33298
33305
  static get watchers() { return {
33299
33306
  "filedata": ["watchFileData"],
33300
- "filename": ["watchFilename"]
33307
+ "filename": ["watchFilename"],
33308
+ "fileurl": ["watchFileUrl"]
33301
33309
  }; }
33302
33310
  };
33303
33311
  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,12 +141,13 @@ export class EzpPrinting {
136
141
  authStore.state.isAuthorized = true;
137
142
  }
138
143
  if (!response.ok) {
144
+ authStore.state.isAuthorized = false;
139
145
  throw new Error('http status ' + response.status);
140
146
  }
141
147
  })
142
148
  .catch(() => {
143
149
  authStore.state.isAuthorized = false;
144
- localStorage.setItem('isAuthorized', 'false');
150
+ localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
145
151
  return false;
146
152
  });
147
153
  if (accessToken === '') {
@@ -150,7 +156,6 @@ export class EzpPrinting {
150
156
  }
151
157
  if (localStorage.getItem('isAuthorized')) {
152
158
  authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
153
- this.authOpen = !authStore.state.isAuthorized;
154
159
  }
155
160
  return authStore.state.isAuthorized;
156
161
  }
@@ -183,7 +188,9 @@ export class EzpPrinting {
183
188
  }
184
189
  sendCodeToParentWindow();
185
190
  initi18n(this.language);
186
- this.checkAuth();
191
+ this.checkAuth().then(() => {
192
+ this.authOpen = !authStore.state.isAuthorized;
193
+ });
187
194
  }
188
195
  componentDidLoad() {
189
196
  this.refreshTokensPeriodically(1800);
@@ -615,6 +622,9 @@ export class EzpPrinting {
615
622
  }, {
616
623
  "propName": "filename",
617
624
  "methodName": "watchFilename"
625
+ }, {
626
+ "propName": "fileurl",
627
+ "methodName": "watchFileUrl"
618
628
  }]; }
619
629
  static get listeners() { return [{
620
630
  "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,12 +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 = false;
33261
33267
  throw new Error('http status ' + response.status);
33262
33268
  }
33263
33269
  })
33264
33270
  .catch(() => {
33265
33271
  authStore.state.isAuthorized = false;
33266
- localStorage.setItem('isAuthorized', 'false');
33272
+ localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
33267
33273
  return false;
33268
33274
  });
33269
33275
  if (accessToken === '') {
@@ -33272,7 +33278,6 @@ let EzpPrinting$1 = class extends HTMLElement {
33272
33278
  }
33273
33279
  if (localStorage.getItem('isAuthorized')) {
33274
33280
  authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
33275
- this.authOpen = !authStore.state.isAuthorized;
33276
33281
  }
33277
33282
  return authStore.state.isAuthorized;
33278
33283
  }
@@ -33305,7 +33310,9 @@ let EzpPrinting$1 = class extends HTMLElement {
33305
33310
  }
33306
33311
  sendCodeToParentWindow();
33307
33312
  initi18n(this.language);
33308
- this.checkAuth();
33313
+ this.checkAuth().then(() => {
33314
+ this.authOpen = !authStore.state.isAuthorized;
33315
+ });
33309
33316
  }
33310
33317
  componentDidLoad() {
33311
33318
  this.refreshTokensPeriodically(1800);
@@ -33322,7 +33329,8 @@ let EzpPrinting$1 = class extends HTMLElement {
33322
33329
  }
33323
33330
  static get watchers() { return {
33324
33331
  "filedata": ["watchFileData"],
33325
- "filename": ["watchFilename"]
33332
+ "filename": ["watchFilename"],
33333
+ "fileurl": ["watchFileUrl"]
33326
33334
  }; }
33327
33335
  static get style() { return ezpPrintingCss; }
33328
33336
  };
@@ -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,12 +33234,13 @@ let EzpPrinting = class {
33229
33234
  authStore.state.isAuthorized = true;
33230
33235
  }
33231
33236
  if (!response.ok) {
33237
+ authStore.state.isAuthorized = false;
33232
33238
  throw new Error('http status ' + response.status);
33233
33239
  }
33234
33240
  })
33235
33241
  .catch(() => {
33236
33242
  authStore.state.isAuthorized = false;
33237
- localStorage.setItem('isAuthorized', 'false');
33243
+ localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
33238
33244
  return false;
33239
33245
  });
33240
33246
  if (accessToken === '') {
@@ -33243,7 +33249,6 @@ let EzpPrinting = class {
33243
33249
  }
33244
33250
  if (localStorage.getItem('isAuthorized')) {
33245
33251
  authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
33246
- this.authOpen = !authStore.state.isAuthorized;
33247
33252
  }
33248
33253
  return authStore.state.isAuthorized;
33249
33254
  }
@@ -33276,7 +33281,9 @@ let EzpPrinting = class {
33276
33281
  }
33277
33282
  sendCodeToParentWindow();
33278
33283
  initi18n(this.language);
33279
- this.checkAuth();
33284
+ this.checkAuth().then(() => {
33285
+ this.authOpen = !authStore.state.isAuthorized;
33286
+ });
33280
33287
  }
33281
33288
  componentDidLoad() {
33282
33289
  this.refreshTokensPeriodically(1800);
@@ -33293,7 +33300,8 @@ let EzpPrinting = class {
33293
33300
  }
33294
33301
  static get watchers() { return {
33295
33302
  "filedata": ["watchFileData"],
33296
- "filename": ["watchFilename"]
33303
+ "filename": ["watchFilename"],
33304
+ "fileurl": ["watchFileUrl"]
33297
33305
  }; }
33298
33306
  };
33299
33307
  EzpPrinting.style = ezpPrintingCss;