impaktapps-ui-builder 1.0.151 → 1.0.153
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 +20 -12
- 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/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +5 -5
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -1
|
@@ -7962,7 +7962,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7962
7962
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7963
7963
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7964
7964
|
getInputField("size", "Size"),
|
|
7965
|
-
|
|
7965
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
7966
7966
|
getArrayControl("pieArcColors", "color", "Color")
|
|
7967
7967
|
];
|
|
7968
7968
|
break;
|
|
@@ -8017,6 +8017,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8017
8017
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8018
8018
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8019
8019
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8020
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8020
8021
|
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
8021
8022
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8022
8023
|
];
|
|
@@ -10844,8 +10845,10 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10844
10845
|
if (config2.layout) {
|
|
10845
10846
|
ProgressBar.config.layout = config2.layout;
|
|
10846
10847
|
}
|
|
10847
|
-
ProgressBar.config.main.variant = config2.variant;
|
|
10848
10848
|
ProgressBar.config.main.heading = config2.label;
|
|
10849
|
+
if (config2.variant) {
|
|
10850
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
10851
|
+
}
|
|
10849
10852
|
if (config2.pieArcColors) {
|
|
10850
10853
|
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10851
10854
|
}
|
|
@@ -11206,6 +11209,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11206
11209
|
wrapper.config.main.label = config2.label;
|
|
11207
11210
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11208
11211
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11212
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11209
11213
|
if (config2.defaultStyle) {
|
|
11210
11214
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11211
11215
|
}
|
|
@@ -11450,6 +11454,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11450
11454
|
if (config2.initialDensity) {
|
|
11451
11455
|
table.config.main.initialDensity = config2.initialDensity;
|
|
11452
11456
|
}
|
|
11457
|
+
if (config2.layout) {
|
|
11458
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11459
|
+
}
|
|
11453
11460
|
return table;
|
|
11454
11461
|
};
|
|
11455
11462
|
const Box = {
|
|
@@ -11592,7 +11599,7 @@ function Card(theme) {
|
|
|
11592
11599
|
elements: [
|
|
11593
11600
|
{
|
|
11594
11601
|
type: "Control",
|
|
11595
|
-
scope: "#/properties/
|
|
11602
|
+
scope: "#/properties/initilCardScope",
|
|
11596
11603
|
config: {
|
|
11597
11604
|
main: {
|
|
11598
11605
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
@@ -11622,7 +11629,7 @@ function Card(theme) {
|
|
|
11622
11629
|
},
|
|
11623
11630
|
{
|
|
11624
11631
|
type: "Control",
|
|
11625
|
-
scope: "#/properties/
|
|
11632
|
+
scope: "#/properties/initilCardScope",
|
|
11626
11633
|
config: {
|
|
11627
11634
|
main: {
|
|
11628
11635
|
heading: "Total Earnings"
|
|
@@ -11653,7 +11660,7 @@ function Card(theme) {
|
|
|
11653
11660
|
},
|
|
11654
11661
|
{
|
|
11655
11662
|
type: "Control",
|
|
11656
|
-
scope: "#/properties/
|
|
11663
|
+
scope: "#/properties/initilCardScope",
|
|
11657
11664
|
config: {
|
|
11658
11665
|
main: {
|
|
11659
11666
|
heading: "5000.00"
|
|
@@ -11686,7 +11693,7 @@ function Card(theme) {
|
|
|
11686
11693
|
},
|
|
11687
11694
|
{
|
|
11688
11695
|
type: "Control",
|
|
11689
|
-
scope: "#/properties/
|
|
11696
|
+
scope: "#/properties/initilCardScope",
|
|
11690
11697
|
config: {
|
|
11691
11698
|
main: {
|
|
11692
11699
|
heading: "Increased from last month"
|
|
@@ -11722,9 +11729,10 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11722
11729
|
if (config.style) {
|
|
11723
11730
|
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11724
11731
|
}
|
|
11725
|
-
card.elements[0].
|
|
11726
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/
|
|
11727
|
-
card.elements[
|
|
11732
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
11733
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
11734
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
11735
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
11728
11736
|
if (config.layout) {
|
|
11729
11737
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11730
11738
|
}
|
|
@@ -11733,13 +11741,13 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11733
11741
|
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11734
11742
|
}
|
|
11735
11743
|
if (config.label) {
|
|
11736
|
-
card.elements[
|
|
11744
|
+
card.elements[1].config.main.heading = config.label;
|
|
11737
11745
|
}
|
|
11738
11746
|
if (config.url) {
|
|
11739
|
-
card.elements[
|
|
11747
|
+
card.elements[0].config.main.url = config.url;
|
|
11740
11748
|
}
|
|
11741
11749
|
if (config.description) {
|
|
11742
|
-
card.elements[
|
|
11750
|
+
card.elements[3].config.main.heading = config.description;
|
|
11743
11751
|
}
|
|
11744
11752
|
return card;
|
|
11745
11753
|
};
|