impaktapps-ui-builder 1.0.72 → 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.
@@ -6259,7 +6259,10 @@ 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: "File Upload Icon", const: "UploadFileIcon" },
6264
+ { title: "File Download Icon", const: "DownloadFileIcon" },
6265
+ { title: "File Delete Icon", const: "DeleteFileIcon" }
6263
6266
  ]
6264
6267
  },
6265
6268
  elementType: {
@@ -8385,8 +8388,11 @@ const sectionLabels = {
8385
8388
  HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
8386
8389
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8387
8390
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8388
- card: ["Core", "Properties", "Events", "Style", "Validation"],
8391
+ card: ["Core", "Properties", "Events", "Validation"],
8389
8392
  UploadFile: ["Core", "Events", "Style", "Validation"],
8393
+ UploadFileIcon: ["Core", "Events", "Style"],
8394
+ DownloadFileIcon: ["Core", "Events", "Style"],
8395
+ DeleteFileIcon: ["Core", "Events", "Style"],
8390
8396
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8391
8397
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8392
8398
  Box: ["Core", "Events", "Style", "Validation"],
@@ -11193,6 +11199,35 @@ const downloadFile = {
11193
11199
  "widget": "DownloadFile"
11194
11200
  }
11195
11201
  };
11202
+ const uploadFileIcon = {
11203
+ "type": "Control",
11204
+ "scope": "#/properties/uploadFileIcon",
11205
+ "config": {
11206
+ "main": {
11207
+ "onUpload": "onFileUpload",
11208
+ "errorMessage": "Attachment File is not uploaded"
11209
+ },
11210
+ "style": {},
11211
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11212
+ },
11213
+ "options": {
11214
+ "widget": "UploadFileIcon"
11215
+ }
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
+ };
11196
11231
  const buildUploadFile = (config2, componentScope2) => {
11197
11232
  const UploadFile = _.cloneDeep(uploadFile);
11198
11233
  UploadFile.scope = componentScope2;
@@ -12220,6 +12255,63 @@ const buildImage = (config2, componentScope2) => {
12220
12255
  }
12221
12256
  return image;
12222
12257
  };
12258
+ const buildUploadFileIcon = (config2, componentScope2) => {
12259
+ const UploadFileIcon = _.cloneDeep(uploadFileIcon);
12260
+ UploadFileIcon.scope = componentScope2;
12261
+ UploadFileIcon.config.main.label = config2.label;
12262
+ if (config2.layout) {
12263
+ UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12264
+ }
12265
+ if (config2.style) {
12266
+ UploadFileIcon.config.style = JSON.parse(config2.style);
12267
+ }
12268
+ UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12269
+ return UploadFileIcon;
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
+ };
12223
12315
  let schema = {
12224
12316
  type: "object",
12225
12317
  properties: {},
@@ -12480,6 +12572,15 @@ const buildUiSchema = (config2, store2) => {
12480
12572
  case "Image":
12481
12573
  elements = buildImage(config2, componentScope2);
12482
12574
  break;
12575
+ case "UploadFileIcon":
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;
12483
12584
  default:
12484
12585
  schema = {
12485
12586
  type: "object",