@vaadin/grid-pro 23.2.0-dev.48e5e3967 → 23.2.0-rc1
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 +1 -1
- package/package.json +22 -16
- 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 -2
- package/web-types.json +774 -0
- package/web-types.lit.json +412 -0
package/README.md
CHANGED
|
@@ -76,4 +76,4 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
|
|
|
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.0-
|
|
3
|
+
"version": "23.2.0-rc1",
|
|
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,24 +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.0-
|
|
42
|
-
"@vaadin/component-base": "23.2.0-
|
|
43
|
-
"@vaadin/grid": "23.2.0-
|
|
44
|
-
"@vaadin/item": "23.2.0-
|
|
45
|
-
"@vaadin/list-box": "23.2.0-
|
|
46
|
-
"@vaadin/lit-renderer": "23.2.0-
|
|
47
|
-
"@vaadin/select": "23.2.0-
|
|
48
|
-
"@vaadin/text-field": "23.2.0-
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "23.2.0-
|
|
50
|
-
"@vaadin/vaadin-material-styles": "23.2.0-
|
|
51
|
-
"@vaadin/vaadin-themable-mixin": "23.2.0-
|
|
43
|
+
"@vaadin/checkbox": "23.2.0-rc1",
|
|
44
|
+
"@vaadin/component-base": "23.2.0-rc1",
|
|
45
|
+
"@vaadin/grid": "23.2.0-rc1",
|
|
46
|
+
"@vaadin/item": "23.2.0-rc1",
|
|
47
|
+
"@vaadin/list-box": "23.2.0-rc1",
|
|
48
|
+
"@vaadin/lit-renderer": "23.2.0-rc1",
|
|
49
|
+
"@vaadin/select": "23.2.0-rc1",
|
|
50
|
+
"@vaadin/text-field": "23.2.0-rc1",
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-rc1",
|
|
52
|
+
"@vaadin/vaadin-material-styles": "23.2.0-rc1",
|
|
53
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-rc1"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
54
56
|
"@esm-bundle/chai": "^4.3.4",
|
|
55
|
-
"@vaadin/polymer-legacy-adapter": "23.2.0-
|
|
57
|
+
"@vaadin/polymer-legacy-adapter": "23.2.0-rc1",
|
|
56
58
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
57
59
|
"lit": "^2.0.0",
|
|
58
60
|
"sinon": "^13.0.2"
|
|
59
61
|
},
|
|
60
|
-
"
|
|
62
|
+
"web-types": [
|
|
63
|
+
"web-types.json",
|
|
64
|
+
"web-types.lit.json"
|
|
65
|
+
],
|
|
66
|
+
"gitHead": "e78a1f2fe6f42d78cefa3f48085b09a3033c9588"
|
|
61
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,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 { Grid } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
7
|
import { InlineEditingMixin } from './vaadin-grid-pro-inline-editing-mixin.js';
|