@policystudio/policy-studio-ui-vue 1.2.0-access.53 → 1.2.0-access.55
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
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
class="psui-el-collapse"
|
|
4
4
|
:class="{ 'status-opened': isOpen, 'disabled': disabled }"
|
|
5
5
|
:data-filled="hasContent"
|
|
6
|
-
tabindex="0"
|
|
7
6
|
>
|
|
8
7
|
<div
|
|
9
8
|
class="psui-el-collapse-item-header"
|
|
10
9
|
@click="toggle"
|
|
10
|
+
@keydown.enter="toggle"
|
|
11
|
+
tabindex="0"
|
|
11
12
|
>
|
|
12
13
|
<i
|
|
13
14
|
class="psui-el-collapse-item-icon "
|
|
@@ -108,6 +109,7 @@ const isOpen = computed(() => {
|
|
|
108
109
|
})
|
|
109
110
|
|
|
110
111
|
const toggle = () => {
|
|
112
|
+
console.log('toggle')
|
|
111
113
|
if (localOpened.value === null) {
|
|
112
114
|
localOpened.value = !props.opened
|
|
113
115
|
} else {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<ul
|
|
3
3
|
class="psui-el-dropdown-menu-list"
|
|
4
4
|
:class="`layout-${layout}`"
|
|
5
|
+
role="none"
|
|
5
6
|
>
|
|
6
7
|
<li
|
|
7
8
|
v-for="(item, index) in getItems"
|
|
@@ -9,9 +10,12 @@
|
|
|
9
10
|
:id="`${index}-${getKeyValue(item)}`"
|
|
10
11
|
:class="{ 'is-selected psui-bg-blue-10 psui-text-blue-60 hover:psui-bg-blue-10 hover:psui-text-blue-60': getSelected === getKeyValue(item) }"
|
|
11
12
|
class="psui-el-dropdown-menu-list-item"
|
|
13
|
+
role="menuitem"
|
|
14
|
+
tabindex="0"
|
|
12
15
|
@mouseover="isHovering = index"
|
|
13
16
|
@mouseout="isHovering = false"
|
|
14
17
|
@click="selectItem(item)"
|
|
18
|
+
@keydown.enter="selectItem(item)"
|
|
15
19
|
>
|
|
16
20
|
<div class="psui-el-dropdown-menu-list-item-left-label">
|
|
17
21
|
{{ getLeftLabel(item) }}
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
class="psui-el-table-results-wrapper"
|
|
5
5
|
:class="`table-${layout}`"
|
|
6
6
|
:style="{ maxHeight: tableMaxHeight }"
|
|
7
|
-
tabindex="0"
|
|
8
|
-
role="region"
|
|
9
7
|
aria-label="Table results"
|
|
10
8
|
>
|
|
11
9
|
<table
|
|
@@ -55,6 +53,7 @@
|
|
|
55
53
|
size="18"
|
|
56
54
|
display="flex"
|
|
57
55
|
@click.native="emit('removeOrAddButtonChange', item, $event)"
|
|
56
|
+
@keydown.enter.native="emit('removeOrAddButtonChange', item, $event)"
|
|
58
57
|
/>
|
|
59
58
|
</div>
|
|
60
59
|
<div
|
|
@@ -74,6 +73,7 @@
|
|
|
74
73
|
{ 'psui-pointer-events-none psui--rotate-90': item.items.length == 0 },
|
|
75
74
|
]"
|
|
76
75
|
@click.native="onCollapse(item, $event)"
|
|
76
|
+
@keydown.enter.native="onCollapse(item, $event)"
|
|
77
77
|
/>
|
|
78
78
|
|
|
79
79
|
<div v-if="item.is_appended">
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
icon-classes="psui-text-blue-60 psui-leading-none psui-transition"
|
|
250
250
|
display="flex"
|
|
251
251
|
@click.native="onSelectRow(item, column, $event)"
|
|
252
|
+
@keydown.enter.native="onSelectRow(item, column, $event)"
|
|
252
253
|
/>
|
|
253
254
|
</template>
|
|
254
255
|
<template #content>
|
|
@@ -310,6 +311,7 @@
|
|
|
310
311
|
size="small"
|
|
311
312
|
:label="column.title ? `${column.title} Switch Button` : null"
|
|
312
313
|
@change="emit('switchButtonItemChanged', item, $event)"
|
|
314
|
+
@keydown.enter.native="emit('switchButtonItemChanged', item, $event)"
|
|
313
315
|
/>
|
|
314
316
|
</div>
|
|
315
317
|
</div>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:style="{ display: display }"
|
|
5
5
|
tabindex="0"
|
|
6
6
|
@click="emit('click', $event)"
|
|
7
|
+
@keydown="emit('keydown',$event)"
|
|
7
8
|
>
|
|
8
9
|
<span
|
|
9
10
|
v-if="getIconType === 'material-icons'"
|
|
@@ -124,7 +125,7 @@ const props = defineProps({
|
|
|
124
125
|
const finishedImageLoad = ref(false)
|
|
125
126
|
const imageLoadError = ref(false)
|
|
126
127
|
|
|
127
|
-
const emit = defineEmits(['click'])
|
|
128
|
+
const emit = defineEmits(['click','keydown'])
|
|
128
129
|
|
|
129
130
|
const getIconType = computed(() => {
|
|
130
131
|
if (props.type) return props.type
|