impaktapps-ui-builder 0.0.363 → 0.0.365

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.
@@ -5999,6 +5999,20 @@ const ComponentSchema = {
5999
5999
  }
6000
6000
  }
6001
6001
  },
6002
+ sizeHolder: {
6003
+ type: "array",
6004
+ items: {
6005
+ type: "object",
6006
+ properties: {
6007
+ keyName: {
6008
+ type: "string"
6009
+ },
6010
+ value: {
6011
+ type: "string"
6012
+ }
6013
+ }
6014
+ }
6015
+ },
6002
6016
  legendLabels: {
6003
6017
  type: "array",
6004
6018
  items: {
@@ -6690,6 +6704,25 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6690
6704
  }
6691
6705
  };
6692
6706
  };
6707
+ const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
6708
+ sizeHolder.options.detail.elements[1] = {
6709
+ type: "Control",
6710
+ scope: `#/properties/value`,
6711
+ options: {
6712
+ widget: "InputField"
6713
+ },
6714
+ config: {
6715
+ layout: {
6716
+ xs: 11,
6717
+ sm: 11,
6718
+ md: 5.5,
6719
+ lg: 5.5
6720
+ },
6721
+ main: {
6722
+ label: "Size"
6723
+ }
6724
+ }
6725
+ };
6693
6726
  const getInputField = (scope, label) => {
6694
6727
  return {
6695
6728
  type: "Control",
@@ -6900,7 +6933,8 @@ const buildPropertiesSection = function(type) {
6900
6933
  getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
6901
6934
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
6902
6935
  getInputField("selectKey", "Selection Key"),
6903
- getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
6936
+ getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
6937
+ sizeHolder
6904
6938
  ];
6905
6939
  break;
6906
6940
  case "Radio":
@@ -9621,7 +9655,7 @@ const buildTable = (config, componentScope) => {
9621
9655
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
9622
9656
  }
9623
9657
  if (config.ColumnResizingAvailable) {
9624
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? true : false;
9658
+ table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
9625
9659
  }
9626
9660
  if (config.DragAvailable) {
9627
9661
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
@@ -10348,7 +10382,7 @@ const buildStepper = (config, componentScope) => {
10348
10382
  stepper.config.main.completeText = config.completeText || "Complete Text";
10349
10383
  stepper.config.main.orientation = config.orientation || "horizontal";
10350
10384
  if (config.sectionLabels) {
10351
- stepper.config.main.label = config.sectionLabels.map((e, i) => {
10385
+ stepper.config.main.steps = config.sectionLabels.map((e, i) => {
10352
10386
  return { label: e.label, id: i };
10353
10387
  });
10354
10388
  }
@@ -10642,17 +10676,25 @@ const buildUiSchema = (config) => {
10642
10676
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
10643
10677
  return elements;
10644
10678
  } else if (config.type == "Table") {
10679
+ const sizeMap = {};
10680
+ if (config.sizeHolder) {
10681
+ config.sizeHolder.map((e, i) => {
10682
+ sizeMap[e.keyName] = e.value;
10683
+ });
10684
+ }
10645
10685
  elements.elements = config.elements.map((e, elemInd) => {
10646
10686
  if (e.type) {
10647
10687
  return {
10648
10688
  accessorKey: e.name,
10649
10689
  header: e.label || e.name,
10690
+ size: sizeMap[e.name] || 180,
10650
10691
  widget: buildUiSchema(e)
10651
10692
  };
10652
10693
  }
10653
10694
  return {
10654
10695
  accessorKey: e.name,
10655
- header: e.label || e.name
10696
+ header: e.label || e.name,
10697
+ size: sizeMap[e.name] || 180
10656
10698
  };
10657
10699
  });
10658
10700
  } else if (config.type == "Array") {