@vaadin/side-nav 24.4.0-alpha5 → 24.4.0-alpha6

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/side-nav",
3
- "version": "24.4.0-alpha5",
3
+ "version": "24.4.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,11 +35,11 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "24.4.0-alpha5",
39
- "@vaadin/component-base": "24.4.0-alpha5",
40
- "@vaadin/vaadin-lumo-styles": "24.4.0-alpha5",
41
- "@vaadin/vaadin-material-styles": "24.4.0-alpha5",
42
- "@vaadin/vaadin-themable-mixin": "24.4.0-alpha5",
38
+ "@vaadin/a11y-base": "24.4.0-alpha6",
39
+ "@vaadin/component-base": "24.4.0-alpha6",
40
+ "@vaadin/vaadin-lumo-styles": "24.4.0-alpha6",
41
+ "@vaadin/vaadin-material-styles": "24.4.0-alpha6",
42
+ "@vaadin/vaadin-themable-mixin": "24.4.0-alpha6",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
@@ -52,5 +52,5 @@
52
52
  "web-types.json",
53
53
  "web-types.lit.json"
54
54
  ],
55
- "gitHead": "05618f05f9604d328daa3e6501a5a29d522c2ec4"
55
+ "gitHead": "7d555ad342715966005883fafcd20001425a6d8c"
56
56
  }
@@ -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,
@@ -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/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-alpha5",
4
+ "version": "24.4.0-alpha6",
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": [
@@ -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-alpha5",
4
+ "version": "24.4.0-alpha6",
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.",