impaktapps-ui-builder 1.0.64 → 1.0.66
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 +20 -7
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +19 -7
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -1
|
@@ -8517,7 +8517,7 @@ function refreshPage(type, store2) {
|
|
|
8517
8517
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8518
8518
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8519
8519
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8520
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8520
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8521
8521
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8522
8522
|
type: "Control",
|
|
8523
8523
|
scope: "#/properties/columnFormat",
|
|
@@ -12571,13 +12571,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12571
12571
|
});
|
|
12572
12572
|
}
|
|
12573
12573
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12574
|
-
|
|
12574
|
+
const commonProperties = {
|
|
12575
12575
|
accessorKey: cellElem.name,
|
|
12576
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12576
12577
|
header: cellElem.label || cellElem.name,
|
|
12577
12578
|
size: sizeMap[cellElem.name] || 180,
|
|
12578
|
-
|
|
12579
|
-
|
|
12579
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12580
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12581
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12582
|
+
columnKey: cellElem.columnKey
|
|
12580
12583
|
};
|
|
12584
|
+
if (cellElem.type) {
|
|
12585
|
+
const tableElem = {
|
|
12586
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12587
|
+
...commonProperties,
|
|
12588
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12589
|
+
};
|
|
12590
|
+
return tableElem;
|
|
12591
|
+
} else {
|
|
12592
|
+
return { ...commonProperties };
|
|
12593
|
+
}
|
|
12581
12594
|
});
|
|
12582
12595
|
} else if (config2.type == "Table") {
|
|
12583
12596
|
const sizeMap = {};
|
|
@@ -12592,7 +12605,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12592
12605
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12593
12606
|
const commonProperties = {
|
|
12594
12607
|
accessorKey: cellElem.name,
|
|
12595
|
-
type: cellElem.columnFormat,
|
|
12608
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12596
12609
|
header: cellElem.label || cellElem.name,
|
|
12597
12610
|
size: sizeMap[cellElem.name] || 180,
|
|
12598
12611
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
@@ -12613,8 +12626,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12613
12626
|
}
|
|
12614
12627
|
const tableElem = {
|
|
12615
12628
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12616
|
-
|
|
12617
|
-
...
|
|
12629
|
+
...commonProperties,
|
|
12630
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12618
12631
|
};
|
|
12619
12632
|
rowElements.push(tableElem);
|
|
12620
12633
|
} else {
|