dxd-style-code 0.1.6 → 0.1.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/dist/dxd-style-code.js +785 -785
- package/dist/dxd-style-code.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dxd-style-code.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as s, openBlock as l, createElementVNode as i, computed as m, createBlock as D, resolveDynamicComponent as q, normalizeClass as h, withCtx as X, renderSlot as I, createCommentVNode as g, createTextVNode as O, toDisplayString as A, normalizeStyle as Q, ref as M, watch as Y, onBeforeUnmount as fe, Teleport as xt, createVNode as L, Transition as te, normalizeProps as we, guardReactiveProps as ke, withKeys as K, withModifiers as R, mergeProps as Ce, useSlots as ne, inject as re, unref as k, onMounted as _, onUnmounted as be, Fragment as j, renderList as P, provide as Se, nextTick as ce, createSlots as Ge, withDirectives as le, vShow as Le, isRef as oe, vModelText as he } from "vue";
|
|
2
2
|
function yt(e, a) {
|
|
3
|
-
return l(),
|
|
3
|
+
return l(), s("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
viewBox: "0 0 24 24",
|
|
6
6
|
fill: "currentColor",
|
|
@@ -15,7 +15,7 @@ function yt(e, a) {
|
|
|
15
15
|
]);
|
|
16
16
|
}
|
|
17
17
|
function wt(e, a) {
|
|
18
|
-
return l(),
|
|
18
|
+
return l(), s("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 24 24",
|
|
21
21
|
fill: "currentColor",
|
|
@@ -30,7 +30,7 @@ function wt(e, a) {
|
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
function $e(e, a) {
|
|
33
|
-
return l(),
|
|
33
|
+
return l(), s("svg", {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
36
36
|
fill: "currentColor",
|
|
@@ -45,7 +45,7 @@ function $e(e, a) {
|
|
|
45
45
|
]);
|
|
46
46
|
}
|
|
47
47
|
function kt(e, a) {
|
|
48
|
-
return l(),
|
|
48
|
+
return l(), s("svg", {
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
viewBox: "0 0 24 24",
|
|
51
51
|
fill: "currentColor",
|
|
@@ -60,7 +60,7 @@ function kt(e, a) {
|
|
|
60
60
|
]);
|
|
61
61
|
}
|
|
62
62
|
function We(e, a) {
|
|
63
|
-
return l(),
|
|
63
|
+
return l(), s("svg", {
|
|
64
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
65
65
|
viewBox: "0 0 24 24",
|
|
66
66
|
fill: "currentColor",
|
|
@@ -75,7 +75,7 @@ function We(e, a) {
|
|
|
75
75
|
]);
|
|
76
76
|
}
|
|
77
77
|
function Te(e, a) {
|
|
78
|
-
return l(),
|
|
78
|
+
return l(), s("svg", {
|
|
79
79
|
xmlns: "http://www.w3.org/2000/svg",
|
|
80
80
|
viewBox: "0 0 24 24",
|
|
81
81
|
fill: "currentColor",
|
|
@@ -90,7 +90,7 @@ function Te(e, a) {
|
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
92
|
function Ct(e, a) {
|
|
93
|
-
return l(),
|
|
93
|
+
return l(), s("svg", {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
viewBox: "0 0 24 24",
|
|
96
96
|
fill: "currentColor",
|
|
@@ -103,7 +103,7 @@ function Ct(e, a) {
|
|
|
103
103
|
]);
|
|
104
104
|
}
|
|
105
105
|
function St(e, a) {
|
|
106
|
-
return l(),
|
|
106
|
+
return l(), s("svg", {
|
|
107
107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
108
108
|
viewBox: "0 0 24 24",
|
|
109
109
|
fill: "currentColor",
|
|
@@ -114,7 +114,7 @@ function St(e, a) {
|
|
|
114
114
|
]);
|
|
115
115
|
}
|
|
116
116
|
function Xe(e, a) {
|
|
117
|
-
return l(),
|
|
117
|
+
return l(), s("svg", {
|
|
118
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
119
|
viewBox: "0 0 24 24",
|
|
120
120
|
fill: "currentColor",
|
|
@@ -129,7 +129,7 @@ function Xe(e, a) {
|
|
|
129
129
|
]);
|
|
130
130
|
}
|
|
131
131
|
function $t(e, a) {
|
|
132
|
-
return l(),
|
|
132
|
+
return l(), s("svg", {
|
|
133
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
134
|
viewBox: "0 0 24 24",
|
|
135
135
|
fill: "currentColor",
|
|
@@ -144,7 +144,7 @@ function $t(e, a) {
|
|
|
144
144
|
]);
|
|
145
145
|
}
|
|
146
146
|
function zt(e, a) {
|
|
147
|
-
return l(),
|
|
147
|
+
return l(), s("svg", {
|
|
148
148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
149
149
|
viewBox: "0 0 24 24",
|
|
150
150
|
fill: "currentColor",
|
|
@@ -159,7 +159,7 @@ function zt(e, a) {
|
|
|
159
159
|
]);
|
|
160
160
|
}
|
|
161
161
|
function At(e, a) {
|
|
162
|
-
return l(),
|
|
162
|
+
return l(), s("svg", {
|
|
163
163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
164
|
viewBox: "0 0 24 24",
|
|
165
165
|
fill: "currentColor",
|
|
@@ -174,7 +174,7 @@ function At(e, a) {
|
|
|
174
174
|
]);
|
|
175
175
|
}
|
|
176
176
|
function Dt(e, a) {
|
|
177
|
-
return l(),
|
|
177
|
+
return l(), s("svg", {
|
|
178
178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
179
179
|
viewBox: "0 0 24 24",
|
|
180
180
|
fill: "currentColor",
|
|
@@ -185,7 +185,7 @@ function Dt(e, a) {
|
|
|
185
185
|
]);
|
|
186
186
|
}
|
|
187
187
|
function Vt(e, a) {
|
|
188
|
-
return l(),
|
|
188
|
+
return l(), s("svg", {
|
|
189
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
190
190
|
viewBox: "0 0 24 24",
|
|
191
191
|
fill: "currentColor",
|
|
@@ -200,7 +200,7 @@ function Vt(e, a) {
|
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
202
|
function Bt(e, a) {
|
|
203
|
-
return l(),
|
|
203
|
+
return l(), s("svg", {
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
205
|
viewBox: "0 0 24 24",
|
|
206
206
|
fill: "currentColor",
|
|
@@ -215,7 +215,7 @@ function Bt(e, a) {
|
|
|
215
215
|
]);
|
|
216
216
|
}
|
|
217
217
|
function Qe(e, a) {
|
|
218
|
-
return l(),
|
|
218
|
+
return l(), s("svg", {
|
|
219
219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
220
220
|
viewBox: "0 0 24 24",
|
|
221
221
|
fill: "currentColor",
|
|
@@ -230,7 +230,7 @@ function Qe(e, a) {
|
|
|
230
230
|
]);
|
|
231
231
|
}
|
|
232
232
|
function It(e, a) {
|
|
233
|
-
return l(),
|
|
233
|
+
return l(), s("svg", {
|
|
234
234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
235
235
|
viewBox: "0 0 24 24",
|
|
236
236
|
fill: "currentColor",
|
|
@@ -244,7 +244,7 @@ function It(e, a) {
|
|
|
244
244
|
})
|
|
245
245
|
]);
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const E = {
|
|
248
248
|
// Для Alert/Toast и общих компонентов
|
|
249
249
|
default: {
|
|
250
250
|
bg: "bg-slate-50",
|
|
@@ -605,32 +605,32 @@ const F = {
|
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
607
|
function _r(e) {
|
|
608
|
-
const a =
|
|
608
|
+
const a = E[e] || E.info;
|
|
609
609
|
return `${a.bg} ${a.text} ${a.border}`;
|
|
610
610
|
}
|
|
611
611
|
function ei(e) {
|
|
612
|
-
return (
|
|
612
|
+
return (E[e] || E.info).icon;
|
|
613
613
|
}
|
|
614
614
|
function Lt(e) {
|
|
615
|
-
return
|
|
615
|
+
return E[e] || E.info;
|
|
616
616
|
}
|
|
617
617
|
function Tt(e) {
|
|
618
|
-
return (
|
|
618
|
+
return (E[e] || E.primary).checkbox || E.primary.checkbox;
|
|
619
619
|
}
|
|
620
620
|
function Re(e) {
|
|
621
|
-
return (
|
|
621
|
+
return (E[e] || E.primary).radio || E.primary.radio;
|
|
622
622
|
}
|
|
623
623
|
function Me(e) {
|
|
624
|
-
return e === "default" ? "text-slate-700" : (
|
|
624
|
+
return e === "default" ? "text-slate-700" : (E[e] || E.default).text || "text-slate-700";
|
|
625
625
|
}
|
|
626
626
|
function Xt(e) {
|
|
627
|
-
return (
|
|
627
|
+
return (E[e] || E.default).tag || E.default.tag;
|
|
628
628
|
}
|
|
629
629
|
function Mt(e) {
|
|
630
|
-
return (
|
|
630
|
+
return (E[e] || E.default).progress || E.default.progress;
|
|
631
631
|
}
|
|
632
632
|
function jt(e) {
|
|
633
|
-
return (
|
|
633
|
+
return (E[e] || E.default).loader || E.default.loader;
|
|
634
634
|
}
|
|
635
635
|
const qe = {
|
|
636
636
|
horizontal: {
|
|
@@ -668,16 +668,16 @@ const qe = {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
function
|
|
672
|
-
var
|
|
671
|
+
function Ft(e, a, t) {
|
|
672
|
+
var o, r, d, c;
|
|
673
673
|
const n = e === "vertical" ? "vertical" : "horizontal";
|
|
674
|
-
return ((r = (
|
|
674
|
+
return ((r = (o = qe[n]) == null ? void 0 : o[a]) == null ? void 0 : r[t]) || ((c = (d = qe[n]) == null ? void 0 : d.default) == null ? void 0 : c.default) || "border-t border-slate-200";
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ot(e) {
|
|
677
677
|
var t;
|
|
678
|
-
return e === "light" ? ((t =
|
|
678
|
+
return e === "light" ? ((t = E.tooltipLight) == null ? void 0 : t.tooltip) || "bg-white text-slate-900 border border-slate-200 shadow-lg" : (E[e] || E.dark).tooltip || E.dark.tooltip;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Et(e = "top") {
|
|
681
681
|
const a = {
|
|
682
682
|
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
683
683
|
bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
|
|
@@ -725,14 +725,14 @@ function Pt(e, a) {
|
|
|
725
725
|
warning: "right-full top-1/2 -translate-y-1/2 border-r-amber-600 border-t-transparent border-b-transparent border-l-transparent",
|
|
726
726
|
danger: "right-full top-1/2 -translate-y-1/2 border-r-rose-600 border-t-transparent border-b-transparent border-l-transparent"
|
|
727
727
|
}
|
|
728
|
-
},
|
|
729
|
-
return `${t} ${((d = n[e || "top"]) == null ? void 0 : d[
|
|
728
|
+
}, o = a || "dark";
|
|
729
|
+
return `${t} ${((d = n[e || "top"]) == null ? void 0 : d[o]) || n.top.dark}`;
|
|
730
730
|
}
|
|
731
731
|
function Nt(e) {
|
|
732
|
-
return (
|
|
732
|
+
return (E[e] || E.primary).slider || E.primary.slider;
|
|
733
733
|
}
|
|
734
734
|
function Rt(e, a = !1) {
|
|
735
|
-
const n = (
|
|
735
|
+
const n = (E[e] || E.slate).toggle || E.slate.toggle;
|
|
736
736
|
return {
|
|
737
737
|
checked: n.checked,
|
|
738
738
|
unchecked: n.unchecked,
|
|
@@ -800,7 +800,7 @@ const ti = {
|
|
|
800
800
|
"2xl": "text-2xl",
|
|
801
801
|
"3xl": "text-3xl",
|
|
802
802
|
"4xl": "text-4xl"
|
|
803
|
-
},
|
|
803
|
+
}, o = {
|
|
804
804
|
1: "text-4xl",
|
|
805
805
|
2: "text-3xl",
|
|
806
806
|
3: "text-2xl",
|
|
@@ -813,7 +813,7 @@ const ti = {
|
|
|
813
813
|
semibold: "font-semibold",
|
|
814
814
|
bold: "font-bold"
|
|
815
815
|
}, d = m(() => [
|
|
816
|
-
a.size ? n[a.size] :
|
|
816
|
+
a.size ? n[a.size] : o[a.level],
|
|
817
817
|
r[a.weight] || r.semibold,
|
|
818
818
|
Me(a.color),
|
|
819
819
|
"tracking-tight",
|
|
@@ -862,7 +862,7 @@ const ti = {
|
|
|
862
862
|
medium: "font-medium",
|
|
863
863
|
semibold: "font-semibold",
|
|
864
864
|
bold: "font-bold"
|
|
865
|
-
},
|
|
865
|
+
}, o = {
|
|
866
866
|
left: "text-left",
|
|
867
867
|
center: "text-center",
|
|
868
868
|
right: "text-right",
|
|
@@ -871,7 +871,7 @@ const ti = {
|
|
|
871
871
|
t[a.size] || t.md,
|
|
872
872
|
n[a.weight] || n.normal,
|
|
873
873
|
Me(a.color),
|
|
874
|
-
|
|
874
|
+
o[a.align] || o.left,
|
|
875
875
|
"leading-relaxed",
|
|
876
876
|
a.truncate && "truncate",
|
|
877
877
|
a.lines > 0 && `line-clamp-${a.lines}`
|
|
@@ -916,19 +916,19 @@ const ti = {
|
|
|
916
916
|
normal: "font-normal",
|
|
917
917
|
medium: "font-medium",
|
|
918
918
|
semibold: "font-semibold"
|
|
919
|
-
},
|
|
919
|
+
}, o = m(() => [
|
|
920
920
|
"block",
|
|
921
921
|
t[a.size] || t.sm,
|
|
922
922
|
n[a.weight] || n.medium,
|
|
923
923
|
Me(a.color)
|
|
924
924
|
]);
|
|
925
|
-
return (r, d) => (l(),
|
|
926
|
-
class: h(
|
|
925
|
+
return (r, d) => (l(), s("label", {
|
|
926
|
+
class: h(o.value),
|
|
927
927
|
for: e.htmlFor,
|
|
928
928
|
"data-component": "DXLabel"
|
|
929
929
|
}, [
|
|
930
930
|
I(r.$slots, "default"),
|
|
931
|
-
e.required ? (l(),
|
|
931
|
+
e.required ? (l(), s("span", Ut, "*")) : g("", !0)
|
|
932
932
|
], 10, Zt));
|
|
933
933
|
}
|
|
934
934
|
}, Kt = { key: 0 }, ni = {
|
|
@@ -955,15 +955,15 @@ const ti = {
|
|
|
955
955
|
t[a.size] || t.sm,
|
|
956
956
|
"font-mono"
|
|
957
957
|
]);
|
|
958
|
-
return (
|
|
958
|
+
return (o, r) => (l(), D(q(e.block ? "pre" : "code"), {
|
|
959
959
|
class: h(n.value),
|
|
960
960
|
"data-component": "DXCode",
|
|
961
961
|
"data-block": e.block
|
|
962
962
|
}, {
|
|
963
963
|
default: X(() => [
|
|
964
|
-
e.block ? (l(),
|
|
965
|
-
I(
|
|
966
|
-
])) : I(
|
|
964
|
+
e.block ? (l(), s("code", Kt, [
|
|
965
|
+
I(o.$slots, "default")
|
|
966
|
+
])) : I(o.$slots, "default", { key: 1 })
|
|
967
967
|
]),
|
|
968
968
|
_: 3
|
|
969
969
|
}, 8, ["class", "data-block"]));
|
|
@@ -971,7 +971,7 @@ const ti = {
|
|
|
971
971
|
}, Gt = ["data-variant"], Wt = {
|
|
972
972
|
key: 0,
|
|
973
973
|
class: "mt-2 text-sm text-slate-500"
|
|
974
|
-
},
|
|
974
|
+
}, oi = {
|
|
975
975
|
__name: "DXBlockquote",
|
|
976
976
|
props: {
|
|
977
977
|
/** Вариант: default | bordered | highlighted */
|
|
@@ -990,28 +990,28 @@ const ti = {
|
|
|
990
990
|
default: "text-slate-600 italic",
|
|
991
991
|
bordered: "border-l-4 border-slate-300 pl-4 text-slate-600 italic",
|
|
992
992
|
highlighted: "bg-slate-50 border-l-4 border-slate-400 pl-4 pr-4 py-3 rounded-r-lg text-slate-700"
|
|
993
|
-
},
|
|
993
|
+
}, o = m(() => [
|
|
994
994
|
t[a.size] || t.md,
|
|
995
995
|
n[a.variant] || n.bordered,
|
|
996
996
|
"leading-relaxed"
|
|
997
997
|
]);
|
|
998
|
-
return (r, d) => (l(),
|
|
999
|
-
class: h(
|
|
998
|
+
return (r, d) => (l(), s("blockquote", {
|
|
999
|
+
class: h(o.value),
|
|
1000
1000
|
"data-component": "DXBlockquote",
|
|
1001
1001
|
"data-variant": e.variant
|
|
1002
1002
|
}, [
|
|
1003
1003
|
I(r.$slots, "default"),
|
|
1004
|
-
e.cite || r.$slots.cite ? (l(),
|
|
1005
|
-
d[0] || (d[0] =
|
|
1004
|
+
e.cite || r.$slots.cite ? (l(), s("footer", Wt, [
|
|
1005
|
+
d[0] || (d[0] = O(" — ", -1)),
|
|
1006
1006
|
i("cite", null, [
|
|
1007
1007
|
I(r.$slots, "cite", {}, () => [
|
|
1008
|
-
|
|
1008
|
+
O(A(e.cite), 1)
|
|
1009
1009
|
])
|
|
1010
1010
|
])
|
|
1011
1011
|
])) : g("", !0)
|
|
1012
1012
|
], 10, Gt));
|
|
1013
1013
|
}
|
|
1014
|
-
},
|
|
1014
|
+
}, si = {
|
|
1015
1015
|
__name: "DXList",
|
|
1016
1016
|
props: {
|
|
1017
1017
|
/** Нумерованный список */
|
|
@@ -1033,7 +1033,7 @@ const ti = {
|
|
|
1033
1033
|
sm: "space-y-1",
|
|
1034
1034
|
md: "space-y-2",
|
|
1035
1035
|
lg: "space-y-3"
|
|
1036
|
-
},
|
|
1036
|
+
}, o = {
|
|
1037
1037
|
disc: "list-disc",
|
|
1038
1038
|
circle: "list-circle",
|
|
1039
1039
|
square: "list-square",
|
|
@@ -1042,7 +1042,7 @@ const ti = {
|
|
|
1042
1042
|
}, r = m(() => [
|
|
1043
1043
|
t[a.size] || t.md,
|
|
1044
1044
|
n[a.spacing] || n.sm,
|
|
1045
|
-
a.marker ?
|
|
1045
|
+
a.marker ? o[a.marker] : a.ordered ? "list-decimal" : "list-disc",
|
|
1046
1046
|
"pl-5 text-slate-700"
|
|
1047
1047
|
]);
|
|
1048
1048
|
return (d, c) => (l(), D(q(e.ordered ? "ol" : "ul"), {
|
|
@@ -1079,8 +1079,8 @@ function ae(e, a = "padding") {
|
|
|
1079
1079
|
};
|
|
1080
1080
|
if (e === "none")
|
|
1081
1081
|
return `${n[a]}-0`;
|
|
1082
|
-
const
|
|
1083
|
-
return
|
|
1082
|
+
const o = t[e];
|
|
1083
|
+
return o ? `${n[a]}-${o}` : "";
|
|
1084
1084
|
}
|
|
1085
1085
|
const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
1086
1086
|
__name: "DXContainer",
|
|
@@ -1106,14 +1106,14 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1106
1106
|
ae(a.padding, "paddingX"),
|
|
1107
1107
|
a.center && "mx-auto"
|
|
1108
1108
|
]);
|
|
1109
|
-
return (
|
|
1109
|
+
return (o, r) => (l(), s("div", {
|
|
1110
1110
|
class: h(n.value),
|
|
1111
1111
|
"data-component": "DXContainer",
|
|
1112
1112
|
"data-size": e.size,
|
|
1113
1113
|
"data-padding": e.padding,
|
|
1114
1114
|
"data-center": e.center
|
|
1115
1115
|
}, [
|
|
1116
|
-
I(
|
|
1116
|
+
I(o.$slots, "default")
|
|
1117
1117
|
], 10, Qt));
|
|
1118
1118
|
}
|
|
1119
1119
|
}, ii = {
|
|
@@ -1156,7 +1156,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1156
1156
|
11: "grid-cols-11",
|
|
1157
1157
|
12: "grid-cols-12",
|
|
1158
1158
|
auto: "grid-cols-[repeat(auto-fit,minmax(250px,1fr))]"
|
|
1159
|
-
},
|
|
1159
|
+
}, o = m(() => [
|
|
1160
1160
|
"grid",
|
|
1161
1161
|
n[a.cols] || `grid-cols-${a.cols}`,
|
|
1162
1162
|
a.colsSm && `sm:grid-cols-${a.colsSm}`,
|
|
@@ -1166,8 +1166,8 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1166
1166
|
a.gapX && `gap-x-${a.gapX}`,
|
|
1167
1167
|
a.gapY && `gap-y-${a.gapY}`
|
|
1168
1168
|
]), r = m(() => a.cols === "auto" ? {} : {});
|
|
1169
|
-
return (d, c) => (l(),
|
|
1170
|
-
class: h(
|
|
1169
|
+
return (d, c) => (l(), s("div", {
|
|
1170
|
+
class: h(o.value),
|
|
1171
1171
|
style: Q(r.value),
|
|
1172
1172
|
"data-component": "DXGrid"
|
|
1173
1173
|
}, [
|
|
@@ -1203,7 +1203,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1203
1203
|
between: "justify-between",
|
|
1204
1204
|
around: "justify-around",
|
|
1205
1205
|
evenly: "justify-evenly"
|
|
1206
|
-
},
|
|
1206
|
+
}, o = {
|
|
1207
1207
|
start: "items-start",
|
|
1208
1208
|
center: "items-center",
|
|
1209
1209
|
end: "items-end",
|
|
@@ -1224,11 +1224,11 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1224
1224
|
a.inline ? "inline-flex" : "flex",
|
|
1225
1225
|
t[a.direction] || t.row,
|
|
1226
1226
|
n[a.justify] || n.start,
|
|
1227
|
-
|
|
1227
|
+
o[a.align] || o.center,
|
|
1228
1228
|
r[a.wrap] || r.nowrap,
|
|
1229
1229
|
d[a.gap] || d.md
|
|
1230
1230
|
]);
|
|
1231
|
-
return (b, y) => (l(),
|
|
1231
|
+
return (b, y) => (l(), s("div", {
|
|
1232
1232
|
class: h(c.value),
|
|
1233
1233
|
"data-component": "DXFlex"
|
|
1234
1234
|
}, [
|
|
@@ -1263,7 +1263,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1263
1263
|
center: "items-center",
|
|
1264
1264
|
end: "items-end",
|
|
1265
1265
|
stretch: "items-stretch"
|
|
1266
|
-
},
|
|
1266
|
+
}, o = {
|
|
1267
1267
|
start: "justify-start",
|
|
1268
1268
|
center: "justify-center",
|
|
1269
1269
|
end: "justify-end",
|
|
@@ -1274,10 +1274,10 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1274
1274
|
a.direction === "horizontal" ? "flex-row" : "flex-col",
|
|
1275
1275
|
t[a.gap] || t.md,
|
|
1276
1276
|
n[a.align] || n.stretch,
|
|
1277
|
-
|
|
1277
|
+
o[a.justify] || o.start,
|
|
1278
1278
|
a.dividers && (a.direction === "horizontal" ? "divide-x divide-slate-200" : "divide-y divide-slate-200")
|
|
1279
1279
|
]);
|
|
1280
|
-
return (d, c) => (l(),
|
|
1280
|
+
return (d, c) => (l(), s("div", {
|
|
1281
1281
|
class: h(r.value),
|
|
1282
1282
|
"data-component": "DXStack",
|
|
1283
1283
|
"data-direction": e.direction,
|
|
@@ -1311,7 +1311,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1311
1311
|
return ["flex-grow"];
|
|
1312
1312
|
const r = t[a.size];
|
|
1313
1313
|
return r ? a.direction === "horizontal" ? [r.h] : a.direction === "both" ? [r.v, r.h] : [r.v] : [];
|
|
1314
|
-
}),
|
|
1314
|
+
}), o = m(() => {
|
|
1315
1315
|
if (a.grow) return {};
|
|
1316
1316
|
if (typeof a.size == "number") {
|
|
1317
1317
|
const r = `${a.size}px`;
|
|
@@ -1319,9 +1319,9 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
return {};
|
|
1321
1321
|
});
|
|
1322
|
-
return (r, d) => (l(),
|
|
1322
|
+
return (r, d) => (l(), s("div", {
|
|
1323
1323
|
class: h(n.value),
|
|
1324
|
-
style: Q(
|
|
1324
|
+
style: Q(o.value),
|
|
1325
1325
|
"data-component": "DXSpacer",
|
|
1326
1326
|
"aria-hidden": "true"
|
|
1327
1327
|
}, null, 6));
|
|
@@ -1368,7 +1368,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1368
1368
|
lg: "6",
|
|
1369
1369
|
xl: "8",
|
|
1370
1370
|
auto: "auto"
|
|
1371
|
-
},
|
|
1371
|
+
}, o = {
|
|
1372
1372
|
none: "rounded-none",
|
|
1373
1373
|
sm: "rounded-sm",
|
|
1374
1374
|
md: "rounded-md",
|
|
@@ -1393,7 +1393,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1393
1393
|
a.m && `m-${n[a.m] || a.m}`,
|
|
1394
1394
|
a.mx && `mx-${n[a.mx] || a.mx}`,
|
|
1395
1395
|
a.my && `my-${n[a.my] || a.my}`,
|
|
1396
|
-
a.rounded && (
|
|
1396
|
+
a.rounded && (o[a.rounded] || `rounded-${a.rounded}`),
|
|
1397
1397
|
a.bg && (r[a.bg] || a.bg),
|
|
1398
1398
|
a.shadow && (d[a.shadow] || `shadow-${a.shadow}`),
|
|
1399
1399
|
a.border && "border border-slate-200"
|
|
@@ -1410,7 +1410,7 @@ const Qt = ["data-size", "data-padding", "data-center"], ri = {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
1412
|
function N(e, a = "input") {
|
|
1413
|
-
var n,
|
|
1413
|
+
var n, o, r, d;
|
|
1414
1414
|
const t = {
|
|
1415
1415
|
button: {
|
|
1416
1416
|
xs: "h-7 px-2.5 py-1 text-xs",
|
|
@@ -1539,7 +1539,7 @@ function N(e, a = "input") {
|
|
|
1539
1539
|
md: "px-2.5 py-1.5 text-xs"
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
|
-
return a === "toggle" ? ((n = t[a]) == null ? void 0 : n[e]) || ((
|
|
1542
|
+
return a === "toggle" ? ((n = t[a]) == null ? void 0 : n[e]) || ((o = t[a]) == null ? void 0 : o.md) || { track: "", thumb: "" } : ((r = t[a]) == null ? void 0 : r[e]) || ((d = t[a]) == null ? void 0 : d.md) || "";
|
|
1543
1543
|
}
|
|
1544
1544
|
const Jt = {
|
|
1545
1545
|
enterActiveClass: "transition-all duration-200 ease-out",
|
|
@@ -1591,7 +1591,7 @@ const Jt = {
|
|
|
1591
1591
|
leaveFromClass: "opacity-100 translate-y-0",
|
|
1592
1592
|
leaveToClass: "opacity-0 -translate-y-full"
|
|
1593
1593
|
};
|
|
1594
|
-
function
|
|
1594
|
+
function oa(e = "top") {
|
|
1595
1595
|
const a = {
|
|
1596
1596
|
top: {
|
|
1597
1597
|
enterFrom: "opacity-0 translate-y-1",
|
|
@@ -1627,7 +1627,7 @@ function sa(e = "top") {
|
|
|
1627
1627
|
leaveToClass: t.leaveTo
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
const
|
|
1630
|
+
const sa = {
|
|
1631
1631
|
enterActiveClass: "transition-all duration-150 ease-out",
|
|
1632
1632
|
enterFromClass: "opacity-0 translate-y-1",
|
|
1633
1633
|
enterToClass: "opacity-100 translate-y-0",
|
|
@@ -1644,7 +1644,7 @@ function Je(e = "fade") {
|
|
|
1644
1644
|
"slide-left": aa,
|
|
1645
1645
|
"slide-up": la,
|
|
1646
1646
|
"slide-down": na,
|
|
1647
|
-
"tooltip-custom":
|
|
1647
|
+
"tooltip-custom": sa
|
|
1648
1648
|
};
|
|
1649
1649
|
return a[e] || a.fade;
|
|
1650
1650
|
}
|
|
@@ -1655,7 +1655,7 @@ function je(e = "none", a = "icon", t = !1) {
|
|
|
1655
1655
|
wiggle: "dx-icon-wiggle",
|
|
1656
1656
|
scale: "dx-icon-scale",
|
|
1657
1657
|
rotate: "dx-icon-rotate"
|
|
1658
|
-
},
|
|
1658
|
+
}, o = {
|
|
1659
1659
|
none: "",
|
|
1660
1660
|
wiggle: "dx-icon-wiggle-group",
|
|
1661
1661
|
scale: "dx-icon-scale-group",
|
|
@@ -1691,13 +1691,13 @@ function je(e = "none", a = "icon", t = !1) {
|
|
|
1691
1691
|
smooth: "transition-transform duration-200 ease-in-out"
|
|
1692
1692
|
// Плавная анимация движения индикатора
|
|
1693
1693
|
};
|
|
1694
|
-
return a === "icon" ? t ?
|
|
1694
|
+
return a === "icon" ? t ? o[e] || "" : n[e] || "" : a === "button" ? t ? d[e] || "" : r[e] || "" : a === "progress" ? b[e] || "" : a === "tooltip" ? y[e] || "" : a === "toggle" ? f[e] || f.smooth : c[e] || "";
|
|
1695
1695
|
}
|
|
1696
1696
|
const T = {
|
|
1697
1697
|
__name: "DXIcon",
|
|
1698
1698
|
props: {
|
|
1699
1699
|
/** Heroicon компонент */
|
|
1700
|
-
icon: { type: Object, required: !0 },
|
|
1700
|
+
icon: { type: [Object, Function], required: !0 },
|
|
1701
1701
|
/** Размер: xs | sm | md | lg | xl */
|
|
1702
1702
|
size: { type: String, default: "md" },
|
|
1703
1703
|
/** Анимация при hover: none | wiggle | scale | rotate */
|
|
@@ -1713,7 +1713,7 @@ const T = {
|
|
|
1713
1713
|
je(a.animation, "icon", a.groupHover),
|
|
1714
1714
|
a.class
|
|
1715
1715
|
]);
|
|
1716
|
-
return (n,
|
|
1716
|
+
return (n, o) => (l(), D(q(e.icon), {
|
|
1717
1717
|
class: h(t.value),
|
|
1718
1718
|
"data-component": "DXIcon",
|
|
1719
1719
|
"data-size": e.size,
|
|
@@ -1734,7 +1734,7 @@ const T = {
|
|
|
1734
1734
|
/** Форма: circle | square */
|
|
1735
1735
|
shape: { type: String, default: "circle" },
|
|
1736
1736
|
/** Кастомная иконка для fallback (по умолчанию UserIcon) */
|
|
1737
|
-
icon: { type: Object, default: null },
|
|
1737
|
+
icon: { type: [Object, Function], default: null },
|
|
1738
1738
|
/** Анимация иконки при hover: none | wiggle | scale | rotate */
|
|
1739
1739
|
iconAnimation: { type: String, default: "wiggle" }
|
|
1740
1740
|
},
|
|
@@ -1746,7 +1746,7 @@ const T = {
|
|
|
1746
1746
|
const n = {
|
|
1747
1747
|
circle: "rounded-full",
|
|
1748
1748
|
square: "rounded-lg"
|
|
1749
|
-
},
|
|
1749
|
+
}, o = {
|
|
1750
1750
|
xs: "text-xs",
|
|
1751
1751
|
sm: "text-xs",
|
|
1752
1752
|
md: "text-sm",
|
|
@@ -1761,7 +1761,7 @@ const T = {
|
|
|
1761
1761
|
]
|
|
1762
1762
|
), d = m(() => ua), c = m(() => [
|
|
1763
1763
|
ca,
|
|
1764
|
-
|
|
1764
|
+
o[a.size] || o.md
|
|
1765
1765
|
]), b = m(() => ma), y = m(() => a.icon || Bt), f = {
|
|
1766
1766
|
xs: "sm",
|
|
1767
1767
|
sm: "sm",
|
|
@@ -1769,19 +1769,19 @@ const T = {
|
|
|
1769
1769
|
lg: "lg",
|
|
1770
1770
|
xl: "xl"
|
|
1771
1771
|
}, u = m(() => f[a.size] || "md");
|
|
1772
|
-
return (v, x) => (l(),
|
|
1772
|
+
return (v, x) => (l(), s("div", {
|
|
1773
1773
|
class: h(r.value),
|
|
1774
1774
|
"data-component": "DXAvatar",
|
|
1775
1775
|
"data-size": e.size,
|
|
1776
1776
|
"data-shape": e.shape
|
|
1777
1777
|
}, [
|
|
1778
|
-
e.src && !t.value ? (l(),
|
|
1778
|
+
e.src && !t.value ? (l(), s("img", {
|
|
1779
1779
|
key: 0,
|
|
1780
1780
|
src: e.src,
|
|
1781
1781
|
alt: e.alt,
|
|
1782
1782
|
class: h(d.value),
|
|
1783
1783
|
onError: x[0] || (x[0] = (z) => t.value = !0)
|
|
1784
|
-
}, null, 42, ia)) : e.initials ? (l(),
|
|
1784
|
+
}, null, 42, ia)) : e.initials ? (l(), s("span", {
|
|
1785
1785
|
key: 1,
|
|
1786
1786
|
class: h(c.value)
|
|
1787
1787
|
}, A(e.initials), 3)) : (l(), D(T, {
|
|
@@ -1823,7 +1823,7 @@ const T = {
|
|
|
1823
1823
|
leaveActiveClass: "transition-opacity duration-200 ease-in",
|
|
1824
1824
|
leaveFromClass: "opacity-100",
|
|
1825
1825
|
leaveToClass: "opacity-0"
|
|
1826
|
-
}, n = e,
|
|
1826
|
+
}, n = e, o = a, r = {
|
|
1827
1827
|
none: "backdrop-blur-none",
|
|
1828
1828
|
sm: "backdrop-blur-sm",
|
|
1829
1829
|
md: "backdrop-blur",
|
|
@@ -1844,7 +1844,7 @@ const T = {
|
|
|
1844
1844
|
d[n.zIndex] || "z-50",
|
|
1845
1845
|
n.dismissible && "cursor-pointer"
|
|
1846
1846
|
]), b = (y) => {
|
|
1847
|
-
y.target === y.currentTarget && (
|
|
1847
|
+
y.target === y.currentTarget && (o("click", y), n.dismissible && o("close"));
|
|
1848
1848
|
};
|
|
1849
1849
|
return Y(() => n.show, (y) => {
|
|
1850
1850
|
n.lockScroll && document.body.classList.toggle("overflow-hidden", y);
|
|
@@ -1853,7 +1853,7 @@ const T = {
|
|
|
1853
1853
|
}), (y, f) => (l(), D(xt, { to: "body" }, [
|
|
1854
1854
|
L(te, we(ke(t)), {
|
|
1855
1855
|
default: X(() => [
|
|
1856
|
-
e.show ? (l(),
|
|
1856
|
+
e.show ? (l(), s("div", {
|
|
1857
1857
|
key: 0,
|
|
1858
1858
|
class: h(c.value),
|
|
1859
1859
|
onClick: b,
|
|
@@ -1883,9 +1883,9 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
1883
1883
|
/** Размер: sm | md */
|
|
1884
1884
|
size: { type: String, default: "sm" },
|
|
1885
1885
|
/** Иконка слева */
|
|
1886
|
-
iconLeft: { type: Object, default: null },
|
|
1886
|
+
iconLeft: { type: [Object, Function], default: null },
|
|
1887
1887
|
/** Иконка справа */
|
|
1888
|
-
iconRight: { type: Object, default: null }
|
|
1888
|
+
iconRight: { type: [Object, Function], default: null }
|
|
1889
1889
|
},
|
|
1890
1890
|
setup(e) {
|
|
1891
1891
|
const a = e, t = m(
|
|
@@ -1895,7 +1895,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
1895
1895
|
qt(a.variant)
|
|
1896
1896
|
)
|
|
1897
1897
|
);
|
|
1898
|
-
return (n,
|
|
1898
|
+
return (n, o) => (l(), s("span", {
|
|
1899
1899
|
class: h(t.value),
|
|
1900
1900
|
"data-component": "DXBadge",
|
|
1901
1901
|
"data-variant": e.variant,
|
|
@@ -1941,7 +1941,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
1941
1941
|
rel: { type: String, default: null }
|
|
1942
1942
|
},
|
|
1943
1943
|
setup(e) {
|
|
1944
|
-
const a = e, t = m(() => a.to ? "router-link" : a.href ? "a" : "button"), n = m(() => N(a.size, a.iconOnly ? "buttonIcon" : "button")),
|
|
1944
|
+
const a = e, t = m(() => a.to ? "router-link" : a.href ? "a" : "button"), n = m(() => N(a.size, a.iconOnly ? "buttonIcon" : "button")), o = m(
|
|
1945
1945
|
() => G(
|
|
1946
1946
|
ha,
|
|
1947
1947
|
Ye(a.variant),
|
|
@@ -1959,7 +1959,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
1959
1959
|
href: e.href,
|
|
1960
1960
|
target: e.target,
|
|
1961
1961
|
rel: e.rel,
|
|
1962
|
-
class: h(
|
|
1962
|
+
class: h(o.value),
|
|
1963
1963
|
"data-component": "DXButton",
|
|
1964
1964
|
"data-variant": e.variant,
|
|
1965
1965
|
"data-size": e.size,
|
|
@@ -2000,13 +2000,13 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2000
2000
|
t[a.variant],
|
|
2001
2001
|
ae(a.padding, "padding")
|
|
2002
2002
|
]);
|
|
2003
|
-
return (
|
|
2003
|
+
return (o, r) => (l(), s("div", {
|
|
2004
2004
|
class: h(n.value),
|
|
2005
2005
|
"data-component": "DXCard",
|
|
2006
2006
|
"data-variant": e.variant,
|
|
2007
2007
|
"data-padding": e.padding
|
|
2008
2008
|
}, [
|
|
2009
|
-
I(
|
|
2009
|
+
I(o.$slots, "default")
|
|
2010
2010
|
], 10, xa));
|
|
2011
2011
|
}
|
|
2012
2012
|
}, ka = ["data-size", "data-disabled", "data-checked", "data-variant", "data-shape"], Ca = ["checked", "value", "disabled"], Sa = ["aria-checked", "aria-disabled"], $a = "inline-flex items-center gap-2 cursor-pointer mr-4", za = "rounded border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition flex-shrink-0", Aa = "relative flex items-center justify-center border-2 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 flex-shrink-0", ve = {
|
|
@@ -2029,9 +2029,9 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2029
2029
|
validator: (e) => ["default", "custom"].includes(e)
|
|
2030
2030
|
},
|
|
2031
2031
|
/** Иконка для checked состояния (для custom variant) */
|
|
2032
|
-
checkedIcon: { type: Object, default: null },
|
|
2032
|
+
checkedIcon: { type: [Object, Function], default: null },
|
|
2033
2033
|
/** Иконка для unchecked состояния (для custom variant) */
|
|
2034
|
-
uncheckedIcon: { type: Object, default: null },
|
|
2034
|
+
uncheckedIcon: { type: [Object, Function], default: null },
|
|
2035
2035
|
/** Форма кастомного checkbox: square | circle */
|
|
2036
2036
|
shape: {
|
|
2037
2037
|
type: String,
|
|
@@ -2053,7 +2053,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2053
2053
|
},
|
|
2054
2054
|
emits: ["update:modelValue"],
|
|
2055
2055
|
setup(e, { emit: a }) {
|
|
2056
|
-
const t = e, n = a,
|
|
2056
|
+
const t = e, n = a, o = {
|
|
2057
2057
|
enterActiveClass: "transition-opacity transition-transform duration-150 ease-out",
|
|
2058
2058
|
enterFromClass: "opacity-0 scale-50",
|
|
2059
2059
|
enterToClass: "opacity-100 scale-100",
|
|
@@ -2103,7 +2103,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2103
2103
|
}, z = (p) => {
|
|
2104
2104
|
x(p.target.checked);
|
|
2105
2105
|
};
|
|
2106
|
-
return (p, w) => (l(),
|
|
2106
|
+
return (p, w) => (l(), s("label", {
|
|
2107
2107
|
class: h(c.value),
|
|
2108
2108
|
"data-component": "DXCheckbox",
|
|
2109
2109
|
"data-size": e.size,
|
|
@@ -2113,7 +2113,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2113
2113
|
"data-shape": e.shape,
|
|
2114
2114
|
onClick: w[2] || (w[2] = (C) => e.variant === "custom" && !e.disabled && x(!u.value))
|
|
2115
2115
|
}, [
|
|
2116
|
-
e.variant === "default" ? (l(),
|
|
2116
|
+
e.variant === "default" ? (l(), s("input", {
|
|
2117
2117
|
key: 0,
|
|
2118
2118
|
type: "checkbox",
|
|
2119
2119
|
checked: u.value,
|
|
@@ -2121,7 +2121,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2121
2121
|
disabled: e.disabled,
|
|
2122
2122
|
class: h(y.value),
|
|
2123
2123
|
onChange: z
|
|
2124
|
-
}, null, 42, Ca)) : (l(),
|
|
2124
|
+
}, null, 42, Ca)) : (l(), s("div", {
|
|
2125
2125
|
key: 1,
|
|
2126
2126
|
class: h(f.value),
|
|
2127
2127
|
onClick: w[0] || (w[0] = R((C) => x(!u.value), ["stop"])),
|
|
@@ -2131,7 +2131,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2131
2131
|
tabindex: "0",
|
|
2132
2132
|
onKeydown: w[1] || (w[1] = K(R((C) => x(!u.value), ["prevent"]), ["space"]))
|
|
2133
2133
|
}, [
|
|
2134
|
-
L(te, Ce(
|
|
2134
|
+
L(te, Ce(o, { mode: "out-in" }), {
|
|
2135
2135
|
default: X(() => [
|
|
2136
2136
|
u.value && v.value ? (l(), D(T, {
|
|
2137
2137
|
key: 0,
|
|
@@ -2144,7 +2144,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2144
2144
|
_: 1
|
|
2145
2145
|
}, 16)
|
|
2146
2146
|
], 42, Sa)),
|
|
2147
|
-
e.label ? (l(),
|
|
2147
|
+
e.label ? (l(), s("span", {
|
|
2148
2148
|
key: 2,
|
|
2149
2149
|
class: h(b.value)
|
|
2150
2150
|
}, A(e.label), 3)) : g("", !0)
|
|
@@ -2153,7 +2153,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2153
2153
|
}, Da = ["data-orientation", "data-color", "data-thickness", "data-spacing"], Va = {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
class: "flex items-center w-full"
|
|
2156
|
-
}, Ba = { class: "px-3 text-sm text-slate-500 whitespace-nowrap" },
|
|
2156
|
+
}, Ba = { class: "px-3 text-sm text-slate-500 whitespace-nowrap" }, Fe = {
|
|
2157
2157
|
__name: "DXDivider",
|
|
2158
2158
|
props: {
|
|
2159
2159
|
/** Ориентация: horizontal | vertical */
|
|
@@ -2166,11 +2166,11 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2166
2166
|
spacing: { type: String, default: "md" }
|
|
2167
2167
|
},
|
|
2168
2168
|
setup(e) {
|
|
2169
|
-
const a = e, t = ne(), n = m(() => a.orientation === "horizontal"),
|
|
2169
|
+
const a = e, t = ne(), n = m(() => a.orientation === "horizontal"), o = m(() => !!t.default), r = m(() => [
|
|
2170
2170
|
a.orientation === "vertical" ? "inline-flex h-full" : "w-full",
|
|
2171
2171
|
a.orientation === "horizontal" ? ae(a.spacing, "marginY") : ae(a.spacing, "marginX")
|
|
2172
2172
|
]), d = m(() => {
|
|
2173
|
-
const c =
|
|
2173
|
+
const c = Ft(
|
|
2174
2174
|
a.orientation,
|
|
2175
2175
|
a.thickness,
|
|
2176
2176
|
a.color
|
|
@@ -2183,7 +2183,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2183
2183
|
c
|
|
2184
2184
|
];
|
|
2185
2185
|
});
|
|
2186
|
-
return (c, b) => (l(),
|
|
2186
|
+
return (c, b) => (l(), s("div", {
|
|
2187
2187
|
class: h(r.value),
|
|
2188
2188
|
"data-component": "DXDivider",
|
|
2189
2189
|
"data-orientation": a.orientation,
|
|
@@ -2191,7 +2191,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2191
2191
|
"data-thickness": a.thickness,
|
|
2192
2192
|
"data-spacing": a.spacing
|
|
2193
2193
|
}, [
|
|
2194
|
-
|
|
2194
|
+
o.value && n.value ? (l(), s("div", Va, [
|
|
2195
2195
|
i("div", {
|
|
2196
2196
|
class: h(d.value)
|
|
2197
2197
|
}, null, 2),
|
|
@@ -2201,10 +2201,10 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2201
2201
|
i("div", {
|
|
2202
2202
|
class: h(d.value)
|
|
2203
2203
|
}, null, 2)
|
|
2204
|
-
])) : n.value ? (l(),
|
|
2204
|
+
])) : n.value ? (l(), s("div", {
|
|
2205
2205
|
key: 1,
|
|
2206
2206
|
class: h(d.value)
|
|
2207
|
-
}, null, 2)) : (l(),
|
|
2207
|
+
}, null, 2)) : (l(), s("div", {
|
|
2208
2208
|
key: 2,
|
|
2209
2209
|
class: h(d.value)
|
|
2210
2210
|
}, null, 2))
|
|
@@ -2212,7 +2212,7 @@ const ga = ["data-variant", "data-size"], va = "inline-flex items-center gap-1 r
|
|
|
2212
2212
|
}
|
|
2213
2213
|
};
|
|
2214
2214
|
function Ia(e, a) {
|
|
2215
|
-
return l(),
|
|
2215
|
+
return l(), s("svg", {
|
|
2216
2216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2217
2217
|
fill: "none",
|
|
2218
2218
|
viewBox: "0 0 24 24",
|
|
@@ -2229,7 +2229,7 @@ function Ia(e, a) {
|
|
|
2229
2229
|
]);
|
|
2230
2230
|
}
|
|
2231
2231
|
function La(e, a) {
|
|
2232
|
-
return l(),
|
|
2232
|
+
return l(), s("svg", {
|
|
2233
2233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2234
2234
|
fill: "none",
|
|
2235
2235
|
viewBox: "0 0 24 24",
|
|
@@ -2246,7 +2246,7 @@ function La(e, a) {
|
|
|
2246
2246
|
]);
|
|
2247
2247
|
}
|
|
2248
2248
|
function Ta(e, a) {
|
|
2249
|
-
return l(),
|
|
2249
|
+
return l(), s("svg", {
|
|
2250
2250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2251
2251
|
fill: "none",
|
|
2252
2252
|
viewBox: "0 0 24 24",
|
|
@@ -2263,7 +2263,7 @@ function Ta(e, a) {
|
|
|
2263
2263
|
]);
|
|
2264
2264
|
}
|
|
2265
2265
|
function Xa(e, a) {
|
|
2266
|
-
return l(),
|
|
2266
|
+
return l(), s("svg", {
|
|
2267
2267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2268
2268
|
fill: "none",
|
|
2269
2269
|
viewBox: "0 0 24 24",
|
|
@@ -2280,7 +2280,7 @@ function Xa(e, a) {
|
|
|
2280
2280
|
]);
|
|
2281
2281
|
}
|
|
2282
2282
|
function ge(e, a) {
|
|
2283
|
-
return l(),
|
|
2283
|
+
return l(), s("svg", {
|
|
2284
2284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2285
2285
|
fill: "none",
|
|
2286
2286
|
viewBox: "0 0 24 24",
|
|
@@ -2297,7 +2297,7 @@ function ge(e, a) {
|
|
|
2297
2297
|
]);
|
|
2298
2298
|
}
|
|
2299
2299
|
function pe(e, a) {
|
|
2300
|
-
return l(),
|
|
2300
|
+
return l(), s("svg", {
|
|
2301
2301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2302
2302
|
fill: "none",
|
|
2303
2303
|
viewBox: "0 0 24 24",
|
|
@@ -2313,8 +2313,8 @@ function pe(e, a) {
|
|
|
2313
2313
|
})
|
|
2314
2314
|
]);
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2317
|
-
return l(),
|
|
2316
|
+
function se(e, a) {
|
|
2317
|
+
return l(), s("svg", {
|
|
2318
2318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2319
2319
|
fill: "none",
|
|
2320
2320
|
viewBox: "0 0 24 24",
|
|
@@ -2331,7 +2331,7 @@ function oe(e, a) {
|
|
|
2331
2331
|
]);
|
|
2332
2332
|
}
|
|
2333
2333
|
function Ma(e, a) {
|
|
2334
|
-
return l(),
|
|
2334
|
+
return l(), s("svg", {
|
|
2335
2335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2336
2336
|
fill: "none",
|
|
2337
2337
|
viewBox: "0 0 24 24",
|
|
@@ -2348,7 +2348,7 @@ function Ma(e, a) {
|
|
|
2348
2348
|
]);
|
|
2349
2349
|
}
|
|
2350
2350
|
function ja(e, a) {
|
|
2351
|
-
return l(),
|
|
2351
|
+
return l(), s("svg", {
|
|
2352
2352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2353
2353
|
fill: "none",
|
|
2354
2354
|
viewBox: "0 0 24 24",
|
|
@@ -2364,8 +2364,8 @@ function ja(e, a) {
|
|
|
2364
2364
|
})
|
|
2365
2365
|
]);
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2368
|
-
return l(),
|
|
2367
|
+
function Fa(e, a) {
|
|
2368
|
+
return l(), s("svg", {
|
|
2369
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2370
2370
|
fill: "none",
|
|
2371
2371
|
viewBox: "0 0 24 24",
|
|
@@ -2381,8 +2381,8 @@ function Oa(e, a) {
|
|
|
2381
2381
|
})
|
|
2382
2382
|
]);
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2385
|
-
return l(),
|
|
2384
|
+
function Oa(e, a) {
|
|
2385
|
+
return l(), s("svg", {
|
|
2386
2386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2387
2387
|
fill: "none",
|
|
2388
2388
|
viewBox: "0 0 24 24",
|
|
@@ -2398,8 +2398,8 @@ function Ea(e, a) {
|
|
|
2398
2398
|
})
|
|
2399
2399
|
]);
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2402
|
-
return l(),
|
|
2401
|
+
function Ea(e, a) {
|
|
2402
|
+
return l(), s("svg", {
|
|
2403
2403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2404
2404
|
fill: "none",
|
|
2405
2405
|
viewBox: "0 0 24 24",
|
|
@@ -2416,7 +2416,7 @@ function Fa(e, a) {
|
|
|
2416
2416
|
]);
|
|
2417
2417
|
}
|
|
2418
2418
|
function He(e, a) {
|
|
2419
|
-
return l(),
|
|
2419
|
+
return l(), s("svg", {
|
|
2420
2420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2421
2421
|
fill: "none",
|
|
2422
2422
|
viewBox: "0 0 24 24",
|
|
@@ -2433,7 +2433,7 @@ function He(e, a) {
|
|
|
2433
2433
|
]);
|
|
2434
2434
|
}
|
|
2435
2435
|
function Pa(e, a) {
|
|
2436
|
-
return l(),
|
|
2436
|
+
return l(), s("svg", {
|
|
2437
2437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2438
2438
|
fill: "none",
|
|
2439
2439
|
viewBox: "0 0 24 24",
|
|
@@ -2449,8 +2449,8 @@ function Pa(e, a) {
|
|
|
2449
2449
|
})
|
|
2450
2450
|
]);
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
return l(),
|
|
2452
|
+
function Oe(e, a) {
|
|
2453
|
+
return l(), s("svg", {
|
|
2454
2454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2455
2455
|
fill: "none",
|
|
2456
2456
|
viewBox: "0 0 24 24",
|
|
@@ -2472,7 +2472,7 @@ function Ee(e, a) {
|
|
|
2472
2472
|
]);
|
|
2473
2473
|
}
|
|
2474
2474
|
function et(e, a) {
|
|
2475
|
-
return l(),
|
|
2475
|
+
return l(), s("svg", {
|
|
2476
2476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2477
2477
|
fill: "none",
|
|
2478
2478
|
viewBox: "0 0 24 24",
|
|
@@ -2489,7 +2489,7 @@ function et(e, a) {
|
|
|
2489
2489
|
]);
|
|
2490
2490
|
}
|
|
2491
2491
|
function Na(e, a) {
|
|
2492
|
-
return l(),
|
|
2492
|
+
return l(), s("svg", {
|
|
2493
2493
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2494
2494
|
fill: "none",
|
|
2495
2495
|
viewBox: "0 0 24 24",
|
|
@@ -2506,7 +2506,7 @@ function Na(e, a) {
|
|
|
2506
2506
|
]);
|
|
2507
2507
|
}
|
|
2508
2508
|
function Ra(e, a) {
|
|
2509
|
-
return l(),
|
|
2509
|
+
return l(), s("svg", {
|
|
2510
2510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2511
2511
|
fill: "none",
|
|
2512
2512
|
viewBox: "0 0 24 24",
|
|
@@ -2523,7 +2523,7 @@ function Ra(e, a) {
|
|
|
2523
2523
|
]);
|
|
2524
2524
|
}
|
|
2525
2525
|
function xe(e, a) {
|
|
2526
|
-
return l(),
|
|
2526
|
+
return l(), s("svg", {
|
|
2527
2527
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2528
2528
|
fill: "none",
|
|
2529
2529
|
viewBox: "0 0 24 24",
|
|
@@ -2540,7 +2540,7 @@ function xe(e, a) {
|
|
|
2540
2540
|
]);
|
|
2541
2541
|
}
|
|
2542
2542
|
function Ve(e, a) {
|
|
2543
|
-
return l(),
|
|
2543
|
+
return l(), s("svg", {
|
|
2544
2544
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2545
2545
|
fill: "none",
|
|
2546
2546
|
viewBox: "0 0 24 24",
|
|
@@ -2557,7 +2557,7 @@ function Ve(e, a) {
|
|
|
2557
2557
|
]);
|
|
2558
2558
|
}
|
|
2559
2559
|
function qa(e, a) {
|
|
2560
|
-
return l(),
|
|
2560
|
+
return l(), s("svg", {
|
|
2561
2561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2562
2562
|
fill: "none",
|
|
2563
2563
|
viewBox: "0 0 24 24",
|
|
@@ -2574,7 +2574,7 @@ function qa(e, a) {
|
|
|
2574
2574
|
]);
|
|
2575
2575
|
}
|
|
2576
2576
|
function Ha(e, a) {
|
|
2577
|
-
return l(),
|
|
2577
|
+
return l(), s("svg", {
|
|
2578
2578
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2579
2579
|
fill: "none",
|
|
2580
2580
|
viewBox: "0 0 24 24",
|
|
@@ -2591,7 +2591,7 @@ function Ha(e, a) {
|
|
|
2591
2591
|
]);
|
|
2592
2592
|
}
|
|
2593
2593
|
function Za(e, a) {
|
|
2594
|
-
return l(),
|
|
2594
|
+
return l(), s("svg", {
|
|
2595
2595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2596
2596
|
fill: "none",
|
|
2597
2597
|
viewBox: "0 0 24 24",
|
|
@@ -2608,7 +2608,7 @@ function Za(e, a) {
|
|
|
2608
2608
|
]);
|
|
2609
2609
|
}
|
|
2610
2610
|
function Ua(e, a) {
|
|
2611
|
-
return l(),
|
|
2611
|
+
return l(), s("svg", {
|
|
2612
2612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2613
2613
|
fill: "none",
|
|
2614
2614
|
viewBox: "0 0 24 24",
|
|
@@ -2625,7 +2625,7 @@ function Ua(e, a) {
|
|
|
2625
2625
|
]);
|
|
2626
2626
|
}
|
|
2627
2627
|
function Ka(e, a) {
|
|
2628
|
-
return l(),
|
|
2628
|
+
return l(), s("svg", {
|
|
2629
2629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2630
2630
|
fill: "none",
|
|
2631
2631
|
viewBox: "0 0 24 24",
|
|
@@ -2642,7 +2642,7 @@ function Ka(e, a) {
|
|
|
2642
2642
|
]);
|
|
2643
2643
|
}
|
|
2644
2644
|
function Ga(e, a) {
|
|
2645
|
-
return l(),
|
|
2645
|
+
return l(), s("svg", {
|
|
2646
2646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2647
2647
|
fill: "none",
|
|
2648
2648
|
viewBox: "0 0 24 24",
|
|
@@ -2659,7 +2659,7 @@ function Ga(e, a) {
|
|
|
2659
2659
|
]);
|
|
2660
2660
|
}
|
|
2661
2661
|
function Wa(e, a) {
|
|
2662
|
-
return l(),
|
|
2662
|
+
return l(), s("svg", {
|
|
2663
2663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2664
2664
|
fill: "none",
|
|
2665
2665
|
viewBox: "0 0 24 24",
|
|
@@ -2676,7 +2676,7 @@ function Wa(e, a) {
|
|
|
2676
2676
|
]);
|
|
2677
2677
|
}
|
|
2678
2678
|
function Be(e, a) {
|
|
2679
|
-
return l(),
|
|
2679
|
+
return l(), s("svg", {
|
|
2680
2680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2681
2681
|
fill: "none",
|
|
2682
2682
|
viewBox: "0 0 24 24",
|
|
@@ -2693,7 +2693,7 @@ function Be(e, a) {
|
|
|
2693
2693
|
]);
|
|
2694
2694
|
}
|
|
2695
2695
|
function tt(e, a) {
|
|
2696
|
-
return l(),
|
|
2696
|
+
return l(), s("svg", {
|
|
2697
2697
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2698
2698
|
fill: "none",
|
|
2699
2699
|
viewBox: "0 0 24 24",
|
|
@@ -2710,7 +2710,7 @@ function tt(e, a) {
|
|
|
2710
2710
|
]);
|
|
2711
2711
|
}
|
|
2712
2712
|
function Qa(e, a) {
|
|
2713
|
-
return l(),
|
|
2713
|
+
return l(), s("svg", {
|
|
2714
2714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2715
2715
|
fill: "none",
|
|
2716
2716
|
viewBox: "0 0 24 24",
|
|
@@ -2727,7 +2727,7 @@ function Qa(e, a) {
|
|
|
2727
2727
|
]);
|
|
2728
2728
|
}
|
|
2729
2729
|
function at(e, a) {
|
|
2730
|
-
return l(),
|
|
2730
|
+
return l(), s("svg", {
|
|
2731
2731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2732
2732
|
fill: "none",
|
|
2733
2733
|
viewBox: "0 0 24 24",
|
|
@@ -2747,7 +2747,7 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2747
2747
|
__name: "DXDropdownItem",
|
|
2748
2748
|
props: {
|
|
2749
2749
|
/** Иконка (Heroicon компонент) */
|
|
2750
|
-
icon: { type: Object, default: null },
|
|
2750
|
+
icon: { type: [Object, Function], default: null },
|
|
2751
2751
|
/** Вариант: default | danger | success */
|
|
2752
2752
|
variant: {
|
|
2753
2753
|
type: String,
|
|
@@ -2779,7 +2779,7 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2779
2779
|
},
|
|
2780
2780
|
emits: ["click"],
|
|
2781
2781
|
setup(e, { emit: a }) {
|
|
2782
|
-
const t = e, n = a,
|
|
2782
|
+
const t = e, n = a, o = re("dropdown", null), r = m(
|
|
2783
2783
|
() => G(
|
|
2784
2784
|
_a,
|
|
2785
2785
|
Ht(t.variant),
|
|
@@ -2789,9 +2789,9 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2789
2789
|
}
|
|
2790
2790
|
)
|
|
2791
2791
|
), d = m(() => t.size === "sm" ? "xs" : "sm"), c = (b) => {
|
|
2792
|
-
t.disabled || (n("click", b), t.closeOnClick && (
|
|
2792
|
+
t.disabled || (n("click", b), t.closeOnClick && (o != null && o.close) && o.close());
|
|
2793
2793
|
};
|
|
2794
|
-
return (b, y) => (l(),
|
|
2794
|
+
return (b, y) => (l(), s("button", {
|
|
2795
2795
|
type: "button",
|
|
2796
2796
|
class: h([r.value, "group"]),
|
|
2797
2797
|
disabled: e.disabled,
|
|
@@ -2815,7 +2815,7 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2815
2815
|
]),
|
|
2816
2816
|
e.submenu ? (l(), D(T, {
|
|
2817
2817
|
key: 1,
|
|
2818
|
-
icon: k(
|
|
2818
|
+
icon: k(se),
|
|
2819
2819
|
size: "xs",
|
|
2820
2820
|
animation: e.iconAnimation,
|
|
2821
2821
|
"group-hover": !0,
|
|
@@ -2828,7 +2828,7 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2828
2828
|
class: "flex-shrink-0"
|
|
2829
2829
|
}, {
|
|
2830
2830
|
default: X(() => [
|
|
2831
|
-
|
|
2831
|
+
O(A(e.badge), 1)
|
|
2832
2832
|
]),
|
|
2833
2833
|
_: 1
|
|
2834
2834
|
}, 8, ["variant"])) : g("", !0)
|
|
@@ -2849,10 +2849,10 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2849
2849
|
}, nl = {
|
|
2850
2850
|
key: 1,
|
|
2851
2851
|
class: "text-xs text-slate-500"
|
|
2852
|
-
},
|
|
2852
|
+
}, ol = {
|
|
2853
2853
|
key: 1,
|
|
2854
2854
|
class: "mt-1 text-xs text-rose-500 flex items-center gap-1"
|
|
2855
|
-
},
|
|
2855
|
+
}, sl = {
|
|
2856
2856
|
key: 2,
|
|
2857
2857
|
class: "mt-1 text-xs text-slate-500"
|
|
2858
2858
|
}, rl = {
|
|
@@ -2909,16 +2909,16 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2909
2909
|
},
|
|
2910
2910
|
setup(e) {
|
|
2911
2911
|
const a = m(() => We), t = m(() => $e);
|
|
2912
|
-
return (n,
|
|
2913
|
-
e.label || e.showCount ? (l(),
|
|
2914
|
-
e.label ? (l(),
|
|
2915
|
-
|
|
2916
|
-
e.required ? (l(),
|
|
2912
|
+
return (n, o) => (l(), s("div", el, [
|
|
2913
|
+
e.label || e.showCount ? (l(), s("div", tl, [
|
|
2914
|
+
e.label ? (l(), s("label", al, [
|
|
2915
|
+
O(A(e.label) + " ", 1),
|
|
2916
|
+
e.required ? (l(), s("span", ll, "*")) : g("", !0)
|
|
2917
2917
|
])) : g("", !0),
|
|
2918
|
-
e.showCount && e.maxLength ? (l(),
|
|
2918
|
+
e.showCount && e.maxLength ? (l(), s("span", nl, A(e.currentLength) + " / " + A(e.maxLength), 1)) : g("", !0)
|
|
2919
2919
|
])) : g("", !0),
|
|
2920
2920
|
I(n.$slots, "default"),
|
|
2921
|
-
e.error ? (l(),
|
|
2921
|
+
e.error ? (l(), s("p", ol, [
|
|
2922
2922
|
e.showValidationIcon ? (l(), D(T, {
|
|
2923
2923
|
key: 0,
|
|
2924
2924
|
icon: a.value,
|
|
@@ -2926,9 +2926,9 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2926
2926
|
animation: "none",
|
|
2927
2927
|
class: "text-rose-500"
|
|
2928
2928
|
}, null, 8, ["icon"])) : g("", !0),
|
|
2929
|
-
|
|
2930
|
-
])) : e.helper ? (l(),
|
|
2931
|
-
e.success && !e.error ? (l(),
|
|
2929
|
+
O(" " + A(e.error), 1)
|
|
2930
|
+
])) : e.helper ? (l(), s("p", sl, A(e.helper), 1)) : g("", !0),
|
|
2931
|
+
e.success && !e.error ? (l(), s("p", rl, [
|
|
2932
2932
|
e.showValidationIcon ? (l(), D(T, {
|
|
2933
2933
|
key: 0,
|
|
2934
2934
|
icon: t.value,
|
|
@@ -2936,7 +2936,7 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2936
2936
|
animation: "none",
|
|
2937
2937
|
class: "text-emerald-500"
|
|
2938
2938
|
}, null, 8, ["icon"])) : g("", !0),
|
|
2939
|
-
|
|
2939
|
+
O(" " + A(e.success), 1)
|
|
2940
2940
|
])) : g("", !0)
|
|
2941
2941
|
]));
|
|
2942
2942
|
}
|
|
@@ -2944,10 +2944,10 @@ const Ya = ["disabled", "data-variant", "data-size", "data-disabled"], Ja = { cl
|
|
|
2944
2944
|
function bi(e, a = []) {
|
|
2945
2945
|
const t = {};
|
|
2946
2946
|
return a.forEach((n) => {
|
|
2947
|
-
const
|
|
2948
|
-
if (
|
|
2947
|
+
const o = e[n];
|
|
2948
|
+
if (o != null) {
|
|
2949
2949
|
const r = `data-${n.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
|
|
2950
|
-
t[r] =
|
|
2950
|
+
t[r] = o;
|
|
2951
2951
|
}
|
|
2952
2952
|
}), t;
|
|
2953
2953
|
}
|
|
@@ -2955,8 +2955,8 @@ function il(e = {}) {
|
|
|
2955
2955
|
const a = {};
|
|
2956
2956
|
return Object.entries(e).forEach(([t, n]) => {
|
|
2957
2957
|
if (n != null && n !== !1) {
|
|
2958
|
-
const
|
|
2959
|
-
a[
|
|
2958
|
+
const o = t.startsWith("data-") ? t : `data-${t}`;
|
|
2959
|
+
a[o] = n;
|
|
2960
2960
|
}
|
|
2961
2961
|
}), a;
|
|
2962
2962
|
}
|
|
@@ -2964,8 +2964,8 @@ function gi(e, a = []) {
|
|
|
2964
2964
|
const t = {};
|
|
2965
2965
|
return a.forEach((n) => {
|
|
2966
2966
|
if (e[n] === !0) {
|
|
2967
|
-
const
|
|
2968
|
-
t[
|
|
2967
|
+
const o = `data-${n.replace(/([A-Z])/g, "-$1").toLowerCase()}`;
|
|
2968
|
+
t[o] = !0;
|
|
2969
2969
|
}
|
|
2970
2970
|
}), t;
|
|
2971
2971
|
}
|
|
@@ -2980,7 +2980,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
2980
2980
|
},
|
|
2981
2981
|
/** Icon component (Heroicon) */
|
|
2982
2982
|
icon: {
|
|
2983
|
-
type: Object,
|
|
2983
|
+
type: [Object, Function],
|
|
2984
2984
|
default: null
|
|
2985
2985
|
},
|
|
2986
2986
|
/** Icon size: xs | sm | md | lg */
|
|
@@ -3022,20 +3022,20 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3022
3022
|
position: a.position
|
|
3023
3023
|
})
|
|
3024
3024
|
);
|
|
3025
|
-
return (
|
|
3025
|
+
return (o, r) => (l(), s("div", Ce({ class: t.value }, n.value), [
|
|
3026
3026
|
e.icon ? (l(), D(T, {
|
|
3027
3027
|
key: 0,
|
|
3028
3028
|
icon: e.icon,
|
|
3029
3029
|
size: e.size,
|
|
3030
3030
|
animation: e.animation,
|
|
3031
3031
|
class: h(e.iconClass)
|
|
3032
|
-
}, null, 8, ["icon", "size", "animation", "class"])) : I(
|
|
3032
|
+
}, null, 8, ["icon", "size", "animation", "class"])) : I(o.$slots, "default", { key: 1 })
|
|
3033
3033
|
], 16));
|
|
3034
3034
|
}
|
|
3035
3035
|
}, vi = {
|
|
3036
3036
|
__name: "DXInputAddon",
|
|
3037
3037
|
props: {
|
|
3038
|
-
icon: { type: Object, default: null }
|
|
3038
|
+
icon: { type: [Object, Function], default: null }
|
|
3039
3039
|
},
|
|
3040
3040
|
setup(e) {
|
|
3041
3041
|
const a = re("inputGroup", {
|
|
@@ -3053,14 +3053,14 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3053
3053
|
a.unregisterComponent && a.unregisterComponent(t);
|
|
3054
3054
|
});
|
|
3055
3055
|
const n = m(() => {
|
|
3056
|
-
const
|
|
3056
|
+
const o = [
|
|
3057
3057
|
"border",
|
|
3058
3058
|
// Базовый класс border
|
|
3059
3059
|
N(a.size, "inputAddon")
|
|
3060
3060
|
];
|
|
3061
|
-
return a.disabled &&
|
|
3061
|
+
return a.disabled && o.push("opacity-60 cursor-not-allowed"), a.error ? o.push("border-rose-300") : o.push("border-slate-200"), o.filter(Boolean).join(" ");
|
|
3062
3062
|
});
|
|
3063
|
-
return (
|
|
3063
|
+
return (o, r) => (l(), s("div", {
|
|
3064
3064
|
class: h(["flex items-center px-3 border-r-0 bg-slate-50 text-slate-600 text-sm first:rounded-l-xl last:rounded-r-xl last:border-r transition-colors", n.value]),
|
|
3065
3065
|
"data-component": "DXInputGroupAddon"
|
|
3066
3066
|
}, [
|
|
@@ -3068,7 +3068,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
class: "w-4 h-4"
|
|
3070
3070
|
})) : g("", !0),
|
|
3071
|
-
I(
|
|
3071
|
+
I(o.$slots, "default")
|
|
3072
3072
|
], 2));
|
|
3073
3073
|
}
|
|
3074
3074
|
}, ul = ["data-size", "data-variant"], cl = "flex items-center justify-center", ml = "border-2 rounded-full animate-spin", fl = {
|
|
@@ -3098,18 +3098,18 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
},
|
|
3100
3100
|
setup(e) {
|
|
3101
|
-
const a = e, t = ne(), n = m(() => a.showText !== void 0 ? a.showText : t.default ? !0 : !!(a.text && a.text.trim().length > 0)),
|
|
3101
|
+
const a = e, t = ne(), n = m(() => a.showText !== void 0 ? a.showText : t.default ? !0 : !!(a.text && a.text.trim().length > 0)), o = m(() => jt(a.variant)), r = m(() => [
|
|
3102
3102
|
cl,
|
|
3103
3103
|
n.value ? "gap-2" : "",
|
|
3104
3104
|
n.value ? N(a.size, "text") : "",
|
|
3105
|
-
n.value ?
|
|
3105
|
+
n.value ? o.value.text : ""
|
|
3106
3106
|
].filter(Boolean)), d = m(() => [
|
|
3107
3107
|
ml,
|
|
3108
3108
|
N(a.size, "loader"),
|
|
3109
|
-
|
|
3110
|
-
|
|
3109
|
+
o.value.border,
|
|
3110
|
+
o.value.borderTop
|
|
3111
3111
|
]);
|
|
3112
|
-
return (c, b) => (l(),
|
|
3112
|
+
return (c, b) => (l(), s("div", {
|
|
3113
3113
|
class: h(r.value),
|
|
3114
3114
|
"data-component": "DXLoader",
|
|
3115
3115
|
"data-size": e.size,
|
|
@@ -3119,8 +3119,8 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3119
3119
|
class: h(d.value)
|
|
3120
3120
|
}, null, 2),
|
|
3121
3121
|
n.value ? I(c.$slots, "default", { key: 0 }, () => [
|
|
3122
|
-
e.text ? (l(),
|
|
3123
|
-
|
|
3122
|
+
e.text ? (l(), s(j, { key: 0 }, [
|
|
3123
|
+
O(A(e.text), 1)
|
|
3124
3124
|
], 64)) : g("", !0)
|
|
3125
3125
|
]) : g("", !0)
|
|
3126
3126
|
], 10, ul));
|
|
@@ -3164,7 +3164,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3164
3164
|
const a = e, t = m(() => {
|
|
3165
3165
|
const d = a.max - a.min;
|
|
3166
3166
|
return Math.min(100, Math.max(0, (a.value - a.min) / d * 100));
|
|
3167
|
-
}), n = m(() => `${Math.round(t.value)}%`),
|
|
3167
|
+
}), n = m(() => `${Math.round(t.value)}%`), o = m(() => [
|
|
3168
3168
|
"w-full bg-slate-200 rounded-full overflow-hidden",
|
|
3169
3169
|
N(a.size, "progress")
|
|
3170
3170
|
]), r = m(() => [
|
|
@@ -3173,7 +3173,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3173
3173
|
a.striped && "dx-bg-stripes",
|
|
3174
3174
|
a.animated && a.striped && je("stripes", "progress")
|
|
3175
3175
|
]);
|
|
3176
|
-
return (d, c) => (l(),
|
|
3176
|
+
return (d, c) => (l(), s("div", {
|
|
3177
3177
|
class: "w-full",
|
|
3178
3178
|
"data-component": "DXProgress",
|
|
3179
3179
|
"data-size": e.size,
|
|
@@ -3181,16 +3181,16 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3181
3181
|
"data-animated": e.animated,
|
|
3182
3182
|
"data-striped": e.striped
|
|
3183
3183
|
}, [
|
|
3184
|
-
e.showLabel || d.$slots.label ? (l(),
|
|
3184
|
+
e.showLabel || d.$slots.label ? (l(), s("div", gl, [
|
|
3185
3185
|
i("span", vl, [
|
|
3186
3186
|
I(d.$slots, "label", {}, () => [
|
|
3187
|
-
|
|
3187
|
+
O(A(e.label), 1)
|
|
3188
3188
|
])
|
|
3189
3189
|
]),
|
|
3190
|
-
e.showValue ? (l(),
|
|
3190
|
+
e.showValue ? (l(), s("span", hl, A(n.value), 1)) : g("", !0)
|
|
3191
3191
|
])) : g("", !0),
|
|
3192
3192
|
i("div", {
|
|
3193
|
-
class: h(
|
|
3193
|
+
class: h(o.value)
|
|
3194
3194
|
}, [
|
|
3195
3195
|
i("div", {
|
|
3196
3196
|
class: h(r.value),
|
|
@@ -3200,7 +3200,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3200
3200
|
"aria-valuemin": e.min,
|
|
3201
3201
|
"aria-valuemax": e.max
|
|
3202
3202
|
}, [
|
|
3203
|
-
e.showInnerValue && t.value > 10 ? (l(),
|
|
3203
|
+
e.showInnerValue && t.value > 10 ? (l(), s("span", xl, A(n.value), 1)) : g("", !0)
|
|
3204
3204
|
], 14, pl)
|
|
3205
3205
|
], 2)
|
|
3206
3206
|
], 8, bl));
|
|
@@ -3233,7 +3233,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3233
3233
|
},
|
|
3234
3234
|
emits: ["update:modelValue"],
|
|
3235
3235
|
setup(e, { emit: a }) {
|
|
3236
|
-
const t = e, n = a,
|
|
3236
|
+
const t = e, n = a, o = {
|
|
3237
3237
|
enterActiveClass: "transition-opacity transition-transform duration-150 ease-out",
|
|
3238
3238
|
enterFromClass: "opacity-0 scale-0",
|
|
3239
3239
|
enterToClass: "opacity-100 scale-100",
|
|
@@ -3271,7 +3271,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3271
3271
|
}), u = m(() => t.modelValue === t.value), v = () => {
|
|
3272
3272
|
t.disabled || n("update:modelValue", t.value);
|
|
3273
3273
|
};
|
|
3274
|
-
return (x, z) => (l(),
|
|
3274
|
+
return (x, z) => (l(), s("label", {
|
|
3275
3275
|
class: h(d.value),
|
|
3276
3276
|
"data-component": "DXRadio",
|
|
3277
3277
|
"data-size": e.size,
|
|
@@ -3280,7 +3280,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3280
3280
|
"data-variant": e.variant,
|
|
3281
3281
|
onClick: z[1] || (z[1] = (p) => e.variant === "custom" && !e.disabled && v())
|
|
3282
3282
|
}, [
|
|
3283
|
-
e.variant === "default" ? (l(),
|
|
3283
|
+
e.variant === "default" ? (l(), s("input", {
|
|
3284
3284
|
key: 0,
|
|
3285
3285
|
type: "radio",
|
|
3286
3286
|
value: e.value,
|
|
@@ -3288,7 +3288,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3288
3288
|
disabled: e.disabled,
|
|
3289
3289
|
class: h(b.value),
|
|
3290
3290
|
onChange: z[0] || (z[0] = (p) => x.$emit("update:modelValue", e.value))
|
|
3291
|
-
}, null, 42, wl)) : (l(),
|
|
3291
|
+
}, null, 42, wl)) : (l(), s("div", {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
class: h(y.value),
|
|
3294
3294
|
onClick: R(v, ["stop"]),
|
|
@@ -3298,9 +3298,9 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3298
3298
|
tabindex: "0",
|
|
3299
3299
|
onKeydown: K(R(v, ["prevent"]), ["space"])
|
|
3300
3300
|
}, [
|
|
3301
|
-
L(te, Ce(
|
|
3301
|
+
L(te, Ce(o, { mode: "out-in" }), {
|
|
3302
3302
|
default: X(() => [
|
|
3303
|
-
u.value ? (l(),
|
|
3303
|
+
u.value ? (l(), s("div", {
|
|
3304
3304
|
key: 0,
|
|
3305
3305
|
class: h(f.value)
|
|
3306
3306
|
}, null, 2)) : g("", !0)
|
|
@@ -3308,7 +3308,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3308
3308
|
_: 1
|
|
3309
3309
|
}, 16)
|
|
3310
3310
|
], 42, kl)),
|
|
3311
|
-
e.label ? (l(),
|
|
3311
|
+
e.label ? (l(), s("span", {
|
|
3312
3312
|
key: 2,
|
|
3313
3313
|
class: h(c.value)
|
|
3314
3314
|
}, A(e.label), 3)) : g("", !0)
|
|
@@ -3325,7 +3325,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3325
3325
|
rounded: { type: String, default: "rounded-md" }
|
|
3326
3326
|
},
|
|
3327
3327
|
setup(e) {
|
|
3328
|
-
return (a, t) => (l(),
|
|
3328
|
+
return (a, t) => (l(), s("div", {
|
|
3329
3329
|
class: h(["animate-pulse bg-slate-200", e.rounded]),
|
|
3330
3330
|
style: Q({ width: e.width, height: e.height }),
|
|
3331
3331
|
"data-component": "DXSkeleton"
|
|
@@ -3333,8 +3333,8 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
}, J = (e, a) => {
|
|
3335
3335
|
const t = e.__vccOpts || e;
|
|
3336
|
-
for (const [n,
|
|
3337
|
-
t[n] =
|
|
3336
|
+
for (const [n, o] of a)
|
|
3337
|
+
t[n] = o;
|
|
3338
3338
|
return t;
|
|
3339
3339
|
}, Al = ["data-size", "data-variant"], Dl = {
|
|
3340
3340
|
key: 0,
|
|
@@ -3392,7 +3392,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3392
3392
|
},
|
|
3393
3393
|
emits: ["update:modelValue"],
|
|
3394
3394
|
setup(e, { emit: a }) {
|
|
3395
|
-
const t = e, n = a,
|
|
3395
|
+
const t = e, n = a, o = Nt(t.variant);
|
|
3396
3396
|
N(t.size, "sliderTrack"), N(t.size, "sliderThumb");
|
|
3397
3397
|
const r = N(t.size, "text"), d = ae(t.spacing, "marginY"), c = ae(t.spacing, "paddingY"), b = ae(t.spacing, "marginTop"), y = m(() => ({ xs: 12, sm: 16, md: 20, lg: 24, xl: 28 })[t.size] || 20), f = m(() => ({ xs: 4, sm: 6, md: 8, lg: 10, xl: 12 })[t.size] || 8), u = m(() => `${t.modelValue}${t.unit}`), v = m(() => {
|
|
3398
3398
|
const S = (V) => ({
|
|
@@ -3419,9 +3419,9 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3419
3419
|
"bg-rose-400": "#fb7185"
|
|
3420
3420
|
})[V] || "#0f172a";
|
|
3421
3421
|
return {
|
|
3422
|
-
"--slider-track-color": S(
|
|
3423
|
-
"--slider-thumb-color": S(
|
|
3424
|
-
"--slider-thumb-hover-color": S(
|
|
3422
|
+
"--slider-track-color": S(o.track),
|
|
3423
|
+
"--slider-thumb-color": S(o.thumb),
|
|
3424
|
+
"--slider-thumb-hover-color": S(o.thumbHover),
|
|
3425
3425
|
"--slider-thumb-size": `${y.value}px`,
|
|
3426
3426
|
"--slider-track-height": `${f.value}px`,
|
|
3427
3427
|
"--slider-thumb-margin-top": `${(y.value - f.value) / 2}px`
|
|
@@ -3429,26 +3429,26 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3429
3429
|
}), x = m(() => {
|
|
3430
3430
|
if (!t.ticks) return [];
|
|
3431
3431
|
const S = t.tickCount, V = (t.max - t.min) / (S - 1);
|
|
3432
|
-
return Array.from({ length: S }, (B,
|
|
3432
|
+
return Array.from({ length: S }, (B, F) => Math.round(t.min + V * F));
|
|
3433
3433
|
}), z = (S) => {
|
|
3434
3434
|
n("update:modelValue", Number(S.target.value));
|
|
3435
3435
|
}, p = m(() => {
|
|
3436
3436
|
if (!t.ticks || !x.value.length) return -1;
|
|
3437
3437
|
let S = 0, V = Math.abs(t.modelValue - x.value[0]);
|
|
3438
|
-
return x.value.forEach((B,
|
|
3438
|
+
return x.value.forEach((B, F) => {
|
|
3439
3439
|
const U = Math.abs(t.modelValue - B);
|
|
3440
|
-
U < V && (V = U, S =
|
|
3440
|
+
U < V && (V = U, S = F);
|
|
3441
3441
|
}), S;
|
|
3442
3442
|
}), w = (S) => p.value === S, C = (S) => w(S) ? t.tickIconAnimation : "none", $ = (S) => {
|
|
3443
3443
|
const V = t.max - t.min;
|
|
3444
3444
|
if (V === 0) return { left: "0", transform: "translateX(-50%)" };
|
|
3445
|
-
const B = (S - t.min) / V * 100,
|
|
3445
|
+
const B = (S - t.min) / V * 100, F = y.value;
|
|
3446
3446
|
return {
|
|
3447
|
-
left: `calc(${B}% + ${(0.5 - B / 100) *
|
|
3447
|
+
left: `calc(${B}% + ${(0.5 - B / 100) * F}px)`,
|
|
3448
3448
|
transform: "translateX(-50%)"
|
|
3449
3449
|
};
|
|
3450
3450
|
};
|
|
3451
|
-
return (S, V) => (l(),
|
|
3451
|
+
return (S, V) => (l(), s("div", {
|
|
3452
3452
|
class: "w-full",
|
|
3453
3453
|
"data-component": "DXSlider",
|
|
3454
3454
|
"data-size": e.size,
|
|
@@ -3457,22 +3457,22 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3457
3457
|
i("div", {
|
|
3458
3458
|
class: h(["flex items-center justify-between", k(d)])
|
|
3459
3459
|
}, [
|
|
3460
|
-
e.label ? (l(),
|
|
3460
|
+
e.label ? (l(), s("label", {
|
|
3461
3461
|
key: 0,
|
|
3462
|
-
class: h([k(r), "font-medium", k(
|
|
3462
|
+
class: h([k(r), "font-medium", k(o).text])
|
|
3463
3463
|
}, A(e.label), 3)) : g("", !0),
|
|
3464
|
-
e.showValue ? (l(),
|
|
3464
|
+
e.showValue ? (l(), s("span", {
|
|
3465
3465
|
key: 1,
|
|
3466
|
-
class: h([k(r), "font-semibold", k(
|
|
3466
|
+
class: h([k(r), "font-semibold", k(o).textValue])
|
|
3467
3467
|
}, A(u.value), 3)) : g("", !0)
|
|
3468
3468
|
], 2),
|
|
3469
3469
|
i("div", {
|
|
3470
3470
|
class: h(["relative", k(c)])
|
|
3471
3471
|
}, [
|
|
3472
|
-
e.ticks ? (l(),
|
|
3473
|
-
(l(!0),
|
|
3474
|
-
key: `tick-${
|
|
3475
|
-
class: h(["absolute w-0.5 h-3 rounded-full", k(
|
|
3472
|
+
e.ticks ? (l(), s("div", Dl, [
|
|
3473
|
+
(l(!0), s(j, null, P(x.value, (B, F) => (l(), s("div", {
|
|
3474
|
+
key: `tick-${F}`,
|
|
3475
|
+
class: h(["absolute w-0.5 h-3 rounded-full", k(o).tick]),
|
|
3476
3476
|
style: Q($(B))
|
|
3477
3477
|
}, null, 6))), 128))
|
|
3478
3478
|
])) : g("", !0),
|
|
@@ -3488,36 +3488,36 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3488
3488
|
onInput: z
|
|
3489
3489
|
}, null, 44, Vl)
|
|
3490
3490
|
], 2),
|
|
3491
|
-
e.ticks && (e.showTickLabels || e.tickIcons) ? (l(),
|
|
3491
|
+
e.ticks && (e.showTickLabels || e.tickIcons) ? (l(), s("div", {
|
|
3492
3492
|
key: 0,
|
|
3493
3493
|
class: h(["relative w-full", k(b)]),
|
|
3494
3494
|
style: { "min-height": "3rem" }
|
|
3495
3495
|
}, [
|
|
3496
|
-
(l(!0),
|
|
3496
|
+
(l(!0), s(j, null, P(x.value, (B, F) => (l(), s("span", {
|
|
3497
3497
|
key: B,
|
|
3498
|
-
class: h(["absolute flex flex-col items-center gap-0.5 transition-transform duration-200", { "scale-110": w(
|
|
3498
|
+
class: h(["absolute flex flex-col items-center gap-0.5 transition-transform duration-200", { "scale-110": w(F) }]),
|
|
3499
3499
|
style: Q($(B))
|
|
3500
3500
|
}, [
|
|
3501
|
-
e.tickIcons && e.tickIcons[
|
|
3501
|
+
e.tickIcons && e.tickIcons[F] ? (l(), D(T, {
|
|
3502
3502
|
key: 0,
|
|
3503
|
-
icon: e.tickIcons[
|
|
3503
|
+
icon: e.tickIcons[F],
|
|
3504
3504
|
size: e.size,
|
|
3505
|
-
animation: C(
|
|
3506
|
-
class: h(w(
|
|
3505
|
+
animation: C(F),
|
|
3506
|
+
class: h(w(F) ? k(o).textActive : k(o).text)
|
|
3507
3507
|
}, null, 8, ["icon", "size", "animation", "class"])) : g("", !0),
|
|
3508
|
-
e.showTickLabels ? (l(),
|
|
3508
|
+
e.showTickLabels ? (l(), s("span", {
|
|
3509
3509
|
key: 1,
|
|
3510
3510
|
class: h([
|
|
3511
3511
|
k(r),
|
|
3512
3512
|
"transition-colors duration-200 whitespace-nowrap",
|
|
3513
|
-
w(
|
|
3513
|
+
w(F) ? [k(o).textActive, "font-semibold"] : k(o).text
|
|
3514
3514
|
])
|
|
3515
3515
|
}, A(B) + A(e.unit), 3)) : g("", !0)
|
|
3516
3516
|
], 6))), 128))
|
|
3517
3517
|
], 2)) : g("", !0),
|
|
3518
|
-
e.helper ? (l(),
|
|
3518
|
+
e.helper ? (l(), s("p", {
|
|
3519
3519
|
key: 1,
|
|
3520
|
-
class: h([k(r), k(b), k(
|
|
3520
|
+
class: h([k(r), k(b), k(o).text])
|
|
3521
3521
|
}, A(e.helper), 3)) : g("", !0)
|
|
3522
3522
|
], 8, Al));
|
|
3523
3523
|
}
|
|
@@ -3538,7 +3538,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3538
3538
|
},
|
|
3539
3539
|
emits: ["remove"],
|
|
3540
3540
|
setup(e, { emit: a }) {
|
|
3541
|
-
const t = e, n = a,
|
|
3541
|
+
const t = e, n = a, o = m(() => t.tags.map((b) => typeof b == "string" ? {
|
|
3542
3542
|
label: b,
|
|
3543
3543
|
icon: null,
|
|
3544
3544
|
closable: t.closable,
|
|
@@ -3560,8 +3560,8 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3560
3560
|
}, c = (b, y) => {
|
|
3561
3561
|
n("remove", { tag: b, index: y });
|
|
3562
3562
|
};
|
|
3563
|
-
return (b, y) => (l(),
|
|
3564
|
-
(l(!0),
|
|
3563
|
+
return (b, y) => (l(), s("div", Il, [
|
|
3564
|
+
(l(!0), s(j, null, P(o.value, (f, u) => (l(), s("span", {
|
|
3565
3565
|
key: r(f, u),
|
|
3566
3566
|
class: h([d(f), "group inline-flex items-center gap-1.5 transition-all duration-200"])
|
|
3567
3567
|
}, [
|
|
@@ -3573,7 +3573,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3573
3573
|
"group-hover": !0
|
|
3574
3574
|
}, null, 8, ["icon", "size", "animation"])) : g("", !0),
|
|
3575
3575
|
i("span", null, A(f.label), 1),
|
|
3576
|
-
f.closable ? (l(),
|
|
3576
|
+
f.closable ? (l(), s("button", {
|
|
3577
3577
|
key: 1,
|
|
3578
3578
|
type: "button",
|
|
3579
3579
|
onClick: (v) => c(f, u),
|
|
@@ -3598,15 +3598,15 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3598
3598
|
showIcon: { type: Boolean, default: !0 }
|
|
3599
3599
|
},
|
|
3600
3600
|
setup(e) {
|
|
3601
|
-
const a = e, t = m(() => Lt(a.variant)), n = m(() => `${t.value.bg} ${t.value.border} ${t.value.text}`),
|
|
3602
|
-
return (d, c) => (l(),
|
|
3601
|
+
const a = e, t = m(() => Lt(a.variant)), n = m(() => `${t.value.bg} ${t.value.border} ${t.value.text}`), o = m(() => a.showIcon ? t.value.icon : null), r = m(() => t.value.iconColor);
|
|
3602
|
+
return (d, c) => (l(), s("div", {
|
|
3603
3603
|
class: h(["flex items-start gap-3 rounded-2xl border px-4 py-3 text-sm", n.value]),
|
|
3604
3604
|
"data-component": "DXToast",
|
|
3605
3605
|
"data-variant": e.variant
|
|
3606
3606
|
}, [
|
|
3607
|
-
|
|
3607
|
+
o.value ? (l(), D(T, {
|
|
3608
3608
|
key: 0,
|
|
3609
|
-
icon:
|
|
3609
|
+
icon: o.value,
|
|
3610
3610
|
size: "md",
|
|
3611
3611
|
animation: "none",
|
|
3612
3612
|
class: h([r.value, "shrink-0 mt-0.5"])
|
|
@@ -3616,7 +3616,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3616
3616
|
])
|
|
3617
3617
|
], 10, Xl));
|
|
3618
3618
|
}
|
|
3619
|
-
}, jl = ["data-disabled", "data-checked", "data-size", "data-color"],
|
|
3619
|
+
}, jl = ["data-disabled", "data-checked", "data-size", "data-color"], Fl = ["aria-checked", "disabled"], wi = {
|
|
3620
3620
|
__name: "DXToggle",
|
|
3621
3621
|
props: {
|
|
3622
3622
|
/** Значение (v-model) */
|
|
@@ -3634,7 +3634,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3634
3634
|
},
|
|
3635
3635
|
emits: ["update:modelValue"],
|
|
3636
3636
|
setup(e, { emit: a }) {
|
|
3637
|
-
const t = e, n = a,
|
|
3637
|
+
const t = e, n = a, o = () => {
|
|
3638
3638
|
t.disabled || n("update:modelValue", !t.modelValue);
|
|
3639
3639
|
}, r = m(() => N(t.size, "toggle")), d = m(() => Rt(t.color, t.modelValue)), c = m(
|
|
3640
3640
|
() => G(
|
|
@@ -3678,7 +3678,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3678
3678
|
return x[v] || x.md;
|
|
3679
3679
|
}
|
|
3680
3680
|
const u = m(() => `${N(t.size, "text")} text-slate-700 select-none`);
|
|
3681
|
-
return (v, x) => (l(),
|
|
3681
|
+
return (v, x) => (l(), s("label", {
|
|
3682
3682
|
class: h(c.value),
|
|
3683
3683
|
"data-component": "DXToggle",
|
|
3684
3684
|
"data-disabled": e.disabled,
|
|
@@ -3692,27 +3692,27 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3692
3692
|
"aria-checked": e.modelValue,
|
|
3693
3693
|
disabled: e.disabled,
|
|
3694
3694
|
class: h(b.value),
|
|
3695
|
-
onClick:
|
|
3695
|
+
onClick: o
|
|
3696
3696
|
}, [
|
|
3697
3697
|
i("span", {
|
|
3698
3698
|
class: h(y.value)
|
|
3699
3699
|
}, null, 2)
|
|
3700
|
-
], 10,
|
|
3701
|
-
e.label ? (l(),
|
|
3700
|
+
], 10, Fl),
|
|
3701
|
+
e.label ? (l(), s("span", {
|
|
3702
3702
|
key: 0,
|
|
3703
3703
|
class: h(u.value)
|
|
3704
3704
|
}, A(e.label), 3)) : g("", !0)
|
|
3705
3705
|
], 10, jl));
|
|
3706
3706
|
}
|
|
3707
|
-
},
|
|
3707
|
+
}, Ol = ["disabled", "aria-pressed", "aria-label"], El = { key: 1 }, Pl = {
|
|
3708
3708
|
__name: "DXToggleButton",
|
|
3709
3709
|
props: {
|
|
3710
3710
|
/** Текущее состояние (v-model) */
|
|
3711
3711
|
modelValue: { type: Boolean, default: !1 },
|
|
3712
3712
|
/** Иконка для активного состояния */
|
|
3713
|
-
activeIcon: { type: Object, required: !0 },
|
|
3713
|
+
activeIcon: { type: [Object, Function], required: !0 },
|
|
3714
3714
|
/** Иконка для неактивного состояния */
|
|
3715
|
-
inactiveIcon: { type: Object, required: !0 },
|
|
3715
|
+
inactiveIcon: { type: [Object, Function], required: !0 },
|
|
3716
3716
|
/** Текст для активного состояния (опционально) */
|
|
3717
3717
|
activeLabel: { type: String, default: null },
|
|
3718
3718
|
/** Текст для неактивного состояния (опционально) */
|
|
@@ -3734,7 +3734,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3734
3734
|
},
|
|
3735
3735
|
emits: ["update:modelValue", "change"],
|
|
3736
3736
|
setup(e, { emit: a }) {
|
|
3737
|
-
const t = e, n = a,
|
|
3737
|
+
const t = e, n = a, o = () => {
|
|
3738
3738
|
const u = !t.modelValue;
|
|
3739
3739
|
n("update:modelValue", u), n("change", u);
|
|
3740
3740
|
}, r = m(() => t.modelValue ? t.activeIcon : t.inactiveIcon), d = m(() => t.modelValue ? t.activeLabel : t.inactiveLabel), c = m(() => t.size === "sm" ? "xs" : t.size === "lg" ? "md" : "sm"), b = m(() => {
|
|
@@ -3753,11 +3753,11 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3753
3753
|
}
|
|
3754
3754
|
)
|
|
3755
3755
|
);
|
|
3756
|
-
return (u, v) => (l(),
|
|
3756
|
+
return (u, v) => (l(), s("button", {
|
|
3757
3757
|
type: "button",
|
|
3758
3758
|
class: h(f.value),
|
|
3759
3759
|
disabled: e.disabled,
|
|
3760
|
-
onClick:
|
|
3760
|
+
onClick: o,
|
|
3761
3761
|
"aria-pressed": e.modelValue,
|
|
3762
3762
|
"aria-label": e.ariaLabel,
|
|
3763
3763
|
"data-component": "DXToggleButton"
|
|
@@ -3768,10 +3768,10 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3768
3768
|
size: c.value,
|
|
3769
3769
|
animation: e.iconAnimation
|
|
3770
3770
|
}, null, 8, ["icon", "size", "animation"])) : g("", !0),
|
|
3771
|
-
d.value ? (l(),
|
|
3772
|
-
], 10,
|
|
3771
|
+
d.value ? (l(), s("span", El, A(d.value), 1)) : g("", !0)
|
|
3772
|
+
], 10, Ol));
|
|
3773
3773
|
}
|
|
3774
|
-
}, ki = /* @__PURE__ */ J(Pl, [["__scopeId", "data-v-
|
|
3774
|
+
}, ki = /* @__PURE__ */ J(Pl, [["__scopeId", "data-v-bbef83af"]]), Ci = {
|
|
3775
3775
|
__name: "DXTooltip",
|
|
3776
3776
|
props: {
|
|
3777
3777
|
/** Текст подсказки */
|
|
@@ -3790,27 +3790,27 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3790
3790
|
delay: { type: Number, default: 100 }
|
|
3791
3791
|
},
|
|
3792
3792
|
setup(e) {
|
|
3793
|
-
const a = e, t = ne(), n = M(!1),
|
|
3794
|
-
r.value && (clearTimeout(r.value), r.value = null),
|
|
3793
|
+
const a = e, t = ne(), n = M(!1), o = M(null), r = M(null), d = m(() => !!(a.content || t.content)), c = () => {
|
|
3794
|
+
r.value && (clearTimeout(r.value), r.value = null), o.value = setTimeout(() => {
|
|
3795
3795
|
n.value = !0;
|
|
3796
3796
|
}, a.delay);
|
|
3797
3797
|
}, b = () => {
|
|
3798
|
-
|
|
3798
|
+
o.value && (clearTimeout(o.value), o.value = null), n.value = !1;
|
|
3799
3799
|
}, y = () => {
|
|
3800
3800
|
c();
|
|
3801
3801
|
}, f = () => {
|
|
3802
3802
|
b();
|
|
3803
|
-
}, u = m(() => a.animation === "tooltip-custom" ?
|
|
3803
|
+
}, u = m(() => a.animation === "tooltip-custom" ? oa(a.position) : Je(a.animation)), v = m(() => [
|
|
3804
3804
|
"absolute z-50 rounded-lg whitespace-normal",
|
|
3805
3805
|
N(a.size, "tooltip"),
|
|
3806
|
-
|
|
3807
|
-
|
|
3806
|
+
Et(a.position),
|
|
3807
|
+
Ot(a.color)
|
|
3808
3808
|
]), x = m(() => ({
|
|
3809
3809
|
maxWidth: a.maxWidth
|
|
3810
3810
|
})), z = m(() => Pt(a.position, a.color));
|
|
3811
3811
|
return be(() => {
|
|
3812
|
-
|
|
3813
|
-
}), (p, w) => (l(),
|
|
3812
|
+
o.value && clearTimeout(o.value), r.value && clearTimeout(r.value);
|
|
3813
|
+
}), (p, w) => (l(), s("div", {
|
|
3814
3814
|
class: "relative inline-block",
|
|
3815
3815
|
onMouseenter: c,
|
|
3816
3816
|
onMouseleave: b,
|
|
@@ -3821,14 +3821,14 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3821
3821
|
I(p.$slots, "default"),
|
|
3822
3822
|
L(te, we(ke(u.value)), {
|
|
3823
3823
|
default: X(() => [
|
|
3824
|
-
n.value && d.value ? (l(),
|
|
3824
|
+
n.value && d.value ? (l(), s("div", {
|
|
3825
3825
|
key: 0,
|
|
3826
3826
|
class: h(v.value),
|
|
3827
3827
|
style: Q(x.value),
|
|
3828
3828
|
role: "tooltip"
|
|
3829
3829
|
}, [
|
|
3830
3830
|
I(p.$slots, "content", {}, () => [
|
|
3831
|
-
|
|
3831
|
+
O(A(e.content), 1)
|
|
3832
3832
|
]),
|
|
3833
3833
|
i("div", {
|
|
3834
3834
|
class: h(z.value)
|
|
@@ -3855,11 +3855,11 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3855
3855
|
/** Текст кнопки удаления */
|
|
3856
3856
|
deleteLabel: { type: String, default: "Удалить" },
|
|
3857
3857
|
/** Иконка для кнопки просмотра */
|
|
3858
|
-
viewIcon: { type: Object, default: () =>
|
|
3858
|
+
viewIcon: { type: [Object, Function], default: () => Oe },
|
|
3859
3859
|
/** Иконка для кнопки редактирования */
|
|
3860
|
-
editIcon: { type: Object, default: () => Ve },
|
|
3860
|
+
editIcon: { type: [Object, Function], default: () => Ve },
|
|
3861
3861
|
/** Иконка для кнопки удаления */
|
|
3862
|
-
deleteIcon: { type: Object, default: () => Be },
|
|
3862
|
+
deleteIcon: { type: [Object, Function], default: () => Be },
|
|
3863
3863
|
/** Размер кнопок: xs | sm | md */
|
|
3864
3864
|
size: { type: String, default: "sm" },
|
|
3865
3865
|
/** Только иконки без текста */
|
|
@@ -3872,56 +3872,56 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3872
3872
|
emits: ["view", "edit", "delete"],
|
|
3873
3873
|
setup(e) {
|
|
3874
3874
|
const a = e, t = m(() => a.size === "xs" ? "xs" : a.size === "md" ? "sm" : "xs"), n = m(() => {
|
|
3875
|
-
const
|
|
3876
|
-
return a.iconOnly ? a.size === "xs" ? `${
|
|
3875
|
+
const o = "font-semibold rounded-xl";
|
|
3876
|
+
return a.iconOnly ? a.size === "xs" ? `${o} p-1.5` : a.size === "md" ? `${o} p-2.5` : `${o} p-2` : a.size === "xs" ? `${o} px-2 py-1 text-xs` : a.size === "md" ? `${o} px-4 py-2.5 text-sm` : `${o} px-3 py-2 text-xs`;
|
|
3877
3877
|
});
|
|
3878
|
-
return (
|
|
3878
|
+
return (o, r) => (l(), s("div", {
|
|
3879
3879
|
class: h(["flex gap-2", { "justify-end": e.align === "right", "justify-center": e.align === "center" }]),
|
|
3880
3880
|
"data-component": "DXActionButtons"
|
|
3881
3881
|
}, [
|
|
3882
|
-
e.showView ? (l(),
|
|
3882
|
+
e.showView ? (l(), s("button", {
|
|
3883
3883
|
key: 0,
|
|
3884
3884
|
type: "button",
|
|
3885
3885
|
class: h(["inline-flex items-center gap-1.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2", n.value]),
|
|
3886
3886
|
disabled: e.disabled,
|
|
3887
|
-
onClick: r[0] || (r[0] = (d) =>
|
|
3887
|
+
onClick: r[0] || (r[0] = (d) => o.$emit("view"))
|
|
3888
3888
|
}, [
|
|
3889
3889
|
L(T, {
|
|
3890
3890
|
icon: e.viewIcon,
|
|
3891
3891
|
size: t.value,
|
|
3892
3892
|
animation: "scale"
|
|
3893
3893
|
}, null, 8, ["icon", "size"]),
|
|
3894
|
-
e.iconOnly ? g("", !0) : (l(),
|
|
3894
|
+
e.iconOnly ? g("", !0) : (l(), s("span", Rl, A(e.viewLabel), 1))
|
|
3895
3895
|
], 10, Nl)) : g("", !0),
|
|
3896
|
-
e.showEdit ? (l(),
|
|
3896
|
+
e.showEdit ? (l(), s("button", {
|
|
3897
3897
|
key: 1,
|
|
3898
3898
|
type: "button",
|
|
3899
3899
|
class: h(["inline-flex items-center gap-1.5 border border-slate-200 text-slate-700 hover:border-slate-300 hover:bg-slate-50 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed", n.value]),
|
|
3900
3900
|
disabled: e.disabled,
|
|
3901
|
-
onClick: r[1] || (r[1] = (d) =>
|
|
3901
|
+
onClick: r[1] || (r[1] = (d) => o.$emit("edit"))
|
|
3902
3902
|
}, [
|
|
3903
3903
|
L(T, {
|
|
3904
3904
|
icon: e.editIcon,
|
|
3905
3905
|
size: t.value,
|
|
3906
3906
|
animation: "wiggle"
|
|
3907
3907
|
}, null, 8, ["icon", "size"]),
|
|
3908
|
-
e.iconOnly ? g("", !0) : (l(),
|
|
3908
|
+
e.iconOnly ? g("", !0) : (l(), s("span", Hl, A(e.editLabel), 1))
|
|
3909
3909
|
], 10, ql)) : g("", !0),
|
|
3910
|
-
e.showDelete ? (l(),
|
|
3910
|
+
e.showDelete ? (l(), s("button", {
|
|
3911
3911
|
key: 2,
|
|
3912
3912
|
type: "button",
|
|
3913
3913
|
class: h(["inline-flex items-center gap-1.5 bg-rose-600 text-white hover:bg-rose-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed", n.value]),
|
|
3914
3914
|
disabled: e.disabled,
|
|
3915
|
-
onClick: r[2] || (r[2] = (d) =>
|
|
3915
|
+
onClick: r[2] || (r[2] = (d) => o.$emit("delete"))
|
|
3916
3916
|
}, [
|
|
3917
3917
|
L(T, {
|
|
3918
3918
|
icon: e.deleteIcon,
|
|
3919
3919
|
size: t.value,
|
|
3920
3920
|
animation: "scale"
|
|
3921
3921
|
}, null, 8, ["icon", "size"]),
|
|
3922
|
-
e.iconOnly ? g("", !0) : (l(),
|
|
3922
|
+
e.iconOnly ? g("", !0) : (l(), s("span", Ul, A(e.deleteLabel), 1))
|
|
3923
3923
|
], 10, Zl)) : g("", !0),
|
|
3924
|
-
I(
|
|
3924
|
+
I(o.$slots, "default")
|
|
3925
3925
|
], 2));
|
|
3926
3926
|
}
|
|
3927
3927
|
}, lt = {
|
|
@@ -3940,7 +3940,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3940
3940
|
default: "ghost",
|
|
3941
3941
|
light: "ghost",
|
|
3942
3942
|
danger: "danger"
|
|
3943
|
-
})[a.variant] || "ghost"), n = m(() => a.variant === "light" ? "!text-white/70 hover:!text-white hover:!bg-transparent" : a.variant === "default" ? "text-slate-400 hover:text-slate-600" : ""),
|
|
3943
|
+
})[a.variant] || "ghost"), n = m(() => a.variant === "light" ? "!text-white/70 hover:!text-white hover:!bg-transparent" : a.variant === "default" ? "text-slate-400 hover:text-slate-600" : ""), o = m(() => ({ sm: "xs", md: "sm", lg: "md" })[a.size] || "sm");
|
|
3944
3944
|
return (r, d) => (l(), D(pa, {
|
|
3945
3945
|
variant: t.value,
|
|
3946
3946
|
size: e.size,
|
|
@@ -3955,7 +3955,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3955
3955
|
default: X(() => [
|
|
3956
3956
|
L(T, {
|
|
3957
3957
|
icon: k(at),
|
|
3958
|
-
size:
|
|
3958
|
+
size: o.value,
|
|
3959
3959
|
animation: "scale"
|
|
3960
3960
|
}, null, 8, ["icon", "size"])
|
|
3961
3961
|
]),
|
|
@@ -3973,7 +3973,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3973
3973
|
/** Заголовок */
|
|
3974
3974
|
title: { type: String, default: "" },
|
|
3975
3975
|
/** Иконка (компонент), если null - используется иконка по умолчанию для variant */
|
|
3976
|
-
icon: { type: Object, default: void 0 },
|
|
3976
|
+
icon: { type: [Object, Function], default: void 0 },
|
|
3977
3977
|
/** Показывать иконку */
|
|
3978
3978
|
showIcon: { type: Boolean, default: !0 },
|
|
3979
3979
|
/** Можно закрыть */
|
|
@@ -3981,8 +3981,8 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
3981
3981
|
},
|
|
3982
3982
|
emits: ["dismiss"],
|
|
3983
3983
|
setup(e, { emit: a }) {
|
|
3984
|
-
const t = e, n = a,
|
|
3985
|
-
|
|
3984
|
+
const t = e, n = a, o = M(!1), r = () => {
|
|
3985
|
+
o.value = !0, n("dismiss");
|
|
3986
3986
|
}, d = {
|
|
3987
3987
|
info: {
|
|
3988
3988
|
bg: "bg-blue-50 border-blue-200",
|
|
@@ -4020,7 +4020,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
4020
4020
|
Yl,
|
|
4021
4021
|
c.value.bg
|
|
4022
4022
|
]), f = m(() => ["w-5 h-5 flex-shrink-0 mt-0.5", c.value.icon]), u = m(() => c.value.title), v = m(() => ["text-sm", c.value.content, t.title && "mt-1"]);
|
|
4023
|
-
return m(() => c.value.close), (x, z) =>
|
|
4023
|
+
return m(() => c.value.close), (x, z) => o.value ? g("", !0) : (l(), s("div", {
|
|
4024
4024
|
key: 0,
|
|
4025
4025
|
class: h(y.value),
|
|
4026
4026
|
role: "alert",
|
|
@@ -4036,7 +4036,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
4036
4036
|
class: h(f.value)
|
|
4037
4037
|
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
4038
4038
|
i("div", Wl, [
|
|
4039
|
-
e.title ? (l(),
|
|
4039
|
+
e.title ? (l(), s("p", {
|
|
4040
4040
|
key: 0,
|
|
4041
4041
|
class: h(["font-semibold", u.value])
|
|
4042
4042
|
}, A(e.title), 3)) : g("", !0),
|
|
@@ -4053,7 +4053,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
4053
4053
|
onClick: r
|
|
4054
4054
|
})) : g("", !0)
|
|
4055
4055
|
]),
|
|
4056
|
-
x.$slots.actions ? (l(),
|
|
4056
|
+
x.$slots.actions ? (l(), s("div", Ql, [
|
|
4057
4057
|
I(x.$slots, "actions")
|
|
4058
4058
|
])) : g("", !0)
|
|
4059
4059
|
], 10, Kl));
|
|
@@ -4075,7 +4075,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
},
|
|
4077
4077
|
setup(e) {
|
|
4078
|
-
return (a, t) => (l(), D(
|
|
4078
|
+
return (a, t) => (l(), D(Fe, {
|
|
4079
4079
|
color: e.color,
|
|
4080
4080
|
thickness: e.thickness,
|
|
4081
4081
|
spacing: "none",
|
|
@@ -4086,7 +4086,7 @@ const dl = "absolute pointer-events-none", me = {
|
|
|
4086
4086
|
}
|
|
4087
4087
|
};
|
|
4088
4088
|
function nt(e, a) {
|
|
4089
|
-
const t = M(""), n = M(e.compact),
|
|
4089
|
+
const t = M(""), n = M(e.compact), o = m(() => n.value);
|
|
4090
4090
|
let r = !1;
|
|
4091
4091
|
_(() => {
|
|
4092
4092
|
try {
|
|
@@ -4115,7 +4115,7 @@ function nt(e, a) {
|
|
|
4115
4115
|
return {
|
|
4116
4116
|
searchQuery: t,
|
|
4117
4117
|
internalCompact: n,
|
|
4118
|
-
compact:
|
|
4118
|
+
compact: o,
|
|
4119
4119
|
filteredSections: d,
|
|
4120
4120
|
isItemActive: (f) => e.activeItem ? f.to === e.activeItem || f.id === e.activeItem ? !0 : f.children ? f.children.some(
|
|
4121
4121
|
(u) => u.to === e.activeItem || u.id === e.activeItem
|
|
@@ -4167,12 +4167,12 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4167
4167
|
}
|
|
4168
4168
|
},
|
|
4169
4169
|
setup(e) {
|
|
4170
|
-
const a = e, t = M(!1), n = M(null),
|
|
4170
|
+
const a = e, t = M(!1), n = M(null), o = M(-1), r = () => {
|
|
4171
4171
|
a.disabled || (t.value = !t.value, t.value && ce(() => {
|
|
4172
4172
|
f();
|
|
4173
4173
|
}));
|
|
4174
4174
|
}, d = () => {
|
|
4175
|
-
t.value = !1,
|
|
4175
|
+
t.value = !1, o.value = -1;
|
|
4176
4176
|
}, c = (V) => {
|
|
4177
4177
|
n.value && !n.value.contains(V.target) && d();
|
|
4178
4178
|
}, b = {
|
|
@@ -4186,13 +4186,13 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4186
4186
|
return V ? Array.from(V.querySelectorAll('button[data-component="DXDropdownItem"]:not([disabled])')) : [];
|
|
4187
4187
|
}, f = () => {
|
|
4188
4188
|
const V = y();
|
|
4189
|
-
V.length > 0 && (V[0].focus(),
|
|
4189
|
+
V.length > 0 && (V[0].focus(), o.value = 0);
|
|
4190
4190
|
}, u = () => {
|
|
4191
4191
|
const V = y();
|
|
4192
|
-
V.length !== 0 && (
|
|
4192
|
+
V.length !== 0 && (o.value = (o.value + 1) % V.length, V[o.value].focus());
|
|
4193
4193
|
}, v = () => {
|
|
4194
4194
|
const V = y();
|
|
4195
|
-
V.length !== 0 && (
|
|
4195
|
+
V.length !== 0 && (o.value = o.value <= 0 ? V.length - 1 : o.value - 1, V[o.value].focus());
|
|
4196
4196
|
}, x = () => {
|
|
4197
4197
|
t.value ? u() : r();
|
|
4198
4198
|
}, z = () => {
|
|
@@ -4224,7 +4224,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4224
4224
|
document.addEventListener("click", c);
|
|
4225
4225
|
}), fe(() => {
|
|
4226
4226
|
document.removeEventListener("click", c);
|
|
4227
|
-
}), (V, B) => (l(),
|
|
4227
|
+
}), (V, B) => (l(), s("div", {
|
|
4228
4228
|
class: "relative inline-block align-top",
|
|
4229
4229
|
ref_key: "root",
|
|
4230
4230
|
ref: n,
|
|
@@ -4248,7 +4248,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4248
4248
|
"aria-expanded": t.value
|
|
4249
4249
|
}, [
|
|
4250
4250
|
I(V.$slots, "trigger", {}, () => [
|
|
4251
|
-
B[0] || (B[0] =
|
|
4251
|
+
B[0] || (B[0] = O("Меню", -1))
|
|
4252
4252
|
], !0),
|
|
4253
4253
|
e.showChevron ? (l(), D(T, {
|
|
4254
4254
|
key: 0,
|
|
@@ -4260,7 +4260,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4260
4260
|
], 42, _l),
|
|
4261
4261
|
L(te, { name: "dropdown-fade" }, {
|
|
4262
4262
|
default: X(() => [
|
|
4263
|
-
t.value ? (l(),
|
|
4263
|
+
t.value ? (l(), s("div", {
|
|
4264
4264
|
key: 0,
|
|
4265
4265
|
class: h($.value),
|
|
4266
4266
|
style: Q(S.value),
|
|
@@ -4277,7 +4277,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4277
4277
|
})
|
|
4278
4278
|
], 8, Jl));
|
|
4279
4279
|
}
|
|
4280
|
-
}, ue = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-9fb1752f"]]), an = { "data-component": "DXSidebarMenuItem" }, ln = { class: "text-sm font-medium" }, nn = { key: 2 },
|
|
4280
|
+
}, ue = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-9fb1752f"]]), an = { "data-component": "DXSidebarMenuItem" }, ln = { class: "text-sm font-medium" }, nn = { key: 2 }, on = { class: "flex items-center gap-3 flex-1" }, sn = {
|
|
4281
4281
|
key: 1,
|
|
4282
4282
|
class: "flex-1 text-sm font-medium text-left"
|
|
4283
4283
|
}, rn = { class: "overflow-hidden" }, dn = { class: "pl-11 py-1 space-y-1" }, un = {
|
|
@@ -4302,7 +4302,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4302
4302
|
},
|
|
4303
4303
|
emits: ["click", "child-click"],
|
|
4304
4304
|
setup(e, { emit: a }) {
|
|
4305
|
-
const t = _e("collapse"), n = e,
|
|
4305
|
+
const t = _e("collapse"), n = e, o = a, r = M(!1), d = re("hasRouter", !1), c = () => {
|
|
4306
4306
|
r.value = !r.value;
|
|
4307
4307
|
}, b = m(() => n.item.to && d ? "router-link" : n.item.href ? "a" : "button"), y = (p) => p.to && d ? "router-link" : p.href ? "a" : "button", f = m(() => {
|
|
4308
4308
|
const p = "flex items-center transition-all duration-200 text-left";
|
|
@@ -4329,11 +4329,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4329
4329
|
p.preventDefault();
|
|
4330
4330
|
return;
|
|
4331
4331
|
}
|
|
4332
|
-
|
|
4332
|
+
o("click", n.item, p);
|
|
4333
4333
|
}, z = (p) => {
|
|
4334
|
-
p.disabled ||
|
|
4334
|
+
p.disabled || o("child-click", p);
|
|
4335
4335
|
};
|
|
4336
|
-
return (p, w) => (l(),
|
|
4336
|
+
return (p, w) => (l(), s("div", an, [
|
|
4337
4337
|
e.horizontal && e.item.children ? (l(), D(ue, {
|
|
4338
4338
|
key: 0,
|
|
4339
4339
|
position: "bottom",
|
|
@@ -4355,19 +4355,19 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4355
4355
|
class: "ml-2"
|
|
4356
4356
|
}, {
|
|
4357
4357
|
default: X(() => [
|
|
4358
|
-
|
|
4358
|
+
O(A(e.item.badge), 1)
|
|
4359
4359
|
]),
|
|
4360
4360
|
_: 1
|
|
4361
4361
|
}, 8, ["variant"])) : g("", !0)
|
|
4362
4362
|
]),
|
|
4363
4363
|
default: X(() => [
|
|
4364
|
-
(l(!0),
|
|
4364
|
+
(l(!0), s(j, null, P(e.item.children, (C, $) => (l(), D(de, {
|
|
4365
4365
|
key: $,
|
|
4366
4366
|
icon: C.icon,
|
|
4367
4367
|
onClick: (S) => z(C)
|
|
4368
4368
|
}, Ge({
|
|
4369
4369
|
default: X(() => [
|
|
4370
|
-
|
|
4370
|
+
O(A(C.label) + " ", 1)
|
|
4371
4371
|
]),
|
|
4372
4372
|
_: 2
|
|
4373
4373
|
}, [
|
|
@@ -4379,7 +4379,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4379
4379
|
size: "sm"
|
|
4380
4380
|
}, {
|
|
4381
4381
|
default: X(() => [
|
|
4382
|
-
|
|
4382
|
+
O(A(C.badge), 1)
|
|
4383
4383
|
]),
|
|
4384
4384
|
_: 2
|
|
4385
4385
|
}, 1032, ["variant"])
|
|
@@ -4389,13 +4389,13 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4389
4389
|
]), 1032, ["icon", "onClick"]))), 128))
|
|
4390
4390
|
]),
|
|
4391
4391
|
_: 1
|
|
4392
|
-
})) : e.item.children ? (l(),
|
|
4392
|
+
})) : e.item.children ? (l(), s("div", nn, [
|
|
4393
4393
|
i("button", {
|
|
4394
4394
|
type: "button",
|
|
4395
4395
|
class: h(f.value),
|
|
4396
4396
|
onClick: c
|
|
4397
4397
|
}, [
|
|
4398
|
-
i("div",
|
|
4398
|
+
i("div", on, [
|
|
4399
4399
|
e.item.icon ? (l(), D(T, {
|
|
4400
4400
|
key: 0,
|
|
4401
4401
|
icon: e.item.icon,
|
|
@@ -4403,7 +4403,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4403
4403
|
animation: "scale",
|
|
4404
4404
|
class: h(u.value)
|
|
4405
4405
|
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
4406
|
-
e.compact ? g("", !0) : (l(),
|
|
4406
|
+
e.compact ? g("", !0) : (l(), s("span", sn, A(e.item.label), 1))
|
|
4407
4407
|
]),
|
|
4408
4408
|
e.compact ? g("", !0) : (l(), D(T, {
|
|
4409
4409
|
key: 0,
|
|
@@ -4417,7 +4417,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4417
4417
|
default: X(() => [
|
|
4418
4418
|
le(i("div", rn, [
|
|
4419
4419
|
i("div", dn, [
|
|
4420
|
-
(l(!0),
|
|
4420
|
+
(l(!0), s(j, null, P(e.item.children, (C, $) => (l(), D(q(y(C)), {
|
|
4421
4421
|
key: $,
|
|
4422
4422
|
to: C.to,
|
|
4423
4423
|
href: C.href,
|
|
@@ -4425,7 +4425,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4425
4425
|
onClick: (S) => z(C)
|
|
4426
4426
|
}, {
|
|
4427
4427
|
default: X(() => [
|
|
4428
|
-
|
|
4428
|
+
O(A(C.label) + " ", 1),
|
|
4429
4429
|
C.badge ? (l(), D(ie, {
|
|
4430
4430
|
key: 0,
|
|
4431
4431
|
variant: C.badgeVariant || "info",
|
|
@@ -4433,7 +4433,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4433
4433
|
class: "ml-auto"
|
|
4434
4434
|
}, {
|
|
4435
4435
|
default: X(() => [
|
|
4436
|
-
|
|
4436
|
+
O(A(C.badge), 1)
|
|
4437
4437
|
]),
|
|
4438
4438
|
_: 2
|
|
4439
4439
|
}, 1032, ["variant"])) : g("", !0)
|
|
@@ -4465,7 +4465,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4465
4465
|
animation: "scale",
|
|
4466
4466
|
class: h(u.value)
|
|
4467
4467
|
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
4468
|
-
e.compact ? g("", !0) : (l(),
|
|
4468
|
+
e.compact ? g("", !0) : (l(), s("span", {
|
|
4469
4469
|
key: 1,
|
|
4470
4470
|
class: h(["flex-1 font-medium text-left", (e.horizontal, "text-sm")])
|
|
4471
4471
|
}, A(e.item.label), 3))
|
|
@@ -4476,7 +4476,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4476
4476
|
size: "sm"
|
|
4477
4477
|
}, {
|
|
4478
4478
|
default: X(() => [
|
|
4479
|
-
|
|
4479
|
+
O(A(e.item.badge), 1)
|
|
4480
4480
|
]),
|
|
4481
4481
|
_: 1
|
|
4482
4482
|
}, 8, ["variant"])) : g("", !0)
|
|
@@ -4509,9 +4509,9 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4509
4509
|
/** Дополнительные классы */
|
|
4510
4510
|
inputClass: { type: [String, Array, Object], default: "" },
|
|
4511
4511
|
/** Иконка слева (Heroicon компонент) */
|
|
4512
|
-
prefixIcon: { type: Object, default: null },
|
|
4512
|
+
prefixIcon: { type: [Object, Function], default: null },
|
|
4513
4513
|
/** Иконка справа (Heroicon компонент) */
|
|
4514
|
-
suffixIcon: { type: Object, default: null }
|
|
4514
|
+
suffixIcon: { type: [Object, Function], default: null }
|
|
4515
4515
|
},
|
|
4516
4516
|
emits: ["update:modelValue"],
|
|
4517
4517
|
setup(e) {
|
|
@@ -4521,7 +4521,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4521
4521
|
}), be(() => {
|
|
4522
4522
|
t != null && t.unregisterComponent && t.unregisterComponent(n);
|
|
4523
4523
|
});
|
|
4524
|
-
const
|
|
4524
|
+
const o = m(() => t != null && t.getComponentPosition ? t.getComponentPosition(n) : { hasLeftAddon: !1, hasRightAddon: !1 }), r = e, d = () => ({
|
|
4525
4525
|
sm: "sm",
|
|
4526
4526
|
md: "md",
|
|
4527
4527
|
lg: "lg"
|
|
@@ -4533,7 +4533,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4533
4533
|
lg: u === "left" ? "pl-12" : "pr-12"
|
|
4534
4534
|
};
|
|
4535
4535
|
return v[r.size] || v.md;
|
|
4536
|
-
}, b = () =>
|
|
4536
|
+
}, b = () => o.value.hasLeftAddon && o.value.hasRightAddon ? "rounded-none" : o.value.hasLeftAddon ? "rounded-l-none rounded-r-xl" : o.value.hasRightAddon ? "rounded-l-xl rounded-r-none" : "rounded-xl", y = m(
|
|
4537
4537
|
() => G(
|
|
4538
4538
|
`${fn} ${b()}`,
|
|
4539
4539
|
{
|
|
@@ -4665,14 +4665,14 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4665
4665
|
},
|
|
4666
4666
|
emits: ["item-click", "update:compact"],
|
|
4667
4667
|
setup(e, { emit: a }) {
|
|
4668
|
-
const t = ne(), n = e,
|
|
4668
|
+
const t = ne(), n = e, o = a, {
|
|
4669
4669
|
searchQuery: r,
|
|
4670
4670
|
compact: d,
|
|
4671
4671
|
filteredSections: c,
|
|
4672
4672
|
isItemActive: b,
|
|
4673
4673
|
toggleCompact: y,
|
|
4674
4674
|
handleItemClick: f
|
|
4675
|
-
} = nt(n,
|
|
4675
|
+
} = nt(n, o), u = {
|
|
4676
4676
|
sm: {
|
|
4677
4677
|
container: "px-3 py-2",
|
|
4678
4678
|
title: "text-base"
|
|
@@ -4716,13 +4716,13 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4716
4716
|
i("div", {
|
|
4717
4717
|
class: h(x.value)
|
|
4718
4718
|
}, [
|
|
4719
|
-
v.value ? (l(),
|
|
4719
|
+
v.value ? (l(), s("div", {
|
|
4720
4720
|
key: 0,
|
|
4721
4721
|
class: h(p.value)
|
|
4722
4722
|
}, [
|
|
4723
|
-
e.direction === "horizontal" ? (l(),
|
|
4723
|
+
e.direction === "horizontal" ? (l(), s(j, { key: 0 }, [
|
|
4724
4724
|
k(d) ? g("", !0) : I(S.$slots, "header", { key: 0 }, () => [
|
|
4725
|
-
e.title ? (l(),
|
|
4725
|
+
e.title ? (l(), s("h2", {
|
|
4726
4726
|
key: 0,
|
|
4727
4727
|
class: h(w.value)
|
|
4728
4728
|
}, A(e.title), 3)) : g("", !0)
|
|
@@ -4730,7 +4730,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4730
4730
|
e.searchable && !k(d) ? (l(), D(ye, {
|
|
4731
4731
|
key: 1,
|
|
4732
4732
|
modelValue: k(r),
|
|
4733
|
-
"onUpdate:modelValue": V[0] || (V[0] = (B) =>
|
|
4733
|
+
"onUpdate:modelValue": V[0] || (V[0] = (B) => oe(r) ? r.value = B : null),
|
|
4734
4734
|
placeholder: "Поиск...",
|
|
4735
4735
|
size: "sm",
|
|
4736
4736
|
class: "max-w-xs"
|
|
@@ -4744,7 +4744,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4744
4744
|
]),
|
|
4745
4745
|
_: 1
|
|
4746
4746
|
}, 8, ["modelValue"])) : g("", !0),
|
|
4747
|
-
e.collapsible ? (l(),
|
|
4747
|
+
e.collapsible ? (l(), s("button", {
|
|
4748
4748
|
key: 2,
|
|
4749
4749
|
type: "button",
|
|
4750
4750
|
class: "p-2 rounded-lg hover:bg-slate-100 transition-colors ml-auto",
|
|
@@ -4752,20 +4752,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4752
4752
|
title: k(d) ? "Развернуть" : "Свернуть"
|
|
4753
4753
|
}, [
|
|
4754
4754
|
L(T, {
|
|
4755
|
-
icon: k(d) ? k(
|
|
4755
|
+
icon: k(d) ? k(se) : k(pe),
|
|
4756
4756
|
size: "md",
|
|
4757
4757
|
animation: "scale",
|
|
4758
4758
|
class: "text-slate-600"
|
|
4759
4759
|
}, null, 8, ["icon"])
|
|
4760
4760
|
], 8, bn)) : g("", !0)
|
|
4761
|
-
], 64)) : (l(),
|
|
4761
|
+
], 64)) : (l(), s(j, { key: 1 }, [
|
|
4762
4762
|
k(d) ? g("", !0) : I(S.$slots, "header", { key: 0 }, () => [
|
|
4763
|
-
e.title ? (l(),
|
|
4763
|
+
e.title ? (l(), s("h2", {
|
|
4764
4764
|
key: 0,
|
|
4765
4765
|
class: h(w.value)
|
|
4766
4766
|
}, A(e.title), 3)) : g("", !0)
|
|
4767
4767
|
], !0),
|
|
4768
|
-
e.collapsible ? (l(),
|
|
4768
|
+
e.collapsible ? (l(), s("button", {
|
|
4769
4769
|
key: 1,
|
|
4770
4770
|
type: "button",
|
|
4771
4771
|
class: h(["p-2 rounded-lg hover:bg-slate-100 transition-colors", { "ml-auto": !k(d) }]),
|
|
@@ -4773,7 +4773,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4773
4773
|
title: k(d) ? "Развернуть" : "Свернуть"
|
|
4774
4774
|
}, [
|
|
4775
4775
|
L(T, {
|
|
4776
|
-
icon: k(d) ? k(
|
|
4776
|
+
icon: k(d) ? k(se) : k(pe),
|
|
4777
4777
|
size: "md",
|
|
4778
4778
|
animation: "scale",
|
|
4779
4779
|
class: "text-slate-600"
|
|
@@ -4781,10 +4781,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4781
4781
|
], 10, gn)) : g("", !0)
|
|
4782
4782
|
], 64))
|
|
4783
4783
|
], 2)) : g("", !0),
|
|
4784
|
-
e.searchable && !k(d) && e.direction === "vertical" ? (l(),
|
|
4784
|
+
e.searchable && !k(d) && e.direction === "vertical" ? (l(), s("div", vn, [
|
|
4785
4785
|
L(ye, {
|
|
4786
4786
|
modelValue: k(r),
|
|
4787
|
-
"onUpdate:modelValue": V[3] || (V[3] = (B) =>
|
|
4787
|
+
"onUpdate:modelValue": V[3] || (V[3] = (B) => oe(r) ? r.value = B : null),
|
|
4788
4788
|
placeholder: "Поиск...",
|
|
4789
4789
|
size: "sm"
|
|
4790
4790
|
}, {
|
|
@@ -4801,8 +4801,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4801
4801
|
i("nav", {
|
|
4802
4802
|
class: h(C.value)
|
|
4803
4803
|
}, [
|
|
4804
|
-
e.direction === "horizontal" ? (l(!0),
|
|
4805
|
-
(l(!0),
|
|
4804
|
+
e.direction === "horizontal" ? (l(!0), s(j, { key: 0 }, P(k(c), (B, F) => (l(), s(j, { key: F }, [
|
|
4805
|
+
(l(!0), s(j, null, P(B.items, (U, ee) => (l(), D(Ie, {
|
|
4806
4806
|
key: ee,
|
|
4807
4807
|
item: U,
|
|
4808
4808
|
active: k(b)(U),
|
|
@@ -4811,16 +4811,16 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4811
4811
|
onClick: k(f),
|
|
4812
4812
|
onChildClick: k(f)
|
|
4813
4813
|
}, null, 8, ["item", "active", "onClick", "onChildClick"]))), 128))
|
|
4814
|
-
], 64))), 128)) : (l(!0),
|
|
4815
|
-
key:
|
|
4814
|
+
], 64))), 128)) : (l(!0), s(j, { key: 1 }, P(k(c), (B, F) => (l(), s("div", {
|
|
4815
|
+
key: F,
|
|
4816
4816
|
class: "space-y-1"
|
|
4817
4817
|
}, [
|
|
4818
|
-
B.title && !k(d) ? (l(),
|
|
4819
|
-
B.title && k(d) ? (l(), D(
|
|
4818
|
+
B.title && !k(d) ? (l(), s("div", hn, A(B.title), 1)) : g("", !0),
|
|
4819
|
+
B.title && k(d) ? (l(), D(Fe, {
|
|
4820
4820
|
key: 1,
|
|
4821
4821
|
spacing: "sm"
|
|
4822
4822
|
})) : g("", !0),
|
|
4823
|
-
(l(!0),
|
|
4823
|
+
(l(!0), s(j, null, P(B.items, (U, ee) => (l(), D(Ie, {
|
|
4824
4824
|
key: ee,
|
|
4825
4825
|
item: U,
|
|
4826
4826
|
active: k(b)(U),
|
|
@@ -4830,7 +4830,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4830
4830
|
}, null, 8, ["item", "active", "compact", "onClick", "onChildClick"]))), 128))
|
|
4831
4831
|
]))), 128))
|
|
4832
4832
|
], 2),
|
|
4833
|
-
k(t).footer && !k(d) && e.direction === "vertical" ? (l(),
|
|
4833
|
+
k(t).footer && !k(d) && e.direction === "vertical" ? (l(), s("div", {
|
|
4834
4834
|
key: 2,
|
|
4835
4835
|
class: h($.value)
|
|
4836
4836
|
}, [
|
|
@@ -4879,7 +4879,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4879
4879
|
},
|
|
4880
4880
|
emits: ["update:modelValue", "create"],
|
|
4881
4881
|
setup(e, { emit: a }) {
|
|
4882
|
-
const t = e, n = a,
|
|
4882
|
+
const t = e, n = a, o = M(!1), r = M(""), d = M(null), c = M(null), b = m(() => t.multiple ? null : t.options.find(($) => String($.value) === String(t.modelValue))), y = m(() => {
|
|
4883
4883
|
if (!t.multiple) return [];
|
|
4884
4884
|
const $ = Array.isArray(t.modelValue) ? t.modelValue : [];
|
|
4885
4885
|
return t.options.filter((S) => $.includes(S.value));
|
|
@@ -4893,7 +4893,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4893
4893
|
const $ = r.value.toLowerCase().trim();
|
|
4894
4894
|
return $ ? t.options.filter((S) => S.label.toLowerCase().includes($)) : t.options;
|
|
4895
4895
|
}), v = ($) => t.multiple ? (Array.isArray(t.modelValue) ? t.modelValue : []).includes($) : t.modelValue === $, x = () => {
|
|
4896
|
-
|
|
4896
|
+
o.value = !o.value, o.value && ce(() => {
|
|
4897
4897
|
var $;
|
|
4898
4898
|
return ($ = c.value) == null ? void 0 : $.focus();
|
|
4899
4899
|
});
|
|
@@ -4906,7 +4906,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4906
4906
|
} else
|
|
4907
4907
|
n("update:modelValue", [...S, $]);
|
|
4908
4908
|
} else
|
|
4909
|
-
n("update:modelValue", $),
|
|
4909
|
+
n("update:modelValue", $), o.value = !1;
|
|
4910
4910
|
r.value = "";
|
|
4911
4911
|
}, p = ($) => {
|
|
4912
4912
|
if (t.multiple) {
|
|
@@ -4916,21 +4916,21 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4916
4916
|
}, w = () => {
|
|
4917
4917
|
t.creatable && r.value && (n("create", r.value), r.value = "");
|
|
4918
4918
|
}, C = ($) => {
|
|
4919
|
-
d.value && !d.value.contains($.target) && (
|
|
4919
|
+
d.value && !d.value.contains($.target) && (o.value = !1, r.value = "");
|
|
4920
4920
|
};
|
|
4921
|
-
return Y(
|
|
4921
|
+
return Y(o, ($) => {
|
|
4922
4922
|
$ || (r.value = "");
|
|
4923
4923
|
}), _(() => document.addEventListener("click", C)), fe(() => document.removeEventListener("click", C)), ($, S) => {
|
|
4924
4924
|
var V;
|
|
4925
|
-
return l(),
|
|
4925
|
+
return l(), s("div", {
|
|
4926
4926
|
class: "relative",
|
|
4927
4927
|
ref_key: "root",
|
|
4928
4928
|
ref: d,
|
|
4929
4929
|
"data-component": "DXSearchSelect"
|
|
4930
4930
|
}, [
|
|
4931
|
-
e.label ? (l(),
|
|
4932
|
-
e.multiple && y.value.length > 0 ? (l(),
|
|
4933
|
-
(l(!0),
|
|
4931
|
+
e.label ? (l(), s("label", xn, A(e.label), 1)) : g("", !0),
|
|
4932
|
+
e.multiple && y.value.length > 0 ? (l(), s("div", yn, [
|
|
4933
|
+
(l(!0), s(j, null, P(y.value, (B) => (l(), s("span", {
|
|
4934
4934
|
key: B.value,
|
|
4935
4935
|
class: "inline-flex items-center gap-1 px-2 py-1 text-xs font-medium bg-slate-100 text-slate-700 rounded-lg"
|
|
4936
4936
|
}, [
|
|
@@ -4938,11 +4938,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4938
4938
|
key: 0,
|
|
4939
4939
|
class: "w-3 h-3"
|
|
4940
4940
|
})) : g("", !0),
|
|
4941
|
-
|
|
4941
|
+
O(" " + A(B.label) + " ", 1),
|
|
4942
4942
|
i("button", {
|
|
4943
4943
|
type: "button",
|
|
4944
4944
|
class: "hover:text-slate-900",
|
|
4945
|
-
onClick: R((
|
|
4945
|
+
onClick: R((F) => p(B.value), ["stop"])
|
|
4946
4946
|
}, [...S[3] || (S[3] = [
|
|
4947
4947
|
i("svg", {
|
|
4948
4948
|
class: "w-3 h-3",
|
|
@@ -4963,8 +4963,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4963
4963
|
i("button", {
|
|
4964
4964
|
type: "button",
|
|
4965
4965
|
class: h(["w-full flex items-center justify-between h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white transition-colors", [
|
|
4966
|
-
!
|
|
4967
|
-
|
|
4966
|
+
!o.value && "hover:border-slate-300",
|
|
4967
|
+
o.value && "ring-2 ring-slate-900/10 border-slate-300"
|
|
4968
4968
|
]]),
|
|
4969
4969
|
onClick: x
|
|
4970
4970
|
}, [
|
|
@@ -4973,10 +4973,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4973
4973
|
key: 0,
|
|
4974
4974
|
class: "w-4 h-4 text-slate-500"
|
|
4975
4975
|
})) : g("", !0),
|
|
4976
|
-
|
|
4976
|
+
O(" " + A(f.value), 1)
|
|
4977
4977
|
]),
|
|
4978
|
-
(l(),
|
|
4979
|
-
class: h(["w-4 h-4 text-slate-400 transition-transform", { "rotate-180":
|
|
4978
|
+
(l(), s("svg", {
|
|
4979
|
+
class: h(["w-4 h-4 text-slate-400 transition-transform", { "rotate-180": o.value }]),
|
|
4980
4980
|
fill: "none",
|
|
4981
4981
|
stroke: "currentColor",
|
|
4982
4982
|
viewBox: "0 0 24 24"
|
|
@@ -4989,7 +4989,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
4989
4989
|
}, null, -1)
|
|
4990
4990
|
])], 2))
|
|
4991
4991
|
], 2),
|
|
4992
|
-
|
|
4992
|
+
o.value ? (l(), s("div", Cn, [
|
|
4993
4993
|
i("div", Sn, [
|
|
4994
4994
|
le(i("input", {
|
|
4995
4995
|
ref_key: "searchInput",
|
|
@@ -5000,7 +5000,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5000
5000
|
onKeydown: [
|
|
5001
5001
|
S[1] || (S[1] = R(() => {
|
|
5002
5002
|
}, ["stop"])),
|
|
5003
|
-
S[2] || (S[2] = K((B) =>
|
|
5003
|
+
S[2] || (S[2] = K((B) => o.value = !1, ["escape"]))
|
|
5004
5004
|
]
|
|
5005
5005
|
}, null, 40, $n), [
|
|
5006
5006
|
[he, r.value]
|
|
@@ -5020,20 +5020,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5020
5020
|
], -1))
|
|
5021
5021
|
]),
|
|
5022
5022
|
i("div", zn, [
|
|
5023
|
-
(l(!0),
|
|
5023
|
+
(l(!0), s(j, null, P(u.value, (B) => (l(), s("button", {
|
|
5024
5024
|
key: B.value,
|
|
5025
5025
|
type: "button",
|
|
5026
5026
|
class: h(["w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center justify-between gap-2", { "bg-slate-100": v(B.value) }]),
|
|
5027
|
-
onClick: (
|
|
5027
|
+
onClick: (F) => z(B.value)
|
|
5028
5028
|
}, [
|
|
5029
5029
|
i("span", Dn, [
|
|
5030
5030
|
B.icon ? (l(), D(q(B.icon), {
|
|
5031
5031
|
key: 0,
|
|
5032
5032
|
class: "w-4 h-4 text-slate-500"
|
|
5033
5033
|
})) : g("", !0),
|
|
5034
|
-
|
|
5034
|
+
O(" " + A(B.label), 1)
|
|
5035
5035
|
]),
|
|
5036
|
-
v(B.value) ? (l(),
|
|
5036
|
+
v(B.value) ? (l(), s("svg", Vn, [...S[6] || (S[6] = [
|
|
5037
5037
|
i("path", {
|
|
5038
5038
|
"stroke-linecap": "round",
|
|
5039
5039
|
"stroke-linejoin": "round",
|
|
@@ -5042,7 +5042,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5042
5042
|
}, null, -1)
|
|
5043
5043
|
])])) : g("", !0)
|
|
5044
5044
|
], 10, An))), 128)),
|
|
5045
|
-
e.creatable && r.value && !u.value.length ? (l(),
|
|
5045
|
+
e.creatable && r.value && !u.value.length ? (l(), s("button", {
|
|
5046
5046
|
key: 0,
|
|
5047
5047
|
type: "button",
|
|
5048
5048
|
class: "w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center gap-2 text-slate-600",
|
|
@@ -5061,8 +5061,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5061
5061
|
d: "M12 4v16m8-8H4"
|
|
5062
5062
|
})
|
|
5063
5063
|
], -1)),
|
|
5064
|
-
|
|
5065
|
-
])) : u.value.length ? g("", !0) : (l(),
|
|
5064
|
+
O(' Создать "' + A(r.value) + '" ', 1)
|
|
5065
|
+
])) : u.value.length ? g("", !0) : (l(), s("p", Bn, "Не найдено"))
|
|
5066
5066
|
])
|
|
5067
5067
|
])) : g("", !0)
|
|
5068
5068
|
], 512);
|
|
@@ -5071,10 +5071,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5071
5071
|
}, Ln = { class: "min-w-full divide-y divide-slate-200" }, Tn = {
|
|
5072
5072
|
key: 0,
|
|
5073
5073
|
class: "px-4 py-3 w-12"
|
|
5074
|
-
}, Xn = ["onClick"], Mn = { class: "flex items-center gap-2" }, jn = { class: "p-2 min-w-[200px]" },
|
|
5074
|
+
}, Xn = ["onClick"], Mn = { class: "flex items-center gap-2" }, jn = { class: "p-2 min-w-[200px]" }, Fn = {
|
|
5075
5075
|
key: 1,
|
|
5076
5076
|
class: "px-4 py-3 w-20 text-right"
|
|
5077
|
-
},
|
|
5077
|
+
}, On = { class: "divide-y divide-slate-200 bg-white" }, En = { key: 0 }, Pn = ["colspan"], Nn = { key: 1 }, Rn = ["colspan"], qn = { class: "bg-slate-100" }, Hn = ["colspan"], Zn = ["onClick"], Un = {
|
|
5078
5078
|
key: 0,
|
|
5079
5079
|
class: "px-4 py-3"
|
|
5080
5080
|
}, Kn = {
|
|
@@ -5185,7 +5185,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5185
5185
|
"delete"
|
|
5186
5186
|
],
|
|
5187
5187
|
setup(e, { emit: a }) {
|
|
5188
|
-
const t = e, n = a,
|
|
5188
|
+
const t = e, n = a, o = m(() => {
|
|
5189
5189
|
let z = t.columns.length;
|
|
5190
5190
|
return t.selectable && z++, t.actions && z++, z;
|
|
5191
5191
|
}), r = m(() => t.groupBy ? t.data.reduce((z, p) => {
|
|
@@ -5201,7 +5201,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5201
5201
|
}, x = () => {
|
|
5202
5202
|
n("select-all", !c.value);
|
|
5203
5203
|
};
|
|
5204
|
-
return (z, p) => (l(),
|
|
5204
|
+
return (z, p) => (l(), s("div", {
|
|
5205
5205
|
style: Q({ maxHeight: e.height }),
|
|
5206
5206
|
class: h(["border border-slate-200 rounded-2xl overflow-auto", e.height && "relative"]),
|
|
5207
5207
|
"data-component": "DXBaseTable"
|
|
@@ -5211,7 +5211,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5211
5211
|
class: h(["bg-slate-50", e.stickyHeader && e.height && "sticky top-0 z-10"])
|
|
5212
5212
|
}, [
|
|
5213
5213
|
i("tr", null, [
|
|
5214
|
-
e.selectable ? (l(),
|
|
5214
|
+
e.selectable ? (l(), s("th", Tn, [
|
|
5215
5215
|
L(ve, {
|
|
5216
5216
|
checked: c.value,
|
|
5217
5217
|
indeterminate: b.value,
|
|
@@ -5219,7 +5219,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5219
5219
|
size: e.size
|
|
5220
5220
|
}, null, 8, ["checked", "indeterminate", "size"])
|
|
5221
5221
|
])) : g("", !0),
|
|
5222
|
-
(l(!0),
|
|
5222
|
+
(l(!0), s(j, null, P(e.columns, (w) => (l(), s("th", {
|
|
5223
5223
|
key: w.key,
|
|
5224
5224
|
style: Q(w.width && { width: w.width }),
|
|
5225
5225
|
class: h([
|
|
@@ -5236,7 +5236,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5236
5236
|
size: "xs",
|
|
5237
5237
|
class: "text-slate-500"
|
|
5238
5238
|
}, null, 8, ["icon"])) : g("", !0),
|
|
5239
|
-
e.filterable && w.filterable !== !1 ? (l(),
|
|
5239
|
+
e.filterable && w.filterable !== !1 ? (l(), s("div", {
|
|
5240
5240
|
key: 1,
|
|
5241
5241
|
class: "flex items-center",
|
|
5242
5242
|
onClick: p[1] || (p[1] = R(() => {
|
|
@@ -5282,23 +5282,23 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5282
5282
|
])) : g("", !0)
|
|
5283
5283
|
])
|
|
5284
5284
|
], 14, Xn))), 128)),
|
|
5285
|
-
e.actions ? (l(),
|
|
5285
|
+
e.actions ? (l(), s("th", Fn, [...p[4] || (p[4] = [
|
|
5286
5286
|
i("span", { class: "text-xs font-semibold text-slate-600 uppercase tracking-wide" }, " Действия ", -1)
|
|
5287
5287
|
])])) : g("", !0)
|
|
5288
5288
|
])
|
|
5289
5289
|
], 2),
|
|
5290
|
-
i("tbody",
|
|
5291
|
-
e.loading ? (l(),
|
|
5290
|
+
i("tbody", On, [
|
|
5291
|
+
e.loading ? (l(), s("tr", En, [
|
|
5292
5292
|
i("td", {
|
|
5293
|
-
colspan:
|
|
5293
|
+
colspan: o.value,
|
|
5294
5294
|
class: "text-center py-12"
|
|
5295
5295
|
}, [
|
|
5296
5296
|
L(fl, { size: "lg" }),
|
|
5297
5297
|
p[5] || (p[5] = i("p", { class: "mt-2 text-sm text-slate-500" }, "Загрузка данных...", -1))
|
|
5298
5298
|
], 8, Pn)
|
|
5299
|
-
])) : e.data.length === 0 ? (l(),
|
|
5299
|
+
])) : e.data.length === 0 ? (l(), s("tr", Nn, [
|
|
5300
5300
|
i("td", {
|
|
5301
|
-
colspan:
|
|
5301
|
+
colspan: o.value,
|
|
5302
5302
|
class: "text-center py-12"
|
|
5303
5303
|
}, [
|
|
5304
5304
|
I(z.$slots, "empty", {}, () => [
|
|
@@ -5307,15 +5307,15 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5307
5307
|
], -1))
|
|
5308
5308
|
], !0)
|
|
5309
5309
|
], 8, Rn)
|
|
5310
|
-
])) : (l(),
|
|
5311
|
-
e.groupBy ? (l(!0),
|
|
5310
|
+
])) : (l(), s(j, { key: 2 }, [
|
|
5311
|
+
e.groupBy ? (l(!0), s(j, { key: 0 }, P(r.value, (w, C) => (l(), s(j, { key: C }, [
|
|
5312
5312
|
i("tr", qn, [
|
|
5313
5313
|
i("td", {
|
|
5314
|
-
colspan:
|
|
5314
|
+
colspan: o.value,
|
|
5315
5315
|
class: "px-4 py-2 font-semibold text-slate-700"
|
|
5316
5316
|
}, A(C) + " (" + A(w.length) + ") ", 9, Hn)
|
|
5317
5317
|
]),
|
|
5318
|
-
(l(!0),
|
|
5318
|
+
(l(!0), s(j, null, P(w, ($) => (l(), s("tr", {
|
|
5319
5319
|
key: $.id,
|
|
5320
5320
|
class: h([
|
|
5321
5321
|
e.hoverable && "hover:bg-slate-50",
|
|
@@ -5325,7 +5325,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5325
5325
|
]),
|
|
5326
5326
|
onClick: (S) => z.$emit("row-click", $)
|
|
5327
5327
|
}, [
|
|
5328
|
-
e.selectable ? (l(),
|
|
5328
|
+
e.selectable ? (l(), s("td", Un, [
|
|
5329
5329
|
L(ve, {
|
|
5330
5330
|
checked: d($.id),
|
|
5331
5331
|
onChange: (S) => v($.id),
|
|
@@ -5334,7 +5334,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5334
5334
|
}, ["stop"]))
|
|
5335
5335
|
}, null, 8, ["checked", "onChange", "size"])
|
|
5336
5336
|
])) : g("", !0),
|
|
5337
|
-
(l(!0),
|
|
5337
|
+
(l(!0), s(j, null, P(e.columns, (S) => (l(), s("td", {
|
|
5338
5338
|
key: `${$.id}-${S.key}`,
|
|
5339
5339
|
class: h([
|
|
5340
5340
|
"px-4 py-3 text-sm text-slate-700",
|
|
@@ -5348,10 +5348,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5348
5348
|
value: $[S.key],
|
|
5349
5349
|
column: S
|
|
5350
5350
|
}, () => [
|
|
5351
|
-
|
|
5351
|
+
O(A(y($[S.key], S)), 1)
|
|
5352
5352
|
], !0)
|
|
5353
5353
|
], 2))), 128)),
|
|
5354
|
-
e.actions ? (l(),
|
|
5354
|
+
e.actions ? (l(), s("td", Kn, [
|
|
5355
5355
|
i("div", Gn, [
|
|
5356
5356
|
I(z.$slots, "actions", { row: $ }, () => [
|
|
5357
5357
|
L(ue, {
|
|
@@ -5371,7 +5371,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5371
5371
|
onClick: (S) => z.$emit("edit", $)
|
|
5372
5372
|
}, {
|
|
5373
5373
|
default: X(() => [...p[7] || (p[7] = [
|
|
5374
|
-
|
|
5374
|
+
O(" Редактировать ", -1)
|
|
5375
5375
|
])]),
|
|
5376
5376
|
_: 1
|
|
5377
5377
|
}, 8, ["icon", "onClick"]),
|
|
@@ -5382,7 +5382,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5382
5382
|
onClick: (S) => z.$emit("delete", $)
|
|
5383
5383
|
}, {
|
|
5384
5384
|
default: X(() => [...p[8] || (p[8] = [
|
|
5385
|
-
|
|
5385
|
+
O(" Удалить ", -1)
|
|
5386
5386
|
])]),
|
|
5387
5387
|
_: 1
|
|
5388
5388
|
}, 8, ["icon", "onClick"])
|
|
@@ -5393,7 +5393,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5393
5393
|
])
|
|
5394
5394
|
])) : g("", !0)
|
|
5395
5395
|
], 10, Zn))), 128))
|
|
5396
|
-
], 64))), 128)) : (l(!0),
|
|
5396
|
+
], 64))), 128)) : (l(!0), s(j, { key: 1 }, P(e.data, (w) => (l(), s("tr", {
|
|
5397
5397
|
key: w.id,
|
|
5398
5398
|
class: h([
|
|
5399
5399
|
e.hoverable && "hover:bg-slate-50 cursor-pointer",
|
|
@@ -5403,7 +5403,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5403
5403
|
]),
|
|
5404
5404
|
onClick: (C) => z.$emit("row-click", w)
|
|
5405
5405
|
}, [
|
|
5406
|
-
e.selectable ? (l(),
|
|
5406
|
+
e.selectable ? (l(), s("td", Qn, [
|
|
5407
5407
|
L(ve, {
|
|
5408
5408
|
checked: d(w.id),
|
|
5409
5409
|
onChange: (C) => v(w.id),
|
|
@@ -5412,7 +5412,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5412
5412
|
}, ["stop"]))
|
|
5413
5413
|
}, null, 8, ["checked", "onChange", "size"])
|
|
5414
5414
|
])) : g("", !0),
|
|
5415
|
-
(l(!0),
|
|
5415
|
+
(l(!0), s(j, null, P(e.columns, (C) => (l(), s("td", {
|
|
5416
5416
|
key: `${w.id}-${C.key}`,
|
|
5417
5417
|
class: h([
|
|
5418
5418
|
"px-4 py-3 text-sm text-slate-700",
|
|
@@ -5426,10 +5426,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5426
5426
|
value: w[C.key],
|
|
5427
5427
|
column: C
|
|
5428
5428
|
}, () => [
|
|
5429
|
-
|
|
5429
|
+
O(A(y(w[C.key], C)), 1)
|
|
5430
5430
|
], !0)
|
|
5431
5431
|
], 2))), 128)),
|
|
5432
|
-
e.actions ? (l(),
|
|
5432
|
+
e.actions ? (l(), s("td", Yn, [
|
|
5433
5433
|
i("div", Jn, [
|
|
5434
5434
|
I(z.$slots, "actions", { row: w }, () => [
|
|
5435
5435
|
L(ue, {
|
|
@@ -5449,7 +5449,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5449
5449
|
onClick: (C) => z.$emit("edit", w)
|
|
5450
5450
|
}, {
|
|
5451
5451
|
default: X(() => [...p[9] || (p[9] = [
|
|
5452
|
-
|
|
5452
|
+
O(" Редактировать ", -1)
|
|
5453
5453
|
])]),
|
|
5454
5454
|
_: 1
|
|
5455
5455
|
}, 8, ["icon", "onClick"]),
|
|
@@ -5460,7 +5460,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5460
5460
|
onClick: (C) => z.$emit("delete", w)
|
|
5461
5461
|
}, {
|
|
5462
5462
|
default: X(() => [...p[10] || (p[10] = [
|
|
5463
|
-
|
|
5463
|
+
O(" Удалить ", -1)
|
|
5464
5464
|
])]),
|
|
5465
5465
|
_: 1
|
|
5466
5466
|
}, 8, ["icon", "onClick"])
|
|
@@ -5476,14 +5476,14 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5476
5476
|
])
|
|
5477
5477
|
], 6));
|
|
5478
5478
|
}
|
|
5479
|
-
},
|
|
5479
|
+
}, eo = /* @__PURE__ */ J(_n, [["__scopeId", "data-v-7f5ca6fa"]]), to = {
|
|
5480
5480
|
"aria-label": "Breadcrumb",
|
|
5481
5481
|
"data-component": "DXBreadcrumb"
|
|
5482
|
-
},
|
|
5482
|
+
}, ao = {
|
|
5483
5483
|
key: 0,
|
|
5484
5484
|
class: "mx-2 text-slate-400",
|
|
5485
5485
|
"aria-hidden": "true"
|
|
5486
|
-
},
|
|
5486
|
+
}, lo = { key: 1 }, no = "inline-flex items-center transition-colors", Ai = {
|
|
5487
5487
|
__name: "DXBreadcrumb",
|
|
5488
5488
|
props: {
|
|
5489
5489
|
/** Элементы: [{ label, href?, to?, icon?, iconAnimation? }] */
|
|
@@ -5502,30 +5502,30 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5502
5502
|
sm: "text-xs",
|
|
5503
5503
|
md: "text-sm",
|
|
5504
5504
|
lg: "text-base"
|
|
5505
|
-
}, n = m(() => t[a.size] || t.md),
|
|
5506
|
-
return (c, b) => (l(),
|
|
5505
|
+
}, n = m(() => t[a.size] || t.md), o = m(() => a.size === "sm" ? "xs" : a.size === "lg" ? "sm" : "xs"), r = (c) => c.to ? "router-link" : c.href ? "a" : "span", d = (c, b) => c.iconAnimation ? c.iconAnimation : a.animateCurrentOnly ? b === a.items.length - 1 ? a.iconAnimation : "none" : a.iconAnimation;
|
|
5506
|
+
return (c, b) => (l(), s("nav", to, [
|
|
5507
5507
|
i("ol", {
|
|
5508
5508
|
class: h(["flex items-center flex-wrap", n.value])
|
|
5509
5509
|
}, [
|
|
5510
|
-
(l(!0),
|
|
5510
|
+
(l(!0), s(j, null, P(e.items, (y, f) => (l(), s("li", {
|
|
5511
5511
|
key: f,
|
|
5512
5512
|
class: "flex items-center"
|
|
5513
5513
|
}, [
|
|
5514
|
-
f > 0 ? (l(),
|
|
5514
|
+
f > 0 ? (l(), s("span", ao, [
|
|
5515
5515
|
I(c.$slots, "separator", {}, () => [
|
|
5516
5516
|
e.separator === "chevron" ? (l(), D(T, {
|
|
5517
5517
|
key: 0,
|
|
5518
|
-
icon: k(
|
|
5519
|
-
size:
|
|
5518
|
+
icon: k(se),
|
|
5519
|
+
size: o.value,
|
|
5520
5520
|
animation: "none"
|
|
5521
|
-
}, null, 8, ["icon", "size"])) : (l(),
|
|
5521
|
+
}, null, 8, ["icon", "size"])) : (l(), s("span", lo, "/"))
|
|
5522
5522
|
])
|
|
5523
5523
|
])) : g("", !0),
|
|
5524
5524
|
(l(), D(q(r(y)), {
|
|
5525
5525
|
href: y.href,
|
|
5526
5526
|
to: y.to,
|
|
5527
5527
|
class: h([
|
|
5528
|
-
|
|
5528
|
+
no,
|
|
5529
5529
|
f === e.items.length - 1 ? "text-slate-900 font-medium" : "text-slate-500 hover:text-slate-700"
|
|
5530
5530
|
]),
|
|
5531
5531
|
"aria-current": f === e.items.length - 1 ? "page" : void 0
|
|
@@ -5534,11 +5534,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5534
5534
|
y.icon ? (l(), D(T, {
|
|
5535
5535
|
key: 0,
|
|
5536
5536
|
icon: y.icon,
|
|
5537
|
-
size:
|
|
5537
|
+
size: o.value,
|
|
5538
5538
|
animation: d(y, f),
|
|
5539
5539
|
class: "mr-1.5"
|
|
5540
5540
|
}, null, 8, ["icon", "size", "animation"])) : g("", !0),
|
|
5541
|
-
|
|
5541
|
+
O(" " + A(y.label), 1)
|
|
5542
5542
|
]),
|
|
5543
5543
|
_: 2
|
|
5544
5544
|
}, 1032, ["href", "to", "class", "aria-current"]))
|
|
@@ -5546,7 +5546,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5546
5546
|
], 2)
|
|
5547
5547
|
]));
|
|
5548
5548
|
}
|
|
5549
|
-
},
|
|
5549
|
+
}, oo = ["data-size", "data-multiple", "data-disabled"], so = {
|
|
5550
5550
|
key: 0,
|
|
5551
5551
|
class: "text-sm font-medium text-slate-700 mb-2"
|
|
5552
5552
|
}, Di = {
|
|
@@ -5565,11 +5565,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5565
5565
|
},
|
|
5566
5566
|
emits: ["update:modelValue"],
|
|
5567
5567
|
setup(e, { emit: a }) {
|
|
5568
|
-
const t = e, n = a,
|
|
5568
|
+
const t = e, n = a, o = {
|
|
5569
5569
|
sm: "h-8",
|
|
5570
5570
|
md: "h-10",
|
|
5571
5571
|
lg: "h-12"
|
|
5572
|
-
}, r = m(() =>
|
|
5572
|
+
}, r = m(() => o[t.size] || o.md), d = (b) => {
|
|
5573
5573
|
if (!t.disabled)
|
|
5574
5574
|
if (t.multiple) {
|
|
5575
5575
|
const y = Array.isArray(t.modelValue) ? t.modelValue : [], f = y.indexOf(b);
|
|
@@ -5588,37 +5588,37 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5588
5588
|
disabled: t.disabled,
|
|
5589
5589
|
handleSelect: d,
|
|
5590
5590
|
isSelected: c
|
|
5591
|
-
}), (b, y) => (l(),
|
|
5591
|
+
}), (b, y) => (l(), s("div", {
|
|
5592
5592
|
class: "inline-flex",
|
|
5593
5593
|
"data-component": "DXButtonGroup",
|
|
5594
5594
|
"data-size": e.size,
|
|
5595
5595
|
"data-multiple": e.multiple,
|
|
5596
5596
|
"data-disabled": e.disabled
|
|
5597
5597
|
}, [
|
|
5598
|
-
e.label ? (l(),
|
|
5598
|
+
e.label ? (l(), s("p", so, A(e.label), 1)) : g("", !0),
|
|
5599
5599
|
i("div", {
|
|
5600
5600
|
class: h(["inline-flex border border-slate-200 rounded-xl overflow-hidden divide-x divide-slate-200", r.value])
|
|
5601
5601
|
}, [
|
|
5602
5602
|
I(b.$slots, "default")
|
|
5603
5603
|
], 2)
|
|
5604
|
-
], 8,
|
|
5604
|
+
], 8, oo));
|
|
5605
5605
|
}
|
|
5606
|
-
},
|
|
5606
|
+
}, ro = {
|
|
5607
5607
|
key: 0,
|
|
5608
5608
|
class: "block text-sm font-medium text-slate-700 mb-1"
|
|
5609
|
-
},
|
|
5609
|
+
}, io = { class: "relative" }, uo = ["placeholder", "disabled", "onKeydown"], co = {
|
|
5610
5610
|
key: 1,
|
|
5611
5611
|
class: "absolute z-20 mt-2 w-full bg-white border border-slate-200 rounded-xl shadow-lg py-2 max-h-48 overflow-y-auto"
|
|
5612
|
-
},
|
|
5612
|
+
}, mo = ["onClick", "onMouseenter"], fo = { class: "flex items-center gap-2" }, bo = {
|
|
5613
5613
|
key: 0,
|
|
5614
5614
|
class: "w-4 h-4 text-slate-900",
|
|
5615
5615
|
fill: "none",
|
|
5616
5616
|
stroke: "currentColor",
|
|
5617
5617
|
viewBox: "0 0 24 24"
|
|
5618
|
-
},
|
|
5618
|
+
}, go = {
|
|
5619
5619
|
key: 0,
|
|
5620
5620
|
class: "px-4 py-2 text-sm text-slate-500"
|
|
5621
|
-
},
|
|
5621
|
+
}, vo = { key: 0 }, ho = { key: 1 }, po = {
|
|
5622
5622
|
key: 2,
|
|
5623
5623
|
class: "mt-1 text-xs text-slate-500"
|
|
5624
5624
|
}, Vi = {
|
|
@@ -5635,7 +5635,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5635
5635
|
},
|
|
5636
5636
|
emits: ["update:modelValue"],
|
|
5637
5637
|
setup(e, { emit: a }) {
|
|
5638
|
-
const t = e, n = a,
|
|
5638
|
+
const t = e, n = a, o = M(null), r = M(null), d = M(""), c = M(!1), b = M(0), y = m(() => t.options.find(($) => $.value === t.modelValue)), f = m(() => {
|
|
5639
5639
|
if (!t.filterable || !d.value)
|
|
5640
5640
|
return t.options;
|
|
5641
5641
|
const $ = d.value.toLowerCase();
|
|
@@ -5661,19 +5661,19 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5661
5661
|
$ && x($);
|
|
5662
5662
|
} else t.allowCustom && d.value && (n("update:modelValue", d.value), c.value = !1);
|
|
5663
5663
|
}, C = ($) => {
|
|
5664
|
-
|
|
5664
|
+
o.value && !o.value.contains($.target) && (c.value = !1, !t.allowCustom && y.value && (d.value = y.value.label));
|
|
5665
5665
|
};
|
|
5666
5666
|
return Y(() => t.modelValue, ($) => {
|
|
5667
5667
|
const S = t.options.find((V) => V.value === $);
|
|
5668
5668
|
d.value = S ? S.label : t.allowCustom ? String($ || "") : "";
|
|
5669
|
-
}, { immediate: !0 }), _(() => document.addEventListener("click", C)), fe(() => document.removeEventListener("click", C)), ($, S) => (l(),
|
|
5669
|
+
}, { immediate: !0 }), _(() => document.addEventListener("click", C)), fe(() => document.removeEventListener("click", C)), ($, S) => (l(), s("div", {
|
|
5670
5670
|
class: "relative",
|
|
5671
5671
|
ref_key: "root",
|
|
5672
|
-
ref:
|
|
5672
|
+
ref: o,
|
|
5673
5673
|
"data-component": "DXComboBox"
|
|
5674
5674
|
}, [
|
|
5675
|
-
e.label ? (l(),
|
|
5676
|
-
i("div",
|
|
5675
|
+
e.label ? (l(), s("label", ro, A(e.label), 1)) : g("", !0),
|
|
5676
|
+
i("div", io, [
|
|
5677
5677
|
le(i("input", {
|
|
5678
5678
|
ref_key: "inputRef",
|
|
5679
5679
|
ref: r,
|
|
@@ -5690,10 +5690,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5690
5690
|
K(R(w, ["prevent"]), ["enter"]),
|
|
5691
5691
|
S[1] || (S[1] = K((V) => c.value = !1, ["escape"]))
|
|
5692
5692
|
]
|
|
5693
|
-
}, null, 42,
|
|
5693
|
+
}, null, 42, uo), [
|
|
5694
5694
|
[he, d.value]
|
|
5695
5695
|
]),
|
|
5696
|
-
(l(),
|
|
5696
|
+
(l(), s("svg", {
|
|
5697
5697
|
class: h(["absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none transition-transform", { "rotate-180": c.value }]),
|
|
5698
5698
|
fill: "none",
|
|
5699
5699
|
stroke: "currentColor",
|
|
@@ -5707,22 +5707,22 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5707
5707
|
}, null, -1)
|
|
5708
5708
|
])], 2))
|
|
5709
5709
|
]),
|
|
5710
|
-
c.value && (f.value.length > 0 || e.allowCustom && d.value) ? (l(),
|
|
5711
|
-
(l(!0),
|
|
5710
|
+
c.value && (f.value.length > 0 || e.allowCustom && d.value) ? (l(), s("div", co, [
|
|
5711
|
+
(l(!0), s(j, null, P(f.value, (V, B) => (l(), s("button", {
|
|
5712
5712
|
key: V.value,
|
|
5713
5713
|
type: "button",
|
|
5714
5714
|
class: h(["w-full text-left px-4 py-2 text-sm hover:bg-slate-50 flex items-center justify-between", { "bg-slate-100": B === b.value }]),
|
|
5715
|
-
onClick: (
|
|
5716
|
-
onMouseenter: (
|
|
5715
|
+
onClick: (F) => x(V),
|
|
5716
|
+
onMouseenter: (F) => b.value = B
|
|
5717
5717
|
}, [
|
|
5718
|
-
i("span",
|
|
5718
|
+
i("span", fo, [
|
|
5719
5719
|
V.icon ? (l(), D(q(V.icon), {
|
|
5720
5720
|
key: 0,
|
|
5721
5721
|
class: "w-4 h-4 text-slate-500"
|
|
5722
5722
|
})) : g("", !0),
|
|
5723
|
-
|
|
5723
|
+
O(" " + A(V.label), 1)
|
|
5724
5724
|
]),
|
|
5725
|
-
e.modelValue === V.value ? (l(),
|
|
5725
|
+
e.modelValue === V.value ? (l(), s("svg", bo, [...S[3] || (S[3] = [
|
|
5726
5726
|
i("path", {
|
|
5727
5727
|
"stroke-linecap": "round",
|
|
5728
5728
|
"stroke-linejoin": "round",
|
|
@@ -5730,21 +5730,21 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5730
5730
|
d: "M5 13l4 4L19 7"
|
|
5731
5731
|
}, null, -1)
|
|
5732
5732
|
])])) : g("", !0)
|
|
5733
|
-
], 42,
|
|
5734
|
-
f.value.length === 0 && d.value ? (l(),
|
|
5735
|
-
e.allowCustom ? (l(),
|
|
5733
|
+
], 42, mo))), 128)),
|
|
5734
|
+
f.value.length === 0 && d.value ? (l(), s("div", go, [
|
|
5735
|
+
e.allowCustom ? (l(), s("span", vo, 'Нажмите Enter для "' + A(d.value) + '"', 1)) : (l(), s("span", ho, "Не найдено"))
|
|
5736
5736
|
])) : g("", !0)
|
|
5737
5737
|
])) : g("", !0),
|
|
5738
|
-
e.helper ? (l(),
|
|
5738
|
+
e.helper ? (l(), s("p", po, A(e.helper), 1)) : g("", !0)
|
|
5739
5739
|
], 512));
|
|
5740
5740
|
}
|
|
5741
|
-
},
|
|
5741
|
+
}, xo = {
|
|
5742
5742
|
class: "space-y-1",
|
|
5743
5743
|
"data-component": "DXCopyField"
|
|
5744
|
-
},
|
|
5744
|
+
}, yo = {
|
|
5745
5745
|
key: 0,
|
|
5746
5746
|
class: "text-[11px] uppercase tracking-wide text-slate-500 font-semibold"
|
|
5747
|
-
},
|
|
5747
|
+
}, wo = { class: "flex items-center justify-between gap-2 rounded-lg border border-slate-200 bg-white px-3 py-3" }, ko = { class: "text-base font-semibold text-slate-900 break-all flex-1 text-center" }, Co = ["aria-label"], Bi = {
|
|
5748
5748
|
__name: "DXCopyField",
|
|
5749
5749
|
props: {
|
|
5750
5750
|
/** Лейбл */
|
|
@@ -5752,9 +5752,9 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5752
5752
|
/** Значение для копирования */
|
|
5753
5753
|
value: { type: String, default: "" },
|
|
5754
5754
|
/** Иконка для копирования */
|
|
5755
|
-
copyIcon: { type: Object, default: () =>
|
|
5755
|
+
copyIcon: { type: [Object, Function], default: () => Fa },
|
|
5756
5756
|
/** Иконка успешного копирования */
|
|
5757
|
-
successIcon: { type: Object, default: () => ja },
|
|
5757
|
+
successIcon: { type: [Object, Function], default: () => ja },
|
|
5758
5758
|
/** Анимация иконки копирования: none | wiggle | scale | rotate */
|
|
5759
5759
|
copyIconAnimation: { type: String, default: "scale" },
|
|
5760
5760
|
/** Анимация иконки успеха: none | wiggle | scale | rotate */
|
|
@@ -5764,27 +5764,27 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5764
5764
|
},
|
|
5765
5765
|
emits: ["copied"],
|
|
5766
5766
|
setup(e, { emit: a }) {
|
|
5767
|
-
const t = e, n = a,
|
|
5767
|
+
const t = e, n = a, o = M(!1), r = async () => {
|
|
5768
5768
|
if (t.value)
|
|
5769
5769
|
try {
|
|
5770
|
-
await navigator.clipboard.writeText(t.value),
|
|
5771
|
-
|
|
5770
|
+
await navigator.clipboard.writeText(t.value), o.value = !0, n("copied", t.value), setTimeout(() => {
|
|
5771
|
+
o.value = !1;
|
|
5772
5772
|
}, t.successDuration);
|
|
5773
5773
|
} catch (d) {
|
|
5774
5774
|
console.error("Не удалось скопировать", d);
|
|
5775
5775
|
}
|
|
5776
5776
|
};
|
|
5777
|
-
return (d, c) => (l(),
|
|
5778
|
-
e.label ? (l(),
|
|
5779
|
-
i("div",
|
|
5780
|
-
i("p",
|
|
5777
|
+
return (d, c) => (l(), s("div", xo, [
|
|
5778
|
+
e.label ? (l(), s("p", yo, A(e.label), 1)) : g("", !0),
|
|
5779
|
+
i("div", wo, [
|
|
5780
|
+
i("p", ko, A(e.value || "—"), 1),
|
|
5781
5781
|
i("button", {
|
|
5782
5782
|
type: "button",
|
|
5783
|
-
class: h(["h-9 w-9 inline-flex items-center justify-center rounded-xl border border-slate-200 text-slate-700 hover:border-slate-300 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2", { "border-emerald-300 bg-emerald-50":
|
|
5783
|
+
class: h(["h-9 w-9 inline-flex items-center justify-center rounded-xl border border-slate-200 text-slate-700 hover:border-slate-300 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2", { "border-emerald-300 bg-emerald-50": o.value }]),
|
|
5784
5784
|
"aria-label": `Скопировать ${e.label || "значение"}`,
|
|
5785
5785
|
onClick: r
|
|
5786
5786
|
}, [
|
|
5787
|
-
|
|
5787
|
+
o.value ? (l(), D(T, {
|
|
5788
5788
|
key: 0,
|
|
5789
5789
|
icon: k(Xa),
|
|
5790
5790
|
size: "sm",
|
|
@@ -5796,20 +5796,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5796
5796
|
size: "sm",
|
|
5797
5797
|
animation: e.copyIconAnimation
|
|
5798
5798
|
}, null, 8, ["icon", "animation"]))
|
|
5799
|
-
], 10,
|
|
5799
|
+
], 10, Co)
|
|
5800
5800
|
])
|
|
5801
5801
|
]));
|
|
5802
5802
|
}
|
|
5803
|
-
},
|
|
5803
|
+
}, So = {
|
|
5804
5804
|
class: "w-full",
|
|
5805
5805
|
"data-component": "DXDatePicker"
|
|
5806
|
-
},
|
|
5806
|
+
}, $o = {
|
|
5807
5807
|
key: 0,
|
|
5808
5808
|
class: "block text-sm text-slate-600 mb-1 font-medium"
|
|
5809
|
-
},
|
|
5809
|
+
}, zo = { class: "relative" }, Ao = ["type", "value", "placeholder", "disabled", "readonly"], Do = {
|
|
5810
5810
|
key: 1,
|
|
5811
5811
|
class: "absolute z-20 mt-2 p-4 bg-white border border-slate-200 rounded-xl shadow-lg"
|
|
5812
|
-
},
|
|
5812
|
+
}, Vo = { class: "space-y-3" }, Bo = { class: "flex gap-2" }, Io = {
|
|
5813
5813
|
key: 2,
|
|
5814
5814
|
class: "mt-1 text-xs text-slate-500"
|
|
5815
5815
|
}, Ii = {
|
|
@@ -5830,20 +5830,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5830
5830
|
},
|
|
5831
5831
|
emits: ["update:modelValue"],
|
|
5832
5832
|
setup(e, { emit: a }) {
|
|
5833
|
-
const t = e, n = a,
|
|
5833
|
+
const t = e, n = a, o = M(!1), r = M(""), d = M(""), c = m(() => {
|
|
5834
5834
|
if (t.range && typeof t.modelValue == "object" && t.modelValue) {
|
|
5835
5835
|
const { start: v, end: x } = t.modelValue;
|
|
5836
5836
|
return v && x ? `${b(v)} - ${b(x)}` : "";
|
|
5837
5837
|
}
|
|
5838
5838
|
return t.modelValue || "";
|
|
5839
5839
|
}), b = (v) => v ? new Date(v).toLocaleDateString("ru-RU") : "", y = (v) => n("update:modelValue", v), f = () => {
|
|
5840
|
-
t.disabled || (
|
|
5840
|
+
t.disabled || (o.value = !o.value, o.value && typeof t.modelValue == "object" && t.modelValue && (r.value = t.modelValue.start || "", d.value = t.modelValue.end || ""));
|
|
5841
5841
|
}, u = () => {
|
|
5842
|
-
r.value && d.value && n("update:modelValue", { start: r.value, end: d.value }),
|
|
5842
|
+
r.value && d.value && n("update:modelValue", { start: r.value, end: d.value }), o.value = !1;
|
|
5843
5843
|
};
|
|
5844
|
-
return (v, x) => (l(),
|
|
5845
|
-
e.label ? (l(),
|
|
5846
|
-
i("div",
|
|
5844
|
+
return (v, x) => (l(), s("div", So, [
|
|
5845
|
+
e.label ? (l(), s("label", $o, A(e.label), 1)) : g("", !0),
|
|
5846
|
+
i("div", zo, [
|
|
5847
5847
|
i("input", {
|
|
5848
5848
|
type: e.range ? "text" : "date",
|
|
5849
5849
|
value: c.value,
|
|
@@ -5853,7 +5853,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5853
5853
|
readonly: e.range,
|
|
5854
5854
|
onChange: x[0] || (x[0] = (z) => !e.range && y(z.target.value)),
|
|
5855
5855
|
onClick: x[1] || (x[1] = (z) => e.range && f())
|
|
5856
|
-
}, null, 40,
|
|
5856
|
+
}, null, 40, Ao),
|
|
5857
5857
|
x[5] || (x[5] = i("svg", {
|
|
5858
5858
|
class: "absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none",
|
|
5859
5859
|
fill: "none",
|
|
@@ -5868,8 +5868,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5868
5868
|
})
|
|
5869
5869
|
], -1))
|
|
5870
5870
|
]),
|
|
5871
|
-
e.range &&
|
|
5872
|
-
i("div",
|
|
5871
|
+
e.range && o.value ? (l(), s("div", Do, [
|
|
5872
|
+
i("div", Vo, [
|
|
5873
5873
|
i("div", null, [
|
|
5874
5874
|
x[6] || (x[6] = i("label", { class: "text-xs text-slate-600" }, "От", -1)),
|
|
5875
5875
|
le(i("input", {
|
|
@@ -5890,7 +5890,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5890
5890
|
[he, d.value]
|
|
5891
5891
|
])
|
|
5892
5892
|
]),
|
|
5893
|
-
i("div",
|
|
5893
|
+
i("div", Bo, [
|
|
5894
5894
|
i("button", {
|
|
5895
5895
|
type: "button",
|
|
5896
5896
|
class: "flex-1 px-3 py-2 text-sm bg-slate-900 text-white rounded-lg hover:bg-slate-800",
|
|
@@ -5899,33 +5899,33 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5899
5899
|
i("button", {
|
|
5900
5900
|
type: "button",
|
|
5901
5901
|
class: "px-3 py-2 text-sm border border-slate-200 rounded-lg hover:bg-slate-50",
|
|
5902
|
-
onClick: x[4] || (x[4] = (z) =>
|
|
5902
|
+
onClick: x[4] || (x[4] = (z) => o.value = !1)
|
|
5903
5903
|
}, " Отмена ")
|
|
5904
5904
|
])
|
|
5905
5905
|
])
|
|
5906
5906
|
])) : g("", !0),
|
|
5907
|
-
e.helper ? (l(),
|
|
5907
|
+
e.helper ? (l(), s("p", Io, A(e.helper), 1)) : g("", !0)
|
|
5908
5908
|
]));
|
|
5909
5909
|
}
|
|
5910
|
-
},
|
|
5910
|
+
}, Lo = {
|
|
5911
5911
|
class: "w-full",
|
|
5912
5912
|
"data-component": "DXFileUpload"
|
|
5913
|
-
},
|
|
5913
|
+
}, To = {
|
|
5914
5914
|
key: 0,
|
|
5915
5915
|
class: "block text-sm font-medium text-slate-700 mb-1"
|
|
5916
|
-
},
|
|
5916
|
+
}, Xo = ["accept", "multiple", "disabled"], Mo = {
|
|
5917
5917
|
key: 0,
|
|
5918
5918
|
class: "text-center"
|
|
5919
|
-
},
|
|
5919
|
+
}, jo = { class: "text-sm font-medium text-slate-700 mb-1" }, Fo = ["disabled"], Oo = { class: "text-xs text-slate-500" }, Eo = {
|
|
5920
5920
|
key: 1,
|
|
5921
5921
|
class: "space-y-2"
|
|
5922
|
-
},
|
|
5922
|
+
}, Po = {
|
|
5923
5923
|
key: 0,
|
|
5924
5924
|
class: "w-12 h-12 flex-shrink-0 rounded overflow-hidden bg-slate-200"
|
|
5925
|
-
},
|
|
5925
|
+
}, No = ["src", "alt"], Ro = { class: "flex-1 min-w-0" }, qo = { class: "text-sm font-medium text-slate-900 truncate" }, Ho = { class: "text-xs text-slate-500" }, Zo = ["onClick"], Uo = ["disabled"], Ko = {
|
|
5926
5926
|
key: 1,
|
|
5927
5927
|
class: "mt-1 text-xs text-slate-500"
|
|
5928
|
-
},
|
|
5928
|
+
}, Go = {
|
|
5929
5929
|
key: 2,
|
|
5930
5930
|
class: "mt-1 text-xs text-rose-500"
|
|
5931
5931
|
}, Li = {
|
|
@@ -5941,7 +5941,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5941
5941
|
},
|
|
5942
5942
|
emits: ["update:modelValue", "upload"],
|
|
5943
5943
|
setup(e, { emit: a }) {
|
|
5944
|
-
const t = e, n = a,
|
|
5944
|
+
const t = e, n = a, o = M(null), r = M(null), d = M(!1), c = M([]), b = M(""), y = (w) => {
|
|
5945
5945
|
const C = Array.from(w.target.files || []);
|
|
5946
5946
|
x(C);
|
|
5947
5947
|
}, f = (w) => {
|
|
@@ -5973,8 +5973,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5973
5973
|
};
|
|
5974
5974
|
return Y(() => t.modelValue, (w) => {
|
|
5975
5975
|
w || (c.value = []);
|
|
5976
|
-
}), (w, C) => (l(),
|
|
5977
|
-
e.label ? (l(),
|
|
5976
|
+
}), (w, C) => (l(), s("div", Lo, [
|
|
5977
|
+
e.label ? (l(), s("label", To, A(e.label), 1)) : g("", !0),
|
|
5978
5978
|
i("div", {
|
|
5979
5979
|
ref_key: "dropZone",
|
|
5980
5980
|
ref: r,
|
|
@@ -5990,37 +5990,37 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
5990
5990
|
}, [
|
|
5991
5991
|
i("input", {
|
|
5992
5992
|
ref_key: "fileInput",
|
|
5993
|
-
ref:
|
|
5993
|
+
ref: o,
|
|
5994
5994
|
type: "file",
|
|
5995
5995
|
accept: e.accept,
|
|
5996
5996
|
multiple: e.multiple,
|
|
5997
5997
|
disabled: e.disabled,
|
|
5998
5998
|
class: "hidden",
|
|
5999
5999
|
onChange: y
|
|
6000
|
-
}, null, 40,
|
|
6001
|
-
c.value.length ? (l(),
|
|
6002
|
-
(l(!0),
|
|
6000
|
+
}, null, 40, Xo),
|
|
6001
|
+
c.value.length ? (l(), s("div", Eo, [
|
|
6002
|
+
(l(!0), s(j, null, P(c.value, ($, S) => {
|
|
6003
6003
|
var V;
|
|
6004
|
-
return l(),
|
|
6004
|
+
return l(), s("div", {
|
|
6005
6005
|
key: S,
|
|
6006
6006
|
class: "flex items-center gap-3 p-3 bg-slate-50 rounded-lg"
|
|
6007
6007
|
}, [
|
|
6008
|
-
(V = $.type) != null && V.startsWith("image/") ? (l(),
|
|
6008
|
+
(V = $.type) != null && V.startsWith("image/") ? (l(), s("div", Po, [
|
|
6009
6009
|
i("img", {
|
|
6010
6010
|
src: $.preview,
|
|
6011
6011
|
alt: $.name,
|
|
6012
6012
|
class: "w-full h-full object-cover"
|
|
6013
|
-
}, null, 8,
|
|
6013
|
+
}, null, 8, No)
|
|
6014
6014
|
])) : (l(), D(T, {
|
|
6015
6015
|
key: 1,
|
|
6016
|
-
icon: k(
|
|
6016
|
+
icon: k(Ea),
|
|
6017
6017
|
size: "lg",
|
|
6018
6018
|
animation: "none",
|
|
6019
6019
|
class: "text-slate-400 flex-shrink-0"
|
|
6020
6020
|
}, null, 8, ["icon"])),
|
|
6021
|
-
i("div",
|
|
6022
|
-
i("p",
|
|
6023
|
-
i("p",
|
|
6021
|
+
i("div", Ro, [
|
|
6022
|
+
i("p", qo, A($.name), 1),
|
|
6023
|
+
i("p", Ho, A(p($.size)), 1)
|
|
6024
6024
|
]),
|
|
6025
6025
|
i("button", {
|
|
6026
6026
|
type: "button",
|
|
@@ -6033,17 +6033,17 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6033
6033
|
size: "md",
|
|
6034
6034
|
animation: "scale"
|
|
6035
6035
|
}, null, 8, ["icon"])
|
|
6036
|
-
], 8,
|
|
6036
|
+
], 8, Zo)
|
|
6037
6037
|
]);
|
|
6038
6038
|
}), 128)),
|
|
6039
|
-
e.multiple ? (l(),
|
|
6039
|
+
e.multiple ? (l(), s("button", {
|
|
6040
6040
|
key: 0,
|
|
6041
6041
|
type: "button",
|
|
6042
6042
|
class: "w-full py-2 text-sm text-slate-600 hover:text-slate-900 border border-slate-200 rounded-lg hover:bg-slate-50",
|
|
6043
6043
|
disabled: e.disabled,
|
|
6044
6044
|
onClick: C[1] || (C[1] = ($) => {
|
|
6045
6045
|
var S;
|
|
6046
|
-
return (S =
|
|
6046
|
+
return (S = o.value) == null ? void 0 : S.click();
|
|
6047
6047
|
})
|
|
6048
6048
|
}, [
|
|
6049
6049
|
L(T, {
|
|
@@ -6052,38 +6052,38 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6052
6052
|
animation: "none",
|
|
6053
6053
|
class: "inline mr-1"
|
|
6054
6054
|
}, null, 8, ["icon"]),
|
|
6055
|
-
C[4] || (C[4] =
|
|
6056
|
-
], 8,
|
|
6057
|
-
])) : (l(),
|
|
6055
|
+
C[4] || (C[4] = O(" Добавить ещё ", -1))
|
|
6056
|
+
], 8, Uo)) : g("", !0)
|
|
6057
|
+
])) : (l(), s("div", Mo, [
|
|
6058
6058
|
L(T, {
|
|
6059
|
-
icon: k(
|
|
6059
|
+
icon: k(Oa),
|
|
6060
6060
|
size: "xl",
|
|
6061
6061
|
animation: "none",
|
|
6062
6062
|
class: "mx-auto text-slate-400 mb-3 w-12 h-12"
|
|
6063
6063
|
}, null, 8, ["icon"]),
|
|
6064
|
-
i("p",
|
|
6065
|
-
C[3] || (C[3] =
|
|
6064
|
+
i("p", jo, [
|
|
6065
|
+
C[3] || (C[3] = O(" Перетащите файлы сюда или ", -1)),
|
|
6066
6066
|
i("button", {
|
|
6067
6067
|
type: "button",
|
|
6068
6068
|
class: "text-slate-900 underline hover:no-underline",
|
|
6069
6069
|
disabled: e.disabled,
|
|
6070
6070
|
onClick: C[0] || (C[0] = ($) => {
|
|
6071
6071
|
var S;
|
|
6072
|
-
return (S =
|
|
6072
|
+
return (S = o.value) == null ? void 0 : S.click();
|
|
6073
6073
|
})
|
|
6074
|
-
}, " выберите ", 8,
|
|
6074
|
+
}, " выберите ", 8, Fo)
|
|
6075
6075
|
]),
|
|
6076
|
-
i("p",
|
|
6076
|
+
i("p", Oo, A(e.accept || "Любые файлы") + " " + A(e.maxSize ? `• Макс. ${e.maxSize}` : ""), 1)
|
|
6077
6077
|
]))
|
|
6078
6078
|
], 34),
|
|
6079
|
-
e.helper ? (l(),
|
|
6080
|
-
b.value ? (l(),
|
|
6079
|
+
e.helper ? (l(), s("p", Ko, A(e.helper), 1)) : g("", !0),
|
|
6080
|
+
b.value ? (l(), s("p", Go, A(b.value), 1)) : g("", !0)
|
|
6081
6081
|
]));
|
|
6082
6082
|
}
|
|
6083
|
-
},
|
|
6083
|
+
}, Wo = {
|
|
6084
6084
|
class: "space-y-2",
|
|
6085
6085
|
"data-component": "DXFilterGroup"
|
|
6086
|
-
},
|
|
6086
|
+
}, Qo = { class: "text-xs font-semibold text-slate-500 uppercase tracking-wide" }, Yo = { class: "flex flex-wrap gap-2" }, Jo = ["onClick"], Ti = {
|
|
6087
6087
|
__name: "DXFilterGroup",
|
|
6088
6088
|
props: {
|
|
6089
6089
|
/** Лейбл группы */
|
|
@@ -6097,16 +6097,16 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6097
6097
|
},
|
|
6098
6098
|
emits: ["update:modelValue"],
|
|
6099
6099
|
setup(e) {
|
|
6100
|
-
return (a, t) => (l(),
|
|
6101
|
-
i("p",
|
|
6102
|
-
i("div",
|
|
6103
|
-
(l(!0),
|
|
6100
|
+
return (a, t) => (l(), s("div", Wo, [
|
|
6101
|
+
i("p", Qo, A(e.label), 1),
|
|
6102
|
+
i("div", Yo, [
|
|
6103
|
+
(l(!0), s(j, null, P(e.options, (n) => (l(), s("button", {
|
|
6104
6104
|
key: n.value,
|
|
6105
6105
|
type: "button",
|
|
6106
6106
|
class: h(["px-3 py-2 rounded-full text-xs font-semibold border transition", e.modelValue === n.value ? "bg-slate-800 text-white border-slate-800" : "border-slate-200 text-slate-700 hover:border-slate-300 bg-white"]),
|
|
6107
|
-
onClick: (
|
|
6108
|
-
}, A(n.label), 11,
|
|
6109
|
-
e.modelValue && e.clearable ? (l(),
|
|
6107
|
+
onClick: (o) => a.$emit("update:modelValue", n.value)
|
|
6108
|
+
}, A(n.label), 11, Jo))), 128)),
|
|
6109
|
+
e.modelValue && e.clearable ? (l(), s("button", {
|
|
6110
6110
|
key: 0,
|
|
6111
6111
|
type: "button",
|
|
6112
6112
|
class: "px-3 py-2 rounded-full text-xs font-semibold border border-amber-300 text-amber-700 bg-amber-50 hover:bg-amber-100 transition",
|
|
@@ -6141,10 +6141,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6141
6141
|
icon: Xe,
|
|
6142
6142
|
color: "text-blue-500"
|
|
6143
6143
|
}
|
|
6144
|
-
}, n = m(() => t[a.state] || t.info),
|
|
6145
|
-
return (d, c) =>
|
|
6144
|
+
}, n = m(() => t[a.state] || t.info), o = m(() => n.value.icon), r = m(() => n.value.color);
|
|
6145
|
+
return (d, c) => o.value ? (l(), D(T, {
|
|
6146
6146
|
key: 0,
|
|
6147
|
-
icon:
|
|
6147
|
+
icon: o.value,
|
|
6148
6148
|
size: e.size,
|
|
6149
6149
|
animation: "scale",
|
|
6150
6150
|
class: h(r.value),
|
|
@@ -6152,28 +6152,28 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6152
6152
|
"data-state": e.state
|
|
6153
6153
|
}, null, 8, ["icon", "size", "class", "data-state"])) : g("", !0);
|
|
6154
6154
|
}
|
|
6155
|
-
},
|
|
6155
|
+
}, _o = {
|
|
6156
6156
|
class: "w-full",
|
|
6157
6157
|
"data-component": "DXFormControl"
|
|
6158
|
-
},
|
|
6158
|
+
}, es = { class: "flex items-center justify-between mb-1" }, ts = {
|
|
6159
6159
|
key: 0,
|
|
6160
6160
|
class: "text-sm font-medium text-slate-700"
|
|
6161
|
-
},
|
|
6161
|
+
}, as = {
|
|
6162
6162
|
key: 0,
|
|
6163
6163
|
class: "text-rose-500"
|
|
6164
|
-
},
|
|
6164
|
+
}, ls = {
|
|
6165
6165
|
key: 1,
|
|
6166
6166
|
class: "text-xs text-slate-500"
|
|
6167
|
-
},
|
|
6167
|
+
}, ns = { class: "relative" }, os = {
|
|
6168
6168
|
key: 0,
|
|
6169
6169
|
class: "absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"
|
|
6170
|
-
},
|
|
6170
|
+
}, ss = {
|
|
6171
6171
|
key: 1,
|
|
6172
6172
|
class: "absolute right-3 top-1/2 -translate-y-1/2"
|
|
6173
|
-
},
|
|
6173
|
+
}, rs = {
|
|
6174
6174
|
key: 0,
|
|
6175
6175
|
class: "mt-1 text-xs text-rose-500 flex items-center gap-1"
|
|
6176
|
-
},
|
|
6176
|
+
}, is = {
|
|
6177
6177
|
key: 1,
|
|
6178
6178
|
class: "mt-1 text-xs text-slate-500"
|
|
6179
6179
|
}, Xi = {
|
|
@@ -6190,7 +6190,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6190
6190
|
/** Состояние валидации: success | error | '' */
|
|
6191
6191
|
validationState: { type: String, default: "" },
|
|
6192
6192
|
/** Иконка-префикс */
|
|
6193
|
-
prefixIcon: { type: Object, default: null },
|
|
6193
|
+
prefixIcon: { type: [Object, Function], default: null },
|
|
6194
6194
|
/** Максимальная длина */
|
|
6195
6195
|
maxLength: { type: Number, default: 0 },
|
|
6196
6196
|
/** Текущая длина */
|
|
@@ -6200,16 +6200,16 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6200
6200
|
},
|
|
6201
6201
|
setup(e) {
|
|
6202
6202
|
const a = e, t = m(() => a.validationState === "success" || a.validationState === "error");
|
|
6203
|
-
return (n,
|
|
6204
|
-
i("div",
|
|
6205
|
-
e.label ? (l(),
|
|
6206
|
-
|
|
6207
|
-
e.required ? (l(),
|
|
6203
|
+
return (n, o) => (l(), s("div", _o, [
|
|
6204
|
+
i("div", es, [
|
|
6205
|
+
e.label ? (l(), s("label", ts, [
|
|
6206
|
+
O(A(e.label) + " ", 1),
|
|
6207
|
+
e.required ? (l(), s("span", as, "*")) : g("", !0)
|
|
6208
6208
|
])) : g("", !0),
|
|
6209
|
-
e.maxLength && e.showCount ? (l(),
|
|
6209
|
+
e.maxLength && e.showCount ? (l(), s("span", ls, A(e.currentLength) + " / " + A(e.maxLength), 1)) : g("", !0)
|
|
6210
6210
|
]),
|
|
6211
|
-
i("div",
|
|
6212
|
-
n.$slots.prefix || e.prefixIcon ? (l(),
|
|
6211
|
+
i("div", ns, [
|
|
6212
|
+
n.$slots.prefix || e.prefixIcon ? (l(), s("div", os, [
|
|
6213
6213
|
e.prefixIcon ? (l(), D(T, {
|
|
6214
6214
|
key: 0,
|
|
6215
6215
|
icon: e.prefixIcon,
|
|
@@ -6223,29 +6223,29 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6223
6223
|
}, [
|
|
6224
6224
|
I(n.$slots, "default")
|
|
6225
6225
|
], 2),
|
|
6226
|
-
t.value ? (l(),
|
|
6226
|
+
t.value ? (l(), s("div", ss, [
|
|
6227
6227
|
L(Ue, {
|
|
6228
6228
|
state: e.validationState,
|
|
6229
6229
|
size: "md"
|
|
6230
6230
|
}, null, 8, ["state"])
|
|
6231
6231
|
])) : g("", !0)
|
|
6232
6232
|
]),
|
|
6233
|
-
e.error ? (l(),
|
|
6233
|
+
e.error ? (l(), s("p", rs, [
|
|
6234
6234
|
L(Ue, {
|
|
6235
6235
|
state: "error",
|
|
6236
6236
|
size: "xs"
|
|
6237
6237
|
}),
|
|
6238
|
-
|
|
6239
|
-
])) : e.helper ? (l(),
|
|
6238
|
+
O(" " + A(e.error), 1)
|
|
6239
|
+
])) : e.helper ? (l(), s("p", is, A(e.helper), 1)) : g("", !0)
|
|
6240
6240
|
]));
|
|
6241
6241
|
}
|
|
6242
|
-
},
|
|
6242
|
+
}, ds = {
|
|
6243
6243
|
class: "w-full",
|
|
6244
6244
|
"data-component": "DXInputGroup"
|
|
6245
|
-
},
|
|
6245
|
+
}, us = {
|
|
6246
6246
|
key: 0,
|
|
6247
6247
|
class: "block text-sm font-medium text-slate-700 mb-1"
|
|
6248
|
-
},
|
|
6248
|
+
}, cs = { class: "flex" }, ms = {
|
|
6249
6249
|
key: 1,
|
|
6250
6250
|
class: "mt-1 text-xs text-slate-500"
|
|
6251
6251
|
}, Mi = {
|
|
@@ -6260,7 +6260,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6260
6260
|
setup(e) {
|
|
6261
6261
|
const a = e, t = M([]);
|
|
6262
6262
|
let n = 0;
|
|
6263
|
-
const
|
|
6263
|
+
const o = (c, b) => {
|
|
6264
6264
|
if (!t.value.find((y) => y.id === b)) {
|
|
6265
6265
|
const y = n++;
|
|
6266
6266
|
t.value.push({ type: c, id: b, order: y }), t.value.sort((f, u) => f.order - u.order);
|
|
@@ -6281,24 +6281,24 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6281
6281
|
size: a.size,
|
|
6282
6282
|
disabled: a.disabled,
|
|
6283
6283
|
error: a.error,
|
|
6284
|
-
registerComponent:
|
|
6284
|
+
registerComponent: o,
|
|
6285
6285
|
unregisterComponent: r,
|
|
6286
6286
|
getComponentPosition: d
|
|
6287
|
-
}), (c, b) => (l(),
|
|
6288
|
-
e.label ? (l(),
|
|
6289
|
-
i("div",
|
|
6287
|
+
}), (c, b) => (l(), s("div", ds, [
|
|
6288
|
+
e.label ? (l(), s("label", us, A(e.label), 1)) : g("", !0),
|
|
6289
|
+
i("div", cs, [
|
|
6290
6290
|
I(c.$slots, "default")
|
|
6291
6291
|
]),
|
|
6292
|
-
e.helper ? (l(),
|
|
6292
|
+
e.helper ? (l(), s("p", ms, A(e.helper), 1)) : g("", !0)
|
|
6293
6293
|
]));
|
|
6294
6294
|
}
|
|
6295
|
-
},
|
|
6295
|
+
}, fs = {
|
|
6296
6296
|
class: "w-full",
|
|
6297
6297
|
"data-component": "DXInputMask"
|
|
6298
|
-
},
|
|
6298
|
+
}, bs = {
|
|
6299
6299
|
key: 0,
|
|
6300
6300
|
class: "block text-sm text-slate-600 mb-1 font-medium"
|
|
6301
|
-
},
|
|
6301
|
+
}, gs = ["type", "placeholder", "value", "disabled"], vs = {
|
|
6302
6302
|
key: 1,
|
|
6303
6303
|
class: "mt-1 text-xs text-slate-500"
|
|
6304
6304
|
}, ji = {
|
|
@@ -6321,7 +6321,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6321
6321
|
},
|
|
6322
6322
|
emits: ["update:modelValue"],
|
|
6323
6323
|
setup(e, { emit: a }) {
|
|
6324
|
-
const t = e, n = a,
|
|
6324
|
+
const t = e, n = a, o = M(null), r = M(""), d = (f) => {
|
|
6325
6325
|
const u = f.replace(/\D/g, "");
|
|
6326
6326
|
let v = "", x = 0;
|
|
6327
6327
|
for (let z = 0; z < t.mask.length && x < u.length; z++)
|
|
@@ -6330,9 +6330,9 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6330
6330
|
}, c = (f) => f.replace(/\D/g, ""), b = (f) => {
|
|
6331
6331
|
const u = c(f.target.value), v = d(u);
|
|
6332
6332
|
r.value = v, n("update:modelValue", u), setTimeout(() => {
|
|
6333
|
-
if (
|
|
6333
|
+
if (o.value) {
|
|
6334
6334
|
const x = v.length;
|
|
6335
|
-
|
|
6335
|
+
o.value.setSelectionRange(x, x);
|
|
6336
6336
|
}
|
|
6337
6337
|
}, 0);
|
|
6338
6338
|
}, y = (f) => {
|
|
@@ -6340,11 +6340,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6340
6340
|
};
|
|
6341
6341
|
return Y(() => t.modelValue, (f) => {
|
|
6342
6342
|
f !== c(r.value) && (r.value = d(f));
|
|
6343
|
-
}, { immediate: !0 }), (f, u) => (l(),
|
|
6344
|
-
e.label ? (l(),
|
|
6343
|
+
}, { immediate: !0 }), (f, u) => (l(), s("div", fs, [
|
|
6344
|
+
e.label ? (l(), s("label", bs, A(e.label), 1)) : g("", !0),
|
|
6345
6345
|
i("input", {
|
|
6346
6346
|
ref_key: "inputRef",
|
|
6347
|
-
ref:
|
|
6347
|
+
ref: o,
|
|
6348
6348
|
type: e.type,
|
|
6349
6349
|
placeholder: e.placeholder,
|
|
6350
6350
|
value: r.value,
|
|
@@ -6352,18 +6352,18 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6352
6352
|
class: "w-full h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",
|
|
6353
6353
|
onInput: b,
|
|
6354
6354
|
onKeydown: y
|
|
6355
|
-
}, null, 40,
|
|
6356
|
-
e.helper ? (l(),
|
|
6355
|
+
}, null, 40, gs),
|
|
6356
|
+
e.helper ? (l(), s("p", vs, A(e.helper), 1)) : g("", !0)
|
|
6357
6357
|
]));
|
|
6358
6358
|
}
|
|
6359
|
-
},
|
|
6359
|
+
}, hs = {
|
|
6360
6360
|
class: "flex items-center gap-1",
|
|
6361
6361
|
"aria-label": "Pagination",
|
|
6362
6362
|
"data-component": "DXPagination"
|
|
6363
|
-
},
|
|
6363
|
+
}, ps = ["disabled"], xs = {
|
|
6364
6364
|
key: 0,
|
|
6365
6365
|
class: "px-2 text-slate-400"
|
|
6366
|
-
},
|
|
6366
|
+
}, ys = ["aria-current", "onClick"], ws = ["disabled"], ks = "bg-slate-900 text-white hover:bg-slate-800", Cs = {
|
|
6367
6367
|
__name: "DXPagination",
|
|
6368
6368
|
props: {
|
|
6369
6369
|
/** Текущая страница (v-model) */
|
|
@@ -6377,7 +6377,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6377
6377
|
},
|
|
6378
6378
|
emits: ["update:modelValue"],
|
|
6379
6379
|
setup(e, { emit: a }) {
|
|
6380
|
-
const t = e, n = a,
|
|
6380
|
+
const t = e, n = a, o = (y) => {
|
|
6381
6381
|
y >= 1 && y <= t.totalPages && n("update:modelValue", y);
|
|
6382
6382
|
}, r = m(() => {
|
|
6383
6383
|
const y = t.modelValue, f = t.totalPages, u = t.siblingCount, v = [];
|
|
@@ -6399,12 +6399,12 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6399
6399
|
d[t.size] || d.md,
|
|
6400
6400
|
"text-slate-600 hover:bg-slate-100"
|
|
6401
6401
|
]);
|
|
6402
|
-
return (y, f) => (l(),
|
|
6402
|
+
return (y, f) => (l(), s("nav", hs, [
|
|
6403
6403
|
i("button", {
|
|
6404
6404
|
type: "button",
|
|
6405
6405
|
disabled: e.modelValue <= 1,
|
|
6406
6406
|
class: h([c.value, e.modelValue <= 1 && "opacity-50 cursor-not-allowed"]),
|
|
6407
|
-
onClick: f[0] || (f[0] = (u) =>
|
|
6407
|
+
onClick: f[0] || (f[0] = (u) => o(e.modelValue - 1)),
|
|
6408
6408
|
"aria-label": "Предыдущая"
|
|
6409
6409
|
}, [
|
|
6410
6410
|
L(T, {
|
|
@@ -6412,32 +6412,32 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6412
6412
|
size: "sm",
|
|
6413
6413
|
animation: "none"
|
|
6414
6414
|
}, null, 8, ["icon"])
|
|
6415
|
-
], 10,
|
|
6416
|
-
(l(!0),
|
|
6417
|
-
u === "..." ? (l(),
|
|
6415
|
+
], 10, ps),
|
|
6416
|
+
(l(!0), s(j, null, P(r.value, (u) => (l(), s(j, { key: u }, [
|
|
6417
|
+
u === "..." ? (l(), s("span", xs, "...")) : (l(), s("button", {
|
|
6418
6418
|
key: 1,
|
|
6419
6419
|
type: "button",
|
|
6420
|
-
class: h([b.value, u === e.modelValue &&
|
|
6420
|
+
class: h([b.value, u === e.modelValue && ks]),
|
|
6421
6421
|
"aria-current": u === e.modelValue ? "page" : void 0,
|
|
6422
|
-
onClick: (v) =>
|
|
6423
|
-
}, A(u), 11,
|
|
6422
|
+
onClick: (v) => o(u)
|
|
6423
|
+
}, A(u), 11, ys))
|
|
6424
6424
|
], 64))), 128)),
|
|
6425
6425
|
i("button", {
|
|
6426
6426
|
type: "button",
|
|
6427
6427
|
disabled: e.modelValue >= e.totalPages,
|
|
6428
6428
|
class: h([c.value, e.modelValue >= e.totalPages && "opacity-50 cursor-not-allowed"]),
|
|
6429
|
-
onClick: f[1] || (f[1] = (u) =>
|
|
6429
|
+
onClick: f[1] || (f[1] = (u) => o(e.modelValue + 1)),
|
|
6430
6430
|
"aria-label": "Следующая"
|
|
6431
6431
|
}, [
|
|
6432
6432
|
L(T, {
|
|
6433
|
-
icon: k(
|
|
6433
|
+
icon: k(se),
|
|
6434
6434
|
size: "sm",
|
|
6435
6435
|
animation: "none"
|
|
6436
6436
|
}, null, 8, ["icon"])
|
|
6437
|
-
], 10,
|
|
6437
|
+
], 10, ws)
|
|
6438
6438
|
]));
|
|
6439
6439
|
}
|
|
6440
|
-
},
|
|
6440
|
+
}, Ss = { class: "relative" }, $s = ["type", "placeholder", "value", "disabled"], zs = ["disabled", "aria-label"], As = "w-full pr-11 h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors", Fi = {
|
|
6441
6441
|
__name: "DXPasswordInput",
|
|
6442
6442
|
props: {
|
|
6443
6443
|
/** Значение (v-model) */
|
|
@@ -6459,7 +6459,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6459
6459
|
setup(e) {
|
|
6460
6460
|
const a = e, t = M(!1), n = m(
|
|
6461
6461
|
() => G(
|
|
6462
|
-
|
|
6462
|
+
As,
|
|
6463
6463
|
{
|
|
6464
6464
|
"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300": !a.disabled,
|
|
6465
6465
|
"opacity-60 cursor-not-allowed bg-slate-50": a.disabled,
|
|
@@ -6467,7 +6467,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6467
6467
|
}
|
|
6468
6468
|
)
|
|
6469
6469
|
);
|
|
6470
|
-
return (
|
|
6470
|
+
return (o, r) => (l(), D(ze, {
|
|
6471
6471
|
label: e.label,
|
|
6472
6472
|
error: e.error,
|
|
6473
6473
|
helper: e.helper,
|
|
@@ -6477,15 +6477,15 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6477
6477
|
"data-error": !!e.error
|
|
6478
6478
|
}, {
|
|
6479
6479
|
default: X(() => [
|
|
6480
|
-
i("div",
|
|
6480
|
+
i("div", Ss, [
|
|
6481
6481
|
i("input", {
|
|
6482
6482
|
type: t.value ? "text" : "password",
|
|
6483
6483
|
placeholder: e.placeholder,
|
|
6484
6484
|
value: e.modelValue,
|
|
6485
6485
|
disabled: e.disabled,
|
|
6486
6486
|
class: h(n.value),
|
|
6487
|
-
onInput: r[0] || (r[0] = (d) =>
|
|
6488
|
-
}, null, 42, $
|
|
6487
|
+
onInput: r[0] || (r[0] = (d) => o.$emit("update:modelValue", d.target.value))
|
|
6488
|
+
}, null, 42, $s),
|
|
6489
6489
|
i("button", {
|
|
6490
6490
|
type: "button",
|
|
6491
6491
|
class: "absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition",
|
|
@@ -6494,35 +6494,35 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6494
6494
|
"aria-label": t.value ? "Скрыть пароль" : "Показать пароль"
|
|
6495
6495
|
}, [
|
|
6496
6496
|
L(T, {
|
|
6497
|
-
icon: t.value ? k(Pa) : k(
|
|
6497
|
+
icon: t.value ? k(Pa) : k(Oe),
|
|
6498
6498
|
size: "md",
|
|
6499
6499
|
animation: "scale"
|
|
6500
6500
|
}, null, 8, ["icon"])
|
|
6501
|
-
], 8,
|
|
6501
|
+
], 8, zs)
|
|
6502
6502
|
])
|
|
6503
6503
|
]),
|
|
6504
6504
|
_: 1
|
|
6505
6505
|
}, 8, ["label", "error", "helper", "required", "data-disabled", "data-error"]));
|
|
6506
6506
|
}
|
|
6507
|
-
},
|
|
6507
|
+
}, Ds = ["value", "checked", "disabled"], Vs = { class: "flex items-start gap-3" }, Bs = { class: "flex-1 min-w-0" }, Is = { class: "flex items-center justify-between" }, Ls = {
|
|
6508
6508
|
key: 0,
|
|
6509
6509
|
class: "w-5 h-5 rounded-full bg-slate-900 flex items-center justify-center flex-shrink-0"
|
|
6510
|
-
},
|
|
6510
|
+
}, Ts = {
|
|
6511
6511
|
key: 0,
|
|
6512
6512
|
class: "text-sm text-slate-600 mt-1"
|
|
6513
|
-
},
|
|
6513
|
+
}, Oi = {
|
|
6514
6514
|
__name: "DXRadioCard",
|
|
6515
6515
|
props: {
|
|
6516
6516
|
modelValue: [String, Number, Boolean],
|
|
6517
6517
|
value: { type: [String, Number, Boolean], required: !0 },
|
|
6518
6518
|
title: { type: String, required: !0 },
|
|
6519
6519
|
description: { type: String, default: "" },
|
|
6520
|
-
icon: { type: Object, default: null },
|
|
6520
|
+
icon: { type: [Object, Function], default: null },
|
|
6521
6521
|
disabled: { type: Boolean, default: !1 }
|
|
6522
6522
|
},
|
|
6523
6523
|
emits: ["update:modelValue"],
|
|
6524
6524
|
setup(e) {
|
|
6525
|
-
return (a, t) => (l(),
|
|
6525
|
+
return (a, t) => (l(), s("label", {
|
|
6526
6526
|
class: h(["block relative cursor-pointer group", { "cursor-not-allowed opacity-60": e.disabled }]),
|
|
6527
6527
|
"data-component": "DXRadioCard"
|
|
6528
6528
|
}, [
|
|
@@ -6533,7 +6533,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6533
6533
|
disabled: e.disabled,
|
|
6534
6534
|
class: "sr-only peer",
|
|
6535
6535
|
onChange: t[0] || (t[0] = (n) => a.$emit("update:modelValue", e.value))
|
|
6536
|
-
}, null, 40,
|
|
6536
|
+
}, null, 40, Ds),
|
|
6537
6537
|
i("div", {
|
|
6538
6538
|
class: h(["border-2 rounded-xl p-4 transition-all", [
|
|
6539
6539
|
e.modelValue === e.value ? "border-slate-900 bg-slate-50" : "border-slate-200 bg-white",
|
|
@@ -6541,17 +6541,17 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6541
6541
|
e.disabled && "bg-slate-50"
|
|
6542
6542
|
]])
|
|
6543
6543
|
}, [
|
|
6544
|
-
i("div",
|
|
6544
|
+
i("div", Vs, [
|
|
6545
6545
|
e.icon ? (l(), D(q(e.icon), {
|
|
6546
6546
|
key: 0,
|
|
6547
6547
|
class: h(["w-6 h-6 flex-shrink-0", e.modelValue === e.value ? "text-slate-900" : "text-slate-400"])
|
|
6548
6548
|
}, null, 8, ["class"])) : g("", !0),
|
|
6549
|
-
i("div",
|
|
6550
|
-
i("div",
|
|
6549
|
+
i("div", Bs, [
|
|
6550
|
+
i("div", Is, [
|
|
6551
6551
|
i("p", {
|
|
6552
6552
|
class: h(["font-semibold", e.modelValue === e.value ? "text-slate-900" : "text-slate-700"])
|
|
6553
6553
|
}, A(e.title), 3),
|
|
6554
|
-
e.modelValue === e.value ? (l(),
|
|
6554
|
+
e.modelValue === e.value ? (l(), s("div", Ls, [...t[1] || (t[1] = [
|
|
6555
6555
|
i("svg", {
|
|
6556
6556
|
class: "w-3 h-3 text-white",
|
|
6557
6557
|
fill: "none",
|
|
@@ -6567,20 +6567,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6567
6567
|
], -1)
|
|
6568
6568
|
])])) : g("", !0)
|
|
6569
6569
|
]),
|
|
6570
|
-
e.description ? (l(),
|
|
6570
|
+
e.description ? (l(), s("p", Ts, A(e.description), 1)) : g("", !0),
|
|
6571
6571
|
I(a.$slots, "default")
|
|
6572
6572
|
])
|
|
6573
6573
|
])
|
|
6574
6574
|
], 2)
|
|
6575
6575
|
], 2));
|
|
6576
6576
|
}
|
|
6577
|
-
},
|
|
6577
|
+
}, Xs = ["data-size", "data-layout", "data-disabled", "data-variant", "data-color"], Ms = {
|
|
6578
6578
|
key: 0,
|
|
6579
6579
|
class: "text-sm font-medium text-slate-700 mb-3"
|
|
6580
|
-
},
|
|
6580
|
+
}, js = {
|
|
6581
6581
|
key: 1,
|
|
6582
6582
|
class: "text-xs text-slate-500 mt-1"
|
|
6583
|
-
},
|
|
6583
|
+
}, Ei = {
|
|
6584
6584
|
__name: "DXRadioGroup",
|
|
6585
6585
|
props: {
|
|
6586
6586
|
/** Текущее значение (v-model) */
|
|
@@ -6615,7 +6615,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6615
6615
|
const a = e, t = m(
|
|
6616
6616
|
() => a.layout === "horizontal" ? "flex flex-wrap items-center" : "flex flex-col"
|
|
6617
6617
|
);
|
|
6618
|
-
return (n,
|
|
6618
|
+
return (n, o) => (l(), s("div", {
|
|
6619
6619
|
class: "space-y-2",
|
|
6620
6620
|
"data-component": "DXRadioGroup",
|
|
6621
6621
|
"data-size": e.size,
|
|
@@ -6624,11 +6624,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6624
6624
|
"data-variant": e.variant,
|
|
6625
6625
|
"data-color": e.color
|
|
6626
6626
|
}, [
|
|
6627
|
-
e.label ? (l(),
|
|
6627
|
+
e.label ? (l(), s("p", Ms, A(e.label), 1)) : g("", !0),
|
|
6628
6628
|
i("div", {
|
|
6629
6629
|
class: h(t.value)
|
|
6630
6630
|
}, [
|
|
6631
|
-
(l(!0),
|
|
6631
|
+
(l(!0), s(j, null, P(e.options, (r) => (l(), D(zl, {
|
|
6632
6632
|
key: r.value,
|
|
6633
6633
|
"model-value": e.modelValue,
|
|
6634
6634
|
value: r.value,
|
|
@@ -6637,18 +6637,18 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6637
6637
|
size: e.size,
|
|
6638
6638
|
variant: e.variant,
|
|
6639
6639
|
color: r.color || e.color,
|
|
6640
|
-
"onUpdate:modelValue":
|
|
6640
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => n.$emit("update:modelValue", d))
|
|
6641
6641
|
}, null, 8, ["model-value", "value", "label", "disabled", "size", "variant", "color"]))), 128))
|
|
6642
6642
|
], 2),
|
|
6643
|
-
e.helper ? (l(),
|
|
6644
|
-
], 8,
|
|
6643
|
+
e.helper ? (l(), s("p", js, A(e.helper), 1)) : g("", !0)
|
|
6644
|
+
], 8, Xs));
|
|
6645
6645
|
}
|
|
6646
|
-
},
|
|
6646
|
+
}, Fs = { class: "relative" }, Os = ["value", "disabled"], Es = {
|
|
6647
6647
|
key: 0,
|
|
6648
6648
|
value: "",
|
|
6649
6649
|
disabled: "",
|
|
6650
6650
|
selected: ""
|
|
6651
|
-
},
|
|
6651
|
+
}, Ps = ["value"], Ns = { class: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none" }, Rs = "w-full appearance-none border border-slate-200 bg-white transition-colors text-slate-700", qs = {
|
|
6652
6652
|
__name: "DXSelect",
|
|
6653
6653
|
props: {
|
|
6654
6654
|
/** Значение (v-model) */
|
|
@@ -6666,7 +6666,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6666
6666
|
/** Вспомогательный текст */
|
|
6667
6667
|
helper: { type: String, default: "" },
|
|
6668
6668
|
/** Иконка слева (Heroicon компонент) */
|
|
6669
|
-
prefixIcon: { type: Object, default: null },
|
|
6669
|
+
prefixIcon: { type: [Object, Function], default: null },
|
|
6670
6670
|
/** Отключенное состояние */
|
|
6671
6671
|
disabled: { type: Boolean, default: !1 },
|
|
6672
6672
|
/** Размер: sm | md | lg */
|
|
@@ -6680,29 +6680,29 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6680
6680
|
}), be(() => {
|
|
6681
6681
|
a != null && a.unregisterComponent && a.unregisterComponent(t);
|
|
6682
6682
|
});
|
|
6683
|
-
const n = m(() => a != null && a.getComponentPosition ? a.getComponentPosition(t) : { hasLeftAddon: !1, hasRightAddon: !1 }),
|
|
6683
|
+
const n = m(() => a != null && a.getComponentPosition ? a.getComponentPosition(t) : { hasLeftAddon: !1, hasRightAddon: !1 }), o = e, r = () => ({
|
|
6684
6684
|
sm: "sm",
|
|
6685
6685
|
md: "md",
|
|
6686
6686
|
lg: "lg"
|
|
6687
|
-
})[
|
|
6687
|
+
})[o.size] || "md", d = (y, f) => {
|
|
6688
6688
|
if (!y) return "";
|
|
6689
6689
|
const u = {
|
|
6690
6690
|
sm: f === "left" ? "pl-10" : "pr-10",
|
|
6691
6691
|
md: f === "left" ? "pl-11" : "pr-11",
|
|
6692
6692
|
lg: f === "left" ? "pl-12" : "pr-12"
|
|
6693
6693
|
};
|
|
6694
|
-
return u[
|
|
6694
|
+
return u[o.size] || u.md;
|
|
6695
6695
|
}, c = () => n.value.hasLeftAddon && n.value.hasRightAddon ? "rounded-none" : n.value.hasLeftAddon ? "rounded-l-none rounded-r-xl" : n.value.hasRightAddon ? "rounded-l-xl rounded-r-none" : "rounded-xl", b = m(
|
|
6696
6696
|
() => G(
|
|
6697
|
-
`${
|
|
6697
|
+
`${Rs} ${c()}`,
|
|
6698
6698
|
{
|
|
6699
|
-
[N(
|
|
6700
|
-
[d(
|
|
6699
|
+
[N(o.size, "input")]: !0,
|
|
6700
|
+
[d(o.prefixIcon, "left")]: !0,
|
|
6701
6701
|
"pr-10": !0,
|
|
6702
6702
|
// Всегда справа chevron
|
|
6703
|
-
"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300": !
|
|
6704
|
-
"opacity-60 cursor-not-allowed bg-slate-50":
|
|
6705
|
-
"border-rose-300 focus:ring-rose-500/10":
|
|
6703
|
+
"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300": !o.disabled,
|
|
6704
|
+
"opacity-60 cursor-not-allowed bg-slate-50": o.disabled,
|
|
6705
|
+
"border-rose-300 focus:ring-rose-500/10": o.error
|
|
6706
6706
|
}
|
|
6707
6707
|
)
|
|
6708
6708
|
);
|
|
@@ -6717,7 +6717,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6717
6717
|
"data-error": !!e.error
|
|
6718
6718
|
}, {
|
|
6719
6719
|
default: X(() => [
|
|
6720
|
-
i("div",
|
|
6720
|
+
i("div", Fs, [
|
|
6721
6721
|
e.prefixIcon ? (l(), D(me, {
|
|
6722
6722
|
key: 0,
|
|
6723
6723
|
position: "left",
|
|
@@ -6730,13 +6730,13 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6730
6730
|
class: h(b.value),
|
|
6731
6731
|
onChange: f[0] || (f[0] = (u) => y.$emit("update:modelValue", u.target.value))
|
|
6732
6732
|
}, [
|
|
6733
|
-
e.placeholder ? (l(),
|
|
6734
|
-
(l(!0),
|
|
6733
|
+
e.placeholder ? (l(), s("option", Es, A(e.placeholder), 1)) : g("", !0),
|
|
6734
|
+
(l(!0), s(j, null, P(e.options, (u) => (l(), s("option", {
|
|
6735
6735
|
key: u.value,
|
|
6736
6736
|
value: u.value
|
|
6737
|
-
}, A(u.label), 9,
|
|
6738
|
-
], 42,
|
|
6739
|
-
i("div",
|
|
6737
|
+
}, A(u.label), 9, Ps))), 128))
|
|
6738
|
+
], 42, Os),
|
|
6739
|
+
i("div", Ns, [
|
|
6740
6740
|
L(T, {
|
|
6741
6741
|
icon: k(ge),
|
|
6742
6742
|
size: "sm",
|
|
@@ -6749,13 +6749,13 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6749
6749
|
_: 1
|
|
6750
6750
|
}, 8, ["label", "error", "helper", "required", "data-size", "data-disabled", "data-error"]));
|
|
6751
6751
|
}
|
|
6752
|
-
},
|
|
6752
|
+
}, Hs = {
|
|
6753
6753
|
class: "inline-flex",
|
|
6754
6754
|
"data-component": "DXSegmentedControl"
|
|
6755
|
-
},
|
|
6755
|
+
}, Zs = {
|
|
6756
6756
|
key: 0,
|
|
6757
6757
|
class: "text-sm font-medium text-slate-700 mb-2"
|
|
6758
|
-
},
|
|
6758
|
+
}, Us = { class: "relative inline-flex p-1 bg-slate-100 rounded-xl gap-1" }, Ks = ["disabled", "onClick"], Gs = { key: 1 }, Pi = {
|
|
6759
6759
|
__name: "DXSegmentedControl",
|
|
6760
6760
|
props: {
|
|
6761
6761
|
modelValue: [String, Number, Boolean],
|
|
@@ -6772,10 +6772,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6772
6772
|
},
|
|
6773
6773
|
emits: ["update:modelValue"],
|
|
6774
6774
|
setup(e, { emit: a }) {
|
|
6775
|
-
const t = e, n = a,
|
|
6775
|
+
const t = e, n = a, o = M([]), r = M({}), d = m(() => t.options.findIndex((f) => f.value === t.modelValue)), c = () => {
|
|
6776
6776
|
const f = d.value;
|
|
6777
|
-
if (f >= 0 &&
|
|
6778
|
-
const u =
|
|
6777
|
+
if (f >= 0 && o.value[f]) {
|
|
6778
|
+
const u = o.value[f];
|
|
6779
6779
|
r.value = {
|
|
6780
6780
|
width: `${u.offsetWidth}px`,
|
|
6781
6781
|
height: `${u.offsetHeight}px`,
|
|
@@ -6790,19 +6790,19 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6790
6790
|
ce(c);
|
|
6791
6791
|
}), _(() => {
|
|
6792
6792
|
ce(c);
|
|
6793
|
-
}), (f, u) => (l(),
|
|
6794
|
-
e.label ? (l(),
|
|
6795
|
-
i("div",
|
|
6793
|
+
}), (f, u) => (l(), s("div", Hs, [
|
|
6794
|
+
e.label ? (l(), s("p", Zs, A(e.label), 1)) : g("", !0),
|
|
6795
|
+
i("div", Us, [
|
|
6796
6796
|
i("div", {
|
|
6797
6797
|
class: "absolute bg-white rounded-lg shadow-sm transition-all duration-200 ease-out",
|
|
6798
6798
|
style: Q(r.value)
|
|
6799
6799
|
}, null, 4),
|
|
6800
|
-
(l(!0),
|
|
6800
|
+
(l(!0), s(j, null, P(e.options, (v, x) => (l(), s("button", {
|
|
6801
6801
|
key: v.value,
|
|
6802
6802
|
type: "button",
|
|
6803
6803
|
ref_for: !0,
|
|
6804
6804
|
ref: (z) => {
|
|
6805
|
-
z && (
|
|
6805
|
+
z && (o.value[x] = z);
|
|
6806
6806
|
},
|
|
6807
6807
|
class: h(["relative z-10 px-4 py-1.5 text-sm font-medium transition-colors duration-150 rounded-lg whitespace-nowrap min-w-[60px] text-center inline-flex items-center justify-center gap-1.5", [
|
|
6808
6808
|
e.modelValue === v.value ? "text-slate-900" : "text-slate-600 hover:text-slate-900",
|
|
@@ -6817,22 +6817,22 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6817
6817
|
size: "xs",
|
|
6818
6818
|
animation: y(v)
|
|
6819
6819
|
}, null, 8, ["icon", "animation"])) : g("", !0),
|
|
6820
|
-
v.label ? (l(),
|
|
6821
|
-
v.count !== void 0 && v.count !== null ? (l(),
|
|
6820
|
+
v.label ? (l(), s("span", Gs, A(v.label), 1)) : g("", !0),
|
|
6821
|
+
v.count !== void 0 && v.count !== null ? (l(), s("span", {
|
|
6822
6822
|
key: 2,
|
|
6823
6823
|
class: h(["inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold rounded-full", e.modelValue === v.value ? "bg-slate-800 text-white" : "bg-slate-200 text-slate-700"])
|
|
6824
6824
|
}, A(v.count), 3)) : g("", !0)
|
|
6825
|
-
], 10,
|
|
6825
|
+
], 10, Ks))), 128))
|
|
6826
6826
|
])
|
|
6827
6827
|
]));
|
|
6828
6828
|
}
|
|
6829
|
-
},
|
|
6829
|
+
}, Ws = {
|
|
6830
6830
|
class: "flex items-center justify-between gap-4 py-4 px-0 bg-white",
|
|
6831
6831
|
"data-component": "DXTableToolbar"
|
|
6832
|
-
},
|
|
6832
|
+
}, Qs = { class: "flex items-center gap-4 flex-1" }, Ys = {
|
|
6833
6833
|
key: 1,
|
|
6834
6834
|
class: "text-sm text-slate-600"
|
|
6835
|
-
},
|
|
6835
|
+
}, Js = { class: "flex items-center gap-2" }, _s = { class: "p-2 space-y-1" }, er = { class: "text-sm" }, tr = {
|
|
6836
6836
|
__name: "DXTableToolbar",
|
|
6837
6837
|
props: {
|
|
6838
6838
|
/** Размер элементов управления */
|
|
@@ -6869,8 +6869,8 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6869
6869
|
},
|
|
6870
6870
|
emits: ["update:searchQuery", "toggle-column"],
|
|
6871
6871
|
setup(e) {
|
|
6872
|
-
return (a, t) => (l(),
|
|
6873
|
-
i("div",
|
|
6872
|
+
return (a, t) => (l(), s("div", Ws, [
|
|
6873
|
+
i("div", Qs, [
|
|
6874
6874
|
e.searchable ? (l(), D(ye, {
|
|
6875
6875
|
key: 0,
|
|
6876
6876
|
modelValue: e.searchQuery,
|
|
@@ -6888,10 +6888,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6888
6888
|
]),
|
|
6889
6889
|
_: 1
|
|
6890
6890
|
}, 8, ["modelValue", "size"])) : g("", !0),
|
|
6891
|
-
e.selectedCount > 0 ? (l(),
|
|
6891
|
+
e.selectedCount > 0 ? (l(), s("div", Ys, " Выбрано: " + A(e.selectedCount), 1)) : g("", !0),
|
|
6892
6892
|
I(a.$slots, "left")
|
|
6893
6893
|
]),
|
|
6894
|
-
i("div",
|
|
6894
|
+
i("div", Js, [
|
|
6895
6895
|
I(a.$slots, "right"),
|
|
6896
6896
|
e.columnToggle ? (l(), D(ue, {
|
|
6897
6897
|
key: 0,
|
|
@@ -6906,14 +6906,14 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6906
6906
|
t[1] || (t[1] = i("span", { class: "text-sm" }, "Столбцы", -1))
|
|
6907
6907
|
]),
|
|
6908
6908
|
default: X(() => [
|
|
6909
|
-
i("div",
|
|
6910
|
-
(l(!0),
|
|
6909
|
+
i("div", _s, [
|
|
6910
|
+
(l(!0), s(j, null, P(e.columns, (n) => (l(), s("div", {
|
|
6911
6911
|
key: n.key,
|
|
6912
6912
|
class: "flex items-center gap-2 px-2 py-1 hover:bg-slate-50 rounded"
|
|
6913
6913
|
}, [
|
|
6914
6914
|
L(ve, {
|
|
6915
6915
|
checked: n.visible,
|
|
6916
|
-
onChange: (
|
|
6916
|
+
onChange: (o) => a.$emit("toggle-column", n.key),
|
|
6917
6917
|
size: e.size
|
|
6918
6918
|
}, null, 8, ["checked", "onChange", "size"]),
|
|
6919
6919
|
i("span", er, A(n.label), 1)
|
|
@@ -6983,20 +6983,20 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
6983
6983
|
};
|
|
6984
6984
|
return n[a.size] || n.md;
|
|
6985
6985
|
});
|
|
6986
|
-
return (n,
|
|
6986
|
+
return (n, o) => (l(), s("div", ar, [
|
|
6987
6987
|
i("div", {
|
|
6988
6988
|
class: h(t.value)
|
|
6989
6989
|
}, " Показано " + A(e.from) + "-" + A(e.to) + " из " + A(e.total), 3),
|
|
6990
6990
|
i("div", lr, [
|
|
6991
|
-
L(
|
|
6991
|
+
L(Cs, {
|
|
6992
6992
|
modelValue: e.currentPage,
|
|
6993
6993
|
totalPages: e.totalPages,
|
|
6994
6994
|
size: e.size,
|
|
6995
|
-
"onUpdate:modelValue":
|
|
6995
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.$emit("update:currentPage", r))
|
|
6996
6996
|
}, null, 8, ["modelValue", "totalPages", "size"]),
|
|
6997
|
-
L(
|
|
6997
|
+
L(qs, {
|
|
6998
6998
|
modelValue: e.pageSize,
|
|
6999
|
-
"onUpdate:modelValue":
|
|
6999
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => n.$emit("update:pageSize", r)),
|
|
7000
7000
|
options: e.pageSizeOptions.map((r) => ({ value: r, label: `${r} / стр` })),
|
|
7001
7001
|
size: e.size,
|
|
7002
7002
|
class: "w-32"
|
|
@@ -7004,7 +7004,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7004
7004
|
])
|
|
7005
7005
|
]));
|
|
7006
7006
|
}
|
|
7007
|
-
},
|
|
7007
|
+
}, or = { class: "relative" }, sr = ["rows", "placeholder", "value", "disabled", "maxlength"], rr = "w-full border border-slate-200 px-4 py-3 text-sm text-slate-700 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 transition-colors resize-y", Ni = {
|
|
7008
7008
|
__name: "DXTextarea",
|
|
7009
7009
|
props: {
|
|
7010
7010
|
/** Значение (v-model) */
|
|
@@ -7024,9 +7024,9 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7024
7024
|
/** Вспомогательный текст */
|
|
7025
7025
|
helper: { type: String, default: "" },
|
|
7026
7026
|
/** Иконка слева (в верхнем левом углу) */
|
|
7027
|
-
prefixIcon: { type: Object, default: null },
|
|
7027
|
+
prefixIcon: { type: [Object, Function], default: null },
|
|
7028
7028
|
/** Иконка справа (в верхнем правом углу) */
|
|
7029
|
-
suffixIcon: { type: Object, default: null },
|
|
7029
|
+
suffixIcon: { type: [Object, Function], default: null },
|
|
7030
7030
|
/** Максимальная длина */
|
|
7031
7031
|
maxLength: { type: Number, default: 0 },
|
|
7032
7032
|
/** Показывать счетчик символов */
|
|
@@ -7043,22 +7043,22 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7043
7043
|
}), be(() => {
|
|
7044
7044
|
t != null && t.unregisterComponent && t.unregisterComponent(n);
|
|
7045
7045
|
});
|
|
7046
|
-
const
|
|
7046
|
+
const o = m(() => t != null && t.getComponentPosition ? t.getComponentPosition(n) : { hasLeftAddon: !1, hasRightAddon: !1 }), r = e, d = a, c = M(((v = r.modelValue) == null ? void 0 : v.length) || 0), b = (x) => {
|
|
7047
7047
|
const z = x.target.value;
|
|
7048
7048
|
c.value = z.length, d("update:modelValue", z), r.autoResize && (x.target.style.height = "auto", x.target.style.height = x.target.scrollHeight + "px");
|
|
7049
7049
|
};
|
|
7050
7050
|
Y(() => r.modelValue, (x) => {
|
|
7051
7051
|
c.value = (x == null ? void 0 : x.length) || 0;
|
|
7052
7052
|
});
|
|
7053
|
-
const y = (x, z) => x ? z === "left" ? "pl-11" : "pr-11" : "", f = () =>
|
|
7053
|
+
const y = (x, z) => x ? z === "left" ? "pl-11" : "pr-11" : "", f = () => o.value.hasLeftAddon && o.value.hasRightAddon ? "rounded-none" : o.value.hasLeftAddon ? "rounded-l-none rounded-r-xl" : o.value.hasRightAddon ? "rounded-l-xl rounded-r-none" : "rounded-xl", u = m(
|
|
7054
7054
|
() => G(
|
|
7055
7055
|
`${rr} ${f()}`,
|
|
7056
7056
|
{
|
|
7057
7057
|
"opacity-60 cursor-not-allowed bg-slate-50": r.disabled,
|
|
7058
|
-
[y(r.prefixIcon, "left")]: !0,
|
|
7059
|
-
[y(r.suffixIcon, "right")]: !0,
|
|
7060
7058
|
"border-rose-300 focus:ring-rose-500/10": r.error
|
|
7061
|
-
}
|
|
7059
|
+
},
|
|
7060
|
+
y(r.prefixIcon, "left"),
|
|
7061
|
+
y(r.suffixIcon, "right")
|
|
7062
7062
|
)
|
|
7063
7063
|
);
|
|
7064
7064
|
return (x, z) => (l(), D(ze, {
|
|
@@ -7074,7 +7074,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7074
7074
|
"data-error": !!e.error
|
|
7075
7075
|
}, {
|
|
7076
7076
|
default: X(() => [
|
|
7077
|
-
i("div",
|
|
7077
|
+
i("div", or, [
|
|
7078
7078
|
e.prefixIcon ? (l(), D(me, {
|
|
7079
7079
|
key: 0,
|
|
7080
7080
|
position: "left",
|
|
@@ -7087,10 +7087,10 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7087
7087
|
placeholder: e.placeholder,
|
|
7088
7088
|
value: e.modelValue,
|
|
7089
7089
|
disabled: e.disabled,
|
|
7090
|
-
maxlength: e.maxLength,
|
|
7090
|
+
maxlength: e.maxLength > 0 ? e.maxLength : null,
|
|
7091
7091
|
class: h(u.value),
|
|
7092
7092
|
onInput: b
|
|
7093
|
-
}, null, 42,
|
|
7093
|
+
}, null, 42, sr),
|
|
7094
7094
|
e.suffixIcon ? (l(), D(me, {
|
|
7095
7095
|
key: 1,
|
|
7096
7096
|
position: "right",
|
|
@@ -7116,7 +7116,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7116
7116
|
variant: { type: String, default: "default" }
|
|
7117
7117
|
},
|
|
7118
7118
|
setup(e) {
|
|
7119
|
-
const a = _e("collapse"), t = e, n = M(new Set(t.defaultOpen)),
|
|
7119
|
+
const a = _e("collapse"), t = e, n = M(new Set(t.defaultOpen)), o = (b) => n.value.has(b), r = (b) => {
|
|
7120
7120
|
t.multiple ? (n.value.has(b) ? n.value.delete(b) : n.value.add(b), n.value = new Set(n.value)) : n.value.has(b) ? n.value = /* @__PURE__ */ new Set() : n.value = /* @__PURE__ */ new Set([b]);
|
|
7121
7121
|
}, d = {
|
|
7122
7122
|
default: "",
|
|
@@ -7128,21 +7128,21 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7128
7128
|
d[t.variant] || d.default
|
|
7129
7129
|
)
|
|
7130
7130
|
);
|
|
7131
|
-
return (b, y) => (l(),
|
|
7131
|
+
return (b, y) => (l(), s("div", {
|
|
7132
7132
|
class: h(c.value),
|
|
7133
7133
|
"data-component": "DXAccordion",
|
|
7134
7134
|
"data-variant": e.variant,
|
|
7135
7135
|
"data-multiple": e.multiple
|
|
7136
7136
|
}, [
|
|
7137
|
-
(l(!0),
|
|
7137
|
+
(l(!0), s(j, null, P(e.items, (f, u) => (l(), s("div", {
|
|
7138
7138
|
key: u,
|
|
7139
7139
|
class: "border-b border-slate-200 last:border-b-0"
|
|
7140
7140
|
}, [
|
|
7141
7141
|
i("button", {
|
|
7142
7142
|
type: "button",
|
|
7143
|
-
class: h(["w-full flex items-center justify-between py-4 px-1 text-left transition-colors hover:bg-slate-50", { "font-semibold":
|
|
7143
|
+
class: h(["w-full flex items-center justify-between py-4 px-1 text-left transition-colors hover:bg-slate-50", { "font-semibold": o(u) }]),
|
|
7144
7144
|
onClick: (v) => r(u),
|
|
7145
|
-
"aria-expanded":
|
|
7145
|
+
"aria-expanded": o(u)
|
|
7146
7146
|
}, [
|
|
7147
7147
|
i("span", ur, [
|
|
7148
7148
|
f.icon ? (l(), D(T, {
|
|
@@ -7158,7 +7158,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7158
7158
|
icon: k(ge),
|
|
7159
7159
|
size: "md",
|
|
7160
7160
|
animation: "none",
|
|
7161
|
-
class: h(["text-slate-400 transition-transform duration-200", { "rotate-180":
|
|
7161
|
+
class: h(["text-slate-400 transition-transform duration-200", { "rotate-180": o(u) }])
|
|
7162
7162
|
}, null, 8, ["icon", "class"])
|
|
7163
7163
|
], 10, dr),
|
|
7164
7164
|
L(te, Ce({ ref_for: !0 }, k(a)), {
|
|
@@ -7166,11 +7166,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7166
7166
|
le(i("div", mr, [
|
|
7167
7167
|
i("div", fr, [
|
|
7168
7168
|
I(b.$slots, `item-${u}`, {}, () => [
|
|
7169
|
-
|
|
7169
|
+
O(A(f.content), 1)
|
|
7170
7170
|
])
|
|
7171
7171
|
])
|
|
7172
7172
|
], 512), [
|
|
7173
|
-
[Le,
|
|
7173
|
+
[Le, o(u)]
|
|
7174
7174
|
])
|
|
7175
7175
|
]),
|
|
7176
7176
|
_: 2
|
|
@@ -7188,7 +7188,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7188
7188
|
__name: "DXEmptyState",
|
|
7189
7189
|
props: {
|
|
7190
7190
|
/** Иконка (компонент) */
|
|
7191
|
-
icon: { type: Object, required: !0 },
|
|
7191
|
+
icon: { type: [Object, Function], required: !0 },
|
|
7192
7192
|
/** Заголовок */
|
|
7193
7193
|
title: { type: String, required: !0 },
|
|
7194
7194
|
/** Описание */
|
|
@@ -7197,16 +7197,16 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7197
7197
|
animated: { type: Boolean, default: !1 }
|
|
7198
7198
|
},
|
|
7199
7199
|
setup(e) {
|
|
7200
|
-
return (a, t) => (l(),
|
|
7200
|
+
return (a, t) => (l(), s("div", gr, [
|
|
7201
7201
|
(l(), D(q(e.icon), {
|
|
7202
7202
|
class: h(["w-10 h-10 text-slate-500 mx-auto", e.animated && "animate-bounce-slow"])
|
|
7203
7203
|
}, null, 8, ["class"])),
|
|
7204
7204
|
i("p", vr, A(e.title), 1),
|
|
7205
|
-
e.description ? (l(),
|
|
7205
|
+
e.description ? (l(), s("p", hr, A(e.description), 1)) : g("", !0),
|
|
7206
7206
|
I(a.$slots, "action", {}, void 0, !0)
|
|
7207
7207
|
]));
|
|
7208
7208
|
}
|
|
7209
|
-
}, qi = /* @__PURE__ */ J(pr, [["__scopeId", "data-v-
|
|
7209
|
+
}, qi = /* @__PURE__ */ J(pr, [["__scopeId", "data-v-c01f983d"]]), xr = ["data-variant"], yr = { class: "flex items-center justify-between flex-shrink-0 mb-4 gap-4" }, wr = { class: "text-lg font-semibold tracking-tight text-slate-900 flex-1" }, kr = {
|
|
7210
7210
|
key: 0,
|
|
7211
7211
|
class: "flex items-center gap-1 rounded-xl border border-slate-200 bg-slate-50 p-1"
|
|
7212
7212
|
}, Cr = ["title", "onClick"], Sr = { class: "text-slate-700 overflow-y-auto flex-1 min-h-0" }, $r = {
|
|
@@ -7249,7 +7249,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7249
7249
|
},
|
|
7250
7250
|
emits: ["close", "opened", "closed", "update:variant"],
|
|
7251
7251
|
setup(e, { emit: a }) {
|
|
7252
|
-
const t = e, n = a,
|
|
7252
|
+
const t = e, n = a, o = [
|
|
7253
7253
|
{ value: "modal", label: "Модальное окно", icon: Ka },
|
|
7254
7254
|
{ value: "fullscreen", label: "На весь экран", icon: Ia },
|
|
7255
7255
|
{ value: "sidebar-right", label: "Боковая панель", icon: tt },
|
|
@@ -7326,7 +7326,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7326
7326
|
onAfterLeave: v[3] || (v[3] = (x) => u.$emit("closed"))
|
|
7327
7327
|
}, {
|
|
7328
7328
|
default: X(() => [
|
|
7329
|
-
e.open ? (l(),
|
|
7329
|
+
e.open ? (l(), s("div", {
|
|
7330
7330
|
key: 0,
|
|
7331
7331
|
class: h(c.value),
|
|
7332
7332
|
onClick: v[1] || (v[1] = R((x) => e.closable && u.$emit("close"), ["self"])),
|
|
@@ -7339,11 +7339,11 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7339
7339
|
i("div", yr, [
|
|
7340
7340
|
i("h3", wr, [
|
|
7341
7341
|
I(u.$slots, "title", {}, () => [
|
|
7342
|
-
v[5] || (v[5] =
|
|
7342
|
+
v[5] || (v[5] = O("Диалог", -1))
|
|
7343
7343
|
], !0)
|
|
7344
7344
|
]),
|
|
7345
|
-
e.showModeSwitcher ? (l(),
|
|
7346
|
-
(l(),
|
|
7345
|
+
e.showModeSwitcher ? (l(), s("div", kr, [
|
|
7346
|
+
(l(), s(j, null, P(o, (x) => i("button", {
|
|
7347
7347
|
key: x.value,
|
|
7348
7348
|
type: "button",
|
|
7349
7349
|
class: h(["rounded-lg p-1.5 transition-colors", e.variant === x.value ? "bg-white text-slate-900 shadow-sm" : "text-slate-400 hover:text-slate-600 hover:bg-white/50"]),
|
|
@@ -7363,7 +7363,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7363
7363
|
i("div", Sr, [
|
|
7364
7364
|
I(u.$slots, "default", {}, void 0, !0)
|
|
7365
7365
|
]),
|
|
7366
|
-
u.$slots.actions ? (l(),
|
|
7366
|
+
u.$slots.actions ? (l(), s("div", $r, [
|
|
7367
7367
|
I(u.$slots, "actions", {}, void 0, !0)
|
|
7368
7368
|
])) : g("", !0)
|
|
7369
7369
|
], 2)
|
|
@@ -7444,7 +7444,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7444
7444
|
},
|
|
7445
7445
|
emits: ["item-click", "update:compact"],
|
|
7446
7446
|
setup(e, { emit: a }) {
|
|
7447
|
-
const t = ne(), n = e,
|
|
7447
|
+
const t = ne(), n = e, o = a, {
|
|
7448
7448
|
searchQuery: r,
|
|
7449
7449
|
internalCompact: d,
|
|
7450
7450
|
compact: c,
|
|
@@ -7452,7 +7452,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7452
7452
|
isItemActive: y,
|
|
7453
7453
|
toggleCompact: f,
|
|
7454
7454
|
handleItemClick: u
|
|
7455
|
-
} = nt(n,
|
|
7455
|
+
} = nt(n, o), v = {
|
|
7456
7456
|
sm: {
|
|
7457
7457
|
container: "px-3 py-2",
|
|
7458
7458
|
title: "text-base"
|
|
@@ -7489,40 +7489,40 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7489
7489
|
"px-4 py-4 border-t border-slate-200 flex-shrink-0",
|
|
7490
7490
|
d.value && "px-2"
|
|
7491
7491
|
]);
|
|
7492
|
-
return (V, B) => (l(),
|
|
7492
|
+
return (V, B) => (l(), s("aside", {
|
|
7493
7493
|
class: h(p.value),
|
|
7494
7494
|
"data-component": "DXSidebarMenu",
|
|
7495
7495
|
"data-compact": k(c)
|
|
7496
7496
|
}, [
|
|
7497
|
-
x.value ? (l(),
|
|
7497
|
+
x.value ? (l(), s("div", {
|
|
7498
7498
|
key: 0,
|
|
7499
7499
|
class: h(w.value)
|
|
7500
7500
|
}, [
|
|
7501
7501
|
k(c) ? g("", !0) : I(V.$slots, "header", { key: 0 }, () => [
|
|
7502
|
-
e.title ? (l(),
|
|
7502
|
+
e.title ? (l(), s("h2", {
|
|
7503
7503
|
key: 0,
|
|
7504
7504
|
class: h(C.value)
|
|
7505
7505
|
}, A(e.title), 3)) : g("", !0)
|
|
7506
7506
|
], !0),
|
|
7507
|
-
e.collapsible ? (l(),
|
|
7507
|
+
e.collapsible ? (l(), s("button", {
|
|
7508
7508
|
key: 1,
|
|
7509
7509
|
type: "button",
|
|
7510
7510
|
class: h(["p-2 rounded-lg hover:bg-slate-100 transition-colors", { "ml-auto": !k(c) }]),
|
|
7511
|
-
onClick: B[0] || (B[0] = (...
|
|
7511
|
+
onClick: B[0] || (B[0] = (...F) => k(f) && k(f)(...F)),
|
|
7512
7512
|
title: k(c) ? "Развернуть" : "Свернуть"
|
|
7513
7513
|
}, [
|
|
7514
7514
|
L(T, {
|
|
7515
|
-
icon: k(c) ? k(
|
|
7515
|
+
icon: k(c) ? k(se) : k(pe),
|
|
7516
7516
|
size: "md",
|
|
7517
7517
|
animation: "scale",
|
|
7518
7518
|
class: "text-slate-600"
|
|
7519
7519
|
}, null, 8, ["icon"])
|
|
7520
7520
|
], 10, Dr)) : g("", !0)
|
|
7521
7521
|
], 2)) : g("", !0),
|
|
7522
|
-
e.searchable && !k(c) ? (l(),
|
|
7522
|
+
e.searchable && !k(c) ? (l(), s("div", Vr, [
|
|
7523
7523
|
L(ye, {
|
|
7524
7524
|
modelValue: k(r),
|
|
7525
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
7525
|
+
"onUpdate:modelValue": B[1] || (B[1] = (F) => oe(r) ? r.value = F : null),
|
|
7526
7526
|
placeholder: "Поиск...",
|
|
7527
7527
|
size: "sm"
|
|
7528
7528
|
}, {
|
|
@@ -7539,16 +7539,16 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7539
7539
|
i("nav", {
|
|
7540
7540
|
class: h($.value)
|
|
7541
7541
|
}, [
|
|
7542
|
-
(l(!0),
|
|
7542
|
+
(l(!0), s(j, null, P(k(b), (F, U) => (l(), s("div", {
|
|
7543
7543
|
key: U,
|
|
7544
7544
|
class: "space-y-1"
|
|
7545
7545
|
}, [
|
|
7546
|
-
|
|
7547
|
-
|
|
7546
|
+
F.title && !k(c) ? (l(), s("div", Br, A(F.title), 1)) : g("", !0),
|
|
7547
|
+
F.title && k(c) ? (l(), D(Fe, {
|
|
7548
7548
|
key: 1,
|
|
7549
7549
|
spacing: "sm"
|
|
7550
7550
|
})) : g("", !0),
|
|
7551
|
-
(l(!0),
|
|
7551
|
+
(l(!0), s(j, null, P(F.items, (ee, Ae) => (l(), D(Ie, {
|
|
7552
7552
|
key: Ae,
|
|
7553
7553
|
item: ee,
|
|
7554
7554
|
active: k(y)(ee),
|
|
@@ -7558,7 +7558,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7558
7558
|
}, null, 8, ["item", "active", "compact", "onClick", "onChildClick"]))), 128))
|
|
7559
7559
|
]))), 128))
|
|
7560
7560
|
], 2),
|
|
7561
|
-
k(t).footer && !k(c) ? (l(),
|
|
7561
|
+
k(t).footer && !k(c) ? (l(), s("div", {
|
|
7562
7562
|
key: 2,
|
|
7563
7563
|
class: h(S.value)
|
|
7564
7564
|
}, [
|
|
@@ -7581,7 +7581,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7581
7581
|
},
|
|
7582
7582
|
emits: ["remove-filter", "clear-all"],
|
|
7583
7583
|
setup(e, { emit: a }) {
|
|
7584
|
-
const t = e, n = a,
|
|
7584
|
+
const t = e, n = a, o = m(() => t.activeFilters.map((c) => ({
|
|
7585
7585
|
label: `${c.columnLabel}: ${c.valueLabel}`,
|
|
7586
7586
|
closable: !0,
|
|
7587
7587
|
color: "primary",
|
|
@@ -7593,7 +7593,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7593
7593
|
}, d = () => {
|
|
7594
7594
|
n("clear-all");
|
|
7595
7595
|
};
|
|
7596
|
-
return (c, b) => e.activeFilters.length > 0 ? (l(),
|
|
7596
|
+
return (c, b) => e.activeFilters.length > 0 ? (l(), s("div", Lr, [
|
|
7597
7597
|
i("div", Tr, [
|
|
7598
7598
|
i("div", Xr, [
|
|
7599
7599
|
L(T, {
|
|
@@ -7604,7 +7604,7 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7604
7604
|
i("span", null, "Активные фильтры (" + A(e.activeFilters.length) + ")", 1)
|
|
7605
7605
|
]),
|
|
7606
7606
|
L(Tl, {
|
|
7607
|
-
tags:
|
|
7607
|
+
tags: o.value,
|
|
7608
7608
|
variant: "default",
|
|
7609
7609
|
color: "primary",
|
|
7610
7610
|
onRemove: r
|
|
@@ -7626,14 +7626,14 @@ const Jl = ["data-position", "data-width", "data-variant", "data-disabled"], _l
|
|
|
7626
7626
|
}
|
|
7627
7627
|
};
|
|
7628
7628
|
function jr(e, a) {
|
|
7629
|
-
const t = M([]), n = M(!1),
|
|
7629
|
+
const t = M([]), n = M(!1), o = M(null), r = () => {
|
|
7630
7630
|
t.value = [...e.data];
|
|
7631
7631
|
}, d = async (b = {}) => {
|
|
7632
7632
|
if (!e.apiUrl) {
|
|
7633
|
-
|
|
7633
|
+
o.value = "API URL не указан";
|
|
7634
7634
|
return;
|
|
7635
7635
|
}
|
|
7636
|
-
n.value = !0,
|
|
7636
|
+
n.value = !0, o.value = null;
|
|
7637
7637
|
try {
|
|
7638
7638
|
const y = new URLSearchParams({
|
|
7639
7639
|
...e.apiParams,
|
|
@@ -7649,7 +7649,7 @@ function jr(e, a) {
|
|
|
7649
7649
|
const v = await u.json();
|
|
7650
7650
|
t.value = Array.isArray(v) ? v : v.data || [], a("data-loaded", t.value);
|
|
7651
7651
|
} catch (y) {
|
|
7652
|
-
|
|
7652
|
+
o.value = y.message, a("error", y);
|
|
7653
7653
|
} finally {
|
|
7654
7654
|
n.value = !1;
|
|
7655
7655
|
}
|
|
@@ -7659,36 +7659,36 @@ function jr(e, a) {
|
|
|
7659
7659
|
}, { immediate: !0, deep: !0 }), {
|
|
7660
7660
|
localData: t,
|
|
7661
7661
|
loading: n,
|
|
7662
|
-
error:
|
|
7662
|
+
error: o,
|
|
7663
7663
|
loadData: c
|
|
7664
7664
|
};
|
|
7665
7665
|
}
|
|
7666
|
-
function
|
|
7666
|
+
function Fr(e, a, t) {
|
|
7667
7667
|
var b, y;
|
|
7668
|
-
const n = M(((b = a.defaultSort) == null ? void 0 : b.column) || null),
|
|
7668
|
+
const n = M(((b = a.defaultSort) == null ? void 0 : b.column) || null), o = M(((y = a.defaultSort) == null ? void 0 : y.direction) || "asc"), r = m(() => !n.value || !a.sortable ? e.value : [...e.value].sort((u, v) => {
|
|
7669
7669
|
const x = u[n.value], z = v[n.value];
|
|
7670
7670
|
if (x == null) return 1;
|
|
7671
7671
|
if (z == null) return -1;
|
|
7672
7672
|
if (typeof x == "number" && typeof z == "number")
|
|
7673
|
-
return
|
|
7673
|
+
return o.value === "asc" ? x - z : z - x;
|
|
7674
7674
|
const p = String(x).toLowerCase(), w = String(z).toLowerCase();
|
|
7675
|
-
return
|
|
7675
|
+
return o.value === "asc" ? p.localeCompare(w) : w.localeCompare(p);
|
|
7676
7676
|
}));
|
|
7677
7677
|
return {
|
|
7678
7678
|
sortBy: n,
|
|
7679
|
-
sortDirection:
|
|
7679
|
+
sortDirection: o,
|
|
7680
7680
|
sortedData: r,
|
|
7681
7681
|
toggleSort: (f) => {
|
|
7682
|
-
n.value === f ?
|
|
7682
|
+
n.value === f ? o.value === "asc" ? o.value = "desc" : o.value === "desc" && (n.value = null, o.value = "asc") : (n.value = f, o.value = "asc"), t("sort", { column: n.value, direction: o.value });
|
|
7683
7683
|
},
|
|
7684
7684
|
resetSort: () => {
|
|
7685
7685
|
var f, u;
|
|
7686
|
-
n.value = ((f = a.defaultSort) == null ? void 0 : f.column) || null,
|
|
7686
|
+
n.value = ((f = a.defaultSort) == null ? void 0 : f.column) || null, o.value = ((u = a.defaultSort) == null ? void 0 : u.direction) || "asc";
|
|
7687
7687
|
}
|
|
7688
7688
|
};
|
|
7689
7689
|
}
|
|
7690
|
-
function
|
|
7691
|
-
const
|
|
7690
|
+
function Or(e, a, t, n = null) {
|
|
7691
|
+
const o = M({}), r = M(""), d = n || e, c = m(() => {
|
|
7692
7692
|
let p = [...e.value];
|
|
7693
7693
|
if (r.value && a.searchable) {
|
|
7694
7694
|
const w = r.value.toLowerCase();
|
|
@@ -7697,13 +7697,13 @@ function Er(e, a, t, n = null) {
|
|
|
7697
7697
|
return S != null && String(S).toLowerCase().includes(w);
|
|
7698
7698
|
}));
|
|
7699
7699
|
}
|
|
7700
|
-
return a.filterable && Object.keys(
|
|
7700
|
+
return a.filterable && Object.keys(o.value).length > 0 && (p = p.filter((w) => Object.entries(o.value).every(([C, $]) => !$ || $ === "" ? !0 : w[C] === $))), p;
|
|
7701
7701
|
}), b = (p, w) => {
|
|
7702
|
-
w ?
|
|
7702
|
+
w ? o.value[p] = w : delete o.value[p], t("filter", { column: p, value: w, filters: { ...o.value } });
|
|
7703
7703
|
}, y = () => {
|
|
7704
|
-
|
|
7704
|
+
o.value = {}, r.value = "", t("filter-clear");
|
|
7705
7705
|
}, f = (p) => {
|
|
7706
|
-
delete
|
|
7706
|
+
delete o.value[p], t("filter", { column: p, value: null, filters: { ...o.value } });
|
|
7707
7707
|
}, u = (p) => {
|
|
7708
7708
|
const w = /* @__PURE__ */ new Set();
|
|
7709
7709
|
return d.value.forEach((C) => {
|
|
@@ -7724,7 +7724,7 @@ function Er(e, a, t, n = null) {
|
|
|
7724
7724
|
{ value: "", label: "Все" },
|
|
7725
7725
|
...w
|
|
7726
7726
|
];
|
|
7727
|
-
}, x = m(() => !a.filterable || Object.keys(
|
|
7727
|
+
}, x = m(() => !a.filterable || Object.keys(o.value).length === 0 ? [] : Object.entries(o.value).map(([p, w]) => {
|
|
7728
7728
|
if (!w || w === "") return null;
|
|
7729
7729
|
const C = a.columns.find((B) => B.key === p);
|
|
7730
7730
|
if (!C) return null;
|
|
@@ -7737,7 +7737,7 @@ function Er(e, a, t, n = null) {
|
|
|
7737
7737
|
};
|
|
7738
7738
|
}).filter(Boolean)), z = m(() => x.value.length);
|
|
7739
7739
|
return {
|
|
7740
|
-
filters:
|
|
7740
|
+
filters: o,
|
|
7741
7741
|
searchQuery: r,
|
|
7742
7742
|
filteredData: c,
|
|
7743
7743
|
applyFilter: b,
|
|
@@ -7748,17 +7748,17 @@ function Er(e, a, t, n = null) {
|
|
|
7748
7748
|
activeFiltersCount: z
|
|
7749
7749
|
};
|
|
7750
7750
|
}
|
|
7751
|
-
function
|
|
7752
|
-
const n = M(1),
|
|
7751
|
+
function Er(e, a, t) {
|
|
7752
|
+
const n = M(1), o = M(a.defaultPageSize || 10), r = m(() => !a.paginated || e.value.length === 0 ? 1 : Math.ceil(e.value.length / o.value)), d = m(() => {
|
|
7753
7753
|
if (!a.paginated)
|
|
7754
7754
|
return e.value;
|
|
7755
|
-
const v = (n.value - 1) *
|
|
7755
|
+
const v = (n.value - 1) * o.value, x = v + o.value;
|
|
7756
7756
|
return e.value.slice(v, x);
|
|
7757
7757
|
}), c = m(() => {
|
|
7758
7758
|
const v = e.value.length;
|
|
7759
7759
|
if (v === 0)
|
|
7760
7760
|
return { from: 0, to: 0, total: 0 };
|
|
7761
|
-
const x = (n.value - 1) *
|
|
7761
|
+
const x = (n.value - 1) * o.value + 1, z = Math.min(n.value * o.value, v);
|
|
7762
7762
|
return { from: x, to: z, total: v };
|
|
7763
7763
|
}), b = (v) => {
|
|
7764
7764
|
v < 1 || v > r.value || (n.value = v, t("page-change", n.value));
|
|
@@ -7767,13 +7767,13 @@ function Fr(e, a, t) {
|
|
|
7767
7767
|
}, f = () => {
|
|
7768
7768
|
n.value > 1 && (n.value--, t("page-change", n.value));
|
|
7769
7769
|
}, u = (v) => {
|
|
7770
|
-
|
|
7770
|
+
o.value = v, n.value = 1, t("page-size-change", o.value);
|
|
7771
7771
|
};
|
|
7772
7772
|
return Y(() => e.value.length, () => {
|
|
7773
7773
|
n.value > r.value && (n.value = Math.max(1, r.value));
|
|
7774
7774
|
}), {
|
|
7775
7775
|
currentPage: n,
|
|
7776
|
-
pageSize:
|
|
7776
|
+
pageSize: o,
|
|
7777
7777
|
totalPages: r,
|
|
7778
7778
|
paginatedData: d,
|
|
7779
7779
|
paginationInfo: c,
|
|
@@ -7784,10 +7784,10 @@ function Fr(e, a, t) {
|
|
|
7784
7784
|
};
|
|
7785
7785
|
}
|
|
7786
7786
|
function Pr(e, a, t) {
|
|
7787
|
-
const n = M([]),
|
|
7787
|
+
const n = M([]), o = m(() => e.value.length === 0 ? !1 : n.value.length === e.value.length), r = m(() => n.value.length > 0 && n.value.length < e.value.length);
|
|
7788
7788
|
return {
|
|
7789
7789
|
selectedRows: n,
|
|
7790
|
-
allSelected:
|
|
7790
|
+
allSelected: o,
|
|
7791
7791
|
someSelected: r,
|
|
7792
7792
|
isSelected: (v) => n.value.includes(v),
|
|
7793
7793
|
toggleRow: (v) => {
|
|
@@ -7795,7 +7795,7 @@ function Pr(e, a, t) {
|
|
|
7795
7795
|
x > -1 ? n.value.splice(x, 1) : n.value.push(v), t("row-select", { id: v, selected: x === -1, selectedRows: [...n.value] });
|
|
7796
7796
|
},
|
|
7797
7797
|
selectAll: () => {
|
|
7798
|
-
|
|
7798
|
+
o.value ? (n.value = [], t("select-all", { selected: !1, selectedRows: [] })) : (n.value = e.value.map((v) => v.id), t("select-all", { selected: !0, selectedRows: [...n.value] }));
|
|
7799
7799
|
},
|
|
7800
7800
|
clearSelection: () => {
|
|
7801
7801
|
n.value = [], t("selection-clear");
|
|
@@ -7807,14 +7807,14 @@ function Pr(e, a, t) {
|
|
|
7807
7807
|
};
|
|
7808
7808
|
}
|
|
7809
7809
|
function Nr(e, a) {
|
|
7810
|
-
const t = M([]), n = m(() => e.columns.filter((u) => !t.value.includes(u.key))),
|
|
7810
|
+
const t = M([]), n = m(() => e.columns.filter((u) => !t.value.includes(u.key))), o = m(() => e.columns.map((u) => ({
|
|
7811
7811
|
...u,
|
|
7812
7812
|
visible: !t.value.includes(u.key)
|
|
7813
7813
|
})));
|
|
7814
7814
|
return {
|
|
7815
7815
|
hiddenColumns: t,
|
|
7816
7816
|
visibleColumns: n,
|
|
7817
|
-
columnsWithVisibility:
|
|
7817
|
+
columnsWithVisibility: o,
|
|
7818
7818
|
toggleColumn: (u) => {
|
|
7819
7819
|
const v = t.value.indexOf(u);
|
|
7820
7820
|
v > -1 ? t.value.splice(v, 1) : t.value.push(u), a("column-toggle", {
|
|
@@ -7977,7 +7977,7 @@ const Rr = {
|
|
|
7977
7977
|
"selection-clear"
|
|
7978
7978
|
],
|
|
7979
7979
|
setup(e, { emit: a }) {
|
|
7980
|
-
const t = ne(), n = e,
|
|
7980
|
+
const t = ne(), n = e, o = a, { localData: r, loading: d, error: c, loadData: b } = jr(n, o), { sortBy: y, sortDirection: f, sortedData: u, toggleSort: v } = Fr(r, n, o), {
|
|
7981
7981
|
searchQuery: x,
|
|
7982
7982
|
filters: z,
|
|
7983
7983
|
filteredData: p,
|
|
@@ -7987,25 +7987,25 @@ const Rr = {
|
|
|
7987
7987
|
activeFiltersCount: S,
|
|
7988
7988
|
clearFilters: V,
|
|
7989
7989
|
clearColumnFilter: B
|
|
7990
|
-
} =
|
|
7991
|
-
currentPage:
|
|
7990
|
+
} = Or(u, n, o, r), {
|
|
7991
|
+
currentPage: F,
|
|
7992
7992
|
pageSize: U,
|
|
7993
7993
|
totalPages: ee,
|
|
7994
7994
|
paginatedData: Ae,
|
|
7995
7995
|
paginationInfo: De,
|
|
7996
7996
|
changePageSize: Gr
|
|
7997
|
-
} =
|
|
7998
|
-
selectedRows:
|
|
7997
|
+
} = Er(p, n, o), {
|
|
7998
|
+
selectedRows: Ee,
|
|
7999
7999
|
allSelected: Wr,
|
|
8000
8000
|
someSelected: Qr,
|
|
8001
8001
|
isSelected: Yr,
|
|
8002
|
-
toggleRow:
|
|
8003
|
-
selectAll:
|
|
8004
|
-
} = Pr(p, n,
|
|
8002
|
+
toggleRow: ot,
|
|
8003
|
+
selectAll: st
|
|
8004
|
+
} = Pr(p, n, o), {
|
|
8005
8005
|
visibleColumns: rt,
|
|
8006
8006
|
columnsWithVisibility: it,
|
|
8007
8007
|
toggleColumn: dt
|
|
8008
|
-
} = Nr(n,
|
|
8008
|
+
} = Nr(n, o), ut = m(() => n.searchable || n.columnToggle || !!t["toolbar-actions"]), Pe = m(() => n.groupBy ? p.value : Ae.value), ct = (H) => C(H), mt = ({ column: H, value: Z }) => {
|
|
8009
8009
|
w(H, Z);
|
|
8010
8010
|
}, ft = (H) => {
|
|
8011
8011
|
B(H);
|
|
@@ -8014,18 +8014,18 @@ const Rr = {
|
|
|
8014
8014
|
}, gt = ({ column: H, direction: Z }) => {
|
|
8015
8015
|
v(H);
|
|
8016
8016
|
}, vt = ({ id: H, selected: Z }) => {
|
|
8017
|
-
|
|
8017
|
+
ot(H);
|
|
8018
8018
|
}, ht = (H) => {
|
|
8019
|
-
|
|
8019
|
+
st();
|
|
8020
8020
|
};
|
|
8021
|
-
return (H, Z) => (l(),
|
|
8021
|
+
return (H, Z) => (l(), s("div", Rr, [
|
|
8022
8022
|
e.showToolbar && ut.value ? (l(), D(tr, {
|
|
8023
8023
|
key: 0,
|
|
8024
8024
|
searchQuery: k(x),
|
|
8025
|
-
"onUpdate:searchQuery": Z[0] || (Z[0] = (W) =>
|
|
8025
|
+
"onUpdate:searchQuery": Z[0] || (Z[0] = (W) => oe(x) ? x.value = W : null),
|
|
8026
8026
|
size: e.size,
|
|
8027
8027
|
searchable: e.searchable,
|
|
8028
|
-
selectedCount: k(
|
|
8028
|
+
selectedCount: k(Ee).length,
|
|
8029
8029
|
columnToggle: e.columnToggle,
|
|
8030
8030
|
columns: k(it),
|
|
8031
8031
|
onToggleColumn: k(dt)
|
|
@@ -8041,12 +8041,12 @@ const Rr = {
|
|
|
8041
8041
|
onRemoveFilter: ft,
|
|
8042
8042
|
onClearAll: bt
|
|
8043
8043
|
}, null, 8, ["activeFilters"])) : g("", !0),
|
|
8044
|
-
L(
|
|
8044
|
+
L(eo, {
|
|
8045
8045
|
columns: k(rt),
|
|
8046
8046
|
data: Pe.value,
|
|
8047
8047
|
sortBy: k(y),
|
|
8048
8048
|
sortDirection: k(f),
|
|
8049
|
-
selectedRows: k(
|
|
8049
|
+
selectedRows: k(Ee),
|
|
8050
8050
|
selectable: e.selectable,
|
|
8051
8051
|
actions: e.actions,
|
|
8052
8052
|
filterable: e.filterable,
|
|
@@ -8078,10 +8078,10 @@ const Rr = {
|
|
|
8078
8078
|
]), 1032, ["columns", "data", "sortBy", "sortDirection", "selectedRows", "selectable", "actions", "filterable", "filters", "groupBy", "height", "stickyHeader", "striped", "bordered", "hoverable", "dense", "size", "loading"]),
|
|
8079
8079
|
e.paginated && !e.loading && Pe.value.length > 0 ? (l(), D(nr, {
|
|
8080
8080
|
key: 2,
|
|
8081
|
-
currentPage: k(
|
|
8082
|
-
"onUpdate:currentPage": Z[4] || (Z[4] = (W) =>
|
|
8081
|
+
currentPage: k(F),
|
|
8082
|
+
"onUpdate:currentPage": Z[4] || (Z[4] = (W) => oe(F) ? F.value = W : null),
|
|
8083
8083
|
pageSize: k(U),
|
|
8084
|
-
"onUpdate:pageSize": Z[5] || (Z[5] = (W) =>
|
|
8084
|
+
"onUpdate:pageSize": Z[5] || (Z[5] = (W) => oe(U) ? U.value = W : null),
|
|
8085
8085
|
size: e.size,
|
|
8086
8086
|
totalPages: k(ee),
|
|
8087
8087
|
pageSizeOptions: e.pageSizeOptions,
|
|
@@ -8144,7 +8144,7 @@ const Rr = {
|
|
|
8144
8144
|
},
|
|
8145
8145
|
emits: ["update:modelValue"],
|
|
8146
8146
|
setup(e, { emit: a }) {
|
|
8147
|
-
const t = e, n = a,
|
|
8147
|
+
const t = e, n = a, o = M(null), r = M(null), d = m(() => [
|
|
8148
8148
|
"dx-tabs",
|
|
8149
8149
|
"flex",
|
|
8150
8150
|
"items-center",
|
|
@@ -8201,24 +8201,24 @@ const Rr = {
|
|
|
8201
8201
|
n("update:modelValue", p);
|
|
8202
8202
|
};
|
|
8203
8203
|
return Y(() => t.modelValue, async () => {
|
|
8204
|
-
if (t.scrollable &&
|
|
8204
|
+
if (t.scrollable && o.value) {
|
|
8205
8205
|
await ce();
|
|
8206
|
-
const p =
|
|
8206
|
+
const p = o.value.querySelector('.tab-btn[aria-selected="true"]');
|
|
8207
8207
|
p && p.scrollIntoView({
|
|
8208
8208
|
behavior: "smooth",
|
|
8209
8209
|
block: "nearest",
|
|
8210
8210
|
inline: "center"
|
|
8211
8211
|
});
|
|
8212
8212
|
}
|
|
8213
|
-
}, { immediate: !0 }), (p, w) => (l(),
|
|
8213
|
+
}, { immediate: !0 }), (p, w) => (l(), s("div", {
|
|
8214
8214
|
ref_key: "tabsContainer",
|
|
8215
|
-
ref:
|
|
8215
|
+
ref: o,
|
|
8216
8216
|
class: h(d.value),
|
|
8217
8217
|
"data-component": "DXTabs",
|
|
8218
8218
|
"data-variant": e.variant,
|
|
8219
8219
|
"data-align": e.align
|
|
8220
8220
|
}, [
|
|
8221
|
-
(l(!0),
|
|
8221
|
+
(l(!0), s(j, null, P(e.tabs, (C) => (l(), s("button", {
|
|
8222
8222
|
key: C.value,
|
|
8223
8223
|
class: h([c(C), "group"]),
|
|
8224
8224
|
onClick: ($) => z(C.value),
|
|
@@ -8240,7 +8240,7 @@ const Rr = {
|
|
|
8240
8240
|
le(i("span", { class: "tab-label whitespace-nowrap" }, A(C.label), 513), [
|
|
8241
8241
|
[Le, !u(C)]
|
|
8242
8242
|
]),
|
|
8243
|
-
C.count !== void 0 && v() ? (l(),
|
|
8243
|
+
C.count !== void 0 && v() ? (l(), s("span", {
|
|
8244
8244
|
key: 1,
|
|
8245
8245
|
class: h(["tab-badge inline-flex items-center justify-center min-w-[24px] px-2 py-1 text-[11px] rounded-full flex-shrink-0", b(C)])
|
|
8246
8246
|
}, A(C.count), 3)) : g("", !0)
|
|
@@ -8250,7 +8250,7 @@ const Rr = {
|
|
|
8250
8250
|
}
|
|
8251
8251
|
}, Ki = /* @__PURE__ */ J(Kr, [["__scopeId", "data-v-89f7ffb3"]]);
|
|
8252
8252
|
function Gi(e, a) {
|
|
8253
|
-
const t = M(!1), n = M(!1),
|
|
8253
|
+
const t = M(!1), n = M(!1), o = () => {
|
|
8254
8254
|
if (!e.value) return;
|
|
8255
8255
|
const { scrollLeft: y, scrollWidth: f, clientWidth: u } = e.value;
|
|
8256
8256
|
t.value = y > 0, n.value = y + u < f - 1;
|
|
@@ -8269,16 +8269,16 @@ function Gi(e, a) {
|
|
|
8269
8269
|
};
|
|
8270
8270
|
let b = null;
|
|
8271
8271
|
return _(() => {
|
|
8272
|
-
e.value && a.value && (b = () =>
|
|
8272
|
+
e.value && a.value && (b = () => o(), e.value.addEventListener("scroll", b), setTimeout(o, 0), window.addEventListener("resize", o));
|
|
8273
8273
|
}), fe(() => {
|
|
8274
|
-
e.value && b && (e.value.removeEventListener("scroll", b), window.removeEventListener("resize",
|
|
8274
|
+
e.value && b && (e.value.removeEventListener("scroll", b), window.removeEventListener("resize", o));
|
|
8275
8275
|
}), {
|
|
8276
8276
|
canScrollLeft: t,
|
|
8277
8277
|
canScrollRight: n,
|
|
8278
8278
|
scrollLeft: r,
|
|
8279
8279
|
scrollRight: d,
|
|
8280
8280
|
scrollToActiveTab: c,
|
|
8281
|
-
updateScrollState:
|
|
8281
|
+
updateScrollState: o
|
|
8282
8282
|
};
|
|
8283
8283
|
}
|
|
8284
8284
|
const Wi = {
|
|
@@ -8342,7 +8342,7 @@ const Wi = {
|
|
|
8342
8342
|
iconAnimation: "wiggle"
|
|
8343
8343
|
},
|
|
8344
8344
|
visibility: {
|
|
8345
|
-
activeIcon:
|
|
8345
|
+
activeIcon: Oe,
|
|
8346
8346
|
inactiveIcon: Ct,
|
|
8347
8347
|
activeLabel: "Visible",
|
|
8348
8348
|
inactiveLabel: "Hidden",
|
|
@@ -8396,8 +8396,8 @@ export {
|
|
|
8396
8396
|
fi as DXAvatar,
|
|
8397
8397
|
ba as DXBackdrop,
|
|
8398
8398
|
ie as DXBadge,
|
|
8399
|
-
|
|
8400
|
-
|
|
8399
|
+
eo as DXBaseTable,
|
|
8400
|
+
oi as DXBlockquote,
|
|
8401
8401
|
mi as DXBox,
|
|
8402
8402
|
Ai as DXBreadcrumb,
|
|
8403
8403
|
pa as DXButton,
|
|
@@ -8410,7 +8410,7 @@ export {
|
|
|
8410
8410
|
ri as DXContainer,
|
|
8411
8411
|
Bi as DXCopyField,
|
|
8412
8412
|
Ii as DXDatePicker,
|
|
8413
|
-
|
|
8413
|
+
Fe as DXDivider,
|
|
8414
8414
|
ue as DXDropdown,
|
|
8415
8415
|
Ze as DXDropdownDivider,
|
|
8416
8416
|
de as DXDropdownItem,
|
|
@@ -8429,19 +8429,19 @@ export {
|
|
|
8429
8429
|
Mi as DXInputGroup,
|
|
8430
8430
|
ji as DXInputMask,
|
|
8431
8431
|
li as DXLabel,
|
|
8432
|
-
|
|
8432
|
+
si as DXList,
|
|
8433
8433
|
fl as DXLoader,
|
|
8434
8434
|
zi as DXMenu,
|
|
8435
8435
|
Hi as DXModal,
|
|
8436
|
-
|
|
8437
|
-
|
|
8436
|
+
Cs as DXPagination,
|
|
8437
|
+
Fi as DXPasswordInput,
|
|
8438
8438
|
hi as DXProgress,
|
|
8439
8439
|
zl as DXRadio,
|
|
8440
|
-
|
|
8441
|
-
|
|
8440
|
+
Oi as DXRadioCard,
|
|
8441
|
+
Ei as DXRadioGroup,
|
|
8442
8442
|
In as DXSearchSelect,
|
|
8443
8443
|
Pi as DXSegmentedControl,
|
|
8444
|
-
|
|
8444
|
+
qs as DXSelect,
|
|
8445
8445
|
Zi as DXSidebarMenu,
|
|
8446
8446
|
Ie as DXSidebarMenuItem,
|
|
8447
8447
|
pi as DXSkeleton,
|
|
@@ -8467,8 +8467,8 @@ export {
|
|
|
8467
8467
|
ta as SLIDE_RIGHT_TRANSITION,
|
|
8468
8468
|
la as SLIDE_UP_TRANSITION,
|
|
8469
8469
|
Ke as TOGGLE_PRESETS,
|
|
8470
|
-
|
|
8471
|
-
|
|
8470
|
+
sa as TOOLTIP_CUSTOM_TRANSITION,
|
|
8471
|
+
E as VARIANT_CONFIGS,
|
|
8472
8472
|
Yi as buttonVariantProp,
|
|
8473
8473
|
_i as disabledProp,
|
|
8474
8474
|
ad as errorProp,
|
|
@@ -8487,15 +8487,15 @@ export {
|
|
|
8487
8487
|
N as useSize,
|
|
8488
8488
|
Nr as useTableColumns,
|
|
8489
8489
|
jr as useTableData,
|
|
8490
|
-
|
|
8491
|
-
|
|
8490
|
+
Or as useTableFilter,
|
|
8491
|
+
Er as useTablePagination,
|
|
8492
8492
|
Pr as useTableSelection,
|
|
8493
|
-
|
|
8493
|
+
Fr as useTableSort,
|
|
8494
8494
|
Gi as useTabsScroll,
|
|
8495
8495
|
nd as useTogglePreset,
|
|
8496
8496
|
Pt as useTooltipArrow,
|
|
8497
|
-
|
|
8498
|
-
|
|
8497
|
+
oa as useTooltipCustomTransition,
|
|
8498
|
+
Et as useTooltipPosition,
|
|
8499
8499
|
_e as useTransition,
|
|
8500
8500
|
qt as useVariantBadge,
|
|
8501
8501
|
Ye as useVariantButton,
|
|
@@ -8504,6 +8504,6 @@ export {
|
|
|
8504
8504
|
Ht as useVariantDropdownItem,
|
|
8505
8505
|
ei as useVariantIcon,
|
|
8506
8506
|
Rt as useVariantToggle,
|
|
8507
|
-
|
|
8507
|
+
Ot as useVariantTooltip,
|
|
8508
8508
|
Qi as variantProp
|
|
8509
8509
|
};
|