@webtypen/webframez-core 0.3.24 → 0.3.26

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.
@@ -33,12 +33,16 @@ export declare class Datatable {
33
33
  handle: Function;
34
34
  isAvailable?: Function;
35
35
  payload?: any;
36
+ confirmMessage?: string;
37
+ confirmOptions?: any;
36
38
  };
37
39
  } | null;
38
40
  getInit(req: Request): Promise<any>;
39
41
  getSelectableFunctionsDef(req: Request): Promise<{
40
42
  label: string;
41
43
  icon: string | undefined;
44
+ confirmMessage: string | undefined;
45
+ confirmOptions: any;
42
46
  apiFunction: string;
43
47
  apiFunctionPayload: any;
44
48
  }[] | null>;
@@ -103,6 +103,8 @@ class Datatable {
103
103
  out.push({
104
104
  label: this.selectableFunctions[key].label,
105
105
  icon: this.selectableFunctions[key].icon,
106
+ confirmMessage: this.selectableFunctions[key].confirmMessage,
107
+ confirmOptions: this.selectableFunctions[key].confirmOptions,
106
108
  apiFunction: key,
107
109
  apiFunctionPayload: this.selectableFunctions[key].payload
108
110
  ? typeof this.selectableFunctions[key].payload === "function"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.24",
3
+ "version": "0.3.26",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -23,7 +23,15 @@ export class Datatable {
23
23
  disablePerPageConfig = false;
24
24
  selectable = false;
25
25
  selectableFunctions: {
26
- [key: string]: { label: string; icon?: string; handle: Function; isAvailable?: Function; payload?: any };
26
+ [key: string]: {
27
+ label: string;
28
+ icon?: string;
29
+ handle: Function;
30
+ isAvailable?: Function;
31
+ payload?: any;
32
+ confirmMessage?: string;
33
+ confirmOptions?: any;
34
+ };
27
35
  } | null = null;
28
36
 
29
37
  async getInit(req: Request) {
@@ -105,6 +113,8 @@ export class Datatable {
105
113
  out.push({
106
114
  label: this.selectableFunctions[key].label,
107
115
  icon: this.selectableFunctions[key].icon,
116
+ confirmMessage: this.selectableFunctions[key].confirmMessage,
117
+ confirmOptions: this.selectableFunctions[key].confirmOptions,
108
118
  apiFunction: key,
109
119
  apiFunctionPayload: this.selectableFunctions[key].payload
110
120
  ? typeof this.selectableFunctions[key].payload === "function"