@8wave/ai-elements 0.103.0-beta.3 → 0.103.0-beta.4

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 (128) hide show
  1. package/dist/_chunks/PkLazyImg-CyeqD59M.js +34 -0
  2. package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
  4. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
  5. package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
  6. package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
  9. package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
  10. package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
  12. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
  13. package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
  14. package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
  16. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
  18. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
  20. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
  21. package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
  22. package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
  23. package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
  24. package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
  26. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
  27. package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
  28. package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
  30. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
  32. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
  34. package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
  36. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
  38. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
  40. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
  41. package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
  42. package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
  43. package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
  44. package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
  45. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
  46. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
  47. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
  48. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
  49. package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
  50. package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
  51. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
  52. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
  53. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
  54. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
  55. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
  56. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
  57. package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
  58. package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
  59. package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
  60. package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
  61. package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
  62. package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
  63. package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
  64. package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
  65. package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
  66. package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
  67. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
  68. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
  69. package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
  70. package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
  71. package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
  72. package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
  73. package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
  74. package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
  75. package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
  76. package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
  77. package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
  78. package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
  79. package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
  80. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
  81. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
  82. package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
  83. package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
  84. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
  85. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
  86. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
  87. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
  88. package/dist/ai-elements.es.js +1861 -1861
  89. package/dist/ai-elements.es.js.map +1 -1
  90. package/dist-vue/PkChatbot.js +1 -1
  91. package/dist-vue/PkChatbotAuth.js +1 -1
  92. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  93. package/dist-vue/PkChatbotMessages.js +1 -1
  94. package/dist-vue/PkChatbotViewChat.js +1 -1
  95. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
  96. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
  98. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
  100. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
  102. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
  104. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
  109. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
  110. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
  111. package/dist-vue/index.js +10 -10
  112. package/package.json +2 -2
  113. package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
  114. package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
  115. package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
  116. package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
  117. package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
  118. package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
  119. package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
  120. package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
  121. package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
  122. package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
  123. package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
  124. package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
  125. package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
  126. package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
  127. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
  128. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { A as e, B as t, D as n, E as r, Ht as i, J as a, K as o, N as s, R as c, S as l, Ut as u, V as d, Z as f, _ as p, at as m, b as ee, et as h, f as g, g as _, h as v, j as te, k as y, kt as b, lt as ne, mt as re, qt as x, r as ie, s as ae, tt as oe, v as S, w as C, xt as w, y as T, yt as E } from "./vue.runtime.esm-bundler-DF2of3lp.js";
