@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,478 +0,0 @@
1
- import { ab as q, a as y, bO as X, cw as Y, a1 as x, D as c, Z as w, $ as B, Y as K, a2 as P, ah as ee, a4 as O, C as R, L as I, aj as ae, aa as ne, ag as te, aJ as G, bW as se, J as le, b2 as ie, U as ue, S as re, aQ as N, Q as oe, aI as de, aC as ce, aK as ve, aY as fe, _ as U } from "./revolugo.index.wc.BaFPloEH.min.js";
2
- import { V as me } from "./revolugo.vicon.CuIGTijn.min.js";
3
- import { z as ge, s as ye, m as he } from "./revolugo.index.Dyr1hnew.min.js";
4
- import { d as pe, u as j, M as Ve, p as be, m as W, n as Se, o as Ee } from "./revolugo.webcomponentwrapper.Byzhja-M.min.js";
5
- function Z(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, r = s.slice(0, s.lastIndexOf("/") + 1) + e;
13
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(r);
14
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
15
- n(r);
16
- if (e.indexOf("fonts") >= 0) {
17
- const n = document.createElement("link");
18
- n.rel = "stylesheet", linK.href = r, document.head.appendChild(n);
19
- }
20
- }
21
- } catch (s) {
22
- console.error("[revolugo-elements] ", s);
23
- }
24
- }
25
- function Me(e) {
26
- const {
27
- t: s
28
- } = q();
29
- function r(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], u = e[`onClick:${o}`];
40
- function g(m) {
41
- m.key !== "Enter" && m.key !== " " || (m.preventDefault(), m.stopPropagation(), X(u, new PointerEvent("click", m)));
42
- }
43
- const V = u && a ? s(`$vuetify.input.${a}`, e.label ?? "") : void 0;
44
- return y(me, {
45
- icon: e[`${o}Icon`],
46
- "aria-label": V,
47
- onClick: u,
48
- onKeydown: g
49
- }, null);
50
- }
51
- return {
52
- InputIcon: r
53
- };
54
- }
55
- const ke = w({
56
- focused: Boolean,
57
- "onUpdate:focused": B()
58
- }, "focus");
59
- function Te(e) {
60
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Y();
61
- const r = x(e, "focused"), n = c(() => ({
62
- [`${s}--focused`]: r.value
63
- }));
64
- function o() {
65
- r.value = !0;
66
- }
67
- function a() {
68
- r.value = !1;
69
- }
70
- return {
71
- focusClasses: n,
72
- isFocused: r,
73
- focus: o,
74
- blur: a
75
- };
76
- }
77
- const Ie = w({
78
- active: Boolean,
79
- color: String,
80
- messages: {
81
- type: [Array, String],
82
- default: () => []
83
- },
84
- ...W(),
85
- ...be({
86
- transition: {
87
- component: ge,
88
- leaveAbsolute: !0,
89
- group: !0
90
- }
91
- })
92
- }, "VMessages"), we = K()({
93
- name: "VMessages",
94
- props: Ie(),
95
- setup(e, s) {
96
- let {
97
- slots: r
98
- } = s;
99
- const n = c(() => P(e.messages)), {
100
- textColorClasses: o,
101
- textColorStyles: a
102
- } = pe(c(() => e.color));
103
- return j(() => y(Ve, {
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((u, g) => y("div", {
110
- class: "v-messages__message",
111
- key: `${g}-${n.value}`
112
- }, [r.message ? r.message({
113
- message: u
114
- }) : u]))]
115
- })), {};
116
- }
117
- }), H = Symbol.for("vuetify:form"), $e = 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 Le(e) {
131
- const s = x(e, "modelValue"), r = c(() => e.disabled), n = c(() => e.readonly), o = O(!1), a = R([]), u = R([]);
132
- async function g() {
133
- const l = [];
134
- let i = !0;
135
- u.value = [], o.value = !0;
136
- for (const v of a.value) {
137
- const d = await v.validate();
138
- if (d.length > 0 && (i = !1, l.push({
139
- id: v.id,
140
- errorMessages: d
141
- })), !i && e.fastFail) break;
142
- }
143
- return u.value = l, o.value = !1, {
144
- valid: i,
145
- errors: u.value
146
- };
147
- }
148
- function V() {
149
- a.value.forEach((l) => l.reset());
150
- }
151
- function m() {
152
- a.value.forEach((l) => l.resetValidation());
153
- }
154
- return I(a, () => {
155
- let l = 0, i = 0;
156
- const v = [];
157
- for (const d of a.value)
158
- d.isValid === !1 ? (i++, v.push({
159
- id: d.id,
160
- errorMessages: d.errorMessages
161
- })) : d.isValid === !0 && l++;
162
- u.value = v, s.value = i > 0 ? !1 : l === a.value.length ? !0 : null;
163
- }, {
164
- deep: !0,
165
- flush: "post"
166
- }), ae(H, {
167
- register: (l) => {
168
- let {
169
- id: i,
170
- vm: v,
171
- validate: d,
172
- reset: S,
173
- resetValidation: b
174
- } = l;
175
- a.value.some((M) => M.id === i), a.value.push({
176
- id: i,
177
- validate: d,
178
- reset: S,
179
- resetValidation: b,
180
- vm: te(v),
181
- isValid: null,
182
- errorMessages: []
183
- });
184
- },
185
- unregister: (l) => {
186
- a.value = a.value.filter((i) => i.id !== l);
187
- },
188
- update: (l, i, v) => {
189
- const d = a.value.find((S) => S.id === l);
190
- d && (d.isValid = i, d.errorMessages = v);
191
- },
192
- isDisabled: r,
193
- isReadonly: n,
194
- isValidating: o,
195
- isValid: s,
196
- items: a,
197
- validateOn: ne(e, "validateOn")
198
- }), {
199
- errors: u,
200
- isDisabled: r,
201
- isReadonly: n,
202
- isValidating: o,
203
- isValid: s,
204
- items: a,
205
- validate: g,
206
- reset: V,
207
- resetValidation: m
208
- };
209
- }
210
- function Ce(e) {
211
- const s = ee(H, null);
212
- return {
213
- ...s,
214
- isReadonly: c(() => !!((e == null ? void 0 : e.readonly) ?? (s == null ? void 0 : s.isReadonly.value))),
215
- isDisabled: c(() => !!((e == null ? void 0 : e.disabled) ?? (s == null ? void 0 : s.isDisabled.value)))
216
- };
217
- }
218
- const De = 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
- ...ke()
246
- }, "validation");
247
- function Pe(e) {
248
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Y(), r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : G();
249
- const n = x(e, "modelValue"), o = c(() => e.validationValue === void 0 ? n.value : e.validationValue), a = Ce(e), u = R([]), g = O(!0), V = c(() => !!(P(n.value === "" ? null : n.value).length || P(o.value === "" ? null : o.value).length)), m = c(() => {
250
- var t;
251
- return (t = e.errorMessages) != null && t.length ? P(e.errorMessages).concat(u.value).slice(0, Math.max(0, Number(e.maxErrors))) : u.value;
252
- }), l = c(() => {
253
- var p;
254
- let t = (e.validateOn ?? ((p = a.validateOn) == null ? void 0 : p.value)) || "input";
255
- t === "lazy" && (t = "input lazy"), t === "eager" && (t = "input eager");
256
- const f = new Set((t == null ? void 0 : t.split(" ")) ?? []);
257
- return {
258
- input: f.has("input"),
259
- blur: f.has("blur") || f.has("input") || f.has("invalid-input"),
260
- invalidInput: f.has("invalid-input"),
261
- lazy: f.has("lazy"),
262
- eager: f.has("eager")
263
- };
264
- }), i = c(() => {
265
- var t;
266
- return e.error || (t = e.errorMessages) != null && t.length ? !1 : e.rules.length ? g.value ? u.value.length || l.value.lazy ? null : !0 : !u.value.length : !0;
267
- }), v = O(!1), d = c(() => ({
268
- [`${s}--error`]: i.value === !1,
269
- [`${s}--dirty`]: V.value,
270
- [`${s}--disabled`]: a.isDisabled.value,
271
- [`${s}--readonly`]: a.isReadonly.value
272
- })), S = se("validation"), b = c(() => e.name ?? le(r));
273
- ie(() => {
274
- var t;
275
- (t = a.register) == null || t.call(a, {
276
- id: b.value,
277
- vm: S,
278
- validate: h,
279
- reset: M,
280
- resetValidation: k
281
- });
282
- }), ue(() => {
283
- var t;
284
- (t = a.unregister) == null || t.call(a, b.value);
285
- }), re(async () => {
286
- var t;
287
- l.value.lazy || await h(!l.value.eager), (t = a.update) == null || t.call(a, b.value, i.value, m.value);
288
- }), N(() => l.value.input || l.value.invalidInput && i.value === !1, () => {
289
- I(o, () => {
290
- if (o.value != null)
291
- h();
292
- else if (e.focused) {
293
- const t = I(() => e.focused, (f) => {
294
- f || h(), t();
295
- });
296
- }
297
- });
298
- }), N(() => l.value.blur, () => {
299
- I(() => e.focused, (t) => {
300
- t || h();
301
- });
302
- }), I([i, m], () => {
303
- var t;
304
- (t = a.update) == null || t.call(a, b.value, i.value, m.value);
305
- });
306
- async function M() {
307
- n.value = null, await oe(), await k();
308
- }
309
- async function k() {
310
- g.value = !0, l.value.lazy ? u.value = [] : await h(!l.value.eager);
311
- }
312
- async function h() {
313
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
314
- const f = [];
315
- v.value = !0;
316
- for (const p of e.rules) {
317
- if (f.length >= Number(e.maxErrors ?? 1))
318
- break;
319
- const E = await (typeof p == "function" ? p : () => p)(o.value);
320
- if (E !== !0) {
321
- if (E !== !1 && typeof E != "string") {
322
- console.warn(`${E} is not a valid value. Rule functions must return boolean true or a string.`);
323
- continue;
324
- }
325
- f.push(E || "");
326
- }
327
- }
328
- return u.value = f, v.value = !1, g.value = t, u.value;
329
- }
330
- return {
331
- errorMessages: m,
332
- isDirty: V,
333
- isDisabled: a.isDisabled,
334
- isReadonly: a.isReadonly,
335
- isPristine: g,
336
- isValid: i,
337
- isValidating: v,
338
- reset: M,
339
- resetValidation: k,
340
- validate: h,
341
- validationClasses: d
342
- };
343
- }
344
- const _e = w({
345
- id: String,
346
- appendIcon: U,
347
- centerAffix: {
348
- type: Boolean,
349
- default: !0
350
- },
351
- prependIcon: U,
352
- hideDetails: [Boolean, String],
353
- hideSpinButtons: Boolean,
354
- hint: String,
355
- persistentHint: Boolean,
356
- messages: {
357
- type: [Array, String],
358
- default: () => []
359
- },
360
- direction: {
361
- type: String,
362
- default: "horizontal",
363
- validator: (e) => ["horizontal", "vertical"].includes(e)
364
- },
365
- "onClick:prepend": B(),
366
- "onClick:append": B(),
367
- ...W(),
368
- ...he(),
369
- ...fe(Ee(), ["maxWidth", "minWidth", "width"]),
370
- ...ve(),
371
- ...De()
372
- }, "VInput"), Ae = K()({
373
- name: "VInput",
374
- props: {
375
- ..._e()
376
- },
377
- emits: {
378
- "update:modelValue": (e) => !0
379
- },
380
- setup(e, s) {
381
- let {
382
- attrs: r,
383
- slots: n,
384
- emit: o
385
- } = s;
386
- const {
387
- densityClasses: a
388
- } = ye(e), {
389
- dimensionStyles: u
390
- } = Se(e), {
391
- themeClasses: g
392
- } = de(e), {
393
- rtlClasses: V
394
- } = ce(), {
395
- InputIcon: m
396
- } = Me(e), l = G(), i = c(() => e.id || `input-${l}`), v = c(() => `${i.value}-messages`), {
397
- errorMessages: d,
398
- isDirty: S,
399
- isDisabled: b,
400
- isReadonly: M,
401
- isPristine: k,
402
- isValid: h,
403
- isValidating: t,
404
- reset: f,
405
- resetValidation: p,
406
- validate: _,
407
- validationClasses: E
408
- } = Pe(e, "v-input", i), C = c(() => ({
409
- id: i,
410
- messagesId: v,
411
- isDirty: S,
412
- isDisabled: b,
413
- isReadonly: M,
414
- isPristine: k,
415
- isValid: h,
416
- isValidating: t,
417
- reset: f,
418
- resetValidation: p,
419
- validate: _
420
- })), T = c(() => {
421
- var D;
422
- return (D = e.errorMessages) != null && D.length || !k.value && d.value.length ? d.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages;
423
- });
424
- return j(() => {
425
- var L, A, F, z;
426
- const D = !!(n.prepend || e.prependIcon), J = !!(n.append || e.appendIcon), $ = T.value.length > 0, Q = !e.hideDetails || e.hideDetails === "auto" && ($ || !!n.details);
427
- return y("div", {
428
- class: ["v-input", `v-input--${e.direction}`, {
429
- "v-input--center-affix": e.centerAffix,
430
- "v-input--hide-spin-buttons": e.hideSpinButtons
431
- }, a.value, g.value, V.value, E.value, e.class],
432
- style: [u.value, e.style]
433
- }, [D && y("div", {
434
- key: "prepend",
435
- class: "v-input__prepend"
436
- }, [(L = n.prepend) == null ? void 0 : L.call(n, C.value), e.prependIcon && y(m, {
437
- key: "prepend-icon",
438
- name: "prepend"
439
- }, null)]), n.default && y("div", {
440
- class: "v-input__control"
441
- }, [(A = n.default) == null ? void 0 : A.call(n, C.value)]), J && y("div", {
442
- key: "append",
443
- class: "v-input__append"
444
- }, [e.appendIcon && y(m, {
445
- key: "append-icon",
446
- name: "append"
447
- }, null), (F = n.append) == null ? void 0 : F.call(n, C.value)]), Q && y("div", {
448
- id: v.value,
449
- class: "v-input__details",
450
- role: "alert",
451
- "aria-live": "polite"
452
- }, [y(we, {
453
- active: $,
454
- messages: T.value
455
- }, {
456
- message: n.message
457
- }), (z = n.details) == null ? void 0 : z.call(n, C.value)])]);
458
- }), {
459
- reset: f,
460
- resetValidation: p,
461
- validate: _,
462
- isValid: h,
463
- errorMessages: d
464
- };
465
- }
466
- });
467
- Z("css/revolugo.vinput.BPiFMorL.css");
468
- export {
469
- Ae as V,
470
- ke as a,
471
- Ce as b,
472
- Le as c,
473
- $e as d,
474
- Me as e,
475
- _e as m,
476
- Te as u
477
- };
478
- //# sourceMappingURL=revolugo.vinput.C6k3-74L.min.js.map
@@ -1,51 +0,0 @@
1
- import { u as s, m as a } from "./revolugo.webcomponentwrapper.Byzhja-M.min.js";
2
- import { Y as c, Z as r, a as i, aK as m, $ as E } from "./revolugo.index.wc.BaFPloEH.min.js";
3
- function l(e) {
4
- try {
5
- if (typeof document < "u") {
6
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
7
- sheets: [],
8
- components: []
9
- };
10
- const n = import.meta.url, o = n.slice(0, n.lastIndexOf("/") + 1) + e;
11
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(o);
12
- for (const t of REVOLUGO_ELEMENTS_STYLES.components)
13
- t(o);
14
- if (e.indexOf("fonts") >= 0) {
15
- const t = document.createElement("link");
16
- t.rel = "stylesheet", linK.href = o, document.head.appendChild(t);
17
- }
18
- }
19
- } catch (n) {
20
- console.error("[revolugo-elements] ", n);
21
- }
22
- }
23
- const d = r({
24
- text: String,
25
- onClick: E(),
26
- ...a(),
27
- ...m()
28
- }, "VLabel"), f = c()({
29
- name: "VLabel",
30
- props: d(),
31
- setup(e, n) {
32
- let {
33
- slots: o
34
- } = n;
35
- return s(() => {
36
- var t;
37
- return i("label", {
38
- class: ["v-label", {
39
- "v-label--clickable": !!e.onClick
40
- }, e.class],
41
- style: e.style,
42
- onClick: e.onClick
43
- }, [e.text, (t = o.default) == null ? void 0 : t.call(o)]);
44
- }), {};
45
- }
46
- });
47
- l("css/revolugo.vlabel.BvKaKg7Y.css");
48
- export {
49
- f as V
50
- };
51
- //# sourceMappingURL=revolugo.vlabel.BNLTPj0h.min.js.map