impaktapps-ui-builder 0.0.304 → 0.0.306

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.
@@ -8070,12 +8070,13 @@ async function executeEventsHandler(params2) {
8070
8070
  } else if (params2.config.Handler === "refresh") {
8071
8071
  return await executeRefreshHandler(params2);
8072
8072
  } else if (params2.config.Handler === "mergeFormdata") {
8073
- return await mergeFormdata(
8073
+ const result = mergeFormdata(
8074
8074
  params2.parentEventOutput,
8075
8075
  params2.componentName,
8076
8076
  params2.config,
8077
8077
  params2.store
8078
8078
  );
8079
+ return result;
8079
8080
  }
8080
8081
  }
8081
8082
  async function executeRefreshHandler(params2) {
@@ -8114,7 +8115,7 @@ async function executeCustomHandler(params) {
8114
8115
  const response = await makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
8115
8116
  return response;
8116
8117
  }
8117
- async function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
8118
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
8118
8119
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8119
8120
  store2.setSchema((pre) => {
8120
8121
  var _a;
@@ -8147,9 +8148,11 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8147
8148
  };
8148
8149
  });
8149
8150
  } else if (eventConfig.type === "page") {
8150
- store2.setFormdata((pre) => {
8151
- return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
8152
- });
8151
+ if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8152
+ store2.setFormdata((pre) => {
8153
+ return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
8154
+ });
8155
+ }
8153
8156
  } else {
8154
8157
  if (handlerResponse) {
8155
8158
  store2.setFormdata((pre) => {
@@ -9986,30 +9989,26 @@ const buildArray = (config, componentScope) => {
9986
9989
  return array;
9987
9990
  };
9988
9991
  const TextField = {
9989
- type: "Control",
9990
- scope: "#/properties/text",
9991
- options: {
9992
- widget: "InputField"
9992
+ "type": "Control",
9993
+ "scope": "#/properties/AAdhar",
9994
+ "layout": 12,
9995
+ "options": {
9996
+ "widget": "InputField"
9993
9997
  },
9994
9998
  config: {
9995
- layout: {
9996
- xs: 11,
9997
- sm: 11,
9998
- md: 5.5,
9999
- lg: 5.5
10000
- },
10001
9999
  main: {
10002
- label: "Aadhaar No.",
10000
+ label: "Adhaar Card",
10003
10001
  max: 2e3,
10004
10002
  step: 200,
10003
+ placeholder: "XXXX XXXX XXXX",
10005
10004
  autoFormat: true,
10006
10005
  patternRegex: "^[0-9\\s]*$",
10006
+ valueLength: 14,
10007
10007
  spaceIndex: 4,
10008
10008
  autoMaskLength: 4,
10009
10009
  autoMask: true,
10010
10010
  defaultStyle: true
10011
- },
10012
- style: {}
10011
+ }
10013
10012
  }
10014
10013
  };
10015
10014
  const buildAdhaarField = (config, componentScope) => {
@@ -10026,28 +10025,23 @@ const buildAdhaarField = (config, componentScope) => {
10026
10025
  return inputField;
10027
10026
  };
10028
10027
  const PanField = {
10029
- type: "Control",
10030
- scope: "#/properties/text",
10031
- options: {
10032
- widget: "InputField"
10028
+ "type": "Control",
10029
+ "scope": "#/properties/pan",
10030
+ "layout": 12,
10031
+ "options": {
10032
+ "widget": "InputField"
10033
10033
  },
10034
10034
  config: {
10035
- layout: {
10036
- xs: 11,
10037
- sm: 11,
10038
- md: 5.5,
10039
- lg: 5.5
10040
- },
10041
10035
  main: {
10042
- label: "Aadhaar No.",
10043
- max: 2e3,
10044
- step: 200,
10045
- patternRegex: "^[A-Z]{5}[0-9]{4}[A-Z]$",
10036
+ label: "Pan Card",
10037
+ placeholder: "Enter Pan card",
10038
+ patternRegex: "^[A-Z]{0,5}\\d{0,4}[A-Z]?$",
10039
+ valueLength: 10,
10046
10040
  spaceIndex: 4,
10047
- autoMaskLength: 4,
10041
+ autoMaskLength: 5,
10042
+ autoMask: true,
10048
10043
  defaultStyle: true
10049
- },
10050
- style: {}
10044
+ }
10051
10045
  }
10052
10046
  };
10053
10047
  const buildPanField = (config, componentScope) => {