impaktapps-ui-builder 0.0.101-alpha.275 → 0.0.101-alpha.277
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,7 +10306,6 @@ const extractEvents = (eventConfig) => {
|
|
|
10306
10306
|
return eventGroups;
|
|
10307
10307
|
};
|
|
10308
10308
|
var service = (funcParams) => {
|
|
10309
|
-
eventGroups = {};
|
|
10310
10309
|
const formDataHolder = {};
|
|
10311
10310
|
if (pageData) {
|
|
10312
10311
|
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object")
|
|
@@ -10320,7 +10319,6 @@ var service = (funcParams) => {
|
|
|
10320
10319
|
userValue: funcParams.userValue,
|
|
10321
10320
|
service: funcParams.service,
|
|
10322
10321
|
serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
|
|
10323
|
-
eventGroups,
|
|
10324
10322
|
functionsProvider: funcParams.functionsProvider,
|
|
10325
10323
|
formDataHolder
|
|
10326
10324
|
};
|
|
@@ -10331,9 +10329,10 @@ var service = (funcParams) => {
|
|
|
10331
10329
|
funcParams.store.setFormdata({});
|
|
10332
10330
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10333
10331
|
funcParams.store.newData = {};
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
const
|
|
10332
|
+
const newPageData = await funcParams.pageDataProvider();
|
|
10333
|
+
pageData = newPageData;
|
|
10334
|
+
const config2 = newPageData == null ? void 0 : newPageData.config;
|
|
10335
|
+
const uiSchema = newPageData == null ? void 0 : newPageData.uiSchema;
|
|
10337
10336
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10338
10337
|
uiSchema.elements.push(
|
|
10339
10338
|
{
|
|
@@ -10441,7 +10440,8 @@ var service = (funcParams) => {
|
|
|
10441
10440
|
}
|
|
10442
10441
|
);
|
|
10443
10442
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10444
|
-
|
|
10443
|
+
const neweventGroups = extractEvents(config2);
|
|
10444
|
+
eventGroups = neweventGroups;
|
|
10445
10445
|
executeEventsParameters = {
|
|
10446
10446
|
config: {},
|
|
10447
10447
|
componentName: "",
|
|
@@ -10451,9 +10451,10 @@ var service = (funcParams) => {
|
|
|
10451
10451
|
service: funcParams.service,
|
|
10452
10452
|
functionsProvider: funcParams.functionsProvider,
|
|
10453
10453
|
serviceHolder: this,
|
|
10454
|
-
eventGroups,
|
|
10454
|
+
eventGroups: neweventGroups,
|
|
10455
10455
|
formDataHolder
|
|
10456
10456
|
};
|
|
10457
|
+
console.log("neweventGroups >> ", neweventGroups, eventGroups);
|
|
10457
10458
|
await executeRefreshHandler({
|
|
10458
10459
|
config: {},
|
|
10459
10460
|
componentName: "",
|
|
@@ -10462,7 +10463,7 @@ var service = (funcParams) => {
|
|
|
10462
10463
|
userValue: funcParams.userValue,
|
|
10463
10464
|
service: funcParams.service,
|
|
10464
10465
|
serviceHolder: this,
|
|
10465
|
-
eventGroups,
|
|
10466
|
+
eventGroups: neweventGroups,
|
|
10466
10467
|
formDataHolder: {}
|
|
10467
10468
|
});
|
|
10468
10469
|
funcParams.store.setSchema(
|
|
@@ -10500,9 +10501,11 @@ var service = (funcParams) => {
|
|
|
10500
10501
|
return {};
|
|
10501
10502
|
},
|
|
10502
10503
|
onClick: function() {
|
|
10504
|
+
console.log("clicked button");
|
|
10503
10505
|
this.callHandler("onClick");
|
|
10504
10506
|
},
|
|
10505
10507
|
onMount: function() {
|
|
10508
|
+
console.log("omMount");
|
|
10506
10509
|
this.callHandler("onMount");
|
|
10507
10510
|
},
|
|
10508
10511
|
onFileDownload: function() {
|
|
@@ -10526,6 +10529,7 @@ var service = (funcParams) => {
|
|
|
10526
10529
|
},
|
|
10527
10530
|
onPaginationChange: async function(paginationValues) {
|
|
10528
10531
|
var _a;
|
|
10532
|
+
console.log("onPaginationChange");
|
|
10529
10533
|
const apiBody = [
|
|
10530
10534
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10531
10535
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
@@ -10537,6 +10541,7 @@ var service = (funcParams) => {
|
|
|
10537
10541
|
return response == null ? void 0 : response.data;
|
|
10538
10542
|
},
|
|
10539
10543
|
getSelectOptions: async function(param) {
|
|
10544
|
+
console.log("getSelectOptions");
|
|
10540
10545
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10541
10546
|
const apiBody = [
|
|
10542
10547
|
{ key: "searchValue", value: param.serachValue },
|
|
@@ -10547,6 +10552,7 @@ var service = (funcParams) => {
|
|
|
10547
10552
|
}
|
|
10548
10553
|
},
|
|
10549
10554
|
onChange: async function() {
|
|
10555
|
+
console.log("onChange");
|
|
10550
10556
|
if (eventGroups.onChange) {
|
|
10551
10557
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10552
10558
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|