@vaadin/side-nav 25.1.0-beta2 → 25.1.0-beta3
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/README.md +1 -1
- package/custom-elements.json +37 -4
- package/package.json +12 -12
- package/src/vaadin-side-nav-item.d.ts +1 -1
- package/src/vaadin-side-nav-item.js +7 -3
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ A web component for navigation menus.
|
|
|
13
13
|
<vaadin-side-nav-item path="/dashboard">
|
|
14
14
|
<vaadin-icon icon="vaadin:chart" slot="prefix"></vaadin-icon>
|
|
15
15
|
Dashboard
|
|
16
|
-
<
|
|
16
|
+
<vaadin-badge slot="suffix" number="2" theme="number-only">new items</vaadin-badge>
|
|
17
17
|
</vaadin-side-nav-item>
|
|
18
18
|
|
|
19
19
|
<vaadin-side-nav-item>
|
package/custom-elements.json
CHANGED
|
@@ -44,10 +44,12 @@
|
|
|
44
44
|
{
|
|
45
45
|
"kind": "field",
|
|
46
46
|
"name": "i18n",
|
|
47
|
-
"
|
|
47
|
+
"privacy": "public",
|
|
48
48
|
"type": {
|
|
49
49
|
"text": "Object"
|
|
50
50
|
},
|
|
51
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following structure and default values:\n```js\n{\n toggle: 'Toggle child items'\n}\n```",
|
|
52
|
+
"attribute": "i18n",
|
|
51
53
|
"inheritedFrom": {
|
|
52
54
|
"name": "I18nMixin",
|
|
53
55
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -57,6 +59,11 @@
|
|
|
57
59
|
"attributes": [
|
|
58
60
|
{
|
|
59
61
|
"name": "i18n",
|
|
62
|
+
"type": {
|
|
63
|
+
"text": "Object"
|
|
64
|
+
},
|
|
65
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
66
|
+
"fieldName": "i18n",
|
|
60
67
|
"inheritedFrom": {
|
|
61
68
|
"name": "I18nMixin",
|
|
62
69
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -93,7 +100,7 @@
|
|
|
93
100
|
"declarations": [
|
|
94
101
|
{
|
|
95
102
|
"kind": "class",
|
|
96
|
-
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <
|
|
103
|
+
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <vaadin-badge slot=\"suffix\">Suffix</vaadin-badge>\n</vaadin-side-nav-item>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`content` | The element that wraps link and toggle button\n`children` | The element that wraps child items\n`link` | The clickable anchor used for navigation\n`toggle-button` | The toggle button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`disabled` | Set when the element is disabled.\n`expanded` | Set when the element is expanded.\n`has-children` | Set when the element has child items.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
97
104
|
"name": "SideNavItem",
|
|
98
105
|
"members": [
|
|
99
106
|
{
|
|
@@ -120,10 +127,12 @@
|
|
|
120
127
|
{
|
|
121
128
|
"kind": "field",
|
|
122
129
|
"name": "i18n",
|
|
123
|
-
"
|
|
130
|
+
"privacy": "public",
|
|
124
131
|
"type": {
|
|
125
132
|
"text": "Object"
|
|
126
133
|
},
|
|
134
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following structure and default values:\n```js\n{\n toggle: 'Toggle child items'\n}\n```",
|
|
135
|
+
"attribute": "i18n",
|
|
127
136
|
"inheritedFrom": {
|
|
128
137
|
"name": "I18nMixin",
|
|
129
138
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -143,6 +152,9 @@
|
|
|
143
152
|
"kind": "field",
|
|
144
153
|
"name": "path",
|
|
145
154
|
"privacy": "public",
|
|
155
|
+
"type": {
|
|
156
|
+
"text": "string"
|
|
157
|
+
},
|
|
146
158
|
"description": "The path to navigate to",
|
|
147
159
|
"attribute": "path"
|
|
148
160
|
},
|
|
@@ -170,6 +182,9 @@
|
|
|
170
182
|
"kind": "field",
|
|
171
183
|
"name": "target",
|
|
172
184
|
"privacy": "public",
|
|
185
|
+
"type": {
|
|
186
|
+
"text": "string"
|
|
187
|
+
},
|
|
173
188
|
"description": "The target of the link. Works only when `path` is set.",
|
|
174
189
|
"attribute": "target"
|
|
175
190
|
}
|
|
@@ -202,6 +217,11 @@
|
|
|
202
217
|
},
|
|
203
218
|
{
|
|
204
219
|
"name": "i18n",
|
|
220
|
+
"type": {
|
|
221
|
+
"text": "Object"
|
|
222
|
+
},
|
|
223
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
224
|
+
"fieldName": "i18n",
|
|
205
225
|
"inheritedFrom": {
|
|
206
226
|
"name": "I18nMixin",
|
|
207
227
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -217,6 +237,9 @@
|
|
|
217
237
|
},
|
|
218
238
|
{
|
|
219
239
|
"name": "path",
|
|
240
|
+
"type": {
|
|
241
|
+
"text": "string"
|
|
242
|
+
},
|
|
220
243
|
"description": "The path to navigate to",
|
|
221
244
|
"fieldName": "path"
|
|
222
245
|
},
|
|
@@ -230,6 +253,9 @@
|
|
|
230
253
|
},
|
|
231
254
|
{
|
|
232
255
|
"name": "target",
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "string"
|
|
258
|
+
},
|
|
233
259
|
"description": "The target of the link. Works only when `path` is set.",
|
|
234
260
|
"fieldName": "target"
|
|
235
261
|
}
|
|
@@ -311,10 +337,12 @@
|
|
|
311
337
|
{
|
|
312
338
|
"kind": "field",
|
|
313
339
|
"name": "i18n",
|
|
314
|
-
"
|
|
340
|
+
"privacy": "public",
|
|
315
341
|
"type": {
|
|
316
342
|
"text": "Object"
|
|
317
343
|
},
|
|
344
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following structure and default values:\n```js\n{\n toggle: 'Toggle child items'\n}\n```",
|
|
345
|
+
"attribute": "i18n",
|
|
318
346
|
"inheritedFrom": {
|
|
319
347
|
"name": "I18nMixin",
|
|
320
348
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
@@ -378,6 +406,11 @@
|
|
|
378
406
|
},
|
|
379
407
|
{
|
|
380
408
|
"name": "i18n",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "Object"
|
|
411
|
+
},
|
|
412
|
+
"description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
413
|
+
"fieldName": "i18n",
|
|
381
414
|
"inheritedFrom": {
|
|
382
415
|
"name": "I18nMixin",
|
|
383
416
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/side-nav",
|
|
3
|
-
"version": "25.1.0-
|
|
3
|
+
"version": "25.1.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.1.0-
|
|
39
|
-
"@vaadin/component-base": "25.1.0-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "25.1.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.1.0-beta3",
|
|
39
|
+
"@vaadin/component-base": "25.1.0-beta3",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "25.1.0-beta3",
|
|
41
41
|
"lit": "^3.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@vaadin/aura": "25.1.0-
|
|
45
|
-
"@vaadin/chai-plugins": "25.1.0-
|
|
46
|
-
"@vaadin/icon": "25.1.0-
|
|
47
|
-
"@vaadin/icons": "25.1.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.1.0-
|
|
44
|
+
"@vaadin/aura": "25.1.0-beta3",
|
|
45
|
+
"@vaadin/chai-plugins": "25.1.0-beta3",
|
|
46
|
+
"@vaadin/icon": "25.1.0-beta3",
|
|
47
|
+
"@vaadin/icons": "25.1.0-beta3",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.1.0-beta3",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.1.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.1.0-beta3",
|
|
51
51
|
"lit": "^3.0.0",
|
|
52
|
-
"sinon": "^21.0.
|
|
52
|
+
"sinon": "^21.0.2"
|
|
53
53
|
},
|
|
54
54
|
"customElements": "custom-elements.json",
|
|
55
55
|
"web-types": [
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4251850231a42298fda23b83928da588831cdb5d"
|
|
60
60
|
}
|
|
@@ -50,7 +50,7 @@ export type SideNavItemEventMap = HTMLElementEventMap & SideNavItemCustomEventMa
|
|
|
50
50
|
* <vaadin-side-nav-item>
|
|
51
51
|
* <vaadin-icon icon="vaadin:chart" slot="prefix"></vaadin-icon>
|
|
52
52
|
* Item
|
|
53
|
-
* <
|
|
53
|
+
* <vaadin-badge slot="suffix">Suffix</vaadin-badge>
|
|
54
54
|
* </vaadin-side-nav-item>
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
@@ -48,7 +48,7 @@ import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
|
|
|
48
48
|
* <vaadin-side-nav-item>
|
|
49
49
|
* <vaadin-icon icon="vaadin:chart" slot="prefix"></vaadin-icon>
|
|
50
50
|
* Item
|
|
51
|
-
* <
|
|
51
|
+
* <vaadin-badge slot="suffix">Suffix</vaadin-badge>
|
|
52
52
|
* </vaadin-side-nav-item>
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
@@ -95,7 +95,9 @@ class SideNavItem extends SideNavChildrenMixin(
|
|
|
95
95
|
/**
|
|
96
96
|
* The path to navigate to
|
|
97
97
|
*/
|
|
98
|
-
path:
|
|
98
|
+
path: {
|
|
99
|
+
type: String,
|
|
100
|
+
},
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
103
|
* The list of alternative paths matching this item
|
|
@@ -158,7 +160,9 @@ class SideNavItem extends SideNavChildrenMixin(
|
|
|
158
160
|
/**
|
|
159
161
|
* The target of the link. Works only when `path` is set.
|
|
160
162
|
*/
|
|
161
|
-
target:
|
|
163
|
+
target: {
|
|
164
|
+
type: String,
|
|
165
|
+
},
|
|
162
166
|
|
|
163
167
|
/**
|
|
164
168
|
* Whether to exclude the item from client-side routing. When enabled,
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/side-nav",
|
|
4
|
-
"version": "25.1.0-
|
|
4
|
+
"version": "25.1.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-side-nav-item",
|
|
11
|
-
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <
|
|
11
|
+
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <vaadin-badge slot=\"suffix\">Suffix</vaadin-badge>\n</vaadin-side-nav-item>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`content` | The element that wraps link and toggle button\n`children` | The element that wraps child items\n`link` | The clickable anchor used for navigation\n`toggle-button` | The toggle button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`disabled` | Set when the element is disabled.\n`expanded` | Set when the element is expanded.\n`has-children` | Set when the element has child items.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/side-nav",
|
|
4
|
-
"version": "25.1.0-
|
|
4
|
+
"version": "25.1.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-side-nav-item",
|
|
19
|
-
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <
|
|
19
|
+
"description": "A navigation item to be used within `<vaadin-side-nav>`. Represents a navigation target.\nNot intended to be used separately.\n\n```html\n<vaadin-side-nav-item>\n Item 1\n <vaadin-side-nav-item path=\"/path1\" slot=\"children\">\n Child item 1\n </vaadin-side-nav-item>\n <vaadin-side-nav-item path=\"/path2\" slot=\"children\">\n Child item 2\n </vaadin-side-nav-item>\n</vaadin-side-nav-item>\n```\n\n### Customization\n\nYou can configure the item by using `slot` names.\n\nSlot name | Description\n----------|-------------\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\n#### Example\n\n```html\n<vaadin-side-nav-item>\n <vaadin-icon icon=\"vaadin:chart\" slot=\"prefix\"></vaadin-icon>\n Item\n <vaadin-badge slot=\"suffix\">Suffix</vaadin-badge>\n</vaadin-side-nav-item>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`content` | The element that wraps link and toggle button\n`children` | The element that wraps child items\n`link` | The clickable anchor used for navigation\n`toggle-button` | The toggle button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`disabled` | Set when the element is disabled.\n`expanded` | Set when the element is expanded.\n`has-children` | Set when the element has child items.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|