@vaadin/grid-pro 24.4.6 → 24.5.0-alpha10

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/README.md CHANGED
@@ -68,7 +68,7 @@ import '@vaadin/grid-pro/src/vaadin-grid-pro-edit-column.js';
68
68
 
69
69
  ## Contributing
70
70
 
71
- Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
71
+ Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
72
72
 
73
73
  ## License
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/grid-pro",
3
- "version": "24.4.6",
3
+ "version": "24.5.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,26 +39,26 @@
39
39
  "dependencies": {
40
40
  "@open-wc/dedupe-mixin": "^1.3.0",
41
41
  "@polymer/polymer": "^3.0.0",
42
- "@vaadin/checkbox": "~24.4.6",
43
- "@vaadin/component-base": "~24.4.6",
44
- "@vaadin/grid": "~24.4.6",
45
- "@vaadin/lit-renderer": "~24.4.6",
46
- "@vaadin/select": "~24.4.6",
47
- "@vaadin/text-field": "~24.4.6",
48
- "@vaadin/vaadin-lumo-styles": "~24.4.6",
49
- "@vaadin/vaadin-material-styles": "~24.4.6",
50
- "@vaadin/vaadin-themable-mixin": "~24.4.6",
42
+ "@vaadin/checkbox": "24.5.0-alpha10",
43
+ "@vaadin/component-base": "24.5.0-alpha10",
44
+ "@vaadin/grid": "24.5.0-alpha10",
45
+ "@vaadin/lit-renderer": "24.5.0-alpha10",
46
+ "@vaadin/select": "24.5.0-alpha10",
47
+ "@vaadin/text-field": "24.5.0-alpha10",
48
+ "@vaadin/vaadin-lumo-styles": "24.5.0-alpha10",
49
+ "@vaadin/vaadin-material-styles": "24.5.0-alpha10",
50
+ "@vaadin/vaadin-themable-mixin": "24.5.0-alpha10",
51
51
  "lit": "^3.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@esm-bundle/chai": "^4.3.4",
55
- "@vaadin/testing-helpers": "^0.6.0",
56
- "sinon": "^13.0.2"
54
+ "@vaadin/chai-plugins": "24.5.0-alpha10",
55
+ "@vaadin/testing-helpers": "^1.0.0",
56
+ "sinon": "^18.0.0"
57
57
  },
58
58
  "cvdlName": "vaadin-grid-pro",
59
59
  "web-types": [
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "46d3cdb72eb99d544c7bb86c3de95043b9e5857f"
63
+ "gitHead": "6f9c37308031af872a98017bfab4de89aeacda51"
64
64
  }
@@ -143,7 +143,7 @@ export const GridProEditColumnMixin = (superClass) =>
143
143
  }
144
144
 
145
145
  /** @private */
146
- _isCellEditableChanged(newValue, oldValue) {
146
+ _isCellEditableChanged() {
147
147
  // Re-render grid to update editable-cell part names
148
148
  this._grid.requestContentUpdate();
149
149
  }
@@ -200,7 +200,7 @@ export const InlineEditingMixin = (superClass) =>
200
200
  }
201
201
 
202
202
  /** @private */
203
- _applyEdit({ path, value, index, item }) {
203
+ _applyEdit({ path, value, item }) {
204
204
  set(path, value, item);
205
205
  this.requestContentUpdate();
206
206
  }
@@ -213,8 +213,7 @@ export const InlineEditingMixin = (superClass) =>
213
213
  const edited = this.__edited;
214
214
 
215
215
  if (context.item && this._isEditColumn(column)) {
216
- const path = e.composedPath();
217
- const cell = path[path.indexOf(this.$.table) - 3];
216
+ const { cell } = this._getGridEventLocation(e);
218
217
 
219
218
  if (!cell || cell.getAttribute('part').indexOf('details-cell') > -1) {
220
219
  return;
@@ -283,8 +282,7 @@ export const InlineEditingMixin = (superClass) =>
283
282
  const edited = this.__edited;
284
283
 
285
284
  if (context.item && this._isEditColumn(column)) {
286
- const path = e.composedPath();
287
- const cell = path[path.indexOf(this.$.table) - 3];
285
+ const { cell } = this._getGridEventLocation(e);
288
286
 
289
287
  if (!cell || cell.getAttribute('part').indexOf('details-cell') > -1) {
290
288
  return;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "24.4.6",
4
+ "version": "24.5.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -401,7 +401,7 @@
401
401
  },
402
402
  {
403
403
  "name": "vaadin-grid-pro",
404
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-grid) documentation for details.\n\n```\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-select).",
404
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-grid) documentation for details.\n\n```\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-select).",
405
405
  "attributes": [
406
406
  {
407
407
  "name": "size",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/grid-pro",
4
- "version": "24.4.6",
4
+ "version": "24.5.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -177,7 +177,7 @@
177
177
  },
178
178
  {
179
179
  "name": "vaadin-grid-pro",
180
- "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-grid) documentation for details.\n\n```\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/24.4.6/#/elements/vaadin-select).",
180
+ "description": "`<vaadin-grid-pro>` is a high quality data grid / data table Web Component with extended functionality.\nIt extends `<vaadin-grid>` and adds extra features on top of the basic ones.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-grid) documentation for details.\n\n```\n<vaadin-grid-pro></vaadin-grid-pro>\n```\n\n### Internal components\n\nIn addition to `<vaadin-grid-pro>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-grid-pro-edit-checkbox>` - has the same API as [`<vaadin-checkbox>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-checkbox).\n- `<vaadin-grid-pro-edit-text-field>` - has the same API as [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-text-field).\n- `<vaadin-grid-pro-edit-select>` - has the same API as [`<vaadin-select>`](https://cdn.vaadin.com/vaadin-web-components/24.5.0-alpha10/#/elements/vaadin-select).",
181
181
  "extension": true,
182
182
  "attributes": [
183
183
  {