impaktapps-ui-builder 1.0.147-test.2 → 1.0.147-test.20
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 +43 -12
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +6 -5
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -2
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +7 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -8
- package/src/impaktapps-ui-builder/builder/build/uischema/cardOld.tsx +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
|
@@ -8,14 +8,15 @@ export default function Card(theme: any): {
|
|
|
8
8
|
top: string;
|
|
9
9
|
transform: string;
|
|
10
10
|
marginBottom: number;
|
|
11
|
+
borderRadius: string;
|
|
11
12
|
};
|
|
12
13
|
componentsBoxStyle: {
|
|
13
14
|
boxShadow: string;
|
|
14
15
|
flexDirection: string;
|
|
16
|
+
overflow: string;
|
|
15
17
|
flexWrap: string;
|
|
16
18
|
width: string;
|
|
17
19
|
background: string;
|
|
18
|
-
border: string;
|
|
19
20
|
borderRadius: string;
|
|
20
21
|
padding: string;
|
|
21
22
|
height: string;
|
|
@@ -24,10 +25,6 @@ export default function Card(theme: any): {
|
|
|
24
25
|
marginLeft: string;
|
|
25
26
|
"&: hover": {
|
|
26
27
|
background: string;
|
|
27
|
-
border: string;
|
|
28
|
-
"& p": {
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
28
|
};
|
|
32
29
|
};
|
|
33
30
|
};
|
|
@@ -77,6 +74,7 @@ export default function Card(theme: any): {
|
|
|
77
74
|
display?: undefined;
|
|
78
75
|
width?: undefined;
|
|
79
76
|
lineHeight?: undefined;
|
|
77
|
+
overflowY?: undefined;
|
|
80
78
|
paddingLeft?: undefined;
|
|
81
79
|
};
|
|
82
80
|
};
|
|
@@ -112,6 +110,7 @@ export default function Card(theme: any): {
|
|
|
112
110
|
display?: undefined;
|
|
113
111
|
width?: undefined;
|
|
114
112
|
lineHeight?: undefined;
|
|
113
|
+
overflowY?: undefined;
|
|
115
114
|
paddingLeft?: undefined;
|
|
116
115
|
};
|
|
117
116
|
};
|
|
@@ -143,6 +142,7 @@ export default function Card(theme: any): {
|
|
|
143
142
|
maxWidth: string;
|
|
144
143
|
whiteSpace: string;
|
|
145
144
|
overflowX: string;
|
|
145
|
+
overflowY: string;
|
|
146
146
|
scrollbarWidth: string;
|
|
147
147
|
"&::-webkit-scrollbar": {
|
|
148
148
|
display: string;
|
|
@@ -186,6 +186,7 @@ export default function Card(theme: any): {
|
|
|
186
186
|
display?: undefined;
|
|
187
187
|
width?: undefined;
|
|
188
188
|
lineHeight?: undefined;
|
|
189
|
+
overflowY?: undefined;
|
|
189
190
|
};
|
|
190
191
|
};
|
|
191
192
|
options: {
|
package/package.json
CHANGED
|
@@ -5,7 +5,11 @@ import { createLayoutFormat } from "./buildConfig";
|
|
|
5
5
|
export const buildCard = (config,componentScope,store) =>{
|
|
6
6
|
const card: any = _.cloneDeep(Card(store.theme.myTheme));
|
|
7
7
|
if (config.style) {
|
|
8
|
+
const parsedStyle = JSON.parse(config.style);
|
|
8
9
|
card.config.wrapperStyle = JSON.parse(config.style)
|
|
10
|
+
card.elements[1].config.style = { ...card.elements[1].config.style, ...(parsedStyle.labelStyle ?? {})};
|
|
11
|
+
card.elements[3].config.style = { ...card.elements[3].config.style, ...(parsedStyle.descriptionStyle ?? {})};
|
|
12
|
+
card.elements[2].config.style = { ...card.elements[2].config.style, ...(parsedStyle.valueStyle ?? {})};
|
|
9
13
|
}
|
|
10
14
|
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
11
15
|
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
@@ -27,8 +31,9 @@ export const buildCard = (config,componentScope,store) =>{
|
|
|
27
31
|
if(config.description){
|
|
28
32
|
card.elements[3].config.main.heading = config.description;
|
|
29
33
|
}
|
|
30
|
-
if(config.
|
|
31
|
-
card.elements[2].config.main.heading = config.
|
|
34
|
+
if(config.cardValue){
|
|
35
|
+
card.elements[2].config.main.heading = config.cardValue;
|
|
32
36
|
}
|
|
37
|
+
|
|
33
38
|
return card;
|
|
34
39
|
}
|
|
@@ -48,6 +48,9 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
|
|
|
48
48
|
if (config.disableLeftLabel) {
|
|
49
49
|
horizontalBarGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
50
50
|
}
|
|
51
|
+
if (config.style) {
|
|
52
|
+
horizontalBarGraph.config.style = JSON.parse(config.style)
|
|
53
|
+
}
|
|
51
54
|
return horizontalBarGraph
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -47,6 +47,9 @@ export const buildLineGraph = (config, componentScope) => {
|
|
|
47
47
|
if (config.pieArcColors) {
|
|
48
48
|
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
49
49
|
}
|
|
50
|
+
if (config.style) {
|
|
51
|
+
lineGraph.config.style = JSON.parse(config.style)
|
|
52
|
+
}
|
|
50
53
|
lineGraph.scope = componentScope;
|
|
51
54
|
return lineGraph;
|
|
52
55
|
}
|
|
@@ -21,7 +21,9 @@ export const buildMultiSelect = (config, componentScope) => {
|
|
|
21
21
|
if (config.lazyLoading) {
|
|
22
22
|
multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
if (config.style) {
|
|
25
|
+
multipleSelect.config.style = JSON.parse(config.style)
|
|
26
|
+
}
|
|
25
27
|
|
|
26
28
|
return multipleSelect;
|
|
27
29
|
}
|
|
@@ -27,5 +27,8 @@ export const buildPieGraph = (config, componentScope) => {
|
|
|
27
27
|
if (config.pieArcColors) {
|
|
28
28
|
pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
29
29
|
}
|
|
30
|
+
if (config.style) {
|
|
31
|
+
pieGraph.config.style = JSON.parse(config.style)
|
|
32
|
+
}
|
|
30
33
|
return pieGraph;
|
|
31
34
|
}
|
|
@@ -19,6 +19,9 @@ export const buildSelect = (config: any, componentScope: string) => {
|
|
|
19
19
|
}
|
|
20
20
|
if (config.layout) {
|
|
21
21
|
selectInputField.config.layout = createLayoutFormat(config.layout)
|
|
22
|
+
}
|
|
23
|
+
if (config.style) {
|
|
24
|
+
selectInputField.config.style = JSON.parse(config.style)
|
|
22
25
|
}
|
|
23
26
|
selectInputField.scope = componentScope;
|
|
24
27
|
return selectInputField;
|
|
@@ -45,6 +45,9 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
|
|
|
45
45
|
if (config.disableLeftLabel) {
|
|
46
46
|
barGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
47
47
|
}
|
|
48
|
+
if (config.style) {
|
|
49
|
+
barGraph.config.style = JSON.parse(config.style)
|
|
50
|
+
}
|
|
48
51
|
barGraph.scope = componentScope;
|
|
49
52
|
return barGraph;
|
|
50
53
|
}
|
|
@@ -65,6 +65,12 @@ export const buildTable = (config: any, componentScope: string) => {
|
|
|
65
65
|
if (config.disableDownloadFile) {
|
|
66
66
|
table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false
|
|
67
67
|
}
|
|
68
|
+
if (config.disableTopToolbar) {
|
|
69
|
+
table.config.main.disableTopToolbar = config.disableTopToolbar === "YES" ? true : false
|
|
70
|
+
}
|
|
71
|
+
if (config.disableBottomToolbar) {
|
|
72
|
+
table.config.main.disableBottomToolbar = config.disableBottomToolbar === "YES" ? true : false
|
|
73
|
+
}
|
|
68
74
|
if (config.disablePagination) {
|
|
69
75
|
table.config.main.disablePagination = config.disablePagination === "YES" ? true : false
|
|
70
76
|
}
|
|
@@ -396,7 +396,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
396
396
|
uiSchema.elements = [
|
|
397
397
|
getInputField("url", "Image Url"),
|
|
398
398
|
getInputField("label", "Label"),
|
|
399
|
-
getInputField("
|
|
399
|
+
getInputField("cardValue", "Value"),
|
|
400
400
|
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
401
401
|
getInputField("description", "Description"),
|
|
402
402
|
emptyBox("cardEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
@@ -480,10 +480,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
480
480
|
getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
|
|
481
481
|
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
482
482
|
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
483
|
+
getRadioInputField("disableTopToolbar", "Disable Top Toolbar", ["YES", "NO"]),
|
|
484
|
+
getRadioInputField("disableBottomToolbar", "Disable Bottom Toolbar", ["YES", "NO"]),
|
|
483
485
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
484
486
|
getInputField("selectKey", "Selection Key"),//defaultColumnSize
|
|
485
487
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
486
488
|
getSelectField("maxPageSize", "Max Page Size", [
|
|
489
|
+
{ label: "5", value: 5 },
|
|
487
490
|
{ label: "10", value: 10 },
|
|
488
491
|
{ label: "20", value: 20 },
|
|
489
492
|
{ label: "30", value: 30 },
|
|
@@ -496,6 +499,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
496
499
|
{ label: "Comfortable", value: "comfortable" },
|
|
497
500
|
{ label: "Spacious", value: "spacious" }
|
|
498
501
|
]),
|
|
502
|
+
emptyBox("emptyBoxTable", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
503
|
+
|
|
499
504
|
buildWrapper("Tree Table Properties", [
|
|
500
505
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
501
506
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -503,7 +508,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
503
508
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
504
509
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
505
510
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
506
|
-
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
|
|
511
|
+
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
507
512
|
]),
|
|
508
513
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
509
514
|
sizeHolder,
|
|
@@ -9,15 +9,17 @@ export default function Card(theme){
|
|
|
9
9
|
position: "relative",
|
|
10
10
|
top: "50%",
|
|
11
11
|
transform: "translateY(-50%)",
|
|
12
|
-
marginBottom: 0
|
|
12
|
+
marginBottom: 0,
|
|
13
|
+
borderRadius: "8px"
|
|
13
14
|
},
|
|
14
15
|
componentsBoxStyle: {
|
|
15
16
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
16
17
|
flexDirection: "column",
|
|
18
|
+
overflow: "hidden",
|
|
17
19
|
flexWrap: "nowrap",
|
|
18
20
|
width: "100% !important",
|
|
19
21
|
background: "transparent",
|
|
20
|
-
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
22
|
+
// border: `1.5px solid ${theme.palette.primary.light}`,
|
|
21
23
|
borderRadius: "8px",
|
|
22
24
|
padding: "20px 20px 20px 14px",
|
|
23
25
|
height: "100%",
|
|
@@ -26,10 +28,10 @@ export default function Card(theme){
|
|
|
26
28
|
marginLeft: "0px",
|
|
27
29
|
"&: hover": {
|
|
28
30
|
background: `${theme.palette.primary.main}`,
|
|
29
|
-
border: `1.5px solid black`,
|
|
30
|
-
"& p": {
|
|
31
|
-
|
|
32
|
-
},
|
|
31
|
+
// border: `1.5px solid black`,
|
|
32
|
+
// "& p": {
|
|
33
|
+
// color: "white",
|
|
34
|
+
// },
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
},
|
|
@@ -105,7 +107,7 @@ export default function Card(theme){
|
|
|
105
107
|
style: {
|
|
106
108
|
color: "black",
|
|
107
109
|
display: "flex",
|
|
108
|
-
fontSize: { xs: "22px", md: "
|
|
110
|
+
fontSize: { xs: "22px", md: "27px" },
|
|
109
111
|
fontWeight: "450",
|
|
110
112
|
background: "inherit",
|
|
111
113
|
justifyContent: "flex-start",
|
|
@@ -113,10 +115,10 @@ export default function Card(theme){
|
|
|
113
115
|
margin: "0px",
|
|
114
116
|
marginBottom: "8px",
|
|
115
117
|
lineHeight: "1",
|
|
116
|
-
|
|
117
118
|
maxWidth: "200px",
|
|
118
119
|
whiteSpace: "nowrap",
|
|
119
120
|
overflowX: "auto",
|
|
121
|
+
overflowY: "hidden",
|
|
120
122
|
scrollbarWidth: "none",
|
|
121
123
|
"&::-webkit-scrollbar": {
|
|
122
124
|
display: "none",
|