ywana-core8 0.0.524 → 0.0.527

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.umd.js CHANGED
@@ -1602,9 +1602,10 @@
1602
1602
  }).map(function (field) {
1603
1603
  return /*#__PURE__*/React__default["default"].createElement("th", null, field.label);
1604
1604
  });
1605
- }))), /*#__PURE__*/React__default["default"].createElement("tbody", null, rows.length > 0 ? multiSort(rows, sortDir).map(function (row) {
1605
+ }))), /*#__PURE__*/React__default["default"].createElement("tbody", null, rows.length > 0 ? multiSort(rows, sortDir).map(function (row, index) {
1606
1606
  return /*#__PURE__*/React__default["default"].createElement(DataTableRow, {
1607
1607
  key: row.id,
1608
+ index: index,
1608
1609
  row: row,
1609
1610
  columns: columns,
1610
1611
  onSelect: select,
@@ -1625,7 +1626,8 @@
1625
1626
  */
1626
1627
 
1627
1628
  var DataTableRow = function DataTableRow(props) {
1628
- var row = props.row,
1629
+ var index = props.index,
1630
+ row = props.row,
1629
1631
  _props$columns2 = props.columns,
1630
1632
  columns = _props$columns2 === void 0 ? [] : _props$columns2,
1631
1633
  onSelect = props.onSelect,
@@ -1644,9 +1646,10 @@
1644
1646
  onClick: function onClick(ev) {
1645
1647
  return onSelect(row, ev);
1646
1648
  }
1647
- }, columns.map(function (column, index) {
1649
+ }, columns.map(function (column, cindex) {
1648
1650
  return /*#__PURE__*/React__default["default"].createElement(DataTableCell, {
1649
- key: column.id + "_" + index,
1651
+ key: column.id + "_" + cindex,
1652
+ index: index,
1650
1653
  row: row,
1651
1654
  column: column,
1652
1655
  cell: row[column.id],
@@ -1670,7 +1673,8 @@
1670
1673
 
1671
1674
 
1672
1675
  var DataTableCell = function DataTableCell(_ref4) {
1673
- var row = _ref4.row,
1676
+ var index = _ref4.index,
1677
+ row = _ref4.row,
1674
1678
  column = _ref4.column,
1675
1679
  cell = _ref4.cell,
1676
1680
  editable = _ref4.editable;
@@ -1787,6 +1791,9 @@
1787
1791
  }
1788
1792
  } else {
1789
1793
  switch (type) {
1794
+ case "INDEX":
1795
+ return /*#__PURE__*/React__default["default"].createElement("span", null, index);
1796
+
1790
1797
  case "ICON":
1791
1798
  return /*#__PURE__*/React__default["default"].createElement(Icon, {
1792
1799
  icon: cell
@@ -2703,7 +2710,7 @@
2703
2710
  }, navigation ? /*#__PURE__*/React__default["default"].createElement(Header, {
2704
2711
  title: label
2705
2712
  }, "\xA0\xA0", /*#__PURE__*/React__default["default"].createElement(Button, {
2706
- label: "Esta Semana",
2713
+ label: "This Week",
2707
2714
  outlined: true,
2708
2715
  action: showThisWeek
2709
2716
  }), /*#__PURE__*/React__default["default"].createElement(Icon, {
@@ -4971,6 +4978,7 @@
4971
4978
  }), canFilter ? /*#__PURE__*/React__default["default"].createElement(CollectionFilters, {
4972
4979
  schema: schema
4973
4980
  }) : null, levels ? /*#__PURE__*/React__default["default"].createElement(CollectionTree, {
4981
+ icon: icon,
4974
4982
  levels: levels,
4975
4983
  onSelect: onSelect,
4976
4984
  sorter: sorter
@@ -5113,7 +5121,9 @@
5113
5121
  }
5114
5122
  };
5115
5123
 
5116
- var levels = props.levels,
5124
+ var _props$icon = props.icon,
5125
+ icon = _props$icon === void 0 ? "description" : _props$icon,
5126
+ levels = props.levels,
5117
5127
  onSelect = props.onSelect,
5118
5128
  sorter = props.sorter;
5119
5129
 
@@ -5169,6 +5179,7 @@
5169
5179
  open: true
5170
5180
  }, node.nodes ? renderNodes(node.nodes) : node.items.map(function (item) {
5171
5181
  return /*#__PURE__*/React__default["default"].createElement(TreeItem, {
5182
+ icon: icon,
5172
5183
  key: item.id,
5173
5184
  id: item.id,
5174
5185
  label: item.name,