@revolugo/elements 6.8.2-beta.30 → 6.8.2-beta.31

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.
Files changed (150) hide show
  1. package/dist/css/revolugo.bdaterangepicker.D1e8WHUE.css +1 -0
  2. package/dist/css/revolugo.bimagecarousel.DFlgQMzq.css +1 -0
  3. package/dist/css/{revolugo.btag.g-q3eChG.css → revolugo.btag.CYbY5J61.css} +1 -1
  4. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  5. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  6. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  7. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  8. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  9. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  10. package/dist/css/{revolugo.vsnackbar.Cj7AcupY.css → revolugo.vsnackbar.CCfuo3ao.css} +1 -1
  11. package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.BNxGrktU.css} +2 -2
  12. package/dist/index.es.min.js +1927 -2144
  13. package/dist/index.es.min.js.map +1 -1
  14. package/dist/index.min.js +6 -6
  15. package/dist/index.min.js.map +1 -1
  16. package/dist/{revolugo._baseiteratee.CLhJGa_I.min.js → revolugo._baseiteratee.Bxmf2YBQ.min.js} +3 -3
  17. package/dist/{revolugo.banktransferdetails.Djs6mxU0.min.js → revolugo.banktransferdetails.SE8NErTw.min.js} +9 -9
  18. package/dist/revolugo.bdaterangepicker.Bs2pH95_.min.js +8328 -0
  19. package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.C3xbTcQN.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DIWYLLE_.min.js} +30 -34
  20. package/dist/{revolugo.bhoteloffersfilterbar.CVh2pH-N.min.js → revolugo.bhoteloffersfilterbar.gHx-XQIq.min.js} +1672 -1766
  21. package/dist/{revolugo.bhotelroomsdetails.C4xdQLfe.min.js → revolugo.bhotelroomsdetails.ByB7GIQB.min.js} +72 -76
  22. package/dist/{revolugo.bhotelsearchbar.DR7UHkQo.min.js → revolugo.bhotelsearchbar.D4nP_Yeh.min.js} +119 -122
  23. package/dist/{revolugo.bimagecarousel.DhwrLMiX.min.js → revolugo.bimagecarousel.DhA7fKr_.min.js} +165 -174
  24. package/dist/{revolugo.bookingdetailssidebar.DwIul6C1.min.js → revolugo.bookingdetailssidebar.Dd56Wy_U.min.js} +207 -221
  25. package/dist/{revolugo.bookingdetailssidebar.DkBHaNwV.min.js → revolugo.bookingdetailssidebar.lwfVw3hd.min.js} +4 -4
  26. package/dist/{revolugo.bookingmanager.CmdsCQDi.min.js → revolugo.bookingmanager.CalvEAgz.min.js} +400 -419
  27. package/dist/{revolugo.bpricesummaryskeleton.BcgNLGYX.min.js → revolugo.bpricesummaryskeleton.C-X2i-r7.min.js} +4 -4
  28. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.B4psJ9Sg.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.7yIt37GG.min.js} +148 -157
  29. package/dist/revolugo.btag.D9PcRagV.min.js +375 -0
  30. package/dist/{revolugo.cancellationpoliciesbadge.D7CMWTdG.min.js → revolugo.cancellationpoliciesbadge.BMTMxB84.min.js} +86 -95
  31. package/dist/{revolugo.cancellationpoliciesbadge.Bp43_l5_.min.js → revolugo.cancellationpoliciesbadge.BS3sdT0j.min.js} +4 -4
  32. package/dist/{revolugo.cancellationpolicieslist.D2idtSnK.min.js → revolugo.cancellationpolicieslist.BlIDNloM.min.js} +4 -4
  33. package/dist/{revolugo.cancellationpolicieslist.hSJAFEGT.min.js → revolugo.cancellationpolicieslist.CSKJ_RQf.min.js} +6 -6
  34. package/dist/revolugo.case-transformers.wj5dY-62.min.js +123 -0
  35. package/dist/{revolugo.creditcardform.CrwpUivQ.min.js → revolugo.creditcardform.58FDmjkc.min.js} +4 -4
  36. package/dist/{revolugo.creditcardform.SRz4ls19.min.js → revolugo.creditcardform.DjHXUGaT.min.js} +56 -69
  37. package/dist/{revolugo.creditcardpayment.bSs8I8av.min.js → revolugo.creditcardpayment.CXIZBeLQ.min.js} +4 -4
  38. package/dist/{revolugo.creditcardpayment.BcVHQlKJ.min.js → revolugo.creditcardpayment.eNRvC7VG.min.js} +152 -162
  39. package/dist/{revolugo.currencypicker.-B3knz6i.min.js → revolugo.currencypicker.mpJHETlw.min.js} +6 -6
  40. package/dist/{revolugo.currencypickerbtn.D38ZdlKW.min.js → revolugo.currencypickerbtn.BT4gJYck.min.js} +42 -45
  41. package/dist/{revolugo.currencypickerbtn.CyHWGHaW.min.js → revolugo.currencypickerbtn.DcaNmmTa.min.js} +4 -4
  42. package/dist/{revolugo.defaultsdeep.z9urzKAp.min.js → revolugo.defaultsdeep.B15U6I23.min.js} +2 -2
  43. package/dist/{revolugo.dialog-attach.D_OA19-E.min.js → revolugo.dialog-attach.Kn52rX5V.min.js} +5 -6
  44. package/dist/revolugo.dialog-transition.K64Up6o5.min.js +111 -0
  45. package/dist/{revolugo.fastbookingflow.CJP79XT7.min.js → revolugo.fastbookingflow.DSWy6Ys3.min.js} +4 -4
  46. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  47. package/dist/{revolugo.fullbookingflow.Cd2NIaQ2.min.js → revolugo.fullbookingflow.BLumv8em.min.js} +122 -128
  48. package/dist/{revolugo.hotel-offer-request.CgsVMCkE.min.js → revolugo.hotel-offer-request.08Q8GaoF.min.js} +18 -18
  49. package/dist/{revolugo.hoteldescriptionview.BSrnxJem.min.js → revolugo.hoteldescriptionview.BCrpDoH8.min.js} +588 -620
  50. package/dist/{revolugo.hoteldescriptionview.Cl2E63e2.min.js → revolugo.hoteldescriptionview.BOhmeT2B.min.js} +4 -4
  51. package/dist/{revolugo.hotelofferitemlayout.BMzCfYQ7.min.js → revolugo.hotelofferitemlayout.iXqLrvQm.min.js} +8 -8
  52. package/dist/{revolugo.hotelofferlist.B3yjbXlQ.min.js → revolugo.hotelofferlist.0NPXq55P.min.js} +1563 -1693
  53. package/dist/{revolugo.hotelofferlist.DhYBX5pF.min.js → revolugo.hotelofferlist.DjUTqa2K.min.js} +4 -4
  54. package/dist/{revolugo.hotelofferrequestcreator.CNbav2EO.min.js → revolugo.hotelofferrequestcreator.BURjSAMm.min.js} +5 -5
  55. package/dist/{revolugo.hoteloffersearchmenu.BZascblw.min.js → revolugo.hoteloffersearchmenu.Dgq9VEmx.min.js} +7 -7
  56. package/dist/{revolugo.hoteloffersmap.D6hRTrsf.min.js → revolugo.hoteloffersmap.BnqHPNt1.min.js} +563 -574
  57. package/dist/{revolugo.hoteloffersmap.DkNN0NQB.min.js → revolugo.hoteloffersmap.CeDXd2FY.min.js} +4 -4
  58. package/dist/{revolugo.hoteloffersview.DjAXSPOG.min.js → revolugo.hoteloffersview.Bih_7gfI.min.js} +125 -130
  59. package/dist/{revolugo.hoteloffersview.CPYXigVN.min.js → revolugo.hoteloffersview.D_H5aGBv.min.js} +4 -4
  60. package/dist/{revolugo.hotelroomofferlist.C_HCimvP.min.js → revolugo.hotelroomofferlist.CXald_sS.min.js} +4 -4
  61. package/dist/{revolugo.hotelroomofferlist.wD_JIpuK.min.js → revolugo.hotelroomofferlist.O0tRAgZS.min.js} +727 -785
  62. package/dist/{revolugo.hotelroomofferrequestcreator.props.DjBXUl-H.min.js → revolugo.hotelroomofferrequestcreator.props.CVwr05si.min.js} +6 -6
  63. package/dist/{revolugo.hotelroomoffersbookingflow.2E3AYERj.min.js → revolugo.hotelroomoffersbookingflow.DGKPam4L.min.js} +333 -358
  64. package/dist/{revolugo.hotelroomoffersearchmenu.B-C4YSFE.min.js → revolugo.hotelroomoffersearchmenu.DfCU58yl.min.js} +5 -5
  65. package/dist/{revolugo.hotelroomoffersearchmenu.DrW5uMfL.min.js → revolugo.hotelroomoffersearchmenu.ElcYfITq.min.js} +34 -36
  66. package/dist/{revolugo.hotelroomoffersview.CCmILEaO.min.js → revolugo.hotelroomoffersview.BDUFPxQD.min.js} +68 -71
  67. package/dist/{revolugo.hotelroomoffersview.DVsdh7Jz.min.js → revolugo.hotelroomoffersview.YYq7-L5h.min.js} +4 -4
  68. package/dist/{revolugo.index.Dyr1hnew.min.js → revolugo.index.bIefP9Di.min.js} +396 -419
  69. package/dist/{revolugo.index.wc.BaFPloEH.min.js → revolugo.index.wc.CVg-U7Gx.min.js} +6415 -6523
  70. package/dist/{revolugo.langpicker.CaQ17b6t.min.js → revolugo.langpicker.Ccsg-lEF.min.js} +24 -27
  71. package/dist/{revolugo.langpickerbtn.DTkV9PYE.min.js → revolugo.langpickerbtn.CM2mTy7Y.min.js} +4 -4
  72. package/dist/{revolugo.langpickerbtn.DmoEWum3.min.js → revolugo.langpickerbtn.DyJ4Olno.min.js} +31 -32
  73. package/dist/revolugo.min.js +1 -1
  74. package/dist/{revolugo.pathify.CKNqCKLR.min.js → revolugo.pathify.BlrRHScz.min.js} +4 -4
  75. package/dist/{revolugo.prebookform.p-M6zS08.min.js → revolugo.prebookform.B8gqQx-H.min.js} +4 -4
  76. package/dist/{revolugo.prebookform.CxKmwFK-.min.js → revolugo.prebookform.fhOF5rTL.min.js} +97 -101
  77. package/dist/{revolugo.roominglisteditor.5gfIA3r6.min.js → revolugo.roominglisteditor.CB2ZVVIX.min.js} +98 -104
  78. package/dist/{revolugo.roominglisteditor.Zz9TPhp6.min.js → revolugo.roominglisteditor.LxMxvTG6.min.js} +4 -4
  79. package/dist/{revolugo.rounded.CQuigzpH.min.js → revolugo.rounded.CdTdATPg.min.js} +2 -2
  80. package/dist/{revolugo.ssrboot.DfQY0r5E.min.js → revolugo.ssrboot.D-F25G2D.min.js} +2 -2
  81. package/dist/{revolugo.storybooktoolbar.DikXrkgz.min.js → revolugo.storybooktoolbar.BDi7kzis.min.js} +90 -94
  82. package/dist/{revolugo.termsandconditions.CiHuvfp6.min.js → revolugo.termsandconditions.DZ84e8oM.min.js} +52 -55
  83. package/dist/{revolugo.termsandconditions.Bbo5pbgR.min.js → revolugo.termsandconditions.ILptE4WJ.min.js} +4 -4
  84. package/dist/revolugo.use-breakpoint-service.DPvOP-XF.min.js +39 -0
  85. package/dist/revolugo.use-html-element.Dfl5QKN-.min.js +11 -0
  86. package/dist/revolugo.vautocomplete.DBPq0WdQ.min.js +445 -0
  87. package/dist/revolugo.vbadge.CU5xYZyW.min.js +112 -0
  88. package/dist/revolugo.vbtn.X3RP4Z34.min.js +398 -0
  89. package/dist/revolugo.vcard.DfYEYCIx.min.js +313 -0
  90. package/dist/revolugo.vcheckboxbtn.DLdpGWrK.min.js +478 -0
  91. package/dist/revolugo.vdialog.A3glfkAC.min.js +133 -0
  92. package/dist/{revolugo.vdivider.93Ehbd8W.min.js → revolugo.vdivider.C8Jprud4.min.js} +3 -3
  93. package/dist/revolugo.vexpansionpanels.xliCx-5-.min.js +262 -0
  94. package/dist/revolugo.vform.BYdqOlKN.min.js +46 -0
  95. package/dist/revolugo.vicon.DGbfBJIw.min.js +105 -0
  96. package/dist/revolugo.vinput.Bh9hEdMF.min.js +463 -0
  97. package/dist/revolugo.vlabel.Dx1aNiVc.min.js +48 -0
  98. package/dist/revolugo.vlist.BMwn1ihP.min.js +1299 -0
  99. package/dist/revolugo.vmenu.ByEEPO9y.min.js +145 -0
  100. package/dist/revolugo.vselect.Dzd6zNRa.min.js +660 -0
  101. package/dist/{revolugo.vsheet.H2Eli2di.min.js → revolugo.vsheet.C7bJI8gr.min.js} +5 -5
  102. package/dist/{revolugo.vskeletonloader.B-Qq0740.min.js → revolugo.vskeletonloader.DcVdfRoT.min.js} +57 -58
  103. package/dist/revolugo.vslidegroup.DrV2UvdN.min.js +325 -0
  104. package/dist/revolugo.vsnackbar.C_2qY4Nh.min.js +198 -0
  105. package/dist/revolugo.vspacer.CP17be9N.min.js +7 -0
  106. package/dist/{revolugo.vtextarea.BJaCwHl5.min.js → revolugo.vtextarea.CPnC6tk4.min.js} +353 -363
  107. package/dist/revolugo.vtextfield.CnjNadCm.min.js +501 -0
  108. package/dist/revolugo.vtoolbar.CpgasmNE.min.js +180 -0
  109. package/dist/revolugo.vtooltip.F6cVVKxe.min.js +89 -0
  110. package/dist/revolugo.vwindowitem.BZMm5BTu.min.js +317 -0
  111. package/dist/revolugo.watch-list.Bnuh1CzH.min.js +16 -0
  112. package/dist/{revolugo.webcomponentwrapper.Byzhja-M.min.js → revolugo.webcomponentwrapper.DY-mO-0c.min.js} +786 -832
  113. package/package.json +1 -1
  114. package/dist/css/revolugo.bdaterangepicker.BLYZnPjh.css +0 -1
  115. package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
  116. package/dist/css/revolugo.index.4hIg6F8J.css +0 -1
  117. package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
  118. package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
  119. package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
  120. package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
  121. package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
  122. package/dist/revolugo.bdaterangepicker.D9a3kNuM.min.js +0 -8436
  123. package/dist/revolugo.btag.mY1ErEMj.min.js +0 -389
  124. package/dist/revolugo.case-transformers.VM7X_9Q1.min.js +0 -123
  125. package/dist/revolugo.dialog-transition.D9Rvu5kv.min.js +0 -114
  126. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
  127. package/dist/revolugo.use-breakpoint-service.BLlHYRIa.min.js +0 -45
  128. package/dist/revolugo.use-html-element.C-V3ql2M.min.js +0 -12
  129. package/dist/revolugo.vautocomplete.CimHObsW.min.js +0 -467
  130. package/dist/revolugo.vbadge.dOVHEqkO.min.js +0 -118
  131. package/dist/revolugo.vbtn.C5rBd2Qx.min.js +0 -417
  132. package/dist/revolugo.vcard.Dw6Qxohz.min.js +0 -329
  133. package/dist/revolugo.vcheckboxbtn.oJMjQhq7.min.js +0 -491
  134. package/dist/revolugo.vdialog.DBJFoM4O.min.js +0 -139
  135. package/dist/revolugo.vexpansionpanels.nGkPqsEk.min.js +0 -277
  136. package/dist/revolugo.vform.D7BJmMQ-.min.js +0 -50
  137. package/dist/revolugo.vicon.CuIGTijn.min.js +0 -106
  138. package/dist/revolugo.vinput.C6k3-74L.min.js +0 -478
  139. package/dist/revolugo.vlabel.BNLTPj0h.min.js +0 -51
  140. package/dist/revolugo.vlist.B56e-cT_.min.js +0 -1348
  141. package/dist/revolugo.vmenu.DhHohFn7.min.js +0 -152
  142. package/dist/revolugo.vselect.BHhGGQU3.min.js +0 -689
  143. package/dist/revolugo.vslidegroup.ChtHIkDN.min.js +0 -333
  144. package/dist/revolugo.vsnackbar.-lEdFT5G.min.js +0 -201
  145. package/dist/revolugo.vspacer.DaFDHuC9.min.js +0 -7
  146. package/dist/revolugo.vtextfield.CMQN6tSz.min.js +0 -508
  147. package/dist/revolugo.vtoolbar.CSyyGTVc.min.js +0 -188
  148. package/dist/revolugo.vtooltip.CvplYWvb.min.js +0 -90
  149. package/dist/revolugo.vwindowitem.bzpa5cVc.min.js +0 -329
  150. package/dist/revolugo.watch-list.Be1UUzWP.min.js +0 -16
