ywana-core8 0.0.524 → 0.0.525

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.
@@ -1599,9 +1599,10 @@ var DataTable = function DataTable(props) {
1599
1599
  }).map(function (field) {
1600
1600
  return /*#__PURE__*/React.createElement("th", null, field.label);
1601
1601
  });
1602
- }))), /*#__PURE__*/React.createElement("tbody", null, rows.length > 0 ? multiSort(rows, sortDir).map(function (row) {
1602
+ }))), /*#__PURE__*/React.createElement("tbody", null, rows.length > 0 ? multiSort(rows, sortDir).map(function (row, index) {
1603
1603
  return /*#__PURE__*/React.createElement(DataTableRow, {
1604
1604
  key: row.id,
1605
+ index: index,
1605
1606
  row: row,
1606
1607
  columns: columns,
1607
1608
  onSelect: select,
@@ -1622,7 +1623,8 @@ var DataTable = function DataTable(props) {
1622
1623
  */
1623
1624
 
1624
1625
  var DataTableRow = function DataTableRow(props) {
1625
- var row = props.row,
1626
+ var index = props.index,
1627
+ row = props.row,
1626
1628
  _props$columns2 = props.columns,
1627
1629
  columns = _props$columns2 === void 0 ? [] : _props$columns2,
1628
1630
  onSelect = props.onSelect,
@@ -1641,9 +1643,10 @@ var DataTableRow = function DataTableRow(props) {
1641
1643
  onClick: function onClick(ev) {
1642
1644
  return onSelect(row, ev);
1643
1645
  }
1644
- }, columns.map(function (column, index) {
1646
+ }, columns.map(function (column, cindex) {
1645
1647
  return /*#__PURE__*/React.createElement(DataTableCell, {
1646
- key: column.id + "_" + index,
1648
+ key: column.id + "_" + cindex,
1649
+ index: index,
1647
1650
  row: row,
1648
1651
  column: column,
1649
1652
  cell: row[column.id],
@@ -1667,7 +1670,8 @@ var DataTableRow = function DataTableRow(props) {
1667
1670
 
1668
1671
 
1669
1672
  var DataTableCell = function DataTableCell(_ref4) {
1670
- var row = _ref4.row,
1673
+ var index = _ref4.index,
1674
+ row = _ref4.row,
1671
1675
  column = _ref4.column,
1672
1676
  cell = _ref4.cell,
1673
1677
  editable = _ref4.editable;
@@ -1784,6 +1788,9 @@ var DataTableCell = function DataTableCell(_ref4) {
1784
1788
  }
1785
1789
  } else {
1786
1790
  switch (type) {
1791
+ case "INDEX":
1792
+ return /*#__PURE__*/React.createElement("span", null, index);
1793
+
1787
1794
  case "ICON":
1788
1795
  return /*#__PURE__*/React.createElement(Icon, {
1789
1796
  icon: cell