go-view-worker 0.0.1

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 (198) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/dist/chunks/403-382550a8.js +42 -0
  4. package/dist/chunks/404-3d357d75.js +42 -0
  5. package/dist/chunks/500-96d14fb0.js +43 -0
  6. package/dist/chunks/StylesSetting-952ff564.js +338 -0
  7. package/dist/chunks/chartEditStore-a725b558.js +4975 -0
  8. package/dist/chunks/designStore-fe92c2ba.js +6268 -0
  9. package/dist/chunks/index-00b6339d.js +588 -0
  10. package/dist/chunks/index-0472b3a5.js +173 -0
  11. package/dist/chunks/index-097ae4b0.js +436 -0
  12. package/dist/chunks/index-09e62bb4.js +284 -0
  13. package/dist/chunks/index-1cb69ab6.js +136 -0
  14. package/dist/chunks/index-32d13283.js +26 -0
  15. package/dist/chunks/index-3fd591ea.js +81 -0
  16. package/dist/chunks/index-51458edb.js +143 -0
  17. package/dist/chunks/index-54f304ef.js +89 -0
  18. package/dist/chunks/index-62a7855c.js +51 -0
  19. package/dist/chunks/index-82d00e13.js +300 -0
  20. package/dist/chunks/index-9502bd7e.js +155 -0
  21. package/dist/chunks/index-95c5f0a0.js +1664 -0
  22. package/dist/chunks/index-a410a1d3.js +250 -0
  23. package/dist/chunks/index-da8ddb02.js +13 -0
  24. package/dist/chunks/index-de0a1234.js +482 -0
  25. package/dist/chunks/index-e31a7881.js +32 -0
  26. package/dist/chunks/index-f266153a.js +1985 -0
  27. package/dist/chunks/index-f97e5ffc.js +13 -0
  28. package/dist/chunks/index-fdf7dc1e.js +88 -0
  29. package/dist/chunks/index-fec9f9f8.js +368 -0
  30. package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
  31. package/dist/chunks/lodash-c80b695e.js +3680 -0
  32. package/dist/chunks/router-106a6abc.js +57 -0
  33. package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
  34. package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
  35. package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
  36. package/dist/chunks/wrapper-4c15ca94.js +28 -0
  37. package/dist/favicon.ico +0 -0
  38. package/dist/go-view-worker.js +23 -0
  39. package/dist/init.js +688 -0
  40. package/dist/style.css +7 -0
  41. package/dist/types/packages/index.d.ts +12 -0
  42. package/dist/types/packages/init.d.ts +6 -0
  43. package/dist/types/packages/utils/resize.d.ts +1 -0
  44. package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
  45. package/dist/types/src/components/GoIconify/index.d.ts +3 -0
  46. package/dist/types/src/components/GoLoading/index.d.ts +5 -0
  47. package/dist/types/src/components/GoReload/index.d.ts +3 -0
  48. package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
  49. package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
  50. package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
  51. package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
  52. package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
  53. package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
  54. package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
  55. package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
  56. package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
  57. package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
  58. package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
  59. package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
  60. package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
  61. package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
  62. package/dist/types/src/directives/index.d.ts +2 -0
  63. package/dist/types/src/enums/editPageEnum.d.ts +55 -0
  64. package/dist/types/src/enums/eventEnum.d.ts +32 -0
  65. package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
  66. package/dist/types/src/enums/httpEnum.d.ts +96 -0
  67. package/dist/types/src/enums/pageEnum.d.ts +34 -0
  68. package/dist/types/src/enums/pluginEnum.d.ts +6 -0
  69. package/dist/types/src/enums/storageEnum.d.ts +10 -0
  70. package/dist/types/src/enums/styleEnum.d.ts +14 -0
  71. package/dist/types/src/hooks/index.d.ts +6 -0
  72. package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
  73. package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
  74. package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
  75. package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
  76. package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
  77. package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
  78. package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
  79. package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
  80. package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
  81. package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
  82. package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
  83. package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
  84. package/dist/types/src/main.d.ts +1 -0
  85. package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
  86. package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
  87. package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
  88. package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
  89. package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
  90. package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
  91. package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
  92. package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
  93. package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
  94. package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
  95. package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
  96. package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
  97. package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
  98. package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
  99. package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
  100. package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
  101. package/dist/types/src/packages/index.d.ts +214 -0
  102. package/dist/types/src/packages/public/index.d.ts +2 -0
  103. package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
  104. package/dist/types/src/packages/public/vChart.d.ts +14 -0
  105. package/dist/types/src/plugins/customComponents.d.ts +7 -0
  106. package/dist/types/src/plugins/directives.d.ts +7 -0
  107. package/dist/types/src/plugins/icon.d.ts +111 -0
  108. package/dist/types/src/plugins/index.d.ts +5 -0
  109. package/dist/types/src/plugins/initFunction.d.ts +4 -0
  110. package/dist/types/src/plugins/naive.d.ts +3 -0
  111. package/dist/types/src/router/base.d.ts +7 -0
  112. package/dist/types/src/router/constant.d.ts +5 -0
  113. package/dist/types/src/router/index.d.ts +6 -0
  114. package/dist/types/src/router/modules/chart.route.d.ts +4 -0
  115. package/dist/types/src/router/modules/index.d.ts +5 -0
  116. package/dist/types/src/router/modules/preview.route.d.ts +4 -0
  117. package/dist/types/src/router/router-guards.d.ts +3 -0
  118. package/dist/types/src/router/types.d.ts +26 -0
  119. package/dist/types/src/settings/animations/index.d.ts +7 -0
  120. package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
  121. package/dist/types/src/settings/designSetting.d.ts +33 -0
  122. package/dist/types/src/settings/pathConst.d.ts +3 -0
  123. package/dist/types/src/settings/systemSetting.d.ts +11 -0
  124. package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
  125. package/dist/types/src/store/index.d.ts +5 -0
  126. package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
  127. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
  128. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
  129. package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
  130. package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
  131. package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
  132. package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
  133. package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
  134. package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
  135. package/dist/types/src/utils/components.d.ts +13 -0
  136. package/dist/types/src/utils/file.d.ts +19 -0
  137. package/dist/types/src/utils/index.d.ts +8 -0
  138. package/dist/types/src/utils/plugin.d.ts +30 -0
  139. package/dist/types/src/utils/router.d.ts +77 -0
  140. package/dist/types/src/utils/storage.d.ts +35 -0
  141. package/dist/types/src/utils/style.d.ts +154 -0
  142. package/dist/types/src/utils/type.d.ts +8 -0
  143. package/dist/types/src/utils/utils.d.ts +128 -0
  144. package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
  145. package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
  146. package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
  147. package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
  148. package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
  149. package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
  150. package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
  151. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
  152. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
  153. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
  154. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
  155. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
  156. package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
  157. package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
  158. package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
  159. package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
  160. package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
  161. package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
  162. package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
  163. package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
  164. package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
  165. package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
  166. package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
  167. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
  168. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
  169. package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
  170. package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
  171. package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
  172. package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
  173. package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
  174. package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
  175. package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
  176. package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
  177. package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
  178. package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
  179. package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
  180. package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
  181. package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
  182. package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
  183. package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
  184. package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
  185. package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
  186. package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
  187. package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
  188. package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
  189. package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
  190. package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
  191. package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
  192. package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
  193. package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
  194. package/dist/types/src/views/preview/utils/index.d.ts +4 -0
  195. package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
  196. package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
  197. package/dist/types/src/views/preview/utils/style.d.ts +26 -0
  198. package/package.json +99 -0
