impaktapps-ui-builder 1.0.72-alpha.2 → 1.0.72-fileUplaod.1

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: {
@@ -8385,8 +8386,9 @@ const sectionLabels = {
8385
8386
  HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
8386
8387
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8387
8388
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8388
- card: ["Core", "Properties", "Events", "Style", "Validation"],
8389
+ card: ["Core", "Properties", "Events", "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"],
@@ -11193,6 +11195,22 @@ const downloadFile = {
11193
11195
  "widget": "DownloadFile"
11194
11196
  }
11195
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
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11209
+ },
11210
+ "options": {
11211
+ "widget": "UploadFileIcon"
11212
+ }
11213
+ };
11196
11214
  const buildUploadFile = (config2, componentScope2) => {
11197
11215
  const UploadFile = _.cloneDeep(uploadFile);
11198
11216
  UploadFile.scope = componentScope2;
@@ -12220,6 +12238,19 @@ const buildImage = (config2, componentScope2) => {
12220
12238
  }
12221
12239
  return image;
12222
12240
  };
12241
+ const buildUploadFileIcon = (config2, componentScope2) => {
12242
+ const UploadFileIcon = _.cloneDeep(uploadFileIcon);
12243
+ UploadFileIcon.scope = componentScope2;
12244
+ UploadFileIcon.config.main.label = config2.label;
12245
+ if (config2.layout) {
12246
+ UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12247
+ }
12248
+ if (config2.required) {
12249
+ UploadFileIcon.config.main.required = true;
12250
+ }
12251
+ UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12252
+ return UploadFileIcon;
12253
+ };
12223
12254
  let schema = {
12224
12255
  type: "object",
12225
12256
  properties: {},
@@ -12480,6 +12511,8 @@ const buildUiSchema = (config2, store2) => {
12480
12511
  case "Image":
12481
12512
  elements = buildImage(config2, componentScope2);
12482
12513
  break;
12514
+ case "UploadFileIcon":
12515
+ elements = buildUploadFileIcon(config2, componentScope2);
12483
12516
  default:
12484
12517
  schema = {
12485
12518
  type: "object",