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.
- package/LICENSE +21 -0
- package/README.md +221 -0
- package/dist/chunks/403-382550a8.js +42 -0
- package/dist/chunks/404-3d357d75.js +42 -0
- package/dist/chunks/500-96d14fb0.js +43 -0
- package/dist/chunks/StylesSetting-952ff564.js +338 -0
- package/dist/chunks/chartEditStore-a725b558.js +4975 -0
- package/dist/chunks/designStore-fe92c2ba.js +6268 -0
- package/dist/chunks/index-00b6339d.js +588 -0
- package/dist/chunks/index-0472b3a5.js +173 -0
- package/dist/chunks/index-097ae4b0.js +436 -0
- package/dist/chunks/index-09e62bb4.js +284 -0
- package/dist/chunks/index-1cb69ab6.js +136 -0
- package/dist/chunks/index-32d13283.js +26 -0
- package/dist/chunks/index-3fd591ea.js +81 -0
- package/dist/chunks/index-51458edb.js +143 -0
- package/dist/chunks/index-54f304ef.js +89 -0
- package/dist/chunks/index-62a7855c.js +51 -0
- package/dist/chunks/index-82d00e13.js +300 -0
- package/dist/chunks/index-9502bd7e.js +155 -0
- package/dist/chunks/index-95c5f0a0.js +1664 -0
- package/dist/chunks/index-a410a1d3.js +250 -0
- package/dist/chunks/index-da8ddb02.js +13 -0
- package/dist/chunks/index-de0a1234.js +482 -0
- package/dist/chunks/index-e31a7881.js +32 -0
- package/dist/chunks/index-f266153a.js +1985 -0
- package/dist/chunks/index-f97e5ffc.js +13 -0
- package/dist/chunks/index-fdf7dc1e.js +88 -0
- package/dist/chunks/index-fec9f9f8.js +368 -0
- package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
- package/dist/chunks/lodash-c80b695e.js +3680 -0
- package/dist/chunks/router-106a6abc.js +57 -0
- package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
- package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
- package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
- package/dist/chunks/wrapper-4c15ca94.js +28 -0
- package/dist/favicon.ico +0 -0
- package/dist/go-view-worker.js +23 -0
- package/dist/init.js +688 -0
- package/dist/style.css +7 -0
- package/dist/types/packages/index.d.ts +12 -0
- package/dist/types/packages/init.d.ts +6 -0
- package/dist/types/packages/utils/resize.d.ts +1 -0
- package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
- package/dist/types/src/components/GoIconify/index.d.ts +3 -0
- package/dist/types/src/components/GoLoading/index.d.ts +5 -0
- package/dist/types/src/components/GoReload/index.d.ts +3 -0
- package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
- package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
- package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
- package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
- package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
- package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
- package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
- package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
- package/dist/types/src/directives/index.d.ts +2 -0
- package/dist/types/src/enums/editPageEnum.d.ts +55 -0
- package/dist/types/src/enums/eventEnum.d.ts +32 -0
- package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
- package/dist/types/src/enums/httpEnum.d.ts +96 -0
- package/dist/types/src/enums/pageEnum.d.ts +34 -0
- package/dist/types/src/enums/pluginEnum.d.ts +6 -0
- package/dist/types/src/enums/storageEnum.d.ts +10 -0
- package/dist/types/src/enums/styleEnum.d.ts +14 -0
- package/dist/types/src/hooks/index.d.ts +6 -0
- package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
- package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
- package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
- package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
- package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
- package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
- package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
- package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
- package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
- package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
- package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
- package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
- package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
- package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
- package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
- package/dist/types/src/packages/index.d.ts +214 -0
- package/dist/types/src/packages/public/index.d.ts +2 -0
- package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
- package/dist/types/src/packages/public/vChart.d.ts +14 -0
- package/dist/types/src/plugins/customComponents.d.ts +7 -0
- package/dist/types/src/plugins/directives.d.ts +7 -0
- package/dist/types/src/plugins/icon.d.ts +111 -0
- package/dist/types/src/plugins/index.d.ts +5 -0
- package/dist/types/src/plugins/initFunction.d.ts +4 -0
- package/dist/types/src/plugins/naive.d.ts +3 -0
- package/dist/types/src/router/base.d.ts +7 -0
- package/dist/types/src/router/constant.d.ts +5 -0
- package/dist/types/src/router/index.d.ts +6 -0
- package/dist/types/src/router/modules/chart.route.d.ts +4 -0
- package/dist/types/src/router/modules/index.d.ts +5 -0
- package/dist/types/src/router/modules/preview.route.d.ts +4 -0
- package/dist/types/src/router/router-guards.d.ts +3 -0
- package/dist/types/src/router/types.d.ts +26 -0
- package/dist/types/src/settings/animations/index.d.ts +7 -0
- package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
- package/dist/types/src/settings/designSetting.d.ts +33 -0
- package/dist/types/src/settings/pathConst.d.ts +3 -0
- package/dist/types/src/settings/systemSetting.d.ts +11 -0
- package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
- package/dist/types/src/store/index.d.ts +5 -0
- package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
- package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
- package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
- package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
- package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
- package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
- package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
- package/dist/types/src/utils/components.d.ts +13 -0
- package/dist/types/src/utils/file.d.ts +19 -0
- package/dist/types/src/utils/index.d.ts +8 -0
- package/dist/types/src/utils/plugin.d.ts +30 -0
- package/dist/types/src/utils/router.d.ts +77 -0
- package/dist/types/src/utils/storage.d.ts +35 -0
- package/dist/types/src/utils/style.d.ts +154 -0
- package/dist/types/src/utils/type.d.ts +8 -0
- package/dist/types/src/utils/utils.d.ts +128 -0
- package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
- package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
- package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
- package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
- package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
- package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
- package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
- package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
- package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
- package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
- package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
- package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
- package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
- package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
- package/dist/types/src/views/preview/utils/index.d.ts +4 -0
- package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
- package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
- package/dist/types/src/views/preview/utils/style.d.ts +26 -0
- package/package.json +99 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as Configurator } from './Configurator/index.vue';
|
|
2
|
+
import { default as Renderer } from './Renderer/index.vue';
|
|
3
|
+
import { default as Designer } from './Designer/index.vue';
|
|
4
|
+
|
|
5
|
+
export { useResizeByClientWidth } from './utils/resize';
|
|
6
|
+
export { useGlobalConfigStore, type GlobalConfigState, type MenuOptionsType as MenuOptionsTypeNew, type CustomComponentConfig as CustomComponentConfigNew } from '../src/store/modules/globalConfigStore/globalConfigStore';
|
|
7
|
+
export { CollapseItem, SettingItemBox, SettingItem, GlobalSetting, GlobalSettingPosition } from '../src/components/Pages/ChartItemSetting';
|
|
8
|
+
export { Configurator, Renderer, Designer };
|
|
9
|
+
declare const _default: {
|
|
10
|
+
install: (app: any) => void;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { setupNaive } from '../src/plugins/naive';
|
|
2
|
+
import { setupCustomComponents } from '../src/plugins/customComponents';
|
|
3
|
+
import { setupDirectives } from '../src/plugins/directives';
|
|
4
|
+
|
|
5
|
+
export declare function initGoViewWorker(app: any): void;
|
|
6
|
+
export { setupNaive, setupCustomComponents, setupDirectives };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useResizeByClientWidth(width?: number, fontSize?: number): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as SettingItem } from './SettingItem.vue';
|
|
2
|
+
import { default as SettingItemBox } from './SettingItemBox.vue';
|
|
3
|
+
import { default as CollapseItem } from './CollapseItem.vue';
|
|
4
|
+
import { default as GlobalSetting } from './GlobalSetting.vue';
|
|
5
|
+
import { default as GlobalSettingPosition } from './GlobalSettingPosition.vue';
|
|
6
|
+
import { default as NameSetting } from './NameSetting.vue';
|
|
7
|
+
import { default as PositionSetting } from './PositionSetting.vue';
|
|
8
|
+
import { default as SizeSetting } from './SizeSetting.vue';
|
|
9
|
+
import { default as StylesSetting } from './StylesSetting.vue';
|
|
10
|
+
|
|
11
|
+
export { CollapseItem, SettingItemBox, SettingItem, GlobalSetting, GlobalSettingPosition, NameSetting, PositionSetting, SizeSetting, StylesSetting };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as VChartGlobalSetting } from './VChartGlobalSetting.vue';
|
|
2
|
+
import { default as Axis } from './Axis.vue';
|
|
3
|
+
import { default as Label } from './Label.vue';
|
|
4
|
+
import { default as Bar } from './Bar.vue';
|
|
5
|
+
import { default as Line } from './Line.vue';
|
|
6
|
+
import { default as Point } from './Point.vue';
|
|
7
|
+
|
|
8
|
+
export { VChartGlobalSetting, Axis, Label, Bar, Line, Point };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare enum MouseEventButton {
|
|
2
|
+
LEFT = 1,
|
|
3
|
+
RIGHT = 2
|
|
4
|
+
}
|
|
5
|
+
export declare enum DragKeyEnum {
|
|
6
|
+
DRAG_KEY = "ChartData"
|
|
7
|
+
}
|
|
8
|
+
export declare enum SavePageEnum {
|
|
9
|
+
CHART = "SaveChart",
|
|
10
|
+
CHART_TO_PREVIEW = "ChartToPreview",
|
|
11
|
+
JSON = "SaveJSON",
|
|
12
|
+
CLOSE = "close"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MenuEnum {
|
|
15
|
+
ARROW_UP = "up",
|
|
16
|
+
ARROW_RIGHT = "right",
|
|
17
|
+
ARROW_DOWN = "down",
|
|
18
|
+
ARROW_LEFT = "left",
|
|
19
|
+
DELETE = "delete",
|
|
20
|
+
COPY = "copy",
|
|
21
|
+
CUT = "cut",
|
|
22
|
+
PARSE = "parse",
|
|
23
|
+
TOP = "top",
|
|
24
|
+
BOTTOM = "bottom",
|
|
25
|
+
UP = "up",
|
|
26
|
+
DOWN = "down",
|
|
27
|
+
CLEAR = "clear",
|
|
28
|
+
GROUP = "group",
|
|
29
|
+
UN_GROUP = "unGroup",
|
|
30
|
+
BACK = "back",
|
|
31
|
+
FORWORD = "forward",
|
|
32
|
+
SAVE = "save",
|
|
33
|
+
LOCK = "lock",
|
|
34
|
+
UNLOCK = "unLock",
|
|
35
|
+
HIDE = "hide",
|
|
36
|
+
SHOW = "show"
|
|
37
|
+
}
|
|
38
|
+
export declare enum WinKeyboard {
|
|
39
|
+
CTRL = "ctrl",
|
|
40
|
+
SHIFT = "shift",
|
|
41
|
+
ALT = " alt",
|
|
42
|
+
CTRL_SOURCE_KEY = "control",
|
|
43
|
+
SHIFT_SOURCE_KEY = "shift",
|
|
44
|
+
ALT_SOURCE_KEY = "alt",
|
|
45
|
+
SPACE = "Space"
|
|
46
|
+
}
|
|
47
|
+
export declare enum MacKeyboard {
|
|
48
|
+
CTRL = "\u2318",
|
|
49
|
+
SHIFT = "\u21E7",
|
|
50
|
+
ALT = "\u2325",
|
|
51
|
+
CTRL_SOURCE_KEY = "\u2318",
|
|
52
|
+
SHIFT_SOURCE_KEY = "\u21E7",
|
|
53
|
+
ALT_SOURCE_KEY = "\u2325",
|
|
54
|
+
SPACE = "Space"
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum BaseEvent {
|
|
2
|
+
ON_CLICK = "click",
|
|
3
|
+
ON_DBL_CLICK = "dblclick",
|
|
4
|
+
ON_MOUSE_ENTER = "mouseenter",
|
|
5
|
+
ON_MOUSE_LEAVE = "mouseleave"
|
|
6
|
+
}
|
|
7
|
+
export declare enum InteractEvents {
|
|
8
|
+
INTERACT_ON = "interactOn",
|
|
9
|
+
INTERACT_COMPONENT_ID = "interactComponentId",
|
|
10
|
+
INTERACT_FN = "interactFn"
|
|
11
|
+
}
|
|
12
|
+
export declare enum InteractEventOn {
|
|
13
|
+
CLICK = "click",
|
|
14
|
+
CHANGE = "change"
|
|
15
|
+
}
|
|
16
|
+
export declare const COMPONENT_INTERACT_EVENT_KET = "componentInteractEventKey";
|
|
17
|
+
export declare type InteractActionsType = {
|
|
18
|
+
interactType: InteractEventOn;
|
|
19
|
+
interactName: string;
|
|
20
|
+
componentEmitEvents: {
|
|
21
|
+
[T: string]: {
|
|
22
|
+
value: any;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare enum EventLife {
|
|
28
|
+
VNODE_MOUNTED = "vnodeMounted",
|
|
29
|
+
VNODE_BEFORE_MOUNT = "vnodeBeforeMount"
|
|
30
|
+
}
|
|
31
|
+
export declare const excludeParseEventKeyList: string[];
|
|
32
|
+
export declare const excludeParseEventValueList: string[];
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 请求结果集
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ResultEnum {
|
|
5
|
+
DATA_SUCCESS = 0,
|
|
6
|
+
SUCCESS = 200,
|
|
7
|
+
SERVER_ERROR = 500,
|
|
8
|
+
SERVER_FORBIDDEN = 403,
|
|
9
|
+
NOT_FOUND = 404,
|
|
10
|
+
TIMEOUT = 60000
|
|
11
|
+
}
|
|
12
|
+
export declare enum RequestDataTypeEnum {
|
|
13
|
+
STATIC = 0,
|
|
14
|
+
AJAX = 1,
|
|
15
|
+
Pond = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum RequestContentTypeEnum {
|
|
18
|
+
DEFAULT = 0,
|
|
19
|
+
SQL = 1
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @description: 请求方法
|
|
23
|
+
*/
|
|
24
|
+
export declare enum RequestHttpEnum {
|
|
25
|
+
GET = "get",
|
|
26
|
+
POST = "post",
|
|
27
|
+
PATCH = "patch",
|
|
28
|
+
PUT = "put",
|
|
29
|
+
DELETE = "delete"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @description: 请求间隔
|
|
33
|
+
*/
|
|
34
|
+
export declare enum RequestHttpIntervalEnum {
|
|
35
|
+
SECOND = "second",
|
|
36
|
+
MINUTE = "minute",
|
|
37
|
+
HOUR = "hour",
|
|
38
|
+
DAY = "day"
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description: 请求间隔名称
|
|
42
|
+
*/
|
|
43
|
+
export declare const SelectHttpTimeNameObj: {
|
|
44
|
+
second: string;
|
|
45
|
+
minute: string;
|
|
46
|
+
hour: string;
|
|
47
|
+
day: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @description: 请求头部类型
|
|
51
|
+
*/
|
|
52
|
+
export declare enum RequestBodyEnum {
|
|
53
|
+
NONE = "none",
|
|
54
|
+
FORM_DATA = "form-data",
|
|
55
|
+
X_WWW_FORM_URLENCODED = "x-www-form-urlencoded",
|
|
56
|
+
JSON = "json",
|
|
57
|
+
XML = "xml"
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @description: 请求头部类型数组
|
|
61
|
+
*/
|
|
62
|
+
export declare const RequestBodyEnumList: RequestBodyEnum[];
|
|
63
|
+
/**
|
|
64
|
+
* @description: 请求参数类型
|
|
65
|
+
*/
|
|
66
|
+
export declare enum RequestParamsTypeEnum {
|
|
67
|
+
PARAMS = "Params",
|
|
68
|
+
BODY = "Body",
|
|
69
|
+
HEADER = "Header"
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @description: 请求参数主体
|
|
73
|
+
*/
|
|
74
|
+
export declare type RequestParamsObjType = {
|
|
75
|
+
[T: string]: string;
|
|
76
|
+
};
|
|
77
|
+
export declare type RequestParams = {
|
|
78
|
+
[RequestParamsTypeEnum.PARAMS]: RequestParamsObjType;
|
|
79
|
+
[RequestParamsTypeEnum.HEADER]: RequestParamsObjType;
|
|
80
|
+
[RequestParamsTypeEnum.BODY]: {
|
|
81
|
+
[RequestBodyEnum.FORM_DATA]: RequestParamsObjType;
|
|
82
|
+
[RequestBodyEnum.X_WWW_FORM_URLENCODED]: RequestParamsObjType;
|
|
83
|
+
[RequestBodyEnum.JSON]: string;
|
|
84
|
+
[RequestBodyEnum.XML]: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* @description: 常用的contentTyp类型
|
|
89
|
+
*/
|
|
90
|
+
export declare enum ContentTypeEnum {
|
|
91
|
+
JSON = "application/json;charset=UTF-8",
|
|
92
|
+
TEXT = "text/plain;charset=UTF-8",
|
|
93
|
+
XML = "application/xml;charset=UTF-8",
|
|
94
|
+
FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
|
|
95
|
+
FORM_DATA = "multipart/form-data;charset=UTF-8"
|
|
96
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ResultEnum } from './httpEnum';
|
|
2
|
+
|
|
3
|
+
export declare enum ChartEnum {
|
|
4
|
+
CHART_HOME = "/chart/home/:id(.*)*",
|
|
5
|
+
CHART_HOME_NAME = "ChartHome"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PreviewEnum {
|
|
8
|
+
CHART_PREVIEW = "/chart/preview/:id(.*)*",
|
|
9
|
+
CHART_PREVIEW_NAME = "ChartPreview"
|
|
10
|
+
}
|
|
11
|
+
export declare enum EditEnum {
|
|
12
|
+
CHART_EDIT = "/chart/edit/:id(.*)*",
|
|
13
|
+
CHART_EDIT_NAME = "ChartEdit"
|
|
14
|
+
}
|
|
15
|
+
export declare enum PageEnum {
|
|
16
|
+
BASE_LOGIN = "/login",
|
|
17
|
+
BASE_LOGIN_NAME = "Login",
|
|
18
|
+
REDIRECT = "/redirect",
|
|
19
|
+
REDIRECT_NAME = "Redirect",
|
|
20
|
+
RELOAD = "/reload",
|
|
21
|
+
RELOAD_NAME = "Reload",
|
|
22
|
+
BASE_HOME = "/project",
|
|
23
|
+
BASE_HOME_NAME = "Project",
|
|
24
|
+
BASE_HOME_ITEMS = "/project/items",
|
|
25
|
+
BASE_HOME_ITEMS_NAME = "Project-Items",
|
|
26
|
+
BASE_HOME_TEMPLATE = "/project/my-template",
|
|
27
|
+
BASE_HOME_TEMPLATE_NAME = "Project-My-Template",
|
|
28
|
+
BASE_HOME_TEMPLATE_MARKET = "/project/template-market",
|
|
29
|
+
BASE_HOME_TEMPLATE_MARKET_NAME = "Project-Template-Market",
|
|
30
|
+
ERROR_PAGE_NAME_403 = "ErrorPage403",
|
|
31
|
+
ERROR_PAGE_NAME_404 = "ErrorPage404",
|
|
32
|
+
ERROR_PAGE_NAME_500 = "ErrorPage500"
|
|
33
|
+
}
|
|
34
|
+
export declare const ErrorPageNameMap: Map<ResultEnum, PageEnum>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum StorageEnum {
|
|
2
|
+
GO_SYSTEM_SETTING_STORE = "GO_SYSTEM_SETTING",
|
|
3
|
+
GO_ACCESS_TOKEN_STORE = "GO_ACCESS_TOKEN",
|
|
4
|
+
GO_LOGIN_INFO_STORE = "GO_LOGIN_INFO",
|
|
5
|
+
GO_LANG_STORE = "GO_LANG",
|
|
6
|
+
GO_DESIGN_STORE = "GO_DESIGN",
|
|
7
|
+
GO_CHART_LAYOUT_STORE = "GO_CHART_LAYOUT",
|
|
8
|
+
GO_CHART_STORAGE_LIST = "GO_CHART_STORAGE_LIST",
|
|
9
|
+
GO_USER_MEDIA_PHOTOS = "GO_USER_MEDIA_PHOTOS"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ThemeEnum {
|
|
2
|
+
DARK = "dark",
|
|
3
|
+
LIGHT = "light"
|
|
4
|
+
}
|
|
5
|
+
export declare enum LangEnum {
|
|
6
|
+
ZH = "ZH",
|
|
7
|
+
EN = "EN"
|
|
8
|
+
}
|
|
9
|
+
export declare enum PreviewScaleEnum {
|
|
10
|
+
FIT = "fit",
|
|
11
|
+
SCROLL_Y = "scrollY",
|
|
12
|
+
SCROLL_X = "scrollX",
|
|
13
|
+
FULL = "full"
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useChartEditStore } from '../store/modules/chartEditStore/chartEditStore';
|
|
2
|
+
|
|
3
|
+
declare type ChartEditStoreType = typeof useChartEditStore;
|
|
4
|
+
export declare const useChartDataPondFetch: () => {
|
|
5
|
+
initDataPond: (useChartEditStore: ChartEditStoreType) => void;
|
|
6
|
+
clearMittDataPondMap: () => void;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateComponentType } from '../packages/index.d';
|
|
2
|
+
import { useChartEditStore } from '../store/modules/chartEditStore/chartEditStore';
|
|
3
|
+
|
|
4
|
+
declare type ChartEditStoreType = typeof useChartEditStore;
|
|
5
|
+
export declare const useChartInteract: (chartConfig: CreateComponentType, useChartEditStore: ChartEditStoreType, param: {
|
|
6
|
+
[T: string]: any;
|
|
7
|
+
}, interactEventOn: string) => void;
|
|
8
|
+
export declare const clearInteractEvent: (chartConfig: CreateComponentType) => void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare const useLang: () => {
|
|
2
|
+
locale: import('vue').ComputedRef<{
|
|
3
|
+
name: string;
|
|
4
|
+
global: {
|
|
5
|
+
undo: string;
|
|
6
|
+
redo: string;
|
|
7
|
+
confirm: string;
|
|
8
|
+
clear: string;
|
|
9
|
+
};
|
|
10
|
+
Popconfirm: {
|
|
11
|
+
positiveText: string;
|
|
12
|
+
negativeText: string;
|
|
13
|
+
};
|
|
14
|
+
Cascader: {
|
|
15
|
+
placeholder: string;
|
|
16
|
+
loading: string;
|
|
17
|
+
loadingRequiredMessage: (label: string) => string;
|
|
18
|
+
};
|
|
19
|
+
Time: {
|
|
20
|
+
dateFormat: string;
|
|
21
|
+
dateTimeFormat: string;
|
|
22
|
+
};
|
|
23
|
+
DatePicker: {
|
|
24
|
+
yearFormat: string;
|
|
25
|
+
monthFormat: string;
|
|
26
|
+
dayFormat: string;
|
|
27
|
+
yearTypeFormat: string;
|
|
28
|
+
monthTypeFormat: string;
|
|
29
|
+
dateFormat: string;
|
|
30
|
+
dateTimeFormat: string;
|
|
31
|
+
quarterFormat: string;
|
|
32
|
+
weekFormat: string;
|
|
33
|
+
clear: string;
|
|
34
|
+
now: string;
|
|
35
|
+
confirm: string;
|
|
36
|
+
selectTime: string;
|
|
37
|
+
selectDate: string;
|
|
38
|
+
datePlaceholder: string;
|
|
39
|
+
datetimePlaceholder: string;
|
|
40
|
+
monthPlaceholder: string;
|
|
41
|
+
yearPlaceholder: string;
|
|
42
|
+
quarterPlaceholder: string;
|
|
43
|
+
weekPlaceholder: string;
|
|
44
|
+
startDatePlaceholder: string;
|
|
45
|
+
endDatePlaceholder: string;
|
|
46
|
+
startDatetimePlaceholder: string;
|
|
47
|
+
endDatetimePlaceholder: string;
|
|
48
|
+
startMonthPlaceholder: string;
|
|
49
|
+
endMonthPlaceholder: string;
|
|
50
|
+
monthBeforeYear: boolean;
|
|
51
|
+
firstDayOfWeek: 0 | 1 | 5 | 2 | 3 | 4 | 6;
|
|
52
|
+
today: string;
|
|
53
|
+
};
|
|
54
|
+
DataTable: {
|
|
55
|
+
checkTableAll: string;
|
|
56
|
+
uncheckTableAll: string;
|
|
57
|
+
confirm: string;
|
|
58
|
+
clear: string;
|
|
59
|
+
};
|
|
60
|
+
LegacyTransfer: {
|
|
61
|
+
sourceTitle: string;
|
|
62
|
+
targetTitle: string;
|
|
63
|
+
};
|
|
64
|
+
Transfer: {
|
|
65
|
+
selectAll: string;
|
|
66
|
+
unselectAll: string;
|
|
67
|
+
clearAll: string;
|
|
68
|
+
total: (num: number) => string;
|
|
69
|
+
selected: (num: number) => string;
|
|
70
|
+
};
|
|
71
|
+
Empty: {
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
Select: {
|
|
75
|
+
placeholder: string;
|
|
76
|
+
};
|
|
77
|
+
TimePicker: {
|
|
78
|
+
placeholder: string;
|
|
79
|
+
positiveText: string;
|
|
80
|
+
negativeText: string;
|
|
81
|
+
now: string;
|
|
82
|
+
clear: string;
|
|
83
|
+
};
|
|
84
|
+
Pagination: {
|
|
85
|
+
goto: string;
|
|
86
|
+
selectionSuffix: string;
|
|
87
|
+
};
|
|
88
|
+
DynamicTags: {
|
|
89
|
+
add: string;
|
|
90
|
+
};
|
|
91
|
+
Log: {
|
|
92
|
+
loading: string;
|
|
93
|
+
};
|
|
94
|
+
Input: {
|
|
95
|
+
placeholder: string;
|
|
96
|
+
};
|
|
97
|
+
InputNumber: {
|
|
98
|
+
placeholder: string;
|
|
99
|
+
};
|
|
100
|
+
DynamicInput: {
|
|
101
|
+
create: string;
|
|
102
|
+
};
|
|
103
|
+
ThemeEditor: {
|
|
104
|
+
title: string;
|
|
105
|
+
clearAllVars: string;
|
|
106
|
+
clearSearch: string;
|
|
107
|
+
filterCompName: string;
|
|
108
|
+
filterVarName: string;
|
|
109
|
+
import: string;
|
|
110
|
+
export: string;
|
|
111
|
+
restore: string;
|
|
112
|
+
};
|
|
113
|
+
Image: {
|
|
114
|
+
tipPrevious: string;
|
|
115
|
+
tipNext: string;
|
|
116
|
+
tipCounterclockwise: string;
|
|
117
|
+
tipClockwise: string;
|
|
118
|
+
tipZoomOut: string;
|
|
119
|
+
tipZoomIn: string;
|
|
120
|
+
tipDownload: string;
|
|
121
|
+
tipClose: string;
|
|
122
|
+
tipOriginalSize: string;
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
dateLocale: import('vue').ComputedRef<import('naive-ui/es/locales/date/enUS').NDateLocale>;
|
|
126
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateComponentType, CreateComponentGroupType } from '../packages/index.d';
|
|
2
|
+
|
|
3
|
+
export declare const npmPkgs: {};
|
|
4
|
+
export declare const useLifeHandler: (chartConfig: CreateComponentType | CreateComponentGroupType) => {};
|
|
5
|
+
/**
|
|
6
|
+
* 生成基础函数
|
|
7
|
+
* @param fnStr 用户方法体代码
|
|
8
|
+
* @param event 鼠标事件
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateBaseFunc(fnStr: string): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const usePreviewFitScale: (width: number, height: number, scaleDom: HTMLElement | null, callback?: ((scale: {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
}) => void) | undefined) => {
|
|
5
|
+
calcRate: () => void;
|
|
6
|
+
windowResize: () => void;
|
|
7
|
+
unWindowResize: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const usePreviewScrollYScale: (width: number, height: number, scaleDom: HTMLElement | null, callback?: ((scale: {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}) => void) | undefined) => {
|
|
13
|
+
calcRate: () => void;
|
|
14
|
+
windowResize: () => void;
|
|
15
|
+
unWindowResize: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const usePreviewScrollXScale: (width: number, height: number, scaleDom: HTMLElement | null, callback?: ((scale: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}) => void) | undefined) => {
|
|
21
|
+
calcRate: () => void;
|
|
22
|
+
windowResize: () => void;
|
|
23
|
+
unWindowResize: () => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const usePreviewFullScale: (width: number, height: number, scaleDom: HTMLElement | null, callback?: ((scale: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}) => void) | undefined) => {
|
|
29
|
+
calcRate: () => void;
|
|
30
|
+
windowResize: () => void;
|
|
31
|
+
unWindowResize: () => void;
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GlobalThemeOverrides } from 'naive-ui';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* * 设置全局主题
|
|
5
|
+
*/
|
|
6
|
+
export declare const useThemeOverridesHook: () => import('vue').ComputedRef<GlobalThemeOverrides>;
|
|
7
|
+
export declare const useDarkThemeHook: () => import('vue').ComputedRef<import('naive-ui/es/themes/interface').BuiltInGlobalTheme | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|