2
- import { a as D, i as O, t as k } from "./iconify-BGSTR7vH.js";
3
- import { c as se, s as ce } from "./dist-TFHdNK0W.js";
4
- import { t as A } from "./dot-prop-BEIkPL0b.js";
5
- //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.17_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_ec33527ad3a6f0f0071872380d65ccd9/node_modules/@volverjs/ui-vue/dist/components/VvSelect/VvSelect.es.js
6
- y(), m(), b(), ie();
7
- var le = {
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, E as a, G as o, L as s, M as c, O as l, St as u, T as d, Tt as f, X as p, _ as m, bt as h, ct as ee, d as g, et as te, g as _, h as v, it as y, k as b, m as x, o as ne, pt as S, q as re, r as ie, v as C, vt as w, x as ae, xt as oe, y as se, z as T } from "./vue.runtime.esm-bundler-B3bThTaf.js";
2
+ import { a as E, i as D, t as O } from "./iconify-6ObncgfH.js";
3
+ import { c as ce, s as le } from "./dist-C5Y-NI3i.js";
4
+ import { t as k } from "./dot-prop-BEIkPL0b.js";
5
+ //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_fb2fc569fa47f04da7f3d790d6448706/node_modules/@volverjs/ui-vue/dist/components/VvSelect/VvSelect.es.js
6
+ l(), y(), oe(), ie();
7
+ var ue = {
8
8
  showPassword: "eye-on",
9
9
  hidePassword: "eye-off",
10
10
  showDatePicker: "calendar",
@@ -15,15 +15,15 @@ var le = {
15
15
  remove: "trash",
16
16
  edit: "edit",
17
17
  download: "download"
18
- }, ue = { prefix: "normal" }, de = /* @__PURE__ */ (function(e) {
18
+ }, de = { prefix: "normal" }, fe = /* @__PURE__ */ (function(e) {
19
19
  return e.local = "local", e.session = "session", e;
20
- })({}), j = /* @__PURE__ */ (function(e) {
20
+ })({}), A = /* @__PURE__ */ (function(e) {
21
21
  return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
22
- })({}), M = /* @__PURE__ */ (function(e) {
22
+ })({}), j = /* @__PURE__ */ (function(e) {
23
23
  return e.before = "before", e.after = "after", e;
24
- })({}), fe = /* @__PURE__ */ (function(e) {
25
- return e.button = "button", e.submit = "submit", e.reset = "reset", e;
26
24
  })({}), pe = /* @__PURE__ */ (function(e) {
25
+ return e.button = "button", e.submit = "submit", e.reset = "reset", e;
26
+ })({}), M = /* @__PURE__ */ (function(e) {
27
27
  return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
28
28
  })({}), me = /* @__PURE__ */ Symbol.for("volver"), he = {
29
29
  to: { type: [String, Object] },
@@ -79,7 +79,7 @@ var le = {
79
79
  },
80
80
  iconClear: {
81
81
  type: [String, Object],
82
- default: le.clear
82
+ default: ue.clear
83
83
  },
84
84
  labelClear: {
85
85
  type: String,
@@ -136,8 +136,8 @@ var le = {
136
136
  },
137
137
  iconPosition: {
138
138
  type: String,
139
- default: M.before,
140
- validation: (e) => Object.values(M).includes(e)
139
+ default: j.before,
140
+ validation: (e) => Object.values(j).includes(e)
141
141
  }
142
142
  }, Y = { tabindex: {
143
143
  type: [String, Number],
@@ -149,7 +149,7 @@ var le = {
149
149
  type: Boolean,
150
150
  default: !0
151
151
  } }, _e = { id: [String, Number] };
152
- j.bottom;
152
+ A.bottom;
153
153
  var Q = {
154
154
  ..._e,
155
155
  name: {
@@ -209,7 +209,7 @@ var Q = {
209
209
  ...R,
210
210
  ...z,
211
211
  ...he
212
- }, fe.button, pe.button, de.local;
212
+ }, pe.button, M.button, fe.local;
213
213
  var be = {
214
214
  ...Q,
215
215
  ...ve,
@@ -264,19 +264,19 @@ function Ce(e) {
264
264
  return Array.isArray(e) ? e.filter((e) => Se(e)).join(" ") : e;
265
265
  }
266
266
  function we(e, t) {
267
- let r = v(() => ne(e) ? e.value : e), i = v(() => Ce(r.value.invalidLabel)), a = v(() => Ce(r.value.validLabel)), o = v(() => r.value.loadingLabel), s = v(() => r.value.hintLabel), c = v(() => !!(r.value.loading && (t.loading || o.value))), l = v(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = v(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = v(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = v(() => l.value || u.value || c.value || d.value);
267
+ let n = x(() => ee(e) ? e.value : e), i = x(() => Ce(n.value.invalidLabel)), o = x(() => Ce(n.value.validLabel)), s = x(() => n.value.loadingLabel), c = x(() => n.value.hintLabel), l = x(() => !!(n.value.loading && (t.loading || s.value))), u = x(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = x(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = x(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = x(() => u.value || d.value || l.value || f.value);
268
268
  return {
269
- hasInvalidLabelOrSlot: l,
270
- hasHintLabelOrSlot: d,
271
- hasValidLabelOrSlot: u,
272
- hasLoadingLabelOrSlot: c,
273
- hintSlotScope: v(() => ({
274
- modelValue: r.value.modelValue,
275
- valid: r.value.valid,
276
- invalid: r.value.invalid,
277
- loading: r.value.loading
269
+ hasInvalidLabelOrSlot: u,
270
+ hasHintLabelOrSlot: f,
271
+ hasValidLabelOrSlot: d,
272
+ hasLoadingLabelOrSlot: l,
273
+ hintSlotScope: x(() => ({
274
+ modelValue: n.value.modelValue,
275
+ valid: n.value.valid,
276
+ invalid: n.value.invalid,
277
+ loading: n.value.loading
278
278
  })),
279
- HintSlot: C({
279
+ HintSlot: r({
280
280
  name: "HintSlot",
281
281
  props: { tag: {
282
282
  type: String,
@@ -284,21 +284,21 @@ function we(e, t) {
284
284
  } },
285
285
  setup() {
286
286
  return {
287
- isVisible: f,
287
+ isVisible: p,
288
288
  invalidLabel: i,
289
- validLabel: a,
290
- loadingLabel: o,
291
- hintLabel: s,
292
- hasInvalidLabelOrSlot: l,
293
- hasValidLabelOrSlot: u,
294
- hasLoadingLabelOrSlot: c,
295
- hasHintLabelOrSlot: d
289
+ validLabel: o,
290
+ loadingLabel: s,
291
+ hintLabel: c,
292
+ hasInvalidLabelOrSlot: u,
293
+ hasValidLabelOrSlot: d,
294
+ hasLoadingLabelOrSlot: l,
295
+ hasHintLabelOrSlot: f
296
296
  };
297
297
  },
298
298
  render() {
299
299
  if (this.isVisible) {
300
300
  let e;
301
- return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? n(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? n(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? n(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : n(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
301
+ return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? a(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : a(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
302
302
  }
303
303
  return null;
304
304
  }
@@ -306,21 +306,21 @@ function we(e, t) {
306
306
  };
307
307
  }
308
308
  function Te() {
309
- return e(me, void 0);
309
+ return b(me, void 0);
310
310
  }
311
311
  function Ee(e, t, n) {
312
- return v(() => {
312
+ return x(() => {
313
313
  let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
314
314
  return i && Array.isArray(i) && i.forEach((t) => {
315
315
  t && (r[`${e}--${t}`] = !0);
316
316
  }), n && Object.keys(n.value).forEach((t) => {
317
- r[`${e}--${t}`] = w(n.value[t]);
317
+ r[`${e}--${t}`] = h(n.value[t]);
318
318
  }), r;
319
319
  });
320
320
  }
321
- var $ = /* @__PURE__ */ C({
321
+ var $ = /* @__PURE__ */ r({
322
322
  name: "VvIcon",
323
- props: /* @__PURE__ */ te({
323
+ props: /* @__PURE__ */ t({
324
324
  name: {},
325
325
  color: {},
326
326
  width: {},
@@ -337,14 +337,14 @@ var $ = /* @__PURE__ */ C({
337
337
  onLoad: { type: Function },
338
338
  svg: {},
339
339
  modifiers: {}
340
- }, ue),
340
+ }, de),
341
341
  setup(e) {
342
- let t = e, n = v(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = re(!0), i = Te(), { modifiers: a } = E(t), o = Ee("vv-icon", a), l = v(() => t.provider || i?.iconsProvider), u = v(() => {
342
+ let t = e, n = x(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = S(!0), i = Te(), { modifiers: a } = w(t), o = Ee("vv-icon", a), l = x(() => t.provider || i?.iconsProvider), u = x(() => {
343
343
  let e = t.name ?? "", n = `@${l.value}:${t.prefix}:${e}`;
344
- if (D(n)) return n;
344
+ if (E(n)) return n;
345
345
  let r = i?.iconsCollections.find((t) => {
346
346
  let n = `@${l.value}:${t.prefix}:${e}`;
347
- return D(n);
347
+ return E(n);
348
348
  });
349
349
  return r ? `@${l.value}:${r.prefix}:${e}` : e;
350
350
  });
@@ -353,19 +353,19 @@ var $ = /* @__PURE__ */ C({
353
353
  }
354
354
  function f(e) {
355
355
  let n = d(e), r = n?.innerHTML.trim() || "";
356
- n && r && O(`@${l.value}:${t.prefix}:${t.name}`, {
356
+ n && r && D(`@${l.value}:${t.prefix}:${t.name}`, {
357
357
  body: r,
358
358
  height: n.viewBox.baseVal.height,
359
359
  width: n.viewBox.baseVal.width
360
360
  });
361
361
  }
362
- return i && t.src && !D(`@${l.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
362
+ return i && t.src && !E(`@${l.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
363
363
  e && f(e), r.value = !0;
364
364
  }).catch((e) => {
365
365
  throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
366
- })), t.svg && f(t.svg), (t, i) => w(r) ? (c(), p(w(k), s({
366
+ })), t.svg && f(t.svg), (t, i) => h(r) ? (s(), _(h(O), c({
367
367
  key: 0,
368
- class: w(o)
368
+ class: h(o)
369
369
  }, {
370
370
  inline: e.inline,
371
371
  width: e.width,
@@ -373,25 +373,25 @@ var $ = /* @__PURE__ */ C({
373
373
  horizontalFlip: e.horizontalFlip,
374
374
  verticalFlip: e.verticalFlip,
375
375
  flip: e.flip,
376
- rotate: w(n),
376
+ rotate: h(n),
377
377
  color: e.color,
378
- icon: w(u)
379
- }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : S("v-if", !0);
378
+ icon: h(u)
379
+ }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : m("v-if", !0);
380
380
  }
381
381
  });
382
382
  function De(e, t) {
383
- let n = v(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = v(() => t?.value === M.before ? n.value : void 0), i = v(() => t?.value === M.after ? n.value : void 0);
383
+ let n = x(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = x(() => t?.value === j.before ? n.value : void 0), i = x(() => t?.value === j.after ? n.value : void 0);
384
384
  return {
385
385
  hasIcon: n,
386
- hasIconLeft: v(() => t?.value === j.left ? n.value : void 0),
387
- hasIconRight: v(() => t?.value === j.right ? n.value : void 0),
388
- hasIconTop: v(() => t?.value === j.top ? n.value : void 0),
389
- hasIconBottom: v(() => t?.value === j.bottom ? n.value : void 0),
386
+ hasIconLeft: x(() => t?.value === A.left ? n.value : void 0),
387
+ hasIconRight: x(() => t?.value === A.right ? n.value : void 0),
388
+ hasIconTop: x(() => t?.value === A.top ? n.value : void 0),
389
+ hasIconBottom: x(() => t?.value === A.bottom ? n.value : void 0),
390
390
  hasIconBefore: r,
391
391
  hasIconAfter: i
392
392
  };
393
393
  }
394
- var Oe = C({
394
+ var Oe = r({
395
395
  components: { VvIcon: $ },
396
396
  props: {
397
397
  inputType: {
@@ -413,7 +413,7 @@ var Oe = C({
413
413
  },
414
414
  emits: ["clear"],
415
415
  setup(e, { emit: t }) {
416
- let { hasIcon: n } = De(v(() => e.icon));
416
+ let { hasIcon: n } = De(x(() => e.icon));
417
417
  function r(n) {
418
418
  n?.stopPropagation(), e.disabled || t("clear");
419
419
  }
@@ -423,11 +423,11 @@ var Oe = C({
423
423
  };
424
424
  },
425
425
  render() {
426
- let e = this.hasIcon ? n($, {
426
+ let e = this.hasIcon ? a($, {
427
427
  ...this.hasIcon,
428
428
  class: `vv-${this.inputType}__icon`
429
429
  }) : void 0;
430
- return n("button", {
430
+ return a("button", {
431
431
  disabled: this.disabled,
432
432
  class: `vv-${this.inputType}__action`,
433
433
  ariaLabel: this.label,
@@ -449,10 +449,10 @@ function ke(e, t, n) {
449
449
  return r;
450
450
  }
451
451
  function Ae(e, t, n) {
452
- let r = Te(), i = v(() => {
452
+ let r = Te(), i = x(() => {
453
453
  if (r?.defaults.value?.[e]) return r.defaults.value[e];
454
454
  });
455
- return v(() => {
455
+ return x(() => {
456
456
  if (i.value === void 0) return n;
457
457
  let e = i.value, r = t, a = n;
458
458
  return Object.keys(r).reduce((t, n) => {
@@ -462,21 +462,21 @@ function Ae(e, t, n) {
462
462
  });
463
463
  }
464
464
  function je(e, t) {
465
- let { focused: n } = se(e);
466
- return f(n, (n) => {
467
- t(n ? "focus" : "blur", w(e));
465
+ let { focused: n } = ce(e);
466
+ return p(n, (n) => {
467
+ t(n ? "focus" : "blur", h(e));
468
468
  }), { focused: n };
469
469
  }
470
470
  function Me(e) {
471
- return v(() => String(e?.value || o()));
471
+ return x(() => String(e?.value || o()));
472
472
  }
473
473
  function Ne(e) {
474
- let { options: t, labelKey: n, valueKey: r, disabledKey: i } = E(e);
474
+ let { options: t, labelKey: n, valueKey: r, disabledKey: i } = w(e);
475
475
  return {
476
476
  options: t,
477
- getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? A(e, n.value) : e),
478
- getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? A(e, r.value) : e,
479
- isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!A(e, i.value) : !1,
477
+ getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? k(e, n.value) : e),
478
+ getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? k(e, r.value) : e,
479
+ isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!k(e, i.value) : !1,
480
480
  getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
481
481
  };
482
482
  }
@@ -486,7 +486,7 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
486
486
  }, Le = { class: "vv-select__inner" }, Re = ["id"], ze = ["disabled", "hidden"], Be = ["disabled", "value"], Ve = ["disabled", "label"], He = ["disabled", "value"], Ue = {
487
487
  key: 2,
488
488
  class: "vv-select__input-after"
489
- }, We = /* @__PURE__ */ C({
489
+ }, We = /* @__PURE__ */ r({
490
490
  name: "VvSelect",
491
491
  props: xe(),
492
492
  emits: [
@@ -495,134 +495,134 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
495
495
  "blur",
496
496
  "clear"
497
497
  ],
498
- setup(e, { emit: n }) {
499
- let o = e, m = n, te = a(), y = Ae("VvSelect", xe(), o), b = re(), { HintSlot: ie, hasHintLabelOrSlot: C, hasInvalidLabelOrSlot: D, hintSlotScope: O } = we(y, te), { focused: k } = je(b, m);
500
- function se(e) {
498
+ setup(t, { emit: r }) {
499
+ let a = t, o = r, l = re(), y = Ae("VvSelect", xe(), a), b = S(), { HintSlot: ie, hasHintLabelOrSlot: oe, hasInvalidLabelOrSlot: E, hintSlotScope: D } = we(y, l), { focused: O } = je(b, o);
500
+ function ce(e) {
501
501
  return typeof e != "string" && e.options?.length;
502
502
  }
503
- let { id: A, modifiers: le, disabled: ue, readonly: de, loading: j, icon: M, iconPosition: fe, invalid: pe, valid: me, floating: he, multiple: N } = E(o), P = Me(A), F = v(() => `${P.value}-hint`), I = v(() => o.disabled || o.readonly), L = v(() => I.value ? -1 : o.tabindex), R = v({
504
- get: () => o.modelValue,
503
+ let { id: k, modifiers: ue, disabled: de, readonly: fe, loading: A, icon: j, iconPosition: pe, invalid: M, valid: me, floating: he, multiple: N } = w(a), P = Me(k), F = x(() => `${P.value}-hint`), I = x(() => a.disabled || a.readonly), L = x(() => I.value ? -1 : a.tabindex), R = x({
504
+ get: () => a.modelValue,
505
505
  set: (e) => {
506
- if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !o.unselectable && b.value)) {
507
- b.value.value = String(o.modelValue);
506
+ if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !a.unselectable && b.value)) {
507
+ b.value.value = String(a.modelValue);
508
508
  return;
509
509
  }
510
- m("update:modelValue", e);
510
+ o("update:modelValue", e);
511
511
  }
512
- }), z = v(() => Array.isArray(R.value) ? R.value.length > 0 : R.value !== void 0 && R.value !== null), B = v(() => !I.value && o.unselectable), ge = ce(b);
513
- f(ge, (e) => {
514
- e && o.autofocus && (k.value = !0);
512
+ }), z = x(() => Array.isArray(R.value) ? R.value.length > 0 : R.value !== void 0 && R.value !== null), B = x(() => !I.value && a.unselectable), ge = le(b);
513
+ p(ge, (e) => {
514
+ e && a.autofocus && (O.value = !0);
515
515
  });
516
- let { hasIconBefore: V, hasIconAfter: H } = De(M, fe), U = v(() => {
517
- if (o.invalid === !0) return !0;
518
- if (o.valid === !0) return !1;
519
- }), W = Ee("vv-select", le, v(() => ({
516
+ let { hasIconBefore: V, hasIconAfter: H } = De(j, pe), U = x(() => {
517
+ if (a.invalid === !0) return !0;
518
+ if (a.valid === !0) return !1;
519
+ }), W = Ee("vv-select", ue, x(() => ({
520
520
  valid: me.value,
521
- invalid: pe.value,
522
- loading: j.value,
523
- disabled: ue.value,
524
- readonly: de.value,
521
+ invalid: M.value,
522
+ loading: A.value,
523
+ disabled: de.value,
524
+ readonly: fe.value,
525
525
  "icon-before": V.value !== void 0,
526
526
  "icon-after": H.value !== void 0,
527
527
  dirty: z.value,
528
- focus: k.value && !I.value,
528
+ focus: O.value && !I.value,
529
529
  floating: he.value,
530
530
  multiple: N.value
531
- }))), { getOptionLabel: G, getOptionValue: K, isOptionDisabled: q, getOptionGrouped: J } = Ne(o);
532
- f(() => o.options, (e) => {
533
- if (e?.length && o.autoselectFirst && !z.value) {
531
+ }))), { getOptionLabel: G, getOptionValue: K, isOptionDisabled: q, getOptionGrouped: J } = Ne(a);
532
+ p(() => a.options, (e) => {
533
+ if (e?.length && a.autoselectFirst && !z.value) {
534
534
  let t = K(e[0]);
535
- R.value = o.multiple ? [t] : t;
535
+ R.value = a.multiple ? [t] : t;
536
536
  }
537
537
  }, { immediate: !0 });
538
538
  function Y() {
539
- Array.isArray(R.value) ? R.value = [] : R.value = void 0, m("clear");
539
+ Array.isArray(R.value) ? R.value = [] : R.value = void 0, o("clear");
540
540
  }
541
- let X = v(() => ({
542
- name: o.name,
541
+ let X = x(() => ({
542
+ name: a.name,
543
543
  tabindex: L.value,
544
544
  disabled: I.value,
545
- required: o.required,
546
- size: o.size,
547
- autocomplete: o.autocomplete,
548
- multiple: o.multiple,
545
+ required: a.required,
546
+ size: a.size,
547
+ autocomplete: a.autocomplete,
548
+ multiple: a.multiple,
549
549
  "aria-invalid": U.value,
550
- "aria-describedby": C.value ? F.value : void 0,
551
- "aria-errormessage": D.value ? F.value : void 0
552
- })), Z = v(() => ({
553
- valid: o.valid,
554
- invalid: o.invalid,
555
- modelValue: o.modelValue
550
+ "aria-describedby": oe.value ? F.value : void 0,
551
+ "aria-errormessage": E.value ? F.value : void 0
552
+ })), Z = x(() => ({
553
+ valid: a.valid,
554
+ invalid: a.invalid,
555
+ modelValue: a.modelValue
556
556
  }));
557
- return (e, n) => (c(), T("div", { class: i(w(W)) }, [
558
- e.label ? (c(), T("label", {
557
+ return (t, r) => (s(), C("div", { class: u(h(W)) }, [
558
+ t.label ? (s(), C("label", {
559
559
  key: 0,
560
- for: w(P)
561
- }, x(e.label), 9, Pe)) : S("v-if", !0),
562
- _("div", Fe, [
563
- e.$slots.before ? (c(), T("div", Ie, [d(e.$slots, "before", u(r(w(Z))))])) : S("v-if", !0),
564
- _("div", Le, [
565
- w(V) ? (c(), p($, s({ key: 0 }, w(V), { class: "vv-select__icon" }), null, 16)) : S("v-if", !0),
566
- oe(_("select", s({
567
- id: w(P),
560
+ for: h(P)
561
+ }, f(t.label), 9, Pe)) : m("v-if", !0),
562
+ v("div", Fe, [
563
+ t.$slots.before ? (s(), C("div", Ie, [n(t.$slots, "before", i(d(h(Z))))])) : m("v-if", !0),
564
+ v("div", Le, [
565
+ h(V) ? (s(), _($, c({ key: 0 }, h(V), { class: "vv-select__icon" }), null, 16)) : m("v-if", !0),
566
+ te(v("select", c({
567
+ id: h(P),
568
568
  ref_key: "selectEl",
569
569
  ref: b
570
- }, w(X), { "onUpdate:modelValue": n[0] ||= (e) => ne(R) ? R.value = e : null }), [e.placeholder ? (c(), T("option", {
570
+ }, h(X), { "onUpdate:modelValue": r[0] ||= (e) => ee(R) ? R.value = e : null }), [t.placeholder ? (s(), C("option", {
571
571
  key: 0,
572
572
  value: void 0,
573
- disabled: !w(B),
574
- hidden: !w(B)
575
- }, x(e.placeholder), 9, ze)) : S("v-if", !0), (c(!0), T(g, null, t(e.options, (e, n) => (c(), T(g, null, [se(e) ? (c(), T("optgroup", {
576
- key: `group-${n}`,
577
- disabled: w(q)(e),
578
- label: w(G)(e)
579
- }, [(c(!0), T(g, null, t(w(J)(e), (e, t) => (c(), T("option", {
580
- key: `group-${n}-item-${t}`,
581
- disabled: w(q)(e),
582
- value: w(K)(e)
583
- }, x(w(G)(e)), 9, He))), 128))], 8, Ve)) : (c(), T("option", {
584
- key: n,
585
- disabled: w(q)(e),
586
- value: w(K)(e)
587
- }, x(w(G)(e)), 9, Be))], 64))), 256))], 16, Re), [[ae, w(R)]]),
588
- w(H) ? (c(), p($, s({ key: 1 }, w(H), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : S("v-if", !0)
573
+ disabled: !h(B),
574
+ hidden: !h(B)
575
+ }, f(t.placeholder), 9, ze)) : m("v-if", !0), (s(!0), C(g, null, T(t.options, (e, t) => (s(), C(g, null, [ce(e) ? (s(), C("optgroup", {
576
+ key: `group-${t}`,
577
+ disabled: h(q)(e),
578
+ label: h(G)(e)
579
+ }, [(s(!0), C(g, null, T(h(J)(e), (e, n) => (s(), C("option", {
580
+ key: `group-${t}-item-${n}`,
581
+ disabled: h(q)(e),
582
+ value: h(K)(e)
583
+ }, f(h(G)(e)), 9, He))), 128))], 8, Ve)) : (s(), C("option", {
584
+ key: t,
585
+ disabled: h(q)(e),
586
+ value: h(K)(e)
587
+ }, f(h(G)(e)), 9, Be))], 64))), 256))], 16, Re), [[ne, h(R)]]),
588
+ h(H) ? (s(), _($, c({ key: 1 }, h(H), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : m("v-if", !0)
589
589
  ]),
590
- w(B) && w(y).showClearAction ? (c(), p(w(Oe), {
590
+ h(B) && h(y).showClearAction ? (s(), _(h(Oe), {
591
591
  key: 1,
592
592
  "input-type": "select",
593
- label: e.labelClear,
594
- icon: e.iconClear,
595
- disabled: !w(z),
593
+ label: t.labelClear,
594
+ icon: t.iconClear,
595
+ disabled: !h(z),
596
596
  onClear: Y
597
597
  }, null, 8, [
598
598
  "label",
599
599
  "icon",
600
600
  "disabled"
601
- ])) : S("v-if", !0),
602
- e.$slots.after ? (c(), T("div", Ue, [d(e.$slots, "after", u(r(w(Z))))])) : S("v-if", !0)
601
+ ])) : m("v-if", !0),
602
+ t.$slots.after ? (s(), C("div", Ue, [n(t.$slots, "after", i(d(h(Z))))])) : m("v-if", !0)
603
603
  ]),
604
- l(w(ie), {
605
- id: w(F),
604
+ ae(h(ie), {
605
+ id: h(F),
606
606
  class: "vv-select__hint"
607
- }, ee({ _: 2 }, [
608
- e.$slots.hint ? {
607
+ }, se({ _: 2 }, [
608
+ t.$slots.hint ? {
609
609
  name: "hint",
610
- fn: h(() => [d(e.$slots, "hint", u(r(w(O))))]),
610
+ fn: e(() => [n(t.$slots, "hint", i(d(h(D))))]),
611
611
  key: "0"
612
612
  } : void 0,
613
- e.$slots.loading ? {
613
+ t.$slots.loading ? {
614
614
  name: "loading",
615
- fn: h(() => [d(e.$slots, "loading", u(r(w(O))))]),
615
+ fn: e(() => [n(t.$slots, "loading", i(d(h(D))))]),
616
616
  key: "1"
617
617
  } : void 0,
618
- e.$slots.valid ? {
618
+ t.$slots.valid ? {
619
619
  name: "valid",
620
- fn: h(() => [d(e.$slots, "valid", u(r(w(O))))]),
620
+ fn: e(() => [n(t.$slots, "valid", i(d(h(D))))]),
621
621
  key: "2"
622
622
  } : void 0,
623
- e.$slots.invalid ? {
623
+ t.$slots.invalid ? {
624
624
  name: "invalid",
625
- fn: h(() => [d(e.$slots, "invalid", u(r(w(O))))]),
625
+ fn: e(() => [n(t.$slots, "invalid", i(d(h(D))))]),
626
626
  key: "3"
627
627
  } : void 0
628
628
  ]), 1032, ["id"])
@@ -632,4 +632,4 @@ var Pe = ["for"], Fe = { class: "vv-select__wrapper" }, Ie = {
632
632
  //#endregion
633
633
  export { We as default };
634
634
 
635
- //# sourceMappingURL=VvSelect.es-BfrDID0e.js.map
635
+ //# sourceMappingURL=VvSelect.es-C244CAei.js.map