impaktapps-ui-builder 1.0.410 → 1.0.412

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": "1.0.410",
3
+ "version": "1.0.412",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -34,9 +34,6 @@ const buildAreaGraph = (config:any,componentScope:string) => {
34
34
  if(config.xAxisFormatType){
35
35
  AreaGraph.config.main.xAxisFormatType = config.xAxisFormatType
36
36
  }
37
- if(config.xAxisLabelMinWidth){
38
- AreaGraph.config.main.xAxisLabelMinWidth = config.xAxisLabelMinWidth
39
- }
40
37
  if(config.yAxisTickCount){
41
38
  AreaGraph.config.main.yAxisTickCount = config.yAxisTickCount
42
39
  }
@@ -31,9 +31,6 @@ const buildStackBarLineGraph = (config:any,componentScope:string) => {
31
31
  if (config.pieArcColors) {
32
32
  StackBarLineGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
33
33
  }
34
- if(config.xAxisLabelMinWidth){
35
- StackBarLineGraph.config.main.xAxisLabelMinWidth = config.xAxisLabelMinWidth
36
- }
37
34
  if(config.yAxisTickCount){
38
35
  StackBarLineGraph.config.main.yAxisTickCount = config.yAxisTickCount
39
36
  }
@@ -55,6 +52,12 @@ const buildStackBarLineGraph = (config:any,componentScope:string) => {
55
52
  if (config.disableLeftLabel) {
56
53
  StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
57
54
  }
55
+ if (config.growthRateKey) {
56
+ StackBarLineGraph.config.main.growthRateKey = config.growthRateKey;
57
+ }
58
+ if (config.tooltipUnit) {
59
+ StackBarLineGraph.config.main.tooltipUnit = config.tooltipUnit;
60
+ }
58
61
  if (config.leftMargin) {
59
62
  StackBarLineGraph.config.style.labelStyle.margin ={
60
63
  left: config.leftMargin
@@ -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, arrayLabel?: string) => {
130
+ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string) => {
131
131
  return {
132
132
  type: "Control",
133
133
  scope: `#/properties/${parentScope}`,
@@ -136,9 +136,7 @@ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string,
136
136
  },
137
137
  config: {
138
138
  layout: 12,
139
- main: {
140
- label: arrayLabel,
141
- },
139
+ main: {},
142
140
  style: {
143
141
  marginLeft: "-24px",
144
142
  marginBottom: "24px !important",
@@ -571,8 +569,8 @@ export const buildPropertiesSection = function (type: String) {
571
569
  emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
572
570
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
573
571
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
574
- getInputField("yAxisValue", "Y-AxisKey"),
575
- getInputField("xAxisValue", "X-AxisKey"),
572
+ getInputField("yAxisValue", "Y-AxisValue"),
573
+ getInputField("xAxisValue", "X-AxisValue"),
576
574
  getSelectField("xAxisType", "X-AxisType", [
577
575
  { label: "Date", value: "date" },
578
576
  { label: "String", value: "string" },
@@ -580,15 +578,16 @@ export const buildPropertiesSection = function (type: String) {
580
578
  ]),
581
579
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
582
580
  getInputField("leftMargin", "Left Margin"),
583
- getInputField("xAxisLabelMinWidth", "X Axis Label Width"),
584
581
  getInputField("yAxisTickCount", "Y Axis TickCount"),
585
582
  getSelectField("xAxisFormatType", "X Axis Format Type", [
586
583
  { label: "Date and Month", value: "Date and Month" },
587
584
  { label: "Month and Year", value: "Month and Year" }
588
585
  ]),
589
- emptyBox("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
590
- getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
591
- getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
586
+ getInputField("growthRateKey", "Growth Rate Key (StackBarLineGraph)"),
587
+ getInputField("tooltipUnit", "Tooltip Unit"),
588
+ emptyBox("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
589
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
590
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color"),
592
591
  ];
593
592
  break;
594
593
  case "WrapperSection":