@apexcura/ui-components 0.0.14-Beta165 → 0.0.14-Beta166

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 CHANGED
@@ -722,9 +722,8 @@ var ModelElement = (props) => {
722
722
  }
723
723
  },
724
724
  Object.entries(selectedRecord).map(([key, value]) => {
725
- const record = columns.filter((eachColumn) => eachColumn.key === key);
726
- console.log("record----", record);
727
- return record.length > 0 ? /* @__PURE__ */ import_react19.default.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ import_react19.default.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), String(value)) : "";
725
+ const record = columns.slice(1).filter((eachColumn) => eachColumn.key === key);
726
+ return record.length > 0 && String(value) !== "" ? /* @__PURE__ */ import_react19.default.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ import_react19.default.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), String(value)) : /* @__PURE__ */ import_react19.default.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ import_react19.default.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), "--");
728
727
  })
729
728
  )
730
729
  },
package/dist/index.mjs CHANGED
@@ -656,9 +656,8 @@ var ModelElement = (props) => {
656
656
  }
657
657
  },
658
658
  Object.entries(selectedRecord).map(([key, value]) => {
659
- const record = columns.filter((eachColumn) => eachColumn.key === key);
660
- console.log("record----", record);
661
- return record.length > 0 ? /* @__PURE__ */ React19.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ React19.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), String(value)) : "";
659
+ const record = columns.slice(1).filter((eachColumn) => eachColumn.key === key);
660
+ return record.length > 0 && String(value) !== "" ? /* @__PURE__ */ React19.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ React19.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), String(value)) : /* @__PURE__ */ React19.createElement("p", { style: { fontWeight: "500", padding: "10px" }, key }, /* @__PURE__ */ React19.createElement("span", { style: { fontWeight: "200", color: "gray", paddingRight: "10px" } }, record[0].title), "--");
662
661
  })
663
662
  )
664
663
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta165",
3
+ "version": "0.0.14-Beta166",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",