@vaadin/grid-pro 23.2.0-alpha2 → 23.2.0-alpha5
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 +22 -17
- package/src/lit/column-renderer-directives.d.ts +4 -4
- package/src/vaadin-grid-pro-edit-column.d.ts +2 -2
- package/src/vaadin-grid-pro-inline-editing-mixin.d.ts +2 -2
- package/src/vaadin-grid-pro-inline-editing-mixin.js +3 -1
- package/src/vaadin-grid-pro.d.ts +6 -5
- package/src/vaadin-grid-pro.js +0 -14
- package/web-types.json +774 -0
- package/web-types.lit.json +412 -0
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-alpha5",
|
|
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.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-
|
|
50
|
-
"@vaadin/vaadin-
|
|
51
|
-
"@vaadin/vaadin-
|
|
52
|
-
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha2"
|
|
43
|
+
"@vaadin/checkbox": "23.2.0-alpha5",
|
|
44
|
+
"@vaadin/component-base": "23.2.0-alpha5",
|
|
45
|
+
"@vaadin/grid": "23.2.0-alpha5",
|
|
46
|
+
"@vaadin/item": "23.2.0-alpha5",
|
|
47
|
+
"@vaadin/list-box": "23.2.0-alpha5",
|
|
48
|
+
"@vaadin/lit-renderer": "23.2.0-alpha5",
|
|
49
|
+
"@vaadin/select": "23.2.0-alpha5",
|
|
50
|
+
"@vaadin/text-field": "23.2.0-alpha5",
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha5",
|
|
52
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha5",
|
|
53
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha5"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@esm-bundle/chai": "^4.3.4",
|
|
56
|
-
"@vaadin/polymer-legacy-adapter": "23.2.0-
|
|
57
|
+
"@vaadin/polymer-legacy-adapter": "23.2.0-alpha5",
|
|
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": "c6247fd741d61096d75a71feda4a1faf88b6f0ce"
|
|
62
67
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* This program is available under Commercial Vaadin Developer License 4.0 (CVDLv4).
|
|
5
5
|
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
6
6
|
*/
|
|
7
|
-
import { TemplateResult } from 'lit';
|
|
8
|
-
import { DirectiveResult } from 'lit/directive';
|
|
9
|
-
import { GridItemModel } from '@vaadin/grid';
|
|
7
|
+
import type { TemplateResult } from 'lit';
|
|
8
|
+
import type { DirectiveResult } from 'lit/directive';
|
|
9
|
+
import type { GridItemModel } from '@vaadin/grid';
|
|
10
10
|
import { LitRendererDirective } from '@vaadin/lit-renderer';
|
|
11
|
-
import { GridProEditColumn } from '../vaadin-grid-pro-edit-column.js';
|
|
11
|
+
import type { GridProEditColumn } from '../vaadin-grid-pro-edit-column.js';
|
|
12
12
|
|
|
13
13
|
export type GridProColumnEditModeLitRenderer<TItem> = (
|
|
14
14
|
item: TItem,
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This program is available under Commercial Vaadin Developer License 4.0 (CVDLv4).
|
|
5
5
|
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
6
6
|
*/
|
|
7
|
-
import { GridBodyRenderer, GridDefaultItem, GridItemModel } from '@vaadin/grid/src/vaadin-grid.js';
|
|
7
|
+
import type { GridBodyRenderer, GridDefaultItem, GridItemModel } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
8
|
import { GridColumn } from '@vaadin/grid/src/vaadin-grid-column.js';
|
|
9
9
|
|
|
10
|
-
export type GridProEditorType = '
|
|
10
|
+
export type GridProEditorType = 'checkbox' | 'custom' | 'select' | 'text';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* `<vaadin-grid-pro-edit-column>` is a helper element for the `<vaadin-grid-pro>`
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* This program is available under Commercial Vaadin Developer License 4.0 (CVDLv4).
|
|
5
5
|
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
6
6
|
*/
|
|
7
|
-
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
8
8
|
|
|
9
9
|
export declare function InlineEditingMixin<T extends Constructor<HTMLElement>>(
|
|
10
10
|
base: T,
|
|
11
|
-
):
|
|
11
|
+
): Constructor<InlineEditingMixinClass> & T;
|
|
12
12
|
|
|
13
13
|
export declare class InlineEditingMixinClass {
|
|
14
14
|
/**
|
|
@@ -400,7 +400,9 @@ export const InlineEditingMixin = (superClass) =>
|
|
|
400
400
|
/** @private */
|
|
401
401
|
_setCancelCellSwitch() {
|
|
402
402
|
this.__cancelCellSwitch = true;
|
|
403
|
-
window.requestAnimationFrame(() =>
|
|
403
|
+
window.requestAnimationFrame(() => {
|
|
404
|
+
this.__cancelCellSwitch = false;
|
|
405
|
+
});
|
|
404
406
|
}
|
|
405
407
|
|
|
406
408
|
/**
|
package/src/vaadin-grid-pro.d.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* This program is available under Commercial Vaadin Developer License 4.0 (CVDLv4).
|
|
5
5
|
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import type { GridCustomEventMap, GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
|
|
8
|
+
import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
|
|
9
|
+
import type { InlineEditingMixinClass } from './vaadin-grid-pro-inline-editing-mixin.js';
|
|
9
10
|
export { GridProEditorType } from './vaadin-grid-pro-edit-column.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -24,7 +25,7 @@ export type GridProItemPropertyChangedEvent<TItem> = CustomEvent<{
|
|
|
24
25
|
index: number;
|
|
25
26
|
item: TItem;
|
|
26
27
|
path: string;
|
|
27
|
-
value:
|
|
28
|
+
value: boolean | string;
|
|
28
29
|
}>;
|
|
29
30
|
|
|
30
31
|
export interface GridProCustomEventMap<TItem> {
|
|
@@ -74,13 +75,13 @@ declare class GridPro<TItem = GridDefaultItem> extends Grid<TItem> {
|
|
|
74
75
|
addEventListener<K extends keyof GridProEventMap<TItem>>(
|
|
75
76
|
type: K,
|
|
76
77
|
listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
|
|
77
|
-
options?:
|
|
78
|
+
options?: AddEventListenerOptions | boolean,
|
|
78
79
|
): void;
|
|
79
80
|
|
|
80
81
|
removeEventListener<K extends keyof GridProEventMap<TItem>>(
|
|
81
82
|
type: K,
|
|
82
83
|
listener: (this: GridPro<TItem>, ev: GridProEventMap<TItem>[K]) => void,
|
|
83
|
-
options?:
|
|
84
|
+
options?: EventListenerOptions | boolean,
|
|
84
85
|
): void;
|
|
85
86
|
}
|
|
86
87
|
|
package/src/vaadin-grid-pro.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Commercial Vaadin Developer License 4.0 (CVDLv4).
|
|
5
5
|
* See <a href="https://vaadin.com/license/cvdl-4.0">the website</a> for the complete license.
|
|
6
6
|
*/
|
|
7
|
-
import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
|
|
8
7
|
import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
|
|
9
8
|
import { InlineEditingMixin } from './vaadin-grid-pro-inline-editing-mixin.js';
|
|
10
9
|
|
|
@@ -52,19 +51,6 @@ class GridPro extends InlineEditingMixin(Grid) {
|
|
|
52
51
|
static get cvdlName() {
|
|
53
52
|
return 'vaadin-grid-pro';
|
|
54
53
|
}
|
|
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
54
|
}
|
|
69
55
|
|
|
70
56
|
customElements.define(GridPro.is, GridPro);
|