@apexcura/ui-components 0.0.11-Beta10 → 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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -374,7 +374,8 @@ var AddMoreTable = (props) => {
|
|
|
374
374
|
key: eachHeadEl.id
|
|
375
375
|
})) : [];
|
|
376
376
|
const renderInputElement = (element) => {
|
|
377
|
-
const { type, label } = element;
|
|
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,8 +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);
|
|
389
|
-
console.log("acc", acc);
|
|
391
|
+
console.log("....acc", acc);
|
|
390
392
|
return acc;
|
|
391
393
|
}, {});
|
|
392
394
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -327,7 +327,8 @@ var AddMoreTable = (props) => {
|
|
|
327
327
|
key: eachHeadEl.id
|
|
328
328
|
})) : [];
|
|
329
329
|
const renderInputElement = (element) => {
|
|
330
|
-
const { type, label } = element;
|
|
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,8 +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);
|
|
342
|
-
console.log("acc", acc);
|
|
344
|
+
console.log("....acc", acc);
|
|
343
345
|
return acc;
|
|
344
346
|
}, {});
|
|
345
347
|
return {
|