quasar 2.4.13 → 2.5.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 (163) hide show
  1. package/dist/api/QCheckbox.json +27 -0
  2. package/dist/api/QRadio.json +18 -0
  3. package/dist/api/QTime.json +8 -2
  4. package/dist/api/QToggle.json +24 -24
  5. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  6. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  9. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  10. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  11. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  15. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  16. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  17. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  19. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  20. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  21. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  22. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  23. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  34. package/dist/icon-set/themify.umd.prod.js +1 -1
  35. package/dist/lang/ar.umd.prod.js +1 -1
  36. package/dist/lang/az-Latn.umd.prod.js +1 -1
  37. package/dist/lang/bg.umd.prod.js +1 -1
  38. package/dist/lang/bn.umd.prod.js +1 -1
  39. package/dist/lang/ca.umd.prod.js +1 -1
  40. package/dist/lang/cs.umd.prod.js +1 -1
  41. package/dist/lang/da.umd.prod.js +1 -1
  42. package/dist/lang/de.umd.prod.js +1 -1
  43. package/dist/lang/el.umd.prod.js +1 -1
  44. package/dist/lang/en-GB.umd.prod.js +1 -1
  45. package/dist/lang/en-US.umd.prod.js +1 -1
  46. package/dist/lang/eo.umd.prod.js +1 -1
  47. package/dist/lang/es.umd.prod.js +1 -1
  48. package/dist/lang/et.umd.prod.js +1 -1
  49. package/dist/lang/fa-IR.umd.prod.js +1 -1
  50. package/dist/lang/fa.umd.prod.js +1 -1
  51. package/dist/lang/fi.umd.prod.js +1 -1
  52. package/dist/lang/fr.umd.prod.js +1 -1
  53. package/dist/lang/gn.umd.prod.js +1 -1
  54. package/dist/lang/he.umd.prod.js +1 -1
  55. package/dist/lang/hr.umd.prod.js +1 -1
  56. package/dist/lang/hu.umd.prod.js +1 -1
  57. package/dist/lang/id.umd.prod.js +1 -1
  58. package/dist/lang/is.umd.prod.js +1 -1
  59. package/dist/lang/it.umd.prod.js +1 -1
  60. package/dist/lang/ja.umd.prod.js +1 -1
  61. package/dist/lang/km.umd.prod.js +1 -1
  62. package/dist/lang/ko-KR.umd.prod.js +1 -1
  63. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  64. package/dist/lang/lt.umd.prod.js +1 -1
  65. package/dist/lang/lu.umd.prod.js +1 -1
  66. package/dist/lang/lv.umd.prod.js +1 -1
  67. package/dist/lang/ml.umd.prod.js +1 -1
  68. package/dist/lang/ms.umd.prod.js +1 -1
  69. package/dist/lang/my.umd.prod.js +1 -1
  70. package/dist/lang/nb-NO.umd.prod.js +1 -1
  71. package/dist/lang/nl.umd.prod.js +1 -1
  72. package/dist/lang/pl.umd.prod.js +1 -1
  73. package/dist/lang/pt-BR.umd.prod.js +1 -1
  74. package/dist/lang/pt.umd.prod.js +1 -1
  75. package/dist/lang/ro.umd.prod.js +1 -1
  76. package/dist/lang/ru.umd.prod.js +1 -1
  77. package/dist/lang/sk.umd.prod.js +1 -1
  78. package/dist/lang/sl.umd.prod.js +1 -1
  79. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  80. package/dist/lang/sr.umd.prod.js +1 -1
  81. package/dist/lang/sv.umd.prod.js +1 -1
  82. package/dist/lang/ta.umd.prod.js +1 -1
  83. package/dist/lang/th.umd.prod.js +1 -1
  84. package/dist/lang/tr.umd.prod.js +1 -1
  85. package/dist/lang/ug.umd.prod.js +1 -1
  86. package/dist/lang/uk.umd.prod.js +1 -1
  87. package/dist/lang/vi.umd.prod.js +1 -1
  88. package/dist/lang/zh-CN.umd.prod.js +1 -1
  89. package/dist/lang/zh-TW.umd.prod.js +1 -1
  90. package/dist/quasar.cjs.prod.js +2 -2
  91. package/dist/quasar.css +34 -10
  92. package/dist/quasar.esm.prod.js +2 -2
  93. package/dist/quasar.prod.css +1 -1
  94. package/dist/quasar.rtl.css +51 -23
  95. package/dist/quasar.rtl.prod.css +1 -1
  96. package/dist/quasar.sass +29 -11
  97. package/dist/quasar.umd.js +119 -49
  98. package/dist/quasar.umd.prod.js +2 -2
  99. package/dist/ssr-directives/Morph.js +1 -1
  100. package/dist/transforms/auto-import.json +39 -3
  101. package/dist/transforms/import-map.json +18 -0
  102. package/dist/types/index.d.ts +35 -13
  103. package/dist/vetur/quasar-attributes.json +32 -12
  104. package/dist/vetur/quasar-tags.json +8 -3
  105. package/dist/web-types/web-types.json +73 -28
  106. package/package.json +13 -3
  107. package/src/components/avatar/__tests__/QAvatar.spec.js +121 -0
  108. package/src/components/badge/__tests__/QBadge.spec.js +74 -0
  109. package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
  110. package/src/components/btn/__tests__/QBtn.spec.js +55 -0
  111. package/src/components/btn/__tests__/use-btn.spec.js +189 -0
  112. package/src/components/checkbox/QCheckbox.js +34 -3
  113. package/src/components/checkbox/QCheckbox.json +17 -0
  114. package/src/components/checkbox/QCheckbox.sass +17 -5
  115. package/src/components/checkbox/use-checkbox.js +4 -0
  116. package/src/components/checkbox/use-checkbox.json +18 -0
  117. package/src/components/chip/__tests__/QChip.spec.js +155 -0
  118. package/src/components/date/__tests__/QDate.spec.js +189 -0
  119. package/src/components/date/__tests__/use-datetime.spec.js +83 -0
  120. package/src/components/dialog/__tests__/QDialog.spec.js +129 -0
  121. package/src/components/editor/__tests__/QEditor.spec.js +195 -0
  122. package/src/components/input/QInput.js +9 -0
  123. package/src/components/input/__tests__/QInput.spec.js +105 -0
  124. package/src/components/input/__tests__/use-mask.spec.js +29 -0
  125. package/src/components/menu/__tests__/QMenu.spec.js +610 -0
  126. package/src/components/menu/__tests__/WrapperOne.vue +51 -0
  127. package/src/components/menu/__tests__/WrapperTwo.vue +38 -0
  128. package/src/components/radio/QRadio.js +26 -1
  129. package/src/components/radio/QRadio.json +16 -0
  130. package/src/components/radio/QRadio.sass +17 -6
  131. package/src/components/select/QSelect.js +1 -1
  132. package/src/components/select/__tests__/QSelect.spec.js +2003 -0
  133. package/src/components/select/__tests__/WrapperOne.vue +28 -0
  134. package/src/components/table/__tests__/QTable.spec.js +635 -0
  135. package/src/components/table/__tests__/QTd.spec.js +35 -0
  136. package/src/components/table/__tests__/QTh.spec.js +27 -0
  137. package/src/components/table/__tests__/QTr.spec.js +27 -0
  138. package/src/components/tabs/__tests__/QRouteTab.spec.js +9 -0
  139. package/src/components/tabs/__tests__/QTab.spec.js +79 -0
  140. package/src/components/tabs/__tests__/QTabs.spec.js +147 -0
  141. package/src/components/time/QTime.json +2 -2
  142. package/src/components/toggle/QToggle.js +5 -13
  143. package/src/components/toggle/QToggle.json +3 -12
  144. package/src/components/uploader/__tests__/QUploader.spec.js +161 -0
  145. package/src/composables/private/__tests__/FieldWrapper.vue +39 -0
  146. package/src/composables/private/__tests__/use-anchor.spec.js +99 -0
  147. package/src/composables/private/__tests__/use-field.spec.js +351 -0
  148. package/src/composables/private/__tests__/use-file.spec.js +69 -0
  149. package/src/composables/private/__tests__/use-form.spec.js +11 -0
  150. package/src/composables/private/__tests__/use-fullscreen.spec.js +37 -0
  151. package/src/composables/private/__tests__/use-model-toggle.spec.js +306 -0
  152. package/src/composables/private/__tests__/use-portal.spec.js +4 -0
  153. package/src/composables/private/__tests__/use-router-link.spec.js +55 -0
  154. package/src/composables/private/__tests__/use-size.spec.js +37 -0
  155. package/src/composables/private/__tests__/use-transition.spec.js +108 -0
  156. package/src/composables/private/__tests__/use-validate.spec.js +111 -0
  157. package/src/composables/private/use-fullscreen.js +1 -1
  158. package/src/composables/private/use-model-toggle.js +1 -1
  159. package/src/composables/private/use-validate.js +9 -5
  160. package/src/plugins/Meta.js +1 -1
  161. package/src/plugins/Screen.js +11 -8
  162. package/src/utils/date.js +5 -5
  163. package/src/utils/private/vm.js +14 -8
