@vaadin/virtual-list 25.0.0-alpha2 → 25.0.0-alpha20

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/virtual-list",
3
- "version": "25.0.0-alpha2",
3
+ "version": "25.0.0-alpha20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,6 @@
23
23
  "lit.d.ts",
24
24
  "lit.js",
25
25
  "src",
26
- "theme",
27
26
  "vaadin-*.d.ts",
28
27
  "vaadin-*.js",
29
28
  "web-types.json",
@@ -38,21 +37,21 @@
38
37
  ],
39
38
  "dependencies": {
40
39
  "@open-wc/dedupe-mixin": "^1.3.0",
41
- "@vaadin/component-base": "25.0.0-alpha2",
42
- "@vaadin/lit-renderer": "25.0.0-alpha2",
43
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha2",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha2",
40
+ "@vaadin/component-base": "25.0.0-alpha20",
41
+ "@vaadin/lit-renderer": "25.0.0-alpha20",
42
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha20",
45
43
  "lit": "^3.0.0"
46
44
  },
47
45
  "devDependencies": {
48
- "@vaadin/chai-plugins": "25.0.0-alpha2",
49
- "@vaadin/test-runner-commands": "25.0.0-alpha2",
46
+ "@vaadin/chai-plugins": "25.0.0-alpha20",
47
+ "@vaadin/test-runner-commands": "25.0.0-alpha20",
50
48
  "@vaadin/testing-helpers": "^2.0.0",
51
- "sinon": "^18.0.0"
49
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha20",
50
+ "sinon": "^21.0.0"
52
51
  },
53
52
  "web-types": [
54
53
  "web-types.json",
55
54
  "web-types.lit.json"
56
55
  ],
57
- "gitHead": "67ffcd5355cf21ce1b5039c598525109fc4c164b"
56
+ "gitHead": "c948aae591a30b432f3784000d4677674cae56e0"
58
57
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2025 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 { CSSResult } from 'lit';
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import '@vaadin/component-base/src/styles/style-props.js';
7
+ import { css } from 'lit';
8
+
9
+ export const virtualListStyles = css`
10
+ :host {
11
+ display: block;
12
+ height: 400px;
13
+ overflow: auto;
14
+ flex: auto;
15
+ align-self: stretch;
16
+ }
17
+
18
+ :host([hidden]) {
19
+ display: none !important;
20
+ }
21
+
22
+ :host(:not([grid])) #items > ::slotted(*) {
23
+ width: 100%;
24
+ }
25
+
26
+ #items {
27
+ position: relative;
28
+ }
29
+
30
+ :host([theme*='overflow-indicator'])::before,
31
+ :host([theme*='overflow-indicator'])::after {
32
+ content: '';
33
+ display: none;
34
+ position: sticky;
35
+ inset: 0;
36
+ z-index: 9999;
37
+ height: 1px;
38
+ margin-bottom: -1px;
39
+ background: var(--vaadin-virtual-list-border-color, var(--vaadin-border-color-secondary));
40
+ }
41
+
42
+ :host([theme*='overflow-indicator'])::after {
43
+ margin-bottom: 0;
44
+ margin-top: -1px;
45
+ }
46
+
47
+ :host([theme~='overflow-indicator-top'][overflow~='top'])::before,
48
+ :host([theme~='overflow-indicators'][overflow~='top'])::before,
49
+ :host([theme~='overflow-indicators'][overflow~='bottom'])::after,
50
+ :host([theme~='overflow-indicator-bottom'][overflow~='bottom'])::after {
51
+ display: block;
52
+ }
53
+ `;
@@ -8,8 +8,8 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
8
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
9
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
10
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
+ import { virtualListStyles } from './styles/vaadin-virtual-list-base-styles.js';
11
12
  import { VirtualListMixin } from './vaadin-virtual-list-mixin.js';
12
- import { virtualListStyles } from './vaadin-virtual-list-styles.js';
13
13
 
14
14
  /**
15
15
  * `<vaadin-virtual-list>` is a Web Component for displaying a virtual/infinite list of items.
@@ -46,7 +46,7 @@ class VirtualList extends VirtualListMixin(ThemableMixin(ElementMixin(PolylitMix
46
46
  }
47
47
 
48
48
  static get styles() {
49
- return [virtualListStyles];
49
+ return virtualListStyles;
50
50
  }
51
51
 
52
52
  /** @protected */
@@ -1,2 +1,2 @@
1
- import './theme/lumo/vaadin-virtual-list.js';
1
+ import './src/vaadin-virtual-list.js';
2
2
  export * from './src/vaadin-virtual-list.js';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/virtual-list",
4
- "version": "25.0.0-alpha2",
4
+ "version": "25.0.0-alpha20",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/virtual-list",
4
- "version": "25.0.0-alpha2",
4
+ "version": "25.0.0-alpha20",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,28 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- export const virtualListStyles = css`
9
- :host {
10
- display: block;
11
- height: 400px;
12
- overflow: auto;
13
- flex: auto;
14
- align-self: stretch;
15
- }
16
-
17
- :host([hidden]) {
18
- display: none !important;
19
- }
20
-
21
- :host(:not([grid])) #items > ::slotted(*) {
22
- width: 100%;
23
- }
24
-
25
- #items {
26
- position: relative;
27
- }
28
- `;
@@ -1 +0,0 @@
1
- import '../../src/vaadin-virtual-list.js';
@@ -1 +0,0 @@
1
- import '../../src/vaadin-virtual-list.js';