@apexcura/ui-components 0.0.14-Beta152 → 0.0.14-Beta154
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 +19 -14
- package/dist/index.mjs +19 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -730,6 +730,7 @@ var ModelElement = (props) => {
|
|
|
730
730
|
};
|
|
731
731
|
|
|
732
732
|
// src/Components/TableElement.tsx
|
|
733
|
+
var import_icons4 = require("@ant-design/icons");
|
|
733
734
|
var TableElement = (props) => {
|
|
734
735
|
const { thead, tbody } = props;
|
|
735
736
|
const [selectedRecord, setSelectedRecord] = (0, import_react20.useState)({});
|
|
@@ -771,23 +772,27 @@ var TableElement = (props) => {
|
|
|
771
772
|
title: "View",
|
|
772
773
|
dataIndex: "View",
|
|
773
774
|
key: "View",
|
|
774
|
-
render: (_, record) =>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
775
|
+
render: (_, record) => {
|
|
776
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
|
777
|
+
"a",
|
|
778
|
+
{
|
|
779
|
+
onClick: () => {
|
|
780
|
+
if (props.view) {
|
|
781
|
+
setSelectedRecord(record);
|
|
782
|
+
handleChange(record);
|
|
783
|
+
setModel(true);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
/* @__PURE__ */ import_react20.default.createElement(import_icons4.EyeOutlined, null)
|
|
788
|
+
);
|
|
789
|
+
}
|
|
785
790
|
});
|
|
786
791
|
}
|
|
787
792
|
}
|
|
788
793
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
789
794
|
...row,
|
|
790
|
-
key: index
|
|
795
|
+
key: index,
|
|
791
796
|
[columns[0].key]: index + 1
|
|
792
797
|
}));
|
|
793
798
|
const count = dataSource ? dataSource.length : 0;
|
|
@@ -954,7 +959,7 @@ var DropDownGroup = (props) => {
|
|
|
954
959
|
// src/Components/FilesUpload.tsx
|
|
955
960
|
var import_react26 = __toESM(require("react"));
|
|
956
961
|
var import_antd19 = require("antd");
|
|
957
|
-
var
|
|
962
|
+
var import_icons5 = require("@ant-design/icons");
|
|
958
963
|
var FileUpload = (props) => {
|
|
959
964
|
const { Dragger } = import_antd19.Upload;
|
|
960
965
|
const [files, setFiles] = (0, import_react26.useState)([]);
|
|
@@ -985,7 +990,7 @@ var FileUpload = (props) => {
|
|
|
985
990
|
showUploadList: true,
|
|
986
991
|
customRequest
|
|
987
992
|
},
|
|
988
|
-
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(
|
|
993
|
+
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
989
994
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
990
995
|
));
|
|
991
996
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -664,6 +664,9 @@ var ModelElement = (props) => {
|
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
// src/Components/TableElement.tsx
|
|
667
|
+
import {
|
|
668
|
+
EyeOutlined
|
|
669
|
+
} from "@ant-design/icons";
|
|
667
670
|
var TableElement = (props) => {
|
|
668
671
|
const { thead, tbody } = props;
|
|
669
672
|
const [selectedRecord, setSelectedRecord] = useState6({});
|
|
@@ -705,23 +708,27 @@ var TableElement = (props) => {
|
|
|
705
708
|
title: "View",
|
|
706
709
|
dataIndex: "View",
|
|
707
710
|
key: "View",
|
|
708
|
-
render: (_, record) =>
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
711
|
+
render: (_, record) => {
|
|
712
|
+
return /* @__PURE__ */ React20.createElement(
|
|
713
|
+
"a",
|
|
714
|
+
{
|
|
715
|
+
onClick: () => {
|
|
716
|
+
if (props.view) {
|
|
717
|
+
setSelectedRecord(record);
|
|
718
|
+
handleChange(record);
|
|
719
|
+
setModel(true);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
/* @__PURE__ */ React20.createElement(EyeOutlined, null)
|
|
724
|
+
);
|
|
725
|
+
}
|
|
719
726
|
});
|
|
720
727
|
}
|
|
721
728
|
}
|
|
722
729
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
723
730
|
...row,
|
|
724
|
-
key: index
|
|
731
|
+
key: index,
|
|
725
732
|
[columns[0].key]: index + 1
|
|
726
733
|
}));
|
|
727
734
|
const count = dataSource ? dataSource.length : 0;
|