@vaadin/tabs 23.2.0-alpha3 → 23.2.0-alpha4

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/tabs",
3
- "version": "23.2.0-alpha3",
3
+ "version": "23.2.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,9 @@
23
23
  "src",
24
24
  "theme",
25
25
  "vaadin-*.d.ts",
26
- "vaadin-*.js"
26
+ "vaadin-*.js",
27
+ "web-types.json",
28
+ "web-types.lit.json"
27
29
  ],
28
30
  "keywords": [
29
31
  "Vaadin",
@@ -34,17 +36,21 @@
34
36
  ],
35
37
  "dependencies": {
36
38
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "23.2.0-alpha3",
38
- "@vaadin/item": "23.2.0-alpha3",
39
- "@vaadin/vaadin-list-mixin": "23.2.0-alpha3",
40
- "@vaadin/vaadin-lumo-styles": "23.2.0-alpha3",
41
- "@vaadin/vaadin-material-styles": "23.2.0-alpha3",
42
- "@vaadin/vaadin-themable-mixin": "23.2.0-alpha3"
39
+ "@vaadin/component-base": "23.2.0-alpha4",
40
+ "@vaadin/item": "23.2.0-alpha4",
41
+ "@vaadin/vaadin-list-mixin": "23.2.0-alpha4",
42
+ "@vaadin/vaadin-lumo-styles": "23.2.0-alpha4",
43
+ "@vaadin/vaadin-material-styles": "23.2.0-alpha4",
44
+ "@vaadin/vaadin-themable-mixin": "23.2.0-alpha4"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@esm-bundle/chai": "^4.3.4",
46
48
  "@vaadin/testing-helpers": "^0.3.2",
47
49
  "sinon": "^13.0.2"
48
50
  },
49
- "gitHead": "06e5875be93ca50da2846dafc65a8531010c0576"
51
+ "web-types": [
52
+ "web-types.json",
53
+ "web-types.lit.json"
54
+ ],
55
+ "gitHead": "cbf5f1d0f38ac9b81c65cf9ef5660182e176e598"
50
56
  }
@@ -76,13 +76,13 @@ declare class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(HTML
76
76
  addEventListener<K extends keyof TabsEventMap>(
77
77
  type: K,
78
78
  listener: (this: Tabs, ev: TabsEventMap[K]) => void,
79
- options?: boolean | AddEventListenerOptions,
79
+ options?: AddEventListenerOptions | boolean,
80
80
  ): void;
81
81
 
82
82
  removeEventListener<K extends keyof TabsEventMap>(
83
83
  type: K,
84
84
  listener: (this: Tabs, ev: TabsEventMap[K]) => void,
85
- options?: boolean | EventListenerOptions,
85
+ options?: EventListenerOptions | boolean,
86
86
  ): void;
87
87
  }
88
88
 
