@3squared/forge-ui-3 2.25.1 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Se from "primevue/message";
|
|
2
|
-
import { defineComponent as z, createBlock as y, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as v, renderSlot as C, createVNode as h, unref as p, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as g, Fragment as E, mergeProps as j, renderList as q, mergeModels as
|
|
2
|
+
import { defineComponent as z, createBlock as y, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as v, renderSlot as C, createVNode as h, unref as p, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as g, Fragment as E, mergeProps as j, renderList as q, mergeModels as R, useModel as N, computed as M, withDirectives as K, createTextVNode as O, toDisplayString as B, vShow as X, createSlots as le, onMounted as se, withKeys as ne, isRef as Fe, normalizeStyle as Ce, withModifiers as Q, watch as W, h as Te, useTemplateRef as ze } from "vue";
|
|
3
3
|
import { Icon as V } from "@iconify/vue";
|
|
4
|
-
import
|
|
4
|
+
import _ from "primevue/button";
|
|
5
5
|
import Pe from "primevue/toast";
|
|
6
6
|
import je from "primevue/autocomplete";
|
|
7
7
|
import Me from "primevue/checkbox";
|
|
@@ -20,8 +20,8 @@ import be from "primevue/inputnumber";
|
|
|
20
20
|
import Ue from "primevue/chip";
|
|
21
21
|
import Ee from "primevue/progressbar";
|
|
22
22
|
import qe from "primevue/step";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import Re from "primevue/stepper";
|
|
24
|
+
import _e from "primevue/steplist";
|
|
25
25
|
import He from "primevue/steppanel";
|
|
26
26
|
import We from "primevue/steppanels";
|
|
27
27
|
import Ge from "primevue/datatable";
|
|
@@ -1418,7 +1418,7 @@ const tt = {
|
|
|
1418
1418
|
t.value = !1;
|
|
1419
1419
|
};
|
|
1420
1420
|
return (l, o) => {
|
|
1421
|
-
const n =
|
|
1421
|
+
const n = _;
|
|
1422
1422
|
return d(), g(E, null, [
|
|
1423
1423
|
h(n, j({ ...a, ...l.$attrs }, {
|
|
1424
1424
|
loading: t.value,
|
|
@@ -1441,7 +1441,7 @@ const tt = {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
}), Ut = { class: "d-flex flex-column" }, Et = ["for"], xe = /* @__PURE__ */ z({
|
|
1443
1443
|
__name: "ForgeCheckbox",
|
|
1444
|
-
props: /* @__PURE__ */
|
|
1444
|
+
props: /* @__PURE__ */ R({
|
|
1445
1445
|
label: { default: "" },
|
|
1446
1446
|
value: {},
|
|
1447
1447
|
modelValue: {},
|
|
@@ -1601,7 +1601,7 @@ const tt = {
|
|
|
1601
1601
|
], 10, qt));
|
|
1602
1602
|
}
|
|
1603
1603
|
});
|
|
1604
|
-
function
|
|
1604
|
+
function Rt(e) {
|
|
1605
1605
|
const t = {
|
|
1606
1606
|
errorMessage: "",
|
|
1607
1607
|
errorDetails: []
|
|
@@ -1618,7 +1618,7 @@ function ml(e, t) {
|
|
|
1618
1618
|
function vl(e, t, a) {
|
|
1619
1619
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const _t = {
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
class: "sticky-top py-3 error-bg",
|
|
1624
1624
|
"data-cy": "error-wrapper"
|
|
@@ -1627,7 +1627,7 @@ const Rt = {
|
|
|
1627
1627
|
"data-cy": "footer"
|
|
1628
1628
|
}, fl = /* @__PURE__ */ z({
|
|
1629
1629
|
__name: "ForgeModal",
|
|
1630
|
-
props: /* @__PURE__ */
|
|
1630
|
+
props: /* @__PURE__ */ R({
|
|
1631
1631
|
cancelText: { default: "Cancel" },
|
|
1632
1632
|
submitText: { default: "Submit" },
|
|
1633
1633
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1641,6 +1641,7 @@ const Rt = {
|
|
|
1641
1641
|
maxHeight: {},
|
|
1642
1642
|
minHeight: {},
|
|
1643
1643
|
hideErrorBanner: { type: Boolean, default: !1 },
|
|
1644
|
+
performingConfirm: { type: Boolean, default: !1 },
|
|
1644
1645
|
header: { default: "Header" },
|
|
1645
1646
|
footer: {},
|
|
1646
1647
|
visible: { type: Boolean },
|
|
@@ -1712,7 +1713,7 @@ const Rt = {
|
|
|
1712
1713
|
(b || b == null) && w();
|
|
1713
1714
|
} catch (b) {
|
|
1714
1715
|
n.value.hasError = !0;
|
|
1715
|
-
const S =
|
|
1716
|
+
const S = Rt(b);
|
|
1716
1717
|
n.value.header = S.errorMessage, n.value.message = S.errorDetails;
|
|
1717
1718
|
}
|
|
1718
1719
|
o.value = !1;
|
|
@@ -1737,7 +1738,7 @@ const Rt = {
|
|
|
1737
1738
|
]
|
|
1738
1739
|
}));
|
|
1739
1740
|
return (b, S) => {
|
|
1740
|
-
const F =
|
|
1741
|
+
const F = _, L = Ve;
|
|
1741
1742
|
return d(), y(L, j(l, {
|
|
1742
1743
|
onMaximize: u,
|
|
1743
1744
|
onUnmaximize: c,
|
|
@@ -1766,7 +1767,7 @@ const Rt = {
|
|
|
1766
1767
|
name: k,
|
|
1767
1768
|
fn: v((A) => [
|
|
1768
1769
|
k == "default" ? (d(), g(E, { key: 0 }, [
|
|
1769
|
-
n.value.hasError && !e.hideErrorBanner ? (d(), g("div",
|
|
1770
|
+
n.value.hasError && !e.hideErrorBanner ? (d(), g("div", _t, [
|
|
1770
1771
|
h(de, {
|
|
1771
1772
|
severity: "danger",
|
|
1772
1773
|
"data-cy": "error",
|
|
@@ -1807,8 +1808,9 @@ const Rt = {
|
|
|
1807
1808
|
class: P([l.submitClass, "ms-auto"]),
|
|
1808
1809
|
onClick: r,
|
|
1809
1810
|
id: "submit-button",
|
|
1810
|
-
type: l.submitButtonType
|
|
1811
|
-
|
|
1811
|
+
type: l.submitButtonType,
|
|
1812
|
+
disabled: e.performingConfirm
|
|
1813
|
+
}, null, 8, ["label", "class", "type", "disabled"])
|
|
1812
1814
|
])
|
|
1813
1815
|
]),
|
|
1814
1816
|
key: "0"
|
|
@@ -1818,7 +1820,7 @@ const Rt = {
|
|
|
1818
1820
|
}
|
|
1819
1821
|
}), Gt = ["id"], Yt = { key: 0 }, Jt = { key: 0 }, Kt = { class: "d-flex justify-content-between align-items-center position-relative" }, Zt = { key: 1 }, Xt = { "data-cy": "readonly-value" }, Qt = /* @__PURE__ */ z({
|
|
1820
1822
|
__name: "ForgeInlineEditor",
|
|
1821
|
-
props: /* @__PURE__ */
|
|
1823
|
+
props: /* @__PURE__ */ R({
|
|
1822
1824
|
name: { default: "" },
|
|
1823
1825
|
completeAction: {},
|
|
1824
1826
|
errorAction: {},
|
|
@@ -1857,7 +1859,7 @@ const Rt = {
|
|
|
1857
1859
|
});
|
|
1858
1860
|
const x = M(() => w.value.length > 0);
|
|
1859
1861
|
return (b, S) => {
|
|
1860
|
-
const F = ie, L =
|
|
1862
|
+
const F = ie, L = _;
|
|
1861
1863
|
return d(), g("div", {
|
|
1862
1864
|
id: t.name
|
|
1863
1865
|
}, [
|
|
@@ -2024,7 +2026,7 @@ const Rt = {
|
|
|
2024
2026
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2025
2027
|
}, oa = /* @__PURE__ */ z({
|
|
2026
2028
|
__name: "ForgeMultiSelectPreview",
|
|
2027
|
-
props: /* @__PURE__ */
|
|
2029
|
+
props: /* @__PURE__ */ R({
|
|
2028
2030
|
title: { default: "Selected Items" },
|
|
2029
2031
|
orientation: { default: "row" },
|
|
2030
2032
|
height: { default: "200px" },
|
|
@@ -2042,7 +2044,7 @@ const Rt = {
|
|
|
2042
2044
|
a.value = a.value.filter((o) => o.id !== l);
|
|
2043
2045
|
};
|
|
2044
2046
|
return (l, o) => {
|
|
2045
|
-
const n = ue, s =
|
|
2047
|
+
const n = ue, s = _;
|
|
2046
2048
|
return d(), g("div", {
|
|
2047
2049
|
class: P(e.orientation === "column" ? "row" : "flex-1"),
|
|
2048
2050
|
"data-cy": "multiselect-preview"
|
|
@@ -2129,13 +2131,14 @@ const Rt = {
|
|
|
2129
2131
|
}
|
|
2130
2132
|
}), da = { class: "d-flex flex-1" }, ca = { "data-cy": "before-slot" }, pa = { class: "position-relative d-flex flex-1" }, ua = { "data-cy": "after-slot" }, he = /* @__PURE__ */ z({
|
|
2131
2133
|
__name: "ForgeDatepicker",
|
|
2132
|
-
props: /* @__PURE__ */
|
|
2134
|
+
props: /* @__PURE__ */ R({
|
|
2133
2135
|
severity: { default: "primary" },
|
|
2134
2136
|
modelValue: {},
|
|
2135
2137
|
defaultValue: {},
|
|
2136
2138
|
name: { default: "" },
|
|
2137
2139
|
selectionMode: { default: "single" },
|
|
2138
2140
|
dateFormat: { default: "dd/mm/yy" },
|
|
2141
|
+
updateModelType: {},
|
|
2139
2142
|
inline: { type: Boolean },
|
|
2140
2143
|
showOtherMonths: { type: Boolean, default: !0 },
|
|
2141
2144
|
selectOtherMonths: { type: Boolean },
|
|
@@ -2172,6 +2175,7 @@ const Rt = {
|
|
|
2172
2175
|
timeSeparator: {},
|
|
2173
2176
|
showWeek: { type: Boolean },
|
|
2174
2177
|
manualInput: { type: Boolean, default: !0 },
|
|
2178
|
+
showClear: { type: Boolean },
|
|
2175
2179
|
size: {},
|
|
2176
2180
|
invalid: { type: Boolean },
|
|
2177
2181
|
disabled: { type: Boolean },
|
|
@@ -2397,7 +2401,7 @@ const Rt = {
|
|
|
2397
2401
|
a.value = !1;
|
|
2398
2402
|
}
|
|
2399
2403
|
return (o, n) => {
|
|
2400
|
-
const s =
|
|
2404
|
+
const s = _;
|
|
2401
2405
|
return d(), g("form", j(o.$attrs, {
|
|
2402
2406
|
novalidate: "",
|
|
2403
2407
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
@@ -2475,7 +2479,7 @@ const Rt = {
|
|
|
2475
2479
|
style: { flex: "1 0 auto" }
|
|
2476
2480
|
}, hl = /* @__PURE__ */ z({
|
|
2477
2481
|
__name: "ForgeFormField",
|
|
2478
|
-
props: /* @__PURE__ */
|
|
2482
|
+
props: /* @__PURE__ */ R({
|
|
2479
2483
|
name: {},
|
|
2480
2484
|
fieldLabelPosition: { default: "top" },
|
|
2481
2485
|
fieldLabel: {},
|
|
@@ -3090,7 +3094,8 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3090
3094
|
showSave: { type: Boolean, default: !0 },
|
|
3091
3095
|
height: { default: 300 },
|
|
3092
3096
|
width: { default: 600 },
|
|
3093
|
-
lineJoin: { default: "round" }
|
|
3097
|
+
lineJoin: { default: "round" },
|
|
3098
|
+
performingSave: { type: Boolean, default: !1 }
|
|
3094
3099
|
},
|
|
3095
3100
|
emits: ["save"],
|
|
3096
3101
|
setup(e, { emit: t }) {
|
|
@@ -3104,7 +3109,7 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3104
3109
|
i("save", l.value.isEmpty());
|
|
3105
3110
|
};
|
|
3106
3111
|
return (w, r) => {
|
|
3107
|
-
const x =
|
|
3112
|
+
const x = _;
|
|
3108
3113
|
return d(), g("div", xa, [
|
|
3109
3114
|
h(p(ya), j({
|
|
3110
3115
|
ref_key: "drawingCanvas",
|
|
@@ -3156,6 +3161,7 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3156
3161
|
a.showSave ? (d(), y(x, {
|
|
3157
3162
|
key: 3,
|
|
3158
3163
|
onClick: u,
|
|
3164
|
+
disabled: e.performingSave,
|
|
3159
3165
|
class: "ms-auto",
|
|
3160
3166
|
"data-cy": "save-button"
|
|
3161
3167
|
}, {
|
|
@@ -3163,7 +3169,7 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3163
3169
|
O("Save", -1)
|
|
3164
3170
|
])]),
|
|
3165
3171
|
_: 1
|
|
3166
|
-
})) : T("", !0)
|
|
3172
|
+
}, 8, ["disabled"])) : T("", !0)
|
|
3167
3173
|
])
|
|
3168
3174
|
]);
|
|
3169
3175
|
};
|
|
@@ -3231,9 +3237,9 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3231
3237
|
]
|
|
3232
3238
|
})
|
|
3233
3239
|
}));
|
|
3234
|
-
return (i, l) => (d(), y(p(
|
|
3240
|
+
return (i, l) => (d(), y(p(Re), { value: e.currentStep }, {
|
|
3235
3241
|
default: v(() => [
|
|
3236
|
-
h(p(
|
|
3242
|
+
h(p(_e), null, {
|
|
3237
3243
|
default: v(() => [
|
|
3238
3244
|
(d(!0), g(E, null, q(e.steps, (o) => (d(), y(p(qe), j({
|
|
3239
3245
|
key: o.value,
|
|
@@ -3277,18 +3283,19 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3277
3283
|
setup(e) {
|
|
3278
3284
|
const t = e, a = M(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = M(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3279
3285
|
return (l, o) => {
|
|
3280
|
-
const n =
|
|
3286
|
+
const n = _;
|
|
3281
3287
|
return t.clickable ? (d(), y(n, {
|
|
3282
3288
|
key: 0,
|
|
3283
3289
|
class: P(["d-flex w-100 p-0 text-body", a.value]),
|
|
3284
3290
|
severity: t.severity,
|
|
3285
3291
|
unstyled: "",
|
|
3286
|
-
"data-cy": "button-tile"
|
|
3292
|
+
"data-cy": "button-tile",
|
|
3293
|
+
onClick: o[0] || (o[0] = (s) => l.$emit("button-click"))
|
|
3287
3294
|
}, {
|
|
3288
3295
|
default: v(() => [
|
|
3289
3296
|
m("div", Ba, [
|
|
3290
3297
|
C(l.$slots, "default", {}, () => [
|
|
3291
|
-
o[
|
|
3298
|
+
o[1] || (o[1] = O("Tile Content", -1))
|
|
3292
3299
|
])
|
|
3293
3300
|
])
|
|
3294
3301
|
]),
|
|
@@ -3300,7 +3307,7 @@ const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1
|
|
|
3300
3307
|
}, [
|
|
3301
3308
|
m("div", $a, [
|
|
3302
3309
|
C(l.$slots, "default", {}, () => [
|
|
3303
|
-
o[
|
|
3310
|
+
o[2] || (o[2] = O("Tile Content", -1))
|
|
3304
3311
|
])
|
|
3305
3312
|
])
|
|
3306
3313
|
], 2));
|
|
@@ -3539,7 +3546,7 @@ const Sa = {
|
|
|
3539
3546
|
])) : T("", !0)
|
|
3540
3547
|
]),
|
|
3541
3548
|
m("div", Oa, [
|
|
3542
|
-
e.showClearButton ? (d(), y(p(
|
|
3549
|
+
e.showClearButton ? (d(), y(p(_), {
|
|
3543
3550
|
key: 0,
|
|
3544
3551
|
outlined: "",
|
|
3545
3552
|
class: P(e.showExporterButton ? "me-2" : ""),
|
|
@@ -3556,7 +3563,7 @@ const Sa = {
|
|
|
3556
3563
|
]),
|
|
3557
3564
|
_: 1
|
|
3558
3565
|
}, 8, ["class"])) : T("", !0),
|
|
3559
|
-
e.showExporterButton ? (d(), y(p(
|
|
3566
|
+
e.showExporterButton ? (d(), y(p(_), {
|
|
3560
3567
|
key: 1,
|
|
3561
3568
|
outlined: "",
|
|
3562
3569
|
onClick: x,
|
|
@@ -3623,7 +3630,7 @@ const Sa = {
|
|
|
3623
3630
|
}), Aa = { class: "position-relative" }, La = { "data-cy": "above-table-slot" }, Na = { class: "d-flex w-100" }, Ua = {
|
|
3624
3631
|
class: "mx-auto",
|
|
3625
3632
|
"data-cy": "empty-message"
|
|
3626
|
-
}, Ea = { class: "d-flex" }, qa = { class: "d-flex align-items-end mb-2" },
|
|
3633
|
+
}, Ea = { class: "d-flex" }, qa = { class: "d-flex align-items-end mb-2" }, Ra = { key: 0 }, _a = { class: "ms-auto" }, Tl = /* @__PURE__ */ z({
|
|
3627
3634
|
__name: "ForgeTreeTable",
|
|
3628
3635
|
props: {
|
|
3629
3636
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3820,7 +3827,7 @@ const Sa = {
|
|
|
3820
3827
|
}, [
|
|
3821
3828
|
m("div", Ea, [
|
|
3822
3829
|
m("div", qa, [
|
|
3823
|
-
e.paginator && !e.legacyPaginationFooter ? (d(), g("span",
|
|
3830
|
+
e.paginator && !e.legacyPaginationFooter ? (d(), g("span", Ra, [
|
|
3824
3831
|
h(we, {
|
|
3825
3832
|
total: u.value,
|
|
3826
3833
|
"page-sizes": l.value,
|
|
@@ -3832,8 +3839,8 @@ const Sa = {
|
|
|
3832
3839
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3833
3840
|
])) : T("", !0)
|
|
3834
3841
|
]),
|
|
3835
|
-
m("div",
|
|
3836
|
-
e.showClearButton ? (d(), y(p(
|
|
3842
|
+
m("div", _a, [
|
|
3843
|
+
e.showClearButton ? (d(), y(p(_), {
|
|
3837
3844
|
key: 0,
|
|
3838
3845
|
outlined: "",
|
|
3839
3846
|
onClick: S,
|
|
@@ -3899,7 +3906,7 @@ const Sa = {
|
|
|
3899
3906
|
}
|
|
3900
3907
|
}), Ha = { class: "d-flex position-relative" }, Wa = { class: "d-flex w-100" }, zl = /* @__PURE__ */ z({
|
|
3901
3908
|
__name: "ForgeFilterHeader",
|
|
3902
|
-
props: /* @__PURE__ */
|
|
3909
|
+
props: /* @__PURE__ */ R({
|
|
3903
3910
|
dataType: {},
|
|
3904
3911
|
dropdownOptions: {},
|
|
3905
3912
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3927,7 +3934,7 @@ const Sa = {
|
|
|
3927
3934
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3928
3935
|
};
|
|
3929
3936
|
return (l, o) => {
|
|
3930
|
-
const n = be, s =
|
|
3937
|
+
const n = be, s = _;
|
|
3931
3938
|
return d(), g("div", Ha, [
|
|
3932
3939
|
e.dataType === "numeric" ? (d(), y(n, j({
|
|
3933
3940
|
key: 0,
|
|
@@ -5206,7 +5213,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5206
5213
|
id: "accepted-file-types-overlay"
|
|
5207
5214
|
}, ti = /* @__PURE__ */ z({
|
|
5208
5215
|
__name: "UploadButton",
|
|
5209
|
-
props: /* @__PURE__ */
|
|
5216
|
+
props: /* @__PURE__ */ R({
|
|
5210
5217
|
acceptedFileTypes: {},
|
|
5211
5218
|
maxFileInput: {},
|
|
5212
5219
|
maxFileSize: {},
|
|
@@ -5221,7 +5228,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5221
5228
|
t.value = Be(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5222
5229
|
};
|
|
5223
5230
|
return (n, s) => {
|
|
5224
|
-
const c =
|
|
5231
|
+
const c = _;
|
|
5225
5232
|
return d(), g("div", Xa, [
|
|
5226
5233
|
C(n.$slots, "message"),
|
|
5227
5234
|
m("div", null, [
|
|
@@ -5283,7 +5290,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5283
5290
|
class: "d-flex flex-column"
|
|
5284
5291
|
}, li = /* @__PURE__ */ z({
|
|
5285
5292
|
__name: "DragDropArea",
|
|
5286
|
-
props: /* @__PURE__ */
|
|
5293
|
+
props: /* @__PURE__ */ R({
|
|
5287
5294
|
maxFileInput: {},
|
|
5288
5295
|
maxFileSize: {},
|
|
5289
5296
|
acceptedFileTypes: {}
|
|
@@ -5373,7 +5380,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5373
5380
|
id: "file-size"
|
|
5374
5381
|
}, ui = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, mi = /* @__PURE__ */ z({
|
|
5375
5382
|
__name: "FileInfo",
|
|
5376
|
-
props: /* @__PURE__ */
|
|
5383
|
+
props: /* @__PURE__ */ R({
|
|
5377
5384
|
editableFileName: { type: Boolean },
|
|
5378
5385
|
acceptedFileTypes: {},
|
|
5379
5386
|
maxFileSize: {},
|
|
@@ -5389,7 +5396,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5389
5396
|
uploadStatus: { required: !0 },
|
|
5390
5397
|
uploadStatusModifiers: {}
|
|
5391
5398
|
}),
|
|
5392
|
-
emits: /* @__PURE__ */
|
|
5399
|
+
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5393
5400
|
setup(e, { emit: t }) {
|
|
5394
5401
|
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = I(a.value.name), s = I(""), c = I(0), u = I(), w = M(() => e.acceptedFileTypes.some(({ fileType: k }) => k === a.value.type)), r = M(() => a.value.size <= e.maxFileSize), x = M(() => a.value.type ? a.value.type : $e().getType(a.value.name)), b = () => {
|
|
5395
5402
|
n.value != null && (S(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
@@ -5448,7 +5455,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5448
5455
|
return se(() => {
|
|
5449
5456
|
e.autoUploadToBlob && l.value != "Uploaded" && L();
|
|
5450
5457
|
}), (k, A) => {
|
|
5451
|
-
const f =
|
|
5458
|
+
const f = _;
|
|
5452
5459
|
return d(), g("div", {
|
|
5453
5460
|
class: "py-4 px-3 d-flex",
|
|
5454
5461
|
"data-cy": `file-info-${a.value.name}`
|
|
@@ -5543,7 +5550,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5543
5550
|
}
|
|
5544
5551
|
}), yi = { "data-cy": "file-uploader" }, xi = { key: 1 }, Pl = /* @__PURE__ */ z({
|
|
5545
5552
|
__name: "ForgeFileUploader",
|
|
5546
|
-
props: /* @__PURE__ */
|
|
5553
|
+
props: /* @__PURE__ */ R({
|
|
5547
5554
|
acceptedFileTypes: {},
|
|
5548
5555
|
maxFileSize: {},
|
|
5549
5556
|
getFileUrlAction: {},
|
|
@@ -5628,7 +5635,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5628
5635
|
a.value.toggle(o);
|
|
5629
5636
|
};
|
|
5630
5637
|
return (o, n) => (d(), g(E, null, [
|
|
5631
|
-
h(p(
|
|
5638
|
+
h(p(_), {
|
|
5632
5639
|
onClick: l,
|
|
5633
5640
|
class: "ms-2"
|
|
5634
5641
|
}, {
|
|
@@ -5745,7 +5752,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5745
5752
|
"data-cy": "forge-select-button"
|
|
5746
5753
|
}, Il = /* @__PURE__ */ z({
|
|
5747
5754
|
__name: "ForgeSelectButton",
|
|
5748
|
-
props: /* @__PURE__ */
|
|
5755
|
+
props: /* @__PURE__ */ R({
|
|
5749
5756
|
options: {},
|
|
5750
5757
|
multiple: { type: Boolean, default: !0 },
|
|
5751
5758
|
allowEmpty: { type: Boolean, default: !1 },
|
|
@@ -5816,7 +5823,7 @@ const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disable
|
|
|
5816
5823
|
class: "mb-1"
|
|
5817
5824
|
}, Dl = /* @__PURE__ */ z({
|
|
5818
5825
|
__name: "ForgePickList",
|
|
5819
|
-
props: /* @__PURE__ */
|
|
5826
|
+
props: /* @__PURE__ */ R({
|
|
5820
5827
|
filterBy: {},
|
|
5821
5828
|
sourceTitle: {},
|
|
5822
5829
|
targetTitle: {},
|
|
@@ -5982,5 +5989,5 @@ export {
|
|
|
5982
5989
|
Tl as ForgeTreeTable,
|
|
5983
5990
|
vl as convertToMultiSelectOption,
|
|
5984
5991
|
ml as enumToMultiSelectList,
|
|
5985
|
-
|
|
5992
|
+
Rt as parseError
|
|
5986
5993
|
};
|
|
@@ -19,6 +19,7 @@ export interface ForgeModalProps extends DialogProps {
|
|
|
19
19
|
maxHeight?: string | null;
|
|
20
20
|
minHeight?: string | null;
|
|
21
21
|
hideErrorBanner?: boolean;
|
|
22
|
+
performingConfirm?: boolean;
|
|
22
23
|
}
|
|
23
24
|
type __VLS_Props = ForgeModalProps;
|
|
24
25
|
type __VLS_PublicProps = {
|
|
@@ -54,6 +55,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
54
55
|
submitClass: string;
|
|
55
56
|
resetErrorOnClose: boolean;
|
|
56
57
|
hideErrorBanner: boolean;
|
|
58
|
+
performingConfirm: boolean;
|
|
57
59
|
modal: boolean;
|
|
58
60
|
showHeader: boolean;
|
|
59
61
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
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.
|
|
5
|
+
"version": "2.27.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"contributors": [
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"bootstrap": "^5.3.7",
|
|
42
42
|
"lodash-es": "4.17.21",
|
|
43
43
|
"mime": "^4.0.7",
|
|
44
|
-
"primevue": "4.
|
|
44
|
+
"primevue": "4.4.1",
|
|
45
45
|
"vee-validate": "4.15.1",
|
|
46
46
|
"vue": "^3.5.13",
|
|
47
47
|
"yup": "1.7.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@cypress/code-coverage": "3.14.
|
|
51
|
-
"@primevue/auto-import-resolver": "4.
|
|
50
|
+
"@cypress/code-coverage": "3.14.7",
|
|
51
|
+
"@primevue/auto-import-resolver": "4.4.1",
|
|
52
52
|
"@vitejs/plugin-vue": "6.0.1",
|
|
53
53
|
"@vitest/coverage-v8": "3.2.4",
|
|
54
54
|
"@vitest/ui": "3.2.4",
|
|
55
55
|
"cypress": "14.5.4",
|
|
56
56
|
"cypress-real-events": "1.15.0",
|
|
57
|
-
"rollup-plugin-visualizer": "6.0.
|
|
57
|
+
"rollup-plugin-visualizer": "6.0.4",
|
|
58
58
|
"sass": "1.93.2",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
60
|
"unplugin-vue-components": "29.1.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vue-drawing-canvas": "1.0.14"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@rollup/rollup-linux-x64-gnu": "4.52.
|
|
69
|
+
"@rollup/rollup-linux-x64-gnu": "4.52.4"
|
|
70
70
|
},
|
|
71
71
|
"nyc": {
|
|
72
72
|
"all": true,
|