@@ -1,689 +0,0 @@
1
- import { V as ce, c as ke } from "./revolugo.vtextfield.CMQN6tSz.min.js";
2
- import { Y as ue, Z as j, L as H, a as f, F as $, y as M, aS as Pe, a4 as L, a7 as de, C as K, D as R, bV as xe, aR as ge, aD as le, bD as Ce, Q as ye, bx as oe, bW as Ee, aa as Ie, aQ as Re, S as De, a8 as J, ab as Oe, a1 as fe, a2 as Ae, bR as ne, _ as Le, a5 as _e, bP as ve, bQ as me, bT as Fe, f as Be } from "./revolugo.index.wc.BaFPloEH.min.js";
3
- import { b as Me } from "./revolugo.vinput.C6k3-74L.min.js";
4
- import { f as He } from "./revolugo.forwardrefs.-bfQnFea.min.js";
5
- import { u as Ue, m as Ne, a as qe, V as pe } from "./revolugo.vlist.B56e-cT_.min.js";
6
- import { w as Ve, u as se, m as we, n as Ke, x as ze, o as Ye, p as $e } from "./revolugo.webcomponentwrapper.Byzhja-M.min.js";
7
- import { V as je } from "./revolugo.dialog-transition.D9Rvu5kv.min.js";
8
- import { V as he } from "./revolugo.vicon.CuIGTijn.min.js";
9
- import { V as Ge } from "./revolugo.vmenu.DhHohFn7.min.js";
10
- import { a as We } from "./revolugo.vcheckboxbtn.oJMjQhq7.min.js";
11
- import { h as Qe, a as Xe } from "./revolugo.index.Dyr1hnew.min.js";
12
- import { V as Ze } from "./revolugo.btag.mY1ErEMj.min.js";
13
- function Te(e) {
14
- try {
15
- if (typeof document < "u") {
16
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
17
- sheets: [],
18
- components: []
19
- };
20
- const r = import.meta.url, n = r.slice(0, r.lastIndexOf("/") + 1) + e;
21
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(n);
22
- for (const i of REVOLUGO_ELEMENTS_STYLES.components)
23
- i(n);
24
- if (e.indexOf("fonts") >= 0) {
25
- const i = document.createElement("link");
26
- i.rel = "stylesheet", linK.href = n, document.head.appendChild(i);
27
- }
28
- }
29
- } catch (r) {
30
- console.error("[revolugo-elements] ", r);
31
- }
32
- }
33
- const Je = j({
34
- renderless: Boolean,
35
- ...we()
36
- }, "VVirtualScrollItem"), et = ue()({
37
- name: "VVirtualScrollItem",
38
- inheritAttrs: !1,
39
- props: Je(),
40
- emits: {
41
- "update:height": (e) => !0
42
- },
43
- setup(e, r) {
44
- let {
45
- attrs: n,
46
- emit: i,
47
- slots: s
48
- } = r;
49
- const {
50
- resizeRef: v,
51
- contentRect: m
52
- } = Ve(void 0, "border");
53
- H(() => {
54
- var u;
55
- return (u = m.value) == null ? void 0 : u.height;
56
- }, (u) => {
57
- u != null && i("update:height", u);
58
- }), se(() => {
59
- var u, a;
60
- return e.renderless ? f($, null, [(u = s.default) == null ? void 0 : u.call(s, {
61
- itemRef: v
62
- })]) : f("div", M({
63
- ref: v,
64
- class: ["v-virtual-scroll__item", e.class],
65
- style: e.style
66
- }, n), [(a = s.default) == null ? void 0 : a.call(s)]);
67
- });
68
- }
69
- }), tt = -1, lt = 1, ae = 100, nt = j({
70
- itemHeight: {
71
- type: [Number, String],
72
- default: null
73
- },
74
- height: [Number, String]
75
- }, "virtual");
76
- function at(e, r) {
77
- const n = Pe(), i = L(0);
78
- de(() => {
79
- i.value = parseFloat(e.itemHeight || 0);
80
- });
81
- const s = L(0), v = L(Math.ceil(
82
- // Assume 16px items filling the entire screen height if
83
- // not provided. This is probably incorrect but it minimises
84
- // the chance of ending up with empty space at the bottom.
85
- // The default value is set here to avoid poisoning getSize()
86
- (parseInt(e.height) || n.height.value) / (i.value || 16)
87
- ) || 1), m = L(0), u = L(0), a = K(), V = K();
88
- let I = 0;
89
- const {
90
- resizeRef: A,
91
- contentRect: c
92
- } = Ve();
93
- de(() => {
94
- A.value = a.value;
95
- });
96
- const w = R(() => {
97
- var t;
98
- return a.value === document.documentElement ? n.height.value : ((t = c.value) == null ? void 0 : t.height) || parseInt(e.height) || 0;
99
- }), _ = R(() => !!(a.value && V.value && w.value && i.value));
100
- let C = Array.from({
101
- length: r.value.length
102
- }), p = Array.from({
103
- length: r.value.length
104
- });
105
- const S = L(0);
106
- let T = -1;
107
- function F(t) {
108
- return C[t] || i.value;
109
- }
110
- const E = xe(() => {
111
- const t = performance.now();
112
- p[0] = 0;
113
- const o = r.value.length;
114
- for (let g = 1; g <= o - 1; g++)
115
- p[g] = (p[g - 1] || 0) + F(g - 1);
116
- S.value = Math.max(S.value, performance.now() - t);
117
- }, S), G = H(_, (t) => {
118
- t && (G(), I = V.value.offsetTop, E.immediate(), D(), ~T && ye(() => {
119
- oe && window.requestAnimationFrame(() => {
120
- Z(T), T = -1;
121
- });
122
- }));
123
- });
124
- ge(() => {
125
- E.clear();
126
- });
127
- function ee(t, o) {
128
- const g = C[t], y = i.value;
129
- i.value = y ? Math.min(i.value, o) : o, (g !== o || y !== i.value) && (C[t] = o, E());
130
- }
131
- function k(t) {
132
- return t = le(t, 0, r.value.length - 1), p[t] || 0;
133
- }
134
- function W(t) {
135
- return ot(p, t);
136
- }
137
- let U = 0, B = 0, z = 0;
138
- H(w, (t, o) => {
139
- o && (D(), t < o && requestAnimationFrame(() => {
140
- B = 0, D();
141
- }));
142
- });
143
- let N = -1;
144
- function q() {
145
- if (!a.value || !V.value) return;
146
- const t = a.value.scrollTop, o = performance.now();
147
- o - z > 500 ? (B = Math.sign(t - U), I = V.value.offsetTop) : B = t - U, U = t, z = o, window.clearTimeout(N), N = window.setTimeout(Q, 500), D();
148
- }
149
- function Q() {
150
- !a.value || !V.value || (B = 0, z = 0, window.clearTimeout(N), D());
151
- }
152
- let X = -1;
153
- function D() {
154
- cancelAnimationFrame(X), X = requestAnimationFrame(te);
155
- }
156
- function te() {
157
- if (!a.value || !w.value) return;
158
- const t = U - 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);
159
- if (
160
- // Only update the side we're scrolling towards,
161
- // the other side will be updated incidentally
162
- (o !== tt || y < s.value) && (o !== lt || h > v.value)
163
- ) {
164
- const b = k(s.value) - k(y), O = k(h) - k(v.value);
165
- Math.max(b, O) > ae ? (s.value = y, v.value = h) : (y <= 0 && (s.value = y), h >= r.value.length && (v.value = h));
166
- }
167
- m.value = k(s.value), u.value = k(r.value.length) - k(v.value);
168
- }
169
- function Z(t) {
170
- const o = k(t);
171
- !a.value || t && !o ? T = t : a.value.scrollTop = o;
172
- }
173
- const l = R(() => r.value.slice(s.value, v.value).map((t, o) => ({
174
- raw: t,
175
- index: o + s.value,
176
- key: Ce(t) && "value" in t ? t.value : o + s.value
177
- })));
178
- return H(r, () => {
179
- C = Array.from({
180
- length: r.value.length
181
- }), p = Array.from({
182
- length: r.value.length
183
- }), E.immediate(), D();
184
- }, {
185
- deep: !0
186
- }), {
187
- calculateVisibleItems: D,
188
- containerRef: a,
189
- markerRef: V,
190
- computedItems: l,
191
- paddingTop: m,
192
- paddingBottom: u,
193
- scrollToIndex: Z,
194
- handleScroll: q,
195
- handleScrollend: Q,
196
- handleItemResize: ee
197
- };
198
- }
199
- function ot(e, r) {
200
- let n = e.length - 1, i = 0, s = 0, v = null, m = -1;
201
- if (e[n] < r)
202
- return n;
203
- for (; i <= n; )
204
- if (s = i + n >> 1, v = e[s], v > r)
205
- n = s - 1;
206
- else if (v < r)
207
- m = s, i = s + 1;
208
- else return v === r ? s : i;
209
- return m;
210
- }
211
- const ut = j({
212
- items: {
213
- type: Array,
214
- default: () => []
215
- },
216
- renderless: Boolean,
217
- ...nt(),
218
- ...we(),
219
- ...Ye()
220
- }, "VVirtualScroll"), st = ue()({
221
- name: "VVirtualScroll",
222
- props: ut(),
223
- setup(e, r) {
224
- let {
225
- slots: n
226
- } = r;
227
- const i = Ee("VVirtualScroll"), {
228
- dimensionStyles: s
229
- } = Ke(e), {
230
- calculateVisibleItems: v,
231
- containerRef: m,
232
- markerRef: u,
233
- handleScroll: a,
234
- handleScrollend: V,
235
- handleItemResize: I,
236
- scrollToIndex: A,
237
- paddingTop: c,
238
- paddingBottom: w,
239
- computedItems: _
240
- } = at(e, Ie(e, "items"));
241
- return Re(() => e.renderless, () => {
242
- function C() {
243
- var T, F;
244
- const S = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
245
- m.value === document.documentElement ? (document[S]("scroll", a, {
246
- passive: !0
247
- }), document[S]("scrollend", V)) : ((T = m.value) == null || T[S]("scroll", a, {
248
- passive: !0
249
- }), (F = m.value) == null || F[S]("scrollend", V));
250
- }
251
- De(() => {
252
- m.value = ze(i.vnode.el, !0), C(!0);
253
- }), ge(C);
254
- }), se(() => {
255
- const C = _.value.map((p) => f(et, {
256
- key: p.key,
257
- renderless: e.renderless,
258
- "onUpdate:height": (S) => I(p.index, S)
259
- }, {
260
- default: (S) => {
261
- var T;
262
- return (T = n.default) == null ? void 0 : T.call(n, {
263
- item: p.raw,
264
- index: p.index,
265
- ...S
266
- });
267
- }
268
- }));
269
- return e.renderless ? f($, null, [f("div", {
270
- ref: u,
271
- class: "v-virtual-scroll__spacer",
272
- style: {
273
- paddingTop: J(c.value)
274
- }
275
- }, null), C, f("div", {
276
- class: "v-virtual-scroll__spacer",
277
- style: {
278
- paddingBottom: J(w.value)
279
- }
280
- }, null)]) : f("div", {
281
- ref: m,
282
- class: ["v-virtual-scroll", e.class],
283
- onScrollPassive: a,
284
- onScrollend: V,
285
- style: [s.value, e.style]
286
- }, [f("div", {
287
- ref: u,
288
- class: "v-virtual-scroll__container",
289
- style: {
290
- paddingTop: J(c.value),
291
- paddingBottom: J(w.value)
292
- }
293
- }, [C])]);
294
- }), {
295
- calculateVisibleItems: v,
296
- scrollToIndex: A
297
- };
298
- }
299
- });
300
- function rt(e, r) {
301
- const n = L(!1);
302
- let i;
303
- function s(u) {
304
- cancelAnimationFrame(i), n.value = !0, i = requestAnimationFrame(() => {
305
- i = requestAnimationFrame(() => {
306
- n.value = !1;
307
- });
308
- });
309
- }
310
- async function v() {
311
- await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => {
312
- if (n.value) {
313
- const a = H(n, () => {
314
- a(), u();
315
- });
316
- } else u();
317
- });
318
- }
319
- async function m(u) {
320
- var I, A;
321
- if (u.key === "Tab" && ((I = r.value) == null || I.focus()), !["PageDown", "PageUp", "Home", "End"].includes(u.key)) return;
322
- const a = (A = e.value) == null ? void 0 : A.$el;
323
- if (!a) return;
324
- (u.key === "Home" || u.key === "End") && a.scrollTo({
325
- top: u.key === "Home" ? 0 : a.scrollHeight,
326
- behavior: "smooth"
327
- }), await v();
328
- const V = a.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
329
- if (u.key === "PageDown" || u.key === "Home") {
330
- const c = a.getBoundingClientRect().top;
331
- for (const w of V)
332
- if (w.getBoundingClientRect().top >= c) {
333
- w.focus();
334
- break;
335
- }
336
- } else {
337
- const c = a.getBoundingClientRect().bottom;
338
- for (const w of [...V].reverse())
339
- if (w.getBoundingClientRect().bottom <= c) {
340
- w.focus();
341
- break;
342
- }
343
- }
344
- }
345
- return {
346
- onScrollPassive: s,
347
- onKeydown: m
348
- };
349
- }
350
- const it = j({
351
- chips: Boolean,
352
- closableChips: Boolean,
353
- closeText: {
354
- type: String,
355
- default: "$vuetify.close"
356
- },
357
- openText: {
358
- type: String,
359
- default: "$vuetify.open"
360
- },
361
- eager: Boolean,
362
- hideNoData: Boolean,
363
- hideSelected: Boolean,
364
- listProps: {
365
- type: Object
366
- },
367
- menu: Boolean,
368
- menuIcon: {
369
- type: Le,
370
- default: "$dropdown"
371
- },
372
- menuProps: {
373
- type: Object
374
- },
375
- multiple: Boolean,
376
- noDataText: {
377
- type: String,
378
- default: "$vuetify.noDataText"
379
- },
380
- openOnClear: Boolean,
381
- itemColor: String,
382
- ...Ne({
383
- itemChildren: !1
384
- })
385
- }, "Select"), ct = j({
386
- ...it(),
387
- ..._e(ke({
388
- modelValue: null,
389
- role: "combobox"
390
- }), ["validationValue", "dirty", "appendInnerIcon"]),
391
- ...$e({
392
- transition: {
393
- component: je
394
- }
395
- })
396
- }, "VSelect"), Tt = ue()({
397
- name: "VSelect",
398
- props: ct(),
399
- emits: {
400
- "update:focused": (e) => !0,
401
- "update:modelValue": (e) => !0,
402
- "update:menu": (e) => !0
403
- },
404
- setup(e, r) {
405
- let {
406
- slots: n
407
- } = r;
408
- const {
409
- t: i
410
- } = Oe(), s = K(), v = K(), m = K(), u = fe(e, "menu"), a = R({
411
- get: () => u.value,
412
- set: (l) => {
413
- var t;
414
- u.value && !l && ((t = v.value) != null && t.ΨopenChildren.size) || (u.value = l);
415
- }
416
- }), {
417
- items: V,
418
- transformIn: I,
419
- transformOut: A
420
- } = Ue(e), c = fe(e, "modelValue", [], (l) => I(l === null ? [null] : Ae(l)), (l) => {
421
- const t = A(l);
422
- return e.multiple ? t : t[0] ?? null;
423
- }), 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);
424
- let T = "", F;
425
- 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(() => {
426
- var l;
427
- return {
428
- ...e.menuProps,
429
- activatorProps: {
430
- ...((l = e.menuProps) == null ? void 0 : l.activatorProps) || {},
431
- "aria-haspopup": "listbox"
432
- // Set aria-haspopup to 'listbox'
433
- }
434
- };
435
- }), k = K(), W = rt(k, s);
436
- function U(l) {
437
- e.openOnClear && (a.value = !0);
438
- }
439
- function B() {
440
- G.value || (a.value = !a.value);
441
- }
442
- function z(l) {
443
- ve(l) && N(l);
444
- }
445
- function N(l) {
446
- var y, d;
447
- if (!l.key || _.isReadonly.value) return;
448
- ["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"));
449
- const t = 1e3;
450
- if (!ve(l)) return;
451
- const o = performance.now();
452
- o - F > t && (T = ""), T += l.key.toLowerCase(), F = o;
453
- const g = V.value.find((h) => h.title.toLowerCase().startsWith(T));
454
- if (g !== void 0) {
455
- c.value = [g];
456
- const h = E.value.indexOf(g);
457
- oe && window.requestAnimationFrame(() => {
458
- var b;
459
- h >= 0 && ((b = m.value) == null || b.scrollToIndex(h));
460
- });
461
- }
462
- }
463
- function q(l) {
464
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
465
- if (!l.props.disabled)
466
- if (e.multiple) {
467
- const o = c.value.findIndex((y) => (e.valueComparator || ne)(y.value, l.value)), g = t ?? !~o;
468
- if (~o) {
469
- const y = g ? [...c.value, l] : [...c.value];
470
- y.splice(o, 1), c.value = y;
471
- } else g && (c.value = [...c.value, l]);
472
- } else {
473
- const o = t !== !1;
474
- c.value = o ? [l] : [], ye(() => {
475
- a.value = !1;
476
- });
477
- }
478
- }
479
- function Q(l) {
480
- var t;
481
- (t = k.value) != null && t.$el.contains(l.relatedTarget) || (a.value = !1);
482
- }
483
- function X() {
484
- var l;
485
- e.eager && ((l = m.value) == null || l.calculateVisibleItems());
486
- }
487
- function D() {
488
- var l;
489
- p.value && ((l = s.value) == null || l.focus());
490
- }
491
- function te(l) {
492
- p.value = !0;
493
- }
494
- function Z(l) {
495
- if (l == null) c.value = [];
496
- else if (me(s.value, ":autofill") || me(s.value, ":-webkit-autofill")) {
497
- const t = V.value.find((o) => o.title === l);
498
- t && q(t);
499
- } else s.value && (s.value.value = "");
500
- }
501
- return H(a, () => {
502
- if (!e.hideSelected && a.value && c.value.length) {
503
- const l = E.value.findIndex((t) => c.value.some((o) => (e.valueComparator || ne)(o.value, t.value)));
504
- oe && window.requestAnimationFrame(() => {
505
- var t;
506
- l >= 0 && ((t = m.value) == null || t.scrollToIndex(l));
507
- });
508
- }
509
- }), H(() => e.items, (l, t) => {
510
- a.value || p.value && !t.length && l.length && (a.value = !0);
511
- }), se(() => {
512
- 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;
513
- return f(ce, M({
514
- ref: s
515
- }, g, {
516
- modelValue: c.value.map((d) => d.props.value).join(", "),
517
- "onUpdate:modelValue": Z,
518
- focused: p.value,
519
- "onUpdate:focused": (d) => p.value = d,
520
- validationValue: c.externalValue,
521
- counterValue: w.value,
522
- dirty: o,
523
- class: ["v-select", {
524
- "v-select--active-menu": a.value,
525
- "v-select--chips": !!e.chips,
526
- [`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
527
- "v-select--selected": c.value.length,
528
- "v-select--selection-slot": !!n.selection
529
- }, e.class],
530
- style: e.style,
531
- inputmode: "none",
532
- placeholder: y,
533
- "onClick:clear": U,
534
- "onMousedown:control": B,
535
- onBlur: Q,
536
- onKeydown: N,
537
- "aria-label": i(S.value),
538
- title: i(S.value)
539
- }), {
540
- ...n,
541
- default: () => f($, null, [f(Ge, M({
542
- ref: v,
543
- modelValue: a.value,
544
- "onUpdate:modelValue": (d) => a.value = d,
545
- activator: "parent",
546
- contentClass: "v-select__content",
547
- disabled: G.value,
548
- eager: e.eager,
549
- maxHeight: 310,
550
- openOnClick: !1,
551
- closeOnContentClick: !1,
552
- transition: e.transition,
553
- onAfterEnter: X,
554
- onAfterLeave: D
555
- }, ee.value), {
556
- default: () => [t && f(qe, M({
557
- ref: k,
558
- selected: C.value,
559
- selectStrategy: e.multiple ? "independent" : "single-independent",
560
- onMousedown: (d) => d.preventDefault(),
561
- onKeydown: z,
562
- onFocusin: te,
563
- tabindex: "-1",
564
- "aria-live": "polite",
565
- color: e.itemColor ?? e.color
566
- }, W, e.listProps), {
567
- default: () => {
568
- var d, h, b;
569
- 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, {
570
- key: "no-data",
571
- title: i(e.noDataText)
572
- }, null)), f(st, {
573
- ref: m,
574
- renderless: !0,
575
- items: E.value
576
- }, {
577
- default: (O) => {
578
- var ie;
579
- let {
580
- item: P,
581
- index: Y,
582
- itemRef: x
583
- } = O;
584
- const re = M(P.props, {
585
- ref: x,
586
- key: P.value,
587
- onClick: () => q(P, null)
588
- });
589
- return ((ie = n.item) == null ? void 0 : ie.call(n, {
590
- item: P,
591
- index: Y,
592
- props: re
593
- })) ?? f(pe, M(re, {
594
- role: "option"
595
- }), {
596
- prepend: (Se) => {
597
- let {
598
- isSelected: be
599
- } = Se;
600
- return f($, null, [e.multiple && !e.hideSelected ? f(We, {
601
- key: P.value,
602
- modelValue: be,
603
- ripple: !1,
604
- tabindex: "-1"
605
- }, null) : void 0, P.props.prependAvatar && f(Qe, {
606
- image: P.props.prependAvatar
607
- }, null), P.props.prependIcon && f(he, {
608
- icon: P.props.prependIcon
609
- }, null)]);
610
- }
611
- });
612
- }
613
- }), (b = n["append-item"]) == null ? void 0 : b.call(n)];
614
- }
615
- })]
616
- }), c.value.map((d, h) => {
617
- function b(x) {
618
- x.stopPropagation(), x.preventDefault(), q(d, !1);
619
- }
620
- const O = {
621
- "onClick:close": b,
622
- onKeydown(x) {
623
- x.key !== "Enter" && x.key !== " " || (x.preventDefault(), x.stopPropagation(), b(x));
624
- },
625
- onMousedown(x) {
626
- x.preventDefault(), x.stopPropagation();
627
- },
628
- modelValue: !0,
629
- "onUpdate:modelValue": void 0
630
- }, P = l ? !!n.chip : !!n.selection, Y = P ? Fe(l ? n.chip({
631
- item: d,
632
- index: h,
633
- props: O
634
- }) : n.selection({
635
- item: d,
636
- index: h
637
- })) : void 0;
638
- if (!(P && !Y))
639
- return f("div", {
640
- key: d.value,
641
- class: "v-select__selection"
642
- }, [l ? n.chip ? f(Xe, {
643
- key: "chip-defaults",
644
- defaults: {
645
- VChip: {
646
- closable: e.closableChips,
647
- size: "small",
648
- text: d.title
649
- }
650
- }
651
- }, {
652
- default: () => [Y]
653
- }) : f(Ze, M({
654
- key: "chip",
655
- closable: e.closableChips,
656
- size: "small",
657
- text: d.title,
658
- disabled: d.props.disabled
659
- }, O), null) : Y ?? f("span", {
660
- class: "v-select__selection-text"
661
- }, [d.title, e.multiple && h < c.value.length - 1 && f("span", {
662
- class: "v-select__selection-comma"
663
- }, [Be(",")])])]);
664
- })]),
665
- "append-inner": function() {
666
- var O;
667
- for (var d = arguments.length, h = new Array(d), b = 0; b < d; b++)
668
- h[b] = arguments[b];
669
- return f($, null, [(O = n["append-inner"]) == null ? void 0 : O.call(n, ...h), e.menuIcon ? f(he, {
670
- class: "v-select__menu-icon",
671
- icon: e.menuIcon
672
- }, null) : void 0]);
673
- }
674
- });
675
- }), He({
676
- isFocused: p,
677
- menu: a,
678
- select: q
679
- }, s);
680
- }
681
- });
682
- Te("css/revolugo.vselect.C5CKHFYB.css");
683
- export {
684
- Tt as V,
685
- st as a,
686
- it as m,
687
- rt as u
688
- };
689
- //# sourceMappingURL=revolugo.vselect.BHhGGQU3.min.js.map