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
package/src/components/SHelp.vue
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-btn
|
|
3
|
-
:outline="!helpPopup"
|
|
4
|
-
rounded
|
|
5
|
-
unelevated
|
|
6
|
-
:ripple="false"
|
|
7
|
-
:color="color ? color : 'info'"
|
|
8
|
-
:icon="helpOutlineIcon"
|
|
9
|
-
:label="label"
|
|
10
|
-
no-wrap
|
|
11
|
-
class="s-help-btn"
|
|
12
|
-
:class="{ 's-help-popup-open': helpPopup, 'bg-white': !helpPopup }"
|
|
13
|
-
>
|
|
14
|
-
<q-popup-proxy v-model="helpPopup" :class="`bg-white s-help-menu ${popupClass}`">
|
|
15
|
-
<q-btn
|
|
16
|
-
flat
|
|
17
|
-
dense
|
|
18
|
-
:ripple="false"
|
|
19
|
-
:icon="closeIcon"
|
|
20
|
-
color="Grey_Default"
|
|
21
|
-
@click="helpPopup = false"
|
|
22
|
-
class="close-btn q-pa-none"
|
|
23
|
-
size="20px"
|
|
24
|
-
/>
|
|
25
|
-
<div class="flex items-center">
|
|
26
|
-
<q-icon :name="helpOutlineIcon" size="23px" color="info" />
|
|
27
|
-
<span>{{ title }}</span>
|
|
28
|
-
</div>
|
|
29
|
-
<slot name="s-help-message">
|
|
30
|
-
<ul>
|
|
31
|
-
<li v-for="(m, i) in message" :key="i">
|
|
32
|
-
<span v-html="m"></span>
|
|
33
|
-
</li>
|
|
34
|
-
</ul>
|
|
35
|
-
</slot>
|
|
36
|
-
</q-popup-proxy>
|
|
37
|
-
</q-btn>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
import { defineComponent, ref } from 'vue';
|
|
42
|
-
import { QBtn, QPopupProxy, QIcon } from 'quasar';
|
|
43
|
-
import { helpOutlineIcon, closeIcon } from '../assets/icons.js';
|
|
44
|
-
|
|
45
|
-
export default defineComponent({
|
|
46
|
-
name: 'SHelp',
|
|
47
|
-
components: {
|
|
48
|
-
QBtn,
|
|
49
|
-
QPopupProxy,
|
|
50
|
-
QIcon,
|
|
51
|
-
},
|
|
52
|
-
props: {
|
|
53
|
-
title: String,
|
|
54
|
-
label: String,
|
|
55
|
-
message: Array,
|
|
56
|
-
color: String,
|
|
57
|
-
popupClass: String,
|
|
58
|
-
},
|
|
59
|
-
setup() {
|
|
60
|
-
return {
|
|
61
|
-
helpOutlineIcon,
|
|
62
|
-
closeIcon,
|
|
63
|
-
helpPopup: ref(false),
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
</script>
|
|
68
|
-
|
|
69
|
-
<style lang="scss">
|
|
70
|
-
@import "../css/quasar.variables.scss";
|
|
71
|
-
|
|
72
|
-
.s-help-btn {
|
|
73
|
-
padding: 4px 16px 4px 10px;
|
|
74
|
-
min-height: $default-height;
|
|
75
|
-
height: $default-height;
|
|
76
|
-
&:before {
|
|
77
|
-
border-color: $Grey_Lighten-2;
|
|
78
|
-
}
|
|
79
|
-
.q-btn__content {
|
|
80
|
-
.q-icon {
|
|
81
|
-
margin-right: $between-margin-md;
|
|
82
|
-
font-size: $icon-size-md;
|
|
83
|
-
}
|
|
84
|
-
> .block {
|
|
85
|
-
font-size: $default-font;
|
|
86
|
-
color: $Grey_Darken-4;
|
|
87
|
-
line-height: $default-content-height;
|
|
88
|
-
height: $default-content-height;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
.s-help-popup-open {
|
|
93
|
-
.q-btn__content {
|
|
94
|
-
& > span {
|
|
95
|
-
color: white !important;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.s-help-menu {
|
|
100
|
-
width: fit-content;
|
|
101
|
-
margin-top: $between-margin-md !important;
|
|
102
|
-
border-radius: 8px;
|
|
103
|
-
padding: 20px 32px;
|
|
104
|
-
position: relative;
|
|
105
|
-
.close-btn {
|
|
106
|
-
position: absolute;
|
|
107
|
-
top: 12px;
|
|
108
|
-
right: 12px;
|
|
109
|
-
min-height: 1em;
|
|
110
|
-
height: 1em;
|
|
111
|
-
width: 1em;
|
|
112
|
-
.q-btn__content {
|
|
113
|
-
.q-icon {
|
|
114
|
-
height: 20px;
|
|
115
|
-
width: 20px;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
> div {
|
|
120
|
-
margin-bottom: $between-margin-md;
|
|
121
|
-
.q-icon {
|
|
122
|
-
margin-right: $between-margin-md;
|
|
123
|
-
}
|
|
124
|
-
span {
|
|
125
|
-
font-size: $font-md;
|
|
126
|
-
font-weight: 700;
|
|
127
|
-
color: $Grey_Darken-4;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
ul {
|
|
131
|
-
margin: 0;
|
|
132
|
-
padding: 0;
|
|
133
|
-
li {
|
|
134
|
-
list-style: none;
|
|
135
|
-
font-size: $default-font;
|
|
136
|
-
line-height: $double-line-height;
|
|
137
|
-
&:before {
|
|
138
|
-
content: "•";
|
|
139
|
-
font-size: 14px;
|
|
140
|
-
line-height: 20px;
|
|
141
|
-
margin: 0 12px 0 8px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-btn
|
|
3
|
+
:outline="!helpPopup"
|
|
4
|
+
rounded
|
|
5
|
+
unelevated
|
|
6
|
+
:ripple="false"
|
|
7
|
+
:color="color ? color : 'info'"
|
|
8
|
+
:icon="helpOutlineIcon"
|
|
9
|
+
:label="label"
|
|
10
|
+
no-wrap
|
|
11
|
+
class="s-help-btn"
|
|
12
|
+
:class="{ 's-help-popup-open': helpPopup, 'bg-white': !helpPopup }"
|
|
13
|
+
>
|
|
14
|
+
<q-popup-proxy v-model="helpPopup" :class="`bg-white s-help-menu ${popupClass}`">
|
|
15
|
+
<q-btn
|
|
16
|
+
flat
|
|
17
|
+
dense
|
|
18
|
+
:ripple="false"
|
|
19
|
+
:icon="closeIcon"
|
|
20
|
+
color="Grey_Default"
|
|
21
|
+
@click="helpPopup = false"
|
|
22
|
+
class="close-btn q-pa-none"
|
|
23
|
+
size="20px"
|
|
24
|
+
/>
|
|
25
|
+
<div class="flex items-center">
|
|
26
|
+
<q-icon :name="helpOutlineIcon" size="23px" color="info" />
|
|
27
|
+
<span>{{ title }}</span>
|
|
28
|
+
</div>
|
|
29
|
+
<slot name="s-help-message">
|
|
30
|
+
<ul>
|
|
31
|
+
<li v-for="(m, i) in message" :key="i">
|
|
32
|
+
<span v-html="m"></span>
|
|
33
|
+
</li>
|
|
34
|
+
</ul>
|
|
35
|
+
</slot>
|
|
36
|
+
</q-popup-proxy>
|
|
37
|
+
</q-btn>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import { defineComponent, ref } from 'vue';
|
|
42
|
+
import { QBtn, QPopupProxy, QIcon } from 'quasar';
|
|
43
|
+
import { helpOutlineIcon, closeIcon } from '../assets/icons.js';
|
|
44
|
+
|
|
45
|
+
export default defineComponent({
|
|
46
|
+
name: 'SHelp',
|
|
47
|
+
components: {
|
|
48
|
+
QBtn,
|
|
49
|
+
QPopupProxy,
|
|
50
|
+
QIcon,
|
|
51
|
+
},
|
|
52
|
+
props: {
|
|
53
|
+
title: String,
|
|
54
|
+
label: String,
|
|
55
|
+
message: Array,
|
|
56
|
+
color: String,
|
|
57
|
+
popupClass: String,
|
|
58
|
+
},
|
|
59
|
+
setup() {
|
|
60
|
+
return {
|
|
61
|
+
helpOutlineIcon,
|
|
62
|
+
closeIcon,
|
|
63
|
+
helpPopup: ref(false),
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style lang="scss">
|
|
70
|
+
@import "../css/quasar.variables.scss";
|
|
71
|
+
|
|
72
|
+
.s-help-btn {
|
|
73
|
+
padding: 4px 16px 4px 10px;
|
|
74
|
+
min-height: $default-height;
|
|
75
|
+
height: $default-height;
|
|
76
|
+
&:before {
|
|
77
|
+
border-color: $Grey_Lighten-2;
|
|
78
|
+
}
|
|
79
|
+
.q-btn__content {
|
|
80
|
+
.q-icon {
|
|
81
|
+
margin-right: $between-margin-md;
|
|
82
|
+
font-size: $icon-size-md;
|
|
83
|
+
}
|
|
84
|
+
> .block {
|
|
85
|
+
font-size: $default-font;
|
|
86
|
+
color: $Grey_Darken-4;
|
|
87
|
+
line-height: $default-content-height;
|
|
88
|
+
height: $default-content-height;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.s-help-popup-open {
|
|
93
|
+
.q-btn__content {
|
|
94
|
+
& > span {
|
|
95
|
+
color: white !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.s-help-menu {
|
|
100
|
+
width: fit-content;
|
|
101
|
+
margin-top: $between-margin-md !important;
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
padding: 20px 32px;
|
|
104
|
+
position: relative;
|
|
105
|
+
.close-btn {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 12px;
|
|
108
|
+
right: 12px;
|
|
109
|
+
min-height: 1em;
|
|
110
|
+
height: 1em;
|
|
111
|
+
width: 1em;
|
|
112
|
+
.q-btn__content {
|
|
113
|
+
.q-icon {
|
|
114
|
+
height: 20px;
|
|
115
|
+
width: 20px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
> div {
|
|
120
|
+
margin-bottom: $between-margin-md;
|
|
121
|
+
.q-icon {
|
|
122
|
+
margin-right: $between-margin-md;
|
|
123
|
+
}
|
|
124
|
+
span {
|
|
125
|
+
font-size: $font-md;
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
color: $Grey_Darken-4;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
ul {
|
|
131
|
+
margin: 0;
|
|
132
|
+
padding: 0;
|
|
133
|
+
li {
|
|
134
|
+
list-style: none;
|
|
135
|
+
font-size: $default-font;
|
|
136
|
+
line-height: $double-line-height;
|
|
137
|
+
&:before {
|
|
138
|
+
content: "•";
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
line-height: 20px;
|
|
141
|
+
margin: 0 12px 0 8px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
</style>
|