@ezeep/ezeep-js 1.0.188 → 1.0.191
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 +16 -7
- package/dist/collection/components/ezp-printing/ezp-printing.js +20 -8
- package/dist/custom-elements/index.js +16 -7
- package/dist/esm/ezp-auth_14.entry.js +16 -7
- 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-f8090b7f.entry.js → p-67bc8ab8.entry.js} +1 -1
- package/dist/ezeep/{p-90ac2e3e.system.entry.js → p-acc288fe.system.entry.js} +1 -1
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +3 -0
- 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-f8090b7f.entry.js → p-67bc8ab8.entry.js} +1 -1
- package/www/build/{p-90ac2e3e.system.entry.js → p-acc288fe.system.entry.js} +1 -1
|
@@ -33117,6 +33117,18 @@ let EzpPrinting = class {
|
|
|
33117
33117
|
this.onlyGetSasUri = false;
|
|
33118
33118
|
this.noDocumentOpen = false;
|
|
33119
33119
|
}
|
|
33120
|
+
/** Watchers */
|
|
33121
|
+
watchFileData(newValue, oldValue) {
|
|
33122
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33123
|
+
const uint8array = new TextEncoder().encode(newValue);
|
|
33124
|
+
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33125
|
+
}
|
|
33126
|
+
}
|
|
33127
|
+
watchFilename(newValue, oldValue) {
|
|
33128
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33129
|
+
this.filename = newValue;
|
|
33130
|
+
}
|
|
33131
|
+
}
|
|
33120
33132
|
/**
|
|
33121
33133
|
*
|
|
33122
33134
|
* Listeners
|
|
@@ -33262,13 +33274,6 @@ let EzpPrinting = class {
|
|
|
33262
33274
|
else {
|
|
33263
33275
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33264
33276
|
}
|
|
33265
|
-
console.log(this.filedata);
|
|
33266
|
-
console.log(this.filename);
|
|
33267
|
-
if (this.filedata) {
|
|
33268
|
-
const uint8array = new TextEncoder().encode(this.filedata);
|
|
33269
|
-
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33270
|
-
console.log(this.file);
|
|
33271
|
-
}
|
|
33272
33277
|
sendCodeToParentWindow();
|
|
33273
33278
|
initi18n(this.language);
|
|
33274
33279
|
this.checkAuth();
|
|
@@ -33286,6 +33291,10 @@ let EzpPrinting = class {
|
|
|
33286
33291
|
? this.systemAppearance
|
|
33287
33292
|
: userStore.state.appearance}` }, 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 })) : 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));
|
|
33288
33293
|
}
|
|
33294
|
+
static get watchers() { return {
|
|
33295
|
+
"filedata": ["watchFileData"],
|
|
33296
|
+
"filename": ["watchFilename"]
|
|
33297
|
+
}; }
|
|
33289
33298
|
};
|
|
33290
33299
|
EzpPrinting.style = ezpPrintingCss;
|
|
33291
33300
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Host, State, Listen, Method, h, Prop } from '@stencil/core';
|
|
1
|
+
import { Component, Host, State, Listen, Method, h, Prop, Watch } from '@stencil/core';
|
|
2
2
|
import authStore, { EzpAuthorizationService, sendCodeToParentWindow } from '../../services/auth';
|
|
3
3
|
import printStore, { EzpPrintService } from '../../services/print';
|
|
4
4
|
import userStore from '../../services/user';
|
|
@@ -23,6 +23,18 @@ export class EzpPrinting {
|
|
|
23
23
|
this.onlyGetSasUri = false;
|
|
24
24
|
this.noDocumentOpen = false;
|
|
25
25
|
}
|
|
26
|
+
/** Watchers */
|
|
27
|
+
watchFileData(newValue, oldValue) {
|
|
28
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
29
|
+
const uint8array = new TextEncoder().encode(newValue);
|
|
30
|
+
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
watchFilename(newValue, oldValue) {
|
|
34
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
35
|
+
this.filename = newValue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
26
38
|
/**
|
|
27
39
|
*
|
|
28
40
|
* Listeners
|
|
@@ -168,13 +180,6 @@ export class EzpPrinting {
|
|
|
168
180
|
else {
|
|
169
181
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
170
182
|
}
|
|
171
|
-
console.log(this.filedata);
|
|
172
|
-
console.log(this.filename);
|
|
173
|
-
if (this.filedata) {
|
|
174
|
-
const uint8array = new TextEncoder().encode(this.filedata);
|
|
175
|
-
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
176
|
-
console.log(this.file);
|
|
177
|
-
}
|
|
178
183
|
sendCodeToParentWindow();
|
|
179
184
|
initi18n(this.language);
|
|
180
185
|
this.checkAuth();
|
|
@@ -587,6 +592,13 @@ export class EzpPrinting {
|
|
|
587
592
|
}
|
|
588
593
|
}
|
|
589
594
|
}; }
|
|
595
|
+
static get watchers() { return [{
|
|
596
|
+
"propName": "filedata",
|
|
597
|
+
"methodName": "watchFileData"
|
|
598
|
+
}, {
|
|
599
|
+
"propName": "filename",
|
|
600
|
+
"methodName": "watchFilename"
|
|
601
|
+
}]; }
|
|
590
602
|
static get listeners() { return [{
|
|
591
603
|
"name": "printCancel",
|
|
592
604
|
"method": "listenPrintCancel",
|
|
@@ -33142,6 +33142,18 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33142
33142
|
this.onlyGetSasUri = false;
|
|
33143
33143
|
this.noDocumentOpen = false;
|
|
33144
33144
|
}
|
|
33145
|
+
/** Watchers */
|
|
33146
|
+
watchFileData(newValue, oldValue) {
|
|
33147
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33148
|
+
const uint8array = new TextEncoder().encode(newValue);
|
|
33149
|
+
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33150
|
+
}
|
|
33151
|
+
}
|
|
33152
|
+
watchFilename(newValue, oldValue) {
|
|
33153
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33154
|
+
this.filename = newValue;
|
|
33155
|
+
}
|
|
33156
|
+
}
|
|
33145
33157
|
/**
|
|
33146
33158
|
*
|
|
33147
33159
|
* Listeners
|
|
@@ -33287,13 +33299,6 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33287
33299
|
else {
|
|
33288
33300
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33289
33301
|
}
|
|
33290
|
-
console.log(this.filedata);
|
|
33291
|
-
console.log(this.filename);
|
|
33292
|
-
if (this.filedata) {
|
|
33293
|
-
const uint8array = new TextEncoder().encode(this.filedata);
|
|
33294
|
-
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33295
|
-
console.log(this.file);
|
|
33296
|
-
}
|
|
33297
33302
|
sendCodeToParentWindow();
|
|
33298
33303
|
initi18n(this.language);
|
|
33299
33304
|
this.checkAuth();
|
|
@@ -33311,6 +33316,10 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33311
33316
|
? this.systemAppearance
|
|
33312
33317
|
: userStore.state.appearance}` }, 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 })) : 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));
|
|
33313
33318
|
}
|
|
33319
|
+
static get watchers() { return {
|
|
33320
|
+
"filedata": ["watchFileData"],
|
|
33321
|
+
"filename": ["watchFilename"]
|
|
33322
|
+
}; }
|
|
33314
33323
|
static get style() { return ezpPrintingCss; }
|
|
33315
33324
|
};
|
|
33316
33325
|
|
|
@@ -33113,6 +33113,18 @@ let EzpPrinting = class {
|
|
|
33113
33113
|
this.onlyGetSasUri = false;
|
|
33114
33114
|
this.noDocumentOpen = false;
|
|
33115
33115
|
}
|
|
33116
|
+
/** Watchers */
|
|
33117
|
+
watchFileData(newValue, oldValue) {
|
|
33118
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33119
|
+
const uint8array = new TextEncoder().encode(newValue);
|
|
33120
|
+
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33121
|
+
}
|
|
33122
|
+
}
|
|
33123
|
+
watchFilename(newValue, oldValue) {
|
|
33124
|
+
if (newValue !== oldValue && newValue.length > 0) {
|
|
33125
|
+
this.filename = newValue;
|
|
33126
|
+
}
|
|
33127
|
+
}
|
|
33116
33128
|
/**
|
|
33117
33129
|
*
|
|
33118
33130
|
* Listeners
|
|
@@ -33258,13 +33270,6 @@ let EzpPrinting = class {
|
|
|
33258
33270
|
else {
|
|
33259
33271
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33260
33272
|
}
|
|
33261
|
-
console.log(this.filedata);
|
|
33262
|
-
console.log(this.filename);
|
|
33263
|
-
if (this.filedata) {
|
|
33264
|
-
const uint8array = new TextEncoder().encode(this.filedata);
|
|
33265
|
-
this.file = new File([uint8array], this.filename, { type: 'application/pdf' });
|
|
33266
|
-
console.log(this.file);
|
|
33267
|
-
}
|
|
33268
33273
|
sendCodeToParentWindow();
|
|
33269
33274
|
initi18n(this.language);
|
|
33270
33275
|
this.checkAuth();
|
|
@@ -33282,6 +33287,10 @@ let EzpPrinting = class {
|
|
|
33282
33287
|
? this.systemAppearance
|
|
33283
33288
|
: userStore.state.appearance}` }, 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 })) : 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));
|
|
33284
33289
|
}
|
|
33290
|
+
static get watchers() { return {
|
|
33291
|
+
"filedata": ["watchFileData"],
|
|
33292
|
+
"filename": ["watchFilename"]
|
|
33293
|
+
}; }
|
|
33285
33294
|
};
|
|
33286
33295
|
EzpPrinting.style = ezpPrintingCss;
|
|
33287
33296
|
|