@knime/scripting-editor 0.0.113 → 0.0.115
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/comment-DF5653Zg-CMgCNp9C.js +22 -0
- package/dist/copy-CADYPJ7i-BprJkSI5.js +22 -0
- package/dist/data-value-view-s-klU7YW-B6fpOnWv.js +22 -0
- package/dist/db-schema-DdEQ316O-u4b64AI6.js +22 -0
- package/dist/db-table-CvuqIJRU-C_dZgtAB.js +22 -0
- package/dist/deploy-p4n7UbXW-DwkL3X_3.js +22 -0
- package/dist/flow-variable-default-CtwVk0Oi-aECKqPoV.js +30 -0
- package/dist/layout-editor-7q-wKXJR-COQsMtaN.js +21 -0
- package/dist/{like-D2rnvJMO-DlkiV5WW.js → like-B94wIC3p-DV1hX9Ey.js} +1 -1
- package/dist/{lock-mlEwUUt1-C_POpKZ0.js → lock-C8DiogKI-B-e6b9aH.js} +3 -3
- package/dist/main.js +1637 -1627
- package/dist/{more-actions-DBLTo2NK-D_qPYTyZ.js → more-actions-DfPfmV7m-DQNsC4-m.js} +1 -1
- package/dist/node_modules/@knime/components/src/components/FileExplorer/types/index.d.ts +1 -0
- package/dist/node_modules/@knime/components/src/components/FileExplorer/utils/filterSlotsForDynamicColumns.d.ts +4 -0
- package/dist/node_modules/@knime/kds-components/dist/comment-DF5653Zg.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/copy-CADYPJ7i.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/data-value-view-s-klU7YW.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/db-schema-DdEQ316O.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/db-table-CvuqIJRU.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/flow-variable-default-CtwVk0Oi.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/index.d.ts +98 -1
- package/dist/node_modules/@knime/kds-components/dist/layout-editor-7q-wKXJR.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/replace-CHkh4BTh.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/resume-execution-BZkBKP2U.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/selected-execution-CkSAaZeA.d.ts +7 -0
- package/dist/node_modules/@knime/kds-components/dist/stepwise-execution-DZjOmrt2.d.ts +7 -0
- package/dist/node_modules/@knime/kds-styles/dist/icons/def.d.ts +2 -0
- package/dist/node_modules/@knime/kds-styles/dist/img/icons/def.d.ts +1 -1
- package/dist/node_modules/@knime/licenses/config/license.config.d.ts +1 -6
- package/dist/replace-CHkh4BTh-yd32K3dU.js +22 -0
- package/dist/resume-execution-BZkBKP2U-CHx3QqDT.js +22 -0
- package/dist/scripting-service-browser-mock.js +20 -17
- package/dist/src/components/HeaderBar.vue.d.ts +15 -1
- package/dist/src/scripting-service-browser-mock.d.ts +1 -1
- package/dist/src/scripting-service.d.ts +5 -2
- package/dist/stepwise-execution-DZjOmrt2-BuoCiMXz.js +22 -0
- package/dist/{underline-CLXwjAXP-C0dzvFcg.js → underline-DoMNWkIW-vkFrpkr7.js} +2 -2
- package/package.json +9 -9
- package/dist/deploy-CF4vcyzf-of6OID4b.js +0 -22
- package/dist/node_modules/@knime/kds-components/dist/selected-execute-Ril2FDJ6.d.ts +0 -7
- /package/dist/node_modules/@knime/kds-components/dist/{deploy-CF4vcyzf.d.ts → deploy-p4n7UbXW.d.ts} +0 -0
- /package/dist/node_modules/@knime/kds-components/dist/{like-D2rnvJMO.d.ts → like-B94wIC3p.d.ts} +0 -0
- /package/dist/node_modules/@knime/kds-components/dist/{lock-mlEwUUt1.d.ts → lock-C8DiogKI.d.ts} +0 -0
- /package/dist/node_modules/@knime/kds-components/dist/{more-actions-DBLTo2NK.d.ts → more-actions-DfPfmV7m.d.ts} +0 -0
- /package/dist/node_modules/@knime/kds-components/dist/{underline-CLXwjAXP.d.ts → underline-DoMNWkIW.d.ts} +0 -0
- /package/dist/{selected-execute-Ril2FDJ6-B6KgRuhq.js → selected-execution-CkSAaZeA-B6KgRuhq.js} +0 -0
|
@@ -10,7 +10,7 @@ const r = {
|
|
|
10
10
|
function l(m, e) {
|
|
11
11
|
return n(), o("svg", r, e[0] || (e[0] = [
|
|
12
12
|
t("path", {
|
|
13
|
-
d: "
|
|
13
|
+
d: "M6 5.5v1m-.354-.854.708.708m0-.708-.708.708M5.5 6h1m3-.5v1m-.354-.854.708.708m0-.708-.708.708M9 6h1M2.5 6v-.5 1zm0 0-.354-.354.708.708zm0 0 .354-.354-.708.708zm0 0H2h1z",
|
|
14
14
|
"vector-effect": "non-scaling-stroke"
|
|
15
15
|
}, null, -1)
|
|
16
16
|
]));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare namespace flowVariableDefault {
|
|
2
|
+
export { render };
|
|
3
|
+
}
|
|
4
|
+
export function render(_ctx: any, _cache: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
export { flowVariableDefault as default };
|
|
@@ -1,3 +1,100 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _sfc_main$2: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
variant: {};
|
|
3
|
+
size: {};
|
|
4
|
+
destructive: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
10
|
+
label: {};
|
|
11
|
+
leadingIcon: {};
|
|
12
|
+
trailingIcon: {};
|
|
13
|
+
icon: {};
|
|
14
|
+
}>, (_ctx: any, _cache: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
variant: {};
|
|
18
|
+
size: {};
|
|
19
|
+
destructive: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
label: {};
|
|
26
|
+
leadingIcon: {};
|
|
27
|
+
trailingIcon: {};
|
|
28
|
+
icon: {};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
destructive: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
35
|
export const DataType: any;
|
|
3
36
|
export const Icon: any;
|
|
37
|
+
declare const _sfc_main$1: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
38
|
+
variant: {};
|
|
39
|
+
size: {};
|
|
40
|
+
destructive: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
};
|
|
46
|
+
label: {};
|
|
47
|
+
leadingIcon: {};
|
|
48
|
+
trailingIcon: {};
|
|
49
|
+
icon: {};
|
|
50
|
+
to: {};
|
|
51
|
+
download: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
target: {};
|
|
56
|
+
rel: {};
|
|
57
|
+
}>, (_ctx: any, _cache: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
variant: {};
|
|
61
|
+
size: {};
|
|
62
|
+
destructive: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
};
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
};
|
|
68
|
+
label: {};
|
|
69
|
+
leadingIcon: {};
|
|
70
|
+
trailingIcon: {};
|
|
71
|
+
icon: {};
|
|
72
|
+
to: {};
|
|
73
|
+
download: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
target: {};
|
|
78
|
+
rel: {};
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
download: boolean;
|
|
84
|
+
destructive: boolean;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export function useDarkMode(): {
|
|
87
|
+
/** Exposes a writable computed ref to get the current dark mode but also use it in e.g. a v-model to set it */
|
|
88
|
+
currentMode: import('vue').WritableComputedRef<string, string>;
|
|
89
|
+
/** Whether or not the current user preference is dark. Note, if the preference is set to 'system' it will return false. */
|
|
90
|
+
isDarkMode: import('vue').ComputedRef<boolean>;
|
|
91
|
+
/** Whether or not the current user preference is light. Note, if the preference is set to 'system' it will return false. */
|
|
92
|
+
isLightMode: import('vue').ComputedRef<boolean>;
|
|
93
|
+
/** Whether or not the current user preference is set to 'system'. */
|
|
94
|
+
isSystemMode: import('vue').ComputedRef<boolean>;
|
|
95
|
+
};
|
|
96
|
+
export function useLegacyMode(initialValue?: boolean): {
|
|
97
|
+
/** Writable ref to get and/or set the legacy mode; can also be used with v-model */
|
|
98
|
+
legacyMode: import('vue').Ref<boolean, boolean>;
|
|
99
|
+
};
|
|
100
|
+
export { _sfc_main$2 as Button, _sfc_main$1 as LinkButton };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const iconNames: readonly ["ai-general", "annotation-mode", "arrow-down", "arrow-up", "arrows-expand", "arrows-move", "arrows-order", "back", "bold", "calendar", "case-sensitive", "center-aligned", "checkmark", "chevron-down", "chevron-left-double", "chevron-left", "chevron-right-double", "chevron-right", "chevron-up", "circle-error", "circle-info", "circle-question", "circle-success", "cloud-download", "cloud-knime", "cloud-upload", "cloud-workflow", "code-block", "color-picker", "component", "connection", "cursor", "data-app", "date-time", "db-database", "deploy", "detect", "divider", "duration", "edit", "education", "error-panel", "execute", "extension-community", "extension", "external-link", "eye", "file-export", "file-text", "file", "filter", "flow-variable-in-out", "flow-variable-in", "flow-variable-out", "folder-plus", "folder-workflow", "folder", "forum", "function-catalog", "home", "import", "info", "interval", "italic", "left-aligned", "like", "limit", "link", "linked-metanode", "list-bulletpoint", "list-number", "list-thumbs", "list", "local-filesystem", "lock", "metanode", "minus", "more-actions", "node-stack", "open-in-new-window", "parameter", "pending-changes", "placeholder", "plus", "quote", "re-execution", "redo", "reload", "reset-all", "right-aligned", "rocket", "save-as", "save", "schedule", "search", "selected-cancel", "selected-execute", "selected-reset", "send", "server-rack-workflow", "settings", "share", "shortcuts", "sort-ascending", "sort-descending", "space-local", "space-private", "space", "strikethrough", "text", "textstyles", "thumbs-down", "thumbs-up", "time", "to-bottom", "to-top", "trash", "trigger", "underline", "undo", "unlink", "user", "view-cards", "warning", "workflow", "x-close"];
|
|
2
|
+
export type IconName = typeof iconNames[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const iconNames: readonly ["ai-general", "annotation-mode", "arrow-down", "arrow-up", "arrows-expand", "arrows-move", "arrows-order", "back", "bold", "calendar", "case-sensitive", "center-aligned", "checkmark", "chevron-down", "chevron-left-double", "chevron-left", "chevron-right-double", "chevron-right", "chevron-up", "circle-error", "circle-info", "circle-question", "circle-success", "cloud-download", "cloud-knime", "cloud-upload", "cloud-workflow", "code-block", "color-picker", "component", "connection", "cursor", "data-app", "date-time", "db-database", "deploy", "detect", "divider", "duration", "edit", "education", "error-panel", "execute", "extension-community", "extension", "external-link", "eye", "file-export", "file-text", "file", "filter", "flow-variable-in-out", "flow-variable-in", "flow-variable-out", "folder-plus", "folder-workflow", "folder", "forum", "function-catalog", "home", "import", "info", "interval", "italic", "left-aligned", "like", "limit", "link", "linked-metanode", "list-bulletpoint", "list-number", "list-thumbs", "list", "local-filesystem", "lock", "metanode", "minus", "more-actions", "node-stack", "open-in-new-window", "parameter", "pending-changes", "placeholder", "plus", "quote", "re-execution", "redo", "reload", "reset-all", "right-aligned", "rocket", "save-as", "save", "schedule", "search", "selected-cancel", "selected-
|
|
1
|
+
export declare const iconNames: readonly ["ai-general", "annotation-mode", "arrow-down", "arrow-up", "arrows-expand", "arrows-move", "arrows-order", "back", "bold", "calendar", "case-sensitive", "center-aligned", "checkmark", "chevron-down", "chevron-left-double", "chevron-left", "chevron-right-double", "chevron-right", "chevron-up", "circle-error", "circle-info", "circle-question", "circle-success", "cloud-download", "cloud-knime", "cloud-upload", "cloud-workflow", "code-block", "color-picker", "comment", "component", "connection", "copy", "cursor", "data-app", "data-value-view", "date-time", "db-database", "db-schema", "db-table", "deploy", "detect", "divider", "duration", "edit", "education", "error-panel", "execute", "extension-community", "extension", "external-link", "eye", "file-export", "file-text", "file", "filter", "flow-variable-default", "flow-variable-in-out", "flow-variable-in", "flow-variable-out", "folder-plus", "folder-workflow", "folder", "forum", "function-catalog", "home", "import", "info", "interval", "italic", "layout-editor", "left-aligned", "like", "limit", "link", "linked-metanode", "list-bulletpoint", "list-number", "list-thumbs", "list", "local-filesystem", "lock", "metanode", "minus", "more-actions", "node-stack", "open-in-new-window", "parameter", "pending-changes", "placeholder", "plus", "quote", "re-execution", "redo", "reload", "replace", "reset-all", "resume-execution", "right-aligned", "rocket", "save-as", "save", "schedule", "search", "selected-cancel", "selected-execution", "selected-reset", "send", "server-rack-workflow", "settings", "share", "shortcuts", "sort-ascending", "sort-descending", "space-local", "space-private", "space", "stepwise-execution", "strikethrough", "text", "textstyles", "thumbs-down", "thumbs-up", "time", "to-bottom", "to-top", "trash", "trigger", "underline", "undo", "unlink", "user", "view-cards", "warning", "workflow", "x-close"];
|
|
2
2
|
export type IconName = typeof iconNames[number];
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
let onlyAllow: string[];
|
|
3
3
|
let excludePackages: string[];
|
|
4
|
-
let manualPackages:
|
|
5
|
-
name: string;
|
|
6
|
-
repository: string;
|
|
7
|
-
licenses: string;
|
|
8
|
-
licenseText: string;
|
|
9
|
-
}[];
|
|
4
|
+
let manualPackages: never[];
|
|
10
5
|
}
|
|
11
6
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
8
|
+
viewBox: "0 0 12 12"
|
|
9
|
+
};
|
|
10
|
+
function l(c, e) {
|
|
11
|
+
return n(), o("svg", t, e[0] || (e[0] = [
|
|
12
|
+
r("path", {
|
|
13
|
+
d: "m3 5 1-1M3 5 2 4m1 1V3a1 1 0 0 1 1-1h1m4 5L8 8m1-1 1 1M9 7v2a1 1 0 0 1-1 1H7M2 7h3v3H2zm5-5h3v3H7z",
|
|
14
|
+
"vector-effect": "non-scaling-stroke"
|
|
15
|
+
}, null, -1)
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
const m = { render: l };
|
|
19
|
+
export {
|
|
20
|
+
m as default,
|
|
21
|
+
l as render
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as t } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
8
|
+
viewBox: "0 0 12 12"
|
|
9
|
+
};
|
|
10
|
+
function l(s, e) {
|
|
11
|
+
return n(), o("svg", r, e[0] || (e[0] = [
|
|
12
|
+
t("path", {
|
|
13
|
+
d: "M2 10V2m9 4-6.502 4V2z",
|
|
14
|
+
"vector-effect": "non-scaling-stroke"
|
|
15
|
+
}, null, -1)
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
const i = { render: l };
|
|
19
|
+
export {
|
|
20
|
+
i as default,
|
|
21
|
+
l as render
|
|
22
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
function c(
|
|
3
|
-
return new Promise((n) => setTimeout(n,
|
|
1
|
+
import { l as r } from "./log-BmIREpQ5.js";
|
|
2
|
+
function c(i) {
|
|
3
|
+
return new Promise((n) => setTimeout(n, i));
|
|
4
4
|
}
|
|
5
|
-
const l = 100, a = 2e3, g = (
|
|
6
|
-
typeof consola > "u" ? console.error(
|
|
7
|
-
}, u = (
|
|
5
|
+
const l = 100, a = 2e3, g = (i, ...n) => {
|
|
6
|
+
typeof consola > "u" ? console.error(i, ...n) : consola.error(i, ...n);
|
|
7
|
+
}, u = (i) => {
|
|
8
8
|
let n = 498;
|
|
9
|
-
const
|
|
9
|
+
const t = /* @__PURE__ */ new Map(), o = {
|
|
10
10
|
suggestCode: async () => {
|
|
11
11
|
await c(a);
|
|
12
|
-
const e =
|
|
12
|
+
const e = t.get("codeSuggestion");
|
|
13
13
|
return typeof e < "u" && e({
|
|
14
14
|
status: "SUCCESS",
|
|
15
15
|
code: JSON.stringify({
|
|
@@ -26,7 +26,7 @@ const l = 100, a = 2e3, g = (r, ...n) => {
|
|
|
26
26
|
};
|
|
27
27
|
return {
|
|
28
28
|
async sendToService(e, s) {
|
|
29
|
-
return
|
|
29
|
+
return r(`Called scriptingService.sendToService("${e}")`, s), await c(l), i.sendToServiceMockResponses && e in i.sendToServiceMockResponses ? i.sendToServiceMockResponses[e](...s ?? []) : e in o ? o[e](...s ?? []) : (g(
|
|
30
30
|
`${e} not implemented in sendToServiceMockResponses.
|
|
31
31
|
Returning undefined.`
|
|
32
32
|
), Promise.resolve());
|
|
@@ -36,35 +36,38 @@ const l = 100, a = 2e3, g = (r, ...n) => {
|
|
|
36
36
|
},
|
|
37
37
|
// Settings and dialog window
|
|
38
38
|
isCallKnimeUiApiAvailable() {
|
|
39
|
-
return
|
|
39
|
+
return r("Called scriptingService.isCallKnimeUiApiAvailable"), Promise.resolve(!1);
|
|
40
40
|
},
|
|
41
41
|
isKaiEnabled() {
|
|
42
|
-
return
|
|
42
|
+
return r("Called scriptingService.isKaiEnabled"), Promise.resolve(!0);
|
|
43
43
|
},
|
|
44
44
|
isLoggedIntoHub() {
|
|
45
|
-
return
|
|
45
|
+
return r("Called scriptingService.isLoggedIntoHub"), Promise.resolve(!0);
|
|
46
46
|
},
|
|
47
47
|
// Event handler
|
|
48
48
|
registerEventHandler(e, s) {
|
|
49
|
-
|
|
49
|
+
r("Called scriptingService.registerEventHandler", e), t.set(e, s);
|
|
50
50
|
},
|
|
51
51
|
// Language server
|
|
52
52
|
connectToLanguageServer() {
|
|
53
|
-
return
|
|
53
|
+
return r("Called scriptingService.connectToLanguageServer"), Promise.reject(new Error("No language server in mock"));
|
|
54
54
|
},
|
|
55
55
|
getAiDisclaimer() {
|
|
56
|
-
return
|
|
56
|
+
return r("Called scriptingService.getAiDisclaimer"), Promise.resolve(
|
|
57
57
|
"This is a fake AI disclaimer. Enjoy the AI. It does nothing!"
|
|
58
58
|
);
|
|
59
59
|
},
|
|
60
60
|
getAiUsage() {
|
|
61
|
-
return
|
|
61
|
+
return r("Called scriptingService.getAiUsage"), Promise.resolve({
|
|
62
62
|
limit: 500,
|
|
63
63
|
used: n
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
|
+
sendAlert(e) {
|
|
67
|
+
r("Called scriptingService.sendAlert", e);
|
|
68
|
+
},
|
|
66
69
|
// Console handling
|
|
67
|
-
eventHandlers:
|
|
70
|
+
eventHandlers: t
|
|
68
71
|
};
|
|
69
72
|
};
|
|
70
73
|
export {
|
|
@@ -42,6 +42,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
default: string;
|
|
44
44
|
};
|
|
45
|
+
maxHeight: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
45
49
|
orientation: {
|
|
46
50
|
type: PropType<"right" | "top" | "left">;
|
|
47
51
|
default: string;
|
|
@@ -100,7 +104,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
100
104
|
shadowRoot: ShadowRoot | null;
|
|
101
105
|
}, {
|
|
102
106
|
activeDescendant: string | undefined;
|
|
103
|
-
}, {
|
|
107
|
+
}, {
|
|
108
|
+
maxHeightStyle(): {
|
|
109
|
+
"max-height"?: string | undefined;
|
|
110
|
+
"overflow-y"?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
104
113
|
toggleMenu(event: Event): void;
|
|
105
114
|
onItemClick(event: Event, item: MenuItem): void;
|
|
106
115
|
onKeydown(event: KeyboardEvent): void;
|
|
@@ -119,6 +128,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
119
128
|
type: StringConstructor;
|
|
120
129
|
default: string;
|
|
121
130
|
};
|
|
131
|
+
maxHeight: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
122
135
|
orientation: {
|
|
123
136
|
type: PropType<"right" | "top" | "left">;
|
|
124
137
|
default: string;
|
|
@@ -161,6 +174,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
161
174
|
}>, {
|
|
162
175
|
compact: boolean;
|
|
163
176
|
disabled: boolean;
|
|
177
|
+
maxHeight: string;
|
|
164
178
|
id: string;
|
|
165
179
|
maxMenuWidth: number;
|
|
166
180
|
buttonTitle: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScriptingServiceType } from './scripting-service';
|
|
2
2
|
export type ScriptingServiceMockOptions = {
|
|
3
|
-
sendToServiceMockResponses?: Record<string, (options
|
|
3
|
+
sendToServiceMockResponses?: Record<string, (...options: any) => Promise<any>>;
|
|
4
4
|
};
|
|
5
5
|
export declare const createScriptingServiceMock: (opt: ScriptingServiceMockOptions) => ScriptingServiceType & {
|
|
6
6
|
eventHandlers: Map<string, (args: any) => void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonDataService } from '@knime/ui-extension-service';
|
|
1
|
+
import { AlertParams, AlertingService, JsonDataService } from '@knime/ui-extension-service';
|
|
2
2
|
import { PortConfig } from './initial-data-service';
|
|
3
3
|
import { MonacoLSPConnection } from './lsp/connection';
|
|
4
4
|
import { PublicAPI } from './types/public-api';
|
|
@@ -8,6 +8,7 @@ export type UsageData = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class ScriptingService {
|
|
10
10
|
private readonly jsonDataService;
|
|
11
|
+
private readonly alertingService;
|
|
11
12
|
private readonly eventPoller;
|
|
12
13
|
/**
|
|
13
14
|
* Internal constructor — use `getScriptingService()` from `init.ts` instead.
|
|
@@ -20,8 +21,9 @@ export declare class ScriptingService {
|
|
|
20
21
|
*
|
|
21
22
|
* @internal
|
|
22
23
|
* @param jsonDataService The JSON data service used for communication with the backend.
|
|
24
|
+
* @param alertingService The alerting service used to send alerts.
|
|
23
25
|
*/
|
|
24
|
-
constructor(jsonDataService: JsonDataService);
|
|
26
|
+
constructor(jsonDataService: JsonDataService, alertingService: AlertingService);
|
|
25
27
|
sendToService(methodName: string, options?: any[] | undefined): Promise<any>;
|
|
26
28
|
getOutputPreviewTableInitialData(): Promise<string | undefined>;
|
|
27
29
|
registerEventHandler(type: string, handler: (args: any) => void): void;
|
|
@@ -31,6 +33,7 @@ export declare class ScriptingService {
|
|
|
31
33
|
isLoggedIntoHub(): Promise<boolean>;
|
|
32
34
|
getAiDisclaimer(): Promise<string>;
|
|
33
35
|
getAiUsage(): Promise<UsageData | null>;
|
|
36
|
+
sendAlert(alert: AlertParams): void;
|
|
34
37
|
}
|
|
35
38
|
/** Type representing the public API of ScriptingService */
|
|
36
39
|
export type ScriptingServiceType = PublicAPI<ScriptingService>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as t, createElementVNode as n } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
8
|
+
viewBox: "0 0 12 12"
|
|
9
|
+
};
|
|
10
|
+
function l(s, e) {
|
|
11
|
+
return t(), o("svg", r, e[0] || (e[0] = [
|
|
12
|
+
n("path", {
|
|
13
|
+
d: "M6.531 4.758 2 2v8l1.248-.764M10 10V5H8.33v1.667H6.664v1.667H5v1.667",
|
|
14
|
+
"vector-effect": "non-scaling-stroke"
|
|
15
|
+
}, null, -1)
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
const i = { render: l };
|
|
19
|
+
export {
|
|
20
|
+
i as default,
|
|
21
|
+
l as render
|
|
22
|
+
};
|
|
@@ -7,10 +7,10 @@ const t = {
|
|
|
7
7
|
"stroke-linejoin": "round",
|
|
8
8
|
viewBox: "0 0 12 12"
|
|
9
9
|
};
|
|
10
|
-
function l(
|
|
10
|
+
function l(c, e) {
|
|
11
11
|
return o(), n("svg", t, e[0] || (e[0] = [
|
|
12
12
|
r("path", {
|
|
13
|
-
d: "
|
|
13
|
+
d: "M3 1.5V6c0 1.657 1.343 2.5 3 2.5S9 7.657 9 6V1.5m-7 9h8",
|
|
14
14
|
"vector-effect": "non-scaling-stroke"
|
|
15
15
|
}, null, -1)
|
|
16
16
|
]));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/scripting-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.115",
|
|
5
5
|
"description": "Shared Scripting Editor components for KNIME",
|
|
6
6
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
7
7
|
"license": "See the file license.txt",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build-watch": "vite build --minify=false --watch",
|
|
12
12
|
"demo": "vite --config vite.demo.config.ts",
|
|
13
13
|
"test:unit": "vitest",
|
|
14
|
-
"type-check": "vue-tsc
|
|
14
|
+
"type-check": "vue-tsc -p tsconfig.vitest.json",
|
|
15
15
|
"format": "prettier --cache --write .",
|
|
16
16
|
"format:check": "prettier --cache --check .",
|
|
17
17
|
"lint": "run-p 'lint:* -- --fix'",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"postinstall": "license-check -c"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@knime/kds-components": "0.0.
|
|
29
|
-
"@knime/kds-styles": "0.0.
|
|
28
|
+
"@knime/kds-components": "0.0.8",
|
|
29
|
+
"@knime/kds-styles": "0.0.8",
|
|
30
30
|
"@knime/styles": "1.10.0",
|
|
31
|
-
"@knime/ui-extension-renderer": "2.3.
|
|
31
|
+
"@knime/ui-extension-renderer": "2.3.34",
|
|
32
32
|
"@knime/utils": "1.5.5",
|
|
33
|
-
"@vueuse/core": "13.
|
|
33
|
+
"@vueuse/core": "13.8.0",
|
|
34
34
|
"@xterm/addon-fit": "^0.10.0",
|
|
35
35
|
"@xterm/addon-unicode11": "^0.8.0",
|
|
36
36
|
"@xterm/xterm": "^5.5.0",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"vscode-languageserver-protocol": "3.17.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@knime/components": "1.
|
|
42
|
+
"@knime/components": "1.41.5",
|
|
43
43
|
"@knime/eslint-config": "9.1.3",
|
|
44
44
|
"@knime/ui-extension-service": "2.4.1",
|
|
45
|
-
"@knime/licenses": "1.2
|
|
45
|
+
"@knime/licenses": "1.3.2",
|
|
46
46
|
"@tsconfig/node22": "22.0.2",
|
|
47
47
|
"@types/color-hash": "2.0.0",
|
|
48
48
|
"@types/jsdom": "21.1.7",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vite-svg-loader": "5.1.0",
|
|
71
71
|
"vitest": "2.1.9",
|
|
72
72
|
"vue-tsc": "3.0.4",
|
|
73
|
-
"vue": "3.5.
|
|
73
|
+
"vue": "3.5.18"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@knime/components": "1.38.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as h, openBlock as v, createElementVNode as m } from "vue";
|
|
2
|
-
const a = {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
viewBox: "0 0 12 12"
|
|
7
|
-
};
|
|
8
|
-
function e(l, z) {
|
|
9
|
-
return v(), h("svg", a, z[0] || (z[0] = [
|
|
10
|
-
m("path", {
|
|
11
|
-
fill: "#000",
|
|
12
|
-
stroke: "none",
|
|
13
|
-
d: "m8.093 9.818-.267-.423zm-1.964.663-.046-.498zm-2.062-.289.181-.466zm-1.675-1.17-.377.328zm-.403-1.88a.5.5 0 1 0-.978.206zm6.407-5.245a.5.5 0 1 0 .708.707zM10 1l.354-.354a.5.5 0 0 0-.708 0zM5.2 5.2v-.5a.5.5 0 0 0-.5.5zm1.8 0h.5a.5.5 0 0 0-.5-.5zM7 7v.5a.5.5 0 0 0 .5-.5zM5.2 7h-.5a.5.5 0 0 0 .5.5zm0-6V.5a.5.5 0 0 0-.5.5zM7 1h.5A.5.5 0 0 0 7 .5zm0 1.8v.5a.5.5 0 0 0 .5-.5zm-1.8 0h-.5a.5.5 0 0 0 .5.5zM1 3.1v-.5a.5.5 0 0 0-.5.5zm1.8 0h.5a.5.5 0 0 0-.5-.5zm0 1.8v.5a.5.5 0 0 0 .5-.5zM1 4.9H.5a.5.5 0 0 0 .5.5zm9 1.556h-.5a3.36 3.36 0 0 1-.442 1.66l.435.246.435.247c.375-.66.572-1.4.572-2.153zm-.507 1.906-.435-.246c-.29.512-.713.953-1.232 1.28l.267.422.266.424a4.64 4.64 0 0 0 1.57-1.633zm-1.4 1.456-.267-.423a3.96 3.96 0 0 1-1.743.588l.046.498.047.497a4.96 4.96 0 0 0 2.183-.736zm-1.964.663-.046-.498a4 4 0 0 1-1.835-.257l-.181.466-.182.466a5 5 0 0 0 2.29.32zm-2.062-.289.181-.466a3.8 3.8 0 0 1-1.48-1.033l-.376.328-.377.329a4.8 4.8 0 0 0 1.87 1.308zm-1.675-1.17.377-.329a3.45 3.45 0 0 1-.78-1.552l-.489.104-.49.103A4.45 4.45 0 0 0 2.016 9.35zM10 6.455h.5V1.5h-1v4.956zM8.75 2.25l.354.354 1.25-1.25L10 1 9.646.646l-1.25 1.25zM10 1l-.354.354 1.25 1.25.354-.354.354-.353-1.25-1.25zM5.2 5.2v.5H7v-1H5.2zM7 7v-.5H5.2v1H7zm0-1.8h-.5V7h1V5.2zM5.2 1v.5H7v-1H5.2zM7 2.8v-.5H5.2v1H7zM7 1h-.5v1.8h1V1zM1 3.1v.5h1.8v-1H1zm1.8 1.8v-.5H1v1h1.8zM1 4.9h.5V3.1h-1v1.8zm1.8-1.8h-.5V4h1v-.9zm0 .9h-.5v.9h1V4zm1.278 1.2h.5V4h-1v1.2zm0-1.2h.5V2.8h-1V4zM2.8 4v.5h1.278v-1H2.8zm2.4-1.2h.5v-.9h-1v.9zm0-.9h.5V1h-1v.9zm0 5.1h.5v-.9h-1V7zm0-.9h.5v-.9h-1v.9zm-1.122-.9h-.5c0 .5.168.914.554 1.16.333.213.744.24 1.068.24v-1c-.31 0-.46-.038-.53-.082a.13.13 0 0 1-.052-.062.6.6 0 0 1-.04-.256zm0-2.4h.5c0-.138.023-.212.041-.248a.15.15 0 0 1 .06-.067c.078-.049.233-.085.521-.085v-1c-.312 0-.718.028-1.051.237-.386.241-.571.65-.571 1.163z",
|
|
14
|
-
"vector-effect": "non-scaling-stroke"
|
|
15
|
-
}, null, -1)
|
|
16
|
-
]));
|
|
17
|
-
}
|
|
18
|
-
const t = { render: e };
|
|
19
|
-
export {
|
|
20
|
-
t as default,
|
|
21
|
-
e as render
|
|
22
|
-
};
|
/package/dist/node_modules/@knime/kds-components/dist/{deploy-CF4vcyzf.d.ts → deploy-p4n7UbXW.d.ts}
RENAMED
|
File without changes
|
/package/dist/node_modules/@knime/kds-components/dist/{like-D2rnvJMO.d.ts → like-B94wIC3p.d.ts}
RENAMED
|
File without changes
|
/package/dist/node_modules/@knime/kds-components/dist/{lock-mlEwUUt1.d.ts → lock-C8DiogKI.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{selected-execute-Ril2FDJ6-B6KgRuhq.js → selected-execution-CkSAaZeA-B6KgRuhq.js}
RENAMED
|
File without changes
|