@knime/jsonforms 1.16.4 → 1.16.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{AnyOfTwinlist-DpljiSi_.js → AnyOfTwinlist-49s2XV71.js} +1 -1
  3. package/dist/{Button-D3hbKGEa.js → Button-B-nT0Bf_.js} +1 -1
  4. package/dist/{Checkbox-SWT2wrwk.js → Checkbox-JDouiDis.js} +1 -1
  5. package/dist/{CheckboxControl-B_mPmiyH.js → CheckboxControl-BNK6o5Gw.js} +1 -1
  6. package/dist/{Checkboxes-BcVI2TzU.js → Checkboxes-Beq4QrEw.js} +2 -2
  7. package/dist/{CheckboxesControl-CQELcnhq.js → CheckboxesControl-BMdl1FKH.js} +3 -3
  8. package/dist/{ComboBoxControl-D0dMFGf8.js → ComboBoxControl-BL-RdSi1.js} +3 -3
  9. package/dist/{DateControl-jQJxxMgs.js → DateControl-L3JeJbqp.js} +1 -1
  10. package/dist/{DateTimeControl-D6lzqXIA.js → DateTimeControl-CkpUIhJN.js} +1 -1
  11. package/dist/{DateTimeFormatInput-BN3VQb0U.js → DateTimeFormatInput-C77SCxx9.js} +3 -3
  12. package/dist/{DateTimeFormatPickerControl-BxBn220n.js → DateTimeFormatPickerControl-Fr2-n8YQ.js} +2 -2
  13. package/dist/{DateTimeFormatPickerWithTypeControl-C118BPqi.js → DateTimeFormatPickerWithTypeControl-BJO4bQTr.js} +3 -3
  14. package/dist/{Dropdown-p6I46uJ9.js → Dropdown-BogNGvhX.js} +2 -2
  15. package/dist/{DropdownControl-dU8TRvmx.js → DropdownControl-CeZgfFlX.js} +3 -3
  16. package/dist/{HorizontalLayout-DMF6sSYp.js → HorizontalLayout-pME4WtUp.js} +1 -1
  17. package/dist/{InputField-L7RDebNQ.js → InputField-BxRyvaDn.js} +1 -1
  18. package/dist/{IntegerControl-yXifLMds.js → IntegerControl-HLxiCf6z.js} +1 -1
  19. package/dist/{IntervalControl-Sgd-Obid.js → IntervalControl-DMm_AEfp.js} +3 -3
  20. package/dist/{LoadingDropdown-BXiHrJdc.js → LoadingDropdown-BtyDHjd3.js} +3 -3
  21. package/dist/{LoadingIcon-CJHOJXwV.js → LoadingIcon-CvkSBoEt.js} +1 -1
  22. package/dist/{ManualTwinlistControl-ahYmnveb.js → ManualTwinlistControl-DDOXDswT.js} +4 -4
  23. package/dist/{MultiSelectListBoxControl-CGyELnyA.js → MultiSelectListBoxControl-BqY_8CWs.js} +2 -2
  24. package/dist/{MultimodeTwinlistControl-Bgdp79Hi.js → MultimodeTwinlistControl-DEaEIBaB.js} +6 -6
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_c2a3d1cb_lang-DIvfVHFH.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_c2a3d1cb_lang-DyClYiy3.js} +2 -2
  26. package/dist/{MultiselectListBox-D1LbReaQ.js → MultiselectListBox-C90oEpyV.js} +2 -2
  27. package/dist/{NameFilter-C9HQGQA6.js → NameFilter-CwrvWvgK.js} +1 -1
  28. package/dist/{NumberControl-BtpHKRS8.js → NumberControl-BgBkAhyS.js} +1 -1
  29. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BioT3376.js +56 -0
  30. package/dist/{NumberInput-B3uWbl4T.js → NumberInput-Bhyjb5X8.js} +70 -60
  31. package/dist/{OneOfDropdown-D4Cht_Bk.js → OneOfDropdown-Bpni-A7Z.js} +1 -1
  32. package/dist/{RadioControl-D97Ay6cr.js → RadioControl-yHyVxXU5.js} +2 -2
  33. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-IwVpd3iz.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DlfmWjKZ.js} +3 -3
  34. package/dist/{RichTextControl-LoFBv9wb.js → RichTextControl-CewLhW6l.js} +5 -5
  35. package/dist/{SectionHeading-Bh6bfRG4.js → SectionHeading-DWy6SLZQ.js} +1 -1
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js → SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.js} +34 -34
  37. package/dist/{SectionLayout-BUnRZAu1.js → SectionLayout-cJZ2QL6W.js} +3 -3
  38. package/dist/{SettingsSubPanel-BeYJezV9.js → SettingsSubPanel-BlbXpGzs.js} +1 -1
  39. package/dist/{SettingsSubPanelLayout-XVSYqUYx.js → SettingsSubPanelLayout-BmWmdH-v.js} +4 -4
  40. package/dist/{SimpleButtonControl-MjNTW2Bk.js → SimpleButtonControl-D-h35U1G.js} +2 -2
  41. package/dist/{SimpleTwinlistControl-bhMGKvnu.js → SimpleTwinlistControl-DBii6RNm.js} +2 -2
  42. package/dist/{SingleSelectControl-C9EmfOqZ.js → SingleSelectControl-izdOpysG.js} +2 -2
  43. package/dist/{SingleSelectListBoxControl-Bvt5-sft.js → SingleSelectListBoxControl-2QSjitlm.js} +3 -3
  44. package/dist/{SortListControl-DaphMVbs.js → SortListControl-BZarnYfR.js} +6 -6
  45. package/dist/{StyledListItem-BNwv1Zce.js → StyledListItem-CNqpOUIA.js} +1 -1
  46. package/dist/{TextAreaControl-BpnzF3_Z.js → TextAreaControl-CxUnaFdh.js} +1 -1
  47. package/dist/{TextControl-BfJBhYuv.js → TextControl-CyZBkpNW.js} +1 -1
  48. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DA4mpBZr.js → TextControl.vue_vue_type_script_setup_true_lang-DmNqeVRB.js} +3 -3
  49. package/dist/{TimeControl-DdVI7aRZ.js → TimeControl-Crl7tkb2.js} +1 -1
  50. package/dist/{TwinlistControlBase-CE2cQx0q.js → TwinlistControlBase-D7ON9nQ7.js} +3 -3
  51. package/dist/{TwinlistLoadingInfo-BEegWd3U.js → TwinlistLoadingInfo-Dr8x9IfJ.js} +4 -4
  52. package/dist/{TypedStringFilter-Cy2XQVK4.js → TypedStringFilter-DshfmkEL.js} +1 -1
  53. package/dist/{ValueSwitch-CbZl3gB3.js → ValueSwitch-DuPQTFfh.js} +1 -1
  54. package/dist/{ValueSwitchControl-ChCAoE25.js → ValueSwitchControl-aoftCd4n.js} +1 -1
  55. package/dist/{VerticalLayout-D7GkN0HC.js → VerticalLayout-2FHHJIBC.js} +2 -2
  56. package/dist/{VerticalLayoutBase-M3F25yVh.js → VerticalLayoutBase-CzV582s_.js} +1 -1
  57. package/dist/{ZonedDateTimeControl-CQivlk3u.js → ZonedDateTimeControl-DGrLJmxa.js} +3 -3
  58. package/dist/{_baseEach-DLVEJYjP.js → _baseEach-BGiMhcTg.js} +2 -2
  59. package/dist/{_baseIteratee-C6br8vAu.js → _baseIteratee-BjdWzxra.js} +3 -3
  60. package/dist/{_getTag-7jxvkFtn.js → _getTag-C-_CtdYJ.js} +1 -1
  61. package/dist/knime-jsonforms.css +1 -1
  62. package/dist/knime-jsonforms.js +67 -61
  63. package/dist/{localTimeUtils-BHjaCQGk.js → localTimeUtils-CjAdGq92.js} +6 -6
  64. package/dist/src/JsonFormsDialog.vue.d.ts +1 -1
  65. package/dist/testing.js +2 -2
  66. package/dist/{toString-BRLGjIjE.js → toString-DvujjKaR.js} +1 -1
  67. package/dist/{useBuiltinValidations-DO-Wb7rG.js → useBuiltinValidations-DGVpavrB.js} +1 -1
  68. package/dist/{usePossibleValues-DM-t2iHy.js → usePossibleValues-HKMMoXkt.js} +1 -1
  69. package/package.json +5 -5
  70. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DwkMTryR.js +0 -53
