@asd20/ui 3.2.523 → 3.2.524

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.523",
8
+ "version": "3.2.524",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="menuContainer"
4
+ id="main-menu-list"
4
5
  class="asd20-site-menu"
5
6
  @click="onBackgroundClick"
6
7
  @focus="onFocus"
@@ -12,7 +13,7 @@
12
13
  @keyup.enter="activateSection"
13
14
  @keyup.escape="deactivateSection"
14
15
  @keydown.tab.stop="dismiss"
15
- tabindex="0"
16
+ tabindex="-1"
16
17
  >
17
18
  <!-- <div
18
19
  id="main-menu-list"
@@ -25,85 +26,77 @@
25
26
  @keyup.enter="activateSection"
26
27
  tabindex="-1"
27
28
  > -->
28
- <focus-trap :active="active" :initial-focus="() => $refs.focused[0]">
29
- <div class="asd20-site-menu__viewport">
30
- <transition name="slide-right" role="group">
31
- <div
32
- v-if="!activeSection"
33
- id="main-menu-list"
34
- class="asd20-table-of-contents"
35
- tabindex="-1"
36
- role="menubar"
37
- >
38
- <button
39
- v-for="(section, index) in sections"
40
- :key="index"
41
- :id="`asd20-site-menu__section-${index}`"
42
- class="asd20-table-of-contents__item"
43
- role="menuitem"
44
- ref="focused"
45
- aria-expanded="false"
46
- :aria-controls="`asd20-site-menu__item-${index}`"
47
- @click="activeSectionIndex = index"
48
- @mouseup="keyboardTriggeredLastAction = false"
49
- @keyup="keyboardTriggeredLastAction = true"
50
- >
51
- <span class="title">{{ section.title }}</span>
52
- <asd20-icon name="chevron" size="sm" />
53
- </button>
54
- </div>
55
- </transition>
56
- <transition
57
- name="slide-left"
58
- v-on:after-enter="afterActivateTransition"
29
+ <!-- <focus-trap :active="active" :initial-focus="() => $refs.focused[0]"> -->
30
+ <div class="asd20-site-menu__viewport">
31
+ <transition name="slide-right" role="group">
32
+ <div
33
+ v-if="!activeSection"
34
+ class="asd20-table-of-contents"
35
+ tabindex="-1"
36
+ role="menu"
59
37
  >
60
- <!-- <focus-trap
38
+ <button
39
+ v-for="(section, index) in sections"
40
+ :key="index"
41
+ :id="`asd20-site-menu__section-${index}`"
42
+ class="asd20-table-of-contents__item"
43
+ role="menuitem"
44
+ ref="focused"
45
+ aria-expanded="false"
46
+ :aria-controls="`asd20-site-menu__item-${index}`"
47
+ @click="activeSectionIndex = index"
48
+ @mouseup="keyboardTriggeredLastAction = false"
49
+ @keyup="keyboardTriggeredLastAction = true"
50
+ >
51
+ <span class="title">{{ section.title }}</span>
52
+ <asd20-icon name="chevron" size="sm" />
53
+ </button>
54
+ </div>
55
+ </transition>
56
+ <transition name="slide-left" v-on:after-enter="afterActivateTransition">
57
+ <!-- <focus-trap
61
58
  :active="active"
62
59
  aria-hidden="true"
63
60
  returnFocusOnDeactivate="true"
64
61
  > -->
62
+ <div v-if="activeSection" class="asd20-site-menu__section">
63
+ <!-- <div> -->
64
+ <button
65
+ class="asd20-site-menu__section__back"
66
+ aria-expanded="true"
67
+ aira-owns="asd20-site-menu__items"
68
+ @click="deactivateSection"
69
+ @mouseup="keyboardTriggeredLastAction = false"
70
+ @keyup="keyboardTriggeredLastAction = true"
71
+ >
72
+ <asd20-icon name="chevron" size="sm" />
73
+ <span class="title">{{ activeSection.title }}</span>
74
+ </button>
75
+
65
76
  <div
66
- v-if="activeSection"
67
- id="main-menu-list"
68
- class="asd20-site-menu__section"
77
+ :id="`asd20-site-menu__item-${activeSectionIndex}`"
78
+ class="asd20-site-menu__items"
79
+ role="menu"
69
80
  >
70
- <!-- <div> -->
71
- <button
72
- class="asd20-site-menu__section__back"
73
- aria-expanded="true"
81
+ <a
82
+ v-for="(item, index) in activeSection.items"
83
+ :id="`asd20-site-menu__item-${activeSectionIndex}-${index}`"
84
+ :key="index"
74
85
  role="menuitem"
75
- @click="deactivateSection"
76
- @mouseup="keyboardTriggeredLastAction = false"
77
- @keyup="keyboardTriggeredLastAction = true"
78
- >
79
- <asd20-icon name="chevron" size="sm" />
80
- <span class="title">{{ activeSection.title }}</span>
81
- </button>
82
-
83
- <div
84
- :id="`asd20-site-menu__item-${activeSectionIndex}`"
85
- class="asd20-site-menu__items"
86
- role="group"
86
+ class="asd20-site-menu__item"
87
+ :href="item.url"
88
+ :target="
89
+ !item.url || item.url.startsWith('/') ? undefined : '_blank'
90
+ "
91
+ >{{ item.title }}</a
87
92
  >
88
- <a
89
- v-for="(item, index) in activeSection.items"
90
- :id="`asd20-site-menu__item-${activeSectionIndex}-${index}`"
91
- :key="index"
92
- role="menuitem"
93
- class="asd20-site-menu__item"
94
- :href="item.url"
95
- :target="
96
- !item.url || item.url.startsWith('/') ? undefined : '_blank'
97
- "
98
- >{{ item.title }}</a
99
- >
100
- </div>
101
93
  </div>
102
- <!-- </div> -->
103
- <!-- </focus-trap> -->
104
- </transition>
105
- </div>
106
- </focus-trap>
94
+ </div>
95
+ <!-- </div> -->
96
+ <!-- </focus-trap> -->
97
+ </transition>
98
+ </div>
99
+ <!-- </focus-trap> -->
107
100
  </div>
108
101
  </template>
109
102