impaktapps-ui-builder 1.0.72-flickering.1 → 1.0.72-flickering.3

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.
@@ -6259,7 +6259,8 @@ const ComponentSchema = {
6259
6259
  { title: "Upload", const: "UploadFile" },
6260
6260
  { title: "Tree ", const: "TreeMap" },
6261
6261
  { title: "Column Group", const: "ColumnGroup" },
6262
- { title: "Thought of the day", const: "Thought" }
6262
+ { title: "Thought of the day", const: "Thought" },
6263
+ { title: "Upload File Icon", const: "UploadFileIcon" }
6263
6264
  ]
6264
6265
  },
6265
6266
  elementType: {
@@ -8387,6 +8388,7 @@ const sectionLabels = {
8387
8388
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8388
8389
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8389
8390
  UploadFile: ["Core", "Events", "Style", "Validation"],
8391
+ UploadFileIcon: ["Core", "Events", "Style", "Validation"],
8390
8392
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8391
8393
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8392
8394
  Box: ["Core", "Events", "Style", "Validation"],
@@ -10051,7 +10053,7 @@ function executeCustomHandler(params) {
10051
10053
  }
10052
10054
  }
10053
10055
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10054
- var _a, _b, _c, _d, _e;
10056
+ var _a, _b, _c;
10055
10057
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10056
10058
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10057
10059
  store2.setSchema((pre) => {
@@ -10099,15 +10101,10 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10099
10101
  }
10100
10102
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10101
10103
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10102
- const tableData = Array.isArray((_a = handlerResponse.data) == null ? void 0 : _a.data) ? _(handlerResponse.data.data) : _((_b = handlerResponse.data) == null ? void 0 : _b.data);
10103
- const rowCount = (_e = (_d = (_c = handlerResponse.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.totalRowCount) != null ? _e : null;
10104
- const newFormDataHolder = {
10105
- ...formDataHolder,
10106
- [componentName]: tableData,
10107
- [`${componentName}_RowCount`]: rowCount
10108
- };
10109
- store2.setFormdata((prev) => {
10110
- return { ...prev, ...newFormDataHolder };
10104
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10105
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10106
+ store2.setFormdata((pre) => {
10107
+ return { ...pre, ...formDataHolder };
10111
10108
  });
10112
10109
  }
10113
10110
  } else {
@@ -11198,6 +11195,25 @@ const downloadFile = {
11198
11195
  "widget": "DownloadFile"
11199
11196
  }
11200
11197
  };
11198
+ const uploadFileIcon = {
11199
+ "type": "Control",
11200
+ "scope": "#/properties/uploadFileIcon",
11201
+ "config": {
11202
+ "main": {
11203
+ "label": "AttachmentFile",
11204
+ "onUpload": "onFileUpload",
11205
+ "required": true,
11206
+ "errorMessage": "Attachment File is not uploaded"
11207
+ },
11208
+ "style": {
11209
+ "backgroundColor": "none"
11210
+ },
11211
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11212
+ },
11213
+ "options": {
11214
+ "widget": "UploadFileIcon"
11215
+ }
11216
+ };
11201
11217
  const buildUploadFile = (config2, componentScope2) => {
11202
11218
  const UploadFile = _.cloneDeep(uploadFile);
11203
11219
  UploadFile.scope = componentScope2;
@@ -12225,6 +12241,22 @@ const buildImage = (config2, componentScope2) => {
12225
12241
  }
12226
12242
  return image;
12227
12243
  };
12244
+ const buildUploadFileIcon = (config2, componentScope2) => {
12245
+ const UploadFileIcon = _.cloneDeep(uploadFileIcon);
12246
+ UploadFileIcon.scope = componentScope2;
12247
+ UploadFileIcon.config.main.label = config2.label;
12248
+ if (config2.layout) {
12249
+ UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12250
+ }
12251
+ if (config2.style) {
12252
+ UploadFileIcon.config.style = JSON.parse(config2.style);
12253
+ }
12254
+ if (config2.required) {
12255
+ UploadFileIcon.config.main.required = true;
12256
+ }
12257
+ UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12258
+ return UploadFileIcon;
12259
+ };
12228
12260
  let schema = {
12229
12261
  type: "object",
12230
12262
  properties: {},
@@ -12485,6 +12517,8 @@ const buildUiSchema = (config2, store2) => {
12485
12517
  case "Image":
12486
12518
  elements = buildImage(config2, componentScope2);
12487
12519
  break;
12520
+ case "UploadFileIcon":
12521
+ elements = buildUploadFileIcon(config2, componentScope2);
12488
12522
  default:
12489
12523
  schema = {
12490
12524
  type: "object",