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