@3squared/forge-ui-3 2.12.3 → 2.14.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 +2 -2
- package/dist/esm/forge-ui-3.js +1272 -948
- package/dist/index.d.ts +2 -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 +3 -1
- package/dist/src/components/ForgeNavbar.vue.d.ts +1 -1
- package/dist/src/components/ForgeProgressBar.vue.d.ts +2 -2
- package/dist/src/components/ForgeStepper.vue.d.ts +1 -1
- package/dist/src/components/ForgeTile.vue.d.ts +2 -2
- package/dist/src/components/ForgeToggleButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeTreeTable.vue.d.ts +46 -0
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +1 -1
- package/dist/src/passthroughs/Badge.pt.d.ts +2 -0
- package/dist/src/passthroughs/Button.pt.d.ts +74 -0
- package/dist/src/passthroughs/Column.pt.d.ts +4 -1
- package/dist/src/passthroughs/Message.pt.d.ts +1 -0
- package/dist/src/passthroughs/SplitButton.pt.d.ts +4 -0
- package/dist/src/passthroughs/Tag.pt.d.ts +2 -0
- package/dist/src/passthroughs/Toast.pt.d.ts +1 -0
- package/dist/src/passthroughs/TreeTable.pt.d.ts +20 -0
- package/dist/src/types/forge-types.d.ts +1 -1
- package/package.json +9 -8
- package/src/styles/utilities/_variables.scss +17 -0
- package/src/types/forge-types.ts +1 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useField as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { vOnClickOutside as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
1
|
+
import Be from "primevue/message";
|
|
2
|
+
import { defineComponent as S, openBlock as d, createBlock as b, normalizeProps as W, guardReactiveProps as G, withCtx as g, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as P, createElementBlock as v, Fragment as E, mergeProps as j, renderList as U, mergeModels as R, useModel as N, computed as T, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as te, onMounted as ne, isRef as Fe, withKeys as ie, normalizeStyle as Se, withModifiers as X, watch as le, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as I } from "@iconify/vue";
|
|
4
|
+
import q from "primevue/button";
|
|
5
|
+
import Te from "primevue/toast";
|
|
6
|
+
import je from "primevue/autocomplete";
|
|
7
|
+
import Ie from "primevue/checkbox";
|
|
8
|
+
import { useField as oe } from "vee-validate";
|
|
9
|
+
import Pe from "primevue/progressspinner";
|
|
10
|
+
import _e from "primevue/dialog";
|
|
11
|
+
import se from "primevue/inputtext";
|
|
12
|
+
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
13
|
+
import Ve from "primevue/menubar";
|
|
14
|
+
import re from "primevue/multiselect";
|
|
15
|
+
import De from "primevue/datepicker";
|
|
16
16
|
import ae from "primevue/select";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
17
|
+
import Oe from "primevue/inputmask";
|
|
18
|
+
import Ne from "primevue/textarea";
|
|
19
|
+
import fe from "primevue/inputnumber";
|
|
20
|
+
import Ae from "primevue/chip";
|
|
21
|
+
import Ee from "primevue/progressbar";
|
|
22
|
+
import Ue from "primevue/step";
|
|
23
|
+
import qe from "primevue/stepper";
|
|
24
|
+
import Le from "primevue/steplist";
|
|
25
|
+
import Re from "primevue/steppanel";
|
|
26
|
+
import He from "primevue/steppanels";
|
|
27
|
+
import We from "primevue/datatable";
|
|
28
|
+
import Ge from "primevue/treetable";
|
|
29
|
+
import { BlockBlobClient as ge } from "@azure/storage-blob";
|
|
30
|
+
import be from "primevue/popover";
|
|
31
|
+
import Ye from "primevue/image";
|
|
32
|
+
import Je from "primevue/panel";
|
|
33
|
+
import { ToggleButton as Ke } from "primevue";
|
|
34
|
+
const Ze = {
|
|
34
35
|
autoComplete: {
|
|
35
36
|
root: ({ props: e }) => ({
|
|
36
37
|
class: [
|
|
@@ -59,7 +60,7 @@ const We = {
|
|
|
59
60
|
}),
|
|
60
61
|
emptyMessage: "mx-3 my-2"
|
|
61
62
|
}
|
|
62
|
-
},
|
|
63
|
+
}, Xe = {
|
|
63
64
|
button: {
|
|
64
65
|
root: ({ props: e }) => ({
|
|
65
66
|
class: [
|
|
@@ -92,6 +93,13 @@ const We = {
|
|
|
92
93
|
"text-success fw-bold btn-text-success": e.severity === "success" && e.text,
|
|
93
94
|
"link-success text-decoration-underline link-underline-success": e.severity === "success" && e.link
|
|
94
95
|
},
|
|
96
|
+
// Success Alternate
|
|
97
|
+
{
|
|
98
|
+
"btn-success-alternate text-white": e.severity === "success-alternate" && !e.outlined && !e.link && !e.text,
|
|
99
|
+
"btn-outline-success-alternate": e.severity === "success-alternate" && e.outlined,
|
|
100
|
+
"text-success-alternate fw-bold btn-text-success-alternate": e.severity === "success-alternate" && e.text,
|
|
101
|
+
"link-success-alternate text-decoration-underline link-underline-success-alternate": e.severity === "success-alternate" && e.link
|
|
102
|
+
},
|
|
95
103
|
// Warning
|
|
96
104
|
{
|
|
97
105
|
"btn-warning text-white": e.severity === "warning" && !e.outlined && !e.link && !e.text,
|
|
@@ -142,6 +150,7 @@ const We = {
|
|
|
142
150
|
"button-badge-brand": e.severity === "brand" && !e.outlined,
|
|
143
151
|
"button-badge-secondary": e.severity === "secondary" && !e.outlined,
|
|
144
152
|
"button-badge-success": e.severity === "success" && !e.outlined,
|
|
153
|
+
"button-badge-success-alternate": e.severity === "success-alternate" && !e.outlined,
|
|
145
154
|
"button-badge-warning": (e.severity === "warning" || e.severity === "warn") && !e.outlined,
|
|
146
155
|
"button-badge-danger": e.severity === "danger" && !e.outlined,
|
|
147
156
|
"button-badge-info": e.severity === "info" && !e.outlined
|
|
@@ -151,6 +160,7 @@ const We = {
|
|
|
151
160
|
"button-badge-brand outlined": e.severity === "brand" && e.outlined,
|
|
152
161
|
"button-badge-secondary outlined": e.severity === "secondary" && e.outlined,
|
|
153
162
|
"button-badge-success outlined": e.severity === "success" && e.outlined,
|
|
163
|
+
"button-badge-success-alternate outlined": e.severity === "success-alternate" && e.outlined,
|
|
154
164
|
"button-badge-warning outlined": (e.severity === "warning" || e.severity === "warn") && e.outlined,
|
|
155
165
|
"button-badge-danger outlined": e.severity === "danger" && e.outlined,
|
|
156
166
|
"button-badge-info outlined": e.severity === "info" && e.outlined
|
|
@@ -160,7 +170,7 @@ const We = {
|
|
|
160
170
|
})
|
|
161
171
|
}
|
|
162
172
|
}
|
|
163
|
-
},
|
|
173
|
+
}, Qe = {
|
|
164
174
|
checkbox: {
|
|
165
175
|
root: () => ({
|
|
166
176
|
class: ["form-check"]
|
|
@@ -175,7 +185,7 @@ const We = {
|
|
|
175
185
|
]
|
|
176
186
|
})
|
|
177
187
|
}
|
|
178
|
-
},
|
|
188
|
+
}, et = {
|
|
179
189
|
select: {
|
|
180
190
|
root: ({ props: e }) => ({
|
|
181
191
|
class: [
|
|
@@ -225,7 +235,7 @@ const We = {
|
|
|
225
235
|
]
|
|
226
236
|
})
|
|
227
237
|
}
|
|
228
|
-
},
|
|
238
|
+
}, tt = {
|
|
229
239
|
column: {
|
|
230
240
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
231
241
|
headerCell: (e) => {
|
|
@@ -243,17 +253,19 @@ const We = {
|
|
|
243
253
|
},
|
|
244
254
|
pcRowEditorInit: "btn",
|
|
245
255
|
rowToggleButton: "btn",
|
|
256
|
+
nodeToggleButton: "btn btn-sm",
|
|
246
257
|
columnResizer: {
|
|
247
258
|
class: "position-absolute top-0 end-0 m-0 h-100 p-0 cursor-resize border border-transparent"
|
|
248
259
|
},
|
|
249
260
|
pcRowEditorSave: "btn",
|
|
250
261
|
pcRowEditorCancel: "btn",
|
|
251
262
|
bodyCell: (e) => {
|
|
252
|
-
var t;
|
|
253
|
-
return {
|
|
263
|
+
var t, a;
|
|
264
|
+
return console.log(e.parent.props.resizableColumns), {
|
|
254
265
|
class: {
|
|
255
|
-
"
|
|
256
|
-
"
|
|
266
|
+
"expander-cell": (t = e.column.props) == null ? void 0 : t.expander,
|
|
267
|
+
"position-sticky": ((a = e.column.props) == null ? void 0 : a.frozen) !== void 0,
|
|
268
|
+
"overflow-hidden text-nowrap": e.parent.props.resizableColumns
|
|
257
269
|
}
|
|
258
270
|
};
|
|
259
271
|
},
|
|
@@ -328,7 +340,7 @@ const We = {
|
|
|
328
340
|
]
|
|
329
341
|
})
|
|
330
342
|
}
|
|
331
|
-
},
|
|
343
|
+
}, at = {
|
|
332
344
|
inputtext: {
|
|
333
345
|
root: (e) => {
|
|
334
346
|
var t, a;
|
|
@@ -343,7 +355,7 @@ const We = {
|
|
|
343
355
|
};
|
|
344
356
|
}
|
|
345
357
|
}
|
|
346
|
-
},
|
|
358
|
+
}, it = {
|
|
347
359
|
inputmask: {
|
|
348
360
|
root: () => ({
|
|
349
361
|
class: [
|
|
@@ -351,12 +363,12 @@ const We = {
|
|
|
351
363
|
]
|
|
352
364
|
})
|
|
353
365
|
}
|
|
354
|
-
},
|
|
366
|
+
}, lt = {
|
|
355
367
|
toggleSwitch: {
|
|
356
368
|
root: "form-check form-switch",
|
|
357
369
|
input: "form-check-input"
|
|
358
370
|
}
|
|
359
|
-
},
|
|
371
|
+
}, nt = {
|
|
360
372
|
tag: {
|
|
361
373
|
root: ({ props: e }) => ({
|
|
362
374
|
class: [
|
|
@@ -368,7 +380,8 @@ const We = {
|
|
|
368
380
|
"bg-success-subtle text-success border-success": e.severity === "success",
|
|
369
381
|
"bg-warning-subtle text-warning border-warning": e.severity === "warning" || e.severity === "warn",
|
|
370
382
|
"bg-danger-subtle text-danger border-danger": e.severity === "danger",
|
|
371
|
-
"bg-info-subtle text-info border-info": e.severity === "info"
|
|
383
|
+
"bg-info-subtle text-info border-info": e.severity === "info",
|
|
384
|
+
"bg-success-alternate-subtle text-success-alternate border-success-alternate": e.severity === "success-alternate"
|
|
372
385
|
},
|
|
373
386
|
{
|
|
374
387
|
"rounded-pill": e.rounded
|
|
@@ -376,7 +389,7 @@ const We = {
|
|
|
376
389
|
]
|
|
377
390
|
})
|
|
378
391
|
}
|
|
379
|
-
},
|
|
392
|
+
}, ot = {
|
|
380
393
|
textarea: {
|
|
381
394
|
root: () => ({
|
|
382
395
|
class: [
|
|
@@ -384,13 +397,13 @@ const We = {
|
|
|
384
397
|
]
|
|
385
398
|
})
|
|
386
399
|
}
|
|
387
|
-
},
|
|
400
|
+
}, st = {
|
|
388
401
|
chip: {
|
|
389
402
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
390
403
|
label: "px-2 fs-6 fw-400",
|
|
391
404
|
removeIcon: "ms-auto my-auto"
|
|
392
405
|
}
|
|
393
|
-
},
|
|
406
|
+
}, rt = {
|
|
394
407
|
dialog: {
|
|
395
408
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
396
409
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -449,7 +462,7 @@ const We = {
|
|
|
449
462
|
]
|
|
450
463
|
})
|
|
451
464
|
}
|
|
452
|
-
},
|
|
465
|
+
}, dt = {
|
|
453
466
|
popover: {
|
|
454
467
|
root: (e) => ({
|
|
455
468
|
class: [
|
|
@@ -463,7 +476,7 @@ const We = {
|
|
|
463
476
|
content: "d-flex position-relative",
|
|
464
477
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
465
478
|
}
|
|
466
|
-
},
|
|
479
|
+
}, pt = {
|
|
467
480
|
message: {
|
|
468
481
|
root: ({ props: e }) => ({
|
|
469
482
|
class: [
|
|
@@ -473,6 +486,7 @@ const We = {
|
|
|
473
486
|
"alert-brand": e.severity === "brand",
|
|
474
487
|
"alert-secondary": e.severity === "secondary",
|
|
475
488
|
"alert-success": e.severity === "success",
|
|
489
|
+
"alert-success-alternate": e.severity === "success-alternate",
|
|
476
490
|
"alert-warning": e.severity === "warning" || e.severity === "warn",
|
|
477
491
|
"alert-danger": e.severity === "danger" || e.severity === "error",
|
|
478
492
|
"alert-info": e.severity === "info"
|
|
@@ -492,7 +506,7 @@ const We = {
|
|
|
492
506
|
class: ["px-0 ms-2 btn d-flex"]
|
|
493
507
|
})
|
|
494
508
|
}
|
|
495
|
-
},
|
|
509
|
+
}, ct = {
|
|
496
510
|
// More PT options defined in ForgeStepper.
|
|
497
511
|
stepList: {
|
|
498
512
|
root: "d-flex mb-2 w-100"
|
|
@@ -520,7 +534,7 @@ const We = {
|
|
|
520
534
|
}),
|
|
521
535
|
separator: "border border-1 separator"
|
|
522
536
|
}
|
|
523
|
-
},
|
|
537
|
+
}, ut = {
|
|
524
538
|
tabList: {
|
|
525
539
|
root: () => ({
|
|
526
540
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -545,7 +559,7 @@ const We = {
|
|
|
545
559
|
class: ["p-2"]
|
|
546
560
|
})
|
|
547
561
|
}
|
|
548
|
-
},
|
|
562
|
+
}, mt = {
|
|
549
563
|
// More PassThrough options defined in ForgeDatepicker.
|
|
550
564
|
datepicker: {
|
|
551
565
|
root: "d-inline-flex relative w-100",
|
|
@@ -620,7 +634,7 @@ const We = {
|
|
|
620
634
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
621
635
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
622
636
|
}
|
|
623
|
-
},
|
|
637
|
+
}, vt = {
|
|
624
638
|
multiselect: {
|
|
625
639
|
root: ({ props: e }) => ({
|
|
626
640
|
class: [
|
|
@@ -648,7 +662,7 @@ const We = {
|
|
|
648
662
|
class: "d-none"
|
|
649
663
|
})
|
|
650
664
|
}
|
|
651
|
-
},
|
|
665
|
+
}, ft = {
|
|
652
666
|
// More PassThrough options in component file.
|
|
653
667
|
progressbar: {
|
|
654
668
|
root: () => ({
|
|
@@ -658,7 +672,7 @@ const We = {
|
|
|
658
672
|
class: ["text-white m-1"]
|
|
659
673
|
})
|
|
660
674
|
}
|
|
661
|
-
},
|
|
675
|
+
}, gt = {
|
|
662
676
|
panel: {
|
|
663
677
|
root: "card w-100",
|
|
664
678
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -671,7 +685,7 @@ const We = {
|
|
|
671
685
|
},
|
|
672
686
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
673
687
|
}
|
|
674
|
-
},
|
|
688
|
+
}, bt = {
|
|
675
689
|
// More PT options can be found in the ForgeTable file.
|
|
676
690
|
dataTable: {
|
|
677
691
|
root: "position-relative",
|
|
@@ -745,7 +759,7 @@ const We = {
|
|
|
745
759
|
]
|
|
746
760
|
})
|
|
747
761
|
}
|
|
748
|
-
},
|
|
762
|
+
}, yt = {
|
|
749
763
|
badge: {
|
|
750
764
|
root: ({ props: e }) => ({
|
|
751
765
|
class: [
|
|
@@ -755,6 +769,7 @@ const We = {
|
|
|
755
769
|
"badge-brand": e.severity === "brand",
|
|
756
770
|
"badge-secondary": e.severity === "secondary",
|
|
757
771
|
"badge-success": e.severity === "success",
|
|
772
|
+
"badge-success-alternate": e.severity === "success-alternate",
|
|
758
773
|
"badge-warning": e.severity === "warning" || e.severity === "warn",
|
|
759
774
|
"badge-danger": e.severity === "danger",
|
|
760
775
|
"badge-info": e.severity === "info"
|
|
@@ -766,7 +781,7 @@ const We = {
|
|
|
766
781
|
]
|
|
767
782
|
})
|
|
768
783
|
}
|
|
769
|
-
},
|
|
784
|
+
}, xt = {
|
|
770
785
|
// More PassThrough options in component file.
|
|
771
786
|
menubar: {
|
|
772
787
|
rootList: ({ instance: e }) => ({
|
|
@@ -847,7 +862,7 @@ const We = {
|
|
|
847
862
|
]
|
|
848
863
|
})
|
|
849
864
|
}
|
|
850
|
-
},
|
|
865
|
+
}, ht = {
|
|
851
866
|
tooltip: {
|
|
852
867
|
root: ({ context: e }) => ({
|
|
853
868
|
class: [
|
|
@@ -869,7 +884,7 @@ const We = {
|
|
|
869
884
|
class: ["tooltip-inner"]
|
|
870
885
|
}
|
|
871
886
|
}
|
|
872
|
-
},
|
|
887
|
+
}, wt = {
|
|
873
888
|
selectButton: {
|
|
874
889
|
root: () => ({
|
|
875
890
|
class: ["btn-group"]
|
|
@@ -887,7 +902,7 @@ const We = {
|
|
|
887
902
|
]
|
|
888
903
|
})
|
|
889
904
|
}
|
|
890
|
-
},
|
|
905
|
+
}, kt = {
|
|
891
906
|
splitbutton: {
|
|
892
907
|
root: () => ({
|
|
893
908
|
class: ["btn-group"]
|
|
@@ -901,6 +916,7 @@ const We = {
|
|
|
901
916
|
"btn-brand": e.severity === "brand" && !e.outlined,
|
|
902
917
|
"btn-secondary": e.severity === "secondary" && !e.outlined,
|
|
903
918
|
"btn-success": e.severity === "success" && !e.outlined,
|
|
919
|
+
"btn-success-alternate": e.severity === "success-alternate" && !e.outlined,
|
|
904
920
|
"btn-warning": (e.severity === "warning" || e.severity === "warn") && !e.outlined,
|
|
905
921
|
"btn-danger": e.severity === "danger" && !e.outlined,
|
|
906
922
|
"btn-info": e.severity === "info" && !e.outlined
|
|
@@ -910,6 +926,7 @@ const We = {
|
|
|
910
926
|
"btn-outline-brand": e.severity === "brand" && e.outlined,
|
|
911
927
|
"btn-outline-secondary": e.severity === "secondary" && e.outlined,
|
|
912
928
|
"btn-outline-success": e.severity === "success" && e.outlined,
|
|
929
|
+
"btn-outline-success-alternate": e.severity === "success-alternate" && e.outlined,
|
|
913
930
|
"btn-outline-warning": (e.severity === "warning" || e.severity === "warn") && e.outlined,
|
|
914
931
|
"btn-outline-danger": e.severity === "danger" && e.outlined,
|
|
915
932
|
"btn-outline-info": e.severity === "info" && e.outlined
|
|
@@ -931,7 +948,7 @@ const We = {
|
|
|
931
948
|
separator: "border-bottom"
|
|
932
949
|
}
|
|
933
950
|
}
|
|
934
|
-
},
|
|
951
|
+
}, $t = {
|
|
935
952
|
progressspinner: {
|
|
936
953
|
spin: () => ({
|
|
937
954
|
class: [
|
|
@@ -939,7 +956,7 @@ const We = {
|
|
|
939
956
|
]
|
|
940
957
|
})
|
|
941
958
|
}
|
|
942
|
-
},
|
|
959
|
+
}, Bt = {
|
|
943
960
|
card: {
|
|
944
961
|
root: () => ({
|
|
945
962
|
class: ["card"]
|
|
@@ -963,11 +980,11 @@ const We = {
|
|
|
963
980
|
class: ["card-header"]
|
|
964
981
|
})
|
|
965
982
|
}
|
|
966
|
-
},
|
|
983
|
+
}, Ft = {
|
|
967
984
|
divider: {
|
|
968
985
|
root: "border-bottom w-100 m-1"
|
|
969
986
|
}
|
|
970
|
-
},
|
|
987
|
+
}, St = {
|
|
971
988
|
image: {
|
|
972
989
|
root: "position-relative d-inline-block",
|
|
973
990
|
previewMask: "preview-button",
|
|
@@ -980,7 +997,7 @@ const We = {
|
|
|
980
997
|
zoominbutton: "btn text-white",
|
|
981
998
|
closebutton: "btn text-white"
|
|
982
999
|
}
|
|
983
|
-
},
|
|
1000
|
+
}, Ct = {
|
|
984
1001
|
toast: {
|
|
985
1002
|
message: () => ({
|
|
986
1003
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1001,21 +1018,22 @@ const We = {
|
|
|
1001
1018
|
class: ["ps-1"]
|
|
1002
1019
|
}),
|
|
1003
1020
|
messageIcon: ({ props: e }) => {
|
|
1004
|
-
var t, a, i, l;
|
|
1021
|
+
var t, a, i, l, n;
|
|
1005
1022
|
return {
|
|
1006
1023
|
class: [
|
|
1007
1024
|
"toast-icon",
|
|
1008
1025
|
{
|
|
1009
1026
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
1010
1027
|
"text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
|
|
1011
|
-
"text-
|
|
1012
|
-
"text-
|
|
1028
|
+
"text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
|
|
1029
|
+
"text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
|
|
1030
|
+
"text-warning": ((n = e.message) == null ? void 0 : n.severity) === "warn"
|
|
1013
1031
|
}
|
|
1014
1032
|
]
|
|
1015
1033
|
};
|
|
1016
1034
|
}
|
|
1017
1035
|
}
|
|
1018
|
-
},
|
|
1036
|
+
}, zt = {
|
|
1019
1037
|
tree: {
|
|
1020
1038
|
node: "m-1",
|
|
1021
1039
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1047,7 +1065,7 @@ const We = {
|
|
|
1047
1065
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1048
1066
|
filterIcon: "d-none"
|
|
1049
1067
|
}
|
|
1050
|
-
},
|
|
1068
|
+
}, Tt = {
|
|
1051
1069
|
treeSelect: {
|
|
1052
1070
|
root: ({ props: e }) => ({
|
|
1053
1071
|
class: [
|
|
@@ -1095,7 +1113,7 @@ const We = {
|
|
|
1095
1113
|
filterIcon: "d-none"
|
|
1096
1114
|
}
|
|
1097
1115
|
}
|
|
1098
|
-
},
|
|
1116
|
+
}, jt = {
|
|
1099
1117
|
fieldset: {
|
|
1100
1118
|
root: () => ({
|
|
1101
1119
|
class: [
|
|
@@ -1121,7 +1139,7 @@ const We = {
|
|
|
1121
1139
|
]
|
|
1122
1140
|
})
|
|
1123
1141
|
}
|
|
1124
|
-
},
|
|
1142
|
+
}, It = {
|
|
1125
1143
|
accordionPanel: {
|
|
1126
1144
|
root: "card my-2"
|
|
1127
1145
|
},
|
|
@@ -1139,45 +1157,67 @@ const We = {
|
|
|
1139
1157
|
accordionContent: {
|
|
1140
1158
|
root: "mt-2 mx-4 mb-4"
|
|
1141
1159
|
}
|
|
1142
|
-
},
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1160
|
+
}, Pt = {
|
|
1161
|
+
// More PT options can be found in the ForgeTable file.
|
|
1162
|
+
treetable: {
|
|
1163
|
+
root: "position-relative",
|
|
1164
|
+
table: ({ props: e, attrs: t }) => ({
|
|
1165
|
+
class: [
|
|
1166
|
+
"table position-relative",
|
|
1167
|
+
{
|
|
1168
|
+
"table-striped": t.stripedRows || t.stripedRows == "",
|
|
1169
|
+
"table-hover": e.rowHover,
|
|
1170
|
+
"table-bordered": e.showGridlines,
|
|
1171
|
+
"table-sm": e.size === "small",
|
|
1172
|
+
"table-lg": e.size === "large",
|
|
1173
|
+
"opacity-50": e.loading
|
|
1174
|
+
}
|
|
1175
|
+
]
|
|
1176
|
+
}),
|
|
1177
|
+
mask: () => ({
|
|
1178
|
+
class: "table-overlay table-spinner"
|
|
1179
|
+
})
|
|
1180
|
+
}
|
|
1181
|
+
}, Yi = {
|
|
1155
1182
|
...Ze,
|
|
1183
|
+
...yt,
|
|
1156
1184
|
...Xe,
|
|
1185
|
+
...Bt,
|
|
1157
1186
|
...Qe,
|
|
1158
|
-
...
|
|
1159
|
-
...
|
|
1160
|
-
...
|
|
1187
|
+
...st,
|
|
1188
|
+
...tt,
|
|
1189
|
+
...mt,
|
|
1190
|
+
...rt,
|
|
1191
|
+
...Ft,
|
|
1192
|
+
...et,
|
|
1193
|
+
...St,
|
|
1194
|
+
...at,
|
|
1195
|
+
...it,
|
|
1161
1196
|
...lt,
|
|
1162
1197
|
...pt,
|
|
1163
|
-
...
|
|
1164
|
-
...
|
|
1198
|
+
...vt,
|
|
1199
|
+
...xt,
|
|
1200
|
+
...dt,
|
|
1201
|
+
...ft,
|
|
1202
|
+
...$t,
|
|
1165
1203
|
...gt,
|
|
1204
|
+
...wt,
|
|
1205
|
+
...kt,
|
|
1206
|
+
...ct,
|
|
1166
1207
|
...bt,
|
|
1167
1208
|
...nt,
|
|
1168
1209
|
...ut,
|
|
1169
|
-
...
|
|
1170
|
-
...
|
|
1171
|
-
...
|
|
1172
|
-
...
|
|
1173
|
-
...
|
|
1174
|
-
...
|
|
1175
|
-
|
|
1176
|
-
...St,
|
|
1210
|
+
...Ct,
|
|
1211
|
+
...ot,
|
|
1212
|
+
...jt,
|
|
1213
|
+
...Tt,
|
|
1214
|
+
...zt,
|
|
1215
|
+
...It,
|
|
1216
|
+
...Pt,
|
|
1177
1217
|
directives: {
|
|
1178
|
-
...
|
|
1218
|
+
...ht
|
|
1179
1219
|
}
|
|
1180
|
-
},
|
|
1220
|
+
}, de = /* @__PURE__ */ S({
|
|
1181
1221
|
__name: "ForgeAlert",
|
|
1182
1222
|
props: {
|
|
1183
1223
|
severity: { default: "primary" },
|
|
@@ -1197,32 +1237,32 @@ const We = {
|
|
|
1197
1237
|
setup(e) {
|
|
1198
1238
|
const t = e;
|
|
1199
1239
|
return (a, i) => {
|
|
1200
|
-
const l =
|
|
1201
|
-
return
|
|
1202
|
-
icon:
|
|
1240
|
+
const l = Be;
|
|
1241
|
+
return d(), b(l, W(G({ ...a.$attrs, ...t })), {
|
|
1242
|
+
icon: g(() => [
|
|
1203
1243
|
m("div", {
|
|
1204
|
-
class:
|
|
1244
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1205
1245
|
}, [
|
|
1206
|
-
t.icon ? (
|
|
1246
|
+
t.icon ? (d(), b(u(I), {
|
|
1207
1247
|
key: 0,
|
|
1208
1248
|
"data-cy": "message-icon",
|
|
1209
1249
|
icon: t.icon,
|
|
1210
|
-
class:
|
|
1250
|
+
class: F(`text-${t.severity}`),
|
|
1211
1251
|
height: 35
|
|
1212
|
-
}, null, 8, ["icon", "class"])) :
|
|
1252
|
+
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1213
1253
|
], 2)
|
|
1214
1254
|
]),
|
|
1215
|
-
closeicon:
|
|
1216
|
-
h(u(
|
|
1255
|
+
closeicon: g(() => [
|
|
1256
|
+
h(u(I), { icon: "bi:x" })
|
|
1217
1257
|
]),
|
|
1218
|
-
default:
|
|
1258
|
+
default: g(() => [
|
|
1219
1259
|
k(a.$slots, "default")
|
|
1220
1260
|
]),
|
|
1221
1261
|
_: 3
|
|
1222
1262
|
}, 16);
|
|
1223
1263
|
};
|
|
1224
1264
|
}
|
|
1225
|
-
}),
|
|
1265
|
+
}), Ji = /* @__PURE__ */ S({
|
|
1226
1266
|
__name: "ForgeActionButton",
|
|
1227
1267
|
props: {
|
|
1228
1268
|
action: {},
|
|
@@ -1231,7 +1271,7 @@ const We = {
|
|
|
1231
1271
|
params: { default: Array }
|
|
1232
1272
|
},
|
|
1233
1273
|
setup(e) {
|
|
1234
|
-
const t =
|
|
1274
|
+
const t = P(!1), a = e, i = async () => {
|
|
1235
1275
|
t.value = !0;
|
|
1236
1276
|
try {
|
|
1237
1277
|
await a.action.apply(this, a.params);
|
|
@@ -1240,31 +1280,31 @@ const We = {
|
|
|
1240
1280
|
}
|
|
1241
1281
|
t.value = !1;
|
|
1242
1282
|
};
|
|
1243
|
-
return (l,
|
|
1244
|
-
const
|
|
1245
|
-
return
|
|
1246
|
-
h(
|
|
1283
|
+
return (l, n) => {
|
|
1284
|
+
const o = q;
|
|
1285
|
+
return d(), v(E, null, [
|
|
1286
|
+
h(o, j({ ...a, ...l.$attrs }, {
|
|
1247
1287
|
loading: t.value,
|
|
1248
1288
|
disabled: t.value || a.disabled,
|
|
1249
1289
|
onClick: i
|
|
1250
1290
|
}), null, 16, ["loading", "disabled"]),
|
|
1251
|
-
h(u(
|
|
1291
|
+
h(u(Te))
|
|
1252
1292
|
], 64);
|
|
1253
1293
|
};
|
|
1254
1294
|
}
|
|
1255
|
-
}),
|
|
1295
|
+
}), Ki = /* @__PURE__ */ S({
|
|
1256
1296
|
__name: "ForgeAutoComplete",
|
|
1257
1297
|
setup(e) {
|
|
1258
|
-
return (t, a) => (
|
|
1259
|
-
default:
|
|
1260
|
-
(
|
|
1298
|
+
return (t, a) => (d(), b(u(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1299
|
+
default: g(() => [
|
|
1300
|
+
(d(!0), v(E, null, U(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1261
1301
|
]),
|
|
1262
1302
|
_: 3
|
|
1263
1303
|
}, 16));
|
|
1264
1304
|
}
|
|
1265
|
-
}),
|
|
1305
|
+
}), _t = { class: "d-flex flex-column" }, Mt = ["for"], ye = /* @__PURE__ */ S({
|
|
1266
1306
|
__name: "ForgeCheckbox",
|
|
1267
|
-
props: /* @__PURE__ */
|
|
1307
|
+
props: /* @__PURE__ */ R({
|
|
1268
1308
|
label: { default: "" },
|
|
1269
1309
|
value: {},
|
|
1270
1310
|
modelValue: {},
|
|
@@ -1297,69 +1337,82 @@ const We = {
|
|
|
1297
1337
|
}),
|
|
1298
1338
|
emits: ["update:modelValue"],
|
|
1299
1339
|
setup(e) {
|
|
1300
|
-
const t = e, a =
|
|
1340
|
+
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage: n } = oe(
|
|
1301
1341
|
() => t.name ?? "",
|
|
1302
1342
|
void 0,
|
|
1303
1343
|
{
|
|
1304
1344
|
type: "checkbox",
|
|
1305
1345
|
checkedValue: a.value
|
|
1306
1346
|
}
|
|
1307
|
-
),
|
|
1347
|
+
), o = (p, c) => {
|
|
1308
1348
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1309
1349
|
}, s = T(() => l.value.length > 0);
|
|
1310
1350
|
return (p, c) => {
|
|
1311
|
-
const
|
|
1312
|
-
return
|
|
1313
|
-
m("div",
|
|
1351
|
+
const y = Ie;
|
|
1352
|
+
return d(), v("div", _t, [
|
|
1353
|
+
m("div", j({
|
|
1314
1354
|
class: "d-flex",
|
|
1315
1355
|
"data-cy": "checkbox-container",
|
|
1316
|
-
onClick: c[2] || (c[2] = (
|
|
1356
|
+
onClick: c[2] || (c[2] = (r) => o(r, a.value))
|
|
1317
1357
|
}, { ...p.$attrs }), [
|
|
1318
|
-
h(
|
|
1358
|
+
h(y, j({ ...t }, {
|
|
1319
1359
|
binary: "",
|
|
1320
1360
|
modelValue: a.value,
|
|
1321
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1361
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
|
|
1322
1362
|
"input-id": t.name,
|
|
1323
1363
|
"input-class": { "is-invalid": s.value },
|
|
1324
1364
|
class: t.disabled || t.readonly ? "" : "cursor-pointer"
|
|
1325
1365
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1326
1366
|
m("label", {
|
|
1327
1367
|
for: t.name,
|
|
1328
|
-
onClick: c[1] || (c[1] = (
|
|
1329
|
-
class:
|
|
1368
|
+
onClick: c[1] || (c[1] = (r) => o(r, !a.value)),
|
|
1369
|
+
class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1330
1370
|
}, [
|
|
1331
1371
|
k(p.$slots, "default", {}, () => [
|
|
1332
|
-
|
|
1372
|
+
M(B(t.label), 1)
|
|
1333
1373
|
])
|
|
1334
|
-
], 10,
|
|
1374
|
+
], 10, Mt)
|
|
1335
1375
|
], 16),
|
|
1336
|
-
|
|
1376
|
+
J(m("small", {
|
|
1337
1377
|
"data-cy": "error",
|
|
1338
1378
|
class: "text-invalid"
|
|
1339
|
-
},
|
|
1340
|
-
[
|
|
1379
|
+
}, B(u(n)), 513), [
|
|
1380
|
+
[Z, s.value]
|
|
1341
1381
|
])
|
|
1342
1382
|
]);
|
|
1343
1383
|
};
|
|
1344
1384
|
}
|
|
1345
|
-
}),
|
|
1385
|
+
}), pe = /* @__PURE__ */ S({
|
|
1346
1386
|
__name: "ForgeLoader",
|
|
1347
1387
|
props: {
|
|
1348
|
-
severity: { default: "primary" }
|
|
1388
|
+
severity: { default: "primary" },
|
|
1389
|
+
inLine: { type: Boolean, default: !1 }
|
|
1349
1390
|
},
|
|
1350
1391
|
setup(e) {
|
|
1351
|
-
const t = e
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1392
|
+
const t = e, a = T(() => ({
|
|
1393
|
+
spin: () => ({
|
|
1394
|
+
class: [
|
|
1395
|
+
"spinner-border",
|
|
1396
|
+
{
|
|
1397
|
+
"spinner-border-sm": t.inLine
|
|
1398
|
+
}
|
|
1399
|
+
]
|
|
1400
|
+
})
|
|
1401
|
+
}));
|
|
1402
|
+
return (i, l) => {
|
|
1403
|
+
const n = Pe;
|
|
1404
|
+
return d(), v("div", {
|
|
1405
|
+
class: F(i.inLine ? "" : "forge-loader")
|
|
1406
|
+
}, [
|
|
1407
|
+
h(n, {
|
|
1356
1408
|
"animation-duration": ".75",
|
|
1357
|
-
class:
|
|
1358
|
-
|
|
1359
|
-
|
|
1409
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1410
|
+
pt: a.value
|
|
1411
|
+
}, null, 8, ["class", "pt"])
|
|
1412
|
+
], 2);
|
|
1360
1413
|
};
|
|
1361
1414
|
}
|
|
1362
|
-
}),
|
|
1415
|
+
}), Vt = ["href", "target"], Zi = /* @__PURE__ */ S({
|
|
1363
1416
|
__name: "ForgeLink",
|
|
1364
1417
|
props: {
|
|
1365
1418
|
url: {},
|
|
@@ -1393,25 +1446,25 @@ const We = {
|
|
|
1393
1446
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1394
1447
|
"me-0": e.animateIconOnHover
|
|
1395
1448
|
}));
|
|
1396
|
-
return (i, l) => (
|
|
1449
|
+
return (i, l) => (d(), v("a", {
|
|
1397
1450
|
id: "link",
|
|
1398
|
-
class:
|
|
1451
|
+
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1399
1452
|
href: i.url,
|
|
1400
1453
|
target: i.target
|
|
1401
1454
|
}, [
|
|
1402
1455
|
k(i.$slots, "default", {}, () => [
|
|
1403
|
-
i.iconName ? (
|
|
1456
|
+
i.iconName ? (d(), b(u(I), {
|
|
1404
1457
|
key: 0,
|
|
1405
1458
|
id: "link-icon",
|
|
1406
1459
|
icon: i.iconName,
|
|
1407
|
-
class:
|
|
1408
|
-
}, null, 8, ["icon", "class"])) :
|
|
1409
|
-
|
|
1460
|
+
class: F(["bi my-auto", a.value])
|
|
1461
|
+
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1462
|
+
M(" " + B(i.label), 1)
|
|
1410
1463
|
])
|
|
1411
|
-
], 10,
|
|
1464
|
+
], 10, Vt));
|
|
1412
1465
|
}
|
|
1413
1466
|
});
|
|
1414
|
-
function
|
|
1467
|
+
function Dt(e) {
|
|
1415
1468
|
const t = {
|
|
1416
1469
|
errorMessage: "",
|
|
1417
1470
|
errorDetails: []
|
|
@@ -1422,18 +1475,18 @@ function It(e) {
|
|
|
1422
1475
|
}
|
|
1423
1476
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1424
1477
|
}
|
|
1425
|
-
function
|
|
1478
|
+
function Xi(e, t) {
|
|
1426
1479
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1427
1480
|
}
|
|
1428
|
-
function
|
|
1481
|
+
function Qi(e, t, a) {
|
|
1429
1482
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1430
1483
|
}
|
|
1431
|
-
const
|
|
1484
|
+
const Ot = { key: 0 }, Nt = {
|
|
1432
1485
|
class: "d-flex w-100",
|
|
1433
1486
|
"data-cy": "footer"
|
|
1434
|
-
},
|
|
1487
|
+
}, el = /* @__PURE__ */ S({
|
|
1435
1488
|
__name: "ForgeModal",
|
|
1436
|
-
props: /* @__PURE__ */
|
|
1489
|
+
props: /* @__PURE__ */ R({
|
|
1437
1490
|
cancelText: { default: "Cancel" },
|
|
1438
1491
|
submitText: { default: "Submit" },
|
|
1439
1492
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1492,8 +1545,8 @@ const _t = { key: 0 }, Pt = {
|
|
|
1492
1545
|
}),
|
|
1493
1546
|
emits: ["update:visible", "update:error"],
|
|
1494
1547
|
setup(e, { expose: t }) {
|
|
1495
|
-
const a =
|
|
1496
|
-
|
|
1548
|
+
const a = N(e, "visible"), i = P(!1), l = e, n = P(!1), o = N(e, "error"), s = () => {
|
|
1549
|
+
o.value = {
|
|
1497
1550
|
hasError: !1,
|
|
1498
1551
|
header: "",
|
|
1499
1552
|
message: []
|
|
@@ -1506,22 +1559,22 @@ const _t = { key: 0 }, Pt = {
|
|
|
1506
1559
|
i.value = !1;
|
|
1507
1560
|
}, c = () => {
|
|
1508
1561
|
i.value = !0;
|
|
1509
|
-
},
|
|
1562
|
+
}, y = () => {
|
|
1510
1563
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1511
|
-
},
|
|
1564
|
+
}, r = async () => {
|
|
1512
1565
|
if (l.onConfirm) {
|
|
1513
|
-
|
|
1566
|
+
n.value = !0, o.value.hasError = !1;
|
|
1514
1567
|
try {
|
|
1515
|
-
const
|
|
1516
|
-
(
|
|
1517
|
-
} catch (
|
|
1518
|
-
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1568
|
+
const z = await l.onConfirm();
|
|
1569
|
+
(z || z == null) && y();
|
|
1570
|
+
} catch (z) {
|
|
1571
|
+
o.value.hasError = !0;
|
|
1572
|
+
const D = Dt(z);
|
|
1573
|
+
o.value.header = D.errorMessage, o.value.message = D.errorDetails;
|
|
1521
1574
|
}
|
|
1522
|
-
|
|
1575
|
+
n.value = !1;
|
|
1523
1576
|
}
|
|
1524
|
-
},
|
|
1577
|
+
}, $ = T(() => ({
|
|
1525
1578
|
root: [
|
|
1526
1579
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1527
1580
|
{
|
|
@@ -1538,24 +1591,24 @@ const _t = { key: 0 }, Pt = {
|
|
|
1538
1591
|
}
|
|
1539
1592
|
]
|
|
1540
1593
|
}));
|
|
1541
|
-
return (
|
|
1542
|
-
const
|
|
1543
|
-
return
|
|
1594
|
+
return (z, D) => {
|
|
1595
|
+
const O = q, A = _e;
|
|
1596
|
+
return d(), b(A, j(l, {
|
|
1544
1597
|
onMaximize: c,
|
|
1545
1598
|
onUnmaximize: p,
|
|
1546
|
-
pt:
|
|
1547
|
-
}),
|
|
1548
|
-
closeicon:
|
|
1549
|
-
h(u(
|
|
1599
|
+
pt: $.value
|
|
1600
|
+
}), te({
|
|
1601
|
+
closeicon: g(() => [
|
|
1602
|
+
h(u(I), {
|
|
1550
1603
|
"data-cy": "close-icon",
|
|
1551
1604
|
icon: "bi:x-lg",
|
|
1552
1605
|
width: "18",
|
|
1553
1606
|
height: "18",
|
|
1554
|
-
onClick:
|
|
1607
|
+
onClick: y
|
|
1555
1608
|
})
|
|
1556
1609
|
]),
|
|
1557
|
-
maximizeicon:
|
|
1558
|
-
h(u(
|
|
1610
|
+
maximizeicon: g(() => [
|
|
1611
|
+
h(u(I), {
|
|
1559
1612
|
"data-cy": "maximisable-icon",
|
|
1560
1613
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1561
1614
|
width: "16",
|
|
@@ -1564,48 +1617,48 @@ const _t = { key: 0 }, Pt = {
|
|
|
1564
1617
|
]),
|
|
1565
1618
|
_: 2
|
|
1566
1619
|
}, [
|
|
1567
|
-
|
|
1568
|
-
name:
|
|
1569
|
-
fn:
|
|
1570
|
-
|
|
1571
|
-
|
|
1620
|
+
U(z.$slots, (x, w) => ({
|
|
1621
|
+
name: w,
|
|
1622
|
+
fn: g((_) => [
|
|
1623
|
+
w !== "footer" ? (d(), v(E, { key: 0 }, [
|
|
1624
|
+
o.value.hasError ? (d(), b(de, {
|
|
1572
1625
|
key: 0,
|
|
1573
1626
|
severity: "danger",
|
|
1574
1627
|
"data-cy": "error"
|
|
1575
1628
|
}, {
|
|
1576
|
-
default:
|
|
1629
|
+
default: g(() => [
|
|
1577
1630
|
m("p", {
|
|
1578
|
-
class:
|
|
1579
|
-
},
|
|
1580
|
-
|
|
1581
|
-
(
|
|
1582
|
-
])) :
|
|
1631
|
+
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1632
|
+
}, B(o.value.header), 3),
|
|
1633
|
+
o.value.message.length > 0 ? (d(), v("ul", Ot, [
|
|
1634
|
+
(d(!0), v(E, null, U(o.value.message, (f) => (d(), v("li", { key: f }, B(f), 1))), 128))
|
|
1635
|
+
])) : C("", !0)
|
|
1583
1636
|
]),
|
|
1584
1637
|
_: 1
|
|
1585
|
-
})) :
|
|
1586
|
-
], 64)) :
|
|
1587
|
-
k(
|
|
1588
|
-
|
|
1589
|
-
h(
|
|
1590
|
-
]) :
|
|
1638
|
+
})) : C("", !0)
|
|
1639
|
+
], 64)) : C("", !0),
|
|
1640
|
+
k(z.$slots, w, W(G(_ || {}))),
|
|
1641
|
+
n.value ? k(z.$slots, "loader", { key: 1 }, () => [
|
|
1642
|
+
h(pe, { "data-cy": "loader" })
|
|
1643
|
+
]) : C("", !0)
|
|
1591
1644
|
])
|
|
1592
1645
|
})),
|
|
1593
|
-
|
|
1646
|
+
z.showFooter ? {
|
|
1594
1647
|
name: "footer",
|
|
1595
|
-
fn:
|
|
1596
|
-
m("div",
|
|
1597
|
-
h(
|
|
1598
|
-
label:
|
|
1599
|
-
class:
|
|
1648
|
+
fn: g(() => [
|
|
1649
|
+
m("div", Nt, [
|
|
1650
|
+
h(O, {
|
|
1651
|
+
label: z.cancelText,
|
|
1652
|
+
class: F(l.cancelClass),
|
|
1600
1653
|
outlined: "",
|
|
1601
|
-
onClick:
|
|
1654
|
+
onClick: y,
|
|
1602
1655
|
id: "cancel-button",
|
|
1603
1656
|
type: l.cancelButtonType
|
|
1604
1657
|
}, null, 8, ["label", "class", "type"]),
|
|
1605
|
-
h(
|
|
1606
|
-
label:
|
|
1607
|
-
class:
|
|
1608
|
-
onClick:
|
|
1658
|
+
h(O, {
|
|
1659
|
+
label: z.submitText,
|
|
1660
|
+
class: F([l.submitClass, "ms-auto"]),
|
|
1661
|
+
onClick: r,
|
|
1609
1662
|
id: "submit-button",
|
|
1610
1663
|
type: l.submitButtonType
|
|
1611
1664
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1616,9 +1669,9 @@ const _t = { key: 0 }, Pt = {
|
|
|
1616
1669
|
]), 1040, ["pt"]);
|
|
1617
1670
|
};
|
|
1618
1671
|
}
|
|
1619
|
-
}),
|
|
1672
|
+
}), At = ["id"], Et = { key: 0 }, Ut = { key: 0 }, qt = { class: "d-flex justify-content-between align-items-center position-relative" }, Lt = { key: 1 }, Rt = { "data-cy": "readonly-value" }, Ht = /* @__PURE__ */ S({
|
|
1620
1673
|
__name: "ForgeInlineEditor",
|
|
1621
|
-
props: /* @__PURE__ */
|
|
1674
|
+
props: /* @__PURE__ */ R({
|
|
1622
1675
|
name: { default: "" },
|
|
1623
1676
|
completeAction: {},
|
|
1624
1677
|
errorAction: {},
|
|
@@ -1631,13 +1684,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1631
1684
|
}),
|
|
1632
1685
|
emits: ["update:modelValue"],
|
|
1633
1686
|
setup(e) {
|
|
1634
|
-
const t = e, a =
|
|
1635
|
-
var
|
|
1636
|
-
i.value = !i.value, (
|
|
1637
|
-
},
|
|
1638
|
-
if (
|
|
1687
|
+
const t = e, a = N(e, "modelValue"), i = P(!1), l = P(), n = () => {
|
|
1688
|
+
var z;
|
|
1689
|
+
i.value = !i.value, (z = l.value) == null || z.focus();
|
|
1690
|
+
}, o = async () => {
|
|
1691
|
+
if ($.value)
|
|
1639
1692
|
return !1;
|
|
1640
|
-
if (a.value =
|
|
1693
|
+
if (a.value = r.value, t.completeAction)
|
|
1641
1694
|
try {
|
|
1642
1695
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1643
1696
|
} catch {
|
|
@@ -1648,94 +1701,94 @@ const _t = { key: 0 }, Pt = {
|
|
|
1648
1701
|
}, s = () => {
|
|
1649
1702
|
i.value = !i.value;
|
|
1650
1703
|
}, p = () => {
|
|
1651
|
-
|
|
1652
|
-
}, { errorMessage: c, errors:
|
|
1704
|
+
r.value = null;
|
|
1705
|
+
}, { errorMessage: c, errors: y, value: r } = oe(() => t.name, void 0, {
|
|
1653
1706
|
initialValue: a.value
|
|
1654
1707
|
});
|
|
1655
|
-
|
|
1656
|
-
|
|
1708
|
+
ne(() => {
|
|
1709
|
+
r.value = a.value;
|
|
1657
1710
|
});
|
|
1658
|
-
const
|
|
1659
|
-
return (
|
|
1660
|
-
const
|
|
1661
|
-
return
|
|
1711
|
+
const $ = T(() => y.value.length > 0);
|
|
1712
|
+
return (z, D) => {
|
|
1713
|
+
const O = se, A = q;
|
|
1714
|
+
return d(), v("div", {
|
|
1662
1715
|
id: t.name
|
|
1663
1716
|
}, [
|
|
1664
|
-
|
|
1665
|
-
k(
|
|
1666
|
-
m("span",
|
|
1717
|
+
z.readonly ? (d(), v("div", Lt, [
|
|
1718
|
+
k(z.$slots, "default", {}, () => [
|
|
1719
|
+
m("span", Rt, B(u(r)), 1)
|
|
1667
1720
|
])
|
|
1668
|
-
])) : (
|
|
1669
|
-
i.value ? (
|
|
1670
|
-
|
|
1671
|
-
k(
|
|
1672
|
-
class:
|
|
1673
|
-
editFinished:
|
|
1721
|
+
])) : (d(), v("div", Et, [
|
|
1722
|
+
i.value ? (d(), v("div", Ut, [
|
|
1723
|
+
J((d(), v("div", qt, [
|
|
1724
|
+
k(z.$slots, "editor", {
|
|
1725
|
+
class: F({ "is-invalid": $.value }),
|
|
1726
|
+
editFinished: o,
|
|
1674
1727
|
cancel: s,
|
|
1675
|
-
val: u(
|
|
1728
|
+
val: u(r)
|
|
1676
1729
|
}, () => [
|
|
1677
|
-
h(
|
|
1678
|
-
modelValue: u(
|
|
1679
|
-
"onUpdate:modelValue":
|
|
1730
|
+
h(O, {
|
|
1731
|
+
modelValue: u(r),
|
|
1732
|
+
"onUpdate:modelValue": D[0] || (D[0] = (x) => Fe(r) ? r.value = x : null),
|
|
1680
1733
|
modelModifiers: { trim: !0 },
|
|
1681
1734
|
"data-cy": "input",
|
|
1682
1735
|
ref_key: "input",
|
|
1683
1736
|
ref: l,
|
|
1684
|
-
class:
|
|
1737
|
+
class: F({ "is-invalid": $.value }),
|
|
1685
1738
|
onKeydown: [
|
|
1686
|
-
|
|
1687
|
-
|
|
1739
|
+
ie(o, ["enter"]),
|
|
1740
|
+
ie(s, ["esc"])
|
|
1688
1741
|
]
|
|
1689
1742
|
}, null, 8, ["modelValue", "class"])
|
|
1690
1743
|
]),
|
|
1691
|
-
h(u(
|
|
1744
|
+
h(u(I), {
|
|
1692
1745
|
icon: "bi:x-circle",
|
|
1693
1746
|
class: "mx-2 cursor-pointer",
|
|
1694
1747
|
onClick: p,
|
|
1695
|
-
onKeydown:
|
|
1748
|
+
onKeydown: ie(p, ["enter"]),
|
|
1696
1749
|
"data-cy": "clear-icon"
|
|
1697
1750
|
})
|
|
1698
1751
|
])), [
|
|
1699
|
-
[u(
|
|
1752
|
+
[u(Me), o]
|
|
1700
1753
|
])
|
|
1701
|
-
])) : (
|
|
1754
|
+
])) : (d(), v("div", {
|
|
1702
1755
|
key: 1,
|
|
1703
1756
|
class: "d-flex text-muted",
|
|
1704
|
-
onClick:
|
|
1705
|
-
onFocus:
|
|
1757
|
+
onClick: n,
|
|
1758
|
+
onFocus: n
|
|
1706
1759
|
}, [
|
|
1707
|
-
k(
|
|
1760
|
+
k(z.$slots, "default", {}, () => [
|
|
1708
1761
|
m("div", {
|
|
1709
|
-
class:
|
|
1762
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1710
1763
|
"data-cy": "value"
|
|
1711
|
-
},
|
|
1764
|
+
}, B(u(r) ? u(r) : "Click to edit"), 3)
|
|
1712
1765
|
]),
|
|
1713
|
-
h(
|
|
1766
|
+
h(A, {
|
|
1714
1767
|
link: "",
|
|
1715
1768
|
class: "p-0 m-0"
|
|
1716
1769
|
}, {
|
|
1717
|
-
default:
|
|
1718
|
-
h(u(
|
|
1770
|
+
default: g(() => [
|
|
1771
|
+
h(u(I), {
|
|
1719
1772
|
icon: "bi:pencil",
|
|
1720
|
-
class:
|
|
1773
|
+
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1721
1774
|
"data-cy": "edit-icon",
|
|
1722
|
-
onKeydown:
|
|
1775
|
+
onKeydown: ie(n, ["enter"])
|
|
1723
1776
|
}, null, 8, ["class"])
|
|
1724
1777
|
]),
|
|
1725
1778
|
_: 1
|
|
1726
1779
|
})
|
|
1727
1780
|
], 32))
|
|
1728
1781
|
])),
|
|
1729
|
-
|
|
1782
|
+
J(m("small", {
|
|
1730
1783
|
"data-cy": "error",
|
|
1731
1784
|
class: "text-invalid"
|
|
1732
|
-
},
|
|
1733
|
-
[
|
|
1785
|
+
}, B(u(c)), 513), [
|
|
1786
|
+
[Z, $.value]
|
|
1734
1787
|
])
|
|
1735
|
-
], 8,
|
|
1788
|
+
], 8, At);
|
|
1736
1789
|
};
|
|
1737
1790
|
}
|
|
1738
|
-
}),
|
|
1791
|
+
}), Wt = ["href"], tl = /* @__PURE__ */ S({
|
|
1739
1792
|
__name: "ForgeNavbar",
|
|
1740
1793
|
props: {
|
|
1741
1794
|
severity: { default: "light" },
|
|
@@ -1763,6 +1816,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1763
1816
|
"bg-brand": t.severity === "brand",
|
|
1764
1817
|
"bg-secondary": t.severity === "secondary",
|
|
1765
1818
|
"bg-success": t.severity === "success",
|
|
1819
|
+
"bg-success-alternate": t.severity === "success-alternate",
|
|
1766
1820
|
"bg-warning": t.severity === "warning",
|
|
1767
1821
|
"bg-danger": t.severity === "danger",
|
|
1768
1822
|
"bg-info": t.severity === "info"
|
|
@@ -1779,26 +1833,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
1779
1833
|
]
|
|
1780
1834
|
})
|
|
1781
1835
|
}));
|
|
1782
|
-
return (i, l) => (
|
|
1836
|
+
return (i, l) => (d(), b(u(Ve), j({ ...t, ...i.$attrs }, {
|
|
1783
1837
|
pt: a.value,
|
|
1784
1838
|
"data-cy": "navbar"
|
|
1785
|
-
}),
|
|
1786
|
-
start:
|
|
1839
|
+
}), te({
|
|
1840
|
+
start: g(() => [
|
|
1787
1841
|
m("a", {
|
|
1788
1842
|
href: i.logoUrl,
|
|
1789
1843
|
class: "navbar-brand ms-3",
|
|
1790
1844
|
"data-cy": "logo"
|
|
1791
1845
|
}, [
|
|
1792
1846
|
k(i.$slots, "logo", {}, () => [
|
|
1793
|
-
l[0] || (l[0] =
|
|
1847
|
+
l[0] || (l[0] = M(" Logo "))
|
|
1794
1848
|
])
|
|
1795
|
-
], 8,
|
|
1849
|
+
], 8, Wt)
|
|
1796
1850
|
]),
|
|
1797
|
-
buttonicon:
|
|
1851
|
+
buttonicon: g(() => [
|
|
1798
1852
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1799
|
-
h(u(
|
|
1853
|
+
h(u(I), {
|
|
1800
1854
|
icon: "bi:list",
|
|
1801
|
-
class:
|
|
1855
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1802
1856
|
height: "24",
|
|
1803
1857
|
"data-cy": "burger-icon"
|
|
1804
1858
|
}, null, 8, ["class"])
|
|
@@ -1806,24 +1860,24 @@ const _t = { key: 0 }, Pt = {
|
|
|
1806
1860
|
]),
|
|
1807
1861
|
_: 2
|
|
1808
1862
|
}, [
|
|
1809
|
-
|
|
1810
|
-
name:
|
|
1811
|
-
fn:
|
|
1812
|
-
k(i.$slots,
|
|
1863
|
+
U(i.$slots, (n, o) => ({
|
|
1864
|
+
name: o,
|
|
1865
|
+
fn: g((s) => [
|
|
1866
|
+
k(i.$slots, o, W(G(s)))
|
|
1813
1867
|
])
|
|
1814
1868
|
}))
|
|
1815
1869
|
]), 1040, ["pt"]));
|
|
1816
1870
|
}
|
|
1817
|
-
}),
|
|
1871
|
+
}), Gt = { class: "border alternating-item-list" }, Yt = {
|
|
1818
1872
|
key: 0,
|
|
1819
1873
|
class: "p-2 border-top border-bottom",
|
|
1820
1874
|
"data-cy": "title"
|
|
1821
|
-
},
|
|
1875
|
+
}, Jt = { class: "d-inline-block" }, Kt = {
|
|
1822
1876
|
key: 1,
|
|
1823
1877
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1824
|
-
},
|
|
1878
|
+
}, Zt = /* @__PURE__ */ S({
|
|
1825
1879
|
__name: "ForgeMultiSelectPreview",
|
|
1826
|
-
props: /* @__PURE__ */
|
|
1880
|
+
props: /* @__PURE__ */ R({
|
|
1827
1881
|
title: { default: "Selected Items" },
|
|
1828
1882
|
orientation: { default: "row" },
|
|
1829
1883
|
height: { default: "200px" },
|
|
@@ -1837,98 +1891,98 @@ const _t = { key: 0 }, Pt = {
|
|
|
1837
1891
|
}),
|
|
1838
1892
|
emits: ["update:modelValue"],
|
|
1839
1893
|
setup(e) {
|
|
1840
|
-
const t = e, a =
|
|
1841
|
-
a.value = a.value.filter((
|
|
1894
|
+
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
1895
|
+
a.value = a.value.filter((n) => n.id !== l);
|
|
1842
1896
|
};
|
|
1843
|
-
return (l,
|
|
1844
|
-
const
|
|
1845
|
-
return
|
|
1846
|
-
class:
|
|
1897
|
+
return (l, n) => {
|
|
1898
|
+
const o = re, s = q;
|
|
1899
|
+
return d(), v("div", {
|
|
1900
|
+
class: F(l.orientation === "column" ? "row" : ""),
|
|
1847
1901
|
"data-cy": "multiselect-preview"
|
|
1848
1902
|
}, [
|
|
1849
1903
|
m("div", {
|
|
1850
|
-
class:
|
|
1904
|
+
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1851
1905
|
"data-cy": "multiselect-container"
|
|
1852
1906
|
}, [
|
|
1853
|
-
h(
|
|
1907
|
+
h(o, j({
|
|
1854
1908
|
modelValue: a.value,
|
|
1855
|
-
"onUpdate:modelValue":
|
|
1909
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1856
1910
|
}, { ...l.$attrs }, {
|
|
1857
1911
|
options: t.options ?? [],
|
|
1858
1912
|
optionLabel: "label",
|
|
1859
1913
|
placeholder: l.multiselectPlaceholder,
|
|
1860
1914
|
"data-cy": "multiselect"
|
|
1861
1915
|
}), {
|
|
1862
|
-
default:
|
|
1863
|
-
(
|
|
1916
|
+
default: g(() => [
|
|
1917
|
+
(d(!0), v(E, null, U(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1864
1918
|
]),
|
|
1865
1919
|
_: 3
|
|
1866
1920
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1867
1921
|
k(l.$slots, "after-multi-select")
|
|
1868
1922
|
], 2),
|
|
1869
1923
|
m("div", {
|
|
1870
|
-
class:
|
|
1924
|
+
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
1871
1925
|
"data-cy": "options-preview"
|
|
1872
1926
|
}, [
|
|
1873
1927
|
m("div", {
|
|
1874
|
-
style:
|
|
1928
|
+
style: Se({ height: l.height }),
|
|
1875
1929
|
class: "overflow-auto"
|
|
1876
1930
|
}, [
|
|
1877
|
-
m("div",
|
|
1878
|
-
l.title ? (
|
|
1879
|
-
(
|
|
1931
|
+
m("div", Gt, [
|
|
1932
|
+
l.title ? (d(), v("div", Yt, B(l.title), 1)) : C("", !0),
|
|
1933
|
+
(d(!0), v(E, null, U(a.value, (p) => (d(), v("div", {
|
|
1880
1934
|
key: p.id,
|
|
1881
1935
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1882
1936
|
}, [
|
|
1883
1937
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1884
|
-
m("span",
|
|
1938
|
+
m("span", Jt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1885
1939
|
]),
|
|
1886
|
-
l.canRemoveItemFromPreview ? (
|
|
1940
|
+
l.canRemoveItemFromPreview ? (d(), b(s, {
|
|
1887
1941
|
key: 0,
|
|
1888
1942
|
link: "",
|
|
1889
1943
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1890
1944
|
onClick: (c) => i(p.id)
|
|
1891
1945
|
}, {
|
|
1892
|
-
default:
|
|
1893
|
-
h(u(
|
|
1946
|
+
default: g(() => [
|
|
1947
|
+
h(u(I), {
|
|
1894
1948
|
icon: "bi:x",
|
|
1895
1949
|
class: "close-icon",
|
|
1896
1950
|
"data-cy": `close-icon-${p.id}`
|
|
1897
1951
|
}, null, 8, ["data-cy"])
|
|
1898
1952
|
]),
|
|
1899
1953
|
_: 2
|
|
1900
|
-
}, 1032, ["onClick"])) :
|
|
1954
|
+
}, 1032, ["onClick"])) : C("", !0)
|
|
1901
1955
|
]))), 128)),
|
|
1902
|
-
a.value == null || a.value.length == 0 ? (
|
|
1956
|
+
a.value == null || a.value.length == 0 ? (d(), v("div", Kt, B(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1903
1957
|
])
|
|
1904
1958
|
], 4)
|
|
1905
1959
|
], 2)
|
|
1906
1960
|
], 2);
|
|
1907
1961
|
};
|
|
1908
1962
|
}
|
|
1909
|
-
}),
|
|
1963
|
+
}), Xt = { class: "d-flex justify-content-between pb-2" }, Qt = {
|
|
1910
1964
|
"data-cy": "title",
|
|
1911
1965
|
class: "my-auto"
|
|
1912
|
-
},
|
|
1966
|
+
}, ea = {
|
|
1913
1967
|
"data-cy": "slot",
|
|
1914
1968
|
class: "d-flex align-items-center"
|
|
1915
|
-
},
|
|
1969
|
+
}, al = /* @__PURE__ */ S({
|
|
1916
1970
|
__name: "ForgePageHeader",
|
|
1917
1971
|
props: {
|
|
1918
1972
|
title: {}
|
|
1919
1973
|
},
|
|
1920
1974
|
setup(e) {
|
|
1921
1975
|
const t = e;
|
|
1922
|
-
return (a, i) => (
|
|
1923
|
-
m("h3",
|
|
1924
|
-
m("div",
|
|
1976
|
+
return (a, i) => (d(), v("div", Xt, [
|
|
1977
|
+
m("h3", Qt, B(t.title), 1),
|
|
1978
|
+
m("div", ea, [
|
|
1925
1979
|
k(a.$slots, "default")
|
|
1926
1980
|
])
|
|
1927
1981
|
]));
|
|
1928
1982
|
}
|
|
1929
|
-
}),
|
|
1983
|
+
}), ta = { class: "d-flex" }, aa = { "data-cy": "before-slot" }, ia = { class: "position-relative w-100" }, la = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ S({
|
|
1930
1984
|
__name: "ForgeDatepicker",
|
|
1931
|
-
props: /* @__PURE__ */
|
|
1985
|
+
props: /* @__PURE__ */ R({
|
|
1932
1986
|
severity: { default: "primary" },
|
|
1933
1987
|
modelValue: {},
|
|
1934
1988
|
defaultValue: {},
|
|
@@ -2002,37 +2056,38 @@ const _t = { key: 0 }, Pt = {
|
|
|
2002
2056
|
}),
|
|
2003
2057
|
emits: ["update:modelValue"],
|
|
2004
2058
|
setup(e) {
|
|
2005
|
-
const t = e, a =
|
|
2059
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: s } = oe(() => t.name, void 0, {
|
|
2006
2060
|
initialValue: a.value
|
|
2007
2061
|
}), p = () => {
|
|
2008
2062
|
s(null), a.value = null;
|
|
2009
|
-
}, c = T(() => i.value.length > 0),
|
|
2010
|
-
dayCell: ({ context:
|
|
2063
|
+
}, c = T(() => i.value.length > 0), y = T(() => ({
|
|
2064
|
+
dayCell: ({ context: r }) => ({
|
|
2011
2065
|
class: [
|
|
2012
2066
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
2013
2067
|
{
|
|
2014
|
-
"cursor-pointer": !
|
|
2015
|
-
"pe-none":
|
|
2016
|
-
"text-white":
|
|
2068
|
+
"cursor-pointer": !r.disabled,
|
|
2069
|
+
"pe-none": r.disabled,
|
|
2070
|
+
"text-white": r.selected
|
|
2017
2071
|
},
|
|
2018
2072
|
// Severities
|
|
2019
2073
|
{
|
|
2020
|
-
selected:
|
|
2021
|
-
"text-primary": !
|
|
2022
|
-
"text-brand": !
|
|
2023
|
-
"text-secondary": !
|
|
2024
|
-
"text-success": !
|
|
2025
|
-
"text-
|
|
2026
|
-
"text-
|
|
2027
|
-
"text-
|
|
2074
|
+
selected: r.selected && !r.disabled,
|
|
2075
|
+
"text-primary": !r.selected && r.today && (t.severity === void 0 || t.severity === "primary"),
|
|
2076
|
+
"text-brand": !r.selected && r.today && t.severity === "brand",
|
|
2077
|
+
"text-secondary": !r.selected && r.today && t.severity === "secondary",
|
|
2078
|
+
"text-success": !r.selected && r.today && t.severity === "success",
|
|
2079
|
+
"text-success-alternate": !r.selected && r.today && t.severity === "success-alternate",
|
|
2080
|
+
"text-warning": !r.selected && r.today && t.severity === "warning",
|
|
2081
|
+
"text-danger": !r.selected && r.today && t.severity === "danger",
|
|
2082
|
+
"text-info": !r.selected && r.today && t.severity === "info"
|
|
2028
2083
|
}
|
|
2029
2084
|
]
|
|
2030
2085
|
}),
|
|
2031
|
-
dayLabel: ({ context:
|
|
2086
|
+
dayLabel: ({ context: r }) => ({
|
|
2032
2087
|
class: [
|
|
2033
2088
|
// Disabled States
|
|
2034
2089
|
{
|
|
2035
|
-
"text-muted":
|
|
2090
|
+
"text-muted": r.disabled
|
|
2036
2091
|
}
|
|
2037
2092
|
]
|
|
2038
2093
|
}),
|
|
@@ -2045,6 +2100,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2045
2100
|
"btn-link text-brand": t.severity === "brand",
|
|
2046
2101
|
"btn-link text-secondary": t.severity === "secondary",
|
|
2047
2102
|
"btn-link text-success": t.severity === "success",
|
|
2103
|
+
"btn-link text-success-alternate": t.severity === "success-alternate",
|
|
2048
2104
|
"btn-link text-warning": t.severity === "warning",
|
|
2049
2105
|
"btn-link text-danger": t.severity === "danger",
|
|
2050
2106
|
"btn-link text-info": t.severity === "info"
|
|
@@ -2061,6 +2117,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2061
2117
|
"btn-link text-brand": t.severity === "brand",
|
|
2062
2118
|
"btn-link text-secondary": t.severity === "secondary",
|
|
2063
2119
|
"btn-link text-success": t.severity === "success",
|
|
2120
|
+
"btn-link text-success-alternate": t.severity === "success-alternate",
|
|
2064
2121
|
"btn-link text-warning": t.severity === "warning",
|
|
2065
2122
|
"btn-link text-danger": t.severity === "danger",
|
|
2066
2123
|
"btn-link text-info": t.severity === "info"
|
|
@@ -2068,83 +2125,85 @@ const _t = { key: 0 }, Pt = {
|
|
|
2068
2125
|
]
|
|
2069
2126
|
})
|
|
2070
2127
|
},
|
|
2071
|
-
year: ({ context:
|
|
2128
|
+
year: ({ context: r }) => ({
|
|
2072
2129
|
class: [
|
|
2073
2130
|
"col-3 text-center cursor-pointer py-2",
|
|
2074
2131
|
{
|
|
2075
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2076
|
-
"text-brand": t.severity === "brand" &&
|
|
2077
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2078
|
-
"text-success": t.severity === "success" &&
|
|
2079
|
-
"text-
|
|
2080
|
-
"text-
|
|
2081
|
-
"text-
|
|
2132
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2133
|
+
"text-brand": t.severity === "brand" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2134
|
+
"text-secondary": t.severity === "secondary" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2135
|
+
"text-success": t.severity === "success" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2136
|
+
"text-success-alternate": t.severity === "success-alternate" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2137
|
+
"text-warning": t.severity === "warning" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2138
|
+
"text-danger": t.severity === "danger" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2139
|
+
"text-info": t.severity === "info" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2082
2140
|
}
|
|
2083
2141
|
]
|
|
2084
2142
|
}),
|
|
2085
|
-
month: ({ context:
|
|
2143
|
+
month: ({ context: r }) => ({
|
|
2086
2144
|
class: [
|
|
2087
2145
|
"col-3 text-center cursor-pointer py-2",
|
|
2088
2146
|
{
|
|
2089
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2090
|
-
"text-brand": t.severity === "brand" &&
|
|
2091
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2092
|
-
"text-success": t.severity === "success" &&
|
|
2093
|
-
"text-
|
|
2094
|
-
"text-
|
|
2095
|
-
"text-
|
|
2147
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2148
|
+
"text-brand": t.severity === "brand" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2149
|
+
"text-secondary": t.severity === "secondary" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2150
|
+
"text-success": t.severity === "success" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2151
|
+
"text-success-alternate": t.severity === "success-alternate" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2152
|
+
"text-warning": t.severity === "warning" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2153
|
+
"text-danger": t.severity === "danger" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2154
|
+
"text-info": t.severity === "info" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2096
2155
|
}
|
|
2097
2156
|
]
|
|
2098
2157
|
})
|
|
2099
2158
|
}));
|
|
2100
|
-
return (
|
|
2101
|
-
const
|
|
2102
|
-
return
|
|
2103
|
-
m("div",
|
|
2104
|
-
m("span",
|
|
2105
|
-
k(
|
|
2159
|
+
return (r, $) => {
|
|
2160
|
+
const z = De;
|
|
2161
|
+
return d(), v(E, null, [
|
|
2162
|
+
m("div", ta, [
|
|
2163
|
+
m("span", aa, [
|
|
2164
|
+
k(r.$slots, "before")
|
|
2106
2165
|
]),
|
|
2107
|
-
m("div",
|
|
2108
|
-
h(
|
|
2109
|
-
pt:
|
|
2166
|
+
m("div", ia, [
|
|
2167
|
+
h(z, j({ ...t, ...r.$attrs }, {
|
|
2168
|
+
pt: y.value,
|
|
2110
2169
|
modelValue: a.value,
|
|
2111
2170
|
"onUpdate:modelValue": [
|
|
2112
|
-
|
|
2113
|
-
u(
|
|
2171
|
+
$[0] || ($[0] = (D) => a.value = D),
|
|
2172
|
+
u(n)
|
|
2114
2173
|
],
|
|
2115
|
-
onBlur:
|
|
2174
|
+
onBlur: $[1] || ($[1] = () => u(o)),
|
|
2116
2175
|
"input-class": { "datepicker-invalid": c.value }
|
|
2117
2176
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2118
|
-
|
|
2177
|
+
J(h(u(I), {
|
|
2119
2178
|
"data-cy": "icon",
|
|
2120
2179
|
icon: "bi:calendar4",
|
|
2121
|
-
class:
|
|
2180
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2122
2181
|
}, null, 8, ["class"]), [
|
|
2123
|
-
[
|
|
2182
|
+
[Z, t.showIcon]
|
|
2124
2183
|
]),
|
|
2125
|
-
|
|
2184
|
+
J(h(u(I), {
|
|
2126
2185
|
"data-cy": "icon",
|
|
2127
2186
|
icon: "bi:x",
|
|
2128
2187
|
onClick: p,
|
|
2129
|
-
class:
|
|
2188
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2130
2189
|
}, null, 8, ["class"]), [
|
|
2131
|
-
[
|
|
2190
|
+
[Z, t.modelValue]
|
|
2132
2191
|
])
|
|
2133
2192
|
]),
|
|
2134
|
-
m("span",
|
|
2135
|
-
k(
|
|
2193
|
+
m("span", la, [
|
|
2194
|
+
k(r.$slots, "after")
|
|
2136
2195
|
])
|
|
2137
2196
|
]),
|
|
2138
|
-
|
|
2197
|
+
J(m("small", {
|
|
2139
2198
|
"data-cy": "error",
|
|
2140
2199
|
class: "text-invalid"
|
|
2141
|
-
},
|
|
2142
|
-
[
|
|
2200
|
+
}, B(u(l)), 513), [
|
|
2201
|
+
[Z, c.value]
|
|
2143
2202
|
])
|
|
2144
2203
|
], 64);
|
|
2145
2204
|
};
|
|
2146
2205
|
}
|
|
2147
|
-
}),
|
|
2206
|
+
}), il = /* @__PURE__ */ S({
|
|
2148
2207
|
__name: "ForgeRemainingCharacters",
|
|
2149
2208
|
props: {
|
|
2150
2209
|
maxCount: { default: 300 },
|
|
@@ -2152,11 +2211,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
2152
2211
|
},
|
|
2153
2212
|
setup(e) {
|
|
2154
2213
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2155
|
-
return (i, l) => (
|
|
2156
|
-
class:
|
|
2157
|
-
}, "Remaining characters: " +
|
|
2214
|
+
return (i, l) => (d(), v("div", {
|
|
2215
|
+
class: F(a.value < 0 ? "text-danger" : "")
|
|
2216
|
+
}, "Remaining characters: " + B(a.value), 3));
|
|
2158
2217
|
}
|
|
2159
|
-
}),
|
|
2218
|
+
}), na = { class: "d-flex justify-content-between" }, ll = /* @__PURE__ */ S({
|
|
2160
2219
|
__name: "ForgeForm",
|
|
2161
2220
|
props: {
|
|
2162
2221
|
onSubmit: {},
|
|
@@ -2168,7 +2227,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2168
2227
|
hideCancel: { type: Boolean, default: !1 }
|
|
2169
2228
|
},
|
|
2170
2229
|
setup(e) {
|
|
2171
|
-
const t = e, a =
|
|
2230
|
+
const t = e, a = P(!1), i = P({
|
|
2172
2231
|
hasError: !1,
|
|
2173
2232
|
message: ""
|
|
2174
2233
|
});
|
|
@@ -2176,88 +2235,88 @@ const _t = { key: 0 }, Pt = {
|
|
|
2176
2235
|
a.value = !0, i.value.hasError = !1;
|
|
2177
2236
|
try {
|
|
2178
2237
|
await t.onSubmit();
|
|
2179
|
-
} catch (
|
|
2180
|
-
i.value.hasError = !0,
|
|
2238
|
+
} catch (n) {
|
|
2239
|
+
i.value.hasError = !0, n.message && (i.value.message = n.message);
|
|
2181
2240
|
}
|
|
2182
2241
|
a.value = !1;
|
|
2183
2242
|
}
|
|
2184
|
-
return (
|
|
2185
|
-
const s =
|
|
2186
|
-
return
|
|
2243
|
+
return (n, o) => {
|
|
2244
|
+
const s = q;
|
|
2245
|
+
return d(), v("form", j(n.$attrs, {
|
|
2187
2246
|
novalidate: "",
|
|
2188
2247
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2189
|
-
onSubmit:
|
|
2248
|
+
onSubmit: X(l, ["prevent"])
|
|
2190
2249
|
}), [
|
|
2191
|
-
|
|
2192
|
-
k(
|
|
2250
|
+
n.hideTitle ? C("", !0) : (d(), v(E, { key: 0 }, [
|
|
2251
|
+
k(n.$slots, "title", {}, () => [
|
|
2193
2252
|
m("h3", {
|
|
2194
|
-
class:
|
|
2253
|
+
class: F(n.titleClass),
|
|
2195
2254
|
"data-cy": "form-title"
|
|
2196
|
-
},
|
|
2255
|
+
}, B(n.title), 3)
|
|
2197
2256
|
]),
|
|
2198
|
-
|
|
2257
|
+
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2199
2258
|
], 64)),
|
|
2200
|
-
i.value.hasError ? (
|
|
2259
|
+
i.value.hasError ? (d(), b(de, {
|
|
2201
2260
|
key: 1,
|
|
2202
2261
|
severity: "danger",
|
|
2203
2262
|
"data-cy": "error"
|
|
2204
2263
|
}, {
|
|
2205
|
-
default:
|
|
2206
|
-
k(
|
|
2264
|
+
default: g(() => [
|
|
2265
|
+
k(n.$slots, "error", {
|
|
2207
2266
|
error: i.value.message
|
|
2208
2267
|
}, () => [
|
|
2209
|
-
|
|
2268
|
+
M(B(i.value.message), 1)
|
|
2210
2269
|
])
|
|
2211
2270
|
]),
|
|
2212
2271
|
_: 3
|
|
2213
|
-
})) :
|
|
2214
|
-
k(
|
|
2215
|
-
m("div",
|
|
2216
|
-
k(
|
|
2217
|
-
|
|
2272
|
+
})) : C("", !0),
|
|
2273
|
+
k(n.$slots, "default"),
|
|
2274
|
+
m("div", na, [
|
|
2275
|
+
k(n.$slots, "cancel", {}, () => [
|
|
2276
|
+
n.hideCancel ? C("", !0) : (d(), b(s, {
|
|
2218
2277
|
key: 0,
|
|
2219
2278
|
"data-cy": "cancel-btn",
|
|
2220
2279
|
type: "reset",
|
|
2221
2280
|
severity: "secondary",
|
|
2222
2281
|
outlined: "",
|
|
2223
|
-
onClick:
|
|
2282
|
+
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2224
2283
|
}, {
|
|
2225
|
-
default:
|
|
2226
|
-
|
|
2284
|
+
default: g(() => [
|
|
2285
|
+
M(B(n.cancelText), 1)
|
|
2227
2286
|
]),
|
|
2228
2287
|
_: 1
|
|
2229
2288
|
}))
|
|
2230
2289
|
]),
|
|
2231
|
-
k(
|
|
2290
|
+
k(n.$slots, "submit", { submit: l }, () => [
|
|
2232
2291
|
h(s, {
|
|
2233
2292
|
"data-cy": "submit-btn",
|
|
2234
2293
|
type: "submit",
|
|
2235
2294
|
severity: "primary",
|
|
2236
2295
|
class: "ms-auto"
|
|
2237
2296
|
}, {
|
|
2238
|
-
default:
|
|
2239
|
-
|
|
2297
|
+
default: g(() => [
|
|
2298
|
+
M(B(n.submitText), 1)
|
|
2240
2299
|
]),
|
|
2241
2300
|
_: 1
|
|
2242
2301
|
})
|
|
2243
2302
|
])
|
|
2244
2303
|
]),
|
|
2245
|
-
a.value ? (
|
|
2304
|
+
a.value ? (d(), b(pe, {
|
|
2246
2305
|
key: 2,
|
|
2247
2306
|
"data-cy": "loading-spinner"
|
|
2248
|
-
})) :
|
|
2307
|
+
})) : C("", !0)
|
|
2249
2308
|
], 16);
|
|
2250
2309
|
};
|
|
2251
2310
|
}
|
|
2252
|
-
}),
|
|
2311
|
+
}), oa = {
|
|
2253
2312
|
key: 1,
|
|
2254
2313
|
class: "d-flex flex-column w-100"
|
|
2255
|
-
},
|
|
2314
|
+
}, sa = ["for"], ra = {
|
|
2256
2315
|
key: 0,
|
|
2257
2316
|
class: "text-danger fw-600"
|
|
2258
|
-
},
|
|
2317
|
+
}, nl = /* @__PURE__ */ S({
|
|
2259
2318
|
__name: "ForgeFormField",
|
|
2260
|
-
props: /* @__PURE__ */
|
|
2319
|
+
props: /* @__PURE__ */ R({
|
|
2261
2320
|
name: {},
|
|
2262
2321
|
fieldLabelPosition: { default: "top" },
|
|
2263
2322
|
fieldLabel: {},
|
|
@@ -2272,106 +2331,106 @@ const _t = { key: 0 }, Pt = {
|
|
|
2272
2331
|
}),
|
|
2273
2332
|
emits: ["update:modelValue"],
|
|
2274
2333
|
setup(e) {
|
|
2275
|
-
const t =
|
|
2276
|
-
a.type == "number" ? s(
|
|
2277
|
-
}, { errors: l, value:
|
|
2334
|
+
const t = N(e, "modelValue"), a = e, i = (y) => {
|
|
2335
|
+
a.type == "number" ? s(y.value) : s(y);
|
|
2336
|
+
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
|
|
2278
2337
|
initialValue: t.value
|
|
2279
2338
|
}), c = T(() => l.value.length > 0);
|
|
2280
|
-
return
|
|
2281
|
-
t.value =
|
|
2282
|
-
}, { immediate: !0 }), (
|
|
2283
|
-
const
|
|
2284
|
-
return a.type === "checkbox" ? (
|
|
2339
|
+
return le(() => n.value, (y) => {
|
|
2340
|
+
t.value = y;
|
|
2341
|
+
}, { immediate: !0 }), (y, r) => {
|
|
2342
|
+
const $ = Ne, z = Oe, D = se, O = ae, A = re, x = xe;
|
|
2343
|
+
return a.type === "checkbox" ? (d(), b(ye, j({
|
|
2285
2344
|
key: 0,
|
|
2286
2345
|
id: a.name,
|
|
2287
2346
|
label: a.fieldLabel
|
|
2288
|
-
},
|
|
2347
|
+
}, y.$attrs, {
|
|
2289
2348
|
name: a.name,
|
|
2290
2349
|
modelValue: t.value,
|
|
2291
|
-
"onUpdate:modelValue":
|
|
2292
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2350
|
+
"onUpdate:modelValue": r[0] || (r[0] = (w) => t.value = w)
|
|
2351
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), v("div", oa, [
|
|
2293
2352
|
m("div", {
|
|
2294
2353
|
"data-cy": "input-wrapper",
|
|
2295
|
-
class:
|
|
2354
|
+
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2296
2355
|
}, [
|
|
2297
2356
|
m("label", {
|
|
2298
2357
|
for: a.name,
|
|
2299
|
-
class:
|
|
2358
|
+
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2300
2359
|
}, [
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
], 10,
|
|
2304
|
-
k(
|
|
2305
|
-
a.type === "number" ? (
|
|
2360
|
+
M(B(a.fieldLabel) + " ", 1),
|
|
2361
|
+
y.required ? (d(), v("span", ra, "*")) : C("", !0)
|
|
2362
|
+
], 10, sa),
|
|
2363
|
+
k(y.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2364
|
+
a.type === "number" ? (d(), b(u(fe), j({
|
|
2306
2365
|
key: 0,
|
|
2307
2366
|
id: a.name
|
|
2308
|
-
},
|
|
2367
|
+
}, y.$attrs, {
|
|
2309
2368
|
placeholder: a.placeholder,
|
|
2310
2369
|
"input-class": { "is-invalid": c.value },
|
|
2311
2370
|
class: { "is-invalid": c.value },
|
|
2312
2371
|
onInput: i,
|
|
2313
2372
|
modelValue: t.value,
|
|
2314
|
-
"onUpdate:modelValue":
|
|
2315
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (
|
|
2373
|
+
"onUpdate:modelValue": r[1] || (r[1] = (w) => t.value = w)
|
|
2374
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b($, j({
|
|
2316
2375
|
key: 1,
|
|
2317
2376
|
id: a.name
|
|
2318
|
-
},
|
|
2377
|
+
}, y.$attrs, {
|
|
2319
2378
|
placeholder: a.placeholder,
|
|
2320
2379
|
class: { "is-invalid": c.value },
|
|
2321
2380
|
modelValue: t.value,
|
|
2322
|
-
"onUpdate:modelValue":
|
|
2381
|
+
"onUpdate:modelValue": r[2] || (r[2] = (w) => t.value = w),
|
|
2323
2382
|
onInput: i,
|
|
2324
2383
|
onBlur: u(p)
|
|
2325
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (
|
|
2384
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), b(z, j({
|
|
2326
2385
|
key: 2,
|
|
2327
2386
|
id: a.name
|
|
2328
|
-
},
|
|
2387
|
+
}, y.$attrs, {
|
|
2329
2388
|
placeholder: a.placeholder,
|
|
2330
2389
|
mask: a.mask,
|
|
2331
2390
|
class: { "is-invalid": c.value },
|
|
2332
2391
|
modelValue: t.value,
|
|
2333
|
-
"onUpdate:modelValue":
|
|
2392
|
+
"onUpdate:modelValue": r[3] || (r[3] = (w) => t.value = w),
|
|
2334
2393
|
onComplete: i,
|
|
2335
2394
|
onBlur: u(p)
|
|
2336
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (
|
|
2395
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), b(D, j({
|
|
2337
2396
|
key: 3,
|
|
2338
2397
|
id: a.name
|
|
2339
|
-
},
|
|
2398
|
+
}, y.$attrs, {
|
|
2340
2399
|
placeholder: a.placeholder,
|
|
2341
2400
|
class: { "is-invalid": c.value },
|
|
2342
2401
|
modelValue: t.value,
|
|
2343
|
-
"onUpdate:modelValue":
|
|
2402
|
+
"onUpdate:modelValue": r[4] || (r[4] = (w) => t.value = w),
|
|
2344
2403
|
onInput: i,
|
|
2345
2404
|
onBlur: u(p)
|
|
2346
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (
|
|
2405
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), b(O, j({ key: 4 }, { ...a, ...y.$attrs }, {
|
|
2347
2406
|
modelValue: t.value,
|
|
2348
|
-
"onUpdate:modelValue":
|
|
2407
|
+
"onUpdate:modelValue": r[5] || (r[5] = (w) => t.value = w),
|
|
2349
2408
|
class: { "is-invalid": c.value }
|
|
2350
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (
|
|
2409
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), b(A, j({ key: 5 }, { ...a, ...y.$attrs }, {
|
|
2351
2410
|
modelValue: t.value,
|
|
2352
|
-
"onUpdate:modelValue":
|
|
2411
|
+
"onUpdate:modelValue": r[6] || (r[6] = (w) => t.value = w),
|
|
2353
2412
|
class: { "is-invalid": c.value }
|
|
2354
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (
|
|
2413
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), b(Zt, j({ key: 6 }, { ...a, ...y.$attrs }, {
|
|
2355
2414
|
modelValue: t.value,
|
|
2356
|
-
"onUpdate:modelValue":
|
|
2415
|
+
"onUpdate:modelValue": r[7] || (r[7] = (w) => t.value = w),
|
|
2357
2416
|
class: { "is-invalid": c.value }
|
|
2358
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (
|
|
2417
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), b(x, j({ key: 7 }, { ...a, ...y.$attrs }, {
|
|
2359
2418
|
modelValue: t.value,
|
|
2360
|
-
"onUpdate:modelValue":
|
|
2419
|
+
"onUpdate:modelValue": r[8] || (r[8] = (w) => t.value = w),
|
|
2361
2420
|
class: { "is-invalid": c.value }
|
|
2362
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2421
|
+
}), null, 16, ["modelValue", "class"])) : C("", !0)
|
|
2363
2422
|
])
|
|
2364
2423
|
], 2),
|
|
2365
|
-
|
|
2424
|
+
J(m("small", {
|
|
2366
2425
|
"data-cy": "error",
|
|
2367
2426
|
class: "invalid-feedback"
|
|
2368
|
-
},
|
|
2369
|
-
[
|
|
2427
|
+
}, B(u(o)), 513), [
|
|
2428
|
+
[Z, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2370
2429
|
])
|
|
2371
2430
|
]));
|
|
2372
2431
|
};
|
|
2373
2432
|
}
|
|
2374
|
-
}),
|
|
2433
|
+
}), ol = /* @__PURE__ */ S({
|
|
2375
2434
|
__name: "ForgeChip",
|
|
2376
2435
|
props: {
|
|
2377
2436
|
chipSeverity: { default: "primary" },
|
|
@@ -2400,21 +2459,22 @@ const _t = { key: 0 }, Pt = {
|
|
|
2400
2459
|
"bg-success-subtle border-success text-success": t.chipSeverity === "success",
|
|
2401
2460
|
"bg-warning-subtle border-warning text-warning": t.chipSeverity === "warning",
|
|
2402
2461
|
"bg-danger-subtle border-danger text-danger": t.chipSeverity === "danger",
|
|
2403
|
-
"bg-info-subtle border-info text-info": t.chipSeverity === "info"
|
|
2462
|
+
"bg-info-subtle border-info text-info": t.chipSeverity === "info",
|
|
2463
|
+
"bg-info-success-alternate border-success-alternate text-success-alternate": t.chipSeverity === "success-alternate"
|
|
2404
2464
|
}
|
|
2405
2465
|
]
|
|
2406
2466
|
}));
|
|
2407
2467
|
return (i, l) => {
|
|
2408
|
-
const
|
|
2409
|
-
return
|
|
2410
|
-
default:
|
|
2411
|
-
(
|
|
2468
|
+
const n = Ae;
|
|
2469
|
+
return d(), b(n, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2470
|
+
default: g(() => [
|
|
2471
|
+
(d(!0), v(E, null, U(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2412
2472
|
]),
|
|
2413
2473
|
_: 3
|
|
2414
2474
|
}, 16, ["pt"]);
|
|
2415
2475
|
};
|
|
2416
2476
|
}
|
|
2417
|
-
}),
|
|
2477
|
+
}), sl = /* @__PURE__ */ S({
|
|
2418
2478
|
__name: "ForgeProgressBar",
|
|
2419
2479
|
props: {
|
|
2420
2480
|
severity: { default: "primary" },
|
|
@@ -2438,6 +2498,8 @@ const _t = { key: 0 }, Pt = {
|
|
|
2438
2498
|
return "bg-secondary";
|
|
2439
2499
|
case "success":
|
|
2440
2500
|
return "bg-success";
|
|
2501
|
+
case "success-alternate":
|
|
2502
|
+
return "bg-success-alternate";
|
|
2441
2503
|
case "warning":
|
|
2442
2504
|
return "bg-warning";
|
|
2443
2505
|
case "danger":
|
|
@@ -2449,7 +2511,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2449
2511
|
default:
|
|
2450
2512
|
return "bg-primary";
|
|
2451
2513
|
}
|
|
2452
|
-
}),
|
|
2514
|
+
}), n = T(() => ({
|
|
2453
2515
|
root: {
|
|
2454
2516
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2455
2517
|
},
|
|
@@ -2457,18 +2519,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
2457
2519
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2458
2520
|
}
|
|
2459
2521
|
}));
|
|
2460
|
-
return (
|
|
2461
|
-
const p =
|
|
2462
|
-
return
|
|
2463
|
-
default:
|
|
2464
|
-
k(
|
|
2522
|
+
return (o, s) => {
|
|
2523
|
+
const p = Ee;
|
|
2524
|
+
return d(), b(p, j({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2525
|
+
default: g(() => [
|
|
2526
|
+
k(o.$slots, "default")
|
|
2465
2527
|
]),
|
|
2466
2528
|
_: 3
|
|
2467
2529
|
}, 16, ["pt"]);
|
|
2468
2530
|
};
|
|
2469
2531
|
}
|
|
2470
2532
|
});
|
|
2471
|
-
var
|
|
2533
|
+
var da = /* @__PURE__ */ S({
|
|
2472
2534
|
name: "VueDrawingCanvas",
|
|
2473
2535
|
props: {
|
|
2474
2536
|
strokeType: {
|
|
@@ -2779,15 +2841,15 @@ var oa = /* @__PURE__ */ $({
|
|
|
2779
2841
|
e && this.save();
|
|
2780
2842
|
});
|
|
2781
2843
|
},
|
|
2782
|
-
wrapText(e, t, a, i, l,
|
|
2783
|
-
const
|
|
2784
|
-
var p = t.split(
|
|
2785
|
-
for (let
|
|
2786
|
-
for (var c = p[
|
|
2787
|
-
var
|
|
2788
|
-
|
|
2844
|
+
wrapText(e, t, a, i, l, n) {
|
|
2845
|
+
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2846
|
+
var p = t.split(o).filter((O) => O.length > 0);
|
|
2847
|
+
for (let O = 0; O < p.length; O++) {
|
|
2848
|
+
for (var c = p[O].split(s).filter((A) => A.length > 0), y = "", r = 0; r < c.length; r++) {
|
|
2849
|
+
var $ = y + c[r] + " ", z = e.measureText($), D = z.width;
|
|
2850
|
+
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = c[r] + " ", i += n) : y = $;
|
|
2789
2851
|
}
|
|
2790
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2852
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += c.length > 0 ? n : 0;
|
|
2791
2853
|
}
|
|
2792
2854
|
},
|
|
2793
2855
|
save() {
|
|
@@ -2804,23 +2866,23 @@ var oa = /* @__PURE__ */ $({
|
|
|
2804
2866
|
drawWatermark(e, t, a) {
|
|
2805
2867
|
if (a.type === "Image") {
|
|
2806
2868
|
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
2807
|
-
const
|
|
2808
|
-
|
|
2809
|
-
a && t && t.drawImage(
|
|
2810
|
-
let
|
|
2811
|
-
if (
|
|
2812
|
-
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image",
|
|
2869
|
+
const n = new Image();
|
|
2870
|
+
n.src = a.source, n.onload = () => {
|
|
2871
|
+
a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
|
|
2872
|
+
let o = document.createElement("canvas"), s = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2873
|
+
if (o.width = Number(p), o.height = Number(c), s)
|
|
2874
|
+
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
|
|
2813
2875
|
};
|
|
2814
2876
|
} else if (a.type === "Text") {
|
|
2815
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start",
|
|
2816
|
-
if (t.font = i, t.textAlign = l, t.textBaseline =
|
|
2817
|
-
let
|
|
2818
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2877
|
+
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";
|
|
2878
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2879
|
+
let r, $;
|
|
2880
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(r, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, $ * -1);
|
|
2819
2881
|
}
|
|
2820
|
-
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 =
|
|
2821
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2822
|
-
if (s.width = Number(c), s.height = Number(
|
|
2823
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2882
|
+
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));
|
|
2883
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2884
|
+
if (s.width = Number(c), s.height = Number(y), p)
|
|
2885
|
+
return p.drawImage(e, 0, 0, Number(c), Number(y)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2824
2886
|
}
|
|
2825
2887
|
},
|
|
2826
2888
|
isEmpty() {
|
|
@@ -2831,7 +2893,7 @@ var oa = /* @__PURE__ */ $({
|
|
|
2831
2893
|
}
|
|
2832
2894
|
},
|
|
2833
2895
|
render() {
|
|
2834
|
-
return
|
|
2896
|
+
return Ce("canvas", {
|
|
2835
2897
|
id: this.canvasId,
|
|
2836
2898
|
height: Number(this.height),
|
|
2837
2899
|
width: Number(this.width),
|
|
@@ -2858,7 +2920,7 @@ var oa = /* @__PURE__ */ $({
|
|
|
2858
2920
|
});
|
|
2859
2921
|
}
|
|
2860
2922
|
});
|
|
2861
|
-
const
|
|
2923
|
+
const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1 gap-1" }, rl = /* @__PURE__ */ S({
|
|
2862
2924
|
__name: "ForgeScratchpad",
|
|
2863
2925
|
props: {
|
|
2864
2926
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2871,7 +2933,7 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2871
2933
|
},
|
|
2872
2934
|
emits: ["save"],
|
|
2873
2935
|
setup(e, { emit: t }) {
|
|
2874
|
-
const a = e, i = t, l =
|
|
2936
|
+
const a = e, i = t, l = ze("drawingCanvas"), n = P(), o = () => {
|
|
2875
2937
|
l == null || l.value.reset();
|
|
2876
2938
|
}, s = () => {
|
|
2877
2939
|
l == null || l.value.redo();
|
|
@@ -2880,72 +2942,72 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2880
2942
|
}, c = () => {
|
|
2881
2943
|
i("save", l.value.isEmpty());
|
|
2882
2944
|
};
|
|
2883
|
-
return (
|
|
2884
|
-
const
|
|
2885
|
-
return
|
|
2886
|
-
h(u(
|
|
2945
|
+
return (y, r) => {
|
|
2946
|
+
const $ = q;
|
|
2947
|
+
return d(), v("div", pa, [
|
|
2948
|
+
h(u(da), j({
|
|
2887
2949
|
ref_key: "drawingCanvas",
|
|
2888
2950
|
ref: l,
|
|
2889
|
-
image:
|
|
2890
|
-
"onUpdate:image":
|
|
2951
|
+
image: n.value,
|
|
2952
|
+
"onUpdate:image": r[0] || (r[0] = (z) => n.value = z),
|
|
2891
2953
|
"data-cy": "drawing-canvas",
|
|
2892
2954
|
class: "border canvas"
|
|
2893
|
-
}, { ...
|
|
2894
|
-
height:
|
|
2895
|
-
width:
|
|
2896
|
-
style: `height: ${
|
|
2897
|
-
"line-join":
|
|
2955
|
+
}, { ...y.$attrs }, {
|
|
2956
|
+
height: y.height,
|
|
2957
|
+
width: y.width,
|
|
2958
|
+
style: `height: ${y.height}px; width: ${y.width}px`,
|
|
2959
|
+
"line-join": y.lineJoin
|
|
2898
2960
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2899
|
-
m("div",
|
|
2900
|
-
a.showUndo ? (
|
|
2961
|
+
m("div", ca, [
|
|
2962
|
+
a.showUndo ? (d(), b($, {
|
|
2901
2963
|
key: 0,
|
|
2902
2964
|
onClick: p,
|
|
2903
2965
|
outlined: "",
|
|
2904
2966
|
"data-cy": "undo-button"
|
|
2905
2967
|
}, {
|
|
2906
|
-
default:
|
|
2907
|
-
|
|
2968
|
+
default: g(() => r[1] || (r[1] = [
|
|
2969
|
+
M("Undo")
|
|
2908
2970
|
])),
|
|
2909
2971
|
_: 1
|
|
2910
|
-
})) :
|
|
2911
|
-
a.showRedo ? (
|
|
2972
|
+
})) : C("", !0),
|
|
2973
|
+
a.showRedo ? (d(), b($, {
|
|
2912
2974
|
key: 1,
|
|
2913
2975
|
onClick: s,
|
|
2914
2976
|
outlined: "",
|
|
2915
2977
|
"data-cy": "redo-button"
|
|
2916
2978
|
}, {
|
|
2917
|
-
default:
|
|
2918
|
-
|
|
2979
|
+
default: g(() => r[2] || (r[2] = [
|
|
2980
|
+
M("Redo")
|
|
2919
2981
|
])),
|
|
2920
2982
|
_: 1
|
|
2921
|
-
})) :
|
|
2922
|
-
a.showClear ? (
|
|
2983
|
+
})) : C("", !0),
|
|
2984
|
+
a.showClear ? (d(), b($, {
|
|
2923
2985
|
key: 2,
|
|
2924
|
-
onClick:
|
|
2986
|
+
onClick: o,
|
|
2925
2987
|
outlined: "",
|
|
2926
2988
|
"data-cy": "clear-button"
|
|
2927
2989
|
}, {
|
|
2928
|
-
default:
|
|
2929
|
-
|
|
2990
|
+
default: g(() => r[3] || (r[3] = [
|
|
2991
|
+
M("Clear")
|
|
2930
2992
|
])),
|
|
2931
2993
|
_: 1
|
|
2932
|
-
})) :
|
|
2933
|
-
a.showSave ? (
|
|
2994
|
+
})) : C("", !0),
|
|
2995
|
+
a.showSave ? (d(), b($, {
|
|
2934
2996
|
key: 3,
|
|
2935
2997
|
onClick: c,
|
|
2936
2998
|
class: "ms-auto",
|
|
2937
2999
|
"data-cy": "save-button"
|
|
2938
3000
|
}, {
|
|
2939
|
-
default:
|
|
2940
|
-
|
|
3001
|
+
default: g(() => r[4] || (r[4] = [
|
|
3002
|
+
M("Save")
|
|
2941
3003
|
])),
|
|
2942
3004
|
_: 1
|
|
2943
|
-
})) :
|
|
3005
|
+
})) : C("", !0)
|
|
2944
3006
|
])
|
|
2945
3007
|
]);
|
|
2946
3008
|
};
|
|
2947
3009
|
}
|
|
2948
|
-
}),
|
|
3010
|
+
}), ua = { class: "value text-white w-100 text-center" }, dl = /* @__PURE__ */ S({
|
|
2949
3011
|
__name: "ForgeStatWidget",
|
|
2950
3012
|
props: {
|
|
2951
3013
|
size: { default: "md" },
|
|
@@ -2953,15 +3015,15 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2953
3015
|
},
|
|
2954
3016
|
setup(e) {
|
|
2955
3017
|
const t = e;
|
|
2956
|
-
return (a, i) => (
|
|
3018
|
+
return (a, i) => (d(), v("div", j(a.$attrs, {
|
|
2957
3019
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2958
3020
|
}), [
|
|
2959
|
-
m("span",
|
|
3021
|
+
m("span", ua, [
|
|
2960
3022
|
k(a.$slots, "default")
|
|
2961
3023
|
])
|
|
2962
3024
|
], 16));
|
|
2963
3025
|
}
|
|
2964
|
-
}),
|
|
3026
|
+
}), ma = { key: 0 }, pl = /* @__PURE__ */ S({
|
|
2965
3027
|
__name: "ForgeStepper",
|
|
2966
3028
|
props: {
|
|
2967
3029
|
currentStep: { default: 1 },
|
|
@@ -3008,32 +3070,32 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3008
3070
|
]
|
|
3009
3071
|
})
|
|
3010
3072
|
}));
|
|
3011
|
-
return (i, l) => (
|
|
3012
|
-
default:
|
|
3013
|
-
h(u(
|
|
3014
|
-
default:
|
|
3015
|
-
(
|
|
3016
|
-
key:
|
|
3017
|
-
value:
|
|
3018
|
-
disabled:
|
|
3073
|
+
return (i, l) => (d(), b(u(qe), { value: i.currentStep }, {
|
|
3074
|
+
default: g(() => [
|
|
3075
|
+
h(u(Le), null, {
|
|
3076
|
+
default: g(() => [
|
|
3077
|
+
(d(!0), v(E, null, U(i.steps, (n) => (d(), b(u(Ue), j({
|
|
3078
|
+
key: n.value,
|
|
3079
|
+
value: n.value,
|
|
3080
|
+
disabled: n.disabled,
|
|
3019
3081
|
ref_for: !0
|
|
3020
3082
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3021
|
-
default:
|
|
3022
|
-
i.showStepLabel ? (
|
|
3083
|
+
default: g(() => [
|
|
3084
|
+
i.showStepLabel ? (d(), v("div", ma, B(n.label), 1)) : C("", !0)
|
|
3023
3085
|
]),
|
|
3024
3086
|
_: 2
|
|
3025
3087
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3026
3088
|
]),
|
|
3027
3089
|
_: 1
|
|
3028
3090
|
}),
|
|
3029
|
-
h(u(
|
|
3030
|
-
default:
|
|
3031
|
-
(
|
|
3032
|
-
key:
|
|
3033
|
-
value:
|
|
3091
|
+
h(u(He), null, {
|
|
3092
|
+
default: g(() => [
|
|
3093
|
+
(d(!0), v(E, null, U(i.steps, (n) => (d(), b(u(Re), {
|
|
3094
|
+
key: n.value,
|
|
3095
|
+
value: n.value
|
|
3034
3096
|
}, {
|
|
3035
|
-
default:
|
|
3036
|
-
k(i.$slots, "step" +
|
|
3097
|
+
default: g(() => [
|
|
3098
|
+
k(i.$slots, "step" + n.value)
|
|
3037
3099
|
]),
|
|
3038
3100
|
_: 2
|
|
3039
3101
|
}, 1032, ["value"]))), 128))
|
|
@@ -3044,7 +3106,7 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3044
3106
|
_: 3
|
|
3045
3107
|
}, 8, ["value"]));
|
|
3046
3108
|
}
|
|
3047
|
-
}),
|
|
3109
|
+
}), va = { class: "p-4 text-wrap w-100" }, fa = { class: "p-4 text-wrap w-100" }, cl = /* @__PURE__ */ S({
|
|
3048
3110
|
__name: "ForgeTile",
|
|
3049
3111
|
props: {
|
|
3050
3112
|
severity: { default: "primary" },
|
|
@@ -3054,31 +3116,31 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3054
3116
|
},
|
|
3055
3117
|
setup(e) {
|
|
3056
3118
|
const t = e, a = T(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = T(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3057
|
-
return (l,
|
|
3058
|
-
const
|
|
3059
|
-
return t.clickable ? (
|
|
3119
|
+
return (l, n) => {
|
|
3120
|
+
const o = q;
|
|
3121
|
+
return t.clickable ? (d(), b(o, {
|
|
3060
3122
|
key: 0,
|
|
3061
|
-
class:
|
|
3123
|
+
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
3062
3124
|
severity: t.severity,
|
|
3063
3125
|
unstyled: "",
|
|
3064
3126
|
"data-cy": "button-tile"
|
|
3065
3127
|
}, {
|
|
3066
|
-
default:
|
|
3067
|
-
m("div",
|
|
3128
|
+
default: g(() => [
|
|
3129
|
+
m("div", va, [
|
|
3068
3130
|
k(l.$slots, "default", {}, () => [
|
|
3069
|
-
|
|
3131
|
+
n[0] || (n[0] = M("Tile Content"))
|
|
3070
3132
|
])
|
|
3071
3133
|
])
|
|
3072
3134
|
]),
|
|
3073
3135
|
_: 3
|
|
3074
|
-
}, 8, ["severity", "class"])) : (
|
|
3136
|
+
}, 8, ["severity", "class"])) : (d(), v("div", {
|
|
3075
3137
|
key: 1,
|
|
3076
|
-
class:
|
|
3138
|
+
class: F(["d-flex w-100", i.value]),
|
|
3077
3139
|
"data-cy": "tile"
|
|
3078
3140
|
}, [
|
|
3079
|
-
m("div",
|
|
3141
|
+
m("div", fa, [
|
|
3080
3142
|
k(l.$slots, "default", {}, () => [
|
|
3081
|
-
|
|
3143
|
+
n[1] || (n[1] = M("Tile Content"))
|
|
3082
3144
|
])
|
|
3083
3145
|
])
|
|
3084
3146
|
], 2));
|
|
@@ -3088,13 +3150,13 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3088
3150
|
function Q(e, t) {
|
|
3089
3151
|
return e > 1 ? `${t}s` : t;
|
|
3090
3152
|
}
|
|
3091
|
-
const
|
|
3153
|
+
const ga = {
|
|
3092
3154
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3093
3155
|
"data-cy": "pagination-header"
|
|
3094
|
-
},
|
|
3156
|
+
}, ba = { class: "ms-2" }, ya = { key: 0 }, xa = {
|
|
3095
3157
|
class: "w-auto",
|
|
3096
3158
|
"data-cy": "total"
|
|
3097
|
-
},
|
|
3159
|
+
}, he = /* @__PURE__ */ S({
|
|
3098
3160
|
__name: "ForgePaginationHeader",
|
|
3099
3161
|
props: {
|
|
3100
3162
|
total: {},
|
|
@@ -3103,15 +3165,15 @@ const ua = {
|
|
|
3103
3165
|
},
|
|
3104
3166
|
emits: ["update:perPage"],
|
|
3105
3167
|
setup(e, { emit: t }) {
|
|
3106
|
-
const a = t, i = e, l = (
|
|
3107
|
-
a("update:perPage",
|
|
3108
|
-
},
|
|
3109
|
-
const
|
|
3110
|
-
return `${
|
|
3168
|
+
const a = t, i = e, l = (o) => {
|
|
3169
|
+
a("update:perPage", o.value);
|
|
3170
|
+
}, n = T(() => {
|
|
3171
|
+
const o = Math.ceil(i.total / i.perPage);
|
|
3172
|
+
return `${o} ${Q(o, "page")}`;
|
|
3111
3173
|
});
|
|
3112
|
-
return (
|
|
3113
|
-
s[2] || (s[2] =
|
|
3114
|
-
m("div",
|
|
3174
|
+
return (o, s) => (d(), v("div", ga, [
|
|
3175
|
+
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3176
|
+
m("div", ba, [
|
|
3115
3177
|
h(u(ae), {
|
|
3116
3178
|
options: i.pageSizes,
|
|
3117
3179
|
"model-value": i.perPage,
|
|
@@ -3119,16 +3181,16 @@ const ua = {
|
|
|
3119
3181
|
onChange: s[0] || (s[0] = (p) => l(p))
|
|
3120
3182
|
}, null, 8, ["options", "model-value"])
|
|
3121
3183
|
]),
|
|
3122
|
-
i.total ? (
|
|
3184
|
+
i.total ? (d(), v("div", ya, [
|
|
3123
3185
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3124
|
-
m("span",
|
|
3125
|
-
])) :
|
|
3186
|
+
m("span", xa, B(i.total) + " " + B(u(Q)(i.total, "result")) + " across " + B(n.value), 1)
|
|
3187
|
+
])) : C("", !0)
|
|
3126
3188
|
]));
|
|
3127
3189
|
}
|
|
3128
|
-
}),
|
|
3190
|
+
}), ha = { class: "position-relative" }, wa = { "data-cy": "above-table-slot" }, ka = { class: "d-flex w-100" }, $a = {
|
|
3129
3191
|
class: "mx-auto",
|
|
3130
3192
|
"data-cy": "empty-message"
|
|
3131
|
-
},
|
|
3193
|
+
}, Ba = { class: "d-flex" }, Fa = { class: "d-flex align-items-end mb-2" }, Sa = { key: 0 }, Ca = { class: "ms-auto" }, ul = /* @__PURE__ */ S({
|
|
3132
3194
|
__name: "ForgeTable",
|
|
3133
3195
|
props: {
|
|
3134
3196
|
value: {},
|
|
@@ -3214,17 +3276,17 @@ const ua = {
|
|
|
3214
3276
|
},
|
|
3215
3277
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3216
3278
|
setup(e, { emit: t }) {
|
|
3217
|
-
const a = t, i = e, l =
|
|
3279
|
+
const a = t, i = e, l = P(), n = P([5, 10, 20, 50, 100]), o = P(10), s = P({
|
|
3218
3280
|
filters: i.filters,
|
|
3219
|
-
perPage:
|
|
3281
|
+
perPage: o.value,
|
|
3220
3282
|
page: 0,
|
|
3221
3283
|
sortDirection: "None",
|
|
3222
3284
|
sortField: "",
|
|
3223
3285
|
total: i.totalRecords ?? i.value.length
|
|
3224
3286
|
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3225
|
-
const
|
|
3226
|
-
return `${
|
|
3227
|
-
}),
|
|
3287
|
+
const x = Math.ceil(p.value / o.value);
|
|
3288
|
+
return `${x} ${Q(x, "page")}`;
|
|
3289
|
+
}), y = T(() => ({
|
|
3228
3290
|
thead: () => ({
|
|
3229
3291
|
class: [
|
|
3230
3292
|
{
|
|
@@ -3240,160 +3302,428 @@ const ua = {
|
|
|
3240
3302
|
"text-brand": i.severity === "brand",
|
|
3241
3303
|
"text-primary": i.severity === "primary",
|
|
3242
3304
|
"text-success": i.severity === "success",
|
|
3305
|
+
"text-success-alternate": i.severity === "success-alternate",
|
|
3243
3306
|
"text-warning": i.severity === "warning",
|
|
3244
3307
|
"text-danger": i.severity === "danger",
|
|
3245
3308
|
"text-info": i.severity === "info"
|
|
3246
3309
|
}
|
|
3247
3310
|
]
|
|
3248
3311
|
})
|
|
3249
|
-
})),
|
|
3312
|
+
})), r = () => {
|
|
3250
3313
|
if (i.clearAll)
|
|
3251
3314
|
i.clearAll();
|
|
3252
3315
|
else
|
|
3253
|
-
for (const
|
|
3254
|
-
typeof i.filters[
|
|
3255
|
-
|
|
3256
|
-
},
|
|
3316
|
+
for (const x in i.filters)
|
|
3317
|
+
typeof i.filters[x] == "string" ? i.filters[x] = "" : i.filters[x].value = null;
|
|
3318
|
+
D(i.filters);
|
|
3319
|
+
}, $ = () => {
|
|
3257
3320
|
l.value.exportCSV();
|
|
3258
|
-
},
|
|
3259
|
-
var
|
|
3260
|
-
s.value.sortDirection =
|
|
3261
|
-
},
|
|
3262
|
-
s.value.filters =
|
|
3263
|
-
},
|
|
3264
|
-
s.value.page =
|
|
3265
|
-
},
|
|
3266
|
-
s.value.perPage =
|
|
3321
|
+
}, z = (x) => {
|
|
3322
|
+
var w;
|
|
3323
|
+
s.value.sortDirection = x.sortOrder === 1 ? "Asc" : x.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((w = x.sortField) == null ? void 0 : w.toString()) ?? "", a("update:tableContext", s.value), a("sort", x);
|
|
3324
|
+
}, D = (x) => {
|
|
3325
|
+
s.value.filters = x, a("update:tableContext", s.value), a("update:filters", x);
|
|
3326
|
+
}, O = (x) => {
|
|
3327
|
+
s.value.page = x.page, a("update:tableContext", s.value), a("page", x);
|
|
3328
|
+
}, A = () => {
|
|
3329
|
+
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3267
3330
|
};
|
|
3268
|
-
return
|
|
3269
|
-
s.value.filters =
|
|
3270
|
-
}, { deep: !0 }),
|
|
3271
|
-
m("span",
|
|
3272
|
-
k(
|
|
3331
|
+
return le(() => i.filters, (x) => {
|
|
3332
|
+
s.value.filters = x, a("update:tableContext", s.value);
|
|
3333
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (x, w) => (d(), v("div", ha, [
|
|
3334
|
+
m("span", wa, [
|
|
3335
|
+
k(x.$slots, "above-table")
|
|
3273
3336
|
]),
|
|
3274
|
-
h(u(
|
|
3337
|
+
h(u(We), j({
|
|
3275
3338
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3276
|
-
}, { ...i, ...
|
|
3277
|
-
pt:
|
|
3278
|
-
rows:
|
|
3339
|
+
}, { ...i, ...x.$attrs }, {
|
|
3340
|
+
pt: y.value,
|
|
3341
|
+
rows: o.value,
|
|
3279
3342
|
"total-records": p.value,
|
|
3280
3343
|
"filter-display": i.filters ? "row" : void 0,
|
|
3281
3344
|
ref_key: "forgeTable",
|
|
3282
3345
|
ref: l,
|
|
3283
3346
|
"data-cy": "table",
|
|
3284
|
-
"onUpdate:filters":
|
|
3285
|
-
onSort:
|
|
3286
|
-
onPage:
|
|
3347
|
+
"onUpdate:filters": D,
|
|
3348
|
+
onSort: z,
|
|
3349
|
+
onPage: O,
|
|
3287
3350
|
showHeaders: ""
|
|
3288
|
-
}),
|
|
3289
|
-
empty:
|
|
3290
|
-
m("div",
|
|
3291
|
-
m("h5",
|
|
3351
|
+
}), te({
|
|
3352
|
+
empty: g(() => [
|
|
3353
|
+
m("div", ka, [
|
|
3354
|
+
m("h5", $a, B(x.emptyMessage ?? "No items Found."), 1)
|
|
3292
3355
|
])
|
|
3293
3356
|
]),
|
|
3294
|
-
header:
|
|
3357
|
+
header: g(() => [
|
|
3295
3358
|
m("div", {
|
|
3296
|
-
class:
|
|
3359
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3297
3360
|
}, [
|
|
3298
|
-
m("div",
|
|
3299
|
-
m("div",
|
|
3300
|
-
|
|
3301
|
-
h(
|
|
3361
|
+
m("div", Ba, [
|
|
3362
|
+
m("div", Fa, [
|
|
3363
|
+
x.paginator && !x.legacyPaginationFooter ? (d(), v("span", Sa, [
|
|
3364
|
+
h(he, {
|
|
3302
3365
|
total: p.value,
|
|
3303
|
-
"page-sizes":
|
|
3304
|
-
"per-page":
|
|
3366
|
+
"page-sizes": n.value,
|
|
3367
|
+
"per-page": o.value,
|
|
3305
3368
|
"onUpdate:perPage": [
|
|
3306
|
-
|
|
3307
|
-
|
|
3369
|
+
w[0] || (w[0] = (_) => o.value = _),
|
|
3370
|
+
A
|
|
3308
3371
|
]
|
|
3309
3372
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3310
|
-
])) :
|
|
3373
|
+
])) : C("", !0)
|
|
3311
3374
|
]),
|
|
3312
|
-
m("div",
|
|
3313
|
-
|
|
3375
|
+
m("div", Ca, [
|
|
3376
|
+
x.showClearButton ? (d(), b(u(q), {
|
|
3314
3377
|
key: 0,
|
|
3315
3378
|
outlined: "",
|
|
3316
|
-
class:
|
|
3317
|
-
onClick:
|
|
3379
|
+
class: F(x.showExporterButton ? "me-2" : ""),
|
|
3380
|
+
onClick: r,
|
|
3318
3381
|
"data-cy": "clear-all"
|
|
3319
3382
|
}, {
|
|
3320
|
-
default:
|
|
3321
|
-
h(u(
|
|
3383
|
+
default: g(() => [
|
|
3384
|
+
h(u(I), {
|
|
3322
3385
|
icon: "bi:funnel-fill",
|
|
3323
3386
|
width: "24",
|
|
3324
3387
|
height: "24"
|
|
3325
3388
|
}),
|
|
3326
|
-
|
|
3389
|
+
w[2] || (w[2] = M(" Clear "))
|
|
3327
3390
|
]),
|
|
3328
3391
|
_: 1
|
|
3329
|
-
}, 8, ["class"])) :
|
|
3330
|
-
|
|
3392
|
+
}, 8, ["class"])) : C("", !0),
|
|
3393
|
+
x.showExporterButton ? (d(), b(u(q), {
|
|
3331
3394
|
key: 1,
|
|
3332
3395
|
outlined: "",
|
|
3333
|
-
onClick:
|
|
3396
|
+
onClick: $,
|
|
3334
3397
|
"data-cy": "exporter"
|
|
3335
3398
|
}, {
|
|
3336
|
-
default:
|
|
3337
|
-
h(u(
|
|
3399
|
+
default: g(() => [
|
|
3400
|
+
h(u(I), {
|
|
3338
3401
|
icon: "typcn:export",
|
|
3339
3402
|
width: "24",
|
|
3340
3403
|
height: "24"
|
|
3341
3404
|
}),
|
|
3342
|
-
|
|
3405
|
+
w[3] || (w[3] = M(" Export "))
|
|
3343
3406
|
]),
|
|
3344
3407
|
_: 1
|
|
3345
|
-
})) :
|
|
3346
|
-
k(
|
|
3408
|
+
})) : C("", !0),
|
|
3409
|
+
k(x.$slots, "column-customiser")
|
|
3347
3410
|
])
|
|
3348
3411
|
])
|
|
3349
3412
|
], 2)
|
|
3350
3413
|
]),
|
|
3351
|
-
default:
|
|
3352
|
-
k(
|
|
3414
|
+
default: g(() => [
|
|
3415
|
+
k(x.$slots, "default")
|
|
3353
3416
|
]),
|
|
3354
3417
|
_: 2
|
|
3355
3418
|
}, [
|
|
3356
|
-
|
|
3357
|
-
name:
|
|
3358
|
-
fn:
|
|
3359
|
-
k(
|
|
3419
|
+
U(x.$slots, (_, f) => ({
|
|
3420
|
+
name: f,
|
|
3421
|
+
fn: g((V) => [
|
|
3422
|
+
k(x.$slots, f, W(G(V || {})))
|
|
3360
3423
|
])
|
|
3361
3424
|
})),
|
|
3362
|
-
|
|
3425
|
+
x.legacyPaginationFooter ? {
|
|
3363
3426
|
name: "paginatorstart",
|
|
3364
|
-
fn:
|
|
3427
|
+
fn: g(() => [
|
|
3365
3428
|
m("span", {
|
|
3366
|
-
class:
|
|
3429
|
+
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3367
3430
|
"data-cy": "legacy-page-size"
|
|
3368
3431
|
}, [
|
|
3369
|
-
|
|
3432
|
+
w[4] || (w[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3370
3433
|
h(u(ae), {
|
|
3371
|
-
options:
|
|
3372
|
-
modelValue:
|
|
3373
|
-
"onUpdate:modelValue":
|
|
3434
|
+
options: n.value,
|
|
3435
|
+
modelValue: o.value,
|
|
3436
|
+
"onUpdate:modelValue": w[1] || (w[1] = (_) => o.value = _),
|
|
3374
3437
|
class: "ms-2",
|
|
3375
|
-
onClick:
|
|
3438
|
+
onClick: A
|
|
3376
3439
|
}, null, 8, ["options", "modelValue"])
|
|
3377
3440
|
], 2)
|
|
3378
3441
|
]),
|
|
3379
3442
|
key: "0"
|
|
3380
3443
|
} : void 0,
|
|
3381
|
-
|
|
3444
|
+
x.legacyPaginationFooter ? {
|
|
3382
3445
|
name: "paginatorend",
|
|
3383
|
-
fn:
|
|
3446
|
+
fn: g(() => [
|
|
3384
3447
|
m("span", {
|
|
3385
3448
|
"data-cy": "legacy-total",
|
|
3386
|
-
class:
|
|
3387
|
-
},
|
|
3449
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3450
|
+
}, B(p.value) + " " + B(u(Q)(p.value, "result")) + " across " + B(c.value), 3)
|
|
3388
3451
|
]),
|
|
3389
3452
|
key: "1"
|
|
3390
3453
|
} : void 0
|
|
3391
3454
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3392
3455
|
]));
|
|
3393
3456
|
}
|
|
3394
|
-
}),
|
|
3457
|
+
}), za = { class: "position-relative" }, Ta = { "data-cy": "above-table-slot" }, ja = { class: "d-flex" }, Ia = { class: "d-flex align-items-end mb-2" }, Pa = { key: 0 }, _a = { class: "ms-auto" }, ml = /* @__PURE__ */ S({
|
|
3458
|
+
__name: "ForgeTreeTable",
|
|
3459
|
+
props: {
|
|
3460
|
+
stripedRows: { type: Boolean, default: !1 },
|
|
3461
|
+
parentExpanderFullRow: { type: Boolean, default: !1 },
|
|
3462
|
+
totalColumns: { default: 1 },
|
|
3463
|
+
severity: {},
|
|
3464
|
+
value: {},
|
|
3465
|
+
legacyPaginationFooter: { type: Boolean, default: !1 },
|
|
3466
|
+
showClearButton: { type: Boolean, default: !1 },
|
|
3467
|
+
clearAll: {},
|
|
3468
|
+
emptyMessage: {},
|
|
3469
|
+
dataKey: {},
|
|
3470
|
+
expandedKeys: {},
|
|
3471
|
+
selectionKeys: {},
|
|
3472
|
+
selectionMode: {},
|
|
3473
|
+
metaKeySelection: { type: Boolean },
|
|
3474
|
+
contextMenu: { type: Boolean },
|
|
3475
|
+
contextMenuSelection: {},
|
|
3476
|
+
rows: {},
|
|
3477
|
+
first: {},
|
|
3478
|
+
totalRecords: {},
|
|
3479
|
+
paginator: { type: Boolean, default: !0 },
|
|
3480
|
+
paginatorPosition: {},
|
|
3481
|
+
alwaysShowPaginator: { type: Boolean, default: !0 },
|
|
3482
|
+
paginatorTemplate: {},
|
|
3483
|
+
pageLinkSize: {},
|
|
3484
|
+
rowsPerPageOptions: {},
|
|
3485
|
+
currentPageReportTemplate: {},
|
|
3486
|
+
lazy: { type: Boolean },
|
|
3487
|
+
loading: { type: Boolean },
|
|
3488
|
+
loadingIcon: {},
|
|
3489
|
+
loadingMode: {},
|
|
3490
|
+
rowHover: { type: Boolean },
|
|
3491
|
+
autoLayout: { type: Boolean },
|
|
3492
|
+
sortField: {},
|
|
3493
|
+
sortOrder: {},
|
|
3494
|
+
defaultSortOrder: {},
|
|
3495
|
+
multiSortMeta: {},
|
|
3496
|
+
sortMode: {},
|
|
3497
|
+
removableSort: { type: Boolean },
|
|
3498
|
+
filters: {},
|
|
3499
|
+
filterMode: {},
|
|
3500
|
+
filterLocale: {},
|
|
3501
|
+
resizableColumns: { type: Boolean },
|
|
3502
|
+
columnResizeMode: {},
|
|
3503
|
+
indentation: {},
|
|
3504
|
+
showGridlines: { type: Boolean },
|
|
3505
|
+
scrollable: { type: Boolean },
|
|
3506
|
+
scrollHeight: {},
|
|
3507
|
+
size: {},
|
|
3508
|
+
tableStyle: {},
|
|
3509
|
+
tableClass: {},
|
|
3510
|
+
tableProps: {},
|
|
3511
|
+
dt: {},
|
|
3512
|
+
pt: {},
|
|
3513
|
+
ptOptions: {},
|
|
3514
|
+
unstyled: { type: Boolean }
|
|
3515
|
+
},
|
|
3516
|
+
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3517
|
+
setup(e, { emit: t }) {
|
|
3518
|
+
const a = e, i = t, l = P([5, 10, 20, 50, 100]), n = P(10), o = P(0), s = P(0), p = P({
|
|
3519
|
+
filters: a.filters,
|
|
3520
|
+
perPage: n.value,
|
|
3521
|
+
page: 0,
|
|
3522
|
+
sortDirection: "None",
|
|
3523
|
+
sortField: "",
|
|
3524
|
+
total: a.totalRecords ?? a.value.length
|
|
3525
|
+
}), c = T(() => a.totalRecords ?? a.value.length), y = T(() => {
|
|
3526
|
+
const f = Math.ceil(c.value / n.value);
|
|
3527
|
+
return `${f} ${Q(f, "page")}`;
|
|
3528
|
+
}), r = T(() => ({
|
|
3529
|
+
root: "position-relative",
|
|
3530
|
+
table: (f) => ({
|
|
3531
|
+
class: [
|
|
3532
|
+
"table position-relative",
|
|
3533
|
+
{
|
|
3534
|
+
"table-striped": f.attrs.stripedRows,
|
|
3535
|
+
"table-hover": f.props.rowHover,
|
|
3536
|
+
"table-bordered": f.props.showGridlines,
|
|
3537
|
+
"table-sm": f.props.size === "small",
|
|
3538
|
+
"table-lg": f.props.size === "large",
|
|
3539
|
+
"opacity-50": f.props.loading
|
|
3540
|
+
}
|
|
3541
|
+
]
|
|
3542
|
+
}),
|
|
3543
|
+
loadingIcon: () => ({
|
|
3544
|
+
class: [
|
|
3545
|
+
"spinner-border border-0",
|
|
3546
|
+
{
|
|
3547
|
+
"text-brand": a.severity === "brand",
|
|
3548
|
+
"text-primary": a.severity === "primary",
|
|
3549
|
+
"text-success": a.severity === "success",
|
|
3550
|
+
"text-success-alternate": a.severity === "success-alternate",
|
|
3551
|
+
"text-warning": a.severity === "warning",
|
|
3552
|
+
"text-danger": a.severity === "danger",
|
|
3553
|
+
"text-info": a.severity === "info"
|
|
3554
|
+
}
|
|
3555
|
+
]
|
|
3556
|
+
}),
|
|
3557
|
+
row: ({ instance: f }) => [
|
|
3558
|
+
{
|
|
3559
|
+
"parent-node": f.node.hasOwnProperty("children")
|
|
3560
|
+
}
|
|
3561
|
+
]
|
|
3562
|
+
}));
|
|
3563
|
+
le(() => a.parentExpanderFullRow, (f) => {
|
|
3564
|
+
f ? $() : z();
|
|
3565
|
+
});
|
|
3566
|
+
const $ = () => {
|
|
3567
|
+
a.parentExpanderFullRow && setTimeout(
|
|
3568
|
+
() => {
|
|
3569
|
+
const f = Array.from(
|
|
3570
|
+
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3571
|
+
);
|
|
3572
|
+
Array.from(
|
|
3573
|
+
document.querySelectorAll(".parent-node td")
|
|
3574
|
+
).forEach((L) => {
|
|
3575
|
+
L.classList.add("d-none");
|
|
3576
|
+
}), f.forEach((L) => {
|
|
3577
|
+
L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
|
|
3578
|
+
});
|
|
3579
|
+
},
|
|
3580
|
+
0
|
|
3581
|
+
);
|
|
3582
|
+
}, z = () => {
|
|
3583
|
+
setTimeout(
|
|
3584
|
+
() => {
|
|
3585
|
+
const f = Array.from(
|
|
3586
|
+
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3587
|
+
), V = Array.from(
|
|
3588
|
+
document.querySelectorAll(".parent-node td")
|
|
3589
|
+
);
|
|
3590
|
+
f.forEach((L) => {
|
|
3591
|
+
L.removeAttribute("colspan");
|
|
3592
|
+
}), V.forEach((L) => {
|
|
3593
|
+
L.classList.remove("d-none");
|
|
3594
|
+
});
|
|
3595
|
+
},
|
|
3596
|
+
0
|
|
3597
|
+
);
|
|
3598
|
+
}, D = () => {
|
|
3599
|
+
if (a.clearAll)
|
|
3600
|
+
a.clearAll();
|
|
3601
|
+
else
|
|
3602
|
+
for (const f in a.filters)
|
|
3603
|
+
typeof a.filters[f] == "string" ? a.filters[f] = "" : a.filters[f].value = null;
|
|
3604
|
+
A(a.filters);
|
|
3605
|
+
}, O = (f) => {
|
|
3606
|
+
var V;
|
|
3607
|
+
p.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = f.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", f), $();
|
|
3608
|
+
}, A = (f) => {
|
|
3609
|
+
p.value.filters = f, i("update:tableContext", p.value), i("update:filters", f), $();
|
|
3610
|
+
}, x = (f) => {
|
|
3611
|
+
p.value.page = s.value = f.page, _(), i("update:tableContext", p.value), i("page", f), $();
|
|
3612
|
+
}, w = () => {
|
|
3613
|
+
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), _(), i("update:tableContext", p.value), $();
|
|
3614
|
+
};
|
|
3615
|
+
le(() => a.filters, (f) => {
|
|
3616
|
+
p.value.filters = f, i("update:tableContext", p.value);
|
|
3617
|
+
}, { deep: !0 }), ne(() => {
|
|
3618
|
+
$(), i("update:tableContext", p.value);
|
|
3619
|
+
});
|
|
3620
|
+
const _ = () => {
|
|
3621
|
+
o.value = s.value * n.value;
|
|
3622
|
+
};
|
|
3623
|
+
return (f, V) => (d(), v("div", za, [
|
|
3624
|
+
m("span", Ta, [
|
|
3625
|
+
k(f.$slots, "above-table")
|
|
3626
|
+
]),
|
|
3627
|
+
h(u(Ge), j({
|
|
3628
|
+
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3629
|
+
}, { ...a, ...f.$attrs }, {
|
|
3630
|
+
pt: r.value,
|
|
3631
|
+
"filter-display": a.filters ? "row" : void 0,
|
|
3632
|
+
rows: f.paginator ? n.value : void 0,
|
|
3633
|
+
"data-cy": "tree-table",
|
|
3634
|
+
"onUpdate:filters": A,
|
|
3635
|
+
onSort: O,
|
|
3636
|
+
onPage: x,
|
|
3637
|
+
onNodeExpand: V[2] || (V[2] = () => $()),
|
|
3638
|
+
showHeaders: "",
|
|
3639
|
+
first: o.value
|
|
3640
|
+
}), te({
|
|
3641
|
+
header: g(() => [
|
|
3642
|
+
m("div", {
|
|
3643
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
3644
|
+
}, [
|
|
3645
|
+
m("div", ja, [
|
|
3646
|
+
m("div", Ia, [
|
|
3647
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), v("span", Pa, [
|
|
3648
|
+
h(he, {
|
|
3649
|
+
total: c.value,
|
|
3650
|
+
"page-sizes": l.value,
|
|
3651
|
+
"per-page": n.value,
|
|
3652
|
+
"onUpdate:perPage": [
|
|
3653
|
+
V[0] || (V[0] = (L) => n.value = L),
|
|
3654
|
+
w
|
|
3655
|
+
]
|
|
3656
|
+
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3657
|
+
])) : C("", !0)
|
|
3658
|
+
]),
|
|
3659
|
+
m("div", _a, [
|
|
3660
|
+
f.showClearButton ? (d(), b(u(q), {
|
|
3661
|
+
key: 0,
|
|
3662
|
+
outlined: "",
|
|
3663
|
+
onClick: D,
|
|
3664
|
+
"data-cy": "clear-all"
|
|
3665
|
+
}, {
|
|
3666
|
+
default: g(() => [
|
|
3667
|
+
h(u(I), {
|
|
3668
|
+
icon: "bi:funnel-fill",
|
|
3669
|
+
width: "24",
|
|
3670
|
+
height: "24"
|
|
3671
|
+
}),
|
|
3672
|
+
V[3] || (V[3] = M(" Clear "))
|
|
3673
|
+
]),
|
|
3674
|
+
_: 1
|
|
3675
|
+
})) : C("", !0),
|
|
3676
|
+
k(f.$slots, "column-customiser")
|
|
3677
|
+
])
|
|
3678
|
+
])
|
|
3679
|
+
], 2)
|
|
3680
|
+
]),
|
|
3681
|
+
default: g(() => [
|
|
3682
|
+
k(f.$slots, "default")
|
|
3683
|
+
]),
|
|
3684
|
+
_: 2
|
|
3685
|
+
}, [
|
|
3686
|
+
U(f.$slots, (L, ve) => ({
|
|
3687
|
+
name: ve,
|
|
3688
|
+
fn: g(($e) => [
|
|
3689
|
+
k(f.$slots, ve, W(G($e || {})))
|
|
3690
|
+
])
|
|
3691
|
+
})),
|
|
3692
|
+
f.legacyPaginationFooter ? {
|
|
3693
|
+
name: "paginatorstart",
|
|
3694
|
+
fn: g(() => [
|
|
3695
|
+
m("span", {
|
|
3696
|
+
class: F(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3697
|
+
"data-cy": "legacy-page-size"
|
|
3698
|
+
}, [
|
|
3699
|
+
V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3700
|
+
h(u(ae), {
|
|
3701
|
+
options: l.value,
|
|
3702
|
+
modelValue: n.value,
|
|
3703
|
+
"onUpdate:modelValue": V[1] || (V[1] = (L) => n.value = L),
|
|
3704
|
+
class: "ms-2",
|
|
3705
|
+
onClick: w
|
|
3706
|
+
}, null, 8, ["options", "modelValue"])
|
|
3707
|
+
], 2)
|
|
3708
|
+
]),
|
|
3709
|
+
key: "0"
|
|
3710
|
+
} : void 0,
|
|
3711
|
+
f.legacyPaginationFooter ? {
|
|
3712
|
+
name: "paginatorend",
|
|
3713
|
+
fn: g(() => [
|
|
3714
|
+
m("span", {
|
|
3715
|
+
"data-cy": "legacy-total",
|
|
3716
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
3717
|
+
}, B(c.value) + " " + B(u(Q)(c.value, "result")) + " across " + B(y.value), 3)
|
|
3718
|
+
]),
|
|
3719
|
+
key: "1"
|
|
3720
|
+
} : void 0
|
|
3721
|
+
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3722
|
+
]));
|
|
3723
|
+
}
|
|
3724
|
+
}), Ma = { class: "d-flex position-relative" }, Va = { class: "d-flex w-100" }, vl = /* @__PURE__ */ S({
|
|
3395
3725
|
__name: "ForgeFilterHeader",
|
|
3396
|
-
props: /* @__PURE__ */
|
|
3726
|
+
props: /* @__PURE__ */ R({
|
|
3397
3727
|
dataType: {},
|
|
3398
3728
|
dropdownOptions: {},
|
|
3399
3729
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3406,57 +3736,57 @@ const ua = {
|
|
|
3406
3736
|
}),
|
|
3407
3737
|
emits: ["update:modelValue"],
|
|
3408
3738
|
setup(e) {
|
|
3409
|
-
const t =
|
|
3739
|
+
const t = N(e, "modelValue"), a = (l, n) => {
|
|
3410
3740
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3411
|
-
return
|
|
3412
|
-
const
|
|
3741
|
+
return n;
|
|
3742
|
+
const o = (s) => {
|
|
3413
3743
|
var c;
|
|
3414
3744
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3415
|
-
(
|
|
3745
|
+
(y) => e.optionValue ? y[e.optionValue] === s : Object.keys(y).every((r) => s.hasOwnProperty(r) && y[r] === s[r])
|
|
3416
3746
|
);
|
|
3417
3747
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3418
3748
|
};
|
|
3419
|
-
return Array.isArray(l) ? l.map(
|
|
3749
|
+
return Array.isArray(l) ? l.map(o).join(", ") : o(l);
|
|
3420
3750
|
}, i = () => {
|
|
3421
3751
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3422
3752
|
};
|
|
3423
|
-
return (l,
|
|
3424
|
-
const
|
|
3425
|
-
return
|
|
3426
|
-
l.dataType === "numeric" ? (
|
|
3753
|
+
return (l, n) => {
|
|
3754
|
+
const o = fe, s = q;
|
|
3755
|
+
return d(), v("div", Ma, [
|
|
3756
|
+
l.dataType === "numeric" ? (d(), b(o, j({
|
|
3427
3757
|
key: 0,
|
|
3428
3758
|
modelValue: t.value,
|
|
3429
|
-
"onUpdate:modelValue":
|
|
3759
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3430
3760
|
modelModifiers: { trim: !0 }
|
|
3431
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (
|
|
3761
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), b(xe, j({
|
|
3432
3762
|
key: 1,
|
|
3433
3763
|
modelValue: t.value,
|
|
3434
|
-
"onUpdate:modelValue":
|
|
3764
|
+
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3435
3765
|
}, l.$attrs, {
|
|
3436
3766
|
"show-icon": !1,
|
|
3437
3767
|
"show-on-focus": !0
|
|
3438
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (
|
|
3768
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(u(ae), j({
|
|
3439
3769
|
key: 2,
|
|
3440
3770
|
modelValue: t.value,
|
|
3441
|
-
"onUpdate:modelValue":
|
|
3771
|
+
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
3442
3772
|
}, l.$attrs, {
|
|
3443
3773
|
options: l.dropdownOptions,
|
|
3444
3774
|
"option-value": l.optionValue,
|
|
3445
3775
|
"option-label": l.optionLabel
|
|
3446
3776
|
}), {
|
|
3447
|
-
value:
|
|
3448
|
-
m("div",
|
|
3777
|
+
value: g(({ value: p, placeholder: c }) => [
|
|
3778
|
+
m("div", Va, [
|
|
3449
3779
|
m("span", {
|
|
3450
|
-
class:
|
|
3451
|
-
},
|
|
3452
|
-
l.showClearButton && t.value !== null ? (
|
|
3780
|
+
class: F({ "filter-placeholder": p === null })
|
|
3781
|
+
}, B(a(p, c)), 3),
|
|
3782
|
+
l.showClearButton && t.value !== null ? (d(), b(s, {
|
|
3453
3783
|
key: 0,
|
|
3454
|
-
onClick:
|
|
3784
|
+
onClick: X(i, ["prevent"]),
|
|
3455
3785
|
size: "small",
|
|
3456
3786
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3457
3787
|
}, {
|
|
3458
|
-
default:
|
|
3459
|
-
h(u(
|
|
3788
|
+
default: g(() => [
|
|
3789
|
+
h(u(I), {
|
|
3460
3790
|
icon: "bi:x",
|
|
3461
3791
|
width: "1rem",
|
|
3462
3792
|
height: "1rem",
|
|
@@ -3464,34 +3794,34 @@ const ua = {
|
|
|
3464
3794
|
})
|
|
3465
3795
|
]),
|
|
3466
3796
|
_: 1
|
|
3467
|
-
})) :
|
|
3797
|
+
})) : C("", !0)
|
|
3468
3798
|
])
|
|
3469
3799
|
]),
|
|
3470
3800
|
_: 1
|
|
3471
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (
|
|
3801
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), b(u(re), j({
|
|
3472
3802
|
key: 3,
|
|
3473
3803
|
modelValue: t.value,
|
|
3474
|
-
"onUpdate:modelValue":
|
|
3804
|
+
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
3475
3805
|
}, l.$attrs, {
|
|
3476
3806
|
options: l.dropdownOptions,
|
|
3477
3807
|
showToggleAll: !1,
|
|
3478
3808
|
"option-label": l.optionLabel,
|
|
3479
3809
|
"option-value": l.optionValue,
|
|
3480
3810
|
filter: ""
|
|
3481
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
3811
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), b(u(se), j({
|
|
3482
3812
|
key: 4,
|
|
3483
3813
|
modelValue: t.value,
|
|
3484
|
-
"onUpdate:modelValue":
|
|
3814
|
+
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3485
3815
|
modelModifiers: { trim: !0 }
|
|
3486
3816
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3487
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (
|
|
3817
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), b(s, {
|
|
3488
3818
|
key: 5,
|
|
3489
|
-
onClick:
|
|
3819
|
+
onClick: X(i, ["prevent"]),
|
|
3490
3820
|
size: "small",
|
|
3491
3821
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3492
3822
|
}, {
|
|
3493
|
-
default:
|
|
3494
|
-
h(u(
|
|
3823
|
+
default: g(() => [
|
|
3824
|
+
h(u(I), {
|
|
3495
3825
|
icon: "bi:x",
|
|
3496
3826
|
width: "1rem",
|
|
3497
3827
|
height: "1rem",
|
|
@@ -3499,11 +3829,11 @@ const ua = {
|
|
|
3499
3829
|
})
|
|
3500
3830
|
]),
|
|
3501
3831
|
_: 1
|
|
3502
|
-
})) :
|
|
3832
|
+
})) : C("", !0)
|
|
3503
3833
|
]);
|
|
3504
3834
|
};
|
|
3505
3835
|
}
|
|
3506
|
-
}),
|
|
3836
|
+
}), ce = {
|
|
3507
3837
|
"application/prs.cww": ["cww"],
|
|
3508
3838
|
"application/prs.xsf+xml": ["xsf"],
|
|
3509
3839
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -4202,8 +4532,8 @@ const ua = {
|
|
|
4202
4532
|
"video/x-smv": ["smv"],
|
|
4203
4533
|
"x-conference/x-cooltalk": ["ice"]
|
|
4204
4534
|
};
|
|
4205
|
-
Object.freeze(
|
|
4206
|
-
const
|
|
4535
|
+
Object.freeze(ce);
|
|
4536
|
+
const ue = {
|
|
4207
4537
|
"application/andrew-inset": ["ez"],
|
|
4208
4538
|
"application/appinstaller": ["appinstaller"],
|
|
4209
4539
|
"application/applixware": ["aw"],
|
|
@@ -4555,31 +4885,31 @@ const de = {
|
|
|
4555
4885
|
"video/quicktime": ["qt", "mov"],
|
|
4556
4886
|
"video/webm": ["webm"]
|
|
4557
4887
|
};
|
|
4558
|
-
Object.freeze(
|
|
4559
|
-
var
|
|
4888
|
+
Object.freeze(ue);
|
|
4889
|
+
var H = function(e, t, a, i) {
|
|
4560
4890
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4561
4891
|
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");
|
|
4562
4892
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4563
|
-
},
|
|
4564
|
-
class
|
|
4893
|
+
}, K, ee, Y;
|
|
4894
|
+
class we {
|
|
4565
4895
|
constructor(...t) {
|
|
4566
|
-
|
|
4896
|
+
K.set(this, /* @__PURE__ */ new Map()), ee.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
|
|
4567
4897
|
for (const a of t)
|
|
4568
4898
|
this.define(a);
|
|
4569
4899
|
}
|
|
4570
4900
|
define(t, a = !1) {
|
|
4571
4901
|
for (let [i, l] of Object.entries(t)) {
|
|
4572
|
-
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()),
|
|
4573
|
-
const
|
|
4574
|
-
let
|
|
4902
|
+
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
|
|
4903
|
+
const n = H(this, Y, "f").get(i);
|
|
4904
|
+
let o = !0;
|
|
4575
4905
|
for (let s of l) {
|
|
4576
4906
|
const p = s.startsWith("*");
|
|
4577
|
-
if (s = p ? s.slice(1) : s,
|
|
4907
|
+
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this, ee, "f").set(i, s), o = !1, p)
|
|
4578
4908
|
continue;
|
|
4579
|
-
const c =
|
|
4909
|
+
const c = H(this, K, "f").get(s);
|
|
4580
4910
|
if (c && c != i && !a)
|
|
4581
4911
|
throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
4582
|
-
|
|
4912
|
+
H(this, K, "f").set(s, i);
|
|
4583
4913
|
}
|
|
4584
4914
|
}
|
|
4585
4915
|
return this;
|
|
@@ -4588,48 +4918,48 @@ class ye {
|
|
|
4588
4918
|
if (typeof t != "string")
|
|
4589
4919
|
return null;
|
|
4590
4920
|
const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
|
|
4591
|
-
return !(i.length < a.length - 1) && l ? null :
|
|
4921
|
+
return !(i.length < a.length - 1) && l ? null : H(this, K, "f").get(i) ?? null;
|
|
4592
4922
|
}
|
|
4593
4923
|
getExtension(t) {
|
|
4594
4924
|
var a;
|
|
4595
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t &&
|
|
4925
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, ee, "f").get(t.trim().toLowerCase())) ?? null);
|
|
4596
4926
|
}
|
|
4597
4927
|
getAllExtensions(t) {
|
|
4598
|
-
return typeof t != "string" ? null :
|
|
4928
|
+
return typeof t != "string" ? null : H(this, Y, "f").get(t.toLowerCase()) ?? null;
|
|
4599
4929
|
}
|
|
4600
4930
|
_freeze() {
|
|
4601
4931
|
this.define = () => {
|
|
4602
4932
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
4603
4933
|
}, Object.freeze(this);
|
|
4604
|
-
for (const t of
|
|
4934
|
+
for (const t of H(this, Y, "f").values())
|
|
4605
4935
|
Object.freeze(t);
|
|
4606
4936
|
return this;
|
|
4607
4937
|
}
|
|
4608
4938
|
_getTestState() {
|
|
4609
4939
|
return {
|
|
4610
|
-
types:
|
|
4611
|
-
extensions:
|
|
4940
|
+
types: H(this, K, "f"),
|
|
4941
|
+
extensions: H(this, ee, "f")
|
|
4612
4942
|
};
|
|
4613
4943
|
}
|
|
4614
4944
|
}
|
|
4615
|
-
|
|
4616
|
-
const
|
|
4617
|
-
function
|
|
4618
|
-
const l = t.flatMap((
|
|
4619
|
-
return t = t.map((
|
|
4620
|
-
const
|
|
4945
|
+
K = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
4946
|
+
const Da = new we(ue, ce)._freeze();
|
|
4947
|
+
function ke(e, t, a, i) {
|
|
4948
|
+
const l = t.flatMap((n) => n.file);
|
|
4949
|
+
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
4950
|
+
const o = l.findIndex((p) => p.name === n.name);
|
|
4621
4951
|
let s = "Not Uploaded";
|
|
4622
|
-
|
|
4623
|
-
file:
|
|
4952
|
+
o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (s = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4953
|
+
file: n,
|
|
4624
4954
|
status: s,
|
|
4625
4955
|
blobFileName: null
|
|
4626
|
-
})) : t[
|
|
4956
|
+
})) : t[o].status = "Duplicate";
|
|
4627
4957
|
}), t;
|
|
4628
4958
|
}
|
|
4629
|
-
async function
|
|
4959
|
+
async function Oa(e, t) {
|
|
4630
4960
|
if (e === "Uploaded" && t !== null)
|
|
4631
4961
|
try {
|
|
4632
|
-
await new
|
|
4962
|
+
await new ge(t).delete();
|
|
4633
4963
|
} catch (a) {
|
|
4634
4964
|
if (a !== "BlobNotFound") {
|
|
4635
4965
|
e = "DeleteFileFailed";
|
|
@@ -4637,34 +4967,34 @@ async function za(e, t) {
|
|
|
4637
4967
|
}
|
|
4638
4968
|
}
|
|
4639
4969
|
}
|
|
4640
|
-
function
|
|
4970
|
+
function me(e, t = !0, a = 1) {
|
|
4641
4971
|
const i = t ? 1e3 : 1024;
|
|
4642
4972
|
if (Math.abs(e) < i)
|
|
4643
4973
|
return e + " B";
|
|
4644
4974
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
4645
|
-
let
|
|
4646
|
-
const
|
|
4975
|
+
let n = -1;
|
|
4976
|
+
const o = 10 ** a;
|
|
4647
4977
|
do
|
|
4648
|
-
e /= i, ++
|
|
4649
|
-
while (Math.round(Math.abs(e) *
|
|
4650
|
-
return e.toFixed(a) + " " + l[
|
|
4978
|
+
e /= i, ++n;
|
|
4979
|
+
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4980
|
+
return e.toFixed(a) + " " + l[n];
|
|
4651
4981
|
}
|
|
4652
|
-
function
|
|
4982
|
+
function Na(e) {
|
|
4653
4983
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4654
4984
|
}
|
|
4655
|
-
function
|
|
4985
|
+
function Aa(e) {
|
|
4656
4986
|
return URL.createObjectURL(e);
|
|
4657
4987
|
}
|
|
4658
|
-
function
|
|
4659
|
-
const e = new
|
|
4988
|
+
function Ea() {
|
|
4989
|
+
const e = new we(ue, ce);
|
|
4660
4990
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4661
4991
|
}
|
|
4662
|
-
const
|
|
4992
|
+
const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disabled", "multiple"], La = {
|
|
4663
4993
|
class: "text-break accepted-file-types-container",
|
|
4664
4994
|
id: "accepted-file-types-overlay"
|
|
4665
|
-
},
|
|
4995
|
+
}, Ra = /* @__PURE__ */ S({
|
|
4666
4996
|
__name: "UploadButton",
|
|
4667
|
-
props: /* @__PURE__ */
|
|
4997
|
+
props: /* @__PURE__ */ R({
|
|
4668
4998
|
acceptedFileTypes: {},
|
|
4669
4999
|
maxFileInput: {},
|
|
4670
5000
|
showDragDropArea: { type: Boolean }
|
|
@@ -4674,73 +5004,73 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4674
5004
|
}),
|
|
4675
5005
|
emits: ["update:modelValue"],
|
|
4676
5006
|
setup(e) {
|
|
4677
|
-
const t =
|
|
4678
|
-
t.value =
|
|
5007
|
+
const t = N(e, "modelValue"), a = P(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
5008
|
+
t.value = ke(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4679
5009
|
};
|
|
4680
|
-
return (
|
|
4681
|
-
const p =
|
|
4682
|
-
return
|
|
4683
|
-
k(
|
|
5010
|
+
return (o, s) => {
|
|
5011
|
+
const p = q;
|
|
5012
|
+
return d(), v("div", Ua, [
|
|
5013
|
+
k(o.$slots, "message"),
|
|
4684
5014
|
m("div", null, [
|
|
4685
5015
|
m("input", {
|
|
4686
5016
|
id: "file-input",
|
|
4687
5017
|
type: "file",
|
|
4688
5018
|
class: "d-none",
|
|
4689
|
-
accept:
|
|
5019
|
+
accept: o.acceptedFileTypes.join(", "),
|
|
4690
5020
|
disabled: l.value,
|
|
4691
|
-
multiple:
|
|
4692
|
-
onInput: s[0] || (s[0] = (c) =>
|
|
4693
|
-
}, null, 40,
|
|
5021
|
+
multiple: o.maxFileInput > 1,
|
|
5022
|
+
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
5023
|
+
}, null, 40, qa),
|
|
4694
5024
|
m("label", {
|
|
4695
|
-
class:
|
|
5025
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
4696
5026
|
id: "file-input-button",
|
|
4697
5027
|
for: "file-input"
|
|
4698
5028
|
}, [
|
|
4699
|
-
k(
|
|
4700
|
-
h(u(
|
|
5029
|
+
k(o.$slots, "button-content", {}, () => [
|
|
5030
|
+
h(u(I), {
|
|
4701
5031
|
icon: "bi:upload",
|
|
4702
5032
|
class: "me-2",
|
|
4703
5033
|
height: "20px",
|
|
4704
5034
|
width: "20px"
|
|
4705
5035
|
}),
|
|
4706
|
-
s[1] || (s[1] =
|
|
5036
|
+
s[1] || (s[1] = M(" Browse your computer "))
|
|
4707
5037
|
])
|
|
4708
5038
|
], 2)
|
|
4709
5039
|
]),
|
|
4710
|
-
|
|
5040
|
+
o.showDragDropArea ? (d(), b(p, {
|
|
4711
5041
|
link: "",
|
|
4712
5042
|
class: "ms-auto",
|
|
4713
|
-
key:
|
|
5043
|
+
key: o.acceptedFileTypes.length,
|
|
4714
5044
|
id: "accepted-file-types",
|
|
4715
5045
|
onClick: i
|
|
4716
5046
|
}, {
|
|
4717
|
-
default:
|
|
4718
|
-
|
|
5047
|
+
default: g(() => s[2] || (s[2] = [
|
|
5048
|
+
M("Accepted File Types")
|
|
4719
5049
|
])),
|
|
4720
5050
|
_: 1
|
|
4721
|
-
})) :
|
|
4722
|
-
h(u(
|
|
5051
|
+
})) : C("", !0),
|
|
5052
|
+
h(u(be), {
|
|
4723
5053
|
ref_key: "acceptedFilesOverlay",
|
|
4724
5054
|
ref: a
|
|
4725
5055
|
}, {
|
|
4726
|
-
default:
|
|
4727
|
-
m("div",
|
|
5056
|
+
default: g(() => [
|
|
5057
|
+
m("div", La, B(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4728
5058
|
]),
|
|
4729
5059
|
_: 1
|
|
4730
5060
|
}, 512)
|
|
4731
5061
|
]);
|
|
4732
5062
|
};
|
|
4733
5063
|
}
|
|
4734
|
-
}),
|
|
5064
|
+
}), Ha = {
|
|
4735
5065
|
key: 0,
|
|
4736
5066
|
class: "py-4 px-3",
|
|
4737
5067
|
id: "placeholder-message"
|
|
4738
|
-
},
|
|
5068
|
+
}, Wa = {
|
|
4739
5069
|
key: 1,
|
|
4740
5070
|
class: "d-flex flex-column"
|
|
4741
|
-
},
|
|
5071
|
+
}, Ga = /* @__PURE__ */ S({
|
|
4742
5072
|
__name: "DragDropArea",
|
|
4743
|
-
props: /* @__PURE__ */
|
|
5073
|
+
props: /* @__PURE__ */ R({
|
|
4744
5074
|
maxFileInput: {},
|
|
4745
5075
|
maxFileSize: {},
|
|
4746
5076
|
acceptedFileTypes: {}
|
|
@@ -4750,30 +5080,30 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4750
5080
|
}),
|
|
4751
5081
|
emits: ["update:modelValue"],
|
|
4752
5082
|
setup(e) {
|
|
4753
|
-
const t =
|
|
4754
|
-
a.value = !1,
|
|
5083
|
+
const t = N(e, "modelValue"), a = P(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5084
|
+
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ke([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
4755
5085
|
};
|
|
4756
|
-
return (
|
|
5086
|
+
return (n, o) => (d(), v("div", {
|
|
4757
5087
|
id: "drag-drop-area",
|
|
4758
|
-
class:
|
|
4759
|
-
onDragleave:
|
|
4760
|
-
onDragover:
|
|
4761
|
-
onDrop:
|
|
5088
|
+
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5089
|
+
onDragleave: o[0] || (o[0] = X((s) => a.value = !1, ["prevent"])),
|
|
5090
|
+
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5091
|
+
onDrop: X(l, ["prevent"])
|
|
4762
5092
|
}, [
|
|
4763
|
-
t.value.length === 0 ? (
|
|
4764
|
-
h(u(
|
|
5093
|
+
t.value.length === 0 ? (d(), v("div", Ha, [
|
|
5094
|
+
h(u(I), {
|
|
4765
5095
|
icon: "bi:upload",
|
|
4766
5096
|
class: "me-2",
|
|
4767
5097
|
height: "20px",
|
|
4768
5098
|
width: "20px"
|
|
4769
5099
|
}),
|
|
4770
|
-
|
|
4771
|
-
])) : (
|
|
4772
|
-
k(
|
|
5100
|
+
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5101
|
+
])) : (d(), v("div", Wa, [
|
|
5102
|
+
k(n.$slots, "default")
|
|
4773
5103
|
]))
|
|
4774
5104
|
], 34));
|
|
4775
5105
|
}
|
|
4776
|
-
}),
|
|
5106
|
+
}), Ya = { class: "d-flex align-items-center me-2" }, Ja = /* @__PURE__ */ S({
|
|
4777
5107
|
__name: "UploadStatus",
|
|
4778
5108
|
props: {
|
|
4779
5109
|
fileSize: {},
|
|
@@ -4782,12 +5112,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4782
5112
|
uploadStatus: {}
|
|
4783
5113
|
},
|
|
4784
5114
|
setup(e) {
|
|
4785
|
-
const t = T(() =>
|
|
4786
|
-
switch (
|
|
5115
|
+
const t = e, a = T(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = T(() => {
|
|
5116
|
+
switch (t.uploadStatus) {
|
|
4787
5117
|
case "InvalidFileType":
|
|
4788
5118
|
return "Upload Failed: File type is not accepted.";
|
|
4789
5119
|
case "InvalidFileSize":
|
|
4790
|
-
return `Upload Failed: File size exceeds the ${
|
|
5120
|
+
return `Upload Failed: File size exceeds the ${me(t.maxFileSize)} limit.`;
|
|
4791
5121
|
case "Aborted":
|
|
4792
5122
|
return "Upload Failed: User cancelled.";
|
|
4793
5123
|
case "DeleteFileFailed":
|
|
@@ -4798,43 +5128,36 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4798
5128
|
return "Upload Failed: Connection error, please try again.";
|
|
4799
5129
|
}
|
|
4800
5130
|
});
|
|
4801
|
-
return (
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
}, {
|
|
4819
|
-
default: b(() => [
|
|
4820
|
-
I(w(a.value), 1)
|
|
4821
|
-
]),
|
|
4822
|
-
_: 1
|
|
4823
|
-
}, 8, ["severity"])) : S("", !0)
|
|
4824
|
-
]));
|
|
5131
|
+
return (l, n) => {
|
|
5132
|
+
const o = pe;
|
|
5133
|
+
return d(), v("div", Ya, [
|
|
5134
|
+
t.uploadStatus === "Uploading" ? (d(), b(o, { key: 0 })) : C("", !0),
|
|
5135
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), b(de, {
|
|
5136
|
+
key: 1,
|
|
5137
|
+
id: "upload-status-alert",
|
|
5138
|
+
severity: a.value,
|
|
5139
|
+
class: "mb-0 w-75 ms-auto"
|
|
5140
|
+
}, {
|
|
5141
|
+
default: g(() => [
|
|
5142
|
+
M(B(i.value), 1)
|
|
5143
|
+
]),
|
|
5144
|
+
_: 1
|
|
5145
|
+
}, 8, ["severity"])) : C("", !0)
|
|
5146
|
+
]);
|
|
5147
|
+
};
|
|
4825
5148
|
}
|
|
4826
|
-
}),
|
|
5149
|
+
}), Ka = ["data-cy"], Za = { class: "ms-3 d-flex flex-column" }, Xa = {
|
|
4827
5150
|
key: 1,
|
|
4828
5151
|
id: "file-name"
|
|
4829
|
-
},
|
|
5152
|
+
}, Qa = {
|
|
4830
5153
|
class: "text-black-50",
|
|
4831
5154
|
id: "file-type"
|
|
4832
|
-
},
|
|
5155
|
+
}, ei = {
|
|
4833
5156
|
class: "text-black-50",
|
|
4834
5157
|
id: "file-size"
|
|
4835
|
-
},
|
|
5158
|
+
}, ti = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ai = /* @__PURE__ */ S({
|
|
4836
5159
|
__name: "FileInfo",
|
|
4837
|
-
props: /* @__PURE__ */
|
|
5160
|
+
props: /* @__PURE__ */ R({
|
|
4838
5161
|
editableFileName: { type: Boolean },
|
|
4839
5162
|
acceptedFileTypes: {},
|
|
4840
5163
|
maxFileSize: {},
|
|
@@ -4849,64 +5172,64 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4849
5172
|
uploadStatus: { required: !0 },
|
|
4850
5173
|
uploadStatusModifiers: {}
|
|
4851
5174
|
}),
|
|
4852
|
-
emits: /* @__PURE__ */
|
|
5175
|
+
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4853
5176
|
setup(e, { emit: t }) {
|
|
4854
|
-
const a =
|
|
4855
|
-
|
|
4856
|
-
},
|
|
4857
|
-
let
|
|
4858
|
-
|
|
4859
|
-
},
|
|
4860
|
-
if (!
|
|
4861
|
-
l.value =
|
|
5177
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = P(a.value.name), s = P(""), p = P(0), c = P(), y = T(() => e.acceptedFileTypes.some(({ fileType: x }) => x === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), $ = T(() => a.value.type ? a.value.type : Ea().getType(a.value.name)), z = () => {
|
|
5178
|
+
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5179
|
+
}, D = () => {
|
|
5180
|
+
let x = o.value.split("."), w = Da.getExtension($.value), _ = o.value.split(".").pop();
|
|
5181
|
+
x.length === 1 ? _ && _.length > 0 && (o.value = [o.value, w].join(".")) : x.length > 1 && _ !== w && (o.value = o.value.replace(_, w));
|
|
5182
|
+
}, O = async () => {
|
|
5183
|
+
if (!y.value || !r.value) {
|
|
5184
|
+
l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4862
5185
|
return;
|
|
4863
5186
|
}
|
|
4864
5187
|
l.value = "Preparing", c.value = new AbortController();
|
|
4865
|
-
const [
|
|
4866
|
-
if (!
|
|
5188
|
+
const [x, w] = await e.getFileUrlAction(a.value.name);
|
|
5189
|
+
if (!x) {
|
|
4867
5190
|
l.value = "Failed";
|
|
4868
5191
|
return;
|
|
4869
5192
|
}
|
|
4870
5193
|
try {
|
|
4871
5194
|
l.value = "Uploading";
|
|
4872
|
-
const
|
|
5195
|
+
const _ = new ge(x), f = {
|
|
4873
5196
|
abortSignal: c.value.signal,
|
|
4874
|
-
onProgress: (
|
|
5197
|
+
onProgress: (V) => p.value = V.loadedBytes,
|
|
4875
5198
|
blobHTTPHeaders: {
|
|
4876
|
-
blobContentType:
|
|
5199
|
+
blobContentType: $.value,
|
|
4877
5200
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4878
5201
|
},
|
|
4879
5202
|
tags: { temp: "true" }
|
|
4880
5203
|
};
|
|
4881
|
-
await
|
|
4882
|
-
} catch (
|
|
4883
|
-
if (
|
|
5204
|
+
await _.uploadData(a.value, f), s.value = x, l.value = "Uploaded", i.value = w;
|
|
5205
|
+
} catch (_) {
|
|
5206
|
+
if (_.name === "AbortError") {
|
|
4884
5207
|
l.value = "Aborted";
|
|
4885
5208
|
return;
|
|
4886
5209
|
}
|
|
4887
5210
|
l.value = "Failed";
|
|
4888
5211
|
}
|
|
4889
|
-
},
|
|
4890
|
-
await
|
|
5212
|
+
}, A = async () => {
|
|
5213
|
+
await Oa(l.value, s.value), n("deleted", a.value);
|
|
4891
5214
|
};
|
|
4892
|
-
return
|
|
4893
|
-
e.autoUploadToBlob &&
|
|
4894
|
-
}), (
|
|
4895
|
-
const
|
|
4896
|
-
return
|
|
5215
|
+
return ne(() => {
|
|
5216
|
+
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5217
|
+
}), (x, w) => {
|
|
5218
|
+
const _ = q;
|
|
5219
|
+
return d(), v("div", {
|
|
4897
5220
|
class: "py-4 px-3 d-flex",
|
|
4898
5221
|
"data-cy": `file-info-${a.value.name}`
|
|
4899
5222
|
}, [
|
|
4900
5223
|
m("div", null, [
|
|
4901
|
-
u(
|
|
5224
|
+
u(Na)(a.value.type) ? (d(), b(u(Ye), {
|
|
4902
5225
|
key: 0,
|
|
4903
5226
|
id: "thumbnail-image",
|
|
4904
5227
|
"image-class": "image-file-thumbnail border",
|
|
4905
|
-
src: u(
|
|
5228
|
+
src: u(Aa)(a.value),
|
|
4906
5229
|
alt: a.value.name,
|
|
4907
5230
|
width: "75px",
|
|
4908
5231
|
preview: ""
|
|
4909
|
-
}, null, 8, ["src", "alt"])) : (
|
|
5232
|
+
}, null, 8, ["src", "alt"])) : (d(), b(u(I), {
|
|
4910
5233
|
key: 1,
|
|
4911
5234
|
id: "file-earmark",
|
|
4912
5235
|
icon: "bi:file-earmark",
|
|
@@ -4914,80 +5237,80 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4914
5237
|
width: "75px"
|
|
4915
5238
|
}))
|
|
4916
5239
|
]),
|
|
4917
|
-
m("div",
|
|
5240
|
+
m("div", Za, [
|
|
4918
5241
|
m("div", null, [
|
|
4919
|
-
|
|
5242
|
+
x.editableFileName ? (d(), b(Ht, {
|
|
4920
5243
|
key: 0,
|
|
4921
5244
|
id: "edit-file-name",
|
|
4922
|
-
modelValue:
|
|
4923
|
-
"onUpdate:modelValue":
|
|
4924
|
-
rules:
|
|
5245
|
+
modelValue: o.value,
|
|
5246
|
+
"onUpdate:modelValue": w[0] || (w[0] = (f) => o.value = f),
|
|
5247
|
+
rules: x.customFileNameRules,
|
|
4925
5248
|
name: a.value.name,
|
|
4926
|
-
"complete-action":
|
|
4927
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
5249
|
+
"complete-action": z
|
|
5250
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", Xa, B(o.value), 1))
|
|
4928
5251
|
]),
|
|
4929
|
-
m("span",
|
|
4930
|
-
m("span",
|
|
5252
|
+
m("span", Qa, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5253
|
+
m("span", ei, "File size: " + B(u(me)(a.value.size)), 1)
|
|
4931
5254
|
]),
|
|
4932
|
-
m("div",
|
|
4933
|
-
(
|
|
5255
|
+
m("div", ti, [
|
|
5256
|
+
(d(), b(Ja, {
|
|
4934
5257
|
key: l.value,
|
|
4935
5258
|
"file-size": a.value.size,
|
|
4936
5259
|
"upload-status": l.value,
|
|
4937
5260
|
"bytes-uploaded": p.value,
|
|
4938
|
-
"max-file-size":
|
|
5261
|
+
"max-file-size": x.maxFileSize
|
|
4939
5262
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4940
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (
|
|
5263
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), b(_, {
|
|
4941
5264
|
key: 0,
|
|
4942
5265
|
link: "",
|
|
4943
|
-
onClick:
|
|
5266
|
+
onClick: O
|
|
4944
5267
|
}, {
|
|
4945
|
-
default:
|
|
4946
|
-
h(u(
|
|
5268
|
+
default: g(() => [
|
|
5269
|
+
h(u(I), {
|
|
4947
5270
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4948
5271
|
}, null, 8, ["icon"])
|
|
4949
5272
|
]),
|
|
4950
5273
|
_: 1
|
|
4951
|
-
})) :
|
|
4952
|
-
l.value === "Uploading" ? (
|
|
5274
|
+
})) : C("", !0),
|
|
5275
|
+
l.value === "Uploading" ? (d(), b(_, {
|
|
4953
5276
|
key: 1,
|
|
4954
5277
|
link: "",
|
|
4955
|
-
onClick:
|
|
5278
|
+
onClick: w[1] || (w[1] = (f) => c.value.abort())
|
|
4956
5279
|
}, {
|
|
4957
|
-
default:
|
|
4958
|
-
h(u(
|
|
5280
|
+
default: g(() => [
|
|
5281
|
+
h(u(I), { icon: "bi:x-circle-fill" })
|
|
4959
5282
|
]),
|
|
4960
5283
|
_: 1
|
|
4961
|
-
})) : (
|
|
5284
|
+
})) : (d(), b(_, {
|
|
4962
5285
|
key: 2,
|
|
4963
5286
|
link: "",
|
|
4964
|
-
onClick:
|
|
5287
|
+
onClick: A,
|
|
4965
5288
|
id: "delete-button"
|
|
4966
5289
|
}, {
|
|
4967
|
-
default:
|
|
4968
|
-
h(u(
|
|
5290
|
+
default: g(() => [
|
|
5291
|
+
h(u(I), { icon: "bi:trash" })
|
|
4969
5292
|
]),
|
|
4970
5293
|
_: 1
|
|
4971
5294
|
}))
|
|
4972
5295
|
])
|
|
4973
|
-
], 8,
|
|
5296
|
+
], 8, Ka);
|
|
4974
5297
|
};
|
|
4975
5298
|
}
|
|
4976
|
-
}),
|
|
5299
|
+
}), ii = { class: "d-flex justify-content-end mt-1 gap-1" }, li = { id: "max-file-size" }, ni = { id: "max-file-input" }, oi = /* @__PURE__ */ S({
|
|
4977
5300
|
__name: "FileInputInfo",
|
|
4978
5301
|
props: {
|
|
4979
5302
|
maxFileSize: {},
|
|
4980
5303
|
maxFileInput: {}
|
|
4981
5304
|
},
|
|
4982
5305
|
setup(e) {
|
|
4983
|
-
return (t, a) => (
|
|
4984
|
-
m("div",
|
|
4985
|
-
m("div",
|
|
5306
|
+
return (t, a) => (d(), v("div", ii, [
|
|
5307
|
+
m("div", li, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5308
|
+
m("div", ni, "| Max file count: " + B(t.maxFileInput), 1)
|
|
4986
5309
|
]));
|
|
4987
5310
|
}
|
|
4988
|
-
}),
|
|
5311
|
+
}), si = { "data-cy": "file-uploader" }, ri = { key: 0 }, fl = /* @__PURE__ */ S({
|
|
4989
5312
|
__name: "ForgeFileUploader",
|
|
4990
|
-
props: /* @__PURE__ */
|
|
5313
|
+
props: /* @__PURE__ */ R({
|
|
4991
5314
|
acceptedFileTypes: {},
|
|
4992
5315
|
maxFileSize: {},
|
|
4993
5316
|
getFileUrlAction: {},
|
|
@@ -5002,26 +5325,26 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5002
5325
|
}),
|
|
5003
5326
|
emits: ["update:modelValue"],
|
|
5004
5327
|
setup(e) {
|
|
5005
|
-
const t =
|
|
5006
|
-
t.value = t.value.filter((
|
|
5328
|
+
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5329
|
+
t.value = t.value.filter((n) => n.file != l);
|
|
5007
5330
|
};
|
|
5008
|
-
return (l,
|
|
5009
|
-
h(
|
|
5331
|
+
return (l, n) => (d(), v("div", si, [
|
|
5332
|
+
h(Ra, j(a, {
|
|
5010
5333
|
modelValue: t.value,
|
|
5011
|
-
"onUpdate:modelValue":
|
|
5334
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5012
5335
|
}), null, 16, ["modelValue"]),
|
|
5013
|
-
l.showDragDropArea ? (
|
|
5014
|
-
h(
|
|
5336
|
+
l.showDragDropArea ? (d(), v("div", ri, [
|
|
5337
|
+
h(Ga, {
|
|
5015
5338
|
"max-file-input": a.maxFileInput,
|
|
5016
5339
|
"max-file-size": a.maxFileSize,
|
|
5017
5340
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5018
5341
|
modelValue: t.value,
|
|
5019
|
-
"onUpdate:modelValue":
|
|
5342
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
5020
5343
|
}, {
|
|
5021
|
-
default:
|
|
5022
|
-
(
|
|
5023
|
-
(
|
|
5024
|
-
key:
|
|
5344
|
+
default: g(() => [
|
|
5345
|
+
(d(!0), v(E, null, U(t.value, ({ file: o }, s) => (d(), v("div", null, [
|
|
5346
|
+
(d(), b(ai, j({
|
|
5347
|
+
key: o.name,
|
|
5025
5348
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5026
5349
|
file: t.value[s].file,
|
|
5027
5350
|
"onUpdate:file": (p) => t.value[s].file = p,
|
|
@@ -5035,14 +5358,14 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5035
5358
|
]),
|
|
5036
5359
|
_: 1
|
|
5037
5360
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5038
|
-
h(
|
|
5361
|
+
h(oi, {
|
|
5039
5362
|
"max-file-size": a.maxFileSize,
|
|
5040
5363
|
"max-file-input": l.maxFileInput
|
|
5041
5364
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5042
|
-
])) :
|
|
5365
|
+
])) : C("", !0)
|
|
5043
5366
|
]));
|
|
5044
5367
|
}
|
|
5045
|
-
}),
|
|
5368
|
+
}), di = { class: "d-flex" }, pi = { class: "me-3" }, ci = { class: "ms-2" }, ui = { class: "d-flex flex-column w-100" }, gl = /* @__PURE__ */ S({
|
|
5046
5369
|
__name: "ForgeColumnCustomiser",
|
|
5047
5370
|
props: {
|
|
5048
5371
|
modelValue: { required: !0 },
|
|
@@ -5050,22 +5373,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5050
5373
|
},
|
|
5051
5374
|
emits: ["update:modelValue"],
|
|
5052
5375
|
setup(e) {
|
|
5053
|
-
const t =
|
|
5054
|
-
a.value.toggle(
|
|
5376
|
+
const t = N(e, "modelValue"), a = P(), i = P(!1), l = (n) => {
|
|
5377
|
+
a.value.toggle(n);
|
|
5055
5378
|
};
|
|
5056
|
-
return (
|
|
5057
|
-
h(u(
|
|
5379
|
+
return (n, o) => (d(), v(E, null, [
|
|
5380
|
+
h(u(q), {
|
|
5058
5381
|
onClick: l,
|
|
5059
5382
|
class: "ms-2"
|
|
5060
5383
|
}, {
|
|
5061
|
-
default:
|
|
5062
|
-
m("div",
|
|
5063
|
-
m("div",
|
|
5064
|
-
h(u(
|
|
5384
|
+
default: g(() => [
|
|
5385
|
+
m("div", di, [
|
|
5386
|
+
m("div", pi, [
|
|
5387
|
+
h(u(I), { icon: "bi:layout-three-columns" })
|
|
5065
5388
|
]),
|
|
5066
|
-
|
|
5067
|
-
m("div",
|
|
5068
|
-
h(u(
|
|
5389
|
+
M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5390
|
+
m("div", ci, [
|
|
5391
|
+
h(u(I), {
|
|
5069
5392
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5070
5393
|
}, null, 8, ["icon"])
|
|
5071
5394
|
])
|
|
@@ -5073,24 +5396,24 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5073
5396
|
]),
|
|
5074
5397
|
_: 1
|
|
5075
5398
|
}),
|
|
5076
|
-
h(u(
|
|
5399
|
+
h(u(be), {
|
|
5077
5400
|
ref_key: "columnCustomiserPanel",
|
|
5078
5401
|
ref: a,
|
|
5079
5402
|
class: "column-customiser",
|
|
5080
|
-
onHide:
|
|
5081
|
-
onShow:
|
|
5403
|
+
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5404
|
+
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5082
5405
|
}, {
|
|
5083
|
-
default:
|
|
5084
|
-
m("div",
|
|
5085
|
-
(
|
|
5086
|
-
class:
|
|
5406
|
+
default: g(() => [
|
|
5407
|
+
m("div", ui, [
|
|
5408
|
+
(d(!0), v(E, null, U(t.value, (s, p) => (d(), v("div", {
|
|
5409
|
+
class: F(["d-flex cursor-pointer", {
|
|
5087
5410
|
"border-top": p !== 0,
|
|
5088
5411
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5089
5412
|
"pt-1": t.value.length - 1 === p,
|
|
5090
5413
|
"pb-1": p === 0
|
|
5091
5414
|
}])
|
|
5092
5415
|
}, [
|
|
5093
|
-
h(
|
|
5416
|
+
h(ye, {
|
|
5094
5417
|
id: s.field,
|
|
5095
5418
|
modelValue: s.selected,
|
|
5096
5419
|
"onUpdate:modelValue": (c) => s.selected = c,
|
|
@@ -5105,19 +5428,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5105
5428
|
}, 512)
|
|
5106
5429
|
], 64));
|
|
5107
5430
|
}
|
|
5108
|
-
}),
|
|
5431
|
+
}), bl = /* @__PURE__ */ S({
|
|
5109
5432
|
__name: "ForgePanel",
|
|
5110
5433
|
setup(e) {
|
|
5111
5434
|
return (t, a) => {
|
|
5112
|
-
const i =
|
|
5113
|
-
return
|
|
5114
|
-
toggleicon:
|
|
5115
|
-
l ? (
|
|
5435
|
+
const i = Je;
|
|
5436
|
+
return d(), b(i, W(G({ ...t.$attrs })), te({
|
|
5437
|
+
toggleicon: g(({ collapsed: l }) => [
|
|
5438
|
+
l ? (d(), b(u(I), {
|
|
5116
5439
|
key: 0,
|
|
5117
5440
|
"data-cy": "message-icon",
|
|
5118
5441
|
icon: "bi:chevron-down"
|
|
5119
|
-
})) :
|
|
5120
|
-
l ?
|
|
5442
|
+
})) : C("", !0),
|
|
5443
|
+
l ? C("", !0) : (d(), b(u(I), {
|
|
5121
5444
|
key: 1,
|
|
5122
5445
|
"data-cy": "message-icon",
|
|
5123
5446
|
icon: "bi:chevron-up"
|
|
@@ -5125,16 +5448,16 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5125
5448
|
]),
|
|
5126
5449
|
_: 2
|
|
5127
5450
|
}, [
|
|
5128
|
-
|
|
5129
|
-
name:
|
|
5130
|
-
fn:
|
|
5131
|
-
k(t.$slots,
|
|
5451
|
+
U(t.$slots, (l, n) => ({
|
|
5452
|
+
name: n,
|
|
5453
|
+
fn: g((o) => [
|
|
5454
|
+
k(t.$slots, n, W(G(o)))
|
|
5132
5455
|
])
|
|
5133
5456
|
}))
|
|
5134
5457
|
]), 1040);
|
|
5135
5458
|
};
|
|
5136
5459
|
}
|
|
5137
|
-
}),
|
|
5460
|
+
}), mi = /* @__PURE__ */ S({
|
|
5138
5461
|
__name: "ForgeToggleButton",
|
|
5139
5462
|
props: {
|
|
5140
5463
|
severity: { default: "primary" }
|
|
@@ -5161,17 +5484,17 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5161
5484
|
]
|
|
5162
5485
|
})
|
|
5163
5486
|
}));
|
|
5164
|
-
return (i, l) => (
|
|
5487
|
+
return (i, l) => (d(), b(u(Ke), j({ ...i.$attrs, ...t }, {
|
|
5165
5488
|
severity: t.severity,
|
|
5166
5489
|
pt: a.value
|
|
5167
5490
|
}), null, 16, ["severity", "pt"]));
|
|
5168
5491
|
}
|
|
5169
|
-
}),
|
|
5492
|
+
}), vi = {
|
|
5170
5493
|
class: "btn-group",
|
|
5171
5494
|
"data-cy": "forge-select-button"
|
|
5172
|
-
},
|
|
5495
|
+
}, yl = /* @__PURE__ */ S({
|
|
5173
5496
|
__name: "ForgeSelectButton",
|
|
5174
|
-
props: /* @__PURE__ */
|
|
5497
|
+
props: /* @__PURE__ */ R({
|
|
5175
5498
|
options: {},
|
|
5176
5499
|
multiple: { type: Boolean, default: !0 },
|
|
5177
5500
|
allowEmpty: { type: Boolean, default: !1 },
|
|
@@ -5182,25 +5505,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5182
5505
|
}),
|
|
5183
5506
|
emits: ["update:modelValue"],
|
|
5184
5507
|
setup(e) {
|
|
5185
|
-
const t = e, a =
|
|
5186
|
-
var
|
|
5187
|
-
return t.multiple ? (
|
|
5188
|
-
}, l = (
|
|
5189
|
-
var
|
|
5190
|
-
if (!
|
|
5508
|
+
const t = e, a = N(e, "modelValue"), i = (n) => {
|
|
5509
|
+
var o;
|
|
5510
|
+
return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
|
|
5511
|
+
}, l = (n) => {
|
|
5512
|
+
var o;
|
|
5513
|
+
if (!n.disabled)
|
|
5191
5514
|
if (t.multiple) {
|
|
5192
|
-
let s = (
|
|
5193
|
-
if (s.length >= 1 && s.includes(
|
|
5515
|
+
let s = (o = a.value) != null && o.length ? [...a.value] : [];
|
|
5516
|
+
if (s.length >= 1 && s.includes(n.value)) {
|
|
5194
5517
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5195
|
-
s = s.length > 1 ? s.filter((c) => c !==
|
|
5518
|
+
s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
|
|
5196
5519
|
} else
|
|
5197
|
-
s.push(
|
|
5520
|
+
s.push(n.value);
|
|
5198
5521
|
a.value = s;
|
|
5199
5522
|
} else
|
|
5200
|
-
a.value = a.value ===
|
|
5523
|
+
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5201
5524
|
};
|
|
5202
|
-
return (
|
|
5203
|
-
(
|
|
5525
|
+
return (n, o) => (d(), v("div", vi, [
|
|
5526
|
+
(d(!0), v(E, null, U(n.options, (s, p) => (d(), b(mi, {
|
|
5204
5527
|
key: p,
|
|
5205
5528
|
onLabel: s.label,
|
|
5206
5529
|
offLabel: s.label,
|
|
@@ -5209,11 +5532,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5209
5532
|
defaultValue: i(s),
|
|
5210
5533
|
disabled: s.disabled,
|
|
5211
5534
|
"data-cy": `toggle-button-${s.value}`,
|
|
5212
|
-
invalid:
|
|
5535
|
+
invalid: n.invalid
|
|
5213
5536
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5214
5537
|
]));
|
|
5215
5538
|
}
|
|
5216
|
-
}),
|
|
5539
|
+
}), xl = () => ({
|
|
5217
5540
|
type: "component",
|
|
5218
5541
|
resolve: (e) => {
|
|
5219
5542
|
if (e.startsWith("Forge"))
|
|
@@ -5224,37 +5547,38 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5224
5547
|
}
|
|
5225
5548
|
});
|
|
5226
5549
|
export {
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5550
|
+
Yi as Bootstrap_PT,
|
|
5551
|
+
Ji as ForgeActionButton,
|
|
5552
|
+
de as ForgeAlert,
|
|
5553
|
+
Ki as ForgeAutoComplete,
|
|
5554
|
+
ye as ForgeCheckbox,
|
|
5555
|
+
ol as ForgeChip,
|
|
5556
|
+
gl as ForgeColumnCustomiser,
|
|
5557
|
+
xe as ForgeDatepicker,
|
|
5558
|
+
fl as ForgeFileUploader,
|
|
5559
|
+
vl as ForgeFilterHeader,
|
|
5560
|
+
ll as ForgeForm,
|
|
5561
|
+
nl as ForgeFormField,
|
|
5562
|
+
Ht as ForgeInlineEditor,
|
|
5563
|
+
Zi as ForgeLink,
|
|
5564
|
+
pe as ForgeLoader,
|
|
5565
|
+
el as ForgeModal,
|
|
5566
|
+
Zt as ForgeMultiSelectPreview,
|
|
5567
|
+
tl as ForgeNavbar,
|
|
5568
|
+
al as ForgePageHeader,
|
|
5569
|
+
bl as ForgePanel,
|
|
5570
|
+
sl as ForgeProgressBar,
|
|
5571
|
+
il as ForgeRemainingCharacters,
|
|
5572
|
+
xl as ForgeResolver,
|
|
5573
|
+
rl as ForgeScratchpad,
|
|
5574
|
+
yl as ForgeSelectButton,
|
|
5575
|
+
dl as ForgeStatWidget,
|
|
5576
|
+
pl as ForgeStepper,
|
|
5577
|
+
ul as ForgeTable,
|
|
5578
|
+
cl as ForgeTile,
|
|
5579
|
+
mi as ForgeToggleButton,
|
|
5580
|
+
ml as ForgeTreeTable,
|
|
5581
|
+
Qi as convertToMultiSelectOption,
|
|
5582
|
+
Xi as enumToMultiSelectList,
|
|
5583
|
+
Dt as parseError
|
|
5260
5584
|
};
|