impaktapps-ui-builder 1.0.57 → 1.0.59-flcikering.0.1
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 +20 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +23 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -5
|
@@ -4795,7 +4795,7 @@ var lodash = { exports: {} };
|
|
|
4795
4795
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
4796
4796
|
return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
|
|
4797
4797
|
}
|
|
4798
|
-
function
|
|
4798
|
+
function cloneDeep2(value) {
|
|
4799
4799
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
4800
4800
|
}
|
|
4801
4801
|
function cloneDeepWith(value, customizer) {
|
|
@@ -5921,7 +5921,7 @@ var lodash = { exports: {} };
|
|
|
5921
5921
|
lodash2.ceil = ceil;
|
|
5922
5922
|
lodash2.clamp = clamp;
|
|
5923
5923
|
lodash2.clone = clone;
|
|
5924
|
-
lodash2.cloneDeep =
|
|
5924
|
+
lodash2.cloneDeep = cloneDeep2;
|
|
5925
5925
|
lodash2.cloneDeepWith = cloneDeepWith;
|
|
5926
5926
|
lodash2.cloneWith = cloneWith;
|
|
5927
5927
|
lodash2.conformsTo = conformsTo;
|
|
@@ -8966,14 +8966,14 @@ const EventSchema = {
|
|
|
8966
8966
|
{ title: "Start", const: "onStart" },
|
|
8967
8967
|
{ title: "Cell Render", const: "onCellRenderer" },
|
|
8968
8968
|
{ title: "Upload", const: "onUpload" },
|
|
8969
|
+
{ title: "FileDelete", const: "onFileDelete" },
|
|
8970
|
+
{ title: "Download", const: "onDownload" },
|
|
8969
8971
|
{ title: "Back", const: "onBack" },
|
|
8970
8972
|
{ title: "Next", const: "onNext" },
|
|
8971
8973
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
8972
8974
|
{ title: "Download", const: "onDownload" },
|
|
8973
8975
|
{ title: "Fail", const: "Fail" },
|
|
8974
|
-
{ title: "Key Down", const: "onKeyDown" }
|
|
8975
|
-
{ title: "PopUP NO Event", const: "onDeletePopupNo" },
|
|
8976
|
-
{ title: "PopUP Yes Event", const: "onDeletePopupYes" }
|
|
8976
|
+
{ title: "Key Down", const: "onKeyDown" }
|
|
8977
8977
|
]
|
|
8978
8978
|
},
|
|
8979
8979
|
Handler: {
|
|
@@ -10117,7 +10117,7 @@ function executeCustomHandler(params) {
|
|
|
10117
10117
|
}
|
|
10118
10118
|
}
|
|
10119
10119
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10120
|
-
var _a, _b, _c;
|
|
10120
|
+
var _a, _b, _c, _d, _e;
|
|
10121
10121
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10122
10122
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10123
10123
|
store2.setSchema((pre) => {
|
|
@@ -10165,10 +10165,15 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10165
10165
|
}
|
|
10166
10166
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10167
10167
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10168
|
+
const tableData = Array.isArray((_a = handlerResponse.data) == null ? void 0 : _a.data) ? cloneDeep(handlerResponse.data.data) : cloneDeep((_b = handlerResponse.data) == null ? void 0 : _b.data);
|
|
10169
|
+
const rowCount = (_e = (_d = (_c = handlerResponse.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.totalRowCount) != null ? _e : null;
|
|
10170
|
+
const newFormDataHolder = {
|
|
10171
|
+
...formDataHolder,
|
|
10172
|
+
[componentName]: tableData,
|
|
10173
|
+
[`${componentName}_RowCount`]: rowCount
|
|
10174
|
+
};
|
|
10175
|
+
store2.setFormdata((prev) => {
|
|
10176
|
+
return { ...prev, ...newFormDataHolder };
|
|
10172
10177
|
});
|
|
10173
10178
|
}
|
|
10174
10179
|
} else {
|
|
@@ -10255,6 +10260,9 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
|
|
|
10255
10260
|
}
|
|
10256
10261
|
return promiseChain;
|
|
10257
10262
|
}
|
|
10263
|
+
function cloneDeep(data) {
|
|
10264
|
+
throw new Error("Function not implemented.");
|
|
10265
|
+
}
|
|
10258
10266
|
let compType;
|
|
10259
10267
|
let eventGroups = {};
|
|
10260
10268
|
const notifyUiSchema = {
|
|
@@ -10500,11 +10508,8 @@ var service = (funcParams) => {
|
|
|
10500
10508
|
onKeyDown: function() {
|
|
10501
10509
|
this.callHandler("onKeyDown");
|
|
10502
10510
|
},
|
|
10503
|
-
|
|
10504
|
-
this.callHandler("
|
|
10505
|
-
},
|
|
10506
|
-
onDeletePopupYes: function() {
|
|
10507
|
-
this.callHandler("onDeletePopupYes");
|
|
10511
|
+
onFileDelete: async function() {
|
|
10512
|
+
this.callHandler("onFileDelete");
|
|
10508
10513
|
},
|
|
10509
10514
|
onMount: function() {
|
|
10510
10515
|
this.callHandler("onMount");
|