impaktapps-ui-builder 0.0.101-alpha.72 → 0.0.101-alpha.73

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.
@@ -7720,7 +7720,7 @@ const buildPropertiesSection = function(type) {
7720
7720
  case "Text":
7721
7721
  uiSchema.elements = [
7722
7722
  getInputField("placeholder", "Placeholder"),
7723
- emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7723
+ getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
7724
7724
  emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7725
7725
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7726
7726
  ];
@@ -10011,16 +10011,17 @@ function executeCustomHandler(params) {
10011
10011
  }
10012
10012
  }
10013
10013
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10014
+ var _a, _b, _c;
10014
10015
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10015
10016
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10016
10017
  store2.setSchema((pre) => {
10017
- var _a;
10018
+ var _a2;
10018
10019
  return {
10019
10020
  ...pre,
10020
10021
  properties: {
10021
10022
  ...pre.properties,
10022
10023
  [componentName]: {
10023
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10024
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
10024
10025
  oneOf: handlerResponse.data
10025
10026
  }
10026
10027
  }
@@ -10030,13 +10031,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10030
10031
  } else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10031
10032
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10032
10033
  store2.setSchema((pre) => {
10033
- var _a;
10034
+ var _a2;
10034
10035
  return {
10035
10036
  ...pre,
10036
10037
  properties: {
10037
10038
  ...pre.properties,
10038
10039
  [componentName]: {
10039
- ...(_a = pre.properties) == null ? void 0 : _a[componentName],
10040
+ ...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
10040
10041
  type: "array",
10041
10042
  items: {
10042
10043
  oneOf: handlerResponse == null ? void 0 : handlerResponse.data
@@ -10056,6 +10057,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10056
10057
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
10057
10058
  });
10058
10059
  }
10060
+ } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10061
+ if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10062
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10063
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10064
+ store2.setFormdata((pre) => {
10065
+ return { ...pre, ...formDataHolder };
10066
+ });
10067
+ }
10059
10068
  } else {
10060
10069
  if (handlerResponse) {
10061
10070
  formDataHolder[componentName] = handlerResponse.data;
@@ -10361,7 +10370,7 @@ var service = (funcParams) => {
10361
10370
  service: funcParams.service,
10362
10371
  serviceHolder: this,
10363
10372
  eventGroups,
10364
- formDataHolder
10373
+ formDataHolder: {}
10365
10374
  });
10366
10375
  funcParams.store.setSchema(
10367
10376
  (pre) => {
@@ -10376,11 +10385,11 @@ var service = (funcParams) => {
10376
10385
  funcParams.store.setUiSchema(uiSchema);
10377
10386
  },
10378
10387
  onCellRenderer: (cellParams) => {
10379
- var _a, _b, _c;
10388
+ var _a, _b, _c, _d;
10380
10389
  if (eventGroups.onCellRenderer) {
10381
10390
  let finalResponse = {};
10382
10391
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
10383
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
10392
+ for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
10384
10393
  executeEventsParameters.store.functionParameters = cellParams;
10385
10394
  finalResponse = executeEvents({
10386
10395
  ...executeEventsParameters,
@@ -10984,6 +10993,9 @@ const buildTextField = (config2, componentScope2) => {
10984
10993
  if (config2.style) {
10985
10994
  inputField.config.style = JSON.parse(config2.style);
10986
10995
  }
10996
+ if (config2.multiline) {
10997
+ inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
10998
+ }
10987
10999
  if (config2.InputFormatingAndMasking) {
10988
11000
  inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
10989
11001
  }