@voicenter-team/voicenter-ui-plus 0.6.4 → 0.6.5

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.
@@ -46032,105 +46032,105 @@ const Zn = ele(), tle = ["aria-labelledby", "data-test"], rle = {
46032
46032
  },
46033
46033
  emits: ["show", "hide", "close", "maximize", "unmaximize"],
46034
46034
  setup(e, { expose: t, emit: r }) {
46035
- const n = yr(), a = e, i = r, o = L(a.visible), s = L(!1), l = L(), u = L(), c = L(null), d = L(null), f = A(() => a.appendTo === "self"), v = A(() => f.value ? null : a.appendTo), p = A(() => [
46035
+ const n = ki("vc-modal-"), a = ki("vc-modal-aria-"), i = yr(), o = e, s = r, l = L(o.visible), u = L(!1), c = L(), d = L(), f = L(null), v = L(null), p = A(() => o.appendTo === "self"), h = A(() => p.value ? null : o.appendTo), m = A(() => [
46036
46036
  ule,
46037
46037
  _()
46038
- ]), h = A(() => [
46038
+ ]), g = A(() => [
46039
46039
  cle,
46040
46040
  {
46041
- [dle]: a.fullScreen || a.maximizable && s.value
46041
+ [dle]: o.fullScreen || o.maximizable && u.value
46042
46042
  }
46043
- ]), m = A(() => ki()), g = A(() => ki()), x = A(() => a.header ? m.value + "_header" : "ariaLabelledId"), w = A(() => ["vc-dialog-content", a.contentClass, { "vc-dialog-no-footer": !a.footer && !n.footer }]), E = A(() => Ut(a.width)), F = A(() => Ut(a.maxWidth));
46043
+ ]), x = A(() => o.header ? n + "_header" : "ariaLabelledId"), w = A(() => ["vc-dialog-content", o.contentClass, { "vc-dialog-no-footer": !o.footer && !i.footer }]), E = A(() => Ut(o.width)), F = A(() => Ut(o.maxWidth));
46044
46044
  function S() {
46045
- if (!c.value && a.breakpoints) {
46045
+ if (!f.value && o.breakpoints) {
46046
46046
  let X = "";
46047
- for (const ee in a.breakpoints)
46047
+ for (const ee in o.breakpoints)
46048
46048
  X += `
46049
46049
  @media screen and (max-width: ${ee}) {
46050
- .vc-dialog[${g.value}] {
46051
- width: ${a.breakpoints[ee]} !important;
46050
+ .vc-dialog[${a}] {
46051
+ width: ${o.breakpoints[ee]} !important;
46052
46052
  }
46053
46053
  }
46054
46054
  `;
46055
- c.value = yY(X);
46055
+ f.value = yY(X);
46056
46056
  }
46057
46057
  }
46058
46058
  function b() {
46059
- c.value && (document.head.removeChild(c.value), c.value = null);
46059
+ f.value && (document.head.removeChild(f.value), f.value = null);
46060
46060
  }
46061
46061
  function k(X) {
46062
- a.dismissableMask && a.closable && l.value === X.target && B();
46062
+ o.dismissableMask && o.closable && c.value === X.target && B();
46063
46063
  }
46064
46064
  function _() {
46065
- const ee = ["left", "right", "top", "top-left", "top-right", "bottom", "bottom-left", "bottom-right"].find((j) => j === a.position);
46065
+ const ee = ["left", "right", "top", "top-left", "top-right", "bottom", "bottom-left", "bottom-right"].find((j) => j === o.position);
46066
46066
  return ee ? `vc-dialog-${ee}` : "";
46067
46067
  }
46068
46068
  function T(X) {
46069
- Zn.set(X), X.setAttribute(g.value, ""), Zn.setModal(m.value);
46069
+ Zn.set(X), X.setAttribute(a, ""), Zn.setModal(n);
46070
46070
  }
46071
46071
  function O() {
46072
- !l.value || !u.value || (l.value.style.overflowY = "hidden", l.value.style.zIndex = String(parseInt(u.value.style.zIndex, 10) - 1), i("show"), Te(), R());
46072
+ !c.value || !d.value || (c.value.style.overflowY = "hidden", c.value.style.zIndex = String(parseInt(d.value.style.zIndex, 10) - 1), s("show"), Te(), R());
46073
46073
  }
46074
46074
  function P() {
46075
46075
  et(() => {
46076
- !l.value || !u.value || (l.value.style.overflowY = "auto");
46076
+ !c.value || !d.value || (c.value.style.overflowY = "auto");
46077
46077
  });
46078
46078
  }
46079
46079
  function R() {
46080
- a.closable && a.closeOnEscape && M();
46080
+ o.closable && o.closeOnEscape && M();
46081
46081
  }
46082
46082
  function V(X) {
46083
46083
  const ee = Zn.lastModal();
46084
- X.code === "Escape" && ee === m.value && B();
46084
+ X.code === "Escape" && ee === n && B();
46085
46085
  }
46086
46086
  function M() {
46087
- d.value || (d.value = V, document.addEventListener("keydown", d.value));
46087
+ v.value || (v.value = V, document.addEventListener("keydown", v.value));
46088
46088
  }
46089
46089
  function K() {
46090
- l.value && (l.value.style.overflowY = "hidden", Ya.addClass(l.value, "vc-component-overlay-leave"));
46090
+ c.value && (c.value.style.overflowY = "hidden", Ya.addClass(c.value, "vc-component-overlay-leave"));
46091
46091
  }
46092
46092
  function W() {
46093
- i("hide");
46093
+ s("hide");
46094
46094
  }
46095
46095
  function fe(X) {
46096
- Zn.clear(X), Zn.removeModal(m.value), o.value = !1, s.value = !1, re();
46096
+ Zn.clear(X), Zn.removeModal(n), l.value = !1, u.value = !1, re();
46097
46097
  }
46098
46098
  function re() {
46099
46099
  pe();
46100
46100
  }
46101
46101
  function pe() {
46102
- d.value && (document.removeEventListener("keydown", d.value), d.value = null);
46102
+ v.value && (document.removeEventListener("keydown", v.value), v.value = null);
46103
46103
  }
46104
46104
  function Te() {
46105
- if (!u.value)
46105
+ if (!d.value)
46106
46106
  return;
46107
- const X = u.value.querySelector("[autofocus]");
46107
+ const X = d.value.querySelector("[autofocus]");
46108
46108
  X && X.focus();
46109
46109
  }
46110
46110
  function B() {
46111
- i("close", !1);
46111
+ s("close", !1);
46112
46112
  }
46113
46113
  function ie(X) {
46114
- s.value ? (s.value = !1, i("unmaximize", X)) : (s.value = !0, i("maximize", X));
46114
+ u.value ? (u.value = !1, s("unmaximize", X)) : (u.value = !0, s("maximize", X));
46115
46115
  }
46116
46116
  return lt(() => {
46117
- a.breakpoints && S();
46117
+ o.breakpoints && S();
46118
46118
  }), vs(() => {
46119
- a.visible && (o.value = a.visible);
46119
+ o.visible && (l.value = o.visible);
46120
46120
  }), fr(() => {
46121
- re(), b(), u.value && lle && Zn.clear(u.value), Zn.getModalByKey(m.value) && Zn.removeModal(m.value);
46121
+ re(), b(), d.value && lle && Zn.clear(d.value), Zn.getModalByKey(n) && Zn.removeModal(n);
46122
46122
  }), t({
46123
46123
  maximize: ie,
46124
46124
  close: B
46125
46125
  }), (X, ee) => (C(), ue(td, {
46126
- to: v.value,
46127
- disabled: f.value
46126
+ to: h.value,
46127
+ disabled: p.value
46128
46128
  }, [
46129
- o.value ? (C(), N("div", {
46129
+ l.value ? (C(), N("div", {
46130
46130
  key: 0,
46131
46131
  ref_key: "maskRef",
46132
- ref: l,
46133
- class: U([p.value, "vc-dialog-mask"]),
46132
+ ref: c,
46133
+ class: U([m.value, "vc-dialog-mask"]),
46134
46134
  onClick: Ze(k, ["stop", "self"])
46135
46135
  }, [
46136
46136
  se(Nr, {
@@ -46147,8 +46147,8 @@ const Zn = ele(), tle = ["aria-labelledby", "data-test"], rle = {
46147
46147
  X.visible ? (C(), N("div", {
46148
46148
  key: 0,
46149
46149
  ref_key: "containerRef",
46150
- ref: u,
46151
- class: U(h.value),
46150
+ ref: d,
46151
+ class: U(g.value),
46152
46152
  "aria-labelledby": x.value,
46153
46153
  style: Ie({
46154
46154
  width: E.value,
@@ -56502,31 +56502,31 @@ const Ua = Tve(), kve = { class: "vc-toast-message-text" }, Eve = { class: "vc-t
56502
56502
  teleportedTo: { default: "body" }
56503
56503
  },
56504
56504
  setup(e, { expose: t }) {
56505
- const r = e, n = L(), a = L([]), i = L(0), o = L(""), s = A(() => [
56506
- "vc-toast vc-toast-component vc-toast-" + (o.value || r.position)
56507
- ]), l = A(() => ki("vc-toast-id_")), u = (m) => {
56508
- m.id == null && (m.id = i.value++), a.value = [...a.value, m];
56505
+ const r = ki("vc-toast-id_"), n = e, a = L(), i = L([]), o = L(0), s = L(""), l = A(() => [
56506
+ "vc-toast vc-toast-component vc-toast-" + (s.value || n.position)
56507
+ ]), u = (m) => {
56508
+ m.id == null && (m.id = o.value++), i.value = [...i.value, m];
56509
56509
  }, c = (m) => {
56510
- const g = [...a.value], x = g.findIndex((w) => w.id === m.id);
56511
- x >= -1 && g.splice(x, 1), a.value = [...g];
56510
+ const g = [...i.value], x = g.findIndex((w) => w.id === m.id);
56511
+ x >= -1 && g.splice(x, 1), i.value = [...g];
56512
56512
  }, d = (m) => {
56513
- m.position && (o.value = m.position), r.group === m.group && u(m);
56513
+ m.position && (s.value = m.position), n.group === m.group && u(m);
56514
56514
  }, f = (m) => {
56515
- r.group === m && (a.value = []);
56515
+ n.group === m && (i.value = []);
56516
56516
  }, v = () => {
56517
- a.value = [];
56517
+ i.value = [];
56518
56518
  }, p = () => {
56519
- const m = n.value;
56520
- m && (m.setAttribute(l.value, ""), r.autoZIndex && Zn.set(m));
56519
+ const m = a.value;
56520
+ m && (m.setAttribute(r, ""), n.autoZIndex && Zn.set(m));
56521
56521
  }, h = () => {
56522
- const m = n.value;
56523
- m && m && r.autoZIndex && !a.value.length && Zn.clear(m);
56522
+ const m = a.value;
56523
+ m && m && n.autoZIndex && !i.value.length && Zn.clear(m);
56524
56524
  };
56525
56525
  return lt(() => {
56526
56526
  Ua.on("add", d), Ua.on("remove-group", f), Ua.on("remove-all-groups", v);
56527
56527
  }), fr(() => {
56528
- const m = n.value;
56529
- m && r.autoZIndex && Zn.clear(m), Ua.off("add", d), Ua.off("remove-group", f), Ua.off("remove-all-groups", v);
56528
+ const m = a.value;
56529
+ m && n.autoZIndex && Zn.clear(m), Ua.off("add", d), Ua.off("remove-group", f), Ua.off("remove-all-groups", v);
56530
56530
  }), t({
56531
56531
  add: u,
56532
56532
  remove: c,
@@ -56535,8 +56535,8 @@ const Ua = Tve(), kve = { class: "vc-toast-message-text" }, Eve = { class: "vc-t
56535
56535
  }), (m, g) => (C(), ue(td, { to: m.teleportedTo }, [
56536
56536
  D("div", it({
56537
56537
  ref_key: "containerRef",
56538
- ref: n,
56539
- class: s.value
56538
+ ref: a,
56539
+ class: l.value
56540
56540
  }, m.$attrs, { "data-test": m.dataTestName }), [
56541
56541
  se(fc, {
56542
56542
  name: "vc-toast-message",
@@ -56545,7 +56545,7 @@ const Ua = Tve(), kve = { class: "vc-toast-message-text" }, Eve = { class: "vc-t
56545
56545
  onAfterLeave: h
56546
56546
  }, {
56547
56547
  default: q(() => [
56548
- (C(!0), N(Fe, null, Ve(a.value, (x) => (C(), ue(Ove, {
56548
+ (C(!0), N(Fe, null, Ve(i.value, (x) => (C(), ue(Ove, {
56549
56549
  key: x.id,
56550
56550
  message: x,
56551
56551
  onClose: (w) => c(x)
@@ -57983,7 +57983,7 @@ function Nme() {
57983
57983
  t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
57984
57984
  }
57985
57985
  async function Ime() {
57986
- const e = await import("./webfontloader-BmU2zed_.mjs").then((r) => r.w), { default: t } = e;
57986
+ const e = await import("./webfontloader-jua6brcX.mjs").then((r) => r.w), { default: t } = e;
57987
57987
  t.load({
57988
57988
  google: {
57989
57989
  families: ["Heebo:400,500,600,700,800,900", "Inter:400,500,600,700,800,900"]
@@ -58686,4 +58686,4 @@ export {
58686
58686
  T3 as y,
58687
58687
  yp as z
58688
58688
  };
58689
- //# sourceMappingURL=entry-0e1UgF-u.mjs.map
58689
+ //# sourceMappingURL=entry-DmgWhyvy.mjs.map