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.
Files changed (42) hide show
  1. package/dist/chunks/{403-382550a8.js → 403-48dde732.js} +2 -2
  2. package/dist/chunks/{404-3d357d75.js → 404-33eb13aa.js} +2 -2
  3. package/dist/chunks/{500-96d14fb0.js → 500-03632c55.js} +2 -2
  4. package/dist/chunks/{StylesSetting-952ff564.js → StylesSetting-307bbc38.js} +3 -3
  5. package/dist/chunks/{chartEditStore-a725b558.js → chartEditStore-5bf68359.js} +176 -181
  6. package/dist/chunks/{designStore-fe92c2ba.js → designStore-196559cb.js} +732 -723
  7. package/dist/chunks/{index-3fd591ea.js → index-08a8f4f7.js} +12 -12
  8. package/dist/chunks/{index-95c5f0a0.js → index-1d427a73.js} +167 -166
  9. package/dist/chunks/{index-82d00e13.js → index-1f14b418.js} +89 -93
  10. package/dist/chunks/{index-1cb69ab6.js → index-36d9b318.js} +8 -8
  11. package/dist/chunks/{index-62a7855c.js → index-479e043f.js} +13 -12
  12. package/dist/chunks/{index-00b6339d.js → index-5dad4e02.js} +6 -6
  13. package/dist/chunks/{index-51458edb.js → index-632e8cd2.js} +2 -2
  14. package/dist/chunks/{index-f266153a.js → index-64580c85.js} +106 -104
  15. package/dist/chunks/{index-de0a1234.js → index-7b9408cb.js} +36 -36
  16. package/dist/chunks/index-7eaf2edc.js +461 -0
  17. package/dist/chunks/index-928e54a7.js +94 -0
  18. package/dist/chunks/{index-a410a1d3.js → index-9926f668.js} +8 -8
  19. package/dist/chunks/{index-9502bd7e.js → index-9af87347.js} +14 -13
  20. package/dist/chunks/{index-da8ddb02.js → index-bfd775d9.js} +1 -1
  21. package/dist/chunks/{index-09e62bb4.js → index-c627e7d2.js} +12 -12
  22. package/dist/chunks/{index-0472b3a5.js → index-d6866a98.js} +48 -47
  23. package/dist/chunks/{index-f97e5ffc.js → index-dd95bed0.js} +1 -1
  24. package/dist/chunks/{index-32d13283.js → index-e65e8cdc.js} +6 -6
  25. package/dist/chunks/{index-fdf7dc1e.js → index-e8a302ce.js} +13 -13
  26. package/dist/chunks/{index-fec9f9f8.js → index-f4bd44a9.js} +66 -65
  27. 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
  28. package/dist/chunks/{lodash-c80b695e.js → lodash-5bba33ba.js} +1 -1
  29. package/dist/chunks/{router-106a6abc.js → router-443d466c.js} +15 -15
  30. package/dist/chunks/{useKeyboard.hook-da88451a.js → useKeyboard.hook-da57df02.js} +27 -27
  31. package/dist/chunks/{useSyncUpdate.hook-5517a8ad.js → useSyncUpdate.hook-dfee2f43.js} +16 -16
  32. package/dist/chunks/{useTargetData.hook-28a7e43b.js → useTargetData.hook-77b72165.js} +1 -1
  33. package/dist/chunks/{wrapper-4c15ca94.js → wrapper-54705288.js} +4 -4
  34. package/dist/go-view-worker.js +13 -12
  35. package/dist/init.js +1 -1
  36. package/dist/resize.js +18 -0
  37. package/dist/style.css +2 -2
  38. package/dist/types/packages/resize.d.ts +1 -0
  39. package/dist/types/src/hooks/useLang.hook.d.ts +1 -1
  40. package/package.json +5 -1
  41. package/dist/chunks/index-097ae4b0.js +0 -436
  42. package/dist/chunks/index-54f304ef.js +0 -89
@@ -1,4 +1,4 @@
1
- import { ap as jt } from "./designStore-fe92c2ba.js";
1
+ import { c as jt } from "./designStore-196559cb.js";
2
2
  var Je = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,34 +1,34 @@
