impaktapps-ui-builder 1.0.77 → 1.0.78-ActionBar.0

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.
@@ -6222,6 +6222,7 @@ const ComponentSchema = {
6222
6222
  oneOf: [
6223
6223
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6224
6224
  { title: "Array", const: "Array" },
6225
+ { title: "Upload Array", const: "UploadArray" },
6225
6226
  { title: "Button", const: "Button" },
6226
6227
  { title: "Data Card", const: "card" },
6227
6228
  { title: "Check Box", const: "CheckBox" },
@@ -7660,9 +7661,9 @@ const buildPropertiesSection = function(type) {
7660
7661
  case "Array":
7661
7662
  uiSchema.elements = [
7662
7663
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
7664
+ getRadioInputField("disableActionBar", "Disable Action Bar", ["YES", "NO"]),
7663
7665
  getInputField("childElementLabel", "Child Element Label"),
7664
- emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
7665
- emptyBox$1("empty2", { xs: 0, sm: 0, md: 4, lg: 3 })
7666
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7666
7667
  ];
7667
7668
  break;
7668
7669
  case "TreeMap":
@@ -8396,7 +8397,7 @@ const sectionLabels = {
8396
8397
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8397
8398
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8398
8399
  UploadFile: ["Core", "Events", "Style", "Validation"],
8399
- UploadFileIcon: ["Core", "Events", "Style"],
8400
+ UploadFileIcon: ["Core", "Events", "Style", "Validation"],
8400
8401
  DeleteFileIcon: ["Core", "Events", "Style"],
8401
8402
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8402
8403
  DownloadFile: ["Core", "Events", "Style", "Validation"],
@@ -8409,6 +8410,7 @@ const sectionLabels = {
8409
8410
  Rank: ["Core", "Events", "Style", "Validation"],
8410
8411
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8411
8412
  Array: ["Core", "Components", "Properties", "Validation"],
8413
+ UploadArray: ["Core", "Components", "Validation"],
8412
8414
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8413
8415
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8414
8416
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -11857,6 +11859,9 @@ const buildArray = (config2, componentScope2) => {
11857
11859
  if (config2.allExpanded) {
11858
11860
  array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
11859
11861
  }
11862
+ if (config2.disableActionBar) {
11863
+ array.config.main.disableActionBar = config2.disableActionBar === "YES" ? true : false;
11864
+ }
11860
11865
  if (config2.style) {
11861
11866
  array.config.style = JSON.parse(config2.style);
11862
11867
  }
@@ -12290,6 +12295,26 @@ const buildDeleteFileIcon = (config2, componentScope2) => {
12290
12295
  }
12291
12296
  return DeleteFileIcon;
12292
12297
  };
12298
+ const UploadArrayUiSchema = {
12299
+ type: "Control",
12300
+ scope: "#/properties/uploadArray",
12301
+ options: {
12302
+ widget: "UploadArray"
12303
+ },
12304
+ layout: 12,
12305
+ elements: [],
12306
+ config: {
12307
+ main: {}
12308
+ }
12309
+ };
12310
+ const buildUploadArray = (config2, componentScope2) => {
12311
+ const array = _.cloneDeep(UploadArrayUiSchema);
12312
+ if (config2.style) {
12313
+ array.config.style = JSON.parse(config2.style);
12314
+ }
12315
+ array.scope = componentScope2;
12316
+ return array;
12317
+ };
12293
12318
  let schema = {
12294
12319
  type: "object",
12295
12320
  properties: {},
@@ -12396,6 +12421,20 @@ const buildSchema = (config2, tableName, isArrayType) => {
12396
12421
  config2.elements.map((e, elemInd) => {
12397
12422
  buildSchema(e, config2.name, config2.type === "Array" ? true : false);
12398
12423
  });
12424
+ } else if (config2.type == "UploadArray") {
12425
+ if (!schema.properties[config2.name]) {
12426
+ schema.properties[config2.name] = {
12427
+ type: "array",
12428
+ items: {
12429
+ type: "object",
12430
+ properties: {},
12431
+ required: []
12432
+ }
12433
+ };
12434
+ }
12435
+ config2.elements.map((e, elemInd) => {
12436
+ buildSchema(e, config2.name, config2.type === "UploadArray" ? true : false);
12437
+ });
12399
12438
  } else {
12400
12439
  config2.elements.map((e, elemInd) => {
12401
12440
  buildSchema(e);
@@ -12471,6 +12510,9 @@ const buildUiSchema = (config2, store2) => {
12471
12510
  case "Array":
12472
12511
  elements = buildArray(config2, componentScope2);
12473
12512
  break;
12513
+ case "UploadArray":
12514
+ elements = buildUploadArray(config2, componentScope2);
12515
+ break;
12474
12516
  case "Box":
12475
12517
  elements = buildLabel(config2, componentScope2);
12476
12518
  break;