@knime/jsonforms 3.3.0 → 3.4.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 +15 -0
- package/dist/FileUploadControl-D5QfM3Wa.js +45 -0
- package/dist/{SectionLayout-CeH5Cgu6.js → SectionLayout-CWwQSAQT.js} +3 -3
- package/dist/{SettingsSubPanelLayout-DVKCGwz0.js → SettingsSubPanelLayout-CeUyfI3O.js} +4 -4
- package/dist/{VerticalLayout-_cTlmyYO.js → VerticalLayout-p7_m2Jqj.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +3 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -2
- package/dist/{src-C7J03FSu.js → src-pP1URsDS.js} +245 -245
- package/dist/testing.js +8 -8
- package/package.json +4 -4
- package/dist/FileUploadControl-Cv3xWTAS.js +0 -58
package/dist/testing.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, o as t } from "./src-pP1URsDS.js";
|
|
2
2
|
import { ref as n } from "vue";
|
|
3
3
|
import "@jsonforms/vue";
|
|
4
4
|
import { vi as r } from "vitest";
|
|
5
5
|
import { flushPromises as i, mount as a } from "@vue/test-utils";
|
|
6
6
|
//#region testUtils/component.ts
|
|
7
|
-
var o = ({ provide:
|
|
7
|
+
var o = ({ provide: t, stubs: i }) => ({
|
|
8
8
|
provide: {
|
|
9
|
-
sendAlert:
|
|
10
|
-
addStateProviderListener:
|
|
11
|
-
trigger:
|
|
12
|
-
[
|
|
13
|
-
...
|
|
9
|
+
sendAlert: t?.sendAlert || r.fn(),
|
|
10
|
+
addStateProviderListener: t?.addStateProviderListener || r.fn(),
|
|
11
|
+
trigger: t?.trigger || r.fn(),
|
|
12
|
+
[e]: n("body"),
|
|
13
|
+
...t
|
|
14
14
|
},
|
|
15
15
|
stubs: {
|
|
16
16
|
DispatchRenderer: !0,
|
|
@@ -104,6 +104,6 @@ var o = ({ provide: e, stubs: i }) => ({
|
|
|
104
104
|
return r === void 0 || r.tester(t, n, {}) === -1 ? null : r;
|
|
105
105
|
};
|
|
106
106
|
return { getRendererName: (e, n) => t(e, n)?.name };
|
|
107
|
-
}, m = p(
|
|
107
|
+
}, m = p(t).getRendererName;
|
|
108
108
|
//#endregion
|
|
109
109
|
export { m as determineRenderer, d as getControlBase, o as getGlobal, s as mountJsonFormsControl, c as mountJsonFormsControlLabelContent, l as mountJsonFormsLayout, u as mountJsonFormsRenderer, p as setUpRendererTest, f as useInitialProvidedState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "JSONForms integration for KNIME frontends",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@jsonforms/vue": "3.8.0",
|
|
17
17
|
"ajv": "8.20.0",
|
|
18
18
|
"temporal-polyfill": "^1.0.1",
|
|
19
|
-
"@knime/kds-
|
|
20
|
-
"@knime/kds-
|
|
19
|
+
"@knime/kds-rich-text-editor": "^8.0.0",
|
|
20
|
+
"@knime/kds-components": "^8.0.0",
|
|
21
21
|
"@knime/utils": "^2.0.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vitest": "^4.1.10",
|
|
54
54
|
"vue": "3.5.40",
|
|
55
55
|
"vue-tsc": "^3.3.8",
|
|
56
|
-
"@knime/kds-styles": "^
|
|
56
|
+
"@knime/kds-styles": "^8.0.0"
|
|
57
57
|
},
|
|
58
58
|
"exports": {
|
|
59
59
|
".": {
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, toDisplayString as c, unref as l } from "vue";
|
|
3
|
-
import { KdsButton as u } from "@knime/kds-components";
|
|
4
|
-
//#region src/uiComponents/FileUploadControl.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = { class: "wrapper" }, f = { class: "filename" }, p = [
|
|
6
|
-
"id",
|
|
7
|
-
"aria-label",
|
|
8
|
-
"accept",
|
|
9
|
-
"multiple",
|
|
10
|
-
"disabled"
|
|
11
|
-
], m = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
|
12
|
-
inheritAttrs: !1,
|
|
13
|
-
__name: "FileUploadControl",
|
|
14
|
-
props: {
|
|
15
|
-
control: {},
|
|
16
|
-
handleChange: { type: Function },
|
|
17
|
-
changeValue: { type: Function },
|
|
18
|
-
disabled: { type: Boolean },
|
|
19
|
-
error: { type: Boolean },
|
|
20
|
-
subText: {},
|
|
21
|
-
onRegisterValidation: { type: Function },
|
|
22
|
-
labelForId: {}
|
|
23
|
-
},
|
|
24
|
-
setup(e) {
|
|
25
|
-
let a = e, m = s(a.control.data?.slice()), h = t(() => a.control.uischema.options?.accept ?? "*"), g = t(() => a.control.uischema.options?.multiple ?? !1), _ = s(null), v = t(() => m.value?.map?.(({ name: e }) => e).join(", ") || "No file selected"), y = t(() => `Select file${g.value ? "s" : ""}`), b = () => {
|
|
26
|
-
_.value?.click();
|
|
27
|
-
}, x = (e) => {
|
|
28
|
-
let t = e.target;
|
|
29
|
-
t.files && (m.value = Array.from(t.files), a.handleChange(a.control.path, Array.from(m.value)));
|
|
30
|
-
};
|
|
31
|
-
return (t, a) => (o(), n("div", d, [
|
|
32
|
-
i(l(u), {
|
|
33
|
-
class: "file-select-button",
|
|
34
|
-
label: y.value,
|
|
35
|
-
"leading-icon": "search",
|
|
36
|
-
variant: "outlined",
|
|
37
|
-
disabled: e.disabled,
|
|
38
|
-
size: "small",
|
|
39
|
-
onClick: b
|
|
40
|
-
}, null, 8, ["label", "disabled"]),
|
|
41
|
-
r("span", f, c(v.value), 1),
|
|
42
|
-
r("input", {
|
|
43
|
-
id: e.labelForId,
|
|
44
|
-
ref_key: "fileSelector",
|
|
45
|
-
ref: _,
|
|
46
|
-
"aria-label": e.control.label,
|
|
47
|
-
type: "file",
|
|
48
|
-
accept: h.value,
|
|
49
|
-
multiple: g.value,
|
|
50
|
-
disabled: e.disabled,
|
|
51
|
-
hidden: "",
|
|
52
|
-
onChange: x
|
|
53
|
-
}, null, 40, p)
|
|
54
|
-
]));
|
|
55
|
-
}
|
|
56
|
-
}), [["__scopeId", "data-v-37968bc6"]]);
|
|
57
|
-
//#endregion
|
|
58
|
-
export { m as default };
|