@revolugo/elements 5.5.5-rc.9 → 5.5.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/revolugo.0.min.css +5 -0
- package/dist/css/revolugo.1.min.css +1 -0
- package/dist/css/revolugo.11.min.css +1 -0
- package/dist/css/revolugo.12.min.css +1 -0
- package/dist/css/revolugo.13.min.css +1 -0
- package/dist/css/revolugo.14.min.css +1 -0
- package/dist/css/revolugo.15.min.css +1 -0
- package/dist/css/revolugo.16.min.css +1 -0
- package/dist/css/revolugo.17.min.css +1 -0
- package/dist/css/revolugo.18.min.css +1 -0
- package/dist/css/revolugo.19.min.css +1 -0
- package/dist/css/revolugo.2.min.css +1 -0
- package/dist/css/revolugo.20.min.css +1 -0
- package/dist/css/revolugo.21.min.css +1 -0
- package/dist/css/revolugo.22.min.css +1 -0
- package/dist/css/revolugo.23.min.css +1 -0
- package/dist/css/revolugo.24.min.css +1 -0
- package/dist/css/revolugo.25.min.css +1 -0
- package/dist/css/revolugo.26.min.css +1 -0
- package/dist/css/revolugo.27.min.css +1 -0
- package/dist/css/revolugo.28.min.css +1 -0
- package/dist/css/revolugo.29.min.css +1 -0
- package/dist/css/revolugo.30.min.css +1 -0
- package/dist/css/revolugo.31.min.css +1 -0
- package/dist/css/revolugo.32.min.css +1 -0
- package/dist/css/revolugo.33.min.css +1 -0
- package/dist/css/revolugo.34.min.css +1 -0
- package/dist/css/revolugo.35.min.css +1 -0
- package/dist/css/revolugo.4.min.css +1 -0
- package/dist/css/revolugo.5.min.css +1 -0
- package/dist/css/revolugo.6.min.css +1 -0
- package/dist/css/revolugo.7.min.css +1 -0
- package/dist/css/revolugo.fonts.min.css +1 -0
- package/dist/fonts/amenities.2aad1d12.woff +0 -0
- package/dist/fonts/amenities.9adae269.ttf +0 -0
- package/dist/fonts/amenities.a9bf50f8.svg +42 -0
- package/dist/fonts/amenities.bd6b3a4a.eot +0 -0
- package/dist/fonts/beds.2b8e38c8.svg +12 -0
- package/dist/img/apst.c1092975.png +0 -0
- package/dist/img/apst.ec7669f2.png +0 -0
- package/dist/img/atout-france.72107e30.png +0 -0
- package/dist/img/atout-france.df038f22.png +0 -0
- package/dist/img/revolugo.179c459d.png +0 -0
- package/dist/img/revolugo.e0879dcc.png +0 -0
- package/dist/img/stripe.405543e2.png +0 -0
- package/dist/img/stripe.c3e16f9f.png +0 -0
- package/dist/index.min.js +1 -65
- package/dist/revolugo.0.min.js +18 -0
- package/dist/revolugo.1.min.js +1 -0
- package/dist/revolugo.11.min.js +134 -0
- package/dist/revolugo.12.min.js +19 -0
- package/dist/revolugo.13.min.js +14 -0
- package/dist/revolugo.14.min.js +14 -0
- package/dist/revolugo.15.min.js +19 -0
- package/dist/revolugo.16.min.js +139 -0
- package/dist/revolugo.17.min.js +14 -0
- package/dist/revolugo.18.min.js +14 -0
- package/dist/revolugo.19.min.js +1 -0
- package/dist/revolugo.2.min.js +1 -0
- package/dist/revolugo.20.min.js +1 -0
- package/dist/revolugo.21.min.js +1 -0
- package/dist/revolugo.22.min.js +116 -0
- package/dist/revolugo.23.min.js +1 -0
- package/dist/revolugo.24.min.js +1 -0
- package/dist/revolugo.25.min.js +1 -0
- package/dist/revolugo.26.min.js +1 -0
- package/dist/revolugo.27.min.js +1 -0
- package/dist/revolugo.28.min.js +1 -0
- package/dist/revolugo.29.min.js +116 -0
- package/dist/revolugo.30.min.js +1 -0
- package/dist/revolugo.31.min.js +1 -0
- package/dist/revolugo.32.min.js +1 -0
- package/dist/revolugo.33.min.js +1 -0
- package/dist/revolugo.34.min.js +1 -0
- package/dist/revolugo.35.min.js +1 -0
- package/dist/revolugo.36.min.js +1 -0
- package/dist/revolugo.37.min.js +1 -0
- package/dist/revolugo.4.min.js +1 -0
- package/dist/revolugo.5.min.js +1 -0
- package/dist/revolugo.6.min.js +1 -0
- package/dist/revolugo.7.min.js +1 -0
- package/dist/revolugo.en-US.min.js +1 -0
- package/dist/revolugo.fonts.min.js +1 -0
- package/dist/revolugo.fr-FR.min.js +1 -0
- package/dist/revolugo.min.js +7 -260
- package/package.json +30 -23
- package/dist/css/fonts.css +0 -1
- package/dist/css/revolugo.bdaterangepicker.DEh20utH.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.4XsxkvH7.css +0 -1
- package/dist/css/revolugo.bhotelsearchbar.dwYB1gUC.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.tDtXpaIj.css +0 -1
- package/dist/css/revolugo.bphoneinput.Kq_-XiGI.css +0 -1
- package/dist/css/revolugo.bstarrating.nzH7iii4.css +0 -1
- package/dist/css/revolugo.btag.Bdbqb_8a.css +0 -1
- package/dist/css/revolugo.common.BSIsYREh.css +0 -1
- package/dist/css/revolugo.creditcardform.BGPUxkRC.css +0 -1
- package/dist/css/revolugo.creditcardpayment.0MNnDloZ.css +0 -1
- package/dist/css/revolugo.currencypicker.BRYsKdMu.css +0 -1
- package/dist/css/revolugo.fullbookingflow.BHV7_MhK.css +0 -1
- package/dist/css/revolugo.hotel-offer.CEd50mBT.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.0LnWfOu_.css +0 -1
- package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.xJfKaofV.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.PPEIqHuM.css +0 -1
- package/dist/css/revolugo.hotelroomoffersview.B8Y-2QYc.css +0 -1
- package/dist/css/revolugo.index.BMkl7a3p.css +0 -1
- package/dist/css/revolugo.index.CFW4Oklv.css +0 -1
- package/dist/css/revolugo.index.vq4xksqn.css +0 -1
- package/dist/css/revolugo.langpicker.B3TsOwUq.css +0 -1
- package/dist/css/revolugo.parsed-height.Xzhpy3D3.css +0 -1
- package/dist/css/revolugo.parsed-props.C3kOvm7T.css +0 -1
- package/dist/css/revolugo.prebookform.DBm2B4rS.css +0 -1
- package/dist/css/revolugo.revolugo-config.Dg8v1l3c.css +0 -5
- package/dist/css/revolugo.storybooktoolbar.CVnww0dZ.css +0 -1
- package/dist/css/revolugo.termsandconditions.DV2YnGzG.css +0 -1
- package/dist/css/revolugo.valert.BzcMswjJ.css +0 -1
- package/dist/css/revolugo.vautocomplete.OMX_yAge.css +0 -1
- package/dist/css/revolugo.vbadge.CiK_DSkI.css +0 -1
- package/dist/css/revolugo.vbtn.By46MJOU.css +0 -1
- package/dist/css/revolugo.vcard.DmB53ZNL.css +0 -1
- package/dist/css/revolugo.vchip.BdAdP6lC.css +0 -1
- package/dist/css/revolugo.vdialog.C02Cvwul.css +0 -1
- package/dist/css/revolugo.vexpansionpanelheader.B2eKo8Lo.css +0 -1
- package/dist/css/revolugo.vinput.SfhpXNi0.css +0 -1
- package/dist/css/revolugo.vitemgroup.EbHsz8Rr.css +0 -1
- package/dist/css/revolugo.vlistitem.BzwNE1YK.css +0 -1
- package/dist/css/revolugo.vmenu.BKE0IO4q.css +0 -1
- package/dist/css/revolugo.vselect.DljSkk6y.css +0 -1
- package/dist/css/revolugo.vsheet.Dtdo2Rps.css +0 -1
- package/dist/css/revolugo.vskeletonloader.BpGoaAbZ.css +0 -1
- package/dist/css/revolugo.vslidegroup.D5TIbmaw.css +0 -1
- package/dist/css/revolugo.vsnackbar.DTAXPYkr.css +0 -1
- package/dist/css/revolugo.vtextfield.BliJY6uv.css +0 -1
- package/dist/css/revolugo.vtoolbar.DQsezjcM.css +0 -1
- package/dist/css/revolugo.vtooltip.B_oOB9pj.css +0 -1
- package/dist/css/revolugo.vuetify.BpIoHlAi.css +0 -1
- package/dist/css/revolugo.webcomponentwrapper.BRZRuwZ0.css +0 -1
- package/dist/index.es.min.js +0 -14203
- package/dist/index.es.min.js.map +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist/revolugo.banktransferdetails.BizR-rRI.min.js +0 -105
- package/dist/revolugo.bbreakfastoptionbadge.B7i2HO4j.min.js +0 -62
- package/dist/revolugo.bdaterangepicker.S6or4pKG.min.js +0 -1351
- package/dist/revolugo.bformattedamount.b9Kq7aJt.min.js +0 -82
- package/dist/revolugo.bhotelroomsdetails.CZnD6K9I.min.js +0 -213
- package/dist/revolugo.bhotelsearchbar.BqvoePCQ.min.js +0 -446
- package/dist/revolugo.booking-api-client.DiqqOOFv.min.js +0 -7680
- package/dist/revolugo.bookingdetailssidebar.Bfbk59f9.min.js +0 -242
- package/dist/revolugo.bookingdetailssidebar.d7t71nic.min.js +0 -28
- package/dist/revolugo.bookingmanager.DKrJHtvs.min.js +0 -404
- package/dist/revolugo.bphoneinput.BZevDjso.min.js +0 -1935
- package/dist/revolugo.bpricesummaryskeleton.Dr-IXzQj.min.js +0 -47
- package/dist/revolugo.breakpoint-service.Bdi4f4LL.min.js +0 -65
- package/dist/revolugo.bstarrating.C1e3VjIg.min.js +0 -173
- package/dist/revolugo.btag.ynoHdYtY.min.js +0 -68
- package/dist/revolugo.cancellationpoliciesbadge.DZay7gI5.min.js +0 -28
- package/dist/revolugo.cancellationpoliciesbadge.Doo8xToy.min.js +0 -76
- package/dist/revolugo.cancellationpolicieslist.CZEYlDTa.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.DXv5Z9hC.min.js +0 -316
- package/dist/revolugo.common.B8ukCAYr.min.js +0 -34
- package/dist/revolugo.creditcardform.7gTSzV5W.min.js +0 -2047
- package/dist/revolugo.creditcardform.SmEMmTLR.min.js +0 -28
- package/dist/revolugo.creditcardpayment.DQlxkhJS.min.js +0 -288
- package/dist/revolugo.creditcardpayment.DtXrvXH4.min.js +0 -28
- package/dist/revolugo.currencypicker.BCNyv5ii.min.js +0 -122
- package/dist/revolugo.currencypickerbtn.BF9FgIdV.min.js +0 -121
- package/dist/revolugo.currencypickerbtn.BWgg2zFw.min.js +0 -28
- package/dist/revolugo.dialog-attach.CLehyi_Z.min.js +0 -27
- package/dist/revolugo.en-us.BP-UxrRq.min.js +0 -1171
- package/dist/revolugo.event-bus.CYLYgD3Y.min.js +0 -37
- package/dist/revolugo.fastbookingflow.CBRdWsow.min.js +0 -37
- package/dist/revolugo.fr-fr.CF_knN5b.min.js +0 -1177
- package/dist/revolugo.fullbookingflow.BJd4ny2A.min.js +0 -239
- package/dist/revolugo.hotel-offer.DzBqMuPb.min.js +0 -608
- package/dist/revolugo.hoteldescriptionview.CGdmUTg0.min.js +0 -28
- package/dist/revolugo.hoteldescriptionview.lCnbS6b4.min.js +0 -2174
- package/dist/revolugo.hotelofferitemlayout.DXXrORSY.min.js +0 -64
- package/dist/revolugo.hotelofferlist.BxfZD-Hx.min.js +0 -28
- package/dist/revolugo.hotelofferlist.DKU3x1vK.min.js +0 -3779
- package/dist/revolugo.hotelofferrequestcreator.BKtwbR1c.min.js +0 -225
- package/dist/revolugo.hoteloffersearchmenu.YDC-swcZ.min.js +0 -54
- package/dist/revolugo.hoteloffersmap.ChURKCgn.min.js +0 -28
- package/dist/revolugo.hoteloffersmap.DJMCqwEM.min.js +0 -8737
- package/dist/revolugo.hoteloffersview.BWW1PvKj.min.js +0 -157
- package/dist/revolugo.hoteloffersview.DeV2kko1.min.js +0 -28
- package/dist/revolugo.hotelroomofferlist.CQxO5ol9.min.js +0 -28
- package/dist/revolugo.hotelroomofferlist.wOCXtTfR.min.js +0 -1336
- package/dist/revolugo.hotelroomofferrequestcreator.D-DxsDfm.min.js +0 -225
- package/dist/revolugo.hotelroomoffersbookingflow.CWjPCnhZ.min.js +0 -679
- package/dist/revolugo.hotelroomoffersearchmenu.Cwq9AvP9.min.js +0 -38
- package/dist/revolugo.hotelroomoffersearchmenu.D1Dm7gll.min.js +0 -29
- package/dist/revolugo.hotelroomoffersview.CurXk1Qa.min.js +0 -28
- package/dist/revolugo.hotelroomoffersview.DSLdqExT.min.js +0 -124
- package/dist/revolugo.i18n.CRsrl-Pc.min.js +0 -11271
- package/dist/revolugo.index.BDiaVuDm.min.js +0 -13
- package/dist/revolugo.index.BKI-x0X1.min.js +0 -15
- package/dist/revolugo.index.BaOVjjbA.min.js +0 -270
- package/dist/revolugo.index.Bd4gj7lY.min.js +0 -281
- package/dist/revolugo.index.CaW0A4-I.min.js +0 -128
- package/dist/revolugo.index.ChwgO4PY.min.js +0 -9
- package/dist/revolugo.index.CrUqCwlt.min.js +0 -43
- package/dist/revolugo.index.D9oFW8GL.min.js +0 -142
- package/dist/revolugo.index.DdfBQ-Rf.min.js +0 -68
- package/dist/revolugo.index.Dzk2SkvT.min.js +0 -322
- package/dist/revolugo.index.EYgmKzgP.min.js +0 -161
- package/dist/revolugo.index.XyUtDK9P.min.js +0 -9
- package/dist/revolugo.index.m6ONybqj.min.js +0 -390
- package/dist/revolugo.index.tMtdwus3.min.js +0 -42
- package/dist/revolugo.langpicker.l4d8BoJv.min.js +0 -103
- package/dist/revolugo.langpickerbtn.9pVysmgl.min.js +0 -111
- package/dist/revolugo.langpickerbtn.KLFzIU2U.min.js +0 -28
- package/dist/revolugo.localizedformat.kGeR9TO1.min.js +0 -47
- package/dist/revolugo.parsed-height.RjM3ROVm.min.js +0 -2492
- package/dist/revolugo.parsed-props.CeKdpJq1.min.js +0 -95
- package/dist/revolugo.prebookform.B9hptGJt.min.js +0 -483
- package/dist/revolugo.prebookform.C20WiiJU.min.js +0 -28
- package/dist/revolugo.revolugo-config.BBCvt4tY.min.js +0 -1707
- package/dist/revolugo.roominglisteditor.BQFRMTqN.min.js +0 -28
- package/dist/revolugo.roominglisteditor.DKudFq9U.min.js +0 -201
- package/dist/revolugo.sentry.xhJk8885.min.js +0 -12206
- package/dist/revolugo.store.Dg4TGX2q.min.js +0 -1718
- package/dist/revolugo.storybooktoolbar.6FB21Mqr.min.js +0 -300
- package/dist/revolugo.termsandconditions.AVL5ZYgL.min.js +0 -27
- package/dist/revolugo.termsandconditions.eAt9qptD.min.js +0 -162
- package/dist/revolugo.typed-mixins.CXpTuH4X.min.js +0 -8
- package/dist/revolugo.valert.C1kuupGe.min.js +0 -194
- package/dist/revolugo.vautocomplete.C4l-Ka2p.min.js +0 -255
- package/dist/revolugo.vbadge.BBQRY5xR.min.js +0 -172
- package/dist/revolugo.vbtn.DeuwYrz5.min.js +0 -286
- package/dist/revolugo.vcard.BKxRQQ01.min.js +0 -80
- package/dist/revolugo.vchip.CEc65kMd.min.js +0 -157
- package/dist/revolugo.vdialog.C9783vta.min.js +0 -341
- package/dist/revolugo.vexpansionpanelheader.Cr3QVtbD.min.js +0 -263
- package/dist/revolugo.vform.CsA6cOOm.min.js +0 -98
- package/dist/revolugo.vinput.B2IMBlIc.min.js +0 -509
- package/dist/revolugo.vitemgroup.D3TxEClV.min.js +0 -168
- package/dist/revolugo.vlistitem.KnCHREOd.min.js +0 -204
- package/dist/revolugo.vmenu.wrYJ1_Jd.min.js +0 -349
- package/dist/revolugo.vselect.C2jjNX-T.min.js +0 -859
- package/dist/revolugo.vsheet.DfK-4KUu.min.js +0 -120
- package/dist/revolugo.vskeletonloader.CNAsjf23.min.js +0 -172
- package/dist/revolugo.vslidegroup.k_V57iVz.min.js +0 -650
- package/dist/revolugo.vsnackbar.C0_FaHQ5.min.js +0 -178
- package/dist/revolugo.vtextfield.BI1xVkms.min.js +0 -438
- package/dist/revolugo.vtoolbar.CQGrg3aT.min.js +0 -364
- package/dist/revolugo.vtooltip.CiB9pLhM.min.js +0 -168
- package/dist/revolugo.vuetify.CTFxOcuS.min.js +0 -865
- package/dist/revolugo.watch-list.DwvyzUAT.min.js +0 -44
- package/dist/revolugo.webcomponentwrapper.DUSo7NhW.min.js +0 -777
@@ -1,859 +0,0 @@
|
|
1
|
-
import { _ as r } from "./revolugo.vtextfield.BI1xVkms.min.js";
|
2
|
-
import { _ as y } from "./revolugo.vchip.CEc65kMd.min.js";
|
3
|
-
import { _ as b } from "./revolugo.vmenu.wrYJ1_Jd.min.js";
|
4
|
-
import { r as p, C as S } from "./revolugo.vuetify.CTFxOcuS.min.js";
|
5
|
-
import { V as f } from "./revolugo.i18n.CRsrl-Pc.min.js";
|
6
|
-
import { _ } from "./revolugo.index.m6ONybqj.min.js";
|
7
|
-
import { C as u, T as g, c as m, m as v } from "./revolugo.webcomponentwrapper.DUSo7NhW.min.js";
|
8
|
-
import { C as T, s as h, p as k, t as I, k as l } from "./revolugo.revolugo-config.BBCvt4tY.min.js";
|
9
|
-
import { _ as D } from "./revolugo.parsed-props.CeKdpJq1.min.js";
|
10
|
-
import { a as V, V as A } from "./revolugo.index.XyUtDK9P.min.js";
|
11
|
-
import { a as d, _ as M } from "./revolugo.vlistitem.KnCHREOd.min.js";
|
12
|
-
import { V as E } from "./revolugo.vinput.B2IMBlIc.min.js";
|
13
|
-
import { C as w } from "./revolugo.index.BKI-x0X1.min.js";
|
14
|
-
import { D as L } from "./revolugo.index.Dzk2SkvT.min.js";
|
15
|
-
function C(e) {
|
16
|
-
try {
|
17
|
-
if (typeof document < "u") {
|
18
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
19
|
-
sheets: [],
|
20
|
-
components: []
|
21
|
-
};
|
22
|
-
const t = import.meta.url, s = t.slice(0, t.lastIndexOf("/") + 1) + e;
|
23
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(s);
|
24
|
-
for (const i of REVOLUGO_ELEMENTS_STYLES.components)
|
25
|
-
i(s);
|
26
|
-
if (e.indexOf("fonts") >= 0) {
|
27
|
-
const i = document.createElement("link");
|
28
|
-
i.rel = "stylesheet", linK.href = s, document.head.appendChild(i);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
} catch (t) {
|
32
|
-
console.error("[revolugo-elements] ", t);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
const O = f.extend({
|
36
|
-
name: "v-simple-checkbox",
|
37
|
-
functional: !0,
|
38
|
-
directives: {
|
39
|
-
Ripple: p
|
40
|
-
},
|
41
|
-
props: {
|
42
|
-
...u.options.props,
|
43
|
-
...g.options.props,
|
44
|
-
disabled: Boolean,
|
45
|
-
ripple: {
|
46
|
-
type: Boolean,
|
47
|
-
default: !0
|
48
|
-
},
|
49
|
-
value: Boolean,
|
50
|
-
indeterminate: Boolean,
|
51
|
-
indeterminateIcon: {
|
52
|
-
type: String,
|
53
|
-
default: "$checkboxIndeterminate"
|
54
|
-
},
|
55
|
-
onIcon: {
|
56
|
-
type: String,
|
57
|
-
default: "$checkboxOn"
|
58
|
-
},
|
59
|
-
offIcon: {
|
60
|
-
type: String,
|
61
|
-
default: "$checkboxOff"
|
62
|
-
}
|
63
|
-
},
|
64
|
-
render(e, {
|
65
|
-
props: t,
|
66
|
-
data: s,
|
67
|
-
listeners: i
|
68
|
-
}) {
|
69
|
-
const n = [];
|
70
|
-
let a = t.offIcon;
|
71
|
-
if (t.indeterminate ? a = t.indeterminateIcon : t.value && (a = t.onIcon), n.push(e(_, u.options.methods.setTextColor(t.value && t.color, {
|
72
|
-
props: {
|
73
|
-
disabled: t.disabled,
|
74
|
-
dark: t.dark,
|
75
|
-
light: t.light
|
76
|
-
}
|
77
|
-
}), a)), t.ripple && !t.disabled) {
|
78
|
-
const o = e("div", u.options.methods.setTextColor(t.color, {
|
79
|
-
staticClass: "v-input--selection-controls__ripple",
|
80
|
-
directives: [{
|
81
|
-
def: p,
|
82
|
-
name: "ripple",
|
83
|
-
value: {
|
84
|
-
center: !0
|
85
|
-
}
|
86
|
-
}]
|
87
|
-
}));
|
88
|
-
n.push(o);
|
89
|
-
}
|
90
|
-
return e("div", m(s, {
|
91
|
-
class: {
|
92
|
-
"v-simple-checkbox": !0,
|
93
|
-
"v-simple-checkbox--disabled": t.disabled
|
94
|
-
},
|
95
|
-
on: {
|
96
|
-
click: (o) => {
|
97
|
-
o.stopPropagation(), s.on && s.on.input && !t.disabled && T(s.on.input).forEach((c) => c(!t.value));
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}), [e("div", {
|
101
|
-
staticClass: "v-input--selection-controls__input"
|
102
|
-
}, n)]);
|
103
|
-
}
|
104
|
-
}), B = v(
|
105
|
-
g
|
106
|
-
/* @vue/component */
|
107
|
-
).extend({
|
108
|
-
name: "v-subheader",
|
109
|
-
props: {
|
110
|
-
inset: Boolean
|
111
|
-
},
|
112
|
-
render(e) {
|
113
|
-
return e("div", {
|
114
|
-
staticClass: "v-subheader",
|
115
|
-
class: {
|
116
|
-
"v-subheader--inset": this.inset,
|
117
|
-
...this.themeClasses
|
118
|
-
},
|
119
|
-
attrs: this.$attrs,
|
120
|
-
on: this.$listeners
|
121
|
-
}, this.$slots.default);
|
122
|
-
}
|
123
|
-
}), P = f.extend({
|
124
|
-
name: "v-list-item-action",
|
125
|
-
functional: !0,
|
126
|
-
render(e, {
|
127
|
-
data: t,
|
128
|
-
children: s = []
|
129
|
-
}) {
|
130
|
-
return t.staticClass = t.staticClass ? `v-list-item__action ${t.staticClass}` : "v-list-item__action", s.filter((n) => n.isComment === !1 && n.text !== " ").length > 1 && (t.staticClass += " v-list-item__action--stack"), e("div", t, s);
|
131
|
-
}
|
132
|
-
}), x = v(u, g).extend({
|
133
|
-
name: "v-select-list",
|
134
|
-
// https://github.com/vuejs/vue/issues/6872
|
135
|
-
directives: {
|
136
|
-
ripple: p
|
137
|
-
},
|
138
|
-
props: {
|
139
|
-
action: Boolean,
|
140
|
-
dense: Boolean,
|
141
|
-
hideSelected: Boolean,
|
142
|
-
items: {
|
143
|
-
type: Array,
|
144
|
-
default: () => []
|
145
|
-
},
|
146
|
-
itemDisabled: {
|
147
|
-
type: [String, Array, Function],
|
148
|
-
default: "disabled"
|
149
|
-
},
|
150
|
-
itemText: {
|
151
|
-
type: [String, Array, Function],
|
152
|
-
default: "text"
|
153
|
-
},
|
154
|
-
itemValue: {
|
155
|
-
type: [String, Array, Function],
|
156
|
-
default: "value"
|
157
|
-
},
|
158
|
-
noDataText: String,
|
159
|
-
noFilter: Boolean,
|
160
|
-
searchInput: null,
|
161
|
-
selectedItems: {
|
162
|
-
type: Array,
|
163
|
-
default: () => []
|
164
|
-
}
|
165
|
-
},
|
166
|
-
computed: {
|
167
|
-
parsedItems() {
|
168
|
-
return this.selectedItems.map((e) => this.getValue(e));
|
169
|
-
},
|
170
|
-
tileActiveClass() {
|
171
|
-
return Object.keys(this.setTextColor(this.color).class || {}).join(" ");
|
172
|
-
},
|
173
|
-
staticNoDataTile() {
|
174
|
-
const e = {
|
175
|
-
attrs: {
|
176
|
-
role: void 0
|
177
|
-
},
|
178
|
-
on: {
|
179
|
-
mousedown: (t) => t.preventDefault()
|
180
|
-
// Prevent onBlur from being called
|
181
|
-
}
|
182
|
-
};
|
183
|
-
return this.$createElement(d, e, [this.genTileContent(this.noDataText)]);
|
184
|
-
}
|
185
|
-
},
|
186
|
-
methods: {
|
187
|
-
genAction(e, t) {
|
188
|
-
return this.$createElement(P, [this.$createElement(O, {
|
189
|
-
props: {
|
190
|
-
color: this.color,
|
191
|
-
value: t,
|
192
|
-
ripple: !1
|
193
|
-
},
|
194
|
-
on: {
|
195
|
-
input: () => this.$emit("select", e)
|
196
|
-
}
|
197
|
-
})]);
|
198
|
-
},
|
199
|
-
genDivider(e) {
|
200
|
-
return this.$createElement(D, {
|
201
|
-
props: e
|
202
|
-
});
|
203
|
-
},
|
204
|
-
genFilteredText(e) {
|
205
|
-
if (e = e || "", !this.searchInput || this.noFilter)
|
206
|
-
return e;
|
207
|
-
const {
|
208
|
-
start: t,
|
209
|
-
middle: s,
|
210
|
-
end: i
|
211
|
-
} = this.getMaskedCharacters(e);
|
212
|
-
return [t, this.genHighlight(s), i];
|
213
|
-
},
|
214
|
-
genHeader(e) {
|
215
|
-
return this.$createElement(B, {
|
216
|
-
props: e
|
217
|
-
}, e.header);
|
218
|
-
},
|
219
|
-
genHighlight(e) {
|
220
|
-
return this.$createElement("span", {
|
221
|
-
staticClass: "v-list-item__mask"
|
222
|
-
}, e);
|
223
|
-
},
|
224
|
-
getMaskedCharacters(e) {
|
225
|
-
const t = (this.searchInput || "").toString().toLocaleLowerCase(), s = e.toLocaleLowerCase().indexOf(t);
|
226
|
-
if (s < 0)
|
227
|
-
return {
|
228
|
-
start: e,
|
229
|
-
middle: "",
|
230
|
-
end: ""
|
231
|
-
};
|
232
|
-
const i = e.slice(0, s), n = e.slice(s, s + t.length), a = e.slice(s + t.length);
|
233
|
-
return {
|
234
|
-
start: i,
|
235
|
-
middle: n,
|
236
|
-
end: a
|
237
|
-
};
|
238
|
-
},
|
239
|
-
genTile({
|
240
|
-
item: e,
|
241
|
-
index: t,
|
242
|
-
disabled: s = null,
|
243
|
-
value: i = !1
|
244
|
-
}) {
|
245
|
-
i || (i = this.hasItem(e)), e === Object(e) && (s = s !== null ? s : this.getDisabled(e));
|
246
|
-
const n = {
|
247
|
-
attrs: {
|
248
|
-
// Default behavior in list does not
|
249
|
-
// contain aria-selected by default
|
250
|
-
"aria-selected": String(i),
|
251
|
-
id: `list-item-${this._uid}-${t}`,
|
252
|
-
role: "option"
|
253
|
-
},
|
254
|
-
on: {
|
255
|
-
mousedown: (c) => {
|
256
|
-
c.preventDefault();
|
257
|
-
},
|
258
|
-
click: () => s || this.$emit("select", e)
|
259
|
-
},
|
260
|
-
props: {
|
261
|
-
activeClass: this.tileActiveClass,
|
262
|
-
disabled: s,
|
263
|
-
ripple: !0,
|
264
|
-
inputValue: i
|
265
|
-
}
|
266
|
-
};
|
267
|
-
if (!this.$scopedSlots.item)
|
268
|
-
return this.$createElement(d, n, [this.action && !this.hideSelected && this.items.length > 0 ? this.genAction(e, i) : null, this.genTileContent(e, t)]);
|
269
|
-
const a = this, o = this.$scopedSlots.item({
|
270
|
-
parent: a,
|
271
|
-
item: e,
|
272
|
-
attrs: {
|
273
|
-
...n.attrs,
|
274
|
-
...n.props
|
275
|
-
},
|
276
|
-
on: n.on
|
277
|
-
});
|
278
|
-
return this.needsTile(o) ? this.$createElement(d, n, o) : o;
|
279
|
-
},
|
280
|
-
genTileContent(e, t = 0) {
|
281
|
-
return this.$createElement(V, [this.$createElement(A, [this.genFilteredText(this.getText(e))])]);
|
282
|
-
},
|
283
|
-
hasItem(e) {
|
284
|
-
return this.parsedItems.indexOf(this.getValue(e)) > -1;
|
285
|
-
},
|
286
|
-
needsTile(e) {
|
287
|
-
return e.length !== 1 || e[0].componentOptions == null || e[0].componentOptions.Ctor.options.name !== "v-list-item";
|
288
|
-
},
|
289
|
-
getDisabled(e) {
|
290
|
-
return !!h(e, this.itemDisabled, !1);
|
291
|
-
},
|
292
|
-
getText(e) {
|
293
|
-
return String(h(e, this.itemText, e));
|
294
|
-
},
|
295
|
-
getValue(e) {
|
296
|
-
return h(e, this.itemValue, this.getText(e));
|
297
|
-
}
|
298
|
-
},
|
299
|
-
render() {
|
300
|
-
const e = [], t = this.items.length;
|
301
|
-
for (let s = 0; s < t; s++) {
|
302
|
-
const i = this.items[s];
|
303
|
-
this.hideSelected && this.hasItem(i) || (i == null ? e.push(this.genTile({
|
304
|
-
item: i,
|
305
|
-
index: s
|
306
|
-
})) : i.header ? e.push(this.genHeader(i)) : i.divider ? e.push(this.genDivider(i)) : e.push(this.genTile({
|
307
|
-
item: i,
|
308
|
-
index: s
|
309
|
-
})));
|
310
|
-
}
|
311
|
-
return e.length || e.push(this.$slots["no-data"] || this.staticNoDataTile), this.$slots["prepend-item"] && e.unshift(this.$slots["prepend-item"]), this.$slots["append-item"] && e.push(this.$slots["append-item"]), this.$createElement(M, {
|
312
|
-
staticClass: "v-select-list",
|
313
|
-
class: this.themeClasses,
|
314
|
-
attrs: {
|
315
|
-
role: "listbox",
|
316
|
-
tabindex: -1
|
317
|
-
},
|
318
|
-
props: {
|
319
|
-
dense: this.dense
|
320
|
-
}
|
321
|
-
}, e);
|
322
|
-
}
|
323
|
-
}), F = f.extend({
|
324
|
-
name: "filterable",
|
325
|
-
props: {
|
326
|
-
noDataText: {
|
327
|
-
type: String,
|
328
|
-
default: "$vuetify.noDataText"
|
329
|
-
}
|
330
|
-
}
|
331
|
-
}), $ = {
|
332
|
-
closeOnClick: !1,
|
333
|
-
closeOnContentClick: !1,
|
334
|
-
disableKeys: !0,
|
335
|
-
openOnClick: !1,
|
336
|
-
maxHeight: 304
|
337
|
-
}, H = v(r, w, L, F), ee = H.extend().extend({
|
338
|
-
name: "v-select",
|
339
|
-
directives: {
|
340
|
-
ClickOutside: S
|
341
|
-
},
|
342
|
-
props: {
|
343
|
-
appendIcon: {
|
344
|
-
type: String,
|
345
|
-
default: "$dropdown"
|
346
|
-
},
|
347
|
-
attach: {
|
348
|
-
type: null,
|
349
|
-
default: !1
|
350
|
-
},
|
351
|
-
cacheItems: Boolean,
|
352
|
-
chips: Boolean,
|
353
|
-
clearable: Boolean,
|
354
|
-
deletableChips: Boolean,
|
355
|
-
disableLookup: Boolean,
|
356
|
-
eager: Boolean,
|
357
|
-
hideSelected: Boolean,
|
358
|
-
items: {
|
359
|
-
type: Array,
|
360
|
-
default: () => []
|
361
|
-
},
|
362
|
-
itemColor: {
|
363
|
-
type: String,
|
364
|
-
default: "primary"
|
365
|
-
},
|
366
|
-
itemDisabled: {
|
367
|
-
type: [String, Array, Function],
|
368
|
-
default: "disabled"
|
369
|
-
},
|
370
|
-
itemText: {
|
371
|
-
type: [String, Array, Function],
|
372
|
-
default: "text"
|
373
|
-
},
|
374
|
-
itemValue: {
|
375
|
-
type: [String, Array, Function],
|
376
|
-
default: "value"
|
377
|
-
},
|
378
|
-
menuProps: {
|
379
|
-
type: [String, Array, Object],
|
380
|
-
default: () => $
|
381
|
-
},
|
382
|
-
multiple: Boolean,
|
383
|
-
openOnClear: Boolean,
|
384
|
-
returnObject: Boolean,
|
385
|
-
smallChips: Boolean
|
386
|
-
},
|
387
|
-
data() {
|
388
|
-
return {
|
389
|
-
cachedItems: this.cacheItems ? this.items : [],
|
390
|
-
menuIsBooted: !1,
|
391
|
-
isMenuActive: !1,
|
392
|
-
lastItem: 20,
|
393
|
-
// As long as a value is defined, show it
|
394
|
-
// Otherwise, check if multiple
|
395
|
-
// to determine which default to provide
|
396
|
-
lazyValue: this.value !== void 0 ? this.value : this.multiple ? [] : void 0,
|
397
|
-
selectedIndex: -1,
|
398
|
-
selectedItems: [],
|
399
|
-
keyboardLookupPrefix: "",
|
400
|
-
keyboardLookupLastTime: 0
|
401
|
-
};
|
402
|
-
},
|
403
|
-
computed: {
|
404
|
-
/* All items that the select has */
|
405
|
-
allItems() {
|
406
|
-
return this.filterDuplicates(this.cachedItems.concat(this.items));
|
407
|
-
},
|
408
|
-
classes() {
|
409
|
-
return {
|
410
|
-
...r.options.computed.classes.call(this),
|
411
|
-
"v-select": !0,
|
412
|
-
"v-select--chips": this.hasChips,
|
413
|
-
"v-select--chips--small": this.smallChips,
|
414
|
-
"v-select--is-menu-active": this.isMenuActive,
|
415
|
-
"v-select--is-multi": this.multiple
|
416
|
-
};
|
417
|
-
},
|
418
|
-
/* Used by other components to overwrite */
|
419
|
-
computedItems() {
|
420
|
-
return this.allItems;
|
421
|
-
},
|
422
|
-
computedOwns() {
|
423
|
-
return `list-${this._uid}`;
|
424
|
-
},
|
425
|
-
computedCounterValue() {
|
426
|
-
var e;
|
427
|
-
const t = this.multiple ? this.selectedItems : ((e = this.getText(this.selectedItems[0])) !== null && e !== void 0 ? e : "").toString();
|
428
|
-
return typeof this.counterValue == "function" ? this.counterValue(t) : t.length;
|
429
|
-
},
|
430
|
-
directives() {
|
431
|
-
return this.isFocused ? [{
|
432
|
-
name: "click-outside",
|
433
|
-
value: {
|
434
|
-
handler: this.blur,
|
435
|
-
closeConditional: this.closeConditional,
|
436
|
-
include: () => this.getOpenDependentElements()
|
437
|
-
}
|
438
|
-
}] : void 0;
|
439
|
-
},
|
440
|
-
dynamicHeight() {
|
441
|
-
return "auto";
|
442
|
-
},
|
443
|
-
hasChips() {
|
444
|
-
return this.chips || this.smallChips;
|
445
|
-
},
|
446
|
-
hasSlot() {
|
447
|
-
return !!(this.hasChips || this.$scopedSlots.selection);
|
448
|
-
},
|
449
|
-
isDirty() {
|
450
|
-
return this.selectedItems.length > 0;
|
451
|
-
},
|
452
|
-
listData() {
|
453
|
-
const e = this.$vnode && this.$vnode.context.$options._scopeId;
|
454
|
-
return {
|
455
|
-
attrs: {
|
456
|
-
...e ? {
|
457
|
-
[e]: !0
|
458
|
-
} : {},
|
459
|
-
id: this.computedOwns
|
460
|
-
},
|
461
|
-
props: {
|
462
|
-
action: this.multiple,
|
463
|
-
color: this.itemColor,
|
464
|
-
dense: this.dense,
|
465
|
-
hideSelected: this.hideSelected,
|
466
|
-
items: this.virtualizedItems,
|
467
|
-
itemDisabled: this.itemDisabled,
|
468
|
-
itemText: this.itemText,
|
469
|
-
itemValue: this.itemValue,
|
470
|
-
noDataText: this.$vuetify.lang.t(this.noDataText),
|
471
|
-
selectedItems: this.selectedItems
|
472
|
-
},
|
473
|
-
on: {
|
474
|
-
select: this.selectItem
|
475
|
-
},
|
476
|
-
scopedSlots: {
|
477
|
-
item: this.$scopedSlots.item
|
478
|
-
}
|
479
|
-
};
|
480
|
-
},
|
481
|
-
staticList() {
|
482
|
-
return (this.$slots["no-data"] || this.$slots["prepend-item"] || this.$slots["append-item"]) && k("assert: staticList should not be called if slots are used"), this.$createElement(x, this.listData);
|
483
|
-
},
|
484
|
-
virtualizedItems() {
|
485
|
-
return this.$_menuProps.auto ? this.computedItems : this.computedItems.slice(0, this.lastItem);
|
486
|
-
},
|
487
|
-
menuCanShow: () => !0,
|
488
|
-
$_menuProps() {
|
489
|
-
let e = typeof this.menuProps == "string" ? this.menuProps.split(",") : this.menuProps;
|
490
|
-
return Array.isArray(e) && (e = e.reduce((t, s) => (t[s.trim()] = !0, t), {})), {
|
491
|
-
...$,
|
492
|
-
eager: this.eager,
|
493
|
-
value: this.menuCanShow && this.isMenuActive,
|
494
|
-
nudgeBottom: e.offsetY ? 1 : 0,
|
495
|
-
...e
|
496
|
-
};
|
497
|
-
}
|
498
|
-
},
|
499
|
-
watch: {
|
500
|
-
internalValue(e) {
|
501
|
-
this.initialValue = e, this.setSelectedItems(), this.multiple && this.$nextTick(() => {
|
502
|
-
var t;
|
503
|
-
(t = this.$refs.menu) === null || t === void 0 || t.updateDimensions();
|
504
|
-
}), this.hideSelected && this.$nextTick(() => {
|
505
|
-
this.onScroll();
|
506
|
-
});
|
507
|
-
},
|
508
|
-
isMenuActive(e) {
|
509
|
-
window.setTimeout(() => this.onMenuActiveChange(e));
|
510
|
-
},
|
511
|
-
items: {
|
512
|
-
immediate: !0,
|
513
|
-
handler(e) {
|
514
|
-
this.cacheItems && this.$nextTick(() => {
|
515
|
-
this.cachedItems = this.filterDuplicates(this.cachedItems.concat(e));
|
516
|
-
}), this.setSelectedItems();
|
517
|
-
}
|
518
|
-
}
|
519
|
-
},
|
520
|
-
methods: {
|
521
|
-
/** @public */
|
522
|
-
blur(e) {
|
523
|
-
r.options.methods.blur.call(this, e), this.isMenuActive = !1, this.isFocused = !1, this.selectedIndex = -1, this.setMenuIndex(-1);
|
524
|
-
},
|
525
|
-
/** @public */
|
526
|
-
activateMenu() {
|
527
|
-
!this.isInteractive || this.isMenuActive || (this.isMenuActive = !0);
|
528
|
-
},
|
529
|
-
clearableCallback() {
|
530
|
-
this.setValue(this.multiple ? [] : null), this.setMenuIndex(-1), this.$nextTick(() => this.$refs.input && this.$refs.input.focus()), this.openOnClear && (this.isMenuActive = !0);
|
531
|
-
},
|
532
|
-
closeConditional(e) {
|
533
|
-
return this.isMenuActive ? !this._isDestroyed && // Click originates from outside the menu content
|
534
|
-
// Multiple selects don't close when an item is clicked
|
535
|
-
(!this.getContent() || !this.getContent().contains(e.target)) && // Click originates from outside the element
|
536
|
-
this.$el && !this.$el.contains(e.target) && e.target !== this.$el : !0;
|
537
|
-
},
|
538
|
-
filterDuplicates(e) {
|
539
|
-
const t = /* @__PURE__ */ new Map();
|
540
|
-
for (let s = 0; s < e.length; ++s) {
|
541
|
-
const i = e[s];
|
542
|
-
if (i == null)
|
543
|
-
continue;
|
544
|
-
if (i.header || i.divider) {
|
545
|
-
t.set(i, i);
|
546
|
-
continue;
|
547
|
-
}
|
548
|
-
const n = this.getValue(i);
|
549
|
-
!t.has(n) && t.set(n, i);
|
550
|
-
}
|
551
|
-
return Array.from(t.values());
|
552
|
-
},
|
553
|
-
findExistingIndex(e) {
|
554
|
-
const t = this.getValue(e);
|
555
|
-
return (this.internalValue || []).findIndex((s) => this.valueComparator(this.getValue(s), t));
|
556
|
-
},
|
557
|
-
getContent() {
|
558
|
-
return this.$refs.menu && this.$refs.menu.$refs.content;
|
559
|
-
},
|
560
|
-
genChipSelection(e, t) {
|
561
|
-
const s = this.isDisabled || this.getDisabled(e), i = !s && this.isInteractive;
|
562
|
-
return this.$createElement(y, {
|
563
|
-
staticClass: "v-chip--select",
|
564
|
-
attrs: {
|
565
|
-
tabindex: -1
|
566
|
-
},
|
567
|
-
props: {
|
568
|
-
close: this.deletableChips && i,
|
569
|
-
disabled: s,
|
570
|
-
inputValue: t === this.selectedIndex,
|
571
|
-
small: this.smallChips
|
572
|
-
},
|
573
|
-
on: {
|
574
|
-
click: (n) => {
|
575
|
-
i && (n.stopPropagation(), this.selectedIndex = t);
|
576
|
-
},
|
577
|
-
"click:close": () => this.onChipInput(e)
|
578
|
-
},
|
579
|
-
key: JSON.stringify(this.getValue(e))
|
580
|
-
}, this.getText(e));
|
581
|
-
},
|
582
|
-
genCommaSelection(e, t, s) {
|
583
|
-
const i = t === this.selectedIndex && this.computedColor, n = this.isDisabled || this.getDisabled(e);
|
584
|
-
return this.$createElement("div", this.setTextColor(i, {
|
585
|
-
staticClass: "v-select__selection v-select__selection--comma",
|
586
|
-
class: {
|
587
|
-
"v-select__selection--disabled": n
|
588
|
-
},
|
589
|
-
key: JSON.stringify(this.getValue(e))
|
590
|
-
}), `${this.getText(e)}${s ? "" : ", "}`);
|
591
|
-
},
|
592
|
-
genDefaultSlot() {
|
593
|
-
const e = this.genSelections(), t = this.genInput();
|
594
|
-
return Array.isArray(e) ? e.push(t) : (e.children = e.children || [], e.children.push(t)), [this.genFieldset(), this.$createElement("div", {
|
595
|
-
staticClass: "v-select__slot",
|
596
|
-
directives: this.directives
|
597
|
-
}, [this.genLabel(), this.prefix ? this.genAffix("prefix") : null, e, this.suffix ? this.genAffix("suffix") : null, this.genClearIcon(), this.genIconSlot(), this.genHiddenInput()]), this.genMenu(), this.genProgress()];
|
598
|
-
},
|
599
|
-
genIcon(e, t, s) {
|
600
|
-
const i = E.options.methods.genIcon.call(this, e, t, s);
|
601
|
-
return e === "append" && (i.children[0].data = m(i.children[0].data, {
|
602
|
-
attrs: {
|
603
|
-
tabindex: i.children[0].componentOptions.listeners && "-1",
|
604
|
-
"aria-hidden": "true",
|
605
|
-
"aria-label": void 0
|
606
|
-
}
|
607
|
-
})), i;
|
608
|
-
},
|
609
|
-
genInput() {
|
610
|
-
const e = r.options.methods.genInput.call(this);
|
611
|
-
return delete e.data.attrs.name, e.data = m(e.data, {
|
612
|
-
domProps: {
|
613
|
-
value: null
|
614
|
-
},
|
615
|
-
attrs: {
|
616
|
-
readonly: !0,
|
617
|
-
type: "text",
|
618
|
-
"aria-readonly": String(this.isReadonly),
|
619
|
-
"aria-activedescendant": I(this.$refs.menu, "activeTile.id"),
|
620
|
-
autocomplete: I(e.data, "attrs.autocomplete", "off"),
|
621
|
-
placeholder: !this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel) ? this.placeholder : void 0
|
622
|
-
},
|
623
|
-
on: {
|
624
|
-
keypress: this.onKeyPress
|
625
|
-
}
|
626
|
-
}), e;
|
627
|
-
},
|
628
|
-
genHiddenInput() {
|
629
|
-
return this.$createElement("input", {
|
630
|
-
domProps: {
|
631
|
-
value: this.lazyValue
|
632
|
-
},
|
633
|
-
attrs: {
|
634
|
-
type: "hidden",
|
635
|
-
name: this.attrs$.name
|
636
|
-
}
|
637
|
-
});
|
638
|
-
},
|
639
|
-
genInputSlot() {
|
640
|
-
const e = r.options.methods.genInputSlot.call(this);
|
641
|
-
return e.data.attrs = {
|
642
|
-
...e.data.attrs,
|
643
|
-
role: "button",
|
644
|
-
"aria-haspopup": "listbox",
|
645
|
-
"aria-expanded": String(this.isMenuActive),
|
646
|
-
"aria-owns": this.computedOwns
|
647
|
-
}, e;
|
648
|
-
},
|
649
|
-
genList() {
|
650
|
-
return this.$slots["no-data"] || this.$slots["prepend-item"] || this.$slots["append-item"] ? this.genListWithSlot() : this.staticList;
|
651
|
-
},
|
652
|
-
genListWithSlot() {
|
653
|
-
const e = ["prepend-item", "no-data", "append-item"].filter((t) => this.$slots[t]).map((t) => this.$createElement("template", {
|
654
|
-
slot: t
|
655
|
-
}, this.$slots[t]));
|
656
|
-
return this.$createElement(x, {
|
657
|
-
...this.listData
|
658
|
-
}, e);
|
659
|
-
},
|
660
|
-
genMenu() {
|
661
|
-
const e = this.$_menuProps;
|
662
|
-
return e.activator = this.$refs["input-slot"], "attach" in e || (// TODO: make this a computed property or helper or something
|
663
|
-
this.attach === "" || // If used as a boolean prop (<v-menu attach>)
|
664
|
-
this.attach === !0 || // If bound to a boolean (<v-menu :attach="true">)
|
665
|
-
this.attach === "attach" ? e.attach = this.$el : e.attach = this.attach), this.$createElement(b, {
|
666
|
-
attrs: {
|
667
|
-
role: void 0
|
668
|
-
},
|
669
|
-
props: e,
|
670
|
-
on: {
|
671
|
-
input: (t) => {
|
672
|
-
this.isMenuActive = t, this.isFocused = t;
|
673
|
-
},
|
674
|
-
scroll: this.onScroll
|
675
|
-
},
|
676
|
-
ref: "menu"
|
677
|
-
}, [this.genList()]);
|
678
|
-
},
|
679
|
-
genSelections() {
|
680
|
-
let e = this.selectedItems.length;
|
681
|
-
const t = new Array(e);
|
682
|
-
let s;
|
683
|
-
for (this.$scopedSlots.selection ? s = this.genSlotSelection : this.hasChips ? s = this.genChipSelection : s = this.genCommaSelection; e--; )
|
684
|
-
t[e] = s(this.selectedItems[e], e, e === t.length - 1);
|
685
|
-
return this.$createElement("div", {
|
686
|
-
staticClass: "v-select__selections"
|
687
|
-
}, t);
|
688
|
-
},
|
689
|
-
genSlotSelection(e, t) {
|
690
|
-
return this.$scopedSlots.selection({
|
691
|
-
attrs: {
|
692
|
-
class: "v-chip--select"
|
693
|
-
},
|
694
|
-
parent: this,
|
695
|
-
item: e,
|
696
|
-
index: t,
|
697
|
-
select: (s) => {
|
698
|
-
s.stopPropagation(), this.selectedIndex = t;
|
699
|
-
},
|
700
|
-
selected: t === this.selectedIndex,
|
701
|
-
disabled: !this.isInteractive
|
702
|
-
});
|
703
|
-
},
|
704
|
-
getMenuIndex() {
|
705
|
-
return this.$refs.menu ? this.$refs.menu.listIndex : -1;
|
706
|
-
},
|
707
|
-
getDisabled(e) {
|
708
|
-
return h(e, this.itemDisabled, !1);
|
709
|
-
},
|
710
|
-
getText(e) {
|
711
|
-
return h(e, this.itemText, e);
|
712
|
-
},
|
713
|
-
getValue(e) {
|
714
|
-
return h(e, this.itemValue, this.getText(e));
|
715
|
-
},
|
716
|
-
onBlur(e) {
|
717
|
-
e && this.$emit("blur", e);
|
718
|
-
},
|
719
|
-
onChipInput(e) {
|
720
|
-
this.multiple ? this.selectItem(e) : this.setValue(null), this.selectedItems.length === 0 ? this.isMenuActive = !0 : this.isMenuActive = !1, this.selectedIndex = -1;
|
721
|
-
},
|
722
|
-
onClick(e) {
|
723
|
-
this.isInteractive && (this.isAppendInner(e.target) || (this.isMenuActive = !0), this.isFocused || (this.isFocused = !0, this.$emit("focus")), this.$emit("click", e));
|
724
|
-
},
|
725
|
-
onEscDown(e) {
|
726
|
-
e.preventDefault(), this.isMenuActive && (e.stopPropagation(), this.isMenuActive = !1);
|
727
|
-
},
|
728
|
-
onKeyPress(e) {
|
729
|
-
if (this.multiple || !this.isInteractive || this.disableLookup || e.key.length > 1 || e.ctrlKey || e.metaKey || e.altKey)
|
730
|
-
return;
|
731
|
-
const t = 1e3, s = performance.now();
|
732
|
-
s - this.keyboardLookupLastTime > t && (this.keyboardLookupPrefix = ""), this.keyboardLookupPrefix += e.key.toLowerCase(), this.keyboardLookupLastTime = s;
|
733
|
-
const i = this.allItems.findIndex((a) => {
|
734
|
-
var o;
|
735
|
-
return ((o = this.getText(a)) !== null && o !== void 0 ? o : "").toString().toLowerCase().startsWith(this.keyboardLookupPrefix);
|
736
|
-
}), n = this.allItems[i];
|
737
|
-
i !== -1 && (this.lastItem = Math.max(this.lastItem, i + 5), this.setValue(this.returnObject ? n : this.getValue(n)), this.$nextTick(() => this.$refs.menu.getTiles()), setTimeout(() => this.setMenuIndex(i)));
|
738
|
-
},
|
739
|
-
onKeyDown(e) {
|
740
|
-
if (this.isReadonly && e.keyCode !== l.tab)
|
741
|
-
return;
|
742
|
-
const t = e.keyCode, s = this.$refs.menu;
|
743
|
-
if (this.$emit("keydown", e), !!s) {
|
744
|
-
if (this.isMenuActive && [l.up, l.down, l.home, l.end, l.enter].includes(t) && this.$nextTick(() => {
|
745
|
-
s.changeListIndex(e), this.$emit("update:list-index", s.listIndex);
|
746
|
-
}), [l.enter, l.space].includes(t) && this.activateMenu(), !this.isMenuActive && [l.up, l.down, l.home, l.end].includes(t))
|
747
|
-
return this.onUpDown(e);
|
748
|
-
if (t === l.esc)
|
749
|
-
return this.onEscDown(e);
|
750
|
-
if (t === l.tab)
|
751
|
-
return this.onTabDown(e);
|
752
|
-
if (t === l.space)
|
753
|
-
return this.onSpaceDown(e);
|
754
|
-
}
|
755
|
-
},
|
756
|
-
onMenuActiveChange(e) {
|
757
|
-
if (this.multiple && !e || this.getMenuIndex() > -1)
|
758
|
-
return;
|
759
|
-
const t = this.$refs.menu;
|
760
|
-
if (!(!t || !this.isDirty)) {
|
761
|
-
this.$refs.menu.getTiles();
|
762
|
-
for (let s = 0; s < t.tiles.length; s++)
|
763
|
-
if (t.tiles[s].getAttribute("aria-selected") === "true") {
|
764
|
-
this.setMenuIndex(s);
|
765
|
-
break;
|
766
|
-
}
|
767
|
-
}
|
768
|
-
},
|
769
|
-
onMouseUp(e) {
|
770
|
-
this.hasMouseDown && e.which !== 3 && this.isInteractive && this.isAppendInner(e.target) && this.$nextTick(() => this.isMenuActive = !this.isMenuActive), r.options.methods.onMouseUp.call(this, e);
|
771
|
-
},
|
772
|
-
onScroll() {
|
773
|
-
if (!this.isMenuActive)
|
774
|
-
requestAnimationFrame(() => {
|
775
|
-
const e = this.getContent();
|
776
|
-
e && (e.scrollTop = 0);
|
777
|
-
});
|
778
|
-
else {
|
779
|
-
if (this.lastItem > this.computedItems.length)
|
780
|
-
return;
|
781
|
-
this.getContent().scrollHeight - (this.getContent().scrollTop + this.getContent().clientHeight) < 200 && (this.lastItem += 20);
|
782
|
-
}
|
783
|
-
},
|
784
|
-
onSpaceDown(e) {
|
785
|
-
e.preventDefault();
|
786
|
-
},
|
787
|
-
onTabDown(e) {
|
788
|
-
const t = this.$refs.menu;
|
789
|
-
if (!t)
|
790
|
-
return;
|
791
|
-
const s = t.activeTile;
|
792
|
-
!this.multiple && s && this.isMenuActive ? (e.preventDefault(), e.stopPropagation(), s.click()) : this.blur(e);
|
793
|
-
},
|
794
|
-
onUpDown(e) {
|
795
|
-
const t = this.$refs.menu;
|
796
|
-
if (!t)
|
797
|
-
return;
|
798
|
-
if (e.preventDefault(), this.multiple)
|
799
|
-
return this.activateMenu();
|
800
|
-
const s = e.keyCode;
|
801
|
-
t.isBooted = !0, window.requestAnimationFrame(() => {
|
802
|
-
if (t.getTiles(), !t.hasClickableTiles)
|
803
|
-
return this.activateMenu();
|
804
|
-
switch (s) {
|
805
|
-
case l.up:
|
806
|
-
t.prevTile();
|
807
|
-
break;
|
808
|
-
case l.down:
|
809
|
-
t.nextTile();
|
810
|
-
break;
|
811
|
-
case l.home:
|
812
|
-
t.firstTile();
|
813
|
-
break;
|
814
|
-
case l.end:
|
815
|
-
t.lastTile();
|
816
|
-
break;
|
817
|
-
}
|
818
|
-
this.selectItem(this.allItems[this.getMenuIndex()]);
|
819
|
-
});
|
820
|
-
},
|
821
|
-
selectItem(e) {
|
822
|
-
if (!this.multiple)
|
823
|
-
this.setValue(this.returnObject ? e : this.getValue(e)), this.isMenuActive = !1;
|
824
|
-
else {
|
825
|
-
const t = (this.internalValue || []).slice(), s = this.findExistingIndex(e);
|
826
|
-
if (s !== -1 ? t.splice(s, 1) : t.push(e), this.setValue(t.map((i) => this.returnObject ? i : this.getValue(i))), this.hideSelected)
|
827
|
-
this.setMenuIndex(-1);
|
828
|
-
else {
|
829
|
-
const i = this.allItems.indexOf(e);
|
830
|
-
~i && (this.$nextTick(() => this.$refs.menu.getTiles()), setTimeout(() => this.setMenuIndex(i)));
|
831
|
-
}
|
832
|
-
}
|
833
|
-
},
|
834
|
-
setMenuIndex(e) {
|
835
|
-
this.$refs.menu && (this.$refs.menu.listIndex = e);
|
836
|
-
},
|
837
|
-
setSelectedItems() {
|
838
|
-
const e = [], t = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
|
839
|
-
for (const s of t) {
|
840
|
-
const i = this.allItems.findIndex((n) => this.valueComparator(this.getValue(n), this.getValue(s)));
|
841
|
-
i > -1 && e.push(this.allItems[i]);
|
842
|
-
}
|
843
|
-
this.selectedItems = e;
|
844
|
-
},
|
845
|
-
setValue(e) {
|
846
|
-
this.valueComparator(e, this.internalValue) || (this.internalValue = e, this.$emit("change", e));
|
847
|
-
},
|
848
|
-
isAppendInner(e) {
|
849
|
-
const t = this.$refs["append-inner"];
|
850
|
-
return t && (t === e || t.contains(e));
|
851
|
-
}
|
852
|
-
}
|
853
|
-
});
|
854
|
-
C("css/revolugo.vselect.DljSkk6y.css");
|
855
|
-
export {
|
856
|
-
ee as _,
|
857
|
-
$ as d
|
858
|
-
};
|
859
|
-
//# sourceMappingURL=revolugo.vselect.C2jjNX-T.min.js.map
|