@apexcura/ui-components 0.0.11-Beta92 → 0.0.11-Beta93
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 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -369,6 +369,9 @@ var AddMoreTable = (props) => {
|
|
|
369
369
|
const newId = rows.length > 0 ? rows[rows.length - 1].id + 1 : 1;
|
|
370
370
|
let newRow = {
|
|
371
371
|
id: newId,
|
|
372
|
+
label: "Medicine",
|
|
373
|
+
name: "Medicine",
|
|
374
|
+
type: "text",
|
|
372
375
|
variable_data: [
|
|
373
376
|
{
|
|
374
377
|
id: 1,
|
|
@@ -443,9 +446,10 @@ var AddMoreTable = (props) => {
|
|
|
443
446
|
const dataSource = rows.map((eachRow, rowIndex) => {
|
|
444
447
|
const rowData = {
|
|
445
448
|
key: eachRow.id,
|
|
446
|
-
"#": rowIndex + 1
|
|
449
|
+
"#": rowIndex + 1,
|
|
450
|
+
"Medicine": renderInputElement(eachRow.name, eachRow.label)
|
|
447
451
|
};
|
|
448
|
-
eachRow.variable_data.
|
|
452
|
+
eachRow.variable_data.map((variable, subIndex) => {
|
|
449
453
|
Object.keys(variable).forEach((key) => {
|
|
450
454
|
if (key === "SubRows") {
|
|
451
455
|
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)));
|
package/dist/index.mjs
CHANGED
|
@@ -322,6 +322,9 @@ var AddMoreTable = (props) => {
|
|
|
322
322
|
const newId = rows.length > 0 ? rows[rows.length - 1].id + 1 : 1;
|
|
323
323
|
let newRow = {
|
|
324
324
|
id: newId,
|
|
325
|
+
label: "Medicine",
|
|
326
|
+
name: "Medicine",
|
|
327
|
+
type: "text",
|
|
325
328
|
variable_data: [
|
|
326
329
|
{
|
|
327
330
|
id: 1,
|
|
@@ -396,9 +399,10 @@ var AddMoreTable = (props) => {
|
|
|
396
399
|
const dataSource = rows.map((eachRow, rowIndex) => {
|
|
397
400
|
const rowData = {
|
|
398
401
|
key: eachRow.id,
|
|
399
|
-
"#": rowIndex + 1
|
|
402
|
+
"#": rowIndex + 1,
|
|
403
|
+
"Medicine": renderInputElement(eachRow.name, eachRow.label)
|
|
400
404
|
};
|
|
401
|
-
eachRow.variable_data.
|
|
405
|
+
eachRow.variable_data.map((variable, subIndex) => {
|
|
402
406
|
Object.keys(variable).forEach((key) => {
|
|
403
407
|
if (key === "SubRows") {
|
|
404
408
|
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)));
|