impaktapps-ui-builder 1.0.320 → 1.0.330

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.
Files changed (35) hide show
  1. package/dist/impaktapps-ui-builder.es.js +330 -43
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +8 -8
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  12. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +3 -3
  15. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
  16. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
  17. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +3 -0
  18. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  19. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  20. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  21. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  22. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -3
  23. package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
  24. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +17 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -0
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +46 -15
  27. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  28. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
  29. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  30. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  31. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  32. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +20 -5
  33. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
  34. package/src/impaktapps-ui-builder/builder/services/component.ts +40 -8
  35. package/src/impaktapps-ui-builder/runtime/services/service.ts +32 -3
@@ -0,0 +1 @@
1
+ export declare const buildHierarchyChart: (config: any, componentScope: any, store: any) => any;
@@ -0,0 +1 @@
1
+ export declare const buildPdfViewer: (config: any, componentScope: string) => any;
@@ -0,0 +1,2 @@
1
+ declare const buildStackBarLineGraph: (config: any, componentScope: string) => any;
2
+ export default buildStackBarLineGraph;
@@ -123,3 +123,28 @@ export declare const AreaBarGraph: {
123
123
  };
124
124
  };
125
125
  };
126
+ export declare const StackBarLineG: {
127
+ type: string;
128
+ scope: string;
129
+ options: {
130
+ widget: string;
131
+ };
132
+ config: {
133
+ layout: {
134
+ xs: number;
135
+ sm: number;
136
+ md: number;
137
+ lg: number;
138
+ };
139
+ main: {
140
+ type: string;
141
+ legendLabels: any;
142
+ };
143
+ style: {
144
+ containerStyle: {};
145
+ labelStyle: {
146
+ margin: {};
147
+ };
148
+ };
149
+ };
150
+ };
@@ -0,0 +1,22 @@
1
+ export declare const HierarchyChart: {
2
+ type: string;
3
+ scope: string;
4
+ options: {
5
+ widget: string;
6
+ };
7
+ config: {
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
13
+ };
14
+ main: {};
15
+ style: {
16
+ containerStyle: {};
17
+ labelStyle: {
18
+ margin: {};
19
+ };
20
+ };
21
+ };
22
+ };
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ type: string;
3
+ scope: string;
4
+ options: {
5
+ widget: string;
6
+ };
7
+ config: {
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
13
+ };
14
+ main: {
15
+ title: string;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
@@ -1,4 +1,4 @@
1
- export declare const TableSection: (theme: any) => {
1
+ export declare const TableSection: (theme: any, scopeName?: string) => {
2
2
  type: string;
3
3
  elements: {
4
4
  type: string;
@@ -11,16 +11,19 @@ interface funcParamsProps {
11
11
  export declare const extractEvents: (eventConfig: any) => any;
12
12
  declare const _default: (funcParams: funcParamsProps) => {
13
13
  setPage: () => Promise<void>;
14
+ getStyle: () => {};
14
15
  onCellRenderer: (cellParams: any) => {};
15
16
  onClick: () => void;
16
17
  onKeyDown: () => void;
17
18
  onFileDelete: () => Promise<void>;
19
+ onClose: () => void;
18
20
  onMount: () => void;
19
21
  onFileDownload: () => void;
20
22
  onFileUpload: () => void;
21
23
  backHandler: () => void;
22
24
  onRowMovement: (paginationValues: any) => Promise<any>;
23
25
  onPaginationChange: (paginationValues: any) => Promise<any>;
26
+ onNodeExpandChange: (param: any) => Promise<any>;
24
27
  getSelectOptions: (param: any) => Promise<any>;
25
28
  onChange: () => void;
26
29
  callExecuteEvents: (paramValue: any, apiBody: any, eventType: string) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.320",
3
+ "version": "1.0.330",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -34,12 +34,12 @@ const buildAreaGraph = (config:any,componentScope:string) => {
34
34
  if(config.xAxisFormatType){
35
35
  AreaGraph.config.main.xAxisFormatType = config.xAxisFormatType
36
36
  }
37
- if(config.xAxisTickCount){
38
- AreaGraph.config.main.xAxisTickCount = config.xAxisTickCount
39
- }
40
37
  if(config.yAxisTickCount){
41
38
  AreaGraph.config.main.yAxisTickCount = config.yAxisTickCount
42
39
  }
40
+ if(config.xAxisTickCount){
41
+ AreaGraph.config.main.xAxisTickCount = config.xAxisTickCount
42
+ }
43
43
  if (config.xAxisValue) {
44
44
  AreaGraph.config.main.xAxisValue = config.xAxisValue;
45
45
  }
@@ -22,27 +22,31 @@ export default (FormData: any) => {
22
22
  if (formData.events) {
23
23
  delete formData.events
24
24
  }
25
+ if (formData.tabLabelElements) {
26
+ component.tabLabelElements = formData.tabLabelElements || [];
27
+ delete formData.tabLabelElements
28
+ }
25
29
  component = { ...formData, ...component };
26
30
  return component;
27
31
  };
28
32
 
29
33
  export const createLayoutFormat = (layout: any[], type?: string) => {
30
34
  if (_.isEmpty(layout)) {
31
- const fullLayoutComponents: string[] = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout","Table"]
32
- if(fullLayoutComponents.includes(type)){
35
+ const fullLayoutComponents: string[] = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"]
36
+ if (fullLayoutComponents.includes(type)) {
33
37
  return { xs: 12, sm: 12, md: 12, lg: 12 }
34
38
  }
35
- else if(type === "Graph"){
36
- return {xs :12,sm:12,md:12,lg:6}
39
+ else if (type === "Graph") {
40
+ return { xs: 12, sm: 12, md: 12, lg: 6 }
37
41
  }
38
- else if(type === "Button"){
42
+ else if (type === "Button") {
39
43
  return { xs: 4, sm: 2.5, md: 2, lg: 1.5 }
40
44
  }
41
- else{
45
+ else {
42
46
  return { xs: 6, sm: 6, md: 4, lg: 3 }
43
47
  }
44
48
  }
45
- let data: any = { };
49
+ let data: any = {};
46
50
 
47
51
  layout.map((e: any) => {
48
52
  data[e.key || "xs"] =
@@ -5,7 +5,6 @@ import { createLayoutFormat } from "./buildConfig";
5
5
  export const buildDate = (config: any, componentScope: string) => {
6
6
  const dateInputField: any = _.cloneDeep(DateInputField);
7
7
  dateInputField.config.main.label = config.label;
8
- dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
9
8
  dateInputField.scope = componentScope;
10
9
  if (config.layout) {
11
10
  dateInputField.config.layout = createLayoutFormat(config.layout)
@@ -27,7 +26,6 @@ export const buildDate = (config: any, componentScope: string) => {
27
26
  export const buildDateTime = (config: any, componentScope: string) => {
28
27
  const dateTimeInputField: any = _.cloneDeep(DateTime);
29
28
  dateTimeInputField.config.main.label = config.label;
30
- dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
31
29
  dateTimeInputField.scope = componentScope;
32
30
  if (config.layout) {
33
31
  dateTimeInputField.config.layout = createLayoutFormat(config.layout)
@@ -8,5 +8,8 @@ export const buildEmptyBox = (config,componentScope) =>{
8
8
  if (config.layout) {
9
9
  EmptyBox.config.layout = createLayoutFormat(config.layout);
10
10
  }
11
+ if (config.style) {
12
+ EmptyBox.config.style = JSON.parse(config.style)
13
+ }
11
14
  return EmptyBox;
12
15
  }
@@ -0,0 +1,35 @@
1
+ import { HierarchyChart } from "./uischema/hierarchyChart";
2
+ import _ from "lodash";
3
+ import { createLayoutFormat } from "./buildConfig";
4
+
5
+ export const buildHierarchyChart = (config, componentScope, store) => {
6
+ const hierarchyChart: any = _.cloneDeep(HierarchyChart);
7
+
8
+ hierarchyChart.scope = componentScope;
9
+ if (config.style) {
10
+ hierarchyChart.config.style = JSON.parse(config.style)
11
+ }
12
+ if (config.layout) {
13
+ hierarchyChart.config.layout = createLayoutFormat(config.layout)
14
+ }
15
+ if (config.linkType) {
16
+ hierarchyChart.config.main.linkType = config.linkType;
17
+ }
18
+ if (config.stepPercent) {
19
+ hierarchyChart.config.main.stepPercent = config.stepPercent;
20
+ }
21
+ if (config.nodeWidth) {
22
+ hierarchyChart.config.main.nodeWidth = config.nodeWidth;
23
+ }
24
+ if (config.nodeHeight) {
25
+ hierarchyChart.config.main.nodeHeight = config.nodeHeight;
26
+ }
27
+ if (config.chartHeight) {
28
+ hierarchyChart.config.main.chartHeight = config.chartHeight;
29
+ }
30
+ if (config.lazyLoading) {
31
+ hierarchyChart.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
32
+ }
33
+ return hierarchyChart;
34
+ }
35
+
@@ -0,0 +1,16 @@
1
+ import pdfViewer from "./uischema/pdfViewer";
2
+ import _ from "lodash";
3
+ import { createLayoutFormat } from "./buildConfig";
4
+
5
+ export const buildPdfViewer = (config, componentScope: string) => {
6
+ const PdfViewer: any = _.cloneDeep(pdfViewer)
7
+ PdfViewer.scope = componentScope;
8
+ PdfViewer.config.main.scale = config.scale;
9
+ if (config.layout) {
10
+ PdfViewer.config.layout = createLayoutFormat(config.layout);
11
+ }
12
+ if (config.style) {
13
+ PdfViewer.config.style = JSON.parse(config.style)
14
+ }
15
+ return PdfViewer
16
+ }
@@ -17,6 +17,7 @@ const PopUP = {
17
17
  },
18
18
  main: {
19
19
  label: "PopUp",
20
+ onClose:"onClose",
20
21
  fullScreen:false,
21
22
  fullWidth:false,
22
23
  maxWidth:false,
@@ -0,0 +1,72 @@
1
+ import { createLayoutFormat, createKeyValueMap } from "./buildConfig";
2
+ import { StackBarLineG } from "./uischema/graph";
3
+ import _ from "lodash";
4
+
5
+
6
+ const buildStackBarLineGraph = (config:any,componentScope:string) => {
7
+ const StackBarLineGraph: any = _.cloneDeep(StackBarLineG);
8
+ StackBarLineGraph.scope = componentScope;
9
+ if (config.layout) {
10
+ StackBarLineGraph.config.layout = createLayoutFormat(config.layout, config.type);
11
+ }
12
+ StackBarLineGraph.config.main.type = config.graphType;
13
+ StackBarLineGraph.scope = componentScope;
14
+ StackBarLineGraph.config.main.header = config.heading;
15
+ StackBarLineGraph.config.main.subHeader = config.subHeader;
16
+ if (config.legendHide) {
17
+ StackBarLineGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
18
+ }
19
+ if (config.bottomAxisAngle) {
20
+ StackBarLineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
21
+ }
22
+ if (config.legendLabels) {
23
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config.legendLabels);
24
+ }
25
+ if(config.legendDirection){
26
+ StackBarLineGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
27
+ }
28
+ if (config.height) {
29
+ StackBarLineGraph.config.style.containerStyle.height = config.height;
30
+ }
31
+ if (config.pieArcColors) {
32
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
33
+ }
34
+ if(config.yAxisTickCount){
35
+ StackBarLineGraph.config.main.yAxisTickCount = config.yAxisTickCount
36
+ }
37
+ if(config.xAxisTickCount){
38
+ StackBarLineGraph.config.main.xAxisTickCount = config.xAxisTickCount
39
+ }
40
+ if (config.xAxisValue) {
41
+ StackBarLineGraph.config.main.xAxisValue = config.xAxisValue;
42
+ }
43
+ if(config.xAxisType) {
44
+ StackBarLineGraph.config.main.xAxisType = config.xAxisType;
45
+ }
46
+ if (config.bottomLabel) {
47
+ StackBarLineGraph.config.main.bottomLabel = config.bottomLabel;
48
+ }
49
+ if (config.leftLabel) {
50
+ StackBarLineGraph.config.main.leftLabel = config.leftLabel;
51
+ }
52
+ if (config.rightLabel) {
53
+ StackBarLineGraph.config.main.rightLabel = config.rightLabel;
54
+ }
55
+ if (config.disableLeftLabel) {
56
+ StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
57
+ }
58
+ if (config.growthRateKey) {
59
+ StackBarLineGraph.config.main.growthRateKey = config.growthRateKey;
60
+ }
61
+ if (config.tooltipUnit) {
62
+ StackBarLineGraph.config.main.tooltipUnit = config.tooltipUnit;
63
+ }
64
+ if (config.leftMargin) {
65
+ StackBarLineGraph.config.style.labelStyle.margin ={
66
+ left: config.leftMargin
67
+ }
68
+ }
69
+ return StackBarLineGraph
70
+ }
71
+
72
+ export default buildStackBarLineGraph;
@@ -30,9 +30,6 @@ export const buildTable = (config: any, componentScope: string) => {
30
30
  if (config.paginateExpandedRows) {
31
31
  table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
32
32
  }
33
- if (config.treeStructure) {
34
- table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
35
- }
36
33
  if (config.SelectionAvailable) {
37
34
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
38
35
  };
@@ -75,6 +72,12 @@ export const buildTable = (config: any, componentScope: string) => {
75
72
  if (config.selectKey) {
76
73
  table.config.main.selectKey = config.selectKey
77
74
  }
75
+ if (config.rowIdKey) {
76
+ table.config.main.rowIdKey = config.rowIdKey
77
+ }
78
+ if (config.parentIdKey) {
79
+ table.config.main.parentIdKey = config.parentIdKey
80
+ }
78
81
  if (config.maxPageSize) {
79
82
  table.config.main.maxPageSize = config.maxPageSize
80
83
  }
@@ -32,6 +32,9 @@ export const buildTextField = (config: any, componentScope: string) => {
32
32
  if (config.toolTipPosition) {
33
33
  inputField.config.main.toolTipPosition = config.toolTipPosition;
34
34
  }
35
+ if(config.iconName){
36
+ inputField.config.main.startIcon = config.iconName;
37
+ }
35
38
  inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
36
39
  inputField.scope = componentScope;
37
40
  return inputField;
@@ -42,10 +42,13 @@ import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
42
42
  import { buildHorizontalLayout } from "./buildHorizontalLayout";
43
43
  import { buildImage } from "./buildImage";
44
44
  import buildAreaGraph from "./buildAreaGraph";
45
+ import buildStackBarLineGraph from "./buildStackBarLineGraph";
45
46
  import { buildCamera } from "./buildCamera";
46
47
  import { buildButtonGroup } from "./buildGroupButton";
47
48
  import { buildPopOver } from "./buildPopover";
48
49
  import { buildOTP_Input } from "./buildOTP_inputs";
50
+ import { buildPdfViewer } from "./buildPdfViewer";
51
+ import { buildHierarchyChart } from "./buildHierarchyChart";
49
52
  export let schema = {
50
53
  type: "object",
51
54
  properties: {},
@@ -220,6 +223,9 @@ const buildUiSchema = (config: any, store?: any) => {
220
223
  case "MetricCard":
221
224
  elements = buildMetricCard(config, componentScope, store);
222
225
  break;
226
+ case "HierarchyChart":
227
+ elements = buildHierarchyChart(config, componentScope, store);
228
+ break;
223
229
  case "Graph":
224
230
  switch (config.graphType) {
225
231
  case "BarGraph":
@@ -239,6 +245,9 @@ const buildUiSchema = (config: any, store?: any) => {
239
245
  case "AreaGraph":
240
246
  elements = buildAreaGraph(config, componentScope);
241
247
  break;
248
+ case "StackBarLineGraph":
249
+ elements = buildStackBarLineGraph(config, componentScope);
250
+ break;
242
251
  default:
243
252
  elements = buildStackbarGraph(config, componentScope);
244
253
  break;
@@ -287,6 +296,9 @@ const buildUiSchema = (config: any, store?: any) => {
287
296
  case "Camera":
288
297
  elements = buildCamera(config, componentScope)
289
298
  break;
299
+ case "PdfViewer":
300
+ elements = buildPdfViewer(config, componentScope);
301
+ break;
290
302
  default:
291
303
  schema = {
292
304
  type: "object",
@@ -395,6 +407,11 @@ const buildUiSchema = (config: any, store?: any) => {
395
407
  });
396
408
  }
397
409
  }
410
+ if (config.tabLabelElements) {
411
+ elements.tabLabelElements = config.tabLabelElements.map((e: any, elemInd: number) => {
412
+ return buildUiSchema(e, store)
413
+ });
414
+ }
398
415
  return elements;
399
416
  }
400
417
 
@@ -9,9 +9,11 @@ export const buildWrapperSection = (config, componentScope) => {
9
9
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
10
10
  wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
11
11
  wrapper.config.main.defaultClosed = config.defaultClosed === "YES" ? true : false;
12
+ wrapper.config.main.icon = config.iconUrl;
12
13
  wrapper.config.main.rowSpacing = Number(config.rowSpacing);
13
14
  wrapper.config.main.columnSpacing = Number(config.columnSpacing);
14
15
  wrapper.config.main.spacing = Number(config.spacing);
16
+ wrapper.config.main.wrapperId = config.wrapperId;
15
17
  if (config.defaultStyle) {
16
18
  wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
17
19
  }
@@ -127,7 +127,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
127
127
  ],
128
128
  }
129
129
  };
130
- const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string) => {
130
+ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string, arrayLabel?: string) => {
131
131
  return {
132
132
  type: "Control",
133
133
  scope: `#/properties/${parentScope}`,
@@ -136,7 +136,9 @@ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string,
136
136
  },
137
137
  config: {
138
138
  layout: 12,
139
- main: {},
139
+ main: {
140
+ label: arrayLabel,
141
+ },
140
142
  style: {
141
143
  marginLeft: "-24px",
142
144
  marginBottom: "24px !important",
@@ -438,7 +440,8 @@ export const buildPropertiesSection = function (type: String) {
438
440
  { label: "Right", value: "right" },
439
441
  { label: "Bottom", value: "bottom" }
440
442
  ]),
441
- emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
443
+ getSelectField("iconName", "Start Icon", []),
444
+ emptyBox("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
442
445
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
443
446
  getInputField("keyName", "Event Key Name"),
444
447
  ]
@@ -506,6 +509,21 @@ export const buildPropertiesSection = function (type: String) {
506
509
  emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
507
510
  ];
508
511
  break;
512
+ case "HierarchyChart":
513
+ uiSchema.elements = [
514
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
515
+ getSelectField("linkType", "Link Type", [
516
+ { label: "Step", value: "step" },
517
+ { label: "Diagonal", value: "diagonal" },
518
+ { label: "Line", value: "line" },
519
+ ]),
520
+ getInputField("nodeWidth", "Node Width"),
521
+ getInputField("nodeHeight", "Node Height"),
522
+ getInputField("chartHeight", "Chart Height"),
523
+ getInputField("stepPercent", "Link Bend Position"),
524
+ emptyBox("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 }),
525
+ ];
526
+ break;
509
527
  case "MetricCard":
510
528
  uiSchema.elements = [
511
529
  getInputField("url", "Image Url"),
@@ -517,7 +535,7 @@ export const buildPropertiesSection = function (type: String) {
517
535
  { label: "Negative", value: "negative" }
518
536
  ]),
519
537
  getInputField("color", "Card Color"),
520
- emptyBox("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
538
+ emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
521
539
  ];
522
540
  break;
523
541
  case "Button":
@@ -559,16 +577,18 @@ export const buildPropertiesSection = function (type: String) {
559
577
  { label: "Pie Graph", value: "PieGraph" },
560
578
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
561
579
  { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
562
- { label: "Area Graph", value: "AreaGraph" }
580
+ { label: "Area Graph", value: "AreaGraph" },
581
+ { label: "StackBar And Line Graph", value: "StackBarLineGraph" }
563
582
  ]),
564
583
  getInputField("leftLabel", "Left Label"),
584
+ getInputField("rightLabel", "Right Label"),
565
585
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
566
586
  getInputField("bottomLabel", "Bottom Label"),
567
587
  emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
568
588
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
569
589
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
570
- getInputField("yAxisValue", "Y-AxisValue"),
571
- getInputField("xAxisValue", "X-AxisValue"),
590
+ getInputField("yAxisValue", "Y-Axis Key"),
591
+ getInputField("xAxisValue", "X-Axis Key"),
572
592
  getSelectField("xAxisType", "X-AxisType", [
573
593
  { label: "Date", value: "date" },
574
594
  { label: "String", value: "string" },
@@ -576,15 +596,16 @@ export const buildPropertiesSection = function (type: String) {
576
596
  ]),
577
597
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
578
598
  getInputField("leftMargin", "Left Margin"),
579
- getInputField("xAxisTickCount", "X Axis TickCount"),
580
599
  getInputField("yAxisTickCount", "Y Axis TickCount"),
600
+ getInputField("xAxisTickCount", "X Axis TickCount"),
581
601
  getSelectField("xAxisFormatType", "X Axis Format Type", [
582
602
  { label: "Date and Month", value: "Date and Month" },
583
603
  { label: "Month and Year", value: "Month and Year" }
584
604
  ]),
585
- emptyBox("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
586
- getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
587
- getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color"),
605
+ getInputField("growthRateKey", "Growth Rate Key"),
606
+ getInputField("tooltipUnit", "Tooltip Unit"),
607
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
608
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
588
609
  ];
589
610
  break;
590
611
  case "WrapperSection":
@@ -596,7 +617,9 @@ export const buildPropertiesSection = function (type: String) {
596
617
  getInputField("rowSpacing", "Row Spacing"),
597
618
  getInputField("columnSpacing", "Column Spacing"),
598
619
  getInputField("spacing", "Spacing"),
599
- emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 }),
620
+ getInputField("iconUrl", "Icon Url"),
621
+ getInputField("wrapperId", "Wrapper Id"),
622
+ emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }), emptyBox("WrapperSectionEmpty2")
600
623
  ]
601
624
  break;
602
625
 
@@ -639,12 +662,14 @@ export const buildPropertiesSection = function (type: String) {
639
662
  { label: "Comfortable", value: "comfortable" },
640
663
  { label: "Spacious", value: "spacious" }
641
664
  ]),
665
+ getInputField("rowIdKey", "Row ID Key"),
666
+ getInputField("parentIdKey", "Parent ID Key"),
667
+ emptyBox("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
642
668
  buildWrapper("Tree Table Properties", [
643
669
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
644
670
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
645
671
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
646
672
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
647
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
648
673
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
649
674
  getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
650
675
  ]),
@@ -703,6 +728,12 @@ export const buildPropertiesSection = function (type: String) {
703
728
  ])
704
729
  ]
705
730
  break;
731
+ case "PdfViewer":
732
+ uiSchema.elements = [
733
+ getInputField("scale", "Zoom"),
734
+ emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
735
+ ]
736
+ break;
706
737
  case "Date":
707
738
  uiSchema.elements = [
708
739
  getSelectField("variant", "Variant", [
@@ -717,7 +748,7 @@ export const buildPropertiesSection = function (type: String) {
717
748
  { label: "Right", value: "right" },
718
749
  { label: "Bottom", value: "bottom" }
719
750
  ]),
720
- emptyBox("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
751
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
721
752
  ]
722
753
  break;
723
754
  case "DateTime":
@@ -734,7 +765,7 @@ export const buildPropertiesSection = function (type: String) {
734
765
  { label: "Right", value: "right" },
735
766
  { label: "Bottom", value: "bottom" }
736
767
  ]),
737
- emptyBox("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
768
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
738
769
  ]
739
770
  break;
740
771
  case "Thought":
@@ -173,7 +173,6 @@ export const CoreSection = {
173
173
  layout: { xs: 6, sm: 6, md: 4, lg: 4 },
174
174
  main: {
175
175
  label: "Screen Size",
176
-
177
176
  },
178
177
  },
179
178
  },
@@ -78,3 +78,19 @@ export const AreaBarGraph = {
78
78
  },
79
79
  };
80
80
 
81
+ export const StackBarLineG = {
82
+ type: "Control",
83
+ scope: "#/properties/graph",
84
+ options: {
85
+ widget: "Graph",
86
+ },
87
+ config: {
88
+ layout: {xs :12,sm:12,md:12,lg:12},
89
+ main: {
90
+ type: "StackBarLineGraph",
91
+ legendLabels: null
92
+ },
93
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
94
+ },
95
+ };
96
+
@@ -0,0 +1,13 @@
1
+ export const HierarchyChart = {
2
+ type: "Control",
3
+ scope: "#/properties/HierarchyChart",
4
+ options: {
5
+ widget: "HierarchyChart",
6
+ },
7
+ config: {
8
+ layout: {xs :12,sm:12,md:12,lg:12},
9
+ main: {
10
+ },
11
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
12
+ },
13
+ };