impaktapps-ui-builder 0.0.101-alpha.277 → 0.0.101-alpha.279
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.
|
@@ -10306,11 +10306,8 @@ const extractEvents = (eventConfig) => {
|
|
|
10306
10306
|
return eventGroups;
|
|
10307
10307
|
};
|
|
10308
10308
|
var service = (funcParams) => {
|
|
10309
|
+
eventGroups = {};
|
|
10309
10310
|
const formDataHolder = {};
|
|
10310
|
-
if (pageData) {
|
|
10311
|
-
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object")
|
|
10312
|
-
;
|
|
10313
|
-
}
|
|
10314
10311
|
let executeEventsParameters = {
|
|
10315
10312
|
config: {},
|
|
10316
10313
|
componentName: "",
|
|
@@ -10329,10 +10326,14 @@ var service = (funcParams) => {
|
|
|
10329
10326
|
funcParams.store.setFormdata({});
|
|
10330
10327
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10331
10328
|
funcParams.store.newData = {};
|
|
10332
|
-
|
|
10333
|
-
pageData =
|
|
10334
|
-
const config2 =
|
|
10335
|
-
const uiSchema =
|
|
10329
|
+
eventGroups = {};
|
|
10330
|
+
pageData = await funcParams.pageDataProvider();
|
|
10331
|
+
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10332
|
+
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10333
|
+
const event2 = new CustomEvent("pageNameChanged", {
|
|
10334
|
+
detail: { pageName: config2.label }
|
|
10335
|
+
});
|
|
10336
|
+
window.dispatchEvent(event2);
|
|
10336
10337
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10337
10338
|
uiSchema.elements.push(
|
|
10338
10339
|
{
|
|
@@ -10440,8 +10441,8 @@ var service = (funcParams) => {
|
|
|
10440
10441
|
}
|
|
10441
10442
|
);
|
|
10442
10443
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10443
|
-
const
|
|
10444
|
-
eventGroups =
|
|
10444
|
+
const newEventGroups = extractEvents(config2);
|
|
10445
|
+
eventGroups = newEventGroups;
|
|
10445
10446
|
executeEventsParameters = {
|
|
10446
10447
|
config: {},
|
|
10447
10448
|
componentName: "",
|
|
@@ -10451,10 +10452,9 @@ var service = (funcParams) => {
|
|
|
10451
10452
|
service: funcParams.service,
|
|
10452
10453
|
functionsProvider: funcParams.functionsProvider,
|
|
10453
10454
|
serviceHolder: this,
|
|
10454
|
-
eventGroups:
|
|
10455
|
+
eventGroups: newEventGroups,
|
|
10455
10456
|
formDataHolder
|
|
10456
10457
|
};
|
|
10457
|
-
console.log("neweventGroups >> ", neweventGroups, eventGroups);
|
|
10458
10458
|
await executeRefreshHandler({
|
|
10459
10459
|
config: {},
|
|
10460
10460
|
componentName: "",
|
|
@@ -10463,7 +10463,7 @@ var service = (funcParams) => {
|
|
|
10463
10463
|
userValue: funcParams.userValue,
|
|
10464
10464
|
service: funcParams.service,
|
|
10465
10465
|
serviceHolder: this,
|
|
10466
|
-
eventGroups:
|
|
10466
|
+
eventGroups: newEventGroups,
|
|
10467
10467
|
formDataHolder: {}
|
|
10468
10468
|
});
|
|
10469
10469
|
funcParams.store.setSchema(
|
|
@@ -10477,11 +10477,6 @@ var service = (funcParams) => {
|
|
|
10477
10477
|
);
|
|
10478
10478
|
uiSchema.elements.push(notifyUiSchema);
|
|
10479
10479
|
funcParams.store.setUiSchema(uiSchema);
|
|
10480
|
-
sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
10481
|
-
schema: pageData == null ? void 0 : pageData.schema,
|
|
10482
|
-
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
10483
|
-
config: pageData == null ? void 0 : pageData.config
|
|
10484
|
-
}));
|
|
10485
10480
|
},
|
|
10486
10481
|
onCellRenderer: (cellParams) => {
|
|
10487
10482
|
var _a, _b, _c, _d;
|
|
@@ -10501,11 +10496,9 @@ var service = (funcParams) => {
|
|
|
10501
10496
|
return {};
|
|
10502
10497
|
},
|
|
10503
10498
|
onClick: function() {
|
|
10504
|
-
console.log("clicked button");
|
|
10505
10499
|
this.callHandler("onClick");
|
|
10506
10500
|
},
|
|
10507
10501
|
onMount: function() {
|
|
10508
|
-
console.log("omMount");
|
|
10509
10502
|
this.callHandler("onMount");
|
|
10510
10503
|
},
|
|
10511
10504
|
onFileDownload: function() {
|
|
@@ -10529,7 +10522,6 @@ var service = (funcParams) => {
|
|
|
10529
10522
|
},
|
|
10530
10523
|
onPaginationChange: async function(paginationValues) {
|
|
10531
10524
|
var _a;
|
|
10532
|
-
console.log("onPaginationChange");
|
|
10533
10525
|
const apiBody = [
|
|
10534
10526
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10535
10527
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
@@ -10541,7 +10533,6 @@ var service = (funcParams) => {
|
|
|
10541
10533
|
return response == null ? void 0 : response.data;
|
|
10542
10534
|
},
|
|
10543
10535
|
getSelectOptions: async function(param) {
|
|
10544
|
-
console.log("getSelectOptions");
|
|
10545
10536
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10546
10537
|
const apiBody = [
|
|
10547
10538
|
{ key: "searchValue", value: param.serachValue },
|
|
@@ -10552,7 +10543,6 @@ var service = (funcParams) => {
|
|
|
10552
10543
|
}
|
|
10553
10544
|
},
|
|
10554
10545
|
onChange: async function() {
|
|
10555
|
-
console.log("onChange");
|
|
10556
10546
|
if (eventGroups.onChange) {
|
|
10557
10547
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10558
10548
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|