quasar-ui-sellmate-ui-kit 3.11.1 → 3.11.2
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/.eslintrc.cjs +104 -104
- 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 +4417 -4405
- package/dist/index.umd.min.js +2 -2
- package/html/assets/index-iPSQW1bz.css +1 -1
- package/html/assets/index-pzCGhZhc.js +35 -35
- package/html/favicon.svg +5 -5
- package/html/index.html +26 -26
- package/package.json +95 -95
- package/src/assets/icons.js +63 -63
- package/src/components/SBadge.vue +75 -75
- 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 +143 -143
- package/src/components/SCheckbox.vue +123 -123
- package/src/components/SChip.vue +99 -99
- package/src/components/SDate.vue +664 -664
- package/src/components/SDateAutoRangePicker.vue +311 -311
- package/src/components/SDatePicker.vue +465 -465
- package/src/components/SDateRange.vue +382 -382
- package/src/components/SDateRangePicker.vue +582 -582
- package/src/components/SDateTimePicker.vue +259 -259
- package/src/components/SDialog.vue +250 -250
- package/src/components/SDropdown.vue +273 -273
- package/src/components/SEditor.vue +590 -590
- package/src/components/SFilePicker.vue +207 -207
- package/src/components/SHelp.vue +126 -126
- package/src/components/SHelpMessage.vue +57 -57
- package/src/components/SInput.vue +379 -379
- package/src/components/SInputCounter.vue +46 -46
- package/src/components/SInputNumber.vue +194 -194
- package/src/components/SList.vue +29 -29
- package/src/components/SMarkupTable.vue +142 -142
- package/src/components/SPagination.vue +345 -345
- package/src/components/SRadio.vue +78 -78
- package/src/components/SRouteTab.vue +67 -67
- package/src/components/SSelect.vue +299 -299
- package/src/components/SSelectCheckbox.vue +238 -238
- package/src/components/SSelectCustom.vue +189 -189
- package/src/components/SSelectGroupCheckbox.vue +372 -372
- package/src/components/SSelectSearchAutoComplete.vue +172 -172
- package/src/components/SSelectSearchCheckbox.vue +360 -360
- package/src/components/SStringToInput.vue +66 -66
- package/src/components/STab.vue +147 -147
- package/src/components/STable.vue +21 -9
- package/src/components/STableTree.vue +502 -502
- package/src/components/STabs.vue +32 -32
- package/src/components/STag.vue +152 -152
- package/src/components/STimePicker.vue +186 -186
- package/src/components/SToggle.vue +68 -68
- package/src/components/STooltip.vue +209 -209
- package/src/components/SYearMonthPicker.vue +211 -211
- package/src/components/SelelctItem.vue +21 -21
- package/src/components/TableTreeNode.vue +177 -177
- package/src/components/TimePickerCard.vue +393 -393
- package/src/components/__tests__/SButton.test.js +18 -18
- package/src/components/__tests__/SInput.test.js +42 -42
- package/src/components/__tests__/SInputCounter.test.js +30 -30
- package/src/components/__tests__/SInputNumber.test.js +32 -32
- package/src/components/__tests__/STimePicker.spec.js +78 -78
- package/src/composables/date.js +11 -11
- package/src/composables/modelBinder.js +13 -13
- package/src/composables/resizable.js +55 -55
- package/src/composables/table/use-navigator.js +110 -110
- package/src/composables/table/use-resizable-tree.js +96 -96
- package/src/composables/table/use-resizable.js +187 -187
- package/src/constants/locale.js +102 -102
- package/src/css/app.scss +106 -106
- package/src/css/default.scss +393 -393
- package/src/css/extends.scss +177 -177
- package/src/css/quasar.variables.scss +187 -187
- package/src/directives/Directive.js +7 -7
- package/src/index.scss +3 -3
- package/src/vue-plugin.js +93 -93
- package/tsconfig.json +35 -35
- package/vitest.config.ts +31 -31
package/src/components/STabs.vue
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-tabs
|
|
3
|
-
align="left"
|
|
4
|
-
active-color="positive"
|
|
5
|
-
indicator-color="transparent"
|
|
6
|
-
no-caps
|
|
7
|
-
dense
|
|
8
|
-
class="s-tabs text-grey"
|
|
9
|
-
:model-value="tab"
|
|
10
|
-
>
|
|
11
|
-
<slot></slot>
|
|
12
|
-
</q-tabs>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import { defineComponent, ref } from 'vue';
|
|
17
|
-
import { QTabs } from 'quasar';
|
|
18
|
-
|
|
19
|
-
export default defineComponent({
|
|
20
|
-
name: 'STabs',
|
|
21
|
-
components: {
|
|
22
|
-
QTabs,
|
|
23
|
-
},
|
|
24
|
-
setup(props) {
|
|
25
|
-
const tab = ref(props.modelValue);
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
tab,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<q-tabs
|
|
3
|
+
align="left"
|
|
4
|
+
active-color="positive"
|
|
5
|
+
indicator-color="transparent"
|
|
6
|
+
no-caps
|
|
7
|
+
dense
|
|
8
|
+
class="s-tabs text-grey"
|
|
9
|
+
:model-value="tab"
|
|
10
|
+
>
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</q-tabs>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import { defineComponent, ref } from 'vue';
|
|
17
|
+
import { QTabs } from 'quasar';
|
|
18
|
+
|
|
19
|
+
export default defineComponent({
|
|
20
|
+
name: 'STabs',
|
|
21
|
+
components: {
|
|
22
|
+
QTabs,
|
|
23
|
+
},
|
|
24
|
+
setup(props) {
|
|
25
|
+
const tab = ref(props.modelValue);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
tab,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
</script>
|
package/src/components/STag.vue
CHANGED
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-badge
|
|
3
|
-
class="s-tag flex no-wrap flex-center"
|
|
4
|
-
:class="{
|
|
5
|
-
's-tag__sm': size === 'sm',
|
|
6
|
-
's-tag__md': size === 'md',
|
|
7
|
-
's-tag__lg': size === 'lg',
|
|
8
|
-
's-tag__rounded': rounded === true,
|
|
9
|
-
}"
|
|
10
|
-
:color="computedColor"
|
|
11
|
-
:text-color="computedTextColor"
|
|
12
|
-
>
|
|
13
|
-
<slot>
|
|
14
|
-
<q-icon v-if="$attrs.icon && size === 'lg'" :name="$attrs.icon" size="32px" class="q-mr-sm" />
|
|
15
|
-
<span v-html="label" :class="textClass"></span>
|
|
16
|
-
</slot>
|
|
17
|
-
</q-badge>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import { defineComponent, computed } from 'vue';
|
|
22
|
-
import { QBadge, QIcon } from 'quasar';
|
|
23
|
-
|
|
24
|
-
const colorStatusList = {
|
|
25
|
-
Grey: {
|
|
26
|
-
color: 'Grey_Lighten-4',
|
|
27
|
-
textColor: 'Grey_Darken-1',
|
|
28
|
-
},
|
|
29
|
-
Red: {
|
|
30
|
-
color: 'Red_Lighten-6',
|
|
31
|
-
textColor: 'Red_Lighten-1',
|
|
32
|
-
},
|
|
33
|
-
Orange: {
|
|
34
|
-
color: 'Orange_Lighten-6',
|
|
35
|
-
textColor: 'Orange_Default',
|
|
36
|
-
},
|
|
37
|
-
Yellow: {
|
|
38
|
-
color: 'Yellow_Lighten-5',
|
|
39
|
-
textColor: 'Yellow_Darken-2',
|
|
40
|
-
},
|
|
41
|
-
Green: {
|
|
42
|
-
color: 'Green_Lighten-6',
|
|
43
|
-
textColor: 'Green_Lighten-1',
|
|
44
|
-
},
|
|
45
|
-
Blue: {
|
|
46
|
-
color: 'Blue_C_Lighten-6',
|
|
47
|
-
textColor: 'Blue_C_Default',
|
|
48
|
-
},
|
|
49
|
-
Darkblue: {
|
|
50
|
-
color: 'Blue_B_Lighten-6',
|
|
51
|
-
textColor: 'Blue_B_Lighten-1',
|
|
52
|
-
},
|
|
53
|
-
Indigo: {
|
|
54
|
-
color: 'Blue_C_Lighten-7',
|
|
55
|
-
textColor: 'Blue_C_Darken-2',
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export default defineComponent({
|
|
60
|
-
name: 'STag',
|
|
61
|
-
components: { QBadge, QIcon },
|
|
62
|
-
props: {
|
|
63
|
-
label: String,
|
|
64
|
-
size: {
|
|
65
|
-
/**
|
|
66
|
-
* @type {'sm' | 'md' | 'lg'} type
|
|
67
|
-
*/
|
|
68
|
-
type: String,
|
|
69
|
-
default: 'md',
|
|
70
|
-
},
|
|
71
|
-
color: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: 'Blue_C_Lighten-6',
|
|
74
|
-
},
|
|
75
|
-
textColor: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: 'positive',
|
|
78
|
-
},
|
|
79
|
-
colorStatus: {
|
|
80
|
-
/**
|
|
81
|
-
* @type {'Grey' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Darkblue' | 'Indigo'} type
|
|
82
|
-
*/
|
|
83
|
-
type: String,
|
|
84
|
-
default: '',
|
|
85
|
-
},
|
|
86
|
-
textClass: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: '',
|
|
89
|
-
},
|
|
90
|
-
rounded: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
setup(props) {
|
|
96
|
-
const computedColor = computed(() =>
|
|
97
|
-
props.colorStatus ? colorStatusList[props.colorStatus].color : props.color,
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
const computedTextColor = computed(() =>
|
|
101
|
-
props.colorStatus ? colorStatusList[props.colorStatus].textColor : props.textColor,
|
|
102
|
-
);
|
|
103
|
-
return {
|
|
104
|
-
colorStatusList,
|
|
105
|
-
computedColor,
|
|
106
|
-
computedTextColor,
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
</script>
|
|
111
|
-
|
|
112
|
-
<style scoped lang="scss">
|
|
113
|
-
.s-tag {
|
|
114
|
-
border-radius: 4px;
|
|
115
|
-
box-sizing: border-box;
|
|
116
|
-
&__sm {
|
|
117
|
-
padding: 1px 6px;
|
|
118
|
-
height: 20px;
|
|
119
|
-
> span {
|
|
120
|
-
line-height: 18px;
|
|
121
|
-
font: {
|
|
122
|
-
size: 11px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
&__md {
|
|
127
|
-
padding: 2px 8px;
|
|
128
|
-
height: 24px;
|
|
129
|
-
> span {
|
|
130
|
-
line-height: 20px;
|
|
131
|
-
font: {
|
|
132
|
-
size: 12px;
|
|
133
|
-
weight: 700;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
&__lg {
|
|
138
|
-
padding: 4px 16px;
|
|
139
|
-
height: 48px;
|
|
140
|
-
> span {
|
|
141
|
-
line-height: 40px;
|
|
142
|
-
font: {
|
|
143
|
-
size: 24px;
|
|
144
|
-
weight: 700;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
&__rounded {
|
|
149
|
-
border-radius: 20px;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-badge
|
|
3
|
+
class="s-tag flex no-wrap flex-center"
|
|
4
|
+
:class="{
|
|
5
|
+
's-tag__sm': size === 'sm',
|
|
6
|
+
's-tag__md': size === 'md',
|
|
7
|
+
's-tag__lg': size === 'lg',
|
|
8
|
+
's-tag__rounded': rounded === true,
|
|
9
|
+
}"
|
|
10
|
+
:color="computedColor"
|
|
11
|
+
:text-color="computedTextColor"
|
|
12
|
+
>
|
|
13
|
+
<slot>
|
|
14
|
+
<q-icon v-if="$attrs.icon && size === 'lg'" :name="$attrs.icon" size="32px" class="q-mr-sm" />
|
|
15
|
+
<span v-html="label" :class="textClass"></span>
|
|
16
|
+
</slot>
|
|
17
|
+
</q-badge>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
import { defineComponent, computed } from 'vue';
|
|
22
|
+
import { QBadge, QIcon } from 'quasar';
|
|
23
|
+
|
|
24
|
+
const colorStatusList = {
|
|
25
|
+
Grey: {
|
|
26
|
+
color: 'Grey_Lighten-4',
|
|
27
|
+
textColor: 'Grey_Darken-1',
|
|
28
|
+
},
|
|
29
|
+
Red: {
|
|
30
|
+
color: 'Red_Lighten-6',
|
|
31
|
+
textColor: 'Red_Lighten-1',
|
|
32
|
+
},
|
|
33
|
+
Orange: {
|
|
34
|
+
color: 'Orange_Lighten-6',
|
|
35
|
+
textColor: 'Orange_Default',
|
|
36
|
+
},
|
|
37
|
+
Yellow: {
|
|
38
|
+
color: 'Yellow_Lighten-5',
|
|
39
|
+
textColor: 'Yellow_Darken-2',
|
|
40
|
+
},
|
|
41
|
+
Green: {
|
|
42
|
+
color: 'Green_Lighten-6',
|
|
43
|
+
textColor: 'Green_Lighten-1',
|
|
44
|
+
},
|
|
45
|
+
Blue: {
|
|
46
|
+
color: 'Blue_C_Lighten-6',
|
|
47
|
+
textColor: 'Blue_C_Default',
|
|
48
|
+
},
|
|
49
|
+
Darkblue: {
|
|
50
|
+
color: 'Blue_B_Lighten-6',
|
|
51
|
+
textColor: 'Blue_B_Lighten-1',
|
|
52
|
+
},
|
|
53
|
+
Indigo: {
|
|
54
|
+
color: 'Blue_C_Lighten-7',
|
|
55
|
+
textColor: 'Blue_C_Darken-2',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default defineComponent({
|
|
60
|
+
name: 'STag',
|
|
61
|
+
components: { QBadge, QIcon },
|
|
62
|
+
props: {
|
|
63
|
+
label: String,
|
|
64
|
+
size: {
|
|
65
|
+
/**
|
|
66
|
+
* @type {'sm' | 'md' | 'lg'} type
|
|
67
|
+
*/
|
|
68
|
+
type: String,
|
|
69
|
+
default: 'md',
|
|
70
|
+
},
|
|
71
|
+
color: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'Blue_C_Lighten-6',
|
|
74
|
+
},
|
|
75
|
+
textColor: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'positive',
|
|
78
|
+
},
|
|
79
|
+
colorStatus: {
|
|
80
|
+
/**
|
|
81
|
+
* @type {'Grey' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Darkblue' | 'Indigo'} type
|
|
82
|
+
*/
|
|
83
|
+
type: String,
|
|
84
|
+
default: '',
|
|
85
|
+
},
|
|
86
|
+
textClass: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: '',
|
|
89
|
+
},
|
|
90
|
+
rounded: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: false,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
setup(props) {
|
|
96
|
+
const computedColor = computed(() =>
|
|
97
|
+
props.colorStatus ? colorStatusList[props.colorStatus].color : props.color,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const computedTextColor = computed(() =>
|
|
101
|
+
props.colorStatus ? colorStatusList[props.colorStatus].textColor : props.textColor,
|
|
102
|
+
);
|
|
103
|
+
return {
|
|
104
|
+
colorStatusList,
|
|
105
|
+
computedColor,
|
|
106
|
+
computedTextColor,
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
</script>
|
|
111
|
+
|
|
112
|
+
<style scoped lang="scss">
|
|
113
|
+
.s-tag {
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
&__sm {
|
|
117
|
+
padding: 1px 6px;
|
|
118
|
+
height: 20px;
|
|
119
|
+
> span {
|
|
120
|
+
line-height: 18px;
|
|
121
|
+
font: {
|
|
122
|
+
size: 11px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
&__md {
|
|
127
|
+
padding: 2px 8px;
|
|
128
|
+
height: 24px;
|
|
129
|
+
> span {
|
|
130
|
+
line-height: 20px;
|
|
131
|
+
font: {
|
|
132
|
+
size: 12px;
|
|
133
|
+
weight: 700;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
&__lg {
|
|
138
|
+
padding: 4px 16px;
|
|
139
|
+
height: 48px;
|
|
140
|
+
> span {
|
|
141
|
+
line-height: 40px;
|
|
142
|
+
font: {
|
|
143
|
+
size: 24px;
|
|
144
|
+
weight: 700;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
&__rounded {
|
|
149
|
+
border-radius: 20px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
</style>
|