@amsom-habitat/ui 2.20.7 → 2.20.8
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/ui.js +301 -296
- package/dist/ui.umd.cjs +1 -1
- package/package.json +4 -3
package/dist/ui.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { FontAwesomeIcon as D } from "@fortawesome/vue-fontawesome";
|
|
2
2
|
import { library as M } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
-
import { faTimes as Q, faCheck as W, faCamera as X, faTrash as R, faArrowRight as $, faArrowLeft as ee, faEye as q, faEyeSlash as K, faArrowDownWideShort as te, faArrowUpShortWide as se, faPlus as le, faAnglesLeft as ie, faAngleLeft as ne, faAngleRight as oe, faAnglesRight as ae, faCloudArrowDown as re, faTriangleExclamation as de, faCloudArrowUp as
|
|
4
|
-
import { resolveComponent as x, createBlock as k, openBlock as n, Teleport as fe, createElementVNode as o, createElementBlock as r, createCommentVNode as
|
|
3
|
+
import { faTimes as Q, faCheck as W, faCamera as X, faTrash as R, faArrowRight as $, faArrowLeft as ee, faEye as q, faEyeSlash as K, faArrowDownWideShort as te, faArrowUpShortWide as se, faPlus as le, faAnglesLeft as ie, faAngleLeft as ne, faAngleRight as oe, faAnglesRight as ae, faCloudArrowDown as re, faTriangleExclamation as de, faCloudArrowUp as ce, faPaperclip as ue, faFileCirclePlus as me } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
+
import { resolveComponent as x, createBlock as k, openBlock as n, Teleport as fe, createElementVNode as o, createElementBlock as r, createCommentVNode as h, normalizeStyle as _, normalizeClass as f, withModifiers as w, renderSlot as I, toDisplayString as p, Fragment as y, renderList as C, createTextVNode as A, useCssVars as he, createVNode as b, withCtx as z, withDirectives as N, vModelCheckbox as E, vShow as ge } from "vue";
|
|
5
5
|
import { isImage as j, resizeImage as G, handleFile as J, base64ToBlob as pe, openFileBlob as ye, downloadBlob as be, imageToPDF as Se, openFileBase64 as xe, isPdf as ke } from "@amsom-habitat/file-utils";
|
|
6
6
|
import { VueDraggableNext as we } from "vue-draggable-next";
|
|
7
7
|
import P from "moment-timezone";
|
|
8
8
|
import { unixToDateString as Ce } from "@amsom-habitat/date-utils";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import _e from "pdf-merger-js";
|
|
10
|
+
const ve = (s, e) => {
|
|
11
11
|
const t = s.__vccOpts || s;
|
|
12
|
-
for (const [
|
|
13
|
-
t[
|
|
12
|
+
for (const [u, i] of e)
|
|
13
|
+
t[u] = i;
|
|
14
14
|
return t;
|
|
15
15
|
};
|
|
16
16
|
M.add(Q);
|
|
17
|
-
const
|
|
17
|
+
const Pe = {
|
|
18
18
|
name: "AmsomModalComponent",
|
|
19
19
|
components: {
|
|
20
20
|
FontAwesomeIcon: D
|
|
@@ -153,15 +153,15 @@ const _e = {
|
|
|
153
153
|
s.key === "Escape" && this.$options.modalManager.getTopModal() === this.modalId && this.$emit("close");
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
},
|
|
156
|
+
}, Ie = ["id"], De = { class: "amsom-modal-body mt-2" }, Me = /* @__PURE__ */ o("p", null, " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. ", -1), Be = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "position-fixed bottom-0 end-0 mb-3 me-3"
|
|
159
|
-
},
|
|
159
|
+
}, Ae = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "position-fixed bottom-0 end-0 mb-3 me-3"
|
|
162
162
|
};
|
|
163
|
-
function
|
|
164
|
-
const
|
|
163
|
+
function Te(s, e, t, u, i, l) {
|
|
164
|
+
const c = x("font-awesome-icon");
|
|
165
165
|
return n(), k(fe, { to: "body" }, [
|
|
166
166
|
o("div", {
|
|
167
167
|
class: f(["p-2 m-0 bg-black bg-opacity-25 position-fixed overflow-y-auto", { "d-none": i.reduced }]),
|
|
@@ -195,43 +195,48 @@ function Be(s, e, t, c, i, l) {
|
|
|
195
195
|
onMousedown: e[2] || (e[2] = (...d) => l.handleModalMouseDown && l.handleModalMouseDown(...d)),
|
|
196
196
|
onMouseup: e[3] || (e[3] = (...d) => l.handleModalMouseUp && l.handleModalMouseUp(...d))
|
|
197
197
|
}, [
|
|
198
|
-
t.closeOption ? (n(), k(
|
|
198
|
+
t.closeOption ? (n(), k(c, {
|
|
199
199
|
key: 0,
|
|
200
200
|
icon: "fa-solid fa-times",
|
|
201
201
|
role: "button",
|
|
202
202
|
class: "position-absolute top-0 end-0 m-3 translate-middle-y",
|
|
203
203
|
size: "lg",
|
|
204
204
|
onClick: e[0] || (e[0] = (d) => s.$emit("close"))
|
|
205
|
-
})) :
|
|
206
|
-
o("div",
|
|
205
|
+
})) : h("", !0),
|
|
206
|
+
o("div", De, [
|
|
207
207
|
I(s.$slots, "title", {}, () => [
|
|
208
208
|
t.title ? (n(), r("div", {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: f(t.classTitle)
|
|
211
|
-
}, p(t.title), 3)) :
|
|
211
|
+
}, p(t.title), 3)) : h("", !0)
|
|
212
212
|
]),
|
|
213
213
|
I(s.$slots, "default", {}, () => [
|
|
214
|
-
|
|
214
|
+
Me
|
|
215
215
|
])
|
|
216
216
|
])
|
|
217
|
-
], 42,
|
|
217
|
+
], 42, Ie)
|
|
218
218
|
], 36),
|
|
219
|
-
t.reducible ? (n(), r("div",
|
|
219
|
+
t.reducible ? (n(), r("div", Be, [
|
|
220
220
|
o("button", {
|
|
221
221
|
class: "btn btn-primary",
|
|
222
222
|
onClick: e[6] || (e[6] = (d) => i.reduced = !i.reduced)
|
|
223
223
|
}, " Réduire la fenêtre ")
|
|
224
|
-
])) :
|
|
224
|
+
])) : h("", !0)
|
|
225
225
|
], 38),
|
|
226
|
-
t.reducible && i.reduced ? (n(), r("div",
|
|
226
|
+
t.reducible && i.reduced ? (n(), r("div", Ae, [
|
|
227
227
|
o("button", {
|
|
228
228
|
class: "btn btn-primary",
|
|
229
229
|
onClick: e[9] || (e[9] = (d) => i.reduced = !i.reduced)
|
|
230
230
|
}, " Restaurer la fenêtre ")
|
|
231
|
-
])) :
|
|
231
|
+
])) : h("", !0)
|
|
232
232
|
]);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const ze = /* @__PURE__ */ ve(Pe, [["render", Te]]), v = (s, e) => {
|
|
235
|
+
const t = s.__vccOpts || s;
|
|
236
|
+
for (const [u, i] of e)
|
|
237
|
+
t[u] = i;
|
|
238
|
+
return t;
|
|
239
|
+
}, Fe = {
|
|
235
240
|
name: "AmsomCard",
|
|
236
241
|
props: {
|
|
237
242
|
//string or null
|
|
@@ -285,18 +290,18 @@ const Ae = /* @__PURE__ */ C(_e, [["render", Be]]), Te = {
|
|
|
285
290
|
default: ""
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
|
-
},
|
|
293
|
+
}, Le = { class: "position-relative" }, Ne = {
|
|
289
294
|
key: 0,
|
|
290
295
|
class: "card-title"
|
|
291
|
-
},
|
|
292
|
-
function
|
|
293
|
-
return n(), r("div",
|
|
296
|
+
}, je = ["src"];
|
|
297
|
+
function qe(s, e, t, u, i, l) {
|
|
298
|
+
return n(), r("div", Le, [
|
|
294
299
|
t.header ? (n(), r("div", {
|
|
295
300
|
key: 0,
|
|
296
301
|
class: f(["card card-header", t.headerClass])
|
|
297
302
|
}, [
|
|
298
303
|
I(s.$slots, "header")
|
|
299
|
-
], 2)) :
|
|
304
|
+
], 2)) : h("", !0),
|
|
300
305
|
o("div", {
|
|
301
306
|
class: f(["card position-relative h-100", [
|
|
302
307
|
{
|
|
@@ -319,7 +324,7 @@ function Ne(s, e, t, c, i, l) {
|
|
|
319
324
|
style: { position: "relative", "z-index": "1" }
|
|
320
325
|
}, [
|
|
321
326
|
I(s.$slots, "title", {}, () => [
|
|
322
|
-
t.title && !t.bubbleTitle ? (n(), r("h4",
|
|
327
|
+
t.title && !t.bubbleTitle ? (n(), r("h4", Ne, p(t.title), 1)) : h("", !0)
|
|
323
328
|
]),
|
|
324
329
|
I(s.$slots, "default")
|
|
325
330
|
], 2)
|
|
@@ -339,23 +344,23 @@ function Ne(s, e, t, c, i, l) {
|
|
|
339
344
|
zIndex: 0,
|
|
340
345
|
borderRadius: "inherit"
|
|
341
346
|
})
|
|
342
|
-
}, null, 14,
|
|
347
|
+
}, null, 14, je)) : h("", !0)
|
|
343
348
|
], 2),
|
|
344
349
|
t.title && t.bubbleTitle ? (n(), r("span", {
|
|
345
350
|
key: 1,
|
|
346
351
|
id: "bubble-title",
|
|
347
352
|
class: f(["position-absolute top-0 start-0 translate-middle-y rounded-pill shadow px-1", t.bubbleTitleClass]),
|
|
348
353
|
style: { "z-index": "2" }
|
|
349
|
-
}, p(t.title), 3)) :
|
|
354
|
+
}, p(t.title), 3)) : h("", !0),
|
|
350
355
|
t.footer ? (n(), r("div", {
|
|
351
356
|
key: 2,
|
|
352
357
|
class: f(["card card-footer", t.footerClass])
|
|
353
358
|
}, [
|
|
354
359
|
I(s.$slots, "footer")
|
|
355
|
-
], 2)) :
|
|
360
|
+
], 2)) : h("", !0)
|
|
356
361
|
]);
|
|
357
362
|
}
|
|
358
|
-
const
|
|
363
|
+
const Ve = /* @__PURE__ */ v(Fe, [["render", qe]]), Ee = {
|
|
359
364
|
name: "AmsomOverlay",
|
|
360
365
|
props: {
|
|
361
366
|
loading: {
|
|
@@ -370,9 +375,9 @@ const je = /* @__PURE__ */ C(Te, [["render", Ne]]), qe = {
|
|
|
370
375
|
validator: (s) => s >= 0 && s <= 100
|
|
371
376
|
}
|
|
372
377
|
}
|
|
373
|
-
},
|
|
374
|
-
function
|
|
375
|
-
return n(), r("div",
|
|
378
|
+
}, He = { class: "position-relative" };
|
|
379
|
+
function Oe(s, e, t, u, i, l) {
|
|
380
|
+
return n(), r("div", He, [
|
|
376
381
|
t.loading ? (n(), r("div", {
|
|
377
382
|
key: 0,
|
|
378
383
|
class: "position-absolute w-100 h-100 d-flex align-items-center justify-content-center rounded",
|
|
@@ -388,15 +393,15 @@ function Ee(s, e, t, c, i, l) {
|
|
|
388
393
|
}, [
|
|
389
394
|
o("span", { class: "sr-only visually-hidden" }, "Chargement...")
|
|
390
395
|
], -1)
|
|
391
|
-
])], 4)) :
|
|
396
|
+
])], 4)) : h("", !0),
|
|
392
397
|
I(s.$slots, "default", {}, () => [
|
|
393
398
|
e[1] || (e[1] = o("p", null, " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. ", -1))
|
|
394
399
|
])
|
|
395
400
|
]);
|
|
396
401
|
}
|
|
397
|
-
const Z = /* @__PURE__ */
|
|
402
|
+
const Z = /* @__PURE__ */ v(Ee, [["render", Oe]]);
|
|
398
403
|
M.add(W);
|
|
399
|
-
const
|
|
404
|
+
const Ye = {
|
|
400
405
|
name: "WorkflowAssuranceBlock",
|
|
401
406
|
components: {
|
|
402
407
|
FontAwesomeIcon: D
|
|
@@ -502,18 +507,18 @@ const He = {
|
|
|
502
507
|
}
|
|
503
508
|
}
|
|
504
509
|
}
|
|
505
|
-
},
|
|
510
|
+
}, Ue = { class: "d-flex flex-column align-items-center" }, We = ["onClick"], Re = {
|
|
506
511
|
key: 0,
|
|
507
512
|
class: "line h-100",
|
|
508
513
|
style: { height: "30px", "min-height": "30px" }
|
|
509
514
|
};
|
|
510
|
-
function
|
|
511
|
-
const
|
|
512
|
-
return n(!0), r(y, null,
|
|
515
|
+
function Ke(s, e, t, u, i, l) {
|
|
516
|
+
const c = x("font-awesome-icon");
|
|
517
|
+
return n(!0), r(y, null, C(t.steps, (d, m) => (n(), r("div", {
|
|
513
518
|
key: d.numero,
|
|
514
519
|
class: "d-flex mb-1"
|
|
515
520
|
}, [
|
|
516
|
-
o("div",
|
|
521
|
+
o("div", Ue, [
|
|
517
522
|
o("div", {
|
|
518
523
|
style: _({
|
|
519
524
|
width: l.bubbleSize + "rem",
|
|
@@ -528,16 +533,16 @@ function We(s, e, t, c, i, l) {
|
|
|
528
533
|
]]),
|
|
529
534
|
onClick: (a) => s.$emit("clickStep", d.numero)
|
|
530
535
|
}, [
|
|
531
|
-
m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(
|
|
536
|
+
m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(c, {
|
|
532
537
|
key: 0,
|
|
533
538
|
icon: ["fas", "check"]
|
|
534
539
|
})) : (n(), r(y, { key: 1 }, [
|
|
535
540
|
A(p(d.numero), 1)
|
|
536
541
|
], 64))
|
|
537
|
-
], 14,
|
|
538
|
-
m < t.steps.length - 1 ? (n(), r("div",
|
|
542
|
+
], 14, We),
|
|
543
|
+
m < t.steps.length - 1 ? (n(), r("div", Re)) : h("", !0)
|
|
539
544
|
]),
|
|
540
|
-
t.hideText ?
|
|
545
|
+
t.hideText ? h("", !0) : (n(), r("span", {
|
|
541
546
|
key: 0,
|
|
542
547
|
class: f(["ms-1", [m + 1 < t.currentStep ? t.passedStepTextCss : m + 1 === t.currentStep ? t.currentStepTextCss : t.futureStepTextCss]]),
|
|
543
548
|
style: _({
|
|
@@ -551,7 +556,7 @@ function We(s, e, t, c, i, l) {
|
|
|
551
556
|
], 6))
|
|
552
557
|
]))), 128);
|
|
553
558
|
}
|
|
554
|
-
const
|
|
559
|
+
const Hs = /* @__PURE__ */ v(Ye, [["render", Ke], ["__scopeId", "data-v-5eab4376"]]);
|
|
555
560
|
M.add(W);
|
|
556
561
|
const V = {
|
|
557
562
|
name: "AmsomHorizontalStepper",
|
|
@@ -678,7 +683,7 @@ const V = {
|
|
|
678
683
|
}
|
|
679
684
|
}
|
|
680
685
|
}, H = () => {
|
|
681
|
-
|
|
686
|
+
he((s) => ({
|
|
682
687
|
v31536048: s.futureStepBgColorCss,
|
|
683
688
|
dac29eac: s.bubbleSize + "rem",
|
|
684
689
|
a3a0806e: s.passedStepBgColorCss,
|
|
@@ -686,11 +691,11 @@ const V = {
|
|
|
686
691
|
}));
|
|
687
692
|
}, O = V.setup;
|
|
688
693
|
V.setup = O ? (s, e) => (H(), O(s, e)) : H;
|
|
689
|
-
const
|
|
690
|
-
function
|
|
691
|
-
const
|
|
692
|
-
return n(), r("div",
|
|
693
|
-
(n(!0), r(y, null,
|
|
694
|
+
const Ge = { class: "d-flex justify-content-between" }, Je = ["role", "onClick"];
|
|
695
|
+
function Ze(s, e, t, u, i, l) {
|
|
696
|
+
const c = x("font-awesome-icon");
|
|
697
|
+
return n(), r("div", Ge, [
|
|
698
|
+
(n(!0), r(y, null, C(t.steps, (d, m) => (n(), r("div", {
|
|
694
699
|
key: d.numero,
|
|
695
700
|
role: d.numero < t.currentStep ? "button" : "none",
|
|
696
701
|
class: f(["stepper-item", [
|
|
@@ -708,27 +713,27 @@ function Ge(s, e, t, c, i, l) {
|
|
|
708
713
|
]]),
|
|
709
714
|
style: _({ fontSize: l.fontSizeStep + "rem" })
|
|
710
715
|
}, [
|
|
711
|
-
m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(
|
|
716
|
+
m + 1 < t.currentStep && t.checkPassedStep ? (n(), k(c, {
|
|
712
717
|
key: 0,
|
|
713
718
|
icon: ["fas", "check"]
|
|
714
719
|
})) : (n(), r(y, { key: 1 }, [
|
|
715
720
|
A(p(d.numero), 1)
|
|
716
721
|
], 64))
|
|
717
722
|
], 6),
|
|
718
|
-
t.hideText ?
|
|
723
|
+
t.hideText ? h("", !0) : (n(), r("div", {
|
|
719
724
|
key: 0,
|
|
720
725
|
class: f(["step-name", [m + 1 < t.currentStep ? t.passedStepTextCss : m + 1 === t.currentStep ? t.currentStepTextCss : t.futureStepTextCss]]),
|
|
721
726
|
style: _({ fontSize: l.fontSizeText + "rem" })
|
|
722
727
|
}, p(d.texte), 7))
|
|
723
|
-
], 10,
|
|
728
|
+
], 10, Je))), 128))
|
|
724
729
|
]);
|
|
725
730
|
}
|
|
726
|
-
const
|
|
731
|
+
const Os = /* @__PURE__ */ v(V, [["render", Ze]]);
|
|
727
732
|
M.add(X, R, $, ee);
|
|
728
|
-
const
|
|
733
|
+
const Qe = {
|
|
729
734
|
name: "PhotoComponent",
|
|
730
735
|
components: {
|
|
731
|
-
AmsomModal:
|
|
736
|
+
AmsomModal: ze,
|
|
732
737
|
FontAwesomeIcon: D
|
|
733
738
|
},
|
|
734
739
|
props: {
|
|
@@ -789,24 +794,24 @@ const Je = {
|
|
|
789
794
|
if (e) {
|
|
790
795
|
this.imagesLimit !== -1 && (e = Array.from(e), e = e.slice(0, this.imagesLimit));
|
|
791
796
|
for (let t of e)
|
|
792
|
-
j(t) && G({ file: t, maxWidth: this.maxWidth, maxHeigth: this.maxHeigth }).then((
|
|
793
|
-
J(pe(
|
|
797
|
+
j(t) && G({ file: t, maxWidth: this.maxWidth, maxHeigth: this.maxHeigth }).then((u) => {
|
|
798
|
+
J(pe(u), t.type.split("/")[1]).then((i) => {
|
|
794
799
|
i.nomFichier = t.name, this.$emit("update:images", [...this.images, i]);
|
|
795
800
|
});
|
|
796
801
|
});
|
|
797
802
|
}
|
|
798
803
|
}
|
|
799
804
|
}
|
|
800
|
-
},
|
|
805
|
+
}, Xe = { class: "border border-1 border-grey rounded-4 p-2 d-flex align-items-center" }, $e = ["disabled"], et = ["capture"], tt = {
|
|
801
806
|
key: 0,
|
|
802
807
|
class: "d-flex overflow-x-auto w-100"
|
|
803
|
-
},
|
|
808
|
+
}, st = ["onClick"], lt = ["src", "alt"], it = {
|
|
804
809
|
key: 1,
|
|
805
810
|
class: "fs-7"
|
|
806
|
-
},
|
|
807
|
-
function
|
|
808
|
-
const
|
|
809
|
-
return n(), r("div",
|
|
811
|
+
}, nt = { class: "row w-100 mx-auto" }, ot = { class: "col-12 mb-3" }, at = ["src", "alt"], rt = { class: "col-12 d-flex justify-content-center" };
|
|
812
|
+
function dt(s, e, t, u, i, l) {
|
|
813
|
+
const c = x("font-awesome-icon"), d = x("amsom-modal");
|
|
814
|
+
return n(), r("div", Xe, [
|
|
810
815
|
o("button", {
|
|
811
816
|
type: "button",
|
|
812
817
|
class: "btn rounded-4 me-1 d-flex justify-content-center align-items-center",
|
|
@@ -820,7 +825,7 @@ function at(s, e, t, c, i, l) {
|
|
|
820
825
|
disabled: !l.canAddImage,
|
|
821
826
|
onClick: e[2] || (e[2] = (...m) => l.triggerFileInput && l.triggerFileInput(...m))
|
|
822
827
|
}, [
|
|
823
|
-
b(
|
|
828
|
+
b(c, {
|
|
824
829
|
icon: "fa-solid fa-camera",
|
|
825
830
|
size: "lg",
|
|
826
831
|
class: "text-white"
|
|
@@ -846,10 +851,10 @@ function at(s, e, t, c, i, l) {
|
|
|
846
851
|
multiple: "",
|
|
847
852
|
capture: t.capture,
|
|
848
853
|
onInput: e[1] || (e[1] = (...m) => l.getDataFiles && l.getDataFiles(...m))
|
|
849
|
-
}, null, 40,
|
|
850
|
-
], 12,
|
|
851
|
-
t.images.length > 0 ? (n(), r("div",
|
|
852
|
-
(n(!0), r(y, null,
|
|
854
|
+
}, null, 40, et))
|
|
855
|
+
], 12, $e),
|
|
856
|
+
t.images.length > 0 ? (n(), r("div", tt, [
|
|
857
|
+
(n(!0), r(y, null, C(t.images, (m) => (n(), r("button", {
|
|
853
858
|
key: m,
|
|
854
859
|
type: "button",
|
|
855
860
|
class: "btn p-0 mx-1 rounded-1",
|
|
@@ -865,9 +870,9 @@ function at(s, e, t, c, i, l) {
|
|
|
865
870
|
src: "data:" + (m == null ? void 0 : m.type) + ";base64," + (m == null ? void 0 : m.file),
|
|
866
871
|
class: "h-100 w-100 rounded-1",
|
|
867
872
|
alt: m == null ? void 0 : m.nomFichier
|
|
868
|
-
}, null, 8,
|
|
869
|
-
], 12,
|
|
870
|
-
])) : (n(), r("div",
|
|
873
|
+
}, null, 8, lt)
|
|
874
|
+
], 12, st))), 128))
|
|
875
|
+
])) : (n(), r("div", it, " Ajouter une image ")),
|
|
871
876
|
i.showModal ? (n(), k(d, {
|
|
872
877
|
key: 2,
|
|
873
878
|
size: "sm",
|
|
@@ -875,23 +880,23 @@ function at(s, e, t, c, i, l) {
|
|
|
875
880
|
onClose: l.closeModal
|
|
876
881
|
}, {
|
|
877
882
|
default: z(() => {
|
|
878
|
-
var m, a,
|
|
883
|
+
var m, a, g;
|
|
879
884
|
return [
|
|
880
|
-
o("div",
|
|
881
|
-
o("div",
|
|
885
|
+
o("div", nt, [
|
|
886
|
+
o("div", ot, [
|
|
882
887
|
o("img", {
|
|
883
888
|
src: "data:" + ((m = t.images[i.selectedPhotoIndex]) == null ? void 0 : m.type) + ";base64," + ((a = t.images[i.selectedPhotoIndex]) == null ? void 0 : a.file),
|
|
884
|
-
alt: (
|
|
889
|
+
alt: (g = t.images[i.selectedPhotoIndex]) == null ? void 0 : g.nomFichier,
|
|
885
890
|
class: "h-100 w-100"
|
|
886
|
-
}, null, 8,
|
|
891
|
+
}, null, 8, at)
|
|
887
892
|
]),
|
|
888
|
-
o("div",
|
|
893
|
+
o("div", rt, [
|
|
889
894
|
o("button", {
|
|
890
895
|
type: "button",
|
|
891
896
|
class: "btn btn-primary mx-1",
|
|
892
897
|
onClick: e[3] || (e[3] = (S) => l.changeIndex(0))
|
|
893
898
|
}, [
|
|
894
|
-
b(
|
|
899
|
+
b(c, {
|
|
895
900
|
icon: "fa-arrow-left",
|
|
896
901
|
size: "lg"
|
|
897
902
|
})
|
|
@@ -901,7 +906,7 @@ function at(s, e, t, c, i, l) {
|
|
|
901
906
|
class: "btn btn-primary mx-1",
|
|
902
907
|
onClick: e[4] || (e[4] = (S) => l.changeIndex(1))
|
|
903
908
|
}, [
|
|
904
|
-
b(
|
|
909
|
+
b(c, {
|
|
905
910
|
icon: "fa-arrow-right",
|
|
906
911
|
size: "lg"
|
|
907
912
|
})
|
|
@@ -911,7 +916,7 @@ function at(s, e, t, c, i, l) {
|
|
|
911
916
|
class: "btn btn-danger ms-auto",
|
|
912
917
|
onClick: e[5] || (e[5] = (...S) => l.deleteImage && l.deleteImage(...S))
|
|
913
918
|
}, [
|
|
914
|
-
b(
|
|
919
|
+
b(c, {
|
|
915
920
|
icon: "fa-trash",
|
|
916
921
|
size: "lg"
|
|
917
922
|
})
|
|
@@ -921,15 +926,15 @@ function at(s, e, t, c, i, l) {
|
|
|
921
926
|
];
|
|
922
927
|
}),
|
|
923
928
|
_: 1
|
|
924
|
-
}, 8, ["onClose"])) :
|
|
929
|
+
}, 8, ["onClose"])) : h("", !0)
|
|
925
930
|
]);
|
|
926
931
|
}
|
|
927
|
-
const
|
|
928
|
-
function
|
|
932
|
+
const Ys = /* @__PURE__ */ v(Qe, [["render", dt]]);
|
|
933
|
+
function ct(s, e, t = !1, u = !1) {
|
|
929
934
|
return s && s.sort((i, l) => {
|
|
930
|
-
const
|
|
931
|
-
if (
|
|
932
|
-
switch (i[e].replace(/\d+/g, (
|
|
935
|
+
const c = new RegExp("(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)?$");
|
|
936
|
+
if (c.test(i[e]) && c.test(l[e]))
|
|
937
|
+
switch (i[e].replace(/\d+/g, (g) => +g + 1e5).localeCompare(l[e].replace(/\d+/g, (g) => +g + 1e5))) {
|
|
933
938
|
case 1:
|
|
934
939
|
return t ? 1 : -1;
|
|
935
940
|
case -1:
|
|
@@ -942,9 +947,9 @@ function rt(s, e, t = !1, c = !1) {
|
|
|
942
947
|
if (!isNaN(i[e]) && !isNaN(l[e]))
|
|
943
948
|
return t ? parseFloat(i[e]) - parseFloat(l[e]) : parseFloat(l[e]) - parseFloat(i[e]);
|
|
944
949
|
if (!i[e] && l[e])
|
|
945
|
-
return t ?
|
|
950
|
+
return t ? u ? 1 : -1 : u ? -1 : 1;
|
|
946
951
|
if (i[e] && !l[e])
|
|
947
|
-
return t ?
|
|
952
|
+
return t ? u ? -1 : 1 : u ? 1 : -1;
|
|
948
953
|
if (!i[e] && !l[e])
|
|
949
954
|
return 0;
|
|
950
955
|
if (P(i[e], "DD/MM/YYYY").isValid() || P(l[e], "DD/MM/YYYY").isValid())
|
|
@@ -970,41 +975,41 @@ function U(s, e) {
|
|
|
970
975
|
else if (!t.columns)
|
|
971
976
|
t.columns = e;
|
|
972
977
|
else {
|
|
973
|
-
let
|
|
974
|
-
return !t.columns.some(function(
|
|
975
|
-
return
|
|
978
|
+
let u = e.filter(function(l) {
|
|
979
|
+
return !t.columns.some(function(c) {
|
|
980
|
+
return c.id === l.id;
|
|
976
981
|
});
|
|
977
982
|
});
|
|
978
|
-
t.columns = t.columns.concat(
|
|
983
|
+
t.columns = t.columns.concat(u);
|
|
979
984
|
let i = t.columns.filter(function(l) {
|
|
980
|
-
return !e.some(function(
|
|
981
|
-
return l.id ===
|
|
985
|
+
return !e.some(function(c) {
|
|
986
|
+
return l.id === c.id;
|
|
982
987
|
});
|
|
983
988
|
});
|
|
984
989
|
t.columns = t.columns.filter(function(l) {
|
|
985
|
-
return !i.some(function(
|
|
986
|
-
return l.id ===
|
|
990
|
+
return !i.some(function(c) {
|
|
991
|
+
return l.id === c.id;
|
|
987
992
|
});
|
|
988
993
|
}), t.columns.filter((l) => {
|
|
989
|
-
for (let
|
|
990
|
-
|
|
994
|
+
for (let c of e)
|
|
995
|
+
c.id === l.id && c.libelle !== l.libelle && (l.libelle = c.libelle);
|
|
991
996
|
});
|
|
992
997
|
}
|
|
993
998
|
T(s, t);
|
|
994
999
|
}
|
|
995
|
-
function
|
|
996
|
-
let
|
|
997
|
-
|
|
1000
|
+
function ut(s, e, t = null) {
|
|
1001
|
+
let u = F(s);
|
|
1002
|
+
u ? t && !u[t] && (u[t] = e) : t ? (u = {}, u[t] = e) : u = e, T(s, u);
|
|
998
1003
|
}
|
|
999
1004
|
function F(s) {
|
|
1000
1005
|
return JSON.parse(window.localStorage.getItem(s));
|
|
1001
1006
|
}
|
|
1002
1007
|
function T(s, e, t = null) {
|
|
1003
|
-
let
|
|
1004
|
-
return t ?
|
|
1008
|
+
let u = F(s);
|
|
1009
|
+
return t ? u[t] = e : u = e, window.localStorage.setItem(s, JSON.stringify(u));
|
|
1005
1010
|
}
|
|
1006
1011
|
M.add(q, K, te, se, R, le);
|
|
1007
|
-
const
|
|
1012
|
+
const mt = {
|
|
1008
1013
|
name: "TableDraggableComponent",
|
|
1009
1014
|
components: { VueDraggableNext: we, FontAwesomeIcon: D },
|
|
1010
1015
|
props: {
|
|
@@ -1083,28 +1088,28 @@ const ut = {
|
|
|
1083
1088
|
filtereditems() {
|
|
1084
1089
|
if (!this.items) return this.items;
|
|
1085
1090
|
let s = L(this.search), e, t;
|
|
1086
|
-
return this.pickedDate && this.pickedDate[0] && this.pickedDate[1] && (e = P(this.pickedDate[0]).set({ hour: 0, minute: 0 }).unix(), t = P(this.pickedDate[1]).set({ hour: 23, minute: 59 }).unix()), this.items.filter((
|
|
1087
|
-
let i = this.filterBy(
|
|
1088
|
-
if (e && t && this.columnNameDateFilter && this.columnNameDateFilter.length > 0 && this.columnNameDateFilter.some((
|
|
1089
|
-
const d = this.columns.find((m) => m.id ===
|
|
1091
|
+
return this.pickedDate && this.pickedDate[0] && this.pickedDate[1] && (e = P(this.pickedDate[0]).set({ hour: 0, minute: 0 }).unix(), t = P(this.pickedDate[1]).set({ hour: 23, minute: 59 }).unix()), this.items.filter((u) => {
|
|
1092
|
+
let i = this.filterBy(u, s);
|
|
1093
|
+
if (e && t && this.columnNameDateFilter && this.columnNameDateFilter.length > 0 && this.columnNameDateFilter.some((c) => {
|
|
1094
|
+
const d = this.columns.find((m) => m.id === c);
|
|
1090
1095
|
return d && d.show === !0;
|
|
1091
1096
|
})) {
|
|
1092
|
-
let
|
|
1097
|
+
let c = this.columnNameDateFilter.some((d) => {
|
|
1093
1098
|
const m = this.columns.find((a) => a.id === d);
|
|
1094
|
-
if (
|
|
1095
|
-
let a = parseInt(
|
|
1099
|
+
if (u[d] && m.show === !0) {
|
|
1100
|
+
let a = parseInt(u[d]);
|
|
1096
1101
|
return a >= e && a <= t;
|
|
1097
1102
|
}
|
|
1098
1103
|
return !1;
|
|
1099
1104
|
});
|
|
1100
|
-
return i &&
|
|
1105
|
+
return i && c;
|
|
1101
1106
|
}
|
|
1102
1107
|
return i;
|
|
1103
1108
|
});
|
|
1104
1109
|
},
|
|
1105
1110
|
showeditems() {
|
|
1106
1111
|
const s = this.filtereditems.slice((this.currentPage - 1) * this.maxItemsPerPage, this.currentPage * this.maxItemsPerPage);
|
|
1107
|
-
return !this.sortKey || !this.filtereditems ? s :
|
|
1112
|
+
return !this.sortKey || !this.filtereditems ? s : ct(s, this.sortKey, this.sortAsc);
|
|
1108
1113
|
}
|
|
1109
1114
|
},
|
|
1110
1115
|
watch: {
|
|
@@ -1126,7 +1131,7 @@ const ut = {
|
|
|
1126
1131
|
},
|
|
1127
1132
|
mounted() {
|
|
1128
1133
|
if (this.localStorageItemName !== null) {
|
|
1129
|
-
U(this.localStorageItemName, this.columns),
|
|
1134
|
+
U(this.localStorageItemName, this.columns), ut(this.localStorageItemName, this.maxItemPerPage, "maxItemPerPage");
|
|
1130
1135
|
let s = F(this.localStorageItemName);
|
|
1131
1136
|
this.maxItemsPerPage = s.maxItemPerPage, this.columns = s.columns;
|
|
1132
1137
|
}
|
|
@@ -1185,49 +1190,49 @@ const ut = {
|
|
|
1185
1190
|
this.headerEditMode = !0;
|
|
1186
1191
|
}
|
|
1187
1192
|
}
|
|
1188
|
-
},
|
|
1193
|
+
}, ft = {
|
|
1189
1194
|
key: 0,
|
|
1190
1195
|
class: "my-3 text-center"
|
|
1191
|
-
},
|
|
1196
|
+
}, ht = { class: "row mb-3 overflow-x-auto" }, gt = { class: "col-12" }, pt = {
|
|
1192
1197
|
key: 1,
|
|
1193
1198
|
class: "bg-secondary",
|
|
1194
1199
|
scope: "col"
|
|
1195
|
-
},
|
|
1200
|
+
}, yt = {
|
|
1196
1201
|
key: 0,
|
|
1197
1202
|
class: "position-absolute start-50 translate-middle",
|
|
1198
1203
|
style: { top: "25px" }
|
|
1199
|
-
},
|
|
1204
|
+
}, bt = { class: "d-inline-flex text-nowrap" }, St = { class: "my-auto" }, xt = {
|
|
1200
1205
|
key: 0,
|
|
1201
1206
|
class: "ms-2 float-end"
|
|
1202
|
-
},
|
|
1207
|
+
}, kt = { key: 0 }, wt = ["colspan"], Ct = ["onClick"], _t = ["onClick"], vt = ["id", "value"], Pt = ["onClick"], It = { class: "row mb-2" }, Dt = {
|
|
1203
1208
|
key: 0,
|
|
1204
1209
|
class: "col"
|
|
1205
|
-
},
|
|
1210
|
+
}, Mt = { class: "m-0 pagination pagination-sm" }, Bt = { class: "page-item hoverable" }, At = { class: "page-item hoverable" }, Tt = ["onClick"], zt = { class: "page-item hoverable" }, Ft = { class: "page-item hoverable" }, Lt = {
|
|
1206
1211
|
key: 1,
|
|
1207
1212
|
class: "col d-flex justify-content-end"
|
|
1208
|
-
},
|
|
1213
|
+
}, Nt = { class: "d-flex mb-1" }, jt = {
|
|
1209
1214
|
key: 0,
|
|
1210
1215
|
class: "d-flex"
|
|
1211
1216
|
};
|
|
1212
|
-
function
|
|
1217
|
+
function qt(s, e, t, u, i, l) {
|
|
1213
1218
|
var m;
|
|
1214
|
-
const
|
|
1219
|
+
const c = x("font-awesome-icon"), d = x("vue-draggable-next");
|
|
1215
1220
|
return n(), r(y, null, [
|
|
1216
|
-
t.lineEditMode ? (n(), r("div",
|
|
1221
|
+
t.lineEditMode ? (n(), r("div", ft, [
|
|
1217
1222
|
o("button", {
|
|
1218
1223
|
type: "button",
|
|
1219
1224
|
class: "btn btn-success rounded-5 m-0 p-0",
|
|
1220
1225
|
style: { height: "45px", width: "45px" },
|
|
1221
1226
|
onClick: e[0] || (e[0] = (a) => s.$emit("lineEditModeAddNewLine"))
|
|
1222
1227
|
}, [
|
|
1223
|
-
b(
|
|
1228
|
+
b(c, {
|
|
1224
1229
|
icon: "fa-solid fa-plus",
|
|
1225
1230
|
size: "xl"
|
|
1226
1231
|
})
|
|
1227
1232
|
])
|
|
1228
|
-
])) :
|
|
1229
|
-
o("div",
|
|
1230
|
-
o("div",
|
|
1233
|
+
])) : h("", !0),
|
|
1234
|
+
o("div", ht, [
|
|
1235
|
+
o("div", gt, [
|
|
1231
1236
|
(n(), r("table", {
|
|
1232
1237
|
id: "table-draggable",
|
|
1233
1238
|
key: i.forceTableUpdateIndex,
|
|
@@ -1245,25 +1250,25 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1245
1250
|
group: "columns"
|
|
1246
1251
|
}, {
|
|
1247
1252
|
default: z(() => [
|
|
1248
|
-
(n(!0), r(y, null,
|
|
1253
|
+
(n(!0), r(y, null, C(i.columns, (a) => (n(), r(y, {
|
|
1249
1254
|
key: a.id
|
|
1250
1255
|
}, [
|
|
1251
1256
|
a.id === "checkBox" ? (n(), r("th", {
|
|
1252
1257
|
key: 0,
|
|
1253
1258
|
class: "text-center bg-secondary",
|
|
1254
1259
|
scope: "col",
|
|
1255
|
-
onClick: e[3] || (e[3] = w((...
|
|
1260
|
+
onClick: e[3] || (e[3] = w((...g) => l.toggleAllCheckBox && l.toggleAllCheckBox(...g), ["stop"]))
|
|
1256
1261
|
}, [
|
|
1257
1262
|
N(o("input", {
|
|
1258
1263
|
id: "checkBoxSelectAll",
|
|
1259
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1264
|
+
"onUpdate:modelValue": e[1] || (e[1] = (g) => i.checkAllCheckBox = g),
|
|
1260
1265
|
class: "form-check-input",
|
|
1261
1266
|
type: "checkbox",
|
|
1262
|
-
onClick: e[2] || (e[2] = w((...
|
|
1267
|
+
onClick: e[2] || (e[2] = w((...g) => l.toggleAllCheckBox && l.toggleAllCheckBox(...g), ["stop"]))
|
|
1263
1268
|
}, null, 512), [
|
|
1264
1269
|
[E, i.checkAllCheckBox]
|
|
1265
1270
|
])
|
|
1266
|
-
])) : a.id === "deleteButton" && t.lineEditMode ? (n(), r("th",
|
|
1271
|
+
])) : a.id === "deleteButton" && t.lineEditMode ? (n(), r("th", pt)) : a.show || i.headerEditMode ? (n(), r("th", {
|
|
1267
1272
|
key: 2,
|
|
1268
1273
|
scope: "col",
|
|
1269
1274
|
class: f(["text-white bg-secondary hoverable position-relative text-center", [
|
|
@@ -1273,48 +1278,48 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1273
1278
|
}
|
|
1274
1279
|
]])
|
|
1275
1280
|
}, [
|
|
1276
|
-
i.headerEditMode ? (n(), r("div",
|
|
1277
|
-
a.show ? (n(), k(
|
|
1281
|
+
i.headerEditMode ? (n(), r("div", yt, [
|
|
1282
|
+
a.show ? (n(), k(c, {
|
|
1278
1283
|
key: 0,
|
|
1279
1284
|
icon: "fa-solid fa-eye",
|
|
1280
1285
|
class: "fa-xl",
|
|
1281
|
-
onClick: (
|
|
1282
|
-
}, null, 8, ["onClick"])) : (n(), k(
|
|
1286
|
+
onClick: (g) => a.show = !1
|
|
1287
|
+
}, null, 8, ["onClick"])) : (n(), k(c, {
|
|
1283
1288
|
key: 1,
|
|
1284
1289
|
icon: "fa-solid fa-eye-slash",
|
|
1285
1290
|
class: "fa-xl",
|
|
1286
|
-
onClick: (
|
|
1291
|
+
onClick: (g) => a.show = !0
|
|
1287
1292
|
}, null, 8, ["onClick"]))
|
|
1288
|
-
])) :
|
|
1289
|
-
o("div",
|
|
1290
|
-
o("span",
|
|
1291
|
-
a.isSortable ? (n(), r("div",
|
|
1292
|
-
b(
|
|
1293
|
+
])) : h("", !0),
|
|
1294
|
+
o("div", bt, [
|
|
1295
|
+
o("span", St, p(a.libelle), 1),
|
|
1296
|
+
a.isSortable ? (n(), r("div", xt, [
|
|
1297
|
+
b(c, {
|
|
1293
1298
|
icon: i.sortKey !== a.id || i.sortKey === a.id && !i.sortAsc ? "fa-solid fa-arrow-down-wide-short" : "fa-solid fa-arrow-up-short-wide",
|
|
1294
|
-
onClick: (
|
|
1299
|
+
onClick: (g) => l.updateCurrentSort(a)
|
|
1295
1300
|
}, null, 8, ["icon", "onClick"])
|
|
1296
|
-
])) :
|
|
1301
|
+
])) : h("", !0)
|
|
1297
1302
|
])
|
|
1298
|
-
], 2)) :
|
|
1303
|
+
], 2)) : h("", !0)
|
|
1299
1304
|
], 64))), 128))
|
|
1300
1305
|
]),
|
|
1301
1306
|
_: 1
|
|
1302
1307
|
}, 8, ["modelValue", "ghost-class", "drag-class", "move"])
|
|
1303
1308
|
]),
|
|
1304
1309
|
o("tbody", null, [
|
|
1305
|
-
((m = l.showeditems) == null ? void 0 : m.length) === 0 ? (n(), r("tr",
|
|
1310
|
+
((m = l.showeditems) == null ? void 0 : m.length) === 0 ? (n(), r("tr", kt, [
|
|
1306
1311
|
o("th", {
|
|
1307
1312
|
colspan: i.columns.length,
|
|
1308
1313
|
class: "text-center"
|
|
1309
1314
|
}, [...e[14] || (e[14] = [
|
|
1310
1315
|
o("span", { class: "text-danger fs-5" }, "Aucune valeur", -1)
|
|
1311
|
-
])], 8,
|
|
1312
|
-
])) : (n(!0), r(y, { key: 1 },
|
|
1316
|
+
])], 8, wt)
|
|
1317
|
+
])) : (n(!0), r(y, { key: 1 }, C(l.showeditems, (a, g) => (n(), r("tr", {
|
|
1313
1318
|
key: a.id,
|
|
1314
1319
|
class: f({ hoverable: t.clickable }),
|
|
1315
1320
|
onClick: (S) => t.clickable ? l.selectSubject(a) : null
|
|
1316
1321
|
}, [
|
|
1317
|
-
(n(!0), r(y, null,
|
|
1322
|
+
(n(!0), r(y, null, C(i.columns, (S) => (n(), r(y, {
|
|
1318
1323
|
key: S.id
|
|
1319
1324
|
}, [
|
|
1320
1325
|
S.id === "checkBox" ? (n(), r("td", {
|
|
@@ -1323,17 +1328,17 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1323
1328
|
onClick: w((B) => l.checkItem(a.id), ["stop"])
|
|
1324
1329
|
}, [
|
|
1325
1330
|
N(o("input", {
|
|
1326
|
-
id: `checkbox-${
|
|
1331
|
+
id: `checkbox-${g}`,
|
|
1327
1332
|
"onUpdate:modelValue": e[5] || (e[5] = (B) => i.selectedItems = B),
|
|
1328
1333
|
type: "checkbox",
|
|
1329
1334
|
class: "form-check-input hoverable",
|
|
1330
1335
|
value: a.id,
|
|
1331
1336
|
onClick: e[6] || (e[6] = w(() => {
|
|
1332
1337
|
}, ["stop"]))
|
|
1333
|
-
}, null, 8,
|
|
1338
|
+
}, null, 8, vt), [
|
|
1334
1339
|
[E, i.selectedItems]
|
|
1335
1340
|
])
|
|
1336
|
-
], 10,
|
|
1341
|
+
], 10, _t)) : S.id === "deleteButton" && t.lineEditMode ? (n(), r("td", {
|
|
1337
1342
|
key: 1,
|
|
1338
1343
|
class: f([[a.lineState ? l.lineStateClass(a.lineState) : ""], "text-center py-0"])
|
|
1339
1344
|
}, [
|
|
@@ -1342,11 +1347,11 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1342
1347
|
class: "btn btn-danger",
|
|
1343
1348
|
onClick: (B) => s.$emit("lineEditModeDeleteLine", a.id)
|
|
1344
1349
|
}, [
|
|
1345
|
-
b(
|
|
1350
|
+
b(c, {
|
|
1346
1351
|
icon: "fa-solid fa-trash",
|
|
1347
1352
|
size: "lg"
|
|
1348
1353
|
})
|
|
1349
|
-
], 8,
|
|
1354
|
+
], 8, Pt)
|
|
1350
1355
|
], 2)) : S.show || i.headerEditMode ? (n(), r("td", {
|
|
1351
1356
|
key: 2,
|
|
1352
1357
|
class: f([[S.show ? "" : "table-danger", S.isSorted ? "bg-gray-200" : "", a.lineState ? l.lineStateClass(a.lineState) : ""], "text-center text-nowrap"])
|
|
@@ -1355,54 +1360,54 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1355
1360
|
header: S,
|
|
1356
1361
|
item: a
|
|
1357
1362
|
}, void 0, !0)
|
|
1358
|
-
], 2)) :
|
|
1363
|
+
], 2)) : h("", !0)
|
|
1359
1364
|
], 64))), 128))
|
|
1360
|
-
], 10,
|
|
1365
|
+
], 10, Ct))), 128))
|
|
1361
1366
|
])
|
|
1362
1367
|
]))
|
|
1363
1368
|
])
|
|
1364
1369
|
]),
|
|
1365
|
-
o("div",
|
|
1366
|
-
i.totalPages && i.totalPages > 1 ? (n(), r("div",
|
|
1367
|
-
o("ul",
|
|
1368
|
-
o("li",
|
|
1370
|
+
o("div", It, [
|
|
1371
|
+
i.totalPages && i.totalPages > 1 ? (n(), r("div", Dt, [
|
|
1372
|
+
o("ul", Mt, [
|
|
1373
|
+
o("li", Bt, [
|
|
1369
1374
|
o("a", {
|
|
1370
1375
|
class: f(["page-link", { disabled: i.currentPage === 1 }]),
|
|
1371
1376
|
onClick: e[7] || (e[7] = (a) => i.currentPage = 1)
|
|
1372
1377
|
}, " « ", 2)
|
|
1373
1378
|
]),
|
|
1374
|
-
o("li",
|
|
1379
|
+
o("li", At, [
|
|
1375
1380
|
o("a", {
|
|
1376
1381
|
class: f(["page-link", { disabled: i.currentPage === 1 }]),
|
|
1377
1382
|
onClick: e[8] || (e[8] = (a) => i.currentPage -= 1)
|
|
1378
1383
|
}, " < ", 2)
|
|
1379
1384
|
]),
|
|
1380
|
-
(n(!0), r(y, null,
|
|
1385
|
+
(n(!0), r(y, null, C(l.currentDisplayPagination, (a) => (n(), r("li", {
|
|
1381
1386
|
key: a,
|
|
1382
1387
|
class: f(["page-item hoverable", { active: i.currentPage === a }])
|
|
1383
1388
|
}, [
|
|
1384
1389
|
o("a", {
|
|
1385
1390
|
class: "page-link",
|
|
1386
|
-
onClick: (
|
|
1387
|
-
}, p(a), 9,
|
|
1391
|
+
onClick: (g) => i.currentPage = a
|
|
1392
|
+
}, p(a), 9, Tt)
|
|
1388
1393
|
], 2))), 128)),
|
|
1389
|
-
o("li",
|
|
1394
|
+
o("li", zt, [
|
|
1390
1395
|
o("a", {
|
|
1391
1396
|
class: f(["page-link", { disabled: i.currentPage === i.totalPages }]),
|
|
1392
1397
|
onClick: e[9] || (e[9] = (a) => i.currentPage += 1)
|
|
1393
1398
|
}, " > ", 2)
|
|
1394
1399
|
]),
|
|
1395
|
-
o("li",
|
|
1400
|
+
o("li", Ft, [
|
|
1396
1401
|
o("a", {
|
|
1397
1402
|
class: f(["page-link", { disabled: i.currentPage === i.totalPages }]),
|
|
1398
1403
|
onClick: e[10] || (e[10] = (a) => i.currentPage = i.totalPages)
|
|
1399
1404
|
}, " » ", 2)
|
|
1400
1405
|
])
|
|
1401
1406
|
])
|
|
1402
|
-
])) :
|
|
1403
|
-
t.showModifyColumnsBtn ? (n(), r("div",
|
|
1404
|
-
o("div",
|
|
1405
|
-
i.headerEditMode ? (n(), r("div",
|
|
1407
|
+
])) : h("", !0),
|
|
1408
|
+
t.showModifyColumnsBtn ? (n(), r("div", Lt, [
|
|
1409
|
+
o("div", Nt, [
|
|
1410
|
+
i.headerEditMode ? (n(), r("div", jt, [
|
|
1406
1411
|
o("button", {
|
|
1407
1412
|
id: "btn-save-table",
|
|
1408
1413
|
class: "btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2",
|
|
@@ -1423,13 +1428,13 @@ function Nt(s, e, t, c, i, l) {
|
|
|
1423
1428
|
onClick: e[13] || (e[13] = (...a) => l.editTablePreferences && l.editTablePreferences(...a))
|
|
1424
1429
|
}, " Modifier colonnes "))
|
|
1425
1430
|
])
|
|
1426
|
-
])) :
|
|
1431
|
+
])) : h("", !0)
|
|
1427
1432
|
])
|
|
1428
1433
|
], 64);
|
|
1429
1434
|
}
|
|
1430
|
-
const
|
|
1435
|
+
const Us = /* @__PURE__ */ v(mt, [["render", qt], ["__scopeId", "data-v-6b16b420"]]);
|
|
1431
1436
|
M.add(ie, ne, oe, ae);
|
|
1432
|
-
const
|
|
1437
|
+
const Vt = {
|
|
1433
1438
|
name: "AmsomPagination",
|
|
1434
1439
|
components: {
|
|
1435
1440
|
FontAwesomeIcon: D
|
|
@@ -1474,39 +1479,39 @@ const jt = {
|
|
|
1474
1479
|
else {
|
|
1475
1480
|
let e, t;
|
|
1476
1481
|
this.totalDisplayPages % 2 === 0 ? (e = this.modelValue - Math.floor(this.totalDisplayPages / 2) + 1, t = this.modelValue + Math.floor(this.totalDisplayPages / 2)) : (e = this.modelValue - Math.floor(this.totalDisplayPages / 2), t = this.modelValue + Math.floor(this.totalDisplayPages / 2)), e < 1 && (e = 1, t = this.totalDisplayPages), t > this.totalPages && (t = this.totalPages, e = this.totalPages - this.totalDisplayPages + 1);
|
|
1477
|
-
for (let
|
|
1478
|
-
s.push(
|
|
1482
|
+
for (let u = e; u <= t; u++)
|
|
1483
|
+
s.push(u);
|
|
1479
1484
|
}
|
|
1480
1485
|
return s;
|
|
1481
1486
|
}
|
|
1482
1487
|
}
|
|
1483
|
-
},
|
|
1488
|
+
}, Et = {
|
|
1484
1489
|
key: 0,
|
|
1485
1490
|
class: "w-100 user-select-none"
|
|
1486
|
-
},
|
|
1487
|
-
function
|
|
1488
|
-
const
|
|
1489
|
-
return t.totalPages && t.totalPages > 1 ? (n(), r("div",
|
|
1490
|
-
o("ul",
|
|
1491
|
-
o("li",
|
|
1491
|
+
}, Ht = { class: "pagination pagination mb-0" }, Ot = { class: "page-item" }, Yt = { class: "page-item" }, Ut = ["onClick"], Wt = { class: "page-item" }, Rt = { class: "page-item" };
|
|
1492
|
+
function Kt(s, e, t, u, i, l) {
|
|
1493
|
+
const c = x("font-awesome-icon");
|
|
1494
|
+
return t.totalPages && t.totalPages > 1 ? (n(), r("div", Et, [
|
|
1495
|
+
o("ul", Ht, [
|
|
1496
|
+
o("li", Ot, [
|
|
1492
1497
|
o("span", {
|
|
1493
1498
|
role: "button",
|
|
1494
1499
|
class: f(["page-link", { disabled: t.modelValue === 1 }]),
|
|
1495
1500
|
onClick: e[0] || (e[0] = (...d) => l.goFirstPage && l.goFirstPage(...d))
|
|
1496
1501
|
}, [
|
|
1497
|
-
b(
|
|
1502
|
+
b(c, { icon: "fa-angles-left" })
|
|
1498
1503
|
], 2)
|
|
1499
1504
|
]),
|
|
1500
|
-
o("li",
|
|
1505
|
+
o("li", Yt, [
|
|
1501
1506
|
o("span", {
|
|
1502
1507
|
role: "button",
|
|
1503
1508
|
class: f(["page-link", { disabled: t.modelValue === 1 }]),
|
|
1504
1509
|
onClick: e[1] || (e[1] = (...d) => l.goPreviousPage && l.goPreviousPage(...d))
|
|
1505
1510
|
}, [
|
|
1506
|
-
b(
|
|
1511
|
+
b(c, { icon: "fa-angle-left" })
|
|
1507
1512
|
], 2)
|
|
1508
1513
|
]),
|
|
1509
|
-
(n(!0), r(y, null,
|
|
1514
|
+
(n(!0), r(y, null, C(l.toDisplayPagination, (d) => (n(), r("li", {
|
|
1510
1515
|
key: d,
|
|
1511
1516
|
class: f(["page-item", { active: t.modelValue === d }])
|
|
1512
1517
|
}, [
|
|
@@ -1514,30 +1519,30 @@ function Wt(s, e, t, c, i, l) {
|
|
|
1514
1519
|
role: "button",
|
|
1515
1520
|
class: "page-link",
|
|
1516
1521
|
onClick: (m) => l.goToPage(d)
|
|
1517
|
-
}, p(d), 9,
|
|
1522
|
+
}, p(d), 9, Ut)
|
|
1518
1523
|
], 2))), 128)),
|
|
1519
|
-
o("li",
|
|
1524
|
+
o("li", Wt, [
|
|
1520
1525
|
o("span", {
|
|
1521
1526
|
role: "button",
|
|
1522
1527
|
class: f(["page-link", { disabled: t.modelValue === t.totalPages }]),
|
|
1523
1528
|
onClick: e[2] || (e[2] = (...d) => l.goNextPage && l.goNextPage(...d))
|
|
1524
1529
|
}, [
|
|
1525
|
-
b(
|
|
1530
|
+
b(c, { icon: "fa-angle-right" })
|
|
1526
1531
|
], 2)
|
|
1527
1532
|
]),
|
|
1528
|
-
o("li",
|
|
1533
|
+
o("li", Rt, [
|
|
1529
1534
|
o("span", {
|
|
1530
1535
|
role: "button",
|
|
1531
1536
|
class: f(["page-link", { disabled: t.modelValue === t.totalPages }]),
|
|
1532
1537
|
onClick: e[3] || (e[3] = (...d) => l.goLastPage && l.goLastPage(...d))
|
|
1533
1538
|
}, [
|
|
1534
|
-
b(
|
|
1539
|
+
b(c, { icon: "fa-angles-right" })
|
|
1535
1540
|
], 2)
|
|
1536
1541
|
])
|
|
1537
1542
|
])
|
|
1538
|
-
])) :
|
|
1543
|
+
])) : h("", !0);
|
|
1539
1544
|
}
|
|
1540
|
-
const
|
|
1545
|
+
const Ws = /* @__PURE__ */ v(Vt, [["render", Kt]]), Gt = {
|
|
1541
1546
|
name: "AmsomSkeleton",
|
|
1542
1547
|
props: {
|
|
1543
1548
|
/**
|
|
@@ -1559,24 +1564,24 @@ const Ys = /* @__PURE__ */ C(jt, [["render", Wt]]), Rt = {
|
|
|
1559
1564
|
}
|
|
1560
1565
|
}
|
|
1561
1566
|
};
|
|
1562
|
-
function
|
|
1567
|
+
function Jt(s, e, t, u, i, l) {
|
|
1563
1568
|
return n(), r("div", {
|
|
1564
1569
|
class: f(["container row placeholder-wave", t.rowClass])
|
|
1565
1570
|
}, [
|
|
1566
|
-
(n(!0), r(y, null,
|
|
1571
|
+
(n(!0), r(y, null, C(t.config, (c, d) => (n(), r("div", {
|
|
1567
1572
|
key: d,
|
|
1568
|
-
class: f(["placeholder mt-1", [t.loaderClass, "col-" +
|
|
1573
|
+
class: f(["placeholder mt-1", [t.loaderClass, "col-" + c]])
|
|
1569
1574
|
}, null, 2))), 128))
|
|
1570
1575
|
], 2);
|
|
1571
1576
|
}
|
|
1572
|
-
const
|
|
1577
|
+
const Zt = /* @__PURE__ */ v(Gt, [["render", Jt]]);
|
|
1573
1578
|
M.add(re, q);
|
|
1574
|
-
const
|
|
1579
|
+
const Qt = {
|
|
1575
1580
|
name: "AmsomDocumentList",
|
|
1576
1581
|
components: {
|
|
1577
|
-
AmsomSkeleton:
|
|
1582
|
+
AmsomSkeleton: Zt,
|
|
1578
1583
|
AmsomOverlay: Z,
|
|
1579
|
-
AmsomCard:
|
|
1584
|
+
AmsomCard: Ve,
|
|
1580
1585
|
FontAwesomeIcon: D
|
|
1581
1586
|
},
|
|
1582
1587
|
props: {
|
|
@@ -1619,8 +1624,8 @@ const Jt = {
|
|
|
1619
1624
|
},
|
|
1620
1625
|
async downloadFile(s, e) {
|
|
1621
1626
|
this.processing = !0;
|
|
1622
|
-
let t = this.anonym ? "Document " + (e + 1) : (s == null ? void 0 : s.titre) ?? "Document",
|
|
1623
|
-
be(
|
|
1627
|
+
let t = this.anonym ? "Document " + (e + 1) : (s == null ? void 0 : s.titre) ?? "Document", u = await this.getDocumentBlob(s);
|
|
1628
|
+
be(u, t), this.processing = !1;
|
|
1624
1629
|
},
|
|
1625
1630
|
async viewFile(s) {
|
|
1626
1631
|
this.processing = !0;
|
|
@@ -1628,50 +1633,50 @@ const Jt = {
|
|
|
1628
1633
|
ye(e), this.processing = !1;
|
|
1629
1634
|
}
|
|
1630
1635
|
}
|
|
1631
|
-
},
|
|
1636
|
+
}, Xt = { key: 0 }, $t = { class: "d-flex justify-content-between text-primary" }, es = { class: "mb-0" }, ts = { class: "mb-0" }, ss = ["onClick"], ls = {
|
|
1632
1637
|
role: "button",
|
|
1633
1638
|
class: "d-flex justify-content-between align-items-center p-2 px-3 text-secondary"
|
|
1634
|
-
},
|
|
1635
|
-
function
|
|
1636
|
-
const
|
|
1639
|
+
}, is = { key: 0 }, ns = { key: 1 };
|
|
1640
|
+
function os(s, e, t, u, i, l) {
|
|
1641
|
+
const c = x("amsom-skeleton"), d = x("font-awesome-icon"), m = x("amsom-card"), a = x("amsom-overlay");
|
|
1637
1642
|
return n(), k(a, { loading: i.processing }, {
|
|
1638
1643
|
default: z(() => [
|
|
1639
1644
|
b(m, null, {
|
|
1640
1645
|
default: z(() => {
|
|
1641
|
-
var
|
|
1646
|
+
var g;
|
|
1642
1647
|
return [
|
|
1643
1648
|
o("h5", null, p(t.title), 1),
|
|
1644
1649
|
t.loading ? (n(), r(y, { key: 0 }, [
|
|
1645
|
-
b(
|
|
1650
|
+
b(c, {
|
|
1646
1651
|
config: [3, 3],
|
|
1647
1652
|
"row-class": "justify-content-between"
|
|
1648
1653
|
}),
|
|
1649
|
-
b(
|
|
1654
|
+
b(c, { config: [12] })
|
|
1650
1655
|
], 64)) : (n(), r(y, { key: 1 }, [
|
|
1651
|
-
(
|
|
1656
|
+
(g = t.documentList) != null && g.length ? (n(!0), r(y, { key: 1 }, C(t.documentList, (S, B) => (n(), r("div", {
|
|
1652
1657
|
key: B,
|
|
1653
1658
|
class: "document-item pt-2"
|
|
1654
1659
|
}, [
|
|
1655
|
-
o("div",
|
|
1656
|
-
o("p",
|
|
1657
|
-
o("p",
|
|
1660
|
+
o("div", $t, [
|
|
1661
|
+
o("p", es, p(S.categorie), 1),
|
|
1662
|
+
o("p", ts, p(l.unixToDateString(S.dateFichier)), 1)
|
|
1658
1663
|
]),
|
|
1659
1664
|
o("div", {
|
|
1660
1665
|
class: "bg-primary bg-opacity-25 mt-0 rounded-3",
|
|
1661
|
-
onClick: (
|
|
1666
|
+
onClick: (As) => l.handleClick(S, B)
|
|
1662
1667
|
}, [
|
|
1663
|
-
o("div",
|
|
1664
|
-
t.anonym ? (n(), r("strong",
|
|
1668
|
+
o("div", ls, [
|
|
1669
|
+
t.anonym ? (n(), r("strong", ns, "Document " + p(B + 1), 1)) : (n(), r("strong", is, p(S.titre), 1)),
|
|
1665
1670
|
t.clickAction === "download" ? (n(), k(d, {
|
|
1666
1671
|
key: 2,
|
|
1667
1672
|
icon: "fa-solid fa-cloud-arrow-down"
|
|
1668
1673
|
})) : t.clickAction === "view" ? (n(), k(d, {
|
|
1669
1674
|
key: 3,
|
|
1670
1675
|
icon: "fa-solid fa-eye"
|
|
1671
|
-
})) :
|
|
1676
|
+
})) : h("", !0)
|
|
1672
1677
|
])
|
|
1673
|
-
], 8,
|
|
1674
|
-
]))), 128)) : (n(), r("div",
|
|
1678
|
+
], 8, ss)
|
|
1679
|
+
]))), 128)) : (n(), r("div", Xt, [...e[0] || (e[0] = [
|
|
1675
1680
|
o("p", null, "Aucun document", -1)
|
|
1676
1681
|
])]))
|
|
1677
1682
|
], 64))
|
|
@@ -1683,9 +1688,9 @@ function is(s, e, t, c, i, l) {
|
|
|
1683
1688
|
_: 1
|
|
1684
1689
|
}, 8, ["loading"]);
|
|
1685
1690
|
}
|
|
1686
|
-
const
|
|
1687
|
-
M.add(de, q, K,
|
|
1688
|
-
const
|
|
1691
|
+
const Rs = /* @__PURE__ */ v(Qt, [["render", os]]);
|
|
1692
|
+
M.add(de, q, K, ce, ue, me);
|
|
1693
|
+
const as = window.File_native ?? window.File, rs = {
|
|
1689
1694
|
name: "AmsomUploadFile",
|
|
1690
1695
|
components: { FontAwesomeIcon: D, AmsomOverlay: Z },
|
|
1691
1696
|
props: ["name", "pjName", "fileName", "subText", "title", "required", "label", "modelValue", "gedFile", "readStatus", "readOnly", "rejectStatus", "clickFileHandler"],
|
|
@@ -1734,8 +1739,8 @@ const ns = window.File_native ?? window.File, os = {
|
|
|
1734
1739
|
this.fileDragged = !1;
|
|
1735
1740
|
const e = s.dataTransfer ? [...s.dataTransfer.files] : [...s.target.files];
|
|
1736
1741
|
let t = !0;
|
|
1737
|
-
for (let
|
|
1738
|
-
if (!await j(
|
|
1742
|
+
for (let u of e)
|
|
1743
|
+
if (!await j(u) && !await ke(u)) {
|
|
1739
1744
|
t = !1;
|
|
1740
1745
|
break;
|
|
1741
1746
|
}
|
|
@@ -1757,20 +1762,20 @@ const ns = window.File_native ?? window.File, os = {
|
|
|
1757
1762
|
},
|
|
1758
1763
|
async uploadImage() {
|
|
1759
1764
|
this.$emit("fileLoading", !0), this.fileLoading = !0;
|
|
1760
|
-
let s = new
|
|
1765
|
+
let s = new _e(), e = this.fileToUpload;
|
|
1761
1766
|
for (let l of e)
|
|
1762
1767
|
if (await j(l)) {
|
|
1763
|
-
let
|
|
1768
|
+
let c = await G({
|
|
1764
1769
|
file: l,
|
|
1765
1770
|
maxWidth: 795,
|
|
1766
1771
|
maxHeigth: 1125
|
|
1767
|
-
}), d = Se(
|
|
1772
|
+
}), d = Se(c);
|
|
1768
1773
|
await s.add(d);
|
|
1769
1774
|
} else
|
|
1770
1775
|
await s.add(l);
|
|
1771
|
-
let t = await s.saveAsBlob(),
|
|
1776
|
+
let t = await s.saveAsBlob(), u = new as([t], "doc.pdf", {
|
|
1772
1777
|
type: "application/pdf"
|
|
1773
|
-
}), i = await J(
|
|
1778
|
+
}), i = await J(u, "pdf");
|
|
1774
1779
|
i.name = this.fileName, this.finalFile = i, this.emitFile(), this.$emit("fileLoading", !1), this.fileLoading = !1;
|
|
1775
1780
|
},
|
|
1776
1781
|
emitFile() {
|
|
@@ -1780,57 +1785,57 @@ const ns = window.File_native ?? window.File, os = {
|
|
|
1780
1785
|
this.finalFile = null, this.emitFile(), this.$emit("deleteFile"), this.fileToUpload = [];
|
|
1781
1786
|
}
|
|
1782
1787
|
}
|
|
1783
|
-
},
|
|
1788
|
+
}, ds = { class: "position-relative" }, cs = ["id"], us = ["id", "for"], ms = { class: "" }, fs = { class: "flex-grow-1" }, hs = { class: "fs-6 fw-bold" }, gs = {
|
|
1784
1789
|
class: "text-primary form-text fst-italic",
|
|
1785
1790
|
style: { "font-size": "smaller" }
|
|
1786
|
-
},
|
|
1791
|
+
}, ps = ["id", "required", "name"], ys = {
|
|
1787
1792
|
key: 1,
|
|
1788
1793
|
class: "w-100"
|
|
1789
|
-
},
|
|
1794
|
+
}, bs = {
|
|
1790
1795
|
key: 0,
|
|
1791
1796
|
class: "text-decoration-underline"
|
|
1792
|
-
},
|
|
1797
|
+
}, Ss = { class: "p-2 d-flex align-items-center" }, xs = {
|
|
1793
1798
|
key: 3,
|
|
1794
1799
|
class: "text-muted"
|
|
1795
|
-
},
|
|
1800
|
+
}, ks = {
|
|
1796
1801
|
key: 0,
|
|
1797
1802
|
class: "me-2"
|
|
1798
|
-
},
|
|
1799
|
-
function
|
|
1800
|
-
const
|
|
1803
|
+
}, ws = ["id"], Cs = ["id"], _s = { key: 1 }, vs = ["id"];
|
|
1804
|
+
function Ps(s, e, t, u, i, l) {
|
|
1805
|
+
const c = x("font-awesome-icon"), d = x("amsom-overlay");
|
|
1801
1806
|
return n(), k(d, { loading: i.fileLoading }, {
|
|
1802
1807
|
default: z(() => {
|
|
1803
1808
|
var m;
|
|
1804
1809
|
return [
|
|
1805
|
-
o("div",
|
|
1806
|
-
(m = i.finalFile) != null && m.file ? (n(), r("div",
|
|
1807
|
-
t.title ? (n(), r("h5",
|
|
1808
|
-
o("div",
|
|
1810
|
+
o("div", ds, [
|
|
1811
|
+
(m = i.finalFile) != null && m.file ? (n(), r("div", ys, [
|
|
1812
|
+
t.title ? (n(), r("h5", bs, p(t.title), 1)) : h("", !0),
|
|
1813
|
+
o("div", Ss, [
|
|
1809
1814
|
o("div", {
|
|
1810
1815
|
role: "button",
|
|
1811
1816
|
class: "hoverable flex-grow-1",
|
|
1812
1817
|
onClick: e[8] || (e[8] = (a) => l.clickFile(i.finalFile.file))
|
|
1813
1818
|
}, [
|
|
1814
|
-
t.rejectStatus ? (n(), k(
|
|
1819
|
+
t.rejectStatus ? (n(), k(c, {
|
|
1815
1820
|
key: 0,
|
|
1816
1821
|
icon: "fa-solid fa-exclamation-triangle",
|
|
1817
1822
|
class: "text-danger me-1"
|
|
1818
|
-
})) :
|
|
1819
|
-
t.readStatus === "read" ? (n(), k(
|
|
1823
|
+
})) : h("", !0),
|
|
1824
|
+
t.readStatus === "read" ? (n(), k(c, {
|
|
1820
1825
|
key: 1,
|
|
1821
1826
|
icon: "fa-solid fa-eye",
|
|
1822
1827
|
class: "text-amsom-green me-1"
|
|
1823
|
-
})) :
|
|
1824
|
-
t.readStatus === "unread" ? (n(), k(
|
|
1828
|
+
})) : h("", !0),
|
|
1829
|
+
t.readStatus === "unread" ? (n(), k(c, {
|
|
1825
1830
|
key: 2,
|
|
1826
1831
|
icon: "fa-solid fa-eye-slash",
|
|
1827
1832
|
class: "text-warning me-1"
|
|
1828
|
-
})) :
|
|
1829
|
-
b(
|
|
1833
|
+
})) : h("", !0),
|
|
1834
|
+
b(c, { icon: "fa-solid fa-solid fa-paperclip" }),
|
|
1830
1835
|
A(" " + p(t.pjName), 1),
|
|
1831
|
-
i.fileToUpload.length > 1 ? (n(), r("small",
|
|
1836
|
+
i.fileToUpload.length > 1 ? (n(), r("small", xs, " (" + p(i.fileToUpload.length) + " Fichiers)", 1)) : h("", !0)
|
|
1832
1837
|
]),
|
|
1833
|
-
t.readOnly ?
|
|
1838
|
+
t.readOnly ? h("", !0) : N((n(), r("div", ks, [
|
|
1834
1839
|
o("input", {
|
|
1835
1840
|
id: "fileUpload-" + t.name,
|
|
1836
1841
|
type: "file",
|
|
@@ -1839,14 +1844,14 @@ function vs(s, e, t, c, i, l) {
|
|
|
1839
1844
|
hidden: "",
|
|
1840
1845
|
multiple: "",
|
|
1841
1846
|
onChange: e[9] || (e[9] = (...a) => l.addPj && l.addPj(...a))
|
|
1842
|
-
}, null, 40,
|
|
1847
|
+
}, null, 40, ws),
|
|
1843
1848
|
o("button", {
|
|
1844
1849
|
id: "add-field-" + t.name,
|
|
1845
1850
|
type: "button",
|
|
1846
1851
|
class: "btn btn-primary rounded-5 fs-7 py-0 me-1",
|
|
1847
1852
|
onClick: e[10] || (e[10] = (...a) => l.clickAddPj && l.clickAddPj(...a))
|
|
1848
1853
|
}, [
|
|
1849
|
-
b(
|
|
1854
|
+
b(c, {
|
|
1850
1855
|
icon: "fa-solid fa-file-circle-plus",
|
|
1851
1856
|
class: "me-1"
|
|
1852
1857
|
}),
|
|
@@ -1854,17 +1859,17 @@ function vs(s, e, t, c, i, l) {
|
|
|
1854
1859
|
A(" Ajouter"),
|
|
1855
1860
|
o("span", { class: "d-none d-md-block" }, " un document")
|
|
1856
1861
|
], -1))
|
|
1857
|
-
], 8,
|
|
1862
|
+
], 8, Cs)
|
|
1858
1863
|
], 512)), [
|
|
1859
|
-
[
|
|
1864
|
+
[ge, i.fileToUpload.length > 0]
|
|
1860
1865
|
]),
|
|
1861
|
-
t.readOnly ?
|
|
1866
|
+
t.readOnly ? h("", !0) : (n(), r("div", _s, [
|
|
1862
1867
|
o("button", {
|
|
1863
1868
|
id: "delete-all-pj-" + t.name,
|
|
1864
1869
|
type: "button",
|
|
1865
1870
|
class: "btn btn-link text-danger hoverable text-decoration-underline p-0",
|
|
1866
1871
|
onClick: e[11] || (e[11] = (...a) => l.deletePj && l.deletePj(...a))
|
|
1867
|
-
}, " Supprimer ", 8,
|
|
1872
|
+
}, " Supprimer ", 8, vs)
|
|
1868
1873
|
]))
|
|
1869
1874
|
])
|
|
1870
1875
|
])) : (n(), r("div", {
|
|
@@ -1887,16 +1892,16 @@ function vs(s, e, t, c, i, l) {
|
|
|
1887
1892
|
onDragenter: e[6] || (e[6] = w((a) => i.fileDragged = !0, ["prevent", "stop"])),
|
|
1888
1893
|
onDragleave: e[7] || (e[7] = w((a) => i.fileDragged = !1, ["prevent", "stop"]))
|
|
1889
1894
|
}, [
|
|
1890
|
-
o("div",
|
|
1891
|
-
b(
|
|
1895
|
+
o("div", ms, [
|
|
1896
|
+
b(c, {
|
|
1892
1897
|
icon: ["fas", "cloud-arrow-up"],
|
|
1893
1898
|
size: "3x",
|
|
1894
1899
|
"beat-fade": i.fileDragged
|
|
1895
1900
|
}, null, 8, ["beat-fade"])
|
|
1896
1901
|
]),
|
|
1897
|
-
o("div",
|
|
1898
|
-
o("div",
|
|
1899
|
-
o("small",
|
|
1902
|
+
o("div", fs, [
|
|
1903
|
+
o("div", hs, p(t.label ?? t.pjName), 1),
|
|
1904
|
+
o("small", gs, p(t.subText), 1),
|
|
1900
1905
|
e[12] || (e[12] = o("hr", { class: "mx-auto w-50 m-0 mb-1" }, null, -1)),
|
|
1901
1906
|
e[13] || (e[13] = o("small", {
|
|
1902
1907
|
class: "d-block text-muted",
|
|
@@ -1918,16 +1923,16 @@ function vs(s, e, t, c, i, l) {
|
|
|
1918
1923
|
required: t.required,
|
|
1919
1924
|
name: "pj" + t.name,
|
|
1920
1925
|
onChange: e[0] || (e[0] = (...a) => l.addPj && l.addPj(...a))
|
|
1921
|
-
}, null, 40,
|
|
1922
|
-
], 42,
|
|
1923
|
-
], 8,
|
|
1926
|
+
}, null, 40, ps)
|
|
1927
|
+
], 42, us)
|
|
1928
|
+
], 8, cs))
|
|
1924
1929
|
])
|
|
1925
1930
|
];
|
|
1926
1931
|
}),
|
|
1927
1932
|
_: 1
|
|
1928
1933
|
}, 8, ["loading"]);
|
|
1929
1934
|
}
|
|
1930
|
-
const
|
|
1935
|
+
const Ks = /* @__PURE__ */ v(rs, [["render", Ps]]), Is = {
|
|
1931
1936
|
name: "SliderSwitch",
|
|
1932
1937
|
props: {
|
|
1933
1938
|
listSection: {
|
|
@@ -1973,9 +1978,9 @@ const Ws = /* @__PURE__ */ C(os, [["render", vs]]), _s = {
|
|
|
1973
1978
|
if (!s) {
|
|
1974
1979
|
const t = this.$el.querySelector("#switch-section-1");
|
|
1975
1980
|
if (!t) return;
|
|
1976
|
-
const
|
|
1977
|
-
if (!
|
|
1978
|
-
|
|
1981
|
+
const u = this.$el.querySelector(".slider");
|
|
1982
|
+
if (!u) return;
|
|
1983
|
+
u.style.width = `${t.offsetWidth}px`, u.style.height = `${t.offsetHeight}px`, u.style.left = `${t.offsetLeft}px`;
|
|
1979
1984
|
return;
|
|
1980
1985
|
}
|
|
1981
1986
|
const e = this.$el.querySelector(".slider");
|
|
@@ -1992,19 +1997,19 @@ const Ws = /* @__PURE__ */ C(os, [["render", vs]]), _s = {
|
|
|
1992
1997
|
e.style.width = t.clientWidth + "px", e.style.left = t.offsetLeft + "px";
|
|
1993
1998
|
}
|
|
1994
1999
|
}
|
|
1995
|
-
},
|
|
2000
|
+
}, Ds = {
|
|
1996
2001
|
class: "d-flex align-items-center justify-content-center mb-2 w-100 p-0",
|
|
1997
2002
|
style: { "border-radius": "1em" }
|
|
1998
|
-
},
|
|
1999
|
-
function
|
|
2000
|
-
return n(), r("div",
|
|
2003
|
+
}, Ms = ["id", "onClick"];
|
|
2004
|
+
function Bs(s, e, t, u, i, l) {
|
|
2005
|
+
return n(), r("div", Ds, [
|
|
2001
2006
|
o("ul", {
|
|
2002
2007
|
id: "switch-section",
|
|
2003
2008
|
class: f(["d-flex justify-content-center rounded-5 p-2 m-0 position-relative w-100", [t.containerClass, { disabled: t.disabled }]])
|
|
2004
2009
|
}, [
|
|
2005
|
-
(n(!0), r(y, null,
|
|
2006
|
-
id: "switch-section-" +
|
|
2007
|
-
key:
|
|
2010
|
+
(n(!0), r(y, null, C(t.listSection, (c) => (n(), r("li", {
|
|
2011
|
+
id: "switch-section-" + c.id,
|
|
2012
|
+
key: c.id,
|
|
2008
2013
|
class: f(["rounded-5 px-4 py-2 w-100 text-center", [
|
|
2009
2014
|
t.itemClass,
|
|
2010
2015
|
{
|
|
@@ -2013,27 +2018,27 @@ function Ds(s, e, t, c, i, l) {
|
|
|
2013
2018
|
}
|
|
2014
2019
|
]]),
|
|
2015
2020
|
role: "button",
|
|
2016
|
-
onClick: (d) => l.switchSection(
|
|
2017
|
-
}, p(
|
|
2021
|
+
onClick: (d) => l.switchSection(c.id)
|
|
2022
|
+
}, p(c.name), 11, Ms))), 128)),
|
|
2018
2023
|
o("span", {
|
|
2019
2024
|
class: f(["slider position-absolute", t.bubbleClass])
|
|
2020
2025
|
}, null, 2)
|
|
2021
2026
|
], 2)
|
|
2022
2027
|
]);
|
|
2023
2028
|
}
|
|
2024
|
-
const
|
|
2029
|
+
const Gs = /* @__PURE__ */ v(Is, [["render", Bs], ["__scopeId", "data-v-02559b82"]]);
|
|
2025
2030
|
export {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
+
Ve as AmsomCard,
|
|
2032
|
+
Rs as AmsomDocumentList,
|
|
2033
|
+
Os as AmsomHorizontalStepper,
|
|
2034
|
+
Ys as AmsomImage,
|
|
2035
|
+
ze as AmsomModal,
|
|
2031
2036
|
Z as AmsomOverlay,
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2037
|
+
Ws as AmsomPagination,
|
|
2038
|
+
Zt as AmsomSkeleton,
|
|
2039
|
+
Gs as AmsomSliderSwitch,
|
|
2040
|
+
Us as AmsomTableDraggable,
|
|
2041
|
+
Ks as AmsomUploadFile,
|
|
2042
|
+
Hs as AmsomVerticalStepper,
|
|
2043
|
+
ze as default
|
|
2039
2044
|
};
|