package/web-types.json ADDED
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/tabs",
4
+ "version": "23.2.0-alpha4",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "vaadin-tab",
11
+ "description": "`<vaadin-tab>` is a Web Component providing an accessible and customizable tab.\n\n```\n <vaadin-tab>\n Tab 1\n </vaadin-tab>\n```\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`disabled` | Set to a disabled tab | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`selected` | Set when the tab is selected | :host\n`active` | Set when mousedown or enter/spacebar pressed | :host\n`orientation` | Set to `horizontal` or `vertical` depending on the direction of items | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.",
12
+ "attributes": [
13
+ {
14
+ "name": "selected",
15
+ "description": "If true, the item is in selected state.",
16
+ "value": {
17
+ "type": [
18
+ "boolean"
19
+ ]
20
+ }
21
+ },
22
+ {
23
+ "name": "theme",
24
+ "description": "The theme variants to apply to the component.",
25
+ "value": {
26
+ "type": [
27
+ "string",
28
+ "null",
29
+ "undefined"
30
+ ]
31
+ }
32
+ }
33
+ ],
34
+ "js": {
35
+ "properties": [
36
+ {
37
+ "name": "value",
38
+ "description": "",
39
+ "value": {
40
+ "type": [
41
+ "string"
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "name": "selected",
47
+ "description": "If true, the item is in selected state.",
48
+ "value": {
49
+ "type": [
50
+ "boolean"
51
+ ]
52
+ }
53
+ }
54
+ ],
55
+ "events": []
56
+ }
57
+ },
58
+ {
59
+ "name": "vaadin-tabs",
60
+ "description": "`<vaadin-tabs>` is a Web Component for easy switching between different views.\n\n```\n <vaadin-tabs selected=\"4\">\n <vaadin-tab>Page 1</vaadin-tab>\n <vaadin-tab>Page 2</vaadin-tab>\n <vaadin-tab>Page 3</vaadin-tab>\n <vaadin-tab>Page 4</vaadin-tab>\n </vaadin-tabs>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|--------------------------------------\n`back-button` | Button for moving the scroll back\n`tabs` | The tabs container\n`forward-button` | Button for moving the scroll forward\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`orientation` | Tabs disposition, valid values are `horizontal` and `vertical`. | :host\n`overflow` | It's set to `start`, `end`, none or both. | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.",
61
+ "attributes": [
62
+ {
63
+ "name": "selected",
64
+ "description": "The index of the selected tab.",
65
+ "value": {
66
+ "type": [
67
+ "number",
68
+ "null",
69
+ "undefined"
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "name": "orientation",
75
+ "description": "Set tabs disposition. Possible values are `horizontal|vertical`",
76
+ "value": {
77
+ "type": [
78
+ "TabsOrientation"
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "name": "theme",
84
+ "description": "The theme variants to apply to the component.",
85
+ "value": {
86
+ "type": [
87
+ "string",
88
+ "null",
89
+ "undefined"
90
+ ]
91
+ }
92
+ }
93
+ ],
94
+ "js": {
95
+ "properties": [
96
+ {
97
+ "name": "selected",
98
+ "description": "The index of the selected tab.",
99
+ "value": {
100
+ "type": [
101
+ "number",
102
+ "null",
103
+ "undefined"
104
+ ]
105
+ }
106
+ },
107
+ {
108
+ "name": "orientation",
109
+ "description": "Set tabs disposition. Possible values are `horizontal|vertical`",
110
+ "value": {
111
+ "type": [
112
+ "TabsOrientation"
113
+ ]
114
+ }
115
+ }
116
+ ],
117
+ "events": [
118
+ {
119
+ "name": "selected-changed",
120
+ "description": "Fired when the selection is changed.\nNot fired when used in `multiple` selection mode."
121
+ }
122
+ ]
123
+ }
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/tabs",
4
+ "version": "23.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-tab",
19
+ "description": "`<vaadin-tab>` is a Web Component providing an accessible and customizable tab.\n\n```\n <vaadin-tab>\n Tab 1\n </vaadin-tab>\n```\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`disabled` | Set to a disabled tab | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`selected` | Set when the tab is selected | :host\n`active` | Set when mousedown or enter/spacebar pressed | :host\n`orientation` | Set to `horizontal` or `vertical` depending on the direction of items | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.",
20
+ "extension": true,
21
+ "attributes": [
22
+ {
23
+ "name": "?selected",
24
+ "description": "If true, the item is in selected state.",
25
+ "value": {
26
+ "kind": "expression"
27
+ }
28
+ },
29
+ {
30
+ "name": ".value",
31
+ "description": "",
32
+ "value": {
33
+ "kind": "expression"
34
+ }
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "vaadin-tabs",
40
+ "description": "`<vaadin-tabs>` is a Web Component for easy switching between different views.\n\n```\n <vaadin-tabs selected=\"4\">\n <vaadin-tab>Page 1</vaadin-tab>\n <vaadin-tab>Page 2</vaadin-tab>\n <vaadin-tab>Page 3</vaadin-tab>\n <vaadin-tab>Page 4</vaadin-tab>\n </vaadin-tabs>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|--------------------------------------\n`back-button` | Button for moving the scroll back\n`tabs` | The tabs container\n`forward-button` | Button for moving the scroll forward\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`orientation` | Tabs disposition, valid values are `horizontal` and `vertical`. | :host\n`overflow` | It's set to `start`, `end`, none or both. | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.",
41
+ "extension": true,
42
+ "attributes": [
43
+ {
44
+ "name": ".selected",
45
+ "description": "The index of the selected tab.",
46
+ "value": {
47
+ "kind": "expression"
48
+ }
49
+ },
50
+ {
51
+ "name": ".orientation",
52
+ "description": "Set tabs disposition. Possible values are `horizontal|vertical`",
53
+ "value": {
54
+ "kind": "expression"
55
+ }
56
+ },
57
+ {
58
+ "name": "@selected-changed",
59
+ "description": "Fired when the selection is changed.\nNot fired when used in `multiple` selection mode.",
60
+ "value": {
61
+ "kind": "expression"
62
+ }
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
68
+ }
69
+ }