@@ -0,0 +1,351 @@
1
+ import { mount } from '@cypress/vue'
2
+ import FieldWrapper from './FieldWrapper.vue'
3
+
4
+ describe('use-field API', () => {
5
+ describe('Props', () => {
6
+ describe('Category: behavior', () => {
7
+ describe('(prop): autofocus', () => {
8
+ it.skip(' ', () => {
9
+ //
10
+ })
11
+ })
12
+
13
+ describe('(prop): for', () => {
14
+ it.skip(' ', () => {
15
+ //
16
+ })
17
+ })
18
+
19
+ describe('(prop): name', () => {
20
+ it.skip(' ', () => {
21
+ //
22
+ })
23
+ })
24
+ })
25
+
26
+ describe('Category: behavior|content', () => {
27
+ describe('(prop): loading', () => {
28
+ it.skip(' ', () => {
29
+ //
30
+ })
31
+ })
32
+
33
+ describe('(prop): clearable', () => {
34
+ it.skip(' ', () => {
35
+ //
36
+ })
37
+ })
38
+ })
39
+
40
+ describe('Category: content', () => {
41
+ describe('(prop): label', () => {
42
+ it('should show the label when supplied', () => {
43
+ const label = 'Select something'
44
+ mount(FieldWrapper, {
45
+ attrs: {
46
+ label
47
+ }
48
+ })
49
+ cy.get('.select-root')
50
+ .should('contain.text', label)
51
+ })
52
+
53
+ it('should show the label centered when not focused', () => {
54
+ const label = 'Select something'
55
+ mount(FieldWrapper, {
56
+ attrs: {
57
+ label
58
+ }
59
+ })
60
+ cy.get('.select-root')
61
+ .get(`div:contains(${ label })`)
62
+ .should('exist')
63
+ .should('not.have.class', 'q-field--float')
64
+ })
65
+
66
+ it('should show the label stacked when focused', () => {
67
+ const label = 'Select something'
68
+ mount(FieldWrapper, {
69
+ attrs: {
70
+ label
71
+ }
72
+ })
73
+ cy.get('.select-root [tabindex="0"]')
74
+ .focus()
75
+ cy.get(`.select-root:contains(${ label })`)
76
+ .should('exist')
77
+ .should('have.class', 'q-field--float')
78
+ })
79
+ })
80
+
81
+ describe('(prop): stack-label', () => {
82
+ it('should show the label stacked', () => {
83
+ const label = 'Select something'
84
+ mount(FieldWrapper, {
85
+ attrs: {
86
+ label,
87
+ stackLabel: true
88
+ }
89
+ })
90
+ cy.get(`.select-root:contains(${ label })`)
91
+ .should('exist')
92
+ .should('have.class', 'q-field--float')
93
+ })
94
+ })
95
+
96
+ describe('(prop): hint', () => {
97
+ it('should show a hint text', () => {
98
+ const hint = 'Select something'
99
+ mount(FieldWrapper, {
100
+ attrs: {
101
+ hint
102
+ }
103
+ })
104
+ cy.get(`.select-root:contains(${ hint })`)
105
+ .should('exist')
106
+ })
107
+ })
108
+
109
+ describe('(prop): hide-hint', () => {
110
+ it('should not show a hint text when not focused', () => {
111
+ const hint = 'Select something'
112
+ mount(FieldWrapper, {
113
+ attrs: {
114
+ hint,
115
+ hideHint: true
116
+ }
117
+ })
118
+ cy.get(`.select-root:contains(${ hint })`)
119
+ .should('not.exist')
120
+ })
121
+ it('should show a hint text when focused', () => {
122
+ const hint = 'Select something'
123
+ mount(FieldWrapper, {
124
+ attrs: {
125
+ hint,
126
+ hideHint: true
127
+ }
128
+ })
129
+ cy.get('.select-root [tabindex="0"]')
130
+ .focus()
131
+ cy.get(`.select-root:contains(${ hint })`)
132
+ .should('exist')
133
+ })
134
+ })
135
+
136
+ describe('(prop): prefix', () => {
137
+ it.skip(' ', () => {
138
+ //
139
+ })
140
+ })
141
+
142
+ describe('(prop): suffix', () => {
143
+ it.skip(' ', () => {
144
+ //
145
+ })
146
+ })
147
+
148
+ describe('(prop): clear-icon', () => {
149
+ it.skip(' ', () => {
150
+ //
151
+ })
152
+ })
153
+
154
+ describe('(prop): label-slot', () => {
155
+ it.skip(' ', () => {
156
+ //
157
+ })
158
+ })
159
+
160
+ describe('(prop): bottom-slots', () => {
161
+ it.skip(' ', () => {
162
+ //
163
+ })
164
+ })
165
+
166
+ describe('(prop): counter', () => {
167
+ it.skip(' ', () => {
168
+ //
169
+ })
170
+ })
171
+ })
172
+
173
+ describe('Category: state', () => {
174
+ describe('(prop): disable', () => {
175
+ it.skip(' ', () => {
176
+ //
177
+ })
178
+ })
179
+
180
+ describe('(prop): readonly', () => {
181
+ it.skip(' ', () => {
182
+ //
183
+ })
184
+ })
185
+ })
186
+
187
+ describe('Category: style', () => {
188
+ describe('(prop): label-color', () => {
189
+ it.skip(' ', () => {
190
+ //
191
+ })
192
+ })
193
+
194
+ describe('(prop): color', () => {
195
+ it.skip(' ', () => {
196
+ //
197
+ })
198
+ })
199
+
200
+ describe('(prop): bg-color', () => {
201
+ it.skip(' ', () => {
202
+ //
203
+ })
204
+ })
205
+
206
+ describe('(prop): dark', () => {
207
+ it.skip(' ', () => {
208
+ //
209
+ })
210
+ })
211
+
212
+ describe('(prop): filled', () => {
213
+ it.skip(' ', () => {
214
+ //
215
+ })
216
+ })
217
+
218
+ describe('(prop): outlined', () => {
219
+ it.skip(' ', () => {
220
+ //
221
+ })
222
+ })
223
+
224
+ describe('(prop): borderless', () => {
225
+ it.skip(' ', () => {
226
+ //
227
+ })
228
+ })
229
+
230
+ describe('(prop): standout', () => {
231
+ it.skip(' ', () => {
232
+ //
233
+ })
234
+ })
235
+
236
+ describe('(prop): hide-bottom-space', () => {
237
+ it.skip(' ', () => {
238
+ //
239
+ })
240
+ })
241
+
242
+ describe('(prop): rounded', () => {
243
+ it.skip(' ', () => {
244
+ //
245
+ })
246
+ })
247
+
248
+ describe('(prop): square', () => {
249
+ it.skip(' ', () => {
250
+ //
251
+ })
252
+ })
253
+
254
+ describe('(prop): dense', () => {
255
+ it.skip(' ', () => {
256
+ //
257
+ })
258
+ })
259
+
260
+ describe('(prop): item-aligned', () => {
261
+ it.skip(' ', () => {
262
+ //
263
+ })
264
+ })
265
+ })
266
+ })
267
+
268
+ describe('Slots', () => {
269
+ describe('(slot): default', () => {
270
+ it.skip(' ', () => {
271
+ //
272
+ })
273
+ })
274
+
275
+ describe('(slot): prepend', () => {
276
+ it.skip(' ', () => {
277
+ //
278
+ })
279
+ })
280
+
281
+ describe('(slot): append', () => {
282
+ it.skip(' ', () => {
283
+ //
284
+ })
285
+ })
286
+
287
+ describe('(slot): before', () => {
288
+ it.skip(' ', () => {
289
+ //
290
+ })
291
+ })
292
+
293
+ describe('(slot): after', () => {
294
+ it.skip(' ', () => {
295
+ //
296
+ })
297
+ })
298
+
299
+ describe('(slot): label', () => {
300
+ it.skip(' ', () => {
301
+ //
302
+ })
303
+ })
304
+
305
+ describe('(slot): error', () => {
306
+ it.skip(' ', () => {
307
+ //
308
+ })
309
+ })
310
+
311
+ describe('(slot): hint', () => {
312
+ it.skip(' ', () => {
313
+ //
314
+ })
315
+ })
316
+
317
+ describe('(slot): counter', () => {
318
+ it.skip(' ', () => {
319
+ //
320
+ })
321
+ })
322
+
323
+ describe('(slot): loading', () => {
324
+ it.skip(' ', () => {
325
+ //
326
+ })
327
+ })
328
+ })
329
+
330
+ describe('Events', () => {
331
+ describe('(event): clear', () => {
332
+ it.skip(' ', () => {
333
+ //
334
+ })
335
+ })
336
+ })
337
+
338
+ describe('Methods', () => {
339
+ describe('(method): focus', () => {
340
+ it.skip(' ', () => {
341
+ //
342
+ })
343
+ })
344
+
345
+ describe('(method): blur', () => {
346
+ it.skip(' ', () => {
347
+ //
348
+ })
349
+ })
350
+ })
351
+ })
@@ -0,0 +1,69 @@
1
+ describe('use-file API', () => {
2
+ describe('Props', () => {
3
+ describe('Category: behavior', () => {
4
+ describe('(prop): multiple', () => {
5
+ it.skip(' ', () => {
6
+ //
7
+ })
8
+ })
9
+
10
+ describe('(prop): accept', () => {
11
+ it.skip(' ', () => {
12
+ //
13
+ })
14
+ })
15
+
16
+ describe('(prop): capture', () => {
17
+ it.skip(' ', () => {
18
+ //
19
+ })
20
+ })
21
+
22
+ describe('(prop): max-file-size', () => {
23
+ it.skip(' ', () => {
24
+ //
25
+ })
26
+ })
27
+
28
+ describe('(prop): max-total-size', () => {
29
+ it.skip(' ', () => {
30
+ //
31
+ })
32
+ })
33
+
34
+ describe('(prop): max-files', () => {
35
+ it.skip(' ', () => {
36
+ //
37
+ })
38
+ })
39
+
40
+ describe('(prop): filter', () => {
41
+ it.skip(' ', () => {
42
+ //
43
+ })
44
+ })
45
+ })
46
+ })
47
+
48
+ describe('Events', () => {
49
+ describe('(event): rejected', () => {
50
+ it.skip(' ', () => {
51
+ //
52
+ })
53
+ })
54
+ })
55
+
56
+ describe('Methods', () => {
57
+ describe('(method): pickFiles', () => {
58
+ it.skip(' ', () => {
59
+ //
60
+ })
61
+ })
62
+
63
+ describe('(method): addFiles', () => {
64
+ it.skip(' ', () => {
65
+ //
66
+ })
67
+ })
68
+ })
69
+ })
@@ -0,0 +1,11 @@
1
+ describe('use-form API', () => {
2
+ describe('Props', () => {
3
+ describe('Category: behavior', () => {
4
+ describe('(prop): name', () => {
5
+ it.skip(' ', () => {
6
+ //
7
+ })
8
+ })
9
+ })
10
+ })
11
+ })
@@ -0,0 +1,37 @@
1
+ describe('use-fullscreen API', () => {
2
+ describe('Props', () => {
3
+ describe('Category: behavior', () => {
4
+ describe('(prop): fullscreen', () => {
5
+ it.skip(' ', () => {
6
+ //
7
+ })
8
+ })
9
+
10
+ describe('(prop): no-route-fullscreen-exit', () => {
11
+ it.skip(' ', () => {
12
+ //
13
+ })
14
+ })
15
+ })
16
+ })
17
+
18
+ describe('Methods', () => {
19
+ describe('(method): toggleFullscreen', () => {
20
+ it.skip(' ', () => {
21
+ //
22
+ })
23
+ })
24
+
25
+ describe('(method): setFullscreen', () => {
26
+ it.skip(' ', () => {
27
+ //
28
+ })
29
+ })
30
+
31
+ describe('(method): exitFullscreen', () => {
32
+ it.skip(' ', () => {
33
+ //
34
+ })
35
+ })
36
+ })
37
+ })