@stenajs-webui/grid 15.2.1 → 15.3.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v15.3.2 (Thu Mar 31 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Wrong number of tds in summary row in StandardTable [#440](https://github.com/StenaIT/stenajs-webui/pull/440) ([@mattias800](https://github.com/mattias800))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mattias Andersson ([@mattias800](https://github.com/mattias800))
10
+
11
+ ---
12
+
1
13
  # v15.1.0 (Fri Feb 25 2022)
2
14
 
3
15
  #### 🚀 Enhancement
package/dist/index.es.js CHANGED
@@ -1772,7 +1772,7 @@ var columnHasSummaryCell = function (columnConfig) {
1772
1772
  return Boolean(columnConfig.renderSummaryCell || columnConfig.summaryText);
1773
1773
  };
1774
1774
 
1775
- var css_248z = ".StandardTableSummaryRow-module_summaryRow__1qAAJ td {\n border-top: 1px solid var(--lhds-color-ui-500);\n border-bottom: 1px solid var(--lhds-color-ui-500);\n }\n";
1775
+ var css_248z = ".StandardTableSummaryRow-module_summaryRow__1qAAJ td {\n border-top: 1px solid var(--lhds-color-ui-400);\n }\n";
1776
1776
  var styles = {"summaryRow":"StandardTableSummaryRow-module_summaryRow__1qAAJ"};
1777
1777
  styleInject(css_248z);
1778
1778
 
@@ -1830,8 +1830,10 @@ var getColumnsLimitedWithColSpan = function (columnOrder, columns) {
1830
1830
  var StandardTableSummaryRow = React.memo(function StandardTableSummaryRow(_a) {
1831
1831
  var items = _a.items;
1832
1832
  var groupConfigsAndIds = useGroupConfigsAndIdsForRows();
1833
- var _b = useStandardTableConfig(), showRowCheckbox = _b.showRowCheckbox, enableExpandCollapse = _b.enableExpandCollapse, columns = _b.columns;
1833
+ var _b = useStandardTableConfig(), showRowCheckbox = _b.showRowCheckbox, enableExpandCollapse = _b.enableExpandCollapse, columns = _b.columns, rowIndent = _b.rowIndent;
1834
1834
  return (React.createElement("tr", { className: styles.summaryRow },
1835
+ rowIndent && (React.createElement("td", null,
1836
+ React.createElement(Indent, { num: rowIndent }))),
1835
1837
  enableExpandCollapse && React.createElement("td", null),
1836
1838
  showRowCheckbox && React.createElement("td", null),
1837
1839
  groupConfigsAndIds.map(function (_a, groupIndex) {
@@ -1840,7 +1842,10 @@ var StandardTableSummaryRow = React.memo(function StandardTableSummaryRow(_a) {
1840
1842
  var columnId = _a.columnId, colSpan = _a.colSpan;
1841
1843
  return (React.createElement(SummaryCell, { key: columnId, colSpan: colSpan, columnId: columnId, items: items, borderFromGroup: getCellBorderFromGroup(groupIndex, index, groupConfig.borderLeft), disableBorderLeft: groupIndex === 0 && index === 0 }));
1842
1844
  })));
1843
- })));
1845
+ }),
1846
+ rowIndent && (React.createElement("td", null,
1847
+ React.createElement(Indent, { num: rowIndent }))),
1848
+ React.createElement("td", null)));
1844
1849
  });
1845
1850
 
1846
1851
  var SummaryRowSwitcher = function SummaryRowSwitcher(_a) {