quasar 2.17.7 → 2.18.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.
- package/dist/api/QBtnDropdown.json +1 -1
- package/dist/api/QDialog.json +1 -1
- package/dist/api/QMenu.json +1 -1
- package/dist/api/QSelect.json +1 -1
- package/dist/api/QTable.json +1 -1
- 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/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.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/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.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/mdi-v7.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-fontawesome-v6.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-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.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-TN.umd.prod.js +2 -2
- package/dist/lang/ar.umd.prod.js +2 -2
- package/dist/lang/az-Latn.umd.prod.js +2 -2
- package/dist/lang/bg.umd.prod.js +2 -2
- package/dist/lang/bn.umd.prod.js +2 -2
- package/dist/lang/bs-BA.umd.prod.js +2 -2
- package/dist/lang/ca.umd.prod.js +2 -2
- package/dist/lang/cs.umd.prod.js +2 -2
- package/dist/lang/da.umd.prod.js +2 -2
- package/dist/lang/de-CH.umd.prod.js +2 -2
- package/dist/lang/de-DE.umd.prod.js +2 -2
- package/dist/lang/de.umd.prod.js +2 -2
- package/dist/lang/el.umd.prod.js +2 -2
- package/dist/lang/en-GB.umd.prod.js +2 -2
- package/dist/lang/en-US.umd.prod.js +2 -2
- package/dist/lang/eo.umd.prod.js +2 -2
- package/dist/lang/es.umd.prod.js +2 -2
- package/dist/lang/et.umd.prod.js +2 -2
- package/dist/lang/eu.umd.prod.js +2 -2
- package/dist/lang/fa-IR.umd.prod.js +2 -2
- package/dist/lang/fa.umd.prod.js +2 -2
- package/dist/lang/fi.umd.prod.js +2 -2
- package/dist/lang/fr.umd.prod.js +2 -2
- package/dist/lang/gn.umd.prod.js +2 -2
- package/dist/lang/he.umd.prod.js +2 -2
- package/dist/lang/hi.umd.prod.js +2 -2
- package/dist/lang/hr.umd.prod.js +2 -2
- package/dist/lang/hu.umd.prod.js +2 -2
- package/dist/lang/id.umd.prod.js +2 -2
- package/dist/lang/is.umd.prod.js +2 -2
- package/dist/lang/it.umd.prod.js +2 -2
- package/dist/lang/ja.umd.prod.js +2 -2
- package/dist/lang/kk.umd.prod.js +2 -2
- package/dist/lang/km.umd.prod.js +2 -2
- package/dist/lang/ko-KR.umd.prod.js +2 -2
- package/dist/lang/kur-CKB.umd.prod.js +2 -2
- package/dist/lang/lt.umd.prod.js +2 -2
- package/dist/lang/lu.umd.prod.js +2 -2
- package/dist/lang/lv.umd.prod.js +2 -2
- package/dist/lang/mk.umd.prod.js +2 -2
- package/dist/lang/ml.umd.prod.js +2 -2
- package/dist/lang/mm.umd.prod.js +2 -2
- package/dist/lang/ms-MY.umd.prod.js +2 -2
- package/dist/lang/ms.umd.prod.js +2 -2
- package/dist/lang/my.umd.prod.js +2 -2
- package/dist/lang/nb-NO.umd.prod.js +2 -2
- package/dist/lang/nl.umd.prod.js +2 -2
- package/dist/lang/pl.umd.prod.js +2 -2
- package/dist/lang/pt-BR.umd.prod.js +2 -2
- package/dist/lang/pt.umd.prod.js +2 -2
- package/dist/lang/ro.umd.prod.js +2 -2
- package/dist/lang/ru.umd.prod.js +2 -2
- package/dist/lang/sk.umd.prod.js +2 -2
- package/dist/lang/sl.umd.prod.js +2 -2
- package/dist/lang/sm.umd.prod.js +2 -2
- package/dist/lang/sr-CYR.umd.prod.js +2 -2
- package/dist/lang/sr.umd.prod.js +2 -2
- package/dist/lang/sv.umd.prod.js +2 -2
- package/dist/lang/ta.umd.prod.js +2 -2
- package/dist/lang/th.umd.prod.js +2 -2
- package/dist/lang/tl.umd.prod.js +2 -2
- package/dist/lang/tr.umd.prod.js +2 -2
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +2 -2
- package/dist/lang/ur-PK.umd.prod.js +7 -0
- package/dist/lang/uz-Cyrl.umd.prod.js +2 -2
- package/dist/lang/uz-Latn.umd.prod.js +2 -2
- package/dist/lang/vi.umd.prod.js +2 -2
- package/dist/lang/zh-CN.umd.prod.js +2 -2
- package/dist/lang/zh-TW.umd.prod.js +2 -2
- package/dist/quasar.client.js +237 -174
- package/dist/quasar.css +1 -1
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +1 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +2 -2
- package/dist/quasar.server.prod.cjs +15 -15
- package/dist/quasar.server.prod.js +8 -8
- package/dist/quasar.umd.js +237 -174
- package/dist/quasar.umd.prod.js +15 -15
- package/dist/types/index.d.ts +52 -3
- package/dist/vetur/quasar-attributes.json +1 -1
- package/dist/vetur/quasar-tags.json +1 -1
- package/dist/web-types/web-types.json +1 -1
- package/lang/ar-TN.js +6 -0
- package/lang/ar.js +6 -0
- package/lang/az-Latn.js +6 -0
- package/lang/bg.js +6 -0
- package/lang/bn.js +6 -0
- package/lang/bs-BA.js +6 -0
- package/lang/ca.js +6 -0
- package/lang/cs.js +6 -0
- package/lang/da.js +6 -0
- package/lang/de-CH.js +6 -0
- package/lang/de-DE.js +6 -0
- package/lang/de.js +6 -0
- package/lang/el.js +6 -0
- package/lang/en-GB.js +6 -0
- package/lang/en-US.js +6 -0
- package/lang/eo.js +6 -0
- package/lang/es.js +6 -0
- package/lang/et.js +6 -0
- package/lang/eu.js +6 -0
- package/lang/fa-IR.js +6 -0
- package/lang/fa.js +6 -0
- package/lang/fi.js +6 -0
- package/lang/fr.js +6 -0
- package/lang/gn.js +6 -0
- package/lang/he.js +6 -0
- package/lang/hi.js +6 -0
- package/lang/hr.js +6 -0
- package/lang/hu.js +6 -0
- package/lang/id.js +6 -0
- package/lang/index.json +1 -1
- package/lang/is.js +6 -0
- package/lang/it.js +6 -0
- package/lang/ja.js +6 -0
- package/lang/kk.js +6 -0
- package/lang/km.js +6 -0
- package/lang/ko-KR.js +6 -0
- package/lang/kur-CKB.js +6 -0
- package/lang/lt.js +6 -0
- package/lang/lu.js +6 -0
- package/lang/lv.js +6 -0
- package/lang/mk.js +6 -0
- package/lang/ml.js +6 -0
- package/lang/mm.js +6 -0
- package/lang/ms-MY.js +6 -0
- package/lang/ms.js +6 -0
- package/lang/my.js +6 -0
- package/lang/nb-NO.js +6 -0
- package/lang/nl.js +6 -0
- package/lang/pl.js +6 -0
- package/lang/pt-BR.js +6 -0
- package/lang/pt.js +6 -0
- package/lang/ro.js +6 -0
- package/lang/ru.js +6 -0
- package/lang/sk.js +6 -0
- package/lang/sl.js +6 -0
- package/lang/sm.js +6 -0
- package/lang/sr-CYR.js +6 -0
- package/lang/sr.js +6 -0
- package/lang/sv.js +6 -0
- package/lang/ta.js +6 -0
- package/lang/th.js +6 -0
- package/lang/tl.js +6 -0
- package/lang/tr.js +6 -0
- package/lang/uk.js +6 -0
- package/lang/ur-PK.js +111 -0
- package/lang/uz-Cyrl.js +6 -0
- package/lang/uz-Latn.js +6 -0
- package/lang/vi.js +6 -0
- package/lang/zh-CN.js +6 -0
- package/lang/zh-TW.js +6 -0
- package/package.json +3 -3
- package/src/components/breadcrumbs/QBreadcrumbs.js +2 -2
- package/src/components/btn/QBtn.js +7 -8
- package/src/components/btn-dropdown/QBtnDropdown.js +10 -4
- package/src/components/btn-dropdown/QBtnDropdown.json +21 -0
- package/src/components/color/QColor.js +1 -1
- package/src/components/date/QDate.js +1 -1
- package/src/components/dialog/QDialog.js +2 -2
- package/src/components/dialog/QDialog.json +1 -1
- package/src/components/drawer/QDrawer.js +3 -5
- package/src/components/editor/QEditor.js +1 -1
- package/src/components/editor/editor-caret.js +1 -1
- package/src/components/editor/editor-utils.js +2 -2
- package/src/components/expansion-item/QExpansionItem.js +6 -3
- package/src/components/fab/QFab.js +2 -2
- package/src/components/form/QForm.js +2 -2
- package/src/components/form/QFormChildMixin.js +6 -4
- package/src/components/icon/QIcon.js +2 -2
- package/src/components/infinite-scroll/QInfiniteScroll.js +2 -4
- package/src/components/input/QInput.js +3 -3
- package/src/components/item/QItem.js +1 -1
- package/src/components/menu/QMenu.js +8 -5
- package/src/components/menu/QMenu.json +8 -1
- package/src/components/pagination/QPagination.js +8 -4
- package/src/components/parallax/QParallax.js +1 -1
- package/src/components/popup-edit/QPopupEdit.js +2 -2
- package/src/components/pull-to-refresh/QPullToRefresh.js +1 -1
- package/src/components/rating/QRating.sass +1 -1
- package/src/components/resize-observer/QResizeObserver.js +1 -1
- package/src/components/scroll-observer/QScrollObserver.js +2 -2
- package/src/components/select/QSelect.js +8 -6
- package/src/components/select/QSelect.json +1 -1
- package/src/components/slide-transition/QSlideTransition.js +2 -2
- package/src/components/stepper/StepHeader.js +1 -1
- package/src/components/table/QTable.js +77 -36
- package/src/components/table/QTable.json +98 -0
- package/src/components/table/QTr.js +4 -1
- package/src/components/table/table-sort.js +1 -1
- package/src/components/tabs/QTabs.js +2 -2
- package/src/components/tabs/use-tab.js +4 -4
- package/src/components/time/QTime.js +1 -1
- package/src/components/tree/QTree.js +2 -3
- package/src/components/virtual-scroll/use-virtual-scroll.js +3 -3
- package/src/composables/private.use-field/use-field.js +5 -5
- package/src/composables/private.use-file/use-file.js +6 -3
- package/src/composables/private.use-model-toggle/use-model-toggle.js +2 -2
- package/src/composables/private.use-refocus-target/use-refocus-target.js +6 -5
- package/src/composables/private.use-validate/use-validate.js +1 -1
- package/src/directives/intersection/Intersection.js +2 -2
- package/src/directives/morph/Morph.js +2 -2
- package/src/directives/mutation/Mutation.js +2 -2
- package/src/directives/touch-hold/TouchHold.js +2 -2
- package/src/directives/touch-pan/TouchPan.js +2 -2
- package/src/directives/touch-repeat/TouchRepeat.js +3 -3
- package/src/directives/touch-swipe/TouchSwipe.js +3 -3
- package/src/plugins/lang/Lang.test.js +12 -0
- package/src/plugins/loading/Loading.js +1 -1
- package/src/plugins/notify/Notify.js +1 -1
- package/src/plugins/private.body/Body.js +1 -1
- package/src/plugins/private.history/History.js +1 -1
- package/src/plugins/screen/Screen.js +1 -1
- package/src/utils/morph/morph.js +13 -10
- package/src/utils/open-url/open-url.js +3 -3
- package/src/utils/private.dialog/create-dialog.js +2 -2
- package/src/utils/private.portal/portal.js +1 -1
- package/src/components/date/__tests__/QDate.cy.js +0 -189
- package/src/components/date/__tests__/use-datetime.cy.js +0 -83
- package/src/components/editor/__tests__/QEditor.cy.js +0 -195
- package/src/components/field/__tests__/QField.cy.js +0 -156
- package/src/components/input/__tests__/QInput.cy.js +0 -786
- package/src/components/input/__tests__/use-mask.cy.js +0 -124
- package/src/components/menu/__tests__/QMenu.cy.js +0 -634
- package/src/components/menu/__tests__/WrapperOne.vue +0 -51
- package/src/components/menu/__tests__/WrapperTwo.vue +0 -38
- package/src/components/select/__tests__/QSelect.cy.js +0 -2018
- package/src/components/table/__tests__/QTable.cy.js +0 -635
- package/src/components/table/__tests__/QTd.cy.js +0 -35
- package/src/components/table/__tests__/QTh.cy.js +0 -27
- package/src/components/table/__tests__/QTr.cy.js +0 -27
- package/src/components/tabs/__tests__/QTab.cy.js +0 -79
- package/src/components/tabs/__tests__/QTabs.cy.js +0 -147
- package/src/components/uploader/__tests__/QUploader.cy.js +0 -191
- package/src/composables/__tests__/FieldWrapper.vue +0 -54
- package/src/composables/__tests__/use-anchor.cy.js +0 -98
- package/src/composables/__tests__/use-field.cy.js +0 -547
- package/src/composables/__tests__/use-file.cy.js +0 -69
- package/src/composables/__tests__/use-fullscreen.cy.js +0 -37
- package/src/composables/__tests__/use-model-toggle.cy.js +0 -350
- package/src/composables/__tests__/use-portal.cy.js +0 -4
- package/src/composables/__tests__/use-router-link.cy.js +0 -55
- package/src/composables/__tests__/use-validate.cy.js +0 -257
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,147 +0,0 @@
|
|
|
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
|
-
})
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import QUploader from '../QUploader'
|
|
2
|
-
|
|
3
|
-
describe('Uploader API', () => {
|
|
4
|
-
describe('Props', () => {
|
|
5
|
-
describe('Category: behavior', () => {
|
|
6
|
-
describe('(prop): auto-upload', () => {
|
|
7
|
-
it.skip(' ', () => {
|
|
8
|
-
//
|
|
9
|
-
})
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
describe('(prop): hide-upload-btn', () => {
|
|
13
|
-
it.skip(' ', () => {
|
|
14
|
-
//
|
|
15
|
-
})
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
describe('Category: content', () => {
|
|
20
|
-
describe('(prop): label', () => {
|
|
21
|
-
it.skip(' ', () => {
|
|
22
|
-
//
|
|
23
|
-
})
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
describe('(prop): no-thumbnails', () => {
|
|
27
|
-
it.skip(' ', () => {
|
|
28
|
-
//
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
describe('Category: state', () => {
|
|
34
|
-
describe('(prop): disable', () => {
|
|
35
|
-
it.skip(' ', () => {
|
|
36
|
-
//
|
|
37
|
-
})
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
describe('(prop): readonly', () => {
|
|
41
|
-
it.skip(' ', () => {
|
|
42
|
-
//
|
|
43
|
-
})
|
|
44
|
-
})
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
describe('Category: style', () => {
|
|
48
|
-
describe('(prop): color', () => {
|
|
49
|
-
it.skip(' ', () => {
|
|
50
|
-
//
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
describe('(prop): text-color', () => {
|
|
55
|
-
it.skip(' ', () => {
|
|
56
|
-
//
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
describe('(prop): dark', () => {
|
|
61
|
-
it.skip(' ', () => {
|
|
62
|
-
//
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
describe('(prop): square', () => {
|
|
67
|
-
it.skip(' ', () => {
|
|
68
|
-
//
|
|
69
|
-
})
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
describe('(prop): flat', () => {
|
|
73
|
-
it.skip(' ', () => {
|
|
74
|
-
//
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
describe('(prop): bordered', () => {
|
|
79
|
-
it.skip(' ', () => {
|
|
80
|
-
//
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
describe('Slots', () => {
|
|
87
|
-
describe('(slot): header', () => {
|
|
88
|
-
it('renders correctly using the scope', () => {
|
|
89
|
-
// Taken from ui/dev/src/pages/form/uploader.vue
|
|
90
|
-
const headerSlot = `
|
|
91
|
-
<template #header="scope">
|
|
92
|
-
<div class="row no-wrap items-center q-pa-sm q-gutter-xs">
|
|
93
|
-
<q-btn v-if="scope.queuedFiles.length !== 0" icon="clear_all" @click="scope.removeQueuedFiles" round dense flat />
|
|
94
|
-
<q-btn v-if="scope.uploadedFiles.length !== 0" icon="done_all" @click="scope.removeUploadedFiles" round dense flat />
|
|
95
|
-
<q-spinner v-if="scope.isUploading" class="q-uploader__spinner" />
|
|
96
|
-
<div class="col">
|
|
97
|
-
<div class="q-uploader__title">
|
|
98
|
-
Upload your files
|
|
99
|
-
</div>
|
|
100
|
-
<div class="q-uploader__subtitle">
|
|
101
|
-
{{ scope.uploadSizeLabel }} / {{ scope.uploadProgressLabel }}
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
<q-btn v-if="scope.canAddFiles" type="a" icon="add_box" @click="scope.pickFiles" round dense flat>
|
|
105
|
-
<q-uploader-add-trigger />
|
|
106
|
-
</q-btn>
|
|
107
|
-
<q-btn v-if="scope.canUpload" icon="cloud_upload" @click="scope.upload" round dense flat />
|
|
108
|
-
<q-btn v-if="scope.isUploading" icon="clear" @click="scope.abort" round dense flat />
|
|
109
|
-
</div>
|
|
110
|
-
</template>
|
|
111
|
-
`
|
|
112
|
-
|
|
113
|
-
cy.mount(QUploader, {
|
|
114
|
-
slots: {
|
|
115
|
-
header: headerSlot
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
describe('(slot): list', () => {
|
|
122
|
-
it.skip(' ', () => {
|
|
123
|
-
//
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
describe('Events', () => {
|
|
129
|
-
describe('(event): added', () => {
|
|
130
|
-
it.skip(' ', () => {
|
|
131
|
-
//
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
describe('(event): removed', () => {
|
|
136
|
-
it.skip(' ', () => {
|
|
137
|
-
//
|
|
138
|
-
})
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
describe('(event): start', () => {
|
|
142
|
-
it.skip(' ', () => {
|
|
143
|
-
//
|
|
144
|
-
})
|
|
145
|
-
})
|
|
146
|
-
|
|
147
|
-
describe('(event): finish', () => {
|
|
148
|
-
it.skip(' ', () => {
|
|
149
|
-
//
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
describe('Methods', () => {
|
|
155
|
-
describe('(method): upload', () => {
|
|
156
|
-
it.skip(' ', () => {
|
|
157
|
-
//
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
describe('(method): abort', () => {
|
|
162
|
-
it.skip(' ', () => {
|
|
163
|
-
//
|
|
164
|
-
})
|
|
165
|
-
})
|
|
166
|
-
|
|
167
|
-
describe('(method): reset', () => {
|
|
168
|
-
it.skip(' ', () => {
|
|
169
|
-
//
|
|
170
|
-
})
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
describe('(method): removeUploadedFiles', () => {
|
|
174
|
-
it.skip(' ', () => {
|
|
175
|
-
//
|
|
176
|
-
})
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
describe('(method): removeQueuedFiles', () => {
|
|
180
|
-
it.skip(' ', () => {
|
|
181
|
-
//
|
|
182
|
-
})
|
|
183
|
-
})
|
|
184
|
-
|
|
185
|
-
describe('(method): removeFile', () => {
|
|
186
|
-
it.skip(' ', () => {
|
|
187
|
-
//
|
|
188
|
-
})
|
|
189
|
-
})
|
|
190
|
-
})
|
|
191
|
-
})
|
|
@@ -1,54 +0,0 @@
|
|
|
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">
|
|
4
|
-
<template v-for="(_, name) in $slots" #[name]>
|
|
5
|
-
<slot :name="name" />
|
|
6
|
-
</template>
|
|
7
|
-
</q-select>
|
|
8
|
-
</div>
|
|
9
|
-
<q-btn class="hidden" data-cy="method-show" @click="show" />
|
|
10
|
-
<q-btn class="hidden" data-cy="method-hide" @click="hide" />
|
|
11
|
-
<q-btn class="hidden" data-cy="method-toggle" @click="toggle" />
|
|
12
|
-
<q-btn class="hidden" data-cy="method-focus" @click="focusMethod" />
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import { defineComponent, ref } from 'vue'
|
|
17
|
-
|
|
18
|
-
export default defineComponent({
|
|
19
|
-
inheritAttrs: false,
|
|
20
|
-
setup () {
|
|
21
|
-
const compRef = ref(null)
|
|
22
|
-
|
|
23
|
-
function show () {
|
|
24
|
-
compRef.value.show()
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function hide () {
|
|
28
|
-
compRef.value.hide()
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function toggle () {
|
|
32
|
-
compRef.value.toggle()
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function focusMethod () {
|
|
36
|
-
compRef.value.focus()
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function blur () {
|
|
40
|
-
compRef.value.blur()
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function validate () {
|
|
44
|
-
compRef.value.validate()
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function resetValidation () {
|
|
48
|
-
compRef.value.resetValidation()
|
|
49
|
-
}
|
|
50
|
-
return { compRef, show, hide, toggle, focusMethod, blur, validate, resetValidation }
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
</script>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import WrapperOne from '../../../components/menu/__tests__/WrapperOne.vue'
|
|
2
|
-
|
|
3
|
-
describe('use-anchor API', () => {
|
|
4
|
-
describe('Props', () => {
|
|
5
|
-
describe('Category: behavior', () => {
|
|
6
|
-
describe('(prop): target', () => {
|
|
7
|
-
it('should use another target using a CSS selector', () => {
|
|
8
|
-
cy.mount(WrapperOne, {
|
|
9
|
-
props: {
|
|
10
|
-
target: '.other-target'
|
|
11
|
-
}
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
// Click on parent element should not show menu
|
|
15
|
-
cy.dataCy('wrapper')
|
|
16
|
-
.click()
|
|
17
|
-
cy.dataCy('menu')
|
|
18
|
-
.should('not.exist')
|
|
19
|
-
|
|
20
|
-
// Click on other target should show menu
|
|
21
|
-
cy.dataCy('other-target')
|
|
22
|
-
.click()
|
|
23
|
-
cy.dataCy('menu')
|
|
24
|
-
.should('exist')
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
it('should not show when target is false', () => {
|
|
28
|
-
cy.mount(WrapperOne, {
|
|
29
|
-
props: {
|
|
30
|
-
target: false
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
cy.dataCy('wrapper')
|
|
35
|
-
.click()
|
|
36
|
-
cy.dataCy('menu')
|
|
37
|
-
.should('not.exist')
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
describe('(prop): no-parent-event', () => {
|
|
42
|
-
it('should not show when clicking parent with no-parent-event true', () => {
|
|
43
|
-
cy.mount(WrapperOne, {
|
|
44
|
-
props: {
|
|
45
|
-
'no-parent-event': true
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
cy.dataCy('wrapper')
|
|
50
|
-
.click()
|
|
51
|
-
cy.dataCy('menu')
|
|
52
|
-
.should('not.exist')
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
it('should show when clicking parent with no-parent-event false', () => {
|
|
56
|
-
cy.mount(WrapperOne, {
|
|
57
|
-
props: {
|
|
58
|
-
'no-parent-event': false
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
cy.dataCy('wrapper')
|
|
63
|
-
.click()
|
|
64
|
-
cy.dataCy('menu')
|
|
65
|
-
.should('exist')
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
describe('(prop): context-menu', () => {
|
|
70
|
-
it('should not show when left clicking parent', () => {
|
|
71
|
-
cy.mount(WrapperOne, {
|
|
72
|
-
props: {
|
|
73
|
-
'context-menu': true
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
cy.dataCy('wrapper')
|
|
78
|
-
.click()
|
|
79
|
-
cy.dataCy('menu')
|
|
80
|
-
.should('not.exist')
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
it('should show when right clicking parent', () => {
|
|
84
|
-
cy.mount(WrapperOne, {
|
|
85
|
-
props: {
|
|
86
|
-
'context-menu': true
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
cy.dataCy('wrapper')
|
|
91
|
-
.rightclick()
|
|
92
|
-
cy.dataCy('menu')
|
|
93
|
-
.should('exist')
|
|
94
|
-
})
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
})
|
|
98
|
-
})
|