@vaadin/grid 24.3.4 → 24.4.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/package.json +11 -11
- package/src/all-imports.js +1 -1
- package/src/lit/column-renderer-directives.d.ts +1 -1
- package/src/lit/column-renderer-directives.js +1 -1
- package/src/lit/renderer-directives.d.ts +1 -1
- package/src/lit/renderer-directives.js +1 -1
- package/src/lit-all-imports.js +1 -1
- package/src/vaadin-grid-a11y-mixin.js +1 -1
- package/src/vaadin-grid-active-item-mixin.d.ts +1 -1
- package/src/vaadin-grid-active-item-mixin.js +1 -1
- package/src/vaadin-grid-array-data-provider-mixin.d.ts +1 -1
- package/src/vaadin-grid-array-data-provider-mixin.js +14 -3
- package/src/vaadin-grid-column-group-mixin.d.ts +1 -1
- package/src/vaadin-grid-column-group-mixin.js +1 -1
- package/src/vaadin-grid-column-group.d.ts +1 -1
- package/src/vaadin-grid-column-group.js +1 -1
- package/src/vaadin-grid-column-mixin.d.ts +1 -1
- package/src/vaadin-grid-column-mixin.js +1 -1
- package/src/vaadin-grid-column-reordering-mixin.d.ts +1 -1
- package/src/vaadin-grid-column-reordering-mixin.js +1 -1
- package/src/vaadin-grid-column-resizing-mixin.js +1 -1
- package/src/vaadin-grid-column.d.ts +1 -1
- package/src/vaadin-grid-column.js +1 -1
- package/src/vaadin-grid-data-provider-mixin.d.ts +1 -1
- package/src/vaadin-grid-data-provider-mixin.js +1 -1
- package/src/vaadin-grid-drag-and-drop-mixin.d.ts +1 -1
- package/src/vaadin-grid-drag-and-drop-mixin.js +1 -1
- package/src/vaadin-grid-dynamic-columns-mixin.js +1 -1
- package/src/vaadin-grid-event-context-mixin.d.ts +1 -1
- package/src/vaadin-grid-event-context-mixin.js +1 -1
- package/src/vaadin-grid-filter-column-mixin.d.ts +1 -1
- package/src/vaadin-grid-filter-column-mixin.js +1 -1
- package/src/vaadin-grid-filter-column.d.ts +1 -1
- package/src/vaadin-grid-filter-column.js +1 -1
- package/src/vaadin-grid-filter-element-mixin.d.ts +1 -1
- package/src/vaadin-grid-filter-element-mixin.js +1 -1
- package/src/vaadin-grid-filter-mixin.js +1 -1
- package/src/vaadin-grid-filter.d.ts +1 -1
- package/src/vaadin-grid-filter.js +1 -1
- package/src/vaadin-grid-helpers.js +1 -1
- package/src/vaadin-grid-keyboard-navigation-mixin.js +17 -7
- package/src/vaadin-grid-mixin.d.ts +1 -1
- package/src/vaadin-grid-mixin.js +21 -4
- package/src/vaadin-grid-row-details-mixin.d.ts +1 -1
- package/src/vaadin-grid-row-details-mixin.js +1 -1
- package/src/vaadin-grid-scroll-mixin.d.ts +1 -1
- package/src/vaadin-grid-scroll-mixin.js +1 -1
- package/src/vaadin-grid-selection-column-base-mixin.d.ts +1 -1
- package/src/vaadin-grid-selection-column-base-mixin.js +1 -1
- package/src/vaadin-grid-selection-column-mixin.d.ts +1 -1
- package/src/vaadin-grid-selection-column-mixin.js +1 -1
- package/src/vaadin-grid-selection-column.d.ts +1 -1
- package/src/vaadin-grid-selection-column.js +1 -1
- package/src/vaadin-grid-selection-mixin.d.ts +1 -1
- package/src/vaadin-grid-selection-mixin.js +1 -1
- package/src/vaadin-grid-sort-column-mixin.d.ts +1 -1
- package/src/vaadin-grid-sort-column-mixin.js +1 -1
- package/src/vaadin-grid-sort-column.d.ts +1 -1
- package/src/vaadin-grid-sort-column.js +1 -1
- package/src/vaadin-grid-sort-mixin.d.ts +1 -1
- package/src/vaadin-grid-sort-mixin.js +25 -39
- package/src/vaadin-grid-sorter-mixin.d.ts +1 -1
- package/src/vaadin-grid-sorter-mixin.js +9 -19
- package/src/vaadin-grid-sorter.d.ts +1 -1
- package/src/vaadin-grid-sorter.js +1 -1
- package/src/vaadin-grid-styles.js +7 -1
- package/src/vaadin-grid-styling-mixin.d.ts +1 -1
- package/src/vaadin-grid-styling-mixin.js +1 -1
- package/src/vaadin-grid-tree-column-mixin.d.ts +1 -1
- package/src/vaadin-grid-tree-column-mixin.js +1 -1
- package/src/vaadin-grid-tree-column.d.ts +1 -1
- package/src/vaadin-grid-tree-column.js +1 -1
- package/src/vaadin-grid-tree-toggle-mixin.d.ts +1 -1
- package/src/vaadin-grid-tree-toggle-mixin.js +1 -1
- package/src/vaadin-grid-tree-toggle.d.ts +1 -1
- package/src/vaadin-grid-tree-toggle.js +1 -1
- package/src/vaadin-grid.d.ts +1 -1
- package/src/vaadin-grid.js +1 -1
- package/src/vaadin-lit-grid-column-group.js +2 -2
- package/src/vaadin-lit-grid-column.js +2 -2
- package/src/vaadin-lit-grid-filter-column.js +2 -2
- package/src/vaadin-lit-grid-filter.js +2 -2
- package/src/vaadin-lit-grid-selection-column.js +2 -2
- package/src/vaadin-lit-grid-sort-column.js +2 -2
- package/src/vaadin-lit-grid-sorter.js +2 -2
- package/src/vaadin-lit-grid-tree-column.js +2 -2
- package/src/vaadin-lit-grid-tree-toggle.js +2 -2
- package/src/vaadin-lit-grid.js +2 -2
- package/theme/lumo/all-imports.d.ts +11 -0
- package/theme/lumo/lit-all-imports.d.ts +11 -0
- package/theme/lumo/vaadin-grid-column-group.d.ts +1 -0
- package/theme/lumo/vaadin-grid-column.d.ts +1 -0
- package/theme/lumo/vaadin-grid-filter-column.d.ts +2 -0
- package/theme/lumo/vaadin-grid-filter.d.ts +2 -0
- package/theme/lumo/vaadin-grid-selection-column.d.ts +2 -0
- package/theme/lumo/vaadin-grid-sort-column.d.ts +2 -0
- package/theme/lumo/vaadin-grid-sorter-styles.d.ts +3 -0
- package/theme/lumo/vaadin-grid-sorter.d.ts +2 -0
- package/theme/lumo/vaadin-grid-styles.d.ts +6 -0
- package/theme/lumo/vaadin-grid-styles.js +0 -1
- package/theme/lumo/vaadin-grid-tree-column.d.ts +2 -0
- package/theme/lumo/vaadin-grid-tree-toggle-styles.d.ts +3 -0
- package/theme/lumo/vaadin-grid-tree-toggle.d.ts +2 -0
- package/theme/lumo/vaadin-grid.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-column-group.d.ts +1 -0
- package/theme/lumo/vaadin-lit-grid-column.d.ts +1 -0
- package/theme/lumo/vaadin-lit-grid-filter-column.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-filter.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-filter.js +1 -2
- package/theme/lumo/vaadin-lit-grid-selection-column.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-selection-column.js +1 -1
- package/theme/lumo/vaadin-lit-grid-sort-column.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-sorter.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-tree-column.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid-tree-toggle.d.ts +2 -0
- package/theme/lumo/vaadin-lit-grid.d.ts +2 -0
- package/theme/material/all-imports.d.ts +11 -0
- package/theme/material/lit-all-imports.d.ts +11 -0
- package/theme/material/vaadin-grid-column-group.d.ts +1 -0
- package/theme/material/vaadin-grid-column.d.ts +1 -0
- package/theme/material/vaadin-grid-filter-column.d.ts +2 -0
- package/theme/material/vaadin-grid-filter.d.ts +2 -0
- package/theme/material/vaadin-grid-selection-column.d.ts +2 -0
- package/theme/material/vaadin-grid-sort-column.d.ts +2 -0
- package/theme/material/vaadin-grid-sorter-styles.d.ts +2 -0
- package/theme/material/vaadin-grid-sorter.d.ts +2 -0
- package/theme/material/vaadin-grid-styles.d.ts +2 -0
- package/theme/material/vaadin-grid-tree-column.d.ts +2 -0
- package/theme/material/vaadin-grid-tree-toggle-styles.d.ts +3 -0
- package/theme/material/vaadin-grid-tree-toggle.d.ts +2 -0
- package/theme/material/vaadin-grid.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-column-group.d.ts +1 -0
- package/theme/material/vaadin-lit-grid-column.d.ts +1 -0
- package/theme/material/vaadin-lit-grid-filter-column.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-filter.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-filter.js +1 -2
- package/theme/material/vaadin-lit-grid-selection-column.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-selection-column.js +1 -1
- package/theme/material/vaadin-lit-grid-sort-column.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-sorter.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-tree-column.d.ts +2 -0
- package/theme/material/vaadin-lit-grid-tree-toggle.d.ts +2 -0
- package/theme/material/vaadin-lit-grid.d.ts +2 -0
- package/vaadin-grid.d.ts +0 -1
- package/vaadin-grid.js +0 -1
- package/vaadin-lit-grid.d.ts +0 -1
- package/vaadin-lit-grid.js +0 -1
- package/web-types.json +4 -4
- package/web-types.lit.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { GridDefaultItem } from './vaadin-grid.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { GridDefaultItem } from './vaadin-grid.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -104,61 +104,45 @@ export const SortMixin = (superClass) =>
|
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
this._sorters = this._sorters.filter((sorter) => sortersToRemove.
|
|
108
|
-
if (this.multiSort) {
|
|
109
|
-
this.__updateSortOrders();
|
|
110
|
-
}
|
|
107
|
+
this._sorters = this._sorters.filter((sorter) => !sortersToRemove.includes(sorter));
|
|
111
108
|
this.__applySorters();
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
/** @private */
|
|
115
112
|
__updateSortOrders() {
|
|
116
|
-
this._sorters.forEach((sorter
|
|
117
|
-
sorter._order =
|
|
113
|
+
this._sorters.forEach((sorter) => {
|
|
114
|
+
sorter._order = null;
|
|
118
115
|
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** @private */
|
|
122
|
-
__appendSorter(sorter) {
|
|
123
|
-
if (!sorter.direction) {
|
|
124
|
-
this._removeArrayItem(this._sorters, sorter);
|
|
125
|
-
} else if (!this._sorters.includes(sorter)) {
|
|
126
|
-
this._sorters.push(sorter);
|
|
127
|
-
}
|
|
128
116
|
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
this._removeArrayItem(this._sorters, sorter);
|
|
135
|
-
if (sorter.direction) {
|
|
136
|
-
this._sorters.unshift(sorter);
|
|
117
|
+
const activeSorters = this._getActiveSorters();
|
|
118
|
+
if (activeSorters.length > 1) {
|
|
119
|
+
activeSorters.forEach((sorter, index) => {
|
|
120
|
+
sorter._order = index;
|
|
121
|
+
});
|
|
137
122
|
}
|
|
138
|
-
this.__updateSortOrders();
|
|
139
123
|
}
|
|
140
124
|
|
|
141
125
|
/** @private */
|
|
142
126
|
__updateSorter(sorter, shiftClick, fromSorterClick) {
|
|
143
|
-
if (!sorter.direction && this._sorters.
|
|
127
|
+
if (!sorter.direction && !this._sorters.includes(sorter)) {
|
|
144
128
|
return;
|
|
145
129
|
}
|
|
146
130
|
|
|
147
131
|
sorter._order = null;
|
|
148
132
|
|
|
133
|
+
const restSorters = this._sorters.filter((s) => s !== sorter);
|
|
149
134
|
if (
|
|
150
135
|
(this.multiSort && (!this.multiSortOnShiftClick || !fromSorterClick)) ||
|
|
151
136
|
(this.multiSortOnShiftClick && shiftClick)
|
|
152
137
|
) {
|
|
153
138
|
if (this.multiSortPriority === 'append') {
|
|
154
|
-
this.
|
|
139
|
+
this._sorters = [...restSorters, sorter];
|
|
155
140
|
} else {
|
|
156
|
-
this.
|
|
141
|
+
this._sorters = [sorter, ...restSorters];
|
|
157
142
|
}
|
|
158
143
|
} else if (sorter.direction || this.multiSortOnShiftClick) {
|
|
159
|
-
const otherSorters = this._sorters.filter((s) => s !== sorter);
|
|
160
144
|
this._sorters = sorter.direction ? [sorter] : [];
|
|
161
|
-
|
|
145
|
+
restSorters.forEach((sorter) => {
|
|
162
146
|
sorter._order = null;
|
|
163
147
|
sorter.direction = null;
|
|
164
148
|
});
|
|
@@ -167,6 +151,8 @@ export const SortMixin = (superClass) =>
|
|
|
167
151
|
|
|
168
152
|
/** @private */
|
|
169
153
|
__applySorters() {
|
|
154
|
+
this.__updateSortOrders();
|
|
155
|
+
|
|
170
156
|
if (
|
|
171
157
|
this.dataProvider &&
|
|
172
158
|
// No need to clear cache if sorters didn't change and grid is attached
|
|
@@ -181,24 +167,24 @@ export const SortMixin = (superClass) =>
|
|
|
181
167
|
this._previousSorters = this._mapSorters();
|
|
182
168
|
}
|
|
183
169
|
|
|
170
|
+
/**
|
|
171
|
+
* @type {GridSorterDefinition[]}
|
|
172
|
+
* @protected
|
|
173
|
+
*/
|
|
174
|
+
_getActiveSorters() {
|
|
175
|
+
return this._sorters.filter((sorter) => sorter.direction && sorter.isConnected);
|
|
176
|
+
}
|
|
177
|
+
|
|
184
178
|
/**
|
|
185
179
|
* @return {!Array<!GridSorterDefinition>}
|
|
186
180
|
* @protected
|
|
187
181
|
*/
|
|
188
182
|
_mapSorters() {
|
|
189
|
-
return this.
|
|
183
|
+
return this._getActiveSorters().map((sorter) => {
|
|
190
184
|
return {
|
|
191
185
|
path: sorter.path,
|
|
192
186
|
direction: sorter.direction,
|
|
193
187
|
};
|
|
194
188
|
});
|
|
195
189
|
}
|
|
196
|
-
|
|
197
|
-
/** @private */
|
|
198
|
-
_removeArrayItem(array, item) {
|
|
199
|
-
const index = array.indexOf(item);
|
|
200
|
-
if (index > -1) {
|
|
201
|
-
array.splice(index, 1);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
190
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -101,12 +101,6 @@ export const GridSorterMixin = (superClass) =>
|
|
|
101
101
|
value: null,
|
|
102
102
|
sync: true,
|
|
103
103
|
},
|
|
104
|
-
|
|
105
|
-
/** @private */
|
|
106
|
-
_isConnected: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
observer: '__isConnectedChanged',
|
|
109
|
-
},
|
|
110
104
|
};
|
|
111
105
|
}
|
|
112
106
|
|
|
@@ -123,16 +117,21 @@ export const GridSorterMixin = (superClass) =>
|
|
|
123
117
|
/** @protected */
|
|
124
118
|
connectedCallback() {
|
|
125
119
|
super.connectedCallback();
|
|
126
|
-
this.
|
|
120
|
+
if (this._grid) {
|
|
121
|
+
this._grid.__applySorters();
|
|
122
|
+
} else {
|
|
123
|
+
this.__dispatchSorterChangedEvenIfPossible();
|
|
124
|
+
}
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
/** @protected */
|
|
130
128
|
disconnectedCallback() {
|
|
131
129
|
super.disconnectedCallback();
|
|
132
|
-
this._isConnected = false;
|
|
133
130
|
|
|
134
131
|
if (!this.parentNode && this._grid) {
|
|
135
132
|
this._grid.__removeSorters([this]);
|
|
133
|
+
} else if (this._grid) {
|
|
134
|
+
this._grid.__applySorters();
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
|
|
@@ -141,18 +140,9 @@ export const GridSorterMixin = (superClass) =>
|
|
|
141
140
|
this.__dispatchSorterChangedEvenIfPossible();
|
|
142
141
|
}
|
|
143
142
|
|
|
144
|
-
/** @private */
|
|
145
|
-
__isConnectedChanged(newValue, oldValue) {
|
|
146
|
-
if (oldValue === false) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
this.__dispatchSorterChangedEvenIfPossible();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
143
|
/** @private */
|
|
154
144
|
__dispatchSorterChangedEvenIfPossible() {
|
|
155
|
-
if (this.path === undefined || this.direction === undefined || !this.
|
|
145
|
+
if (this.path === undefined || this.direction === undefined || !this.isConnected) {
|
|
156
146
|
return;
|
|
157
147
|
}
|
|
158
148
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -152,6 +152,12 @@ export const gridStyles = css`
|
|
|
152
152
|
inset: 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
/* Switch the focusButtonMode wrapping element to "position: static" temporarily
|
|
156
|
+
when measuring real width of the cells in the auto-width columns. */
|
|
157
|
+
[measuring-auto-width] [part~='cell'] > [tabindex] {
|
|
158
|
+
position: static;
|
|
159
|
+
}
|
|
160
|
+
|
|
155
161
|
[part~='details-cell'] {
|
|
156
162
|
position: absolute;
|
|
157
163
|
bottom: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { iterateChildren, iterateRowCells, updatePart } from './vaadin-grid-helpers.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { get } from '@vaadin/component-base/src/path-utils.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { GridDefaultItem } from './vaadin-grid.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
package/src/vaadin-grid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
package/src/vaadin-grid.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { LitElement } from 'lit';
|
|
@@ -13,7 +13,7 @@ import { GridColumnGroupMixin } from './vaadin-grid-column-group-mixin.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { LitElement } from 'lit';
|
|
@@ -13,7 +13,7 @@ import { GridColumnMixin } from './vaadin-grid-column-mixin.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-lit-grid-filter.js';
|
|
@@ -13,7 +13,7 @@ import { GridColumn } from './vaadin-lit-grid-column.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/text-field/src/vaadin-lit-text-field.js';
|
|
@@ -15,7 +15,7 @@ import { GridFilterElementMixin } from './vaadin-grid-filter-element-mixin.js';
|
|
|
15
15
|
*
|
|
16
16
|
* ## Disclaimer
|
|
17
17
|
*
|
|
18
|
-
* This component is an experiment not
|
|
18
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
19
19
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
20
20
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
21
21
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/checkbox/src/vaadin-lit-checkbox.js';
|
|
@@ -13,7 +13,7 @@ import { GridColumn } from './vaadin-lit-grid-column.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-lit-grid-sorter.js';
|
|
@@ -13,7 +13,7 @@ import { GridColumn } from './vaadin-lit-grid-column.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, LitElement } from 'lit';
|
|
@@ -15,7 +15,7 @@ import { GridSorterMixin } from './vaadin-grid-sorter-mixin.js';
|
|
|
15
15
|
*
|
|
16
16
|
* ## Disclaimer
|
|
17
17
|
*
|
|
18
|
-
* This component is an experiment not
|
|
18
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
19
19
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
20
20
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
21
21
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-lit-grid-tree-toggle.js';
|
|
@@ -13,7 +13,7 @@ import { GridColumn } from './vaadin-lit-grid-column.js';
|
|
|
13
13
|
*
|
|
14
14
|
* ## Disclaimer
|
|
15
15
|
*
|
|
16
|
-
* This component is an experiment not
|
|
16
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
17
17
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
18
18
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, LitElement } from 'lit';
|
|
@@ -15,7 +15,7 @@ import { GridTreeToggleMixin } from './vaadin-grid-tree-toggle-mixin.js';
|
|
|
15
15
|
*
|
|
16
16
|
* ## Disclaimer
|
|
17
17
|
*
|
|
18
|
-
* This component is an experiment not
|
|
18
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
19
19
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
20
20
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
21
21
|
*/
|
package/src/vaadin-lit-grid.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-lit-grid-column.js';
|
|
@@ -18,7 +18,7 @@ import { gridStyles } from './vaadin-grid-styles.js';
|
|
|
18
18
|
*
|
|
19
19
|
* ## Disclaimer
|
|
20
20
|
*
|
|
21
|
-
* This component is an experiment not
|
|
21
|
+
* This component is an experiment and not yet a part of Vaadin platform.
|
|
22
22
|
* There is no ETA regarding specific Vaadin version where it'll land.
|
|
23
23
|
* Feel free to try this code in your apps as per Apache 2.0 license.
|
|
24
24
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './vaadin-grid-column-group.js';
|
|
2
|
+
import './vaadin-grid-column.js';
|
|
3
|
+
import './vaadin-grid-filter.js';
|
|
4
|
+
import './vaadin-grid-filter-column.js';
|
|
5
|
+
import './vaadin-grid-selection-column.js';
|
|
6
|
+
import './vaadin-grid-sorter.js';
|
|
7
|
+
import './vaadin-grid-sort-column.js';
|
|
8
|
+
import './vaadin-grid-tree-toggle.js';
|
|
9
|
+
import './vaadin-grid-tree-column.js';
|
|
10
|
+
import './vaadin-grid.js';
|
|
11
|
+
import '../../src/all-imports.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './vaadin-lit-grid-column-group.js';
|
|
2
|
+
import './vaadin-lit-grid-column.js';
|
|
3
|
+
import './vaadin-lit-grid-filter.js';
|
|
4
|
+
import './vaadin-lit-grid-filter-column.js';
|
|
5
|
+
import './vaadin-lit-grid-selection-column.js';
|
|
6
|
+
import './vaadin-lit-grid-sorter.js';
|
|
7
|
+
import './vaadin-lit-grid-sort-column.js';
|
|
8
|
+
import './vaadin-lit-grid-tree-toggle.js';
|
|
9
|
+
import './vaadin-lit-grid-tree-column.js';
|
|
10
|
+
import './vaadin-lit-grid.js';
|
|
11
|
+
import '../../src/lit-all-imports.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../../src/vaadin-grid-column-group.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../../src/vaadin-grid-column.js';
|