@knime/scripting-editor 0.0.149 → 0.0.150
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/{AnyOfTwinlist-DdcxtAjb-CaN_HwzO.js → AnyOfTwinlist-DdcxtAjb-QRuNcffK.js} +3 -3
- package/dist/{ArrayLayout-Cqct4YS3.js → ArrayLayout-CiNvK2R8.js} +204 -193
- package/dist/ButtonControl-XAPpl7GY.js +116 -0
- package/dist/{CheckboxControl-C99OdmDL-CDrrcyc8.js → CheckboxControl-C99OdmDL-Do7Fm1Hf.js} +12 -12
- package/dist/{CheckboxesControl-BZhMhT9x-DX6Wv2OC.js → CheckboxesControl-BZhMhT9x-Pc8YrIvQ.js} +3 -3
- package/dist/{CodeEditorControl-C0nEU4Bk.js → CodeEditorControl-BZlds1_z.js} +1 -1
- package/dist/{ColorControl-D1dNnNbO-ZnPFuKHS.js → ColorControl-D1dNnNbO-D2ewwNgx.js} +1 -1
- package/dist/{ColorPreviewControl-B4zix2kb-lDW3LcbF.js → ColorPreviewControl-B4zix2kb-C8iUsUfi.js} +10 -10
- package/dist/{ComboBoxControl-BGWAD9IW-CYGoHz_u.js → ComboBoxControl-BGWAD9IW-Dqnlk__Q.js} +2 -2
- package/dist/{ConfigurationNodeNotSupported-D-Rxn0Gi.js → ConfigurationNodeNotSupported-CGclvYAj.js} +6 -6
- package/dist/{ControlWithSubParameters-C3O8tagW.js → ControlWithSubParameters-D_0dvLqM.js} +10 -10
- package/dist/{CredentialsControl-DaEBQpvd.js → CredentialsControl-uYcyYidL.js} +2 -2
- package/dist/{CredentialsControlBase-BivCOrno.js → CredentialsControlBase-u4DXxRC0.js} +7 -7
- package/dist/{DateControl-D0HfVrtz-9eE4B_fe.js → DateControl-D0HfVrtz-Bt1CkhVc.js} +3 -3
- package/dist/{DateTimeControl-kTQZI9JC-DmnFBKmN.js → DateTimeControl-kTQZI9JC-DT157PDM.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BiYcsKSn-xVSLrwBl.js → DateTimeFormatPickerControl-BiYcsKSn-CMda9u5J.js} +5 -5
- package/dist/{DirtyTrackerRenderer-DMDmrGOs.js → DirtyTrackerRenderer-BePhAn76.js} +3 -3
- package/dist/{DropdownControl-jsayV3N5-8v3EQUz3.js → DropdownControl-jsayV3N5-Dsha5hge.js} +3 -3
- package/dist/{ExecutorCoresControl-DNo2SaC6-BoEm-W4r.js → ExecutorCoresControl-DNo2SaC6-BkcAA9UN.js} +2 -2
- package/dist/{ExecutorMemoryControl-C8RLYQdd-B8ZEGYAX.js → ExecutorMemoryControl-C8RLYQdd-Cedm5trN.js} +2 -2
- package/dist/{FileChooserControl-DNfgbEr3.js → FileChooserControl-Ct51fY7Z.js} +1 -1
- package/dist/{FileChooserControlBase-BozmAfJW.js → FileChooserControlBase-CGo0zU3e.js} +35 -35
- package/dist/{FileChooserControlForMultiFile-B21mwjMa.js → FileChooserControlForMultiFile-Dh_WXtgn.js} +1 -1
- package/dist/{FileUploadControl-D5QfM3Wa-DXqlNHXY.js → FileUploadControl-D5QfM3Wa-7kqQRO4-.js} +1 -1
- package/dist/FlowVariableButtonWrapper-mLnms8yQ.js +466 -0
- package/dist/FlowVariableSelector-C4IiVzue.js +162 -0
- package/dist/{GridSelectionControl-RKdnWWGk-CqxxipH6.js → GridSelectionControl-RKdnWWGk-naGGUZCh.js} +13 -13
- package/dist/{HorizontalLayout-B_lETfCu-CQVlABjY.js → HorizontalLayout-B_lETfCu-BZK7jH4z.js} +2 -2
- package/dist/{IntegerControl-Cr8SO0xH-DmFardsB.js → IntegerControl-Cr8SO0xH-lclR3djp.js} +2 -2
- package/dist/{IntervalControl-BdjKEwLy-CRGsrkTU.js → IntervalControl-BdjKEwLy-C_LCaU8r.js} +6 -6
- package/dist/{LabeledGroup-BSlRYaIO.js → LabeledGroup-C4WOU_qE.js} +1 -1
- package/dist/{LegacyCredentialsControl-DDppdKDf.js → LegacyCredentialsControl-CuFuBunJ.js} +11 -11
- package/dist/{LinkControl-QMwkCJlj-D7KOgNqO.js → LinkControl-QMwkCJlj-DZRZvKsJ.js} +8 -8
- package/dist/{LoadingDropdown-BpU4Uiin-DDrrGAtm.js → LoadingDropdown-BpU4Uiin-DpT8YNnA.js} +1 -1
- package/dist/{ManualTwinlistControl-5dfnmQZ--BLDAtepu.js → ManualTwinlistControl-5dfnmQZ--9BVHFNRR.js} +5 -5
- package/dist/{MultiFileChooserControl-yLU6lVm6.js → MultiFileChooserControl-Buzeme6N.js} +54 -54
- package/dist/{NameFilter-DzqgrcaF-BHDDEtD7.js → NameFilter-DzqgrcaF-Cl38kTPw.js} +2 -2
- package/dist/{NumberControl-ODy5GAlR-DqeFhQlG.js → NumberControl-ODy5GAlR-IQBNh99B.js} +2 -2
- package/dist/{NumberControlBase-Cl3QcvzB-CLt8mpCC.js → NumberControlBase-Cl3QcvzB-DLl4RMsa.js} +5 -5
- package/dist/{OneOfDropdown-CMPRAraI-D0fD0jJG.js → OneOfDropdown-CMPRAraI-DyOs4qXq.js} +2 -2
- package/dist/{ProgressButtonControl-hlI6JZ-z-iW0cQ79f.js → ProgressButtonControl-hlI6JZ-z-C3y7IOhk.js} +12 -12
- package/dist/{RadioButtonsWithDescriptionControl-DJu3ODo7-BVxmFTjy.js → RadioButtonsWithDescriptionControl-DJu3ODo7-BvOWhYc3.js} +9 -9
- package/dist/{RadioControl-D_NE5s4n-CBhjB07g.js → RadioControl-D_NE5s4n-DQ3orr8G.js} +2 -2
- package/dist/{RadioControlBase-knF86px0-M-iKdCgZ.js → RadioControlBase-knF86px0-CNYDwFjA.js} +3 -3
- package/dist/{ResourceControlBase-BVMVVYns-CCmfdMoZ.js → ResourceControlBase-BVMVVYns-DHo4NA_m.js} +17 -17
- package/dist/{RichTextControl-JIM904_P-Cz7wPLpv.js → RichTextControl-JIM904_P-CCTpWWMW.js} +2717 -2697
- package/dist/{SectionLayout-Ca6XH3w3-C31MJtZ9.js → SectionLayout-Ca6XH3w3-Civ901Ea.js} +3 -3
- package/dist/{SettingsSubPanelLayout-B7QJ7YhZ-BVhurigk.js → SettingsSubPanelLayout-B7QJ7YhZ-Dmgm0Ir9.js} +20 -20
- package/dist/{SimpleTwinlistControl-CQ4tSh0c-D-AFsdOr.js → SimpleTwinlistControl-CQ4tSh0c-Ce_hUVf7.js} +3 -3
- package/dist/{SingleSelectControl-CJV9VMZm-jwZqt2tP.js → SingleSelectControl-CJV9VMZm-Bk8t6TSw.js} +3 -3
- package/dist/{SortListControl-D-ifoRva-VjNJfqzM.js → SortListControl-D-ifoRva-CJZ3kNt9.js} +5 -5
- package/dist/{StringFileChooserControl-BWoTwYp2.js → StringFileChooserControl-HEpT7Ip7.js} +8 -8
- package/dist/{TeamAndSpacesControl-D1FvyeCV-QFi264Nj.js → TeamAndSpacesControl-D1FvyeCV-DnRJHhj4.js} +9 -9
- package/dist/{TeamResourceControl-DyCO6-Nk-DHNrRSMY.js → TeamResourceControl-DyCO6-Nk-BI-LwsIM.js} +2 -2
- package/dist/{TextAreaControl-7QziyTgn-BniXqehe.js → TextAreaControl-7QziyTgn-BtBO7YNu.js} +1 -1
- package/dist/{TimeControl-B29iTlhP-eYfkjPai.js → TimeControl-B29iTlhP-e7HifMYl.js} +3 -3
- package/dist/{TimeframesControl-Wvu--J0V-DhhqpxZS.js → TimeframesControl-Wvu--J0V-BuY4sciw.js} +9 -9
- package/dist/{TwinlistControlBase-CaRdq20R-BspKBwDU.js → TwinlistControlBase-CaRdq20R-Dc80qJgM.js} +3 -3
- package/dist/{TypedStringFilter-B3ZMqGIC-D3eyvWTQ.js → TypedStringFilter-B3ZMqGIC-ByKsSSQ4.js} +2 -2
- package/dist/{ValueSwitchControl-H2t2Wgo6-Dkr6ED74.js → ValueSwitchControl-H2t2Wgo6-CQw22eR0.js} +2 -2
- package/dist/{VennDiagramLayout-rZsnxKb8.js → VennDiagramLayout-BiBLF_be.js} +15 -15
- package/dist/{VerticalLayout-sPAmI_XK-BHSQFbh5.js → VerticalLayout-sPAmI_XK-BZz3aVLy.js} +2 -2
- package/dist/{ZonedDateTimeControl-Co3v2EVv-fcHef5TR.js → ZonedDateTimeControl-Co3v2EVv-mFgzT9ZR.js} +2 -2
- package/dist/{_plugin-vue_export-helper-B3ysoDQm-C4BqYrqY.js → _plugin-vue_export-helper-B3ysoDQm-jCLY2oWQ.js} +1 -1
- package/dist/elementCheckboxRenderer-BTDQ1ITf.js +117 -0
- package/dist/{fileChooserRenderer-CqIzTlME.js → fileChooserRenderer-C9ULvJjo.js} +3 -3
- package/dist/{inject-DEsHVs5q-zP4nUeAa.js → inject-DEsHVs5q-ChUMe45j.js} +1 -1
- package/dist/lib/main.d.ts +5 -3
- package/dist/main.js +764 -692
- package/dist/parameters.js +469 -647
- package/dist/{paths-DH9g52IX.js → paths-daLajhdU.js} +9 -6
- package/dist/{plainDateTimeUtils-5uOCJ4N5-DRHKOepZ.js → plainDateTimeUtils-5uOCJ4N5-3VUpuprJ.js} +2 -2
- package/dist/{rolldown-runtime-Dy4uBu1J-Cwht8A8-.js → rolldown-runtime-Dy4uBu1J-DiUrVT6I.js} +1 -1
- package/dist/settings-service-browser-mock.js +13 -5
- package/dist/src/components/MainEditorPane.vue.d.ts +74 -7
- package/dist/src/components/ScriptingEditor.vue.d.ts +0 -23
- package/dist/src/editor.d.ts +1 -1
- package/dist/src/settings-service-browser-mock.d.ts +3 -4
- package/dist/src/settings-service.d.ts +3 -35
- package/dist/src/store/settings.d.ts +52 -0
- package/dist/src-pw1LRAdm-uu-I1-YX.js +1246 -0
- package/dist/{temporal-polyfill-D4u1I_Z--enRiDjrC.js → temporal-polyfill-D4u1I_Z--B8F1flcx.js} +1 -1
- package/dist/{toKdsPossibleValues-BAEvyJCk-COlZpol8.js → toKdsPossibleValues-BAEvyJCk-Dww9tu-1.js} +1 -1
- package/dist/useArrayIds-CpJmT5_d.js +28 -0
- package/dist/{useBuiltinValidations-B_Drc2y--BIe8Vj_8.js → useBuiltinValidations-B_Drc2y--vtgmNI5H.js} +2 -2
- package/dist/{useDirtySettings-C_JB8Tb9.js → useDirtySettings-DVDbAZgX.js} +1 -1
- package/dist/{useFileChooserBrowseOptions-l1i9z66C.js → useFileChooserBrowseOptions-ClAKTcw1.js} +16 -16
- package/dist/{useFlowVariables-BFaB9PV-.js → useFlowVariables-BPi2ZpWk.js} +8 -8
- package/dist/{usePossibleValues-Cx6iSt_X-BlD7PZcJ.js → usePossibleValues-Cx6iSt_X-Ch5oJkDE.js} +2 -2
- package/dist/{useProvideForFlowVariables-AgNwtMFv.js → useProvideForFlowVariables-Ck3YUR2C.js} +2 -2
- package/dist/{useProvidedState-478_KXOe-KGpEF13j.js → useProvidedState-478_KXOe-Dpb35s5s.js} +2 -2
- package/dist/{useSideDrawerContent-Bl7nrXfr.js → useSideDrawerContent-BKwzHoq0.js} +2 -2
- package/dist/{useUnknownValuesInTwinlist-CHB8kt9t-Bak4ZAxt.js → useUnknownValuesInTwinlist-CHB8kt9t-C4bjDxVB.js} +30 -30
- package/dist/{useUpdates-Binc_B7h.js → useUpdates-Db1ELMwP.js} +60 -60
- package/dist/{utils-DmZLgn8X-D9PS3NK4.js → utils-DmZLgn8X-yDkNNqcu.js} +1 -1
- package/package.json +2 -2
- package/dist/ButtonControl-JfX5cPMH.js +0 -117
- package/dist/ai-bar-DEyz4yf0.js +0 -332
- package/dist/elementCheckboxRenderer-CfYz9-5L.js +0 -214
- package/dist/src-pw1LRAdm-BUOXZfmX.js +0 -1246
- package/dist/useArrayIds-CvcfiogC.js +0 -29
- package/dist/v4-Dd9glBki.js +0 -30
|
@@ -111,15 +111,18 @@ var e = (e, t) => e === "" ? t : `${e}.${t}`, t = (e, t) => t === null ? e : e.r
|
|
|
111
111
|
}));
|
|
112
112
|
return [...h, ...g];
|
|
113
113
|
}, p = ({ path: e, persistSchema: t }) => {
|
|
114
|
-
let { configPaths: n,
|
|
114
|
+
let { configPaths: n, deprecatedConfigPaths: r, schema: i, traversalIsAborted: a, lastIndexSegment: s } = d({
|
|
115
115
|
path: e,
|
|
116
116
|
persistSchema: t
|
|
117
117
|
});
|
|
118
|
-
return
|
|
119
|
-
title: t,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
return a || i.type !== "array" || !i.arrayFlowVariablesSchema?.length ? null : {
|
|
119
|
+
specs: i.arrayFlowVariablesSchema.map(({ configPath: e, title: t, required: r }) => ({
|
|
120
|
+
title: t,
|
|
121
|
+
required: !!r,
|
|
122
|
+
configPath: o([...n[0], ...e], s)
|
|
123
|
+
})),
|
|
124
|
+
deprecatedConfigPaths: r.map((e) => o(e, s))
|
|
125
|
+
};
|
|
123
126
|
}, m = (e) => {
|
|
124
127
|
if (!e.length) return "";
|
|
125
128
|
let t = e[0].split(".").slice(0, -1), n = "";
|
package/dist/{plainDateTimeUtils-5uOCJ4N5-DRHKOepZ.js → plainDateTimeUtils-5uOCJ4N5-3VUpuprJ.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./temporal-polyfill-D4u1I_Z--
|
|
2
|
-
//#region ../../node_modules/.pnpm/@knime+jsonforms@5.1.1_@knime+kds-components@11.0.0_@vueuse+core@14.4.0_vue@3.5.
|
|
1
|
+
import { t as e } from "./temporal-polyfill-D4u1I_Z--B8F1flcx.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@knime+jsonforms@5.1.1_@knime+kds-components@11.0.0_@vueuse+core@14.4.0_vue@3.5.18_type_8d51cc9ea2721872177fa4b0010b5104/node_modules/@knime/jsonforms/dist/plainDateTimeUtils-5uOCJ4N5.js
|
|
3
3
|
var t = {
|
|
4
4
|
fromString: (t) => {
|
|
5
5
|
if (t == null || t === "") return {
|
package/dist/{rolldown-runtime-Dy4uBu1J-Cwht8A8-.js → rolldown-runtime-Dy4uBu1J-DiUrVT6I.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@knime+jsonforms@5.1.1_@knime+kds-components@11.0.0_@vueuse+core@14.4.0_vue@3.5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@knime+jsonforms@5.1.1_@knime+kds-components@11.0.0_@vueuse+core@14.4.0_vue@3.5.18_type_8d51cc9ea2721872177fa4b0010b5104/node_modules/@knime/jsonforms/dist/rolldown-runtime-Dy4uBu1J.js
|
|
2
2
|
var e = Object.defineProperty, t = (t, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in t) e(r, i, {
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./log-C6ccxMDD.js";
|
|
2
2
|
//#region src/settings-service-browser-mock.ts
|
|
3
3
|
var t = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
data: { model: { script: "hello world (from browser mock)" } },
|
|
5
|
+
schema: {},
|
|
6
|
+
ui_schema: {},
|
|
7
|
+
persist: {
|
|
8
|
+
type: "object",
|
|
9
|
+
properties: { model: {
|
|
10
|
+
type: "object",
|
|
11
|
+
properties: { script: {} }
|
|
12
|
+
} }
|
|
13
|
+
},
|
|
14
|
+
flowVariableSettings: {}
|
|
6
15
|
}, n = (t) => ({
|
|
7
16
|
set: () => {
|
|
8
17
|
e(`Called settings service mock registerSettings callback setValue ${t}`);
|
|
@@ -16,8 +25,7 @@ var t = {
|
|
|
16
25
|
},
|
|
17
26
|
addExposedFlowVariable: () => (e("Called settings service mock registerSettings callback addExposedFlowVariable"), n("addExposedFlowVariable")),
|
|
18
27
|
addControllingFlowVariable: () => (e("Called settings service mock registerSettings callback addControllingFlowVariable"), n("addControllingFlowVariable"))
|
|
19
|
-
})), i = ({
|
|
20
|
-
getSettings: () => (e("Called settings service mock getSettings"), t),
|
|
28
|
+
})), i = ({ settingsInitialData: n = t } = {}) => ({
|
|
21
29
|
getSettingsInitialData: () => (e("Called settings service mock getSettingsInitialData"), n),
|
|
22
30
|
registerSettingsGetterForApply: () => {
|
|
23
31
|
e("Called settings service mock registerSettingsGetterForApply");
|
|
@@ -25,4 +33,4 @@ var t = {
|
|
|
25
33
|
registerSettings: r
|
|
26
34
|
});
|
|
27
35
|
//#endregion
|
|
28
|
-
export { t as
|
|
36
|
+
export { t as DEFAULT_SETTINGS_INITIAL_DATA, i as createSettingsServiceMock, r as registerSettingsMock };
|
|
@@ -7,18 +7,85 @@ interface Props {
|
|
|
7
7
|
*/
|
|
8
8
|
languageLabel?: string;
|
|
9
9
|
fileName: string;
|
|
10
|
-
toSettings?: (settings: {
|
|
11
|
-
script: string;
|
|
12
|
-
}) => unknown;
|
|
13
10
|
dropEventHandler?: (event: DragEvent) => void;
|
|
14
11
|
}
|
|
15
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
13
|
languageLabel: string;
|
|
17
|
-
toSettings: (settings: {
|
|
18
|
-
script: string;
|
|
19
|
-
}) => unknown;
|
|
20
14
|
dropEventHandler: (event: DragEvent) => void;
|
|
21
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
-
|
|
16
|
+
codeEditor: ({
|
|
17
|
+
$: import('vue').ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: {
|
|
20
|
+
readonly language?: string | undefined;
|
|
21
|
+
readonly languageLabel?: string | undefined;
|
|
22
|
+
readonly hideHeader?: boolean | undefined;
|
|
23
|
+
readonly state?: import('@knime/kds-code-editor').KdsCodeEditorState | undefined;
|
|
24
|
+
readonly overviewRuler?: boolean | undefined;
|
|
25
|
+
readonly readOnly?: boolean | undefined;
|
|
26
|
+
readonly highlighted?: boolean | undefined;
|
|
27
|
+
readonly subText?: string | undefined;
|
|
28
|
+
readonly preserveSubTextSpace?: boolean | undefined;
|
|
29
|
+
readonly copyable?: boolean | undefined;
|
|
30
|
+
readonly editorActions?: import('@knime/kds-code-editor').KdsCodeEditorAction[] | undefined;
|
|
31
|
+
readonly minRows?: number | undefined;
|
|
32
|
+
readonly maxRows?: number | undefined;
|
|
33
|
+
readonly modelValue?: string | undefined;
|
|
34
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
35
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
36
|
+
$attrs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
$refs: {
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
$slots: Readonly<{
|
|
43
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
46
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
47
|
+
$host: Element | null;
|
|
48
|
+
$emit: (event: "update:modelValue", value: string) => void;
|
|
49
|
+
$el: any;
|
|
50
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('@knime/kds-code-editor').KdsCodeEditorProps & {
|
|
51
|
+
modelValue?: string;
|
|
52
|
+
}> & Readonly<{
|
|
53
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | undefined;
|
|
56
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (value: string) => any;
|
|
58
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
59
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
60
|
+
created?: (() => void) | (() => void)[];
|
|
61
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
62
|
+
mounted?: (() => void) | (() => void)[];
|
|
63
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
64
|
+
updated?: (() => void) | (() => void)[];
|
|
65
|
+
activated?: (() => void) | (() => void)[];
|
|
66
|
+
deactivated?: (() => void) | (() => void)[];
|
|
67
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
68
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
69
|
+
destroyed?: (() => void) | (() => void)[];
|
|
70
|
+
unmounted?: (() => void) | (() => void)[];
|
|
71
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
72
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
73
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
74
|
+
};
|
|
75
|
+
$forceUpdate: () => void;
|
|
76
|
+
$nextTick: typeof import('vue').nextTick;
|
|
77
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
78
|
+
} & Readonly<{}> & Omit<Readonly<import('@knime/kds-code-editor').KdsCodeEditorProps & {
|
|
79
|
+
modelValue?: string;
|
|
80
|
+
}> & Readonly<{
|
|
81
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
82
|
+
}>, "getEditor"> & import('vue').ShallowUnwrapRef<{
|
|
83
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | undefined;
|
|
84
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
85
|
+
$slots: {
|
|
86
|
+
footer?(): unknown;
|
|
87
|
+
labelActions?(): unknown;
|
|
88
|
+
};
|
|
89
|
+
}) | null;
|
|
23
90
|
}, HTMLDivElement>;
|
|
24
91
|
export default _default;
|
|
@@ -20,26 +20,6 @@ interface Props {
|
|
|
20
20
|
* component's default maximum sizes.
|
|
21
21
|
*/
|
|
22
22
|
maxPaneSizes?: Partial<PaneSizes>;
|
|
23
|
-
/**
|
|
24
|
-
* Called on apply if the main editor is being used. This function must be implemented
|
|
25
|
-
* to join the settings from the main editor and other settings like from the
|
|
26
|
-
* NodeParametersPanel into a single settings object as expected by the backend.
|
|
27
|
-
*
|
|
28
|
-
* A simple implementation for the `DefaultScriptingNodeSettingsService` looks like this:
|
|
29
|
-
* ```ts
|
|
30
|
-
* const toSettings = (commonSettings) =>
|
|
31
|
-
* joinSettings(
|
|
32
|
-
* commonSettings,
|
|
33
|
-
* nodeParametersPanel.value?.getDataAndFlowVariableSettings(),
|
|
34
|
-
* );
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param settings the current settings from the main editor
|
|
38
|
-
* @returns the joined settings as expected by the backend
|
|
39
|
-
*/
|
|
40
|
-
toSettings?: (settings: {
|
|
41
|
-
script: string;
|
|
42
|
-
}) => unknown;
|
|
43
23
|
additionalBottomPaneTabContent?: SlottedTab[];
|
|
44
24
|
}
|
|
45
25
|
declare function __VLS_template(): {
|
|
@@ -150,9 +130,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
150
130
|
languageLabel: string;
|
|
151
131
|
showControlBar: boolean;
|
|
152
132
|
fileName: string | null;
|
|
153
|
-
toSettings: (settings: {
|
|
154
|
-
script: string;
|
|
155
|
-
}) => unknown;
|
|
156
133
|
initialPaneSizes: PaneSizes;
|
|
157
134
|
maxPaneSizes: Partial<PaneSizes>;
|
|
158
135
|
additionalBottomPaneTabContent: SlottedTab[];
|
package/dist/src/editor.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export declare const useCodeEditor: (params: UseCodeEditorParams) => UseCodeEdit
|
|
|
150
150
|
export declare const useKdsCodeEditor: (component: Readonly<Ref<KdsCodeEditorComponent | null | undefined>>, params: UseKdsCodeEditorParams) => UseKdsCodeEditorReturn;
|
|
151
151
|
export declare const useDiffEditor: (params: UseDiffEditorParams) => UseDiffEditorReturn;
|
|
152
152
|
export declare const useMainCodeEditorStore: () => import('vue').ShallowRef<UseCodeEditorReturn | undefined, UseCodeEditorReturn | undefined>;
|
|
153
|
-
export declare const useMainCodeEditor: (params:
|
|
153
|
+
export declare const useMainCodeEditor: (component: Readonly<Ref<KdsCodeEditorComponent | null | undefined>>, params: UseKdsCodeEditorParams) => UseKdsCodeEditorReturn;
|
|
154
154
|
declare const _default: {
|
|
155
155
|
useCodeEditor: (params: UseCodeEditorParams) => UseCodeEditorReturn;
|
|
156
156
|
useDiffEditor: (params: UseDiffEditorParams) => UseDiffEditorReturn;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SettingState } from '@knime/ui-extension-service';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
2
|
+
import { SettingsInitialData, SettingsServiceType } from './settings-service';
|
|
3
|
+
export declare const DEFAULT_SETTINGS_INITIAL_DATA: SettingsInitialData;
|
|
4
4
|
export declare const registerSettingsMock: () => () => SettingState<unknown>;
|
|
5
|
-
export declare const createSettingsServiceMock: ({
|
|
6
|
-
settings?: GenericNodeSettings;
|
|
5
|
+
export declare const createSettingsServiceMock: ({ settingsInitialData, }?: {
|
|
7
6
|
settingsInitialData?: SettingsInitialData;
|
|
8
7
|
}) => SettingsServiceType;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { FlowSettings } from '@knime/core-ui/src/nodeDialog/api/types';
|
|
2
2
|
import { NodeDialogCoreInitialData } from '@knime/core-ui/src/nodeDialog/types/InitialData';
|
|
3
|
-
import { SettingsData } from '@knime/core-ui/src/nodeDialog/types/SettingsData';
|
|
4
3
|
import { DialogService, JsonDataService } from '@knime/ui-extension-service';
|
|
5
4
|
import { PublicAPI } from './types/public-api';
|
|
6
|
-
export type GenericNodeSettings = {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
settingsAreOverriddenByFlowVariable?: boolean;
|
|
9
|
-
};
|
|
10
5
|
export type SettingsInitialData = NodeDialogCoreInitialData & {
|
|
11
6
|
flowVariableSettings: Record<string, FlowSettings>;
|
|
12
7
|
};
|
|
13
8
|
export declare class SettingsService {
|
|
14
|
-
private readonly initialSettings;
|
|
15
9
|
private readonly settingsInitialData;
|
|
16
10
|
private readonly dialogService;
|
|
17
11
|
private readonly jsonDataService;
|
|
@@ -24,14 +18,12 @@ export declare class SettingsService {
|
|
|
24
18
|
* designated initialization method.
|
|
25
19
|
*
|
|
26
20
|
* @internal
|
|
27
|
-
* @param
|
|
28
|
-
* @param settingsInitialData Initial settings data from `ScriptingDefaultNodeSettingsService`, or undefined if `initialSettings` is provided
|
|
21
|
+
* @param settingsInitialData Initial settings data from `DefaultScriptingNodeSettingsService`
|
|
29
22
|
* @param dialogService The service for dialog operations
|
|
30
23
|
* @param jsonDataService The service for JSON data operations
|
|
31
24
|
*/
|
|
32
|
-
constructor(
|
|
33
|
-
|
|
34
|
-
getSettingsInitialData(): SettingsInitialData | undefined;
|
|
25
|
+
constructor(settingsInitialData: SettingsInitialData, dialogService: DialogService, jsonDataService: JsonDataService);
|
|
26
|
+
getSettingsInitialData(): SettingsInitialData;
|
|
35
27
|
registerSettingsGetterForApply(settingsGetter: () => unknown): void;
|
|
36
28
|
registerSettings(modelOrView: "model" | "view"): <T>(value: {
|
|
37
29
|
initialValue: T;
|
|
@@ -40,27 +32,3 @@ export declare class SettingsService {
|
|
|
40
32
|
}
|
|
41
33
|
/** Type representing the public API of SettingsService */
|
|
42
34
|
export type SettingsServiceType = PublicAPI<SettingsService>;
|
|
43
|
-
/**
|
|
44
|
-
* Joins the script settings from the main scripting editor with the settings
|
|
45
|
-
* from the NodeParametersPanel into a single settings object.
|
|
46
|
-
*
|
|
47
|
-
* @param scriptSettings the script settings object containing the main script text
|
|
48
|
-
* @param nodeParametersPanelSettings the settings from the NodeParametersPanel
|
|
49
|
-
* @returns the combined settings object as expected by the
|
|
50
|
-
* `DefaultScriptingNodeSettingsService` backend
|
|
51
|
-
*/
|
|
52
|
-
export declare const joinSettings: (scriptSettings: {
|
|
53
|
-
script: string;
|
|
54
|
-
}, nodeParametersPanelSettings?: undefined | {
|
|
55
|
-
data: SettingsData;
|
|
56
|
-
flowVariableSettings: Record<string, FlowSettings>;
|
|
57
|
-
}) => {
|
|
58
|
-
data: SettingsData;
|
|
59
|
-
flowVariableSettings: Record<string, FlowSettings>;
|
|
60
|
-
} | {
|
|
61
|
-
data: {
|
|
62
|
-
[x: string]: {
|
|
63
|
-
[x: string]: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FlowSettings } from '@knime/core-ui/src/nodeDialog/api/types';
|
|
2
|
+
import { SettingsData } from '@knime/core-ui/src/nodeDialog/types/SettingsData';
|
|
3
|
+
/**
|
|
4
|
+
* The flow variables map of the current dialog, keyed by persist path. Seeded
|
|
5
|
+
* from the `SettingsInitialData` of the settings service on first use and part
|
|
6
|
+
* of the settings sent on apply.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useFlowVariablesMapStore: () => Record<string, FlowSettings>;
|
|
9
|
+
/**
|
|
10
|
+
* Discards the flow variables map so that the next use seeds it again. Only
|
|
11
|
+
* meant for tests, a dialog never gets new initial data.
|
|
12
|
+
*/
|
|
13
|
+
export declare const resetFlowVariablesMapStore: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Lets a dialog provide its live data, e.g. from a NodeParametersPanel or its
|
|
16
|
+
* own app state; without it the initial data is used. Values registered via
|
|
17
|
+
* `registerSettingsValue` are put on top of it.
|
|
18
|
+
*/
|
|
19
|
+
export declare const setCurrentSettingsDataProvider: (provider: (() => SettingsData) | null) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Registers the live value of the setting at the given data path, e.g. the
|
|
22
|
+
* text of an editor. It overrides the value from the current settings data
|
|
23
|
+
* provider. A getter returning `undefined` leaves the value as it is.
|
|
24
|
+
*
|
|
25
|
+
* @param dataPath the data path of the setting, e.g. `model.script`
|
|
26
|
+
* @param getValue returns the current value of the setting
|
|
27
|
+
* @returns a function that removes the registration again
|
|
28
|
+
*/
|
|
29
|
+
export declare const registerSettingsValue: (dataPath: string, getValue: () => unknown) => () => void;
|
|
30
|
+
/**
|
|
31
|
+
* The current settings data: the data of the current settings data provider
|
|
32
|
+
* (or the initial data) with the registered settings values on top. The
|
|
33
|
+
* given data is not modified.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getCurrentSettingsData: () => SettingsData;
|
|
36
|
+
/**
|
|
37
|
+
* The current settings as expected by the `DefaultScriptingNodeSettingsService`
|
|
38
|
+
* backend: the current settings data and a copy of the flow variables map.
|
|
39
|
+
* Sent on apply.
|
|
40
|
+
*/
|
|
41
|
+
export declare const getCurrentSettings: () => {
|
|
42
|
+
data: SettingsData;
|
|
43
|
+
flowVariableSettings: {
|
|
44
|
+
[x: string]: FlowSettings;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Provides the flow variable system (map and RPC methods) to all descendants
|
|
49
|
+
* of the calling component and sends the current settings on apply. Call once
|
|
50
|
+
* in the setup of the scripting editor.
|
|
51
|
+
*/
|
|
52
|
+
export declare const provideSettings: () => void;
|