@policystudio/policy-studio-ui-vue 1.1.90-beta.27 → 1.1.90-beta.29
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 +1 -1
- package/src/components/buttons/PsButton.vue +3 -3
- package/src/components/forms/PsDropdown.vue +4 -3
- package/src/components/table-results/PsTableResults.vue +8 -9
- package/src/components/table-results/PsTableResultsHead.vue +5 -5
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +5 -5
- package/src/components/ui/PsIcon.vue +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<button
|
|
3
|
-
@click="onClick()"
|
|
3
|
+
@click="onClick($event)"
|
|
4
4
|
@mouseenter="onMouseEnter"
|
|
5
5
|
@mouseleave="onMouseLeave"
|
|
6
6
|
class="psui-el-button"
|
|
@@ -90,9 +90,9 @@ const getComponentClass = computed(() => {
|
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
92
|
|
|
93
|
-
const onClick = () => {
|
|
93
|
+
const onClick = (event) => {
|
|
94
94
|
if (props.disabled) return
|
|
95
|
-
emit('click')
|
|
95
|
+
emit('click', event)
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
const onMouseEnter = () => {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
<div
|
|
9
9
|
ref="PSDropdownTrigger"
|
|
10
10
|
v-if="$slots.dropdownTrigger"
|
|
11
|
-
@click="show
|
|
11
|
+
@click="show && !toggleWhenActive ? '' : toggle($event)"
|
|
12
12
|
>
|
|
13
13
|
<slot name="dropdownTrigger" />
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<button
|
|
17
17
|
v-else
|
|
18
|
-
@click="show
|
|
18
|
+
@click="show && !toggleWhenActive ? '' : toggle($event)"
|
|
19
19
|
type="button"
|
|
20
20
|
:id="id.value"
|
|
21
21
|
aria-haspopup="true"
|
|
@@ -115,13 +115,14 @@ onBeforeUnmount(() => {
|
|
|
115
115
|
unwatchParentScrolling()
|
|
116
116
|
})
|
|
117
117
|
|
|
118
|
-
const toggle = () => {
|
|
118
|
+
const toggle = (event) => {
|
|
119
119
|
if (props.disabled) return
|
|
120
120
|
if (!show.value) {
|
|
121
121
|
open()
|
|
122
122
|
} else {
|
|
123
123
|
close()
|
|
124
124
|
}
|
|
125
|
+
event.stopPropagation()
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
const handleEsc = (evt) => {
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
:style="item.text_color ? `color: ${item.text_color};` : ''"
|
|
95
95
|
>
|
|
96
96
|
{{ item.title }}
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
<PsIcon
|
|
99
99
|
v-if="item.has_helper"
|
|
100
|
-
icon="
|
|
101
|
-
size="
|
|
102
|
-
class="psui-text-gray-40 psui-opacity-0 psui-transition psui-leading-none psui-cursor-pointer psui-ml-1"
|
|
100
|
+
icon="info_outline"
|
|
101
|
+
size="16"
|
|
102
|
+
class="psui-text-gray-40 hover:psui-text-blue-60 psui-opacity-0 psui-transition psui-leading-none psui-cursor-pointer psui-ml-1"
|
|
103
103
|
display="flex"
|
|
104
104
|
@click.native="emit('openDescriptionModal', { type: 'helper', slug: `table-results-${item.helper_slug}` })"
|
|
105
105
|
/>
|
|
@@ -116,10 +116,9 @@
|
|
|
116
116
|
|
|
117
117
|
<PsIcon
|
|
118
118
|
v-if="item.has_helper"
|
|
119
|
-
icon="
|
|
120
|
-
size="
|
|
121
|
-
|
|
122
|
-
class="psui-opacity-0 psui-transition psui-leading-none psui-cursor-pointer psui-ml-1"
|
|
119
|
+
icon="info_outline"
|
|
120
|
+
size="16"
|
|
121
|
+
class="psui-opacity-0 psui-text-gray-40 hover:psui-text-blue-60 psui-transition psui-leading-none psui-cursor-pointer psui-ml-1"
|
|
123
122
|
display="flex"
|
|
124
123
|
@click.native="emit('openDescriptionModal', { type: 'helper', slug: `table-results-${item.helper_slug}` })"
|
|
125
124
|
/>
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
<PsIcon
|
|
150
149
|
:icon="getIcon(item)"
|
|
151
150
|
class="psui-flex psui-text-gray-40 psui-cursor-pointer leading-none hover:psui-text-blue-60 psui-gap-3 psui-px-5 psui-py-1 transition-all"
|
|
152
|
-
size="
|
|
151
|
+
size="16"
|
|
153
152
|
display="flex"
|
|
154
153
|
@click.native="executeCallback(item)"
|
|
155
154
|
/>
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
{{ columnGroup.title }}
|
|
20
20
|
</p>
|
|
21
21
|
<PsIcon
|
|
22
|
-
icon="
|
|
23
|
-
size="
|
|
22
|
+
icon="info_outline"
|
|
23
|
+
size="16"
|
|
24
24
|
class="psui-cursor-pointer"
|
|
25
|
-
icon-classes="psui-text-blue-
|
|
25
|
+
icon-classes="psui-text-gray-40 hover:psui-text-blue-60 psui-opacity-0 psui-leading-none psui-transition"
|
|
26
26
|
:style="{ display: 'flex' }"
|
|
27
27
|
@click="emit('click-column-group-helper', columnGroup, $event)"
|
|
28
28
|
/>
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
/>
|
|
62
62
|
|
|
63
63
|
<PsIcon
|
|
64
|
-
icon="
|
|
64
|
+
icon="info_outline"
|
|
65
65
|
size="16"
|
|
66
66
|
class="psui-cursor-pointer helper"
|
|
67
|
-
icon-classes="psui-text-blue-
|
|
67
|
+
icon-classes="psui-text-gray-40 hover:psui-text-blue-60 psui-opacity-0 psui-leading-none psui-transition"
|
|
68
68
|
:style="{ display: 'flex' }"
|
|
69
69
|
@click="emit('click-column-helper', column, $event)"
|
|
70
70
|
/>
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
{{ columnGroup.title }}
|
|
12
12
|
</p>
|
|
13
13
|
<PsIcon
|
|
14
|
-
icon="
|
|
15
|
-
size="
|
|
14
|
+
icon="info_outline"
|
|
15
|
+
size="16"
|
|
16
16
|
class="psui-cursor-pointer"
|
|
17
|
-
icon-classes="psui-text-blue-
|
|
17
|
+
icon-classes="psui-text-blue-40 hover:psui-text-blue-60 psui-opacity-0 psui-leading-none psui-transition"
|
|
18
18
|
:style="{ display: 'flex' }"
|
|
19
19
|
@click="emit('click-column-group-helper', columnGroup, $event)"
|
|
20
20
|
/>
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
</p>
|
|
44
44
|
|
|
45
45
|
<PsIcon
|
|
46
|
-
icon="
|
|
46
|
+
icon="info_outline"
|
|
47
47
|
size="16"
|
|
48
48
|
class="psui-cursor-pointer helper"
|
|
49
|
-
icon-classes="psui-text-blue-
|
|
49
|
+
icon-classes="psui-text-gray-40 hover:psui-text-blue-60 psui-opacity-0 psui-leading-none psui-transition"
|
|
50
50
|
:style="{ display: 'flex' }"
|
|
51
51
|
@click="emit('click-column-helper', column, $event)"
|
|
52
52
|
/>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
:style="{ display: display }"
|
|
4
|
+
@click="emit('click', $event)"
|
|
5
|
+
>
|
|
3
6
|
<span
|
|
4
7
|
v-if="getIconType === 'material-icons'"
|
|
5
8
|
class="material-icons-round"
|
|
@@ -106,6 +109,8 @@ const props = defineProps({
|
|
|
106
109
|
const finishedImageLoad = ref(false)
|
|
107
110
|
const imageLoadError = ref(false)
|
|
108
111
|
|
|
112
|
+
const emit = defineEmits(['click'])
|
|
113
|
+
|
|
109
114
|
const getIconType = computed(() => {
|
|
110
115
|
if (imageLoadError.value || !finishedImageLoad.value) return 'material-icons'
|
|
111
116
|
if (props.type) return props.type
|