impaktapps-ui-builder 1.0.55 → 1.0.56
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.
- package/dist/impaktapps-ui-builder.es.js +15 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +3 -4
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
|
@@ -8297,7 +8297,7 @@ var buildConfig = (FormData) => {
|
|
|
8297
8297
|
};
|
|
8298
8298
|
const createLayoutFormat = (layout, type) => {
|
|
8299
8299
|
if (_.isEmpty(layout)) {
|
|
8300
|
-
const fullLayoutComponents = ["
|
|
8300
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8301
8301
|
if (fullLayoutComponents.includes(type)) {
|
|
8302
8302
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8303
8303
|
} else if (type === "Graph") {
|
|
@@ -10681,7 +10681,7 @@ const buildLeaderBoard = (config2) => {
|
|
|
10681
10681
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10682
10682
|
}
|
|
10683
10683
|
if (config2.layout) {
|
|
10684
|
-
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10684
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10685
10685
|
}
|
|
10686
10686
|
if (config2.style) {
|
|
10687
10687
|
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
@@ -10808,7 +10808,7 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10808
10808
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10809
10809
|
horizontalBarGraph.scope = componentScope2;
|
|
10810
10810
|
if (config2.layout) {
|
|
10811
|
-
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10811
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10812
10812
|
}
|
|
10813
10813
|
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10814
10814
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -10940,7 +10940,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
|
|
|
10940
10940
|
const buildPieGraph = (config2, componentScope2) => {
|
|
10941
10941
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10942
10942
|
if (config2.layout) {
|
|
10943
|
-
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10943
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10944
10944
|
}
|
|
10945
10945
|
if (config2.height) {
|
|
10946
10946
|
pieGraph.config.style.containerStyle.height = config2.height;
|
|
@@ -10965,7 +10965,7 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10965
10965
|
var _a;
|
|
10966
10966
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10967
10967
|
if (config2.layout) {
|
|
10968
|
-
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10968
|
+
barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10969
10969
|
}
|
|
10970
10970
|
if (config2.legendHide) {
|
|
10971
10971
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
@@ -11073,7 +11073,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11073
11073
|
wrapper.config.style = JSON.parse(config2.style);
|
|
11074
11074
|
}
|
|
11075
11075
|
if (config2.layout) {
|
|
11076
|
-
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
11076
|
+
wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11077
11077
|
}
|
|
11078
11078
|
return wrapper;
|
|
11079
11079
|
};
|
|
@@ -11177,7 +11177,7 @@ const buildButton = (config2, componentScope2) => {
|
|
|
11177
11177
|
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
11178
11178
|
}
|
|
11179
11179
|
if (config2.layout) {
|
|
11180
|
-
button.config.layout = createLayoutFormat(config2.layout);
|
|
11180
|
+
button.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11181
11181
|
}
|
|
11182
11182
|
if (config2.tooltipMessage) {
|
|
11183
11183
|
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
@@ -11812,7 +11812,7 @@ const buildTextArea = (config2, componentScope2) => {
|
|
|
11812
11812
|
const textArea = _.cloneDeep(TextArea);
|
|
11813
11813
|
textArea.config.main.heading = config2.label;
|
|
11814
11814
|
if (config2.layout) {
|
|
11815
|
-
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11815
|
+
textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11816
11816
|
}
|
|
11817
11817
|
if (config2.style) {
|
|
11818
11818
|
textArea.config.style = JSON.parse(config2.style);
|
|
@@ -11879,7 +11879,7 @@ const buildCheckbox = (config2, componentScope2) => {
|
|
|
11879
11879
|
const buildLineGraph = (config2, componentScope2) => {
|
|
11880
11880
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11881
11881
|
if (config2.layout) {
|
|
11882
|
-
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11882
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11883
11883
|
}
|
|
11884
11884
|
lineGraph.config.main.header = config2.heading;
|
|
11885
11885
|
if (config2.height) {
|
|
@@ -12148,7 +12148,7 @@ const buildPopUp = (config2, componentScope2) => {
|
|
|
12148
12148
|
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
12149
12149
|
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
12150
12150
|
if (config2.layout) {
|
|
12151
|
-
popup.config.layout = createLayoutFormat(config2.layout);
|
|
12151
|
+
popup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12152
12152
|
}
|
|
12153
12153
|
if (config2.style) {
|
|
12154
12154
|
PopUP.config.style = JSON.parse(config2.style);
|
|
@@ -12188,10 +12188,10 @@ const buildDataGrid = (config2, componentScope2) => {
|
|
|
12188
12188
|
DataGrid.config.main.label = config2.label;
|
|
12189
12189
|
}
|
|
12190
12190
|
if (config2.layout) {
|
|
12191
|
-
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
12191
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12192
12192
|
}
|
|
12193
12193
|
if (config2.cardLayout) {
|
|
12194
|
-
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
12194
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
|
|
12195
12195
|
}
|
|
12196
12196
|
if (config2.style) {
|
|
12197
12197
|
DataGrid.config.style = JSON.parse(config2.style);
|
|
@@ -12269,7 +12269,7 @@ const buildTreeMap = (config2, componentScope2) => {
|
|
|
12269
12269
|
treMap.config.main.header = config2.label;
|
|
12270
12270
|
}
|
|
12271
12271
|
if (config2.layout) {
|
|
12272
|
-
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
12272
|
+
treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12273
12273
|
}
|
|
12274
12274
|
if (config2.orientation) {
|
|
12275
12275
|
treMap.config.main.orientation = config2.orientation;
|
|
@@ -12312,7 +12312,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12312
12312
|
thought.config.main.thought = `${config2.thought}`;
|
|
12313
12313
|
}
|
|
12314
12314
|
if (config2.layout) {
|
|
12315
|
-
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12315
|
+
thought.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12316
12316
|
}
|
|
12317
12317
|
if (config2.label) {
|
|
12318
12318
|
thought.config.main.label = config2.label;
|
|
@@ -12430,7 +12430,7 @@ const buildSchema = (config2, tableName, isArrayType) => {
|
|
|
12430
12430
|
});
|
|
12431
12431
|
} else {
|
|
12432
12432
|
config2.elements.map((e, elemInd) => {
|
|
12433
|
-
buildSchema(e);
|
|
12433
|
+
buildSchema(e, config2.name, config2.type === "PopUp");
|
|
12434
12434
|
});
|
|
12435
12435
|
}
|
|
12436
12436
|
}
|