@policystudio/policy-studio-ui-vue 1.0.76 → 1.0.78
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/dist/css/psui_styles.css
CHANGED
|
@@ -18665,6 +18665,10 @@ html {
|
|
|
18665
18665
|
margin-left: 0.25rem;
|
|
18666
18666
|
}
|
|
18667
18667
|
|
|
18668
|
+
.psui-el-table-results tbody tr td .actions .is-last-deep {
|
|
18669
|
+
padding-left: 2.5rem;
|
|
18670
|
+
}
|
|
18671
|
+
|
|
18668
18672
|
.psui-el-table-results tbody tr td:not(:first-child) > div {
|
|
18669
18673
|
justify-content: flex-end;
|
|
18670
18674
|
}
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<div v-if="$slots.prepend" class="psui-el-input-prepend">
|
|
13
13
|
<slot name="prepend"></slot>
|
|
14
14
|
</div>
|
|
15
|
-
|
|
16
15
|
<input
|
|
16
|
+
:title="title"
|
|
17
17
|
:type="type"
|
|
18
18
|
:placeholder="placeholder"
|
|
19
19
|
:disabled="disabled"
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
v-bind="getAttrs"
|
|
30
30
|
:class="{ 'focus': isFocus }"
|
|
31
31
|
/>
|
|
32
|
-
|
|
33
32
|
<div v-if="$slots.append || hasError" class="psui-el-input-append">
|
|
34
33
|
<span v-if="hasError" class="material-icons psui-text-red-20 material-icons-sharp">error</span>
|
|
35
34
|
<slot v-else name="append"></slot>
|
|
@@ -48,6 +47,13 @@
|
|
|
48
47
|
export default {
|
|
49
48
|
name: 'PsInput',
|
|
50
49
|
props: {
|
|
50
|
+
/**
|
|
51
|
+
* It set the title and also its tooltip default behavior
|
|
52
|
+
*/
|
|
53
|
+
title: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ''
|
|
56
|
+
},
|
|
51
57
|
/**
|
|
52
58
|
* It sets the type of your button. default: text.
|
|
53
59
|
*/
|
|
@@ -108,16 +114,15 @@ export default {
|
|
|
108
114
|
type: Boolean,
|
|
109
115
|
default: false
|
|
110
116
|
},
|
|
111
|
-
|
|
112
117
|
minValue: {
|
|
113
|
-
type:
|
|
118
|
+
type: null
|
|
114
119
|
},
|
|
115
120
|
maxValue: {
|
|
116
|
-
type:
|
|
121
|
+
type: null
|
|
117
122
|
},
|
|
118
123
|
step:{
|
|
119
|
-
type:
|
|
120
|
-
}
|
|
124
|
+
type: null
|
|
125
|
+
},
|
|
121
126
|
},
|
|
122
127
|
data: () => ({
|
|
123
128
|
isFocus: false,
|
|
@@ -152,7 +157,7 @@ export default {
|
|
|
152
157
|
onInputBlur($event) {
|
|
153
158
|
this.isFocus = false
|
|
154
159
|
this.$emit('blur', $event)
|
|
155
|
-
}
|
|
160
|
+
},
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
163
|
</script>
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
<td>
|
|
25
25
|
<div
|
|
26
26
|
class="actions psui-space-x-3"
|
|
27
|
-
:
|
|
28
|
-
:style="{ paddingLeft: `${(item.last_deep) ? item.deep * 29 : item.deep * 16}px` }"
|
|
27
|
+
:style="{ paddingLeft: `${item.deep * 16}px` }"
|
|
29
28
|
>
|
|
30
29
|
<PsIcon
|
|
31
30
|
v-if="!item.last_deep || item.type === 'total'"
|
|
@@ -37,11 +36,13 @@
|
|
|
37
36
|
:class="checkRowIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90'"
|
|
38
37
|
@click.native="onCollapse(item)"
|
|
39
38
|
/>
|
|
39
|
+
|
|
40
40
|
<PsRichTooltip
|
|
41
41
|
v-if="item.is_disabled"
|
|
42
42
|
layout="gray"
|
|
43
43
|
position="top"
|
|
44
44
|
class="psui-inline-flex psui-cursor-default"
|
|
45
|
+
:class="{ 'is-last-deep' : item.last_deep }"
|
|
45
46
|
>
|
|
46
47
|
<template v-slot:trigger>
|
|
47
48
|
<p class="title psui-text-gray-50">{{ item.title }}</p>
|
|
@@ -64,7 +65,10 @@
|
|
|
64
65
|
<p
|
|
65
66
|
v-else
|
|
66
67
|
class="title"
|
|
67
|
-
:class="
|
|
68
|
+
:class="[
|
|
69
|
+
{ 'psui-font-bold' : item.type == 'total' },
|
|
70
|
+
{ 'is-last-deep' : item.last_deep }
|
|
71
|
+
]"
|
|
68
72
|
>
|
|
69
73
|
{{ item.title }}
|
|
70
74
|
</p>
|