impaktapps-ui-builder 1.0.72-flickering.2 → 1.0.72-flickering.4

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.
@@ -54,9 +54,6 @@ export declare const uploadFileIcon: {
54
54
  required: boolean;
55
55
  errorMessage: string;
56
56
  };
57
- style: {
58
- backgroundColor: string;
59
- };
60
57
  layout: {
61
58
  xs: number;
62
59
  sm: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.72-flickering.2",
3
+ "version": "1.0.72-flickering.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -10,9 +10,9 @@ export const buildUploadFileIcon = (config, componentScope) => {
10
10
  if (config.layout) {
11
11
  UploadFileIcon.config.layout = createLayoutFormat(config.layout)
12
12
  }
13
- if (config.style) {
14
- UploadFileIcon.config.style = config.style;
15
- }
13
+ // if (config.style) {
14
+ // UploadFileIcon.config.style = JSON.parse(config.style);
15
+ // }
16
16
  if (config.required) {
17
17
  UploadFileIcon.config.main.required = true;
18
18
  }
@@ -50,9 +50,9 @@ export const uploadFileIcon = {
50
50
  "required": true,
51
51
  "errorMessage": "Attachment File is not uploaded"
52
52
  },
53
- "style": {
54
- "backgroundColor": "none"
55
- },
53
+ // "style": {
54
+ // "backgroundColor": "none"
55
+ // },
56
56
  layout: { xs: 6, sm: 6, md: 4, lg: 3 }
57
57
  },
58
58
  "options": {
@@ -18,7 +18,7 @@ const sectionLabels = {
18
18
  HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
19
19
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
20
20
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
21
- card: ["Core", "Properties", "Events", "Style", "Validation"],
21
+ card: ["Core", "Properties", "Events", "Validation"],
22
22
  UploadFile: ["Core", "Events", "Style", "Validation"],
23
23
  UploadFileIcon: ["Core", "Events", "Style", "Validation"],
24
24
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash";
2
- import cloneDeep from 'lodash';
3
2
  import { handlersProps } from "./interface";
4
3
  export const executeEvents = (params: handlersProps) => {
5
4
  let nextEvent = [];
@@ -189,25 +188,9 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
189
188
  }
190
189
  else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
191
190
  if (handlerResponse && handlerResponse?.data) {
192
-
193
- const tableData = Array.isArray(handlerResponse.data?.data)
194
- ? cloneDeep(handlerResponse.data.data)
195
- : cloneDeep(handlerResponse.data?.data);
196
-
197
- const rowCount = handlerResponse.data?.meta?.totalRowCount ?? null;
198
-
199
- const newFormDataHolder = {
200
- ...formDataHolder,
201
- [componentName]: tableData,
202
- [`${componentName}_RowCount`]: rowCount,
203
- };
204
- store.setFormdata((prev) => {
205
- // we merge prev with newFormDataHolder immutably:
206
- return { ...prev, ...newFormDataHolder }; // CHANGED: no in-place mutation
207
- });
208
- // formDataHolder[componentName] = handlerResponse.data?.data
209
- // formDataHolder[`${componentName}_RowCount`] = handlerResponse.data?.meta?.totalRowCount
210
- // store.setFormdata((pre) => { return { ...pre, ...formDataHolder } });
191
+ formDataHolder[componentName] = handlerResponse.data?.data
192
+ formDataHolder[`${componentName}_RowCount`] = handlerResponse.data?.meta?.totalRowCount
193
+ store.setFormdata((pre) => { return { ...pre, ...formDataHolder } });
211
194
  }
212
195
  }
213
196
  else {