impaktapps-ui-builder 1.0.157 → 1.0.160-test.2

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
  ];
@@ -8553,11 +8550,13 @@ async function saveHandler(store2, service2, submitHandler) {
8553
8550
  const saveReturn = await submitHandler(store2, service2, config2);
8554
8551
  navigateHandler(store2, true, "/PageMasterRecords");
8555
8552
  } catch (err) {
8556
- navigateHandler(store2, false);
8553
+ navigateHandler(store2, false, void 0, err.message);
8557
8554
  }
8555
+ } else {
8556
+ navigateHandler(store2, false);
8558
8557
  }
8559
8558
  }
8560
- const navigateHandler = (store2, isSubmitted, pageName) => {
8559
+ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
8561
8560
  if (isSubmitted) {
8562
8561
  sessionStorage.removeItem("pageFormdata");
8563
8562
  store2.navigate(pageName || -1);
@@ -8569,7 +8568,7 @@ const navigateHandler = (store2, isSubmitted, pageName) => {
8569
8568
  store2.setValidation("ValidateAndShow");
8570
8569
  store2.setNotify({
8571
8570
  Fail: true,
8572
- FailMessage: "Errors on Page"
8571
+ FailMessage: errorMessage || "Errors on Page"
8573
8572
  });
8574
8573
  }
8575
8574
  };
@@ -8594,24 +8593,23 @@ function okHandler(store2) {
8594
8593
  const sectionLabels = {
8595
8594
  Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
8596
8595
  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"],
8596
+ Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8597
+ LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8598
+ WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
8599
+ HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
8601
8600
  TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8602
- SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8601
+ SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
8603
8602
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8604
8603
  UploadFile: ["Core", "Events", "Style", "Validation"],
8605
8604
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
8606
8605
  DownloadFile: ["Core", "Events", "Style", "Validation"],
8607
8606
  Box: ["Core", "Properties", "Events", "Style", "Validation"],
8608
8607
  Properties: ["Core", "Properties", "Events", "Style", "Validation"],
8609
- ProgressBarCard: ["Core", "Properties", "Events", "Style"],
8610
- ProgressBar: ["Core", "Properties", "Events", "Style"],
8611
- RankCard: ["Core", "Properties", "Events", "Style"],
8608
+ ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
8609
+ RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
8612
8610
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8613
- Timer: ["Core", "Events", "Style"],
8614
- Rank: ["Core", "Events", "Style"],
8611
+ Timer: ["Core", "Events", "Style", "Validation"],
8612
+ Rank: ["Core", "Events", "Style", "Validation"],
8615
8613
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8616
8614
  Array: ["Core", "Components", "Properties", "Events", "Validation"],
8617
8615
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8623,7 +8621,7 @@ const sectionLabels = {
8623
8621
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
8624
8622
  TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
8625
8623
  ColumnGroup: ["Core", "Components"],
8626
- Thought: ["Core", "Properties", "Events", "Style"],
8624
+ Thought: ["Core", "Properties", "Events", "Style", "Validation"],
8627
8625
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
8628
8626
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8629
8627
  Image: ["Core", "Properties", "Style"],
@@ -10847,15 +10845,6 @@ const buildProgressBar = (config2, componentScope2) => {
10847
10845
  ProgressBar.config.layout = config2.layout;
10848
10846
  }
10849
10847
  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
10848
  if (config2.bottomLabel_3) {
10860
10849
  ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10861
10850
  }
@@ -11210,7 +11199,6 @@ const buildWrapperSection = (config2, componentScope2) => {
11210
11199
  wrapper.config.main.label = config2.label;
11211
11200
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11212
11201
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11213
- wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11214
11202
  if (config2.defaultStyle) {
11215
11203
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11216
11204
  }
@@ -11455,9 +11443,6 @@ const buildTable = (config2, componentScope2) => {
11455
11443
  if (config2.initialDensity) {
11456
11444
  table.config.main.initialDensity = config2.initialDensity;
11457
11445
  }
11458
- if (config2.layout) {
11459
- table.config.layout = createLayoutFormat(config2.layout);
11460
- }
11461
11446
  return table;
11462
11447
  };
11463
11448
  const Box = {
@@ -11567,158 +11552,210 @@ function Card(theme) {
11567
11552
  type: "WrapperLayout",
11568
11553
  config: {
11569
11554
  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}`
11555
+ wrapperStyle: {
11556
+ position: "relative",
11557
+ top: "50%",
11558
+ transform: "translateY(-50%)",
11559
+ marginBottom: 0
11560
+ },
11561
+ componentsBoxStyle: {
11562
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11563
+ flexDirection: "row",
11564
+ flexWrap: "nowrap",
11565
+ width: "100% !important",
11566
+ background: "transparent",
11567
+ border: `1.5px solid ${theme.palette.primary.light}`,
11568
+ borderRadius: "8px",
11569
+ padding: "0px 4px",
11570
+ height: "100%",
11571
+ alignItems: "center",
11572
+ marginLeft: "0px",
11573
+ "&: hover": {
11574
+ background: `${theme.palette.primary.main}`,
11575
+ border: `1.5px solid black`,
11576
+ "& p": {
11577
+ color: "white"
11595
11578
  }
11596
11579
  }
11597
11580
  },
11598
- layout: { xs: 12, sm: 12, md: 3, lg: 3 }
11581
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 }
11599
11582
  },
11600
11583
  elements: [
11601
11584
  {
11602
- type: "Control",
11603
- scope: "#/properties/initilCardScope",
11585
+ type: "HorizontalLayout",
11604
11586
  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
- }
11587
+ layout: 9
11626
11588
  },
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
- }
11589
+ elements: [
11590
+ {
11591
+ type: "WrapperLayout",
11592
+ config: {
11593
+ main: {
11594
+ columnSpacing: 0,
11595
+ gap: 0
11596
+ },
11597
+ wrapperStyle: {
11598
+ background: "transparent",
11599
+ marginBottom: 0
11600
+ },
11601
+ componentsBoxStyle: {
11602
+ flexDirection: "column",
11603
+ flexWrap: "nowrap",
11604
+ width: "100%",
11605
+ height: "inherit",
11606
+ background: "transparent",
11607
+ borderRadius: "0px",
11608
+ paddingRight: 0
11609
+ },
11610
+ layout: 12
11611
+ },
11612
+ elements: [
11613
+ {
11614
+ type: "WrapperLayout",
11615
+ config: {
11616
+ main: {
11617
+ columnSpacing: 0,
11618
+ gap: 0
11619
+ },
11620
+ wrapperStyle: {
11621
+ background: "transparent",
11622
+ marginBottom: 0
11623
+ },
11624
+ componentsBoxStyle: {
11625
+ flexDirection: "row",
11626
+ flexWrap: "nowrap",
11627
+ width: "100%",
11628
+ height: "0",
11629
+ background: "transparent",
11630
+ borderRadius: "0px",
11631
+ marginLeft: "-10px",
11632
+ marginTop: "-8px",
11633
+ justifyContent: "start",
11634
+ position: "relative"
11635
+ },
11636
+ layout: 12
11637
+ },
11638
+ elements: [
11639
+ {
11640
+ type: "Control",
11641
+ scope: "#/properties/programType",
11642
+ config: {
11643
+ main: {
11644
+ heading: ""
11645
+ },
11646
+ style: {
11647
+ color: "black",
11648
+ display: "flex",
11649
+ fontSize: { xs: "24px", md: "28px" },
11650
+ fontWeight: "bold",
11651
+ background: "inherit",
11652
+ justifyContent: "flex-start",
11653
+ width: "auto",
11654
+ margin: "-8px",
11655
+ marginLeft: "-24px",
11656
+ height: 0
11657
+ }
11658
+ },
11659
+ options: {
11660
+ widget: "Box"
11661
+ }
11662
+ },
11663
+ {
11664
+ type: "Control",
11665
+ scope: "#/properties/programType",
11666
+ config: {
11667
+ main: {
11668
+ heading: "5000.00"
11669
+ },
11670
+ style: {
11671
+ color: "black",
11672
+ display: "flex",
11673
+ fontSize: { xs: "21px", md: "22px" },
11674
+ fontWeight: "500",
11675
+ background: "inherit",
11676
+ justifyContent: "flex-start",
11677
+ width: "auto",
11678
+ margin: "-8px",
11679
+ marginTop: "-6px",
11680
+ position: "absolute",
11681
+ left: "7px",
11682
+ whiteSpace: "nowrap",
11683
+ overflowX: "auto",
11684
+ overflowY: "hidden",
11685
+ scrollbarWidth: "none",
11686
+ msOverflowStyle: "none",
11687
+ maxWidth: "calc(100% + 20px)",
11688
+ "&::-webkit-scrollbar": {
11689
+ display: "none"
11690
+ }
11691
+ }
11692
+ },
11693
+ options: {
11694
+ widget: "Box"
11695
+ }
11696
+ }
11697
+ ]
11698
+ },
11699
+ {
11700
+ type: "Control",
11701
+ scope: "#/properties/programType",
11702
+ config: {
11703
+ main: {
11704
+ heading: "Total Earnings"
11705
+ },
11706
+ style: {
11707
+ color: "black",
11708
+ fontSize: "16px",
11709
+ fontWeight: "400",
11710
+ justifyContent: "center",
11711
+ whiteSpace: "nowrap",
11712
+ overflowX: "auto",
11713
+ overflowY: "hidden",
11714
+ scrollbarWidth: "none",
11715
+ msOverflowStyle: "none",
11716
+ background: "inherit",
11717
+ width: "calc(100% + 8px)",
11718
+ margin: "-8px",
11719
+ marginTop: { xs: "16px", md: "20px" },
11720
+ "&::-webkit-scrollbar": {
11721
+ display: "none"
11722
+ }
11723
+ },
11724
+ layout: 12
11725
+ },
11726
+ options: {
11727
+ widget: "Box"
11728
+ }
11729
+ }
11730
+ ]
11656
11731
  }
11657
- },
11658
- options: {
11659
- widget: "Box"
11660
- }
11732
+ ]
11661
11733
  },
11662
11734
  {
11663
11735
  type: "Control",
11664
- scope: "#/properties/initilCardScope",
11736
+ scope: "#/properties/programType",
11665
11737
  config: {
11666
11738
  main: {
11667
- heading: "5000.00"
11739
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
11668
11740
  },
11669
11741
  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"
11742
+ containerStyle: {
11743
+ height: "100%",
11744
+ display: "flex",
11745
+ justifyContent: "end"
11746
+ },
11747
+ imageStyle: {
11748
+ width: "unset",
11749
+ fontSize: "none",
11750
+ padding: "4px",
11751
+ margin: "0px 0px 0px 8px",
11752
+ height: "64px"
11688
11753
  }
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
11754
  },
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
- }
11755
+ layout: 3
11719
11756
  },
11720
11757
  options: {
11721
- widget: "Box"
11758
+ widget: "Image"
11722
11759
  }
11723
11760
  }
11724
11761
  ]
@@ -11730,10 +11767,9 @@ const buildCard = (config, componentScope, store) => {
11730
11767
  if (config.style) {
11731
11768
  card.config.wrapperStyle = JSON.parse(config.style);
11732
11769
  }
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`;
11770
+ card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11771
+ card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11772
+ card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
11737
11773
  if (config.layout) {
11738
11774
  card.config.layout = createLayoutFormat(config.layout);
11739
11775
  }
@@ -11742,13 +11778,13 @@ const buildCard = (config, componentScope, store) => {
11742
11778
  card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11743
11779
  }
11744
11780
  if (config.label) {
11745
- card.elements[1].config.main.heading = config.label;
11781
+ card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11746
11782
  }
11747
11783
  if (config.url) {
11748
- card.elements[0].config.main.url = config.url;
11784
+ card.elements[1].config.main.url = config.url;
11749
11785
  }
11750
11786
  if (config.description) {
11751
- card.elements[3].config.main.heading = config.description;
11787
+ card.elements[0].elements[0].elements[1].config.main.heading = config.description;
11752
11788
  }
11753
11789
  return card;
11754
11790
  };
@@ -12553,31 +12589,6 @@ const buildImage = (config2, componentScope2) => {
12553
12589
  }
12554
12590
  return image;
12555
12591
  };
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
12592
  let schema = {
12582
12593
  type: "object",
12583
12594
  properties: {},
@@ -12790,9 +12801,6 @@ const buildUiSchema = (config2, store2) => {
12790
12801
  case "Image":
12791
12802
  elements = buildImage(config2, componentScope2);
12792
12803
  break;
12793
- case "SegmentChart":
12794
- elements = buildSegmentChart(config2, componentScope2);
12795
- break;
12796
12804
  default:
12797
12805
  schema = {
12798
12806
  type: "object",