impaktapps-ui-builder 0.0.409-f → 0.0.409-h
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 +6 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +12 -9
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -1
package/package.json
CHANGED
|
@@ -2,17 +2,20 @@ import { createLayoutFormat } from "./buildConfig";
|
|
|
2
2
|
import WrapperSection from "./uischema/wrapperSection";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
|
|
5
|
-
export const buildWrapperSection = (config,componentScope) =>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
export const buildWrapperSection = (config, componentScope) => {
|
|
6
|
+
const wrapper: any = _.cloneDeep(WrapperSection);
|
|
7
|
+
wrapper.scope = componentScope;
|
|
8
|
+
wrapper.config.main.label = config.label;
|
|
9
|
+
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
|
+
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
11
|
+
if(config.defaultStyle){
|
|
12
|
+
wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (config.style) {
|
|
15
|
+
wrapper.config.style = JSON.parse(config.style)
|
|
16
|
+
}
|
|
17
|
+
if (config.layout) {
|
|
18
|
+
wrapper.config.layout = createLayoutFormat(config.layout)
|
|
19
|
+
}
|
|
20
|
+
return wrapper;
|
|
18
21
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
+
import emptyBox from "./emptyBox";
|
|
3
4
|
const EmptyBox = {
|
|
4
5
|
type: "Control",
|
|
5
6
|
scope: `#/properties/empty`,
|
|
@@ -19,7 +20,7 @@ const EmptyBox = {
|
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
};
|
|
22
|
-
const cardLayout =
|
|
23
|
+
const cardLayout = {
|
|
23
24
|
type: "Control",
|
|
24
25
|
scope: "#/properties/cardLayout",
|
|
25
26
|
layout: 11.5,
|
|
@@ -42,7 +43,7 @@ const cardLayout = {
|
|
|
42
43
|
},
|
|
43
44
|
main: {
|
|
44
45
|
label: "Screen Size",
|
|
45
|
-
|
|
46
|
+
|
|
46
47
|
},
|
|
47
48
|
},
|
|
48
49
|
},
|
|
@@ -62,11 +63,11 @@ const cardLayout = {
|
|
|
62
63
|
},
|
|
63
64
|
main: {
|
|
64
65
|
label: "Value",
|
|
65
|
-
type:"number",
|
|
66
|
+
type: "number",
|
|
66
67
|
// freeSolo:true,
|
|
67
|
-
helperText:'Number should be in range of 0 to 12',
|
|
68
|
-
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
69
|
-
|
|
68
|
+
helperText: 'Number should be in range of 0 to 12',
|
|
69
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
70
|
+
|
|
70
71
|
},
|
|
71
72
|
},
|
|
72
73
|
},
|
|
@@ -235,10 +236,10 @@ const GraphSection = {
|
|
|
235
236
|
export const buildPropertiesSection = function (type: String) {
|
|
236
237
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
237
238
|
switch (type) {
|
|
238
|
-
|
|
239
|
+
|
|
239
240
|
case "TreeMap":
|
|
240
241
|
uiSchema.elements = [
|
|
241
|
-
getSelectField("orientation", "orientation",[]),
|
|
242
|
+
getSelectField("orientation", "orientation", []),
|
|
242
243
|
getInputField("linkType", "linkType"),
|
|
243
244
|
getInputField("graphHeight", "Graph Height"),
|
|
244
245
|
getInputField("graphWidth", "Graph Width"),
|
|
@@ -379,7 +380,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
379
380
|
case "WrapperSection":
|
|
380
381
|
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
381
382
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
382
|
-
|
|
383
|
+
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
384
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
385
|
+
]
|
|
383
386
|
break;
|
|
384
387
|
|
|
385
388
|
case "TabSection":
|