impaktapps-ui-builder 1.0.50-alpha.25 → 1.0.50-alpha.26

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.
@@ -8296,7 +8296,7 @@ var buildConfig = (FormData) => {
8296
8296
  };
8297
8297
  const createLayoutFormat = (layout, type) => {
8298
8298
  if (_.isEmpty(layout)) {
8299
- const fullLayoutComponents = ["Array", "WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "Table", "TabSection", "TextArea", "TreeMap", "Thought"];
8299
+ const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
8300
8300
  if (fullLayoutComponents.includes(type)) {
8301
8301
  return { xs: 12, sm: 12, md: 12, lg: 12 };
8302
8302
  } else if (type === "Graph") {
@@ -10668,7 +10668,7 @@ const buildLeaderBoard = (config2) => {
10668
10668
  LeaderBoard.config.main.scoreKey = config2.scoreKey;
10669
10669
  }
10670
10670
  if (config2.layout) {
10671
- LeaderBoard.config.layout = createLayoutFormat(config2.layout);
10671
+ LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10672
10672
  }
10673
10673
  if (config2.style) {
10674
10674
  LeaderBoard.config.style = JSON.parse(config2.style);
@@ -10795,7 +10795,7 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
10795
10795
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10796
10796
  horizontalBarGraph.scope = componentScope2;
10797
10797
  if (config2.layout) {
10798
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
10798
+ horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10799
10799
  }
10800
10800
  horizontalBarGraph.config.main.type = config2.graphType;
10801
10801
  horizontalBarGraph.scope = componentScope2;
@@ -10927,7 +10927,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
10927
10927
  const buildPieGraph = (config2, componentScope2) => {
10928
10928
  const pieGraph = _.cloneDeep(PieGraph);
10929
10929
  if (config2.layout) {
10930
- pieGraph.config.layout = createLayoutFormat(config2.layout);
10930
+ pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10931
10931
  }
10932
10932
  if (config2.height) {
10933
10933
  pieGraph.config.style.containerStyle.height = config2.height;
@@ -10952,7 +10952,7 @@ const buildStackbarGraph = (config2, componentScope2) => {
10952
10952
  var _a;
10953
10953
  const barGraph = _.cloneDeep(BarGraph);
10954
10954
  if (config2.layout) {
10955
- barGraph.config.layout = createLayoutFormat(config2.layout);
10955
+ barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10956
10956
  }
10957
10957
  if (config2.legendHide) {
10958
10958
  barGraph.config.main.legendAvailable = config2.legendHide;
@@ -11060,7 +11060,7 @@ const buildWrapperSection = (config2, componentScope2) => {
11060
11060
  wrapper.config.style = JSON.parse(config2.style);
11061
11061
  }
11062
11062
  if (config2.layout) {
11063
- wrapper.config.layout = createLayoutFormat(config2.layout);
11063
+ wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
11064
11064
  }
11065
11065
  return wrapper;
11066
11066
  };
@@ -11161,7 +11161,7 @@ const buildButton = (config2, componentScope2) => {
11161
11161
  config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11162
11162
  }
11163
11163
  if (config2.layout) {
11164
- button.config.layout = createLayoutFormat(config2.layout);
11164
+ button.config.layout = createLayoutFormat(config2.layout, config2.type);
11165
11165
  }
11166
11166
  if (config2.tooltipMessage) {
11167
11167
  button.config.main.tooltipMessage = config2.tooltipMessage;
@@ -11796,7 +11796,7 @@ const buildTextArea = (config2, componentScope2) => {
11796
11796
  const textArea = _.cloneDeep(TextArea);
11797
11797
  textArea.config.main.heading = config2.label;
11798
11798
  if (config2.layout) {
11799
- textArea.config.layout = createLayoutFormat(config2.layout);
11799
+ textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11800
11800
  }
11801
11801
  if (config2.style) {
11802
11802
  textArea.config.style = JSON.parse(config2.style);
@@ -11863,7 +11863,7 @@ const buildCheckbox = (config2, componentScope2) => {
11863
11863
  const buildLineGraph = (config2, componentScope2) => {
11864
11864
  const lineGraph = _.cloneDeep(LineGraph);
11865
11865
  if (config2.layout) {
11866
- lineGraph.config.layout = createLayoutFormat(config2.layout);
11866
+ lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11867
11867
  }
11868
11868
  lineGraph.config.main.header = config2.heading;
11869
11869
  if (config2.height) {
@@ -12132,7 +12132,7 @@ const buildPopUp = (config2, componentScope2) => {
12132
12132
  popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12133
12133
  popup.config.main.maxWidth = config2.maxWidth || false;
12134
12134
  if (config2.layout) {
12135
- popup.config.layout = createLayoutFormat(config2.layout);
12135
+ popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12136
12136
  }
12137
12137
  if (config2.style) {
12138
12138
  PopUP.config.style = JSON.parse(config2.style);
@@ -12172,10 +12172,10 @@ const buildDataGrid = (config2, componentScope2) => {
12172
12172
  DataGrid.config.main.label = config2.label;
12173
12173
  }
12174
12174
  if (config2.layout) {
12175
- DataGrid.config.layout = createLayoutFormat(config2.layout);
12175
+ DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12176
12176
  }
12177
12177
  if (config2.cardLayout) {
12178
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
12178
+ DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12179
12179
  }
12180
12180
  if (config2.style) {
12181
12181
  DataGrid.config.style = JSON.parse(config2.style);
@@ -12253,7 +12253,7 @@ const buildTreeMap = (config2, componentScope2) => {
12253
12253
  treMap.config.main.header = config2.label;
12254
12254
  }
12255
12255
  if (config2.layout) {
12256
- treMap.config.layout = createLayoutFormat(config2.layout);
12256
+ treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12257
12257
  }
12258
12258
  if (config2.orientation) {
12259
12259
  treMap.config.main.orientation = config2.orientation;
@@ -12296,7 +12296,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
12296
12296
  thought.config.main.thought = `${config2.thought}`;
12297
12297
  }
12298
12298
  if (config2.layout) {
12299
- thought.config.layout = createLayoutFormat(config2.layout);
12299
+ thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12300
12300
  }
12301
12301
  if (config2.label) {
12302
12302
  thought.config.main.label = config2.label;