quasar-ui-sellmate-ui-kit 3.0.3 → 3.0.5
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/.prettierrc +25 -25
- package/README.md +156 -156
- 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 +3829 -3829
- package/dist/index.umd.min.js +2 -2
- package/package.json +83 -83
- package/src/assets/icons.js +28 -28
- package/src/components/SBreadcrumbs.vue +55 -55
- package/src/components/SButton.vue +206 -206
- package/src/components/SButtonGroup.vue +41 -41
- package/src/components/SButtonToggle.vue +200 -200
- package/src/components/SCaution.vue +102 -102
- package/src/components/SCheckbox.vue +123 -123
- package/src/components/SChip.vue +99 -99
- package/src/components/SDate.vue +717 -717
- package/src/components/SDateAutoRangePicker.vue +341 -341
- package/src/components/SDatePicker.vue +472 -472
- package/src/components/SDateRange.vue +470 -470
- package/src/components/SDateRangePicker.vue +660 -660
- package/src/components/SDateTimePicker.vue +349 -349
- package/src/components/SDialog.vue +250 -250
- package/src/components/SDropdown.vue +216 -216
- package/src/components/SEditor.vue +490 -490
- package/src/components/SFilePicker.vue +207 -207
- package/src/components/SHelp.vue +146 -146
- package/src/components/SInput.vue +343 -343
- package/src/components/SInputCounter.vue +46 -46
- package/src/components/SInputNumber.vue +179 -179
- package/src/components/SList.vue +29 -29
- package/src/components/SMarkupTable.vue +141 -141
- package/src/components/SPagination.vue +266 -266
- package/src/components/SRadio.vue +78 -78
- package/src/components/SRouteTab.vue +67 -67
- package/src/components/SSelect.vue +294 -294
- package/src/components/SSelectCheckbox.vue +222 -222
- package/src/components/SSelectCustom.vue +189 -189
- package/src/components/SSelectGroupCheckbox.vue +235 -235
- package/src/components/SSelectSearch.vue +261 -261
- package/src/components/SSelectSearchAutoComplete.vue +172 -172
- package/src/components/SSelectSearchCheckbox.vue +356 -356
- package/src/components/SStringToInput.vue +66 -66
- package/src/components/STab.vue +77 -77
- package/src/components/STable.vue +425 -425
- package/src/components/STableTree.vue +210 -210
- package/src/components/STabs.vue +32 -32
- package/src/components/STimePicker.vue +159 -159
- package/src/components/SToggle.vue +68 -68
- package/src/components/STooltip.vue +209 -209
- package/src/components/SelelctItem.vue +21 -21
- package/src/components/TimePickerCard.vue +352 -352
- package/src/composables/date.js +11 -11
- package/src/composables/modelBinder.js +13 -13
- package/src/composables/table/use-navigator.js +110 -110
- package/src/composables/table/use-resizable.js +80 -80
- package/src/css/app.scss +90 -90
- package/src/css/default.scss +875 -875
- package/src/css/extends.scss +154 -154
- package/src/css/quasar.variables.scss +189 -189
- package/src/directives/Directive.js +7 -7
- package/src/index.scss +3 -3
- package/src/vue-plugin.js +91 -91
- package/tsconfig.json +35 -35
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-checkbox
|
|
3
|
-
dense
|
|
4
|
-
color="positive"
|
|
5
|
-
class="s-checkbox"
|
|
6
|
-
:class="length > 2 ? 'ck-margin-sm' : 'ck-margin-lg'"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { defineComponent } from 'vue';
|
|
12
|
-
import { QCheckbox } from 'quasar';
|
|
13
|
-
|
|
14
|
-
export default defineComponent({
|
|
15
|
-
name: 'SCheckbox',
|
|
16
|
-
components: {
|
|
17
|
-
QCheckbox,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
length: Number,
|
|
21
|
-
},
|
|
22
|
-
setup() {
|
|
23
|
-
return {};
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<style lang="scss">
|
|
29
|
-
@import "../css/quasar.variables.scss";
|
|
30
|
-
|
|
31
|
-
.s-checkbox {
|
|
32
|
-
margin: 0;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
align-items: center;
|
|
35
|
-
font-size: $default-font;
|
|
36
|
-
height: 1.667em;
|
|
37
|
-
&:hover {
|
|
38
|
-
.q-checkbox__inner {
|
|
39
|
-
.q-checkbox__bg {
|
|
40
|
-
border: 1px solid $positive;
|
|
41
|
-
background-color: $Blue_B_Lighten-5;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
& > .q-checkbox__inner {
|
|
46
|
-
min-width: 0;
|
|
47
|
-
width: 0.4em;
|
|
48
|
-
height: 0.4em;
|
|
49
|
-
&:before {
|
|
50
|
-
background: none !important;
|
|
51
|
-
}
|
|
52
|
-
.q-checkbox__bg {
|
|
53
|
-
border: 1px solid $Grey_Default;
|
|
54
|
-
width: 0.4em;
|
|
55
|
-
height: 0.4em;
|
|
56
|
-
background: white;
|
|
57
|
-
top: 50%;
|
|
58
|
-
left: 50%;
|
|
59
|
-
transform: translate(-50%, -50%);
|
|
60
|
-
.q-checkbox__svg {
|
|
61
|
-
width: 0.286em !important;
|
|
62
|
-
margin: 0 auto;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
&--indet,
|
|
66
|
-
&--truthy {
|
|
67
|
-
color: $positive !important;
|
|
68
|
-
.q-checkbox__bg {
|
|
69
|
-
border: none !important;
|
|
70
|
-
background-color: $positive !important;
|
|
71
|
-
}
|
|
72
|
-
path {
|
|
73
|
-
stroke-linecap: round;
|
|
74
|
-
stroke-linejoin: round;
|
|
75
|
-
&:first-of-type {
|
|
76
|
-
transform: scale(0.98);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
& > .q-checkbox__label {
|
|
82
|
-
padding-left: $between-margin-md;
|
|
83
|
-
color: $Grey_Darken-4;
|
|
84
|
-
line-height: $default-content-height;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.s-checkbox[aria-checked="true"].disabled {
|
|
89
|
-
.q-checkbox__inner {
|
|
90
|
-
.q-checkbox__bg {
|
|
91
|
-
background: $Grey_Lighten-4 !important;
|
|
92
|
-
border: 1px solid $Grey_Lighten-2 !important;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
.disabled.s-checkbox {
|
|
98
|
-
border: none !important;
|
|
99
|
-
background: none !important;
|
|
100
|
-
& > .q-checkbox__inner {
|
|
101
|
-
.q-checkbox__bg {
|
|
102
|
-
border: 1px solid $Grey_Lighten-2;
|
|
103
|
-
background: $Grey_Lighten-4;
|
|
104
|
-
.q-checkbox__svg {
|
|
105
|
-
color: $Grey_Default;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.ck-margin-sm {
|
|
112
|
-
margin-right: 20px;
|
|
113
|
-
&:last-of-type {
|
|
114
|
-
margin-right: 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
.ck-margin-lg {
|
|
118
|
-
margin-right: 40px;
|
|
119
|
-
&:last-of-type {
|
|
120
|
-
margin-right: 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-checkbox
|
|
3
|
+
dense
|
|
4
|
+
color="positive"
|
|
5
|
+
class="s-checkbox"
|
|
6
|
+
:class="length > 2 ? 'ck-margin-sm' : 'ck-margin-lg'"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { defineComponent } from 'vue';
|
|
12
|
+
import { QCheckbox } from 'quasar';
|
|
13
|
+
|
|
14
|
+
export default defineComponent({
|
|
15
|
+
name: 'SCheckbox',
|
|
16
|
+
components: {
|
|
17
|
+
QCheckbox,
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
length: Number,
|
|
21
|
+
},
|
|
22
|
+
setup() {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style lang="scss">
|
|
29
|
+
@import "../css/quasar.variables.scss";
|
|
30
|
+
|
|
31
|
+
.s-checkbox {
|
|
32
|
+
margin: 0;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
font-size: $default-font;
|
|
36
|
+
height: 1.667em;
|
|
37
|
+
&:hover {
|
|
38
|
+
.q-checkbox__inner {
|
|
39
|
+
.q-checkbox__bg {
|
|
40
|
+
border: 1px solid $positive;
|
|
41
|
+
background-color: $Blue_B_Lighten-5;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
& > .q-checkbox__inner {
|
|
46
|
+
min-width: 0;
|
|
47
|
+
width: 0.4em;
|
|
48
|
+
height: 0.4em;
|
|
49
|
+
&:before {
|
|
50
|
+
background: none !important;
|
|
51
|
+
}
|
|
52
|
+
.q-checkbox__bg {
|
|
53
|
+
border: 1px solid $Grey_Default;
|
|
54
|
+
width: 0.4em;
|
|
55
|
+
height: 0.4em;
|
|
56
|
+
background: white;
|
|
57
|
+
top: 50%;
|
|
58
|
+
left: 50%;
|
|
59
|
+
transform: translate(-50%, -50%);
|
|
60
|
+
.q-checkbox__svg {
|
|
61
|
+
width: 0.286em !important;
|
|
62
|
+
margin: 0 auto;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&--indet,
|
|
66
|
+
&--truthy {
|
|
67
|
+
color: $positive !important;
|
|
68
|
+
.q-checkbox__bg {
|
|
69
|
+
border: none !important;
|
|
70
|
+
background-color: $positive !important;
|
|
71
|
+
}
|
|
72
|
+
path {
|
|
73
|
+
stroke-linecap: round;
|
|
74
|
+
stroke-linejoin: round;
|
|
75
|
+
&:first-of-type {
|
|
76
|
+
transform: scale(0.98);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
& > .q-checkbox__label {
|
|
82
|
+
padding-left: $between-margin-md;
|
|
83
|
+
color: $Grey_Darken-4;
|
|
84
|
+
line-height: $default-content-height;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.s-checkbox[aria-checked="true"].disabled {
|
|
89
|
+
.q-checkbox__inner {
|
|
90
|
+
.q-checkbox__bg {
|
|
91
|
+
background: $Grey_Lighten-4 !important;
|
|
92
|
+
border: 1px solid $Grey_Lighten-2 !important;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
.disabled.s-checkbox {
|
|
98
|
+
border: none !important;
|
|
99
|
+
background: none !important;
|
|
100
|
+
& > .q-checkbox__inner {
|
|
101
|
+
.q-checkbox__bg {
|
|
102
|
+
border: 1px solid $Grey_Lighten-2;
|
|
103
|
+
background: $Grey_Lighten-4;
|
|
104
|
+
.q-checkbox__svg {
|
|
105
|
+
color: $Grey_Default;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ck-margin-sm {
|
|
112
|
+
margin-right: 20px;
|
|
113
|
+
&:last-of-type {
|
|
114
|
+
margin-right: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.ck-margin-lg {
|
|
118
|
+
margin-right: 40px;
|
|
119
|
+
&:last-of-type {
|
|
120
|
+
margin-right: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
</style>
|
package/src/components/SChip.vue
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-chip
|
|
3
|
-
class="no-hover row items-center text-color-Grey_Darken-4 s-chip"
|
|
4
|
-
square
|
|
5
|
-
removable
|
|
6
|
-
outline
|
|
7
|
-
dense
|
|
8
|
-
:clickable="!!inputValue"
|
|
9
|
-
color="Grey_Default"
|
|
10
|
-
:ripple="false"
|
|
11
|
-
:icon-remove="chipRemoveIcon"
|
|
12
|
-
>
|
|
13
|
-
<template v-if="inputValue">
|
|
14
|
-
<span
|
|
15
|
-
class="s-chip-input"
|
|
16
|
-
role="textbox"
|
|
17
|
-
id="inputSpan"
|
|
18
|
-
v-bind:contenteditable="!!inputValue"
|
|
19
|
-
@keypress="handleInput"
|
|
20
|
-
>
|
|
21
|
-
{{ inputValue }}
|
|
22
|
-
</span>
|
|
23
|
-
</template>
|
|
24
|
-
<slot></slot>
|
|
25
|
-
</q-chip>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import { defineComponent, ref, watch } from 'vue';
|
|
30
|
-
import { QChip } from 'quasar';
|
|
31
|
-
import { chipRemoveIcon } from '../assets/icons.js';
|
|
32
|
-
|
|
33
|
-
export default defineComponent({
|
|
34
|
-
name: 'SChip',
|
|
35
|
-
components: { QChip },
|
|
36
|
-
props: {
|
|
37
|
-
input: { type: String, default: '' },
|
|
38
|
-
},
|
|
39
|
-
setup(props, { emit }) {
|
|
40
|
-
const inputValue = ref(props.input);
|
|
41
|
-
watch(
|
|
42
|
-
() => props.input,
|
|
43
|
-
(val) => {
|
|
44
|
-
inputValue.value = val;
|
|
45
|
-
},
|
|
46
|
-
);
|
|
47
|
-
function handleInput(event) {
|
|
48
|
-
inputValue.value = event.target.outerText;
|
|
49
|
-
if (event.key === 'Enter') {
|
|
50
|
-
event.preventDefault();
|
|
51
|
-
event.target.blur();
|
|
52
|
-
emit('update:input', inputValue.value);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
chipRemoveIcon,
|
|
57
|
-
inputValue,
|
|
58
|
-
handleInput,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<style lang="scss">
|
|
65
|
-
@import "../css/quasar.variables.scss";
|
|
66
|
-
|
|
67
|
-
.s-chip {
|
|
68
|
-
padding: $with-icon-padding !important;
|
|
69
|
-
border-radius: $button-border-radius;
|
|
70
|
-
background-color: white;
|
|
71
|
-
min-height: 28px;
|
|
72
|
-
&:hover {
|
|
73
|
-
border-color: $Grey_Darken-4;
|
|
74
|
-
.q-focus-helper {
|
|
75
|
-
background: inherit;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
.q-chip__content {
|
|
79
|
-
color: $Grey_Darken-4;
|
|
80
|
-
font-size: $default-font;
|
|
81
|
-
font-weight: $default-font-weight;
|
|
82
|
-
height: $default-content-height;
|
|
83
|
-
min-height: $default-content-height;
|
|
84
|
-
}
|
|
85
|
-
.q-chip__icon--remove {
|
|
86
|
-
color: $Grey_Darken-4;
|
|
87
|
-
font-size: $icon-size-sm;
|
|
88
|
-
margin: 0;
|
|
89
|
-
margin-left: $default-icon-margin;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
.s-chip-input {
|
|
93
|
-
height: 28px;
|
|
94
|
-
padding: 4px 0 !important;
|
|
95
|
-
&:focus-visible {
|
|
96
|
-
outline: none;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-chip
|
|
3
|
+
class="no-hover row items-center text-color-Grey_Darken-4 s-chip"
|
|
4
|
+
square
|
|
5
|
+
removable
|
|
6
|
+
outline
|
|
7
|
+
dense
|
|
8
|
+
:clickable="!!inputValue"
|
|
9
|
+
color="Grey_Default"
|
|
10
|
+
:ripple="false"
|
|
11
|
+
:icon-remove="chipRemoveIcon"
|
|
12
|
+
>
|
|
13
|
+
<template v-if="inputValue">
|
|
14
|
+
<span
|
|
15
|
+
class="s-chip-input"
|
|
16
|
+
role="textbox"
|
|
17
|
+
id="inputSpan"
|
|
18
|
+
v-bind:contenteditable="!!inputValue"
|
|
19
|
+
@keypress="handleInput"
|
|
20
|
+
>
|
|
21
|
+
{{ inputValue }}
|
|
22
|
+
</span>
|
|
23
|
+
</template>
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</q-chip>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { defineComponent, ref, watch } from 'vue';
|
|
30
|
+
import { QChip } from 'quasar';
|
|
31
|
+
import { chipRemoveIcon } from '../assets/icons.js';
|
|
32
|
+
|
|
33
|
+
export default defineComponent({
|
|
34
|
+
name: 'SChip',
|
|
35
|
+
components: { QChip },
|
|
36
|
+
props: {
|
|
37
|
+
input: { type: String, default: '' },
|
|
38
|
+
},
|
|
39
|
+
setup(props, { emit }) {
|
|
40
|
+
const inputValue = ref(props.input);
|
|
41
|
+
watch(
|
|
42
|
+
() => props.input,
|
|
43
|
+
(val) => {
|
|
44
|
+
inputValue.value = val;
|
|
45
|
+
},
|
|
46
|
+
);
|
|
47
|
+
function handleInput(event) {
|
|
48
|
+
inputValue.value = event.target.outerText;
|
|
49
|
+
if (event.key === 'Enter') {
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
event.target.blur();
|
|
52
|
+
emit('update:input', inputValue.value);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
chipRemoveIcon,
|
|
57
|
+
inputValue,
|
|
58
|
+
handleInput,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style lang="scss">
|
|
65
|
+
@import "../css/quasar.variables.scss";
|
|
66
|
+
|
|
67
|
+
.s-chip {
|
|
68
|
+
padding: $with-icon-padding !important;
|
|
69
|
+
border-radius: $button-border-radius;
|
|
70
|
+
background-color: white;
|
|
71
|
+
min-height: 28px;
|
|
72
|
+
&:hover {
|
|
73
|
+
border-color: $Grey_Darken-4;
|
|
74
|
+
.q-focus-helper {
|
|
75
|
+
background: inherit;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.q-chip__content {
|
|
79
|
+
color: $Grey_Darken-4;
|
|
80
|
+
font-size: $default-font;
|
|
81
|
+
font-weight: $default-font-weight;
|
|
82
|
+
height: $default-content-height;
|
|
83
|
+
min-height: $default-content-height;
|
|
84
|
+
}
|
|
85
|
+
.q-chip__icon--remove {
|
|
86
|
+
color: $Grey_Darken-4;
|
|
87
|
+
font-size: $icon-size-sm;
|
|
88
|
+
margin: 0;
|
|
89
|
+
margin-left: $default-icon-margin;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.s-chip-input {
|
|
93
|
+
height: 28px;
|
|
94
|
+
padding: 4px 0 !important;
|
|
95
|
+
&:focus-visible {
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</style>
|