impaktapps-ui-builder 1.0.65 → 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 -8
- 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/elements/UiSchema/Component/schema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -1
|
@@ -6572,7 +6572,6 @@ const ComponentSchema = {
|
|
|
6572
6572
|
{ title: "Error Icon", const: "ErrorIcon" },
|
|
6573
6573
|
{ title: "Refresh Icon", const: "RefreshIcon" },
|
|
6574
6574
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6575
|
-
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
6576
6575
|
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
6577
6576
|
{ "title": "Alarm Icon", "const": "AlarmIcon" },
|
|
6578
6577
|
{ "title": "Click Icon", "const": "ClickIcon" },
|
|
@@ -8518,7 +8517,7 @@ function refreshPage(type, store2) {
|
|
|
8518
8517
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8519
8518
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8520
8519
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8521
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8520
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8522
8521
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8523
8522
|
type: "Control",
|
|
8524
8523
|
scope: "#/properties/columnFormat",
|
|
@@ -12572,13 +12571,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12572
12571
|
});
|
|
12573
12572
|
}
|
|
12574
12573
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12575
|
-
|
|
12574
|
+
const commonProperties = {
|
|
12576
12575
|
accessorKey: cellElem.name,
|
|
12576
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12577
12577
|
header: cellElem.label || cellElem.name,
|
|
12578
12578
|
size: sizeMap[cellElem.name] || 180,
|
|
12579
|
-
|
|
12580
|
-
|
|
12579
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12580
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12581
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12582
|
+
columnKey: cellElem.columnKey
|
|
12581
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
|
+
}
|
|
12582
12594
|
});
|
|
12583
12595
|
} else if (config2.type == "Table") {
|
|
12584
12596
|
const sizeMap = {};
|
|
@@ -12593,7 +12605,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12593
12605
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12594
12606
|
const commonProperties = {
|
|
12595
12607
|
accessorKey: cellElem.name,
|
|
12596
|
-
type: cellElem.columnFormat,
|
|
12608
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12597
12609
|
header: cellElem.label || cellElem.name,
|
|
12598
12610
|
size: sizeMap[cellElem.name] || 180,
|
|
12599
12611
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
@@ -12614,8 +12626,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12614
12626
|
}
|
|
12615
12627
|
const tableElem = {
|
|
12616
12628
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12617
|
-
|
|
12618
|
-
...
|
|
12629
|
+
...commonProperties,
|
|
12630
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12619
12631
|
};
|
|
12620
12632
|
rowElements.push(tableElem);
|
|
12621
12633
|
} else {
|