quasar 2.4.13 → 2.5.3
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.
- package/dist/api/QCheckbox.json +27 -0
- package/dist/api/QRadio.json +18 -0
- package/dist/api/QTime.json +8 -2
- package/dist/api/QToggle.json +24 -24
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +38 -10
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +55 -23
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +31 -11
- package/dist/quasar.umd.js +307 -158
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/transforms/auto-import.json +39 -3
- package/dist/transforms/import-map.json +18 -0
- package/dist/types/index.d.ts +35 -13
- package/dist/types/utils/date.d.ts +25 -13
- package/dist/vetur/quasar-attributes.json +32 -12
- package/dist/vetur/quasar-tags.json +8 -3
- package/dist/web-types/web-types.json +73 -28
- package/package.json +13 -3
- package/src/components/avatar/__tests__/QAvatar.spec.js +121 -0
- package/src/components/badge/__tests__/QBadge.spec.js +74 -0
- package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
- package/src/components/btn/__tests__/QBtn.spec.js +55 -0
- package/src/components/btn/__tests__/use-btn.spec.js +189 -0
- package/src/components/checkbox/QCheckbox.js +34 -3
- package/src/components/checkbox/QCheckbox.json +17 -0
- package/src/components/checkbox/QCheckbox.sass +17 -5
- package/src/components/checkbox/use-checkbox.js +4 -0
- package/src/components/checkbox/use-checkbox.json +18 -0
- package/src/components/chip/__tests__/QChip.spec.js +155 -0
- package/src/components/date/__tests__/QDate.spec.js +189 -0
- package/src/components/date/__tests__/use-datetime.spec.js +83 -0
- package/src/components/dialog/__tests__/QDialog.spec.js +129 -0
- package/src/components/editor/__tests__/QEditor.spec.js +195 -0
- package/src/components/field/QField.sass +2 -0
- package/src/components/form/QForm.js +26 -24
- package/src/components/input/QInput.js +9 -0
- package/src/components/input/__tests__/QInput.spec.js +105 -0
- package/src/components/input/__tests__/use-mask.spec.js +29 -0
- package/src/components/menu/__tests__/QMenu.spec.js +610 -0
- package/src/components/menu/__tests__/WrapperOne.vue +51 -0
- package/src/components/menu/__tests__/WrapperTwo.vue +38 -0
- package/src/components/radio/QRadio.js +26 -1
- package/src/components/radio/QRadio.json +16 -0
- package/src/components/radio/QRadio.sass +17 -6
- package/src/components/select/QSelect.js +1 -1
- package/src/components/select/__tests__/QSelect.spec.js +2003 -0
- package/src/components/select/__tests__/WrapperOne.vue +28 -0
- package/src/components/table/__tests__/QTable.spec.js +635 -0
- package/src/components/table/__tests__/QTd.spec.js +35 -0
- package/src/components/table/__tests__/QTh.spec.js +27 -0
- package/src/components/table/__tests__/QTr.spec.js +27 -0
- package/src/components/tabs/__tests__/QRouteTab.spec.js +9 -0
- package/src/components/tabs/__tests__/QTab.spec.js +79 -0
- package/src/components/tabs/__tests__/QTabs.spec.js +147 -0
- package/src/components/time/QTime.json +2 -2
- package/src/components/toggle/QToggle.js +5 -13
- package/src/components/toggle/QToggle.json +3 -12
- package/src/components/tree/QTree.js +39 -41
- package/src/components/uploader/__tests__/QUploader.spec.js +161 -0
- package/src/composables/private/__tests__/FieldWrapper.vue +39 -0
- package/src/composables/private/__tests__/use-anchor.spec.js +99 -0
- package/src/composables/private/__tests__/use-field.spec.js +351 -0
- package/src/composables/private/__tests__/use-file.spec.js +69 -0
- package/src/composables/private/__tests__/use-form.spec.js +11 -0
- package/src/composables/private/__tests__/use-fullscreen.spec.js +37 -0
- package/src/composables/private/__tests__/use-model-toggle.spec.js +306 -0
- package/src/composables/private/__tests__/use-portal.spec.js +4 -0
- package/src/composables/private/__tests__/use-router-link.spec.js +55 -0
- package/src/composables/private/__tests__/use-size.spec.js +37 -0
- package/src/composables/private/__tests__/use-transition.spec.js +108 -0
- package/src/composables/private/__tests__/use-validate.spec.js +111 -0
- package/src/composables/private/use-fullscreen.js +1 -1
- package/src/composables/private/use-model-toggle.js +1 -1
- package/src/composables/private/use-validate.js +22 -22
- package/src/plugins/Meta.js +1 -1
- package/src/plugins/Screen.js +16 -9
- package/src/utils/date.js +111 -32
- package/src/utils/private/vm.js +14 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
describe('Tr API', () => {
|
|
2
|
+
describe('Props', () => {
|
|
3
|
+
describe('Category: general', () => {
|
|
4
|
+
describe('(prop): props', () => {
|
|
5
|
+
it.skip(' ', () => {
|
|
6
|
+
//
|
|
7
|
+
})
|
|
8
|
+
})
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
describe('Category: style', () => {
|
|
12
|
+
describe('(prop): no-hover', () => {
|
|
13
|
+
it.skip(' ', () => {
|
|
14
|
+
//
|
|
15
|
+
})
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
describe('Slots', () => {
|
|
21
|
+
describe('(slot): default', () => {
|
|
22
|
+
it.skip(' ', () => {
|
|
23
|
+
//
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
})
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
describe('Tab API', () => {
|
|
2
|
+
describe('Props', () => {
|
|
3
|
+
describe('Category: content', () => {
|
|
4
|
+
describe('(prop): icon', () => {
|
|
5
|
+
it.skip(' ', () => {
|
|
6
|
+
//
|
|
7
|
+
})
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
describe('(prop): label', () => {
|
|
11
|
+
it.skip(' ', () => {
|
|
12
|
+
//
|
|
13
|
+
})
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
describe('(prop): alert', () => {
|
|
17
|
+
it.skip(' ', () => {
|
|
18
|
+
//
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
describe('(prop): alert-icon', () => {
|
|
23
|
+
it.skip(' ', () => {
|
|
24
|
+
//
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
describe('(prop): no-caps', () => {
|
|
29
|
+
it.skip(' ', () => {
|
|
30
|
+
//
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
describe('Category: general', () => {
|
|
36
|
+
describe('(prop): name', () => {
|
|
37
|
+
it.skip(' ', () => {
|
|
38
|
+
//
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
describe('(prop): tabindex', () => {
|
|
43
|
+
it.skip(' ', () => {
|
|
44
|
+
//
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
describe('Category: state', () => {
|
|
50
|
+
describe('(prop): disable', () => {
|
|
51
|
+
it.skip(' ', () => {
|
|
52
|
+
//
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
describe('Category: style', () => {
|
|
58
|
+
describe('(prop): content-class', () => {
|
|
59
|
+
it.skip(' ', () => {
|
|
60
|
+
//
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
describe('(prop): ripple', () => {
|
|
65
|
+
it.skip(' ', () => {
|
|
66
|
+
//
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
describe('Slots', () => {
|
|
73
|
+
describe('(slot): default', () => {
|
|
74
|
+
it.skip(' ', () => {
|
|
75
|
+
//
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
describe('Tabs API', () => {
|
|
2
|
+
describe('Props', () => {
|
|
3
|
+
describe('Category: content', () => {
|
|
4
|
+
describe('(prop): vertical', () => {
|
|
5
|
+
it.skip(' ', () => {
|
|
6
|
+
//
|
|
7
|
+
})
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
describe('(prop): outside-arrows', () => {
|
|
11
|
+
it.skip(' ', () => {
|
|
12
|
+
//
|
|
13
|
+
})
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
describe('(prop): mobile-arrows', () => {
|
|
17
|
+
it.skip(' ', () => {
|
|
18
|
+
//
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
describe('(prop): align', () => {
|
|
23
|
+
it.skip(' ', () => {
|
|
24
|
+
//
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
describe('(prop): left-icon', () => {
|
|
29
|
+
it.skip(' ', () => {
|
|
30
|
+
//
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
describe('(prop): right-icon', () => {
|
|
35
|
+
it.skip(' ', () => {
|
|
36
|
+
//
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
describe('(prop): stretch', () => {
|
|
41
|
+
it.skip(' ', () => {
|
|
42
|
+
//
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
describe('(prop): shrink', () => {
|
|
47
|
+
it.skip(' ', () => {
|
|
48
|
+
//
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
describe('(prop): switch-indicator', () => {
|
|
53
|
+
it.skip(' ', () => {
|
|
54
|
+
//
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
describe('(prop): narrow-indicator', () => {
|
|
59
|
+
it.skip(' ', () => {
|
|
60
|
+
//
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
describe('(prop): inline-label', () => {
|
|
65
|
+
it.skip(' ', () => {
|
|
66
|
+
//
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
describe('(prop): no-caps', () => {
|
|
71
|
+
it.skip(' ', () => {
|
|
72
|
+
//
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
describe('Category: content|behavior', () => {
|
|
78
|
+
describe('(prop): breakpoint', () => {
|
|
79
|
+
it.skip(' ', () => {
|
|
80
|
+
//
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
describe('Category: model', () => {
|
|
86
|
+
describe('(prop): model-value', () => {
|
|
87
|
+
it.skip(' ', () => {
|
|
88
|
+
//
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
describe('Category: style', () => {
|
|
94
|
+
describe('(prop): active-color', () => {
|
|
95
|
+
it.skip(' ', () => {
|
|
96
|
+
//
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
describe('(prop): active-bg-color', () => {
|
|
101
|
+
it.skip(' ', () => {
|
|
102
|
+
//
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
describe('(prop): indicator-color', () => {
|
|
107
|
+
it.skip(' ', () => {
|
|
108
|
+
//
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
describe('(prop): content-class', () => {
|
|
113
|
+
it.skip(' ', () => {
|
|
114
|
+
//
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
describe('(prop): active-class', () => {
|
|
119
|
+
it.skip(' ', () => {
|
|
120
|
+
//
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
describe('(prop): dense', () => {
|
|
125
|
+
it.skip(' ', () => {
|
|
126
|
+
//
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
describe('Slots', () => {
|
|
133
|
+
describe('(slot): default', () => {
|
|
134
|
+
it.skip(' ', () => {
|
|
135
|
+
//
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
describe('Events', () => {
|
|
141
|
+
describe('(event): update:model-value', () => {
|
|
142
|
+
it.skip(' ', () => {
|
|
143
|
+
//
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
})
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"examples": [ 15 ]
|
|
48
48
|
},
|
|
49
49
|
"min": {
|
|
50
|
-
"type": "Number",
|
|
50
|
+
"type": [ "Number", "null" ],
|
|
51
51
|
"desc": "Minutes",
|
|
52
52
|
"examples": [ 38 ]
|
|
53
53
|
},
|
|
54
54
|
"sec": {
|
|
55
|
-
"type": "Number",
|
|
55
|
+
"type": [ "Number", "null" ],
|
|
56
56
|
"desc": "Seconds",
|
|
57
57
|
"examples": [ 12 ]
|
|
58
58
|
}
|
|
@@ -13,10 +13,6 @@ export default createComponent({
|
|
|
13
13
|
...useCheckboxProps,
|
|
14
14
|
|
|
15
15
|
icon: String,
|
|
16
|
-
checkedIcon: String,
|
|
17
|
-
uncheckedIcon: String,
|
|
18
|
-
indeterminateIcon: String,
|
|
19
|
-
|
|
20
16
|
iconColor: String
|
|
21
17
|
},
|
|
22
18
|
|
|
@@ -24,29 +20,25 @@ export default createComponent({
|
|
|
24
20
|
|
|
25
21
|
setup (props) {
|
|
26
22
|
function getInner (isTrue, isIndeterminate) {
|
|
27
|
-
const
|
|
23
|
+
const icon = computed(() =>
|
|
28
24
|
(isTrue.value === true
|
|
29
25
|
? props.checkedIcon
|
|
30
26
|
: (isIndeterminate.value === true ? props.indeterminateIcon : props.uncheckedIcon)
|
|
31
27
|
) || props.icon
|
|
32
28
|
)
|
|
33
29
|
|
|
34
|
-
const
|
|
35
|
-
if (isTrue.value === true) {
|
|
36
|
-
return props.iconColor
|
|
37
|
-
}
|
|
38
|
-
})
|
|
30
|
+
const color = computed(() => (isTrue.value === true ? props.iconColor : null))
|
|
39
31
|
|
|
40
32
|
return () => [
|
|
41
33
|
h('div', { class: 'q-toggle__track' }),
|
|
42
34
|
|
|
43
35
|
h('div', {
|
|
44
36
|
class: 'q-toggle__thumb absolute flex flex-center no-wrap'
|
|
45
|
-
},
|
|
37
|
+
}, icon.value !== void 0
|
|
46
38
|
? [
|
|
47
39
|
h(QIcon, {
|
|
48
|
-
name:
|
|
49
|
-
color:
|
|
40
|
+
name: icon.value,
|
|
41
|
+
color: color.value
|
|
50
42
|
})
|
|
51
43
|
]
|
|
52
44
|
: void 0
|
|
@@ -11,24 +11,15 @@
|
|
|
11
11
|
},
|
|
12
12
|
|
|
13
13
|
"checked-icon": {
|
|
14
|
-
"
|
|
15
|
-
"desc": "The icon to be used when the toggle is on",
|
|
16
|
-
"examples": [ "visibility" ],
|
|
17
|
-
"category": "content"
|
|
14
|
+
"desc": "The icon to be used when the toggle is on"
|
|
18
15
|
},
|
|
19
16
|
|
|
20
17
|
"unchecked-icon": {
|
|
21
|
-
"
|
|
22
|
-
"desc": "The icon to be used when the toggle is off",
|
|
23
|
-
"examples": [ "visibility_off" ],
|
|
24
|
-
"category": "content"
|
|
18
|
+
"desc": "The icon to be used when the toggle is off"
|
|
25
19
|
},
|
|
26
20
|
|
|
27
21
|
"indeterminate-icon": {
|
|
28
|
-
"
|
|
29
|
-
"desc": "The icon to be used when the model is indeterminate",
|
|
30
|
-
"examples": [ "help" ],
|
|
31
|
-
"category": "content"
|
|
22
|
+
"desc": "The icon to be used when the model is indeterminate"
|
|
32
23
|
},
|
|
33
24
|
|
|
34
25
|
"icon-color": {
|
|
@@ -542,34 +542,34 @@ export default createComponent({
|
|
|
542
542
|
|
|
543
543
|
m.lazy === 'loading'
|
|
544
544
|
? h(QSpinner, {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
class: 'q-tree__spinner',
|
|
546
|
+
color: computedControlColor.value
|
|
547
|
+
})
|
|
548
548
|
: (
|
|
549
549
|
isParent === true
|
|
550
550
|
? h(QIcon, {
|
|
551
|
-
|
|
551
|
+
class: 'q-tree__arrow'
|
|
552
552
|
+ (m.expanded === true ? ' q-tree__arrow--rotate' : ''),
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
name: computedIcon.value,
|
|
554
|
+
onClick (e) { onExpandClick(node, m, e) }
|
|
555
|
+
})
|
|
556
556
|
: null
|
|
557
557
|
),
|
|
558
558
|
|
|
559
559
|
m.hasTicking === true && m.noTick !== true
|
|
560
560
|
? h(QCheckbox, {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
561
|
+
class: 'q-tree__tickbox',
|
|
562
|
+
modelValue: m.indeterminate === true ? null : m.ticked,
|
|
563
|
+
color: computedControlColor.value,
|
|
564
|
+
dark: isDark.value,
|
|
565
|
+
dense: true,
|
|
566
|
+
keepColor: true,
|
|
567
|
+
disable: m.tickable !== true,
|
|
568
|
+
onKeydown: stopAndPrevent,
|
|
569
|
+
'onUpdate:modelValue': v => {
|
|
570
|
+
onTickedClick(m, v)
|
|
571
|
+
}
|
|
572
|
+
})
|
|
573
573
|
: null,
|
|
574
574
|
|
|
575
575
|
h('div', {
|
|
@@ -587,22 +587,22 @@ export default createComponent({
|
|
|
587
587
|
|
|
588
588
|
isParent === true
|
|
589
589
|
? h(QSlideTransition, {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
590
|
+
duration: props.duration,
|
|
591
|
+
onShow,
|
|
592
|
+
onHide
|
|
593
|
+
}, () => withDirectives(
|
|
594
|
+
h('div', {
|
|
595
|
+
class: 'q-tree__node-collapsible' + textColorClass.value,
|
|
596
|
+
key: `${ key }__q`
|
|
597
|
+
}, [
|
|
598
|
+
body,
|
|
594
599
|
h('div', {
|
|
595
|
-
class: 'q-
|
|
596
|
-
key: `${ key }__q`
|
|
597
|
-
}, [
|
|
598
|
-
body,
|
|
599
|
-
h('div', {
|
|
600
|
-
class: 'q-tree__children'
|
|
600
|
+
class: 'q-tree__children'
|
|
601
601
|
+ (m.disabled === true ? ' q-tree__node--disabled' : '')
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
}, children)
|
|
603
|
+
]),
|
|
604
|
+
[ [ vShow, m.expanded ] ]
|
|
605
|
+
))
|
|
606
606
|
: body
|
|
607
607
|
])
|
|
608
608
|
}
|
|
@@ -615,14 +615,12 @@ export default createComponent({
|
|
|
615
615
|
function onClick (node, meta, e, keyboard) {
|
|
616
616
|
keyboard !== true && blur(meta.key)
|
|
617
617
|
|
|
618
|
-
if (hasSelection.value) {
|
|
619
|
-
if (
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
emit('update:selected', meta.key || null)
|
|
625
|
-
}
|
|
618
|
+
if (hasSelection.value && meta.selectable) {
|
|
619
|
+
if (props.noSelectionUnset === false) {
|
|
620
|
+
emit('update:selected', meta.key !== props.selected ? meta.key : null)
|
|
621
|
+
}
|
|
622
|
+
else if (meta.key !== props.selected) {
|
|
623
|
+
emit('update:selected', meta.key || null)
|
|
626
624
|
}
|
|
627
625
|
}
|
|
628
626
|
else {
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
describe('Uploader API', () => {
|
|
2
|
+
describe('Props', () => {
|
|
3
|
+
describe('Category: behavior', () => {
|
|
4
|
+
describe('(prop): auto-upload', () => {
|
|
5
|
+
it.skip(' ', () => {
|
|
6
|
+
//
|
|
7
|
+
})
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
describe('(prop): hide-upload-btn', () => {
|
|
11
|
+
it.skip(' ', () => {
|
|
12
|
+
//
|
|
13
|
+
})
|
|
14
|
+
})
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
describe('Category: content', () => {
|
|
18
|
+
describe('(prop): label', () => {
|
|
19
|
+
it.skip(' ', () => {
|
|
20
|
+
//
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
describe('(prop): no-thumbnails', () => {
|
|
25
|
+
it.skip(' ', () => {
|
|
26
|
+
//
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
describe('Category: state', () => {
|
|
32
|
+
describe('(prop): disable', () => {
|
|
33
|
+
it.skip(' ', () => {
|
|
34
|
+
//
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
describe('(prop): readonly', () => {
|
|
39
|
+
it.skip(' ', () => {
|
|
40
|
+
//
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
describe('Category: style', () => {
|
|
46
|
+
describe('(prop): color', () => {
|
|
47
|
+
it.skip(' ', () => {
|
|
48
|
+
//
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
describe('(prop): text-color', () => {
|
|
53
|
+
it.skip(' ', () => {
|
|
54
|
+
//
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
describe('(prop): dark', () => {
|
|
59
|
+
it.skip(' ', () => {
|
|
60
|
+
//
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
describe('(prop): square', () => {
|
|
65
|
+
it.skip(' ', () => {
|
|
66
|
+
//
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
describe('(prop): flat', () => {
|
|
71
|
+
it.skip(' ', () => {
|
|
72
|
+
//
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
describe('(prop): bordered', () => {
|
|
77
|
+
it.skip(' ', () => {
|
|
78
|
+
//
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
describe('Slots', () => {
|
|
85
|
+
describe('(slot): header', () => {
|
|
86
|
+
it.skip(' ', () => {
|
|
87
|
+
//
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
describe('(slot): list', () => {
|
|
92
|
+
it.skip(' ', () => {
|
|
93
|
+
//
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
describe('Events', () => {
|
|
99
|
+
describe('(event): added', () => {
|
|
100
|
+
it.skip(' ', () => {
|
|
101
|
+
//
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
describe('(event): removed', () => {
|
|
106
|
+
it.skip(' ', () => {
|
|
107
|
+
//
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
describe('(event): start', () => {
|
|
112
|
+
it.skip(' ', () => {
|
|
113
|
+
//
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
describe('(event): finish', () => {
|
|
118
|
+
it.skip(' ', () => {
|
|
119
|
+
//
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
describe('Methods', () => {
|
|
125
|
+
describe('(method): upload', () => {
|
|
126
|
+
it.skip(' ', () => {
|
|
127
|
+
//
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
describe('(method): abort', () => {
|
|
132
|
+
it.skip(' ', () => {
|
|
133
|
+
//
|
|
134
|
+
})
|
|
135
|
+
})
|
|
136
|
+
|
|
137
|
+
describe('(method): reset', () => {
|
|
138
|
+
it.skip(' ', () => {
|
|
139
|
+
//
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
describe('(method): removeUploadedFiles', () => {
|
|
144
|
+
it.skip(' ', () => {
|
|
145
|
+
//
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
describe('(method): removeQueuedFiles', () => {
|
|
150
|
+
it.skip(' ', () => {
|
|
151
|
+
//
|
|
152
|
+
})
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
describe('(method): removeFile', () => {
|
|
156
|
+
it.skip(' ', () => {
|
|
157
|
+
//
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="margin: 150px auto" class="row justify-center" data-cy="wrapper">
|
|
3
|
+
<q-select data-cy="select" class="select-root" ref="compRef" v-bind="$attrs" style="min-width: 300px"></q-select>
|
|
4
|
+
</div>
|
|
5
|
+
<q-btn class="hidden" data-cy="method-show" @click="show" />
|
|
6
|
+
<q-btn class="hidden" data-cy="method-hide" @click="hide" />
|
|
7
|
+
<q-btn class="hidden" data-cy="method-toggle" @click="toggle" />
|
|
8
|
+
<q-btn class="hidden" data-cy="method-focus" @click="focusMethod" />
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { defineComponent, ref } from 'vue'
|
|
13
|
+
|
|
14
|
+
export default defineComponent({
|
|
15
|
+
inheritAttrs: false,
|
|
16
|
+
setup () {
|
|
17
|
+
const compRef = ref(null)
|
|
18
|
+
|
|
19
|
+
function show () {
|
|
20
|
+
compRef.value.show()
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function hide () {
|
|
24
|
+
compRef.value.hide()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function toggle () {
|
|
28
|
+
compRef.value.toggle()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function focusMethod () {
|
|
32
|
+
compRef.value.focus()
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return { compRef, show, hide, toggle, focusMethod }
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
</script>
|