impaktapps-ui-builder 1.0.286 → 1.0.288
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +221 -32
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +69 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +43 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -4
- package/src/impaktapps-ui-builder/builder/services/component.ts +102 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +24 -2
|
@@ -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,8 +9483,9 @@ const EventSchema = {
|
|
|
9443
9483
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9444
9484
|
{ title: "Download", const: "onDownload" },
|
|
9445
9485
|
{ title: "Fail", const: "Fail" },
|
|
9486
|
+
{ title: "onClose", const: "onClose" },
|
|
9446
9487
|
{ title: "Key Down", const: "onKeyDown" },
|
|
9447
|
-
{ title: "
|
|
9488
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9448
9489
|
]
|
|
9449
9490
|
},
|
|
9450
9491
|
Handler: {
|
|
@@ -10787,7 +10828,7 @@ var service = (funcParams) => {
|
|
|
10787
10828
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10788
10829
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10789
10830
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10790
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10831
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10791
10832
|
});
|
|
10792
10833
|
window.dispatchEvent(event2);
|
|
10793
10834
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -10830,6 +10871,25 @@ var service = (funcParams) => {
|
|
|
10830
10871
|
funcParams.store.setUiSchema(uiSchema);
|
|
10831
10872
|
});
|
|
10832
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
|
+
},
|
|
10833
10893
|
onCellRenderer: (cellParams) => {
|
|
10834
10894
|
var _a, _b, _c, _d, _e;
|
|
10835
10895
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10859,6 +10919,9 @@ var service = (funcParams) => {
|
|
|
10859
10919
|
onFileDelete: async function() {
|
|
10860
10920
|
this.callHandler("onFileDelete");
|
|
10861
10921
|
},
|
|
10922
|
+
onClose: function() {
|
|
10923
|
+
this.callHandler("onClose");
|
|
10924
|
+
},
|
|
10862
10925
|
onMount: function() {
|
|
10863
10926
|
this.callHandler("onMount");
|
|
10864
10927
|
},
|
|
@@ -10913,7 +10976,7 @@ var service = (funcParams) => {
|
|
|
10913
10976
|
{ key: "selectedNodeId", value: param.selectedNodeId },
|
|
10914
10977
|
{ key: "uncollapsedIds", value: param.uncollapsedIds }
|
|
10915
10978
|
];
|
|
10916
|
-
const response = await this.callExecuteEvents(param, apiBody, "
|
|
10979
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10917
10980
|
return response == null ? void 0 : response.data;
|
|
10918
10981
|
},
|
|
10919
10982
|
getSelectOptions: async function(param) {
|
|
@@ -11230,6 +11293,21 @@ const AreaBarGraph = {
|
|
|
11230
11293
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11231
11294
|
}
|
|
11232
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
|
+
};
|
|
11233
11311
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11234
11312
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11235
11313
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11497,9 +11575,11 @@ var WrapperSection = {
|
|
|
11497
11575
|
config: {
|
|
11498
11576
|
layout: 12,
|
|
11499
11577
|
main: {
|
|
11500
|
-
rowSpacing: 3,
|
|
11501
11578
|
divider: true,
|
|
11502
|
-
label: "Default Label"
|
|
11579
|
+
label: "Default Label",
|
|
11580
|
+
rowSpacing: 2,
|
|
11581
|
+
columnSpacing: 2,
|
|
11582
|
+
spacing: 2
|
|
11503
11583
|
},
|
|
11504
11584
|
defaultStyle: true
|
|
11505
11585
|
},
|
|
@@ -11512,6 +11592,10 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11512
11592
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11513
11593
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11514
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);
|
|
11515
11599
|
if (config2.defaultStyle) {
|
|
11516
11600
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11517
11601
|
}
|
|
@@ -11786,7 +11870,8 @@ const Box = {
|
|
|
11786
11870
|
config: {
|
|
11787
11871
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11788
11872
|
main: {
|
|
11789
|
-
iconName: ""
|
|
11873
|
+
iconName: "",
|
|
11874
|
+
onClick: "onClick"
|
|
11790
11875
|
},
|
|
11791
11876
|
style: {}
|
|
11792
11877
|
}
|
|
@@ -12152,7 +12237,6 @@ const DateTime = {
|
|
|
12152
12237
|
const buildDate = (config2, componentScope2) => {
|
|
12153
12238
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12154
12239
|
dateInputField.config.main.label = config2.label;
|
|
12155
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12156
12240
|
dateInputField.scope = componentScope2;
|
|
12157
12241
|
if (config2.layout) {
|
|
12158
12242
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12174,7 +12258,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12174
12258
|
const buildDateTime = (config2, componentScope2) => {
|
|
12175
12259
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12176
12260
|
dateTimeInputField.config.main.label = config2.label;
|
|
12177
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12178
12261
|
dateTimeInputField.scope = componentScope2;
|
|
12179
12262
|
if (config2.layout) {
|
|
12180
12263
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12550,7 +12633,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12550
12633
|
if (config2.style) {
|
|
12551
12634
|
array.config.style = JSON.parse(config2.style);
|
|
12552
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);
|
|
12553
12639
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12640
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12554
12641
|
array.config.main.label = config2.label;
|
|
12555
12642
|
array.scope = componentScope2;
|
|
12556
12643
|
return array;
|
|
@@ -12625,7 +12712,8 @@ const FileInput = {
|
|
|
12625
12712
|
required: false,
|
|
12626
12713
|
onUpload: "onFileUpload",
|
|
12627
12714
|
onDownload: "onFileDownload",
|
|
12628
|
-
label: "Aggrement Copy"
|
|
12715
|
+
label: "Aggrement Copy",
|
|
12716
|
+
"onClick": "onClick"
|
|
12629
12717
|
},
|
|
12630
12718
|
style: {
|
|
12631
12719
|
backgroundColor: "none"
|
|
@@ -12646,6 +12734,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12646
12734
|
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12647
12735
|
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12648
12736
|
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12737
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12649
12738
|
box.config.main.description = config2.description;
|
|
12650
12739
|
box.config.main.toolTip = config2.toolTip;
|
|
12651
12740
|
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
@@ -12653,6 +12742,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12653
12742
|
if (config2.toolTipPosition) {
|
|
12654
12743
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12655
12744
|
}
|
|
12745
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12656
12746
|
return box;
|
|
12657
12747
|
};
|
|
12658
12748
|
const Stepper = {
|
|
@@ -12709,6 +12799,7 @@ const PopUP = {
|
|
|
12709
12799
|
},
|
|
12710
12800
|
main: {
|
|
12711
12801
|
label: "PopUp",
|
|
12802
|
+
onClose: "onClose",
|
|
12712
12803
|
fullScreen: false,
|
|
12713
12804
|
fullWidth: false,
|
|
12714
12805
|
maxWidth: false,
|
|
@@ -12932,7 +13023,8 @@ const imageUiSchema = {
|
|
|
12932
13023
|
config: {
|
|
12933
13024
|
layout: 3,
|
|
12934
13025
|
main: {
|
|
12935
|
-
url: ""
|
|
13026
|
+
url: "",
|
|
13027
|
+
onClick: "onClick"
|
|
12936
13028
|
},
|
|
12937
13029
|
style: {}
|
|
12938
13030
|
}
|
|
@@ -12950,6 +13042,8 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12950
13042
|
if (config2.height) {
|
|
12951
13043
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12952
13044
|
}
|
|
13045
|
+
image.config.main.toolTip = config2.toolTip;
|
|
13046
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12953
13047
|
return image;
|
|
12954
13048
|
};
|
|
12955
13049
|
const buildAreaGraph = (config2, componentScope2) => {
|
|
@@ -12983,9 +13077,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12983
13077
|
if (config2.xAxisFormatType) {
|
|
12984
13078
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
12985
13079
|
}
|
|
12986
|
-
if (config2.xAxisTickCount) {
|
|
12987
|
-
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
12988
|
-
}
|
|
12989
13080
|
if (config2.yAxisTickCount) {
|
|
12990
13081
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
12991
13082
|
}
|
|
@@ -13011,6 +13102,68 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13011
13102
|
}
|
|
13012
13103
|
return AreaGraph;
|
|
13013
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
|
+
};
|
|
13014
13167
|
const cameraUiSchema = {
|
|
13015
13168
|
type: "Control",
|
|
13016
13169
|
scope: "#/properties/camera",
|
|
@@ -13051,7 +13204,7 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
13051
13204
|
camera.config.main.color = config2.color;
|
|
13052
13205
|
}
|
|
13053
13206
|
if (config2.label) {
|
|
13054
|
-
camera.config.main.
|
|
13207
|
+
camera.config.main.label = config2.label;
|
|
13055
13208
|
}
|
|
13056
13209
|
return camera;
|
|
13057
13210
|
};
|
|
@@ -13164,6 +13317,36 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13164
13317
|
OTP.config.main.length = +config2.length;
|
|
13165
13318
|
return OTP;
|
|
13166
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
|
+
};
|
|
13167
13350
|
const HierarchyChart = {
|
|
13168
13351
|
type: "Control",
|
|
13169
13352
|
scope: "#/properties/HierarchyChart",
|
|
@@ -13393,6 +13576,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13393
13576
|
case "AreaGraph":
|
|
13394
13577
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13395
13578
|
break;
|
|
13579
|
+
case "StackBarLineGraph":
|
|
13580
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13581
|
+
break;
|
|
13396
13582
|
default:
|
|
13397
13583
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13398
13584
|
break;
|
|
@@ -13441,6 +13627,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13441
13627
|
case "Camera":
|
|
13442
13628
|
elements = buildCamera(config2, componentScope2);
|
|
13443
13629
|
break;
|
|
13630
|
+
case "PdfViewer":
|
|
13631
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13632
|
+
break;
|
|
13444
13633
|
default:
|
|
13445
13634
|
schema = {
|
|
13446
13635
|
type: "object",
|