impaktapps-ui-builder 1.0.50 → 1.0.52

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.
@@ -11,6 +11,8 @@ declare const _default: (funcParams: funcParamsProps) => {
11
11
  setPage: () => Promise<void>;
12
12
  onCellRenderer: (cellParams: any) => {};
13
13
  onClick: () => void;
14
+ onDeletePopupNo: () => void;
15
+ onDeletePopupYes: () => void;
14
16
  onMount: () => void;
15
17
  onFileDownload: () => void;
16
18
  onFileUpload: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -8,7 +8,7 @@ const FileInput = {
8
8
  widget: "FileInputField",
9
9
  },
10
10
  config: {
11
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
11
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
12
12
  main: {
13
13
  required: false,
14
14
  onUpload: "onFileUpload",
@@ -54,7 +54,7 @@ const cardLayout = {
54
54
  widget: "SelectInputField",
55
55
  },
56
56
  config: {
57
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
57
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
58
58
  main: {
59
59
  label: "Screen Size",
60
60
 
@@ -6,7 +6,7 @@ export default {
6
6
  widget: "SelectInputField",
7
7
  },
8
8
  config: {
9
- layout: { xs: 12, sm: 6, md: 4, lg: 4 },
9
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
10
10
  main: {
11
11
  label: "",
12
12
  type: "text",
@@ -38,6 +38,7 @@ export const EventSchema = {
38
38
  eventType: {
39
39
  type: "string",
40
40
  oneOf: [
41
+
41
42
  { title: "Click", const: "onClick" },
42
43
  { title: "Load", const: "onLoad" },
43
44
  { title: "Change", const: "onChange" },
@@ -50,7 +51,9 @@ export const EventSchema = {
50
51
  { title: "Next", const: "onNext" },
51
52
  { title: "Row Movement", const: "onRowMovement" },
52
53
  { title: "Download", const: "onDownload" },
53
- { title: "Fail", const: "Fail" }
54
+ { title: "Fail", const: "Fail" },
55
+ { title: "PopUP NO Event", const: "onDeletePopupNo" },
56
+ { title: "PopUP Yes Event", const: "onDeletePopupYes" },
54
57
  ]
55
58
  },
56
59
  Handler: {
@@ -84,12 +87,12 @@ export const EventSchema = {
84
87
  },
85
88
  },
86
89
  },
87
- RemoveItemButton:{
90
+ RemoveItemButton: {
88
91
  disabled: true,
89
92
  },
90
93
  pageName: {
91
- path: [{label: "defaultLabel", path: "defaultPath"}]
94
+ path: [{ label: "defaultLabel", path: "defaultPath" }]
92
95
  },
93
96
  },
94
- required:["eventType","Handler"]
97
+ required: ["eventType", "Handler"]
95
98
  }
@@ -233,6 +233,12 @@ export default (funcParams: funcParamsProps) => {
233
233
  onClick: function () {
234
234
  this.callHandler("onClick")
235
235
  },
236
+ onDeletePopupNo: function () {
237
+ this.callHandler("onDeletePopupNo")
238
+ },
239
+ onDeletePopupYes: function () {
240
+ this.callHandler("onDeletePopupYes")
241
+ },
236
242
  onMount: function () {
237
243
  this.callHandler("onMount")
238
244
  },
@@ -339,7 +345,7 @@ export default (funcParams: funcParamsProps) => {
339
345
  }
340
346
  },
341
347
  callHandler: async function (eventType: string, functionParameters?: any) {
342
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[0];
348
+ const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
343
349
  if (eventGroups?.[eventType]?.[path] !== undefined) {
344
350
  Promise.all(eventGroups?.[eventType]?.[path].map((eventConfig) => {
345
351
  executeEventsParameters.store.functionParameters = functionParameters