@urga-panel/ur-panels-core 1.0.14 → 1.0.16
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.
|
@@ -18,6 +18,12 @@ export declare class WVFrontService extends Service {
|
|
|
18
18
|
protected onDestroy(): Promise<ServiceResponse>;
|
|
19
19
|
oWebViewInterface: NSWebViewinterface;
|
|
20
20
|
constructor(ots: WVFrontServiceOts);
|
|
21
|
+
sendFile({ base64, fileName, mimeType, action: mode }: {
|
|
22
|
+
base64: string;
|
|
23
|
+
fileName: string;
|
|
24
|
+
mimeType: string;
|
|
25
|
+
action: string;
|
|
26
|
+
}): void;
|
|
21
27
|
gotoBack(): void;
|
|
22
28
|
sendFetchRequest(url: string, options?: RequestInit): Promise<any>;
|
|
23
29
|
}
|
|
@@ -26,6 +26,9 @@ export class WVFrontService extends Service {
|
|
|
26
26
|
constructor(ots) {
|
|
27
27
|
super({ ...ots });
|
|
28
28
|
}
|
|
29
|
+
sendFile({ base64, fileName, mimeType, action: mode }) {
|
|
30
|
+
this.oWebViewInterface.emit("sendFile", { base64, fileName, mimeType, action: mode });
|
|
31
|
+
}
|
|
29
32
|
gotoBack() {
|
|
30
33
|
this.oWebViewInterface.emit("gotoBack", "");
|
|
31
34
|
}
|
package/package.json
CHANGED
|
@@ -39,6 +39,9 @@ export class WVFrontService extends Service {
|
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
public sendFile({ base64, fileName, mimeType, action: mode }: { base64: string, fileName: string, mimeType: string, action: string }) {
|
|
43
|
+
this.oWebViewInterface.emit("sendFile", { base64, fileName, mimeType, action: mode });
|
|
44
|
+
}
|
|
42
45
|
public gotoBack() {
|
|
43
46
|
this.oWebViewInterface.emit("gotoBack", "");
|
|
44
47
|
}
|