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

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.
@@ -6260,7 +6260,9 @@ const ComponentSchema = {
6260
6260
  { title: "Tree ", const: "TreeMap" },
6261
6261
  { title: "Column Group", const: "ColumnGroup" },
6262
6262
  { title: "Thought of the day", const: "Thought" },
6263
- { title: "Upload File Icon", const: "UploadFileIcon" }
6263
+ { title: "File Upload Icon", const: "UploadFileIcon" },
6264
+ { title: "File Download Icon", const: "DownloadFileIcon" },
6265
+ { title: "File Delete Icon", const: "DeleteFileIcon" }
6264
6266
  ]
6265
6267
  },
6266
6268
  elementType: {
@@ -8388,7 +8390,9 @@ const sectionLabels = {
8388
8390
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8389
8391
  card: ["Core", "Properties", "Events", "Validation"],
8390
8392
  UploadFile: ["Core", "Events", "Style", "Validation"],
8391
- UploadFileIcon: ["Core", "Events", "Style", "Validation"],
8393
+ UploadFileIcon: ["Core", "Events", "Style"],
8394
+ DownloadFileIcon: ["Core", "Events", "Style"],
8395
+ DeleteFileIcon: ["Core", "Events", "Style"],
8392
8396
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8393
8397
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8394
8398
  Box: ["Core", "Events", "Style", "Validation"],
@@ -11200,17 +11204,30 @@ const uploadFileIcon = {
11200
11204
  "scope": "#/properties/uploadFileIcon",
11201
11205
  "config": {
11202
11206
  "main": {
11203
- "label": "AttachmentFile",
11204
11207
  "onUpload": "onFileUpload",
11205
- "required": true,
11206
11208
  "errorMessage": "Attachment File is not uploaded"
11207
11209
  },
11210
+ "style": {},
11208
11211
  layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11209
11212
  },
11210
11213
  "options": {
11211
11214
  "widget": "UploadFileIcon"
11212
11215
  }
11213
11216
  };
11217
+ const downloadFileIcon = {
11218
+ "type": "Control",
11219
+ "scope": "#/properties/downloadAttachment",
11220
+ "config": {
11221
+ "main": {
11222
+ "onDownload": "onFileDownload"
11223
+ },
11224
+ "style": {},
11225
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11226
+ },
11227
+ "options": {
11228
+ "widget": "DownloadFileIcon"
11229
+ }
11230
+ };
11214
11231
  const buildUploadFile = (config2, componentScope2) => {
11215
11232
  const UploadFile = _.cloneDeep(uploadFile);
11216
11233
  UploadFile.scope = componentScope2;
@@ -12245,12 +12262,56 @@ const buildUploadFileIcon = (config2, componentScope2) => {
12245
12262
  if (config2.layout) {
12246
12263
  UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12247
12264
  }
12248
- if (config2.required) {
12249
- UploadFileIcon.config.main.required = true;
12265
+ if (config2.style) {
12266
+ UploadFileIcon.config.style = JSON.parse(config2.style);
12250
12267
  }
12251
12268
  UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12252
12269
  return UploadFileIcon;
12253
12270
  };
12271
+ const buildDownloadFileIcon = (config2, componentScope2) => {
12272
+ const DownloadFile = _.cloneDeep(downloadFileIcon);
12273
+ DownloadFile.scope = componentScope2;
12274
+ DownloadFile.config.main.label = config2.label;
12275
+ if (config2.layout) {
12276
+ DownloadFile.config.layout = config2.layout;
12277
+ }
12278
+ if (config2.style) {
12279
+ DownloadFile.config.style = config2.style;
12280
+ }
12281
+ if (config2.layout) {
12282
+ DownloadFile.config.layout = createLayoutFormat(config2.layout);
12283
+ }
12284
+ if (config2.errorMessage) {
12285
+ DownloadFile.config.main.errorMessage = config2.errorMessage;
12286
+ }
12287
+ return DownloadFile;
12288
+ };
12289
+ const deleteFileIcon = {
12290
+ "type": "Control",
12291
+ "scope": "#/properties/deleteFileIcon",
12292
+ "config": {
12293
+ "main": {
12294
+ "onFileDelete": "onFileDelete"
12295
+ },
12296
+ "style": {},
12297
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
12298
+ },
12299
+ "options": {
12300
+ "widget": "DeleteFileIcon"
12301
+ }
12302
+ };
12303
+ const buildDeleteFileIcon = (config2, componentScope2) => {
12304
+ const DeleteFileIcon = _.cloneDeep(deleteFileIcon);
12305
+ DeleteFileIcon.scope = componentScope2;
12306
+ DeleteFileIcon.config.main.label = config2.label;
12307
+ if (config2.layout) {
12308
+ DeleteFileIcon.config.layout = createLayoutFormat(config2.layout);
12309
+ }
12310
+ if (config2.style) {
12311
+ DeleteFileIcon.config.style = JSON.parse(config2.style);
12312
+ }
12313
+ return DeleteFileIcon;
12314
+ };
12254
12315
  let schema = {
12255
12316
  type: "object",
12256
12317
  properties: {},
@@ -12513,6 +12574,13 @@ const buildUiSchema = (config2, store2) => {
12513
12574
  break;
12514
12575
  case "UploadFileIcon":
12515
12576
  elements = buildUploadFileIcon(config2, componentScope2);
12577
+ break;
12578
+ case "DownloadFileIcon":
12579
+ elements = buildDownloadFileIcon(config2, componentScope2);
12580
+ break;
12581
+ case "DeleteFileIcon":
12582
+ elements = buildDeleteFileIcon(config2, componentScope2);
12583
+ break;
12516
12584
  default:
12517
12585
  schema = {
12518
12586
  type: "object",