@3squared/forge-ui-3 2.14.1 → 2.14.2

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.
@@ -1,5 +1,5 @@
1
1
  import Be from "primevue/message";
2
- import { defineComponent as S, openBlock as d, createBlock as b, normalizeProps as W, guardReactiveProps as G, withCtx as g, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as P, createElementBlock as v, Fragment as E, mergeProps as j, renderList as U, mergeModels as R, useModel as N, computed as T, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as te, onMounted as ne, isRef as Fe, withKeys as ie, normalizeStyle as Se, withModifiers as X, watch as le, h as Ce, useTemplateRef as ze } from "vue";
2
+ import { defineComponent as S, openBlock as d, createBlock as b, normalizeProps as W, guardReactiveProps as G, withCtx as g, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as $, ref as P, createElementBlock as v, Fragment as E, mergeProps as j, renderList as U, mergeModels as R, useModel as N, computed as T, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as te, h as Ce, useTemplateRef as ze } from "vue";
3
3
  import { Icon as I } from "@iconify/vue";
4
4
  import q from "primevue/button";
5
5
  import Te from "primevue/toast";
@@ -13,7 +13,7 @@ import { vOnClickOutside as Me } from "@vueuse/components";
13
13
  import Ve from "primevue/menubar";
14
14
  import re from "primevue/multiselect";
15
15
  import De from "primevue/datepicker";
16
- import ae from "primevue/select";
16
+ import ie from "primevue/select";
17
17
  import Oe from "primevue/inputmask";
18
18
  import Ne from "primevue/textarea";
19
19
  import fe from "primevue/inputnumber";
@@ -1256,7 +1256,7 @@ const Ze = {
1256
1256
  h(u(I), { icon: "bi:x" })
1257
1257
  ]),
1258
1258
  default: g(() => [
1259
- k(a.$slots, "default")
1259
+ $(a.$slots, "default")
1260
1260
  ]),
1261
1261
  _: 3
1262
1262
  }, 16);
