@knime/jsonforms 1.10.3 → 1.11.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{AnyOfTwinlist-Dh2rmqud.js → AnyOfTwinlist-C0BYfhuc.js} +1 -1
  3. package/dist/{Button-DD8nJr8n.js → Button-B2PevR13.js} +1 -1
  4. package/dist/{CheckboxControl-Dhu_5xL_.js → CheckboxControl-C9Eo-Get.js} +12 -13
  5. package/dist/{Checkboxes-Drf5an-Q.js → Checkboxes-BoSLHg-R.js} +16 -17
  6. package/dist/{CheckboxesControl-B46fZLOJ.js → CheckboxesControl-9OOMWktT.js} +2 -2
  7. package/dist/{ComboBoxControl-iOQVWvXs.js → ComboBoxControl-BQx3TWoL.js} +10 -11
  8. package/dist/{DateControl-CvwWIjQI.js → DateControl-CfI2AD4P.js} +1 -1
  9. package/dist/{DateTimeControl-ZRqB5hR_.js → DateTimeControl-BCvP4qo5.js} +2 -2
  10. package/dist/{DateTimeFormatInput-B9BAN642.js → DateTimeFormatInput-B9g7at3r.js} +3 -3
  11. package/dist/{DateTimeFormatPickerControl-BcJA9X5l.js → DateTimeFormatPickerControl-B9O1f_mH.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-DUjaPF-c.js → DateTimeFormatPickerWithTypeControl-ueXR9GQl.js} +3 -3
  13. package/dist/{DateTimeInput-B_CgJRcR.js → DateTimeInput-B_U-QJmL.js} +6 -6
  14. package/dist/{Dropdown-BngbhoRN.js → Dropdown-B_NNidgA.js} +2 -2
  15. package/dist/DropdownControl-HNf0y3og.js +31 -0
  16. package/dist/{HorizontalLayout-B-9fSSp4.js → HorizontalLayout-CMdaU98F.js} +1 -1
  17. package/dist/{InputField-Blkdyhf0.js → InputField-DKobsHBJ.js} +1 -1
  18. package/dist/{IntegerControl-D2l7THYv.js → IntegerControl-9YzuybpQ.js} +1 -1
  19. package/dist/{IntervalControl-BVuGSm6P.js → IntervalControl-DWOlVutr.js} +3 -3
  20. package/dist/{LoadingDropdown-PhOSUx1V.js → LoadingDropdown-DjDkU0GJ.js} +3 -3
  21. package/dist/MultiSelectListBoxControl-Dwxf-Auj.js +34 -0
  22. package/dist/{MultimodeTwinlistControl-xb9Ku5uw.js → MultimodeTwinlistControl-CgIOZGiK.js} +5 -5
  23. package/dist/{MultiselectListBox-CwvqA1NZ.js → MultiselectListBox-DVWx2L8G.js} +76 -139
  24. package/dist/{NameFilter-1Ficbjmb.js → NameFilter-CIEZ3MXY.js} +1 -1
  25. package/dist/{NumberControl-C9IPXddf.js → NumberControl-BTGdHGGc.js} +1 -1
  26. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-pS4xOPTC.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Cs69LvYa.js} +2 -2
  27. package/dist/{NumberInput-vDc1pJc8.js → NumberInput-B_xx1SLE.js} +1 -1
  28. package/dist/{OneOfDropdown-Cw2Xm7i7.js → OneOfDropdown-1Vh8BGXT.js} +1 -1
  29. package/dist/{RadioControl-BL51E8Qr.js → RadioControl-LOA6Mp-I.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DV3nfTrK.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BO1C66xG.js} +2 -2
  31. package/dist/{RichTextControl-B8ZSKUA1.js → RichTextControl-BV881LVa.js} +14 -15
  32. package/dist/{SectionHeading-CIY28AZg.js → SectionHeading-9w_hIbyv.js} +1 -1
  33. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js} +5414 -5265
  34. package/dist/{SectionLayout-CGKQLSyP.js → SectionLayout-CTkFSsDA.js} +3 -3
  35. package/dist/{SettingsSubPanel-DpdhyTCO.js → SettingsSubPanel-BbZP8Ymj.js} +1 -1
  36. package/dist/{SettingsSubPanelLayout-CgrOOfmr.js → SettingsSubPanelLayout-s00rjvBL.js} +4 -4
  37. package/dist/{SimpleButtonControl-Dq-_oElV.js → SimpleButtonControl-CuOsmR2j.js} +2 -2
  38. package/dist/{SimpleTwinlistControl-CPDPfXDG.js → SimpleTwinlistControl-CYOMlGEL.js} +2 -2
  39. package/dist/{SingleSelectControl-DBO_gnbC.js → SingleSelectControl-Dw1VHL_S.js} +2 -2
  40. package/dist/SingleSelectListBoxControl-fJHYO33a.js +234 -0
  41. package/dist/{SortListControl-N0PHx9nz.js → SortListControl-BvbvFUOf.js} +6 -6
  42. package/dist/StyledListItem-Cpvg8mvO.js +72 -0
  43. package/dist/{TextAreaControl-BDCUJ66D.js → TextAreaControl-D9rNGe7P.js} +1 -1
  44. package/dist/{TextControl-CDTEDzJU.js → TextControl-j_CdOruM.js} +1 -1
  45. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Drnp3Zra.js +54 -0
  46. package/dist/{TimeControl-BYg8p2x7.js → TimeControl-BR-v1k78.js} +2 -2
  47. package/dist/{TwinlistControlBase-CA-hS5do.js → TwinlistControlBase-C-LwkBvD.js} +3 -3
  48. package/dist/{TwinlistLoadingInfo-CczuC-Fz.js → TwinlistLoadingInfo-C0fjx5Ik.js} +4 -4
  49. package/dist/{TypedStringFilter-1lIWO-LL.js → TypedStringFilter-C2m_LzO-.js} +1 -1
  50. package/dist/{ValueSwitch-SaYAIkL9.js → ValueSwitch-D4b_VjAX.js} +1 -1
  51. package/dist/{ValueSwitchControl-30-OhDts.js → ValueSwitchControl-D5Wvvjkl.js} +1 -1
  52. package/dist/{VerticalLayout-XZDIzC22.js → VerticalLayout-BWdIxoLw.js} +2 -2
  53. package/dist/{VerticalLayoutBase-BJqVRx97.js → VerticalLayoutBase-BDXZiCFe.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-BxjsbtVt.js → ZonedDateTimeControl-DxYaZt1o.js} +4 -4
  55. package/dist/{_baseEach-D8RnrYrB.js → _baseEach-CeIQwrHm.js} +2 -2
  56. package/dist/{_baseIteratee-D9UH3M63.js → _baseIteratee-CcE6KGT4.js} +13 -13
  57. package/dist/{_getTag-CA0hgY0u.js → _getTag--DhdlgdA.js} +7 -7
  58. package/dist/knime-jsonforms.css +1 -1
  59. package/dist/knime-jsonforms.js +7 -7
  60. package/dist/{localTimeUtils-BrGs9gYt.js → localTimeUtils-CCm4ffv1.js} +1 -1
  61. package/dist/{magic-string.es-Cu11P2Wx.js → magic-string.es-qNw6JCs_.js} +10 -10
  62. package/dist/src/constants/inputFormats.d.ts +2 -0
  63. package/dist/src/higherOrderComponents/control/withLabel.d.ts +3 -0
  64. package/dist/src/renderers/defaultRenderers.d.ts +4 -50
  65. package/dist/src/renderers/dropdownRenderer.d.ts +1 -25
  66. package/dist/src/renderers/fallbackRenderers.d.ts +1 -25
  67. package/dist/src/renderers/multiSelectListBoxRenderer.d.ts +2 -0
  68. package/dist/src/renderers/singleSelectListBoxRenderer.d.ts +2 -0
  69. package/dist/src/renderers/textRenderer.d.ts +1 -25
  70. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -13
  71. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +3 -0
  72. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +3 -0
  73. package/dist/src/uiComponents/TextControl.vue.d.ts +4 -13
  74. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +2 -4
  75. package/dist/{svgWithTitle-CHVPPDPX.js → svgWithTitle-CMKpJKYe.js} +1 -1
  76. package/dist/testing.js +3 -3
  77. package/dist/{toString-C1degr1B.js → toString-BNdfvkwo.js} +1 -1
  78. package/dist/{useBuiltinValidations-CRcABzj-.js → useBuiltinValidations-CPGk0tzm.js} +1 -1
  79. package/dist/{usePossibleValues-Cl7X2zdT.js → usePossibleValues-C_KA5P1k.js} +1 -1
  80. package/package.json +3 -3
  81. package/dist/Checkbox-wvG2anWL.js +0 -75
  82. package/dist/DropdownControl-DvKK3lKy.js +0 -84
  83. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CIACum6_.js +0 -93
  84. package/dist/useHideOnNull-CCfNP3O7.js +0 -42
