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