@vaadin/virtual-list 23.3.3 → 24.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/virtual-list",
3
- "version": "23.3.3",
3
+ "version": "24.0.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,15 +38,15 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/component-base": "~23.3.3",
42
- "@vaadin/lit-renderer": "~23.3.3",
43
- "@vaadin/vaadin-lumo-styles": "~23.3.3",
44
- "@vaadin/vaadin-material-styles": "~23.3.3",
45
- "@vaadin/vaadin-themable-mixin": "~23.3.3"
41
+ "@vaadin/component-base": "24.0.0-alpha10",
42
+ "@vaadin/lit-renderer": "24.0.0-alpha10",
43
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
44
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha10",
45
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
49
- "@vaadin/polymer-legacy-adapter": "~23.3.3",
49
+ "@vaadin/polymer-legacy-adapter": "24.0.0-alpha10",
50
50
  "@vaadin/testing-helpers": "^0.3.2",
51
51
  "lit": "^2.0.0",
52
52
  "sinon": "^13.0.2"
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "1529ed623e053d28a3c1c66af55ebe402743ddd0"
58
+ "gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
59
59
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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 { TemplateResult } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2023 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 { directive } from 'lit/directive.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2023 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 { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2021 - 2023 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';
@@ -101,6 +101,24 @@ class VirtualList extends ElementMixin(ControllerMixin(ThemableMixin(PolymerElem
101
101
  return ['__itemsOrRendererChanged(items, renderer, __virtualizer)'];
102
102
  }
103
103
 
104
+ /**
105
+ * Gets the index of the first visible item in the viewport.
106
+ *
107
+ * @return {number}
108
+ */
109
+ get firstVisibleIndex() {
110
+ return this.__virtualizer.firstVisibleIndex;
111
+ }
112
+
113
+ /**
114
+ * Gets the index of the last visible item in the viewport.
115
+ *
116
+ * @return {number}
117
+ */
118
+ get lastVisibleIndex() {
119
+ return this.__virtualizer.lastVisibleIndex;
120
+ }
121
+
104
122
  /** @protected */
105
123
  ready() {
106
124
  super.ready();
@@ -170,24 +188,6 @@ class VirtualList extends ElementMixin(ControllerMixin(ThemableMixin(PolymerElem
170
188
  }
171
189
  }
172
190
 
173
- /**
174
- * Gets the index of the first visible item in the viewport.
175
- *
176
- * @return {number}
177
- */
178
- get firstVisibleIndex() {
179
- return this.__virtualizer.firstVisibleIndex;
180
- }
181
-
182
- /**
183
- * Gets the index of the last visible item in the viewport.
184
- *
185
- * @return {number}
186
- */
187
- get lastVisibleIndex() {
188
- return this.__virtualizer.lastVisibleIndex;
189
- }
190
-
191
191
  /**
192
192
  * Requests an update for the content of the rows.
193
193
  * While performing the update, it invokes the renderer passed in the `renderer` property for each visible row.
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": "23.3.3",
4
+ "version": "24.0.0-alpha10",
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": "23.3.3",
4
+ "version": "24.0.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {