quasar-ui-sellmate-ui-kit 2.3.1 → 3.0.0

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 (68) hide show
  1. package/.eslintrc.cjs +73 -0
  2. package/.prettierrc +25 -0
  3. package/README.md +156 -142
  4. package/dist/index.common.js +2 -2
  5. package/dist/index.css +3 -8
  6. package/dist/index.esm.js +2 -2
  7. package/dist/index.min.css +2 -2
  8. package/dist/index.rtl.css +3 -8
  9. package/dist/index.rtl.min.css +2 -2
  10. package/dist/index.umd.js +3821 -3823
  11. package/dist/index.umd.min.js +2 -2
  12. package/package.json +83 -75
  13. package/src/assets/icons.js +28 -28
  14. package/src/components/SBreadcrumbs.vue +55 -55
  15. package/src/components/SButton.vue +206 -206
  16. package/src/components/SButtonGroup.vue +41 -41
  17. package/src/components/SButtonToggle.vue +200 -200
  18. package/src/components/SCaution.vue +102 -102
  19. package/src/components/SCheckbox.vue +123 -123
  20. package/src/components/SChip.vue +99 -99
  21. package/src/components/SDate.vue +717 -717
  22. package/src/components/SDateAutoRangePicker.vue +341 -341
  23. package/src/components/SDatePicker.vue +472 -472
  24. package/src/components/SDateRange.vue +470 -470
  25. package/src/components/SDateRangePicker.vue +660 -660
  26. package/src/components/SDateTimePicker.vue +349 -349
  27. package/src/components/SDialog.vue +250 -250
  28. package/src/components/SDropdown.vue +216 -216
  29. package/src/components/SEditor.vue +490 -490
  30. package/src/components/SFilePicker.vue +207 -207
  31. package/src/components/SHelp.vue +146 -146
  32. package/src/components/SInput.vue +343 -343
  33. package/src/components/SInputCounter.vue +46 -46
  34. package/src/components/SInputNumber.vue +179 -179
  35. package/src/components/SList.vue +29 -29
  36. package/src/components/SMarkupTable.vue +141 -141
  37. package/src/components/SPagination.vue +266 -266
  38. package/src/components/SRadio.vue +78 -78
  39. package/src/components/SRouteTab.vue +67 -67
  40. package/src/components/SSelect.vue +294 -294
  41. package/src/components/SSelectCheckbox.vue +222 -222
  42. package/src/components/SSelectCustom.vue +189 -189
  43. package/src/components/SSelectGroupCheckbox.vue +235 -235
  44. package/src/components/SSelectSearch.vue +261 -261
  45. package/src/components/SSelectSearchAutoComplete.vue +172 -172
  46. package/src/components/SSelectSearchCheckbox.vue +356 -356
  47. package/src/components/SStringToInput.vue +66 -66
  48. package/src/components/STab.vue +77 -80
  49. package/src/components/STable.vue +425 -425
  50. package/src/components/STableTree.vue +210 -208
  51. package/src/components/STabs.vue +32 -32
  52. package/src/components/STimePicker.vue +159 -159
  53. package/src/components/SToggle.vue +68 -68
  54. package/src/components/STooltip.vue +209 -209
  55. package/src/components/SelelctItem.vue +21 -21
  56. package/src/components/TimePickerCard.vue +352 -352
  57. package/src/composables/date.js +11 -11
  58. package/src/composables/modelBinder.js +13 -13
  59. package/src/composables/table/use-navigator.js +110 -110
  60. package/src/composables/table/use-resizable.js +80 -80
  61. package/src/css/app.scss +90 -90
  62. package/src/css/default.scss +875 -875
  63. package/src/css/extends.scss +154 -154
  64. package/src/css/quasar.variables.scss +189 -189
  65. package/src/directives/Directive.js +7 -8
  66. package/src/index.scss +3 -9
  67. package/src/vue-plugin.js +91 -92
  68. package/tsconfig.json +35 -0
