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.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +18 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +18 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +3 -3
- package/src/html/table.js +6 -5
- package/src/html/table.test.js +2 -1
- package/src/widgets/planner/Planner.js +1 -1
package/dist/index.modern.js
CHANGED
@@ -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
|
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,
|
1646
|
+
}, columns.map(function (column, cindex) {
|
1645
1647
|
return /*#__PURE__*/React.createElement(DataTableCell, {
|
1646
|
-
key: column.id + "_" +
|
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
|
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
|
@@ -2700,7 +2707,7 @@ var Planner = function Planner(_ref) {
|
|
2700
2707
|
}, navigation ? /*#__PURE__*/React.createElement(Header, {
|
2701
2708
|
title: label
|
2702
2709
|
}, "\xA0\xA0", /*#__PURE__*/React.createElement(Button, {
|
2703
|
-
label: "
|
2710
|
+
label: "This Week",
|
2704
2711
|
outlined: true,
|
2705
2712
|
action: showThisWeek
|
2706
2713
|
}), /*#__PURE__*/React.createElement(Icon, {
|
@@ -4968,6 +4975,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4968
4975
|
}), canFilter ? /*#__PURE__*/React.createElement(CollectionFilters, {
|
4969
4976
|
schema: schema
|
4970
4977
|
}) : null, levels ? /*#__PURE__*/React.createElement(CollectionTree, {
|
4978
|
+
icon: icon,
|
4971
4979
|
levels: levels,
|
4972
4980
|
onSelect: onSelect,
|
4973
4981
|
sorter: sorter
|
@@ -5110,7 +5118,9 @@ var CollectionTree = function CollectionTree(props) {
|
|
5110
5118
|
}
|
5111
5119
|
};
|
5112
5120
|
|
5113
|
-
var
|
5121
|
+
var _props$icon = props.icon,
|
5122
|
+
icon = _props$icon === void 0 ? "description" : _props$icon,
|
5123
|
+
levels = props.levels,
|
5114
5124
|
onSelect = props.onSelect,
|
5115
5125
|
sorter = props.sorter;
|
5116
5126
|
|
@@ -5166,6 +5176,7 @@ var CollectionTree = function CollectionTree(props) {
|
|
5166
5176
|
open: true
|
5167
5177
|
}, node.nodes ? renderNodes(node.nodes) : node.items.map(function (item) {
|
5168
5178
|
return /*#__PURE__*/React.createElement(TreeItem, {
|
5179
|
+
icon: icon,
|
5169
5180
|
key: item.id,
|
5170
5181
|
id: item.id,
|
5171
5182
|
label: item.name,
|