@knime/jsonforms 1.22.0 → 1.23.1
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-B8PBh1xj.js → AnyOfTwinlist-B_UW1LI0.js} +1 -1
- package/dist/{CheckboxControl-D7Lcz8gt.js → CheckboxControl-BMyOusAA.js} +1 -1
- package/dist/{CheckboxesControl-BuQCEx59.js → CheckboxesControl-CkeTdrFS.js} +2 -2
- package/dist/{ColorControl-BkXpfCEC.js → ColorControl-CAL0L6L4.js} +1 -1
- package/dist/{ColorPreviewControl-ueHi_a0-.js → ColorPreviewControl-DvKX8YeB.js} +1 -1
- package/dist/{ComboBoxControl-14P-HY8g.js → ComboBoxControl-CbMBzHre.js} +2 -2
- package/dist/{DateControl-CLUwLf19.js → DateControl-RJtZbKPy.js} +1 -1
- package/dist/{DateTimeControl-BneMmxG1.js → DateTimeControl-CjqPP5Mu.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-BBWLs7Ci.js → DateTimeFormatPickerControl-JVgCROnR.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-DoWWcgus.js → DateTimeFormatPickerWithTypeControl-DSrj0KvO.js} +1 -1
- package/dist/{DropdownControl-CYvjaJAK.js → DropdownControl-CPfIoin1.js} +2 -2
- package/dist/{ExecutorCoresControl-DyFCrXLb.js → ExecutorCoresControl-gLv8RzqL.js} +1 -1
- package/dist/{ExecutorMemoryControl-DAilad7a.js → ExecutorMemoryControl-swyZuGDr.js} +1 -1
- package/dist/{FileUploadControl-CJwBvyiQ.js → FileUploadControl-Db66TCRo.js} +2 -2
- package/dist/{GridSelectionControl-BXQv_7jE.js → GridSelectionControl-Djn2T13y.js} +1 -1
- package/dist/{HorizontalLayout-OsC-y3Or.js → HorizontalLayout-IQQdI26A.js} +1 -1
- package/dist/{IntegerControl-DQ6CynXZ.js → IntegerControl-j0BdGN1e.js} +1 -1
- package/dist/{IntervalControl-Beh2DQID.js → IntervalControl-CwrYRFKJ.js} +1 -1
- package/dist/{LinkControl-CVCTakhR.js → LinkControl-fG24M9KW.js} +1 -1
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BkVLi3YU.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-DoE3qoLb.js} +1 -1
- package/dist/{ManualTwinlistControl-0u36AsRn.js → ManualTwinlistControl-BuTbAWnH.js} +3 -3
- package/dist/{MultiSelectListBoxControl-Chpsgdn4.js → MultiSelectListBoxControl-BXGwgWs_.js} +3 -3
- package/dist/{MultimodeTwinlistControl-BhtwjZIb.js → MultimodeTwinlistControl-D-gl_pVW.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DXd5FIto.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-D_r7uwKB.js} +3 -3
- package/dist/{NameFilter-D11BngiR.js → NameFilter-BVT5yrA-.js} +1 -1
- package/dist/{NumberControl-CjQ5cb9n.js → NumberControl-vAh5HuIS.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DuZUTwWr.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DvCAjhNZ.js} +2 -2
- package/dist/{OneOfDropdown-BmZpMZgI.js → OneOfDropdown-Bm5FQ6NA.js} +1 -1
- package/dist/ProgressButtonControl-brC36qlg.js +51 -0
- package/dist/{RadioButtonsWithDescriptionControl-BoqUh5Pc.js → RadioButtonsWithDescriptionControl-S1OeqZ0i.js} +1 -1
- package/dist/{RadioControl-DMZA_kWS.js → RadioControl-Cfe_kYfb.js} +1 -1
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DO_edeV7.js → RadioControlBase.vue_vue_type_script_setup_true_lang-COszpwIP.js} +2 -2
- package/dist/{ResourceControlBase-C_tH3Jl8.js → ResourceControlBase-DaMNlDhC.js} +1 -1
- package/dist/{RichTextControl-Bt1uDp0C.js → RichTextControl-Dekvygdy.js} +2 -2
- package/dist/{SectionHeading-BWPFs7uy.js → SectionHeading-DkmQqn9k.js} +1 -1
- package/dist/{SectionLayout-Dx5wn5j3.js → SectionLayout-CLqyOBZE.js} +3 -3
- package/dist/{SettingsSubPanel-DUa6yfOJ.js → SettingsSubPanel-BIKfyhCw.js} +1 -1
- package/dist/{SettingsSubPanelLayout-B-nXxWwO.js → SettingsSubPanelLayout-DLplwwNG.js} +4 -4
- package/dist/{SimpleButtonControl-DxI1mFtb.js → SimpleButtonControl-BIJ6K6qX.js} +14 -14
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_a203e154_lang-CNHmGiRi.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js} +6676 -6600
- package/dist/{SimpleTwinlistControl-Cq2JjAkn.js → SimpleTwinlistControl-BZWkpiSo.js} +2 -2
- package/dist/{SingleSelectControl-CNoQhpxh.js → SingleSelectControl-DAh9C1IS.js} +2 -2
- package/dist/{SingleSelectListBoxControl-CtxV3AJ3.js → SingleSelectListBoxControl-C102okGc.js} +3 -3
- package/dist/{SortListControl-DY1nBl05.js → SortListControl-CVdl-xw-.js} +8 -8
- package/dist/{StyledListItem-BaRk7CEL.js → StyledListItem-C-a_11mo.js} +1 -1
- package/dist/{TeamAndSpacesControl-BzRikYWI.js → TeamAndSpacesControl-B9JZJBXv.js} +1 -1
- package/dist/{TeamResourceControl-CapUI8Km.js → TeamResourceControl-JJIgYaMY.js} +1 -1
- package/dist/{TextAreaControl-DnlLga_u.js → TextAreaControl-DsJyw0Yv.js} +1 -1
- package/dist/{TextControl-DzWhVu0l.js → TextControl-DnVGNtbx.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BFcaQLGb.js → TextControl.vue_vue_type_script_setup_true_lang-Bp4FZd2C.js} +2 -2
- package/dist/{TimeControl-3dd1V-zN.js → TimeControl-DGrWNVz_.js} +1 -1
- package/dist/{TimeframesControl-ZTwIxa3g.js → TimeframesControl-DKaZAZeW.js} +1 -1
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-VnJtjgcy.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-CAk_iS6w.js} +2 -2
- package/dist/{TypedStringFilter-C-uWNSrj.js → TypedStringFilter-Cw5aL-PG.js} +1 -1
- package/dist/{ValueSwitchControl-B7OHEjjH.js → ValueSwitchControl-CE9z5s11.js} +1 -1
- package/dist/{VerticalLayout-uQksYYt2.js → VerticalLayout-DDGwEUts.js} +2 -2
- package/dist/{VerticalLayoutBase-DEHCE8nG.js → VerticalLayoutBase-Bv4ct09F.js} +1 -1
- package/dist/{ZonedDateTimeControl-nupm0U-p.js → ZonedDateTimeControl-yDCAQQ5B.js} +1 -1
- package/dist/{_Uint8Array-mj8HOaJ6.js → _Uint8Array-DGFCQcAO.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +44 -44
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/defaultRenderers.d.ts +119 -0
- package/dist/src/renderers/progressButtonRenderer.d.ts +119 -0
- package/dist/src/types/provided.d.ts +1 -1
- package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +21 -0
- package/dist/testing.js +3 -3
- package/dist/{toString-D9IJg6lL.js → toString-DqZWnsFs.js} +1 -1
- package/dist/{useBuiltinValidations-CAUeuDaZ.js → useBuiltinValidations-C92yDv0y.js} +1 -1
- package/dist/{usePossibleValues-D-GnrkrV.js → usePossibleValues-Vlw1CCFD.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-Dp0uNuG6.js → useUnknownValuesInTwinlist-EXO9oOxf.js} +1 -1
- package/package.json +4 -4
package/dist/knime-jsonforms.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as y, createElementVNode as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { L as de, S as ue, c as me, b as fe, d as pe, e as he, f as ve, g as ge, h as _e, j as De, k as ye, l as
|
|
4
|
-
import { default as Ne } from "./SimpleButtonControl-
|
|
5
|
-
import { _ as Be } from "./TextControl.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { V as Ie } from "./VerticalLayoutBase-
|
|
7
|
-
import { S as Oe } from "./SectionHeading-
|
|
8
|
-
import { S as Me } from "./SettingsSubPanel-
|
|
1
|
+
import { openBlock as l, createElementBlock as y, createElementVNode as w, renderSlot as h, defineComponent as v, ref as D, onMounted as A, createVNode as n, unref as i, createCommentVNode as B, provide as E, computed as d, watch as F, createBlock as b, Suspense as I, withCtx as _, mergeProps as J, nextTick as O } from "vue";
|
|
2
|
+
import { _ as P, K as p, p as R, s as M, U as V, i as U, a as z } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js";
|
|
3
|
+
import { L as de, S as ue, c as me, b as fe, d as pe, e as he, f as ve, g as ge, h as _e, j as De, k as ye, l as we, m as be, n as Pe, o as Se, q as xe, r as Le, t as $e, u as Ce, w as Fe, v as ke, x as Te } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js";
|
|
4
|
+
import { default as Ne } from "./SimpleButtonControl-BIJ6K6qX.js";
|
|
5
|
+
import { _ as Be } from "./TextControl.vue_vue_type_script_setup_true_lang-Bp4FZd2C.js";
|
|
6
|
+
import { V as Ie } from "./VerticalLayoutBase-Bv4ct09F.js";
|
|
7
|
+
import { S as Oe } from "./SectionHeading-DkmQqn9k.js";
|
|
8
|
+
import { S as Me } from "./SettingsSubPanel-BIKfyhCw.js";
|
|
9
9
|
const G = {}, H = { class: "flex-wrapper" }, K = { class: "form" };
|
|
10
10
|
function q(t, s) {
|
|
11
11
|
return l(), y("div", H, [
|
|
12
|
-
|
|
12
|
+
w("div", K, [
|
|
13
13
|
h(t.$slots, "default", {}, void 0, !0)
|
|
14
14
|
]),
|
|
15
15
|
h(t.$slots, "bottom-content", {}, void 0, !0)
|
|
16
16
|
]);
|
|
17
17
|
}
|
|
18
|
-
const X = /* @__PURE__ */
|
|
18
|
+
const X = /* @__PURE__ */ P(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]), Y = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "loading-dialog"
|
|
21
21
|
}, Q = { class: "two-columns" }, W = 200, Z = /* @__PURE__ */ v({
|
|
@@ -26,12 +26,12 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
26
26
|
setTimeout(() => {
|
|
27
27
|
s.value = !0;
|
|
28
28
|
}, W);
|
|
29
|
-
}), (r,
|
|
29
|
+
}), (r, a) => s.value ? (l(), y("div", Y, [
|
|
30
30
|
n(i(p), {
|
|
31
31
|
variant: "input-with-label",
|
|
32
32
|
repeat: 3
|
|
33
33
|
}),
|
|
34
|
-
|
|
34
|
+
w("div", Q, [
|
|
35
35
|
n(i(p), { variant: "input-with-label" }),
|
|
36
36
|
n(i(p), { variant: "input-with-label" })
|
|
37
37
|
]),
|
|
@@ -41,7 +41,7 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
41
41
|
})
|
|
42
42
|
])) : B("", !0);
|
|
43
43
|
}
|
|
44
|
-
}), ee = /* @__PURE__ */
|
|
44
|
+
}), ee = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-6920196f"]]), te = { class: "dialog" }, k = "EXPOSED_METHOD", oe = /* @__PURE__ */ v({
|
|
45
45
|
__name: "JsonFormsDialog",
|
|
46
46
|
props: {
|
|
47
47
|
schema: {},
|
|
@@ -54,27 +54,27 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
54
54
|
},
|
|
55
55
|
emits: ["updateData", "trigger", "change", "alert", "stateProviderListener", "initialized"],
|
|
56
56
|
setup(t, { expose: s, emit: r }) {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
const a = r, u = (e, o, g) => (o.type === V && // @ts-expect-error source doesn't exist on type object
|
|
58
|
+
o.context?.source !== k && setTimeout(() => O(() => a("updateData", o.path))), g(e, o)), c = (e) => {
|
|
59
|
+
a("change", e);
|
|
60
60
|
};
|
|
61
61
|
Object.entries({
|
|
62
|
-
trigger: (e) => o("trigger", e),
|
|
63
|
-
addStateProviderListener: (e,
|
|
64
|
-
sendAlert: (e) =>
|
|
65
|
-
validate: (e,
|
|
62
|
+
trigger: (e) => new Promise((o) => a("trigger", e, o)),
|
|
63
|
+
addStateProviderListener: (e, o) => a("stateProviderListener", e, o),
|
|
64
|
+
sendAlert: (e) => a("alert", e),
|
|
65
|
+
validate: (e, o) => {
|
|
66
66
|
if (!t.validate)
|
|
67
67
|
throw new Error(
|
|
68
68
|
`No validate function provided to JsonFormsDialog but validate called with arguments ${JSON.stringify(
|
|
69
|
-
{ id: e, data:
|
|
69
|
+
{ id: e, data: o }
|
|
70
70
|
)}`
|
|
71
71
|
);
|
|
72
|
-
return t.validate(e,
|
|
72
|
+
return t.validate(e, o);
|
|
73
73
|
}
|
|
74
|
-
}).forEach(([e,
|
|
75
|
-
const f = D(null),
|
|
74
|
+
}).forEach(([e, o]) => E(e, o));
|
|
75
|
+
const f = D(null), S = [], x = (e, o) => {
|
|
76
76
|
f.value.dispatch(
|
|
77
|
-
U.update(e, () =>
|
|
77
|
+
U.update(e, () => o, {
|
|
78
78
|
source: k
|
|
79
79
|
})
|
|
80
80
|
);
|
|
@@ -85,20 +85,20 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
85
85
|
}), j = F(
|
|
86
86
|
() => L.value,
|
|
87
87
|
(e) => {
|
|
88
|
-
e && (
|
|
88
|
+
e && (a("initialized"), j());
|
|
89
89
|
},
|
|
90
90
|
{ immediate: !0 }
|
|
91
91
|
);
|
|
92
92
|
F(
|
|
93
93
|
() => L.value,
|
|
94
94
|
(e) => {
|
|
95
|
-
e && ($(),
|
|
96
|
-
({ path:
|
|
95
|
+
e && ($(), S.forEach(
|
|
96
|
+
({ path: o, value: g }) => x(o, g)
|
|
97
97
|
));
|
|
98
98
|
}
|
|
99
99
|
), s({
|
|
100
|
-
updateData: async (e,
|
|
101
|
-
f.value ?
|
|
100
|
+
updateData: async (e, o) => {
|
|
101
|
+
f.value ? x(e, o) : (S.push({ path: e, value: o }), await T);
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
const C = D(null);
|
|
@@ -111,12 +111,12 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
111
111
|
middleware: u,
|
|
112
112
|
...t.ajv ? { ajv: t.ajv } : {}
|
|
113
113
|
}));
|
|
114
|
-
return (e,
|
|
115
|
-
|
|
114
|
+
return (e, o) => (l(), y("div", te, [
|
|
115
|
+
w("div", {
|
|
116
116
|
ref_key: "subPanelTeleportDest",
|
|
117
117
|
ref: C
|
|
118
118
|
}, null, 512),
|
|
119
|
-
(l(),
|
|
119
|
+
(l(), b(I, null, {
|
|
120
120
|
fallback: _(() => [
|
|
121
121
|
n(ee)
|
|
122
122
|
]),
|
|
@@ -137,7 +137,7 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
137
137
|
}))
|
|
138
138
|
]));
|
|
139
139
|
}
|
|
140
|
-
}), ne = /* @__PURE__ */
|
|
140
|
+
}), ne = /* @__PURE__ */ P(oe, [["__scopeId", "data-v-c46f57ba"]]), ae = /* @__PURE__ */ v({
|
|
141
141
|
__name: "FieldRenderer",
|
|
142
142
|
props: {
|
|
143
143
|
control: {},
|
|
@@ -145,14 +145,14 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
145
145
|
uischema: {}
|
|
146
146
|
},
|
|
147
147
|
setup(t) {
|
|
148
|
-
const s = (c, m) => c === "" ? m : `${c}.${m}`, r = t,
|
|
148
|
+
const s = (c, m) => c === "" ? m : `${c}.${m}`, r = t, a = d(() => s(r.control.path, r.fieldName)), u = d(
|
|
149
149
|
() => r.control.schema.properties[r.fieldName]
|
|
150
150
|
);
|
|
151
|
-
return (c, m) => (l(),
|
|
152
|
-
key:
|
|
151
|
+
return (c, m) => (l(), b(i(z), {
|
|
152
|
+
key: a.value,
|
|
153
153
|
schema: u.value,
|
|
154
154
|
uischema: t.uischema,
|
|
155
|
-
path:
|
|
155
|
+
path: a.value,
|
|
156
156
|
enabled: t.control.enabled,
|
|
157
157
|
renderers: t.control.renderers,
|
|
158
158
|
cells: t.control.cells
|
|
@@ -175,7 +175,7 @@ const X = /* @__PURE__ */ S(G, [["render", q], ["__scopeId", "data-v-2d34194b"]]
|
|
|
175
175
|
format: s.format
|
|
176
176
|
}
|
|
177
177
|
}));
|
|
178
|
-
return (
|
|
178
|
+
return (a, u) => (l(), b(ae, {
|
|
179
179
|
"field-name": t.fieldName,
|
|
180
180
|
uischema: r.value,
|
|
181
181
|
control: t.control
|
|
@@ -202,11 +202,11 @@ export {
|
|
|
202
202
|
_e as getAsyncSetupMethod,
|
|
203
203
|
De as handleAsyncComponents,
|
|
204
204
|
ye as inputFormats,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
we as layoutProps,
|
|
206
|
+
be as layoutToRenderer,
|
|
207
|
+
Pe as layouts,
|
|
208
|
+
Se as mapControls,
|
|
209
|
+
xe as mapLayouts,
|
|
210
210
|
Le as priorityRanks,
|
|
211
211
|
$e as toRenderers,
|
|
212
212
|
Ce as useProvidedState,
|
|
@@ -242,7 +242,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
242
242
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
243
243
|
updateData: (path: string, value: unknown) => Promise<void>;
|
|
244
244
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
245
|
-
trigger: (id: unknown) => any;
|
|
245
|
+
trigger: (id: unknown, done: () => void) => any;
|
|
246
246
|
updateData: (path: string) => any;
|
|
247
247
|
change: (args_0: {
|
|
248
248
|
data: unknown;
|
|
@@ -253,7 +253,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
253
253
|
}, callback: (value: unknown) => void) => any;
|
|
254
254
|
initialized: () => any;
|
|
255
255
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
256
|
-
onTrigger?: ((id: unknown) => any) | undefined;
|
|
256
|
+
onTrigger?: ((id: unknown, done: () => void) => any) | undefined;
|
|
257
257
|
onUpdateData?: ((path: string) => any) | undefined;
|
|
258
258
|
onChange?: ((args_0: {
|
|
259
259
|
data: unknown;
|
|
@@ -16,6 +16,7 @@ export declare const inputFormats: {
|
|
|
16
16
|
readonly comboBox: "comboBox";
|
|
17
17
|
readonly sortList: "sortList";
|
|
18
18
|
readonly simpleButton: "simpleButton";
|
|
19
|
+
readonly progressButton: "progressButton";
|
|
19
20
|
readonly textArea: "textArea";
|
|
20
21
|
readonly textMessage: "textMessage";
|
|
21
22
|
readonly localTime: "localTime";
|
|
@@ -375,6 +375,125 @@ export declare const controls: {
|
|
|
375
375
|
});
|
|
376
376
|
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
377
377
|
};
|
|
378
|
+
progressButtonRenderer: {
|
|
379
|
+
name: string;
|
|
380
|
+
control: {
|
|
381
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
382
|
+
control: {
|
|
383
|
+
data: undefined;
|
|
384
|
+
uischema: {
|
|
385
|
+
providedOptions?: string[];
|
|
386
|
+
id?: string;
|
|
387
|
+
};
|
|
388
|
+
} & Omit<{
|
|
389
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
390
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
391
|
+
path: string;
|
|
392
|
+
enabled: boolean;
|
|
393
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
394
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
395
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
396
|
+
cell: any;
|
|
397
|
+
}[];
|
|
398
|
+
config: any;
|
|
399
|
+
label: string;
|
|
400
|
+
description: string;
|
|
401
|
+
required: NonNullable<boolean | undefined>;
|
|
402
|
+
i18nKeyPrefix: string;
|
|
403
|
+
errors: string;
|
|
404
|
+
data: any;
|
|
405
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
406
|
+
id: string;
|
|
407
|
+
visible: boolean;
|
|
408
|
+
}, "data">;
|
|
409
|
+
handleChange: (path: string, value: unknown) => void;
|
|
410
|
+
changeValue: (newValue: undefined) => void;
|
|
411
|
+
disabled: boolean;
|
|
412
|
+
labelForId?: null;
|
|
413
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
414
|
+
P: {};
|
|
415
|
+
B: {};
|
|
416
|
+
D: {};
|
|
417
|
+
C: {};
|
|
418
|
+
M: {};
|
|
419
|
+
Defaults: {};
|
|
420
|
+
}, Readonly<{
|
|
421
|
+
control: {
|
|
422
|
+
data: undefined;
|
|
423
|
+
uischema: {
|
|
424
|
+
providedOptions?: string[];
|
|
425
|
+
id?: string;
|
|
426
|
+
};
|
|
427
|
+
} & Omit<{
|
|
428
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
429
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
430
|
+
path: string;
|
|
431
|
+
enabled: boolean;
|
|
432
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
433
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
434
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
435
|
+
cell: any;
|
|
436
|
+
}[];
|
|
437
|
+
config: any;
|
|
438
|
+
label: string;
|
|
439
|
+
description: string;
|
|
440
|
+
required: NonNullable<boolean | undefined>;
|
|
441
|
+
i18nKeyPrefix: string;
|
|
442
|
+
errors: string;
|
|
443
|
+
data: any;
|
|
444
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
445
|
+
id: string;
|
|
446
|
+
visible: boolean;
|
|
447
|
+
}, "data">;
|
|
448
|
+
handleChange: (path: string, value: unknown) => void;
|
|
449
|
+
changeValue: (newValue: undefined) => void;
|
|
450
|
+
disabled: boolean;
|
|
451
|
+
labelForId?: null;
|
|
452
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
453
|
+
__isFragment?: never;
|
|
454
|
+
__isTeleport?: never;
|
|
455
|
+
__isSuspense?: never;
|
|
456
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
457
|
+
control: {
|
|
458
|
+
data: undefined;
|
|
459
|
+
uischema: {
|
|
460
|
+
providedOptions?: string[];
|
|
461
|
+
id?: string;
|
|
462
|
+
};
|
|
463
|
+
} & Omit<{
|
|
464
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
465
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
466
|
+
path: string;
|
|
467
|
+
enabled: boolean;
|
|
468
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
469
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
470
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
471
|
+
cell: any;
|
|
472
|
+
}[];
|
|
473
|
+
config: any;
|
|
474
|
+
label: string;
|
|
475
|
+
description: string;
|
|
476
|
+
required: NonNullable<boolean | undefined>;
|
|
477
|
+
i18nKeyPrefix: string;
|
|
478
|
+
errors: string;
|
|
479
|
+
data: any;
|
|
480
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
481
|
+
id: string;
|
|
482
|
+
visible: boolean;
|
|
483
|
+
}, "data">;
|
|
484
|
+
handleChange: (path: string, value: unknown) => void;
|
|
485
|
+
changeValue: (newValue: undefined) => void;
|
|
486
|
+
disabled: boolean;
|
|
487
|
+
labelForId?: null;
|
|
488
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
489
|
+
$slots: {
|
|
490
|
+
buttons?(_: {
|
|
491
|
+
hover: boolean;
|
|
492
|
+
}): any;
|
|
493
|
+
};
|
|
494
|
+
});
|
|
495
|
+
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
496
|
+
};
|
|
378
497
|
textMessageRenderer: {
|
|
379
498
|
name: string;
|
|
380
499
|
control: import('vue').DefineComponent<{
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export declare const progressButtonRenderer: {
|
|
2
|
+
name: string;
|
|
3
|
+
control: {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
+
control: {
|
|
6
|
+
data: undefined;
|
|
7
|
+
uischema: {
|
|
8
|
+
providedOptions?: string[];
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
} & Omit<{
|
|
12
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
13
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
14
|
+
path: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
17
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
18
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
19
|
+
cell: any;
|
|
20
|
+
}[];
|
|
21
|
+
config: any;
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
required: NonNullable<boolean | undefined>;
|
|
25
|
+
i18nKeyPrefix: string;
|
|
26
|
+
errors: string;
|
|
27
|
+
data: any;
|
|
28
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
29
|
+
id: string;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
}, "data">;
|
|
32
|
+
handleChange: (path: string, value: unknown) => void;
|
|
33
|
+
changeValue: (newValue: undefined) => void;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
labelForId?: null;
|
|
36
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<{
|
|
44
|
+
control: {
|
|
45
|
+
data: undefined;
|
|
46
|
+
uischema: {
|
|
47
|
+
providedOptions?: string[];
|
|
48
|
+
id?: string;
|
|
49
|
+
};
|
|
50
|
+
} & Omit<{
|
|
51
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
52
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
53
|
+
path: string;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
56
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
57
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
58
|
+
cell: any;
|
|
59
|
+
}[];
|
|
60
|
+
config: any;
|
|
61
|
+
label: string;
|
|
62
|
+
description: string;
|
|
63
|
+
required: NonNullable<boolean | undefined>;
|
|
64
|
+
i18nKeyPrefix: string;
|
|
65
|
+
errors: string;
|
|
66
|
+
data: any;
|
|
67
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
68
|
+
id: string;
|
|
69
|
+
visible: boolean;
|
|
70
|
+
}, "data">;
|
|
71
|
+
handleChange: (path: string, value: unknown) => void;
|
|
72
|
+
changeValue: (newValue: undefined) => void;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
labelForId?: null;
|
|
75
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
80
|
+
control: {
|
|
81
|
+
data: undefined;
|
|
82
|
+
uischema: {
|
|
83
|
+
providedOptions?: string[];
|
|
84
|
+
id?: string;
|
|
85
|
+
};
|
|
86
|
+
} & Omit<{
|
|
87
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
88
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
89
|
+
path: string;
|
|
90
|
+
enabled: boolean;
|
|
91
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
92
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
93
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
94
|
+
cell: any;
|
|
95
|
+
}[];
|
|
96
|
+
config: any;
|
|
97
|
+
label: string;
|
|
98
|
+
description: string;
|
|
99
|
+
required: NonNullable<boolean | undefined>;
|
|
100
|
+
i18nKeyPrefix: string;
|
|
101
|
+
errors: string;
|
|
102
|
+
data: any;
|
|
103
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
104
|
+
id: string;
|
|
105
|
+
visible: boolean;
|
|
106
|
+
}, "data">;
|
|
107
|
+
handleChange: (path: string, value: unknown) => void;
|
|
108
|
+
changeValue: (newValue: undefined) => void;
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
labelForId?: null;
|
|
111
|
+
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<undefined>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
112
|
+
$slots: {
|
|
113
|
+
buttons?(_: {
|
|
114
|
+
hover: boolean;
|
|
115
|
+
}): any;
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
119
|
+
};
|
|
@@ -29,7 +29,7 @@ type getData = (params: unknown) => Promise<{
|
|
|
29
29
|
*/
|
|
30
30
|
export interface Provided {
|
|
31
31
|
addStateProviderListener: addStateProviderListener<unknown>;
|
|
32
|
-
trigger: (triggerId: unknown) => void
|
|
32
|
+
trigger: (triggerId: unknown) => Promise<void>;
|
|
33
33
|
sendAlert: (params: AlertParams) => void;
|
|
34
34
|
/**
|
|
35
35
|
* Called by elements who have custom validation needs.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VueControlProps } from '../higherOrderComponents';
|
|
2
|
+
type __VLS_Props = VueControlProps<undefined>;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
buttons?(_: {
|
|
7
|
+
hover: boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/testing.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Hh from "vue";
|
|
2
2
|
import { ssrUtils as Zi, initDirectivesForSSR as ng, nextTick as $o, defineComponent as Ni, computed as Vr, h as In, shallowReactive as rg, reactive as ig, ref as Yh, createApp as sg, transformVNodeArgs as og, setDevtoolsHook as ag, isRef as cg, TransitionGroup as lg, Transition as ug, BaseTransition as fg } from "vue";
|
|
3
|
-
import { y as Na, z as Cl, A as Il, B as hg, C as pg, e as dg } from "./SimpleButtonControl.
|
|
4
|
-
import { M as Aa, e as _g, U as Ml, g as $l, a as Pl, i as Rl, S as fi, b as mg, k as gg, c as bg, d as yg, f as vg } from "./_Uint8Array-
|
|
3
|
+
import { y as Na, z as Cl, A as Il, B as hg, C as pg, e as dg } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js";
|
|
4
|
+
import { M as Aa, e as _g, U as Ml, g as $l, a as Pl, i as Rl, S as fi, b as mg, k as gg, c as bg, d as yg, f as vg } from "./_Uint8Array-DGFCQcAO.js";
|
|
5
5
|
import { i as Rn } from "./isArray-WzO_os3q.js";
|
|
6
|
-
import { t as wg } from "./toString-
|
|
6
|
+
import { t as wg } from "./toString-DqZWnsFs.js";
|
|
7
7
|
function Eg(e) {
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y, z as e } from "./SimpleButtonControl.
|
|
1
|
+
import { y, z as e } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js";
|
|
2
2
|
import { i as g } from "./isArray-WzO_os3q.js";
|
|
3
3
|
function l(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 "./SimpleButtonControl.
|
|
2
|
+
import { u as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.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 "./SimpleButtonControl.
|
|
2
|
+
import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.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)) };
|
package/dist/{useUnknownValuesInTwinlist-Dp0uNuG6.js → useUnknownValuesInTwinlist-EXO9oOxf.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as v, watch as m } from "vue";
|
|
2
2
|
import { g as S, a as g } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import "./SimpleButtonControl.
|
|
3
|
+
import "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ducup0yA.js";
|
|
4
4
|
const w = ({
|
|
5
5
|
knownValuesSide: s,
|
|
6
6
|
possibleValueIds: l,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.1",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"@jsonforms/core": "3.4.0",
|
|
16
16
|
"@jsonforms/vue": "3.4.0",
|
|
17
17
|
"@jsonforms/vue-vanilla": "3.4.0",
|
|
18
|
-
"@knime/kds-components": "0.30.
|
|
18
|
+
"@knime/kds-components": "0.30.1",
|
|
19
19
|
"ajv": "8.18.0",
|
|
20
20
|
"temporal-polyfill": "^0.3.2",
|
|
21
21
|
"uuid": "14.0.0",
|
|
22
|
+
"@knime/components": "1.46.6",
|
|
22
23
|
"@knime/rich-text-editor": "1.8.23",
|
|
23
24
|
"@knime/styles": "1.15.1",
|
|
24
|
-
"@knime/utils": "1.11.0"
|
|
25
|
-
"@knime/components": "1.46.6"
|
|
25
|
+
"@knime/utils": "1.11.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"consola": "3.x",
|