@8wave/ai-elements 0.119.0-beta.59 → 0.119.0-beta.62

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 (108) hide show
  1. package/README.md +3 -0
  2. package/dist/_chunks/{PkChatbotFilePreview-Bdi4_IFu.js → PkChatbotFilePreview-C0uMvUlV.js} +2 -2
  3. package/dist/_chunks/{PkChatbotFilePreview-Bdi4_IFu.js.map → PkChatbotFilePreview-C0uMvUlV.js.map} +1 -1
  4. package/dist/_chunks/{PkHeldImage-eNPFmmdh.js → PkHeldImage-CBvcNMEM.js} +2 -2
  5. package/dist/_chunks/{PkHeldImage-eNPFmmdh.js.map → PkHeldImage-CBvcNMEM.js.map} +1 -1
  6. package/dist/_chunks/{PkLazyImg-DHPPSq3N.js → PkLazyImg-COy3jb6W.js} +2 -2
  7. package/dist/_chunks/{PkLazyImg-DHPPSq3N.js.map → PkLazyImg-COy3jb6W.js.map} +1 -1
  8. package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js → PkToolEditSpreadsheet-C8PN08y2.js} +2 -2
  9. package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js.map → PkToolEditSpreadsheet-C8PN08y2.js.map} +1 -1
  10. package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js → PkToolRequestGeolocation-Cu1TSjHl.js} +2 -2
  11. package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js.map → PkToolRequestGeolocation-Cu1TSjHl.js.map} +1 -1
  12. package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js → PkToolRequestOAuthConnection-Bc2UX4MZ.js} +3 -3
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js.map → PkToolRequestOAuthConnection-Bc2UX4MZ.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js → PkToolShowArtifact-B1YYNKqc.js} +2 -2
  15. package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js.map → PkToolShowArtifact-B1YYNKqc.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js → PkToolShowCalendarEvent-r0SuzJDT.js} +3 -3
  17. package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js.map → PkToolShowCalendarEvent-r0SuzJDT.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js → PkToolShowComparison-Bsh6iiIQ.js} +3 -3
  19. package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js.map → PkToolShowComparison-Bsh6iiIQ.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js → PkToolShowContactForm-B2UzmoDw.js} +4 -4
  21. package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js.map → PkToolShowContactForm-B2UzmoDw.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js → PkToolShowDiagram-iQRTxxLw.js} +3 -3
  23. package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js.map → PkToolShowDiagram-iQRTxxLw.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js → PkToolShowEmail-1pyuWnuN.js} +3 -3
  25. package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js.map → PkToolShowEmail-1pyuWnuN.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js → PkToolShowForm-BRt9i4aW.js} +5 -5
  27. package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js.map → PkToolShowForm-BRt9i4aW.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js → PkToolShowImageGallery-BZ3uOhQq.js} +3 -3
  29. package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js.map → PkToolShowImageGallery-BZ3uOhQq.js.map} +1 -1
  30. package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js → PkToolShowLocation-BIAPTY0s.js} +3 -3
  31. package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js.map → PkToolShowLocation-BIAPTY0s.js.map} +1 -1
  32. package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js → PkToolShowMessage-BM3TU9SP.js} +3 -3
  33. package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js.map → PkToolShowMessage-BM3TU9SP.js.map} +1 -1
  34. package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js → PkToolShowProductList-C4a7R9yQ.js} +4 -4
  35. package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js.map → PkToolShowProductList-C4a7R9yQ.js.map} +1 -1
  36. package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js → PkToolShowQrCode-6zjcD50R.js} +3 -3
  37. package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js.map → PkToolShowQrCode-6zjcD50R.js.map} +1 -1
  38. package/dist/_chunks/{PkToolShowSources-DyzheirE.js → PkToolShowSources-CgZRJ1gU.js} +3 -3
  39. package/dist/_chunks/{PkToolShowSources-DyzheirE.js.map → PkToolShowSources-CgZRJ1gU.js.map} +1 -1
  40. package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js → PkToolShowSuggestedReply-nHsdJfbX.js} +2 -2
  41. package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js.map → PkToolShowSuggestedReply-nHsdJfbX.js.map} +1 -1
  42. package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js → PkToolShowVideo-BxHrmc_4.js} +3 -3
  43. package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js.map → PkToolShowVideo-BxHrmc_4.js.map} +1 -1
  44. package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js → PkToolShowWeather-CNvVC6nZ.js} +2 -2
  45. package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js.map → PkToolShowWeather-CNvVC6nZ.js.map} +1 -1
  46. package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js → PkToolShowWebPages-CRM3rPp6.js} +4 -4
  47. package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js.map → PkToolShowWebPages-CRM3rPp6.js.map} +1 -1
  48. package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js → VvButtonLocalized-PfbIEwav.js} +2 -2
  49. package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js.map → VvButtonLocalized-PfbIEwav.js.map} +1 -1
  50. package/dist/_chunks/{VvCheckbox.es-VtDFxWJM.js → VvCheckbox.es-CtWUn81l.js} +3 -3
  51. package/dist/_chunks/VvCheckbox.es-CtWUn81l.js.map +1 -0
  52. package/dist/_chunks/{VvCheckboxGroup.es-D7MifHZN.js → VvCheckboxGroup.es-DjcwsgD8.js} +3 -3
  53. package/dist/_chunks/VvCheckboxGroup.es-DjcwsgD8.js.map +1 -0
  54. package/dist/_chunks/{VvCombobox.es-Brn06uOj.js → VvCombobox.es-DKR6Fb2W.js} +339 -304
  55. package/dist/_chunks/VvCombobox.es-DKR6Fb2W.js.map +1 -0
  56. package/dist/_chunks/{VvInputText.es-Co9NrR4l.js → VvInputText.es-6IlsXl00.js} +315 -275
  57. package/dist/_chunks/VvInputText.es-6IlsXl00.js.map +1 -0
  58. package/dist/_chunks/{VvRadio.es-BxHgVeVy.js → VvRadio.es-GQuMOlYC.js} +3 -3
  59. package/dist/_chunks/VvRadio.es-GQuMOlYC.js.map +1 -0
  60. package/dist/_chunks/{VvRadioGroup.es-DZtXJGCi.js → VvRadioGroup.es-ct4eQCRN.js} +3 -3
  61. package/dist/_chunks/VvRadioGroup.es-ct4eQCRN.js.map +1 -0
  62. package/dist/_chunks/{VvSelect.es-BR8f0LUN.js → VvSelect.es-CQ2SG0HY.js} +3 -3
  63. package/dist/_chunks/VvSelect.es-CQ2SG0HY.js.map +1 -0
  64. package/dist/_chunks/{VvTextarea.es-TXhUgEuG.js → VvTextarea.es-BcMLwglK.js} +225 -190
  65. package/dist/_chunks/VvTextarea.es-BcMLwglK.js.map +1 -0
  66. package/dist/_chunks/{index.es-dTcgyeM4.js → index.es-D7jsz1j2.js} +254 -210
  67. package/dist/_chunks/index.es-D7jsz1j2.js.map +1 -0
  68. package/dist/_chunks/{index.es-DkFMpDsf.js → index.es-DmG03ICf.js} +10 -10
  69. package/dist/_chunks/{index.es-DkFMpDsf.js.map → index.es-DmG03ICf.js.map} +1 -1
  70. package/dist/ai-elements.es.js +1698 -1643
  71. package/dist/ai-elements.es.js.map +1 -1
  72. package/dist-vue/PkChatbot.js +1 -1
  73. package/dist-vue/PkChatbotAuth.js +1 -1
  74. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  75. package/dist-vue/PkChatbotMessages.js +1 -1
  76. package/dist-vue/PkChatbotViewChat.js +1 -1
  77. package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js → PkChatbot-BRfoWvHX.js} +2 -2
  78. package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js.map → PkChatbot-BRfoWvHX.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js → PkChatbotAuth-BsxfxDgR.js} +2 -2
  80. package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js.map → PkChatbotAuth-BsxfxDgR.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js → PkChatbotFeedbackForm-pQc2JrQT.js} +2 -2
  82. package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js.map → PkChatbotFeedbackForm-pQc2JrQT.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js → PkChatbotMessages-B6EEvqZy.js} +3 -3
  84. package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js.map → PkChatbotMessages-B6EEvqZy.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js → PkChatbotViewChat-PdHUXyCz.js} +3 -3
  86. package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js.map → PkChatbotViewChat-PdHUXyCz.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js → PkToolShowContactForm-CBuw96Vr.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js.map → PkToolShowContactForm-CBuw96Vr.js.map} +1 -1
  89. package/dist-vue/_chunks/{index.es-C1u3kP7i.js → index.es-CY6tu8qg.js} +2 -2
  90. package/dist-vue/_chunks/{index.es-C1u3kP7i.js.map → index.es-CY6tu8qg.js.map} +1 -1
  91. package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +36 -0
  92. package/dist-vue/composables.js +217 -164
  93. package/dist-vue/composables.js.map +1 -1
  94. package/dist-vue/index.js +8 -8
  95. package/dist-vue/index.js.map +1 -1
  96. package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +22 -0
  97. package/dist-vue/packages/auth/src/external-identity.d.ts +64 -0
  98. package/dist-vue/packages/models/src/schema/McpServer.d.ts +19 -3
  99. package/package.json +2 -2
  100. package/dist/_chunks/VvCheckbox.es-VtDFxWJM.js.map +0 -1
  101. package/dist/_chunks/VvCheckboxGroup.es-D7MifHZN.js.map +0 -1
  102. package/dist/_chunks/VvCombobox.es-Brn06uOj.js.map +0 -1
  103. package/dist/_chunks/VvInputText.es-Co9NrR4l.js.map +0 -1
  104. package/dist/_chunks/VvRadio.es-BxHgVeVy.js.map +0 -1
  105. package/dist/_chunks/VvRadioGroup.es-DZtXJGCi.js.map +0 -1
  106. package/dist/_chunks/VvSelect.es-BR8f0LUN.js.map +0 -1
  107. package/dist/_chunks/VvTextarea.es-TXhUgEuG.js.map +0 -1
  108. package/dist/_chunks/index.es-dTcgyeM4.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, Dt as a, E as o, Et as s, F as c, G as l, H as u, L as d, M as f, N as p, O as m, P as h, Q as g, R as _, St as v, T as y, Tt as b, U as x, V as S, W as C, X as w, Z as T, _ as E, a as D, b as O, bt as k, c as A, ct as j, d as M, dt as ee, et as te, g as N, h as P, i as ne, it as F, k as I, m as L, mt as R, q as re, r as ie, t as ae, u as oe, v as z, vt as se, w as ce, wt as le, x as ue, y as de, yt as B, z as fe } from "./vue.runtime.esm-bundler-DKVd2gci.js";
