impaktapps-ui-builder 1.0.157 → 1.0.160

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.
@@ -6258,7 +6258,6 @@ const ComponentSchema = {
6258
6258
  { title: "Timer", const: "Timer" },
6259
6259
  { title: "Upload", const: "UploadFile" },
6260
6260
  { title: "Tree ", const: "TreeMap" },
6261
- { title: "SegmentChart ", const: "SegmentChart" },
6262
6261
  { title: "Column Group", const: "ColumnGroup" },
6263
6262
  { title: "Thought of the day", const: "Thought" }
6264
6263
  ]
@@ -7961,9 +7960,8 @@ const buildPropertiesSection = function(type) {
7961
7960
  getInputField("bottomLabel_1", "First BottomLabel"),
7962
7961
  getInputField("bottomLabel_2", "Second BottomLabel"),
7963
7962
  getInputField("bottomLabel_3", "Third BottomLabel"),
7964
- getInputField("size", "Size"),
7965
- getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
7966
- getArrayControl("pieArcColors", "color", "Color")
7963
+ emptyBox$1("ProgressBarCardEmpty1"),
7964
+ emptyBox$1("ProgressBarCardEmpty2")
7967
7965
  ];
7968
7966
  break;
7969
7967
  case "card":
@@ -8017,7 +8015,6 @@ const buildPropertiesSection = function(type) {
8017
8015
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
8018
8016
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8019
8017
  getInputField("rowSpacing", "Row Spacing"),
8020
- getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
8021
8018
  emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8022
8019
  emptyBox$1("WrapperSectionEmpty2")
8023
8020
  ];
