impaktapps-ui-builder 0.0.320 → 0.0.322

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.
@@ -6013,6 +6013,17 @@ const ComponentSchema = {
6013
6013
  }
6014
6014
  }
6015
6015
  },
6016
+ InputFormatingAndMasking: {
6017
+ type: "array",
6018
+ items: {
6019
+ type: "object",
6020
+ properties: {
6021
+ formatElement: {
6022
+ type: "string"
6023
+ }
6024
+ }
6025
+ }
6026
+ },
6016
6027
  validation: {
6017
6028
  type: "array",
6018
6029
  items: {
@@ -6727,7 +6738,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6727
6738
  label: childLabel || "Labels for Tab"
6728
6739
  }
6729
6740
  }
6730
- }
6741
+ },
6742
+ EmptyBox
6731
6743
  ]
6732
6744
  }
6733
6745
  }
@@ -6823,104 +6835,128 @@ const GraphSection = {
6823
6835
  };
6824
6836
  const buildPropertiesSection = function(type) {
6825
6837
  let uiSchema = _.cloneDeep(GraphSection);
6826
- if (type === "Text" || type === "TextArea") {
6827
- uiSchema.elements = [
6828
- getInputField("placeholder", "Placeholder"),
6829
- EmptyBox
6830
- ];
6831
- }
6832
- if (type === "SpeedoMeter") {
6833
- uiSchema.elements = [
6834
- getInputField("segments", "Segments Count"),
6835
- getInputField("heading", "Container Heading"),
6836
- getInputField("heading", "Container Heading"),
6837
- getInputField("speedoCaption", "Speedometer Caption"),
6838
- getInputField("width", "Speedometer Width")
6839
- ];
6840
- } else if (type === "RankCard") {
6841
- uiSchema.elements = [
6842
- getInputField("rank", "Rank"),
6843
- getInputField("image", "Image Url"),
6844
- getInputField("title", "Card Title"),
6845
- getInputField("description", "Card Description")
6846
- ];
6847
- } else if (type === "LeaderBoard") {
6848
- uiSchema.elements = [
6849
- getInputField("valueLabel", "Value Label"),
6850
- getInputField("firstImage", "First Image url"),
6851
- getInputField("secondImage", "Second Image url"),
6852
- getInputField("thirdImage", "Third Image url"),
6853
- getTextArea("functionCode", "Write Compare Code", false)
6854
- ];
6855
- } else if (type === "CardSlider") {
6856
- const heading = getInputField("heading", "Heading");
6857
- const iconName = getInputField("iconName", "Icon Name");
6858
- uiSchema.elements = [heading, iconName];
6859
- } else if (type === "ProgressBar" || type === "ProgressBarCard") {
6860
- const heading = getInputField("heading", "Heading");
6861
- const bottomLabel_1 = getInputField("bottomLabel_1", "First BottomLabel");
6862
- const bottomLabel_2 = getInputField("bottomLabel_2", "Second BottomLabel");
6863
- const bottomLabel_3 = getInputField("bottomLabel_3", "Third BottomLabel");
6864
- uiSchema.elements = [heading, bottomLabel_1, bottomLabel_2, bottomLabel_3];
6865
- } else if (type === "card") {
6866
- uiSchema.elements = [getInputField("url", "Image Url"), getInputField("label", "Label"), getInputField("description", "Description"), EmptyBox];
6867
- } else if (type === "Button") {
6868
- const color = getSelectField("color", "Color");
6869
- const iconName = getSelectField("iconName", "Icon Name");
6870
- uiSchema.elements = [
6871
- getSelectField("buttonType", "Button Type"),
6872
- iconName,
6873
- color,
6874
- getInputField("tooltipMessage", "Tooltip Message"),
6875
- getSelectField("defaultStyle", "Default Style"),
6876
- JSON.parse(JSON.stringify(EmptyBox))
6877
- ];
6878
- } else if (type === "Graph") {
6879
- const height = getInputField("height", "Height");
6880
- const heading = getInputField("heading", "Heading");
6881
- const leftLabel = getInputField("leftLabel", "Left Label");
6882
- const bottomLabel = getInputField("bottomLabel", "Bottom Label");
6883
- const legendAvailabe = getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]);
6884
- uiSchema.elements = [
6885
- heading,
6886
- height,
6887
- getSelectField("graphType", "Graph Type"),
6888
- leftLabel,
6889
- bottomLabel,
6890
- legendAvailabe,
6891
- getArrayControl("legendLabels", "label"),
6892
- getArrayControl("pieArcColors", "color")
6893
- ];
6894
- } else if (type === "WrapperSection") {
6895
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
6896
- } else if (type === "TabSection") {
6897
- uiSchema.elements = [
6898
- getArrayControl("sectionLabels", "label")
6899
- ];
6900
- } else if (type === "Table" || type === "LazyLoadingTable") {
6901
- uiSchema.elements = [
6902
- getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6903
- getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
6904
- getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
6905
- getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
6906
- getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
6907
- getInputField("selectKey", "Selection Key"),
6908
- getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
6909
- ];
6910
- } else if (type === "Radio") {
6911
- uiSchema.elements = [
6912
- getArrayControl("sectionLabels", "label", "Options Of Radio")
6913
- ];
6914
- } else if (type === "Select") {
6915
- uiSchema.elements = [
6916
- getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6917
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
6918
- ];
6919
- } else if (type === "MultipleSelect") {
6920
- uiSchema.elements = [
6921
- getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6922
- EmptyBox
6923
- ];
6838
+ switch (type) {
6839
+ case "Text":
6840
+ uiSchema.elements = [
6841
+ getInputField("placeholder", "Placeholder"),
6842
+ EmptyBox,
6843
+ getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6844
+ ];
6845
+ break;
6846
+ case "TextArea":
6847
+ uiSchema.elements = [
6848
+ getInputField("placeholder", "Placeholder"),
6849
+ EmptyBox
6850
+ ];
6851
+ break;
6852
+ case "SpeedoMeter":
6853
+ uiSchema.elements = [
6854
+ getInputField("segments", "Segments Count"),
6855
+ getInputField("heading", "Container Heading"),
6856
+ getInputField("heading", "Container Heading"),
6857
+ getInputField("speedoCaption", "Speedometer Caption"),
6858
+ getInputField("width", "Speedometer Width")
6859
+ ];
6860
+ break;
6861
+ case "RankCard":
6862
+ uiSchema.elements = [
6863
+ getInputField("rank", "Rank"),
6864
+ getInputField("image", "Image Url"),
6865
+ getInputField("title", "Card Title"),
6866
+ getInputField("description", "Card Description")
6867
+ ];
6868
+ break;
6869
+ case "LeaderBoard":
6870
+ uiSchema.elements = [
6871
+ getInputField("valueLabel", "Value Label"),
6872
+ getInputField("firstImage", "First Image url"),
6873
+ getInputField("secondImage", "Second Image url"),
6874
+ getInputField("thirdImage", "Third Image url"),
6875
+ getTextArea("functionCode", "Write Compare Code", false)
6876
+ ];
6877
+ break;
6878
+ case "CardSlider":
6879
+ uiSchema.elements = [
6880
+ getInputField("heading", "Heading"),
6881
+ getInputField("iconName", "Icon Name")
6882
+ ];
6883
+ break;
6884
+ case "ProgressBar":
6885
+ case "ProgressBarCard":
6886
+ uiSchema.elements = [
6887
+ getInputField("heading", "Heading"),
6888
+ getInputField("bottomLabel_1", "First BottomLabel"),
6889
+ getInputField("bottomLabel_2", "Second BottomLabel"),
6890
+ getInputField("bottomLabel_3", "Third BottomLabel")
6891
+ ];
6892
+ break;
6893
+ case "card":
6894
+ uiSchema.elements = [
6895
+ getInputField("url", "Image Url"),
6896
+ getInputField("label", "Label"),
6897
+ getInputField("description", "Description"),
6898
+ EmptyBox
6899
+ ];
6900
+ break;
6901
+ case "Button":
6902
+ uiSchema.elements = [
6903
+ getSelectField("buttonType", "Button Type"),
6904
+ getSelectField("iconName", "Icon Name"),
6905
+ getSelectField("color", "Color"),
6906
+ getInputField("tooltipMessage", "Tooltip Message"),
6907
+ getSelectField("defaultStyle", "Default Style"),
6908
+ EmptyBox
6909
+ ];
6910
+ break;
6911
+ case "Graph":
6912
+ uiSchema.elements = [
6913
+ getInputField("height", "Height"),
6914
+ getInputField("heading", "Heading"),
6915
+ getSelectField("graphType", "Graph Type"),
6916
+ getInputField("leftLabel", "Left Label"),
6917
+ getInputField("bottomLabel", "Bottom Label"),
6918
+ getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
6919
+ getArrayControl("legendLabels", "label"),
6920
+ getArrayControl("pieArcColors", "color")
6921
+ ];
6922
+ break;
6923
+ case "WrapperSection":
6924
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
6925
+ break;
6926
+ case "TabSection":
6927
+ uiSchema.elements = [
6928
+ getArrayControl("sectionLabels", "label")
6929
+ ];
6930
+ break;
6931
+ case "Table":
6932
+ case "LazyLoadingTable":
6933
+ uiSchema.elements = [
6934
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6935
+ getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
6936
+ getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
6937
+ getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
6938
+ getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
6939
+ getInputField("selectKey", "Selection Key"),
6940
+ getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
6941
+ ];
6942
+ break;
6943
+ case "Radio":
6944
+ uiSchema.elements = [
6945
+ getArrayControl("sectionLabels", "label", "Options Of Radio")
6946
+ ];
6947
+ break;
6948
+ case "Select":
6949
+ uiSchema.elements = [
6950
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6951
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
6952
+ ];
6953
+ break;
6954
+ case "MultipleSelect":
6955
+ uiSchema.elements = [
6956
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6957
+ EmptyBox
6958
+ ];
6959
+ break;
6924
6960
  }
6925
6961
  return uiSchema;
6926
6962
  };
