@asd20/ui 3.2.526 → 3.2.528
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,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<!-- <div
|
|
3
3
|
ref="menuContainer"
|
|
4
4
|
id="main-menu-list"
|
|
5
5
|
class="asd20-site-menu"
|
|
@@ -14,89 +14,95 @@
|
|
|
14
14
|
@keyup.escape="deactivateSection"
|
|
15
15
|
@keydown.tab.stop="dismiss"
|
|
16
16
|
tabindex="-1"
|
|
17
|
-
>
|
|
18
|
-
|
|
17
|
+
> -->
|
|
18
|
+
<div
|
|
19
19
|
id="main-menu-list"
|
|
20
20
|
ref="menuContainer"
|
|
21
21
|
class="asd20-site-menu"
|
|
22
22
|
@click="onBackgroundClick"
|
|
23
|
+
@keyup.up.stop.prevent="previous"
|
|
24
|
+
@keyup.down.stop.prevent="next"
|
|
23
25
|
@keyup.right.stop.prevent="activateSection"
|
|
24
26
|
@keyup.left.stop.prevent="deactivateSection"
|
|
25
27
|
@keyup.escape="deactivateSection"
|
|
26
28
|
@keyup.enter="activateSection"
|
|
27
29
|
tabindex="-1"
|
|
28
|
-
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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"
|
|
30
|
+
>
|
|
31
|
+
<focus-trap :active="active" :initial-focus="() => $refs.focused[0]">
|
|
32
|
+
<div class="asd20-site-menu__viewport">
|
|
33
|
+
<transition name="slide-right" role="group">
|
|
34
|
+
<div
|
|
35
|
+
v-if="!activeSection"
|
|
36
|
+
class="asd20-table-of-contents"
|
|
37
|
+
tabindex="-1"
|
|
38
|
+
role="menu"
|
|
50
39
|
>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
<button
|
|
41
|
+
v-for="(section, index) in sections"
|
|
42
|
+
:key="index"
|
|
43
|
+
:id="`asd20-site-menu__section-${index}`"
|
|
44
|
+
class="asd20-table-of-contents__item"
|
|
45
|
+
role="menuitem"
|
|
46
|
+
ref="focused"
|
|
47
|
+
aria-expanded="false"
|
|
48
|
+
:aria-controls="`asd20-site-menu__item-${index}`"
|
|
49
|
+
@click="activeSectionIndex = index"
|
|
50
|
+
@mouseup="keyboardTriggeredLastAction = false"
|
|
51
|
+
@keyup="keyboardTriggeredLastAction = true"
|
|
52
|
+
tabindex="0"
|
|
53
|
+
>
|
|
54
|
+
<span class="title">{{ section.title }}</span>
|
|
55
|
+
<asd20-icon name="chevron" size="sm" />
|
|
56
|
+
</button>
|
|
57
|
+
</div>
|
|
58
|
+
</transition>
|
|
59
|
+
<transition
|
|
60
|
+
name="slide-left"
|
|
61
|
+
v-on:after-enter="afterActivateTransition"
|
|
62
|
+
>
|
|
63
|
+
<!-- <focus-trap
|
|
58
64
|
:active="active"
|
|
59
65
|
aria-hidden="true"
|
|
60
66
|
returnFocusOnDeactivate="true"
|
|
61
67
|
> -->
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
<div v-if="activeSection" class="asd20-site-menu__section">
|
|
69
|
+
<!-- <div> -->
|
|
70
|
+
<button
|
|
71
|
+
class="asd20-site-menu__section__back"
|
|
72
|
+
aria-expanded="true"
|
|
73
|
+
aira-controls="asd20-site-menu__items"
|
|
74
|
+
@click="deactivateSection"
|
|
75
|
+
@mouseup="keyboardTriggeredLastAction = false"
|
|
76
|
+
@keyup="keyboardTriggeredLastAction = true"
|
|
77
|
+
>
|
|
78
|
+
<asd20-icon name="chevron" size="sm" />
|
|
79
|
+
<span class="title">{{ activeSection.title }}</span>
|
|
80
|
+
</button>
|
|
75
81
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
<a
|
|
82
|
-
v-for="(item, index) in activeSection.items"
|
|
83
|
-
:id="`asd20-site-menu__item-${activeSectionIndex}-${index}`"
|
|
84
|
-
:key="index"
|
|
85
|
-
role="menuitem"
|
|
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
|
|
82
|
+
<div
|
|
83
|
+
:id="`asd20-site-menu__item-${activeSectionIndex}`"
|
|
84
|
+
class="asd20-site-menu__items"
|
|
85
|
+
role="menu"
|
|
92
86
|
>
|
|
87
|
+
<a
|
|
88
|
+
v-for="(item, index) in activeSection.items"
|
|
89
|
+
:id="`asd20-site-menu__item-${activeSectionIndex}-${index}`"
|
|
90
|
+
:key="index"
|
|
91
|
+
role="menuitem"
|
|
92
|
+
class="asd20-site-menu__item"
|
|
93
|
+
:href="item.url"
|
|
94
|
+
:target="
|
|
95
|
+
!item.url || item.url.startsWith('/') ? undefined : '_blank'
|
|
96
|
+
"
|
|
97
|
+
>{{ item.title }}</a
|
|
98
|
+
>
|
|
99
|
+
</div>
|
|
93
100
|
</div>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</
|
|
98
|
-
</
|
|
99
|
-
<!-- </focus-trap> -->
|
|
101
|
+
<!-- </div> -->
|
|
102
|
+
<!-- </focus-trap> -->
|
|
103
|
+
</transition>
|
|
104
|
+
</div>
|
|
105
|
+
</focus-trap>
|
|
100
106
|
</div>
|
|
101
107
|
</template>
|
|
102
108
|
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
@input="$emit('update:keywords', $event)"
|
|
88
88
|
medium
|
|
89
89
|
/>
|
|
90
|
-
<asd20-multiselect-input
|
|
90
|
+
<!-- <asd20-multiselect-input
|
|
91
91
|
label="Categories"
|
|
92
92
|
:taggable="false"
|
|
93
93
|
:value="selectedCategories"
|
|
94
94
|
:items="categoryOptions"
|
|
95
95
|
@input="$emit('update:selected-categories', $event)"
|
|
96
|
-
/>
|
|
96
|
+
/> -->
|
|
97
97
|
</div>
|
|
98
98
|
|
|
99
99
|
<div class="feed">
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
@input="$emit('update:keywords', $event)"
|
|
99
99
|
medium
|
|
100
100
|
/>
|
|
101
|
-
<asd20-multiselect-input
|
|
102
|
-
role="
|
|
101
|
+
<!-- <asd20-multiselect-input
|
|
102
|
+
role="listbox"
|
|
103
103
|
aria-label="Choose a Category to Sort By"
|
|
104
104
|
aria-controls="joketypes"
|
|
105
105
|
aria-autocomplete="list"
|
|
@@ -112,10 +112,17 @@
|
|
|
112
112
|
:items="categoryOptions"
|
|
113
113
|
@input="$emit('update:selected-categories', $event)"
|
|
114
114
|
/>
|
|
115
|
-
|
|
115
|
+
<form>
|
|
116
116
|
<label for="multi-select">Choose a Category</label>
|
|
117
|
-
<select
|
|
118
|
-
|
|
117
|
+
<select
|
|
118
|
+
v-model="selectedValue"
|
|
119
|
+
name="categories"
|
|
120
|
+
multiple
|
|
121
|
+
id="multi-select"
|
|
122
|
+
@input="$emit('update:selected-categories', $event)"
|
|
123
|
+
>
|
|
124
|
+
<option disabled>Choose options</option>
|
|
125
|
+
<option v-for="(catetory, index) in categoryOptions" :value="selectedCategories">{{selectedCategories}}</option>
|
|
119
126
|
</select>
|
|
120
127
|
</form> -->
|
|
121
128
|
</div>
|