impaktapps-ui-builder 0.0.409-e → 0.0.409-g

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.409e",
3
+ "version": "0.0.409g",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -171,6 +171,7 @@ const buildUiSchema = (config: any) => {
171
171
  switch (config.type) {
172
172
  case "TreeMap":
173
173
  elements = buildTreeMap(config,componentScope)
174
+ break;
174
175
  case "DateTime":
175
176
  elements = buildDateTime(config, componentScope);
176
177
  break;
@@ -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
- 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.style) {
12
- wrapper.config.style = JSON.parse(config.style)
13
- }
14
- if (config.layout) {
15
- wrapper.config.layout = createLayoutFormat(config.layout)
16
- }
17
- return wrapper;
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.main.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,7 @@ 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
- , EmptyBox]
383
+ , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),emptyBox]
383
384
  break;
384
385
 
385
386
  case "TabSection":