@vaadin/vaadin-grid 22.0.0-alpha7 → 22.0.0-beta2

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 CHANGED
@@ -1,72 +1,11 @@
1
- # <vaadin-grid>
1
+ # @vaadin/vaadin-grid
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-grid/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-grid/html-api)
3
+ > ⚠️  Starting from Vaadin 22, this package is deprecated.
4
+ > Please use [`@vaadin/grid`](https://www.npmjs.com/package/@vaadin/grid) instead.
6
5
 
7
- [<vaadin-grid>](https://vaadin.com/components/vaadin-grid) is a free, high quality data grid / data table Web Component, part of the [Vaadin components](https://vaadin.com/components).
6
+ A web component for showing tabular data.
8
7
 
9
- [![npm version](https://badgen.net/npm/v/@vaadin/vaadin-grid)](https://www.npmjs.com/package/@vaadin/vaadin-grid)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-grid)
11
- [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
-
13
- ```html
14
- <vaadin-grid theme="row-dividers" column-reordering-allowed multi-sort>
15
- <vaadin-grid-selection-column auto-select frozen></vaadin-grid-selection-column>
16
- <vaadin-grid-sort-column width="9em" path="firstName"></vaadin-grid-sort-column>
17
- <vaadin-grid-sort-column width="9em" path="lastName"></vaadin-grid-sort-column>
18
- <vaadin-grid-column id="addresscolumn" width="15em" flex-grow="2" header="Address"></vaadin-grid-column>
19
- </vaadin-grid>
20
-
21
- <script>
22
- // Customize the "Address" column's renderer
23
- document.querySelector('#addresscolumn').renderer = (root, grid, model) => {
24
- root.textContent = `${model.item.address.street}, ${model.item.address.city}`;
25
- };
26
-
27
- // Populate the grid with data
28
- const grid = document.querySelector('vaadin-grid');
29
- fetch('https://demo.vaadin.com/demo-data/1.0/people?count=200')
30
- .then((res) => res.json())
31
- .then((json) => (grid.items = json.result));
32
- </script>
33
- ```
34
-
35
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-grid/master/screenshot.png" alt="Screenshot of vaadin-grid, using the default Lumo theme">](https://vaadin.com/components/vaadin-grid)
36
-
37
- ## Installation
38
-
39
- Install `vaadin-grid`:
40
-
41
- ```sh
42
- npm i @vaadin/vaadin-grid --save
43
- ```
44
-
45
- Once installed, import it in your application:
46
-
47
- ```js
48
- import '@vaadin/vaadin-grid/vaadin-grid.js';
49
- ```
50
-
51
- ## Getting started
52
-
53
- Vaadin components use the Lumo theme by default.
54
-
55
- To use the Material theme, import the correspondent file from the `theme/material` folder.
56
-
57
- ## Entry points
58
-
59
- - The component with the Lumo theme:
60
-
61
- `theme/lumo/vaadin-grid.js`
62
-
63
- - The component with the Material theme:
64
-
65
- `theme/material/vaadin-grid.js`
66
-
67
- - Alias for `theme/lumo/vaadin-grid.js`:
68
-
69
- `vaadin-grid.js`
8
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/grid)
70
9
 
71
10
  ## Contributing
72
11
 
@@ -76,4 +15,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
76
15
 
77
16
  Apache License 2.0
78
17
 
79
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
18
+ Vaadin collects usage statistics at development time to improve this product..
19
+ For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-grid",
3
- "version": "22.0.0-alpha7",
3
+ "version": "22.0.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "data-table"
39
39
  ],
40
40
  "dependencies": {
41
- "@vaadin/grid": "22.0.0-alpha7"
41
+ "@vaadin/grid": "22.0.0-beta2"
42
42
  },
43
- "gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52"
43
+ "gitHead": "f13833683e6667f6ca6678452db14aa6b7eac4a4"
44
44
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridColumnGroup } from '@vaadin/grid/src/vaadin-grid-column-group.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridColumn } from '@vaadin/grid/src/vaadin-grid-column.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridFilterColumn } from '@vaadin/grid/src/vaadin-grid-filter-column.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridSelectionColumn } from '@vaadin/grid/src/vaadin-grid-selection-column.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridSortColumn } from '@vaadin/grid/src/vaadin-grid-sort-column.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { GridTreeColumn } from '@vaadin/grid/src/vaadin-grid-tree-column.js';
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { GridDefaultItem } from '@vaadin/grid';
6
+ import { GridDefaultItem } from '@vaadin/grid/src/vaadin-grid.js';
7
7
  import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
8
8
 
9
9
  /**
package/vaadin-grid.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './src/vaadin-grid.js';
2
2
  export * from './src/vaadin-grid-column.js';
3
- export * from './src/interfaces';
@@ -1 +0,0 @@
1
- export * from '@vaadin/grid/src/interfaces';