xframelib 1.1.1 → 1.1.3
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/README.md +181 -189
- package/dist/assets/worker-iconv-KS7y7NCM.js +5405 -0
- package/dist/assets/worker-webcache-C22MEJ3V.js +956 -0
- package/dist/assets/worker-xmath-CbuRtVJ1.js +450 -0
- package/dist/controls/ADivider.vue.d.ts +8 -12
- package/dist/controls/ScaleContainer/index.vue.d.ts +13 -0
- package/dist/controls/ScrollSnapContainer/index.vue.d.ts +25 -0
- package/dist/controls/index.d.ts +4 -1
- package/dist/controls/layoutcontainer/LayoutManager.d.ts +8 -2
- package/dist/controls/layoutcontainer/layout.vue.d.ts +22 -35
- package/dist/controls/popover/index.vue.d.ts +33 -0
- package/dist/controls/routertransition/RouterTransition.vue.d.ts +2 -1
- package/dist/controls/routertransition/RouterTransitionAnimate.vue.d.ts +2 -1
- package/dist/controls/routertransition/SuspenseWithError.vue.d.ts +3 -2
- package/dist/controls/splitpanes/pane.vue.d.ts +3 -2
- package/dist/controls/splitpanes/splitpanes.vue.d.ts +3 -2
- package/dist/controls/xwindow/XWindow.vue.d.ts +10 -19
- package/dist/controls/xwindow/XWindowManager.d.ts +3 -3
- package/dist/controls/xwindow/index.d.ts +2 -2
- package/dist/directives/dbClickDirective.d.ts +5 -0
- package/dist/directives/index.d.ts +5 -2
- package/dist/directives/mediaDirective.d.ts +7 -0
- package/dist/index.css +1 -408
- package/dist/index.js +1 -12
- package/dist/utils/H5Tool.d.ts +18 -7
- package/dist/utils/IsTool.d.ts +4 -0
- package/dist/utils/Screen.d.ts +30 -0
- package/dist/utils/WebCacheTool.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/workers/index.d.ts +3 -9
- package/package.json +25 -23
- package/dist/assets/worker-iconv-BsNle8M5.js +0 -22
- package/dist/assets/worker-webcache-CkCFZE0-.js +0 -6
- package/dist/assets/worker-xmath-AxRk6MsK.js +0 -6
- /package/dist/directives/{repeatClick.d.ts → repeatClickDirective.d.ts} +0 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
var e = Object.defineProperty;
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2019 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/ const r = Symbol("Comlink.proxy"), t = Symbol("Comlink.endpoint"), n = Symbol("Comlink.releaseProxy"), a = Symbol("Comlink.finalizer"), o = Symbol("Comlink.thrown"), i = (e) => "object" == typeof e && null !== e || "function" == typeof e, s = new Map([["proxy", {
|
|
7
|
+
canHandle: (e) => i(e) && e[r],
|
|
8
|
+
serialize(e) {
|
|
9
|
+
const { port1: r, port2: t } = new MessageChannel();
|
|
10
|
+
return c(e, r), [t, [t]];
|
|
11
|
+
},
|
|
12
|
+
deserialize: (e) => (e.start(), function(e) {
|
|
13
|
+
const r = /* @__PURE__ */ new Map();
|
|
14
|
+
return e.addEventListener("message", (function(e) {
|
|
15
|
+
const { data: t } = e;
|
|
16
|
+
if (!t || !t.id) return;
|
|
17
|
+
const n = r.get(t.id);
|
|
18
|
+
if (n) try {
|
|
19
|
+
n(t);
|
|
20
|
+
} finally {
|
|
21
|
+
r.delete(t.id);
|
|
22
|
+
}
|
|
23
|
+
})), p(e, r, [], void 0);
|
|
24
|
+
}(e))
|
|
25
|
+
}], ["throw", {
|
|
26
|
+
canHandle: (e) => i(e) && o in e,
|
|
27
|
+
serialize({ value: e }) {
|
|
28
|
+
let r;
|
|
29
|
+
return r = e instanceof Error ? {
|
|
30
|
+
isError: !0,
|
|
31
|
+
value: {
|
|
32
|
+
message: e.message,
|
|
33
|
+
name: e.name,
|
|
34
|
+
stack: e.stack
|
|
35
|
+
}
|
|
36
|
+
} : {
|
|
37
|
+
isError: !1,
|
|
38
|
+
value: e
|
|
39
|
+
}, [r, []];
|
|
40
|
+
},
|
|
41
|
+
deserialize(e) {
|
|
42
|
+
if (e.isError) throw Object.assign(new Error(e.value.message), e.value);
|
|
43
|
+
throw e.value;
|
|
44
|
+
}
|
|
45
|
+
}]]);
|
|
46
|
+
function c(e, t = globalThis, n = ["*"]) {
|
|
47
|
+
t.addEventListener("message", (function i(s) {
|
|
48
|
+
if (!s || !s.data) return;
|
|
49
|
+
if (!function(e, r) {
|
|
50
|
+
for (const t of e) {
|
|
51
|
+
if (r === t || "*" === t) return !0;
|
|
52
|
+
if (t instanceof RegExp && t.test(r)) return !0;
|
|
53
|
+
}
|
|
54
|
+
return !1;
|
|
55
|
+
}(n, s.origin)) return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);
|
|
56
|
+
const { id: f, type: l, path: h } = Object.assign({ path: [] }, s.data), g = (s.data.argumentList || []).map(v);
|
|
57
|
+
let p;
|
|
58
|
+
try {
|
|
59
|
+
const t = h.slice(0, -1).reduce(((e, r) => e[r]), e), n = h.reduce(((e, r) => e[r]), e);
|
|
60
|
+
switch (l) {
|
|
61
|
+
case "GET":
|
|
62
|
+
p = n;
|
|
63
|
+
break;
|
|
64
|
+
case "SET":
|
|
65
|
+
t[h.slice(-1)[0]] = v(s.data.value), p = !0;
|
|
66
|
+
break;
|
|
67
|
+
case "APPLY":
|
|
68
|
+
p = n.apply(t, g);
|
|
69
|
+
break;
|
|
70
|
+
case "CONSTRUCT":
|
|
71
|
+
p = function(e) {
|
|
72
|
+
return Object.assign(e, { [r]: !0 });
|
|
73
|
+
}(new n(...g));
|
|
74
|
+
break;
|
|
75
|
+
case "ENDPOINT":
|
|
76
|
+
{
|
|
77
|
+
const { port1: r, port2: t } = new MessageChannel();
|
|
78
|
+
c(e, t), p = function(e, r) {
|
|
79
|
+
return w.set(e, r), e;
|
|
80
|
+
}(r, [r]);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case "RELEASE":
|
|
84
|
+
p = void 0;
|
|
85
|
+
break;
|
|
86
|
+
default: return;
|
|
87
|
+
}
|
|
88
|
+
} catch (e) {
|
|
89
|
+
p = {
|
|
90
|
+
value: e,
|
|
91
|
+
[o]: 0
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
Promise.resolve(p).catch(((e) => ({
|
|
95
|
+
value: e,
|
|
96
|
+
[o]: 0
|
|
97
|
+
}))).then(((r) => {
|
|
98
|
+
const [n, o] = y(r);
|
|
99
|
+
t.postMessage(Object.assign(Object.assign({}, n), { id: f }), o), "RELEASE" === l && (t.removeEventListener("message", i), u(t), a in e && "function" == typeof e[a] && e[a]());
|
|
100
|
+
})).catch(((e) => {
|
|
101
|
+
const [r, n] = y({
|
|
102
|
+
value: /* @__PURE__ */ new TypeError("Unserializable return value"),
|
|
103
|
+
[o]: 0
|
|
104
|
+
});
|
|
105
|
+
t.postMessage(Object.assign(Object.assign({}, r), { id: f }), n);
|
|
106
|
+
}));
|
|
107
|
+
})), t.start && t.start();
|
|
108
|
+
}
|
|
109
|
+
function u(e) {
|
|
110
|
+
(function(e) {
|
|
111
|
+
return "MessagePort" === e.constructor.name;
|
|
112
|
+
})(e) && e.close();
|
|
113
|
+
}
|
|
114
|
+
function f(e) {
|
|
115
|
+
if (e) throw new Error("Proxy has been released and is not useable");
|
|
116
|
+
}
|
|
117
|
+
function l(e) {
|
|
118
|
+
return m(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then((() => {
|
|
119
|
+
u(e);
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
const h = /* @__PURE__ */ new WeakMap(), g = "FinalizationRegistry" in globalThis && new FinalizationRegistry(((e) => {
|
|
123
|
+
const r = (h.get(e) || 0) - 1;
|
|
124
|
+
h.set(e, r), 0 === r && l(e);
|
|
125
|
+
}));
|
|
126
|
+
function p(e, r, a = [], o = function() {}) {
|
|
127
|
+
let i = !1;
|
|
128
|
+
const s = new Proxy(o, {
|
|
129
|
+
get(t, o) {
|
|
130
|
+
if (f(i), o === n) return () => {
|
|
131
|
+
(function(e) {
|
|
132
|
+
g && g.unregister(e);
|
|
133
|
+
})(s), l(e), r.clear(), i = !0;
|
|
134
|
+
};
|
|
135
|
+
if ("then" === o) {
|
|
136
|
+
if (0 === a.length) return { then: () => s };
|
|
137
|
+
const t = m(e, r, {
|
|
138
|
+
type: "GET",
|
|
139
|
+
path: a.map(((e) => e.toString()))
|
|
140
|
+
}).then(v);
|
|
141
|
+
return t.then.bind(t);
|
|
142
|
+
}
|
|
143
|
+
return p(e, r, [...a, o]);
|
|
144
|
+
},
|
|
145
|
+
set(t, n, o) {
|
|
146
|
+
f(i);
|
|
147
|
+
const [s, c] = y(o);
|
|
148
|
+
return m(e, r, {
|
|
149
|
+
type: "SET",
|
|
150
|
+
path: [...a, n].map(((e) => e.toString())),
|
|
151
|
+
value: s
|
|
152
|
+
}, c).then(v);
|
|
153
|
+
},
|
|
154
|
+
apply(n, o, s) {
|
|
155
|
+
f(i);
|
|
156
|
+
const c = a[a.length - 1];
|
|
157
|
+
if (c === t) return m(e, r, { type: "ENDPOINT" }).then(v);
|
|
158
|
+
if ("bind" === c) return p(e, r, a.slice(0, -1));
|
|
159
|
+
const [u, l] = d(s);
|
|
160
|
+
return m(e, r, {
|
|
161
|
+
type: "APPLY",
|
|
162
|
+
path: a.map(((e) => e.toString())),
|
|
163
|
+
argumentList: u
|
|
164
|
+
}, l).then(v);
|
|
165
|
+
},
|
|
166
|
+
construct(t, n) {
|
|
167
|
+
f(i);
|
|
168
|
+
const [o, s] = d(n);
|
|
169
|
+
return m(e, r, {
|
|
170
|
+
type: "CONSTRUCT",
|
|
171
|
+
path: a.map(((e) => e.toString())),
|
|
172
|
+
argumentList: o
|
|
173
|
+
}, s).then(v);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
return function(e, r) {
|
|
177
|
+
const t = (h.get(r) || 0) + 1;
|
|
178
|
+
h.set(r, t), g && g.register(e, r, e);
|
|
179
|
+
}(s, e), s;
|
|
180
|
+
}
|
|
181
|
+
function d(e) {
|
|
182
|
+
const r = e.map(y);
|
|
183
|
+
return [r.map(((e) => e[0])), (t = r.map(((e) => e[1])), Array.prototype.concat.apply([], t))];
|
|
184
|
+
var t;
|
|
185
|
+
}
|
|
186
|
+
const w = /* @__PURE__ */ new WeakMap();
|
|
187
|
+
function y(e) {
|
|
188
|
+
for (const [r, t] of s) if (t.canHandle(e)) {
|
|
189
|
+
const [n, a] = t.serialize(e);
|
|
190
|
+
return [{
|
|
191
|
+
type: "HANDLER",
|
|
192
|
+
name: r,
|
|
193
|
+
value: n
|
|
194
|
+
}, a];
|
|
195
|
+
}
|
|
196
|
+
return [{
|
|
197
|
+
type: "RAW",
|
|
198
|
+
value: e
|
|
199
|
+
}, w.get(e) || []];
|
|
200
|
+
}
|
|
201
|
+
function v(e) {
|
|
202
|
+
switch (e.type) {
|
|
203
|
+
case "HANDLER": return s.get(e.name).deserialize(e.value);
|
|
204
|
+
case "RAW": return e.value;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function m(e, r, t, n) {
|
|
208
|
+
return new Promise(((a) => {
|
|
209
|
+
const o = new Array(4).fill(0).map((() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))).join("-");
|
|
210
|
+
r.set(o, a), e.start && e.start(), e.postMessage(Object.assign({ id: o }, t), n);
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
let b = !0;
|
|
214
|
+
try {
|
|
215
|
+
String.fromCharCode.apply(String, [1, 2]);
|
|
216
|
+
} catch (e) {
|
|
217
|
+
b = !1, Object.defineProperty(Array.prototype, "subarray", { value: Array.prototype.slice });
|
|
218
|
+
}
|
|
219
|
+
var E = 2654435769;
|
|
220
|
+
function S(e, r) {
|
|
221
|
+
var t = e.length, n = t << 2;
|
|
222
|
+
if (r) {
|
|
223
|
+
var a = e[t - 1];
|
|
224
|
+
if (a < (n -= 4) - 3 || a > n) return null;
|
|
225
|
+
n = a;
|
|
226
|
+
}
|
|
227
|
+
for (var o = new Uint8Array(n), i = 0; i < n; ++i) o[i] = e[i >> 2] >> ((3 & i) << 3);
|
|
228
|
+
return o;
|
|
229
|
+
}
|
|
230
|
+
function C(e, r) {
|
|
231
|
+
var t, n = e.length, a = n >> 2;
|
|
232
|
+
3 & n && ++a, r ? (t = new Uint32Array(a + 1))[a] = n : t = new Uint32Array(a);
|
|
233
|
+
for (var o = 0; o < n; ++o) t[o >> 2] |= e[o] << ((3 & o) << 3);
|
|
234
|
+
return t;
|
|
235
|
+
}
|
|
236
|
+
function U(e) {
|
|
237
|
+
return 4294967295 & e;
|
|
238
|
+
}
|
|
239
|
+
function A(e, r, t, n, a, o) {
|
|
240
|
+
return (t >>> 5 ^ r << 2) + (r >>> 3 ^ t << 4) ^ (e ^ r) + (o[3 & n ^ a] ^ t);
|
|
241
|
+
}
|
|
242
|
+
function T(e) {
|
|
243
|
+
if (e.length < 16) {
|
|
244
|
+
var r = new Uint8Array(16);
|
|
245
|
+
r.set(e), e = r;
|
|
246
|
+
}
|
|
247
|
+
return e;
|
|
248
|
+
}
|
|
249
|
+
function k(e) {
|
|
250
|
+
for (var r = e.length, t = new Uint8Array(3 * r), n = 0, a = 0; a < r; a++) {
|
|
251
|
+
var o = e.charCodeAt(a);
|
|
252
|
+
if (o < 128) t[n++] = o;
|
|
253
|
+
else if (o < 2048) t[n++] = 192 | o >> 6, t[n++] = 128 | 63 & o;
|
|
254
|
+
else {
|
|
255
|
+
if (!(o < 55296 || o > 57343)) {
|
|
256
|
+
if (a + 1 < r) {
|
|
257
|
+
var i = e.charCodeAt(a + 1);
|
|
258
|
+
if (o < 56320 && 56320 <= i && i <= 57343) {
|
|
259
|
+
var s = 65536 + ((1023 & o) << 10 | 1023 & i);
|
|
260
|
+
t[n++] = 240 | s >> 18, t[n++] = 128 | s >> 12 & 63, t[n++] = 128 | s >> 6 & 63, t[n++] = 128 | 63 & s, a++;
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
throw new Error("Malformed string");
|
|
265
|
+
}
|
|
266
|
+
t[n++] = 224 | o >> 12, t[n++] = 128 | o >> 6 & 63, t[n++] = 128 | 63 & o;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return t.subarray(0, n);
|
|
270
|
+
}
|
|
271
|
+
function M(e) {
|
|
272
|
+
var r = e.length;
|
|
273
|
+
return 0 === r ? "" : r < 32767 ? function(e, r) {
|
|
274
|
+
for (var t = new Array(r), n = 0, a = 0, o = e.length; n < r && a < o; n++) {
|
|
275
|
+
var i = e[a++];
|
|
276
|
+
switch (i >> 4) {
|
|
277
|
+
case 0:
|
|
278
|
+
case 1:
|
|
279
|
+
case 2:
|
|
280
|
+
case 3:
|
|
281
|
+
case 4:
|
|
282
|
+
case 5:
|
|
283
|
+
case 6:
|
|
284
|
+
case 7:
|
|
285
|
+
t[n] = i;
|
|
286
|
+
break;
|
|
287
|
+
case 12:
|
|
288
|
+
case 13:
|
|
289
|
+
if (!(a < o)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
290
|
+
t[n] = (31 & i) << 6 | 63 & e[a++];
|
|
291
|
+
break;
|
|
292
|
+
case 14:
|
|
293
|
+
if (!(a + 1 < o)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
294
|
+
t[n] = (15 & i) << 12 | (63 & e[a++]) << 6 | 63 & e[a++];
|
|
295
|
+
break;
|
|
296
|
+
case 15:
|
|
297
|
+
if (!(a + 2 < o)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
298
|
+
var s = ((7 & i) << 18 | (63 & e[a++]) << 12 | (63 & e[a++]) << 6 | 63 & e[a++]) - 65536;
|
|
299
|
+
if (!(0 <= s && s <= 1048575)) throw new Error("Character outside valid Unicode range: 0x" + s.toString(16));
|
|
300
|
+
t[n++] = s >> 10 & 1023 | 55296, t[n] = 1023 & s | 56320;
|
|
301
|
+
break;
|
|
302
|
+
default: throw new Error("Bad UTF-8 encoding 0x" + i.toString(16));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return n < r && (t.length = n), String.fromCharCode.apply(String, t);
|
|
306
|
+
}(e, r) : function(e, r) {
|
|
307
|
+
for (var t = [], n = new Array(32768), a = 0, o = 0, i = e.length; a < r && o < i; a++) {
|
|
308
|
+
var s = e[o++];
|
|
309
|
+
switch (s >> 4) {
|
|
310
|
+
case 0:
|
|
311
|
+
case 1:
|
|
312
|
+
case 2:
|
|
313
|
+
case 3:
|
|
314
|
+
case 4:
|
|
315
|
+
case 5:
|
|
316
|
+
case 6:
|
|
317
|
+
case 7:
|
|
318
|
+
n[a] = s;
|
|
319
|
+
break;
|
|
320
|
+
case 12:
|
|
321
|
+
case 13:
|
|
322
|
+
if (!(o < i)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
323
|
+
n[a] = (31 & s) << 6 | 63 & e[o++];
|
|
324
|
+
break;
|
|
325
|
+
case 14:
|
|
326
|
+
if (!(o + 1 < i)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
327
|
+
n[a] = (15 & s) << 12 | (63 & e[o++]) << 6 | 63 & e[o++];
|
|
328
|
+
break;
|
|
329
|
+
case 15:
|
|
330
|
+
if (!(o + 2 < i)) throw new Error("Unfinished UTF-8 octet sequence");
|
|
331
|
+
var c = ((7 & s) << 18 | (63 & e[o++]) << 12 | (63 & e[o++]) << 6 | 63 & e[o++]) - 65536;
|
|
332
|
+
if (!(0 <= c && c <= 1048575)) throw new Error("Character outside valid Unicode range: 0x" + c.toString(16));
|
|
333
|
+
n[a++] = c >> 10 & 1023 | 55296, n[a] = 1023 & c | 56320;
|
|
334
|
+
break;
|
|
335
|
+
default: throw new Error("Bad UTF-8 encoding 0x" + s.toString(16));
|
|
336
|
+
}
|
|
337
|
+
if (a >= 32766) {
|
|
338
|
+
var u = a + 1;
|
|
339
|
+
n.length = u, t.push(String.fromCharCode.apply(String, n)), r -= u, a = -1;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return a > 0 && (n.length = a, t.push(String.fromCharCode.apply(String, n))), t.join("");
|
|
343
|
+
}(e, r);
|
|
344
|
+
}
|
|
345
|
+
function O(e, r) {
|
|
346
|
+
return "string" == typeof e && (e = k(e)), "string" == typeof r && (r = k(r)), null == e || 0 === e.length ? e : S(function(e, r) {
|
|
347
|
+
var t, n, a, o, i = e.length, s = i - 1, c = e[s], u = 0;
|
|
348
|
+
for (o = 0 | Math.floor(6 + 52 / i); o > 0; --o) {
|
|
349
|
+
for (n = (u = U(u + E)) >>> 2 & 3, a = 0; a < s; ++a) t = e[a + 1], c = e[a] = U(e[a] + A(u, t, c, a, n, r));
|
|
350
|
+
t = e[0], c = e[s] = U(e[s] + A(u, t, c, s, n, r));
|
|
351
|
+
}
|
|
352
|
+
return e;
|
|
353
|
+
}(C(e, !0), C(T(r), !1)), !1);
|
|
354
|
+
}
|
|
355
|
+
function x(e, r) {
|
|
356
|
+
return globalThis.btoa(function(e) {
|
|
357
|
+
var r = e.length;
|
|
358
|
+
if (0 === r) return "";
|
|
359
|
+
var t = b ? e : function(e) {
|
|
360
|
+
for (var r = e.length, t = new Array(e.length), n = 0; n < r; ++n) t[n] = e[n];
|
|
361
|
+
return t;
|
|
362
|
+
}(e);
|
|
363
|
+
if (r < 65535) return String.fromCharCode.apply(String, t);
|
|
364
|
+
for (var n = 32767 & r, a = r >> 15, o = new Array(n ? a + 1 : a), i = 0; i < a; ++i) o[i] = String.fromCharCode.apply(String, t.subarray(i << 15, i + 1 << 15));
|
|
365
|
+
return n && (o[a] = String.fromCharCode.apply(String, t.subarray(a << 15, r))), o.join("");
|
|
366
|
+
}(O(e, r)));
|
|
367
|
+
}
|
|
368
|
+
function R(e, r) {
|
|
369
|
+
return "string" == typeof e && (e = function(e) {
|
|
370
|
+
for (var r = globalThis.atob(e), t = r.length, n = new Uint8Array(t), a = 0; a < t; a++) n[a] = r.charCodeAt(a);
|
|
371
|
+
return n;
|
|
372
|
+
}(e)), "string" == typeof r && (r = k(r)), null == e || 0 === e.length ? e : S(function(e, r) {
|
|
373
|
+
var t, n, a, o, i = e.length, s = i - 1, c = e[0];
|
|
374
|
+
for (n = U(Math.floor(6 + 52 / i) * E); 0 !== n; n = U(n - E)) {
|
|
375
|
+
for (a = n >>> 2 & 3, o = s; o > 0; --o) t = e[o - 1], c = e[o] = U(e[o] - A(n, c, t, o, a, r));
|
|
376
|
+
t = e[s], c = e[0] = U(e[0] - A(n, c, t, 0, a, r));
|
|
377
|
+
}
|
|
378
|
+
return e;
|
|
379
|
+
}(C(e, !1), C(T(r), !1)), !0);
|
|
380
|
+
}
|
|
381
|
+
function L(e, r) {
|
|
382
|
+
return M(R(e, r));
|
|
383
|
+
}
|
|
384
|
+
function j(e, r) {
|
|
385
|
+
return e.filter((function(e) {
|
|
386
|
+
return -1 == r.indexOf(e);
|
|
387
|
+
}));
|
|
388
|
+
}
|
|
389
|
+
function P(e, r) {
|
|
390
|
+
return e.filter((function(e) {
|
|
391
|
+
return r.indexOf(e) > -1;
|
|
392
|
+
}));
|
|
393
|
+
}
|
|
394
|
+
function N(e, r = 0, t = 0, n = 2) {
|
|
395
|
+
if (!e || 4 != e.length) return;
|
|
396
|
+
const a = (e[2] - e[0]) / n, o = (e[3] - e[1]) / n, i = e[0] + r * a, s = e[3] - t * o, c = i + a, u = s - o;
|
|
397
|
+
return [
|
|
398
|
+
[i, s],
|
|
399
|
+
[c, s],
|
|
400
|
+
[c, u],
|
|
401
|
+
[i, u]
|
|
402
|
+
];
|
|
403
|
+
}
|
|
404
|
+
async function z(e, r, t, n = 1024) {
|
|
405
|
+
const a = await fetch(r);
|
|
406
|
+
if (!a) throw new Error("加载失败:" + r);
|
|
407
|
+
let o = await a.blob();
|
|
408
|
+
if (!o) throw new Error("Blob数据对象为空!");
|
|
409
|
+
const i = await createImageBitmap(o);
|
|
410
|
+
o = null;
|
|
411
|
+
const s = Math.ceil(i.width / n), c = Math.ceil(i.height / n), u = Math.max(s, c), f = u, l = u, h = i.width / f, g = i.height / l, p = new OffscreenCanvas(h, g), d = p.getContext("2d");
|
|
412
|
+
if (!d) throw new Error("获取canvas的Context对象为空!");
|
|
413
|
+
const w = [], y = {
|
|
414
|
+
id: e,
|
|
415
|
+
width: i.width,
|
|
416
|
+
height: i.height,
|
|
417
|
+
maxUnitSize: n,
|
|
418
|
+
colNum: f,
|
|
419
|
+
rowNum: l,
|
|
420
|
+
items: w
|
|
421
|
+
};
|
|
422
|
+
for (let v = 0; v < l; v++) for (let r = 0; r < f; r++) {
|
|
423
|
+
d.clearRect(0, 0, p.width, p.height), d.drawImage(i, r * h, v * g, h, g, 0, 0, h, g);
|
|
424
|
+
const n = await p.convertToBlob(), a = URL.createObjectURL(n), o = {
|
|
425
|
+
id: `${e}_${v}_${r}`,
|
|
426
|
+
coords: N(t, r, v, u),
|
|
427
|
+
imgURL: a
|
|
428
|
+
};
|
|
429
|
+
w.push(o);
|
|
430
|
+
}
|
|
431
|
+
return y;
|
|
432
|
+
}
|
|
433
|
+
c(((r, t) => {
|
|
434
|
+
let n = {};
|
|
435
|
+
for (var a in r) e(n, a, {
|
|
436
|
+
get: r[a],
|
|
437
|
+
enumerable: !0
|
|
438
|
+
});
|
|
439
|
+
return t || e(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
440
|
+
})({
|
|
441
|
+
decrypt: () => R,
|
|
442
|
+
decryptToString: () => L,
|
|
443
|
+
encrypt: () => O,
|
|
444
|
+
encryptToString: () => x,
|
|
445
|
+
getIntersect: () => P,
|
|
446
|
+
getMinus: () => j,
|
|
447
|
+
loadBigImage: () => z,
|
|
448
|
+
toBytes: () => k,
|
|
449
|
+
toString: () => M
|
|
450
|
+
}));
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
type alignType = 'left' | 'center' | 'right';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
6
|
};
|
|
11
|
-
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
8
|
align: {
|
|
14
9
|
type: PropType<alignType>;
|
|
15
10
|
default: string;
|
|
@@ -30,10 +25,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
25
|
}>> & Readonly<{}>, {
|
|
31
26
|
color: string;
|
|
32
27
|
align: alignType;
|
|
33
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
34
|
-
declare const
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
35
31
|
export default _default;
|
|
36
|
-
type
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
33
|
new (): {
|
|
38
34
|
$slots: S;
|
|
39
35
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
height: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
height: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
|
+
height: number;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { default as ADivider } from './ADivider.vue';
|
|
2
2
|
import { Splitpanes, Pane } from './splitpanes';
|
|
3
|
-
|
|
3
|
+
import { default as Popover } from './popover/index.vue';
|
|
4
|
+
import { default as ScaleContainer } from './ScaleContainer/index.vue';
|
|
5
|
+
import { default as ScrollSnapContainer } from './ScrollSnapContainer/index.vue';
|
|
6
|
+
export { ADivider, Splitpanes, Pane, Popover, ScaleContainer, ScrollSnapContainer };
|
|
@@ -94,17 +94,23 @@ export declare class LayoutManager {
|
|
|
94
94
|
*/
|
|
95
95
|
isWidgetVisible(widgetID: string): boolean;
|
|
96
96
|
/**
|
|
97
|
-
* 根据ID,获取已经加载的Widget组件对象
|
|
97
|
+
* 根据ID,获取已经加载的Widget组件对象(可调用公开方法)
|
|
98
98
|
* @param widgetID
|
|
99
99
|
* @returns
|
|
100
100
|
*/
|
|
101
101
|
getWidgetComponent(widgetID: string): any;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* 获取组件的IWidgetConfig配置对象
|
|
104
104
|
* @param widgetID 组件ID
|
|
105
105
|
* @returns
|
|
106
106
|
*/
|
|
107
107
|
getWigetItem(widgetID: string): IWidgetConfig | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* 根据组件ID获取对应的IWidgetConfig配置对象
|
|
110
|
+
* @param widgetID 组件ID
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
getIWigetConfig(widgetID: string): IWidgetConfig | undefined;
|
|
108
114
|
/**
|
|
109
115
|
* 根据分组名,获取组件列表
|
|
110
116
|
* @param group 分组名
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IWidgetConfig } from '../../model/Layout';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
leftContainer: HTMLDivElement;
|
|
21
|
-
rightContainer: HTMLDivElement;
|
|
22
|
-
bottomContainer: HTMLDivElement;
|
|
23
|
-
};
|
|
24
|
-
rootEl: HTMLDivElement;
|
|
3
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_15: {}, __VLS_22: {}, __VLS_29: {}, __VLS_36: {}, __VLS_43: {}, __VLS_50: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
top?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
main?: (props: typeof __VLS_8) => any;
|
|
8
|
+
} & {
|
|
9
|
+
back?: (props: typeof __VLS_15) => any;
|
|
10
|
+
} & {
|
|
11
|
+
front?: (props: typeof __VLS_22) => any;
|
|
12
|
+
} & {
|
|
13
|
+
left?: (props: typeof __VLS_29) => any;
|
|
14
|
+
} & {
|
|
15
|
+
right?: (props: typeof __VLS_36) => any;
|
|
16
|
+
} & {
|
|
17
|
+
bottom?: (props: typeof __VLS_43) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_50) => any;
|
|
25
20
|
};
|
|
26
|
-
|
|
27
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
28
22
|
widgetConfig: {
|
|
29
23
|
type: PropType<IWidgetConfig[]>;
|
|
30
24
|
required: false;
|
|
@@ -164,18 +158,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
164
158
|
noFront: boolean;
|
|
165
159
|
noBack: boolean;
|
|
166
160
|
noMain: boolean;
|
|
167
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
centerBackContainer: HTMLDivElement;
|
|
171
|
-
centerFrontContainer: HTMLDivElement;
|
|
172
|
-
leftContainer: HTMLDivElement;
|
|
173
|
-
rightContainer: HTMLDivElement;
|
|
174
|
-
bottomContainer: HTMLDivElement;
|
|
175
|
-
}, HTMLDivElement>;
|
|
176
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
161
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
162
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
163
|
+
declare const _default: typeof __VLS_export;
|
|
177
164
|
export default _default;
|
|
178
|
-
type
|
|
165
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
179
166
|
new (): {
|
|
180
167
|
$slots: S;
|
|
181
168
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_7) => any;
|
|
4
|
+
} & {
|
|
5
|
+
reference?: (props: typeof __VLS_9) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
dir: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
show: (...args: any[]) => void;
|
|
14
|
+
hide: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
dir: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
dir: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -2,8 +2,9 @@ interface Props {
|
|
|
2
2
|
enterActive?: string;
|
|
3
3
|
leaveActive?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
6
|
enterActive: string;
|
|
7
7
|
leaveActive: string;
|
|
8
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
9
10
|
export default _default;
|