@apexcura/ui-components 0.0.11-Beta31 → 0.0.11-Beta33
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 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -411,13 +411,13 @@ var AddMoreTable = (props) => {
|
|
|
411
411
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
412
412
|
eachRow.variable_data.forEach((variable) => {
|
|
413
413
|
Object.entries(variable).forEach(([key, value]) => {
|
|
414
|
-
if (
|
|
414
|
+
if (key === "icons" && value) {
|
|
415
|
+
rowElements["sub rows"] = /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)));
|
|
416
|
+
} else if (value && value.element && value.label) {
|
|
415
417
|
rowElements[value.label] = renderInputElement(value);
|
|
416
418
|
}
|
|
417
419
|
});
|
|
418
420
|
});
|
|
419
|
-
console.log("rowElements/////", rowElements);
|
|
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, "delete"), eachRow.variable_data.length - 1 && /* @__PURE__ */ import_react13.default.createElement("button", null, "Add"));
|
|
421
421
|
}
|
|
422
422
|
return {
|
|
423
423
|
key: index.toString(),
|
package/dist/index.mjs
CHANGED
|
@@ -364,13 +364,13 @@ var AddMoreTable = (props) => {
|
|
|
364
364
|
if (eachRow.variable_data && Array.isArray(eachRow.variable_data)) {
|
|
365
365
|
eachRow.variable_data.forEach((variable) => {
|
|
366
366
|
Object.entries(variable).forEach(([key, value]) => {
|
|
367
|
-
if (
|
|
367
|
+
if (key === "icons" && value) {
|
|
368
|
+
rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement("button", null, /* @__PURE__ */ React12.createElement(PlusOutlined, null)));
|
|
369
|
+
} else if (value && value.element && value.label) {
|
|
368
370
|
rowElements[value.label] = renderInputElement(value);
|
|
369
371
|
}
|
|
370
372
|
});
|
|
371
373
|
});
|
|
372
|
-
console.log("rowElements/////", rowElements);
|
|
373
|
-
rowElements["sub rows"] = /* @__PURE__ */ React12.createElement(React12.Fragment, null, eachRow.variable_data.length > 1 && /* @__PURE__ */ React12.createElement("button", null, "delete"), eachRow.variable_data.length - 1 && /* @__PURE__ */ React12.createElement("button", null, "Add"));
|
|
374
374
|
}
|
|
375
375
|
return {
|
|
376
376
|
key: index.toString(),
|