smarteye-e-components 0.0.19 → 0.0.21
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/smarteye-e-components.js +1 -1
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +225 -224
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/recursion-device-group/index.vue.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, computed as O, openBlock as w, createElementBlock as b, renderSlot as y, createElementVNode as S, toDisplayString as P, h as T, ref as F, resolveComponent as k, createVNode as $, withCtx as C, Fragment as j, renderList as M, createBlock as W, normalizeClass as tt, createCommentVNode as H, pushScopeId as et, popScopeId as ot } from "vue";
|
|
2
2
|
var x;
|
|
3
3
|
((t) => {
|
|
4
4
|
((o) => {
|
|
5
|
-
function
|
|
5
|
+
function r(c) {
|
|
6
6
|
const i = [];
|
|
7
|
-
for (let
|
|
7
|
+
for (let a = 0; a < c; a++)
|
|
8
8
|
i.push({
|
|
9
9
|
id: "testId",
|
|
10
10
|
pid: "",
|
|
11
|
-
name: `device-${
|
|
12
|
-
online:
|
|
11
|
+
name: `device-${a}`,
|
|
12
|
+
online: a % 2 == 0,
|
|
13
13
|
channels: []
|
|
14
14
|
});
|
|
15
15
|
return i;
|
|
16
16
|
}
|
|
17
17
|
function e(c) {
|
|
18
18
|
const i = [];
|
|
19
|
-
for (let
|
|
19
|
+
for (let a = 0; a < c; a++)
|
|
20
20
|
i.push({
|
|
21
|
-
id: `groupid-${
|
|
22
|
-
name: `group-${
|
|
21
|
+
id: `groupid-${a}`,
|
|
22
|
+
name: `group-${a}`,
|
|
23
23
|
pid: "",
|
|
24
24
|
onlineCount: 0,
|
|
25
25
|
totalCount: 0,
|
|
26
|
-
devices:
|
|
27
|
-
items: e(c -
|
|
26
|
+
devices: r(10),
|
|
27
|
+
items: e(c - a - 1)
|
|
28
28
|
});
|
|
29
29
|
return i;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function s(c) {
|
|
32
32
|
return {
|
|
33
33
|
name: "hah",
|
|
34
34
|
onlineCount: 0,
|
|
@@ -36,69 +36,70 @@ var x;
|
|
|
36
36
|
items: e(c)
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
o.RandomDeviceGroup =
|
|
39
|
+
o.RandomDeviceGroup = s;
|
|
40
40
|
})(t.Test || (t.Test = {}));
|
|
41
|
-
function n(o,
|
|
41
|
+
function n(o, r) {
|
|
42
42
|
for (let e = 0; e < o.length; e++)
|
|
43
|
-
|
|
43
|
+
r(o[e]), n(o[e].items, r);
|
|
44
44
|
}
|
|
45
45
|
((o) => {
|
|
46
|
-
function
|
|
47
|
-
const
|
|
46
|
+
function r(e) {
|
|
47
|
+
const s = {}, c = {};
|
|
48
48
|
return n(e.items, (i) => {
|
|
49
|
-
|
|
50
|
-
for (let
|
|
51
|
-
c[i.devices[
|
|
49
|
+
s[i.id] = i;
|
|
50
|
+
for (let a = 0; a < i.devices.length; a++)
|
|
51
|
+
c[i.devices[a].id] = i.devices[a];
|
|
52
52
|
}), {
|
|
53
53
|
getGroup(i) {
|
|
54
|
-
return
|
|
54
|
+
return s[i];
|
|
55
55
|
},
|
|
56
56
|
getDevice(i) {
|
|
57
57
|
return c[i];
|
|
58
58
|
},
|
|
59
59
|
foreachGroup(i) {
|
|
60
|
-
for (let
|
|
61
|
-
i(
|
|
60
|
+
for (let a in s)
|
|
61
|
+
i(s[a]);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
o.AccessSession =
|
|
65
|
+
o.AccessSession = r;
|
|
66
66
|
})(t.Utils || (t.Utils = {}));
|
|
67
67
|
})(x || (x = {}));
|
|
68
|
-
const
|
|
68
|
+
const nt = G({
|
|
69
69
|
props: {
|
|
70
|
-
countInfo: Object
|
|
70
|
+
countInfo: Object,
|
|
71
|
+
controlParams: Object
|
|
71
72
|
},
|
|
72
73
|
setup(t) {
|
|
73
|
-
function n(e,
|
|
74
|
-
if (
|
|
74
|
+
function n(e, s) {
|
|
75
|
+
if (s) {
|
|
75
76
|
let c = 0;
|
|
76
|
-
return
|
|
77
|
+
return s.items.forEach((i) => {
|
|
77
78
|
c += n(e, i);
|
|
78
|
-
}), e(
|
|
79
|
+
}), e(s) + c;
|
|
79
80
|
}
|
|
80
81
|
return 0;
|
|
81
82
|
}
|
|
82
|
-
const o =
|
|
83
|
+
const o = O(() => n((e) => e.onlineCount, t.countInfo));
|
|
83
84
|
return {
|
|
84
|
-
totalCount:
|
|
85
|
+
totalCount: O(() => n((e) => e.totalCount, t.countInfo)),
|
|
85
86
|
onlineCount: o
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
const
|
|
90
|
+
const D = (t, n) => {
|
|
90
91
|
const o = t.__vccOpts || t;
|
|
91
|
-
for (const [
|
|
92
|
-
o[
|
|
92
|
+
for (const [r, e] of n)
|
|
93
|
+
o[r] = e;
|
|
93
94
|
return o;
|
|
94
|
-
},
|
|
95
|
-
function
|
|
96
|
-
return
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
}, rt = { class: "root" }, st = { class: "count-show" };
|
|
96
|
+
function it(t, n, o, r, e, s) {
|
|
97
|
+
return w(), b("div", rt, [
|
|
98
|
+
y(t.$slots, "default", {}, void 0, !0),
|
|
99
|
+
S("span", st, P(t.onlineCount) + "/" + P(t.totalCount), 1)
|
|
99
100
|
]);
|
|
100
101
|
}
|
|
101
|
-
const K = /* @__PURE__ */
|
|
102
|
+
const K = /* @__PURE__ */ D(nt, [["render", it], ["__scopeId", "data-v-56ab9f59"]]), q = Object.freeze(
|
|
102
103
|
{
|
|
103
104
|
left: 0,
|
|
104
105
|
top: 0,
|
|
@@ -128,19 +129,19 @@ const Q = Object.freeze({
|
|
|
128
129
|
...Q,
|
|
129
130
|
...J
|
|
130
131
|
});
|
|
131
|
-
function
|
|
132
|
+
function ct(t, n) {
|
|
132
133
|
const o = {
|
|
133
134
|
...t
|
|
134
135
|
};
|
|
135
|
-
for (const
|
|
136
|
-
const e = n[
|
|
137
|
-
|
|
136
|
+
for (const r in n) {
|
|
137
|
+
const e = n[r], s = typeof e;
|
|
138
|
+
r in Q ? (e === null || e && (s === "string" || s === "number")) && (o[r] = e) : s === typeof o[r] && (o[r] = r === "rotate" ? e % 4 : e);
|
|
138
139
|
}
|
|
139
140
|
return o;
|
|
140
141
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
143
|
-
n.split(
|
|
142
|
+
const at = /[\s,]+/;
|
|
143
|
+
function lt(t, n) {
|
|
144
|
+
n.split(at).forEach((o) => {
|
|
144
145
|
switch (o.trim()) {
|
|
145
146
|
case "horizontal":
|
|
146
147
|
t.hFlip = !0;
|
|
@@ -151,16 +152,16 @@ function ht(t, n) {
|
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function ut(t, n = 0) {
|
|
155
156
|
const o = t.replace(/^-?[0-9.]*/, "");
|
|
156
|
-
function
|
|
157
|
+
function r(e) {
|
|
157
158
|
for (; e < 0; )
|
|
158
159
|
e += 4;
|
|
159
160
|
return e % 4;
|
|
160
161
|
}
|
|
161
162
|
if (o === "") {
|
|
162
163
|
const e = parseInt(t);
|
|
163
|
-
return isNaN(e) ? 0 :
|
|
164
|
+
return isNaN(e) ? 0 : r(e);
|
|
164
165
|
} else if (o !== t) {
|
|
165
166
|
let e = 0;
|
|
166
167
|
switch (o) {
|
|
@@ -171,13 +172,13 @@ function pt(t, n = 0) {
|
|
|
171
172
|
e = 90;
|
|
172
173
|
}
|
|
173
174
|
if (e) {
|
|
174
|
-
let
|
|
175
|
-
return isNaN(
|
|
175
|
+
let s = parseFloat(t.slice(0, t.length - o.length));
|
|
176
|
+
return isNaN(s) ? 0 : (s = s / e, s % 1 === 0 ? r(s) : 0);
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
return n;
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const dt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ht = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
181
182
|
function L(t, n, o) {
|
|
182
183
|
if (n === 1)
|
|
183
184
|
return t;
|
|
@@ -185,27 +186,27 @@ function L(t, n, o) {
|
|
|
185
186
|
return Math.ceil(t * n * o) / o;
|
|
186
187
|
if (typeof t != "string")
|
|
187
188
|
return t;
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
189
|
+
const r = t.split(dt);
|
|
190
|
+
if (r === null || !r.length)
|
|
190
191
|
return t;
|
|
191
192
|
const e = [];
|
|
192
|
-
let
|
|
193
|
+
let s = r.shift(), c = ht.test(s);
|
|
193
194
|
for (; ; ) {
|
|
194
195
|
if (c) {
|
|
195
|
-
const i = parseFloat(
|
|
196
|
-
isNaN(i) ? e.push(
|
|
196
|
+
const i = parseFloat(s);
|
|
197
|
+
isNaN(i) ? e.push(s) : e.push(Math.ceil(i * n * o) / o);
|
|
197
198
|
} else
|
|
198
|
-
e.push(
|
|
199
|
-
if (
|
|
199
|
+
e.push(s);
|
|
200
|
+
if (s = r.shift(), s === void 0)
|
|
200
201
|
return e.join("");
|
|
201
202
|
c = !c;
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function ft(t, n) {
|
|
205
206
|
const o = {
|
|
206
207
|
...z,
|
|
207
208
|
...t
|
|
208
|
-
},
|
|
209
|
+
}, r = {
|
|
209
210
|
...X,
|
|
210
211
|
...n
|
|
211
212
|
}, e = {
|
|
@@ -214,20 +215,20 @@ function vt(t, n) {
|
|
|
214
215
|
width: o.width,
|
|
215
216
|
height: o.height
|
|
216
217
|
};
|
|
217
|
-
let
|
|
218
|
-
[o,
|
|
219
|
-
const h = [],
|
|
220
|
-
let
|
|
221
|
-
|
|
218
|
+
let s = o.body;
|
|
219
|
+
[o, r].forEach((p) => {
|
|
220
|
+
const h = [], f = p.hFlip, l = p.vFlip;
|
|
221
|
+
let m = p.rotate;
|
|
222
|
+
f ? l ? m += 2 : (h.push(
|
|
222
223
|
"translate(" + (e.width + e.left).toString() + " " + (0 - e.top).toString() + ")"
|
|
223
|
-
), h.push("scale(-1 1)"), e.top = e.left = 0) :
|
|
224
|
+
), h.push("scale(-1 1)"), e.top = e.left = 0) : l && (h.push(
|
|
224
225
|
"translate(" + (0 - e.left).toString() + " " + (e.height + e.top).toString() + ")"
|
|
225
226
|
), h.push("scale(1 -1)"), e.top = e.left = 0);
|
|
226
|
-
let
|
|
227
|
-
switch (
|
|
227
|
+
let _;
|
|
228
|
+
switch (m < 0 && (m -= Math.floor(m / 4) * 4), m = m % 4, m) {
|
|
228
229
|
case 1:
|
|
229
|
-
|
|
230
|
-
"rotate(90 " +
|
|
230
|
+
_ = e.height / 2 + e.top, h.unshift(
|
|
231
|
+
"rotate(90 " + _.toString() + " " + _.toString() + ")"
|
|
231
232
|
);
|
|
232
233
|
break;
|
|
233
234
|
case 2:
|
|
@@ -236,78 +237,78 @@ function vt(t, n) {
|
|
|
236
237
|
);
|
|
237
238
|
break;
|
|
238
239
|
case 3:
|
|
239
|
-
|
|
240
|
-
"rotate(-90 " +
|
|
240
|
+
_ = e.width / 2 + e.left, h.unshift(
|
|
241
|
+
"rotate(-90 " + _.toString() + " " + _.toString() + ")"
|
|
241
242
|
);
|
|
242
243
|
break;
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
m % 2 === 1 && (e.left !== e.top && (_ = e.left, e.left = e.top, e.top = _), e.width !== e.height && (_ = e.width, e.width = e.height, e.height = _)), h.length && (s = '<g transform="' + h.join(" ") + '">' + s + "</g>");
|
|
245
246
|
});
|
|
246
|
-
const c =
|
|
247
|
-
let
|
|
248
|
-
return c === null ? (u = i === null ? "1em" : i === "auto" ? d : i,
|
|
247
|
+
const c = r.width, i = r.height, a = e.width, d = e.height;
|
|
248
|
+
let g, u;
|
|
249
|
+
return c === null ? (u = i === null ? "1em" : i === "auto" ? d : i, g = L(u, a / d)) : (g = c === "auto" ? a : c, u = i === null ? L(g, d / a) : i === "auto" ? d : i), {
|
|
249
250
|
attributes: {
|
|
250
|
-
width:
|
|
251
|
+
width: g.toString(),
|
|
251
252
|
height: u.toString(),
|
|
252
|
-
viewBox: e.left.toString() + " " + e.top.toString() + " " +
|
|
253
|
+
viewBox: e.left.toString() + " " + e.top.toString() + " " + a.toString() + " " + d.toString()
|
|
253
254
|
},
|
|
254
|
-
body:
|
|
255
|
+
body: s
|
|
255
256
|
};
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
function
|
|
258
|
+
const pt = /\sid="(\S+)"/g, gt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
259
|
+
let vt = 0;
|
|
260
|
+
function mt(t, n = gt) {
|
|
260
261
|
const o = [];
|
|
261
|
-
let
|
|
262
|
-
for (;
|
|
263
|
-
o.push(
|
|
262
|
+
let r;
|
|
263
|
+
for (; r = pt.exec(t); )
|
|
264
|
+
o.push(r[1]);
|
|
264
265
|
return o.length && o.forEach((e) => {
|
|
265
|
-
const
|
|
266
|
+
const s = typeof n == "function" ? n(e) : n + (vt++).toString(), c = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
266
267
|
t = t.replace(
|
|
267
268
|
new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
|
|
268
|
-
"$1" +
|
|
269
|
+
"$1" + s + "$3"
|
|
269
270
|
);
|
|
270
271
|
}), t;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function _t(t, n) {
|
|
273
274
|
let o = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
274
|
-
for (const
|
|
275
|
-
o += " " +
|
|
275
|
+
for (const r in n)
|
|
276
|
+
o += " " + r + '="' + n[r] + '"';
|
|
276
277
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + t + "</svg>";
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function wt(t) {
|
|
279
280
|
return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
return 'url("data:image/svg+xml,' +
|
|
282
|
+
function St(t) {
|
|
283
|
+
return 'url("data:image/svg+xml,' + wt(t) + '")';
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
+
const B = {
|
|
285
286
|
...X,
|
|
286
287
|
inline: !1
|
|
287
|
-
},
|
|
288
|
+
}, bt = {
|
|
288
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
290
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
290
291
|
"aria-hidden": !0,
|
|
291
292
|
role: "img"
|
|
292
|
-
},
|
|
293
|
+
}, yt = {
|
|
293
294
|
display: "inline-block"
|
|
294
|
-
},
|
|
295
|
+
}, A = {
|
|
295
296
|
backgroundColor: "currentColor"
|
|
296
297
|
}, Y = {
|
|
297
298
|
backgroundColor: "transparent"
|
|
298
|
-
},
|
|
299
|
+
}, N = {
|
|
299
300
|
Image: "var(--svg)",
|
|
300
301
|
Repeat: "no-repeat",
|
|
301
302
|
Size: "100% 100%"
|
|
302
|
-
},
|
|
303
|
-
webkitMask:
|
|
304
|
-
mask:
|
|
303
|
+
}, R = {
|
|
304
|
+
webkitMask: A,
|
|
305
|
+
mask: A,
|
|
305
306
|
background: Y
|
|
306
307
|
};
|
|
307
|
-
for (const t in
|
|
308
|
-
const n =
|
|
309
|
-
for (const o in
|
|
310
|
-
n[t + o] =
|
|
308
|
+
for (const t in R) {
|
|
309
|
+
const n = R[t];
|
|
310
|
+
for (const o in N)
|
|
311
|
+
n[t + o] = N[o];
|
|
311
312
|
}
|
|
312
313
|
const I = {};
|
|
313
314
|
["horizontal", "vertical"].forEach((t) => {
|
|
@@ -317,12 +318,12 @@ const I = {};
|
|
|
317
318
|
function V(t) {
|
|
318
319
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
319
320
|
}
|
|
320
|
-
const
|
|
321
|
-
const o =
|
|
322
|
-
for (let
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
325
|
-
switch (
|
|
321
|
+
const Ct = (t, n) => {
|
|
322
|
+
const o = ct(B, n), r = { ...bt }, e = n.mode || "svg", s = {}, c = n.style, i = typeof c == "object" && !(c instanceof Array) ? c : {};
|
|
323
|
+
for (let f in n) {
|
|
324
|
+
const l = n[f];
|
|
325
|
+
if (l !== void 0)
|
|
326
|
+
switch (f) {
|
|
326
327
|
case "icon":
|
|
327
328
|
case "style":
|
|
328
329
|
case "onLoad":
|
|
@@ -331,67 +332,67 @@ const It = (t, n) => {
|
|
|
331
332
|
case "inline":
|
|
332
333
|
case "hFlip":
|
|
333
334
|
case "vFlip":
|
|
334
|
-
o[
|
|
335
|
+
o[f] = l === !0 || l === "true" || l === 1;
|
|
335
336
|
break;
|
|
336
337
|
case "flip":
|
|
337
|
-
typeof
|
|
338
|
+
typeof l == "string" && lt(o, l);
|
|
338
339
|
break;
|
|
339
340
|
case "color":
|
|
340
|
-
|
|
341
|
+
s.color = l;
|
|
341
342
|
break;
|
|
342
343
|
case "rotate":
|
|
343
|
-
typeof
|
|
344
|
+
typeof l == "string" ? o[f] = ut(l) : typeof l == "number" && (o[f] = l);
|
|
344
345
|
break;
|
|
345
346
|
case "ariaHidden":
|
|
346
347
|
case "aria-hidden":
|
|
347
|
-
|
|
348
|
+
l !== !0 && l !== "true" && delete r["aria-hidden"];
|
|
348
349
|
break;
|
|
349
350
|
default: {
|
|
350
|
-
const
|
|
351
|
-
|
|
351
|
+
const m = I[f];
|
|
352
|
+
m ? (l === !0 || l === "true" || l === 1) && (o[m] = !0) : B[f] === void 0 && (r[f] = l);
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
|
-
const
|
|
356
|
-
if (o.inline && (
|
|
357
|
-
|
|
358
|
-
...
|
|
356
|
+
const a = ft(t, o), d = a.attributes;
|
|
357
|
+
if (o.inline && (s.verticalAlign = "-0.125em"), e === "svg") {
|
|
358
|
+
r.style = {
|
|
359
|
+
...s,
|
|
359
360
|
...i
|
|
360
|
-
}, Object.assign(
|
|
361
|
-
let
|
|
362
|
-
return typeof
|
|
361
|
+
}, Object.assign(r, d);
|
|
362
|
+
let f = 0, l = n.id;
|
|
363
|
+
return typeof l == "string" && (l = l.replace(/-/g, "_")), r.innerHTML = mt(a.body, l ? () => l + "ID" + f++ : "iconifyVue"), T("svg", r);
|
|
363
364
|
}
|
|
364
|
-
const { body:
|
|
365
|
+
const { body: g, width: u, height: v } = t, p = e === "mask" || (e === "bg" ? !1 : g.indexOf("currentColor") !== -1), h = _t(g, {
|
|
365
366
|
...d,
|
|
366
367
|
width: u + "",
|
|
367
|
-
height:
|
|
368
|
+
height: v + ""
|
|
368
369
|
});
|
|
369
|
-
return
|
|
370
|
-
...
|
|
371
|
-
"--svg":
|
|
370
|
+
return r.style = {
|
|
371
|
+
...s,
|
|
372
|
+
"--svg": St(h),
|
|
372
373
|
width: V(d.width),
|
|
373
374
|
height: V(d.height),
|
|
374
|
-
...
|
|
375
|
-
...
|
|
375
|
+
...yt,
|
|
376
|
+
...p ? A : Y,
|
|
376
377
|
...i
|
|
377
|
-
}, T("span",
|
|
378
|
+
}, T("span", r);
|
|
378
379
|
}, Z = /* @__PURE__ */ Object.create(null);
|
|
379
380
|
function E(t, n) {
|
|
380
381
|
Z[t] = n;
|
|
381
382
|
}
|
|
382
|
-
const
|
|
383
|
+
const $t = G({
|
|
383
384
|
inheritAttrs: !1,
|
|
384
385
|
render() {
|
|
385
386
|
const t = this.$attrs, n = t.icon, o = typeof n == "string" ? Z[n] : typeof n == "object" ? n : null;
|
|
386
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
387
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : Ct({
|
|
387
388
|
...z,
|
|
388
389
|
...o
|
|
389
390
|
}, t);
|
|
390
391
|
}
|
|
391
|
-
}),
|
|
392
|
+
}), kt = G({
|
|
392
393
|
components: {
|
|
393
394
|
CountShow: K,
|
|
394
|
-
Icon:
|
|
395
|
+
Icon: $t
|
|
395
396
|
},
|
|
396
397
|
name: "group-show",
|
|
397
398
|
props: {
|
|
@@ -399,129 +400,134 @@ const Gt = P({
|
|
|
399
400
|
controlParams: Object
|
|
400
401
|
},
|
|
401
402
|
setup(t) {
|
|
402
|
-
function n(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
403
|
+
function n(s) {
|
|
404
|
+
var c;
|
|
405
|
+
return ((c = s && s.filter((i) => {
|
|
406
|
+
var a;
|
|
407
|
+
return !((a = t.controlParams) != null && a.onlyShowOnline) || i.online;
|
|
408
|
+
})) == null ? void 0 : c.filter((i) => {
|
|
409
|
+
var a;
|
|
410
|
+
return t.controlParams ? i.name.indexOf((a = t.controlParams) == null ? void 0 : a.searchStr) >= 0 : !0;
|
|
411
|
+
})) || [];
|
|
407
412
|
}
|
|
408
|
-
const o =
|
|
409
|
-
var
|
|
413
|
+
const o = O(() => {
|
|
414
|
+
var s, c;
|
|
410
415
|
const i = t.controlParams.searchStr;
|
|
411
|
-
return i.length == 0 || t.deviceGroup && ((
|
|
416
|
+
return i.length == 0 || t.deviceGroup && ((s = t.deviceGroup) == null ? void 0 : s.name.indexOf(i)) > 0 ? !0 : (c = t.deviceGroup) == null ? void 0 : c.devices.find((a) => a.name.indexOf(t.controlParams.searchStr) > 0);
|
|
412
417
|
});
|
|
413
|
-
function s
|
|
414
|
-
return t.controlParams.searchStr.length == 0 ? !0 :
|
|
418
|
+
function r(s) {
|
|
419
|
+
return t.controlParams.searchStr.length == 0 ? !0 : s.name.indexOf(t.controlParams.searchStr) > 0;
|
|
415
420
|
}
|
|
416
|
-
const e =
|
|
421
|
+
const e = F(!1);
|
|
417
422
|
return {
|
|
418
423
|
showGroup: o,
|
|
419
|
-
showDevice:
|
|
424
|
+
showDevice: r,
|
|
420
425
|
FilterDevice: n,
|
|
421
426
|
bShow: e
|
|
422
427
|
};
|
|
423
428
|
}
|
|
424
429
|
});
|
|
425
|
-
const
|
|
430
|
+
const It = {
|
|
426
431
|
key: 0,
|
|
427
432
|
class: "group"
|
|
428
|
-
},
|
|
433
|
+
}, Pt = ["title"], Gt = { class: "group-slot" }, Ot = {
|
|
429
434
|
key: 0,
|
|
430
435
|
style: { "margin-left": "26px" }
|
|
431
|
-
},
|
|
432
|
-
function
|
|
436
|
+
}, Ft = ["title"], jt = { class: "device-slot" };
|
|
437
|
+
function Mt(t, n, o, r, e, s) {
|
|
433
438
|
var c, i;
|
|
434
|
-
const
|
|
435
|
-
return t.showGroup ? (
|
|
436
|
-
$(d, {
|
|
439
|
+
const a = k("Icon"), d = k("CountShow"), g = k("group-show");
|
|
440
|
+
return t.showGroup ? (w(), b("div", It, [
|
|
441
|
+
$(d, {
|
|
442
|
+
countInfo: t.deviceGroup,
|
|
443
|
+
controlParams: t.controlParams
|
|
444
|
+
}, {
|
|
437
445
|
default: C(() => {
|
|
438
|
-
var u,
|
|
446
|
+
var u, v, p, h, f;
|
|
439
447
|
return [
|
|
440
|
-
$(
|
|
448
|
+
$(a, {
|
|
441
449
|
icon: "right",
|
|
442
450
|
rotate: t.bShow && "90deg",
|
|
443
451
|
width: "20",
|
|
444
|
-
onClick: n[0] || (n[0] = (
|
|
452
|
+
onClick: n[0] || (n[0] = (l) => t.bShow = !t.bShow),
|
|
445
453
|
class: "handle-ls-svg"
|
|
446
454
|
}, null, 8, ["rotate"]),
|
|
447
|
-
$(
|
|
455
|
+
$(a, {
|
|
448
456
|
icon: "group",
|
|
449
457
|
width: "24",
|
|
450
458
|
class: "group-avatar"
|
|
451
459
|
}),
|
|
452
|
-
|
|
460
|
+
S("span", {
|
|
453
461
|
class: "group-name",
|
|
454
462
|
title: (u = t.deviceGroup) == null ? void 0 : u.name
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
|
|
463
|
+
}, P(((v = t.deviceGroup) == null ? void 0 : v.name) && ((p = t.deviceGroup) == null ? void 0 : p.name.length) > 0 ? (h = t.deviceGroup) == null ? void 0 : h.name : (f = t.deviceGroup) == null ? void 0 : f.id), 9, Pt),
|
|
464
|
+
S("div", Gt, [
|
|
465
|
+
y(t.$slots, "group", { group: t.deviceGroup }, void 0, !0)
|
|
458
466
|
])
|
|
459
467
|
];
|
|
460
468
|
}),
|
|
461
469
|
_: 3
|
|
462
|
-
}, 8, ["countInfo"]),
|
|
463
|
-
t.bShow ? (
|
|
464
|
-
(
|
|
465
|
-
key:
|
|
470
|
+
}, 8, ["countInfo", "controlParams"]),
|
|
471
|
+
t.bShow ? (w(), b("div", Ot, [
|
|
472
|
+
(w(!0), b(j, null, M((c = t.deviceGroup) == null ? void 0 : c.items, (u, v) => (w(), W(g, {
|
|
473
|
+
key: v,
|
|
466
474
|
deviceGroup: u,
|
|
467
475
|
controlParams: t.controlParams
|
|
468
476
|
}, {
|
|
469
|
-
group: C(({ group:
|
|
470
|
-
|
|
477
|
+
group: C(({ group: p }) => [
|
|
478
|
+
y(t.$slots, "group", { group: p }, void 0, !0)
|
|
471
479
|
]),
|
|
472
|
-
device: C(({ device:
|
|
473
|
-
|
|
474
|
-
device:
|
|
480
|
+
device: C(({ device: p, group: h }) => [
|
|
481
|
+
y(t.$slots, "device", {
|
|
482
|
+
device: p,
|
|
475
483
|
group: h
|
|
476
484
|
}, void 0, !0)
|
|
477
485
|
]),
|
|
478
486
|
_: 2
|
|
479
487
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
480
|
-
(
|
|
481
|
-
key:
|
|
482
|
-
class:
|
|
488
|
+
(w(!0), b(j, null, M(t.FilterDevice((i = t.deviceGroup) == null ? void 0 : i.devices), (u, v) => (w(), b("div", {
|
|
489
|
+
key: v,
|
|
490
|
+
class: tt(["device", u.online && "online-device"])
|
|
483
491
|
}, [
|
|
484
|
-
$(
|
|
492
|
+
$(a, {
|
|
485
493
|
icon: "user",
|
|
486
494
|
width: "16",
|
|
487
495
|
class: "device-avatar"
|
|
488
496
|
}),
|
|
489
|
-
|
|
497
|
+
S("span", {
|
|
490
498
|
title: u.id,
|
|
491
499
|
class: "device-name"
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
|
|
500
|
+
}, P(u.name.length > 0 ? u.name : u.id), 9, Ft),
|
|
501
|
+
S("div", jt, [
|
|
502
|
+
y(t.$slots, "device", {
|
|
495
503
|
device: u,
|
|
496
504
|
group: t.deviceGroup
|
|
497
505
|
}, void 0, !0)
|
|
498
506
|
])
|
|
499
|
-
], 2)),
|
|
500
|
-
[nt, t.showDevice(u)]
|
|
501
|
-
])), 128))
|
|
507
|
+
], 2))), 128))
|
|
502
508
|
])) : H("", !0)
|
|
503
509
|
])) : H("", !0);
|
|
504
510
|
}
|
|
505
|
-
const
|
|
511
|
+
const At = /* @__PURE__ */ D(kt, [["render", Mt], ["__scopeId", "data-v-84ced3c6"]]), Dt = {
|
|
506
512
|
width: 1024,
|
|
507
513
|
height: 1024,
|
|
508
514
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
509
|
-
},
|
|
515
|
+
}, zt = {
|
|
510
516
|
width: 1024,
|
|
511
517
|
height: 1024,
|
|
512
518
|
body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
|
|
513
|
-
},
|
|
519
|
+
}, Et = {
|
|
514
520
|
width: 1024,
|
|
515
521
|
height: 1024,
|
|
516
522
|
body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
|
|
517
523
|
};
|
|
518
|
-
E("right",
|
|
519
|
-
E("group",
|
|
520
|
-
E("user",
|
|
521
|
-
const
|
|
524
|
+
E("right", Dt);
|
|
525
|
+
E("group", zt);
|
|
526
|
+
E("user", Et);
|
|
527
|
+
const Tt = G({
|
|
522
528
|
components: {
|
|
523
529
|
CountShow: K,
|
|
524
|
-
GroupShow:
|
|
530
|
+
GroupShow: At
|
|
525
531
|
},
|
|
526
532
|
props: {
|
|
527
533
|
deviceGroup: Object
|
|
@@ -532,60 +538,55 @@ const Lt = P({
|
|
|
532
538
|
},
|
|
533
539
|
onSearchChange() {
|
|
534
540
|
var t;
|
|
535
|
-
this.inputSearchRef && (this.controlParams.searchStr = (t = this.inputSearchRef) == null ? void 0 : t.value
|
|
541
|
+
this.inputSearchRef && (this.controlParams.searchStr = (t = this.inputSearchRef) == null ? void 0 : t.value);
|
|
542
|
+
},
|
|
543
|
+
search(t) {
|
|
544
|
+
this.controlParams.searchStr = t;
|
|
536
545
|
}
|
|
537
546
|
},
|
|
538
547
|
setup() {
|
|
539
|
-
const t =
|
|
548
|
+
const t = F({
|
|
540
549
|
onlyShowOnline: !1,
|
|
541
550
|
searchStr: ""
|
|
542
551
|
});
|
|
543
552
|
return {
|
|
544
|
-
inputSearchRef:
|
|
553
|
+
inputSearchRef: F(),
|
|
545
554
|
controlParams: t
|
|
546
555
|
};
|
|
547
556
|
}
|
|
548
557
|
});
|
|
549
|
-
const
|
|
550
|
-
function
|
|
558
|
+
const Ht = (t) => (et("data-v-62984bb5"), t = t(), ot(), t), xt = { class: "device-group-list" }, Lt = { class: "search-panel" }, Bt = /* @__PURE__ */ Ht(() => /* @__PURE__ */ S("label", { for: "onlineShow" }, "\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907", -1)), Nt = { class: "device-panel" };
|
|
559
|
+
function Rt(t, n, o, r, e, s) {
|
|
551
560
|
var c;
|
|
552
|
-
const i = k("CountShow"),
|
|
553
|
-
return
|
|
554
|
-
|
|
555
|
-
g("div", Nt, [
|
|
556
|
-
Vt,
|
|
557
|
-
g("input", {
|
|
558
|
-
type: "text",
|
|
559
|
-
onChange: n[0] || (n[0] = (...d) => t.onSearchChange && t.onSearchChange(...d)),
|
|
560
|
-
ref: "inputSearchRef"
|
|
561
|
-
}, null, 544)
|
|
562
|
-
]),
|
|
561
|
+
const i = k("CountShow"), a = k("group-show");
|
|
562
|
+
return w(), b("div", xt, [
|
|
563
|
+
S("div", Lt, [
|
|
563
564
|
$(i, { countInfo: t.deviceGroup }, {
|
|
564
565
|
default: C(() => [
|
|
565
|
-
|
|
566
|
+
S("input", {
|
|
566
567
|
type: "checkbox",
|
|
567
568
|
id: "onlineShow",
|
|
568
569
|
value: "onlineShow",
|
|
569
|
-
onChange: n[
|
|
570
|
+
onChange: n[0] || (n[0] = (...d) => t.onCheckBoxChange && t.onCheckBoxChange(...d))
|
|
570
571
|
}, null, 32),
|
|
571
|
-
|
|
572
|
+
Bt
|
|
572
573
|
]),
|
|
573
574
|
_: 1
|
|
574
575
|
}, 8, ["countInfo"])
|
|
575
576
|
]),
|
|
576
|
-
|
|
577
|
-
(
|
|
577
|
+
S("div", Nt, [
|
|
578
|
+
(w(!0), b(j, null, M((c = t.deviceGroup) == null ? void 0 : c.items, (d, g) => (w(), W(a, {
|
|
578
579
|
controlParams: t.controlParams,
|
|
579
|
-
key:
|
|
580
|
+
key: g,
|
|
580
581
|
deviceGroup: d
|
|
581
582
|
}, {
|
|
582
583
|
group: C(({ group: u }) => [
|
|
583
|
-
|
|
584
|
+
y(t.$slots, "group", { group: u }, void 0, !0)
|
|
584
585
|
]),
|
|
585
|
-
device: C(({ device: u, group:
|
|
586
|
-
|
|
586
|
+
device: C(({ device: u, group: v }) => [
|
|
587
|
+
y(t.$slots, "device", {
|
|
587
588
|
device: u,
|
|
588
|
-
group:
|
|
589
|
+
group: v
|
|
589
590
|
}, void 0, !0)
|
|
590
591
|
]),
|
|
591
592
|
_: 2
|
|
@@ -593,9 +594,9 @@ function Kt(t, n, o, s, e, r) {
|
|
|
593
594
|
])
|
|
594
595
|
]);
|
|
595
596
|
}
|
|
596
|
-
const
|
|
597
|
-
RecursionDeviceGroup:
|
|
598
|
-
},
|
|
597
|
+
const Vt = /* @__PURE__ */ D(Tt, [["render", Rt], ["__scopeId", "data-v-62984bb5"]]), U = {
|
|
598
|
+
RecursionDeviceGroup: Vt
|
|
599
|
+
}, Wt = {
|
|
599
600
|
install(t) {
|
|
600
601
|
for (const n in U) {
|
|
601
602
|
const o = U[n];
|
|
@@ -605,6 +606,6 @@ const qt = /* @__PURE__ */ A(Lt, [["render", Kt], ["__scopeId", "data-v-f4599228
|
|
|
605
606
|
};
|
|
606
607
|
export {
|
|
607
608
|
x as RecursionDeviceGroup,
|
|
608
|
-
|
|
609
|
+
Wt as default
|
|
609
610
|
};
|
|
610
611
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|