@apexcura/ui-components 0.0.14-Beta269 → 0.0.14-Beta270
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 +2 -41
- package/dist/index.mjs +0 -39
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -750,11 +750,9 @@ var Navbar = (props) => {
|
|
|
750
750
|
// src/Components/TableElement.tsx
|
|
751
751
|
var import_react19 = __toESM(require("react"));
|
|
752
752
|
var import_antd13 = require("antd");
|
|
753
|
-
var import_icons5 = require("@ant-design/icons");
|
|
754
753
|
var TableElement = (props) => {
|
|
755
754
|
const { thead, tbody } = props;
|
|
756
755
|
const [dataSource, setDataSource] = (0, import_react19.useState)([]);
|
|
757
|
-
const defaultVal = props.value;
|
|
758
756
|
(0, import_react19.useEffect)(() => {
|
|
759
757
|
if (tbody) {
|
|
760
758
|
setDataSource(
|
|
@@ -766,13 +764,6 @@ var TableElement = (props) => {
|
|
|
766
764
|
);
|
|
767
765
|
}
|
|
768
766
|
}, [tbody]);
|
|
769
|
-
const handleChange = (record) => {
|
|
770
|
-
if (record) {
|
|
771
|
-
props.onChange && props.onChange(record);
|
|
772
|
-
} else {
|
|
773
|
-
props.onChange && props.onChange(defaultVal);
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
767
|
let columns = [];
|
|
777
768
|
if (thead) {
|
|
778
769
|
columns = [
|
|
@@ -799,26 +790,6 @@ var TableElement = (props) => {
|
|
|
799
790
|
}
|
|
800
791
|
}))
|
|
801
792
|
];
|
|
802
|
-
if (props.view) {
|
|
803
|
-
columns.push({
|
|
804
|
-
title: "View",
|
|
805
|
-
dataIndex: "View",
|
|
806
|
-
key: "View",
|
|
807
|
-
render: (_, record) => {
|
|
808
|
-
return /* @__PURE__ */ import_react19.default.createElement(
|
|
809
|
-
"a",
|
|
810
|
-
{
|
|
811
|
-
onClick: () => {
|
|
812
|
-
if (props.view) {
|
|
813
|
-
handleChange(record);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
},
|
|
817
|
-
/* @__PURE__ */ import_react19.default.createElement(import_icons5.EyeOutlined, null)
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
793
|
}
|
|
823
794
|
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
824
795
|
if (extra && extra.currentDataSource) {
|
|
@@ -859,16 +830,6 @@ var TableElement = (props) => {
|
|
|
859
830
|
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
860
831
|
onChange: onChangePage
|
|
861
832
|
} : false,
|
|
862
|
-
onRow: (record) => {
|
|
863
|
-
return {
|
|
864
|
-
onClick: () => {
|
|
865
|
-
if (props.view) {
|
|
866
|
-
handleChange(record);
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
style: { cursor: "pointer" }
|
|
870
|
-
};
|
|
871
|
-
},
|
|
872
833
|
rowSelection: rowSelectionConfig,
|
|
873
834
|
dataSource,
|
|
874
835
|
columns,
|
|
@@ -1040,7 +1001,7 @@ var DropDownGroup = (props) => {
|
|
|
1040
1001
|
// src/Components/FilesUpload.tsx
|
|
1041
1002
|
var import_react25 = __toESM(require("react"));
|
|
1042
1003
|
var import_antd18 = require("antd");
|
|
1043
|
-
var
|
|
1004
|
+
var import_icons5 = require("@ant-design/icons");
|
|
1044
1005
|
var FileUpload = (props) => {
|
|
1045
1006
|
const { Dragger } = import_antd18.Upload;
|
|
1046
1007
|
const [files, setFiles] = (0, import_react25.useState)([]);
|
|
@@ -1071,7 +1032,7 @@ var FileUpload = (props) => {
|
|
|
1071
1032
|
showUploadList: true,
|
|
1072
1033
|
customRequest
|
|
1073
1034
|
},
|
|
1074
|
-
/* @__PURE__ */ import_react25.default.createElement("p", null, /* @__PURE__ */ import_react25.default.createElement(
|
|
1035
|
+
/* @__PURE__ */ import_react25.default.createElement("p", null, /* @__PURE__ */ import_react25.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1075
1036
|
/* @__PURE__ */ import_react25.default.createElement("p", null, "Click or drag file to upload")
|
|
1076
1037
|
));
|
|
1077
1038
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -683,11 +683,9 @@ var Navbar = (props) => {
|
|
|
683
683
|
// src/Components/TableElement.tsx
|
|
684
684
|
import React19, { useState as useState5, useEffect as useEffect2 } from "react";
|
|
685
685
|
import { Table as Table2 } from "antd";
|
|
686
|
-
import { EyeOutlined } from "@ant-design/icons";
|
|
687
686
|
var TableElement = (props) => {
|
|
688
687
|
const { thead, tbody } = props;
|
|
689
688
|
const [dataSource, setDataSource] = useState5([]);
|
|
690
|
-
const defaultVal = props.value;
|
|
691
689
|
useEffect2(() => {
|
|
692
690
|
if (tbody) {
|
|
693
691
|
setDataSource(
|
|
@@ -699,13 +697,6 @@ var TableElement = (props) => {
|
|
|
699
697
|
);
|
|
700
698
|
}
|
|
701
699
|
}, [tbody]);
|
|
702
|
-
const handleChange = (record) => {
|
|
703
|
-
if (record) {
|
|
704
|
-
props.onChange && props.onChange(record);
|
|
705
|
-
} else {
|
|
706
|
-
props.onChange && props.onChange(defaultVal);
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
700
|
let columns = [];
|
|
710
701
|
if (thead) {
|
|
711
702
|
columns = [
|
|
@@ -732,26 +723,6 @@ var TableElement = (props) => {
|
|
|
732
723
|
}
|
|
733
724
|
}))
|
|
734
725
|
];
|
|
735
|
-
if (props.view) {
|
|
736
|
-
columns.push({
|
|
737
|
-
title: "View",
|
|
738
|
-
dataIndex: "View",
|
|
739
|
-
key: "View",
|
|
740
|
-
render: (_, record) => {
|
|
741
|
-
return /* @__PURE__ */ React19.createElement(
|
|
742
|
-
"a",
|
|
743
|
-
{
|
|
744
|
-
onClick: () => {
|
|
745
|
-
if (props.view) {
|
|
746
|
-
handleChange(record);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
/* @__PURE__ */ React19.createElement(EyeOutlined, null)
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
726
|
}
|
|
756
727
|
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
757
728
|
if (extra && extra.currentDataSource) {
|
|
@@ -792,16 +763,6 @@ var TableElement = (props) => {
|
|
|
792
763
|
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
793
764
|
onChange: onChangePage
|
|
794
765
|
} : false,
|
|
795
|
-
onRow: (record) => {
|
|
796
|
-
return {
|
|
797
|
-
onClick: () => {
|
|
798
|
-
if (props.view) {
|
|
799
|
-
handleChange(record);
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
style: { cursor: "pointer" }
|
|
803
|
-
};
|
|
804
|
-
},
|
|
805
766
|
rowSelection: rowSelectionConfig,
|
|
806
767
|
dataSource,
|
|
807
768
|
columns,
|