admins-components 9.0.7 → 9.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins-components.js +56 -55
- package/dist/admins-components100.js +26 -27
- package/dist/admins-components101.js +25 -169
- package/dist/admins-components102.js +165 -61
- package/dist/admins-components103.js +61 -60
- package/dist/admins-components104.js +65 -28
- package/dist/admins-components105.js +28 -14
- package/dist/admins-components106.js +15 -26
- package/dist/admins-components107.js +26 -8
- package/dist/admins-components108.js +9 -4
- package/dist/admins-components109.js +4 -3
- package/dist/admins-components11.js +9 -38
- package/dist/admins-components110.js +2 -2
- package/dist/admins-components111.js +3 -21
- package/dist/admins-components112.js +21 -14
- package/dist/admins-components113.js +14 -8
- package/dist/admins-components114.js +8 -13
- package/dist/admins-components115.js +11 -24
- package/dist/admins-components116.js +24 -81
- package/dist/admins-components117.js +82 -10
- package/dist/admins-components118.js +10 -4
- package/dist/admins-components119.js +5 -8
- package/dist/admins-components12.js +37 -141
- package/dist/admins-components120.js +7 -6
- package/dist/admins-components121.js +6 -5
- package/dist/admins-components122.js +4 -13
- package/dist/admins-components123.js +11 -9
- package/dist/admins-components124.js +13 -30
- package/dist/admins-components125.js +30 -4
- package/dist/admins-components126.js +4 -29
- package/dist/admins-components127.js +29 -5
- package/dist/admins-components128.js +3 -3
- package/dist/admins-components129.js +4 -7
- package/dist/admins-components13.js +145 -5
- package/dist/admins-components130.js +7 -73
- package/dist/admins-components131.js +71 -26
- package/dist/admins-components132.js +27 -57
- package/dist/admins-components133.js +57 -22
- package/dist/admins-components134.js +21 -47
- package/dist/admins-components135.js +48 -29
- package/dist/admins-components136.js +31 -3
- package/dist/admins-components137.js +3 -179
- package/dist/admins-components138.js +176 -43
- package/dist/admins-components139.js +44 -35
- package/dist/admins-components14.js +5 -46
- package/dist/admins-components140.js +34 -43
- package/dist/admins-components141.js +42 -137
- package/dist/admins-components142.js +134 -51
- package/dist/admins-components143.js +58 -7
- package/dist/admins-components144.js +6 -5
- package/dist/admins-components145.js +6 -76
- package/dist/admins-components146.js +76 -29
- package/dist/admins-components147.js +29 -1931
- package/dist/admins-components148.js +1748 -24628
- package/dist/admins-components149.js +24810 -8
- package/dist/admins-components15.js +49 -4
- package/dist/admins-components150.js +9 -7
- package/dist/admins-components151.js +7 -142
- package/dist/admins-components152.js +141 -8
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components154.js +10 -0
- package/dist/admins-components156.js +161 -44
- package/dist/admins-components157.js +50 -8
- package/dist/admins-components158.js +8 -49
- package/dist/admins-components159.js +50 -6
- package/dist/admins-components16.js +4 -94
- package/dist/admins-components160.js +6 -80
- package/dist/admins-components161.js +70 -48
- package/dist/admins-components162.js +31 -32
- package/dist/admins-components163.js +58 -8
- package/dist/admins-components164.js +8 -51
- package/dist/admins-components165.js +51 -8
- package/dist/admins-components166.js +10 -0
- package/dist/{admins-components167.js → admins-components168.js} +3 -3
- package/dist/admins-components17.js +91 -225
- package/dist/admins-components18.js +245 -5
- package/dist/admins-components19.js +5 -181
- package/dist/admins-components20.js +183 -0
- package/dist/admins-components22.js +6 -72
- package/dist/admins-components23.js +78 -6
- package/dist/admins-components24.js +6 -58
- package/dist/admins-components25.js +59 -0
- package/dist/admins-components27.js +6 -60
- package/dist/admins-components28.js +61 -0
- package/dist/admins-components30.js +6 -36
- package/dist/admins-components31.js +37 -0
- package/dist/admins-components33.js +6 -36
- package/dist/admins-components34.js +36 -4
- package/dist/admins-components35.js +4 -32
- package/dist/admins-components36.js +33 -0
- package/dist/admins-components38.js +6 -147
- package/dist/admins-components39.js +148 -0
- package/dist/admins-components4.js +9 -56
- package/dist/admins-components41.js +6 -124
- package/dist/admins-components42.js +124 -4
- package/dist/admins-components43.js +4 -179
- package/dist/admins-components44.js +179 -4
- package/dist/admins-components45.js +4 -19
- package/dist/admins-components46.js +20 -0
- package/dist/admins-components48.js +6 -54
- package/dist/admins-components49.js +54 -93
- package/dist/admins-components5.js +57 -4
- package/dist/admins-components50.js +94 -0
- package/dist/admins-components52.js +6 -25
- package/dist/admins-components53.js +25 -9
- package/dist/admins-components54.js +9 -19
- package/dist/admins-components55.js +18 -72
- package/dist/admins-components56.js +73 -59
- package/dist/admins-components57.js +59 -4
- package/dist/admins-components58.js +4 -120
- package/dist/admins-components59.js +122 -0
- package/dist/admins-components6.js +4 -29
- package/dist/admins-components61.js +7 -143
- package/dist/admins-components62.js +148 -0
- package/dist/admins-components64.js +7 -7
- package/dist/admins-components65.js +7 -263
- package/dist/admins-components66.js +264 -0
- package/dist/admins-components68.js +6 -111
- package/dist/admins-components69.js +112 -0
- package/dist/admins-components7.js +29 -252
- package/dist/admins-components71.js +6 -59
- package/dist/admins-components72.js +55 -217
- package/dist/admins-components73.js +222 -0
- package/dist/admins-components75.js +6 -8
- package/dist/admins-components76.js +7 -45
- package/dist/admins-components77.js +45 -249
- package/dist/admins-components78.js +264 -0
- package/dist/admins-components8.js +253 -0
- package/dist/admins-components80.js +7 -37
- package/dist/admins-components81.js +38 -0
- package/dist/admins-components83.js +6 -198
- package/dist/admins-components84.js +199 -0
- package/dist/admins-components86.js +6 -203
- package/dist/admins-components87.js +204 -0
- package/dist/admins-components89.js +7 -3
- package/dist/admins-components90.js +3 -16
- package/dist/admins-components91.js +16 -3
- package/dist/admins-components92.js +3 -52
- package/dist/admins-components93.js +50 -80
- package/dist/admins-components94.js +78 -109
- package/dist/admins-components95.js +110 -41
- package/dist/admins-components96.js +39 -101
- package/dist/admins-components97.js +105 -6
- package/dist/admins-components98.js +5 -250
- package/dist/admins-components99.js +250 -25
- package/dist/base.css +1 -1
- package/dist/src/components/Button.vue.d.ts +1 -2
- package/dist/src/components/DatePicker.vue.d.ts +2 -0
- package/dist/src/components/DropdownMenu.vue.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/admins-components10.js +0 -10
- package/dist/admins-components155.js +0 -169
- package/dist/admins-components21.js +0 -7
- package/dist/admins-components26.js +0 -7
- package/dist/admins-components29.js +0 -7
- package/dist/admins-components32.js +0 -7
- package/dist/admins-components37.js +0 -7
- package/dist/admins-components40.js +0 -7
- package/dist/admins-components47.js +0 -7
- package/dist/admins-components51.js +0 -7
- package/dist/admins-components60.js +0 -8
- package/dist/admins-components63.js +0 -8
- package/dist/admins-components67.js +0 -7
- package/dist/admins-components70.js +0 -7
- package/dist/admins-components74.js +0 -7
- package/dist/admins-components79.js +0 -8
- package/dist/admins-components82.js +0 -7
- package/dist/admins-components85.js +0 -7
- package/dist/admins-components88.js +0 -8
|
@@ -1,73 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
props: {
|
|
7
|
-
size: { default: "normal" },
|
|
8
|
-
icon: { default: void 0 },
|
|
9
|
-
label: { default: void 0 },
|
|
10
|
-
textEllipsis: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !0
|
|
13
|
-
},
|
|
14
|
-
type: { default: "normal" },
|
|
15
|
-
items: {},
|
|
16
|
-
labelAlignmentFix: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(s) {
|
|
22
|
-
let _ = s, v = d(null), y = d(null), { isOpen: b, dropdownStyle: x } = e(v, y, { extraStyle: (e) => ({
|
|
23
|
-
minWidth: `${e.width}px`,
|
|
24
|
-
maxWidth: `${e.width * 2}px`
|
|
25
|
-
}) });
|
|
26
|
-
function S() {
|
|
27
|
-
b.value = !b.value;
|
|
28
|
-
}
|
|
29
|
-
function C(e) {
|
|
30
|
-
e.callback?.(), b.value = !1;
|
|
31
|
-
}
|
|
32
|
-
return (e, d) => (u(), a("div", {
|
|
33
|
-
ref_key: "wrapperRef",
|
|
34
|
-
ref: v,
|
|
35
|
-
class: "ds-wrapper ac-component",
|
|
36
|
-
style: { display: "inline-block" }
|
|
37
|
-
}, [o("button", {
|
|
38
|
-
type: "button",
|
|
39
|
-
class: c(["c-btn dm-trigger", [
|
|
40
|
-
s.size === "small" && "c-btn-sm",
|
|
41
|
-
s.size === "large" && "c-btn-lg",
|
|
42
|
-
s.type !== "normal" && `c-btn-${s.type}`
|
|
43
|
-
]]),
|
|
44
|
-
onClick: d[0] ||= (e) => S()
|
|
45
|
-
}, [
|
|
46
|
-
s.icon ? (u(), a("i", {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: c(["fa-fw", s.icon])
|
|
49
|
-
}, null, 2)) : i("", !0),
|
|
50
|
-
s.label ? (u(), a("span", {
|
|
51
|
-
key: 1,
|
|
52
|
-
class: c({ "align-center-text-fix ": _.labelAlignmentFix })
|
|
53
|
-
}, p(s.label), 3)) : i("", !0),
|
|
54
|
-
o("span", { class: c(["c-icon-btn c-icon-btn--chevron", { "c-icon-btn--chevron-open": m(b) }]) }, [...d[1] ||= [o("i", { class: "fa-solid fa-fw fa-chevron-down" }, null, -1)]], 2)
|
|
55
|
-
], 2), (u(), r(n, { to: "body" }, [m(b) ? (u(), a("div", {
|
|
56
|
-
key: 0,
|
|
57
|
-
ref_key: "dropdownRef",
|
|
58
|
-
ref: y,
|
|
59
|
-
class: "c-dropdown ds-wrapper ac-component",
|
|
60
|
-
style: l(m(x))
|
|
61
|
-
}, [o("ul", h, [(u(!0), a(t, null, f(s.items, (e, t) => (u(), a("li", {
|
|
62
|
-
key: `cb-${t}`,
|
|
63
|
-
class: c(["d-option dm-option c-field-size c-type-color", { [`c-type-color--${e.type}`]: e.type }]),
|
|
64
|
-
tabindex: "0",
|
|
65
|
-
onClick: (t) => C(e)
|
|
66
|
-
}, [e.icon ? (u(), a("i", {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: c(["fa-fw", e.icon])
|
|
69
|
-
}, null, 2)) : i("", !0), o("span", { class: c(["d-option__label", { "c-truncate": _.textEllipsis }]) }, p(e.label), 3)], 10, g))), 128))])], 4)) : i("", !0)]))], 512));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
1
|
+
import './src/styles/components/dropdown-select.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components20.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/DropdownSelect.vue
|
|
5
|
+
var t = e;
|
|
72
6
|
//#endregion
|
|
73
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -1,7 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
//#region src/components/DropdownMenu.vue
|
|
5
|
-
var
|
|
1
|
+
import { sizeToClass as e } from "./admins-components4.js";
|
|
2
|
+
import { useDropdownAnchor as t } from "./admins-components12.js";
|
|
3
|
+
import { Fragment as n, Teleport as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h } from "vue";
|
|
4
|
+
//#region src/components/DropdownMenu.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = ["aria-label"], _ = { class: "ds-options c-scroll" }, v = ["onClick", "aria-label"], y = /* @__PURE__ */ c({
|
|
6
|
+
__name: "DropdownMenu",
|
|
7
|
+
props: {
|
|
8
|
+
size: { default: "normal" },
|
|
9
|
+
icon: { default: void 0 },
|
|
10
|
+
label: { default: void 0 },
|
|
11
|
+
ariaLabel: {},
|
|
12
|
+
textEllipsis: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !0
|
|
15
|
+
},
|
|
16
|
+
type: { default: "normal" },
|
|
17
|
+
items: {},
|
|
18
|
+
labelAlignmentFix: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(c) {
|
|
24
|
+
let y = c, b = f(null), x = f(null), { isOpen: S, dropdownStyle: C } = t(b, x, { extraStyle: (e) => ({
|
|
25
|
+
minWidth: `${e.width}px`,
|
|
26
|
+
maxWidth: `${e.width * 2}px`
|
|
27
|
+
}) });
|
|
28
|
+
function w() {
|
|
29
|
+
S.value = !S.value;
|
|
30
|
+
}
|
|
31
|
+
function T(e) {
|
|
32
|
+
e.callback?.(), S.value = !1;
|
|
33
|
+
}
|
|
34
|
+
return (t, f) => (d(), o("div", {
|
|
35
|
+
ref_key: "wrapperRef",
|
|
36
|
+
ref: b,
|
|
37
|
+
class: "ds-wrapper ac-component d-inline-block"
|
|
38
|
+
}, [s("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
class: l(["c-btn dm-trigger", [
|
|
41
|
+
c.size === "small" && "c-btn-sm",
|
|
42
|
+
c.size === "large" && "c-btn-lg",
|
|
43
|
+
c.type !== "normal" && `c-btn-${c.type}`
|
|
44
|
+
]]),
|
|
45
|
+
"aria-label": c.ariaLabel ?? c.label,
|
|
46
|
+
onClick: f[0] ||= (e) => w()
|
|
47
|
+
}, [
|
|
48
|
+
c.icon ? (d(), o("i", {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: l(["fa-fw", c.icon])
|
|
51
|
+
}, null, 2)) : a("", !0),
|
|
52
|
+
c.label ? (d(), o("span", {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: l({ "align-center-text-fix ": y.labelAlignmentFix })
|
|
55
|
+
}, m(c.label), 3)) : a("", !0),
|
|
56
|
+
s("span", { class: l(["c-icon-btn c-icon-btn--chevron", { "c-icon-btn--chevron-open": h(S) }]) }, [...f[1] ||= [s("i", { class: "fa-solid fa-fw fa-chevron-down" }, null, -1)]], 2)
|
|
57
|
+
], 10, g), (d(), i(r, { to: "body" }, [h(S) ? (d(), o("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
ref_key: "dropdownRef",
|
|
60
|
+
ref: x,
|
|
61
|
+
class: "c-dropdown ds-wrapper ac-component",
|
|
62
|
+
style: u(h(C))
|
|
63
|
+
}, [s("ul", _, [(d(!0), o(n, null, p(c.items, (t, n) => (d(), o("li", {
|
|
64
|
+
key: `cb-${n}`,
|
|
65
|
+
class: l(["d-option dm-option c-field-size c-type-color", {
|
|
66
|
+
[`c-field-size--${h(e)(t.size)}`]: t.size,
|
|
67
|
+
[`c-type-color--${t.type}`]: t.type
|
|
68
|
+
}]),
|
|
69
|
+
tabindex: "0",
|
|
70
|
+
onClick: (e) => T(t),
|
|
71
|
+
"aria-label": t.ariaLabel ?? t.label
|
|
72
|
+
}, [t.icon ? (d(), o("i", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: l(["fa-fw", t.icon])
|
|
75
|
+
}, null, 2)) : a("", !0), s("span", { class: l(["d-option__label", { "c-truncate": y.textEllipsis }]) }, m(t.label), 3)], 10, v))), 128))])], 4)) : a("", !0)]))], 512));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
6
78
|
//#endregion
|
|
7
|
-
export {
|
|
79
|
+
export { y as default };
|
|
@@ -1,59 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class: "sb-header"
|
|
7
|
-
}, b = { class: "sb-title" }, x = { class: "sb-content c-scroll" }, S = {
|
|
8
|
-
open: !1,
|
|
9
|
-
position: "left",
|
|
10
|
-
hasHeader: !0,
|
|
11
|
-
withBackdrop: !0
|
|
12
|
-
}, C = /* @__PURE__ */ c({
|
|
13
|
-
__name: "Sidebar",
|
|
14
|
-
props: /* @__PURE__ */ l({
|
|
15
|
-
open: { type: Boolean },
|
|
16
|
-
position: {},
|
|
17
|
-
title: {},
|
|
18
|
-
hasHeader: { type: Boolean },
|
|
19
|
-
withBackdrop: { type: Boolean }
|
|
20
|
-
}, { ...S }),
|
|
21
|
-
emits: ["close"],
|
|
22
|
-
setup(c, { emit: l }) {
|
|
23
|
-
let S = l;
|
|
24
|
-
function C() {
|
|
25
|
-
S("close");
|
|
26
|
-
}
|
|
27
|
-
function w() {
|
|
28
|
-
C();
|
|
29
|
-
}
|
|
30
|
-
function T(e) {
|
|
31
|
-
e.key === "Escape" && C();
|
|
32
|
-
}
|
|
33
|
-
return f(() => document.addEventListener("keydown", T)), d(() => document.removeEventListener("keydown", T)), (l, d) => (p(), r(t, { to: "body" }, [o("div", v, [s(n, { name: "sb-fade" }, {
|
|
34
|
-
default: g(() => [c.open && c.withBackdrop ? (p(), a("div", {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "sb-backdrop",
|
|
37
|
-
onClick: _(w, ["self"])
|
|
38
|
-
})) : i("", !0)]),
|
|
39
|
-
_: 1
|
|
40
|
-
}), s(n, { name: `sb-slide-${c.position}` }, {
|
|
41
|
-
default: g(() => [c.open ? (p(), a("div", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: u(["sb-panel", `sb-panel--${c.position}`])
|
|
44
|
-
}, [c.hasHeader ? (p(), a("div", y, [o("span", b, h(c.title ?? ""), 1), s(e, {
|
|
45
|
-
class: "sb-close",
|
|
46
|
-
icon: "fa-solid fa-xmark",
|
|
47
|
-
onClick: d[0] ||= (e) => C()
|
|
48
|
-
})])) : (p(), r(e, {
|
|
49
|
-
key: 1,
|
|
50
|
-
class: "sb-close sb-close--absolute",
|
|
51
|
-
icon: "fa-solid fa-xmark",
|
|
52
|
-
onClick: d[1] ||= (e) => C()
|
|
53
|
-
})), o("div", x, [m(l.$slots, "default")])], 2)) : i("", !0)]),
|
|
54
|
-
_: 3
|
|
55
|
-
}, 8, ["name"])])]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
1
|
+
import './src/styles/components/dropdown-select.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "./admins-components23.js";
|
|
4
|
+
//#region src/components/DropdownMenu.vue
|
|
5
|
+
var t = e;
|
|
58
6
|
//#endregion
|
|
59
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import e from "./admins-components6.js";
|
|
2
|
+
import { Teleport as t, Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeDefaults as l, normalizeClass as u, onBeforeUnmount as d, onMounted as f, openBlock as p, renderSlot as m, toDisplayString as h, withCtx as g, withModifiers as _ } from "vue";
|
|
3
|
+
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var v = { class: "ac-component" }, y = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "sb-header"
|
|
7
|
+
}, b = { class: "sb-title" }, x = { class: "sb-content c-scroll" }, S = {
|
|
8
|
+
open: !1,
|
|
9
|
+
position: "left",
|
|
10
|
+
hasHeader: !0,
|
|
11
|
+
withBackdrop: !0
|
|
12
|
+
}, C = /* @__PURE__ */ c({
|
|
13
|
+
__name: "Sidebar",
|
|
14
|
+
props: /* @__PURE__ */ l({
|
|
15
|
+
open: { type: Boolean },
|
|
16
|
+
position: {},
|
|
17
|
+
title: {},
|
|
18
|
+
hasHeader: { type: Boolean },
|
|
19
|
+
withBackdrop: { type: Boolean }
|
|
20
|
+
}, { ...S }),
|
|
21
|
+
emits: ["close"],
|
|
22
|
+
setup(c, { emit: l }) {
|
|
23
|
+
let S = l;
|
|
24
|
+
function C() {
|
|
25
|
+
S("close");
|
|
26
|
+
}
|
|
27
|
+
function w() {
|
|
28
|
+
C();
|
|
29
|
+
}
|
|
30
|
+
function T(e) {
|
|
31
|
+
e.key === "Escape" && C();
|
|
32
|
+
}
|
|
33
|
+
return f(() => document.addEventListener("keydown", T)), d(() => document.removeEventListener("keydown", T)), (l, d) => (p(), r(t, { to: "body" }, [o("div", v, [s(n, { name: "sb-fade" }, {
|
|
34
|
+
default: g(() => [c.open && c.withBackdrop ? (p(), a("div", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "sb-backdrop",
|
|
37
|
+
onClick: _(w, ["self"])
|
|
38
|
+
})) : i("", !0)]),
|
|
39
|
+
_: 1
|
|
40
|
+
}), s(n, { name: `sb-slide-${c.position}` }, {
|
|
41
|
+
default: g(() => [c.open ? (p(), a("div", {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: u(["sb-panel", `sb-panel--${c.position}`])
|
|
44
|
+
}, [c.hasHeader ? (p(), a("div", y, [o("span", b, h(c.title ?? ""), 1), s(e, {
|
|
45
|
+
class: "sb-close",
|
|
46
|
+
icon: "fa-solid fa-xmark",
|
|
47
|
+
onClick: d[0] ||= (e) => C()
|
|
48
|
+
})])) : (p(), r(e, {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "sb-close sb-close--absolute",
|
|
51
|
+
icon: "fa-solid fa-xmark",
|
|
52
|
+
onClick: d[1] ||= (e) => C()
|
|
53
|
+
})), o("div", x, [m(l.$slots, "default")])], 2)) : i("", !0)]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["name"])])]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { C as default, S as sidebarDefaults };
|
|
@@ -1,61 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class: "hc-toolbars"
|
|
7
|
-
}, y = {
|
|
8
|
-
icon: void 0,
|
|
9
|
-
showBackButton: !1,
|
|
10
|
-
toolbars: () => []
|
|
11
|
-
}, b = /* @__PURE__ */ s({
|
|
12
|
-
__name: "HeaderComponent",
|
|
13
|
-
props: /* @__PURE__ */ c({
|
|
14
|
-
title: {},
|
|
15
|
-
icon: {},
|
|
16
|
-
showBackButton: { type: Boolean },
|
|
17
|
-
toolbars: {}
|
|
18
|
-
}, { ...y }),
|
|
19
|
-
emits: ["back"],
|
|
20
|
-
setup(s, { emit: c }) {
|
|
21
|
-
let y = s, b = c, x = n(() => {
|
|
22
|
-
let e = {
|
|
23
|
-
left: 0,
|
|
24
|
-
center: 1,
|
|
25
|
-
right: 2
|
|
26
|
-
};
|
|
27
|
-
return [...y.toolbars].sort((t, n) => e[t.align] - e[n.align]);
|
|
28
|
-
});
|
|
29
|
-
return (n, c) => (u(), a("div", p, [o("header", m, [o("div", h, [s.showBackButton ? (u(), r(e, {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "hc-back-btn",
|
|
32
|
-
icon: "fa-solid fa-chevron-left",
|
|
33
|
-
onClick: c[0] ||= (e) => b("back")
|
|
34
|
-
})) : i("", !0), o("div", g, [s.icon ? (u(), a("i", {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: l([s.icon, "hc-title-icon"])
|
|
37
|
-
}, null, 2)) : i("", !0), o("h1", _, f(s.title), 1)])]), x.value.length ? (u(), a("div", v, [(u(!0), a(t, null, d(x.value, (n, i) => (u(), a("div", {
|
|
38
|
-
key: i,
|
|
39
|
-
class: l(["hc-buttons", `hc-buttons--${n.align}`])
|
|
40
|
-
}, [(u(!0), a(t, null, d(n.buttons, (t, n) => (u(), r(e, {
|
|
41
|
-
key: n,
|
|
42
|
-
label: t.label,
|
|
43
|
-
icon: t.icon,
|
|
44
|
-
"icon-position": t.iconPosition,
|
|
45
|
-
type: t.type,
|
|
46
|
-
size: t.size,
|
|
47
|
-
outline: t.outline,
|
|
48
|
-
onClick: (e) => t.callback?.()
|
|
49
|
-
}, null, 8, [
|
|
50
|
-
"label",
|
|
51
|
-
"icon",
|
|
52
|
-
"icon-position",
|
|
53
|
-
"type",
|
|
54
|
-
"size",
|
|
55
|
-
"outline",
|
|
56
|
-
"onClick"
|
|
57
|
-
]))), 128))], 2))), 128))])) : i("", !0)])]));
|
|
58
|
-
}
|
|
59
|
-
});
|
|
1
|
+
import './src/styles/components/sidebar.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components25.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/Sidebar.vue
|
|
5
|
+
var t = e;
|
|
60
6
|
//#endregion
|
|
61
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import e from "./admins-components6.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeDefaults as c, normalizeClass as l, openBlock as u, renderList as d, toDisplayString as f } from "vue";
|
|
3
|
+
//#region src/components/HeaderComponent.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = { class: "ac-component" }, m = { class: "hc-header" }, h = { class: "hc-left" }, g = { class: "hc-title-group" }, _ = { class: "hc-title" }, v = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "hc-toolbars"
|
|
7
|
+
}, y = {
|
|
8
|
+
icon: void 0,
|
|
9
|
+
showBackButton: !1,
|
|
10
|
+
toolbars: () => []
|
|
11
|
+
}, b = /* @__PURE__ */ s({
|
|
12
|
+
__name: "HeaderComponent",
|
|
13
|
+
props: /* @__PURE__ */ c({
|
|
14
|
+
title: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
showBackButton: { type: Boolean },
|
|
17
|
+
toolbars: {}
|
|
18
|
+
}, { ...y }),
|
|
19
|
+
emits: ["back"],
|
|
20
|
+
setup(s, { emit: c }) {
|
|
21
|
+
let y = s, b = c, x = n(() => {
|
|
22
|
+
let e = {
|
|
23
|
+
left: 0,
|
|
24
|
+
center: 1,
|
|
25
|
+
right: 2
|
|
26
|
+
};
|
|
27
|
+
return [...y.toolbars].sort((t, n) => e[t.align] - e[n.align]);
|
|
28
|
+
});
|
|
29
|
+
return (n, c) => (u(), a("div", p, [o("header", m, [o("div", h, [s.showBackButton ? (u(), r(e, {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "hc-back-btn",
|
|
32
|
+
icon: "fa-solid fa-chevron-left",
|
|
33
|
+
onClick: c[0] ||= (e) => b("back")
|
|
34
|
+
})) : i("", !0), o("div", g, [s.icon ? (u(), a("i", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: l([s.icon, "hc-title-icon"])
|
|
37
|
+
}, null, 2)) : i("", !0), o("h1", _, f(s.title), 1)])]), x.value.length ? (u(), a("div", v, [(u(!0), a(t, null, d(x.value, (n, i) => (u(), a("div", {
|
|
38
|
+
key: i,
|
|
39
|
+
class: l(["hc-buttons", `hc-buttons--${n.align}`])
|
|
40
|
+
}, [(u(!0), a(t, null, d(n.buttons, (t, n) => (u(), r(e, {
|
|
41
|
+
key: n,
|
|
42
|
+
label: t.label,
|
|
43
|
+
icon: t.icon,
|
|
44
|
+
"icon-position": t.iconPosition,
|
|
45
|
+
type: t.type,
|
|
46
|
+
size: t.size,
|
|
47
|
+
outline: t.outline,
|
|
48
|
+
onClick: (e) => t.callback?.()
|
|
49
|
+
}, null, 8, [
|
|
50
|
+
"label",
|
|
51
|
+
"icon",
|
|
52
|
+
"icon-position",
|
|
53
|
+
"type",
|
|
54
|
+
"size",
|
|
55
|
+
"outline",
|
|
56
|
+
"onClick"
|
|
57
|
+
]))), 128))], 2))), 128))])) : i("", !0)])]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { b as default, y as headerComponentDefaults };
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, g = /* @__PURE__ */ a({
|
|
7
|
-
__name: "Modal",
|
|
8
|
-
props: { title: {} },
|
|
9
|
-
emits: ["close"],
|
|
10
|
-
setup(a, { emit: g }) {
|
|
11
|
-
let _ = g;
|
|
12
|
-
function v(e) {
|
|
13
|
-
e.target === e.currentTarget && _("close");
|
|
14
|
-
}
|
|
15
|
-
function y(e) {
|
|
16
|
-
e.key === "Escape" && _("close");
|
|
17
|
-
}
|
|
18
|
-
return o(() => {
|
|
19
|
-
document.addEventListener("keydown", y);
|
|
20
|
-
}), s(() => {
|
|
21
|
-
document.removeEventListener("keydown", y);
|
|
22
|
-
}), (o, s) => (c(), t(e, { to: "body" }, [i("div", {
|
|
23
|
-
class: "c-modal-backdrop ac-component",
|
|
24
|
-
onMousedown: v
|
|
25
|
-
}, [i("div", d, [
|
|
26
|
-
i("div", f, [i("h3", p, u(a.title), 1), i("button", {
|
|
27
|
-
type: "button",
|
|
28
|
-
class: "c-modal-close",
|
|
29
|
-
onClick: s[0] ||= (e) => _("close")
|
|
30
|
-
}, [...s[1] ||= [i("i", { class: "ri-close-line" }, null, -1)]])]),
|
|
31
|
-
i("div", m, [l(o.$slots, "default")]),
|
|
32
|
-
o.$slots.footer ? (c(), r("div", h, [l(o.$slots, "footer")])) : n("", !0)
|
|
33
|
-
])], 32)]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
1
|
+
import './src/styles/components/header.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components28.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/HeaderComponent.vue
|
|
5
|
+
var t = e;
|
|
36
6
|
//#endregion
|
|
37
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Teleport as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, onMounted as o, onUnmounted as s, openBlock as c, renderSlot as l, toDisplayString as u } from "vue";
|
|
2
|
+
//#region src/components/Modal.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var d = { class: "c-modal" }, f = { class: "c-modal-header" }, p = { class: "c-modal-title" }, m = { class: "c-modal-body c-scroll" }, h = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "c-modal-footer"
|
|
6
|
+
}, g = /* @__PURE__ */ a({
|
|
7
|
+
__name: "Modal",
|
|
8
|
+
props: { title: {} },
|
|
9
|
+
emits: ["close"],
|
|
10
|
+
setup(a, { emit: g }) {
|
|
11
|
+
let _ = g;
|
|
12
|
+
function v(e) {
|
|
13
|
+
e.target === e.currentTarget && _("close");
|
|
14
|
+
}
|
|
15
|
+
function y(e) {
|
|
16
|
+
e.key === "Escape" && _("close");
|
|
17
|
+
}
|
|
18
|
+
return o(() => {
|
|
19
|
+
document.addEventListener("keydown", y);
|
|
20
|
+
}), s(() => {
|
|
21
|
+
document.removeEventListener("keydown", y);
|
|
22
|
+
}), (o, s) => (c(), t(e, { to: "body" }, [i("div", {
|
|
23
|
+
class: "c-modal-backdrop ac-component",
|
|
24
|
+
onMousedown: v
|
|
25
|
+
}, [i("div", d, [
|
|
26
|
+
i("div", f, [i("h3", p, u(a.title), 1), i("button", {
|
|
27
|
+
type: "button",
|
|
28
|
+
class: "c-modal-close",
|
|
29
|
+
onClick: s[0] ||= (e) => _("close")
|
|
30
|
+
}, [...s[1] ||= [i("i", { class: "ri-close-line" }, null, -1)]])]),
|
|
31
|
+
i("div", m, [l(o.$slots, "default")]),
|
|
32
|
+
o.$slots.footer ? (c(), r("div", h, [l(o.$slots, "footer")])) : n("", !0)
|
|
33
|
+
])], 32)]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { g as default };
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/components/
|
|
5
|
-
var
|
|
6
|
-
__name: "ConfirmModal",
|
|
7
|
-
props: {
|
|
8
|
-
title: {},
|
|
9
|
-
message: {},
|
|
10
|
-
confirmLabel: { default: "Confirm" },
|
|
11
|
-
cancelLabel: { default: "Cancel" },
|
|
12
|
-
type: { default: "normal" }
|
|
13
|
-
},
|
|
14
|
-
emits: ["confirm", "cancel"],
|
|
15
|
-
setup(a, { emit: u }) {
|
|
16
|
-
let d = u;
|
|
17
|
-
return (u, f) => (o(), n(t, {
|
|
18
|
-
title: a.title,
|
|
19
|
-
onClose: f[2] ||= (e) => d("cancel")
|
|
20
|
-
}, {
|
|
21
|
-
footer: c(() => [i(e, {
|
|
22
|
-
label: a.cancelLabel,
|
|
23
|
-
type: "normal",
|
|
24
|
-
outline: "",
|
|
25
|
-
onClick: f[0] ||= (e) => d("cancel")
|
|
26
|
-
}, null, 8, ["label"]), i(e, {
|
|
27
|
-
label: a.confirmLabel,
|
|
28
|
-
type: a.type,
|
|
29
|
-
onClick: f[1] ||= (e) => d("confirm")
|
|
30
|
-
}, null, 8, ["label", "type"])]),
|
|
31
|
-
default: c(() => [r("p", l, s(a.message), 1)]),
|
|
32
|
-
_: 1
|
|
33
|
-
}, 8, ["title"]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
1
|
+
import './src/styles/components/modal.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components31.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/Modal.vue
|
|
5
|
+
var t = e;
|
|
36
6
|
//#endregion
|
|
37
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./admins-components6.js";
|
|
2
|
+
import t from "./admins-components33.js";
|
|
3
|
+
import { createBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, toDisplayString as s, withCtx as c } from "vue";
|
|
4
|
+
//#region src/components/ConfirmModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var l = { class: "c-confirm-modal-message" }, u = /* @__PURE__ */ a({
|
|
6
|
+
__name: "ConfirmModal",
|
|
7
|
+
props: {
|
|
8
|
+
title: {},
|
|
9
|
+
message: {},
|
|
10
|
+
confirmLabel: { default: "Confirm" },
|
|
11
|
+
cancelLabel: { default: "Cancel" },
|
|
12
|
+
type: { default: "normal" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["confirm", "cancel"],
|
|
15
|
+
setup(a, { emit: u }) {
|
|
16
|
+
let d = u;
|
|
17
|
+
return (u, f) => (o(), n(t, {
|
|
18
|
+
title: a.title,
|
|
19
|
+
onClose: f[2] ||= (e) => d("cancel")
|
|
20
|
+
}, {
|
|
21
|
+
footer: c(() => [i(e, {
|
|
22
|
+
label: a.cancelLabel,
|
|
23
|
+
type: "normal",
|
|
24
|
+
outline: "",
|
|
25
|
+
onClick: f[0] ||= (e) => d("cancel")
|
|
26
|
+
}, null, 8, ["label"]), i(e, {
|
|
27
|
+
label: a.confirmLabel,
|
|
28
|
+
type: a.type,
|
|
29
|
+
onClick: f[1] ||= (e) => d("confirm")
|
|
30
|
+
}, null, 8, ["label", "type"])]),
|
|
31
|
+
default: c(() => [r("p", l, s(a.message), 1)]),
|
|
32
|
+
_: 1
|
|
33
|
+
}, 8, ["title"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
4
36
|
//#endregion
|
|
5
|
-
export {
|
|
37
|
+
export { u as default };
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region src/components/
|
|
3
|
-
var
|
|
4
|
-
__name: "CopyToClipboard",
|
|
5
|
-
props: {
|
|
6
|
-
value: {},
|
|
7
|
-
target: {},
|
|
8
|
-
useParent: { type: Boolean }
|
|
9
|
-
},
|
|
10
|
-
setup(t) {
|
|
11
|
-
let o = t, s = i(!1);
|
|
12
|
-
function c(e) {
|
|
13
|
-
let t = "";
|
|
14
|
-
if (o.target) {
|
|
15
|
-
let e = typeof o.target == "string" ? document.querySelector(o.target) : o.target;
|
|
16
|
-
e && (t = e.innerText);
|
|
17
|
-
} else if (o.useParent && e?.target) {
|
|
18
|
-
let n = e.target.parentElement;
|
|
19
|
-
n && (t = n.innerText);
|
|
20
|
-
} else t = o.value == null ? "" : String(o.value);
|
|
21
|
-
t && (navigator.clipboard.writeText(t), s.value = !0, setTimeout(() => {
|
|
22
|
-
s.value = !1;
|
|
23
|
-
}, 1500));
|
|
24
|
-
}
|
|
25
|
-
return (t, i) => (r(), e("i", {
|
|
26
|
-
class: n([s.value ? "fa-solid fa-check c-copy-btn--copied" : "fa-regular fa-copy", "c-copy-btn"]),
|
|
27
|
-
tabindex: "0",
|
|
28
|
-
onClick: a(c, ["stop"])
|
|
29
|
-
}, null, 2));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
1
|
+
import e from "./admins-components34.js";
|
|
2
|
+
//#region src/components/ConfirmModal.vue
|
|
3
|
+
var t = e;
|
|
32
4
|
//#endregion
|
|
33
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, ref as i, withModifiers as a } from "vue";
|
|
2
|
+
//#region src/components/CopyToClipboard.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var o = /* @__PURE__ */ t({
|
|
4
|
+
__name: "CopyToClipboard",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
target: {},
|
|
8
|
+
useParent: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
let o = t, s = i(!1);
|
|
12
|
+
function c(e) {
|
|
13
|
+
let t = "";
|
|
14
|
+
if (o.target) {
|
|
15
|
+
let e = typeof o.target == "string" ? document.querySelector(o.target) : o.target;
|
|
16
|
+
e && (t = e.innerText);
|
|
17
|
+
} else if (o.useParent && e?.target) {
|
|
18
|
+
let n = e.target.parentElement;
|
|
19
|
+
n && (t = n.innerText);
|
|
20
|
+
} else t = o.value == null ? "" : String(o.value);
|
|
21
|
+
t && (navigator.clipboard.writeText(t), s.value = !0, setTimeout(() => {
|
|
22
|
+
s.value = !1;
|
|
23
|
+
}, 1500));
|
|
24
|
+
}
|
|
25
|
+
return (t, i) => (r(), e("i", {
|
|
26
|
+
class: n([s.value ? "fa-solid fa-check c-copy-btn--copied" : "fa-regular fa-copy", "c-copy-btn"]),
|
|
27
|
+
tabindex: "0",
|
|
28
|
+
onClick: a(c, ["stop"])
|
|
29
|
+
}, null, 2));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { o as default };
|