impaktapps-ui-builder 1.0.435 → 1.0.437
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 +57 -23
- 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/uischema/tableSection.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +3 -6
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +5 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
- package/src/impaktapps-ui-builder/builder/services/component.ts +40 -9
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -4
|
@@ -8258,11 +8258,11 @@ const buildPropertiesSection = function(type) {
|
|
|
8258
8258
|
buildWrapper("Tree Table Properties", [
|
|
8259
8259
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8260
8260
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8261
|
-
getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
|
|
8262
8261
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8262
|
+
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8263
8263
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8264
8264
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8265
|
-
|
|
8265
|
+
,
|
|
8266
8266
|
emptyBox$1("LazyLoadingTableEmpty3")
|
|
8267
8267
|
]),
|
|
8268
8268
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
@@ -8395,13 +8395,13 @@ const StyleSection = {
|
|
|
8395
8395
|
}
|
|
8396
8396
|
]
|
|
8397
8397
|
};
|
|
8398
|
-
const TableSection = (theme) => {
|
|
8398
|
+
const TableSection = (theme, scopeName = "elements") => {
|
|
8399
8399
|
const uiSchema = {
|
|
8400
8400
|
type: "HorizontalLayout",
|
|
8401
8401
|
elements: [
|
|
8402
8402
|
{
|
|
8403
8403
|
type: "Control",
|
|
8404
|
-
scope:
|
|
8404
|
+
scope: `#/properties/${scopeName}`,
|
|
8405
8405
|
options: {
|
|
8406
8406
|
widget: "Table"
|
|
8407
8407
|
},
|
|
@@ -8412,7 +8412,7 @@ const TableSection = (theme) => {
|
|
|
8412
8412
|
{
|
|
8413
8413
|
widget: {
|
|
8414
8414
|
type: "Control",
|
|
8415
|
-
scope:
|
|
8415
|
+
scope: `#/properties/${scopeName}_New_Record`,
|
|
8416
8416
|
options: {
|
|
8417
8417
|
widget: "IconButton"
|
|
8418
8418
|
},
|
|
@@ -8439,7 +8439,7 @@ const TableSection = (theme) => {
|
|
|
8439
8439
|
{
|
|
8440
8440
|
widget: {
|
|
8441
8441
|
type: "Control",
|
|
8442
|
-
scope: "
|
|
8442
|
+
scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
|
|
8443
8443
|
options: {
|
|
8444
8444
|
widget: "IconButton"
|
|
8445
8445
|
},
|
|
@@ -8504,7 +8504,7 @@ const TableSection = (theme) => {
|
|
|
8504
8504
|
},
|
|
8505
8505
|
{
|
|
8506
8506
|
type: "Control",
|
|
8507
|
-
scope: "
|
|
8507
|
+
scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
|
|
8508
8508
|
options: {
|
|
8509
8509
|
widget: "Button"
|
|
8510
8510
|
},
|
|
@@ -8697,6 +8697,10 @@ var buildConfig = (FormData) => {
|
|
|
8697
8697
|
if (formData.events) {
|
|
8698
8698
|
delete formData.events;
|
|
8699
8699
|
}
|
|
8700
|
+
if (formData.tabLabelsElements) {
|
|
8701
|
+
component.tabLabelsElements = formData.tabLabelsElements || [];
|
|
8702
|
+
delete formData.tabLabelsElements;
|
|
8703
|
+
}
|
|
8700
8704
|
component = { ...formData, ...component };
|
|
8701
8705
|
return component;
|
|
8702
8706
|
};
|
|
@@ -8855,7 +8859,7 @@ const sectionLabels = {
|
|
|
8855
8859
|
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8856
8860
|
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8857
8861
|
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8858
|
-
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8862
|
+
TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
|
|
8859
8863
|
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8860
8864
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8861
8865
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
@@ -8903,6 +8907,7 @@ function refreshPage(type, store2) {
|
|
|
8903
8907
|
Style: StyleSection,
|
|
8904
8908
|
Events: EventSection(store2.theme.myTheme),
|
|
8905
8909
|
Components: TableSection(store2.theme.myTheme),
|
|
8910
|
+
TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
|
|
8906
8911
|
Properties: buildPropertiesSection(type),
|
|
8907
8912
|
Validation: ValidationSection
|
|
8908
8913
|
};
|
|
@@ -9100,8 +9105,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9100
9105
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9101
9106
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9102
9107
|
if (path) {
|
|
9103
|
-
|
|
9104
|
-
|
|
9108
|
+
let finalPath = `${path}`;
|
|
9109
|
+
if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
|
|
9110
|
+
finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
|
|
9111
|
+
} else {
|
|
9112
|
+
finalPath = `${finalPath}.elements[${rowId}]`;
|
|
9113
|
+
}
|
|
9105
9114
|
store2.searchParams.set("path", finalPath);
|
|
9106
9115
|
store2.setSearchParams(store2.searchParams);
|
|
9107
9116
|
this.setPage();
|
|
@@ -9113,7 +9122,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9113
9122
|
var _a;
|
|
9114
9123
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9115
9124
|
const rowId = sessionStorage.getItem("rowId");
|
|
9116
|
-
|
|
9125
|
+
const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
|
|
9126
|
+
if (isTabLabelElements) {
|
|
9127
|
+
store2.formData.tabLabelsElements.splice(rowId, 1);
|
|
9128
|
+
} else {
|
|
9129
|
+
store2.formData.elements.splice(rowId, 1);
|
|
9130
|
+
}
|
|
9117
9131
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9118
9132
|
const data = path ? _.get(response, path) : response;
|
|
9119
9133
|
store2.setFormdata(data);
|
|
@@ -9121,6 +9135,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9121
9135
|
store2.updateDialog("popUpComponentSection");
|
|
9122
9136
|
}
|
|
9123
9137
|
sessionStorage.removeItem("rowId");
|
|
9138
|
+
sessionStorage.removeItem("isTabLabelElements");
|
|
9124
9139
|
},
|
|
9125
9140
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
9126
9141
|
var _a;
|
|
@@ -9141,9 +9156,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9141
9156
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9142
9157
|
store2.formData.elements = [];
|
|
9143
9158
|
}
|
|
9159
|
+
if (!Array.isArray(store2.formData.tabLabelsElements)) {
|
|
9160
|
+
store2.formData.tabLabelsElements = [];
|
|
9161
|
+
}
|
|
9144
9162
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9145
9163
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9146
|
-
|
|
9164
|
+
let finalPath = `${path}`;
|
|
9165
|
+
if (dynamicData2.path.startsWith("tabLabels")) {
|
|
9166
|
+
finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
|
|
9167
|
+
} else {
|
|
9168
|
+
finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
|
|
9169
|
+
}
|
|
9147
9170
|
store2.searchParams.set("path", finalPath);
|
|
9148
9171
|
store2.setSearchParams(store2.searchParams);
|
|
9149
9172
|
this.setPage();
|
|
@@ -9178,6 +9201,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9178
9201
|
deletePopUpComponent: function() {
|
|
9179
9202
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9180
9203
|
sessionStorage.setItem("rowId", rowId);
|
|
9204
|
+
sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
|
|
9181
9205
|
store2.updateDialog("popUpComponentSection");
|
|
9182
9206
|
},
|
|
9183
9207
|
deletePopUpEvent: function() {
|
|
@@ -9224,9 +9248,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9224
9248
|
if (!Array.isArray(store2.formData.events)) {
|
|
9225
9249
|
store2.formData.events = [];
|
|
9226
9250
|
}
|
|
9251
|
+
if (!Array.isArray(store2.formData.tabLabelsElements)) {
|
|
9252
|
+
store2.formData.tabLabelsElements = [];
|
|
9253
|
+
}
|
|
9227
9254
|
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
9228
9255
|
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
9229
|
-
const
|
|
9256
|
+
const currentLength = {
|
|
9257
|
+
"TabsComponent": formData.tabLabelsElements.length,
|
|
9258
|
+
"Component": formData.elements.length,
|
|
9259
|
+
"Events": formData.events.length
|
|
9260
|
+
};
|
|
9261
|
+
const insertElementIndex = currentLength[elementType] || 0;
|
|
9230
9262
|
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
9231
9263
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
9232
9264
|
const notificationMessages = {
|
|
@@ -9261,6 +9293,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9261
9293
|
if (elementType === "Component") {
|
|
9262
9294
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
9263
9295
|
}
|
|
9296
|
+
if (elementType === "TabsComponent") {
|
|
9297
|
+
return `${parentPath}.tabLabelsElements[${rowId}]`;
|
|
9298
|
+
}
|
|
9264
9299
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
9265
9300
|
},
|
|
9266
9301
|
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
@@ -10931,10 +10966,7 @@ var service = (funcParams) => {
|
|
|
10931
10966
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10932
10967
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10933
10968
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10934
|
-
{ key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
|
|
10935
|
-
{ key: "parentId", value: paginationValues.parentId },
|
|
10936
|
-
{ key: "prevRowCount", value: paginationValues.prevRowCount },
|
|
10937
|
-
{ key: "newDataCount", value: paginationValues.newDataCount }
|
|
10969
|
+
{ key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
|
|
10938
10970
|
];
|
|
10939
10971
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10940
10972
|
return response == null ? void 0 : response.data;
|
|
@@ -11747,15 +11779,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11747
11779
|
if (config2.lazyLoading) {
|
|
11748
11780
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11749
11781
|
}
|
|
11750
|
-
if (config2.lazyLoadTree) {
|
|
11751
|
-
table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
|
|
11752
|
-
}
|
|
11753
11782
|
if (config2.defaultColumnSize) {
|
|
11754
11783
|
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11755
11784
|
}
|
|
11756
|
-
if (config2.subRowsExpansionPageSize) {
|
|
11757
|
-
table.config.main.subRowsExpansionPageSize = config2.subRowsExpansionPageSize;
|
|
11758
|
-
}
|
|
11759
11785
|
if (config2.enableRowMovement) {
|
|
11760
11786
|
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
11761
11787
|
}
|
|
@@ -11771,6 +11797,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11771
11797
|
if (config2.paginateExpandedRows) {
|
|
11772
11798
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11773
11799
|
}
|
|
11800
|
+
if (config2.treeStructure) {
|
|
11801
|
+
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11802
|
+
}
|
|
11774
11803
|
if (config2.SelectionAvailable) {
|
|
11775
11804
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11776
11805
|
}
|
|
@@ -13655,6 +13684,11 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13655
13684
|
});
|
|
13656
13685
|
}
|
|
13657
13686
|
}
|
|
13687
|
+
if (config2.tabLabelsElements) {
|
|
13688
|
+
elements.tabLabelsElements = config2.tabLabelsElements.map((e, elemInd) => {
|
|
13689
|
+
return buildUiSchema(e, store2);
|
|
13690
|
+
});
|
|
13691
|
+
}
|
|
13658
13692
|
return elements;
|
|
13659
13693
|
};
|
|
13660
13694
|
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|