Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vwc-data-grid): set determined styles #1070

Merged
merged 12 commits into from
Oct 4, 2021
56 changes: 56 additions & 0 deletions __snapshots__/data grid data API.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### `should have items as data provider`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -75,6 +82,13 @@
#### `should update items on reassign the whole array`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -147,6 +161,13 @@
#### `should update items internal change by refreshData`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -217,6 +238,13 @@
```

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -298,6 +326,13 @@
#### `should have dataProvider as data provider`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -370,6 +405,13 @@
#### `should update dataProvider on reassign it as a new function`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -442,6 +484,13 @@
#### `should update dataProvider internal change by refreshData`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -512,6 +561,13 @@
```

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down
14 changes: 14 additions & 0 deletions __snapshots__/data grid expand details.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### `should render expanded item when opened`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -84,6 +91,13 @@
```

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down
35 changes: 35 additions & 0 deletions __snapshots__/data grid renderers customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### `should render header text by default`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -75,6 +82,13 @@
#### `should render footer text by default`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -151,6 +165,13 @@
#### `should render custom header when renderer provided`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -223,6 +244,13 @@
#### `should render custom footer when renderer provided`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -298,6 +326,13 @@
#### `should render custom cell when renderer provided`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down
28 changes: 28 additions & 0 deletions __snapshots__/data grid selection UI.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### `should render selector column with header (multi select)`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -80,6 +87,13 @@
#### `should not render selector header when single mode`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -155,6 +169,13 @@
#### `should not render selector header when dataProvider used (even if multi mode)`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -230,6 +251,13 @@
#### `should hide header when switching from multi to single (items data provider)`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down
28 changes: 28 additions & 0 deletions __snapshots__/data grid sorting behaviour.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### `should sort ascending upon the first click on sorting header`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -76,6 +83,13 @@
```

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -152,6 +166,13 @@
#### `should sort descending upon the second click on sorting header`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down Expand Up @@ -228,6 +249,13 @@
#### `should disable sort upon the third click on sorting header`

```html
<dom-module
id="my-grid-styles"
theme-for="vaadin-grid"
>
<template>
</template>
</dom-module>
<vaadin-grid
class="vvd-grid-engine-root"
style="touch-action: none;"
Expand Down
Loading