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.
Files changed (84) hide show
  1. package/.eslintrc.cjs +104 -104
  2. package/.prettierrc +25 -25
  3. package/README.md +156 -156
  4. package/dist/index.common.js +2 -2
  5. package/dist/index.css +1 -1
  6. package/dist/index.esm.js +2 -2
  7. package/dist/index.min.css +1 -1
  8. package/dist/index.rtl.css +1 -1
  9. package/dist/index.rtl.min.css +1 -1
  10. package/dist/index.umd.js +4417 -4405
  11. package/dist/index.umd.min.js +2 -2
  12. package/html/assets/index-iPSQW1bz.css +1 -1
  13. package/html/assets/index-pzCGhZhc.js +35 -35
  14. package/html/favicon.svg +5 -5
  15. package/html/index.html +26 -26
  16. package/package.json +95 -95
  17. package/src/assets/icons.js +63 -63
  18. package/src/components/SBadge.vue +75 -75
  19. package/src/components/SButton.vue +206 -206
  20. package/src/components/SButtonGroup.vue +41 -41
  21. package/src/components/SButtonToggle.vue +200 -200
  22. package/src/components/SCaution.vue +143 -143
  23. package/src/components/SCheckbox.vue +123 -123
  24. package/src/components/SChip.vue +99 -99
  25. package/src/components/SDate.vue +664 -664
  26. package/src/components/SDateAutoRangePicker.vue +311 -311
  27. package/src/components/SDatePicker.vue +465 -465
  28. package/src/components/SDateRange.vue +382 -382
  29. package/src/components/SDateRangePicker.vue +582 -582
  30. package/src/components/SDateTimePicker.vue +259 -259
  31. package/src/components/SDialog.vue +250 -250
  32. package/src/components/SDropdown.vue +273 -273
  33. package/src/components/SEditor.vue +590 -590
  34. package/src/components/SFilePicker.vue +207 -207
  35. package/src/components/SHelp.vue +126 -126
  36. package/src/components/SHelpMessage.vue +57 -57
  37. package/src/components/SInput.vue +379 -379
  38. package/src/components/SInputCounter.vue +46 -46
  39. package/src/components/SInputNumber.vue +194 -194
  40. package/src/components/SList.vue +29 -29
  41. package/src/components/SMarkupTable.vue +142 -142
  42. package/src/components/SPagination.vue +345 -345
  43. package/src/components/SRadio.vue +78 -78
  44. package/src/components/SRouteTab.vue +67 -67
  45. package/src/components/SSelect.vue +299 -299
  46. package/src/components/SSelectCheckbox.vue +238 -238
  47. package/src/components/SSelectCustom.vue +189 -189
  48. package/src/components/SSelectGroupCheckbox.vue +372 -372
  49. package/src/components/SSelectSearchAutoComplete.vue +172 -172
  50. package/src/components/SSelectSearchCheckbox.vue +360 -360
  51. package/src/components/SStringToInput.vue +66 -66
  52. package/src/components/STab.vue +147 -147
  53. package/src/components/STable.vue +21 -9
  54. package/src/components/STableTree.vue +502 -502
  55. package/src/components/STabs.vue +32 -32
  56. package/src/components/STag.vue +152 -152
  57. package/src/components/STimePicker.vue +186 -186
  58. package/src/components/SToggle.vue +68 -68
  59. package/src/components/STooltip.vue +209 -209
  60. package/src/components/SYearMonthPicker.vue +211 -211
  61. package/src/components/SelelctItem.vue +21 -21
  62. package/src/components/TableTreeNode.vue +177 -177
  63. package/src/components/TimePickerCard.vue +393 -393
  64. package/src/components/__tests__/SButton.test.js +18 -18
  65. package/src/components/__tests__/SInput.test.js +42 -42
  66. package/src/components/__tests__/SInputCounter.test.js +30 -30
  67. package/src/components/__tests__/SInputNumber.test.js +32 -32
  68. package/src/components/__tests__/STimePicker.spec.js +78 -78
  69. package/src/composables/date.js +11 -11
  70. package/src/composables/modelBinder.js +13 -13
  71. package/src/composables/resizable.js +55 -55
  72. package/src/composables/table/use-navigator.js +110 -110
  73. package/src/composables/table/use-resizable-tree.js +96 -96
  74. package/src/composables/table/use-resizable.js +187 -187
  75. package/src/constants/locale.js +102 -102
  76. package/src/css/app.scss +106 -106
  77. package/src/css/default.scss +393 -393
  78. package/src/css/extends.scss +177 -177
  79. package/src/css/quasar.variables.scss +187 -187
  80. package/src/directives/Directive.js +7 -7
  81. package/src/index.scss +3 -3
  82. package/src/vue-plugin.js +93 -93
  83. package/tsconfig.json +35 -35
  84. package/vitest.config.ts +31 -31
