@apexcura/ui-components 0.0.14-Beta8 → 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 CHANGED
@@ -667,12 +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: (_, record) => /* @__PURE__ */ import_react20.default.createElement(import_antd14.Button, null, "View")
675
- },
676
670
  ...thead.map((col, ind) => ({
677
671
  title: col.label,
678
672
  dataIndex: col.name,
@@ -687,7 +681,23 @@ var TableElement = (props) => {
687
681
  }
688
682
  }
689
683
  }
690
- }))
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
+ }
691
701
  ];
692
702
  }
693
703
  const dataSource = tbody && tbody.map((row, index) => ({
@@ -721,17 +731,7 @@ var TableElement = (props) => {
721
731
  columns,
722
732
  bordered: true,
723
733
  rowSelection: rowSelectionConfig,
724
- size: props.size && props.size,
725
- onRow: (record) => {
726
- return {
727
- onClick: () => {
728
- setSelectedRecord(record);
729
- handleChange(record);
730
- setModel(true);
731
- },
732
- style: { cursor: "pointer" }
733
- };
734
- }
734
+ size: props.size && props.size
735
735
  }
736
736
  ), model && /* @__PURE__ */ import_react20.default.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
737
737
  };
package/dist/index.mjs CHANGED
@@ -536,7 +536,7 @@ var Navbar = (props) => {
536
536
 
537
537
  // src/Components/TableElement.tsx
538
538
  import React20, { useState as useState5 } from "react";
539
- import { Button as Button3, Table as Table2 } from "antd";
539
+ import { Table as Table2 } from "antd";
540
540
 
541
541
  // src/Components/Model.tsx
542
542
  import React19 from "react";
@@ -610,12 +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: (_, record) => /* @__PURE__ */ React20.createElement(Button3, null, "View")
618
- },
619
613
  ...thead.map((col, ind) => ({
620
614
  title: col.label,
621
615
  dataIndex: col.name,
@@ -630,7 +624,23 @@ var TableElement = (props) => {
630
624
  }
631
625
  }
632
626
  }
633
- }))
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
+ }
634
644
  ];
635
645
  }
636
646
  const dataSource = tbody && tbody.map((row, index) => ({
@@ -664,17 +674,7 @@ var TableElement = (props) => {
664
674
  columns,
665
675
  bordered: true,
666
676
  rowSelection: rowSelectionConfig,
667
- size: props.size && props.size,
668
- onRow: (record) => {
669
- return {
670
- onClick: () => {
671
- setSelectedRecord(record);
672
- handleChange(record);
673
- setModel(true);
674
- },
675
- style: { cursor: "pointer" }
676
- };
677
- }
677
+ size: props.size && props.size
678
678
  }
679
679
  ), model && /* @__PURE__ */ React20.createElement(ModelElement, { selectedRecord, ...props, columns, model, onCancel: () => setModel(false) }));
680
680
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta8",
3
+ "version": "0.0.14-Beta9",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",