@apexcura/ui-components 0.0.11-Beta51 → 0.0.11-Beta53
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 +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -461,14 +461,15 @@ 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
|
-
|
|
464
|
+
const rowElements = [];
|
|
465
|
+
rowElements.push(mainRow);
|
|
465
466
|
const medicineInputElement = {
|
|
466
467
|
[eachRow.label]: renderInputElement({
|
|
467
468
|
element: eachRow.element,
|
|
468
469
|
label: eachRow.label
|
|
469
470
|
})
|
|
470
471
|
};
|
|
471
|
-
|
|
472
|
+
rowElements.push(medicineInputElement);
|
|
472
473
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
473
474
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
474
475
|
const subRowElements = {};
|
|
@@ -479,10 +480,11 @@ var AddMoreTable = (props) => {
|
|
|
479
480
|
subRowElements[value.label] = renderInputElement(value);
|
|
480
481
|
}
|
|
481
482
|
});
|
|
482
|
-
|
|
483
|
+
rowElements.push(subRowElements);
|
|
483
484
|
});
|
|
484
485
|
}
|
|
485
|
-
|
|
486
|
+
rowData.push(...rowElements);
|
|
487
|
+
console.log("rowData");
|
|
486
488
|
return rowData;
|
|
487
489
|
});
|
|
488
490
|
if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
|
package/dist/index.mjs
CHANGED
|
@@ -414,14 +414,15 @@ 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
|
-
|
|
417
|
+
const rowElements = [];
|
|
418
|
+
rowElements.push(mainRow);
|
|
418
419
|
const medicineInputElement = {
|
|
419
420
|
[eachRow.label]: renderInputElement({
|
|
420
421
|
element: eachRow.element,
|
|
421
422
|
label: eachRow.label
|
|
422
423
|
})
|
|
423
424
|
};
|
|
424
|
-
|
|
425
|
+
rowElements.push(medicineInputElement);
|
|
425
426
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
426
427
|
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
427
428
|
const subRowElements = {};
|
|
@@ -432,10 +433,11 @@ var AddMoreTable = (props) => {
|
|
|
432
433
|
subRowElements[value.label] = renderInputElement(value);
|
|
433
434
|
}
|
|
434
435
|
});
|
|
435
|
-
|
|
436
|
+
rowElements.push(subRowElements);
|
|
436
437
|
});
|
|
437
438
|
}
|
|
438
|
-
|
|
439
|
+
rowData.push(...rowElements);
|
|
440
|
+
console.log("rowData");
|
|
439
441
|
return rowData;
|
|
440
442
|
});
|
|
441
443
|
if (!columns.some((col) => isColumnType(col) && col.dataIndex === "actions")) {
|