@vaadin/crud 23.0.0-alpha3 → 23.0.0-beta2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/crud",
3
- "version": "23.0.0-alpha3",
3
+ "version": "23.0.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "main": "vaadin-crud.js",
20
20
  "module": "vaadin-crud.js",
21
+ "type": "module",
21
22
  "files": [
22
23
  "src",
23
24
  "theme",
@@ -35,22 +36,22 @@
35
36
  "@open-wc/dedupe-mixin": "^1.3.0",
36
37
  "@polymer/iron-media-query": "^3.0.0",
37
38
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "23.0.0-alpha3",
39
- "@vaadin/component-base": "23.0.0-alpha3",
40
- "@vaadin/confirm-dialog": "23.0.0-alpha3",
41
- "@vaadin/dialog": "23.0.0-alpha3",
42
- "@vaadin/form-layout": "23.0.0-alpha3",
43
- "@vaadin/grid": "23.0.0-alpha3",
44
- "@vaadin/text-field": "23.0.0-alpha3",
39
+ "@vaadin/button": "23.0.0-beta2",
40
+ "@vaadin/component-base": "23.0.0-beta2",
41
+ "@vaadin/confirm-dialog": "23.0.0-beta2",
42
+ "@vaadin/dialog": "23.0.0-beta2",
43
+ "@vaadin/form-layout": "23.0.0-beta2",
44
+ "@vaadin/grid": "23.0.0-beta2",
45
+ "@vaadin/text-field": "23.0.0-beta2",
45
46
  "@vaadin/vaadin-license-checker": "^2.1.0",
46
- "@vaadin/vaadin-lumo-styles": "23.0.0-alpha3",
47
- "@vaadin/vaadin-material-styles": "23.0.0-alpha3",
48
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha3"
47
+ "@vaadin/vaadin-lumo-styles": "23.0.0-beta2",
48
+ "@vaadin/vaadin-material-styles": "23.0.0-beta2",
49
+ "@vaadin/vaadin-themable-mixin": "23.0.0-beta2"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@esm-bundle/chai": "^4.3.4",
52
53
  "@vaadin/testing-helpers": "^0.3.2",
53
54
  "sinon": "^9.2.1"
54
55
  },
55
- "gitHead": "490037919a9e054cc002c1b3be0c94a1603e1a44"
56
+ "gitHead": "a276f7a0fd00e5459b87267468e0dd0d4fb6f7f3"
56
57
  }
@@ -167,6 +167,10 @@ class CrudGrid extends IncludedMixin(Grid) {
167
167
  if (!this.noHead && path) {
168
168
  // Create a header renderer for the column (or column group)
169
169
  col.headerRenderer = (root) => {
170
+ if (root.firstElementChild) {
171
+ return;
172
+ }
173
+
170
174
  const label = this._generateHeader(path);
171
175
 
172
176
  if (col.__sortColumnGroup || (this.noFilter && !this.noSort)) {
@@ -174,12 +178,16 @@ class CrudGrid extends IncludedMixin(Grid) {
174
178
  // sort column (in case a filter isn't used at all) => add the sort indicator
175
179
  const sorter = document.createElement('vaadin-grid-sorter');
176
180
  sorter.setAttribute('path', path);
181
+ // TODO: Localize aria labels
182
+ sorter.setAttribute('aria-label', `Sort by ${label}`);
177
183
  sorter.textContent = label;
178
184
  root.appendChild(sorter);
179
185
  } else if (!this.noFilter) {
180
186
  // Filtering is enabled in this crud-grid, create the filter element
181
187
  const filter = document.createElement('vaadin-grid-filter');
182
188
  filter.setAttribute('path', path);
189
+ // TODO: Localize aria labels
190
+ filter.setAttribute('aria-label', `Filter by ${label}`);
183
191
  filter.style.display = 'flex';
184
192
 
185
193
  const textField = window.document.createElement('vaadin-text-field');