@knime/jsonforms 1.18.5 → 1.18.6
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 +6 -0
- package/dist/{AnyOfTwinlist-BAwx6fWr.js → AnyOfTwinlist-gzLO2MKV.js} +1 -1
- package/dist/{Button-CUyJJ5oz.js → Button-Dda5J_Ov.js} +1 -1
- package/dist/{Checkbox-CzMSao8p.js → Checkbox-D2xeiXLu.js} +1 -1
- package/dist/{CheckboxControl-COJ86l-n.js → CheckboxControl-C1d02rTr.js} +9 -9
- package/dist/CheckboxesControl-yMvCHCji.js +37 -0
- package/dist/{ComboBoxControl-BUJQqI4X.js → ComboBoxControl-DqMLJmSS.js} +3 -3
- package/dist/{DateControl-DZ2Vu3Je.js → DateControl-C3KNAi0p.js} +1 -1
- package/dist/{DateTimeControl-jxQPI4dB.js → DateTimeControl-0E9gFDab.js} +1 -1
- package/dist/{DateTimeFormatInput-DVWjGWDG.js → DateTimeFormatInput-BzIbhecB.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-DYxjJjMN.js → DateTimeFormatPickerControl-szgIA4EC.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CeoVA0IL.js → DateTimeFormatPickerWithTypeControl-B1WjDKL6.js} +4 -4
- package/dist/{Dropdown-CbyDcvL5.js → Dropdown-Cjuv07DI.js} +2 -2
- package/dist/{DropdownControl-L1EAb0pj.js → DropdownControl-BngLLAhP.js} +3 -3
- package/dist/{HorizontalLayout-BdWfkVXm.js → HorizontalLayout-I3m1LiGf.js} +3 -3
- package/dist/{InputField-Ds-kKFLj.js → InputField-DWgTvNH5.js} +1 -1
- package/dist/{IntegerControl-B9h6oEtw.js → IntegerControl-BKLFuDQz.js} +1 -1
- package/dist/{IntervalControl-CX2YqRUZ.js → IntervalControl-CymzpG3g.js} +23 -23
- package/dist/{Label-DNOWhc4a.js → Label-D8GzjSce.js} +1 -1
- package/dist/{LoadingDropdown-BJtivb5q.js → LoadingDropdown-BOy8LwzL.js} +8 -8
- package/dist/{LoadingIcon-DpfMnp1Y.js → LoadingIcon-BFhDwjCD.js} +1 -1
- package/dist/{ManualTwinlistControl-C2IVPFQz.js → ManualTwinlistControl-B6X2AOT0.js} +9 -9
- package/dist/{MultiSelectListBoxControl-D-ve0TnH.js → MultiSelectListBoxControl-BPp-6zDR.js} +2 -2
- package/dist/{MultimodeTwinlistControl-piec1IxJ.js → MultimodeTwinlistControl-BD7SneIV.js} +248 -149
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-CalJDSPZ.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_03e29ad9_lang-BhDbFHeU.js} +2 -2
- package/dist/{MultiselectListBox-BJcy4Dqw.js → MultiselectListBox-CD45Rvi6.js} +4 -4
- package/dist/{NameFilter-fQPaQQ-K.js → NameFilter-BGsRj5hM.js} +1 -1
- package/dist/{NumberControl-D3PvSv9N.js → NumberControl-DN8HkUDH.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-D_J7b5uG.js → NumberControlBase.vue_vue_type_script_setup_true_lang-EOqEf4UB.js} +2 -2
- package/dist/{NumberInput-BW8n8mei.js → NumberInput-By1qufZl.js} +1 -1
- package/dist/{OneOfDropdown-BxS8z550.js → OneOfDropdown-n7F_OveO.js} +1 -1
- package/dist/{RadioControl-D0j66cGm.js → RadioControl-BSthzT0k.js} +7 -7
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D4l2SKa8.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qHfUX6ZV.js} +2 -2
- package/dist/{RichTextControl-D5rrfmtF.js → RichTextControl-1VXTtZjp.js} +8 -8
- package/dist/{SectionHeading-1A2qYqXS.js → SectionHeading-CwDxoevE.js} +2 -2
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-llWni5tV.js → SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js} +6893 -6769
- package/dist/{SectionLayout-DFikyU-W.js → SectionLayout-BNWY9b0J.js} +4 -4
- package/dist/SettingsSubPanel-I2O8Kbpm.js +5 -0
- package/dist/{SettingsSubPanelLayout-CPgboIRG.js → SettingsSubPanelLayout-DI3XOyR8.js} +5 -5
- package/dist/{SimpleButtonControl-CPbHVRRO.js → SimpleButtonControl-DmhTAD4l.js} +2 -2
- package/dist/{SimpleTwinlistControl-JXguJiZW.js → SimpleTwinlistControl-BfLfCaV4.js} +2 -2
- package/dist/{SingleSelectControl-CI7DFlai.js → SingleSelectControl-DeEOElA3.js} +2 -2
- package/dist/{SingleSelectListBoxControl-BUKJdy2E.js → SingleSelectListBoxControl-8IVN9k6K.js} +3 -3
- package/dist/{SortListControl-CW2yBUbn.js → SortListControl-BdhN6wD2.js} +23 -23
- package/dist/{StyledListItem-BMj67bKv.js → StyledListItem-fZvZ3bHQ.js} +1 -1
- package/dist/{TextAreaControl-C2VVMNpr.js → TextAreaControl-Cz51TD5P.js} +10 -10
- package/dist/{TextControl-CYhm8kPo.js → TextControl-BXyiqNIk.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4RO9YQFy.js → TextControl.vue_vue_type_script_setup_true_lang-CX9Ht0uC.js} +3 -3
- package/dist/{TimeControl-CB00mOhn.js → TimeControl-DSfhl_XR.js} +1 -1
- package/dist/{TwinlistControlBase-CiWgQHIA.js → TwinlistControlBase-BVyw1OGw.js} +9 -9
- package/dist/{TwinlistLoadingInfo-DYcRz-dw.js → TwinlistLoadingInfo-osSNnYXw.js} +6 -6
- package/dist/{TypedStringFilter-D5YWGU1h.js → TypedStringFilter-C4hEx8ou.js} +1 -1
- package/dist/{ValueSwitch-C7owbg0E.js → ValueSwitch-BzpZxWnJ.js} +1 -1
- package/dist/{ValueSwitchControl-CTgP7Rpv.js → ValueSwitchControl-BdoxdUxX.js} +1 -1
- package/dist/{VerticalLayout-BZ63G78T.js → VerticalLayout-CzskYqza.js} +2 -2
- package/dist/{VerticalLayoutBase-BaY_sA6C.js → VerticalLayoutBase-CC2RarHk.js} +5 -5
- package/dist/{ZonedDateTimeControl-jwwn17_l.js → ZonedDateTimeControl-BXqfWqhJ.js} +4 -4
- package/dist/{_baseEach-CfZ9x5sM.js → _baseEach-DCDlbM_F.js} +2 -2
- package/dist/{_baseIteratee-IRzVWiYa.js → _baseIteratee-CBJOQflL.js} +3 -3
- package/dist/{_getTag-jzNOkMJ0.js → _getTag-f9WyTXP2.js} +1 -1
- package/dist/add-user-CKh821Ew-BL8fUgBJ.js +22 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +9 -9
- package/dist/{localTimeUtils-BVFJFQ9N.js → localTimeUtils-B5X5KcA6.js} +6 -6
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +3 -3
- package/dist/team-D1-xShh0-DP8zClGp.js +21 -0
- package/dist/testing.js +2 -2
- package/dist/{toString-DBbUR-sR.js → toString-Cf39i999.js} +1 -1
- package/dist/{useBuiltinValidations-D09sARbZ.js → useBuiltinValidations-PBjYh_0a.js} +1 -1
- package/dist/{usePossibleValues-DW0doQ49.js → usePossibleValues-ChX-uwlg.js} +1 -1
- package/dist/version-B-5dHgvX-DJQ17CCB.js +22 -0
- package/package.json +4 -5
- package/dist/Checkboxes-DiAtNfP2.js +0 -106
- package/dist/CheckboxesControl-CGTNxy3j.js +0 -38
- package/dist/SettingsSubPanel-_NdmpnHl.js +0 -5
package/dist/knime-jsonforms.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as c, ref as v, onMounted as N, createElementBlock as F, createCommentVNode as $, openBlock as l, createElementVNode as L, provide as A, computed as i, watch as _, createBlock as g, Suspense as I, withCtx as f, createVNode as h, renderSlot as b, unref as k, mergeProps as B, nextTick as O } from "vue";
|
|
2
|
-
import { _ as w, p as J, F as M, s as R, U as V, i as U, a as z } from "./SectionHeading.
|
|
3
|
-
import { E as ne, L as le, b as ie, c as ce, j as de, f as ue, d as me, g as pe, h as fe, n as he, l as ve, k as ge, m as De, e as ye, o as Pe, t as xe, u as Se, w as _e } from "./SectionHeading.
|
|
4
|
-
import { default as Ce } from "./SimpleButtonControl-
|
|
5
|
-
import { _ as Le } from "./TextControl.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { V as we } from "./VerticalLayoutBase-
|
|
7
|
-
import { S as Ee } from "./SectionHeading-
|
|
8
|
-
import { S as Ne } from "./SettingsSubPanel-
|
|
2
|
+
import { _ as w, p as J, F as M, s as R, U as V, i as U, a as z } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
3
|
+
import { E as ne, L as le, b as ie, c as ce, j as de, f as ue, d as me, g as pe, h as fe, n as he, l as ve, k as ge, m as De, e as ye, o as Pe, t as xe, u as Se, w as _e } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
4
|
+
import { default as Ce } from "./SimpleButtonControl-DmhTAD4l.js";
|
|
5
|
+
import { _ as Le } from "./TextControl.vue_vue_type_script_setup_true_lang-CX9Ht0uC.js";
|
|
6
|
+
import { V as we } from "./VerticalLayoutBase-CC2RarHk.js";
|
|
7
|
+
import { S as Ee } from "./SectionHeading-CwDxoevE.js";
|
|
8
|
+
import { S as Ne } from "./SettingsSubPanel-I2O8Kbpm.js";
|
|
9
9
|
const G = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "loading-dialog skeleton-wrapper"
|
|
@@ -21,7 +21,7 @@ const G = {
|
|
|
21
21
|
L("div", { class: "loading-dialog-content skeleton" }, null, -1)
|
|
22
22
|
])])) : $("", !0);
|
|
23
23
|
}
|
|
24
|
-
}), X = /* @__PURE__ */ w(q, [["__scopeId", "data-v-
|
|
24
|
+
}), X = /* @__PURE__ */ w(q, [["__scopeId", "data-v-38d90aca"]]), Y = { class: "dialog" }, C = "EXPOSED_METHOD", K = /* @__PURE__ */ c({
|
|
25
25
|
__name: "JsonFormsDialog",
|
|
26
26
|
props: {
|
|
27
27
|
schema: {},
|
|
@@ -117,7 +117,7 @@ const G = {
|
|
|
117
117
|
}))
|
|
118
118
|
]));
|
|
119
119
|
}
|
|
120
|
-
}), te = /* @__PURE__ */ w(K, [["__scopeId", "data-v-
|
|
120
|
+
}), te = /* @__PURE__ */ w(K, [["__scopeId", "data-v-a067eab2"]]), Q = {
|
|
121
121
|
layout: {
|
|
122
122
|
type: Object,
|
|
123
123
|
required: !0
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveComponent as Ve, createElementBlock as A, openBlock as x, normalizeClass as oe, createElementVNode as q, createCommentVNode as ie, withModifiers as Wt, createVNode as V, reactive as za, computed as T, defineComponent as $e, ref as De, watch as Ue, onMounted as Rn, onUnmounted as Ga, toRefs as ql, nextTick as gr, useAttrs as jl, createBlock as Pe, renderSlot as Mr, unref as P, resolveDynamicComponent as Za, normalizeProps as br, mergeProps as Pt, inject as Cr, toRef as Dn, withCtx as Me, toDisplayString as He, Fragment as xe, renderList as Ke, normalizeStyle as Dr, withKeys as Cn, withDirectives as Bs, watchEffect as zs, provide as Or, guardReactiveProps as $a, createTextVNode as Ka, isRef as lr, Transition as Gs, resolveDirective as Vl, toHandlers as Zs } from "vue";
|
|
2
2
|
import { c as Bl } from "./popper-LGjf7Wza.js";
|
|
3
|
-
import { _ as Ks, I as qn, J as zl } from "./SectionHeading.
|
|
4
|
-
import { D as Gl } from "./Dropdown-
|
|
3
|
+
import { _ as Ks, I as qn, J as zl } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
4
|
+
import { D as Gl } from "./Dropdown-Cjuv07DI.js";
|
|
5
5
|
import { A as Zl } from "./arrow-dropdown-BHK4j8GT.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { a as Kl } from "./toString-
|
|
8
|
-
import { b as Xl } from "./_baseIteratee-
|
|
9
|
-
import { b as Ql } from "./_baseEach-
|
|
10
|
-
import { d as Jl } from "./_getTag-
|
|
7
|
+
import { a as Kl } from "./toString-Cf39i999.js";
|
|
8
|
+
import { b as Xl } from "./_baseIteratee-CBJOQflL.js";
|
|
9
|
+
import { b as Ql } from "./_baseEach-DCDlbM_F.js";
|
|
10
|
+
import { d as Jl } from "./_getTag-f9WyTXP2.js";
|
|
11
11
|
import { i as ec } from "./isArray-WzO_os3q.js";
|
|
12
12
|
function st(e) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueControlPropsForLabelContent } from '../higherOrderComponents
|
|
1
|
+
import { VueControlPropsForLabelContent } from '../higherOrderComponents';
|
|
2
2
|
type __VLS_Props = VueControlPropsForLabelContent<string[]>;
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
4
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { KdsCheckboxValue } from '@knime/kds-components';
|
|
3
3
|
import { Control } from '../../types/Control';
|
|
4
|
-
type CheckboxValue = KdsCheckboxProps["modelValue"];
|
|
5
4
|
declare const _default: ({ control, disabled, changeValue, controlElement, }: {
|
|
6
5
|
control: Ref<Control>;
|
|
7
6
|
disabled: Ref<boolean>;
|
|
@@ -14,10 +13,11 @@ declare const _default: ({ control, disabled, changeValue, controlElement, }: {
|
|
|
14
13
|
showControl: import('vue').ComputedRef<boolean>;
|
|
15
14
|
checkboxProps: import('vue').ComputedRef<{
|
|
16
15
|
modelValue: boolean;
|
|
17
|
-
"onUpdate:modelValue": (value:
|
|
16
|
+
"onUpdate:modelValue": (value: KdsCheckboxValue) => void;
|
|
18
17
|
disabled: boolean;
|
|
19
18
|
class: string;
|
|
20
19
|
label: undefined;
|
|
20
|
+
title: string;
|
|
21
21
|
}>;
|
|
22
22
|
};
|
|
23
23
|
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as o, createElementVNode as n } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
viewBox: "0 0 12 12"
|
|
8
|
+
};
|
|
9
|
+
function a(c, e) {
|
|
10
|
+
return o(), t("svg", r, [...e[0] || (e[0] = [
|
|
11
|
+
n("path", {
|
|
12
|
+
d: "M5.81 7.235a2 2 0 0 0-.542-.65 2.6 2.6 0 0 0-.811-.433A3 3 0 0 0 3.5 6a3 3 0 0 0-.957.152c-.303.1-.579.248-.81.434a2 2 0 0 0-.543.649A1.66 1.66 0 0 0 1 8m10 2a1.66 1.66 0 0 0-.19-.765 2 2 0 0 0-.542-.65 2.6 2.6 0 0 0-.811-.433A3 3 0 0 0 8.5 8a3 3 0 0 0-.957.152c-.303.1-.579.248-.81.434a2 2 0 0 0-.543.649A1.66 1.66 0 0 0 6 10M5 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm5 2a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",
|
|
13
|
+
"vector-effect": "non-scaling-stroke"
|
|
14
|
+
}, null, -1)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const s = { render: a };
|
|
18
|
+
export {
|
|
19
|
+
s as default,
|
|
20
|
+
a as render
|
|
21
|
+
};
|
package/dist/testing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as nh from "vue";
|
|
2
2
|
import { ssrUtils as Ii, initDirectivesForSSR as V_, nextTick as uo, defineComponent as li, computed as kr, h as En, shallowReactive as q_, reactive as U_, ref as rh, createApp as W_, transformVNodeArgs as z_, setDevtoolsHook as K_, isRef as G_, TransitionGroup as H_, Transition as X_, BaseTransition as Y_ } from "vue";
|
|
3
|
-
import { q as J_, r as Q_, f as Z_ } from "./SectionHeading.
|
|
4
|
-
import { b as em } from "./_baseIteratee-
|
|
3
|
+
import { q as J_, r as Q_, f as Z_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
4
|
+
import { b as em } from "./_baseIteratee-CBJOQflL.js";
|
|
5
5
|
function tm(e, t) {
|
|
6
6
|
return e > t;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as g, S as s } from "./SectionHeading.
|
|
1
|
+
import { q as g, S as s } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
2
2
|
import { i as l } from "./isArray-WzO_os3q.js";
|
|
3
3
|
function p(r, t) {
|
|
4
4
|
for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onUnmounted as u, toRef as p, computed as d } from "vue";
|
|
2
|
-
import { u as f } from "./SectionHeading.
|
|
2
|
+
import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
3
3
|
const h = (t = {}) => t.validation || null, m = (t) => t.replace(/^validation\./, ""), v = (t) => {
|
|
4
4
|
const a = (t.providedOptions ?? []).filter(
|
|
5
5
|
(e) => e.startsWith("validation.")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as l } from "vue";
|
|
2
|
-
import { u as d } from "./SectionHeading.
|
|
2
|
+
import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
3
3
|
const t = (s, e) => {
|
|
4
4
|
const u = l(() => s.value.uischema), o = d(u, "possibleValues");
|
|
5
5
|
return { possibleValues: l(() => u.value.providedOptions?.includes("possibleValues") ? o.value : u.value.options?.possibleValues ?? (typeof e?.defaultOnNonProvided > "u" ? [] : e?.defaultOnNonProvided)) };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
8
|
+
viewBox: "0 0 12 12"
|
|
9
|
+
};
|
|
10
|
+
function l(s, e) {
|
|
11
|
+
return n(), o("svg", t, [...e[0] || (e[0] = [
|
|
12
|
+
r("path", {
|
|
13
|
+
d: "M6 10.5a4.5 4.5 0 1 0-3.182-7.682M6 3.2v2.908l1.24 1.24m-4.422-4.53V1m0 1.818H4.5M1.67 7.231a4.5 4.5 0 0 0 .47 1.084m-.58-3.048c.068-.42.194-.817.369-1.187m2.614 6.179a4.5 4.5 0 0 1-1.099-.555",
|
|
14
|
+
"vector-effect": "non-scaling-stroke"
|
|
15
|
+
}, null, -1)
|
|
16
|
+
])]);
|
|
17
|
+
}
|
|
18
|
+
const i = { render: l };
|
|
19
|
+
export {
|
|
20
|
+
i as default,
|
|
21
|
+
l as render
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.6",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"@jsonforms/core": "3.4.0",
|
|
17
17
|
"@jsonforms/vue": "3.4.0",
|
|
18
18
|
"@jsonforms/vue-vanilla": "3.4.0",
|
|
19
|
-
"@knime/kds-components": "0.5
|
|
19
|
+
"@knime/kds-components": "0.6.5",
|
|
20
20
|
"ajv": "8.13.0",
|
|
21
21
|
"date-fns": "2.30.0",
|
|
22
22
|
"focus-trap-vue": "4.0.3",
|
|
23
23
|
"tabbable": "6.2.0",
|
|
24
24
|
"uuid": "10.0.0",
|
|
25
|
-
"@knime/components": "1.45.3",
|
|
26
25
|
"@knime/rich-text-editor": "1.8.9",
|
|
26
|
+
"@knime/utils": "1.9.2",
|
|
27
27
|
"@knime/styles": "1.15.0",
|
|
28
|
-
"@knime/
|
|
28
|
+
"@knime/components": "1.45.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"consola": "3.x",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"consola": "3.4.2",
|
|
39
39
|
"lodash-es": "4.17.23",
|
|
40
40
|
"modern-normalize": "3.0.1",
|
|
41
|
-
"postcss": "8.5.6",
|
|
42
41
|
"type-fest": "4.26.1",
|
|
43
42
|
"typescript": "^5.8.3",
|
|
44
43
|
"v-calendar": "knime/v-calendar#048477f",
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { C as c } from "./Checkbox-CzMSao8p.js";
|
|
2
|
-
import { resolveComponent as u, createElementBlock as s, openBlock as o, normalizeClass as f, Fragment as m, renderList as h, createBlock as p, withCtx as x, renderSlot as b, createTextVNode as V, toDisplayString as y } from "vue";
|
|
3
|
-
import { _ as k } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-llWni5tV.js";
|
|
4
|
-
const _ = {
|
|
5
|
-
name: "Checkboxes",
|
|
6
|
-
components: {
|
|
7
|
-
Checkbox: c
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
/**
|
|
11
|
-
* List of possible values. Each item must have an `id` and a `text` property.
|
|
12
|
-
* @example
|
|
13
|
-
* [{
|
|
14
|
-
* id: 'pdf',
|
|
15
|
-
* text: 'PDF'
|
|
16
|
-
* }, {
|
|
17
|
-
* id: 'XLS',
|
|
18
|
-
* text: 'Excel',
|
|
19
|
-
* }]
|
|
20
|
-
*/
|
|
21
|
-
possibleValues: {
|
|
22
|
-
type: Array,
|
|
23
|
-
default: () => [],
|
|
24
|
-
validator(e) {
|
|
25
|
-
return Array.isArray(e) ? e.every(
|
|
26
|
-
(a) => a.hasOwnProperty("id") && a.hasOwnProperty("text")
|
|
27
|
-
) : !1;
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Controls the alignment
|
|
32
|
-
*/
|
|
33
|
-
alignment: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "horizontal",
|
|
36
|
-
validator(e) {
|
|
37
|
-
return ["horizontal", "vertical"].includes(e);
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
disabled: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !1
|
|
43
|
-
},
|
|
44
|
-
isValid: {
|
|
45
|
-
default: !0,
|
|
46
|
-
type: Boolean
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* selected value (which is a list of ids of entries)
|
|
50
|
-
*/
|
|
51
|
-
modelValue: {
|
|
52
|
-
type: Array,
|
|
53
|
-
default: () => []
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
emits: ["update:modelValue"],
|
|
57
|
-
methods: {
|
|
58
|
-
validate() {
|
|
59
|
-
const e = !this.possibleValues.some((a) => a.invalid);
|
|
60
|
-
return {
|
|
61
|
-
isValid: e,
|
|
62
|
-
errorMessage: e ? null : "One or more of the selected items is invalid."
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
onUpdateModelValue(e, a) {
|
|
66
|
-
let t = Array.from(this.modelValue);
|
|
67
|
-
a ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((r) => r !== e), consola.trace("Checkboxes value changed to", t), this.$emit("update:modelValue", t);
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Is at least one checkbox checked?
|
|
71
|
-
* @returns {boolean}
|
|
72
|
-
*/
|
|
73
|
-
hasSelection() {
|
|
74
|
-
return this.$refs.boxes.some((e) => e.isChecked());
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
function v(e, a, t, r, C, d) {
|
|
79
|
-
const n = u("Checkbox");
|
|
80
|
-
return o(), s("div", {
|
|
81
|
-
class: f(["checkboxes", t.alignment])
|
|
82
|
-
}, [
|
|
83
|
-
(o(!0), s(m, null, h(t.possibleValues, (l) => (o(), p(n, {
|
|
84
|
-
ref_for: !0,
|
|
85
|
-
ref: "boxes",
|
|
86
|
-
key: `checkboxes-${l.id}`,
|
|
87
|
-
"model-value": t.modelValue.indexOf(l.id) > -1,
|
|
88
|
-
title: l.text,
|
|
89
|
-
invalid: l.invalid,
|
|
90
|
-
disabled: t.disabled,
|
|
91
|
-
class: "box",
|
|
92
|
-
"onUpdate:modelValue": (i) => d.onUpdateModelValue(l.id, i)
|
|
93
|
-
}, {
|
|
94
|
-
default: x(() => [
|
|
95
|
-
b(e.$slots, "label", { slotItem: l }, () => [
|
|
96
|
-
V(y(l.text), 1)
|
|
97
|
-
], !0)
|
|
98
|
-
]),
|
|
99
|
-
_: 2
|
|
100
|
-
}, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))), 128))
|
|
101
|
-
], 2);
|
|
102
|
-
}
|
|
103
|
-
const O = /* @__PURE__ */ k(_, [["render", v], ["__scopeId", "data-v-c83ea4f7"]]);
|
|
104
|
-
export {
|
|
105
|
-
O as C
|
|
106
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as t, ref as i, toRef as u, onMounted as d, createBlock as r, createCommentVNode as m, openBlock as p, unref as b } from "vue";
|
|
2
|
-
import { o as f } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { u as h } from "./usePossibleValues-DW0doQ49.js";
|
|
4
|
-
import { C as v } from "./Checkboxes-DiAtNfP2.js";
|
|
5
|
-
import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-llWni5tV.js";
|
|
6
|
-
const y = /* @__PURE__ */ c({
|
|
7
|
-
__name: "CheckboxesControl",
|
|
8
|
-
props: {
|
|
9
|
-
control: {},
|
|
10
|
-
handleChange: { type: Function },
|
|
11
|
-
changeValue: { type: Function },
|
|
12
|
-
disabled: { type: Boolean },
|
|
13
|
-
isValid: { type: Boolean },
|
|
14
|
-
onRegisterValidation: { type: Function },
|
|
15
|
-
labelForId: {}
|
|
16
|
-
},
|
|
17
|
-
setup(e) {
|
|
18
|
-
const o = e, n = t(
|
|
19
|
-
() => o.control.uischema.options?.checkboxLayout
|
|
20
|
-
), a = i(null), { possibleValues: s } = h(u(o, "control")), l = t(() => a.value ?? s.value);
|
|
21
|
-
return d(() => {
|
|
22
|
-
a.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(f) : null;
|
|
23
|
-
}), (C, k) => l.value ? (p(), r(b(v), {
|
|
24
|
-
key: 0,
|
|
25
|
-
id: e.labelForId,
|
|
26
|
-
class: "checkboxes",
|
|
27
|
-
"possible-values": l.value,
|
|
28
|
-
alignment: n.value,
|
|
29
|
-
disabled: e.disabled,
|
|
30
|
-
"model-value": e.control.data,
|
|
31
|
-
"is-valid": e.isValid,
|
|
32
|
-
"onUpdate:modelValue": e.changeValue
|
|
33
|
-
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : m("", !0);
|
|
34
|
-
}
|
|
35
|
-
}), O = /* @__PURE__ */ V(y, [["__scopeId", "data-v-2891ceef"]]);
|
|
36
|
-
export {
|
|
37
|
-
O as default
|
|
38
|
-
};
|