@guihz/trading-vue-editor-tes 0.0.24 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  export declare const LAST_EDITED_SCRIPT = "tcc_last_edited_script";
2
2
  export declare const ORIGINAL_SCRIPT = "tcc_original_script";
3
3
  export declare const CURSOR_POSITION = "tcc_cursor_position";
4
+ export declare const REMOVE_ACTIONS: string[];
@@ -13,6 +13,7 @@ interface IProps {
13
13
  onCursorPositionChange?: (position: IPosition) => void;
14
14
  onChange?: (value: string) => void;
15
15
  onDeclareConfigChange?: (value: IKeyObjectValue) => void;
16
+ onActionTrigger?: (actionId: string) => void;
16
17
  }
17
18
  export interface IRefs {
18
19
  saveScript: () => void;
@@ -38,3 +38,8 @@ export declare enum DocTitle {
38
38
  Description = "Description",
39
39
  Example = "Example"
40
40
  }
41
+ export declare enum Actions {
42
+ Save = "save",
43
+ Find = "find",
44
+ TriggerConsole = "trigger.console"
45
+ }
@@ -5,7 +5,8 @@ export default class InitEditor {
5
5
  private _monaco;
6
6
  private _decorations?;
7
7
  private _changPositionListener?;
8
- constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco);
8
+ private _onActionTrigger?;
9
+ constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
9
10
  setModelMarkers(markers: editor.IMarkerData[]): void;
10
11
  addDiffDecorations(): void;
11
12
  removeDiffDecorations(): void;
@@ -23,7 +24,7 @@ export default class InitEditor {
23
24
  private _setOptions;
24
25
  private _addCommands;
25
26
  private _addActions;
27
+ openFind(): void;
26
28
  gotoLine(): void;
27
29
  onChangeCursorPosition(_callback?: (postion: IPosition) => void): void;
28
- private _addListening;
29
30
  }
@@ -2,7 +2,7 @@
2
2
  import { ErrorListener } from 'antlr4';
3
3
  import { IKeyObjectValue } from '../type';
4
4
  export default function parseTcc(program: string, hasTranscoding: boolean, keyObjs: IKeyObjectValue): Promise<{
5
- errors: import("../parseScript/type").IError[];
5
+ errors: any[];
6
6
  functions: {
7
7
  [k: string]: import("../type").IDocValue[];
8
8
  };
@@ -1 +1,3 @@
1
+ import { editor } from "monaco-editor";
1
2
  export declare function getTypeOriginName(type: string): string;
3
+ export declare function removeContextMenu(editor: editor.IStandaloneCodeEditor): void;
@@ -1,6 +1,7 @@
1
+ export { Actions } from '../components/editor/tokenizer/config';
1
2
  export { default as TradingVueEditor } from '../components/editor/index';
2
3
  export { default as TradingVueDiffEditor } from '../components/diffEditor/index';
3
4
  export type { IRefs as IEditorRefs } from '../components/editor/index';
4
- export { parseTcc, scriptsRun } from '../components/editor/utils/parserTcc';
5
+ export { parseTcc, scriptsRun, removeScript } from '../components/editor/utils/parserTcc';
5
6
  export type { IError, IPosition } from '../components/editor/parseScript/type';
6
7
  export { VMarkerSeverity } from '../components/editor/parseScript/type';