@sankhyalabs/sankhyablocks 1.1.23 → 1.1.24
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/{index-20a7d705.js → index-4720dab8.js} +5 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +305 -1233
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +6 -3
- package/dist/collection/temp/ApplicationUtils.js +6 -1
- package/dist/components/snk-application.js +299 -1227
- package/dist/esm/{index-8d3572c4.js → index-72d4e2e0.js} +5 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sankhyablocks.js +2 -2
- package/dist/esm/snk-application.entry.js +300 -1228
- package/dist/sankhyablocks/p-45635e4f.entry.js +57 -0
- package/dist/sankhyablocks/p-a33afc3b.js +2 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components.d.ts +7 -3
- package/dist/types/temp/ApplicationUtils.d.ts +5 -1
- package/package.json +12 -7
- package/dist/sankhyablocks/p-5fa264b9.js +0 -1
- package/dist/sankhyablocks/p-f3bdd8c3.entry.js +0 -57
|
@@ -88,8 +88,8 @@ export class SnkApplication {
|
|
|
88
88
|
async confirm(title, message, icon, critical) {
|
|
89
89
|
return ApplicationUtils.confirm(title, message, icon, critical);
|
|
90
90
|
}
|
|
91
|
-
async info(message) {
|
|
92
|
-
return ApplicationUtils.info(message);
|
|
91
|
+
async info(message, options = undefined) {
|
|
92
|
+
return ApplicationUtils.info(message, options);
|
|
93
93
|
}
|
|
94
94
|
async loadFormConfig(name) {
|
|
95
95
|
return this.formConfigFetcher.loadFormConfig(name, this.resourceID);
|
|
@@ -444,10 +444,13 @@ export class SnkApplication {
|
|
|
444
444
|
},
|
|
445
445
|
"info": {
|
|
446
446
|
"complexType": {
|
|
447
|
-
"signature": "(message: string) => Promise<void>",
|
|
447
|
+
"signature": "(message: string, options?: any) => Promise<void>",
|
|
448
448
|
"parameters": [{
|
|
449
449
|
"tags": [],
|
|
450
450
|
"text": ""
|
|
451
|
+
}, {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": ""
|
|
451
454
|
}],
|
|
452
455
|
"references": {
|
|
453
456
|
"Promise": {
|
|
@@ -18,14 +18,19 @@ export default class ApplicationUtils {
|
|
|
18
18
|
static async confirm(title, message, icon = null, critical = false) {
|
|
19
19
|
return ApplicationUtils.showDialog(title, message, icon, true, critical);
|
|
20
20
|
}
|
|
21
|
-
static async info(message) {
|
|
21
|
+
static async info(message, options = ApplicationUtils.defaultMessageOptions) {
|
|
22
22
|
let toast = document.querySelector("ez-toast");
|
|
23
23
|
if (!toast) {
|
|
24
24
|
toast = document.createElement("ez-toast");
|
|
25
25
|
window.document.body.appendChild(toast);
|
|
26
26
|
}
|
|
27
|
+
toast.canClose = options.canClose;
|
|
27
28
|
toast.message = message;
|
|
28
29
|
toast.fadeTime = 4000;
|
|
29
30
|
toast.show();
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
ApplicationUtils.defaultMessageOptions = {
|
|
34
|
+
canClose: true
|
|
35
|
+
};
|
|
36
|
+
;
|