impaktapps-ui-builder 0.0.96 → 0.0.97-alpha.10
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 +78 -57
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +10 -18
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +7 -4
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -1
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +15 -3
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +5 -2
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +9 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +6 -18
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +47 -48
|
@@ -7350,7 +7350,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7350
7350
|
main: {
|
|
7351
7351
|
heading,
|
|
7352
7352
|
minRows: 8,
|
|
7353
|
-
hideButton
|
|
7353
|
+
hideButton,
|
|
7354
|
+
enableCodeEditor: true
|
|
7354
7355
|
}
|
|
7355
7356
|
}
|
|
7356
7357
|
};
|
|
@@ -7456,8 +7457,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7456
7457
|
case "TextArea":
|
|
7457
7458
|
uiSchema.elements = [
|
|
7458
7459
|
getInputField("placeholder", "Placeholder"),
|
|
7459
|
-
|
|
7460
|
-
|
|
7460
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7461
|
+
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7461
7462
|
];
|
|
7462
7463
|
break;
|
|
7463
7464
|
case "SpeedoMeter":
|
|
@@ -7533,6 +7534,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7533
7534
|
getSelectField("graphType", "Graph Type"),
|
|
7534
7535
|
getInputField("leftLabel", "Left Label"),
|
|
7535
7536
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7537
|
+
getInputField("leftLabelMargin", "Left Label Margin"),
|
|
7538
|
+
getInputField("leftLabelOffset", "Left Label Offset"),
|
|
7536
7539
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7537
7540
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7538
7541
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
@@ -7569,7 +7572,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7569
7572
|
getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
|
|
7570
7573
|
getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
|
|
7571
7574
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
7572
|
-
getRadioInputField("
|
|
7575
|
+
getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
|
|
7576
|
+
getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
|
|
7573
7577
|
getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
|
|
7574
7578
|
getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
|
|
7575
7579
|
getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
|
|
@@ -7578,7 +7582,6 @@ const buildPropertiesSection = function(type) {
|
|
|
7578
7582
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
7579
7583
|
getInputField("selectKey", "Selection Key"),
|
|
7580
7584
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
7581
|
-
emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7582
7585
|
buildWrapper("Tree Table Properties", [
|
|
7583
7586
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7584
7587
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -9270,7 +9273,7 @@ function executeCustomHandler(params) {
|
|
|
9270
9273
|
}
|
|
9271
9274
|
}
|
|
9272
9275
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9273
|
-
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9276
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9274
9277
|
store2.setSchema((pre) => {
|
|
9275
9278
|
var _a;
|
|
9276
9279
|
return {
|
|
@@ -9284,7 +9287,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9284
9287
|
}
|
|
9285
9288
|
};
|
|
9286
9289
|
});
|
|
9287
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9290
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9288
9291
|
store2.setSchema((pre) => {
|
|
9289
9292
|
var _a;
|
|
9290
9293
|
return {
|
|
@@ -9467,7 +9470,7 @@ var service = (funcParams) => {
|
|
|
9467
9470
|
};
|
|
9468
9471
|
return {
|
|
9469
9472
|
setPage: async function() {
|
|
9470
|
-
var _a, _b, _c, _d;
|
|
9473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
9471
9474
|
funcParams.store.setFormdata({});
|
|
9472
9475
|
funcParams.store.newData = {};
|
|
9473
9476
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9499,7 +9502,6 @@ var service = (funcParams) => {
|
|
|
9499
9502
|
flexDirection: "row",
|
|
9500
9503
|
position: "absolute",
|
|
9501
9504
|
bottom: 0,
|
|
9502
|
-
marginBottom: "-8px",
|
|
9503
9505
|
height: "fit-content",
|
|
9504
9506
|
overflow: "hidden",
|
|
9505
9507
|
zIndex: 1e3,
|
|
@@ -9518,7 +9520,7 @@ var service = (funcParams) => {
|
|
|
9518
9520
|
heading: "Copywriter@ACT21.IO"
|
|
9519
9521
|
},
|
|
9520
9522
|
style: {
|
|
9521
|
-
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9523
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
9522
9524
|
fontSize: "12px",
|
|
9523
9525
|
textAlign: "center",
|
|
9524
9526
|
lineHeight: 2,
|
|
@@ -9528,13 +9530,13 @@ var service = (funcParams) => {
|
|
|
9528
9530
|
margin: 0,
|
|
9529
9531
|
flexGrow: 1,
|
|
9530
9532
|
height: 0,
|
|
9531
|
-
transform: "translate(-50%,0%)"
|
|
9533
|
+
transform: "translate(-50%, 0%)"
|
|
9532
9534
|
}
|
|
9533
9535
|
}
|
|
9534
9536
|
},
|
|
9535
9537
|
{
|
|
9536
9538
|
type: "Control",
|
|
9537
|
-
scope: "#/properties/
|
|
9539
|
+
scope: "#/properties/FooterBackIcon",
|
|
9538
9540
|
options: {
|
|
9539
9541
|
widget: "Box"
|
|
9540
9542
|
},
|
|
@@ -9545,24 +9547,24 @@ var service = (funcParams) => {
|
|
|
9545
9547
|
width: "fit-content"
|
|
9546
9548
|
},
|
|
9547
9549
|
style: {
|
|
9548
|
-
fill: theme.palette.primary.main,
|
|
9550
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
9549
9551
|
width: 20,
|
|
9550
9552
|
height: 0,
|
|
9551
|
-
margin: 0,
|
|
9552
9553
|
top: 0,
|
|
9553
9554
|
right: { xs: "12px", sm: "84px" },
|
|
9554
9555
|
position: "absolute",
|
|
9555
9556
|
fontSize: "12px",
|
|
9556
9557
|
cursor: "pointer",
|
|
9557
9558
|
":hover": {
|
|
9558
|
-
fill: theme.palette.primary.dark
|
|
9559
|
-
}
|
|
9559
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
9560
|
+
},
|
|
9561
|
+
marginRight: "13px"
|
|
9560
9562
|
}
|
|
9561
9563
|
}
|
|
9562
9564
|
},
|
|
9563
9565
|
{
|
|
9564
9566
|
type: "Control",
|
|
9565
|
-
scope: "#/properties/
|
|
9567
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
9566
9568
|
options: {
|
|
9567
9569
|
widget: "Box"
|
|
9568
9570
|
},
|
|
@@ -9577,24 +9579,24 @@ var service = (funcParams) => {
|
|
|
9577
9579
|
lineHeight: 1,
|
|
9578
9580
|
height: 0,
|
|
9579
9581
|
width: "fit-content",
|
|
9580
|
-
color: theme.palette.primary.main,
|
|
9581
|
-
fontSize: "
|
|
9582
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
9583
|
+
fontSize: "14px",
|
|
9582
9584
|
cursor: "pointer",
|
|
9583
9585
|
marginLeft: "2px",
|
|
9584
|
-
marginRight: 0,
|
|
9585
9586
|
top: 3,
|
|
9586
9587
|
right: "12px",
|
|
9587
9588
|
position: "absolute",
|
|
9588
9589
|
":hover": {
|
|
9589
|
-
color: theme.palette.primary.dark
|
|
9590
|
-
}
|
|
9590
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
9591
|
+
},
|
|
9592
|
+
marginRight: "4px"
|
|
9591
9593
|
}
|
|
9592
9594
|
}
|
|
9593
9595
|
}
|
|
9594
9596
|
]
|
|
9595
9597
|
}
|
|
9596
9598
|
);
|
|
9597
|
-
const schema2 = (
|
|
9599
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
9598
9600
|
eventGroups = extractEvents(config);
|
|
9599
9601
|
executeEventsParameters = {
|
|
9600
9602
|
config: {},
|
|
@@ -10222,8 +10224,10 @@ const BarGraph = {
|
|
|
10222
10224
|
},
|
|
10223
10225
|
config: {
|
|
10224
10226
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10225
|
-
main: {
|
|
10226
|
-
|
|
10227
|
+
main: {
|
|
10228
|
+
legendLabels: null
|
|
10229
|
+
},
|
|
10230
|
+
style: { containerStyle: {}, labelStyle: {} }
|
|
10227
10231
|
}
|
|
10228
10232
|
};
|
|
10229
10233
|
const PieGraph = {
|
|
@@ -10235,7 +10239,8 @@ const PieGraph = {
|
|
|
10235
10239
|
config: {
|
|
10236
10240
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10237
10241
|
main: {
|
|
10238
|
-
type: "PieGraph"
|
|
10242
|
+
type: "PieGraph",
|
|
10243
|
+
legendLabels: null
|
|
10239
10244
|
},
|
|
10240
10245
|
style: {}
|
|
10241
10246
|
}
|
|
@@ -10250,22 +10255,7 @@ const LineGraph = {
|
|
|
10250
10255
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10251
10256
|
main: {
|
|
10252
10257
|
type: "LineGraph",
|
|
10253
|
-
|
|
10254
|
-
bottomLabel: "Years",
|
|
10255
|
-
leftLabel: "Incentive",
|
|
10256
|
-
gridHidden: true,
|
|
10257
|
-
numHidden: false,
|
|
10258
|
-
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
10259
|
-
axisLeft: true,
|
|
10260
|
-
axisBottom: true,
|
|
10261
|
-
hideLeftAxisLine: false,
|
|
10262
|
-
hideBottomAxisLine: false,
|
|
10263
|
-
legend: {
|
|
10264
|
-
labelColor: "green",
|
|
10265
|
-
direction: "row",
|
|
10266
|
-
align: "right",
|
|
10267
|
-
colorRectWidth: 20
|
|
10268
|
-
}
|
|
10258
|
+
legendLabels: null
|
|
10269
10259
|
},
|
|
10270
10260
|
style: {
|
|
10271
10261
|
containerStyle: {},
|
|
@@ -10284,9 +10274,12 @@ const HorizontalBarGraph = {
|
|
|
10284
10274
|
config: {
|
|
10285
10275
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10286
10276
|
main: {
|
|
10287
|
-
type: "HorizontalBarGraph"
|
|
10277
|
+
type: "HorizontalBarGraph",
|
|
10278
|
+
legendLabels: null
|
|
10288
10279
|
},
|
|
10289
|
-
style: {
|
|
10280
|
+
style: {
|
|
10281
|
+
labelStyle: {}
|
|
10282
|
+
}
|
|
10290
10283
|
}
|
|
10291
10284
|
};
|
|
10292
10285
|
const buildHorizontalBarGraph = (config, componentScope) => {
|
|
@@ -10304,8 +10297,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10304
10297
|
if (config.bottomAxisAngle) {
|
|
10305
10298
|
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10306
10299
|
}
|
|
10307
|
-
if (config.
|
|
10308
|
-
horizontalBarGraph.config.
|
|
10300
|
+
if (config.legendLabels) {
|
|
10301
|
+
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
10302
|
+
}
|
|
10303
|
+
if (config.pieArcColors) {
|
|
10304
|
+
horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
10309
10305
|
}
|
|
10310
10306
|
if (config.xAxisValue) {
|
|
10311
10307
|
horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
|
|
@@ -10448,7 +10444,7 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10448
10444
|
pieGraph.scope = componentScope;
|
|
10449
10445
|
pieGraph.config.main.header = config.heading;
|
|
10450
10446
|
if (config.legendLabels) {
|
|
10451
|
-
pieGraph.config.main.
|
|
10447
|
+
pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
10452
10448
|
}
|
|
10453
10449
|
if (config.xAxisValue) {
|
|
10454
10450
|
pieGraph.config.main.xAxisValue = config.xAxisValue;
|
|
@@ -10476,8 +10472,11 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10476
10472
|
}
|
|
10477
10473
|
barGraph.config.main.type = config.graphType;
|
|
10478
10474
|
barGraph.config.main.header = config.heading;
|
|
10479
|
-
if (config.
|
|
10480
|
-
barGraph.config.
|
|
10475
|
+
if (config.legendLabels) {
|
|
10476
|
+
barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
10477
|
+
}
|
|
10478
|
+
if (config.pieArcColors) {
|
|
10479
|
+
barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
10481
10480
|
}
|
|
10482
10481
|
if (config.xAxisValue) {
|
|
10483
10482
|
barGraph.config.main.xAxisValue = config.xAxisValue;
|
|
@@ -10500,6 +10499,14 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10500
10499
|
if (config.leftLabel) {
|
|
10501
10500
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
10502
10501
|
}
|
|
10502
|
+
if (config.leftLabelMargin) {
|
|
10503
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10504
|
+
left: config.leftLabelMargin
|
|
10505
|
+
};
|
|
10506
|
+
}
|
|
10507
|
+
if (config.leftLabelOffset) {
|
|
10508
|
+
barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
10509
|
+
}
|
|
10503
10510
|
barGraph.scope = componentScope;
|
|
10504
10511
|
return barGraph;
|
|
10505
10512
|
};
|
|
@@ -10660,7 +10667,7 @@ var Button = {
|
|
|
10660
10667
|
styleDefault: false,
|
|
10661
10668
|
icon: "",
|
|
10662
10669
|
onClick: "onClick",
|
|
10663
|
-
size: "
|
|
10670
|
+
size: "small"
|
|
10664
10671
|
},
|
|
10665
10672
|
style: {}
|
|
10666
10673
|
}
|
|
@@ -10755,8 +10762,11 @@ const buildTable = (config, componentScope) => {
|
|
|
10755
10762
|
if (config.downloadAllData) {
|
|
10756
10763
|
table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
|
|
10757
10764
|
}
|
|
10758
|
-
if (config.
|
|
10759
|
-
table.config.main.
|
|
10765
|
+
if (config.disableGlobalSearch) {
|
|
10766
|
+
table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
|
|
10767
|
+
}
|
|
10768
|
+
if (config.disableColumnFilter) {
|
|
10769
|
+
table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
|
|
10760
10770
|
}
|
|
10761
10771
|
if (config.disableSorting) {
|
|
10762
10772
|
table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
|
|
@@ -10849,10 +10859,7 @@ const buildUploadFile = (config, componentScope) => {
|
|
|
10849
10859
|
UploadFile.scope = componentScope;
|
|
10850
10860
|
UploadFile.config.main.label = config.label;
|
|
10851
10861
|
if (config.layout) {
|
|
10852
|
-
UploadFile.config.layout = config.layout;
|
|
10853
|
-
}
|
|
10854
|
-
if (config.layout) {
|
|
10855
|
-
uploadFile.config.layout = createLayoutFormat(config.layout);
|
|
10862
|
+
UploadFile.config.layout = createLayoutFormat(config.layout);
|
|
10856
10863
|
}
|
|
10857
10864
|
if (config.style) {
|
|
10858
10865
|
UploadFile.config.style = config.style;
|
|
@@ -11262,6 +11269,12 @@ const buildTextArea = (config, componentScope) => {
|
|
|
11262
11269
|
if (config.placeholder) {
|
|
11263
11270
|
textArea.config.main.placeholder = config.placeholder;
|
|
11264
11271
|
}
|
|
11272
|
+
if (config.enableCodeEditor) {
|
|
11273
|
+
textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
|
|
11274
|
+
}
|
|
11275
|
+
if (config.codeEditorLanguage) {
|
|
11276
|
+
textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
|
|
11277
|
+
}
|
|
11265
11278
|
textArea.scope = componentScope;
|
|
11266
11279
|
return textArea;
|
|
11267
11280
|
};
|
|
@@ -11349,11 +11362,19 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11349
11362
|
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
11350
11363
|
}
|
|
11351
11364
|
if (config.legendLabels) {
|
|
11352
|
-
lineGraph.config.main.
|
|
11365
|
+
lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
|
|
11353
11366
|
}
|
|
11354
11367
|
if (config.pieArcColors) {
|
|
11355
11368
|
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
11356
11369
|
}
|
|
11370
|
+
if (config.leftLabelMargin) {
|
|
11371
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11372
|
+
left: config.leftLabelMargin
|
|
11373
|
+
};
|
|
11374
|
+
}
|
|
11375
|
+
if (config.leftLabelOffset) {
|
|
11376
|
+
lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
11377
|
+
}
|
|
11357
11378
|
lineGraph.scope = componentScope;
|
|
11358
11379
|
return lineGraph;
|
|
11359
11380
|
};
|