@8wave/ai-elements 0.106.0-beta.2 → 0.106.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 (81) hide show
  1. package/dist/_chunks/{PkLazyImg-BoH1s5ni.js → PkLazyImg-Beug40gC.js} +2 -2
  2. package/dist/_chunks/{PkLazyImg-BoH1s5ni.js.map → PkLazyImg-Beug40gC.js.map} +1 -1
  3. package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js → PkToolRequestGeolocation-DUHzWOSe.js} +2 -2
  4. package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js.map → PkToolRequestGeolocation-DUHzWOSe.js.map} +1 -1
  5. package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js → PkToolRequestOAuthConnection-CdtnIiy6.js} +2 -2
  6. package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js.map → PkToolRequestOAuthConnection-CdtnIiy6.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js → PkToolShowArtifact-B0gZZGvT.js} +3 -3
  8. package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js.map → PkToolShowArtifact-B0gZZGvT.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js → PkToolShowCalendarEvent-DpEWSENB.js} +3 -3
  10. package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js.map → PkToolShowCalendarEvent-DpEWSENB.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js → PkToolShowComparison-DkHRpM8n.js} +3 -3
  12. package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js.map → PkToolShowComparison-DkHRpM8n.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js → PkToolShowContactForm-B8YI2e0B.js} +3 -3
  14. package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js.map → PkToolShowContactForm-B8YI2e0B.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js → PkToolShowDiagram-vmSzw6s0.js} +3 -3
  16. package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js.map → PkToolShowDiagram-vmSzw6s0.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js → PkToolShowEmail-BtntDg5l.js} +3 -3
  18. package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js.map → PkToolShowEmail-BtntDg5l.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowForm-CadrjzZx.js → PkToolShowForm-gD0MfOjQ.js} +104 -104
  20. package/dist/_chunks/PkToolShowForm-gD0MfOjQ.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js → PkToolShowImageGallery-DL-bFOKl.js} +2 -2
  22. package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js.map → PkToolShowImageGallery-DL-bFOKl.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js → PkToolShowLocation-DXPAEQCf.js} +3 -3
  24. package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js.map → PkToolShowLocation-DXPAEQCf.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js → PkToolShowMessage-WendSuVW.js} +3 -3
  26. package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js.map → PkToolShowMessage-WendSuVW.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js → PkToolShowProductList-_ULcSOL_.js} +3 -3
  28. package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js.map → PkToolShowProductList-_ULcSOL_.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js → PkToolShowQrCode-BIhYJSTf.js} +3 -3
  30. package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js.map → PkToolShowQrCode-BIhYJSTf.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js → PkToolShowSources-BprUew-i.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js.map → PkToolShowSources-BprUew-i.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js → PkToolShowSuggestedReply-FJMsf1Ft.js} +2 -2
  34. package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js.map → PkToolShowSuggestedReply-FJMsf1Ft.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js → PkToolShowVideo-DXQo_Frk.js} +2 -2
  36. package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js.map → PkToolShowVideo-DXQo_Frk.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js → PkToolShowWeather-Ca-ZrKx3.js} +2 -2
  38. package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js.map → PkToolShowWeather-Ca-ZrKx3.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js → PkToolShowWebPages-DxxqCOav.js} +3 -3
  40. package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js.map → PkToolShowWebPages-DxxqCOav.js.map} +1 -1
  41. package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js → VvCheckboxGroup.es-6rXZzFDs.js} +2 -2
  42. package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js.map → VvCheckboxGroup.es-6rXZzFDs.js.map} +1 -1
  43. package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js → VvCombobox.es-DgB4YbSj.js} +409 -409
  44. package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js.map → VvCombobox.es-DgB4YbSj.js.map} +1 -1
  45. package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js → VvInputText.es-UTEISDKU.js} +181 -181
  46. package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js.map → VvInputText.es-UTEISDKU.js.map} +1 -1
  47. package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js → VvRadioGroup.es-CqMnxRGR.js} +2 -2
  48. package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js.map → VvRadioGroup.es-CqMnxRGR.js.map} +1 -1
  49. package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js → VvSelect.es-BLNrNcIi.js} +6 -6
  50. package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js.map → VvSelect.es-BLNrNcIi.js.map} +1 -1
  51. package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js → VvTextarea.es-ChkbZSw6.js} +296 -296
  52. package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js.map → VvTextarea.es-ChkbZSw6.js.map} +1 -1
  53. package/dist/_chunks/{dist-vbhhaYbZ.js → dist-Dhop5_et.js} +91 -28
  54. package/dist/_chunks/{dist-vbhhaYbZ.js.map → dist-Dhop5_et.js.map} +1 -1
  55. package/dist/_chunks/{index.es-DFq55nZZ.js → index.es-CNKCTfCu.js} +93 -93
  56. package/dist/_chunks/{index.es-DFq55nZZ.js.map → index.es-CNKCTfCu.js.map} +1 -1
  57. package/dist/_chunks/{index.es-DhjFGu5c.js → index.es-DB9_sQvG.js} +16 -16
  58. package/dist/_chunks/{index.es-DhjFGu5c.js.map → index.es-DB9_sQvG.js.map} +1 -1
  59. package/dist/ai-elements.es.js +2334 -2327
  60. package/dist/ai-elements.es.js.map +1 -1
  61. package/dist-vue/PkChatbot.js +1 -1
  62. package/dist-vue/PkChatbotMessages.js +1 -1
  63. package/dist-vue/PkChatbotViewChat.js +1 -1
  64. package/dist-vue/_chunks/{PkChatbot-a8Wh4tN4.js → PkChatbot-i_07-rvf.js} +76 -68
  65. package/dist-vue/_chunks/PkChatbot-i_07-rvf.js.map +1 -0
  66. package/dist-vue/_chunks/PkChatbotEmptyState-C7W0QgqW.js.map +1 -1
  67. package/dist-vue/_chunks/{PkChatbotMessages-D6rNh6PF.js → PkChatbotMessages-CZLj_OeK.js} +4 -4
  68. package/dist-vue/_chunks/PkChatbotMessages-CZLj_OeK.js.map +1 -0
  69. package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js → PkChatbotViewChat-B6MfjQIa.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js.map → PkChatbotViewChat-B6MfjQIa.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js → PkToolShowDiagram-D7jh-yIc.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js.map → PkToolShowDiagram-D7jh-yIc.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowForm-CJtmt5yd.js → PkToolShowForm-BGp_gbtr.js} +54 -54
  74. package/dist-vue/_chunks/PkToolShowForm-BGp_gbtr.js.map +1 -0
  75. package/dist-vue/index.js +8 -8
  76. package/dist-vue/style.css +1 -1
  77. package/package.json +1 -1
  78. package/dist/_chunks/PkToolShowForm-CadrjzZx.js.map +0 -1
  79. package/dist-vue/_chunks/PkChatbot-a8Wh4tN4.js.map +0 -1
  80. package/dist-vue/_chunks/PkChatbotMessages-D6rNh6PF.js.map +0 -1
  81. package/dist-vue/_chunks/PkToolShowForm-CJtmt5yd.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, L as c, M as l, N as u, O as d, Q as f, R as p, St as ee, T as m, Tt as h, U as te, W as ne, X as g, _, b as re, bt as v, c as ie, ct as y, d as ae, et as oe, g as b, h as x, it as se, k as S, m as C, pt as w, q as ce, r as le, s as T, t as ue, u as de, ut as fe, v as E, vt as D, wt as pe, x as me, xt as he, y as ge, yt as O, z as k } from "./vue.runtime.esm-bundler-D6KKITU0.js";
