@neovici/cosmoz-omnitable 8.7.0 → 8.7.3

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.
@@ -1,12 +1,12 @@
1
1
  import { component } from 'haunted';
2
2
  import { nothing } from 'lit-html';
3
3
 
4
- const GroupRow = ({ column, item, selected, folded }) => {
4
+ const GroupRow = ({ column, item, selected, folded, group }) => {
5
5
  if (!column) {
6
6
  return nothing;
7
7
  }
8
8
 
9
- return (column.renderGroup ?? column.renderCell)(column, { item, selected, folded });
9
+ return (column.renderGroup ?? column.renderCell)(column, { item, selected, folded, group });
10
10
  };
11
11
 
12
12
  customElements.define('cosmoz-omnitable-group-row', component(GroupRow, { useShadowDOM: false }));
@@ -97,7 +97,7 @@ const checkbox = css`
97
97
  var(--primary-color)
98
98
  );
99
99
  }
100
- .sort[data-sort='desc'] {
100
+ .sort:not([data-sort='desc']) {
101
101
  transform: scaleY(-1);
102
102
  }
103
103
  :not(:hover) > * > .sort:not([data-sort]) {
@@ -107,8 +107,9 @@ const checkbox = css`
107
107
  display: inline-flex;
108
108
  position: relative;
109
109
  }
110
- .header-cell * {
110
+ .header-cell :not(.sort) {
111
111
  min-width: 0;
112
+ flex: auto;
112
113
  }
113
114
  `;
114
115
 
@@ -121,8 +121,9 @@ class Omnitable extends hauntedPolymer(useOmnitable)(mixin({ isEmpty }, translat
121
121
  <input class="checkbox" type="checkbox" checked="[[ selected ]]" on-input="_onCheckboxChange" disabled$="[[ !_dataIsValid ]]" />
122
122
  <h3 class="groupRow-label">
123
123
  <div><span>[[ groupOnColumn.title ]]</span>: &nbsp;</div>
124
- <cosmoz-omnitable-group-row column="[[ groupOnColumn ]]" item="[[ item.items.0 ]]" selected="[[ selected ]]" folded="[[ folded ]]">
125
- </cosmoz-omnitable-group-row>
124
+ <cosmoz-omnitable-group-row column="[[ groupOnColumn ]]" item="[[ item.items.0 ]]" selected="[[ selected ]]" folded="[[ folded ]]"
125
+ group="[[ item ]]"
126
+ ></cosmoz-omnitable-group-row>
126
127
  </h3>
127
128
  <div class="groupRow-badge">[[ item.items.length ]]</div>
128
129
  <paper-icon-button class="fold" icon="[[ _getFoldIcon(folded) ]]" on-tap="_toggleGroup"></paper-icon-button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "8.7.0",
3
+ "version": "8.7.3",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"