impaktapps-ui-builder 0.0.361 → 0.0.363
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.
- package/dist/impaktapps-ui-builder.es.js +37 -11
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +10 -10
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +4 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -7
|
@@ -7587,9 +7587,8 @@ const EventSchema = {
|
|
|
7587
7587
|
{ title: "Success", const: "Success" },
|
|
7588
7588
|
{ title: "onStart", const: "onStart" },
|
|
7589
7589
|
{ title: "File Upload Event", const: "onUpload" },
|
|
7590
|
-
{ title: "
|
|
7591
|
-
{ title: "
|
|
7592
|
-
{ title: "Stepper Skip Event", const: "onStepperSkip" },
|
|
7590
|
+
{ title: "Back Event", const: "onBack" },
|
|
7591
|
+
{ title: "Next Event", const: "onNext" },
|
|
7593
7592
|
{ title: "File Download Event", const: "onDownload" },
|
|
7594
7593
|
{ title: "Fail", const: "Fail" }
|
|
7595
7594
|
]
|
|
@@ -8226,6 +8225,7 @@ const executeEvents = async (params2) => {
|
|
|
8226
8225
|
return finalResponse;
|
|
8227
8226
|
};
|
|
8228
8227
|
async function executeEventsHandler(params2) {
|
|
8228
|
+
var _a, _b, _c;
|
|
8229
8229
|
if (params2.config.Handler === "api") {
|
|
8230
8230
|
return await executeApiEventHandler(params2);
|
|
8231
8231
|
} else if (params2.config.Handler === "inBuiltFunction") {
|
|
@@ -8243,6 +8243,12 @@ async function executeEventsHandler(params2) {
|
|
|
8243
8243
|
params2.service
|
|
8244
8244
|
);
|
|
8245
8245
|
return result;
|
|
8246
|
+
} else if (params2.config.Handler === "onBackHandler") {
|
|
8247
|
+
return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
|
|
8248
|
+
} else if (params2.config.Handler === "onNextHandler") {
|
|
8249
|
+
return (_b = params2.store.functionParameters) == null ? void 0 : _b.handleNext();
|
|
8250
|
+
} else if (params2.config.Handler === "onResetHandler") {
|
|
8251
|
+
return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
|
|
8246
8252
|
}
|
|
8247
8253
|
}
|
|
8248
8254
|
async function executeRefreshHandler(params2) {
|
|
@@ -8438,6 +8444,9 @@ const extractEvents = (eventConfig) => {
|
|
|
8438
8444
|
if (!!!SuccessEvent && event2.eventType === "onLoad") {
|
|
8439
8445
|
event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
|
|
8440
8446
|
}
|
|
8447
|
+
if (!!!SuccessEvent && (event2.eventType === "onBack" || event2.eventType === "onNext" || event2.eventType === "onReset")) {
|
|
8448
|
+
event2.events.push({ Handler: `${event2.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
|
|
8449
|
+
}
|
|
8441
8450
|
eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
|
|
8442
8451
|
});
|
|
8443
8452
|
}
|
|
@@ -8566,19 +8575,36 @@ var service = (funcParams) => {
|
|
|
8566
8575
|
}
|
|
8567
8576
|
return LastCallResponse;
|
|
8568
8577
|
},
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8578
|
+
onBack: async function(functionParameters) {
|
|
8579
|
+
var _a, _b;
|
|
8580
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8581
|
+
await this.callHandler("onBack", functionParameters);
|
|
8582
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
8583
|
+
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
8584
|
+
}
|
|
8585
|
+
},
|
|
8586
|
+
onNext: async function(functionParameters) {
|
|
8587
|
+
var _a, _b;
|
|
8588
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8589
|
+
await this.callHandler("onNext", functionParameters);
|
|
8590
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
8591
|
+
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
8592
|
+
}
|
|
8572
8593
|
},
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8594
|
+
onReset: async function(functionParameters) {
|
|
8595
|
+
var _a, _b;
|
|
8596
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8597
|
+
await this.callHandler("onReset", functionParameters);
|
|
8598
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
8599
|
+
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
8600
|
+
}
|
|
8576
8601
|
},
|
|
8577
|
-
callHandler: async function(eventType) {
|
|
8602
|
+
callHandler: async function(eventType, functionParameters) {
|
|
8578
8603
|
var _a, _b, _c;
|
|
8579
8604
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8580
8605
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
8581
8606
|
for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
|
|
8607
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
8582
8608
|
await executeEvents({
|
|
8583
8609
|
...executeEventsParameters,
|
|
8584
8610
|
config: eventConfig,
|
|
@@ -10361,7 +10387,7 @@ const PopUP = {
|
|
|
10361
10387
|
const buildPopUp = (config, componentScope) => {
|
|
10362
10388
|
const popup = _.cloneDeep(PopUP);
|
|
10363
10389
|
popup.scope = componentScope;
|
|
10364
|
-
popup.config.main.
|
|
10390
|
+
popup.config.main.title = config.label;
|
|
10365
10391
|
popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
|
|
10366
10392
|
popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
|
|
10367
10393
|
popup.config.main.maxWidth = config.maxWidth || false;
|