@apexcura/ui-components 0.0.11-Beta188 → 0.0.11-Beta189

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
@@ -612,8 +612,6 @@ var import_react19 = __toESM(require("react"));
612
612
  var import_antd13 = require("antd");
613
613
  var TableElement = (props) => {
614
614
  const { thead, tbody } = props;
615
- const onHandleSorter = (a) => {
616
- };
617
615
  let columns = [];
618
616
  if (thead) {
619
617
  columns = [
@@ -625,9 +623,7 @@ var TableElement = (props) => {
625
623
  ...thead.map((col) => ({
626
624
  title: col.label,
627
625
  dataIndex: col.name,
628
- key: col.key,
629
- sorter: onHandleSorter(col.key),
630
- onFilter: col.onFilter
626
+ key: col.key
631
627
  }))
632
628
  ];
633
629
  }
@@ -635,8 +631,6 @@ var TableElement = (props) => {
635
631
  ...row,
636
632
  [columns[0].key]: index + 1
637
633
  }));
638
- const onChange = (pagination, filters, sorter, extra) => {
639
- };
640
634
  return /* @__PURE__ */ import_react19.default.createElement(
641
635
  import_antd13.Table,
642
636
  {
@@ -644,7 +638,13 @@ var TableElement = (props) => {
644
638
  columns,
645
639
  bordered: true,
646
640
  size: props.size && props.size,
647
- onChange
641
+ onRow: (record, rowIndex) => {
642
+ return {
643
+ onClick: (event) => {
644
+ console.log(event);
645
+ }
646
+ };
647
+ }
648
648
  }
649
649
  );
650
650
  };
package/dist/index.mjs CHANGED
@@ -561,8 +561,6 @@ import React18 from "react";
561
561
  import { Table as Table2 } from "antd";
562
562
  var TableElement = (props) => {
563
563
  const { thead, tbody } = props;
564
- const onHandleSorter = (a) => {
565
- };
566
564
  let columns = [];
567
565
  if (thead) {
568
566
  columns = [
@@ -574,9 +572,7 @@ var TableElement = (props) => {
574
572
  ...thead.map((col) => ({
575
573
  title: col.label,
576
574
  dataIndex: col.name,
577
- key: col.key,
578
- sorter: onHandleSorter(col.key),
579
- onFilter: col.onFilter
575
+ key: col.key
580
576
  }))
581
577
  ];
582
578
  }
@@ -584,8 +580,6 @@ var TableElement = (props) => {
584
580
  ...row,
585
581
  [columns[0].key]: index + 1
586
582
  }));
587
- const onChange = (pagination, filters, sorter, extra) => {
588
- };
589
583
  return /* @__PURE__ */ React18.createElement(
590
584
  Table2,
591
585
  {
@@ -593,7 +587,13 @@ var TableElement = (props) => {
593
587
  columns,
594
588
  bordered: true,
595
589
  size: props.size && props.size,
596
- onChange
590
+ onRow: (record, rowIndex) => {
591
+ return {
592
+ onClick: (event) => {
593
+ console.log(event);
594
+ }
595
+ };
596
+ }
597
597
  }
598
598
  );
599
599
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta188",
3
+ "version": "0.0.11-Beta189",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",