@3squared/forge-ui-3 2.21.0 → 2.21.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,12 +1,12 @@
1
1
  import $e from "primevue/message";
2
- import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as f, renderSlot as F, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as M, createElementBlock as b, Fragment as U, mergeProps as _, renderList as L, mergeModels as E, useModel as N, computed as j, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
2
+ import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as f, renderSlot as F, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as M, createElementBlock as b, Fragment as U, mergeProps as j, renderList as L, mergeModels as E, useModel as N, computed as _, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
3
3
  import { Icon as I } from "@iconify/vue";
4
4
  import q from "primevue/button";
5
5
  import ze from "primevue/toast";
6
6
  import Pe from "primevue/autocomplete";
7
- import _e from "primevue/checkbox";
7
+ import je from "primevue/checkbox";
8
8
  import { useField as se } from "vee-validate";
9
- import je from "primevue/progressspinner";
9
+ import _e from "primevue/progressspinner";
10
10
  import Me from "primevue/dialog";
11
11
  import ae from "primevue/inputtext";
12
12
  import { vOnClickOutside as Ie } from "@vueuse/components";
@@ -1111,7 +1111,7 @@ const Qe = {
1111
1111
  pcFilterContainer: { root: "dropdown-item" },
1112
1112
  filterIcon: "d-none"
1113
1113
  }
