quasar-ui-sellmate-ui-kit 3.11.2 → 3.11.4
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/index.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +33 -34
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SButtonToggle.vue +201 -200
- package/src/components/STable.vue +2 -2
- package/src/css/extends.scss +176 -177
package/package.json
CHANGED
|
@@ -1,200 +1,201 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-btn-toggle
|
|
3
|
-
v-model="btnValue"
|
|
4
|
-
@update:modelValue="
|
|
5
|
-
val => {
|
|
6
|
-
$emit('update:model-value', val);
|
|
7
|
-
}
|
|
8
|
-
"
|
|
9
|
-
no-caps
|
|
10
|
-
no-wrap
|
|
11
|
-
outline
|
|
12
|
-
unelevated
|
|
13
|
-
:ripple="false"
|
|
14
|
-
color="Grey_Lighten-2"
|
|
15
|
-
text-color="Grey_Lighten-2"
|
|
16
|
-
toggle-color="positive"
|
|
17
|
-
toggle-text-color="positive"
|
|
18
|
-
|
|
19
|
-
class="s-btn-toggle"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
&:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
box-shadow
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
&:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
font-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
font-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<q-btn-toggle
|
|
3
|
+
v-model="btnValue"
|
|
4
|
+
@update:modelValue="
|
|
5
|
+
val => {
|
|
6
|
+
$emit('update:model-value', val);
|
|
7
|
+
}
|
|
8
|
+
"
|
|
9
|
+
no-caps
|
|
10
|
+
no-wrap
|
|
11
|
+
outline
|
|
12
|
+
unelevated
|
|
13
|
+
:ripple="false"
|
|
14
|
+
color="Grey_Lighten-2"
|
|
15
|
+
text-color="Grey_Lighten-2"
|
|
16
|
+
toggle-color="positive"
|
|
17
|
+
toggle-text-color="positive"
|
|
18
|
+
class="s-btn-toggle"
|
|
19
|
+
:class="size === 'md' ? 's-btn-toggle-md' : 's-btn-toggle-sm'"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import { ref, defineComponent, watch } from 'vue';
|
|
25
|
+
import { QBtnToggle } from 'quasar';
|
|
26
|
+
|
|
27
|
+
export default defineComponent({
|
|
28
|
+
name: 'SButtonToggle',
|
|
29
|
+
components: {
|
|
30
|
+
QBtnToggle,
|
|
31
|
+
},
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: [Number, String, Object],
|
|
34
|
+
size: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: 'sm',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
setup(props) {
|
|
40
|
+
const btnValue = ref(props.modelValue);
|
|
41
|
+
watch(
|
|
42
|
+
() => props.modelValue,
|
|
43
|
+
newVal => {
|
|
44
|
+
btnValue.value = newVal;
|
|
45
|
+
},
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
btnValue,
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss">
|
|
56
|
+
@import '../css/quasar.variables.scss';
|
|
57
|
+
|
|
58
|
+
.s-btn-toggle.q-btn-group {
|
|
59
|
+
.q-btn {
|
|
60
|
+
&:first-of-type {
|
|
61
|
+
border-radius: 4px 0 0 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:last-of-type {
|
|
65
|
+
border-radius: 0 4px 4px 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:before {
|
|
69
|
+
border-left: 1px solid $Grey_Lighten-2 !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
> .q-focus-helper {
|
|
74
|
+
background-color: $positive !important;
|
|
75
|
+
opacity: 1 !important;
|
|
76
|
+
|
|
77
|
+
&:before,
|
|
78
|
+
&:after {
|
|
79
|
+
background-color: $positive !important;
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.q-btn__content {
|
|
85
|
+
> span {
|
|
86
|
+
color: white !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
+ .q-btn:not(.text-positive):before {
|
|
91
|
+
border-left: none !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:not(:last-child) {
|
|
96
|
+
&:hover {
|
|
97
|
+
box-shadow: 1px 0 0 $positive !important;
|
|
98
|
+
transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
99
|
+
z-index: 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.q-btn--active {
|
|
104
|
+
background: $positive !important;
|
|
105
|
+
color: white !important;
|
|
106
|
+
|
|
107
|
+
&:before {
|
|
108
|
+
border: 1px solid $positive !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.q-btn__content {
|
|
112
|
+
> span {
|
|
113
|
+
color: white !important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[aria-pressed='true'] {
|
|
120
|
+
&:before {
|
|
121
|
+
border: 1px solid $positive !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:not(:last-child) {
|
|
125
|
+
&:before {
|
|
126
|
+
border-right: none !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.q-btn {
|
|
130
|
+
box-shadow: 1px 0 0 $positive !important;
|
|
131
|
+
z-index: 2;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& + .q-btn {
|
|
136
|
+
&:before {
|
|
137
|
+
border-left: none !important;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.q-btn--active {
|
|
142
|
+
&:hover {
|
|
143
|
+
.q-btn__content {
|
|
144
|
+
> span {
|
|
145
|
+
color: white !important;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
> .q-focus-helper {
|
|
153
|
+
background-color: $positive !important;
|
|
154
|
+
opacity: 1 !important;
|
|
155
|
+
|
|
156
|
+
&:before,
|
|
157
|
+
&:after {
|
|
158
|
+
background-color: $positive !important;
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.q-btn__content {
|
|
164
|
+
> span {
|
|
165
|
+
color: white !important;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.s-btn-toggle-sm {
|
|
173
|
+
.q-btn {
|
|
174
|
+
padding: $button-padding-sm;
|
|
175
|
+
min-height: 0;
|
|
176
|
+
.q-btn__content {
|
|
177
|
+
height: fit-content;
|
|
178
|
+
flex: none;
|
|
179
|
+
> span {
|
|
180
|
+
line-height: $default-line-height;
|
|
181
|
+
font-size: $default-font !important;
|
|
182
|
+
font-weight: $default-font-weight;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.s-btn-toggle-md {
|
|
189
|
+
.q-btn {
|
|
190
|
+
padding: $button-padding-md;
|
|
191
|
+
|
|
192
|
+
.q-btn__content {
|
|
193
|
+
> span {
|
|
194
|
+
line-height: $line-height-md !important;
|
|
195
|
+
font-size: $font-md !important;
|
|
196
|
+
font-weight: $font-weight-md !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
</style>
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
&:first-of-type {
|
|
476
476
|
padding: 0 8px 0 24px;
|
|
477
477
|
line-height: 100%;
|
|
478
|
-
> .q-checkbox {
|
|
478
|
+
> .q-checkbox:not(.s-checkbox) {
|
|
479
479
|
@extend %checkbox;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
&:first-of-type {
|
|
489
489
|
padding: 0 8px 0 24px;
|
|
490
490
|
line-height: 100%;
|
|
491
|
-
> .q-checkbox {
|
|
491
|
+
> .q-checkbox:not(.s-checkbox) {
|
|
492
492
|
@extend %checkbox;
|
|
493
493
|
}
|
|
494
494
|
}
|