smarteye-e-components 0.0.20 → 0.0.22
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 +380 -344
- 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 +11 -1
- package/package.json +5 -1
|
@@ -1,327 +1,328 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
var
|
|
3
|
-
((
|
|
1
|
+
import { defineComponent as F, computed as M, openBlock as f, createElementBlock as b, renderSlot as y, createElementVNode as _, toDisplayString as O, h as L, inject as te, ref as z, resolveComponent as $, normalizeClass as B, createVNode as I, withCtx as C, createBlock as P, createCommentVNode as j, Fragment as H, renderList as A, provide as oe, pushScopeId as ne, popScopeId as se } from "vue";
|
|
2
|
+
var N;
|
|
3
|
+
((e) => {
|
|
4
4
|
((o) => {
|
|
5
|
-
function
|
|
5
|
+
function s(l) {
|
|
6
6
|
const i = [];
|
|
7
|
-
for (let
|
|
7
|
+
for (let a = 0; a < l; 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
|
-
function
|
|
17
|
+
function t(l) {
|
|
18
18
|
const i = [];
|
|
19
|
-
for (let
|
|
19
|
+
for (let a = 0; a < l; 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:
|
|
26
|
+
devices: s(10),
|
|
27
|
+
items: t(l - a - 1)
|
|
28
28
|
});
|
|
29
29
|
return i;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function r(l) {
|
|
32
32
|
return {
|
|
33
33
|
name: "hah",
|
|
34
34
|
onlineCount: 0,
|
|
35
35
|
totalCount: 0,
|
|
36
|
-
items:
|
|
36
|
+
items: t(l)
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
o.RandomDeviceGroup =
|
|
40
|
-
})(
|
|
41
|
-
function n(o,
|
|
42
|
-
for (let
|
|
43
|
-
|
|
39
|
+
o.RandomDeviceGroup = r;
|
|
40
|
+
})(e.Test || (e.Test = {}));
|
|
41
|
+
function n(o, s) {
|
|
42
|
+
for (let t = 0; t < o.length; t++)
|
|
43
|
+
s(o[t]), n(o[t].items, s);
|
|
44
44
|
}
|
|
45
45
|
((o) => {
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
return n(
|
|
49
|
-
|
|
50
|
-
for (let
|
|
51
|
-
|
|
46
|
+
function s(t) {
|
|
47
|
+
const r = {}, l = {};
|
|
48
|
+
return n(t.items, (i) => {
|
|
49
|
+
r[i.id] = i;
|
|
50
|
+
for (let a = 0; a < i.devices.length; a++)
|
|
51
|
+
l[i.devices[a].id] = i.devices[a];
|
|
52
52
|
}), {
|
|
53
53
|
getGroup(i) {
|
|
54
|
-
return
|
|
54
|
+
return r[i];
|
|
55
55
|
},
|
|
56
56
|
getDevice(i) {
|
|
57
|
-
return
|
|
57
|
+
return l[i];
|
|
58
58
|
},
|
|
59
59
|
foreachGroup(i) {
|
|
60
|
-
for (let
|
|
61
|
-
i(
|
|
60
|
+
for (let a in r)
|
|
61
|
+
i(r[a]);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
o.AccessSession =
|
|
66
|
-
})(
|
|
67
|
-
})(
|
|
68
|
-
const
|
|
65
|
+
o.AccessSession = s;
|
|
66
|
+
})(e.Utils || (e.Utils = {}));
|
|
67
|
+
})(N || (N = {}));
|
|
68
|
+
const re = F({
|
|
69
69
|
props: {
|
|
70
|
-
countInfo: Object
|
|
70
|
+
countInfo: Object,
|
|
71
|
+
controlParams: Object
|
|
71
72
|
},
|
|
72
|
-
setup(
|
|
73
|
-
function n(
|
|
74
|
-
if (
|
|
75
|
-
let
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
}),
|
|
73
|
+
setup(e) {
|
|
74
|
+
function n(t, r) {
|
|
75
|
+
if (r) {
|
|
76
|
+
let l = 0;
|
|
77
|
+
return r.items.forEach((i) => {
|
|
78
|
+
l += n(t, i);
|
|
79
|
+
}), t(r) + l;
|
|
79
80
|
}
|
|
80
81
|
return 0;
|
|
81
82
|
}
|
|
82
|
-
const o =
|
|
83
|
+
const o = M(() => n((t) => t.onlineCount, e.countInfo));
|
|
83
84
|
return {
|
|
84
|
-
totalCount:
|
|
85
|
+
totalCount: M(() => n((t) => t.totalCount, e.countInfo)),
|
|
85
86
|
onlineCount: o
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
const
|
|
90
|
-
const o =
|
|
91
|
-
for (const [
|
|
92
|
-
o[
|
|
90
|
+
const E = (e, n) => {
|
|
91
|
+
const o = e.__vccOpts || e;
|
|
92
|
+
for (const [s, t] of n)
|
|
93
|
+
o[s] = t;
|
|
93
94
|
return o;
|
|
94
|
-
},
|
|
95
|
-
function
|
|
96
|
-
return
|
|
97
|
-
y(
|
|
98
|
-
|
|
95
|
+
}, ie = { class: "root" }, ae = { class: "count-show" };
|
|
96
|
+
function le(e, n, o, s, t, r) {
|
|
97
|
+
return f(), b("div", ie, [
|
|
98
|
+
y(e.$slots, "default", {}, void 0, !0),
|
|
99
|
+
_("span", ae, O(e.onlineCount) + "/" + O(e.totalCount), 1)
|
|
99
100
|
]);
|
|
100
101
|
}
|
|
101
|
-
const
|
|
102
|
+
const q = /* @__PURE__ */ E(re, [["render", le], ["__scopeId", "data-v-56ab9f59"]]), J = Object.freeze(
|
|
102
103
|
{
|
|
103
104
|
left: 0,
|
|
104
105
|
top: 0,
|
|
105
106
|
width: 16,
|
|
106
107
|
height: 16
|
|
107
108
|
}
|
|
108
|
-
),
|
|
109
|
+
), Q = Object.freeze({
|
|
109
110
|
rotate: 0,
|
|
110
111
|
vFlip: !1,
|
|
111
112
|
hFlip: !1
|
|
112
|
-
}),
|
|
113
|
-
...
|
|
114
|
-
...
|
|
113
|
+
}), T = Object.freeze({
|
|
114
|
+
...J,
|
|
115
|
+
...Q
|
|
115
116
|
});
|
|
116
117
|
Object.freeze({
|
|
117
|
-
...
|
|
118
|
+
...T,
|
|
118
119
|
body: "",
|
|
119
120
|
hidden: !1
|
|
120
121
|
});
|
|
121
122
|
({
|
|
122
|
-
...
|
|
123
|
+
...J
|
|
123
124
|
});
|
|
124
|
-
const
|
|
125
|
+
const X = Object.freeze({
|
|
125
126
|
width: null,
|
|
126
127
|
height: null
|
|
127
|
-
}),
|
|
128
|
-
...
|
|
129
|
-
...
|
|
128
|
+
}), Y = Object.freeze({
|
|
129
|
+
...X,
|
|
130
|
+
...Q
|
|
130
131
|
});
|
|
131
|
-
function
|
|
132
|
+
function ce(e, n) {
|
|
132
133
|
const o = {
|
|
133
|
-
...
|
|
134
|
+
...e
|
|
134
135
|
};
|
|
135
|
-
for (const
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
for (const s in n) {
|
|
137
|
+
const t = n[s], r = typeof t;
|
|
138
|
+
s in X ? (t === null || t && (r === "string" || r === "number")) && (o[s] = t) : r === typeof o[s] && (o[s] = s === "rotate" ? t % 4 : t);
|
|
138
139
|
}
|
|
139
140
|
return o;
|
|
140
141
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
143
|
-
n.split(
|
|
142
|
+
const ue = /[\s,]+/;
|
|
143
|
+
function de(e, n) {
|
|
144
|
+
n.split(ue).forEach((o) => {
|
|
144
145
|
switch (o.trim()) {
|
|
145
146
|
case "horizontal":
|
|
146
|
-
|
|
147
|
+
e.hFlip = !0;
|
|
147
148
|
break;
|
|
148
149
|
case "vertical":
|
|
149
|
-
|
|
150
|
+
e.vFlip = !0;
|
|
150
151
|
break;
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
-
const o =
|
|
156
|
-
function
|
|
157
|
-
for (;
|
|
158
|
-
|
|
159
|
-
return
|
|
155
|
+
function he(e, n = 0) {
|
|
156
|
+
const o = e.replace(/^-?[0-9.]*/, "");
|
|
157
|
+
function s(t) {
|
|
158
|
+
for (; t < 0; )
|
|
159
|
+
t += 4;
|
|
160
|
+
return t % 4;
|
|
160
161
|
}
|
|
161
162
|
if (o === "") {
|
|
162
|
-
const
|
|
163
|
-
return isNaN(
|
|
164
|
-
} else if (o !==
|
|
165
|
-
let
|
|
163
|
+
const t = parseInt(e);
|
|
164
|
+
return isNaN(t) ? 0 : s(t);
|
|
165
|
+
} else if (o !== e) {
|
|
166
|
+
let t = 0;
|
|
166
167
|
switch (o) {
|
|
167
168
|
case "%":
|
|
168
|
-
|
|
169
|
+
t = 25;
|
|
169
170
|
break;
|
|
170
171
|
case "deg":
|
|
171
|
-
|
|
172
|
+
t = 90;
|
|
172
173
|
}
|
|
173
|
-
if (
|
|
174
|
-
let
|
|
175
|
-
return isNaN(
|
|
174
|
+
if (t) {
|
|
175
|
+
let r = parseFloat(e.slice(0, e.length - o.length));
|
|
176
|
+
return isNaN(r) ? 0 : (r = r / t, r % 1 === 0 ? s(r) : 0);
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
return n;
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
181
|
+
const pe = /(-?[0-9.]*[0-9]+[0-9.]*)/g, fe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
182
|
+
function R(e, n, o) {
|
|
182
183
|
if (n === 1)
|
|
183
|
-
return
|
|
184
|
-
if (o = o || 100, typeof
|
|
185
|
-
return Math.ceil(
|
|
186
|
-
if (typeof
|
|
187
|
-
return
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
191
|
-
const
|
|
192
|
-
let
|
|
184
|
+
return e;
|
|
185
|
+
if (o = o || 100, typeof e == "number")
|
|
186
|
+
return Math.ceil(e * n * o) / o;
|
|
187
|
+
if (typeof e != "string")
|
|
188
|
+
return e;
|
|
189
|
+
const s = e.split(pe);
|
|
190
|
+
if (s === null || !s.length)
|
|
191
|
+
return e;
|
|
192
|
+
const t = [];
|
|
193
|
+
let r = s.shift(), l = fe.test(r);
|
|
193
194
|
for (; ; ) {
|
|
194
|
-
if (
|
|
195
|
-
const i = parseFloat(
|
|
196
|
-
isNaN(i) ?
|
|
195
|
+
if (l) {
|
|
196
|
+
const i = parseFloat(r);
|
|
197
|
+
isNaN(i) ? t.push(r) : t.push(Math.ceil(i * n * o) / o);
|
|
197
198
|
} else
|
|
198
|
-
|
|
199
|
-
if (
|
|
200
|
-
return
|
|
201
|
-
|
|
199
|
+
t.push(r);
|
|
200
|
+
if (r = s.shift(), r === void 0)
|
|
201
|
+
return t.join("");
|
|
202
|
+
l = !l;
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function ge(e, n) {
|
|
205
206
|
const o = {
|
|
206
|
-
...
|
|
207
|
-
...
|
|
208
|
-
},
|
|
209
|
-
...
|
|
207
|
+
...T,
|
|
208
|
+
...e
|
|
209
|
+
}, s = {
|
|
210
|
+
...Y,
|
|
210
211
|
...n
|
|
211
|
-
},
|
|
212
|
+
}, t = {
|
|
212
213
|
left: o.left,
|
|
213
214
|
top: o.top,
|
|
214
215
|
width: o.width,
|
|
215
216
|
height: o.height
|
|
216
217
|
};
|
|
217
|
-
let
|
|
218
|
-
[o,
|
|
219
|
-
const h = [], p =
|
|
220
|
-
let
|
|
221
|
-
p ?
|
|
222
|
-
"translate(" + (
|
|
223
|
-
), h.push("scale(-1 1)"),
|
|
224
|
-
"translate(" + (0 -
|
|
225
|
-
), h.push("scale(1 -1)"),
|
|
226
|
-
let
|
|
227
|
-
switch (
|
|
218
|
+
let r = o.body;
|
|
219
|
+
[o, s].forEach((g) => {
|
|
220
|
+
const h = [], p = g.hFlip, c = g.vFlip;
|
|
221
|
+
let w = g.rotate;
|
|
222
|
+
p ? c ? w += 2 : (h.push(
|
|
223
|
+
"translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
|
|
224
|
+
), h.push("scale(-1 1)"), t.top = t.left = 0) : c && (h.push(
|
|
225
|
+
"translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
|
|
226
|
+
), h.push("scale(1 -1)"), t.top = t.left = 0);
|
|
227
|
+
let S;
|
|
228
|
+
switch (w < 0 && (w -= Math.floor(w / 4) * 4), w = w % 4, w) {
|
|
228
229
|
case 1:
|
|
229
|
-
|
|
230
|
-
"rotate(90 " +
|
|
230
|
+
S = t.height / 2 + t.top, h.unshift(
|
|
231
|
+
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
231
232
|
);
|
|
232
233
|
break;
|
|
233
234
|
case 2:
|
|
234
235
|
h.unshift(
|
|
235
|
-
"rotate(180 " + (
|
|
236
|
+
"rotate(180 " + (t.width / 2 + t.left).toString() + " " + (t.height / 2 + t.top).toString() + ")"
|
|
236
237
|
);
|
|
237
238
|
break;
|
|
238
239
|
case 3:
|
|
239
|
-
|
|
240
|
-
"rotate(-90 " +
|
|
240
|
+
S = t.width / 2 + t.left, h.unshift(
|
|
241
|
+
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
241
242
|
);
|
|
242
243
|
break;
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
w % 2 === 1 && (t.left !== t.top && (S = t.left, t.left = t.top, t.top = S), t.width !== t.height && (S = t.width, t.width = t.height, t.height = S)), h.length && (r = '<g transform="' + h.join(" ") + '">' + r + "</g>");
|
|
245
246
|
});
|
|
246
|
-
const
|
|
247
|
-
let
|
|
248
|
-
return
|
|
247
|
+
const l = s.width, i = s.height, a = t.width, d = t.height;
|
|
248
|
+
let v, u;
|
|
249
|
+
return l === null ? (u = i === null ? "1em" : i === "auto" ? d : i, v = R(u, a / d)) : (v = l === "auto" ? a : l, u = i === null ? R(v, d / a) : i === "auto" ? d : i), {
|
|
249
250
|
attributes: {
|
|
250
|
-
width:
|
|
251
|
+
width: v.toString(),
|
|
251
252
|
height: u.toString(),
|
|
252
|
-
viewBox:
|
|
253
|
+
viewBox: t.left.toString() + " " + t.top.toString() + " " + a.toString() + " " + d.toString()
|
|
253
254
|
},
|
|
254
|
-
body:
|
|
255
|
+
body: r
|
|
255
256
|
};
|
|
256
257
|
}
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
function
|
|
258
|
+
const ve = /\sid="(\S+)"/g, me = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
259
|
+
let we = 0;
|
|
260
|
+
function _e(e, n = me) {
|
|
260
261
|
const o = [];
|
|
261
|
-
let
|
|
262
|
-
for (;
|
|
263
|
-
o.push(
|
|
264
|
-
return o.length && o.forEach((
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
new RegExp('([#;"])(' +
|
|
268
|
-
"$1" +
|
|
262
|
+
let s;
|
|
263
|
+
for (; s = ve.exec(e); )
|
|
264
|
+
o.push(s[1]);
|
|
265
|
+
return o.length && o.forEach((t) => {
|
|
266
|
+
const r = typeof n == "function" ? n(t) : n + (we++).toString(), l = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
267
|
+
e = e.replace(
|
|
268
|
+
new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
|
|
269
|
+
"$1" + r + "$3"
|
|
269
270
|
);
|
|
270
|
-
}),
|
|
271
|
+
}), e;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
-
let o =
|
|
274
|
-
for (const
|
|
275
|
-
o += " " +
|
|
276
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" +
|
|
273
|
+
function Se(e, n) {
|
|
274
|
+
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
275
|
+
for (const s in n)
|
|
276
|
+
o += " " + s + '="' + n[s] + '"';
|
|
277
|
+
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
-
return
|
|
279
|
+
function be(e) {
|
|
280
|
+
return e.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 ye(e) {
|
|
283
|
+
return 'url("data:image/svg+xml,' + be(e) + '")';
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
-
...
|
|
285
|
+
const V = {
|
|
286
|
+
...Y,
|
|
286
287
|
inline: !1
|
|
287
|
-
},
|
|
288
|
+
}, Ce = {
|
|
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
|
+
}, $e = {
|
|
293
294
|
display: "inline-block"
|
|
294
|
-
},
|
|
295
|
+
}, D = {
|
|
295
296
|
backgroundColor: "currentColor"
|
|
296
|
-
},
|
|
297
|
+
}, Z = {
|
|
297
298
|
backgroundColor: "transparent"
|
|
298
|
-
},
|
|
299
|
+
}, x = {
|
|
299
300
|
Image: "var(--svg)",
|
|
300
301
|
Repeat: "no-repeat",
|
|
301
302
|
Size: "100% 100%"
|
|
302
|
-
},
|
|
303
|
-
webkitMask:
|
|
304
|
-
mask:
|
|
305
|
-
background:
|
|
303
|
+
}, U = {
|
|
304
|
+
webkitMask: D,
|
|
305
|
+
mask: D,
|
|
306
|
+
background: Z
|
|
306
307
|
};
|
|
307
|
-
for (const
|
|
308
|
-
const n =
|
|
309
|
-
for (const o in
|
|
310
|
-
n[
|
|
308
|
+
for (const e in U) {
|
|
309
|
+
const n = U[e];
|
|
310
|
+
for (const o in x)
|
|
311
|
+
n[e + o] = x[o];
|
|
311
312
|
}
|
|
312
|
-
const
|
|
313
|
-
["horizontal", "vertical"].forEach((
|
|
314
|
-
const n =
|
|
315
|
-
|
|
313
|
+
const G = {};
|
|
314
|
+
["horizontal", "vertical"].forEach((e) => {
|
|
315
|
+
const n = e.slice(0, 1) + "Flip";
|
|
316
|
+
G[e + "-flip"] = n, G[e.slice(0, 1) + "-flip"] = n, G[e + "Flip"] = n;
|
|
316
317
|
});
|
|
317
|
-
function
|
|
318
|
-
return
|
|
318
|
+
function W(e) {
|
|
319
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
319
320
|
}
|
|
320
|
-
const
|
|
321
|
-
const o =
|
|
321
|
+
const ke = (e, n) => {
|
|
322
|
+
const o = ce(V, n), s = { ...Ce }, t = n.mode || "svg", r = {}, l = n.style, i = typeof l == "object" && !(l instanceof Array) ? l : {};
|
|
322
323
|
for (let p in n) {
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
324
|
+
const c = n[p];
|
|
325
|
+
if (c !== void 0)
|
|
325
326
|
switch (p) {
|
|
326
327
|
case "icon":
|
|
327
328
|
case "style":
|
|
@@ -331,256 +332,291 @@ const kt = (t, n) => {
|
|
|
331
332
|
case "inline":
|
|
332
333
|
case "hFlip":
|
|
333
334
|
case "vFlip":
|
|
334
|
-
o[p] =
|
|
335
|
+
o[p] = c === !0 || c === "true" || c === 1;
|
|
335
336
|
break;
|
|
336
337
|
case "flip":
|
|
337
|
-
typeof
|
|
338
|
+
typeof c == "string" && de(o, c);
|
|
338
339
|
break;
|
|
339
340
|
case "color":
|
|
340
|
-
|
|
341
|
+
r.color = c;
|
|
341
342
|
break;
|
|
342
343
|
case "rotate":
|
|
343
|
-
typeof
|
|
344
|
+
typeof c == "string" ? o[p] = he(c) : typeof c == "number" && (o[p] = c);
|
|
344
345
|
break;
|
|
345
346
|
case "ariaHidden":
|
|
346
347
|
case "aria-hidden":
|
|
347
|
-
|
|
348
|
+
c !== !0 && c !== "true" && delete s["aria-hidden"];
|
|
348
349
|
break;
|
|
349
350
|
default: {
|
|
350
|
-
const
|
|
351
|
-
|
|
351
|
+
const w = G[p];
|
|
352
|
+
w ? (c === !0 || c === "true" || c === 1) && (o[w] = !0) : V[p] === void 0 && (s[p] = c);
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
|
-
const
|
|
356
|
-
if (o.inline && (
|
|
357
|
-
|
|
358
|
-
...
|
|
356
|
+
const a = ge(e, o), d = a.attributes;
|
|
357
|
+
if (o.inline && (r.verticalAlign = "-0.125em"), t === "svg") {
|
|
358
|
+
s.style = {
|
|
359
|
+
...r,
|
|
359
360
|
...i
|
|
360
|
-
}, Object.assign(
|
|
361
|
-
let p = 0,
|
|
362
|
-
return typeof
|
|
361
|
+
}, Object.assign(s, d);
|
|
362
|
+
let p = 0, c = n.id;
|
|
363
|
+
return typeof c == "string" && (c = c.replace(/-/g, "_")), s.innerHTML = _e(a.body, c ? () => c + "ID" + p++ : "iconifyVue"), L("svg", s);
|
|
363
364
|
}
|
|
364
|
-
const { body:
|
|
365
|
+
const { body: v, width: u, height: m } = e, g = t === "mask" || (t === "bg" ? !1 : v.indexOf("currentColor") !== -1), h = Se(v, {
|
|
365
366
|
...d,
|
|
366
367
|
width: u + "",
|
|
367
|
-
height:
|
|
368
|
+
height: m + ""
|
|
368
369
|
});
|
|
369
|
-
return
|
|
370
|
-
...
|
|
371
|
-
"--svg":
|
|
372
|
-
width:
|
|
373
|
-
height:
|
|
374
|
-
...$
|
|
375
|
-
...
|
|
370
|
+
return s.style = {
|
|
371
|
+
...r,
|
|
372
|
+
"--svg": ye(h),
|
|
373
|
+
width: W(d.width),
|
|
374
|
+
height: W(d.height),
|
|
375
|
+
...$e,
|
|
376
|
+
...g ? D : Z,
|
|
376
377
|
...i
|
|
377
|
-
},
|
|
378
|
-
},
|
|
379
|
-
function
|
|
380
|
-
|
|
378
|
+
}, L("span", s);
|
|
379
|
+
}, ee = /* @__PURE__ */ Object.create(null);
|
|
380
|
+
function k(e, n) {
|
|
381
|
+
ee[e] = n;
|
|
381
382
|
}
|
|
382
|
-
const
|
|
383
|
+
const Ie = F({
|
|
383
384
|
inheritAttrs: !1,
|
|
384
385
|
render() {
|
|
385
|
-
const
|
|
386
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
387
|
-
...
|
|
386
|
+
const e = this.$attrs, n = e.icon, o = typeof n == "string" ? ee[n] : typeof n == "object" ? n : null;
|
|
387
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : ke({
|
|
388
|
+
...T,
|
|
388
389
|
...o
|
|
389
|
-
},
|
|
390
|
+
}, e);
|
|
390
391
|
}
|
|
391
|
-
}),
|
|
392
|
+
}), Pe = F({
|
|
392
393
|
components: {
|
|
393
|
-
CountShow:
|
|
394
|
-
Icon:
|
|
394
|
+
CountShow: q,
|
|
395
|
+
Icon: Ie
|
|
395
396
|
},
|
|
396
397
|
name: "group-show",
|
|
397
398
|
props: {
|
|
398
399
|
deviceGroup: Object,
|
|
399
400
|
controlParams: Object
|
|
400
401
|
},
|
|
401
|
-
setup(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
402
|
+
setup(e) {
|
|
403
|
+
const n = te("theme");
|
|
404
|
+
function o(r) {
|
|
405
|
+
var l;
|
|
406
|
+
return ((l = r && r.filter((i) => {
|
|
407
|
+
var a;
|
|
408
|
+
return !((a = e.controlParams) != null && a.onlyShowOnline) || i.online;
|
|
409
|
+
})) == null ? void 0 : l.filter((i) => {
|
|
410
|
+
var a, d;
|
|
411
|
+
return e.controlParams ? i.name.indexOf((a = e.controlParams) == null ? void 0 : a.searchStr) >= 0 || i.id.indexOf((d = e.controlParams) == null ? void 0 : d.searchStr) : !0;
|
|
412
|
+
})) || [];
|
|
407
413
|
}
|
|
408
|
-
const
|
|
409
|
-
var
|
|
410
|
-
const i =
|
|
411
|
-
return i.length == 0 ||
|
|
412
|
-
});
|
|
413
|
-
function r(s) {
|
|
414
|
-
return t.controlParams.searchStr.length == 0 ? !0 : s.name.indexOf(t.controlParams.searchStr) > 0;
|
|
415
|
-
}
|
|
416
|
-
const e = O(!1);
|
|
414
|
+
const s = M(() => {
|
|
415
|
+
var r, l;
|
|
416
|
+
const i = e.controlParams.searchStr;
|
|
417
|
+
return i.length == 0 || e.deviceGroup && ((r = e.deviceGroup) == null ? void 0 : r.name.indexOf(i)) > 0 ? !0 : (l = e.deviceGroup) == null ? void 0 : l.devices.find((a) => a.name.indexOf(e.controlParams.searchStr) > 0 || a.id.indexOf(e.controlParams.searchStr) > 0);
|
|
418
|
+
}), t = z(!1);
|
|
417
419
|
return {
|
|
418
|
-
showGroup:
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
showGroup: s,
|
|
421
|
+
FilterDevice: o,
|
|
422
|
+
bShow: t,
|
|
423
|
+
theme: n
|
|
422
424
|
};
|
|
423
425
|
}
|
|
424
426
|
});
|
|
425
|
-
const
|
|
427
|
+
const Ge = {
|
|
426
428
|
key: 0,
|
|
427
|
-
class: "
|
|
428
|
-
},
|
|
429
|
+
class: "head-op"
|
|
430
|
+
}, Oe = ["title"], Fe = { class: "group-slot" }, je = {
|
|
429
431
|
key: 0,
|
|
430
432
|
style: { "margin-left": "26px" }
|
|
431
|
-
},
|
|
432
|
-
function
|
|
433
|
-
var
|
|
434
|
-
const
|
|
435
|
-
return
|
|
436
|
-
|
|
433
|
+
}, Me = { class: "device-show-div" }, ze = ["title"], He = { class: "device-slot" };
|
|
434
|
+
function Ae(e, n, o, s, t, r) {
|
|
435
|
+
var l, i;
|
|
436
|
+
const a = $("Icon"), d = $("CountShow"), v = $("group-show");
|
|
437
|
+
return e.showGroup ? (f(), b("div", {
|
|
438
|
+
key: 0,
|
|
439
|
+
class: B("group " + e.theme)
|
|
440
|
+
}, [
|
|
441
|
+
I(d, {
|
|
442
|
+
countInfo: e.deviceGroup,
|
|
443
|
+
controlParams: e.controlParams
|
|
444
|
+
}, {
|
|
437
445
|
default: C(() => {
|
|
438
|
-
var u,
|
|
446
|
+
var u, m, g, h, p;
|
|
439
447
|
return [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
448
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (f(), b("span", Ge, [
|
|
449
|
+
e.bShow ? (f(), P(a, {
|
|
450
|
+
key: 1,
|
|
451
|
+
icon: "minus",
|
|
452
|
+
width: "20",
|
|
453
|
+
onClick: n[1] || (n[1] = (c) => e.bShow = !e.bShow),
|
|
454
|
+
class: "handle-ls-svg"
|
|
455
|
+
})) : (f(), P(a, {
|
|
456
|
+
key: 0,
|
|
457
|
+
icon: "plus",
|
|
458
|
+
width: "20",
|
|
459
|
+
onClick: n[0] || (n[0] = (c) => e.bShow = !e.bShow),
|
|
460
|
+
class: "handle-ls-svg"
|
|
461
|
+
}))
|
|
462
|
+
])) : j("", !0),
|
|
463
|
+
_("span", {
|
|
464
|
+
class: "group-head-db-click",
|
|
465
|
+
onDblclick: n[2] || (n[2] = (c) => e.bShow = !e.bShow)
|
|
466
|
+
}, [
|
|
467
|
+
I(a, {
|
|
468
|
+
icon: "group",
|
|
469
|
+
width: "24",
|
|
470
|
+
class: "group-avatar"
|
|
471
|
+
}),
|
|
472
|
+
_("span", {
|
|
473
|
+
class: "group-name",
|
|
474
|
+
title: (u = e.deviceGroup) == null ? void 0 : u.name
|
|
475
|
+
}, O(((m = e.deviceGroup) == null ? void 0 : m.name) && ((g = e.deviceGroup) == null ? void 0 : g.name.length) > 0 ? (h = e.deviceGroup) == null ? void 0 : h.name : (p = e.deviceGroup) == null ? void 0 : p.id), 9, Oe)
|
|
476
|
+
], 32),
|
|
477
|
+
_("div", Fe, [
|
|
478
|
+
y(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
458
479
|
])
|
|
459
480
|
];
|
|
460
481
|
}),
|
|
461
482
|
_: 3
|
|
462
|
-
}, 8, ["countInfo"]),
|
|
463
|
-
|
|
464
|
-
(
|
|
465
|
-
key:
|
|
483
|
+
}, 8, ["countInfo", "controlParams"]),
|
|
484
|
+
e.bShow ? (f(), b("div", je, [
|
|
485
|
+
(f(!0), b(H, null, A((l = e.deviceGroup) == null ? void 0 : l.items, (u, m) => (f(), P(v, {
|
|
486
|
+
key: m,
|
|
466
487
|
deviceGroup: u,
|
|
467
|
-
controlParams:
|
|
488
|
+
controlParams: e.controlParams
|
|
468
489
|
}, {
|
|
469
|
-
group: C(({ group:
|
|
470
|
-
y(
|
|
490
|
+
group: C(({ group: g }) => [
|
|
491
|
+
y(e.$slots, "group", { group: g }, void 0, !0)
|
|
471
492
|
]),
|
|
472
|
-
device: C(({ device:
|
|
473
|
-
y(
|
|
474
|
-
device:
|
|
493
|
+
device: C(({ device: g, group: h }) => [
|
|
494
|
+
y(e.$slots, "device", {
|
|
495
|
+
device: g,
|
|
475
496
|
group: h
|
|
476
497
|
}, void 0, !0)
|
|
477
498
|
]),
|
|
478
499
|
_: 2
|
|
479
500
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
480
|
-
(
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
device
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
])
|
|
502
|
-
])) :
|
|
503
|
-
])) :
|
|
501
|
+
_("div", Me, [
|
|
502
|
+
(f(!0), b(H, null, A(e.FilterDevice((i = e.deviceGroup) == null ? void 0 : i.devices), (u, m) => (f(), b("div", {
|
|
503
|
+
key: m,
|
|
504
|
+
class: B(["device", u.online && "online-device"])
|
|
505
|
+
}, [
|
|
506
|
+
I(a, {
|
|
507
|
+
icon: "user",
|
|
508
|
+
width: "16",
|
|
509
|
+
class: "device-avatar"
|
|
510
|
+
}),
|
|
511
|
+
_("span", {
|
|
512
|
+
title: u.id,
|
|
513
|
+
class: "device-name"
|
|
514
|
+
}, O(u.name.length > 0 ? u.name : u.id), 9, ze),
|
|
515
|
+
_("div", He, [
|
|
516
|
+
y(e.$slots, "device", {
|
|
517
|
+
device: u,
|
|
518
|
+
group: e.deviceGroup
|
|
519
|
+
}, void 0, !0)
|
|
520
|
+
])
|
|
521
|
+
], 2))), 128))
|
|
522
|
+
])
|
|
523
|
+
])) : j("", !0)
|
|
524
|
+
], 2)) : j("", !0);
|
|
504
525
|
}
|
|
505
|
-
const
|
|
526
|
+
const De = /* @__PURE__ */ E(Pe, [["render", Ae], ["__scopeId", "data-v-a9d269de"]]), Ee = {
|
|
506
527
|
width: 1024,
|
|
507
528
|
height: 1024,
|
|
508
529
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
509
|
-
},
|
|
530
|
+
}, Te = {
|
|
510
531
|
width: 1024,
|
|
511
532
|
height: 1024,
|
|
512
533
|
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
|
-
},
|
|
534
|
+
}, Le = {
|
|
514
535
|
width: 1024,
|
|
515
536
|
height: 1024,
|
|
516
537
|
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"/>'
|
|
538
|
+
}, Be = {
|
|
539
|
+
width: 1024,
|
|
540
|
+
height: 1024,
|
|
541
|
+
body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
|
|
542
|
+
}, Ne = {
|
|
543
|
+
width: 1024,
|
|
544
|
+
height: 1024,
|
|
545
|
+
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
517
546
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
547
|
+
k("right", Ee);
|
|
548
|
+
k("group", Te);
|
|
549
|
+
k("user", Le);
|
|
550
|
+
k("plus", Be);
|
|
551
|
+
k("minus", Ne);
|
|
552
|
+
const Re = F({
|
|
522
553
|
components: {
|
|
523
|
-
CountShow:
|
|
524
|
-
GroupShow:
|
|
554
|
+
CountShow: q,
|
|
555
|
+
GroupShow: De
|
|
525
556
|
},
|
|
526
557
|
props: {
|
|
527
|
-
deviceGroup: Object
|
|
558
|
+
deviceGroup: Object,
|
|
559
|
+
theme: {
|
|
560
|
+
type: String,
|
|
561
|
+
default: ""
|
|
562
|
+
}
|
|
528
563
|
},
|
|
529
564
|
methods: {
|
|
530
565
|
onCheckBoxChange() {
|
|
531
566
|
this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;
|
|
532
567
|
},
|
|
533
568
|
onSearchChange() {
|
|
534
|
-
var
|
|
535
|
-
this.inputSearchRef && (this.controlParams.searchStr = (
|
|
569
|
+
var e;
|
|
570
|
+
this.inputSearchRef && (this.controlParams.searchStr = (e = this.inputSearchRef) == null ? void 0 : e.value);
|
|
536
571
|
},
|
|
537
|
-
search(
|
|
538
|
-
this.controlParams.searchStr =
|
|
572
|
+
search(e) {
|
|
573
|
+
this.controlParams.searchStr = e;
|
|
539
574
|
}
|
|
540
575
|
},
|
|
541
|
-
setup() {
|
|
542
|
-
|
|
576
|
+
setup(e) {
|
|
577
|
+
oe("theme", e.theme);
|
|
578
|
+
const n = z({
|
|
543
579
|
onlyShowOnline: !1,
|
|
544
580
|
searchStr: ""
|
|
545
581
|
});
|
|
546
582
|
return {
|
|
547
|
-
inputSearchRef:
|
|
548
|
-
controlParams:
|
|
583
|
+
inputSearchRef: z(),
|
|
584
|
+
controlParams: n
|
|
549
585
|
};
|
|
550
586
|
}
|
|
551
587
|
});
|
|
552
|
-
const
|
|
553
|
-
function
|
|
554
|
-
var
|
|
555
|
-
const i =
|
|
556
|
-
return
|
|
557
|
-
|
|
558
|
-
|
|
588
|
+
const Ve = (e) => (ne("data-v-7e0a8034"), e = e(), se(), e), xe = { class: "device-group-list" }, Ue = { class: "search-panel" }, We = /* @__PURE__ */ Ve(() => /* @__PURE__ */ _("label", { for: "onlineShow" }, "\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907", -1)), Ke = { class: "device-panel" };
|
|
589
|
+
function qe(e, n, o, s, t, r) {
|
|
590
|
+
var l;
|
|
591
|
+
const i = $("CountShow"), a = $("group-show");
|
|
592
|
+
return f(), b("div", xe, [
|
|
593
|
+
_("div", Ue, [
|
|
594
|
+
I(i, { countInfo: e.deviceGroup }, {
|
|
559
595
|
default: C(() => [
|
|
560
|
-
|
|
596
|
+
_("input", {
|
|
561
597
|
type: "checkbox",
|
|
562
598
|
id: "onlineShow",
|
|
563
599
|
value: "onlineShow",
|
|
564
|
-
onChange: n[0] || (n[0] = (...d) =>
|
|
600
|
+
onChange: n[0] || (n[0] = (...d) => e.onCheckBoxChange && e.onCheckBoxChange(...d))
|
|
565
601
|
}, null, 32),
|
|
566
|
-
|
|
602
|
+
We
|
|
567
603
|
]),
|
|
568
604
|
_: 1
|
|
569
605
|
}, 8, ["countInfo"])
|
|
570
606
|
]),
|
|
571
|
-
|
|
572
|
-
(
|
|
573
|
-
controlParams:
|
|
574
|
-
key:
|
|
607
|
+
_("div", Ke, [
|
|
608
|
+
(f(!0), b(H, null, A((l = e.deviceGroup) == null ? void 0 : l.items, (d, v) => (f(), P(a, {
|
|
609
|
+
controlParams: e.controlParams,
|
|
610
|
+
key: v,
|
|
575
611
|
deviceGroup: d
|
|
576
612
|
}, {
|
|
577
613
|
group: C(({ group: u }) => [
|
|
578
|
-
y(
|
|
614
|
+
y(e.$slots, "group", { group: u }, void 0, !0)
|
|
579
615
|
]),
|
|
580
|
-
device: C(({ device: u, group:
|
|
581
|
-
y(
|
|
616
|
+
device: C(({ device: u, group: m }) => [
|
|
617
|
+
y(e.$slots, "device", {
|
|
582
618
|
device: u,
|
|
583
|
-
group:
|
|
619
|
+
group: m
|
|
584
620
|
}, void 0, !0)
|
|
585
621
|
]),
|
|
586
622
|
_: 2
|
|
@@ -588,18 +624,18 @@ function Ut(t, n, o, r, e, s) {
|
|
|
588
624
|
])
|
|
589
625
|
]);
|
|
590
626
|
}
|
|
591
|
-
const
|
|
592
|
-
RecursionDeviceGroup:
|
|
593
|
-
},
|
|
594
|
-
install(
|
|
595
|
-
for (const n in
|
|
596
|
-
const o =
|
|
597
|
-
|
|
627
|
+
const Je = /* @__PURE__ */ E(Re, [["render", qe], ["__scopeId", "data-v-7e0a8034"]]), K = {
|
|
628
|
+
RecursionDeviceGroup: Je
|
|
629
|
+
}, Xe = {
|
|
630
|
+
install(e) {
|
|
631
|
+
for (const n in K) {
|
|
632
|
+
const o = K[n];
|
|
633
|
+
e.component(n, o);
|
|
598
634
|
}
|
|
599
635
|
}
|
|
600
636
|
};
|
|
601
637
|
export {
|
|
602
|
-
|
|
603
|
-
|
|
638
|
+
N as RecursionDeviceGroup,
|
|
639
|
+
Xe as default
|
|
604
640
|
};
|
|
605
641
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|