1
1
  import "vue-router";
2
- import { P as c, R as n } from "./designStore-fe92c2ba.js";
2
+ import { P as c, r as n } from "./designStore-196559cb.js";
3
3
  import "vue";
4
4
  import "naive-ui";
5
- const i = (t, r, e) => {
5
+ const i = (r, t, e) => {
6
6
  if (e) {
7
- const a = u(t, "href");
7
+ const a = u(r, "href");
8
8
  s(a);
9
9
  return;
10
10
  }
11
- if (r) {
11
+ if (t) {
12
12
  n.replace({
13
- name: t
13
+ name: r
14
14
  });
15
15
  return;
16
16
  }
17
17
  n.push({
18
- name: t
18
+ name: r
19
19
  });
20
- }, u = (t, r) => {
20
+ }, u = (r, t) => {
21
21
  try {
22
22
  const e = n.resolve({
23
- name: t
23
+ name: r
24
24
  });
25
- return r ? e[r] : e;
25
+ return t ? e[t] : e;
26
26
  } catch {
27
27
  window.$message.warning("查询路由信息失败,请联系管理员!");
28
28
  }
29
- }, f = (t, r, e, a) => {
29
+ }, f = (r, t, e, a) => {
30
30
  let o = "";
31
- if (r?.length && (o = `${t}/${r.join("/")}`), a)
31
+ if (t?.length && (o = `${r}/${t.join("/")}`), a)
32
32
  return s(o);
33
33
  if (e) {
34
34
  n.replace({
@@ -41,7 +41,7 @@ const i = (t, r, e) => {
41
41
  });
42
42
  }, w = () => {
43
43
  i(c.RELOAD_NAME);
44
- }, s = (t) => window.open(t, "_blank"), P = () => {
44
+ }, s = (r) => window.open(r, "_blank"), P = () => {
45
45
  try {
46
46
  return document.location.hash.split("?")[0].split("/").pop() || "";
47
47
  } catch {
@@ -49,9 +49,9 @@ const i = (t, r, e) => {
49
49
  }
50
50
  };
51
51
  export {
52
- f as a,
53
- P as b,
52
+ u as a,
53
+ f as b,
54
54
  w as c,
55
- u as f,
55
+ P as f,
56
56
  i as r
57
57
  };
@@ -1,12 +1,12 @@
1
- import { u as te } from "./chartEditStore-a725b558.js";
2
- import { ap as re, w as ne, M as n, ak as D, al as $, aq as U, O as g, a7 as P } from "./designStore-fe92c2ba.js";
1
+ import { u as te } from "./chartEditStore-5bf68359.js";
2
+ import { c as re, g as ne, M as n, W as D, e as $, f as U, t as g, h as W } from "./designStore-196559cb.js";
3
3
  import "vue-router";
4
4
  import "naive-ui";
5
5
  import "vue";
6
6
  var G = { exports: {} };
7
7
  (function(a) {
8
8
  (function(c) {
9
- var o, s = {}, p = { 16: !1, 18: !1, 17: !1, 91: !1 }, S = "all", K = {
9
+ var o, s = {}, p = { 16: !1, 18: !1, 17: !1, 91: !1 }, P = "all", K = {
10
10
  "⇧": 16,
11
11
  shift: 16,
12
12
  "⌥": 18,
@@ -17,7 +17,7 @@ var G = { exports: {} };
17
17
  control: 17,
18
18
  "⌘": 91,
19
19
  command: 91
20
- }, W = {
20
+ }, S = {
21
21
  backspace: 8,
22
22
  tab: 9,
23
23
  clear: 12,
@@ -48,11 +48,11 @@ var G = { exports: {} };
48
48
  "]": 221,
49
49
  "\\": 220
50
50
  }, A = function(e) {
51
- return W[e] || e.toUpperCase().charCodeAt(0);
52
- }, O = [];
51
+ return S[e] || e.toUpperCase().charCodeAt(0);
52
+ }, v = [];
53
53
  for (o = 1; o < 20; o++)
54
- W["f" + o] = 111 + o;
55
- function k(e, t) {
54
+ S["f" + o] = 111 + o;
55
+ function O(e, t) {
56
56
  for (var r = e.length; r--; )
57
57
  if (e[r] === t)
58
58
  return r;
@@ -78,7 +78,7 @@ var G = { exports: {} };
78
78
  }
79
79
  function B(e) {
80
80
  var t, r, i, R, m, E;
81
- if (t = e.keyCode, k(O, t) == -1 && O.push(t), (t == 93 || t == 224) && (t = 91), t in p) {
81
+ if (t = e.keyCode, O(v, t) == -1 && v.push(t), (t == 93 || t == 224) && (t = 91), t in p) {
82
82
  p[t] = !0;
83
83
  for (i in K)
84
84
  K[i] == t && (T[i] = !0);
@@ -89,14 +89,14 @@ var G = { exports: {} };
89
89
  if (r = s[t][R], r.scope == E || r.scope == "all") {
90
90
  m = r.mods.length > 0;
91
91
  for (i in p)
92
- (!p[i] && k(r.mods, +i) > -1 || p[i] && k(r.mods, +i) == -1) && (m = !1);
92
+ (!p[i] && O(r.mods, +i) > -1 || p[i] && O(r.mods, +i) == -1) && (m = !1);
93
93
  (r.mods.length == 0 && !p[16] && !p[18] && !p[17] && !p[91] || m) && r.method(e, r) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0));
94
94
  }
95
95
  }
96
96
  }
97
97
  function z(e) {
98
- var t = e.keyCode, r, i = k(O, t);
99
- if (i >= 0 && O.splice(i, 1), (t == 93 || t == 224) && (t = 91), t in p) {
98
+ var t = e.keyCode, r, i = O(v, t);
99
+ if (i >= 0 && v.splice(i, 1), (t == 93 || t == 224) && (t = 91), t in p) {
100
100
  p[t] = !1;
101
101
  for (r in K)
102
102
  K[r] == t && (T[r] = !1);
@@ -123,11 +123,11 @@ var G = { exports: {} };
123
123
  L = s[e][m], L.scope === t && I(L.mods, R) && (s[e][m] = {});
124
124
  }
125
125
  }
126
- function q(e) {
127
- return typeof e == "string" && (e = A(e)), k(O, e) != -1;
126
+ function X(e) {
127
+ return typeof e == "string" && (e = A(e)), O(v, e) != -1;
128
128
  }
129
- function X() {
130
- return O.slice(0);
129
+ function q() {
130
+ return v.slice(0);
131
131
  }
132
132
  function J(e) {
133
133
  var t = (e.target || e.srcElement).tagName;
@@ -136,10 +136,10 @@ var G = { exports: {} };
136
136
  for (o in K)
137
137
  T[o] = !1;
138
138
  function Q(e) {
139
- S = e || "all";
139
+ P = e || "all";
140
140
  }
141
141
  function C() {
142
- return S || "all";
142
+ return P || "all";
143
143
  }
144
144
  function Z(e) {
145
145
  var t, r, i;
@@ -169,11 +169,11 @@ var G = { exports: {} };
169
169
  var e = c.key;
170
170
  return c.key = V, e;
171
171
  }
172
- c.key = T, c.key.setScope = Q, c.key.getScope = C, c.key.deleteScope = Z, c.key.filter = J, c.key.isPressed = q, c.key.getPressedKeyCodes = X, c.key.noConflict = ee, c.key.unbind = j, a.exports = T;
172
+ c.key = T, c.key.setScope = Q, c.key.getScope = C, c.key.deleteScope = Z, c.key.filter = J, c.key.isPressed = X, c.key.getPressedKeyCodes = q, c.key.noConflict = ee, c.key.unbind = j, a.exports = T;
173
173
  })(re);
174
174
  })(G);
175
175
  var oe = G.exports;
176
- const f = /* @__PURE__ */ ne(oe), d = () => te(), w = (a) => `${D.CTRL}+${a}`, v = (a) => `${D.SHIFT}+${a}`, l = {
176
+ const f = /* @__PURE__ */ ne(oe), d = () => te(), w = (a) => `${D.CTRL}+${a}`, k = (a) => `${D.SHIFT}+${a}`, l = {
177
177
  [n.ARROW_UP]: w("up"),
178
178
  [n.ARROW_RIGHT]: w("right"),
179
179
  [n.ARROW_DOWN]: w("down"),
@@ -183,13 +183,13 @@ const f = /* @__PURE__ */ ne(oe), d = () => te(), w = (a) => `${D.CTRL}+${a}`, v
183
183
  [n.PARSE]: w("v"),
184
184
  [n.DELETE]: "delete",
185
185
  [n.BACK]: w("z"),
186
- [n.FORWORD]: w(v("z")),
186
+ [n.FORWORD]: w(k("z")),
187
187
  [n.GROUP]: w("g"),
188
- [n.UN_GROUP]: w(v("g")),
188
+ [n.UN_GROUP]: w(k("g")),
189
189
  [n.LOCK]: w("l"),
190
- [n.UNLOCK]: w(v("l")),
190
+ [n.UNLOCK]: w(k("l")),
191
191
  [n.HIDE]: w("h"),
192
- [n.SHOW]: w(v("h"))
192
+ [n.SHOW]: w(k("h"))
193
193
  }, h = (a) => `${$.CTRL}+${a}`, y = (a) => `${$.SHIFT}+${a}`, u = {
194
194
  [n.ARROW_UP]: h("arrowup"),
195
195
  [n.ARROW_RIGHT]: h("arrowright"),
@@ -284,13 +284,13 @@ const f = /* @__PURE__ */ ne(oe), d = () => te(), w = (a) => `${D.CTRL}+${a}`, v
284
284
  f(s, g(() => (d().setMove(n.ARROW_LEFT), !1), 50));
285
285
  break;
286
286
  case o.delete:
287
- f(s, P(() => (d().removeComponentList(), !1), 50));
287
+ f(s, W(() => (d().removeComponentList(), !1), 50));
288
288
  break;
289
289
  case o.copy:
290
- f(s, P(() => (d().setCopy(), !1), 50));
290
+ f(s, W(() => (d().setCopy(), !1), 50));
291
291
  break;
292
292
  case o.cut:
293
- f(s, P(() => (d().setCut(), !1), 50));
293
+ f(s, W(() => (d().setCut(), !1), 50));
294
294
  break;
295
295
  case o.parse:
296
296
  f(s, g(() => (d().setParse(), !1), 50));
@@ -1,12 +1,12 @@
1
- import { watch as m } from "vue";
2
- import { useRoute as E } from "vue-router";
3
- import { L as e, ar as a, O as u } from "./designStore-fe92c2ba.js";
4
- import { g as l, u as p, p as v } from "./chartEditStore-a725b558.js";
5
- import { c as C } from "./index-097ae4b0.js";
1
+ import { watch as d } from "vue";
2
+ import { useRoute as m } from "vue-router";
3
+ import { S as e, C as a, t as u } from "./designStore-196559cb.js";
4
+ import { g as C, u as l, E as v } from "./chartEditStore-5bf68359.js";
5
+ import { u as S } from "./index-7eaf2edc.js";
6
6
  import "naive-ui";
7
- const n = () => p(), S = () => C(), y = () => {
7
+ const n = () => l(), p = () => S(), y = () => {
8
8
  const t = n();
9
- l({
9
+ C({
10
10
  message: "是否覆盖源视图内容,此操作不可撤回?",
11
11
  isMaskClosable: !0,
12
12
  transformOrigin: "center",
@@ -19,22 +19,22 @@ const n = () => p(), S = () => C(), y = () => {
19
19
  dispatchEvent(new CustomEvent(e.CHART_TO_PREVIEW, { detail: t.getStorageInfo() }));
20
20
  }, g = () => {
21
21
  const t = (s) => {
22
- window.$message.success("正在进行更新..."), S().updateComponent(s.detail, !0);
22
+ window.$message.success("正在进行更新..."), p().updateComponent(s.detail, !0);
23
23
  }, r = () => {
24
24
  n().setEditCanvas(v.IS_CODE_EDIT, !1);
25
- }, c = () => {
26
- addEventListener("blur", o), addEventListener(e.JSON, t), addEventListener(e.CLOSE, u(r, 1e3));
27
25
  }, i = () => {
26
+ addEventListener("blur", o), addEventListener(e.JSON, t), addEventListener(e.CLOSE, u(r, 1e3));
27
+ }, c = () => {
28
28
  removeEventListener("blur", o), removeEventListener(e.JSON, t);
29
29
  };
30
- return (s, d) => {
31
- d == a.CHART_HOME_NAME && i(), s == a.CHART_HOME_NAME && c();
30
+ return (s, E) => {
31
+ E == a.CHART_HOME_NAME && c(), s == a.CHART_HOME_NAME && i();
32
32
  };
33
- }, L = () => {
34
- const t = E();
35
- m(() => t.name, g(), { immediate: !0 });
33
+ }, A = () => {
34
+ const t = m();
35
+ d(() => t.name, g(), { immediate: !0 });
36
36
  };
37
37
  export {
38
38
  y as s,
39
- L as u
39
+ A as u
40
40
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as a } from "vue";
2
- import { u as o } from "./chartEditStore-a725b558.js";
2
+ import { u as o } from "./chartEditStore-5bf68359.js";
3
3
  const u = () => {
4
4
  const t = o();
5
5
  return { targetData: a(() => {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as i, ref as s, openBlock as p, createBlock as c, unref as m } from "vue";
2
- import "./chartEditStore-a725b558.js";
3
- import { j as _, _ as f } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
4
- import { L as t, F as d, S as l } from "./designStore-fe92c2ba.js";
2
+ import "./chartEditStore-5bf68359.js";
3
+ import { g as _, _ as f } from "./index.vue_vue_type_script_setup_true_lang-58afdf72.js";
4
+ import { S as t, s as d, a as l } from "./designStore-196559cb.js";
5
5
  import "naive-ui";
6
6
  import "vue-router";
7
7
  import "pinia";
8
- import "./router-106a6abc.js";
8
+ import "./router-443d466c.js";
9
9
  const y = /* @__PURE__ */ i({
10
10
  __name: "wrapper",
11
11
  setup(S) {
@@ -1,23 +1,24 @@
1
- import { d as n, f as g, e as f, g as S, h as d } from "./chunks/index-097ae4b0.js";
2
- import { b, e as C, g as x, d as G, S as I, u as h } from "./chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js";
1
+ import { d as n, f as g, e as f, g as S } from "./chunks/index-7eaf2edc.js";
2
+ import { useResizeByClientWidth as b } from "./resize.js";
3
+ import { a as x, q as C, r as G, b as I, S as B, u as R } from "./chunks/index.vue_vue_type_script_setup_true_lang-58afdf72.js";
3
4
  import "vue";
4
5
  import "naive-ui";
5
- import "./chunks/designStore-fe92c2ba.js";
6
+ import "./chunks/designStore-196559cb.js";
6
7
  import "vue-router";
7
- import "./chunks/index-82d00e13.js";
8
- import "./chunks/chartEditStore-a725b558.js";
8
+ import "./chunks/index-1f14b418.js";
9
+ import "./chunks/chartEditStore-5bf68359.js";
9
10
  import "pinia";
10
- import "./chunks/router-106a6abc.js";
11
+ import "./chunks/router-443d466c.js";
11
12
  export {
12
- b as CollapseItem,
13
+ x as CollapseItem,
13
14
  n as Configurator,
14
15
  g as Designer,
15
16
  C as GlobalSetting,
16
- x as GlobalSettingPosition,
17
+ G as GlobalSettingPosition,
17
18
  f as Renderer,
18
- G as SettingItem,
19
- I as SettingItemBox,
19
+ I as SettingItem,
20
+ B as SettingItemBox,
20
21
  S as default,
21
- h as useGlobalConfigStore,
22
- d as useResizeByClientWidth
22
+ R as useGlobalConfigStore,
23
+ b as useResizeByClientWidth
23
24
  };
package/dist/init.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { create as Z, NA as j, NP as $, NH1 as J, NH2 as _, NH3 as ee, NH4 as te, NH5 as oe, NCode as re, NCountdown as ae, NText as le, NTime as ne, NEllipsis as se, NMessageProvider as ie, NDialogProvider as ce, NConfigProvider as ue, NGradientText as de, NInput as Ne, NButton as me, NButtonGroup as he, NForm as pe, NFormItem as ve, NCheckboxGroup as fe, NCheckbox as ge, NIcon as we, NImage as be, NLayout as Ae, NLayoutHeader as Ce, NLayoutContent as ye, NLayoutFooter as Se, NLayoutSider as ke, NMenu as Re, NBreadcrumb as Be, NBreadcrumbItem as Le, NDropdown as Xe, NSpace as xe, NTooltip as Ee, NAvatar as Ie, NTabs as Ye, NTab as Te, NTabPane as De, NCard as Ue, NRow as Oe, NCol as Pe, NDrawer as Ge, NDrawerContent as Fe, NDivider as Qe, NSwitch as He, NBadge as Me, NAlert as Ve, NElement as Ke, NTag as ze, NNotificationProvider as qe, NNumberAnimation as We, NProgress as Ze, NDatePicker as je, NGrid as $e, NGi as Je, NGridItem as _e, NList as et, NListItem as tt, NThing as ot, NDataTable as rt, NPopover as at, NPagination as lt, NSlider as nt, NSelect as st, NRadioGroup as it, NRadio as ct, NSteps as ut, NStep as dt, NInputGroup as Nt, NInputGroupLabel as mt, NResult as ht, NDescriptions as pt, NDescriptionsItem as vt, NTable as ft, NInputNumber as gt, NLoadingBarProvider as wt, NModal as bt, NUpload as At, NUploadFileList as Ct, NUploadTrigger as yt, NUploadDragger as St, NTree as kt, NSpin as Rt, NTimeline as Bt, NTimelineItem as Lt, NTimePicker as Xt, NBackTop as xt, NSkeleton as Et, NStatistic as It, NCarousel as Yt, NScrollbar as Tt, NPopselect as Dt, NCollapse as Ut, NCollapseItem as Ot, NColorPicker as Pt, NWatermark as Gt, NEmpty as Ft, NCollapseTransition as Qt } from "naive-ui";
2
2
  import { defineComponent as E, resolveComponent as Y, withDirectives as g, openBlock as b, createElementBlock as k, createElementVNode as h, createVNode as p, mergeProps as S, vShow as w, ref as R, onMounted as K, computed as f, reactive as Ht, watch as D, normalizeStyle as x, toDisplayString as z, normalizeClass as Mt, Fragment as Vt, renderList as Kt, createBlock as zt } from "vue";
3
- import { y as qt, z as Wt, A as Zt, B as jt } from "./chunks/designStore-fe92c2ba.js";
3
+ import { n as qt, o as Wt, _ as Zt, A as jt } from "./chunks/designStore-196559cb.js";
4
4
  import "vue-router";
5
5
  import "pinia";
6
6
  function $t(e) {
package/dist/resize.js ADDED
@@ -0,0 +1,18 @@
1
+ import { onMounted as m, onBeforeUnmount as s } from "vue";
2
+ function c(n = 1920, i = 14) {
3
+ let e;
4
+ const t = () => {
5
+ e && clearTimeout(e), e = setTimeout(() => {
6
+ const d = n, o = document.documentElement.clientWidth / d * i;
7
+ document.documentElement.style.fontSize = o + "px", document.body.style.fontSize = o + "px";
8
+ }, 300);
9
+ };
10
+ m(() => {
11
+ t(), window.addEventListener("resize", t);
12
+ }), s(() => {
13
+ window.removeEventListener("resize", t), e && clearTimeout(e);
14
+ });
15
+ }
16
+ export {
17
+ c as useResizeByClientWidth
18
+ };