2
2
  import { a as V, i as pe, t as me } from "./iconify-CgyW1o4B.js";
3
- import { c as he, f as ge, g as _e, h as ve, l as H, n as ye, o as be, r as xe, u as Se } from "./dist-DxtbpUdI.js";
4
- import { a as U, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae } from "./floating-ui.vue-B6fUB9cU.js";
5
- import { t as W } from "./dot-prop-B2dazUQ6.js";
3
+ import { c as he, f as ge, g as _e, h as ve, l as ye, n as be, o as xe, r as Se, u as Ce } from "./dist-DxtbpUdI.js";
4
+ import { a as H, c as we, i as Te, l as U, n as Ee, o as De, r as Oe, s as W, t as ke } from "./floating-ui.vue-B6fUB9cU.js";
5
+ import { t as Ae } from "./dot-prop-B2dazUQ6.js";
6
6
  import { t as je } from "./esm-DHfsLeyR.js";
7
- //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.24_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_15de8134c9a21d6e417d645781533ea5/node_modules/@volverjs/ui-vue/dist/components/index.es.js
7
+ //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/index.es.js
8
8
  m(), ie(), F(), i();
9
9
  var G = {
10
10
  showPassword: "eye-on",
@@ -167,7 +167,7 @@ var G = {
167
167
  iconPosition: {
168
168
  type: String,
169
169
  default: Ie.before,
170
- validation: (e) => Object.values(Ie).includes(e)
170
+ validator: (e) => Object.values(Ie).includes(e)
171
171
  }
172
172
  }, mt = { tabindex: {
173
173
  type: [String, Number],
@@ -1294,9 +1294,9 @@ function Rn(e) {
1294
1294
  let { options: t, labelKey: n, valueKey: r, disabledKey: i } = B(e);
1295
1295
  return {
1296
1296
  options: t,
1297
- getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? W(e, n.value) : e),
1298
- getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? W(e, r.value) : e,
1299
- isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!W(e, i.value) : !1,
1297
+ getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? Ae(e, n.value) : e),
1298
+ getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? Ae(e, r.value) : e,
1299
+ isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!Ae(e, i.value) : !1,
1300
1300
  getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
1301
1301
  };
1302
1302
  }
@@ -1604,7 +1604,7 @@ function Jn(e, t) {
1604
1604
  };
1605
1605
  }
