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,13 @@
1
+ import { openBlock as r, createElementBlock as e } from "vue";
2
+ import { A as o } from "./designStore-fe92c2ba.js";
3
+ import "pinia";
4
+ import "naive-ui";
5
+ import "vue-router";
6
+ const t = {};
7
+ function c(n, i) {
8
+ return r(), e("div");
9
+ }
10
+ const a = /* @__PURE__ */ o(t, [["render", c]]);
11
+ export {
12
+ a as default
13
+ };
@@ -0,0 +1,88 @@
1
+ import { defineComponent as H, useCssVars as N, ref as V, computed as u, resolveComponent as l, openBlock as n, createElementBlock as a, createVNode as o, withCtx as s, createElementVNode as _, unref as C, Fragment as f, renderList as g, createBlock as D, normalizeClass as M, createTextVNode as $, toDisplayString as L, normalizeStyle as h } from "vue";
2
+ import { u as O, i as R, c as q, b as F } from "./chartEditStore-a725b558.js";
3
+ import { H as U, A as j } from "./designStore-fe92c2ba.js";
4
+ import "naive-ui";
5
+ import "vue-router";
6
+ import { k as G } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
7
+ import { l as J } from "./index-82d00e13.js";
8
+ import "pinia";
9
+ import "./router-106a6abc.js";
10
+ const K = { class: "go-chart-theme-color" }, P = { class: "go-flex-items-center" }, Q = /* @__PURE__ */ H({
11
+ __name: "index",
12
+ setup(W) {
13
+ N((e) => ({
14
+ ed5e6948: b.value
15
+ }));
16
+ const v = J(() => import("./index-00b6339d.js")), { SquareIcon: X, AddIcon: x } = R.ionicons5, c = O(), S = U(), i = V(!1), E = u(() => G(c.getEditCanvasConfig.chartCustomThemeColorInfo)), b = u(() => S.getAppTheme), k = u(() => c.getEditCanvasConfig.chartThemeColor), w = () => {
17
+ i.value = !0;
18
+ }, y = (e) => `linear-gradient(to right, ${e.color[0]} 0%, ${e.color[5]} 100%)`, T = (e) => q(e).splice(0, 6), z = (e) => {
19
+ c.setEditCanvasConfig(F.CHART_THEME_COLOR, e);
20
+ };
21
+ return (e, r) => {
22
+ const A = l("n-icon"), I = l("n-text"), p = l("n-card"), B = l("n-ellipsis");
23
+ return n(), a("div", K, [
24
+ o(p, {
25
+ class: "card-box",
26
+ size: "small",
27
+ hoverable: "",
28
+ embedded: "",
29
+ onClick: w
30
+ }, {
31
+ default: s(() => [
32
+ o(I, { class: "go-flex-items-center" }, {
33
+ default: s(() => [
34
+ r[1] || (r[1] = _("span", null, "自定义颜色", -1)),
35
+ o(A, { size: "16" }, {
36
+ default: s(() => [
37
+ o(C(x))
38
+ ]),
39
+ _: 1
40
+ })
41
+ ]),
42
+ _: 1,
43
+ __: [1]
44
+ })
45
+ ]),
46
+ _: 1
47
+ }),
48
+ (n(!0), a(f, null, g(E.value, (t, d) => (n(), D(p, {
49
+ key: d,
50
+ class: M(["card-box", { selected: d === k.value }]),
51
+ size: "small",
52
+ hoverable: "",
53
+ embedded: "",
54
+ onClick: (m) => z(d)
55
+ }, {
56
+ default: s(() => [
57
+ _("div", P, [
58
+ o(B, { style: { "text-align": "left", width: "60px" } }, {
59
+ default: s(() => [
60
+ $(L(t.name), 1)
61
+ ]),
62
+ _: 2
63
+ }, 1024),
64
+ (n(!0), a(f, null, g(T(t.color), (m) => (n(), a("span", {
65
+ class: "theme-color-item",
66
+ key: m,
67
+ style: h({ backgroundColor: m })
68
+ }, null, 4))), 128))
69
+ ]),
70
+ _("div", {
71
+ class: "theme-bottom",
72
+ style: h({ backgroundImage: y(t) })
73
+ }, null, 4)
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["class", "onClick"]))), 128)),
77
+ o(C(v), {
78
+ modelShow: i.value,
79
+ "onUpdate:modelShow": r[0] || (r[0] = (t) => i.value = t)
80
+ }, null, 8, ["modelShow"])
81
+ ]);
82
+ };
83
+ }
84
+ });
85
+ const ae = /* @__PURE__ */ j(Q, [["__scopeId", "data-v-a31391aa"]]);
86
+ export {
87
+ ae as default
88
+ };
@@ -0,0 +1,368 @@
1
+ import { defineComponent as X, computed as A, resolveComponent as C, openBlock as c, createElementBlock as m, Fragment as Z, renderList as J, normalizeClass as I, 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 L, toDisplayString as z, createCommentVNode as K } from "vue";
2
+ import "naive-ui";
3
+ import { a8 as E, A as Q, n as x, a9 as O, aa as _e, ab as W, m as me, ac as ge, w as he, d as pe, ad as ye, T as ve, ae as Ce, af as be } from "./designStore-fe92c2ba.js";
4
+ import "vue-router";
5
+ import { i as j, u as $e, j as Se, p as M, l as Ee, f as ke, h as xe, g as Te } from "./chartEditStore-a725b558.js";
6
+ import { _ as Pe, a as Ae } from "./index-de0a1234.js";
7
+ import { i as Ie, _ as we, b as Oe, u as Fe, a as N } from "./index-097ae4b0.js";
8
+ import { C as Re, f as B, a as G, c as De, i as Le } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
9
+ import { c as k } from "./index-82d00e13.js";
10
+ import "pinia";
11
+ import "./index-51458edb.js";
12
+ import "./router-106a6abc.js";
13
+ const ze = { class: "go-apple-control-btn" }, Ke = ["onClick"], Me = /* @__PURE__ */ X({
14
+ __name: "index",
15
+ props: {
16
+ // mini 版本
17
+ mini: {
18
+ request: !1,
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ // 禁用所有按钮
23
+ disabled: {
24
+ request: !1,
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ // 要隐藏的按钮
29
+ hidden: {
30
+ request: !1,
31
+ type: Array,
32
+ default() {
33
+ return [];
34
+ }
35
+ },
36
+ // 使用全屏功能
37
+ narrow: {
38
+ request: !1,
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ emits: ["close", "remove", "resize", "fullResize"],
44
+ setup(e, { emit: t }) {
45
+ const n = t, o = e, { CloseIcon: a, RemoveIcon: s, ResizeIcon: d } = j.ionicons5, f = A(() => T.filter(($) => o.hidden.findIndex((h) => $.key == h) === -1)), b = A(() => o.narrow && E(!0)), T = [
46
+ {
47
+ title: "关闭",
48
+ key: "close",
49
+ icon: a
50
+ },
51
+ {
52
+ title: "缩小",
53
+ key: "remove",
54
+ icon: s
55
+ },
56
+ {
57
+ title: b.value ? "缩小" : "放大",
58
+ key: o.narrow ? "fullResize" : "resize",
59
+ icon: d
60
+ }
61
+ ], P = (g) => {
62
+ g === "fullResize" && E(), g === "remove" && E(!0) && E(), n(g);
63
+ };
64
+ return (g, $) => {
65
+ const h = C("n-icon");
66
+ return c(), m("div", ze, [
67
+ (c(!0), m(Z, null, J(f.value, (r) => (c(), m("div", {
68
+ key: r.key,
69
+ class: I(["btn", [r.key, e.disabled && "disabled", e.mini && "mini"]]),
70
+ onClick: le((i) => P(r.key), ["stop"])
71
+ }, [
72
+ u(h, {
73
+ size: "10",
74
+ class: I(["icon-base", { hover: !e.disabled }])
75
+ }, {
76
+ default: _(() => [
77
+ (c(), w(ce(r.icon)))
78
+ ]),
79
+ _: 2
80
+ }, 1032, ["class"])
81
+ ], 10, Ke))), 128))
82
+ ]);
83
+ };
84
+ }
85
+ });
86
+ const Ne = /* @__PURE__ */ Q(Me, [["__scopeId", "data-v-482dd551"]]);
87
+ function Be(e, t) {
88
+ for (var n = -1, o = e == null ? 0 : e.length, a = Array(o); ++n < o; )
89
+ a[n] = t(e[n], n, e);
90
+ return a;
91
+ }
92
+ var ee = Be, Ge = x, He = O, Ue = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ve = /^\w*$/;
93
+ function qe(e, t) {
94
+ if (Ge(e))
95
+ return !1;
96
+ var n = typeof e;
97
+ 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
+ var Ye = qe, te = _e, Xe = "Expected a function";
100
+ function F(e, t) {
101
+ if (typeof e != "function" || t != null && typeof t != "function")
102
+ throw new TypeError(Xe);
103
+ var n = function() {
104
+ var o = arguments, a = t ? t.apply(this, o) : o[0], s = n.cache;
105
+ if (s.has(a))
106
+ return s.get(a);
107
+ var d = e.apply(this, o);
108
+ return n.cache = s.set(a, d) || s, d;
109
+ };
110
+ return n.cache = new (F.Cache || te)(), n;
111
+ }
112
+ F.Cache = te;
113
+ var Ze = F, Je = Ze, Qe = 500;
114
+ function We(e) {
115
+ var t = Je(e, function(o) {
116
+ return n.size === Qe && n.clear(), o;
117
+ }), n = t.cache;
118
+ return t;
119
+ }
120
+ var je = We, et = je, tt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, nt = /\\(\\)?/g, at = et(function(e) {
121
+ var t = [];
122
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(tt, function(n, o, a, s) {
123
+ t.push(a ? s.replace(nt, "$1") : o || n);
124
+ }), t;
125
+ }), rt = at, H = W, ot = ee, st = x, it = O, lt = 1 / 0, U = H ? H.prototype : void 0, V = U ? U.toString : void 0;
126
+ function ne(e) {
127
+ if (typeof e == "string")
128
+ return e;
129
+ if (st(e))
130
+ return ot(e, ne) + "";
131
+ if (it(e))
132
+ return V ? V.call(e) : "";
133
+ var t = e + "";
134
+ return t == "0" && 1 / e == -lt ? "-0" : t;
135
+ }
136
+ var ct = ne, dt = ct;
137
+ function ut(e) {
138
+ return e == null ? "" : dt(e);
139
+ }
140
+ var ft = ut, _t = x, mt = Ye, gt = rt, ht = ft;
141
+ function pt(e, t) {
142
+ return _t(e) ? e : mt(e, t) ? [e] : gt(ht(e));
143
+ }
144
+ var R = pt;
145
+ function yt(e) {
146
+ var t = e == null ? 0 : e.length;
147
+ return t ? e[t - 1] : void 0;
148
+ }
149
+ var vt = yt, Ct = O, bt = 1 / 0;
150
+ function $t(e) {
151
+ if (typeof e == "string" || Ct(e))
152
+ return e;
153
+ var t = e + "";
154
+ return t == "0" && 1 / e == -bt ? "-0" : t;
155
+ }
156
+ var ae = $t, St = R, Et = ae;
157
+ function kt(e, t) {
158
+ t = St(t, e);
159
+ for (var n = 0, o = t.length; e != null && n < o; )
160
+ e = e[Et(t[n++])];
161
+ return n && n == o ? e : void 0;
162
+ }
163
+ var xt = kt;
164
+ function Tt(e, t, n) {
165
+ var o = -1, a = e.length;
166
+ 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
+ for (var s = Array(a); ++o < a; )
168
+ s[o] = e[o + t];
169
+ return s;
170
+ }
171
+ var Pt = Tt, At = xt, It = Pt;
172
+ function wt(e, t) {
173
+ return t.length < 2 ? e : At(e, It(t, 0, -1));
174
+ }
175
+ var Ot = wt, Ft = R, Rt = vt, Dt = Ot, Lt = ae;
176
+ function zt(e, t) {
177
+ return t = Ft(t, e), e = Dt(e, t), e == null || delete e[Lt(Rt(t))];
178
+ }
179
+ var Kt = zt, Mt = Ie;
180
+ function Nt(e) {
181
+ return Mt(e) ? void 0 : e;
182
+ }
183
+ var Bt = Nt, q = W, Gt = me, Ht = x, Y = q ? q.isConcatSpreadable : void 0;
184
+ function Ut(e) {
185
+ return Ht(e) || Gt(e) || !!(Y && e && e[Y]);
186
+ }
187
+ var Vt = Ut, qt = ge, Yt = Vt;
188
+ function re(e, t, n, o, a) {
189
+ var s = -1, d = e.length;
190
+ for (n || (n = Yt), a || (a = []); ++s < d; ) {
191
+ var f = e[s];
192
+ t > 0 && n(f) ? t > 1 ? re(f, t - 1, n, o, a) : qt(a, f) : o || (a[a.length] = f);
193
+ }
194
+ return a;
195
+ }
196
+ var Xt = re, Zt = Xt;
197
+ function Jt(e) {
198
+ var t = e == null ? 0 : e.length;
199
+ return t ? Zt(e, 1) : [];
200
+ }
201
+ var Qt = Jt, Wt = Qt, jt = we, en = Oe;
202
+ function tn(e) {
203
+ return en(jt(e, void 0, Wt), e + "");
204
+ }
205
+ var nn = tn, an = ee, rn = ve, on = Kt, sn = R, ln = pe, cn = Bt, dn = nn, un = ye, fn = 1, _n = 2, mn = 4, gn = dn(function(e, t) {
206
+ var n = {};
207
+ if (e == null)
208
+ return n;
209
+ var o = !1;
210
+ t = an(t, function(s) {
211
+ return s = sn(s, e), o || (o = s.length > 1), s;
212
+ }), ln(e, un(e), n), o && (n = rn(n, fn | _n | mn, cn));
213
+ for (var a = t.length; a--; )
214
+ on(n, t[a]);
215
+ return n;
216
+ }), hn = gn;
217
+ const pn = /* @__PURE__ */ he(hn), yn = { class: "go-content-charts-item-animation-patch" }, vn = ["onDragstart", "onDragend", "onDblclick", "onClick"], Cn = { class: "list-header" }, bn = {
218
+ class: "list-center go-flex-center go-transition",
219
+ draggable: "true"
220
+ }, $n = { class: "list-bottom" }, Sn = {
221
+ key: 0,
222
+ class: "list-model"
223
+ }, En = ["onClick"], kn = /* @__PURE__ */ X({
224
+ __name: "index",
225
+ props: {
226
+ menuOptions: {
227
+ type: Array,
228
+ default: () => []
229
+ }
230
+ },
231
+ emits: ["deletePhoto"],
232
+ 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 === Re.PRIVATE, b = A(() => s.getChartType), T = (r, i) => {
234
+ i.disabled || (k(i.chartKey, B(i)), k(i.conKey, G(i)), r.dataTransfer.setData(Ce.DRAG_KEY, be(pn(i, ["image"]))), n.setEditCanvas(M.IS_CREATE, !0));
235
+ }, P = () => {
236
+ n.setEditCanvas(M.IS_CREATE, !1);
237
+ }, g = async (r) => {
238
+ if (!r.disabled)
239
+ try {
240
+ Ee(), k(r.chartKey, B(r)), k(r.conKey, G(r));
241
+ let i = await De(r);
242
+ 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
+ } catch {
244
+ xe(), window.$message.warning("图表正在研发中, 敬请期待...");
245
+ }
246
+ }, $ = (r) => {
247
+ r?.configEvents?.addHandle(r);
248
+ }, h = (r, i) => {
249
+ Te({
250
+ message: "是否删除此图片?",
251
+ transformOrigin: "center",
252
+ onPositiveCallback: () => {
253
+ const S = Le();
254
+ a("deletePhoto", r, i), S.deletePhotos(r, i);
255
+ }
256
+ });
257
+ };
258
+ return ue(
259
+ () => b.value,
260
+ (r) => {
261
+ r === N.DOUBLE && fe(() => {
262
+ d.value.classList.add("miniAnimation");
263
+ });
264
+ }
265
+ ), (r, i) => {
266
+ const S = C("n-ellipsis"), D = C("n-text"), oe = C("n-icon"), se = C("n-button");
267
+ return c(), m("div", yn, [
268
+ y("div", {
269
+ ref_key: "contentChartsItemBoxRef",
270
+ ref: d,
271
+ class: I(["go-content-charts-item-box", [b.value === v(N).DOUBLE ? "double" : "single"]])
272
+ }, [
273
+ (c(!0), m(Z, null, J(e.menuOptions, (l, ie) => (c(), m("div", {
274
+ class: "item-box",
275
+ key: l.title,
276
+ draggable: "",
277
+ onDragstart: (p) => !l.disabled && T(p, l),
278
+ onDragend: (p) => !l.disabled && P(),
279
+ onDblclick: (p) => g(l),
280
+ onClick: (p) => $(l)
281
+ }, [
282
+ y("div", Cn, [
283
+ u(v(Ne), {
284
+ class: "list-header-control-btn",
285
+ mini: !0,
286
+ disabled: !0
287
+ }),
288
+ u(D, {
289
+ class: "list-header-text",
290
+ depth: "3"
291
+ }, {
292
+ default: _(() => [
293
+ u(S, null, {
294
+ default: _(() => [
295
+ L(z(l.title), 1)
296
+ ]),
297
+ _: 2
298
+ }, 1024)
299
+ ]),
300
+ _: 2
301
+ }, 1024)
302
+ ]),
303
+ y("div", bn, [
304
+ l.icon ? (c(), w(v(Pe), {
305
+ key: 0,
306
+ class: "list-img",
307
+ icon: l.icon,
308
+ color: "#999",
309
+ width: "48",
310
+ style: { height: "auto" }
311
+ }, null, 8, ["icon"])) : (c(), w(v(Ae), {
312
+ key: 1,
313
+ class: "list-img",
314
+ chartConfig: l
315
+ }, null, 8, ["chartConfig"]))
316
+ ]),
317
+ y("div", $n, [
318
+ u(D, {
319
+ class: "list-bottom-text",
320
+ depth: "3"
321
+ }, {
322
+ default: _(() => [
323
+ u(S, { style: { "max-width": "90%" } }, {
324
+ default: _(() => [
325
+ L(z(l.title), 1)
326
+ ]),
327
+ _: 2
328
+ }, 1024)
329
+ ]),
330
+ _: 2
331
+ }, 1024)
332
+ ]),
333
+ l.disabled ? (c(), m("div", Sn)) : K("", !0),
334
+ f(l) ? (c(), m("div", {
335
+ key: 1,
336
+ class: "list-tools go-transition",
337
+ onClick: (p) => h(l, ie)
338
+ }, [
339
+ u(se, {
340
+ text: "",
341
+ type: "default",
342
+ color: "#ffffff"
343
+ }, {
344
+ icon: _(() => [
345
+ u(oe, null, {
346
+ default: _(() => [
347
+ u(v(o))
348
+ ]),
349
+ _: 1
350
+ })
351
+ ]),
352
+ default: _(() => [
353
+ i[0] || (i[0] = y("span", null, "删除", -1))
354
+ ]),
355
+ _: 1,
356
+ __: [0]
357
+ })
358
+ ], 8, En)) : K("", !0)
359
+ ], 40, vn))), 128))
360
+ ], 2)
361
+ ]);
362
+ };
363
+ }
364
+ });
365
+ const Kn = /* @__PURE__ */ Q(kn, [["__scopeId", "data-v-344215c4"]]);
366
+ export {
367
+ Kn as default
368
+ };