@apexcura/ui-components 0.0.14-Beta151 → 0.0.14-Beta153
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 +4 -18
- package/dist/index.mjs +4 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -734,7 +734,6 @@ var TableElement = (props) => {
|
|
|
734
734
|
const { thead, tbody } = props;
|
|
735
735
|
const [selectedRecord, setSelectedRecord] = (0, import_react20.useState)({});
|
|
736
736
|
const [model, setModel] = (0, import_react20.useState)(false);
|
|
737
|
-
console.log("whjksqjA");
|
|
738
737
|
const handleChange = (record) => {
|
|
739
738
|
console.log("record", record);
|
|
740
739
|
if (props.onChange) {
|
|
@@ -773,7 +772,7 @@ var TableElement = (props) => {
|
|
|
773
772
|
dataIndex: "View",
|
|
774
773
|
key: "View",
|
|
775
774
|
render: (_, record) => {
|
|
776
|
-
|
|
775
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
|
777
776
|
"a",
|
|
778
777
|
{
|
|
779
778
|
onClick: () => {
|
|
@@ -784,7 +783,7 @@ var TableElement = (props) => {
|
|
|
784
783
|
}
|
|
785
784
|
}
|
|
786
785
|
},
|
|
787
|
-
|
|
786
|
+
"View"
|
|
788
787
|
);
|
|
789
788
|
}
|
|
790
789
|
});
|
|
@@ -803,11 +802,7 @@ var TableElement = (props) => {
|
|
|
803
802
|
};
|
|
804
803
|
const rowSelectionConfig = props.rowSelection ? {
|
|
805
804
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
806
|
-
console.log(
|
|
807
|
-
`selectedRowKeys: ${selectedRowKeys}`,
|
|
808
|
-
"selectedRows: ",
|
|
809
|
-
selectedRows
|
|
810
|
-
);
|
|
805
|
+
console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
|
|
811
806
|
if (props.onChange) {
|
|
812
807
|
props.onChange(selectedRows);
|
|
813
808
|
}
|
|
@@ -829,16 +824,7 @@ var TableElement = (props) => {
|
|
|
829
824
|
size: props.size,
|
|
830
825
|
bordered: true
|
|
831
826
|
}
|
|
832
|
-
), model && /* @__PURE__ */ import_react20.default.createElement(
|
|
833
|
-
ModelElement,
|
|
834
|
-
{
|
|
835
|
-
selectedRecord,
|
|
836
|
-
...props,
|
|
837
|
-
columns,
|
|
838
|
-
model,
|
|
839
|
-
onCancel: () => setModel(false)
|
|
840
|
-
}
|
|
841
|
-
));
|
|
827
|
+
), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
842
828
|
};
|
|
843
829
|
|
|
844
830
|
// src/Components/DatePicker.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -668,7 +668,6 @@ var TableElement = (props) => {
|
|
|
668
668
|
const { thead, tbody } = props;
|
|
669
669
|
const [selectedRecord, setSelectedRecord] = useState6({});
|
|
670
670
|
const [model, setModel] = useState6(false);
|
|
671
|
-
console.log("whjksqjA");
|
|
672
671
|
const handleChange = (record) => {
|
|
673
672
|
console.log("record", record);
|
|
674
673
|
if (props.onChange) {
|
|
@@ -707,7 +706,7 @@ var TableElement = (props) => {
|
|
|
707
706
|
dataIndex: "View",
|
|
708
707
|
key: "View",
|
|
709
708
|
render: (_, record) => {
|
|
710
|
-
|
|
709
|
+
return /* @__PURE__ */ React20.createElement(
|
|
711
710
|
"a",
|
|
712
711
|
{
|
|
713
712
|
onClick: () => {
|
|
@@ -718,7 +717,7 @@ var TableElement = (props) => {
|
|
|
718
717
|
}
|
|
719
718
|
}
|
|
720
719
|
},
|
|
721
|
-
|
|
720
|
+
"View"
|
|
722
721
|
);
|
|
723
722
|
}
|
|
724
723
|
});
|
|
@@ -737,11 +736,7 @@ var TableElement = (props) => {
|
|
|
737
736
|
};
|
|
738
737
|
const rowSelectionConfig = props.rowSelection ? {
|
|
739
738
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
740
|
-
console.log(
|
|
741
|
-
`selectedRowKeys: ${selectedRowKeys}`,
|
|
742
|
-
"selectedRows: ",
|
|
743
|
-
selectedRows
|
|
744
|
-
);
|
|
739
|
+
console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
|
|
745
740
|
if (props.onChange) {
|
|
746
741
|
props.onChange(selectedRows);
|
|
747
742
|
}
|
|
@@ -763,16 +758,7 @@ var TableElement = (props) => {
|
|
|
763
758
|
size: props.size,
|
|
764
759
|
bordered: true
|
|
765
760
|
}
|
|
766
|
-
), model && /* @__PURE__ */ React20.createElement(
|
|
767
|
-
ModelElement,
|
|
768
|
-
{
|
|
769
|
-
selectedRecord,
|
|
770
|
-
...props,
|
|
771
|
-
columns,
|
|
772
|
-
model,
|
|
773
|
-
onCancel: () => setModel(false)
|
|
774
|
-
}
|
|
775
|
-
));
|
|
761
|
+
), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
776
762
|
};
|
|
777
763
|
|
|
778
764
|
// src/Components/DatePicker.tsx
|