@apexcura/ui-components 0.0.14-Beta141 → 0.0.14-Beta143
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.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +35 -25
- package/dist/index.mjs +33 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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)({});
|
|
@@ -769,19 +770,21 @@ var TableElement = (props) => {
|
|
|
769
770
|
if (props.view) {
|
|
770
771
|
columns.push({
|
|
771
772
|
title: "View",
|
|
772
|
-
dataIndex:
|
|
773
|
+
dataIndex: /* @__PURE__ */ import_react20.default.createElement(import_icons4.EyeOutlined, null),
|
|
773
774
|
key: "View",
|
|
774
|
-
render: (_, record) =>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
775
|
+
render: (_, record) => {
|
|
776
|
+
props.view && /* @__PURE__ */ import_react20.default.createElement(
|
|
777
|
+
"a",
|
|
778
|
+
{
|
|
779
|
+
onClick: () => {
|
|
780
|
+
setSelectedRecord(record);
|
|
781
|
+
handleChange(record);
|
|
782
|
+
setModel(true);
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"View"
|
|
786
|
+
);
|
|
787
|
+
}
|
|
785
788
|
});
|
|
786
789
|
}
|
|
787
790
|
}
|
|
@@ -798,7 +801,11 @@ var TableElement = (props) => {
|
|
|
798
801
|
};
|
|
799
802
|
const rowSelectionConfig = props.rowSelection ? {
|
|
800
803
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
801
|
-
console.log(
|
|
804
|
+
console.log(
|
|
805
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
806
|
+
"selectedRows: ",
|
|
807
|
+
selectedRows
|
|
808
|
+
);
|
|
802
809
|
if (props.onChange) {
|
|
803
810
|
props.onChange(selectedRows);
|
|
804
811
|
}
|
|
@@ -808,7 +815,7 @@ var TableElement = (props) => {
|
|
|
808
815
|
import_antd14.Table,
|
|
809
816
|
{
|
|
810
817
|
className: props.className,
|
|
811
|
-
pagination: {
|
|
818
|
+
pagination: props.pagination && {
|
|
812
819
|
showTotal: (total) => `Total: ${total} items`,
|
|
813
820
|
total: count,
|
|
814
821
|
showSizeChanger: count > 10,
|
|
@@ -820,7 +827,16 @@ var TableElement = (props) => {
|
|
|
820
827
|
size: props.size,
|
|
821
828
|
bordered: true
|
|
822
829
|
}
|
|
823
|
-
), model && /* @__PURE__ */ import_react20.default.createElement(
|
|
830
|
+
), model && /* @__PURE__ */ import_react20.default.createElement(
|
|
831
|
+
ModelElement,
|
|
832
|
+
{
|
|
833
|
+
selectedRecord,
|
|
834
|
+
...props,
|
|
835
|
+
columns,
|
|
836
|
+
model,
|
|
837
|
+
onCancel: () => setModel(false)
|
|
838
|
+
}
|
|
839
|
+
));
|
|
824
840
|
};
|
|
825
841
|
|
|
826
842
|
// src/Components/DatePicker.tsx
|
|
@@ -954,7 +970,7 @@ var DropDownGroup = (props) => {
|
|
|
954
970
|
// src/Components/FilesUpload.tsx
|
|
955
971
|
var import_react26 = __toESM(require("react"));
|
|
956
972
|
var import_antd19 = require("antd");
|
|
957
|
-
var
|
|
973
|
+
var import_icons5 = require("@ant-design/icons");
|
|
958
974
|
var FileUpload = (props) => {
|
|
959
975
|
const { Dragger } = import_antd19.Upload;
|
|
960
976
|
const [files, setFiles] = (0, import_react26.useState)([]);
|
|
@@ -985,7 +1001,7 @@ var FileUpload = (props) => {
|
|
|
985
1001
|
showUploadList: true,
|
|
986
1002
|
customRequest
|
|
987
1003
|
},
|
|
988
|
-
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(
|
|
1004
|
+
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
989
1005
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
990
1006
|
));
|
|
991
1007
|
};
|
|
@@ -1101,17 +1117,11 @@ var import_chart = require("chart.js");
|
|
|
1101
1117
|
import_chart.Chart.register(import_chart.DoughnutController, import_chart.ArcElement, import_chart.Tooltip, import_chart.Legend);
|
|
1102
1118
|
var CircleDonut = (props) => {
|
|
1103
1119
|
const data = {
|
|
1104
|
-
labels:
|
|
1105
|
-
"Registration",
|
|
1106
|
-
"Book Appointment",
|
|
1107
|
-
"Diagnostic Tests",
|
|
1108
|
-
"Hospital Facility",
|
|
1109
|
-
"Others, Prescriptions"
|
|
1110
|
-
],
|
|
1120
|
+
labels: props.labels,
|
|
1111
1121
|
datasets: [
|
|
1112
1122
|
{
|
|
1113
1123
|
label: "Bot Conversation",
|
|
1114
|
-
data:
|
|
1124
|
+
data: props.data,
|
|
1115
1125
|
backgroundColor: [
|
|
1116
1126
|
"#FFCB8A",
|
|
1117
1127
|
"#CADBBF",
|
package/dist/index.mjs
CHANGED
|
@@ -664,6 +664,7 @@ var ModelElement = (props) => {
|
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
// src/Components/TableElement.tsx
|
|
667
|
+
import { EyeOutlined } from "@ant-design/icons";
|
|
667
668
|
var TableElement = (props) => {
|
|
668
669
|
const { thead, tbody } = props;
|
|
669
670
|
const [selectedRecord, setSelectedRecord] = useState6({});
|
|
@@ -703,19 +704,21 @@ var TableElement = (props) => {
|
|
|
703
704
|
if (props.view) {
|
|
704
705
|
columns.push({
|
|
705
706
|
title: "View",
|
|
706
|
-
dataIndex:
|
|
707
|
+
dataIndex: /* @__PURE__ */ React20.createElement(EyeOutlined, null),
|
|
707
708
|
key: "View",
|
|
708
|
-
render: (_, record) =>
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
709
|
+
render: (_, record) => {
|
|
710
|
+
props.view && /* @__PURE__ */ React20.createElement(
|
|
711
|
+
"a",
|
|
712
|
+
{
|
|
713
|
+
onClick: () => {
|
|
714
|
+
setSelectedRecord(record);
|
|
715
|
+
handleChange(record);
|
|
716
|
+
setModel(true);
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"View"
|
|
720
|
+
);
|
|
721
|
+
}
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
724
|
}
|
|
@@ -732,7 +735,11 @@ var TableElement = (props) => {
|
|
|
732
735
|
};
|
|
733
736
|
const rowSelectionConfig = props.rowSelection ? {
|
|
734
737
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
735
|
-
console.log(
|
|
738
|
+
console.log(
|
|
739
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
740
|
+
"selectedRows: ",
|
|
741
|
+
selectedRows
|
|
742
|
+
);
|
|
736
743
|
if (props.onChange) {
|
|
737
744
|
props.onChange(selectedRows);
|
|
738
745
|
}
|
|
@@ -742,7 +749,7 @@ var TableElement = (props) => {
|
|
|
742
749
|
Table2,
|
|
743
750
|
{
|
|
744
751
|
className: props.className,
|
|
745
|
-
pagination: {
|
|
752
|
+
pagination: props.pagination && {
|
|
746
753
|
showTotal: (total) => `Total: ${total} items`,
|
|
747
754
|
total: count,
|
|
748
755
|
showSizeChanger: count > 10,
|
|
@@ -754,7 +761,16 @@ var TableElement = (props) => {
|
|
|
754
761
|
size: props.size,
|
|
755
762
|
bordered: true
|
|
756
763
|
}
|
|
757
|
-
), model && /* @__PURE__ */ React20.createElement(
|
|
764
|
+
), model && /* @__PURE__ */ React20.createElement(
|
|
765
|
+
ModelElement,
|
|
766
|
+
{
|
|
767
|
+
selectedRecord,
|
|
768
|
+
...props,
|
|
769
|
+
columns,
|
|
770
|
+
model,
|
|
771
|
+
onCancel: () => setModel(false)
|
|
772
|
+
}
|
|
773
|
+
));
|
|
758
774
|
};
|
|
759
775
|
|
|
760
776
|
// src/Components/DatePicker.tsx
|
|
@@ -1041,17 +1057,11 @@ import {
|
|
|
1041
1057
|
ChartJS.register(DoughnutController, ArcElement, Tooltip, Legend);
|
|
1042
1058
|
var CircleDonut = (props) => {
|
|
1043
1059
|
const data = {
|
|
1044
|
-
labels:
|
|
1045
|
-
"Registration",
|
|
1046
|
-
"Book Appointment",
|
|
1047
|
-
"Diagnostic Tests",
|
|
1048
|
-
"Hospital Facility",
|
|
1049
|
-
"Others, Prescriptions"
|
|
1050
|
-
],
|
|
1060
|
+
labels: props.labels,
|
|
1051
1061
|
datasets: [
|
|
1052
1062
|
{
|
|
1053
1063
|
label: "Bot Conversation",
|
|
1054
|
-
data:
|
|
1064
|
+
data: props.data,
|
|
1055
1065
|
backgroundColor: [
|
|
1056
1066
|
"#FFCB8A",
|
|
1057
1067
|
"#CADBBF",
|