@@ -0,0 +1,89 @@
1
+ import { defineComponent as T, inject as A, computed as x, resolveComponent as f, openBlock as r, createBlock as c, withCtx as p, createElementBlock as R, Fragment as O, renderList as G, resolveDynamicComponent as L, createElementVNode as B, toDisplayString as D } from "vue";
2
+ import { C as _, D as H, E as k, S as a, F as l, A as w } from "./designStore-fe92c2ba.js";
3
+ import { f as b, a as P } from "./router-106a6abc.js";
4
+ import "naive-ui";
5
+ import { u as N, i as F } from "./chartEditStore-a725b558.js";
6
+ import { useRoute as V } from "vue-router";
7
+ import { s as j } from "./useSyncUpdate.hook-5517a8ad.js";
8
+ import { l as M } from "./lodash-c80b695e.js";
9
+ import "pinia";
10
+ import "./index-097ae4b0.js";
11
+ import "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
12
+ import "./index-82d00e13.js";
13
+ const W = /* @__PURE__ */ T({
14
+ __name: "index",
15
+ setup(q) {
16
+ const { BrowsersOutlineIcon: S, SendIcon: g, AnalyticsIcon: I } = F.ionicons5, i = N(), v = V(), E = () => {
17
+ const t = b(H.CHART_PREVIEW_NAME, "href");
18
+ if (!t)
19
+ return;
20
+ const { id: s } = v.params, o = typeof s == "string" ? s : s[0], n = i.getStorageInfo(), e = k(a.GO_CHART_STORAGE_LIST) || [];
21
+ if (e?.length) {
22
+ const u = e.findIndex((h) => h.id === o);
23
+ u !== -1 ? (e.splice(u, 1, { id: o, ...n }), l(a.GO_CHART_STORAGE_LIST, e)) : (e.push({
24
+ id: o,
25
+ ...n
26
+ }), l(a.GO_CHART_STORAGE_LIST, e));
27
+ } else
28
+ l(a.GO_CHART_STORAGE_LIST, [{ id: o, ...n }]);
29
+ P(t, [o], void 0, !0);
30
+ }, m = A("saveData"), y = () => {
31
+ const t = i.getStorageInfo();
32
+ m && m(t);
33
+ }, d = [
34
+ {
35
+ select: !0,
36
+ title: "同步内容",
37
+ type: "primary",
38
+ icon: _(I),
39
+ event: j
40
+ },
41
+ {
42
+ select: !0,
43
+ title: "预览",
44
+ icon: _(S),
45
+ event: E
46
+ },
47
+ {
48
+ select: !0,
49
+ title: "保存",
50
+ icon: _(g),
51
+ event: y
52
+ }
53
+ ], C = x(() => {
54
+ if (i.getEditCanvas.isCodeEdit)
55
+ return d;
56
+ const t = M.cloneDeep(d);
57
+ return t.shift(), t;
58
+ });
59
+ return (t, s) => {
60
+ const o = f("n-button"), n = f("n-space");
61
+ return r(), c(n, {
62
+ class: "go-mt-0",
63
+ wrap: !1
64
+ }, {
65
+ default: p(() => [
66
+ (r(!0), R(O, null, G(C.value, (e) => (r(), c(o, {
67
+ key: e.title,
68
+ type: e.type,
69
+ ghost: "",
70
+ onClick: e.event
71
+ }, {
72
+ icon: p(() => [
73
+ (r(), c(L(e.icon)))
74
+ ]),
75
+ default: p(() => [
76
+ B("span", null, D(e.title), 1)
77
+ ]),
78
+ _: 2
79
+ }, 1032, ["type", "onClick"]))), 128))
80
+ ]),
81
+ _: 1
82
+ });
83
+ };
84
+ }
85
+ });
86
+ const ne = /* @__PURE__ */ w(W, [["__scopeId", "data-v-94b6635a"]]);
87
+ export {
88
+ ne as default
89
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as u, ref as n, computed as d, watch as f, resolveComponent as s, openBlock as _, createBlock as g, withCtx as h, createElementVNode as a, createVNode as v } from "vue";
2
+ import { u as x } from "./index-097ae4b0.js";
3
+ import { H as C } from "./designStore-fe92c2ba.js";
4
+ import "naive-ui";
5
+ import "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
6
+ import "vue-router";
7
+ import "./chartEditStore-a725b558.js";
8
+ import "pinia";
9
+ import "./router-106a6abc.js";
10
+ import "./index-82d00e13.js";
11
+ const H = /* @__PURE__ */ u({
12
+ __name: "index",
13
+ setup(y) {
14
+ const p = x(), l = C(), o = n(!1), t = n(0), c = d(() => l.getAppTheme);
15
+ return f(
16
+ () => p.getPercentage,
17
+ (e) => {
18
+ if (e === 0) {
19
+ setTimeout(() => {
20
+ t.value = e, o.value = !1;
21
+ }, 500);
22
+ return;
23
+ }
24
+ t.value = e, o.value = e > 0;
25
+ }
26
+ ), (e, r) => {
27
+ const m = s("n-progress"), i = s("n-modal");
28
+ return _(), g(i, {
29
+ show: o.value,
30
+ "close-on-esc": !1,
31
+ "transform-origin": "center"
32
+ }, {
33
+ default: h(() => [
34
+ a("div", null, [
35
+ r[0] || (r[0] = a("span", null, " 拼命加载中... ", -1)),
36
+ v(m, {
37
+ type: "line",
38
+ color: c.value,
39
+ percentage: t.value,
40
+ style: { width: "300px" }
41
+ }, null, 8, ["color", "percentage"])
42
+ ])
43
+ ]),
44
+ _: 1
45
+ }, 8, ["show"]);
46
+ };
47
+ }
48
+ });
49
+ export {
50
+ H as default
51
+ };
@@ -0,0 +1,300 @@
1
+ import { defineAsyncComponent as z, defineComponent as g, computed as K, resolveComponent as v, openBlock as k, createBlock as w, withCtx as u, createElementVNode as h, normalizeClass as V, createVNode as r, renderSlot as _, unref as a, ref as W, toRaw as O, nextTick as Y, createElementBlock as F, Fragment as X } from "vue";
2
+ import "naive-ui";
3
+ import { B as q, P as J, A as I, M as o, C as c } from "./designStore-fe92c2ba.js";
4
+ import { useRoute as Q } from "vue-router";
5
+ import { u as M, i as P, c as Z, h as ee, a as te } from "./chartEditStore-a725b558.js";
6
+ const Le = (t, e) => {
7
+ console.log("key", t), console.log("node", typeof e), !window.$vue.component(t) && e && window.$vue.component(t, e);
8
+ }, p = (t) => z({
9
+ loader: t,
10
+ loadingComponent: q,
11
+ delay: 20
12
+ }), ne = { class: "header-item left" }, oe = { class: "header-item center" }, le = { class: "header-item right" }, se = /* @__PURE__ */ g({
13
+ __name: "index",
14
+ setup(t) {
15
+ const e = Q(), l = K(() => e.fullPath === J.BASE_HOME_ITEMS);
16
+ return (s, i) => {
17
+ const f = v("n-space"), C = v("n-layout-header");
18
+ return k(), w(C, {
19
+ bordered: "",
20
+ class: "go-header"
21
+ }, {
22
+ default: u(() => [
23
+ h("header", {
24
+ class: V(["go-header-box", { "is-project": l.value }])
25
+ }, [
26
+ h("div", ne, [
27
+ r(f, null, {
28
+ default: u(() => [
29
+ _(s.$slots, "left", {}, void 0, !0)
30
+ ]),
31
+ _: 3
32
+ })
33
+ ]),
34
+ h("div", oe, [
35
+ _(s.$slots, "center", {}, void 0, !0)
36
+ ]),
37
+ h("div", le, [
38
+ r(f, null, {
39
+ default: u(() => [
40
+ _(s.$slots, "ri-left", {}, void 0, !0),
41
+ _(s.$slots, "ri-right", {}, void 0, !0)
42
+ ]),
43
+ _: 3
44
+ })
45
+ ])
46
+ ], 2)
47
+ ]),
48
+ _: 3
49
+ });
50
+ };
51
+ }
52
+ });
53
+ const ae = /* @__PURE__ */ I(se, [["__scopeId", "data-v-2b2ae272"]]), ce = /* @__PURE__ */ g({
54
+ __name: "index",
55
+ setup(t) {
56
+ return (e, l) => (k(), w(a(ae), null, {
57
+ left: u(() => [
58
+ _(e.$slots, "left")
59
+ ]),
60
+ center: u(() => [
61
+ _(e.$slots, "center")
62
+ ]),
63
+ "ri-left": u(() => [
64
+ _(e.$slots, "ri-left")
65
+ ]),
66
+ "ri-right": u(() => [
67
+ _(e.$slots, "ri-right")
68
+ ]),
69
+ _: 3
70
+ }));
71
+ }
72
+ }), {
73
+ CopyIcon: ie,
74
+ CutIcon: re,
75
+ ClipboardOutlineIcon: de,
76
+ TrashIcon: ue,
77
+ ChevronDownIcon: fe,
78
+ ChevronUpIcon: _e,
79
+ LockOpenOutlineIcon: pe,
80
+ LockClosedOutlineIcon: he,
81
+ EyeOutlineIcon: me,
82
+ EyeOffOutlineIcon: ye
83
+ } = P.ionicons5, { UpToTopIcon: ve, DownToBottomIcon: Ce, PaintBrushIcon: ge, Carbon3DSoftwareIcon: ke, Carbon3DCursorIcon: Se } = P.carbon, n = () => M(), H = (t = 3) => ({
84
+ type: "divider",
85
+ key: `d${t}`
86
+ }), m = [
87
+ {
88
+ label: "锁定",
89
+ key: o.LOCK,
90
+ icon: c(he),
91
+ fnHandle: n().setLock
92
+ },
93
+ {
94
+ label: "解锁",
95
+ key: o.UNLOCK,
96
+ icon: c(pe),
97
+ fnHandle: n().setUnLock
98
+ },
99
+ {
100
+ label: "隐藏",
101
+ key: o.HIDE,
102
+ icon: c(ye),
103
+ fnHandle: n().setHide
104
+ },
105
+ {
106
+ label: "显示",
107
+ key: o.SHOW,
108
+ icon: c(me),
109
+ fnHandle: n().setShow
110
+ },
111
+ {
112
+ type: "divider",
113
+ key: "d0"
114
+ },
115
+ {
116
+ label: "复制",
117
+ key: o.COPY,
118
+ icon: c(ie),
119
+ fnHandle: n().setCopy
120
+ },
121
+ {
122
+ label: "剪切",
123
+ key: o.CUT,
124
+ icon: c(re),
125
+ fnHandle: n().setCut
126
+ },
127
+ {
128
+ label: "粘贴",
129
+ key: o.PARSE,
130
+ icon: c(de),
131
+ fnHandle: n().setParse
132
+ },
133
+ {
134
+ type: "divider",
135
+ key: "d1"
136
+ },
137
+ {
138
+ label: "置顶",
139
+ key: o.TOP,
140
+ icon: c(ve),
141
+ fnHandle: n().setTop
142
+ },
143
+ {
144
+ label: "置底",
145
+ key: o.BOTTOM,
146
+ icon: c(Ce),
147
+ fnHandle: n().setBottom
148
+ },
149
+ {
150
+ label: "上移",
151
+ key: o.UP,
152
+ icon: c(_e),
153
+ fnHandle: n().setUp
154
+ },
155
+ {
156
+ label: "下移",
157
+ key: o.DOWN,
158
+ icon: c(fe),
159
+ fnHandle: n().setDown
160
+ },
161
+ {
162
+ type: "divider",
163
+ key: "d2"
164
+ },
165
+ {
166
+ label: "清空剪贴板",
167
+ key: o.CLEAR,
168
+ icon: c(ge),
169
+ fnHandle: n().setRecordChart
170
+ },
171
+ {
172
+ label: "删除",
173
+ key: o.DELETE,
174
+ icon: c(ue),
175
+ fnHandle: n().removeComponentList
176
+ }
177
+ ], y = [
178
+ {
179
+ label: "创建分组",
180
+ key: o.GROUP,
181
+ icon: c(ke),
182
+ fnHandle: n().setGroup
183
+ },
184
+ {
185
+ label: "解除分组",
186
+ key: o.UN_GROUP,
187
+ icon: c(Se),
188
+ fnHandle: n().setUnGroup
189
+ }
190
+ ], be = [o.PARSE, o.CLEAR], E = (t, e) => {
191
+ if (!e)
192
+ return t;
193
+ const l = [];
194
+ return e.forEach((s) => {
195
+ l.push(...t.filter((i) => i.key === s));
196
+ }), l;
197
+ }, Oe = (t, e) => e ? t.filter((l) => e.findIndex((s) => s !== l.key) !== -1) : t, d = W([]), He = (t, e, l, s, i) => {
198
+ t.stopPropagation(), t.preventDefault();
199
+ let f = t.target;
200
+ for (; f instanceof SVGElement; )
201
+ f = f.parentNode;
202
+ n().setTargetSelectChart(e && e.id), n().setRightMenuShow(!1), n().getTargetChart.selectId.length > 1 ? d.value = y : d.value = m, e || (d.value = E(O(d.value), be)), s && (d.value = Oe([...y, H(), ...m], s)), i && (d.value = E([...y, H(), ...m], i)), l && (d.value = l(
203
+ Z(O(d.value)),
204
+ [...y, ...m],
205
+ e
206
+ )), Y().then(() => {
207
+ n().setMousePosition(t.clientX, t.clientY), n().setRightMenuShow(!0);
208
+ });
209
+ }, Ee = () => (d.value = m, {
210
+ menuOptions: d,
211
+ defaultOptions: m,
212
+ defaultMultiSelectOptions: y,
213
+ handleContextMenu: He,
214
+ onClickOutSide: () => {
215
+ n().setRightMenuShow(!1);
216
+ },
217
+ handleMenuSelect: (l) => {
218
+ n().setRightMenuShow(!1);
219
+ const s = d.value.filter((i) => i.key === l);
220
+ d.value.forEach((i) => {
221
+ if (i.key === l) {
222
+ if (i.fnHandle) {
223
+ i.fnHandle();
224
+ return;
225
+ }
226
+ s || ee();
227
+ }
228
+ });
229
+ },
230
+ mousePosition: n().getMousePosition
231
+ }), we = { class: "go-chart" }, Ie = { style: { overflow: "hidden", display: "flex" } }, Me = /* @__PURE__ */ g({
232
+ __name: "index",
233
+ emits: ["back"],
234
+ setup(t, { emit: e }) {
235
+ const l = e, s = te(), i = M();
236
+ s.canvasInit(i.getEditCanvas);
237
+ const f = p(() => import("./index-9502bd7e.js")), C = p(() => import("./index-54f304ef.js")), x = p(() => import("./index-3fd591ea.js")), T = p(() => import("./index-f266153a.js")), R = p(() => import("./index-de0a1234.js").then((b) => b.i)), $ = p(() => import("./index-0472b3a5.js")), B = p(() => import("./index-62a7855c.js")), { menuOptions: D, onClickOutSide: L, mousePosition: S, handleMenuSelect: U } = Ee();
238
+ function A() {
239
+ l("back");
240
+ }
241
+ return (b, xe) => {
242
+ const N = v("n-layout-content"), G = v("n-layout"), j = v("n-dropdown");
243
+ return k(), F(X, null, [
244
+ h("div", we, [
245
+ r(G, null, {
246
+ default: u(() => [
247
+ r(a(ce), null, {
248
+ left: u(() => [
249
+ r(a(f), { onBack: A })
250
+ ]),
251
+ center: u(() => [
252
+ r(a(x))
253
+ ]),
254
+ "ri-left": u(() => [
255
+ r(a(C))
256
+ ]),
257
+ _: 1
258
+ }),
259
+ r(N, { "content-style": "overflow:hidden; display: flex" }, {
260
+ default: u(() => [
261
+ h("div", Ie, [
262
+ r(a(R)),
263
+ r(a(T))
264
+ ]),
265
+ r(a($))
266
+ ]),
267
+ _: 1
268
+ })
269
+ ]),
270
+ _: 1
271
+ })
272
+ ]),
273
+ r(j, {
274
+ placement: "bottom-start",
275
+ trigger: "manual",
276
+ size: "small",
277
+ x: a(S).x,
278
+ y: a(S).y,
279
+ options: a(D),
280
+ show: a(i).getRightMenuShow,
281
+ "on-clickoutside": a(L),
282
+ onSelect: a(U)
283
+ }, null, 8, ["x", "y", "options", "show", "on-clickoutside", "onSelect"]),
284
+ r(a(B))
285
+ ], 64);
286
+ };
287
+ }
288
+ });
289
+ const Pe = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-0e7ce451"]]), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
290
+ __proto__: null,
291
+ default: Pe
292
+ }, Symbol.toStringTag, { value: "Module" }));
293
+ export {
294
+ Pe as D,
295
+ Le as c,
296
+ H as d,
297
+ Ue as i,
298
+ p as l,
299
+ Ee as u
300
+ };
@@ -0,0 +1,155 @@
1
+ import { defineComponent as Y, toRefs as G, reactive as y, computed as C, inject as J, resolveComponent as s, openBlock as n, createBlock as c, withCtx as t, createVNode as r, unref as Q, createElementBlock as g, Fragment as f, renderList as S, resolveDynamicComponent as b, createElementVNode as h, toDisplayString as v } from "vue";
2
+ import { C as a, A as U } from "./designStore-fe92c2ba.js";
3
+ import "vue-router";
4
+ import { u as X, a as Z, H as i, i as ee, g as te } from "./chartEditStore-a725b558.js";
5
+ import "naive-ui";
6
+ import { u as oe } from "./useKeyboard.hook-da88451a.js";
7
+ import { u as A, C as l } from "./index-097ae4b0.js";
8
+ import "pinia";
9
+ import "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
10
+ import "./router-106a6abc.js";
11
+ import "./index-82d00e13.js";
12
+ const ne = /* @__PURE__ */ Y({
13
+ __name: "index",
14
+ emits: ["back"],
15
+ setup(re, { emit: se }) {
16
+ const { LayersIcon: H, BarChartIcon: I, PrismIcon: w, HomeIcon: B, ArrowBackIcon: L, ArrowForwardIcon: E } = ee.ionicons5, { setItem: x } = A(), { getLayers: D, getCharts: R, getDetails: F } = G(A()), p = X(), m = Z(), K = y([
17
+ {
18
+ key: l.CHARTS,
19
+ select: R,
20
+ title: "图表组件",
21
+ icon: a(I)
22
+ },
23
+ {
24
+ key: l.LAYERS,
25
+ select: D,
26
+ title: "图层控制",
27
+ icon: a(H)
28
+ },
29
+ {
30
+ key: l.DETAILS,
31
+ select: F,
32
+ title: "详情设置",
33
+ icon: a(w)
34
+ }
35
+ ]), T = C(() => m.getBackStack.length > 1), z = C(() => m.getForwardStack.length > 0), $ = y([
36
+ {
37
+ key: i.BACK_STACK,
38
+ // 一定会有初始化画布
39
+ select: T,
40
+ title: "后退",
41
+ icon: a(L)
42
+ },
43
+ {
44
+ key: i.FORWARD_STACK,
45
+ select: z,
46
+ title: "前进",
47
+ icon: a(E)
48
+ }
49
+ ]), N = (o) => o.key === l.DETAILS ? o.select ? "" : "primary" : o.select ? "primary" : "", O = (o) => {
50
+ x(o.key, !o.select);
51
+ }, P = (o) => {
52
+ switch (o.key) {
53
+ case i.BACK_STACK:
54
+ p.setBack();
55
+ break;
56
+ case i.FORWARD_STACK:
57
+ p.setForward();
58
+ break;
59
+ }
60
+ }, V = J("backHome"), W = () => {
61
+ te({
62
+ message: "返回将不会保存任何操作",
63
+ isMaskClosable: !0,
64
+ onPositiveCallback: () => {
65
+ V(), oe();
66
+ }
67
+ });
68
+ };
69
+ return (o, d) => {
70
+ const j = s("n-icon"), _ = s("n-button"), u = s("n-tooltip"), q = s("n-divider"), k = s("n-space");
71
+ return n(), c(k, {
72
+ class: "header-left-btn",
73
+ wrap: !1,
74
+ size: 25
75
+ }, {
76
+ default: t(() => [
77
+ r(_, {
78
+ size: "small",
79
+ quaternary: "",
80
+ onClick: d[0] || (d[0] = (e) => W())
81
+ }, {
82
+ icon: t(() => [
83
+ r(j, { depth: 3 }, {
84
+ default: t(() => [
85
+ r(Q(B))
86
+ ]),
87
+ _: 1
88
+ })
89
+ ]),
90
+ _: 1
91
+ }),
92
+ r(k, { wrap: !1 }, {
93
+ default: t(() => [
94
+ (n(!0), g(f, null, S(K, (e) => (n(), c(u, {
95
+ key: e.key,
96
+ placement: "bottom",
97
+ trigger: "hover"
98
+ }, {
99
+ trigger: t(() => [
100
+ r(_, {
101
+ size: "small",
102
+ ghost: "",
103
+ type: N(e),
104
+ focusable: !1,
105
+ onClick: (M) => O(e)
106
+ }, {
107
+ default: t(() => [
108
+ (n(), c(b(e.icon)))
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["type", "onClick"])
112
+ ]),
113
+ default: t(() => [
114
+ h("span", null, v(e.title), 1)
115
+ ]),
116
+ _: 2
117
+ }, 1024))), 128)),
118
+ r(q, { vertical: "" }),
119
+ (n(!0), g(f, null, S($, (e) => (n(), c(u, {
120
+ key: e.key,
121
+ placement: "bottom",
122
+ trigger: "hover"
123
+ }, {
124
+ trigger: t(() => [
125
+ r(_, {
126
+ size: "small",
127
+ ghost: "",
128
+ type: "primary",
129
+ disabled: !e.select,
130
+ onClick: (M) => P(e)
131
+ }, {
132
+ default: t(() => [
133
+ (n(), c(b(e.icon)))
134
+ ]),
135
+ _: 2
136
+ }, 1032, ["disabled", "onClick"])
137
+ ]),
138
+ default: t(() => [
139
+ h("span", null, v(e.title), 1)
140
+ ]),
141
+ _: 2
142
+ }, 1024))), 128))
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ });
149
+ };
150
+ }
151
+ });
152
+ const Ce = /* @__PURE__ */ U(ne, [["__scopeId", "data-v-347ec04b"]]);
153
+ export {
154
+ Ce as default
155
+ };