@apexcura/ui-components 0.0.11-Beta50 → 0.0.11-Beta52

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.
package/dist/index.js CHANGED
@@ -461,8 +461,14 @@ var AddMoreTable = (props) => {
461
461
  ...eachRow,
462
462
  actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
463
463
  };
464
- console.log(...eachRow);
465
- rowData.push(mainRow);
464
+ const rowElements = [mainRow];
465
+ const medicineInputElement = {
466
+ [eachRow.label]: renderInputElement({
467
+ element: eachRow.element,
468
+ label: eachRow.label
469
+ })
470
+ };
471
+ rowElements.push(medicineInputElement);
466
472
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
467
473
  eachRow.variable_data.forEach((variable, subIndex) => {
468
474
  const subRowElements = {};
@@ -473,9 +479,10 @@ var AddMoreTable = (props) => {
473
479
  subRowElements[value.label] = renderInputElement(value);
474
480
  }
475
481
  });
476
- rowData.push(subRowElements);
482
+ rowElements.push(subRowElements);
477
483
  });
478
484
  }
485
+ rowData.push(...rowElements);
479
486
  console.log(rowData);
480
487
  return rowData;
481
488
  });
package/dist/index.mjs CHANGED
@@ -414,8 +414,14 @@ var AddMoreTable = (props) => {
414
414
  ...eachRow,
415
415
  actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
416
416
  };
417
- console.log(...eachRow);
418
- rowData.push(mainRow);
417
+ const rowElements = [mainRow];
418
+ const medicineInputElement = {
419
+ [eachRow.label]: renderInputElement({
420
+ element: eachRow.element,
421
+ label: eachRow.label
422
+ })
423
+ };
424
+ rowElements.push(medicineInputElement);
419
425
  if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
420
426
  eachRow.variable_data.forEach((variable, subIndex) => {
421
427
  const subRowElements = {};
@@ -426,9 +432,10 @@ var AddMoreTable = (props) => {
426
432
  subRowElements[value.label] = renderInputElement(value);
427
433
  }
428
434
  });
429
- rowData.push(subRowElements);
435
+ rowElements.push(subRowElements);
430
436
  });
431
437
  }
438
+ rowData.push(...rowElements);
432
439
  console.log(rowData);
433
440
  return rowData;
434
441
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta50",
3
+ "version": "0.0.11-Beta52",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",