@@ -1297,7 +1297,7 @@ const Ze = {
1297
1297
  setup(e) {
1298
1298
  return (t, a) => (d(), b(u(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1299
1299
  default: g(() => [
1300
- (d(!0), v(E, null, U(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1300
+ (d(!0), v(E, null, U(t.$slots, (i, l) => $(t.$slots, l, { slot: l })), 256))
1301
1301
  ]),
1302
1302
  _: 3
1303
1303
  }, 16));
@@ -1368,7 +1368,7 @@ const Ze = {
1368
1368
  onClick: c[1] || (c[1] = (r) => o(r, !a.value)),
1369
1369
  class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1370
1370
  }, [
1371
- k(p.$slots, "default", {}, () => [
1371
+ $(p.$slots, "default", {}, () => [
1372
1372
  M(B(t.label), 1)
1373
1373
  ])
1374
1374
  ], 10, Mt)
@@ -1452,7 +1452,7 @@ const Ze = {
1452
1452
  href: i.url,
1453
1453
  target: i.target
1454
1454
  }, [
1455
- k(i.$slots, "default", {}, () => [
1455
+ $(i.$slots, "default", {}, () => [
1456
1456
  i.iconName ? (d(), b(u(I), {
1457
1457
  key: 0,
1458
1458
  id: "link-icon",
@@ -1574,7 +1574,7 @@ const Ot = { key: 0 }, Nt = {
1574
1574
  }
1575
1575
  n.value = !1;
1576
1576
  }
1577
- }, $ = T(() => ({
1577
+ }, k = T(() => ({
1578
1578
  root: [
1579
1579
  "modal modal-dialog modal-content h-auto m-0",
1580
1580
  {
@@ -1596,8 +1596,8 @@ const Ot = { key: 0 }, Nt = {
1596
1596
  return d(), b(A, j(l, {
1597
1597
  onMaximize: c,
1598
1598
  onUnmaximize: p,
1599
- pt: $.value
1600
- }), te({
1599
+ pt: k.value
1600
+ }), ae({
1601
1601
  closeicon: g(() => [
1602
1602
  h(u(I), {
1603
1603
  "data-cy": "close-icon",
@@ -1637,8 +1637,8 @@ const Ot = { key: 0 }, Nt = {
1637
1637
  _: 1
1638
1638
  })) : C("", !0)
1639
1639
  ], 64)) : C("", !0),
1640
- k(z.$slots, w, W(G(_ || {}))),
1641
- n.value ? k(z.$slots, "loader", { key: 1 }, () => [
1640
+ $(z.$slots, w, W(G(_ || {}))),
1641
+ n.value ? $(z.$slots, "loader", { key: 1 }, () => [
1642
1642
  h(pe, { "data-cy": "loader" })
1643
1643
  ]) : C("", !0)
1644
1644
  ])
@@ -1688,7 +1688,7 @@ const Ot = { key: 0 }, Nt = {
1688
1688
  var z;
1689
1689
  i.value = !i.value, (z = l.value) == null || z.focus();
1690
1690
  }, o = async () => {
1691
- if ($.value)
1691
+ if (k.value)
1692
1692
  return !1;
1693
1693
  if (a.value = r.value, t.completeAction)
1694
1694
  try {
@@ -1708,21 +1708,21 @@ const Ot = { key: 0 }, Nt = {
1708
1708
  ne(() => {
1709
1709
  r.value = a.value;
1710
1710
  });
1711
- const $ = T(() => y.value.length > 0);
1711
+ const k = T(() => y.value.length > 0);
1712
1712
  return (z, D) => {
1713
1713
  const O = se, A = q;
1714
1714
  return d(), v("div", {
1715
1715
  id: t.name
1716
1716
  }, [
1717
1717
  z.readonly ? (d(), v("div", Lt, [
1718
- k(z.$slots, "default", {}, () => [
1718
+ $(z.$slots, "default", {}, () => [
1719
1719
  m("span", Rt, B(u(r)), 1)
1720
1720
  ])
1721
1721
  ])) : (d(), v("div", Et, [
1722
1722
  i.value ? (d(), v("div", Ut, [
1723
1723
  J((d(), v("div", qt, [
1724
- k(z.$slots, "editor", {
1725
- class: F({ "is-invalid": $.value }),
1724
+ $(z.$slots, "editor", {
1725
+ class: F({ "is-invalid": k.value }),
1726
1726
  editFinished: o,
1727
1727
  cancel: s,
1728
1728
  val: u(r)
@@ -1734,10 +1734,10 @@ const Ot = { key: 0 }, Nt = {
1734
1734
  "data-cy": "input",
1735
1735
  ref_key: "input",
1736
1736
  ref: l,
1737
- class: F({ "is-invalid": $.value }),
1737
+ class: F({ "is-invalid": k.value }),
1738
1738
  onKeydown: [
1739
- ie(o, ["enter"]),
1740
- ie(s, ["esc"])
1739
+ le(o, ["enter"]),
1740
+ le(s, ["esc"])
1741
1741
  ]
1742
1742
  }, null, 8, ["modelValue", "class"])
1743
1743
  ]),
@@ -1745,7 +1745,7 @@ const Ot = { key: 0 }, Nt = {
1745
1745
  icon: "bi:x-circle",
1746
1746
  class: "mx-2 cursor-pointer",
1747
1747
  onClick: p,
1748
- onKeydown: ie(p, ["enter"]),
1748
+ onKeydown: le(p, ["enter"]),
1749
1749
  "data-cy": "clear-icon"
1750
1750
  })
1751
1751
  ])), [
@@ -1757,9 +1757,9 @@ const Ot = { key: 0 }, Nt = {
1757
1757
  onClick: n,
1758
1758
  onFocus: n
1759
1759
  }, [
1760
- k(z.$slots, "default", {}, () => [
1760
+ $(z.$slots, "default", {}, () => [
1761
1761
  m("div", {
1762
- class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
1762
+ class: F(["pe-2 cursor-pointer", { "text-invalid": k.value }]),
1763
1763
  "data-cy": "value"
1764
1764
  }, B(u(r) ? u(r) : "Click to edit"), 3)
1765
1765
  ]),
@@ -1770,9 +1770,9 @@ const Ot = { key: 0 }, Nt = {
1770
1770
  default: g(() => [
1771
1771
  h(u(I), {
1772
1772
  icon: "bi:pencil",
1773
- class: F($.value ? "text-invalid" : "text-muted"),
1773
+ class: F(k.value ? "text-invalid" : "text-muted"),
1774
1774
  "data-cy": "edit-icon",
1775
- onKeydown: ie(n, ["enter"])
1775
+ onKeydown: le(n, ["enter"])
1776
1776
  }, null, 8, ["class"])
1777
1777
  ]),
1778
1778
  _: 1
@@ -1783,7 +1783,7 @@ const Ot = { key: 0 }, Nt = {
1783
1783
  "data-cy": "error",
1784
1784
  class: "text-invalid"
1785
1785
  }, B(u(c)), 513), [
1786
- [Z, $.value]
1786
+ [Z, k.value]
1787
1787
  ])
1788
1788
  ], 8, At);
1789
1789
  };
@@ -1836,20 +1836,20 @@ const Ot = { key: 0 }, Nt = {
1836
1836
  return (i, l) => (d(), b(u(Ve), j({ ...t, ...i.$attrs }, {
1837
1837
  pt: a.value,
1838
1838
  "data-cy": "navbar"
1839
- }), te({
1839
+ }), ae({
1840
1840
  start: g(() => [
1841
1841
  m("a", {
1842
1842
  href: i.logoUrl,
1843
1843
  class: "navbar-brand ms-3",
1844
1844
  "data-cy": "logo"
1845
1845
  }, [
1846
- k(i.$slots, "logo", {}, () => [
1846
+ $(i.$slots, "logo", {}, () => [
1847
1847
  l[0] || (l[0] = M(" Logo "))
1848
1848
  ])
1849
1849
  ], 8, Wt)
1850
1850
  ]),
1851
1851
  buttonicon: g(() => [
1852
- k(i.$slots, "buttonIcon", {}, () => [
1852
+ $(i.$slots, "buttonIcon", {}, () => [
1853
1853
  h(u(I), {
1854
1854
  icon: "bi:list",
1855
1855
  class: F(t.severity === "light" ? "text-black" : "text-white"),
@@ -1863,7 +1863,7 @@ const Ot = { key: 0 }, Nt = {
1863
1863
  U(i.$slots, (n, o) => ({
1864
1864
  name: o,
1865
1865
  fn: g((s) => [
1866
- k(i.$slots, o, W(G(s)))
1866
+ $(i.$slots, o, W(G(s)))
1867
1867
  ])
1868
1868
  }))
1869
1869
  ]), 1040, ["pt"]));
@@ -1914,11 +1914,11 @@ const Ot = { key: 0 }, Nt = {
1914
1914
  "data-cy": "multiselect"
1915
1915
  }), {
1916
1916
  default: g(() => [
1917
- (d(!0), v(E, null, U(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1917
+ (d(!0), v(E, null, U(l.$slots, (p, c) => $(l.$slots, c, { slot: c })), 256))
1918
1918
  ]),
1919
1919
  _: 3
1920
1920
  }, 16, ["modelValue", "options", "placeholder"]),
1921
- k(l.$slots, "after-multi-select")
1921
+ $(l.$slots, "after-multi-select")
1922
1922
  ], 2),
1923
1923
  m("div", {
1924
1924
  class: F(l.orientation === "row" ? "col-12" : "col"),
@@ -1934,7 +1934,7 @@ const Ot = { key: 0 }, Nt = {
1934
1934
  key: p.id,
1935
1935
  class: "p-2 item d-flex justify-content-between align-items-center"
1936
1936
  }, [
1937
- k(l.$slots, "list-item", { item: p }, () => [
1937
+ $(l.$slots, "list-item", { item: p }, () => [
1938
1938
  m("span", Jt, B(p.shortLabel ? p.shortLabel : p.label), 1)
1939
1939
  ]),
1940
1940
  l.canRemoveItemFromPreview ? (d(), b(s, {
@@ -1976,7 +1976,7 @@ const Ot = { key: 0 }, Nt = {
1976
1976
  return (a, i) => (d(), v("div", Xt, [
1977
1977
  m("h3", Qt, B(t.title), 1),
1978
1978
  m("div", ea, [
1979
- k(a.$slots, "default")
1979
+ $(a.$slots, "default")
1980
1980
  ])
1981
1981
  ]));
1982
1982
  }
@@ -2155,22 +2155,22 @@ const Ot = { key: 0 }, Nt = {
2155
2155
  ]
2156
2156
  })
2157
2157
  }));
2158
- return (r, $) => {
2158
+ return (r, k) => {
2159
2159
  const z = De;
2160
2160
  return d(), v(E, null, [
2161
2161
  m("div", ta, [
2162
2162
  m("span", aa, [
2163
- k(r.$slots, "before")
2163
+ $(r.$slots, "before")
2164
2164
  ]),
2165
2165
  m("div", ia, [
2166
2166
  h(z, j({ ...t, ...r.$attrs }, {
2167
2167
  pt: y.value,
2168
2168
  modelValue: a.value,
2169
2169
  "onUpdate:modelValue": [
2170
- $[0] || ($[0] = (D) => a.value = D),
2170
+ k[0] || (k[0] = (D) => a.value = D),
2171
2171
  u(n)
2172
2172
  ],
2173
- onBlur: $[1] || ($[1] = () => u(o)),
2173
+ onBlur: k[1] || (k[1] = () => u(o)),
2174
2174
  "input-class": { "datepicker-invalid": c.value }
2175
2175
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2176
2176
  J(h(u(I), {
@@ -2190,7 +2190,7 @@ const Ot = { key: 0 }, Nt = {
2190
2190
  ])
2191
2191
  ]),
2192
2192
  m("span", la, [
2193
- k(r.$slots, "after")
2193
+ $(r.$slots, "after")
2194
2194
  ])
2195
2195
  ]),
2196
2196
  J(m("small", {
@@ -2247,7 +2247,7 @@ const Ot = { key: 0 }, Nt = {
2247
2247
  onSubmit: X(l, ["prevent"])
2248
2248
  }), [
2249
2249
  n.hideTitle ? C("", !0) : (d(), v(E, { key: 0 }, [
2250
- k(n.$slots, "title", {}, () => [
2250
+ $(n.$slots, "title", {}, () => [
2251
2251
  m("h3", {
2252
2252
  class: F(n.titleClass),
2253
2253
  "data-cy": "form-title"
@@ -2261,7 +2261,7 @@ const Ot = { key: 0 }, Nt = {
2261
2261
  "data-cy": "error"
2262
2262
  }, {
2263
2263
  default: g(() => [
2264
- k(n.$slots, "error", {
2264
+ $(n.$slots, "error", {
2265
2265
  error: i.value.message
2266
2266
  }, () => [
2267
2267
  M(B(i.value.message), 1)
@@ -2269,9 +2269,9 @@ const Ot = { key: 0 }, Nt = {
2269
2269
  ]),
2270
2270
  _: 3
2271
2271
  })) : C("", !0),
2272
- k(n.$slots, "default"),
2272
+ $(n.$slots, "default"),
2273
2273
  m("div", na, [
2274
- k(n.$slots, "cancel", {}, () => [
2274
+ $(n.$slots, "cancel", {}, () => [
2275
2275
  n.hideCancel ? C("", !0) : (d(), b(s, {
2276
2276
  key: 0,
2277
2277
  "data-cy": "cancel-btn",
@@ -2286,7 +2286,7 @@ const Ot = { key: 0 }, Nt = {
2286
2286
  _: 1
2287
2287
  }))
2288
2288
  ]),
2289
- k(n.$slots, "submit", { submit: l }, () => [
2289
+ $(n.$slots, "submit", { submit: l }, () => [
2290
2290
  h(s, {
2291
2291
  "data-cy": "submit-btn",
2292
2292
  type: "submit",
@@ -2335,10 +2335,10 @@ const Ot = { key: 0 }, Nt = {
2335
2335
  }, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
2336
2336
  initialValue: t.value
2337
2337
  }), c = T(() => l.value.length > 0);
2338
- return le(() => n.value, (y) => {
2338
+ return te(() => n.value, (y) => {
2339
2339
  t.value = y;
2340
2340
  }, { immediate: !0 }), (y, r) => {
2341
- const $ = Ne, z = Oe, D = se, O = ae, A = re, x = xe;
2341
+ const k = Ne, z = Oe, D = se, O = ie, A = re, x = xe;
2342
2342
  return a.type === "checkbox" ? (d(), b(ye, j({
2343
2343
  key: 0,
2344
2344
  id: a.name,
@@ -2359,7 +2359,7 @@ const Ot = { key: 0 }, Nt = {
2359
2359
  M(B(a.fieldLabel) + " ", 1),
2360
2360
  y.required ? (d(), v("span", ra, "*")) : C("", !0)
2361
2361
  ], 10, sa),
2362
- k(y.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2362
+ $(y.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2363
2363
  a.type === "number" ? (d(), b(u(fe), j({
2364
2364
  key: 0,
2365
2365
  id: a.name
@@ -2370,7 +2370,7 @@ const Ot = { key: 0 }, Nt = {
2370
2370
  onInput: i,
2371
2371
  modelValue: t.value,
2372
2372
  "onUpdate:modelValue": r[1] || (r[1] = (w) => t.value = w)
2373
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b($, j({
2373
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b(k, j({
2374
2374
  key: 1,
2375
2375
  id: a.name
2376
2376
  }, y.$attrs, {
@@ -2467,7 +2467,7 @@ const Ot = { key: 0 }, Nt = {
2467
2467
  const n = Ae;
2468
2468
  return d(), b(n, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2469
2469
  default: g(() => [
2470
- (d(!0), v(E, null, U(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
2470
+ (d(!0), v(E, null, U(i.$slots, (o, s) => $(i.$slots, s, { slot: s })), 256))
2471
2471
  ]),
2472
2472
  _: 3
2473
2473
  }, 16, ["pt"]);
@@ -2522,7 +2522,7 @@ const Ot = { key: 0 }, Nt = {
2522
2522
  const p = Ee;
2523
2523
  return d(), b(p, j({ ...o.$attrs, ...t }, { pt: n.value }), {
2524
2524
  default: g(() => [
2525
- k(o.$slots, "default")
2525
+ $(o.$slots, "default")
2526
2526
  ]),
2527
2527
  _: 3
2528
2528
  }, 16, ["pt"]);
@@ -2845,8 +2845,8 @@ var da = /* @__PURE__ */ S({
2845
2845
  var p = t.split(o).filter((O) => O.length > 0);
2846
2846
  for (let O = 0; O < p.length; O++) {
2847
2847
  for (var c = p[O].split(s).filter((A) => A.length > 0), y = "", r = 0; r < c.length; r++) {
2848
- var $ = y + c[r] + " ", z = e.measureText($), D = z.width;
2849
- D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = c[r] + " ", i += n) : y = $;
2848
+ var k = y + c[r] + " ", z = e.measureText(k), D = z.width;
2849
+ D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = c[r] + " ", i += n) : y = k;
2850
2850
  }
2851
2851
  this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += c.length > 0 ? n : 0;
2852
2852
  }
@@ -2875,8 +2875,8 @@ var da = /* @__PURE__ */ S({
2875
2875
  } else if (a.type === "Text") {
2876
2876
  let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2877
2877
  if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
2878
- let r, $;
2879
- a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(r, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, $ * -1);
2878
+ let r, k;
2879
+ a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? k = a.y + Math.floor(a.fontStyle.lineHeight / 2) : k = a.y, t.translate(r, k), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, k * -1);
2880
2880
  }
2881
2881
  a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
2882
2882
  let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
@@ -2942,7 +2942,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
2942
2942
  i("save", l.value.isEmpty());
2943
2943
  };
2944
2944
  return (y, r) => {
2945
- const $ = q;
2945
+ const k = q;
2946
2946
  return d(), v("div", pa, [
2947
2947
  h(u(da), j({
2948
2948
  ref_key: "drawingCanvas",
@@ -2958,7 +2958,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
2958
2958
  "line-join": y.lineJoin
2959
2959
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2960
2960
  m("div", ca, [
2961
- a.showUndo ? (d(), b($, {
2961
+ a.showUndo ? (d(), b(k, {
2962
2962
  key: 0,
2963
2963
  onClick: p,
2964
2964
  outlined: "",
@@ -2969,7 +2969,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
2969
2969
  ])),
2970
2970
  _: 1
2971
2971
  })) : C("", !0),
2972
- a.showRedo ? (d(), b($, {
2972
+ a.showRedo ? (d(), b(k, {
2973
2973
  key: 1,
2974
2974
  onClick: s,
2975
2975
  outlined: "",
@@ -2980,7 +2980,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
2980
2980
  ])),
2981
2981
  _: 1
2982
2982
  })) : C("", !0),
2983
- a.showClear ? (d(), b($, {
2983
+ a.showClear ? (d(), b(k, {
2984
2984
  key: 2,
2985
2985
  onClick: o,
2986
2986
  outlined: "",
@@ -2991,7 +2991,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
2991
2991
  ])),
2992
2992
  _: 1
2993
2993
  })) : C("", !0),
2994
- a.showSave ? (d(), b($, {
2994
+ a.showSave ? (d(), b(k, {
2995
2995
  key: 3,
2996
2996
  onClick: c,
2997
2997
  class: "ms-auto",
@@ -3018,7 +3018,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
3018
3018
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
3019
3019
  }), [
3020
3020
  m("span", ua, [
3021
- k(a.$slots, "default")
3021
+ $(a.$slots, "default")
3022
3022
  ])
3023
3023
  ], 16));
3024
3024
  }
@@ -3094,7 +3094,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
3094
3094
  value: n.value
3095
3095
  }, {
3096
3096
  default: g(() => [
3097
- k(i.$slots, "step" + n.value)
3097
+ $(i.$slots, "step" + n.value)
3098
3098
  ]),
3099
3099
  _: 2
3100
3100
  }, 1032, ["value"]))), 128))
@@ -3126,7 +3126,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
3126
3126
  }, {
3127
3127
  default: g(() => [
3128
3128
  m("div", va, [
3129
- k(l.$slots, "default", {}, () => [
3129
+ $(l.$slots, "default", {}, () => [
3130
3130
  n[0] || (n[0] = M("Tile Content"))
3131
3131
  ])
3132
3132
  ])
@@ -3138,7 +3138,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
3138
3138
  "data-cy": "tile"
3139
3139
  }, [
3140
3140
  m("div", fa, [
3141
- k(l.$slots, "default", {}, () => [
3141
+ $(l.$slots, "default", {}, () => [
3142
3142
  n[1] || (n[1] = M("Tile Content"))
3143
3143
  ])
3144
3144
  ])
@@ -3173,7 +3173,7 @@ const ga = {
3173
3173
  return (o, s) => (d(), v("div", ga, [
3174
3174
  s[2] || (s[2] = M(" Number of results per page ")),
3175
3175
  m("div", ba, [
3176
- h(u(ae), {
3176
+ h(u(ie), {
3177
3177
  options: i.pageSizes,
3178
3178
  "model-value": i.perPage,
3179
3179
  class: "page-size",
@@ -3315,7 +3315,7 @@ const ga = {
3315
3315
  for (const x in i.filters)
3316
3316
  typeof i.filters[x] == "string" ? i.filters[x] = "" : i.filters[x].value = null;
3317
3317
  D(i.filters);
3318
- }, $ = () => {
3318
+ }, k = () => {
3319
3319
  l.value.exportCSV();
3320
3320
  }, z = (x) => {
3321
3321
  var w;
@@ -3327,11 +3327,11 @@ const ga = {
3327
3327
  }, A = () => {
3328
3328
  s.value.perPage = o.value, a("update:tableContext", s.value);
3329
3329
  };
3330
- return le(() => i.filters, (x) => {
3330
+ return te(() => i.filters, (x) => {
3331
3331
  s.value.filters = x, a("update:tableContext", s.value);
3332
3332
  }, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (x, w) => (d(), v("div", ha, [
3333
3333
  m("span", wa, [
3334
- k(x.$slots, "above-table")
3334
+ $(x.$slots, "above-table")
3335
3335
  ]),
3336
3336
  h(u(We), j({
3337
3337
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
@@ -3347,7 +3347,7 @@ const ga = {
3347
3347
  onSort: z,
3348
3348
  onPage: O,
3349
3349
  showHeaders: ""
3350
- }), te({
3350
+ }), ae({
3351
3351
  empty: g(() => [
3352
3352
  m("div", ka, [
3353
3353
  m("h5", $a, B(x.emptyMessage ?? "No items Found."), 1)
@@ -3392,7 +3392,7 @@ const ga = {
3392
3392
  x.showExporterButton ? (d(), b(u(q), {
3393
3393
  key: 1,
3394
3394
  outlined: "",
3395
- onClick: $,
3395
+ onClick: k,
3396
3396
  "data-cy": "exporter"
3397
3397
  }, {
3398
3398
  default: g(() => [
@@ -3405,20 +3405,20 @@ const ga = {
3405
3405
  ]),
3406
3406
  _: 1
3407
3407
  })) : C("", !0),
3408
- k(x.$slots, "column-customiser")
3408
+ $(x.$slots, "column-customiser")
3409
3409
  ])
3410
3410
  ])
3411
3411
  ], 2)
3412
3412
  ]),
3413
3413
  default: g(() => [
3414
- k(x.$slots, "default")
3414
+ $(x.$slots, "default")
3415
3415
  ]),
3416
3416
  _: 2
3417
3417
  }, [
3418
3418
  U(x.$slots, (_, f) => ({
3419
3419
  name: f,
3420
3420
  fn: g((V) => [
3421
- k(x.$slots, f, W(G(V || {})))
3421
+ $(x.$slots, f, W(G(V || {})))
3422
3422
  ])
3423
3423
  })),
3424
3424
  x.legacyPaginationFooter ? {
@@ -3429,7 +3429,7 @@ const ga = {
3429
3429
  "data-cy": "legacy-page-size"
3430
3430
  }, [
3431
3431
  w[4] || (w[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3432
- h(u(ae), {
3432
+ h(u(ie), {
3433
3433
  options: n.value,
3434
3434
  modelValue: o.value,
3435
3435
  "onUpdate:modelValue": w[1] || (w[1] = (_) => o.value = _),
@@ -3559,10 +3559,10 @@ const ga = {
3559
3559
  }
3560
3560
  ]
3561
3561
  }));
3562
- le(() => a.parentExpanderFullRow, (f) => {
3563
- f ? $() : z();
3562
+ te(() => a.parentExpanderFullRow, (f) => {
3563
+ f ? k() : z();
3564
3564
  });
3565
- const $ = () => {
3565
+ const k = () => {
3566
3566
  a.parentExpanderFullRow && setTimeout(
3567
3567
  () => {
3568
3568
  const f = Array.from(
@@ -3603,25 +3603,27 @@ const ga = {
3603
3603
  A(a.filters);
3604
3604
  }, O = (f) => {
3605
3605
  var V;
3606
- p.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = f.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", f), $();
3606
+ p.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = f.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", f), k();
3607
3607
  }, A = (f) => {
3608
- p.value.filters = f, i("update:tableContext", p.value), i("update:filters", f), $();
3608
+ p.value.filters = f, i("update:tableContext", p.value), i("update:filters", f), k();
3609
3609
  }, x = (f) => {
3610
- p.value.page = s.value = f.page, _(), i("update:tableContext", p.value), i("page", f), $();
3610
+ p.value.page = s.value = f.page, _(), i("update:tableContext", p.value), i("page", f), k();
3611
3611
  }, w = () => {
3612
- p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), _(), i("update:tableContext", p.value), $();
3612
+ p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), _(), i("update:tableContext", p.value), k();
3613
3613
  };
3614
- le(() => a.filters, (f) => {
3614
+ te(() => a.filters, (f) => {
3615
3615
  p.value.filters = f, i("update:tableContext", p.value);
3616
- }, { deep: !0 }), ne(() => {
3617
- $(), i("update:tableContext", p.value);
3616
+ }, { deep: !0 }), te(() => a.value, () => {
3617
+ k();
3618
+ }), ne(() => {
3619
+ k(), i("update:tableContext", p.value);
3618
3620
  });
3619
3621
  const _ = () => {
3620
3622
  o.value = s.value * n.value;
3621
3623
  };
3622
3624
  return (f, V) => (d(), v("div", za, [
3623
3625
  m("span", Ta, [
3624
- k(f.$slots, "above-table")
3626
+ $(f.$slots, "above-table")
3625
3627
  ]),
3626
3628
  h(u(Ge), j({
3627
3629
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
@@ -3633,10 +3635,10 @@ const ga = {
3633
3635
  "onUpdate:filters": A,
3634
3636
  onSort: O,
3635
3637
  onPage: x,
3636
- onNodeExpand: V[2] || (V[2] = () => $()),
3638
+ onNodeExpand: V[2] || (V[2] = () => k()),
3637
3639
  showHeaders: "",
3638
3640
  first: o.value
3639
- }), te({
3641
+ }), ae({
3640
3642
  header: g(() => [
3641
3643
  m("div", {
3642
3644
  class: F(a.loading ? "opacity-50" : "")
@@ -3672,20 +3674,20 @@ const ga = {
3672
3674
  ]),
3673
3675
  _: 1
3674
3676
  })) : C("", !0),
3675
- k(f.$slots, "column-customiser")
3677
+ $(f.$slots, "column-customiser")
3676
3678
  ])
3677
3679
  ])
3678
3680
  ], 2)
3679
3681
  ]),
3680
3682
  default: g(() => [
3681
- k(f.$slots, "default")
3683
+ $(f.$slots, "default")
3682
3684
  ]),
3683
3685
  _: 2
3684
3686
  }, [
3685
3687
  U(f.$slots, (L, ve) => ({
3686
3688
  name: ve,
3687
3689
  fn: g(($e) => [
3688
- k(f.$slots, ve, W(G($e || {})))
3690
+ $(f.$slots, ve, W(G($e || {})))
3689
3691
  ])
3690
3692
  })),
3691
3693
  f.legacyPaginationFooter ? {
@@ -3696,7 +3698,7 @@ const ga = {
3696
3698
  "data-cy": "legacy-page-size"
3697
3699
  }, [
3698
3700
  V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3699
- h(u(ae), {
3701
+ h(u(ie), {
3700
3702
  options: l.value,
3701
3703
  modelValue: n.value,
3702
3704
  "onUpdate:modelValue": V[1] || (V[1] = (L) => n.value = L),
@@ -3764,7 +3766,7 @@ const ga = {
3764
3766
  }, l.$attrs, {
3765
3767
  "show-icon": !1,
3766
3768
  "show-on-focus": !0
3767
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(u(ae), j({
3769
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(u(ie), j({
3768
3770
  key: 2,
3769
3771
  modelValue: t.value,
3770
3772
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -5009,7 +5011,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5009
5011
  return (o, s) => {
5010
5012
  const p = q;
5011
5013
  return d(), v("div", Ua, [
5012
- k(o.$slots, "message"),
5014
+ $(o.$slots, "message"),
5013
5015
  m("div", null, [
5014
5016
  m("input", {
5015
5017
  id: "file-input",
@@ -5025,7 +5027,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5025
5027
  id: "file-input-button",
5026
5028
  for: "file-input"
5027
5029
  }, [
5028
- k(o.$slots, "button-content", {}, () => [
5030
+ $(o.$slots, "button-content", {}, () => [
5029
5031
  h(u(I), {
5030
5032
  icon: "bi:upload",
5031
5033
  class: "me-2",
@@ -5098,7 +5100,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5098
5100
  }),
5099
5101
  o[2] || (o[2] = M(" Drag and drop files here "))
5100
5102
  ])) : (d(), v("div", Wa, [
5101
- k(n.$slots, "default")
5103
+ $(n.$slots, "default")
5102
5104
  ]))
5103
5105
  ], 34));
5104
5106
  }
@@ -5173,10 +5175,10 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5173
5175
  }),
5174
5176
  emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5175
5177
  setup(e, { emit: t }) {
5176
- const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = P(a.value.name), s = P(""), p = P(0), c = P(), y = T(() => e.acceptedFileTypes.some(({ fileType: x }) => x === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), $ = T(() => a.value.type ? a.value.type : Ea().getType(a.value.name)), z = () => {
5178
+ const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = P(a.value.name), s = P(""), p = P(0), c = P(), y = T(() => e.acceptedFileTypes.some(({ fileType: x }) => x === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), k = T(() => a.value.type ? a.value.type : Ea().getType(a.value.name)), z = () => {
5177
5179
  o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5178
5180
  }, D = () => {
5179
- let x = o.value.split("."), w = Da.getExtension($.value), _ = o.value.split(".").pop();
5181
+ let x = o.value.split("."), w = Da.getExtension(k.value), _ = o.value.split(".").pop();
5180
5182
  x.length === 1 ? _ && _.length > 0 && (o.value = [o.value, w].join(".")) : x.length > 1 && _ !== w && (o.value = o.value.replace(_, w));
5181
5183
  }, O = async () => {
5182
5184
  if (!y.value || !r.value) {
@@ -5195,7 +5197,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5195
5197
  abortSignal: c.value.signal,
5196
5198
  onProgress: (V) => p.value = V.loadedBytes,
5197
5199
  blobHTTPHeaders: {
5198
- blobContentType: $.value,
5200
+ blobContentType: k.value,
5199
5201
  blobContentDisposition: `attachment; filename="${a.value.name}"`
5200
5202
  },
5201
5203
  tags: { temp: "true" }
@@ -5432,7 +5434,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5432
5434
  setup(e) {
5433
5435
  return (t, a) => {
5434
5436
  const i = Je;
5435
- return d(), b(i, W(G({ ...t.$attrs })), te({
5437
+ return d(), b(i, W(G({ ...t.$attrs })), ae({
5436
5438
  toggleicon: g(({ collapsed: l }) => [
5437
5439
  l ? (d(), b(u(I), {
5438
5440
  key: 0,
@@ -5450,7 +5452,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
5450
5452
  U(t.$slots, (l, n) => ({
5451
5453
  name: n,
5452
5454
  fn: g((o) => [
5453
- k(t.$slots, n, W(G(o)))
5455
+ $(t.$slots, n, W(G(o)))
5454
5456
  ])
5455
5457
  }))
5456
5458
  ]), 1040);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@3squared/forge-ui-3",
3
3
  "repository": "https://github.com/3Squared/ForgeUI-3",
4
4
  "description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
5
- "version": "2.14.1",
5
+ "version": "2.14.2",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@azure/abort-controller": "^2.0.0",
37
37
  "@azure/storage-blob": "12.26.0",
38
- "@iconify/vue": "4.2.0",
38
+ "@iconify/vue": "4.3.0",
39
39
  "@popperjs/core": "2.11.8",
40
40
  "@vueuse/components": "^13.0.0",
41
41
  "bootstrap": "^5.3.3",
@@ -58,7 +58,7 @@
58
58
  "sass": "1.85.1",
59
59
  "typescript": "5.8.2",
60
60
  "unplugin-vue-components": "28.4.1",
61
- "vite": "6.2.1",
61
+ "vite": "6.2.2",
62
62
  "vite-bundle-visualizer": "1.2.1",
63
63
  "vite-plugin-dts": "4.5.3",
64
64
  "vite-plugin-istanbul": "7.0.0",