impaktapps-ui-builder 1.0.155 → 1.0.157
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 +4 -14
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildSegmentChart.ts +1 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -10
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -1
|
@@ -7734,7 +7734,7 @@ sizeHolder.elements[1] = {
|
|
|
7734
7734
|
}
|
|
7735
7735
|
};
|
|
7736
7736
|
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7737
|
-
const getInputField = (scope, label
|
|
7737
|
+
const getInputField = (scope, label) => {
|
|
7738
7738
|
return {
|
|
7739
7739
|
type: "Control",
|
|
7740
7740
|
scope: `#/properties/${scope}`,
|
|
@@ -7744,8 +7744,7 @@ const getInputField = (scope, label, type) => {
|
|
|
7744
7744
|
config: {
|
|
7745
7745
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
7746
7746
|
main: {
|
|
7747
|
-
label
|
|
7748
|
-
type
|
|
7747
|
+
label
|
|
7749
7748
|
}
|
|
7750
7749
|
}
|
|
7751
7750
|
};
|
|
@@ -7992,13 +7991,6 @@ const buildPropertiesSection = function(type) {
|
|
|
7992
7991
|
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
7993
7992
|
];
|
|
7994
7993
|
break;
|
|
7995
|
-
case "SegmentChart":
|
|
7996
|
-
uiSchema.elements = [
|
|
7997
|
-
getInputField("height", "Height", "number"),
|
|
7998
|
-
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 }),
|
|
7999
|
-
getArrayControl("pieArcColors", "color", "Color")
|
|
8000
|
-
];
|
|
8001
|
-
break;
|
|
8002
7994
|
case "Graph":
|
|
8003
7995
|
uiSchema.elements = [
|
|
8004
7996
|
getInputField("height", "Height"),
|
|
@@ -12123,6 +12115,7 @@ var emptyBox = {
|
|
|
12123
12115
|
};
|
|
12124
12116
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
12125
12117
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12118
|
+
EmptyBox.scope = componentScope2;
|
|
12126
12119
|
if (config2.layout) {
|
|
12127
12120
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
12128
12121
|
}
|
|
@@ -12580,9 +12573,6 @@ const buildSegmentChart = (config2, componentScope2) => {
|
|
|
12580
12573
|
if (config2.pieArcColors) {
|
|
12581
12574
|
segment.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
12582
12575
|
}
|
|
12583
|
-
if (config2.height) {
|
|
12584
|
-
segment.config.main.height = Number(config2.height);
|
|
12585
|
-
}
|
|
12586
12576
|
if (config2.style) {
|
|
12587
12577
|
segment.config.style = JSON.parse(config2.style);
|
|
12588
12578
|
}
|
|
@@ -12734,7 +12724,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12734
12724
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12735
12725
|
break;
|
|
12736
12726
|
case "EmptyBox":
|
|
12737
|
-
elements = buildEmptyBox(config2);
|
|
12727
|
+
elements = buildEmptyBox(config2, componentScope2);
|
|
12738
12728
|
break;
|
|
12739
12729
|
case "card":
|
|
12740
12730
|
elements = buildCard(config2, componentScope2, store2);
|