impaktapps-ui-builder 1.0.312 → 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 +233 -148
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -14
- 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/builder/services/component.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -7
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -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/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 +30 -21
- 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 +13 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +43 -38
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -8
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -7
- package/src/impaktapps-ui-builder/builder/services/utils.ts +6 -79
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -3
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function refreshPage(type: string, store: any
|
|
1
|
+
export declare function refreshPage(type: string, store: any): void;
|
|
2
2
|
declare const _default: (store: any, dynamicData: any, submitHandler: any, service: any) => {
|
|
3
3
|
setPage: () => Promise<void>;
|
|
4
4
|
refreshPage: typeof refreshPage;
|
|
@@ -3,7 +3,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
3
3
|
title: string;
|
|
4
4
|
}[]) => {
|
|
5
5
|
setPage: () => Promise<void>;
|
|
6
|
-
refreshPage: (handlerType: any, store: any
|
|
6
|
+
refreshPage: (handlerType: any, store: any) => void;
|
|
7
7
|
getFormData: () => any;
|
|
8
8
|
getUiSchema: () => any;
|
|
9
9
|
getSchema: () => {
|
|
@@ -6,12 +6,6 @@ export declare const getNavigationHistory: (config: any, path: string | undefine
|
|
|
6
6
|
};
|
|
7
7
|
export declare const saveFormdataInSessionStorage: (formData: any, path?: string) => any;
|
|
8
8
|
export declare const getFormdataFromSessionStorage: (path?: string) => any;
|
|
9
|
-
export declare const collectScopeNames: (config: any, scopeMap?: Record<string, boolean>) => Record<string, boolean>;
|
|
10
|
-
export declare const initialiseScopeKey: () => void;
|
|
11
|
-
export declare const getScopeKey: () => Record<string, boolean>;
|
|
12
|
-
export declare const addToScopeKey: (name: string) => void;
|
|
13
|
-
export declare const doesScopeNameExist: (name: string) => boolean;
|
|
14
|
-
export declare const findDuplicateScopeNames: (config: any) => string[];
|
|
15
9
|
export declare function saveHandler(store: any, service: any, submitHandler: any): Promise<void>;
|
|
16
|
-
export declare const navigateHandler: (store: any, isSubmitted:
|
|
10
|
+
export declare const navigateHandler: (store: any, isSubmitted: any, pageName?: string | boolean, errorMessage?: string) => void;
|
|
17
11
|
export declare function okHandler(store: any): 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"] =
|
|
@@ -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,
|
|
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}`,
|
|
@@ -137,7 +137,7 @@ const getArrayControlMultiField = (parentScope: string, heading: string, firstFi
|
|
|
137
137
|
config: {
|
|
138
138
|
layout: 12,
|
|
139
139
|
main: {
|
|
140
|
-
label:
|
|
140
|
+
label: arrayLabel,
|
|
141
141
|
},
|
|
142
142
|
style: {
|
|
143
143
|
marginLeft: "-24px",
|
|
@@ -393,7 +393,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
393
393
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
394
394
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
395
395
|
getInputField("maxWidth", "Max. Width"),
|
|
396
|
-
emptyBox("PopUpEmpty", { xs:
|
|
396
|
+
emptyBox("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
397
397
|
]
|
|
398
398
|
break;
|
|
399
399
|
|
|
@@ -468,7 +468,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
468
468
|
uiSchema.elements = [
|
|
469
469
|
getInputField("rank", "Rank"),
|
|
470
470
|
getInputField("height", "Height"),
|
|
471
|
-
emptyBox("RankCardEmpty1", { xs:
|
|
471
|
+
emptyBox("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
472
472
|
break;
|
|
473
473
|
case "LeaderBoard":
|
|
474
474
|
uiSchema.elements = [
|
|
@@ -495,7 +495,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
495
495
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
496
496
|
getInputField("size", "Size"),
|
|
497
497
|
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
498
|
-
|
|
498
|
+
|
|
499
499
|
getArrayControl("pieArcColors", "color", "Color"),
|
|
500
500
|
];
|
|
501
501
|
break;
|
|
@@ -519,7 +519,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
519
519
|
{ label: "Negative", value: "negative" }
|
|
520
520
|
]),
|
|
521
521
|
getInputField("color", "Card Color"),
|
|
522
|
-
emptyBox("MetricEmpty1", { xs: 6, sm:
|
|
522
|
+
emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
523
523
|
];
|
|
524
524
|
break;
|
|
525
525
|
case "Button":
|
|
@@ -540,7 +540,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
540
540
|
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
541
541
|
getInputField("size", "Size"),
|
|
542
542
|
getSelectField("color", "Color", []),
|
|
543
|
-
emptyBox("ButtonEmpty1",{ xs: 6, sm:
|
|
543
|
+
emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
544
544
|
];
|
|
545
545
|
break;
|
|
546
546
|
case "Box":
|
|
@@ -561,16 +561,18 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
561
561
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
562
562
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
563
563
|
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
|
|
564
|
-
{ label: "Area Graph", value: "AreaGraph" }
|
|
564
|
+
{ label: "Area Graph", value: "AreaGraph" },
|
|
565
|
+
{ label: "StackBar And Line Graph", value: "StackBarLineGraph" }
|
|
565
566
|
]),
|
|
566
567
|
getInputField("leftLabel", "Left Label"),
|
|
568
|
+
getInputField("rightLabel", "Right Label"),
|
|
567
569
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
568
570
|
getInputField("bottomLabel", "Bottom Label"),
|
|
569
571
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
570
572
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
571
573
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
572
|
-
getInputField("yAxisValue", "Y-
|
|
573
|
-
getInputField("xAxisValue", "X-
|
|
574
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
575
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
574
576
|
getSelectField("xAxisType", "X-AxisType", [
|
|
575
577
|
{ label: "Date", value: "date" },
|
|
576
578
|
{ label: "String", value: "string" },
|
|
@@ -578,15 +580,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
578
580
|
]),
|
|
579
581
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
580
582
|
getInputField("leftMargin", "Left Margin"),
|
|
581
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
582
583
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
584
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
583
585
|
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
584
586
|
{ label: "Date and Month", value: "Date and Month" },
|
|
585
587
|
{ label: "Month and Year", value: "Month and Year" }
|
|
586
588
|
]),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
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"),
|
|
590
593
|
];
|
|
591
594
|
break;
|
|
592
595
|
case "WrapperSection":
|
|
@@ -598,7 +601,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
598
601
|
getInputField("rowSpacing", "Row Spacing"),
|
|
599
602
|
getInputField("columnSpacing", "Column Spacing"),
|
|
600
603
|
getInputField("spacing", "Spacing"),
|
|
601
|
-
|
|
604
|
+
getInputField("iconUrl", "Icon Url"),
|
|
605
|
+
emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
|
|
602
606
|
]
|
|
603
607
|
break;
|
|
604
608
|
|
|
@@ -607,7 +611,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
607
611
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
608
612
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
609
613
|
emptyBox("TabEmpty"),
|
|
610
|
-
getArrayControlMultiField("sectionLabels",
|
|
614
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
611
615
|
]
|
|
612
616
|
break;
|
|
613
617
|
case "Table":
|
|
@@ -648,8 +652,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
648
652
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
649
653
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
650
654
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
651
|
-
getInputField("defaultColumnSize", "Default Column Size"),
|
|
652
|
-
emptyBox("LazyLoadingTableEmpty3", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
655
|
+
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
|
|
653
656
|
]),
|
|
654
657
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
655
658
|
sizeHolder,
|
|
@@ -706,6 +709,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
706
709
|
])
|
|
707
710
|
]
|
|
708
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;
|
|
709
718
|
case "Date":
|
|
710
719
|
uiSchema.elements = [
|
|
711
720
|
getSelectField("variant", "Variant", [
|
|
@@ -720,7 +729,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
720
729
|
{ label: "Right", value: "right" },
|
|
721
730
|
{ label: "Bottom", value: "bottom" }
|
|
722
731
|
]),
|
|
723
|
-
emptyBox("
|
|
732
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
724
733
|
]
|
|
725
734
|
break;
|
|
726
735
|
case "DateTime":
|
|
@@ -737,7 +746,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
737
746
|
{ label: "Right", value: "right" },
|
|
738
747
|
{ label: "Bottom", value: "bottom" }
|
|
739
748
|
]),
|
|
740
|
-
emptyBox("
|
|
749
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
741
750
|
]
|
|
742
751
|
break;
|
|
743
752
|
case "Thought":
|
|
@@ -777,7 +786,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
777
786
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
778
787
|
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
779
788
|
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
780
|
-
emptyBox("
|
|
789
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
781
790
|
]
|
|
782
791
|
break;
|
|
783
792
|
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
|
+
|
|
@@ -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
|
},
|