@vaadin/grid 23.1.2 → 23.1.3
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 +10 -10
- package/src/lit/column-renderer-directives.d.ts +1 -1
- package/src/vaadin-grid-active-item-mixin.d.ts +1 -1
- package/src/vaadin-grid-array-data-provider-mixin.d.ts +1 -1
- package/src/vaadin-grid-column-reordering-mixin.d.ts +1 -1
- package/src/vaadin-grid-column.d.ts +2 -2
- package/src/vaadin-grid-data-provider-mixin.d.ts +1 -1
- package/src/vaadin-grid-drag-and-drop-mixin.d.ts +3 -3
- package/src/vaadin-grid-event-context-mixin.d.ts +2 -2
- package/src/vaadin-grid-filter.d.ts +2 -2
- package/src/vaadin-grid-row-details-mixin.d.ts +1 -1
- package/src/vaadin-grid-scroll-mixin.d.ts +1 -1
- package/src/vaadin-grid-selection-column.d.ts +2 -2
- package/src/vaadin-grid-selection-mixin.d.ts +1 -1
- package/src/vaadin-grid-sort-column.d.ts +2 -2
- package/src/vaadin-grid-sort-mixin.d.ts +1 -1
- package/src/vaadin-grid-sorter.d.ts +2 -2
- package/src/vaadin-grid-styling-mixin.d.ts +1 -1
- package/src/vaadin-grid-tree-toggle.d.ts +2 -2
- package/src/vaadin-grid.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/grid",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
45
45
|
"@polymer/polymer": "^3.0.0",
|
|
46
|
-
"@vaadin/checkbox": "^23.1.
|
|
47
|
-
"@vaadin/component-base": "^23.1.
|
|
48
|
-
"@vaadin/lit-renderer": "^23.1.
|
|
49
|
-
"@vaadin/text-field": "^23.1.
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "^23.1.
|
|
51
|
-
"@vaadin/vaadin-material-styles": "^23.1.
|
|
52
|
-
"@vaadin/vaadin-themable-mixin": "^23.1.
|
|
46
|
+
"@vaadin/checkbox": "^23.1.3",
|
|
47
|
+
"@vaadin/component-base": "^23.1.3",
|
|
48
|
+
"@vaadin/lit-renderer": "^23.1.3",
|
|
49
|
+
"@vaadin/text-field": "^23.1.3",
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "^23.1.3",
|
|
51
|
+
"@vaadin/vaadin-material-styles": "^23.1.3",
|
|
52
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@esm-bundle/chai": "^4.3.4",
|
|
56
|
-
"@vaadin/polymer-legacy-adapter": "^23.1.
|
|
56
|
+
"@vaadin/polymer-legacy-adapter": "^23.1.3",
|
|
57
57
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
58
58
|
"lit": "^2.0.0",
|
|
59
59
|
"sinon": "^13.0.2"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "3066c296ad0ef652bc49417005523398199f1bf2"
|
|
62
62
|
}
|
|
@@ -26,7 +26,7 @@ declare abstract class AbstractGridColumnRendererDirective<R extends LitRenderer
|
|
|
26
26
|
/**
|
|
27
27
|
* A property to that the renderer callback will be assigned.
|
|
28
28
|
*/
|
|
29
|
-
abstract rendererProperty: '
|
|
29
|
+
abstract rendererProperty: 'footerRenderer' | 'headerRenderer' | 'renderer';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Adds the renderer callback to the grid column.
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
|
|
8
8
|
export declare function ActiveItemMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
9
9
|
base: T,
|
|
10
|
-
):
|
|
10
|
+
): Constructor<ActiveItemMixinClass<TItem>> & T;
|
|
11
11
|
|
|
12
12
|
export declare class ActiveItemMixinClass<TItem> {
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
|
|
8
8
|
export declare function ArrayDataProviderMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
9
9
|
base: T,
|
|
10
|
-
):
|
|
10
|
+
): Constructor<ArrayDataProviderMixinClass<TItem>> & T;
|
|
11
11
|
|
|
12
12
|
export declare class ArrayDataProviderMixinClass<TItem> {
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
|
|
8
8
|
export declare function ColumnReorderingMixin<T extends Constructor<HTMLElement>>(
|
|
9
9
|
base: T,
|
|
10
|
-
):
|
|
10
|
+
): Constructor<ColumnReorderingMixinClass> & T;
|
|
11
11
|
|
|
12
12
|
export declare class ColumnReorderingMixinClass {
|
|
13
13
|
/**
|
|
@@ -12,13 +12,13 @@ export type GridBodyRenderer<TItem> = (
|
|
|
12
12
|
model: GridItemModel<TItem>,
|
|
13
13
|
) => void;
|
|
14
14
|
|
|
15
|
-
export type GridColumnTextAlign = '
|
|
15
|
+
export type GridColumnTextAlign = 'center' | 'end' | 'start' | null;
|
|
16
16
|
|
|
17
17
|
export type GridHeaderFooterRenderer<TItem> = (root: HTMLElement, column: GridColumn<TItem>) => void;
|
|
18
18
|
|
|
19
19
|
export declare function ColumnBaseMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
20
20
|
base: T,
|
|
21
|
-
):
|
|
21
|
+
): Constructor<ColumnBaseMixinClass<TItem>> & T;
|
|
22
22
|
|
|
23
23
|
export declare class ColumnBaseMixinClass<TItem> {
|
|
24
24
|
/**
|
|
@@ -58,7 +58,7 @@ export declare class ItemCache<TItem> {
|
|
|
58
58
|
|
|
59
59
|
export declare function DataProviderMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
60
60
|
base: T,
|
|
61
|
-
):
|
|
61
|
+
): Constructor<DataProviderMixinClass<TItem>> & T;
|
|
62
62
|
|
|
63
63
|
export declare class DataProviderMixinClass<TItem> {
|
|
64
64
|
/**
|
|
@@ -8,13 +8,13 @@ import { GridItemModel } from './vaadin-grid.js';
|
|
|
8
8
|
|
|
9
9
|
export type GridDragAndDropFilter<TItem> = (model: GridItemModel<TItem>) => boolean;
|
|
10
10
|
|
|
11
|
-
export type GridDropLocation = 'above' | '
|
|
11
|
+
export type GridDropLocation = 'above' | 'below' | 'empty' | 'on-top';
|
|
12
12
|
|
|
13
|
-
export type GridDropMode = 'between' | 'on-
|
|
13
|
+
export type GridDropMode = 'between' | 'on-grid' | 'on-top-or-between' | 'on-top';
|
|
14
14
|
|
|
15
15
|
export declare function DragAndDropMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
16
16
|
base: T,
|
|
17
|
-
):
|
|
17
|
+
): Constructor<DragAndDropMixinClass<TItem>> & T;
|
|
18
18
|
|
|
19
19
|
export declare class DragAndDropMixinClass<TItem> {
|
|
20
20
|
/**
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
import { GridColumn } from './vaadin-grid-column.js';
|
|
8
8
|
|
|
9
9
|
export interface GridEventContext<TItem> {
|
|
10
|
-
section?: 'body' | '
|
|
10
|
+
section?: 'body' | 'details' | 'footer' | 'header';
|
|
11
11
|
item?: TItem;
|
|
12
12
|
column?: GridColumn<TItem>;
|
|
13
13
|
index?: number;
|
|
@@ -19,7 +19,7 @@ export interface GridEventContext<TItem> {
|
|
|
19
19
|
|
|
20
20
|
export declare function EventContextMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
21
21
|
base: T,
|
|
22
|
-
):
|
|
22
|
+
): Constructor<EventContextMixinClass<TItem>> & T;
|
|
23
23
|
|
|
24
24
|
export declare class EventContextMixinClass<TItem> {
|
|
25
25
|
/**
|
|
@@ -54,13 +54,13 @@ declare class GridFilter extends HTMLElement {
|
|
|
54
54
|
addEventListener<K extends keyof GridFilterEventMap>(
|
|
55
55
|
type: K,
|
|
56
56
|
listener: (this: GridFilter, ev: GridFilterEventMap[K]) => void,
|
|
57
|
-
options?:
|
|
57
|
+
options?: AddEventListenerOptions | boolean,
|
|
58
58
|
): void;
|
|
59
59
|
|
|
60
60
|
removeEventListener<K extends keyof GridFilterEventMap>(
|
|
61
61
|
type: K,
|
|
62
62
|
listener: (this: GridFilter, ev: GridFilterEventMap[K]) => void,
|
|
63
|
-
options?:
|
|
63
|
+
options?: EventListenerOptions | boolean,
|
|
64
64
|
): void;
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -14,7 +14,7 @@ export type GridRowDetailsRenderer<TItem> = (
|
|
|
14
14
|
|
|
15
15
|
export declare function RowDetailsMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
16
16
|
base: T,
|
|
17
|
-
):
|
|
17
|
+
): Constructor<RowDetailsMixinClass<TItem>> & T;
|
|
18
18
|
|
|
19
19
|
export declare class RowDetailsMixinClass<TItem> {
|
|
20
20
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
|
-
export declare function ScrollMixin<T extends Constructor<HTMLElement>>(base: T):
|
|
8
|
+
export declare function ScrollMixin<T extends Constructor<HTMLElement>>(base: T): Constructor<ScrollMixinClass> & T;
|
|
9
9
|
|
|
10
10
|
export declare class ScrollMixinClass {
|
|
11
11
|
/**
|
|
@@ -57,13 +57,13 @@ declare class GridSelectionColumn<TItem = GridDefaultItem> extends GridColumn<TI
|
|
|
57
57
|
addEventListener<K extends keyof GridSelectionColumnEventMap>(
|
|
58
58
|
type: K,
|
|
59
59
|
listener: (this: GridSelectionColumn<TItem>, ev: GridSelectionColumnEventMap[K]) => void,
|
|
60
|
-
options?:
|
|
60
|
+
options?: AddEventListenerOptions | boolean,
|
|
61
61
|
): void;
|
|
62
62
|
|
|
63
63
|
removeEventListener<K extends keyof GridSelectionColumnEventMap>(
|
|
64
64
|
type: K,
|
|
65
65
|
listener: (this: GridSelectionColumn<TItem>, ev: GridSelectionColumnEventMap[K]) => void,
|
|
66
|
-
options?:
|
|
66
|
+
options?: EventListenerOptions | boolean,
|
|
67
67
|
): void;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -7,7 +7,7 @@ import { Constructor } from '@open-wc/dedupe-mixin';
|
|
|
7
7
|
|
|
8
8
|
export declare function SelectionMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
9
9
|
base: T,
|
|
10
|
-
):
|
|
10
|
+
): Constructor<SelectionMixinClass<TItem>> & T;
|
|
11
11
|
|
|
12
12
|
export declare class SelectionMixinClass<TItem> {
|
|
13
13
|
/**
|
|
@@ -49,13 +49,13 @@ declare class GridSortColumn<TItem = GridDefaultItem> extends GridColumn<TItem>
|
|
|
49
49
|
addEventListener<K extends keyof GridSortColumnEventMap>(
|
|
50
50
|
type: K,
|
|
51
51
|
listener: (this: GridSortColumn<TItem>, ev: GridSortColumnEventMap[K]) => void,
|
|
52
|
-
options?:
|
|
52
|
+
options?: AddEventListenerOptions | boolean,
|
|
53
53
|
): void;
|
|
54
54
|
|
|
55
55
|
removeEventListener<K extends keyof GridSortColumnEventMap>(
|
|
56
56
|
type: K,
|
|
57
57
|
listener: (this: GridSortColumn<TItem>, ev: GridSortColumnEventMap[K]) => void,
|
|
58
|
-
options?:
|
|
58
|
+
options?: EventListenerOptions | boolean,
|
|
59
59
|
): void;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
|
-
export declare function SortMixin<T extends Constructor<HTMLElement>>(base: T):
|
|
8
|
+
export declare function SortMixin<T extends Constructor<HTMLElement>>(base: T): Constructor<SortMixinClass> & T;
|
|
9
9
|
|
|
10
10
|
export declare class SortMixinClass {
|
|
11
11
|
/**
|
|
@@ -76,13 +76,13 @@ declare class GridSorter extends ThemableMixin(DirMixin(HTMLElement)) {
|
|
|
76
76
|
addEventListener<K extends keyof GridSorterEventMap>(
|
|
77
77
|
type: K,
|
|
78
78
|
listener: (this: GridSorter, ev: GridSorterEventMap[K]) => void,
|
|
79
|
-
options?:
|
|
79
|
+
options?: AddEventListenerOptions | boolean,
|
|
80
80
|
): void;
|
|
81
81
|
|
|
82
82
|
removeEventListener<K extends keyof GridSorterEventMap>(
|
|
83
83
|
type: K,
|
|
84
84
|
listener: (this: GridSorter, ev: GridSorterEventMap[K]) => void,
|
|
85
|
-
options?:
|
|
85
|
+
options?: EventListenerOptions | boolean,
|
|
86
86
|
): void;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -11,7 +11,7 @@ export type GridCellClassNameGenerator<TItem> = (column: GridColumn<TItem>, mode
|
|
|
11
11
|
|
|
12
12
|
export declare function StylingMixin<TItem, T extends Constructor<HTMLElement>>(
|
|
13
13
|
base: T,
|
|
14
|
-
):
|
|
14
|
+
): Constructor<StylingMixinClass<TItem>> & T;
|
|
15
15
|
|
|
16
16
|
export declare class StylingMixinClass<TItem> {
|
|
17
17
|
/**
|
|
@@ -85,13 +85,13 @@ declare class GridTreeToggle extends ThemableMixin(DirMixin(HTMLElement)) {
|
|
|
85
85
|
addEventListener<K extends keyof GridTreeToggleEventMap>(
|
|
86
86
|
type: K,
|
|
87
87
|
listener: (this: GridTreeToggle, ev: GridTreeToggleEventMap[K]) => void,
|
|
88
|
-
options?:
|
|
88
|
+
options?: AddEventListenerOptions | boolean,
|
|
89
89
|
): void;
|
|
90
90
|
|
|
91
91
|
removeEventListener<K extends keyof GridTreeToggleEventMap>(
|
|
92
92
|
type: K,
|
|
93
93
|
listener: (this: GridTreeToggle, ev: GridTreeToggleEventMap[K]) => void,
|
|
94
|
-
options?:
|
|
94
|
+
options?: EventListenerOptions | boolean,
|
|
95
95
|
): void;
|
|
96
96
|
}
|
|
97
97
|
|
package/src/vaadin-grid.d.ts
CHANGED
|
@@ -379,13 +379,13 @@ declare class Grid<TItem = GridDefaultItem> extends HTMLElement {
|
|
|
379
379
|
addEventListener<K extends keyof GridEventMap<TItem>>(
|
|
380
380
|
type: K,
|
|
381
381
|
listener: (this: Grid<TItem>, ev: GridEventMap<TItem>[K]) => void,
|
|
382
|
-
options?:
|
|
382
|
+
options?: AddEventListenerOptions | boolean,
|
|
383
383
|
): void;
|
|
384
384
|
|
|
385
385
|
removeEventListener<K extends keyof GridEventMap<TItem>>(
|
|
386
386
|
type: K,
|
|
387
387
|
listener: (this: Grid<TItem>, ev: GridEventMap<TItem>[K]) => void,
|
|
388
|
-
options?:
|
|
388
|
+
options?: EventListenerOptions | boolean,
|
|
389
389
|
): void;
|
|
390
390
|
}
|
|
391
391
|
|