@knime/scripting-editor 0.0.74 → 0.0.75
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/lib/main.d.ts +5 -3
- package/dist/main.js +6672 -6562
- package/dist/src/components/InputOutputItem.vue.d.ts +3 -6
- package/dist/src/components/OutputConsole.vue.d.ts +2 -9
- package/dist/src/components/ScriptingEditor.vue.d.ts +12 -8
- package/dist/src/components/ScriptingEditorBottomPane.vue.d.ts +31 -0
- package/dist/src/components/utils/insertionEventHelper.d.ts +14 -0
- package/dist/src/components/utils/resizeLogic.d.ts +30 -0
- package/dist/src/scripting-service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,19 +31,16 @@ export type InputOutputModel = {
|
|
|
31
31
|
}[];
|
|
32
32
|
};
|
|
33
33
|
export declare const INPUT_OUTPUT_DRAG_EVENT_ID = "input_output_drag_event";
|
|
34
|
+
export declare const COLUMN_INSERTION_EVENT = "columnInsertion";
|
|
34
35
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
35
36
|
inputOutputItem: InputOutputModel;
|
|
36
37
|
}>, {
|
|
37
38
|
toggleExpansion: () => void;
|
|
38
39
|
setExpanded: (b: boolean) => void;
|
|
39
40
|
isExpanded: () => any;
|
|
40
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
-
"input-output-item-clicked": (...args: any[]) => void;
|
|
42
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
41
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
43
42
|
inputOutputItem: InputOutputModel;
|
|
44
|
-
}
|
|
45
|
-
"onInput-output-item-clicked"?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}, {}, {}>;
|
|
43
|
+
}>>>, {}, {}>;
|
|
47
44
|
export default _default;
|
|
48
45
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
46
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -12,16 +12,9 @@ export type ConsoleHandler = {
|
|
|
12
12
|
write: (text: ConsoleText) => void;
|
|
13
13
|
clear: () => void;
|
|
14
14
|
};
|
|
15
|
-
declare const _default:
|
|
15
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
16
|
"console-created": (handler: ConsoleHandler) => void;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
18
18
|
"onConsole-created"?: ((handler: ConsoleHandler) => any) | undefined;
|
|
19
|
-
}, {}, {}
|
|
20
|
-
"console-status"?(_: {}): any;
|
|
21
|
-
}>;
|
|
19
|
+
}, {}, {}>;
|
|
22
20
|
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -2,6 +2,10 @@ import { MenuItem } from '@knime/components';
|
|
|
2
2
|
import { NodeSettings } from '../scripting-service';
|
|
3
3
|
import { PaneSizes } from './utils/paneSizes';
|
|
4
4
|
|
|
5
|
+
type TabItem = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
5
9
|
interface Props {
|
|
6
10
|
title?: string | null;
|
|
7
11
|
language: string;
|
|
@@ -12,7 +16,7 @@ interface Props {
|
|
|
12
16
|
initialPaneSizes?: PaneSizes;
|
|
13
17
|
rightPaneMinimumWidthInPixel?: number;
|
|
14
18
|
toSettings?: (settings: NodeSettings) => NodeSettings;
|
|
15
|
-
|
|
19
|
+
additionalBottomPaneTabContent?: TabItem[];
|
|
16
20
|
}
|
|
17
21
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
18
22
|
title: null;
|
|
@@ -27,9 +31,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
27
31
|
};
|
|
28
32
|
rightPaneMinimumWidthInPixel: () => 0;
|
|
29
33
|
toSettings: (settings: NodeSettings) => NodeSettings;
|
|
30
|
-
|
|
34
|
+
additionalBottomPaneTabContent: () => TabItem[];
|
|
31
35
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
-
"input-output-item-insertion": (...args: any[]) => void;
|
|
33
36
|
"menu-item-clicked": (...args: any[]) => void;
|
|
34
37
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
35
38
|
title: null;
|
|
@@ -44,9 +47,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
44
47
|
};
|
|
45
48
|
rightPaneMinimumWidthInPixel: () => 0;
|
|
46
49
|
toSettings: (settings: NodeSettings) => NodeSettings;
|
|
47
|
-
|
|
50
|
+
additionalBottomPaneTabContent: () => TabItem[];
|
|
48
51
|
}>>> & {
|
|
49
|
-
"onInput-output-item-insertion"?: ((...args: any[]) => any) | undefined;
|
|
50
52
|
"onMenu-item-clicked"?: ((...args: any[]) => any) | undefined;
|
|
51
53
|
}, {
|
|
52
54
|
title: string | null;
|
|
@@ -54,11 +56,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
54
56
|
showControlBar: boolean;
|
|
55
57
|
fileName: string | null;
|
|
56
58
|
toSettings: (settings: NodeSettings) => NodeSettings;
|
|
57
|
-
rightPaneLayout: "fixed" | "relative";
|
|
58
59
|
initialPaneSizes: PaneSizes;
|
|
59
60
|
rightPaneMinimumWidthInPixel: number;
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
rightPaneLayout: "fixed" | "relative";
|
|
62
|
+
additionalBottomPaneTabContent: TabItem[];
|
|
63
|
+
}, {}>, Partial<Record<string, (_: {
|
|
64
|
+
grabFocus: () => void;
|
|
65
|
+
}) => any>> & {
|
|
62
66
|
"settings-title"?(_: {}): any;
|
|
63
67
|
"settings-content"?(_: {}): any;
|
|
64
68
|
editor?(_: {}): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type SlottedTab = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
6
|
+
modelValue: import('vue').PropType<string>;
|
|
7
|
+
slottedTabs: {
|
|
8
|
+
type: import('vue').PropType<SlottedTab[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
default: () => SlottedTab[];
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
modelValue: import('vue').PropType<string>;
|
|
14
|
+
slottedTabs: {
|
|
15
|
+
type: import('vue').PropType<SlottedTab[]>;
|
|
16
|
+
required: true;
|
|
17
|
+
default: () => SlottedTab[];
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
slottedTabs: SlottedTab[];
|
|
21
|
+
}, {}>, Partial<Record<string, (_: {
|
|
22
|
+
grabFocus: () => void;
|
|
23
|
+
}) => any>> & {
|
|
24
|
+
"console-status"?(_: {}): any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type InsertionEvent = {
|
|
2
|
+
textToInsert: string;
|
|
3
|
+
extraArgs?: {
|
|
4
|
+
[name: string]: any;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
type InsertionListener = (event: InsertionEvent) => void;
|
|
8
|
+
export declare const insertionEventHelper: {
|
|
9
|
+
getInsertionEventHelper: (eventType: string) => {
|
|
10
|
+
registerInsertionListener: (listener: InsertionListener) => void;
|
|
11
|
+
handleInsertion: (event: InsertionEvent) => void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseElementBoundingReturn } from '@vueuse/core';
|
|
2
|
+
import { PaneSizes } from './paneSizes';
|
|
3
|
+
|
|
4
|
+
export declare const useResizeLogic: ({ initialPaneSizes, rightPaneMinimumWidthInPixel, rightPaneLayout, rootSplitPaneRef, editorSplitPaneRef, }: {
|
|
5
|
+
initialPaneSizes: PaneSizes;
|
|
6
|
+
rightPaneMinimumWidthInPixel: number;
|
|
7
|
+
rightPaneLayout: "fixed" | "relative";
|
|
8
|
+
rootSplitPaneRef: UseElementBoundingReturn;
|
|
9
|
+
editorSplitPaneRef: UseElementBoundingReturn;
|
|
10
|
+
}) => {
|
|
11
|
+
collapseAllPanes: import('vue').ComputedRef<boolean>;
|
|
12
|
+
collapseLeftPane: import('vue').ComputedRef<boolean>;
|
|
13
|
+
showButtonText: import('vue').ComputedRef<boolean>;
|
|
14
|
+
minRatioOfRightPaneInPercent: import('vue').ComputedRef<number>;
|
|
15
|
+
currentPaneSizes: import('vue').ComputedRef<{
|
|
16
|
+
left: number;
|
|
17
|
+
right: number;
|
|
18
|
+
bottom: number;
|
|
19
|
+
}>;
|
|
20
|
+
usedMainPaneSize: import('vue').ComputedRef<number>;
|
|
21
|
+
usedHorizontalCodeEditorPaneSize: import('vue').ComputedRef<number>;
|
|
22
|
+
usedVerticalCodeEditorPaneSize: import('vue').ComputedRef<number>;
|
|
23
|
+
isLeftPaneCollapsed: import('vue').ComputedRef<boolean>;
|
|
24
|
+
isRightPaneCollapsed: import('vue').ComputedRef<boolean>;
|
|
25
|
+
isBottomPaneCollapsed: import('vue').ComputedRef<boolean>;
|
|
26
|
+
updatePreviousPaneSize: (pane: keyof PaneSizes) => void;
|
|
27
|
+
resizePane: (size: number, pane: keyof PaneSizes, shouldUpdatePreviousPaneSize?: boolean) => void;
|
|
28
|
+
updateRightPane: (size: number) => void;
|
|
29
|
+
collapsePane: (pane: keyof PaneSizes) => void;
|
|
30
|
+
};
|
package/package.json
CHANGED