impaktapps-ui-builder 1.0.75 → 1.0.77-test.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.
@@ -6261,7 +6261,6 @@ const ComponentSchema = {
6261
6261
  { title: "Column Group", const: "ColumnGroup" },
6262
6262
  { title: "Thought of the day", const: "Thought" },
6263
6263
  { title: "File Upload Icon", const: "UploadFileIcon" },
6264
- { title: "File Download Icon", const: "DownloadFileIcon" },
6265
6264
  { title: "File Delete Icon", const: "DeleteFileIcon" }
6266
6265
  ]
6267
6266
  },
@@ -7798,6 +7797,12 @@ const buildPropertiesSection = function(type) {
7798
7797
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7799
7798
  ];
7800
7799
  break;
7800
+ case "Box":
7801
+ uiSchema.elements = [
7802
+ getSelectField("iconName", "Icon Name"),
7803
+ emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
7804
+ ];
7805
+ break;
7801
7806
  case "Graph":
7802
7807
  uiSchema.elements = [
7803
7808
  getInputField("height", "Height"),
@@ -8392,11 +8397,10 @@ const sectionLabels = {
8392
8397
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8393
8398
  UploadFile: ["Core", "Events", "Style", "Validation"],
8394
8399
  UploadFileIcon: ["Core", "Events", "Style"],
8395
- DownloadFileIcon: ["Core", "Events", "Style"],
8396
8400
  DeleteFileIcon: ["Core", "Events", "Style"],
8397
8401
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8398
8402
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8399
- Box: ["Core", "Events", "Style", "Validation"],
8403
+ Box: ["Core", "Properties", "Events", "Style", "Validation"],
8400
8404
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8401
8405
  ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8402
8406
  RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8405,6 +8409,7 @@ const sectionLabels = {
8405
8409
  Rank: ["Core", "Events", "Style", "Validation"],
8406
8410
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8407
8411
  Array: ["Core", "Components", "Properties", "Validation"],
8412
+ UploadArray: ["Core", "Components", "Validation"],
8408
8413
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8409
8414
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8410
8415
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -11148,7 +11153,9 @@ const Box = {
11148
11153
  },
11149
11154
  config: {
11150
11155
  layout: { xs: 6, sm: 6, md: 4, lg: 3 },
11151
- main: {},
11156
+ main: {
11157
+ iconName: ""
11158
+ },
11152
11159
  style: {}
11153
11160
  }
11154
11161
  };
@@ -11159,6 +11166,9 @@ const buildLabel = (config2, componentScope2) => {
11159
11166
  if (config2.layout) {
11160
11167
  box.config.layout = createLayoutFormat(config2.layout);
11161
11168
  }
11169
+ if (config2.iconName) {
11170
+ box.config.main.iconName = config2.iconName;
11171
+ }
11162
11172
  if (config2.style) {
11163
11173
  box.config.style = JSON.parse(config2.style);
11164
11174
  }
@@ -11215,20 +11225,6 @@ const uploadFileIcon = {
11215
11225
  "widget": "UploadFileIcon"
11216
11226
  }
11217
11227
  };
11218
- const downloadFileIcon = {
11219
- "type": "Control",
11220
- "scope": "#/properties/downloadAttachment",
11221
- "config": {
11222
- "main": {
11223
- "onDownload": "onFileDownload"
11224
- },
11225
- "style": {},
11226
- layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11227
- },
11228
- "options": {
11229
- "widget": "DownloadFileIcon"
11230
- }
11231
- };
11232
11228
  const buildUploadFile = (config2, componentScope2) => {
11233
11229
  const UploadFile = _.cloneDeep(uploadFile);
11234
11230
  UploadFile.scope = componentScope2;
@@ -12269,24 +12265,6 @@ const buildUploadFileIcon = (config2, componentScope2) => {
12269
12265
  UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12270
12266
  return UploadFileIcon;
12271
12267
  };
12272
- const buildDownloadFileIcon = (config2, componentScope2) => {
12273
- const DownloadFile = _.cloneDeep(downloadFileIcon);
12274
- DownloadFile.scope = componentScope2;
12275
- DownloadFile.config.main.label = config2.label;
12276
- if (config2.layout) {
12277
- DownloadFile.config.layout = config2.layout;
12278
- }
12279
- if (config2.style) {
12280
- DownloadFile.config.style = config2.style;
12281
- }
12282
- if (config2.layout) {
12283
- DownloadFile.config.layout = createLayoutFormat(config2.layout);
12284
- }
12285
- if (config2.errorMessage) {
12286
- DownloadFile.config.main.errorMessage = config2.errorMessage;
12287
- }
12288
- return DownloadFile;
12289
- };
12290
12268
  const deleteFileIcon = {
12291
12269
  "type": "Control",
12292
12270
  "scope": "#/properties/deleteFileIcon",
@@ -12313,6 +12291,26 @@ const buildDeleteFileIcon = (config2, componentScope2) => {
12313
12291
  }
12314
12292
  return DeleteFileIcon;
12315
12293
  };
12294
+ const UploadArrayUiSchema = {
12295
+ type: "Control",
12296
+ scope: "#/properties/uploadArray",
12297
+ options: {
12298
+ widget: "UploadArray"
12299
+ },
12300
+ layout: 12,
12301
+ elements: [],
12302
+ config: {
12303
+ main: {}
12304
+ }
12305
+ };
12306
+ const buildUploadArray = (config2, componentScope2) => {
12307
+ const array = _.cloneDeep(UploadArrayUiSchema);
12308
+ if (config2.style) {
12309
+ array.config.style = JSON.parse(config2.style);
12310
+ }
12311
+ array.scope = componentScope2;
12312
+ return array;
12313
+ };
12316
12314
  let schema = {
12317
12315
  type: "object",
12318
12316
  properties: {},
@@ -12494,6 +12492,9 @@ const buildUiSchema = (config2, store2) => {
12494
12492
  case "Array":
12495
12493
  elements = buildArray(config2, componentScope2);
12496
12494
  break;
12495
+ case "UploadArray":
12496
+ elements = buildUploadArray(config2, componentScope2);
12497
+ break;
12497
12498
  case "Box":
12498
12499
  elements = buildLabel(config2, componentScope2);
12499
12500
  break;
@@ -12576,9 +12577,6 @@ const buildUiSchema = (config2, store2) => {
12576
12577
  case "UploadFileIcon":
12577
12578
  elements = buildUploadFileIcon(config2, componentScope2);
12578
12579
  break;
12579
- case "DownloadFileIcon":
12580
- elements = buildDownloadFileIcon(config2, componentScope2);
12581
- break;
12582
12580
  case "DeleteFileIcon":
12583
12581
  elements = buildDeleteFileIcon(config2, componentScope2);
12584
12582
  break;