@apexcura/ui-components 0.0.14-Beta7 → 0.0.14-Beta9
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 +18 -20
- package/dist/index.mjs +18 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -667,14 +667,6 @@ var TableElement = (props) => {
|
|
|
667
667
|
dataIndex: "#",
|
|
668
668
|
key: "#"
|
|
669
669
|
},
|
|
670
|
-
// {
|
|
671
|
-
// title: "View",
|
|
672
|
-
// dataIndex: "View",
|
|
673
|
-
// key: "View",
|
|
674
|
-
// render: (_: any, record: any) => (
|
|
675
|
-
// <Button>View</Button>
|
|
676
|
-
// ),
|
|
677
|
-
// },
|
|
678
670
|
...thead.map((col, ind) => ({
|
|
679
671
|
title: col.label,
|
|
680
672
|
dataIndex: col.name,
|
|
@@ -689,7 +681,23 @@ var TableElement = (props) => {
|
|
|
689
681
|
}
|
|
690
682
|
}
|
|
691
683
|
}
|
|
692
|
-
}))
|
|
684
|
+
})),
|
|
685
|
+
{
|
|
686
|
+
title: "View",
|
|
687
|
+
dataIndex: "View",
|
|
688
|
+
key: "View",
|
|
689
|
+
render: (_, record) => /* @__PURE__ */ import_react20.default.createElement(
|
|
690
|
+
"a",
|
|
691
|
+
{
|
|
692
|
+
onClick: () => {
|
|
693
|
+
setSelectedRecord(record);
|
|
694
|
+
handleChange(record);
|
|
695
|
+
setModel(true);
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"View"
|
|
699
|
+
)
|
|
700
|
+
}
|
|
693
701
|
];
|
|
694
702
|
}
|
|
695
703
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
@@ -723,17 +731,7 @@ var TableElement = (props) => {
|
|
|
723
731
|
columns,
|
|
724
732
|
bordered: true,
|
|
725
733
|
rowSelection: rowSelectionConfig,
|
|
726
|
-
size: props.size && props.size
|
|
727
|
-
onRow: (record) => {
|
|
728
|
-
return {
|
|
729
|
-
onClick: () => {
|
|
730
|
-
setSelectedRecord(record);
|
|
731
|
-
handleChange(record);
|
|
732
|
-
setModel(true);
|
|
733
|
-
},
|
|
734
|
-
style: { cursor: "pointer" }
|
|
735
|
-
};
|
|
736
|
-
}
|
|
734
|
+
size: props.size && props.size
|
|
737
735
|
}
|
|
738
736
|
), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
739
737
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -610,14 +610,6 @@ var TableElement = (props) => {
|
|
|
610
610
|
dataIndex: "#",
|
|
611
611
|
key: "#"
|
|
612
612
|
},
|
|
613
|
-
// {
|
|
614
|
-
// title: "View",
|
|
615
|
-
// dataIndex: "View",
|
|
616
|
-
// key: "View",
|
|
617
|
-
// render: (_: any, record: any) => (
|
|
618
|
-
// <Button>View</Button>
|
|
619
|
-
// ),
|
|
620
|
-
// },
|
|
621
613
|
...thead.map((col, ind) => ({
|
|
622
614
|
title: col.label,
|
|
623
615
|
dataIndex: col.name,
|
|
@@ -632,7 +624,23 @@ var TableElement = (props) => {
|
|
|
632
624
|
}
|
|
633
625
|
}
|
|
634
626
|
}
|
|
635
|
-
}))
|
|
627
|
+
})),
|
|
628
|
+
{
|
|
629
|
+
title: "View",
|
|
630
|
+
dataIndex: "View",
|
|
631
|
+
key: "View",
|
|
632
|
+
render: (_, record) => /* @__PURE__ */ React20.createElement(
|
|
633
|
+
"a",
|
|
634
|
+
{
|
|
635
|
+
onClick: () => {
|
|
636
|
+
setSelectedRecord(record);
|
|
637
|
+
handleChange(record);
|
|
638
|
+
setModel(true);
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"View"
|
|
642
|
+
)
|
|
643
|
+
}
|
|
636
644
|
];
|
|
637
645
|
}
|
|
638
646
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
@@ -666,17 +674,7 @@ var TableElement = (props) => {
|
|
|
666
674
|
columns,
|
|
667
675
|
bordered: true,
|
|
668
676
|
rowSelection: rowSelectionConfig,
|
|
669
|
-
size: props.size && props.size
|
|
670
|
-
onRow: (record) => {
|
|
671
|
-
return {
|
|
672
|
-
onClick: () => {
|
|
673
|
-
setSelectedRecord(record);
|
|
674
|
-
handleChange(record);
|
|
675
|
-
setModel(true);
|
|
676
|
-
},
|
|
677
|
-
style: { cursor: "pointer" }
|
|
678
|
-
};
|
|
679
|
-
}
|
|
677
|
+
size: props.size && props.size
|
|
680
678
|
}
|
|
681
679
|
), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
|
|
682
680
|
};
|