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.
Files changed (67) hide show
  1. package/.prettierrc +25 -25
  2. package/README.md +156 -156
  3. package/dist/index.common.js +2 -2
  4. package/dist/index.css +1 -1
  5. package/dist/index.esm.js +2 -2
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.rtl.css +1 -1
  8. package/dist/index.rtl.min.css +1 -1
  9. package/dist/index.umd.js +3829 -3829
  10. package/dist/index.umd.min.js +2 -2
  11. package/package.json +83 -83
  12. package/src/assets/icons.js +28 -28
  13. package/src/components/SBreadcrumbs.vue +55 -55
  14. package/src/components/SButton.vue +206 -206
  15. package/src/components/SButtonGroup.vue +41 -41
  16. package/src/components/SButtonToggle.vue +200 -200
  17. package/src/components/SCaution.vue +102 -102
  18. package/src/components/SCheckbox.vue +123 -123
  19. package/src/components/SChip.vue +99 -99
  20. package/src/components/SDate.vue +717 -717
  21. package/src/components/SDateAutoRangePicker.vue +341 -341
  22. package/src/components/SDatePicker.vue +472 -472
  23. package/src/components/SDateRange.vue +470 -470
  24. package/src/components/SDateRangePicker.vue +660 -660
  25. package/src/components/SDateTimePicker.vue +349 -349
  26. package/src/components/SDialog.vue +250 -250
  27. package/src/components/SDropdown.vue +216 -216
  28. package/src/components/SEditor.vue +490 -490
  29. package/src/components/SFilePicker.vue +207 -207
  30. package/src/components/SHelp.vue +146 -146
  31. package/src/components/SInput.vue +343 -343
  32. package/src/components/SInputCounter.vue +46 -46
  33. package/src/components/SInputNumber.vue +179 -179
  34. package/src/components/SList.vue +29 -29
  35. package/src/components/SMarkupTable.vue +141 -141
  36. package/src/components/SPagination.vue +266 -266
  37. package/src/components/SRadio.vue +78 -78
  38. package/src/components/SRouteTab.vue +67 -67
  39. package/src/components/SSelect.vue +294 -294
  40. package/src/components/SSelectCheckbox.vue +222 -222
  41. package/src/components/SSelectCustom.vue +189 -189
  42. package/src/components/SSelectGroupCheckbox.vue +235 -235
  43. package/src/components/SSelectSearch.vue +261 -261
  44. package/src/components/SSelectSearchAutoComplete.vue +172 -172
  45. package/src/components/SSelectSearchCheckbox.vue +356 -356
  46. package/src/components/SStringToInput.vue +66 -66
  47. package/src/components/STab.vue +77 -77
  48. package/src/components/STable.vue +425 -425
  49. package/src/components/STableTree.vue +210 -210
  50. package/src/components/STabs.vue +32 -32
  51. package/src/components/STimePicker.vue +159 -159
  52. package/src/components/SToggle.vue +68 -68
  53. package/src/components/STooltip.vue +209 -209
  54. package/src/components/SelelctItem.vue +21 -21
  55. package/src/components/TimePickerCard.vue +352 -352
  56. package/src/composables/date.js +11 -11
  57. package/src/composables/modelBinder.js +13 -13
  58. package/src/composables/table/use-navigator.js +110 -110
  59. package/src/composables/table/use-resizable.js +80 -80
  60. package/src/css/app.scss +90 -90
  61. package/src/css/default.scss +875 -875
  62. package/src/css/extends.scss +154 -154
  63. package/src/css/quasar.variables.scss +189 -189
  64. package/src/directives/Directive.js +7 -7
  65. package/src/index.scss +3 -3
  66. package/src/vue-plugin.js +91 -91
  67. package/tsconfig.json +35 -35
