@m3e/nav-menu 1.1.1 → 1.1.3
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.
|
@@ -2684,12 +2684,51 @@
|
|
|
2684
2684
|
"description": "Mixin to augment an element with behavior emits a click event on keyboard events.",
|
|
2685
2685
|
"name": "KeyboardClick",
|
|
2686
2686
|
"members": [
|
|
2687
|
+
{
|
|
2688
|
+
"kind": "field",
|
|
2689
|
+
"name": "#keyPressed",
|
|
2690
|
+
"privacy": "private",
|
|
2691
|
+
"type": {
|
|
2692
|
+
"text": "boolean"
|
|
2693
|
+
},
|
|
2694
|
+
"default": "false"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"kind": "field",
|
|
2698
|
+
"name": "#keyDownHandler",
|
|
2699
|
+
"privacy": "private",
|
|
2700
|
+
"readonly": true
|
|
2701
|
+
},
|
|
2687
2702
|
{
|
|
2688
2703
|
"kind": "field",
|
|
2689
2704
|
"name": "#keyUpHandler",
|
|
2690
2705
|
"privacy": "private",
|
|
2691
2706
|
"readonly": true
|
|
2692
2707
|
},
|
|
2708
|
+
{
|
|
2709
|
+
"kind": "field",
|
|
2710
|
+
"name": "#focusOutHandler",
|
|
2711
|
+
"privacy": "private",
|
|
2712
|
+
"readonly": true
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
"kind": "method",
|
|
2716
|
+
"name": "#handleKeyDown",
|
|
2717
|
+
"privacy": "private",
|
|
2718
|
+
"return": {
|
|
2719
|
+
"type": {
|
|
2720
|
+
"text": "void"
|
|
2721
|
+
}
|
|
2722
|
+
},
|
|
2723
|
+
"parameters": [
|
|
2724
|
+
{
|
|
2725
|
+
"name": "e",
|
|
2726
|
+
"type": {
|
|
2727
|
+
"text": "KeyboardEvent"
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
]
|
|
2731
|
+
},
|
|
2693
2732
|
{
|
|
2694
2733
|
"kind": "method",
|
|
2695
2734
|
"name": "#handleKeyUp",
|
package/dist/index.js
CHANGED
|
@@ -1043,7 +1043,12 @@ _M3eNavMenuItemElement_handleClick = function _M3eNavMenuItemElement_handleClick
|
|
|
1043
1043
|
if (drawerContainer) {
|
|
1044
1044
|
const drawer = this.closest("[slot='start']") ?? this.closest("[slot='end')");
|
|
1045
1045
|
if (drawer && (drawerContainer.classList.contains(`-${drawer.slot}-push`) || drawerContainer.classList.contains(`-${drawer.slot}-over`))) {
|
|
1046
|
-
setTimeout(() =>
|
|
1046
|
+
setTimeout(() => {
|
|
1047
|
+
drawerContainer.removeAttribute(drawer.slot);
|
|
1048
|
+
drawerContainer.dispatchEvent(new Event("change", {
|
|
1049
|
+
bubbles: true
|
|
1050
|
+
}));
|
|
1051
|
+
}, 300);
|
|
1047
1052
|
}
|
|
1048
1053
|
}
|
|
1049
1054
|
} else {
|