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.
- package/dist/impaktapps-ui-builder.es.js +13 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +7 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -1
|
@@ -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
|
@@ -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(".")[
|
|
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
|