impaktapps-ui-builder 0.0.404 → 0.0.406
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 +5 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +2 -2
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -8
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +22 -23
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
|
@@ -7363,6 +7363,9 @@ const createLayoutFormat = (config) => {
|
|
|
7363
7363
|
return data2;
|
|
7364
7364
|
};
|
|
7365
7365
|
const flatObjectValueInArray = (config) => {
|
|
7366
|
+
if (config[0].length < 1) {
|
|
7367
|
+
return;
|
|
7368
|
+
}
|
|
7366
7369
|
const keyName = Object.keys(config[0])[0];
|
|
7367
7370
|
const data2 = config.map((e) => {
|
|
7368
7371
|
return e[keyName];
|
|
@@ -9349,7 +9352,7 @@ const LineGraph = {
|
|
|
9349
9352
|
leftLabel: "Incentive",
|
|
9350
9353
|
gridHidden: true,
|
|
9351
9354
|
numHidden: false,
|
|
9352
|
-
tooltipDataKey: ["
|
|
9355
|
+
tooltipDataKey: ["First", "Second", "Third"],
|
|
9353
9356
|
axisLeft: true,
|
|
9354
9357
|
axisBottom: true,
|
|
9355
9358
|
hideLeftAxisLine: false,
|
|
@@ -10944,7 +10947,7 @@ const buildUiSchema = (config) => {
|
|
|
10944
10947
|
});
|
|
10945
10948
|
}
|
|
10946
10949
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
10947
|
-
if (e.type) {
|
|
10950
|
+
if (e.type && e.type !== "date" && e.type !== "dateTime" && e.type !== "amount") {
|
|
10948
10951
|
return {
|
|
10949
10952
|
accessorKey: e.name,
|
|
10950
10953
|
header: e.label || e.name,
|