impaktapps-ui-builder 0.0.101 → 0.0.102
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 +11 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _
|
|
1
|
+
import _ from "lodash";
|
|
2
2
|
import { handlersProps } from "./interface";
|
|
3
3
|
export const executeEvents = (params: handlersProps) => {
|
|
4
4
|
let nextEvent = [];
|
|
@@ -186,6 +186,13 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
|
|
|
186
186
|
store.setFormdata((pre: any) => { return { ...pre, ...handlerResponse?.data } })
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
+
else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
190
|
+
if (handlerResponse && handlerResponse?.data) {
|
|
191
|
+
formDataHolder[componentName] = handlerResponse.data
|
|
192
|
+
formDataHolder[`${componentName}_RowCount`] = handlerResponse.data
|
|
193
|
+
store.setFormdata((pre) => { return { ...pre, ...formDataHolder } });
|
|
194
|
+
}
|
|
195
|
+
}
|
|
189
196
|
else {
|
|
190
197
|
if (handlerResponse) {
|
|
191
198
|
formDataHolder[componentName] = handlerResponse.data
|
|
@@ -189,7 +189,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
189
189
|
fontSize: "14px",
|
|
190
190
|
cursor: "pointer",
|
|
191
191
|
marginLeft: "2px",
|
|
192
|
-
|
|
192
|
+
|
|
193
193
|
top: 3,
|
|
194
194
|
right: "12px",
|
|
195
195
|
position: "absolute",
|
|
@@ -214,12 +214,12 @@ export default (funcParams: funcParamsProps) => {
|
|
|
214
214
|
await executeRefreshHandler({
|
|
215
215
|
config: {}, componentName: "",
|
|
216
216
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
217
|
-
serviceHolder: this, eventGroups, formDataHolder
|
|
217
|
+
serviceHolder: this, eventGroups, formDataHolder: {}
|
|
218
218
|
})
|
|
219
219
|
funcParams.store.setSchema(
|
|
220
220
|
(pre: any) => {
|
|
221
221
|
return {
|
|
222
|
-
...schema
|
|
222
|
+
...schema, ...pre, properties:
|
|
223
223
|
{ ...schema.properties, ...pre.properties, }
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -231,7 +231,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
231
231
|
if (eventGroups.onCellRenderer) {
|
|
232
232
|
let finalResponse = {};
|
|
233
233
|
const path = funcParams.dynamicData?.tableButtonPath || funcParams?.dynamicData?.path?.split(".")[0];
|
|
234
|
-
|
|
234
|
+
|
|
235
|
+
for (const eventConfig of eventGroups?.onCellRenderer?.[path]) {
|
|
235
236
|
executeEventsParameters.store.functionParameters = cellParams
|
|
236
237
|
finalResponse = executeEvents({
|
|
237
238
|
...executeEventsParameters,
|