1114
- }, _t = {
1114
+ }, jt = {
1115
1115
  treeSelect: {
1116
1116
  root: ({ props: e }) => ({
1117
1117
  class: [
@@ -1159,7 +1159,7 @@ const Qe = {
1159
1159
  filterIcon: "d-none"
1160
1160
  }
1161
1161
  }
1162
- }, jt = {
1162
+ }, _t = {
1163
1163
  fieldset: {
1164
1164
  root: () => ({
1165
1165
  class: [
@@ -1239,9 +1239,9 @@ const Qe = {
1239
1239
  pcTargetMoveDownButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1240
1240
  pcTargetMoveTopButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1241
1241
  pcTargetMoveUpButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1242
- sourceControls: "d-flex flex-column gap-1",
1243
- transferControls: "d-flex flex-column gap-1",
1244
- targetControls: "d-flex flex-column gap-1",
1242
+ sourceControls: "d-flex flex-column justify-content-center gap-1",
1243
+ transferControls: "d-flex flex-column justify-content-center gap-1",
1244
+ targetControls: "d-flex flex-column justify-content-center gap-1",
1245
1245
  pcListbox: {
1246
1246
  root: "",
1247
1247
  list: "list-unstyled list-group list-group-flush",
@@ -1311,8 +1311,8 @@ const Qe = {
1311
1311
  ...vt,
1312
1312
  ...zt,
1313
1313
  ...rt,
1314
- ...jt,
1315
1314
  ..._t,
1315
+ ...jt,
1316
1316
  ...Pt,
1317
1317
  ...Mt,
1318
1318
  ...It,
@@ -1387,7 +1387,7 @@ const Qe = {
1387
1387
  return (o, l) => {
1388
1388
  const n = q;
1389
1389
  return d(), b(U, null, [
1390
- k(n, _({ ...a, ...o.$attrs }, {
1390
+ k(n, j({ ...a, ...o.$attrs }, {
1391
1391
  loading: t.value,
1392
1392
  disabled: t.value || a.disabled,
1393
1393
  onClick: i
@@ -1399,7 +1399,7 @@ const Qe = {
1399
1399
  }), so = /* @__PURE__ */ z({
1400
1400
  __name: "ForgeAutoComplete",
1401
1401
  setup(e) {
1402
- return (t, a) => (d(), x(c(Pe), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1402
+ return (t, a) => (d(), x(c(Pe), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1403
1403
  default: f(() => [
1404
1404
  (d(!0), b(U, null, L(t.$slots, (i, o) => F(t.$slots, o, { slot: o })), 256))
1405
1405
  ]),
@@ -1450,16 +1450,16 @@ const Qe = {
1450
1450
  }
1451
1451
  ), n = (p, u) => {
1452
1452
  (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
1453
- }, s = j(() => o.value.length > 0);
1453
+ }, s = _(() => o.value.length > 0);
1454
1454
  return (p, u) => {
1455
- const h = _e;
1455
+ const h = je;
1456
1456
  return d(), b("div", Ot, [
1457
- m("div", _({
1457
+ m("div", j({
1458
1458
  class: "d-flex",
1459
1459
  "data-cy": "checkbox-container",
1460
1460
  onClick: u[2] || (u[2] = (r) => n(r, a.value))
1461
1461
  }, { ...p.$attrs }), [
1462
- k(h, _({ ...t }, {
1462
+ k(h, j({ ...t }, {
1463
1463
  binary: "",
1464
1464
  modelValue: a.value,
1465
1465
  "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
@@ -1493,7 +1493,7 @@ const Qe = {
1493
1493
  inLine: { type: Boolean, default: !1 }
1494
1494
  },
1495
1495
  setup(e) {
1496
- const t = e, a = j(() => ({
1496
+ const t = e, a = _(() => ({
1497
1497
  spin: () => ({
1498
1498
  class: [
1499
1499
  "spinner-border",
@@ -1504,7 +1504,7 @@ const Qe = {
1504
1504
  })
1505
1505
  }));
1506
1506
  return (i, o) => {
1507
- const l = je;
1507
+ const l = _e;
1508
1508
  return d(), b("div", {
1509
1509
  class: P(i.inLine ? "" : "forge-loader")
1510
1510
  }, [
@@ -1534,7 +1534,7 @@ const Qe = {
1534
1534
  iconName: {}
1535
1535
  },
1536
1536
  setup(e) {
1537
- const t = j(() => ({
1537
+ const t = _(() => ({
1538
1538
  [`link-${e.severity}`]: e.severity,
1539
1539
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1540
1540
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1543,7 +1543,7 @@ const Qe = {
1543
1543
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1544
1544
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1545
1545
  "icon-link icon-link-hover": e.animateIconOnHover
1546
- })), a = j(() => ({
1546
+ })), a = _(() => ({
1547
1547
  "order-2": e.positionIconEnd,
1548
1548
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1549
1549
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
@@ -1683,7 +1683,7 @@ const Lt = {
1683
1683
  }
1684
1684
  l.value = !1;
1685
1685
  }
1686
- }, w = j(() => ({
1686
+ }, w = _(() => ({
1687
1687
  root: [
1688
1688
  "modal modal-dialog modal-content h-auto m-0",
1689
1689
  {
@@ -1704,7 +1704,7 @@ const Lt = {
1704
1704
  }));
1705
1705
  return (g, C) => {
1706
1706
  const S = q, A = Me;
1707
- return d(), x(A, _(o, {
1707
+ return d(), x(A, j(o, {
1708
1708
  onMaximize: u,
1709
1709
  onUnmaximize: p,
1710
1710
  pt: w.value
@@ -1821,7 +1821,7 @@ const Lt = {
1821
1821
  ne(() => {
1822
1822
  r.value = a.value;
1823
1823
  });
1824
- const w = j(() => h.value.length > 0);
1824
+ const w = _(() => h.value.length > 0);
1825
1825
  return (g, C) => {
1826
1826
  const S = ae, A = q;
1827
1827
  return d(), b("div", {
@@ -1918,7 +1918,7 @@ const Lt = {
1918
1918
  unstyled: { type: Boolean }
1919
1919
  },
1920
1920
  setup(e) {
1921
- const t = e, a = j(() => ({
1921
+ const t = e, a = _(() => ({
1922
1922
  root: () => ({
1923
1923
  class: [
1924
1924
  "navbar container-fluid navbar-expand-lg",
@@ -1946,7 +1946,7 @@ const Lt = {
1946
1946
  ]
1947
1947
  })
1948
1948
  }));
1949
- return (i, o) => (d(), x(c(Ve), _({ ...t, ...i.$attrs }, {
1949
+ return (i, o) => (d(), x(c(Ve), j({ ...t, ...i.$attrs }, {
1950
1950
  pt: a.value,
1951
1951
  "data-cy": "navbar"
1952
1952
  }), ie({
@@ -2017,7 +2017,7 @@ const Lt = {
2017
2017
  class: P(o.orientation === "row" ? "col-12 mb-1" : "col"),
2018
2018
  "data-cy": "multiselect-container"
2019
2019
  }, [
2020
- k(n, _({
2020
+ k(n, j({
2021
2021
  modelValue: a.value,
2022
2022
  "onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p)
2023
2023
  }, { ...o.$attrs }, {
@@ -2172,7 +2172,7 @@ const Lt = {
2172
2172
  initialValue: a.value
2173
2173
  }), p = () => {
2174
2174
  s(null), a.value = null;
2175
- }, u = j(() => i.value.length > 0), h = j(() => ({
2175
+ }, u = _(() => i.value.length > 0), h = _(() => ({
2176
2176
  day: ({ context: r, props: w, attrs: g }) => ({
2177
2177
  class: [
2178
2178
  "d-flex justify-content-center align-items-center",
@@ -2285,7 +2285,7 @@ const Lt = {
2285
2285
  F(r.$slots, "before")
2286
2286
  ]),
2287
2287
  m("div", ra, [
2288
- k(g, _({ ...t, ...r.$attrs }, {
2288
+ k(g, j({ ...t, ...r.$attrs }, {
2289
2289
  pt: h.value,
2290
2290
  modelValue: a.value,
2291
2291
  "onUpdate:modelValue": [
@@ -2331,7 +2331,7 @@ const Lt = {
2331
2331
  currentCount: {}
2332
2332
  },
2333
2333
  setup(e) {
2334
- const t = e, a = j(() => t.maxCount - t.currentCount);
2334
+ const t = e, a = _(() => t.maxCount - t.currentCount);
2335
2335
  return (i, o) => (d(), b("div", {
2336
2336
  class: P(a.value < 0 ? "text-danger" : "")
2337
2337
  }, "Remaining characters: " + $(a.value), 3));
@@ -2363,7 +2363,7 @@ const Lt = {
2363
2363
  }
2364
2364
  return (l, n) => {
2365
2365
  const s = q;
2366
- return d(), b("form", _(l.$attrs, {
2366
+ return d(), b("form", j(l.$attrs, {
2367
2367
  novalidate: "",
2368
2368
  class: "position-relative shadow-sm border p-4 bg-white",
2369
2369
  onSubmit: Q(o, ["prevent"])
@@ -2456,12 +2456,12 @@ const Lt = {
2456
2456
  a.type == "number" ? s(h.value) : s(h);
2457
2457
  }, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
2458
2458
  initialValue: t.value
2459
- }), u = j(() => o.value.length > 0);
2459
+ }), u = _(() => o.value.length > 0);
2460
2460
  return W(() => l.value, (h) => {
2461
2461
  t.value = h;
2462
2462
  }, { immediate: !0 }), (h, r) => {
2463
2463
  const w = Ae, g = Oe, C = ae, S = oe, A = de, v = xe;
2464
- return a.type === "checkbox" ? (d(), x(ye, _({
2464
+ return a.type === "checkbox" ? (d(), x(ye, j({
2465
2465
  key: 0,
2466
2466
  id: a.name,
2467
2467
  label: a.fieldLabel
@@ -2482,7 +2482,7 @@ const Lt = {
2482
2482
  h.required ? (d(), b("span", ma, "*")) : T("", !0)
2483
2483
  ], 10, ua),
2484
2484
  F(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
2485
- a.type === "number" ? (d(), x(c(fe), _({
2485
+ a.type === "number" ? (d(), x(c(fe), j({
2486
2486
  key: 0,
2487
2487
  id: a.name
2488
2488
  }, h.$attrs, {
@@ -2492,7 +2492,7 @@ const Lt = {
2492
2492
  onInput: i,
2493
2493
  modelValue: t.value,
2494
2494
  "onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
2495
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, _({
2495
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, j({
2496
2496
  key: 1,
2497
2497
  id: a.name
2498
2498
  }, h.$attrs, {
@@ -2502,7 +2502,7 @@ const Lt = {
2502
2502
  "onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
2503
2503
  onInput: i,
2504
2504
  onBlur: c(p)
2505
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(g, _({
2505
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(g, j({
2506
2506
  key: 2,
2507
2507
  id: a.name
2508
2508
  }, h.$attrs, {
@@ -2513,7 +2513,7 @@ const Lt = {
2513
2513
  "onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
2514
2514
  onComplete: i,
2515
2515
  onBlur: c(p)
2516
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C, _({
2516
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C, j({
2517
2517
  key: 3,
2518
2518
  id: a.name
2519
2519
  }, h.$attrs, {
@@ -2523,19 +2523,19 @@ const Lt = {
2523
2523
  "onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
2524
2524
  onInput: i,
2525
2525
  onBlur: c(p)
2526
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(S, _({ key: 4 }, { ...a, ...h.$attrs }, {
2526
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(S, j({ key: 4 }, { ...a, ...h.$attrs }, {
2527
2527
  modelValue: t.value,
2528
2528
  "onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
2529
2529
  class: { "is-invalid": u.value }
2530
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, _({ key: 5 }, { ...a, ...h.$attrs }, {
2530
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, j({ key: 5 }, { ...a, ...h.$attrs }, {
2531
2531
  modelValue: t.value,
2532
2532
  "onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
2533
2533
  class: { "is-invalid": u.value }
2534
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa, _({ key: 6 }, { ...a, ...h.$attrs }, {
2534
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa, j({ key: 6 }, { ...a, ...h.$attrs }, {
2535
2535
  modelValue: t.value,
2536
2536
  "onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
2537
2537
  class: { "is-invalid": u.value }
2538
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(v, _({ key: 7 }, { ...a, ...h.$attrs }, {
2538
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(v, j({ key: 7 }, { ...a, ...h.$attrs }, {
2539
2539
  modelValue: t.value,
2540
2540
  "onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
2541
2541
  class: { "is-invalid": u.value }
@@ -2567,7 +2567,7 @@ const Lt = {
2567
2567
  unstyled: { type: Boolean }
2568
2568
  },
2569
2569
  setup(e) {
2570
- const t = e, a = j(() => ({
2570
+ const t = e, a = _(() => ({
2571
2571
  root: [
2572
2572
  "badge d-inline-flex align-items-center border me-1 p-1",
2573
2573
  {
@@ -2587,7 +2587,7 @@ const Lt = {
2587
2587
  }));
2588
2588
  return (i, o) => {
2589
2589
  const l = Ne;
2590
- return d(), x(l, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2590
+ return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2591
2591
  default: f(() => [
2592
2592
  (d(!0), b(U, null, L(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
2593
2593
  ]),
@@ -2611,7 +2611,7 @@ const Lt = {
2611
2611
  unstyled: { type: Boolean }
2612
2612
  },
2613
2613
  setup(e) {
2614
- const t = e, a = j(() => t.striped ? "progress-bar-striped" : null), i = j(() => t.animate ? "progress-bar-animated" : null), o = j(() => {
2614
+ const t = e, a = _(() => t.striped ? "progress-bar-striped" : null), i = _(() => t.animate ? "progress-bar-animated" : null), o = _(() => {
2615
2615
  switch (t.severity) {
2616
2616
  case "brand":
2617
2617
  return "bg-brand";
@@ -2632,7 +2632,7 @@ const Lt = {
2632
2632
  default:
2633
2633
  return "bg-primary";
2634
2634
  }
2635
- }), l = j(() => ({
2635
+ }), l = _(() => ({
2636
2636
  root: {
2637
2637
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2638
2638
  },
@@ -2642,7 +2642,7 @@ const Lt = {
2642
2642
  }));
2643
2643
  return (n, s) => {
2644
2644
  const p = Ue;
2645
- return d(), x(p, _({ ...n.$attrs, ...t }, { pt: l.value }), {
2645
+ return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
2646
2646
  default: f(() => [
2647
2647
  F(n.$slots, "default")
2648
2648
  ]),
@@ -3066,7 +3066,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
3066
3066
  return (h, r) => {
3067
3067
  const w = q;
3068
3068
  return d(), b("div", fa, [
3069
- k(c(va), _({
3069
+ k(c(va), j({
3070
3070
  ref_key: "drawingCanvas",
3071
3071
  ref: o,
3072
3072
  image: l.value,
@@ -3140,7 +3140,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
3140
3140
  },
3141
3141
  setup(e) {
3142
3142
  const t = e;
3143
- return (a, i) => (d(), b("div", _(a.$attrs, {
3143
+ return (a, i) => (d(), b("div", j(a.$attrs, {
3144
3144
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
3145
3145
  }), [
3146
3146
  m("span", ba, [
@@ -3166,7 +3166,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
3166
3166
  unstyled: { type: Boolean }
3167
3167
  },
3168
3168
  setup(e) {
3169
- const t = e, a = j(() => ({
3169
+ const t = e, a = _(() => ({
3170
3170
  header: {
3171
3171
  class: [
3172
3172
  "p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
@@ -3199,7 +3199,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
3199
3199
  default: f(() => [
3200
3200
  k(c(qe), null, {
3201
3201
  default: f(() => [
3202
- (d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), _({
3202
+ (d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), j({
3203
3203
  key: l.value,
3204
3204
  value: l.value,
3205
3205
  disabled: l.disabled
@@ -3239,7 +3239,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
3239
3239
  selected: { type: Boolean, default: !1 }
3240
3240
  },
3241
3241
  setup(e) {
3242
- const t = e, a = j(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = j(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
3242
+ const t = e, a = _(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = _(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
3243
3243
  return (o, l) => {
3244
3244
  const n = q;
3245
3245
  return t.clickable ? (d(), x(n, {
@@ -3291,7 +3291,7 @@ const wa = {
3291
3291
  setup(e, { emit: t }) {
3292
3292
  const a = t, i = e, o = (n) => {
3293
3293
  a("update:perPage", n.value);
3294
- }, l = j(() => {
3294
+ }, l = _(() => {
3295
3295
  const n = Math.ceil(i.total / i.perPage);
3296
3296
  return `${n} ${ee(n, "page")}`;
3297
3297
  });
@@ -3315,7 +3315,7 @@ const wa = {
3315
3315
  }), Fa = { class: "position-relative" }, Sa = { "data-cy": "above-table-slot" }, Ca = { class: "d-flex w-100" }, Ta = {
3316
3316
  class: "mx-auto",
3317
3317
  "data-cy": "empty-message"
3318
- }, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, ja = { class: "ms-auto" }, $o = /* @__PURE__ */ z({
3318
+ }, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, ja = { key: 0 }, _a = { class: "ms-auto" }, $o = /* @__PURE__ */ z({
3319
3319
  __name: "ForgeTable",
3320
3320
  props: {
3321
3321
  value: {},
@@ -3413,10 +3413,10 @@ const wa = {
3413
3413
  W(() => i.perPage, (v) => {
3414
3414
  v && (n.value = v, s.value.perPage = v);
3415
3415
  });
3416
- const p = j(() => i.totalRecords ?? i.value.length), u = j(() => {
3416
+ const p = _(() => i.totalRecords ?? i.value.length), u = _(() => {
3417
3417
  const v = Math.ceil(p.value / n.value);
3418
3418
  return `${v} ${ee(v, "page")}`;
3419
- }), h = j(() => ({
3419
+ }), h = _(() => ({
3420
3420
  thead: () => ({
3421
3421
  class: [
3422
3422
  {
@@ -3464,7 +3464,7 @@ const wa = {
3464
3464
  m("span", Sa, [
3465
3465
  F(v.$slots, "above-table")
3466
3466
  ]),
3467
- k(c(We), _({
3467
+ k(c(We), j({
3468
3468
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3469
3469
  }, { ...i, ...v.$attrs }, {
3470
3470
  pt: h.value,
@@ -3490,7 +3490,7 @@ const wa = {
3490
3490
  }, [
3491
3491
  m("div", za, [
3492
3492
  m("div", Pa, [
3493
- v.paginator && !v.legacyPaginationFooter ? (d(), b("span", _a, [
3493
+ v.paginator && !v.legacyPaginationFooter ? (d(), b("span", ja, [
3494
3494
  k(he, {
3495
3495
  total: p.value,
3496
3496
  "page-sizes": l.value,
@@ -3502,7 +3502,7 @@ const wa = {
3502
3502
  }, null, 8, ["total", "page-sizes", "per-page"])
3503
3503
  ])) : T("", !0)
3504
3504
  ]),
3505
- m("div", ja, [
3505
+ m("div", _a, [
3506
3506
  v.showClearButton ? (d(), x(c(q), {
3507
3507
  key: 0,
3508
3508
  outlined: "",
@@ -3657,10 +3657,10 @@ const wa = {
3657
3657
  sortDirection: "None",
3658
3658
  sortField: "",
3659
3659
  total: a.totalRecords ?? a.value.length
3660
- }), u = j(() => a.totalRecords ?? a.value.length), h = j(() => {
3660
+ }), u = _(() => a.totalRecords ?? a.value.length), h = _(() => {
3661
3661
  const y = Math.ceil(u.value / l.value);
3662
3662
  return `${y} ${ee(y, "page")}`;
3663
- }), r = j(() => ({
3663
+ }), r = _(() => ({
3664
3664
  root: "position-relative",
3665
3665
  table: (y) => ({
3666
3666
  class: [
@@ -3761,7 +3761,7 @@ const wa = {
3761
3761
  m("span", Ia, [
3762
3762
  F(y.$slots, "above-table")
3763
3763
  ]),
3764
- k(c(Ge), _({
3764
+ k(c(Ge), j({
3765
3765
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
3766
3766
  }, { ...a, ...y.$attrs }, {
3767
3767
  pt: r.value,
@@ -3896,19 +3896,19 @@ const wa = {
3896
3896
  return (o, l) => {
3897
3897
  const n = fe, s = q;
3898
3898
  return d(), b("div", La, [
3899
- o.dataType === "numeric" ? (d(), x(n, _({
3899
+ o.dataType === "numeric" ? (d(), x(n, j({
3900
3900
  key: 0,
3901
3901
  modelValue: t.value,
3902
3902
  "onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
3903
3903
  modelModifiers: { trim: !0 }
3904
- }, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, _({
3904
+ }, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, j({
3905
3905
  key: 1,
3906
3906
  modelValue: t.value,
3907
3907
  "onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
3908
3908
  }, o.$attrs, {
3909
3909
  "show-icon": !1,
3910
3910
  "show-on-focus": !0
3911
- }), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), _({
3911
+ }), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), j({
3912
3912
  key: 2,
3913
3913
  modelValue: t.value,
3914
3914
  "onUpdate:modelValue": l[2] || (l[2] = (p) => t.value = p)
@@ -3941,7 +3941,7 @@ const wa = {
3941
3941
  ])
3942
3942
  ]),
3943
3943
  _: 1
3944
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), _({
3944
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), j({
3945
3945
  key: 3,
3946
3946
  modelValue: t.value,
3947
3947
  "onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
@@ -3951,7 +3951,7 @@ const wa = {
3951
3951
  "option-label": o.optionLabel,
3952
3952
  "option-value": o.optionValue,
3953
3953
  filter: ""
3954
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), _({
3954
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), j({
3955
3955
  key: 4,
3956
3956
  modelValue: t.value,
3957
3957
  "onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
@@ -5176,7 +5176,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5176
5176
  }),
5177
5177
  emits: ["update:modelValue"],
5178
5178
  setup(e) {
5179
- const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = j(() => e.maxFileInput <= t.value.length), l = (n) => {
5179
+ const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = _(() => e.maxFileInput <= t.value.length), l = (n) => {
5180
5180
  t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
5181
5181
  };
5182
5182
  return (n, s) => {
@@ -5253,7 +5253,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5253
5253
  }),
5254
5254
  emits: ["update:modelValue"],
5255
5255
  setup(e) {
5256
- const t = N(e, "modelValue"), a = M(!1), i = j(() => e.maxFileInput <= t.value.length), o = (l) => {
5256
+ const t = N(e, "modelValue"), a = M(!1), i = _(() => e.maxFileInput <= t.value.length), o = (l) => {
5257
5257
  a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
5258
5258
  };
5259
5259
  return (l, n) => (d(), b("div", {
@@ -5285,7 +5285,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5285
5285
  uploadStatus: {}
5286
5286
  },
5287
5287
  setup(e) {
5288
- const t = e, a = j(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = j(() => {
5288
+ const t = e, a = _(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = _(() => {
5289
5289
  switch (t.uploadStatus) {
5290
5290
  case "InvalidFileType":
5291
5291
  return "Upload Failed: File type is not accepted.";
@@ -5350,7 +5350,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5350
5350
  }),
5351
5351
  emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5352
5352
  setup(e, { emit: t }) {
5353
- const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h = j(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), r = j(() => a.value.size <= e.maxFileSize), w = j(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), g = () => {
5353
+ const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h = _(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), r = _(() => a.value.size <= e.maxFileSize), w = _(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), g = () => {
5354
5354
  n.value != null && (C(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5355
5355
  }, C = () => {
5356
5356
  let v = n.value.split("."), B = qa.getExtension(w.value), D = n.value.split(".").pop();
@@ -5520,7 +5520,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5520
5520
  ]),
5521
5521
  _: 1
5522
5522
  })) : T("", !0),
5523
- k(Za, _(a, {
5523
+ k(Za, j(a, {
5524
5524
  modelValue: t.value,
5525
5525
  "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
5526
5526
  }), null, 16, ["modelValue"]),
@@ -5534,7 +5534,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5534
5534
  }, {
5535
5535
  default: f(() => [
5536
5536
  (d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
5537
- (d(), x(di, _({
5537
+ (d(), x(di, j({
5538
5538
  key: n.name,
5539
5539
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5540
5540
  file: t.value[s].file,
@@ -5653,7 +5653,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5653
5653
  severity: { default: "primary" }
5654
5654
  },
5655
5655
  setup(e) {
5656
- const t = e, a = j(() => ({
5656
+ const t = e, a = _(() => ({
5657
5657
  root: (i) => ({
5658
5658
  class: [
5659
5659
  "btn",
@@ -5674,7 +5674,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5674
5674
  ]
5675
5675
  })
5676
5676
  }));
5677
- return (i, o) => (d(), x(c(Ke), _({ ...i.$attrs, ...t }, {
5677
+ return (i, o) => (d(), x(c(Ke), j({ ...i.$attrs, ...t }, {
5678
5678
  severity: t.severity,
5679
5679
  pt: a.value
5680
5680
  }), null, 16, ["severity", "pt"]));
@@ -5726,10 +5726,10 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5726
5726
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5727
5727
  ]));
5728
5728
  }
5729
- }), _o = /* @__PURE__ */ z({
5729
+ }), jo = /* @__PURE__ */ z({
5730
5730
  __name: "ForgeConfirmPopup",
5731
5731
  setup(e) {
5732
- const t = j(() => ({
5732
+ const t = _(() => ({
5733
5733
  root: [
5734
5734
  "card w-fit-content position-absolute"
5735
5735
  ],
@@ -5740,7 +5740,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5740
5740
  pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
5741
5741
  pcAcceptButton: { root: "btn btn-primary btn-sm" }
5742
5742
  }));
5743
- return (a, i) => (d(), x(c(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5743
+ return (a, i) => (d(), x(c(Ze), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5744
5744
  default: f(() => [
5745
5745
  (d(!0), b(U, null, L(a.$slots, (o, l) => F(a.$slots, l, { slot: l })), 256))
5746
5746
  ]),
@@ -5753,7 +5753,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5753
5753
  }, Bi = {
5754
5754
  key: 0,
5755
5755
  class: "mb-1"
5756
- }, jo = /* @__PURE__ */ z({
5756
+ }, _o = /* @__PURE__ */ z({
5757
5757
  __name: "ForgePickList",
5758
5758
  props: /* @__PURE__ */ E({
5759
5759
  filterBy: {},
@@ -5823,14 +5823,15 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
5823
5823
  g && (i.value = g[1] ?? [], o.value = g[0] ?? [], a.value = [o.value, i.value]);
5824
5824
  },
5825
5825
  { once: !0 }
5826
- ), (g, C) => (d(), x(c(Xe), _({
5826
+ ), (g, C) => (d(), x(c(Xe), j({
5827
5827
  modelValue: a.value,
5828
5828
  "onUpdate:modelValue": C[2] || (C[2] = (S) => a.value = S)
5829
5829
  }, { ...g.$attrs, ...t }, {
5830
5830
  onMoveAllToSource: u,
5831
5831
  onMoveAllToTarget: h,
5832
5832
  onMoveToTarget: C[3] || (C[3] = (S) => s(S)),
5833
- onMoveToSource: C[4] || (C[4] = (S) => p(S))
5833
+ onMoveToSource: C[4] || (C[4] = (S) => p(S)),
5834
+ style: { height: "14rem" }
5834
5835
  }), {
5835
5836
  sourceheader: f(() => [
5836
5837
  g.sourceTitle ? (d(), b("div", ki, $(g.sourceTitle), 1)) : T("", !0),
@@ -5882,7 +5883,7 @@ export {
5882
5883
  ye as ForgeCheckbox,
5883
5884
  yo as ForgeChip,
5884
5885
  To as ForgeColumnCustomiser,
5885
- _o as ForgeConfirmPopup,
5886
+ jo as ForgeConfirmPopup,
5886
5887
  xe as ForgeDatepicker,
5887
5888
  Co as ForgeFileUploader,
5888
5889
  So as ForgeFilterHeader,
@@ -5896,7 +5897,7 @@ export {
5896
5897
  mo as ForgeNavbar,
5897
5898
  vo as ForgePageHeader,
5898
5899
  zo as ForgePanel,
5899
- jo as ForgePickList,
5900
+ _o as ForgePickList,
5900
5901
  xo as ForgeProgressBar,
5901
5902
  fo as ForgeRemainingCharacters,
5902
5903
  Mo as ForgeResolver,
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.21.0",
5
+ "version": "2.21.2",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -50,8 +50,8 @@
50
50
  "@cypress/code-coverage": "3.14.4",
51
51
  "@primevue/auto-import-resolver": "4.3.5",
52
52
  "@vitejs/plugin-vue": "5.2.4",
53
- "@vitest/coverage-v8": "3.2.1",
54
- "@vitest/ui": "3.2.1",
53
+ "@vitest/coverage-v8": "3.2.2",
54
+ "@vitest/ui": "3.2.2",
55
55
  "cypress": "14.4.1",
56
56
  "cypress-real-events": "1.14.0",
57
57
  "rollup-plugin-visualizer": "6.0.1",
@@ -62,7 +62,7 @@
62
62
  "vite-bundle-visualizer": "1.2.1",
63
63
  "vite-plugin-dts": "4.5.4",
64
64
  "vite-plugin-istanbul": "7.0.0",
65
- "vitest": "3.2.1",
65
+ "vitest": "3.2.2",
66
66
  "vue-drawing-canvas": "1.0.14"
67
67
  },
68
68
  "optionalDependencies": {
@@ -5,6 +5,3 @@
5
5
 
6
6
  @import "bootstrap/scss/bootstrap";
7
7
 
8
- .flex-1 {
9
- flex: 1
10
- }