@3squared/forge-ui-3 2.6.0 → 2.7.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.css +1 -1
- package/dist/esm/forge-ui-3.js +778 -691
- package/dist/index.d.ts +3 -1
- package/dist/src/components/ForgeChip.vue.d.ts +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +1 -1
- package/dist/src/components/ForgeLoader.vue.d.ts +1 -1
- package/dist/src/components/ForgeNavbar.vue.d.ts +1 -1
- package/dist/src/components/ForgeSelectButton.vue.d.ts +20 -0
- package/dist/src/components/ForgeStepper.vue.d.ts +1 -1
- package/dist/src/components/ForgeToggleButton.vue.d.ts +8 -0
- package/dist/src/passthroughs/Accordion.pt.d.ts +17 -0
- package/dist/src/passthroughs/SelectButton.pt.d.ts +2 -3
- package/dist/src/types/forge-types.d.ts +8 -1
- package/dist/tests/component/forge-toggle-button/forge-select-button.cy.d.ts +1 -0
- package/package.json +5 -5
- package/src/styles/components/_button.scss +12 -0
- package/src/types/forge-types.ts +9 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as F, openBlock as d, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as b, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as x, renderSlot as k, ref as _, createElementBlock as f, Fragment as O, mergeProps as S, renderList as A, mergeModels as N, useModel as D, computed as z, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
|
|
3
3
|
import { Icon as T } from "@iconify/vue";
|
|
4
|
-
import
|
|
4
|
+
import q from "primevue/button";
|
|
5
5
|
import Be from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
@@ -10,9 +10,9 @@ import ze from "primevue/progressspinner";
|
|
|
10
10
|
import Te from "primevue/dialog";
|
|
11
11
|
import ne from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
|
-
import
|
|
13
|
+
import _e from "primevue/menubar";
|
|
14
14
|
import oe from "primevue/multiselect";
|
|
15
|
-
import
|
|
15
|
+
import Ie from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
17
|
import Pe from "primevue/inputmask";
|
|
18
18
|
import Ve from "primevue/textarea";
|
|
@@ -29,7 +29,8 @@ import { BlockBlobClient as me } from "@azure/storage-blob";
|
|
|
29
29
|
import ve from "primevue/popover";
|
|
30
30
|
import Le from "primevue/image";
|
|
31
31
|
import Re from "primevue/panel";
|
|
32
|
-
|
|
32
|
+
import { ToggleButton as He } from "primevue";
|
|
33
|
+
const We = {
|
|
33
34
|
autoComplete: {
|
|
34
35
|
root: ({ props: e }) => ({
|
|
35
36
|
class: [
|
|
@@ -58,7 +59,7 @@ const He = {
|
|
|
58
59
|
}),
|
|
59
60
|
emptyMessage: "mx-3 my-2"
|
|
60
61
|
}
|
|
61
|
-
},
|
|
62
|
+
}, Ye = {
|
|
62
63
|
button: {
|
|
63
64
|
root: ({ props: e }) => ({
|
|
64
65
|
class: [
|
|
@@ -159,7 +160,7 @@ const He = {
|
|
|
159
160
|
})
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
},
|
|
163
|
+
}, Ge = {
|
|
163
164
|
checkbox: {
|
|
164
165
|
root: () => ({
|
|
165
166
|
class: ["form-check"]
|
|
@@ -175,7 +176,7 @@ const He = {
|
|
|
175
176
|
]
|
|
176
177
|
})
|
|
177
178
|
}
|
|
178
|
-
},
|
|
179
|
+
}, Je = {
|
|
179
180
|
select: {
|
|
180
181
|
root: ({ props: e }) => ({
|
|
181
182
|
class: [
|
|
@@ -225,7 +226,7 @@ const He = {
|
|
|
225
226
|
]
|
|
226
227
|
})
|
|
227
228
|
}
|
|
228
|
-
},
|
|
229
|
+
}, Ke = {
|
|
229
230
|
column: {
|
|
230
231
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
231
232
|
headerCell: (e) => {
|
|
@@ -328,7 +329,7 @@ const He = {
|
|
|
328
329
|
]
|
|
329
330
|
})
|
|
330
331
|
}
|
|
331
|
-
},
|
|
332
|
+
}, Ze = {
|
|
332
333
|
inputtext: {
|
|
333
334
|
root: (e) => {
|
|
334
335
|
var t, a;
|
|
@@ -343,7 +344,7 @@ const He = {
|
|
|
343
344
|
};
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
|
-
},
|
|
347
|
+
}, Xe = {
|
|
347
348
|
inputmask: {
|
|
348
349
|
root: () => ({
|
|
349
350
|
class: [
|
|
@@ -351,12 +352,12 @@ const He = {
|
|
|
351
352
|
]
|
|
352
353
|
})
|
|
353
354
|
}
|
|
354
|
-
},
|
|
355
|
+
}, Qe = {
|
|
355
356
|
toggleSwitch: {
|
|
356
357
|
root: "form-check form-switch",
|
|
357
358
|
input: "form-check-input"
|
|
358
359
|
}
|
|
359
|
-
},
|
|
360
|
+
}, et = {
|
|
360
361
|
tag: {
|
|
361
362
|
root: ({ props: e }) => ({
|
|
362
363
|
class: [
|
|
@@ -376,7 +377,7 @@ const He = {
|
|
|
376
377
|
]
|
|
377
378
|
})
|
|
378
379
|
}
|
|
379
|
-
},
|
|
380
|
+
}, tt = {
|
|
380
381
|
textarea: {
|
|
381
382
|
root: () => ({
|
|
382
383
|
class: [
|
|
@@ -384,13 +385,13 @@ const He = {
|
|
|
384
385
|
]
|
|
385
386
|
})
|
|
386
387
|
}
|
|
387
|
-
},
|
|
388
|
+
}, at = {
|
|
388
389
|
chip: {
|
|
389
390
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
390
391
|
label: "px-2 fs-6 fw-400",
|
|
391
392
|
removeIcon: "ms-auto my-auto"
|
|
392
393
|
}
|
|
393
|
-
},
|
|
394
|
+
}, it = {
|
|
394
395
|
dialog: {
|
|
395
396
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
396
397
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -449,7 +450,7 @@ const He = {
|
|
|
449
450
|
]
|
|
450
451
|
})
|
|
451
452
|
}
|
|
452
|
-
},
|
|
453
|
+
}, lt = {
|
|
453
454
|
popover: {
|
|
454
455
|
root: (e) => ({
|
|
455
456
|
class: [
|
|
@@ -463,7 +464,7 @@ const He = {
|
|
|
463
464
|
content: "d-flex position-relative",
|
|
464
465
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
465
466
|
}
|
|
466
|
-
},
|
|
467
|
+
}, nt = {
|
|
467
468
|
message: {
|
|
468
469
|
root: ({ props: e }) => ({
|
|
469
470
|
class: [
|
|
@@ -492,7 +493,7 @@ const He = {
|
|
|
492
493
|
class: ["px-0 ms-2 btn d-flex"]
|
|
493
494
|
})
|
|
494
495
|
}
|
|
495
|
-
},
|
|
496
|
+
}, ot = {
|
|
496
497
|
// More PT options defined in ForgeStepper.
|
|
497
498
|
stepList: {
|
|
498
499
|
root: "d-flex mb-2 w-100"
|
|
@@ -520,7 +521,7 @@ const He = {
|
|
|
520
521
|
}),
|
|
521
522
|
separator: "border border-1 separator"
|
|
522
523
|
}
|
|
523
|
-
},
|
|
524
|
+
}, st = {
|
|
524
525
|
tabList: {
|
|
525
526
|
root: () => ({
|
|
526
527
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -545,7 +546,7 @@ const He = {
|
|
|
545
546
|
class: ["p-2"]
|
|
546
547
|
})
|
|
547
548
|
}
|
|
548
|
-
},
|
|
549
|
+
}, rt = {
|
|
549
550
|
// More PassThrough options defined in ForgeDatepicker.
|
|
550
551
|
datepicker: {
|
|
551
552
|
root: "d-inline-flex relative w-100",
|
|
@@ -620,7 +621,7 @@ const He = {
|
|
|
620
621
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
621
622
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
622
623
|
}
|
|
623
|
-
},
|
|
624
|
+
}, dt = {
|
|
624
625
|
multiselect: {
|
|
625
626
|
root: ({ props: e }) => ({
|
|
626
627
|
class: [
|
|
@@ -648,7 +649,7 @@ const He = {
|
|
|
648
649
|
class: "d-none"
|
|
649
650
|
})
|
|
650
651
|
}
|
|
651
|
-
},
|
|
652
|
+
}, pt = {
|
|
652
653
|
// More PassThrough options in component file.
|
|
653
654
|
progressbar: {
|
|
654
655
|
root: () => ({
|
|
@@ -658,7 +659,7 @@ const He = {
|
|
|
658
659
|
class: ["text-white m-1"]
|
|
659
660
|
})
|
|
660
661
|
}
|
|
661
|
-
},
|
|
662
|
+
}, ct = {
|
|
662
663
|
panel: {
|
|
663
664
|
root: "card w-100",
|
|
664
665
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -671,7 +672,7 @@ const He = {
|
|
|
671
672
|
},
|
|
672
673
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
673
674
|
}
|
|
674
|
-
},
|
|
675
|
+
}, ut = {
|
|
675
676
|
// More PT options can be found in the ForgeTable file.
|
|
676
677
|
dataTable: {
|
|
677
678
|
root: "position-relative",
|
|
@@ -745,7 +746,7 @@ const He = {
|
|
|
745
746
|
]
|
|
746
747
|
})
|
|
747
748
|
}
|
|
748
|
-
},
|
|
749
|
+
}, mt = {
|
|
749
750
|
badge: {
|
|
750
751
|
root: ({ props: e }) => ({
|
|
751
752
|
class: [
|
|
@@ -766,7 +767,7 @@ const He = {
|
|
|
766
767
|
]
|
|
767
768
|
})
|
|
768
769
|
}
|
|
769
|
-
},
|
|
770
|
+
}, vt = {
|
|
770
771
|
// More PassThrough options in component file.
|
|
771
772
|
menubar: {
|
|
772
773
|
rootList: ({ instance: e }) => ({
|
|
@@ -847,7 +848,7 @@ const He = {
|
|
|
847
848
|
]
|
|
848
849
|
})
|
|
849
850
|
}
|
|
850
|
-
},
|
|
851
|
+
}, ft = {
|
|
851
852
|
tooltip: {
|
|
852
853
|
root: ({ context: e }) => ({
|
|
853
854
|
class: [
|
|
@@ -869,24 +870,24 @@ const He = {
|
|
|
869
870
|
class: ["tooltip-inner"]
|
|
870
871
|
}
|
|
871
872
|
}
|
|
872
|
-
},
|
|
873
|
+
}, gt = {
|
|
873
874
|
selectButton: {
|
|
874
875
|
root: () => ({
|
|
875
876
|
class: ["btn-group"]
|
|
876
877
|
})
|
|
877
878
|
},
|
|
878
879
|
toggleButton: {
|
|
879
|
-
root: (
|
|
880
|
+
root: (e) => ({
|
|
880
881
|
class: [
|
|
881
882
|
"btn",
|
|
882
883
|
{
|
|
883
|
-
"btn-primary": e.active,
|
|
884
|
-
"btn-outline-primary": !e.active
|
|
884
|
+
"btn-primary": e.context.active,
|
|
885
|
+
"btn-outline-primary": !e.context.active
|
|
885
886
|
}
|
|
886
887
|
]
|
|
887
888
|
})
|
|
888
889
|
}
|
|
889
|
-
},
|
|
890
|
+
}, bt = {
|
|
890
891
|
splitbutton: {
|
|
891
892
|
root: () => ({
|
|
892
893
|
class: ["btn-group"]
|
|
@@ -922,7 +923,7 @@ const He = {
|
|
|
922
923
|
separator: "border-bottom w-100"
|
|
923
924
|
}
|
|
924
925
|
}
|
|
925
|
-
},
|
|
926
|
+
}, yt = {
|
|
926
927
|
progressspinner: {
|
|
927
928
|
spin: () => ({
|
|
928
929
|
class: [
|
|
@@ -954,11 +955,11 @@ const He = {
|
|
|
954
955
|
class: ["card-header"]
|
|
955
956
|
})
|
|
956
957
|
}
|
|
957
|
-
},
|
|
958
|
+
}, ht = {
|
|
958
959
|
divider: {
|
|
959
960
|
root: "border-bottom w-100 m-1"
|
|
960
961
|
}
|
|
961
|
-
},
|
|
962
|
+
}, wt = {
|
|
962
963
|
image: {
|
|
963
964
|
root: "position-relative d-inline-block",
|
|
964
965
|
previewMask: "preview-button",
|
|
@@ -971,7 +972,7 @@ const He = {
|
|
|
971
972
|
zoominbutton: "btn text-white",
|
|
972
973
|
closebutton: "btn text-white"
|
|
973
974
|
}
|
|
974
|
-
},
|
|
975
|
+
}, kt = {
|
|
975
976
|
toast: {
|
|
976
977
|
message: () => ({
|
|
977
978
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1006,7 +1007,7 @@ const He = {
|
|
|
1006
1007
|
};
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
},
|
|
1010
|
+
}, $t = {
|
|
1010
1011
|
tree: {
|
|
1011
1012
|
node: "m-1",
|
|
1012
1013
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1038,7 +1039,7 @@ const He = {
|
|
|
1038
1039
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1039
1040
|
filterIcon: "d-none"
|
|
1040
1041
|
}
|
|
1041
|
-
},
|
|
1042
|
+
}, Ft = {
|
|
1042
1043
|
treeSelect: {
|
|
1043
1044
|
root: ({ props: e }) => ({
|
|
1044
1045
|
class: [
|
|
@@ -1086,7 +1087,7 @@ const He = {
|
|
|
1086
1087
|
filterIcon: "d-none"
|
|
1087
1088
|
}
|
|
1088
1089
|
}
|
|
1089
|
-
},
|
|
1090
|
+
}, Bt = {
|
|
1090
1091
|
fieldset: {
|
|
1091
1092
|
root: () => ({
|
|
1092
1093
|
class: [
|
|
@@ -1112,44 +1113,63 @@ const He = {
|
|
|
1112
1113
|
]
|
|
1113
1114
|
})
|
|
1114
1115
|
}
|
|
1115
|
-
},
|
|
1116
|
-
|
|
1117
|
-
|
|
1116
|
+
}, St = {
|
|
1117
|
+
accordionPanel: {
|
|
1118
|
+
root: "card my-2"
|
|
1119
|
+
},
|
|
1120
|
+
accordionHeader: {
|
|
1121
|
+
root: "border-0 bg-transparent fw-400 w-100 d-flex flex-row justify-content-between align-content-center ps-4 pe-3 py-2 my-2",
|
|
1122
|
+
//header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
1123
|
+
pcToggleButton: {
|
|
1124
|
+
root: {
|
|
1125
|
+
class: [
|
|
1126
|
+
"btn"
|
|
1127
|
+
]
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
accordionContent: {
|
|
1132
|
+
root: "mt-2 mx-4 mb-4"
|
|
1133
|
+
}
|
|
1134
|
+
}, Di = {
|
|
1118
1135
|
...We,
|
|
1119
|
-
...
|
|
1136
|
+
...mt,
|
|
1120
1137
|
...Ye,
|
|
1121
|
-
...
|
|
1122
|
-
...Je,
|
|
1123
|
-
...st,
|
|
1124
|
-
...at,
|
|
1125
|
-
...yt,
|
|
1138
|
+
...xt,
|
|
1126
1139
|
...Ge,
|
|
1127
|
-
...
|
|
1140
|
+
...at,
|
|
1128
1141
|
...Ke,
|
|
1129
|
-
...Ze,
|
|
1130
|
-
...Xe,
|
|
1131
|
-
...lt,
|
|
1132
1142
|
...rt,
|
|
1133
|
-
...mt,
|
|
1134
1143
|
...it,
|
|
1144
|
+
...ht,
|
|
1145
|
+
...Je,
|
|
1146
|
+
...wt,
|
|
1147
|
+
...Ze,
|
|
1148
|
+
...Xe,
|
|
1149
|
+
...Qe,
|
|
1150
|
+
...nt,
|
|
1135
1151
|
...dt,
|
|
1136
|
-
...
|
|
1152
|
+
...vt,
|
|
1153
|
+
...lt,
|
|
1137
1154
|
...pt,
|
|
1138
|
-
...
|
|
1139
|
-
...gt,
|
|
1140
|
-
...nt,
|
|
1155
|
+
...yt,
|
|
1141
1156
|
...ct,
|
|
1142
|
-
...
|
|
1157
|
+
...gt,
|
|
1158
|
+
...bt,
|
|
1143
1159
|
...ot,
|
|
1144
|
-
...
|
|
1160
|
+
...ut,
|
|
1145
1161
|
...et,
|
|
1162
|
+
...st,
|
|
1163
|
+
...kt,
|
|
1164
|
+
...tt,
|
|
1165
|
+
...Bt,
|
|
1146
1166
|
...Ft,
|
|
1147
1167
|
...$t,
|
|
1148
|
-
...
|
|
1168
|
+
...St,
|
|
1149
1169
|
directives: {
|
|
1150
|
-
...
|
|
1170
|
+
...ft
|
|
1151
1171
|
}
|
|
1152
|
-
}, se = /* @__PURE__ */
|
|
1172
|
+
}, se = /* @__PURE__ */ F({
|
|
1153
1173
|
__name: "ForgeAlert",
|
|
1154
1174
|
props: {
|
|
1155
1175
|
severity: { default: "primary" },
|
|
@@ -1170,31 +1190,31 @@ const He = {
|
|
|
1170
1190
|
const t = e;
|
|
1171
1191
|
return (a, i) => {
|
|
1172
1192
|
const l = he;
|
|
1173
|
-
return d(),
|
|
1174
|
-
icon:
|
|
1193
|
+
return d(), v(l, K(Z({ ...a.$attrs, ...t })), {
|
|
1194
|
+
icon: b(() => [
|
|
1175
1195
|
m("div", {
|
|
1176
|
-
class:
|
|
1196
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
1177
1197
|
}, [
|
|
1178
|
-
t.icon ? (d(),
|
|
1198
|
+
t.icon ? (d(), v(c(T), {
|
|
1179
1199
|
key: 0,
|
|
1180
1200
|
"data-cy": "message-icon",
|
|
1181
1201
|
icon: t.icon,
|
|
1182
|
-
class:
|
|
1202
|
+
class: B(`text-${t.severity}`),
|
|
1183
1203
|
height: 35
|
|
1184
1204
|
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1185
1205
|
], 2)
|
|
1186
1206
|
]),
|
|
1187
|
-
closeicon:
|
|
1188
|
-
|
|
1207
|
+
closeicon: b(() => [
|
|
1208
|
+
x(c(T), { icon: "bi:x" })
|
|
1189
1209
|
]),
|
|
1190
|
-
default:
|
|
1210
|
+
default: b(() => [
|
|
1191
1211
|
k(a.$slots, "default")
|
|
1192
1212
|
]),
|
|
1193
1213
|
_: 3
|
|
1194
1214
|
}, 16);
|
|
1195
1215
|
};
|
|
1196
1216
|
}
|
|
1197
|
-
}),
|
|
1217
|
+
}), Oi = /* @__PURE__ */ F({
|
|
1198
1218
|
__name: "ForgeActionButton",
|
|
1199
1219
|
props: {
|
|
1200
1220
|
action: {},
|
|
@@ -1203,7 +1223,7 @@ const He = {
|
|
|
1203
1223
|
params: { default: Array }
|
|
1204
1224
|
},
|
|
1205
1225
|
setup(e) {
|
|
1206
|
-
const t =
|
|
1226
|
+
const t = _(!1), a = e, i = async () => {
|
|
1207
1227
|
t.value = !0;
|
|
1208
1228
|
try {
|
|
1209
1229
|
await a.action.apply(this, a.params);
|
|
@@ -1213,30 +1233,30 @@ const He = {
|
|
|
1213
1233
|
t.value = !1;
|
|
1214
1234
|
};
|
|
1215
1235
|
return (l, n) => {
|
|
1216
|
-
const
|
|
1217
|
-
return d(),
|
|
1218
|
-
|
|
1236
|
+
const o = q;
|
|
1237
|
+
return d(), f(O, null, [
|
|
1238
|
+
x(o, S({ ...a, ...l.$attrs }, {
|
|
1219
1239
|
loading: t.value,
|
|
1220
1240
|
disabled: t.value || a.disabled,
|
|
1221
1241
|
onClick: i
|
|
1222
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1223
|
-
|
|
1243
|
+
x(c(Be))
|
|
1224
1244
|
], 64);
|
|
1225
1245
|
};
|
|
1226
1246
|
}
|
|
1227
|
-
}),
|
|
1247
|
+
}), Ni = /* @__PURE__ */ F({
|
|
1228
1248
|
__name: "ForgeAutoComplete",
|
|
1229
1249
|
setup(e) {
|
|
1230
|
-
return (t, a) => (d(),
|
|
1231
|
-
default:
|
|
1232
|
-
(d(!0),
|
|
1250
|
+
return (t, a) => (d(), v(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
|
+
default: b(() => [
|
|
1252
|
+
(d(!0), f(O, null, A(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1233
1253
|
]),
|
|
1234
1254
|
_: 3
|
|
1235
1255
|
}, 16));
|
|
1236
1256
|
}
|
|
1237
|
-
}),
|
|
1257
|
+
}), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ F({
|
|
1238
1258
|
__name: "ForgeCheckbox",
|
|
1239
|
-
props: /* @__PURE__ */
|
|
1259
|
+
props: /* @__PURE__ */ N({
|
|
1240
1260
|
label: { default: "" },
|
|
1241
1261
|
value: {},
|
|
1242
1262
|
modelValue: {},
|
|
@@ -1276,34 +1296,34 @@ const He = {
|
|
|
1276
1296
|
type: "checkbox",
|
|
1277
1297
|
checkedValue: a.value
|
|
1278
1298
|
}
|
|
1279
|
-
),
|
|
1299
|
+
), o = (p) => {
|
|
1280
1300
|
t.name ? i(p) : a.value = p;
|
|
1281
1301
|
}, r = z(() => l.value.length > 0);
|
|
1282
1302
|
return (p, u) => {
|
|
1283
|
-
const
|
|
1284
|
-
return d(),
|
|
1303
|
+
const y = Ce;
|
|
1304
|
+
return d(), f("div", Ct, [
|
|
1285
1305
|
m("div", S({
|
|
1286
1306
|
class: "d-flex",
|
|
1287
1307
|
"data-cy": "checkbox-container",
|
|
1288
|
-
onClick: u[2] || (u[2] = (
|
|
1308
|
+
onClick: u[2] || (u[2] = (s) => o(a.value))
|
|
1289
1309
|
}, { ...p.$attrs }), [
|
|
1290
|
-
y
|
|
1310
|
+
x(y, S({ ...t }, {
|
|
1291
1311
|
binary: "",
|
|
1292
1312
|
modelValue: a.value,
|
|
1293
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1313
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
|
|
1294
1314
|
"input-id": t.name,
|
|
1295
1315
|
"input-class": { "is-invalid": r.value },
|
|
1296
1316
|
class: t.disabled ? "" : "cursor-pointer"
|
|
1297
1317
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1298
1318
|
m("label", {
|
|
1299
1319
|
for: t.name,
|
|
1300
|
-
onClick: u[1] || (u[1] = (
|
|
1301
|
-
class:
|
|
1320
|
+
onClick: u[1] || (u[1] = (s) => o(!a.value)),
|
|
1321
|
+
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1302
1322
|
}, [
|
|
1303
1323
|
k(p.$slots, "default", {}, () => [
|
|
1304
|
-
|
|
1324
|
+
I(w(t.label), 1)
|
|
1305
1325
|
])
|
|
1306
|
-
], 10,
|
|
1326
|
+
], 10, zt)
|
|
1307
1327
|
], 16),
|
|
1308
1328
|
H(m("small", {
|
|
1309
1329
|
"data-cy": "error",
|
|
@@ -1314,7 +1334,7 @@ const He = {
|
|
|
1314
1334
|
]);
|
|
1315
1335
|
};
|
|
1316
1336
|
}
|
|
1317
|
-
}),
|
|
1337
|
+
}), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */ F({
|
|
1318
1338
|
__name: "ForgeLoader",
|
|
1319
1339
|
props: {
|
|
1320
1340
|
severity: { default: "primary" }
|
|
@@ -1323,15 +1343,15 @@ const He = {
|
|
|
1323
1343
|
const t = e;
|
|
1324
1344
|
return (a, i) => {
|
|
1325
1345
|
const l = ze;
|
|
1326
|
-
return d(),
|
|
1327
|
-
|
|
1346
|
+
return d(), f("div", Tt, [
|
|
1347
|
+
x(l, {
|
|
1328
1348
|
"animation-duration": ".75",
|
|
1329
|
-
class:
|
|
1349
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1330
1350
|
}, null, 8, ["class"])
|
|
1331
1351
|
]);
|
|
1332
1352
|
};
|
|
1333
1353
|
}
|
|
1334
|
-
}),
|
|
1354
|
+
}), jt = ["href", "target"], Ui = /* @__PURE__ */ F({
|
|
1335
1355
|
__name: "ForgeLink",
|
|
1336
1356
|
props: {
|
|
1337
1357
|
url: {},
|
|
@@ -1365,25 +1385,25 @@ const He = {
|
|
|
1365
1385
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1366
1386
|
"me-0": e.animateIconOnHover
|
|
1367
1387
|
}));
|
|
1368
|
-
return (i, l) => (d(),
|
|
1388
|
+
return (i, l) => (d(), f("a", {
|
|
1369
1389
|
id: "link",
|
|
1370
|
-
class:
|
|
1390
|
+
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1371
1391
|
href: i.url,
|
|
1372
1392
|
target: i.target
|
|
1373
1393
|
}, [
|
|
1374
1394
|
k(i.$slots, "default", {}, () => [
|
|
1375
|
-
i.iconName ? (d(),
|
|
1395
|
+
i.iconName ? (d(), v(c(T), {
|
|
1376
1396
|
key: 0,
|
|
1377
1397
|
id: "link-icon",
|
|
1378
1398
|
icon: i.iconName,
|
|
1379
|
-
class:
|
|
1399
|
+
class: B(["bi my-auto", a.value])
|
|
1380
1400
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1381
|
-
|
|
1401
|
+
I(" " + w(i.label), 1)
|
|
1382
1402
|
])
|
|
1383
|
-
], 10,
|
|
1403
|
+
], 10, jt));
|
|
1384
1404
|
}
|
|
1385
1405
|
});
|
|
1386
|
-
function
|
|
1406
|
+
function _t(e) {
|
|
1387
1407
|
const t = {
|
|
1388
1408
|
errorMessage: "",
|
|
1389
1409
|
errorDetails: []
|
|
@@ -1394,18 +1414,18 @@ function Tt(e) {
|
|
|
1394
1414
|
}
|
|
1395
1415
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1396
1416
|
}
|
|
1397
|
-
function
|
|
1417
|
+
function Ai(e, t) {
|
|
1398
1418
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1399
1419
|
}
|
|
1400
|
-
function
|
|
1420
|
+
function qi(e, t, a) {
|
|
1401
1421
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1402
1422
|
}
|
|
1403
|
-
const
|
|
1423
|
+
const It = { key: 0 }, Pt = {
|
|
1404
1424
|
class: "d-flex w-100",
|
|
1405
1425
|
"data-cy": "footer"
|
|
1406
|
-
},
|
|
1426
|
+
}, Ei = /* @__PURE__ */ F({
|
|
1407
1427
|
__name: "ForgeModal",
|
|
1408
|
-
props: /* @__PURE__ */
|
|
1428
|
+
props: /* @__PURE__ */ N({
|
|
1409
1429
|
cancelText: { default: "Cancel" },
|
|
1410
1430
|
submitText: { default: "Submit" },
|
|
1411
1431
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1453,11 +1473,11 @@ const jt = { key: 0 }, It = {
|
|
|
1453
1473
|
}),
|
|
1454
1474
|
emits: ["update:visible"],
|
|
1455
1475
|
setup(e) {
|
|
1456
|
-
const t = D(e, "visible"), a =
|
|
1476
|
+
const t = D(e, "visible"), a = _(!1), i = e, l = _(!1), n = _({
|
|
1457
1477
|
hasError: !1,
|
|
1458
1478
|
header: "",
|
|
1459
1479
|
message: []
|
|
1460
|
-
}),
|
|
1480
|
+
}), o = () => {
|
|
1461
1481
|
a.value = !1;
|
|
1462
1482
|
}, r = () => {
|
|
1463
1483
|
a.value = !0;
|
|
@@ -1467,16 +1487,16 @@ const jt = { key: 0 }, It = {
|
|
|
1467
1487
|
if (i.onConfirm) {
|
|
1468
1488
|
l.value = !0, n.value.hasError = !1;
|
|
1469
1489
|
try {
|
|
1470
|
-
const
|
|
1471
|
-
(
|
|
1472
|
-
} catch (
|
|
1490
|
+
const s = await i.onConfirm();
|
|
1491
|
+
(s || s == null) && p();
|
|
1492
|
+
} catch (s) {
|
|
1473
1493
|
n.value.hasError = !0;
|
|
1474
|
-
const $ =
|
|
1494
|
+
const $ = _t(s);
|
|
1475
1495
|
n.value.header = $.errorMessage, n.value.message = $.errorDetails;
|
|
1476
1496
|
}
|
|
1477
1497
|
l.value = !1;
|
|
1478
1498
|
}
|
|
1479
|
-
},
|
|
1499
|
+
}, y = z(() => ({
|
|
1480
1500
|
root: [
|
|
1481
1501
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1482
1502
|
{
|
|
@@ -1487,15 +1507,15 @@ const jt = { key: 0 }, It = {
|
|
|
1487
1507
|
}
|
|
1488
1508
|
]
|
|
1489
1509
|
}));
|
|
1490
|
-
return (
|
|
1491
|
-
const j =
|
|
1492
|
-
return d(),
|
|
1510
|
+
return (s, $) => {
|
|
1511
|
+
const j = q, V = Te;
|
|
1512
|
+
return d(), v(V, S(i, {
|
|
1493
1513
|
onMaximize: r,
|
|
1494
|
-
onUnmaximize:
|
|
1495
|
-
pt:
|
|
1514
|
+
onUnmaximize: o,
|
|
1515
|
+
pt: y.value
|
|
1496
1516
|
}), ie({
|
|
1497
|
-
closeicon:
|
|
1498
|
-
|
|
1517
|
+
closeicon: b(() => [
|
|
1518
|
+
x(c(T), {
|
|
1499
1519
|
"data-cy": "close-icon",
|
|
1500
1520
|
icon: "bi:x-lg",
|
|
1501
1521
|
width: "18",
|
|
@@ -1503,8 +1523,8 @@ const jt = { key: 0 }, It = {
|
|
|
1503
1523
|
onClick: p
|
|
1504
1524
|
})
|
|
1505
1525
|
]),
|
|
1506
|
-
maximizeicon:
|
|
1507
|
-
|
|
1526
|
+
maximizeicon: b(() => [
|
|
1527
|
+
x(c(T), {
|
|
1508
1528
|
"data-cy": "maximisable-icon",
|
|
1509
1529
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1510
1530
|
width: "16",
|
|
@@ -1513,45 +1533,45 @@ const jt = { key: 0 }, It = {
|
|
|
1513
1533
|
]),
|
|
1514
1534
|
_: 2
|
|
1515
1535
|
}, [
|
|
1516
|
-
|
|
1517
|
-
name:
|
|
1518
|
-
fn:
|
|
1519
|
-
n.value.hasError ? (d(),
|
|
1536
|
+
A(s.$slots, (M, U) => ({
|
|
1537
|
+
name: U,
|
|
1538
|
+
fn: b((g) => [
|
|
1539
|
+
n.value.hasError ? (d(), v(se, {
|
|
1520
1540
|
key: 0,
|
|
1521
1541
|
severity: "danger",
|
|
1522
1542
|
"data-cy": "error"
|
|
1523
1543
|
}, {
|
|
1524
|
-
default:
|
|
1544
|
+
default: b(() => [
|
|
1525
1545
|
m("p", {
|
|
1526
|
-
class:
|
|
1546
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1527
1547
|
}, w(n.value.header), 3),
|
|
1528
|
-
n.value.message.length > 0 ? (d(),
|
|
1529
|
-
(d(!0),
|
|
1548
|
+
n.value.message.length > 0 ? (d(), f("ul", It, [
|
|
1549
|
+
(d(!0), f(O, null, A(n.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
|
|
1530
1550
|
])) : C("", !0)
|
|
1531
1551
|
]),
|
|
1532
1552
|
_: 1
|
|
1533
1553
|
})) : C("", !0),
|
|
1534
|
-
k(
|
|
1535
|
-
l.value ? k(
|
|
1536
|
-
|
|
1554
|
+
k(s.$slots, U, K(Z(g || {}))),
|
|
1555
|
+
l.value ? k(s.$slots, "loader", { key: 1 }, () => [
|
|
1556
|
+
x(ge, { "data-cy": "loader" })
|
|
1537
1557
|
]) : C("", !0)
|
|
1538
1558
|
])
|
|
1539
1559
|
})),
|
|
1540
|
-
|
|
1560
|
+
s.showFooter ? {
|
|
1541
1561
|
name: "footer",
|
|
1542
|
-
fn:
|
|
1543
|
-
m("div",
|
|
1544
|
-
|
|
1545
|
-
label:
|
|
1546
|
-
class:
|
|
1562
|
+
fn: b(() => [
|
|
1563
|
+
m("div", Pt, [
|
|
1564
|
+
x(j, {
|
|
1565
|
+
label: s.cancelText,
|
|
1566
|
+
class: B(i.cancelClass),
|
|
1547
1567
|
outlined: "",
|
|
1548
1568
|
onClick: p,
|
|
1549
1569
|
id: "cancel-button",
|
|
1550
1570
|
type: i.cancelButtonType
|
|
1551
1571
|
}, null, 8, ["label", "class", "type"]),
|
|
1552
|
-
|
|
1553
|
-
label:
|
|
1554
|
-
class:
|
|
1572
|
+
x(j, {
|
|
1573
|
+
label: s.submitText,
|
|
1574
|
+
class: B([i.submitClass, "ms-auto"]),
|
|
1555
1575
|
onClick: u,
|
|
1556
1576
|
id: "submit-button",
|
|
1557
1577
|
type: i.submitButtonType
|
|
@@ -1563,9 +1583,9 @@ const jt = { key: 0 }, It = {
|
|
|
1563
1583
|
]), 1040, ["pt"]);
|
|
1564
1584
|
};
|
|
1565
1585
|
}
|
|
1566
|
-
}),
|
|
1586
|
+
}), Vt = ["id"], Mt = { key: 0 }, Dt = { key: 0 }, Ot = { class: "d-flex justify-content-between align-items-center position-relative" }, Nt = { key: 1 }, Ut = { "data-cy": "readonly-value" }, At = /* @__PURE__ */ F({
|
|
1567
1587
|
__name: "ForgeInlineEditor",
|
|
1568
|
-
props: /* @__PURE__ */
|
|
1588
|
+
props: /* @__PURE__ */ N({
|
|
1569
1589
|
name: { default: "" },
|
|
1570
1590
|
completeAction: {},
|
|
1571
1591
|
errorAction: {},
|
|
@@ -1578,13 +1598,13 @@ const jt = { key: 0 }, It = {
|
|
|
1578
1598
|
}),
|
|
1579
1599
|
emits: ["update:modelValue"],
|
|
1580
1600
|
setup(e) {
|
|
1581
|
-
const t = e, a = D(e, "modelValue"), i =
|
|
1601
|
+
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
|
|
1582
1602
|
var j;
|
|
1583
1603
|
i.value = !i.value, (j = l.value) == null || j.focus();
|
|
1584
|
-
},
|
|
1604
|
+
}, o = async () => {
|
|
1585
1605
|
if ($.value)
|
|
1586
1606
|
return !1;
|
|
1587
|
-
if (a.value =
|
|
1607
|
+
if (a.value = s.value, t.completeAction)
|
|
1588
1608
|
try {
|
|
1589
1609
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1590
1610
|
} catch {
|
|
@@ -1595,47 +1615,47 @@ const jt = { key: 0 }, It = {
|
|
|
1595
1615
|
}, r = () => {
|
|
1596
1616
|
i.value = !i.value;
|
|
1597
1617
|
}, p = () => {
|
|
1598
|
-
|
|
1599
|
-
}, { errorMessage: u, errors:
|
|
1618
|
+
s.value = null;
|
|
1619
|
+
}, { errorMessage: u, errors: y, value: s } = ee(() => t.name, void 0, {
|
|
1600
1620
|
initialValue: a.value
|
|
1601
1621
|
});
|
|
1602
1622
|
le(() => {
|
|
1603
|
-
|
|
1623
|
+
s.value = a.value;
|
|
1604
1624
|
});
|
|
1605
|
-
const $ = z(() =>
|
|
1625
|
+
const $ = z(() => y.value.length > 0);
|
|
1606
1626
|
return (j, V) => {
|
|
1607
|
-
const M = ne,
|
|
1608
|
-
return d(),
|
|
1627
|
+
const M = ne, U = q;
|
|
1628
|
+
return d(), f("div", {
|
|
1609
1629
|
id: t.name
|
|
1610
1630
|
}, [
|
|
1611
|
-
j.readonly ? (d(),
|
|
1631
|
+
j.readonly ? (d(), f("div", Nt, [
|
|
1612
1632
|
k(j.$slots, "default", {}, () => [
|
|
1613
|
-
m("span",
|
|
1633
|
+
m("span", Ut, w(c(s)), 1)
|
|
1614
1634
|
])
|
|
1615
|
-
])) : (d(),
|
|
1616
|
-
i.value ? (d(),
|
|
1617
|
-
H((d(),
|
|
1635
|
+
])) : (d(), f("div", Mt, [
|
|
1636
|
+
i.value ? (d(), f("div", Dt, [
|
|
1637
|
+
H((d(), f("div", Ot, [
|
|
1618
1638
|
k(j.$slots, "editor", {
|
|
1619
|
-
class:
|
|
1620
|
-
editFinished:
|
|
1639
|
+
class: B({ "is-invalid": $.value }),
|
|
1640
|
+
editFinished: o,
|
|
1621
1641
|
cancel: r,
|
|
1622
|
-
val: c(
|
|
1642
|
+
val: c(s)
|
|
1623
1643
|
}, () => [
|
|
1624
|
-
|
|
1625
|
-
modelValue: c(
|
|
1626
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
1644
|
+
x(M, {
|
|
1645
|
+
modelValue: c(s),
|
|
1646
|
+
"onUpdate:modelValue": V[0] || (V[0] = (g) => we(s) ? s.value = g : null),
|
|
1627
1647
|
modelModifiers: { trim: !0 },
|
|
1628
1648
|
"data-cy": "input",
|
|
1629
1649
|
ref_key: "input",
|
|
1630
1650
|
ref: l,
|
|
1631
|
-
class:
|
|
1651
|
+
class: B({ "is-invalid": $.value }),
|
|
1632
1652
|
onKeydown: [
|
|
1633
|
-
X(
|
|
1653
|
+
X(o, ["enter"]),
|
|
1634
1654
|
X(r, ["esc"])
|
|
1635
1655
|
]
|
|
1636
1656
|
}, null, 8, ["modelValue", "class"])
|
|
1637
1657
|
]),
|
|
1638
|
-
|
|
1658
|
+
x(c(T), {
|
|
1639
1659
|
icon: "bi:x-circle",
|
|
1640
1660
|
class: "mx-2 cursor-pointer",
|
|
1641
1661
|
onClick: p,
|
|
@@ -1643,9 +1663,9 @@ const jt = { key: 0 }, It = {
|
|
|
1643
1663
|
"data-cy": "clear-icon"
|
|
1644
1664
|
})
|
|
1645
1665
|
])), [
|
|
1646
|
-
[c(je),
|
|
1666
|
+
[c(je), o]
|
|
1647
1667
|
])
|
|
1648
|
-
])) : (d(),
|
|
1668
|
+
])) : (d(), f("div", {
|
|
1649
1669
|
key: 1,
|
|
1650
1670
|
class: "d-flex text-muted",
|
|
1651
1671
|
onClick: n,
|
|
@@ -1653,18 +1673,18 @@ const jt = { key: 0 }, It = {
|
|
|
1653
1673
|
}, [
|
|
1654
1674
|
k(j.$slots, "default", {}, () => [
|
|
1655
1675
|
m("div", {
|
|
1656
|
-
class:
|
|
1676
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1657
1677
|
"data-cy": "value"
|
|
1658
|
-
}, w(c(
|
|
1678
|
+
}, w(c(s) ? c(s) : "Click to edit"), 3)
|
|
1659
1679
|
]),
|
|
1660
|
-
|
|
1680
|
+
x(U, {
|
|
1661
1681
|
link: "",
|
|
1662
1682
|
class: "p-0 m-0"
|
|
1663
1683
|
}, {
|
|
1664
|
-
default:
|
|
1665
|
-
|
|
1684
|
+
default: b(() => [
|
|
1685
|
+
x(c(T), {
|
|
1666
1686
|
icon: "bi:pencil",
|
|
1667
|
-
class:
|
|
1687
|
+
class: B($.value ? "text-invalid" : "text-muted"),
|
|
1668
1688
|
"data-cy": "edit-icon",
|
|
1669
1689
|
onKeydown: X(n, ["enter"])
|
|
1670
1690
|
}, null, 8, ["class"])
|
|
@@ -1679,10 +1699,10 @@ const jt = { key: 0 }, It = {
|
|
|
1679
1699
|
}, w(c(u)), 513), [
|
|
1680
1700
|
[Y, $.value]
|
|
1681
1701
|
])
|
|
1682
|
-
], 8,
|
|
1702
|
+
], 8, Vt);
|
|
1683
1703
|
};
|
|
1684
1704
|
}
|
|
1685
|
-
}),
|
|
1705
|
+
}), qt = ["href"], Li = /* @__PURE__ */ F({
|
|
1686
1706
|
__name: "ForgeNavbar",
|
|
1687
1707
|
props: {
|
|
1688
1708
|
severity: { default: "light" },
|
|
@@ -1726,26 +1746,26 @@ const jt = { key: 0 }, It = {
|
|
|
1726
1746
|
]
|
|
1727
1747
|
})
|
|
1728
1748
|
}));
|
|
1729
|
-
return (i, l) => (d(),
|
|
1749
|
+
return (i, l) => (d(), v(c(_e), S({ ...t, ...i.$attrs }, {
|
|
1730
1750
|
pt: a.value,
|
|
1731
1751
|
"data-cy": "navbar"
|
|
1732
1752
|
}), ie({
|
|
1733
|
-
start:
|
|
1753
|
+
start: b(() => [
|
|
1734
1754
|
m("a", {
|
|
1735
1755
|
href: i.logoUrl,
|
|
1736
1756
|
class: "navbar-brand ms-3",
|
|
1737
1757
|
"data-cy": "logo"
|
|
1738
1758
|
}, [
|
|
1739
1759
|
k(i.$slots, "logo", {}, () => [
|
|
1740
|
-
l[0] || (l[0] =
|
|
1760
|
+
l[0] || (l[0] = I(" Logo "))
|
|
1741
1761
|
])
|
|
1742
|
-
], 8,
|
|
1762
|
+
], 8, qt)
|
|
1743
1763
|
]),
|
|
1744
|
-
buttonicon:
|
|
1764
|
+
buttonicon: b(() => [
|
|
1745
1765
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1746
|
-
|
|
1766
|
+
x(c(T), {
|
|
1747
1767
|
icon: "bi:list",
|
|
1748
|
-
class:
|
|
1768
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1749
1769
|
height: "24",
|
|
1750
1770
|
"data-cy": "burger-icon"
|
|
1751
1771
|
}, null, 8, ["class"])
|
|
@@ -1753,24 +1773,24 @@ const jt = { key: 0 }, It = {
|
|
|
1753
1773
|
]),
|
|
1754
1774
|
_: 2
|
|
1755
1775
|
}, [
|
|
1756
|
-
|
|
1757
|
-
name:
|
|
1758
|
-
fn:
|
|
1759
|
-
k(i.$slots,
|
|
1776
|
+
A(i.$slots, (n, o) => ({
|
|
1777
|
+
name: o,
|
|
1778
|
+
fn: b((r) => [
|
|
1779
|
+
k(i.$slots, o, K(Z(r)))
|
|
1760
1780
|
])
|
|
1761
1781
|
}))
|
|
1762
1782
|
]), 1040, ["pt"]));
|
|
1763
1783
|
}
|
|
1764
|
-
}),
|
|
1784
|
+
}), Et = { class: "border alternating-item-list" }, Lt = {
|
|
1765
1785
|
key: 0,
|
|
1766
1786
|
class: "p-2 border-top border-bottom",
|
|
1767
1787
|
"data-cy": "title"
|
|
1768
|
-
},
|
|
1788
|
+
}, Rt = { class: "d-inline-block" }, Ht = {
|
|
1769
1789
|
key: 1,
|
|
1770
1790
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1771
|
-
},
|
|
1791
|
+
}, Wt = /* @__PURE__ */ F({
|
|
1772
1792
|
__name: "ForgeMultiSelectPreview",
|
|
1773
|
-
props: /* @__PURE__ */
|
|
1793
|
+
props: /* @__PURE__ */ N({
|
|
1774
1794
|
title: { default: "Selected Items" },
|
|
1775
1795
|
orientation: { default: "row" },
|
|
1776
1796
|
height: { default: "200px" },
|
|
@@ -1788,16 +1808,16 @@ const jt = { key: 0 }, It = {
|
|
|
1788
1808
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1789
1809
|
};
|
|
1790
1810
|
return (l, n) => {
|
|
1791
|
-
const
|
|
1792
|
-
return d(),
|
|
1793
|
-
class:
|
|
1811
|
+
const o = oe, r = q;
|
|
1812
|
+
return d(), f("div", {
|
|
1813
|
+
class: B(l.orientation === "column" ? "row" : ""),
|
|
1794
1814
|
"data-cy": "multiselect-preview"
|
|
1795
1815
|
}, [
|
|
1796
1816
|
m("div", {
|
|
1797
|
-
class:
|
|
1817
|
+
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1798
1818
|
"data-cy": "multiselect-container"
|
|
1799
1819
|
}, [
|
|
1800
|
-
|
|
1820
|
+
x(o, S({
|
|
1801
1821
|
modelValue: a.value,
|
|
1802
1822
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1803
1823
|
}, { ...l.$attrs }, {
|
|
@@ -1806,38 +1826,38 @@ const jt = { key: 0 }, It = {
|
|
|
1806
1826
|
placeholder: l.multiselectPlaceholder,
|
|
1807
1827
|
"data-cy": "multiselect"
|
|
1808
1828
|
}), {
|
|
1809
|
-
default:
|
|
1810
|
-
(d(!0),
|
|
1829
|
+
default: b(() => [
|
|
1830
|
+
(d(!0), f(O, null, A(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
|
|
1811
1831
|
]),
|
|
1812
1832
|
_: 3
|
|
1813
1833
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1814
1834
|
k(l.$slots, "after-multi-select")
|
|
1815
1835
|
], 2),
|
|
1816
1836
|
m("div", {
|
|
1817
|
-
class:
|
|
1837
|
+
class: B(l.orientation === "row" ? "col-12" : "col"),
|
|
1818
1838
|
"data-cy": "options-preview"
|
|
1819
1839
|
}, [
|
|
1820
1840
|
m("div", {
|
|
1821
1841
|
style: ke({ height: l.height }),
|
|
1822
1842
|
class: "overflow-auto"
|
|
1823
1843
|
}, [
|
|
1824
|
-
m("div",
|
|
1825
|
-
l.title ? (d(),
|
|
1826
|
-
(d(!0),
|
|
1844
|
+
m("div", Et, [
|
|
1845
|
+
l.title ? (d(), f("div", Lt, w(l.title), 1)) : C("", !0),
|
|
1846
|
+
(d(!0), f(O, null, A(a.value, (p) => (d(), f("div", {
|
|
1827
1847
|
key: p.id,
|
|
1828
1848
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1829
1849
|
}, [
|
|
1830
1850
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1831
|
-
m("span",
|
|
1851
|
+
m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1832
1852
|
]),
|
|
1833
|
-
l.canRemoveItemFromPreview ? (d(),
|
|
1853
|
+
l.canRemoveItemFromPreview ? (d(), v(r, {
|
|
1834
1854
|
key: 0,
|
|
1835
1855
|
link: "",
|
|
1836
1856
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1837
1857
|
onClick: (u) => i(p.id)
|
|
1838
1858
|
}, {
|
|
1839
|
-
default:
|
|
1840
|
-
|
|
1859
|
+
default: b(() => [
|
|
1860
|
+
x(c(T), {
|
|
1841
1861
|
icon: "bi:x",
|
|
1842
1862
|
class: "close-icon",
|
|
1843
1863
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1846,36 +1866,36 @@ const jt = { key: 0 }, It = {
|
|
|
1846
1866
|
_: 2
|
|
1847
1867
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1848
1868
|
]))), 128)),
|
|
1849
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
1869
|
+
a.value == null || a.value.length == 0 ? (d(), f("div", Ht, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1850
1870
|
])
|
|
1851
1871
|
], 4)
|
|
1852
1872
|
], 2)
|
|
1853
1873
|
], 2);
|
|
1854
1874
|
};
|
|
1855
1875
|
}
|
|
1856
|
-
}),
|
|
1876
|
+
}), Yt = { class: "d-flex justify-content-between pb-2" }, Gt = {
|
|
1857
1877
|
"data-cy": "title",
|
|
1858
1878
|
class: "my-auto"
|
|
1859
|
-
},
|
|
1879
|
+
}, Jt = {
|
|
1860
1880
|
"data-cy": "slot",
|
|
1861
1881
|
class: "d-flex align-items-center"
|
|
1862
|
-
},
|
|
1882
|
+
}, Ri = /* @__PURE__ */ F({
|
|
1863
1883
|
__name: "ForgePageHeader",
|
|
1864
1884
|
props: {
|
|
1865
1885
|
title: {}
|
|
1866
1886
|
},
|
|
1867
1887
|
setup(e) {
|
|
1868
1888
|
const t = e;
|
|
1869
|
-
return (a, i) => (d(),
|
|
1870
|
-
m("h3",
|
|
1871
|
-
m("div",
|
|
1889
|
+
return (a, i) => (d(), f("div", Yt, [
|
|
1890
|
+
m("h3", Gt, w(t.title), 1),
|
|
1891
|
+
m("div", Jt, [
|
|
1872
1892
|
k(a.$slots, "default")
|
|
1873
1893
|
])
|
|
1874
1894
|
]));
|
|
1875
1895
|
}
|
|
1876
|
-
}),
|
|
1896
|
+
}), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
|
|
1877
1897
|
__name: "ForgeDatepicker",
|
|
1878
|
-
props: /* @__PURE__ */
|
|
1898
|
+
props: /* @__PURE__ */ N({
|
|
1879
1899
|
severity: { default: "primary" },
|
|
1880
1900
|
modelValue: {},
|
|
1881
1901
|
defaultValue: {},
|
|
@@ -1949,37 +1969,37 @@ const jt = { key: 0 }, It = {
|
|
|
1949
1969
|
}),
|
|
1950
1970
|
emits: ["update:modelValue"],
|
|
1951
1971
|
setup(e) {
|
|
1952
|
-
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur:
|
|
1972
|
+
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: r } = ee(() => t.name, void 0, {
|
|
1953
1973
|
initialValue: a.value
|
|
1954
1974
|
}), p = () => {
|
|
1955
1975
|
r(null), a.value = null;
|
|
1956
|
-
}, u = z(() => i.value.length > 0),
|
|
1957
|
-
dayCell: ({ context:
|
|
1976
|
+
}, u = z(() => i.value.length > 0), y = z(() => ({
|
|
1977
|
+
dayCell: ({ context: s }) => ({
|
|
1958
1978
|
class: [
|
|
1959
1979
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1960
1980
|
{
|
|
1961
|
-
"cursor-pointer": !
|
|
1962
|
-
"pe-none":
|
|
1963
|
-
"text-white":
|
|
1981
|
+
"cursor-pointer": !s.disabled,
|
|
1982
|
+
"pe-none": s.disabled,
|
|
1983
|
+
"text-white": s.selected
|
|
1964
1984
|
},
|
|
1965
1985
|
// Severities
|
|
1966
1986
|
{
|
|
1967
|
-
selected:
|
|
1968
|
-
"text-primary": !
|
|
1969
|
-
"text-brand": !
|
|
1970
|
-
"text-secondary": !
|
|
1971
|
-
"text-success": !
|
|
1972
|
-
"text-warning": !
|
|
1973
|
-
"text-danger": !
|
|
1974
|
-
"text-info": !
|
|
1987
|
+
selected: s.selected && !s.disabled,
|
|
1988
|
+
"text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1989
|
+
"text-brand": !s.selected && s.today && t.severity === "brand",
|
|
1990
|
+
"text-secondary": !s.selected && s.today && t.severity === "secondary",
|
|
1991
|
+
"text-success": !s.selected && s.today && t.severity === "success",
|
|
1992
|
+
"text-warning": !s.selected && s.today && t.severity === "warning",
|
|
1993
|
+
"text-danger": !s.selected && s.today && t.severity === "danger",
|
|
1994
|
+
"text-info": !s.selected && s.today && t.severity === "info"
|
|
1975
1995
|
}
|
|
1976
1996
|
]
|
|
1977
1997
|
}),
|
|
1978
|
-
dayLabel: ({ context:
|
|
1998
|
+
dayLabel: ({ context: s }) => ({
|
|
1979
1999
|
class: [
|
|
1980
2000
|
// Disabled States
|
|
1981
2001
|
{
|
|
1982
|
-
"text-muted":
|
|
2002
|
+
"text-muted": s.disabled
|
|
1983
2003
|
}
|
|
1984
2004
|
]
|
|
1985
2005
|
}),
|
|
@@ -2015,71 +2035,71 @@ const jt = { key: 0 }, It = {
|
|
|
2015
2035
|
]
|
|
2016
2036
|
})
|
|
2017
2037
|
},
|
|
2018
|
-
year: ({ context:
|
|
2038
|
+
year: ({ context: s }) => ({
|
|
2019
2039
|
class: [
|
|
2020
2040
|
"col-3 text-center cursor-pointer py-2",
|
|
2021
2041
|
{
|
|
2022
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2023
|
-
"text-brand": t.severity === "brand" &&
|
|
2024
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2025
|
-
"text-success": t.severity === "success" &&
|
|
2026
|
-
"text-warning": t.severity === "warning" &&
|
|
2027
|
-
"text-danger": t.severity === "danger" &&
|
|
2028
|
-
"text-info": t.severity === "info" &&
|
|
2042
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2043
|
+
"text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2044
|
+
"text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2045
|
+
"text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2046
|
+
"text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2047
|
+
"text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2048
|
+
"text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2029
2049
|
}
|
|
2030
2050
|
]
|
|
2031
2051
|
}),
|
|
2032
|
-
month: ({ context:
|
|
2052
|
+
month: ({ context: s }) => ({
|
|
2033
2053
|
class: [
|
|
2034
2054
|
"col-3 text-center cursor-pointer py-2",
|
|
2035
2055
|
{
|
|
2036
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2037
|
-
"text-brand": t.severity === "brand" &&
|
|
2038
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2039
|
-
"text-success": t.severity === "success" &&
|
|
2040
|
-
"text-warning": t.severity === "warning" &&
|
|
2041
|
-
"text-danger": t.severity === "danger" &&
|
|
2042
|
-
"text-info": t.severity === "info" &&
|
|
2056
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2057
|
+
"text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2058
|
+
"text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2059
|
+
"text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2060
|
+
"text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2061
|
+
"text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2062
|
+
"text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2043
2063
|
}
|
|
2044
2064
|
]
|
|
2045
2065
|
})
|
|
2046
2066
|
}));
|
|
2047
|
-
return (
|
|
2048
|
-
const j =
|
|
2049
|
-
return d(),
|
|
2050
|
-
m("div",
|
|
2051
|
-
m("span",
|
|
2052
|
-
k(
|
|
2067
|
+
return (s, $) => {
|
|
2068
|
+
const j = Ie;
|
|
2069
|
+
return d(), f(O, null, [
|
|
2070
|
+
m("div", Kt, [
|
|
2071
|
+
m("span", Zt, [
|
|
2072
|
+
k(s.$slots, "before")
|
|
2053
2073
|
]),
|
|
2054
|
-
m("div",
|
|
2055
|
-
|
|
2056
|
-
pt:
|
|
2074
|
+
m("div", Xt, [
|
|
2075
|
+
x(j, S({ ...t, ...s.$attrs }, {
|
|
2076
|
+
pt: y.value,
|
|
2057
2077
|
modelValue: a.value,
|
|
2058
2078
|
"onUpdate:modelValue": [
|
|
2059
2079
|
$[0] || ($[0] = (V) => a.value = V),
|
|
2060
2080
|
c(n)
|
|
2061
2081
|
],
|
|
2062
|
-
onBlur: $[1] || ($[1] = () => c(
|
|
2082
|
+
onBlur: $[1] || ($[1] = () => c(o)),
|
|
2063
2083
|
"input-class": { "datepicker-invalid": u.value }
|
|
2064
2084
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2065
|
-
H(
|
|
2085
|
+
H(x(c(T), {
|
|
2066
2086
|
"data-cy": "icon",
|
|
2067
2087
|
icon: "bi:calendar4",
|
|
2068
|
-
class:
|
|
2088
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
2069
2089
|
}, null, 8, ["class"]), [
|
|
2070
2090
|
[Y, t.showIcon]
|
|
2071
2091
|
]),
|
|
2072
|
-
H(
|
|
2092
|
+
H(x(c(T), {
|
|
2073
2093
|
"data-cy": "icon",
|
|
2074
2094
|
icon: "bi:x",
|
|
2075
2095
|
onClick: p,
|
|
2076
|
-
class:
|
|
2096
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2077
2097
|
}, null, 8, ["class"]), [
|
|
2078
2098
|
[Y, t.modelValue]
|
|
2079
2099
|
])
|
|
2080
2100
|
]),
|
|
2081
|
-
m("span",
|
|
2082
|
-
k(
|
|
2101
|
+
m("span", Qt, [
|
|
2102
|
+
k(s.$slots, "after")
|
|
2083
2103
|
])
|
|
2084
2104
|
]),
|
|
2085
2105
|
H(m("small", {
|
|
@@ -2091,7 +2111,7 @@ const jt = { key: 0 }, It = {
|
|
|
2091
2111
|
], 64);
|
|
2092
2112
|
};
|
|
2093
2113
|
}
|
|
2094
|
-
}),
|
|
2114
|
+
}), Hi = /* @__PURE__ */ F({
|
|
2095
2115
|
__name: "ForgeRemainingCharacters",
|
|
2096
2116
|
props: {
|
|
2097
2117
|
maxCount: { default: 300 },
|
|
@@ -2099,11 +2119,11 @@ const jt = { key: 0 }, It = {
|
|
|
2099
2119
|
},
|
|
2100
2120
|
setup(e) {
|
|
2101
2121
|
const t = e, a = z(() => t.maxCount - t.currentCount);
|
|
2102
|
-
return (i, l) => (d(),
|
|
2103
|
-
class:
|
|
2122
|
+
return (i, l) => (d(), f("div", {
|
|
2123
|
+
class: B(a.value < 0 ? "text-danger" : "")
|
|
2104
2124
|
}, "Remaining characters: " + w(a.value), 3));
|
|
2105
2125
|
}
|
|
2106
|
-
}),
|
|
2126
|
+
}), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ F({
|
|
2107
2127
|
__name: "ForgeForm",
|
|
2108
2128
|
props: {
|
|
2109
2129
|
onSubmit: {},
|
|
@@ -2115,7 +2135,7 @@ const jt = { key: 0 }, It = {
|
|
|
2115
2135
|
hideCancel: { type: Boolean, default: !1 }
|
|
2116
2136
|
},
|
|
2117
2137
|
setup(e) {
|
|
2118
|
-
const t = e, a =
|
|
2138
|
+
const t = e, a = _(!1), i = _({
|
|
2119
2139
|
hasError: !1,
|
|
2120
2140
|
message: ""
|
|
2121
2141
|
});
|
|
@@ -2128,80 +2148,80 @@ const jt = { key: 0 }, It = {
|
|
|
2128
2148
|
}
|
|
2129
2149
|
a.value = !1;
|
|
2130
2150
|
}
|
|
2131
|
-
return (n,
|
|
2132
|
-
const r =
|
|
2133
|
-
return d(),
|
|
2151
|
+
return (n, o) => {
|
|
2152
|
+
const r = q;
|
|
2153
|
+
return d(), f("form", S(n.$attrs, {
|
|
2134
2154
|
novalidate: "",
|
|
2135
2155
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2136
2156
|
onSubmit: G(l, ["prevent"])
|
|
2137
2157
|
}), [
|
|
2138
|
-
n.hideTitle ? C("", !0) : (d(),
|
|
2158
|
+
n.hideTitle ? C("", !0) : (d(), f(O, { key: 0 }, [
|
|
2139
2159
|
k(n.$slots, "title", {}, () => [
|
|
2140
2160
|
m("h3", {
|
|
2141
|
-
class:
|
|
2161
|
+
class: B(n.titleClass),
|
|
2142
2162
|
"data-cy": "form-title"
|
|
2143
2163
|
}, w(n.title), 3)
|
|
2144
2164
|
]),
|
|
2145
|
-
|
|
2165
|
+
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2146
2166
|
], 64)),
|
|
2147
|
-
i.value.hasError ? (d(),
|
|
2167
|
+
i.value.hasError ? (d(), v(se, {
|
|
2148
2168
|
key: 1,
|
|
2149
2169
|
severity: "danger",
|
|
2150
2170
|
"data-cy": "error"
|
|
2151
2171
|
}, {
|
|
2152
|
-
default:
|
|
2172
|
+
default: b(() => [
|
|
2153
2173
|
k(n.$slots, "error", {
|
|
2154
2174
|
error: i.value.message
|
|
2155
2175
|
}, () => [
|
|
2156
|
-
|
|
2176
|
+
I(w(i.value.message), 1)
|
|
2157
2177
|
])
|
|
2158
2178
|
]),
|
|
2159
2179
|
_: 3
|
|
2160
2180
|
})) : C("", !0),
|
|
2161
2181
|
k(n.$slots, "default"),
|
|
2162
|
-
m("div",
|
|
2182
|
+
m("div", ea, [
|
|
2163
2183
|
k(n.$slots, "cancel", {}, () => [
|
|
2164
|
-
n.hideCancel ? C("", !0) : (d(),
|
|
2184
|
+
n.hideCancel ? C("", !0) : (d(), v(r, {
|
|
2165
2185
|
key: 0,
|
|
2166
2186
|
"data-cy": "cancel-btn",
|
|
2167
2187
|
type: "reset",
|
|
2168
2188
|
severity: "secondary",
|
|
2169
2189
|
outlined: "",
|
|
2170
|
-
onClick:
|
|
2190
|
+
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2171
2191
|
}, {
|
|
2172
|
-
default:
|
|
2173
|
-
|
|
2192
|
+
default: b(() => [
|
|
2193
|
+
I(w(n.cancelText), 1)
|
|
2174
2194
|
]),
|
|
2175
2195
|
_: 1
|
|
2176
2196
|
}))
|
|
2177
2197
|
]),
|
|
2178
2198
|
k(n.$slots, "submit", { submit: l }, () => [
|
|
2179
|
-
|
|
2199
|
+
x(r, {
|
|
2180
2200
|
"data-cy": "submit-btn",
|
|
2181
2201
|
type: "submit",
|
|
2182
2202
|
severity: "primary",
|
|
2183
2203
|
class: "ms-auto"
|
|
2184
2204
|
}, {
|
|
2185
|
-
default:
|
|
2186
|
-
|
|
2205
|
+
default: b(() => [
|
|
2206
|
+
I(w(n.submitText), 1)
|
|
2187
2207
|
]),
|
|
2188
2208
|
_: 1
|
|
2189
2209
|
})
|
|
2190
2210
|
])
|
|
2191
2211
|
]),
|
|
2192
|
-
a.value ? (d(),
|
|
2212
|
+
a.value ? (d(), v(ge, {
|
|
2193
2213
|
key: 2,
|
|
2194
2214
|
"data-cy": "loading-spinner"
|
|
2195
2215
|
})) : C("", !0)
|
|
2196
2216
|
], 16);
|
|
2197
2217
|
};
|
|
2198
2218
|
}
|
|
2199
|
-
}),
|
|
2219
|
+
}), ta = {
|
|
2200
2220
|
key: 1,
|
|
2201
2221
|
class: "d-flex flex-column w-100"
|
|
2202
|
-
},
|
|
2222
|
+
}, aa = ["for"], Yi = /* @__PURE__ */ F({
|
|
2203
2223
|
__name: "ForgeFormField",
|
|
2204
|
-
props: /* @__PURE__ */
|
|
2224
|
+
props: /* @__PURE__ */ N({
|
|
2205
2225
|
name: {},
|
|
2206
2226
|
fieldLabelPosition: { default: "top" },
|
|
2207
2227
|
fieldLabel: {},
|
|
@@ -2215,101 +2235,101 @@ const jt = { key: 0 }, It = {
|
|
|
2215
2235
|
}),
|
|
2216
2236
|
emits: ["update:modelValue"],
|
|
2217
2237
|
setup(e) {
|
|
2218
|
-
const t = D(e, "modelValue"), a = e, i = (
|
|
2219
|
-
a.type == "number" ? r(
|
|
2220
|
-
}, { errors: l, value: n, errorMessage:
|
|
2238
|
+
const t = D(e, "modelValue"), a = e, i = (y) => {
|
|
2239
|
+
a.type == "number" ? r(y.value) : r(y);
|
|
2240
|
+
}, { errors: l, value: n, errorMessage: o, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2221
2241
|
initialValue: t.value
|
|
2222
2242
|
}), u = z(() => l.value.length > 0);
|
|
2223
|
-
return ce(() => n.value, (
|
|
2224
|
-
t.value =
|
|
2225
|
-
}, { immediate: !0 }), (
|
|
2226
|
-
const $ = Ve, j = Pe, V = ne, M = te,
|
|
2227
|
-
return a.type === "checkbox" ? (d(),
|
|
2243
|
+
return ce(() => n.value, (y) => {
|
|
2244
|
+
t.value = y;
|
|
2245
|
+
}, { immediate: !0 }), (y, s) => {
|
|
2246
|
+
const $ = Ve, j = Pe, V = ne, M = te, U = oe, g = be;
|
|
2247
|
+
return a.type === "checkbox" ? (d(), v(fe, S({
|
|
2228
2248
|
key: 0,
|
|
2229
2249
|
id: a.name,
|
|
2230
2250
|
label: a.fieldLabel
|
|
2231
|
-
},
|
|
2251
|
+
}, y.$attrs, {
|
|
2232
2252
|
name: a.name,
|
|
2233
2253
|
modelValue: t.value,
|
|
2234
|
-
"onUpdate:modelValue":
|
|
2235
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2254
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => t.value = h)
|
|
2255
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", ta, [
|
|
2236
2256
|
m("div", {
|
|
2237
2257
|
"data-cy": "input-wrapper",
|
|
2238
|
-
class:
|
|
2258
|
+
class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2239
2259
|
}, [
|
|
2240
2260
|
m("label", {
|
|
2241
2261
|
for: a.name,
|
|
2242
|
-
class:
|
|
2243
|
-
}, w(a.fieldLabel), 11,
|
|
2244
|
-
a.type === "number" ? (d(),
|
|
2262
|
+
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2263
|
+
}, w(a.fieldLabel), 11, aa),
|
|
2264
|
+
a.type === "number" ? (d(), v(c(ue), S({
|
|
2245
2265
|
key: 0,
|
|
2246
2266
|
id: a.name
|
|
2247
|
-
},
|
|
2267
|
+
}, y.$attrs, {
|
|
2248
2268
|
placeholder: a.placeholder,
|
|
2249
2269
|
"input-class": { "is-invalid": u.value },
|
|
2250
2270
|
class: { "is-invalid": u.value },
|
|
2251
2271
|
modelValue: t.value,
|
|
2252
|
-
"onUpdate:modelValue":
|
|
2272
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => t.value = h),
|
|
2253
2273
|
onInput: i
|
|
2254
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(),
|
|
2274
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), v($, S({
|
|
2255
2275
|
key: 1,
|
|
2256
2276
|
id: a.name
|
|
2257
|
-
},
|
|
2277
|
+
}, y.$attrs, {
|
|
2258
2278
|
placeholder: a.placeholder,
|
|
2259
2279
|
class: { "is-invalid": u.value },
|
|
2260
2280
|
modelValue: t.value,
|
|
2261
|
-
"onUpdate:modelValue":
|
|
2281
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => t.value = h),
|
|
2262
2282
|
onInput: i,
|
|
2263
2283
|
onBlur: c(p)
|
|
2264
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2284
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), v(j, S({
|
|
2265
2285
|
key: 2,
|
|
2266
2286
|
id: a.name
|
|
2267
|
-
},
|
|
2287
|
+
}, y.$attrs, {
|
|
2268
2288
|
placeholder: a.placeholder,
|
|
2269
2289
|
mask: a.mask,
|
|
2270
2290
|
class: { "is-invalid": u.value },
|
|
2271
2291
|
modelValue: t.value,
|
|
2272
|
-
"onUpdate:modelValue":
|
|
2292
|
+
"onUpdate:modelValue": s[3] || (s[3] = (h) => t.value = h),
|
|
2273
2293
|
onComplete: i,
|
|
2274
2294
|
onBlur: c(p)
|
|
2275
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2295
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), v(V, S({
|
|
2276
2296
|
key: 3,
|
|
2277
2297
|
id: a.name
|
|
2278
|
-
},
|
|
2298
|
+
}, y.$attrs, {
|
|
2279
2299
|
placeholder: a.placeholder,
|
|
2280
2300
|
class: { "is-invalid": u.value },
|
|
2281
2301
|
modelValue: t.value,
|
|
2282
|
-
"onUpdate:modelValue":
|
|
2302
|
+
"onUpdate:modelValue": s[4] || (s[4] = (h) => t.value = h),
|
|
2283
2303
|
onInput: i,
|
|
2284
2304
|
onBlur: c(p)
|
|
2285
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2305
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), v(M, S({ key: 4 }, { ...a, ...y.$attrs }, {
|
|
2286
2306
|
modelValue: t.value,
|
|
2287
|
-
"onUpdate:modelValue":
|
|
2307
|
+
"onUpdate:modelValue": s[5] || (s[5] = (h) => t.value = h),
|
|
2288
2308
|
class: { "is-invalid": u.value }
|
|
2289
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2309
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), v(U, S({ key: 5 }, { ...a, ...y.$attrs }, {
|
|
2290
2310
|
modelValue: t.value,
|
|
2291
|
-
"onUpdate:modelValue":
|
|
2311
|
+
"onUpdate:modelValue": s[6] || (s[6] = (h) => t.value = h),
|
|
2292
2312
|
class: { "is-invalid": u.value }
|
|
2293
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2313
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), v(Wt, S({ key: 6 }, { ...a, ...y.$attrs }, {
|
|
2294
2314
|
modelValue: t.value,
|
|
2295
|
-
"onUpdate:modelValue":
|
|
2315
|
+
"onUpdate:modelValue": s[7] || (s[7] = (h) => t.value = h),
|
|
2296
2316
|
class: { "is-invalid": u.value }
|
|
2297
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2317
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), v(g, S({ key: 7 }, { ...a, ...y.$attrs }, {
|
|
2298
2318
|
modelValue: t.value,
|
|
2299
|
-
"onUpdate:modelValue":
|
|
2319
|
+
"onUpdate:modelValue": s[8] || (s[8] = (h) => t.value = h),
|
|
2300
2320
|
class: { "is-invalid": u.value }
|
|
2301
2321
|
}), null, 16, ["modelValue", "class"])) : C("", !0)
|
|
2302
2322
|
], 2),
|
|
2303
2323
|
H(m("small", {
|
|
2304
2324
|
"data-cy": "error",
|
|
2305
2325
|
class: "invalid-feedback"
|
|
2306
|
-
}, w(c(
|
|
2326
|
+
}, w(c(o)), 513), [
|
|
2307
2327
|
[Y, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2308
2328
|
])
|
|
2309
2329
|
]));
|
|
2310
2330
|
};
|
|
2311
2331
|
}
|
|
2312
|
-
}),
|
|
2332
|
+
}), Gi = /* @__PURE__ */ F({
|
|
2313
2333
|
__name: "ForgeChip",
|
|
2314
2334
|
props: {
|
|
2315
2335
|
chipSeverity: { default: "primary" },
|
|
@@ -2344,15 +2364,15 @@ const jt = { key: 0 }, It = {
|
|
|
2344
2364
|
}));
|
|
2345
2365
|
return (i, l) => {
|
|
2346
2366
|
const n = Me;
|
|
2347
|
-
return d(),
|
|
2348
|
-
default:
|
|
2349
|
-
(d(!0),
|
|
2367
|
+
return d(), v(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2368
|
+
default: b(() => [
|
|
2369
|
+
(d(!0), f(O, null, A(i.$slots, (o, r) => k(i.$slots, r, { slot: r })), 256))
|
|
2350
2370
|
]),
|
|
2351
2371
|
_: 3
|
|
2352
2372
|
}, 16, ["pt"]);
|
|
2353
2373
|
};
|
|
2354
2374
|
}
|
|
2355
|
-
}),
|
|
2375
|
+
}), ia = /* @__PURE__ */ F({
|
|
2356
2376
|
__name: "ForgeProgressBar",
|
|
2357
2377
|
props: {
|
|
2358
2378
|
severity: { default: "primary" },
|
|
@@ -2395,18 +2415,18 @@ const jt = { key: 0 }, It = {
|
|
|
2395
2415
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2396
2416
|
}
|
|
2397
2417
|
}));
|
|
2398
|
-
return (
|
|
2418
|
+
return (o, r) => {
|
|
2399
2419
|
const p = De;
|
|
2400
|
-
return d(),
|
|
2401
|
-
default:
|
|
2402
|
-
k(
|
|
2420
|
+
return d(), v(p, S({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2421
|
+
default: b(() => [
|
|
2422
|
+
k(o.$slots, "default")
|
|
2403
2423
|
]),
|
|
2404
2424
|
_: 3
|
|
2405
2425
|
}, 16, ["pt"]);
|
|
2406
2426
|
};
|
|
2407
2427
|
}
|
|
2408
2428
|
});
|
|
2409
|
-
var
|
|
2429
|
+
var la = /* @__PURE__ */ F({
|
|
2410
2430
|
name: "VueDrawingCanvas",
|
|
2411
2431
|
props: {
|
|
2412
2432
|
strokeType: {
|
|
@@ -2718,14 +2738,14 @@ var aa = /* @__PURE__ */ B({
|
|
|
2718
2738
|
});
|
|
2719
2739
|
},
|
|
2720
2740
|
wrapText(e, t, a, i, l, n) {
|
|
2721
|
-
const
|
|
2722
|
-
var p = t.split(
|
|
2741
|
+
const o = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
|
|
2742
|
+
var p = t.split(o).filter((M) => M.length > 0);
|
|
2723
2743
|
for (let M = 0; M < p.length; M++) {
|
|
2724
|
-
for (var u = p[M].split(r).filter((
|
|
2725
|
-
var $ =
|
|
2726
|
-
V > l &&
|
|
2744
|
+
for (var u = p[M].split(r).filter((U) => U.length > 0), y = "", s = 0; s < u.length; s++) {
|
|
2745
|
+
var $ = y + u[s] + " ", j = e.measureText($), V = j.width;
|
|
2746
|
+
V > l && s > 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 = u[s] + " ", i += n) : y = $;
|
|
2727
2747
|
}
|
|
2728
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2748
|
+
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 += u.length > 0 ? n : 0;
|
|
2729
2749
|
}
|
|
2730
2750
|
},
|
|
2731
2751
|
save() {
|
|
@@ -2745,20 +2765,20 @@ var aa = /* @__PURE__ */ B({
|
|
|
2745
2765
|
const n = new Image();
|
|
2746
2766
|
n.src = a.source, n.onload = () => {
|
|
2747
2767
|
a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
|
|
2748
|
-
let
|
|
2749
|
-
if (
|
|
2750
|
-
return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image",
|
|
2768
|
+
let o = document.createElement("canvas"), r = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2769
|
+
if (o.width = Number(p), o.height = Number(u), r)
|
|
2770
|
+
return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
|
|
2751
2771
|
};
|
|
2752
2772
|
} else if (a.type === "Text") {
|
|
2753
|
-
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",
|
|
2773
|
+
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";
|
|
2754
2774
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2755
|
-
let
|
|
2756
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2775
|
+
let s, $;
|
|
2776
|
+
a.fontStyle && a.fontStyle.width ? s = a.x + Math.floor(a.fontStyle.width / 2) : s = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(s, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(s * -1, $ * -1);
|
|
2757
2777
|
}
|
|
2758
|
-
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 =
|
|
2759
|
-
let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2760
|
-
if (r.width = Number(u), r.height = Number(
|
|
2761
|
-
return p.drawImage(e, 0, 0, Number(u), Number(
|
|
2778
|
+
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));
|
|
2779
|
+
let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2780
|
+
if (r.width = Number(u), r.height = Number(y), p)
|
|
2781
|
+
return p.drawImage(e, 0, 0, Number(u), Number(y)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
|
|
2762
2782
|
}
|
|
2763
2783
|
},
|
|
2764
2784
|
isEmpty() {
|
|
@@ -2796,7 +2816,7 @@ var aa = /* @__PURE__ */ B({
|
|
|
2796
2816
|
});
|
|
2797
2817
|
}
|
|
2798
2818
|
});
|
|
2799
|
-
const
|
|
2819
|
+
const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1 gap-1" }, Ji = /* @__PURE__ */ F({
|
|
2800
2820
|
__name: "ForgeScratchpad",
|
|
2801
2821
|
props: {
|
|
2802
2822
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2809,7 +2829,7 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2809
2829
|
},
|
|
2810
2830
|
emits: ["save"],
|
|
2811
2831
|
setup(e, { emit: t }) {
|
|
2812
|
-
const a = e, i = t, l = Fe("drawingCanvas"), n =
|
|
2832
|
+
const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
|
|
2813
2833
|
l == null || l.value.reset();
|
|
2814
2834
|
}, r = () => {
|
|
2815
2835
|
l == null || l.value.redo();
|
|
@@ -2818,64 +2838,64 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2818
2838
|
}, u = () => {
|
|
2819
2839
|
i("save", l.value.isEmpty());
|
|
2820
2840
|
};
|
|
2821
|
-
return (
|
|
2822
|
-
const $ =
|
|
2823
|
-
return d(),
|
|
2824
|
-
|
|
2841
|
+
return (y, s) => {
|
|
2842
|
+
const $ = q;
|
|
2843
|
+
return d(), f("div", na, [
|
|
2844
|
+
x(c(la), S({
|
|
2825
2845
|
ref_key: "drawingCanvas",
|
|
2826
2846
|
ref: l,
|
|
2827
2847
|
image: n.value,
|
|
2828
|
-
"onUpdate:image":
|
|
2848
|
+
"onUpdate:image": s[0] || (s[0] = (j) => n.value = j),
|
|
2829
2849
|
"data-cy": "drawing-canvas",
|
|
2830
2850
|
class: "border canvas"
|
|
2831
|
-
}, { ...
|
|
2832
|
-
height:
|
|
2833
|
-
width:
|
|
2834
|
-
style: `height: ${
|
|
2835
|
-
"line-join":
|
|
2851
|
+
}, { ...y.$attrs }, {
|
|
2852
|
+
height: y.height,
|
|
2853
|
+
width: y.width,
|
|
2854
|
+
style: `height: ${y.height}px; width: ${y.width}px`,
|
|
2855
|
+
"line-join": y.lineJoin
|
|
2836
2856
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2837
|
-
m("div",
|
|
2838
|
-
a.showUndo ? (d(),
|
|
2857
|
+
m("div", oa, [
|
|
2858
|
+
a.showUndo ? (d(), v($, {
|
|
2839
2859
|
key: 0,
|
|
2840
2860
|
onClick: p,
|
|
2841
2861
|
outlined: "",
|
|
2842
2862
|
"data-cy": "undo-button"
|
|
2843
2863
|
}, {
|
|
2844
|
-
default:
|
|
2845
|
-
|
|
2864
|
+
default: b(() => s[1] || (s[1] = [
|
|
2865
|
+
I("Undo")
|
|
2846
2866
|
])),
|
|
2847
2867
|
_: 1
|
|
2848
2868
|
})) : C("", !0),
|
|
2849
|
-
a.showRedo ? (d(),
|
|
2869
|
+
a.showRedo ? (d(), v($, {
|
|
2850
2870
|
key: 1,
|
|
2851
2871
|
onClick: r,
|
|
2852
2872
|
outlined: "",
|
|
2853
2873
|
"data-cy": "redo-button"
|
|
2854
2874
|
}, {
|
|
2855
|
-
default:
|
|
2856
|
-
|
|
2875
|
+
default: b(() => s[2] || (s[2] = [
|
|
2876
|
+
I("Redo")
|
|
2857
2877
|
])),
|
|
2858
2878
|
_: 1
|
|
2859
2879
|
})) : C("", !0),
|
|
2860
|
-
a.showClear ? (d(),
|
|
2880
|
+
a.showClear ? (d(), v($, {
|
|
2861
2881
|
key: 2,
|
|
2862
|
-
onClick:
|
|
2882
|
+
onClick: o,
|
|
2863
2883
|
outlined: "",
|
|
2864
2884
|
"data-cy": "clear-button"
|
|
2865
2885
|
}, {
|
|
2866
|
-
default:
|
|
2867
|
-
|
|
2886
|
+
default: b(() => s[3] || (s[3] = [
|
|
2887
|
+
I("Clear")
|
|
2868
2888
|
])),
|
|
2869
2889
|
_: 1
|
|
2870
2890
|
})) : C("", !0),
|
|
2871
|
-
a.showSave ? (d(),
|
|
2891
|
+
a.showSave ? (d(), v($, {
|
|
2872
2892
|
key: 3,
|
|
2873
2893
|
onClick: u,
|
|
2874
2894
|
class: "ms-auto",
|
|
2875
2895
|
"data-cy": "save-button"
|
|
2876
2896
|
}, {
|
|
2877
|
-
default:
|
|
2878
|
-
|
|
2897
|
+
default: b(() => s[4] || (s[4] = [
|
|
2898
|
+
I("Save")
|
|
2879
2899
|
])),
|
|
2880
2900
|
_: 1
|
|
2881
2901
|
})) : C("", !0)
|
|
@@ -2883,7 +2903,7 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2883
2903
|
]);
|
|
2884
2904
|
};
|
|
2885
2905
|
}
|
|
2886
|
-
}),
|
|
2906
|
+
}), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */ F({
|
|
2887
2907
|
__name: "ForgeStatWidget",
|
|
2888
2908
|
props: {
|
|
2889
2909
|
size: { default: "md" },
|
|
@@ -2891,15 +2911,15 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2891
2911
|
},
|
|
2892
2912
|
setup(e) {
|
|
2893
2913
|
const t = e;
|
|
2894
|
-
return (a, i) => (d(),
|
|
2914
|
+
return (a, i) => (d(), f("div", S(a.$attrs, {
|
|
2895
2915
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2896
2916
|
}), [
|
|
2897
|
-
m("span",
|
|
2917
|
+
m("span", sa, [
|
|
2898
2918
|
k(a.$slots, "default")
|
|
2899
2919
|
])
|
|
2900
2920
|
], 16));
|
|
2901
2921
|
}
|
|
2902
|
-
}),
|
|
2922
|
+
}), ra = { key: 0 }, Zi = /* @__PURE__ */ F({
|
|
2903
2923
|
__name: "ForgeStepper",
|
|
2904
2924
|
props: {
|
|
2905
2925
|
currentStep: { default: 1 },
|
|
@@ -2946,31 +2966,31 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2946
2966
|
]
|
|
2947
2967
|
})
|
|
2948
2968
|
}));
|
|
2949
|
-
return (i, l) => (d(),
|
|
2950
|
-
default:
|
|
2951
|
-
|
|
2952
|
-
default:
|
|
2953
|
-
(d(!0),
|
|
2969
|
+
return (i, l) => (d(), v(c(Ne), { value: i.currentStep }, {
|
|
2970
|
+
default: b(() => [
|
|
2971
|
+
x(c(Ue), null, {
|
|
2972
|
+
default: b(() => [
|
|
2973
|
+
(d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Oe), S({
|
|
2954
2974
|
key: n.value,
|
|
2955
2975
|
value: n.value,
|
|
2956
2976
|
disabled: n.disabled,
|
|
2957
2977
|
ref_for: !0
|
|
2958
2978
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2959
|
-
default:
|
|
2960
|
-
i.showStepLabel ? (d(),
|
|
2979
|
+
default: b(() => [
|
|
2980
|
+
i.showStepLabel ? (d(), f("div", ra, w(n.label), 1)) : C("", !0)
|
|
2961
2981
|
]),
|
|
2962
2982
|
_: 2
|
|
2963
2983
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
2964
2984
|
]),
|
|
2965
2985
|
_: 1
|
|
2966
2986
|
}),
|
|
2967
|
-
|
|
2968
|
-
default:
|
|
2969
|
-
(d(!0),
|
|
2987
|
+
x(c(qe), null, {
|
|
2988
|
+
default: b(() => [
|
|
2989
|
+
(d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Ae), {
|
|
2970
2990
|
key: n.value,
|
|
2971
2991
|
value: n.value
|
|
2972
2992
|
}, {
|
|
2973
|
-
default:
|
|
2993
|
+
default: b(() => [
|
|
2974
2994
|
k(i.$slots, "step" + n.value)
|
|
2975
2995
|
]),
|
|
2976
2996
|
_: 2
|
|
@@ -2982,7 +3002,7 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2982
3002
|
_: 3
|
|
2983
3003
|
}, 8, ["value"]));
|
|
2984
3004
|
}
|
|
2985
|
-
}),
|
|
3005
|
+
}), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */ F({
|
|
2986
3006
|
__name: "ForgeTile",
|
|
2987
3007
|
props: {
|
|
2988
3008
|
severity: { default: "primary" },
|
|
@@ -2993,30 +3013,30 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
2993
3013
|
setup(e) {
|
|
2994
3014
|
const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2995
3015
|
return (l, n) => {
|
|
2996
|
-
const
|
|
2997
|
-
return t.clickable ? (d(),
|
|
3016
|
+
const o = q;
|
|
3017
|
+
return t.clickable ? (d(), v(o, {
|
|
2998
3018
|
key: 0,
|
|
2999
|
-
class:
|
|
3019
|
+
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
3000
3020
|
severity: t.severity,
|
|
3001
3021
|
unstyled: "",
|
|
3002
3022
|
"data-cy": "button-tile"
|
|
3003
3023
|
}, {
|
|
3004
|
-
default:
|
|
3005
|
-
m("div",
|
|
3024
|
+
default: b(() => [
|
|
3025
|
+
m("div", da, [
|
|
3006
3026
|
k(l.$slots, "default", {}, () => [
|
|
3007
|
-
n[0] || (n[0] =
|
|
3027
|
+
n[0] || (n[0] = I("Tile Content"))
|
|
3008
3028
|
])
|
|
3009
3029
|
])
|
|
3010
3030
|
]),
|
|
3011
3031
|
_: 3
|
|
3012
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3032
|
+
}, 8, ["severity", "class"])) : (d(), f("div", {
|
|
3013
3033
|
key: 1,
|
|
3014
|
-
class:
|
|
3034
|
+
class: B(["d-flex w-100", i.value]),
|
|
3015
3035
|
"data-cy": "tile"
|
|
3016
3036
|
}, [
|
|
3017
|
-
m("div",
|
|
3037
|
+
m("div", pa, [
|
|
3018
3038
|
k(l.$slots, "default", {}, () => [
|
|
3019
|
-
n[1] || (n[1] =
|
|
3039
|
+
n[1] || (n[1] = I("Tile Content"))
|
|
3020
3040
|
])
|
|
3021
3041
|
])
|
|
3022
3042
|
], 2));
|
|
@@ -3026,13 +3046,13 @@ const ia = { class: "d-flex flex-column" }, la = { class: "d-flex flex-row mt-1
|
|
|
3026
3046
|
function Q(e, t) {
|
|
3027
3047
|
return e > 1 ? `${t}s` : t;
|
|
3028
3048
|
}
|
|
3029
|
-
const
|
|
3049
|
+
const ca = {
|
|
3030
3050
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3031
3051
|
"data-cy": "pagination-header"
|
|
3032
|
-
},
|
|
3052
|
+
}, ua = { class: "ms-2" }, ma = { key: 0 }, va = {
|
|
3033
3053
|
class: "w-auto",
|
|
3034
3054
|
"data-cy": "total"
|
|
3035
|
-
},
|
|
3055
|
+
}, fa = /* @__PURE__ */ F({
|
|
3036
3056
|
__name: "ForgePaginationHeader",
|
|
3037
3057
|
props: {
|
|
3038
3058
|
total: {},
|
|
@@ -3041,32 +3061,32 @@ const da = {
|
|
|
3041
3061
|
},
|
|
3042
3062
|
emits: ["update:perPage"],
|
|
3043
3063
|
setup(e, { emit: t }) {
|
|
3044
|
-
const a = t, i = e, l = (
|
|
3045
|
-
a("update:perPage",
|
|
3064
|
+
const a = t, i = e, l = (o) => {
|
|
3065
|
+
a("update:perPage", o.value);
|
|
3046
3066
|
}, n = z(() => {
|
|
3047
|
-
const
|
|
3048
|
-
return `${
|
|
3067
|
+
const o = Math.ceil(i.total / i.perPage);
|
|
3068
|
+
return `${o} ${Q(o, "page")}`;
|
|
3049
3069
|
});
|
|
3050
|
-
return (
|
|
3051
|
-
r[2] || (r[2] =
|
|
3052
|
-
m("div",
|
|
3053
|
-
|
|
3070
|
+
return (o, r) => (d(), f("div", ca, [
|
|
3071
|
+
r[2] || (r[2] = I(" Number of results per page ")),
|
|
3072
|
+
m("div", ua, [
|
|
3073
|
+
x(c(te), {
|
|
3054
3074
|
options: i.pageSizes,
|
|
3055
3075
|
"model-value": i.perPage,
|
|
3056
3076
|
class: "page-size",
|
|
3057
3077
|
onChange: r[0] || (r[0] = (p) => l(p))
|
|
3058
3078
|
}, null, 8, ["options", "model-value"])
|
|
3059
3079
|
]),
|
|
3060
|
-
i.total ? (d(),
|
|
3080
|
+
i.total ? (d(), f("div", ma, [
|
|
3061
3081
|
r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3062
|
-
m("span",
|
|
3082
|
+
m("span", va, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
3063
3083
|
])) : C("", !0)
|
|
3064
3084
|
]));
|
|
3065
3085
|
}
|
|
3066
|
-
}),
|
|
3086
|
+
}), ga = { class: "position-relative" }, ba = { "data-cy": "above-table-slot" }, ya = { class: "d-flex w-100" }, xa = {
|
|
3067
3087
|
class: "mx-auto",
|
|
3068
3088
|
"data-cy": "empty-message"
|
|
3069
|
-
},
|
|
3089
|
+
}, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */ F({
|
|
3070
3090
|
__name: "ForgeTable",
|
|
3071
3091
|
props: {
|
|
3072
3092
|
value: {},
|
|
@@ -3152,17 +3172,17 @@ const da = {
|
|
|
3152
3172
|
},
|
|
3153
3173
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3154
3174
|
setup(e, { emit: t }) {
|
|
3155
|
-
const a = t, i = e, l =
|
|
3175
|
+
const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), r = _({
|
|
3156
3176
|
filters: i.filters,
|
|
3157
|
-
perPage:
|
|
3177
|
+
perPage: o.value,
|
|
3158
3178
|
page: 0,
|
|
3159
3179
|
sortDirection: "None",
|
|
3160
3180
|
sortField: "",
|
|
3161
3181
|
total: i.totalRecords ?? i.value.length
|
|
3162
3182
|
}), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
|
|
3163
|
-
const
|
|
3164
|
-
return `${
|
|
3165
|
-
}),
|
|
3183
|
+
const g = Math.ceil(p.value / o.value);
|
|
3184
|
+
return `${g} ${Q(g, "page")}`;
|
|
3185
|
+
}), y = z(() => ({
|
|
3166
3186
|
thead: () => ({
|
|
3167
3187
|
class: [
|
|
3168
3188
|
{
|
|
@@ -3184,36 +3204,36 @@ const da = {
|
|
|
3184
3204
|
}
|
|
3185
3205
|
]
|
|
3186
3206
|
})
|
|
3187
|
-
})),
|
|
3207
|
+
})), s = () => {
|
|
3188
3208
|
if (i.clearAll)
|
|
3189
3209
|
i.clearAll();
|
|
3190
3210
|
else
|
|
3191
|
-
for (const
|
|
3192
|
-
typeof i.filters[
|
|
3211
|
+
for (const g in i.filters)
|
|
3212
|
+
typeof i.filters[g] == "string" ? i.filters[g] = "" : i.filters[g].value = null;
|
|
3193
3213
|
V(i.filters);
|
|
3194
3214
|
}, $ = () => {
|
|
3195
3215
|
l.value.exportCSV();
|
|
3196
|
-
}, j = (
|
|
3216
|
+
}, j = (g) => {
|
|
3197
3217
|
var h;
|
|
3198
|
-
r.value.sortDirection =
|
|
3199
|
-
}, V = (
|
|
3200
|
-
r.value.filters =
|
|
3201
|
-
}, M = (
|
|
3202
|
-
r.value.page =
|
|
3203
|
-
},
|
|
3204
|
-
r.value.perPage =
|
|
3218
|
+
r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = g.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", g);
|
|
3219
|
+
}, V = (g) => {
|
|
3220
|
+
r.value.filters = g, a("update:tableContext", r.value), a("update:filters", g);
|
|
3221
|
+
}, M = (g) => {
|
|
3222
|
+
r.value.page = g.page, a("update:tableContext", r.value), a("page", g);
|
|
3223
|
+
}, U = () => {
|
|
3224
|
+
r.value.perPage = o.value, a("update:tableContext", r.value);
|
|
3205
3225
|
};
|
|
3206
|
-
return ce(() => i.filters, (
|
|
3207
|
-
r.value.filters =
|
|
3208
|
-
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (
|
|
3209
|
-
m("span",
|
|
3210
|
-
k(
|
|
3226
|
+
return ce(() => i.filters, (g) => {
|
|
3227
|
+
r.value.filters = g, a("update:tableContext", r.value);
|
|
3228
|
+
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (g, h) => (d(), f("div", ga, [
|
|
3229
|
+
m("span", ba, [
|
|
3230
|
+
k(g.$slots, "above-table")
|
|
3211
3231
|
]),
|
|
3212
|
-
|
|
3232
|
+
x(c(Ee), S({
|
|
3213
3233
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3214
|
-
}, { ...i, ...
|
|
3215
|
-
pt:
|
|
3216
|
-
rows:
|
|
3234
|
+
}, { ...i, ...g.$attrs }, {
|
|
3235
|
+
pt: y.value,
|
|
3236
|
+
rows: o.value,
|
|
3217
3237
|
"total-records": p.value,
|
|
3218
3238
|
"filter-display": i.filters ? "row" : void 0,
|
|
3219
3239
|
ref_key: "forgeTable",
|
|
@@ -3224,104 +3244,104 @@ const da = {
|
|
|
3224
3244
|
onPage: M,
|
|
3225
3245
|
showHeaders: ""
|
|
3226
3246
|
}), ie({
|
|
3227
|
-
empty:
|
|
3228
|
-
m("div",
|
|
3229
|
-
m("h5",
|
|
3247
|
+
empty: b(() => [
|
|
3248
|
+
m("div", ya, [
|
|
3249
|
+
m("h5", xa, w(g.emptyMessage ?? "No items Found."), 1)
|
|
3230
3250
|
])
|
|
3231
3251
|
]),
|
|
3232
|
-
header:
|
|
3252
|
+
header: b(() => [
|
|
3233
3253
|
m("div", {
|
|
3234
|
-
class:
|
|
3254
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3235
3255
|
}, [
|
|
3236
|
-
m("div",
|
|
3237
|
-
m("div",
|
|
3238
|
-
|
|
3239
|
-
|
|
3256
|
+
m("div", ha, [
|
|
3257
|
+
m("div", wa, [
|
|
3258
|
+
g.paginator && !g.legacyPaginationFooter ? (d(), f("span", ka, [
|
|
3259
|
+
x(fa, {
|
|
3240
3260
|
total: p.value,
|
|
3241
3261
|
"page-sizes": n.value,
|
|
3242
|
-
"per-page":
|
|
3262
|
+
"per-page": o.value,
|
|
3243
3263
|
"onUpdate:perPage": [
|
|
3244
|
-
h[0] || (h[0] = (P) =>
|
|
3245
|
-
|
|
3264
|
+
h[0] || (h[0] = (P) => o.value = P),
|
|
3265
|
+
U
|
|
3246
3266
|
]
|
|
3247
3267
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3248
3268
|
])) : C("", !0)
|
|
3249
3269
|
]),
|
|
3250
|
-
m("div",
|
|
3251
|
-
|
|
3270
|
+
m("div", $a, [
|
|
3271
|
+
g.showClearButton ? (d(), v(c(q), {
|
|
3252
3272
|
key: 0,
|
|
3253
3273
|
outlined: "",
|
|
3254
|
-
class:
|
|
3255
|
-
onClick:
|
|
3274
|
+
class: B(g.showExporterButton ? "me-2" : ""),
|
|
3275
|
+
onClick: s,
|
|
3256
3276
|
"data-cy": "clear-all"
|
|
3257
3277
|
}, {
|
|
3258
|
-
default:
|
|
3259
|
-
|
|
3278
|
+
default: b(() => [
|
|
3279
|
+
x(c(T), {
|
|
3260
3280
|
icon: "bi:funnel-fill",
|
|
3261
3281
|
width: "24",
|
|
3262
3282
|
height: "24"
|
|
3263
3283
|
}),
|
|
3264
|
-
h[2] || (h[2] =
|
|
3284
|
+
h[2] || (h[2] = I(" Clear "))
|
|
3265
3285
|
]),
|
|
3266
3286
|
_: 1
|
|
3267
3287
|
}, 8, ["class"])) : C("", !0),
|
|
3268
|
-
|
|
3288
|
+
g.showExporterButton ? (d(), v(c(q), {
|
|
3269
3289
|
key: 1,
|
|
3270
3290
|
outlined: "",
|
|
3271
3291
|
onClick: $,
|
|
3272
3292
|
"data-cy": "exporter"
|
|
3273
3293
|
}, {
|
|
3274
|
-
default:
|
|
3275
|
-
|
|
3294
|
+
default: b(() => [
|
|
3295
|
+
x(c(T), {
|
|
3276
3296
|
icon: "typcn:export",
|
|
3277
3297
|
width: "24",
|
|
3278
3298
|
height: "24"
|
|
3279
3299
|
}),
|
|
3280
|
-
h[3] || (h[3] =
|
|
3300
|
+
h[3] || (h[3] = I(" Export "))
|
|
3281
3301
|
]),
|
|
3282
3302
|
_: 1
|
|
3283
3303
|
})) : C("", !0),
|
|
3284
|
-
k(
|
|
3304
|
+
k(g.$slots, "column-customiser")
|
|
3285
3305
|
])
|
|
3286
3306
|
])
|
|
3287
3307
|
], 2)
|
|
3288
3308
|
]),
|
|
3289
|
-
default:
|
|
3290
|
-
k(
|
|
3309
|
+
default: b(() => [
|
|
3310
|
+
k(g.$slots, "default")
|
|
3291
3311
|
]),
|
|
3292
3312
|
_: 2
|
|
3293
3313
|
}, [
|
|
3294
|
-
|
|
3314
|
+
A(g.$slots, (P, L) => ({
|
|
3295
3315
|
name: L,
|
|
3296
|
-
fn:
|
|
3297
|
-
k(
|
|
3316
|
+
fn: b((ae) => [
|
|
3317
|
+
k(g.$slots, L, K(Z(ae || {})))
|
|
3298
3318
|
])
|
|
3299
3319
|
})),
|
|
3300
|
-
|
|
3320
|
+
g.legacyPaginationFooter ? {
|
|
3301
3321
|
name: "paginatorstart",
|
|
3302
|
-
fn:
|
|
3322
|
+
fn: b(() => [
|
|
3303
3323
|
m("span", {
|
|
3304
|
-
class:
|
|
3324
|
+
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3305
3325
|
"data-cy": "legacy-page-size"
|
|
3306
3326
|
}, [
|
|
3307
3327
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3308
|
-
|
|
3328
|
+
x(c(te), {
|
|
3309
3329
|
options: n.value,
|
|
3310
|
-
modelValue:
|
|
3311
|
-
"onUpdate:modelValue": h[1] || (h[1] = (P) =>
|
|
3330
|
+
modelValue: o.value,
|
|
3331
|
+
"onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
|
|
3312
3332
|
class: "ms-2",
|
|
3313
|
-
onClick:
|
|
3333
|
+
onClick: U
|
|
3314
3334
|
}, null, 8, ["options", "modelValue"])
|
|
3315
3335
|
], 2)
|
|
3316
3336
|
]),
|
|
3317
3337
|
key: "0"
|
|
3318
3338
|
} : void 0,
|
|
3319
|
-
|
|
3339
|
+
g.legacyPaginationFooter ? {
|
|
3320
3340
|
name: "paginatorend",
|
|
3321
|
-
fn:
|
|
3341
|
+
fn: b(() => [
|
|
3322
3342
|
m("span", {
|
|
3323
3343
|
"data-cy": "legacy-total",
|
|
3324
|
-
class:
|
|
3344
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3325
3345
|
}, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
|
|
3326
3346
|
]),
|
|
3327
3347
|
key: "1"
|
|
@@ -3329,9 +3349,9 @@ const da = {
|
|
|
3329
3349
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3330
3350
|
]));
|
|
3331
3351
|
}
|
|
3332
|
-
}),
|
|
3352
|
+
}), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */ F({
|
|
3333
3353
|
__name: "ForgeFilterHeader",
|
|
3334
|
-
props: /* @__PURE__ */
|
|
3354
|
+
props: /* @__PURE__ */ N({
|
|
3335
3355
|
dataType: {},
|
|
3336
3356
|
dropdownOptions: {},
|
|
3337
3357
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3347,32 +3367,32 @@ const da = {
|
|
|
3347
3367
|
const t = D(e, "modelValue"), a = (l, n) => {
|
|
3348
3368
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3349
3369
|
return n;
|
|
3350
|
-
const
|
|
3370
|
+
const o = (r) => {
|
|
3351
3371
|
var u;
|
|
3352
3372
|
const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
|
|
3353
|
-
(
|
|
3373
|
+
(y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
|
|
3354
3374
|
);
|
|
3355
3375
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3356
3376
|
};
|
|
3357
|
-
return Array.isArray(l) ? l.map(
|
|
3377
|
+
return Array.isArray(l) ? l.map(o).join(", ") : o(l);
|
|
3358
3378
|
}, i = () => {
|
|
3359
3379
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3360
3380
|
};
|
|
3361
3381
|
return (l, n) => {
|
|
3362
|
-
const
|
|
3363
|
-
return d(),
|
|
3364
|
-
l.dataType === "numeric" ? (d(),
|
|
3382
|
+
const o = ue, r = q;
|
|
3383
|
+
return d(), f("div", Fa, [
|
|
3384
|
+
l.dataType === "numeric" ? (d(), v(o, S({
|
|
3365
3385
|
key: 0,
|
|
3366
3386
|
modelValue: t.value,
|
|
3367
3387
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
|
|
3368
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(),
|
|
3388
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), v(be, S({
|
|
3369
3389
|
key: 1,
|
|
3370
3390
|
modelValue: t.value,
|
|
3371
3391
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3372
3392
|
}, l.$attrs, {
|
|
3373
3393
|
"show-icon": !1,
|
|
3374
3394
|
"show-on-focus": !0
|
|
3375
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(),
|
|
3395
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(c(te), S({
|
|
3376
3396
|
key: 2,
|
|
3377
3397
|
modelValue: t.value,
|
|
3378
3398
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3381,19 +3401,19 @@ const da = {
|
|
|
3381
3401
|
"option-value": l.optionValue,
|
|
3382
3402
|
"option-label": l.optionLabel
|
|
3383
3403
|
}), {
|
|
3384
|
-
value:
|
|
3385
|
-
m("div",
|
|
3404
|
+
value: b(({ value: p, placeholder: u }) => [
|
|
3405
|
+
m("div", Ba, [
|
|
3386
3406
|
m("span", {
|
|
3387
|
-
class:
|
|
3407
|
+
class: B({ "filter-placeholder": p === null })
|
|
3388
3408
|
}, w(a(p, u)), 3),
|
|
3389
|
-
l.showClearButton && t.value !== null ? (d(),
|
|
3409
|
+
l.showClearButton && t.value !== null ? (d(), v(r, {
|
|
3390
3410
|
key: 0,
|
|
3391
3411
|
onClick: G(i, ["prevent"]),
|
|
3392
3412
|
size: "small",
|
|
3393
3413
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3394
3414
|
}, {
|
|
3395
|
-
default:
|
|
3396
|
-
|
|
3415
|
+
default: b(() => [
|
|
3416
|
+
x(c(T), {
|
|
3397
3417
|
icon: "bi:x",
|
|
3398
3418
|
width: "1rem",
|
|
3399
3419
|
height: "1rem",
|
|
@@ -3405,7 +3425,7 @@ const da = {
|
|
|
3405
3425
|
])
|
|
3406
3426
|
]),
|
|
3407
3427
|
_: 1
|
|
3408
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(),
|
|
3428
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(c(oe), S({
|
|
3409
3429
|
key: 3,
|
|
3410
3430
|
modelValue: t.value,
|
|
3411
3431
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3415,19 +3435,19 @@ const da = {
|
|
|
3415
3435
|
"option-label": l.optionLabel,
|
|
3416
3436
|
"option-value": l.optionValue,
|
|
3417
3437
|
filter: ""
|
|
3418
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3438
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(c(ne), S({
|
|
3419
3439
|
key: 4,
|
|
3420
3440
|
modelValue: t.value,
|
|
3421
3441
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
|
|
3422
3442
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3423
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(),
|
|
3443
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), v(r, {
|
|
3424
3444
|
key: 5,
|
|
3425
3445
|
onClick: G(i, ["prevent"]),
|
|
3426
3446
|
size: "small",
|
|
3427
3447
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3428
3448
|
}, {
|
|
3429
|
-
default:
|
|
3430
|
-
|
|
3449
|
+
default: b(() => [
|
|
3450
|
+
x(c(T), {
|
|
3431
3451
|
icon: "bi:x",
|
|
3432
3452
|
width: "1rem",
|
|
3433
3453
|
height: "1rem",
|
|
@@ -4492,12 +4512,12 @@ const de = {
|
|
|
4492
4512
|
"video/webm": ["webm"]
|
|
4493
4513
|
};
|
|
4494
4514
|
Object.freeze(de);
|
|
4495
|
-
var
|
|
4515
|
+
var E = function(e, t, a, i) {
|
|
4496
4516
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4497
4517
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4498
4518
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4499
4519
|
}, W, J, R;
|
|
4500
|
-
class
|
|
4520
|
+
class ye {
|
|
4501
4521
|
constructor(...t) {
|
|
4502
4522
|
W.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
|
|
4503
4523
|
for (const a of t)
|
|
@@ -4505,17 +4525,17 @@ class xe {
|
|
|
4505
4525
|
}
|
|
4506
4526
|
define(t, a = !1) {
|
|
4507
4527
|
for (let [i, l] of Object.entries(t)) {
|
|
4508
|
-
i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()),
|
|
4509
|
-
const n =
|
|
4510
|
-
let
|
|
4528
|
+
i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
|
|
4529
|
+
const n = E(this, R, "f").get(i);
|
|
4530
|
+
let o = !0;
|
|
4511
4531
|
for (let r of l) {
|
|
4512
4532
|
const p = r.startsWith("*");
|
|
4513
|
-
if (r = p ? r.slice(1) : r, n == null || n.add(r),
|
|
4533
|
+
if (r = p ? r.slice(1) : r, n == null || n.add(r), o && E(this, J, "f").set(i, r), o = !1, p)
|
|
4514
4534
|
continue;
|
|
4515
|
-
const u =
|
|
4535
|
+
const u = E(this, W, "f").get(r);
|
|
4516
4536
|
if (u && u != i && !a)
|
|
4517
4537
|
throw new Error(`"${i} -> ${r}" conflicts with "${u} -> ${r}". Pass \`force=true\` to override this definition.`);
|
|
4518
|
-
|
|
4538
|
+
E(this, W, "f").set(r, i);
|
|
4519
4539
|
}
|
|
4520
4540
|
}
|
|
4521
4541
|
return this;
|
|
@@ -4524,45 +4544,45 @@ class xe {
|
|
|
4524
4544
|
if (typeof t != "string")
|
|
4525
4545
|
return null;
|
|
4526
4546
|
const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
|
|
4527
|
-
return !(i.length < a.length - 1) && l ? null :
|
|
4547
|
+
return !(i.length < a.length - 1) && l ? null : E(this, W, "f").get(i) ?? null;
|
|
4528
4548
|
}
|
|
4529
4549
|
getExtension(t) {
|
|
4530
4550
|
var a;
|
|
4531
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t &&
|
|
4551
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, J, "f").get(t.trim().toLowerCase())) ?? null);
|
|
4532
4552
|
}
|
|
4533
4553
|
getAllExtensions(t) {
|
|
4534
|
-
return typeof t != "string" ? null :
|
|
4554
|
+
return typeof t != "string" ? null : E(this, R, "f").get(t.toLowerCase()) ?? null;
|
|
4535
4555
|
}
|
|
4536
4556
|
_freeze() {
|
|
4537
4557
|
this.define = () => {
|
|
4538
4558
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
4539
4559
|
}, Object.freeze(this);
|
|
4540
|
-
for (const t of
|
|
4560
|
+
for (const t of E(this, R, "f").values())
|
|
4541
4561
|
Object.freeze(t);
|
|
4542
4562
|
return this;
|
|
4543
4563
|
}
|
|
4544
4564
|
_getTestState() {
|
|
4545
4565
|
return {
|
|
4546
|
-
types:
|
|
4547
|
-
extensions:
|
|
4566
|
+
types: E(this, W, "f"),
|
|
4567
|
+
extensions: E(this, J, "f")
|
|
4548
4568
|
};
|
|
4549
4569
|
}
|
|
4550
4570
|
}
|
|
4551
4571
|
W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4552
|
-
const
|
|
4553
|
-
function
|
|
4572
|
+
const Sa = new ye(de, re)._freeze();
|
|
4573
|
+
function xe(e, t, a, i) {
|
|
4554
4574
|
const l = t.flatMap((n) => n.file);
|
|
4555
4575
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
4556
|
-
const
|
|
4576
|
+
const o = l.findIndex((p) => p.name === n.name);
|
|
4557
4577
|
let r = "Not Uploaded";
|
|
4558
|
-
|
|
4578
|
+
o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4559
4579
|
file: n,
|
|
4560
4580
|
status: r,
|
|
4561
4581
|
blobFileName: null
|
|
4562
|
-
})) : t[
|
|
4582
|
+
})) : t[o].status = "Duplicate";
|
|
4563
4583
|
}), t;
|
|
4564
4584
|
}
|
|
4565
|
-
async function
|
|
4585
|
+
async function Ca(e, t) {
|
|
4566
4586
|
if (e === "Uploaded" && t !== null)
|
|
4567
4587
|
try {
|
|
4568
4588
|
await new me(t).delete();
|
|
@@ -4579,28 +4599,28 @@ function pe(e, t = !0, a = 1) {
|
|
|
4579
4599
|
return e + " B";
|
|
4580
4600
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
4581
4601
|
let n = -1;
|
|
4582
|
-
const
|
|
4602
|
+
const o = 10 ** a;
|
|
4583
4603
|
do
|
|
4584
4604
|
e /= i, ++n;
|
|
4585
|
-
while (Math.round(Math.abs(e) *
|
|
4605
|
+
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4586
4606
|
return e.toFixed(a) + " " + l[n];
|
|
4587
4607
|
}
|
|
4588
|
-
function
|
|
4608
|
+
function za(e) {
|
|
4589
4609
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4590
4610
|
}
|
|
4591
|
-
function
|
|
4611
|
+
function Ta(e) {
|
|
4592
4612
|
return URL.createObjectURL(e);
|
|
4593
4613
|
}
|
|
4594
|
-
function
|
|
4595
|
-
const e = new
|
|
4614
|
+
function ja() {
|
|
4615
|
+
const e = new ye(de, re);
|
|
4596
4616
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4597
4617
|
}
|
|
4598
|
-
const
|
|
4618
|
+
const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disabled", "multiple"], Pa = {
|
|
4599
4619
|
class: "text-break accepted-file-types-container",
|
|
4600
4620
|
id: "accepted-file-types-overlay"
|
|
4601
|
-
},
|
|
4621
|
+
}, Va = /* @__PURE__ */ F({
|
|
4602
4622
|
__name: "UploadButton",
|
|
4603
|
-
props: /* @__PURE__ */
|
|
4623
|
+
props: /* @__PURE__ */ N({
|
|
4604
4624
|
acceptedFileTypes: {},
|
|
4605
4625
|
maxFileInput: {},
|
|
4606
4626
|
showDragDropArea: { type: Boolean }
|
|
@@ -4610,73 +4630,73 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4610
4630
|
}),
|
|
4611
4631
|
emits: ["update:modelValue"],
|
|
4612
4632
|
setup(e) {
|
|
4613
|
-
const t = D(e, "modelValue"), a =
|
|
4614
|
-
t.value =
|
|
4633
|
+
const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
4634
|
+
t.value = xe(o, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
|
|
4615
4635
|
};
|
|
4616
|
-
return (
|
|
4617
|
-
const p =
|
|
4618
|
-
return d(),
|
|
4619
|
-
k(
|
|
4636
|
+
return (o, r) => {
|
|
4637
|
+
const p = q;
|
|
4638
|
+
return d(), f("div", _a, [
|
|
4639
|
+
k(o.$slots, "message"),
|
|
4620
4640
|
m("div", null, [
|
|
4621
4641
|
m("input", {
|
|
4622
4642
|
id: "file-input",
|
|
4623
4643
|
type: "file",
|
|
4624
4644
|
class: "d-none",
|
|
4625
|
-
accept:
|
|
4645
|
+
accept: o.acceptedFileTypes.join(", "),
|
|
4626
4646
|
disabled: l.value,
|
|
4627
|
-
multiple:
|
|
4647
|
+
multiple: o.maxFileInput > 1,
|
|
4628
4648
|
onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
|
|
4629
|
-
}, null, 40,
|
|
4649
|
+
}, null, 40, Ia),
|
|
4630
4650
|
m("label", {
|
|
4631
|
-
class:
|
|
4651
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
4632
4652
|
id: "file-input-button",
|
|
4633
4653
|
for: "file-input"
|
|
4634
4654
|
}, [
|
|
4635
|
-
k(
|
|
4636
|
-
|
|
4655
|
+
k(o.$slots, "button-content", {}, () => [
|
|
4656
|
+
x(c(T), {
|
|
4637
4657
|
icon: "bi:upload",
|
|
4638
4658
|
class: "me-2",
|
|
4639
4659
|
height: "20px",
|
|
4640
4660
|
width: "20px"
|
|
4641
4661
|
}),
|
|
4642
|
-
r[1] || (r[1] =
|
|
4662
|
+
r[1] || (r[1] = I(" Browse your computer "))
|
|
4643
4663
|
])
|
|
4644
4664
|
], 2)
|
|
4645
4665
|
]),
|
|
4646
|
-
|
|
4666
|
+
o.showDragDropArea ? (d(), v(p, {
|
|
4647
4667
|
link: "",
|
|
4648
4668
|
class: "ms-auto",
|
|
4649
|
-
key:
|
|
4669
|
+
key: o.acceptedFileTypes.length,
|
|
4650
4670
|
id: "accepted-file-types",
|
|
4651
4671
|
onClick: i
|
|
4652
4672
|
}, {
|
|
4653
|
-
default:
|
|
4654
|
-
|
|
4673
|
+
default: b(() => r[2] || (r[2] = [
|
|
4674
|
+
I("Accepted File Types")
|
|
4655
4675
|
])),
|
|
4656
4676
|
_: 1
|
|
4657
4677
|
})) : C("", !0),
|
|
4658
|
-
|
|
4678
|
+
x(c(ve), {
|
|
4659
4679
|
ref_key: "acceptedFilesOverlay",
|
|
4660
4680
|
ref: a
|
|
4661
4681
|
}, {
|
|
4662
|
-
default:
|
|
4663
|
-
m("div",
|
|
4682
|
+
default: b(() => [
|
|
4683
|
+
m("div", Pa, w(o.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
4664
4684
|
]),
|
|
4665
4685
|
_: 1
|
|
4666
4686
|
}, 512)
|
|
4667
4687
|
]);
|
|
4668
4688
|
};
|
|
4669
4689
|
}
|
|
4670
|
-
}),
|
|
4690
|
+
}), Ma = {
|
|
4671
4691
|
key: 0,
|
|
4672
4692
|
class: "py-4 px-3",
|
|
4673
4693
|
id: "placeholder-message"
|
|
4674
|
-
},
|
|
4694
|
+
}, Da = {
|
|
4675
4695
|
key: 1,
|
|
4676
4696
|
class: "d-flex flex-column"
|
|
4677
|
-
},
|
|
4697
|
+
}, Oa = /* @__PURE__ */ F({
|
|
4678
4698
|
__name: "DragDropArea",
|
|
4679
|
-
props: /* @__PURE__ */
|
|
4699
|
+
props: /* @__PURE__ */ N({
|
|
4680
4700
|
maxFileInput: {},
|
|
4681
4701
|
maxFileSize: {},
|
|
4682
4702
|
acceptedFileTypes: {}
|
|
@@ -4686,30 +4706,30 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4686
4706
|
}),
|
|
4687
4707
|
emits: ["update:modelValue"],
|
|
4688
4708
|
setup(e) {
|
|
4689
|
-
const t = D(e, "modelValue"), a =
|
|
4690
|
-
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value =
|
|
4709
|
+
const t = D(e, "modelValue"), a = _(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4710
|
+
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
4691
4711
|
};
|
|
4692
|
-
return (n,
|
|
4712
|
+
return (n, o) => (d(), f("div", {
|
|
4693
4713
|
id: "drag-drop-area",
|
|
4694
|
-
class:
|
|
4695
|
-
onDragleave:
|
|
4696
|
-
onDragover:
|
|
4714
|
+
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4715
|
+
onDragleave: o[0] || (o[0] = G((r) => a.value = !1, ["prevent"])),
|
|
4716
|
+
onDragover: o[1] || (o[1] = G((r) => a.value = !0, ["prevent"])),
|
|
4697
4717
|
onDrop: G(l, ["prevent"])
|
|
4698
4718
|
}, [
|
|
4699
|
-
t.value.length === 0 ? (d(),
|
|
4700
|
-
|
|
4719
|
+
t.value.length === 0 ? (d(), f("div", Ma, [
|
|
4720
|
+
x(c(T), {
|
|
4701
4721
|
icon: "bi:upload",
|
|
4702
4722
|
class: "me-2",
|
|
4703
4723
|
height: "20px",
|
|
4704
4724
|
width: "20px"
|
|
4705
4725
|
}),
|
|
4706
|
-
|
|
4707
|
-
])) : (d(),
|
|
4726
|
+
o[2] || (o[2] = I(" Drag and drop files here "))
|
|
4727
|
+
])) : (d(), f("div", Da, [
|
|
4708
4728
|
k(n.$slots, "default")
|
|
4709
4729
|
]))
|
|
4710
4730
|
], 34));
|
|
4711
4731
|
}
|
|
4712
|
-
}),
|
|
4732
|
+
}), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */ F({
|
|
4713
4733
|
__name: "UploadStatus",
|
|
4714
4734
|
props: {
|
|
4715
4735
|
fileSize: {},
|
|
@@ -4734,43 +4754,43 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4734
4754
|
return "Upload Failed: Connection error, please try again.";
|
|
4735
4755
|
}
|
|
4736
4756
|
});
|
|
4737
|
-
return (i, l) => (d(),
|
|
4738
|
-
i.uploadStatus === "Uploading" ? (d(),
|
|
4757
|
+
return (i, l) => (d(), f("div", Na, [
|
|
4758
|
+
i.uploadStatus === "Uploading" ? (d(), v(ia, {
|
|
4739
4759
|
key: 0,
|
|
4740
4760
|
pixelWidth: 200,
|
|
4741
4761
|
animate: "",
|
|
4742
4762
|
striped: ""
|
|
4743
4763
|
}, {
|
|
4744
|
-
default:
|
|
4745
|
-
|
|
4764
|
+
default: b(() => [
|
|
4765
|
+
I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4746
4766
|
]),
|
|
4747
4767
|
_: 1
|
|
4748
4768
|
})) : C("", !0),
|
|
4749
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(),
|
|
4769
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), v(se, {
|
|
4750
4770
|
key: 1,
|
|
4751
4771
|
id: "upload-status-alert",
|
|
4752
4772
|
severity: t.value,
|
|
4753
4773
|
class: "mb-0 w-75 ms-auto"
|
|
4754
4774
|
}, {
|
|
4755
|
-
default:
|
|
4756
|
-
|
|
4775
|
+
default: b(() => [
|
|
4776
|
+
I(w(a.value), 1)
|
|
4757
4777
|
]),
|
|
4758
4778
|
_: 1
|
|
4759
4779
|
}, 8, ["severity"])) : C("", !0)
|
|
4760
4780
|
]));
|
|
4761
4781
|
}
|
|
4762
|
-
}),
|
|
4782
|
+
}), Aa = ["data-cy"], qa = { class: "ms-3 d-flex flex-column" }, Ea = {
|
|
4763
4783
|
key: 1,
|
|
4764
4784
|
id: "file-name"
|
|
4765
|
-
},
|
|
4785
|
+
}, La = {
|
|
4766
4786
|
class: "text-black-50",
|
|
4767
4787
|
id: "file-type"
|
|
4768
|
-
},
|
|
4788
|
+
}, Ra = {
|
|
4769
4789
|
class: "text-black-50",
|
|
4770
4790
|
id: "file-size"
|
|
4771
|
-
},
|
|
4791
|
+
}, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */ F({
|
|
4772
4792
|
__name: "FileInfo",
|
|
4773
|
-
props: /* @__PURE__ */
|
|
4793
|
+
props: /* @__PURE__ */ N({
|
|
4774
4794
|
editableFileName: { type: Boolean },
|
|
4775
4795
|
acceptedFileTypes: {},
|
|
4776
4796
|
maxFileSize: {},
|
|
@@ -4785,27 +4805,27 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4785
4805
|
uploadStatus: { required: !0 },
|
|
4786
4806
|
uploadStatusModifiers: {}
|
|
4787
4807
|
}),
|
|
4788
|
-
emits: /* @__PURE__ */
|
|
4808
|
+
emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4789
4809
|
setup(e, { emit: t }) {
|
|
4790
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t,
|
|
4791
|
-
|
|
4810
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), r = _(""), p = _(0), u = _(), y = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), s = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : ja().getType(a.value.name)), j = () => {
|
|
4811
|
+
o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4792
4812
|
}, V = () => {
|
|
4793
|
-
let
|
|
4794
|
-
|
|
4813
|
+
let g = o.value.split("."), h = Sa.getExtension($.value), P = o.value.split(".").pop();
|
|
4814
|
+
g.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : g.length > 1 && P !== h && (o.value = o.value.replace(P, h));
|
|
4795
4815
|
}, M = async () => {
|
|
4796
|
-
if (!
|
|
4797
|
-
l.value =
|
|
4816
|
+
if (!y.value || !s.value) {
|
|
4817
|
+
l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4798
4818
|
return;
|
|
4799
4819
|
}
|
|
4800
4820
|
l.value = "Preparing", u.value = new AbortController();
|
|
4801
|
-
const [
|
|
4802
|
-
if (!
|
|
4821
|
+
const [g, h] = await e.getFileUrlAction(a.value.name);
|
|
4822
|
+
if (!g) {
|
|
4803
4823
|
l.value = "Failed";
|
|
4804
4824
|
return;
|
|
4805
4825
|
}
|
|
4806
4826
|
try {
|
|
4807
4827
|
l.value = "Uploading";
|
|
4808
|
-
const P = new me(
|
|
4828
|
+
const P = new me(g), L = {
|
|
4809
4829
|
abortSignal: u.value.signal,
|
|
4810
4830
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4811
4831
|
blobHTTPHeaders: {
|
|
@@ -4814,7 +4834,7 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4814
4834
|
},
|
|
4815
4835
|
tags: { temp: "true" }
|
|
4816
4836
|
};
|
|
4817
|
-
await P.uploadData(a.value, L), r.value =
|
|
4837
|
+
await P.uploadData(a.value, L), r.value = g, l.value = "Uploaded", i.value = h;
|
|
4818
4838
|
} catch (P) {
|
|
4819
4839
|
if (P.name === "AbortError") {
|
|
4820
4840
|
l.value = "Aborted";
|
|
@@ -4822,27 +4842,27 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4822
4842
|
}
|
|
4823
4843
|
l.value = "Failed";
|
|
4824
4844
|
}
|
|
4825
|
-
},
|
|
4826
|
-
await
|
|
4845
|
+
}, U = async () => {
|
|
4846
|
+
await Ca(l.value, r.value), n("deleted", a.value);
|
|
4827
4847
|
};
|
|
4828
4848
|
return le(() => {
|
|
4829
4849
|
e.autoUploadToBlob && M();
|
|
4830
|
-
}), (
|
|
4831
|
-
const P =
|
|
4832
|
-
return d(),
|
|
4850
|
+
}), (g, h) => {
|
|
4851
|
+
const P = q;
|
|
4852
|
+
return d(), f("div", {
|
|
4833
4853
|
class: "py-4 px-3 d-flex",
|
|
4834
4854
|
"data-cy": `file-info-${a.value.name}`
|
|
4835
4855
|
}, [
|
|
4836
4856
|
m("div", null, [
|
|
4837
|
-
c(
|
|
4857
|
+
c(za)(a.value.type) ? (d(), v(c(Le), {
|
|
4838
4858
|
key: 0,
|
|
4839
4859
|
id: "thumbnail-image",
|
|
4840
4860
|
"image-class": "image-file-thumbnail border",
|
|
4841
|
-
src: c(
|
|
4861
|
+
src: c(Ta)(a.value),
|
|
4842
4862
|
alt: a.value.name,
|
|
4843
4863
|
width: "75px",
|
|
4844
4864
|
preview: ""
|
|
4845
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
4865
|
+
}, null, 8, ["src", "alt"])) : (d(), v(c(T), {
|
|
4846
4866
|
key: 1,
|
|
4847
4867
|
id: "file-earmark",
|
|
4848
4868
|
icon: "bi:file-earmark",
|
|
@@ -4850,78 +4870,78 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4850
4870
|
width: "75px"
|
|
4851
4871
|
}))
|
|
4852
4872
|
]),
|
|
4853
|
-
m("div",
|
|
4873
|
+
m("div", qa, [
|
|
4854
4874
|
m("div", null, [
|
|
4855
|
-
|
|
4875
|
+
g.editableFileName ? (d(), v(At, {
|
|
4856
4876
|
key: 0,
|
|
4857
4877
|
id: "edit-file-name",
|
|
4858
|
-
modelValue:
|
|
4859
|
-
"onUpdate:modelValue": h[0] || (h[0] = (L) =>
|
|
4860
|
-
rules:
|
|
4878
|
+
modelValue: o.value,
|
|
4879
|
+
"onUpdate:modelValue": h[0] || (h[0] = (L) => o.value = L),
|
|
4880
|
+
rules: g.customFileNameRules,
|
|
4861
4881
|
name: a.value.name,
|
|
4862
4882
|
"complete-action": j
|
|
4863
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
4883
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Ea, w(o.value), 1))
|
|
4864
4884
|
]),
|
|
4865
|
-
m("span",
|
|
4866
|
-
m("span",
|
|
4885
|
+
m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4886
|
+
m("span", Ra, "File size: " + w(c(pe)(a.value.size)), 1)
|
|
4867
4887
|
]),
|
|
4868
|
-
m("div",
|
|
4869
|
-
(d(),
|
|
4888
|
+
m("div", Ha, [
|
|
4889
|
+
(d(), v(Ua, {
|
|
4870
4890
|
key: l.value,
|
|
4871
4891
|
"file-size": a.value.size,
|
|
4872
4892
|
"upload-status": l.value,
|
|
4873
4893
|
"bytes-uploaded": p.value,
|
|
4874
|
-
"max-file-size":
|
|
4894
|
+
"max-file-size": g.maxFileSize
|
|
4875
4895
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4876
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(),
|
|
4896
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), v(P, {
|
|
4877
4897
|
key: 0,
|
|
4878
4898
|
link: "",
|
|
4879
4899
|
onClick: M
|
|
4880
4900
|
}, {
|
|
4881
|
-
default:
|
|
4882
|
-
|
|
4901
|
+
default: b(() => [
|
|
4902
|
+
x(c(T), {
|
|
4883
4903
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4884
4904
|
}, null, 8, ["icon"])
|
|
4885
4905
|
]),
|
|
4886
4906
|
_: 1
|
|
4887
4907
|
})) : C("", !0),
|
|
4888
|
-
l.value === "Uploading" ? (d(),
|
|
4908
|
+
l.value === "Uploading" ? (d(), v(P, {
|
|
4889
4909
|
key: 1,
|
|
4890
4910
|
link: "",
|
|
4891
4911
|
onClick: h[1] || (h[1] = (L) => u.value.value.abort())
|
|
4892
4912
|
}, {
|
|
4893
|
-
default:
|
|
4894
|
-
|
|
4913
|
+
default: b(() => [
|
|
4914
|
+
x(c(T), { icon: "bi:x-circle-fill" })
|
|
4895
4915
|
]),
|
|
4896
4916
|
_: 1
|
|
4897
|
-
})) : (d(),
|
|
4917
|
+
})) : (d(), v(P, {
|
|
4898
4918
|
key: 2,
|
|
4899
4919
|
link: "",
|
|
4900
|
-
onClick:
|
|
4920
|
+
onClick: U,
|
|
4901
4921
|
id: "delete-button"
|
|
4902
4922
|
}, {
|
|
4903
|
-
default:
|
|
4904
|
-
|
|
4923
|
+
default: b(() => [
|
|
4924
|
+
x(c(T), { icon: "bi:trash" })
|
|
4905
4925
|
]),
|
|
4906
4926
|
_: 1
|
|
4907
4927
|
}))
|
|
4908
4928
|
])
|
|
4909
|
-
], 8,
|
|
4929
|
+
], 8, Aa);
|
|
4910
4930
|
};
|
|
4911
4931
|
}
|
|
4912
|
-
}),
|
|
4932
|
+
}), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */ F({
|
|
4913
4933
|
__name: "MaxFileSize",
|
|
4914
4934
|
props: {
|
|
4915
4935
|
maxFileSize: {}
|
|
4916
4936
|
},
|
|
4917
4937
|
setup(e) {
|
|
4918
|
-
return (t, a) => (d(),
|
|
4919
|
-
m("div",
|
|
4938
|
+
return (t, a) => (d(), f("div", Ya, [
|
|
4939
|
+
m("div", Ga, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
|
|
4920
4940
|
]));
|
|
4921
4941
|
}
|
|
4922
|
-
}),
|
|
4942
|
+
}), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ F({
|
|
4923
4943
|
__name: "ForgeFileUploader",
|
|
4924
|
-
props: /* @__PURE__ */
|
|
4944
|
+
props: /* @__PURE__ */ N({
|
|
4925
4945
|
acceptedFileTypes: {},
|
|
4926
4946
|
maxFileSize: {},
|
|
4927
4947
|
getFileUrlAction: {},
|
|
@@ -4939,23 +4959,23 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4939
4959
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4940
4960
|
t.value = t.value.filter((n) => n.file != l);
|
|
4941
4961
|
};
|
|
4942
|
-
return (l, n) => (d(),
|
|
4943
|
-
|
|
4962
|
+
return (l, n) => (d(), f("div", Ka, [
|
|
4963
|
+
x(Va, S(a, {
|
|
4944
4964
|
modelValue: t.value,
|
|
4945
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
4965
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
4946
4966
|
}), null, 16, ["modelValue"]),
|
|
4947
|
-
l.showDragDropArea ? (d(),
|
|
4948
|
-
|
|
4967
|
+
l.showDragDropArea ? (d(), f("div", Za, [
|
|
4968
|
+
x(Oa, {
|
|
4949
4969
|
"max-file-input": a.maxFileInput,
|
|
4950
4970
|
"max-file-size": a.maxFileSize,
|
|
4951
4971
|
"accepted-file-types": a.acceptedFileTypes,
|
|
4952
4972
|
modelValue: t.value,
|
|
4953
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
4973
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
4954
4974
|
}, {
|
|
4955
|
-
default:
|
|
4956
|
-
(d(!0),
|
|
4957
|
-
(d(),
|
|
4958
|
-
key:
|
|
4975
|
+
default: b(() => [
|
|
4976
|
+
(d(!0), f(O, null, A(t.value, ({ file: o }, r) => (d(), f("span", null, [
|
|
4977
|
+
(d(), v(Wa, S({
|
|
4978
|
+
key: o.name,
|
|
4959
4979
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4960
4980
|
file: t.value[r].file,
|
|
4961
4981
|
"onUpdate:file": (p) => t.value[r].file = p,
|
|
@@ -4969,13 +4989,13 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4969
4989
|
]),
|
|
4970
4990
|
_: 1
|
|
4971
4991
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
4972
|
-
|
|
4992
|
+
x(Ja, {
|
|
4973
4993
|
"max-file-size": a.maxFileSize
|
|
4974
4994
|
}, null, 8, ["max-file-size"])
|
|
4975
4995
|
])) : C("", !0)
|
|
4976
4996
|
]));
|
|
4977
4997
|
}
|
|
4978
|
-
}),
|
|
4998
|
+
}), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */ F({
|
|
4979
4999
|
__name: "ForgeColumnCustomiser",
|
|
4980
5000
|
props: {
|
|
4981
5001
|
modelValue: { required: !0 },
|
|
@@ -4983,22 +5003,22 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
4983
5003
|
},
|
|
4984
5004
|
emits: ["update:modelValue"],
|
|
4985
5005
|
setup(e) {
|
|
4986
|
-
const t = D(e, "modelValue"), a =
|
|
5006
|
+
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
|
|
4987
5007
|
a.value.toggle(n);
|
|
4988
5008
|
};
|
|
4989
|
-
return (n,
|
|
4990
|
-
|
|
5009
|
+
return (n, o) => (d(), f(O, null, [
|
|
5010
|
+
x(c(q), {
|
|
4991
5011
|
onClick: l,
|
|
4992
5012
|
class: "ms-2"
|
|
4993
5013
|
}, {
|
|
4994
|
-
default:
|
|
4995
|
-
m("div",
|
|
4996
|
-
m("div",
|
|
4997
|
-
|
|
5014
|
+
default: b(() => [
|
|
5015
|
+
m("div", Xa, [
|
|
5016
|
+
m("div", Qa, [
|
|
5017
|
+
x(c(T), { icon: "bi:layout-three-columns" })
|
|
4998
5018
|
]),
|
|
4999
|
-
|
|
5000
|
-
m("div",
|
|
5001
|
-
|
|
5019
|
+
I(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5020
|
+
m("div", ei, [
|
|
5021
|
+
x(c(T), {
|
|
5002
5022
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5003
5023
|
}, null, 8, ["icon"])
|
|
5004
5024
|
])
|
|
@@ -5006,24 +5026,24 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
5006
5026
|
]),
|
|
5007
5027
|
_: 1
|
|
5008
5028
|
}),
|
|
5009
|
-
|
|
5029
|
+
x(c(ve), {
|
|
5010
5030
|
ref_key: "columnCustomiserPanel",
|
|
5011
5031
|
ref: a,
|
|
5012
5032
|
class: "column-customiser",
|
|
5013
|
-
onHide:
|
|
5014
|
-
onShow:
|
|
5033
|
+
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5034
|
+
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5015
5035
|
}, {
|
|
5016
|
-
default:
|
|
5017
|
-
m("div",
|
|
5018
|
-
(d(!0),
|
|
5019
|
-
class:
|
|
5036
|
+
default: b(() => [
|
|
5037
|
+
m("div", ti, [
|
|
5038
|
+
(d(!0), f(O, null, A(t.value, (r, p) => (d(), f("div", {
|
|
5039
|
+
class: B(["d-flex cursor-pointer", {
|
|
5020
5040
|
"border-top": p !== 0,
|
|
5021
5041
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5022
5042
|
"pt-1": t.value.length - 1 === p,
|
|
5023
5043
|
"pb-1": p === 0
|
|
5024
5044
|
}])
|
|
5025
5045
|
}, [
|
|
5026
|
-
|
|
5046
|
+
x(fe, {
|
|
5027
5047
|
id: r.field,
|
|
5028
5048
|
modelValue: r.selected,
|
|
5029
5049
|
"onUpdate:modelValue": (u) => r.selected = u,
|
|
@@ -5038,61 +5058,128 @@ const Ta = { class: "d-flex justify-content-between" }, ja = ["accept", "disable
|
|
|
5038
5058
|
}, 512)
|
|
5039
5059
|
], 64));
|
|
5040
5060
|
}
|
|
5041
|
-
}),
|
|
5061
|
+
}), il = /* @__PURE__ */ F({
|
|
5042
5062
|
__name: "ForgePanel",
|
|
5043
5063
|
setup(e) {
|
|
5044
5064
|
return (t, a) => {
|
|
5045
5065
|
const i = Re;
|
|
5046
|
-
return d(),
|
|
5047
|
-
toggleicon:
|
|
5048
|
-
l ? (d(),
|
|
5066
|
+
return d(), v(i, K(Z({ ...t.$attrs })), {
|
|
5067
|
+
toggleicon: b(({ collapsed: l }) => [
|
|
5068
|
+
l ? (d(), v(c(T), {
|
|
5049
5069
|
key: 0,
|
|
5050
5070
|
"data-cy": "message-icon",
|
|
5051
5071
|
icon: "bi:chevron-down"
|
|
5052
5072
|
})) : C("", !0),
|
|
5053
|
-
l ? C("", !0) : (d(),
|
|
5073
|
+
l ? C("", !0) : (d(), v(c(T), {
|
|
5054
5074
|
key: 1,
|
|
5055
5075
|
"data-cy": "message-icon",
|
|
5056
5076
|
icon: "bi:chevron-up"
|
|
5057
5077
|
}))
|
|
5058
5078
|
]),
|
|
5059
|
-
default:
|
|
5079
|
+
default: b(() => [
|
|
5060
5080
|
k(t.$slots, "default")
|
|
5061
5081
|
]),
|
|
5062
5082
|
_: 3
|
|
5063
5083
|
}, 16);
|
|
5064
5084
|
};
|
|
5065
5085
|
}
|
|
5086
|
+
}), ai = /* @__PURE__ */ F({
|
|
5087
|
+
__name: "ForgeToggleButton",
|
|
5088
|
+
props: {
|
|
5089
|
+
severity: { default: "primary" }
|
|
5090
|
+
},
|
|
5091
|
+
setup(e) {
|
|
5092
|
+
const t = e, a = z(() => ({
|
|
5093
|
+
root: (i) => ({
|
|
5094
|
+
class: [
|
|
5095
|
+
"btn",
|
|
5096
|
+
{
|
|
5097
|
+
[`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
|
|
5098
|
+
[`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
|
|
5099
|
+
"btn-secondary-subtle": i.context.disabled
|
|
5100
|
+
}
|
|
5101
|
+
]
|
|
5102
|
+
}),
|
|
5103
|
+
label: (i) => ({
|
|
5104
|
+
class: [
|
|
5105
|
+
{
|
|
5106
|
+
"fw-500": i.context.active,
|
|
5107
|
+
"text-secondary": i.context.disabled
|
|
5108
|
+
}
|
|
5109
|
+
]
|
|
5110
|
+
})
|
|
5111
|
+
}));
|
|
5112
|
+
return (i, l) => (d(), v(c(He), S({ ...i.$attrs, ...t }, {
|
|
5113
|
+
severity: t.severity,
|
|
5114
|
+
pt: a.value
|
|
5115
|
+
}), null, 16, ["severity", "pt"]));
|
|
5116
|
+
}
|
|
5117
|
+
}), ii = {
|
|
5118
|
+
class: "btn-group",
|
|
5119
|
+
"data-cy": "forge-select-button"
|
|
5120
|
+
}, ll = /* @__PURE__ */ F({
|
|
5121
|
+
__name: "ForgeSelectButton",
|
|
5122
|
+
props: /* @__PURE__ */ N({
|
|
5123
|
+
multiple: { type: Boolean, default: !1 },
|
|
5124
|
+
allowEmpty: { type: Boolean, default: !0 }
|
|
5125
|
+
}, {
|
|
5126
|
+
modelValue: { required: !0 },
|
|
5127
|
+
modelModifiers: {}
|
|
5128
|
+
}),
|
|
5129
|
+
emits: /* @__PURE__ */ N(["change"], ["update:modelValue"]),
|
|
5130
|
+
setup(e, { emit: t }) {
|
|
5131
|
+
const a = e, i = t, l = D(e, "modelValue"), n = (o) => {
|
|
5132
|
+
if (o.disabled) return;
|
|
5133
|
+
const r = o.selected && l.value.filter((p) => o.value != p.value && p.selected).length < 1;
|
|
5134
|
+
!a.allowEmpty && r || (a.multiple || l.value.forEach((p) => {
|
|
5135
|
+
p.value != o.value && (p.selected = !1);
|
|
5136
|
+
}), o.selected = !o.selected, i("change", o));
|
|
5137
|
+
};
|
|
5138
|
+
return (o, r) => (d(), f("div", ii, [
|
|
5139
|
+
(d(!0), f(O, null, A(l.value, (p, u) => (d(), v(ai, {
|
|
5140
|
+
onLabel: p.label,
|
|
5141
|
+
offLabel: p.label,
|
|
5142
|
+
severity: p.severity,
|
|
5143
|
+
key: u,
|
|
5144
|
+
onChange: (y) => n(p),
|
|
5145
|
+
defaultValue: p.selected,
|
|
5146
|
+
disabled: p.disabled,
|
|
5147
|
+
"data-cy": `toggle-button-${p.value}`
|
|
5148
|
+
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
|
|
5149
|
+
]));
|
|
5150
|
+
}
|
|
5066
5151
|
});
|
|
5067
5152
|
export {
|
|
5068
|
-
|
|
5069
|
-
|
|
5153
|
+
Di as Bootstrap_PT,
|
|
5154
|
+
Oi as ForgeActionButton,
|
|
5070
5155
|
se as ForgeAlert,
|
|
5071
|
-
|
|
5156
|
+
Ni as ForgeAutoComplete,
|
|
5072
5157
|
fe as ForgeCheckbox,
|
|
5073
|
-
|
|
5074
|
-
|
|
5158
|
+
Gi as ForgeChip,
|
|
5159
|
+
al as ForgeColumnCustomiser,
|
|
5075
5160
|
be as ForgeDatepicker,
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5161
|
+
tl as ForgeFileUploader,
|
|
5162
|
+
el as ForgeFilterHeader,
|
|
5163
|
+
Wi as ForgeForm,
|
|
5164
|
+
Yi as ForgeFormField,
|
|
5165
|
+
At as ForgeInlineEditor,
|
|
5166
|
+
Ui as ForgeLink,
|
|
5082
5167
|
ge as ForgeLoader,
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5168
|
+
Ei as ForgeModal,
|
|
5169
|
+
Wt as ForgeMultiSelectPreview,
|
|
5170
|
+
Li as ForgeNavbar,
|
|
5171
|
+
Ri as ForgePageHeader,
|
|
5172
|
+
il as ForgePanel,
|
|
5173
|
+
ia as ForgeProgressBar,
|
|
5174
|
+
Hi as ForgeRemainingCharacters,
|
|
5175
|
+
Ji as ForgeScratchpad,
|
|
5176
|
+
ll as ForgeSelectButton,
|
|
5177
|
+
Ki as ForgeStatWidget,
|
|
5178
|
+
Zi as ForgeStepper,
|
|
5179
|
+
Qi as ForgeTable,
|
|
5180
|
+
Xi as ForgeTile,
|
|
5181
|
+
ai as ForgeToggleButton,
|
|
5182
|
+
qi as convertToMultiSelectOption,
|
|
5183
|
+
Ai as enumToMultiSelectList,
|
|
5184
|
+
_t as parseError
|
|
5098
5185
|
};
|