impaktapps-ui-builder 1.0.64-alpha.116 → 1.0.64-alpha.118
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 +33 -31
- 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/buildTextArea.ts +0 -12
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +32 -30
|
@@ -11739,18 +11739,7 @@ const TextArea = {
|
|
|
11739
11739
|
},
|
|
11740
11740
|
config: {
|
|
11741
11741
|
layout: 12,
|
|
11742
|
-
style: {
|
|
11743
|
-
containerStyle: {
|
|
11744
|
-
borderRadius: "20px"
|
|
11745
|
-
},
|
|
11746
|
-
headerContainerStyle: {},
|
|
11747
|
-
textAreaStyle: {
|
|
11748
|
-
borderRadius: "20px",
|
|
11749
|
-
padding: "20px",
|
|
11750
|
-
background: "white",
|
|
11751
|
-
color: "black"
|
|
11752
|
-
}
|
|
11753
|
-
},
|
|
11742
|
+
style: {},
|
|
11754
11743
|
main: {
|
|
11755
11744
|
heading: "TextArea",
|
|
11756
11745
|
minRows: 4,
|
|
@@ -12560,18 +12549,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12560
12549
|
};
|
|
12561
12550
|
elements = buildBasicUiSchema(config2);
|
|
12562
12551
|
}
|
|
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
12552
|
if (config2 == null ? void 0 : config2.elements) {
|
|
12576
12553
|
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
12577
12554
|
return elements;
|
|
@@ -12583,11 +12560,26 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12583
12560
|
});
|
|
12584
12561
|
}
|
|
12585
12562
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12563
|
+
const commonProperties = {
|
|
12564
|
+
accessorKey: cellElem.name,
|
|
12565
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12566
|
+
header: cellElem.label || cellElem.name,
|
|
12567
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12568
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12569
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12570
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12571
|
+
columnKey: cellElem.columnKey
|
|
12590
12572
|
};
|
|
12573
|
+
if (cellElem.type) {
|
|
12574
|
+
const tableElem = {
|
|
12575
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12576
|
+
...commonProperties,
|
|
12577
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12578
|
+
};
|
|
12579
|
+
return tableElem;
|
|
12580
|
+
} else {
|
|
12581
|
+
return { ...commonProperties };
|
|
12582
|
+
}
|
|
12591
12583
|
});
|
|
12592
12584
|
} else if (config2.type == "Table") {
|
|
12593
12585
|
const sizeMap = {};
|
|
@@ -12600,6 +12592,16 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12600
12592
|
const tableActionElement = [];
|
|
12601
12593
|
const rowElements = [];
|
|
12602
12594
|
config2.elements.filter((cellElem, elemInd) => {
|
|
12595
|
+
const commonProperties = {
|
|
12596
|
+
accessorKey: cellElem.name,
|
|
12597
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
12598
|
+
header: cellElem.label || cellElem.name,
|
|
12599
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12600
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12601
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12602
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12603
|
+
columnKey: cellElem.columnKey
|
|
12604
|
+
};
|
|
12603
12605
|
if (cellElem.type) {
|
|
12604
12606
|
if (cellElem.elementType == "action") {
|
|
12605
12607
|
const actionElem = buildUiSchema(cellElem, store2);
|
|
@@ -12613,12 +12615,12 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12613
12615
|
}
|
|
12614
12616
|
const tableElem = {
|
|
12615
12617
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12616
|
-
...
|
|
12617
|
-
|
|
12618
|
+
...commonProperties,
|
|
12619
|
+
...cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store2) : {}
|
|
12618
12620
|
};
|
|
12619
12621
|
rowElements.push(tableElem);
|
|
12620
12622
|
} else {
|
|
12621
|
-
rowElements.push({ ...
|
|
12623
|
+
rowElements.push({ ...commonProperties });
|
|
12622
12624
|
}
|
|
12623
12625
|
});
|
|
12624
12626
|
elements.elements = rowElements;
|