@knime/jsonforms 3.0.0 → 3.1.0
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 +15 -0
- package/dist/AnyOfTwinlist-iPxS5C9Y.js +24 -0
- package/dist/CheckboxControl-C99OdmDL.js +41 -0
- package/dist/CheckboxesControl-BZhMhT9x.js +47 -0
- package/dist/ColorControl-D1dNnNbO.js +38 -0
- package/dist/ColorPreviewControl-B4zix2kb.js +67 -0
- package/dist/ComboBoxControl-BGWAD9IW.js +47 -0
- package/dist/DateControl-D0HfVrtz.js +49 -0
- package/dist/DateTimeControl-kTQZI9JC.js +103 -0
- package/dist/DateTimeFormatPickerControl-BiYcsKSn.js +44 -0
- package/dist/DropdownControl-jsayV3N5.js +42 -0
- package/dist/ExecutorCoresControl-DNo2SaC6.js +26 -0
- package/dist/ExecutorMemoryControl-C8RLYQdd.js +26 -0
- package/dist/FileUploadControl-Cv3xWTAS.js +58 -0
- package/dist/GridSelectionControl-BqtaGQYg.js +86 -0
- package/dist/HorizontalLayout-B_lETfCu.js +29 -0
- package/dist/IntegerControl-Cr8SO0xH.js +22 -0
- package/dist/IntervalControl-BdjKEwLy.js +53 -0
- package/dist/LinkControl-QMwkCJlj.js +37 -0
- package/dist/LoadingDropdown-BpU4Uiin.js +61 -0
- package/dist/ManualTwinlistControl-CPILp7H_.js +75 -0
- package/dist/NameFilter-CYYPRj-2.js +29 -0
- package/dist/NumberControl-ODy5GAlR.js +22 -0
- package/dist/NumberControlBase-Cl3QcvzB.js +56 -0
- package/dist/OneOfDropdown-CMPRAraI.js +44 -0
- package/dist/ProgressButtonControl-BimHrSZd.js +51 -0
- package/dist/RadioButtonsWithDescriptionControl-DJu3ODo7.js +58 -0
- package/dist/RadioControl-D_NE5s4n.js +22 -0
- package/dist/RadioControlBase-knF86px0.js +69 -0
- package/dist/ResourceControlBase-BVMVVYns.js +64 -0
- package/dist/RichTextControl-JIM904_P.js +72 -0
- package/dist/SectionLayout-BDYjoUXM.js +41 -0
- package/dist/SettingsSubPanelLayout-DVw_AsU6.js +53 -0
- package/dist/SimpleTwinlistControl-BNnOmbN-.js +24 -0
- package/dist/SingleSelectControl-CJV9VMZm.js +58 -0
- package/dist/SortListControl-D-ifoRva.js +71 -0
- package/dist/TeamAndSpacesControl-D1FvyeCV.js +56 -0
- package/dist/TeamResourceControl-DyCO6-Nk.js +26 -0
- package/dist/TextAreaControl-7QziyTgn.js +40 -0
- package/dist/TimeControl-B29iTlhP.js +71 -0
- package/dist/TimeframesControl-Wvu--J0V.js +46 -0
- package/dist/TwinlistControlBase-300a_qUR.js +55 -0
- package/dist/TypedStringFilter-Ek7bQ-7j.js +35 -0
- package/dist/ValueSwitchControl-H2t2Wgo6.js +22 -0
- package/dist/VerticalLayout-zV890HYr.js +32 -0
- package/dist/ZonedDateTimeControl-DoE2T9iz.js +88 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/inject-DEsHVs5q.js +5 -0
- package/dist/knime-jsonforms.css +2 -1
- package/dist/knime-jsonforms.d.ts +1 -1
- package/dist/knime-jsonforms.js +3 -219
- package/dist/magic-string.es-DrXXtutX.js +659 -0
- package/dist/plainDateTimeUtils-5uOCJ4N5.js +58 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +53 -435
- package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +2 -1
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +21 -21
- package/dist/src/layoutComponents/Form.vue.d.ts +9 -12
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +9 -13
- package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +9 -13
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +10 -14
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -15
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +11 -10
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +3 -2
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -1
- package/dist/src/renderers/checkboxRenderer.d.ts +5 -4
- package/dist/src/renderers/colorPreviewRenderer.d.ts +1 -1
- package/dist/src/renderers/defaultRenderers.d.ts +22 -21
- package/dist/src/renderers/fallbackRenderers.d.ts +6 -5
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/linkRenderer.d.ts +1 -1
- package/dist/src/renderers/progressButtonRenderer.d.ts +3 -3
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -3
- package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +3 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +11 -14
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ColorControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/FieldControl.vue.d.ts +12 -7
- package/dist/src/uiComponents/FieldRenderer.vue.d.ts +12 -7
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -3
- package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/LinkControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/PasswordControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +9 -13
- package/dist/src/uiComponents/QuantityControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -13
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +3 -454
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeframesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/UsernameControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +2 -1
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +3 -2
- package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +2 -141
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +3 -2
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/src-DwqijroM.js +1269 -0
- package/dist/temporal-polyfill-D4u1I_Z-.js +3114 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +15278 -19038
- package/dist/toKdsPossibleValues-Dd_qzlUI.js +14 -0
- package/dist/useBuiltinValidations-B_Drc2y-.js +43 -0
- package/dist/usePossibleValues-Cx6iSt_X.js +15 -0
- package/dist/useProvidedState-478_KXOe.js +26 -0
- package/dist/useUnknownValuesInTwinlist-BvCTc3hC.js +205 -0
- package/dist/utils-DmZLgn8X.js +12 -0
- package/package.json +7 -7
- package/dist/AnyOfTwinlist-CcodfEXw.js +0 -23
- package/dist/CheckboxControl-B_MAR82s.js +0 -41
- package/dist/CheckboxesControl--bG4aF6O.js +0 -39
- package/dist/ColorControl-CEp2Ei7R.js +0 -29
- package/dist/ColorPreviewControl-j0uQH95J.js +0 -90
- package/dist/ComboBoxControl-BpJzwiv6.js +0 -39
- package/dist/DateControl-83Fi6P5y.js +0 -44
- package/dist/DateTimeControl-C-D8bFm3.js +0 -103
- package/dist/DateTimeFormatPickerControl-B9gl_66T.js +0 -35
- package/dist/DropdownControl-CtveoldX.js +0 -32
- package/dist/ExecutorCoresControl-CErHidL7.js +0 -39
- package/dist/ExecutorMemoryControl-DgSM86Yg.js +0 -35
- package/dist/FileUploadControl-BBfnxURy.js +0 -56
- package/dist/GridSelectionControl-BaI4j0Jj.js +0 -117
- package/dist/HorizontalLayout-D1SRCyhL.js +0 -26
- package/dist/IntegerControl-v93Xw4DJ.js +0 -21
- package/dist/IntervalControl-CVlO_mFO.js +0 -52
- package/dist/LinkControl-j8GrcZZG.js +0 -36
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js +0 -57
- package/dist/ManualTwinlistControl-BzJehuHs.js +0 -74
- package/dist/MultimodeTwinlistControl-Br0DrpsZ.js +0 -4
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js +0 -159
- package/dist/NameFilter-BjuVseuX.js +0 -25
- package/dist/NumberControl-BF76FEhD.js +0 -21
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js +0 -52
- package/dist/OneOfDropdown-DpXmZauV.js +0 -35
- package/dist/ProgressButtonControl-t8QMA22a.js +0 -52
- package/dist/RadioButtonsWithDescriptionControl-CeZ4qYCr.js +0 -58
- package/dist/RadioControl-DOn1Kre5.js +0 -21
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js +0 -57
- package/dist/ResourceControlBase-CX97xRiy.js +0 -70
- package/dist/RichTextControl-BrVmkMgh.js +0 -60
- package/dist/SectionHeading-YAJTwOE4.js +0 -61
- package/dist/SectionLayout-BYOxuxY2.js +0 -47
- package/dist/SettingsSubPanel-DgISjowU.js +0 -5
- package/dist/SettingsSubPanelLayout-BQJCnTqx.js +0 -69
- package/dist/SimpleButtonControl-GTX19t2_.js +0 -50
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js +0 -1284
- package/dist/SimpleTwinlistControl-DOH1_L25.js +0 -23
- package/dist/SingleSelectControl-mY_yYOyk.js +0 -58
- package/dist/SortListControl-D-Um5gEW.js +0 -81
- package/dist/TeamAndSpacesControl-fGumynvr.js +0 -66
- package/dist/TeamResourceControl--1Sj3-Ks.js +0 -35
- package/dist/TextAreaControl-Cwq-lNBk.js +0 -30
- package/dist/TextControl-MvbrNTGW.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js +0 -53
- package/dist/TimeControl-WG0SC4_b.js +0 -71
- package/dist/TimeframesControl-CX5eKOGZ.js +0 -53
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BKCvZF3X.js +0 -45
- package/dist/TypedStringFilter-BnWygKQJ.js +0 -27
- package/dist/ValueSwitchControl-BByKe7NK.js +0 -21
- package/dist/VerticalLayout-DIBkvSZ9.js +0 -30
- package/dist/VerticalLayoutBase-BEDnWcoh.js +0 -20
- package/dist/ZonedDateTimeControl-B45OygrC.js +0 -97
- package/dist/index-Blg1O3Fz.js +0 -15
- package/dist/index-_VUHzju5.js +0 -3210
- package/dist/magic-string.es-uPKorP4O.js +0 -663
- package/dist/plainDateTimeUtils-BZSKqp9i.js +0 -52
- package/dist/toKdsPossibleValues-BklBg3gG.js +0 -14
- package/dist/useBuiltinValidations-_4IBMopQ.js +0 -74
- package/dist/usePossibleValues-CXVLf00v.js +0 -16
- package/dist/useUnknownValuesInTwinlist-uXOCQkVS.js +0 -65
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, ref as u, renderList as d, unref as f, useCssVars as p, watch as m, withModifiers as h } from "vue";
|
|
3
|
+
import { KdsButton as g, KdsCheckbox as _, KdsToggleButton as v } from "@knime/kds-components";
|
|
4
|
+
//#region src/uiComponents/GridSelectionControl.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = { class: "grid-list" }, b = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "checkbox"
|
|
8
|
+
}, x = 7, S = "auto", C = "Invert selection", w = /*#__PURE__*/ e(/* @__PURE__ */ s({
|
|
9
|
+
__name: "GridSelectionControl",
|
|
10
|
+
props: {
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
control: {},
|
|
13
|
+
changeValue: { type: Function },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
error: { type: Boolean },
|
|
16
|
+
subText: {},
|
|
17
|
+
onRegisterValidation: { type: Function },
|
|
18
|
+
labelForId: {}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
p((e) => ({ bf8a5982: f(k) }));
|
|
22
|
+
let s = e, { control: { path: w, uischema: { options: T } = {} }, handleChange: E } = s, { possibleValues: D = [], columnCount: O = x, gridWidth: k = S, toggleLabel: A = C, renderLastItemAsCheckbox: j = !1 } = T, M = u(/* @__PURE__ */ new Map()), N = n(() => ({ "grid-template-columns": `repeat(${O}, 1fr)` })), P = n(() => D.filter((e, t) => !(j && t === D.length - 1))), F = n(() => j ? D[D.length - 1] : null), I = () => {
|
|
23
|
+
let e = /* @__PURE__ */ new Map();
|
|
24
|
+
M.value.forEach(({ active: t }, n) => {
|
|
25
|
+
e.set(n, { active: !t });
|
|
26
|
+
}), M.value = e;
|
|
27
|
+
}, L = () => {
|
|
28
|
+
let e = /* @__PURE__ */ new Map();
|
|
29
|
+
return D.forEach(({ id: t }) => {
|
|
30
|
+
e.set(t, { active: s.control.data?.includes(t) ?? !1 });
|
|
31
|
+
}), e;
|
|
32
|
+
}, R = n(() => {
|
|
33
|
+
let e = [];
|
|
34
|
+
return M.value.forEach(({ active: t }, n) => {
|
|
35
|
+
t && e.push(n);
|
|
36
|
+
}), e;
|
|
37
|
+
}), z = n(() => s.control.data ?? []), B = n(() => {
|
|
38
|
+
let e = R.value, t = z.value;
|
|
39
|
+
if (e.length !== t.length) return !0;
|
|
40
|
+
let n = new Set(t);
|
|
41
|
+
return e.some((e) => !n.has(e));
|
|
42
|
+
});
|
|
43
|
+
return m(() => s.control.data, () => {
|
|
44
|
+
B.value && (M.value = L());
|
|
45
|
+
}, {
|
|
46
|
+
immediate: !0,
|
|
47
|
+
deep: !0
|
|
48
|
+
}), m(() => M.value, () => {
|
|
49
|
+
B.value && E(w, R.value);
|
|
50
|
+
}, { deep: !0 }), (e, n) => (l(), a("div", y, [
|
|
51
|
+
f(D).length ? (l(), a("div", {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "grid-list-container",
|
|
54
|
+
style: c(N.value)
|
|
55
|
+
}, [(l(!0), a(t, null, d(P.value, ({ id: e, text: t }) => (l(), r(f(v), {
|
|
56
|
+
key: `grid-item-${e}`,
|
|
57
|
+
modelValue: M.value.get(e).active,
|
|
58
|
+
"onUpdate:modelValue": (t) => M.value.get(e).active = t,
|
|
59
|
+
class: "overwrite-legacy-styles",
|
|
60
|
+
label: t,
|
|
61
|
+
variant: "outlined",
|
|
62
|
+
size: "xsmall"
|
|
63
|
+
}, null, 8, [
|
|
64
|
+
"modelValue",
|
|
65
|
+
"onUpdate:modelValue",
|
|
66
|
+
"label"
|
|
67
|
+
]))), 128))], 4)) : i("", !0),
|
|
68
|
+
f(j) && F.value ? (l(), a("div", b, [o(f(_), {
|
|
69
|
+
modelValue: M.value.get(F.value.id).active,
|
|
70
|
+
"onUpdate:modelValue": n[0] ||= (e) => M.value.get(F.value.id).active = e,
|
|
71
|
+
label: F.value.text
|
|
72
|
+
}, null, 8, ["modelValue", "label"])])) : i("", !0),
|
|
73
|
+
f(A) ? (l(), r(f(g), {
|
|
74
|
+
key: 2,
|
|
75
|
+
variant: "outlined",
|
|
76
|
+
size: "xsmall",
|
|
77
|
+
label: f(A),
|
|
78
|
+
"leading-icon": "replace",
|
|
79
|
+
class: "invert overwrite-legacy-styles",
|
|
80
|
+
onClick: h(I, ["prevent"])
|
|
81
|
+
}, null, 8, ["label"])) : i("", !0)
|
|
82
|
+
]));
|
|
83
|
+
}
|
|
84
|
+
}), [["__scopeId", "data-v-b6393b68"]]);
|
|
85
|
+
//#endregion
|
|
86
|
+
export { w as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createElementBlock as r, defineComponent as i, openBlock as a, renderList as o, unref as s } from "vue";
|
|
3
|
+
import { DispatchRenderer as c } from "@jsonforms/vue";
|
|
4
|
+
//#region src/layoutComponents/HorizontalLayout.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var l = { class: "horizontal" }, u = /*#__PURE__*/ e(/* @__PURE__ */ i({
|
|
6
|
+
__name: "HorizontalLayout",
|
|
7
|
+
props: { layout: {} },
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (i, u) => (a(), r("div", l, [(a(!0), r(t, null, o(e.layout.uischema.elements, (t, r) => (a(), n(s(c), {
|
|
10
|
+
key: r,
|
|
11
|
+
class: "horizontal-element",
|
|
12
|
+
schema: e.layout.schema,
|
|
13
|
+
uischema: t,
|
|
14
|
+
path: e.layout.path,
|
|
15
|
+
enabled: e.layout.enabled,
|
|
16
|
+
renderers: e.layout.renderers,
|
|
17
|
+
cells: e.layout.cells
|
|
18
|
+
}, null, 8, [
|
|
19
|
+
"schema",
|
|
20
|
+
"uischema",
|
|
21
|
+
"path",
|
|
22
|
+
"enabled",
|
|
23
|
+
"renderers",
|
|
24
|
+
"cells"
|
|
25
|
+
]))), 128))]));
|
|
26
|
+
}
|
|
27
|
+
}), [["__scopeId", "data-v-8f2ebb37"]]);
|
|
28
|
+
//#endregion
|
|
29
|
+
export { u as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./NumberControlBase-Cl3QcvzB.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/IntegerControl.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "IntegerControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
return (n, a) => (i(), t(e, r(n.$props, { type: "integer" }), null, 16));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { n as e } from "./useProvidedState-478_KXOe.js";
|
|
2
|
+
import { t } from "./temporal-polyfill-D4u1I_Z-.js";
|
|
3
|
+
import { computed as n, createBlock as r, defineComponent as i, openBlock as a, unref as o } from "vue";
|
|
4
|
+
import { KdsIntervalInput as s } from "@knime/kds-components";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/uiComponents/IntervalControl.vue
|
|
7
|
+
var c = /* @__PURE__ */ i({
|
|
8
|
+
__name: "IntervalControl",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function },
|
|
17
|
+
labelForId: {}
|
|
18
|
+
},
|
|
19
|
+
setup(i) {
|
|
20
|
+
let c = i, l = n(() => c.control.uischema), u = e(l, "intervalType", "DATE_OR_TIME"), d = n(() => u.value.toLowerCase()), f = e(l, "allowDescending", !0), p = (e) => {
|
|
21
|
+
if (!e) return null;
|
|
22
|
+
try {
|
|
23
|
+
return t.Duration.from(e);
|
|
24
|
+
} catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}, m = n(() => p(c.control.data)), h = (e) => {
|
|
28
|
+
c.changeValue(e?.toString() ?? "");
|
|
29
|
+
};
|
|
30
|
+
return (e, t) => (a(), r(o(s), {
|
|
31
|
+
id: i.labelForId,
|
|
32
|
+
ariaLabel: c.control.label,
|
|
33
|
+
"model-value": m.value,
|
|
34
|
+
"allow-descending": o(f),
|
|
35
|
+
disabled: i.disabled,
|
|
36
|
+
error: i.error,
|
|
37
|
+
format: d.value,
|
|
38
|
+
"sub-text": i.subText,
|
|
39
|
+
"onUpdate:modelValue": h
|
|
40
|
+
}, null, 8, [
|
|
41
|
+
"id",
|
|
42
|
+
"ariaLabel",
|
|
43
|
+
"model-value",
|
|
44
|
+
"allow-descending",
|
|
45
|
+
"disabled",
|
|
46
|
+
"error",
|
|
47
|
+
"format",
|
|
48
|
+
"sub-text"
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { c as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { createElementBlock as t, createVNode as n, defineComponent as r, openBlock as i, unref as a, useCssVars as o } from "vue";
|
|
3
|
+
import { KdsLinkButton as s } from "@knime/kds-components";
|
|
4
|
+
//#region src/uiComponents/LinkControl.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var c = { class: "link-wrapper" }, l = /*#__PURE__*/ e(/* @__PURE__ */ r({
|
|
6
|
+
__name: "LinkControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
labelForId: {},
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function }
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
o((e) => ({ v7f757bb0: a(l) }));
|
|
19
|
+
let r = e, l = r.control.uischema.options?.alignment === "right" ? "flex-end" : "flex-start", { to: u, leadingIcon: d, trailingIcon: f } = r.control.uischema.options || {};
|
|
20
|
+
return (r, o) => (i(), t("div", c, [n(a(s), {
|
|
21
|
+
class: "link-button",
|
|
22
|
+
label: e.control.label,
|
|
23
|
+
to: a(u),
|
|
24
|
+
"leading-icon": a(d),
|
|
25
|
+
"trailing-icon": a(f),
|
|
26
|
+
size: "small",
|
|
27
|
+
variant: "transparent"
|
|
28
|
+
}, null, 8, [
|
|
29
|
+
"label",
|
|
30
|
+
"to",
|
|
31
|
+
"leading-icon",
|
|
32
|
+
"trailing-icon"
|
|
33
|
+
])]));
|
|
34
|
+
}
|
|
35
|
+
}), [["__scopeId", "data-v-c55bc56b"]]);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { l as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, defineComponent as n, mergeProps as r, openBlock as i, unref as a } from "vue";
|
|
2
|
+
import { KdsDropdown as o } from "@knime/kds-components";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/loading/LoadingDropdown.vue
|
|
5
|
+
var s = /* @__PURE__ */ n({
|
|
6
|
+
__name: "LoadingDropdown",
|
|
7
|
+
props: {
|
|
8
|
+
possibleValues: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
id: {},
|
|
11
|
+
ariaLabel: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
error: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(n, { emit: s }) {
|
|
17
|
+
let c = n, l = s, u = e(() => c.possibleValues === null ? "" : c.modelValue), d = e(() => c.possibleValues === null), f = e(() => c.possibleValues?.some((e) => e.type !== void 0)), p = e(() => {
|
|
18
|
+
if (c.possibleValues === null) return [];
|
|
19
|
+
let e = [];
|
|
20
|
+
for (let t of c.possibleValues) {
|
|
21
|
+
if (!t.text) continue;
|
|
22
|
+
let n;
|
|
23
|
+
f.value ? n = {
|
|
24
|
+
type: "dataType",
|
|
25
|
+
name: t.type?.id ?? "missing_type"
|
|
26
|
+
} : "accessory" in t && (n = t.accessory), e.push({
|
|
27
|
+
id: t.id,
|
|
28
|
+
text: t.text,
|
|
29
|
+
disabled: t.disabled,
|
|
30
|
+
...t.subText ? { subText: t.subText } : {},
|
|
31
|
+
accessory: n
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return e;
|
|
35
|
+
}), m = e(() => d.value ? "Loading" : p.value.length > 0 ? "No value selected" : "No values present"), h = e(() => c.disabled || p.value.length === 0), g = (e) => {
|
|
36
|
+
l("update:modelValue", e ?? "");
|
|
37
|
+
};
|
|
38
|
+
return (e, n) => (i(), t(a(o), r(e.$attrs, {
|
|
39
|
+
id: c.id,
|
|
40
|
+
ariaLabel: c.ariaLabel,
|
|
41
|
+
"model-value": u.value,
|
|
42
|
+
disabled: h.value,
|
|
43
|
+
"possible-values": p.value,
|
|
44
|
+
loading: d.value,
|
|
45
|
+
placeholder: m.value,
|
|
46
|
+
error: c.error,
|
|
47
|
+
"onUpdate:modelValue": g
|
|
48
|
+
}), null, 16, [
|
|
49
|
+
"id",
|
|
50
|
+
"ariaLabel",
|
|
51
|
+
"model-value",
|
|
52
|
+
"disabled",
|
|
53
|
+
"possible-values",
|
|
54
|
+
"loading",
|
|
55
|
+
"placeholder",
|
|
56
|
+
"error"
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { s as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { r as e } from "./utils-DmZLgn8X.js";
|
|
2
|
+
import { n as t, t as n } from "./usePossibleValues-Cx6iSt_X.js";
|
|
3
|
+
import { t as r } from "./toKdsPossibleValues-Dd_qzlUI.js";
|
|
4
|
+
import { t as i } from "./useUnknownValuesInTwinlist-BvCTc3hC.js";
|
|
5
|
+
import { computed as a, createBlock as o, defineComponent as s, mergeProps as c, openBlock as l, toRef as u, unref as d } from "vue";
|
|
6
|
+
import { KdsTwinList as f } from "@knime/kds-components";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/uiComponents/twinlist/ManualTwinlistControl.vue
|
|
9
|
+
var p = /* @__PURE__ */ s({
|
|
10
|
+
__name: "ManualTwinlistControl",
|
|
11
|
+
props: {
|
|
12
|
+
control: {},
|
|
13
|
+
handleChange: { type: Function },
|
|
14
|
+
changeValue: { type: Function },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
error: { type: Boolean },
|
|
17
|
+
subText: {},
|
|
18
|
+
onRegisterValidation: { type: Function },
|
|
19
|
+
labelForId: {}
|
|
20
|
+
},
|
|
21
|
+
setup(s) {
|
|
22
|
+
let p = s, { excludedLabel: m, includedLabel: h } = n(u(p, "control")), { possibleValues: g } = t(u(p, "control")), _ = a(() => r(g.value ?? [])), { selectedAndDeselected: v, setCurrentManualFilter: y } = i({
|
|
23
|
+
data: a(() => ({ manualFilter: p.control.data })),
|
|
24
|
+
possibleValueIds: a(() => g.value?.map(({ id: e }) => e) ?? null)
|
|
25
|
+
}), b = (t) => {
|
|
26
|
+
let n = e(p.control.data, t);
|
|
27
|
+
p.changeValue(n), y(n);
|
|
28
|
+
}, x = null, S = () => {
|
|
29
|
+
if (x !== null) {
|
|
30
|
+
let e = x;
|
|
31
|
+
x = null, b(e);
|
|
32
|
+
}
|
|
33
|
+
}, C = (t) => {
|
|
34
|
+
x === null ? (x = t, queueMicrotask(S)) : x = e(x, t);
|
|
35
|
+
}, w = (e) => {
|
|
36
|
+
C({ manuallySelected: e });
|
|
37
|
+
}, T = (e) => {
|
|
38
|
+
C({ manuallyDeselected: e });
|
|
39
|
+
}, E = (e) => {
|
|
40
|
+
e !== null && C({ includeUnknownColumns: e });
|
|
41
|
+
};
|
|
42
|
+
return (e, t) => (l(), o(d(f), c(e.$attrs, {
|
|
43
|
+
id: s.labelForId,
|
|
44
|
+
ariaLabel: s.control.label,
|
|
45
|
+
disabled: s.disabled,
|
|
46
|
+
"manually-included": d(v).selected ?? [],
|
|
47
|
+
"manually-excluded": d(v).deselected ?? [],
|
|
48
|
+
"include-unknown-values": s.control.data.includeUnknownColumns,
|
|
49
|
+
"possible-values": _.value,
|
|
50
|
+
loading: d(v).selected === null,
|
|
51
|
+
"exclude-label": d(m),
|
|
52
|
+
"include-label": d(h),
|
|
53
|
+
error: s.error,
|
|
54
|
+
"sub-text": s.subText,
|
|
55
|
+
"onUpdate:manuallyIncluded": w,
|
|
56
|
+
"onUpdate:manuallyExcluded": T,
|
|
57
|
+
"onUpdate:includeUnknownValues": E
|
|
58
|
+
}), null, 16, [
|
|
59
|
+
"id",
|
|
60
|
+
"ariaLabel",
|
|
61
|
+
"disabled",
|
|
62
|
+
"manually-included",
|
|
63
|
+
"manually-excluded",
|
|
64
|
+
"include-unknown-values",
|
|
65
|
+
"possible-values",
|
|
66
|
+
"loading",
|
|
67
|
+
"exclude-label",
|
|
68
|
+
"include-label",
|
|
69
|
+
"error",
|
|
70
|
+
"sub-text"
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { p as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as e } from "./useUnknownValuesInTwinlist-BvCTc3hC.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/twinlist/NameFilter.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "NameFilter",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
return (n, a) => (i(), t(e, r({
|
|
19
|
+
...n.$props,
|
|
20
|
+
...n.$attrs
|
|
21
|
+
}, {
|
|
22
|
+
"unknown-values-text": "Any unknown value",
|
|
23
|
+
"show-unknown-values": "",
|
|
24
|
+
"empty-state-label": "No values in this list"
|
|
25
|
+
}), null, 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { a as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./NumberControlBase-Cl3QcvzB.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/NumberControl.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "NumberControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
return (n, a) => (i(), t(e, r(n.$props, { type: "double" }), null, 16));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { t as e } from "./useBuiltinValidations-B_Drc2y-.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
3
|
+
import { KdsNumberInput as o } from "@knime/kds-components";
|
|
4
|
+
//#region src/uiComponents/NumberControlBase.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var s = 1, c = .1, l = /* @__PURE__ */ r({
|
|
6
|
+
__name: "NumberControlBase",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {},
|
|
16
|
+
type: {}
|
|
17
|
+
},
|
|
18
|
+
setup(r) {
|
|
19
|
+
let l = r, u = t(() => l.control.uischema.options?.stepSize ?? (l.type === "integer" ? s : c)), d = e({
|
|
20
|
+
min: ({ min: e, isExclusive: t }) => (n) => isNaN(n) || (t ? n > e : n >= e),
|
|
21
|
+
max: ({ max: e, isExclusive: t }) => (n) => isNaN(n) || (t ? n < e : n <= e)
|
|
22
|
+
}, l), f = t(() => {
|
|
23
|
+
let e = d.value.min;
|
|
24
|
+
if (!(!e || e.min === null)) return e.min + (e.isExclusive ? u.value : 0);
|
|
25
|
+
}), p = t(() => {
|
|
26
|
+
let e = d.value.max;
|
|
27
|
+
if (!(!e || e.max === null)) return e.max - (e.isExclusive ? u.value : 0);
|
|
28
|
+
});
|
|
29
|
+
return (e, t) => (i(), n(a(o), {
|
|
30
|
+
id: r.labelForId,
|
|
31
|
+
ariaLabel: r.control.label,
|
|
32
|
+
class: "number-input",
|
|
33
|
+
disabled: r.disabled,
|
|
34
|
+
"model-value": r.control.data,
|
|
35
|
+
min: f.value,
|
|
36
|
+
max: p.value,
|
|
37
|
+
step: u.value,
|
|
38
|
+
error: r.error,
|
|
39
|
+
"sub-text": r.subText,
|
|
40
|
+
"onUpdate:modelValue": r.changeValue
|
|
41
|
+
}, null, 8, [
|
|
42
|
+
"id",
|
|
43
|
+
"ariaLabel",
|
|
44
|
+
"disabled",
|
|
45
|
+
"model-value",
|
|
46
|
+
"min",
|
|
47
|
+
"max",
|
|
48
|
+
"step",
|
|
49
|
+
"error",
|
|
50
|
+
"sub-text",
|
|
51
|
+
"onUpdate:modelValue"
|
|
52
|
+
]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { l as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { i as e } from "./utils-DmZLgn8X.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
3
|
+
import { KdsDropdown as o } from "@knime/kds-components";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/uiComponents/OneOfDropdown.vue
|
|
6
|
+
var s = /* @__PURE__ */ r({
|
|
7
|
+
__name: "OneOfDropdown",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function },
|
|
16
|
+
labelForId: {}
|
|
17
|
+
},
|
|
18
|
+
setup(r) {
|
|
19
|
+
let s = r, c = s.control.schema?.oneOf?.map(e) ?? [], l = t({
|
|
20
|
+
get: () => s.control.data ?? "",
|
|
21
|
+
set: s.changeValue
|
|
22
|
+
});
|
|
23
|
+
return (e, t) => (i(), n(a(o), {
|
|
24
|
+
id: r.labelForId,
|
|
25
|
+
modelValue: l.value,
|
|
26
|
+
"onUpdate:modelValue": t[0] ||= (e) => l.value = e,
|
|
27
|
+
"possible-values": a(c),
|
|
28
|
+
ariaLabel: r.control.label,
|
|
29
|
+
disabled: r.disabled,
|
|
30
|
+
error: r.error,
|
|
31
|
+
"sub-text": r.subText
|
|
32
|
+
}, null, 8, [
|
|
33
|
+
"id",
|
|
34
|
+
"modelValue",
|
|
35
|
+
"possible-values",
|
|
36
|
+
"ariaLabel",
|
|
37
|
+
"disabled",
|
|
38
|
+
"error",
|
|
39
|
+
"sub-text"
|
|
40
|
+
]));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./inject-DEsHVs5q.js";
|
|
3
|
+
import { computed as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, renderSlot as c, unref as l } from "vue";
|
|
4
|
+
import { KdsProgressButton as u } from "@knime/kds-components";
|
|
5
|
+
//#region src/uiComponents/ProgressButtonControl.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var d = 1e3, f = "auto-configure", p = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
|
7
|
+
__name: "ProgressButtonControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
labelForId: {},
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function }
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
let a = e, p = n(() => a.control.uischema.options.triggerId), m = n(() => a.control.uischema.options?.icon ?? f), h = t("trigger"), g = s("default"), _ = s(!1), v = async () => {
|
|
20
|
+
g.value = "progress";
|
|
21
|
+
try {
|
|
22
|
+
await h({ id: p.value }), g.value = "success", setTimeout(() => {
|
|
23
|
+
g.value = "default";
|
|
24
|
+
}, d);
|
|
25
|
+
} catch {
|
|
26
|
+
g.value = "default";
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return (t, n) => (o(), r("div", {
|
|
30
|
+
class: "progress-button-input",
|
|
31
|
+
onMouseenter: n[1] ||= (e) => _.value = !0,
|
|
32
|
+
onMouseleave: n[2] ||= (e) => _.value = !1
|
|
33
|
+
}, [i(l(u), {
|
|
34
|
+
state: g.value,
|
|
35
|
+
"onUpdate:state": n[0] ||= (e) => g.value = e,
|
|
36
|
+
variant: "outlined",
|
|
37
|
+
size: "small",
|
|
38
|
+
disabled: !e.control.enabled,
|
|
39
|
+
label: e.control.label,
|
|
40
|
+
"leading-icon": m.value,
|
|
41
|
+
onClick: v
|
|
42
|
+
}, null, 8, [
|
|
43
|
+
"state",
|
|
44
|
+
"disabled",
|
|
45
|
+
"label",
|
|
46
|
+
"leading-icon"
|
|
47
|
+
]), c(t.$slots, "buttons", { hover: _.value }, void 0, !0)], 32));
|
|
48
|
+
}
|
|
49
|
+
}), [["__scopeId", "data-v-f880d1e8"]]);
|
|
50
|
+
//#endregion
|
|
51
|
+
export { p as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, unref as d } from "vue";
|
|
3
|
+
import { KdsRadioButton as f } from "@knime/kds-components";
|
|
4
|
+
//#region src/uiComponents/RadioButtonsWithDescriptionControl.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var p = ["innerHTML"], m = ["innerHTML"], h = ["innerHTML"], g = /*#__PURE__*/ e(/* @__PURE__ */ s({
|
|
6
|
+
__name: "RadioButtonsWithDescriptionControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
labelForId: {},
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function }
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
let s = e, g = n(() => s.control.schema.oneOf?.map(({ const: e, title: t, price: n, description: r }) => ({
|
|
19
|
+
id: e,
|
|
20
|
+
text: t,
|
|
21
|
+
price: n,
|
|
22
|
+
description: r
|
|
23
|
+
})) || []), _ = n(() => !s.control.enabled), v = n(() => s.control.uischema.options?.footnote || null), y = (e) => {
|
|
24
|
+
s.changeValue(e);
|
|
25
|
+
};
|
|
26
|
+
return (n, s) => (l(), i(t, null, [(l(!0), i(t, null, u(g.value, (t) => (l(), i("label", {
|
|
27
|
+
key: `radio-${t.id}`,
|
|
28
|
+
class: "radio-wrapper"
|
|
29
|
+
}, [
|
|
30
|
+
o(d(f), {
|
|
31
|
+
class: "radio-button",
|
|
32
|
+
"model-value": e.control.data === t.id,
|
|
33
|
+
text: t.text,
|
|
34
|
+
disabled: _.value,
|
|
35
|
+
"onUpdate:modelValue": () => y(t.id)
|
|
36
|
+
}, null, 8, [
|
|
37
|
+
"model-value",
|
|
38
|
+
"text",
|
|
39
|
+
"disabled",
|
|
40
|
+
"onUpdate:modelValue"
|
|
41
|
+
]),
|
|
42
|
+
a("div", {
|
|
43
|
+
class: "description",
|
|
44
|
+
innerHTML: t.description
|
|
45
|
+
}, null, 8, p),
|
|
46
|
+
a("div", {
|
|
47
|
+
class: c(["price", { selected: e.control.data === t.id }]),
|
|
48
|
+
innerHTML: t.price
|
|
49
|
+
}, null, 10, m)
|
|
50
|
+
]))), 128)), v.value ? (l(), i("div", {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "footnote",
|
|
53
|
+
innerHTML: v.value
|
|
54
|
+
}, null, 8, h)) : r("", !0)], 64));
|
|
55
|
+
}
|
|
56
|
+
}), [["__scopeId", "data-v-d327df7b"]]);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { g as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./RadioControlBase-knF86px0.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/RadioControl.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "RadioControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
return (n, a) => (i(), t(e, r(n.$props, { type: "radio" }), null, 16));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as default };
|