@@ -1,46 +1,46 @@
1
- <template>
2
- <q-input
3
- bgColor="white"
4
- v-model="inputCountValue"
5
- class="s-input-counter"
6
- @update:modelValue="$emit('update:modelValue', inputCountValue)"
7
- outlined
8
- dense
9
- :maxlength="maxlength"
10
- >
11
- <template v-slot:after>
12
- / {{ maxlength }} byte
13
- </template>
14
- </q-input>
15
- </template>
16
-
17
- <script>
18
- import { defineComponent, watch, ref } from 'vue';
19
- import { QInput } from 'quasar';
20
-
21
- export default defineComponent({
22
- name: 'SInputCounter',
23
- components: {
24
- QInput,
25
- },
26
- props: {
27
- modelValue: {
28
- type: [Number, String],
29
- },
30
- maxlength: {
31
- type: [Number, String],
32
- },
33
- },
34
- setup(props) {
35
- const inputCountValue = ref(props.modelValue);
36
- watch(() => props.modelValue, (val) => { inputCountValue.value = val; });
37
- return {
38
- inputCountValue,
39
- };
40
- },
41
- });
42
- </script>
43
-
44
- <style lang="scss">
45
- @import "../css/quasar.variables.scss";
46
- </style>
1
+ <template>
2
+ <q-input
3
+ bgColor="white"
4
+ v-model="inputCountValue"
5
+ class="s-input-counter"
6
+ @update:modelValue="$emit('update:modelValue', inputCountValue)"
7
+ outlined
8
+ dense
9
+ :maxlength="maxlength"
10
+ >
11
+ <template v-slot:after>
12
+ / {{ maxlength }} byte
13
+ </template>
14
+ </q-input>
15
+ </template>
16
+
17
+ <script>
18
+ import { defineComponent, watch, ref } from 'vue';
19
+ import { QInput } from 'quasar';
20
+
21
+ export default defineComponent({
22
+ name: 'SInputCounter',
23
+ components: {
24
+ QInput,
25
+ },
26
+ props: {
27
+ modelValue: {
28
+ type: [Number, String],
29
+ },
30
+ maxlength: {
31
+ type: [Number, String],
32
+ },
33
+ },
34
+ setup(props) {
35
+ const inputCountValue = ref(props.modelValue);
36
+ watch(() => props.modelValue, (val) => { inputCountValue.value = val; });
37
+ return {
38
+ inputCountValue,
39
+ };
40
+ },
41
+ });
42
+ </script>
43
+
44
+ <style lang="scss">
45
+ @import "../css/quasar.variables.scss";
46
+ </style>
@@ -1,179 +1,179 @@
1
- <template>
2
- <q-input
3
- class="s-input-number bg-white"
4
- v-model.number="inputNumberValue"
5
- @update:modelValue="
6
- value => {
7
- $emit('update:modelValue', value);
8
- }
9
- "
10
- ref="qInputRef"
11
- type="number"
12
- outlined
13
- dense
14
- >
15
- <template v-slot:append v-if="!hideBtn">
16
- <q-btn
17
- class="s-input-number-icon-up q-pa-none"
18
- dense
19
- unelevated
20
- :ripple="false"
21
- color="Grey_Lighten-4"
22
- :icon="minusIcon"
23
- @click="minusNumber"
24
- />
25
- <q-btn
26
- class="s-input-number-icon-down q-pa-none"
27
- dense
28
- unelevated
29
- :ripple="false"
30
- color="Grey_Lighten-4"
31
- :icon="plusIcon"
32
- @click="plusNumber"
33
- />
34
- </template>
35
- </q-input>
36
- </template>
37
-
38
- <script>
39
- import { QBtn, QInput } from 'quasar';
40
- import { defineComponent, ref, watch } from 'vue';
41
- import { minusIcon, plusIcon } from '../assets/icons.js';
42
-
43
- export default defineComponent({
44
- name: 'SInputNumber',
45
- components: {
46
- QInput,
47
- QBtn,
48
- },
49
- props: {
50
- hideBtn: {
51
- type: Boolean,
52
- default: false,
53
- },
54
- modelValue: {
55
- type: [Number, String],
56
- },
57
- },
58
- setup(props, { emit }) {
59
- const inputNumberValue = ref(props.modelValue);
60
- const qInputRef = ref(null);
61
- watch(
62
- () => props.modelValue,
63
- val => {
64
- inputNumberValue.value = val;
65
- },
66
- );
67
- function plusNumber() {
68
- emit('update:modelValue', inputNumberValue.value + 1);
69
- }
70
- function minusNumber() {
71
- emit('update:modelValue', inputNumberValue.value - 1);
72
- }
73
- return {
74
- plusNumber,
75
- minusNumber,
76
- minusIcon,
77
- plusIcon,
78
- inputNumberValue,
79
- qInputRef,
80
- };
81
- },
82
- });
83
- </script>
84
-
85
- <style lang="scss">
86
- @import '../css/quasar.variables.scss';
87
-
88
- .s-input-number {
89
- height: $default-height;
90
- min-width: 108px;
91
- .q-field__inner {
92
- .q-field__control {
93
- padding: 0;
94
- height: 100%;
95
- &-container {
96
- padding: $with-icon-padding;
97
- height: $default-height;
98
- .q-field__native {
99
- color: $Grey_Darken-4;
100
- padding: 0;
101
- font-size: 12px;
102
- }
103
- input::placeholder {
104
- color: $Grey_Lighten-1;
105
- }
106
- }
107
- &:before {
108
- border: 1px solid $Grey_Lighten-1;
109
- }
110
- .q-field__append {
111
- height: 28px;
112
- display: none;
113
- padding: 0;
114
- .q-btn {
115
- width: 20px;
116
- height: 20px;
117
- min-height: 0;
118
- min-width: 0;
119
- margin: 0 5px 0 4px;
120
- border-radius: 2px;
121
- .q-btn__content {
122
- width: 100%;
123
- height: 100%;
124
- .q-icon {
125
- color: $Grey_Default;
126
- font-size: 12px;
127
- }
128
- }
129
- &:first-of-type {
130
- margin: 0;
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
- .q-field--focused.s-input-number {
138
- .q-field__inner {
139
- .q-field__control {
140
- .q-field__append {
141
- display: flex;
142
- flex-direction: row;
143
- justify-content: center;
144
- align-items: center;
145
- }
146
- }
147
- }
148
- }
149
- .q-field--disabled.s-input-number {
150
- .q-field__inner {
151
- .q-field__control {
152
- background-color: $Grey_Lighten-4 !important;
153
- color: $Grey_Default !important;
154
- &:before {
155
- border: 1px solid $Grey_Lighten-2;
156
- }
157
- &-container {
158
- opacity: 1 !important;
159
- .q-field__native {
160
- color: $Grey_Default;
161
- }
162
- }
163
- .q-field__append {
164
- opacity: 1;
165
- }
166
- }
167
- }
168
- }
169
- /* Chrome, Safari, Edge, Opera */
170
- input::-webkit-outer-spin-button,
171
- input::-webkit-inner-spin-button {
172
- -webkit-appearance: none;
173
- margin: 0;
174
- }
175
- /* Firefox */
176
- input[type='number'] {
177
- -moz-appearance: textfield;
178
- }
179
- </style>
1
+ <template>
2
+ <q-input
3
+ class="s-input-number bg-white"
4
+ v-model.number="inputNumberValue"
5
+ @update:modelValue="
6
+ value => {
7
+ $emit('update:modelValue', value);
8
+ }
9
+ "
10
+ ref="qInputRef"
11
+ type="number"
12
+ outlined
13
+ dense
14
+ >
15
+ <template v-slot:append v-if="!hideBtn">
16
+ <q-btn
17
+ class="s-input-number-icon-up q-pa-none"
18
+ dense
19
+ unelevated
20
+ :ripple="false"
21
+ color="Grey_Lighten-4"
22
+ :icon="minusIcon"
23
+ @click="minusNumber"
24
+ />
25
+ <q-btn
26
+ class="s-input-number-icon-down q-pa-none"
27
+ dense
28
+ unelevated
29
+ :ripple="false"
30
+ color="Grey_Lighten-4"
31
+ :icon="plusIcon"
32
+ @click="plusNumber"
33
+ />
34
+ </template>
35
+ </q-input>
36
+ </template>
37
+
38
+ <script>
39
+ import { QBtn, QInput } from 'quasar';
40
+ import { defineComponent, ref, watch } from 'vue';
41
+ import { minusIcon, plusIcon } from '../assets/icons.js';
42
+
43
+ export default defineComponent({
44
+ name: 'SInputNumber',
45
+ components: {
46
+ QInput,
47
+ QBtn,
48
+ },
49
+ props: {
50
+ hideBtn: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
54
+ modelValue: {
55
+ type: [Number, String],
56
+ },
57
+ },
58
+ setup(props, { emit }) {
59
+ const inputNumberValue = ref(props.modelValue);
60
+ const qInputRef = ref(null);
61
+ watch(
62
+ () => props.modelValue,
63
+ val => {
64
+ inputNumberValue.value = val;
65
+ },
66
+ );
67
+ function plusNumber() {
68
+ emit('update:modelValue', inputNumberValue.value + 1);
69
+ }
70
+ function minusNumber() {
71
+ emit('update:modelValue', inputNumberValue.value - 1);
72
+ }
73
+ return {
74
+ plusNumber,
75
+ minusNumber,
76
+ minusIcon,
77
+ plusIcon,
78
+ inputNumberValue,
79
+ qInputRef,
80
+ };
81
+ },
82
+ });
83
+ </script>
84
+
85
+ <style lang="scss">
86
+ @import '../css/quasar.variables.scss';
87
+
88
+ .s-input-number {
89
+ height: $default-height;
90
+ min-width: 108px;
91
+ .q-field__inner {
92
+ .q-field__control {
93
+ padding: 0;
94
+ height: 100%;
95
+ &-container {
96
+ padding: $with-icon-padding;
97
+ height: $default-height;
98
+ .q-field__native {
99
+ color: $Grey_Darken-4;
100
+ padding: 0;
101
+ font-size: 12px;
102
+ }
103
+ input::placeholder {
104
+ color: $Grey_Lighten-1;
105
+ }
106
+ }
107
+ &:before {
108
+ border: 1px solid $Grey_Lighten-1;
109
+ }
110
+ .q-field__append {
111
+ height: 28px;
112
+ display: none;
113
+ padding: 0;
114
+ .q-btn {
115
+ width: 20px;
116
+ height: 20px;
117
+ min-height: 0;
118
+ min-width: 0;
119
+ margin: 0 5px 0 4px;
120
+ border-radius: 2px;
121
+ .q-btn__content {
122
+ width: 100%;
123
+ height: 100%;
124
+ .q-icon {
125
+ color: $Grey_Default;
126
+ font-size: 12px;
127
+ }
128
+ }
129
+ &:first-of-type {
130
+ margin: 0;
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ .q-field--focused.s-input-number {
138
+ .q-field__inner {
139
+ .q-field__control {
140
+ .q-field__append {
141
+ display: flex;
142
+ flex-direction: row;
143
+ justify-content: center;
144
+ align-items: center;
145
+ }
146
+ }
147
+ }
148
+ }
149
+ .q-field--disabled.s-input-number {
150
+ .q-field__inner {
151
+ .q-field__control {
152
+ background-color: $Grey_Lighten-4 !important;
153
+ color: $Grey_Default !important;
154
+ &:before {
155
+ border: 1px solid $Grey_Lighten-2;
156
+ }
157
+ &-container {
158
+ opacity: 1 !important;
159
+ .q-field__native {
160
+ color: $Grey_Default;
161
+ }
162
+ }
163
+ .q-field__append {
164
+ opacity: 1;
165
+ }
166
+ }
167
+ }
168
+ }
169
+ /* Chrome, Safari, Edge, Opera */
170
+ input::-webkit-outer-spin-button,
171
+ input::-webkit-inner-spin-button {
172
+ -webkit-appearance: none;
173
+ margin: 0;
174
+ }
175
+ /* Firefox */
176
+ input[type='number'] {
177
+ -moz-appearance: textfield;
178
+ }
179
+ </style>
@@ -1,29 +1,29 @@
1
- <template>
2
- <q-list bordered separator>
3
- <q-item>
4
- <q-item-section>
5
- <q-item-label>{{ content }}</q-item-label>
6
- </q-item-section>
7
- </q-item>
8
- </q-list>
9
- </template>
10
-
11
- <script>
12
- import { defineComponent } from 'vue';
13
- import {
14
- QList, QItem, QItemSection, QItemLabel,
15
- } from 'quasar';
16
-
17
- export default defineComponent({
18
- name: 'SList',
19
- components: {
20
- QList,
21
- QItem,
22
- QItemSection,
23
- QItemLabel,
24
- },
25
- props: {
26
- content: null,
27
- },
28
- });
29
- </script>
1
+ <template>
2
+ <q-list bordered separator>
3
+ <q-item>
4
+ <q-item-section>
5
+ <q-item-label>{{ content }}</q-item-label>
6
+ </q-item-section>
7
+ </q-item>
8
+ </q-list>
9
+ </template>
10
+
11
+ <script>
12
+ import { defineComponent } from 'vue';
13
+ import {
14
+ QList, QItem, QItemSection, QItemLabel,
15
+ } from 'quasar';
16
+
17
+ export default defineComponent({
18
+ name: 'SList',
19
+ components: {
20
+ QList,
21
+ QItem,
22
+ QItemSection,
23
+ QItemLabel,
24
+ },
25
+ props: {
26
+ content: null,
27
+ },
28
+ });
29
+ </script>