@ezeep/ezeep-js 1.0.194 → 1.0.195
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.
- package/dist/cjs/ezp-auth_14.cjs.entry.js +9 -11
- package/dist/collection/components/ezp-printing/ezp-printing.js +9 -11
- package/dist/custom-elements/index.js +9 -11
- package/dist/esm/ezp-auth_14.entry.js +9 -11
- package/dist/esm-es5/ezp-auth_14.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-fe2beb59.entry.js → p-3e411bfa.entry.js} +1 -1
- package/dist/ezeep/{p-1391d999.system.entry.js → p-9c80a143.system.entry.js} +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-fe2beb59.entry.js → p-3e411bfa.entry.js} +1 -1
- package/www/build/{p-1391d999.system.entry.js → p-9c80a143.system.entry.js} +1 -1
|
@@ -33125,9 +33125,6 @@ let EzpPrinting = class {
|
|
|
33125
33125
|
if (newValue !== oldValue && newValue.length > 0) {
|
|
33126
33126
|
const uint8array = new TextEncoder().encode(newValue);
|
|
33127
33127
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33128
|
-
if (authStore.state.isAuthorized) {
|
|
33129
|
-
this.printOpen = true;
|
|
33130
|
-
}
|
|
33131
33128
|
}
|
|
33132
33129
|
}
|
|
33133
33130
|
watchFilename(newValue, oldValue) {
|
|
@@ -33231,14 +33228,6 @@ let EzpPrinting = class {
|
|
|
33231
33228
|
async checkAuth() {
|
|
33232
33229
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33233
33230
|
let accessToken = authStore.state.accessToken;
|
|
33234
|
-
if (accessToken === '') {
|
|
33235
|
-
accessToken = localStorage.getItem('access_token');
|
|
33236
|
-
authStore.state.accessToken = accessToken;
|
|
33237
|
-
}
|
|
33238
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33239
|
-
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33240
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33241
|
-
}
|
|
33242
33231
|
printService.getConfig(authStore.state.accessToken)
|
|
33243
33232
|
.then((response) => {
|
|
33244
33233
|
if (response.ok) {
|
|
@@ -33250,7 +33239,16 @@ let EzpPrinting = class {
|
|
|
33250
33239
|
})
|
|
33251
33240
|
.catch(() => {
|
|
33252
33241
|
authStore.state.isAuthorized = false;
|
|
33242
|
+
return false;
|
|
33253
33243
|
});
|
|
33244
|
+
if (accessToken === '') {
|
|
33245
|
+
accessToken = localStorage.getItem('access_token');
|
|
33246
|
+
authStore.state.accessToken = accessToken;
|
|
33247
|
+
}
|
|
33248
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33249
|
+
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33250
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33251
|
+
}
|
|
33254
33252
|
return authStore.state.isAuthorized;
|
|
33255
33253
|
}
|
|
33256
33254
|
refreshTokensPeriodically(seconds) {
|
|
@@ -28,9 +28,6 @@ export class EzpPrinting {
|
|
|
28
28
|
if (newValue !== oldValue && newValue.length > 0) {
|
|
29
29
|
const uint8array = new TextEncoder().encode(newValue);
|
|
30
30
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
31
|
-
if (authStore.state.isAuthorized) {
|
|
32
|
-
this.printOpen = true;
|
|
33
|
-
}
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
33
|
watchFilename(newValue, oldValue) {
|
|
@@ -134,14 +131,6 @@ export class EzpPrinting {
|
|
|
134
131
|
async checkAuth() {
|
|
135
132
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
136
133
|
let accessToken = authStore.state.accessToken;
|
|
137
|
-
if (accessToken === '') {
|
|
138
|
-
accessToken = localStorage.getItem('access_token');
|
|
139
|
-
authStore.state.accessToken = accessToken;
|
|
140
|
-
}
|
|
141
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
142
|
-
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
143
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
144
|
-
}
|
|
145
134
|
printService.getConfig(authStore.state.accessToken)
|
|
146
135
|
.then((response) => {
|
|
147
136
|
if (response.ok) {
|
|
@@ -153,7 +142,16 @@ export class EzpPrinting {
|
|
|
153
142
|
})
|
|
154
143
|
.catch(() => {
|
|
155
144
|
authStore.state.isAuthorized = false;
|
|
145
|
+
return false;
|
|
156
146
|
});
|
|
147
|
+
if (accessToken === '') {
|
|
148
|
+
accessToken = localStorage.getItem('access_token');
|
|
149
|
+
authStore.state.accessToken = accessToken;
|
|
150
|
+
}
|
|
151
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
152
|
+
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
153
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
154
|
+
}
|
|
157
155
|
return authStore.state.isAuthorized;
|
|
158
156
|
}
|
|
159
157
|
refreshTokensPeriodically(seconds) {
|
|
@@ -33150,9 +33150,6 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33150
33150
|
if (newValue !== oldValue && newValue.length > 0) {
|
|
33151
33151
|
const uint8array = new TextEncoder().encode(newValue);
|
|
33152
33152
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33153
|
-
if (authStore.state.isAuthorized) {
|
|
33154
|
-
this.printOpen = true;
|
|
33155
|
-
}
|
|
33156
33153
|
}
|
|
33157
33154
|
}
|
|
33158
33155
|
watchFilename(newValue, oldValue) {
|
|
@@ -33256,14 +33253,6 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33256
33253
|
async checkAuth() {
|
|
33257
33254
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33258
33255
|
let accessToken = authStore.state.accessToken;
|
|
33259
|
-
if (accessToken === '') {
|
|
33260
|
-
accessToken = localStorage.getItem('access_token');
|
|
33261
|
-
authStore.state.accessToken = accessToken;
|
|
33262
|
-
}
|
|
33263
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33264
|
-
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33265
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33266
|
-
}
|
|
33267
33256
|
printService.getConfig(authStore.state.accessToken)
|
|
33268
33257
|
.then((response) => {
|
|
33269
33258
|
if (response.ok) {
|
|
@@ -33275,7 +33264,16 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33275
33264
|
})
|
|
33276
33265
|
.catch(() => {
|
|
33277
33266
|
authStore.state.isAuthorized = false;
|
|
33267
|
+
return false;
|
|
33278
33268
|
});
|
|
33269
|
+
if (accessToken === '') {
|
|
33270
|
+
accessToken = localStorage.getItem('access_token');
|
|
33271
|
+
authStore.state.accessToken = accessToken;
|
|
33272
|
+
}
|
|
33273
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33274
|
+
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33275
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33276
|
+
}
|
|
33279
33277
|
return authStore.state.isAuthorized;
|
|
33280
33278
|
}
|
|
33281
33279
|
refreshTokensPeriodically(seconds) {
|
|
@@ -33121,9 +33121,6 @@ let EzpPrinting = class {
|
|
|
33121
33121
|
if (newValue !== oldValue && newValue.length > 0) {
|
|
33122
33122
|
const uint8array = new TextEncoder().encode(newValue);
|
|
33123
33123
|
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33124
|
-
if (authStore.state.isAuthorized) {
|
|
33125
|
-
this.printOpen = true;
|
|
33126
|
-
}
|
|
33127
33124
|
}
|
|
33128
33125
|
}
|
|
33129
33126
|
watchFilename(newValue, oldValue) {
|
|
@@ -33227,14 +33224,6 @@ let EzpPrinting = class {
|
|
|
33227
33224
|
async checkAuth() {
|
|
33228
33225
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33229
33226
|
let accessToken = authStore.state.accessToken;
|
|
33230
|
-
if (accessToken === '') {
|
|
33231
|
-
accessToken = localStorage.getItem('access_token');
|
|
33232
|
-
authStore.state.accessToken = accessToken;
|
|
33233
|
-
}
|
|
33234
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33235
|
-
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33236
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33237
|
-
}
|
|
33238
33227
|
printService.getConfig(authStore.state.accessToken)
|
|
33239
33228
|
.then((response) => {
|
|
33240
33229
|
if (response.ok) {
|
|
@@ -33246,7 +33235,16 @@ let EzpPrinting = class {
|
|
|
33246
33235
|
})
|
|
33247
33236
|
.catch(() => {
|
|
33248
33237
|
authStore.state.isAuthorized = false;
|
|
33238
|
+
return false;
|
|
33249
33239
|
});
|
|
33240
|
+
if (accessToken === '') {
|
|
33241
|
+
accessToken = localStorage.getItem('access_token');
|
|
33242
|
+
authStore.state.accessToken = accessToken;
|
|
33243
|
+
}
|
|
33244
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33245
|
+
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33246
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33247
|
+
}
|
|
33250
33248
|
return authStore.state.isAuthorized;
|
|
33251
33249
|
}
|
|
33252
33250
|
refreshTokensPeriodically(seconds) {
|