impaktapps-ui-builder 0.0.405 → 0.0.407

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.
@@ -5884,6 +5884,7 @@ const ComponentSchema = {
5884
5884
  { title: "Container", const: "WrapperSection" },
5885
5885
  { title: "DataGrid", const: "DataGrid" },
5886
5886
  { title: "Date", const: "Date" },
5887
+ { title: "DateTime", const: "DateTime" },
5887
5888
  { title: "Download File", const: "DownloadFile" },
5888
5889
  { title: "Empty Box", const: "EmptyBox" },
5889
5890
  { title: "File", const: "FileInput" },
@@ -7022,7 +7023,11 @@ const buildPropertiesSection = function(type) {
7022
7023
  ];
7023
7024
  break;
7024
7025
  case "WrapperSection":
7025
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
7026
+ uiSchema.elements = [
7027
+ getRadioInputField("divider", "Divider", ["YES", "No"]),
7028
+ getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7029
+ EmptyBox
7030
+ ];
7026
7031
  break;
7027
7032
  case "TabSection":
7028
7033
  uiSchema.elements = [
@@ -7363,6 +7368,9 @@ const createLayoutFormat = (config) => {
7363
7368
  return data2;
7364
7369
  };
7365
7370
  const flatObjectValueInArray = (config) => {
7371
+ if (config[0].length < 1) {
7372
+ return;
7373
+ }
7366
7374
  const keyName = Object.keys(config[0])[0];
7367
7375
  const data2 = config.map((e) => {
7368
7376
  return e[keyName];
@@ -9349,7 +9357,7 @@ const LineGraph = {
9349
9357
  leftLabel: "Incentive",
9350
9358
  gridHidden: true,
9351
9359
  numHidden: false,
9352
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
9360
+ tooltipDataKey: ["First", "Second", "Third"],
9353
9361
  axisLeft: true,
9354
9362
  axisBottom: true,
9355
9363
  hideLeftAxisLine: false,
@@ -9631,6 +9639,7 @@ const buildWrapperSection = (config, componentScope) => {
9631
9639
  wrapper.scope = componentScope;
9632
9640
  wrapper.config.main.label = config.label;
9633
9641
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9642
+ wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
9634
9643
  if (config.style) {
9635
9644
  wrapper.config.style = JSON.parse(config.style);
9636
9645
  }
@@ -10806,6 +10815,9 @@ const buildUiSchema = (config) => {
10806
10815
  let elements = {};
10807
10816
  const componentScope = `#/properties/${config.name}`;
10808
10817
  switch (config.type) {
10818
+ case "DateTime":
10819
+ elements = buildInputSlider(config, componentScope);
10820
+ break;
10809
10821
  case "InputSlider":
10810
10822
  elements = buildInputSlider(config, componentScope);
10811
10823
  break;