impaktapps-ui-builder 1.0.451 → 1.0.481
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 +28 -74
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -11
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +7 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +6 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -11
- package/src/impaktapps-ui-builder/builder/services/component.ts +9 -40
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -2
|
@@ -6711,12 +6711,7 @@ const ComponentSchema = {
|
|
|
6711
6711
|
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6712
6712
|
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6713
6713
|
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
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" }
|
|
6714
|
+
{ title: "Payout", const: "Payout" }
|
|
6720
6715
|
]
|
|
6721
6716
|
},
|
|
6722
6717
|
color: {
|
|
@@ -8165,7 +8160,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8165
8160
|
getInputField("description", "Description"),
|
|
8166
8161
|
getSelectField("growthRate", "Growth Rate"),
|
|
8167
8162
|
getInputField("color", "Card Color"),
|
|
8168
|
-
emptyBox$1("MetricEmpty1", { xs: 6, sm:
|
|
8163
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8169
8164
|
];
|
|
8170
8165
|
break;
|
|
8171
8166
|
case "Button":
|
|
@@ -8211,10 +8206,10 @@ const buildPropertiesSection = function(type) {
|
|
|
8211
8206
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8212
8207
|
getInputField("leftMargin", "Left Margin"),
|
|
8213
8208
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8214
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8215
8209
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8216
8210
|
getInputField("growthRateKey", "Growth Rate Key"),
|
|
8217
8211
|
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
8212
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8218
8213
|
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
8219
8214
|
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
|
|
8220
8215
|
];
|
|
@@ -8263,7 +8258,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8263
8258
|
buildWrapper("Tree Table Properties", [
|
|
8264
8259
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8265
8260
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8266
|
-
getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
|
|
8267
8261
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8268
8262
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8269
8263
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
@@ -8292,7 +8286,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8292
8286
|
getSelectField("variant", "Variant"),
|
|
8293
8287
|
getInputField("toolTip", "Tooltip"),
|
|
8294
8288
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8295
|
-
|
|
8289
|
+
getRadioInputField("grouping", "grouping", ["YES", "NO"]),
|
|
8290
|
+
emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8296
8291
|
];
|
|
8297
8292
|
break;
|
|
8298
8293
|
case "MultipleSelect":
|
|
@@ -8300,7 +8295,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8300
8295
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8301
8296
|
getSelectField("variant", "Variant"),
|
|
8302
8297
|
getInputField("toolTip", "Tooltip"),
|
|
8303
|
-
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8298
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8299
|
+
getRadioInputField("grouping", "grouping", ["YES", "NO"]),
|
|
8300
|
+
emptyBox$1("MultipleSelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8304
8301
|
];
|
|
8305
8302
|
break;
|
|
8306
8303
|
case "PdfViewer":
|
|
@@ -8401,13 +8398,13 @@ const StyleSection = {
|
|
|
8401
8398
|
}
|
|
8402
8399
|
]
|
|
8403
8400
|
};
|
|
8404
|
-
const TableSection = (theme
|
|
8401
|
+
const TableSection = (theme) => {
|
|
8405
8402
|
const uiSchema = {
|
|
8406
8403
|
type: "HorizontalLayout",
|
|
8407
8404
|
elements: [
|
|
8408
8405
|
{
|
|
8409
8406
|
type: "Control",
|
|
8410
|
-
scope:
|
|
8407
|
+
scope: "#/properties/elements",
|
|
8411
8408
|
options: {
|
|
8412
8409
|
widget: "Table"
|
|
8413
8410
|
},
|
|
@@ -8418,7 +8415,7 @@ const TableSection = (theme, scopeName = "elements") => {
|
|
|
8418
8415
|
{
|
|
8419
8416
|
widget: {
|
|
8420
8417
|
type: "Control",
|
|
8421
|
-
scope:
|
|
8418
|
+
scope: "#/properties/New_Record",
|
|
8422
8419
|
options: {
|
|
8423
8420
|
widget: "IconButton"
|
|
8424
8421
|
},
|
|
@@ -8445,7 +8442,7 @@ const TableSection = (theme, scopeName = "elements") => {
|
|
|
8445
8442
|
{
|
|
8446
8443
|
widget: {
|
|
8447
8444
|
type: "Control",
|
|
8448
|
-
scope:
|
|
8445
|
+
scope: "#/properties/Paste_Component",
|
|
8449
8446
|
options: {
|
|
8450
8447
|
widget: "IconButton"
|
|
8451
8448
|
},
|
|
@@ -8510,7 +8507,7 @@ const TableSection = (theme, scopeName = "elements") => {
|
|
|
8510
8507
|
},
|
|
8511
8508
|
{
|
|
8512
8509
|
type: "Control",
|
|
8513
|
-
scope:
|
|
8510
|
+
scope: "#/properties/Copy_Component",
|
|
8514
8511
|
options: {
|
|
8515
8512
|
widget: "Button"
|
|
8516
8513
|
},
|
|
@@ -8703,10 +8700,6 @@ var buildConfig = (FormData) => {
|
|
|
8703
8700
|
if (formData.events) {
|
|
8704
8701
|
delete formData.events;
|
|
8705
8702
|
}
|
|
8706
|
-
if (formData.tabLabelElements) {
|
|
8707
|
-
component.tabLabelElements = formData.tabLabelElements || [];
|
|
8708
|
-
delete formData.tabLabelElements;
|
|
8709
|
-
}
|
|
8710
8703
|
component = { ...formData, ...component };
|
|
8711
8704
|
return component;
|
|
8712
8705
|
};
|
|
@@ -8865,7 +8858,7 @@ const sectionLabels = {
|
|
|
8865
8858
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8866
8859
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8867
8860
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8868
|
-
TabSection: ["Core", "Components", "
|
|
8861
|
+
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8869
8862
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8870
8863
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8871
8864
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8913,7 +8906,6 @@ function refreshPage(type, store2) {
|
|
|
8913
8906
|
Style: StyleSection,
|
|
8914
8907
|
Events: EventSection(store2.theme.myTheme),
|
|
8915
8908
|
Components: TableSection(store2.theme.myTheme),
|
|
8916
|
-
TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
|
|
8917
8909
|
Properties: buildPropertiesSection(type),
|
|
8918
8910
|
Validation: ValidationSection
|
|
8919
8911
|
};
|
|
@@ -9111,12 +9103,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9111
9103
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9112
9104
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9113
9105
|
if (path) {
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
|
|
9117
|
-
} else {
|
|
9118
|
-
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9119
|
-
}
|
|
9106
|
+
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
9107
|
+
const finalPath = `${path2}.elements[${rowId}]`;
|
|
9120
9108
|
store2.searchParams.set("path", finalPath);
|
|
9121
9109
|
store2.setSearchParams(store2.searchParams);
|
|
9122
9110
|
this.setPage();
|
|
@@ -9128,12 +9116,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9128
9116
|
var _a;
|
|
9129
9117
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9130
9118
|
const rowId = sessionStorage.getItem("rowId");
|
|
9131
|
-
|
|
9132
|
-
if (isTabLabelElements) {
|
|
9133
|
-
store2.formData.tabLabelElements.splice(rowId, 1);
|
|
9134
|
-
} else {
|
|
9135
|
-
store2.formData.elements.splice(rowId, 1);
|
|
9136
|
-
}
|
|
9119
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9137
9120
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9138
9121
|
const data = path ? _.get(response, path) : response;
|
|
9139
9122
|
store2.setFormdata(data);
|
|
@@ -9141,7 +9124,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9141
9124
|
store2.updateDialog("popUpComponentSection");
|
|
9142
9125
|
}
|
|
9143
9126
|
sessionStorage.removeItem("rowId");
|
|
9144
|
-
sessionStorage.removeItem("isTabLabelElements");
|
|
9145
9127
|
},
|
|
9146
9128
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
9147
9129
|
var _a;
|
|
@@ -9162,17 +9144,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9162
9144
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9163
9145
|
store2.formData.elements = [];
|
|
9164
9146
|
}
|
|
9165
|
-
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9166
|
-
store2.formData.tabLabelElements = [];
|
|
9167
|
-
}
|
|
9168
9147
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9169
9148
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9170
|
-
|
|
9171
|
-
if (dynamicData2.path.startsWith("tabLabel")) {
|
|
9172
|
-
finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
|
|
9173
|
-
} else {
|
|
9174
|
-
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9175
|
-
}
|
|
9149
|
+
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
9176
9150
|
store2.searchParams.set("path", finalPath);
|
|
9177
9151
|
store2.setSearchParams(store2.searchParams);
|
|
9178
9152
|
this.setPage();
|
|
@@ -9207,7 +9181,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9207
9181
|
deletePopUpComponent: function() {
|
|
9208
9182
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9209
9183
|
sessionStorage.setItem("rowId", rowId);
|
|
9210
|
-
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
|
|
9211
9184
|
store2.updateDialog("popUpComponentSection");
|
|
9212
9185
|
},
|
|
9213
9186
|
deletePopUpEvent: function() {
|
|
@@ -9254,17 +9227,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9254
9227
|
if (!Array.isArray(store2.formData.events)) {
|
|
9255
9228
|
store2.formData.events = [];
|
|
9256
9229
|
}
|
|
9257
|
-
if (!Array.isArray(store2.formData.tabLabelElements)) {
|
|
9258
|
-
store2.formData.tabLabelElements = [];
|
|
9259
|
-
}
|
|
9260
9230
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9261
9231
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9262
|
-
const
|
|
9263
|
-
"TabsComponent": formData.tabLabelElements.length,
|
|
9264
|
-
"Component": formData.elements.length,
|
|
9265
|
-
"Events": formData.events.length
|
|
9266
|
-
};
|
|
9267
|
-
const insertElementIndex = currentLength[elementType] || 0;
|
|
9232
|
+
const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
|
|
9268
9233
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9269
9234
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9270
9235
|
const notificationMessages = {
|
|
@@ -9299,9 +9264,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9299
9264
|
if (elementType === "Component") {
|
|
9300
9265
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9301
9266
|
}
|
|
9302
|
-
if (elementType === "TabsComponent") {
|
|
9303
|
-
return `${parentPath}.tabLabelElements[${rowId}]`;
|
|
9304
|
-
}
|
|
9305
9267
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9306
9268
|
},
|
|
9307
9269
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -10965,20 +10927,20 @@ var service = (funcParams) => {
|
|
|
10965
10927
|
return response == null ? void 0 : response.data;
|
|
10966
10928
|
},
|
|
10967
10929
|
onPaginationChange: async function(paginationValues) {
|
|
10968
|
-
var _a;
|
|
10930
|
+
var _a, _b;
|
|
10969
10931
|
const apiBody = [
|
|
10970
10932
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10971
10933
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10972
10934
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10973
10935
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10974
10936
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10975
|
-
{ key: "
|
|
10937
|
+
{ key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
|
|
10976
10938
|
];
|
|
10977
10939
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10978
10940
|
return response == null ? void 0 : response.data;
|
|
10979
10941
|
},
|
|
10980
10942
|
getSelectOptions: async function(param) {
|
|
10981
|
-
if (param.serachValue !==
|
|
10943
|
+
if (param.serachValue !== void 0) {
|
|
10982
10944
|
const apiBody = [
|
|
10983
10945
|
{ key: "searchValue", value: param.serachValue },
|
|
10984
10946
|
{ key: "currentValue", value: param.currentValue }
|
|
@@ -11693,6 +11655,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11693
11655
|
if (config2.toolTipPosition) {
|
|
11694
11656
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11695
11657
|
}
|
|
11658
|
+
if (config2.grouping) {
|
|
11659
|
+
selectInputField.config.main.grouping = config2.grouping;
|
|
11660
|
+
}
|
|
11696
11661
|
if (config2.style) {
|
|
11697
11662
|
selectInputField.config.style = JSON.parse(config2.style);
|
|
11698
11663
|
}
|
|
@@ -11785,9 +11750,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11785
11750
|
if (config2.lazyLoading) {
|
|
11786
11751
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11787
11752
|
}
|
|
11788
|
-
if (config2.lazyLoadTree) {
|
|
11789
|
-
table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
|
|
11790
|
-
}
|
|
11791
11753
|
if (config2.defaultColumnSize) {
|
|
11792
11754
|
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11793
11755
|
}
|
|
@@ -12393,6 +12355,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12393
12355
|
if (config2.toolTipPosition) {
|
|
12394
12356
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12395
12357
|
}
|
|
12358
|
+
if (config2.grouping) {
|
|
12359
|
+
multipleSelect.config.main.grouping = config2.grouping;
|
|
12360
|
+
}
|
|
12396
12361
|
if (config2.style) {
|
|
12397
12362
|
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12398
12363
|
}
|
|
@@ -13081,9 +13046,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13081
13046
|
if (config2.yAxisTickCount) {
|
|
13082
13047
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13083
13048
|
}
|
|
13084
|
-
if (config2.xAxisTickCount) {
|
|
13085
|
-
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13086
|
-
}
|
|
13087
13049
|
if (config2.xAxisValue) {
|
|
13088
13050
|
AreaGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13089
13051
|
}
|
|
@@ -13137,9 +13099,6 @@ const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
|
13137
13099
|
if (config2.yAxisTickCount) {
|
|
13138
13100
|
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13139
13101
|
}
|
|
13140
|
-
if (config2.xAxisTickCount) {
|
|
13141
|
-
StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13142
|
-
}
|
|
13143
13102
|
if (config2.xAxisValue) {
|
|
13144
13103
|
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13145
13104
|
}
|
|
@@ -13693,11 +13652,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13693
13652
|
});
|
|
13694
13653
|
}
|
|
13695
13654
|
}
|
|
13696
|
-
if (config2.tabLabelElements) {
|
|
13697
|
-
elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
|
|
13698
|
-
return buildUiSchema(e, store2);
|
|
13699
|
-
});
|
|
13700
|
-
}
|
|
13701
13655
|
return elements;
|
|
13702
13656
|
};
|
|
13703
13657
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|