@apexcura/ui-components 0.0.12-Beta43 → 0.0.12-Beta45
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -485,13 +485,12 @@ var AddMoreTable = (props) => {
|
|
|
485
485
|
label: eachRow.label
|
|
486
486
|
})
|
|
487
487
|
};
|
|
488
|
-
rowData["Medicine"] = renderInputElement(eachRow.variable_data[0].Medicine);
|
|
489
488
|
eachRow.variable_data.map((variable, subIndex) => {
|
|
490
489
|
Object.keys(variable).forEach((key) => {
|
|
491
490
|
if (key === "SubRows") {
|
|
492
|
-
rowData[`${key}`] = /* @__PURE__ */ import_react13.default.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
491
|
+
rowData[`${key}${subIndex}`] = /* @__PURE__ */ import_react13.default.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
493
492
|
} else {
|
|
494
|
-
rowData[`${key}`] = renderInputElement(variable[key]);
|
|
493
|
+
rowData[`${key}${subIndex}`] = renderInputElement(variable[key]);
|
|
495
494
|
}
|
|
496
495
|
});
|
|
497
496
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -438,13 +438,12 @@ var AddMoreTable = (props) => {
|
|
|
438
438
|
label: eachRow.label
|
|
439
439
|
})
|
|
440
440
|
};
|
|
441
|
-
rowData["Medicine"] = renderInputElement(eachRow.variable_data[0].Medicine);
|
|
442
441
|
eachRow.variable_data.map((variable, subIndex) => {
|
|
443
442
|
Object.keys(variable).forEach((key) => {
|
|
444
443
|
if (key === "SubRows") {
|
|
445
|
-
rowData[`${key}`] = /* @__PURE__ */ React12.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
444
|
+
rowData[`${key}${subIndex}`] = /* @__PURE__ */ React12.createElement("div", { key: subIndex }, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsDelete(rowIndex, subIndex) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleSubRowsAdd(rowIndex) }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
446
445
|
} else {
|
|
447
|
-
rowData[`${key}`] = renderInputElement(variable[key]);
|
|
446
|
+
rowData[`${key}${subIndex}`] = renderInputElement(variable[key]);
|
|
448
447
|
}
|
|
449
448
|
});
|
|
450
449
|
});
|