@guihz/trading-vue-editor-tes 0.1.58 → 0.1.59
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/lib/api/api.d.ts +5 -0
- package/lib/assets/{parserTccWorker-BTFynXFB.js → parserTccWorker-cv6DMJv5.js} +8057 -8057
- package/lib/assets/{scriptsRunWorker-Ddx7Nh_r.js → scriptsRunWorker-r6EwiDhz.js} +2114 -2114
- package/lib/components/editor/constants/common.d.ts +4 -0
- package/lib/components/editor/index.d.ts +1 -1
- package/lib/components/editor/parseScript/utils.d.ts +4 -0
- package/lib/components/editor/type/index.d.ts +2 -0
- package/lib/components/editor/utils/importLibrary.d.ts +3 -1
- package/lib/components/editor/utils/initEditor.d.ts +1 -1
- package/lib/components/editor/utils/tools.d.ts +1 -0
- package/lib/trading-vue-editor.es.packages.js +11691 -6274
- package/lib/trading-vue-editor.umd.packages.mjs +62 -49
- package/lib/utils/crypto.d.ts +16 -0
- package/package.json +2 -1
|
@@ -18,7 +18,7 @@ interface IProps {
|
|
|
18
18
|
onChange?: (value: string) => void;
|
|
19
19
|
onDeclareConfigChange?: (value: IKeyObjectValue) => void;
|
|
20
20
|
onActionTrigger?: (actionId: string) => void;
|
|
21
|
-
onLinkOpen?: (source: string, index?: number) => void;
|
|
21
|
+
onLinkOpen?: (source: string, index?: number, version?: number) => void;
|
|
22
22
|
onVersionChange?: (version: number) => void;
|
|
23
23
|
}
|
|
24
24
|
export interface IRefs {
|
|
@@ -36,3 +36,7 @@ export declare function getCustomTimeframeData(timeframe: string, tickerid: stri
|
|
|
36
36
|
export declare function resultHandle(data: IKeyObjectValue[], dataSource: IKeyObjectValue[], values: IKeyObjectValue, period: string, timeframe: string, timeframeGaps?: boolean, isNew?: boolean): IKeyObjectValue;
|
|
37
37
|
export declare function resultFilterHandle(values: IKeyObjectValue, barIndexs: number[][], dataSource: IKeyObjectValue[], timeframeGaps?: boolean): IKeyObjectValue;
|
|
38
38
|
export declare function filterKey(key: string): string;
|
|
39
|
+
export declare function filterComments(comments: IKeyObjectValue[]): {
|
|
40
|
+
strategyAlertMsg: string;
|
|
41
|
+
commentFilters: any[];
|
|
42
|
+
};
|
|
@@ -91,6 +91,7 @@ export interface IDocValue {
|
|
|
91
91
|
expectsTemplate?: boolean;
|
|
92
92
|
realName?: string;
|
|
93
93
|
isUserFields?: boolean;
|
|
94
|
+
libraryInfoId?: string;
|
|
94
95
|
}
|
|
95
96
|
export interface IDetailedDesc {
|
|
96
97
|
desc: string[];
|
|
@@ -123,6 +124,7 @@ export interface IImportLibrary {
|
|
|
123
124
|
methods: IDocValue[];
|
|
124
125
|
variables: IDocValue[];
|
|
125
126
|
enums: IDocValue[];
|
|
127
|
+
parserVersion: number;
|
|
126
128
|
}
|
|
127
129
|
export type IShapeRatioType = "D" | "M" | "NONE";
|
|
128
130
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { editor, languages } from "monaco-editor";
|
|
2
2
|
import { IKeyObjectValue } from "../type";
|
|
3
|
+
import { Monaco } from "@monaco-editor/react";
|
|
3
4
|
declare class ImportLibrary {
|
|
4
5
|
private _inlayHints;
|
|
5
6
|
private _editor?;
|
|
6
7
|
private _importCompleteLibrary;
|
|
7
8
|
private _funcs;
|
|
9
|
+
private _monaco?;
|
|
8
10
|
constructor();
|
|
9
11
|
get inlayHints(): languages.InlayHint[];
|
|
10
|
-
setEditor(editor: editor.IStandaloneCodeEditor): void;
|
|
12
|
+
setEditor(editor: editor.IStandaloneCodeEditor, monaco: Monaco): void;
|
|
11
13
|
setInlayHints(params: IKeyObjectValue): Promise<any>;
|
|
12
14
|
deleteInlayHints(name: string): void;
|
|
13
15
|
clearInlayHints(): void;
|
|
@@ -11,7 +11,7 @@ export default class InitEditor {
|
|
|
11
11
|
private _registerList;
|
|
12
12
|
private _version;
|
|
13
13
|
constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
|
|
14
|
-
addLinkOpenFunc(onLinkOpen: (source: string, index?: number) => void): void;
|
|
14
|
+
addLinkOpenFunc(onLinkOpen: (source: string, index?: number, version?: number) => void): void;
|
|
15
15
|
updateActionTrigger(onActionTrigger?: (actionId: string) => void): void;
|
|
16
16
|
setModelMarkers(markers: editor.IMarkerData[]): void;
|
|
17
17
|
addDiffDecorations(): void;
|
|
@@ -4,3 +4,4 @@ export declare function removeContextMenu(editor: editor.IStandaloneCodeEditor):
|
|
|
4
4
|
export declare function getContents(version?: number): Promise<typeof import("../v3/constants") | undefined>;
|
|
5
5
|
export declare function getMonarchTokens(version?: number): Promise<typeof import("../v3/config/monarchTokens") | undefined>;
|
|
6
6
|
export declare function getCurrentVersionFirstName(version: number, prefix?: string): string;
|
|
7
|
+
export declare function parseInfoId(infoId?: string): string;
|