quasar-ui-sellmate-ui-kit 2.2.33 → 2.3.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.
Files changed (62) hide show
  1. package/README.md +142 -142
  2. package/dist/index.common.js +3 -3
  3. package/dist/index.css +2 -2
  4. package/dist/index.esm.js +3 -3
  5. package/dist/index.min.css +2 -2
  6. package/dist/index.rtl.css +2 -2
  7. package/dist/index.rtl.min.css +2 -2
  8. package/dist/index.umd.js +3558 -3550
  9. package/dist/index.umd.min.js +3 -3
  10. package/package.json +75 -75
  11. package/src/components/SBreadcrumbs.vue +55 -55
  12. package/src/components/SButton.vue +206 -206
  13. package/src/components/SButtonGroup.vue +41 -41
  14. package/src/components/SCaution.vue +102 -102
  15. package/src/components/SCheckbox.vue +123 -123
  16. package/src/components/SChip.vue +99 -99
  17. package/src/components/SDate.vue +717 -717
  18. package/src/components/SDateAutoRangePicker.vue +341 -341
  19. package/src/components/SDatePicker.vue +472 -472
  20. package/src/components/SDateRange.vue +470 -470
  21. package/src/components/SDateRangePicker.vue +660 -660
  22. package/src/components/SDateTimePicker.vue +349 -349
  23. package/src/components/SDialog.vue +250 -250
  24. package/src/components/SDropdown.vue +216 -216
  25. package/src/components/SEditor.vue +490 -490
  26. package/src/components/SFilePicker.vue +207 -207
  27. package/src/components/SHelp.vue +146 -146
  28. package/src/components/SInput.vue +343 -343
  29. package/src/components/SInputCounter.vue +46 -46
  30. package/src/components/SInputNumber.vue +179 -179
  31. package/src/components/SList.vue +29 -29
  32. package/src/components/SMarkupTable.vue +141 -141
  33. package/src/components/SPagination.vue +266 -266
  34. package/src/components/SRadio.vue +78 -78
  35. package/src/components/SRouteTab.vue +67 -67
  36. package/src/components/SSelect.vue +294 -294
  37. package/src/components/SSelectCheckbox.vue +222 -225
  38. package/src/components/SSelectCustom.vue +25 -17
  39. package/src/components/SSelectGroupCheckbox.vue +235 -235
  40. package/src/components/SSelectSearch.vue +261 -261
  41. package/src/components/SSelectSearchAutoComplete.vue +172 -172
  42. package/src/components/SSelectSearchCheckbox.vue +356 -356
  43. package/src/components/SStringToInput.vue +66 -66
  44. package/src/components/STab.vue +80 -80
  45. package/src/components/STableTree.vue +208 -208
  46. package/src/components/STimePicker.vue +159 -159
  47. package/src/components/SToggle.vue +68 -68
  48. package/src/components/STooltip.vue +209 -209
  49. package/src/components/SelelctItem.vue +21 -21
  50. package/src/components/TimePickerCard.vue +352 -352
  51. package/src/composables/date.js +11 -11
  52. package/src/composables/modelBinder.js +13 -13
  53. package/src/composables/table/use-navigator.js +110 -110
  54. package/src/composables/table/use-resizable.js +80 -80
  55. package/src/css/app.scss +90 -90
  56. package/src/css/extends.scss +154 -154
  57. package/src/css/quasar.variables.scss +189 -189
  58. package/src/index.common.js +1 -1
  59. package/src/index.esm.js +4 -4
  60. package/src/index.scss +9 -9
  61. package/src/index.umd.js +3 -3
  62. package/src/vue-plugin.js +92 -92
@@ -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>
@@ -1,80 +1,80 @@
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
- flex: {
49
- wrap: nowrap;
50
- direction: row;
51
- }
52
- .q-tab__label {
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
- }
62
- .s-tab.q-tab--active {
63
- border: 1px solid $positive;
64
- background: white;
65
- .q-tab__content {
66
- .q-tab__label {
67
- font-weight: $font-weight-lg;
68
- }
69
- }
70
- }
71
- .s-tab-space {
72
- width: 4px;
73
- min-width: 4px;
74
- height: 100%;
75
- border-bottom: 1px solid $positive;
76
- &:last-of-type {
77
- width: 100%;
78
- }
79
- }
80
- </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
+ flex: {
49
+ wrap: nowrap;
50
+ direction: row;
51
+ }
52
+ .q-tab__label {
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
+ }
62
+ .s-tab.q-tab--active {
63
+ border: 1px solid $positive;
64
+ background: white;
65
+ .q-tab__content {
66
+ .q-tab__label {
67
+ font-weight: $font-weight-lg;
68
+ }
69
+ }
70
+ }
71
+ .s-tab-space {
72
+ width: 4px;
73
+ min-width: 4px;
74
+ height: 100%;
75
+ border-bottom: 1px solid $positive;
76
+ &:last-of-type {
77
+ width: 100%;
78
+ }
79
+ }
80
+ </style>