@@ -1,250 +1,250 @@
1
- <template>
2
- <q-dialog>
3
- <q-card class="s-confirm">
4
- <q-card-actions class="modal-close-button">
5
- <q-btn
6
- :icon="closeIcon"
7
- flat
8
- round
9
- dense
10
- v-close-popup
11
- color="Grey_Default"
12
- :ripple="false"
13
- @click="$emit('handleClose')"
14
- />
15
- </q-card-actions>
16
- <q-card-section class="modal-title">
17
- <div
18
- v-if="withHeaderIcon"
19
- class="flex items-center justify-center modal-icon"
20
- >
21
- <q-icon
22
- v-if="type === 'info'"
23
- :name="infoOutlineIcon"
24
- size="32px"
25
- color="positive"
26
- />
27
- <q-icon
28
- v-else
29
- :name="warningOutlineIcon"
30
- size="32px"
31
- color="negative"
32
- />
33
- </div>
34
- {{ title }}
35
- </q-card-section>
36
- <q-card-section class="modal-content">
37
- <slot name="content"></slot>
38
- </q-card-section>
39
- <q-card-actions
40
- class="modal-buttons"
41
- align="center"
42
- :vertical="btnVertical"
43
- :class="btnVertical ? 'btn-vertical' : 'no-vertical'"
44
- >
45
- <q-btn
46
- class="modal-button first"
47
- no-caps
48
- no-wrap
49
- dense
50
- unelevated
51
- :ripple="false"
52
- :color="firstBtnColor"
53
- :outline="firstBtnOutLine"
54
- @click="$emit('handleFirst')"
55
- >
56
- {{ buttonLabel }}
57
- </q-btn>
58
- <q-btn
59
- v-if="twoButtons"
60
- class="modal-button second"
61
- no-caps
62
- no-wrap
63
- dense
64
- unelevated
65
- :ripple="false"
66
- :color="secondBtnColor"
67
- :outline="secondBtnOutLine"
68
- @click="$emit('handleSecond')"
69
- >
70
- {{ secondButtonLabel }}
71
- </q-btn>
72
- </q-card-actions>
73
- </q-card>
74
- </q-dialog>
75
- </template>
76
-
77
- <script>
78
- import { defineComponent } from 'vue';
79
- import {
80
- QDialog,
81
- QCard,
82
- QCardSection,
83
- QBtn,
84
- QIcon,
85
- QCardActions,
86
- } from 'quasar';
87
- import {
88
- infoOutlineIcon,
89
- warningOutlineIcon,
90
- closeIcon,
91
- } from '../assets/icons.js';
92
-
93
- export default defineComponent({
94
- name: 'SConfirm',
95
- components: {
96
- QDialog,
97
- QCard,
98
- QCardSection,
99
- QCardActions,
100
- QBtn,
101
- QIcon,
102
- },
103
- props: {
104
- withHeaderIcon: {
105
- type: Boolean,
106
- default: false,
107
- },
108
- title: {
109
- type: String,
110
- default: '',
111
- },
112
- content: {
113
- type: String,
114
- default: '',
115
- },
116
- type: {
117
- type: String,
118
- default: 'info',
119
- },
120
- buttonLabel: {
121
- type: String,
122
- default: '',
123
- },
124
- twoButtons: {
125
- type: Boolean,
126
- default: false,
127
- },
128
- secondButtonLabel: {
129
- type: String,
130
- default: '',
131
- },
132
- firstBtnColor: {
133
- type: String,
134
- default: '',
135
- },
136
- secondBtnColor: {
137
- type: String,
138
- default: '',
139
- },
140
- firstBtnOutLine: {
141
- type: Boolean,
142
- default: false,
143
- },
144
- secondBtnOutLine: {
145
- type: Boolean,
146
- default: false,
147
- },
148
- btnVertical: {
149
- type: Boolean,
150
- default: false,
151
- },
152
- },
153
- emits: ['handleClose', 'handleFirst', 'handleSecond'],
154
- setup() {
155
- return {
156
- infoOutlineIcon,
157
- warningOutlineIcon,
158
- closeIcon,
159
- };
160
- },
161
- });
162
- </script>
163
-
164
- <style lang="scss">
165
- @import "../css/quasar.variables.scss";
166
-
167
- .s-confirm {
168
- border-radius: 8px;
169
- padding: 40px 24px;
170
- width: 504px;
171
- display: flex;
172
- align-items: center;
173
- justify-content: center;
174
- flex-direction: column;
175
- .modal-close-button {
176
- position: absolute;
177
- top: 12px;
178
- right: 12px;
179
- width: 24px;
180
- height: 24px;
181
- padding: 0;
182
- .q-btn {
183
- color: $Grey_Darken-2;
184
- padding: 0;
185
- width: 100%;
186
- height: 100%;
187
- align-items: center;
188
- justify-content: center;
189
- min: {
190
- height: 0;
191
- width: 0;
192
- }
193
- .q-focusable:focus .q-focus-helper,
194
- .q-hoverable:hover .q-focus-helper {
195
- background: inherit !important;
196
- opacity: 0;
197
- }
198
- .q-icon {
199
- width: 100%;
200
- height: 100%;
201
- }
202
- }
203
- }
204
- .modal-title {
205
- padding: 0 0 16px;
206
- text-align: center;
207
- color: $Grey_Darken-5;
208
- font: {
209
- size: 20px;
210
- weight: 700;
211
- }
212
- .modal-icon {
213
- text-align: center;
214
- width: 32px;
215
- height: 32px;
216
- margin: 0 auto 16px;
217
- }
218
- }
219
- .modal-content {
220
- padding: 0 0 32px;
221
- text-align: center;
222
- font: {
223
- size: 14px;
224
- weight: 400;
225
- }
226
- }
227
- .modal-buttons {
228
- text-align: center;
229
- padding: 0;
230
- width: 100%;
231
- height: 42px;
232
- display: flex;
233
- flex-flow: row nowrap;
234
- justify-content: center;
235
- .q-btn {
236
- min-width: 76px;
237
- padding: 8px 24px;
238
- margin: 0 4px;
239
- height: 42px;
240
- font: {
241
- weight: 500;
242
- size: 18px;
243
- }
244
- &__content {
245
- height: 100%;
246
- }
247
- }
248
- }
249
- }
250
- </style>
1
+ <template>
2
+ <q-dialog>
3
+ <q-card class="s-confirm">
4
+ <q-card-actions class="modal-close-button">
5
+ <q-btn
6
+ :icon="closeIcon"
7
+ flat
8
+ round
9
+ dense
10
+ v-close-popup
11
+ color="Grey_Default"
12
+ :ripple="false"
13
+ @click="$emit('handleClose')"
14
+ />
15
+ </q-card-actions>
16
+ <q-card-section class="modal-title">
17
+ <div
18
+ v-if="withHeaderIcon"
19
+ class="flex items-center justify-center modal-icon"
20
+ >
21
+ <q-icon
22
+ v-if="type === 'info'"
23
+ :name="infoOutlineIcon"
24
+ size="32px"
25
+ color="positive"
26
+ />
27
+ <q-icon
28
+ v-else
29
+ :name="warningOutlineIcon"
30
+ size="32px"
31
+ color="negative"
32
+ />
33
+ </div>
34
+ {{ title }}
35
+ </q-card-section>
36
+ <q-card-section class="modal-content">
37
+ <slot name="content"></slot>
38
+ </q-card-section>
39
+ <q-card-actions
40
+ class="modal-buttons"
41
+ align="center"
42
+ :vertical="btnVertical"
43
+ :class="btnVertical ? 'btn-vertical' : 'no-vertical'"
44
+ >
45
+ <q-btn
46
+ class="modal-button first"
47
+ no-caps
48
+ no-wrap
49
+ dense
50
+ unelevated
51
+ :ripple="false"
52
+ :color="firstBtnColor"
53
+ :outline="firstBtnOutLine"
54
+ @click="$emit('handleFirst')"
55
+ >
56
+ {{ buttonLabel }}
57
+ </q-btn>
58
+ <q-btn
59
+ v-if="twoButtons"
60
+ class="modal-button second"
61
+ no-caps
62
+ no-wrap
63
+ dense
64
+ unelevated
65
+ :ripple="false"
66
+ :color="secondBtnColor"
67
+ :outline="secondBtnOutLine"
68
+ @click="$emit('handleSecond')"
69
+ >
70
+ {{ secondButtonLabel }}
71
+ </q-btn>
72
+ </q-card-actions>
73
+ </q-card>
74
+ </q-dialog>
75
+ </template>
76
+
77
+ <script>
78
+ import { defineComponent } from 'vue';
79
+ import {
80
+ QDialog,
81
+ QCard,
82
+ QCardSection,
83
+ QBtn,
84
+ QIcon,
85
+ QCardActions,
86
+ } from 'quasar';
87
+ import {
88
+ infoOutlineIcon,
89
+ warningOutlineIcon,
90
+ closeIcon,
91
+ } from '../assets/icons.js';
92
+
93
+ export default defineComponent({
94
+ name: 'SConfirm',
95
+ components: {
96
+ QDialog,
97
+ QCard,
98
+ QCardSection,
99
+ QCardActions,
100
+ QBtn,
101
+ QIcon,
102
+ },
103
+ props: {
104
+ withHeaderIcon: {
105
+ type: Boolean,
106
+ default: false,
107
+ },
108
+ title: {
109
+ type: String,
110
+ default: '',
111
+ },
112
+ content: {
113
+ type: String,
114
+ default: '',
115
+ },
116
+ type: {
117
+ type: String,
118
+ default: 'info',
119
+ },
120
+ buttonLabel: {
121
+ type: String,
122
+ default: '',
123
+ },
124
+ twoButtons: {
125
+ type: Boolean,
126
+ default: false,
127
+ },
128
+ secondButtonLabel: {
129
+ type: String,
130
+ default: '',
131
+ },
132
+ firstBtnColor: {
133
+ type: String,
134
+ default: '',
135
+ },
136
+ secondBtnColor: {
137
+ type: String,
138
+ default: '',
139
+ },
140
+ firstBtnOutLine: {
141
+ type: Boolean,
142
+ default: false,
143
+ },
144
+ secondBtnOutLine: {
145
+ type: Boolean,
146
+ default: false,
147
+ },
148
+ btnVertical: {
149
+ type: Boolean,
150
+ default: false,
151
+ },
152
+ },
153
+ emits: ['handleClose', 'handleFirst', 'handleSecond'],
154
+ setup() {
155
+ return {
156
+ infoOutlineIcon,
157
+ warningOutlineIcon,
158
+ closeIcon,
159
+ };
160
+ },
161
+ });
162
+ </script>
163
+
164
+ <style lang="scss">
165
+ @import "../css/quasar.variables.scss";
166
+
167
+ .s-confirm {
168
+ border-radius: 8px;
169
+ padding: 40px 24px;
170
+ width: 504px;
171
+ display: flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ flex-direction: column;
175
+ .modal-close-button {
176
+ position: absolute;
177
+ top: 12px;
178
+ right: 12px;
179
+ width: 24px;
180
+ height: 24px;
181
+ padding: 0;
182
+ .q-btn {
183
+ color: $Grey_Darken-2;
184
+ padding: 0;
185
+ width: 100%;
186
+ height: 100%;
187
+ align-items: center;
188
+ justify-content: center;
189
+ min: {
190
+ height: 0;
191
+ width: 0;
192
+ }
193
+ .q-focusable:focus .q-focus-helper,
194
+ .q-hoverable:hover .q-focus-helper {
195
+ background: inherit !important;
196
+ opacity: 0;
197
+ }
198
+ .q-icon {
199
+ width: 100%;
200
+ height: 100%;
201
+ }
202
+ }
203
+ }
204
+ .modal-title {
205
+ padding: 0 0 16px;
206
+ text-align: center;
207
+ color: $Grey_Darken-5;
208
+ font: {
209
+ size: 20px;
210
+ weight: 700;
211
+ }
212
+ .modal-icon {
213
+ text-align: center;
214
+ width: 32px;
215
+ height: 32px;
216
+ margin: 0 auto 16px;
217
+ }
218
+ }
219
+ .modal-content {
220
+ padding: 0 0 32px;
221
+ text-align: center;
222
+ font: {
223
+ size: 14px;
224
+ weight: 400;
225
+ }
226
+ }
227
+ .modal-buttons {
228
+ text-align: center;
229
+ padding: 0;
230
+ width: 100%;
231
+ height: 42px;
232
+ display: flex;
233
+ flex-flow: row nowrap;
234
+ justify-content: center;
235
+ .q-btn {
236
+ min-width: 76px;
237
+ padding: 8px 24px;
238
+ margin: 0 4px;
239
+ height: 42px;
240
+ font: {
241
+ weight: 500;
242
+ size: 18px;
243
+ }
244
+ &__content {
245
+ height: 100%;
246
+ }
247
+ }
248
+ }
249
+ }
250
+ </style>