@@ -1,27 +1,27 @@
1
- import { defineComponent as u, ref as i, onMounted as E, createElementBlock as y, createCommentVNode as T, openBlock as c, createElementVNode as S, provide as b, 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_2310b6b8_lang-Bs29kRa4.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 ce, j as ue, 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_2310b6b8_lang-Bs29kRa4.js";
4
- import { default as ye } from "./SimpleButtonControl-MjNTW2Bk.js";
5
- import { _ as _e } from "./TextControl.vue_vue_type_script_setup_true_lang-DA4mpBZr.js";
6
- import { V as Le } from "./VerticalLayoutBase-M3F25yVh.js";
7
- import { S as ke } from "./SectionHeading-Bh6bfRG4.js";
8
- import { S as Te } from "./SettingsSubPanel-BeYJezV9.js";
9
- const J = {
1
+ import { defineComponent as u, ref as i, onMounted as E, createElementBlock as P, createCommentVNode as T, openBlock as c, createElementVNode as S, provide as b, computed as h, watch as C, createBlock as F, Suspense as A, withCtx as d, createVNode as l, renderSlot as D, unref as B, mergeProps as I, nextTick as O } from "vue";
2
+ import { _, p as J, F as M, s as N, U as $, i as R } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.js";
3
+ import { E as oe, L as ae, a as se, c as re, f as ne, e as de, d as le, g as ie, h as ce, k as ue, l as me, j as pe, m as fe, b as ve, n as ge, t as he, u as De, w as ye } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.js";
4
+ import { default as Se } from "./SimpleButtonControl-D-h35U1G.js";
5
+ import { _ as xe } from "./TextControl.vue_vue_type_script_setup_true_lang-DmNqeVRB.js";
6
+ import { V as we } from "./VerticalLayoutBase-CzV582s_.js";
7
+ import { S as ke } from "./SectionHeading-DWy6SLZQ.js";
8
+ import { S as Te } from "./SettingsSubPanel-BlbXpGzs.js";
9
+ const V = {
10
10
  key: 0,
11
11
  class: "loading-dialog skeleton-wrapper"
12
- }, R = 200, V = /* @__PURE__ */ u({
12
+ }, U = 200, G = /* @__PURE__ */ u({
13
13
  __name: "LoadingDialog",
14
14
  setup(o) {
15
15
  const s = i(!1);
16
16
  return E(() => {
17
17
  setTimeout(() => {
18
18
  s.value = !0;
19
- }, R);
20
- }), (m, a) => s.value ? (c(), y("div", J, [...a[0] || (a[0] = [
19
+ }, U);
20
+ }), (m, a) => s.value ? (c(), P("div", V, [...a[0] || (a[0] = [
21
21
  S("div", { class: "loading-dialog-content skeleton" }, null, -1)
22
22
  ])])) : T("", !0);
23
23
  }
24
- }), U = /* @__PURE__ */ _(V, [["__scopeId", "data-v-9c94592d"]]), G = { class: "dialog" }, D = "EXPOSED_METHOD", H = /* @__PURE__ */ u({
24
+ }), H = /* @__PURE__ */ _(G, [["__scopeId", "data-v-9c94592d"]]), q = { class: "dialog" }, y = "EXPOSED_METHOD", X = /* @__PURE__ */ u({
25
25
  __name: "JsonFormsDialog",
26
26
  props: {
27
27
  schema: {},
@@ -35,7 +35,7 @@ const J = {
35
35
  emits: ["updateData", "trigger", "change", "alert", "stateProviderListener"],
36
36
  setup(o, { expose: s, emit: m }) {
37
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) => {
38
+ t.context?.source !== y && setTimeout(() => O(() => a("updateData", t.path))), n(e, t)), L = (e) => {
39
39
  a("change", e);
40
40
  };
41
41
  Object.entries({
@@ -54,24 +54,30 @@ const J = {
54
54
  }).forEach(([e, t]) => b(e, t));
55
55
  const r = i(null), p = [], f = (e, t) => {
56
56
  r.value.dispatch(
57
- I.update(e, () => t, {
58
- source: D
57
+ R.update(e, () => t, {
58
+ source: y
59
59
  })
60
60
  );
61
- }, P = g(() => r.value !== null);
62
- j(
63
- () => P.value,
64
- (e) => e && p.forEach(
65
- ({ path: t, value: n }) => f(t, n)
66
- )
61
+ }, w = h(() => r.value !== null);
62
+ let v;
63
+ const j = new Promise((e) => {
64
+ v = e;
65
+ });
66
+ C(
67
+ () => w.value,
68
+ (e) => {
69
+ e && (v(), p.forEach(
70
+ ({ path: t, value: n }) => f(t, n)
71
+ ));
72
+ }
67
73
  ), s({
68
- updateData: (e, t) => {
69
- r.value ? f(e, t) : p.push({ path: e, value: t });
74
+ updateData: async (e, t) => {
75
+ r.value ? f(e, t) : (p.push({ path: e, value: t }), await j);
70
76
  }
71
77
  });
72
- const v = i(null);
73
- O(v);
74
- const k = g(() => ({
78
+ const g = i(null);
79
+ J(g);
80
+ const k = h(() => ({
75
81
  data: o.data,
76
82
  schema: o.schema,
77
83
  uischema: o.uischema,
@@ -79,24 +85,24 @@ const J = {
79
85
  middleware: x,
80
86
  ...o.ajv ? { ajv: o.ajv } : {}
81
87
  }));
82
- return (e, t) => (c(), y("div", G, [
88
+ return (e, t) => (c(), P("div", q, [
83
89
  S("div", {
84
90
  ref_key: "subPanelTeleportDest",
85
- ref: v
91
+ ref: g
86
92
  }, null, 512),
87
- (c(), w(C, null, {
93
+ (c(), F(A, null, {
88
94
  fallback: d(() => [
89
- l(U)
95
+ l(H)
90
96
  ]),
91
97
  default: d(() => [
92
98
  l(M, null, {
93
99
  default: d(() => [
94
- h(e.$slots, "top", {}, void 0, !0),
95
- l(A(N), F({
100
+ D(e.$slots, "top", {}, void 0, !0),
101
+ l(B(N), I({
96
102
  ref_key: "jsonforms",
97
103
  ref: r
98
104
  }, k.value, { onChange: L }), null, 16),
99
- h(e.$slots, "bottom", {}, void 0, !0)
105
+ D(e.$slots, "bottom", {}, void 0, !0)
100
106
  ]),
101
107
  _: 3
102
108
  })
@@ -105,40 +111,40 @@ const J = {
105
111
  }))
106
112
  ]));
107
113
  }
108
- }), K = /* @__PURE__ */ _(H, [["__scopeId", "data-v-a7fc777c"]]), q = {
114
+ }), W = /* @__PURE__ */ _(X, [["__scopeId", "data-v-16f2d28d"]]), Y = {
109
115
  layout: {
110
116
  type: Object,
111
117
  required: !0
112
118
  }
113
- }, Q = (o) => u(o, {
114
- props: q
119
+ }, Z = (o) => u(o, {
120
+ props: Y
115
121
  });
116
122
  export {
117
- ee as ErrorMessages,
123
+ oe as ErrorMessages,
118
124
  M as Form,
119
- K as JsonFormsDialog,
120
- te as LabeledControl,
125
+ W as JsonFormsDialog,
126
+ ae as LabeledControl,
121
127
  ke as SectionHeading,
122
128
  Te as SettingsSubPanel,
123
- ye as SimpleButtonControl,
124
- _e as TextControl,
125
- Le as VerticalLayoutBase,
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
- ce as layoutToRenderer,
137
- ue as layouts,
138
- me as mapControls,
139
- pe as mapLayouts,
140
- fe as priorityRanks,
141
- ve as toRenderers,
142
- ge as useProvidedState,
143
- he as withLabel
129
+ Se as SimpleButtonControl,
130
+ xe as TextControl,
131
+ we as VerticalLayoutBase,
132
+ se as controlProps,
133
+ re as controlToRenderer,
134
+ ne as controls,
135
+ de as defaultRenderers,
136
+ le as defineControl,
137
+ Z as defineLayout,
138
+ ie as getAsyncSetupMethod,
139
+ ce as handleAsyncComponents,
140
+ ue as inputFormats,
141
+ Y as layoutProps,
142
+ me as layoutToRenderer,
143
+ pe as layouts,
144
+ fe as mapControls,
145
+ ve as mapLayouts,
146
+ ge as priorityRanks,
147
+ he as toRenderers,
148
+ De as useProvidedState,
149
+ ye as withLabel
144
150
  };
@@ -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, H as qn, I as zl } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js";
4
- import { D as Gl } from "./Dropdown-p6I46uJ9.js";
3
+ import { _ as Ks, H as qn, I as zl } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.js";
4
+ import { D as Gl } from "./Dropdown-BogNGvhX.js";
5
5
  import { A as Zl } from "./arrow-dropdown-BHK4j8GT.js";
6
6
  /* empty css */
7
- import { a as Kl } from "./toString-BRLGjIjE.js";
8
- import { b as Xl } from "./_baseIteratee-C6br8vAu.js";
9
- import { b as Ql } from "./_baseEach-DLVEJYjP.js";
10
- import { d as Jl } from "./_getTag-7jxvkFtn.js";
7
+ import { a as Kl } from "./toString-DvujjKaR.js";
8
+ import { b as Xl } from "./_baseIteratee-BjdWzxra.js";
9
+ import { b as Ql } from "./_baseEach-BGiMhcTg.js";
10
+ import { d as Jl } from "./_getTag-C-_CtdYJ.js";
11
11
  import { i as ec } from "./isArray-WzO_os3q.js";
12
12
  function st(e) {
13
13
  "@babel/helpers - typeof";
@@ -240,7 +240,7 @@ declare function __VLS_template(): {
240
240
  };
241
241
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
242
242
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
243
- updateData: (path: string, value: unknown) => void;
243
+ updateData: (path: string, value: unknown) => Promise<void>;
244
244
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
245
245
  change: (args_0: {
246
246
  data: unknown;
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 { o as J_, q as Q_, e as Z_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js";
4
- import { b as em } from "./_baseIteratee-C6br8vAu.js";
3
+ import { o as J_, q as Q_, e as Z_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.js";
4
+ import { b as em } from "./_baseIteratee-BjdWzxra.js";
5
5
  function tm(e, t) {
6
6
  return e > t;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { o as g, S as s } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js";
1
+ import { o as g, S as s } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.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.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js";
2
+ import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.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.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Bs29kRa4.js";
2
+ import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-DuZjjKcZ.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.16.4",
3
+ "version": "1.16.6",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,10 +22,10 @@
22
22
  "focus-trap-vue": "4.0.3",
23
23
  "tabbable": "6.2.0",
24
24
  "uuid": "10.0.0",
25
- "@knime/components": "1.43.2",
26
- "@knime/rich-text-editor": "1.8.2",
27
- "@knime/utils": "1.9.0",
28
- "@knime/styles": "1.15.0"
25
+ "@knime/components": "1.43.3",
26
+ "@knime/rich-text-editor": "1.8.3",
27
+ "@knime/styles": "1.15.0",
28
+ "@knime/utils": "1.9.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "consola": "3.x",
@@ -1,53 +0,0 @@
1
- import { defineComponent as N, computed as v, createBlock as V, openBlock as b, unref as x } from "vue";
2
- import { u as y } from "./useBuiltinValidations-DO-Wb7rG.js";
3
- import { N as E } from "./NumberInput-B3uWbl4T.js";
4
- const F = 1, B = 0.1, P = /* @__PURE__ */ N({
5
- __name: "NumberControlBase",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {},
14
- type: {}
15
- },
16
- setup(n) {
17
- const l = n, c = l.type === "integer" ? F : B, m = ({ min: a, isExclusive: t }) => (e) => isNaN(e) || (t ? e > a : e >= a), d = ({ max: a, isExclusive: t }) => (e) => isNaN(e) || (t ? e < a : e <= a), r = y(
18
- {
19
- min: m,
20
- max: d
21
- },
22
- l
23
- ), i = v(() => r.value.min), s = v(() => r.value.max), f = () => {
24
- const a = l.control.data, t = typeof a != "number" || isNaN(a);
25
- let e = t ? 0 : null;
26
- const p = t ? 0 : a;
27
- if (i.value && !m(i.value)(p)) {
28
- const { min: o, isExclusive: u } = i.value;
29
- u ? e = o + c : e = o;
30
- } else if (s.value && !d(s.value)(p)) {
31
- const { max: o, isExclusive: u } = s.value;
32
- u ? e = o - c : e = o;
33
- }
34
- e !== null && l.changeValue(e);
35
- };
36
- return (a, t) => (b(), V(x(E), {
37
- id: n.labelForId,
38
- class: "number-input",
39
- disabled: n.disabled,
40
- "model-value": n.control.data,
41
- type: n.type,
42
- min: i.value?.min,
43
- max: s.value?.max,
44
- "is-valid": n.isValid,
45
- compact: "",
46
- "onUpdate:modelValue": n.changeValue,
47
- onFocusout: f
48
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]));
49
- }
50
- });
51
- export {
52
- P as _
53
- };