@revolugo/elements 6.9.7-rc.1 → 6.10.0-rc.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.
Files changed (193) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.B4piKfhY.css +1 -0
  3. package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +1 -0
  4. package/dist/css/revolugo.index.BNlxBMG6.css +5 -0
  5. package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +1 -0
  6. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.ViqP9D5c.css} +1 -1
  7. package/dist/index.es.min.js +23 -12530
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +1 -19
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.CrYts7zG.min.js +47 -0
  12. package/dist/revolugo.bookingdetailssidebar.C0DYAN9t.min.js +43 -0
  13. package/dist/revolugo.bookingmanager.JgOsiKqb.min.js +26 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.DwMryr_Z.min.js +26 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.CjiL_2nY.min.js +28665 -0
  16. package/dist/revolugo.cancellationpolicieslist.BqEiG3z-.min.js +26 -0
  17. package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.-X97xRfD.min.js} +871 -854
  18. package/dist/revolugo.creditcardstripeform.CI-nHnmu.min.js +50 -0
  19. package/dist/revolugo.currencypickerbtn.CWjb_mKC.min.js +26 -0
  20. package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.DCFiPJcB.min.js} +2 -2
  21. package/dist/revolugo.fastbookingflow.DAnw85UE.min.js +36 -0
  22. package/dist/revolugo.fullbookingflow.BfZQWhv3.min.js +26 -0
  23. package/dist/revolugo.hoteldescriptionview.NrMKZYla.min.js +26 -0
  24. package/dist/revolugo.hotelofferlist.DDeV3_eJ.min.js +26 -0
  25. package/dist/revolugo.hoteloffersearchmenu.CztZ1sQ9.min.js +115 -0
  26. package/dist/revolugo.hoteloffersmap.CvcrGyMP.min.js +26 -0
  27. package/dist/revolugo.hoteloffersview.DJ9S13-J.min.js +21 -0
  28. package/dist/revolugo.hotelroomofferlist.C8JfIZKA.min.js +26 -0
  29. package/dist/revolugo.hotelroomoffersbookingflow.D6xFKHrm.min.js +26 -0
  30. package/dist/revolugo.hotelroomoffersearchmenu.Dgayo8K2.min.js +26 -0
  31. package/dist/revolugo.hotelroomoffersview.DcSD1lBK.min.js +26 -0
  32. package/dist/revolugo.index.BQ2Ej3ps.min.js +106 -0
  33. package/dist/revolugo.index.wc.DmhZCepg.min.js +26618 -0
  34. package/dist/revolugo.langpickerbtn.D__PqdSA.min.js +31 -0
  35. package/dist/{revolugo.leaflet-src.esm.DBQWLG1M.min.js → revolugo.leaflet-src.esm.BnEQV3J-.min.js} +16 -16
  36. package/dist/revolugo.min.js +1 -1
  37. package/dist/revolugo.prebookform.PHN43ItN.min.js +26 -0
  38. package/dist/revolugo.preferencesmenu.B-Heg_NW.min.js +24 -0
  39. package/dist/revolugo.preferencesmenu.CyAfWgNn.min.js +935 -0
  40. package/dist/revolugo.roominglisteditor.DqDfcw6H.min.js +26 -0
  41. package/dist/revolugo.storybooktoolbar.BpW-G0Ty.min.js +831 -0
  42. package/dist/revolugo.termsandconditions.Map_4yYE.min.js +31 -0
  43. package/dist/revolugo.vtoolbar.CVF4qXFI.min.js +187 -0
  44. package/dist/revolugo.webcomponentwrapper.9pOOjN92.min.js +30961 -0
  45. package/package.json +6 -6
  46. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
  47. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
  48. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  49. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
  50. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +0 -1
  51. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  52. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  53. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  54. package/dist/css/revolugo.creditcardform.fTmPR0fS.css +0 -1
  55. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  56. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  57. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
  58. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  59. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  60. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
  61. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
  62. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
  63. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  64. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  65. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  66. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  67. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  68. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
  69. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  70. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  71. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  72. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  73. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  74. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  75. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  76. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  77. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  78. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  79. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  80. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  81. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  82. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  83. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  84. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  85. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  86. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  87. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  88. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
  89. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  90. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  91. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  92. package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +0 -247
  93. package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +0 -380
  94. package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +0 -8327
  95. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +0 -146
  96. package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +0 -4901
  97. package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +0 -965
  98. package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +0 -566
  99. package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +0 -870
  100. package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +0 -24
  101. package/dist/revolugo.bookingmanager.Tqklnltl.min.js +0 -1755
  102. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +0 -66
  103. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +0 -570
  104. package/dist/revolugo.btag.6i9RpwY_.min.js +0 -375
  105. package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +0 -198
  106. package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +0 -28
  107. package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +0 -25
  108. package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +0 -148
  109. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  110. package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +0 -123
  111. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  112. package/dist/revolugo.creditcardform.wbMwrte3.min.js +0 -24
  113. package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +0 -885
  114. package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +0 -24
  115. package/dist/revolugo.currencypicker.CCydQxvk.min.js +0 -328
  116. package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +0 -157
  117. package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +0 -24
  118. package/dist/revolugo.dates.Dma3i1u_.min.js +0 -31
  119. package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +0 -104
  120. package/dist/revolugo.dialog-transition.JX-XGblk.min.js +0 -111
  121. package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +0 -34
  122. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  123. package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +0 -429
  124. package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +0 -98
  125. package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +0 -2738
  126. package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +0 -24
  127. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +0 -239
  128. package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +0 -5640
  129. package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +0 -24
  130. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  131. package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +0 -202
  132. package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +0 -829
  133. package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +0 -8330
  134. package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +0 -24
  135. package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +0 -19
  136. package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +0 -616
  137. package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +0 -24
  138. package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +0 -2799
  139. package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +0 -171
  140. package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +0 -1281
  141. package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +0 -25
  142. package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +0 -231
  143. package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +0 -24
  144. package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +0 -290
  145. package/dist/revolugo.index.CmfloZTT.min.js +0 -67
  146. package/dist/revolugo.index.q2k-tLa2.min.js +0 -1232
  147. package/dist/revolugo.index.wc.BmAtoZjo.min.js +0 -31558
  148. package/dist/revolugo.langpicker.BDDm2CzN.min.js +0 -99
  149. package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +0 -131
  150. package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +0 -29
  151. package/dist/revolugo.parsed-props.z2aR0x9r.min.js +0 -40
  152. package/dist/revolugo.pathify.DOgJK7nI.min.js +0 -36
  153. package/dist/revolugo.prebookform.DT2QXZUm.min.js +0 -1527
  154. package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +0 -24
  155. package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +0 -24
  156. package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +0 -261
  157. package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +0 -385
  158. package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +0 -24
  159. package/dist/revolugo.rounded.BmZawp2x.min.js +0 -68
  160. package/dist/revolugo.ssrboot.CMusFTC5.min.js +0 -18
  161. package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +0 -881
  162. package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +0 -404
  163. package/dist/revolugo.termsandconditions.CI0t3pno.min.js +0 -23
  164. package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +0 -39
  165. package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +0 -16
  166. package/dist/revolugo.use-html-element.BbD1LjYc.min.js +0 -11
  167. package/dist/revolugo.vautocomplete.D1yqzzar.min.js +0 -445
  168. package/dist/revolugo.vbadge.B1q1ebM4.min.js +0 -112
  169. package/dist/revolugo.vbtn.D-1pZWJQ.min.js +0 -398
  170. package/dist/revolugo.vcard.BhFz1a7-.min.js +0 -313
  171. package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +0 -478
  172. package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +0 -133
  173. package/dist/revolugo.vdivider.Cw22Dcuf.min.js +0 -77
  174. package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +0 -262
  175. package/dist/revolugo.vform.DKrc0wCb.min.js +0 -46
  176. package/dist/revolugo.vicon.OZg4Im8p.min.js +0 -105
  177. package/dist/revolugo.vinput.Bo6I7bO4.min.js +0 -463
  178. package/dist/revolugo.vlabel.CK1EiiGY.min.js +0 -48
  179. package/dist/revolugo.vlist.C2mV3Sh6.min.js +0 -1299
  180. package/dist/revolugo.vmenu.C2Y9H_mH.min.js +0 -145
  181. package/dist/revolugo.vselect.ukHPs1U9.min.js +0 -660
  182. package/dist/revolugo.vsheet.COT4-g6w.min.js +0 -72
  183. package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +0 -136
  184. package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +0 -325
  185. package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +0 -198
  186. package/dist/revolugo.vspacer.DKw4LWvz.min.js +0 -7
  187. package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +0 -2092
  188. package/dist/revolugo.vtextfield.CF6W_mmu.min.js +0 -501
  189. package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +0 -180
  190. package/dist/revolugo.vtooltip.D-CqFjzD.min.js +0 -89
  191. package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +0 -317
  192. package/dist/revolugo.watch-list.CqLXeMQh.min.js +0 -16
  193. package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +0 -2088