@@ -1,4 +1,4 @@
1
- import { K as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
1
+ import { M as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
2
2
  var q = { exports: {} };
3
3
  (function(E, t) {
4
4
  (function(e, n) {
@@ -129,7 +129,7 @@ var q = { exports: {} };
129
129
  continue;
130
130
  }
131
131
  const R = o(i, 0), U = R & 1, A = R & 2, T = R & 4;
132
- let W = null, D = F, _;
132
+ let Y = null, D = F, _;
133
133
  if (U) {
134
134
  const L = o(i, b);
135
135
  m = o(i, b === L ? m : 0), b = L, _ = [g, x, 0, 0, L, m];
@@ -139,9 +139,9 @@ var q = { exports: {} };
139
139
  const L = S, I = C;
140
140
  S = o(i, S);
141
141
  const j = L === S;
142
- C = o(i, j ? C : 0), w = o(i, j && I === C ? w : 0), W = [S, C, w];
142
+ C = o(i, j ? C : 0), w = o(i, j && I === C ? w : 0), Y = [S, C, w];
143
143
  }
144
- if (_.callsite = W, k(i, p)) {
144
+ if (_.callsite = Y, k(i, p)) {
145
145
  D = [];
146
146
  do {
147
147
  y = g, v = x;
@@ -176,7 +176,7 @@ var q = { exports: {} };
176
176
  }
177
177
  function J(a, h, i, l) {
178
178
  const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
179
- l[0] < g ? (K(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
179
+ l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
180
180
  const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
181
181
  if (c(i, v, 0), d.length === 6) {
182
182
  const { 4: p, 5: x } = d;
@@ -203,9 +203,9 @@ var q = { exports: {} };
203
203
  break;
204
204
  h = J(a, h, i, l);
205
205
  }
206
- return l[0] < m ? (K(i, l[0], m), l[0] = m, l[1] = 0) : i.write(44), l[1] = c(i, S, l[1]), h;
206
+ return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(44), l[1] = c(i, S, l[1]), h;
207
207
  }
208
- function K(a, h, i) {
208
+ function W(a, h, i) {
209
209
  do
210
210
  a.write(59);
211
211
  while (++h < i);
@@ -371,7 +371,7 @@ const gt = Object.prototype.toString;
371
371
  function pt(E) {
372
372
  return gt.call(E) === "[object Object]";
373
373
  }
374
- function Y(E) {
374
+ function K(E) {
375
375
  const t = E.split(`
376
376
  `), e = [];
377
377
  for (let n = 0, s = 0; n < t.length; n++)
@@ -493,7 +493,7 @@ class Q {
493
493
  }
494
494
  generateDecodedMap(t) {
495
495
  t = t || {};
496
- const e = 0, n = Object.keys(this.storedNames), s = new wt(t.hires), r = Y(this.original);
496
+ const e = 0, n = Object.keys(this.storedNames), s = new wt(t.hires), r = K(this.original);
497
497
  return this.intro && s.advance(this.intro), this.firstChunk.eachNext((u) => {
498
498
  const f = r(u.start);
499
499
  u.intro.length && s.advance(u.intro), u.edited ? s.addEdit(
@@ -736,7 +736,7 @@ class Q {
736
736
  }
737
737
  _splitChunk(t, e) {
738
738
  if (t.edited && t.content.length) {
739
- const s = Y(this.original)(e);
739
+ const s = K(this.original)(e);
740
740
  throw new Error(
741
741
  `Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${t.original}")`
742
742
  );
@@ -23,6 +23,8 @@ export declare const inputFormats: {
23
23
  readonly interval: "interval";
24
24
  readonly dateTimeFormatWithType: "dateTimeFormatWithType";
25
25
  readonly dateTimeFormat: "dateTimeFormat";
26
+ readonly multiSelectListBox: "multiSelectListBox";
27
+ readonly singleSelectListBox: "singleSelectListBox";
26
28
  };
27
29
  export type InputFormat = (typeof inputFormats)[keyof typeof inputFormats];
28
30
  export declare const hasFormat: (format: InputFormat) => Tester;
@@ -3,6 +3,9 @@ export type VueControlPropsForLabelContent<D> = Omit<VueControlProps<D>, "labelF
3
3
  labelForId: string;
4
4
  };
5
5
  export type VueControlThatRequiresLabelWrapper<D> = PropsToComponent<VueControlPropsForLabelContent<D>>;
6
+ export type VueControlExposed = {
7
+ focus?: () => void;
8
+ };
6
9
  export declare const withLabel: (config?: {
7
10
  fill: boolean;
8
11
  }) => <D>({ control, tester, name, __asyncSetup, }: import('./util').SpecialControlRenderer<VueControlThatRequiresLabelWrapper<D>>) => import('./util').SpecialControlRenderer<VueControl<D>>;
@@ -10,31 +10,7 @@ export declare const controls: {
10
10
  __asyncSetup?: (() => Promise<void>) | undefined;
11
11
  control: import('../higherOrderComponents/control/types').VueControl<string>;
12
12
  };
13
- textRenderer: {
14
- name: string;
15
- control: {
16
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
17
- P: {};
18
- B: {};
19
- D: {};
20
- C: {};
21
- M: {};
22
- Defaults: {};
23
- }, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
24
- __isFragment?: undefined;
25
- __isTeleport?: undefined;
26
- __isSuspense?: undefined;
27
- } & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & 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 () => {
28
- $slots: {
29
- icon?(_: {}): any;
30
- buttons?(_: {
31
- hover: boolean;
32
- controlHTMLElement: HTMLElement | null;
33
- }): any;
34
- };
35
- });
36
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
37
- };
13
+ textRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
38
14
  checkboxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<boolean>>;
39
15
  anyOfTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
40
16
  numberFallbackRenderer: {
@@ -59,11 +35,13 @@ export declare const controls: {
59
35
  intervalRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
60
36
  localDateRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
61
37
  localTimeRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
38
+ multiSelectListBoxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
62
39
  nameFilterRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<import('../uiComponents/twinlist/MultimodeTwinlistControl.vue').TwinlistData>>;
63
40
  numberRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<number>>;
64
41
  radioRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
65
42
  richTextRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
66
43
  simpleTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
44
+ singleSelectListBoxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
67
45
  sortListRenderer: {
68
46
  name: string;
69
47
  control: {
@@ -348,31 +326,7 @@ export declare const controls: {
348
326
  /**
349
327
  * Containing an optional checkbox. Keep Label in control until we have a framework for that.
350
328
  */
351
- dropdownRenderer: {
352
- name: string;
353
- control: {
354
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
355
- P: {};
356
- B: {};
357
- D: {};
358
- C: {};
359
- M: {};
360
- Defaults: {};
361
- }, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
362
- __isFragment?: undefined;
363
- __isTeleport?: undefined;
364
- __isSuspense?: undefined;
365
- } & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & 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 () => {
366
- $slots: {
367
- icon?(_: {}): any;
368
- buttons?(_: {
369
- hover: boolean;
370
- controlHTMLElement: null;
371
- }): any;
372
- };
373
- });
374
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
375
- };
329
+ dropdownRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
376
330
  };
377
331
  export declare const layouts: {
378
332
  verticalLayoutFallbackRenderer: {
@@ -1,25 +1 @@
1
- export declare const dropdownRenderer: {
2
- name: string;
3
- control: {
4
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
- P: {};
6
- B: {};
7
- D: {};
8
- C: {};
9
- M: {};
10
- Defaults: {};
11
- }, Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
12
- __isFragment?: undefined;
13
- __isTeleport?: undefined;
14
- __isSuspense?: undefined;
15
- } & import('vue').ComponentOptionsBase<Readonly<import('..').VueControlProps<string | null>> & 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 () => {
16
- $slots: {
17
- icon?(_: {}): any;
18
- buttons?(_: {
19
- hover: boolean;
20
- controlHTMLElement: null;
21
- }): any;
22
- };
23
- });
24
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
25
- };
1
+ export declare const dropdownRenderer: import('../higherOrderComponents').SpecialControlRenderer<import('../higherOrderComponents').VueControl<string | null>>;
@@ -6,31 +6,7 @@ export declare const fallbackControlRenderers: {
6
6
  __asyncSetup?: (() => Promise<void>) | undefined;
7
7
  control: import('../higherOrderComponents/control/types').VueControl<string>;
8
8
  };
9
- textRenderer: {
10
- name: string;
11
- control: {
12
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
13
- P: {};
14
- B: {};
15
- D: {};
16
- C: {};
17
- M: {};
18
- Defaults: {};
19
- }, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
20
- __isFragment?: undefined;
21
- __isTeleport?: undefined;
22
- __isSuspense?: undefined;
23
- } & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & 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 () => {
24
- $slots: {
25
- icon?(_: {}): any;
26
- buttons?(_: {
27
- hover: boolean;
28
- controlHTMLElement: HTMLElement | null;
29
- }): any;
30
- };
31
- });
32
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
33
- };
9
+ textRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
34
10
  checkboxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<boolean>>;
35
11
  anyOfTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
36
12
  numberFallbackRenderer: {
@@ -0,0 +1,2 @@
1
+ export declare const multiSelectListBoxTester: import('@jsonforms/core').Tester;
2
+ export declare const multiSelectListBoxRenderer: import('..').SpecialControlRenderer<import('..').VueControl<string[]>>;
@@ -0,0 +1,2 @@
1
+ export declare const singleSelectListBoxTester: import('@jsonforms/core').Tester;
2
+ export declare const singleSelectListBoxRenderer: import('..').SpecialControlRenderer<import('..').VueControl<string>>;
@@ -1,25 +1 @@
1
- export declare const textRenderer: {
2
- name: string;
3
- control: {
4
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
- P: {};
6
- B: {};
7
- D: {};
8
- C: {};
9
- M: {};
10
- Defaults: {};
11
- }, Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
12
- __isFragment?: undefined;
13
- __isTeleport?: undefined;
14
- __isSuspense?: undefined;
15
- } & import('vue').ComponentOptionsBase<Readonly<import('..').VueControlProps<string | null>> & 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 () => {
16
- $slots: {
17
- icon?(_: {}): any;
18
- buttons?(_: {
19
- hover: boolean;
20
- controlHTMLElement: HTMLElement | null;
21
- }): any;
22
- };
23
- });
24
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
25
- };
1
+ export declare const textRenderer: import('../higherOrderComponents').SpecialControlRenderer<import('../higherOrderComponents').VueControl<string | null>>;
@@ -1,14 +1,3 @@
1
- import { VueControlProps } from '../higherOrderComponents/control/types';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<VueControlProps<string | null>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
3
- icon?(_: {}): any;
4
- buttons?(_: {
5
- hover: boolean;
6
- controlHTMLElement: null;
7
- }): any;
8
- }>;
1
+ import { VueControlPropsForLabelContent } from '../higherOrderComponents/control/withLabel';
2
+ declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string | null>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
3
  export default _default;
10
- type __VLS_WithTemplateSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -0,0 +1,3 @@
1
+ import { VueControlPropsForLabelContent } from '../higherOrderComponents/control/withLabel';
2
+ declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string[]>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string[]>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { VueControlPropsForLabelContent } from '../higherOrderComponents/control/withLabel';
2
+ declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -1,14 +1,5 @@
1
- import { VueControlProps } from '../higherOrderComponents/control/types';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<VueControlProps<string | null>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
3
- icon?(_: {}): any;
4
- buttons?(_: {
5
- hover: boolean;
6
- controlHTMLElement: HTMLElement | null;
7
- }): any;
8
- }>;
1
+ import { VueControlPropsForLabelContent } from '../higherOrderComponents/control/withLabel';
2
+ declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string | null>, {
3
+ focus?: (() => void) | undefined;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
5
  export default _default;
10
- type __VLS_WithTemplateSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +1,12 @@
1
1
  import { Ref } from 'vue';
2
2
  import { Control } from '../../types/Control';
3
- declare const _default: ({ control, disabled, controlElement, }: {
3
+ declare const _default: ({ control, disabled, changeValue, controlElement, }: {
4
4
  control: Ref<Control>;
5
5
  disabled: Ref<boolean>;
6
+ changeValue: (value: unknown) => void;
6
7
  controlElement: Ref<{
7
8
  focus?: () => void;
8
9
  } | null>;
9
- }, setters: {
10
- setDefault: () => void;
11
- setNull: () => void;
12
10
  }) => {
13
11
  showCheckbox: import('vue').ComputedRef<any>;
14
12
  showControl: import('vue').ComputedRef<boolean>;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, openBlock as c, createBlock as s, unref as a, h as i } from "vue";
2
2
  import { R as d } from "./reload-BVbCGubF.js";
3
- import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
3
+ import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
4
4
  const p = /* @__PURE__ */ r({
5
5
  __name: "LoadingIcon",
6
6
  setup(t) {
package/dist/testing.js CHANGED
@@ -3,8 +3,8 @@ var L_ = (e, t, n) => t in e ? j_(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var G = (e, t, n) => L_(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as nh from "vue";
5
5
  import { initDirectivesForSSR as F_, nextTick as fo, defineComponent as ui, computed as kr, h as xn, shallowReactive as B_, reactive as V_, ref as rh, createApp as q_, transformVNodeArgs as W_, setDevtoolsHook as U_, Transition as z_, BaseTransition as K_, TransitionGroup as X_, isRef as G_ } from "vue";
6
- import { n as J_, o as H_, b as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
7
- import { b as Q_ } from "./_baseIteratee-D9UH3M63.js";
6
+ import { n as J_, o as H_, b as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
7
+ import { b as Q_ } from "./_baseIteratee-CcE6KGT4.js";
8
8
  function Z_(e, t) {
9
9
  return e > t;
10
10
  }
@@ -9512,7 +9512,7 @@ function Bw(e, t) {
9512
9512
  return s + 1;
9513
9513
  }
9514
9514
  async function Vw(e, t) {
9515
- const n = (await import("./magic-string.es-Cu11P2Wx.js")).default, r = new Set(t.map((i) => i.file));
9515
+ const n = (await import("./magic-string.es-qNw6JCs_.js")).default, r = new Set(t.map((i) => i.file));
9516
9516
  await Promise.all(
9517
9517
  Array.from(r).map(async (i) => {
9518
9518
  const s = t.filter((c) => c.file === i), o = await e.readSnapshotFile(i), a = new n(o);
@@ -1,4 +1,4 @@
1
- import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
1
+ import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
2
2
  import { i as l } from "./isArray-WzO_os3q.js";
3
3
  function p(n, r) {
4
4
  for (var t = -1, i = n == null ? 0 : n.length, o = Array(i); ++t < i; )
@@ -1,5 +1,5 @@
1
1
  import { computed as r } from "vue";
2
- import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
2
+ import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
3
3
  const l = (e = {}) => e.validations ?? [], c = (e = {}) => (e.validationProviders ?? []).map(
4
4
  (i) => d(i, null)
5
5
  ), s = (e, i) => {
@@ -1,5 +1,5 @@
1
1
  import { computed as a } from "vue";
2
- import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
2
+ import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
3
3
  const t = (s) => {
4
4
  var e;
5
5
  const u = a(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.10.3",
3
+ "version": "1.11.0",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "homepage": "https://knime.github.io/webapps-common/",
6
6
  "license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
@@ -15,8 +15,8 @@
15
15
  "focus-trap-vue": "4.0.3",
16
16
  "tabbable": "6.2.0",
17
17
  "uuid": "10.0.0",
18
- "@knime/components": "1.28.1",
19
- "@knime/rich-text-editor": "1.4.11",
18
+ "@knime/components": "1.28.2",
19
+ "@knime/rich-text-editor": "1.4.12",
20
20
  "@knime/styles": "1.4.0",
21
21
  "@knime/utils": "1.4.0"
22
22
  },
@@ -1,75 +0,0 @@
1
- import { openBlock as s, createElementBlock as i, normalizeClass as o, createElementVNode as d, renderSlot as c } from "vue";
2
- import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
3
- const r = {
4
- name: "Checkbox",
5
- props: {
6
- id: {
7
- type: String,
8
- default: null
9
- },
10
- name: {
11
- type: String,
12
- default: null
13
- },
14
- modelValue: {
15
- type: Boolean,
16
- default: !1
17
- },
18
- disabled: {
19
- default: !1,
20
- type: Boolean
21
- },
22
- invalid: {
23
- type: Boolean,
24
- default: !1
25
- },
26
- /**
27
- * Controls the size of the label
28
- * supported values:
29
- * - regular
30
- * - large
31
- */
32
- labelSize: {
33
- type: String,
34
- default: "regular",
35
- validator: (e) => ["regular", "large"].includes(e)
36
- }
37
- },
38
- emits: ["update:modelValue"],
39
- computed: {
40
- classes() {
41
- return ["checkbox", this.labelSize, { disabled: this.disabled }];
42
- }
43
- },
44
- methods: {
45
- onInput(e) {
46
- const { checked: l } = e.target;
47
- consola.trace("Checkbox value changed to", l), this.$emit("update:modelValue", l);
48
- },
49
- isChecked() {
50
- return this.$refs.input.checked;
51
- }
52
- }
53
- }, f = ["id", "name", "checked", "disabled"];
54
- function m(e, l, a, h, p, t) {
55
- return s(), i("label", {
56
- class: o([t.classes, { invalid: a.invalid }])
57
- }, [
58
- d("input", {
59
- id: a.id,
60
- ref: "input",
61
- name: a.name,
62
- checked: a.modelValue,
63
- disabled: a.disabled,
64
- type: "checkbox",
65
- onChange: l[0] || (l[0] = (...n) => t.onInput && t.onInput(...n))
66
- }, null, 40, f),
67
- d("span", null, [
68
- c(e.$slots, "default", {}, void 0, !0)
69
- ])
70
- ], 2);
71
- }
72
- const _ = /* @__PURE__ */ u(r, [["render", m], ["__scopeId", "data-v-ff0025cf"]]);
73
- export {
74
- _ as C
75
- };
@@ -1,84 +0,0 @@
1
- import { defineComponent as C, ref as c, toRef as k, computed as p, openBlock as s, createBlock as i, withCtx as l, unref as a, normalizeProps as y, mergeProps as L, createCommentVNode as m, createVNode as w, renderSlot as b } from "vue";
2
- import { L as F, E as D } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B7_JuEON.js";
3
- import { u as E } from "./useHideOnNull-CCfNP3O7.js";
4
- import { u as N } from "./usePossibleValues-Cl7X2zdT.js";
5
- import { L as B } from "./LoadingDropdown-PhOSUx1V.js";
6
- import { C as P } from "./Checkbox-wvG2anWL.js";
7
- const I = /* @__PURE__ */ C({
8
- __name: "DropdownControl",
9
- props: {
10
- control: {},
11
- handleChange: { type: Function },
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- labelForId: {},
15
- isValid: { type: Boolean },
16
- messages: {},
17
- onRegisterValidation: { type: Function }
18
- },
19
- setup(h) {
20
- const o = h, r = c(null), { possibleValues: n } = N(k(o, "control")), d = c(o.control.data), f = (e) => e.length > 0 ? e[0].id : null, { showCheckbox: V, showControl: g, checkboxProps: v } = E(
21
- {
22
- control: p(() => o.control),
23
- disabled: p(() => o.disabled),
24
- controlElement: r
25
- },
26
- {
27
- setDefault: () => {
28
- !d.value && n.value ? o.changeValue(
29
- f(n.value)
30
- ) : o.changeValue(d.value);
31
- },
32
- setNull: () => {
33
- o.changeValue(null);
34
- }
35
- }
36
- );
37
- return (e, H) => {
38
- var u;
39
- return s(), i(F, {
40
- label: e.control.label,
41
- "hide-control-header": (u = e.control.uischema.options) == null ? void 0 : u.hideControlHeader
42
- }, {
43
- "before-label": l(() => [
44
- a(V) ? (s(), i(a(P), y(L({ key: 0 }, a(v))), null, 16)) : m("", !0)
45
- ]),
46
- default: l(({ labelForId: t }) => [
47
- a(g) ? (s(), i(D, {
48
- key: 0,
49
- errors: e.messages.errors
50
- }, {
51
- default: l(() => [
52
- w(B, {
53
- id: t ?? "",
54
- ref_key: "controlElement",
55
- ref: r,
56
- ariaLabel: e.control.label,
57
- disabled: e.disabled,
58
- "model-value": e.control.data ?? "",
59
- "possible-values": a(n),
60
- "is-valid": e.isValid,
61
- compact: "",
62
- "onUpdate:modelValue": e.changeValue
63
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid", "onUpdate:modelValue"])
64
- ]),
65
- _: 2
66
- }, 1032, ["errors"])) : m("", !0)
67
- ]),
68
- icon: l(() => [
69
- b(e.$slots, "icon")
70
- ]),
71
- buttons: l(({ hover: t }) => [
72
- b(e.$slots, "buttons", {
73
- hover: t,
74
- controlHTMLElement: r.value
75
- })
76
- ]),
77
- _: 3
78
- }, 8, ["label", "hide-control-header"]);
79
- };
80
- }
81
- });
82
- export {
83
- I as default
84
- };