@vaadin/grid-pro 23.2.0-dev.8a7678b70 → 23.2.1
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 +5 -5
- package/package.json +22 -17
- package/src/lit/column-renderer-directives.d.ts +5 -6
- package/src/lit/column-renderer-directives.js +1 -2
- package/src/vaadin-grid-pro-edit-checkbox.js +1 -2
- package/src/vaadin-grid-pro-edit-column.d.ts +3 -4
- package/src/vaadin-grid-pro-edit-column.js +1 -2
- package/src/vaadin-grid-pro-edit-select.js +1 -2
- package/src/vaadin-grid-pro-edit-text-field.js +1 -2
- package/src/vaadin-grid-pro-inline-editing-mixin.d.ts +3 -4
- package/src/vaadin-grid-pro-inline-editing-mixin.js +4 -3
- package/src/vaadin-grid-pro.d.ts +7 -7
- package/src/vaadin-grid-pro.js +1 -16
- package/web-types.json +806 -0
- package/web-types.lit.json +468 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ An extension of the `vaadin-grid` component that provides inline editing with fu
|
|
|
4
4
|
|
|
5
5
|
> ℹ️ A commercial Vaadin [subscription](https://vaadin.com/pricing) is required to use Grid Pro in your project.
|
|
6
6
|
|
|
7
|
-
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/
|
|
7
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/grid-pro)
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@vaadin/grid-pro)
|
|
10
10
|
[](https://discord.gg/PHmkCKC)
|
|
@@ -24,7 +24,7 @@ An extension of the `vaadin-grid` component that provides inline editing with fu
|
|
|
24
24
|
</script>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
[<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/grid-pro/screenshot.png" width="900" alt="Screenshot of vaadin-grid-pro">](https://vaadin.com/docs/latest/
|
|
27
|
+
[<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/grid-pro/screenshot.png" width="900" alt="Screenshot of vaadin-grid-pro">](https://vaadin.com/docs/latest/components/grid-pro)
|
|
28
28
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
@@ -43,7 +43,7 @@ import '@vaadin/grid-pro/vaadin-grid-pro-edit-column.js';
|
|
|
43
43
|
|
|
44
44
|
## Themes
|
|
45
45
|
|
|
46
|
-
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/
|
|
46
|
+
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
|
|
47
47
|
The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/grid-pro/vaadin-grid-pro.js) of the package uses the Lumo theme.
|
|
48
48
|
|
|
49
49
|
To use the Material theme, import the components from the `theme/material` folder:
|
|
@@ -69,11 +69,11 @@ import '@vaadin/grid-pro/src/vaadin-grid-pro-edit-column.js';
|
|
|
69
69
|
|
|
70
70
|
## Contributing
|
|
71
71
|
|
|
72
|
-
Read the [contributing guide](https://vaadin.com/docs/latest/
|
|
72
|
+
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.
|
|
73
73
|
|
|
74
74
|
## License
|
|
75
75
|
|
|
76
76
|
Commercial Vaadin Developer License 4.0 (CVDLv4). For license terms, see LICENSE.
|
|
77
77
|
|
|
78
78
|
Vaadin collects usage statistics at development time to improve this product.
|
|
79
|
-
For
|
|
79
|
+
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/grid-pro",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"description": "vaadin-grid-pro",
|
|
8
|
-
"license": "
|
|
8
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"cvdlName": "vaadin-grid-pro",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"src",
|
|
27
27
|
"theme",
|
|
28
28
|
"vaadin-*.d.ts",
|
|
29
|
-
"vaadin-*.js"
|
|
29
|
+
"vaadin-*.js",
|
|
30
|
+
"web-types.json",
|
|
31
|
+
"web-types.lit.json"
|
|
30
32
|
],
|
|
31
33
|
"keywords": [
|
|
32
34
|
"Vaadin",
|
|
@@ -38,25 +40,28 @@
|
|
|
38
40
|
"dependencies": {
|
|
39
41
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
42
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/checkbox": "23.2.
|
|
42
|
-
"@vaadin/component-base": "23.2.
|
|
43
|
-
"@vaadin/grid": "23.2.
|
|
44
|
-
"@vaadin/item": "23.2.
|
|
45
|
-
"@vaadin/list-box": "23.2.
|
|
46
|
-
"@vaadin/lit-renderer": "23.2.
|
|
47
|
-
"@vaadin/select": "23.2.
|
|
48
|
-
"@vaadin/text-field": "23.2.
|
|
49
|
-
"@vaadin/vaadin-
|
|
50
|
-
"@vaadin/vaadin-
|
|
51
|
-
"@vaadin/vaadin-
|
|
52
|
-
"@vaadin/vaadin-themable-mixin": "23.2.0-dev.8a7678b70"
|
|
43
|
+
"@vaadin/checkbox": "~23.2.1",
|
|
44
|
+
"@vaadin/component-base": "~23.2.1",
|
|
45
|
+
"@vaadin/grid": "~23.2.1",
|
|
46
|
+
"@vaadin/item": "~23.2.1",
|
|
47
|
+
"@vaadin/list-box": "~23.2.1",
|
|
48
|
+
"@vaadin/lit-renderer": "~23.2.1",
|
|
49
|
+
"@vaadin/select": "~23.2.1",
|
|
50
|
+
"@vaadin/text-field": "~23.2.1",
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "~23.2.1",
|
|
52
|
+
"@vaadin/vaadin-material-styles": "~23.2.1",
|
|
53
|
+
"@vaadin/vaadin-themable-mixin": "~23.2.1"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@esm-bundle/chai": "^4.3.4",
|
|
56
|
-
"@vaadin/polymer-legacy-adapter": "23.2.
|
|
57
|
+
"@vaadin/polymer-legacy-adapter": "~23.2.1",
|
|
57
58
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
58
59
|
"lit": "^2.0.0",
|
|
59
60
|
"sinon": "^13.0.2"
|
|
60
61
|
},
|
|
61
|
-
"
|
|
62
|
+
"web-types": [
|
|
63
|
+
"web-types.json",
|
|
64
|
+
"web-types.lit.json"
|
|
65
|
+
],
|
|
66
|
+
"gitHead": "a6c314f6927bfd3309fc735eae6c6dc72ab8367a"
|
|
62
67
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
|
-
import { TemplateResult } from 'lit';
|
|
8
|
-
import { DirectiveResult } from 'lit/directive';
|
|
9
|
-
import { GridItemModel } from '@vaadin/grid';
|
|
6
|
+
import type { TemplateResult } from 'lit';
|
|
7
|
+
import type { DirectiveResult } from 'lit/directive';
|
|
8
|
+
import type { GridItemModel } from '@vaadin/grid';
|
|
10
9
|
import { LitRendererDirective } from '@vaadin/lit-renderer';
|
|
11
|
-
import { GridProEditColumn } from '../vaadin-grid-pro-edit-column.js';
|
|
10
|
+
import type { GridProEditColumn } from '../vaadin-grid-pro-edit-column.js';
|
|
12
11
|
|
|
13
12
|
export type GridProColumnEditModeLitRenderer<TItem> = (
|
|
14
13
|
item: TItem,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import { directive } from 'lit/directive.js';
|
|
8
7
|
import { microTask } from '@vaadin/component-base/src/async.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import { Checkbox } from '@vaadin/checkbox/src/vaadin-checkbox.js';
|
|
8
7
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
|
-
import { GridBodyRenderer, GridDefaultItem, GridItemModel } from '@vaadin/grid/src/vaadin-grid.js';
|
|
6
|
+
import type { GridBodyRenderer, GridDefaultItem, GridItemModel } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
7
|
import { GridColumn } from '@vaadin/grid/src/vaadin-grid-column.js';
|
|
9
8
|
|
|
10
|
-
export type GridProEditorType = '
|
|
9
|
+
export type GridProEditorType = 'checkbox' | 'custom' | 'select' | 'text';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* `<vaadin-grid-pro-edit-column>` is a helper element for the `<vaadin-grid-pro>`
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import './vaadin-grid-pro-edit-checkbox.js';
|
|
8
7
|
import './vaadin-grid-pro-edit-select.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import '@vaadin/item/src/vaadin-item.js';
|
|
8
7
|
import '@vaadin/list-box/src/vaadin-list-box.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import { TextField } from '@vaadin/text-field/src/vaadin-text-field.js';
|
|
8
7
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
|
-
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
6
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
8
7
|
|
|
9
8
|
export declare function InlineEditingMixin<T extends Constructor<HTMLElement>>(
|
|
10
9
|
base: T,
|
|
11
|
-
):
|
|
10
|
+
): Constructor<InlineEditingMixinClass> & T;
|
|
12
11
|
|
|
13
12
|
export declare class InlineEditingMixinClass {
|
|
14
13
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
6
|
import { animationFrame } from '@vaadin/component-base/src/async.js';
|
|
8
7
|
import { Debouncer } from '@vaadin/component-base/src/debounce.js';
|
|
@@ -400,7 +399,9 @@ export const InlineEditingMixin = (superClass) =>
|
|
|
400
399
|
/** @private */
|
|
401
400
|
_setCancelCellSwitch() {
|
|
402
401
|
this.__cancelCellSwitch = true;
|
|
403
|
-
window.requestAnimationFrame(() =>
|
|
402
|
+
window.requestAnimationFrame(() => {
|
|
403
|
+
this.__cancelCellSwitch = false;
|
|
404
|
+
});
|
|
404
405
|
}
|
|
405
406
|
|
|
406
407
|
/**
|
package/src/vaadin-grid-pro.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import type { GridCustomEventMap, GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
|
|
7
|
+
import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
|
+
import type { InlineEditingMixinClass } from './vaadin-grid-pro-inline-editing-mixin.js';
|
|
9
9
|
export { GridProEditorType } from './vaadin-grid-pro-edit-column.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -24,7 +24,7 @@ export type GridProItemPropertyChangedEvent<TItem> = CustomEvent<{
|
|
|
24
24
|
index: number;
|
|
25
25
|
item: TItem;
|
|
26
26
|
path: string;
|
|
27
|
-
value:
|
|
27
|
+
value: boolean | string;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
export interface GridProCustomEventMap<TItem> {
|
|
@@ -74,13 +74,13 @@ declare class GridPro<TItem = GridDefaultItem> extends Grid<TItem> {
|
|
|
74
74
|
addEventListener<K extends keyof GridProEventMap<TItem>>(
|
|
75
75
|
type: K,
|
|
76
76
|
listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
|
|
77
|
-
options?:
|
|
77
|
+
options?: AddEventListenerOptions | boolean,
|
|
78
78
|
): void;
|
|
79
79
|
|
|
80
80
|
removeEventListener<K extends keyof GridProEventMap<TItem>>(
|
|
81
81
|
type: K,
|
|
82
82
|
listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
|
|
83
|
-
options?:
|
|
83
|
+
options?: EventListenerOptions | boolean,
|
|
84
84
|
): void;
|
|
85
85
|
}
|
|
86
86
|
|
package/src/vaadin-grid-pro.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Commercial Vaadin Developer License 4.0
|
|
5
|
-
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
4
|
+
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
|
|
6
5
|
*/
|
|
7
|
-
import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
|
|
8
6
|
import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
|
|
9
7
|
import { InlineEditingMixin } from './vaadin-grid-pro-inline-editing-mixin.js';
|
|
10
8
|
|
|
@@ -52,19 +50,6 @@ class GridPro extends InlineEditingMixin(Grid) {
|
|
|
52
50
|
static get cvdlName() {
|
|
53
51
|
return 'vaadin-grid-pro';
|
|
54
52
|
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @protected
|
|
58
|
-
*/
|
|
59
|
-
static _finalizeClass() {
|
|
60
|
-
super._finalizeClass();
|
|
61
|
-
|
|
62
|
-
const devModeCallback = window.Vaadin.developmentModeCallback;
|
|
63
|
-
const licenseChecker = devModeCallback && devModeCallback['vaadin-license-checker'];
|
|
64
|
-
if (typeof licenseChecker === 'function') {
|
|
65
|
-
licenseChecker(GridPro);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
53
|
}
|
|
69
54
|
|
|
70
55
|
customElements.define(GridPro.is, GridPro);
|