impaktapps-ui-builder 0.0.101-alpha.276 → 0.0.101-alpha.278
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.
|
@@ -10319,7 +10319,6 @@ var service = (funcParams) => {
|
|
|
10319
10319
|
userValue: funcParams.userValue,
|
|
10320
10320
|
service: funcParams.service,
|
|
10321
10321
|
serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
|
|
10322
|
-
eventGroups,
|
|
10323
10322
|
functionsProvider: funcParams.functionsProvider,
|
|
10324
10323
|
formDataHolder
|
|
10325
10324
|
};
|
|
@@ -10328,11 +10327,13 @@ var service = (funcParams) => {
|
|
|
10328
10327
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10329
10328
|
funcParams.store.setAdditionalErrors([]);
|
|
10330
10329
|
funcParams.store.setFormdata({});
|
|
10330
|
+
eventGroups = {};
|
|
10331
10331
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10332
10332
|
funcParams.store.newData = {};
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
const
|
|
10333
|
+
const newPageData = await funcParams.pageDataProvider();
|
|
10334
|
+
pageData = newPageData;
|
|
10335
|
+
const config2 = newPageData == null ? void 0 : newPageData.config;
|
|
10336
|
+
const uiSchema = newPageData == null ? void 0 : newPageData.uiSchema;
|
|
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,7 +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
|
-
|
|
10444
|
+
const neweventGroups = extractEvents(config2);
|
|
10445
|
+
eventGroups = neweventGroups;
|
|
10444
10446
|
executeEventsParameters = {
|
|
10445
10447
|
config: {},
|
|
10446
10448
|
componentName: "",
|
|
@@ -10450,9 +10452,10 @@ var service = (funcParams) => {
|
|
|
10450
10452
|
service: funcParams.service,
|
|
10451
10453
|
functionsProvider: funcParams.functionsProvider,
|
|
10452
10454
|
serviceHolder: this,
|
|
10453
|
-
eventGroups,
|
|
10455
|
+
eventGroups: neweventGroups,
|
|
10454
10456
|
formDataHolder
|
|
10455
10457
|
};
|
|
10458
|
+
console.log("neweventGroups >> ", neweventGroups, eventGroups);
|
|
10456
10459
|
await executeRefreshHandler({
|
|
10457
10460
|
config: {},
|
|
10458
10461
|
componentName: "",
|
|
@@ -10461,7 +10464,7 @@ var service = (funcParams) => {
|
|
|
10461
10464
|
userValue: funcParams.userValue,
|
|
10462
10465
|
service: funcParams.service,
|
|
10463
10466
|
serviceHolder: this,
|
|
10464
|
-
eventGroups,
|
|
10467
|
+
eventGroups: neweventGroups,
|
|
10465
10468
|
formDataHolder: {}
|
|
10466
10469
|
});
|
|
10467
10470
|
funcParams.store.setSchema(
|
|
@@ -10499,9 +10502,11 @@ var service = (funcParams) => {
|
|
|
10499
10502
|
return {};
|
|
10500
10503
|
},
|
|
10501
10504
|
onClick: function() {
|
|
10505
|
+
console.log("clicked button");
|
|
10502
10506
|
this.callHandler("onClick");
|
|
10503
10507
|
},
|
|
10504
10508
|
onMount: function() {
|
|
10509
|
+
console.log("omMount");
|
|
10505
10510
|
this.callHandler("onMount");
|
|
10506
10511
|
},
|
|
10507
10512
|
onFileDownload: function() {
|
|
@@ -10525,6 +10530,7 @@ var service = (funcParams) => {
|
|
|
10525
10530
|
},
|
|
10526
10531
|
onPaginationChange: async function(paginationValues) {
|
|
10527
10532
|
var _a;
|
|
10533
|
+
console.log("onPaginationChange");
|
|
10528
10534
|
const apiBody = [
|
|
10529
10535
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10530
10536
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
@@ -10536,6 +10542,7 @@ var service = (funcParams) => {
|
|
|
10536
10542
|
return response == null ? void 0 : response.data;
|
|
10537
10543
|
},
|
|
10538
10544
|
getSelectOptions: async function(param) {
|
|
10545
|
+
console.log("getSelectOptions");
|
|
10539
10546
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10540
10547
|
const apiBody = [
|
|
10541
10548
|
{ key: "searchValue", value: param.serachValue },
|
|
@@ -10546,6 +10553,7 @@ var service = (funcParams) => {
|
|
|
10546
10553
|
}
|
|
10547
10554
|
},
|
|
10548
10555
|
onChange: async function() {
|
|
10556
|
+
console.log("onChange");
|
|
10549
10557
|
if (eventGroups.onChange) {
|
|
10550
10558
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10551
10559
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|