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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,4 +1,4 @@
1
- import _, { cloneDeep } from "lodash";
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,...pre, properties:
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
- for (const eventConfig of eventGroups?.onCellRenderer[path]) {
234
+
235
+ for (const eventConfig of eventGroups?.onCellRenderer?.[path]) {
235
236
  executeEventsParameters.store.functionParameters = cellParams
236
237
  finalResponse = executeEvents({
237
238
  ...executeEventsParameters,