@knime/jsonforms 1.10.4 → 1.11.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AnyOfTwinlist-Dvwh44EZ.js → AnyOfTwinlist-DExCwi8X.js} +1 -1
  3. package/dist/{Button-CO9MECNO.js → Button-BYgBiz4E.js} +1 -1
  4. package/dist/{CheckboxControl-D-jcEMx9.js → CheckboxControl-oPuGgrA8.js} +12 -13
  5. package/dist/{Checkboxes-Djk9SPMd.js → Checkboxes-vHcOobpk.js} +16 -17
  6. package/dist/{CheckboxesControl-Di7XI4Ea.js → CheckboxesControl-BhC2XS_7.js} +2 -2
  7. package/dist/{ComboBoxControl-CBsM1Bf0.js → ComboBoxControl-ktK0Dsrc.js} +10 -11
  8. package/dist/{DateControl-B4ztx3dj.js → DateControl-DN0JNgyP.js} +1 -1
  9. package/dist/{DateTimeControl-BtVVcmZ0.js → DateTimeControl-DXl-u_Aa.js} +2 -2
  10. package/dist/{DateTimeFormatInput-BUZQIU2y.js → DateTimeFormatInput-DLxsLWxY.js} +3 -3
  11. package/dist/{DateTimeFormatPickerControl-BY0t3CWJ.js → DateTimeFormatPickerControl-4JlwJIIj.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-CE9vz--D.js → DateTimeFormatPickerWithTypeControl-BgVO1C3U.js} +3 -3
  13. package/dist/{DateTimeInput-B6b6ntsL.js → DateTimeInput-D7Tkaejm.js} +6 -6
  14. package/dist/{Dropdown-c0-3hZhQ.js → Dropdown-sTZUxt40.js} +2 -2
  15. package/dist/DropdownControl-DNx6NrBt.js +31 -0
  16. package/dist/{HorizontalLayout-C5eOQMLy.js → HorizontalLayout-D0IAG-64.js} +1 -1
  17. package/dist/{InputField-C_Kwnh2D.js → InputField-CeMVvhck.js} +1 -1
  18. package/dist/{IntegerControl-Ch5uGTZX.js → IntegerControl-CSr--7c5.js} +1 -1
  19. package/dist/{IntervalControl-DPEsNxzq.js → IntervalControl-RXanaymT.js} +3 -3
  20. package/dist/{LoadingDropdown-DVtYSqZi.js → LoadingDropdown-CJY4hHzi.js} +3 -3
  21. package/dist/{MultiSelectListBoxControl-HLKnQuLK.js → MultiSelectListBoxControl-DaSplStq.js} +2 -2
  22. package/dist/{MultimodeTwinlistControl-06t2HfAA.js → MultimodeTwinlistControl-CD9GfxQw.js} +5 -5
  23. package/dist/{MultiselectListBox-DB1_x4Gm.js → MultiselectListBox-Dm3fRjrZ.js} +2 -2
  24. package/dist/{NameFilter-BPtDd_ZM.js → NameFilter-B141QEGl.js} +1 -1
  25. package/dist/{NumberControl-D3aijNOg.js → NumberControl-Z42WpGdz.js} +1 -1
  26. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-HvcHTpTJ.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B9VsFHG5.js} +2 -2
  27. package/dist/{NumberInput-BwvuSJTp.js → NumberInput-DH02Ksrd.js} +1 -1
  28. package/dist/{OneOfDropdown-BHdTyh4E.js → OneOfDropdown-BQB8GtDB.js} +1 -1
  29. package/dist/{RadioControl-CSsd4PtY.js → RadioControl-UmBhl3xt.js} +2 -2
  30. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DSe1Y4CQ.js +114 -0
  31. package/dist/{RichTextControl-CyrN2sAf.js → RichTextControl-QEnm8Pac.js} +14 -15
  32. package/dist/{SectionHeading-BteoPwU6.js → SectionHeading-B9_X7XM7.js} +1 -1
  33. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.js} +5325 -5200
  34. package/dist/{SectionLayout-CesW02NL.js → SectionLayout-DOVAeB5S.js} +3 -3
  35. package/dist/{SettingsSubPanel-BLd9zMXy.js → SettingsSubPanel-CNPbjfkq.js} +1 -1
  36. package/dist/{SettingsSubPanelLayout-DTKtp5ps.js → SettingsSubPanelLayout-35ddyzOd.js} +4 -4
  37. package/dist/{SimpleButtonControl-B8m2_6Ba.js → SimpleButtonControl-b3bnGpUN.js} +2 -2
  38. package/dist/{SimpleTwinlistControl-CMhamSbA.js → SimpleTwinlistControl-BaNaWa47.js} +2 -2
  39. package/dist/{SingleSelectControl-KpBNyVJl.js → SingleSelectControl-D0fLNs1v.js} +2 -2
  40. package/dist/{SingleSelectListBoxControl-Cb9f-wp8.js → SingleSelectListBoxControl-B6-THFmy.js} +3 -3
  41. package/dist/{SortListControl-BT5e4z1B.js → SortListControl-2Shu_y-t.js} +6 -6
  42. package/dist/{StyledListItem-BmFWRFnF.js → StyledListItem-uhvmrv2P.js} +1 -1
  43. package/dist/{TextAreaControl-Bd_i3FxI.js → TextAreaControl-DH5qu32K.js} +1 -1
  44. package/dist/{TextControl-BKxooSfk.js → TextControl-BQnIqEdD.js} +1 -1
  45. package/dist/TextControl.vue_vue_type_script_setup_true_lang-BTUS_d9d.js +54 -0
  46. package/dist/{TimeControl-DqxbMcYs.js → TimeControl-CuRUUjQN.js} +2 -2
  47. package/dist/{TwinlistControlBase-C4NeGHHS.js → TwinlistControlBase-BCeEfAEf.js} +3 -3
  48. package/dist/{TwinlistLoadingInfo-DVAd49mv.js → TwinlistLoadingInfo-DESVkr5X.js} +4 -4
  49. package/dist/{TypedStringFilter-BvYWgmR2.js → TypedStringFilter-Dhf7p1Zo.js} +1 -1
  50. package/dist/{ValueSwitch-DJjWcjH3.js → ValueSwitch-oJvTYN6i.js} +1 -1
  51. package/dist/{ValueSwitchControl-B-mOeS-W.js → ValueSwitchControl-CfoabbLg.js} +1 -1
  52. package/dist/{VerticalLayout-C1g92Q4d.js → VerticalLayout-BVH_z_-9.js} +2 -2
  53. package/dist/{VerticalLayoutBase-BrH1Nr0z.js → VerticalLayoutBase-DS2lrsls.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-blZIZcV0.js → ZonedDateTimeControl-BmmSaaHU.js} +4 -4
  55. package/dist/{_baseEach-C1cC1iYK.js → _baseEach-DExThq6q.js} +2 -2
  56. package/dist/{_baseIteratee-CapP6YsQ.js → _baseIteratee-DpMw-3BJ.js} +17 -17
  57. package/dist/{_getTag-CphCWFRC.js → _getTag-DMaIY-RW.js} +15 -15
  58. package/dist/knime-jsonforms.css +1 -1
  59. package/dist/knime-jsonforms.js +7 -7
  60. package/dist/{localTimeUtils-C73txZxM.js → localTimeUtils-D7VPozG0.js} +1 -1
  61. package/dist/{magic-string.es-DwkmLaDE.js → magic-string.es-CGf_nCYe.js} +10 -10
  62. package/dist/src/higherOrderComponents/control/withLabel.d.ts +3 -0
  63. package/dist/src/renderers/defaultRenderers.d.ts +2 -50
  64. package/dist/src/renderers/dropdownRenderer.d.ts +1 -25
  65. package/dist/src/renderers/fallbackRenderers.d.ts +1 -25
  66. package/dist/src/renderers/textRenderer.d.ts +1 -25
  67. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -13
  68. package/dist/src/uiComponents/TextControl.vue.d.ts +4 -13
  69. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +2 -4
  70. package/dist/{svgWithTitle-BYet-mD6.js → svgWithTitle-BcmOOBNM.js} +1 -1
  71. package/dist/testing.js +3 -3
  72. package/dist/{toString-zfY2ugmM.js → toString-DH9Gcig7.js} +1 -1
  73. package/dist/{useBuiltinValidations-CQ7jhonx.js → useBuiltinValidations-4DJm_iYY.js} +1 -1
  74. package/dist/{usePossibleValues-DJHSR3yJ.js → usePossibleValues-CK8wY2IB.js} +1 -1
  75. package/package.json +1 -1
  76. package/dist/Checkbox-C3WOC8SX.js +0 -75
  77. package/dist/DropdownControl-rZt5v61Q.js +0 -84
  78. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DDINkVnv.js +0 -108
  79. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bs3-RJsw.js +0 -93
  80. 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-Dq1Jv6TX.js";
