@apexcura/ui-components 0.0.14-Beta247 → 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 +13 -20
- package/dist/index.mjs +13 -20
- package/package.json +1 -1
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,
|
|
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.map((
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
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,
|
|
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.map((
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
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
|
},
|