@vaadin/side-nav 24.4.0-alpha1 → 24.4.0-alpha11
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 +8 -7
- package/src/vaadin-side-nav-base-styles.js +1 -1
- package/src/vaadin-side-nav-children-mixin.d.ts +1 -1
- package/src/vaadin-side-nav-children-mixin.js +1 -1
- package/src/vaadin-side-nav-item.d.ts +6 -1
- package/src/vaadin-side-nav-item.js +7 -1
- package/src/vaadin-side-nav.d.ts +1 -1
- package/src/vaadin-side-nav.js +1 -1
- package/theme/lumo/vaadin-side-nav-item-styles.d.ts +7 -0
- package/theme/lumo/vaadin-side-nav-item.d.ts +7 -0
- package/theme/lumo/vaadin-side-nav-item.js +1 -1
- package/theme/lumo/vaadin-side-nav-styles.d.ts +7 -0
- package/theme/lumo/vaadin-side-nav.d.ts +8 -0
- package/theme/lumo/vaadin-side-nav.js +1 -1
- package/theme/material/vaadin-side-nav-item-styles.d.ts +4 -0
- package/theme/material/vaadin-side-nav-item.d.ts +7 -0
- package/theme/material/vaadin-side-nav-item.js +1 -1
- package/theme/material/vaadin-side-nav-styles.d.ts +4 -0
- package/theme/material/vaadin-side-nav.d.ts +8 -0
- package/theme/material/vaadin-side-nav.js +1 -1
- package/web-types.json +23 -1
- package/web-types.lit.json +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/side-nav",
|
|
3
|
-
"version": "24.4.0-
|
|
3
|
+
"version": "24.4.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
"web-component"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@vaadin/
|
|
39
|
-
"@vaadin/
|
|
40
|
-
"@vaadin/vaadin-
|
|
41
|
-
"@vaadin/vaadin-
|
|
37
|
+
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
+
"@vaadin/a11y-base": "24.4.0-alpha11",
|
|
39
|
+
"@vaadin/component-base": "24.4.0-alpha11",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha11",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "24.4.0-alpha11",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha11",
|
|
42
43
|
"lit": "^3.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
@@ -51,5 +52,5 @@
|
|
|
51
52
|
"web-types.json",
|
|
52
53
|
"web-types.lit.json"
|
|
53
54
|
],
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "09c2f31d69cd611714169e0cd035688f54b2da37"
|
|
55
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2023 - 2024 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 { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2023 - 2024 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 { DisabledMixin } from '@vaadin/a11y-base/src/disabled-mixin.js';
|
|
@@ -100,6 +100,11 @@ declare class SideNavItem extends SideNavChildrenMixin(DisabledMixin(ElementMixi
|
|
|
100
100
|
*/
|
|
101
101
|
readonly current: boolean;
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* The target of the link. Works only when `path` is set.
|
|
105
|
+
*/
|
|
106
|
+
target: string | null | undefined;
|
|
107
|
+
|
|
103
108
|
addEventListener<K extends keyof SideNavItemEventMap>(
|
|
104
109
|
type: K,
|
|
105
110
|
listener: (this: SideNavItem, ev: SideNavItemEventMap[K]) => void,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2023 - 2024 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, LitElement } from 'lit';
|
|
@@ -127,6 +127,11 @@ class SideNavItem extends SideNavChildrenMixin(DisabledMixin(ElementMixin(Themab
|
|
|
127
127
|
readOnly: true,
|
|
128
128
|
reflectToAttribute: true,
|
|
129
129
|
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The target of the link. Works only when `path` is set.
|
|
133
|
+
*/
|
|
134
|
+
target: String,
|
|
130
135
|
};
|
|
131
136
|
}
|
|
132
137
|
|
|
@@ -201,6 +206,7 @@ class SideNavItem extends SideNavChildrenMixin(DisabledMixin(ElementMixin(Themab
|
|
|
201
206
|
?disabled="${this.disabled}"
|
|
202
207
|
tabindex="${this.disabled || this.path == null ? '-1' : '0'}"
|
|
203
208
|
href="${ifDefined(this.disabled ? null : this.path)}"
|
|
209
|
+
target="${ifDefined(this.target)}"
|
|
204
210
|
part="link"
|
|
205
211
|
aria-current="${this.current ? 'page' : 'false'}"
|
|
206
212
|
>
|
package/src/vaadin-side-nav.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2023 Vaadin Ltd.
|
|
3
|
+
* Copyright (c) 2023 - 2024 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 { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
|
package/src/vaadin-side-nav.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
2
|
+
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
3
|
+
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
4
|
+
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
5
|
+
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
6
|
+
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
7
|
+
export declare const sideNavItemStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
2
|
+
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
3
|
+
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
4
|
+
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
5
|
+
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
6
|
+
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
7
|
+
export declare const sideNavStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import './vaadin-side-nav-item.js';
|
|
7
|
+
import './vaadin-side-nav-styles.js';
|
|
8
|
+
import '../../src/vaadin-side-nav.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import './vaadin-side-nav-item.js';
|
|
7
|
+
import './vaadin-side-nav-styles.js';
|
|
8
|
+
import '../../src/vaadin-side-nav.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/side-nav",
|
|
4
|
-
"version": "24.4.0-
|
|
4
|
+
"version": "24.4.0-alpha11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -41,6 +41,17 @@
|
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"name": "target",
|
|
46
|
+
"description": "The target of the link. Works only when `path` is set.",
|
|
47
|
+
"value": {
|
|
48
|
+
"type": [
|
|
49
|
+
"string",
|
|
50
|
+
"null",
|
|
51
|
+
"undefined"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
44
55
|
{
|
|
45
56
|
"name": "theme",
|
|
46
57
|
"description": "The theme variants to apply to the component.",
|
|
@@ -103,6 +114,17 @@
|
|
|
103
114
|
"boolean"
|
|
104
115
|
]
|
|
105
116
|
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "target",
|
|
120
|
+
"description": "The target of the link. Works only when `path` is set.",
|
|
121
|
+
"value": {
|
|
122
|
+
"type": [
|
|
123
|
+
"string",
|
|
124
|
+
"null",
|
|
125
|
+
"undefined"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
106
128
|
}
|
|
107
129
|
],
|
|
108
130
|
"events": [
|
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": "24.4.0-
|
|
4
|
+
"version": "24.4.0-alpha11",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -54,6 +54,13 @@
|
|
|
54
54
|
"kind": "expression"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
"name": ".target",
|
|
59
|
+
"description": "The target of the link. Works only when `path` is set.",
|
|
60
|
+
"value": {
|
|
61
|
+
"kind": "expression"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
57
64
|
{
|
|
58
65
|
"name": "@expanded-changed",
|
|
59
66
|
"description": "Fired when the `expanded` property changes.",
|