@knime/jsonforms 1.15.41 → 1.15.43
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 +14 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +86 -81
- package/dist/src/JsonFormsDialog.vue.d.ts +473 -0
- package/dist/testUtils/component.d.ts +1 -1
- package/package.json +6 -5
package/dist/knime-jsonforms.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _
|
|
3
|
-
import { E as
|
|
4
|
-
import { default as
|
|
5
|
-
import { _ as
|
|
1
|
+
import { defineComponent as c, ref as i, onMounted as k, createElementBlock as y, createCommentVNode as E, openBlock as u, createElementVNode as S, provide as T, computed as g, watch as j, createBlock as w, Suspense as C, withCtx as d, createVNode as l, renderSlot as h, unref as A, mergeProps as F, nextTick as B } from "vue";
|
|
2
|
+
import { _, p as O, F as M, s as N, U as $, i as I } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
|
|
3
|
+
import { E as ee, L as te, a as oe, c as ae, f as se, e as re, d as ne, g as de, h as le, k as ie, l as ue, j as ce, m as me, b as pe, n as fe, t as ve, u as ge, w as he } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
|
|
4
|
+
import { default as ye } from "./SimpleButtonControl-DTRrYw67.js";
|
|
5
|
+
import { _ as _e } from "./TextControl.vue_vue_type_script_setup_true_lang-Clcu1snI.js";
|
|
6
6
|
import { V as Le } from "./VerticalLayoutBase-DFBZtjWV.js";
|
|
7
|
-
import { S as
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
7
|
+
import { S as be } from "./SectionHeading-ClRuRf-y.js";
|
|
8
|
+
import { S as Ee } from "./SettingsSubPanel-Bb3TXKMR.js";
|
|
9
|
+
const J = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "loading-dialog skeleton-wrapper"
|
|
12
|
-
},
|
|
12
|
+
}, R = 200, V = /* @__PURE__ */ c({
|
|
13
13
|
__name: "LoadingDialog",
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return
|
|
14
|
+
setup(o) {
|
|
15
|
+
const s = i(!1);
|
|
16
|
+
return k(() => {
|
|
17
17
|
setTimeout(() => {
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
}), (m,
|
|
21
|
-
|
|
22
|
-
]))) :
|
|
18
|
+
s.value = !0;
|
|
19
|
+
}, R);
|
|
20
|
+
}), (m, a) => s.value ? (u(), y("div", J, a[0] || (a[0] = [
|
|
21
|
+
S("div", { class: "loading-dialog-content skeleton" }, null, -1)
|
|
22
|
+
]))) : E("", !0);
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
24
|
+
}), U = /* @__PURE__ */ _(V, [["__scopeId", "data-v-9c94592d"]]), G = { class: "dialog" }, D = "EXPOSED_METHOD", H = /* @__PURE__ */ c({
|
|
25
25
|
__name: "JsonFormsDialog",
|
|
26
26
|
props: {
|
|
27
27
|
schema: {},
|
|
28
28
|
uischema: {},
|
|
29
29
|
data: {},
|
|
30
30
|
renderers: {},
|
|
31
|
-
|
|
31
|
+
ajv: { default: () => {
|
|
32
|
+
} },
|
|
33
|
+
validate: { type: Function, default: void 0 }
|
|
32
34
|
},
|
|
33
35
|
emits: ["updateData", "trigger", "change", "alert", "stateProviderListener"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
t.context?.source !==
|
|
36
|
+
setup(o, { expose: s, emit: m }) {
|
|
37
|
+
const a = m, x = (e, t, n) => (t.type === $ && // @ts-expect-error source doesn't exist on type object
|
|
38
|
+
t.context?.source !== D && setTimeout(() => B(() => a("updateData", t.path))), n(e, t)), L = (e) => {
|
|
37
39
|
a("change", e);
|
|
38
40
|
};
|
|
39
41
|
Object.entries({
|
|
@@ -49,49 +51,52 @@ const I = {
|
|
|
49
51
|
);
|
|
50
52
|
return o.validate(e, t);
|
|
51
53
|
}
|
|
52
|
-
}).forEach(([e, t]) =>
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
source:
|
|
54
|
+
}).forEach(([e, t]) => T(e, t));
|
|
55
|
+
const r = i(null), p = [], f = (e, t) => {
|
|
56
|
+
r.value.dispatch(
|
|
57
|
+
I.update(e, () => t, {
|
|
58
|
+
source: D
|
|
57
59
|
})
|
|
58
60
|
);
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
() =>
|
|
62
|
-
(e) => e &&
|
|
63
|
-
({ path: t, value:
|
|
61
|
+
}, P = g(() => r.value !== null);
|
|
62
|
+
j(
|
|
63
|
+
() => P.value,
|
|
64
|
+
(e) => e && p.forEach(
|
|
65
|
+
({ path: t, value: n }) => f(t, n)
|
|
64
66
|
)
|
|
65
|
-
),
|
|
67
|
+
), s({
|
|
66
68
|
updateData: (e, t) => {
|
|
67
|
-
|
|
69
|
+
r.value ? f(e, t) : p.push({ path: e, value: t });
|
|
68
70
|
}
|
|
69
71
|
});
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
const v = i(null);
|
|
73
|
+
O(v);
|
|
74
|
+
const b = g(() => ({
|
|
75
|
+
data: o.data,
|
|
76
|
+
schema: o.schema,
|
|
77
|
+
uischema: o.uischema,
|
|
78
|
+
renderers: o.renderers,
|
|
79
|
+
middleware: x,
|
|
80
|
+
...o.ajv ? { ajv: o.ajv } : {}
|
|
81
|
+
}));
|
|
82
|
+
return (e, t) => (u(), y("div", G, [
|
|
83
|
+
S("div", {
|
|
73
84
|
ref_key: "subPanelTeleportDest",
|
|
74
|
-
ref:
|
|
85
|
+
ref: v
|
|
75
86
|
}, null, 512),
|
|
76
|
-
(
|
|
77
|
-
fallback:
|
|
78
|
-
|
|
87
|
+
(u(), w(C, null, {
|
|
88
|
+
fallback: d(() => [
|
|
89
|
+
l(U)
|
|
79
90
|
]),
|
|
80
|
-
default:
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
default: d(() => [
|
|
92
|
+
l(M, null, {
|
|
93
|
+
default: d(() => [
|
|
94
|
+
h(e.$slots, "top", {}, void 0, !0),
|
|
95
|
+
l(A(N), F({
|
|
85
96
|
ref_key: "jsonforms",
|
|
86
|
-
ref:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
uischema: e.uischema,
|
|
90
|
-
renderers: e.renderers,
|
|
91
|
-
middleware: L,
|
|
92
|
-
onChange: k
|
|
93
|
-
}, null, 8, ["data", "schema", "uischema", "renderers"]),
|
|
94
|
-
v(e.$slots, "bottom", {}, void 0, !0)
|
|
97
|
+
ref: r
|
|
98
|
+
}, b.value, { onChange: L }), null, 16),
|
|
99
|
+
h(e.$slots, "bottom", {}, void 0, !0)
|
|
95
100
|
]),
|
|
96
101
|
_: 3
|
|
97
102
|
})
|
|
@@ -100,40 +105,40 @@ const I = {
|
|
|
100
105
|
}))
|
|
101
106
|
]));
|
|
102
107
|
}
|
|
103
|
-
}),
|
|
108
|
+
}), K = /* @__PURE__ */ _(H, [["__scopeId", "data-v-d3ebf393"]]), q = {
|
|
104
109
|
layout: {
|
|
105
110
|
type: Object,
|
|
106
111
|
required: !0
|
|
107
112
|
}
|
|
108
|
-
},
|
|
109
|
-
props:
|
|
113
|
+
}, Q = (o) => c(o, {
|
|
114
|
+
props: q
|
|
110
115
|
});
|
|
111
116
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
ee as ErrorMessages,
|
|
118
|
+
M as Form,
|
|
119
|
+
K as JsonFormsDialog,
|
|
120
|
+
te as LabeledControl,
|
|
121
|
+
be as SectionHeading,
|
|
122
|
+
Ee as SettingsSubPanel,
|
|
123
|
+
ye as SimpleButtonControl,
|
|
124
|
+
_e as TextControl,
|
|
120
125
|
Le as VerticalLayoutBase,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
oe as controlProps,
|
|
127
|
+
ae as controlToRenderer,
|
|
128
|
+
se as controls,
|
|
129
|
+
re as defaultRenderers,
|
|
130
|
+
ne as defineControl,
|
|
131
|
+
Q as defineLayout,
|
|
132
|
+
de as getAsyncSetupMethod,
|
|
133
|
+
le as handleAsyncComponents,
|
|
134
|
+
ie as inputFormats,
|
|
135
|
+
q as layoutProps,
|
|
136
|
+
ue as layoutToRenderer,
|
|
137
|
+
ce as layouts,
|
|
138
|
+
me as mapControls,
|
|
134
139
|
pe as mapLayouts,
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
fe as priorityRanks,
|
|
141
|
+
ve as toRenderers,
|
|
137
142
|
ge as useProvidedState,
|
|
138
143
|
he as withLabel
|
|
139
144
|
};
|