@knime/jsonforms 3.2.1 → 3.3.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @knime/jsonforms
2
2
 
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 96ee412: Enable actions in TextMessage control
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ec43060]
12
+ - @knime/kds-components@7.2.1
13
+ - @knime/kds-rich-text-editor@7.2.1
14
+
3
15
  ## 3.2.1
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { l as e, u as t } from "./src--XzYvnM6.js";
1
+ import { l as e, u as t } from "./src-C7J03FSu.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createBlock as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, renderSlot as l, unref as u, withCtx as d } from "vue";
4
4
  import { DispatchRenderer as f } from "@jsonforms/vue";
@@ -1,4 +1,4 @@
1
- import { O as e, l as t, u as n } from "./src--XzYvnM6.js";
1
+ import { O as e, l as t, u as n } from "./src-C7J03FSu.js";
2
2
  import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, ref as d, renderSlot as f, unref as p, withCtx as m } from "vue";
4
4
  import { DispatchRenderer as h } from "@jsonforms/vue";
@@ -1,4 +1,4 @@
1
- import { u as e } from "./src--XzYvnM6.js";
1
+ import { u as e } from "./src-C7J03FSu.js";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r, unref as i, withCtx as a } from "vue";
3
3
  import { DispatchRenderer as o } from "@jsonforms/vue";
4
4
  //#endregion
@@ -1,3 +1,3 @@
1
- import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, w as E, x as D, y as O } from "./src--XzYvnM6.js";
1
+ import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, w as E, x as D, y as O } from "./src-C7J03FSu.js";
2
2
  import { n as k } from "./useProvidedState-478_KXOe.js";
3
3
  export { x as FieldControl, e as Form, n as JsonFormsDialog, r as LabeledControl, g as SectionHeading, i as SettingsSubPanel, u as SimpleArrayLayout, v as SimpleButtonControl, C as TextControl, w as VerticalLayoutBase, l as controlProps, T as controlToRenderer, h as controls, c as defaultRenderers, D as defineControl, _ as defineLayout, o as getAsyncSetupMethod, a as handleAsyncComponents, f as inputFormats, m as layoutProps, p as layoutToRenderer, y as layouts, t as mapControls, E as mapLayouts, d as priorityRanks, S as toRenderers, k as useProvidedState, s as withDescriptionButton, b as withDescriptionButtonLayout, O as withLabel };
@@ -539,7 +539,7 @@ var ot = 500, st = ({ data: e, uischema: t }) => {
539
539
  name: "TextControl",
540
540
  control: Vt,
541
541
  tester: z(Q.fallback, R)
542
- }), Ut = g(() => import("./VerticalLayout-BBm-CepB.js")), Wt = {
542
+ }), Ut = g(() => import("./VerticalLayout-_cTlmyYO.js")), Wt = {
543
543
  name: "VerticalLayout",
544
544
  layout: Ut,
545
545
  tester: z(Q.default, B("VerticalLayout"))
@@ -708,11 +708,11 @@ var ot = 500, st = ({ data: e, uischema: t }) => {
708
708
  name: "RichTextControl",
709
709
  control: Sn,
710
710
  tester: z(Q.default, M(R, Z(X.richTextInput)))
711
- }), wn = g(() => import("./SectionLayout-B7z4bIR_.js")), Tn = B("Section"), En = {
711
+ }), wn = g(() => import("./SectionLayout-CeH5Cgu6.js")), Tn = B("Section"), En = {
712
712
  name: "SectionLayout",
713
713
  layout: wn,
714
714
  tester: z(Q.default, Tn)
715
- }, Dn = g(() => import("./SettingsSubPanelLayout-7v_KyJNB.js")), On = B("SettingsSubPanelLayout"), kn = {
715
+ }, Dn = g(() => import("./SettingsSubPanelLayout-DVKCGwz0.js")), On = B("SettingsSubPanelLayout"), kn = {
716
716
  name: "SettingsSubPanelLayout",
717
717
  layout: Dn,
718
718
  tester: z(Q.default, On)
@@ -977,16 +977,33 @@ var ot = 500, st = ({ data: e, uischema: t }) => {
977
977
  onRegisterValidation: { type: Function }
978
978
  },
979
979
  setup(e) {
980
- let t = e, n = r(u(() => t.control.uischema), "message");
981
- return (e, t) => k(n) ? (w(), d(k(we), {
980
+ let t = e, i = r(u(() => t.control.uischema), "message"), a = n("trigger"), o = E(!1), s = async (e) => {
981
+ o.value = !0;
982
+ try {
983
+ await a({ id: e.ref });
984
+ } finally {
985
+ o.value = !1;
986
+ }
987
+ }, c = (e) => ({
988
+ type: "button",
989
+ props: {
990
+ label: e.label,
991
+ variant: "outlined",
992
+ disabled: o.value
993
+ },
994
+ onClick: () => s(e)
995
+ }), l = u(() => i.value?.actions?.map(c));
996
+ return (e, t) => k(i) ? (w(), d(k(we), {
982
997
  key: 0,
983
- variant: k(n).type.toLowerCase(),
984
- headline: k(n).title,
985
- description: k(n).description
998
+ variant: k(i).type.toLowerCase(),
999
+ headline: k(i).title,
1000
+ description: k(i).description,
1001
+ actions: l.value
986
1002
  }, null, 8, [
987
1003
  "variant",
988
1004
  "headline",
989
- "description"
1005
+ "description",
1006
+ "actions"
990
1007
  ])) : f("", !0);
991
1008
  }
992
1009
  }),
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, k as t } from "./src--XzYvnM6.js";
1
+ import { a as e, k as t } from "./src-C7J03FSu.js";
2
2
  import { ref as n } from "vue";
3
3
  import "@jsonforms/vue";
4
4
  import { vi as r } from "vitest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
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-components": "^7.0.0",
20
- "@knime/kds-rich-text-editor": "^7.0.0",
19
+ "@knime/kds-components": "^7.2.1",
20
+ "@knime/kds-rich-text-editor": "^7.2.1",
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": "^7.0.0"
56
+ "@knime/kds-styles": "^7.2.1"
57
57
  },
58
58
  "exports": {
59
59
  ".": {