impaktapps-ui-builder 1.0.50-alpha.24 → 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.
- package/dist/impaktapps-ui-builder.es.js +46 -34
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +16 -4
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- 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/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
|
@@ -8294,12 +8294,21 @@ var buildConfig = (FormData) => {
|
|
|
8294
8294
|
component = { ...formData, ...component };
|
|
8295
8295
|
return component;
|
|
8296
8296
|
};
|
|
8297
|
-
const createLayoutFormat = (
|
|
8298
|
-
if (_.isEmpty(
|
|
8299
|
-
|
|
8297
|
+
const createLayoutFormat = (layout, type) => {
|
|
8298
|
+
if (_.isEmpty(layout)) {
|
|
8299
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"];
|
|
8300
|
+
if (fullLayoutComponents.includes(type)) {
|
|
8301
|
+
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8302
|
+
} else if (type === "Graph") {
|
|
8303
|
+
return { xs: 12, sm: 12, md: 12, lg: 6 };
|
|
8304
|
+
} else if (type === "Button") {
|
|
8305
|
+
return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
|
|
8306
|
+
} else {
|
|
8307
|
+
return { xs: 6, sm: 6, md: 4, lg: 3 };
|
|
8308
|
+
}
|
|
8300
8309
|
}
|
|
8301
8310
|
let data = {};
|
|
8302
|
-
|
|
8311
|
+
layout.map((e) => {
|
|
8303
8312
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
8304
8313
|
});
|
|
8305
8314
|
return data;
|
|
@@ -10659,7 +10668,7 @@ const buildLeaderBoard = (config2) => {
|
|
|
10659
10668
|
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10660
10669
|
}
|
|
10661
10670
|
if (config2.layout) {
|
|
10662
|
-
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10671
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10663
10672
|
}
|
|
10664
10673
|
if (config2.style) {
|
|
10665
10674
|
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
@@ -10786,7 +10795,7 @@ const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
|
10786
10795
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10787
10796
|
horizontalBarGraph.scope = componentScope2;
|
|
10788
10797
|
if (config2.layout) {
|
|
10789
|
-
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10798
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10790
10799
|
}
|
|
10791
10800
|
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10792
10801
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -10918,7 +10927,7 @@ const buildSpeedoMeter = (config2, componentScope2) => {
|
|
|
10918
10927
|
const buildPieGraph = (config2, componentScope2) => {
|
|
10919
10928
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10920
10929
|
if (config2.layout) {
|
|
10921
|
-
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10930
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10922
10931
|
}
|
|
10923
10932
|
if (config2.height) {
|
|
10924
10933
|
pieGraph.config.style.containerStyle.height = config2.height;
|
|
@@ -10943,7 +10952,7 @@ const buildStackbarGraph = (config2, componentScope2) => {
|
|
|
10943
10952
|
var _a;
|
|
10944
10953
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10945
10954
|
if (config2.layout) {
|
|
10946
|
-
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10955
|
+
barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
10947
10956
|
}
|
|
10948
10957
|
if (config2.legendHide) {
|
|
10949
10958
|
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
@@ -11028,6 +11037,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
11028
11037
|
var WrapperSection = {
|
|
11029
11038
|
type: "WrapperLayout",
|
|
11030
11039
|
config: {
|
|
11040
|
+
layout: 12,
|
|
11031
11041
|
main: {
|
|
11032
11042
|
rowSpacing: 3,
|
|
11033
11043
|
divider: true,
|
|
@@ -11050,7 +11060,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11050
11060
|
wrapper.config.style = JSON.parse(config2.style);
|
|
11051
11061
|
}
|
|
11052
11062
|
if (config2.layout) {
|
|
11053
|
-
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
11063
|
+
wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11054
11064
|
}
|
|
11055
11065
|
return wrapper;
|
|
11056
11066
|
};
|
|
@@ -11061,7 +11071,7 @@ var TextInputField = {
|
|
|
11061
11071
|
widget: "InputField"
|
|
11062
11072
|
},
|
|
11063
11073
|
config: {
|
|
11064
|
-
layout: { xs:
|
|
11074
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11065
11075
|
main: {
|
|
11066
11076
|
label: ""
|
|
11067
11077
|
},
|
|
@@ -11097,7 +11107,7 @@ var SelectInputField = {
|
|
|
11097
11107
|
widget: "SelectInputField"
|
|
11098
11108
|
},
|
|
11099
11109
|
config: {
|
|
11100
|
-
layout: { xs:
|
|
11110
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11101
11111
|
main: {
|
|
11102
11112
|
label: "",
|
|
11103
11113
|
type: "text",
|
|
@@ -11130,7 +11140,7 @@ var Button = {
|
|
|
11130
11140
|
widget: "Button"
|
|
11131
11141
|
},
|
|
11132
11142
|
config: {
|
|
11133
|
-
layout:
|
|
11143
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
11134
11144
|
main: {
|
|
11135
11145
|
name: "Compare",
|
|
11136
11146
|
variant: "contained",
|
|
@@ -11151,7 +11161,7 @@ const buildButton = (config2, componentScope2) => {
|
|
|
11151
11161
|
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
11152
11162
|
}
|
|
11153
11163
|
if (config2.layout) {
|
|
11154
|
-
button.config.layout = createLayoutFormat(config2.layout);
|
|
11164
|
+
button.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11155
11165
|
}
|
|
11156
11166
|
if (config2.tooltipMessage) {
|
|
11157
11167
|
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
@@ -11186,6 +11196,7 @@ var Table = {
|
|
|
11186
11196
|
},
|
|
11187
11197
|
elements: [],
|
|
11188
11198
|
config: {
|
|
11199
|
+
layout: 12,
|
|
11189
11200
|
main: {
|
|
11190
11201
|
onMount: "onMount",
|
|
11191
11202
|
enableExpandAll: true,
|
|
@@ -11277,7 +11288,7 @@ const Box = {
|
|
|
11277
11288
|
widget: "Box"
|
|
11278
11289
|
},
|
|
11279
11290
|
config: {
|
|
11280
|
-
layout:
|
|
11291
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11281
11292
|
main: {},
|
|
11282
11293
|
style: {}
|
|
11283
11294
|
}
|
|
@@ -11307,7 +11318,7 @@ const uploadFile = {
|
|
|
11307
11318
|
"style": {
|
|
11308
11319
|
"backgroundColor": "none"
|
|
11309
11320
|
},
|
|
11310
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11321
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11311
11322
|
},
|
|
11312
11323
|
"options": {
|
|
11313
11324
|
"widget": "UploadFile"
|
|
@@ -11324,7 +11335,7 @@ const downloadFile = {
|
|
|
11324
11335
|
"style": {
|
|
11325
11336
|
"backgroundColor": "none"
|
|
11326
11337
|
},
|
|
11327
|
-
layout: { xs:
|
|
11338
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11328
11339
|
},
|
|
11329
11340
|
"options": {
|
|
11330
11341
|
"widget": "DownloadFile"
|
|
@@ -11595,7 +11606,7 @@ var DateInputField = {
|
|
|
11595
11606
|
widget: "DateInputField"
|
|
11596
11607
|
},
|
|
11597
11608
|
config: {
|
|
11598
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11609
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11599
11610
|
main: {
|
|
11600
11611
|
label: "",
|
|
11601
11612
|
type: "date"
|
|
@@ -11609,7 +11620,7 @@ const DateTime = {
|
|
|
11609
11620
|
widget: "DateTimeInputField"
|
|
11610
11621
|
},
|
|
11611
11622
|
config: {
|
|
11612
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11623
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11613
11624
|
main: {
|
|
11614
11625
|
label: "DateTime",
|
|
11615
11626
|
type: "date"
|
|
@@ -11717,7 +11728,7 @@ var MultipleSelect = {
|
|
|
11717
11728
|
widget: "MultipleSelect"
|
|
11718
11729
|
},
|
|
11719
11730
|
config: {
|
|
11720
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11731
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11721
11732
|
main: {
|
|
11722
11733
|
label: "",
|
|
11723
11734
|
type: "text",
|
|
@@ -11761,7 +11772,7 @@ const TextArea = {
|
|
|
11761
11772
|
widget: "TextArea"
|
|
11762
11773
|
},
|
|
11763
11774
|
config: {
|
|
11764
|
-
layout:
|
|
11775
|
+
layout: 12,
|
|
11765
11776
|
style: {
|
|
11766
11777
|
containerStyle: {
|
|
11767
11778
|
borderRadius: "20px"
|
|
@@ -11785,7 +11796,7 @@ const buildTextArea = (config2, componentScope2) => {
|
|
|
11785
11796
|
const textArea = _.cloneDeep(TextArea);
|
|
11786
11797
|
textArea.config.main.heading = config2.label;
|
|
11787
11798
|
if (config2.layout) {
|
|
11788
|
-
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11799
|
+
textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11789
11800
|
}
|
|
11790
11801
|
if (config2.style) {
|
|
11791
11802
|
textArea.config.style = JSON.parse(config2.style);
|
|
@@ -11827,11 +11838,11 @@ const buildSlider = (config2, componentScope2) => {
|
|
|
11827
11838
|
const Checkbox = {
|
|
11828
11839
|
"type": "Control",
|
|
11829
11840
|
"scope": "#/properties/username1",
|
|
11830
|
-
"layout": 12,
|
|
11831
11841
|
"options": {
|
|
11832
11842
|
"widget": "CheckBox"
|
|
11833
11843
|
},
|
|
11834
11844
|
"config": {
|
|
11845
|
+
"layout": { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11835
11846
|
"main": {
|
|
11836
11847
|
"label": "Welcome to Hyperform"
|
|
11837
11848
|
}
|
|
@@ -11852,7 +11863,7 @@ const buildCheckbox = (config2, componentScope2) => {
|
|
|
11852
11863
|
const buildLineGraph = (config2, componentScope2) => {
|
|
11853
11864
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11854
11865
|
if (config2.layout) {
|
|
11855
|
-
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11866
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
11856
11867
|
}
|
|
11857
11868
|
lineGraph.config.main.header = config2.heading;
|
|
11858
11869
|
if (config2.height) {
|
|
@@ -11897,7 +11908,7 @@ const RadioUiSchema = {
|
|
|
11897
11908
|
widget: "RadioInputField"
|
|
11898
11909
|
},
|
|
11899
11910
|
config: {
|
|
11900
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11911
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11901
11912
|
main: {
|
|
11902
11913
|
label: "Enabled",
|
|
11903
11914
|
options: ["YES", "NO"],
|
|
@@ -11927,7 +11938,7 @@ var emptyBox = {
|
|
|
11927
11938
|
widget: "EmptyBox"
|
|
11928
11939
|
},
|
|
11929
11940
|
config: {
|
|
11930
|
-
layout: { xs:
|
|
11941
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11931
11942
|
main: {},
|
|
11932
11943
|
style: {}
|
|
11933
11944
|
}
|
|
@@ -11942,7 +11953,7 @@ const buildEmptyBox = (config2, componentScope2) => {
|
|
|
11942
11953
|
const ArrayUiSchema = {
|
|
11943
11954
|
type: "Control",
|
|
11944
11955
|
scope: "#/properties/adjustments",
|
|
11945
|
-
layout:
|
|
11956
|
+
layout: 12,
|
|
11946
11957
|
elements: [],
|
|
11947
11958
|
config: {
|
|
11948
11959
|
main: {}
|
|
@@ -11969,7 +11980,7 @@ const TextField = {
|
|
|
11969
11980
|
"widget": "InputField"
|
|
11970
11981
|
},
|
|
11971
11982
|
config: {
|
|
11972
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11983
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11973
11984
|
main: {
|
|
11974
11985
|
label: "Adhaar Card",
|
|
11975
11986
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11998,7 +12009,7 @@ const PanField = {
|
|
|
11998
12009
|
"widget": "InputField"
|
|
11999
12010
|
},
|
|
12000
12011
|
config: {
|
|
12001
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
12012
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
12002
12013
|
main: {
|
|
12003
12014
|
label: "Pan Card",
|
|
12004
12015
|
placeholder: "AAAAA0000A",
|
|
@@ -12026,7 +12037,7 @@ const FileInput = {
|
|
|
12026
12037
|
widget: "FileInputField"
|
|
12027
12038
|
},
|
|
12028
12039
|
config: {
|
|
12029
|
-
layout: { xs:
|
|
12040
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
12030
12041
|
main: {
|
|
12031
12042
|
required: false,
|
|
12032
12043
|
onUpload: "onFileUpload",
|
|
@@ -12121,7 +12132,7 @@ const buildPopUp = (config2, componentScope2) => {
|
|
|
12121
12132
|
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
12122
12133
|
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
12123
12134
|
if (config2.layout) {
|
|
12124
|
-
popup.config.layout = createLayoutFormat(config2.layout);
|
|
12135
|
+
popup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12125
12136
|
}
|
|
12126
12137
|
if (config2.style) {
|
|
12127
12138
|
PopUP.config.style = JSON.parse(config2.style);
|
|
@@ -12161,10 +12172,10 @@ const buildDataGrid = (config2, componentScope2) => {
|
|
|
12161
12172
|
DataGrid.config.main.label = config2.label;
|
|
12162
12173
|
}
|
|
12163
12174
|
if (config2.layout) {
|
|
12164
|
-
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
12175
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12165
12176
|
}
|
|
12166
12177
|
if (config2.cardLayout) {
|
|
12167
|
-
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
12178
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
|
|
12168
12179
|
}
|
|
12169
12180
|
if (config2.style) {
|
|
12170
12181
|
DataGrid.config.style = JSON.parse(config2.style);
|
|
@@ -12216,6 +12227,7 @@ const TreeMap = {
|
|
|
12216
12227
|
"type": "Control",
|
|
12217
12228
|
"scope": "#/properties/TreeMap2",
|
|
12218
12229
|
"config": {
|
|
12230
|
+
layout: 12,
|
|
12219
12231
|
"main": {
|
|
12220
12232
|
"layout": "cartsian",
|
|
12221
12233
|
orientation: "vertical",
|
|
@@ -12241,7 +12253,7 @@ const buildTreeMap = (config2, componentScope2) => {
|
|
|
12241
12253
|
treMap.config.main.header = config2.label;
|
|
12242
12254
|
}
|
|
12243
12255
|
if (config2.layout) {
|
|
12244
|
-
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
12256
|
+
treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12245
12257
|
}
|
|
12246
12258
|
if (config2.orientation) {
|
|
12247
12259
|
treMap.config.main.orientation = config2.orientation;
|
|
@@ -12284,7 +12296,7 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12284
12296
|
thought.config.main.thought = `${config2.thought}`;
|
|
12285
12297
|
}
|
|
12286
12298
|
if (config2.layout) {
|
|
12287
|
-
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12299
|
+
thought.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12288
12300
|
}
|
|
12289
12301
|
if (config2.label) {
|
|
12290
12302
|
thought.config.main.label = config2.label;
|