@revolugo/elements 6.8.2 → 6.8.3-beta.0
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/README.md +1 -1
- package/dist/css/fonts.css +1 -1
- package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.DGADlvX0.css} +2 -2
- package/dist/index.es.min.js +2081 -2223
- 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.banktransferdetails.C9OqrvmN.min.js +23 -0
- package/dist/revolugo.bookingdetailssidebar.V97LTM8j.min.js +23 -0
- package/dist/revolugo.bookingmanager.BZERpaf3.min.js +23 -0
- package/dist/revolugo.cancellationpoliciesbadge.CUKJ9TsD.min.js +23 -0
- package/dist/revolugo.cancellationpolicieslist.C3PJPST4.min.js +23 -0
- package/dist/revolugo.creditcardform.D-8j5GCw.min.js +23 -0
- package/dist/revolugo.creditcardpayment.DU-WYlhZ.min.js +23 -0
- package/dist/revolugo.currencypickerbtn.B7Y3Ok11.min.js +23 -0
- package/dist/{revolugo.fastbookingflow.ChNa4jgv.min.js → revolugo.fastbookingflow.BoQVk0eU.min.js} +9 -10
- package/dist/revolugo.fullbookingflow.DoXfBawU.min.js +23 -0
- package/dist/revolugo.hoteldescriptionview.B-0OAOlZ.min.js +23 -0
- package/dist/revolugo.hotelofferlist.CZtxadW_.min.js +23 -0
- package/dist/revolugo.hoteloffersearchmenu.BZ2z-tDx.min.js +199 -0
- package/dist/revolugo.hoteloffersmap.CKwOA3mF.min.js +23 -0
- package/dist/revolugo.hoteloffersview.Bxf47jSF.min.js +18 -0
- package/dist/revolugo.hotelroomofferlist.PzbhafeA.min.js +23 -0
- package/dist/revolugo.hotelroomoffersbookingflow.BXolY5lJ.min.js +23 -0
- package/dist/revolugo.hotelroomoffersearchmenu.BAqeXS0Y.min.js +23 -0
- package/dist/revolugo.hotelroomoffersview.Ch8BiNJ_.min.js +23 -0
- package/dist/revolugo.index.CVHWSVdZ.min.js +67 -0
- package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.DxOdmA3C.min.js} +12167 -12364
- package/dist/revolugo.langpickerbtn.B5MAr-qc.min.js +28 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.9dLTmLrv.min.js +23 -0
- package/dist/revolugo.roominglisteditor.CA09WMcG.min.js +23 -0
- package/dist/{revolugo.storybooktoolbar.DY_mbXuP.min.js → revolugo.storybooktoolbar.CkwMUZCe.min.js} +212 -227
- package/dist/revolugo.termsandconditions.CLIxEOxi.min.js +22 -0
- package/dist/revolugo.webcomponentwrapper.Dt-VzVVw.min.js +60489 -0
- package/package.json +5 -5
- package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
- package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
- package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
- package/dist/css/revolugo.btag.g-q3eChG.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
- package/dist/css/revolugo.creditcardform.DWne0Lnv.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.DWuzEuGF.css +0 -1
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.2oSkomDb.css +0 -1
- package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
- package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
- package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
- package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
- package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.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.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.vinput.BPiFMorL.css +0 -1
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
- package/dist/css/revolugo.vlist.BkGS0yqt.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.vsnackbar.Cj7AcupY.css +0 -1
- package/dist/css/revolugo.vtextarea.HYL6WUNS.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.O8QDYs1J.css +0 -1
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
- package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
- package/dist/revolugo.banktransferdetails.BdulCgI5.min.js +0 -373
- package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
- package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
- package/dist/revolugo.bhotelroomsdetails.orWBBD_o.min.js +0 -1013
- package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
- package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
- package/dist/revolugo.bookingdetailssidebar.CD4SMOkC.min.js +0 -24
- package/dist/revolugo.bookingdetailssidebar.JOU68R1_.min.js +0 -880
- package/dist/revolugo.bookingmanager.B5cM9Mi5.min.js +0 -1789
- package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js +0 -623
- package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
- package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
- package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
- package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
- package/dist/revolugo.cancellationpolicieslist.D097ASNF.min.js +0 -176
- package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.DNOMVOgZ.min.js +0 -2161
- package/dist/revolugo.creditcardform.DvHcDx2P.min.js +0 -24
- package/dist/revolugo.creditcardpayment.BLP3RXk4.min.js +0 -893
- package/dist/revolugo.creditcardpayment.D3lPKmx1.min.js +0 -24
- package/dist/revolugo.currencypicker.CzzS1Adp.min.js +0 -330
- package/dist/revolugo.currencypickerbtn.ChUEouGw.min.js +0 -163
- package/dist/revolugo.currencypickerbtn.DWnyc54P.min.js +0 -24
- package/dist/revolugo.dialog-attach.O2HXPGzj.min.js +0 -28
- package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
- package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
- package/dist/revolugo.hoteldescriptionview.CbtxEPGG.min.js +0 -3091
- package/dist/revolugo.hoteldescriptionview.D3JTbFxn.min.js +0 -24
- package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
- package/dist/revolugo.hotelofferlist.BVySEYbq.min.js +0 -5744
- package/dist/revolugo.hotelofferlist.puK2FNBR.min.js +0 -24
- package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
- package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
- package/dist/revolugo.hoteloffersmap.BRVm5s6N.min.js +0 -8394
- package/dist/revolugo.hoteloffersmap.DqKpfjbt.min.js +0 -24
- package/dist/revolugo.hoteloffersview.3LJ-m6BY.min.js +0 -620
- package/dist/revolugo.hoteloffersview.DsGyT5s7.min.js +0 -19
- package/dist/revolugo.hotelroomofferlist.DdMr5qEZ.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.M-3bowQa.min.js +0 -2934
- package/dist/revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js +0 -1306
- package/dist/revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js +0 -25
- package/dist/revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js +0 -232
- package/dist/revolugo.hotelroomoffersview.BSth8Xsz.min.js +0 -305
- package/dist/revolugo.hotelroomoffersview.oxTgBMSk.min.js +0 -24
- package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
- package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
- package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
- package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
- package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
- package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
- package/dist/revolugo.prebookform.B8aMLMuG.min.js +0 -1531
- package/dist/revolugo.prebookform.CxK0iSDo.min.js +0 -24
- package/dist/revolugo.roominglisteditor.D7WzDtw6.min.js +0 -24
- package/dist/revolugo.roominglisteditor.Do-pe811.min.js +0 -391
- package/dist/revolugo.rounded.Dnxang6X.min.js +0 -68
- package/dist/revolugo.ssrboot.ByGq44eI.min.js +0 -18
- package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
- package/dist/revolugo.termsandconditions.DfGTVPYa.min.js +0 -23
- package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
- package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
- package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
- package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
- package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
- package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
- package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
- package/dist/revolugo.vdivider.Cp9bHPnI.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
- package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
- package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
- package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
- package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
- package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
- package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
- package/dist/revolugo.vsheet.8UeU7qQn.min.js +0 -72
- package/dist/revolugo.vskeletonloader.Dk0enVo6.min.js +0 -137
- package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
- package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
- package/dist/revolugo.vtextarea.Cjuqcka5.min.js +0 -2102
- package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
- package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
- package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
- package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
- package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,477 +0,0 @@
|
|
1
|
-
import { ac as Q, a as y, bF as X, ce as K, a2 as O, D as c, _ as w, a0 as B, Z as Y, a3 as P, ai as ee, a5 as R, C as x, M as I, ak as ae, ab as ne, ah as te, aE as G, bN as se, J as le, b1 as ie, W as ue, V as re, aN as z, R as oe, aD as de, ax as ce, aF as ve, aV as fe, $ as U } from "./revolugo.index.wc.7I5uexuc.min.js";
|
2
|
-
import { V as ge, s as me, n as ye, e as he } from "./revolugo.index.gIPq0z7C.min.js";
|
3
|
-
import { d as pe, u as W, M as Ve, p as be, m as j, n as Se, o as Ee } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
|
4
|
-
function q(e) {
|
5
|
-
try {
|
6
|
-
if (typeof document < "u") {
|
7
|
-
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
8
|
-
sheets: [],
|
9
|
-
components: []
|
10
|
-
};
|
11
|
-
const s = import.meta.url, r = s.slice(0, s.lastIndexOf("/") + 1) + e;
|
12
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(r);
|
13
|
-
for (const n of REVOLUGO_ELEMENTS_STYLES.components)
|
14
|
-
n(r);
|
15
|
-
if (e.indexOf("fonts") >= 0) {
|
16
|
-
const n = document.createElement("link");
|
17
|
-
n.rel = "stylesheet", linK.href = r, document.head.appendChild(n);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
} catch (s) {
|
21
|
-
console.error("[revolugo-elements] ", s);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
function Me(e) {
|
25
|
-
const {
|
26
|
-
t: s
|
27
|
-
} = Q();
|
28
|
-
function r(n) {
|
29
|
-
let {
|
30
|
-
name: o
|
31
|
-
} = n;
|
32
|
-
const a = {
|
33
|
-
prepend: "prependAction",
|
34
|
-
prependInner: "prependAction",
|
35
|
-
append: "appendAction",
|
36
|
-
appendInner: "appendAction",
|
37
|
-
clear: "clear"
|
38
|
-
}[o], u = e[`onClick:${o}`];
|
39
|
-
function m(g) {
|
40
|
-
g.key !== "Enter" && g.key !== " " || (g.preventDefault(), g.stopPropagation(), X(u, new PointerEvent("click", g)));
|
41
|
-
}
|
42
|
-
const V = u && a ? s(`$vuetify.input.${a}`, e.label ?? "") : void 0;
|
43
|
-
return y(ge, {
|
44
|
-
icon: e[`${o}Icon`],
|
45
|
-
"aria-label": V,
|
46
|
-
onClick: u,
|
47
|
-
onKeydown: m
|
48
|
-
}, null);
|
49
|
-
}
|
50
|
-
return {
|
51
|
-
InputIcon: r
|
52
|
-
};
|
53
|
-
}
|
54
|
-
const ke = w({
|
55
|
-
focused: Boolean,
|
56
|
-
"onUpdate:focused": B()
|
57
|
-
}, "focus");
|
58
|
-
function Oe(e) {
|
59
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : K();
|
60
|
-
const r = O(e, "focused"), n = c(() => ({
|
61
|
-
[`${s}--focused`]: r.value
|
62
|
-
}));
|
63
|
-
function o() {
|
64
|
-
r.value = !0;
|
65
|
-
}
|
66
|
-
function a() {
|
67
|
-
r.value = !1;
|
68
|
-
}
|
69
|
-
return {
|
70
|
-
focusClasses: n,
|
71
|
-
isFocused: r,
|
72
|
-
focus: o,
|
73
|
-
blur: a
|
74
|
-
};
|
75
|
-
}
|
76
|
-
const Ie = w({
|
77
|
-
active: Boolean,
|
78
|
-
color: String,
|
79
|
-
messages: {
|
80
|
-
type: [Array, String],
|
81
|
-
default: () => []
|
82
|
-
},
|
83
|
-
...j(),
|
84
|
-
...be({
|
85
|
-
transition: {
|
86
|
-
component: me,
|
87
|
-
leaveAbsolute: !0,
|
88
|
-
group: !0
|
89
|
-
}
|
90
|
-
})
|
91
|
-
}, "VMessages"), we = Y()({
|
92
|
-
name: "VMessages",
|
93
|
-
props: Ie(),
|
94
|
-
setup(e, s) {
|
95
|
-
let {
|
96
|
-
slots: r
|
97
|
-
} = s;
|
98
|
-
const n = c(() => P(e.messages)), {
|
99
|
-
textColorClasses: o,
|
100
|
-
textColorStyles: a
|
101
|
-
} = pe(c(() => e.color));
|
102
|
-
return W(() => y(Ve, {
|
103
|
-
transition: e.transition,
|
104
|
-
tag: "div",
|
105
|
-
class: ["v-messages", o.value, e.class],
|
106
|
-
style: [a.value, e.style]
|
107
|
-
}, {
|
108
|
-
default: () => [e.active && n.value.map((u, m) => y("div", {
|
109
|
-
class: "v-messages__message",
|
110
|
-
key: `${m}-${n.value}`
|
111
|
-
}, [r.message ? r.message({
|
112
|
-
message: u
|
113
|
-
}) : u]))]
|
114
|
-
})), {};
|
115
|
-
}
|
116
|
-
}), H = Symbol.for("vuetify:form"), Te = w({
|
117
|
-
disabled: Boolean,
|
118
|
-
fastFail: Boolean,
|
119
|
-
readonly: Boolean,
|
120
|
-
modelValue: {
|
121
|
-
type: Boolean,
|
122
|
-
default: null
|
123
|
-
},
|
124
|
-
validateOn: {
|
125
|
-
type: String,
|
126
|
-
default: "input"
|
127
|
-
}
|
128
|
-
}, "form");
|
129
|
-
function $e(e) {
|
130
|
-
const s = O(e, "modelValue"), r = c(() => e.disabled), n = c(() => e.readonly), o = R(!1), a = x([]), u = x([]);
|
131
|
-
async function m() {
|
132
|
-
const l = [];
|
133
|
-
let i = !0;
|
134
|
-
u.value = [], o.value = !0;
|
135
|
-
for (const v of a.value) {
|
136
|
-
const d = await v.validate();
|
137
|
-
if (d.length > 0 && (i = !1, l.push({
|
138
|
-
id: v.id,
|
139
|
-
errorMessages: d
|
140
|
-
})), !i && e.fastFail) break;
|
141
|
-
}
|
142
|
-
return u.value = l, o.value = !1, {
|
143
|
-
valid: i,
|
144
|
-
errors: u.value
|
145
|
-
};
|
146
|
-
}
|
147
|
-
function V() {
|
148
|
-
a.value.forEach((l) => l.reset());
|
149
|
-
}
|
150
|
-
function g() {
|
151
|
-
a.value.forEach((l) => l.resetValidation());
|
152
|
-
}
|
153
|
-
return I(a, () => {
|
154
|
-
let l = 0, i = 0;
|
155
|
-
const v = [];
|
156
|
-
for (const d of a.value)
|
157
|
-
d.isValid === !1 ? (i++, v.push({
|
158
|
-
id: d.id,
|
159
|
-
errorMessages: d.errorMessages
|
160
|
-
})) : d.isValid === !0 && l++;
|
161
|
-
u.value = v, s.value = i > 0 ? !1 : l === a.value.length ? !0 : null;
|
162
|
-
}, {
|
163
|
-
deep: !0,
|
164
|
-
flush: "post"
|
165
|
-
}), ae(H, {
|
166
|
-
register: (l) => {
|
167
|
-
let {
|
168
|
-
id: i,
|
169
|
-
vm: v,
|
170
|
-
validate: d,
|
171
|
-
reset: S,
|
172
|
-
resetValidation: b
|
173
|
-
} = l;
|
174
|
-
a.value.some((M) => M.id === i), a.value.push({
|
175
|
-
id: i,
|
176
|
-
validate: d,
|
177
|
-
reset: S,
|
178
|
-
resetValidation: b,
|
179
|
-
vm: te(v),
|
180
|
-
isValid: null,
|
181
|
-
errorMessages: []
|
182
|
-
});
|
183
|
-
},
|
184
|
-
unregister: (l) => {
|
185
|
-
a.value = a.value.filter((i) => i.id !== l);
|
186
|
-
},
|
187
|
-
update: (l, i, v) => {
|
188
|
-
const d = a.value.find((S) => S.id === l);
|
189
|
-
d && (d.isValid = i, d.errorMessages = v);
|
190
|
-
},
|
191
|
-
isDisabled: r,
|
192
|
-
isReadonly: n,
|
193
|
-
isValidating: o,
|
194
|
-
isValid: s,
|
195
|
-
items: a,
|
196
|
-
validateOn: ne(e, "validateOn")
|
197
|
-
}), {
|
198
|
-
errors: u,
|
199
|
-
isDisabled: r,
|
200
|
-
isReadonly: n,
|
201
|
-
isValidating: o,
|
202
|
-
isValid: s,
|
203
|
-
items: a,
|
204
|
-
validate: m,
|
205
|
-
reset: V,
|
206
|
-
resetValidation: g
|
207
|
-
};
|
208
|
-
}
|
209
|
-
function Ce(e) {
|
210
|
-
const s = ee(H, null);
|
211
|
-
return {
|
212
|
-
...s,
|
213
|
-
isReadonly: c(() => !!((e == null ? void 0 : e.readonly) ?? (s == null ? void 0 : s.isReadonly.value))),
|
214
|
-
isDisabled: c(() => !!((e == null ? void 0 : e.disabled) ?? (s == null ? void 0 : s.isDisabled.value)))
|
215
|
-
};
|
216
|
-
}
|
217
|
-
const De = w({
|
218
|
-
disabled: {
|
219
|
-
type: Boolean,
|
220
|
-
default: null
|
221
|
-
},
|
222
|
-
error: Boolean,
|
223
|
-
errorMessages: {
|
224
|
-
type: [Array, String],
|
225
|
-
default: () => []
|
226
|
-
},
|
227
|
-
maxErrors: {
|
228
|
-
type: [Number, String],
|
229
|
-
default: 1
|
230
|
-
},
|
231
|
-
name: String,
|
232
|
-
label: String,
|
233
|
-
readonly: {
|
234
|
-
type: Boolean,
|
235
|
-
default: null
|
236
|
-
},
|
237
|
-
rules: {
|
238
|
-
type: Array,
|
239
|
-
default: () => []
|
240
|
-
},
|
241
|
-
modelValue: null,
|
242
|
-
validateOn: String,
|
243
|
-
validationValue: null,
|
244
|
-
...ke()
|
245
|
-
}, "validation");
|
246
|
-
function Pe(e) {
|
247
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : K(), r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : G();
|
248
|
-
const n = O(e, "modelValue"), o = c(() => e.validationValue === void 0 ? n.value : e.validationValue), a = Ce(e), u = x([]), m = R(!0), V = c(() => !!(P(n.value === "" ? null : n.value).length || P(o.value === "" ? null : o.value).length)), g = c(() => {
|
249
|
-
var t;
|
250
|
-
return (t = e.errorMessages) != null && t.length ? P(e.errorMessages).concat(u.value).slice(0, Math.max(0, Number(e.maxErrors))) : u.value;
|
251
|
-
}), l = c(() => {
|
252
|
-
var p;
|
253
|
-
let t = (e.validateOn ?? ((p = a.validateOn) == null ? void 0 : p.value)) || "input";
|
254
|
-
t === "lazy" && (t = "input lazy"), t === "eager" && (t = "input eager");
|
255
|
-
const f = new Set((t == null ? void 0 : t.split(" ")) ?? []);
|
256
|
-
return {
|
257
|
-
input: f.has("input"),
|
258
|
-
blur: f.has("blur") || f.has("input") || f.has("invalid-input"),
|
259
|
-
invalidInput: f.has("invalid-input"),
|
260
|
-
lazy: f.has("lazy"),
|
261
|
-
eager: f.has("eager")
|
262
|
-
};
|
263
|
-
}), i = c(() => {
|
264
|
-
var t;
|
265
|
-
return e.error || (t = e.errorMessages) != null && t.length ? !1 : e.rules.length ? m.value ? u.value.length || l.value.lazy ? null : !0 : !u.value.length : !0;
|
266
|
-
}), v = R(!1), d = c(() => ({
|
267
|
-
[`${s}--error`]: i.value === !1,
|
268
|
-
[`${s}--dirty`]: V.value,
|
269
|
-
[`${s}--disabled`]: a.isDisabled.value,
|
270
|
-
[`${s}--readonly`]: a.isReadonly.value
|
271
|
-
})), S = se("validation"), b = c(() => e.name ?? le(r));
|
272
|
-
ie(() => {
|
273
|
-
var t;
|
274
|
-
(t = a.register) == null || t.call(a, {
|
275
|
-
id: b.value,
|
276
|
-
vm: S,
|
277
|
-
validate: h,
|
278
|
-
reset: M,
|
279
|
-
resetValidation: k
|
280
|
-
});
|
281
|
-
}), ue(() => {
|
282
|
-
var t;
|
283
|
-
(t = a.unregister) == null || t.call(a, b.value);
|
284
|
-
}), re(async () => {
|
285
|
-
var t;
|
286
|
-
l.value.lazy || await h(!l.value.eager), (t = a.update) == null || t.call(a, b.value, i.value, g.value);
|
287
|
-
}), z(() => l.value.input || l.value.invalidInput && i.value === !1, () => {
|
288
|
-
I(o, () => {
|
289
|
-
if (o.value != null)
|
290
|
-
h();
|
291
|
-
else if (e.focused) {
|
292
|
-
const t = I(() => e.focused, (f) => {
|
293
|
-
f || h(), t();
|
294
|
-
});
|
295
|
-
}
|
296
|
-
});
|
297
|
-
}), z(() => l.value.blur, () => {
|
298
|
-
I(() => e.focused, (t) => {
|
299
|
-
t || h();
|
300
|
-
});
|
301
|
-
}), I([i, g], () => {
|
302
|
-
var t;
|
303
|
-
(t = a.update) == null || t.call(a, b.value, i.value, g.value);
|
304
|
-
});
|
305
|
-
async function M() {
|
306
|
-
n.value = null, await oe(), await k();
|
307
|
-
}
|
308
|
-
async function k() {
|
309
|
-
m.value = !0, l.value.lazy ? u.value = [] : await h(!l.value.eager);
|
310
|
-
}
|
311
|
-
async function h() {
|
312
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
313
|
-
const f = [];
|
314
|
-
v.value = !0;
|
315
|
-
for (const p of e.rules) {
|
316
|
-
if (f.length >= Number(e.maxErrors ?? 1))
|
317
|
-
break;
|
318
|
-
const E = await (typeof p == "function" ? p : () => p)(o.value);
|
319
|
-
if (E !== !0) {
|
320
|
-
if (E !== !1 && typeof E != "string") {
|
321
|
-
console.warn(`${E} is not a valid value. Rule functions must return boolean true or a string.`);
|
322
|
-
continue;
|
323
|
-
}
|
324
|
-
f.push(E || "");
|
325
|
-
}
|
326
|
-
}
|
327
|
-
return u.value = f, v.value = !1, m.value = t, u.value;
|
328
|
-
}
|
329
|
-
return {
|
330
|
-
errorMessages: g,
|
331
|
-
isDirty: V,
|
332
|
-
isDisabled: a.isDisabled,
|
333
|
-
isReadonly: a.isReadonly,
|
334
|
-
isPristine: m,
|
335
|
-
isValid: i,
|
336
|
-
isValidating: v,
|
337
|
-
reset: M,
|
338
|
-
resetValidation: k,
|
339
|
-
validate: h,
|
340
|
-
validationClasses: d
|
341
|
-
};
|
342
|
-
}
|
343
|
-
const _e = w({
|
344
|
-
id: String,
|
345
|
-
appendIcon: U,
|
346
|
-
centerAffix: {
|
347
|
-
type: Boolean,
|
348
|
-
default: !0
|
349
|
-
},
|
350
|
-
prependIcon: U,
|
351
|
-
hideDetails: [Boolean, String],
|
352
|
-
hideSpinButtons: Boolean,
|
353
|
-
hint: String,
|
354
|
-
persistentHint: Boolean,
|
355
|
-
messages: {
|
356
|
-
type: [Array, String],
|
357
|
-
default: () => []
|
358
|
-
},
|
359
|
-
direction: {
|
360
|
-
type: String,
|
361
|
-
default: "horizontal",
|
362
|
-
validator: (e) => ["horizontal", "vertical"].includes(e)
|
363
|
-
},
|
364
|
-
"onClick:prepend": B(),
|
365
|
-
"onClick:append": B(),
|
366
|
-
...j(),
|
367
|
-
...he(),
|
368
|
-
...fe(Ee(), ["maxWidth", "minWidth", "width"]),
|
369
|
-
...ve(),
|
370
|
-
...De()
|
371
|
-
}, "VInput"), Le = Y()({
|
372
|
-
name: "VInput",
|
373
|
-
props: {
|
374
|
-
..._e()
|
375
|
-
},
|
376
|
-
emits: {
|
377
|
-
"update:modelValue": (e) => !0
|
378
|
-
},
|
379
|
-
setup(e, s) {
|
380
|
-
let {
|
381
|
-
attrs: r,
|
382
|
-
slots: n,
|
383
|
-
emit: o
|
384
|
-
} = s;
|
385
|
-
const {
|
386
|
-
densityClasses: a
|
387
|
-
} = ye(e), {
|
388
|
-
dimensionStyles: u
|
389
|
-
} = Se(e), {
|
390
|
-
themeClasses: m
|
391
|
-
} = de(e), {
|
392
|
-
rtlClasses: V
|
393
|
-
} = ce(), {
|
394
|
-
InputIcon: g
|
395
|
-
} = Me(e), l = G(), i = c(() => e.id || `input-${l}`), v = c(() => `${i.value}-messages`), {
|
396
|
-
errorMessages: d,
|
397
|
-
isDirty: S,
|
398
|
-
isDisabled: b,
|
399
|
-
isReadonly: M,
|
400
|
-
isPristine: k,
|
401
|
-
isValid: h,
|
402
|
-
isValidating: t,
|
403
|
-
reset: f,
|
404
|
-
resetValidation: p,
|
405
|
-
validate: _,
|
406
|
-
validationClasses: E
|
407
|
-
} = Pe(e, "v-input", i), C = c(() => ({
|
408
|
-
id: i,
|
409
|
-
messagesId: v,
|
410
|
-
isDirty: S,
|
411
|
-
isDisabled: b,
|
412
|
-
isReadonly: M,
|
413
|
-
isPristine: k,
|
414
|
-
isValid: h,
|
415
|
-
isValidating: t,
|
416
|
-
reset: f,
|
417
|
-
resetValidation: p,
|
418
|
-
validate: _
|
419
|
-
})), T = c(() => {
|
420
|
-
var D;
|
421
|
-
return (D = e.errorMessages) != null && D.length || !k.value && d.value.length ? d.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages;
|
422
|
-
});
|
423
|
-
return W(() => {
|
424
|
-
var L, A, F, N;
|
425
|
-
const D = !!(n.prepend || e.prependIcon), J = !!(n.append || e.appendIcon), $ = T.value.length > 0, Z = !e.hideDetails || e.hideDetails === "auto" && ($ || !!n.details);
|
426
|
-
return y("div", {
|
427
|
-
class: ["v-input", `v-input--${e.direction}`, {
|
428
|
-
"v-input--center-affix": e.centerAffix,
|
429
|
-
"v-input--hide-spin-buttons": e.hideSpinButtons
|
430
|
-
}, a.value, m.value, V.value, E.value, e.class],
|
431
|
-
style: [u.value, e.style]
|
432
|
-
}, [D && y("div", {
|
433
|
-
key: "prepend",
|
434
|
-
class: "v-input__prepend"
|
435
|
-
}, [(L = n.prepend) == null ? void 0 : L.call(n, C.value), e.prependIcon && y(g, {
|
436
|
-
key: "prepend-icon",
|
437
|
-
name: "prepend"
|
438
|
-
}, null)]), n.default && y("div", {
|
439
|
-
class: "v-input__control"
|
440
|
-
}, [(A = n.default) == null ? void 0 : A.call(n, C.value)]), J && y("div", {
|
441
|
-
key: "append",
|
442
|
-
class: "v-input__append"
|
443
|
-
}, [e.appendIcon && y(g, {
|
444
|
-
key: "append-icon",
|
445
|
-
name: "append"
|
446
|
-
}, null), (F = n.append) == null ? void 0 : F.call(n, C.value)]), Z && y("div", {
|
447
|
-
id: v.value,
|
448
|
-
class: "v-input__details",
|
449
|
-
role: "alert",
|
450
|
-
"aria-live": "polite"
|
451
|
-
}, [y(we, {
|
452
|
-
active: $,
|
453
|
-
messages: T.value
|
454
|
-
}, {
|
455
|
-
message: n.message
|
456
|
-
}), (N = n.details) == null ? void 0 : N.call(n, C.value)])]);
|
457
|
-
}), {
|
458
|
-
reset: f,
|
459
|
-
resetValidation: p,
|
460
|
-
validate: _,
|
461
|
-
isValid: h,
|
462
|
-
errorMessages: d
|
463
|
-
};
|
464
|
-
}
|
465
|
-
});
|
466
|
-
q("css/revolugo.vinput.BPiFMorL.css");
|
467
|
-
export {
|
468
|
-
Le as V,
|
469
|
-
ke as a,
|
470
|
-
Ce as b,
|
471
|
-
$e as c,
|
472
|
-
Te as d,
|
473
|
-
Me as e,
|
474
|
-
_e as m,
|
475
|
-
Oe as u
|
476
|
-
};
|
477
|
-
//# sourceMappingURL=revolugo.vinput.P34xrpIC.min.js.map
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { u as s, m as a } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
|
2
|
-
import { Z as c, _ as r, a as i, aF as m, a0 as E } from "./revolugo.index.wc.7I5uexuc.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 n = import.meta.url, o = n.slice(0, n.lastIndexOf("/") + 1) + e;
|
11
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(o);
|
12
|
-
for (const t of REVOLUGO_ELEMENTS_STYLES.components)
|
13
|
-
t(o);
|
14
|
-
if (e.indexOf("fonts") >= 0) {
|
15
|
-
const t = document.createElement("link");
|
16
|
-
t.rel = "stylesheet", linK.href = o, document.head.appendChild(t);
|
17
|
-
}
|
18
|
-
}
|
19
|
-
} catch (n) {
|
20
|
-
console.error("[revolugo-elements] ", n);
|
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, n) {
|
32
|
-
let {
|
33
|
-
slots: o
|
34
|
-
} = n;
|
35
|
-
return s(() => {
|
36
|
-
var t;
|
37
|
-
return i("label", {
|
38
|
-
class: ["v-label", {
|
39
|
-
"v-label--clickable": !!e.onClick
|
40
|
-
}, e.class],
|
41
|
-
style: e.style,
|
42
|
-
onClick: e.onClick
|
43
|
-
}, [e.text, (t = o.default) == null ? void 0 : t.call(o)]);
|
44
|
-
}), {};
|
45
|
-
}
|
46
|
-
});
|
47
|
-
l("css/revolugo.vlabel.BvKaKg7Y.css");
|
48
|
-
export {
|
49
|
-
f as V
|
50
|
-
};
|
51
|
-
//# sourceMappingURL=revolugo.vlabel.CLHrAz78.min.js.map
|