impaktapps-ui-builder 0.0.320 → 0.0.321

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