impaktapps-ui-builder 0.0.101-alpha.278 → 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: "",
|
|
@@ -10327,13 +10324,16 @@ var service = (funcParams) => {
|
|
|
10327
10324
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10328
10325
|
funcParams.store.setAdditionalErrors([]);
|
|
10329
10326
|
funcParams.store.setFormdata({});
|
|
10330
|
-
eventGroups = {};
|
|
10331
10327
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10332
10328
|
funcParams.store.newData = {};
|
|
10333
|
-
|
|
10334
|
-
pageData =
|
|
10335
|
-
const config2 =
|
|
10336
|
-
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);
|
|
10337
10337
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10338
10338
|
uiSchema.elements.push(
|
|
10339
10339
|
{
|
|
@@ -10441,8 +10441,8 @@ var service = (funcParams) => {
|
|
|
10441
10441
|
}
|
|
10442
10442
|
);
|
|
10443
10443
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10444
|
-
const
|
|
10445
|
-
eventGroups =
|
|
10444
|
+
const newEventGroups = extractEvents(config2);
|
|
10445
|
+
eventGroups = newEventGroups;
|
|
10446
10446
|
executeEventsParameters = {
|
|
10447
10447
|
config: {},
|
|
10448
10448
|
componentName: "",
|
|
@@ -10452,10 +10452,9 @@ var service = (funcParams) => {
|
|
|
10452
10452
|
service: funcParams.service,
|
|
10453
10453
|
functionsProvider: funcParams.functionsProvider,
|
|
10454
10454
|
serviceHolder: this,
|
|
10455
|
-
eventGroups:
|
|
10455
|
+
eventGroups: newEventGroups,
|
|
10456
10456
|
formDataHolder
|
|
10457
10457
|
};
|
|
10458
|
-
console.log("neweventGroups >> ", neweventGroups, eventGroups);
|
|
10459
10458
|
await executeRefreshHandler({
|
|
10460
10459
|
config: {},
|
|
10461
10460
|
componentName: "",
|
|
@@ -10464,7 +10463,7 @@ var service = (funcParams) => {
|
|
|
10464
10463
|
userValue: funcParams.userValue,
|
|
10465
10464
|
service: funcParams.service,
|
|
10466
10465
|
serviceHolder: this,
|
|
10467
|
-
eventGroups:
|
|
10466
|
+
eventGroups: newEventGroups,
|
|
10468
10467
|
formDataHolder: {}
|
|
10469
10468
|
});
|
|
10470
10469
|
funcParams.store.setSchema(
|
|
@@ -10478,11 +10477,6 @@ var service = (funcParams) => {
|
|
|
10478
10477
|
);
|
|
10479
10478
|
uiSchema.elements.push(notifyUiSchema);
|
|
10480
10479
|
funcParams.store.setUiSchema(uiSchema);
|
|
10481
|
-
sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
10482
|
-
schema: pageData == null ? void 0 : pageData.schema,
|
|
10483
|
-
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
10484
|
-
config: pageData == null ? void 0 : pageData.config
|
|
10485
|
-
}));
|
|
10486
10480
|
},
|
|
10487
10481
|
onCellRenderer: (cellParams) => {
|
|
10488
10482
|
var _a, _b, _c, _d;
|
|
@@ -10502,11 +10496,9 @@ var service = (funcParams) => {
|
|
|
10502
10496
|
return {};
|
|
10503
10497
|
},
|
|
10504
10498
|
onClick: function() {
|
|
10505
|
-
console.log("clicked button");
|
|
10506
10499
|
this.callHandler("onClick");
|
|
10507
10500
|
},
|
|
10508
10501
|
onMount: function() {
|
|
10509
|
-
console.log("omMount");
|
|
10510
10502
|
this.callHandler("onMount");
|
|
10511
10503
|
},
|
|
10512
10504
|
onFileDownload: function() {
|
|
@@ -10530,7 +10522,6 @@ var service = (funcParams) => {
|
|
|
10530
10522
|
},
|
|
10531
10523
|
onPaginationChange: async function(paginationValues) {
|
|
10532
10524
|
var _a;
|
|
10533
|
-
console.log("onPaginationChange");
|
|
10534
10525
|
const apiBody = [
|
|
10535
10526
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10536
10527
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
@@ -10542,7 +10533,6 @@ var service = (funcParams) => {
|
|
|
10542
10533
|
return response == null ? void 0 : response.data;
|
|
10543
10534
|
},
|
|
10544
10535
|
getSelectOptions: async function(param) {
|
|
10545
|
-
console.log("getSelectOptions");
|
|
10546
10536
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10547
10537
|
const apiBody = [
|
|
10548
10538
|
{ key: "searchValue", value: param.serachValue },
|
|
@@ -10553,7 +10543,6 @@ var service = (funcParams) => {
|
|
|
10553
10543
|
}
|
|
10554
10544
|
},
|
|
10555
10545
|
onChange: async function() {
|
|
10556
|
-
console.log("onChange");
|
|
10557
10546
|
if (eventGroups.onChange) {
|
|
10558
10547
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10559
10548
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|