@revolugo/elements 6.8.2-beta.30 → 6.8.2-beta.32
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/revolugo.bdaterangepicker.D1e8WHUE.css +1 -0
- package/dist/css/revolugo.bimagecarousel.DFlgQMzq.css +1 -0
- package/dist/css/{revolugo.btag.g-q3eChG.css → revolugo.btag.CYbY5J61.css} +1 -1
- package/dist/css/revolugo.hotelroomofferlist.Dh1OAA7W.css +1 -0
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/{revolugo.vsnackbar.Cj7AcupY.css → revolugo.vsnackbar.CCfuo3ao.css} +1 -1
- package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.BNxGrktU.css} +2 -2
- package/dist/index.es.min.js +1927 -2144
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo._baseiteratee.CLhJGa_I.min.js → revolugo._baseiteratee.6H9boq3g.min.js} +3 -3
- package/dist/{revolugo.banktransferdetails.Djs6mxU0.min.js → revolugo.banktransferdetails.BLIe136S.min.js} +9 -9
- package/dist/revolugo.bdaterangepicker.Hf5naLtO.min.js +8328 -0
- package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.C3xbTcQN.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DhvK2mdJ.min.js} +32 -36
- package/dist/{revolugo.bhoteloffersfilterbar.CVh2pH-N.min.js → revolugo.bhoteloffersfilterbar.DicKWcI_.min.js} +1672 -1766
- package/dist/{revolugo.bhotelroomsdetails.C4xdQLfe.min.js → revolugo.bhotelroomsdetails.BZUH-ZM3.min.js} +79 -83
- package/dist/{revolugo.bhotelsearchbar.DR7UHkQo.min.js → revolugo.bhotelsearchbar.C0QSx8nR.min.js} +116 -119
- package/dist/{revolugo.bimagecarousel.DhwrLMiX.min.js → revolugo.bimagecarousel.i3XKJie3.min.js} +165 -174
- package/dist/{revolugo.bookingdetailssidebar.DkBHaNwV.min.js → revolugo.bookingdetailssidebar.La43Csfa.min.js} +4 -4
- package/dist/{revolugo.bookingdetailssidebar.DwIul6C1.min.js → revolugo.bookingdetailssidebar.pzLkF0dO.min.js} +207 -221
- package/dist/{revolugo.bookingmanager.CmdsCQDi.min.js → revolugo.bookingmanager.Sx2krZHP.min.js} +429 -463
- package/dist/{revolugo.bpricesummaryskeleton.BcgNLGYX.min.js → revolugo.bpricesummaryskeleton.DoLktkiO.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.B4psJ9Sg.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DkRSrr6-.min.js} +148 -157
- package/dist/revolugo.btag.DqKCcO64.min.js +375 -0
- package/dist/{revolugo.cancellationpoliciesbadge.D7CMWTdG.min.js → revolugo.cancellationpoliciesbadge.CDsOorfl.min.js} +86 -95
- package/dist/{revolugo.cancellationpoliciesbadge.Bp43_l5_.min.js → revolugo.cancellationpoliciesbadge.DNXgKhv6.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.hSJAFEGT.min.js → revolugo.cancellationpolicieslist.M5d1D5ot.min.js} +9 -9
- package/dist/{revolugo.cancellationpolicieslist.D2idtSnK.min.js → revolugo.cancellationpolicieslist.v9YSV-JD.min.js} +4 -4
- package/dist/revolugo.case-transformers.CZexLFCC.min.js +123 -0
- package/dist/{revolugo.creditcardform.CrwpUivQ.min.js → revolugo.creditcardform.BwNdpOYa.min.js} +4 -4
- package/dist/{revolugo.creditcardform.SRz4ls19.min.js → revolugo.creditcardform.DIm8PFZB.min.js} +38 -51
- package/dist/{revolugo.creditcardpayment.bSs8I8av.min.js → revolugo.creditcardpayment.B-Pu0q9P.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.BcVHQlKJ.min.js → revolugo.creditcardpayment.CXpVfsjF.min.js} +152 -162
- package/dist/{revolugo.currencypicker.-B3knz6i.min.js → revolugo.currencypicker.CYlyvR4X.min.js} +7 -7
- package/dist/{revolugo.currencypickerbtn.CyHWGHaW.min.js → revolugo.currencypickerbtn.BT6jQ33A.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.D38ZdlKW.min.js → revolugo.currencypickerbtn.D-qAsHj-.min.js} +42 -45
- package/dist/{revolugo.defaultsdeep.z9urzKAp.min.js → revolugo.defaultsdeep.xStfx1ax.min.js} +2 -2
- package/dist/{revolugo.dialog-attach.D_OA19-E.min.js → revolugo.dialog-attach.DhGjpV86.min.js} +5 -6
- package/dist/revolugo.dialog-transition.Bcw3NUGf.min.js +111 -0
- package/dist/{revolugo.fastbookingflow.CJP79XT7.min.js → revolugo.fastbookingflow.BvOeLD5-.min.js} +6 -6
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/{revolugo.fullbookingflow.Cd2NIaQ2.min.js → revolugo.fullbookingflow.CXY4HX1N.min.js} +122 -128
- package/dist/{revolugo.hotel-offer-request.CgsVMCkE.min.js → revolugo.hotel-offer-request.Ckk1mKtM.min.js} +18 -18
- package/dist/{revolugo.hoteldescriptionview.BSrnxJem.min.js → revolugo.hoteldescriptionview.BEjBGuX8.min.js} +591 -623
- package/dist/{revolugo.hoteldescriptionview.Cl2E63e2.min.js → revolugo.hoteldescriptionview.Dup60cXR.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.BMzCfYQ7.min.js → revolugo.hotelofferitemlayout.BHmFEPSg.min.js} +12 -12
- package/dist/{revolugo.hotelofferlist.B3yjbXlQ.min.js → revolugo.hotelofferlist.Bx4nX-96.min.js} +1563 -1693
- package/dist/{revolugo.hotelofferlist.DhYBX5pF.min.js → revolugo.hotelofferlist.C6LDBssl.min.js} +4 -4
- package/dist/{revolugo.hotelofferrequestcreator.CNbav2EO.min.js → revolugo.hotelofferrequestcreator.Dh7iqMnT.min.js} +5 -5
- package/dist/{revolugo.hoteloffersearchmenu.BZascblw.min.js → revolugo.hoteloffersearchmenu.CCwN9-vq.min.js} +9 -9
- package/dist/{revolugo.hoteloffersmap.DkNN0NQB.min.js → revolugo.hoteloffersmap.CIKwD_xJ.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.D6hRTrsf.min.js → revolugo.hoteloffersmap.m4FlKwmK.min.js} +563 -574
- package/dist/{revolugo.hoteloffersview.DjAXSPOG.min.js → revolugo.hoteloffersview.B173js2k.min.js} +123 -128
- package/dist/{revolugo.hoteloffersview.CPYXigVN.min.js → revolugo.hoteloffersview.BqnmWsMz.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.C_HCimvP.min.js → revolugo.hotelroomofferlist.BZXX-P21.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.wD_JIpuK.min.js → revolugo.hotelroomofferlist.DRs28YA0.min.js} +879 -958
- package/dist/{revolugo.hotelroomofferrequestcreator.props.DjBXUl-H.min.js → revolugo.hotelroomofferrequestcreator.props.DYl1bNk3.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersbookingflow.2E3AYERj.min.js → revolugo.hotelroomoffersbookingflow.BcLRNLjr.min.js} +333 -358
- package/dist/{revolugo.hotelroomoffersearchmenu.B-C4YSFE.min.js → revolugo.hotelroomoffersearchmenu.CNesdHU7.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.DrW5uMfL.min.js → revolugo.hotelroomoffersearchmenu.Wp752y1o.min.js} +34 -36
- package/dist/{revolugo.hotelroomoffersview.DVsdh7Jz.min.js → revolugo.hotelroomoffersview.DLI5HjEV.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.CCmILEaO.min.js → revolugo.hotelroomoffersview.DjawPPhb.min.js} +67 -70
- package/dist/{revolugo.index.Dyr1hnew.min.js → revolugo.index.DmlGotxY.min.js} +406 -429
- package/dist/{revolugo.index.wc.BaFPloEH.min.js → revolugo.index.wc.WVpKRxMB.min.js} +6421 -6529
- package/dist/{revolugo.langpicker.CaQ17b6t.min.js → revolugo.langpicker.DH2bznjc.min.js} +24 -27
- package/dist/{revolugo.langpickerbtn.DTkV9PYE.min.js → revolugo.langpickerbtn.DZv8SOmQ.min.js} +4 -4
- package/dist/revolugo.langpickerbtn._diECV_y.min.js +114 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.pathify.CKNqCKLR.min.js → revolugo.pathify.BuwB3BVA.min.js} +4 -4
- package/dist/{revolugo.prebookform.p-M6zS08.min.js → revolugo.prebookform.Bcz1mlsa.min.js} +4 -4
- package/dist/{revolugo.prebookform.CxKmwFK-.min.js → revolugo.prebookform.Bj_b0HkS.min.js} +98 -102
- package/dist/{revolugo.roominglisteditor.5gfIA3r6.min.js → revolugo.roominglisteditor.C0Rz5zK-.min.js} +98 -104
- package/dist/{revolugo.roominglisteditor.Zz9TPhp6.min.js → revolugo.roominglisteditor.C2Q0WwI8.min.js} +4 -4
- package/dist/{revolugo.rounded.CQuigzpH.min.js → revolugo.rounded.9zOj37mK.min.js} +2 -2
- package/dist/{revolugo.ssrboot.DfQY0r5E.min.js → revolugo.ssrboot.Dobig8z2.min.js} +2 -2
- package/dist/{revolugo.storybooktoolbar.DikXrkgz.min.js → revolugo.storybooktoolbar.mGWlvD2d.min.js} +98 -102
- package/dist/{revolugo.termsandconditions.Bbo5pbgR.min.js → revolugo.termsandconditions.TXeTt1Nc.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.CiHuvfp6.min.js → revolugo.termsandconditions.X_g9eXJQ.min.js} +52 -55
- package/dist/revolugo.use-breakpoint-service.B4fTuJ-m.min.js +39 -0
- package/dist/revolugo.use-dialog-attach.Clv6_XDd.min.js +16 -0
- package/dist/revolugo.use-html-element.BeuzybMb.min.js +11 -0
- package/dist/revolugo.vautocomplete.Ct5J0tRD.min.js +445 -0
- package/dist/revolugo.vbadge.QbwE0z0S.min.js +112 -0
- package/dist/revolugo.vbtn.wY8QdelT.min.js +398 -0
- package/dist/revolugo.vcard.B-jDhizq.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.DOldzxr3.min.js +478 -0
- package/dist/revolugo.vdialog.TOtJcCR5.min.js +133 -0
- package/dist/{revolugo.vdivider.93Ehbd8W.min.js → revolugo.vdivider.C5hf52x9.min.js} +3 -3
- package/dist/revolugo.vexpansionpanels.rpkSdxyn.min.js +262 -0
- package/dist/revolugo.vform.D9o42qf6.min.js +46 -0
- package/dist/revolugo.vicon.DNDpBQSo.min.js +105 -0
- package/dist/revolugo.vinput.Z7Yl1GBk.min.js +463 -0
- package/dist/revolugo.vlabel.Bv07dXLJ.min.js +48 -0
- package/dist/revolugo.vlist.Dc4CBbyk.min.js +1299 -0
- package/dist/revolugo.vmenu.M77T6yV3.min.js +145 -0
- package/dist/revolugo.vselect.ho1sqVZQ.min.js +660 -0
- package/dist/{revolugo.vsheet.H2Eli2di.min.js → revolugo.vsheet.gTN06v3j.min.js} +11 -11
- package/dist/{revolugo.vskeletonloader.B-Qq0740.min.js → revolugo.vskeletonloader.CiGvw4Fx.min.js} +57 -58
- package/dist/revolugo.vslidegroup.BmHjyRja.min.js +325 -0
- package/dist/revolugo.vsnackbar.j4tc9aCn.min.js +198 -0
- package/dist/revolugo.vspacer.B5ih922c.min.js +7 -0
- package/dist/{revolugo.vtextarea.BJaCwHl5.min.js → revolugo.vtextarea.V23aCbtI.min.js} +361 -371
- package/dist/revolugo.vtextfield.BKLBPM7L.min.js +501 -0
- package/dist/revolugo.vtoolbar.Csrzhb69.min.js +180 -0
- package/dist/revolugo.vtooltip.D5h38LhM.min.js +89 -0
- package/dist/revolugo.vwindowitem.DwV9VIGY.min.js +317 -0
- package/dist/revolugo.watch-list.dDO5YYYm.min.js +16 -0
- package/dist/{revolugo.webcomponentwrapper.Byzhja-M.min.js → revolugo.webcomponentwrapper.Ggu2FW__.min.js} +779 -825
- package/package.json +1 -1
- package/dist/css/revolugo.bdaterangepicker.BLYZnPjh.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.CCKyS5V3.css +0 -1
- package/dist/css/revolugo.index.4hIg6F8J.css +0 -1
- package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
- package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
- package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
- package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
- package/dist/revolugo.bdaterangepicker.D9a3kNuM.min.js +0 -8436
- package/dist/revolugo.btag.mY1ErEMj.min.js +0 -389
- package/dist/revolugo.case-transformers.VM7X_9Q1.min.js +0 -123
- package/dist/revolugo.dialog-transition.D9Rvu5kv.min.js +0 -114
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
- package/dist/revolugo.langpickerbtn.DmoEWum3.min.js +0 -126
- package/dist/revolugo.use-breakpoint-service.BLlHYRIa.min.js +0 -45
- package/dist/revolugo.use-html-element.C-V3ql2M.min.js +0 -12
- package/dist/revolugo.vautocomplete.CimHObsW.min.js +0 -467
- package/dist/revolugo.vbadge.dOVHEqkO.min.js +0 -118
- package/dist/revolugo.vbtn.C5rBd2Qx.min.js +0 -417
- package/dist/revolugo.vcard.Dw6Qxohz.min.js +0 -329
- package/dist/revolugo.vcheckboxbtn.oJMjQhq7.min.js +0 -491
- package/dist/revolugo.vdialog.DBJFoM4O.min.js +0 -139
- package/dist/revolugo.vexpansionpanels.nGkPqsEk.min.js +0 -277
- package/dist/revolugo.vform.D7BJmMQ-.min.js +0 -50
- package/dist/revolugo.vicon.CuIGTijn.min.js +0 -106
- package/dist/revolugo.vinput.C6k3-74L.min.js +0 -478
- package/dist/revolugo.vlabel.BNLTPj0h.min.js +0 -51
- package/dist/revolugo.vlist.B56e-cT_.min.js +0 -1348
- package/dist/revolugo.vmenu.DhHohFn7.min.js +0 -152
- package/dist/revolugo.vselect.BHhGGQU3.min.js +0 -689
- package/dist/revolugo.vslidegroup.ChtHIkDN.min.js +0 -333
- package/dist/revolugo.vsnackbar.-lEdFT5G.min.js +0 -201
- package/dist/revolugo.vspacer.DaFDHuC9.min.js +0 -7
- package/dist/revolugo.vtextfield.CMQN6tSz.min.js +0 -508
- package/dist/revolugo.vtoolbar.CSyyGTVc.min.js +0 -188
- package/dist/revolugo.vtooltip.CvplYWvb.min.js +0 -90
- package/dist/revolugo.vwindowitem.bzpa5cVc.min.js +0 -329
- package/dist/revolugo.watch-list.Be1UUzWP.min.js +0 -16
@@ -0,0 +1,463 @@
|
|
1
|
+
import { ad as H, a as y, bO as J, cw as A, a3 as R, J as d, $ as w, a1 as _, _ as F, a4 as O, aj as Q, a6 as B, k as D, O as I, al as q, ac as X, ai as Z, aJ as z, bW as ee, p as ae, b2 as ne, W as te, V as se, aQ as $, T as le, aI as ie, aC as ue, aK as oe, aY as re, a0 as L } from "./revolugo.index.wc.WVpKRxMB.min.js";
|
2
|
+
import { V as de } from "./revolugo.vicon.DNDpBQSo.min.js";
|
3
|
+
import { z as ce, s as ve, m as fe } from "./revolugo.index.DmlGotxY.min.js";
|
4
|
+
import { d as me, u as N, M as ge, p as ye, m as U, n as pe, o as he } from "./revolugo.webcomponentwrapper.Ggu2FW__.min.js";
|
5
|
+
function j(e) {
|
6
|
+
try {
|
7
|
+
if (typeof document < "u") {
|
8
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
9
|
+
sheets: [],
|
10
|
+
components: []
|
11
|
+
};
|
12
|
+
const s = import.meta.url, u = s.slice(0, s.lastIndexOf("/") + 1) + e;
|
13
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(u);
|
14
|
+
for (const n of REVOLUGO_ELEMENTS_STYLES.components)
|
15
|
+
n(u);
|
16
|
+
if (e.indexOf("fonts") >= 0) {
|
17
|
+
const n = document.createElement("link");
|
18
|
+
n.rel = "stylesheet", linK.href = u, document.head.appendChild(n);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
} catch (s) {
|
22
|
+
console.error("[revolugo-elements] ", s);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
function Ve(e) {
|
26
|
+
const {
|
27
|
+
t: s
|
28
|
+
} = H();
|
29
|
+
function u(n) {
|
30
|
+
let {
|
31
|
+
name: o
|
32
|
+
} = n;
|
33
|
+
const a = {
|
34
|
+
prepend: "prependAction",
|
35
|
+
prependInner: "prependAction",
|
36
|
+
append: "appendAction",
|
37
|
+
appendInner: "appendAction",
|
38
|
+
clear: "clear"
|
39
|
+
}[o], i = e[`onClick:${o}`];
|
40
|
+
function g(f) {
|
41
|
+
f.key !== "Enter" && f.key !== " " || (f.preventDefault(), f.stopPropagation(), J(i, new PointerEvent("click", f)));
|
42
|
+
}
|
43
|
+
const h = i && a ? s(`$vuetify.input.${a}`, e.label ?? "") : void 0;
|
44
|
+
return y(de, {
|
45
|
+
icon: e[`${o}Icon`],
|
46
|
+
"aria-label": h,
|
47
|
+
onClick: i,
|
48
|
+
onKeydown: g
|
49
|
+
}, null);
|
50
|
+
}
|
51
|
+
return {
|
52
|
+
InputIcon: u
|
53
|
+
};
|
54
|
+
}
|
55
|
+
const be = w({
|
56
|
+
focused: Boolean,
|
57
|
+
"onUpdate:focused": _()
|
58
|
+
}, "focus");
|
59
|
+
function Be(e) {
|
60
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : A();
|
61
|
+
const u = R(e, "focused"), n = d(() => ({
|
62
|
+
[`${s}--focused`]: u.value
|
63
|
+
}));
|
64
|
+
function o() {
|
65
|
+
u.value = !0;
|
66
|
+
}
|
67
|
+
function a() {
|
68
|
+
u.value = !1;
|
69
|
+
}
|
70
|
+
return {
|
71
|
+
focusClasses: n,
|
72
|
+
isFocused: u,
|
73
|
+
focus: o,
|
74
|
+
blur: a
|
75
|
+
};
|
76
|
+
}
|
77
|
+
const Se = w({
|
78
|
+
active: Boolean,
|
79
|
+
color: String,
|
80
|
+
messages: {
|
81
|
+
type: [Array, String],
|
82
|
+
default: () => []
|
83
|
+
},
|
84
|
+
...U(),
|
85
|
+
...ye({
|
86
|
+
transition: {
|
87
|
+
component: ce,
|
88
|
+
leaveAbsolute: !0,
|
89
|
+
group: !0
|
90
|
+
}
|
91
|
+
})
|
92
|
+
}, "VMessages"), Ee = F()({
|
93
|
+
name: "VMessages",
|
94
|
+
props: Se(),
|
95
|
+
setup(e, s) {
|
96
|
+
let {
|
97
|
+
slots: u
|
98
|
+
} = s;
|
99
|
+
const n = d(() => O(e.messages)), {
|
100
|
+
textColorClasses: o,
|
101
|
+
textColorStyles: a
|
102
|
+
} = me(d(() => e.color));
|
103
|
+
return N(() => y(ge, {
|
104
|
+
transition: e.transition,
|
105
|
+
tag: "div",
|
106
|
+
class: ["v-messages", o.value, e.class],
|
107
|
+
style: [a.value, e.style]
|
108
|
+
}, {
|
109
|
+
default: () => [e.active && n.value.map((i, g) => y("div", {
|
110
|
+
class: "v-messages__message",
|
111
|
+
key: `${g}-${n.value}`
|
112
|
+
}, [u.message ? u.message({
|
113
|
+
message: i
|
114
|
+
}) : i]))]
|
115
|
+
})), {};
|
116
|
+
}
|
117
|
+
}), K = Symbol.for("vuetify:form"), De = w({
|
118
|
+
disabled: Boolean,
|
119
|
+
fastFail: Boolean,
|
120
|
+
readonly: Boolean,
|
121
|
+
modelValue: {
|
122
|
+
type: Boolean,
|
123
|
+
default: null
|
124
|
+
},
|
125
|
+
validateOn: {
|
126
|
+
type: String,
|
127
|
+
default: "input"
|
128
|
+
}
|
129
|
+
}, "form");
|
130
|
+
function Re(e) {
|
131
|
+
const s = R(e, "modelValue"), u = d(() => e.disabled), n = d(() => e.readonly), o = B(!1), a = D([]), i = D([]);
|
132
|
+
async function g() {
|
133
|
+
const t = [];
|
134
|
+
let l = !0;
|
135
|
+
i.value = [], o.value = !0;
|
136
|
+
for (const c of a.value) {
|
137
|
+
const r = await c.validate();
|
138
|
+
if (r.length > 0 && (l = !1, t.push({
|
139
|
+
id: c.id,
|
140
|
+
errorMessages: r
|
141
|
+
})), !l && e.fastFail) break;
|
142
|
+
}
|
143
|
+
return i.value = t, o.value = !1, {
|
144
|
+
valid: l,
|
145
|
+
errors: i.value
|
146
|
+
};
|
147
|
+
}
|
148
|
+
function h() {
|
149
|
+
a.value.forEach((t) => t.reset());
|
150
|
+
}
|
151
|
+
function f() {
|
152
|
+
a.value.forEach((t) => t.resetValidation());
|
153
|
+
}
|
154
|
+
return I(a, () => {
|
155
|
+
let t = 0, l = 0;
|
156
|
+
const c = [];
|
157
|
+
for (const r of a.value)
|
158
|
+
r.isValid === !1 ? (l++, c.push({
|
159
|
+
id: r.id,
|
160
|
+
errorMessages: r.errorMessages
|
161
|
+
})) : r.isValid === !0 && t++;
|
162
|
+
i.value = c, s.value = l > 0 ? !1 : t === a.value.length ? !0 : null;
|
163
|
+
}, {
|
164
|
+
deep: !0,
|
165
|
+
flush: "post"
|
166
|
+
}), q(K, {
|
167
|
+
register: (t) => {
|
168
|
+
let {
|
169
|
+
id: l,
|
170
|
+
vm: c,
|
171
|
+
validate: r,
|
172
|
+
reset: b,
|
173
|
+
resetValidation: V
|
174
|
+
} = t;
|
175
|
+
a.value.some((E) => E.id === l), a.value.push({
|
176
|
+
id: l,
|
177
|
+
validate: r,
|
178
|
+
reset: b,
|
179
|
+
resetValidation: V,
|
180
|
+
vm: Z(c),
|
181
|
+
isValid: null,
|
182
|
+
errorMessages: []
|
183
|
+
});
|
184
|
+
},
|
185
|
+
unregister: (t) => {
|
186
|
+
a.value = a.value.filter((l) => l.id !== t);
|
187
|
+
},
|
188
|
+
update: (t, l, c) => {
|
189
|
+
const r = a.value.find((b) => b.id === t);
|
190
|
+
r && (r.isValid = l, r.errorMessages = c);
|
191
|
+
},
|
192
|
+
isDisabled: u,
|
193
|
+
isReadonly: n,
|
194
|
+
isValidating: o,
|
195
|
+
isValid: s,
|
196
|
+
items: a,
|
197
|
+
validateOn: X(e, "validateOn")
|
198
|
+
}), {
|
199
|
+
errors: i,
|
200
|
+
isDisabled: u,
|
201
|
+
isReadonly: n,
|
202
|
+
isValidating: o,
|
203
|
+
isValid: s,
|
204
|
+
items: a,
|
205
|
+
validate: g,
|
206
|
+
reset: h,
|
207
|
+
resetValidation: f
|
208
|
+
};
|
209
|
+
}
|
210
|
+
function Me(e) {
|
211
|
+
const s = Q(K, null);
|
212
|
+
return {
|
213
|
+
...s,
|
214
|
+
isReadonly: d(() => !!(e?.readonly ?? s?.isReadonly.value)),
|
215
|
+
isDisabled: d(() => !!(e?.disabled ?? s?.isDisabled.value))
|
216
|
+
};
|
217
|
+
}
|
218
|
+
const ke = w({
|
219
|
+
disabled: {
|
220
|
+
type: Boolean,
|
221
|
+
default: null
|
222
|
+
},
|
223
|
+
error: Boolean,
|
224
|
+
errorMessages: {
|
225
|
+
type: [Array, String],
|
226
|
+
default: () => []
|
227
|
+
},
|
228
|
+
maxErrors: {
|
229
|
+
type: [Number, String],
|
230
|
+
default: 1
|
231
|
+
},
|
232
|
+
name: String,
|
233
|
+
label: String,
|
234
|
+
readonly: {
|
235
|
+
type: Boolean,
|
236
|
+
default: null
|
237
|
+
},
|
238
|
+
rules: {
|
239
|
+
type: Array,
|
240
|
+
default: () => []
|
241
|
+
},
|
242
|
+
modelValue: null,
|
243
|
+
validateOn: String,
|
244
|
+
validationValue: null,
|
245
|
+
...be()
|
246
|
+
}, "validation");
|
247
|
+
function Ie(e) {
|
248
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : A(), u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : z();
|
249
|
+
const n = R(e, "modelValue"), o = d(() => e.validationValue === void 0 ? n.value : e.validationValue), a = Me(e), i = D([]), g = B(!0), h = d(() => !!(O(n.value === "" ? null : n.value).length || O(o.value === "" ? null : o.value).length)), f = d(() => e.errorMessages?.length ? O(e.errorMessages).concat(i.value).slice(0, Math.max(0, Number(e.maxErrors))) : i.value), t = d(() => {
|
250
|
+
let m = (e.validateOn ?? a.validateOn?.value) || "input";
|
251
|
+
m === "lazy" && (m = "input lazy"), m === "eager" && (m = "input eager");
|
252
|
+
const v = new Set(m?.split(" ") ?? []);
|
253
|
+
return {
|
254
|
+
input: v.has("input"),
|
255
|
+
blur: v.has("blur") || v.has("input") || v.has("invalid-input"),
|
256
|
+
invalidInput: v.has("invalid-input"),
|
257
|
+
lazy: v.has("lazy"),
|
258
|
+
eager: v.has("eager")
|
259
|
+
};
|
260
|
+
}), l = d(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? g.value ? i.value.length || t.value.lazy ? null : !0 : !i.value.length : !0), c = B(!1), r = d(() => ({
|
261
|
+
[`${s}--error`]: l.value === !1,
|
262
|
+
[`${s}--dirty`]: h.value,
|
263
|
+
[`${s}--disabled`]: a.isDisabled.value,
|
264
|
+
[`${s}--readonly`]: a.isReadonly.value
|
265
|
+
})), b = ee("validation"), V = d(() => e.name ?? ae(u));
|
266
|
+
ne(() => {
|
267
|
+
a.register?.({
|
268
|
+
id: V.value,
|
269
|
+
vm: b,
|
270
|
+
validate: p,
|
271
|
+
reset: E,
|
272
|
+
resetValidation: M
|
273
|
+
});
|
274
|
+
}), te(() => {
|
275
|
+
a.unregister?.(V.value);
|
276
|
+
}), se(async () => {
|
277
|
+
t.value.lazy || await p(!t.value.eager), a.update?.(V.value, l.value, f.value);
|
278
|
+
}), $(() => t.value.input || t.value.invalidInput && l.value === !1, () => {
|
279
|
+
I(o, () => {
|
280
|
+
if (o.value != null)
|
281
|
+
p();
|
282
|
+
else if (e.focused) {
|
283
|
+
const m = I(() => e.focused, (v) => {
|
284
|
+
v || p(), m();
|
285
|
+
});
|
286
|
+
}
|
287
|
+
});
|
288
|
+
}), $(() => t.value.blur, () => {
|
289
|
+
I(() => e.focused, (m) => {
|
290
|
+
m || p();
|
291
|
+
});
|
292
|
+
}), I([l, f], () => {
|
293
|
+
a.update?.(V.value, l.value, f.value);
|
294
|
+
});
|
295
|
+
async function E() {
|
296
|
+
n.value = null, await le(), await M();
|
297
|
+
}
|
298
|
+
async function M() {
|
299
|
+
g.value = !0, t.value.lazy ? i.value = [] : await p(!t.value.eager);
|
300
|
+
}
|
301
|
+
async function p() {
|
302
|
+
let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
303
|
+
const v = [];
|
304
|
+
c.value = !0;
|
305
|
+
for (const k of e.rules) {
|
306
|
+
if (v.length >= Number(e.maxErrors ?? 1))
|
307
|
+
break;
|
308
|
+
const S = await (typeof k == "function" ? k : () => k)(o.value);
|
309
|
+
if (S !== !0) {
|
310
|
+
if (S !== !1 && typeof S != "string") {
|
311
|
+
console.warn(`${S} is not a valid value. Rule functions must return boolean true or a string.`);
|
312
|
+
continue;
|
313
|
+
}
|
314
|
+
v.push(S || "");
|
315
|
+
}
|
316
|
+
}
|
317
|
+
return i.value = v, c.value = !1, g.value = m, i.value;
|
318
|
+
}
|
319
|
+
return {
|
320
|
+
errorMessages: f,
|
321
|
+
isDirty: h,
|
322
|
+
isDisabled: a.isDisabled,
|
323
|
+
isReadonly: a.isReadonly,
|
324
|
+
isPristine: g,
|
325
|
+
isValid: l,
|
326
|
+
isValidating: c,
|
327
|
+
reset: E,
|
328
|
+
resetValidation: M,
|
329
|
+
validate: p,
|
330
|
+
validationClasses: r
|
331
|
+
};
|
332
|
+
}
|
333
|
+
const we = w({
|
334
|
+
id: String,
|
335
|
+
appendIcon: L,
|
336
|
+
centerAffix: {
|
337
|
+
type: Boolean,
|
338
|
+
default: !0
|
339
|
+
},
|
340
|
+
prependIcon: L,
|
341
|
+
hideDetails: [Boolean, String],
|
342
|
+
hideSpinButtons: Boolean,
|
343
|
+
hint: String,
|
344
|
+
persistentHint: Boolean,
|
345
|
+
messages: {
|
346
|
+
type: [Array, String],
|
347
|
+
default: () => []
|
348
|
+
},
|
349
|
+
direction: {
|
350
|
+
type: String,
|
351
|
+
default: "horizontal",
|
352
|
+
validator: (e) => ["horizontal", "vertical"].includes(e)
|
353
|
+
},
|
354
|
+
"onClick:prepend": _(),
|
355
|
+
"onClick:append": _(),
|
356
|
+
...U(),
|
357
|
+
...fe(),
|
358
|
+
...re(he(), ["maxWidth", "minWidth", "width"]),
|
359
|
+
...oe(),
|
360
|
+
...ke()
|
361
|
+
}, "VInput"), Te = F()({
|
362
|
+
name: "VInput",
|
363
|
+
props: {
|
364
|
+
...we()
|
365
|
+
},
|
366
|
+
emits: {
|
367
|
+
"update:modelValue": (e) => !0
|
368
|
+
},
|
369
|
+
setup(e, s) {
|
370
|
+
let {
|
371
|
+
attrs: u,
|
372
|
+
slots: n,
|
373
|
+
emit: o
|
374
|
+
} = s;
|
375
|
+
const {
|
376
|
+
densityClasses: a
|
377
|
+
} = ve(e), {
|
378
|
+
dimensionStyles: i
|
379
|
+
} = pe(e), {
|
380
|
+
themeClasses: g
|
381
|
+
} = ie(e), {
|
382
|
+
rtlClasses: h
|
383
|
+
} = ue(), {
|
384
|
+
InputIcon: f
|
385
|
+
} = Ve(e), t = z(), l = d(() => e.id || `input-${t}`), c = d(() => `${l.value}-messages`), {
|
386
|
+
errorMessages: r,
|
387
|
+
isDirty: b,
|
388
|
+
isDisabled: V,
|
389
|
+
isReadonly: E,
|
390
|
+
isPristine: M,
|
391
|
+
isValid: p,
|
392
|
+
isValidating: m,
|
393
|
+
reset: v,
|
394
|
+
resetValidation: k,
|
395
|
+
validate: P,
|
396
|
+
validationClasses: S
|
397
|
+
} = Ie(e, "v-input", l), C = d(() => ({
|
398
|
+
id: l,
|
399
|
+
messagesId: c,
|
400
|
+
isDirty: b,
|
401
|
+
isDisabled: V,
|
402
|
+
isReadonly: E,
|
403
|
+
isPristine: M,
|
404
|
+
isValid: p,
|
405
|
+
isValidating: m,
|
406
|
+
reset: v,
|
407
|
+
resetValidation: k,
|
408
|
+
validate: P
|
409
|
+
})), T = d(() => e.errorMessages?.length || !M.value && r.value.length ? r.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages);
|
410
|
+
return N(() => {
|
411
|
+
const Y = !!(n.prepend || e.prependIcon), G = !!(n.append || e.appendIcon), x = T.value.length > 0, W = !e.hideDetails || e.hideDetails === "auto" && (x || !!n.details);
|
412
|
+
return y("div", {
|
413
|
+
class: ["v-input", `v-input--${e.direction}`, {
|
414
|
+
"v-input--center-affix": e.centerAffix,
|
415
|
+
"v-input--hide-spin-buttons": e.hideSpinButtons
|
416
|
+
}, a.value, g.value, h.value, S.value, e.class],
|
417
|
+
style: [i.value, e.style]
|
418
|
+
}, [Y && y("div", {
|
419
|
+
key: "prepend",
|
420
|
+
class: "v-input__prepend"
|
421
|
+
}, [n.prepend?.(C.value), e.prependIcon && y(f, {
|
422
|
+
key: "prepend-icon",
|
423
|
+
name: "prepend"
|
424
|
+
}, null)]), n.default && y("div", {
|
425
|
+
class: "v-input__control"
|
426
|
+
}, [n.default?.(C.value)]), G && y("div", {
|
427
|
+
key: "append",
|
428
|
+
class: "v-input__append"
|
429
|
+
}, [e.appendIcon && y(f, {
|
430
|
+
key: "append-icon",
|
431
|
+
name: "append"
|
432
|
+
}, null), n.append?.(C.value)]), W && y("div", {
|
433
|
+
id: c.value,
|
434
|
+
class: "v-input__details",
|
435
|
+
role: "alert",
|
436
|
+
"aria-live": "polite"
|
437
|
+
}, [y(Ee, {
|
438
|
+
active: x,
|
439
|
+
messages: T.value
|
440
|
+
}, {
|
441
|
+
message: n.message
|
442
|
+
}), n.details?.(C.value)])]);
|
443
|
+
}), {
|
444
|
+
reset: v,
|
445
|
+
resetValidation: k,
|
446
|
+
validate: P,
|
447
|
+
isValid: p,
|
448
|
+
errorMessages: r
|
449
|
+
};
|
450
|
+
}
|
451
|
+
});
|
452
|
+
j("css/revolugo.vinput.BPiFMorL.css");
|
453
|
+
export {
|
454
|
+
Te as V,
|
455
|
+
be as a,
|
456
|
+
Me as b,
|
457
|
+
Re as c,
|
458
|
+
De as d,
|
459
|
+
Ve as e,
|
460
|
+
we as m,
|
461
|
+
Be as u
|
462
|
+
};
|
463
|
+
//# sourceMappingURL=revolugo.vinput.Z7Yl1GBk.min.js.map
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { u as s, m as a } from "./revolugo.webcomponentwrapper.Ggu2FW__.min.js";
|
2
|
+
import { _ as c, $ as r, a as i, aK as m, a1 as E } from "./revolugo.index.wc.WVpKRxMB.min.js";
|
3
|
+
function l(e) {
|
4
|
+
try {
|
5
|
+
if (typeof document < "u") {
|
6
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
7
|
+
sheets: [],
|
8
|
+
components: []
|
9
|
+
};
|
10
|
+
const o = import.meta.url, t = o.slice(0, o.lastIndexOf("/") + 1) + e;
|
11
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
|
12
|
+
for (const n of REVOLUGO_ELEMENTS_STYLES.components)
|
13
|
+
n(t);
|
14
|
+
if (e.indexOf("fonts") >= 0) {
|
15
|
+
const n = document.createElement("link");
|
16
|
+
n.rel = "stylesheet", linK.href = t, document.head.appendChild(n);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
} catch (o) {
|
20
|
+
console.error("[revolugo-elements] ", o);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
const d = r({
|
24
|
+
text: String,
|
25
|
+
onClick: E(),
|
26
|
+
...a(),
|
27
|
+
...m()
|
28
|
+
}, "VLabel"), f = c()({
|
29
|
+
name: "VLabel",
|
30
|
+
props: d(),
|
31
|
+
setup(e, o) {
|
32
|
+
let {
|
33
|
+
slots: t
|
34
|
+
} = o;
|
35
|
+
return s(() => i("label", {
|
36
|
+
class: ["v-label", {
|
37
|
+
"v-label--clickable": !!e.onClick
|
38
|
+
}, e.class],
|
39
|
+
style: e.style,
|
40
|
+
onClick: e.onClick
|
41
|
+
}, [e.text, t.default?.()])), {};
|
42
|
+
}
|
43
|
+
});
|
44
|
+
l("css/revolugo.vlabel.BvKaKg7Y.css");
|
45
|
+
export {
|
46
|
+
f as V
|
47
|
+
};
|
48
|
+
//# sourceMappingURL=revolugo.vlabel.Bv07dXLJ.min.js.map
|