impaktapps-ui-builder 1.0.320 → 1.0.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +235 -35
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +25 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +12 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +39 -8
- package/src/impaktapps-ui-builder/runtime/services/service.ts +23 -2
|
@@ -6280,7 +6280,8 @@ const ComponentSchema = {
|
|
|
6280
6280
|
{ title: "Timer", const: "Timer" },
|
|
6281
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6282
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6283
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
+
{ title: "PDF", const: "PdfViewer" }
|
|
6284
6285
|
]
|
|
6285
6286
|
},
|
|
6286
6287
|
elementType: {
|
|
@@ -6656,7 +6657,8 @@ const ComponentSchema = {
|
|
|
6656
6657
|
title: "Stack Horizontal Bar Graph",
|
|
6657
6658
|
const: "HorizontalStackBarGraph"
|
|
6658
6659
|
},
|
|
6659
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6660
|
+
{ title: "Area Graph", const: "AreaGraph" },
|
|
6661
|
+
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6660
6662
|
]
|
|
6661
6663
|
},
|
|
6662
6664
|
iconName: {
|
|
@@ -6709,7 +6711,12 @@ const ComponentSchema = {
|
|
|
6709
6711
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6710
6712
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6711
6713
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6712
|
-
{ title: "Payout", const: "Payout" }
|
|
6714
|
+
{ title: "Payout", const: "Payout" },
|
|
6715
|
+
{ title: "Info Outlined", const: "InfoOutlinedIcon" },
|
|
6716
|
+
{ title: "Territory Add", const: "TerritoryAdd" },
|
|
6717
|
+
{ title: "Territory Edit", const: "TerritoryEdit" },
|
|
6718
|
+
{ title: "Territory Delete", const: "TerritoryDelete" },
|
|
6719
|
+
{ title: "Git Compare", const: "GitCompare" }
|
|
6713
6720
|
]
|
|
6714
6721
|
},
|
|
6715
6722
|
color: {
|
|
@@ -7815,7 +7822,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7815
7822
|
]
|
|
7816
7823
|
};
|
|
7817
7824
|
};
|
|
7818
|
-
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
|
|
7825
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
|
|
7819
7826
|
return {
|
|
7820
7827
|
type: "Control",
|
|
7821
7828
|
scope: `#/properties/${parentScope}`,
|
|
@@ -7824,7 +7831,9 @@ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScop
|
|
|
7824
7831
|
},
|
|
7825
7832
|
config: {
|
|
7826
7833
|
layout: 12,
|
|
7827
|
-
main: {
|
|
7834
|
+
main: {
|
|
7835
|
+
label: arrayLabel
|
|
7836
|
+
},
|
|
7828
7837
|
style: {
|
|
7829
7838
|
marginLeft: "-24px",
|
|
7830
7839
|
marginBottom: "24px !important",
|
|
@@ -8156,7 +8165,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8156
8165
|
getInputField("description", "Description"),
|
|
8157
8166
|
getSelectField("growthRate", "Growth Rate"),
|
|
8158
8167
|
getInputField("color", "Card Color"),
|
|
8159
|
-
emptyBox$1("MetricEmpty1", { xs: 6, sm:
|
|
8168
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8160
8169
|
];
|
|
8161
8170
|
break;
|
|
8162
8171
|
case "Button":
|
|
@@ -8190,22 +8199,24 @@ const buildPropertiesSection = function(type) {
|
|
|
8190
8199
|
getInputField("subHeader", "Sub Header"),
|
|
8191
8200
|
getSelectField("graphType", "Graph Type"),
|
|
8192
8201
|
getInputField("leftLabel", "Left Label"),
|
|
8202
|
+
getInputField("rightLabel", "Right Label"),
|
|
8193
8203
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8194
8204
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8195
8205
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
8196
8206
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
8197
8207
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
8198
|
-
getInputField("yAxisValue", "Y-
|
|
8199
|
-
getInputField("xAxisValue", "X-
|
|
8208
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
8209
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
8200
8210
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8201
8211
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8202
8212
|
getInputField("leftMargin", "Left Margin"),
|
|
8203
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8204
8213
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8214
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8205
8215
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
getArrayControlMultiField("
|
|
8216
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8217
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8218
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8219
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8209
8220
|
];
|
|
8210
8221
|
break;
|
|
8211
8222
|
case "WrapperSection":
|
|
@@ -8217,7 +8228,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8217
8228
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8218
8229
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8219
8230
|
getInputField("spacing", "Spacing"),
|
|
8220
|
-
|
|
8231
|
+
getInputField("iconUrl", "Icon Url"),
|
|
8232
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8233
|
+
emptyBox$1("WrapperSectionEmpty2")
|
|
8221
8234
|
];
|
|
8222
8235
|
break;
|
|
8223
8236
|
case "TabSection":
|
|
@@ -8289,12 +8302,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8289
8302
|
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8290
8303
|
];
|
|
8291
8304
|
break;
|
|
8305
|
+
case "PdfViewer":
|
|
8306
|
+
uiSchema.elements = [
|
|
8307
|
+
getInputField("scale", "Zoom"),
|
|
8308
|
+
emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8309
|
+
];
|
|
8310
|
+
break;
|
|
8292
8311
|
case "Date":
|
|
8293
8312
|
uiSchema.elements = [
|
|
8294
8313
|
getSelectField("variant", "Variant"),
|
|
8295
8314
|
getInputField("toolTip", "Tooltip"),
|
|
8296
8315
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8297
|
-
emptyBox$1("
|
|
8316
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8298
8317
|
];
|
|
8299
8318
|
break;
|
|
8300
8319
|
case "DateTime":
|
|
@@ -8302,7 +8321,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8302
8321
|
getSelectField("variant", "Variant"),
|
|
8303
8322
|
getInputField("toolTip", "Tooltip"),
|
|
8304
8323
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8305
|
-
emptyBox$1("
|
|
8324
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8306
8325
|
];
|
|
8307
8326
|
break;
|
|
8308
8327
|
case "Thought":
|
|
@@ -8381,13 +8400,13 @@ const StyleSection = {
|
|
|
8381
8400
|
}
|
|
8382
8401
|
]
|
|
8383
8402
|
};
|
|
8384
|
-
const TableSection = (theme) => {
|
|
8403
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8385
8404
|
const uiSchema = {
|
|
8386
8405
|
type: "HorizontalLayout",
|
|
8387
8406
|
elements: [
|
|
8388
8407
|
{
|
|
8389
8408
|
type: "Control",
|
|
8390
|
-
scope:
|
|
8409
|
+
scope: `#/properties/${scopeName}`,
|
|
8391
8410
|
options: {
|
|
8392
8411
|
widget: "Table"
|
|
8393
8412
|
},
|
|
@@ -8398,7 +8417,7 @@ const TableSection = (theme) => {
|
|
|
8398
8417
|
{
|
|
8399
8418
|
widget: {
|
|
8400
8419
|
type: "Control",
|
|
8401
|
-
scope:
|
|
8420
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8402
8421
|
options: {
|
|
8403
8422
|
widget: "IconButton"
|
|
8404
8423
|
},
|
|
@@ -8425,7 +8444,7 @@ const TableSection = (theme) => {
|
|
|
8425
8444
|
{
|
|
8426
8445
|
widget: {
|
|
8427
8446
|
type: "Control",
|
|
8428
|
-
scope: "
|
|
8447
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8429
8448
|
options: {
|
|
8430
8449
|
widget: "IconButton"
|
|
8431
8450
|
},
|
|
@@ -8490,7 +8509,7 @@ const TableSection = (theme) => {
|
|
|
8490
8509
|
},
|
|
8491
8510
|
{
|
|
8492
8511
|
type: "Control",
|
|
8493
|
-
scope: "
|
|
8512
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8494
8513
|
options: {
|
|
8495
8514
|
widget: "Button"
|
|
8496
8515
|
},
|
|
@@ -8683,6 +8702,10 @@ var buildConfig = (FormData) => {
|
|
|
8683
8702
|
if (formData.events) {
|
|
8684
8703
|
delete formData.events;
|
|
8685
8704
|
}
|
|
8705
|
+
if (formData.tabLabelElements) {
|
|
8706
|
+
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8707
|
+
delete formData.tabLabelElements;
|
|
8708
|
+
}
|
|
8686
8709
|
component = { ...formData, ...component };
|
|
8687
8710
|
return component;
|
|
8688
8711
|
};
|
|
@@ -8841,7 +8864,7 @@ const sectionLabels = {
|
|
|
8841
8864
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8842
8865
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8843
8866
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8844
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8867
|
+
TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
|
|
8845
8868
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8846
8869
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8847
8870
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8862,8 +8885,9 @@ const sectionLabels = {
|
|
|
8862
8885
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8863
8886
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8864
8887
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8865
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8888
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8866
8889
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8890
|
+
PdfViewer: ["Core", "Properties", "Style"],
|
|
8867
8891
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8868
8892
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8869
8893
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8888,6 +8912,7 @@ function refreshPage(type, store2) {
|
|
|
8888
8912
|
Style: StyleSection,
|
|
8889
8913
|
Events: EventSection(store2.theme.myTheme),
|
|
8890
8914
|
Components: TableSection(store2.theme.myTheme),
|
|
8915
|
+
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8891
8916
|
Properties: buildPropertiesSection(type),
|
|
8892
8917
|
Validation: ValidationSection
|
|
8893
8918
|
};
|
|
@@ -9085,8 +9110,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9085
9110
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9086
9111
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9087
9112
|
if (path) {
|
|
9088
|
-
|
|
9089
|
-
|
|
9113
|
+
let finalPath = `${path}`;
|
|
9114
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
|
|
9115
|
+
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9116
|
+
} else {
|
|
9117
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9118
|
+
}
|
|
9090
9119
|
store2.searchParams.set("path", finalPath);
|
|
9091
9120
|
store2.setSearchParams(store2.searchParams);
|
|
9092
9121
|
this.setPage();
|
|
@@ -9098,7 +9127,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9098
9127
|
var _a;
|
|
9099
9128
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9100
9129
|
const rowId = sessionStorage.getItem("rowId");
|
|
9101
|
-
|
|
9130
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9131
|
+
if (isTabLabelElements) {
|
|
9132
|
+
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9133
|
+
} else {
|
|
9134
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9135
|
+
}
|
|
9102
9136
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9103
9137
|
const data = path ? _.get(response, path) : response;
|
|
9104
9138
|
store2.setFormdata(data);
|
|
@@ -9106,6 +9140,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9106
9140
|
store2.updateDialog("popUpComponentSection");
|
|
9107
9141
|
}
|
|
9108
9142
|
sessionStorage.removeItem("rowId");
|
|
9143
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
9109
9144
|
},
|
|
9110
9145
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
9111
9146
|
var _a;
|
|
@@ -9126,9 +9161,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9126
9161
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9127
9162
|
store2.formData.elements = [];
|
|
9128
9163
|
}
|
|
9164
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9165
|
+
store2.formData.tabLabelElements = [];
|
|
9166
|
+
}
|
|
9129
9167
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9130
9168
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9131
|
-
|
|
9169
|
+
let finalPath = `${path}`;
|
|
9170
|
+
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9171
|
+
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9172
|
+
} else {
|
|
9173
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9174
|
+
}
|
|
9132
9175
|
store2.searchParams.set("path", finalPath);
|
|
9133
9176
|
store2.setSearchParams(store2.searchParams);
|
|
9134
9177
|
this.setPage();
|
|
@@ -9163,6 +9206,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9163
9206
|
deletePopUpComponent: function() {
|
|
9164
9207
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9165
9208
|
sessionStorage.setItem("rowId", rowId);
|
|
9209
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
9166
9210
|
store2.updateDialog("popUpComponentSection");
|
|
9167
9211
|
},
|
|
9168
9212
|
deletePopUpEvent: function() {
|
|
@@ -9209,9 +9253,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9209
9253
|
if (!Array.isArray(store2.formData.events)) {
|
|
9210
9254
|
store2.formData.events = [];
|
|
9211
9255
|
}
|
|
9256
|
+
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9257
|
+
store2.formData.tabLabelElements = [];
|
|
9258
|
+
}
|
|
9212
9259
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9213
9260
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9214
|
-
const
|
|
9261
|
+
const currentLength = {
|
|
9262
|
+
"TabsComponent": formData.tabLabelElements.length,
|
|
9263
|
+
"Component": formData.elements.length,
|
|
9264
|
+
"Events": formData.events.length
|
|
9265
|
+
};
|
|
9266
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
9215
9267
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9216
9268
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9217
9269
|
const notificationMessages = {
|
|
@@ -9246,6 +9298,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9246
9298
|
if (elementType === "Component") {
|
|
9247
9299
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9248
9300
|
}
|
|
9301
|
+
if (elementType === "TabsComponent") {
|
|
9302
|
+
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9303
|
+
}
|
|
9249
9304
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9250
9305
|
},
|
|
9251
9306
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -9447,7 +9502,9 @@ const EventSchema = {
|
|
|
9447
9502
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9448
9503
|
{ title: "Download", const: "onDownload" },
|
|
9449
9504
|
{ title: "Fail", const: "Fail" },
|
|
9450
|
-
{ title: "
|
|
9505
|
+
{ title: "onClose", const: "onClose" },
|
|
9506
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9507
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9451
9508
|
]
|
|
9452
9509
|
},
|
|
9453
9510
|
Handler: {
|
|
@@ -10833,6 +10890,25 @@ var service = (funcParams) => {
|
|
|
10833
10890
|
funcParams.store.setUiSchema(uiSchema);
|
|
10834
10891
|
});
|
|
10835
10892
|
},
|
|
10893
|
+
getStyle: () => {
|
|
10894
|
+
var _a, _b, _c, _d;
|
|
10895
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10896
|
+
if (cloneEventGroup.setStyle) {
|
|
10897
|
+
let finalResponse = {};
|
|
10898
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10899
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10900
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10901
|
+
finalResponse = executeEvents({
|
|
10902
|
+
...executeEventsParameters,
|
|
10903
|
+
config: eventConfig,
|
|
10904
|
+
componentName: path
|
|
10905
|
+
});
|
|
10906
|
+
}
|
|
10907
|
+
return finalResponse;
|
|
10908
|
+
}
|
|
10909
|
+
}
|
|
10910
|
+
return {};
|
|
10911
|
+
},
|
|
10836
10912
|
onCellRenderer: (cellParams) => {
|
|
10837
10913
|
var _a, _b, _c, _d, _e;
|
|
10838
10914
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
@@ -10862,6 +10938,9 @@ var service = (funcParams) => {
|
|
|
10862
10938
|
onFileDelete: async function() {
|
|
10863
10939
|
this.callHandler("onFileDelete");
|
|
10864
10940
|
},
|
|
10941
|
+
onClose: function() {
|
|
10942
|
+
this.callHandler("onClose");
|
|
10943
|
+
},
|
|
10865
10944
|
onMount: function() {
|
|
10866
10945
|
this.callHandler("onMount");
|
|
10867
10946
|
},
|
|
@@ -10912,8 +10991,8 @@ var service = (funcParams) => {
|
|
|
10912
10991
|
return;
|
|
10913
10992
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
10914
10993
|
const promises = ChangeEventsKeysArray.flatMap((componentName) => {
|
|
10915
|
-
var _a
|
|
10916
|
-
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]
|
|
10994
|
+
var _a;
|
|
10995
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
|
|
10917
10996
|
return [];
|
|
10918
10997
|
}
|
|
10919
10998
|
return eventGroups.onChange[componentName].map(
|
|
@@ -11211,6 +11290,21 @@ const AreaBarGraph = {
|
|
|
11211
11290
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11212
11291
|
}
|
|
11213
11292
|
};
|
|
11293
|
+
const StackBarLineG = {
|
|
11294
|
+
type: "Control",
|
|
11295
|
+
scope: "#/properties/graph",
|
|
11296
|
+
options: {
|
|
11297
|
+
widget: "Graph"
|
|
11298
|
+
},
|
|
11299
|
+
config: {
|
|
11300
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11301
|
+
main: {
|
|
11302
|
+
type: "StackBarLineGraph",
|
|
11303
|
+
legendLabels: null
|
|
11304
|
+
},
|
|
11305
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11306
|
+
}
|
|
11307
|
+
};
|
|
11214
11308
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11215
11309
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11216
11310
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11495,6 +11589,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11495
11589
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11496
11590
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11497
11591
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11592
|
+
wrapper.config.main.icon = config2.iconUrl;
|
|
11498
11593
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11499
11594
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11500
11595
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
@@ -12139,7 +12234,6 @@ const DateTime = {
|
|
|
12139
12234
|
const buildDate = (config2, componentScope2) => {
|
|
12140
12235
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12141
12236
|
dateInputField.config.main.label = config2.label;
|
|
12142
|
-
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12143
12237
|
dateInputField.scope = componentScope2;
|
|
12144
12238
|
if (config2.layout) {
|
|
12145
12239
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12161,7 +12255,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12161
12255
|
const buildDateTime = (config2, componentScope2) => {
|
|
12162
12256
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12163
12257
|
dateTimeInputField.config.main.label = config2.label;
|
|
12164
|
-
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12165
12258
|
dateTimeInputField.scope = componentScope2;
|
|
12166
12259
|
if (config2.layout) {
|
|
12167
12260
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12703,6 +12796,7 @@ const PopUP = {
|
|
|
12703
12796
|
},
|
|
12704
12797
|
main: {
|
|
12705
12798
|
label: "PopUp",
|
|
12799
|
+
onClose: "onClose",
|
|
12706
12800
|
fullScreen: false,
|
|
12707
12801
|
fullWidth: false,
|
|
12708
12802
|
maxWidth: false,
|
|
@@ -12980,12 +13074,12 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12980
13074
|
if (config2.xAxisFormatType) {
|
|
12981
13075
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
12982
13076
|
}
|
|
12983
|
-
if (config2.xAxisTickCount) {
|
|
12984
|
-
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
12985
|
-
}
|
|
12986
13077
|
if (config2.yAxisTickCount) {
|
|
12987
13078
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
12988
13079
|
}
|
|
13080
|
+
if (config2.xAxisTickCount) {
|
|
13081
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13082
|
+
}
|
|
12989
13083
|
if (config2.xAxisValue) {
|
|
12990
13084
|
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
12991
13085
|
}
|
|
@@ -13008,6 +13102,71 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13008
13102
|
}
|
|
13009
13103
|
return AreaGraph;
|
|
13010
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.xAxisTickCount) {
|
|
13137
|
+
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13138
|
+
}
|
|
13139
|
+
if (config2.xAxisValue) {
|
|
13140
|
+
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13141
|
+
}
|
|
13142
|
+
if (config2.xAxisType) {
|
|
13143
|
+
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13144
|
+
}
|
|
13145
|
+
if (config2.bottomLabel) {
|
|
13146
|
+
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13147
|
+
}
|
|
13148
|
+
if (config2.leftLabel) {
|
|
13149
|
+
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13150
|
+
}
|
|
13151
|
+
if (config2.rightLabel) {
|
|
13152
|
+
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13153
|
+
}
|
|
13154
|
+
if (config2.disableLeftLabel) {
|
|
13155
|
+
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13156
|
+
}
|
|
13157
|
+
if (config2.growthRateKey) {
|
|
13158
|
+
StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
|
|
13159
|
+
}
|
|
13160
|
+
if (config2.tooltipUnit) {
|
|
13161
|
+
StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
|
|
13162
|
+
}
|
|
13163
|
+
if (config2.leftMargin) {
|
|
13164
|
+
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13165
|
+
left: config2.leftMargin
|
|
13166
|
+
};
|
|
13167
|
+
}
|
|
13168
|
+
return StackBarLineGraph;
|
|
13169
|
+
};
|
|
13011
13170
|
const cameraUiSchema = {
|
|
13012
13171
|
type: "Control",
|
|
13013
13172
|
scope: "#/properties/camera",
|
|
@@ -13161,6 +13320,36 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13161
13320
|
OTP.config.main.length = +config2.length;
|
|
13162
13321
|
return OTP;
|
|
13163
13322
|
};
|
|
13323
|
+
var pdfViewer = {
|
|
13324
|
+
type: "Control",
|
|
13325
|
+
scope: "#/properties/pdfviewer",
|
|
13326
|
+
options: {
|
|
13327
|
+
widget: "PdfViewer"
|
|
13328
|
+
},
|
|
13329
|
+
config: {
|
|
13330
|
+
layout: {
|
|
13331
|
+
xs: 12,
|
|
13332
|
+
sm: 12,
|
|
13333
|
+
md: 12,
|
|
13334
|
+
lg: 12
|
|
13335
|
+
},
|
|
13336
|
+
main: {
|
|
13337
|
+
title: "PDF"
|
|
13338
|
+
}
|
|
13339
|
+
}
|
|
13340
|
+
};
|
|
13341
|
+
const buildPdfViewer = (config2, componentScope2) => {
|
|
13342
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
13343
|
+
PdfViewer.scope = componentScope2;
|
|
13344
|
+
PdfViewer.config.main.scale = config2.scale;
|
|
13345
|
+
if (config2.layout) {
|
|
13346
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
13347
|
+
}
|
|
13348
|
+
if (config2.style) {
|
|
13349
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
13350
|
+
}
|
|
13351
|
+
return PdfViewer;
|
|
13352
|
+
};
|
|
13164
13353
|
let schema = {
|
|
13165
13354
|
type: "object",
|
|
13166
13355
|
properties: {},
|
|
@@ -13343,6 +13532,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13343
13532
|
case "AreaGraph":
|
|
13344
13533
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13345
13534
|
break;
|
|
13535
|
+
case "StackBarLineGraph":
|
|
13536
|
+
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13537
|
+
break;
|
|
13346
13538
|
default:
|
|
13347
13539
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13348
13540
|
break;
|
|
@@ -13391,6 +13583,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13391
13583
|
case "Camera":
|
|
13392
13584
|
elements = buildCamera(config2, componentScope2);
|
|
13393
13585
|
break;
|
|
13586
|
+
case "PdfViewer":
|
|
13587
|
+
elements = buildPdfViewer(config2, componentScope2);
|
|
13588
|
+
break;
|
|
13394
13589
|
default:
|
|
13395
13590
|
schema = {
|
|
13396
13591
|
type: "object",
|
|
@@ -13494,6 +13689,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13494
13689
|
});
|
|
13495
13690
|
}
|
|
13496
13691
|
}
|
|
13692
|
+
if (config2.tabLabelElements) {
|
|
13693
|
+
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13694
|
+
return buildUiSchema(e, store2);
|
|
13695
|
+
});
|
|
13696
|
+
}
|
|
13497
13697
|
return elements;
|
|
13498
13698
|
};
|
|
13499
13699
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|