@apexcura/ui-components 0.0.14-Beta248 → 0.0.14-Beta249

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
@@ -803,7 +803,7 @@ var ModelBody = (props) => {
803
803
 
804
804
  // src/Components/Model.tsx
805
805
  var ModelElement = (props) => {
806
- const { model, onCancel, selectedRecord, columns, modalContent } = props;
806
+ const { model, onCancel, modalContent } = props;
807
807
  return /* @__PURE__ */ import_react20.default.createElement(
808
808
  import_antd13.Modal,
809
809
  {
@@ -823,25 +823,18 @@ var ModelElement = (props) => {
823
823
  margin: "-10px"
824
824
  }
825
825
  },
826
- modalContent && modalContent.fields.map((eachField) => {
827
- console.log("eachField", eachField);
828
- }),
829
- columns.map((eachColumn) => {
830
- if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
831
- return /* @__PURE__ */ import_react20.default.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ import_react20.default.createElement(
832
- "span",
833
- {
834
- style: {
835
- fontWeight: "200",
836
- color: "gray",
837
- paddingRight: "10px"
838
- }
839
- },
840
- eachColumn.title
841
- ), selectedRecord[eachColumn.key] !== "" ? selectedRecord[eachColumn.key] : "--");
842
- } else {
843
- return null;
844
- }
826
+ modalContent && modalContent.fields[0].fields.map((eachFiled) => {
827
+ return /* @__PURE__ */ import_react20.default.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ import_react20.default.createElement(
828
+ "span",
829
+ {
830
+ style: {
831
+ fontWeight: "200",
832
+ color: "gray",
833
+ paddingRight: "10px"
834
+ }
835
+ },
836
+ eachFiled[0].label
837
+ ), eachFiled[1].label !== "" ? eachFiled[1].label : "--");
845
838
  })
846
839
  )
847
840
  },
package/dist/index.mjs CHANGED
@@ -737,7 +737,7 @@ var ModelBody = (props) => {
737
737
 
738
738
  // src/Components/Model.tsx
739
739
  var ModelElement = (props) => {
740
- const { model, onCancel, selectedRecord, columns, modalContent } = props;
740
+ const { model, onCancel, modalContent } = props;
741
741
  return /* @__PURE__ */ React20.createElement(
742
742
  Modal,
743
743
  {
@@ -757,25 +757,18 @@ var ModelElement = (props) => {
757
757
  margin: "-10px"
758
758
  }
759
759
  },
760
- modalContent && modalContent.fields.map((eachField) => {
761
- console.log("eachField", eachField);
762
- }),
763
- columns.map((eachColumn) => {
764
- if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
765
- return /* @__PURE__ */ React20.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ React20.createElement(
766
- "span",
767
- {
768
- style: {
769
- fontWeight: "200",
770
- color: "gray",
771
- paddingRight: "10px"
772
- }
773
- },
774
- eachColumn.title
775
- ), selectedRecord[eachColumn.key] !== "" ? selectedRecord[eachColumn.key] : "--");
776
- } else {
777
- return null;
778
- }
760
+ modalContent && modalContent.fields[0].fields.map((eachFiled) => {
761
+ return /* @__PURE__ */ React20.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ React20.createElement(
762
+ "span",
763
+ {
764
+ style: {
765
+ fontWeight: "200",
766
+ color: "gray",
767
+ paddingRight: "10px"
768
+ }
769
+ },
770
+ eachFiled[0].label
771
+ ), eachFiled[1].label !== "" ? eachFiled[1].label : "--");
779
772
  })
780
773
  )
781
774
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta248",
3
+ "version": "0.0.14-Beta249",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",