@vaadin/virtual-list 24.2.0-alpha4 → 24.2.0-dev.538d07bdf

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": "24.2.0-alpha4",
3
+ "version": "24.2.0-dev.538d07bdf",
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": "24.2.0-alpha4",
42
- "@vaadin/lit-renderer": "24.2.0-alpha4",
43
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha4",
44
- "@vaadin/vaadin-material-styles": "24.2.0-alpha4",
45
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha4"
41
+ "@vaadin/component-base": "24.2.0-dev.538d07bdf",
42
+ "@vaadin/lit-renderer": "24.2.0-dev.538d07bdf",
43
+ "@vaadin/vaadin-lumo-styles": "24.2.0-dev.538d07bdf",
44
+ "@vaadin/vaadin-material-styles": "24.2.0-dev.538d07bdf",
45
+ "@vaadin/vaadin-themable-mixin": "24.2.0-dev.538d07bdf"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
49
- "@vaadin/testing-helpers": "^0.4.2",
49
+ "@vaadin/testing-helpers": "^0.4.3",
50
50
  "lit": "^2.0.0",
51
51
  "sinon": "^13.0.2"
52
52
  },
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "aaf7c5ebfea62628210eead4229be1718ac6b129"
57
+ "gitHead": "86c2fd5f37cf1240af98f7c7d752518c8d701db2"
58
58
  }
@@ -3,8 +3,8 @@
3
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
- import type { TemplateResult } from 'lit';
7
6
  import type { DirectiveResult } from 'lit/directive.js';
7
+ import type { LitRendererResult } from '@vaadin/lit-renderer';
8
8
  import { LitRendererDirective } from '@vaadin/lit-renderer';
9
9
  import type { VirtualList, VirtualListItemModel } from '../vaadin-virtual-list.js';
10
10
 
@@ -12,7 +12,7 @@ export type VirtualListLitRenderer<TItem> = (
12
12
  item: TItem,
13
13
  model: VirtualListItemModel<TItem>,
14
14
  virtualList: VirtualList<TItem>,
15
- ) => TemplateResult;
15
+ ) => LitRendererResult;
16
16
 
17
17
  export class VirtualListRendererDirective<TItem> extends LitRendererDirective<
18
18
  VirtualList,
package/web-types.json DELETED
@@ -1,54 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/virtual-list",
4
- "version": "24.2.0-alpha4",
5
- "description-markup": "markdown",
6
- "contributions": {
7
- "html": {
8
- "elements": [
9
- {
10
- "name": "vaadin-virtual-list",
11
- "description": "`<vaadin-virtual-list>` is a Web Component for displaying a virtual/infinite list of items.\n\n```html\n<vaadin-virtual-list></vaadin-virtual-list>\n```\n```js\nconst list = document.querySelector('vaadin-virtual-list');\nlist.items = items; // An array of data items\nlist.renderer = (root, list, {item, index}) => {\n root.textContent = `#${index}: ${item.name}`\n}\n```\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`overflow` | Set to `top`, `bottom`, both, or none.\n\nSee [Virtual List](https://vaadin.com/docs/latest/components/virtual-list) documentation.",
12
- "attributes": [
13
- {
14
- "name": "theme",
15
- "description": "The theme variants to apply to the component.",
16
- "value": {
17
- "type": [
18
- "string",
19
- "null",
20
- "undefined"
21
- ]
22
- }
23
- }
24
- ],
25
- "js": {
26
- "properties": [
27
- {
28
- "name": "items",
29
- "description": "An array containing items determining how many instances to render.",
30
- "value": {
31
- "type": [
32
- "Array.<VirtualListItem>",
33
- "undefined"
34
- ]
35
- }
36
- },
37
- {
38
- "name": "renderer",
39
- "description": "Custom function for rendering the content of every item.\nReceives three arguments:\n\n- `root` The render target element representing one item at a time.\n- `virtualList` The reference to the `<vaadin-virtual-list>` element.\n- `model` The object with the properties related with the rendered\n item, contains:\n - `model.index` The index of the rendered item.\n - `model.item` The item.",
40
- "value": {
41
- "type": [
42
- "VirtualListRenderer",
43
- "undefined"
44
- ]
45
- }
46
- }
47
- ],
48
- "events": []
49
- }
50
- }
51
- ]
52
- }
53
- }
54
- }
@@ -1,41 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/web-types",
3
- "name": "@vaadin/virtual-list",
4
- "version": "24.2.0-alpha4",
5
- "description-markup": "markdown",
6
- "framework": "lit",
7
- "framework-config": {
8
- "enable-when": {
9
- "node-packages": [
10
- "lit"
11
- ]
12
- }
13
- },
14
- "contributions": {
15
- "html": {
16
- "elements": [
17
- {
18
- "name": "vaadin-virtual-list",
19
- "description": "`<vaadin-virtual-list>` is a Web Component for displaying a virtual/infinite list of items.\n\n```html\n<vaadin-virtual-list></vaadin-virtual-list>\n```\n```js\nconst list = document.querySelector('vaadin-virtual-list');\nlist.items = items; // An array of data items\nlist.renderer = (root, list, {item, index}) => {\n root.textContent = `#${index}: ${item.name}`\n}\n```\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|--------------------------------------------\n`overflow` | Set to `top`, `bottom`, both, or none.\n\nSee [Virtual List](https://vaadin.com/docs/latest/components/virtual-list) documentation.",
20
- "extension": true,
21
- "attributes": [
22
- {
23
- "name": ".items",
24
- "description": "An array containing items determining how many instances to render.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": ".renderer",
31
- "description": "Custom function for rendering the content of every item.\nReceives three arguments:\n\n- `root` The render target element representing one item at a time.\n- `virtualList` The reference to the `<vaadin-virtual-list>` element.\n- `model` The object with the properties related with the rendered\n item, contains:\n - `model.index` The index of the rendered item.\n - `model.item` The item.",
32
- "value": {
33
- "kind": "expression"
34
- }
35
- }
36
- ]
37
- }
38
- ]
39
- }
40
- }
41
- }