mgv-backoffice 1.0.4 → 1.0.7
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/README.md +111 -0
- package/dist/components/BaseBreadcrumb.vue.d.ts +31 -0
- package/dist/index.d.ts +2 -0
- package/dist/ui-lib.mjs +345 -276
- package/dist/ui-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/BaseBadge.vue +18 -6
- package/src/components/BaseBreadcrumb.vue +67 -0
- package/src/components/BaseRow.vue +1 -1
- package/src/index.ts +4 -0
package/dist/ui-lib.mjs
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InformationCircleIcon as j, ExclamationCircleIcon as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as h, openBlock as l, createElementBlock as i, normalizeClass as m, createVNode as p, unref as d, createElementVNode as a, toDisplayString as y, useSlots as F, computed as k, renderSlot as $, createCommentVNode as g, resolveComponent as G, withCtx as S, createTextVNode as C, Fragment as T, renderList as q, createBlock as D, ref as U, watch as Y } from "vue";
|
|
2
|
+
import { InformationCircleIcon as j, ChevronRightIcon as X, ExclamationCircleIcon as z, CheckCircleIcon as K, ExclamationTriangleIcon as V, XMarkIcon as Q, ArrowDownIcon as Z, ArrowUpIcon as J } from "@heroicons/vue/24/outline";
|
|
3
|
+
import { HomeIcon as ee } from "@heroicons/vue/24/solid";
|
|
4
|
+
var R = /* @__PURE__ */ ((e) => (e.WARNING = "WARNING", e.ERROR = "ERROR", e.SUCCESS = "SUCCESS", e.INFROM = "INFROM", e))(R || {}), f = /* @__PURE__ */ ((e) => (e.NONE = "NONE", e.RED = "RED", e.YELLOW = "YELLOW", e.BLACK = "BLACK", e.GRAY = "GRAY", e.GREEN = "GREEN", e.BLUE = "BLUE", e))(f || {});
|
|
5
|
+
function te(e) {
|
|
5
6
|
let t = "red";
|
|
6
7
|
switch (e) {
|
|
7
|
-
case
|
|
8
|
+
case R.ERROR:
|
|
8
9
|
t = "red";
|
|
9
10
|
break;
|
|
10
|
-
case
|
|
11
|
+
case R.SUCCESS:
|
|
11
12
|
t = "green";
|
|
12
13
|
break;
|
|
13
|
-
case
|
|
14
|
+
case R.INFROM:
|
|
14
15
|
t = "gray";
|
|
15
16
|
break;
|
|
16
|
-
case
|
|
17
|
+
case R.WARNING:
|
|
17
18
|
t = "yellow";
|
|
18
19
|
break;
|
|
19
20
|
}
|
|
20
21
|
return t;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function He(e) {
|
|
23
24
|
let t = "red";
|
|
24
25
|
switch (e) {
|
|
25
|
-
case
|
|
26
|
+
case f.GREEN: {
|
|
26
27
|
t = "green";
|
|
27
28
|
break;
|
|
28
29
|
}
|
|
29
|
-
case
|
|
30
|
+
case f.RED: {
|
|
30
31
|
t = "red";
|
|
31
32
|
break;
|
|
32
33
|
}
|
|
33
|
-
case
|
|
34
|
+
case f.BLUE: {
|
|
34
35
|
t = "blue";
|
|
35
36
|
break;
|
|
36
37
|
}
|
|
37
|
-
case
|
|
38
|
+
case f.YELLOW: {
|
|
38
39
|
t = "yellow";
|
|
39
40
|
break;
|
|
40
41
|
}
|
|
41
|
-
case
|
|
42
|
+
case f.NONE: {
|
|
42
43
|
t = "";
|
|
43
44
|
break;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
return t;
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const re = { class: "font-medium pl-1" }, Fe = /* @__PURE__ */ h({
|
|
49
50
|
__name: "BaseAlert",
|
|
50
51
|
props: {
|
|
51
52
|
title: {
|
|
52
53
|
type: String,
|
|
53
54
|
required: !1,
|
|
54
|
-
default:
|
|
55
|
+
default: R.ERROR
|
|
55
56
|
},
|
|
56
57
|
color: {
|
|
57
58
|
type: Object,
|
|
@@ -60,21 +61,21 @@ const te = { class: "font-medium pl-1" }, Be = /* @__PURE__ */ m({
|
|
|
60
61
|
},
|
|
61
62
|
setup(e) {
|
|
62
63
|
const t = e;
|
|
63
|
-
function
|
|
64
|
-
let
|
|
65
|
-
return "flex items-center p-4 mb-4 text-sm text-" +
|
|
64
|
+
function n() {
|
|
65
|
+
let o = te(t.color);
|
|
66
|
+
return "flex items-center p-4 mb-4 text-sm text-" + o + "-800 border border-" + o + "-300 rounded-lg bg-" + o + "-50 dark:bg-gray-800 dark:text-" + o + "-400 dark:border-" + o + "-800";
|
|
66
67
|
}
|
|
67
|
-
return (
|
|
68
|
-
class:
|
|
68
|
+
return (o, r) => (l(), i("div", {
|
|
69
|
+
class: m(n()),
|
|
69
70
|
role: "alert"
|
|
70
71
|
}, [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
p(d(j), { class: "w-6 h-6 text-gray-400" }),
|
|
73
|
+
a("div", null, [
|
|
74
|
+
a("span", re, y(e.title), 1)
|
|
74
75
|
])
|
|
75
76
|
], 2));
|
|
76
77
|
}
|
|
77
|
-
}),
|
|
78
|
+
}), se = "bg-red-100 text-red-700 border-red-200", M = /* @__PURE__ */ h({
|
|
78
79
|
__name: "BaseBadge",
|
|
79
80
|
props: {
|
|
80
81
|
color: {
|
|
@@ -83,21 +84,88 @@ const te = { class: "font-medium pl-1" }, Be = /* @__PURE__ */ m({
|
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
setup(e) {
|
|
86
|
-
const t =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
const t = F(), n = k(() => !!t.default), o = e, r = {
|
|
88
|
+
[f.RED]: "bg-red-100 text-red-700 border-red-200",
|
|
89
|
+
[f.GREEN]: "bg-green-100 text-green-700 border-green-200",
|
|
90
|
+
[f.BLUE]: "bg-blue-100 text-blue-700 border-blue-200",
|
|
91
|
+
[f.YELLOW]: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
92
|
+
[f.GRAY]: "bg-gray-100 text-gray-700 border-gray-200",
|
|
93
|
+
[f.NONE]: "bg-gray-50 text-gray-600 border-gray-200"
|
|
94
|
+
}, s = k(() => `inline-flex items-center gap-1 font-semibold text-xs leading-none px-3 py-1.5 rounded-full border ${o.color && r[o.color] || se}`);
|
|
95
|
+
return (c, b) => n.value ? (l(), i("span", {
|
|
92
96
|
key: 0,
|
|
93
|
-
class:
|
|
97
|
+
class: m(s.value)
|
|
94
98
|
}, [
|
|
95
|
-
|
|
96
|
-
], 2)) :
|
|
99
|
+
$(c.$slots, "default")
|
|
100
|
+
], 2)) : g("", !0);
|
|
101
|
+
}
|
|
102
|
+
}), ae = {
|
|
103
|
+
class: "flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700",
|
|
104
|
+
"aria-label": "Breadcrumb"
|
|
105
|
+
}, oe = { class: "inline-flex items-center space-x-1 md:space-x-3" }, ne = {
|
|
106
|
+
class: "inline-flex items-center",
|
|
107
|
+
style: { "margin-left": "0" }
|
|
108
|
+
}, Ye = /* @__PURE__ */ h({
|
|
109
|
+
__name: "BaseBreadcrumb",
|
|
110
|
+
props: {
|
|
111
|
+
items: {
|
|
112
|
+
type: Array,
|
|
113
|
+
required: !1,
|
|
114
|
+
default: void 0
|
|
115
|
+
},
|
|
116
|
+
path: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: !1,
|
|
119
|
+
default: void 0
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
setup(e) {
|
|
123
|
+
const t = e, n = k(() => {
|
|
124
|
+
if (t.items && t.items.length > 0)
|
|
125
|
+
return t.items;
|
|
126
|
+
const r = (t.path ?? (typeof window < "u" ? window.location.pathname : "/")).split("/").filter((c) => c !== "");
|
|
127
|
+
let s = "";
|
|
128
|
+
return r.map((c) => (s += "/" + c, { name: Number(c) ? c : (c.charAt(0).toUpperCase() + c.slice(1)).replaceAll("-", " "), url: s }));
|
|
129
|
+
});
|
|
130
|
+
return (o, r) => {
|
|
131
|
+
const s = G("router-link");
|
|
132
|
+
return l(), i("nav", ae, [
|
|
133
|
+
a("ol", oe, [
|
|
134
|
+
a("li", ne, [
|
|
135
|
+
p(s, {
|
|
136
|
+
to: "/",
|
|
137
|
+
class: "inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white"
|
|
138
|
+
}, {
|
|
139
|
+
default: S(() => [
|
|
140
|
+
p(d(ee), { class: "h-4 w-4 text-gray-500 mr-2" }),
|
|
141
|
+
r[0] || (r[0] = C(" Home ", -1))
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
]),
|
|
146
|
+
(l(!0), i(T, null, q(n.value, (c, b) => (l(), i("li", {
|
|
147
|
+
key: b,
|
|
148
|
+
class: "inline-flex items-center",
|
|
149
|
+
style: { "margin-left": "0" }
|
|
150
|
+
}, [
|
|
151
|
+
p(d(X), { class: "h-4 w-4 text-gray-500" }),
|
|
152
|
+
p(s, {
|
|
153
|
+
to: c.url,
|
|
154
|
+
class: "ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2 dark:text-gray-400 dark:hover:text-white"
|
|
155
|
+
}, {
|
|
156
|
+
default: S(() => [
|
|
157
|
+
C(y(c.name), 1)
|
|
158
|
+
]),
|
|
159
|
+
_: 2
|
|
160
|
+
}, 1032, ["to"])
|
|
161
|
+
]))), 128))
|
|
162
|
+
])
|
|
163
|
+
]);
|
|
164
|
+
};
|
|
97
165
|
}
|
|
98
166
|
});
|
|
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 || {}),
|
|
100
|
-
const
|
|
167
|
+
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 || {}), w = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "EXTRA SMALL", e.SMALL = "SMALL", e.BASE = "BASE", e.LARGE = "LARGE", e.EXTRA_LARGE = "EXTRA_LARGE", e))(w || {});
|
|
168
|
+
const le = ["type", "disabled"], ie = { key: 0 }, ce = { key: 1 }, ue = ["type", "disabled"], de = { key: 0 }, ge = { key: 1 }, fe = { key: 2 }, je = /* @__PURE__ */ h({
|
|
101
169
|
__name: "BaseButton",
|
|
102
170
|
props: {
|
|
103
171
|
description: {
|
|
@@ -149,8 +217,8 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
149
217
|
},
|
|
150
218
|
setup(e) {
|
|
151
219
|
const t = e;
|
|
152
|
-
function
|
|
153
|
-
let
|
|
220
|
+
function n() {
|
|
221
|
+
let o = "inline-flex items-center", r;
|
|
154
222
|
switch (t.color) {
|
|
155
223
|
case v.BLUE: {
|
|
156
224
|
r = "focus:outline-none text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300", t.isDisable && (r += " bg-blue-400");
|
|
@@ -183,56 +251,56 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
183
251
|
}
|
|
184
252
|
let s = "px-5 py-2.5 mr-2 mb-2 text-sm";
|
|
185
253
|
switch (t.size) {
|
|
186
|
-
case
|
|
254
|
+
case w.EXTRA_SMALL: {
|
|
187
255
|
s = "px-3 py-2 text-xs";
|
|
188
256
|
break;
|
|
189
257
|
}
|
|
190
|
-
case
|
|
258
|
+
case w.SMALL: {
|
|
191
259
|
s = "px-3 py-2 text-sm";
|
|
192
260
|
break;
|
|
193
261
|
}
|
|
194
|
-
case
|
|
262
|
+
case w.BASE: {
|
|
195
263
|
s = "px-5 py-2.5 text-sm";
|
|
196
264
|
break;
|
|
197
265
|
}
|
|
198
|
-
case
|
|
266
|
+
case w.LARGE: {
|
|
199
267
|
s = "px-5 py-3 text-base";
|
|
200
268
|
break;
|
|
201
269
|
}
|
|
202
|
-
case
|
|
270
|
+
case w.EXTRA_LARGE: {
|
|
203
271
|
s = "px-6 py-3.5 text-base";
|
|
204
272
|
break;
|
|
205
273
|
}
|
|
206
274
|
}
|
|
207
275
|
let c = "rounded-lg";
|
|
208
|
-
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"),
|
|
276
|
+
return t.isRounded && (c = "rounded-full"), t.isDisable && (r += " cursor-not-allowed"), o + " " + s + " " + r + " " + "font-medium" + " " + c;
|
|
209
277
|
}
|
|
210
|
-
return (
|
|
278
|
+
return (o, r) => {
|
|
211
279
|
const s = G("router-link");
|
|
212
|
-
return e.to ? (l(),
|
|
280
|
+
return e.to ? (l(), D(s, {
|
|
213
281
|
key: 0,
|
|
214
282
|
to: e.to
|
|
215
283
|
}, {
|
|
216
|
-
default:
|
|
217
|
-
|
|
284
|
+
default: S(() => [
|
|
285
|
+
a("button", {
|
|
218
286
|
type: t.type,
|
|
219
|
-
class:
|
|
287
|
+
class: m(n()),
|
|
220
288
|
disabled: e.isDisable
|
|
221
289
|
}, [
|
|
222
|
-
e.iconLeft ?
|
|
223
|
-
|
|
224
|
-
e.iconLeft ? (l(), i("span",
|
|
225
|
-
], 10,
|
|
290
|
+
e.iconLeft ? g("", !0) : (l(), i("span", ie, y(e.description), 1)),
|
|
291
|
+
$(o.$slots, "default"),
|
|
292
|
+
e.iconLeft ? (l(), i("span", ce, y(e.description), 1)) : g("", !0)
|
|
293
|
+
], 10, le)
|
|
226
294
|
]),
|
|
227
295
|
_: 3
|
|
228
296
|
}, 8, ["to"])) : (l(), i("button", {
|
|
229
297
|
key: 1,
|
|
230
298
|
type: t.type,
|
|
231
|
-
class:
|
|
299
|
+
class: m(n()),
|
|
232
300
|
disabled: e.isDisable
|
|
233
301
|
}, [
|
|
234
|
-
e.isLoading ? (l(), i("div",
|
|
235
|
-
|
|
302
|
+
e.isLoading ? (l(), i("div", de, [...r[0] || (r[0] = [
|
|
303
|
+
a("svg", {
|
|
236
304
|
"aria-hidden": "true",
|
|
237
305
|
role: "status",
|
|
238
306
|
class: "inline w-4 h-4 me-3 text-white animate-spin",
|
|
@@ -240,105 +308,105 @@ const re = ["type", "disabled"], se = { key: 0 }, oe = { key: 1 }, ae = ["type",
|
|
|
240
308
|
fill: "none",
|
|
241
309
|
xmlns: "http://www.w3.org/2000/svg"
|
|
242
310
|
}, [
|
|
243
|
-
|
|
311
|
+
a("path", {
|
|
244
312
|
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
313
|
fill: "#E5E7EB"
|
|
246
314
|
}),
|
|
247
|
-
|
|
315
|
+
a("path", {
|
|
248
316
|
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
317
|
fill: "currentColor"
|
|
250
318
|
})
|
|
251
319
|
], -1)
|
|
252
|
-
])])) :
|
|
253
|
-
e.iconLeft ?
|
|
254
|
-
|
|
255
|
-
e.iconLeft ? (l(), i("span",
|
|
256
|
-
], 10,
|
|
320
|
+
])])) : g("", !0),
|
|
321
|
+
e.iconLeft ? g("", !0) : (l(), i("span", ge, y(e.description), 1)),
|
|
322
|
+
$(o.$slots, "default"),
|
|
323
|
+
e.iconLeft ? (l(), i("span", fe, y(e.description), 1)) : g("", !0)
|
|
324
|
+
], 10, ue));
|
|
257
325
|
};
|
|
258
326
|
}
|
|
259
327
|
});
|
|
260
|
-
var
|
|
261
|
-
const
|
|
328
|
+
var L = /* @__PURE__ */ ((e) => (e.BASE = "BASE", e.BASE_SHORTER = "BASE_SHORTER", e.SQUARE = "SQUARE", e))(L || {});
|
|
329
|
+
const be = {
|
|
262
330
|
key: 0,
|
|
263
331
|
class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700"
|
|
264
|
-
},
|
|
332
|
+
}, pe = {
|
|
265
333
|
key: 1,
|
|
266
334
|
class: "w-48 h-1 mx-auto my-4 bg-gray-100 border-0 rounded md:my-10 dark:bg-gray-700"
|
|
267
|
-
},
|
|
335
|
+
}, ye = {
|
|
268
336
|
key: 2,
|
|
269
337
|
class: "w-8 h-8 mx-auto my-8 bg-gray-200 border-0 rounded md:my-12 dark:bg-gray-700"
|
|
270
|
-
},
|
|
338
|
+
}, Xe = /* @__PURE__ */ h({
|
|
271
339
|
__name: "BaseLine",
|
|
272
340
|
props: {
|
|
273
341
|
mode: {
|
|
274
342
|
type: String,
|
|
275
343
|
required: !1,
|
|
276
|
-
default:
|
|
344
|
+
default: L.BASE
|
|
277
345
|
}
|
|
278
346
|
},
|
|
279
347
|
setup(e) {
|
|
280
|
-
return (t,
|
|
281
|
-
e.mode ===
|
|
282
|
-
e.mode ===
|
|
283
|
-
e.mode ===
|
|
348
|
+
return (t, n) => (l(), i(T, null, [
|
|
349
|
+
e.mode === d(L).BASE ? (l(), i("hr", be)) : g("", !0),
|
|
350
|
+
e.mode === d(L).BASE_SHORTER ? (l(), i("hr", pe)) : g("", !0),
|
|
351
|
+
e.mode === d(L).SQUARE ? (l(), i("hr", ye)) : g("", !0)
|
|
284
352
|
], 64));
|
|
285
353
|
}
|
|
286
354
|
});
|
|
287
|
-
var
|
|
288
|
-
const
|
|
355
|
+
var A = /* @__PURE__ */ ((e) => (e.SMALL = "SMALL", e.MEDIUM = "MEDIUM", e.LARGE = "LARGE", e))(A || {});
|
|
356
|
+
const me = ["height", "width"], Ke = /* @__PURE__ */ h({
|
|
289
357
|
__name: "BaseLogo",
|
|
290
358
|
props: {
|
|
291
359
|
size: {
|
|
292
360
|
type: String,
|
|
293
361
|
required: !1,
|
|
294
|
-
default:
|
|
362
|
+
default: A.MEDIUM
|
|
295
363
|
}
|
|
296
364
|
},
|
|
297
365
|
setup(e) {
|
|
298
366
|
const t = e;
|
|
299
|
-
function
|
|
300
|
-
let
|
|
367
|
+
function n() {
|
|
368
|
+
let o = "";
|
|
301
369
|
switch (t.size) {
|
|
302
|
-
case
|
|
303
|
-
|
|
370
|
+
case A.SMALL: {
|
|
371
|
+
o = "50px";
|
|
304
372
|
break;
|
|
305
373
|
}
|
|
306
|
-
case
|
|
307
|
-
|
|
374
|
+
case A.MEDIUM: {
|
|
375
|
+
o = "100px";
|
|
308
376
|
break;
|
|
309
377
|
}
|
|
310
|
-
case
|
|
311
|
-
|
|
378
|
+
case A.LARGE: {
|
|
379
|
+
o = "150px";
|
|
312
380
|
break;
|
|
313
381
|
}
|
|
314
382
|
}
|
|
315
|
-
return
|
|
383
|
+
return o;
|
|
316
384
|
}
|
|
317
|
-
return (
|
|
385
|
+
return (o, r) => {
|
|
318
386
|
const s = G("router-link");
|
|
319
|
-
return l(),
|
|
387
|
+
return l(), D(s, {
|
|
320
388
|
to: "/",
|
|
321
389
|
class: "flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white"
|
|
322
390
|
}, {
|
|
323
|
-
default:
|
|
391
|
+
default: S(() => [
|
|
324
392
|
(l(), i("svg", {
|
|
325
|
-
height:
|
|
326
|
-
width:
|
|
393
|
+
height: n(),
|
|
394
|
+
width: n(),
|
|
327
395
|
viewBox: "33.6 130.6 499.7 242.9",
|
|
328
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
329
397
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
330
398
|
}, [...r[0] || (r[0] = [
|
|
331
|
-
|
|
332
|
-
|
|
399
|
+
a("linearGradient", { id: "a" }, [
|
|
400
|
+
a("stop", {
|
|
333
401
|
offset: ".085",
|
|
334
402
|
"stop-color": "#469e43"
|
|
335
403
|
}),
|
|
336
|
-
|
|
404
|
+
a("stop", {
|
|
337
405
|
offset: "1",
|
|
338
406
|
"stop-color": "#132d13"
|
|
339
407
|
})
|
|
340
408
|
], -1),
|
|
341
|
-
|
|
409
|
+
a("linearGradient", {
|
|
342
410
|
id: "b",
|
|
343
411
|
gradientUnits: "userSpaceOnUse",
|
|
344
412
|
x1: "64.863",
|
|
@@ -347,7 +415,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
347
415
|
y1: "288.291",
|
|
348
416
|
y2: "369.4"
|
|
349
417
|
}, null, -1),
|
|
350
|
-
|
|
418
|
+
a("linearGradient", {
|
|
351
419
|
id: "c",
|
|
352
420
|
gradientUnits: "userSpaceOnUse",
|
|
353
421
|
x1: "138.367",
|
|
@@ -356,7 +424,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
356
424
|
y1: "308.454",
|
|
357
425
|
y2: "370.601"
|
|
358
426
|
}, null, -1),
|
|
359
|
-
|
|
427
|
+
a("linearGradient", {
|
|
360
428
|
id: "d",
|
|
361
429
|
gradientUnits: "userSpaceOnUse",
|
|
362
430
|
x1: "195.475",
|
|
@@ -365,7 +433,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
365
433
|
y1: "288.291",
|
|
366
434
|
y2: "369.85"
|
|
367
435
|
}, null, -1),
|
|
368
|
-
|
|
436
|
+
a("linearGradient", {
|
|
369
437
|
id: "e",
|
|
370
438
|
gradientUnits: "userSpaceOnUse",
|
|
371
439
|
x1: "249.634",
|
|
@@ -374,7 +442,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
374
442
|
y1: "307.312",
|
|
375
443
|
y2: "369.511"
|
|
376
444
|
}, null, -1),
|
|
377
|
-
|
|
445
|
+
a("linearGradient", {
|
|
378
446
|
id: "f",
|
|
379
447
|
gradientUnits: "userSpaceOnUse",
|
|
380
448
|
x1: "302.884",
|
|
@@ -383,7 +451,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
383
451
|
y1: "288.291",
|
|
384
452
|
y2: "367.857"
|
|
385
453
|
}, null, -1),
|
|
386
|
-
|
|
454
|
+
a("linearGradient", {
|
|
387
455
|
id: "g",
|
|
388
456
|
gradientUnits: "userSpaceOnUse",
|
|
389
457
|
x1: "354.118",
|
|
@@ -392,7 +460,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
392
460
|
y1: "307.312",
|
|
393
461
|
y2: "369.511"
|
|
394
462
|
}, null, -1),
|
|
395
|
-
|
|
463
|
+
a("linearGradient", {
|
|
396
464
|
id: "h",
|
|
397
465
|
gradientUnits: "userSpaceOnUse",
|
|
398
466
|
x1: "428.02",
|
|
@@ -401,7 +469,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
401
469
|
y1: "306.156",
|
|
402
470
|
y2: "367.742"
|
|
403
471
|
}, null, -1),
|
|
404
|
-
|
|
472
|
+
a("linearGradient", {
|
|
405
473
|
id: "i",
|
|
406
474
|
gradientUnits: "userSpaceOnUse",
|
|
407
475
|
x1: "502.066",
|
|
@@ -410,7 +478,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
410
478
|
y1: "288.291",
|
|
411
479
|
y2: "369.4"
|
|
412
480
|
}, null, -1),
|
|
413
|
-
|
|
481
|
+
a("linearGradient", {
|
|
414
482
|
id: "j",
|
|
415
483
|
gradientUnits: "userSpaceOnUse",
|
|
416
484
|
x1: "283.264",
|
|
@@ -419,7 +487,7 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
419
487
|
y1: "131.629",
|
|
420
488
|
y2: "232.559"
|
|
421
489
|
}, null, -1),
|
|
422
|
-
|
|
490
|
+
a("linearGradient", {
|
|
423
491
|
id: "k",
|
|
424
492
|
gradientUnits: "userSpaceOnUse",
|
|
425
493
|
x1: "283.46",
|
|
@@ -427,68 +495,68 @@ const fe = ["height", "width"], ze = /* @__PURE__ */ m({
|
|
|
427
495
|
y1: "202.275",
|
|
428
496
|
y2: "183.785"
|
|
429
497
|
}, [
|
|
430
|
-
|
|
498
|
+
a("stop", {
|
|
431
499
|
offset: "0",
|
|
432
500
|
"stop-color": "#969799",
|
|
433
501
|
"stop-opacity": "0"
|
|
434
502
|
}),
|
|
435
|
-
|
|
503
|
+
a("stop", {
|
|
436
504
|
offset: "1",
|
|
437
505
|
"stop-color": "#808183"
|
|
438
506
|
})
|
|
439
507
|
], -1),
|
|
440
|
-
|
|
508
|
+
a("path", {
|
|
441
509
|
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
510
|
fill: "url(#b)"
|
|
443
511
|
}, null, -1),
|
|
444
|
-
|
|
512
|
+
a("path", {
|
|
445
513
|
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
514
|
fill: "url(#c)"
|
|
447
515
|
}, null, -1),
|
|
448
|
-
|
|
516
|
+
a("path", {
|
|
449
517
|
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
518
|
fill: "url(#d)"
|
|
451
519
|
}, null, -1),
|
|
452
|
-
|
|
520
|
+
a("path", {
|
|
453
521
|
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
522
|
fill: "url(#e)"
|
|
455
523
|
}, null, -1),
|
|
456
|
-
|
|
524
|
+
a("path", {
|
|
457
525
|
d: "m296.4 288.3h13v79.6h-13z",
|
|
458
526
|
fill: "url(#f)"
|
|
459
527
|
}, null, -1),
|
|
460
|
-
|
|
528
|
+
a("path", {
|
|
461
529
|
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
530
|
fill: "url(#g)"
|
|
463
531
|
}, null, -1),
|
|
464
|
-
|
|
532
|
+
a("path", {
|
|
465
533
|
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
534
|
fill: "url(#h)"
|
|
467
535
|
}, null, -1),
|
|
468
|
-
|
|
536
|
+
a("path", {
|
|
469
537
|
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
538
|
fill: "url(#i)"
|
|
471
539
|
}, null, -1),
|
|
472
|
-
|
|
540
|
+
a("path", {
|
|
473
541
|
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
542
|
fill: "url(#j)"
|
|
475
543
|
}, null, -1),
|
|
476
|
-
|
|
544
|
+
a("path", {
|
|
477
545
|
d: "m281.7 183.8h3.6v18.5h-3.6z",
|
|
478
546
|
fill: "url(#k)"
|
|
479
547
|
}, null, -1)
|
|
480
|
-
])], 8,
|
|
548
|
+
])], 8, me))
|
|
481
549
|
]),
|
|
482
550
|
_: 1
|
|
483
551
|
});
|
|
484
552
|
};
|
|
485
553
|
}
|
|
486
554
|
});
|
|
487
|
-
var
|
|
488
|
-
const
|
|
555
|
+
var P = /* @__PURE__ */ ((e) => (e.DELETE = "DELETE", e.SUCCESS = "SUCCESS", e))(P || {});
|
|
556
|
+
const he = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white" }, xe = {
|
|
489
557
|
key: 0,
|
|
490
558
|
class: "p-6 text-center"
|
|
491
|
-
},
|
|
559
|
+
}, ve = { class: "mb-5 text-lg font-normal text-gray-500 dark:text-gray-400" }, ke = { class: "flex justify-center" }, Ee = /* @__PURE__ */ h({
|
|
492
560
|
__name: "BaseModal",
|
|
493
561
|
props: {
|
|
494
562
|
title: {
|
|
@@ -512,40 +580,40 @@ const ge = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
512
580
|
},
|
|
513
581
|
emits: ["closeModal", "confirmModal"],
|
|
514
582
|
setup(e) {
|
|
515
|
-
return (t,
|
|
516
|
-
const
|
|
517
|
-
return l(), i(
|
|
518
|
-
|
|
583
|
+
return (t, n) => {
|
|
584
|
+
const o = G("base-button");
|
|
585
|
+
return l(), i(T, null, [
|
|
586
|
+
a("div", {
|
|
519
587
|
class: "outside",
|
|
520
|
-
onClick:
|
|
588
|
+
onClick: n[0] || (n[0] = (r) => t.$emit("closeModal"))
|
|
521
589
|
}),
|
|
522
|
-
|
|
523
|
-
e.mode ===
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
color:
|
|
529
|
-
onClick:
|
|
590
|
+
a("div", he, [
|
|
591
|
+
e.mode === d(P).DELETE ? (l(), i("div", xe, [
|
|
592
|
+
p(d(z), { class: "w-12 h-12 text-gray-400 mx-auto mb-4" }),
|
|
593
|
+
a("h3", ve, " Are you sure you want to delete this " + y(e.title) + "? ", 1),
|
|
594
|
+
a("div", ke, [
|
|
595
|
+
p(o, {
|
|
596
|
+
color: d(v).RED,
|
|
597
|
+
onClick: n[1] || (n[1] = (r) => t.$emit("confirmModal")),
|
|
530
598
|
description: "Yes, I'm sure"
|
|
531
599
|
}, null, 8, ["color"]),
|
|
532
|
-
|
|
533
|
-
color:
|
|
534
|
-
onClick:
|
|
600
|
+
p(o, {
|
|
601
|
+
color: d(v).WHITE,
|
|
602
|
+
onClick: n[2] || (n[2] = (r) => t.$emit("closeModal")),
|
|
535
603
|
description: "No, cancel"
|
|
536
604
|
}, null, 8, ["color"])
|
|
537
605
|
])
|
|
538
|
-
])) :
|
|
606
|
+
])) : g("", !0)
|
|
539
607
|
])
|
|
540
608
|
], 64);
|
|
541
609
|
};
|
|
542
610
|
}
|
|
543
611
|
}), I = (e, t) => {
|
|
544
|
-
const
|
|
545
|
-
for (const [
|
|
546
|
-
|
|
547
|
-
return
|
|
548
|
-
},
|
|
612
|
+
const n = e.__vccOpts || e;
|
|
613
|
+
for (const [o, r] of t)
|
|
614
|
+
n[o] = r;
|
|
615
|
+
return n;
|
|
616
|
+
}, Ve = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-492169b3"]]), Qe = /* @__PURE__ */ h({
|
|
549
617
|
__name: "BaseRow",
|
|
550
618
|
props: {
|
|
551
619
|
bgColor: {
|
|
@@ -556,28 +624,28 @@ const ge = { class: "dialog relative top-20 mx-auto p-5 border w-96 shadow-lg ro
|
|
|
556
624
|
},
|
|
557
625
|
setup(e) {
|
|
558
626
|
const t = e;
|
|
559
|
-
function
|
|
560
|
-
return "block p-
|
|
627
|
+
function n() {
|
|
628
|
+
return "block p-8 border border-gray-200 rounded-xl shadow-sm dark:bg-gray-800 dark:border-gray-700 " + t.bgColor;
|
|
561
629
|
}
|
|
562
|
-
return (
|
|
563
|
-
class:
|
|
630
|
+
return (o, r) => (l(), i("div", {
|
|
631
|
+
class: m(n())
|
|
564
632
|
}, [
|
|
565
|
-
|
|
633
|
+
$(o.$slots, "default")
|
|
566
634
|
], 2));
|
|
567
635
|
}
|
|
568
|
-
}),
|
|
569
|
-
function
|
|
570
|
-
return l(), i("div",
|
|
636
|
+
}), _e = {}, we = { class: "w-4 h-4 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin" };
|
|
637
|
+
function Re(e, t) {
|
|
638
|
+
return l(), i("div", we);
|
|
571
639
|
}
|
|
572
|
-
const
|
|
573
|
-
var
|
|
574
|
-
const
|
|
640
|
+
const Ze = /* @__PURE__ */ I(_e, [["render", Re]]);
|
|
641
|
+
var _ = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.WARNING = "WARNING", e.ERROR = "ERROR", e))(_ || {}), O = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "TOP_LEFT", e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e.BOTTOM_RIGHT = "BOTTOM_RIGHT", e))(O || {});
|
|
642
|
+
const Se = { 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" }, Ce = { class: "ml-3 text-sm font-normal" }, Le = {
|
|
575
643
|
key: 3,
|
|
576
644
|
type: "button",
|
|
577
645
|
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",
|
|
578
646
|
"data-dismiss-target": "#toast-danger",
|
|
579
647
|
"aria-label": "Close"
|
|
580
|
-
},
|
|
648
|
+
}, Je = /* @__PURE__ */ h({
|
|
581
649
|
__name: "BaseToast",
|
|
582
650
|
props: {
|
|
583
651
|
mode: {
|
|
@@ -601,81 +669,81 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
601
669
|
},
|
|
602
670
|
setup(e) {
|
|
603
671
|
const t = e;
|
|
604
|
-
function
|
|
672
|
+
function n() {
|
|
605
673
|
let c = "";
|
|
606
674
|
switch (t.mode) {
|
|
607
|
-
case
|
|
675
|
+
case _.ERROR:
|
|
608
676
|
c = "text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200";
|
|
609
677
|
break;
|
|
610
|
-
case
|
|
678
|
+
case _.SUCCESS:
|
|
611
679
|
c = "text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200";
|
|
612
680
|
break;
|
|
613
|
-
case
|
|
681
|
+
case _.WARNING:
|
|
614
682
|
c = "text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200";
|
|
615
683
|
break;
|
|
616
684
|
}
|
|
617
685
|
return "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 rounded-lg " + c;
|
|
618
686
|
}
|
|
619
|
-
function
|
|
687
|
+
function o() {
|
|
620
688
|
let c = "top-5 right-5";
|
|
621
689
|
switch (t.positioning) {
|
|
622
|
-
case
|
|
690
|
+
case O.BOTTOM_LEFT:
|
|
623
691
|
c = "bottom-5";
|
|
624
692
|
break;
|
|
625
|
-
case
|
|
693
|
+
case O.TOP_LEFT:
|
|
626
694
|
c = "top-5";
|
|
627
695
|
break;
|
|
628
|
-
case
|
|
696
|
+
case O.TOP_RIGHT:
|
|
629
697
|
c = "top-5 right-5";
|
|
630
698
|
break;
|
|
631
|
-
case
|
|
699
|
+
case O.BOTTOM_RIGHT:
|
|
632
700
|
c = "bottom-5 right-5";
|
|
633
701
|
break;
|
|
634
702
|
}
|
|
635
703
|
return "fixed flex items-center w-full max-w-md p-4 space-x-4 divide-x rounded-lg " + c + " space-x";
|
|
636
704
|
}
|
|
637
|
-
const r =
|
|
705
|
+
const r = U(!0);
|
|
638
706
|
function s() {
|
|
639
707
|
setTimeout(() => r.value = !1, 1e6);
|
|
640
708
|
}
|
|
641
|
-
return s(), (c,
|
|
709
|
+
return s(), (c, b) => r.value ? (l(), i("div", {
|
|
642
710
|
key: 0,
|
|
643
711
|
id: "toast-top-right",
|
|
644
|
-
class:
|
|
712
|
+
class: m(o()),
|
|
645
713
|
role: "alert"
|
|
646
714
|
}, [
|
|
647
|
-
|
|
648
|
-
e.mode ==
|
|
715
|
+
a("div", Se, [
|
|
716
|
+
e.mode == d(_).ERROR ? (l(), i("div", {
|
|
649
717
|
key: 0,
|
|
650
|
-
class:
|
|
718
|
+
class: m(n())
|
|
651
719
|
}, [
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
], 2)) : e.mode ==
|
|
720
|
+
p(d(z), { class: "h-6 w-6 text-red-500" }),
|
|
721
|
+
b[1] || (b[1] = a("span", { class: "sr-only" }, "Error icon", -1))
|
|
722
|
+
], 2)) : e.mode == d(_).SUCCESS ? (l(), i("div", {
|
|
655
723
|
key: 1,
|
|
656
|
-
class:
|
|
724
|
+
class: m(n())
|
|
657
725
|
}, [
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
], 2)) : e.mode ==
|
|
726
|
+
p(d(K), { class: "h-6 w-6 text-green-500" }),
|
|
727
|
+
b[2] || (b[2] = a("span", { class: "sr-only" }, "Check icon", -1))
|
|
728
|
+
], 2)) : e.mode == d(_).WARNING ? (l(), i("div", {
|
|
661
729
|
key: 2,
|
|
662
|
-
class:
|
|
730
|
+
class: m(n())
|
|
663
731
|
}, [
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
], 2)) :
|
|
667
|
-
|
|
668
|
-
e.hasCloseIcon ? (l(), i("button",
|
|
669
|
-
|
|
670
|
-
|
|
732
|
+
p(d(V), { class: "h-6 w-6 text-yellow-500" }),
|
|
733
|
+
b[3] || (b[3] = a("span", { class: "sr-only" }, "Warning icon", -1))
|
|
734
|
+
], 2)) : g("", !0),
|
|
735
|
+
a("div", Ce, y(e.description), 1),
|
|
736
|
+
e.hasCloseIcon ? (l(), i("button", Le, [
|
|
737
|
+
b[4] || (b[4] = a("span", { class: "sr-only" }, "Close", -1)),
|
|
738
|
+
p(d(Q), {
|
|
671
739
|
class: "h-6 w-6 text-gray-500 cursor-pointer",
|
|
672
|
-
onClick:
|
|
740
|
+
onClick: b[0] || (b[0] = (u) => r.value = !r.value)
|
|
673
741
|
})
|
|
674
|
-
])) :
|
|
742
|
+
])) : g("", !0)
|
|
675
743
|
])
|
|
676
|
-
], 2)) :
|
|
744
|
+
], 2)) : g("", !0);
|
|
677
745
|
}
|
|
678
|
-
}),
|
|
746
|
+
}), Ae = { class: "w-13" }, et = /* @__PURE__ */ h({
|
|
679
747
|
__name: "ColoredSquares",
|
|
680
748
|
props: {
|
|
681
749
|
color: {
|
|
@@ -684,7 +752,7 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
684
752
|
}
|
|
685
753
|
},
|
|
686
754
|
setup(e) {
|
|
687
|
-
const t = e,
|
|
755
|
+
const t = e, n = [
|
|
688
756
|
"bg-slate-300",
|
|
689
757
|
"bg-zinc-300",
|
|
690
758
|
"bg-neutral-300",
|
|
@@ -694,48 +762,48 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
694
762
|
"bg-yellow-300",
|
|
695
763
|
"bg-purple-300",
|
|
696
764
|
"bg-pink-300"
|
|
697
|
-
],
|
|
765
|
+
], o = k(() => n[Math.floor(Math.random() * n.length)]);
|
|
698
766
|
function r() {
|
|
699
767
|
let s = "gray";
|
|
700
768
|
switch (t.color) {
|
|
701
|
-
case
|
|
769
|
+
case f.GREEN: {
|
|
702
770
|
s = "green";
|
|
703
771
|
break;
|
|
704
772
|
}
|
|
705
|
-
case
|
|
773
|
+
case f.RED: {
|
|
706
774
|
s = "red";
|
|
707
775
|
break;
|
|
708
776
|
}
|
|
709
|
-
case
|
|
777
|
+
case f.BLUE: {
|
|
710
778
|
s = "blue";
|
|
711
779
|
break;
|
|
712
780
|
}
|
|
713
|
-
case
|
|
781
|
+
case f.YELLOW: {
|
|
714
782
|
s = "yellow";
|
|
715
783
|
break;
|
|
716
784
|
}
|
|
717
|
-
case
|
|
785
|
+
case f.NONE: {
|
|
718
786
|
s = "";
|
|
719
787
|
break;
|
|
720
788
|
}
|
|
721
789
|
}
|
|
722
790
|
return "font-bold bg-" + s + "-100 text-" + s + "-800 text-xs mr-2 px-2.5 py-0.5 rounded-full";
|
|
723
791
|
}
|
|
724
|
-
return (s, c) => (l(), i("div",
|
|
725
|
-
|
|
726
|
-
class:
|
|
792
|
+
return (s, c) => (l(), i("div", Ae, [
|
|
793
|
+
a("div", {
|
|
794
|
+
class: m(["border border-gray-300 relative aspect-square rounded-lg bg-white shadow-sm overflow-hidden flex items-center justify-center text-center", r()])
|
|
727
795
|
}, [
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
class:
|
|
796
|
+
$(s.$slots, "default"),
|
|
797
|
+
a("div", {
|
|
798
|
+
class: m(["absolute bottom-0 left-0 h-1 w-full", o.value])
|
|
731
799
|
}, null, 2)
|
|
732
800
|
], 2)
|
|
733
801
|
]));
|
|
734
802
|
}
|
|
735
|
-
}),
|
|
803
|
+
}), Oe = {
|
|
736
804
|
key: 0,
|
|
737
805
|
class: "font-bold text-green-800"
|
|
738
|
-
},
|
|
806
|
+
}, $e = { key: 0 }, Te = { key: 0 }, Ue = "font-bold", tt = /* @__PURE__ */ h({
|
|
739
807
|
__name: "EuroAmount",
|
|
740
808
|
props: {
|
|
741
809
|
amount: {
|
|
@@ -754,25 +822,25 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
754
822
|
}
|
|
755
823
|
},
|
|
756
824
|
setup(e) {
|
|
757
|
-
const t = e,
|
|
758
|
-
return (
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
e.showCurrency ? (l(), i("span",
|
|
762
|
-
])) :
|
|
763
|
-
|
|
825
|
+
const t = e, n = k(() => t.amount !== null && t.amount !== void 0), o = k(() => n.value && t.amount < 0), r = k(() => t.beforeAmount === null || t.beforeAmount === void 0 ? !1 : t.amount < t.beforeAmount), s = k(() => o.value || r.value), c = k(() => !o.value && !r.value && !(t.beforeAmount === null || t.beforeAmount === void 0));
|
|
826
|
+
return (b, u) => (l(), i(T, null, [
|
|
827
|
+
n.value && c.value ? (l(), i("span", Oe, [
|
|
828
|
+
C(y(e.amount) + " ", 1),
|
|
829
|
+
e.showCurrency ? (l(), i("span", $e, "€")) : g("", !0)
|
|
830
|
+
])) : g("", !0),
|
|
831
|
+
n.value && !c.value ? (l(), i("span", {
|
|
764
832
|
key: 1,
|
|
765
|
-
class:
|
|
833
|
+
class: m([Ue, s.value ? "text-red-800" : "text-gray-800"])
|
|
766
834
|
}, [
|
|
767
|
-
|
|
768
|
-
e.showCurrency ? (l(), i("span",
|
|
769
|
-
], 2)) :
|
|
835
|
+
C(y(e.amount) + " ", 1),
|
|
836
|
+
e.showCurrency ? (l(), i("span", Te, "€")) : g("", !0)
|
|
837
|
+
], 2)) : g("", !0)
|
|
770
838
|
], 64));
|
|
771
839
|
}
|
|
772
|
-
}),
|
|
840
|
+
}), Ge = ["onClick"], Ie = {
|
|
773
841
|
key: 1,
|
|
774
842
|
style: { cursor: "not-allowed" }
|
|
775
|
-
},
|
|
843
|
+
}, Be = /* @__PURE__ */ h({
|
|
776
844
|
__name: "Pagination",
|
|
777
845
|
props: {
|
|
778
846
|
totalItems: {
|
|
@@ -787,54 +855,54 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
787
855
|
},
|
|
788
856
|
emits: ["page-changed"],
|
|
789
857
|
setup(e, { emit: t }) {
|
|
790
|
-
const
|
|
791
|
-
function
|
|
792
|
-
if (u !==
|
|
858
|
+
const n = e, o = U(1), r = U(0), s = U([]), c = t;
|
|
859
|
+
function b(u) {
|
|
860
|
+
if (u !== o.value && u >= 1 && u <= r.value && (o.value = u), r.value > 5) {
|
|
793
861
|
s.value = [], u - 3 > 0 && (s.value.push(1), s.value.push(0));
|
|
794
862
|
for (let x = 2; x >= 1; x--) {
|
|
795
863
|
let N = u - x;
|
|
796
864
|
N > 0 && s.value.push(N);
|
|
797
865
|
}
|
|
798
|
-
s.value.push(
|
|
799
|
-
let
|
|
800
|
-
if (
|
|
801
|
-
for (let x = 1; x <=
|
|
866
|
+
s.value.push(o.value);
|
|
867
|
+
let E = r.value - u, B = E > 2, H = 2;
|
|
868
|
+
if (B) {
|
|
869
|
+
for (let x = 1; x <= H; x++)
|
|
802
870
|
s.value.push(u + x);
|
|
803
871
|
s.value.push(0), s.value.push(r.value);
|
|
804
872
|
} else
|
|
805
|
-
for (let x = 1; x <=
|
|
873
|
+
for (let x = 1; x <= E; x++)
|
|
806
874
|
s.value.push(u + x);
|
|
807
875
|
}
|
|
808
876
|
c("page-changed", u);
|
|
809
877
|
}
|
|
810
|
-
return
|
|
811
|
-
if (r.value = Math.ceil(
|
|
878
|
+
return Y(() => n.totalItems, () => {
|
|
879
|
+
if (r.value = Math.ceil(n.totalItems / n.itemsPerPage), s.value = [], r.value > 5) {
|
|
812
880
|
for (let u = 1; u < 5; u++)
|
|
813
881
|
s.value.push(u);
|
|
814
882
|
s.value.push(0), s.value.push(r.value);
|
|
815
883
|
} else
|
|
816
884
|
for (let u = 1; u <= r.value; u++)
|
|
817
885
|
s.value.push(u);
|
|
818
|
-
}), (u,
|
|
819
|
-
|
|
820
|
-
(l(!0), i(
|
|
821
|
-
|
|
886
|
+
}), (u, W) => (l(), i("div", null, [
|
|
887
|
+
a("ul", null, [
|
|
888
|
+
(l(!0), i(T, null, q(s.value, (E) => (l(), i("li", { key: E }, [
|
|
889
|
+
E !== 0 ? (l(), i("a", {
|
|
822
890
|
key: 0,
|
|
823
|
-
onClick: (
|
|
824
|
-
class:
|
|
825
|
-
},
|
|
826
|
-
|
|
891
|
+
onClick: (B) => b(E),
|
|
892
|
+
class: m({ active: E === o.value })
|
|
893
|
+
}, y(E), 11, Ge)) : g("", !0),
|
|
894
|
+
E === 0 ? (l(), i("span", Ie, "...")) : g("", !0)
|
|
827
895
|
]))), 128))
|
|
828
896
|
])
|
|
829
897
|
]));
|
|
830
898
|
}
|
|
831
|
-
}),
|
|
899
|
+
}), rt = /* @__PURE__ */ I(Be, [["__scopeId", "data-v-248e09af"]]), Ne = { key: 0 }, Me = {
|
|
832
900
|
key: 0,
|
|
833
901
|
class: "flex items-center space-x-2"
|
|
834
|
-
},
|
|
902
|
+
}, qe = {
|
|
835
903
|
key: 1,
|
|
836
904
|
class: "flex items-center space-x-2"
|
|
837
|
-
},
|
|
905
|
+
}, st = /* @__PURE__ */ h({
|
|
838
906
|
__name: "TrendArrow",
|
|
839
907
|
props: {
|
|
840
908
|
number: {
|
|
@@ -847,57 +915,58 @@ const ke = { class: "flex items-center w-full max-w-md p-4 mb-4 text-gray-500 bg
|
|
|
847
915
|
}
|
|
848
916
|
},
|
|
849
917
|
setup(e) {
|
|
850
|
-
const t = e,
|
|
851
|
-
return (
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
color: f
|
|
918
|
+
const t = e, n = k(() => t.number !== null && t.number !== void 0 && t.number < 0);
|
|
919
|
+
return (o, r) => e.number ? (l(), i("div", Ne, [
|
|
920
|
+
n.value ? (l(), i("span", Me, [
|
|
921
|
+
p(M, {
|
|
922
|
+
color: d(f).RED
|
|
855
923
|
}, {
|
|
856
|
-
default:
|
|
857
|
-
|
|
924
|
+
default: S(() => [
|
|
925
|
+
C(y(e.number) + y(t.icon), 1)
|
|
858
926
|
]),
|
|
859
927
|
_: 1
|
|
860
928
|
}, 8, ["color"]),
|
|
861
|
-
|
|
862
|
-
])) : (l(), i("span",
|
|
863
|
-
|
|
864
|
-
color: f
|
|
929
|
+
p(d(Z), { class: "h-5 w-5 text-red-500" })
|
|
930
|
+
])) : (l(), i("span", qe, [
|
|
931
|
+
p(M, {
|
|
932
|
+
color: d(f).GREEN
|
|
865
933
|
}, {
|
|
866
|
-
default:
|
|
867
|
-
|
|
934
|
+
default: S(() => [
|
|
935
|
+
C(y(e.number) + y(t.icon), 1)
|
|
868
936
|
]),
|
|
869
937
|
_: 1
|
|
870
938
|
}, 8, ["color"]),
|
|
871
|
-
|
|
939
|
+
p(d(J), { class: "h-5 w-5 text-green-500" })
|
|
872
940
|
]))
|
|
873
|
-
])) :
|
|
941
|
+
])) : g("", !0);
|
|
874
942
|
}
|
|
875
943
|
});
|
|
876
|
-
var
|
|
944
|
+
var De = /* @__PURE__ */ ((e) => (e.WIN = "WIN", e.LOSE = "LOSE", e))(De || {});
|
|
877
945
|
export {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
946
|
+
R as AlertEnum,
|
|
947
|
+
Fe as BaseAlert,
|
|
948
|
+
M as BaseBadge,
|
|
949
|
+
De as BaseBadgeEnum,
|
|
950
|
+
Ye as BaseBreadcrumb,
|
|
951
|
+
je as BaseButton,
|
|
883
952
|
v as BaseButtonEnum,
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
953
|
+
w as BaseButtonSizeEnum,
|
|
954
|
+
Xe as BaseLine,
|
|
955
|
+
A as BaseLoginEnum,
|
|
956
|
+
Ke as BaseLogo,
|
|
957
|
+
Ve as BaseModal,
|
|
958
|
+
P as BaseModalEnum,
|
|
959
|
+
Qe as BaseRow,
|
|
960
|
+
Ze as BaseSpinner,
|
|
961
|
+
Je as BaseToast,
|
|
962
|
+
_ as BaseToastEnum,
|
|
963
|
+
et as ColoredSquares,
|
|
964
|
+
f as ColorsEnums,
|
|
965
|
+
tt as EuroAmount,
|
|
966
|
+
L as LineEnum,
|
|
967
|
+
rt as Pagination,
|
|
968
|
+
O as PositioningEnum,
|
|
969
|
+
st as TrendArrow,
|
|
970
|
+
te as getBaseColor,
|
|
971
|
+
He as getBaseColorOf
|
|
903
972
|
};
|