impaktapps-ui-builder 1.0.81 → 1.0.82

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,9 +6259,7 @@ 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" },
6263
- { title: "File Upload Icon", const: "UploadFileIcon" },
6264
- { title: "File Delete Icon", const: "DeleteFileIcon" }
6262
+ { title: "Thought of the day", const: "Thought" }
6265
6263
  ]
6266
6264
  },
6267
6265
  elementType: {
@@ -7914,6 +7912,14 @@ const buildPropertiesSection = function(type) {
7914
7912
  emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
7915
7913
  ];
7916
7914
  break;
7915
+ case "FileInput":
7916
+ uiSchema.elements = [
7917
+ getRadioInputField("variant", "Variant", ["Input", "Button"]),
7918
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
7919
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
7920
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"])
7921
+ ];
7922
+ break;
7917
7923
  }
7918
7924
  return uiSchema;
7919
7925
  };
@@ -8395,8 +8401,6 @@ const sectionLabels = {
8395
8401
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8396
8402
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8397
8403
  UploadFile: ["Core", "Events", "Style", "Validation"],
8398
- UploadFileIcon: ["Core", "Events", "Style", "Validation"],
8399
- DeleteFileIcon: ["Core", "Events", "Style"],
8400
8404
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8401
8405
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8402
8406
  Box: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8420,7 +8424,8 @@ const sectionLabels = {
8420
8424
  Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8421
8425
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8422
8426
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8423
- Image: ["Core", "Properties", "Style"]
8427
+ Image: ["Core", "Properties", "Style"],
8428
+ FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
8424
8429
  };
8425
8430
  function refreshPage(type, store2) {
8426
8431
  var _a, _b;
@@ -8933,7 +8938,6 @@ const EventSchema = {
8933
8938
  { title: "Start", const: "onStart" },
8934
8939
  { title: "Cell Render", const: "onCellRenderer" },
8935
8940
  { title: "Upload", const: "onUpload" },
8936
- { title: "FileDelete", const: "onFileDelete" },
8937
8941
  { title: "Download", const: "onDownload" },
8938
8942
  { title: "Back", const: "onBack" },
8939
8943
  { title: "Next", const: "onNext" },
@@ -11208,21 +11212,6 @@ const downloadFile = {
11208
11212
  "widget": "DownloadFile"
11209
11213
  }
11210
11214
  };
11211
- const uploadFileIcon = {
11212
- "type": "Control",
11213
- "scope": "#/properties/uploadFileIcon",
11214
- "config": {
11215
- "main": {
11216
- "onUpload": "onFileUpload",
11217
- "errorMessage": "Attachment File is not uploaded"
11218
- },
11219
- "style": {},
11220
- layout: { xs: 6, sm: 6, md: 4, lg: 3 }
11221
- },
11222
- "options": {
11223
- "widget": "UploadFileIcon"
11224
- }
11225
- };
11226
11215
  const buildUploadFile = (config2, componentScope2) => {
11227
11216
  const UploadFile = _.cloneDeep(uploadFile);
11228
11217
  UploadFile.scope = componentScope2;
@@ -11954,6 +11943,9 @@ const buildFileInput = (config2, componentScope2) => {
11954
11943
  if (config2.style) {
11955
11944
  box.config.style = JSON.parse(config2.style);
11956
11945
  }
11946
+ if (config2.variant) {
11947
+ box.config.main.variant = config2.variant;
11948
+ }
11957
11949
  return box;
11958
11950
  };
11959
11951
  const Stepper = {
@@ -12253,45 +12245,6 @@ const buildImage = (config2, componentScope2) => {
12253
12245
  }
12254
12246
  return image;
12255
12247
  };
12256
- const buildUploadFileIcon = (config2, componentScope2) => {
12257
- const UploadFileIcon = _.cloneDeep(uploadFileIcon);
12258
- UploadFileIcon.scope = componentScope2;
12259
- UploadFileIcon.config.main.label = config2.label;
12260
- if (config2.layout) {
12261
- UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12262
- }
12263
- if (config2.style) {
12264
- UploadFileIcon.config.style = JSON.parse(config2.style);
12265
- }
12266
- UploadFileIcon.config.main.errorMessage = config2.errorMessage;
12267
- return UploadFileIcon;
12268
- };
12269
- const deleteFileIcon = {
12270
- "type": "Control",
12271
- "scope": "#/properties/deleteFileIcon",
12272
- "config": {
12273
- "main": {
12274
- "onFileDelete": "onFileDelete"
12275
- },
12276
- "style": {},
12277
- layout: { xs: 6, sm: 6, md: 4, lg: 3 }
12278
- },
12279
- "options": {
12280
- "widget": "DeleteFileIcon"
12281
- }
12282
- };
12283
- const buildDeleteFileIcon = (config2, componentScope2) => {
12284
- const DeleteFileIcon = _.cloneDeep(deleteFileIcon);
12285
- DeleteFileIcon.scope = componentScope2;
12286
- DeleteFileIcon.config.main.label = config2.label;
12287
- if (config2.layout) {
12288
- DeleteFileIcon.config.layout = createLayoutFormat(config2.layout);
12289
- }
12290
- if (config2.style) {
12291
- DeleteFileIcon.config.style = JSON.parse(config2.style);
12292
- }
12293
- return DeleteFileIcon;
12294
- };
12295
12248
  let schema = {
12296
12249
  type: "object",
12297
12250
  properties: {},
@@ -12552,12 +12505,6 @@ const buildUiSchema = (config2, store2) => {
12552
12505
  case "Image":
12553
12506
  elements = buildImage(config2, componentScope2);
12554
12507
  break;
12555
- case "UploadFileIcon":
12556
- elements = buildUploadFileIcon(config2, componentScope2);
12557
- break;
12558
- case "DeleteFileIcon":
12559
- elements = buildDeleteFileIcon(config2, componentScope2);
12560
- break;
12561
12508
  default:
12562
12509
  schema = {
12563
12510
  type: "object",