mgv-backoffice 1.0.1 → 1.0.3
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.
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as l, createElementBlock as i, normalizeClass as h, createVNode as y, unref as f, createElementVNode as
|
|
2
|
-
import { InformationCircleIcon as j, ExclamationCircleIcon as D, CheckCircleIcon as X, ExclamationTriangleIcon as
|
|
3
|
-
var
|
|
1
|
+
import { defineComponent as m, openBlock as l, createElementBlock as i, normalizeClass as h, createVNode as y, unref as f, createElementVNode as o, toDisplayString as p, useSlots as H, computed as E, renderSlot as A, createCommentVNode as d, resolveComponent as G, createBlock as q, withCtx as T, Fragment as $, ref as O, createTextVNode as U, watch as F, renderList as Y } from "vue";
|
|
2
|
+
import { InformationCircleIcon as j, ExclamationCircleIcon as D, CheckCircleIcon as X, ExclamationTriangleIcon as K, XMarkIcon as V, ArrowDownIcon as Q, ArrowUpIcon as Z } from "@heroicons/vue/24/outline";
|
|
3
|
+
var w = /* @__PURE__ */ ((e) => (e.WARNING = "WARNING", e.ERROR = "ERROR", e.SUCCESS = "SUCCESS", e.INFROM = "INFROM", e))(w || {}), b = /* @__PURE__ */ ((e) => (e.NONE = "NONE", e.RED = "RED", e.YELLOW = "YELLOW", e.BLACK = "BLACK", e.GRAY = "GRAY", e.GREEN = "GREEN", e.BLUE = "BLUE", e))(b || {});
|
|
4
4
|
function J(e) {
|
|
5
5
|
let t = "red";
|
|
6
6
|
switch (e) {
|
|
7
|
-
case
|
|
7
|
+
case w.ERROR:
|
|
8
8
|
t = "red";
|
|
9
9
|
break;
|
|
10
|
-
case
|
|
10
|
+
case w.SUCCESS:
|
|
11
11
|
t = "green";
|
|
12
12
|
break;
|
|
13
|
-
case
|
|
13
|
+
case w.INFROM:
|
|
14
14
|
t = "gray";
|
|
15
15
|
break;
|
|
16
|
-
case
|
|
16
|
+
case w.WARNING:
|
|
17
17
|
t = "yellow";
|
|
18
18
|
break;
|
|
19
19
|
}
|
|
@@ -51,7 +51,7 @@ const te = { class: "font-medium pl-1" }, Be = /* @__PURE__ */ m({
|
|
|
51
51
|
title: {
|
|
52
52
|
type: String,
|
|
53
53
|
required: !1,
|
|
54
|
-
default:
|
|
54
|
+
default: w.ERROR
|
|
55
55
|
},
|
|
56
56
|
color: {
|
|
57
57
|
type: Object,
|
|
@@ -69,8 +69,8 @@ const te = { class: "font-medium pl-1" }, Be = /* @__PURE__ */ m({
|
|
|
69
69
|
role: "alert"
|
|
70
70
|
}, [
|
|
71
71
|
y(f(j), { class: "w-6 h-6 text-gray-400" }),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
o("div", null, [
|
|
73
|
+
o("span", te, p(e.title), 1)
|
|
74
74
|
])
|
|
75
75
|
], 2));
|
|
76
76
|
}
|
|
@@ -83,20 +83,20 @@ const te = { class: "font-medium pl-1" }, Be = /* @__PURE__ */ m({
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
setup(e) {
|
|
86
|
-
const t =
|
|
86
|
+
const t = H(), a = E(() => !!t.default), n = e;
|
|
87
87
|
function r() {
|
|
88
|
-
let
|
|
89
|
-
return "font-bold bg-" +
|
|
88
|
+
let s = ee(n.color);
|
|
89
|
+
return "font-bold bg-" + s + "-100 text-" + s + "-800 text-xs mr-2 px-2.5 py-0.5 rounded-full";
|
|
90
90
|
}
|
|
91
|
-
return (
|
|
91
|
+
return (s, c) => a.value ? (l(), i("span", {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: h(r())
|
|
94
94
|
}, [
|
|
95
|
-
A(
|
|
95
|
+
A(s.$slots, "default")
|
|
96
96
|
], 2)) : d("", !0);
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
var v = /* @__PURE__ */ ((e) => (e.RED = "RED", e.BLUE = "BLUE", e.WHITE = "WHITE", e.DARK = "DARK", e.GREEN = "GREEN", e.YELLOW = "YELLOW", e.PURPLE = "PURPLE", e))(v || {}),
|
|
99
|
+
var v = /* @__PURE__ */ ((e) => (e.RED = "RED", e.BLUE = "BLUE", e.WHITE = "WHITE", e.DARK = "DARK", e.GREEN = "GREEN", e.YELLOW = "YELLOW", e.PURPLE = "PURPLE", e))(v || {}), R = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "EXTRA SMALL", e.SMALL = "SMALL", e.BASE = "BASE", e.LARGE = "LARGE", e.EXTRA_LARGE = "EXTRA_LARGE", e))(R || {});
|
|
100
100
|
const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type", "disabled"], ne = { key: 0 }, le = { key: 1 }, ie = { key: 2 }, qe = /* @__PURE__ */ m({
|
|
101
101
|
__name: "BaseButton",
|
|
102
102
|
props: {
|
|
@@ -181,40 +181,40 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
let
|
|
184
|
+
let s = "px-5 py-2.5 mr-2 mb-2 text-sm";
|
|
185
185
|
switch (t.size) {
|
|
186
|
-
case
|
|
187
|
-
|
|
186
|
+
case R.EXTRA_SMALL: {
|
|
187
|
+
s = "px-3 py-2 text-xs";
|
|
188
188
|
break;
|
|
189
189
|
}
|
|
190
|
-
case
|
|
191
|
-
|
|
190
|
+
case R.SMALL: {
|
|
191
|
+
s = "px-3 py-2 text-sm";
|
|
192
192
|
break;
|
|
193
193
|
}
|
|
194
|
-
case
|
|
195
|
-
|
|
194
|
+
case R.BASE: {
|
|
195
|
+
s = "px-5 py-2.5 text-sm";
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
|
-
case
|
|
199
|
-
|
|
198
|
+
case R.LARGE: {
|
|
199
|
+
s = "px-5 py-3 text-base";
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
|
-
case
|
|
203
|
-
|
|
202
|
+
case R.EXTRA_LARGE: {
|
|
203
|
+
s = "px-6 py-3.5 text-base";
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
let c = "rounded-lg";
|
|
208
|
-
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"), n + " " +
|
|
208
|
+
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"), n + " " + s + " " + r + " " + "font-medium" + " " + c;
|
|
209
209
|
}
|
|
210
210
|
return (n, r) => {
|
|
211
|
-
const
|
|
212
|
-
return e.to ? (l(), q(
|
|
211
|
+
const s = G("router-link");
|
|
212
|
+
return e.to ? (l(), q(s, {
|
|
213
213
|
key: 0,
|
|
214
214
|
to: e.to
|
|
215
215
|
}, {
|
|
216
216
|
default: T(() => [
|
|
217
|
-
|
|
217
|
+
o("button", {
|
|
218
218
|
type: t.type,
|
|
219
219
|
class: h(a()),
|
|
220
220
|
disabled: e.isDisable
|
|
@@ -232,7 +232,7 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
232
232
|
disabled: e.isDisable
|
|
233
233
|
}, [
|
|
234
234
|
e.isLoading ? (l(), i("div", ne, [...r[0] || (r[0] = [
|
|
235
|
-
|
|
235
|
+
o("svg", {
|
|
236
236
|
"aria-hidden": "true",
|
|
237
237
|
role: "status",
|
|
238
238
|
class: "inline w-4 h-4 me-3 text-white animate-spin",
|
|
@@ -240,11 +240,11 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
240
240
|
fill: "none",
|
|
241
241
|
xmlns: "http://www.w3.org/2000/svg"
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
o("path", {
|
|
244
244
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
245
245
|
fill: "#E5E7EB"
|
|
246
246
|
}),
|
|
247
|
-
|
|
247
|
+
o("path", {
|
|
248
248
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
249
249
|
fill: "currentColor"
|
|
250
250
|
})
|
|
@@ -257,7 +257,7 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
|
-
var
|
|
260
|
+
var _ = /* @__PURE__ */ ((e) => (e.BASE = "BASE", e.BASE_SHORTER = "BASE_SHORTER", e.SQUARE = "SQUARE", e))(_ || {});
|
|
261
261
|
const ce = {
|
|
262
262
|
key: 0,
|
|
263
263
|
class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"
|
|
@@ -273,25 +273,25 @@ const ce = {
|
|
|
273
273
|
mode: {
|
|
274
274
|
type: String,
|
|
275
275
|
required: !1,
|
|
276
|
-
default:
|
|
276
|
+
default: _.BASE
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
setup(e) {
|
|
280
280
|
return (t, a) => (l(), i($, null, [
|
|
281
|
-
e.mode === f(
|
|
282
|
-
e.mode === f(
|
|
283
|
-
e.mode === f(
|
|
281
|
+
e.mode === f(_).BASE ? (l(), i("hr", ce)) : d("", !0),
|
|
282
|
+
e.mode === f(_).BASE_SHORTER ? (l(), i("hr", ue)) : d("", !0),
|
|
283
|
+
e.mode === f(_).SQUARE ? (l(), i("hr", de)) : d("", !0)
|
|
284
284
|
], 64));
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
|
-
var
|
|
287
|
+
var C = /* @__PURE__ */ ((e) => (e.SMALL = "SMALL", e.MEDIUM = "MEDIUM", e.LARGE = "LARGE", e))(C || {});
|
|
288
288
|
const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
289
289
|
__name: "BaseLogo",
|
|
290
290
|
props: {
|
|
291
291
|
size: {
|
|
292
292
|
type: String,
|
|
293
293
|
required: !1,
|
|
294
|
-
default:
|
|
294
|
+
default: C.MEDIUM
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
setup(e) {
|
|
@@ -299,15 +299,15 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
299
299
|
function a() {
|
|
300
300
|
let n = "";
|
|
301
301
|
switch (t.size) {
|
|
302
|
-
case
|
|
302
|
+
case C.SMALL: {
|
|
303
303
|
n = "50px";
|
|
304
304
|
break;
|
|
305
305
|
}
|
|
306
|
-
case
|
|
306
|
+
case C.MEDIUM: {
|
|
307
307
|
n = "100px";
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
|
-
case
|
|
310
|
+
case C.LARGE: {
|
|
311
311
|
n = "150px";
|
|
312
312
|
break;
|
|
313
313
|
}
|
|
@@ -315,8 +315,8 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
315
315
|
return n;
|
|
316
316
|
}
|
|
317
317
|
return (n, r) => {
|
|
318
|
-
const
|
|
319
|
-
return l(), q(
|
|
318
|
+
const s = G("router-link");
|
|
319
|
+
return l(), q(s, {
|
|
320
320
|
to: "/",
|
|
321
321
|
class: "flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"
|
|
322
322
|
}, {
|
|
@@ -328,17 +328,17 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
328
328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
329
329
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
330
330
|
}, [...r[0] || (r[0] = [
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
o("linearGradient", { id: "a" }, [
|
|
332
|
+
o("stop", {
|
|
333
333
|
offset: ".085",
|
|
334
334
|
"stop-color": "#469e43"
|
|
335
335
|
}),
|
|
336
|
-
|
|
336
|
+
o("stop", {
|
|
337
337
|
offset: "1",
|
|
338
338
|
"stop-color": "#132d13"
|
|
339
339
|
})
|
|
340
340
|
], -1),
|
|
341
|
-
|
|
341
|
+
o("linearGradient", {
|
|
342
342
|
id: "b",
|
|
343
343
|
gradientUnits: "userSpaceOnUse",
|
|
344
344
|
x1: "64.863",
|
|
@@ -347,7 +347,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
347
347
|
y1: "288.291",
|
|
348
348
|
y2: "369.4"
|
|
349
349
|
}, null, -1),
|
|
350
|
-
|
|
350
|
+
o("linearGradient", {
|
|
351
351
|
id: "c",
|
|
352
352
|
gradientUnits: "userSpaceOnUse",
|
|
353
353
|
x1: "138.367",
|
|
@@ -356,7 +356,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
356
356
|
y1: "308.454",
|
|
357
357
|
y2: "370.601"
|
|
358
358
|
}, null, -1),
|
|
359
|
-
|
|
359
|
+
o("linearGradient", {
|
|
360
360
|
id: "d",
|
|
361
361
|
gradientUnits: "userSpaceOnUse",
|
|
362
362
|
x1: "195.475",
|
|
@@ -365,7 +365,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
365
365
|
y1: "288.291",
|
|
366
366
|
y2: "369.85"
|
|
367
367
|
}, null, -1),
|
|
368
|
-
|
|
368
|
+
o("linearGradient", {
|
|
369
369
|
id: "e",
|
|
370
370
|
gradientUnits: "userSpaceOnUse",
|
|
371
371
|
x1: "249.634",
|
|
@@ -374,7 +374,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
374
374
|
y1: "307.312",
|
|
375
375
|
y2: "369.511"
|
|
376
376
|
}, null, -1),
|
|
377
|
-
|
|
377
|
+
o("linearGradient", {
|
|
378
378
|
id: "f",
|
|
379
379
|
gradientUnits: "userSpaceOnUse",
|
|
380
380
|
x1: "302.884",
|
|
@@ -383,7 +383,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
383
383
|
y1: "288.291",
|
|
384
384
|
y2: "367.857"
|
|
385
385
|
}, null, -1),
|
|
386
|
-
|
|
386
|
+
o("linearGradient", {
|
|
387
387
|
id: "g",
|
|
388
388
|
gradientUnits: "userSpaceOnUse",
|
|
389
389
|
x1: "354.118",
|
|
@@ -392,7 +392,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
392
392
|
y1: "307.312",
|
|
393
393
|
y2: "369.511"
|
|
394
394
|
}, null, -1),
|
|
395
|
-
|
|
395
|
+
o("linearGradient", {
|
|
396
396
|
id: "h",
|
|
397
397
|
gradientUnits: "userSpaceOnUse",
|
|
398
398
|
x1: "428.02",
|
|
@@ -401,7 +401,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
401
401
|
y1: "306.156",
|
|
402
402
|
y2: "367.742"
|
|
403
403
|
}, null, -1),
|
|
404
|
-
|
|
404
|
+
o("linearGradient", {
|
|
405
405
|
id: "i",
|
|
406
406
|
gradientUnits: "userSpaceOnUse",
|
|
407
407
|
x1: "502.066",
|
|
@@ -410,7 +410,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
410
410
|
y1: "288.291",
|
|
411
411
|
y2: "369.4"
|
|
412
412
|
}, null, -1),
|
|
413
|
-
|
|
413
|
+
o("linearGradient", {
|
|
414
414
|
id: "j",
|
|
415
415
|
gradientUnits: "userSpaceOnUse",
|
|
416
416
|
x1: "283.264",
|
|
@@ -419,7 +419,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
419
419
|
y1: "131.629",
|
|
420
420
|
y2: "232.559"
|
|
421
421
|
}, null, -1),
|
|
422
|
-
|
|
422
|
+
o("linearGradient", {
|
|
423
423
|
id: "k",
|
|
424
424
|
gradientUnits: "userSpaceOnUse",
|
|
425
425
|
x1: "283.46",
|
|
@@ -427,53 +427,53 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
427
427
|
y1: "202.275",
|
|
428
428
|
y2: "183.785"
|
|
429
429
|
}, [
|
|
430
|
-
|
|
430
|
+
o("stop", {
|
|
431
431
|
offset: "0",
|
|
432
432
|
"stop-color": "#969799",
|
|
433
433
|
"stop-opacity": "0"
|
|
434
434
|
}),
|
|
435
|
-
|
|
435
|
+
o("stop", {
|
|
436
436
|
offset: "1",
|
|
437
437
|
"stop-color": "#808183"
|
|
438
438
|
})
|
|
439
439
|
], -1),
|
|
440
|
-
|
|
440
|
+
o("path", {
|
|
441
441
|
d: "m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",
|
|
442
442
|
fill: "url(#b)"
|
|
443
443
|
}, null, -1),
|
|
444
|
-
|
|
444
|
+
o("path", {
|
|
445
445
|
d: "m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",
|
|
446
446
|
fill: "url(#c)"
|
|
447
447
|
}, null, -1),
|
|
448
|
-
|
|
448
|
+
o("path", {
|
|
449
449
|
d: "m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",
|
|
450
450
|
fill: "url(#d)"
|
|
451
451
|
}, null, -1),
|
|
452
|
-
|
|
452
|
+
o("path", {
|
|
453
453
|
d: "m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
454
454
|
fill: "url(#e)"
|
|
455
455
|
}, null, -1),
|
|
456
|
-
|
|
456
|
+
o("path", {
|
|
457
457
|
d: "m296.4 288.3h13v79.6h-13z",
|
|
458
458
|
fill: "url(#f)"
|
|
459
459
|
}, null, -1),
|
|
460
|
-
|
|
460
|
+
o("path", {
|
|
461
461
|
d: "m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",
|
|
462
462
|
fill: "url(#g)"
|
|
463
463
|
}, null, -1),
|
|
464
|
-
|
|
464
|
+
o("path", {
|
|
465
465
|
d: "m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",
|
|
466
466
|
fill: "url(#h)"
|
|
467
467
|
}, null, -1),
|
|
468
|
-
|
|
468
|
+
o("path", {
|
|
469
469
|
d: "m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",
|
|
470
470
|
fill: "url(#i)"
|
|
471
471
|
}, null, -1),
|
|
472
|
-
|
|
472
|
+
o("path", {
|
|
473
473
|
d: "m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",
|
|
474
474
|
fill: "url(#j)"
|
|
475
475
|
}, null, -1),
|
|
476
|
-
|
|
476
|
+
o("path", {
|
|
477
477
|
d: "m281.7 183.8h3.6v18.5h-3.6z",
|
|
478
478
|
fill: "url(#k)"
|
|
479
479
|
}, null, -1)
|
|
@@ -515,15 +515,15 @@ const ge = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
515
515
|
return (t, a) => {
|
|
516
516
|
const n = G("base-button");
|
|
517
517
|
return l(), i($, null, [
|
|
518
|
-
|
|
518
|
+
o("div", {
|
|
519
519
|
class: "outside",
|
|
520
520
|
onClick: a[0] || (a[0] = (r) => t.$emit("closeModal"))
|
|
521
521
|
}),
|
|
522
|
-
|
|
522
|
+
o("div", ge, [
|
|
523
523
|
e.mode === f(z).DELETE ? (l(), i("div", pe, [
|
|
524
524
|
y(f(D), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
o("h3", be, " Are you sure you want to delete this " + p(e.title) + "? ", 1),
|
|
526
|
+
o("div", he, [
|
|
527
527
|
y(n, {
|
|
528
528
|
color: f(v).RED,
|
|
529
529
|
onClick: a[1] || (a[1] = (r) => t.$emit("confirmModal")),
|
|
@@ -540,12 +540,12 @@ const ge = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
540
540
|
], 64);
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
}),
|
|
543
|
+
}), I = (e, t) => {
|
|
544
544
|
const a = e.__vccOpts || e;
|
|
545
545
|
for (const [n, r] of t)
|
|
546
546
|
a[n] = r;
|
|
547
547
|
return a;
|
|
548
|
-
}, Pe = /* @__PURE__ */
|
|
548
|
+
}, Pe = /* @__PURE__ */ I(ye, [["__scopeId", "data-v-492169b3"]]), We = /* @__PURE__ */ m({
|
|
549
549
|
__name: "BaseRow",
|
|
550
550
|
props: {
|
|
551
551
|
bgColor: {
|
|
@@ -565,36 +565,19 @@ const ge = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
565
565
|
A(n.$slots, "default")
|
|
566
566
|
], 2));
|
|
567
567
|
}
|
|
568
|
-
}), me = {}, xe = { class: "
|
|
568
|
+
}), me = {}, xe = { class: "w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin" };
|
|
569
569
|
function ve(e, t) {
|
|
570
|
-
return l(), i("div", xe
|
|
571
|
-
s("svg", {
|
|
572
|
-
"aria-hidden": "true",
|
|
573
|
-
class: "inline w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",
|
|
574
|
-
viewBox: "0 0 100 101",
|
|
575
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
576
|
-
}, [
|
|
577
|
-
s("path", {
|
|
578
|
-
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
579
|
-
fill: "currentColor"
|
|
580
|
-
}),
|
|
581
|
-
s("path", {
|
|
582
|
-
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
583
|
-
fill: "currentFill"
|
|
584
|
-
})
|
|
585
|
-
], -1),
|
|
586
|
-
s("span", { class: "sr-only" }, "Loading...", -1)
|
|
587
|
-
])]);
|
|
570
|
+
return l(), i("div", xe);
|
|
588
571
|
}
|
|
589
|
-
const
|
|
590
|
-
var
|
|
591
|
-
const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800" },
|
|
572
|
+
const He = /* @__PURE__ */ I(me, [["render", ve]]);
|
|
573
|
+
var S = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.WARNING = "WARNING", e.ERROR = "ERROR", e))(S || {}), L = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "TOP_LEFT", e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e.BOTTOM_RIGHT = "BOTTOM_RIGHT", e))(L || {});
|
|
574
|
+
const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800" }, Ee = { class: "ml-3 text-sm font-normal" }, Se = {
|
|
592
575
|
key: 3,
|
|
593
576
|
type: "button",
|
|
594
577
|
class: "ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",
|
|
595
578
|
"data-dismiss-target": "#toast-danger",
|
|
596
579
|
"aria-label": "Close"
|
|
597
|
-
},
|
|
580
|
+
}, Fe = /* @__PURE__ */ m({
|
|
598
581
|
__name: "BaseToast",
|
|
599
582
|
props: {
|
|
600
583
|
mode: {
|
|
@@ -621,13 +604,13 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
621
604
|
function a() {
|
|
622
605
|
let c = "";
|
|
623
606
|
switch (t.mode) {
|
|
624
|
-
case
|
|
607
|
+
case S.ERROR:
|
|
625
608
|
c = "text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";
|
|
626
609
|
break;
|
|
627
|
-
case
|
|
610
|
+
case S.SUCCESS:
|
|
628
611
|
c = "text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";
|
|
629
612
|
break;
|
|
630
|
-
case
|
|
613
|
+
case S.WARNING:
|
|
631
614
|
c = "text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";
|
|
632
615
|
break;
|
|
633
616
|
}
|
|
@@ -652,39 +635,39 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
652
635
|
return "fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg " + c + " space-x";
|
|
653
636
|
}
|
|
654
637
|
const r = O(!0);
|
|
655
|
-
function
|
|
638
|
+
function s() {
|
|
656
639
|
setTimeout(() => r.value = !1, 1e6);
|
|
657
640
|
}
|
|
658
|
-
return
|
|
641
|
+
return s(), (c, g) => r.value ? (l(), i("div", {
|
|
659
642
|
key: 0,
|
|
660
643
|
id: "toast-top-right",
|
|
661
644
|
class: h(n()),
|
|
662
645
|
role: "alert"
|
|
663
646
|
}, [
|
|
664
|
-
|
|
665
|
-
e.mode == f(
|
|
647
|
+
o("div", ke, [
|
|
648
|
+
e.mode == f(S).ERROR ? (l(), i("div", {
|
|
666
649
|
key: 0,
|
|
667
650
|
class: h(a())
|
|
668
651
|
}, [
|
|
669
652
|
y(f(D), { class: "h-6 w-6 text-red-500" }),
|
|
670
|
-
g[1] || (g[1] =
|
|
671
|
-
], 2)) : e.mode == f(
|
|
653
|
+
g[1] || (g[1] = o("span", { class: "sr-only" }, "Error icon", -1))
|
|
654
|
+
], 2)) : e.mode == f(S).SUCCESS ? (l(), i("div", {
|
|
672
655
|
key: 1,
|
|
673
656
|
class: h(a())
|
|
674
657
|
}, [
|
|
675
658
|
y(f(X), { class: "h-6 w-6 text-green-500" }),
|
|
676
|
-
g[2] || (g[2] =
|
|
677
|
-
], 2)) : e.mode == f(
|
|
659
|
+
g[2] || (g[2] = o("span", { class: "sr-only" }, "Check icon", -1))
|
|
660
|
+
], 2)) : e.mode == f(S).WARNING ? (l(), i("div", {
|
|
678
661
|
key: 2,
|
|
679
662
|
class: h(a())
|
|
680
663
|
}, [
|
|
681
|
-
y(f(
|
|
682
|
-
g[3] || (g[3] =
|
|
664
|
+
y(f(K), { class: "h-6 w-6 text-yellow-500" }),
|
|
665
|
+
g[3] || (g[3] = o("span", { class: "sr-only" }, "Warning icon", -1))
|
|
683
666
|
], 2)) : d("", !0),
|
|
684
|
-
|
|
685
|
-
e.hasCloseIcon ? (l(), i("button",
|
|
686
|
-
g[4] || (g[4] =
|
|
687
|
-
y(f(
|
|
667
|
+
o("div", Ee, p(e.description), 1),
|
|
668
|
+
e.hasCloseIcon ? (l(), i("button", Se, [
|
|
669
|
+
g[4] || (g[4] = o("span", { class: "sr-only" }, "Close", -1)),
|
|
670
|
+
y(f(V), {
|
|
688
671
|
class: "h-6 w-6 text-gray-500 cursor-pointer",
|
|
689
672
|
onClick: g[0] || (g[0] = (u) => r.value = !r.value)
|
|
690
673
|
})
|
|
@@ -692,7 +675,7 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
692
675
|
])
|
|
693
676
|
], 2)) : d("", !0);
|
|
694
677
|
}
|
|
695
|
-
}),
|
|
678
|
+
}), Re = { class: "w-13" }, Ye = /* @__PURE__ */ m({
|
|
696
679
|
__name: "ColoredSquares",
|
|
697
680
|
props: {
|
|
698
681
|
color: {
|
|
@@ -711,48 +694,48 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
711
694
|
"bg-yellow-300",
|
|
712
695
|
"bg-purple-300",
|
|
713
696
|
"bg-pink-300"
|
|
714
|
-
], n =
|
|
697
|
+
], n = E(() => a[Math.floor(Math.random() * a.length)]);
|
|
715
698
|
function r() {
|
|
716
|
-
let
|
|
699
|
+
let s = "gray";
|
|
717
700
|
switch (t.color) {
|
|
718
701
|
case b.GREEN: {
|
|
719
|
-
|
|
702
|
+
s = "green";
|
|
720
703
|
break;
|
|
721
704
|
}
|
|
722
705
|
case b.RED: {
|
|
723
|
-
|
|
706
|
+
s = "red";
|
|
724
707
|
break;
|
|
725
708
|
}
|
|
726
709
|
case b.BLUE: {
|
|
727
|
-
|
|
710
|
+
s = "blue";
|
|
728
711
|
break;
|
|
729
712
|
}
|
|
730
713
|
case b.YELLOW: {
|
|
731
|
-
|
|
714
|
+
s = "yellow";
|
|
732
715
|
break;
|
|
733
716
|
}
|
|
734
717
|
case b.NONE: {
|
|
735
|
-
|
|
718
|
+
s = "";
|
|
736
719
|
break;
|
|
737
720
|
}
|
|
738
721
|
}
|
|
739
|
-
return "font-bold bg-" +
|
|
722
|
+
return "font-bold bg-" + s + "-100 text-" + s + "-800 text-xs mr-2 px-2.5 py-0.5 rounded-full";
|
|
740
723
|
}
|
|
741
|
-
return (
|
|
742
|
-
|
|
724
|
+
return (s, c) => (l(), i("div", Re, [
|
|
725
|
+
o("div", {
|
|
743
726
|
class: h(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", r()])
|
|
744
727
|
}, [
|
|
745
|
-
A(
|
|
746
|
-
|
|
728
|
+
A(s.$slots, "default"),
|
|
729
|
+
o("div", {
|
|
747
730
|
class: h(["absolute bottom-0 left-0 h-1 w-full", n.value])
|
|
748
731
|
}, null, 2)
|
|
749
732
|
], 2)
|
|
750
733
|
]));
|
|
751
734
|
}
|
|
752
|
-
}),
|
|
735
|
+
}), we = {
|
|
753
736
|
key: 0,
|
|
754
737
|
class: "font-bold text-green-800"
|
|
755
|
-
},
|
|
738
|
+
}, _e = { key: 0 }, Ce = { key: 0 }, Le = "font-bold", je = /* @__PURE__ */ m({
|
|
756
739
|
__name: "EuroAmount",
|
|
757
740
|
props: {
|
|
758
741
|
amount: {
|
|
@@ -771,18 +754,18 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
771
754
|
}
|
|
772
755
|
},
|
|
773
756
|
setup(e) {
|
|
774
|
-
const t = e, a =
|
|
757
|
+
const t = e, a = E(() => t.amount !== null && t.amount !== void 0), n = E(() => a.value && t.amount < 0), r = E(() => t.beforeAmount === null || t.beforeAmount === void 0 ? !1 : t.amount < t.beforeAmount), s = E(() => n.value || r.value), c = E(() => !n.value && !r.value && !(t.beforeAmount === null || t.beforeAmount === void 0));
|
|
775
758
|
return (g, u) => (l(), i($, null, [
|
|
776
|
-
a.value && c.value ? (l(), i("span",
|
|
759
|
+
a.value && c.value ? (l(), i("span", we, [
|
|
777
760
|
U(p(e.amount) + " ", 1),
|
|
778
|
-
e.showCurrency ? (l(), i("span",
|
|
761
|
+
e.showCurrency ? (l(), i("span", _e, "€")) : d("", !0)
|
|
779
762
|
])) : d("", !0),
|
|
780
763
|
a.value && !c.value ? (l(), i("span", {
|
|
781
764
|
key: 1,
|
|
782
|
-
class: h([Le,
|
|
765
|
+
class: h([Le, s.value ? "text-red-800" : "text-gray-800"])
|
|
783
766
|
}, [
|
|
784
767
|
U(p(e.amount) + " ", 1),
|
|
785
|
-
e.showCurrency ? (l(), i("span",
|
|
768
|
+
e.showCurrency ? (l(), i("span", Ce, "€")) : d("", !0)
|
|
786
769
|
], 2)) : d("", !0)
|
|
787
770
|
], 64));
|
|
788
771
|
}
|
|
@@ -804,40 +787,40 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
804
787
|
},
|
|
805
788
|
emits: ["page-changed"],
|
|
806
789
|
setup(e, { emit: t }) {
|
|
807
|
-
const a = e, n = O(1), r = O(0),
|
|
790
|
+
const a = e, n = O(1), r = O(0), s = O([]), c = t;
|
|
808
791
|
function g(u) {
|
|
809
792
|
if (u !== n.value && u >= 1 && u <= r.value && (n.value = u), r.value > 5) {
|
|
810
|
-
|
|
793
|
+
s.value = [], u - 3 > 0 && (s.value.push(1), s.value.push(0));
|
|
811
794
|
for (let x = 2; x >= 1; x--) {
|
|
812
795
|
let N = u - x;
|
|
813
|
-
N > 0 &&
|
|
796
|
+
N > 0 && s.value.push(N);
|
|
814
797
|
}
|
|
815
|
-
|
|
816
|
-
let k = r.value - u,
|
|
817
|
-
if (
|
|
798
|
+
s.value.push(n.value);
|
|
799
|
+
let k = r.value - u, M = k > 2, W = 2;
|
|
800
|
+
if (M) {
|
|
818
801
|
for (let x = 1; x <= W; x++)
|
|
819
|
-
|
|
820
|
-
|
|
802
|
+
s.value.push(u + x);
|
|
803
|
+
s.value.push(0), s.value.push(r.value);
|
|
821
804
|
} else
|
|
822
805
|
for (let x = 1; x <= k; x++)
|
|
823
|
-
|
|
806
|
+
s.value.push(u + x);
|
|
824
807
|
}
|
|
825
808
|
c("page-changed", u);
|
|
826
809
|
}
|
|
827
|
-
return
|
|
828
|
-
if (r.value = Math.ceil(a.totalItems / a.itemsPerPage),
|
|
810
|
+
return F(() => a.totalItems, () => {
|
|
811
|
+
if (r.value = Math.ceil(a.totalItems / a.itemsPerPage), s.value = [], r.value > 5) {
|
|
829
812
|
for (let u = 1; u < 5; u++)
|
|
830
|
-
|
|
831
|
-
|
|
813
|
+
s.value.push(u);
|
|
814
|
+
s.value.push(0), s.value.push(r.value);
|
|
832
815
|
} else
|
|
833
816
|
for (let u = 1; u <= r.value; u++)
|
|
834
|
-
|
|
817
|
+
s.value.push(u);
|
|
835
818
|
}), (u, P) => (l(), i("div", null, [
|
|
836
|
-
|
|
837
|
-
(l(!0), i($, null, Y(
|
|
819
|
+
o("ul", null, [
|
|
820
|
+
(l(!0), i($, null, Y(s.value, (k) => (l(), i("li", { key: k }, [
|
|
838
821
|
k !== 0 ? (l(), i("a", {
|
|
839
822
|
key: 0,
|
|
840
|
-
onClick: (
|
|
823
|
+
onClick: (M) => g(k),
|
|
841
824
|
class: h({ active: k === n.value })
|
|
842
825
|
}, p(k), 11, Ae)) : d("", !0),
|
|
843
826
|
k === 0 ? (l(), i("span", Oe, "...")) : d("", !0)
|
|
@@ -845,13 +828,13 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
845
828
|
])
|
|
846
829
|
]));
|
|
847
830
|
}
|
|
848
|
-
}), Xe = /* @__PURE__ */
|
|
831
|
+
}), Xe = /* @__PURE__ */ I(Te, [["__scopeId", "data-v-248e09af"]]), Ue = { key: 0 }, $e = {
|
|
849
832
|
key: 0,
|
|
850
833
|
class: "flex items-center space-x-2"
|
|
851
834
|
}, Ge = {
|
|
852
835
|
key: 1,
|
|
853
836
|
class: "flex items-center space-x-2"
|
|
854
|
-
},
|
|
837
|
+
}, Ke = /* @__PURE__ */ m({
|
|
855
838
|
__name: "TrendArrow",
|
|
856
839
|
props: {
|
|
857
840
|
number: {
|
|
@@ -864,7 +847,7 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
864
847
|
}
|
|
865
848
|
},
|
|
866
849
|
setup(e) {
|
|
867
|
-
const t = e, a =
|
|
850
|
+
const t = e, a = E(() => t.number !== null && t.number !== void 0 && t.number < 0);
|
|
868
851
|
return (n, r) => e.number ? (l(), i("div", Ue, [
|
|
869
852
|
a.value ? (l(), i("span", $e, [
|
|
870
853
|
y(B, {
|
|
@@ -875,7 +858,7 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
875
858
|
]),
|
|
876
859
|
_: 1
|
|
877
860
|
}, 8, ["color"]),
|
|
878
|
-
y(f(
|
|
861
|
+
y(f(Q), { class: "h-5 w-5 text-red-500" })
|
|
879
862
|
])) : (l(), i("span", Ge, [
|
|
880
863
|
y(B, {
|
|
881
864
|
color: f(b).GREEN
|
|
@@ -885,36 +868,36 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
885
868
|
]),
|
|
886
869
|
_: 1
|
|
887
870
|
}, 8, ["color"]),
|
|
888
|
-
y(f(
|
|
871
|
+
y(f(Z), { class: "h-5 w-5 text-green-500" })
|
|
889
872
|
]))
|
|
890
873
|
])) : d("", !0);
|
|
891
874
|
}
|
|
892
875
|
});
|
|
893
|
-
var
|
|
876
|
+
var Ie = /* @__PURE__ */ ((e) => (e.WIN = "WIN", e.LOSE = "LOSE", e))(Ie || {});
|
|
894
877
|
export {
|
|
895
|
-
|
|
878
|
+
w as AlertEnum,
|
|
896
879
|
Be as BaseAlert,
|
|
897
880
|
B as BaseBadge,
|
|
898
|
-
|
|
881
|
+
Ie as BaseBadgeEnum,
|
|
899
882
|
qe as BaseButton,
|
|
900
883
|
v as BaseButtonEnum,
|
|
901
|
-
|
|
884
|
+
R as BaseButtonSizeEnum,
|
|
902
885
|
De as BaseLine,
|
|
903
|
-
|
|
886
|
+
C as BaseLoginEnum,
|
|
904
887
|
ze as BaseLogo,
|
|
905
888
|
Pe as BaseModal,
|
|
906
889
|
z as BaseModalEnum,
|
|
907
890
|
We as BaseRow,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
891
|
+
He as BaseSpinner,
|
|
892
|
+
Fe as BaseToast,
|
|
893
|
+
S as BaseToastEnum,
|
|
911
894
|
Ye as ColoredSquares,
|
|
912
895
|
b as ColorsEnums,
|
|
913
896
|
je as EuroAmount,
|
|
914
|
-
|
|
897
|
+
_ as LineEnum,
|
|
915
898
|
Xe as Pagination,
|
|
916
899
|
L as PositioningEnum,
|
|
917
|
-
|
|
900
|
+
Ke as TrendArrow,
|
|
918
901
|
J as getBaseColor,
|
|
919
902
|
ee as getBaseColorOf
|
|
920
903
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@heroicons/vue/24/outline")):typeof define=="function"&&define.amd?define(["exports","vue","@heroicons/vue/24/outline"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.UiLib={},s.Vue,s.HeroiconsOutline))})(this,function(s,e,E){"use strict";var y=(t=>(t.WARNING="WARNING",t.ERROR="ERROR",t.SUCCESS="SUCCESS",t.INFROM="INFROM",t))(y||{}),d=(t=>(t.NONE="NONE",t.RED="RED",t.YELLOW="YELLOW",t.BLACK="BLACK",t.GRAY="GRAY",t.GREEN="GREEN",t.BLUE="BLUE",t))(d||{});function S(t){let r="red";switch(t){case y.ERROR:r="red";break;case y.SUCCESS:r="green";break;case y.INFROM:r="gray";break;case y.WARNING:r="yellow";break}return r}function w(t){let r="red";switch(t){case d.GREEN:{r="green";break}case d.RED:{r="red";break}case d.BLUE:{r="blue";break}case d.YELLOW:{r="yellow";break}case d.NONE:{r="";break}}return r}const L={class:"font-medium pl-1"},A=e.defineComponent({__name:"BaseAlert",props:{title:{type:String,required:!1,default:y.ERROR},color:{type:Object,required:!1}},setup(t){const r=t;function l(){let a=S(r.color);return"flex items-center p-4 mb-4 text-sm text-"+a+"-800 border border-"+a+"-300 rounded-lg bg-"+a+"-50 dark:bg-gray-800 dark:text-"+a+"-400 dark:border-"+a+"-800"}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l()),role:"alert"},[e.createVNode(e.unref(E.InformationCircleIcon),{class:"w-6 h-6 text-gray-400"}),e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(t.title),1)])],2))}}),x=e.defineComponent({__name:"BaseBadge",props:{color:{type:String,required:!1}},setup(t){const r=e.useSlots(),l=e.computed(()=>!!r.default),a=t;function o(){let n=w(a.color);return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o())},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0)}});var f=(t=>(t.RED="RED",t.BLUE="BLUE",t.WHITE="WHITE",t.DARK="DARK",t.GREEN="GREEN",t.YELLOW="YELLOW",t.PURPLE="PURPLE",t))(f||{}),b=(t=>(t.EXTRA_SMALL="EXTRA SMALL",t.SMALL="SMALL",t.BASE="BASE",t.LARGE="LARGE",t.EXTRA_LARGE="EXTRA_LARGE",t))(b||{});const O=["type","disabled"],T={key:0},U={key:1},$=["type","disabled"],M={key:0},D={key:1},G={key:2},I=e.defineComponent({__name:"BaseButton",props:{description:{type:String,required:!0},color:{type:String,required:!1,default:f.BLUE},to:{type:String,required:!1},type:{type:String,required:!1,default:"button"},icon:{type:String,required:!1},iconSize:{type:String,required:!1},iconLeft:{type:String,required:!1},isRounded:{type:Boolean,required:!1},isDisable:{type:Boolean,required:!1},size:{type:String,required:!1},isLoading:{type:Boolean,required:!1}},setup(t){const r=t;function l(){let a="inline-flex items-center",o;switch(r.color){case f.BLUE:{o="focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300",r.isDisable&&(o+=" bg-blue-400");break}case f.WHITE:{o="focus:outline-none text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200",r.isDisable&&(o+=" bg-gray-400");break}case f.DARK:{o="focus:outline-none text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 ",r.isDisable&&(o+=" bg-gray-400");break}case f.GREEN:{o="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300",r.isDisable&&(o+=" bg-green-400");break}case f.RED:{o="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300",r.isDisable&&(o+=" bg-red-400");break}case f.YELLOW:{o="focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300",r.isDisable&&(o+=" bg-yellow-400");break}case f.PURPLE:{o="focus:outline-none text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 px-5 py-2.5 mb-2",r.isDisable&&(o+=" bg-purple-400");break}}let n="px-5 py-2.5 mr-2 mb-2 text-sm";switch(r.size){case b.EXTRA_SMALL:{n="px-3 py-2 text-xs";break}case b.SMALL:{n="px-3 py-2 text-sm";break}case b.BASE:{n="px-5 py-2.5 text-sm";break}case b.LARGE:{n="px-5 py-3 text-base";break}case b.EXTRA_LARGE:{n="px-6 py-3.5 text-base";break}}let c="rounded-lg";return r.isRounded&&(c="rounded-full"),r.isDisable&&(o+=" cursor-not-allowed"),a+" "+n+" "+o+" "+"font-medium"+" "+c}return(a,o)=>{const n=e.resolveComponent("router-link");return t.to?(e.openBlock(),e.createBlock(n,{key:0,to:t.to},{default:e.withCtx(()=>[e.createElementVNode("button",{type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,O)]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("button",{key:1,type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.isLoading?(e.openBlock(),e.createElementBlock("div",M,[...o[0]||(o[0]=[e.createElementVNode("svg",{"aria-hidden":"true",role:"status",class:"inline w-4 h-4 me-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})],-1)])])):e.createCommentVNode("",!0),t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",G,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,$))}}});var h=(t=>(t.BASE="BASE",t.BASE_SHORTER="BASE_SHORTER",t.SQUARE="SQUARE",t))(h||{});const z={key:0,class:"h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"},q={key:1,class:"w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"},P={key:2,class:"w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"},W=e.defineComponent({__name:"BaseLine",props:{mode:{type:String,required:!1,default:h.BASE}},setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.mode===e.unref(h).BASE?(e.openBlock(),e.createElementBlock("hr",z)):e.createCommentVNode("",!0),t.mode===e.unref(h).BASE_SHORTER?(e.openBlock(),e.createElementBlock("hr",q)):e.createCommentVNode("",!0),t.mode===e.unref(h).SQUARE?(e.openBlock(),e.createElementBlock("hr",P)):e.createCommentVNode("",!0)],64))}});var u=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t))(u||{});const F=["height","width"],H=e.defineComponent({__name:"BaseLogo",props:{size:{type:String,required:!1,default:u.MEDIUM}},setup(t){const r=t;function l(){let a="";switch(r.size){case u.SMALL:{a="50px";break}case u.MEDIUM:{a="100px";break}case u.LARGE:{a="150px";break}}return a}return(a,o)=>{const n=e.resolveComponent("router-link");return e.openBlock(),e.createBlock(n,{to:"/",class:"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",{height:l(),width:l(),viewBox:"33.6 130.6 499.7 242.9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[...o[0]||(o[0]=[e.createElementVNode("linearGradient",{id:"a"},[e.createElementVNode("stop",{offset:".085","stop-color":"#469e43"}),e.createElementVNode("stop",{offset:"1","stop-color":"#132d13"})],-1),e.createElementVNode("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"64.863",x2:"64.863","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"138.367",x2:"138.367","xlink:href":"#a",y1:"308.454",y2:"370.601"},null,-1),e.createElementVNode("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:"195.475",x2:"195.475","xlink:href":"#a",y1:"288.291",y2:"369.85"},null,-1),e.createElementVNode("linearGradient",{id:"e",gradientUnits:"userSpaceOnUse",x1:"249.634",x2:"249.634","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"f",gradientUnits:"userSpaceOnUse",x1:"302.884",x2:"302.884","xlink:href":"#a",y1:"288.291",y2:"367.857"},null,-1),e.createElementVNode("linearGradient",{id:"g",gradientUnits:"userSpaceOnUse",x1:"354.118",x2:"354.118","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"h",gradientUnits:"userSpaceOnUse",x1:"428.02",x2:"428.02","xlink:href":"#a",y1:"306.156",y2:"367.742"},null,-1),e.createElementVNode("linearGradient",{id:"i",gradientUnits:"userSpaceOnUse",x1:"502.066",x2:"502.066","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"j",gradientUnits:"userSpaceOnUse",x1:"283.264",x2:"283.264","xlink:href":"#a",y1:"131.629",y2:"232.559"},null,-1),e.createElementVNode("linearGradient",{id:"k",gradientUnits:"userSpaceOnUse",x1:"283.46",x2:"283.46",y1:"202.275",y2:"183.785"},[e.createElementVNode("stop",{offset:"0","stop-color":"#969799","stop-opacity":"0"}),e.createElementVNode("stop",{offset:"1","stop-color":"#808183"})],-1),e.createElementVNode("path",{d:"m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",fill:"url(#b)"},null,-1),e.createElementVNode("path",{d:"m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",fill:"url(#c)"},null,-1),e.createElementVNode("path",{d:"m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",fill:"url(#d)"},null,-1),e.createElementVNode("path",{d:"m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#e)"},null,-1),e.createElementVNode("path",{d:"m296.4 288.3h13v79.6h-13z",fill:"url(#f)"},null,-1),e.createElementVNode("path",{d:"m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#g)"},null,-1),e.createElementVNode("path",{d:"m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",fill:"url(#h)"},null,-1),e.createElementVNode("path",{d:"m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",fill:"url(#i)"},null,-1),e.createElementVNode("path",{d:"m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",fill:"url(#j)"},null,-1),e.createElementVNode("path",{d:"m281.7 183.8h3.6v18.5h-3.6z",fill:"url(#k)"},null,-1)])],8,F))]),_:1})}}});var B=(t=>(t.DELETE="DELETE",t.SUCCESS="SUCCESS",t))(B||{});const j={class:"dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white"},Y={key:0,class:"p-6 text-center"},X={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"},Z={class:"flex justify-center"},K=e.defineComponent({__name:"BaseModal",props:{title:{type:String,required:!0},description:{type:String,required:!1},to:{type:String,required:!1,default:"/"},mode:{type:String,required:!1,default:"SUCCESS"}},emits:["closeModal","confirmModal"],setup(t){return(r,l)=>{const a=e.resolveComponent("base-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"outside",onClick:l[0]||(l[0]=o=>r.$emit("closeModal"))}),e.createElementVNode("div",j,[t.mode===e.unref(B).DELETE?(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(E.ExclamationCircleIcon),{class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.createElementVNode("h3",X," Are you sure you want to delete this "+e.toDisplayString(t.title)+"? ",1),e.createElementVNode("div",Z,[e.createVNode(a,{color:e.unref(f).RED,onClick:l[1]||(l[1]=o=>r.$emit("confirmModal")),description:"Yes, I'm sure"},null,8,["color"]),e.createVNode(a,{color:e.unref(f).WHITE,onClick:l[2]||(l[2]=o=>r.$emit("closeModal")),description:"No, cancel"},null,8,["color"])])])):e.createCommentVNode("",!0)])],64)}}}),N=(t,r)=>{const l=t.__vccOpts||t;for(const[a,o]of r)l[a]=o;return l},Q=N(K,[["__scopeId","data-v-492169b3"]]),J=e.defineComponent({__name:"BaseRow",props:{bgColor:{type:String,required:!1,default:"white"}},setup(t){const r=t;function l(){return"block p-6 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 global "+r.bgColor}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l())},[e.renderSlot(a.$slots,"default")],2))}}),v={},ee={class:"mb-3"};function te(t,r){return e.openBlock(),e.createElementBlock("div",ee,[...r[0]||(r[0]=[e.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e.createElementVNode("span",{class:"sr-only"},"Loading...",-1)])])}const re=N(v,[["render",te]]);var k=(t=>(t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(k||{}),C=(t=>(t.TOP_LEFT="TOP_LEFT",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t))(C||{});const oe={class:"flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"},ne={class:"ml-3 text-sm font-normal"},le={key:3,type:"button",class:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-danger","aria-label":"Close"},ae=e.defineComponent({__name:"BaseToast",props:{mode:{type:Object,required:!0},description:{type:String,required:!0},hasCloseIcon:{type:Boolean,required:!1,default:!0},positioning:{type:String,required:!1,default:"right"}},setup(t){const r=t;function l(){let c="";switch(r.mode){case k.ERROR:c="text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";break;case k.SUCCESS:c="text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";break;case k.WARNING:c="text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";break}return"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg "+c}function a(){let c="top-5 right-5";switch(r.positioning){case C.BOTTOM_LEFT:c="bottom-5";break;case C.TOP_LEFT:c="top-5";break;case C.TOP_RIGHT:c="top-5 right-5";break;case C.BOTTOM_RIGHT:c="bottom-5 right-5";break}return"fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg "+c+" space-x"}const o=e.ref(!0);function n(){setTimeout(()=>o.value=!1,1e6)}return n(),(c,m)=>o.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"toast-top-right",class:e.normalizeClass(a()),role:"alert"},[e.createElementVNode("div",oe,[t.mode==e.unref(k).ERROR?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l())},[e.createVNode(e.unref(E.ExclamationCircleIcon),{class:"h-6 w-6 text-red-500"}),m[1]||(m[1]=e.createElementVNode("span",{class:"sr-only"},"Error icon",-1))],2)):t.mode==e.unref(k).SUCCESS?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l())},[e.createVNode(e.unref(E.CheckCircleIcon),{class:"h-6 w-6 text-green-500"}),m[2]||(m[2]=e.createElementVNode("span",{class:"sr-only"},"Check icon",-1))],2)):t.mode==e.unref(k).WARNING?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l())},[e.createVNode(e.unref(E.ExclamationTriangleIcon),{class:"h-6 w-6 text-yellow-500"}),m[3]||(m[3]=e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ne,e.toDisplayString(t.description),1),t.hasCloseIcon?(e.openBlock(),e.createElementBlock("button",le,[m[4]||(m[4]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(E.XMarkIcon),{class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m[0]||(m[0]=i=>o.value=!o.value)})])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),se={class:"w-13"},ce=e.defineComponent({__name:"ColoredSquares",props:{color:{type:String,required:!1}},setup(t){const r=t,l=["bg-slate-300","bg-zinc-300","bg-neutral-300","bg-stone-300","bg-blue-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"],a=e.computed(()=>l[Math.floor(Math.random()*l.length)]);function o(){let n="gray";switch(r.color){case d.GREEN:{n="green";break}case d.RED:{n="red";break}case d.BLUE:{n="blue";break}case d.YELLOW:{n="yellow";break}case d.NONE:{n="";break}}return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",{class:e.normalizeClass(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center",o()])},[e.renderSlot(n.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass(["absolute bottom-0 left-0 h-1 w-full",a.value])},null,2)],2)]))}}),ie={key:0,class:"font-bold text-green-800"},de={key:0},me={key:0},fe="font-bold",pe=e.defineComponent({__name:"EuroAmount",props:{amount:{type:Number,required:!1},beforeAmount:{type:Number,default:null,required:!1},showCurrency:{type:Boolean,default:!0,required:!1}},setup(t){const r=t,l=e.computed(()=>r.amount!==null&&r.amount!==void 0),a=e.computed(()=>l.value&&r.amount<0),o=e.computed(()=>r.beforeAmount===null||r.beforeAmount===void 0?!1:r.amount<r.beforeAmount),n=e.computed(()=>a.value||o.value),c=e.computed(()=>!a.value&&!o.value&&!(r.beforeAmount===null||r.beforeAmount===void 0));return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.value&&c.value?(e.openBlock(),e.createElementBlock("span",ie,[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",de,"€")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value&&!c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([fe,n.value?"text-red-800":"text-gray-800"])},[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",me,"€")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}}),ge=["onClick"],Ee={key:1,style:{cursor:"not-allowed"}},ke=N(e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:10},itemsPerPage:{type:Number,default:20}},emits:["page-changed"],setup(t,{emit:r}){const l=t,a=e.ref(1),o=e.ref(0),n=e.ref([]),c=r;function m(i){if(i!==a.value&&i>=1&&i<=o.value&&(a.value=i),o.value>5){n.value=[],i-3>0&&(n.value.push(1),n.value.push(0));for(let p=2;p>=1;p--){let V=i-p;V>0&&n.value.push(V)}n.value.push(a.value);let g=o.value-i,_=g>2,xe=2;if(_){for(let p=1;p<=xe;p++)n.value.push(i+p);n.value.push(0),n.value.push(o.value)}else for(let p=1;p<=g;p++)n.value.push(i+p)}c("page-changed",i)}return e.watch(()=>l.totalItems,()=>{if(o.value=Math.ceil(l.totalItems/l.itemsPerPage),n.value=[],o.value>5){for(let i=1;i<5;i++)n.value.push(i);n.value.push(0),n.value.push(o.value)}else for(let i=1;i<=o.value;i++)n.value.push(i)}),(i,Ce)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("li",{key:g},[g!==0?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:_=>m(g),class:e.normalizeClass({active:g===a.value})},e.toDisplayString(g),11,ge)):e.createCommentVNode("",!0),g===0?(e.openBlock(),e.createElementBlock("span",Ee,"...")):e.createCommentVNode("",!0)]))),128))])]))}}),[["__scopeId","data-v-248e09af"]]),ye={key:0},be={key:0,class:"flex items-center space-x-2"},he={key:1,class:"flex items-center space-x-2"},ue=e.defineComponent({__name:"TrendArrow",props:{number:{type:Number,required:!1},icon:{type:String,required:!1}},setup(t){const r=t,l=e.computed(()=>r.number!==null&&r.number!==void 0&&r.number<0);return(a,o)=>t.number?(e.openBlock(),e.createElementBlock("div",ye,[l.value?(e.openBlock(),e.createElementBlock("span",be,[e.createVNode(x,{color:e.unref(d).RED},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(E.ArrowDownIcon),{class:"h-5 w-5 text-red-500"})])):(e.openBlock(),e.createElementBlock("span",he,[e.createVNode(x,{color:e.unref(d).GREEN},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(E.ArrowUpIcon),{class:"h-5 w-5 text-green-500"})]))])):e.createCommentVNode("",!0)}});var R=(t=>(t.WIN="WIN",t.LOSE="LOSE",t))(R||{});s.AlertEnum=y,s.BaseAlert=A,s.BaseBadge=x,s.BaseBadgeEnum=R,s.BaseButton=I,s.BaseButtonEnum=f,s.BaseButtonSizeEnum=b,s.BaseLine=W,s.BaseLoginEnum=u,s.BaseLogo=H,s.BaseModal=Q,s.BaseModalEnum=B,s.BaseRow=J,s.BaseSpinner=re,s.BaseToast=ae,s.BaseToastEnum=k,s.ColoredSquares=ce,s.ColorsEnums=d,s.EuroAmount=pe,s.LineEnum=h,s.Pagination=ke,s.PositioningEnum=C,s.TrendArrow=ue,s.getBaseColor=S,s.getBaseColorOf=w,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@heroicons/vue/24/outline")):typeof define=="function"&&define.amd?define(["exports","vue","@heroicons/vue/24/outline"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.UiLib={},s.Vue,s.HeroiconsOutline))})(this,function(s,e,k){"use strict";var y=(t=>(t.WARNING="WARNING",t.ERROR="ERROR",t.SUCCESS="SUCCESS",t.INFROM="INFROM",t))(y||{}),d=(t=>(t.NONE="NONE",t.RED="RED",t.YELLOW="YELLOW",t.BLACK="BLACK",t.GRAY="GRAY",t.GREEN="GREEN",t.BLUE="BLUE",t))(d||{});function N(t){let r="red";switch(t){case y.ERROR:r="red";break;case y.SUCCESS:r="green";break;case y.INFROM:r="gray";break;case y.WARNING:r="yellow";break}return r}function w(t){let r="red";switch(t){case d.GREEN:{r="green";break}case d.RED:{r="red";break}case d.BLUE:{r="blue";break}case d.YELLOW:{r="yellow";break}case d.NONE:{r="";break}}return r}const L={class:"font-medium pl-1"},A=e.defineComponent({__name:"BaseAlert",props:{title:{type:String,required:!1,default:y.ERROR},color:{type:Object,required:!1}},setup(t){const r=t;function l(){let a=N(r.color);return"flex items-center p-4 mb-4 text-sm text-"+a+"-800 border border-"+a+"-300 rounded-lg bg-"+a+"-50 dark:bg-gray-800 dark:text-"+a+"-400 dark:border-"+a+"-800"}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l()),role:"alert"},[e.createVNode(e.unref(k.InformationCircleIcon),{class:"w-6 h-6 text-gray-400"}),e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(t.title),1)])],2))}}),x=e.defineComponent({__name:"BaseBadge",props:{color:{type:String,required:!1}},setup(t){const r=e.useSlots(),l=e.computed(()=>!!r.default),a=t;function o(){let n=w(a.color);return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o())},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0)}});var f=(t=>(t.RED="RED",t.BLUE="BLUE",t.WHITE="WHITE",t.DARK="DARK",t.GREEN="GREEN",t.YELLOW="YELLOW",t.PURPLE="PURPLE",t))(f||{}),b=(t=>(t.EXTRA_SMALL="EXTRA SMALL",t.SMALL="SMALL",t.BASE="BASE",t.LARGE="LARGE",t.EXTRA_LARGE="EXTRA_LARGE",t))(b||{});const O=["type","disabled"],T={key:0},U={key:1},$=["type","disabled"],D={key:0},G={key:1},M={key:2},I=e.defineComponent({__name:"BaseButton",props:{description:{type:String,required:!0},color:{type:String,required:!1,default:f.BLUE},to:{type:String,required:!1},type:{type:String,required:!1,default:"button"},icon:{type:String,required:!1},iconSize:{type:String,required:!1},iconLeft:{type:String,required:!1},isRounded:{type:Boolean,required:!1},isDisable:{type:Boolean,required:!1},size:{type:String,required:!1},isLoading:{type:Boolean,required:!1}},setup(t){const r=t;function l(){let a="inline-flex items-center",o;switch(r.color){case f.BLUE:{o="focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300",r.isDisable&&(o+=" bg-blue-400");break}case f.WHITE:{o="focus:outline-none text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200",r.isDisable&&(o+=" bg-gray-400");break}case f.DARK:{o="focus:outline-none text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 ",r.isDisable&&(o+=" bg-gray-400");break}case f.GREEN:{o="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300",r.isDisable&&(o+=" bg-green-400");break}case f.RED:{o="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300",r.isDisable&&(o+=" bg-red-400");break}case f.YELLOW:{o="focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300",r.isDisable&&(o+=" bg-yellow-400");break}case f.PURPLE:{o="focus:outline-none text-white bg-purple-700 hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 px-5 py-2.5 mb-2",r.isDisable&&(o+=" bg-purple-400");break}}let n="px-5 py-2.5 mr-2 mb-2 text-sm";switch(r.size){case b.EXTRA_SMALL:{n="px-3 py-2 text-xs";break}case b.SMALL:{n="px-3 py-2 text-sm";break}case b.BASE:{n="px-5 py-2.5 text-sm";break}case b.LARGE:{n="px-5 py-3 text-base";break}case b.EXTRA_LARGE:{n="px-6 py-3.5 text-base";break}}let c="rounded-lg";return r.isRounded&&(c="rounded-full"),r.isDisable&&(o+=" cursor-not-allowed"),a+" "+n+" "+o+" "+"font-medium"+" "+c}return(a,o)=>{const n=e.resolveComponent("router-link");return t.to?(e.openBlock(),e.createBlock(n,{key:0,to:t.to},{default:e.withCtx(()=>[e.createElementVNode("button",{type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,O)]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("button",{key:1,type:r.type,class:e.normalizeClass(l()),disabled:t.isDisable},[t.isLoading?(e.openBlock(),e.createElementBlock("div",D,[...o[0]||(o[0]=[e.createElementVNode("svg",{"aria-hidden":"true",role:"status",class:"inline w-4 h-4 me-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})],-1)])])):e.createCommentVNode("",!0),t.iconLeft?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",G,e.toDisplayString(t.description),1)),e.renderSlot(a.$slots,"default"),t.iconLeft?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],10,$))}}});var u=(t=>(t.BASE="BASE",t.BASE_SHORTER="BASE_SHORTER",t.SQUARE="SQUARE",t))(u||{});const z={key:0,class:"h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"},q={key:1,class:"w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"},P={key:2,class:"w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"},W=e.defineComponent({__name:"BaseLine",props:{mode:{type:String,required:!1,default:u.BASE}},setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.mode===e.unref(u).BASE?(e.openBlock(),e.createElementBlock("hr",z)):e.createCommentVNode("",!0),t.mode===e.unref(u).BASE_SHORTER?(e.openBlock(),e.createElementBlock("hr",q)):e.createCommentVNode("",!0),t.mode===e.unref(u).SQUARE?(e.openBlock(),e.createElementBlock("hr",P)):e.createCommentVNode("",!0)],64))}});var h=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t.LARGE="LARGE",t))(h||{});const F=["height","width"],H=e.defineComponent({__name:"BaseLogo",props:{size:{type:String,required:!1,default:h.MEDIUM}},setup(t){const r=t;function l(){let a="";switch(r.size){case h.SMALL:{a="50px";break}case h.MEDIUM:{a="100px";break}case h.LARGE:{a="150px";break}}return a}return(a,o)=>{const n=e.resolveComponent("router-link");return e.openBlock(),e.createBlock(n,{to:"/",class:"flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",{height:l(),width:l(),viewBox:"33.6 130.6 499.7 242.9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[...o[0]||(o[0]=[e.createElementVNode("linearGradient",{id:"a"},[e.createElementVNode("stop",{offset:".085","stop-color":"#469e43"}),e.createElementVNode("stop",{offset:"1","stop-color":"#132d13"})],-1),e.createElementVNode("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"64.863",x2:"64.863","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"138.367",x2:"138.367","xlink:href":"#a",y1:"308.454",y2:"370.601"},null,-1),e.createElementVNode("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:"195.475",x2:"195.475","xlink:href":"#a",y1:"288.291",y2:"369.85"},null,-1),e.createElementVNode("linearGradient",{id:"e",gradientUnits:"userSpaceOnUse",x1:"249.634",x2:"249.634","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"f",gradientUnits:"userSpaceOnUse",x1:"302.884",x2:"302.884","xlink:href":"#a",y1:"288.291",y2:"367.857"},null,-1),e.createElementVNode("linearGradient",{id:"g",gradientUnits:"userSpaceOnUse",x1:"354.118",x2:"354.118","xlink:href":"#a",y1:"307.312",y2:"369.511"},null,-1),e.createElementVNode("linearGradient",{id:"h",gradientUnits:"userSpaceOnUse",x1:"428.02",x2:"428.02","xlink:href":"#a",y1:"306.156",y2:"367.742"},null,-1),e.createElementVNode("linearGradient",{id:"i",gradientUnits:"userSpaceOnUse",x1:"502.066",x2:"502.066","xlink:href":"#a",y1:"288.291",y2:"369.4"},null,-1),e.createElementVNode("linearGradient",{id:"j",gradientUnits:"userSpaceOnUse",x1:"283.264",x2:"283.264","xlink:href":"#a",y1:"131.629",y2:"232.559"},null,-1),e.createElementVNode("linearGradient",{id:"k",gradientUnits:"userSpaceOnUse",x1:"283.46",x2:"283.46",y1:"202.275",y2:"183.785"},[e.createElementVNode("stop",{offset:"0","stop-color":"#969799","stop-opacity":"0"}),e.createElementVNode("stop",{offset:"1","stop-color":"#808183"})],-1),e.createElementVNode("path",{d:"m65 307.2c-6.8 0-13.1 2.2-18.2 5.9v-24.8h-13.2v81.1h31.4c17.2 0 31.1-13.9 31.1-31.1s-13.9-31.1-31.1-31.1zm0 49.3h-18.2v-18.2c0-10.1 8.2-18.2 18.2-18.2 10.1 0 18.2 8.2 18.2 18.2.1 10.1-8.1 18.2-18.2 18.2z",fill:"url(#b)"},null,-1),e.createElementVNode("path",{d:"m168.8 343.9h-46.7c1.4 7.1 6.6 12 14.1 12.7 6.4.6 12.9.1 19.9.1v11.9c-15.2 4.9-33.3.5-42.1-10.4-3.8-4.7-17.3-34.7 11.5-47.4 39-11.4 45.3 22.4 43.3 33.1zm-14.2-12.7c-1.7-8.1-8.8-12.9-17.9-12.3-7.6.5-14 5.8-14.5 12.3z",fill:"url(#c)"},null,-1),e.createElementVNode("path",{d:"m195.5 320.2c0 10.5-.2 20 .1 29.6.2 5.8 4.4 8.4 13.2 8.6v10.5c-13.8 3.9-26.2-4.5-26.4-18-.2-18.7-.1-43.9-.1-62.6h14.1l-.3 18.5 12.7-.1v13.4h-13.3z",fill:"url(#d)"},null,-1),e.createElementVNode("path",{d:"m249.6 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#e)"},null,-1),e.createElementVNode("path",{d:"m296.4 288.3h13v79.6h-13z",fill:"url(#f)"},null,-1),e.createElementVNode("path",{d:"m354.1 307.3c-17.2 0-31.1 13.9-31.1 31.1s13.9 31.1 31.1 31.1h31.1v-31.1c0-17.2-13.9-31.1-31.1-31.1zm18.6 49.7h-18.5c-10.2 0-18.5-8.3-18.5-18.5s8.3-18.5 18.5-18.5 18.5 8.3 18.5 18.5z",fill:"url(#g)"},null,-1),e.createElementVNode("path",{d:"m442.2 367.7c0-12.3.2-23.6 0-34.9-.2-3.4-3.6-13.8-14.1-13.4-10.3-.3-14.4 10-14.3 12.7.1 10.2.5 35.1.5 35.1l-13.6.1s-.3-25.7.2-36.2c.6-14.1 12.7-25 27.5-25 14.7 0 26.2 10.4 26.7 24.9.4 10.4.5 36.3.5 36.3z",fill:"url(#h)"},null,-1),e.createElementVNode("path",{d:"m501.9 307.2c6.8 0 13.1 2.2 18.2 5.9v-24.8h13.2v81.1h-31.4c-17.2 0-31.1-13.9-31.1-31.1s13.9-31.1 31.1-31.1zm0 49.3h18.2v-18.2c0-10.1-8.2-18.2-18.2-18.2-10.1 0-18.2 8.2-18.2 18.2 0 10.1 8.1 18.2 18.2 18.2z",fill:"url(#i)"},null,-1),e.createElementVNode("path",{d:"m309.2 180.6h-24v-24c0-12.6 10.2-24.1 22.8-25 14.8-1 27.1 11.3 26.1 26.1-.8 12.7-12.3 22.9-24.9 22.9zm-50.7-48.9c-14.8-1-27.1 11.3-26.1 26.1.8 12.6 12.4 22.8 25 22.8h23.9v-24c0-12.6-10.3-24.1-22.8-24.9zm50.7 51.9h-24v23.9c0 12.6 10.2 24.1 22.8 25 14.8 1 27.1-11.3 26.1-26.1-.8-12.6-12.3-22.8-24.9-22.8zm-52.4 0c-14 0-25.3 11.8-24.4 26 .8 12.2 10.7 22.1 22.9 22.9 14.2.9 26-10.4 26-24.4v-24.5z",fill:"url(#j)"},null,-1),e.createElementVNode("path",{d:"m281.7 183.8h3.6v18.5h-3.6z",fill:"url(#k)"},null,-1)])],8,F))]),_:1})}}});var B=(t=>(t.DELETE="DELETE",t.SUCCESS="SUCCESS",t))(B||{});const j={class:"dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white"},Y={key:0,class:"p-6 text-center"},X={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"},K={class:"flex justify-center"},Q=e.defineComponent({__name:"BaseModal",props:{title:{type:String,required:!0},description:{type:String,required:!1},to:{type:String,required:!1,default:"/"},mode:{type:String,required:!1,default:"SUCCESS"}},emits:["closeModal","confirmModal"],setup(t){return(r,l)=>{const a=e.resolveComponent("base-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"outside",onClick:l[0]||(l[0]=o=>r.$emit("closeModal"))}),e.createElementVNode("div",j,[t.mode===e.unref(B).DELETE?(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(k.ExclamationCircleIcon),{class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),e.createElementVNode("h3",X," Are you sure you want to delete this "+e.toDisplayString(t.title)+"? ",1),e.createElementVNode("div",K,[e.createVNode(a,{color:e.unref(f).RED,onClick:l[1]||(l[1]=o=>r.$emit("confirmModal")),description:"Yes, I'm sure"},null,8,["color"]),e.createVNode(a,{color:e.unref(f).WHITE,onClick:l[2]||(l[2]=o=>r.$emit("closeModal")),description:"No, cancel"},null,8,["color"])])])):e.createCommentVNode("",!0)])],64)}}}),S=(t,r)=>{const l=t.__vccOpts||t;for(const[a,o]of r)l[a]=o;return l},Z=S(Q,[["__scopeId","data-v-492169b3"]]),J=e.defineComponent({__name:"BaseRow",props:{bgColor:{type:String,required:!1,default:"white"}},setup(t){const r=t;function l(){return"block p-6 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 global "+r.bgColor}return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l())},[e.renderSlot(a.$slots,"default")],2))}}),v={},ee={class:"w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin"};function te(t,r){return e.openBlock(),e.createElementBlock("div",ee)}const re=S(v,[["render",te]]);var E=(t=>(t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(E||{}),C=(t=>(t.TOP_LEFT="TOP_LEFT",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t))(C||{});const oe={class:"flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"},ne={class:"ml-3 text-sm font-normal"},le={key:3,type:"button",class:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-danger","aria-label":"Close"},ae=e.defineComponent({__name:"BaseToast",props:{mode:{type:Object,required:!0},description:{type:String,required:!0},hasCloseIcon:{type:Boolean,required:!1,default:!0},positioning:{type:String,required:!1,default:"right"}},setup(t){const r=t;function l(){let c="";switch(r.mode){case E.ERROR:c="text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";break;case E.SUCCESS:c="text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";break;case E.WARNING:c="text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";break}return"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg "+c}function a(){let c="top-5 right-5";switch(r.positioning){case C.BOTTOM_LEFT:c="bottom-5";break;case C.TOP_LEFT:c="top-5";break;case C.TOP_RIGHT:c="top-5 right-5";break;case C.BOTTOM_RIGHT:c="bottom-5 right-5";break}return"fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg "+c+" space-x"}const o=e.ref(!0);function n(){setTimeout(()=>o.value=!1,1e6)}return n(),(c,m)=>o.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"toast-top-right",class:e.normalizeClass(a()),role:"alert"},[e.createElementVNode("div",oe,[t.mode==e.unref(E).ERROR?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.ExclamationCircleIcon),{class:"h-6 w-6 text-red-500"}),m[1]||(m[1]=e.createElementVNode("span",{class:"sr-only"},"Error icon",-1))],2)):t.mode==e.unref(E).SUCCESS?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.CheckCircleIcon),{class:"h-6 w-6 text-green-500"}),m[2]||(m[2]=e.createElementVNode("span",{class:"sr-only"},"Check icon",-1))],2)):t.mode==e.unref(E).WARNING?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l())},[e.createVNode(e.unref(k.ExclamationTriangleIcon),{class:"h-6 w-6 text-yellow-500"}),m[3]||(m[3]=e.createElementVNode("span",{class:"sr-only"},"Warning icon",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ne,e.toDisplayString(t.description),1),t.hasCloseIcon?(e.openBlock(),e.createElementBlock("button",le,[m[4]||(m[4]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(k.XMarkIcon),{class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m[0]||(m[0]=i=>o.value=!o.value)})])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),se={class:"w-13"},ce=e.defineComponent({__name:"ColoredSquares",props:{color:{type:String,required:!1}},setup(t){const r=t,l=["bg-slate-300","bg-zinc-300","bg-neutral-300","bg-stone-300","bg-blue-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"],a=e.computed(()=>l[Math.floor(Math.random()*l.length)]);function o(){let n="gray";switch(r.color){case d.GREEN:{n="green";break}case d.RED:{n="red";break}case d.BLUE:{n="blue";break}case d.YELLOW:{n="yellow";break}case d.NONE:{n="";break}}return"font-bold bg-"+n+"-100 text-"+n+"-800 text-xs mr-2 px-2.5 py-0.5 rounded-full"}return(n,c)=>(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",{class:e.normalizeClass(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center",o()])},[e.renderSlot(n.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass(["absolute bottom-0 left-0 h-1 w-full",a.value])},null,2)],2)]))}}),ie={key:0,class:"font-bold text-green-800"},de={key:0},me={key:0},fe="font-bold",pe=e.defineComponent({__name:"EuroAmount",props:{amount:{type:Number,required:!1},beforeAmount:{type:Number,default:null,required:!1},showCurrency:{type:Boolean,default:!0,required:!1}},setup(t){const r=t,l=e.computed(()=>r.amount!==null&&r.amount!==void 0),a=e.computed(()=>l.value&&r.amount<0),o=e.computed(()=>r.beforeAmount===null||r.beforeAmount===void 0?!1:r.amount<r.beforeAmount),n=e.computed(()=>a.value||o.value),c=e.computed(()=>!a.value&&!o.value&&!(r.beforeAmount===null||r.beforeAmount===void 0));return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.value&&c.value?(e.openBlock(),e.createElementBlock("span",ie,[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",de,"€")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value&&!c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([fe,n.value?"text-red-800":"text-gray-800"])},[e.createTextVNode(e.toDisplayString(t.amount)+" ",1),t.showCurrency?(e.openBlock(),e.createElementBlock("span",me,"€")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}}),ge=["onClick"],ke={key:1,style:{cursor:"not-allowed"}},Ee=S(e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:10},itemsPerPage:{type:Number,default:20}},emits:["page-changed"],setup(t,{emit:r}){const l=t,a=e.ref(1),o=e.ref(0),n=e.ref([]),c=r;function m(i){if(i!==a.value&&i>=1&&i<=o.value&&(a.value=i),o.value>5){n.value=[],i-3>0&&(n.value.push(1),n.value.push(0));for(let p=2;p>=1;p--){let V=i-p;V>0&&n.value.push(V)}n.value.push(a.value);let g=o.value-i,_=g>2,xe=2;if(_){for(let p=1;p<=xe;p++)n.value.push(i+p);n.value.push(0),n.value.push(o.value)}else for(let p=1;p<=g;p++)n.value.push(i+p)}c("page-changed",i)}return e.watch(()=>l.totalItems,()=>{if(o.value=Math.ceil(l.totalItems/l.itemsPerPage),n.value=[],o.value>5){for(let i=1;i<5;i++)n.value.push(i);n.value.push(0),n.value.push(o.value)}else for(let i=1;i<=o.value;i++)n.value.push(i)}),(i,Ce)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("li",{key:g},[g!==0?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:_=>m(g),class:e.normalizeClass({active:g===a.value})},e.toDisplayString(g),11,ge)):e.createCommentVNode("",!0),g===0?(e.openBlock(),e.createElementBlock("span",ke,"...")):e.createCommentVNode("",!0)]))),128))])]))}}),[["__scopeId","data-v-248e09af"]]),ye={key:0},be={key:0,class:"flex items-center space-x-2"},ue={key:1,class:"flex items-center space-x-2"},he=e.defineComponent({__name:"TrendArrow",props:{number:{type:Number,required:!1},icon:{type:String,required:!1}},setup(t){const r=t,l=e.computed(()=>r.number!==null&&r.number!==void 0&&r.number<0);return(a,o)=>t.number?(e.openBlock(),e.createElementBlock("div",ye,[l.value?(e.openBlock(),e.createElementBlock("span",be,[e.createVNode(x,{color:e.unref(d).RED},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(k.ArrowDownIcon),{class:"h-5 w-5 text-red-500"})])):(e.openBlock(),e.createElementBlock("span",ue,[e.createVNode(x,{color:e.unref(d).GREEN},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.number)+e.toDisplayString(r.icon),1)]),_:1},8,["color"]),e.createVNode(e.unref(k.ArrowUpIcon),{class:"h-5 w-5 text-green-500"})]))])):e.createCommentVNode("",!0)}});var R=(t=>(t.WIN="WIN",t.LOSE="LOSE",t))(R||{});s.AlertEnum=y,s.BaseAlert=A,s.BaseBadge=x,s.BaseBadgeEnum=R,s.BaseButton=I,s.BaseButtonEnum=f,s.BaseButtonSizeEnum=b,s.BaseLine=W,s.BaseLoginEnum=h,s.BaseLogo=H,s.BaseModal=Z,s.BaseModalEnum=B,s.BaseRow=J,s.BaseSpinner=re,s.BaseToast=ae,s.BaseToastEnum=E,s.ColoredSquares=ce,s.ColorsEnums=d,s.EuroAmount=pe,s.LineEnum=u,s.Pagination=Ee,s.PositioningEnum=C,s.TrendArrow=he,s.getBaseColor=N,s.getBaseColorOf=w,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mgv-backoffice",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared Vue 3 UI component library",
|
|
5
|
-
"main": "./dist/ui-lib.js",
|
|
6
|
-
"module": "./dist/ui-lib.
|
|
5
|
+
"main": "./dist/ui-lib.umd.js",
|
|
6
|
+
"module": "./dist/ui-lib.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|