@@ -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,194 +1,194 @@
1
- <template>
2
- <q-input
3
- class="s-input-number"
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
- no-error-icon
15
- hide-bottom-space
16
- >
17
- <template v-slot:append v-if="!hideBtn">
18
- <q-btn
19
- class="s-input-number-icon-up q-pa-none"
20
- dense
21
- unelevated
22
- :ripple="false"
23
- color="Grey_Lighten-4"
24
- :icon="minusIcon"
25
- @click="minusNumber"
26
- />
27
- <q-btn
28
- class="s-input-number-icon-down q-pa-none"
29
- dense
30
- unelevated
31
- :ripple="false"
32
- color="Grey_Lighten-4"
33
- :icon="plusIcon"
34
- @click="plusNumber"
35
- />
36
- </template>
37
- </q-input>
38
- </template>
39
-
40
- <script>
41
- import { QBtn, QInput } from 'quasar';
42
- import { defineComponent, ref, watch } from 'vue';
43
- import { minusIcon, plusIcon } from '../assets/icons';
44
-
45
- export default defineComponent({
46
- name: 'SInputNumber',
47
- components: {
48
- QInput,
49
- QBtn,
50
- },
51
- props: {
52
- hideBtn: {
53
- type: Boolean,
54
- default: false,
55
- },
56
- modelValue: {
57
- type: [Number, String],
58
- },
59
- },
60
- setup(props, { emit }) {
61
- const inputNumberValue = ref(props.modelValue);
62
- const qInputRef = ref(null);
63
- watch(
64
- () => props.modelValue,
65
- val => {
66
- inputNumberValue.value = val;
67
- },
68
- );
69
- function plusNumber() {
70
- emit('update:modelValue', inputNumberValue.value + 1);
71
- }
72
- function minusNumber() {
73
- emit('update:modelValue', inputNumberValue.value - 1);
74
- }
75
- return {
76
- plusNumber,
77
- minusNumber,
78
- minusIcon,
79
- plusIcon,
80
- inputNumberValue,
81
- qInputRef,
82
- };
83
- },
84
- });
85
- </script>
86
-
87
- <style lang="scss">
88
- @import '../css/quasar.variables.scss';
89
-
90
- .s-input-number {
91
- height: auto;
92
- min-width: 108px;
93
- .q-field__inner {
94
- .q-field__control {
95
- background: white;
96
- padding: 0;
97
- height: 28px;
98
- &:before {
99
- border: 1px solid $Grey_Lighten-1;
100
- }
101
- &-container {
102
- padding: $with-icon-padding;
103
- height: $default-height;
104
- .q-field__native {
105
- color: $Grey_Darken-4;
106
- padding: 0;
107
- font-weight: $default-font-weight;
108
- font-size: $default-font;
109
- }
110
- input::placeholder {
111
- color: $Grey_Lighten-1;
112
- }
113
- }
114
-
115
- .q-field__append {
116
- height: 28px;
117
- display: none;
118
- padding: 0;
119
- .q-btn {
120
- width: 20px;
121
- height: 20px;
122
- min-height: 0;
123
- min-width: 0;
124
- margin: 0 5px 0 4px;
125
- border-radius: 2px;
126
- .q-btn__content {
127
- width: 100%;
128
- height: 100%;
129
- .q-icon {
130
- color: $Grey_Default;
131
- font-size: $default-font;
132
- }
133
- }
134
- &:first-of-type {
135
- margin: 0;
136
- }
137
- }
138
- }
139
- }
140
- .q-field__bottom {
141
- padding: 8px 0px 0px 0px;
142
- color: $Grey_Darken-1;
143
- font-size: $default-font;
144
- .q-field__messages {
145
- div[role='alert'] {
146
- color: $Red_Lighten-1;
147
- }
148
- }
149
- }
150
- }
151
- }
152
- .q-field--focused.s-input-number {
153
- .q-field__inner {
154
- .q-field__control {
155
- .q-field__append {
156
- display: flex;
157
- flex-direction: row;
158
- justify-content: center;
159
- align-items: center;
160
- }
161
- }
162
- }
163
- }
164
- .q-field--disabled.s-input-number {
165
- .q-field__inner {
166
- .q-field__control {
167
- background-color: $Grey_Lighten-4 !important;
168
- color: $Grey_Default !important;
169
- &:before {
170
- border: 1px solid $Grey_Lighten-2;
171
- }
172
- &-container {
173
- opacity: 1 !important;
174
- .q-field__native {
175
- color: $Grey_Default;
176
- }
177
- }
178
- .q-field__append {
179
- opacity: 1;
180
- }
181
- }
182
- }
183
- }
184
- /* Chrome, Safari, Edge, Opera */
185
- input::-webkit-outer-spin-button,
186
- input::-webkit-inner-spin-button {
187
- -webkit-appearance: none;
188
- margin: 0;
189
- }
190
- /* Firefox */
191
- input[type='number'] {
192
- -moz-appearance: textfield;
193
- }
194
- </style>
1
+ <template>
2
+ <q-input
3
+ class="s-input-number"
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
+ no-error-icon
15
+ hide-bottom-space
16
+ >
17
+ <template v-slot:append v-if="!hideBtn">
18
+ <q-btn
19
+ class="s-input-number-icon-up q-pa-none"
20
+ dense
21
+ unelevated
22
+ :ripple="false"
23
+ color="Grey_Lighten-4"
24
+ :icon="minusIcon"
25
+ @click="minusNumber"
26
+ />
27
+ <q-btn
28
+ class="s-input-number-icon-down q-pa-none"
29
+ dense
30
+ unelevated
31
+ :ripple="false"
32
+ color="Grey_Lighten-4"
33
+ :icon="plusIcon"
34
+ @click="plusNumber"
35
+ />
36
+ </template>
37
+ </q-input>
38
+ </template>
39
+
40
+ <script>
41
+ import { QBtn, QInput } from 'quasar';
42
+ import { defineComponent, ref, watch } from 'vue';
43
+ import { minusIcon, plusIcon } from '../assets/icons';
44
+
45
+ export default defineComponent({
46
+ name: 'SInputNumber',
47
+ components: {
48
+ QInput,
49
+ QBtn,
50
+ },
51
+ props: {
52
+ hideBtn: {
53
+ type: Boolean,
54
+ default: false,
55
+ },
56
+ modelValue: {
57
+ type: [Number, String],
58
+ },
59
+ },
60
+ setup(props, { emit }) {
61
+ const inputNumberValue = ref(props.modelValue);
62
+ const qInputRef = ref(null);
63
+ watch(
64
+ () => props.modelValue,
65
+ val => {
66
+ inputNumberValue.value = val;
67
+ },
68
+ );
69
+ function plusNumber() {
70
+ emit('update:modelValue', inputNumberValue.value + 1);
71
+ }
72
+ function minusNumber() {
73
+ emit('update:modelValue', inputNumberValue.value - 1);
74
+ }
75
+ return {
76
+ plusNumber,
77
+ minusNumber,
78
+ minusIcon,
79
+ plusIcon,
80
+ inputNumberValue,
81
+ qInputRef,
82
+ };
83
+ },
84
+ });
85
+ </script>
86
+
87
+ <style lang="scss">
88
+ @import '../css/quasar.variables.scss';
89
+
90
+ .s-input-number {
91
+ height: auto;
92
+ min-width: 108px;
93
+ .q-field__inner {
94
+ .q-field__control {
95
+ background: white;
96
+ padding: 0;
97
+ height: 28px;
98
+ &:before {
99
+ border: 1px solid $Grey_Lighten-1;
100
+ }
101
+ &-container {
102
+ padding: $with-icon-padding;
103
+ height: $default-height;
104
+ .q-field__native {
105
+ color: $Grey_Darken-4;
106
+ padding: 0;
107
+ font-weight: $default-font-weight;
108
+ font-size: $default-font;
109
+ }
110
+ input::placeholder {
111
+ color: $Grey_Lighten-1;
112
+ }
113
+ }
114
+
115
+ .q-field__append {
116
+ height: 28px;
117
+ display: none;
118
+ padding: 0;
119
+ .q-btn {
120
+ width: 20px;
121
+ height: 20px;
122
+ min-height: 0;
123
+ min-width: 0;
124
+ margin: 0 5px 0 4px;
125
+ border-radius: 2px;
126
+ .q-btn__content {
127
+ width: 100%;
128
+ height: 100%;
129
+ .q-icon {
130
+ color: $Grey_Default;
131
+ font-size: $default-font;
132
+ }
133
+ }
134
+ &:first-of-type {
135
+ margin: 0;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ .q-field__bottom {
141
+ padding: 8px 0px 0px 0px;
142
+ color: $Grey_Darken-1;
143
+ font-size: $default-font;
144
+ .q-field__messages {
145
+ div[role='alert'] {
146
+ color: $Red_Lighten-1;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ .q-field--focused.s-input-number {
153
+ .q-field__inner {
154
+ .q-field__control {
155
+ .q-field__append {
156
+ display: flex;
157
+ flex-direction: row;
158
+ justify-content: center;
159
+ align-items: center;
160
+ }
161
+ }
162
+ }
163
+ }
164
+ .q-field--disabled.s-input-number {
165
+ .q-field__inner {
166
+ .q-field__control {
167
+ background-color: $Grey_Lighten-4 !important;
168
+ color: $Grey_Default !important;
169
+ &:before {
170
+ border: 1px solid $Grey_Lighten-2;
171
+ }
172
+ &-container {
173
+ opacity: 1 !important;
174
+ .q-field__native {
175
+ color: $Grey_Default;
176
+ }
177
+ }
178
+ .q-field__append {
179
+ opacity: 1;
180
+ }
181
+ }
182
+ }
183
+ }
184
+ /* Chrome, Safari, Edge, Opera */
185
+ input::-webkit-outer-spin-button,
186
+ input::-webkit-inner-spin-button {
187
+ -webkit-appearance: none;
188
+ margin: 0;
189
+ }
190
+ /* Firefox */
191
+ input[type='number'] {
192
+ -moz-appearance: textfield;
193
+ }
194
+ </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>