@apexcura/ui-components 0.0.11-Beta39 → 0.0.11-Beta40
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -388,6 +388,9 @@ var AddMoreTable = (props) => {
|
|
|
388
388
|
setRows(remainingRows);
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
|
+
const onHandleSubRowsAdd = () => {
|
|
392
|
+
console.log(rows);
|
|
393
|
+
};
|
|
391
394
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|
|
392
395
|
title: eachHeadEl.label,
|
|
393
396
|
dataIndex: eachHeadEl.name,
|
|
@@ -414,7 +417,7 @@ var AddMoreTable = (props) => {
|
|
|
414
417
|
if (key === "icons" && value) {
|
|
415
418
|
{
|
|
416
419
|
eachRow.variable_data.map((variable2, subIndex) => {
|
|
417
|
-
rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button",
|
|
420
|
+
rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
418
421
|
});
|
|
419
422
|
}
|
|
420
423
|
} else if (value && value.element && value.label) {
|
package/dist/index.mjs
CHANGED
|
@@ -341,6 +341,9 @@ var AddMoreTable = (props) => {
|
|
|
341
341
|
setRows(remainingRows);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
+
const onHandleSubRowsAdd = () => {
|
|
345
|
+
console.log(rows);
|
|
346
|
+
};
|
|
344
347
|
const columns = thead && thead.length > 0 ? thead.map((eachHeadEl) => ({
|
|
345
348
|
title: eachHeadEl.label,
|
|
346
349
|
dataIndex: eachHeadEl.name,
|
|
@@ -367,7 +370,7 @@ var AddMoreTable = (props) => {
|
|
|
367
370
|
if (key === "icons" && value) {
|
|
368
371
|
{
|
|
369
372
|
eachRow.variable_data.map((variable2, subIndex) => {
|
|
370
|
-
rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button",
|
|
373
|
+
rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), subIndex === eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", { onClick: onHandleSubRowsAdd }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
371
374
|
});
|
|
372
375
|
}
|
|
373
376
|
} else if (value && value.element && value.label) {
|