@3squared/forge-ui-3 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/{forge-ui-3.mjs → forge-ui-3.js} +924 -899
- package/dist/esm/style.css +2 -2
- package/dist/index.d.ts +23 -23
- package/dist/src/components/ForgeAlert.vue.d.ts +1 -1
- package/dist/src/components/ForgeCheckbox.vue.d.ts +1 -1
- package/dist/src/components/ForgeChips.vue.d.ts +3 -3
- package/dist/src/components/ForgeDatepicker.vue.d.ts +3 -3
- package/dist/src/components/ForgeFormField.vue.d.ts +1 -1
- package/dist/src/components/ForgeLoader.vue.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +2 -2
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +2 -2
- package/dist/src/components/ForgeNavbar.vue.d.ts +2 -2
- package/dist/src/components/ForgeProgressBar.vue.d.ts +1 -1
- package/dist/src/components/ForgeStepper.vue.d.ts +2 -2
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +1 -1
- package/dist/src/passthroughs/Badge.pt.d.ts +30 -0
- package/dist/src/passthroughs/Button.pt.d.ts +262 -0
- package/dist/src/passthroughs/Card.pt.d.ts +26 -0
- package/dist/src/passthroughs/Checkbox.pt.d.ts +17 -0
- package/dist/src/passthroughs/Chips.pt.d.ts +7 -0
- package/dist/src/passthroughs/Column.pt.d.ts +90 -0
- package/dist/src/passthroughs/Datepicker.pt.d.ts +40 -0
- package/dist/src/passthroughs/Dialog.pt.d.ts +38 -0
- package/dist/src/passthroughs/Divider.pt.d.ts +6 -0
- package/dist/src/passthroughs/Dropdown.pt.d.ts +49 -0
- package/dist/src/passthroughs/Image.pt.d.ts +15 -0
- package/dist/src/passthroughs/Input.pt.d.ts +13 -0
- package/dist/src/passthroughs/InputMask.pt.d.ts +8 -0
- package/dist/src/passthroughs/Message.pt.d.ts +30 -0
- package/dist/src/passthroughs/Navbar.pt.d.ts +57 -0
- package/dist/src/passthroughs/OverlayPanel.pt.d.ts +15 -0
- package/dist/src/passthroughs/ProgressBar.pt.d.ts +14 -0
- package/dist/src/passthroughs/ProgressSpinner.pt.d.ts +8 -0
- package/dist/src/passthroughs/SelectButton.pt.d.ts +21 -0
- package/dist/src/passthroughs/Steps.pt.d.ts +7 -0
- package/dist/src/passthroughs/Table.pt.d.ts +56 -0
- package/dist/src/passthroughs/Tabs.pt.d.ts +38 -0
- package/dist/src/passthroughs/TextArea.pt.d.ts +8 -0
- package/dist/src/passthroughs/Toast.pt.d.ts +36 -0
- package/dist/src/passthroughs/Tooltip.pt.d.ts +21 -0
- package/dist/src/types/forge-types.d.ts +3 -3
- package/package.json +18 -17
- package/src/styles/utilities/_variables.scss +33 -1
- package/src/types/forge-types.ts +1 -1
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import ye from "primevue/message";
|
|
2
|
+
import { defineComponent as x, openBlock as s, createBlock as w, normalizeProps as J, guardReactiveProps as X, withCtx as v, createElementVNode as c, normalizeClass as B, unref as u, createCommentVNode as F, createVNode as b, renderSlot as k, ref as P, createElementBlock as p, Fragment as O, mergeProps as S, computed as h, createTextVNode as V, toDisplayString as g, withDirectives as j, vShow as q, mergeModels as G, useModel as L, createSlots as Q, renderList as E, onMounted as ie, isRef as H, withKeys as Z, useAttrs as re, withModifiers as K, normalizeStyle as be } from "vue";
|
|
3
3
|
import { Icon as C } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
5
|
import ve from "primevue/toast";
|
|
6
|
-
import
|
|
6
|
+
import fe from "primevue/checkbox";
|
|
7
7
|
import { useField as W } from "vee-validate";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import ge from "primevue/progressspinner";
|
|
9
|
+
import he from "primevue/dialog";
|
|
10
10
|
import le from "primevue/inputtext";
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import { vOnClickOutside as we } from "@vueuse/components";
|
|
12
|
+
import ke from "primevue/menubar";
|
|
13
|
+
import _e from "vue-multiselect";
|
|
14
|
+
import xe from "primevue/calendar";
|
|
15
15
|
import $e from "primevue/inputmask";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import Be from "primevue/textarea";
|
|
17
|
+
import de from "primevue/inputnumber";
|
|
18
18
|
import Fe from "primevue/chips";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
19
|
+
import Se from "primevue/progressbar";
|
|
20
|
+
import Ce from "primevue/divider";
|
|
21
|
+
import Te from "primevue/steps";
|
|
22
|
+
import Pe from "primevue/datatable";
|
|
23
23
|
import oe from "primevue/dropdown";
|
|
24
|
-
import
|
|
25
|
-
import { BlockBlobClient as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import Ve from "primevue/multiselect";
|
|
25
|
+
import { BlockBlobClient as ue } from "@azure/storage-blob";
|
|
26
|
+
import Ie from "primevue/image";
|
|
27
|
+
const ze = {
|
|
28
28
|
button: {
|
|
29
29
|
root: ({ props: e }) => ({
|
|
30
30
|
class: [
|
|
31
31
|
"btn",
|
|
32
|
+
// Brand
|
|
33
|
+
{
|
|
34
|
+
"btn-brand": e.severity === "brand" && !e.outlined && !e.link && !e.text,
|
|
35
|
+
"btn-outline-brand": e.severity === "brand" && e.outlined,
|
|
36
|
+
"text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text
|
|
37
|
+
},
|
|
32
38
|
// Primary
|
|
33
39
|
{
|
|
34
40
|
"btn-primary": (e.severity === null || e.severity === "primary") && !e.outlined && !e.link && !e.text,
|
|
@@ -82,6 +88,7 @@ const za = {
|
|
|
82
88
|
class: [
|
|
83
89
|
{
|
|
84
90
|
"button-badge-primary": (e.severity === "primary" || e.severity === null) && !e.outlined,
|
|
91
|
+
"button-badge-brand": e.severity === "brand" && !e.outlined,
|
|
85
92
|
"button-badge-secondary": e.severity === "secondary" && !e.outlined,
|
|
86
93
|
"button-badge-success": e.severity === "success" && !e.outlined,
|
|
87
94
|
"button-badge-warning": (e.severity === "warning" || e.severity === "warn") && !e.outlined,
|
|
@@ -90,6 +97,7 @@ const za = {
|
|
|
90
97
|
},
|
|
91
98
|
{
|
|
92
99
|
"button-badge-primary outlined": (e.severity === "primary" || e.severity === null) && e.outlined,
|
|
100
|
+
"button-badge-brand outlined": e.severity === "brand" && e.outlined,
|
|
93
101
|
"button-badge-secondary outlined": e.severity === "secondary" && e.outlined,
|
|
94
102
|
"button-badge-success outlined": e.severity === "success" && e.outlined,
|
|
95
103
|
"button-badge-warning outlined": (e.severity === "warning" || e.severity === "warn") && e.outlined,
|
|
@@ -99,7 +107,8 @@ const za = {
|
|
|
99
107
|
"rounded-pill ms-2"
|
|
100
108
|
]
|
|
101
109
|
})
|
|
102
|
-
}
|
|
110
|
+
}
|
|
111
|
+
}, Me = {
|
|
103
112
|
checkbox: {
|
|
104
113
|
root: () => ({
|
|
105
114
|
class: [
|
|
@@ -116,94 +125,68 @@ const za = {
|
|
|
116
125
|
}
|
|
117
126
|
]
|
|
118
127
|
})
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
message: () => ({
|
|
122
|
-
class: ["toast-container w-100 position-relative"]
|
|
123
|
-
}),
|
|
124
|
-
content: () => ({
|
|
125
|
-
class: ["toast-body d-flex align-items-center gap-2"]
|
|
126
|
-
}),
|
|
127
|
-
container: () => ({
|
|
128
|
-
class: ["toast bg-white show"]
|
|
129
|
-
}),
|
|
130
|
-
buttonContainer: () => ({
|
|
131
|
-
class: ["ms-auto"]
|
|
132
|
-
}),
|
|
133
|
-
closeButton: () => ({
|
|
134
|
-
class: ["btn-close toast-close-icon"]
|
|
135
|
-
}),
|
|
136
|
-
closeIcon: () => ({
|
|
137
|
-
class: "d-none"
|
|
138
|
-
}),
|
|
139
|
-
summary: () => ({
|
|
140
|
-
class: ["toast-body ps-1"]
|
|
141
|
-
}),
|
|
142
|
-
icon: ({ props: e }) => {
|
|
143
|
-
var t, l, a, o;
|
|
144
|
-
return {
|
|
145
|
-
class: [
|
|
146
|
-
"toast-icon",
|
|
147
|
-
{
|
|
148
|
-
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
149
|
-
"text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
|
|
150
|
-
"text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
|
|
151
|
-
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
},
|
|
128
|
+
}
|
|
129
|
+
}, se = {
|
|
157
130
|
dropdown: {
|
|
158
|
-
root: (e) => ({
|
|
131
|
+
root: ({ props: e }) => ({
|
|
159
132
|
class: [
|
|
133
|
+
"form-control d-flex cursor-pointer",
|
|
160
134
|
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"form-control": !e.instance.disabled
|
|
164
|
-
},
|
|
165
|
-
"d-flex cursor-pointer w-100"
|
|
135
|
+
disabled: e.disabled
|
|
136
|
+
}
|
|
166
137
|
]
|
|
167
138
|
}),
|
|
168
|
-
input: () => ({
|
|
169
|
-
class: ["fs-6 border-0"]
|
|
170
|
-
}),
|
|
171
139
|
trigger: (e) => ({
|
|
172
|
-
class: {
|
|
173
|
-
"ms-2": e.props.showClear,
|
|
174
|
-
"ms-auto": !e.props.showClear || !e.props.modelValue
|
|
175
|
-
}
|
|
176
|
-
}),
|
|
177
|
-
loadingIcon: () => ({
|
|
178
|
-
class: ["spinner-border spinner-border-sm border-0"]
|
|
179
|
-
}),
|
|
180
|
-
clearIcon: () => ({
|
|
181
|
-
class: ["ms-auto my-auto"]
|
|
182
|
-
}),
|
|
183
|
-
list: () => ({
|
|
184
|
-
class: ["border list-unstyled rounded-bottom bg-white"]
|
|
185
|
-
}),
|
|
186
|
-
item: (e) => ({
|
|
187
140
|
class: [
|
|
188
|
-
"
|
|
141
|
+
"my-auto",
|
|
189
142
|
{
|
|
190
|
-
"
|
|
143
|
+
"ms-auto": !e.props.showClear,
|
|
144
|
+
"ms-2": e.props.showClear
|
|
191
145
|
}
|
|
192
146
|
]
|
|
193
147
|
}),
|
|
194
|
-
|
|
195
|
-
|
|
148
|
+
list: "list-unstyled mb-0 dropdown-menu show w-100",
|
|
149
|
+
item: ({ context: e }) => ({
|
|
150
|
+
class: [
|
|
151
|
+
"dropdown-item d-flex cursor-pointer",
|
|
152
|
+
{
|
|
153
|
+
"bg-primary text-white": e.selected
|
|
154
|
+
}
|
|
155
|
+
]
|
|
196
156
|
}),
|
|
197
|
-
|
|
198
|
-
|
|
157
|
+
header: "d-flex border-bottom pb-2",
|
|
158
|
+
headercheckboxcontainer: "form-check ms-2 mt-2",
|
|
159
|
+
headercheckbox: (e) => ({
|
|
160
|
+
class: [
|
|
161
|
+
"form-check-input px-2 py-2 rounded position-relative",
|
|
162
|
+
{
|
|
163
|
+
"bg-primary": e.instance.allSelected
|
|
164
|
+
}
|
|
165
|
+
]
|
|
199
166
|
}),
|
|
200
|
-
|
|
201
|
-
|
|
167
|
+
headercheckboxicon: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon",
|
|
168
|
+
filtercontainer: "d-flex position-relative mt-1 ps-2 w-100",
|
|
169
|
+
filterinput: "form-control w-100",
|
|
170
|
+
filtericon: {
|
|
171
|
+
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
172
|
+
style: "top: 35%;"
|
|
173
|
+
},
|
|
174
|
+
closebutton: "btn",
|
|
175
|
+
checkbox: (e) => ({
|
|
176
|
+
class: [
|
|
177
|
+
"form-check-input px-2 py-2 rounded position-relative",
|
|
178
|
+
{
|
|
179
|
+
"bg-primary": e.context.selected,
|
|
180
|
+
"form-check-input__focus": e.state.focused
|
|
181
|
+
}
|
|
182
|
+
]
|
|
202
183
|
}),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
184
|
+
checkboxicon: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon",
|
|
185
|
+
clearicon: "ms-auto my-auto",
|
|
186
|
+
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
187
|
+
itemGroupLabel: "ps-2 fw-bold"
|
|
188
|
+
}
|
|
189
|
+
}, Oe = {
|
|
207
190
|
column: {
|
|
208
191
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
209
192
|
headerCell: (e) => {
|
|
@@ -295,7 +278,8 @@ const za = {
|
|
|
295
278
|
}
|
|
296
279
|
]
|
|
297
280
|
})
|
|
298
|
-
}
|
|
281
|
+
}
|
|
282
|
+
}, Ue = {
|
|
299
283
|
inputtext: {
|
|
300
284
|
root: (e) => {
|
|
301
285
|
var t, l;
|
|
@@ -309,173 +293,30 @@ const za = {
|
|
|
309
293
|
]
|
|
310
294
|
};
|
|
311
295
|
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
root: {
|
|
315
|
-
class: ["form-control d-flex cursor-pointer"]
|
|
316
|
-
},
|
|
317
|
-
trigger: {
|
|
318
|
-
class: ["ms-auto"]
|
|
319
|
-
},
|
|
320
|
-
panel: {
|
|
321
|
-
class: ["border rounded-bottom bg-white"]
|
|
322
|
-
},
|
|
323
|
-
list: {
|
|
324
|
-
class: ["p-2 mb-0 list-unstyled"]
|
|
325
|
-
},
|
|
326
|
-
item: {
|
|
327
|
-
class: ["dropdown-item d-flex"]
|
|
328
|
-
},
|
|
329
|
-
header: {
|
|
330
|
-
class: "d-flex border-bottom pb-2"
|
|
331
|
-
},
|
|
332
|
-
headercheckboxcontainer: {
|
|
333
|
-
class: ["form-check ms-2 mt-2"]
|
|
334
|
-
},
|
|
335
|
-
headercheckbox: (e) => ({
|
|
336
|
-
class: [
|
|
337
|
-
"form-check-input px-2 py-2 rounded position-relative",
|
|
338
|
-
{
|
|
339
|
-
"bg-primary": e.instance.allSelected
|
|
340
|
-
}
|
|
341
|
-
]
|
|
342
|
-
}),
|
|
343
|
-
headercheckboxicon: {
|
|
344
|
-
class: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon"
|
|
345
|
-
},
|
|
346
|
-
filtercontainer: {
|
|
347
|
-
class: ["d-flex position-relative mt-1 ps-2"]
|
|
348
|
-
},
|
|
349
|
-
filterinput: {
|
|
350
|
-
class: ["form-control"]
|
|
351
|
-
},
|
|
352
|
-
filtericon: {
|
|
353
|
-
class: ["position-absolute bottom-0 end-0"],
|
|
354
|
-
style: "top: 35%; left: 87%;"
|
|
355
|
-
},
|
|
356
|
-
closebutton: {
|
|
357
|
-
class: "btn"
|
|
358
|
-
},
|
|
359
|
-
checkbox: (e) => ({
|
|
360
|
-
class: [
|
|
361
|
-
"form-check-input px-2 py-2 rounded position-relative",
|
|
362
|
-
{
|
|
363
|
-
"bg-primary": e.context.selected,
|
|
364
|
-
"form-check-input__focus": e.state.focused
|
|
365
|
-
}
|
|
366
|
-
]
|
|
367
|
-
}),
|
|
368
|
-
checkboxicon: {
|
|
369
|
-
class: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
296
|
+
}
|
|
297
|
+
}, De = {
|
|
372
298
|
inputmask: {
|
|
373
299
|
root: () => ({
|
|
374
300
|
class: [
|
|
375
301
|
"form-control"
|
|
376
302
|
]
|
|
377
303
|
})
|
|
378
|
-
}
|
|
304
|
+
}
|
|
305
|
+
}, Ae = {
|
|
379
306
|
textarea: {
|
|
380
307
|
root: () => ({
|
|
381
308
|
class: [
|
|
382
309
|
"form-control"
|
|
383
310
|
]
|
|
384
311
|
})
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"alert-success": e.severity === "success",
|
|
394
|
-
"alert-warning": e.severity === "warning" || e.severity === "warn",
|
|
395
|
-
"alert-danger": e.severity === "danger" || e.severity === "error",
|
|
396
|
-
"alert-info": e.severity === "info"
|
|
397
|
-
}
|
|
398
|
-
]
|
|
399
|
-
}),
|
|
400
|
-
text: () => ({
|
|
401
|
-
class: ["my-auto"]
|
|
402
|
-
}),
|
|
403
|
-
wrapper: () => ({
|
|
404
|
-
class: ["d-flex"]
|
|
405
|
-
}),
|
|
406
|
-
icon: () => ({
|
|
407
|
-
class: ["alert-icon my-auto me-2 pe-1"]
|
|
408
|
-
}),
|
|
409
|
-
closeButton: () => ({
|
|
410
|
-
class: ["px-0 ms-2 btn d-flex"]
|
|
411
|
-
})
|
|
412
|
-
},
|
|
413
|
-
badge: {
|
|
414
|
-
root: ({ props: e }) => ({
|
|
415
|
-
class: [
|
|
416
|
-
"badge",
|
|
417
|
-
{
|
|
418
|
-
"badge-primary": e.severity === "primary" || e.severity === null,
|
|
419
|
-
"badge-secondary": e.severity === "secondary",
|
|
420
|
-
"badge-success": e.severity === "success",
|
|
421
|
-
"badge-warning": e.severity === "warning" || e.severity === "warn",
|
|
422
|
-
"badge-danger": e.severity === "danger",
|
|
423
|
-
"badge-info": e.severity === "info"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"badge-xl fs-4 lh-sm": e.size === "xlarge",
|
|
427
|
-
"badge-lg fs-5 lh-1": e.size === "large"
|
|
428
|
-
}
|
|
429
|
-
]
|
|
430
|
-
})
|
|
431
|
-
},
|
|
432
|
-
card: {
|
|
433
|
-
root: () => ({
|
|
434
|
-
class: ["card"]
|
|
435
|
-
}),
|
|
436
|
-
title: () => ({
|
|
437
|
-
class: ["card-title h4"]
|
|
438
|
-
}),
|
|
439
|
-
subtitle: () => ({
|
|
440
|
-
class: ["card-subtitle mb-2"]
|
|
441
|
-
}),
|
|
442
|
-
content: () => ({
|
|
443
|
-
class: ["card-text h-100"]
|
|
444
|
-
}),
|
|
445
|
-
body: () => ({
|
|
446
|
-
class: ["card-body"]
|
|
447
|
-
}),
|
|
448
|
-
footer: () => ({
|
|
449
|
-
class: ["mt-3"]
|
|
450
|
-
}),
|
|
451
|
-
header: () => ({
|
|
452
|
-
class: ["card-header"]
|
|
453
|
-
})
|
|
454
|
-
},
|
|
455
|
-
progressspinner: {
|
|
456
|
-
spinner: () => ({
|
|
457
|
-
class: [
|
|
458
|
-
"spinner-border"
|
|
459
|
-
]
|
|
460
|
-
})
|
|
461
|
-
},
|
|
462
|
-
selectbutton: {
|
|
463
|
-
root: () => ({
|
|
464
|
-
class: ["btn-group"]
|
|
465
|
-
}),
|
|
466
|
-
button: ({ context: e, props: t }) => ({
|
|
467
|
-
class: [
|
|
468
|
-
"btn",
|
|
469
|
-
{
|
|
470
|
-
"btn-primary": e.active,
|
|
471
|
-
"btn-outline-primary": !e.active
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"disabled w-auto": t.disabled || t.optionDisabled === e.option
|
|
475
|
-
}
|
|
476
|
-
]
|
|
477
|
-
})
|
|
478
|
-
},
|
|
312
|
+
}
|
|
313
|
+
}, Ne = {
|
|
314
|
+
// More PassThrough options in component file.
|
|
315
|
+
chips: {
|
|
316
|
+
root: "d-flex",
|
|
317
|
+
label: "pe-2"
|
|
318
|
+
}
|
|
319
|
+
}, Ee = {
|
|
479
320
|
dialog: {
|
|
480
321
|
header: () => ({
|
|
481
322
|
class: ["modal-header"]
|
|
@@ -514,7 +355,57 @@ const za = {
|
|
|
514
355
|
"modal-open": e.modal && e.visible
|
|
515
356
|
}]
|
|
516
357
|
})
|
|
517
|
-
}
|
|
358
|
+
}
|
|
359
|
+
}, Re = {
|
|
360
|
+
overlaypanel: {
|
|
361
|
+
root: (e) => ({
|
|
362
|
+
class: [
|
|
363
|
+
"card w-fit-content m-0",
|
|
364
|
+
{
|
|
365
|
+
"p-4": e.props.showCloseIcon,
|
|
366
|
+
"p-3": !e.props.showCloseIcon
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}),
|
|
370
|
+
content: "d-flex position-relative",
|
|
371
|
+
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
372
|
+
}
|
|
373
|
+
}, Le = {
|
|
374
|
+
message: {
|
|
375
|
+
root: ({ props: e }) => ({
|
|
376
|
+
class: [
|
|
377
|
+
"alert",
|
|
378
|
+
{
|
|
379
|
+
"alert-primary": e.severity === "primary" || e.severity === void 0,
|
|
380
|
+
"alert-brand": e.severity === "brand",
|
|
381
|
+
"alert-secondary": e.severity === "secondary",
|
|
382
|
+
"alert-success": e.severity === "success",
|
|
383
|
+
"alert-warning": e.severity === "warning" || e.severity === "warn",
|
|
384
|
+
"alert-danger": e.severity === "danger" || e.severity === "error",
|
|
385
|
+
"alert-info": e.severity === "info"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
}),
|
|
389
|
+
text: () => ({
|
|
390
|
+
class: ["my-auto"]
|
|
391
|
+
}),
|
|
392
|
+
wrapper: () => ({
|
|
393
|
+
class: ["d-flex"]
|
|
394
|
+
}),
|
|
395
|
+
icon: () => ({
|
|
396
|
+
class: ["alert-icon my-auto me-2 pe-1"]
|
|
397
|
+
}),
|
|
398
|
+
closeButton: () => ({
|
|
399
|
+
class: ["px-0 ms-2 btn d-flex"]
|
|
400
|
+
})
|
|
401
|
+
}
|
|
402
|
+
}, je = {
|
|
403
|
+
// More PT options defined in ForgeStepper.
|
|
404
|
+
steps: {
|
|
405
|
+
root: "w-100 mx-2 line",
|
|
406
|
+
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
407
|
+
}
|
|
408
|
+
}, He = {
|
|
518
409
|
tabview: {
|
|
519
410
|
navContainer: () => ({
|
|
520
411
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -551,96 +442,149 @@ const za = {
|
|
|
551
442
|
content: () => ({
|
|
552
443
|
class: ["p-2"]
|
|
553
444
|
})
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
445
|
+
}
|
|
446
|
+
}, qe = {
|
|
447
|
+
// More PassThrough options defined in ForgeDatepicker.
|
|
448
|
+
calendar: {
|
|
449
|
+
root: "d-inline-flex relative",
|
|
450
|
+
input: "form-control",
|
|
451
|
+
panel: ({ props: e }) => ({
|
|
452
|
+
class: [
|
|
453
|
+
"datepicker-panel bg-white",
|
|
454
|
+
{
|
|
455
|
+
"shadow border-0 position-absolute": !e.inline
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
}),
|
|
459
|
+
header: "d-flex align-items-center justify-content-between p-2 border-bottom",
|
|
460
|
+
previousButton: "btn mb-1",
|
|
461
|
+
nextButton: "btn mb-1",
|
|
462
|
+
yearTitle: "btn",
|
|
463
|
+
monthTitle: "btn",
|
|
464
|
+
table: "m-2",
|
|
465
|
+
tableHeaderRow: "p-2",
|
|
466
|
+
weekday: "ms-2 ps-1",
|
|
467
|
+
monthPicker: "my-2",
|
|
468
|
+
month: "btn w-25",
|
|
469
|
+
yearPicker: "my-2",
|
|
470
|
+
year: "btn w-25",
|
|
471
|
+
timePicker: "d-flex justify-content-center align-items-center border-top p-2",
|
|
472
|
+
separatorContainer: "d-flex flex-column align-items-center px-2",
|
|
473
|
+
separator: "fs-4 mb-2",
|
|
474
|
+
hourPicker: "px-2 fs-5",
|
|
475
|
+
hour: "my-2",
|
|
476
|
+
minutePicker: "px-2 fs-5",
|
|
477
|
+
minute: "my-2",
|
|
478
|
+
secondPicker: "px-2 fs-5",
|
|
479
|
+
second: "my-2",
|
|
480
|
+
buttonbar: ({ props: e }) => ({
|
|
481
|
+
class: [
|
|
482
|
+
"p-2 d-flex",
|
|
483
|
+
{
|
|
484
|
+
"border-top": !e.showTime
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
})
|
|
488
|
+
}
|
|
489
|
+
}, Ge = {
|
|
578
490
|
// More PassThrough options in component file.
|
|
579
491
|
progressbar: {
|
|
580
492
|
root: () => ({
|
|
581
493
|
class: ["progress"]
|
|
582
494
|
}),
|
|
583
|
-
value: () => ({
|
|
584
|
-
class: ["progress-bar"]
|
|
495
|
+
value: () => ({
|
|
496
|
+
class: ["progress-bar"]
|
|
497
|
+
}),
|
|
498
|
+
label: () => ({
|
|
499
|
+
class: ["text-white"]
|
|
500
|
+
})
|
|
501
|
+
}
|
|
502
|
+
}, Ke = {
|
|
503
|
+
dataTable: {
|
|
504
|
+
table: (e) => ({
|
|
505
|
+
class: [
|
|
506
|
+
"table position-relative",
|
|
507
|
+
{
|
|
508
|
+
"table-striped": e.props.stripedRows,
|
|
509
|
+
"table-hover": e.props.rowHover,
|
|
510
|
+
"table-bordered": e.props.showGridlines,
|
|
511
|
+
"table-sm": e.props.size === "small",
|
|
512
|
+
"table-lg": e.props.size === "large",
|
|
513
|
+
"opacity-50": e.props.loading
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
}),
|
|
517
|
+
bodyRow: (e) => ({
|
|
518
|
+
class: {
|
|
519
|
+
"table-active": e.context.selected
|
|
520
|
+
}
|
|
521
|
+
}),
|
|
522
|
+
rowgrouptoggler: "btn",
|
|
523
|
+
thead: () => ({
|
|
524
|
+
class: "sticky-header"
|
|
525
|
+
}),
|
|
526
|
+
//@ts-ignore
|
|
527
|
+
tbody: (e) => ({
|
|
528
|
+
class: {
|
|
529
|
+
"sticky-header": e.props.frozenRow
|
|
530
|
+
}
|
|
531
|
+
}),
|
|
532
|
+
loadingOverlay: () => ({
|
|
533
|
+
class: "table-overlay table-spinner"
|
|
585
534
|
}),
|
|
586
|
-
|
|
587
|
-
class:
|
|
535
|
+
loadingIcon: () => ({
|
|
536
|
+
class: "spinner-border border-0"
|
|
588
537
|
})
|
|
589
538
|
},
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
539
|
+
paginator: {
|
|
540
|
+
root: (e) => {
|
|
541
|
+
var t;
|
|
542
|
+
return {
|
|
543
|
+
class: [
|
|
544
|
+
"m-auto pagination justify-content-center",
|
|
545
|
+
{
|
|
546
|
+
"opacity-50": (t = e.parent) == null ? void 0 : t.props.loading
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
};
|
|
550
|
+
},
|
|
551
|
+
pages: "d-flex",
|
|
552
|
+
firstPageButton: "page-link",
|
|
553
|
+
previousPageButton: "page-link",
|
|
554
|
+
nextPageButton: "page-link",
|
|
555
|
+
lastPageButton: "page-link me-2",
|
|
556
|
+
pageButton: ({ context: e }) => ({
|
|
595
557
|
class: [
|
|
596
|
-
"
|
|
558
|
+
"page-link",
|
|
597
559
|
{
|
|
598
|
-
|
|
560
|
+
active: e.active,
|
|
561
|
+
disabled: e.disabled
|
|
599
562
|
}
|
|
600
563
|
]
|
|
601
|
-
})
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
monthTitle: "btn",
|
|
607
|
-
table: "m-2",
|
|
608
|
-
tableHeaderRow: "p-2",
|
|
609
|
-
weekday: "ms-2 ps-1",
|
|
610
|
-
monthPicker: "my-2",
|
|
611
|
-
month: "btn w-25",
|
|
612
|
-
yearPicker: "my-2",
|
|
613
|
-
year: "btn w-25",
|
|
614
|
-
timePicker: "d-flex justify-content-center align-items-center border-top p-2",
|
|
615
|
-
separatorContainer: "d-flex flex-column align-items-center px-2",
|
|
616
|
-
separator: "fs-4 mb-2",
|
|
617
|
-
hourPicker: "px-2 fs-5",
|
|
618
|
-
hour: "my-2",
|
|
619
|
-
minutePicker: "px-2 fs-5",
|
|
620
|
-
minute: "my-2",
|
|
621
|
-
secondPicker: "px-2 fs-5",
|
|
622
|
-
second: "my-2",
|
|
623
|
-
buttonbar: ({ props: e }) => ({
|
|
564
|
+
})
|
|
565
|
+
}
|
|
566
|
+
}, We = {
|
|
567
|
+
badge: {
|
|
568
|
+
root: ({ props: e }) => ({
|
|
624
569
|
class: [
|
|
625
|
-
"
|
|
570
|
+
"badge",
|
|
626
571
|
{
|
|
627
|
-
"
|
|
572
|
+
"badge-primary": e.severity === "primary" || e.severity === null,
|
|
573
|
+
"badge-brand": e.severity === "brand",
|
|
574
|
+
"badge-secondary": e.severity === "secondary",
|
|
575
|
+
"badge-success": e.severity === "success",
|
|
576
|
+
"badge-warning": e.severity === "warning" || e.severity === "warn",
|
|
577
|
+
"badge-danger": e.severity === "danger",
|
|
578
|
+
"badge-info": e.severity === "info"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"badge-xl fs-4 lh-sm": e.size === "xlarge",
|
|
582
|
+
"badge-lg fs-5 lh-1": e.size === "large"
|
|
628
583
|
}
|
|
629
584
|
]
|
|
630
585
|
})
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
root: "w-100 mx-2 line",
|
|
634
|
-
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
635
|
-
},
|
|
636
|
-
divider: {
|
|
637
|
-
root: "border-bottom m-4 w-100"
|
|
638
|
-
},
|
|
639
|
-
// More PassThrough options in component file.
|
|
640
|
-
chips: {
|
|
641
|
-
root: "d-flex",
|
|
642
|
-
label: "pe-2"
|
|
643
|
-
},
|
|
586
|
+
}
|
|
587
|
+
}, Ze = {
|
|
644
588
|
// More PassThrough options in component file.
|
|
645
589
|
menubar: {
|
|
646
590
|
menu: ({ instance: e }) => ({
|
|
@@ -695,19 +639,6 @@ const za = {
|
|
|
695
639
|
}),
|
|
696
640
|
submenuicon: "ms-1"
|
|
697
641
|
},
|
|
698
|
-
overlaypanel: {
|
|
699
|
-
root: (e) => ({
|
|
700
|
-
class: [
|
|
701
|
-
"card w-fit-content m-0",
|
|
702
|
-
{
|
|
703
|
-
"p-4": e.props.showCloseIcon,
|
|
704
|
-
"p-3": !e.props.showCloseIcon
|
|
705
|
-
}
|
|
706
|
-
]
|
|
707
|
-
}),
|
|
708
|
-
content: "d-flex position-relative",
|
|
709
|
-
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
710
|
-
},
|
|
711
642
|
menu: {
|
|
712
643
|
menu: (e) => ({
|
|
713
644
|
class: [
|
|
@@ -722,70 +653,84 @@ const za = {
|
|
|
722
653
|
"dropdown-item cursor-pointer"
|
|
723
654
|
]
|
|
724
655
|
})
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
|
|
656
|
+
}
|
|
657
|
+
}, Ye = {
|
|
658
|
+
tooltip: {
|
|
659
|
+
root: ({ context: e }) => ({
|
|
728
660
|
class: [
|
|
729
|
-
"
|
|
661
|
+
"tooltip show position-absolute",
|
|
730
662
|
{
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
734
|
-
"
|
|
735
|
-
"table-lg": e.props.size === "large",
|
|
736
|
-
"opacity-50": e.props.loading
|
|
663
|
+
"bs-tooltip-end ms-1": (e == null ? void 0 : e.right) || !(e != null && e.right) && !(e != null && e.left) && !(e != null && e.top) && !(e != null && e.bottom),
|
|
664
|
+
"bs-tooltip-start me-1": e == null ? void 0 : e.left,
|
|
665
|
+
"bs-tooltip-top": e == null ? void 0 : e.top,
|
|
666
|
+
"bs-tooltip-bottom": e == null ? void 0 : e.bottom
|
|
737
667
|
}
|
|
738
668
|
]
|
|
739
669
|
}),
|
|
740
|
-
|
|
741
|
-
class:
|
|
742
|
-
"
|
|
743
|
-
|
|
744
|
-
}),
|
|
745
|
-
rowgrouptoggler: "btn",
|
|
746
|
-
thead: () => ({
|
|
747
|
-
class: "sticky-header"
|
|
748
|
-
}),
|
|
749
|
-
//@ts-ignore
|
|
750
|
-
tbody: (e) => ({
|
|
751
|
-
class: {
|
|
752
|
-
"sticky-header": e.props.frozenRow
|
|
753
|
-
}
|
|
670
|
+
arrow: () => ({
|
|
671
|
+
class: [
|
|
672
|
+
"tooltip-arrow position-absolute"
|
|
673
|
+
]
|
|
754
674
|
}),
|
|
755
|
-
|
|
756
|
-
class: "
|
|
675
|
+
text: {
|
|
676
|
+
class: ["tooltip-inner"]
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}, Je = {
|
|
680
|
+
selectbutton: {
|
|
681
|
+
root: () => ({
|
|
682
|
+
class: ["btn-group"]
|
|
757
683
|
}),
|
|
758
|
-
|
|
759
|
-
class: "spinner-border border-0"
|
|
760
|
-
})
|
|
761
|
-
},
|
|
762
|
-
paginator: {
|
|
763
|
-
root: (e) => {
|
|
764
|
-
var t;
|
|
765
|
-
return {
|
|
766
|
-
class: [
|
|
767
|
-
"m-auto pagination justify-content-center",
|
|
768
|
-
{
|
|
769
|
-
"opacity-50": (t = e.parent) == null ? void 0 : t.props.loading
|
|
770
|
-
}
|
|
771
|
-
]
|
|
772
|
-
};
|
|
773
|
-
},
|
|
774
|
-
pages: "d-flex",
|
|
775
|
-
firstPageButton: "page-link",
|
|
776
|
-
previousPageButton: "page-link",
|
|
777
|
-
nextPageButton: "page-link",
|
|
778
|
-
lastPageButton: "page-link me-2",
|
|
779
|
-
pageButton: ({ context: e }) => ({
|
|
684
|
+
button: ({ context: e, props: t }) => ({
|
|
780
685
|
class: [
|
|
781
|
-
"
|
|
686
|
+
"btn",
|
|
782
687
|
{
|
|
783
|
-
|
|
784
|
-
|
|
688
|
+
"btn-primary": e.active,
|
|
689
|
+
"btn-outline-primary": !e.active
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"disabled w-auto": t.disabled || t.optionDisabled === e.option
|
|
785
693
|
}
|
|
786
694
|
]
|
|
787
695
|
})
|
|
788
|
-
}
|
|
696
|
+
}
|
|
697
|
+
}, Xe = {
|
|
698
|
+
progressspinner: {
|
|
699
|
+
spinner: () => ({
|
|
700
|
+
class: [
|
|
701
|
+
"spinner-border"
|
|
702
|
+
]
|
|
703
|
+
})
|
|
704
|
+
}
|
|
705
|
+
}, Qe = {
|
|
706
|
+
card: {
|
|
707
|
+
root: () => ({
|
|
708
|
+
class: ["card"]
|
|
709
|
+
}),
|
|
710
|
+
title: () => ({
|
|
711
|
+
class: ["card-title h4"]
|
|
712
|
+
}),
|
|
713
|
+
subtitle: () => ({
|
|
714
|
+
class: ["card-subtitle mb-2"]
|
|
715
|
+
}),
|
|
716
|
+
content: () => ({
|
|
717
|
+
class: ["card-text h-100"]
|
|
718
|
+
}),
|
|
719
|
+
body: () => ({
|
|
720
|
+
class: ["card-body"]
|
|
721
|
+
}),
|
|
722
|
+
footer: () => ({
|
|
723
|
+
class: ["mt-3"]
|
|
724
|
+
}),
|
|
725
|
+
header: () => ({
|
|
726
|
+
class: ["card-header"]
|
|
727
|
+
})
|
|
728
|
+
}
|
|
729
|
+
}, et = {
|
|
730
|
+
divider: {
|
|
731
|
+
root: "border-bottom m-4 w-100"
|
|
732
|
+
}
|
|
733
|
+
}, tt = {
|
|
789
734
|
image: {
|
|
790
735
|
root: "position-relative d-inline-block",
|
|
791
736
|
button: "preview-button",
|
|
@@ -798,7 +743,74 @@ const za = {
|
|
|
798
743
|
zoominbutton: "btn text-white",
|
|
799
744
|
closebutton: "btn text-white"
|
|
800
745
|
}
|
|
801
|
-
},
|
|
746
|
+
}, at = {
|
|
747
|
+
toast: {
|
|
748
|
+
message: () => ({
|
|
749
|
+
class: ["toast-container w-100 position-relative"]
|
|
750
|
+
}),
|
|
751
|
+
content: () => ({
|
|
752
|
+
class: ["toast-body d-flex align-items-center gap-2"]
|
|
753
|
+
}),
|
|
754
|
+
container: () => ({
|
|
755
|
+
class: ["toast bg-white show"]
|
|
756
|
+
}),
|
|
757
|
+
buttonContainer: () => ({
|
|
758
|
+
class: ["ms-auto"]
|
|
759
|
+
}),
|
|
760
|
+
closeButton: () => ({
|
|
761
|
+
class: ["btn-close toast-close-icon"]
|
|
762
|
+
}),
|
|
763
|
+
closeIcon: () => ({
|
|
764
|
+
class: "d-none"
|
|
765
|
+
}),
|
|
766
|
+
summary: () => ({
|
|
767
|
+
class: ["toast-body ps-1"]
|
|
768
|
+
}),
|
|
769
|
+
icon: ({ props: e }) => {
|
|
770
|
+
var t, l, a, o;
|
|
771
|
+
return {
|
|
772
|
+
class: [
|
|
773
|
+
"toast-icon",
|
|
774
|
+
{
|
|
775
|
+
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
776
|
+
"text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
|
|
777
|
+
"text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
|
|
778
|
+
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}, al = {
|
|
785
|
+
...We,
|
|
786
|
+
...ze,
|
|
787
|
+
...Qe,
|
|
788
|
+
...Me,
|
|
789
|
+
...Ne,
|
|
790
|
+
...Oe,
|
|
791
|
+
...qe,
|
|
792
|
+
...Ee,
|
|
793
|
+
...et,
|
|
794
|
+
...se,
|
|
795
|
+
...tt,
|
|
796
|
+
...Ue,
|
|
797
|
+
...De,
|
|
798
|
+
...Le,
|
|
799
|
+
...se,
|
|
800
|
+
...Ze,
|
|
801
|
+
...Re,
|
|
802
|
+
...Ge,
|
|
803
|
+
...Xe,
|
|
804
|
+
...Je,
|
|
805
|
+
...je,
|
|
806
|
+
...Ke,
|
|
807
|
+
...He,
|
|
808
|
+
...at,
|
|
809
|
+
...Ae,
|
|
810
|
+
directives: {
|
|
811
|
+
...Ye
|
|
812
|
+
}
|
|
813
|
+
}, ee = /* @__PURE__ */ x({
|
|
802
814
|
__name: "ForgeAlert",
|
|
803
815
|
props: {
|
|
804
816
|
severity: { default: "primary" },
|
|
@@ -815,32 +827,32 @@ const za = {
|
|
|
815
827
|
setup(e) {
|
|
816
828
|
const t = e;
|
|
817
829
|
return (l, a) => {
|
|
818
|
-
const o =
|
|
819
|
-
return
|
|
820
|
-
messageicon:
|
|
830
|
+
const o = ye;
|
|
831
|
+
return s(), w(o, J(X({ ...l.$attrs, ...t })), {
|
|
832
|
+
messageicon: v(() => [
|
|
821
833
|
c("div", {
|
|
822
|
-
class:
|
|
834
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
823
835
|
}, [
|
|
824
|
-
t.icon ? (
|
|
836
|
+
t.icon ? (s(), w(u(C), {
|
|
825
837
|
key: 0,
|
|
826
838
|
"data-cy": "message-icon",
|
|
827
839
|
icon: t.icon,
|
|
828
|
-
class:
|
|
840
|
+
class: B(`text-${t.severity}`),
|
|
829
841
|
height: 35
|
|
830
|
-
}, null, 8, ["icon", "class"])) :
|
|
842
|
+
}, null, 8, ["icon", "class"])) : F("", !0)
|
|
831
843
|
], 2)
|
|
832
844
|
]),
|
|
833
|
-
closeicon:
|
|
834
|
-
|
|
845
|
+
closeicon: v(() => [
|
|
846
|
+
b(u(C), { icon: "bi:x" })
|
|
835
847
|
]),
|
|
836
|
-
default:
|
|
848
|
+
default: v(() => [
|
|
837
849
|
k(l.$slots, "default")
|
|
838
850
|
]),
|
|
839
851
|
_: 3
|
|
840
852
|
}, 16);
|
|
841
853
|
};
|
|
842
854
|
}
|
|
843
|
-
}),
|
|
855
|
+
}), ll = /* @__PURE__ */ x({
|
|
844
856
|
__name: "ForgeActionButton",
|
|
845
857
|
props: {
|
|
846
858
|
action: {},
|
|
@@ -849,7 +861,7 @@ const za = {
|
|
|
849
861
|
params: { default: Array }
|
|
850
862
|
},
|
|
851
863
|
setup(e) {
|
|
852
|
-
const t =
|
|
864
|
+
const t = P(!1), l = e, a = async () => {
|
|
853
865
|
t.value = !0;
|
|
854
866
|
try {
|
|
855
867
|
await l.action.apply(this, l.params);
|
|
@@ -858,22 +870,22 @@ const za = {
|
|
|
858
870
|
}
|
|
859
871
|
t.value = !1;
|
|
860
872
|
};
|
|
861
|
-
return (o,
|
|
873
|
+
return (o, n) => {
|
|
862
874
|
const i = A;
|
|
863
|
-
return
|
|
864
|
-
|
|
875
|
+
return s(), p(O, null, [
|
|
876
|
+
b(i, S({ ...l, ...o.$attrs }, {
|
|
865
877
|
loading: t.value,
|
|
866
878
|
disabled: t.value || l.disabled,
|
|
867
879
|
onClick: a
|
|
868
880
|
}), null, 16, ["loading", "disabled"]),
|
|
869
|
-
|
|
881
|
+
b(u(ve))
|
|
870
882
|
], 64);
|
|
871
883
|
};
|
|
872
884
|
}
|
|
873
|
-
}),
|
|
885
|
+
}), lt = {
|
|
874
886
|
class: "d-flex",
|
|
875
887
|
"data-cy": "checkbox-container"
|
|
876
|
-
},
|
|
888
|
+
}, ot = /* @__PURE__ */ c("div", null, null, -1), nt = ["for"], st = /* @__PURE__ */ x({
|
|
877
889
|
__name: "ForgeCheckbox",
|
|
878
890
|
props: {
|
|
879
891
|
label: { default: "" },
|
|
@@ -901,38 +913,38 @@ const za = {
|
|
|
901
913
|
},
|
|
902
914
|
emits: ["update:modelValue"],
|
|
903
915
|
setup(e, { emit: t }) {
|
|
904
|
-
const l = t, a = e, { checked: o, handleChange:
|
|
916
|
+
const l = t, a = e, { checked: o, handleChange: n, errors: i, errorMessage: m } = W(() => a.name ?? a.label, a.rules, {
|
|
905
917
|
type: "checkbox",
|
|
906
918
|
checkedValue: !0,
|
|
907
919
|
initialValue: a.modelValue
|
|
908
920
|
}), y = (_) => {
|
|
909
|
-
a.disabled || (
|
|
921
|
+
a.disabled || (n(_), l("update:modelValue", !a.modelValue));
|
|
910
922
|
}, r = h(() => i.value.length > 0);
|
|
911
923
|
return (_, d) => {
|
|
912
|
-
const f =
|
|
913
|
-
return
|
|
914
|
-
c("div",
|
|
915
|
-
|
|
924
|
+
const f = fe;
|
|
925
|
+
return s(), p(O, null, [
|
|
926
|
+
c("div", lt, [
|
|
927
|
+
b(f, S({
|
|
916
928
|
id: a.name
|
|
917
929
|
}, { ..._.$attrs, ...a }, {
|
|
918
930
|
value: u(o),
|
|
919
931
|
"input-class": { "is-invalid": r.value },
|
|
920
932
|
onChange: y
|
|
921
933
|
}), {
|
|
922
|
-
icon:
|
|
923
|
-
|
|
934
|
+
icon: v(() => [
|
|
935
|
+
ot
|
|
924
936
|
]),
|
|
925
937
|
_: 1
|
|
926
938
|
}, 16, ["id", "value", "input-class"]),
|
|
927
939
|
c("label", {
|
|
928
940
|
for: a.name,
|
|
929
|
-
class:
|
|
941
|
+
class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
|
|
930
942
|
onClick: y
|
|
931
943
|
}, [
|
|
932
944
|
k(_.$slots, "default", {}, () => [
|
|
933
|
-
|
|
945
|
+
V(g(a.label), 1)
|
|
934
946
|
])
|
|
935
|
-
], 10,
|
|
947
|
+
], 10, nt)
|
|
936
948
|
]),
|
|
937
949
|
j(c("small", {
|
|
938
950
|
"data-cy": "error",
|
|
@@ -943,7 +955,7 @@ const za = {
|
|
|
943
955
|
], 64);
|
|
944
956
|
};
|
|
945
957
|
}
|
|
946
|
-
}),
|
|
958
|
+
}), it = { class: "forge-loader" }, ce = /* @__PURE__ */ x({
|
|
947
959
|
__name: "ForgeLoader",
|
|
948
960
|
props: {
|
|
949
961
|
severity: { default: "primary" }
|
|
@@ -951,16 +963,16 @@ const za = {
|
|
|
951
963
|
setup(e) {
|
|
952
964
|
const t = e;
|
|
953
965
|
return (l, a) => {
|
|
954
|
-
const o =
|
|
955
|
-
return
|
|
956
|
-
|
|
966
|
+
const o = ge;
|
|
967
|
+
return s(), p("div", it, [
|
|
968
|
+
b(o, {
|
|
957
969
|
"animation-duration": ".75",
|
|
958
|
-
class:
|
|
970
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
959
971
|
}, null, 8, ["class"])
|
|
960
972
|
]);
|
|
961
973
|
};
|
|
962
974
|
}
|
|
963
|
-
}),
|
|
975
|
+
}), rt = ["href", "target"], ol = /* @__PURE__ */ x({
|
|
964
976
|
__name: "ForgeLink",
|
|
965
977
|
props: {
|
|
966
978
|
url: {},
|
|
@@ -994,25 +1006,25 @@ const za = {
|
|
|
994
1006
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
995
1007
|
"me-0": e.animateIconOnHover
|
|
996
1008
|
}));
|
|
997
|
-
return (a, o) => (
|
|
1009
|
+
return (a, o) => (s(), p("a", {
|
|
998
1010
|
id: "link",
|
|
999
|
-
class:
|
|
1011
|
+
class: B(["cursor-pointer d-flex", t.value]),
|
|
1000
1012
|
href: a.url,
|
|
1001
1013
|
target: a.target
|
|
1002
1014
|
}, [
|
|
1003
1015
|
k(a.$slots, "default", {}, () => [
|
|
1004
|
-
a.iconName ? (
|
|
1016
|
+
a.iconName ? (s(), w(u(C), {
|
|
1005
1017
|
key: 0,
|
|
1006
1018
|
id: "link-icon",
|
|
1007
1019
|
icon: a.iconName,
|
|
1008
|
-
class:
|
|
1009
|
-
}, null, 8, ["icon", "class"])) :
|
|
1010
|
-
|
|
1020
|
+
class: B(["bi my-auto", l.value])
|
|
1021
|
+
}, null, 8, ["icon", "class"])) : F("", !0),
|
|
1022
|
+
V(" " + g(a.label), 1)
|
|
1011
1023
|
])
|
|
1012
|
-
], 10,
|
|
1024
|
+
], 10, rt));
|
|
1013
1025
|
}
|
|
1014
1026
|
});
|
|
1015
|
-
function
|
|
1027
|
+
function dt(e) {
|
|
1016
1028
|
const t = {
|
|
1017
1029
|
errorMessage: "",
|
|
1018
1030
|
errorDetails: []
|
|
@@ -1023,10 +1035,10 @@ function Ae(e) {
|
|
|
1023
1035
|
}
|
|
1024
1036
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1025
1037
|
}
|
|
1026
|
-
const
|
|
1038
|
+
const ut = { key: 0 }, ct = {
|
|
1027
1039
|
class: "d-flex w-100",
|
|
1028
1040
|
"data-cy": "footer"
|
|
1029
|
-
},
|
|
1041
|
+
}, nl = /* @__PURE__ */ x({
|
|
1030
1042
|
__name: "ForgeModal",
|
|
1031
1043
|
props: /* @__PURE__ */ G({
|
|
1032
1044
|
cancelText: { default: "Cancel" },
|
|
@@ -1069,7 +1081,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1069
1081
|
}),
|
|
1070
1082
|
emits: ["update:visible"],
|
|
1071
1083
|
setup(e) {
|
|
1072
|
-
const t = L(e, "visible"), l =
|
|
1084
|
+
const t = L(e, "visible"), l = P(!1), a = e, o = P(!1), n = P({
|
|
1073
1085
|
hasError: !1,
|
|
1074
1086
|
header: "",
|
|
1075
1087
|
message: []
|
|
@@ -1081,14 +1093,14 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1081
1093
|
t.value = !1;
|
|
1082
1094
|
}, r = async () => {
|
|
1083
1095
|
if (a.onConfirm) {
|
|
1084
|
-
o.value = !0,
|
|
1096
|
+
o.value = !0, n.value.hasError = !1;
|
|
1085
1097
|
try {
|
|
1086
1098
|
const d = await a.onConfirm();
|
|
1087
1099
|
(d || d == null) && y();
|
|
1088
1100
|
} catch (d) {
|
|
1089
|
-
|
|
1090
|
-
const f =
|
|
1091
|
-
|
|
1101
|
+
n.value.hasError = !0;
|
|
1102
|
+
const f = dt(d);
|
|
1103
|
+
n.value.header = f.errorMessage, n.value.message = f.errorDetails;
|
|
1092
1104
|
}
|
|
1093
1105
|
o.value = !1;
|
|
1094
1106
|
}
|
|
@@ -1101,14 +1113,14 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1101
1113
|
]
|
|
1102
1114
|
}));
|
|
1103
1115
|
return (d, f) => {
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1116
|
+
const $ = A, T = he;
|
|
1117
|
+
return s(), w(T, S(a, {
|
|
1106
1118
|
onMaximize: m,
|
|
1107
1119
|
onUnmaximize: i,
|
|
1108
1120
|
pt: _.value
|
|
1109
1121
|
}), Q({
|
|
1110
|
-
closeicon:
|
|
1111
|
-
|
|
1122
|
+
closeicon: v(() => [
|
|
1123
|
+
b(u(C), {
|
|
1112
1124
|
"data-cy": "close-icon",
|
|
1113
1125
|
icon: "bi:x-lg",
|
|
1114
1126
|
width: "18",
|
|
@@ -1116,8 +1128,8 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1116
1128
|
onClick: y
|
|
1117
1129
|
})
|
|
1118
1130
|
]),
|
|
1119
|
-
maximizeicon:
|
|
1120
|
-
|
|
1131
|
+
maximizeicon: v(() => [
|
|
1132
|
+
b(u(C), {
|
|
1121
1133
|
"data-cy": "maximisable-icon",
|
|
1122
1134
|
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1123
1135
|
width: "16",
|
|
@@ -1126,44 +1138,44 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1126
1138
|
]),
|
|
1127
1139
|
_: 2
|
|
1128
1140
|
}, [
|
|
1129
|
-
E(d.$slots, (
|
|
1130
|
-
name:
|
|
1131
|
-
fn:
|
|
1132
|
-
|
|
1141
|
+
E(d.$slots, (I, M) => ({
|
|
1142
|
+
name: M,
|
|
1143
|
+
fn: v((z) => [
|
|
1144
|
+
n.value.hasError ? (s(), w(ee, {
|
|
1133
1145
|
key: 0,
|
|
1134
1146
|
severity: "danger",
|
|
1135
1147
|
"data-cy": "error"
|
|
1136
1148
|
}, {
|
|
1137
|
-
default:
|
|
1149
|
+
default: v(() => [
|
|
1138
1150
|
c("p", {
|
|
1139
|
-
class:
|
|
1140
|
-
}, g(
|
|
1141
|
-
|
|
1142
|
-
(
|
|
1143
|
-
])) :
|
|
1151
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1152
|
+
}, g(n.value.header), 3),
|
|
1153
|
+
n.value.message.length > 0 ? (s(), p("ul", ut, [
|
|
1154
|
+
(s(!0), p(O, null, E(n.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
|
|
1155
|
+
])) : F("", !0)
|
|
1144
1156
|
]),
|
|
1145
1157
|
_: 1
|
|
1146
|
-
})) :
|
|
1147
|
-
k(d.$slots,
|
|
1158
|
+
})) : F("", !0),
|
|
1159
|
+
k(d.$slots, M, J(X(z || {}))),
|
|
1148
1160
|
o.value ? k(d.$slots, "loader", { key: 1 }, () => [
|
|
1149
|
-
|
|
1150
|
-
]) :
|
|
1161
|
+
b(ce, { "data-cy": "loader" })
|
|
1162
|
+
]) : F("", !0)
|
|
1151
1163
|
])
|
|
1152
1164
|
})),
|
|
1153
1165
|
d.showFooter ? {
|
|
1154
1166
|
name: "footer",
|
|
1155
|
-
fn:
|
|
1156
|
-
c("div",
|
|
1157
|
-
|
|
1167
|
+
fn: v(() => [
|
|
1168
|
+
c("div", ct, [
|
|
1169
|
+
b($, {
|
|
1158
1170
|
label: d.cancelText,
|
|
1159
|
-
class:
|
|
1171
|
+
class: B(a.cancelClass),
|
|
1160
1172
|
outlined: "",
|
|
1161
1173
|
onClick: y,
|
|
1162
1174
|
id: "cancel-button"
|
|
1163
1175
|
}, null, 8, ["label", "class"]),
|
|
1164
|
-
|
|
1176
|
+
b($, {
|
|
1165
1177
|
label: d.submitText,
|
|
1166
|
-
class:
|
|
1178
|
+
class: B([a.submitClass, "ms-auto"]),
|
|
1167
1179
|
onClick: r,
|
|
1168
1180
|
id: "submit-button"
|
|
1169
1181
|
}, null, 8, ["label", "class"])
|
|
@@ -1174,7 +1186,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1174
1186
|
]), 1040, ["pt"]);
|
|
1175
1187
|
};
|
|
1176
1188
|
}
|
|
1177
|
-
}),
|
|
1189
|
+
}), mt = ["id"], pt = { key: 0 }, yt = { key: 0 }, bt = { class: "d-flex justify-content-between align-items-center position-relative" }, vt = { key: 1 }, ft = { "data-cy": "readonly-value" }, gt = /* @__PURE__ */ x({
|
|
1178
1190
|
__name: "ForgeInlineEditor",
|
|
1179
1191
|
props: /* @__PURE__ */ G({
|
|
1180
1192
|
name: { default: "" },
|
|
@@ -1190,9 +1202,9 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1190
1202
|
}),
|
|
1191
1203
|
emits: ["update:modelValue"],
|
|
1192
1204
|
setup(e) {
|
|
1193
|
-
const t = e, l = L(e, "modelValue"), a =
|
|
1194
|
-
var
|
|
1195
|
-
a.value = !a.value, (
|
|
1205
|
+
const t = e, l = L(e, "modelValue"), a = P(!1), o = P(), n = () => {
|
|
1206
|
+
var $;
|
|
1207
|
+
a.value = !a.value, ($ = o.value) == null || $.focus();
|
|
1196
1208
|
}, i = async () => {
|
|
1197
1209
|
if (f.value)
|
|
1198
1210
|
return !1;
|
|
@@ -1209,43 +1221,43 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1209
1221
|
}, y = () => {
|
|
1210
1222
|
d.value = null;
|
|
1211
1223
|
}, { errorMessage: r, errors: _, value: d } = W(() => t.name, t.rules);
|
|
1212
|
-
|
|
1224
|
+
ie(() => {
|
|
1213
1225
|
d.value = l.value;
|
|
1214
1226
|
});
|
|
1215
1227
|
const f = h(() => _.value.length > 0);
|
|
1216
|
-
return (
|
|
1217
|
-
const
|
|
1218
|
-
return
|
|
1228
|
+
return ($, T) => {
|
|
1229
|
+
const I = le, M = A;
|
|
1230
|
+
return s(), p("div", {
|
|
1219
1231
|
id: t.name
|
|
1220
1232
|
}, [
|
|
1221
|
-
|
|
1222
|
-
k(
|
|
1223
|
-
c("span",
|
|
1233
|
+
$.readonly ? (s(), p("div", vt, [
|
|
1234
|
+
k($.$slots, "default", {}, () => [
|
|
1235
|
+
c("span", ft, g(u(d)), 1)
|
|
1224
1236
|
])
|
|
1225
|
-
])) : (
|
|
1226
|
-
a.value ? (
|
|
1227
|
-
j((
|
|
1228
|
-
k(
|
|
1229
|
-
class:
|
|
1237
|
+
])) : (s(), p("div", pt, [
|
|
1238
|
+
a.value ? (s(), p("div", yt, [
|
|
1239
|
+
j((s(), p("div", bt, [
|
|
1240
|
+
k($.$slots, "editor", {
|
|
1241
|
+
class: B({ "is-invalid": f.value }),
|
|
1230
1242
|
editFinished: i,
|
|
1231
1243
|
cancel: m,
|
|
1232
1244
|
val: u(d)
|
|
1233
1245
|
}, () => [
|
|
1234
|
-
|
|
1246
|
+
b(I, {
|
|
1235
1247
|
"data-cy": "input",
|
|
1236
1248
|
ref_key: "input",
|
|
1237
1249
|
ref: o,
|
|
1238
1250
|
modelValue: u(d),
|
|
1239
|
-
"onUpdate:modelValue":
|
|
1251
|
+
"onUpdate:modelValue": T[0] || (T[0] = (z) => H(d) ? d.value = z : null),
|
|
1240
1252
|
modelModifiers: { trim: !0 },
|
|
1241
|
-
class:
|
|
1253
|
+
class: B({ "is-invalid": f.value }),
|
|
1242
1254
|
onKeydown: [
|
|
1243
1255
|
Z(i, ["enter"]),
|
|
1244
1256
|
Z(m, ["esc"])
|
|
1245
1257
|
]
|
|
1246
1258
|
}, null, 8, ["modelValue", "class"])
|
|
1247
1259
|
]),
|
|
1248
|
-
|
|
1260
|
+
b(u(C), {
|
|
1249
1261
|
icon: "bi:x-circle",
|
|
1250
1262
|
class: "mx-2 cursor-pointer",
|
|
1251
1263
|
onClick: y,
|
|
@@ -1253,30 +1265,30 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1253
1265
|
"data-cy": "clear-icon"
|
|
1254
1266
|
})
|
|
1255
1267
|
])), [
|
|
1256
|
-
[u(
|
|
1268
|
+
[u(we), i]
|
|
1257
1269
|
])
|
|
1258
|
-
])) : (
|
|
1270
|
+
])) : (s(), p("div", {
|
|
1259
1271
|
key: 1,
|
|
1260
1272
|
class: "d-flex text-muted",
|
|
1261
|
-
onClick:
|
|
1262
|
-
onFocus:
|
|
1273
|
+
onClick: n,
|
|
1274
|
+
onFocus: n
|
|
1263
1275
|
}, [
|
|
1264
|
-
k(
|
|
1276
|
+
k($.$slots, "default", {}, () => [
|
|
1265
1277
|
c("div", {
|
|
1266
|
-
class:
|
|
1278
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": f.value }]),
|
|
1267
1279
|
"data-cy": "value"
|
|
1268
1280
|
}, g(u(d) ? u(d) : "Click to edit"), 3)
|
|
1269
1281
|
]),
|
|
1270
|
-
|
|
1282
|
+
b(M, {
|
|
1271
1283
|
link: "",
|
|
1272
1284
|
class: "p-0 m-0"
|
|
1273
1285
|
}, {
|
|
1274
|
-
default:
|
|
1275
|
-
|
|
1286
|
+
default: v(() => [
|
|
1287
|
+
b(u(C), {
|
|
1276
1288
|
icon: "bi:pencil",
|
|
1277
|
-
class:
|
|
1289
|
+
class: B(f.value ? "text-invalid" : "text-muted"),
|
|
1278
1290
|
"data-cy": "edit-icon",
|
|
1279
|
-
onKeydown: Z(
|
|
1291
|
+
onKeydown: Z(n, ["enter"])
|
|
1280
1292
|
}, null, 8, ["class"])
|
|
1281
1293
|
]),
|
|
1282
1294
|
_: 1
|
|
@@ -1289,10 +1301,10 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1289
1301
|
}, g(u(r)), 513), [
|
|
1290
1302
|
[q, f.value]
|
|
1291
1303
|
])
|
|
1292
|
-
], 8,
|
|
1304
|
+
], 8, mt);
|
|
1293
1305
|
};
|
|
1294
1306
|
}
|
|
1295
|
-
}),
|
|
1307
|
+
}), ht = ["href"], sl = /* @__PURE__ */ x({
|
|
1296
1308
|
__name: "ForgeNavbar",
|
|
1297
1309
|
props: {
|
|
1298
1310
|
severity: { default: "light" },
|
|
@@ -1317,6 +1329,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1317
1329
|
"bg-light": t.severity === "light",
|
|
1318
1330
|
"bg-dark": t.severity === "dark",
|
|
1319
1331
|
"bg-primary": t.severity === "primary",
|
|
1332
|
+
"bg-brand": t.severity === "brand",
|
|
1320
1333
|
"bg-secondary": t.severity === "secondary",
|
|
1321
1334
|
"bg-success": t.severity === "success",
|
|
1322
1335
|
"bg-warning": t.severity === "warning",
|
|
@@ -1336,27 +1349,27 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1336
1349
|
})
|
|
1337
1350
|
}));
|
|
1338
1351
|
return (a, o) => {
|
|
1339
|
-
const
|
|
1340
|
-
return
|
|
1352
|
+
const n = ke;
|
|
1353
|
+
return s(), w(n, S({ ...t, ...a.$attrs }, {
|
|
1341
1354
|
pt: l.value,
|
|
1342
1355
|
"data-cy": "navbar"
|
|
1343
1356
|
}), Q({
|
|
1344
|
-
start:
|
|
1357
|
+
start: v(() => [
|
|
1345
1358
|
c("a", {
|
|
1346
1359
|
href: a.logoUrl,
|
|
1347
1360
|
class: "navbar-brand ms-3",
|
|
1348
1361
|
"data-cy": "logo"
|
|
1349
1362
|
}, [
|
|
1350
1363
|
k(a.$slots, "logo", {}, () => [
|
|
1351
|
-
|
|
1364
|
+
V(" Logo ")
|
|
1352
1365
|
])
|
|
1353
|
-
], 8,
|
|
1366
|
+
], 8, ht)
|
|
1354
1367
|
]),
|
|
1355
|
-
menubuttonicon:
|
|
1368
|
+
menubuttonicon: v(() => [
|
|
1356
1369
|
k(a.$slots, "menubuttonicon", {}, () => [
|
|
1357
|
-
|
|
1370
|
+
b(u(C), {
|
|
1358
1371
|
icon: "bi:list",
|
|
1359
|
-
class:
|
|
1372
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1360
1373
|
height: "24",
|
|
1361
1374
|
"data-cy": "burger-icon"
|
|
1362
1375
|
}, null, 8, ["class"])
|
|
@@ -1366,14 +1379,14 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1366
1379
|
}, [
|
|
1367
1380
|
E(a.$slots, (i, m) => ({
|
|
1368
1381
|
name: m,
|
|
1369
|
-
fn:
|
|
1382
|
+
fn: v((y) => [
|
|
1370
1383
|
k(a.$slots, m, J(X(y)))
|
|
1371
1384
|
])
|
|
1372
1385
|
}))
|
|
1373
1386
|
]), 1040, ["pt"]);
|
|
1374
1387
|
};
|
|
1375
1388
|
}
|
|
1376
|
-
}),
|
|
1389
|
+
}), wt = ["onMousedown"], kt = ["checked"], _t = /* @__PURE__ */ c("strong", null, "Select all", -1), xt = ["data-cy"], $t = ["checked"], Bt = /* @__PURE__ */ x({
|
|
1377
1390
|
__name: "ForgeMultiSelect",
|
|
1378
1391
|
props: {
|
|
1379
1392
|
severity: { default: "primary" },
|
|
@@ -1386,7 +1399,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1386
1399
|
},
|
|
1387
1400
|
emits: ["update:modelValue"],
|
|
1388
1401
|
setup(e, { emit: t }) {
|
|
1389
|
-
const l = e, a =
|
|
1402
|
+
const l = e, a = re(), o = t, { errors: n, value: i, errorMessage: m } = W(() => l.name, l.rules), y = P(!1), r = h(() => ({
|
|
1390
1403
|
multiple: !0,
|
|
1391
1404
|
label: "label",
|
|
1392
1405
|
trackBy: "id",
|
|
@@ -1399,16 +1412,16 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1399
1412
|
searchable: !!((a.searchable === null || a.searchable) && !f.value),
|
|
1400
1413
|
async: !1,
|
|
1401
1414
|
...a
|
|
1402
|
-
})), _ = h(() => `forge-multiselect-${l.severity}`), d = h(() => `multiselect-option ${y.value ? " multiselect__option--highlight" : ""} ${f.value ? " multiselect__option--selected" : ""}`), f = h(() => r.value && !(r.value.multiple || !l.showSelectAll || r.value.async) ? !1 : a.modelValue.length === a.options.length),
|
|
1415
|
+
})), _ = h(() => `forge-multiselect-${l.severity}`), d = h(() => `multiselect-option ${y.value ? " multiselect__option--highlight" : ""} ${f.value ? " multiselect__option--selected" : ""}`), f = h(() => r.value && !(r.value.multiple || !l.showSelectAll || r.value.async) ? !1 : a.modelValue.length === a.options.length), $ = h(() => n.value.length > 0), T = h(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (r.value.multiple ? a.modelValue.length > 0 : a.modelValue))), I = () => y.value = !0, M = () => y.value = !1, z = () => {
|
|
1403
1416
|
i.value = r.value.multiple ? [] : null, o("update:modelValue", i.value);
|
|
1404
|
-
}, N = (
|
|
1405
|
-
o("update:modelValue", l.selectValue ?
|
|
1406
|
-
}, te = (
|
|
1407
|
-
f.value ?
|
|
1417
|
+
}, N = (U) => {
|
|
1418
|
+
o("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
|
|
1419
|
+
}, te = (U) => a.modelValue !== null ? a.modelValue.some((D) => r.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, pe = () => {
|
|
1420
|
+
f.value ? z() : (i.value = [...a.options], o("update:modelValue", [...a.options]));
|
|
1408
1421
|
};
|
|
1409
|
-
return (
|
|
1410
|
-
|
|
1411
|
-
class: [_.value,
|
|
1422
|
+
return (U, D) => (s(), p(O, null, [
|
|
1423
|
+
b(u(_e), S(r.value, {
|
|
1424
|
+
class: [_.value, $.value ? "is-invalid" : ""],
|
|
1412
1425
|
"data-cy": "multiselect",
|
|
1413
1426
|
"onUpdate:modelValue": [
|
|
1414
1427
|
N,
|
|
@@ -1416,47 +1429,47 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1416
1429
|
],
|
|
1417
1430
|
modelValue: u(i)
|
|
1418
1431
|
}), Q({
|
|
1419
|
-
default:
|
|
1420
|
-
(
|
|
1432
|
+
default: v(() => [
|
|
1433
|
+
(s(!0), p(O, null, E(U.$slots, (R, ae) => k(U.$slots, ae, { slot: ae })), 256))
|
|
1421
1434
|
]),
|
|
1422
1435
|
_: 2
|
|
1423
1436
|
}, [
|
|
1424
|
-
|
|
1437
|
+
T.value ? {
|
|
1425
1438
|
name: "caret",
|
|
1426
|
-
fn:
|
|
1427
|
-
|
|
1439
|
+
fn: v(({ toggle: R }) => [
|
|
1440
|
+
b(u(C), {
|
|
1428
1441
|
icon: "bi:x",
|
|
1429
1442
|
class: "my-auto multiselect__clear-icon",
|
|
1430
|
-
onMousedown: D[0] || (D[0] = K((ae) =>
|
|
1443
|
+
onMousedown: D[0] || (D[0] = K((ae) => z(), ["prevent", "stop"])),
|
|
1431
1444
|
"data-cy": "clear"
|
|
1432
1445
|
}),
|
|
1433
1446
|
c("div", {
|
|
1434
1447
|
class: "multiselect__select",
|
|
1435
1448
|
onMousedown: K(R, ["prevent", "stop"])
|
|
1436
|
-
}, null, 40,
|
|
1449
|
+
}, null, 40, wt)
|
|
1437
1450
|
]),
|
|
1438
1451
|
key: "0"
|
|
1439
1452
|
} : void 0,
|
|
1440
|
-
r.value.multiple &&
|
|
1453
|
+
r.value.multiple && U.showSelectAll && !r.value.async ? {
|
|
1441
1454
|
name: "beforeList",
|
|
1442
|
-
fn:
|
|
1455
|
+
fn: v(() => [
|
|
1443
1456
|
c("li", {
|
|
1444
1457
|
class: "multiselect__element",
|
|
1445
|
-
onClick:
|
|
1446
|
-
onMouseover:
|
|
1447
|
-
onMouseleave:
|
|
1458
|
+
onClick: pe,
|
|
1459
|
+
onMouseover: I,
|
|
1460
|
+
onMouseleave: M,
|
|
1448
1461
|
"data-cy": "toggle-all"
|
|
1449
1462
|
}, [
|
|
1450
1463
|
c("span", {
|
|
1451
|
-
class:
|
|
1464
|
+
class: B(`multiselect__option ${d.value}`)
|
|
1452
1465
|
}, [
|
|
1453
1466
|
c("input", {
|
|
1454
1467
|
checked: f.value,
|
|
1455
1468
|
name: "selected",
|
|
1456
1469
|
type: "checkbox",
|
|
1457
1470
|
class: "multiselect__option--checkbox"
|
|
1458
|
-
}, null, 8,
|
|
1459
|
-
|
|
1471
|
+
}, null, 8, kt),
|
|
1472
|
+
_t
|
|
1460
1473
|
], 2)
|
|
1461
1474
|
], 32)
|
|
1462
1475
|
]),
|
|
@@ -1464,7 +1477,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1464
1477
|
} : void 0,
|
|
1465
1478
|
r.value.multiple ? {
|
|
1466
1479
|
name: "option",
|
|
1467
|
-
fn:
|
|
1480
|
+
fn: v(({ option: R }) => [
|
|
1468
1481
|
c("div", {
|
|
1469
1482
|
"data-cy": R.label
|
|
1470
1483
|
}, [
|
|
@@ -1473,9 +1486,9 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1473
1486
|
name: "selected",
|
|
1474
1487
|
type: "checkbox",
|
|
1475
1488
|
class: "multiselect__option--checkbox"
|
|
1476
|
-
}, null, 8,
|
|
1477
|
-
|
|
1478
|
-
], 8,
|
|
1489
|
+
}, null, 8, $t),
|
|
1490
|
+
V(" " + g(R[r.value.label]), 1)
|
|
1491
|
+
], 8, xt)
|
|
1479
1492
|
]),
|
|
1480
1493
|
key: "2"
|
|
1481
1494
|
} : void 0
|
|
@@ -1484,21 +1497,21 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1484
1497
|
"data-cy": "error",
|
|
1485
1498
|
class: "invalid-feedback"
|
|
1486
1499
|
}, g(u(m)), 513), [
|
|
1487
|
-
[q,
|
|
1500
|
+
[q, $.value]
|
|
1488
1501
|
])
|
|
1489
1502
|
], 64));
|
|
1490
1503
|
}
|
|
1491
|
-
}),
|
|
1504
|
+
}), Ft = {
|
|
1492
1505
|
key: 0,
|
|
1493
1506
|
class: "pl-1"
|
|
1494
|
-
},
|
|
1507
|
+
}, St = { class: "border alternating-item-list" }, Ct = {
|
|
1495
1508
|
key: 0,
|
|
1496
1509
|
class: "p-2 border-top border-bottom",
|
|
1497
1510
|
"data-cy": "title"
|
|
1498
|
-
},
|
|
1511
|
+
}, Tt = { class: "d-inline-block" }, Pt = {
|
|
1499
1512
|
key: 1,
|
|
1500
1513
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1501
|
-
},
|
|
1514
|
+
}, il = /* @__PURE__ */ x({
|
|
1502
1515
|
__name: "ForgeMultiSelectPreview",
|
|
1503
1516
|
props: {
|
|
1504
1517
|
title: { default: "Selected Items" },
|
|
@@ -1509,104 +1522,104 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1509
1522
|
},
|
|
1510
1523
|
emits: ["update:modelValue"],
|
|
1511
1524
|
setup(e, { emit: t }) {
|
|
1512
|
-
const l = e, a =
|
|
1525
|
+
const l = e, a = re(), o = t, n = h(() => `${a.modelValue.length} selected`), i = h(() => a.modelValue.length), m = (r) => {
|
|
1513
1526
|
o("update:modelValue", r);
|
|
1514
1527
|
}, y = (r) => {
|
|
1515
1528
|
m(a.modelValue.filter((_) => _.id !== r));
|
|
1516
1529
|
};
|
|
1517
1530
|
return (r, _) => {
|
|
1518
1531
|
const d = A;
|
|
1519
|
-
return
|
|
1520
|
-
class:
|
|
1532
|
+
return s(), p("div", {
|
|
1533
|
+
class: B(r.orientation === "column" ? "row" : ""),
|
|
1521
1534
|
"data-cy": "multiselect-preview"
|
|
1522
1535
|
}, [
|
|
1523
1536
|
c("div", {
|
|
1524
|
-
class:
|
|
1537
|
+
class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1525
1538
|
"data-cy": "multiselect-container"
|
|
1526
1539
|
}, [
|
|
1527
|
-
|
|
1540
|
+
b(Bt, {
|
|
1528
1541
|
"onUpdate:modelValue": [
|
|
1529
1542
|
_[0] || (_[0] = (f) => m(f)),
|
|
1530
1543
|
_[1] || (_[1] = (f) => r.$attrs.modelValue = f)
|
|
1531
1544
|
],
|
|
1532
1545
|
modelValue: r.$attrs.modelValue,
|
|
1533
|
-
"limit-text":
|
|
1546
|
+
"limit-text": n.value,
|
|
1534
1547
|
options: l.options
|
|
1535
1548
|
}, {
|
|
1536
|
-
tag:
|
|
1537
|
-
|
|
1549
|
+
tag: v(() => [
|
|
1550
|
+
V(g(""))
|
|
1538
1551
|
]),
|
|
1539
|
-
selection:
|
|
1540
|
-
r.$attrs.modelValue.length > 0 ? (
|
|
1552
|
+
selection: v(() => [
|
|
1553
|
+
r.$attrs.modelValue.length > 0 ? (s(), p("span", Ft, g(i.value) + " items selected", 1)) : F("", !0)
|
|
1541
1554
|
]),
|
|
1542
|
-
default:
|
|
1543
|
-
(
|
|
1555
|
+
default: v(() => [
|
|
1556
|
+
(s(!0), p(O, null, E(r.$slots, (f, $) => k(r.$slots, $, { slot: $ })), 256))
|
|
1544
1557
|
]),
|
|
1545
1558
|
_: 3
|
|
1546
1559
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1547
1560
|
k(r.$slots, "after-multi-select")
|
|
1548
1561
|
], 2),
|
|
1549
1562
|
c("div", {
|
|
1550
|
-
class:
|
|
1563
|
+
class: B(r.orientation === "row" ? "col-12" : "col"),
|
|
1551
1564
|
"data-cy": "options-preview"
|
|
1552
1565
|
}, [
|
|
1553
1566
|
c("div", {
|
|
1554
|
-
style:
|
|
1567
|
+
style: be({ height: r.height }),
|
|
1555
1568
|
class: "overflow-auto"
|
|
1556
1569
|
}, [
|
|
1557
|
-
c("div",
|
|
1558
|
-
r.title ? (
|
|
1559
|
-
(
|
|
1570
|
+
c("div", St, [
|
|
1571
|
+
r.title ? (s(), p("div", Ct, g(r.title), 1)) : F("", !0),
|
|
1572
|
+
(s(!0), p(O, null, E(r.$attrs.modelValue, (f) => (s(), p("div", {
|
|
1560
1573
|
key: f.id,
|
|
1561
1574
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1562
1575
|
}, [
|
|
1563
1576
|
k(r.$slots, "list-item", { item: f }, () => [
|
|
1564
|
-
c("span",
|
|
1577
|
+
c("span", Tt, g(f.shortLabel ? f.shortLabel : f.label), 1)
|
|
1565
1578
|
]),
|
|
1566
|
-
r.canRemoveItemFromPreview ? (
|
|
1579
|
+
r.canRemoveItemFromPreview ? (s(), w(d, {
|
|
1567
1580
|
key: 0,
|
|
1568
1581
|
link: "",
|
|
1569
1582
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1570
|
-
onClick: (
|
|
1583
|
+
onClick: ($) => y(f.id)
|
|
1571
1584
|
}, {
|
|
1572
|
-
default:
|
|
1573
|
-
|
|
1585
|
+
default: v(() => [
|
|
1586
|
+
b(u(C), {
|
|
1574
1587
|
icon: "bi:x",
|
|
1575
1588
|
class: "close-icon",
|
|
1576
1589
|
"data-cy": `close-icon-${f.id}`
|
|
1577
1590
|
}, null, 8, ["data-cy"])
|
|
1578
1591
|
]),
|
|
1579
1592
|
_: 2
|
|
1580
|
-
}, 1032, ["onClick"])) :
|
|
1593
|
+
}, 1032, ["onClick"])) : F("", !0)
|
|
1581
1594
|
]))), 128)),
|
|
1582
|
-
r.$attrs.modelValue.length === 0 ? (
|
|
1595
|
+
r.$attrs.modelValue.length === 0 ? (s(), p("div", Pt, "No Items Selected.")) : F("", !0)
|
|
1583
1596
|
])
|
|
1584
1597
|
], 4)
|
|
1585
1598
|
], 2)
|
|
1586
1599
|
], 2);
|
|
1587
1600
|
};
|
|
1588
1601
|
}
|
|
1589
|
-
}),
|
|
1602
|
+
}), Vt = { class: "d-flex justify-content-between pb-2" }, It = {
|
|
1590
1603
|
"data-cy": "title",
|
|
1591
1604
|
class: "h3"
|
|
1592
|
-
},
|
|
1605
|
+
}, zt = {
|
|
1593
1606
|
"data-cy": "slot",
|
|
1594
1607
|
class: "d-flex align-items-center"
|
|
1595
|
-
},
|
|
1608
|
+
}, rl = /* @__PURE__ */ x({
|
|
1596
1609
|
__name: "ForgePageHeader",
|
|
1597
1610
|
props: {
|
|
1598
1611
|
title: {}
|
|
1599
1612
|
},
|
|
1600
1613
|
setup(e) {
|
|
1601
1614
|
const t = e;
|
|
1602
|
-
return (l, a) => (
|
|
1603
|
-
c("h1",
|
|
1604
|
-
c("div",
|
|
1615
|
+
return (l, a) => (s(), p("div", Vt, [
|
|
1616
|
+
c("h1", It, g(t.title), 1),
|
|
1617
|
+
c("div", zt, [
|
|
1605
1618
|
k(l.$slots, "default")
|
|
1606
1619
|
])
|
|
1607
1620
|
]));
|
|
1608
1621
|
}
|
|
1609
|
-
}),
|
|
1622
|
+
}), Mt = { "data-cy": "before-slot" }, Ot = { "data-cy": "after-slot" }, Ut = /* @__PURE__ */ x({
|
|
1610
1623
|
__name: "ForgeDatepicker",
|
|
1611
1624
|
props: {
|
|
1612
1625
|
severity: { default: "primary" },
|
|
@@ -1681,6 +1694,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1681
1694
|
{
|
|
1682
1695
|
"disabled border-0": a.disabled,
|
|
1683
1696
|
"btn-primary": a.selected && !a.disabled && (t.severity === void 0 || t.severity === "primary"),
|
|
1697
|
+
"btn-brand": a.selected && !a.disabled && t.severity === "brand",
|
|
1684
1698
|
"btn-secondary": a.selected && !a.disabled && t.severity === "secondary",
|
|
1685
1699
|
"btn-success": a.selected && !a.disabled && t.severity === "success",
|
|
1686
1700
|
"btn-warning": a.selected && !a.disabled && t.severity === "warning",
|
|
@@ -1689,56 +1703,62 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1689
1703
|
}
|
|
1690
1704
|
]
|
|
1691
1705
|
}),
|
|
1692
|
-
clearButton:
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
"btn
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1706
|
+
clearButton: {
|
|
1707
|
+
root: () => ({
|
|
1708
|
+
class: [
|
|
1709
|
+
"btn ms-auto",
|
|
1710
|
+
{
|
|
1711
|
+
"btn-link text-primary": t.severity === void 0 || t.severity === "primary",
|
|
1712
|
+
"btn-link text-brand": t.severity === "brand",
|
|
1713
|
+
"btn-link text-secondary": t.severity === "secondary",
|
|
1714
|
+
"btn-link text-success": t.severity === "success",
|
|
1715
|
+
"btn-link text-warning": t.severity === "warning",
|
|
1716
|
+
"btn-link text-danger": t.severity === "danger",
|
|
1717
|
+
"btn-link text-info": t.severity === "info"
|
|
1718
|
+
}
|
|
1719
|
+
]
|
|
1720
|
+
})
|
|
1721
|
+
},
|
|
1722
|
+
todayButton: {
|
|
1723
|
+
root: () => ({
|
|
1724
|
+
class: [
|
|
1725
|
+
"btn",
|
|
1726
|
+
{
|
|
1727
|
+
"btn-link text-primary": t.severity === void 0 || t.severity === "primary",
|
|
1728
|
+
"btn-link text-brand": t.severity === "brand",
|
|
1729
|
+
"btn-link text-secondary": t.severity === "secondary",
|
|
1730
|
+
"btn-link text-success": t.severity === "success",
|
|
1731
|
+
"btn-link text-warning": t.severity === "warning",
|
|
1732
|
+
"btn-link text-danger": t.severity === "danger",
|
|
1733
|
+
"btn-link text-info": t.severity === "info"
|
|
1734
|
+
}
|
|
1735
|
+
]
|
|
1736
|
+
})
|
|
1737
|
+
}
|
|
1718
1738
|
}));
|
|
1719
1739
|
return (a, o) => {
|
|
1720
|
-
const
|
|
1721
|
-
return
|
|
1722
|
-
c("span",
|
|
1740
|
+
const n = xe;
|
|
1741
|
+
return s(), p(O, null, [
|
|
1742
|
+
c("span", Mt, [
|
|
1723
1743
|
k(a.$slots, "before")
|
|
1724
1744
|
]),
|
|
1725
|
-
|
|
1726
|
-
j(
|
|
1745
|
+
b(n, S({ ...t, ...a.$attrs }, { pt: l.value }), null, 16, ["pt"]),
|
|
1746
|
+
j(b(u(C), {
|
|
1727
1747
|
"data-cy": "icon",
|
|
1728
1748
|
icon: "bi:calendar3",
|
|
1729
1749
|
width: "32",
|
|
1730
1750
|
height: "32",
|
|
1731
|
-
class:
|
|
1751
|
+
class: B(["ps-2", t.severity == null ? "text-primary" : `text-${t.severity}`])
|
|
1732
1752
|
}, null, 8, ["class"]), [
|
|
1733
1753
|
[q, t.showIcon]
|
|
1734
1754
|
]),
|
|
1735
|
-
c("span",
|
|
1755
|
+
c("span", Ot, [
|
|
1736
1756
|
k(a.$slots, "after")
|
|
1737
1757
|
])
|
|
1738
1758
|
], 64);
|
|
1739
1759
|
};
|
|
1740
1760
|
}
|
|
1741
|
-
}),
|
|
1761
|
+
}), dl = /* @__PURE__ */ x({
|
|
1742
1762
|
__name: "ForgeRemainingCharacters",
|
|
1743
1763
|
props: {
|
|
1744
1764
|
maxCount: { default: 300 },
|
|
@@ -1746,11 +1766,11 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1746
1766
|
},
|
|
1747
1767
|
setup(e) {
|
|
1748
1768
|
const t = e, l = h(() => t.maxCount - t.currentCount);
|
|
1749
|
-
return (a, o) => (
|
|
1750
|
-
class:
|
|
1769
|
+
return (a, o) => (s(), p("div", {
|
|
1770
|
+
class: B(l.value < 0 ? "text-danger" : "")
|
|
1751
1771
|
}, "Remaining characters: " + g(l.value), 3));
|
|
1752
1772
|
}
|
|
1753
|
-
}),
|
|
1773
|
+
}), Dt = /* @__PURE__ */ c("hr", null, null, -1), At = { class: "d-flex justify-content-between" }, ul = /* @__PURE__ */ x({
|
|
1754
1774
|
__name: "ForgeForm",
|
|
1755
1775
|
props: {
|
|
1756
1776
|
onSubmit: {},
|
|
@@ -1762,7 +1782,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1762
1782
|
hideCancel: { type: Boolean, default: !1 }
|
|
1763
1783
|
},
|
|
1764
1784
|
setup(e) {
|
|
1765
|
-
const t = e, l =
|
|
1785
|
+
const t = e, l = P(!1), a = P({
|
|
1766
1786
|
hasError: !1,
|
|
1767
1787
|
message: ""
|
|
1768
1788
|
});
|
|
@@ -1770,80 +1790,80 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1770
1790
|
l.value = !0, a.value.hasError = !1;
|
|
1771
1791
|
try {
|
|
1772
1792
|
await t.onSubmit();
|
|
1773
|
-
} catch (
|
|
1774
|
-
a.value.hasError = !0,
|
|
1793
|
+
} catch (n) {
|
|
1794
|
+
a.value.hasError = !0, n.message && (a.value.message = n.message);
|
|
1775
1795
|
}
|
|
1776
1796
|
l.value = !1;
|
|
1777
1797
|
}
|
|
1778
|
-
return (
|
|
1798
|
+
return (n, i) => {
|
|
1779
1799
|
const m = A;
|
|
1780
|
-
return
|
|
1800
|
+
return s(), p("form", S(n.$attrs, {
|
|
1781
1801
|
novalidate: "",
|
|
1782
1802
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1783
1803
|
onSubmit: K(o, ["prevent"])
|
|
1784
1804
|
}), [
|
|
1785
|
-
|
|
1786
|
-
k(
|
|
1805
|
+
n.hideTitle ? F("", !0) : (s(), p(O, { key: 0 }, [
|
|
1806
|
+
k(n.$slots, "title", {}, () => [
|
|
1787
1807
|
c("h3", {
|
|
1788
|
-
class:
|
|
1808
|
+
class: B(n.titleClass),
|
|
1789
1809
|
"data-cy": "form-title"
|
|
1790
|
-
}, g(
|
|
1810
|
+
}, g(n.title), 3)
|
|
1791
1811
|
]),
|
|
1792
|
-
|
|
1812
|
+
Dt
|
|
1793
1813
|
], 64)),
|
|
1794
|
-
a.value.hasError ? (
|
|
1814
|
+
a.value.hasError ? (s(), w(ee, {
|
|
1795
1815
|
key: 1,
|
|
1796
1816
|
severity: "danger",
|
|
1797
1817
|
"data-cy": "error"
|
|
1798
1818
|
}, {
|
|
1799
|
-
default:
|
|
1800
|
-
k(
|
|
1819
|
+
default: v(() => [
|
|
1820
|
+
k(n.$slots, "error", {
|
|
1801
1821
|
error: a.value.message
|
|
1802
1822
|
}, () => [
|
|
1803
|
-
|
|
1823
|
+
V(g(a.value.message), 1)
|
|
1804
1824
|
])
|
|
1805
1825
|
]),
|
|
1806
1826
|
_: 3
|
|
1807
|
-
})) :
|
|
1808
|
-
k(
|
|
1809
|
-
c("div",
|
|
1810
|
-
k(
|
|
1811
|
-
|
|
1827
|
+
})) : F("", !0),
|
|
1828
|
+
k(n.$slots, "default"),
|
|
1829
|
+
c("div", At, [
|
|
1830
|
+
k(n.$slots, "cancel", {}, () => [
|
|
1831
|
+
n.hideCancel ? F("", !0) : (s(), w(m, {
|
|
1812
1832
|
key: 0,
|
|
1813
1833
|
"data-cy": "cancel-btn",
|
|
1814
1834
|
type: "reset",
|
|
1815
1835
|
severity: "secondary",
|
|
1816
1836
|
outlined: "",
|
|
1817
|
-
onClick: i[0] || (i[0] = (y) =>
|
|
1837
|
+
onClick: i[0] || (i[0] = (y) => n.$emit("cancel"))
|
|
1818
1838
|
}, {
|
|
1819
|
-
default:
|
|
1820
|
-
|
|
1839
|
+
default: v(() => [
|
|
1840
|
+
V(g(n.cancelText), 1)
|
|
1821
1841
|
]),
|
|
1822
1842
|
_: 1
|
|
1823
1843
|
}))
|
|
1824
1844
|
]),
|
|
1825
|
-
k(
|
|
1826
|
-
|
|
1845
|
+
k(n.$slots, "submit", { submit: o }, () => [
|
|
1846
|
+
b(m, {
|
|
1827
1847
|
"data-cy": "submit-btn",
|
|
1828
1848
|
type: "submit",
|
|
1829
1849
|
severity: "primary",
|
|
1830
1850
|
class: "ms-auto"
|
|
1831
1851
|
}, {
|
|
1832
|
-
default:
|
|
1833
|
-
|
|
1852
|
+
default: v(() => [
|
|
1853
|
+
V(g(n.submitText), 1)
|
|
1834
1854
|
]),
|
|
1835
1855
|
_: 1
|
|
1836
1856
|
})
|
|
1837
1857
|
])
|
|
1838
1858
|
]),
|
|
1839
|
-
l.value ? (
|
|
1859
|
+
l.value ? (s(), w(ce, {
|
|
1840
1860
|
key: 2,
|
|
1841
1861
|
"data-cy": "loading-spinner"
|
|
1842
|
-
})) :
|
|
1862
|
+
})) : F("", !0)
|
|
1843
1863
|
], 16);
|
|
1844
1864
|
};
|
|
1845
1865
|
}
|
|
1846
|
-
}),
|
|
1866
|
+
}), Nt = { class: "d-flex flex-column" }, Et = ["for"], cl = /* @__PURE__ */ x({
|
|
1847
1867
|
__name: "ForgeFormField",
|
|
1848
1868
|
props: {
|
|
1849
1869
|
name: {},
|
|
@@ -1854,61 +1874,61 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1854
1874
|
placeholder: { default: "" }
|
|
1855
1875
|
},
|
|
1856
1876
|
setup(e) {
|
|
1857
|
-
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules),
|
|
1877
|
+
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules), n = h(() => l.value.length > 0);
|
|
1858
1878
|
return (i, m) => {
|
|
1859
|
-
const y =
|
|
1860
|
-
return
|
|
1861
|
-
t.type !== "checkbox" ? (
|
|
1879
|
+
const y = Be, r = $e, _ = le;
|
|
1880
|
+
return s(), p("div", Nt, [
|
|
1881
|
+
t.type !== "checkbox" ? (s(), p("label", {
|
|
1862
1882
|
key: 0,
|
|
1863
1883
|
for: t.name
|
|
1864
|
-
}, g(t.label), 9,
|
|
1865
|
-
t.type === "checkbox" ? (
|
|
1884
|
+
}, g(t.label), 9, Et)) : F("", !0),
|
|
1885
|
+
t.type === "checkbox" ? (s(), w(st, S({
|
|
1866
1886
|
key: 1,
|
|
1867
1887
|
id: t.name,
|
|
1868
1888
|
rules: i.rules,
|
|
1869
1889
|
label: t.label
|
|
1870
|
-
}, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (
|
|
1890
|
+
}, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(u(de), S({
|
|
1871
1891
|
key: 2,
|
|
1872
1892
|
id: t.name,
|
|
1873
1893
|
placeholder: t.placeholder,
|
|
1874
1894
|
modelValue: u(a),
|
|
1875
1895
|
"onUpdate:modelValue": m[0] || (m[0] = (d) => H(a) ? a.value = d : null),
|
|
1876
|
-
"input-class": { "is-invalid":
|
|
1877
|
-
class: { "is-invalid":
|
|
1878
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (
|
|
1896
|
+
"input-class": { "is-invalid": n.value },
|
|
1897
|
+
class: { "is-invalid": n.value }
|
|
1898
|
+
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(y, S({
|
|
1879
1899
|
key: 3,
|
|
1880
1900
|
id: t.name,
|
|
1881
1901
|
placeholder: t.placeholder,
|
|
1882
1902
|
modelValue: u(a),
|
|
1883
1903
|
"onUpdate:modelValue": m[1] || (m[1] = (d) => H(a) ? a.value = d : null),
|
|
1884
|
-
class: { "is-invalid":
|
|
1885
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (
|
|
1904
|
+
class: { "is-invalid": n.value }
|
|
1905
|
+
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(r, S({
|
|
1886
1906
|
key: 4,
|
|
1887
1907
|
id: t.name,
|
|
1888
1908
|
placeholder: t.placeholder,
|
|
1889
1909
|
modelValue: u(a),
|
|
1890
1910
|
"onUpdate:modelValue": m[2] || (m[2] = (d) => H(a) ? a.value = d : null),
|
|
1891
1911
|
mask: t.mask,
|
|
1892
|
-
class: { "is-invalid":
|
|
1893
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (
|
|
1912
|
+
class: { "is-invalid": n.value }
|
|
1913
|
+
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(_, S({
|
|
1894
1914
|
key: 5,
|
|
1895
1915
|
id: t.name,
|
|
1896
1916
|
placeholder: t.placeholder,
|
|
1897
1917
|
modelValue: u(a),
|
|
1898
1918
|
"onUpdate:modelValue": m[3] || (m[3] = (d) => H(a) ? a.value = d : null),
|
|
1899
|
-
class: { "is-invalid":
|
|
1900
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) :
|
|
1901
|
-
t.type !== "checkbox" ? j((
|
|
1919
|
+
class: { "is-invalid": n.value }
|
|
1920
|
+
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : F("", !0),
|
|
1921
|
+
t.type !== "checkbox" ? j((s(), p("small", {
|
|
1902
1922
|
key: 6,
|
|
1903
1923
|
"data-cy": "error",
|
|
1904
1924
|
class: "invalid-feedback"
|
|
1905
1925
|
}, g(u(o)), 513)), [
|
|
1906
|
-
[q,
|
|
1907
|
-
]) :
|
|
1926
|
+
[q, n.value]
|
|
1927
|
+
]) : F("", !0)
|
|
1908
1928
|
]);
|
|
1909
1929
|
};
|
|
1910
1930
|
}
|
|
1911
|
-
}),
|
|
1931
|
+
}), ml = /* @__PURE__ */ x({
|
|
1912
1932
|
__name: "ForgeChips",
|
|
1913
1933
|
props: {
|
|
1914
1934
|
chipSeverity: { default: "primary" },
|
|
@@ -1938,7 +1958,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1938
1958
|
setup(e) {
|
|
1939
1959
|
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules);
|
|
1940
1960
|
a.value = t.modelValue;
|
|
1941
|
-
const
|
|
1961
|
+
const n = h(() => l.value.length > 0), i = h(() => ({
|
|
1942
1962
|
inputtoken: "list-unstyled",
|
|
1943
1963
|
input: "border-0",
|
|
1944
1964
|
container: ({ props: m }) => ({
|
|
@@ -1946,7 +1966,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1946
1966
|
"form-control mb-0 d-flex",
|
|
1947
1967
|
{
|
|
1948
1968
|
disabled: m.disabled,
|
|
1949
|
-
"is-invalid":
|
|
1969
|
+
"is-invalid": n.value
|
|
1950
1970
|
}
|
|
1951
1971
|
]
|
|
1952
1972
|
}),
|
|
@@ -1959,6 +1979,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1959
1979
|
},
|
|
1960
1980
|
{
|
|
1961
1981
|
"bg-primary border-primary": t.chipSeverity === void 0 || t.chipSeverity === "primary",
|
|
1982
|
+
"bg-brand border-brand": t.chipSeverity === "brand",
|
|
1962
1983
|
"bg-secondary border-secondary": t.chipSeverity === "secondary",
|
|
1963
1984
|
"bg-success border-success": t.chipSeverity === "success",
|
|
1964
1985
|
"bg-warning border-warning": t.chipSeverity === "warning",
|
|
@@ -1970,14 +1991,14 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1970
1991
|
}));
|
|
1971
1992
|
return (m, y) => {
|
|
1972
1993
|
const r = Fe;
|
|
1973
|
-
return
|
|
1974
|
-
|
|
1994
|
+
return s(), p(O, null, [
|
|
1995
|
+
b(r, S({ ...t, ...m.$attrs }, {
|
|
1975
1996
|
pt: i.value,
|
|
1976
1997
|
"model-value": u(a),
|
|
1977
1998
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => H(a) ? a.value = _ : null)
|
|
1978
1999
|
}), {
|
|
1979
|
-
removetokenicon:
|
|
1980
|
-
j(
|
|
2000
|
+
removetokenicon: v(({ removeCallback: _ }) => [
|
|
2001
|
+
j(b(u(C), {
|
|
1981
2002
|
icon: "bi:x",
|
|
1982
2003
|
class: "cursor-pointer",
|
|
1983
2004
|
onClick: _
|
|
@@ -1991,12 +2012,12 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1991
2012
|
"data-cy": "error",
|
|
1992
2013
|
class: "text-invalid"
|
|
1993
2014
|
}, g(u(o)), 513), [
|
|
1994
|
-
[q,
|
|
2015
|
+
[q, n.value]
|
|
1995
2016
|
])
|
|
1996
2017
|
], 64);
|
|
1997
2018
|
};
|
|
1998
2019
|
}
|
|
1999
|
-
}),
|
|
2020
|
+
}), Rt = /* @__PURE__ */ x({
|
|
2000
2021
|
__name: "ForgeProgressBar",
|
|
2001
2022
|
props: {
|
|
2002
2023
|
severity: { default: "primary" },
|
|
@@ -2013,6 +2034,8 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2013
2034
|
setup(e) {
|
|
2014
2035
|
const t = e, l = h(() => t.striped ? "progress-bar-striped" : null), a = h(() => t.animate ? "progress-bar-animated" : null), o = h(() => {
|
|
2015
2036
|
switch (t.severity) {
|
|
2037
|
+
case "brand":
|
|
2038
|
+
return "bg-brand";
|
|
2016
2039
|
case "secondary":
|
|
2017
2040
|
return "bg-secondary";
|
|
2018
2041
|
case "success":
|
|
@@ -2028,7 +2051,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2028
2051
|
default:
|
|
2029
2052
|
return "bg-primary";
|
|
2030
2053
|
}
|
|
2031
|
-
}),
|
|
2054
|
+
}), n = h(() => ({
|
|
2032
2055
|
root: {
|
|
2033
2056
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2034
2057
|
},
|
|
@@ -2037,16 +2060,16 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2037
2060
|
}
|
|
2038
2061
|
}));
|
|
2039
2062
|
return (i, m) => {
|
|
2040
|
-
const y =
|
|
2041
|
-
return
|
|
2042
|
-
default:
|
|
2063
|
+
const y = Se;
|
|
2064
|
+
return s(), w(y, S({ ...i.$attrs, ...t }, { pt: n.value }), {
|
|
2065
|
+
default: v(() => [
|
|
2043
2066
|
k(i.$slots, "default")
|
|
2044
2067
|
]),
|
|
2045
2068
|
_: 3
|
|
2046
2069
|
}, 16, ["pt"]);
|
|
2047
2070
|
};
|
|
2048
2071
|
}
|
|
2049
|
-
}),
|
|
2072
|
+
}), Lt = { class: "value text-light w-100 text-center" }, pl = /* @__PURE__ */ x({
|
|
2050
2073
|
__name: "ForgeStatWidget",
|
|
2051
2074
|
props: {
|
|
2052
2075
|
size: { default: "md" },
|
|
@@ -2054,18 +2077,18 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2054
2077
|
},
|
|
2055
2078
|
setup(e) {
|
|
2056
2079
|
const t = e;
|
|
2057
|
-
return (l, a) => (
|
|
2080
|
+
return (l, a) => (s(), p("div", S(l.$attrs, {
|
|
2058
2081
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2059
2082
|
}), [
|
|
2060
|
-
c("span",
|
|
2083
|
+
c("span", Lt, [
|
|
2061
2084
|
k(l.$slots, "default")
|
|
2062
2085
|
])
|
|
2063
2086
|
], 16));
|
|
2064
2087
|
}
|
|
2065
|
-
}),
|
|
2088
|
+
}), jt = {
|
|
2066
2089
|
class: "d-flex flex-column align-items-center",
|
|
2067
2090
|
"data-cy": "stepper"
|
|
2068
|
-
},
|
|
2091
|
+
}, Ht = { class: "d-flex align-items-center justify-content-center w-100" }, yl = /* @__PURE__ */ x({
|
|
2069
2092
|
__name: "ForgeStepper",
|
|
2070
2093
|
props: {
|
|
2071
2094
|
currentStep: { default: 0 },
|
|
@@ -2081,7 +2104,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2081
2104
|
},
|
|
2082
2105
|
emits: ["update:currentStep"],
|
|
2083
2106
|
setup(e, { emit: t }) {
|
|
2084
|
-
const l = t, a = e, o =
|
|
2107
|
+
const l = t, a = e, o = P(a.currentStep), n = () => {
|
|
2085
2108
|
do
|
|
2086
2109
|
o.value--;
|
|
2087
2110
|
while (a.model[o.value].disabled);
|
|
@@ -2107,6 +2130,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2107
2130
|
{
|
|
2108
2131
|
inactive: r.context.disabled,
|
|
2109
2132
|
"bg-primary text-white": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2133
|
+
"bg-brand text-white": r.context.index === o.value && a.severity === "brand",
|
|
2110
2134
|
"bg-secondary text-white": r.context.index === o.value && a.severity === "secondary",
|
|
2111
2135
|
"bg-success text-white": r.context.index === o.value && a.severity === "success",
|
|
2112
2136
|
"bg-warning text-white": r.context.index === o.value && a.severity === "warning",
|
|
@@ -2120,6 +2144,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2120
2144
|
"h5",
|
|
2121
2145
|
{
|
|
2122
2146
|
"border-bottom border-2 border-primary": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2147
|
+
"border-bottom border-2 border-brand": r.context.index === o.value && a.severity === "brand",
|
|
2123
2148
|
"border-bottom border-2 border-secondary": r.context.index === o.value && a.severity === "secondary",
|
|
2124
2149
|
"border-bottom border-2 border-success": r.context.index === o.value && a.severity === "success",
|
|
2125
2150
|
"border-bottom border-2 border-warning": r.context.index === o.value && a.severity === "warning",
|
|
@@ -2130,49 +2155,49 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2130
2155
|
})
|
|
2131
2156
|
}));
|
|
2132
2157
|
return (r, _) => {
|
|
2133
|
-
const d = A, f =
|
|
2134
|
-
return
|
|
2135
|
-
c("div",
|
|
2136
|
-
|
|
2158
|
+
const d = A, f = Te, $ = Ce;
|
|
2159
|
+
return s(), p("div", jt, [
|
|
2160
|
+
c("div", Ht, [
|
|
2161
|
+
b(d, {
|
|
2137
2162
|
severity: a.severity,
|
|
2138
2163
|
disabled: m.value,
|
|
2139
|
-
onClick:
|
|
2164
|
+
onClick: n,
|
|
2140
2165
|
class: "rounded-circle py-2 me-4",
|
|
2141
2166
|
"data-cy": "back-button"
|
|
2142
2167
|
}, {
|
|
2143
|
-
default:
|
|
2144
|
-
|
|
2168
|
+
default: v(() => [
|
|
2169
|
+
b(u(C), {
|
|
2145
2170
|
icon: "bi:chevron-left",
|
|
2146
2171
|
class: "mb-1"
|
|
2147
2172
|
})
|
|
2148
2173
|
]),
|
|
2149
2174
|
_: 1
|
|
2150
2175
|
}, 8, ["severity", "disabled"]),
|
|
2151
|
-
|
|
2176
|
+
b(f, {
|
|
2152
2177
|
"active-step": o.value,
|
|
2153
|
-
"onUpdate:activeStep": _[0] || (_[0] = (
|
|
2178
|
+
"onUpdate:activeStep": _[0] || (_[0] = (T) => o.value = T),
|
|
2154
2179
|
model: a.model,
|
|
2155
2180
|
pt: y.value,
|
|
2156
2181
|
readonly: !1
|
|
2157
2182
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2158
2183
|
]),
|
|
2159
|
-
|
|
2160
|
-
(
|
|
2161
|
-
key:
|
|
2184
|
+
b($),
|
|
2185
|
+
(s(!0), p(O, null, E(a.model, (T, I) => (s(), p("div", {
|
|
2186
|
+
key: I,
|
|
2162
2187
|
class: "w-100"
|
|
2163
2188
|
}, [
|
|
2164
|
-
|
|
2189
|
+
I === o.value ? k(r.$slots, T.key ?? T.label, {
|
|
2165
2190
|
key: 0,
|
|
2166
2191
|
nextStep: i,
|
|
2167
|
-
previousStep:
|
|
2192
|
+
previousStep: n
|
|
2168
2193
|
}, () => [
|
|
2169
|
-
|
|
2194
|
+
b(ee, {
|
|
2170
2195
|
severity: "info",
|
|
2171
2196
|
"data-cy": "alert"
|
|
2172
2197
|
}, {
|
|
2173
|
-
default:
|
|
2174
|
-
|
|
2175
|
-
|
|
2198
|
+
default: v(() => [
|
|
2199
|
+
V(" Please add Slot Content for the key " + g(T.key ?? T.label) + " ", 1),
|
|
2200
|
+
b(d, {
|
|
2176
2201
|
severity: "primary",
|
|
2177
2202
|
label: "Next",
|
|
2178
2203
|
onClick: i,
|
|
@@ -2181,12 +2206,12 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2181
2206
|
]),
|
|
2182
2207
|
_: 2
|
|
2183
2208
|
}, 1024)
|
|
2184
|
-
]) :
|
|
2209
|
+
]) : F("", !0)
|
|
2185
2210
|
]))), 128))
|
|
2186
2211
|
]);
|
|
2187
2212
|
};
|
|
2188
2213
|
}
|
|
2189
|
-
}),
|
|
2214
|
+
}), qt = { class: "p-4 text-wrap w-100" }, Gt = { class: "p-4 text-wrap w-100" }, bl = /* @__PURE__ */ x({
|
|
2190
2215
|
__name: "ForgeTile",
|
|
2191
2216
|
props: {
|
|
2192
2217
|
severity: { default: "primary" },
|
|
@@ -2195,31 +2220,31 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2195
2220
|
},
|
|
2196
2221
|
setup(e) {
|
|
2197
2222
|
const t = e, l = h(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = h(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
|
|
2198
|
-
return (o,
|
|
2223
|
+
return (o, n) => {
|
|
2199
2224
|
const i = A;
|
|
2200
|
-
return t.clickable ? (
|
|
2225
|
+
return t.clickable ? (s(), w(i, {
|
|
2201
2226
|
key: 0,
|
|
2202
|
-
class:
|
|
2227
|
+
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
2203
2228
|
severity: t.severity,
|
|
2204
2229
|
unstyled: "",
|
|
2205
2230
|
"data-cy": "button-tile"
|
|
2206
2231
|
}, {
|
|
2207
|
-
default:
|
|
2208
|
-
c("div",
|
|
2232
|
+
default: v(() => [
|
|
2233
|
+
c("div", qt, [
|
|
2209
2234
|
k(o.$slots, "default", {}, () => [
|
|
2210
|
-
|
|
2235
|
+
V("Tile Content")
|
|
2211
2236
|
])
|
|
2212
2237
|
])
|
|
2213
2238
|
]),
|
|
2214
2239
|
_: 3
|
|
2215
|
-
}, 8, ["severity", "class"])) : (
|
|
2240
|
+
}, 8, ["severity", "class"])) : (s(), p("div", {
|
|
2216
2241
|
key: 1,
|
|
2217
|
-
class:
|
|
2242
|
+
class: B(["d-flex w-100", a.value]),
|
|
2218
2243
|
"data-cy": "tile"
|
|
2219
2244
|
}, [
|
|
2220
|
-
c("div",
|
|
2245
|
+
c("div", Gt, [
|
|
2221
2246
|
k(o.$slots, "default", {}, () => [
|
|
2222
|
-
|
|
2247
|
+
V("Tile Content")
|
|
2223
2248
|
])
|
|
2224
2249
|
])
|
|
2225
2250
|
], 2));
|
|
@@ -2229,13 +2254,13 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2229
2254
|
function Y(e, t) {
|
|
2230
2255
|
return e > 1 ? `${t}s` : t;
|
|
2231
2256
|
}
|
|
2232
|
-
const
|
|
2257
|
+
const Kt = {
|
|
2233
2258
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2234
2259
|
"data-cy": "pagination-header"
|
|
2235
|
-
},
|
|
2260
|
+
}, Wt = { class: "ms-2" }, Zt = { key: 0 }, Yt = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), Jt = {
|
|
2236
2261
|
class: "w-auto",
|
|
2237
2262
|
"data-cy": "total"
|
|
2238
|
-
},
|
|
2263
|
+
}, Xt = /* @__PURE__ */ x({
|
|
2239
2264
|
__name: "ForgePaginationHeader",
|
|
2240
2265
|
props: {
|
|
2241
2266
|
total: {},
|
|
@@ -2246,29 +2271,29 @@ const _t = {
|
|
|
2246
2271
|
setup(e, { emit: t }) {
|
|
2247
2272
|
const l = t, a = e, o = (i) => {
|
|
2248
2273
|
l("update:perPage", i.value);
|
|
2249
|
-
},
|
|
2274
|
+
}, n = h(() => {
|
|
2250
2275
|
const i = Math.ceil(a.total / a.perPage);
|
|
2251
2276
|
return `${i} ${Y(i, "page")}`;
|
|
2252
2277
|
});
|
|
2253
|
-
return (i, m) => (
|
|
2254
|
-
|
|
2255
|
-
c("div",
|
|
2256
|
-
|
|
2278
|
+
return (i, m) => (s(), p("div", Kt, [
|
|
2279
|
+
V(" Number of results per page "),
|
|
2280
|
+
c("div", Wt, [
|
|
2281
|
+
b(u(oe), {
|
|
2257
2282
|
options: a.pageSizes,
|
|
2258
2283
|
"model-value": a.perPage,
|
|
2259
2284
|
onChange: m[0] || (m[0] = (y) => o(y))
|
|
2260
2285
|
}, null, 8, ["options", "model-value"])
|
|
2261
2286
|
]),
|
|
2262
|
-
a.total ? (
|
|
2263
|
-
|
|
2264
|
-
c("span",
|
|
2265
|
-
])) :
|
|
2287
|
+
a.total ? (s(), p("div", Zt, [
|
|
2288
|
+
Yt,
|
|
2289
|
+
c("span", Jt, g(a.total) + " " + g(u(Y)(a.total, "result")) + " across " + g(n.value), 1)
|
|
2290
|
+
])) : F("", !0)
|
|
2266
2291
|
]));
|
|
2267
2292
|
}
|
|
2268
|
-
}),
|
|
2293
|
+
}), Qt = { "data-cy": "above-table-slot" }, ea = { class: "d-flex" }, ta = { class: "d-flex align-items-end mb-2" }, aa = { key: 0 }, la = { class: "ms-auto" }, oa = {
|
|
2269
2294
|
class: "d-flex",
|
|
2270
2295
|
"data-cy": "legacy-page-size"
|
|
2271
|
-
},
|
|
2296
|
+
}, na = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), sa = { "data-cy": "legacy-total" }, vl = /* @__PURE__ */ x({
|
|
2272
2297
|
__name: "ForgeTable",
|
|
2273
2298
|
props: {
|
|
2274
2299
|
value: {},
|
|
@@ -2347,24 +2372,24 @@ const _t = {
|
|
|
2347
2372
|
},
|
|
2348
2373
|
emits: ["update:filters"],
|
|
2349
2374
|
setup(e, { emit: t }) {
|
|
2350
|
-
const l = t, a = e, o =
|
|
2375
|
+
const l = t, a = e, o = P([10, 20, 50, 100]), n = P(20), i = P(), m = () => {
|
|
2351
2376
|
for (const d in a.filters)
|
|
2352
2377
|
a.filters[d].value = null;
|
|
2353
2378
|
y(a.filters);
|
|
2354
2379
|
}, y = (d) => {
|
|
2355
2380
|
l("update:filters", d);
|
|
2356
2381
|
}, r = h(() => {
|
|
2357
|
-
const d = Math.ceil((a.total ?? a.value.length) /
|
|
2382
|
+
const d = Math.ceil((a.total ?? a.value.length) / n.value);
|
|
2358
2383
|
return `${d} ${Y(d, "page")}`;
|
|
2359
2384
|
}), _ = () => {
|
|
2360
2385
|
i.value.exportCSV();
|
|
2361
2386
|
};
|
|
2362
|
-
return (d, f) => (
|
|
2363
|
-
c("span",
|
|
2387
|
+
return (d, f) => (s(), p(O, null, [
|
|
2388
|
+
c("span", Qt, [
|
|
2364
2389
|
k(d.$slots, "above-table")
|
|
2365
2390
|
]),
|
|
2366
|
-
|
|
2367
|
-
rows:
|
|
2391
|
+
b(u(Pe), S({ class: "w-100" }, { ...a, ...d.$attrs }, {
|
|
2392
|
+
rows: n.value,
|
|
2368
2393
|
"total-records": d.total,
|
|
2369
2394
|
"filter-display": a.filters ? "row" : void 0,
|
|
2370
2395
|
ref_key: "forgeTable",
|
|
@@ -2372,75 +2397,75 @@ const _t = {
|
|
|
2372
2397
|
"onUpdate:filters": y,
|
|
2373
2398
|
"data-cy": "table"
|
|
2374
2399
|
}), Q({
|
|
2375
|
-
header:
|
|
2376
|
-
c("div",
|
|
2377
|
-
c("div",
|
|
2378
|
-
d.paginator && !d.legacyPaginationFooter ? (
|
|
2379
|
-
|
|
2400
|
+
header: v(() => [
|
|
2401
|
+
c("div", ea, [
|
|
2402
|
+
c("div", ta, [
|
|
2403
|
+
d.paginator && !d.legacyPaginationFooter ? (s(), p("span", aa, [
|
|
2404
|
+
b(Xt, {
|
|
2380
2405
|
total: d.total ?? d.value.length,
|
|
2381
2406
|
"page-sizes": o.value,
|
|
2382
|
-
"per-page":
|
|
2383
|
-
"onUpdate:perPage": f[0] || (f[0] = (
|
|
2407
|
+
"per-page": n.value,
|
|
2408
|
+
"onUpdate:perPage": f[0] || (f[0] = ($) => n.value = $)
|
|
2384
2409
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2385
|
-
])) :
|
|
2410
|
+
])) : F("", !0)
|
|
2386
2411
|
]),
|
|
2387
|
-
c("div",
|
|
2388
|
-
d.showClearButton ? (
|
|
2412
|
+
c("div", la, [
|
|
2413
|
+
d.showClearButton ? (s(), w(u(A), {
|
|
2389
2414
|
key: 0,
|
|
2390
2415
|
outlined: "",
|
|
2391
|
-
class:
|
|
2416
|
+
class: B(d.showExporterButton ? "me-2" : ""),
|
|
2392
2417
|
onClick: m,
|
|
2393
2418
|
"data-cy": "clear-all"
|
|
2394
2419
|
}, {
|
|
2395
|
-
default:
|
|
2396
|
-
|
|
2420
|
+
default: v(() => [
|
|
2421
|
+
b(u(C), {
|
|
2397
2422
|
icon: "bi:funnel-fill",
|
|
2398
2423
|
width: "24",
|
|
2399
2424
|
height: "24"
|
|
2400
2425
|
}),
|
|
2401
|
-
|
|
2426
|
+
V(" Clear ")
|
|
2402
2427
|
]),
|
|
2403
2428
|
_: 1
|
|
2404
|
-
}, 8, ["class"])) :
|
|
2405
|
-
d.showExporterButton ? (
|
|
2429
|
+
}, 8, ["class"])) : F("", !0),
|
|
2430
|
+
d.showExporterButton ? (s(), w(u(A), {
|
|
2406
2431
|
key: 1,
|
|
2407
2432
|
outlined: "",
|
|
2408
2433
|
onClick: _,
|
|
2409
2434
|
"data-cy": "exporter"
|
|
2410
2435
|
}, {
|
|
2411
|
-
default:
|
|
2412
|
-
|
|
2436
|
+
default: v(() => [
|
|
2437
|
+
b(u(C), {
|
|
2413
2438
|
icon: "typcn:export",
|
|
2414
2439
|
width: "24",
|
|
2415
2440
|
height: "24"
|
|
2416
2441
|
}),
|
|
2417
|
-
|
|
2442
|
+
V(" Export ")
|
|
2418
2443
|
]),
|
|
2419
2444
|
_: 1
|
|
2420
|
-
})) :
|
|
2445
|
+
})) : F("", !0)
|
|
2421
2446
|
])
|
|
2422
2447
|
])
|
|
2423
2448
|
]),
|
|
2424
|
-
default:
|
|
2449
|
+
default: v(() => [
|
|
2425
2450
|
k(d.$slots, "default")
|
|
2426
2451
|
]),
|
|
2427
2452
|
_: 2
|
|
2428
2453
|
}, [
|
|
2429
|
-
E(d.$slots, (
|
|
2430
|
-
name:
|
|
2431
|
-
fn:
|
|
2432
|
-
k(d.$slots,
|
|
2454
|
+
E(d.$slots, ($, T) => ({
|
|
2455
|
+
name: T,
|
|
2456
|
+
fn: v((I) => [
|
|
2457
|
+
k(d.$slots, T, J(X(I || {})))
|
|
2433
2458
|
])
|
|
2434
2459
|
})),
|
|
2435
2460
|
d.legacyPaginationFooter ? {
|
|
2436
2461
|
name: "paginatorstart",
|
|
2437
|
-
fn:
|
|
2438
|
-
c("span",
|
|
2439
|
-
|
|
2440
|
-
|
|
2462
|
+
fn: v(() => [
|
|
2463
|
+
c("span", oa, [
|
|
2464
|
+
na,
|
|
2465
|
+
b(u(oe), {
|
|
2441
2466
|
options: o.value,
|
|
2442
|
-
modelValue:
|
|
2443
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
2467
|
+
modelValue: n.value,
|
|
2468
|
+
"onUpdate:modelValue": f[1] || (f[1] = ($) => n.value = $),
|
|
2444
2469
|
class: "ms-2"
|
|
2445
2470
|
}, null, 8, ["options", "modelValue"])
|
|
2446
2471
|
])
|
|
@@ -2449,15 +2474,15 @@ const _t = {
|
|
|
2449
2474
|
} : void 0,
|
|
2450
2475
|
d.legacyPaginationFooter ? {
|
|
2451
2476
|
name: "paginatorend",
|
|
2452
|
-
fn:
|
|
2453
|
-
c("span",
|
|
2477
|
+
fn: v(() => [
|
|
2478
|
+
c("span", sa, g(d.total ?? d.value.length) + " " + g(u(Y)(d.total ?? d.value.length, "result")) + " across " + g(r.value), 1)
|
|
2454
2479
|
]),
|
|
2455
2480
|
key: "1"
|
|
2456
2481
|
} : void 0
|
|
2457
2482
|
]), 1040, ["rows", "total-records", "filter-display"])
|
|
2458
2483
|
], 64));
|
|
2459
2484
|
}
|
|
2460
|
-
}),
|
|
2485
|
+
}), fl = /* @__PURE__ */ x({
|
|
2461
2486
|
__name: "ForgeFilterHeader",
|
|
2462
2487
|
props: {
|
|
2463
2488
|
dataType: {},
|
|
@@ -2465,40 +2490,40 @@ const _t = {
|
|
|
2465
2490
|
},
|
|
2466
2491
|
setup(e) {
|
|
2467
2492
|
return (t, l) => {
|
|
2468
|
-
const a =
|
|
2469
|
-
return t.dataType === "numeric" ? (
|
|
2493
|
+
const a = de;
|
|
2494
|
+
return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Ut, S({ key: 1 }, t.$attrs, {
|
|
2470
2495
|
"show-icon": !1,
|
|
2471
2496
|
"show-on-focus": !0,
|
|
2472
2497
|
class: "w-100"
|
|
2473
|
-
}), null, 16)) : t.dataType === "select" ? (
|
|
2498
|
+
}), null, 16)) : t.dataType === "select" ? (s(), w(u(oe), S({ key: 2 }, t.$attrs, {
|
|
2474
2499
|
options: t.dropdownOptions,
|
|
2475
2500
|
class: "dropdown-input w-100"
|
|
2476
|
-
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (
|
|
2501
|
+
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(u(Ve), S({ key: 3 }, t.$attrs, {
|
|
2477
2502
|
options: t.dropdownOptions,
|
|
2478
2503
|
showToggleAll: !1,
|
|
2479
2504
|
placeholder: " ",
|
|
2480
2505
|
filter: "",
|
|
2481
2506
|
class: "w-100 dropdown-input"
|
|
2482
|
-
}), null, 16, ["options"])) : (
|
|
2507
|
+
}), null, 16, ["options"])) : (s(), w(u(le), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
|
|
2483
2508
|
};
|
|
2484
2509
|
}
|
|
2485
2510
|
});
|
|
2486
|
-
function
|
|
2487
|
-
const o = t.flatMap((
|
|
2488
|
-
return t = t.map((
|
|
2489
|
-
const i = o.findIndex((y) => y.name ===
|
|
2511
|
+
function me(e, t, l, a) {
|
|
2512
|
+
const o = t.flatMap((n) => n.file);
|
|
2513
|
+
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2514
|
+
const i = o.findIndex((y) => y.name === n.name);
|
|
2490
2515
|
let m = "Not Uploaded";
|
|
2491
|
-
i === -1 ? ((!l.includes(
|
|
2492
|
-
file:
|
|
2516
|
+
i === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (m = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2517
|
+
file: n,
|
|
2493
2518
|
status: m,
|
|
2494
2519
|
blobFileName: null
|
|
2495
2520
|
})) : t[i].status = "Duplicate";
|
|
2496
2521
|
}), t;
|
|
2497
2522
|
}
|
|
2498
|
-
async function
|
|
2523
|
+
async function ia(e, t) {
|
|
2499
2524
|
if (e === "Uploaded" && t !== null)
|
|
2500
2525
|
try {
|
|
2501
|
-
await new
|
|
2526
|
+
await new ue(t).delete();
|
|
2502
2527
|
} catch (l) {
|
|
2503
2528
|
if (l !== "BlobNotFound") {
|
|
2504
2529
|
e = "DeleteFileFailed";
|
|
@@ -2506,25 +2531,25 @@ async function Ot(e, t) {
|
|
|
2506
2531
|
}
|
|
2507
2532
|
}
|
|
2508
2533
|
}
|
|
2509
|
-
function
|
|
2534
|
+
function ne(e, t = !0, l = 1) {
|
|
2510
2535
|
const a = t ? 1e3 : 1024;
|
|
2511
2536
|
if (Math.abs(e) < a)
|
|
2512
2537
|
return e + " B";
|
|
2513
2538
|
const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2514
|
-
let
|
|
2539
|
+
let n = -1;
|
|
2515
2540
|
const i = 10 ** l;
|
|
2516
2541
|
do
|
|
2517
|
-
e /= a, ++
|
|
2518
|
-
while (Math.round(Math.abs(e) * i) / i >= a &&
|
|
2519
|
-
return e.toFixed(l) + " " + o[
|
|
2542
|
+
e /= a, ++n;
|
|
2543
|
+
while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
|
|
2544
|
+
return e.toFixed(l) + " " + o[n];
|
|
2520
2545
|
}
|
|
2521
|
-
function
|
|
2546
|
+
function ra(e) {
|
|
2522
2547
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2523
2548
|
}
|
|
2524
|
-
function
|
|
2549
|
+
function da(e) {
|
|
2525
2550
|
return URL.createObjectURL(e);
|
|
2526
2551
|
}
|
|
2527
|
-
const
|
|
2552
|
+
const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disabled", "multiple"], ma = /* @__PURE__ */ x({
|
|
2528
2553
|
__name: "UploadButton",
|
|
2529
2554
|
props: /* @__PURE__ */ G({
|
|
2530
2555
|
acceptedFileTypes: {},
|
|
@@ -2537,9 +2562,9 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2537
2562
|
emits: ["update:modelValue"],
|
|
2538
2563
|
setup(e) {
|
|
2539
2564
|
const t = L(e, "modelValue"), l = h(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2540
|
-
t.value =
|
|
2565
|
+
t.value = me(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2541
2566
|
};
|
|
2542
|
-
return (o,
|
|
2567
|
+
return (o, n) => (s(), p("div", ua, [
|
|
2543
2568
|
k(o.$slots, "message"),
|
|
2544
2569
|
c("div", null, [
|
|
2545
2570
|
c("input", {
|
|
@@ -2549,39 +2574,39 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2549
2574
|
accept: o.acceptedFileTypes.join(", "),
|
|
2550
2575
|
disabled: l.value,
|
|
2551
2576
|
multiple: o.maxFileInput > 1,
|
|
2552
|
-
onInput:
|
|
2553
|
-
}, null, 40,
|
|
2577
|
+
onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
|
|
2578
|
+
}, null, 40, ca),
|
|
2554
2579
|
c("label", {
|
|
2555
|
-
class:
|
|
2580
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
2556
2581
|
id: "file-input-button",
|
|
2557
2582
|
for: "file-input"
|
|
2558
2583
|
}, [
|
|
2559
2584
|
k(o.$slots, "button-content", {}, () => [
|
|
2560
|
-
|
|
2585
|
+
b(u(C), {
|
|
2561
2586
|
icon: "bi:upload",
|
|
2562
2587
|
class: "me-2",
|
|
2563
2588
|
height: "20px",
|
|
2564
2589
|
width: "20px"
|
|
2565
2590
|
}),
|
|
2566
|
-
|
|
2591
|
+
V(" Browse your computer ")
|
|
2567
2592
|
])
|
|
2568
2593
|
], 2)
|
|
2569
2594
|
]),
|
|
2570
|
-
o.showDragDropArea ? (
|
|
2595
|
+
o.showDragDropArea ? (s(), p("div", {
|
|
2571
2596
|
class: "ms-auto",
|
|
2572
2597
|
key: o.acceptedFileTypes.length,
|
|
2573
2598
|
id: "accepted-file-types"
|
|
2574
|
-
}, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) :
|
|
2599
|
+
}, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : F("", !0)
|
|
2575
2600
|
]));
|
|
2576
2601
|
}
|
|
2577
|
-
}),
|
|
2602
|
+
}), pa = {
|
|
2578
2603
|
key: 0,
|
|
2579
2604
|
class: "py-4 px-3",
|
|
2580
2605
|
id: "placeholder-message"
|
|
2581
|
-
},
|
|
2606
|
+
}, ya = {
|
|
2582
2607
|
key: 1,
|
|
2583
2608
|
class: "d-flex flex-column"
|
|
2584
|
-
},
|
|
2609
|
+
}, ba = /* @__PURE__ */ x({
|
|
2585
2610
|
__name: "DragDropArea",
|
|
2586
2611
|
props: /* @__PURE__ */ G({
|
|
2587
2612
|
maxFileInput: {},
|
|
@@ -2593,30 +2618,30 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2593
2618
|
}),
|
|
2594
2619
|
emits: ["update:modelValue"],
|
|
2595
2620
|
setup(e) {
|
|
2596
|
-
const t = L(e, "modelValue"), l =
|
|
2597
|
-
l.value = !1,
|
|
2621
|
+
const t = L(e, "modelValue"), l = P(!1), a = h(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
2622
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = me([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2598
2623
|
};
|
|
2599
|
-
return (
|
|
2624
|
+
return (n, i) => (s(), p("div", {
|
|
2600
2625
|
id: "drag-drop-area",
|
|
2601
|
-
class:
|
|
2626
|
+
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2602
2627
|
onDragleave: i[0] || (i[0] = K((m) => l.value = !1, ["prevent"])),
|
|
2603
2628
|
onDragover: i[1] || (i[1] = K((m) => l.value = !0, ["prevent"])),
|
|
2604
2629
|
onDrop: K(o, ["prevent"])
|
|
2605
2630
|
}, [
|
|
2606
|
-
t.value.length === 0 ? (
|
|
2607
|
-
|
|
2631
|
+
t.value.length === 0 ? (s(), p("div", pa, [
|
|
2632
|
+
b(u(C), {
|
|
2608
2633
|
icon: "bi:upload",
|
|
2609
2634
|
class: "me-2",
|
|
2610
2635
|
height: "20px",
|
|
2611
2636
|
width: "20px"
|
|
2612
2637
|
}),
|
|
2613
|
-
|
|
2614
|
-
])) : (
|
|
2615
|
-
k(
|
|
2638
|
+
V(" Drag and drop files here ")
|
|
2639
|
+
])) : (s(), p("div", ya, [
|
|
2640
|
+
k(n.$slots, "default")
|
|
2616
2641
|
]))
|
|
2617
2642
|
], 34));
|
|
2618
2643
|
}
|
|
2619
|
-
}),
|
|
2644
|
+
}), va = { class: "d-flex align-items-center me-2" }, fa = /* @__PURE__ */ x({
|
|
2620
2645
|
__name: "UploadStatus",
|
|
2621
2646
|
props: {
|
|
2622
2647
|
fileSize: {},
|
|
@@ -2630,7 +2655,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2630
2655
|
case "InvalidFileType":
|
|
2631
2656
|
return "Upload Failed: File type is not accepted.";
|
|
2632
2657
|
case "InvalidFileSize":
|
|
2633
|
-
return `Upload Failed: File size exceeds the ${
|
|
2658
|
+
return `Upload Failed: File size exceeds the ${ne(e.maxFileSize)} limit.`;
|
|
2634
2659
|
case "Aborted":
|
|
2635
2660
|
return "Upload Failed: User cancelled.";
|
|
2636
2661
|
case "DeleteFileFailed":
|
|
@@ -2641,41 +2666,41 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2641
2666
|
return "Upload Failed: Connection error, please try again.";
|
|
2642
2667
|
}
|
|
2643
2668
|
});
|
|
2644
|
-
return (a, o) => (
|
|
2645
|
-
a.uploadStatus === "Uploading" ? (
|
|
2669
|
+
return (a, o) => (s(), p("div", va, [
|
|
2670
|
+
a.uploadStatus === "Uploading" ? (s(), w(Rt, {
|
|
2646
2671
|
key: 0,
|
|
2647
2672
|
pixelWidth: 200,
|
|
2648
2673
|
animate: "",
|
|
2649
2674
|
striped: ""
|
|
2650
2675
|
}, {
|
|
2651
|
-
default:
|
|
2652
|
-
|
|
2676
|
+
default: v(() => [
|
|
2677
|
+
V(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
2653
2678
|
]),
|
|
2654
2679
|
_: 1
|
|
2655
|
-
})) :
|
|
2656
|
-
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (
|
|
2680
|
+
})) : F("", !0),
|
|
2681
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ee, {
|
|
2657
2682
|
key: 1,
|
|
2658
2683
|
id: "upload-status-alert",
|
|
2659
2684
|
severity: t.value,
|
|
2660
2685
|
class: "mb-0 w-75 ms-auto"
|
|
2661
2686
|
}, {
|
|
2662
|
-
default:
|
|
2663
|
-
|
|
2687
|
+
default: v(() => [
|
|
2688
|
+
V(g(l.value), 1)
|
|
2664
2689
|
]),
|
|
2665
2690
|
_: 1
|
|
2666
|
-
}, 8, ["severity"])) :
|
|
2691
|
+
}, 8, ["severity"])) : F("", !0)
|
|
2667
2692
|
]));
|
|
2668
2693
|
}
|
|
2669
|
-
}),
|
|
2694
|
+
}), ga = ["data-cy"], ha = { class: "ms-3 d-flex flex-column" }, wa = {
|
|
2670
2695
|
key: 1,
|
|
2671
2696
|
id: "file-name"
|
|
2672
|
-
},
|
|
2697
|
+
}, ka = {
|
|
2673
2698
|
class: "text-black-50",
|
|
2674
2699
|
id: "file-type"
|
|
2675
|
-
},
|
|
2700
|
+
}, _a = {
|
|
2676
2701
|
class: "text-black-50",
|
|
2677
2702
|
id: "file-size"
|
|
2678
|
-
},
|
|
2703
|
+
}, xa = { class: "ms-auto my-auto d-flex" }, $a = /* @__PURE__ */ x({
|
|
2679
2704
|
__name: "FileInfo",
|
|
2680
2705
|
props: /* @__PURE__ */ G({
|
|
2681
2706
|
editableFileName: { type: Boolean },
|
|
@@ -2694,55 +2719,55 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2694
2719
|
}),
|
|
2695
2720
|
emits: /* @__PURE__ */ G(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2696
2721
|
setup(e, { emit: t }) {
|
|
2697
|
-
const l = L(e, "file"), a = L(e, "blobFileName"), o = L(e, "uploadStatus"),
|
|
2722
|
+
const l = L(e, "file"), a = L(e, "blobFileName"), o = L(e, "uploadStatus"), n = t, i = P(l.value.name), m = P(""), y = P(0), r = P(), _ = h(() => e.acceptedFileTypes.includes(l.value.type)), d = h(() => l.value.size <= e.maxFileSize), f = () => {
|
|
2698
2723
|
l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2699
|
-
},
|
|
2724
|
+
}, $ = async () => {
|
|
2700
2725
|
if (!_.value || !d.value) {
|
|
2701
2726
|
o.value = _.value ? "InvalidFileSize" : "InvalidFileType";
|
|
2702
2727
|
return;
|
|
2703
2728
|
}
|
|
2704
2729
|
o.value = "Preparing", r.value = new AbortController();
|
|
2705
|
-
const [
|
|
2706
|
-
if (!
|
|
2730
|
+
const [I, M] = await e.getFileUrlAction(l.value.name);
|
|
2731
|
+
if (!I) {
|
|
2707
2732
|
o.value = "Failed";
|
|
2708
2733
|
return;
|
|
2709
2734
|
}
|
|
2710
2735
|
try {
|
|
2711
2736
|
o.value = "Uploading";
|
|
2712
|
-
const
|
|
2737
|
+
const z = new ue(I), N = {
|
|
2713
2738
|
abortSignal: r.value.signal,
|
|
2714
2739
|
onProgress: (te) => y.value = te.loadedBytes,
|
|
2715
2740
|
tags: { temp: "true" }
|
|
2716
2741
|
};
|
|
2717
|
-
await
|
|
2718
|
-
} catch (
|
|
2719
|
-
if (
|
|
2742
|
+
await z.uploadData(l.value, N), m.value = I, o.value = "Uploaded", a.value = M;
|
|
2743
|
+
} catch (z) {
|
|
2744
|
+
if (z.name === "AbortError") {
|
|
2720
2745
|
o.value = "Aborted";
|
|
2721
2746
|
return;
|
|
2722
2747
|
}
|
|
2723
2748
|
o.value = "Failed";
|
|
2724
2749
|
}
|
|
2725
|
-
},
|
|
2726
|
-
await
|
|
2750
|
+
}, T = async () => {
|
|
2751
|
+
await ia(o.value, m.value), n("deleted", l.value);
|
|
2727
2752
|
};
|
|
2728
|
-
return
|
|
2729
|
-
e.autoUploadToBlob &&
|
|
2730
|
-
}), (
|
|
2731
|
-
const
|
|
2732
|
-
return
|
|
2753
|
+
return ie(() => {
|
|
2754
|
+
e.autoUploadToBlob && $();
|
|
2755
|
+
}), (I, M) => {
|
|
2756
|
+
const z = A;
|
|
2757
|
+
return s(), p("div", {
|
|
2733
2758
|
class: "py-4 px-3 d-flex",
|
|
2734
2759
|
"data-cy": `file-info-${l.value.name}`
|
|
2735
2760
|
}, [
|
|
2736
2761
|
c("div", null, [
|
|
2737
|
-
u(
|
|
2762
|
+
u(ra)(l.value.type) ? (s(), w(u(Ie), {
|
|
2738
2763
|
key: 0,
|
|
2739
2764
|
id: "thumbnail-image",
|
|
2740
2765
|
"image-class": "image-file-thumbnail border",
|
|
2741
|
-
src: u(
|
|
2766
|
+
src: u(da)(l.value),
|
|
2742
2767
|
alt: l.value.name,
|
|
2743
2768
|
width: "75px",
|
|
2744
2769
|
preview: ""
|
|
2745
|
-
}, null, 8, ["src", "alt"])) : (
|
|
2770
|
+
}, null, 8, ["src", "alt"])) : (s(), w(u(C), {
|
|
2746
2771
|
key: 1,
|
|
2747
2772
|
id: "file-earmark",
|
|
2748
2773
|
icon: "bi:file-earmark",
|
|
@@ -2750,76 +2775,76 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2750
2775
|
width: "75px"
|
|
2751
2776
|
}))
|
|
2752
2777
|
]),
|
|
2753
|
-
c("div",
|
|
2778
|
+
c("div", ha, [
|
|
2754
2779
|
c("div", null, [
|
|
2755
|
-
|
|
2780
|
+
I.editableFileName ? (s(), w(gt, {
|
|
2756
2781
|
key: 0,
|
|
2757
2782
|
id: "edit-file-name",
|
|
2758
2783
|
modelValue: i.value,
|
|
2759
|
-
"onUpdate:modelValue":
|
|
2760
|
-
rules:
|
|
2784
|
+
"onUpdate:modelValue": M[0] || (M[0] = (N) => i.value = N),
|
|
2785
|
+
rules: I.customFileNameRules,
|
|
2761
2786
|
name: l.value.name,
|
|
2762
2787
|
"complete-action": f
|
|
2763
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
2788
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", wa, g(l.value.name), 1))
|
|
2764
2789
|
]),
|
|
2765
|
-
c("span",
|
|
2766
|
-
c("span",
|
|
2790
|
+
c("span", ka, "File type: " + g(l.value.type.split("/").pop()), 1),
|
|
2791
|
+
c("span", _a, "File size: " + g(u(ne)(l.value.size)), 1)
|
|
2767
2792
|
]),
|
|
2768
|
-
c("div",
|
|
2769
|
-
(
|
|
2793
|
+
c("div", xa, [
|
|
2794
|
+
(s(), w(fa, {
|
|
2770
2795
|
key: o.value,
|
|
2771
2796
|
"file-size": l.value.size,
|
|
2772
2797
|
"upload-status": o.value,
|
|
2773
2798
|
"bytes-uploaded": y.value,
|
|
2774
|
-
"max-file-size":
|
|
2799
|
+
"max-file-size": I.maxFileSize
|
|
2775
2800
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
2776
|
-
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (
|
|
2801
|
+
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (s(), w(z, {
|
|
2777
2802
|
key: 0,
|
|
2778
2803
|
link: "",
|
|
2779
|
-
onClick:
|
|
2804
|
+
onClick: $
|
|
2780
2805
|
}, {
|
|
2781
|
-
default:
|
|
2782
|
-
|
|
2806
|
+
default: v(() => [
|
|
2807
|
+
b(u(C), {
|
|
2783
2808
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
2784
2809
|
}, null, 8, ["icon"])
|
|
2785
2810
|
]),
|
|
2786
2811
|
_: 1
|
|
2787
|
-
})) :
|
|
2788
|
-
o.value === "Uploading" ? (
|
|
2812
|
+
})) : F("", !0),
|
|
2813
|
+
o.value === "Uploading" ? (s(), w(z, {
|
|
2789
2814
|
key: 1,
|
|
2790
2815
|
link: "",
|
|
2791
|
-
onClick:
|
|
2816
|
+
onClick: M[1] || (M[1] = (N) => r.value.value.abort())
|
|
2792
2817
|
}, {
|
|
2793
|
-
default:
|
|
2794
|
-
|
|
2818
|
+
default: v(() => [
|
|
2819
|
+
b(u(C), { icon: "bi:x-circle-fill" })
|
|
2795
2820
|
]),
|
|
2796
2821
|
_: 1
|
|
2797
|
-
})) : (
|
|
2822
|
+
})) : (s(), w(z, {
|
|
2798
2823
|
key: 2,
|
|
2799
2824
|
link: "",
|
|
2800
|
-
onClick:
|
|
2825
|
+
onClick: T,
|
|
2801
2826
|
id: "delete-button"
|
|
2802
2827
|
}, {
|
|
2803
|
-
default:
|
|
2804
|
-
|
|
2828
|
+
default: v(() => [
|
|
2829
|
+
b(u(C), { icon: "bi:trash" })
|
|
2805
2830
|
]),
|
|
2806
2831
|
_: 1
|
|
2807
2832
|
}))
|
|
2808
2833
|
])
|
|
2809
|
-
], 8,
|
|
2834
|
+
], 8, ga);
|
|
2810
2835
|
};
|
|
2811
2836
|
}
|
|
2812
|
-
}),
|
|
2837
|
+
}), Ba = { class: "d-flex justify-content-end mt-1" }, Fa = { id: "max-file-size" }, Sa = /* @__PURE__ */ x({
|
|
2813
2838
|
__name: "MaxFileSize",
|
|
2814
2839
|
props: {
|
|
2815
2840
|
maxFileSize: {}
|
|
2816
2841
|
},
|
|
2817
2842
|
setup(e) {
|
|
2818
|
-
return (t, l) => (
|
|
2819
|
-
c("div",
|
|
2843
|
+
return (t, l) => (s(), p("div", Ba, [
|
|
2844
|
+
c("div", Fa, "Max file size: " + g(u(ne)(t.maxFileSize)), 1)
|
|
2820
2845
|
]));
|
|
2821
2846
|
}
|
|
2822
|
-
}),
|
|
2847
|
+
}), Ca = { "data-cy": "file-uploader" }, Ta = { key: 0 }, gl = /* @__PURE__ */ x({
|
|
2823
2848
|
__name: "ForgeFileUploader",
|
|
2824
2849
|
props: /* @__PURE__ */ G({
|
|
2825
2850
|
acceptedFileTypes: {},
|
|
@@ -2837,24 +2862,24 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2837
2862
|
emits: ["update:modelValue"],
|
|
2838
2863
|
setup(e) {
|
|
2839
2864
|
const t = L(e, "modelValue"), l = e, a = (o) => {
|
|
2840
|
-
t.value = t.value.filter((
|
|
2865
|
+
t.value = t.value.filter((n) => n.file != o);
|
|
2841
2866
|
};
|
|
2842
|
-
return (o,
|
|
2843
|
-
|
|
2867
|
+
return (o, n) => (s(), p("div", Ca, [
|
|
2868
|
+
b(ma, S(l, {
|
|
2844
2869
|
modelValue: t.value,
|
|
2845
|
-
"onUpdate:modelValue":
|
|
2870
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
|
|
2846
2871
|
}), null, 16, ["modelValue"]),
|
|
2847
|
-
o.showDragDropArea ? (
|
|
2848
|
-
|
|
2872
|
+
o.showDragDropArea ? (s(), p("div", Ta, [
|
|
2873
|
+
b(ba, {
|
|
2849
2874
|
"max-file-input": l.maxFileInput,
|
|
2850
2875
|
"max-file-size": l.maxFileSize,
|
|
2851
2876
|
"accepted-file-types": l.acceptedFileTypes,
|
|
2852
2877
|
modelValue: t.value,
|
|
2853
|
-
"onUpdate:modelValue":
|
|
2878
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => t.value = i)
|
|
2854
2879
|
}, {
|
|
2855
|
-
default:
|
|
2856
|
-
(
|
|
2857
|
-
(
|
|
2880
|
+
default: v(() => [
|
|
2881
|
+
(s(!0), p(O, null, E(t.value, ({ file: i }, m) => (s(), p("span", null, [
|
|
2882
|
+
(s(), w($a, S({
|
|
2858
2883
|
key: i.name,
|
|
2859
2884
|
class: m === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
2860
2885
|
file: t.value[m].file,
|
|
@@ -2869,36 +2894,36 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2869
2894
|
]),
|
|
2870
2895
|
_: 1
|
|
2871
2896
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
2872
|
-
|
|
2897
|
+
b(Sa, {
|
|
2873
2898
|
"max-file-size": l.maxFileSize
|
|
2874
2899
|
}, null, 8, ["max-file-size"])
|
|
2875
|
-
])) :
|
|
2900
|
+
])) : F("", !0)
|
|
2876
2901
|
]));
|
|
2877
2902
|
}
|
|
2878
2903
|
});
|
|
2879
2904
|
export {
|
|
2880
|
-
|
|
2881
|
-
|
|
2905
|
+
al as Bootstrap_PT,
|
|
2906
|
+
ll as ForgeActionButton,
|
|
2882
2907
|
ee as ForgeAlert,
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2908
|
+
st as ForgeCheckbox,
|
|
2909
|
+
ml as ForgeChips,
|
|
2910
|
+
Ut as ForgeDatepicker,
|
|
2911
|
+
gl as ForgeFileUploader,
|
|
2912
|
+
fl as ForgeFilterHeader,
|
|
2913
|
+
ul as ForgeForm,
|
|
2914
|
+
cl as ForgeFormField,
|
|
2915
|
+
gt as ForgeInlineEditor,
|
|
2916
|
+
ol as ForgeLink,
|
|
2917
|
+
ce as ForgeLoader,
|
|
2918
|
+
nl as ForgeModal,
|
|
2919
|
+
Bt as ForgeMultiSelect,
|
|
2920
|
+
il as ForgeMultiSelectPreview,
|
|
2921
|
+
sl as ForgeNavbar,
|
|
2922
|
+
rl as ForgePageHeader,
|
|
2923
|
+
Rt as ForgeProgressBar,
|
|
2924
|
+
dl as ForgeRemainingCharacters,
|
|
2925
|
+
pl as ForgeStatWidget,
|
|
2926
|
+
yl as ForgeStepper,
|
|
2927
|
+
vl as ForgeTable,
|
|
2928
|
+
bl as ForgeTile
|
|
2904
2929
|
};
|