impaktapps-ui-builder 1.0.280 → 1.0.301
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 +92 -80
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- 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/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/{hierarchyChart.d.ts → pdfViewer.d.ts} +4 -7
- 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 +0 -1
- package/package.json +1 -1
- 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/buildFileInput.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -4
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +29 -21
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -1
- 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 +1 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +101 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -8
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +0 -38
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildPdfViewer: (config: any, componentScope: string) => any;
|
package/dist/src/impaktapps-ui-builder/builder/build/uischema/{hierarchyChart.d.ts → pdfViewer.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: {
|
|
2
2
|
type: string;
|
|
3
3
|
scope: string;
|
|
4
4
|
options: {
|
|
@@ -11,12 +11,9 @@ export declare const HierarchyChart: {
|
|
|
11
11
|
md: number;
|
|
12
12
|
lg: number;
|
|
13
13
|
};
|
|
14
|
-
main: {
|
|
15
|
-
|
|
16
|
-
containerStyle: {};
|
|
17
|
-
labelStyle: {
|
|
18
|
-
margin: {};
|
|
19
|
-
};
|
|
14
|
+
main: {
|
|
15
|
+
title: string;
|
|
20
16
|
};
|
|
21
17
|
};
|
|
22
18
|
};
|
|
19
|
+
export default _default;
|
|
@@ -21,7 +21,6 @@ declare const _default: (funcParams: funcParamsProps) => {
|
|
|
21
21
|
backHandler: () => void;
|
|
22
22
|
onRowMovement: (paginationValues: any) => Promise<any>;
|
|
23
23
|
onPaginationChange: (paginationValues: any) => Promise<any>;
|
|
24
|
-
onNodeExpandChange: (param: any) => Promise<any>;
|
|
25
24
|
getSelectOptions: (param: any) => Promise<any>;
|
|
26
25
|
onChange: () => void;
|
|
27
26
|
callExecuteEvents: (paramValue: any, apiBody: any, eventType: string) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -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,19 @@
|
|
|
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.title = config.label;
|
|
9
|
+
PdfViewer.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
|
|
10
|
+
PdfViewer.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
|
|
11
|
+
PdfViewer.config.main.maxWidth = config.maxWidth||false;
|
|
12
|
+
if (config.layout) {
|
|
13
|
+
PdfViewer.config.layout = createLayoutFormat(config.layout);
|
|
14
|
+
}
|
|
15
|
+
if (config.style) {
|
|
16
|
+
PdfViewer.config.style = JSON.parse(config.style)
|
|
17
|
+
}
|
|
18
|
+
return PdfViewer
|
|
19
|
+
}
|
|
@@ -46,7 +46,7 @@ import { buildCamera } from "./buildCamera";
|
|
|
46
46
|
import { buildButtonGroup } from "./buildGroupButton";
|
|
47
47
|
import { buildPopOver } from "./buildPopover";
|
|
48
48
|
import { buildOTP_Input } from "./buildOTP_inputs";
|
|
49
|
-
import {
|
|
49
|
+
import { buildPdfViewer } from "./buildPdfViewer";
|
|
50
50
|
export let schema = {
|
|
51
51
|
type: "object",
|
|
52
52
|
properties: {},
|
|
@@ -221,9 +221,6 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
221
221
|
case "MetricCard":
|
|
222
222
|
elements = buildMetricCard(config, componentScope, store);
|
|
223
223
|
break;
|
|
224
|
-
case "HierarchyChart":
|
|
225
|
-
elements = buildHierarchyChart(config, componentScope, store);
|
|
226
|
-
break;
|
|
227
224
|
case "Graph":
|
|
228
225
|
switch (config.graphType) {
|
|
229
226
|
case "BarGraph":
|
|
@@ -291,6 +288,9 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
291
288
|
case "Camera":
|
|
292
289
|
elements = buildCamera(config, componentScope)
|
|
293
290
|
break;
|
|
291
|
+
case "PdfViewer":
|
|
292
|
+
elements = buildPdfViewer(config, componentScope);
|
|
293
|
+
break;
|
|
294
294
|
default:
|
|
295
295
|
schema = {
|
|
296
296
|
type: "object",
|
|
@@ -8,9 +8,12 @@ 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.rowSpacing = Number(config.rowSpacing);
|
|
13
|
+
wrapper.config.main.columnSpacing = Number(config.columnSpacing);
|
|
14
|
+
wrapper.config.main.spacing = Number(config.spacing);
|
|
15
|
+
if (config.defaultStyle) {
|
|
16
|
+
wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
|
|
14
17
|
}
|
|
15
18
|
if (config.style) {
|
|
16
19
|
wrapper.config.style = JSON.parse(config.style)
|
|
@@ -331,6 +331,10 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
331
331
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
332
332
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
333
333
|
getInputField("childElementLabel", "Child Element Label"),
|
|
334
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
335
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
336
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
337
|
+
getInputField("spacing", "Spacing"),
|
|
334
338
|
emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
|
|
335
339
|
|
|
336
340
|
]
|
|
@@ -415,7 +419,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
415
419
|
]),
|
|
416
420
|
getInputField("width", "Width"),
|
|
417
421
|
getInputField("gap", "Gap"),
|
|
418
|
-
emptyBox("PopUpEmpty",
|
|
422
|
+
emptyBox("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
419
423
|
]
|
|
420
424
|
break;
|
|
421
425
|
case "Text":
|
|
@@ -502,22 +506,6 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
502
506
|
emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
503
507
|
];
|
|
504
508
|
break;
|
|
505
|
-
case "HierarchyChart":
|
|
506
|
-
uiSchema.elements = [
|
|
507
|
-
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
508
|
-
getSelectField("linkType", "Link Type", [
|
|
509
|
-
{ label: "Step", value: "step" },
|
|
510
|
-
{ label: "Diagonal", value: "diagonal" },
|
|
511
|
-
{ label: "Line", value: "line" },
|
|
512
|
-
]),
|
|
513
|
-
getInputField("nodeWidth", "Node Width"),
|
|
514
|
-
getInputField("nodeHeight", "Node Height"),
|
|
515
|
-
getRadioInputField("isExpandAll", "Expand All", ["YES", "NO"]),
|
|
516
|
-
getInputField("chartHeight", "Chart Height"),
|
|
517
|
-
getInputField("stepPercent", "Link Bend Position"),
|
|
518
|
-
emptyBox("HierarchyChart", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
519
|
-
];
|
|
520
|
-
break;
|
|
521
509
|
case "MetricCard":
|
|
522
510
|
uiSchema.elements = [
|
|
523
511
|
getInputField("url", "Image Url"),
|
|
@@ -529,7 +517,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
529
517
|
{ label: "Negative", value: "negative" }
|
|
530
518
|
]),
|
|
531
519
|
getInputField("color", "Card Color"),
|
|
532
|
-
emptyBox("MetricEmpty1", { xs: 6, sm:
|
|
520
|
+
emptyBox("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
533
521
|
];
|
|
534
522
|
break;
|
|
535
523
|
case "Button":
|
|
@@ -603,9 +591,12 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
603
591
|
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
604
592
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
605
593
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
606
|
-
|
|
594
|
+
|
|
607
595
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
608
|
-
|
|
596
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
597
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
598
|
+
getInputField("spacing", "Spacing"),
|
|
599
|
+
emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 }),
|
|
609
600
|
]
|
|
610
601
|
break;
|
|
611
602
|
|
|
@@ -712,6 +703,14 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
712
703
|
])
|
|
713
704
|
]
|
|
714
705
|
break;
|
|
706
|
+
case "PdfViewer":
|
|
707
|
+
uiSchema.elements = [
|
|
708
|
+
getInputField("title", "title"),
|
|
709
|
+
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
710
|
+
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
711
|
+
getInputField("maxWidth", "Max. Width"),
|
|
712
|
+
]
|
|
713
|
+
break;
|
|
715
714
|
case "Date":
|
|
716
715
|
uiSchema.elements = [
|
|
717
716
|
getSelectField("variant", "Variant", [
|
|
@@ -755,6 +754,13 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
755
754
|
uiSchema.elements = [
|
|
756
755
|
getInputField("imageUrl", "Image URL"),
|
|
757
756
|
getInputField("height", "Image Height"),
|
|
757
|
+
getInputField("toolTip", "Tooltip"),
|
|
758
|
+
getSelectField("toolTipPosition", "Tooltip Position", [
|
|
759
|
+
{ label: "Top", value: "top" },
|
|
760
|
+
{ label: "Left", value: "left" },
|
|
761
|
+
{ label: "Right", value: "right" },
|
|
762
|
+
{ label: "Bottom", value: "bottom" }
|
|
763
|
+
]),
|
|
758
764
|
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
759
765
|
]
|
|
760
766
|
break;
|
|
@@ -774,7 +780,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
774
780
|
]),
|
|
775
781
|
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
776
782
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
777
|
-
|
|
783
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
784
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
785
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
778
786
|
]
|
|
779
787
|
break;
|
|
780
788
|
case "Camera":
|
|
@@ -40,7 +40,6 @@ export const ComponentSchema: any = {
|
|
|
40
40
|
{ title: "Rank", const: "Rank" },
|
|
41
41
|
{ title: "Rank Card", const: "RankCard" },
|
|
42
42
|
{ title: "Metric Card", const: "MetricCard" },
|
|
43
|
-
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
44
43
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
45
44
|
{ title: "Table", const: "Table" },
|
|
46
45
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -50,6 +49,7 @@ export const ComponentSchema: any = {
|
|
|
50
49
|
{ title: "Upload", const: "UploadFile" },
|
|
51
50
|
{ title: "Tree ", const: "TreeMap" },
|
|
52
51
|
{ title: "Thought of the day", const: "Thought" },
|
|
52
|
+
{ title: "PDF", const: "PdfViewer"}
|
|
53
53
|
],
|
|
54
54
|
},
|
|
55
55
|
elementType: {
|
|
@@ -103,13 +103,6 @@ export const ComponentSchema: any = {
|
|
|
103
103
|
{ title: "Standard", const: "standard" },
|
|
104
104
|
],
|
|
105
105
|
},
|
|
106
|
-
linkType:{
|
|
107
|
-
oneOf:[
|
|
108
|
-
{ title: "Step", const: "step" },
|
|
109
|
-
{ title: "Diagonal", const: "diagonal" },
|
|
110
|
-
{ title: "Line", const: "line" },
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
106
|
positionVertical:{
|
|
114
107
|
oneOf: [
|
|
115
108
|
{ title: "Top", const: "top" },
|
|
@@ -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",
|