@policystudio/policy-studio-ui-vue 1.0.60 → 1.0.61
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 +206 -213
- package/package.json +1 -1
- package/src/assets/scss/components/PsMiniTag.scss +52 -53
- package/src/assets/scss/components/PsTabHeader.scss +1 -3
- package/src/components/badges-and-tags/PsMiniTag.vue +5 -1
- package/src/components/controls/PsCheckboxSimple.vue +2 -2
- package/src/components/controls/PsDraggable.vue +3 -4
- package/src/components/forms/PsDropdown.vue +9 -0
- package/src/stories/CheckboxSimple.stories.js +2 -2
- package/tailwind.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,56 +1,55 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
letter-spacing: 0.5px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-layout{
|
|
15
|
-
&-solid-info{
|
|
16
|
-
@apply psui-bg-blue-50 psui-text-white
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-info {
|
|
20
|
-
@apply psui-bg-blue-20 psui-text-blue-60
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-solid-success {
|
|
24
|
-
@apply psui-bg-green-20 psui-text-white
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-success {
|
|
28
|
-
@apply psui-bg-green-10 psui-text-green-70
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-solid-warning {
|
|
32
|
-
@apply psui-bg-yellow-20 psui-text-white
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-warning {
|
|
36
|
-
@apply psui-bg-yellow-10 psui-text-yellow-70
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&-solid-error {
|
|
40
|
-
@apply psui-bg-red-20 psui-text-white
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-error {
|
|
44
|
-
@apply psui-bg-red-10 psui-text-red-20
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-solid-default {
|
|
48
|
-
@apply psui-bg-gray-40 psui-text-white
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-default {
|
|
52
|
-
@apply psui-bg-gray-20 psui-text-gray-50
|
|
53
|
-
}
|
|
54
|
-
}
|
|
2
|
+
.psui-el-mini-tag {
|
|
3
|
+
@apply psui-flex psui-rounded-full psui-items-center psui-justify-center psui-flex-row;
|
|
4
|
+
width: fit-content;
|
|
5
|
+
|
|
6
|
+
span {
|
|
7
|
+
@apply psui-w-full psui-font-bold psui-uppercase;
|
|
8
|
+
padding: 3px 8px 3px 8px;
|
|
9
|
+
font-size: 10px;
|
|
10
|
+
letter-spacing: 0.5px;
|
|
55
11
|
}
|
|
12
|
+
|
|
13
|
+
&-layout{
|
|
14
|
+
&-solid-info{
|
|
15
|
+
@apply psui-bg-blue-50 psui-text-white
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-info {
|
|
19
|
+
@apply psui-bg-blue-20 psui-text-blue-60
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-solid-success {
|
|
23
|
+
@apply psui-bg-green-20 psui-text-white
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-success {
|
|
27
|
+
@apply psui-bg-green-10 psui-text-green-70
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-solid-warning {
|
|
31
|
+
@apply psui-bg-yellow-20 psui-text-white
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-warning {
|
|
35
|
+
@apply psui-bg-yellow-10 psui-text-yellow-70
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-solid-error {
|
|
39
|
+
@apply psui-bg-red-20 psui-text-white
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-error {
|
|
43
|
+
@apply psui-bg-red-10 psui-text-red-20
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-solid-default {
|
|
47
|
+
@apply psui-bg-gray-40 psui-text-white
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-default {
|
|
51
|
+
@apply psui-bg-gray-20 psui-text-gray-50
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
56
55
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="psui-el-mini-tag"
|
|
4
|
+
:class="getComponentClass"
|
|
5
|
+
@click="$emit('click', $event.target)"
|
|
6
|
+
>
|
|
3
7
|
<span>{{ message }}</span>
|
|
4
8
|
</div>
|
|
5
9
|
</template>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:name="label"
|
|
13
13
|
:id="getInputId"
|
|
14
14
|
v-bind="inputAttrs"
|
|
15
|
+
@change="$emit('change')"
|
|
15
16
|
/>
|
|
16
17
|
<label
|
|
17
18
|
:for="getInputId"
|
|
@@ -91,8 +92,7 @@ export default {
|
|
|
91
92
|
},
|
|
92
93
|
getComponentAttrs() {
|
|
93
94
|
let componentAttrs = { ... this.$attrs }
|
|
94
|
-
|
|
95
|
-
console.log('componentAttrs', componentAttrs)
|
|
95
|
+
delete componentAttrs.id
|
|
96
96
|
return componentAttrs
|
|
97
97
|
}
|
|
98
98
|
},
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
class="psui-w-full psui-flex psui-items-center"
|
|
33
33
|
>
|
|
34
34
|
<span class="psui-el-draggable-item-title">
|
|
35
|
-
<
|
|
35
|
+
<PsCheckboxSimple
|
|
36
36
|
size="small"
|
|
37
|
-
:value="column.isActive"
|
|
38
37
|
:label="column.title"
|
|
39
38
|
:class="{'active' : column.isActive}"
|
|
39
|
+
:checked="column.isActive"
|
|
40
40
|
:disabled="column.isDisabled"
|
|
41
41
|
class="psui-el-draggable-item-checkbox"
|
|
42
|
-
@
|
|
42
|
+
@change="$emit('on-select-item', { studyKey: getColumns.key, indexColumnGroup, indexColumn, columnGroupKey: columnGroup.key })"
|
|
43
43
|
/>
|
|
44
44
|
</span>
|
|
45
45
|
<span class="psui-el-draggable-item-append">
|
|
@@ -80,7 +80,6 @@ export default {
|
|
|
80
80
|
},
|
|
81
81
|
computed: {
|
|
82
82
|
getStatus() {
|
|
83
|
-
console.log('var:', this.column.key)
|
|
84
83
|
if (this.column.key == 'compliance_margin') {
|
|
85
84
|
return true
|
|
86
85
|
} else {
|
|
@@ -70,6 +70,13 @@ export default {
|
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: true,
|
|
72
72
|
},
|
|
73
|
+
/**
|
|
74
|
+
* Disable the toogle on click. default: false.
|
|
75
|
+
*/
|
|
76
|
+
disabled: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false,
|
|
79
|
+
},
|
|
73
80
|
},
|
|
74
81
|
data() {
|
|
75
82
|
return {
|
|
@@ -90,6 +97,8 @@ export default {
|
|
|
90
97
|
},
|
|
91
98
|
methods: {
|
|
92
99
|
toggle() {
|
|
100
|
+
if (this.disabled) return
|
|
101
|
+
|
|
93
102
|
if (!this.show) {
|
|
94
103
|
this.open()
|
|
95
104
|
} else {
|
|
@@ -23,8 +23,8 @@ const defaultTemplate = (args, {argTypes}) => ({
|
|
|
23
23
|
<div style='display:flex; flex-direction:column; gap:5px;'>
|
|
24
24
|
<p>Active</p>
|
|
25
25
|
<div style='display: flex; flex-direction:column; gap: 10px;'>
|
|
26
|
-
<PsCheckboxSimple v-bind="$props" label='Label 3'
|
|
27
|
-
<PsCheckboxSimple v-bind="$props" label='Label 4'
|
|
26
|
+
<PsCheckboxSimple v-bind="$props" label='Label 3' checked />
|
|
27
|
+
<PsCheckboxSimple v-bind="$props" label='Label 4' checked size='small'/>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
<div style='display:flex; flex-direction:column; gap:5px;'>
|