@@ -8594,24 +8591,23 @@ function okHandler(store2) {
8594
8591
  const sectionLabels = {
8595
8592
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8596
8593
  MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8597
- Table: ["Core", "Components", "Properties", "Events", "Style"],
8598
- LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8599
- WrapperSection: ["Core", "Components", "Properties", "Style"],
8600
- HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8594
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8595
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8596
+ WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8597
+ HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
8601
8598
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8602
- SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8599
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8603
8600
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8604
8601
  UploadFile: ["Core", "Events", "Style", "Validation"],
8605
8602
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8606
8603
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8607
8604
  Box: ["Core", "Properties", "Events", "Style", "Validation"],
8608
8605
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8609
- ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8610
- ProgressBar: ["Core", "Properties", "Events", "Style"],
8611
- RankCard: ["Core", "Properties", "Events", "Style"],
8606
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8607
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8612
8608
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8613
- Timer: ["Core", "Events", "Style"],
8614
- Rank: ["Core", "Events", "Style"],
8609
+ Timer: ["Core", "Events", "Style", "Validation"],
8610
+ Rank: ["Core", "Events", "Style", "Validation"],
8615
8611
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8616
8612
  Array: ["Core", "Components", "Properties", "Events", "Validation"],
8617
8613
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8623,7 +8619,7 @@ const sectionLabels = {
8623
8619
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8624
8620
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8625
8621
  ColumnGroup: ["Core", "Components"],
8626
- Thought: ["Core", "Properties", "Events", "Style"],
8622
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8627
8623
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8628
8624
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8629
8625
  Image: ["Core", "Properties", "Style"],
@@ -10847,15 +10843,6 @@ const buildProgressBar = (config2, componentScope2) => {
10847
10843
  ProgressBar.config.layout = config2.layout;
10848
10844
  }
10849
10845
  ProgressBar.config.main.heading = config2.label;
10850
- if (config2.variant) {
10851
- ProgressBar.config.main.variant = config2.variant;
10852
- }
10853
- if (config2.pieArcColors) {
10854
- ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
10855
- }
10856
- if (config2.size) {
10857
- ProgressBar.config.main.size = Number(config2.size);
10858
- }
10859
10846
  if (config2.bottomLabel_3) {
10860
10847
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10861
10848
  }
@@ -11210,7 +11197,6 @@ const buildWrapperSection = (config2, componentScope2) => {
11210
11197
  wrapper.config.main.label = config2.label;
11211
11198
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11212
11199
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11213
- wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11214
11200
  if (config2.defaultStyle) {
11215
11201
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11216
11202
  }
@@ -11455,9 +11441,6 @@ const buildTable = (config2, componentScope2) => {
11455
11441
  if (config2.initialDensity) {
11456
11442
  table.config.main.initialDensity = config2.initialDensity;
11457
11443
  }
11458
- if (config2.layout) {
11459
- table.config.layout = createLayoutFormat(config2.layout);
11460
- }
11461
11444
  return table;
11462
11445
  };
11463
11446
  const Box = {
@@ -11567,158 +11550,210 @@ function Card(theme) {
11567
11550
  type: "WrapperLayout",
11568
11551
  config: {
11569
11552
  main: {},
11570
- style: {
11571
- wrapperStyle: {
11572
- position: "relative",
11573
- top: "50%",
11574
- transform: "translateY(-50%)",
11575
- marginBottom: 0,
11576
- borderRadius: "12px",
11577
- fontFamily: "poppins"
11578
- },
11579
- componentsBoxStyle: {
11580
- boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
11581
- flexDirection: "column",
11582
- overflow: "hidden",
11583
- flexWrap: "nowrap",
11584
- width: "100% !important",
11585
- background: "transparent",
11586
- borderRadius: "12px",
11587
- padding: "20px 20px 20px 14px",
11588
- height: "100%",
11589
- minHeight: "100px",
11590
- position: "relative",
11591
- marginLeft: "0px",
11592
- "&: hover": {
11593
- background: `${theme.palette.primary.main}`,
11594
- color: `${theme.palette.primary.contrastText}`
11553
+ wrapperStyle: {
11554
+ position: "relative",
11555
+ top: "50%",
11556
+ transform: "translateY(-50%)",
11557
+ marginBottom: 0
11558
+ },
11559
+ componentsBoxStyle: {
11560
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11561
+ flexDirection: "row",
11562
+ flexWrap: "nowrap",
11563
+ width: "100% !important",
11564
+ background: "transparent",
11565
+ border: `1.5px solid ${theme.palette.primary.light}`,
11566
+ borderRadius: "8px",
11567
+ padding: "0px 4px",
11568
+ height: "100%",
11569
+ alignItems: "center",
11570
+ marginLeft: "0px",
11571
+ "&: hover": {
11572
+ background: `${theme.palette.primary.main}`,
11573
+ border: `1.5px solid black`,
11574
+ "& p": {
11575
+ color: "white"
11595
11576
  }
11596
11577
  }
11597
11578
  },
11598
- layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11579
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 }
11599
11580
  },
11600
11581
  elements: [
11601
11582
  {
11602
- type: "Control",
11603
- scope: "#/properties/initilCardScope",
11583
+ type: "HorizontalLayout",
11604
11584
  config: {
11605
- main: {
11606
- url: "https://www.svgrepo.com/show/500606/loading.svg"
11607
- },
11608
- style: {
11609
- containerStyle: {
11610
- position: "absolute",
11611
- color: "inherit",
11612
- top: "4px",
11613
- right: "4px",
11614
- display: "flex",
11615
- justifyContent: "flex-end",
11616
- alignItems: "flex-start"
11617
- },
11618
- imageStyle: {
11619
- color: "inherit",
11620
- width: "32px",
11621
- height: "32px",
11622
- padding: "0px",
11623
- margin: "0px"
11624
- }
11625
- }
11585
+ layout: 9
11626
11586
  },
11627
- options: {
11628
- widget: "Image"
11629
- }
11630
- },
11631
- {
11632
- type: "Control",
11633
- scope: "#/properties/initilCardScope",
11634
- config: {
11635
- main: {
11636
- heading: "Total Earnings"
11637
- },
11638
- style: {
11639
- color: "inherit",
11640
- fontSize: "16px",
11641
- fontWeight: 300,
11642
- fontFamily: "Poppins",
11643
- justifyContent: "flex-start",
11644
- background: "inherit",
11645
- position: "absolute",
11646
- top: "8px",
11647
- left: "12px",
11648
- display: "flex",
11649
- maxWidth: "200px",
11650
- whiteSpace: "nowrap",
11651
- overflowX: "auto",
11652
- scrollbarWidth: "none",
11653
- "&::-webkit-scrollbar": {
11654
- display: "none"
11655
- }
11587
+ elements: [
11588
+ {
11589
+ type: "WrapperLayout",
11590
+ config: {
11591
+ main: {
11592
+ columnSpacing: 0,
11593
+ gap: 0
11594
+ },
11595
+ wrapperStyle: {
11596
+ background: "transparent",
11597
+ marginBottom: 0
11598
+ },
11599
+ componentsBoxStyle: {
11600
+ flexDirection: "column",
11601
+ flexWrap: "nowrap",
11602
+ width: "100%",
11603
+ height: "inherit",
11604
+ background: "transparent",
11605
+ borderRadius: "0px",
11606
+ paddingRight: 0
11607
+ },
11608
+ layout: 12
11609
+ },
11610
+ elements: [
11611
+ {
11612
+ type: "WrapperLayout",
11613
+ config: {
11614
+ main: {
11615
+ columnSpacing: 0,
11616
+ gap: 0
11617
+ },
11618
+ wrapperStyle: {
11619
+ background: "transparent",
11620
+ marginBottom: 0
11621
+ },
11622
+ componentsBoxStyle: {
11623
+ flexDirection: "row",
11624
+ flexWrap: "nowrap",
11625
+ width: "100%",
11626
+ height: "0",
11627
+ background: "transparent",
11628
+ borderRadius: "0px",
11629
+ marginLeft: "-10px",
11630
+ marginTop: "-8px",
11631
+ justifyContent: "start",
11632
+ position: "relative"
11633
+ },
11634
+ layout: 12
11635
+ },
11636
+ elements: [
11637
+ {
11638
+ type: "Control",
11639
+ scope: "#/properties/programType",
11640
+ config: {
11641
+ main: {
11642
+ heading: ""
11643
+ },
11644
+ style: {
11645
+ color: "black",
11646
+ display: "flex",
11647
+ fontSize: { xs: "24px", md: "28px" },
11648
+ fontWeight: "bold",
11649
+ background: "inherit",
11650
+ justifyContent: "flex-start",
11651
+ width: "auto",
11652
+ margin: "-8px",
11653
+ marginLeft: "-24px",
11654
+ height: 0
11655
+ }
11656
+ },
11657
+ options: {
11658
+ widget: "Box"
11659
+ }
11660
+ },
11661
+ {
11662
+ type: "Control",
11663
+ scope: "#/properties/programType",
11664
+ config: {
11665
+ main: {
11666
+ heading: "5000.00"
11667
+ },
11668
+ style: {
11669
+ color: "black",
11670
+ display: "flex",
11671
+ fontSize: { xs: "21px", md: "22px" },
11672
+ fontWeight: "500",
11673
+ background: "inherit",
11674
+ justifyContent: "flex-start",
11675
+ width: "auto",
11676
+ margin: "-8px",
11677
+ marginTop: "-6px",
11678
+ position: "absolute",
11679
+ left: "7px",
11680
+ whiteSpace: "nowrap",
11681
+ overflowX: "auto",
11682
+ overflowY: "hidden",
11683
+ scrollbarWidth: "none",
11684
+ msOverflowStyle: "none",
11685
+ maxWidth: "calc(100% + 20px)",
11686
+ "&::-webkit-scrollbar": {
11687
+ display: "none"
11688
+ }
11689
+ }
11690
+ },
11691
+ options: {
11692
+ widget: "Box"
11693
+ }
11694
+ }
11695
+ ]
11696
+ },
11697
+ {
11698
+ type: "Control",
11699
+ scope: "#/properties/programType",
11700
+ config: {
11701
+ main: {
11702
+ heading: "Total Earnings"
11703
+ },
11704
+ style: {
11705
+ color: "black",
11706
+ fontSize: "16px",
11707
+ fontWeight: "400",
11708
+ justifyContent: "center",
11709
+ whiteSpace: "nowrap",
11710
+ overflowX: "auto",
11711
+ overflowY: "hidden",
11712
+ scrollbarWidth: "none",
11713
+ msOverflowStyle: "none",
11714
+ background: "inherit",
11715
+ width: "calc(100% + 8px)",
11716
+ margin: "-8px",
11717
+ marginTop: { xs: "16px", md: "20px" },
11718
+ "&::-webkit-scrollbar": {
11719
+ display: "none"
11720
+ }
11721
+ },
11722
+ layout: 12
11723
+ },
11724
+ options: {
11725
+ widget: "Box"
11726
+ }
11727
+ }
11728
+ ]
11656
11729
  }
11657
- },
11658
- options: {
11659
- widget: "Box"
11660
- }
11730
+ ]
11661
11731
  },
11662
11732
  {
11663
11733
  type: "Control",
11664
- scope: "#/properties/initilCardScope",
11734
+ scope: "#/properties/programType",
11665
11735
  config: {
11666
11736
  main: {
11667
- heading: "5000.00"
11737
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
11668
11738
  },
11669
11739
  style: {
11670
- color: "inherit",
11671
- display: "flex",
11672
- fontSize: { xs: "22px", md: "40px" },
11673
- fontWeight: 600,
11674
- background: "inherit",
11675
- justifyContent: "flex-start",
11676
- width: "100%",
11677
- margin: "0px",
11678
- marginBottom: "4px",
11679
- marginTop: "8px",
11680
- lineHeight: "1",
11681
- maxWidth: "300px",
11682
- whiteSpace: "nowrap",
11683
- overflowX: "auto",
11684
- overflowY: "hidden",
11685
- scrollbarWidth: "none",
11686
- "&::-webkit-scrollbar": {
11687
- display: "none"
11740
+ containerStyle: {
11741
+ height: "100%",
11742
+ display: "flex",
11743
+ justifyContent: "end"
11744
+ },
11745
+ imageStyle: {
11746
+ width: "unset",
11747
+ fontSize: "none",
11748
+ padding: "4px",
11749
+ margin: "0px 0px 0px 8px",
11750
+ height: "64px"
11688
11751
  }
11689
- }
11690
- },
11691
- options: {
11692
- widget: "Box"
11693
- }
11694
- },
11695
- {
11696
- type: "Control",
11697
- scope: "#/properties/initilCardScope",
11698
- config: {
11699
- main: {
11700
- heading: "Increased from last month"
11701
11752
  },
11702
- style: {
11703
- color: "inherit",
11704
- fontSize: "12px",
11705
- fontWeight: "400",
11706
- justifyContent: "flex-start",
11707
- background: "inherit",
11708
- margin: "0px",
11709
- paddingLeft: "2px",
11710
- marginBottom: "8px",
11711
- maxWidth: "200px",
11712
- whiteSpace: "nowrap",
11713
- overflowX: "auto",
11714
- scrollbarWidth: "none",
11715
- "&::-webkit-scrollbar": {
11716
- display: "none"
11717
- }
11718
- }
11753
+ layout: 3
11719
11754
  },
11720
11755
  options: {
11721
- widget: "Box"
11756
+ widget: "Image"
11722
11757
  }
11723
11758
  }
11724
11759
  ]
@@ -11730,10 +11765,9 @@ const buildCard = (config, componentScope, store) => {
11730
11765
  if (config.style) {
11731
11766
  card.config.wrapperStyle = JSON.parse(config.style);
11732
11767
  }
11733
- card.elements[0].scope = `#/properties/${config.name}/properties/url`;
11734
- card.elements[1].scope = `#/properties/${config.name}/properties/label`;
11735
- card.elements[2].scope = `#/properties/${config.name}/properties/value`;
11736
- card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11768
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11769
+ card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11770
+ card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
11737
11771
  if (config.layout) {
11738
11772
  card.config.layout = createLayoutFormat(config.layout);
11739
11773
  }
@@ -11742,13 +11776,13 @@ const buildCard = (config, componentScope, store) => {
11742
11776
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11743
11777
  }
11744
11778
  if (config.label) {
11745
- card.elements[1].config.main.heading = config.label;
11779
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11746
11780
  }
11747
11781
  if (config.url) {
11748
- card.elements[0].config.main.url = config.url;
11782
+ card.elements[1].config.main.url = config.url;
11749
11783
  }
11750
11784
  if (config.description) {
11751
- card.elements[3].config.main.heading = config.description;
11785
+ card.elements[0].elements[0].elements[1].config.main.heading = config.description;
11752
11786
  }
11753
11787
  return card;
11754
11788
  };
@@ -12553,31 +12587,6 @@ const buildImage = (config2, componentScope2) => {
12553
12587
  }
12554
12588
  return image;
12555
12589
  };
12556
- const segmentUISchema = {
12557
- type: "Control",
12558
- scope: "#/properties/SegmentChart",
12559
- options: {
12560
- widget: "SegmentChart"
12561
- },
12562
- config: {
12563
- layout: { xs: 12, sm: 12, md: 12, lg: 12 },
12564
- main: {}
12565
- }
12566
- };
12567
- const buildSegmentChart = (config2, componentScope2) => {
12568
- const segment = _.cloneDeep(segmentUISchema);
12569
- segment.scope = componentScope2;
12570
- if (config2.layout) {
12571
- segment.config.layout = createLayoutFormat(config2.layout);
12572
- }
12573
- if (config2.pieArcColors) {
12574
- segment.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
12575
- }
12576
- if (config2.style) {
12577
- segment.config.style = JSON.parse(config2.style);
12578
- }
12579
- return segment;
12580
- };
12581
12590
  let schema = {
12582
12591
  type: "object",
12583
12592
  properties: {},
@@ -12790,9 +12799,6 @@ const buildUiSchema = (config2, store2) => {
12790
12799
  case "Image":
12791
12800
  elements = buildImage(config2, componentScope2);
12792
12801
  break;
12793
- case "SegmentChart":
12794
- elements = buildSegmentChart(config2, componentScope2);
12795
- break;
12796
12802
  default:
12797
12803
  schema = {
12798
12804
  type: "object",