@apexcura/ui-components 0.0.12-Beta45 → 0.0.12-Beta47
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 +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -405,6 +405,7 @@ var AddMoreTable = (props) => {
|
|
|
405
405
|
label: "Medicine",
|
|
406
406
|
name: "Medicine",
|
|
407
407
|
type: "text",
|
|
408
|
+
element: "single-select",
|
|
408
409
|
variable_data: [
|
|
409
410
|
{
|
|
410
411
|
id: 1,
|
|
@@ -485,16 +486,17 @@ var AddMoreTable = (props) => {
|
|
|
485
486
|
label: eachRow.label
|
|
486
487
|
})
|
|
487
488
|
};
|
|
488
|
-
eachRow.variable_data.
|
|
489
|
+
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
489
490
|
Object.keys(variable).forEach((key) => {
|
|
490
491
|
if (key === "SubRows") {
|
|
491
|
-
rowData[`${key}
|
|
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)));
|
|
492
493
|
} else {
|
|
493
|
-
rowData[`${key}
|
|
494
|
+
rowData[`${key}`] = renderInputElement(variable[key]);
|
|
494
495
|
}
|
|
495
496
|
});
|
|
496
497
|
});
|
|
497
498
|
rowData.actions = /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), rowIndex === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
499
|
+
console.log("=====rowdata", rowData);
|
|
498
500
|
return rowData;
|
|
499
501
|
});
|
|
500
502
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|
package/dist/index.mjs
CHANGED
|
@@ -358,6 +358,7 @@ var AddMoreTable = (props) => {
|
|
|
358
358
|
label: "Medicine",
|
|
359
359
|
name: "Medicine",
|
|
360
360
|
type: "text",
|
|
361
|
+
element: "single-select",
|
|
361
362
|
variable_data: [
|
|
362
363
|
{
|
|
363
364
|
id: 1,
|
|
@@ -438,16 +439,17 @@ var AddMoreTable = (props) => {
|
|
|
438
439
|
label: eachRow.label
|
|
439
440
|
})
|
|
440
441
|
};
|
|
441
|
-
eachRow.variable_data.
|
|
442
|
+
eachRow.variable_data.forEach((variable, subIndex) => {
|
|
442
443
|
Object.keys(variable).forEach((key) => {
|
|
443
444
|
if (key === "SubRows") {
|
|
444
|
-
rowData[`${key}
|
|
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)));
|
|
445
446
|
} else {
|
|
446
|
-
rowData[`${key}
|
|
447
|
+
rowData[`${key}`] = renderInputElement(variable[key]);
|
|
447
448
|
}
|
|
448
449
|
});
|
|
449
450
|
});
|
|
450
451
|
rowData.actions = /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), rowIndex === rows.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
452
|
+
console.log("=====rowdata", rowData);
|
|
451
453
|
return rowData;
|
|
452
454
|
});
|
|
453
455
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|