@knime/scripting-editor 0.0.6 → 0.0.7
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/dist/knime-scripting-editor.js +6588 -872
- package/dist/src/components/CodeEditorControlBar.vue.d.ts +11 -0
- package/dist/src/components/FooterBar.vue.d.ts +5 -0
- package/dist/src/components/HeaderBar.vue.d.ts +30 -0
- package/dist/src/components/ScriptingEditor.vue.d.ts +64 -2
- package/package.json +5 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
controls?(_: {
|
|
3
|
+
class: string;
|
|
4
|
+
}): any;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scriptingEditorCancelled" | "scriptingEditorOkayed")[], "scriptingEditorCancelled" | "scriptingEditorOkayed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onScriptingEditorCancelled?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
onScriptingEditorOkayed?: ((...args: any[]) => any) | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { MenuItem } from "webapps-common/ui/components/MenuItems.vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: null;
|
|
7
|
+
};
|
|
8
|
+
menuItems: {
|
|
9
|
+
type: PropType<MenuItem[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, unknown, unknown, {
|
|
13
|
+
hasMenu(): boolean;
|
|
14
|
+
}, {
|
|
15
|
+
menuItemClicked(event: Event, item: any): void;
|
|
16
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "menu-item-click"[], "menu-item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
menuItems: {
|
|
22
|
+
type: PropType<MenuItem[]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>> & {
|
|
26
|
+
"onMenu-item-click"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
title: string;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _default;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import { editor } from './monaco-editor';
|
|
3
|
+
import type { MenuItem } from "webapps-common/ui/components/MenuItems.vue";
|
|
3
4
|
type PaneSizes = {
|
|
4
5
|
[key in "left" | "right" | "bottom"]: number;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
7
12
|
language: {
|
|
8
13
|
type: StringConstructor;
|
|
9
14
|
default: null;
|
|
@@ -16,10 +21,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
21
|
type: PropType<"fixed" | "relative">;
|
|
17
22
|
default: string;
|
|
18
23
|
};
|
|
24
|
+
menuItems: {
|
|
25
|
+
type: {
|
|
26
|
+
(arrayLength: number): MenuItem[];
|
|
27
|
+
(...items: MenuItem[]): MenuItem[];
|
|
28
|
+
new (arrayLength: number): MenuItem[];
|
|
29
|
+
new (...items: MenuItem[]): MenuItem[];
|
|
30
|
+
isArray(arg: any): arg is any[];
|
|
31
|
+
readonly prototype: any[];
|
|
32
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
33
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
34
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
35
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
36
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
37
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
38
|
+
};
|
|
39
|
+
default: never[];
|
|
40
|
+
};
|
|
41
|
+
showControlBar: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
19
45
|
}, unknown, {
|
|
20
46
|
currentPaneSizes: PaneSizes;
|
|
21
47
|
initialPaneSizes: PaneSizes;
|
|
22
48
|
previousPaneSizes: PaneSizes;
|
|
49
|
+
commonMenuItems: MenuItem[];
|
|
50
|
+
editorModel: editor.ITextModel | null;
|
|
23
51
|
}, {
|
|
24
52
|
usedMainPaneSize(): number;
|
|
25
53
|
usedHorizontalCodeEditorPaneSize(): number;
|
|
@@ -36,7 +64,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
64
|
editor: editor.IStandaloneCodeEditor;
|
|
37
65
|
editorModel: editor.ITextModel;
|
|
38
66
|
}): void;
|
|
39
|
-
|
|
67
|
+
saveSettings(): void;
|
|
68
|
+
onMenuItemClicked(args: {
|
|
69
|
+
event: Event;
|
|
70
|
+
item: any;
|
|
71
|
+
}): void;
|
|
72
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("monaco-created" | "menu-item-clicked")[], "monaco-created" | "menu-item-clicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
|
+
title: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: null;
|
|
76
|
+
};
|
|
40
77
|
language: {
|
|
41
78
|
type: StringConstructor;
|
|
42
79
|
default: null;
|
|
@@ -49,11 +86,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
86
|
type: PropType<"fixed" | "relative">;
|
|
50
87
|
default: string;
|
|
51
88
|
};
|
|
89
|
+
menuItems: {
|
|
90
|
+
type: {
|
|
91
|
+
(arrayLength: number): MenuItem[];
|
|
92
|
+
(...items: MenuItem[]): MenuItem[];
|
|
93
|
+
new (arrayLength: number): MenuItem[];
|
|
94
|
+
new (...items: MenuItem[]): MenuItem[];
|
|
95
|
+
isArray(arg: any): arg is any[];
|
|
96
|
+
readonly prototype: any[];
|
|
97
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
98
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
99
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
100
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
101
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
102
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
103
|
+
};
|
|
104
|
+
default: never[];
|
|
105
|
+
};
|
|
106
|
+
showControlBar: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
52
110
|
}>> & {
|
|
53
111
|
"onMonaco-created"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
"onMenu-item-clicked"?: ((...args: any[]) => any) | undefined;
|
|
54
113
|
}, {
|
|
55
114
|
language: string;
|
|
56
115
|
fileName: string;
|
|
116
|
+
title: string;
|
|
117
|
+
menuItems: MenuItem[];
|
|
57
118
|
rightPaneLayout: "fixed" | "relative";
|
|
119
|
+
showControlBar: boolean;
|
|
58
120
|
}, {}>;
|
|
59
121
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/scripting-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"description": "Shared Scripting Editor components for KNIME",
|
|
6
6
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
7
7
|
"license": "See the file license.txt",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "run-p type-check build-only",
|
|
10
10
|
"build-only": "vite build",
|
|
11
|
-
"build-watch": "vite build --watch",
|
|
11
|
+
"build-watch": "vite build --minify=false --watch",
|
|
12
12
|
"test:unit": "vitest",
|
|
13
13
|
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
14
14
|
"format": "prettier --cache --write .",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@tsconfig/node18": "18.2.0",
|
|
40
40
|
"@types/jsdom": "21.1.1",
|
|
41
41
|
"@types/node": "18.17.0",
|
|
42
|
-
"@types/splitpanes": "
|
|
42
|
+
"@types/splitpanes": "2.2.1",
|
|
43
43
|
"@vitejs/plugin-vue": "4.2.3",
|
|
44
44
|
"@vitejs/plugin-vue-jsx": "3.0.1",
|
|
45
45
|
"@vitest/coverage-v8": "0.33.0",
|
|
@@ -58,8 +58,9 @@
|
|
|
58
58
|
"vite": "4.4.6",
|
|
59
59
|
"vite-plugin-css-injected-by-js": "3.2.1",
|
|
60
60
|
"vite-plugin-dts": "3.4.0",
|
|
61
|
+
"vite-svg-loader": "4.0.0",
|
|
61
62
|
"vitest": "0.33.0",
|
|
62
|
-
"vue-tsc": "1.8.
|
|
63
|
+
"vue-tsc": "1.8.8"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
66
|
"vue": "3.x"
|