@apexcura/ui-components 0.0.11-Beta11 → 0.0.11-Beta12
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -375,6 +375,7 @@ var AddMoreTable = (props) => {
|
|
|
375
375
|
})) : [];
|
|
376
376
|
const renderInputElement = (element) => {
|
|
377
377
|
const { element: type, label } = element;
|
|
378
|
+
console.log("type....", type);
|
|
378
379
|
if (type === "single-select") {
|
|
379
380
|
return /* @__PURE__ */ import_react13.default.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
|
|
380
381
|
} else if (type === "textarea") {
|
|
@@ -385,7 +386,9 @@ var AddMoreTable = (props) => {
|
|
|
385
386
|
};
|
|
386
387
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
387
388
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
389
|
+
console.log("curr", curr);
|
|
388
390
|
acc[curr.label] = renderInputElement(curr);
|
|
391
|
+
console.log("....acc", acc);
|
|
389
392
|
return acc;
|
|
390
393
|
}, {});
|
|
391
394
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -328,6 +328,7 @@ var AddMoreTable = (props) => {
|
|
|
328
328
|
})) : [];
|
|
329
329
|
const renderInputElement = (element) => {
|
|
330
330
|
const { element: type, label } = element;
|
|
331
|
+
console.log("type....", type);
|
|
331
332
|
if (type === "single-select") {
|
|
332
333
|
return /* @__PURE__ */ React12.createElement(SingleSelectElement, { onChange: (value) => onHandleChange(label, value) });
|
|
333
334
|
} else if (type === "textarea") {
|
|
@@ -338,7 +339,9 @@ var AddMoreTable = (props) => {
|
|
|
338
339
|
};
|
|
339
340
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
340
341
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
342
|
+
console.log("curr", curr);
|
|
341
343
|
acc[curr.label] = renderInputElement(curr);
|
|
344
|
+
console.log("....acc", acc);
|
|
342
345
|
return acc;
|
|
343
346
|
}, {});
|
|
344
347
|
return {
|