quasar 2.10.1 → 2.10.2
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/Dialog.json +3 -1
- package/dist/api/QPopupProxy.json +21 -0
- 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 +6 -0
- 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 +6 -0
- 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 +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/eu.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/kz.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/mm.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/sm.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/uz-Cyrl.umd.prod.js +1 -1
- package/dist/lang/uz-Latn.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 +1 -1
- package/dist/quasar.esm.js +82 -59
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +8 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +3 -2
- package/dist/quasar.umd.js +81 -58
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/types/api/dialog.d.ts +101 -0
- package/dist/types/api/qpopupproxy.d.ts +3 -0
- package/dist/types/api.d.ts +2 -0
- package/dist/types/index.d.ts +18 -54
- package/dist/web-types/web-types.json +1 -1
- package/icon-set/mdi-v7.js +146 -0
- package/icon-set/mdi-v7.mjs +141 -0
- package/icon-set/svg-mdi-v7.js +224 -0
- package/icon-set/svg-mdi-v7.mjs +224 -0
- package/package.json +2 -2
- package/src/components/btn-dropdown/QBtnDropdown.js +0 -1
- package/src/components/date/QDate.js +3 -1
- package/src/components/dialog/QDialog.js +7 -4
- package/src/components/expansion-item/QExpansionItem.js +0 -1
- package/src/components/fab/QFab.js +3 -6
- package/src/components/fab/QFab.sass +2 -1
- package/src/components/img/QImg.js +20 -19
- package/src/components/input/QInput.js +8 -2
- package/src/components/input/use-mask.js +2 -0
- package/src/components/item/QList.js +1 -1
- package/src/components/menu/QMenu.js +4 -1
- package/src/components/popup-proxy/QPopupProxy.js +6 -0
- package/src/components/popup-proxy/QPopupProxy.json +19 -0
- package/src/components/select/QSelect.js +26 -21
- package/src/plugins/Dialog.json +3 -1
package/dist/quasar.css
CHANGED
|
@@ -2115,7 +2115,7 @@ body.q-ios-padding .q-dialog__inner > div {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
.q-fab__actions--opened {
|
|
2117
2117
|
opacity: 1;
|
|
2118
|
-
transform: scale(1) translate(0, 0);
|
|
2118
|
+
transform: scale(1) translate(0.1px, 0);
|
|
2119
2119
|
pointer-events: all;
|
|
2120
2120
|
}
|
|
2121
2121
|
.q-fab--align-left > .q-fab__actions--up, .q-fab--align-left > .q-fab__actions--down {
|
package/dist/quasar.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quasar Framework v2.10.
|
|
2
|
+
* Quasar Framework v2.10.2
|
|
3
3
|
* (c) 2015-present Razvan Stoenescu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1610,7 +1610,7 @@ function prepareApp (app, uiOpts, pluginOpts) {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
|
|
1612
1612
|
var installQuasar = function (parentApp, opts = {}) {
|
|
1613
|
-
const $q = { version: '2.10.
|
|
1613
|
+
const $q = { version: '2.10.2' };
|
|
1614
1614
|
|
|
1615
1615
|
if (globalConfigIsFrozen === false) {
|
|
1616
1616
|
if (opts.config !== void 0) {
|
|
@@ -5494,7 +5494,10 @@ var QMenu = createComponent({
|
|
|
5494
5494
|
|| evt.qClickOutside !== true
|
|
5495
5495
|
)
|
|
5496
5496
|
) {
|
|
5497
|
-
|
|
5497
|
+
((evt && evt.type.indexOf('key') === 0
|
|
5498
|
+
? refocusTarget.closest('[tabindex]:not([tabindex^="-"])')
|
|
5499
|
+
: void 0
|
|
5500
|
+
) || refocusTarget).focus();
|
|
5498
5501
|
refocusTarget = null;
|
|
5499
5502
|
}
|
|
5500
5503
|
|
|
@@ -5753,7 +5756,6 @@ var QBtnDropdown = createComponent({
|
|
|
5753
5756
|
'aria-expanded': showing.value === true ? 'true' : 'false',
|
|
5754
5757
|
'aria-haspopup': 'true',
|
|
5755
5758
|
'aria-controls': targetUid,
|
|
5756
|
-
'aria-owns': targetUid,
|
|
5757
5759
|
'aria-label': props.toggleAriaLabel || proxy.$q.lang.label[ showing.value === true ? 'collapse' : 'expand' ](props.label)
|
|
5758
5760
|
};
|
|
5759
5761
|
|
|
@@ -13717,7 +13719,9 @@ var QDate = createComponent({
|
|
|
13717
13719
|
});
|
|
13718
13720
|
|
|
13719
13721
|
watch(view, () => {
|
|
13720
|
-
blurTargetRef.value !== null &&
|
|
13722
|
+
if (blurTargetRef.value !== null && proxy.$el.contains(document.activeElement) === true) {
|
|
13723
|
+
blurTargetRef.value.focus();
|
|
13724
|
+
}
|
|
13721
13725
|
});
|
|
13722
13726
|
|
|
13723
13727
|
watch(() => viewModel.value.year, year => {
|
|
@@ -14912,7 +14916,10 @@ var QDialog = createComponent({
|
|
|
14912
14916
|
hidePortal();
|
|
14913
14917
|
|
|
14914
14918
|
if (refocusTarget !== null) {
|
|
14915
|
-
|
|
14919
|
+
((evt && evt.type.indexOf('key') === 0
|
|
14920
|
+
? refocusTarget.closest('[tabindex]:not([tabindex^="-"])')
|
|
14921
|
+
: void 0
|
|
14922
|
+
) || refocusTarget).focus();
|
|
14916
14923
|
refocusTarget = null;
|
|
14917
14924
|
}
|
|
14918
14925
|
|
|
@@ -14941,9 +14948,9 @@ var QDialog = createComponent({
|
|
|
14941
14948
|
});
|
|
14942
14949
|
}
|
|
14943
14950
|
|
|
14944
|
-
function shake (
|
|
14945
|
-
if (
|
|
14946
|
-
|
|
14951
|
+
function shake (focusTarget) {
|
|
14952
|
+
if (focusTarget && typeof focusTarget.focus === 'function') {
|
|
14953
|
+
focusTarget.focus({ preventScroll: true });
|
|
14947
14954
|
}
|
|
14948
14955
|
else {
|
|
14949
14956
|
focus();
|
|
@@ -17882,7 +17889,6 @@ var QExpansionItem = createComponent({
|
|
|
17882
17889
|
return {
|
|
17883
17890
|
role: 'button',
|
|
17884
17891
|
'aria-expanded': showing.value === true ? 'true' : 'false',
|
|
17885
|
-
'aria-owns': targetUid,
|
|
17886
17892
|
'aria-controls': targetUid,
|
|
17887
17893
|
'aria-label': toggleAriaLabel
|
|
17888
17894
|
}
|
|
@@ -18263,13 +18269,11 @@ var QFab = createComponent({
|
|
|
18263
18269
|
|
|
18264
18270
|
const actionAttrs = computed(() => {
|
|
18265
18271
|
const attrs = {
|
|
18266
|
-
id: targetUid
|
|
18272
|
+
id: targetUid,
|
|
18273
|
+
role: 'menu'
|
|
18267
18274
|
};
|
|
18268
18275
|
|
|
18269
|
-
if (showing.value
|
|
18270
|
-
attrs.role = 'menu';
|
|
18271
|
-
}
|
|
18272
|
-
else {
|
|
18276
|
+
if (showing.value !== true) {
|
|
18273
18277
|
attrs[ 'aria-hidden' ] = 'true';
|
|
18274
18278
|
}
|
|
18275
18279
|
|
|
@@ -18338,7 +18342,6 @@ var QFab = createComponent({
|
|
|
18338
18342
|
'aria-expanded': showing.value === true ? 'true' : 'false',
|
|
18339
18343
|
'aria-haspopup': 'true',
|
|
18340
18344
|
'aria-controls': targetUid,
|
|
18341
|
-
'aria-owns': targetUid,
|
|
18342
18345
|
onClick: toggle
|
|
18343
18346
|
}, getTriggerContent),
|
|
18344
18347
|
|
|
@@ -20523,7 +20526,7 @@ var QImg = createComponent({
|
|
|
20523
20526
|
|
|
20524
20527
|
const images = [
|
|
20525
20528
|
ref(null),
|
|
20526
|
-
ref(
|
|
20529
|
+
ref(getPlaceholderSrc())
|
|
20527
20530
|
];
|
|
20528
20531
|
|
|
20529
20532
|
const position = ref(0);
|
|
@@ -20563,18 +20566,24 @@ var QImg = createComponent({
|
|
|
20563
20566
|
: null
|
|
20564
20567
|
}
|
|
20565
20568
|
|
|
20569
|
+
function getPlaceholderSrc () {
|
|
20570
|
+
return props.placeholderSrc !== void 0
|
|
20571
|
+
? { src: props.placeholderSrc }
|
|
20572
|
+
: null
|
|
20573
|
+
}
|
|
20574
|
+
|
|
20566
20575
|
function addImage (imgProps) {
|
|
20567
20576
|
clearTimeout(loadTimer);
|
|
20568
20577
|
hasError.value = false;
|
|
20569
20578
|
|
|
20570
20579
|
if (imgProps === null) {
|
|
20571
20580
|
isLoading.value = false;
|
|
20572
|
-
images[
|
|
20573
|
-
|
|
20574
|
-
|
|
20581
|
+
images[ position.value ^ 1 ].value = getPlaceholderSrc();
|
|
20582
|
+
}
|
|
20583
|
+
else {
|
|
20584
|
+
isLoading.value = true;
|
|
20575
20585
|
}
|
|
20576
20586
|
|
|
20577
|
-
isLoading.value = true;
|
|
20578
20587
|
images[ position.value ].value = imgProps;
|
|
20579
20588
|
}
|
|
20580
20589
|
|
|
@@ -20609,7 +20618,7 @@ var QImg = createComponent({
|
|
|
20609
20618
|
// if component has been already destroyed
|
|
20610
20619
|
if (loadTimer === null) { return }
|
|
20611
20620
|
|
|
20612
|
-
position.value = position.value
|
|
20621
|
+
position.value = position.value ^ 1;
|
|
20613
20622
|
images[ position.value ].value = null;
|
|
20614
20623
|
isLoading.value = false;
|
|
20615
20624
|
hasError.value = false;
|
|
@@ -20620,19 +20629,11 @@ var QImg = createComponent({
|
|
|
20620
20629
|
clearTimeout(loadTimer);
|
|
20621
20630
|
isLoading.value = false;
|
|
20622
20631
|
hasError.value = true;
|
|
20623
|
-
images[
|
|
20624
|
-
images[ 1 ].value =
|
|
20632
|
+
images[ position.value ].value = null;
|
|
20633
|
+
images[ position.value ^ 1 ].value = getPlaceholderSrc();
|
|
20625
20634
|
emit('error', err);
|
|
20626
20635
|
}
|
|
20627
20636
|
|
|
20628
|
-
function getContainer (key, child) {
|
|
20629
|
-
return h(
|
|
20630
|
-
'div',
|
|
20631
|
-
{ class: 'q-img__container absolute-full', key },
|
|
20632
|
-
child
|
|
20633
|
-
)
|
|
20634
|
-
}
|
|
20635
|
-
|
|
20636
20637
|
function getImage (index) {
|
|
20637
20638
|
const img = images[ index ].value;
|
|
20638
20639
|
|
|
@@ -20660,7 +20661,11 @@ var QImg = createComponent({
|
|
|
20660
20661
|
data.class += ' q-img__image--loaded';
|
|
20661
20662
|
}
|
|
20662
20663
|
|
|
20663
|
-
return
|
|
20664
|
+
return h(
|
|
20665
|
+
'div',
|
|
20666
|
+
{ class: 'q-img__container absolute-full', key: 'img' + index },
|
|
20667
|
+
h('img', data)
|
|
20668
|
+
)
|
|
20664
20669
|
}
|
|
20665
20670
|
|
|
20666
20671
|
function getContent () {
|
|
@@ -20691,7 +20696,7 @@ var QImg = createComponent({
|
|
|
20691
20696
|
}
|
|
20692
20697
|
|
|
20693
20698
|
{
|
|
20694
|
-
if (__QUASAR_SSR_CLIENT__
|
|
20699
|
+
if (__QUASAR_SSR_CLIENT__) {
|
|
20695
20700
|
onMounted(() => {
|
|
20696
20701
|
addImage(getCurrentSrc());
|
|
20697
20702
|
});
|
|
@@ -21456,6 +21461,8 @@ function useMask (props, emit, emitValue, inputRef) {
|
|
|
21456
21461
|
};
|
|
21457
21462
|
|
|
21458
21463
|
function onMaskedKeydown (e) {
|
|
21464
|
+
emit('keydown', e);
|
|
21465
|
+
|
|
21459
21466
|
if (shouldIgnoreKey(e) === true) {
|
|
21460
21467
|
return
|
|
21461
21468
|
}
|
|
@@ -21635,7 +21642,8 @@ var QInput = createComponent({
|
|
|
21635
21642
|
|
|
21636
21643
|
emits: [
|
|
21637
21644
|
...useFieldEmits,
|
|
21638
|
-
'paste', 'change'
|
|
21645
|
+
'paste', 'change',
|
|
21646
|
+
'keydown', 'animationend'
|
|
21639
21647
|
],
|
|
21640
21648
|
|
|
21641
21649
|
setup (props, { emit, attrs }) {
|
|
@@ -21693,7 +21701,7 @@ var QInput = createComponent({
|
|
|
21693
21701
|
}
|
|
21694
21702
|
|
|
21695
21703
|
if (props.autogrow === true) {
|
|
21696
|
-
evt.onAnimationend =
|
|
21704
|
+
evt.onAnimationend = onAnimationend;
|
|
21697
21705
|
}
|
|
21698
21706
|
|
|
21699
21707
|
return evt
|
|
@@ -21848,6 +21856,11 @@ var QInput = createComponent({
|
|
|
21848
21856
|
props.autogrow === true && adjustHeight();
|
|
21849
21857
|
}
|
|
21850
21858
|
|
|
21859
|
+
function onAnimationend (e) {
|
|
21860
|
+
emit('animationend', e);
|
|
21861
|
+
adjustHeight();
|
|
21862
|
+
}
|
|
21863
|
+
|
|
21851
21864
|
function emitValue (val, stopWatcher) {
|
|
21852
21865
|
emitValueFn = () => {
|
|
21853
21866
|
if (
|
|
@@ -22235,7 +22248,7 @@ var QList = createComponent({
|
|
|
22235
22248
|
+ (props.padding === true ? ' q-list--padding' : '')
|
|
22236
22249
|
);
|
|
22237
22250
|
|
|
22238
|
-
return () => h(props.tag, { class: classes.value
|
|
22251
|
+
return () => h(props.tag, { class: classes.value }, hSlot(slots.default))
|
|
22239
22252
|
}
|
|
22240
22253
|
});
|
|
22241
22254
|
|
|
@@ -24587,6 +24600,11 @@ var QPopupProxy = createComponent({
|
|
|
24587
24600
|
toggle (evt) { popupRef.value.toggle(evt); }
|
|
24588
24601
|
});
|
|
24589
24602
|
|
|
24603
|
+
injectProp(proxy, 'currentComponent', () => ({
|
|
24604
|
+
type: type.value,
|
|
24605
|
+
ref: popupRef.value
|
|
24606
|
+
}));
|
|
24607
|
+
|
|
24590
24608
|
return () => {
|
|
24591
24609
|
const data = {
|
|
24592
24610
|
ref: popupRef,
|
|
@@ -27046,6 +27064,11 @@ var QSelect = createComponent({
|
|
|
27046
27064
|
.join(', ')
|
|
27047
27065
|
);
|
|
27048
27066
|
|
|
27067
|
+
const ariaCurrentValue = computed(() => (props.displayValue !== void 0
|
|
27068
|
+
? props.displayValue
|
|
27069
|
+
: selectedString.value
|
|
27070
|
+
));
|
|
27071
|
+
|
|
27049
27072
|
const needsHtmlFn = computed(() => (
|
|
27050
27073
|
props.optionsHtml === true
|
|
27051
27074
|
? () => true
|
|
@@ -27063,22 +27086,15 @@ var QSelect = createComponent({
|
|
|
27063
27086
|
|
|
27064
27087
|
const tabindex = computed(() => (state.focused.value === true ? props.tabindex : -1));
|
|
27065
27088
|
|
|
27066
|
-
const comboboxAttrs = computed(() =>
|
|
27067
|
-
tabindex: props.tabindex,
|
|
27068
|
-
role: 'combobox',
|
|
27069
|
-
'aria-label': props.label,
|
|
27070
|
-
'aria-readonly': props.readonly === true ? 'true' : 'false',
|
|
27071
|
-
'aria-autocomplete': props.useInput === true ? 'list' : 'none',
|
|
27072
|
-
'aria-expanded': menu.value === true ? 'true' : 'false',
|
|
27073
|
-
'aria-owns': `${ state.targetUid.value }_lb`,
|
|
27074
|
-
'aria-controls': `${ state.targetUid.value }_lb`
|
|
27075
|
-
}));
|
|
27076
|
-
|
|
27077
|
-
const listboxAttrs = computed(() => {
|
|
27089
|
+
const comboboxAttrs = computed(() => {
|
|
27078
27090
|
const attrs = {
|
|
27079
|
-
|
|
27080
|
-
role: '
|
|
27081
|
-
'aria-
|
|
27091
|
+
tabindex: props.tabindex,
|
|
27092
|
+
role: 'combobox',
|
|
27093
|
+
'aria-label': props.label,
|
|
27094
|
+
'aria-readonly': props.readonly === true ? 'true' : 'false',
|
|
27095
|
+
'aria-autocomplete': props.useInput === true ? 'list' : 'none',
|
|
27096
|
+
'aria-expanded': menu.value === true ? 'true' : 'false',
|
|
27097
|
+
'aria-controls': `${ state.targetUid.value }_lb`
|
|
27082
27098
|
};
|
|
27083
27099
|
|
|
27084
27100
|
if (optionIndex.value >= 0) {
|
|
@@ -27088,6 +27104,12 @@ var QSelect = createComponent({
|
|
|
27088
27104
|
return attrs
|
|
27089
27105
|
});
|
|
27090
27106
|
|
|
27107
|
+
const listboxAttrs = computed(() => ({
|
|
27108
|
+
id: `${ state.targetUid.value }_lb`,
|
|
27109
|
+
role: 'listbox',
|
|
27110
|
+
'aria-multiselectable': props.multiple === true ? 'true' : 'false'
|
|
27111
|
+
}));
|
|
27112
|
+
|
|
27091
27113
|
const selectedScope = computed(() => {
|
|
27092
27114
|
return innerValue.value.map((opt, i) => ({
|
|
27093
27115
|
index: i,
|
|
@@ -27583,7 +27605,9 @@ var QSelect = createComponent({
|
|
|
27583
27605
|
&& props.useInput !== true
|
|
27584
27606
|
&& e.key !== void 0
|
|
27585
27607
|
&& e.key.length === 1 // printable char
|
|
27586
|
-
&& e.altKey ===
|
|
27608
|
+
&& e.altKey === false // not kbd shortcut
|
|
27609
|
+
&& e.ctrlKey === false // not kbd shortcut
|
|
27610
|
+
&& e.metaKey === false // not kbd shortcut, especially on macOS with Command key
|
|
27587
27611
|
&& (e.keyCode !== 32 || searchBuffer.length > 0) // space in middle of search
|
|
27588
27612
|
) {
|
|
27589
27613
|
menu.value !== true && showPopup(e);
|
|
@@ -27730,9 +27754,7 @@ var QSelect = createComponent({
|
|
|
27730
27754
|
|
|
27731
27755
|
return [
|
|
27732
27756
|
h('span', {
|
|
27733
|
-
[ valueAsHtml.value === true ? 'innerHTML' : 'textContent' ]:
|
|
27734
|
-
? props.displayValue
|
|
27735
|
-
: selectedString.value
|
|
27757
|
+
[ valueAsHtml.value === true ? 'innerHTML' : 'textContent' ]: ariaCurrentValue.value
|
|
27736
27758
|
})
|
|
27737
27759
|
]
|
|
27738
27760
|
}
|
|
@@ -27787,7 +27809,7 @@ var QSelect = createComponent({
|
|
|
27787
27809
|
id: isTarget === true ? state.targetUid.value : void 0,
|
|
27788
27810
|
maxlength: props.maxlength,
|
|
27789
27811
|
autocomplete: props.autocomplete,
|
|
27790
|
-
'data-autofocus':
|
|
27812
|
+
'data-autofocus': fromDialog === true || props.autofocus === true || void 0,
|
|
27791
27813
|
disabled: props.disable === true,
|
|
27792
27814
|
readonly: props.readonly === true,
|
|
27793
27815
|
...inputControlEvents.value
|
|
@@ -28287,8 +28309,9 @@ var QSelect = createComponent({
|
|
|
28287
28309
|
key: 'd_t',
|
|
28288
28310
|
class: 'q-select__focus-target',
|
|
28289
28311
|
id: isTarget === true ? state.targetUid.value : void 0,
|
|
28312
|
+
value: ariaCurrentValue.value,
|
|
28290
28313
|
readonly: true,
|
|
28291
|
-
'data-autofocus':
|
|
28314
|
+
'data-autofocus': fromDialog === true || props.autofocus === true || void 0,
|
|
28292
28315
|
...attrs,
|
|
28293
28316
|
onKeydown: onTargetKeydown,
|
|
28294
28317
|
onKeyup: onTargetKeyup,
|
|
@@ -40296,7 +40319,7 @@ function runSequentialPromises (
|
|
|
40296
40319
|
*/
|
|
40297
40320
|
|
|
40298
40321
|
const Quasar = {
|
|
40299
|
-
version: '2.10.
|
|
40322
|
+
version: '2.10.2',
|
|
40300
40323
|
install: installQuasar,
|
|
40301
40324
|
lang: Plugin$8,
|
|
40302
40325
|
iconSet: Plugin$7
|