impaktapps-ui-builder 1.0.286 → 1.0.288
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 +221 -32
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +69 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +43 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -4
- package/src/impaktapps-ui-builder/builder/services/component.ts +102 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildPdfViewer: (config: any, componentScope: string) => any;
|
|
@@ -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,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;
|
|
@@ -11,10 +11,12 @@ 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;
|
package/package.json
CHANGED
|
@@ -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.xAxisTickCount){
|
|
38
|
-
AreaGraph.config.main.xAxisTickCount = config.xAxisTickCount
|
|
39
|
-
}
|
|
40
37
|
if(config.yAxisTickCount){
|
|
41
38
|
AreaGraph.config.main.yAxisTickCount = config.yAxisTickCount
|
|
42
39
|
}
|
|
@@ -15,19 +15,23 @@ export const buildArray = (config: any, componentScope: string) => {
|
|
|
15
15
|
if (config.allExpanded) {
|
|
16
16
|
array.config.main.allExpanded = config.allExpanded === "YES" ? true : false
|
|
17
17
|
}
|
|
18
|
-
if(config.disableAddButton
|
|
19
|
-
array.config.main.disableAddButton
|
|
18
|
+
if (config.disableAddButton) {
|
|
19
|
+
array.config.main.disableAddButton = config.disableAddButton === "YES" ? true : false
|
|
20
20
|
}
|
|
21
|
-
if(config.disableExpandAllButton
|
|
22
|
-
array.config.main.disableExpandAllButton
|
|
21
|
+
if (config.disableExpandAllButton) {
|
|
22
|
+
array.config.main.disableExpandAllButton = config.disableExpandAllButton === "YES" ? true : false
|
|
23
23
|
}
|
|
24
|
-
if(config.disableRowActions
|
|
25
|
-
array.config.main.disableRowActions
|
|
24
|
+
if (config.disableRowActions) {
|
|
25
|
+
array.config.main.disableRowActions = config.disableRowActions === "YES" ? true : false
|
|
26
26
|
}
|
|
27
27
|
if (config.style) {
|
|
28
28
|
array.config.style = JSON.parse(config.style)
|
|
29
29
|
}
|
|
30
|
+
array.config.main.rowSpacing = Number(config.rowSpacing);
|
|
31
|
+
array.config.main.columnSpacing = Number(config.columnSpacing);
|
|
32
|
+
array.config.main.spacing = Number(config.spacing);
|
|
30
33
|
array.config.main.childElementLabel = config.childElementLabel;
|
|
34
|
+
array.config.main.showKeyAsLabel = config.showKeyAsLabel;
|
|
31
35
|
array.config.main.label = config.label;
|
|
32
36
|
array.scope = componentScope;
|
|
33
37
|
return array;
|
|
@@ -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)
|
|
@@ -14,6 +14,7 @@ const FileInput = {
|
|
|
14
14
|
onUpload: "onFileUpload",
|
|
15
15
|
onDownload: "onFileDownload",
|
|
16
16
|
label: "Aggrement Copy",
|
|
17
|
+
"onClick": "onClick"
|
|
17
18
|
// iconStyleDefault:true,
|
|
18
19
|
},
|
|
19
20
|
style: {
|
|
@@ -35,6 +36,7 @@ export const buildFileInput = (config, componentScope) => {
|
|
|
35
36
|
box.config.main.disableUpload = config.disableUpload === "YES" ? true : false;
|
|
36
37
|
box.config.main.disableDownload = config.disableDownload === "YES" ? true : false;
|
|
37
38
|
box.config.main.disableDelete = config.disableDelete === "YES" ? true : false;
|
|
39
|
+
box.config.main.useLabel = config.useLabel === "YES" ? true : false;
|
|
38
40
|
box.config.main.description = config.description;
|
|
39
41
|
box.config.main.toolTip = config.toolTip;
|
|
40
42
|
box.config.main.chooseButtonLabel = config.chooseButtonLabel;
|
|
@@ -42,5 +44,6 @@ export const buildFileInput = (config, componentScope) => {
|
|
|
42
44
|
if (config.toolTipPosition) {
|
|
43
45
|
box.config.main.toolTipPosition = config.toolTipPosition;
|
|
44
46
|
}
|
|
47
|
+
box.config.main.externalUpload = config.externalUpload === "YES" ? true : false;
|
|
45
48
|
return box;
|
|
46
49
|
}
|
|
@@ -9,9 +9,10 @@ const imageUiSchema = {
|
|
|
9
9
|
widget: "Image",
|
|
10
10
|
},
|
|
11
11
|
config: {
|
|
12
|
-
|
|
12
|
+
layout: 3,
|
|
13
13
|
main: {
|
|
14
14
|
url: "",
|
|
15
|
+
onClick: "onClick",
|
|
15
16
|
},
|
|
16
17
|
style: {
|
|
17
18
|
},
|
|
@@ -27,9 +28,11 @@ export const buildImage = (config, componentScope) => {
|
|
|
27
28
|
}
|
|
28
29
|
if (config.style) {
|
|
29
30
|
image.config.style = JSON.parse(config.style);
|
|
30
|
-
}
|
|
31
|
+
}
|
|
31
32
|
if (config.height) {
|
|
32
|
-
image.config.style.imageStyle = {...image.config.style.imageStyle, height: config.height}
|
|
33
|
+
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config.height }
|
|
33
34
|
}
|
|
35
|
+
image.config.main.toolTip = config.toolTip;
|
|
36
|
+
image.config.main.toolTipPosition = config.toolTipPosition;
|
|
34
37
|
return image;
|
|
35
38
|
};
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.xAxisValue) {
|
|
38
|
+
StackBarLineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
39
|
+
}
|
|
40
|
+
if(config.xAxisType) {
|
|
41
|
+
StackBarLineGraph.config.main.xAxisType = config.xAxisType;
|
|
42
|
+
}
|
|
43
|
+
if (config.bottomLabel) {
|
|
44
|
+
StackBarLineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
45
|
+
}
|
|
46
|
+
if (config.leftLabel) {
|
|
47
|
+
StackBarLineGraph.config.main.leftLabel = config.leftLabel;
|
|
48
|
+
}
|
|
49
|
+
if (config.rightLabel) {
|
|
50
|
+
StackBarLineGraph.config.main.rightLabel = config.rightLabel;
|
|
51
|
+
}
|
|
52
|
+
if (config.disableLeftLabel) {
|
|
53
|
+
StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
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
|
+
}
|
|
61
|
+
if (config.leftMargin) {
|
|
62
|
+
StackBarLineGraph.config.style.labelStyle.margin ={
|
|
63
|
+
left: config.leftMargin
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return StackBarLineGraph
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default buildStackBarLineGraph;
|
|
@@ -42,10 +42,12 @@ 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";
|
|
49
51
|
import { buildHierarchyChart } from "./buildHierarchyChart";
|
|
50
52
|
export let schema = {
|
|
51
53
|
type: "object",
|
|
@@ -243,6 +245,9 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
243
245
|
case "AreaGraph":
|
|
244
246
|
elements = buildAreaGraph(config, componentScope);
|
|
245
247
|
break;
|
|
248
|
+
case "StackBarLineGraph":
|
|
249
|
+
elements = buildStackBarLineGraph(config, componentScope);
|
|
250
|
+
break;
|
|
246
251
|
default:
|
|
247
252
|
elements = buildStackbarGraph(config, componentScope);
|
|
248
253
|
break;
|
|
@@ -291,6 +296,10 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
291
296
|
case "Camera":
|
|
292
297
|
elements = buildCamera(config, componentScope)
|
|
293
298
|
break;
|
|
299
|
+
case "PdfViewer":
|
|
300
|
+
elements = buildPdfViewer(config, componentScope);
|
|
301
|
+
break;
|
|
302
|
+
break;
|
|
294
303
|
default:
|
|
295
304
|
schema = {
|
|
296
305
|
type: "object",
|
|
@@ -8,9 +8,13 @@ export const buildWrapperSection = (config, componentScope) => {
|
|
|
8
8
|
wrapper.config.main.label = config.label;
|
|
9
9
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
10
|
wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
|
|
11
|
-
wrapper.config.main.defaultClosed = config.defaultClosed === "YES"?true:false;
|
|
12
|
-
|
|
13
|
-
wrapper.config.
|
|
11
|
+
wrapper.config.main.defaultClosed = config.defaultClosed === "YES" ? true : false;
|
|
12
|
+
wrapper.config.main.icon = config.iconUrl;
|
|
13
|
+
wrapper.config.main.rowSpacing = Number(config.rowSpacing);
|
|
14
|
+
wrapper.config.main.columnSpacing = Number(config.columnSpacing);
|
|
15
|
+
wrapper.config.main.spacing = Number(config.spacing);
|
|
16
|
+
if (config.defaultStyle) {
|
|
17
|
+
wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
|
|
14
18
|
}
|
|
15
19
|
if (config.style) {
|
|
16
20
|
wrapper.config.style = JSON.parse(config.style)
|
|
@@ -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",
|
|
@@ -331,6 +333,10 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
331
333
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
332
334
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
333
335
|
getInputField("childElementLabel", "Child Element Label"),
|
|
336
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
337
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
338
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
339
|
+
getInputField("spacing", "Spacing"),
|
|
334
340
|
emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
|
|
335
341
|
|
|
336
342
|
]
|
|
@@ -415,7 +421,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
415
421
|
]),
|
|
416
422
|
getInputField("width", "Width"),
|
|
417
423
|
getInputField("gap", "Gap"),
|
|
418
|
-
emptyBox("PopUpEmpty",
|
|
424
|
+
emptyBox("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
419
425
|
]
|
|
420
426
|
break;
|
|
421
427
|
case "Text":
|
|
@@ -571,16 +577,18 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
571
577
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
572
578
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
573
579
|
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
|
|
574
|
-
{ label: "Area Graph", value: "AreaGraph" }
|
|
580
|
+
{ label: "Area Graph", value: "AreaGraph" },
|
|
581
|
+
{ label: "StackBar And Line Graph", value: "StackBarLineGraph" }
|
|
575
582
|
]),
|
|
576
583
|
getInputField("leftLabel", "Left Label"),
|
|
584
|
+
getInputField("rightLabel", "Right Label"),
|
|
577
585
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
578
586
|
getInputField("bottomLabel", "Bottom Label"),
|
|
579
587
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
580
588
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
581
589
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
582
|
-
getInputField("yAxisValue", "Y-
|
|
583
|
-
getInputField("xAxisValue", "X-
|
|
590
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
591
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
584
592
|
getSelectField("xAxisType", "X-AxisType", [
|
|
585
593
|
{ label: "Date", value: "date" },
|
|
586
594
|
{ label: "String", value: "string" },
|
|
@@ -588,24 +596,29 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
588
596
|
]),
|
|
589
597
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
590
598
|
getInputField("leftMargin", "Left Margin"),
|
|
591
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
592
599
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
593
600
|
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
594
601
|
{ label: "Date and Month", value: "Date and Month" },
|
|
595
602
|
{ label: "Month and Year", value: "Month and Year" }
|
|
596
603
|
]),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
604
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
605
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
606
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
607
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
608
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
|
|
600
609
|
];
|
|
601
610
|
break;
|
|
602
611
|
case "WrapperSection":
|
|
603
612
|
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
604
613
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
605
614
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
606
|
-
|
|
615
|
+
|
|
607
616
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
608
|
-
|
|
617
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
618
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
619
|
+
getInputField("spacing", "Spacing"),
|
|
620
|
+
getInputField("iconUrl", "Icon Url"),
|
|
621
|
+
emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
|
|
609
622
|
]
|
|
610
623
|
break;
|
|
611
624
|
|
|
@@ -712,6 +725,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
712
725
|
])
|
|
713
726
|
]
|
|
714
727
|
break;
|
|
728
|
+
case "PdfViewer":
|
|
729
|
+
uiSchema.elements = [
|
|
730
|
+
getInputField("scale", "Zoom"),
|
|
731
|
+
emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
732
|
+
]
|
|
733
|
+
break;
|
|
715
734
|
case "Date":
|
|
716
735
|
uiSchema.elements = [
|
|
717
736
|
getSelectField("variant", "Variant", [
|
|
@@ -726,7 +745,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
726
745
|
{ label: "Right", value: "right" },
|
|
727
746
|
{ label: "Bottom", value: "bottom" }
|
|
728
747
|
]),
|
|
729
|
-
emptyBox("
|
|
748
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
730
749
|
]
|
|
731
750
|
break;
|
|
732
751
|
case "DateTime":
|
|
@@ -743,7 +762,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
743
762
|
{ label: "Right", value: "right" },
|
|
744
763
|
{ label: "Bottom", value: "bottom" }
|
|
745
764
|
]),
|
|
746
|
-
emptyBox("
|
|
765
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
747
766
|
]
|
|
748
767
|
break;
|
|
749
768
|
case "Thought":
|
|
@@ -755,6 +774,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
755
774
|
uiSchema.elements = [
|
|
756
775
|
getInputField("imageUrl", "Image URL"),
|
|
757
776
|
getInputField("height", "Image Height"),
|
|
777
|
+
getInputField("toolTip", "Tooltip"),
|
|
778
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
779
|
+
{ label: "Top", value: "top" },
|
|
780
|
+
{ label: "Left", value: "left" },
|
|
781
|
+
{ label: "Right", value: "right" },
|
|
782
|
+
{ label: "Bottom", value: "bottom" }
|
|
783
|
+
]),
|
|
758
784
|
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
759
785
|
]
|
|
760
786
|
break;
|
|
@@ -774,7 +800,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
774
800
|
]),
|
|
775
801
|
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
776
802
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
777
|
-
|
|
803
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
804
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
805
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
778
806
|
]
|
|
779
807
|
break;
|
|
780
808
|
case "Camera":
|
|
@@ -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
|
+
|
|
@@ -50,6 +50,7 @@ export const ComponentSchema: any = {
|
|
|
50
50
|
{ title: "Upload", const: "UploadFile" },
|
|
51
51
|
{ title: "Tree ", const: "TreeMap" },
|
|
52
52
|
{ title: "Thought of the day", const: "Thought" },
|
|
53
|
+
{ title: "PDF", const: "PdfViewer"}
|
|
53
54
|
],
|
|
54
55
|
},
|
|
55
56
|
elementType: {
|
|
@@ -448,6 +449,7 @@ export const ComponentSchema: any = {
|
|
|
448
449
|
const: "HorizontalStackBarGraph",
|
|
449
450
|
},
|
|
450
451
|
{ title: "Area Graph", const: "AreaGraph" },
|
|
452
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" },
|
|
451
453
|
],
|
|
452
454
|
},
|
|
453
455
|
iconName: {
|
|
@@ -49,6 +49,23 @@ export const PageMasterUiSchema: any = (theme) => {
|
|
|
49
49
|
required: true,
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "Control",
|
|
55
|
+
scope: "#/properties/pageIconUrl",
|
|
56
|
+
|
|
57
|
+
options: {
|
|
58
|
+
widget: "InputField",
|
|
59
|
+
},
|
|
60
|
+
config: {
|
|
61
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
62
|
+
main: {
|
|
63
|
+
label: "Page Icon URL",
|
|
64
|
+
options: [],
|
|
65
|
+
color: "secondary",
|
|
66
|
+
required: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
52
69
|
},
|
|
53
70
|
{
|
|
54
71
|
type: "Control",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { title } from "process";
|
|
2
|
-
|
|
3
1
|
export const EventSchema = {
|
|
4
2
|
type: "object",
|
|
5
3
|
properties: {
|
|
@@ -55,9 +53,9 @@ export const EventSchema = {
|
|
|
55
53
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
56
54
|
{ title: "Download", const: "onDownload" },
|
|
57
55
|
{ title: "Fail", const: "Fail" },
|
|
56
|
+
{ title: "onClose", const: "onClose" },
|
|
58
57
|
{ title: "Key Down", const: "onKeyDown" },
|
|
59
|
-
{ title: "
|
|
60
|
-
|
|
58
|
+
{ title: "Set Style", const: "setStyle" },
|
|
61
59
|
|
|
62
60
|
]
|
|
63
61
|
},
|