@vaadin/vaadin-grid 5.8.4 → 5.9.0

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
@@ -15,7 +15,7 @@
15
15
  "repository": "vaadin/vaadin-grid",
16
16
  "homepage": "https://vaadin.com/components",
17
17
  "name": "@vaadin/vaadin-grid",
18
- "version": "5.8.4",
18
+ "version": "5.9.0",
19
19
  "main": "vaadin-grid.js",
20
20
  "author": "Vaadin Ltd",
21
21
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@vaadin/vaadin-element-mixin": "^2.4.1"
45
45
  },
46
46
  "resolutions": {
47
- "@webcomponents/webcomponentsjs": "2.0.0",
47
+ "@webcomponents/webcomponentsjs": "2.0.0",
48
48
  "es-abstract": "1.17.6",
49
49
  "@types/doctrine": "0.0.3",
50
50
  "inherits": "2.0.3",
@@ -53,9 +53,9 @@
53
53
  "type-detect": "1.0.0"
54
54
  },
55
55
  "scripts": {
56
- "generate-typings": "gen-typescript-declarations --outDir . --verify"
57
- },
58
- "devDependencies": {
56
+ "generate-typings": "gen-typescript-declarations --outDir . --verify"
57
+ },
58
+ "devDependencies": {
59
59
  "@webcomponents/webcomponentsjs": "^2.0.0",
60
60
  "wct-browser-legacy": "^1.0.1",
61
61
  "@polymer/iron-test-helpers": "^3.0.0",
@@ -532,6 +532,12 @@ export const KeyboardNavigationMixin = superClass => class KeyboardNavigationMix
532
532
  }
533
533
  // Inform cell content of the focus (used in <vaadin-grid-sorter>)
534
534
  cell._content.dispatchEvent(new CustomEvent('cell-focusin', {bubbles: false}));
535
+
536
+ // Fire a public event for cell focus.
537
+ const context = this.getEventContext(e);
538
+ cell.dispatchEvent(
539
+ new CustomEvent('cell-focus', {bubbles: true, composed: true, detail: {context: context}})
540
+ );
535
541
  }
536
542
 
537
543
  this._detectFocusedItemIndex(e);
@@ -738,4 +744,12 @@ export const KeyboardNavigationMixin = superClass => class KeyboardNavigationMix
738
744
  }
739
745
  return null;
740
746
  }
747
+
748
+ /**
749
+ * Fired when a cell is focused with click or keyboard navigation.
750
+ *
751
+ * Use context property of @see {@link GridCellFocusEvent} to get detail information about the event.
752
+ *
753
+ * @event cell-focus
754
+ */
741
755
  };
@@ -322,7 +322,7 @@ class GridElement extends
322
322
  }
323
323
 
324
324
  static get version() {
325
- return '5.8.4';
325
+ return '5.9.0';
326
326
  }
327
327
 
328
328
  static get observers() {