1606
1606
  function Yn({ reference: e, id: t, expanded: n, aria: i }) {
1607
- let a = Te();
1607
+ let a = U();
1608
1608
  return {
1609
1609
  bus: a,
1610
1610
  component: r({
@@ -1664,129 +1664,164 @@ var Qn = ["popover"], $n = [
1664
1664
  "leaveCancelled"
1665
1665
  ],
1666
1666
  setup(t, { expose: r, emit: i }) {
1667
- let a = t, o = i, { id: l } = B(a), u = Gt(l), m = C(), h = R("auto"), _ = R("auto"), S = R(), T = R(), D = R(), O = R(), k = L({
1668
- get: () => a.reference ?? S.value,
1667
+ let a = t, o = i, { id: l } = B(a), u = Gt(l), m = C(), h = R(), _ = R(), S = R(), T = R(), D = L({
1668
+ get: () => a.reference ?? h.value,
1669
1669
  set: (e) => {
1670
- S.value = e;
1670
+ h.value = e;
1671
1671
  }
1672
- }), { isTopLayer: j, popover: ee, show: N, hide: ne } = Jn(T, () => a.topLayer), F = L(() => j.value ? Pe.fixed : a.strategy), I = R(!1);
1672
+ }), { isTopLayer: O, popover: k, show: j, hide: ee } = Jn(_, () => a.topLayer), N = L(() => O.value ? Pe.fixed : a.strategy), ne = R(!1);
1673
1673
  c(() => {
1674
- ge(T.value, () => {
1675
- I.value = globalThis.getComputedStyle(T.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
1674
+ ge(_.value, () => {
1675
+ ne.value = globalThis.getComputedStyle(_.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
1676
1676
  }, {
1677
1677
  attributeFilter: ["style"],
1678
1678
  window: globalThis.window
1679
1679
  });
1680
1680
  });
1681
- function re(e, t, n) {
1681
+ function F(e, t, n) {
1682
1682
  return typeof e == "boolean" ? t() : n(e);
1683
1683
  }
1684
- let ie = L(() => {
1684
+ function I(e) {
1685
+ return !e.width && !e.height;
1686
+ }
1687
+ let re = {
1688
+ name: "uncap",
1689
+ fn({ elements: e, rects: t, middlewareData: n }) {
1690
+ let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
1691
+ return n.uncap || !i || I(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
1692
+ data: { uncapped: !0 },
1693
+ reset: { rects: !0 }
1694
+ });
1695
+ }
1696
+ }, ie = L(() => {
1685
1697
  let e = [];
1686
- if (a.autoPlacement ? e.push(re(a.autoPlacement, () => Oe(), (e) => Oe(e))) : a.flip && e.push(re(a.flip, () => U({ fallbackStrategy: "initialPlacement" }), (e) => U(e))), a.shift && e.push(re(a.shift, () => ke(), (e) => ke(e))), a.size) {
1687
- let t = ({ availableWidth: e, availableHeight: t }) => {
1688
- h.value = `${e}px`, _.value = `${t}px`;
1698
+ a.size && e.push(re), a.offset && e.push(["string", "number"].includes(typeof a.offset) ? De(Number(a.offset)) : De(a.offset));
1699
+ let t = typeof a.size == "object" ? a.size.padding : void 0;
1700
+ if (a.autoPlacement ? e.push(F(a.autoPlacement, () => Oe(), (e) => Oe(e))) : a.flip && e.push(F(a.flip, () => H({
1701
+ fallbackStrategy: "initialPlacement",
1702
+ padding: t
1703
+ }), (e) => H({
1704
+ padding: t,
1705
+ ...e
1706
+ }))), a.shift && e.push(F(a.shift, () => W(), (e) => W(e))), a.size) {
1707
+ let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
1708
+ if (I(r.floating) || ne.value) return;
1709
+ let { style: i } = n.floating;
1710
+ i.maxWidth = a.triggerWidth && D.value ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
1689
1711
  };
1690
- e.push(re(a.size, () => Ce({ apply: t }), (e) => Ce({
1712
+ e.push(F(a.size, () => we({ apply: t }), (e) => we({
1691
1713
  ...e,
1692
- apply: t
1714
+ apply: (n) => (t(n), e?.apply?.(n))
1693
1715
  })));
1694
1716
  }
1695
- return a.offset && e.push(["string", "number"].includes(typeof a.offset) ? De(Number(a.offset)) : De(a.offset)), a.arrow && e.push(Ae({ element: D })), e;
1696
- }), { x: oe, y: se, middlewareData: ce, placement: de, strategy: fe } = Ee(k, T, {
1697
- whileElementsMounted: (...e) => we(...e, { animationFrame: F.value === Pe.fixed }),
1717
+ return a.arrow && e.push(ke({ element: S })), e;
1718
+ }), { x: oe, y: se, middlewareData: ce, placement: de, strategy: fe, update: V } = Ee(D, _, {
1698
1719
  placement: L(() => a.placement),
1699
- strategy: F,
1720
+ strategy: N,
1700
1721
  middleware: ie
1701
- }), V = L(() => {
1702
- if (I.value) return;
1703
- let e = a.triggerWidth && k.value ? `${k.value?.offsetWidth}px` : void 0;
1722
+ }), pe = L(() => {
1723
+ if (ne.value) return;
1724
+ let e = a.triggerWidth && D.value ? `${D.value?.offsetWidth}px` : void 0;
1704
1725
  return {
1705
1726
  position: fe.value,
1706
1727
  top: `${se.value ?? 0}px`,
1707
1728
  left: `${oe.value ?? 0}px`,
1708
- maxWidth: e ? void 0 : h.value,
1709
- maxHeight: _.value,
1710
1729
  width: e
1711
1730
  };
1712
- }), pe = L(() => de.value.split("-")[0]), me = L(() => {
1713
- if (I.value) return;
1731
+ }), me = L(() => de.value.split("-")[0]), he = L(() => {
1732
+ if (ne.value) return;
1714
1733
  let e = {
1715
1734
  [K.top]: K.bottom,
1716
1735
  [K.right]: K.left,
1717
1736
  [K.bottom]: K.top,
1718
1737
  [K.left]: K.right
1719
- }[pe.value];
1738
+ }[me.value];
1720
1739
  return {
1721
1740
  left: ce.value.arrow?.x === void 0 ? void 0 : `${ce.value.arrow?.x}px`,
1722
1741
  top: ce.value.arrow?.y === void 0 ? void 0 : `${ce.value.arrow?.y}px`,
1723
- [e]: `${-(D.value?.offsetWidth ?? 0) / 2}px`
1742
+ [e]: `${-(S.value?.offsetWidth ?? 0) / 2}px`
1724
1743
  };
1725
- }), he = _e(a, "modelValue", o), ve = R(!1), H = L({
1726
- get: () => he.value ?? ve.value,
1744
+ }), ve = _e(a, "modelValue", o), ye = R(!1), U = L({
1745
+ get: () => ve.value ?? ye.value,
1727
1746
  set: (e) => {
1728
- he.value === void 0 ? ve.value = e : he.value = e;
1747
+ ve.value === void 0 ? ye.value = e : ve.value = e;
1729
1748
  }
1730
1749
  });
1731
- g(() => {
1732
- H.value && N();
1750
+ w([
1751
+ U,
1752
+ D,
1753
+ _,
1754
+ N
1755
+ ], ([e, t, n, r], i, a) => {
1756
+ !e || !t || !n || a(Te(t, n, V, { animationFrame: r === Pe.fixed }));
1757
+ }, {
1758
+ flush: "post",
1759
+ immediate: !0
1760
+ }), ge(T, () => {
1761
+ U.value && V();
1762
+ }, {
1763
+ childList: !0,
1764
+ subtree: !0,
1765
+ characterData: !0
1766
+ }), g(() => {
1767
+ U.value && j();
1733
1768
  });
1734
- function Te() {
1735
- H.value = !0;
1736
- }
1737
- function W() {
1738
- H.value = !1;
1769
+ function Ae() {
1770
+ U.value = !0;
1739
1771
  }
1740
1772
  function je() {
1741
- H.value = !H.value;
1773
+ U.value = !1;
1742
1774
  }
1743
- function G(e) {
1744
- k.value = e;
1775
+ function G() {
1776
+ U.value = !U.value;
1745
1777
  }
1746
- ye(T, () => {
1747
- !a.keepOpen && H.value && (H.value = !1);
1748
- }, { ignore: [k] });
1749
- let Me = L(() => k.value?.getAttribute?.("id") ?? void 0), Ne = L(() => ({
1778
+ function Me(e) {
1779
+ D.value = e;
1780
+ }
1781
+ be(_, () => {
1782
+ !a.keepOpen && U.value && (U.value = !1);
1783
+ }, { ignore: [D] });
1784
+ let Ne = L(() => D.value?.getAttribute?.("id") ?? void 0), Fe = L(() => ({
1750
1785
  "aria-controls": u.value,
1751
1786
  "aria-haspopup": !0,
1752
- "aria-expanded": H.value
1753
- })), { component: Fe, bus: Ie } = Yn({
1754
- reference: k,
1787
+ "aria-expanded": U.value
1788
+ })), { component: Ie, bus: Le } = Yn({
1789
+ reference: D,
1755
1790
  id: u,
1756
- expanded: H,
1757
- aria: Ne
1791
+ expanded: U,
1792
+ aria: Fe
1758
1793
  });
1759
- Ie.on("click", je);
1760
- let { role: Le, modifiers: q } = B(a), Re = Z("vv-dropdown", q, L(() => ({ arrow: a.arrow }))), { focused: ze } = Se(T);
1761
- function Be(e) {
1794
+ Le.on("click", G);
1795
+ let { role: q, modifiers: Re } = B(a), ze = Z("vv-dropdown", Re, L(() => ({ arrow: a.arrow }))), { focused: Be } = Ce(_);
1796
+ function Ve(e) {
1762
1797
  return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
1763
1798
  }
1764
- function Ve() {
1799
+ function He() {
1765
1800
  p(() => {
1766
- let e = Be(T.value);
1801
+ let e = Ve(_.value);
1767
1802
  e.length > 0 && e[0].focus({ preventScroll: !0 });
1768
1803
  });
1769
1804
  }
1770
- function He() {
1805
+ function Ue() {
1771
1806
  p(() => {
1772
- let e = Be(O.value);
1807
+ let e = Ve(T.value);
1773
1808
  e.length > 0 && e[0].focus({ preventScroll: !0 });
1774
1809
  });
1775
1810
  }
1776
- function Ue() {
1811
+ function We() {
1777
1812
  p(() => {
1778
- if (ze.value) {
1779
- let e = Be(T.value);
1813
+ if (Be.value) {
1814
+ let e = Ve(_.value);
1780
1815
  if (e.length === 0 || !document.activeElement) return;
1781
1816
  let t = e.indexOf(document.activeElement);
1782
1817
  t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
1783
1818
  }
1784
1819
  });
1785
1820
  }
1786
- function We() {
1821
+ function Ge() {
1787
1822
  p(() => {
1788
- if (ze.value) {
1789
- let e = Be(T.value);
1823
+ if (Be.value) {
1824
+ let e = Ve(_.value);
1790
1825
  if (e.length === 0 || !document.activeElement) return;
1791
1826
  let t = e.indexOf(document.activeElement);
1792
1827
  if (t > 0) {
@@ -1797,53 +1832,53 @@ var Qn = ["popover"], $n = [
1797
1832
  }
1798
1833
  });
1799
1834
  }
1800
- w(H, (e) => {
1801
- e && a.autofocusFirst && Ve();
1835
+ w(U, (e) => {
1836
+ e && a.autofocusFirst && He();
1802
1837
  }), r({
1803
- toggle: je,
1804
- show: Te,
1805
- hide: W,
1806
- init: G,
1807
- focusFirst: Ve,
1808
- focusFirstListElement: He,
1809
- focusNext: Ue,
1810
- focusPrev: We,
1811
- customPosition: I
1838
+ toggle: G,
1839
+ show: Ae,
1840
+ hide: je,
1841
+ init: Me,
1842
+ focusFirst: He,
1843
+ focusFirstListElement: Ue,
1844
+ focusNext: We,
1845
+ focusPrev: Ge,
1846
+ customPosition: ne
1812
1847
  });
1813
- let { itemRole: Ge } = Xn({
1814
- role: Le,
1815
- expanded: H,
1816
- focused: ze,
1817
- hovered: be(T)
1848
+ let { itemRole: Ke } = Xn({
1849
+ role: q,
1850
+ expanded: U,
1851
+ focused: Be,
1852
+ hovered: xe(_)
1818
1853
  });
1819
- xe("Escape", (e) => {
1820
- H.value && (e.preventDefault(), W());
1821
- }), xe("ArrowDown", (e) => {
1822
- H.value && ze.value && (e.preventDefault(), Ue());
1823
- }), xe("ArrowUp", (e) => {
1824
- H.value && ze.value && (e.preventDefault(), We());
1825
- }), xe([" ", "Enter"], (e) => {
1854
+ Se("Escape", (e) => {
1855
+ U.value && (e.preventDefault(), je());
1856
+ }), Se("ArrowDown", (e) => {
1857
+ U.value && Be.value && (e.preventDefault(), We());
1858
+ }), Se("ArrowUp", (e) => {
1859
+ U.value && Be.value && (e.preventDefault(), Ge());
1860
+ }), Se([" ", "Enter"], (e) => {
1826
1861
  let t = e.target;
1827
- H.value && ze.value && t && t?.click();
1862
+ U.value && Be.value && t && t?.click();
1828
1863
  });
1829
- let Ke = {
1864
+ let qe = {
1830
1865
  "before-enter": () => {
1831
- o(H.value ? "beforeExpand" : "beforeCollapse"), o("beforeEnter");
1866
+ o("beforeExpand"), o("beforeEnter");
1832
1867
  },
1833
1868
  "after-leave": () => {
1834
- H.value || ne(), o(H.value ? "afterExpand" : "afterCollapse"), o("afterLeave");
1869
+ U.value || ee(), o("afterCollapse"), o("afterLeave");
1835
1870
  },
1836
1871
  enter: () => {
1837
1872
  o("enter");
1838
1873
  },
1839
1874
  "after-enter": () => {
1840
- o("afterEnter");
1875
+ o("afterExpand"), o("afterEnter");
1841
1876
  },
1842
1877
  "enter-cancelled": () => {
1843
1878
  o("enterCancelled");
1844
1879
  },
1845
1880
  "before-leave": () => {
1846
- o("beforeLeave");
1881
+ o("beforeCollapse"), o("beforeLeave");
1847
1882
  },
1848
1883
  leave: () => {
1849
1884
  o("leave");
@@ -1852,59 +1887,59 @@ var Qn = ["popover"], $n = [
1852
1887
  o("leaveCancelled");
1853
1888
  }
1854
1889
  };
1855
- return (t, r) => (d(), z(M, null, [ue(v(Fe), null, {
1890
+ return (t, r) => (d(), z(M, null, [ue(v(Ie), null, {
1856
1891
  default: e(() => [n(t.$slots, "default", b(y({
1857
- init: G,
1858
- show: Te,
1859
- hide: W,
1860
- toggle: je,
1861
- expanded: v(H),
1862
- aria: v(Ne)
1892
+ init: Me,
1893
+ show: Ae,
1894
+ hide: je,
1895
+ toggle: G,
1896
+ expanded: v(U),
1897
+ aria: v(Fe)
1863
1898
  })))]),
1864
1899
  _: 3
1865
- }), ue(ae, f({ name: t.transitionName }, x(Ke), { persisted: "" }), {
1900
+ }), ue(ae, f({ name: t.transitionName }, x(qe), { persisted: "" }), {
1866
1901
  default: e(() => [te(P("div", {
1867
1902
  ref_key: "floatingEl",
1868
- ref: T,
1869
- popover: v(ee),
1870
- style: s(v(V)),
1871
- class: le(v(Re))
1903
+ ref: _,
1904
+ popover: v(k),
1905
+ style: s(v(pe)),
1906
+ class: le(v(ze))
1872
1907
  }, [
1873
1908
  a.arrow ? (d(), z("div", {
1874
1909
  key: 0,
1875
1910
  ref_key: "arrowEl",
1876
- ref: D,
1877
- style: s(v(me)),
1911
+ ref: S,
1912
+ style: s(v(he)),
1878
1913
  class: "vv-dropdown__arrow"
1879
1914
  }, null, 4)) : E("v-if", !0),
1880
1915
  n(t.$slots, "before", b(y({
1881
- show: Te,
1882
- hide: W,
1883
- toggle: je,
1884
- expanded: v(H)
1916
+ show: Ae,
1917
+ hide: je,
1918
+ toggle: G,
1919
+ expanded: v(U)
1885
1920
  }))),
1886
1921
  P("div", f(v(m), {
1887
1922
  id: v(u),
1888
1923
  ref_key: "listEl",
1889
- ref: O,
1890
- tabindex: v(H) ? void 0 : -1,
1891
- role: v(Le),
1892
- "aria-labelledby": v(Me),
1924
+ ref: T,
1925
+ tabindex: v(U) ? void 0 : -1,
1926
+ role: v(q),
1927
+ "aria-labelledby": v(Ne),
1893
1928
  class: "vv-dropdown__list"
1894
1929
  }), [n(t.$slots, "items", b(y({
1895
- show: Te,
1896
- hide: W,
1897
- toggle: je,
1898
- expanded: v(H),
1899
- role: v(Ge)
1930
+ show: Ae,
1931
+ hide: je,
1932
+ toggle: G,
1933
+ expanded: v(U),
1934
+ role: v(Ke)
1900
1935
  })))], 16, $n),
1901
1936
  n(t.$slots, "after", b(y({
1902
- show: Te,
1903
- hide: W,
1904
- toggle: je,
1905
- expanded: v(H)
1937
+ show: Ae,
1938
+ hide: je,
1939
+ toggle: G,
1940
+ expanded: v(U)
1906
1941
  })))
1907
- ], 14, Qn), [[A, v(H)]])]),
1942
+ ], 14, Qn), [[A, v(U)]])]),
1908
1943
  _: 3
1909
1944
  }, 16, ["name"])], 64));
1910
1945
  }
@@ -1916,7 +1951,7 @@ var tr = /* @__PURE__ */ r({
1916
1951
  setup(e) {
1917
1952
  let t = e, { role: r, expanded: i } = Vt(), a = R(null);
1918
1953
  Zn({ expanded: i });
1919
- let o = be(a), { focused: s } = H(a), { focused: c } = Se(a);
1954
+ let o = xe(a), { focused: s } = ye(a), { focused: c } = Ce(a);
1920
1955
  return w(o, (e) => {
1921
1956
  e && t.focusOnHover && (s.value = !0);
1922
1957
  }), (e, t) => (d(), z("div", f({ role: v(r) }, {
@@ -2007,7 +2042,7 @@ function ar() {
2007
2042
  };
2008
2043
  }
2009
2044
  function or(e, t) {
2010
- let { focused: n } = H(e);
2045
+ let { focused: n } = ye(e);
2011
2046
  return w(n, (n) => {
2012
2047
  t(n ? "focus" : "blur", v(e));
2013
2048
  }), { focused: n };
@@ -2092,7 +2127,7 @@ var sr = [
2092
2127
  s("leaveCancelled");
2093
2128
  }
2094
2129
  };
2095
- ye(m, () => {
2130
+ be(m, () => {
2096
2131
  o.keepOpen || T();
2097
2132
  });
2098
2133
  function T() {
@@ -2108,6 +2143,9 @@ var sr = [
2108
2143
  function O() {
2109
2144
  o.keepOpen || T();
2110
2145
  }
2146
+ function k() {
2147
+ p.value && !c.value?.open && T();
2148
+ }
2111
2149
  return (t, r) => (d(), N(ae, f({
2112
2150
  name: v(C),
2113
2151
  appear: ""
@@ -2117,7 +2155,8 @@ var sr = [
2117
2155
  ref: c,
2118
2156
  "aria-labelledby": t.title && !t.$slots.header ? v(S) : void 0,
2119
2157
  class: v(_),
2120
- onCancel: oe(O, ["stop", "prevent"])
2158
+ onCancel: oe(O, ["stop", "prevent"]),
2159
+ onClose: k
2121
2160
  }), [P("article", {
2122
2161
  ref_key: "modalWrapper",
2123
2162
  ref: m,
@@ -2573,9 +2612,9 @@ var Nr = ["for"], Pr = {
2573
2612
  emits: Dr,
2574
2613
  setup(t, { expose: r, emit: i }) {
2575
2614
  let o = t, s = i, l = re(), u = zt(), p = Mn("VvInputText", Or, o), { count: m, debounce: h, icon: g, iconPosition: _, iconRemoveSuggestion: x, id: S, invalid: C, label: T, labelRemoveSuggestion: D, loading: k, maxlength: A, minlength: j, modelValue: ee, step: te, storageType: ne, type: F, unit: I, valid: ie } = B(o), ae = Gt(S), se = L(() => `${ae.value}-hint`), ce = L(() => o.floating && _n(o.placeholder) ? " " : o.placeholder), { model: V, flush: pe } = _r(ee, s, h), me = L(() => {
2576
- let e = typeof te.value == "number" ? te.value : Number.parseInt(te.value);
2615
+ let e = Number(te.value);
2577
2616
  return !Number.isNaN(e) && e % 60 != 0;
2578
- }), ge = /^-0?[.,]?[0*]?$/, _e = /./, ve = /^-$|^$/, H = R(!1), ye = R(), be = R(), { el: xe, mask: Se, typed: U, masked: Ce, unmasked: we } = je(L(() => {
2617
+ }), ge = /^-0?[.,]?[0*]?$/, _e = /./, ve = /^-$|^$/, ye = R(!1), be = R(), xe = R(), { el: Se, mask: Ce, typed: H, masked: we, unmasked: Te } = je(L(() => {
2579
2618
  if (!o.iMask) return { mask: _e };
2580
2619
  if (o.iMask.mask === Number) {
2581
2620
  let e = { ...o.iMask };
@@ -2585,87 +2624,87 @@ var Nr = ["for"], Pr = {
2585
2624
  }), {
2586
2625
  emit: s,
2587
2626
  onAccept: () => {
2588
- if (H.value) {
2589
- if (s("update:masked", Ce.value), F.value === $.NUMBER) {
2590
- Te();
2627
+ if (ye.value) {
2628
+ if (s("update:masked", we.value), F.value === $.NUMBER) {
2629
+ U();
2591
2630
  return;
2592
2631
  }
2593
2632
  if (F.value === $.DATETIME_LOCAL || F.value === $.DATE || F.value === $.TIME || F.value === $.MONTH) {
2594
2633
  De();
2595
2634
  return;
2596
2635
  }
2597
- !V.value && !we.value || (V.value = we.value);
2636
+ !V.value && !Te.value || (V.value = Te.value);
2598
2637
  }
2599
2638
  }
2600
2639
  });
2601
- function Te() {
2602
- if (ve.test(we.value)) {
2640
+ function U() {
2641
+ if (ve.test(Te.value)) {
2603
2642
  if (V.value === null || V.value === void 0) return;
2604
2643
  V.value = void 0;
2605
- } else ge.test(we.value) ? V.value = 0 : typeof U.value == "number" ? V.value = U.value : V.value = Number(U.value);
2644
+ } else ge.test(Te.value) ? V.value = 0 : typeof H.value == "number" ? V.value = H.value : V.value = Number(H.value);
2606
2645
  }
2607
2646
  function Ee(e) {
2608
- let t = new Date(ye.value || be.value);
2609
- if ((F.value === $.DATETIME_LOCAL || F.value === $.DATE || F.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (F.value === $.DATETIME_LOCAL || F.value === $.DATE) && t.setDate(e.getDate()), (F.value === $.DATETIME_LOCAL || F.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), ye.value instanceof Date) {
2647
+ let t = new Date(be.value || xe.value);
2648
+ if ((F.value === $.DATETIME_LOCAL || F.value === $.DATE || F.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (F.value === $.DATETIME_LOCAL || F.value === $.DATE) && t.setDate(e.getDate()), (F.value === $.DATETIME_LOCAL || F.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), be.value instanceof Date) {
2610
2649
  if (V.value?.getTime() === t.getTime()) return;
2611
2650
  V.value = t;
2612
2651
  } else V.value = t.toISOString();
2613
2652
  }
2614
2653
  function De() {
2615
2654
  let e = F.value;
2616
- if (!U.value) {
2655
+ if (!H.value) {
2617
2656
  if (!V.value) return;
2618
- if (ye.value) {
2657
+ if (be.value) {
2619
2658
  V.value = void 0;
2620
2659
  return;
2621
2660
  }
2622
2661
  V.value = "";
2623
2662
  return;
2624
2663
  }
2625
- if (!(U.value instanceof Date) && !ye.value && !be.value) {
2626
- V.value = U.value;
2664
+ if (!(H.value instanceof Date) && !be.value && !xe.value) {
2665
+ V.value = H.value;
2627
2666
  return;
2628
2667
  }
2629
- let t = U.value;
2630
- t instanceof Date || (t = Er(U.value, e)), ye.value || be.value ? Ee(t) : V.value = xr(t, e, me.value);
2668
+ let t = H.value;
2669
+ t instanceof Date || (t = Er(H.value, e)), be.value || xe.value ? Ee(t) : V.value = xr(t, e, me.value);
2631
2670
  }
2632
2671
  function Oe(e) {
2633
- if (e == null) U.value = "", we.value = "";
2634
- else if (o.iMask?.mask === Date) U.value = e instanceof Date ? e : new Date(e);
2635
- else if (!(F.value === $.NUMBER && ge.test(we.value) && e === 0)) {
2672
+ if (e == null) H.value = "", Te.value = "";
2673
+ else if (o.iMask?.mask === Date) H.value = e instanceof Date ? e : new Date(e);
2674
+ else if (!(F.value === $.NUMBER && ge.test(Te.value) && e === 0)) {
2636
2675
  if (ct.value) {
2637
2676
  if (e instanceof Date || br(e)) {
2638
- if (e instanceof Date ? (ye.value = e, be.value = void 0) : (be.value = e, ye.value = void 0), F.value !== $.WEEK) {
2639
- let t = new Date(e), n = F.value;
2640
- U.value = xr(t, n, me.value), we.value = U.value;
2677
+ if (e instanceof Date ? (be.value = e, xe.value = void 0) : (xe.value = e, be.value = void 0), X.value) {
2678
+ let t = new Date(e);
2679
+ H.value = xr(t, X.value, me.value), Te.value = H.value;
2641
2680
  }
2642
2681
  return;
2643
2682
  }
2644
- ye.value = void 0, be.value = void 0;
2683
+ be.value = void 0, xe.value = void 0;
2645
2684
  }
2646
- U.value = e, we.value = `${U.value}`;
2685
+ H.value = e, Te.value = `${H.value}`;
2647
2686
  }
2648
2687
  }
2649
2688
  c(() => {
2650
- Se.value && (H.value = !0, Oe(o.modelValue));
2689
+ Ce.value && (ye.value = !0, Oe(o.modelValue));
2651
2690
  }), w(() => o.modelValue, (e) => {
2652
- Se.value && Oe(e);
2691
+ Ce.value && Oe(e);
2653
2692
  }), w(() => o.masked, (e) => {
2654
- Ce.value = e ?? "";
2693
+ we.value = e ?? "";
2655
2694
  });
2656
- let ke = xe, Ae = R(), W = R(), Me = R();
2695
+ let W = Se, ke = R(), Ae = R(), Me = R();
2657
2696
  r({
2658
- $input: ke,
2659
- $inner: Ae,
2660
- $wrapper: W,
2697
+ $input: W,
2698
+ $inner: ke,
2699
+ $wrapper: Ae,
2661
2700
  flush: pe
2662
2701
  });
2663
- let { focused: Ne } = or(ke, s), Pe = L(() => Ne.value && !o.disabled && !o.readonly);
2702
+ let { focused: Ne } = or(W, s), Pe = L(() => Ne.value && !o.disabled && !o.readonly);
2664
2703
  function K(e) {
2665
2704
  e ? Fe() : Ie();
2666
2705
  }
2667
2706
  function Fe() {
2668
- p.value.selectOnFocus && ke.value && ke.value.select(), et.value.size && Me.value?.show();
2707
+ p.value.selectOnFocus && W.value && W.value.select(), et.value.size && Me.value?.show();
2669
2708
  }
2670
2709
  function Ie() {
2671
2710
  let e = pe() ?? V.value;
@@ -2674,7 +2713,7 @@ var Nr = ["for"], Pr = {
2674
2713
  Y.value.size >= t && !Y.value.has(e) && (Y.value = new Set([...Y.value].slice(Y.value.size - t + 1))), Y.value.add(e);
2675
2714
  }
2676
2715
  w(Pe, K);
2677
- let Le = he(ke);
2716
+ let Le = he(W);
2678
2717
  w(Le, (e) => {
2679
2718
  e && o.autofocus && !o.disabled && !o.readonly && (Ne.value = !0);
2680
2719
  });
@@ -2686,19 +2725,19 @@ var Nr = ["for"], Pr = {
2686
2725
  function He() {
2687
2726
  if (!Ze.value) {
2688
2727
  if (o.iMask) {
2689
- U.value = Number(U.value) + Number(te?.value ?? 1);
2728
+ H.value = Number(H.value) + Number(te?.value ?? 1);
2690
2729
  return;
2691
2730
  }
2692
- ke.value.stepUp(), V.value = Number(ke.value.value);
2731
+ W.value.stepUp(), V.value = Number(W.value.value);
2693
2732
  }
2694
2733
  }
2695
2734
  function Ue() {
2696
2735
  if (!Ze.value) {
2697
2736
  if (o.iMask) {
2698
- U.value = Number(U.value) - Number(te?.value ?? 1);
2737
+ H.value = Number(H.value) - Number(te?.value ?? 1);
2699
2738
  return;
2700
2739
  }
2701
- ke.value.stepDown(), V.value = Number(ke.value.value);
2740
+ W.value.stepDown(), V.value = Number(W.value.value);
2702
2741
  }
2703
2742
  }
2704
2743
  let We = L(() => o.type === $.SEARCH);
@@ -2760,14 +2799,23 @@ var Nr = ["for"], Pr = {
2760
2799
  $.WEEK,
2761
2800
  $.TIME,
2762
2801
  $.DATETIME_LOCAL
2763
- ].includes(F.value)), X = L(() => [
2802
+ ].includes(F.value)), X = L(() => ct.value && F.value !== $.WEEK ? F.value : void 0), lt = L(() => [
2764
2803
  $.TEXT,
2765
2804
  $.SEARCH,
2766
2805
  $.URL,
2767
2806
  $.TEL,
2768
2807
  $.EMAIL,
2769
2808
  $.PASSWORD
2770
- ].includes(F.value)), lt = L(() => {
2809
+ ].includes(F.value)), ut = {
2810
+ [$.DATE]: "9999-12-31",
2811
+ [$.DATETIME_LOCAL]: "9999-12-31T23:59:59.999",
2812
+ [$.MONTH]: "9999-12",
2813
+ [$.WEEK]: "9999-W52"
2814
+ };
2815
+ function dt(e) {
2816
+ if (!_n(e)) return (e instanceof Date || typeof e == "string" && br(e)) && X.value ? xr(e, X.value, me.value) || void 0 : String(e);
2817
+ }
2818
+ let ft = L(() => {
2771
2819
  let e = Re.value && q.value || Be.value && !J.value && !Ne.value || o.iMask ? $.TEXT : o.type, t = {
2772
2820
  type: e,
2773
2821
  name: o.name,
@@ -2779,16 +2827,12 @@ var Nr = ["for"], Pr = {
2779
2827
  "aria-label": o.ariaLabel || void 0,
2780
2828
  "aria-labelledby": o.ariaLabelledby || void 0,
2781
2829
  "aria-invalid": $e.value,
2782
- "aria-describedby": [o.ariaDescribedby, ft.value ? se.value : void 0].filter(Boolean).join(" ") || void 0,
2783
- "aria-errormessage": pt.value ? se.value : void 0,
2830
+ "aria-describedby": [o.ariaDescribedby, ht.value ? se.value : void 0].filter(Boolean).join(" ") || void 0,
2831
+ "aria-errormessage": gt.value ? se.value : void 0,
2784
2832
  inputMode: o.inputMode
2785
2833
  };
2786
- if (ct.value || e === $.NUMBER) {
2787
- let n = o.max;
2788
- e === $.DATE && !n && (n = "9999-12-31"), t.step = o.step, t.max = n === void 0 ? void 0 : String(n), t.min = o.min === void 0 ? void 0 : String(o.min);
2789
- }
2790
- return (st.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = ce.value), X.value && (t.minlength = o.minlength, t.maxlength = o.maxlength, t.pattern = o.pattern), e === $.EMAIL && (t.multiple = o.multiple), t;
2791
- }), ut = L(() => ({
2834
+ return (ct.value || e === $.NUMBER) && (t.step = o.step, t.max = dt(o.max) ?? ut[e], t.min = dt(o.min)), (st.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = ce.value), lt.value && (t.minlength = o.minlength, t.maxlength = o.maxlength, t.pattern = o.pattern), e === $.EMAIL && (t.multiple = o.multiple), t;
2835
+ }), pt = L(() => ({
2792
2836
  valid: o.valid,
2793
2837
  invalid: o.invalid,
2794
2838
  modelValue: o.modelValue,
@@ -2796,14 +2840,14 @@ var Nr = ["for"], Pr = {
2796
2840
  stepUp: He,
2797
2841
  stepDown: Ue,
2798
2842
  clear: Ge
2799
- })), { HintSlot: dt, hasHintLabelOrSlot: ft, hasInvalidLabelOrSlot: pt, hintSlotScope: mt } = An(p, l), ht = jr($.PASSWORD, o, J), gt = jr($.NUMBER, o, J), _t = jr($.SEARCH, o, J);
2800
- function vt() {
2843
+ })), { HintSlot: mt, hasHintLabelOrSlot: ht, hasInvalidLabelOrSlot: gt, hintSlotScope: _t } = An(p, l), vt = jr($.PASSWORD, o, J), yt = jr($.NUMBER, o, J), bt = jr($.SEARCH, o, J);
2844
+ function xt() {
2801
2845
  Ze.value || (Ne.value = !0);
2802
2846
  }
2803
- let yt = L(() => {
2847
+ let St = L(() => {
2804
2848
  if (o.autoWidth) return { width: V.value === void 0 ? void 0 : `${String(V.value).length + 1}ch` };
2805
2849
  });
2806
- function bt(e) {
2850
+ function Ct(e) {
2807
2851
  switch (e.code) {
2808
2852
  case "ArrowUp":
2809
2853
  Ve.value && (He(), e.preventDefault());
@@ -2824,65 +2868,65 @@ var Nr = ["for"], Pr = {
2824
2868
  }, a(v(T)), 9, Nr)) : E("v-if", !0),
2825
2869
  P("div", {
2826
2870
  ref_key: "wrapperEl",
2827
- ref: W,
2871
+ ref: Ae,
2828
2872
  class: "vv-input-text__wrapper"
2829
2873
  }, [
2830
- t.$slots.before ? (d(), z("div", Pr, [n(t.$slots, "before", b(y(v(ut))))])) : E("v-if", !0),
2874
+ t.$slots.before ? (d(), z("div", Pr, [n(t.$slots, "before", b(y(v(pt))))])) : E("v-if", !0),
2831
2875
  P("div", {
2832
2876
  ref_key: "innerEl",
2833
- ref: Ae,
2877
+ ref: ke,
2834
2878
  class: "vv-input-text__inner",
2835
- onClick: oe(vt, ["stop"])
2879
+ onClick: oe(xt, ["stop"])
2836
2880
  }, [
2837
2881
  v(Ke) ? (d(), N(Q, f({ key: 0 }, v(Ke), { class: "vv-input-text__icon" }), null, 16)) : E("v-if", !0),
2838
2882
  P("input", f({
2839
2883
  id: v(ae),
2840
2884
  ref_key: "inputEl",
2841
- ref: ke
2842
- }, v(lt), {
2843
- style: v(yt),
2885
+ ref: W
2886
+ }, v(ft), {
2887
+ style: v(St),
2844
2888
  onKeyup: r[0] ||= (e) => s("keyup", e),
2845
- onKeydown: bt,
2889
+ onKeydown: Ct,
2846
2890
  onKeypress: r[1] ||= (e) => s("keypress", e)
2847
2891
  }), null, 16, Fr),
2848
- (v(I) || t.$slots.unit) && v(J) ? (d(), z("div", Ir, [n(t.$slots, "unit", b(y(v(ut))), () => [O(a(v(I)), 1)])])) : E("v-if", !0)
2892
+ (v(I) || t.$slots.unit) && v(J) ? (d(), z("div", Ir, [n(t.$slots, "unit", b(y(v(pt))), () => [O(a(v(I)), 1)])])) : E("v-if", !0)
2849
2893
  ], 512),
2850
- v(Je) ? (d(), N(Q, f({ key: 1 }, v(Je), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : v(Re) && !t.hideActions && !v(Ze) ? (d(), N(v(ht), {
2894
+ v(Je) ? (d(), N(Q, f({ key: 1 }, v(Je), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : v(Re) && !t.hideActions && !v(Ze) ? (d(), N(v(vt), {
2851
2895
  key: 2,
2852
2896
  onTogglePassword: ze
2853
- })) : v(Ve) && !t.hideActions && !v(Ze) ? (d(), N(v(gt), {
2897
+ })) : v(Ve) && !t.hideActions && !v(Ze) ? (d(), N(v(yt), {
2854
2898
  key: 3,
2855
2899
  onStepUp: He,
2856
2900
  onStepDown: Ue
2857
- })) : v(We) && !t.hideActions && !v(Ze) ? (d(), N(v(_t), {
2901
+ })) : v(We) && !t.hideActions && !v(Ze) ? (d(), N(v(bt), {
2858
2902
  key: 4,
2859
2903
  onClear: Ge
2860
2904
  })) : E("v-if", !0),
2861
- t.$slots.after ? (d(), z("div", Lr, [n(t.$slots, "after", b(y(v(ut))))])) : E("v-if", !0),
2862
- v(m) ? (d(), z("span", Rr, [n(t.$slots, "count", b(y(v(ut))), () => [O(a(v(Xe)), 1)])])) : E("v-if", !0)
2905
+ t.$slots.after ? (d(), z("div", Lr, [n(t.$slots, "after", b(y(v(pt))))])) : E("v-if", !0),
2906
+ v(m) ? (d(), z("span", Rr, [n(t.$slots, "count", b(y(v(pt))), () => [O(a(v(Xe)), 1)])])) : E("v-if", !0)
2863
2907
  ], 512),
2864
- ue(v(dt), {
2908
+ ue(v(mt), {
2865
2909
  id: v(se),
2866
2910
  class: "vv-input-text__hint"
2867
2911
  }, de({ _: 2 }, [
2868
2912
  t.$slots.hint ? {
2869
2913
  name: "hint",
2870
- fn: e(() => [n(t.$slots, "hint", b(y(v(mt))))]),
2914
+ fn: e(() => [n(t.$slots, "hint", b(y(v(_t))))]),
2871
2915
  key: "0"
2872
2916
  } : void 0,
2873
2917
  t.$slots.loading ? {
2874
2918
  name: "loading",
2875
- fn: e(() => [n(t.$slots, "loading", b(y(v(mt))))]),
2919
+ fn: e(() => [n(t.$slots, "loading", b(y(v(_t))))]),
2876
2920
  key: "1"
2877
2921
  } : void 0,
2878
2922
  t.$slots.valid ? {
2879
2923
  name: "valid",
2880
- fn: e(() => [n(t.$slots, "valid", b(y(v(mt))))]),
2924
+ fn: e(() => [n(t.$slots, "valid", b(y(v(_t))))]),
2881
2925
  key: "2"
2882
2926
  } : void 0,
2883
2927
  t.$slots.invalid ? {
2884
2928
  name: "invalid",
2885
- fn: e(() => [n(t.$slots, "invalid", b(y(v(mt))))]),
2929
+ fn: e(() => [n(t.$slots, "invalid", b(y(v(_t))))]),
2886
2930
  key: "3"
2887
2931
  } : void 0
2888
2932
  ]), 1032, ["id"]),
@@ -2890,7 +2934,7 @@ var Nr = ["for"], Pr = {
2890
2934
  key: 1,
2891
2935
  ref_key: "suggestionsDropdownEl",
2892
2936
  ref: Me,
2893
- reference: v(W),
2937
+ reference: v(Ae),
2894
2938
  "autofocus-first": !1,
2895
2939
  "trigger-width": !0,
2896
2940
  "top-layer": v(p).topLayer
@@ -3099,6 +3143,6 @@ var $r = {
3099
3143
  ...Dt
3100
3144
  }), $r.soft, ei.default, G.remove, vt.topLayer, { ...X }, K.bottom;
3101
3145
  //#endregion
3102
- export { Tn as a, Qr as c, gr as d, Vr as f, sn as i, hr as l, nn as m, Ft as n, In as o, Vn as p, xn as r, Jr as s, Q as t, er as u };
3146
+ export { Tn as a, Qr as c, hr as d, Vn as f, Ft as i, Jr as l, In as m, xn as n, Vr as o, gr as p, sn as r, nn as s, Q as t, er as u };
3103
3147
 
3104
- //# sourceMappingURL=index.es-dTcgyeM4.js.map
3148
+ //# sourceMappingURL=index.es-D7jsz1j2.js.map