@@ -7207,7 +7243,8 @@ const sectionLabels = {
7207
7243
  Button: ["Core", "Properties", "style", "Event", "Validation"],
7208
7244
  Array: ["Core", "Components", "Validation"],
7209
7245
  Radio: ["Core", "Properties", "style", "Event", "Validation"],
7210
- Text: ["Core", "style", "Event", "Validation"]
7246
+ Text: ["Core", "Properties", "style", "Event", "Validation"],
7247
+ TextArea: ["Core", "Properties", "style", "Event", "Validation"]
7211
7248
  };
7212
7249
  const refreshPage = (type, store2) => {
7213
7250
  var _a;
@@ -9286,6 +9323,12 @@ const buildTextField = (config, componentScope) => {
9286
9323
  if (config.style) {
9287
9324
  inputField.config.style = JSON.parse(config.style);
9288
9325
  }
9326
+ if (config.InputFormatingAndMasking) {
9327
+ inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
9328
+ }
9329
+ if (config.placeholder) {
9330
+ inputField.config.main.placeholder = config.placeholder;
9331
+ }
9289
9332
  if (config.layout) {
9290
9333
  inputField.config.layout = createLayoutFormat(config.layout);
9291
9334
  }
@@ -9907,6 +9950,9 @@ const buildTextArea = (config, componentScope) => {
9907
9950
  if (config.style) {
9908
9951
  textArea.config.style = JSON.parse(config.style);
9909
9952
  }
9953
+ if (config.placeholder) {
9954
+ textArea.config.main.placeholder = config.placeholder;
9955
+ }
9910
9956
  textArea.scope = componentScope;
9911
9957
  return textArea;
9912
9958
  };
@@ -10269,9 +10315,6 @@ const buildUiSchema = (config) => {
10269
10315
  case "RunnerBoyProgressBar":
10270
10316
  elements = RunnerBoyProgressbar(config, componentScope);
10271
10317
  break;
10272
- case "TabSection":
10273
- elements = buildTabSection(config);
10274
- break;
10275
10318
  case "WrapperSection":
10276
10319
  elements = buildWrapperSection(config);
10277
10320
  break;