@knime/jsonforms 1.9.1 → 1.9.3
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/CHANGELOG.md +12 -0
- package/dist/{AnyOfTwinlist-Bh4pM6oH.js → AnyOfTwinlist-Bno_Zsze.js} +1 -1
- package/dist/{Button-Cxza7ya0.js → Button-aTtpMrSv.js} +4 -5
- package/dist/{Checkbox-C1dZL2je.js → Checkbox-UPkmNdnj.js} +1 -1
- package/dist/{CheckboxControl-C-Vqb4rS.js → CheckboxControl-BjQtt7Kb.js} +2 -2
- package/dist/{Checkboxes-BM6dczYg.js → Checkboxes-CoYDUGFC.js} +2 -2
- package/dist/{CheckboxesControl-DLJyPTax.js → CheckboxesControl-ZS-Ktmhj.js} +2 -2
- package/dist/{ComboBoxControl-CPgWFQ3E.js → ComboBoxControl-B5dr_jyI.js} +20 -21
- package/dist/{DateControl-B5aNfmDS.js → DateControl-BashGFS3.js} +1 -1
- package/dist/{DateTimeControl-DnAq_y1G.js → DateTimeControl-DDI4FI_3.js} +2 -2
- package/dist/{DateTimeFormatInput-D0gFWkDj.js → DateTimeFormatInput-CxJptumG.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BAm-YwQR.js → DateTimeFormatPickerControl-CzzZbiPc.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-kLWtEkzC.js → DateTimeFormatPickerWithTypeControl-58Rwf49f.js} +3 -3
- package/dist/{DateTimeInput-CCOVOyZg.js → DateTimeInput-RgGJ9PqO.js} +4 -5
- package/dist/{Dropdown-DEJ37CWM.js → Dropdown-CxkimEXT.js} +27 -28
- package/dist/{DropdownControl-DjGi-91y.js → DropdownControl-Dj0WeArl.js} +4 -4
- package/dist/{HorizontalLayout-5K8cdlC-.js → HorizontalLayout--pJ_xwTq.js} +1 -1
- package/dist/{InputField-DKqvsYvw.js → InputField-CTniEySK.js} +1 -1
- package/dist/{IntegerControl-Di2Z_1kO.js → IntegerControl-D-BuNbr6.js} +1 -1
- package/dist/{IntervalControl-z_8kuaUH.js → IntervalControl-BI_hr3VH.js} +16 -17
- package/dist/{LoadingDropdown-CcRFsTOf.js → LoadingDropdown-CmfR0AIL.js} +3 -3
- package/dist/{MultimodeTwinlistControl-CrgZoWIM.js → MultimodeTwinlistControl-CF0KeII6.js} +5 -5
- package/dist/{MultiselectListBox-D1SKEhxF.js → MultiselectListBox-C5Rkdy_s.js} +1 -1
- package/dist/{NameFilter-DytpZDut.js → NameFilter-COgzNTb5.js} +1 -1
- package/dist/{NumberControl-DuimTvN7.js → NumberControl-vpxmEuqJ.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-D6vn-6dz.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CRHY-CAe.js} +2 -2
- package/dist/{NumberInput-Dbs_HhID.js → NumberInput-CKC-BV3f.js} +1 -1
- package/dist/{OneOfDropdown-DLuPD4vb.js → OneOfDropdown-viqm26x3.js} +1 -1
- package/dist/{RadioControl-CRSO18ib.js → RadioControl-ijhKRkTb.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-C-Xu_lRP.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BdCi_2zA.js} +2 -2
- package/dist/{RichTextControl-Det6MXge.js → RichTextControl-D1ABE38P.js} +6 -7
- package/dist/{SectionHeading-DogS80o6.js → SectionHeading-ZT7XeoF8.js} +1 -1
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dhm8vqgx.js +13635 -0
- package/dist/{SectionLayout-YXciALxD.js → SectionLayout-y_NzSLbA.js} +3 -3
- package/dist/SettingsSubPanel-AiCHC48O.js +5 -0
- package/dist/{SettingsSubPanelLayout-C1vAi50O.js → SettingsSubPanelLayout-WUuGaXGO.js} +20 -21
- package/dist/{SimpleButtonControl-C5Bu2UlU.js → SimpleButtonControl-DvLqHeVO.js} +8 -8
- package/dist/{SimpleTwinlistControl-Cwzofngw.js → SimpleTwinlistControl-DXNHUJCa.js} +2 -2
- package/dist/{SingleSelectControl-NTvlFtDt.js → SingleSelectControl-CEyyZ7Kc.js} +2 -2
- package/dist/{SortListControl-DHW2NYFQ.js → SortListControl-BqG6Z4Bw.js} +5 -6
- package/dist/{TextAreaControl-DDyE4C3O.js → TextAreaControl-DKdJlQhI.js} +1 -1
- package/dist/{TextControl-C_b68-fk.js → TextControl-BY3BQYs4.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-U86A8vv3.js → TextControl.vue_vue_type_script_setup_true_lang-DpgjORyQ.js} +4 -4
- package/dist/{TimeControl-BKDuYAqj.js → TimeControl-DcBc1RbW.js} +2 -2
- package/dist/{TwinlistControlBase-CaCznnlh.js → TwinlistControlBase-B3TpCINH.js} +3 -3
- package/dist/{TwinlistLoadingInfo-B1VpQXg5.js → TwinlistLoadingInfo-D8rqzbMc.js} +13 -14
- package/dist/{TypedStringFilter-D5hpRznk.js → TypedStringFilter-BOFOAKkO.js} +1 -1
- package/dist/{ValueSwitch-DLjmKUJK.js → ValueSwitch-VbFoC4Pq.js} +1 -1
- package/dist/{ValueSwitchControl-D71Pwa50.js → ValueSwitchControl-7mB1E9vK.js} +1 -1
- package/dist/{VerticalLayout-CHgqTKir.js → VerticalLayout-B-8z4Sbp.js} +2 -2
- package/dist/{VerticalLayoutBase-DMue85aT.js → VerticalLayoutBase-B3t0dePr.js} +1 -1
- package/dist/{ZonedDateTimeControl-CouOa7ed.js → ZonedDateTimeControl-B0WFmRCJ.js} +4 -4
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +61 -58
- package/dist/{localTimeUtils-Bpwc2y6B.js → localTimeUtils-DL7n5_3m.js} +1 -1
- package/dist/{magic-string.es-CukxJUVp.js → magic-string.es-XCVtxFA5.js} +1 -1
- package/dist/src/JsonFormsDialog.vue.d.ts +3 -4
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +6 -0
- package/dist/src/renderers/defaultRenderers.d.ts +74 -74
- package/dist/src/renderers/sortListRenderer.d.ts +74 -74
- package/dist/{svgWithTitle-FlxoO5N3.js → svgWithTitle-DDitbp5R.js} +1 -1
- package/dist/testUtils/component.d.ts +20 -7
- package/dist/testing.js +1503 -1501
- package/dist/{useBuiltinValidations-CrQ0McL_.js → useBuiltinValidations-BFizZjY8.js} +1 -1
- package/dist/{usePossibleValues-BJDCD98T.js → usePossibleValues-CQ8_InqW.js} +1 -1
- package/package.json +2 -2
- package/dist/BaseButton-B-d7gAOs.js +0 -112
- package/dist/FunctionButton-D0hM3gS_.js +0 -75
- package/dist/SettingsSubPanel-CKzw390P.js +0 -143
- package/dist/SettingsSubPanel.vue_vue_type_style_index_1_lang-D3eEeut_.js +0 -13322
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as r } from "vue";
|
|
2
|
-
import { u as d } from "./
|
|
2
|
+
import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dhm8vqgx.js";
|
|
3
3
|
const l = (e = {}) => e.validations ?? [], c = (e = {}) => (e.validationProviders ?? []).map(
|
|
4
4
|
(i) => d(i, null)
|
|
5
5
|
), s = (e, i) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as a } from "vue";
|
|
2
|
-
import { u as c } from "./
|
|
2
|
+
import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dhm8vqgx.js";
|
|
3
3
|
const t = (s) => {
|
|
4
4
|
var e;
|
|
5
5
|
const u = a(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"homepage": "https://knime.github.io/webapps-common/",
|
|
6
6
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"focus-trap-vue": "4.0.3",
|
|
16
16
|
"tabbable": "6.2.0",
|
|
17
17
|
"uuid": "10.0.0",
|
|
18
|
-
"@knime/components": "1.26.0",
|
|
19
18
|
"@knime/rich-text-editor": "1.4.8",
|
|
19
|
+
"@knime/components": "1.26.0",
|
|
20
20
|
"@knime/styles": "1.4.0",
|
|
21
21
|
"@knime/utils": "1.4.0"
|
|
22
22
|
},
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, useSlots as l, h as a, getCurrentInstance as c, openBlock as f, createBlock as p, resolveDynamicComponent as m, mergeProps as d, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
-
import { _ as k } from "./SettingsSubPanel.vue_vue_type_style_index_1_lang-D3eEeut_.js";
|
|
3
|
-
const u = () => {
|
|
4
|
-
const t = c();
|
|
5
|
-
return t == null ? void 0 : t.appContext.app;
|
|
6
|
-
}, $ = () => {
|
|
7
|
-
const t = u(), e = t == null ? void 0 : t.component("ClientOnly");
|
|
8
|
-
return e || i({
|
|
9
|
-
render() {
|
|
10
|
-
var r, n;
|
|
11
|
-
return (n = (r = l()).default) == null ? void 0 : n.call(r);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}, b = () => {
|
|
15
|
-
const t = u(), e = t == null ? void 0 : t.component("NuxtLink");
|
|
16
|
-
if (e)
|
|
17
|
-
return e;
|
|
18
|
-
const o = t == null ? void 0 : t.component("RouterLink");
|
|
19
|
-
return o || i({
|
|
20
|
-
props: {
|
|
21
|
-
to: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
render() {
|
|
27
|
-
var n, s;
|
|
28
|
-
return a("a", { href: this.to }, [(s = (n = l()).default) == null ? void 0 : s.call(n)]);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}, y = i({
|
|
32
|
-
name: "BaseButton",
|
|
33
|
-
props: {
|
|
34
|
-
/**
|
|
35
|
-
* If set, the button renders an <a> element instead of a <button> element
|
|
36
|
-
* Has no effect when used together with `to`.
|
|
37
|
-
*/
|
|
38
|
-
href: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* If set, the button renders a <nuxt-link> instead of a <button> element.
|
|
44
|
-
* Supersedes the `href` property.
|
|
45
|
-
*/
|
|
46
|
-
to: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* toggle to prevent default click handler
|
|
52
|
-
*/
|
|
53
|
-
preventDefault: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !1
|
|
56
|
-
},
|
|
57
|
-
disabled: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !1
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
emits: ["click"],
|
|
63
|
-
computed: {
|
|
64
|
-
// TODO: Can be made into a composition function
|
|
65
|
-
component() {
|
|
66
|
-
return this.to ? b() : this.href ? "a" : "button";
|
|
67
|
-
},
|
|
68
|
-
dynamicProps() {
|
|
69
|
-
return this.to ? {
|
|
70
|
-
to: this.to,
|
|
71
|
-
event: this.preventDefault ? [] : "click"
|
|
72
|
-
} : this.href ? {
|
|
73
|
-
href: this.href
|
|
74
|
-
} : {};
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
methods: {
|
|
78
|
-
onClick(t) {
|
|
79
|
-
this.$emit("click", t), this.preventDefault && t.preventDefault();
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* This can be called from outside via focus on a $ref
|
|
83
|
-
*/
|
|
84
|
-
focus() {
|
|
85
|
-
var t;
|
|
86
|
-
(t = this.getComponent()) == null || t.focus();
|
|
87
|
-
},
|
|
88
|
-
/**
|
|
89
|
-
* This can be called from outside via getComponent on a $ref
|
|
90
|
-
*/
|
|
91
|
-
getComponent() {
|
|
92
|
-
return this.$refs.button;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
function B(t, e, o, r, n, s) {
|
|
97
|
-
return f(), p(m(t.component), d(t.dynamicProps, {
|
|
98
|
-
ref: "button",
|
|
99
|
-
disabled: t.disabled ? "disabled" : null,
|
|
100
|
-
onClick: t.onClick
|
|
101
|
-
}), {
|
|
102
|
-
default: h(() => [
|
|
103
|
-
C(t.$slots, "default")
|
|
104
|
-
]),
|
|
105
|
-
_: 3
|
|
106
|
-
}, 16, ["disabled", "onClick"]);
|
|
107
|
-
}
|
|
108
|
-
const D = /* @__PURE__ */ k(y, [["render", B]]);
|
|
109
|
-
export {
|
|
110
|
-
D as B,
|
|
111
|
-
$ as r
|
|
112
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { B as s } from "./BaseButton-B-d7gAOs.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as l, createBlock as r, normalizeClass as i, withCtx as d, renderSlot as c } from "vue";
|
|
3
|
-
import { _ as u } from "./SettingsSubPanel.vue_vue_type_style_index_1_lang-D3eEeut_.js";
|
|
4
|
-
const f = {
|
|
5
|
-
name: "FunctionButton",
|
|
6
|
-
components: {
|
|
7
|
-
BaseButton: s
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
/**
|
|
11
|
-
* @see {@link BaseButton.vue}
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Switches the active style of the component
|
|
15
|
-
*/
|
|
16
|
-
active: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* switches colors
|
|
22
|
-
*/
|
|
23
|
-
primary: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
},
|
|
27
|
-
disabled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
compact: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
computed: {
|
|
37
|
-
single() {
|
|
38
|
-
return this.$slots.default().length !== 1 ? !1 : this.hasSingleChildren(this.$slots.default()[0]);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
/**
|
|
43
|
-
* This can be called from outside via focus on a $ref
|
|
44
|
-
*/
|
|
45
|
-
focus() {
|
|
46
|
-
this.$refs.baseButton.focus();
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* This can be called from outside via getComponent on a $ref
|
|
50
|
-
*/
|
|
51
|
-
getComponent() {
|
|
52
|
-
return this.$refs.baseButton.getComponent();
|
|
53
|
-
},
|
|
54
|
-
hasSingleChildren(e) {
|
|
55
|
-
return e.children ? e.children.length === 1 ? this.hasSingleChildren(e.children[0]) : !1 : !0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
function h(e, m, t, p, B, n) {
|
|
60
|
-
const a = o("BaseButton");
|
|
61
|
-
return l(), r(a, {
|
|
62
|
-
ref: "baseButton",
|
|
63
|
-
disabled: t.disabled,
|
|
64
|
-
class: i(["function-button", { single: n.single, active: t.active, primary: t.primary, disabled: t.disabled, compact: t.compact }])
|
|
65
|
-
}, {
|
|
66
|
-
default: d(() => [
|
|
67
|
-
c(e.$slots, "default", {}, void 0, !0)
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["disabled", "class"]);
|
|
71
|
-
}
|
|
72
|
-
const C = /* @__PURE__ */ u(f, [["render", h], ["__scopeId", "data-v-6b371a7e"]]);
|
|
73
|
-
export {
|
|
74
|
-
C as F
|
|
75
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as c, createElementVNode as n, renderSlot as r, defineComponent as h, createBlock as f, Transition as B, withCtx as u, normalizeStyle as y, createCommentVNode as b, createVNode as p, unref as m, pushScopeId as E, popScopeId as C, ref as P, inject as w, watch as I, computed as k, Fragment as O, Teleport as A } from "vue";
|
|
2
|
-
import { _ } from "./SettingsSubPanel.vue_vue_type_style_index_1_lang-D3eEeut_.js";
|
|
3
|
-
import { F } from "./FunctionButton-D0hM3gS_.js";
|
|
4
|
-
const D = {}, T = { class: "flex-wrapper" }, L = { class: "form" };
|
|
5
|
-
function N(e, t) {
|
|
6
|
-
return o(), c("div", T, [
|
|
7
|
-
n("div", L, [
|
|
8
|
-
r(e.$slots, "default", {}, void 0, !0)
|
|
9
|
-
]),
|
|
10
|
-
r(e.$slots, "bottom-content", {}, void 0, !0)
|
|
11
|
-
]);
|
|
12
|
-
}
|
|
13
|
-
const V = /* @__PURE__ */ _(D, [["render", N], ["__scopeId", "data-v-c672b17b"]]), W = { class: "content" }, j = {}, l = {
|
|
14
|
-
position: "fixed",
|
|
15
|
-
width: "500px",
|
|
16
|
-
backgroundColor: "var(--knime-porcelain)"
|
|
17
|
-
}, z = /* @__PURE__ */ h({
|
|
18
|
-
...j,
|
|
19
|
-
__name: "SideDrawer",
|
|
20
|
-
props: {
|
|
21
|
-
isExpanded: { type: Boolean, default: !1 },
|
|
22
|
-
styleOverrides: { default: () => ({
|
|
23
|
-
...l
|
|
24
|
-
}) }
|
|
25
|
-
},
|
|
26
|
-
setup(e) {
|
|
27
|
-
return (t, s) => (o(), f(B, { name: "slide" }, {
|
|
28
|
-
default: u(() => [
|
|
29
|
-
t.isExpanded ? (o(), c("div", {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "side-drawer",
|
|
32
|
-
style: y({
|
|
33
|
-
"--position-common-side-drawer": t.styleOverrides.position ?? l.position,
|
|
34
|
-
"--width-common-side-drawer": t.styleOverrides.width ?? l.width,
|
|
35
|
-
"--background-color-common-side-drawer": t.styleOverrides.backgroundColor ?? l.backgroundColor
|
|
36
|
-
})
|
|
37
|
-
}, [
|
|
38
|
-
n("div", W, [
|
|
39
|
-
r(t.$slots, "default", {}, void 0, !0)
|
|
40
|
-
])
|
|
41
|
-
], 4)) : b("", !0)
|
|
42
|
-
]),
|
|
43
|
-
_: 3
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
}), U = /* @__PURE__ */ _(z, [["__scopeId", "data-v-0e34c675"]]), Y = {
|
|
47
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
48
|
-
fill: "none",
|
|
49
|
-
stroke: "#000",
|
|
50
|
-
"stroke-linejoin": "round",
|
|
51
|
-
viewBox: "0 0 32 32"
|
|
52
|
-
}, q = /* @__PURE__ */ n("path", { d: "m14.9 27-11-11 11-11m-11 11h24.2" }, null, -1), G = [
|
|
53
|
-
q
|
|
54
|
-
];
|
|
55
|
-
function H(e, t) {
|
|
56
|
-
return o(), c("svg", Y, [...G]);
|
|
57
|
-
}
|
|
58
|
-
const J = { render: H }, S = (e) => (E("data-v-aa6d21d7"), e = e(), C(), e), K = { class: "flex-horizontal" }, M = /* @__PURE__ */ S(() => /* @__PURE__ */ n("span", { class: "spacer" }, null, -1)), Q = /* @__PURE__ */ S(() => /* @__PURE__ */ n("span", { class: "bold" }, "Back to node configuration", -1)), R = /* @__PURE__ */ h({
|
|
59
|
-
__name: "SettingsSubPanelBackArrow",
|
|
60
|
-
emits: ["click"],
|
|
61
|
-
setup(e, { emit: t }) {
|
|
62
|
-
const s = t;
|
|
63
|
-
return (a, i) => (o(), c("div", K, [
|
|
64
|
-
p(m(F), {
|
|
65
|
-
primary: "",
|
|
66
|
-
class: "arrow-left-button",
|
|
67
|
-
onClick: i[0] || (i[0] = () => s("click"))
|
|
68
|
-
}, {
|
|
69
|
-
default: u(() => [
|
|
70
|
-
p(m(J))
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}),
|
|
74
|
-
M,
|
|
75
|
-
Q
|
|
76
|
-
]));
|
|
77
|
-
}
|
|
78
|
-
}), X = /* @__PURE__ */ _(R, [["__scopeId", "data-v-aa6d21d7"]]), Z = { class: "side-drawer-content" }, ee = { class: "main-content" }, te = { class: "bottom-content" }, oe = /* @__PURE__ */ h({
|
|
79
|
-
__name: "SettingsSubPanel",
|
|
80
|
-
props: {
|
|
81
|
-
showBackArrow: { type: Boolean, default: !0 },
|
|
82
|
-
hideButtonsWhenExpanded: { type: Boolean, default: !1 },
|
|
83
|
-
backgroundColorOverride: { default: "var(--knime-porcelain)" }
|
|
84
|
-
},
|
|
85
|
-
setup(e, { expose: t }) {
|
|
86
|
-
const s = e, a = P(!1), i = () => {
|
|
87
|
-
a.value = !0;
|
|
88
|
-
}, v = () => {
|
|
89
|
-
a.value = !1;
|
|
90
|
-
};
|
|
91
|
-
t({ expand: i, close: v });
|
|
92
|
-
const g = w("setSubPanelExpanded");
|
|
93
|
-
I(
|
|
94
|
-
a,
|
|
95
|
-
(d) => (
|
|
96
|
-
// @ts-expect-error expected 0 arguments
|
|
97
|
-
s.hideButtonsWhenExpanded && g({ isExpanded: d })
|
|
98
|
-
)
|
|
99
|
-
);
|
|
100
|
-
const $ = k(() => w(
|
|
101
|
-
s.hideButtonsWhenExpanded ? "getPanelsContainer" : "getSideDrawerTeleportDest"
|
|
102
|
-
)()), x = k(() => ({
|
|
103
|
-
width: "100%",
|
|
104
|
-
position: "absolute",
|
|
105
|
-
backgroundColor: s.backgroundColorOverride
|
|
106
|
-
}));
|
|
107
|
-
return (d, ne) => (o(), c(O, null, [
|
|
108
|
-
r(d.$slots, "expand-button", { expand: i }, void 0, !0),
|
|
109
|
-
(o(), f(A, { to: $.value }, [
|
|
110
|
-
p(m(U), {
|
|
111
|
-
"is-expanded": a.value,
|
|
112
|
-
class: "side-drawer",
|
|
113
|
-
"style-overrides": x.value
|
|
114
|
-
}, {
|
|
115
|
-
default: u(() => [
|
|
116
|
-
n("div", Z, [
|
|
117
|
-
d.showBackArrow ? (o(), f(X, {
|
|
118
|
-
key: 0,
|
|
119
|
-
onClick: v
|
|
120
|
-
})) : b("", !0),
|
|
121
|
-
n("div", ee, [
|
|
122
|
-
p(V, null, {
|
|
123
|
-
default: u(() => [
|
|
124
|
-
r(d.$slots, "default", {}, void 0, !0)
|
|
125
|
-
]),
|
|
126
|
-
_: 3
|
|
127
|
-
})
|
|
128
|
-
]),
|
|
129
|
-
n("div", te, [
|
|
130
|
-
r(d.$slots, "bottom-content", {}, void 0, !0)
|
|
131
|
-
])
|
|
132
|
-
])
|
|
133
|
-
]),
|
|
134
|
-
_: 3
|
|
135
|
-
}, 8, ["is-expanded", "style-overrides"])
|
|
136
|
-
], 8, ["to"]))
|
|
137
|
-
], 64));
|
|
138
|
-
}
|
|
139
|
-
}), ae = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-acd858cd"]]);
|
|
140
|
-
export {
|
|
141
|
-
V as F,
|
|
142
|
-
ae as S
|
|
143
|
-
};
|