go-view-worker 0.0.1 → 0.0.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/dist/chunks/{403-382550a8.js → 403-48dde732.js} +2 -2
- package/dist/chunks/{404-3d357d75.js → 404-33eb13aa.js} +2 -2
- package/dist/chunks/{500-96d14fb0.js → 500-03632c55.js} +2 -2
- package/dist/chunks/{StylesSetting-952ff564.js → StylesSetting-307bbc38.js} +3 -3
- package/dist/chunks/{chartEditStore-a725b558.js → chartEditStore-5bf68359.js} +176 -181
- package/dist/chunks/{designStore-fe92c2ba.js → designStore-196559cb.js} +732 -723
- package/dist/chunks/{index-3fd591ea.js → index-08a8f4f7.js} +12 -12
- package/dist/chunks/{index-95c5f0a0.js → index-1d427a73.js} +167 -166
- package/dist/chunks/{index-82d00e13.js → index-1f14b418.js} +89 -93
- package/dist/chunks/{index-1cb69ab6.js → index-36d9b318.js} +8 -8
- package/dist/chunks/{index-62a7855c.js → index-479e043f.js} +13 -12
- package/dist/chunks/{index-00b6339d.js → index-5dad4e02.js} +6 -6
- package/dist/chunks/{index-51458edb.js → index-632e8cd2.js} +2 -2
- package/dist/chunks/{index-f266153a.js → index-64580c85.js} +106 -104
- package/dist/chunks/{index-de0a1234.js → index-7b9408cb.js} +36 -36
- package/dist/chunks/index-7eaf2edc.js +461 -0
- package/dist/chunks/index-928e54a7.js +94 -0
- package/dist/chunks/{index-a410a1d3.js → index-9926f668.js} +8 -8
- package/dist/chunks/{index-9502bd7e.js → index-9af87347.js} +14 -13
- package/dist/chunks/{index-da8ddb02.js → index-bfd775d9.js} +1 -1
- package/dist/chunks/{index-09e62bb4.js → index-c627e7d2.js} +12 -12
- package/dist/chunks/{index-0472b3a5.js → index-d6866a98.js} +48 -47
- package/dist/chunks/{index-f97e5ffc.js → index-dd95bed0.js} +1 -1
- package/dist/chunks/{index-32d13283.js → index-e65e8cdc.js} +6 -6
- package/dist/chunks/{index-fdf7dc1e.js → index-e8a302ce.js} +13 -13
- package/dist/chunks/{index-fec9f9f8.js → index-f4bd44a9.js} +66 -65
- package/dist/chunks/{index.vue_vue_type_script_setup_true_lang-c6159a17.js → index.vue_vue_type_script_setup_true_lang-58afdf72.js} +550 -549
- package/dist/chunks/{lodash-c80b695e.js → lodash-5bba33ba.js} +1 -1
- package/dist/chunks/{router-106a6abc.js → router-443d466c.js} +15 -15
- package/dist/chunks/{useKeyboard.hook-da88451a.js → useKeyboard.hook-da57df02.js} +27 -27
- package/dist/chunks/{useSyncUpdate.hook-5517a8ad.js → useSyncUpdate.hook-dfee2f43.js} +16 -16
- package/dist/chunks/{useTargetData.hook-28a7e43b.js → useTargetData.hook-77b72165.js} +1 -1
- package/dist/chunks/{wrapper-4c15ca94.js → wrapper-54705288.js} +4 -4
- package/dist/go-view-worker.js +13 -12
- package/dist/init.js +1 -1
- package/dist/resize.js +18 -0
- package/dist/style.css +2 -2
- package/dist/types/packages/resize.d.ts +1 -0
- package/dist/types/src/hooks/useLang.hook.d.ts +1 -1
- package/package.json +5 -1
- package/dist/chunks/index-097ae4b0.js +0 -436
- package/dist/chunks/index-54f304ef.js +0 -89
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, computed as I, resolveComponent as C, openBlock as c, createElementBlock as m, Fragment as X, renderList as Z, normalizeClass as A, withModifiers as le, createVNode as u, withCtx as _, createBlock as w, resolveDynamicComponent as ce, ref as de, watch as ue, nextTick as fe, createElementVNode as y, unref as v, createTextVNode as z, toDisplayString as L, createCommentVNode as K } from "vue";
|
|
2
2
|
import "naive-ui";
|
|
3
|
-
import {
|
|
3
|
+
import { x as E, _ as Q, y as x, z as O, B as _e, D as W, E as me, F as ge, g as he, G as pe, H as ye, I as ve, J as Ce, K as be } from "./designStore-196559cb.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import { i as j, u as $e,
|
|
6
|
-
import { _ as
|
|
7
|
-
import { i as
|
|
8
|
-
import { C as
|
|
9
|
-
import { c as k } from "./index-
|
|
5
|
+
import { i as j, u as $e, P as Se, E as B, f as Ee, h as ke, l as xe, g as Pe } from "./chartEditStore-5bf68359.js";
|
|
6
|
+
import { _ as Te, a as Ie } from "./index-7b9408cb.js";
|
|
7
|
+
import { i as Ae, _ as we, c as Oe, a as Fe, b as M } from "./index-7eaf2edc.js";
|
|
8
|
+
import { C as De, k as N, m as G, n as Re, j as ze } from "./index.vue_vue_type_script_setup_true_lang-58afdf72.js";
|
|
9
|
+
import { c as k } from "./index-1f14b418.js";
|
|
10
10
|
import "pinia";
|
|
11
|
-
import "./index-
|
|
12
|
-
import "
|
|
13
|
-
|
|
11
|
+
import "./index-632e8cd2.js";
|
|
12
|
+
import "../resize.js";
|
|
13
|
+
import "./router-443d466c.js";
|
|
14
|
+
const Le = { class: "go-apple-control-btn" }, Ke = ["onClick"], Be = /* @__PURE__ */ J({
|
|
14
15
|
__name: "index",
|
|
15
16
|
props: {
|
|
16
17
|
// mini 版本
|
|
@@ -42,7 +43,7 @@ const ze = { class: "go-apple-control-btn" }, Ke = ["onClick"], Me = /* @__PURE_
|
|
|
42
43
|
},
|
|
43
44
|
emits: ["close", "remove", "resize", "fullResize"],
|
|
44
45
|
setup(e, { emit: t }) {
|
|
45
|
-
const n = t, o = e, { CloseIcon: a, RemoveIcon: s, ResizeIcon: d } = j.ionicons5, f =
|
|
46
|
+
const n = t, o = e, { CloseIcon: a, RemoveIcon: s, ResizeIcon: d } = j.ionicons5, f = I(() => P.filter(($) => o.hidden.findIndex((h) => $.key == h) === -1)), b = I(() => o.narrow && E(!0)), P = [
|
|
46
47
|
{
|
|
47
48
|
title: "关闭",
|
|
48
49
|
key: "close",
|
|
@@ -58,20 +59,20 @@ const ze = { class: "go-apple-control-btn" }, Ke = ["onClick"], Me = /* @__PURE_
|
|
|
58
59
|
key: o.narrow ? "fullResize" : "resize",
|
|
59
60
|
icon: d
|
|
60
61
|
}
|
|
61
|
-
],
|
|
62
|
+
], T = (g) => {
|
|
62
63
|
g === "fullResize" && E(), g === "remove" && E(!0) && E(), n(g);
|
|
63
64
|
};
|
|
64
65
|
return (g, $) => {
|
|
65
66
|
const h = C("n-icon");
|
|
66
|
-
return c(), m("div",
|
|
67
|
-
(c(!0), m(
|
|
67
|
+
return c(), m("div", Le, [
|
|
68
|
+
(c(!0), m(X, null, Z(f.value, (r) => (c(), m("div", {
|
|
68
69
|
key: r.key,
|
|
69
|
-
class:
|
|
70
|
-
onClick: le((i) =>
|
|
70
|
+
class: A(["btn", [r.key, e.disabled && "disabled", e.mini && "mini"]]),
|
|
71
|
+
onClick: le((i) => T(r.key), ["stop"])
|
|
71
72
|
}, [
|
|
72
73
|
u(h, {
|
|
73
74
|
size: "10",
|
|
74
|
-
class:
|
|
75
|
+
class: A(["icon-base", { hover: !e.disabled }])
|
|
75
76
|
}, {
|
|
76
77
|
default: _(() => [
|
|
77
78
|
(c(), w(ce(r.icon)))
|
|
@@ -83,23 +84,23 @@ const ze = { class: "go-apple-control-btn" }, Ke = ["onClick"], Me = /* @__PURE_
|
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
|
-
const
|
|
87
|
-
function
|
|
87
|
+
const Me = /* @__PURE__ */ Q(Be, [["__scopeId", "data-v-482dd551"]]);
|
|
88
|
+
function Ne(e, t) {
|
|
88
89
|
for (var n = -1, o = e == null ? 0 : e.length, a = Array(o); ++n < o; )
|
|
89
90
|
a[n] = t(e[n], n, e);
|
|
90
91
|
return a;
|
|
91
92
|
}
|
|
92
|
-
var ee =
|
|
93
|
+
var ee = Ne, Ge = x, He = O, Ue = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ve = /^\w*$/;
|
|
93
94
|
function qe(e, t) {
|
|
94
95
|
if (Ge(e))
|
|
95
96
|
return !1;
|
|
96
97
|
var n = typeof e;
|
|
97
98
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || He(e) ? !0 : Ve.test(e) || !Ue.test(e) || t != null && e in Object(t);
|
|
98
99
|
}
|
|
99
|
-
var Ye = qe, te = _e,
|
|
100
|
+
var Ye = qe, te = _e, Je = "Expected a function";
|
|
100
101
|
function F(e, t) {
|
|
101
102
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
102
|
-
throw new TypeError(
|
|
103
|
+
throw new TypeError(Je);
|
|
103
104
|
var n = function() {
|
|
104
105
|
var o = arguments, a = t ? t.apply(this, o) : o[0], s = n.cache;
|
|
105
106
|
if (s.has(a))
|
|
@@ -110,9 +111,9 @@ function F(e, t) {
|
|
|
110
111
|
return n.cache = new (F.Cache || te)(), n;
|
|
111
112
|
}
|
|
112
113
|
F.Cache = te;
|
|
113
|
-
var
|
|
114
|
+
var Xe = F, Ze = Xe, Qe = 500;
|
|
114
115
|
function We(e) {
|
|
115
|
-
var t =
|
|
116
|
+
var t = Ze(e, function(o) {
|
|
116
117
|
return n.size === Qe && n.clear(), o;
|
|
117
118
|
}), n = t.cache;
|
|
118
119
|
return t;
|
|
@@ -141,7 +142,7 @@ var ft = ut, _t = x, mt = Ye, gt = rt, ht = ft;
|
|
|
141
142
|
function pt(e, t) {
|
|
142
143
|
return _t(e) ? e : mt(e, t) ? [e] : gt(ht(e));
|
|
143
144
|
}
|
|
144
|
-
var
|
|
145
|
+
var D = pt;
|
|
145
146
|
function yt(e) {
|
|
146
147
|
var t = e == null ? 0 : e.length;
|
|
147
148
|
return t ? e[t - 1] : void 0;
|
|
@@ -153,7 +154,7 @@ function $t(e) {
|
|
|
153
154
|
var t = e + "";
|
|
154
155
|
return t == "0" && 1 / e == -bt ? "-0" : t;
|
|
155
156
|
}
|
|
156
|
-
var ae = $t, St =
|
|
157
|
+
var ae = $t, St = D, Et = ae;
|
|
157
158
|
function kt(e, t) {
|
|
158
159
|
t = St(t, e);
|
|
159
160
|
for (var n = 0, o = t.length; e != null && n < o; )
|
|
@@ -161,26 +162,26 @@ function kt(e, t) {
|
|
|
161
162
|
return n && n == o ? e : void 0;
|
|
162
163
|
}
|
|
163
164
|
var xt = kt;
|
|
164
|
-
function
|
|
165
|
+
function Pt(e, t, n) {
|
|
165
166
|
var o = -1, a = e.length;
|
|
166
167
|
t < 0 && (t = -t > a ? 0 : a + t), n = n > a ? a : n, n < 0 && (n += a), a = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
167
168
|
for (var s = Array(a); ++o < a; )
|
|
168
169
|
s[o] = e[o + t];
|
|
169
170
|
return s;
|
|
170
171
|
}
|
|
171
|
-
var
|
|
172
|
+
var Tt = Pt, It = xt, At = Tt;
|
|
172
173
|
function wt(e, t) {
|
|
173
|
-
return t.length < 2 ? e :
|
|
174
|
+
return t.length < 2 ? e : It(e, At(t, 0, -1));
|
|
174
175
|
}
|
|
175
|
-
var Ot = wt, Ft =
|
|
176
|
-
function
|
|
177
|
-
return t = Ft(t, e), e =
|
|
176
|
+
var Ot = wt, Ft = D, Dt = vt, Rt = Ot, zt = ae;
|
|
177
|
+
function Lt(e, t) {
|
|
178
|
+
return t = Ft(t, e), e = Rt(e, t), e == null || delete e[zt(Dt(t))];
|
|
178
179
|
}
|
|
179
|
-
var Kt =
|
|
180
|
-
function
|
|
181
|
-
return
|
|
180
|
+
var Kt = Lt, Bt = Ae;
|
|
181
|
+
function Mt(e) {
|
|
182
|
+
return Bt(e) ? void 0 : e;
|
|
182
183
|
}
|
|
183
|
-
var
|
|
184
|
+
var Nt = Mt, q = W, Gt = me, Ht = x, Y = q ? q.isConcatSpreadable : void 0;
|
|
184
185
|
function Ut(e) {
|
|
185
186
|
return Ht(e) || Gt(e) || !!(Y && e && e[Y]);
|
|
186
187
|
}
|
|
@@ -193,16 +194,16 @@ function re(e, t, n, o, a) {
|
|
|
193
194
|
}
|
|
194
195
|
return a;
|
|
195
196
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
197
|
+
var Jt = re, Xt = Jt;
|
|
198
|
+
function Zt(e) {
|
|
198
199
|
var t = e == null ? 0 : e.length;
|
|
199
|
-
return t ?
|
|
200
|
+
return t ? Xt(e, 1) : [];
|
|
200
201
|
}
|
|
201
|
-
var Qt =
|
|
202
|
+
var Qt = Zt, Wt = Qt, jt = we, en = Oe;
|
|
202
203
|
function tn(e) {
|
|
203
204
|
return en(jt(e, void 0, Wt), e + "");
|
|
204
205
|
}
|
|
205
|
-
var nn = tn, an = ee, rn = ve, on = Kt, sn =
|
|
206
|
+
var nn = tn, an = ee, rn = ve, on = Kt, sn = D, ln = pe, cn = Nt, dn = nn, un = ye, fn = 1, _n = 2, mn = 4, gn = dn(function(e, t) {
|
|
206
207
|
var n = {};
|
|
207
208
|
if (e == null)
|
|
208
209
|
return n;
|
|
@@ -220,7 +221,7 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
220
221
|
}, $n = { class: "list-bottom" }, Sn = {
|
|
221
222
|
key: 0,
|
|
222
223
|
class: "list-model"
|
|
223
|
-
}, En = ["onClick"], kn = /* @__PURE__ */
|
|
224
|
+
}, En = ["onClick"], kn = /* @__PURE__ */ J({
|
|
224
225
|
__name: "index",
|
|
225
226
|
props: {
|
|
226
227
|
menuOptions: {
|
|
@@ -230,15 +231,15 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
230
231
|
},
|
|
231
232
|
emits: ["deletePhoto"],
|
|
232
233
|
setup(e, { emit: t }) {
|
|
233
|
-
const n = $e(), { TrashIcon: o } = j.ionicons5, a = t, s = Fe(), d = de(), f = (r) => !r.disabled && r.package === Se.PHOTOS && r.category ===
|
|
234
|
-
i.disabled || (k(i.chartKey,
|
|
235
|
-
},
|
|
236
|
-
n.setEditCanvas(
|
|
234
|
+
const n = $e(), { TrashIcon: o } = j.ionicons5, a = t, s = Fe(), d = de(), f = (r) => !r.disabled && r.package === Se.PHOTOS && r.category === De.PRIVATE, b = I(() => s.getChartType), P = (r, i) => {
|
|
235
|
+
i.disabled || (k(i.chartKey, N(i)), k(i.conKey, G(i)), r.dataTransfer.setData(Ce.DRAG_KEY, be(pn(i, ["image"]))), n.setEditCanvas(B.IS_CREATE, !0));
|
|
236
|
+
}, T = () => {
|
|
237
|
+
n.setEditCanvas(B.IS_CREATE, !1);
|
|
237
238
|
}, g = async (r) => {
|
|
238
239
|
if (!r.disabled)
|
|
239
240
|
try {
|
|
240
|
-
Ee(), k(r.chartKey,
|
|
241
|
-
let i = await
|
|
241
|
+
Ee(), k(r.chartKey, N(r)), k(r.conKey, G(r));
|
|
242
|
+
let i = await Re(r);
|
|
242
243
|
r.redirectComponent && (r.dataset && (i.option.dataset = r.dataset), i.chartConfig.title = r.title, i.chartConfig.chartFrame = r.chartFrame), n.addComponentList(i, !1, !0), n.setTargetSelectChart(i.id), ke();
|
|
243
244
|
} catch {
|
|
244
245
|
xe(), window.$message.warning("图表正在研发中, 敬请期待...");
|
|
@@ -246,11 +247,11 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
246
247
|
}, $ = (r) => {
|
|
247
248
|
r?.configEvents?.addHandle(r);
|
|
248
249
|
}, h = (r, i) => {
|
|
249
|
-
|
|
250
|
+
Pe({
|
|
250
251
|
message: "是否删除此图片?",
|
|
251
252
|
transformOrigin: "center",
|
|
252
253
|
onPositiveCallback: () => {
|
|
253
|
-
const S =
|
|
254
|
+
const S = ze();
|
|
254
255
|
a("deletePhoto", r, i), S.deletePhotos(r, i);
|
|
255
256
|
}
|
|
256
257
|
});
|
|
@@ -258,41 +259,41 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
258
259
|
return ue(
|
|
259
260
|
() => b.value,
|
|
260
261
|
(r) => {
|
|
261
|
-
r ===
|
|
262
|
+
r === M.DOUBLE && fe(() => {
|
|
262
263
|
d.value.classList.add("miniAnimation");
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
266
|
), (r, i) => {
|
|
266
|
-
const S = C("n-ellipsis"),
|
|
267
|
+
const S = C("n-ellipsis"), R = C("n-text"), oe = C("n-icon"), se = C("n-button");
|
|
267
268
|
return c(), m("div", yn, [
|
|
268
269
|
y("div", {
|
|
269
270
|
ref_key: "contentChartsItemBoxRef",
|
|
270
271
|
ref: d,
|
|
271
|
-
class:
|
|
272
|
+
class: A(["go-content-charts-item-box", [b.value === v(M).DOUBLE ? "double" : "single"]])
|
|
272
273
|
}, [
|
|
273
|
-
(c(!0), m(
|
|
274
|
+
(c(!0), m(X, null, Z(e.menuOptions, (l, ie) => (c(), m("div", {
|
|
274
275
|
class: "item-box",
|
|
275
276
|
key: l.title,
|
|
276
277
|
draggable: "",
|
|
277
|
-
onDragstart: (p) => !l.disabled &&
|
|
278
|
-
onDragend: (p) => !l.disabled &&
|
|
278
|
+
onDragstart: (p) => !l.disabled && P(p, l),
|
|
279
|
+
onDragend: (p) => !l.disabled && T(),
|
|
279
280
|
onDblclick: (p) => g(l),
|
|
280
281
|
onClick: (p) => $(l)
|
|
281
282
|
}, [
|
|
282
283
|
y("div", Cn, [
|
|
283
|
-
u(v(
|
|
284
|
+
u(v(Me), {
|
|
284
285
|
class: "list-header-control-btn",
|
|
285
286
|
mini: !0,
|
|
286
287
|
disabled: !0
|
|
287
288
|
}),
|
|
288
|
-
u(
|
|
289
|
+
u(R, {
|
|
289
290
|
class: "list-header-text",
|
|
290
291
|
depth: "3"
|
|
291
292
|
}, {
|
|
292
293
|
default: _(() => [
|
|
293
294
|
u(S, null, {
|
|
294
295
|
default: _(() => [
|
|
295
|
-
L(
|
|
296
|
+
z(L(l.title), 1)
|
|
296
297
|
]),
|
|
297
298
|
_: 2
|
|
298
299
|
}, 1024)
|
|
@@ -301,28 +302,28 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
301
302
|
}, 1024)
|
|
302
303
|
]),
|
|
303
304
|
y("div", bn, [
|
|
304
|
-
l.icon ? (c(), w(v(
|
|
305
|
+
l.icon ? (c(), w(v(Te), {
|
|
305
306
|
key: 0,
|
|
306
307
|
class: "list-img",
|
|
307
308
|
icon: l.icon,
|
|
308
309
|
color: "#999",
|
|
309
310
|
width: "48",
|
|
310
311
|
style: { height: "auto" }
|
|
311
|
-
}, null, 8, ["icon"])) : (c(), w(v(
|
|
312
|
+
}, null, 8, ["icon"])) : (c(), w(v(Ie), {
|
|
312
313
|
key: 1,
|
|
313
314
|
class: "list-img",
|
|
314
315
|
chartConfig: l
|
|
315
316
|
}, null, 8, ["chartConfig"]))
|
|
316
317
|
]),
|
|
317
318
|
y("div", $n, [
|
|
318
|
-
u(
|
|
319
|
+
u(R, {
|
|
319
320
|
class: "list-bottom-text",
|
|
320
321
|
depth: "3"
|
|
321
322
|
}, {
|
|
322
323
|
default: _(() => [
|
|
323
324
|
u(S, { style: { "max-width": "90%" } }, {
|
|
324
325
|
default: _(() => [
|
|
325
|
-
L(
|
|
326
|
+
z(L(l.title), 1)
|
|
326
327
|
]),
|
|
327
328
|
_: 2
|
|
328
329
|
}, 1024)
|
|
@@ -362,7 +363,7 @@ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animati
|
|
|
362
363
|
};
|
|
363
364
|
}
|
|
364
365
|
});
|
|
365
|
-
const
|
|
366
|
+
const Bn = /* @__PURE__ */ Q(kn, [["__scopeId", "data-v-344215c4"]]);
|
|
366
367
|
export {
|
|
367
|
-
|
|
368
|
+
Bn as default
|
|
368
369
|
};
|