impaktapps-ui-builder 1.0.64-alpha.116 → 1.0.64-alpha.117
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 +32 -19
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +32 -30
|
@@ -12560,18 +12560,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12560
12560
|
};
|
|
12561
12561
|
elements = buildBasicUiSchema(config2);
|
|
12562
12562
|
}
|
|
12563
|
-
const getCommonProperties = (cellElem, sizeMap) => {
|
|
12564
|
-
return {
|
|
12565
|
-
accessorKey: cellElem.name,
|
|
12566
|
-
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12567
|
-
header: cellElem.label || cellElem.name,
|
|
12568
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12569
|
-
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12570
|
-
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12571
|
-
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12572
|
-
columnKey: cellElem.columnKey
|
|
12573
|
-
};
|
|
12574
|
-
};
|
|
12575
12563
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12576
12564
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12577
12565
|
return elements;
|
|
@@ -12583,11 +12571,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12583
12571
|
});
|
|
12584
12572
|
}
|
|
12585
12573
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12574
|
+
const commonProperties = {
|
|
12575
|
+
accessorKey: cellElem.name,
|
|
12576
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12577
|
+
header: cellElem.label || cellElem.name,
|
|
12578
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12579
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12580
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12581
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12582
|
+
columnKey: cellElem.columnKey
|
|
12590
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
|
+
}
|
|
12591
12594
|
});
|
|
12592
12595
|
} else if (config2.type == "Table") {
|
|
12593
12596
|
const sizeMap = {};
|
|
@@ -12600,6 +12603,16 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12600
12603
|
const tableActionElement = [];
|
|
12601
12604
|
const rowElements = [];
|
|
12602
12605
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12606
|
+
const commonProperties = {
|
|
12607
|
+
accessorKey: cellElem.name,
|
|
12608
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12609
|
+
header: cellElem.label || cellElem.name,
|
|
12610
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12611
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12612
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12613
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12614
|
+
columnKey: cellElem.columnKey
|
|
12615
|
+
};
|
|
12603
12616
|
if (cellElem.type) {
|
|
12604
12617
|
if (cellElem.elementType == "action") {
|
|
12605
12618
|
const actionElem = buildUiSchema(cellElem, store2);
|
|
@@ -12613,12 +12626,12 @@ 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 {
|
|
12621
|
-
rowElements.push({ ...
|
|
12634
|
+
rowElements.push({ ...commonProperties });
|
|
12622
12635
|
}
|
|
12623
12636
|
});
|
|
12624
12637
|
elements.elements = rowElements;
|