quasar-ui-sellmate-ui-kit 2.3.2 → 3.0.1
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 +73 -0
- package/.prettierrc +25 -0
- package/README.md +156 -142
- package/dist/index.common.js +2 -2
- package/dist/index.css +3 -8
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +2 -2
- package/dist/index.rtl.css +3 -8
- package/dist/index.rtl.min.css +2 -2
- package/dist/index.umd.js +3820 -3822
- package/dist/index.umd.min.js +2 -2
- package/package.json +83 -75
- 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 -208
- 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 -8
- package/src/index.scss +3 -9
- package/src/vue-plugin.js +91 -92
- package/tsconfig.json +35 -0
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-bind="stringOptions" v-if="type === 'string'" @click="change('input')">
|
|
3
|
-
{{ model }}
|
|
4
|
-
</div>
|
|
5
|
-
<s-input
|
|
6
|
-
v-show="type === 'input'"
|
|
7
|
-
v-model="model"
|
|
8
|
-
v-bind="inputOptions"
|
|
9
|
-
@blur="change('string')"
|
|
10
|
-
@keypress.enter="change('string')"
|
|
11
|
-
ref="inputRef"
|
|
12
|
-
></s-input>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import { ref, watch } from 'vue';
|
|
17
|
-
import SInput from './SInput';
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: 'SStringToInput',
|
|
21
|
-
props: {
|
|
22
|
-
stringOptions: Object,
|
|
23
|
-
inputOptions: Object,
|
|
24
|
-
modelValue: [String, Number],
|
|
25
|
-
},
|
|
26
|
-
components: {
|
|
27
|
-
SInput,
|
|
28
|
-
},
|
|
29
|
-
setup(props, { emit }) {
|
|
30
|
-
const type = ref('string');
|
|
31
|
-
const model = ref(props.modelValue);
|
|
32
|
-
const inputRef = ref({});
|
|
33
|
-
function change(to) {
|
|
34
|
-
type.value = to;
|
|
35
|
-
if (to === 'input') {
|
|
36
|
-
setTimeout(() => {
|
|
37
|
-
inputRef.value.$el.focus();
|
|
38
|
-
}, 200);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
watch(() => model, () => {
|
|
42
|
-
emit('update:modelValue', model.value);
|
|
43
|
-
});
|
|
44
|
-
watch(() => type.value, () => {
|
|
45
|
-
if (type.value === 'string') {
|
|
46
|
-
if (!model.value) {
|
|
47
|
-
model.value = 0;
|
|
48
|
-
}
|
|
49
|
-
emit('inputToString');
|
|
50
|
-
} else {
|
|
51
|
-
emit('stringToInput');
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
type,
|
|
56
|
-
model,
|
|
57
|
-
inputRef,
|
|
58
|
-
change,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<style scoped>
|
|
65
|
-
|
|
66
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div v-bind="stringOptions" v-if="type === 'string'" @click="change('input')">
|
|
3
|
+
{{ model }}
|
|
4
|
+
</div>
|
|
5
|
+
<s-input
|
|
6
|
+
v-show="type === 'input'"
|
|
7
|
+
v-model="model"
|
|
8
|
+
v-bind="inputOptions"
|
|
9
|
+
@blur="change('string')"
|
|
10
|
+
@keypress.enter="change('string')"
|
|
11
|
+
ref="inputRef"
|
|
12
|
+
></s-input>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import { ref, watch } from 'vue';
|
|
17
|
+
import SInput from './SInput';
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
name: 'SStringToInput',
|
|
21
|
+
props: {
|
|
22
|
+
stringOptions: Object,
|
|
23
|
+
inputOptions: Object,
|
|
24
|
+
modelValue: [String, Number],
|
|
25
|
+
},
|
|
26
|
+
components: {
|
|
27
|
+
SInput,
|
|
28
|
+
},
|
|
29
|
+
setup(props, { emit }) {
|
|
30
|
+
const type = ref('string');
|
|
31
|
+
const model = ref(props.modelValue);
|
|
32
|
+
const inputRef = ref({});
|
|
33
|
+
function change(to) {
|
|
34
|
+
type.value = to;
|
|
35
|
+
if (to === 'input') {
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
inputRef.value.$el.focus();
|
|
38
|
+
}, 200);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
watch(() => model, () => {
|
|
42
|
+
emit('update:modelValue', model.value);
|
|
43
|
+
});
|
|
44
|
+
watch(() => type.value, () => {
|
|
45
|
+
if (type.value === 'string') {
|
|
46
|
+
if (!model.value) {
|
|
47
|
+
model.value = 0;
|
|
48
|
+
}
|
|
49
|
+
emit('inputToString');
|
|
50
|
+
} else {
|
|
51
|
+
emit('stringToInput');
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return {
|
|
55
|
+
type,
|
|
56
|
+
model,
|
|
57
|
+
inputRef,
|
|
58
|
+
change,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
|
|
66
|
+
</style>
|
package/src/components/STab.vue
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-tab :name="name" :ripple="false" :class="$attrs.class" class="s-tab">
|
|
3
|
-
<template #default>
|
|
4
|
-
{{ label }}
|
|
5
|
-
<span class="q-ml-xs badge" v-if="badge">
|
|
6
|
-
{{ badge }}
|
|
7
|
-
</span>
|
|
8
|
-
</template>
|
|
9
|
-
</q-tab>
|
|
10
|
-
<div class="s-tab-space"></div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import { defineComponent } from 'vue';
|
|
15
|
-
import { QTab } from 'quasar';
|
|
16
|
-
|
|
17
|
-
export default defineComponent({
|
|
18
|
-
name: 'STab',
|
|
19
|
-
components: {
|
|
20
|
-
QTab,
|
|
21
|
-
},
|
|
22
|
-
props: {
|
|
23
|
-
name: String,
|
|
24
|
-
label: String,
|
|
25
|
-
badge: String,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<style lang="scss">
|
|
31
|
-
@import "../css/quasar.variables.scss";
|
|
32
|
-
|
|
33
|
-
.s-tab {
|
|
34
|
-
padding: $tab-padding;
|
|
35
|
-
background: $Grey_Lighten-5;
|
|
36
|
-
color: $Grey_Default;
|
|
37
|
-
min-height: 0;
|
|
38
|
-
border: 1px solid $Grey_Lighten-2;
|
|
39
|
-
border: {
|
|
40
|
-
bottom: 1px solid $positive;
|
|
41
|
-
radius: $button-border-radius $button-border-radius 0 0;
|
|
42
|
-
}
|
|
43
|
-
.q-tab__content {
|
|
44
|
-
padding: 0;
|
|
45
|
-
height: $default-content-height;
|
|
46
|
-
min-width: 0;
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
flex: {
|
|
50
|
-
wrap: nowrap;
|
|
51
|
-
direction: row;
|
|
52
|
-
}
|
|
53
|
-
height: $default-content-height;
|
|
54
|
-
line-height: $default-line-height;
|
|
55
|
-
font: {
|
|
56
|
-
weight: $default-font-weight;
|
|
57
|
-
size: $default-font;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.s-tab.q-tab--active {
|
|
62
|
-
border: 1px solid $positive;
|
|
63
|
-
background: white;
|
|
64
|
-
.q-tab__content {
|
|
65
|
-
font-weight: $font-weight-lg;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
.s-tab-space {
|
|
69
|
-
width: 4px;
|
|
70
|
-
min-width: 4px;
|
|
71
|
-
height: 100%;
|
|
72
|
-
border-bottom: 1px solid $positive;
|
|
73
|
-
&:last-of-type {
|
|
74
|
-
width: 100%;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-tab :name="name" :ripple="false" :class="$attrs.class" class="s-tab">
|
|
3
|
+
<template #default>
|
|
4
|
+
{{ label }}
|
|
5
|
+
<span class="q-ml-xs badge" v-if="badge">
|
|
6
|
+
{{ badge }}
|
|
7
|
+
</span>
|
|
8
|
+
</template>
|
|
9
|
+
</q-tab>
|
|
10
|
+
<div class="s-tab-space"></div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { defineComponent } from 'vue';
|
|
15
|
+
import { QTab } from 'quasar';
|
|
16
|
+
|
|
17
|
+
export default defineComponent({
|
|
18
|
+
name: 'STab',
|
|
19
|
+
components: {
|
|
20
|
+
QTab,
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
name: String,
|
|
24
|
+
label: String,
|
|
25
|
+
badge: String,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style lang="scss">
|
|
31
|
+
@import "../css/quasar.variables.scss";
|
|
32
|
+
|
|
33
|
+
.s-tab {
|
|
34
|
+
padding: $tab-padding;
|
|
35
|
+
background: $Grey_Lighten-5;
|
|
36
|
+
color: $Grey_Default;
|
|
37
|
+
min-height: 0;
|
|
38
|
+
border: 1px solid $Grey_Lighten-2;
|
|
39
|
+
border: {
|
|
40
|
+
bottom: 1px solid $positive;
|
|
41
|
+
radius: $button-border-radius $button-border-radius 0 0;
|
|
42
|
+
}
|
|
43
|
+
.q-tab__content {
|
|
44
|
+
padding: 0;
|
|
45
|
+
height: $default-content-height;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
flex: {
|
|
50
|
+
wrap: nowrap;
|
|
51
|
+
direction: row;
|
|
52
|
+
}
|
|
53
|
+
height: $default-content-height;
|
|
54
|
+
line-height: $default-line-height;
|
|
55
|
+
font: {
|
|
56
|
+
weight: $default-font-weight;
|
|
57
|
+
size: $default-font;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.s-tab.q-tab--active {
|
|
62
|
+
border: 1px solid $positive;
|
|
63
|
+
background: white;
|
|
64
|
+
.q-tab__content {
|
|
65
|
+
font-weight: $font-weight-lg;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.s-tab-space {
|
|
69
|
+
width: 4px;
|
|
70
|
+
min-width: 4px;
|
|
71
|
+
height: 100%;
|
|
72
|
+
border-bottom: 1px solid $positive;
|
|
73
|
+
&:last-of-type {
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
</style>
|