@3squared/forge-ui-3 2.13.0 → 2.14.1
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 +1126 -809
- 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 +3 -3
- package/dist/src/components/ForgeLoader.vue.d.ts +1 -1
- package/dist/src/components/ForgeNavbar.vue.d.ts +1 -1
- package/dist/src/components/ForgeProgressBar.vue.d.ts +1 -1
- package/dist/src/components/ForgeStepper.vue.d.ts +1 -1
- package/dist/src/components/ForgeTile.vue.d.ts +1 -1
- package/dist/src/components/ForgeToggleButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeTreeTable.vue.d.ts +46 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +6 -6
- 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 +12 -11
- 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;
|
|
263
|
+
var t, a;
|
|
253
264
|
return {
|
|
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
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
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:
|
|
1219
|
-
|
|
1258
|
+
default: g(() => [
|
|
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);
|
|
@@ -1241,30 +1281,30 @@ const We = {
|
|
|
1241
1281
|
t.value = !1;
|
|
1242
1282
|
};
|
|
1243
1283
|
return (l, n) => {
|
|
1244
|
-
const o =
|
|
1245
|
-
return
|
|
1246
|
-
h(o,
|
|
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,7 +1337,7 @@ 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
|
{
|
|
@@ -1308,41 +1348,41 @@ const We = {
|
|
|
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] = (
|
|
1368
|
+
onClick: c[1] || (c[1] = (r) => o(r, !a.value)),
|
|
1329
1369
|
class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1330
1370
|
}, [
|
|
1331
|
-
|
|
1332
|
-
|
|
1371
|
+
k(p.$slots, "default", {}, () => [
|
|
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
1388
|
severity: { default: "primary" },
|
|
@@ -1360,8 +1400,8 @@ const We = {
|
|
|
1360
1400
|
})
|
|
1361
1401
|
}));
|
|
1362
1402
|
return (i, l) => {
|
|
1363
|
-
const n =
|
|
1364
|
-
return
|
|
1403
|
+
const n = Pe;
|
|
1404
|
+
return d(), v("div", {
|
|
1365
1405
|
class: F(i.inLine ? "" : "forge-loader")
|
|
1366
1406
|
}, [
|
|
1367
1407
|
h(n, {
|
|
@@ -1372,7 +1412,7 @@ const We = {
|
|
|
1372
1412
|
], 2);
|
|
1373
1413
|
};
|
|
1374
1414
|
}
|
|
1375
|
-
}),
|
|
1415
|
+
}), Vt = ["href", "target"], Zi = /* @__PURE__ */ S({
|
|
1376
1416
|
__name: "ForgeLink",
|
|
1377
1417
|
props: {
|
|
1378
1418
|
url: {},
|
|
@@ -1406,25 +1446,25 @@ const We = {
|
|
|
1406
1446
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1407
1447
|
"me-0": e.animateIconOnHover
|
|
1408
1448
|
}));
|
|
1409
|
-
return (i, l) => (
|
|
1449
|
+
return (i, l) => (d(), v("a", {
|
|
1410
1450
|
id: "link",
|
|
1411
1451
|
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1412
1452
|
href: i.url,
|
|
1413
1453
|
target: i.target
|
|
1414
1454
|
}, [
|
|
1415
|
-
|
|
1416
|
-
i.iconName ? (
|
|
1455
|
+
k(i.$slots, "default", {}, () => [
|
|
1456
|
+
i.iconName ? (d(), b(u(I), {
|
|
1417
1457
|
key: 0,
|
|
1418
1458
|
id: "link-icon",
|
|
1419
1459
|
icon: i.iconName,
|
|
1420
1460
|
class: F(["bi my-auto", a.value])
|
|
1421
|
-
}, null, 8, ["icon", "class"])) :
|
|
1422
|
-
|
|
1461
|
+
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1462
|
+
M(" " + B(i.label), 1)
|
|
1423
1463
|
])
|
|
1424
|
-
], 10,
|
|
1464
|
+
], 10, Vt));
|
|
1425
1465
|
}
|
|
1426
1466
|
});
|
|
1427
|
-
function
|
|
1467
|
+
function Dt(e) {
|
|
1428
1468
|
const t = {
|
|
1429
1469
|
errorMessage: "",
|
|
1430
1470
|
errorDetails: []
|
|
@@ -1435,18 +1475,18 @@ function jt(e) {
|
|
|
1435
1475
|
}
|
|
1436
1476
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1437
1477
|
}
|
|
1438
|
-
function
|
|
1478
|
+
function Xi(e, t) {
|
|
1439
1479
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1440
1480
|
}
|
|
1441
|
-
function
|
|
1481
|
+
function Qi(e, t, a) {
|
|
1442
1482
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1443
1483
|
}
|
|
1444
|
-
const
|
|
1484
|
+
const Ot = { key: 0 }, Nt = {
|
|
1445
1485
|
class: "d-flex w-100",
|
|
1446
1486
|
"data-cy": "footer"
|
|
1447
|
-
},
|
|
1487
|
+
}, el = /* @__PURE__ */ S({
|
|
1448
1488
|
__name: "ForgeModal",
|
|
1449
|
-
props: /* @__PURE__ */
|
|
1489
|
+
props: /* @__PURE__ */ R({
|
|
1450
1490
|
cancelText: { default: "Cancel" },
|
|
1451
1491
|
submitText: { default: "Submit" },
|
|
1452
1492
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1476,7 +1516,7 @@ const _t = { key: 0 }, It = {
|
|
|
1476
1516
|
maximizable: { type: Boolean },
|
|
1477
1517
|
breakpoints: {},
|
|
1478
1518
|
draggable: { type: Boolean },
|
|
1479
|
-
|
|
1519
|
+
keepInViewport: { type: Boolean },
|
|
1480
1520
|
minX: {},
|
|
1481
1521
|
minY: {},
|
|
1482
1522
|
appendTo: {},
|
|
@@ -1505,7 +1545,7 @@ const _t = { key: 0 }, It = {
|
|
|
1505
1545
|
}),
|
|
1506
1546
|
emits: ["update:visible", "update:error"],
|
|
1507
1547
|
setup(e, { expose: t }) {
|
|
1508
|
-
const a =
|
|
1548
|
+
const a = N(e, "visible"), i = P(!1), l = e, n = P(!1), o = N(e, "error"), s = () => {
|
|
1509
1549
|
o.value = {
|
|
1510
1550
|
hasError: !1,
|
|
1511
1551
|
header: "",
|
|
@@ -1519,22 +1559,22 @@ const _t = { key: 0 }, It = {
|
|
|
1519
1559
|
i.value = !1;
|
|
1520
1560
|
}, c = () => {
|
|
1521
1561
|
i.value = !0;
|
|
1522
|
-
},
|
|
1562
|
+
}, y = () => {
|
|
1523
1563
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1524
|
-
},
|
|
1564
|
+
}, r = async () => {
|
|
1525
1565
|
if (l.onConfirm) {
|
|
1526
1566
|
n.value = !0, o.value.hasError = !1;
|
|
1527
1567
|
try {
|
|
1528
|
-
const
|
|
1529
|
-
(
|
|
1530
|
-
} catch (
|
|
1568
|
+
const z = await l.onConfirm();
|
|
1569
|
+
(z || z == null) && y();
|
|
1570
|
+
} catch (z) {
|
|
1531
1571
|
o.value.hasError = !0;
|
|
1532
|
-
const
|
|
1533
|
-
o.value.header =
|
|
1572
|
+
const D = Dt(z);
|
|
1573
|
+
o.value.header = D.errorMessage, o.value.message = D.errorDetails;
|
|
1534
1574
|
}
|
|
1535
1575
|
n.value = !1;
|
|
1536
1576
|
}
|
|
1537
|
-
},
|
|
1577
|
+
}, $ = T(() => ({
|
|
1538
1578
|
root: [
|
|
1539
1579
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1540
1580
|
{
|
|
@@ -1551,24 +1591,24 @@ const _t = { key: 0 }, It = {
|
|
|
1551
1591
|
}
|
|
1552
1592
|
]
|
|
1553
1593
|
}));
|
|
1554
|
-
return (
|
|
1555
|
-
const
|
|
1556
|
-
return
|
|
1594
|
+
return (z, D) => {
|
|
1595
|
+
const O = q, A = _e;
|
|
1596
|
+
return d(), b(A, j(l, {
|
|
1557
1597
|
onMaximize: c,
|
|
1558
1598
|
onUnmaximize: p,
|
|
1559
|
-
pt:
|
|
1560
|
-
}),
|
|
1561
|
-
closeicon:
|
|
1562
|
-
h(u(
|
|
1599
|
+
pt: $.value
|
|
1600
|
+
}), te({
|
|
1601
|
+
closeicon: g(() => [
|
|
1602
|
+
h(u(I), {
|
|
1563
1603
|
"data-cy": "close-icon",
|
|
1564
1604
|
icon: "bi:x-lg",
|
|
1565
1605
|
width: "18",
|
|
1566
1606
|
height: "18",
|
|
1567
|
-
onClick:
|
|
1607
|
+
onClick: y
|
|
1568
1608
|
})
|
|
1569
1609
|
]),
|
|
1570
|
-
maximizeicon:
|
|
1571
|
-
h(u(
|
|
1610
|
+
maximizeicon: g(() => [
|
|
1611
|
+
h(u(I), {
|
|
1572
1612
|
"data-cy": "maximisable-icon",
|
|
1573
1613
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1574
1614
|
width: "16",
|
|
@@ -1577,48 +1617,48 @@ const _t = { key: 0 }, It = {
|
|
|
1577
1617
|
]),
|
|
1578
1618
|
_: 2
|
|
1579
1619
|
}, [
|
|
1580
|
-
|
|
1581
|
-
name:
|
|
1582
|
-
fn:
|
|
1583
|
-
|
|
1584
|
-
o.value.hasError ? (
|
|
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, {
|
|
1585
1625
|
key: 0,
|
|
1586
1626
|
severity: "danger",
|
|
1587
1627
|
"data-cy": "error"
|
|
1588
1628
|
}, {
|
|
1589
|
-
default:
|
|
1629
|
+
default: g(() => [
|
|
1590
1630
|
m("p", {
|
|
1591
1631
|
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1592
|
-
},
|
|
1593
|
-
o.value.message.length > 0 ? (
|
|
1594
|
-
(
|
|
1595
|
-
])) :
|
|
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)
|
|
1596
1636
|
]),
|
|
1597
1637
|
_: 1
|
|
1598
|
-
})) :
|
|
1599
|
-
], 64)) :
|
|
1600
|
-
|
|
1601
|
-
n.value ?
|
|
1602
|
-
h(
|
|
1603
|
-
]) :
|
|
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)
|
|
1604
1644
|
])
|
|
1605
1645
|
})),
|
|
1606
|
-
|
|
1646
|
+
z.showFooter ? {
|
|
1607
1647
|
name: "footer",
|
|
1608
|
-
fn:
|
|
1609
|
-
m("div",
|
|
1610
|
-
h(
|
|
1611
|
-
label:
|
|
1648
|
+
fn: g(() => [
|
|
1649
|
+
m("div", Nt, [
|
|
1650
|
+
h(O, {
|
|
1651
|
+
label: z.cancelText,
|
|
1612
1652
|
class: F(l.cancelClass),
|
|
1613
1653
|
outlined: "",
|
|
1614
|
-
onClick:
|
|
1654
|
+
onClick: y,
|
|
1615
1655
|
id: "cancel-button",
|
|
1616
1656
|
type: l.cancelButtonType
|
|
1617
1657
|
}, null, 8, ["label", "class", "type"]),
|
|
1618
|
-
h(
|
|
1619
|
-
label:
|
|
1658
|
+
h(O, {
|
|
1659
|
+
label: z.submitText,
|
|
1620
1660
|
class: F([l.submitClass, "ms-auto"]),
|
|
1621
|
-
onClick:
|
|
1661
|
+
onClick: r,
|
|
1622
1662
|
id: "submit-button",
|
|
1623
1663
|
type: l.submitButtonType
|
|
1624
1664
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1629,9 +1669,9 @@ const _t = { key: 0 }, It = {
|
|
|
1629
1669
|
]), 1040, ["pt"]);
|
|
1630
1670
|
};
|
|
1631
1671
|
}
|
|
1632
|
-
}),
|
|
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({
|
|
1633
1673
|
__name: "ForgeInlineEditor",
|
|
1634
|
-
props: /* @__PURE__ */
|
|
1674
|
+
props: /* @__PURE__ */ R({
|
|
1635
1675
|
name: { default: "" },
|
|
1636
1676
|
completeAction: {},
|
|
1637
1677
|
errorAction: {},
|
|
@@ -1644,13 +1684,13 @@ const _t = { key: 0 }, It = {
|
|
|
1644
1684
|
}),
|
|
1645
1685
|
emits: ["update:modelValue"],
|
|
1646
1686
|
setup(e) {
|
|
1647
|
-
const t = e, a =
|
|
1648
|
-
var
|
|
1649
|
-
i.value = !i.value, (
|
|
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();
|
|
1650
1690
|
}, o = async () => {
|
|
1651
|
-
if (
|
|
1691
|
+
if ($.value)
|
|
1652
1692
|
return !1;
|
|
1653
|
-
if (a.value =
|
|
1693
|
+
if (a.value = r.value, t.completeAction)
|
|
1654
1694
|
try {
|
|
1655
1695
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1656
1696
|
} catch {
|
|
@@ -1661,94 +1701,94 @@ const _t = { key: 0 }, It = {
|
|
|
1661
1701
|
}, s = () => {
|
|
1662
1702
|
i.value = !i.value;
|
|
1663
1703
|
}, p = () => {
|
|
1664
|
-
|
|
1665
|
-
}, { errorMessage: c, errors:
|
|
1704
|
+
r.value = null;
|
|
1705
|
+
}, { errorMessage: c, errors: y, value: r } = oe(() => t.name, void 0, {
|
|
1666
1706
|
initialValue: a.value
|
|
1667
1707
|
});
|
|
1668
|
-
|
|
1669
|
-
|
|
1708
|
+
ne(() => {
|
|
1709
|
+
r.value = a.value;
|
|
1670
1710
|
});
|
|
1671
|
-
const
|
|
1672
|
-
return (
|
|
1673
|
-
const
|
|
1674
|
-
return
|
|
1711
|
+
const $ = T(() => y.value.length > 0);
|
|
1712
|
+
return (z, D) => {
|
|
1713
|
+
const O = se, A = q;
|
|
1714
|
+
return d(), v("div", {
|
|
1675
1715
|
id: t.name
|
|
1676
1716
|
}, [
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
m("span",
|
|
1717
|
+
z.readonly ? (d(), v("div", Lt, [
|
|
1718
|
+
k(z.$slots, "default", {}, () => [
|
|
1719
|
+
m("span", Rt, B(u(r)), 1)
|
|
1680
1720
|
])
|
|
1681
|
-
])) : (
|
|
1682
|
-
i.value ? (
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
class: F({ "is-invalid":
|
|
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 }),
|
|
1686
1726
|
editFinished: o,
|
|
1687
1727
|
cancel: s,
|
|
1688
|
-
val: u(
|
|
1728
|
+
val: u(r)
|
|
1689
1729
|
}, () => [
|
|
1690
|
-
h(
|
|
1691
|
-
modelValue: u(
|
|
1692
|
-
"onUpdate:modelValue":
|
|
1730
|
+
h(O, {
|
|
1731
|
+
modelValue: u(r),
|
|
1732
|
+
"onUpdate:modelValue": D[0] || (D[0] = (x) => Fe(r) ? r.value = x : null),
|
|
1693
1733
|
modelModifiers: { trim: !0 },
|
|
1694
1734
|
"data-cy": "input",
|
|
1695
1735
|
ref_key: "input",
|
|
1696
1736
|
ref: l,
|
|
1697
|
-
class: F({ "is-invalid":
|
|
1737
|
+
class: F({ "is-invalid": $.value }),
|
|
1698
1738
|
onKeydown: [
|
|
1699
|
-
|
|
1700
|
-
|
|
1739
|
+
ie(o, ["enter"]),
|
|
1740
|
+
ie(s, ["esc"])
|
|
1701
1741
|
]
|
|
1702
1742
|
}, null, 8, ["modelValue", "class"])
|
|
1703
1743
|
]),
|
|
1704
|
-
h(u(
|
|
1744
|
+
h(u(I), {
|
|
1705
1745
|
icon: "bi:x-circle",
|
|
1706
1746
|
class: "mx-2 cursor-pointer",
|
|
1707
1747
|
onClick: p,
|
|
1708
|
-
onKeydown:
|
|
1748
|
+
onKeydown: ie(p, ["enter"]),
|
|
1709
1749
|
"data-cy": "clear-icon"
|
|
1710
1750
|
})
|
|
1711
1751
|
])), [
|
|
1712
|
-
[u(
|
|
1752
|
+
[u(Me), o]
|
|
1713
1753
|
])
|
|
1714
|
-
])) : (
|
|
1754
|
+
])) : (d(), v("div", {
|
|
1715
1755
|
key: 1,
|
|
1716
1756
|
class: "d-flex text-muted",
|
|
1717
1757
|
onClick: n,
|
|
1718
1758
|
onFocus: n
|
|
1719
1759
|
}, [
|
|
1720
|
-
|
|
1760
|
+
k(z.$slots, "default", {}, () => [
|
|
1721
1761
|
m("div", {
|
|
1722
|
-
class: F(["pe-2 cursor-pointer", { "text-invalid":
|
|
1762
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1723
1763
|
"data-cy": "value"
|
|
1724
|
-
},
|
|
1764
|
+
}, B(u(r) ? u(r) : "Click to edit"), 3)
|
|
1725
1765
|
]),
|
|
1726
|
-
h(
|
|
1766
|
+
h(A, {
|
|
1727
1767
|
link: "",
|
|
1728
1768
|
class: "p-0 m-0"
|
|
1729
1769
|
}, {
|
|
1730
|
-
default:
|
|
1731
|
-
h(u(
|
|
1770
|
+
default: g(() => [
|
|
1771
|
+
h(u(I), {
|
|
1732
1772
|
icon: "bi:pencil",
|
|
1733
|
-
class: F(
|
|
1773
|
+
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1734
1774
|
"data-cy": "edit-icon",
|
|
1735
|
-
onKeydown:
|
|
1775
|
+
onKeydown: ie(n, ["enter"])
|
|
1736
1776
|
}, null, 8, ["class"])
|
|
1737
1777
|
]),
|
|
1738
1778
|
_: 1
|
|
1739
1779
|
})
|
|
1740
1780
|
], 32))
|
|
1741
1781
|
])),
|
|
1742
|
-
|
|
1782
|
+
J(m("small", {
|
|
1743
1783
|
"data-cy": "error",
|
|
1744
1784
|
class: "text-invalid"
|
|
1745
|
-
},
|
|
1746
|
-
[
|
|
1785
|
+
}, B(u(c)), 513), [
|
|
1786
|
+
[Z, $.value]
|
|
1747
1787
|
])
|
|
1748
|
-
], 8,
|
|
1788
|
+
], 8, At);
|
|
1749
1789
|
};
|
|
1750
1790
|
}
|
|
1751
|
-
}),
|
|
1791
|
+
}), Wt = ["href"], tl = /* @__PURE__ */ S({
|
|
1752
1792
|
__name: "ForgeNavbar",
|
|
1753
1793
|
props: {
|
|
1754
1794
|
severity: { default: "light" },
|
|
@@ -1776,6 +1816,7 @@ const _t = { key: 0 }, It = {
|
|
|
1776
1816
|
"bg-brand": t.severity === "brand",
|
|
1777
1817
|
"bg-secondary": t.severity === "secondary",
|
|
1778
1818
|
"bg-success": t.severity === "success",
|
|
1819
|
+
"bg-success-alternate": t.severity === "success-alternate",
|
|
1779
1820
|
"bg-warning": t.severity === "warning",
|
|
1780
1821
|
"bg-danger": t.severity === "danger",
|
|
1781
1822
|
"bg-info": t.severity === "info"
|
|
@@ -1792,24 +1833,24 @@ const _t = { key: 0 }, It = {
|
|
|
1792
1833
|
]
|
|
1793
1834
|
})
|
|
1794
1835
|
}));
|
|
1795
|
-
return (i, l) => (
|
|
1836
|
+
return (i, l) => (d(), b(u(Ve), j({ ...t, ...i.$attrs }, {
|
|
1796
1837
|
pt: a.value,
|
|
1797
1838
|
"data-cy": "navbar"
|
|
1798
|
-
}),
|
|
1799
|
-
start:
|
|
1839
|
+
}), te({
|
|
1840
|
+
start: g(() => [
|
|
1800
1841
|
m("a", {
|
|
1801
1842
|
href: i.logoUrl,
|
|
1802
1843
|
class: "navbar-brand ms-3",
|
|
1803
1844
|
"data-cy": "logo"
|
|
1804
1845
|
}, [
|
|
1805
|
-
|
|
1806
|
-
l[0] || (l[0] =
|
|
1846
|
+
k(i.$slots, "logo", {}, () => [
|
|
1847
|
+
l[0] || (l[0] = M(" Logo "))
|
|
1807
1848
|
])
|
|
1808
|
-
], 8,
|
|
1849
|
+
], 8, Wt)
|
|
1809
1850
|
]),
|
|
1810
|
-
buttonicon:
|
|
1811
|
-
|
|
1812
|
-
h(u(
|
|
1851
|
+
buttonicon: g(() => [
|
|
1852
|
+
k(i.$slots, "buttonIcon", {}, () => [
|
|
1853
|
+
h(u(I), {
|
|
1813
1854
|
icon: "bi:list",
|
|
1814
1855
|
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1815
1856
|
height: "24",
|
|
@@ -1819,24 +1860,24 @@ const _t = { key: 0 }, It = {
|
|
|
1819
1860
|
]),
|
|
1820
1861
|
_: 2
|
|
1821
1862
|
}, [
|
|
1822
|
-
|
|
1863
|
+
U(i.$slots, (n, o) => ({
|
|
1823
1864
|
name: o,
|
|
1824
|
-
fn:
|
|
1825
|
-
|
|
1865
|
+
fn: g((s) => [
|
|
1866
|
+
k(i.$slots, o, W(G(s)))
|
|
1826
1867
|
])
|
|
1827
1868
|
}))
|
|
1828
1869
|
]), 1040, ["pt"]));
|
|
1829
1870
|
}
|
|
1830
|
-
}),
|
|
1871
|
+
}), Gt = { class: "border alternating-item-list" }, Yt = {
|
|
1831
1872
|
key: 0,
|
|
1832
1873
|
class: "p-2 border-top border-bottom",
|
|
1833
1874
|
"data-cy": "title"
|
|
1834
|
-
},
|
|
1875
|
+
}, Jt = { class: "d-inline-block" }, Kt = {
|
|
1835
1876
|
key: 1,
|
|
1836
1877
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1837
|
-
},
|
|
1878
|
+
}, Zt = /* @__PURE__ */ S({
|
|
1838
1879
|
__name: "ForgeMultiSelectPreview",
|
|
1839
|
-
props: /* @__PURE__ */
|
|
1880
|
+
props: /* @__PURE__ */ R({
|
|
1840
1881
|
title: { default: "Selected Items" },
|
|
1841
1882
|
orientation: { default: "row" },
|
|
1842
1883
|
height: { default: "200px" },
|
|
@@ -1850,12 +1891,12 @@ const _t = { key: 0 }, It = {
|
|
|
1850
1891
|
}),
|
|
1851
1892
|
emits: ["update:modelValue"],
|
|
1852
1893
|
setup(e) {
|
|
1853
|
-
const t = e, a =
|
|
1894
|
+
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
1854
1895
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1855
1896
|
};
|
|
1856
1897
|
return (l, n) => {
|
|
1857
|
-
const o =
|
|
1858
|
-
return
|
|
1898
|
+
const o = re, s = q;
|
|
1899
|
+
return d(), v("div", {
|
|
1859
1900
|
class: F(l.orientation === "column" ? "row" : ""),
|
|
1860
1901
|
"data-cy": "multiselect-preview"
|
|
1861
1902
|
}, [
|
|
@@ -1863,7 +1904,7 @@ const _t = { key: 0 }, It = {
|
|
|
1863
1904
|
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1864
1905
|
"data-cy": "multiselect-container"
|
|
1865
1906
|
}, [
|
|
1866
|
-
h(o,
|
|
1907
|
+
h(o, j({
|
|
1867
1908
|
modelValue: a.value,
|
|
1868
1909
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1869
1910
|
}, { ...l.$attrs }, {
|
|
@@ -1872,76 +1913,76 @@ const _t = { key: 0 }, It = {
|
|
|
1872
1913
|
placeholder: l.multiselectPlaceholder,
|
|
1873
1914
|
"data-cy": "multiselect"
|
|
1874
1915
|
}), {
|
|
1875
|
-
default:
|
|
1876
|
-
(
|
|
1916
|
+
default: g(() => [
|
|
1917
|
+
(d(!0), v(E, null, U(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1877
1918
|
]),
|
|
1878
1919
|
_: 3
|
|
1879
1920
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1880
|
-
|
|
1921
|
+
k(l.$slots, "after-multi-select")
|
|
1881
1922
|
], 2),
|
|
1882
1923
|
m("div", {
|
|
1883
1924
|
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
1884
1925
|
"data-cy": "options-preview"
|
|
1885
1926
|
}, [
|
|
1886
1927
|
m("div", {
|
|
1887
|
-
style:
|
|
1928
|
+
style: Se({ height: l.height }),
|
|
1888
1929
|
class: "overflow-auto"
|
|
1889
1930
|
}, [
|
|
1890
|
-
m("div",
|
|
1891
|
-
l.title ? (
|
|
1892
|
-
(
|
|
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", {
|
|
1893
1934
|
key: p.id,
|
|
1894
1935
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1895
1936
|
}, [
|
|
1896
|
-
|
|
1897
|
-
m("span",
|
|
1937
|
+
k(l.$slots, "list-item", { item: p }, () => [
|
|
1938
|
+
m("span", Jt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1898
1939
|
]),
|
|
1899
|
-
l.canRemoveItemFromPreview ? (
|
|
1940
|
+
l.canRemoveItemFromPreview ? (d(), b(s, {
|
|
1900
1941
|
key: 0,
|
|
1901
1942
|
link: "",
|
|
1902
1943
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1903
1944
|
onClick: (c) => i(p.id)
|
|
1904
1945
|
}, {
|
|
1905
|
-
default:
|
|
1906
|
-
h(u(
|
|
1946
|
+
default: g(() => [
|
|
1947
|
+
h(u(I), {
|
|
1907
1948
|
icon: "bi:x",
|
|
1908
1949
|
class: "close-icon",
|
|
1909
1950
|
"data-cy": `close-icon-${p.id}`
|
|
1910
1951
|
}, null, 8, ["data-cy"])
|
|
1911
1952
|
]),
|
|
1912
1953
|
_: 2
|
|
1913
|
-
}, 1032, ["onClick"])) :
|
|
1954
|
+
}, 1032, ["onClick"])) : C("", !0)
|
|
1914
1955
|
]))), 128)),
|
|
1915
|
-
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)
|
|
1916
1957
|
])
|
|
1917
1958
|
], 4)
|
|
1918
1959
|
], 2)
|
|
1919
1960
|
], 2);
|
|
1920
1961
|
};
|
|
1921
1962
|
}
|
|
1922
|
-
}),
|
|
1963
|
+
}), Xt = { class: "d-flex justify-content-between pb-2" }, Qt = {
|
|
1923
1964
|
"data-cy": "title",
|
|
1924
1965
|
class: "my-auto"
|
|
1925
|
-
},
|
|
1966
|
+
}, ea = {
|
|
1926
1967
|
"data-cy": "slot",
|
|
1927
1968
|
class: "d-flex align-items-center"
|
|
1928
|
-
},
|
|
1969
|
+
}, al = /* @__PURE__ */ S({
|
|
1929
1970
|
__name: "ForgePageHeader",
|
|
1930
1971
|
props: {
|
|
1931
1972
|
title: {}
|
|
1932
1973
|
},
|
|
1933
1974
|
setup(e) {
|
|
1934
1975
|
const t = e;
|
|
1935
|
-
return (a, i) => (
|
|
1936
|
-
m("h3",
|
|
1937
|
-
m("div",
|
|
1938
|
-
|
|
1976
|
+
return (a, i) => (d(), v("div", Xt, [
|
|
1977
|
+
m("h3", Qt, B(t.title), 1),
|
|
1978
|
+
m("div", ea, [
|
|
1979
|
+
k(a.$slots, "default")
|
|
1939
1980
|
])
|
|
1940
1981
|
]));
|
|
1941
1982
|
}
|
|
1942
|
-
}),
|
|
1983
|
+
}), ta = { class: "d-flex" }, aa = { "data-cy": "before-slot" }, ia = { class: "position-relative w-100" }, la = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ S({
|
|
1943
1984
|
__name: "ForgeDatepicker",
|
|
1944
|
-
props: /* @__PURE__ */
|
|
1985
|
+
props: /* @__PURE__ */ R({
|
|
1945
1986
|
severity: { default: "primary" },
|
|
1946
1987
|
modelValue: {},
|
|
1947
1988
|
defaultValue: {},
|
|
@@ -1991,7 +2032,6 @@ const _t = { key: 0 }, It = {
|
|
|
1991
2032
|
readonly: { type: Boolean },
|
|
1992
2033
|
placeholder: {},
|
|
1993
2034
|
appendTo: { default: "body" },
|
|
1994
|
-
id: {},
|
|
1995
2035
|
inputId: {},
|
|
1996
2036
|
inputStyle: {},
|
|
1997
2037
|
inputClass: {},
|
|
@@ -2015,37 +2055,38 @@ const _t = { key: 0 }, It = {
|
|
|
2015
2055
|
}),
|
|
2016
2056
|
emits: ["update:modelValue"],
|
|
2017
2057
|
setup(e) {
|
|
2018
|
-
const t = e, a =
|
|
2058
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: s } = oe(() => t.name, void 0, {
|
|
2019
2059
|
initialValue: a.value
|
|
2020
2060
|
}), p = () => {
|
|
2021
2061
|
s(null), a.value = null;
|
|
2022
|
-
}, c = T(() => i.value.length > 0),
|
|
2023
|
-
dayCell: ({ context:
|
|
2062
|
+
}, c = T(() => i.value.length > 0), y = T(() => ({
|
|
2063
|
+
dayCell: ({ context: r }) => ({
|
|
2024
2064
|
class: [
|
|
2025
2065
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
2026
2066
|
{
|
|
2027
|
-
"cursor-pointer": !
|
|
2028
|
-
"pe-none":
|
|
2029
|
-
"text-white":
|
|
2067
|
+
"cursor-pointer": !r.disabled,
|
|
2068
|
+
"pe-none": r.disabled,
|
|
2069
|
+
"text-white": r.selected
|
|
2030
2070
|
},
|
|
2031
2071
|
// Severities
|
|
2032
2072
|
{
|
|
2033
|
-
selected:
|
|
2034
|
-
"text-primary": !
|
|
2035
|
-
"text-brand": !
|
|
2036
|
-
"text-secondary": !
|
|
2037
|
-
"text-success": !
|
|
2038
|
-
"text-
|
|
2039
|
-
"text-
|
|
2040
|
-
"text-
|
|
2073
|
+
selected: r.selected && !r.disabled,
|
|
2074
|
+
"text-primary": !r.selected && r.today && (t.severity === void 0 || t.severity === "primary"),
|
|
2075
|
+
"text-brand": !r.selected && r.today && t.severity === "brand",
|
|
2076
|
+
"text-secondary": !r.selected && r.today && t.severity === "secondary",
|
|
2077
|
+
"text-success": !r.selected && r.today && t.severity === "success",
|
|
2078
|
+
"text-success-alternate": !r.selected && r.today && t.severity === "success-alternate",
|
|
2079
|
+
"text-warning": !r.selected && r.today && t.severity === "warning",
|
|
2080
|
+
"text-danger": !r.selected && r.today && t.severity === "danger",
|
|
2081
|
+
"text-info": !r.selected && r.today && t.severity === "info"
|
|
2041
2082
|
}
|
|
2042
2083
|
]
|
|
2043
2084
|
}),
|
|
2044
|
-
dayLabel: ({ context:
|
|
2085
|
+
dayLabel: ({ context: r }) => ({
|
|
2045
2086
|
class: [
|
|
2046
2087
|
// Disabled States
|
|
2047
2088
|
{
|
|
2048
|
-
"text-muted":
|
|
2089
|
+
"text-muted": r.disabled
|
|
2049
2090
|
}
|
|
2050
2091
|
]
|
|
2051
2092
|
}),
|
|
@@ -2058,6 +2099,7 @@ const _t = { key: 0 }, It = {
|
|
|
2058
2099
|
"btn-link text-brand": t.severity === "brand",
|
|
2059
2100
|
"btn-link text-secondary": t.severity === "secondary",
|
|
2060
2101
|
"btn-link text-success": t.severity === "success",
|
|
2102
|
+
"btn-link text-success-alternate": t.severity === "success-alternate",
|
|
2061
2103
|
"btn-link text-warning": t.severity === "warning",
|
|
2062
2104
|
"btn-link text-danger": t.severity === "danger",
|
|
2063
2105
|
"btn-link text-info": t.severity === "info"
|
|
@@ -2074,6 +2116,7 @@ const _t = { key: 0 }, It = {
|
|
|
2074
2116
|
"btn-link text-brand": t.severity === "brand",
|
|
2075
2117
|
"btn-link text-secondary": t.severity === "secondary",
|
|
2076
2118
|
"btn-link text-success": t.severity === "success",
|
|
2119
|
+
"btn-link text-success-alternate": t.severity === "success-alternate",
|
|
2077
2120
|
"btn-link text-warning": t.severity === "warning",
|
|
2078
2121
|
"btn-link text-danger": t.severity === "danger",
|
|
2079
2122
|
"btn-link text-info": t.severity === "info"
|
|
@@ -2081,83 +2124,85 @@ const _t = { key: 0 }, It = {
|
|
|
2081
2124
|
]
|
|
2082
2125
|
})
|
|
2083
2126
|
},
|
|
2084
|
-
year: ({ context:
|
|
2127
|
+
year: ({ context: r }) => ({
|
|
2085
2128
|
class: [
|
|
2086
2129
|
"col-3 text-center cursor-pointer py-2",
|
|
2087
2130
|
{
|
|
2088
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2089
|
-
"text-brand": t.severity === "brand" &&
|
|
2090
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2091
|
-
"text-success": t.severity === "success" &&
|
|
2092
|
-
"text-
|
|
2093
|
-
"text-
|
|
2094
|
-
"text-
|
|
2131
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2132
|
+
"text-brand": t.severity === "brand" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2133
|
+
"text-secondary": t.severity === "secondary" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2134
|
+
"text-success": t.severity === "success" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2135
|
+
"text-success-alternate": t.severity === "success-alternate" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2136
|
+
"text-warning": t.severity === "warning" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2137
|
+
"text-danger": t.severity === "danger" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2138
|
+
"text-info": t.severity === "info" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2095
2139
|
}
|
|
2096
2140
|
]
|
|
2097
2141
|
}),
|
|
2098
|
-
month: ({ context:
|
|
2142
|
+
month: ({ context: r }) => ({
|
|
2099
2143
|
class: [
|
|
2100
2144
|
"col-3 text-center cursor-pointer py-2",
|
|
2101
2145
|
{
|
|
2102
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2103
|
-
"text-brand": t.severity === "brand" &&
|
|
2104
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2105
|
-
"text-success": t.severity === "success" &&
|
|
2106
|
-
"text-
|
|
2107
|
-
"text-
|
|
2108
|
-
"text-
|
|
2146
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2147
|
+
"text-brand": t.severity === "brand" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2148
|
+
"text-secondary": t.severity === "secondary" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2149
|
+
"text-success": t.severity === "success" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2150
|
+
"text-success-alternate": t.severity === "success-alternate" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2151
|
+
"text-warning": t.severity === "warning" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2152
|
+
"text-danger": t.severity === "danger" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2153
|
+
"text-info": t.severity === "info" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2109
2154
|
}
|
|
2110
2155
|
]
|
|
2111
2156
|
})
|
|
2112
2157
|
}));
|
|
2113
|
-
return (
|
|
2114
|
-
const
|
|
2115
|
-
return
|
|
2116
|
-
m("div",
|
|
2117
|
-
m("span",
|
|
2118
|
-
|
|
2158
|
+
return (r, $) => {
|
|
2159
|
+
const z = De;
|
|
2160
|
+
return d(), v(E, null, [
|
|
2161
|
+
m("div", ta, [
|
|
2162
|
+
m("span", aa, [
|
|
2163
|
+
k(r.$slots, "before")
|
|
2119
2164
|
]),
|
|
2120
|
-
m("div",
|
|
2121
|
-
h(
|
|
2122
|
-
pt:
|
|
2165
|
+
m("div", ia, [
|
|
2166
|
+
h(z, j({ ...t, ...r.$attrs }, {
|
|
2167
|
+
pt: y.value,
|
|
2123
2168
|
modelValue: a.value,
|
|
2124
2169
|
"onUpdate:modelValue": [
|
|
2125
|
-
|
|
2170
|
+
$[0] || ($[0] = (D) => a.value = D),
|
|
2126
2171
|
u(n)
|
|
2127
2172
|
],
|
|
2128
|
-
onBlur:
|
|
2173
|
+
onBlur: $[1] || ($[1] = () => u(o)),
|
|
2129
2174
|
"input-class": { "datepicker-invalid": c.value }
|
|
2130
2175
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2131
|
-
|
|
2176
|
+
J(h(u(I), {
|
|
2132
2177
|
"data-cy": "icon",
|
|
2133
2178
|
icon: "bi:calendar4",
|
|
2134
2179
|
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2135
2180
|
}, null, 8, ["class"]), [
|
|
2136
|
-
[
|
|
2181
|
+
[Z, t.showIcon]
|
|
2137
2182
|
]),
|
|
2138
|
-
|
|
2183
|
+
J(h(u(I), {
|
|
2139
2184
|
"data-cy": "icon",
|
|
2140
2185
|
icon: "bi:x",
|
|
2141
2186
|
onClick: p,
|
|
2142
2187
|
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"])
|
|
2143
2188
|
}, null, 8, ["class"]), [
|
|
2144
|
-
[
|
|
2189
|
+
[Z, t.modelValue]
|
|
2145
2190
|
])
|
|
2146
2191
|
]),
|
|
2147
|
-
m("span",
|
|
2148
|
-
|
|
2192
|
+
m("span", la, [
|
|
2193
|
+
k(r.$slots, "after")
|
|
2149
2194
|
])
|
|
2150
2195
|
]),
|
|
2151
|
-
|
|
2196
|
+
J(m("small", {
|
|
2152
2197
|
"data-cy": "error",
|
|
2153
2198
|
class: "text-invalid"
|
|
2154
|
-
},
|
|
2155
|
-
[
|
|
2199
|
+
}, B(u(l)), 513), [
|
|
2200
|
+
[Z, c.value]
|
|
2156
2201
|
])
|
|
2157
2202
|
], 64);
|
|
2158
2203
|
};
|
|
2159
2204
|
}
|
|
2160
|
-
}),
|
|
2205
|
+
}), il = /* @__PURE__ */ S({
|
|
2161
2206
|
__name: "ForgeRemainingCharacters",
|
|
2162
2207
|
props: {
|
|
2163
2208
|
maxCount: { default: 300 },
|
|
@@ -2165,11 +2210,11 @@ const _t = { key: 0 }, It = {
|
|
|
2165
2210
|
},
|
|
2166
2211
|
setup(e) {
|
|
2167
2212
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2168
|
-
return (i, l) => (
|
|
2213
|
+
return (i, l) => (d(), v("div", {
|
|
2169
2214
|
class: F(a.value < 0 ? "text-danger" : "")
|
|
2170
|
-
}, "Remaining characters: " +
|
|
2215
|
+
}, "Remaining characters: " + B(a.value), 3));
|
|
2171
2216
|
}
|
|
2172
|
-
}),
|
|
2217
|
+
}), na = { class: "d-flex justify-content-between" }, ll = /* @__PURE__ */ S({
|
|
2173
2218
|
__name: "ForgeForm",
|
|
2174
2219
|
props: {
|
|
2175
2220
|
onSubmit: {},
|
|
@@ -2181,7 +2226,7 @@ const _t = { key: 0 }, It = {
|
|
|
2181
2226
|
hideCancel: { type: Boolean, default: !1 }
|
|
2182
2227
|
},
|
|
2183
2228
|
setup(e) {
|
|
2184
|
-
const t = e, a =
|
|
2229
|
+
const t = e, a = P(!1), i = P({
|
|
2185
2230
|
hasError: !1,
|
|
2186
2231
|
message: ""
|
|
2187
2232
|
});
|
|
@@ -2195,39 +2240,39 @@ const _t = { key: 0 }, It = {
|
|
|
2195
2240
|
a.value = !1;
|
|
2196
2241
|
}
|
|
2197
2242
|
return (n, o) => {
|
|
2198
|
-
const s =
|
|
2199
|
-
return
|
|
2243
|
+
const s = q;
|
|
2244
|
+
return d(), v("form", j(n.$attrs, {
|
|
2200
2245
|
novalidate: "",
|
|
2201
2246
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2202
|
-
onSubmit:
|
|
2247
|
+
onSubmit: X(l, ["prevent"])
|
|
2203
2248
|
}), [
|
|
2204
|
-
n.hideTitle ?
|
|
2205
|
-
|
|
2249
|
+
n.hideTitle ? C("", !0) : (d(), v(E, { key: 0 }, [
|
|
2250
|
+
k(n.$slots, "title", {}, () => [
|
|
2206
2251
|
m("h3", {
|
|
2207
2252
|
class: F(n.titleClass),
|
|
2208
2253
|
"data-cy": "form-title"
|
|
2209
|
-
},
|
|
2254
|
+
}, B(n.title), 3)
|
|
2210
2255
|
]),
|
|
2211
2256
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2212
2257
|
], 64)),
|
|
2213
|
-
i.value.hasError ? (
|
|
2258
|
+
i.value.hasError ? (d(), b(de, {
|
|
2214
2259
|
key: 1,
|
|
2215
2260
|
severity: "danger",
|
|
2216
2261
|
"data-cy": "error"
|
|
2217
2262
|
}, {
|
|
2218
|
-
default:
|
|
2219
|
-
|
|
2263
|
+
default: g(() => [
|
|
2264
|
+
k(n.$slots, "error", {
|
|
2220
2265
|
error: i.value.message
|
|
2221
2266
|
}, () => [
|
|
2222
|
-
|
|
2267
|
+
M(B(i.value.message), 1)
|
|
2223
2268
|
])
|
|
2224
2269
|
]),
|
|
2225
2270
|
_: 3
|
|
2226
|
-
})) :
|
|
2227
|
-
|
|
2228
|
-
m("div",
|
|
2229
|
-
|
|
2230
|
-
n.hideCancel ?
|
|
2271
|
+
})) : C("", !0),
|
|
2272
|
+
k(n.$slots, "default"),
|
|
2273
|
+
m("div", na, [
|
|
2274
|
+
k(n.$slots, "cancel", {}, () => [
|
|
2275
|
+
n.hideCancel ? C("", !0) : (d(), b(s, {
|
|
2231
2276
|
key: 0,
|
|
2232
2277
|
"data-cy": "cancel-btn",
|
|
2233
2278
|
type: "reset",
|
|
@@ -2235,42 +2280,42 @@ const _t = { key: 0 }, It = {
|
|
|
2235
2280
|
outlined: "",
|
|
2236
2281
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2237
2282
|
}, {
|
|
2238
|
-
default:
|
|
2239
|
-
|
|
2283
|
+
default: g(() => [
|
|
2284
|
+
M(B(n.cancelText), 1)
|
|
2240
2285
|
]),
|
|
2241
2286
|
_: 1
|
|
2242
2287
|
}))
|
|
2243
2288
|
]),
|
|
2244
|
-
|
|
2289
|
+
k(n.$slots, "submit", { submit: l }, () => [
|
|
2245
2290
|
h(s, {
|
|
2246
2291
|
"data-cy": "submit-btn",
|
|
2247
2292
|
type: "submit",
|
|
2248
2293
|
severity: "primary",
|
|
2249
2294
|
class: "ms-auto"
|
|
2250
2295
|
}, {
|
|
2251
|
-
default:
|
|
2252
|
-
|
|
2296
|
+
default: g(() => [
|
|
2297
|
+
M(B(n.submitText), 1)
|
|
2253
2298
|
]),
|
|
2254
2299
|
_: 1
|
|
2255
2300
|
})
|
|
2256
2301
|
])
|
|
2257
2302
|
]),
|
|
2258
|
-
a.value ? (
|
|
2303
|
+
a.value ? (d(), b(pe, {
|
|
2259
2304
|
key: 2,
|
|
2260
2305
|
"data-cy": "loading-spinner"
|
|
2261
|
-
})) :
|
|
2306
|
+
})) : C("", !0)
|
|
2262
2307
|
], 16);
|
|
2263
2308
|
};
|
|
2264
2309
|
}
|
|
2265
|
-
}),
|
|
2310
|
+
}), oa = {
|
|
2266
2311
|
key: 1,
|
|
2267
2312
|
class: "d-flex flex-column w-100"
|
|
2268
|
-
},
|
|
2313
|
+
}, sa = ["for"], ra = {
|
|
2269
2314
|
key: 0,
|
|
2270
2315
|
class: "text-danger fw-600"
|
|
2271
|
-
},
|
|
2316
|
+
}, nl = /* @__PURE__ */ S({
|
|
2272
2317
|
__name: "ForgeFormField",
|
|
2273
|
-
props: /* @__PURE__ */
|
|
2318
|
+
props: /* @__PURE__ */ R({
|
|
2274
2319
|
name: {},
|
|
2275
2320
|
fieldLabelPosition: { default: "top" },
|
|
2276
2321
|
fieldLabel: {},
|
|
@@ -2285,24 +2330,24 @@ const _t = { key: 0 }, It = {
|
|
|
2285
2330
|
}),
|
|
2286
2331
|
emits: ["update:modelValue"],
|
|
2287
2332
|
setup(e) {
|
|
2288
|
-
const t =
|
|
2289
|
-
a.type == "number" ? s(
|
|
2290
|
-
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } =
|
|
2333
|
+
const t = N(e, "modelValue"), a = e, i = (y) => {
|
|
2334
|
+
a.type == "number" ? s(y.value) : s(y);
|
|
2335
|
+
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
|
|
2291
2336
|
initialValue: t.value
|
|
2292
2337
|
}), c = T(() => l.value.length > 0);
|
|
2293
|
-
return
|
|
2294
|
-
t.value =
|
|
2295
|
-
}, { immediate: !0 }), (
|
|
2296
|
-
const
|
|
2297
|
-
return a.type === "checkbox" ? (
|
|
2338
|
+
return le(() => n.value, (y) => {
|
|
2339
|
+
t.value = y;
|
|
2340
|
+
}, { immediate: !0 }), (y, r) => {
|
|
2341
|
+
const $ = Ne, z = Oe, D = se, O = ae, A = re, x = xe;
|
|
2342
|
+
return a.type === "checkbox" ? (d(), b(ye, j({
|
|
2298
2343
|
key: 0,
|
|
2299
2344
|
id: a.name,
|
|
2300
2345
|
label: a.fieldLabel
|
|
2301
|
-
},
|
|
2346
|
+
}, y.$attrs, {
|
|
2302
2347
|
name: a.name,
|
|
2303
2348
|
modelValue: t.value,
|
|
2304
|
-
"onUpdate:modelValue":
|
|
2305
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2349
|
+
"onUpdate:modelValue": r[0] || (r[0] = (w) => t.value = w)
|
|
2350
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), v("div", oa, [
|
|
2306
2351
|
m("div", {
|
|
2307
2352
|
"data-cy": "input-wrapper",
|
|
2308
2353
|
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2311,80 +2356,80 @@ const _t = { key: 0 }, It = {
|
|
|
2311
2356
|
for: a.name,
|
|
2312
2357
|
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2313
2358
|
}, [
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
], 10,
|
|
2317
|
-
|
|
2318
|
-
a.type === "number" ? (
|
|
2359
|
+
M(B(a.fieldLabel) + " ", 1),
|
|
2360
|
+
y.required ? (d(), v("span", ra, "*")) : C("", !0)
|
|
2361
|
+
], 10, sa),
|
|
2362
|
+
k(y.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2363
|
+
a.type === "number" ? (d(), b(u(fe), j({
|
|
2319
2364
|
key: 0,
|
|
2320
2365
|
id: a.name
|
|
2321
|
-
},
|
|
2366
|
+
}, y.$attrs, {
|
|
2322
2367
|
placeholder: a.placeholder,
|
|
2323
2368
|
"input-class": { "is-invalid": c.value },
|
|
2324
2369
|
class: { "is-invalid": c.value },
|
|
2325
2370
|
onInput: i,
|
|
2326
2371
|
modelValue: t.value,
|
|
2327
|
-
"onUpdate:modelValue":
|
|
2328
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (
|
|
2372
|
+
"onUpdate:modelValue": r[1] || (r[1] = (w) => t.value = w)
|
|
2373
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b($, j({
|
|
2329
2374
|
key: 1,
|
|
2330
2375
|
id: a.name
|
|
2331
|
-
},
|
|
2376
|
+
}, y.$attrs, {
|
|
2332
2377
|
placeholder: a.placeholder,
|
|
2333
2378
|
class: { "is-invalid": c.value },
|
|
2334
2379
|
modelValue: t.value,
|
|
2335
|
-
"onUpdate:modelValue":
|
|
2380
|
+
"onUpdate:modelValue": r[2] || (r[2] = (w) => t.value = w),
|
|
2336
2381
|
onInput: i,
|
|
2337
2382
|
onBlur: u(p)
|
|
2338
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (
|
|
2383
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), b(z, j({
|
|
2339
2384
|
key: 2,
|
|
2340
2385
|
id: a.name
|
|
2341
|
-
},
|
|
2386
|
+
}, y.$attrs, {
|
|
2342
2387
|
placeholder: a.placeholder,
|
|
2343
2388
|
mask: a.mask,
|
|
2344
2389
|
class: { "is-invalid": c.value },
|
|
2345
2390
|
modelValue: t.value,
|
|
2346
|
-
"onUpdate:modelValue":
|
|
2391
|
+
"onUpdate:modelValue": r[3] || (r[3] = (w) => t.value = w),
|
|
2347
2392
|
onComplete: i,
|
|
2348
2393
|
onBlur: u(p)
|
|
2349
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (
|
|
2394
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), b(D, j({
|
|
2350
2395
|
key: 3,
|
|
2351
2396
|
id: a.name
|
|
2352
|
-
},
|
|
2397
|
+
}, y.$attrs, {
|
|
2353
2398
|
placeholder: a.placeholder,
|
|
2354
2399
|
class: { "is-invalid": c.value },
|
|
2355
2400
|
modelValue: t.value,
|
|
2356
|
-
"onUpdate:modelValue":
|
|
2401
|
+
"onUpdate:modelValue": r[4] || (r[4] = (w) => t.value = w),
|
|
2357
2402
|
onInput: i,
|
|
2358
2403
|
onBlur: u(p)
|
|
2359
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (
|
|
2404
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), b(O, j({ key: 4 }, { ...a, ...y.$attrs }, {
|
|
2360
2405
|
modelValue: t.value,
|
|
2361
|
-
"onUpdate:modelValue":
|
|
2406
|
+
"onUpdate:modelValue": r[5] || (r[5] = (w) => t.value = w),
|
|
2362
2407
|
class: { "is-invalid": c.value }
|
|
2363
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (
|
|
2408
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), b(A, j({ key: 5 }, { ...a, ...y.$attrs }, {
|
|
2364
2409
|
modelValue: t.value,
|
|
2365
|
-
"onUpdate:modelValue":
|
|
2410
|
+
"onUpdate:modelValue": r[6] || (r[6] = (w) => t.value = w),
|
|
2366
2411
|
class: { "is-invalid": c.value }
|
|
2367
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (
|
|
2412
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), b(Zt, j({ key: 6 }, { ...a, ...y.$attrs }, {
|
|
2368
2413
|
modelValue: t.value,
|
|
2369
|
-
"onUpdate:modelValue":
|
|
2414
|
+
"onUpdate:modelValue": r[7] || (r[7] = (w) => t.value = w),
|
|
2370
2415
|
class: { "is-invalid": c.value }
|
|
2371
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (
|
|
2416
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), b(x, j({ key: 7 }, { ...a, ...y.$attrs }, {
|
|
2372
2417
|
modelValue: t.value,
|
|
2373
|
-
"onUpdate:modelValue":
|
|
2418
|
+
"onUpdate:modelValue": r[8] || (r[8] = (w) => t.value = w),
|
|
2374
2419
|
class: { "is-invalid": c.value }
|
|
2375
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2420
|
+
}), null, 16, ["modelValue", "class"])) : C("", !0)
|
|
2376
2421
|
])
|
|
2377
2422
|
], 2),
|
|
2378
|
-
|
|
2423
|
+
J(m("small", {
|
|
2379
2424
|
"data-cy": "error",
|
|
2380
2425
|
class: "invalid-feedback"
|
|
2381
|
-
},
|
|
2382
|
-
[
|
|
2426
|
+
}, B(u(o)), 513), [
|
|
2427
|
+
[Z, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2383
2428
|
])
|
|
2384
2429
|
]));
|
|
2385
2430
|
};
|
|
2386
2431
|
}
|
|
2387
|
-
}),
|
|
2432
|
+
}), ol = /* @__PURE__ */ S({
|
|
2388
2433
|
__name: "ForgeChip",
|
|
2389
2434
|
props: {
|
|
2390
2435
|
chipSeverity: { default: "primary" },
|
|
@@ -2413,21 +2458,22 @@ const _t = { key: 0 }, It = {
|
|
|
2413
2458
|
"bg-success-subtle border-success text-success": t.chipSeverity === "success",
|
|
2414
2459
|
"bg-warning-subtle border-warning text-warning": t.chipSeverity === "warning",
|
|
2415
2460
|
"bg-danger-subtle border-danger text-danger": t.chipSeverity === "danger",
|
|
2416
|
-
"bg-info-subtle border-info text-info": t.chipSeverity === "info"
|
|
2461
|
+
"bg-info-subtle border-info text-info": t.chipSeverity === "info",
|
|
2462
|
+
"bg-info-success-alternate border-success-alternate text-success-alternate": t.chipSeverity === "success-alternate"
|
|
2417
2463
|
}
|
|
2418
2464
|
]
|
|
2419
2465
|
}));
|
|
2420
2466
|
return (i, l) => {
|
|
2421
|
-
const n =
|
|
2422
|
-
return
|
|
2423
|
-
default:
|
|
2424
|
-
(
|
|
2467
|
+
const n = Ae;
|
|
2468
|
+
return d(), b(n, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2469
|
+
default: g(() => [
|
|
2470
|
+
(d(!0), v(E, null, U(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2425
2471
|
]),
|
|
2426
2472
|
_: 3
|
|
2427
2473
|
}, 16, ["pt"]);
|
|
2428
2474
|
};
|
|
2429
2475
|
}
|
|
2430
|
-
}),
|
|
2476
|
+
}), sl = /* @__PURE__ */ S({
|
|
2431
2477
|
__name: "ForgeProgressBar",
|
|
2432
2478
|
props: {
|
|
2433
2479
|
severity: { default: "primary" },
|
|
@@ -2451,6 +2497,8 @@ const _t = { key: 0 }, It = {
|
|
|
2451
2497
|
return "bg-secondary";
|
|
2452
2498
|
case "success":
|
|
2453
2499
|
return "bg-success";
|
|
2500
|
+
case "success-alternate":
|
|
2501
|
+
return "bg-success-alternate";
|
|
2454
2502
|
case "warning":
|
|
2455
2503
|
return "bg-warning";
|
|
2456
2504
|
case "danger":
|
|
@@ -2471,17 +2519,17 @@ const _t = { key: 0 }, It = {
|
|
|
2471
2519
|
}
|
|
2472
2520
|
}));
|
|
2473
2521
|
return (o, s) => {
|
|
2474
|
-
const p =
|
|
2475
|
-
return
|
|
2476
|
-
default:
|
|
2477
|
-
|
|
2522
|
+
const p = Ee;
|
|
2523
|
+
return d(), b(p, j({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2524
|
+
default: g(() => [
|
|
2525
|
+
k(o.$slots, "default")
|
|
2478
2526
|
]),
|
|
2479
2527
|
_: 3
|
|
2480
2528
|
}, 16, ["pt"]);
|
|
2481
2529
|
};
|
|
2482
2530
|
}
|
|
2483
2531
|
});
|
|
2484
|
-
var
|
|
2532
|
+
var da = /* @__PURE__ */ S({
|
|
2485
2533
|
name: "VueDrawingCanvas",
|
|
2486
2534
|
props: {
|
|
2487
2535
|
strokeType: {
|
|
@@ -2794,13 +2842,13 @@ var ia = /* @__PURE__ */ $({
|
|
|
2794
2842
|
},
|
|
2795
2843
|
wrapText(e, t, a, i, l, n) {
|
|
2796
2844
|
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2797
|
-
var p = t.split(o).filter((
|
|
2798
|
-
for (let
|
|
2799
|
-
for (var c = p[
|
|
2800
|
-
var
|
|
2801
|
-
|
|
2845
|
+
var p = t.split(o).filter((O) => O.length > 0);
|
|
2846
|
+
for (let O = 0; O < p.length; O++) {
|
|
2847
|
+
for (var c = p[O].split(s).filter((A) => A.length > 0), y = "", r = 0; r < c.length; r++) {
|
|
2848
|
+
var $ = y + c[r] + " ", z = e.measureText($), D = z.width;
|
|
2849
|
+
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = c[r] + " ", i += n) : y = $;
|
|
2802
2850
|
}
|
|
2803
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2851
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += c.length > 0 ? n : 0;
|
|
2804
2852
|
}
|
|
2805
2853
|
},
|
|
2806
2854
|
save() {
|
|
@@ -2827,13 +2875,13 @@ var ia = /* @__PURE__ */ $({
|
|
|
2827
2875
|
} else if (a.type === "Text") {
|
|
2828
2876
|
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2829
2877
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2830
|
-
let
|
|
2831
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2878
|
+
let r, $;
|
|
2879
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(r, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, $ * -1);
|
|
2832
2880
|
}
|
|
2833
2881
|
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2834
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2835
|
-
if (s.width = Number(c), s.height = Number(
|
|
2836
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2882
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2883
|
+
if (s.width = Number(c), s.height = Number(y), p)
|
|
2884
|
+
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);
|
|
2837
2885
|
}
|
|
2838
2886
|
},
|
|
2839
2887
|
isEmpty() {
|
|
@@ -2844,7 +2892,7 @@ var ia = /* @__PURE__ */ $({
|
|
|
2844
2892
|
}
|
|
2845
2893
|
},
|
|
2846
2894
|
render() {
|
|
2847
|
-
return
|
|
2895
|
+
return Ce("canvas", {
|
|
2848
2896
|
id: this.canvasId,
|
|
2849
2897
|
height: Number(this.height),
|
|
2850
2898
|
width: Number(this.width),
|
|
@@ -2871,7 +2919,7 @@ var ia = /* @__PURE__ */ $({
|
|
|
2871
2919
|
});
|
|
2872
2920
|
}
|
|
2873
2921
|
});
|
|
2874
|
-
const
|
|
2922
|
+
const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1 gap-1" }, rl = /* @__PURE__ */ S({
|
|
2875
2923
|
__name: "ForgeScratchpad",
|
|
2876
2924
|
props: {
|
|
2877
2925
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2884,7 +2932,7 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2884
2932
|
},
|
|
2885
2933
|
emits: ["save"],
|
|
2886
2934
|
setup(e, { emit: t }) {
|
|
2887
|
-
const a = e, i = t, l =
|
|
2935
|
+
const a = e, i = t, l = ze("drawingCanvas"), n = P(), o = () => {
|
|
2888
2936
|
l == null || l.value.reset();
|
|
2889
2937
|
}, s = () => {
|
|
2890
2938
|
l == null || l.value.redo();
|
|
@@ -2893,72 +2941,72 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2893
2941
|
}, c = () => {
|
|
2894
2942
|
i("save", l.value.isEmpty());
|
|
2895
2943
|
};
|
|
2896
|
-
return (
|
|
2897
|
-
const
|
|
2898
|
-
return
|
|
2899
|
-
h(u(
|
|
2944
|
+
return (y, r) => {
|
|
2945
|
+
const $ = q;
|
|
2946
|
+
return d(), v("div", pa, [
|
|
2947
|
+
h(u(da), j({
|
|
2900
2948
|
ref_key: "drawingCanvas",
|
|
2901
2949
|
ref: l,
|
|
2902
2950
|
image: n.value,
|
|
2903
|
-
"onUpdate:image":
|
|
2951
|
+
"onUpdate:image": r[0] || (r[0] = (z) => n.value = z),
|
|
2904
2952
|
"data-cy": "drawing-canvas",
|
|
2905
2953
|
class: "border canvas"
|
|
2906
|
-
}, { ...
|
|
2907
|
-
height:
|
|
2908
|
-
width:
|
|
2909
|
-
style: `height: ${
|
|
2910
|
-
"line-join":
|
|
2954
|
+
}, { ...y.$attrs }, {
|
|
2955
|
+
height: y.height,
|
|
2956
|
+
width: y.width,
|
|
2957
|
+
style: `height: ${y.height}px; width: ${y.width}px`,
|
|
2958
|
+
"line-join": y.lineJoin
|
|
2911
2959
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2912
|
-
m("div",
|
|
2913
|
-
a.showUndo ? (
|
|
2960
|
+
m("div", ca, [
|
|
2961
|
+
a.showUndo ? (d(), b($, {
|
|
2914
2962
|
key: 0,
|
|
2915
2963
|
onClick: p,
|
|
2916
2964
|
outlined: "",
|
|
2917
2965
|
"data-cy": "undo-button"
|
|
2918
2966
|
}, {
|
|
2919
|
-
default:
|
|
2920
|
-
|
|
2967
|
+
default: g(() => r[1] || (r[1] = [
|
|
2968
|
+
M("Undo")
|
|
2921
2969
|
])),
|
|
2922
2970
|
_: 1
|
|
2923
|
-
})) :
|
|
2924
|
-
a.showRedo ? (
|
|
2971
|
+
})) : C("", !0),
|
|
2972
|
+
a.showRedo ? (d(), b($, {
|
|
2925
2973
|
key: 1,
|
|
2926
2974
|
onClick: s,
|
|
2927
2975
|
outlined: "",
|
|
2928
2976
|
"data-cy": "redo-button"
|
|
2929
2977
|
}, {
|
|
2930
|
-
default:
|
|
2931
|
-
|
|
2978
|
+
default: g(() => r[2] || (r[2] = [
|
|
2979
|
+
M("Redo")
|
|
2932
2980
|
])),
|
|
2933
2981
|
_: 1
|
|
2934
|
-
})) :
|
|
2935
|
-
a.showClear ? (
|
|
2982
|
+
})) : C("", !0),
|
|
2983
|
+
a.showClear ? (d(), b($, {
|
|
2936
2984
|
key: 2,
|
|
2937
2985
|
onClick: o,
|
|
2938
2986
|
outlined: "",
|
|
2939
2987
|
"data-cy": "clear-button"
|
|
2940
2988
|
}, {
|
|
2941
|
-
default:
|
|
2942
|
-
|
|
2989
|
+
default: g(() => r[3] || (r[3] = [
|
|
2990
|
+
M("Clear")
|
|
2943
2991
|
])),
|
|
2944
2992
|
_: 1
|
|
2945
|
-
})) :
|
|
2946
|
-
a.showSave ? (
|
|
2993
|
+
})) : C("", !0),
|
|
2994
|
+
a.showSave ? (d(), b($, {
|
|
2947
2995
|
key: 3,
|
|
2948
2996
|
onClick: c,
|
|
2949
2997
|
class: "ms-auto",
|
|
2950
2998
|
"data-cy": "save-button"
|
|
2951
2999
|
}, {
|
|
2952
|
-
default:
|
|
2953
|
-
|
|
3000
|
+
default: g(() => r[4] || (r[4] = [
|
|
3001
|
+
M("Save")
|
|
2954
3002
|
])),
|
|
2955
3003
|
_: 1
|
|
2956
|
-
})) :
|
|
3004
|
+
})) : C("", !0)
|
|
2957
3005
|
])
|
|
2958
3006
|
]);
|
|
2959
3007
|
};
|
|
2960
3008
|
}
|
|
2961
|
-
}),
|
|
3009
|
+
}), ua = { class: "value text-white w-100 text-center" }, dl = /* @__PURE__ */ S({
|
|
2962
3010
|
__name: "ForgeStatWidget",
|
|
2963
3011
|
props: {
|
|
2964
3012
|
size: { default: "md" },
|
|
@@ -2966,15 +3014,15 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2966
3014
|
},
|
|
2967
3015
|
setup(e) {
|
|
2968
3016
|
const t = e;
|
|
2969
|
-
return (a, i) => (
|
|
3017
|
+
return (a, i) => (d(), v("div", j(a.$attrs, {
|
|
2970
3018
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2971
3019
|
}), [
|
|
2972
|
-
m("span",
|
|
2973
|
-
|
|
3020
|
+
m("span", ua, [
|
|
3021
|
+
k(a.$slots, "default")
|
|
2974
3022
|
])
|
|
2975
3023
|
], 16));
|
|
2976
3024
|
}
|
|
2977
|
-
}),
|
|
3025
|
+
}), ma = { key: 0 }, pl = /* @__PURE__ */ S({
|
|
2978
3026
|
__name: "ForgeStepper",
|
|
2979
3027
|
props: {
|
|
2980
3028
|
currentStep: { default: 1 },
|
|
@@ -3021,32 +3069,32 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3021
3069
|
]
|
|
3022
3070
|
})
|
|
3023
3071
|
}));
|
|
3024
|
-
return (i, l) => (
|
|
3025
|
-
default:
|
|
3026
|
-
h(u(
|
|
3027
|
-
default:
|
|
3028
|
-
(
|
|
3072
|
+
return (i, l) => (d(), b(u(qe), { value: i.currentStep }, {
|
|
3073
|
+
default: g(() => [
|
|
3074
|
+
h(u(Le), null, {
|
|
3075
|
+
default: g(() => [
|
|
3076
|
+
(d(!0), v(E, null, U(i.steps, (n) => (d(), b(u(Ue), j({
|
|
3029
3077
|
key: n.value,
|
|
3030
3078
|
value: n.value,
|
|
3031
3079
|
disabled: n.disabled,
|
|
3032
3080
|
ref_for: !0
|
|
3033
3081
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3034
|
-
default:
|
|
3035
|
-
i.showStepLabel ? (
|
|
3082
|
+
default: g(() => [
|
|
3083
|
+
i.showStepLabel ? (d(), v("div", ma, B(n.label), 1)) : C("", !0)
|
|
3036
3084
|
]),
|
|
3037
3085
|
_: 2
|
|
3038
3086
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3039
3087
|
]),
|
|
3040
3088
|
_: 1
|
|
3041
3089
|
}),
|
|
3042
|
-
h(u(
|
|
3043
|
-
default:
|
|
3044
|
-
(
|
|
3090
|
+
h(u(He), null, {
|
|
3091
|
+
default: g(() => [
|
|
3092
|
+
(d(!0), v(E, null, U(i.steps, (n) => (d(), b(u(Re), {
|
|
3045
3093
|
key: n.value,
|
|
3046
3094
|
value: n.value
|
|
3047
3095
|
}, {
|
|
3048
|
-
default:
|
|
3049
|
-
|
|
3096
|
+
default: g(() => [
|
|
3097
|
+
k(i.$slots, "step" + n.value)
|
|
3050
3098
|
]),
|
|
3051
3099
|
_: 2
|
|
3052
3100
|
}, 1032, ["value"]))), 128))
|
|
@@ -3057,7 +3105,7 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3057
3105
|
_: 3
|
|
3058
3106
|
}, 8, ["value"]));
|
|
3059
3107
|
}
|
|
3060
|
-
}),
|
|
3108
|
+
}), va = { class: "p-4 text-wrap w-100" }, fa = { class: "p-4 text-wrap w-100" }, cl = /* @__PURE__ */ S({
|
|
3061
3109
|
__name: "ForgeTile",
|
|
3062
3110
|
props: {
|
|
3063
3111
|
severity: { default: "primary" },
|
|
@@ -3068,30 +3116,30 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3068
3116
|
setup(e) {
|
|
3069
3117
|
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" : ""}`);
|
|
3070
3118
|
return (l, n) => {
|
|
3071
|
-
const o =
|
|
3072
|
-
return t.clickable ? (
|
|
3119
|
+
const o = q;
|
|
3120
|
+
return t.clickable ? (d(), b(o, {
|
|
3073
3121
|
key: 0,
|
|
3074
3122
|
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
3075
3123
|
severity: t.severity,
|
|
3076
3124
|
unstyled: "",
|
|
3077
3125
|
"data-cy": "button-tile"
|
|
3078
3126
|
}, {
|
|
3079
|
-
default:
|
|
3080
|
-
m("div",
|
|
3081
|
-
|
|
3082
|
-
n[0] || (n[0] =
|
|
3127
|
+
default: g(() => [
|
|
3128
|
+
m("div", va, [
|
|
3129
|
+
k(l.$slots, "default", {}, () => [
|
|
3130
|
+
n[0] || (n[0] = M("Tile Content"))
|
|
3083
3131
|
])
|
|
3084
3132
|
])
|
|
3085
3133
|
]),
|
|
3086
3134
|
_: 3
|
|
3087
|
-
}, 8, ["severity", "class"])) : (
|
|
3135
|
+
}, 8, ["severity", "class"])) : (d(), v("div", {
|
|
3088
3136
|
key: 1,
|
|
3089
3137
|
class: F(["d-flex w-100", i.value]),
|
|
3090
3138
|
"data-cy": "tile"
|
|
3091
3139
|
}, [
|
|
3092
|
-
m("div",
|
|
3093
|
-
|
|
3094
|
-
n[1] || (n[1] =
|
|
3140
|
+
m("div", fa, [
|
|
3141
|
+
k(l.$slots, "default", {}, () => [
|
|
3142
|
+
n[1] || (n[1] = M("Tile Content"))
|
|
3095
3143
|
])
|
|
3096
3144
|
])
|
|
3097
3145
|
], 2));
|
|
@@ -3101,13 +3149,13 @@ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3101
3149
|
function Q(e, t) {
|
|
3102
3150
|
return e > 1 ? `${t}s` : t;
|
|
3103
3151
|
}
|
|
3104
|
-
const
|
|
3152
|
+
const ga = {
|
|
3105
3153
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3106
3154
|
"data-cy": "pagination-header"
|
|
3107
|
-
},
|
|
3155
|
+
}, ba = { class: "ms-2" }, ya = { key: 0 }, xa = {
|
|
3108
3156
|
class: "w-auto",
|
|
3109
3157
|
"data-cy": "total"
|
|
3110
|
-
},
|
|
3158
|
+
}, he = /* @__PURE__ */ S({
|
|
3111
3159
|
__name: "ForgePaginationHeader",
|
|
3112
3160
|
props: {
|
|
3113
3161
|
total: {},
|
|
@@ -3122,9 +3170,9 @@ const pa = {
|
|
|
3122
3170
|
const o = Math.ceil(i.total / i.perPage);
|
|
3123
3171
|
return `${o} ${Q(o, "page")}`;
|
|
3124
3172
|
});
|
|
3125
|
-
return (o, s) => (
|
|
3126
|
-
s[2] || (s[2] =
|
|
3127
|
-
m("div",
|
|
3173
|
+
return (o, s) => (d(), v("div", ga, [
|
|
3174
|
+
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3175
|
+
m("div", ba, [
|
|
3128
3176
|
h(u(ae), {
|
|
3129
3177
|
options: i.pageSizes,
|
|
3130
3178
|
"model-value": i.perPage,
|
|
@@ -3132,16 +3180,16 @@ const pa = {
|
|
|
3132
3180
|
onChange: s[0] || (s[0] = (p) => l(p))
|
|
3133
3181
|
}, null, 8, ["options", "model-value"])
|
|
3134
3182
|
]),
|
|
3135
|
-
i.total ? (
|
|
3183
|
+
i.total ? (d(), v("div", ya, [
|
|
3136
3184
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3137
|
-
m("span",
|
|
3138
|
-
])) :
|
|
3185
|
+
m("span", xa, B(i.total) + " " + B(u(Q)(i.total, "result")) + " across " + B(n.value), 1)
|
|
3186
|
+
])) : C("", !0)
|
|
3139
3187
|
]));
|
|
3140
3188
|
}
|
|
3141
|
-
}),
|
|
3189
|
+
}), ha = { class: "position-relative" }, wa = { "data-cy": "above-table-slot" }, ka = { class: "d-flex w-100" }, $a = {
|
|
3142
3190
|
class: "mx-auto",
|
|
3143
3191
|
"data-cy": "empty-message"
|
|
3144
|
-
},
|
|
3192
|
+
}, Ba = { class: "d-flex" }, Fa = { class: "d-flex align-items-end mb-2" }, Sa = { key: 0 }, Ca = { class: "ms-auto" }, ul = /* @__PURE__ */ S({
|
|
3145
3193
|
__name: "ForgeTable",
|
|
3146
3194
|
props: {
|
|
3147
3195
|
value: {},
|
|
@@ -3227,7 +3275,7 @@ const pa = {
|
|
|
3227
3275
|
},
|
|
3228
3276
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3229
3277
|
setup(e, { emit: t }) {
|
|
3230
|
-
const a = t, i = e, l =
|
|
3278
|
+
const a = t, i = e, l = P(), n = P([5, 10, 20, 50, 100]), o = P(10), s = P({
|
|
3231
3279
|
filters: i.filters,
|
|
3232
3280
|
perPage: o.value,
|
|
3233
3281
|
page: 0,
|
|
@@ -3235,9 +3283,9 @@ const pa = {
|
|
|
3235
3283
|
sortField: "",
|
|
3236
3284
|
total: i.totalRecords ?? i.value.length
|
|
3237
3285
|
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3238
|
-
const
|
|
3239
|
-
return `${
|
|
3240
|
-
}),
|
|
3286
|
+
const x = Math.ceil(p.value / o.value);
|
|
3287
|
+
return `${x} ${Q(x, "page")}`;
|
|
3288
|
+
}), y = T(() => ({
|
|
3241
3289
|
thead: () => ({
|
|
3242
3290
|
class: [
|
|
3243
3291
|
{
|
|
@@ -3253,160 +3301,428 @@ const pa = {
|
|
|
3253
3301
|
"text-brand": i.severity === "brand",
|
|
3254
3302
|
"text-primary": i.severity === "primary",
|
|
3255
3303
|
"text-success": i.severity === "success",
|
|
3304
|
+
"text-success-alternate": i.severity === "success-alternate",
|
|
3256
3305
|
"text-warning": i.severity === "warning",
|
|
3257
3306
|
"text-danger": i.severity === "danger",
|
|
3258
3307
|
"text-info": i.severity === "info"
|
|
3259
3308
|
}
|
|
3260
3309
|
]
|
|
3261
3310
|
})
|
|
3262
|
-
})),
|
|
3311
|
+
})), r = () => {
|
|
3263
3312
|
if (i.clearAll)
|
|
3264
3313
|
i.clearAll();
|
|
3265
3314
|
else
|
|
3266
|
-
for (const
|
|
3267
|
-
typeof i.filters[
|
|
3268
|
-
|
|
3269
|
-
},
|
|
3315
|
+
for (const x in i.filters)
|
|
3316
|
+
typeof i.filters[x] == "string" ? i.filters[x] = "" : i.filters[x].value = null;
|
|
3317
|
+
D(i.filters);
|
|
3318
|
+
}, $ = () => {
|
|
3270
3319
|
l.value.exportCSV();
|
|
3271
|
-
},
|
|
3272
|
-
var
|
|
3273
|
-
s.value.sortDirection =
|
|
3274
|
-
},
|
|
3275
|
-
s.value.filters =
|
|
3276
|
-
},
|
|
3277
|
-
s.value.page =
|
|
3278
|
-
},
|
|
3320
|
+
}, z = (x) => {
|
|
3321
|
+
var w;
|
|
3322
|
+
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);
|
|
3323
|
+
}, D = (x) => {
|
|
3324
|
+
s.value.filters = x, a("update:tableContext", s.value), a("update:filters", x);
|
|
3325
|
+
}, O = (x) => {
|
|
3326
|
+
s.value.page = x.page, a("update:tableContext", s.value), a("page", x);
|
|
3327
|
+
}, A = () => {
|
|
3279
3328
|
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3280
3329
|
};
|
|
3281
|
-
return
|
|
3282
|
-
s.value.filters =
|
|
3283
|
-
}, { deep: !0 }),
|
|
3284
|
-
m("span",
|
|
3285
|
-
|
|
3330
|
+
return le(() => i.filters, (x) => {
|
|
3331
|
+
s.value.filters = x, a("update:tableContext", s.value);
|
|
3332
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (x, w) => (d(), v("div", ha, [
|
|
3333
|
+
m("span", wa, [
|
|
3334
|
+
k(x.$slots, "above-table")
|
|
3286
3335
|
]),
|
|
3287
|
-
h(u(
|
|
3336
|
+
h(u(We), j({
|
|
3288
3337
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3289
|
-
}, { ...i, ...
|
|
3290
|
-
pt:
|
|
3338
|
+
}, { ...i, ...x.$attrs }, {
|
|
3339
|
+
pt: y.value,
|
|
3291
3340
|
rows: o.value,
|
|
3292
3341
|
"total-records": p.value,
|
|
3293
3342
|
"filter-display": i.filters ? "row" : void 0,
|
|
3294
3343
|
ref_key: "forgeTable",
|
|
3295
3344
|
ref: l,
|
|
3296
3345
|
"data-cy": "table",
|
|
3297
|
-
"onUpdate:filters":
|
|
3298
|
-
onSort:
|
|
3299
|
-
onPage:
|
|
3346
|
+
"onUpdate:filters": D,
|
|
3347
|
+
onSort: z,
|
|
3348
|
+
onPage: O,
|
|
3300
3349
|
showHeaders: ""
|
|
3301
|
-
}),
|
|
3302
|
-
empty:
|
|
3303
|
-
m("div",
|
|
3304
|
-
m("h5",
|
|
3350
|
+
}), te({
|
|
3351
|
+
empty: g(() => [
|
|
3352
|
+
m("div", ka, [
|
|
3353
|
+
m("h5", $a, B(x.emptyMessage ?? "No items Found."), 1)
|
|
3305
3354
|
])
|
|
3306
3355
|
]),
|
|
3307
|
-
header:
|
|
3356
|
+
header: g(() => [
|
|
3308
3357
|
m("div", {
|
|
3309
3358
|
class: F(i.loading ? "opacity-50" : "")
|
|
3310
3359
|
}, [
|
|
3311
|
-
m("div",
|
|
3312
|
-
m("div",
|
|
3313
|
-
|
|
3314
|
-
h(
|
|
3360
|
+
m("div", Ba, [
|
|
3361
|
+
m("div", Fa, [
|
|
3362
|
+
x.paginator && !x.legacyPaginationFooter ? (d(), v("span", Sa, [
|
|
3363
|
+
h(he, {
|
|
3315
3364
|
total: p.value,
|
|
3316
3365
|
"page-sizes": n.value,
|
|
3317
3366
|
"per-page": o.value,
|
|
3318
3367
|
"onUpdate:perPage": [
|
|
3319
|
-
|
|
3320
|
-
|
|
3368
|
+
w[0] || (w[0] = (_) => o.value = _),
|
|
3369
|
+
A
|
|
3321
3370
|
]
|
|
3322
3371
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3323
|
-
])) :
|
|
3372
|
+
])) : C("", !0)
|
|
3324
3373
|
]),
|
|
3325
|
-
m("div",
|
|
3326
|
-
|
|
3374
|
+
m("div", Ca, [
|
|
3375
|
+
x.showClearButton ? (d(), b(u(q), {
|
|
3327
3376
|
key: 0,
|
|
3328
3377
|
outlined: "",
|
|
3329
|
-
class: F(
|
|
3330
|
-
onClick:
|
|
3378
|
+
class: F(x.showExporterButton ? "me-2" : ""),
|
|
3379
|
+
onClick: r,
|
|
3331
3380
|
"data-cy": "clear-all"
|
|
3332
3381
|
}, {
|
|
3333
|
-
default:
|
|
3334
|
-
h(u(
|
|
3382
|
+
default: g(() => [
|
|
3383
|
+
h(u(I), {
|
|
3335
3384
|
icon: "bi:funnel-fill",
|
|
3336
3385
|
width: "24",
|
|
3337
3386
|
height: "24"
|
|
3338
3387
|
}),
|
|
3339
|
-
|
|
3388
|
+
w[2] || (w[2] = M(" Clear "))
|
|
3340
3389
|
]),
|
|
3341
3390
|
_: 1
|
|
3342
|
-
}, 8, ["class"])) :
|
|
3343
|
-
|
|
3391
|
+
}, 8, ["class"])) : C("", !0),
|
|
3392
|
+
x.showExporterButton ? (d(), b(u(q), {
|
|
3344
3393
|
key: 1,
|
|
3345
3394
|
outlined: "",
|
|
3346
|
-
onClick:
|
|
3395
|
+
onClick: $,
|
|
3347
3396
|
"data-cy": "exporter"
|
|
3348
3397
|
}, {
|
|
3349
|
-
default:
|
|
3350
|
-
h(u(
|
|
3398
|
+
default: g(() => [
|
|
3399
|
+
h(u(I), {
|
|
3351
3400
|
icon: "typcn:export",
|
|
3352
3401
|
width: "24",
|
|
3353
3402
|
height: "24"
|
|
3354
3403
|
}),
|
|
3355
|
-
|
|
3404
|
+
w[3] || (w[3] = M(" Export "))
|
|
3356
3405
|
]),
|
|
3357
3406
|
_: 1
|
|
3358
|
-
})) :
|
|
3359
|
-
|
|
3407
|
+
})) : C("", !0),
|
|
3408
|
+
k(x.$slots, "column-customiser")
|
|
3360
3409
|
])
|
|
3361
3410
|
])
|
|
3362
3411
|
], 2)
|
|
3363
3412
|
]),
|
|
3364
|
-
default:
|
|
3365
|
-
|
|
3413
|
+
default: g(() => [
|
|
3414
|
+
k(x.$slots, "default")
|
|
3366
3415
|
]),
|
|
3367
3416
|
_: 2
|
|
3368
3417
|
}, [
|
|
3369
|
-
|
|
3370
|
-
name:
|
|
3371
|
-
fn:
|
|
3372
|
-
|
|
3418
|
+
U(x.$slots, (_, f) => ({
|
|
3419
|
+
name: f,
|
|
3420
|
+
fn: g((V) => [
|
|
3421
|
+
k(x.$slots, f, W(G(V || {})))
|
|
3373
3422
|
])
|
|
3374
3423
|
})),
|
|
3375
|
-
|
|
3424
|
+
x.legacyPaginationFooter ? {
|
|
3376
3425
|
name: "paginatorstart",
|
|
3377
|
-
fn:
|
|
3426
|
+
fn: g(() => [
|
|
3378
3427
|
m("span", {
|
|
3379
3428
|
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3380
3429
|
"data-cy": "legacy-page-size"
|
|
3381
3430
|
}, [
|
|
3382
|
-
|
|
3431
|
+
w[4] || (w[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3383
3432
|
h(u(ae), {
|
|
3384
3433
|
options: n.value,
|
|
3385
3434
|
modelValue: o.value,
|
|
3386
|
-
"onUpdate:modelValue":
|
|
3435
|
+
"onUpdate:modelValue": w[1] || (w[1] = (_) => o.value = _),
|
|
3387
3436
|
class: "ms-2",
|
|
3388
|
-
onClick:
|
|
3437
|
+
onClick: A
|
|
3389
3438
|
}, null, 8, ["options", "modelValue"])
|
|
3390
3439
|
], 2)
|
|
3391
3440
|
]),
|
|
3392
3441
|
key: "0"
|
|
3393
3442
|
} : void 0,
|
|
3394
|
-
|
|
3443
|
+
x.legacyPaginationFooter ? {
|
|
3395
3444
|
name: "paginatorend",
|
|
3396
|
-
fn:
|
|
3445
|
+
fn: g(() => [
|
|
3397
3446
|
m("span", {
|
|
3398
3447
|
"data-cy": "legacy-total",
|
|
3399
3448
|
class: F(i.loading ? "opacity-50" : "")
|
|
3400
|
-
},
|
|
3449
|
+
}, B(p.value) + " " + B(u(Q)(p.value, "result")) + " across " + B(c.value), 3)
|
|
3401
3450
|
]),
|
|
3402
3451
|
key: "1"
|
|
3403
3452
|
} : void 0
|
|
3404
3453
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3405
3454
|
]));
|
|
3406
3455
|
}
|
|
3407
|
-
}),
|
|
3456
|
+
}), 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({
|
|
3457
|
+
__name: "ForgeTreeTable",
|
|
3458
|
+
props: {
|
|
3459
|
+
stripedRows: { type: Boolean, default: !1 },
|
|
3460
|
+
parentExpanderFullRow: { type: Boolean, default: !1 },
|
|
3461
|
+
totalColumns: { default: 1 },
|
|
3462
|
+
severity: {},
|
|
3463
|
+
value: {},
|
|
3464
|
+
legacyPaginationFooter: { type: Boolean, default: !1 },
|
|
3465
|
+
showClearButton: { type: Boolean, default: !1 },
|
|
3466
|
+
clearAll: {},
|
|
3467
|
+
emptyMessage: {},
|
|
3468
|
+
dataKey: {},
|
|
3469
|
+
expandedKeys: {},
|
|
3470
|
+
selectionKeys: {},
|
|
3471
|
+
selectionMode: {},
|
|
3472
|
+
metaKeySelection: { type: Boolean },
|
|
3473
|
+
contextMenu: { type: Boolean },
|
|
3474
|
+
contextMenuSelection: {},
|
|
3475
|
+
rows: {},
|
|
3476
|
+
first: {},
|
|
3477
|
+
totalRecords: {},
|
|
3478
|
+
paginator: { type: Boolean, default: !0 },
|
|
3479
|
+
paginatorPosition: {},
|
|
3480
|
+
alwaysShowPaginator: { type: Boolean, default: !0 },
|
|
3481
|
+
paginatorTemplate: {},
|
|
3482
|
+
pageLinkSize: {},
|
|
3483
|
+
rowsPerPageOptions: {},
|
|
3484
|
+
currentPageReportTemplate: {},
|
|
3485
|
+
lazy: { type: Boolean },
|
|
3486
|
+
loading: { type: Boolean },
|
|
3487
|
+
loadingIcon: {},
|
|
3488
|
+
loadingMode: {},
|
|
3489
|
+
rowHover: { type: Boolean },
|
|
3490
|
+
autoLayout: { type: Boolean },
|
|
3491
|
+
sortField: {},
|
|
3492
|
+
sortOrder: {},
|
|
3493
|
+
defaultSortOrder: {},
|
|
3494
|
+
multiSortMeta: {},
|
|
3495
|
+
sortMode: {},
|
|
3496
|
+
removableSort: { type: Boolean },
|
|
3497
|
+
filters: {},
|
|
3498
|
+
filterMode: {},
|
|
3499
|
+
filterLocale: {},
|
|
3500
|
+
resizableColumns: { type: Boolean },
|
|
3501
|
+
columnResizeMode: {},
|
|
3502
|
+
indentation: {},
|
|
3503
|
+
showGridlines: { type: Boolean },
|
|
3504
|
+
scrollable: { type: Boolean },
|
|
3505
|
+
scrollHeight: {},
|
|
3506
|
+
size: {},
|
|
3507
|
+
tableStyle: {},
|
|
3508
|
+
tableClass: {},
|
|
3509
|
+
tableProps: {},
|
|
3510
|
+
dt: {},
|
|
3511
|
+
pt: {},
|
|
3512
|
+
ptOptions: {},
|
|
3513
|
+
unstyled: { type: Boolean }
|
|
3514
|
+
},
|
|
3515
|
+
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3516
|
+
setup(e, { emit: t }) {
|
|
3517
|
+
const a = e, i = t, l = P([5, 10, 20, 50, 100]), n = P(10), o = P(0), s = P(0), p = P({
|
|
3518
|
+
filters: a.filters,
|
|
3519
|
+
perPage: n.value,
|
|
3520
|
+
page: 0,
|
|
3521
|
+
sortDirection: "None",
|
|
3522
|
+
sortField: "",
|
|
3523
|
+
total: a.totalRecords ?? a.value.length
|
|
3524
|
+
}), c = T(() => a.totalRecords ?? a.value.length), y = T(() => {
|
|
3525
|
+
const f = Math.ceil(c.value / n.value);
|
|
3526
|
+
return `${f} ${Q(f, "page")}`;
|
|
3527
|
+
}), r = T(() => ({
|
|
3528
|
+
root: "position-relative",
|
|
3529
|
+
table: (f) => ({
|
|
3530
|
+
class: [
|
|
3531
|
+
"table position-relative",
|
|
3532
|
+
{
|
|
3533
|
+
"table-striped": f.attrs.stripedRows,
|
|
3534
|
+
"table-hover": f.props.rowHover,
|
|
3535
|
+
"table-bordered": f.props.showGridlines,
|
|
3536
|
+
"table-sm": f.props.size === "small",
|
|
3537
|
+
"table-lg": f.props.size === "large",
|
|
3538
|
+
"opacity-50": f.props.loading
|
|
3539
|
+
}
|
|
3540
|
+
]
|
|
3541
|
+
}),
|
|
3542
|
+
loadingIcon: () => ({
|
|
3543
|
+
class: [
|
|
3544
|
+
"spinner-border border-0",
|
|
3545
|
+
{
|
|
3546
|
+
"text-brand": a.severity === "brand",
|
|
3547
|
+
"text-primary": a.severity === "primary",
|
|
3548
|
+
"text-success": a.severity === "success",
|
|
3549
|
+
"text-success-alternate": a.severity === "success-alternate",
|
|
3550
|
+
"text-warning": a.severity === "warning",
|
|
3551
|
+
"text-danger": a.severity === "danger",
|
|
3552
|
+
"text-info": a.severity === "info"
|
|
3553
|
+
}
|
|
3554
|
+
]
|
|
3555
|
+
}),
|
|
3556
|
+
row: ({ instance: f }) => [
|
|
3557
|
+
{
|
|
3558
|
+
"parent-node": f.node.hasOwnProperty("children")
|
|
3559
|
+
}
|
|
3560
|
+
]
|
|
3561
|
+
}));
|
|
3562
|
+
le(() => a.parentExpanderFullRow, (f) => {
|
|
3563
|
+
f ? $() : z();
|
|
3564
|
+
});
|
|
3565
|
+
const $ = () => {
|
|
3566
|
+
a.parentExpanderFullRow && setTimeout(
|
|
3567
|
+
() => {
|
|
3568
|
+
const f = Array.from(
|
|
3569
|
+
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3570
|
+
);
|
|
3571
|
+
Array.from(
|
|
3572
|
+
document.querySelectorAll(".parent-node td")
|
|
3573
|
+
).forEach((L) => {
|
|
3574
|
+
L.classList.add("d-none");
|
|
3575
|
+
}), f.forEach((L) => {
|
|
3576
|
+
L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
|
|
3577
|
+
});
|
|
3578
|
+
},
|
|
3579
|
+
0
|
|
3580
|
+
);
|
|
3581
|
+
}, z = () => {
|
|
3582
|
+
setTimeout(
|
|
3583
|
+
() => {
|
|
3584
|
+
const f = Array.from(
|
|
3585
|
+
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3586
|
+
), V = Array.from(
|
|
3587
|
+
document.querySelectorAll(".parent-node td")
|
|
3588
|
+
);
|
|
3589
|
+
f.forEach((L) => {
|
|
3590
|
+
L.removeAttribute("colspan");
|
|
3591
|
+
}), V.forEach((L) => {
|
|
3592
|
+
L.classList.remove("d-none");
|
|
3593
|
+
});
|
|
3594
|
+
},
|
|
3595
|
+
0
|
|
3596
|
+
);
|
|
3597
|
+
}, D = () => {
|
|
3598
|
+
if (a.clearAll)
|
|
3599
|
+
a.clearAll();
|
|
3600
|
+
else
|
|
3601
|
+
for (const f in a.filters)
|
|
3602
|
+
typeof a.filters[f] == "string" ? a.filters[f] = "" : a.filters[f].value = null;
|
|
3603
|
+
A(a.filters);
|
|
3604
|
+
}, O = (f) => {
|
|
3605
|
+
var V;
|
|
3606
|
+
p.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = f.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", f), $();
|
|
3607
|
+
}, A = (f) => {
|
|
3608
|
+
p.value.filters = f, i("update:tableContext", p.value), i("update:filters", f), $();
|
|
3609
|
+
}, x = (f) => {
|
|
3610
|
+
p.value.page = s.value = f.page, _(), i("update:tableContext", p.value), i("page", f), $();
|
|
3611
|
+
}, w = () => {
|
|
3612
|
+
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), _(), i("update:tableContext", p.value), $();
|
|
3613
|
+
};
|
|
3614
|
+
le(() => a.filters, (f) => {
|
|
3615
|
+
p.value.filters = f, i("update:tableContext", p.value);
|
|
3616
|
+
}, { deep: !0 }), ne(() => {
|
|
3617
|
+
$(), i("update:tableContext", p.value);
|
|
3618
|
+
});
|
|
3619
|
+
const _ = () => {
|
|
3620
|
+
o.value = s.value * n.value;
|
|
3621
|
+
};
|
|
3622
|
+
return (f, V) => (d(), v("div", za, [
|
|
3623
|
+
m("span", Ta, [
|
|
3624
|
+
k(f.$slots, "above-table")
|
|
3625
|
+
]),
|
|
3626
|
+
h(u(Ge), j({
|
|
3627
|
+
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3628
|
+
}, { ...a, ...f.$attrs }, {
|
|
3629
|
+
pt: r.value,
|
|
3630
|
+
"filter-display": a.filters ? "row" : void 0,
|
|
3631
|
+
rows: f.paginator ? n.value : void 0,
|
|
3632
|
+
"data-cy": "tree-table",
|
|
3633
|
+
"onUpdate:filters": A,
|
|
3634
|
+
onSort: O,
|
|
3635
|
+
onPage: x,
|
|
3636
|
+
onNodeExpand: V[2] || (V[2] = () => $()),
|
|
3637
|
+
showHeaders: "",
|
|
3638
|
+
first: o.value
|
|
3639
|
+
}), te({
|
|
3640
|
+
header: g(() => [
|
|
3641
|
+
m("div", {
|
|
3642
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
3643
|
+
}, [
|
|
3644
|
+
m("div", ja, [
|
|
3645
|
+
m("div", Ia, [
|
|
3646
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), v("span", Pa, [
|
|
3647
|
+
h(he, {
|
|
3648
|
+
total: c.value,
|
|
3649
|
+
"page-sizes": l.value,
|
|
3650
|
+
"per-page": n.value,
|
|
3651
|
+
"onUpdate:perPage": [
|
|
3652
|
+
V[0] || (V[0] = (L) => n.value = L),
|
|
3653
|
+
w
|
|
3654
|
+
]
|
|
3655
|
+
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3656
|
+
])) : C("", !0)
|
|
3657
|
+
]),
|
|
3658
|
+
m("div", _a, [
|
|
3659
|
+
f.showClearButton ? (d(), b(u(q), {
|
|
3660
|
+
key: 0,
|
|
3661
|
+
outlined: "",
|
|
3662
|
+
onClick: D,
|
|
3663
|
+
"data-cy": "clear-all"
|
|
3664
|
+
}, {
|
|
3665
|
+
default: g(() => [
|
|
3666
|
+
h(u(I), {
|
|
3667
|
+
icon: "bi:funnel-fill",
|
|
3668
|
+
width: "24",
|
|
3669
|
+
height: "24"
|
|
3670
|
+
}),
|
|
3671
|
+
V[3] || (V[3] = M(" Clear "))
|
|
3672
|
+
]),
|
|
3673
|
+
_: 1
|
|
3674
|
+
})) : C("", !0),
|
|
3675
|
+
k(f.$slots, "column-customiser")
|
|
3676
|
+
])
|
|
3677
|
+
])
|
|
3678
|
+
], 2)
|
|
3679
|
+
]),
|
|
3680
|
+
default: g(() => [
|
|
3681
|
+
k(f.$slots, "default")
|
|
3682
|
+
]),
|
|
3683
|
+
_: 2
|
|
3684
|
+
}, [
|
|
3685
|
+
U(f.$slots, (L, ve) => ({
|
|
3686
|
+
name: ve,
|
|
3687
|
+
fn: g(($e) => [
|
|
3688
|
+
k(f.$slots, ve, W(G($e || {})))
|
|
3689
|
+
])
|
|
3690
|
+
})),
|
|
3691
|
+
f.legacyPaginationFooter ? {
|
|
3692
|
+
name: "paginatorstart",
|
|
3693
|
+
fn: g(() => [
|
|
3694
|
+
m("span", {
|
|
3695
|
+
class: F(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3696
|
+
"data-cy": "legacy-page-size"
|
|
3697
|
+
}, [
|
|
3698
|
+
V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3699
|
+
h(u(ae), {
|
|
3700
|
+
options: l.value,
|
|
3701
|
+
modelValue: n.value,
|
|
3702
|
+
"onUpdate:modelValue": V[1] || (V[1] = (L) => n.value = L),
|
|
3703
|
+
class: "ms-2",
|
|
3704
|
+
onClick: w
|
|
3705
|
+
}, null, 8, ["options", "modelValue"])
|
|
3706
|
+
], 2)
|
|
3707
|
+
]),
|
|
3708
|
+
key: "0"
|
|
3709
|
+
} : void 0,
|
|
3710
|
+
f.legacyPaginationFooter ? {
|
|
3711
|
+
name: "paginatorend",
|
|
3712
|
+
fn: g(() => [
|
|
3713
|
+
m("span", {
|
|
3714
|
+
"data-cy": "legacy-total",
|
|
3715
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
3716
|
+
}, B(c.value) + " " + B(u(Q)(c.value, "result")) + " across " + B(y.value), 3)
|
|
3717
|
+
]),
|
|
3718
|
+
key: "1"
|
|
3719
|
+
} : void 0
|
|
3720
|
+
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3721
|
+
]));
|
|
3722
|
+
}
|
|
3723
|
+
}), Ma = { class: "d-flex position-relative" }, Va = { class: "d-flex w-100" }, vl = /* @__PURE__ */ S({
|
|
3408
3724
|
__name: "ForgeFilterHeader",
|
|
3409
|
-
props: /* @__PURE__ */
|
|
3725
|
+
props: /* @__PURE__ */ R({
|
|
3410
3726
|
dataType: {},
|
|
3411
3727
|
dropdownOptions: {},
|
|
3412
3728
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3419,13 +3735,13 @@ const pa = {
|
|
|
3419
3735
|
}),
|
|
3420
3736
|
emits: ["update:modelValue"],
|
|
3421
3737
|
setup(e) {
|
|
3422
|
-
const t =
|
|
3738
|
+
const t = N(e, "modelValue"), a = (l, n) => {
|
|
3423
3739
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3424
3740
|
return n;
|
|
3425
3741
|
const o = (s) => {
|
|
3426
3742
|
var c;
|
|
3427
3743
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3428
|
-
(
|
|
3744
|
+
(y) => e.optionValue ? y[e.optionValue] === s : Object.keys(y).every((r) => s.hasOwnProperty(r) && y[r] === s[r])
|
|
3429
3745
|
);
|
|
3430
3746
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3431
3747
|
};
|
|
@@ -3434,21 +3750,21 @@ const pa = {
|
|
|
3434
3750
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3435
3751
|
};
|
|
3436
3752
|
return (l, n) => {
|
|
3437
|
-
const o =
|
|
3438
|
-
return
|
|
3439
|
-
l.dataType === "numeric" ? (
|
|
3753
|
+
const o = fe, s = q;
|
|
3754
|
+
return d(), v("div", Ma, [
|
|
3755
|
+
l.dataType === "numeric" ? (d(), b(o, j({
|
|
3440
3756
|
key: 0,
|
|
3441
3757
|
modelValue: t.value,
|
|
3442
3758
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3443
3759
|
modelModifiers: { trim: !0 }
|
|
3444
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (
|
|
3760
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), b(xe, j({
|
|
3445
3761
|
key: 1,
|
|
3446
3762
|
modelValue: t.value,
|
|
3447
3763
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3448
3764
|
}, l.$attrs, {
|
|
3449
3765
|
"show-icon": !1,
|
|
3450
3766
|
"show-on-focus": !0
|
|
3451
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (
|
|
3767
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(u(ae), j({
|
|
3452
3768
|
key: 2,
|
|
3453
3769
|
modelValue: t.value,
|
|
3454
3770
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3457,19 +3773,19 @@ const pa = {
|
|
|
3457
3773
|
"option-value": l.optionValue,
|
|
3458
3774
|
"option-label": l.optionLabel
|
|
3459
3775
|
}), {
|
|
3460
|
-
value:
|
|
3461
|
-
m("div",
|
|
3776
|
+
value: g(({ value: p, placeholder: c }) => [
|
|
3777
|
+
m("div", Va, [
|
|
3462
3778
|
m("span", {
|
|
3463
3779
|
class: F({ "filter-placeholder": p === null })
|
|
3464
|
-
},
|
|
3465
|
-
l.showClearButton && t.value !== null ? (
|
|
3780
|
+
}, B(a(p, c)), 3),
|
|
3781
|
+
l.showClearButton && t.value !== null ? (d(), b(s, {
|
|
3466
3782
|
key: 0,
|
|
3467
|
-
onClick:
|
|
3783
|
+
onClick: X(i, ["prevent"]),
|
|
3468
3784
|
size: "small",
|
|
3469
3785
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3470
3786
|
}, {
|
|
3471
|
-
default:
|
|
3472
|
-
h(u(
|
|
3787
|
+
default: g(() => [
|
|
3788
|
+
h(u(I), {
|
|
3473
3789
|
icon: "bi:x",
|
|
3474
3790
|
width: "1rem",
|
|
3475
3791
|
height: "1rem",
|
|
@@ -3477,11 +3793,11 @@ const pa = {
|
|
|
3477
3793
|
})
|
|
3478
3794
|
]),
|
|
3479
3795
|
_: 1
|
|
3480
|
-
})) :
|
|
3796
|
+
})) : C("", !0)
|
|
3481
3797
|
])
|
|
3482
3798
|
]),
|
|
3483
3799
|
_: 1
|
|
3484
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (
|
|
3800
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), b(u(re), j({
|
|
3485
3801
|
key: 3,
|
|
3486
3802
|
modelValue: t.value,
|
|
3487
3803
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3491,20 +3807,20 @@ const pa = {
|
|
|
3491
3807
|
"option-label": l.optionLabel,
|
|
3492
3808
|
"option-value": l.optionValue,
|
|
3493
3809
|
filter: ""
|
|
3494
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
3810
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), b(u(se), j({
|
|
3495
3811
|
key: 4,
|
|
3496
3812
|
modelValue: t.value,
|
|
3497
3813
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3498
3814
|
modelModifiers: { trim: !0 }
|
|
3499
3815
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3500
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (
|
|
3816
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), b(s, {
|
|
3501
3817
|
key: 5,
|
|
3502
|
-
onClick:
|
|
3818
|
+
onClick: X(i, ["prevent"]),
|
|
3503
3819
|
size: "small",
|
|
3504
3820
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3505
3821
|
}, {
|
|
3506
|
-
default:
|
|
3507
|
-
h(u(
|
|
3822
|
+
default: g(() => [
|
|
3823
|
+
h(u(I), {
|
|
3508
3824
|
icon: "bi:x",
|
|
3509
3825
|
width: "1rem",
|
|
3510
3826
|
height: "1rem",
|
|
@@ -3512,11 +3828,11 @@ const pa = {
|
|
|
3512
3828
|
})
|
|
3513
3829
|
]),
|
|
3514
3830
|
_: 1
|
|
3515
|
-
})) :
|
|
3831
|
+
})) : C("", !0)
|
|
3516
3832
|
]);
|
|
3517
3833
|
};
|
|
3518
3834
|
}
|
|
3519
|
-
}),
|
|
3835
|
+
}), ce = {
|
|
3520
3836
|
"application/prs.cww": ["cww"],
|
|
3521
3837
|
"application/prs.xsf+xml": ["xsf"],
|
|
3522
3838
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -4215,8 +4531,8 @@ const pa = {
|
|
|
4215
4531
|
"video/x-smv": ["smv"],
|
|
4216
4532
|
"x-conference/x-cooltalk": ["ice"]
|
|
4217
4533
|
};
|
|
4218
|
-
Object.freeze(
|
|
4219
|
-
const
|
|
4534
|
+
Object.freeze(ce);
|
|
4535
|
+
const ue = {
|
|
4220
4536
|
"application/andrew-inset": ["ez"],
|
|
4221
4537
|
"application/appinstaller": ["appinstaller"],
|
|
4222
4538
|
"application/applixware": ["aw"],
|
|
@@ -4568,31 +4884,31 @@ const pe = {
|
|
|
4568
4884
|
"video/quicktime": ["qt", "mov"],
|
|
4569
4885
|
"video/webm": ["webm"]
|
|
4570
4886
|
};
|
|
4571
|
-
Object.freeze(
|
|
4572
|
-
var
|
|
4887
|
+
Object.freeze(ue);
|
|
4888
|
+
var H = function(e, t, a, i) {
|
|
4573
4889
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4574
4890
|
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");
|
|
4575
4891
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4576
|
-
},
|
|
4577
|
-
class
|
|
4892
|
+
}, K, ee, Y;
|
|
4893
|
+
class we {
|
|
4578
4894
|
constructor(...t) {
|
|
4579
|
-
|
|
4895
|
+
K.set(this, /* @__PURE__ */ new Map()), ee.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
|
|
4580
4896
|
for (const a of t)
|
|
4581
4897
|
this.define(a);
|
|
4582
4898
|
}
|
|
4583
4899
|
define(t, a = !1) {
|
|
4584
4900
|
for (let [i, l] of Object.entries(t)) {
|
|
4585
|
-
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()),
|
|
4586
|
-
const n =
|
|
4901
|
+
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
|
|
4902
|
+
const n = H(this, Y, "f").get(i);
|
|
4587
4903
|
let o = !0;
|
|
4588
4904
|
for (let s of l) {
|
|
4589
4905
|
const p = s.startsWith("*");
|
|
4590
|
-
if (s = p ? s.slice(1) : s, n == null || n.add(s), o &&
|
|
4906
|
+
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this, ee, "f").set(i, s), o = !1, p)
|
|
4591
4907
|
continue;
|
|
4592
|
-
const c =
|
|
4908
|
+
const c = H(this, K, "f").get(s);
|
|
4593
4909
|
if (c && c != i && !a)
|
|
4594
4910
|
throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
4595
|
-
|
|
4911
|
+
H(this, K, "f").set(s, i);
|
|
4596
4912
|
}
|
|
4597
4913
|
}
|
|
4598
4914
|
return this;
|
|
@@ -4601,33 +4917,33 @@ class ye {
|
|
|
4601
4917
|
if (typeof t != "string")
|
|
4602
4918
|
return null;
|
|
4603
4919
|
const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
|
|
4604
|
-
return !(i.length < a.length - 1) && l ? null :
|
|
4920
|
+
return !(i.length < a.length - 1) && l ? null : H(this, K, "f").get(i) ?? null;
|
|
4605
4921
|
}
|
|
4606
4922
|
getExtension(t) {
|
|
4607
4923
|
var a;
|
|
4608
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t &&
|
|
4924
|
+
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);
|
|
4609
4925
|
}
|
|
4610
4926
|
getAllExtensions(t) {
|
|
4611
|
-
return typeof t != "string" ? null :
|
|
4927
|
+
return typeof t != "string" ? null : H(this, Y, "f").get(t.toLowerCase()) ?? null;
|
|
4612
4928
|
}
|
|
4613
4929
|
_freeze() {
|
|
4614
4930
|
this.define = () => {
|
|
4615
4931
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
4616
4932
|
}, Object.freeze(this);
|
|
4617
|
-
for (const t of
|
|
4933
|
+
for (const t of H(this, Y, "f").values())
|
|
4618
4934
|
Object.freeze(t);
|
|
4619
4935
|
return this;
|
|
4620
4936
|
}
|
|
4621
4937
|
_getTestState() {
|
|
4622
4938
|
return {
|
|
4623
|
-
types:
|
|
4624
|
-
extensions:
|
|
4939
|
+
types: H(this, K, "f"),
|
|
4940
|
+
extensions: H(this, ee, "f")
|
|
4625
4941
|
};
|
|
4626
4942
|
}
|
|
4627
4943
|
}
|
|
4628
|
-
|
|
4629
|
-
const
|
|
4630
|
-
function
|
|
4944
|
+
K = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
4945
|
+
const Da = new we(ue, ce)._freeze();
|
|
4946
|
+
function ke(e, t, a, i) {
|
|
4631
4947
|
const l = t.flatMap((n) => n.file);
|
|
4632
4948
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
4633
4949
|
const o = l.findIndex((p) => p.name === n.name);
|
|
@@ -4639,10 +4955,10 @@ function xe(e, t, a, i) {
|
|
|
4639
4955
|
})) : t[o].status = "Duplicate";
|
|
4640
4956
|
}), t;
|
|
4641
4957
|
}
|
|
4642
|
-
async function
|
|
4958
|
+
async function Oa(e, t) {
|
|
4643
4959
|
if (e === "Uploaded" && t !== null)
|
|
4644
4960
|
try {
|
|
4645
|
-
await new
|
|
4961
|
+
await new ge(t).delete();
|
|
4646
4962
|
} catch (a) {
|
|
4647
4963
|
if (a !== "BlobNotFound") {
|
|
4648
4964
|
e = "DeleteFileFailed";
|
|
@@ -4650,7 +4966,7 @@ async function Sa(e, t) {
|
|
|
4650
4966
|
}
|
|
4651
4967
|
}
|
|
4652
4968
|
}
|
|
4653
|
-
function
|
|
4969
|
+
function me(e, t = !0, a = 1) {
|
|
4654
4970
|
const i = t ? 1e3 : 1024;
|
|
4655
4971
|
if (Math.abs(e) < i)
|
|
4656
4972
|
return e + " B";
|
|
@@ -4662,22 +4978,22 @@ function ce(e, t = !0, a = 1) {
|
|
|
4662
4978
|
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4663
4979
|
return e.toFixed(a) + " " + l[n];
|
|
4664
4980
|
}
|
|
4665
|
-
function
|
|
4981
|
+
function Na(e) {
|
|
4666
4982
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4667
4983
|
}
|
|
4668
|
-
function
|
|
4984
|
+
function Aa(e) {
|
|
4669
4985
|
return URL.createObjectURL(e);
|
|
4670
4986
|
}
|
|
4671
|
-
function
|
|
4672
|
-
const e = new
|
|
4987
|
+
function Ea() {
|
|
4988
|
+
const e = new we(ue, ce);
|
|
4673
4989
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4674
4990
|
}
|
|
4675
|
-
const
|
|
4991
|
+
const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disabled", "multiple"], La = {
|
|
4676
4992
|
class: "text-break accepted-file-types-container",
|
|
4677
4993
|
id: "accepted-file-types-overlay"
|
|
4678
|
-
},
|
|
4994
|
+
}, Ra = /* @__PURE__ */ S({
|
|
4679
4995
|
__name: "UploadButton",
|
|
4680
|
-
props: /* @__PURE__ */
|
|
4996
|
+
props: /* @__PURE__ */ R({
|
|
4681
4997
|
acceptedFileTypes: {},
|
|
4682
4998
|
maxFileInput: {},
|
|
4683
4999
|
showDragDropArea: { type: Boolean }
|
|
@@ -4687,13 +5003,13 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4687
5003
|
}),
|
|
4688
5004
|
emits: ["update:modelValue"],
|
|
4689
5005
|
setup(e) {
|
|
4690
|
-
const t =
|
|
4691
|
-
t.value =
|
|
5006
|
+
const t = N(e, "modelValue"), a = P(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
5007
|
+
t.value = ke(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4692
5008
|
};
|
|
4693
5009
|
return (o, s) => {
|
|
4694
|
-
const p =
|
|
4695
|
-
return
|
|
4696
|
-
|
|
5010
|
+
const p = q;
|
|
5011
|
+
return d(), v("div", Ua, [
|
|
5012
|
+
k(o.$slots, "message"),
|
|
4697
5013
|
m("div", null, [
|
|
4698
5014
|
m("input", {
|
|
4699
5015
|
id: "file-input",
|
|
@@ -4703,57 +5019,57 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4703
5019
|
disabled: l.value,
|
|
4704
5020
|
multiple: o.maxFileInput > 1,
|
|
4705
5021
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
4706
|
-
}, null, 40,
|
|
5022
|
+
}, null, 40, qa),
|
|
4707
5023
|
m("label", {
|
|
4708
5024
|
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
4709
5025
|
id: "file-input-button",
|
|
4710
5026
|
for: "file-input"
|
|
4711
5027
|
}, [
|
|
4712
|
-
|
|
4713
|
-
h(u(
|
|
5028
|
+
k(o.$slots, "button-content", {}, () => [
|
|
5029
|
+
h(u(I), {
|
|
4714
5030
|
icon: "bi:upload",
|
|
4715
5031
|
class: "me-2",
|
|
4716
5032
|
height: "20px",
|
|
4717
5033
|
width: "20px"
|
|
4718
5034
|
}),
|
|
4719
|
-
s[1] || (s[1] =
|
|
5035
|
+
s[1] || (s[1] = M(" Browse your computer "))
|
|
4720
5036
|
])
|
|
4721
5037
|
], 2)
|
|
4722
5038
|
]),
|
|
4723
|
-
o.showDragDropArea ? (
|
|
5039
|
+
o.showDragDropArea ? (d(), b(p, {
|
|
4724
5040
|
link: "",
|
|
4725
5041
|
class: "ms-auto",
|
|
4726
5042
|
key: o.acceptedFileTypes.length,
|
|
4727
5043
|
id: "accepted-file-types",
|
|
4728
5044
|
onClick: i
|
|
4729
5045
|
}, {
|
|
4730
|
-
default:
|
|
4731
|
-
|
|
5046
|
+
default: g(() => s[2] || (s[2] = [
|
|
5047
|
+
M("Accepted File Types")
|
|
4732
5048
|
])),
|
|
4733
5049
|
_: 1
|
|
4734
|
-
})) :
|
|
4735
|
-
h(u(
|
|
5050
|
+
})) : C("", !0),
|
|
5051
|
+
h(u(be), {
|
|
4736
5052
|
ref_key: "acceptedFilesOverlay",
|
|
4737
5053
|
ref: a
|
|
4738
5054
|
}, {
|
|
4739
|
-
default:
|
|
4740
|
-
m("div",
|
|
5055
|
+
default: g(() => [
|
|
5056
|
+
m("div", La, B(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4741
5057
|
]),
|
|
4742
5058
|
_: 1
|
|
4743
5059
|
}, 512)
|
|
4744
5060
|
]);
|
|
4745
5061
|
};
|
|
4746
5062
|
}
|
|
4747
|
-
}),
|
|
5063
|
+
}), Ha = {
|
|
4748
5064
|
key: 0,
|
|
4749
5065
|
class: "py-4 px-3",
|
|
4750
5066
|
id: "placeholder-message"
|
|
4751
|
-
},
|
|
5067
|
+
}, Wa = {
|
|
4752
5068
|
key: 1,
|
|
4753
5069
|
class: "d-flex flex-column"
|
|
4754
|
-
},
|
|
5070
|
+
}, Ga = /* @__PURE__ */ S({
|
|
4755
5071
|
__name: "DragDropArea",
|
|
4756
|
-
props: /* @__PURE__ */
|
|
5072
|
+
props: /* @__PURE__ */ R({
|
|
4757
5073
|
maxFileInput: {},
|
|
4758
5074
|
maxFileSize: {},
|
|
4759
5075
|
acceptedFileTypes: {}
|
|
@@ -4763,30 +5079,30 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4763
5079
|
}),
|
|
4764
5080
|
emits: ["update:modelValue"],
|
|
4765
5081
|
setup(e) {
|
|
4766
|
-
const t =
|
|
4767
|
-
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value =
|
|
5082
|
+
const t = N(e, "modelValue"), a = P(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5083
|
+
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);
|
|
4768
5084
|
};
|
|
4769
|
-
return (n, o) => (
|
|
5085
|
+
return (n, o) => (d(), v("div", {
|
|
4770
5086
|
id: "drag-drop-area",
|
|
4771
5087
|
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4772
|
-
onDragleave: o[0] || (o[0] =
|
|
4773
|
-
onDragover: o[1] || (o[1] =
|
|
4774
|
-
onDrop:
|
|
5088
|
+
onDragleave: o[0] || (o[0] = X((s) => a.value = !1, ["prevent"])),
|
|
5089
|
+
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5090
|
+
onDrop: X(l, ["prevent"])
|
|
4775
5091
|
}, [
|
|
4776
|
-
t.value.length === 0 ? (
|
|
4777
|
-
h(u(
|
|
5092
|
+
t.value.length === 0 ? (d(), v("div", Ha, [
|
|
5093
|
+
h(u(I), {
|
|
4778
5094
|
icon: "bi:upload",
|
|
4779
5095
|
class: "me-2",
|
|
4780
5096
|
height: "20px",
|
|
4781
5097
|
width: "20px"
|
|
4782
5098
|
}),
|
|
4783
|
-
o[2] || (o[2] =
|
|
4784
|
-
])) : (
|
|
4785
|
-
|
|
5099
|
+
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5100
|
+
])) : (d(), v("div", Wa, [
|
|
5101
|
+
k(n.$slots, "default")
|
|
4786
5102
|
]))
|
|
4787
5103
|
], 34));
|
|
4788
5104
|
}
|
|
4789
|
-
}),
|
|
5105
|
+
}), Ya = { class: "d-flex align-items-center me-2" }, Ja = /* @__PURE__ */ S({
|
|
4790
5106
|
__name: "UploadStatus",
|
|
4791
5107
|
props: {
|
|
4792
5108
|
fileSize: {},
|
|
@@ -4800,7 +5116,7 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4800
5116
|
case "InvalidFileType":
|
|
4801
5117
|
return "Upload Failed: File type is not accepted.";
|
|
4802
5118
|
case "InvalidFileSize":
|
|
4803
|
-
return `Upload Failed: File size exceeds the ${
|
|
5119
|
+
return `Upload Failed: File size exceeds the ${me(t.maxFileSize)} limit.`;
|
|
4804
5120
|
case "Aborted":
|
|
4805
5121
|
return "Upload Failed: User cancelled.";
|
|
4806
5122
|
case "DeleteFileFailed":
|
|
@@ -4812,35 +5128,35 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4812
5128
|
}
|
|
4813
5129
|
});
|
|
4814
5130
|
return (l, n) => {
|
|
4815
|
-
const o =
|
|
4816
|
-
return
|
|
4817
|
-
t.uploadStatus === "Uploading" ? (
|
|
4818
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (
|
|
5131
|
+
const o = pe;
|
|
5132
|
+
return d(), v("div", Ya, [
|
|
5133
|
+
t.uploadStatus === "Uploading" ? (d(), b(o, { key: 0 })) : C("", !0),
|
|
5134
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), b(de, {
|
|
4819
5135
|
key: 1,
|
|
4820
5136
|
id: "upload-status-alert",
|
|
4821
5137
|
severity: a.value,
|
|
4822
5138
|
class: "mb-0 w-75 ms-auto"
|
|
4823
5139
|
}, {
|
|
4824
|
-
default:
|
|
4825
|
-
|
|
5140
|
+
default: g(() => [
|
|
5141
|
+
M(B(i.value), 1)
|
|
4826
5142
|
]),
|
|
4827
5143
|
_: 1
|
|
4828
|
-
}, 8, ["severity"])) :
|
|
5144
|
+
}, 8, ["severity"])) : C("", !0)
|
|
4829
5145
|
]);
|
|
4830
5146
|
};
|
|
4831
5147
|
}
|
|
4832
|
-
}),
|
|
5148
|
+
}), Ka = ["data-cy"], Za = { class: "ms-3 d-flex flex-column" }, Xa = {
|
|
4833
5149
|
key: 1,
|
|
4834
5150
|
id: "file-name"
|
|
4835
|
-
},
|
|
5151
|
+
}, Qa = {
|
|
4836
5152
|
class: "text-black-50",
|
|
4837
5153
|
id: "file-type"
|
|
4838
|
-
},
|
|
5154
|
+
}, ei = {
|
|
4839
5155
|
class: "text-black-50",
|
|
4840
5156
|
id: "file-size"
|
|
4841
|
-
},
|
|
5157
|
+
}, ti = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ai = /* @__PURE__ */ S({
|
|
4842
5158
|
__name: "FileInfo",
|
|
4843
|
-
props: /* @__PURE__ */
|
|
5159
|
+
props: /* @__PURE__ */ R({
|
|
4844
5160
|
editableFileName: { type: Boolean },
|
|
4845
5161
|
acceptedFileTypes: {},
|
|
4846
5162
|
maxFileSize: {},
|
|
@@ -4855,64 +5171,64 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4855
5171
|
uploadStatus: { required: !0 },
|
|
4856
5172
|
uploadStatusModifiers: {}
|
|
4857
5173
|
}),
|
|
4858
|
-
emits: /* @__PURE__ */
|
|
5174
|
+
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4859
5175
|
setup(e, { emit: t }) {
|
|
4860
|
-
const a =
|
|
4861
|
-
o.value != null && (
|
|
4862
|
-
},
|
|
4863
|
-
let
|
|
4864
|
-
|
|
4865
|
-
},
|
|
4866
|
-
if (!
|
|
4867
|
-
l.value =
|
|
5176
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = P(a.value.name), s = P(""), p = P(0), c = P(), y = T(() => e.acceptedFileTypes.some(({ fileType: x }) => x === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), $ = T(() => a.value.type ? a.value.type : Ea().getType(a.value.name)), z = () => {
|
|
5177
|
+
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5178
|
+
}, D = () => {
|
|
5179
|
+
let x = o.value.split("."), w = Da.getExtension($.value), _ = o.value.split(".").pop();
|
|
5180
|
+
x.length === 1 ? _ && _.length > 0 && (o.value = [o.value, w].join(".")) : x.length > 1 && _ !== w && (o.value = o.value.replace(_, w));
|
|
5181
|
+
}, O = async () => {
|
|
5182
|
+
if (!y.value || !r.value) {
|
|
5183
|
+
l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4868
5184
|
return;
|
|
4869
5185
|
}
|
|
4870
5186
|
l.value = "Preparing", c.value = new AbortController();
|
|
4871
|
-
const [
|
|
4872
|
-
if (!
|
|
5187
|
+
const [x, w] = await e.getFileUrlAction(a.value.name);
|
|
5188
|
+
if (!x) {
|
|
4873
5189
|
l.value = "Failed";
|
|
4874
5190
|
return;
|
|
4875
5191
|
}
|
|
4876
5192
|
try {
|
|
4877
5193
|
l.value = "Uploading";
|
|
4878
|
-
const
|
|
5194
|
+
const _ = new ge(x), f = {
|
|
4879
5195
|
abortSignal: c.value.signal,
|
|
4880
|
-
onProgress: (
|
|
5196
|
+
onProgress: (V) => p.value = V.loadedBytes,
|
|
4881
5197
|
blobHTTPHeaders: {
|
|
4882
|
-
blobContentType:
|
|
5198
|
+
blobContentType: $.value,
|
|
4883
5199
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4884
5200
|
},
|
|
4885
5201
|
tags: { temp: "true" }
|
|
4886
5202
|
};
|
|
4887
|
-
await
|
|
4888
|
-
} catch (
|
|
4889
|
-
if (
|
|
5203
|
+
await _.uploadData(a.value, f), s.value = x, l.value = "Uploaded", i.value = w;
|
|
5204
|
+
} catch (_) {
|
|
5205
|
+
if (_.name === "AbortError") {
|
|
4890
5206
|
l.value = "Aborted";
|
|
4891
5207
|
return;
|
|
4892
5208
|
}
|
|
4893
5209
|
l.value = "Failed";
|
|
4894
5210
|
}
|
|
4895
|
-
},
|
|
4896
|
-
await
|
|
5211
|
+
}, A = async () => {
|
|
5212
|
+
await Oa(l.value, s.value), n("deleted", a.value);
|
|
4897
5213
|
};
|
|
4898
|
-
return
|
|
4899
|
-
e.autoUploadToBlob && l.value != "Uploaded" &&
|
|
4900
|
-
}), (
|
|
4901
|
-
const
|
|
4902
|
-
return
|
|
5214
|
+
return ne(() => {
|
|
5215
|
+
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5216
|
+
}), (x, w) => {
|
|
5217
|
+
const _ = q;
|
|
5218
|
+
return d(), v("div", {
|
|
4903
5219
|
class: "py-4 px-3 d-flex",
|
|
4904
5220
|
"data-cy": `file-info-${a.value.name}`
|
|
4905
5221
|
}, [
|
|
4906
5222
|
m("div", null, [
|
|
4907
|
-
u(
|
|
5223
|
+
u(Na)(a.value.type) ? (d(), b(u(Ye), {
|
|
4908
5224
|
key: 0,
|
|
4909
5225
|
id: "thumbnail-image",
|
|
4910
5226
|
"image-class": "image-file-thumbnail border",
|
|
4911
|
-
src: u(
|
|
5227
|
+
src: u(Aa)(a.value),
|
|
4912
5228
|
alt: a.value.name,
|
|
4913
5229
|
width: "75px",
|
|
4914
5230
|
preview: ""
|
|
4915
|
-
}, null, 8, ["src", "alt"])) : (
|
|
5231
|
+
}, null, 8, ["src", "alt"])) : (d(), b(u(I), {
|
|
4916
5232
|
key: 1,
|
|
4917
5233
|
id: "file-earmark",
|
|
4918
5234
|
icon: "bi:file-earmark",
|
|
@@ -4920,80 +5236,80 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4920
5236
|
width: "75px"
|
|
4921
5237
|
}))
|
|
4922
5238
|
]),
|
|
4923
|
-
m("div",
|
|
5239
|
+
m("div", Za, [
|
|
4924
5240
|
m("div", null, [
|
|
4925
|
-
|
|
5241
|
+
x.editableFileName ? (d(), b(Ht, {
|
|
4926
5242
|
key: 0,
|
|
4927
5243
|
id: "edit-file-name",
|
|
4928
5244
|
modelValue: o.value,
|
|
4929
|
-
"onUpdate:modelValue":
|
|
4930
|
-
rules:
|
|
5245
|
+
"onUpdate:modelValue": w[0] || (w[0] = (f) => o.value = f),
|
|
5246
|
+
rules: x.customFileNameRules,
|
|
4931
5247
|
name: a.value.name,
|
|
4932
|
-
"complete-action":
|
|
4933
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
5248
|
+
"complete-action": z
|
|
5249
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", Xa, B(o.value), 1))
|
|
4934
5250
|
]),
|
|
4935
|
-
m("span",
|
|
4936
|
-
m("span",
|
|
5251
|
+
m("span", Qa, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5252
|
+
m("span", ei, "File size: " + B(u(me)(a.value.size)), 1)
|
|
4937
5253
|
]),
|
|
4938
|
-
m("div",
|
|
4939
|
-
(
|
|
5254
|
+
m("div", ti, [
|
|
5255
|
+
(d(), b(Ja, {
|
|
4940
5256
|
key: l.value,
|
|
4941
5257
|
"file-size": a.value.size,
|
|
4942
5258
|
"upload-status": l.value,
|
|
4943
5259
|
"bytes-uploaded": p.value,
|
|
4944
|
-
"max-file-size":
|
|
5260
|
+
"max-file-size": x.maxFileSize
|
|
4945
5261
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4946
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (
|
|
5262
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), b(_, {
|
|
4947
5263
|
key: 0,
|
|
4948
5264
|
link: "",
|
|
4949
|
-
onClick:
|
|
5265
|
+
onClick: O
|
|
4950
5266
|
}, {
|
|
4951
|
-
default:
|
|
4952
|
-
h(u(
|
|
5267
|
+
default: g(() => [
|
|
5268
|
+
h(u(I), {
|
|
4953
5269
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4954
5270
|
}, null, 8, ["icon"])
|
|
4955
5271
|
]),
|
|
4956
5272
|
_: 1
|
|
4957
|
-
})) :
|
|
4958
|
-
l.value === "Uploading" ? (
|
|
5273
|
+
})) : C("", !0),
|
|
5274
|
+
l.value === "Uploading" ? (d(), b(_, {
|
|
4959
5275
|
key: 1,
|
|
4960
5276
|
link: "",
|
|
4961
|
-
onClick:
|
|
5277
|
+
onClick: w[1] || (w[1] = (f) => c.value.abort())
|
|
4962
5278
|
}, {
|
|
4963
|
-
default:
|
|
4964
|
-
h(u(
|
|
5279
|
+
default: g(() => [
|
|
5280
|
+
h(u(I), { icon: "bi:x-circle-fill" })
|
|
4965
5281
|
]),
|
|
4966
5282
|
_: 1
|
|
4967
|
-
})) : (
|
|
5283
|
+
})) : (d(), b(_, {
|
|
4968
5284
|
key: 2,
|
|
4969
5285
|
link: "",
|
|
4970
|
-
onClick:
|
|
5286
|
+
onClick: A,
|
|
4971
5287
|
id: "delete-button"
|
|
4972
5288
|
}, {
|
|
4973
|
-
default:
|
|
4974
|
-
h(u(
|
|
5289
|
+
default: g(() => [
|
|
5290
|
+
h(u(I), { icon: "bi:trash" })
|
|
4975
5291
|
]),
|
|
4976
5292
|
_: 1
|
|
4977
5293
|
}))
|
|
4978
5294
|
])
|
|
4979
|
-
], 8,
|
|
5295
|
+
], 8, Ka);
|
|
4980
5296
|
};
|
|
4981
5297
|
}
|
|
4982
|
-
}),
|
|
5298
|
+
}), ii = { class: "d-flex justify-content-end mt-1 gap-1" }, li = { id: "max-file-size" }, ni = { id: "max-file-input" }, oi = /* @__PURE__ */ S({
|
|
4983
5299
|
__name: "FileInputInfo",
|
|
4984
5300
|
props: {
|
|
4985
5301
|
maxFileSize: {},
|
|
4986
5302
|
maxFileInput: {}
|
|
4987
5303
|
},
|
|
4988
5304
|
setup(e) {
|
|
4989
|
-
return (t, a) => (
|
|
4990
|
-
m("div",
|
|
4991
|
-
m("div",
|
|
5305
|
+
return (t, a) => (d(), v("div", ii, [
|
|
5306
|
+
m("div", li, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5307
|
+
m("div", ni, "| Max file count: " + B(t.maxFileInput), 1)
|
|
4992
5308
|
]));
|
|
4993
5309
|
}
|
|
4994
|
-
}),
|
|
5310
|
+
}), si = { "data-cy": "file-uploader" }, ri = { key: 0 }, fl = /* @__PURE__ */ S({
|
|
4995
5311
|
__name: "ForgeFileUploader",
|
|
4996
|
-
props: /* @__PURE__ */
|
|
5312
|
+
props: /* @__PURE__ */ R({
|
|
4997
5313
|
acceptedFileTypes: {},
|
|
4998
5314
|
maxFileSize: {},
|
|
4999
5315
|
getFileUrlAction: {},
|
|
@@ -5008,25 +5324,25 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5008
5324
|
}),
|
|
5009
5325
|
emits: ["update:modelValue"],
|
|
5010
5326
|
setup(e) {
|
|
5011
|
-
const t =
|
|
5327
|
+
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5012
5328
|
t.value = t.value.filter((n) => n.file != l);
|
|
5013
5329
|
};
|
|
5014
|
-
return (l, n) => (
|
|
5015
|
-
h(
|
|
5330
|
+
return (l, n) => (d(), v("div", si, [
|
|
5331
|
+
h(Ra, j(a, {
|
|
5016
5332
|
modelValue: t.value,
|
|
5017
5333
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5018
5334
|
}), null, 16, ["modelValue"]),
|
|
5019
|
-
l.showDragDropArea ? (
|
|
5020
|
-
h(
|
|
5335
|
+
l.showDragDropArea ? (d(), v("div", ri, [
|
|
5336
|
+
h(Ga, {
|
|
5021
5337
|
"max-file-input": a.maxFileInput,
|
|
5022
5338
|
"max-file-size": a.maxFileSize,
|
|
5023
5339
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5024
5340
|
modelValue: t.value,
|
|
5025
5341
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
5026
5342
|
}, {
|
|
5027
|
-
default:
|
|
5028
|
-
(
|
|
5029
|
-
(
|
|
5343
|
+
default: g(() => [
|
|
5344
|
+
(d(!0), v(E, null, U(t.value, ({ file: o }, s) => (d(), v("div", null, [
|
|
5345
|
+
(d(), b(ai, j({
|
|
5030
5346
|
key: o.name,
|
|
5031
5347
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5032
5348
|
file: t.value[s].file,
|
|
@@ -5041,14 +5357,14 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5041
5357
|
]),
|
|
5042
5358
|
_: 1
|
|
5043
5359
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5044
|
-
h(
|
|
5360
|
+
h(oi, {
|
|
5045
5361
|
"max-file-size": a.maxFileSize,
|
|
5046
5362
|
"max-file-input": l.maxFileInput
|
|
5047
5363
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5048
|
-
])) :
|
|
5364
|
+
])) : C("", !0)
|
|
5049
5365
|
]));
|
|
5050
5366
|
}
|
|
5051
|
-
}),
|
|
5367
|
+
}), di = { class: "d-flex" }, pi = { class: "me-3" }, ci = { class: "ms-2" }, ui = { class: "d-flex flex-column w-100" }, gl = /* @__PURE__ */ S({
|
|
5052
5368
|
__name: "ForgeColumnCustomiser",
|
|
5053
5369
|
props: {
|
|
5054
5370
|
modelValue: { required: !0 },
|
|
@@ -5056,22 +5372,22 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5056
5372
|
},
|
|
5057
5373
|
emits: ["update:modelValue"],
|
|
5058
5374
|
setup(e) {
|
|
5059
|
-
const t =
|
|
5375
|
+
const t = N(e, "modelValue"), a = P(), i = P(!1), l = (n) => {
|
|
5060
5376
|
a.value.toggle(n);
|
|
5061
5377
|
};
|
|
5062
|
-
return (n, o) => (
|
|
5063
|
-
h(u(
|
|
5378
|
+
return (n, o) => (d(), v(E, null, [
|
|
5379
|
+
h(u(q), {
|
|
5064
5380
|
onClick: l,
|
|
5065
5381
|
class: "ms-2"
|
|
5066
5382
|
}, {
|
|
5067
|
-
default:
|
|
5068
|
-
m("div",
|
|
5069
|
-
m("div",
|
|
5070
|
-
h(u(
|
|
5383
|
+
default: g(() => [
|
|
5384
|
+
m("div", di, [
|
|
5385
|
+
m("div", pi, [
|
|
5386
|
+
h(u(I), { icon: "bi:layout-three-columns" })
|
|
5071
5387
|
]),
|
|
5072
|
-
|
|
5073
|
-
m("div",
|
|
5074
|
-
h(u(
|
|
5388
|
+
M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5389
|
+
m("div", ci, [
|
|
5390
|
+
h(u(I), {
|
|
5075
5391
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5076
5392
|
}, null, 8, ["icon"])
|
|
5077
5393
|
])
|
|
@@ -5079,16 +5395,16 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5079
5395
|
]),
|
|
5080
5396
|
_: 1
|
|
5081
5397
|
}),
|
|
5082
|
-
h(u(
|
|
5398
|
+
h(u(be), {
|
|
5083
5399
|
ref_key: "columnCustomiserPanel",
|
|
5084
5400
|
ref: a,
|
|
5085
5401
|
class: "column-customiser",
|
|
5086
5402
|
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5087
5403
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5088
5404
|
}, {
|
|
5089
|
-
default:
|
|
5090
|
-
m("div",
|
|
5091
|
-
(
|
|
5405
|
+
default: g(() => [
|
|
5406
|
+
m("div", ui, [
|
|
5407
|
+
(d(!0), v(E, null, U(t.value, (s, p) => (d(), v("div", {
|
|
5092
5408
|
class: F(["d-flex cursor-pointer", {
|
|
5093
5409
|
"border-top": p !== 0,
|
|
5094
5410
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5096,7 +5412,7 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5096
5412
|
"pb-1": p === 0
|
|
5097
5413
|
}])
|
|
5098
5414
|
}, [
|
|
5099
|
-
h(
|
|
5415
|
+
h(ye, {
|
|
5100
5416
|
id: s.field,
|
|
5101
5417
|
modelValue: s.selected,
|
|
5102
5418
|
"onUpdate:modelValue": (c) => s.selected = c,
|
|
@@ -5111,19 +5427,19 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5111
5427
|
}, 512)
|
|
5112
5428
|
], 64));
|
|
5113
5429
|
}
|
|
5114
|
-
}),
|
|
5430
|
+
}), bl = /* @__PURE__ */ S({
|
|
5115
5431
|
__name: "ForgePanel",
|
|
5116
5432
|
setup(e) {
|
|
5117
5433
|
return (t, a) => {
|
|
5118
|
-
const i =
|
|
5119
|
-
return
|
|
5120
|
-
toggleicon:
|
|
5121
|
-
l ? (
|
|
5434
|
+
const i = Je;
|
|
5435
|
+
return d(), b(i, W(G({ ...t.$attrs })), te({
|
|
5436
|
+
toggleicon: g(({ collapsed: l }) => [
|
|
5437
|
+
l ? (d(), b(u(I), {
|
|
5122
5438
|
key: 0,
|
|
5123
5439
|
"data-cy": "message-icon",
|
|
5124
5440
|
icon: "bi:chevron-down"
|
|
5125
|
-
})) :
|
|
5126
|
-
l ?
|
|
5441
|
+
})) : C("", !0),
|
|
5442
|
+
l ? C("", !0) : (d(), b(u(I), {
|
|
5127
5443
|
key: 1,
|
|
5128
5444
|
"data-cy": "message-icon",
|
|
5129
5445
|
icon: "bi:chevron-up"
|
|
@@ -5131,16 +5447,16 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5131
5447
|
]),
|
|
5132
5448
|
_: 2
|
|
5133
5449
|
}, [
|
|
5134
|
-
|
|
5450
|
+
U(t.$slots, (l, n) => ({
|
|
5135
5451
|
name: n,
|
|
5136
|
-
fn:
|
|
5137
|
-
|
|
5452
|
+
fn: g((o) => [
|
|
5453
|
+
k(t.$slots, n, W(G(o)))
|
|
5138
5454
|
])
|
|
5139
5455
|
}))
|
|
5140
5456
|
]), 1040);
|
|
5141
5457
|
};
|
|
5142
5458
|
}
|
|
5143
|
-
}),
|
|
5459
|
+
}), mi = /* @__PURE__ */ S({
|
|
5144
5460
|
__name: "ForgeToggleButton",
|
|
5145
5461
|
props: {
|
|
5146
5462
|
severity: { default: "primary" }
|
|
@@ -5167,17 +5483,17 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5167
5483
|
]
|
|
5168
5484
|
})
|
|
5169
5485
|
}));
|
|
5170
|
-
return (i, l) => (
|
|
5486
|
+
return (i, l) => (d(), b(u(Ke), j({ ...i.$attrs, ...t }, {
|
|
5171
5487
|
severity: t.severity,
|
|
5172
5488
|
pt: a.value
|
|
5173
5489
|
}), null, 16, ["severity", "pt"]));
|
|
5174
5490
|
}
|
|
5175
|
-
}),
|
|
5491
|
+
}), vi = {
|
|
5176
5492
|
class: "btn-group",
|
|
5177
5493
|
"data-cy": "forge-select-button"
|
|
5178
|
-
},
|
|
5494
|
+
}, yl = /* @__PURE__ */ S({
|
|
5179
5495
|
__name: "ForgeSelectButton",
|
|
5180
|
-
props: /* @__PURE__ */
|
|
5496
|
+
props: /* @__PURE__ */ R({
|
|
5181
5497
|
options: {},
|
|
5182
5498
|
multiple: { type: Boolean, default: !0 },
|
|
5183
5499
|
allowEmpty: { type: Boolean, default: !1 },
|
|
@@ -5188,7 +5504,7 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5188
5504
|
}),
|
|
5189
5505
|
emits: ["update:modelValue"],
|
|
5190
5506
|
setup(e) {
|
|
5191
|
-
const t = e, a =
|
|
5507
|
+
const t = e, a = N(e, "modelValue"), i = (n) => {
|
|
5192
5508
|
var o;
|
|
5193
5509
|
return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
|
|
5194
5510
|
}, l = (n) => {
|
|
@@ -5205,8 +5521,8 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5205
5521
|
} else
|
|
5206
5522
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5207
5523
|
};
|
|
5208
|
-
return (n, o) => (
|
|
5209
|
-
(
|
|
5524
|
+
return (n, o) => (d(), v("div", vi, [
|
|
5525
|
+
(d(!0), v(E, null, U(n.options, (s, p) => (d(), b(mi, {
|
|
5210
5526
|
key: p,
|
|
5211
5527
|
onLabel: s.label,
|
|
5212
5528
|
offLabel: s.label,
|
|
@@ -5219,7 +5535,7 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5219
5535
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5220
5536
|
]));
|
|
5221
5537
|
}
|
|
5222
|
-
}),
|
|
5538
|
+
}), xl = () => ({
|
|
5223
5539
|
type: "component",
|
|
5224
5540
|
resolve: (e) => {
|
|
5225
5541
|
if (e.startsWith("Forge"))
|
|
@@ -5230,37 +5546,38 @@ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5230
5546
|
}
|
|
5231
5547
|
});
|
|
5232
5548
|
export {
|
|
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
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5549
|
+
Yi as Bootstrap_PT,
|
|
5550
|
+
Ji as ForgeActionButton,
|
|
5551
|
+
de as ForgeAlert,
|
|
5552
|
+
Ki as ForgeAutoComplete,
|
|
5553
|
+
ye as ForgeCheckbox,
|
|
5554
|
+
ol as ForgeChip,
|
|
5555
|
+
gl as ForgeColumnCustomiser,
|
|
5556
|
+
xe as ForgeDatepicker,
|
|
5557
|
+
fl as ForgeFileUploader,
|
|
5558
|
+
vl as ForgeFilterHeader,
|
|
5559
|
+
ll as ForgeForm,
|
|
5560
|
+
nl as ForgeFormField,
|
|
5561
|
+
Ht as ForgeInlineEditor,
|
|
5562
|
+
Zi as ForgeLink,
|
|
5563
|
+
pe as ForgeLoader,
|
|
5564
|
+
el as ForgeModal,
|
|
5565
|
+
Zt as ForgeMultiSelectPreview,
|
|
5566
|
+
tl as ForgeNavbar,
|
|
5567
|
+
al as ForgePageHeader,
|
|
5568
|
+
bl as ForgePanel,
|
|
5569
|
+
sl as ForgeProgressBar,
|
|
5570
|
+
il as ForgeRemainingCharacters,
|
|
5571
|
+
xl as ForgeResolver,
|
|
5572
|
+
rl as ForgeScratchpad,
|
|
5573
|
+
yl as ForgeSelectButton,
|
|
5574
|
+
dl as ForgeStatWidget,
|
|
5575
|
+
pl as ForgeStepper,
|
|
5576
|
+
ul as ForgeTable,
|
|
5577
|
+
cl as ForgeTile,
|
|
5578
|
+
mi as ForgeToggleButton,
|
|
5579
|
+
ml as ForgeTreeTable,
|
|
5580
|
+
Qi as convertToMultiSelectOption,
|
|
5581
|
+
Xi as enumToMultiSelectList,
|
|
5582
|
+
Dt as parseError
|
|
5266
5583
|
};
|