impaktapps-ui-builder 1.0.287 → 1.0.289
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 +223 -33
- 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/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 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +102 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -3
|
@@ -96,6 +96,22 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/pageIconUrl",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "InputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Page Icon URL",
|
|
109
|
+
options: [],
|
|
110
|
+
color: "secondary",
|
|
111
|
+
required: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
99
115
|
{
|
|
100
116
|
type: "Control",
|
|
101
117
|
scope: "#/properties/hasBackIcon",
|
|
@@ -6265,7 +6281,8 @@ const ComponentSchema = {
|
|
|
6265
6281
|
{ title: "Timer", const: "Timer" },
|
|
6266
6282
|
{ title: "Upload", const: "UploadFile" },
|
|
6267
6283
|
{ title: "Tree ", const: "TreeMap" },
|
|
6268
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6284
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6285
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6269
6286
|
]
|
|
6270
6287
|
},
|
|
6271
6288
|
elementType: {
|
|
@@ -6648,7 +6665,8 @@ const ComponentSchema = {
|
|
|
6648
6665
|
title: "Stack Horizontal Bar Graph",
|
|
6649
6666
|
const: "HorizontalStackBarGraph"
|
|
6650
6667
|
},
|
|
6651
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6668
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6669
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6652
6670
|
]
|
|
6653
6671
|
},
|
|
6654
6672
|
iconName: {
|
|
@@ -7807,7 +7825,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7807
7825
|
]
|
|
7808
7826
|
};
|
|
7809
7827
|
};
|
|
7810
|
-
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
|
|
7828
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
|
|
7811
7829
|
return {
|
|
7812
7830
|
type: "Control",
|
|
7813
7831
|
scope: `#/properties/${parentScope}`,
|
|
@@ -7816,7 +7834,9 @@ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScop
|
|
|
7816
7834
|
},
|
|
7817
7835
|
config: {
|
|
7818
7836
|
layout: 12,
|
|
7819
|
-
main: {
|
|
7837
|
+
main: {
|
|
7838
|
+
label: arrayLabel
|
|
7839
|
+
},
|
|
7820
7840
|
style: {
|
|
7821
7841
|
marginLeft: "-24px",
|
|
7822
7842
|
marginBottom: "24px !important",
|
|
@@ -7996,6 +8016,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7996
8016
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7997
8017
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7998
8018
|
getInputField("childElementLabel", "Child Element Label"),
|
|
8019
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8020
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8021
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8022
|
+
getInputField("spacing", "Spacing"),
|
|
7999
8023
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
8000
8024
|
];
|
|
8001
8025
|
break;
|
|
@@ -8190,22 +8214,24 @@ const buildPropertiesSection = function(type) {
|
|
|
8190
8214
|
getInputField("subHeader", "Sub Header"),
|
|
8191
8215
|
getSelectField("graphType", "Graph Type"),
|
|
8192
8216
|
getInputField("leftLabel", "Left Label"),
|
|
8217
|
+
getInputField("rightLabel", "Right Label"),
|
|
8193
8218
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8194
8219
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8195
8220
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
8196
8221
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8197
8222
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8198
|
-
getInputField("yAxisValue", "Y-
|
|
8199
|
-
getInputField("xAxisValue", "X-
|
|
8223
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8224
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8200
8225
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8201
8226
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8202
8227
|
getInputField("leftMargin", "Left Margin"),
|
|
8203
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8204
8228
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8205
8229
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8230
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8231
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8232
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8233
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8234
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8209
8235
|
];
|
|
8210
8236
|
break;
|
|
8211
8237
|
case "WrapperSection":
|
|
@@ -8213,9 +8239,12 @@ const buildPropertiesSection = function(type) {
|
|
|
8213
8239
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8214
8240
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8215
8241
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8216
|
-
getInputField("rowSpacing", "Row Spacing"),
|
|
8217
8242
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8218
|
-
|
|
8243
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8244
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8245
|
+
getInputField("spacing", "Spacing"),
|
|
8246
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8247
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8219
8248
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8220
8249
|
];
|
|
8221
8250
|
break;
|
|
@@ -8288,12 +8317,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8288
8317
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8289
8318
|
];
|
|
8290
8319
|
break;
|
|
8320
|
+
case "PdfViewer":
|
|
8321
|
+
uiSchema.elements = [
|
|
8322
|
+
getInputField("scale", "Zoom"),
|
|
8323
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8324
|
+
];
|
|
8325
|
+
break;
|
|
8291
8326
|
case "Date":
|
|
8292
8327
|
uiSchema.elements = [
|
|
8293
8328
|
getSelectField("variant", "Variant"),
|
|
8294
8329
|
getInputField("toolTip", "Tooltip"),
|
|
8295
8330
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8296
|
-
emptyBox$1("
|
|
8331
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8297
8332
|
];
|
|
8298
8333
|
break;
|
|
8299
8334
|
case "DateTime":
|
|
@@ -8301,7 +8336,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8301
8336
|
getSelectField("variant", "Variant"),
|
|
8302
8337
|
getInputField("toolTip", "Tooltip"),
|
|
8303
8338
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8304
|
-
emptyBox$1("
|
|
8339
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8305
8340
|
];
|
|
8306
8341
|
break;
|
|
8307
8342
|
case "Thought":
|
|
@@ -8313,6 +8348,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8313
8348
|
uiSchema.elements = [
|
|
8314
8349
|
getInputField("imageUrl", "Image URL"),
|
|
8315
8350
|
getInputField("height", "Image Height"),
|
|
8351
|
+
getInputField("toolTip", "Tooltip"),
|
|
8352
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8316
8353
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8317
8354
|
];
|
|
8318
8355
|
break;
|
|
@@ -8327,7 +8364,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8327
8364
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8328
8365
|
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8329
8366
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8330
|
-
|
|
8367
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8368
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8369
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8331
8370
|
];
|
|
8332
8371
|
break;
|
|
8333
8372
|
case "Camera":
|
|
@@ -8854,12 +8893,13 @@ const sectionLabels = {
|
|
|
8854
8893
|
Rank: ["Core", "Events", "Style"],
|
|
8855
8894
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8856
8895
|
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8857
|
-
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8896
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8858
8897
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8859
8898
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8860
8899
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8861
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8900
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8862
8901
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8902
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8863
8903
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8864
8904
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8865
8905
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8868,7 +8908,7 @@ const sectionLabels = {
|
|
|
8868
8908
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8869
8909
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8870
8910
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8871
|
-
Image: ["Core", "Properties", "Style"],
|
|
8911
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8872
8912
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8873
8913
|
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8874
8914
|
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
@@ -9443,7 +9483,9 @@ const EventSchema = {
|
|
|
9443
9483
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9444
9484
|
{ title: "Download", const: "onDownload" },
|
|
9445
9485
|
{ title: "Fail", const: "Fail" },
|
|
9446
|
-
{ title: "
|
|
9486
|
+
{ title: "onClose", const: "onClose" },
|
|
9487
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9488
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9447
9489
|
]
|
|
9448
9490
|
},
|
|
9449
9491
|
Handler: {
|
|
@@ -10786,7 +10828,7 @@ var service = (funcParams) => {
|
|
|
10786
10828
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10787
10829
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10788
10830
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10789
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10831
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10790
10832
|
});
|
|
10791
10833
|
window.dispatchEvent(event2);
|
|
10792
10834
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10829,6 +10871,25 @@ var service = (funcParams) => {
|
|
|
10829
10871
|
funcParams.store.setUiSchema(uiSchema);
|
|
10830
10872
|
});
|
|
10831
10873
|
},
|
|
10874
|
+
getStyle: () => {
|
|
10875
|
+
var _a, _b, _c, _d;
|
|
10876
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10877
|
+
if (cloneEventGroup.setStyle) {
|
|
10878
|
+
let finalResponse = {};
|
|
10879
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10880
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10881
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10882
|
+
finalResponse = executeEvents({
|
|
10883
|
+
...executeEventsParameters,
|
|
10884
|
+
config: eventConfig,
|
|
10885
|
+
componentName: path
|
|
10886
|
+
});
|
|
10887
|
+
}
|
|
10888
|
+
return finalResponse;
|
|
10889
|
+
}
|
|
10890
|
+
}
|
|
10891
|
+
return {};
|
|
10892
|
+
},
|
|
10832
10893
|
onCellRenderer: (cellParams) => {
|
|
10833
10894
|
var _a, _b, _c, _d, _e;
|
|
10834
10895
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10858,6 +10919,9 @@ var service = (funcParams) => {
|
|
|
10858
10919
|
onFileDelete: async function() {
|
|
10859
10920
|
this.callHandler("onFileDelete");
|
|
10860
10921
|
},
|
|
10922
|
+
onClose: function() {
|
|
10923
|
+
this.callHandler("onClose");
|
|
10924
|
+
},
|
|
10861
10925
|
onMount: function() {
|
|
10862
10926
|
this.callHandler("onMount");
|
|
10863
10927
|
},
|
|
@@ -10930,8 +10994,8 @@ var service = (funcParams) => {
|
|
|
10930
10994
|
return;
|
|
10931
10995
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10932
10996
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10933
|
-
var _a
|
|
10934
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
10997
|
+
var _a;
|
|
10998
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10935
10999
|
return [];
|
|
10936
11000
|
}
|
|
10937
11001
|
return eventGroups.onChange[componentName].map(
|
|
@@ -11229,6 +11293,21 @@ const AreaBarGraph = {
|
|
|
11229
11293
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11230
11294
|
}
|
|
11231
11295
|
};
|
|
11296
|
+
const StackBarLineG = {
|
|
11297
|
+
type: "Control",
|
|
11298
|
+
scope: "#/properties/graph",
|
|
11299
|
+
options: {
|
|
11300
|
+
widget: "Graph"
|
|
11301
|
+
},
|
|
11302
|
+
config: {
|
|
11303
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11304
|
+
main: {
|
|
11305
|
+
type: "StackBarLineGraph",
|
|
11306
|
+
legendLabels: null
|
|
11307
|
+
},
|
|
11308
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11309
|
+
}
|
|
11310
|
+
};
|
|
11232
11311
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11233
11312
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11234
11313
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11496,9 +11575,11 @@ var WrapperSection = {
|
|
|
11496
11575
|
config: {
|
|
11497
11576
|
layout: 12,
|
|
11498
11577
|
main: {
|
|
11499
|
-
rowSpacing: 3,
|
|
11500
11578
|
divider: true,
|
|
11501
|
-
label: "Default Label"
|
|
11579
|
+
label: "Default Label",
|
|
11580
|
+
rowSpacing: 2,
|
|
11581
|
+
columnSpacing: 2,
|
|
11582
|
+
spacing: 2
|
|
11502
11583
|
},
|
|
11503
11584
|
defaultStyle: true
|
|
11504
11585
|
},
|
|
@@ -11511,6 +11592,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11511
11592
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11512
11593
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11513
11594
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11595
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11596
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11597
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11598
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11514
11599
|
if (config2.defaultStyle) {
|
|
11515
11600
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11516
11601
|
}
|
|
@@ -11785,7 +11870,8 @@ const Box = {
|
|
|
11785
11870
|
config: {
|
|
11786
11871
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11787
11872
|
main: {
|
|
11788
|
-
iconName: ""
|
|
11873
|
+
iconName: "",
|
|
11874
|
+
onClick: "onClick"
|
|
11789
11875
|
},
|
|
11790
11876
|
style: {}
|
|
11791
11877
|
}
|
|
@@ -12151,7 +12237,6 @@ const DateTime = {
|
|
|
12151
12237
|
const buildDate = (config2, componentScope2) => {
|
|
12152
12238
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12153
12239
|
dateInputField.config.main.label = config2.label;
|
|
12154
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12155
12240
|
dateInputField.scope = componentScope2;
|
|
12156
12241
|
if (config2.layout) {
|
|
12157
12242
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12173,7 +12258,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12173
12258
|
const buildDateTime = (config2, componentScope2) => {
|
|
12174
12259
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12175
12260
|
dateTimeInputField.config.main.label = config2.label;
|
|
12176
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12177
12261
|
dateTimeInputField.scope = componentScope2;
|
|
12178
12262
|
if (config2.layout) {
|
|
12179
12263
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12549,7 +12633,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12549
12633
|
if (config2.style) {
|
|
12550
12634
|
array.config.style = JSON.parse(config2.style);
|
|
12551
12635
|
}
|
|
12636
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12637
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12638
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12552
12639
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12640
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12553
12641
|
array.config.main.label = config2.label;
|
|
12554
12642
|
array.scope = componentScope2;
|
|
12555
12643
|
return array;
|
|
@@ -12624,7 +12712,8 @@ const FileInput = {
|
|
|
12624
12712
|
required: false,
|
|
12625
12713
|
onUpload: "onFileUpload",
|
|
12626
12714
|
onDownload: "onFileDownload",
|
|
12627
|
-
label: "Aggrement Copy"
|
|
12715
|
+
label: "Aggrement Copy",
|
|
12716
|
+
"onClick": "onClick"
|
|
12628
12717
|
},
|
|
12629
12718
|
style: {
|
|
12630
12719
|
backgroundColor: "none"
|
|
@@ -12645,6 +12734,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12645
12734
|
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12646
12735
|
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12647
12736
|
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12737
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12648
12738
|
box.config.main.description = config2.description;
|
|
12649
12739
|
box.config.main.toolTip = config2.toolTip;
|
|
12650
12740
|
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
@@ -12652,6 +12742,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12652
12742
|
if (config2.toolTipPosition) {
|
|
12653
12743
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12654
12744
|
}
|
|
12745
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12655
12746
|
return box;
|
|
12656
12747
|
};
|
|
12657
12748
|
const Stepper = {
|
|
@@ -12708,6 +12799,7 @@ const PopUP = {
|
|
|
12708
12799
|
},
|
|
12709
12800
|
main: {
|
|
12710
12801
|
label: "PopUp",
|
|
12802
|
+
onClose: "onClose",
|
|
12711
12803
|
fullScreen: false,
|
|
12712
12804
|
fullWidth: false,
|
|
12713
12805
|
maxWidth: false,
|
|
@@ -12931,7 +13023,8 @@ const imageUiSchema = {
|
|
|
12931
13023
|
config: {
|
|
12932
13024
|
layout: 3,
|
|
12933
13025
|
main: {
|
|
12934
|
-
url: ""
|
|
13026
|
+
url: "",
|
|
13027
|
+
onClick: "onClick"
|
|
12935
13028
|
},
|
|
12936
13029
|
style: {}
|
|
12937
13030
|
}
|
|
@@ -12949,6 +13042,8 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12949
13042
|
if (config2.height) {
|
|
12950
13043
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12951
13044
|
}
|
|
13045
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13046
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12952
13047
|
return image;
|
|
12953
13048
|
};
|
|
12954
13049
|
const buildAreaGraph = (config2, componentScope2) => {
|
|
@@ -12982,9 +13077,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12982
13077
|
if (config2.xAxisFormatType) {
|
|
12983
13078
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
12984
13079
|
}
|
|
12985
|
-
if (config2.xAxisTickCount) {
|
|
12986
|
-
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
12987
|
-
}
|
|
12988
13080
|
if (config2.yAxisTickCount) {
|
|
12989
13081
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
12990
13082
|
}
|
|
@@ -13010,6 +13102,68 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13010
13102
|
}
|
|
13011
13103
|
return AreaGraph;
|
|
13012
13104
|
};
|
|
13105
|
+
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13106
|
+
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13107
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13108
|
+
if (config2.layout) {
|
|
13109
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13110
|
+
}
|
|
13111
|
+
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13112
|
+
StackBarLineGraph.scope = componentScope2;
|
|
13113
|
+
StackBarLineGraph.config.main.header = config2.heading;
|
|
13114
|
+
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13115
|
+
if (config2.legendHide) {
|
|
13116
|
+
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13117
|
+
}
|
|
13118
|
+
if (config2.bottomAxisAngle) {
|
|
13119
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13120
|
+
}
|
|
13121
|
+
if (config2.legendLabels) {
|
|
13122
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13123
|
+
}
|
|
13124
|
+
if (config2.legendDirection) {
|
|
13125
|
+
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13126
|
+
}
|
|
13127
|
+
if (config2.height) {
|
|
13128
|
+
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13129
|
+
}
|
|
13130
|
+
if (config2.pieArcColors) {
|
|
13131
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13132
|
+
}
|
|
13133
|
+
if (config2.yAxisTickCount) {
|
|
13134
|
+
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13135
|
+
}
|
|
13136
|
+
if (config2.xAxisValue) {
|
|
13137
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13138
|
+
}
|
|
13139
|
+
if (config2.xAxisType) {
|
|
13140
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13141
|
+
}
|
|
13142
|
+
if (config2.bottomLabel) {
|
|
13143
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13144
|
+
}
|
|
13145
|
+
if (config2.leftLabel) {
|
|
13146
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13147
|
+
}
|
|
13148
|
+
if (config2.rightLabel) {
|
|
13149
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13150
|
+
}
|
|
13151
|
+
if (config2.disableLeftLabel) {
|
|
13152
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13153
|
+
}
|
|
13154
|
+
if (config2.growthRateKey) {
|
|
13155
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13156
|
+
}
|
|
13157
|
+
if (config2.tooltipUnit) {
|
|
13158
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13159
|
+
}
|
|
13160
|
+
if (config2.leftMargin) {
|
|
13161
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13162
|
+
left: config2.leftMargin
|
|
13163
|
+
};
|
|
13164
|
+
}
|
|
13165
|
+
return StackBarLineGraph;
|
|
13166
|
+
};
|
|
13013
13167
|
const cameraUiSchema = {
|
|
13014
13168
|
type: "Control",
|
|
13015
13169
|
scope: "#/properties/camera",
|
|
@@ -13050,7 +13204,7 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
13050
13204
|
camera.config.main.color = config2.color;
|
|
13051
13205
|
}
|
|
13052
13206
|
if (config2.label) {
|
|
13053
|
-
camera.config.main.
|
|
13207
|
+
camera.config.main.label = config2.label;
|
|
13054
13208
|
}
|
|
13055
13209
|
return camera;
|
|
13056
13210
|
};
|
|
@@ -13163,6 +13317,36 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13163
13317
|
OTP.config.main.length = +config2.length;
|
|
13164
13318
|
return OTP;
|
|
13165
13319
|
};
|
|
13320
|
+
var pdfViewer = {
|
|
13321
|
+
type: "Control",
|
|
13322
|
+
scope: "#/properties/pdfviewer",
|
|
13323
|
+
options: {
|
|
13324
|
+
widget: "PdfViewer"
|
|
13325
|
+
},
|
|
13326
|
+
config: {
|
|
13327
|
+
layout: {
|
|
13328
|
+
xs: 12,
|
|
13329
|
+
sm: 12,
|
|
13330
|
+
md: 12,
|
|
13331
|
+
lg: 12
|
|
13332
|
+
},
|
|
13333
|
+
main: {
|
|
13334
|
+
title: "PDF"
|
|
13335
|
+
}
|
|
13336
|
+
}
|
|
13337
|
+
};
|
|
13338
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13339
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13340
|
+
PdfViewer.scope = componentScope2;
|
|
13341
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13342
|
+
if (config2.layout) {
|
|
13343
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13344
|
+
}
|
|
13345
|
+
if (config2.style) {
|
|
13346
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13347
|
+
}
|
|
13348
|
+
return PdfViewer;
|
|
13349
|
+
};
|
|
13166
13350
|
const HierarchyChart = {
|
|
13167
13351
|
type: "Control",
|
|
13168
13352
|
scope: "#/properties/HierarchyChart",
|
|
@@ -13392,6 +13576,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13392
13576
|
case "AreaGraph":
|
|
13393
13577
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13394
13578
|
break;
|
|
13579
|
+
case "StackBarLineGraph":
|
|
13580
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13581
|
+
break;
|
|
13395
13582
|
default:
|
|
13396
13583
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13397
13584
|
break;
|
|
@@ -13440,6 +13627,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13440
13627
|
case "Camera":
|
|
13441
13628
|
elements = buildCamera(config2, componentScope2);
|
|
13442
13629
|
break;
|
|
13630
|
+
case "PdfViewer":
|
|
13631
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13632
|
+
break;
|
|
13443
13633
|
default:
|
|
13444
13634
|
schema = {
|
|
13445
13635
|
type: "object",
|