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,284 @@
1
+ import { defineComponent as y, resolveComponent as s, openBlock as m, createBlock as A, unref as e, withCtx as i, createVNode as n, createElementBlock as x, Fragment as I, renderList as V, resolveDynamicComponent as w, createTextVNode as _, createCommentVNode as H } from "vue";
2
+ import { S as v } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
3
+ import "naive-ui";
4
+ import { C as f, A as j } from "./designStore-fe92c2ba.js";
5
+ import "vue-router";
6
+ import { i as q } from "./chartEditStore-a725b558.js";
7
+ import { S as D } from "./StylesSetting-952ff564.js";
8
+ import { u as U } from "./useTargetData.hook-28a7e43b.js";
9
+ import "pinia";
10
+ import "./router-106a6abc.js";
11
+ const $ = /* @__PURE__ */ y({
12
+ __name: "NameSetting",
13
+ props: {
14
+ chartConfig: {
15
+ type: Object,
16
+ required: !0
17
+ }
18
+ },
19
+ setup(t) {
20
+ const o = t;
21
+ let a = "";
22
+ const u = () => {
23
+ a = o.chartConfig.title;
24
+ }, p = () => {
25
+ o.chartConfig.title.length || (window.$message.warning("请输入至少一个字符!"), o.chartConfig.title = a);
26
+ };
27
+ return (h, g) => {
28
+ const l = s("n-input");
29
+ return m(), A(e(v), {
30
+ name: "名称",
31
+ alone: !0
32
+ }, {
33
+ default: i(() => [
34
+ n(l, {
35
+ type: "text",
36
+ maxlength: "12",
37
+ minlength: "1",
38
+ placeholder: "请输入图表名称",
39
+ size: "small",
40
+ clearable: "",
41
+ "show-count": "",
42
+ value: t.chartConfig.title,
43
+ "onUpdate:value": g[0] || (g[0] = (r) => t.chartConfig.title = r),
44
+ onFocus: u,
45
+ onBlur: p
46
+ }, null, 8, ["value"])
47
+ ]),
48
+ _: 1
49
+ });
50
+ };
51
+ }
52
+ }), L = /* @__PURE__ */ y({
53
+ __name: "PositionSetting",
54
+ props: {
55
+ canvasConfig: {
56
+ type: Object,
57
+ required: !0
58
+ },
59
+ chartAttr: {
60
+ type: Object,
61
+ required: !0
62
+ }
63
+ },
64
+ setup(t) {
65
+ const {
66
+ AlignHorizontalLeftIcon: o,
67
+ AlignVerticalCenterIcon: a,
68
+ AlignVerticalTopIcon: u,
69
+ AlignHorizontalCenterIcon: p,
70
+ AlignHorizontalRightIcon: h,
71
+ AlignVerticalBottomIcon: g
72
+ } = q.carbon, l = [
73
+ {
74
+ key: "AlignHorizontalLeftIcon",
75
+ lable: "局左",
76
+ icon: f(o)
77
+ },
78
+ {
79
+ key: "AlignVerticalCenterIcon",
80
+ lable: "X轴居中",
81
+ icon: f(a)
82
+ },
83
+ {
84
+ key: "AlignHorizontalRightIcon",
85
+ lable: "局右",
86
+ icon: f(h)
87
+ },
88
+ {
89
+ key: "AlignVerticalTopIcon",
90
+ lable: "顶部",
91
+ icon: f(u)
92
+ },
93
+ {
94
+ key: "AlignHorizontalCenterIcon",
95
+ lable: "Y轴居中",
96
+ icon: f(p)
97
+ },
98
+ {
99
+ key: "AlignVerticalBottomIcon",
100
+ lable: "底部",
101
+ icon: f(g)
102
+ }
103
+ ], r = t, z = (C) => {
104
+ switch (C) {
105
+ case l[0].key:
106
+ r.chartAttr.x = 0;
107
+ break;
108
+ case l[1].key:
109
+ r.chartAttr.y = (r.canvasConfig.height - r.chartAttr.h) / 2;
110
+ break;
111
+ case l[2].key:
112
+ r.chartAttr.x = r.canvasConfig.width - r.chartAttr.w;
113
+ break;
114
+ case l[3].key:
115
+ r.chartAttr.y = 0;
116
+ break;
117
+ case l[4].key:
118
+ r.chartAttr.x = (r.canvasConfig.width - r.chartAttr.w) / 2;
119
+ break;
120
+ case l[5].key:
121
+ r.chartAttr.y = r.canvasConfig.height - r.chartAttr.h;
122
+ break;
123
+ }
124
+ };
125
+ return (C, c) => {
126
+ const S = s("n-divider"), B = s("n-button"), G = s("n-space"), b = s("n-text"), k = s("n-input-number");
127
+ return m(), x(I, null, [
128
+ n(S, { style: { margin: "10px 0" } }),
129
+ n(G, {
130
+ size: 8,
131
+ justify: "space-between",
132
+ style: { "margin-top": "10px" }
133
+ }, {
134
+ default: i(() => [
135
+ (m(), x(I, null, V(l, (d) => n(B, {
136
+ secondary: "",
137
+ key: d.key,
138
+ onClick: (E) => z(d.key)
139
+ }, {
140
+ icon: i(() => [
141
+ (m(), A(w(d.icon)))
142
+ ]),
143
+ _: 2
144
+ }, 1032, ["onClick"])), 64))
145
+ ]),
146
+ _: 1
147
+ }),
148
+ n(e(v), { name: "位置" }, {
149
+ default: i(() => [
150
+ n(k, {
151
+ value: t.chartAttr.y,
152
+ "onUpdate:value": c[0] || (c[0] = (d) => t.chartAttr.y = d),
153
+ min: 0,
154
+ size: "small",
155
+ placeholder: "px"
156
+ }, {
157
+ prefix: i(() => [
158
+ n(b, { depth: "3" }, {
159
+ default: i(() => c[2] || (c[2] = [
160
+ _("上")
161
+ ])),
162
+ _: 1,
163
+ __: [2]
164
+ })
165
+ ]),
166
+ _: 1
167
+ }, 8, ["value"]),
168
+ n(k, {
169
+ value: t.chartAttr.x,
170
+ "onUpdate:value": c[1] || (c[1] = (d) => t.chartAttr.x = d),
171
+ min: 0,
172
+ size: "small",
173
+ placeholder: "px"
174
+ }, {
175
+ prefix: i(() => [
176
+ n(b, { depth: "3" }, {
177
+ default: i(() => c[3] || (c[3] = [
178
+ _("左")
179
+ ])),
180
+ _: 1,
181
+ __: [3]
182
+ })
183
+ ]),
184
+ _: 1
185
+ }, 8, ["value"])
186
+ ]),
187
+ _: 1
188
+ })
189
+ ], 64);
190
+ };
191
+ }
192
+ }), N = /* @__PURE__ */ y({
193
+ __name: "SizeSetting",
194
+ props: {
195
+ chartAttr: {
196
+ type: Object,
197
+ required: !0
198
+ },
199
+ isGroup: {
200
+ type: Boolean,
201
+ required: !1
202
+ }
203
+ },
204
+ setup(t) {
205
+ return (o, a) => {
206
+ const u = s("n-text"), p = s("n-input-number");
207
+ return m(), A(e(v), { name: "尺寸" }, {
208
+ default: i(() => [
209
+ n(p, {
210
+ value: t.chartAttr.w,
211
+ "onUpdate:value": a[0] || (a[0] = (h) => t.chartAttr.w = h),
212
+ min: 50,
213
+ disabled: t.isGroup,
214
+ size: "small",
215
+ placeholder: "px"
216
+ }, {
217
+ prefix: i(() => [
218
+ n(u, { depth: "3" }, {
219
+ default: i(() => a[2] || (a[2] = [
220
+ _("宽度")
221
+ ])),
222
+ _: 1,
223
+ __: [2]
224
+ })
225
+ ]),
226
+ _: 1
227
+ }, 8, ["value", "disabled"]),
228
+ n(p, {
229
+ value: t.chartAttr.h,
230
+ "onUpdate:value": a[1] || (a[1] = (h) => t.chartAttr.h = h),
231
+ min: 50,
232
+ disabled: t.isGroup,
233
+ size: "small",
234
+ placeholder: "px"
235
+ }, {
236
+ prefix: i(() => [
237
+ n(u, { depth: "3" }, {
238
+ default: i(() => a[3] || (a[3] = [
239
+ _("高度")
240
+ ])),
241
+ _: 1,
242
+ __: [3]
243
+ })
244
+ ]),
245
+ _: 1
246
+ }, 8, ["value", "disabled"])
247
+ ]),
248
+ _: 1
249
+ });
250
+ };
251
+ }
252
+ }), O = {
253
+ key: 0,
254
+ class: "go-chart-configurations-setting"
255
+ }, T = /* @__PURE__ */ y({
256
+ __name: "index",
257
+ setup(t) {
258
+ const { targetData: o, chartEditStore: a } = U();
259
+ return (u, p) => e(o) ? (m(), x("div", O, [
260
+ n(e($), {
261
+ chartConfig: e(o).chartConfig
262
+ }, null, 8, ["chartConfig"]),
263
+ n(e(N), {
264
+ isGroup: e(o).isGroup,
265
+ chartAttr: e(o).attr
266
+ }, null, 8, ["isGroup", "chartAttr"]),
267
+ n(e(L), {
268
+ chartAttr: e(o).attr,
269
+ canvasConfig: e(a).getEditCanvasConfig
270
+ }, null, 8, ["chartAttr", "canvasConfig"]),
271
+ n(e(D), {
272
+ isGroup: e(o).isGroup,
273
+ chartStyles: e(o).styles
274
+ }, null, 8, ["isGroup", "chartStyles"]),
275
+ (m(), A(w(e(o).chartConfig.conKey), {
276
+ optionData: e(o).option
277
+ }, null, 8, ["optionData"]))
278
+ ])) : H("", !0);
279
+ }
280
+ });
281
+ const Z = /* @__PURE__ */ j(T, [["__scopeId", "data-v-1b3c5ff2"]]);
282
+ export {
283
+ Z as default
284
+ };
@@ -0,0 +1,136 @@
1
+ import { defineComponent as L, useCssVars as R, ref as B, computed as S, resolveComponent as i, unref as o, openBlock as t, createElementBlock as s, createVNode as b, withCtx as u, createTextVNode as c, Fragment as d, renderList as m, createBlock as p, normalizeClass as U, toDisplayString as z, createCommentVNode as A } from "vue";
2
+ import { b as V } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
3
+ import "naive-ui";
4
+ import { H as $, A as N } from "./designStore-fe92c2ba.js";
5
+ import "vue-router";
6
+ import "./chartEditStore-a725b558.js";
7
+ import { u as T } from "./useTargetData.hook-28a7e43b.js";
8
+ import "pinia";
9
+ import "./router-106a6abc.js";
10
+ const Y = [
11
+ {
12
+ label: "强调动画",
13
+ children: [
14
+ { label: "弹跳", value: "bounce" },
15
+ { label: "闪烁", value: "flash" },
16
+ { label: "放大缩小", value: "pulse" },
17
+ { label: "放大缩小弹簧", value: "rubberBand" },
18
+ { label: "左右晃动", value: "headShake" },
19
+ { label: "左右扇形摇摆", value: "swing" },
20
+ { label: "放大晃动缩小", value: "tada" },
21
+ { label: "扇形摇摆", value: "wobble" },
22
+ { label: "左右上下晃动", value: "jello" }
23
+ ]
24
+ },
25
+ {
26
+ label: "移入动画",
27
+ children: [
28
+ { label: "渐显", value: "fadeIn" },
29
+ { label: "向右进入", value: "fadeInLeft" },
30
+ { label: "向左进入", value: "fadeInRight" },
31
+ { label: "向上进入", value: "fadeInUp" },
32
+ { label: "向下进入", value: "fadeInDown" },
33
+ { label: "向右长距进入", value: "fadeInLeftBig" },
34
+ { label: "向左长距进入", value: "fadeInRightBig" },
35
+ { label: "向上长距进入", value: "fadeInUpBig" },
36
+ { label: "向下长距进入", value: "fadeInDownBig" },
37
+ { label: "旋转进入", value: "rotateIn" },
38
+ { label: "左顺时针旋转", value: "rotateInDownLeft" },
39
+ { label: "右逆时针旋转", value: "rotateInDownRight" },
40
+ { label: "左逆时针旋转", value: "rotateInUpLeft" },
41
+ { label: "右逆时针旋转", value: "rotateInUpRight" },
42
+ { label: "弹入", value: "bounceIn" },
43
+ { label: "向右弹入", value: "bounceInLeft" },
44
+ { label: "向左弹入", value: "bounceInRight" },
45
+ { label: "向上弹入", value: "bounceInUp" },
46
+ { label: "向下弹入", value: "bounceInDown" },
47
+ { label: "光速从右进入", value: "lightSpeedInRight" },
48
+ { label: "光速从左进入", value: "lightSpeedInLeft" },
49
+ { label: "光速从右退出", value: "lightSpeedOutRight" },
50
+ { label: "光速从左退出", value: "lightSpeedOutLeft" },
51
+ { label: "Y轴旋转", value: "flip" },
52
+ { label: "中心X轴旋转", value: "flipInX" },
53
+ { label: "中心Y轴旋转", value: "flipInY" },
54
+ { label: "左长半径旋转", value: "rollIn" },
55
+ { label: "由小变大进入", value: "zoomIn" },
56
+ { label: "左变大进入", value: "zoomInLeft" },
57
+ { label: "右变大进入", value: "zoomInRight" },
58
+ { label: "向上变大进入", value: "zoomInUp" },
59
+ { label: "向下变大进入", value: "zoomInDown" },
60
+ { label: "向右滑动展开", value: "slideInLeft" },
61
+ { label: "向左滑动展开", value: "slideInRight" },
62
+ { label: "向上滑动展开", value: "slideInUp" },
63
+ { label: "向下滑动展开", value: "slideInDown" }
64
+ ]
65
+ }
66
+ ], M = {
67
+ key: 0,
68
+ class: "go-chart-configurations-animations"
69
+ }, O = /* @__PURE__ */ L({
70
+ __name: "index",
71
+ setup(X) {
72
+ R((a) => ({
73
+ "44b2acfc": f.value
74
+ }));
75
+ const _ = $(), r = B(""), { targetData: l } = T(), f = S(() => _.getAppTheme), g = (a) => {
76
+ const n = l.value.styles.animations;
77
+ return n.length ? n[0] === a : !1;
78
+ }, I = () => {
79
+ l.value.styles.animations = [];
80
+ }, h = (a) => {
81
+ l.value.styles.animations = [a.value];
82
+ };
83
+ return (a, n) => {
84
+ const x = i("n-button"), y = i("n-grid-item"), k = i("n-grid");
85
+ return o(l) ? (t(), s("div", M, [
86
+ b(x, {
87
+ class: "clear-btn go-my-2",
88
+ disabled: !o(l).styles.animations.length,
89
+ onClick: I
90
+ }, {
91
+ default: u(() => n[0] || (n[0] = [
92
+ c(" 清除动画 ")
93
+ ])),
94
+ _: 1,
95
+ __: [0]
96
+ }, 8, ["disabled"]),
97
+ (t(!0), s(d, null, m(o(Y), (v, w) => (t(), p(o(V), {
98
+ key: w,
99
+ name: v.label,
100
+ expanded: !0
101
+ }, {
102
+ default: u(() => [
103
+ b(k, {
104
+ "x-gap": 6,
105
+ "y-gap": 10,
106
+ cols: 3
107
+ }, {
108
+ default: u(() => [
109
+ (t(!0), s(d, null, m(v.children, (e, D) => (t(), p(y, {
110
+ class: U(["animation-item go-transition-quick", [
111
+ g(e.value) && "active",
112
+ r.value === e.value && `animate__animated animate__${e.value}`
113
+ ]]),
114
+ key: D,
115
+ onMouseover: (C) => r.value = e.value,
116
+ onClick: (C) => h(e)
117
+ }, {
118
+ default: u(() => [
119
+ c(z(e.label), 1)
120
+ ]),
121
+ _: 2
122
+ }, 1032, ["class", "onMouseover", "onClick"]))), 128))
123
+ ]),
124
+ _: 2
125
+ }, 1024)
126
+ ]),
127
+ _: 2
128
+ }, 1032, ["name"]))), 128))
129
+ ])) : A("", !0);
130
+ };
131
+ }
132
+ });
133
+ const Q = /* @__PURE__ */ N(O, [["__scopeId", "data-v-a89fd695"]]);
134
+ export {
135
+ Q as default
136
+ };
@@ -0,0 +1,26 @@
1
+ import { resolveComponent as p, openBlock as e, createBlock as o, withCtx as m, resolveDynamicComponent as r, KeepAlive as a, defineComponent as s, unref as u } from "vue";
2
+ import { A as f } from "./designStore-fe92c2ba.js";
3
+ import "pinia";
4
+ import "naive-ui";
5
+ import "vue-router";
6
+ const l = {};
7
+ function d(c, _) {
8
+ const t = p("router-view");
9
+ return e(), o(t, null, {
10
+ default: m(({ Component: n, route: i }) => [
11
+ i.meta.noKeepAlive ? (e(), o(r(n), { key: 0 })) : (e(), o(a, { key: 1 }, [
12
+ (e(), o(r(n)))
13
+ ], 1024))
14
+ ]),
15
+ _: 1
16
+ });
17
+ }
18
+ const v = /* @__PURE__ */ f(l, [["render", d]]), A = /* @__PURE__ */ s({
19
+ __name: "index",
20
+ setup(c) {
21
+ return (_, t) => (e(), o(u(v)));
22
+ }
23
+ });
24
+ export {
25
+ A as default
26
+ };
@@ -0,0 +1,81 @@
1
+ import { defineComponent as E, ref as i, computed as I, resolveComponent as n, openBlock as w, createBlock as B, withCtx as c, createVNode as o, unref as T, createTextVNode as k, withDirectives as r, createElementVNode as b, toDisplayString as N, vShow as _, withKeys as P, nextTick as R } from "vue";
2
+ import { G as S, A as z } from "./designStore-fe92c2ba.js";
3
+ import { b as V } from "./router-106a6abc.js";
4
+ import "naive-ui";
5
+ import { u as A, b as D, i as F } from "./chartEditStore-a725b558.js";
6
+ import "pinia";
7
+ import "vue-router";
8
+ const K = { class: "title" }, M = /* @__PURE__ */ E({
9
+ __name: "index",
10
+ setup(G) {
11
+ const { FishIcon: p } = F.ionicons5, d = A(), s = i(!1), l = i(null), t = i((() => {
12
+ const e = V();
13
+ return e.length ? e[0] : "";
14
+ })() || ""), f = I(() => {
15
+ t.value = t.value.replace(/\s/g, "");
16
+ const e = t.value.length ? t.value : "新项目";
17
+ return S(`工作空间-${e}`), d.setEditCanvasConfig(D.PROJECT_NAME, e), e;
18
+ }), m = () => {
19
+ s.value = !0, R(() => {
20
+ l.value && l.value.focus();
21
+ });
22
+ }, u = () => {
23
+ s.value = !1;
24
+ };
25
+ return (e, a) => {
26
+ const v = n("n-icon"), h = n("n-button"), x = n("n-text"), y = n("n-input"), C = n("n-space");
27
+ return w(), B(C, null, {
28
+ default: c(() => [
29
+ o(v, {
30
+ size: "20",
31
+ depth: 3
32
+ }, {
33
+ default: c(() => [
34
+ o(T(p))
35
+ ]),
36
+ _: 1
37
+ }),
38
+ o(x, { onClick: m }, {
39
+ default: c(() => [
40
+ a[1] || (a[1] = k(" 工作空间 - ")),
41
+ r(o(h, {
42
+ secondary: "",
43
+ size: "tiny"
44
+ }, {
45
+ default: c(() => [
46
+ b("span", K, N(f.value), 1)
47
+ ]),
48
+ _: 1
49
+ }, 512), [
50
+ [_, !s.value]
51
+ ])
52
+ ]),
53
+ _: 1,
54
+ __: [1]
55
+ }),
56
+ r(o(y, {
57
+ ref_key: "inputInstRef",
58
+ ref: l,
59
+ size: "small",
60
+ type: "text",
61
+ maxlength: "16",
62
+ "show-count": "",
63
+ placeholder: "请输入项目名称",
64
+ value: t.value,
65
+ "onUpdate:value": a[0] || (a[0] = (g) => t.value = g),
66
+ valueModifiers: { trim: !0 },
67
+ onKeyup: P(u, ["enter"]),
68
+ onBlur: u
69
+ }, null, 8, ["value"]), [
70
+ [_, s.value]
71
+ ])
72
+ ]),
73
+ _: 1
74
+ });
75
+ };
76
+ }
77
+ });
78
+ const Q = /* @__PURE__ */ z(M, [["__scopeId", "data-v-8780344c"]]);
79
+ export {
80
+ Q as default
81
+ };
@@ -0,0 +1,143 @@
1
+ import { defineComponent as w, resolveComponent as s, openBlock as a, createElementBlock as i, normalizeClass as u, createVNode as l, withCtx as o, createTextVNode as y, toDisplayString as x, createElementVNode as d, renderSlot as n, withDirectives as B, unref as C, vShow as S, createCommentVNode as m, createBlock as f } from "vue";
2
+ import "naive-ui";
3
+ import { A as $ } from "./designStore-fe92c2ba.js";
4
+ import "vue-router";
5
+ import { i as N } from "./chartEditStore-a725b558.js";
6
+ const T = {
7
+ key: 0,
8
+ class: "top go-mt-0 go-flex-no-wrap"
9
+ }, I = { class: "mt-1" }, V = {
10
+ key: 1,
11
+ class: "bottom go-mt-0"
12
+ }, z = { class: "aside" }, D = /* @__PURE__ */ w({
13
+ __name: "index",
14
+ props: {
15
+ title: String,
16
+ showTop: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ showBottom: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ flex: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ // back
29
+ backIcon: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ // 背景深度
34
+ depth: {
35
+ type: Number,
36
+ default: 1
37
+ },
38
+ // x 轴滚动
39
+ xScroll: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ disabledScroll: {
44
+ type: Boolean,
45
+ default: !1
46
+ }
47
+ },
48
+ emits: ["back"],
49
+ setup(e, { emit: h }) {
50
+ const { ChevronBackOutlineIcon: p } = N.ionicons5, _ = h, v = () => {
51
+ _("back");
52
+ };
53
+ return (t, E) => {
54
+ const b = s("n-text"), g = s("n-ellipsis"), r = s("n-space"), k = s("n-icon"), c = s("n-scrollbar");
55
+ return a(), i("div", {
56
+ class: u(["go-content-box", [`bg-depth${e.depth}`, e.flex && "flex"]])
57
+ }, [
58
+ e.showTop ? (a(), i("div", T, [
59
+ l(r, {
60
+ class: "go-flex-no-wrap",
61
+ size: 5
62
+ }, {
63
+ default: o(() => [
64
+ l(g, null, {
65
+ default: o(() => [
66
+ l(b, null, {
67
+ default: o(() => [
68
+ y(x(e.title), 1)
69
+ ]),
70
+ _: 1
71
+ })
72
+ ]),
73
+ _: 1
74
+ }),
75
+ d("div", I, [
76
+ n(t.$slots, "icon", {}, void 0, !0)
77
+ ])
78
+ ]),
79
+ _: 3
80
+ }),
81
+ l(r, {
82
+ class: "go-flex-no-wrap",
83
+ align: "center",
84
+ style: { gap: "4px" }
85
+ }, {
86
+ default: o(() => [
87
+ n(t.$slots, "top-right", {}, void 0, !0),
88
+ B(l(k, {
89
+ size: "20",
90
+ class: "go-cursor-pointer go-d-block",
91
+ onClick: v
92
+ }, {
93
+ default: o(() => [
94
+ l(C(p))
95
+ ]),
96
+ _: 1
97
+ }, 512), [
98
+ [S, e.backIcon]
99
+ ])
100
+ ]),
101
+ _: 3
102
+ })
103
+ ])) : m("", !0),
104
+ d("div", {
105
+ class: u(["content", {
106
+ "content-height-show-top-bottom": e.showBottom || e.showTop,
107
+ "content-height-show-both": e.showBottom && e.showTop
108
+ }])
109
+ }, [
110
+ e.disabledScroll ? n(t.$slots, "default", { key: 0 }, void 0, !0) : e.xScroll ? (a(), f(c, {
111
+ key: 1,
112
+ "x-scrollable": ""
113
+ }, {
114
+ default: o(() => [
115
+ l(c, null, {
116
+ default: o(() => [
117
+ n(t.$slots, "default", {}, void 0, !0)
118
+ ]),
119
+ _: 3
120
+ })
121
+ ]),
122
+ _: 3
123
+ })) : (a(), f(c, { key: 2 }, {
124
+ default: o(() => [
125
+ n(t.$slots, "default", {}, void 0, !0)
126
+ ]),
127
+ _: 3
128
+ }))
129
+ ], 2),
130
+ e.showBottom ? (a(), i("div", V, [
131
+ n(t.$slots, "bottom", {}, void 0, !0)
132
+ ])) : m("", !0),
133
+ d("div", z, [
134
+ n(t.$slots, "aside", {}, void 0, !0)
135
+ ])
136
+ ], 2);
137
+ };
138
+ }
139
+ });
140
+ const F = /* @__PURE__ */ $(D, [["__scopeId", "data-v-62561556"]]);
141
+ export {
142
+ F as C
143
+ };