quasar 2.17.6 → 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/QOptionGroup.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 +252 -179
- 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 +36 -36
- package/dist/quasar.server.prod.js +37 -37
- package/dist/quasar.umd.js +252 -179
- package/dist/quasar.umd.prod.js +42 -42
- package/dist/types/index.d.ts +86 -17
- 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 +4 -4
- 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 +14 -7
- 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/option-group/QOptionGroup.json +1 -17
- 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 +2 -2
- package/src/components/slide-transition/QSlideTransition.js +2 -2
- package/src/components/stepper/StepHeader.js +1 -1
- package/src/components/table/QTable.js +84 -36
- package/src/components/table/QTable.json +138 -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
|
@@ -91,10 +91,14 @@ export default createComponent({
|
|
|
91
91
|
tableClass: [ String, Array, Object ],
|
|
92
92
|
tableHeaderStyle: [ String, Array, Object ],
|
|
93
93
|
tableHeaderClass: [ String, Array, Object ],
|
|
94
|
+
tableRowStyleFn: Function,
|
|
95
|
+
tableRowClassFn: Function,
|
|
94
96
|
cardContainerClass: [ String, Array, Object ],
|
|
95
97
|
cardContainerStyle: [ String, Array, Object ],
|
|
96
98
|
cardStyle: [ String, Array, Object ],
|
|
97
99
|
cardClass: [ String, Array, Object ],
|
|
100
|
+
cardStyleFn: Function,
|
|
101
|
+
cardClassFn: Function,
|
|
98
102
|
|
|
99
103
|
hideBottom: Boolean,
|
|
100
104
|
hideSelectedBanner: Boolean,
|
|
@@ -148,7 +152,7 @@ export default createComponent({
|
|
|
148
152
|
+ (props.bordered === true ? ' q-table--bordered' : '')
|
|
149
153
|
)
|
|
150
154
|
|
|
151
|
-
const
|
|
155
|
+
const containerClass = computed(() =>
|
|
152
156
|
`q-table__container q-table--${ props.separator }-separator column no-wrap`
|
|
153
157
|
+ (props.grid === true ? ' q-table--grid' : cardDefaultClass.value)
|
|
154
158
|
+ (isDark.value === true ? ' q-table--dark' : '')
|
|
@@ -157,13 +161,13 @@ export default createComponent({
|
|
|
157
161
|
+ (inFullscreen.value === true ? ' fullscreen scroll' : '')
|
|
158
162
|
)
|
|
159
163
|
|
|
160
|
-
const
|
|
161
|
-
|
|
164
|
+
const rootContainerClass = computed(() =>
|
|
165
|
+
containerClass.value + (props.loading === true ? ' q-table--loading' : '')
|
|
162
166
|
)
|
|
163
167
|
|
|
164
168
|
watch(
|
|
165
|
-
() => props.tableStyle + props.tableClass + props.tableHeaderStyle + props.tableHeaderClass +
|
|
166
|
-
() => { hasVirtScroll.value === true && virtScrollRef.value
|
|
169
|
+
() => props.tableStyle + props.tableClass + props.tableHeaderStyle + props.tableHeaderClass + containerClass.value,
|
|
170
|
+
() => { hasVirtScroll.value === true && virtScrollRef.value?.reset() }
|
|
167
171
|
)
|
|
168
172
|
|
|
169
173
|
const {
|
|
@@ -382,13 +386,26 @@ export default createComponent({
|
|
|
382
386
|
selected = isRowSelected(key)
|
|
383
387
|
|
|
384
388
|
if (bodySlot !== void 0) {
|
|
389
|
+
const cfg = {
|
|
390
|
+
key,
|
|
391
|
+
row,
|
|
392
|
+
pageIndex,
|
|
393
|
+
__trClass: selected ? 'selected' : ''
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (props.tableRowStyleFn !== void 0) {
|
|
397
|
+
cfg.__trStyle = props.tableRowStyleFn(row)
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (props.tableRowClassFn !== void 0) {
|
|
401
|
+
const cls = props.tableRowClassFn(row)
|
|
402
|
+
if (cls) {
|
|
403
|
+
cfg.__trClass = `${ cls } ${ cfg.__trClass }`
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
385
407
|
return bodySlot(
|
|
386
|
-
getBodyScope(
|
|
387
|
-
key,
|
|
388
|
-
row,
|
|
389
|
-
pageIndex,
|
|
390
|
-
__trClass: selected ? 'selected' : ''
|
|
391
|
-
})
|
|
408
|
+
getBodyScope(cfg)
|
|
392
409
|
)
|
|
393
410
|
}
|
|
394
411
|
|
|
@@ -451,6 +468,17 @@ export default createComponent({
|
|
|
451
468
|
}
|
|
452
469
|
}
|
|
453
470
|
|
|
471
|
+
if (props.tableRowStyleFn !== void 0) {
|
|
472
|
+
data.style = props.tableRowStyleFn(row)
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (props.tableRowClassFn !== void 0) {
|
|
476
|
+
const cls = props.tableRowClassFn(row)
|
|
477
|
+
if (cls) {
|
|
478
|
+
data.class[ cls ] = true
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
454
482
|
return h('tr', data, child)
|
|
455
483
|
}
|
|
456
484
|
|
|
@@ -792,30 +820,28 @@ export default createComponent({
|
|
|
792
820
|
h('div', { class: 'q-table__separator col' })
|
|
793
821
|
)
|
|
794
822
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
h('
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
)
|
|
818
|
-
}
|
|
823
|
+
hasOpts === true && child.push(
|
|
824
|
+
h('div', { class: 'q-table__control' }, [
|
|
825
|
+
h('span', { class: 'q-table__bottom-item' }, [
|
|
826
|
+
props.rowsPerPageLabel || $q.lang.table.recordsPerPage
|
|
827
|
+
]),
|
|
828
|
+
h(QSelect, {
|
|
829
|
+
class: 'q-table__select inline q-table__bottom-item',
|
|
830
|
+
color: props.color,
|
|
831
|
+
modelValue: rowsPerPage,
|
|
832
|
+
options: computedRowsPerPageOptions.value,
|
|
833
|
+
displayValue: rowsPerPage === 0
|
|
834
|
+
? $q.lang.table.allRows
|
|
835
|
+
: rowsPerPage,
|
|
836
|
+
dark: isDark.value,
|
|
837
|
+
borderless: true,
|
|
838
|
+
dense: true,
|
|
839
|
+
optionsDense: true,
|
|
840
|
+
optionsCover: true,
|
|
841
|
+
'onUpdate:modelValue': onPagSelection
|
|
842
|
+
})
|
|
843
|
+
])
|
|
844
|
+
)
|
|
819
845
|
|
|
820
846
|
if (paginationSlot !== void 0) {
|
|
821
847
|
control = paginationSlot(marginalsScope.value)
|
|
@@ -847,6 +873,7 @@ export default createComponent({
|
|
|
847
873
|
...btnProps,
|
|
848
874
|
icon: navIcon.value[ 0 ],
|
|
849
875
|
disable: isFirstPage.value,
|
|
876
|
+
ariaLabel: $q.lang.pagination.first,
|
|
850
877
|
onClick: firstPage
|
|
851
878
|
})
|
|
852
879
|
)
|
|
@@ -857,6 +884,7 @@ export default createComponent({
|
|
|
857
884
|
...btnProps,
|
|
858
885
|
icon: navIcon.value[ 1 ],
|
|
859
886
|
disable: isFirstPage.value,
|
|
887
|
+
ariaLabel: $q.lang.pagination.prev,
|
|
860
888
|
onClick: prevPage
|
|
861
889
|
}),
|
|
862
890
|
|
|
@@ -865,6 +893,7 @@ export default createComponent({
|
|
|
865
893
|
...btnProps,
|
|
866
894
|
icon: navIcon.value[ 2 ],
|
|
867
895
|
disable: isLastPage.value,
|
|
896
|
+
ariaLabel: $q.lang.pagination.next,
|
|
868
897
|
onClick: nextPage
|
|
869
898
|
})
|
|
870
899
|
)
|
|
@@ -875,6 +904,7 @@ export default createComponent({
|
|
|
875
904
|
...btnProps,
|
|
876
905
|
icon: navIcon.value[ 3 ],
|
|
877
906
|
disable: isLastPage.value,
|
|
907
|
+
ariaLabel: $q.lang.pagination.last,
|
|
878
908
|
onClick: lastPage
|
|
879
909
|
})
|
|
880
910
|
)
|
|
@@ -945,9 +975,21 @@ export default createComponent({
|
|
|
945
975
|
style: props.cardStyle
|
|
946
976
|
}
|
|
947
977
|
|
|
978
|
+
if (props.cardStyleFn !== void 0) {
|
|
979
|
+
data.style = [ data.style, props.cardStyleFn(scope.row) ]
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (props.cardClassFn !== void 0) {
|
|
983
|
+
const cls = props.cardClassFn(scope.row)
|
|
984
|
+
if (cls) {
|
|
985
|
+
data.class[ 0 ] += ` ${ cls }`
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
|
|
948
989
|
if (
|
|
949
990
|
props.onRowClick !== void 0
|
|
950
991
|
|| props.onRowDblclick !== void 0
|
|
992
|
+
|| props.onRowContextmenu !== void 0
|
|
951
993
|
) {
|
|
952
994
|
data.class[ 0 ] += ' cursor-pointer'
|
|
953
995
|
|
|
@@ -962,6 +1004,12 @@ export default createComponent({
|
|
|
962
1004
|
emit('RowDblclick', evt, scope.row, scope.pageIndex)
|
|
963
1005
|
}
|
|
964
1006
|
}
|
|
1007
|
+
|
|
1008
|
+
if (props.onRowContextmenu !== void 0) {
|
|
1009
|
+
data.onContextmenu = evt => {
|
|
1010
|
+
emit('rowContextmenu', evt, scope.row, scope.pageIndex)
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
965
1013
|
}
|
|
966
1014
|
|
|
967
1015
|
return h('div', {
|
|
@@ -1013,7 +1061,7 @@ export default createComponent({
|
|
|
1013
1061
|
|
|
1014
1062
|
return () => {
|
|
1015
1063
|
const child = [ getTopDiv() ]
|
|
1016
|
-
const data = { ref: rootRef, class:
|
|
1064
|
+
const data = { ref: rootRef, class: rootContainerClass.value }
|
|
1017
1065
|
|
|
1018
1066
|
if (props.grid === true) {
|
|
1019
1067
|
child.push(getGridHeader())
|
|
@@ -563,6 +563,50 @@
|
|
|
563
563
|
"category": "style"
|
|
564
564
|
},
|
|
565
565
|
|
|
566
|
+
"table-row-style-fn": {
|
|
567
|
+
"type": "Function",
|
|
568
|
+
"desc": "CSS style to apply to the table rows (which are TR elements); For best performance, reference it from your scope and do not define it inline",
|
|
569
|
+
"params": {
|
|
570
|
+
"row": {
|
|
571
|
+
"type": "Object",
|
|
572
|
+
"desc": "The current row being processed",
|
|
573
|
+
"examples": [ "{ name: 'Frozen Yogurt', calories: 159 }" ]
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"returns": {
|
|
577
|
+
"type": "String",
|
|
578
|
+
"desc": "CSS style to apply to the row",
|
|
579
|
+
"examples": [
|
|
580
|
+
"'color: blue'",
|
|
581
|
+
"'background-color: #ff0000; color: green'"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
"category": "style",
|
|
585
|
+
"addedIn": "v2.18"
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
"table-row-class-fn": {
|
|
589
|
+
"type": "Function",
|
|
590
|
+
"desc": "CSS class(es) to apply the table rows (which are TR elements); For best performance, reference it from your scope and do not define it inline",
|
|
591
|
+
"params": {
|
|
592
|
+
"row": {
|
|
593
|
+
"type": "Object",
|
|
594
|
+
"desc": "The current row being processed",
|
|
595
|
+
"examples": [ "{ name: 'Frozen Yogurt', calories: 159 }" ]
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"returns": {
|
|
599
|
+
"type": "String",
|
|
600
|
+
"desc": "CSS class(es) to apply to the row, space separated",
|
|
601
|
+
"examples": [
|
|
602
|
+
"'my-special-class'",
|
|
603
|
+
"'my-class my-second-class'"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
"category": "style",
|
|
607
|
+
"addedIn": "v2.18"
|
|
608
|
+
},
|
|
609
|
+
|
|
566
610
|
"card-container-style": {
|
|
567
611
|
"type": [ "String", "Array", "Object" ],
|
|
568
612
|
"tsType": "VueStyleProp",
|
|
@@ -608,6 +652,50 @@
|
|
|
608
652
|
"category": "style"
|
|
609
653
|
},
|
|
610
654
|
|
|
655
|
+
"card-style-fn": {
|
|
656
|
+
"type": "Function",
|
|
657
|
+
"desc": "(Grid mode only) CSS style to apply to the row/record card; Has no effect when the 'item' slot is used; For best performance, reference it from your scope and do not define it inline",
|
|
658
|
+
"params": {
|
|
659
|
+
"row": {
|
|
660
|
+
"type": "Object",
|
|
661
|
+
"desc": "The current row/record being processed",
|
|
662
|
+
"examples": [ "{ name: 'Frozen Yogurt', calories: 159 }" ]
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"returns": {
|
|
666
|
+
"type": "String",
|
|
667
|
+
"desc": "CSS style to apply to the row/record",
|
|
668
|
+
"examples": [
|
|
669
|
+
"'color: blue'",
|
|
670
|
+
"'background-color: #ff0000; color: green'"
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
"category": "style",
|
|
674
|
+
"addedIn": "v2.18"
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
"card-class-fn": {
|
|
678
|
+
"type": "Function",
|
|
679
|
+
"desc": "(Grid mode only) CSS class(es) to apply the row/record card; Has no effect when the 'item' slot is used; For best performance, reference it from your scope and do not define it inline",
|
|
680
|
+
"params": {
|
|
681
|
+
"row": {
|
|
682
|
+
"type": "Object",
|
|
683
|
+
"desc": "The current row/record being processed",
|
|
684
|
+
"examples": [ "{ name: 'Frozen Yogurt', calories: 159 }" ]
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"returns": {
|
|
688
|
+
"type": "String",
|
|
689
|
+
"desc": "CSS class(es) to apply to the row, space separated",
|
|
690
|
+
"examples": [
|
|
691
|
+
"'my-special-class'",
|
|
692
|
+
"'my-class my-second-class'"
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
"category": "style",
|
|
696
|
+
"addedIn": "v2.18"
|
|
697
|
+
},
|
|
698
|
+
|
|
611
699
|
"title-class": {
|
|
612
700
|
"type": [ "String", "Array", "Object" ],
|
|
613
701
|
"tsType": "VueClassProp",
|
|
@@ -896,6 +984,12 @@
|
|
|
896
984
|
"__trClass": {
|
|
897
985
|
"type": "String",
|
|
898
986
|
"desc": "Internal prop passed down to QTr (if used)"
|
|
987
|
+
},
|
|
988
|
+
"__trStyle": {
|
|
989
|
+
"type": "String",
|
|
990
|
+
"required": false,
|
|
991
|
+
"desc": "Internal prop passed down to QTr (if used)",
|
|
992
|
+
"addedIn": "v2.18"
|
|
899
993
|
}
|
|
900
994
|
}
|
|
901
995
|
},
|
|
@@ -1349,6 +1443,11 @@
|
|
|
1349
1443
|
"type": "Number",
|
|
1350
1444
|
"required": true,
|
|
1351
1445
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1446
|
+
},
|
|
1447
|
+
"rowsNumber": {
|
|
1448
|
+
"type": "Number",
|
|
1449
|
+
"required": false,
|
|
1450
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1352
1451
|
}
|
|
1353
1452
|
}
|
|
1354
1453
|
},
|
|
@@ -1428,6 +1527,11 @@
|
|
|
1428
1527
|
"type": "Number",
|
|
1429
1528
|
"required": true,
|
|
1430
1529
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1530
|
+
},
|
|
1531
|
+
"rowsNumber": {
|
|
1532
|
+
"type": "Number",
|
|
1533
|
+
"required": false,
|
|
1534
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1431
1535
|
}
|
|
1432
1536
|
}
|
|
1433
1537
|
},
|
|
@@ -1507,6 +1611,11 @@
|
|
|
1507
1611
|
"type": "Number",
|
|
1508
1612
|
"required": true,
|
|
1509
1613
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1614
|
+
},
|
|
1615
|
+
"rowsNumber": {
|
|
1616
|
+
"type": "Number",
|
|
1617
|
+
"required": false,
|
|
1618
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1510
1619
|
}
|
|
1511
1620
|
}
|
|
1512
1621
|
},
|
|
@@ -1586,6 +1695,11 @@
|
|
|
1586
1695
|
"type": "Number",
|
|
1587
1696
|
"required": true,
|
|
1588
1697
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1698
|
+
},
|
|
1699
|
+
"rowsNumber": {
|
|
1700
|
+
"type": "Number",
|
|
1701
|
+
"required": false,
|
|
1702
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1589
1703
|
}
|
|
1590
1704
|
}
|
|
1591
1705
|
},
|
|
@@ -1665,6 +1779,11 @@
|
|
|
1665
1779
|
"type": "Number",
|
|
1666
1780
|
"required": true,
|
|
1667
1781
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1782
|
+
},
|
|
1783
|
+
"rowsNumber": {
|
|
1784
|
+
"type": "Number",
|
|
1785
|
+
"required": false,
|
|
1786
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1668
1787
|
}
|
|
1669
1788
|
}
|
|
1670
1789
|
},
|
|
@@ -1744,6 +1863,11 @@
|
|
|
1744
1863
|
"type": "Number",
|
|
1745
1864
|
"required": true,
|
|
1746
1865
|
"desc": "How many rows per page? 0 means Infinite"
|
|
1866
|
+
},
|
|
1867
|
+
"rowsNumber": {
|
|
1868
|
+
"type": "Number",
|
|
1869
|
+
"required": false,
|
|
1870
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1747
1871
|
}
|
|
1748
1872
|
}
|
|
1749
1873
|
},
|
|
@@ -1808,6 +1932,10 @@
|
|
|
1808
1932
|
"type": "String",
|
|
1809
1933
|
"desc": "The suggested icon name (following Quasar convention)",
|
|
1810
1934
|
"examples": [ "'warning'" ]
|
|
1935
|
+
},
|
|
1936
|
+
"filter": {
|
|
1937
|
+
"type": [ "String", "Object" ],
|
|
1938
|
+
"desc": "String/Object to filter table with (the 'filter' prop)"
|
|
1811
1939
|
}
|
|
1812
1940
|
}
|
|
1813
1941
|
}
|
|
@@ -1903,6 +2031,11 @@
|
|
|
1903
2031
|
"type": "Number",
|
|
1904
2032
|
"required": true,
|
|
1905
2033
|
"desc": "How many rows per page? 0 means Infinite"
|
|
2034
|
+
},
|
|
2035
|
+
"rowsNumber": {
|
|
2036
|
+
"type": "Number",
|
|
2037
|
+
"required": false,
|
|
2038
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
1906
2039
|
}
|
|
1907
2040
|
}
|
|
1908
2041
|
},
|
|
@@ -2177,6 +2310,11 @@
|
|
|
2177
2310
|
"rowsPerPage": {
|
|
2178
2311
|
"type": "Number",
|
|
2179
2312
|
"desc": "How many rows per page? 0 means Infinite"
|
|
2313
|
+
},
|
|
2314
|
+
"rowsNumber": {
|
|
2315
|
+
"type": "Number",
|
|
2316
|
+
"required": false,
|
|
2317
|
+
"desc": "For server-side fetching only. How many total database rows are there to be added to the table."
|
|
2180
2318
|
}
|
|
2181
2319
|
}
|
|
2182
2320
|
},
|
|
@@ -18,6 +18,9 @@ export default createComponent({
|
|
|
18
18
|
+ (props.noHover === true ? ' q-tr--no-hover' : '')
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
-
return () => h('tr', {
|
|
21
|
+
return () => h('tr', {
|
|
22
|
+
style: props.props?.__trStyle,
|
|
23
|
+
class: classes.value
|
|
24
|
+
}, hSlot(slots.default))
|
|
22
25
|
}
|
|
23
26
|
})
|
|
@@ -87,7 +87,7 @@ export function useTableSort (props, computedPagination, colList, setPagination)
|
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
const def = colList.value.find(def => def.name === col)
|
|
90
|
-
if (def
|
|
90
|
+
if (def?.sortOrder) {
|
|
91
91
|
sortOrder = def.sortOrder
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -424,7 +424,7 @@ export default createComponent({
|
|
|
424
424
|
function updateActiveRoute () {
|
|
425
425
|
let name = null, bestScore = { matchedLen: 0, queryDiff: 9999, hrefLen: 0 }
|
|
426
426
|
|
|
427
|
-
const list = tabDataList.filter(tab => tab.routeData
|
|
427
|
+
const list = tabDataList.filter(tab => tab.routeData?.hasRouterLink.value === true)
|
|
428
428
|
const { hash: currentHash, query: currentQuery } = proxy.$route
|
|
429
429
|
const currentQueryLen = Object.keys(currentQuery).length
|
|
430
430
|
|
|
@@ -632,7 +632,7 @@ export default createComponent({
|
|
|
632
632
|
function cleanup () {
|
|
633
633
|
animateTimer !== null && clearTimeout(animateTimer)
|
|
634
634
|
stopAnimScroll()
|
|
635
|
-
unwatchRoute
|
|
635
|
+
unwatchRoute?.()
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
let hadRouteWatcher, hadActivated
|
|
@@ -99,13 +99,13 @@ export default function (props, slots, emit, routeData) {
|
|
|
99
99
|
))
|
|
100
100
|
|
|
101
101
|
function onClick (e, keyboard) {
|
|
102
|
-
if (keyboard !== true &&
|
|
103
|
-
blurTargetRef.value
|
|
102
|
+
if (keyboard !== true && e?.qAvoidFocus !== true) {
|
|
103
|
+
blurTargetRef.value?.focus()
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
if (props.disable === true) {
|
|
107
107
|
// we should hinder native navigation though
|
|
108
|
-
if (routeData
|
|
108
|
+
if (routeData?.hasRouterLink.value === true) {
|
|
109
109
|
stopAndPrevent(e)
|
|
110
110
|
}
|
|
111
111
|
return
|
|
@@ -140,7 +140,7 @@ export default function (props, slots, emit, routeData) {
|
|
|
140
140
|
if (
|
|
141
141
|
hardError === void 0 && (
|
|
142
142
|
softError === void 0
|
|
143
|
-
|| (softError.message
|
|
143
|
+
|| (softError.message?.startsWith('Avoided redundant navigation') === true)
|
|
144
144
|
)
|
|
145
145
|
) {
|
|
146
146
|
$tabs.updateModel({ name: props.name })
|
|
@@ -264,7 +264,7 @@ export default createComponent({
|
|
|
264
264
|
for (let val = start, index = start; val <= end; val += step, index++) {
|
|
265
265
|
const
|
|
266
266
|
actualVal = val + offset,
|
|
267
|
-
disable = values
|
|
267
|
+
disable = values?.includes(actualVal) === false,
|
|
268
268
|
label = view.value === 'hour' && val === 0
|
|
269
269
|
? (computedFormat24h.value === true ? '00' : '12')
|
|
270
270
|
: val
|
|
@@ -334,7 +334,7 @@ export default createComponent({
|
|
|
334
334
|
node[ props.childrenKey ] = Array.isArray(children) === true ? children : []
|
|
335
335
|
nextTick(() => {
|
|
336
336
|
const localMeta = meta.value[ key ]
|
|
337
|
-
if (localMeta
|
|
337
|
+
if (localMeta?.isParent === true) {
|
|
338
338
|
localSetExpanded(key, true)
|
|
339
339
|
}
|
|
340
340
|
})
|
|
@@ -627,8 +627,7 @@ export default createComponent({
|
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
function blur (key) {
|
|
630
|
-
|
|
631
|
-
blurTarget && blurTarget.focus()
|
|
630
|
+
blurTargets[ key ]?.focus()
|
|
632
631
|
}
|
|
633
632
|
|
|
634
633
|
function onClick (node, meta, e, keyboard) {
|
|
@@ -40,7 +40,7 @@ const setOverflowAnchor = __QUASAR_SSR__ || window.getComputedStyle(document.bod
|
|
|
40
40
|
|
|
41
41
|
const el = children[ index ]
|
|
42
42
|
|
|
43
|
-
if (el
|
|
43
|
+
if (el?.dataset) {
|
|
44
44
|
el.dataset.qVsAnchor = ''
|
|
45
45
|
}
|
|
46
46
|
})
|
|
@@ -422,7 +422,7 @@ export function useVirtualScroll ({
|
|
|
422
422
|
contentEl.addEventListener('focusout', onBlurRefocusFn)
|
|
423
423
|
|
|
424
424
|
setTimeout(() => {
|
|
425
|
-
contentEl
|
|
425
|
+
contentEl?.removeEventListener('focusout', onBlurRefocusFn)
|
|
426
426
|
})
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -533,7 +533,7 @@ export function useVirtualScroll ({
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
function onBlurRefocusFn () {
|
|
536
|
-
contentRef.value
|
|
536
|
+
contentRef.value?.focus()
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
function localResetVirtualScroll (toIndex, fullReset) {
|
|
@@ -265,12 +265,12 @@ export default function (state) {
|
|
|
265
265
|
|
|
266
266
|
function focusHandler () {
|
|
267
267
|
const el = document.activeElement
|
|
268
|
-
let target = state.targetRef
|
|
268
|
+
let target = state.targetRef?.value
|
|
269
269
|
|
|
270
270
|
if (target && (el === null || el.id !== state.targetUid.value)) {
|
|
271
271
|
target.hasAttribute('tabindex') === true || (target = target.querySelector('[tabindex]'))
|
|
272
|
-
if (target
|
|
273
|
-
target
|
|
272
|
+
if (target !== el) {
|
|
273
|
+
target?.focus({ preventScroll: true })
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -318,7 +318,7 @@ export default function (state) {
|
|
|
318
318
|
emit('blur', e)
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
then
|
|
321
|
+
then?.()
|
|
322
322
|
})
|
|
323
323
|
}
|
|
324
324
|
|
|
@@ -327,7 +327,7 @@ export default function (state) {
|
|
|
327
327
|
stopAndPrevent(e)
|
|
328
328
|
|
|
329
329
|
if ($q.platform.is.mobile !== true) {
|
|
330
|
-
const el =
|
|
330
|
+
const el = state.targetRef?.value || state.rootRef.value
|
|
331
331
|
el.focus()
|
|
332
332
|
}
|
|
333
333
|
else if (state.rootRef.value.contains(document.activeElement) === true) {
|
|
@@ -19,7 +19,10 @@ function filterFiles (files, rejectedFiles, failedPropValidation, filterFn) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function stopAndPreventDrag (e) {
|
|
22
|
-
|
|
22
|
+
if (e?.dataTransfer) {
|
|
23
|
+
e.dataTransfer.dropEffect = 'copy'
|
|
24
|
+
}
|
|
25
|
+
|
|
23
26
|
stopAndPrevent(e)
|
|
24
27
|
}
|
|
25
28
|
|
|
@@ -69,13 +72,13 @@ export default function ({
|
|
|
69
72
|
e = { target: null }
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
if (e.target
|
|
75
|
+
if (e.target?.matches('input[type="file"]') === true) {
|
|
73
76
|
// stop propagation if it's not a real pointer event
|
|
74
77
|
e.clientX === 0 && e.clientY === 0 && stop(e)
|
|
75
78
|
}
|
|
76
79
|
else {
|
|
77
80
|
const input = getFileInput()
|
|
78
|
-
|
|
81
|
+
if (input !== e.target) input?.click(e)
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
}
|
|
@@ -41,8 +41,8 @@ export default function ({
|
|
|
41
41
|
|
|
42
42
|
function show (evt) {
|
|
43
43
|
if (
|
|
44
|
-
props.disable === true
|
|
45
|
-
|| (evt
|
|
44
|
+
(props.disable === true)
|
|
45
|
+
|| (evt?.qAnchorHandled === true)
|
|
46
46
|
|| (canShow !== void 0 && canShow(evt) !== true)
|
|
47
47
|
) return
|
|
48
48
|
|
|
@@ -18,18 +18,19 @@ export default function (props, rootRef) {
|
|
|
18
18
|
function refocusTarget (e) {
|
|
19
19
|
const root = rootRef.value
|
|
20
20
|
|
|
21
|
-
if (e
|
|
21
|
+
if (e?.qAvoidFocus === true) return
|
|
22
|
+
|
|
23
|
+
if (e?.type.indexOf('key') === 0) {
|
|
22
24
|
if (
|
|
23
|
-
|
|
24
|
-
&& document.activeElement
|
|
25
|
-
&& root.contains(document.activeElement) === true
|
|
25
|
+
document.activeElement !== root
|
|
26
|
+
&& root?.contains(document.activeElement) === true
|
|
26
27
|
) {
|
|
27
28
|
root.focus()
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
else if (
|
|
31
32
|
refocusRef.value !== null
|
|
32
|
-
&& (e === void 0 || (root
|
|
33
|
+
&& ((e === void 0) || (root?.contains(e.target) === true))
|
|
33
34
|
) {
|
|
34
35
|
refocusRef.value.focus()
|
|
35
36
|
}
|