1
+ import { M as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.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
  );
@@ -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: {
@@ -350,31 +326,7 @@ export declare const controls: {
350
326
  /**
351
327
  * Containing an optional checkbox. Keep Label in control until we have a framework for that.
352
328
  */
353
- dropdownRenderer: {
354
- name: string;
355
- control: {
356
- 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, {
357
- P: {};
358
- B: {};
359
- D: {};
360
- C: {};
361
- M: {};
362
- Defaults: {};
363
- }, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
364
- __isFragment?: undefined;
365
- __isTeleport?: undefined;
366
- __isSuspense?: undefined;
367
- } & 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 () => {
368
- $slots: {
369
- icon?(_: {}): any;
370
- buttons?(_: {
371
- hover: boolean;
372
- controlHTMLElement: null;
373
- }): any;
374
- };
375
- });
376
- tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
377
- };
329
+ dropdownRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
378
330
  };
379
331
  export declare const layouts: {
380
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: {
@@ -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
- };
@@ -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-Dq1Jv6TX.js";
3
+ import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.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-Dq1Jv6TX.js";
7
- import { b as Q_ } from "./_baseIteratee-CapP6YsQ.js";
6
+ import { n as J_, o as H_, b as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.js";
7
+ import { b as Q_ } from "./_baseIteratee-DpMw-3BJ.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-DwkmLaDE.js")).default, r = new Set(t.map((i) => i.file));
9515
+ const n = (await import("./magic-string.es-CGf_nCYe.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-Dq1Jv6TX.js";
1
+ import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.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-Dq1Jv6TX.js";
2
+ import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.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-Dq1Jv6TX.js";
2
+ import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-3HQlaYB9.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.4",
3
+ "version": "1.11.1",
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)",
@@ -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-Dq1Jv6TX.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-Dq1Jv6TX.js";
3
- import { u as E } from "./useHideOnNull-CCfNP3O7.js";
4
- import { u as N } from "./usePossibleValues-DJHSR3yJ.js";
5
- import { L as B } from "./LoadingDropdown-DVtYSqZi.js";
6
- import { C as P } from "./Checkbox-C3WOC8SX.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
- };
@@ -1,108 +0,0 @@
1
- import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as y, createCommentVNode as V } from "vue";
2
- import { o as h } from "./index-Blg1O3Fz.js";
3
- import { B as _, V as g } from "./ValueSwitch-DJjWcjH3.js";
4
- import { _ as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js";
5
- const R = {
6
- name: "RadioButtons",
7
- components: {
8
- BaseRadioButtons: _
9
- },
10
- props: {
11
- // these props are passed to BaseRadioButtons
12
- id: {
13
- type: String,
14
- default: null
15
- },
16
- modelValue: {
17
- type: String,
18
- default: ""
19
- },
20
- disabled: {
21
- default: !1,
22
- type: Boolean
23
- },
24
- /**
25
- * List of possible values. Each item must have an `id` and a `text` property
26
- * @example
27
- * [{
28
- * id: 'pdf',
29
- * text: 'PDF'
30
- * }, {
31
- * id: 'XLS',
32
- * text: 'Excel',
33
- * }]
34
- */
35
- possibleValues: {
36
- type: Array,
37
- default: () => []
38
- },
39
- // additional props
40
- alignment: {
41
- type: String,
42
- default: "horizontal",
43
- validator(a) {
44
- return ["horizontal", "vertical"].includes(a);
45
- }
46
- }
47
- },
48
- emits: ["update:modelValue"],
49
- methods: {
50
- hasSelection() {
51
- return this.$refs.radioButton.$refs.input.some((a) => a.checked);
52
- }
53
- }
54
- };
55
- function S(a, t, o, d, i, u) {
56
- const l = c("BaseRadioButtons");
57
- return m(), p(l, {
58
- id: o.id,
59
- ref: "radioButton",
60
- "possible-values": o.possibleValues,
61
- "model-value": o.modelValue,
62
- disabled: o.disabled,
63
- class: b(["radio-buttons", o.alignment, { disabled: o.disabled }]),
64
- "onUpdate:modelValue": t[0] || (t[0] = (e) => a.$emit("update:modelValue", e))
65
- }, null, 8, ["id", "possible-values", "model-value", "disabled", "class"]);
66
- }
67
- const F = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]), U = /* @__PURE__ */ f({
68
- __name: "RadioControlBase",
69
- props: {
70
- control: {},
71
- handleChange: { type: Function },
72
- changeValue: { type: Function },
73
- disabled: { type: Boolean },
74
- isValid: { type: Boolean },
75
- onRegisterValidation: { type: Function },
76
- labelForId: {},
77
- type: {}
78
- },
79
- setup(a) {
80
- const t = a, o = s(() => {
81
- var e;
82
- return (e = t.control.uischema.options) == null ? void 0 : e.radioLayout;
83
- }), d = s(
84
- () => {
85
- var e;
86
- return ((e = t.control.uischema.options) == null ? void 0 : e.disabledOptions) ?? [];
87
- }
88
- ), i = (e) => d.value.includes(e.id) ? { ...e, disabled: !0 } : e, u = s(
89
- () => t.type === "valueSwitch" ? g : F
90
- ), l = v(null);
91
- return B(() => {
92
- var e, n, r;
93
- l.value = (r = (n = (e = t.control) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : r.map(h).map(i);
94
- }), (e, n) => l.value ? (m(), p(y(u.value), {
95
- key: 0,
96
- id: e.labelForId,
97
- "possible-values": l.value,
98
- alignment: o.value,
99
- disabled: e.disabled,
100
- "model-value": e.control.data,
101
- compact: "",
102
- "onUpdate:modelValue": e.changeValue
103
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : V("", !0);
104
- }
105
- });
106
- export {
107
- U as _
108
- };