@@ -1,660 +0,0 @@
1
- import { V as re, c as we } from "./revolugo.vtextfield.CF6W_mmu.min.js";
2
- import { a1 as se, a2 as Y, O as F, a as d, F as $, D as _, aU as Se, a9 as A, ac as ie, k as q, H as C, b$ as be, aT as pe, aF as le, bF as Te, W as he, bz as oe, c0 as ke, af as Pe, aS as xe, X as Ee, ad as Z, ag as Ce, a6 as ce, a7 as Ie, bY as ne, a3 as Re, aa as Oe, bW as de, bX as fe, b_ as Ae, f as De } from "./revolugo.index.wc.BmAtoZjo.min.js";
3
- import { b as Le } from "./revolugo.vinput.Bo6I7bO4.min.js";
4
- import { f as _e } from "./revolugo.forwardrefs.VVhh1qV3.min.js";
5
- import { u as Fe, m as Be, a as Me, V as ve } from "./revolugo.vlist.C2mV3Sh6.min.js";
6
- import { w as ge, u as ue, m as ye, n as He, x as Ue, o as Ne, p as qe } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
7
- import { V as ze } from "./revolugo.dialog-transition.JX-XGblk.min.js";
8
- import { V as me } from "./revolugo.vicon.OZg4Im8p.min.js";
9
- import { V as Ke } from "./revolugo.vmenu.C2Y9H_mH.min.js";
10
- import { a as $e } from "./revolugo.vcheckboxbtn.BtTJE9k_.min.js";
11
- import { h as Ye, a as je } from "./revolugo.index.q2k-tLa2.min.js";
12
- import { V as We } from "./revolugo.btag.6i9RpwY_.min.js";
13
- function Ve(e) {
14
- try {
15
- if (typeof document < "u") {
16
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
17
- sheets: [],
18
- components: []
19
- };
20
- const u = import.meta.url, a = u.slice(0, u.lastIndexOf("/") + 1) + e;
21
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
22
- for (const r of REVOLUGO_ELEMENTS_STYLES.components)
23
- r(a);
24
- if (e.indexOf("fonts") >= 0) {
25
- const r = document.createElement("link");
26
- r.rel = "stylesheet", linK.href = a, document.head.appendChild(r);
27
- }
28
- }
29
- } catch (u) {
30
- console.error("[revolugo-elements] ", u);
31
- }
32
- }
33
- const Ge = Y({
34
- renderless: Boolean,
35
- ...ye()
36
- }, "VVirtualScrollItem"), Xe = se()({
37
- name: "VVirtualScrollItem",
38
- inheritAttrs: !1,
39
- props: Ge(),
40
- emits: {
41
- "update:height": (e) => !0
42
- },
43
- setup(e, u) {
44
- let {
45
- attrs: a,
46
- emit: r,
47
- slots: s
48
- } = u;
49
- const {
50
- resizeRef: m,
51
- contentRect: h
52
- } = ge(void 0, "border");
53
- F(() => h.value?.height, (i) => {
54
- i != null && r("update:height", i);
55
- }), ue(() => e.renderless ? d($, null, [s.default?.({
56
- itemRef: m
57
- })]) : d("div", _({
58
- ref: m,
59
- class: ["v-virtual-scroll__item", e.class],
60
- style: e.style
61
- }, a), [s.default?.()]));
62
- }
63
- }), Je = -1, Qe = 1, ae = 100, Ze = Y({
64
- itemHeight: {
65
- type: [Number, String],
66
- default: null
67
- },
68
- height: [Number, String]
69
- }, "virtual");
70
- function et(e, u) {
71
- const a = Se(), r = A(0);
72
- ie(() => {
73
- r.value = parseFloat(e.itemHeight || 0);
74
- });
75
- const s = A(0), m = A(Math.ceil(
76
- // Assume 16px items filling the entire screen height if
77
- // not provided. This is probably incorrect but it minimises
78
- // the chance of ending up with empty space at the bottom.
79
- // The default value is set here to avoid poisoning getSize()
80
- (parseInt(e.height) || a.height.value) / (r.value || 16)
81
- ) || 1), h = A(0), i = A(0), n = q(), V = q();
82
- let k = 0;
83
- const {
84
- resizeRef: P,
85
- contentRect: c
86
- } = ge();
87
- ie(() => {
88
- P.value = n.value;
89
- });
90
- const I = C(() => n.value === document.documentElement ? a.height.value : c.value?.height || parseInt(e.height) || 0), D = C(() => !!(n.value && V.value && I.value && r.value));
91
- let T = Array.from({
92
- length: u.value.length
93
- }), g = Array.from({
94
- length: u.value.length
95
- });
96
- const w = A(0);
97
- let O = -1;
98
- function j(t) {
99
- return T[t] || r.value;
100
- }
101
- const x = be(() => {
102
- const t = performance.now();
103
- g[0] = 0;
104
- const o = u.value.length;
105
- for (let y = 1; y <= o - 1; y++)
106
- g[y] = (g[y - 1] || 0) + j(y - 1);
107
- w.value = Math.max(w.value, performance.now() - t);
108
- }, w), W = F(D, (t) => {
109
- t && (W(), k = V.value.offsetTop, x.immediate(), R(), ~O && he(() => {
110
- oe && window.requestAnimationFrame(() => {
111
- Q(O), O = -1;
112
- });
113
- }));
114
- });
115
- pe(() => {
116
- x.clear();
117
- });
118
- function ee(t, o) {
119
- const y = T[t], p = r.value;
120
- r.value = p ? Math.min(r.value, o) : o, (y !== o || p !== r.value) && (T[t] = o, x());
121
- }
122
- function S(t) {
123
- return t = le(t, 0, u.value.length - 1), g[t] || 0;
124
- }
125
- function G(t) {
126
- return tt(g, t);
127
- }
128
- let B = 0, L = 0, z = 0;
129
- F(I, (t, o) => {
130
- o && (R(), t < o && requestAnimationFrame(() => {
131
- L = 0, R();
132
- }));
133
- });
134
- let M = -1;
135
- function H() {
136
- if (!n.value || !V.value) return;
137
- const t = n.value.scrollTop, o = performance.now();
138
- o - z > 500 ? (L = Math.sign(t - B), k = V.value.offsetTop) : L = t - B, B = t, z = o, window.clearTimeout(M), M = window.setTimeout(X, 500), R();
139
- }
140
- function X() {
141
- !n.value || !V.value || (L = 0, z = 0, window.clearTimeout(M), R());
142
- }
143
- let J = -1;
144
- function R() {
145
- cancelAnimationFrame(J), J = requestAnimationFrame(te);
146
- }
147
- function te() {
148
- if (!n.value || !I.value) return;
149
- const t = B - k, o = Math.sign(L), y = Math.max(0, t - ae), p = le(G(y), 0, u.value.length), f = t + I.value + ae, v = le(G(f) + 1, p + 1, u.value.length);
150
- if (
151
- // Only update the side we're scrolling towards,
152
- // the other side will be updated incidentally
153
- (o !== Je || p < s.value) && (o !== Qe || v > m.value)
154
- ) {
155
- const E = S(s.value) - S(p), U = S(v) - S(m.value);
156
- Math.max(E, U) > ae ? (s.value = p, m.value = v) : (p <= 0 && (s.value = p), v >= u.value.length && (m.value = v));
157
- }
158
- h.value = S(s.value), i.value = S(u.value.length) - S(m.value);
159
- }
160
- function Q(t) {
161
- const o = S(t);
162
- !n.value || t && !o ? O = t : n.value.scrollTop = o;
163
- }
164
- const l = C(() => u.value.slice(s.value, m.value).map((t, o) => ({
165
- raw: t,
166
- index: o + s.value,
167
- key: Te(t) && "value" in t ? t.value : o + s.value
168
- })));
169
- return F(u, () => {
170
- T = Array.from({
171
- length: u.value.length
172
- }), g = Array.from({
173
- length: u.value.length
174
- }), x.immediate(), R();
175
- }, {
176
- deep: !0
177
- }), {
178
- calculateVisibleItems: R,
179
- containerRef: n,
180
- markerRef: V,
181
- computedItems: l,
182
- paddingTop: h,
183
- paddingBottom: i,
184
- scrollToIndex: Q,
185
- handleScroll: H,
186
- handleScrollend: X,
187
- handleItemResize: ee
188
- };
189
- }
190
- function tt(e, u) {
191
- let a = e.length - 1, r = 0, s = 0, m = null, h = -1;
192
- if (e[a] < u)
193
- return a;
194
- for (; r <= a; )
195
- if (s = r + a >> 1, m = e[s], m > u)
196
- a = s - 1;
197
- else if (m < u)
198
- h = s, r = s + 1;
199
- else return m === u ? s : r;
200
- return h;
201
- }
202
- const lt = Y({
203
- items: {
204
- type: Array,
205
- default: () => []
206
- },
207
- renderless: Boolean,
208
- ...Ze(),
209
- ...ye(),
210
- ...Ne()
211
- }, "VVirtualScroll"), nt = se()({
212
- name: "VVirtualScroll",
213
- props: lt(),
214
- setup(e, u) {
215
- let {
216
- slots: a
217
- } = u;
218
- const r = ke("VVirtualScroll"), {
219
- dimensionStyles: s
220
- } = He(e), {
221
- calculateVisibleItems: m,
222
- containerRef: h,
223
- markerRef: i,
224
- handleScroll: n,
225
- handleScrollend: V,
226
- handleItemResize: k,
227
- scrollToIndex: P,
228
- paddingTop: c,
229
- paddingBottom: I,
230
- computedItems: D
231
- } = et(e, Pe(e, "items"));
232
- return xe(() => e.renderless, () => {
233
- function T() {
234
- const w = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
235
- h.value === document.documentElement ? (document[w]("scroll", n, {
236
- passive: !0
237
- }), document[w]("scrollend", V)) : (h.value?.[w]("scroll", n, {
238
- passive: !0
239
- }), h.value?.[w]("scrollend", V));
240
- }
241
- Ee(() => {
242
- h.value = Ue(r.vnode.el, !0), T(!0);
243
- }), pe(T);
244
- }), ue(() => {
245
- const T = D.value.map((g) => d(Xe, {
246
- key: g.key,
247
- renderless: e.renderless,
248
- "onUpdate:height": (w) => k(g.index, w)
249
- }, {
250
- default: (w) => a.default?.({
251
- item: g.raw,
252
- index: g.index,
253
- ...w
254
- })
255
- }));
256
- return e.renderless ? d($, null, [d("div", {
257
- ref: i,
258
- class: "v-virtual-scroll__spacer",
259
- style: {
260
- paddingTop: Z(c.value)
261
- }
262
- }, null), T, d("div", {
263
- class: "v-virtual-scroll__spacer",
264
- style: {
265
- paddingBottom: Z(I.value)
266
- }
267
- }, null)]) : d("div", {
268
- ref: h,
269
- class: ["v-virtual-scroll", e.class],
270
- onScrollPassive: n,
271
- onScrollend: V,
272
- style: [s.value, e.style]
273
- }, [d("div", {
274
- ref: i,
275
- class: "v-virtual-scroll__container",
276
- style: {
277
- paddingTop: Z(c.value),
278
- paddingBottom: Z(I.value)
279
- }
280
- }, [T])]);
281
- }), {
282
- calculateVisibleItems: m,
283
- scrollToIndex: P
284
- };
285
- }
286
- });
287
- function at(e, u) {
288
- const a = A(!1);
289
- let r;
290
- function s(i) {
291
- cancelAnimationFrame(r), a.value = !0, r = requestAnimationFrame(() => {
292
- r = requestAnimationFrame(() => {
293
- a.value = !1;
294
- });
295
- });
296
- }
297
- async function m() {
298
- await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => {
299
- if (a.value) {
300
- const n = F(a, () => {
301
- n(), i();
302
- });
303
- } else i();
304
- });
305
- }
306
- async function h(i) {
307
- if (i.key === "Tab" && u.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(i.key)) return;
308
- const n = e.value?.$el;
309
- if (!n) return;
310
- (i.key === "Home" || i.key === "End") && n.scrollTo({
311
- top: i.key === "Home" ? 0 : n.scrollHeight,
312
- behavior: "smooth"
313
- }), await m();
314
- const V = n.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
315
- if (i.key === "PageDown" || i.key === "Home") {
316
- const k = n.getBoundingClientRect().top;
317
- for (const P of V)
318
- if (P.getBoundingClientRect().top >= k) {
319
- P.focus();
320
- break;
321
- }
322
- } else {
323
- const k = n.getBoundingClientRect().bottom;
324
- for (const P of [...V].reverse())
325
- if (P.getBoundingClientRect().bottom <= k) {
326
- P.focus();
327
- break;
328
- }
329
- }
330
- }
331
- return {
332
- onScrollPassive: s,
333
- onKeydown: h
334
- };
335
- }
336
- const ot = Y({
337
- chips: Boolean,
338
- closableChips: Boolean,
339
- closeText: {
340
- type: String,
341
- default: "$vuetify.close"
342
- },
343
- openText: {
344
- type: String,
345
- default: "$vuetify.open"
346
- },
347
- eager: Boolean,
348
- hideNoData: Boolean,
349
- hideSelected: Boolean,
350
- listProps: {
351
- type: Object
352
- },
353
- menu: Boolean,
354
- menuIcon: {
355
- type: Re,
356
- default: "$dropdown"
357
- },
358
- menuProps: {
359
- type: Object
360
- },
361
- multiple: Boolean,
362
- noDataText: {
363
- type: String,
364
- default: "$vuetify.noDataText"
365
- },
366
- openOnClear: Boolean,
367
- itemColor: String,
368
- ...Be({
369
- itemChildren: !1
370
- })
371
- }, "Select"), st = Y({
372
- ...ot(),
373
- ...Oe(we({
374
- modelValue: null,
375
- role: "combobox"
376
- }), ["validationValue", "dirty", "appendInnerIcon"]),
377
- ...qe({
378
- transition: {
379
- component: ze
380
- }
381
- })
382
- }, "VSelect"), Vt = se()({
383
- name: "VSelect",
384
- props: st(),
385
- emits: {
386
- "update:focused": (e) => !0,
387
- "update:modelValue": (e) => !0,
388
- "update:menu": (e) => !0
389
- },
390
- setup(e, u) {
391
- let {
392
- slots: a
393
- } = u;
394
- const {
395
- t: r
396
- } = Ce(), s = q(), m = q(), h = q(), i = ce(e, "menu"), n = C({
397
- get: () => i.value,
398
- set: (l) => {
399
- i.value && !l && m.value?.ΨopenChildren.size || (i.value = l);
400
- }
401
- }), {
402
- items: V,
403
- transformIn: k,
404
- transformOut: P
405
- } = Fe(e), c = ce(e, "modelValue", [], (l) => k(l === null ? [null] : Ie(l)), (l) => {
406
- const t = P(l);
407
- return e.multiple ? t : t[0] ?? null;
408
- }), I = C(() => typeof e.counterValue == "function" ? e.counterValue(c.value) : typeof e.counterValue == "number" ? e.counterValue : c.value.length), D = Le(e), T = C(() => c.value.map((l) => l.value)), g = A(!1), w = C(() => n.value ? e.closeText : e.openText);
409
- let O = "", j;
410
- const x = C(() => e.hideSelected ? V.value.filter((l) => !c.value.some((t) => (e.valueComparator || ne)(t, l))) : V.value), W = C(() => e.hideNoData && !x.value.length || D.isReadonly.value || D.isDisabled.value), ee = C(() => ({
411
- ...e.menuProps,
412
- activatorProps: {
413
- ...e.menuProps?.activatorProps || {},
414
- "aria-haspopup": "listbox"
415
- // Set aria-haspopup to 'listbox'
416
- }
417
- })), S = q(), G = at(S, s);
418
- function B(l) {
419
- e.openOnClear && (n.value = !0);
420
- }
421
- function L() {
422
- W.value || (n.value = !n.value);
423
- }
424
- function z(l) {
425
- de(l) && M(l);
426
- }
427
- function M(l) {
428
- if (!l.key || D.isReadonly.value) return;
429
- ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && l.preventDefault(), ["Enter", "ArrowDown", " "].includes(l.key) && (n.value = !0), ["Escape", "Tab"].includes(l.key) && (n.value = !1), l.key === "Home" ? S.value?.focus("first") : l.key === "End" && S.value?.focus("last");
430
- const t = 1e3;
431
- if (!de(l)) return;
432
- const o = performance.now();
433
- o - j > t && (O = ""), O += l.key.toLowerCase(), j = o;
434
- const y = V.value.find((p) => p.title.toLowerCase().startsWith(O));
435
- if (y !== void 0) {
436
- c.value = [y];
437
- const p = x.value.indexOf(y);
438
- oe && window.requestAnimationFrame(() => {
439
- p >= 0 && h.value?.scrollToIndex(p);
440
- });
441
- }
442
- }
443
- function H(l) {
444
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
445
- if (!l.props.disabled)
446
- if (e.multiple) {
447
- const o = c.value.findIndex((p) => (e.valueComparator || ne)(p.value, l.value)), y = t ?? !~o;
448
- if (~o) {
449
- const p = y ? [...c.value, l] : [...c.value];
450
- p.splice(o, 1), c.value = p;
451
- } else y && (c.value = [...c.value, l]);
452
- } else {
453
- const o = t !== !1;
454
- c.value = o ? [l] : [], he(() => {
455
- n.value = !1;
456
- });
457
- }
458
- }
459
- function X(l) {
460
- S.value?.$el.contains(l.relatedTarget) || (n.value = !1);
461
- }
462
- function J() {
463
- e.eager && h.value?.calculateVisibleItems();
464
- }
465
- function R() {
466
- g.value && s.value?.focus();
467
- }
468
- function te(l) {
469
- g.value = !0;
470
- }
471
- function Q(l) {
472
- if (l == null) c.value = [];
473
- else if (fe(s.value, ":autofill") || fe(s.value, ":-webkit-autofill")) {
474
- const t = V.value.find((o) => o.title === l);
475
- t && H(t);
476
- } else s.value && (s.value.value = "");
477
- }
478
- return F(n, () => {
479
- if (!e.hideSelected && n.value && c.value.length) {
480
- const l = x.value.findIndex((t) => c.value.some((o) => (e.valueComparator || ne)(o.value, t.value)));
481
- oe && window.requestAnimationFrame(() => {
482
- l >= 0 && h.value?.scrollToIndex(l);
483
- });
484
- }
485
- }), F(() => e.items, (l, t) => {
486
- n.value || g.value && !t.length && l.length && (n.value = !0);
487
- }), ue(() => {
488
- const l = !!(e.chips || a.chip), t = !!(!e.hideNoData || x.value.length || a["prepend-item"] || a["append-item"] || a["no-data"]), o = c.value.length > 0, y = re.filterProps(e), p = o || !g.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
489
- return d(re, _({
490
- ref: s
491
- }, y, {
492
- modelValue: c.value.map((f) => f.props.value).join(", "),
493
- "onUpdate:modelValue": Q,
494
- focused: g.value,
495
- "onUpdate:focused": (f) => g.value = f,
496
- validationValue: c.externalValue,
497
- counterValue: I.value,
498
- dirty: o,
499
- class: ["v-select", {
500
- "v-select--active-menu": n.value,
501
- "v-select--chips": !!e.chips,
502
- [`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
503
- "v-select--selected": c.value.length,
504
- "v-select--selection-slot": !!a.selection
505
- }, e.class],
506
- style: e.style,
507
- inputmode: "none",
508
- placeholder: p,
509
- "onClick:clear": B,
510
- "onMousedown:control": L,
511
- onBlur: X,
512
- onKeydown: M,
513
- "aria-label": r(w.value),
514
- title: r(w.value)
515
- }), {
516
- ...a,
517
- default: () => d($, null, [d(Ke, _({
518
- ref: m,
519
- modelValue: n.value,
520
- "onUpdate:modelValue": (f) => n.value = f,
521
- activator: "parent",
522
- contentClass: "v-select__content",
523
- disabled: W.value,
524
- eager: e.eager,
525
- maxHeight: 310,
526
- openOnClick: !1,
527
- closeOnContentClick: !1,
528
- transition: e.transition,
529
- onAfterEnter: J,
530
- onAfterLeave: R
531
- }, ee.value), {
532
- default: () => [t && d(Me, _({
533
- ref: S,
534
- selected: T.value,
535
- selectStrategy: e.multiple ? "independent" : "single-independent",
536
- onMousedown: (f) => f.preventDefault(),
537
- onKeydown: z,
538
- onFocusin: te,
539
- tabindex: "-1",
540
- "aria-live": "polite",
541
- color: e.itemColor ?? e.color
542
- }, G, e.listProps), {
543
- default: () => [a["prepend-item"]?.(), !x.value.length && !e.hideNoData && (a["no-data"]?.() ?? d(ve, {
544
- key: "no-data",
545
- title: r(e.noDataText)
546
- }, null)), d(nt, {
547
- ref: h,
548
- renderless: !0,
549
- items: x.value
550
- }, {
551
- default: (f) => {
552
- let {
553
- item: v,
554
- index: E,
555
- itemRef: U
556
- } = f;
557
- const N = _(v.props, {
558
- ref: U,
559
- key: v.value,
560
- onClick: () => H(v, null)
561
- });
562
- return a.item?.({
563
- item: v,
564
- index: E,
565
- props: N
566
- }) ?? d(ve, _(N, {
567
- role: "option"
568
- }), {
569
- prepend: (K) => {
570
- let {
571
- isSelected: b
572
- } = K;
573
- return d($, null, [e.multiple && !e.hideSelected ? d($e, {
574
- key: v.value,
575
- modelValue: b,
576
- ripple: !1,
577
- tabindex: "-1"
578
- }, null) : void 0, v.props.prependAvatar && d(Ye, {
579
- image: v.props.prependAvatar
580
- }, null), v.props.prependIcon && d(me, {
581
- icon: v.props.prependIcon
582
- }, null)]);
583
- }
584
- });
585
- }
586
- }), a["append-item"]?.()]
587
- })]
588
- }), c.value.map((f, v) => {
589
- function E(b) {
590
- b.stopPropagation(), b.preventDefault(), H(f, !1);
591
- }
592
- const U = {
593
- "onClick:close": E,
594
- onKeydown(b) {
595
- b.key !== "Enter" && b.key !== " " || (b.preventDefault(), b.stopPropagation(), E(b));
596
- },
597
- onMousedown(b) {
598
- b.preventDefault(), b.stopPropagation();
599
- },
600
- modelValue: !0,
601
- "onUpdate:modelValue": void 0
602
- }, N = l ? !!a.chip : !!a.selection, K = N ? Ae(l ? a.chip({
603
- item: f,
604
- index: v,
605
- props: U
606
- }) : a.selection({
607
- item: f,
608
- index: v
609
- })) : void 0;
610
- if (!(N && !K))
611
- return d("div", {
612
- key: f.value,
613
- class: "v-select__selection"
614
- }, [l ? a.chip ? d(je, {
615
- key: "chip-defaults",
616
- defaults: {
617
- VChip: {
618
- closable: e.closableChips,
619
- size: "small",
620
- text: f.title
621
- }
622
- }
623
- }, {
624
- default: () => [K]
625
- }) : d(We, _({
626
- key: "chip",
627
- closable: e.closableChips,
628
- size: "small",
629
- text: f.title,
630
- disabled: f.props.disabled
631
- }, U), null) : K ?? d("span", {
632
- class: "v-select__selection-text"
633
- }, [f.title, e.multiple && v < c.value.length - 1 && d("span", {
634
- class: "v-select__selection-comma"
635
- }, [De(",")])])]);
636
- })]),
637
- "append-inner": function() {
638
- for (var f = arguments.length, v = new Array(f), E = 0; E < f; E++)
639
- v[E] = arguments[E];
640
- return d($, null, [a["append-inner"]?.(...v), e.menuIcon ? d(me, {
641
- class: "v-select__menu-icon",
642
- icon: e.menuIcon
643
- }, null) : void 0]);
644
- }
645
- });
646
- }), _e({
647
- isFocused: g,
648
- menu: n,
649
- select: H
650
- }, s);
651
- }
652
- });
653
- Ve("css/revolugo.vselect.C5CKHFYB.css");
654
- export {
655
- Vt as V,
656
- nt as a,
657
- ot as m,
658
- at as u
659
- };
660
- //# sourceMappingURL=revolugo.vselect.ukHPs1U9.min.js.map