@apexcura/ui-components 0.0.14-Beta164 → 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
  },
@@ -761,8 +760,8 @@ var TableElement = (props) => {
761
760
  columns = [
762
761
  {
763
762
  title: "#",
764
- dataIndex: "#",
765
- key: "#",
763
+ dataIndex: "index",
764
+ key: "index",
766
765
  fixed: "left"
767
766
  },
768
767
  ...thead.map((col, ind) => ({
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
  },
@@ -695,8 +694,8 @@ var TableElement = (props) => {
695
694
  columns = [
696
695
  {
697
696
  title: "#",
698
- dataIndex: "#",
699
- key: "#",
697
+ dataIndex: "index",
698
+ key: "index",
700
699
  fixed: "left"
701
700
  },
702
701
  ...thead.map((col, ind) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta164",
3
+ "version": "0.0.14-Beta166",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",