@das-fed/ui 7.1.0-qatar.1 → 7.1.0-qatar.2
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/package.json +5 -5
- package/packages/business-components/area-phone-select/index.js +129 -118
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/style.css +1 -1
- package/packages/business-components/area-phone-select/style.css.gz +0 -0
- package/packages/business-components/area-phone-select/theme/base.d.ts +10 -0
- package/packages/business-components/payment/index.js +266 -277
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/style.css.gz +0 -0
- package/packages/components/audio-video/index.js +111 -108
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/audio-video/style.css +1 -1
- package/packages/components/breadcrumb/index.js +45 -44
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +205 -206
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/button/theme/index.d.ts +5 -7
- package/packages/components/calendar/index.js +98 -97
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/calendar/style.css +1 -1
- package/packages/components/calendar/style.css.gz +0 -0
- package/packages/components/cascader/index.js +131 -116
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/cascader/theme/base.d.ts +7 -0
- package/packages/components/checkbox/index.js +155 -153
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/checkbox/theme/index.d.ts +5 -4
- package/packages/components/color-picker/index.js +90 -83
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/color-picker/theme/index.d.ts +7 -0
- package/packages/components/custom-search-item/index.js +18 -25
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +353 -344
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/date-picker/theme/base.d.ts +4 -0
- package/packages/components/image-upload/index.js +187 -183
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-upload/theme/index.d.ts +9 -0
- package/packages/components/image-viewer/index.js +481 -477
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/image-viewer/theme/index.d.ts +9 -0
- package/packages/components/input/index.js +142 -140
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input/theme/base.d.ts +1 -0
- package/packages/components/input-dialog-select/index.js +84 -87
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-dialog-select/theme/index.d.ts +0 -4
- package/packages/components/input-number/index.js +115 -113
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/input-number/theme/index.d.ts +1 -0
- package/packages/components/map/index.js +243 -241
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/map/style.css.gz +0 -0
- package/packages/components/notification/index.js +27 -26
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/notification/style.css +1 -1
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/pagination/index.js +176 -153
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/pagination/theme/index.d.ts +8 -0
- package/packages/components/radio/index.js +143 -144
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/radio/theme/index.d.ts +2 -4
- package/packages/components/radio-tabs/index.js +63 -60
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/style.css +1 -1
- package/packages/components/radio-tabs/style.css.gz +0 -0
- package/packages/components/search/index.js +73 -70
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search/theme/index.d.ts +2 -0
- package/packages/components/search-form/index.js +582 -584
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/search-form/theme/index.d.ts +1 -4
- package/packages/components/select/index.js +324 -311
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select/theme/base.d.ts +6 -0
- package/packages/components/select-list/index.js +230 -229
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +198 -189
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/src/hooks/use-error.d.ts +5 -6
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/theme/index.d.ts +21 -34
- package/packages/components/special-range-picker-year/index.js +259 -250
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/src/hooks/use-error.d.ts +5 -6
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/theme/index.d.ts +21 -34
- package/packages/components/split-panel/index.js +161 -163
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/switch/index.js +41 -32
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/switch/theme/base.d.ts +2 -0
- package/packages/components/table/index.js +1463 -1453
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/table/theme/index.d.ts +9 -0
- package/packages/components/tabs/index.js +174 -167
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tabs/theme/base.d.ts +6 -0
- package/packages/components/tree/index.js +1341 -1330
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +12 -4
- package/packages/components/tree/style.css +1 -1
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree/theme/base.d.ts +10 -0
- package/packages/components/tree-select/index.js +241 -239
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
- package/packages/components/tree-select/theme/base.d.ts +1 -0
- package/packages/components/tree-table/index.js +191 -187
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/tree-table/theme/base.d.ts +3 -0
- package/packages/components/tree-v2/index.js +1743 -1732
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +10 -0
- package/packages/components/upload/index.js +127 -121
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/upload/theme/index.d.ts +8 -9
- package/packages/components/virtual-tree/index.js +98 -71
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/style.css +1 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
- package/packages/components/virtual-tree/theme/base.d.ts +26 -0
- package/packages/components/custom-search-item/theme/index.d.ts +0 -7
|
@@ -1,158 +1,158 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/split-panel/style.css';
|
|
2
|
-
import { getCurrentScope as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { DasIconShuyoufanye as
|
|
5
|
-
import { DasIconShuzuofanye as
|
|
6
|
-
import { setThemeRule as
|
|
7
|
-
function
|
|
2
|
+
import { getCurrentScope as be, onScopeDispose as ye, getCurrentInstance as Se, onMounted as ie, nextTick as he, unref as q, ref as y, watch as V, defineComponent as Oe, computed as x, createElementBlock as z, openBlock as L, normalizeStyle as A, createElementVNode as E, renderSlot as N, createCommentVNode as P, normalizeClass as Q, createVNode as Y, withModifiers as X } from "vue";
|
|
3
|
+
import { withInstall as we } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { DasIconShuyoufanye as Ee } from "@das-fed/ui/packages/icons/shuyoufanye/index";
|
|
5
|
+
import { DasIconShuzuofanye as Te } from "@das-fed/ui/packages/icons/shuzuofanye/index";
|
|
6
|
+
import { getVar as U, setGlobalThemeRule as Ie, setThemeRule as Fe } from "@das-fed/web/packages/theme/index";
|
|
7
|
+
function G(e) {
|
|
8
8
|
var n = typeof e;
|
|
9
9
|
return e != null && (n == "object" || n == "function");
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
function
|
|
15
|
-
for (var n = e.length; n-- &&
|
|
11
|
+
var ke = typeof global == "object" && global && global.Object === Object && global, Me = typeof self == "object" && self && self.Object === Object && self, fe = ke || Me || Function("return this")(), $ = function() {
|
|
12
|
+
return fe.Date.now();
|
|
13
|
+
}, Ce = /\s/;
|
|
14
|
+
function _e(e) {
|
|
15
|
+
for (var n = e.length; n-- && Ce.test(e.charAt(n)); )
|
|
16
16
|
;
|
|
17
17
|
return n;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return e && e.slice(0,
|
|
19
|
+
var xe = /^\s+/;
|
|
20
|
+
function je(e) {
|
|
21
|
+
return e && e.slice(0, _e(e) + 1).replace(xe, "");
|
|
22
22
|
}
|
|
23
|
-
var W =
|
|
24
|
-
function
|
|
25
|
-
var n =
|
|
23
|
+
var W = fe.Symbol, ce = Object.prototype, Re = ce.hasOwnProperty, De = ce.toString, j = W ? W.toStringTag : void 0;
|
|
24
|
+
function Ne(e) {
|
|
25
|
+
var n = Re.call(e, j), t = e[j];
|
|
26
26
|
try {
|
|
27
27
|
e[j] = void 0;
|
|
28
|
-
var
|
|
28
|
+
var s = !0;
|
|
29
29
|
} catch {
|
|
30
30
|
}
|
|
31
|
-
var l =
|
|
32
|
-
return
|
|
31
|
+
var l = De.call(e);
|
|
32
|
+
return s && (n ? e[j] = t : delete e[j]), l;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
var Pe = Object.prototype, We = Pe.toString;
|
|
35
|
+
function Be(e) {
|
|
36
|
+
return We.call(e);
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return e == null ? e === void 0 ?
|
|
38
|
+
var ze = "[object Null]", Le = "[object Undefined]", Z = W ? W.toStringTag : void 0;
|
|
39
|
+
function Ae(e) {
|
|
40
|
+
return e == null ? e === void 0 ? Le : ze : Z && Z in Object(e) ? Ne(e) : Be(e);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Qe(e) {
|
|
43
43
|
return e != null && typeof e == "object";
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return typeof e == "symbol" ||
|
|
45
|
+
var Xe = "[object Symbol]";
|
|
46
|
+
function Ue(e) {
|
|
47
|
+
return typeof e == "symbol" || Qe(e) && Ae(e) == Xe;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
49
|
+
var ee = NaN, $e = /^[-+]0x[0-9a-f]+$/i, qe = /^0b[01]+$/i, Ve = /^0o[0-7]+$/i, Ge = parseInt;
|
|
50
|
+
function te(e) {
|
|
51
51
|
if (typeof e == "number")
|
|
52
52
|
return e;
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
55
|
-
if (
|
|
53
|
+
if (Ue(e))
|
|
54
|
+
return ee;
|
|
55
|
+
if (G(e)) {
|
|
56
56
|
var n = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
57
|
-
e =
|
|
57
|
+
e = G(n) ? n + "" : n;
|
|
58
58
|
}
|
|
59
59
|
if (typeof e != "string")
|
|
60
60
|
return e === 0 ? e : +e;
|
|
61
|
-
e =
|
|
62
|
-
var t =
|
|
63
|
-
return t ||
|
|
61
|
+
e = je(e);
|
|
62
|
+
var t = qe.test(e);
|
|
63
|
+
return t || Ve.test(e) ? Ge(e.slice(2), t ? 2 : 8) : $e.test(e) ? ee : +e;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
var
|
|
65
|
+
var He = "Expected a function", Ke = Math.max, Je = Math.min;
|
|
66
|
+
function Ye(e, n, t) {
|
|
67
|
+
var s, l, i, f, u, g, S = 0, a = !1, m = !1, v = !0;
|
|
68
68
|
if (typeof e != "function")
|
|
69
|
-
throw new TypeError(
|
|
70
|
-
n =
|
|
69
|
+
throw new TypeError(He);
|
|
70
|
+
n = te(n) || 0, G(t) && (a = !!t.leading, m = "maxWait" in t, i = m ? Ke(te(t.maxWait) || 0, n) : i, v = "trailing" in t ? !!t.trailing : v);
|
|
71
71
|
function d(c) {
|
|
72
|
-
var b =
|
|
73
|
-
return
|
|
72
|
+
var b = s, w = l;
|
|
73
|
+
return s = l = void 0, S = c, f = e.apply(w, b), f;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function o(c) {
|
|
76
76
|
return S = c, u = setTimeout(T, n), a ? d(c) : f;
|
|
77
77
|
}
|
|
78
78
|
function h(c) {
|
|
79
|
-
var b = c - g, w = c - S,
|
|
80
|
-
return m ?
|
|
79
|
+
var b = c - g, w = c - S, D = n - b;
|
|
80
|
+
return m ? Je(D, i - w) : D;
|
|
81
81
|
}
|
|
82
82
|
function M(c) {
|
|
83
83
|
var b = c - g, w = c - S;
|
|
84
84
|
return g === void 0 || b >= n || b < 0 || m && w >= i;
|
|
85
85
|
}
|
|
86
86
|
function T() {
|
|
87
|
-
var c =
|
|
87
|
+
var c = $();
|
|
88
88
|
if (M(c))
|
|
89
|
-
return
|
|
89
|
+
return R(c);
|
|
90
90
|
u = setTimeout(T, h(c));
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return u = void 0, v &&
|
|
92
|
+
function R(c) {
|
|
93
|
+
return u = void 0, v && s ? d(c) : (s = l = void 0, f);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
u !== void 0 && clearTimeout(u), S = 0,
|
|
95
|
+
function I() {
|
|
96
|
+
u !== void 0 && clearTimeout(u), S = 0, s = g = l = u = void 0;
|
|
97
97
|
}
|
|
98
98
|
function O() {
|
|
99
|
-
return u === void 0 ? f :
|
|
99
|
+
return u === void 0 ? f : R($());
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
var c =
|
|
103
|
-
if (
|
|
101
|
+
function F() {
|
|
102
|
+
var c = $(), b = M(c);
|
|
103
|
+
if (s = arguments, l = this, g = c, b) {
|
|
104
104
|
if (u === void 0)
|
|
105
|
-
return
|
|
105
|
+
return o(g);
|
|
106
106
|
if (m)
|
|
107
107
|
return clearTimeout(u), u = setTimeout(T, n), d(g);
|
|
108
108
|
}
|
|
109
109
|
return u === void 0 && (u = setTimeout(T, n)), f;
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return F.cancel = I, F.flush = O, F;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
114
|
-
const
|
|
113
|
+
var ne;
|
|
114
|
+
const H = typeof window < "u", Ze = (e) => typeof e == "string", et = () => {
|
|
115
115
|
};
|
|
116
|
-
|
|
117
|
-
function
|
|
118
|
-
return typeof e == "function" ? e() :
|
|
116
|
+
H && ((ne = window == null ? void 0 : window.navigator) != null && ne.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
117
|
+
function de(e) {
|
|
118
|
+
return typeof e == "function" ? e() : q(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function tt(e) {
|
|
121
121
|
return e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
function ve(e) {
|
|
124
|
+
return be() ? (ye(e), !0) : !1;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function nt(e, n = !0) {
|
|
127
|
+
Se() ? ie(e) : n ? e() : he(e);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function pe(e) {
|
|
130
130
|
var n;
|
|
131
|
-
const t =
|
|
131
|
+
const t = de(e);
|
|
132
132
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
let n, t,
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
139
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
134
|
+
const rt = H ? window : void 0, lt = H ? window.document : void 0;
|
|
135
|
+
function at(...e) {
|
|
136
|
+
let n, t, s, l;
|
|
137
|
+
if (Ze(e[0]) || Array.isArray(e[0]) ? ([t, s, l] = e, n = rt) : [n, t, s, l] = e, !n)
|
|
138
|
+
return et;
|
|
139
|
+
Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
|
|
140
140
|
const i = [], f = () => {
|
|
141
141
|
i.forEach((a) => a()), i.length = 0;
|
|
142
|
-
}, u = (a, m, v, d) => (a.addEventListener(m, v, d), () => a.removeEventListener(m, v, d)), g =
|
|
143
|
-
f(), a && i.push(...t.flatMap((v) =>
|
|
142
|
+
}, u = (a, m, v, d) => (a.addEventListener(m, v, d), () => a.removeEventListener(m, v, d)), g = V(() => [pe(n), de(l)], ([a, m]) => {
|
|
143
|
+
f(), a && i.push(...t.flatMap((v) => s.map((d) => u(a, v, d, m))));
|
|
144
144
|
}, { immediate: !0, flush: "post" }), S = () => {
|
|
145
145
|
g(), f();
|
|
146
146
|
};
|
|
147
|
-
return
|
|
147
|
+
return ve(S), S;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const t = y(),
|
|
151
|
-
return
|
|
149
|
+
function ut(e, n = !1) {
|
|
150
|
+
const t = y(), s = () => t.value = !!e();
|
|
151
|
+
return s(), nt(s, n), t;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
const
|
|
153
|
+
const re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, le = "__vueuse_ssr_handlers__";
|
|
154
|
+
re[le] = re[le] || {};
|
|
155
|
+
const ae = [
|
|
156
156
|
[
|
|
157
157
|
"requestFullscreen",
|
|
158
158
|
"exitFullscreen",
|
|
@@ -194,12 +194,12 @@ const le = [
|
|
|
194
194
|
"MSFullscreenError"
|
|
195
195
|
]
|
|
196
196
|
];
|
|
197
|
-
function
|
|
198
|
-
const { document: t =
|
|
199
|
-
let f =
|
|
200
|
-
const u =
|
|
197
|
+
function ot(e, n = {}) {
|
|
198
|
+
const { document: t = lt, autoExit: s = !1 } = n, l = t == null ? void 0 : t.querySelector("html"), i = y(!1);
|
|
199
|
+
let f = ae[0];
|
|
200
|
+
const u = ut(() => {
|
|
201
201
|
if (t) {
|
|
202
|
-
for (const h of
|
|
202
|
+
for (const h of ae)
|
|
203
203
|
if (h[1] in t)
|
|
204
204
|
return f = h, !0;
|
|
205
205
|
} else
|
|
@@ -213,35 +213,35 @@ function at(e, n = {}) {
|
|
|
213
213
|
if (!u.value)
|
|
214
214
|
return;
|
|
215
215
|
await v();
|
|
216
|
-
const h =
|
|
216
|
+
const h = pe(l);
|
|
217
217
|
h && (await h[g](), i.value = !0);
|
|
218
218
|
}
|
|
219
|
-
async function
|
|
219
|
+
async function o() {
|
|
220
220
|
i.value ? await v() : await d();
|
|
221
221
|
}
|
|
222
|
-
return t &&
|
|
222
|
+
return t && at(t, m, () => {
|
|
223
223
|
i.value = !!(t != null && t[a]);
|
|
224
|
-
}, !1),
|
|
224
|
+
}, !1), s && ve(v), {
|
|
225
225
|
isSupported: u,
|
|
226
226
|
isFullscreen: i,
|
|
227
227
|
enter: d,
|
|
228
228
|
exit: v,
|
|
229
|
-
toggle:
|
|
229
|
+
toggle: o
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var ue;
|
|
233
233
|
(function(e) {
|
|
234
234
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
235
|
-
})(
|
|
236
|
-
var
|
|
235
|
+
})(ue || (ue = {}));
|
|
236
|
+
var st = Object.defineProperty, oe = Object.getOwnPropertySymbols, it = Object.prototype.hasOwnProperty, ft = Object.prototype.propertyIsEnumerable, se = (e, n, t) => n in e ? st(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ct = (e, n) => {
|
|
237
237
|
for (var t in n || (n = {}))
|
|
238
|
-
|
|
239
|
-
if (
|
|
240
|
-
for (var t of
|
|
241
|
-
|
|
238
|
+
it.call(n, t) && se(e, t, n[t]);
|
|
239
|
+
if (oe)
|
|
240
|
+
for (var t of oe(n))
|
|
241
|
+
ft.call(n, t) && se(e, t, n[t]);
|
|
242
242
|
return e;
|
|
243
243
|
};
|
|
244
|
-
const
|
|
244
|
+
const dt = {
|
|
245
245
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
246
246
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
247
247
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -267,13 +267,13 @@ const ft = {
|
|
|
267
267
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
268
268
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
269
269
|
};
|
|
270
|
-
|
|
271
|
-
linear:
|
|
272
|
-
},
|
|
273
|
-
const
|
|
270
|
+
ct({
|
|
271
|
+
linear: tt
|
|
272
|
+
}, dt);
|
|
273
|
+
const vt = { class: "das-split-panel-second" }, pt = {
|
|
274
274
|
name: "DasSplitPanel"
|
|
275
|
-
},
|
|
276
|
-
...
|
|
275
|
+
}, mt = /* @__PURE__ */ Oe({
|
|
276
|
+
...pt,
|
|
277
277
|
props: {
|
|
278
278
|
canFold: { type: Boolean, default: !0 },
|
|
279
279
|
canDrag: { type: Boolean, default: !0 },
|
|
@@ -288,65 +288,65 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
288
288
|
},
|
|
289
289
|
emits: ["onLeft", "onRight", "onDefault", "onMouseDown", "onMouseMove", "onMouseUp"],
|
|
290
290
|
setup(e, { expose: n, emit: t }) {
|
|
291
|
-
const { isFullscreen:
|
|
291
|
+
const { isFullscreen: s } = ot(), l = e, i = t, f = y(null), u = y(null), g = x(() => {
|
|
292
292
|
var r;
|
|
293
293
|
return u != null && u.value && Number((r = u == null ? void 0 : u.value) == null ? void 0 : r.offsetWidth) - 2 || 1;
|
|
294
294
|
});
|
|
295
295
|
x(() => g.value + "px");
|
|
296
|
-
const S = y(null), a = y(), m = y(), v = y(), d = y(0),
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
const S = y(null), a = y(), m = y(), v = y(), d = y(0), o = y(0), h = y(!0), M = x(() => o.value + "px"), T = x(() => ({ width: M.value })), R = x(() => ({ left: M.value })), I = y(!1), O = y(!1);
|
|
297
|
+
V(
|
|
298
|
+
o,
|
|
299
299
|
(r, p) => {
|
|
300
|
-
r === 0 ?
|
|
300
|
+
r === 0 ? I.value = !0 : I.value = !1, r === (a == null ? void 0 : a.value) ? O.value = !0 : O.value = !1;
|
|
301
301
|
},
|
|
302
302
|
{ immediate: !0 }
|
|
303
|
-
),
|
|
303
|
+
), V(s, (r) => {
|
|
304
304
|
B();
|
|
305
305
|
});
|
|
306
|
-
const
|
|
307
|
-
|
|
306
|
+
const F = () => {
|
|
307
|
+
o.value > d.value ? (o.value = d.value, i("onDefault")) : o.value <= d.value && o.value > 0 && (o.value = 0, i("onLeft"));
|
|
308
308
|
}, c = () => {
|
|
309
|
-
|
|
309
|
+
o.value < d.value ? (o.value = d.value, i("onDefault")) : o.value >= d.value && o.value < a.value && (o.value = a.value, i("onRight"));
|
|
310
310
|
}, b = y({
|
|
311
311
|
mouseFlag: !1,
|
|
312
312
|
startX: 0,
|
|
313
313
|
startWidth: 0
|
|
314
314
|
}), w = (r) => {
|
|
315
|
-
l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth =
|
|
316
|
-
},
|
|
315
|
+
l.canDrag && (b.value.mouseFlag = !0, b.value.startX = r.clientX, b.value.startWidth = o.value, document.onmousemove = D, document.onmouseup = me, i("onMouseDown"));
|
|
316
|
+
}, D = (r) => {
|
|
317
317
|
if (r.preventDefault(), !b.value.mouseFlag) return;
|
|
318
318
|
let k = r.clientX - b.value.startX, _ = b.value.startWidth + k;
|
|
319
|
-
_ < m.value ?
|
|
320
|
-
},
|
|
319
|
+
_ < m.value ? o.value = m.value : _ > v.value ? o.value = v.value : _ > m.value && _ < v.value && (o.value = _), i("onMouseMove");
|
|
320
|
+
}, me = () => {
|
|
321
321
|
b.value.mouseFlag = !1, document.onmousemove = null, document.onmouseup = null, i("onMouseUp");
|
|
322
322
|
}, C = (r, p) => {
|
|
323
323
|
let k = 0;
|
|
324
324
|
return typeof p == "number" && p <= 1 ? k = r * p : typeof p == "number" ? k = p : k = Number(p), k;
|
|
325
|
-
},
|
|
325
|
+
}, K = () => {
|
|
326
326
|
let r = 0;
|
|
327
|
-
l.defaultSplit.first !== void 0 ? (r = C(a.value, l.defaultSplit.first), d.value = r,
|
|
328
|
-
},
|
|
329
|
-
|
|
327
|
+
l.defaultSplit.first !== void 0 ? (r = C(a.value, l.defaultSplit.first), d.value = r, o.value = r) : l.defaultSplit.second !== void 0 && (typeof l.defaultSplit.second == "number" && l.defaultSplit.second <= 1 ? r = C(a.value, 1 - l.defaultSplit.second) : r = a.value - C(a.value, l.defaultSplit.second), d.value = r, o.value = r), l.defaultClose && l.defaultClose == "first" ? o.value = 0 : l.defaultClose && l.defaultClose == "second" && (o.value = a.value);
|
|
328
|
+
}, ge = () => {
|
|
329
|
+
K();
|
|
330
330
|
};
|
|
331
|
-
let
|
|
331
|
+
let J = y(!0);
|
|
332
332
|
const B = () => {
|
|
333
333
|
var p;
|
|
334
334
|
let r = !1;
|
|
335
|
-
if (O.value && (r = !0), !!(f != null && f.value) && (a.value = Number(((p = f == null ? void 0 : f.value) == null ? void 0 : p.offsetWidth) - (g == null ? void 0 : g.value)) || 0, m.value = C(a.value, l.firstMin), v.value = a.value - C(a.value, l.secondMin), r && (
|
|
336
|
-
if (
|
|
337
|
-
|
|
335
|
+
if (O.value && (r = !0), !!(f != null && f.value) && (a.value = Number(((p = f == null ? void 0 : f.value) == null ? void 0 : p.offsetWidth) - (g == null ? void 0 : g.value)) || 0, m.value = C(a.value, l.firstMin), v.value = a.value - C(a.value, l.secondMin), r && (o.value = a.value), h.value === !0)) {
|
|
336
|
+
if (K(), J.value) {
|
|
337
|
+
J.value = !1;
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
340
|
h.value = !1;
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
return
|
|
343
|
+
return ie(() => {
|
|
344
344
|
var r;
|
|
345
|
-
h.value = !0, S.value = new ResizeObserver(
|
|
345
|
+
h.value = !0, S.value = new ResizeObserver(Ye(B, 30)), (r = S.value) == null || r.observe(f == null ? void 0 : f.value), B();
|
|
346
346
|
}), n({
|
|
347
|
-
toLeft:
|
|
347
|
+
toLeft: F,
|
|
348
348
|
toRight: c,
|
|
349
|
-
reset:
|
|
349
|
+
reset: ge
|
|
350
350
|
}), (r, p) => (L(), z(
|
|
351
351
|
"div",
|
|
352
352
|
{
|
|
@@ -363,7 +363,7 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
363
363
|
style: A(T.value)
|
|
364
364
|
},
|
|
365
365
|
[
|
|
366
|
-
|
|
366
|
+
N(r.$slots, "firstSlot", {}, void 0, !0)
|
|
367
367
|
],
|
|
368
368
|
4
|
|
369
369
|
/* STYLE */
|
|
@@ -374,21 +374,21 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
374
374
|
class: "das-split-panel-mid",
|
|
375
375
|
ref_key: "$splitLine",
|
|
376
376
|
ref: u,
|
|
377
|
-
style: A(
|
|
377
|
+
style: A(R.value)
|
|
378
378
|
},
|
|
379
379
|
[
|
|
380
380
|
r.canFold ? (L(), z("span", {
|
|
381
381
|
key: 0,
|
|
382
|
-
onClick:
|
|
382
|
+
onClick: F
|
|
383
383
|
}, [
|
|
384
|
-
|
|
384
|
+
N(r.$slots, "leftBtn", {}, () => [
|
|
385
385
|
E(
|
|
386
386
|
"span",
|
|
387
387
|
{
|
|
388
388
|
class: Q(["das-split-panel-btn left", [O.value ? "isBase" : ""]])
|
|
389
389
|
},
|
|
390
390
|
[
|
|
391
|
-
|
|
391
|
+
Y(q(Te), { size: "medium" })
|
|
392
392
|
],
|
|
393
393
|
2
|
|
394
394
|
/* CLASS */
|
|
@@ -398,7 +398,7 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
398
398
|
E(
|
|
399
399
|
"div",
|
|
400
400
|
{
|
|
401
|
-
class: Q(["das-split-panel-line", { hide:
|
|
401
|
+
class: Q(["das-split-panel-line", { hide: I.value || O.value, canDrag: l.canDrag }]),
|
|
402
402
|
onDragstart: p[0] || (p[0] = X(() => {
|
|
403
403
|
}, ["stop", "prevent"])),
|
|
404
404
|
onMousedown: X(w, ["prevent"]),
|
|
@@ -423,14 +423,14 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
423
423
|
key: 1,
|
|
424
424
|
onClick: c
|
|
425
425
|
}, [
|
|
426
|
-
|
|
426
|
+
N(r.$slots, "rightBtn", {}, () => [
|
|
427
427
|
E(
|
|
428
428
|
"span",
|
|
429
429
|
{
|
|
430
|
-
class: Q(["das-split-panel-btn right", [
|
|
430
|
+
class: Q(["das-split-panel-btn right", [I.value ? "isBase" : ""]])
|
|
431
431
|
},
|
|
432
432
|
[
|
|
433
|
-
|
|
433
|
+
Y(q(Ee), { size: "medium" })
|
|
434
434
|
],
|
|
435
435
|
2
|
|
436
436
|
/* CLASS */
|
|
@@ -441,31 +441,29 @@ const ct = { class: "das-split-panel-second" }, dt = {
|
|
|
441
441
|
4
|
|
442
442
|
/* STYLE */
|
|
443
443
|
),
|
|
444
|
-
E("div",
|
|
445
|
-
|
|
444
|
+
E("div", vt, [
|
|
445
|
+
N(r.$slots, "secondSlot", {}, void 0, !0)
|
|
446
446
|
])
|
|
447
447
|
],
|
|
448
448
|
4
|
|
449
449
|
/* STYLE */
|
|
450
450
|
));
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), gt = (e, n) => {
|
|
453
453
|
const t = e.__vccOpts || e;
|
|
454
|
-
for (const [
|
|
455
|
-
t[
|
|
454
|
+
for (const [s, l] of n)
|
|
455
|
+
t[s] = l;
|
|
456
456
|
return t;
|
|
457
|
-
},
|
|
458
|
-
"--das-ui-split-panel-color-primary": "
|
|
459
|
-
|
|
460
|
-
"--das-ui-split-panel-color-
|
|
461
|
-
// 线条色
|
|
462
|
-
"--das-ui-split-panel-color-btn": "#999999"
|
|
463
|
-
// 按钮icon色
|
|
457
|
+
}, bt = /* @__PURE__ */ gt(mt, [["__scopeId", "data-v-ba259a73"]]), yt = {
|
|
458
|
+
"--das-ui-split-panel-color-primary": U("--das-color-brand-primary"),
|
|
459
|
+
"--das-ui-split-panel-color-line": U("--das-color-border-strong"),
|
|
460
|
+
"--das-ui-split-panel-color-btn": U("--das-color-text-subtle")
|
|
464
461
|
};
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
Ie();
|
|
463
|
+
Fe(yt);
|
|
464
|
+
const Tt = we(bt), It = () => y(null), Ft = { name: "splitPanel 分割面板" };
|
|
467
465
|
export {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
Tt as DasSplitPanel,
|
|
467
|
+
It as DasSplitPanelRef,
|
|
468
|
+
Ft as default
|
|
471
469
|
};
|
|
Binary file
|
|
@@ -1,49 +1,58 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/switch/style.css';
|
|
2
2
|
import { withInstall as u } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { ElSwitch as
|
|
3
|
+
import { getVar as t, setGlobalThemeRule as m, setThemeRule as f } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { defineComponent as p, computed as d, ref as h, onMounted as _, createElementBlock as w, openBlock as b, createVNode as v, unref as x, mergeProps as S } from "vue";
|
|
5
|
+
import { ElSwitch as V } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/switch/style/css";
|
|
7
|
-
const
|
|
7
|
+
const g = { class: "das-ui-switch" }, y = {
|
|
8
8
|
inheritAttrs: !1
|
|
9
|
-
},
|
|
10
|
-
...
|
|
9
|
+
}, z = /* @__PURE__ */ p({
|
|
10
|
+
...y,
|
|
11
11
|
__name: "Index",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: { type: [Boolean, String, Number], default: !0 },
|
|
14
14
|
size: { default: "small" }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
18
|
-
return
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
|
|
16
|
+
setup(s, { expose: i }) {
|
|
17
|
+
const e = s, r = d(() => e.modelValue), c = d(() => e.size ? e.size : "small"), n = h(null);
|
|
18
|
+
return _(() => {
|
|
19
|
+
var o, l;
|
|
20
|
+
const a = (l = (o = n.value) == null ? void 0 : o.$el) == null ? void 0 : l.querySelector(".el-switch__input");
|
|
21
|
+
a && a.setAttribute("tabindex", "-1");
|
|
22
22
|
}), i({
|
|
23
|
-
$refSwitch:
|
|
24
|
-
}), (
|
|
25
|
-
|
|
23
|
+
$refSwitch: n
|
|
24
|
+
}), (a, o) => (b(), w("div", g, [
|
|
25
|
+
v(x(V), S({
|
|
26
26
|
ref_key: "$refSwitch",
|
|
27
|
-
ref:
|
|
28
|
-
modelValue:
|
|
29
|
-
"onUpdate:modelValue":
|
|
30
|
-
},
|
|
27
|
+
ref: n,
|
|
28
|
+
modelValue: r.value,
|
|
29
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => r.value = l)
|
|
30
|
+
}, a.$attrs, { size: c.value }), null, 16, ["modelValue", "size"])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
const e =
|
|
35
|
-
for (const [
|
|
36
|
-
e[
|
|
33
|
+
}), I = (s, i) => {
|
|
34
|
+
const e = s.__vccOpts || s;
|
|
35
|
+
for (const [r, c] of i)
|
|
36
|
+
e[r] = c;
|
|
37
37
|
return e;
|
|
38
|
-
},
|
|
39
|
-
"--das-ui-switch-on-color": "
|
|
40
|
-
|
|
41
|
-
"--das-ui-switch-
|
|
42
|
-
|
|
38
|
+
}, k = /* @__PURE__ */ I(z, [["__scopeId", "data-v-456ff5c0"]]), T = {
|
|
39
|
+
"--das-ui-switch-on-color": t("--das-color-brand-primary"),
|
|
40
|
+
// 开启态轨道颜色
|
|
41
|
+
"--das-ui-switch-off-color": t("--das-color-text-subtle"),
|
|
42
|
+
// 关闭态轨道颜色
|
|
43
|
+
"--das-ui-switch-action-color": t("--das-color-bg-container"),
|
|
44
|
+
// 滑块颜色
|
|
45
|
+
"--das-ui-switch-on-color-disabled": t("--das-color-brand-primary-disabled"),
|
|
46
|
+
// 禁用开启态轨道颜色
|
|
47
|
+
"--das-ui-switch-off-color-disabled": t("--das-color-border-strong"),
|
|
48
|
+
// 禁用关闭态轨道颜色
|
|
49
|
+
"--das-ui-switch-radius": t("--das-radius-pill")
|
|
50
|
+
// 开关轨道和滑块圆角
|
|
43
51
|
};
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
m();
|
|
53
|
+
f(T);
|
|
54
|
+
const R = u(k);
|
|
46
55
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
R as DasSwitch,
|
|
57
|
+
R as default
|
|
49
58
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-switch[data-v-
|
|
1
|
+
.das-ui-switch[data-v-456ff5c0]{display:inline-flex}.das-ui-switch[data-v-456ff5c0] .el-switch{--el-switch-on-color: var(--das-ui-switch-on-color);--el-switch-off-color: var(--das-ui-switch-off-color)}.das-ui-switch[data-v-456ff5c0] .el-switch.is-disabled{--el-switch-on-color: var(--das-ui-switch-on-color-disabled);--el-switch-off-color: var(--das-ui-switch-off-color-disabled);opacity:1}.das-ui-switch[data-v-456ff5c0] .el-switch .el-switch__core{border-color:var(--el-switch-off-color);border-radius:var(--das-ui-switch-radius)}.das-ui-switch[data-v-456ff5c0] .el-switch .el-switch__core .el-switch__action{background-color:var(--das-ui-switch-action-color);border-radius:var(--das-ui-switch-radius)}.das-ui-switch[data-v-456ff5c0] .el-switch.is-checked .el-switch__core{border-color:var(--el-switch-on-color)}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--small{height:16px}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--small .el-switch__core{min-width:32px}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--small .el-switch__core .el-switch__action{width:14px;height:14px;left:0}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 14px)}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--default{height:20px}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--default .el-switch__core .el-switch__action{width:18px;height:18px;left:0}.das-ui-switch[data-v-456ff5c0] .el-switch.el-switch--default.is-checked .el-switch__core .el-switch__action{left:calc(100% - 18px)}.das-ui-switch[data-v-456ff5c0] .el-switch .el-switch__core .el-switch__action .el-icon{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1686210106297'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11699'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%2064c247.424%200%20448%20200.576%20448%20448%200%2093.76-28.928%20183.296-81.92%20258.304a32%2032%200%200%201-52.256-36.96A382.048%20382.048%200%200%200%20896%20512c0-212.064-171.936-384-384-384a32%2032%200%200%201%200-64z'%20p-id='11700'%20fill='%235480F0'%3e%3c/path%3e%3c/svg%3e");background-size:cover}.das-ui-switch[data-v-456ff5c0] .el-switch .el-switch__core .el-switch__action .el-icon.is-loading{animation:rotating 1s linear infinite}.das-ui-switch[data-v-456ff5c0] .el-switch .el-switch__core .el-switch__action .el-icon svg{display:none}
|