@apexcura/ui-components 0.0.12-Beta6 → 0.0.12-Beta8

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
@@ -408,12 +408,7 @@ var AddMoreTable = (props) => {
408
408
  rowElements[eachRow.label] = renderInputElement(eachRow);
409
409
  }
410
410
  const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
411
- if (!curr.label || !curr.element) {
412
- console.error(`Invalid element in row ${index}:`, curr);
413
- return acc;
414
- }
415
- acc[curr.label] = renderInputElement(curr);
416
- return acc;
411
+ console.log("curr", curr);
417
412
  }, {}) : {};
418
413
  return {
419
414
  key: index.toString(),
@@ -421,7 +416,7 @@ var AddMoreTable = (props) => {
421
416
  ...eachRow,
422
417
  ...rowElements,
423
418
  ...variableData,
424
- actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(index) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
419
+ actions: /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
425
420
  };
426
421
  });
427
422
  if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
package/dist/index.mjs CHANGED
@@ -361,12 +361,7 @@ var AddMoreTable = (props) => {
361
361
  rowElements[eachRow.label] = renderInputElement(eachRow);
362
362
  }
363
363
  const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
364
- if (!curr.label || !curr.element) {
365
- console.error(`Invalid element in row ${index}:`, curr);
366
- return acc;
367
- }
368
- acc[curr.label] = renderInputElement(curr);
369
- return acc;
364
+ console.log("curr", curr);
370
365
  }, {}) : {};
371
366
  return {
372
367
  key: index.toString(),
@@ -374,7 +369,7 @@ var AddMoreTable = (props) => {
374
369
  ...eachRow,
375
370
  ...rowElements,
376
371
  ...variableData,
377
- actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(index) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
372
+ actions: /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
378
373
  };
379
374
  });
380
375
  if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta6",
3
+ "version": "0.0.12-Beta8",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",