@revolugo/elements 6.9.7-rc.1 → 6.10.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.
Files changed (193) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.BHm9G8WA.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.8v7iva-a.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.x0v9ndfv.min.js +47 -0
  12. package/dist/revolugo.bookingdetailssidebar.B4EIlhFU.min.js +43 -0
  13. package/dist/revolugo.bookingmanager.YVuxlZbU.min.js +26 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.DfpyKAT7.min.js +26 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.Catwbml_.min.js +29243 -0
  16. package/dist/revolugo.cancellationpolicieslist.CqGBKCZe.min.js +26 -0
  17. package/dist/revolugo.creditcardstripeform.BWeGQuy4.min.js +50 -0
  18. package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.DNfpUrZN.min.js} +932 -915
  19. package/dist/revolugo.currencypickerbtn.CPU1WxXE.min.js +26 -0
  20. package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.PVrub23o.min.js} +2 -2
  21. package/dist/revolugo.fastbookingflow.I7UL8jNX.min.js +36 -0
  22. package/dist/revolugo.fullbookingflow.CpNJrRcu.min.js +26 -0
  23. package/dist/revolugo.hoteldescriptionview.DWQa933m.min.js +26 -0
  24. package/dist/revolugo.hotelofferlist.DJzWMTLy.min.js +26 -0
  25. package/dist/revolugo.hoteloffersearchmenu.D7YNVTvi.min.js +115 -0
  26. package/dist/revolugo.hoteloffersmap.BYvYv0p6.min.js +26 -0
  27. package/dist/revolugo.hoteloffersview.DT5QVxLs.min.js +21 -0
  28. package/dist/revolugo.hotelroomofferlist.DA_3LSPI.min.js +26 -0
  29. package/dist/revolugo.hotelroomoffersbookingflow.Dkch3aYF.min.js +26 -0
  30. package/dist/revolugo.hotelroomoffersearchmenu.D4wOddbw.min.js +26 -0
  31. package/dist/revolugo.hotelroomoffersview.9FmcyDbV.min.js +26 -0
  32. package/dist/revolugo.index.OiMu9dAJ.min.js +106 -0
  33. package/dist/revolugo.index.wc.C2aj6lKv.min.js +26699 -0
  34. package/dist/revolugo.langpickerbtn.6Brb63yO.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.DVYHP3Yz.min.js +26 -0
  38. package/dist/revolugo.preferencesmenu.BloRxITX.min.js +24 -0
  39. package/dist/revolugo.preferencesmenu.r1vnr_RO.min.js +935 -0
  40. package/dist/revolugo.roominglisteditor.C-AGIJub.min.js +26 -0
  41. package/dist/revolugo.storybooktoolbar.B5oXaRze.min.js +831 -0
  42. package/dist/revolugo.termsandconditions.CNlXW52E.min.js +31 -0
  43. package/dist/revolugo.vtoolbar.BWqbzW1H.min.js +187 -0
  44. package/dist/revolugo.webcomponentwrapper.BMoMCE08.min.js +30962 -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,463 +0,0 @@
