@revolugo/elements 6.7.3-rc.2 → 6.8.0-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/dist/index.es.min.js +2622 -2554
- 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._basefor.CodrYJxd.min.js +15 -0
- package/dist/{revolugo.banktransferdetails.arP5j__o.min.js → revolugo.banktransferdetails.D70RTc43.min.js} +24 -23
- package/dist/{revolugo.bdaterangepicker.Ba26rd5I.min.js → revolugo.bdaterangepicker.B8BqSfrk.min.js} +121 -6
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.TjFyJK3o.min.js +61 -0
- package/dist/{revolugo.bhoteloffersfilterbar.CwCd9oox.min.js → revolugo.bhoteloffersfilterbar.DeYwgC-X.min.js} +173 -169
- package/dist/{revolugo.bpricesummaryskeleton.DH-Kuge7.min.js → revolugo.bhotelroomsdetails.qOkb7bF4.min.js} +169 -241
- package/dist/{revolugo.bhotelsearchbar.DaX-iQTB.min.js → revolugo.bhotelsearchbar.DS8JMdFX.min.js} +77 -76
- package/dist/{revolugo.bimagecarousel.CgrOcU1C.min.js → revolugo.bimagecarousel.EmC1mHXe.min.js} +36 -36
- package/dist/{revolugo.bookingdetailssidebar.CXHn5MDn.min.js → revolugo.bookingdetailssidebar.OgMINhMq.min.js} +184 -202
- package/dist/revolugo.bookingdetailssidebar.lJaJEdFg.min.js +24 -0
- package/dist/{revolugo.bookingmanager.BIFir20P.min.js → revolugo.bookingmanager.m08SYP86.min.js} +51 -48
- package/dist/revolugo.bpricesummaryskeleton.T6fWvVKX.min.js +79 -0
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.M46KdeWM.min.js} +28 -27
- package/dist/{revolugo.btag.0ugEj-2W.min.js → revolugo.btag.Cd9RL-Se.min.js} +70 -69
- package/dist/{revolugo.cancellationpoliciesbadge.BakDGPnx.min.js → revolugo.cancellationpoliciesbadge.BAWLhoFE.min.js} +51 -70
- package/dist/revolugo.cancellationpoliciesbadge.x9SgSKRO.min.js +24 -0
- package/dist/revolugo.cancellationpolicieslist.CXEi_O_B.min.js +24 -0
- package/dist/{revolugo.cancellationpolicieslist.C_FFhkUD.min.js → revolugo.cancellationpolicieslist.kh5sahhd.min.js} +28 -47
- package/dist/revolugo.case-transformers.DfCc1sKY.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/revolugo.creditcardform.Cz_EExR3.min.js +24 -0
- package/dist/{revolugo.creditcardform.B5bfYD6z.min.js → revolugo.creditcardform.ZqPrv4K6.min.js} +652 -903
- package/dist/revolugo.creditcardpayment.C47xZXR4.min.js +24 -0
- package/dist/{revolugo.creditcardpayment.DzD24_nR.min.js → revolugo.creditcardpayment.olC2sHv8.min.js} +138 -154
- package/dist/{revolugo.currencypicker.LtjCHf9r.min.js → revolugo.currencypicker.D44ks2e0.min.js} +19 -18
- package/dist/revolugo.currencypickerbtn.C2gt2Wvi.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.Da2NhlAu.min.js +163 -0
- package/dist/revolugo.dialog-attach.C_5QvJAn.min.js +28 -0
- package/dist/revolugo.dialog-transition.ksNwOfBf.min.js +114 -0
- package/dist/revolugo.fastbookingflow.BIb9TBpX.min.js +34 -0
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +71 -0
- package/dist/{revolugo.fullbookingflow.CkMmSkIU.min.js → revolugo.fullbookingflow.BVg0Q886.min.js} +77 -75
- package/dist/{revolugo.hoteldescriptionview.Cp5ZgFcV.min.js → revolugo.hoteldescriptionview.BoCEWA7i.min.js} +363 -379
- package/dist/revolugo.hoteldescriptionview.DflBNZtA.min.js +24 -0
- package/dist/{revolugo.hotelofferitemlayout.Bhhi0sg3.min.js → revolugo.hotelofferitemlayout.B954A8ZU.min.js} +9 -9
- package/dist/revolugo.hotelofferlist.DkUtJZ29.min.js +24 -0
- package/dist/{revolugo.hotelofferlist.BTgDe-tp.min.js → revolugo.hotelofferlist.VpDpWMAm.min.js} +1158 -1176
- package/dist/{revolugo.hotelofferrequestcreator.B17qgpU2.min.js → revolugo.hotelofferrequestcreator.CrrP-Mjf.min.js} +7 -7
- package/dist/revolugo.hoteloffersearchmenu.BD26Zl70.min.js +46 -0
- package/dist/revolugo.hoteloffersmap.599v6DtH.min.js +8394 -0
- package/dist/revolugo.hoteloffersmap.O73rRIrY.min.js +24 -0
- package/dist/{revolugo.hoteloffersview.D1-F8ONF.min.js → revolugo.hoteloffersview.BSuaPamT.min.js} +161 -176
- package/dist/revolugo.hoteloffersview.uFcA-Q8V.min.js +19 -0
- package/dist/revolugo.hotelroomofferlist.047wvmlm.min.js +24 -0
- package/dist/{revolugo.hotelroomofferlist.BpTAFyMO.min.js → revolugo.hotelroomofferlist.hNh95LPc.min.js} +468 -485
- package/dist/revolugo.hotelroomofferrequestcreator.props.Ch20MI-1.min.js +171 -0
- package/dist/{revolugo.hotelroomoffersbookingflow.BNm52u6c.min.js → revolugo.hotelroomoffersbookingflow.CIga3epB.min.js} +40 -39
- package/dist/revolugo.hotelroomoffersearchmenu.BqPoCOJV.min.js +25 -0
- package/dist/{revolugo.hotelroomoffersearchmenu.Bysb279d.min.js → revolugo.hotelroomoffersearchmenu.SXEmMWNu.min.js} +29 -49
- package/dist/{revolugo.hotelroomoffersview.BVbajWFv.min.js → revolugo.hotelroomoffersview.C29cidjz.min.js} +71 -91
- package/dist/revolugo.hotelroomoffersview.gzfKsSHa.min.js +24 -0
- package/dist/{revolugo.index.BX4WZjgg.min.js → revolugo.index.BaBMFwcZ.min.js} +6 -6
- package/dist/revolugo.index.MUWumuM5.min.js +1037 -0
- package/dist/{revolugo.rounded.u4maswiM.min.js → revolugo.index.wc.hcj2tBQa.min.js} +12976 -13227
- package/dist/{revolugo.langpicker.BTmjf3Hy.min.js → revolugo.langpicker.CTF21wTY.min.js} +15 -15
- package/dist/revolugo.langpickerbtn.DMWudtGn.min.js +24 -0
- package/dist/{revolugo.langpickerbtn.DthGIqyz.min.js → revolugo.langpickerbtn.E0CLTwCX.min.js} +53 -71
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.position.CEExVEE8.min.js → revolugo.position.mEwvDkCr.min.js} +45 -44
- package/dist/{revolugo.prebookform.By-V1bl9.min.js → revolugo.prebookform.BcktaxEc.min.js} +94 -114
- package/dist/revolugo.prebookform.Bi-sWZL0.min.js +24 -0
- package/dist/revolugo.roominglisteditor.BgDPCfkP.min.js +24 -0
- package/dist/{revolugo.roominglisteditor.BTk6Ieu-.min.js → revolugo.roominglisteditor.jO9FT_rG.min.js} +82 -101
- package/dist/revolugo.rounded.DGGd6U47.min.js +68 -0
- package/dist/revolugo.ssrboot.RImRxJU9.min.js +18 -0
- package/dist/{revolugo.storybooktoolbar.CFuRMVxX.min.js → revolugo.storybooktoolbar.cK-_oh_-.min.js} +110 -108
- package/dist/{revolugo.termsandconditions.B1itHoql.min.js → revolugo.termsandconditions.Bf8tOgI4.min.js} +90 -108
- package/dist/revolugo.termsandconditions.DrrQwLEt.min.js +23 -0
- package/dist/revolugo.use-breakpoint-service.C55UqJ8N.min.js +106 -0
- package/dist/{revolugo.vautocomplete.bQzOaYWm.min.js → revolugo.vautocomplete.X5OrrUPl.min.js} +133 -132
- package/dist/{revolugo.vbadge.Cm6IZIUx.min.js → revolugo.vbadge.BeCXlcev.min.js} +33 -32
- package/dist/{revolugo.vbtn.D3Vm2ZlS.min.js → revolugo.vbtn.DSYh8Plf.min.js} +82 -81
- package/dist/{revolugo.vcard.D7M0YovD.min.js → revolugo.vcard.DrUjDHZJ.min.js} +50 -49
- package/dist/{revolugo.vcheckboxbtn.DxJuZdU5.min.js → revolugo.vcheckboxbtn.-WD79m_3.min.js} +72 -71
- package/dist/{revolugo.vdialog.B3aAN6LZ.min.js → revolugo.vdialog.C40-fld0.min.js} +26 -25
- package/dist/revolugo.vdivider.C8qKKweh.min.js +77 -0
- package/dist/{revolugo.vexpansionpanels.Cio1oHcQ.min.js → revolugo.vexpansionpanels.CPfBybl9.min.js} +42 -41
- package/dist/{revolugo.vform.1YZ7pPUG.min.js → revolugo.vform.Bxkhj0tA.min.js} +15 -15
- package/dist/{revolugo.vinput.8rjbvXX2.min.js → revolugo.vinput.DkrPzK9V.min.js} +91 -91
- package/dist/{revolugo.vlabel.DYs_A1Ji.min.js → revolugo.vlabel.Ra8-PR0S.min.js} +5 -5
- package/dist/{revolugo.vlist.DCvg08Wu.min.js → revolugo.vlist.hjMTQUm_.min.js} +90 -88
- package/dist/revolugo.vmenu.Df9qQOg5.min.js +152 -0
- package/dist/{revolugo.vselect.C8g3avwV.min.js → revolugo.vselect.D58BjYst.min.js} +133 -132
- package/dist/revolugo.vsheet.Be5_uKvN.min.js +72 -0
- package/dist/{revolugo.vskeletonloader.lUzEuSvU.min.js → revolugo.vskeletonloader.DLz_sBeT.min.js} +14 -13
- package/dist/{revolugo.vsnackbar.vZBrE3Q7.min.js → revolugo.vsnackbar.DmI3K8dZ.min.js} +46 -44
- package/dist/revolugo.vspacer.D1ff4Ue6.min.js +7 -0
- package/dist/revolugo.vtextarea.CE2P777C.min.js +2102 -0
- package/dist/{revolugo.vtextfield.DPMmhQ6a.min.js → revolugo.vtextfield.B3H-uARB.min.js} +109 -107
- package/dist/{revolugo.vtoolbar.Bzh8TXIO.min.js → revolugo.vtoolbar.ZaD9QMMg.min.js} +21 -20
- package/dist/{revolugo.vtooltip.DMjpxOcA.min.js → revolugo.vtooltip.CiaW90fk.min.js} +118 -109
- package/dist/{revolugo.vwindowitem.yFpV6WTQ.min.js → revolugo.vwindowitem.BjNUE921.min.js} +41 -41
- package/dist/revolugo.watch-list.BLmFRUgU.min.js +16 -0
- package/dist/{revolugo.webcomponentwrapper.CfhsVy34.min.js → revolugo.webcomponentwrapper.D7s9Wt1u.min.js} +484 -541
- package/package.json +5 -5
- package/dist/revolugo.currencypickerbtn.D02DHRmR.min.js +0 -181
- package/dist/revolugo.dialog-transition.DyO6FFbo.min.js +0 -216
- package/dist/revolugo.hoteloffersearchmenu.CQyxBtRu.min.js +0 -46
- package/dist/revolugo.hoteloffersmap.Bp9l3_9T.min.js +0 -8409
- package/dist/revolugo.hotelroomofferrequestcreator.props.Dj5-GfCx.min.js +0 -317
- package/dist/revolugo.index.Ds7GPsGI.min.js +0 -1127
- package/dist/revolugo.ssrboot.DrkbeeFe.min.js +0 -91
- package/dist/revolugo.vsheet.BeVVp2B7.min.js +0 -71
- package/dist/revolugo.vspacer.B9TRu3hb.min.js +0 -14
- package/dist/revolugo.vtextarea.DQrxw1ua.min.js +0 -2093
- /package/dist/css/{revolugo.bpricesummaryskeleton.ZHH0C1yQ.css → revolugo.bhotelroomsdetails.ZHH0C1yQ.css} +0 -0
- /package/dist/css/{revolugo.rounded.XNPQF1ia.css → revolugo.index.XNPQF1ia.css} +0 -0
- /package/dist/css/{revolugo.ssrboot.CTbbZwnv.css → revolugo.vdivider.CTbbZwnv.css} +0 -0
- /package/dist/css/{revolugo.hotelroomofferrequestcreator.DvKwEp1j.css → revolugo.vmenu.DvKwEp1j.css} +0 -0
@@ -1,14 +1,15 @@
|
|
1
|
-
import { V as ce,
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { f as
|
5
|
-
import { u as
|
6
|
-
import {
|
7
|
-
import { V as
|
8
|
-
import { V as
|
9
|
-
import { V as
|
10
|
-
import {
|
11
|
-
|
1
|
+
import { V as ce, c as ke } from "./revolugo.vtextfield.B3H-uARB.min.js";
|
2
|
+
import { Z as ue, _ as j, M as H, a as f, F as Y, y as M, aP as Pe, a5 as L, a8 as de, C as K, D as R, bM as xe, aO as ge, ay as le, bu as Ce, R as ye, bo as oe, bN as Ee, ab as Ie, aN as Re, V as Oe, a9 as Q, ac as Ae, a2 as fe, a3 as De, bI as ne, $ as Le, a6 as _e, bG as ve, bH as me, bK as Fe, f as Be } from "./revolugo.index.wc.hcj2tBQa.min.js";
|
3
|
+
import { b as Me } from "./revolugo.vinput.DkrPzK9V.min.js";
|
4
|
+
import { f as He } from "./revolugo.forwardrefs.-bfQnFea.min.js";
|
5
|
+
import { u as Ne, m as Ue, b as qe, V as pe } from "./revolugo.vlist.hjMTQUm_.min.js";
|
6
|
+
import { w as Ve, u as se, m as we, n as Ke, x as ze, o as $e, p as Ye } from "./revolugo.webcomponentwrapper.D7s9Wt1u.min.js";
|
7
|
+
import { V as je } from "./revolugo.dialog-transition.ksNwOfBf.min.js";
|
8
|
+
import { V as he, h as Ge, a as We } from "./revolugo.index.MUWumuM5.min.js";
|
9
|
+
import { V as Xe } from "./revolugo.vmenu.Df9qQOg5.min.js";
|
10
|
+
import { a as Ze } from "./revolugo.vcheckboxbtn.-WD79m_3.min.js";
|
11
|
+
import { V as Je } from "./revolugo.btag.Cd9RL-Se.min.js";
|
12
|
+
function Te(e) {
|
12
13
|
try {
|
13
14
|
if (typeof document < "u") {
|
14
15
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -28,13 +29,13 @@ function ke(e) {
|
|
28
29
|
console.error("[revolugo-elements] ", r);
|
29
30
|
}
|
30
31
|
}
|
31
|
-
const
|
32
|
+
const Qe = j({
|
32
33
|
renderless: Boolean,
|
33
34
|
...we()
|
34
35
|
}, "VVirtualScrollItem"), et = ue()({
|
35
36
|
name: "VVirtualScrollItem",
|
36
37
|
inheritAttrs: !1,
|
37
|
-
props:
|
38
|
+
props: Qe(),
|
38
39
|
emits: {
|
39
40
|
"update:height": (e) => !0
|
40
41
|
},
|
@@ -48,14 +49,14 @@ const Ze = j({
|
|
48
49
|
resizeRef: v,
|
49
50
|
contentRect: m
|
50
51
|
} = Ve(void 0, "border");
|
51
|
-
|
52
|
+
H(() => {
|
52
53
|
var u;
|
53
54
|
return (u = m.value) == null ? void 0 : u.height;
|
54
55
|
}, (u) => {
|
55
56
|
u != null && i("update:height", u);
|
56
57
|
}), se(() => {
|
57
58
|
var u, a;
|
58
|
-
return e.renderless ? f(
|
59
|
+
return e.renderless ? f(Y, null, [(u = s.default) == null ? void 0 : u.call(s, {
|
59
60
|
itemRef: v
|
60
61
|
})]) : f("div", M({
|
61
62
|
ref: v,
|
@@ -72,37 +73,37 @@ const Ze = j({
|
|
72
73
|
height: [Number, String]
|
73
74
|
}, "virtual");
|
74
75
|
function at(e, r) {
|
75
|
-
const n = Pe(), i =
|
76
|
+
const n = Pe(), i = L(0);
|
76
77
|
de(() => {
|
77
78
|
i.value = parseFloat(e.itemHeight || 0);
|
78
79
|
});
|
79
|
-
const s =
|
80
|
+
const s = L(0), v = L(Math.ceil(
|
80
81
|
// Assume 16px items filling the entire screen height if
|
81
82
|
// not provided. This is probably incorrect but it minimises
|
82
83
|
// the chance of ending up with empty space at the bottom.
|
83
84
|
// The default value is set here to avoid poisoning getSize()
|
84
85
|
(parseInt(e.height) || n.height.value) / (i.value || 16)
|
85
|
-
) || 1), m =
|
86
|
+
) || 1), m = L(0), u = L(0), a = K(), V = K();
|
86
87
|
let I = 0;
|
87
88
|
const {
|
88
|
-
resizeRef:
|
89
|
+
resizeRef: D,
|
89
90
|
contentRect: c
|
90
91
|
} = Ve();
|
91
92
|
de(() => {
|
92
|
-
|
93
|
+
D.value = a.value;
|
93
94
|
});
|
94
95
|
const w = R(() => {
|
95
96
|
var t;
|
96
97
|
return a.value === document.documentElement ? n.height.value : ((t = c.value) == null ? void 0 : t.height) || parseInt(e.height) || 0;
|
97
|
-
}),
|
98
|
+
}), _ = R(() => !!(a.value && V.value && w.value && i.value));
|
98
99
|
let C = Array.from({
|
99
100
|
length: r.value.length
|
100
101
|
}), p = Array.from({
|
101
102
|
length: r.value.length
|
102
103
|
});
|
103
|
-
const S =
|
104
|
-
let
|
105
|
-
function
|
104
|
+
const S = L(0);
|
105
|
+
let T = -1;
|
106
|
+
function F(t) {
|
106
107
|
return C[t] || i.value;
|
107
108
|
}
|
108
109
|
const E = xe(() => {
|
@@ -110,12 +111,12 @@ function at(e, r) {
|
|
110
111
|
p[0] = 0;
|
111
112
|
const o = r.value.length;
|
112
113
|
for (let g = 1; g <= o - 1; g++)
|
113
|
-
p[g] = (p[g - 1] || 0) +
|
114
|
+
p[g] = (p[g - 1] || 0) + F(g - 1);
|
114
115
|
S.value = Math.max(S.value, performance.now() - t);
|
115
|
-
}, S), G =
|
116
|
-
t && (G(), I = V.value.offsetTop, E.immediate(), O(), ~
|
116
|
+
}, S), G = H(_, (t) => {
|
117
|
+
t && (G(), I = V.value.offsetTop, E.immediate(), O(), ~T && ye(() => {
|
117
118
|
oe && window.requestAnimationFrame(() => {
|
118
|
-
|
119
|
+
J(T), T = -1;
|
119
120
|
});
|
120
121
|
}));
|
121
122
|
});
|
@@ -126,54 +127,54 @@ function at(e, r) {
|
|
126
127
|
const g = C[t], y = i.value;
|
127
128
|
i.value = y ? Math.min(i.value, o) : o, (g !== o || y !== i.value) && (C[t] = o, E());
|
128
129
|
}
|
129
|
-
function
|
130
|
+
function k(t) {
|
130
131
|
return t = le(t, 0, r.value.length - 1), p[t] || 0;
|
131
132
|
}
|
132
133
|
function W(t) {
|
133
134
|
return ot(p, t);
|
134
135
|
}
|
135
|
-
let
|
136
|
-
|
136
|
+
let N = 0, B = 0, z = 0;
|
137
|
+
H(w, (t, o) => {
|
137
138
|
o && (O(), t < o && requestAnimationFrame(() => {
|
138
|
-
|
139
|
+
B = 0, O();
|
139
140
|
}));
|
140
141
|
});
|
141
|
-
let
|
142
|
+
let U = -1;
|
142
143
|
function q() {
|
143
144
|
if (!a.value || !V.value) return;
|
144
145
|
const t = a.value.scrollTop, o = performance.now();
|
145
|
-
o - z > 500 ? (
|
146
|
+
o - z > 500 ? (B = Math.sign(t - N), I = V.value.offsetTop) : B = t - N, N = t, z = o, window.clearTimeout(U), U = window.setTimeout(X, 500), O();
|
146
147
|
}
|
147
148
|
function X() {
|
148
|
-
!a.value || !V.value || (
|
149
|
+
!a.value || !V.value || (B = 0, z = 0, window.clearTimeout(U), O());
|
149
150
|
}
|
150
|
-
let
|
151
|
+
let Z = -1;
|
151
152
|
function O() {
|
152
|
-
cancelAnimationFrame(
|
153
|
+
cancelAnimationFrame(Z), Z = requestAnimationFrame(te);
|
153
154
|
}
|
154
155
|
function te() {
|
155
156
|
if (!a.value || !w.value) return;
|
156
|
-
const t =
|
157
|
+
const t = N - I, o = Math.sign(B), g = Math.max(0, t - ae), y = le(W(g), 0, r.value.length), d = t + w.value + ae, h = le(W(d) + 1, y + 1, r.value.length);
|
157
158
|
if (
|
158
159
|
// Only update the side we're scrolling towards,
|
159
160
|
// the other side will be updated incidentally
|
160
161
|
(o !== tt || y < s.value) && (o !== lt || h > v.value)
|
161
162
|
) {
|
162
|
-
const
|
163
|
-
Math.max(
|
163
|
+
const b = k(s.value) - k(y), A = k(h) - k(v.value);
|
164
|
+
Math.max(b, A) > ae ? (s.value = y, v.value = h) : (y <= 0 && (s.value = y), h >= r.value.length && (v.value = h));
|
164
165
|
}
|
165
|
-
m.value =
|
166
|
+
m.value = k(s.value), u.value = k(r.value.length) - k(v.value);
|
166
167
|
}
|
167
|
-
function
|
168
|
-
const o =
|
169
|
-
!a.value || t && !o ?
|
168
|
+
function J(t) {
|
169
|
+
const o = k(t);
|
170
|
+
!a.value || t && !o ? T = t : a.value.scrollTop = o;
|
170
171
|
}
|
171
172
|
const l = R(() => r.value.slice(s.value, v.value).map((t, o) => ({
|
172
173
|
raw: t,
|
173
174
|
index: o + s.value,
|
174
175
|
key: Ce(t) && "value" in t ? t.value : o + s.value
|
175
176
|
})));
|
176
|
-
return
|
177
|
+
return H(r, () => {
|
177
178
|
C = Array.from({
|
178
179
|
length: r.value.length
|
179
180
|
}), p = Array.from({
|
@@ -188,7 +189,7 @@ function at(e, r) {
|
|
188
189
|
computedItems: l,
|
189
190
|
paddingTop: m,
|
190
191
|
paddingBottom: u,
|
191
|
-
scrollToIndex:
|
192
|
+
scrollToIndex: J,
|
192
193
|
handleScroll: q,
|
193
194
|
handleScrollend: X,
|
194
195
|
handleItemResize: ee
|
@@ -214,7 +215,7 @@ const ut = j({
|
|
214
215
|
renderless: Boolean,
|
215
216
|
...nt(),
|
216
217
|
...we(),
|
217
|
-
|
218
|
+
...$e()
|
218
219
|
}, "VVirtualScroll"), st = ue()({
|
219
220
|
name: "VVirtualScroll",
|
220
221
|
props: ut(),
|
@@ -224,56 +225,56 @@ const ut = j({
|
|
224
225
|
} = r;
|
225
226
|
const i = Ee("VVirtualScroll"), {
|
226
227
|
dimensionStyles: s
|
227
|
-
} =
|
228
|
+
} = Ke(e), {
|
228
229
|
calculateVisibleItems: v,
|
229
230
|
containerRef: m,
|
230
231
|
markerRef: u,
|
231
232
|
handleScroll: a,
|
232
233
|
handleScrollend: V,
|
233
234
|
handleItemResize: I,
|
234
|
-
scrollToIndex:
|
235
|
+
scrollToIndex: D,
|
235
236
|
paddingTop: c,
|
236
237
|
paddingBottom: w,
|
237
|
-
computedItems:
|
238
|
+
computedItems: _
|
238
239
|
} = at(e, Ie(e, "items"));
|
239
240
|
return Re(() => e.renderless, () => {
|
240
241
|
function C() {
|
241
|
-
var
|
242
|
+
var T, F;
|
242
243
|
const S = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
243
244
|
m.value === document.documentElement ? (document[S]("scroll", a, {
|
244
245
|
passive: !0
|
245
|
-
}), document[S]("scrollend", V)) : ((
|
246
|
+
}), document[S]("scrollend", V)) : ((T = m.value) == null || T[S]("scroll", a, {
|
246
247
|
passive: !0
|
247
|
-
}), (
|
248
|
+
}), (F = m.value) == null || F[S]("scrollend", V));
|
248
249
|
}
|
249
250
|
Oe(() => {
|
250
|
-
m.value =
|
251
|
+
m.value = ze(i.vnode.el, !0), C(!0);
|
251
252
|
}), ge(C);
|
252
253
|
}), se(() => {
|
253
|
-
const C =
|
254
|
+
const C = _.value.map((p) => f(et, {
|
254
255
|
key: p.key,
|
255
256
|
renderless: e.renderless,
|
256
257
|
"onUpdate:height": (S) => I(p.index, S)
|
257
258
|
}, {
|
258
259
|
default: (S) => {
|
259
|
-
var
|
260
|
-
return (
|
260
|
+
var T;
|
261
|
+
return (T = n.default) == null ? void 0 : T.call(n, {
|
261
262
|
item: p.raw,
|
262
263
|
index: p.index,
|
263
264
|
...S
|
264
265
|
});
|
265
266
|
}
|
266
267
|
}));
|
267
|
-
return e.renderless ? f(
|
268
|
+
return e.renderless ? f(Y, null, [f("div", {
|
268
269
|
ref: u,
|
269
270
|
class: "v-virtual-scroll__spacer",
|
270
271
|
style: {
|
271
|
-
paddingTop:
|
272
|
+
paddingTop: Q(c.value)
|
272
273
|
}
|
273
274
|
}, null), C, f("div", {
|
274
275
|
class: "v-virtual-scroll__spacer",
|
275
276
|
style: {
|
276
|
-
paddingBottom:
|
277
|
+
paddingBottom: Q(w.value)
|
277
278
|
}
|
278
279
|
}, null)]) : f("div", {
|
279
280
|
ref: m,
|
@@ -285,18 +286,18 @@ const ut = j({
|
|
285
286
|
ref: u,
|
286
287
|
class: "v-virtual-scroll__container",
|
287
288
|
style: {
|
288
|
-
paddingTop:
|
289
|
-
paddingBottom:
|
289
|
+
paddingTop: Q(c.value),
|
290
|
+
paddingBottom: Q(w.value)
|
290
291
|
}
|
291
292
|
}, [C])]);
|
292
293
|
}), {
|
293
294
|
calculateVisibleItems: v,
|
294
|
-
scrollToIndex:
|
295
|
+
scrollToIndex: D
|
295
296
|
};
|
296
297
|
}
|
297
298
|
});
|
298
299
|
function rt(e, r) {
|
299
|
-
const n =
|
300
|
+
const n = L(!1);
|
300
301
|
let i;
|
301
302
|
function s(u) {
|
302
303
|
cancelAnimationFrame(i), n.value = !0, i = requestAnimationFrame(() => {
|
@@ -308,16 +309,16 @@ function rt(e, r) {
|
|
308
309
|
async function v() {
|
309
310
|
await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => {
|
310
311
|
if (n.value) {
|
311
|
-
const a =
|
312
|
+
const a = H(n, () => {
|
312
313
|
a(), u();
|
313
314
|
});
|
314
315
|
} else u();
|
315
316
|
});
|
316
317
|
}
|
317
318
|
async function m(u) {
|
318
|
-
var I,
|
319
|
+
var I, D;
|
319
320
|
if (u.key === "Tab" && ((I = r.value) == null || I.focus()), !["PageDown", "PageUp", "Home", "End"].includes(u.key)) return;
|
320
|
-
const a = (
|
321
|
+
const a = (D = e.value) == null ? void 0 : D.$el;
|
321
322
|
if (!a) return;
|
322
323
|
(u.key === "Home" || u.key === "End") && a.scrollTo({
|
323
324
|
top: u.key === "Home" ? 0 : a.scrollHeight,
|
@@ -364,7 +365,7 @@ const it = j({
|
|
364
365
|
},
|
365
366
|
menu: Boolean,
|
366
367
|
menuIcon: {
|
367
|
-
type:
|
368
|
+
type: Le,
|
368
369
|
default: "$dropdown"
|
369
370
|
},
|
370
371
|
menuProps: {
|
@@ -377,21 +378,21 @@ const it = j({
|
|
377
378
|
},
|
378
379
|
openOnClear: Boolean,
|
379
380
|
itemColor: String,
|
380
|
-
...
|
381
|
+
...Ue({
|
381
382
|
itemChildren: !1
|
382
383
|
})
|
383
384
|
}, "Select"), ct = j({
|
384
385
|
...it(),
|
385
|
-
...
|
386
|
+
..._e(ke({
|
386
387
|
modelValue: null,
|
387
388
|
role: "combobox"
|
388
389
|
}), ["validationValue", "dirty", "appendInnerIcon"]),
|
389
|
-
...
|
390
|
+
...Ye({
|
390
391
|
transition: {
|
391
|
-
component:
|
392
|
+
component: je
|
392
393
|
}
|
393
394
|
})
|
394
|
-
}, "VSelect"),
|
395
|
+
}, "VSelect"), bt = ue()({
|
395
396
|
name: "VSelect",
|
396
397
|
props: ct(),
|
397
398
|
emits: {
|
@@ -414,13 +415,13 @@ const it = j({
|
|
414
415
|
}), {
|
415
416
|
items: V,
|
416
417
|
transformIn: I,
|
417
|
-
transformOut:
|
418
|
-
} =
|
419
|
-
const t =
|
418
|
+
transformOut: D
|
419
|
+
} = Ne(e), c = fe(e, "modelValue", [], (l) => I(l === null ? [null] : De(l)), (l) => {
|
420
|
+
const t = D(l);
|
420
421
|
return e.multiple ? t : t[0] ?? null;
|
421
|
-
}), w = R(() => typeof e.counterValue == "function" ? e.counterValue(c.value) : typeof e.counterValue == "number" ? e.counterValue : c.value.length),
|
422
|
-
let
|
423
|
-
const E = R(() => e.hideSelected ? V.value.filter((l) => !c.value.some((t) => (e.valueComparator || ne)(t, l))) : V.value), G = R(() => e.hideNoData && !E.value.length ||
|
422
|
+
}), w = R(() => typeof e.counterValue == "function" ? e.counterValue(c.value) : typeof e.counterValue == "number" ? e.counterValue : c.value.length), _ = Me(e), C = R(() => c.value.map((l) => l.value)), p = L(!1), S = R(() => a.value ? e.closeText : e.openText);
|
423
|
+
let T = "", F;
|
424
|
+
const E = R(() => e.hideSelected ? V.value.filter((l) => !c.value.some((t) => (e.valueComparator || ne)(t, l))) : V.value), G = R(() => e.hideNoData && !E.value.length || _.isReadonly.value || _.isDisabled.value), ee = R(() => {
|
424
425
|
var l;
|
425
426
|
return {
|
426
427
|
...e.menuProps,
|
@@ -430,31 +431,31 @@ const it = j({
|
|
430
431
|
// Set aria-haspopup to 'listbox'
|
431
432
|
}
|
432
433
|
};
|
433
|
-
}),
|
434
|
-
function
|
434
|
+
}), k = K(), W = rt(k, s);
|
435
|
+
function N(l) {
|
435
436
|
e.openOnClear && (a.value = !0);
|
436
437
|
}
|
437
|
-
function
|
438
|
+
function B() {
|
438
439
|
G.value || (a.value = !a.value);
|
439
440
|
}
|
440
441
|
function z(l) {
|
441
|
-
ve(l) &&
|
442
|
+
ve(l) && U(l);
|
442
443
|
}
|
443
|
-
function
|
444
|
+
function U(l) {
|
444
445
|
var y, d;
|
445
|
-
if (!l.key ||
|
446
|
-
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && l.preventDefault(), ["Enter", "ArrowDown", " "].includes(l.key) && (a.value = !0), ["Escape", "Tab"].includes(l.key) && (a.value = !1), l.key === "Home" ? (y =
|
446
|
+
if (!l.key || _.isReadonly.value) return;
|
447
|
+
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && l.preventDefault(), ["Enter", "ArrowDown", " "].includes(l.key) && (a.value = !0), ["Escape", "Tab"].includes(l.key) && (a.value = !1), l.key === "Home" ? (y = k.value) == null || y.focus("first") : l.key === "End" && ((d = k.value) == null || d.focus("last"));
|
447
448
|
const t = 1e3;
|
448
449
|
if (!ve(l)) return;
|
449
450
|
const o = performance.now();
|
450
|
-
o -
|
451
|
-
const g = V.value.find((h) => h.title.toLowerCase().startsWith(
|
451
|
+
o - F > t && (T = ""), T += l.key.toLowerCase(), F = o;
|
452
|
+
const g = V.value.find((h) => h.title.toLowerCase().startsWith(T));
|
452
453
|
if (g !== void 0) {
|
453
454
|
c.value = [g];
|
454
455
|
const h = E.value.indexOf(g);
|
455
456
|
oe && window.requestAnimationFrame(() => {
|
456
|
-
var
|
457
|
-
h >= 0 && ((
|
457
|
+
var b;
|
458
|
+
h >= 0 && ((b = m.value) == null || b.scrollToIndex(h));
|
458
459
|
});
|
459
460
|
}
|
460
461
|
}
|
@@ -476,9 +477,9 @@ const it = j({
|
|
476
477
|
}
|
477
478
|
function X(l) {
|
478
479
|
var t;
|
479
|
-
(t =
|
480
|
+
(t = k.value) != null && t.$el.contains(l.relatedTarget) || (a.value = !1);
|
480
481
|
}
|
481
|
-
function
|
482
|
+
function Z() {
|
482
483
|
var l;
|
483
484
|
e.eager && ((l = m.value) == null || l.calculateVisibleItems());
|
484
485
|
}
|
@@ -489,14 +490,14 @@ const it = j({
|
|
489
490
|
function te(l) {
|
490
491
|
p.value = !0;
|
491
492
|
}
|
492
|
-
function
|
493
|
+
function J(l) {
|
493
494
|
if (l == null) c.value = [];
|
494
495
|
else if (me(s.value, ":autofill") || me(s.value, ":-webkit-autofill")) {
|
495
496
|
const t = V.value.find((o) => o.title === l);
|
496
497
|
t && q(t);
|
497
498
|
} else s.value && (s.value.value = "");
|
498
499
|
}
|
499
|
-
return
|
500
|
+
return H(a, () => {
|
500
501
|
if (!e.hideSelected && a.value && c.value.length) {
|
501
502
|
const l = E.value.findIndex((t) => c.value.some((o) => (e.valueComparator || ne)(o.value, t.value)));
|
502
503
|
oe && window.requestAnimationFrame(() => {
|
@@ -504,7 +505,7 @@ const it = j({
|
|
504
505
|
l >= 0 && ((t = m.value) == null || t.scrollToIndex(l));
|
505
506
|
});
|
506
507
|
}
|
507
|
-
}),
|
508
|
+
}), H(() => e.items, (l, t) => {
|
508
509
|
a.value || p.value && !t.length && l.length && (a.value = !0);
|
509
510
|
}), se(() => {
|
510
511
|
const l = !!(e.chips || n.chip), t = !!(!e.hideNoData || E.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), o = c.value.length > 0, g = ce.filterProps(e), y = o || !p.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
@@ -512,7 +513,7 @@ const it = j({
|
|
512
513
|
ref: s
|
513
514
|
}, g, {
|
514
515
|
modelValue: c.value.map((d) => d.props.value).join(", "),
|
515
|
-
"onUpdate:modelValue":
|
516
|
+
"onUpdate:modelValue": J,
|
516
517
|
focused: p.value,
|
517
518
|
"onUpdate:focused": (d) => p.value = d,
|
518
519
|
validationValue: c.externalValue,
|
@@ -528,15 +529,15 @@ const it = j({
|
|
528
529
|
style: e.style,
|
529
530
|
inputmode: "none",
|
530
531
|
placeholder: y,
|
531
|
-
"onClick:clear":
|
532
|
-
"onMousedown:control":
|
532
|
+
"onClick:clear": N,
|
533
|
+
"onMousedown:control": B,
|
533
534
|
onBlur: X,
|
534
|
-
onKeydown:
|
535
|
+
onKeydown: U,
|
535
536
|
"aria-label": i(S.value),
|
536
537
|
title: i(S.value)
|
537
538
|
}), {
|
538
539
|
...n,
|
539
|
-
default: () => f(
|
540
|
+
default: () => f(Y, null, [f(Xe, M({
|
540
541
|
ref: v,
|
541
542
|
modelValue: a.value,
|
542
543
|
"onUpdate:modelValue": (d) => a.value = d,
|
@@ -548,11 +549,11 @@ const it = j({
|
|
548
549
|
openOnClick: !1,
|
549
550
|
closeOnContentClick: !1,
|
550
551
|
transition: e.transition,
|
551
|
-
onAfterEnter:
|
552
|
+
onAfterEnter: Z,
|
552
553
|
onAfterLeave: O
|
553
554
|
}, ee.value), {
|
554
|
-
default: () => [t && f(
|
555
|
-
ref:
|
555
|
+
default: () => [t && f(qe, M({
|
556
|
+
ref: k,
|
556
557
|
selected: C.value,
|
557
558
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
558
559
|
onMousedown: (d) => d.preventDefault(),
|
@@ -563,8 +564,8 @@ const it = j({
|
|
563
564
|
color: e.itemColor ?? e.color
|
564
565
|
}, W, e.listProps), {
|
565
566
|
default: () => {
|
566
|
-
var d, h,
|
567
|
-
return [(d = n["prepend-item"]) == null ? void 0 : d.call(n), !E.value.length && !e.hideNoData && (((h = n["no-data"]) == null ? void 0 : h.call(n)) ?? f(
|
567
|
+
var d, h, b;
|
568
|
+
return [(d = n["prepend-item"]) == null ? void 0 : d.call(n), !E.value.length && !e.hideNoData && (((h = n["no-data"]) == null ? void 0 : h.call(n)) ?? f(pe, {
|
568
569
|
key: "no-data",
|
569
570
|
title: i(e.noDataText)
|
570
571
|
}, null)), f(st, {
|
@@ -576,7 +577,7 @@ const it = j({
|
|
576
577
|
var ie;
|
577
578
|
let {
|
578
579
|
item: P,
|
579
|
-
index:
|
580
|
+
index: $,
|
580
581
|
itemRef: x
|
581
582
|
} = A;
|
582
583
|
const re = M(P.props, {
|
@@ -586,46 +587,46 @@ const it = j({
|
|
586
587
|
});
|
587
588
|
return ((ie = n.item) == null ? void 0 : ie.call(n, {
|
588
589
|
item: P,
|
589
|
-
index:
|
590
|
+
index: $,
|
590
591
|
props: re
|
591
|
-
})) ?? f(
|
592
|
+
})) ?? f(pe, M(re, {
|
592
593
|
role: "option"
|
593
594
|
}), {
|
594
595
|
prepend: (Se) => {
|
595
596
|
let {
|
596
|
-
isSelected:
|
597
|
+
isSelected: be
|
597
598
|
} = Se;
|
598
|
-
return f(
|
599
|
+
return f(Y, null, [e.multiple && !e.hideSelected ? f(Ze, {
|
599
600
|
key: P.value,
|
600
|
-
modelValue:
|
601
|
+
modelValue: be,
|
601
602
|
ripple: !1,
|
602
603
|
tabindex: "-1"
|
603
|
-
}, null) : void 0, P.props.prependAvatar && f(
|
604
|
+
}, null) : void 0, P.props.prependAvatar && f(Ge, {
|
604
605
|
image: P.props.prependAvatar
|
605
|
-
}, null), P.props.prependIcon && f(
|
606
|
+
}, null), P.props.prependIcon && f(he, {
|
606
607
|
icon: P.props.prependIcon
|
607
608
|
}, null)]);
|
608
609
|
}
|
609
610
|
});
|
610
611
|
}
|
611
|
-
}), (
|
612
|
+
}), (b = n["append-item"]) == null ? void 0 : b.call(n)];
|
612
613
|
}
|
613
614
|
})]
|
614
615
|
}), c.value.map((d, h) => {
|
615
|
-
function
|
616
|
+
function b(x) {
|
616
617
|
x.stopPropagation(), x.preventDefault(), q(d, !1);
|
617
618
|
}
|
618
619
|
const A = {
|
619
|
-
"onClick:close":
|
620
|
+
"onClick:close": b,
|
620
621
|
onKeydown(x) {
|
621
|
-
x.key !== "Enter" && x.key !== " " || (x.preventDefault(), x.stopPropagation(),
|
622
|
+
x.key !== "Enter" && x.key !== " " || (x.preventDefault(), x.stopPropagation(), b(x));
|
622
623
|
},
|
623
624
|
onMousedown(x) {
|
624
625
|
x.preventDefault(), x.stopPropagation();
|
625
626
|
},
|
626
627
|
modelValue: !0,
|
627
628
|
"onUpdate:modelValue": void 0
|
628
|
-
}, P = l ? !!n.chip : !!n.selection,
|
629
|
+
}, P = l ? !!n.chip : !!n.selection, $ = P ? Fe(l ? n.chip({
|
629
630
|
item: d,
|
630
631
|
index: h,
|
631
632
|
props: A
|
@@ -633,11 +634,11 @@ const it = j({
|
|
633
634
|
item: d,
|
634
635
|
index: h
|
635
636
|
})) : void 0;
|
636
|
-
if (!(P &&
|
637
|
+
if (!(P && !$))
|
637
638
|
return f("div", {
|
638
639
|
key: d.value,
|
639
640
|
class: "v-select__selection"
|
640
|
-
}, [l ? n.chip ? f(
|
641
|
+
}, [l ? n.chip ? f(We, {
|
641
642
|
key: "chip-defaults",
|
642
643
|
defaults: {
|
643
644
|
VChip: {
|
@@ -647,41 +648,41 @@ const it = j({
|
|
647
648
|
}
|
648
649
|
}
|
649
650
|
}, {
|
650
|
-
default: () => [
|
651
|
-
}) : f(
|
651
|
+
default: () => [$]
|
652
|
+
}) : f(Je, M({
|
652
653
|
key: "chip",
|
653
654
|
closable: e.closableChips,
|
654
655
|
size: "small",
|
655
656
|
text: d.title,
|
656
657
|
disabled: d.props.disabled
|
657
|
-
}, A), null) :
|
658
|
+
}, A), null) : $ ?? f("span", {
|
658
659
|
class: "v-select__selection-text"
|
659
660
|
}, [d.title, e.multiple && h < c.value.length - 1 && f("span", {
|
660
661
|
class: "v-select__selection-comma"
|
661
|
-
}, [
|
662
|
+
}, [Be(",")])])]);
|
662
663
|
})]),
|
663
664
|
"append-inner": function() {
|
664
665
|
var A;
|
665
|
-
for (var d = arguments.length, h = new Array(d),
|
666
|
-
h[
|
667
|
-
return f(
|
666
|
+
for (var d = arguments.length, h = new Array(d), b = 0; b < d; b++)
|
667
|
+
h[b] = arguments[b];
|
668
|
+
return f(Y, null, [(A = n["append-inner"]) == null ? void 0 : A.call(n, ...h), e.menuIcon ? f(he, {
|
668
669
|
class: "v-select__menu-icon",
|
669
670
|
icon: e.menuIcon
|
670
671
|
}, null) : void 0]);
|
671
672
|
}
|
672
673
|
});
|
673
|
-
}),
|
674
|
+
}), He({
|
674
675
|
isFocused: p,
|
675
676
|
menu: a,
|
676
677
|
select: q
|
677
678
|
}, s);
|
678
679
|
}
|
679
680
|
});
|
680
|
-
|
681
|
+
Te("css/revolugo.vselect.C5CKHFYB.css");
|
681
682
|
export {
|
682
|
-
|
683
|
-
|
683
|
+
bt as V,
|
684
|
+
st as a,
|
684
685
|
it as m,
|
685
686
|
rt as u
|
686
687
|
};
|
687
|
-
//# sourceMappingURL=revolugo.vselect.
|
688
|
+
//# sourceMappingURL=revolugo.vselect.D58BjYst.min.js.map
|