impaktapps-ui-builder 1.0.320 → 1.0.321
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 +235 -35
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- 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/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/tableSection.d.ts +1 -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 +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
- 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 +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +25 -13
- 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/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +12 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +39 -8
- package/src/impaktapps-ui-builder/runtime/services/service.ts +23 -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,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
|
|
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)
|
|
@@ -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,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;
|
|
@@ -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
|
export let schema = {
|
|
50
52
|
type: "object",
|
|
51
53
|
properties: {},
|
|
@@ -239,6 +241,9 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
239
241
|
case "AreaGraph":
|
|
240
242
|
elements = buildAreaGraph(config, componentScope);
|
|
241
243
|
break;
|
|
244
|
+
case "StackBarLineGraph":
|
|
245
|
+
elements = buildStackBarLineGraph(config, componentScope);
|
|
246
|
+
break;
|
|
242
247
|
default:
|
|
243
248
|
elements = buildStackbarGraph(config, componentScope);
|
|
244
249
|
break;
|
|
@@ -287,6 +292,9 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
287
292
|
case "Camera":
|
|
288
293
|
elements = buildCamera(config, componentScope)
|
|
289
294
|
break;
|
|
295
|
+
case "PdfViewer":
|
|
296
|
+
elements = buildPdfViewer(config, componentScope);
|
|
297
|
+
break;
|
|
290
298
|
default:
|
|
291
299
|
schema = {
|
|
292
300
|
type: "object",
|
|
@@ -395,6 +403,11 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
395
403
|
});
|
|
396
404
|
}
|
|
397
405
|
}
|
|
406
|
+
if (config.tabLabelElements) {
|
|
407
|
+
elements.tabLabelElements = config.tabLabelElements.map((e: any, elemInd: number) => {
|
|
408
|
+
return buildUiSchema(e, store)
|
|
409
|
+
});
|
|
410
|
+
}
|
|
398
411
|
return elements;
|
|
399
412
|
}
|
|
400
413
|
|
|
@@ -9,6 +9,7 @@ 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);
|
|
@@ -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",
|
|
@@ -517,7 +519,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
517
519
|
{ label: "Negative", value: "negative" }
|
|
518
520
|
]),
|
|
519
521
|
getInputField("color", "Card Color"),
|
|
520
|
-
emptyBox("MetricEmpty1", { xs: 6, sm:
|
|
522
|
+
emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
521
523
|
];
|
|
522
524
|
break;
|
|
523
525
|
case "Button":
|
|
@@ -559,16 +561,18 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
559
561
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
560
562
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
561
563
|
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
|
|
562
|
-
{ label: "Area Graph", value: "AreaGraph" }
|
|
564
|
+
{ label: "Area Graph", value: "AreaGraph" },
|
|
565
|
+
{ label: "StackBar And Line Graph", value: "StackBarLineGraph" }
|
|
563
566
|
]),
|
|
564
567
|
getInputField("leftLabel", "Left Label"),
|
|
568
|
+
getInputField("rightLabel", "Right Label"),
|
|
565
569
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
566
570
|
getInputField("bottomLabel", "Bottom Label"),
|
|
567
571
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
568
572
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
569
573
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
570
|
-
getInputField("yAxisValue", "Y-
|
|
571
|
-
getInputField("xAxisValue", "X-
|
|
574
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
575
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
572
576
|
getSelectField("xAxisType", "X-AxisType", [
|
|
573
577
|
{ label: "Date", value: "date" },
|
|
574
578
|
{ label: "String", value: "string" },
|
|
@@ -576,15 +580,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
576
580
|
]),
|
|
577
581
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
578
582
|
getInputField("leftMargin", "Left Margin"),
|
|
579
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
580
583
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
584
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
581
585
|
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
582
586
|
{ label: "Date and Month", value: "Date and Month" },
|
|
583
587
|
{ label: "Month and Year", value: "Month and Year" }
|
|
584
588
|
]),
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
getArrayControlMultiField("
|
|
589
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
590
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
591
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
592
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
|
|
588
593
|
];
|
|
589
594
|
break;
|
|
590
595
|
case "WrapperSection":
|
|
@@ -596,7 +601,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
596
601
|
getInputField("rowSpacing", "Row Spacing"),
|
|
597
602
|
getInputField("columnSpacing", "Column Spacing"),
|
|
598
603
|
getInputField("spacing", "Spacing"),
|
|
599
|
-
|
|
604
|
+
getInputField("iconUrl", "Icon Url"),
|
|
605
|
+
emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
|
|
600
606
|
]
|
|
601
607
|
break;
|
|
602
608
|
|
|
@@ -703,6 +709,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
703
709
|
])
|
|
704
710
|
]
|
|
705
711
|
break;
|
|
712
|
+
case "PdfViewer":
|
|
713
|
+
uiSchema.elements = [
|
|
714
|
+
getInputField("scale", "Zoom"),
|
|
715
|
+
emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
716
|
+
]
|
|
717
|
+
break;
|
|
706
718
|
case "Date":
|
|
707
719
|
uiSchema.elements = [
|
|
708
720
|
getSelectField("variant", "Variant", [
|
|
@@ -717,7 +729,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
717
729
|
{ label: "Right", value: "right" },
|
|
718
730
|
{ label: "Bottom", value: "bottom" }
|
|
719
731
|
]),
|
|
720
|
-
emptyBox("
|
|
732
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
721
733
|
]
|
|
722
734
|
break;
|
|
723
735
|
case "DateTime":
|
|
@@ -734,7 +746,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
734
746
|
{ label: "Right", value: "right" },
|
|
735
747
|
{ label: "Bottom", value: "bottom" }
|
|
736
748
|
]),
|
|
737
|
-
emptyBox("
|
|
749
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
738
750
|
]
|
|
739
751
|
break;
|
|
740
752
|
case "Thought":
|
|
@@ -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
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const TableSection = (theme) => {
|
|
1
|
+
export const TableSection = (theme,scopeName="elements") => {
|
|
2
2
|
const uiSchema = {
|
|
3
3
|
type: "HorizontalLayout",
|
|
4
4
|
elements: [
|
|
5
5
|
{
|
|
6
6
|
type: "Control",
|
|
7
|
-
scope:
|
|
7
|
+
scope: `#/properties/${scopeName}`,
|
|
8
8
|
options: {
|
|
9
9
|
widget: "Table",
|
|
10
10
|
},
|
|
@@ -15,8 +15,7 @@ export const TableSection = (theme) => {
|
|
|
15
15
|
{
|
|
16
16
|
widget: {
|
|
17
17
|
type: "Control",
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
20
19
|
options: {
|
|
21
20
|
widget: "IconButton",
|
|
22
21
|
},
|
|
@@ -43,7 +42,7 @@ export const TableSection = (theme) => {
|
|
|
43
42
|
{
|
|
44
43
|
widget: {
|
|
45
44
|
type: "Control",
|
|
46
|
-
|
|
45
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
47
46
|
options: {
|
|
48
47
|
widget: "IconButton",
|
|
49
48
|
},
|
|
@@ -109,7 +108,7 @@ export const TableSection = (theme) => {
|
|
|
109
108
|
},
|
|
110
109
|
{
|
|
111
110
|
type: "Control",
|
|
112
|
-
scope: "
|
|
111
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
113
112
|
options: {
|
|
114
113
|
widget: "Button",
|
|
115
114
|
},
|
|
@@ -49,6 +49,7 @@ export const ComponentSchema: any = {
|
|
|
49
49
|
{ title: "Upload", const: "UploadFile" },
|
|
50
50
|
{ title: "Tree ", const: "TreeMap" },
|
|
51
51
|
{ title: "Thought of the day", const: "Thought" },
|
|
52
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
52
53
|
],
|
|
53
54
|
},
|
|
54
55
|
elementType: {
|
|
@@ -102,35 +103,35 @@ export const ComponentSchema: any = {
|
|
|
102
103
|
{ title: "Standard", const: "standard" },
|
|
103
104
|
],
|
|
104
105
|
},
|
|
105
|
-
positionVertical:{
|
|
106
|
+
positionVertical: {
|
|
106
107
|
oneOf: [
|
|
107
108
|
{ title: "Top", const: "top" },
|
|
108
109
|
{ title: "Center", const: "center" },
|
|
109
110
|
{ title: "Bottom", const: "bottom" }
|
|
110
111
|
],
|
|
111
112
|
},
|
|
112
|
-
positionHorizontal:{
|
|
113
|
+
positionHorizontal: {
|
|
113
114
|
oneOf: [
|
|
114
115
|
{ title: "Left", const: "left" },
|
|
115
116
|
{ title: "Center", const: "center" },
|
|
116
117
|
{ title: "Right", const: "right" }
|
|
117
118
|
],
|
|
118
119
|
},
|
|
119
|
-
contentVertical:{
|
|
120
|
+
contentVertical: {
|
|
120
121
|
oneOf: [
|
|
121
122
|
{ title: "Top", const: "top" },
|
|
122
123
|
{ title: "Center", const: "center" },
|
|
123
124
|
{ title: "Bottom", const: "bottom" }
|
|
124
125
|
],
|
|
125
126
|
},
|
|
126
|
-
contentHorizontal:{
|
|
127
|
+
contentHorizontal: {
|
|
127
128
|
oneOf: [
|
|
128
129
|
{ title: "Left", const: "left" },
|
|
129
130
|
{ title: "Center", const: "center" },
|
|
130
131
|
{ title: "Right", const: "right" }
|
|
131
132
|
],
|
|
132
133
|
},
|
|
133
|
-
toolTipPosition:{
|
|
134
|
+
toolTipPosition: {
|
|
134
135
|
oneOf: [
|
|
135
136
|
{ title: "Top", const: "top" },
|
|
136
137
|
{ title: "Left", const: "left" },
|
|
@@ -440,6 +441,7 @@ export const ComponentSchema: any = {
|
|
|
440
441
|
const: "HorizontalStackBarGraph",
|
|
441
442
|
},
|
|
442
443
|
{ title: "Area Graph", const: "AreaGraph" },
|
|
444
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" },
|
|
443
445
|
],
|
|
444
446
|
},
|
|
445
447
|
iconName: {
|
|
@@ -493,6 +495,11 @@ export const ComponentSchema: any = {
|
|
|
493
495
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
494
496
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
495
497
|
{ title: "Payout", const: "Payout" },
|
|
498
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
499
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
500
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
501
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
502
|
+
{ title: "Git Compare", const: "GitCompare" },
|
|
496
503
|
],
|
|
497
504
|
},
|
|
498
505
|
color: {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { title } from "process";
|
|
2
|
-
|
|
3
1
|
export const EventSchema = {
|
|
4
2
|
type: "object",
|
|
5
3
|
properties: {
|
|
@@ -55,8 +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
|
-
|
|
58
|
+
{ title: "Set Style", const: "setStyle" },
|
|
60
59
|
|
|
61
60
|
]
|
|
62
61
|
},
|