@revolugo/elements 5.5.1-beta.19 → 5.5.1-beta.2
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.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 -1
- 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 +19 -0
- package/dist/revolugo.15.min.js +139 -0
- package/dist/revolugo.16.min.js +14 -0
- package/dist/revolugo.17.min.js +14 -0
- package/dist/revolugo.18.min.js +1 -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 +116 -0
- package/dist/revolugo.22.min.js +1 -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 +116 -0
- package/dist/revolugo.29.min.js +1 -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.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 -257
- package/package.json +5 -5
- 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.Di9LJKMP.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.-ZhDcfsj.css +0 -1
- package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.DrGyKJ-m.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.DXv5c7NS.css +0 -1
- package/dist/css/revolugo.langpicker.B3TsOwUq.css +0 -1
- package/dist/css/revolugo.parsed-height.B92--uJb.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/revolugo.banktransferdetails.C55CaZGd.min.js +0 -105
- package/dist/revolugo.bbreakfastoptionbadge.CPzlydVG.min.js +0 -62
- package/dist/revolugo.bdaterangepicker.CXA2GXFz.min.js +0 -1351
- package/dist/revolugo.bformattedamount.DhVut6DK.min.js +0 -82
- package/dist/revolugo.bhotelroomsdetails.DSVVf-up.min.js +0 -213
- package/dist/revolugo.bhotelsearchbar.DhebdaQo.min.js +0 -446
- package/dist/revolugo.booking-api-client.Drh0cRTW.min.js +0 -7443
- package/dist/revolugo.bookingdetailssidebar.B1ZoXar0.min.js +0 -28
- package/dist/revolugo.bookingdetailssidebar.BnTJ96GE.min.js +0 -242
- package/dist/revolugo.bookingmanager.DYOyVHT2.min.js +0 -405
- package/dist/revolugo.bphoneinput.BZQIBmYO.min.js +0 -1935
- package/dist/revolugo.bpricesummaryskeleton.Dz7YvdGU.min.js +0 -47
- package/dist/revolugo.breakpoint-service.ulonvHwK.min.js +0 -65
- package/dist/revolugo.bstarrating.BZPKWVuk.min.js +0 -173
- package/dist/revolugo.btag.DyLjgDWq.min.js +0 -68
- package/dist/revolugo.cancellationpoliciesbadge.CIIL360X.min.js +0 -28
- package/dist/revolugo.cancellationpoliciesbadge.DRFgoqVN.min.js +0 -92
- package/dist/revolugo.cancellationpolicieslist.B0b8XPoU.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.cnRF1goy.min.js +0 -317
- package/dist/revolugo.common.BavAKcPL.min.js +0 -34
- package/dist/revolugo.creditcardform.BY725aQ3.min.js +0 -28
- package/dist/revolugo.creditcardform.C24U8fTh.min.js +0 -2049
- package/dist/revolugo.creditcardpayment.6TDQ9DR4.min.js +0 -28
- package/dist/revolugo.creditcardpayment.clAMf1Nb.min.js +0 -288
- package/dist/revolugo.currencypicker.BK66ASkQ.min.js +0 -122
- package/dist/revolugo.currencypickerbtn.C9EGOp6Y.min.js +0 -121
- package/dist/revolugo.currencypickerbtn.DPv6HcHf.min.js +0 -28
- package/dist/revolugo.dialog-attach.BQO5FkC9.min.js +0 -27
- package/dist/revolugo.en-us.BwPQZpD-.min.js +0 -1171
- package/dist/revolugo.event-bus.CYLYgD3Y.min.js +0 -37
- package/dist/revolugo.fr-fr.CV4yETNm.min.js +0 -1177
- package/dist/revolugo.fullbookingflow.DDMFviNy.min.js +0 -239
- package/dist/revolugo.hotel-offer.DxAoWIpr.min.js +0 -605
- package/dist/revolugo.hoteldescriptionview.BDmYu0i8.min.js +0 -2174
- package/dist/revolugo.hoteldescriptionview._H5Q2mcT.min.js +0 -28
- package/dist/revolugo.hotelofferitemlayout.DsiXk-vv.min.js +0 -64
- package/dist/revolugo.hotelofferlist.CeapYJDW.min.js +0 -28
- package/dist/revolugo.hotelofferlist.DZ2dsJ-e.min.js +0 -3779
- package/dist/revolugo.hotelofferrequestcreator.B9mGU5bB.min.js +0 -225
- package/dist/revolugo.hoteloffersearchmenu.HBcyZs4Q.min.js +0 -54
- package/dist/revolugo.hoteloffersmap.BrazX0Ns.min.js +0 -28
- package/dist/revolugo.hoteloffersmap.C5g2oYhf.min.js +0 -8737
- package/dist/revolugo.hoteloffersview.CsPNh4Kt.min.js +0 -28
- package/dist/revolugo.hoteloffersview.DcnEyUUU.min.js +0 -157
- package/dist/revolugo.hotelroomofferlist.B-g6Q8_4.min.js +0 -1332
- package/dist/revolugo.hotelroomofferlist.RuwB9IxG.min.js +0 -28
- package/dist/revolugo.hotelroomofferrequestcreator.Cqzw_aE0.min.js +0 -225
- package/dist/revolugo.hotelroomoffersbookingflow.COZqoepd.min.js +0 -679
- package/dist/revolugo.hotelroomoffersearchmenu.ByLxAySM.min.js +0 -38
- package/dist/revolugo.hotelroomoffersearchmenu.CdQUDvcb.min.js +0 -29
- package/dist/revolugo.hotelroomoffersview.ClVhWfgw.min.js +0 -124
- package/dist/revolugo.hotelroomoffersview.eCMrmTCo.min.js +0 -28
- package/dist/revolugo.i18n.BIDah4Hr.min.js +0 -10901
- package/dist/revolugo.index.7JjiClzl.min.js +0 -68
- package/dist/revolugo.index.BOFNqiKi.min.js +0 -128
- package/dist/revolugo.index.BUgl82zB.min.js +0 -270
- package/dist/revolugo.index.BafzMKRk.min.js +0 -13
- package/dist/revolugo.index.CVaQfmC0.min.js +0 -15
- package/dist/revolugo.index.CZ_vXpge.min.js +0 -161
- package/dist/revolugo.index.CfwKNM8Q.min.js +0 -9
- package/dist/revolugo.index.CnslRErc.min.js +0 -390
- package/dist/revolugo.index.DSRnAuVy.min.js +0 -322
- package/dist/revolugo.index.Dudg2j1-.min.js +0 -9
- package/dist/revolugo.index.Dx0TIvP-.min.js +0 -281
- package/dist/revolugo.index.DxqmvtLl.min.js +0 -142
- package/dist/revolugo.index.mq4mKuqN.min.js +0 -43
- package/dist/revolugo.index.uFyOvtCp.min.js +0 -42
- package/dist/revolugo.langpicker.CaTVC1cX.min.js +0 -103
- package/dist/revolugo.langpickerbtn.-w2EwXVX.min.js +0 -111
- package/dist/revolugo.langpickerbtn.j5kMlExk.min.js +0 -28
- package/dist/revolugo.localizedformat.C4ez1VLt.min.js +0 -47
- package/dist/revolugo.parsed-height.DNFIHNkb.min.js +0 -2338
- package/dist/revolugo.parsed-props.BaP5i3Zj.min.js +0 -95
- package/dist/revolugo.prebookform.BdoASrCo.min.js +0 -484
- package/dist/revolugo.prebookform.Cu_KCmAN.min.js +0 -28
- package/dist/revolugo.revolugo-config.B9n_CElG.min.js +0 -1707
- package/dist/revolugo.roominglisteditor.D554peLD.min.js +0 -28
- package/dist/revolugo.roominglisteditor.Dk6qQeAv.min.js +0 -201
- package/dist/revolugo.sentry.CuQ4Sj_P.min.js +0 -10989
- package/dist/revolugo.store.TBV-eqIE.min.js +0 -2497
- package/dist/revolugo.storybooktoolbar.B2yhjWX3.min.js +0 -300
- package/dist/revolugo.termsandconditions.D1WdEUB9.min.js +0 -27
- package/dist/revolugo.termsandconditions.Fz3tL15I.min.js +0 -162
- package/dist/revolugo.typed-mixins.CArk-fZ7.min.js +0 -8
- package/dist/revolugo.valert.Q0I4gNbO.min.js +0 -194
- package/dist/revolugo.vautocomplete.DTOsEc25.min.js +0 -255
- package/dist/revolugo.vbadge.CLJk9qhA.min.js +0 -172
- package/dist/revolugo.vbtn.DrwUvQHj.min.js +0 -286
- package/dist/revolugo.vcard.Bs6nQzOl.min.js +0 -80
- package/dist/revolugo.vchip.CuCeqWzD.min.js +0 -157
- package/dist/revolugo.vdialog.BbC4lqGQ.min.js +0 -341
- package/dist/revolugo.vexpansionpanelheader.B--qAjL8.min.js +0 -263
- package/dist/revolugo.vform.DzJhfMwE.min.js +0 -98
- package/dist/revolugo.vinput.DFfd_YGp.min.js +0 -509
- package/dist/revolugo.vitemgroup.CkDfn6V_.min.js +0 -168
- package/dist/revolugo.vlistitem.XfvAUlzQ.min.js +0 -204
- package/dist/revolugo.vmenu.C1w0iDUT.min.js +0 -349
- package/dist/revolugo.vselect.DsqU5p84.min.js +0 -859
- package/dist/revolugo.vsheet.Cqbr0KfV.min.js +0 -120
- package/dist/revolugo.vskeletonloader.gg-3RSEt.min.js +0 -172
- package/dist/revolugo.vslidegroup.C4i3UEKI.min.js +0 -650
- package/dist/revolugo.vsnackbar.BNgumj3w.min.js +0 -178
- package/dist/revolugo.vtextfield.C9nZE6f1.min.js +0 -438
- package/dist/revolugo.vtoolbar.CLDVT4Bb.min.js +0 -364
- package/dist/revolugo.vtooltip.CQJMuU2t.min.js +0 -168
- package/dist/revolugo.vuetify.BEdap6Ni.min.js +0 -865
- package/dist/revolugo.watch-list.Bb06Iz6D.min.js +0 -44
- package/dist/revolugo.webcomponentwrapper.CwAC855u.min.js +0 -777
@@ -1,341 +0,0 @@
|
|
1
|
-
import { V as u, R as v } from "./revolugo.index.uFyOvtCp.min.js";
|
2
|
-
import { A as f, S as m, b as y, D as p } from "./revolugo.index.DSRnAuVy.min.js";
|
3
|
-
import { d as g, m as w } from "./revolugo.webcomponentwrapper.CwAC855u.min.js";
|
4
|
-
import { w as E, y as b, k as o, z as S, A as O, m as C, h as a } from "./revolugo.revolugo-config.B9n_CElG.min.js";
|
5
|
-
import { V as k } from "./revolugo.i18n.BIDah4Hr.min.js";
|
6
|
-
import { C as x } from "./revolugo.vuetify.BEdap6Ni.min.js";
|
7
|
-
function h(e) {
|
8
|
-
try {
|
9
|
-
if (typeof document < "u") {
|
10
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
11
|
-
sheets: [],
|
12
|
-
components: []
|
13
|
-
};
|
14
|
-
const t = import.meta.url, i = t.slice(0, t.lastIndexOf("/") + 1) + e;
|
15
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(i);
|
16
|
-
for (const s of REVOLUGO_ELEMENTS_STYLES.components)
|
17
|
-
s(i);
|
18
|
-
if (e.indexOf("fonts") >= 0) {
|
19
|
-
const s = document.createElement("link");
|
20
|
-
s.rel = "stylesheet", linK.href = i, document.head.appendChild(s);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
} catch (t) {
|
24
|
-
console.error("[revolugo-elements] ", t);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
const l = k.extend().extend({
|
28
|
-
name: "overlayable",
|
29
|
-
props: {
|
30
|
-
hideOverlay: Boolean,
|
31
|
-
overlayColor: String,
|
32
|
-
overlayOpacity: [Number, String]
|
33
|
-
},
|
34
|
-
data() {
|
35
|
-
return {
|
36
|
-
animationFrame: 0,
|
37
|
-
overlay: null
|
38
|
-
};
|
39
|
-
},
|
40
|
-
watch: {
|
41
|
-
hideOverlay(e) {
|
42
|
-
this.isActive && (e ? this.removeOverlay() : this.genOverlay());
|
43
|
-
}
|
44
|
-
},
|
45
|
-
beforeDestroy() {
|
46
|
-
this.removeOverlay();
|
47
|
-
},
|
48
|
-
methods: {
|
49
|
-
createOverlay() {
|
50
|
-
const e = new g({
|
51
|
-
propsData: {
|
52
|
-
absolute: this.absolute,
|
53
|
-
value: !1,
|
54
|
-
color: this.overlayColor,
|
55
|
-
opacity: this.overlayOpacity
|
56
|
-
}
|
57
|
-
});
|
58
|
-
e.$mount();
|
59
|
-
const t = this.absolute ? this.$el.parentNode : this.attach || document.body.firstChild;
|
60
|
-
t && t.insertBefore(e.$el, t.firstChild), this.overlay = e;
|
61
|
-
},
|
62
|
-
genOverlay() {
|
63
|
-
if (this.hideScroll(), !this.hideOverlay)
|
64
|
-
return this.overlay || this.createOverlay(), this.animationFrame = requestAnimationFrame(() => {
|
65
|
-
this.overlay && (this.activeZIndex !== void 0 ? this.overlay.zIndex = String(this.activeZIndex - 1) : this.$el && (this.overlay.zIndex = E(this.$el)), this.overlay.value = !0);
|
66
|
-
}), !0;
|
67
|
-
},
|
68
|
-
/** removeOverlay(false) will not restore the scollbar afterwards */
|
69
|
-
removeOverlay(e = !0) {
|
70
|
-
this.overlay && (b(this.overlay.$el, "transitionend", () => {
|
71
|
-
!this.overlay || !this.overlay.$el || !this.overlay.$el.parentNode || this.overlay.value || this.isActive || (this.overlay.$el.parentNode.removeChild(this.overlay.$el), this.overlay.$destroy(), this.overlay = null);
|
72
|
-
}), cancelAnimationFrame(this.animationFrame), this.overlay.value = !1), e && this.showScroll();
|
73
|
-
},
|
74
|
-
scrollListener(e) {
|
75
|
-
if ("key" in e) {
|
76
|
-
if (["INPUT", "TEXTAREA", "SELECT"].includes(e.target.tagName) || // https://github.com/vuetifyjs/vuetify/issues/4715
|
77
|
-
e.target.isContentEditable)
|
78
|
-
return;
|
79
|
-
const t = [o.up, o.pageup], i = [o.down, o.pagedown];
|
80
|
-
if (t.includes(e.keyCode))
|
81
|
-
e.deltaY = -1;
|
82
|
-
else if (i.includes(e.keyCode))
|
83
|
-
e.deltaY = 1;
|
84
|
-
else
|
85
|
-
return;
|
86
|
-
}
|
87
|
-
(e.target === this.overlay || e.type !== "keydown" && e.target === document.body || this.checkPath(e)) && e.preventDefault();
|
88
|
-
},
|
89
|
-
hasScrollbar(e) {
|
90
|
-
if (!e || e.nodeType !== Node.ELEMENT_NODE)
|
91
|
-
return !1;
|
92
|
-
const t = window.getComputedStyle(e);
|
93
|
-
return (["auto", "scroll"].includes(t.overflowY) || e.tagName === "SELECT") && e.scrollHeight > e.clientHeight || ["auto", "scroll"].includes(t.overflowX) && e.scrollWidth > e.clientWidth;
|
94
|
-
},
|
95
|
-
shouldScroll(e, t) {
|
96
|
-
if (typeof e.hasAttribute == "function" && e.hasAttribute("data-app"))
|
97
|
-
return !1;
|
98
|
-
const i = t.shiftKey || t.deltaX ? "x" : "y", s = i === "y" ? t.deltaY : t.deltaX || t.deltaY;
|
99
|
-
let n, r;
|
100
|
-
i === "y" ? (n = e.scrollTop === 0, r = e.scrollTop + e.clientHeight === e.scrollHeight) : (n = e.scrollLeft === 0, r = e.scrollLeft + e.clientWidth === e.scrollWidth);
|
101
|
-
const d = s < 0, c = s > 0;
|
102
|
-
return !n && d || !r && c ? !0 : (n || r) && e.parentNode ? this.shouldScroll(e.parentNode, t) : !1;
|
103
|
-
},
|
104
|
-
isInside(e, t) {
|
105
|
-
return e === t ? !0 : e === null || e === document.body ? !1 : this.isInside(e.parentNode, t);
|
106
|
-
},
|
107
|
-
checkPath(e) {
|
108
|
-
const t = S(e);
|
109
|
-
if (e.type === "keydown" && t[0] === document.body) {
|
110
|
-
const i = this.$refs.dialog, s = window.getSelection().anchorNode;
|
111
|
-
return i && this.hasScrollbar(i) && this.isInside(s, i) ? !this.shouldScroll(i, e) : !0;
|
112
|
-
}
|
113
|
-
for (let i = 0; i < t.length; i++) {
|
114
|
-
const s = t[i];
|
115
|
-
if (s === document || s === document.documentElement || s === this.$refs.content)
|
116
|
-
return !0;
|
117
|
-
if (this.hasScrollbar(s))
|
118
|
-
return !this.shouldScroll(s, e);
|
119
|
-
}
|
120
|
-
return !0;
|
121
|
-
},
|
122
|
-
hideScroll() {
|
123
|
-
document.documentElement.style["overflow-y"] = "hidden", this.$vuetify.breakpoint.smAndDown ? document.documentElement.classList.add("overflow-y-hidden") : (O(window, "wheel", this.scrollListener, {
|
124
|
-
passive: !1
|
125
|
-
}), window.addEventListener("keydown", this.scrollListener));
|
126
|
-
},
|
127
|
-
showScroll() {
|
128
|
-
document.documentElement.style["overflow-y"] = "", document.documentElement.classList.remove("overflow-y-hidden"), window.removeEventListener("wheel", this.scrollListener), window.removeEventListener("keydown", this.scrollListener);
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}), A = w(p, y, l, v, m, f), B = A.extend({
|
132
|
-
name: "v-dialog",
|
133
|
-
directives: {
|
134
|
-
ClickOutside: x
|
135
|
-
},
|
136
|
-
props: {
|
137
|
-
dark: Boolean,
|
138
|
-
disabled: Boolean,
|
139
|
-
fullscreen: Boolean,
|
140
|
-
light: Boolean,
|
141
|
-
maxWidth: [String, Number],
|
142
|
-
noClickAnimation: Boolean,
|
143
|
-
origin: {
|
144
|
-
type: String,
|
145
|
-
default: "center center"
|
146
|
-
},
|
147
|
-
persistent: Boolean,
|
148
|
-
retainFocus: {
|
149
|
-
type: Boolean,
|
150
|
-
default: !0
|
151
|
-
},
|
152
|
-
scrollable: Boolean,
|
153
|
-
transition: {
|
154
|
-
type: [String, Boolean],
|
155
|
-
default: "dialog-transition"
|
156
|
-
},
|
157
|
-
width: [String, Number]
|
158
|
-
},
|
159
|
-
data() {
|
160
|
-
return {
|
161
|
-
activatedBy: null,
|
162
|
-
animate: !1,
|
163
|
-
animateTimeout: -1,
|
164
|
-
stackMinZIndex: 200,
|
165
|
-
previousActiveElement: null
|
166
|
-
};
|
167
|
-
},
|
168
|
-
computed: {
|
169
|
-
classes() {
|
170
|
-
return {
|
171
|
-
[`v-dialog ${this.contentClass}`.trim()]: !0,
|
172
|
-
"v-dialog--active": this.isActive,
|
173
|
-
"v-dialog--persistent": this.persistent,
|
174
|
-
"v-dialog--fullscreen": this.fullscreen,
|
175
|
-
"v-dialog--scrollable": this.scrollable,
|
176
|
-
"v-dialog--animated": this.animate
|
177
|
-
};
|
178
|
-
},
|
179
|
-
contentClasses() {
|
180
|
-
return {
|
181
|
-
"v-dialog__content": !0,
|
182
|
-
"v-dialog__content--active": this.isActive
|
183
|
-
};
|
184
|
-
},
|
185
|
-
hasActivator() {
|
186
|
-
return !!(this.$slots.activator || this.$scopedSlots.activator);
|
187
|
-
}
|
188
|
-
},
|
189
|
-
watch: {
|
190
|
-
isActive(e) {
|
191
|
-
var t;
|
192
|
-
e ? (this.show(), this.hideScroll()) : (this.removeOverlay(), this.unbind(), (t = this.previousActiveElement) === null || t === void 0 || t.focus());
|
193
|
-
},
|
194
|
-
fullscreen(e) {
|
195
|
-
this.isActive && (e ? (this.hideScroll(), this.removeOverlay(!1)) : (this.showScroll(), this.genOverlay()));
|
196
|
-
}
|
197
|
-
},
|
198
|
-
created() {
|
199
|
-
this.$attrs.hasOwnProperty("full-width") && C("full-width", this);
|
200
|
-
},
|
201
|
-
beforeMount() {
|
202
|
-
this.$nextTick(() => {
|
203
|
-
this.isBooted = this.isActive, this.isActive && this.show();
|
204
|
-
});
|
205
|
-
},
|
206
|
-
beforeDestroy() {
|
207
|
-
typeof window < "u" && this.unbind();
|
208
|
-
},
|
209
|
-
methods: {
|
210
|
-
animateClick() {
|
211
|
-
this.animate = !1, this.$nextTick(() => {
|
212
|
-
this.animate = !0, window.clearTimeout(this.animateTimeout), this.animateTimeout = window.setTimeout(() => this.animate = !1, 150);
|
213
|
-
});
|
214
|
-
},
|
215
|
-
closeConditional(e) {
|
216
|
-
const t = e.target;
|
217
|
-
return !(this._isDestroyed || !this.isActive || this.$refs.content.contains(t) || this.overlay && t && !this.overlay.$el.contains(t)) && this.activeZIndex >= this.getMaxZIndex();
|
218
|
-
},
|
219
|
-
hideScroll() {
|
220
|
-
this.fullscreen ? document.documentElement.classList.add("overflow-y-hidden") : l.options.methods.hideScroll.call(this);
|
221
|
-
},
|
222
|
-
show() {
|
223
|
-
!this.fullscreen && !this.hideOverlay && this.genOverlay(), this.$nextTick(() => {
|
224
|
-
this.$nextTick(() => {
|
225
|
-
var e, t;
|
226
|
-
!((e = this.$refs.dialog) === null || e === void 0) && e.contains(document.activeElement) || (this.previousActiveElement = document.activeElement, (t = this.$refs.dialog) === null || t === void 0 || t.focus()), this.bind();
|
227
|
-
});
|
228
|
-
});
|
229
|
-
},
|
230
|
-
bind() {
|
231
|
-
window.addEventListener("focusin", this.onFocusin);
|
232
|
-
},
|
233
|
-
unbind() {
|
234
|
-
window.removeEventListener("focusin", this.onFocusin);
|
235
|
-
},
|
236
|
-
onClickOutside(e) {
|
237
|
-
this.$emit("click:outside", e), this.persistent ? this.noClickAnimation || this.animateClick() : this.isActive = !1;
|
238
|
-
},
|
239
|
-
onKeydown(e) {
|
240
|
-
if (e.keyCode === o.esc && !this.getOpenDependents().length)
|
241
|
-
if (this.persistent)
|
242
|
-
this.noClickAnimation || this.animateClick();
|
243
|
-
else {
|
244
|
-
this.isActive = !1;
|
245
|
-
const t = this.getActivator();
|
246
|
-
this.$nextTick(() => t && t.focus());
|
247
|
-
}
|
248
|
-
this.$emit("keydown", e);
|
249
|
-
},
|
250
|
-
// On focus change, wrap focus to stay inside the dialog
|
251
|
-
// https://github.com/vuetifyjs/vuetify/issues/6892
|
252
|
-
onFocusin(e) {
|
253
|
-
if (!e || !this.retainFocus)
|
254
|
-
return;
|
255
|
-
const t = e.target;
|
256
|
-
if (t && this.$refs.dialog && // It isn't the document or the dialog body
|
257
|
-
![document, this.$refs.dialog].includes(t) && // It isn't inside the dialog body
|
258
|
-
!this.$refs.dialog.contains(t) && // We're the topmost dialog
|
259
|
-
this.activeZIndex >= this.getMaxZIndex() && // It isn't inside a dependent element (like a menu)
|
260
|
-
!this.getOpenDependentElements().some((i) => i.contains(t))) {
|
261
|
-
const s = [...this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')].find((n) => !n.hasAttribute("disabled") && !n.matches('[tabindex="-1"]'));
|
262
|
-
s && s.focus();
|
263
|
-
}
|
264
|
-
},
|
265
|
-
genContent() {
|
266
|
-
return this.showLazyContent(() => [this.$createElement(u, {
|
267
|
-
props: {
|
268
|
-
root: !0,
|
269
|
-
light: this.light,
|
270
|
-
dark: this.dark
|
271
|
-
}
|
272
|
-
}, [this.$createElement("div", {
|
273
|
-
class: this.contentClasses,
|
274
|
-
attrs: {
|
275
|
-
role: "dialog",
|
276
|
-
"aria-modal": this.hideOverlay ? void 0 : "true",
|
277
|
-
...this.getScopeIdAttrs()
|
278
|
-
},
|
279
|
-
on: {
|
280
|
-
keydown: this.onKeydown
|
281
|
-
},
|
282
|
-
style: {
|
283
|
-
zIndex: this.activeZIndex
|
284
|
-
},
|
285
|
-
ref: "content"
|
286
|
-
}, [this.genTransition()])])]);
|
287
|
-
},
|
288
|
-
genTransition() {
|
289
|
-
const e = this.genInnerContent();
|
290
|
-
return this.transition ? this.$createElement("transition", {
|
291
|
-
props: {
|
292
|
-
name: this.transition,
|
293
|
-
origin: this.origin,
|
294
|
-
appear: !0
|
295
|
-
}
|
296
|
-
}, [e]) : e;
|
297
|
-
},
|
298
|
-
genInnerContent() {
|
299
|
-
const e = {
|
300
|
-
class: this.classes,
|
301
|
-
attrs: {
|
302
|
-
tabindex: this.isActive ? 0 : void 0
|
303
|
-
},
|
304
|
-
ref: "dialog",
|
305
|
-
directives: [{
|
306
|
-
name: "click-outside",
|
307
|
-
value: {
|
308
|
-
handler: this.onClickOutside,
|
309
|
-
closeConditional: this.closeConditional,
|
310
|
-
include: this.getOpenDependentElements
|
311
|
-
}
|
312
|
-
}, {
|
313
|
-
name: "show",
|
314
|
-
value: this.isActive
|
315
|
-
}],
|
316
|
-
style: {
|
317
|
-
transformOrigin: this.origin
|
318
|
-
}
|
319
|
-
};
|
320
|
-
return this.fullscreen || (e.style = {
|
321
|
-
...e.style,
|
322
|
-
maxWidth: a(this.maxWidth),
|
323
|
-
width: a(this.width)
|
324
|
-
}), this.$createElement("div", e, this.getContentSlot());
|
325
|
-
}
|
326
|
-
},
|
327
|
-
render(e) {
|
328
|
-
return e("div", {
|
329
|
-
staticClass: "v-dialog__container",
|
330
|
-
class: {
|
331
|
-
"v-dialog__container--attached": this.attach === "" || this.attach === !0 || this.attach === "attach"
|
332
|
-
}
|
333
|
-
}, [this.genActivator(), this.genContent()]);
|
334
|
-
}
|
335
|
-
});
|
336
|
-
h("css/revolugo.vdialog.C02Cvwul.css");
|
337
|
-
export {
|
338
|
-
l as O,
|
339
|
-
B as _
|
340
|
-
};
|
341
|
-
//# sourceMappingURL=revolugo.vdialog.BbC4lqGQ.min.js.map
|
@@ -1,263 +0,0 @@
|
|
1
|
-
import { B as o } from "./revolugo.vitemgroup.CkDfn6V_.min.js";
|
2
|
-
import { i as l, j as i } from "./revolugo.revolugo-config.B9n_CElG.min.js";
|
3
|
-
import { p as h, f as d, i as r, _ as u } from "./revolugo.index.CnslRErc.min.js";
|
4
|
-
import { m as a, C as p } from "./revolugo.webcomponentwrapper.CwAC855u.min.js";
|
5
|
-
import { a as v, b as x } from "./revolugo.index.DxqmvtLl.min.js";
|
6
|
-
import { B as m } from "./revolugo.watch-list.Bb06Iz6D.min.js";
|
7
|
-
import { r as f } from "./revolugo.vuetify.BEdap6Ni.min.js";
|
8
|
-
function c(e) {
|
9
|
-
try {
|
10
|
-
if (typeof document < "u") {
|
11
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
12
|
-
sheets: [],
|
13
|
-
components: []
|
14
|
-
};
|
15
|
-
const n = import.meta.url, t = n.slice(0, n.lastIndexOf("/") + 1) + e;
|
16
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
|
17
|
-
for (const s of REVOLUGO_ELEMENTS_STYLES.components)
|
18
|
-
s(t);
|
19
|
-
if (e.indexOf("fonts") >= 0) {
|
20
|
-
const s = document.createElement("link");
|
21
|
-
s.rel = "stylesheet", linK.href = t, document.head.appendChild(s);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
} catch (n) {
|
25
|
-
console.error("[revolugo-elements] ", n);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
const P = o.extend({
|
29
|
-
name: "v-expansion-panels",
|
30
|
-
provide() {
|
31
|
-
return {
|
32
|
-
expansionPanels: this
|
33
|
-
};
|
34
|
-
},
|
35
|
-
props: {
|
36
|
-
accordion: Boolean,
|
37
|
-
disabled: Boolean,
|
38
|
-
flat: Boolean,
|
39
|
-
hover: Boolean,
|
40
|
-
focusable: Boolean,
|
41
|
-
inset: Boolean,
|
42
|
-
popout: Boolean,
|
43
|
-
readonly: Boolean,
|
44
|
-
tile: Boolean
|
45
|
-
},
|
46
|
-
computed: {
|
47
|
-
classes() {
|
48
|
-
return {
|
49
|
-
...o.options.computed.classes.call(this),
|
50
|
-
"v-expansion-panels": !0,
|
51
|
-
"v-expansion-panels--accordion": this.accordion,
|
52
|
-
"v-expansion-panels--flat": this.flat,
|
53
|
-
"v-expansion-panels--hover": this.hover,
|
54
|
-
"v-expansion-panels--focusable": this.focusable,
|
55
|
-
"v-expansion-panels--inset": this.inset,
|
56
|
-
"v-expansion-panels--popout": this.popout,
|
57
|
-
"v-expansion-panels--tile": this.tile
|
58
|
-
};
|
59
|
-
}
|
60
|
-
},
|
61
|
-
created() {
|
62
|
-
this.$attrs.hasOwnProperty("expand") && l("expand", "multiple", this), Array.isArray(this.value) && this.value.length > 0 && typeof this.value[0] == "boolean" && l(':value="[true, false, true]"', ':value="[0, 2]"', this);
|
63
|
-
},
|
64
|
-
methods: {
|
65
|
-
updateItem(e, n) {
|
66
|
-
const t = this.getValue(e, n), s = this.getValue(e, n + 1);
|
67
|
-
e.isActive = this.toggleMethod(t), e.nextIsActive = this.toggleMethod(s);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}), S = a(
|
71
|
-
d("expansionPanels", "v-expansion-panel", "v-expansion-panels"),
|
72
|
-
h("expansionPanel", !0)
|
73
|
-
/* @vue/component */
|
74
|
-
).extend({
|
75
|
-
name: "v-expansion-panel",
|
76
|
-
props: {
|
77
|
-
disabled: Boolean,
|
78
|
-
readonly: Boolean
|
79
|
-
},
|
80
|
-
data() {
|
81
|
-
return {
|
82
|
-
content: null,
|
83
|
-
header: null,
|
84
|
-
nextIsActive: !1
|
85
|
-
};
|
86
|
-
},
|
87
|
-
computed: {
|
88
|
-
classes() {
|
89
|
-
return {
|
90
|
-
"v-expansion-panel--active": this.isActive,
|
91
|
-
"v-expansion-panel--next-active": this.nextIsActive,
|
92
|
-
"v-expansion-panel--disabled": this.isDisabled,
|
93
|
-
...this.groupClasses
|
94
|
-
};
|
95
|
-
},
|
96
|
-
isDisabled() {
|
97
|
-
return this.expansionPanels.disabled || this.disabled;
|
98
|
-
},
|
99
|
-
isReadonly() {
|
100
|
-
return this.expansionPanels.readonly || this.readonly;
|
101
|
-
}
|
102
|
-
},
|
103
|
-
methods: {
|
104
|
-
registerContent(e) {
|
105
|
-
this.content = e;
|
106
|
-
},
|
107
|
-
unregisterContent() {
|
108
|
-
this.content = null;
|
109
|
-
},
|
110
|
-
registerHeader(e) {
|
111
|
-
this.header = e, e.$on("click", this.onClick);
|
112
|
-
},
|
113
|
-
unregisterHeader() {
|
114
|
-
this.header = null;
|
115
|
-
},
|
116
|
-
onClick(e) {
|
117
|
-
e.detail && this.header.$el.blur(), this.$emit("click", e), this.isReadonly || this.isDisabled || this.toggle();
|
118
|
-
},
|
119
|
-
toggle() {
|
120
|
-
this.$nextTick(() => this.$emit("change"));
|
121
|
-
}
|
122
|
-
},
|
123
|
-
render(e) {
|
124
|
-
return e("div", {
|
125
|
-
staticClass: "v-expansion-panel",
|
126
|
-
class: this.classes,
|
127
|
-
attrs: {
|
128
|
-
"aria-expanded": String(this.isActive)
|
129
|
-
}
|
130
|
-
}, i(this));
|
131
|
-
}
|
132
|
-
}), g = a(m, p, r("expansionPanel", "v-expansion-panel-content", "v-expansion-panel")), k = g.extend().extend({
|
133
|
-
name: "v-expansion-panel-content",
|
134
|
-
data: () => ({
|
135
|
-
isActive: !1
|
136
|
-
}),
|
137
|
-
computed: {
|
138
|
-
parentIsActive() {
|
139
|
-
return this.expansionPanel.isActive;
|
140
|
-
}
|
141
|
-
},
|
142
|
-
watch: {
|
143
|
-
parentIsActive: {
|
144
|
-
immediate: !0,
|
145
|
-
handler(e, n) {
|
146
|
-
e && (this.isBooted = !0), n == null ? this.isActive = e : this.$nextTick(() => this.isActive = e);
|
147
|
-
}
|
148
|
-
}
|
149
|
-
},
|
150
|
-
created() {
|
151
|
-
this.expansionPanel.registerContent(this);
|
152
|
-
},
|
153
|
-
beforeDestroy() {
|
154
|
-
this.expansionPanel.unregisterContent();
|
155
|
-
},
|
156
|
-
render(e) {
|
157
|
-
return e(v, this.showLazyContent(() => [e("div", this.setBackgroundColor(this.color, {
|
158
|
-
staticClass: "v-expansion-panel-content",
|
159
|
-
directives: [{
|
160
|
-
name: "show",
|
161
|
-
value: this.isActive
|
162
|
-
}]
|
163
|
-
}), [e("div", {
|
164
|
-
class: "v-expansion-panel-content__wrap"
|
165
|
-
}, i(this, "default", {
|
166
|
-
open: this.isActive
|
167
|
-
}))])]));
|
168
|
-
}
|
169
|
-
}), _ = a(p, r("expansionPanel", "v-expansion-panel-header", "v-expansion-panel")), I = _.extend().extend({
|
170
|
-
name: "v-expansion-panel-header",
|
171
|
-
directives: {
|
172
|
-
ripple: f
|
173
|
-
},
|
174
|
-
props: {
|
175
|
-
disableIconRotate: Boolean,
|
176
|
-
expandIcon: {
|
177
|
-
type: String,
|
178
|
-
default: "$expand"
|
179
|
-
},
|
180
|
-
hideActions: Boolean,
|
181
|
-
ripple: {
|
182
|
-
type: [Boolean, Object],
|
183
|
-
default: !1
|
184
|
-
}
|
185
|
-
},
|
186
|
-
data: () => ({
|
187
|
-
hasMousedown: !1
|
188
|
-
}),
|
189
|
-
computed: {
|
190
|
-
classes() {
|
191
|
-
return {
|
192
|
-
"v-expansion-panel-header--active": this.isActive,
|
193
|
-
"v-expansion-panel-header--mousedown": this.hasMousedown
|
194
|
-
};
|
195
|
-
},
|
196
|
-
isActive() {
|
197
|
-
return this.expansionPanel.isActive;
|
198
|
-
},
|
199
|
-
isDisabled() {
|
200
|
-
return this.expansionPanel.isDisabled;
|
201
|
-
},
|
202
|
-
isReadonly() {
|
203
|
-
return this.expansionPanel.isReadonly;
|
204
|
-
}
|
205
|
-
},
|
206
|
-
created() {
|
207
|
-
this.expansionPanel.registerHeader(this);
|
208
|
-
},
|
209
|
-
beforeDestroy() {
|
210
|
-
this.expansionPanel.unregisterHeader();
|
211
|
-
},
|
212
|
-
methods: {
|
213
|
-
onClick(e) {
|
214
|
-
this.$emit("click", e);
|
215
|
-
},
|
216
|
-
genIcon() {
|
217
|
-
const e = i(this, "actions", {
|
218
|
-
open: this.isActive
|
219
|
-
}) || [this.$createElement(u, this.expandIcon)];
|
220
|
-
return this.$createElement(x, [this.$createElement("div", {
|
221
|
-
staticClass: "v-expansion-panel-header__icon",
|
222
|
-
class: {
|
223
|
-
"v-expansion-panel-header__icon--disable-rotate": this.disableIconRotate
|
224
|
-
},
|
225
|
-
directives: [{
|
226
|
-
name: "show",
|
227
|
-
value: !this.isDisabled
|
228
|
-
}]
|
229
|
-
}, e)]);
|
230
|
-
}
|
231
|
-
},
|
232
|
-
render(e) {
|
233
|
-
return e("button", this.setBackgroundColor(this.color, {
|
234
|
-
staticClass: "v-expansion-panel-header",
|
235
|
-
class: this.classes,
|
236
|
-
attrs: {
|
237
|
-
tabindex: this.isDisabled ? -1 : null,
|
238
|
-
type: "button",
|
239
|
-
"aria-expanded": this.isActive
|
240
|
-
},
|
241
|
-
directives: [{
|
242
|
-
name: "ripple",
|
243
|
-
value: this.ripple
|
244
|
-
}],
|
245
|
-
on: {
|
246
|
-
...this.$listeners,
|
247
|
-
click: this.onClick,
|
248
|
-
mousedown: () => this.hasMousedown = !0,
|
249
|
-
mouseup: () => this.hasMousedown = !1
|
250
|
-
}
|
251
|
-
}), [i(this, "default", {
|
252
|
-
open: this.isActive
|
253
|
-
}, !0), this.hideActions || this.genIcon()]);
|
254
|
-
}
|
255
|
-
});
|
256
|
-
c("css/revolugo.vexpansionpanelheader.B2eKo8Lo.css");
|
257
|
-
export {
|
258
|
-
P as _,
|
259
|
-
S as a,
|
260
|
-
I as b,
|
261
|
-
k as c
|
262
|
-
};
|
263
|
-
//# sourceMappingURL=revolugo.vexpansionpanelheader.B--qAjL8.min.js.map
|
@@ -1,98 +0,0 @@
|
|
1
|
-
import { m as a } from "./revolugo.webcomponentwrapper.CwAC855u.min.js";
|
2
|
-
import { B as o } from "./revolugo.index.mq4mKuqN.min.js";
|
3
|
-
import { p as h } from "./revolugo.index.CnslRErc.min.js";
|
4
|
-
const l = a(
|
5
|
-
o,
|
6
|
-
h("form")
|
7
|
-
/* @vue/component */
|
8
|
-
).extend({
|
9
|
-
name: "v-form",
|
10
|
-
provide() {
|
11
|
-
return {
|
12
|
-
form: this
|
13
|
-
};
|
14
|
-
},
|
15
|
-
inheritAttrs: !1,
|
16
|
-
props: {
|
17
|
-
disabled: Boolean,
|
18
|
-
lazyValidation: Boolean,
|
19
|
-
readonly: Boolean,
|
20
|
-
value: Boolean
|
21
|
-
},
|
22
|
-
data: () => ({
|
23
|
-
inputs: [],
|
24
|
-
watchers: [],
|
25
|
-
errorBag: {}
|
26
|
-
}),
|
27
|
-
watch: {
|
28
|
-
errorBag: {
|
29
|
-
handler(t) {
|
30
|
-
const r = Object.values(t).includes(!0);
|
31
|
-
this.$emit("input", !r);
|
32
|
-
},
|
33
|
-
deep: !0,
|
34
|
-
immediate: !0
|
35
|
-
}
|
36
|
-
},
|
37
|
-
methods: {
|
38
|
-
watchInput(t) {
|
39
|
-
const r = (i) => i.$watch("hasError", (s) => {
|
40
|
-
this.$set(this.errorBag, i._uid, s);
|
41
|
-
}, {
|
42
|
-
immediate: !0
|
43
|
-
}), e = {
|
44
|
-
_uid: t._uid,
|
45
|
-
valid: () => {
|
46
|
-
},
|
47
|
-
shouldValidate: () => {
|
48
|
-
}
|
49
|
-
};
|
50
|
-
return this.lazyValidation ? e.shouldValidate = t.$watch("shouldValidate", (i) => {
|
51
|
-
i && (this.errorBag.hasOwnProperty(t._uid) || (e.valid = r(t)));
|
52
|
-
}) : e.valid = r(t), e;
|
53
|
-
},
|
54
|
-
/** @public */
|
55
|
-
validate() {
|
56
|
-
return this.inputs.filter((t) => !t.validate(!0)).length === 0;
|
57
|
-
},
|
58
|
-
/** @public */
|
59
|
-
reset() {
|
60
|
-
this.inputs.forEach((t) => t.reset()), this.resetErrorBag();
|
61
|
-
},
|
62
|
-
resetErrorBag() {
|
63
|
-
this.lazyValidation && setTimeout(() => {
|
64
|
-
this.errorBag = {};
|
65
|
-
}, 0);
|
66
|
-
},
|
67
|
-
/** @public */
|
68
|
-
resetValidation() {
|
69
|
-
this.inputs.forEach((t) => t.resetValidation()), this.resetErrorBag();
|
70
|
-
},
|
71
|
-
register(t) {
|
72
|
-
this.inputs.push(t), this.watchers.push(this.watchInput(t));
|
73
|
-
},
|
74
|
-
unregister(t) {
|
75
|
-
const r = this.inputs.find((i) => i._uid === t._uid);
|
76
|
-
if (!r)
|
77
|
-
return;
|
78
|
-
const e = this.watchers.find((i) => i._uid === r._uid);
|
79
|
-
e && (e.valid(), e.shouldValidate()), this.watchers = this.watchers.filter((i) => i._uid !== r._uid), this.inputs = this.inputs.filter((i) => i._uid !== r._uid), this.$delete(this.errorBag, r._uid);
|
80
|
-
}
|
81
|
-
},
|
82
|
-
render(t) {
|
83
|
-
return t("form", {
|
84
|
-
staticClass: "v-form",
|
85
|
-
attrs: {
|
86
|
-
novalidate: !0,
|
87
|
-
...this.attrs$
|
88
|
-
},
|
89
|
-
on: {
|
90
|
-
submit: (r) => this.$emit("submit", r)
|
91
|
-
}
|
92
|
-
}, this.$slots.default);
|
93
|
-
}
|
94
|
-
});
|
95
|
-
export {
|
96
|
-
l as _
|
97
|
-
};
|
98
|
-
//# sourceMappingURL=revolugo.vform.DzJhfMwE.min.js.map
|