@vaadin/side-nav 25.2.0-alpha10 → 25.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/side-nav",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.2.0-
|
|
39
|
-
"@vaadin/component-base": "25.2.0-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha11",
|
|
39
|
+
"@vaadin/component-base": "25.2.0-alpha11",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha11",
|
|
41
41
|
"lit": "^3.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@vaadin/aura": "25.2.0-
|
|
45
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
46
|
-
"@vaadin/icon": "25.2.0-
|
|
47
|
-
"@vaadin/icons": "25.2.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
44
|
+
"@vaadin/aura": "25.2.0-alpha11",
|
|
45
|
+
"@vaadin/chai-plugins": "25.2.0-alpha11",
|
|
46
|
+
"@vaadin/icon": "25.2.0-alpha11",
|
|
47
|
+
"@vaadin/icons": "25.2.0-alpha11",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha11",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha11",
|
|
51
51
|
"lit": "^3.0.0",
|
|
52
52
|
"sinon": "^21.0.2"
|
|
53
53
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"web-types.json",
|
|
57
57
|
"web-types.lit.json"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "fdc37e932709f95491a027aeb2090911cb7528c6"
|
|
60
60
|
}
|
|
@@ -35,11 +35,8 @@ class ChildrenController extends SlotController {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
/**
|
|
39
|
-
* @polymerMixin
|
|
40
|
-
*/
|
|
41
38
|
export const SideNavChildrenMixin = (superClass) =>
|
|
42
|
-
class SideNavChildrenMixin extends I18nMixin(
|
|
39
|
+
class SideNavChildrenMixin extends I18nMixin(superClass) {
|
|
43
40
|
static get properties() {
|
|
44
41
|
return {
|
|
45
42
|
/**
|
|
@@ -53,6 +50,10 @@ export const SideNavChildrenMixin = (superClass) =>
|
|
|
53
50
|
};
|
|
54
51
|
}
|
|
55
52
|
|
|
53
|
+
static get defaultI18n() {
|
|
54
|
+
return DEFAULT_I18N;
|
|
55
|
+
}
|
|
56
|
+
|
|
56
57
|
constructor() {
|
|
57
58
|
super();
|
|
58
59
|
|
|
@@ -78,10 +78,6 @@ import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
|
|
|
78
78
|
*
|
|
79
79
|
* @customElement vaadin-side-nav-item
|
|
80
80
|
* @extends HTMLElement
|
|
81
|
-
* @mixes ThemableMixin
|
|
82
|
-
* @mixes DisabledMixin
|
|
83
|
-
* @mixes ElementMixin
|
|
84
|
-
* @mixes SideNavChildrenMixin
|
|
85
81
|
*/
|
|
86
82
|
class SideNavItem extends SideNavChildrenMixin(
|
|
87
83
|
DisabledMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))),
|
|
@@ -111,7 +107,6 @@ class SideNavItem extends SideNavChildrenMixin(
|
|
|
111
107
|
|
|
112
108
|
/**
|
|
113
109
|
* Whether to show the child items or not
|
|
114
|
-
*
|
|
115
110
|
*/
|
|
116
111
|
expanded: {
|
|
117
112
|
type: Boolean,
|
|
@@ -148,7 +143,6 @@ class SideNavItem extends SideNavChildrenMixin(
|
|
|
148
143
|
*
|
|
149
144
|
* The state is updated when the item is added to the DOM or when the browser
|
|
150
145
|
* navigates to a new page.
|
|
151
|
-
*
|
|
152
146
|
*/
|
|
153
147
|
current: {
|
|
154
148
|
type: Boolean,
|
|
@@ -349,8 +343,8 @@ class SideNavItem extends SideNavChildrenMixin(
|
|
|
349
343
|
const parentItem = this.__getParentItem();
|
|
350
344
|
if (parentItem) {
|
|
351
345
|
parentItem.__expandParentItems();
|
|
346
|
+
parentItem.expanded = true;
|
|
352
347
|
}
|
|
353
|
-
this.expanded = true;
|
|
354
348
|
}
|
|
355
349
|
|
|
356
350
|
/** @private */
|
package/src/vaadin-side-nav.js
CHANGED
|
@@ -69,9 +69,6 @@ import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
|
|
|
69
69
|
*
|
|
70
70
|
* @customElement vaadin-side-nav
|
|
71
71
|
* @extends HTMLElement
|
|
72
|
-
* @mixes ThemableMixin
|
|
73
|
-
* @mixes ElementMixin
|
|
74
|
-
* @mixes SideNavChildrenMixin
|
|
75
72
|
*/
|
|
76
73
|
class SideNav extends SideNavChildrenMixin(
|
|
77
74
|
SlotStylesMixin(FocusMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement)))))),
|
|
@@ -88,7 +85,6 @@ class SideNav extends SideNavChildrenMixin(
|
|
|
88
85
|
return {
|
|
89
86
|
/**
|
|
90
87
|
* Whether the side nav is collapsible. When enabled, the toggle icon is shown.
|
|
91
|
-
*
|
|
92
88
|
*/
|
|
93
89
|
collapsible: {
|
|
94
90
|
type: Boolean,
|
|
@@ -98,7 +94,6 @@ class SideNav extends SideNavChildrenMixin(
|
|
|
98
94
|
|
|
99
95
|
/**
|
|
100
96
|
* Whether the side nav is collapsed. When collapsed, the items are hidden.
|
|
101
|
-
*
|
|
102
97
|
*/
|
|
103
98
|
collapsed: {
|
|
104
99
|
type: Boolean,
|
package/web-types.json
CHANGED