@revolugo/elements 6.8.3-beta.14 → 6.8.3-beta.16
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/css/fonts.css +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CcLw1eDZ.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.CmjarAgQ.css} +1 -1
- package/dist/revolugo.banktransferdetails.Cvzg5_Ic.min.js +36 -0
- package/dist/revolugo.bookingdetailssidebar.k46HDmg6.min.js +37 -0
- package/dist/revolugo.bookingmanager.Bp3Iq-CV.min.js +24 -0
- package/dist/revolugo.cancellationpoliciesbadge.D94ditk5.min.js +24 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.BnLjFL5s.min.js +31712 -0
- package/dist/revolugo.cancellationpolicieslist.ofFI9Dx1.min.js +24 -0
- package/dist/revolugo.creditcardform.DNY-xKYV.min.js +24 -0
- package/dist/revolugo.creditcardpayment.DoH0pwLm.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.DcoR1F1Y.min.js +24 -0
- package/dist/revolugo.fastbookingflow.DdfGwiWZ.min.js +34 -0
- package/dist/revolugo.fullbookingflow.BbqC4qQ1.min.js +24 -0
- package/dist/revolugo.hoteldescriptionview.CBhuNO9_.min.js +24 -0
- package/dist/revolugo.hotelofferlist.DgZhb92H.min.js +24 -0
- package/dist/{revolugo.hoteloffersearchmenu.CNQs7uf0.min.js → revolugo.hoteloffersearchmenu.Ojiuc5KP.min.js} +37 -39
- package/dist/revolugo.hoteloffersmap.95AMizbv.min.js +24 -0
- package/dist/revolugo.hoteloffersview.CUcJpz15.min.js +19 -0
- package/dist/revolugo.hotelroomofferlist.deuoRfWR.min.js +24 -0
- package/dist/revolugo.hotelroomoffersbookingflow.dTr1ET_n.min.js +24 -0
- package/dist/revolugo.hotelroomoffersearchmenu.DDi3cRLS.min.js +24 -0
- package/dist/revolugo.hotelroomoffersview.CFseu6Pj.min.js +24 -0
- package/dist/{revolugo.index.BK0e6ROR.min.js → revolugo.index.Bz-n9tuq.min.js} +6 -6
- package/dist/{revolugo.index.wc.jjeh0psC.min.js → revolugo.index.wc.DevpsraD.min.js} +267 -267
- package/dist/revolugo.langpickerbtn.B9byfQqd.min.js +29 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.BDFY-Ks_.min.js +24 -0
- package/dist/revolugo.roominglisteditor.B_AOuHI_.min.js +24 -0
- package/dist/{revolugo.storybooktoolbar.ID2ZQ0P5.min.js → revolugo.storybooktoolbar.BamIltF8.min.js} +132 -146
- package/dist/revolugo.termsandconditions.Dfp652uY.min.js +23 -0
- package/dist/revolugo.webcomponentwrapper.CEjK8-cS.min.js +28682 -0
- package/package.json +1 -1
- package/dist/css/revolugo.bdaterangepicker.B6KA5TYs.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BP8bd417.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BxIL_xDV.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.g_6Xwqnt.css +0 -1
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
- package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
- package/dist/css/revolugo.creditcardform.BXv0c3zQ.css +0 -1
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
- package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.Dfi-84To.css +0 -1
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.CdDZxzE3.css +0 -1
- package/dist/css/revolugo.hoteloffersview.Xw1flMYo.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.C1uw1vfC.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.nFiRmYyk.css +0 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
- package/dist/css/revolugo.prebookform.BqSw27Yj.css +0 -1
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
- package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
- package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
- package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
- package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
- package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
- package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
- package/dist/css/revolugo.vtextarea.BTR7f0gW.css +0 -1
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
- package/dist/css/revolugo.vtoolbar.BZert82L.css +0 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
- package/dist/revolugo._baseiteratee.BhaL3Ihm.min.js +0 -247
- package/dist/revolugo.banktransferdetails.Ac8FSLVW.min.js +0 -358
- package/dist/revolugo.bdaterangepicker.hVwM6ipX.min.js +0 -8324
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.BS1jYuno.min.js +0 -140
- package/dist/revolugo.bhoteloffersfilterbar.qDSKNDlZ.min.js +0 -4209
- package/dist/revolugo.bhotelroomsdetails.E0vCwuBV.min.js +0 -965
- package/dist/revolugo.bimagecarousel.DyzQUjzi.min.js +0 -480
- package/dist/revolugo.bookingdetailssidebar.4s_eSQg4.min.js +0 -37
- package/dist/revolugo.bookingdetailssidebar.vue_vue_type_script_setup_true_lang.JNe9c8M3.min.js +0 -811
- package/dist/revolugo.bookingmanager.6yPgoaWw.min.js +0 -1755
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.BbtWMTnV.min.js +0 -91
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.Csh7MNV1.min.js +0 -570
- package/dist/revolugo.btag.ySOeDeLw.min.js +0 -375
- package/dist/revolugo.cancellationpoliciesbadge.W3M5rQIz.min.js +0 -198
- package/dist/revolugo.cancellationpoliciesbadge.dr9YreJC.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.BaZc434S.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
- package/dist/revolugo.cancellationpolicieslist.pxTuDh2s.min.js +0 -148
- package/dist/revolugo.case-transformers.C_YgD3nA.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.BTlkvOgH.min.js +0 -2148
- package/dist/revolugo.creditcardform.DJe7Njnk.min.js +0 -24
- package/dist/revolugo.creditcardpayment.BEj51mBs.min.js +0 -24
- package/dist/revolugo.creditcardpayment.BfM_sNj1.min.js +0 -885
- package/dist/revolugo.currencypicker.CWG49Zhf.min.js +0 -330
- package/dist/revolugo.currencypickerbtn.D15jjm6y.min.js +0 -157
- package/dist/revolugo.currencypickerbtn.DpGFoemK.min.js +0 -24
- package/dist/revolugo.dates.BodUWcoy.min.js +0 -31
- package/dist/revolugo.defaultsdeep.BQVrU_I2.min.js +0 -104
- package/dist/revolugo.dialog-attach.DrmEgjzG.min.js +0 -27
- package/dist/revolugo.dialog-transition.x1E-leWE.min.js +0 -111
- package/dist/revolugo.fastbookingflow.Bu26X9eR.min.js +0 -34
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
- package/dist/revolugo.fullbookingflow.7eCzxgkm.min.js +0 -429
- package/dist/revolugo.hotel-offer-request.CS9yN6dC.min.js +0 -98
- package/dist/revolugo.hoteldescriptionview.BcGnT767.min.js +0 -24
- package/dist/revolugo.hoteldescriptionview.CpHXBzEy.min.js +0 -2960
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.BR7jcumI.min.js +0 -241
- package/dist/revolugo.hotelofferlist.B9RDtc0D.min.js +0 -5624
- package/dist/revolugo.hotelofferlist.BeTc6Ypd.min.js +0 -24
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
- package/dist/revolugo.hoteloffersearchmenuui.D26rRLl9.min.js +0 -829
- package/dist/revolugo.hoteloffersmap.Ce0wWt8l.min.js +0 -9016
- package/dist/revolugo.hoteloffersmap.DWMFOwWt.min.js +0 -24
- package/dist/revolugo.hoteloffersview.BOdQbV-Z.min.js +0 -614
- package/dist/revolugo.hoteloffersview.pWsKhpam.min.js +0 -19
- package/dist/revolugo.hotelroomofferlist.BYjhiVd9.min.js +0 -2759
- package/dist/revolugo.hotelroomofferlist.FjLqM2qT.min.js +0 -24
- package/dist/revolugo.hotelroomofferrequestcreator.props.DaO-XF8o.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.BIhSA__v.min.js +0 -1281
- package/dist/revolugo.hotelroomoffersearchmenu.B4L9T_pD.min.js +0 -231
- package/dist/revolugo.hotelroomoffersearchmenu.DmxmMPap.min.js +0 -25
- package/dist/revolugo.hotelroomoffersview.BSuVaUYS.min.js +0 -290
- package/dist/revolugo.hotelroomoffersview.DikMXiku.min.js +0 -24
- package/dist/revolugo.index.CpbrPSdc.min.js +0 -1232
- package/dist/revolugo.langpicker.CfywWRmf.min.js +0 -99
- package/dist/revolugo.langpickerbtn.DOhtMneJ.min.js +0 -131
- package/dist/revolugo.langpickerbtn.Dj9tOUTP.min.js +0 -29
- package/dist/revolugo.parsed-props.DoxQeA2G.min.js +0 -39
- package/dist/revolugo.pathify.DyWzmaeA.min.js +0 -36
- package/dist/revolugo.prebookform.BhhN6y68.min.js +0 -24
- package/dist/revolugo.prebookform.P5zcfTNX.min.js +0 -3373
- package/dist/revolugo.roominglisteditor.Bxrs0KHA.min.js +0 -24
- package/dist/revolugo.roominglisteditor.CVYLzHRT.min.js +0 -377
- package/dist/revolugo.rounded.NtUKwXJe.min.js +0 -68
- package/dist/revolugo.ssrboot.CsFDZ3GY.min.js +0 -18
- package/dist/revolugo.termsandconditions.CRRHtizQ.min.js +0 -405
- package/dist/revolugo.termsandconditions.CbleG1D9.min.js +0 -23
- package/dist/revolugo.use-breakpoint-service.BPw7628u.min.js +0 -39
- package/dist/revolugo.use-dialog-attach.CHjkmbrv.min.js +0 -16
- package/dist/revolugo.use-html-element.CSI1N3ea.min.js +0 -11
- package/dist/revolugo.use-parsed-props.D5H5p3rX.min.js +0 -29
- package/dist/revolugo.vautocomplete.CPWUQuA8.min.js +0 -445
- package/dist/revolugo.vbadge.B41nGplL.min.js +0 -112
- package/dist/revolugo.vbtn.DU_4A0p_.min.js +0 -398
- package/dist/revolugo.vcard.gzoVNZt3.min.js +0 -313
- package/dist/revolugo.vcheckboxbtn.7vWER-xI.min.js +0 -478
- package/dist/revolugo.vdialog.CiTP3_6P.min.js +0 -133
- package/dist/revolugo.vdivider.BnYK7z-u.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.Cwh53uEX.min.js +0 -262
- package/dist/revolugo.vform.DMmShcfR.min.js +0 -46
- package/dist/revolugo.vicon.WVuIv40M.min.js +0 -105
- package/dist/revolugo.vinput.C5btOxFW.min.js +0 -463
- package/dist/revolugo.vlabel.B3Ew8qSb.min.js +0 -48
- package/dist/revolugo.vlist.OYNsGaEP.min.js +0 -1299
- package/dist/revolugo.vmenu.CtthwTkl.min.js +0 -145
- package/dist/revolugo.vselect.Be8zaTpJ.min.js +0 -660
- package/dist/revolugo.vsheet.bokzfSqi.min.js +0 -72
- package/dist/revolugo.vskeletonloader.BmgnfVnz.min.js +0 -136
- package/dist/revolugo.vslidegroup.ChXAadfi.min.js +0 -325
- package/dist/revolugo.vsnackbar.pqrGnOMz.min.js +0 -198
- package/dist/revolugo.vspacer.Cat0A_Ek.min.js +0 -7
- package/dist/revolugo.vtextarea.DaPe8V7w.min.js +0 -240
- package/dist/revolugo.vtextfield.BxXOaS0D.min.js +0 -501
- package/dist/revolugo.vtoolbar.6Nyge05T.min.js +0 -180
- package/dist/revolugo.vtooltip.ckXYGzYH.min.js +0 -89
- package/dist/revolugo.vwindowitem.CbN0F8kL.min.js +0 -317
- package/dist/revolugo.watch-list.CGB3U4_b.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.Cl0TkD0k.min.js +0 -2088
@@ -1,23 +0,0 @@
|
|
1
|
-
import { T as r } from "./revolugo.termsandconditions.CRRHtizQ.min.js";
|
2
|
-
import { W as t, _ as p } from "./revolugo.webcomponentwrapper.Cl0TkD0k.min.js";
|
3
|
-
import { d as a, c as i, w as m, i as o, o as c, a as d, n as _, h as C } from "./revolugo.index.wc.jjeh0psC.min.js";
|
4
|
-
const f = a({
|
5
|
-
components: {
|
6
|
-
TermsAndConditions: r,
|
7
|
-
WebComponentWrapper: t
|
8
|
-
}
|
9
|
-
});
|
10
|
-
function l(n, u, W, T, $, A) {
|
11
|
-
const e = o("TermsAndConditions", !0), s = o("WebComponentWrapper");
|
12
|
-
return c(), i(s, null, {
|
13
|
-
default: m(() => [
|
14
|
-
d(e, _(C(n.$props)), null, 16)
|
15
|
-
]),
|
16
|
-
_: 1
|
17
|
-
});
|
18
|
-
}
|
19
|
-
const k = /* @__PURE__ */ p(f, [["render", l]]);
|
20
|
-
export {
|
21
|
-
k as default
|
22
|
-
};
|
23
|
-
//# sourceMappingURL=revolugo.termsandconditions.CbleG1D9.min.js.map
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { r as k, bR as C, H as m, O as E, bS as B } from "./revolugo.index.wc.jjeh0psC.min.js";
|
2
|
-
import { u as w } from "./revolugo.use-html-element.CSI1N3ea.min.js";
|
3
|
-
function y(i) {
|
4
|
-
const r = k(null), n = k(null), d = C(), o = w(i), l = () => o.value?.className === B ? o.value : typeof o.value?.closest != "function" ? null : o.value?.closest(`.${B}`) ?? null, c = m(
|
5
|
-
() => n.value && d.breakpointObservers[n.value] || {
|
6
|
-
ready: !1
|
7
|
-
}
|
8
|
-
), v = m(
|
9
|
-
() => Object.entries(c.value).find(
|
10
|
-
([e, u]) => e !== "ready" && u === !0
|
11
|
-
)?.[0]
|
12
|
-
), t = (e, u, b = !0) => {
|
13
|
-
const f = ["xs", "sm", "md", "lg", "xl"], a = f.indexOf(
|
14
|
-
v.value
|
15
|
-
), s = f.indexOf(e);
|
16
|
-
return u === "above" ? b ? s < a : s <= a : b ? s > a : s >= a;
|
17
|
-
}, O = (e) => t(e, "above"), $ = (e) => t(e, "above", !1), x = (e) => t(e, "below"), S = (e) => t(e, "below", !1), p = () => {
|
18
|
-
r.value = r.value || l(), r.value && (n.value = r.value.getAttribute("observer-id"));
|
19
|
-
};
|
20
|
-
return E(i, () => {
|
21
|
-
p();
|
22
|
-
}), {
|
23
|
-
$breakpointService: c,
|
24
|
-
$isCurrentBreakpointAbove: O,
|
25
|
-
$isCurrentBreakpointAboveOrEqual: $,
|
26
|
-
$isCurrentBreakpointBelow: x,
|
27
|
-
$isCurrentBreakpointBelowOrEqual: S,
|
28
|
-
breakpointObserverEl: r,
|
29
|
-
breakpointServiceId: n,
|
30
|
-
breakpointServiceInit: p,
|
31
|
-
compareToCurrentBreakpoint: t,
|
32
|
-
currentBreakpoint: v,
|
33
|
-
getBreakpointObserverRootElement: l
|
34
|
-
};
|
35
|
-
}
|
36
|
-
export {
|
37
|
-
y as u
|
38
|
-
};
|
39
|
-
//# sourceMappingURL=revolugo.use-breakpoint-service.BPw7628u.min.js.map
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { u as o } from "./revolugo.use-html-element.CSI1N3ea.min.js";
|
2
|
-
import { r as i, O as r, W as c } from "./revolugo.index.wc.jjeh0psC.min.js";
|
3
|
-
function u(t) {
|
4
|
-
const e = o(t), a = i(void 0);
|
5
|
-
return r(t, () => {
|
6
|
-
c(() => {
|
7
|
-
a.value = e.value?.querySelector(".v-application") ?? void 0;
|
8
|
-
});
|
9
|
-
}), {
|
10
|
-
$dialogAttach: a
|
11
|
-
};
|
12
|
-
}
|
13
|
-
export {
|
14
|
-
u
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=revolugo.use-dialog-attach.CHjkmbrv.min.js.map
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { d as n } from "./revolugo.defaultsdeep.BQVrU_I2.min.js";
|
2
|
-
import { H as o, c1 as p } from "./revolugo.index.wc.jjeh0psC.min.js";
|
3
|
-
function a(r, e, s) {
|
4
|
-
if (!r)
|
5
|
-
return e;
|
6
|
-
const u = s || ((t) => t);
|
7
|
-
if (typeof r == "string")
|
8
|
-
try {
|
9
|
-
return u(JSON.parse(r));
|
10
|
-
} catch {
|
11
|
-
return e;
|
12
|
-
}
|
13
|
-
return u(r);
|
14
|
-
}
|
15
|
-
function i({
|
16
|
-
cb: r,
|
17
|
-
fallbackValue: e,
|
18
|
-
prop: s
|
19
|
-
}) {
|
20
|
-
return o(() => {
|
21
|
-
const t = a(p(s.value), e, r);
|
22
|
-
return t && n(structuredClone(t), e || {});
|
23
|
-
});
|
24
|
-
}
|
25
|
-
export {
|
26
|
-
a as p,
|
27
|
-
i as u
|
28
|
-
};
|
29
|
-
//# sourceMappingURL=revolugo.use-parsed-props.D5H5p3rX.min.js.map
|
@@ -1,445 +0,0 @@
|
|
1
|
-
import { u as ke, m as we, a as be } from "./revolugo.vselect.Be8zaTpJ.min.js";
|
2
|
-
import { c as Fe, V as J } from "./revolugo.vtextfield.BxXOaS0D.min.js";
|
3
|
-
import { d as Ce, u as Ee, p as xe } from "./revolugo.webcomponentwrapper.Cl0TkD0k.min.js";
|
4
|
-
import { a0 as ae, a7 as _, H as V, f as U, aa as Me, a5 as Q, aZ as Ie, $ as _e, ae as Le, r as j, a4 as Z, O as B, a8 as Oe, a as c, D as O, bY as X, bZ as q, b_ as Ae, W as ee, bz as Pe, F as Y, b$ as Re, c0 as Te, e as De } from "./revolugo.index.wc.jjeh0psC.min.js";
|
5
|
-
import { b as Ke } from "./revolugo.vinput.C5btOxFW.min.js";
|
6
|
-
import { f as Ne } from "./revolugo.forwardrefs.VVhh1qV3.min.js";
|
7
|
-
import { u as Ue, a as je, V as te } from "./revolugo.vlist.OYNsGaEP.min.js";
|
8
|
-
import { V as le } from "./revolugo.vicon.WVuIv40M.min.js";
|
9
|
-
import { V as Be } from "./revolugo.vmenu.CtthwTkl.min.js";
|
10
|
-
import { a as Ye } from "./revolugo.vcheckboxbtn.7vWER-xI.min.js";
|
11
|
-
import { h as ze, a as Ge } from "./revolugo.index.CpbrPSdc.min.js";
|
12
|
-
import { V as He } from "./revolugo.btag.ySOeDeLw.min.js";
|
13
|
-
function Se(e) {
|
14
|
-
try {
|
15
|
-
if (typeof document < "u") {
|
16
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
17
|
-
sheets: [],
|
18
|
-
components: []
|
19
|
-
};
|
20
|
-
const s = import.meta.url, l = s.slice(0, s.lastIndexOf("/") + 1) + e;
|
21
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(l);
|
22
|
-
for (const p of REVOLUGO_ELEMENTS_STYLES.components)
|
23
|
-
p(l);
|
24
|
-
if (e.indexOf("fonts") >= 0) {
|
25
|
-
const p = document.createElement("link");
|
26
|
-
p.rel = "stylesheet", linK.href = l, document.head.appendChild(p);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
} catch (s) {
|
30
|
-
console.error("[revolugo-elements] ", s);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
const $e = (e, s, l) => e == null || s == null ? -1 : e.toString().toLocaleLowerCase().indexOf(s.toString().toLocaleLowerCase()), We = ae({
|
34
|
-
customFilter: Function,
|
35
|
-
customKeyFilter: Object,
|
36
|
-
filterKeys: [Array, String],
|
37
|
-
filterMode: {
|
38
|
-
type: String,
|
39
|
-
default: "intersection"
|
40
|
-
},
|
41
|
-
noFilter: Boolean
|
42
|
-
}, "filter");
|
43
|
-
function Ze(e, s, l) {
|
44
|
-
const p = [], d = l?.default ?? $e, m = l?.filterKeys ? Q(l.filterKeys) : !1, g = Object.keys(l?.customKeyFilter ?? {}).length;
|
45
|
-
if (!e?.length) return p;
|
46
|
-
e: for (let S = 0; S < e.length; S++) {
|
47
|
-
const [h, F = h] = Q(e[S]), w = {}, i = {};
|
48
|
-
let n = -1;
|
49
|
-
if ((s || g > 0) && !l?.noFilter) {
|
50
|
-
if (typeof h == "object") {
|
51
|
-
const L = m || Object.keys(F);
|
52
|
-
for (const x of L) {
|
53
|
-
const M = Ie(F, x), A = l?.customKeyFilter?.[x];
|
54
|
-
if (n = A ? A(M, s, h) : d(M, s, h), n !== -1 && n !== !1)
|
55
|
-
A ? w[x] = n : i[x] = n;
|
56
|
-
else if (l?.filterMode === "every")
|
57
|
-
continue e;
|
58
|
-
}
|
59
|
-
} else
|
60
|
-
n = d(h, s, h), n !== -1 && n !== !1 && (i.title = n);
|
61
|
-
const C = Object.keys(i).length, E = Object.keys(w).length;
|
62
|
-
if (!C && !E || l?.filterMode === "union" && E !== g && !C || l?.filterMode === "intersection" && (E !== g || !C)) continue;
|
63
|
-
}
|
64
|
-
p.push({
|
65
|
-
index: S,
|
66
|
-
matches: {
|
67
|
-
...i,
|
68
|
-
...w
|
69
|
-
}
|
70
|
-
});
|
71
|
-
}
|
72
|
-
return p;
|
73
|
-
}
|
74
|
-
function Qe(e, s, l, p) {
|
75
|
-
const d = _([]), m = _(/* @__PURE__ */ new Map()), g = V(() => U(s));
|
76
|
-
Me(() => {
|
77
|
-
const h = typeof l == "function" ? l() : U(l), F = typeof h != "string" && typeof h != "number" ? "" : String(h), w = Ze(g.value, F, {
|
78
|
-
customKeyFilter: {
|
79
|
-
...e.customKeyFilter,
|
80
|
-
...U(p?.customKeyFilter)
|
81
|
-
},
|
82
|
-
default: e.customFilter,
|
83
|
-
filterKeys: e.filterKeys,
|
84
|
-
filterMode: e.filterMode,
|
85
|
-
noFilter: e.noFilter
|
86
|
-
}), i = U(s), n = [], C = /* @__PURE__ */ new Map();
|
87
|
-
w.forEach((E) => {
|
88
|
-
let {
|
89
|
-
index: L,
|
90
|
-
matches: x
|
91
|
-
} = E;
|
92
|
-
const M = i[L];
|
93
|
-
n.push(M), C.set(M.value, x);
|
94
|
-
}), d.value = n, m.value = C;
|
95
|
-
});
|
96
|
-
function S(h) {
|
97
|
-
return m.value.get(h.value);
|
98
|
-
}
|
99
|
-
return {
|
100
|
-
filteredItems: d,
|
101
|
-
filteredMatches: m,
|
102
|
-
getMatches: S
|
103
|
-
};
|
104
|
-
}
|
105
|
-
function Je(e, s, l) {
|
106
|
-
if (s == null) return e;
|
107
|
-
if (Array.isArray(s)) throw new Error("Multiple matches is not implemented");
|
108
|
-
return typeof s == "number" && ~s ? c(Y, null, [c("span", {
|
109
|
-
class: "v-autocomplete__unmask"
|
110
|
-
}, [e.substr(0, s)]), c("span", {
|
111
|
-
class: "v-autocomplete__mask"
|
112
|
-
}, [e.substr(s, l)]), c("span", {
|
113
|
-
class: "v-autocomplete__unmask"
|
114
|
-
}, [e.substr(s + l)])]) : e;
|
115
|
-
}
|
116
|
-
const Xe = ae({
|
117
|
-
autoSelectFirst: {
|
118
|
-
type: [Boolean, String]
|
119
|
-
},
|
120
|
-
clearOnSelect: Boolean,
|
121
|
-
search: String,
|
122
|
-
...We({
|
123
|
-
filterKeys: ["title"]
|
124
|
-
}),
|
125
|
-
...we(),
|
126
|
-
...Oe(Fe({
|
127
|
-
modelValue: null,
|
128
|
-
role: "combobox"
|
129
|
-
}), ["validationValue", "dirty", "appendInnerIcon"]),
|
130
|
-
...xe({
|
131
|
-
transition: !1
|
132
|
-
})
|
133
|
-
}, "VAutocomplete"), ft = _e()({
|
134
|
-
name: "VAutocomplete",
|
135
|
-
props: Xe(),
|
136
|
-
emits: {
|
137
|
-
"update:focused": (e) => !0,
|
138
|
-
"update:search": (e) => !0,
|
139
|
-
"update:modelValue": (e) => !0,
|
140
|
-
"update:menu": (e) => !0
|
141
|
-
},
|
142
|
-
setup(e, s) {
|
143
|
-
let {
|
144
|
-
slots: l
|
145
|
-
} = s;
|
146
|
-
const {
|
147
|
-
t: p
|
148
|
-
} = Le(), d = j(), m = _(!1), g = _(!0), S = _(!1), h = j(), F = j(), w = Z(e, "menu"), i = V({
|
149
|
-
get: () => w.value,
|
150
|
-
set: (t) => {
|
151
|
-
w.value && !t && h.value?.ΨopenChildren.size || (w.value = t);
|
152
|
-
}
|
153
|
-
}), n = _(-1), C = V(() => d.value?.color), E = V(() => i.value ? e.closeText : e.openText), {
|
154
|
-
items: L,
|
155
|
-
transformIn: x,
|
156
|
-
transformOut: M
|
157
|
-
} = Ue(e), {
|
158
|
-
textColorClasses: A,
|
159
|
-
textColorStyles: ne
|
160
|
-
} = Ce(C), v = Z(e, "search", ""), u = Z(e, "modelValue", [], (t) => x(t === null ? [null] : Q(t)), (t) => {
|
161
|
-
const r = M(t);
|
162
|
-
return e.multiple ? r : r[0] ?? null;
|
163
|
-
}), ue = V(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : u.value.length), D = Ke(e), {
|
164
|
-
filteredItems: z,
|
165
|
-
getMatches: oe
|
166
|
-
} = Qe(e, L, () => g.value ? "" : v.value), b = V(() => e.hideSelected ? z.value.filter((t) => !u.value.some((r) => r.value === t.value)) : z.value), K = V(() => !!(e.chips || l.chip)), P = V(() => K.value || !!l.selection), se = V(() => u.value.map((t) => t.props.value)), G = V(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && v.value === b.value[0]?.title) && b.value.length > 0 && !g.value && !S.value), H = V(() => e.hideNoData && !b.value.length || D.isReadonly.value || D.isDisabled.value), $ = j(), ie = ke($, d);
|
167
|
-
function re(t) {
|
168
|
-
e.openOnClear && (i.value = !0), v.value = "";
|
169
|
-
}
|
170
|
-
function ce() {
|
171
|
-
H.value || (i.value = !0);
|
172
|
-
}
|
173
|
-
function fe(t) {
|
174
|
-
H.value || (m.value && (t.preventDefault(), t.stopPropagation()), i.value = !i.value);
|
175
|
-
}
|
176
|
-
function ve(t) {
|
177
|
-
t.key !== " " && X(t) && d.value?.focus();
|
178
|
-
}
|
179
|
-
function de(t) {
|
180
|
-
if (D.isReadonly.value) return;
|
181
|
-
const r = d.value.selectionStart, f = u.value.length;
|
182
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(t.key) && t.preventDefault(), ["Enter", "ArrowDown"].includes(t.key) && (i.value = !0), ["Escape"].includes(t.key) && (i.value = !1), G.value && ["Enter", "Tab"].includes(t.key) && !u.value.some((a) => {
|
183
|
-
let {
|
184
|
-
value: o
|
185
|
-
} = a;
|
186
|
-
return o === b.value[0].value;
|
187
|
-
}) && I(b.value[0]), t.key === "ArrowDown" && G.value && $.value?.focus("next"), ["Backspace", "Delete"].includes(t.key)) {
|
188
|
-
if (!e.multiple && P.value && u.value.length > 0 && !v.value) return I(u.value[0], !1);
|
189
|
-
if (~n.value) {
|
190
|
-
t.preventDefault();
|
191
|
-
const a = n.value;
|
192
|
-
I(u.value[n.value], !1), n.value = a >= f - 1 ? f - 2 : a;
|
193
|
-
} else t.key === "Backspace" && !v.value && (n.value = f - 1);
|
194
|
-
return;
|
195
|
-
}
|
196
|
-
if (e.multiple)
|
197
|
-
if (t.key === "ArrowLeft") {
|
198
|
-
if (n.value < 0 && r > 0) return;
|
199
|
-
const a = n.value > -1 ? n.value - 1 : f - 1;
|
200
|
-
u.value[a] ? n.value = a : (n.value = -1, d.value.setSelectionRange(v.value?.length, v.value?.length));
|
201
|
-
} else if (t.key === "ArrowRight") {
|
202
|
-
if (n.value < 0) return;
|
203
|
-
const a = n.value + 1;
|
204
|
-
u.value[a] ? n.value = a : (n.value = -1, d.value.setSelectionRange(0, 0));
|
205
|
-
} else ~n.value && X(t) && (n.value = -1);
|
206
|
-
}
|
207
|
-
function me(t) {
|
208
|
-
if (q(d.value, ":autofill") || q(d.value, ":-webkit-autofill")) {
|
209
|
-
const r = L.value.find((f) => f.title === t.target.value);
|
210
|
-
r && I(r);
|
211
|
-
}
|
212
|
-
}
|
213
|
-
function he() {
|
214
|
-
e.eager && F.value?.calculateVisibleItems();
|
215
|
-
}
|
216
|
-
function pe() {
|
217
|
-
m.value && (g.value = !0, d.value?.focus());
|
218
|
-
}
|
219
|
-
function ge(t) {
|
220
|
-
m.value = !0, setTimeout(() => {
|
221
|
-
S.value = !0;
|
222
|
-
});
|
223
|
-
}
|
224
|
-
function ye(t) {
|
225
|
-
S.value = !1;
|
226
|
-
}
|
227
|
-
function Ve(t) {
|
228
|
-
(t == null || t === "" && !e.multiple && !P.value) && (u.value = []);
|
229
|
-
}
|
230
|
-
const W = _(!1);
|
231
|
-
function I(t) {
|
232
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
233
|
-
if (!(!t || t.props.disabled))
|
234
|
-
if (e.multiple) {
|
235
|
-
const f = u.value.findIndex((o) => (e.valueComparator || Ae)(o.value, t.value)), a = r ?? !~f;
|
236
|
-
if (~f) {
|
237
|
-
const o = a ? [...u.value, t] : [...u.value];
|
238
|
-
o.splice(f, 1), u.value = o;
|
239
|
-
} else a && (u.value = [...u.value, t]);
|
240
|
-
e.clearOnSelect && (v.value = "");
|
241
|
-
} else {
|
242
|
-
const f = r !== !1;
|
243
|
-
u.value = f ? [t] : [], v.value = f && !P.value ? t.title : "", ee(() => {
|
244
|
-
i.value = !1, g.value = !0;
|
245
|
-
});
|
246
|
-
}
|
247
|
-
}
|
248
|
-
return B(m, (t, r) => {
|
249
|
-
t !== r && (t ? (W.value = !0, v.value = e.multiple || P.value ? "" : String(u.value.at(-1)?.props.title ?? ""), g.value = !0, ee(() => W.value = !1)) : (!e.multiple && v.value == null && (u.value = []), i.value = !1, u.value.some((f) => {
|
250
|
-
let {
|
251
|
-
title: a
|
252
|
-
} = f;
|
253
|
-
return a === v.value;
|
254
|
-
}) || (v.value = ""), n.value = -1));
|
255
|
-
}), B(v, (t) => {
|
256
|
-
!m.value || W.value || (t && (i.value = !0), g.value = !t);
|
257
|
-
}), B(i, () => {
|
258
|
-
if (!e.hideSelected && i.value && u.value.length) {
|
259
|
-
const t = b.value.findIndex((r) => u.value.some((f) => r.value === f.value));
|
260
|
-
Pe && window.requestAnimationFrame(() => {
|
261
|
-
t >= 0 && F.value?.scrollToIndex(t);
|
262
|
-
});
|
263
|
-
}
|
264
|
-
}), B(() => e.items, (t, r) => {
|
265
|
-
i.value || m.value && !r.length && t.length && (i.value = !0);
|
266
|
-
}), Ee(() => {
|
267
|
-
const t = !!(!e.hideNoData || b.value.length || l["prepend-item"] || l["append-item"] || l["no-data"]), r = u.value.length > 0, f = J.filterProps(e);
|
268
|
-
return c(J, O({
|
269
|
-
ref: d
|
270
|
-
}, f, {
|
271
|
-
modelValue: v.value,
|
272
|
-
"onUpdate:modelValue": [(a) => v.value = a, Ve],
|
273
|
-
focused: m.value,
|
274
|
-
"onUpdate:focused": (a) => m.value = a,
|
275
|
-
validationValue: u.externalValue,
|
276
|
-
counterValue: ue.value,
|
277
|
-
dirty: r,
|
278
|
-
onChange: me,
|
279
|
-
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
280
|
-
"v-autocomplete--active-menu": i.value,
|
281
|
-
"v-autocomplete--chips": !!e.chips,
|
282
|
-
"v-autocomplete--selection-slot": !!P.value,
|
283
|
-
"v-autocomplete--selecting-index": n.value > -1
|
284
|
-
}, e.class],
|
285
|
-
style: e.style,
|
286
|
-
readonly: D.isReadonly.value,
|
287
|
-
placeholder: r ? void 0 : e.placeholder,
|
288
|
-
"onClick:clear": re,
|
289
|
-
"onMousedown:control": ce,
|
290
|
-
onKeydown: de
|
291
|
-
}), {
|
292
|
-
...l,
|
293
|
-
default: () => c(Y, null, [c(Be, O({
|
294
|
-
ref: h,
|
295
|
-
modelValue: i.value,
|
296
|
-
"onUpdate:modelValue": (a) => i.value = a,
|
297
|
-
activator: "parent",
|
298
|
-
contentClass: "v-autocomplete__content",
|
299
|
-
disabled: H.value,
|
300
|
-
eager: e.eager,
|
301
|
-
maxHeight: 310,
|
302
|
-
openOnClick: !1,
|
303
|
-
closeOnContentClick: !1,
|
304
|
-
transition: e.transition,
|
305
|
-
onAfterEnter: he,
|
306
|
-
onAfterLeave: pe
|
307
|
-
}, e.menuProps), {
|
308
|
-
default: () => [t && c(je, O({
|
309
|
-
ref: $,
|
310
|
-
selected: se.value,
|
311
|
-
selectStrategy: e.multiple ? "independent" : "single-independent",
|
312
|
-
onMousedown: (a) => a.preventDefault(),
|
313
|
-
onKeydown: ve,
|
314
|
-
onFocusin: ge,
|
315
|
-
onFocusout: ye,
|
316
|
-
tabindex: "-1",
|
317
|
-
"aria-live": "polite",
|
318
|
-
color: e.itemColor ?? e.color
|
319
|
-
}, ie, e.listProps), {
|
320
|
-
default: () => [l["prepend-item"]?.(), !b.value.length && !e.hideNoData && (l["no-data"]?.() ?? c(te, {
|
321
|
-
key: "no-data",
|
322
|
-
title: p(e.noDataText)
|
323
|
-
}, null)), c(be, {
|
324
|
-
ref: F,
|
325
|
-
renderless: !0,
|
326
|
-
items: b.value
|
327
|
-
}, {
|
328
|
-
default: (a) => {
|
329
|
-
let {
|
330
|
-
item: o,
|
331
|
-
index: k,
|
332
|
-
itemRef: N
|
333
|
-
} = a;
|
334
|
-
const R = O(o.props, {
|
335
|
-
ref: N,
|
336
|
-
key: o.value,
|
337
|
-
active: G.value && k === 0 ? !0 : void 0,
|
338
|
-
onClick: () => I(o, null)
|
339
|
-
});
|
340
|
-
return l.item?.({
|
341
|
-
item: o,
|
342
|
-
index: k,
|
343
|
-
props: R
|
344
|
-
}) ?? c(te, O(R, {
|
345
|
-
role: "option"
|
346
|
-
}), {
|
347
|
-
prepend: (T) => {
|
348
|
-
let {
|
349
|
-
isSelected: y
|
350
|
-
} = T;
|
351
|
-
return c(Y, null, [e.multiple && !e.hideSelected ? c(Ye, {
|
352
|
-
key: o.value,
|
353
|
-
modelValue: y,
|
354
|
-
ripple: !1,
|
355
|
-
tabindex: "-1"
|
356
|
-
}, null) : void 0, o.props.prependAvatar && c(ze, {
|
357
|
-
image: o.props.prependAvatar
|
358
|
-
}, null), o.props.prependIcon && c(le, {
|
359
|
-
icon: o.props.prependIcon
|
360
|
-
}, null)]);
|
361
|
-
},
|
362
|
-
title: () => g.value ? o.title : Je(o.title, oe(o)?.title, v.value?.length ?? 0)
|
363
|
-
});
|
364
|
-
}
|
365
|
-
}), l["append-item"]?.()]
|
366
|
-
})]
|
367
|
-
}), u.value.map((a, o) => {
|
368
|
-
function k(y) {
|
369
|
-
y.stopPropagation(), y.preventDefault(), I(a, !1);
|
370
|
-
}
|
371
|
-
const N = {
|
372
|
-
"onClick:close": k,
|
373
|
-
onKeydown(y) {
|
374
|
-
y.key !== "Enter" && y.key !== " " || (y.preventDefault(), y.stopPropagation(), k(y));
|
375
|
-
},
|
376
|
-
onMousedown(y) {
|
377
|
-
y.preventDefault(), y.stopPropagation();
|
378
|
-
},
|
379
|
-
modelValue: !0,
|
380
|
-
"onUpdate:modelValue": void 0
|
381
|
-
}, R = K.value ? !!l.chip : !!l.selection, T = R ? Te(K.value ? l.chip({
|
382
|
-
item: a,
|
383
|
-
index: o,
|
384
|
-
props: N
|
385
|
-
}) : l.selection({
|
386
|
-
item: a,
|
387
|
-
index: o
|
388
|
-
})) : void 0;
|
389
|
-
if (!(R && !T))
|
390
|
-
return c("div", {
|
391
|
-
key: a.value,
|
392
|
-
class: ["v-autocomplete__selection", o === n.value && ["v-autocomplete__selection--selected", A.value]],
|
393
|
-
style: o === n.value ? ne.value : {}
|
394
|
-
}, [K.value ? l.chip ? c(Ge, {
|
395
|
-
key: "chip-defaults",
|
396
|
-
defaults: {
|
397
|
-
VChip: {
|
398
|
-
closable: e.closableChips,
|
399
|
-
size: "small",
|
400
|
-
text: a.title
|
401
|
-
}
|
402
|
-
}
|
403
|
-
}, {
|
404
|
-
default: () => [T]
|
405
|
-
}) : c(He, O({
|
406
|
-
key: "chip",
|
407
|
-
closable: e.closableChips,
|
408
|
-
size: "small",
|
409
|
-
text: a.title,
|
410
|
-
disabled: a.props.disabled
|
411
|
-
}, N), null) : T ?? c("span", {
|
412
|
-
class: "v-autocomplete__selection-text"
|
413
|
-
}, [a.title, e.multiple && o < u.value.length - 1 && c("span", {
|
414
|
-
class: "v-autocomplete__selection-comma"
|
415
|
-
}, [De(",")])])]);
|
416
|
-
})]),
|
417
|
-
"append-inner": function() {
|
418
|
-
for (var a = arguments.length, o = new Array(a), k = 0; k < a; k++)
|
419
|
-
o[k] = arguments[k];
|
420
|
-
return c(Y, null, [l["append-inner"]?.(...o), e.menuIcon ? c(le, {
|
421
|
-
class: "v-autocomplete__menu-icon",
|
422
|
-
icon: e.menuIcon,
|
423
|
-
onMousedown: fe,
|
424
|
-
onClick: Re,
|
425
|
-
"aria-label": p(E.value),
|
426
|
-
title: p(E.value),
|
427
|
-
tabindex: "-1"
|
428
|
-
}, null) : void 0]);
|
429
|
-
}
|
430
|
-
});
|
431
|
-
}), Ne({
|
432
|
-
isFocused: m,
|
433
|
-
isPristine: g,
|
434
|
-
menu: i,
|
435
|
-
search: v,
|
436
|
-
filteredItems: z,
|
437
|
-
select: I
|
438
|
-
}, d);
|
439
|
-
}
|
440
|
-
});
|
441
|
-
Se("css/revolugo.vautocomplete.CuVjyvcC.css");
|
442
|
-
export {
|
443
|
-
ft as V
|
444
|
-
};
|
445
|
-
//# sourceMappingURL=revolugo.vautocomplete.CPWUQuA8.min.js.map
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import { $ as E, a0 as h, ad as i, ae as y, bP as C, bQ as N, a as s, D as r, aN as L, a1 as V, J as T, K as k } from "./revolugo.index.wc.jjeh0psC.min.js";
|
2
|
-
import { b as _, d as x, u as B, p as O, h as w, m as P, M as R } from "./revolugo.webcomponentwrapper.Cl0TkD0k.min.js";
|
3
|
-
import { l as M, p as Y } from "./revolugo.index.CpbrPSdc.min.js";
|
4
|
-
import { b as U, a as G } from "./revolugo.rounded.NtUKwXJe.min.js";
|
5
|
-
import { V as I } from "./revolugo.vicon.WVuIv40M.min.js";
|
6
|
-
function S(e) {
|
7
|
-
try {
|
8
|
-
if (typeof document < "u") {
|
9
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
10
|
-
sheets: [],
|
11
|
-
components: []
|
12
|
-
};
|
13
|
-
const t = import.meta.url, n = t.slice(0, t.lastIndexOf("/") + 1) + e;
|
14
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(n);
|
15
|
-
for (const o of REVOLUGO_ELEMENTS_STYLES.components)
|
16
|
-
o(n);
|
17
|
-
if (e.indexOf("fonts") >= 0) {
|
18
|
-
const o = document.createElement("link");
|
19
|
-
o.rel = "stylesheet", linK.href = n, document.head.appendChild(o);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
} catch (t) {
|
23
|
-
console.error("[revolugo-elements] ", t);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
const $ = h({
|
27
|
-
bordered: Boolean,
|
28
|
-
color: String,
|
29
|
-
content: [Number, String],
|
30
|
-
dot: Boolean,
|
31
|
-
floating: Boolean,
|
32
|
-
icon: V,
|
33
|
-
inline: Boolean,
|
34
|
-
label: {
|
35
|
-
type: String,
|
36
|
-
default: "$vuetify.badge"
|
37
|
-
},
|
38
|
-
max: [Number, String],
|
39
|
-
modelValue: {
|
40
|
-
type: Boolean,
|
41
|
-
default: !0
|
42
|
-
},
|
43
|
-
offsetX: [Number, String],
|
44
|
-
offsetY: [Number, String],
|
45
|
-
textColor: String,
|
46
|
-
...P(),
|
47
|
-
...Y({
|
48
|
-
location: "top end"
|
49
|
-
}),
|
50
|
-
...G(),
|
51
|
-
...w(),
|
52
|
-
...L(),
|
53
|
-
...O({
|
54
|
-
transition: "scale-rotate-transition"
|
55
|
-
})
|
56
|
-
}, "VBadge"), F = E()({
|
57
|
-
name: "VBadge",
|
58
|
-
inheritAttrs: !1,
|
59
|
-
props: $(),
|
60
|
-
setup(e, t) {
|
61
|
-
const {
|
62
|
-
backgroundColorClasses: n,
|
63
|
-
backgroundColorStyles: o
|
64
|
-
} = _(i(e, "color")), {
|
65
|
-
roundedClasses: d
|
66
|
-
} = U(e), {
|
67
|
-
t: c
|
68
|
-
} = y(), {
|
69
|
-
textColorClasses: u,
|
70
|
-
textColorStyles: m
|
71
|
-
} = x(i(e, "textColor")), {
|
72
|
-
themeClasses: b
|
73
|
-
} = C(), {
|
74
|
-
locationStyles: f
|
75
|
-
} = M(e, !0, (a) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(a) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(a) ? Number(e.offsetX ?? 0) : 0));
|
76
|
-
return B(() => {
|
77
|
-
const a = Number(e.content), l = !e.max || isNaN(a) ? e.content : a <= Number(e.max) ? a : `${e.max}+`, [g, v] = N(t.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
78
|
-
return s(e.tag, r({
|
79
|
-
class: ["v-badge", {
|
80
|
-
"v-badge--bordered": e.bordered,
|
81
|
-
"v-badge--dot": e.dot,
|
82
|
-
"v-badge--floating": e.floating,
|
83
|
-
"v-badge--inline": e.inline
|
84
|
-
}, e.class]
|
85
|
-
}, v, {
|
86
|
-
style: e.style
|
87
|
-
}), {
|
88
|
-
default: () => [s("div", {
|
89
|
-
class: "v-badge__wrapper"
|
90
|
-
}, [t.slots.default?.(), s(R, {
|
91
|
-
transition: e.transition
|
92
|
-
}, {
|
93
|
-
default: () => [T(s("span", r({
|
94
|
-
class: ["v-badge__badge", b.value, n.value, d.value, u.value],
|
95
|
-
style: [o.value, m.value, e.inline ? {} : f.value],
|
96
|
-
"aria-atomic": "true",
|
97
|
-
"aria-label": c(e.label, a),
|
98
|
-
"aria-live": "polite",
|
99
|
-
role: "status"
|
100
|
-
}, g), [e.dot ? void 0 : t.slots.badge ? t.slots.badge?.() : e.icon ? s(I, {
|
101
|
-
icon: e.icon
|
102
|
-
}, null) : l]), [[k, e.modelValue]])]
|
103
|
-
})])]
|
104
|
-
});
|
105
|
-
}), {};
|
106
|
-
}
|
107
|
-
});
|
108
|
-
S("css/revolugo.vbadge.C45eZpxy.css");
|
109
|
-
export {
|
110
|
-
F as V
|
111
|
-
};
|
112
|
-
//# sourceMappingURL=revolugo.vbadge.B41nGplL.min.js.map
|