impaktapps-ui-builder 1.0.255 → 1.0.257

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.
@@ -6242,6 +6242,7 @@ const ComponentSchema = {
6242
6242
  { title: "Label", const: "Box" },
6243
6243
  { title: "Leaderboard", const: "LeaderBoard" },
6244
6244
  { title: "Multi-Select Dropdown", const: "MultipleSelect" },
6245
+ { title: "OTP_Input", const: "OTP_Input" },
6245
6246
  { title: "Pan Card Masked", const: "PanCardText" },
6246
6247
  { title: "Pop Up", const: "PopUp" },
6247
6248
  { title: "Pop Over", const: "PopOver" },
@@ -7972,6 +7973,14 @@ const BaseSection = {
7972
7973
  const buildPropertiesSection = function(type) {
7973
7974
  let uiSchema = _.cloneDeep(BaseSection);
7974
7975
  switch (type) {
7976
+ case "OTP_Input":
7977
+ uiSchema.elements = [
7978
+ getInputField("seperator", "Seperator"),
7979
+ getInputField("length", "OTP Length"),
7980
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
7981
+ emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
7982
+ ];
7983
+ break;
7975
7984
  case "Array":
7976
7985
  uiSchema.elements = [
7977
7986
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
@@ -8143,10 +8152,9 @@ const buildPropertiesSection = function(type) {
8143
8152
  case "ButtonGroup":
8144
8153
  uiSchema.elements = [
8145
8154
  getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8146
- getRadioInputField("enableEvent", "Enable Event", ["YES", "No"]),
8147
8155
  getInputField("size", "Size"),
8148
8156
  getSelectField("color", "Color"),
8149
- emptyBox$1("ButtonEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 })
8157
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
8150
8158
  ];
8151
8159
  break;
8152
8160
  case "Box":
@@ -8297,6 +8305,8 @@ const buildPropertiesSection = function(type) {
8297
8305
  getInputField("description", "Enter description"),
8298
8306
  getInputField("toolTip", "Tooltip"),
8299
8307
  getSelectField("toolTipPosition", "Tooltip Position"),
8308
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
8309
+ getInputField("noFileAvailableMessage", "No Found Message"),
8300
8310
  emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
8301
8311
  ];
8302
8312
  break;
@@ -8839,7 +8849,8 @@ const sectionLabels = {
8839
8849
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
8840
8850
  Image: ["Core", "Properties", "Style"],
8841
8851
  FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8842
- Camera: ["Core", "Properties", "Events", "Style", "Validation"]
8852
+ Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8853
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8843
8854
  };
8844
8855
  function refreshPage(type, store2) {
8845
8856
  var _a, _b;
@@ -12111,6 +12122,9 @@ const buildDate = (config2, componentScope2) => {
12111
12122
  if (config2.toolTipPosition) {
12112
12123
  dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
12113
12124
  }
12125
+ if (config2.style) {
12126
+ dateInputField.config.style = JSON.parse(config2.style);
12127
+ }
12114
12128
  return dateInputField;
12115
12129
  };
12116
12130
  const buildDateTime = (config2, componentScope2) => {
@@ -12130,6 +12144,9 @@ const buildDateTime = (config2, componentScope2) => {
12130
12144
  if (config2.toolTipPosition) {
12131
12145
  dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
12132
12146
  }
12147
+ if (config2.style) {
12148
+ dateTimeInputField.config.style = JSON.parse(config2.style);
12149
+ }
12133
12150
  return dateTimeInputField;
12134
12151
  };
12135
12152
  var RankCard = {
@@ -12581,24 +12598,14 @@ const buildFileInput = (config2, componentScope2) => {
12581
12598
  if (config2.style) {
12582
12599
  box.config.style = JSON.parse(config2.style);
12583
12600
  }
12584
- if (config2.variant) {
12585
- box.config.main.variant = config2.variant;
12586
- }
12587
- if (config2.disableUpload) {
12588
- box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12589
- }
12590
- if (config2.disableDownload) {
12591
- box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12592
- }
12593
- if (config2.disableDelete) {
12594
- box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12595
- }
12596
- if (config2.description) {
12597
- box.config.main.description = config2.description;
12598
- }
12599
- if (config2.toolTip) {
12600
- box.config.main.toolTip = config2.toolTip;
12601
- }
12601
+ box.config.main.variant = config2.variant;
12602
+ box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12603
+ box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12604
+ box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12605
+ box.config.main.description = config2.description;
12606
+ box.config.main.toolTip = config2.toolTip;
12607
+ box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
12608
+ box.config.main.noFileAvailableMessage = config2.noFileAvailableMessage;
12602
12609
  if (config2.toolTipPosition) {
12603
12610
  box.config.main.toolTipPosition = config2.toolTipPosition;
12604
12611
  }
@@ -13029,9 +13036,6 @@ const buildButtonGroup = (config2, componentScope2) => {
13029
13036
  if (config2.multiSelect) {
13030
13037
  buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13031
13038
  }
13032
- if (config2.enableEvent) {
13033
- buttonGroup.config.main.enableOnChange = config2.enableEvent === "YES" ? true : false;
13034
- }
13035
13039
  if (config2.style) {
13036
13040
  buttonGroup.config.style = JSON.parse(config2.style);
13037
13041
  }
@@ -13079,6 +13083,43 @@ const buildPopOver = (config2, componentScope2) => {
13079
13083
  }
13080
13084
  return popOver;
13081
13085
  };
13086
+ const OTPSchema = {
13087
+ type: "Control",
13088
+ scope: "#/properties/OTPInput",
13089
+ options: {
13090
+ widget: "OTPInput"
13091
+ },
13092
+ config: {
13093
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
13094
+ main: {
13095
+ seperator: "",
13096
+ length: 4,
13097
+ type: "number",
13098
+ masking: true
13099
+ }
13100
+ }
13101
+ };
13102
+ const buildOTP_Input = (config2, componentScope2) => {
13103
+ const OTP = _.cloneDeep(OTPSchema);
13104
+ OTP.scope = componentScope2;
13105
+ if (config2.layout) {
13106
+ OTP.config.layout = createLayoutFormat(config2.layout);
13107
+ }
13108
+ if (config2.style) {
13109
+ OTP.config.style = JSON.parse(config2.style);
13110
+ }
13111
+ if (config2.errorMessage) {
13112
+ OTP.config.main.errorMessage = config2.errorMessage;
13113
+ }
13114
+ if (config2.toolTip) {
13115
+ OTP.config.main.toolTip = config2.toolTip;
13116
+ }
13117
+ OTP.config.main.masking = config2.masking === "YES" ? true : false;
13118
+ OTP.config.main.type = config2.OTP_Format;
13119
+ OTP.config.main.seperator = config2.seperator;
13120
+ OTP.config.main.length = +config2.length;
13121
+ return OTP;
13122
+ };
13082
13123
  let schema = {
13083
13124
  type: "object",
13084
13125
  properties: {},
@@ -13149,6 +13190,9 @@ const buildUiSchema = (config2, store2) => {
13149
13190
  let elements = {};
13150
13191
  const componentScope2 = `#/properties/${config2.name}`;
13151
13192
  switch (config2.type) {
13193
+ case "OTP_Input":
13194
+ elements = buildOTP_Input(config2, componentScope2);
13195
+ break;
13152
13196
  case "TreeMap":
13153
13197
  elements = buildTreeMap(config2, componentScope2);
13154
13198
  break;