1
- import { ag as j, a as y, bV as X, cI as A, a6 as R, H as d, a2 as w, a4 as B, a1 as F, a7 as P, an as q, a9 as D, k as O, O as I, ap as J, af as Q, am as Z, aL as z, c0 as ee, p as ae, b4 as ne, Y as te, X as se, aS as L, W as le, aK as ie, aE as ue, aM as oe, a_ as re, a3 as $ } from "./revolugo.index.wc.BmAtoZjo.min.js";
2
- import { V as de } from "./revolugo.vicon.OZg4Im8p.min.js";
3
- import { z as ce, s as ve, m as fe } from "./revolugo.index.q2k-tLa2.min.js";
4
- import { d as me, u as N, M as ge, p as ye, m as U, n as pe, o as he } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
5
- function W(e) {
6
- try {
7
- if (typeof document < "u") {
8
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
9
- sheets: [],
10
- components: []
11
- };
12
- const s = import.meta.url, u = s.slice(0, s.lastIndexOf("/") + 1) + e;
13
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(u);
14
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
15
- n(u);
16
- if (e.indexOf("fonts") >= 0) {
17
- const n = document.createElement("link");
18
- n.rel = "stylesheet", linK.href = u, document.head.appendChild(n);
19
- }
20
- }
21
- } catch (s) {
22
- console.error("[revolugo-elements] ", s);
23
- }
24
- }
25
- function Ve(e) {
26
- const {
27
- t: s
28
- } = j();
29
- function u(n) {
30
- let {
31
- name: o
32
- } = n;
33
- const a = {
34
- prepend: "prependAction",
35
- prependInner: "prependAction",
36
- append: "appendAction",
37
- appendInner: "appendAction",
38
- clear: "clear"
39
- }[o], i = e[`onClick:${o}`];
40
- function g(f) {
41
- f.key !== "Enter" && f.key !== " " || (f.preventDefault(), f.stopPropagation(), X(i, new PointerEvent("click", f)));
42
- }
43
- const h = i && a ? s(`$vuetify.input.${a}`, e.label ?? "") : void 0;
44
- return y(de, {
45
- icon: e[`${o}Icon`],
46
- "aria-label": h,
47
- onClick: i,
48
- onKeydown: g
49
- }, null);
50
- }
51
- return {
52
- InputIcon: u
53
- };
54
- }
55
- const Se = w({
56
- focused: Boolean,
57
- "onUpdate:focused": B()
58
- }, "focus");
59
- function De(e) {
60
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : A();
61
- const u = R(e, "focused"), n = d(() => ({
62
- [`${s}--focused`]: u.value
63
- }));
64
- function o() {
65
- u.value = !0;
66
- }
67
- function a() {
68
- u.value = !1;
69
- }
70
- return {
71
- focusClasses: n,
72
- isFocused: u,
73
- focus: o,
74
- blur: a
75
- };
76
- }
77
- const be = w({
78
- active: Boolean,
79
- color: String,
80
- messages: {
81
- type: [Array, String],
82
- default: () => []
83
- },
84
- ...U(),
85
- ...ye({
86
- transition: {
87
- component: ce,
88
- leaveAbsolute: !0,
89
- group: !0
90
- }
91
- })
92
- }, "VMessages"), Ee = F()({
93
- name: "VMessages",
94
- props: be(),
95
- setup(e, s) {
96
- let {
97
- slots: u
98
- } = s;
99
- const n = d(() => P(e.messages)), {
100
- textColorClasses: o,
101
- textColorStyles: a
102
- } = me(d(() => e.color));
103
- return N(() => y(ge, {
104
- transition: e.transition,
105
- tag: "div",
106
- class: ["v-messages", o.value, e.class],
107
- style: [a.value, e.style]
108
- }, {
109
- default: () => [e.active && n.value.map((i, g) => y("div", {
110
- class: "v-messages__message",
111
- key: `${g}-${n.value}`
112
- }, [u.message ? u.message({
113
- message: i
114
- }) : i]))]
115
- })), {};
116
- }
117
- }), K = Symbol.for("vuetify:form"), Oe = w({
118
- disabled: Boolean,
119
- fastFail: Boolean,
120
- readonly: Boolean,
121
- modelValue: {
122
- type: Boolean,
123
- default: null
124
- },
125
- validateOn: {
126
- type: String,
127
- default: "input"
128
- }
129
- }, "form");
130
- function Re(e) {
131
- const s = R(e, "modelValue"), u = d(() => e.disabled), n = d(() => e.readonly), o = D(!1), a = O([]), i = O([]);
132
- async function g() {
133
- const t = [];
134
- let l = !0;
135
- i.value = [], o.value = !0;
136
- for (const c of a.value) {
137
- const r = await c.validate();
138
- if (r.length > 0 && (l = !1, t.push({
139
- id: c.id,
140
- errorMessages: r
141
- })), !l && e.fastFail) break;
142
- }
143
- return i.value = t, o.value = !1, {
144
- valid: l,
145
- errors: i.value
146
- };
147
- }
148
- function h() {
149
- a.value.forEach((t) => t.reset());
150
- }
151
- function f() {
152
- a.value.forEach((t) => t.resetValidation());
153
- }
154
- return I(a, () => {
155
- let t = 0, l = 0;
156
- const c = [];
157
- for (const r of a.value)
158
- r.isValid === !1 ? (l++, c.push({
159
- id: r.id,
160
- errorMessages: r.errorMessages
161
- })) : r.isValid === !0 && t++;
162
- i.value = c, s.value = l > 0 ? !1 : t === a.value.length ? !0 : null;
163
- }, {
164
- deep: !0,
165
- flush: "post"
166
- }), J(K, {
167
- register: (t) => {
168
- let {
169
- id: l,
170
- vm: c,
171
- validate: r,
172
- reset: S,
173
- resetValidation: V
174
- } = t;
175
- a.value.some((E) => E.id === l), a.value.push({
176
- id: l,
177
- validate: r,
178
- reset: S,
179
- resetValidation: V,
180
- vm: Z(c),
181
- isValid: null,
182
- errorMessages: []
183
- });
184
- },
185
- unregister: (t) => {
186
- a.value = a.value.filter((l) => l.id !== t);
187
- },
188
- update: (t, l, c) => {
189
- const r = a.value.find((S) => S.id === t);
190
- r && (r.isValid = l, r.errorMessages = c);
191
- },
192
- isDisabled: u,
193
- isReadonly: n,
194
- isValidating: o,
195
- isValid: s,
196
- items: a,
197
- validateOn: Q(e, "validateOn")
198
- }), {
199
- errors: i,
200
- isDisabled: u,
201
- isReadonly: n,
202
- isValidating: o,
203
- isValid: s,
204
- items: a,
205
- validate: g,
206
- reset: h,
207
- resetValidation: f
208
- };
209
- }
210
- function Me(e) {
211
- const s = q(K, null);
212
- return {
213
- ...s,
214
- isReadonly: d(() => !!(e?.readonly ?? s?.isReadonly.value)),
215
- isDisabled: d(() => !!(e?.disabled ?? s?.isDisabled.value))
216
- };
217
- }
218
- const ke = w({
219
- disabled: {
220
- type: Boolean,
221
- default: null
222
- },
223
- error: Boolean,
224
- errorMessages: {
225
- type: [Array, String],
226
- default: () => []
227
- },
228
- maxErrors: {
229
- type: [Number, String],
230
- default: 1
231
- },
232
- name: String,
233
- label: String,
234
- readonly: {
235
- type: Boolean,
236
- default: null
237
- },
238
- rules: {
239
- type: Array,
240
- default: () => []
241
- },
242
- modelValue: null,
243
- validateOn: String,
244
- validationValue: null,
245
- ...Se()
246
- }, "validation");
247
- function Ie(e) {
248
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : A(), u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : z();
249
- const n = R(e, "modelValue"), o = d(() => e.validationValue === void 0 ? n.value : e.validationValue), a = Me(e), i = O([]), g = D(!0), h = d(() => !!(P(n.value === "" ? null : n.value).length || P(o.value === "" ? null : o.value).length)), f = d(() => e.errorMessages?.length ? P(e.errorMessages).concat(i.value).slice(0, Math.max(0, Number(e.maxErrors))) : i.value), t = d(() => {
250
- let m = (e.validateOn ?? a.validateOn?.value) || "input";
251
- m === "lazy" && (m = "input lazy"), m === "eager" && (m = "input eager");
252
- const v = new Set(m?.split(" ") ?? []);
253
- return {
254
- input: v.has("input"),
255
- blur: v.has("blur") || v.has("input") || v.has("invalid-input"),
256
- invalidInput: v.has("invalid-input"),
257
- lazy: v.has("lazy"),
258
- eager: v.has("eager")
259
- };
260
- }), l = d(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? g.value ? i.value.length || t.value.lazy ? null : !0 : !i.value.length : !0), c = D(!1), r = d(() => ({
261
- [`${s}--error`]: l.value === !1,
262
- [`${s}--dirty`]: h.value,
263
- [`${s}--disabled`]: a.isDisabled.value,
264
- [`${s}--readonly`]: a.isReadonly.value
265
- })), S = ee("validation"), V = d(() => e.name ?? ae(u));
266
- ne(() => {
267
- a.register?.({
268
- id: V.value,
269
- vm: S,
270
- validate: p,
271
- reset: E,
272
- resetValidation: M
273
- });
274
- }), te(() => {
275
- a.unregister?.(V.value);
276
- }), se(async () => {
277
- t.value.lazy || await p(!t.value.eager), a.update?.(V.value, l.value, f.value);
278
- }), L(() => t.value.input || t.value.invalidInput && l.value === !1, () => {
279
- I(o, () => {
280
- if (o.value != null)
281
- p();
282
- else if (e.focused) {
283
- const m = I(() => e.focused, (v) => {
284
- v || p(), m();
285
- });
286
- }
287
- });
288
- }), L(() => t.value.blur, () => {
289
- I(() => e.focused, (m) => {
290
- m || p();
291
- });
292
- }), I([l, f], () => {
293
- a.update?.(V.value, l.value, f.value);
294
- });
295
- async function E() {
296
- n.value = null, await le(), await M();
297
- }
298
- async function M() {
299
- g.value = !0, t.value.lazy ? i.value = [] : await p(!t.value.eager);
300
- }
301
- async function p() {
302
- let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
303
- const v = [];
304
- c.value = !0;
305
- for (const k of e.rules) {
306
- if (v.length >= Number(e.maxErrors ?? 1))
307
- break;
308
- const b = await (typeof k == "function" ? k : () => k)(o.value);
309
- if (b !== !0) {
310
- if (b !== !1 && typeof b != "string") {
311
- console.warn(`${b} is not a valid value. Rule functions must return boolean true or a string.`);
312
- continue;
313
- }
314
- v.push(b || "");
315
- }
316
- }
317
- return i.value = v, c.value = !1, g.value = m, i.value;
318
- }
319
- return {
320
- errorMessages: f,
321
- isDirty: h,
322
- isDisabled: a.isDisabled,
323
- isReadonly: a.isReadonly,
324
- isPristine: g,
325
- isValid: l,
326
- isValidating: c,
327
- reset: E,
328
- resetValidation: M,
329
- validate: p,
330
- validationClasses: r
331
- };
332
- }
333
- const we = w({
334
- id: String,
335
- appendIcon: $,
336
- centerAffix: {
337
- type: Boolean,
338
- default: !0
339
- },
340
- prependIcon: $,
341
- hideDetails: [Boolean, String],
342
- hideSpinButtons: Boolean,
343
- hint: String,
344
- persistentHint: Boolean,
345
- messages: {
346
- type: [Array, String],
347
- default: () => []
348
- },
349
- direction: {
350
- type: String,
351
- default: "horizontal",
352
- validator: (e) => ["horizontal", "vertical"].includes(e)
353
- },
354
- "onClick:prepend": B(),
355
- "onClick:append": B(),
356
- ...U(),
357
- ...fe(),
358
- ...re(he(), ["maxWidth", "minWidth", "width"]),
359
- ...oe(),
360
- ...ke()
361
- }, "VInput"), xe = F()({
362
- name: "VInput",
363
- props: {
364
- ...we()
365
- },
366
- emits: {
367
- "update:modelValue": (e) => !0
368
- },
369
- setup(e, s) {
370
- let {
371
- attrs: u,
372
- slots: n,
373
- emit: o
374
- } = s;
375
- const {
376
- densityClasses: a
377
- } = ve(e), {
378
- dimensionStyles: i
379
- } = pe(e), {
380
- themeClasses: g
381
- } = ie(e), {
382
- rtlClasses: h
383
- } = ue(), {
384
- InputIcon: f
385
- } = Ve(e), t = z(), l = d(() => e.id || `input-${t}`), c = d(() => `${l.value}-messages`), {
386
- errorMessages: r,
387
- isDirty: S,
388
- isDisabled: V,
389
- isReadonly: E,
390
- isPristine: M,
391
- isValid: p,
392
- isValidating: m,
393
- reset: v,
394
- resetValidation: k,
395
- validate: _,
396
- validationClasses: b
397
- } = Ie(e, "v-input", l), C = d(() => ({
398
- id: l,
399
- messagesId: c,
400
- isDirty: S,
401
- isDisabled: V,
402
- isReadonly: E,
403
- isPristine: M,
404
- isValid: p,
405
- isValidating: m,
406
- reset: v,
407
- resetValidation: k,
408
- validate: _
409
- })), x = d(() => e.errorMessages?.length || !M.value && r.value.length ? r.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages);
410
- return N(() => {
411
- const Y = !!(n.prepend || e.prependIcon), G = !!(n.append || e.appendIcon), T = x.value.length > 0, H = !e.hideDetails || e.hideDetails === "auto" && (T || !!n.details);
412
- return y("div", {
413
- class: ["v-input", `v-input--${e.direction}`, {
414
- "v-input--center-affix": e.centerAffix,
415
- "v-input--hide-spin-buttons": e.hideSpinButtons
416
- }, a.value, g.value, h.value, b.value, e.class],
417
- style: [i.value, e.style]
418
- }, [Y && y("div", {
419
- key: "prepend",
420
- class: "v-input__prepend"
421
- }, [n.prepend?.(C.value), e.prependIcon && y(f, {
422
- key: "prepend-icon",
423
- name: "prepend"
424
- }, null)]), n.default && y("div", {
425
- class: "v-input__control"
426
- }, [n.default?.(C.value)]), G && y("div", {
427
- key: "append",
428
- class: "v-input__append"
429
- }, [e.appendIcon && y(f, {
430
- key: "append-icon",
431
- name: "append"
432
- }, null), n.append?.(C.value)]), H && y("div", {
433
- id: c.value,
434
- class: "v-input__details",
435
- role: "alert",
436
- "aria-live": "polite"
437
- }, [y(Ee, {
438
- active: T,
439
- messages: x.value
440
- }, {
441
- message: n.message
442
- }), n.details?.(C.value)])]);
443
- }), {
444
- reset: v,
445
- resetValidation: k,
446
- validate: _,
447
- isValid: p,
448
- errorMessages: r
449
- };
450
- }
451
- });
452
- W("css/revolugo.vinput.BPiFMorL.css");
453
- export {
454
- xe as V,
455
- Se as a,
456
- Me as b,
457
- Re as c,
458
- Oe as d,
459
- Ve as e,
460
- we as m,
461
- De as u
462
- };
463
- //# sourceMappingURL=revolugo.vinput.Bo6I7bO4.min.js.map
@@ -1,48 +0,0 @@
1
- import { u as s, m as a } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
2
- import { a1 as c, a2 as r, a as i, aM as m, a4 as E } from "./revolugo.index.wc.BmAtoZjo.min.js";
3
- function l(e) {
4
- try {
5
- if (typeof document < "u") {
6
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
7
- sheets: [],
8
- components: []
9
- };
10
- const o = import.meta.url, t = o.slice(0, o.lastIndexOf("/") + 1) + e;
11
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
12
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
13
- n(t);
14
- if (e.indexOf("fonts") >= 0) {
15
- const n = document.createElement("link");
16
- n.rel = "stylesheet", linK.href = t, document.head.appendChild(n);
17
- }
18
- }
19
- } catch (o) {
20
- console.error("[revolugo-elements] ", o);
21
- }
22
- }
23
- const d = r({
24
- text: String,
25
- onClick: E(),
26
- ...a(),
27
- ...m()
28
- }, "VLabel"), f = c()({
29
- name: "VLabel",
30
- props: d(),
31
- setup(e, o) {
32
- let {
33
- slots: t
34
- } = o;
35
- return s(() => i("label", {
36
- class: ["v-label", {
37
- "v-label--clickable": !!e.onClick
38
- }, e.class],
39
- style: e.style,
40
- onClick: e.onClick
41
- }, [e.text, t.default?.()])), {};
42
- }
43
- });
44
- l("css/revolugo.vlabel.BvKaKg7Y.css");
45
- export {
46
- f as V
47
- };
48
- //# sourceMappingURL=revolugo.vlabel.CK1EiiGY.min.js.map