impaktapps-ui-builder 0.0.409-s → 0.0.409-t
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/package.json
CHANGED
|
@@ -21,7 +21,7 @@ interface funcParamsProps {
|
|
|
21
21
|
pageDataProvider: any,
|
|
22
22
|
functionsProvider?: Record<string, any>
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
let pageData: any = false;
|
|
25
25
|
export const extractEvents = (eventConfig: any) => {
|
|
26
26
|
function extractsConfigEvents(eventConfigObj: any) {
|
|
27
27
|
if (eventConfigObj.events) {
|
|
@@ -62,6 +62,11 @@ export const extractEvents = (eventConfig: any) => {
|
|
|
62
62
|
return eventGroups;
|
|
63
63
|
};
|
|
64
64
|
export default (funcParams: funcParamsProps) => {
|
|
65
|
+
if (pageData) {
|
|
66
|
+
if ((!isEmpty(pageData)) && typeof pageData === "object") {
|
|
67
|
+
eventGroups = extractEvents(pageData?.config)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
65
70
|
let executeEventsParameters: handlersProps = {
|
|
66
71
|
config: {}, componentName: "",
|
|
67
72
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
@@ -72,7 +77,6 @@ export default (funcParams: funcParamsProps) => {
|
|
|
72
77
|
setPage: async function () {
|
|
73
78
|
funcParams.store.setFormdata({})
|
|
74
79
|
|
|
75
|
-
let pageData;
|
|
76
80
|
const pageBasicDetailString = localStorage.getItem("pagemasterMetaData")
|
|
77
81
|
if (pageBasicDetailString) {
|
|
78
82
|
pageData = JSON.parse(pageBasicDetailString)
|