@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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.526",
8
+ "version": "3.2.528",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -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
- <!-- <div
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
- <!-- <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"
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
- <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
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
- <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-controls="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>
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
- <div
77
- :id="`asd20-site-menu__item-${activeSectionIndex}`"
78
- class="asd20-site-menu__items"
79
- role="menu"
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
- </div>
95
- <!-- </div> -->
96
- <!-- </focus-trap> -->
97
- </transition>
98
- </div>
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="combobox"
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
- <!-- <form>
115
+ <form>
116
116
  <label for="multi-select">Choose a Category</label>
117
- <select name="categories" multiple id="multi-select">
118
- <options :options="categoryOptions"/>
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>