2
2
  import { a as A, i as _e, t as ve } from "./iconify-tggsk9QV.js";
3
- import { c as ye, d as be, l as xe, m as Se, n as Ce, o as j, p as M, r as N, s as we } from "./dist-vbhhaYbZ.js";
4
- import { a as Te, c as P, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me } from "./floating-ui.vue-DYDaUjxz.js";
3
+ import { c as ye, f as be, h as xe, l as j, m as Se, n as Ce, o as M, r as N, u as P } from "./dist-Dhop5_et.js";
4
+ import { a as we, c as F, i as Te, l as Ee, n as De, o as Oe, r as ke, s as Ae, t as je } from "./floating-ui.vue-DYDaUjxz.js";
5
5
  //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.20_@json-render+core@0.19.0_zod@4.5.4__@volverjs+style@0.1.27_@vue_f2b5a47152e93c3451249216f4e73d36/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
6
6
  d(), le(), se(), he();
7
- var Ne = {
7
+ var Me = {
8
8
  showPassword: "eye-on",
9
9
  hidePassword: "eye-off",
10
10
  showDatePicker: "calendar",
@@ -15,27 +15,27 @@ var Ne = {
15
15
  remove: "trash",
16
16
  edit: "edit",
17
17
  download: "download"
18
- }, Pe = { prefix: "normal" }, F = /* @__PURE__ */ (function(e) {
18
+ }, Ne = { prefix: "normal" }, I = /* @__PURE__ */ (function(e) {
19
19
  return e.local = "local", e.session = "session", e;
20
- })({}), I = /* @__PURE__ */ (function(e) {
21
- return e.absolute = "absolute", e.fixed = "fixed", e;
22
20
  })({}), L = /* @__PURE__ */ (function(e) {
23
- return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
21
+ return e.absolute = "absolute", e.fixed = "fixed", e;
24
22
  })({}), R = /* @__PURE__ */ (function(e) {
25
- return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
23
+ return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
26
24
  })({}), z = /* @__PURE__ */ (function(e) {
27
- return e.before = "before", e.after = "after", e;
25
+ return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
28
26
  })({}), B = /* @__PURE__ */ (function(e) {
29
- return e.button = "button", e.submit = "submit", e.reset = "reset", e;
27
+ return e.before = "before", e.after = "after", e;
30
28
  })({}), V = /* @__PURE__ */ (function(e) {
31
- return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
29
+ return e.button = "button", e.submit = "submit", e.reset = "reset", e;
32
30
  })({}), H = /* @__PURE__ */ (function(e) {
33
- return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
31
+ return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
34
32
  })({}), U = /* @__PURE__ */ (function(e) {
35
- return e.listbox = "listbox", e.menu = "menu", e;
33
+ return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
36
34
  })({}), W = /* @__PURE__ */ (function(e) {
35
+ return e.listbox = "listbox", e.menu = "menu", e;
36
+ })({}), G = /* @__PURE__ */ (function(e) {
37
37
  return e.option = "option", e.presentation = "presentation", e;
38
- })({}), G = /* @__PURE__ */ Symbol.for("volver"), Fe = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ie = /* @__PURE__ */ Symbol.for("dropdownItem"), K = /* @__PURE__ */ Symbol.for("dropdownAction"), q = {
38
+ })({}), K = /* @__PURE__ */ Symbol.for("volver"), Pe = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Fe = /* @__PURE__ */ Symbol.for("dropdownItem"), q = /* @__PURE__ */ Symbol.for("dropdownAction"), J = {
39
39
  to: { type: [String, Object] },
40
40
  href: String,
41
41
  target: String,
@@ -43,7 +43,7 @@ var Ne = {
43
43
  type: String,
44
44
  default: "noopener noreferrer"
45
45
  }
46
- }, Le = {
46
+ }, Ie = {
47
47
  valid: {
48
48
  type: Boolean,
49
49
  default: !1
@@ -52,7 +52,7 @@ var Ne = {
52
52
  type: [String, Array],
53
53
  default: void 0
54
54
  }
55
- }, Re = {
55
+ }, Le = {
56
56
  invalid: {
57
57
  type: Boolean,
58
58
  default: !1
@@ -61,7 +61,7 @@ var Ne = {
61
61
  type: [String, Array],
62
62
  default: void 0
63
63
  }
64
- }, J = {
64
+ }, Y = {
65
65
  loading: {
66
66
  type: Boolean,
67
67
  default: !1
@@ -70,39 +70,39 @@ var Ne = {
70
70
  type: String,
71
71
  default: "Loading..."
72
72
  }
73
- }, Y = { disabled: {
73
+ }, X = { disabled: {
74
74
  type: Boolean,
75
75
  default: !1
76
- } }, ze = { required: {
76
+ } }, Re = { required: {
77
77
  type: Boolean,
78
78
  default: !1
79
- } }, Be = { selected: {
79
+ } }, ze = { selected: {
80
80
  type: Boolean,
81
81
  default: !1
82
- } }, Ve = { active: {
82
+ } }, Be = { active: {
83
83
  type: Boolean,
84
84
  default: !1
85
- } }, He = { current: {
85
+ } }, Ve = { current: {
86
86
  type: Boolean,
87
87
  default: !1
88
88
  } };
89
- Ne.clear;
90
- var Ue = { pressed: {
89
+ Me.clear;
90
+ var He = { pressed: {
91
91
  type: Boolean,
92
92
  default: !1
93
- } }, X = { label: {
93
+ } }, Z = { label: {
94
94
  type: [String, Number],
95
95
  default: void 0
96
- } }, We = { readonly: {
96
+ } }, Ue = { readonly: {
97
97
  type: Boolean,
98
98
  default: !1
99
- } }, Z = { modifiers: {
99
+ } }, Q = { modifiers: {
100
100
  type: [String, Array],
101
101
  default: void 0
102
- } }, Ge = { hintLabel: {
102
+ } }, We = { hintLabel: {
103
103
  type: String,
104
104
  default: ""
105
- } }, Ke = {
105
+ } }, Ge = {
106
106
  options: {
107
107
  type: Array,
108
108
  default: () => []
@@ -119,7 +119,7 @@ var Ue = { pressed: {
119
119
  type: [String, Function],
120
120
  default: "disabled"
121
121
  }
122
- }, qe = { count: {
122
+ }, Ke = { count: {
123
123
  type: [Boolean, String],
124
124
  default: !1,
125
125
  validator: (e) => [
@@ -128,38 +128,38 @@ var Ue = { pressed: {
128
128
  "limit",
129
129
  "countdown"
130
130
  ].includes(e)
131
- } }, Je = { debounce: {
131
+ } }, qe = { debounce: {
132
132
  type: [Number, String],
133
133
  default: void 0
134
- } }, Ye = {
134
+ } }, Je = {
135
135
  icon: {
136
136
  type: [String, Object],
137
137
  default: void 0
138
138
  },
139
139
  iconPosition: {
140
140
  type: String,
141
- default: z.before,
142
- validation: (e) => Object.values(z).includes(e)
141
+ default: B.before,
142
+ validation: (e) => Object.values(B).includes(e)
143
143
  }
144
- }, Xe = { tabindex: {
144
+ }, Ye = { tabindex: {
145
145
  type: [String, Number],
146
146
  default: 0
147
- } }, Ze = { floating: {
147
+ } }, Xe = { floating: {
148
148
  type: Boolean,
149
149
  default: !1
150
- } }, Qe = { unselectable: {
150
+ } }, Ze = { unselectable: {
151
151
  type: Boolean,
152
152
  default: !0
153
- } }, $e = { id: [String, Number] }, et = {
153
+ } }, Qe = { id: [String, Number] }, $e = {
154
154
  placement: {
155
155
  type: String,
156
- default: L.bottom,
157
- validator: (e) => Object.values(L).includes(e) || Object.values(R).includes(e)
156
+ default: R.bottom,
157
+ validator: (e) => Object.values(R).includes(e) || Object.values(z).includes(e)
158
158
  },
159
159
  strategy: {
160
160
  type: String,
161
161
  default: void 0,
162
- validator: (e) => Object.values(I).includes(e)
162
+ validator: (e) => Object.values(L).includes(e)
163
163
  },
164
164
  transitionName: {
165
165
  type: String,
@@ -209,35 +209,35 @@ var Ue = { pressed: {
209
209
  type: Boolean,
210
210
  default: !1
211
211
  }
212
- }, tt = {
213
- ...$e,
212
+ }, et = {
213
+ ...Qe,
214
214
  name: {
215
215
  type: String,
216
216
  required: !0
217
217
  }
218
- }, nt = { autofocus: {
218
+ }, tt = { autofocus: {
219
219
  type: Boolean,
220
220
  default: !1
221
- } }, rt = { autocomplete: {
221
+ } }, nt = { autocomplete: {
222
222
  type: String,
223
223
  default: "off"
224
- } }, it = {
224
+ } }, rt = {
225
+ ...et,
225
226
  ...tt,
226
227
  ...nt,
227
- ...rt,
228
- ...Xe,
229
- ...Y,
230
- ...We,
228
+ ...Ye,
229
+ ...X,
230
+ ...Ue,
231
+ ...Ie,
231
232
  ...Le,
232
- ...Re,
233
- ...Ge,
234
- ...J,
235
- ...Z,
233
+ ...We,
234
+ ...Y,
235
+ ...Q,
236
+ ...Ke,
236
237
  ...qe,
237
238
  ...Je,
238
- ...Ye,
239
- ...Ze,
240
- ...X,
239
+ ...Xe,
240
+ ...Z,
241
241
  minlength: {
242
242
  type: [String, Number],
243
243
  default: void 0
@@ -250,62 +250,62 @@ var Ue = { pressed: {
250
250
  type: String,
251
251
  default: void 0
252
252
  },
253
- ...ze
253
+ ...Re
254
254
  };
255
255
  ({
256
- ...tt,
257
- ...Xe,
256
+ ...et,
257
+ ...Ye,
258
+ ...Ie,
258
259
  ...Le,
259
- ...Re,
260
- ...Ge,
261
- ...Y,
262
260
  ...We,
263
- ...Z,
264
261
  ...X,
265
- ...J
262
+ ...Ue,
263
+ ...Q,
264
+ ...Z,
265
+ ...Y
266
266
  }), {
267
+ ...Ie,
267
268
  ...Le,
268
- ...Re,
269
- ...Ke,
270
269
  ...Ge,
271
- ...Y,
272
270
  ...We,
273
- ...Z,
274
271
  ...X,
275
- ...J,
276
- ...ze
277
- }, {
272
+ ...Ue,
273
+ ...Q,
274
+ ...Z,
278
275
  ...Y,
276
+ ...Re
277
+ }, {
279
278
  ...X,
280
- ...Ue,
281
- ...Ve,
279
+ ...Z,
282
280
  ...He,
283
- ...q
284
- }, B.button, V.button;
285
- var at = {
281
+ ...Be,
282
+ ...Ve,
283
+ ...J
284
+ }, V.button, H.button;
285
+ var it = {
286
286
  storageType: {
287
287
  type: String,
288
- default: F.local,
289
- validator: (e) => Object.values(F).includes(e)
288
+ default: I.local,
289
+ validator: (e) => Object.values(I).includes(e)
290
290
  },
291
291
  storageKey: String
292
- }, ot = {
292
+ }, at = {
293
293
  hard: "hard",
294
294
  soft: "soft"
295
- }, st = {
295
+ }, ot = {
296
296
  true: !0,
297
297
  false: !1,
298
298
  default: "default"
299
- }, ct = [
299
+ }, st = [
300
300
  "update:modelValue",
301
301
  "focus",
302
302
  "blur",
303
303
  "keyup",
304
304
  "suggestion:selected",
305
305
  "suggestion:removed"
306
- ], lt = {
306
+ ], ct = {
307
+ ...rt,
307
308
  ...it,
308
- ...at,
309
309
  modelValue: String,
310
310
  cols: {
311
311
  type: [String, Number],
@@ -317,15 +317,15 @@ var at = {
317
317
  },
318
318
  wrap: {
319
319
  type: String,
320
- default: ot.soft
320
+ default: at.soft
321
321
  },
322
322
  spellcheck: {
323
323
  type: [Boolean, String],
324
- default: st.default
324
+ default: ot.default
325
325
  },
326
326
  iconRemoveSuggestion: {
327
327
  type: [String, Object],
328
- default: Ne.remove
328
+ default: Me.remove
329
329
  },
330
330
  labelRemoveSuggestion: {
331
331
  type: String,
@@ -340,19 +340,19 @@ var at = {
340
340
  default: !1
341
341
  },
342
342
  resizable: Boolean,
343
- topLayer: et.topLayer
343
+ topLayer: $e.topLayer
344
344
  };
345
- function Q(e) {
345
+ function $(e) {
346
346
  return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(e));
347
347
  }
348
- function ut(e) {
348
+ function lt(e) {
349
349
  return typeof e == "string";
350
350
  }
351
- function dt(e) {
352
- return Array.isArray(e) ? e.filter((e) => ut(e)).join(" ") : e;
351
+ function ut(e) {
352
+ return Array.isArray(e) ? e.filter((e) => lt(e)).join(" ") : e;
353
353
  }
354
- function ft(e, t) {
355
- let n = C(() => y(e) ? e.value : e), i = C(() => dt(n.value.invalidLabel)), o = C(() => dt(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
354
+ function dt(e, t) {
355
+ let n = C(() => y(e) ? e.value : e), i = C(() => ut(n.value.invalidLabel)), o = C(() => ut(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
356
356
  return {
357
357
  hasInvalidLabelOrSlot: u,
358
358
  hasHintLabelOrSlot: f,
@@ -393,10 +393,10 @@ function ft(e, t) {
393
393
  })
394
394
  };
395
395
  }
396
- var pt = {
396
+ var ft = {
397
+ ...Qe,
397
398
  ...$e,
398
- ...et,
399
- ...Z,
399
+ ...Q,
400
400
  modelValue: {
401
401
  type: Boolean,
402
402
  default: void 0
@@ -407,17 +407,17 @@ var pt = {
407
407
  },
408
408
  role: {
409
409
  type: String,
410
- default: U.menu,
411
- validator: (e) => Object.values(U).includes(e)
410
+ default: W.menu,
411
+ validator: (e) => Object.values(W).includes(e)
412
412
  }
413
- }, mt = { focusOnHover: {
413
+ }, pt = { focusOnHover: {
414
414
  type: Boolean,
415
415
  default: !1
416
- } }, ht = {
417
- ...Y,
418
- ...Be,
419
- ...Qe,
420
- ...Z,
416
+ } }, mt = {
417
+ ...X,
418
+ ...ze,
419
+ ...Ze,
420
+ ...Q,
421
421
  deselectHintLabel: { type: String },
422
422
  selectHintLabel: { type: String },
423
423
  selectedHintLabel: { type: String },
@@ -426,10 +426,10 @@ var pt = {
426
426
  default: !1
427
427
  }
428
428
  };
429
- function gt(e) {
429
+ function ht(e) {
430
430
  return C(() => String(e?.value || s()));
431
431
  }
432
- function _t(e, t) {
432
+ function gt(e, t) {
433
433
  let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && O(t)), i = C(() => r.value ? "manual" : void 0);
434
434
  function a() {
435
435
  return (n && e.value?.matches(":popover-open")) ?? !1;
@@ -451,14 +451,14 @@ function _t(e, t) {
451
451
  hide: s
452
452
  };
453
453
  }
454
- function vt({ reference: e, id: t, expanded: n, aria: i }) {
455
- let o = De();
454
+ function _t({ reference: e, id: t, expanded: n, aria: i }) {
455
+ let o = Ee();
456
456
  return {
457
457
  bus: o,
458
458
  component: r({
459
459
  name: "VvDropdownTriggerProvider",
460
460
  setup() {
461
- p(Fe, {
461
+ p(Pe, {
462
462
  reference: e,
463
463
  id: t,
464
464
  expanded: n,
@@ -472,20 +472,20 @@ function vt({ reference: e, id: t, expanded: n, aria: i }) {
472
472
  })
473
473
  };
474
474
  }
475
- function yt({ role: e, ...t }) {
476
- let n = C(() => e.value === U.listbox ? W.option : W.presentation);
477
- return p(Ie, {
475
+ function vt({ role: e, ...t }) {
476
+ let n = C(() => e.value === W.listbox ? G.option : G.presentation);
477
+ return p(Fe, {
478
478
  role: n,
479
479
  ...t
480
480
  }), { itemRole: n };
481
481
  }
482
- function bt({ expanded: e }) {
483
- p(K, {
484
- role: w(H.menuitem),
482
+ function yt({ expanded: e }) {
483
+ p(q, {
484
+ role: w(U.menuitem),
485
485
  expanded: e
486
486
  });
487
487
  }
488
- function $(e, t, n) {
488
+ function bt(e, t, n) {
489
489
  return C(() => {
490
490
  let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
491
491
  return i && Array.isArray(i) && i.forEach((t) => {
@@ -503,7 +503,7 @@ var xt = ["popover"], St = [
503
503
  ], Ct = /* @__PURE__ */ r({
504
504
  name: "VvDropdown",
505
505
  inheritAttrs: !1,
506
- props: pt,
506
+ props: ft,
507
507
  emits: [
508
508
  "update:modelValue",
509
509
  "beforeEnter",
@@ -522,12 +522,12 @@ var xt = ["popover"], St = [
522
522
  "leaveCancelled"
523
523
  ],
524
524
  setup(t, { expose: r, emit: a }) {
525
- let s = t, d = a, { id: p } = D(s), h = gt(p), re = ne(), y = w("auto"), b = w("auto"), se = w(), S = w(), ce = w(), le = w(), T = C({
525
+ let s = t, d = a, { id: p } = D(s), h = ht(p), re = ne(), y = w("auto"), b = w("auto"), se = w(), S = w(), ce = w(), le = w(), T = C({
526
526
  get: () => s.reference ?? se.value,
527
527
  set: (e) => {
528
528
  se.value = e;
529
529
  }
530
- }), { isTopLayer: de, popover: fe, show: he, hide: ge } = _t(S, () => s.topLayer), O = C(() => de.value ? I.fixed : s.strategy), k = w(!1);
530
+ }), { isTopLayer: de, popover: fe, show: he, hide: ge } = gt(S, () => s.topLayer), O = C(() => de.value ? L.fixed : s.strategy), k = w(!1);
531
531
  o(() => {
532
532
  be(S.value, () => {
533
533
  k.value = globalThis.getComputedStyle(S.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
@@ -541,114 +541,114 @@ var xt = ["popover"], St = [
541
541
  }
542
542
  let _e = C(() => {
543
543
  let e = [];
544
- if (s.autoPlacement ? e.push(A(s.autoPlacement, () => Ae(), (e) => Ae(e))) : s.flip && e.push(A(s.flip, () => Te({ fallbackStrategy: "initialPlacement" }), (e) => Te(e))), s.shift && e.push(A(s.shift, () => je(), (e) => je(e))), s.size) {
544
+ if (s.autoPlacement ? e.push(A(s.autoPlacement, () => ke(), (e) => ke(e))) : s.flip && e.push(A(s.flip, () => we({ fallbackStrategy: "initialPlacement" }), (e) => we(e))), s.shift && e.push(A(s.shift, () => Ae(), (e) => Ae(e))), s.size) {
545
545
  let t = ({ availableWidth: e, availableHeight: t }) => {
546
546
  y.value = `${e}px`, b.value = `${t}px`;
547
547
  };
548
- e.push(A(s.size, () => P({ apply: t }), (e) => P({
548
+ e.push(A(s.size, () => F({ apply: t }), (e) => F({
549
549
  ...e,
550
550
  apply: t
551
551
  })));
552
552
  }
553
- return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? ke(Number(s.offset)) : ke(s.offset)), s.arrow && e.push(Me({ element: ce })), e;
554
- }), { x: ve, y: ye, middlewareData: M, placement: we, strategy: De } = Oe(T, S, {
555
- whileElementsMounted: (...e) => Ee(...e, { animationFrame: O.value === I.fixed }),
553
+ return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? Oe(Number(s.offset)) : Oe(s.offset)), s.arrow && e.push(je({ element: ce })), e;
554
+ }), { x: ve, y: ye, middlewareData: j, placement: Se, strategy: Ee } = De(T, S, {
555
+ whileElementsMounted: (...e) => Te(...e, { animationFrame: O.value === L.fixed }),
556
556
  placement: C(() => s.placement),
557
557
  strategy: O,
558
558
  middleware: _e
559
- }), Ne = C(() => {
559
+ }), Me = C(() => {
560
560
  if (k.value) return;
561
561
  let e = s.triggerWidth && T.value ? `${T.value?.offsetWidth}px` : void 0;
562
562
  return {
563
- position: De.value,
563
+ position: Ee.value,
564
564
  top: `${ye.value ?? 0}px`,
565
565
  left: `${ve.value ?? 0}px`,
566
566
  maxWidth: e ? void 0 : y.value,
567
567
  maxHeight: b.value,
568
568
  width: e
569
569
  };
570
- }), Pe = C(() => we.value.split("-")[0]), F = C(() => {
570
+ }), Ne = C(() => Se.value.split("-")[0]), I = C(() => {
571
571
  if (k.value) return;
572
572
  let e = {
573
- [L.top]: L.bottom,
574
- [L.right]: L.left,
575
- [L.bottom]: L.top,
576
- [L.left]: L.right
577
- }[Pe.value];
573
+ [R.top]: R.bottom,
574
+ [R.right]: R.left,
575
+ [R.bottom]: R.top,
576
+ [R.left]: R.right
577
+ }[Ne.value];
578
578
  return {
579
- left: M.value.arrow?.x === void 0 ? void 0 : `${M.value.arrow?.x}px`,
580
- top: M.value.arrow?.y === void 0 ? void 0 : `${M.value.arrow?.y}px`,
579
+ left: j.value.arrow?.x === void 0 ? void 0 : `${j.value.arrow?.x}px`,
580
+ top: j.value.arrow?.y === void 0 ? void 0 : `${j.value.arrow?.y}px`,
581
581
  [e]: `${-(ce.value?.offsetWidth ?? 0) / 2}px`
582
582
  };
583
- }), R = Se(s, "modelValue", d), z = w(!1), B = C({
584
- get: () => R.value ?? z.value,
583
+ }), z = xe(s, "modelValue", d), B = w(!1), V = C({
584
+ get: () => z.value ?? B.value,
585
585
  set: (e) => {
586
- if (R.value === void 0) {
587
- z.value = e;
586
+ if (z.value === void 0) {
587
+ B.value = e;
588
588
  return;
589
589
  }
590
- R.value = e;
590
+ z.value = e;
591
591
  }
592
592
  });
593
593
  f(() => {
594
- B.value && he();
594
+ V.value && he();
595
595
  });
596
- function V() {
597
- B.value = !0;
598
- }
599
596
  function H() {
600
- B.value = !1;
597
+ V.value = !0;
601
598
  }
602
599
  function U() {
603
- B.value = !B.value;
600
+ V.value = !1;
604
601
  }
605
- function W(e) {
602
+ function W() {
603
+ V.value = !V.value;
604
+ }
605
+ function G(e) {
606
606
  T.value = e;
607
607
  }
608
608
  Ce(S, () => {
609
- !s.keepOpen && B.value && (B.value = !1);
609
+ !s.keepOpen && V.value && (V.value = !1);
610
610
  }, { ignore: [T] });
611
- let G = C(() => T.value?.getAttribute?.("id") ?? void 0), Fe = C(() => ({
611
+ let K = C(() => T.value?.getAttribute?.("id") ?? void 0), Pe = C(() => ({
612
612
  "aria-controls": h.value,
613
613
  "aria-haspopup": !0,
614
- "aria-expanded": B.value
615
- })), { component: Ie, bus: K } = vt({
614
+ "aria-expanded": V.value
615
+ })), { component: Fe, bus: q } = _t({
616
616
  reference: T,
617
617
  id: h,
618
- expanded: B,
619
- aria: Fe
618
+ expanded: V,
619
+ aria: Pe
620
620
  });
621
- K.on("click", U);
622
- let { role: q, modifiers: Le } = D(s), Re = $("vv-dropdown", Le, C(() => ({ arrow: s.arrow }))), { focused: J } = xe(S);
623
- function Y(e) {
621
+ q.on("click", W);
622
+ let { role: J, modifiers: Ie } = D(s), Le = bt("vv-dropdown", Ie, C(() => ({ arrow: s.arrow }))), { focused: Y } = P(S);
623
+ function X(e) {
624
624
  return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
625
625
  }
626
- function ze() {
626
+ function Re() {
627
627
  u(() => {
628
- let e = Y(S.value);
628
+ let e = X(S.value);
629
629
  e.length > 0 && e[0].focus({ preventScroll: !0 });
630
630
  });
631
631
  }
632
- function Be() {
632
+ function ze() {
633
633
  u(() => {
634
- let e = Y(le.value);
634
+ let e = X(le.value);
635
635
  e.length > 0 && e[0].focus({ preventScroll: !0 });
636
636
  });
637
637
  }
638
- function Ve() {
638
+ function Be() {
639
639
  u(() => {
640
- if (J.value) {
641
- let e = Y(S.value);
640
+ if (Y.value) {
641
+ let e = X(S.value);
642
642
  if (e.length === 0 || !document.activeElement) return;
643
643
  let t = e.indexOf(document.activeElement);
644
644
  t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
645
645
  }
646
646
  });
647
647
  }
648
- function He() {
648
+ function Ve() {
649
649
  u(() => {
650
- if (J.value) {
651
- let e = Y(S.value);
650
+ if (Y.value) {
651
+ let e = X(S.value);
652
652
  if (e.length === 0 || !document.activeElement) return;
653
653
  let t = e.indexOf(document.activeElement);
654
654
  if (t > 0) {
@@ -659,41 +659,41 @@ var xt = ["popover"], St = [
659
659
  }
660
660
  });
661
661
  }
662
- g(B, (e) => {
663
- e && s.autofocusFirst && ze();
662
+ g(V, (e) => {
663
+ e && s.autofocusFirst && Re();
664
664
  }), r({
665
- toggle: U,
666
- show: V,
667
- hide: H,
668
- init: W,
669
- focusFirst: ze,
670
- focusFirstListElement: Be,
671
- focusNext: Ve,
672
- focusPrev: He,
665
+ toggle: W,
666
+ show: H,
667
+ hide: U,
668
+ init: G,
669
+ focusFirst: Re,
670
+ focusFirstListElement: ze,
671
+ focusNext: Be,
672
+ focusPrev: Ve,
673
673
  customPosition: k
674
674
  });
675
- let { itemRole: Ue } = yt({
676
- role: q,
677
- expanded: B,
678
- focused: J,
679
- hovered: j(S)
675
+ let { itemRole: He } = vt({
676
+ role: J,
677
+ expanded: V,
678
+ focused: Y,
679
+ hovered: M(S)
680
680
  });
681
681
  N("Escape", (e) => {
682
- B.value && (e.preventDefault(), H());
682
+ V.value && (e.preventDefault(), U());
683
683
  }), N("ArrowDown", (e) => {
684
- B.value && J.value && (e.preventDefault(), Ve());
684
+ V.value && Y.value && (e.preventDefault(), Be());
685
685
  }), N("ArrowUp", (e) => {
686
- B.value && J.value && (e.preventDefault(), He());
686
+ V.value && Y.value && (e.preventDefault(), Ve());
687
687
  }), N([" ", "Enter"], (e) => {
688
688
  let t = e.target;
689
- B.value && J.value && t && t?.click();
689
+ V.value && Y.value && t && t?.click();
690
690
  });
691
- let X = {
691
+ let Z = {
692
692
  "before-enter": () => {
693
- d(B.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
693
+ d(V.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
694
694
  },
695
695
  "after-leave": () => {
696
- B.value || ge(), d(B.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
696
+ V.value || ge(), d(V.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
697
697
  },
698
698
  enter: () => {
699
699
  d("enter");
@@ -714,73 +714,73 @@ var xt = ["popover"], St = [
714
714
  d("leaveCancelled");
715
715
  }
716
716
  };
717
- return (t, r) => (c(), E(ae, null, [me(v(Ie), null, {
717
+ return (t, r) => (c(), E(ae, null, [me(v(Fe), null, {
718
718
  default: e(() => [n(t.$slots, "default", i(m({
719
- init: W,
720
- show: V,
721
- hide: H,
722
- toggle: U,
723
- expanded: v(B),
724
- aria: v(Fe)
719
+ init: G,
720
+ show: H,
721
+ hide: U,
722
+ toggle: W,
723
+ expanded: v(V),
724
+ aria: v(Pe)
725
725
  })))]),
726
726
  _: 3
727
- }), me(ue, l({ name: t.transitionName }, te(X), { persisted: "" }), {
727
+ }), me(ue, l({ name: t.transitionName }, te(Z), { persisted: "" }), {
728
728
  default: e(() => [oe(x("div", {
729
729
  ref_key: "floatingEl",
730
730
  ref: S,
731
731
  popover: v(fe),
732
- style: pe(v(Ne)),
733
- class: ee(v(Re))
732
+ style: pe(v(Me)),
733
+ class: ee(v(Le))
734
734
  }, [
735
735
  s.arrow ? (c(), E("div", {
736
736
  key: 0,
737
737
  ref_key: "arrowEl",
738
738
  ref: ce,
739
- style: pe(v(F)),
739
+ style: pe(v(I)),
740
740
  class: "vv-dropdown__arrow"
741
741
  }, null, 4)) : _("v-if", !0),
742
742
  n(t.$slots, "before", i(m({
743
- show: V,
744
- hide: H,
745
- toggle: U,
746
- expanded: v(B)
743
+ show: H,
744
+ hide: U,
745
+ toggle: W,
746
+ expanded: v(V)
747
747
  }))),
748
748
  x("div", l(v(re), {
749
749
  id: v(h),
750
750
  ref_key: "listEl",
751
751
  ref: le,
752
- tabindex: v(B) ? void 0 : -1,
753
- role: v(q),
754
- "aria-labelledby": v(G),
752
+ tabindex: v(V) ? void 0 : -1,
753
+ role: v(J),
754
+ "aria-labelledby": v(K),
755
755
  class: "vv-dropdown__list"
756
756
  }), [n(t.$slots, "items", i(m({
757
- show: V,
758
- hide: H,
759
- toggle: U,
760
- expanded: v(B),
761
- role: v(Ue)
757
+ show: H,
758
+ hide: U,
759
+ toggle: W,
760
+ expanded: v(V),
761
+ role: v(He)
762
762
  })))], 16, St),
763
763
  n(t.$slots, "after", i(m({
764
- show: V,
765
- hide: H,
766
- toggle: U,
767
- expanded: v(B)
764
+ show: H,
765
+ hide: U,
766
+ toggle: W,
767
+ expanded: v(V)
768
768
  })))
769
- ], 14, xt), [[ie, v(B)]])]),
769
+ ], 14, xt), [[ie, v(V)]])]),
770
770
  _: 3
771
771
  }, 16, ["name"])], 64));
772
772
  }
773
773
  });
774
774
  function wt() {
775
- return S(Ie, {});
775
+ return S(Fe, {});
776
776
  }
777
777
  var Tt = /* @__PURE__ */ r({
778
778
  name: "VvDropdownItem",
779
- props: mt,
779
+ props: pt,
780
780
  setup(e) {
781
781
  let t = e, { role: r, expanded: i } = wt(), a = w(null);
782
- bt({ expanded: i });
783
- let o = j(a), { focused: s } = ye(a), { focused: u } = xe(a);
782
+ yt({ expanded: i });
783
+ let o = M(a), { focused: s } = j(a), { focused: u } = P(a);
784
784
  return g(o, (e) => {
785
785
  e && t.focusOnHover && (s.value = !0);
786
786
  }), (e, t) => (c(), E("div", l({ role: v(r) }, {
@@ -791,9 +791,9 @@ var Tt = /* @__PURE__ */ r({
791
791
  }
792
792
  }), Et = ["title"], Dt = /* @__PURE__ */ r({
793
793
  name: "VvDropdownOption",
794
- props: ht,
794
+ props: mt,
795
795
  setup(t) {
796
- let r = t, { modifiers: a } = D(r), o = $("vv-dropdown-option", a, C(() => ({
796
+ let r = t, { modifiers: a } = D(r), o = bt("vv-dropdown-option", a, C(() => ({
797
797
  disabled: r.disabled,
798
798
  selected: r.selected,
799
799
  unselectable: r.unselectable && r.selected
@@ -824,7 +824,7 @@ var Tt = /* @__PURE__ */ r({
824
824
  }
825
825
  });
826
826
  function Ot() {
827
- return S(G, void 0);
827
+ return S(K, void 0);
828
828
  }
829
829
  var kt = /* @__PURE__ */ r({
830
830
  name: "VvIcon",
@@ -845,9 +845,9 @@ var kt = /* @__PURE__ */ r({
845
845
  onLoad: { type: Function },
846
846
  svg: {},
847
847
  modifiers: {}
848
- }, Pe),
848
+ }, Ne),
849
849
  setup(e) {
850
- let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = D(t), o = $("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), u = C(() => {
850
+ let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = D(t), o = bt("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), u = C(() => {
851
851
  let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
852
852
  if (A(n)) return n;
853
853
  let r = i?.iconsCollections.find((t) => {
@@ -941,19 +941,19 @@ function Mt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
941
941
  };
942
942
  }
943
943
  function Nt(e, t) {
944
- let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === z.before ? n.value : void 0), i = C(() => t?.value === z.after ? n.value : void 0);
944
+ let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === B.before ? n.value : void 0), i = C(() => t?.value === B.after ? n.value : void 0);
945
945
  return {
946
946
  hasIcon: n,
947
- hasIconLeft: C(() => t?.value === L.left ? n.value : void 0),
948
- hasIconRight: C(() => t?.value === L.right ? n.value : void 0),
949
- hasIconTop: C(() => t?.value === L.top ? n.value : void 0),
950
- hasIconBottom: C(() => t?.value === L.bottom ? n.value : void 0),
947
+ hasIconLeft: C(() => t?.value === R.left ? n.value : void 0),
948
+ hasIconRight: C(() => t?.value === R.right ? n.value : void 0),
949
+ hasIconTop: C(() => t?.value === R.top ? n.value : void 0),
950
+ hasIconBottom: C(() => t?.value === R.bottom ? n.value : void 0),
951
951
  hasIconBefore: r,
952
952
  hasIconAfter: i
953
953
  };
954
954
  }
955
955
  function Pt(e, t) {
956
- let { focused: n } = ye(e);
956
+ let { focused: n } = j(e);
957
957
  return g(n, (n) => {
958
958
  t(n ? "focus" : "blur", v(e));
959
959
  }), { focused: n };
@@ -966,25 +966,25 @@ function Ft(e, t) {
966
966
  formatted: C(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
967
967
  };
968
968
  }
969
- function It(e, t = F.local, n) {
969
+ function It(e, t = I.local, n) {
970
970
  let r = w();
971
971
  n && (r.value = n);
972
972
  let i;
973
973
  return o(() => {
974
974
  e && g(e, (e, n) => {
975
- let a = v(t) === F.session ? sessionStorage : localStorage;
975
+ let a = v(t) === I.session ? sessionStorage : localStorage;
976
976
  if (n && n !== e && a.removeItem(n), e) {
977
- i = M(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
977
+ i = Se(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
978
978
  return;
979
979
  }
980
980
  i = void 0;
981
981
  }, { immediate: !0 }), y(t) && g(t, (t, n) => {
982
982
  if (e?.value) {
983
983
  if (t) {
984
- let n = t === F.session ? sessionStorage : localStorage;
985
- i = M(e.value, i?.value ?? r.value, n);
984
+ let n = t === I.session ? sessionStorage : localStorage;
985
+ i = Se(e.value, i?.value ?? r.value, n);
986
986
  }
987
- n && n !== t && (n === F.session ? sessionStorage : localStorage).removeItem(e.value);
987
+ n && n !== t && (n === I.session ? sessionStorage : localStorage).removeItem(e.value);
988
988
  }
989
989
  });
990
990
  }), g(r, (e) => {
@@ -1005,58 +1005,58 @@ var Lt = ["for"], Rt = {
1005
1005
  class: "vv-textarea__limit"
1006
1006
  }, Ut = { class: "flex-1" }, Wt = ["title", "onClick"], Gt = /* @__PURE__ */ r({
1007
1007
  name: "VvTextarea",
1008
- props: lt,
1009
- emits: ct,
1008
+ props: ct,
1009
+ emits: st,
1010
1010
  setup(t, { expose: r, emit: a }) {
1011
- let o = t, s = a, u = ce(), d = Ot(), f = jt("VvTextarea", lt, o), p = w(), te = w(), ne = w(), { id: ie, icon: se, iconPosition: S, iconRemoveSuggestion: le, labelRemoveSuggestion: ue, label: fe, modelValue: pe, count: he, valid: O, invalid: A, loading: _e, modifiers: ve, debounce: ye, minlength: be, maxlength: xe, storageType: Se } = D(o), Ce = gt(ie), j = C(() => `${Ce.value}-hint`), M = C(() => o.floating && Q(o.placeholder) ? " " : o.placeholder), { model: N, flush: Te } = Mt(pe, s, ye);
1012
- r({ flush: Te });
1013
- let { hasIconBefore: P, hasIconAfter: Ee } = Nt(se, S), { hasIcon: De } = Nt(le), { focused: Oe } = Pt(p, s), ke = C(() => Oe.value && !o.disabled && !o.readonly);
1014
- g(ke, (e) => {
1015
- let t = N.value;
1016
- if (e || (t = Te() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e && L.value?.size) {
1011
+ let o = t, s = a, u = ce(), d = Ot(), f = jt("VvTextarea", ct, o), p = w(), te = w(), ne = w(), { id: ie, icon: se, iconPosition: S, iconRemoveSuggestion: le, labelRemoveSuggestion: ue, label: fe, modelValue: pe, count: he, valid: O, invalid: A, loading: _e, modifiers: ve, debounce: be, minlength: xe, maxlength: j, storageType: Se } = D(o), Ce = ht(ie), M = C(() => `${Ce.value}-hint`), N = C(() => o.floating && $(o.placeholder) ? " " : o.placeholder), { model: P, flush: we } = Mt(pe, s, be);
1012
+ r({ flush: we });
1013
+ let { hasIconBefore: F, hasIconAfter: Te } = Nt(se, S), { hasIcon: Ee } = Nt(le), { focused: De } = Pt(p, s), Oe = C(() => De.value && !o.disabled && !o.readonly);
1014
+ g(Oe, (e) => {
1015
+ let t = P.value;
1016
+ if (e || (t = we() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e && R.value?.size) {
1017
1017
  ne.value?.show();
1018
1018
  return;
1019
1019
  }
1020
- if (L.value && !Q(t)) {
1020
+ if (R.value && !$(t)) {
1021
1021
  let e = o.maxSuggestions;
1022
- L.value.size >= e && !L.value.has(t) && (L.value = new Set([...L.value].slice(L.value.size - e + 1))), L.value.add(t);
1022
+ R.value.size >= e && !R.value.has(t) && (R.value = new Set([...R.value].slice(R.value.size - e + 1))), R.value.add(t);
1023
1023
  }
1024
1024
  });
1025
- let Ae = we(p);
1026
- g(Ae, (e) => {
1027
- e && o.autofocus && (Oe.value = !0);
1025
+ let ke = ye(p);
1026
+ g(ke, (e) => {
1027
+ e && o.autofocus && (De.value = !0);
1028
1028
  });
1029
- let { formatted: je } = Ft(N, {
1029
+ let { formatted: Ae } = Ft(P, {
1030
1030
  mode: he?.value,
1031
- upperLimit: Number(xe?.value),
1032
- lowerLimit: Number(be?.value)
1033
- }), Me = C(() => !o.disabled && !o.readonly), Ne = C(() => Me.value ? o.tabindex : -1), Pe = C(() => !Q(pe)), F = C(() => {
1031
+ upperLimit: Number(j?.value),
1032
+ lowerLimit: Number(xe?.value)
1033
+ }), je = C(() => !o.disabled && !o.readonly), Me = C(() => je.value ? o.tabindex : -1), Ne = C(() => !$(pe)), I = C(() => {
1034
1034
  if (o.invalid === !0) return !0;
1035
1035
  if (o.valid === !0) return !1;
1036
- }), I = C(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), L = It(I, Se, /* @__PURE__ */ new Set()), R = C(() => L.value ? [...L.value].filter((e) => Q(N.value) || `${e}`.toLowerCase().includes(`${N.value}`.toLowerCase()) && e !== N.value).reverse() : []), z = C(() => I?.value && L.value && L.value.size > 0);
1037
- function B(e) {
1038
- N.value = e, ne.value?.hide(), s("suggestion:selected", e);
1039
- }
1036
+ }), L = C(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), R = It(L, Se, /* @__PURE__ */ new Set()), z = C(() => R.value ? [...R.value].filter((e) => $(P.value) || `${e}`.toLowerCase().includes(`${P.value}`.toLowerCase()) && e !== P.value).reverse() : []), B = C(() => L?.value && R.value && R.value.size > 0);
1040
1037
  function V(e) {
1041
- L.value?.delete(e), s("suggestion:removed", e);
1038
+ P.value = e, ne.value?.hide(), s("suggestion:selected", e);
1039
+ }
1040
+ function H(e) {
1041
+ R.value?.delete(e), s("suggestion:removed", e);
1042
1042
  }
1043
- let { HintSlot: H, hasHintLabelOrSlot: U, hasInvalidLabelOrSlot: W, hintSlotScope: G } = ft(f, u), Fe = $("vv-textarea", ve, C(() => ({
1043
+ let { HintSlot: U, hasHintLabelOrSlot: W, hasInvalidLabelOrSlot: G, hintSlotScope: K } = dt(f, u), Pe = bt("vv-textarea", ve, C(() => ({
1044
1044
  valid: O.value,
1045
1045
  invalid: A.value,
1046
1046
  loading: _e.value,
1047
1047
  disabled: o.disabled,
1048
1048
  readonly: o.readonly,
1049
1049
  required: o.required,
1050
- "icon-before": P.value !== void 0,
1051
- "icon-after": Ee.value !== void 0,
1052
- floating: o.floating && !Q(o.label),
1053
- dirty: Pe.value,
1054
- focus: Oe.value,
1050
+ "icon-before": F.value !== void 0,
1051
+ "icon-after": Te.value !== void 0,
1052
+ floating: o.floating && !$(o.label),
1053
+ dirty: Ne.value,
1054
+ focus: De.value,
1055
1055
  resizable: o.resizable
1056
- }))), Ie = C(() => ({
1056
+ }))), Fe = C(() => ({
1057
1057
  name: o.name,
1058
- placeholder: M.value,
1059
- tabindex: Ne.value,
1058
+ placeholder: N.value,
1059
+ tabindex: Me.value,
1060
1060
  disabled: o.disabled,
1061
1061
  readonly: o.readonly,
1062
1062
  required: o.required,
@@ -1067,22 +1067,22 @@ var Lt = ["for"], Rt = {
1067
1067
  rows: o.rows,
1068
1068
  wrap: o.wrap,
1069
1069
  spellcheck: o.spellcheck,
1070
- "aria-invalid": F.value,
1071
- "aria-describedby": U.value ? j.value : void 0,
1072
- "aria-errormessage": W.value ? j.value : void 0
1073
- })), K = C(() => ({
1070
+ "aria-invalid": I.value,
1071
+ "aria-describedby": W.value ? M.value : void 0,
1072
+ "aria-errormessage": G.value ? M.value : void 0
1073
+ })), q = C(() => ({
1074
1074
  valid: o.valid,
1075
1075
  invalid: o.invalid,
1076
1076
  modelValue: o.modelValue,
1077
1077
  hintLabel: o.hintLabel,
1078
1078
  maxlength: o.maxlength,
1079
1079
  minlength: o.minlength,
1080
- clear: q
1080
+ clear: J
1081
1081
  }));
1082
- function q() {
1083
- N.value = void 0;
1082
+ function J() {
1083
+ P.value = void 0;
1084
1084
  }
1085
- return (t, r) => (c(), E("div", { class: ee(v(Fe)) }, [
1085
+ return (t, r) => (c(), E("div", { class: ee(v(Pe)) }, [
1086
1086
  v(fe) ? (c(), E("label", {
1087
1087
  key: 0,
1088
1088
  for: v(Ce),
@@ -1093,46 +1093,46 @@ var Lt = ["for"], Rt = {
1093
1093
  ref: te,
1094
1094
  class: "vv-textarea__wrapper"
1095
1095
  }, [
1096
- t.$slots.before ? (c(), E("div", Rt, [n(t.$slots, "before", i(m(v(K))))])) : _("v-if", !0),
1096
+ t.$slots.before ? (c(), E("div", Rt, [n(t.$slots, "before", i(m(v(q))))])) : _("v-if", !0),
1097
1097
  x("div", zt, [
1098
- v(P) ? (c(), b(kt, l({ key: 0 }, v(P), { class: "vv-textarea__icon" }), null, 16)) : _("v-if", !0),
1098
+ v(F) ? (c(), b(kt, l({ key: 0 }, v(F), { class: "vv-textarea__icon" }), null, 16)) : _("v-if", !0),
1099
1099
  oe(x("textarea", l({
1100
1100
  id: v(Ce),
1101
1101
  ref_key: "textareaEl",
1102
1102
  ref: p,
1103
- "onUpdate:modelValue": r[0] ||= (e) => y(N) ? N.value = e : null
1104
- }, v(Ie), { onKeyup: r[1] ||= (e) => s("keyup", e) }), null, 16, Bt), [[T, v(N)]]),
1105
- v(Ee) ? (c(), b(kt, l({ key: 1 }, v(Ee), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : _("v-if", !0)
1103
+ "onUpdate:modelValue": r[0] ||= (e) => y(P) ? P.value = e : null
1104
+ }, v(Fe), { onKeyup: r[1] ||= (e) => s("keyup", e) }), null, 16, Bt), [[T, v(P)]]),
1105
+ v(Te) ? (c(), b(kt, l({ key: 1 }, v(Te), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : _("v-if", !0)
1106
1106
  ]),
1107
- t.$slots.after ? (c(), E("div", Vt, [n(t.$slots, "after", i(m(v(K))))])) : _("v-if", !0),
1108
- v(he) ? (c(), E("span", Ht, [n(t.$slots, "count", i(m(v(K))), () => [re(h(v(je)), 1)])])) : _("v-if", !0)
1107
+ t.$slots.after ? (c(), E("div", Vt, [n(t.$slots, "after", i(m(v(q))))])) : _("v-if", !0),
1108
+ v(he) ? (c(), E("span", Ht, [n(t.$slots, "count", i(m(v(q))), () => [re(h(v(Ae)), 1)])])) : _("v-if", !0)
1109
1109
  ], 512),
1110
- me(v(H), {
1111
- id: v(j),
1110
+ me(v(U), {
1111
+ id: v(M),
1112
1112
  class: "vv-textarea__hint"
1113
1113
  }, ge({ _: 2 }, [
1114
1114
  t.$slots.hint ? {
1115
1115
  name: "hint",
1116
- fn: e(() => [n(t.$slots, "hint", i(m(v(G))))]),
1116
+ fn: e(() => [n(t.$slots, "hint", i(m(v(K))))]),
1117
1117
  key: "0"
1118
1118
  } : void 0,
1119
1119
  t.$slots.loading ? {
1120
1120
  name: "loading",
1121
- fn: e(() => [n(t.$slots, "loading", i(m(v(G))))]),
1121
+ fn: e(() => [n(t.$slots, "loading", i(m(v(K))))]),
1122
1122
  key: "1"
1123
1123
  } : void 0,
1124
1124
  t.$slots.valid ? {
1125
1125
  name: "valid",
1126
- fn: e(() => [n(t.$slots, "valid", i(m(v(G))))]),
1126
+ fn: e(() => [n(t.$slots, "valid", i(m(v(K))))]),
1127
1127
  key: "2"
1128
1128
  } : void 0,
1129
1129
  t.$slots.invalid ? {
1130
1130
  name: "invalid",
1131
- fn: e(() => [n(t.$slots, "invalid", i(m(v(G))))]),
1131
+ fn: e(() => [n(t.$slots, "invalid", i(m(v(K))))]),
1132
1132
  key: "3"
1133
1133
  } : void 0
1134
1134
  ]), 1032, ["id"]),
1135
- v(z) ? (c(), b(Ct, {
1135
+ v(B) ? (c(), b(Ct, {
1136
1136
  key: 1,
1137
1137
  ref_key: "suggestionsDropdownEl",
1138
1138
  ref: ne,
@@ -1141,18 +1141,18 @@ var Lt = ["for"], Rt = {
1141
1141
  "trigger-width": !0,
1142
1142
  "top-layer": v(f).topLayer
1143
1143
  }, {
1144
- items: e(() => [(c(!0), E(ae, null, k(v(R), (r) => (c(), b(Dt, {
1144
+ items: e(() => [(c(!0), E(ae, null, k(v(z), (r) => (c(), b(Dt, {
1145
1145
  key: r,
1146
- onClick: de((e) => B(r), ["stop"])
1146
+ onClick: de((e) => V(r), ["stop"])
1147
1147
  }, {
1148
- default: e(() => [x("div", Ut, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(L) && v(De) ? (c(), E("button", {
1148
+ default: e(() => [x("div", Ut, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(R) && v(Ee) ? (c(), E("button", {
1149
1149
  key: 0,
1150
1150
  type: "button",
1151
1151
  tabindex: "-1",
1152
1152
  class: "cursor-pointer",
1153
1153
  title: v(ue),
1154
- onClick: de((e) => V(r), ["stop"])
1155
- }, [me(kt, l({ ref_for: !0 }, v(De)), null, 16)], 8, Wt)) : _("v-if", !0)]),
1154
+ onClick: de((e) => H(r), ["stop"])
1155
+ }, [me(kt, l({ ref_for: !0 }, v(Ee)), null, 16)], 8, Wt)) : _("v-if", !0)]),
1156
1156
  _: 2
1157
1157
  }, 1032, ["onClick"]))), 128))]),
1158
1158
  _: 3
@@ -1163,4 +1163,4 @@ var Lt = ["for"], Rt = {
1163
1163
  //#endregion
1164
1164
  export { Gt as default };
1165
1165
 
1166
- //# sourceMappingURL=VvTextarea.es-BuLyBuYz.js.map
1166
+ //# sourceMappingURL=VvTextarea.es-ChkbZSw6.js.map