@knime/jsonforms 1.10.3 → 1.11.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-Dh2rmqud.js → AnyOfTwinlist-C0BYfhuc.js} +1 -1
- package/dist/{Button-DD8nJr8n.js → Button-B2PevR13.js} +1 -1
- package/dist/{CheckboxControl-Dhu_5xL_.js → CheckboxControl-C9Eo-Get.js} +12 -13
- package/dist/{Checkboxes-Drf5an-Q.js → Checkboxes-BoSLHg-R.js} +16 -17
- package/dist/{CheckboxesControl-B46fZLOJ.js → CheckboxesControl-9OOMWktT.js} +2 -2
- package/dist/{ComboBoxControl-iOQVWvXs.js → ComboBoxControl-BQx3TWoL.js} +10 -11
- package/dist/{DateControl-CvwWIjQI.js → DateControl-CfI2AD4P.js} +1 -1
- package/dist/{DateTimeControl-ZRqB5hR_.js → DateTimeControl-BCvP4qo5.js} +2 -2
- package/dist/{DateTimeFormatInput-B9BAN642.js → DateTimeFormatInput-B9g7at3r.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BcJA9X5l.js → DateTimeFormatPickerControl-B9O1f_mH.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-DUjaPF-c.js → DateTimeFormatPickerWithTypeControl-ueXR9GQl.js} +3 -3
- package/dist/{DateTimeInput-B_CgJRcR.js → DateTimeInput-B_U-QJmL.js} +6 -6
- package/dist/{Dropdown-BngbhoRN.js → Dropdown-B_NNidgA.js} +2 -2
- package/dist/DropdownControl-HNf0y3og.js +31 -0
- package/dist/{HorizontalLayout-B-9fSSp4.js → HorizontalLayout-CMdaU98F.js} +1 -1
- package/dist/{InputField-Blkdyhf0.js → InputField-DKobsHBJ.js} +1 -1
- package/dist/{IntegerControl-D2l7THYv.js → IntegerControl-9YzuybpQ.js} +1 -1
- package/dist/{IntervalControl-BVuGSm6P.js → IntervalControl-DWOlVutr.js} +3 -3
- package/dist/{LoadingDropdown-PhOSUx1V.js → LoadingDropdown-DjDkU0GJ.js} +3 -3
- package/dist/MultiSelectListBoxControl-Dwxf-Auj.js +34 -0
- package/dist/{MultimodeTwinlistControl-xb9Ku5uw.js → MultimodeTwinlistControl-CgIOZGiK.js} +5 -5
- package/dist/{MultiselectListBox-CwvqA1NZ.js → MultiselectListBox-DVWx2L8G.js} +76 -139
- package/dist/{NameFilter-1Ficbjmb.js → NameFilter-CIEZ3MXY.js} +1 -1
- package/dist/{NumberControl-C9IPXddf.js → NumberControl-BTGdHGGc.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-pS4xOPTC.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Cs69LvYa.js} +2 -2
- package/dist/{NumberInput-vDc1pJc8.js → NumberInput-B_xx1SLE.js} +1 -1
- package/dist/{OneOfDropdown-Cw2Xm7i7.js → OneOfDropdown-1Vh8BGXT.js} +1 -1
- package/dist/{RadioControl-BL51E8Qr.js → RadioControl-LOA6Mp-I.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DV3nfTrK.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BO1C66xG.js} +2 -2
- package/dist/{RichTextControl-B8ZSKUA1.js → RichTextControl-BV881LVa.js} +14 -15
- package/dist/{SectionHeading-CIY28AZg.js → SectionHeading-9w_hIbyv.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js} +5414 -5265
- package/dist/{SectionLayout-CGKQLSyP.js → SectionLayout-CTkFSsDA.js} +3 -3
- package/dist/{SettingsSubPanel-DpdhyTCO.js → SettingsSubPanel-BbZP8Ymj.js} +1 -1
- package/dist/{SettingsSubPanelLayout-CgrOOfmr.js → SettingsSubPanelLayout-s00rjvBL.js} +4 -4
- package/dist/{SimpleButtonControl-Dq-_oElV.js → SimpleButtonControl-CuOsmR2j.js} +2 -2
- package/dist/{SimpleTwinlistControl-CPDPfXDG.js → SimpleTwinlistControl-CYOMlGEL.js} +2 -2
- package/dist/{SingleSelectControl-DBO_gnbC.js → SingleSelectControl-Dw1VHL_S.js} +2 -2
- package/dist/SingleSelectListBoxControl-fJHYO33a.js +234 -0
- package/dist/{SortListControl-N0PHx9nz.js → SortListControl-BvbvFUOf.js} +6 -6
- package/dist/StyledListItem-Cpvg8mvO.js +72 -0
- package/dist/{TextAreaControl-BDCUJ66D.js → TextAreaControl-D9rNGe7P.js} +1 -1
- package/dist/{TextControl-CDTEDzJU.js → TextControl-j_CdOruM.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Drnp3Zra.js +54 -0
- package/dist/{TimeControl-BYg8p2x7.js → TimeControl-BR-v1k78.js} +2 -2
- package/dist/{TwinlistControlBase-CA-hS5do.js → TwinlistControlBase-C-LwkBvD.js} +3 -3
- package/dist/{TwinlistLoadingInfo-CczuC-Fz.js → TwinlistLoadingInfo-C0fjx5Ik.js} +4 -4
- package/dist/{TypedStringFilter-1lIWO-LL.js → TypedStringFilter-C2m_LzO-.js} +1 -1
- package/dist/{ValueSwitch-SaYAIkL9.js → ValueSwitch-D4b_VjAX.js} +1 -1
- package/dist/{ValueSwitchControl-30-OhDts.js → ValueSwitchControl-D5Wvvjkl.js} +1 -1
- package/dist/{VerticalLayout-XZDIzC22.js → VerticalLayout-BWdIxoLw.js} +2 -2
- package/dist/{VerticalLayoutBase-BJqVRx97.js → VerticalLayoutBase-BDXZiCFe.js} +1 -1
- package/dist/{ZonedDateTimeControl-BxjsbtVt.js → ZonedDateTimeControl-DxYaZt1o.js} +4 -4
- package/dist/{_baseEach-D8RnrYrB.js → _baseEach-CeIQwrHm.js} +2 -2
- package/dist/{_baseIteratee-D9UH3M63.js → _baseIteratee-CcE6KGT4.js} +13 -13
- package/dist/{_getTag-CA0hgY0u.js → _getTag--DhdlgdA.js} +7 -7
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-BrGs9gYt.js → localTimeUtils-CCm4ffv1.js} +1 -1
- package/dist/{magic-string.es-Cu11P2Wx.js → magic-string.es-qNw6JCs_.js} +10 -10
- package/dist/src/constants/inputFormats.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +3 -0
- package/dist/src/renderers/defaultRenderers.d.ts +4 -50
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -25
- package/dist/src/renderers/fallbackRenderers.d.ts +1 -25
- package/dist/src/renderers/multiSelectListBoxRenderer.d.ts +2 -0
- package/dist/src/renderers/singleSelectListBoxRenderer.d.ts +2 -0
- package/dist/src/renderers/textRenderer.d.ts +1 -25
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -13
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +3 -0
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +3 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +4 -13
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +2 -4
- package/dist/{svgWithTitle-CHVPPDPX.js → svgWithTitle-CMKpJKYe.js} +1 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-C1degr1B.js → toString-BNdfvkwo.js} +1 -1
- package/dist/{useBuiltinValidations-CRcABzj-.js → useBuiltinValidations-CPGk0tzm.js} +1 -1
- package/dist/{usePossibleValues-Cl7X2zdT.js → usePossibleValues-C_KA5P1k.js} +1 -1
- package/package.json +3 -3
- package/dist/Checkbox-wvG2anWL.js +0 -75
- package/dist/DropdownControl-DvKK3lKy.js +0 -84
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CIACum6_.js +0 -93
- package/dist/useHideOnNull-CCfNP3O7.js +0 -42
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as y, computed as m, openBlock as d, createBlock as i, withCtx as t, unref as r, normalizeProps as E, mergeProps as B, createCommentVNode as u, createVNode as F, renderSlot as h } from "vue";
|
|
2
|
-
import { u as L, L as P, E as w } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
|
|
3
|
-
import { u as N } from "./useBuiltinValidations-CRcABzj-.js";
|
|
4
|
-
import { u as $ } from "./useHideOnNull-CCfNP3O7.js";
|
|
5
|
-
import { C as H } from "./Checkbox-wvG2anWL.js";
|
|
6
|
-
import { I } from "./InputField-Blkdyhf0.js";
|
|
7
|
-
const z = /* @__PURE__ */ k({
|
|
8
|
-
__name: "TextControl",
|
|
9
|
-
props: {
|
|
10
|
-
control: {},
|
|
11
|
-
handleChange: { type: Function },
|
|
12
|
-
changeValue: { type: Function },
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
labelForId: {},
|
|
15
|
-
isValid: { type: Boolean },
|
|
16
|
-
messages: {},
|
|
17
|
-
onRegisterValidation: { type: Function }
|
|
18
|
-
},
|
|
19
|
-
setup(b) {
|
|
20
|
-
var c, p;
|
|
21
|
-
const l = b;
|
|
22
|
-
N(
|
|
23
|
-
{
|
|
24
|
-
pattern: ({ pattern: e }) => {
|
|
25
|
-
const o = new RegExp(`^(${e})$`);
|
|
26
|
-
return (n) => o.test(n ?? "");
|
|
27
|
-
},
|
|
28
|
-
minLength: ({ minLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) >= e,
|
|
29
|
-
maxLength: ({ maxLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) <= e
|
|
30
|
-
},
|
|
31
|
-
l
|
|
32
|
-
);
|
|
33
|
-
const f = L(
|
|
34
|
-
(c = l.control.uischema.options) == null ? void 0 : c.placeholderProvider,
|
|
35
|
-
((p = l.control.uischema.options) == null ? void 0 : p.placeholder) ?? ""
|
|
36
|
-
), a = y(null), { showCheckbox: g, showControl: V, checkboxProps: C } = $(
|
|
37
|
-
{
|
|
38
|
-
control: m(() => l.control),
|
|
39
|
-
disabled: m(() => l.disabled),
|
|
40
|
-
controlElement: a
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
setDefault: () => l.changeValue(""),
|
|
44
|
-
setNull: () => l.changeValue(null)
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
return (e, o) => {
|
|
48
|
-
var n;
|
|
49
|
-
return d(), i(P, {
|
|
50
|
-
label: e.control.label,
|
|
51
|
-
"hide-control-header": (n = e.control.uischema.options) == null ? void 0 : n.hideControlHeader
|
|
52
|
-
}, {
|
|
53
|
-
"before-label": t(() => [
|
|
54
|
-
r(g) ? (d(), i(r(H), E(B({ key: 0 }, r(C))), null, 16)) : u("", !0)
|
|
55
|
-
]),
|
|
56
|
-
default: t(({ labelForId: s }) => [
|
|
57
|
-
r(V) ? (d(), i(w, {
|
|
58
|
-
key: 0,
|
|
59
|
-
errors: e.messages.errors
|
|
60
|
-
}, {
|
|
61
|
-
default: t(() => [
|
|
62
|
-
F(r(I), {
|
|
63
|
-
id: s,
|
|
64
|
-
ref_key: "controlElement",
|
|
65
|
-
ref: a,
|
|
66
|
-
placeholder: r(f),
|
|
67
|
-
"model-value": e.control.data,
|
|
68
|
-
disabled: e.disabled,
|
|
69
|
-
"is-valid": e.isValid,
|
|
70
|
-
compact: "",
|
|
71
|
-
"onUpdate:modelValue": e.changeValue
|
|
72
|
-
}, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"])
|
|
73
|
-
]),
|
|
74
|
-
_: 2
|
|
75
|
-
}, 1032, ["errors"])) : u("", !0)
|
|
76
|
-
]),
|
|
77
|
-
icon: t(() => [
|
|
78
|
-
h(e.$slots, "icon")
|
|
79
|
-
]),
|
|
80
|
-
buttons: t(({ hover: s }) => [
|
|
81
|
-
h(e.$slots, "buttons", {
|
|
82
|
-
hover: s,
|
|
83
|
-
controlHTMLElement: a.value
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
_: 3
|
|
87
|
-
}, 8, ["label", "hide-control-header"]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
export {
|
|
92
|
-
z as _
|
|
93
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { computed as u, unref as a, watch as h, nextTick as m } from "vue";
|
|
2
|
-
const f = ({
|
|
3
|
-
control: o,
|
|
4
|
-
disabled: d,
|
|
5
|
-
controlElement: i
|
|
6
|
-
}, c) => {
|
|
7
|
-
const t = u(
|
|
8
|
-
() => {
|
|
9
|
-
var e, l;
|
|
10
|
-
return ((l = (e = a(o).uischema) == null ? void 0 : e.options) == null ? void 0 : l.hideOnNull) ?? !1;
|
|
11
|
-
}
|
|
12
|
-
), s = u(
|
|
13
|
-
() => a(o).data === null || typeof a(o).data > "u"
|
|
14
|
-
), n = u(() => !(t.value && s.value));
|
|
15
|
-
h(
|
|
16
|
-
() => n.value,
|
|
17
|
-
() => m(() => {
|
|
18
|
-
var e, l;
|
|
19
|
-
return (l = (e = i.value) == null ? void 0 : e.focus) == null ? void 0 : l.call(e);
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
const p = (e) => c[e ? "setDefault" : "setNull"]();
|
|
23
|
-
return {
|
|
24
|
-
showCheckbox: t,
|
|
25
|
-
showControl: n,
|
|
26
|
-
checkboxProps: u(() => ({
|
|
27
|
-
modelValue: !s.value,
|
|
28
|
-
"onUpdate:modelValue": p,
|
|
29
|
-
disabled: a(d),
|
|
30
|
-
/**
|
|
31
|
-
* These styles grant that the checkbox aligns with the label when placed in a LabeledControl
|
|
32
|
-
*/
|
|
33
|
-
style: {
|
|
34
|
-
marginTop: "-3px",
|
|
35
|
-
marginRight: "-15px"
|
|
36
|
-
}
|
|
37
|
-
}))
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
f as u
|
|
42
|
-
};
|