@knime/jsonforms 1.11.4 → 1.12.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 (98) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{AnyOfTwinlist-B8IWCQfI.js → AnyOfTwinlist-C2hopPFE.js} +1 -1
  3. package/dist/{Button-BIMifH4J.js → Button-a3DyR88M.js} +1 -1
  4. package/dist/{CheckboxControl-mUTfjUik.js → CheckboxControl-DoQCgnTf.js} +1 -1
  5. package/dist/{Checkboxes-C8MYjELb.js → Checkboxes-DNbu05C7.js} +1 -1
  6. package/dist/{CheckboxesControl-PnQ9Adbm.js → CheckboxesControl-DgwL4BAl.js} +3 -3
  7. package/dist/{ComboBoxControl-Bx9k_xcF.js → ComboBoxControl-DSSfSqIC.js} +5 -5
  8. package/dist/{DateControl-CFDyvByp.js → DateControl-DArS42tY.js} +1 -1
  9. package/dist/{DateTimeControl-6xLdTDKD.js → DateTimeControl-BuZ5D5EW.js} +2 -2
  10. package/dist/{DateTimeFormatInput-DN13KoIx.js → DateTimeFormatInput-BJepKEOT.js} +3 -3
  11. package/dist/DateTimeFormatPickerControl-YAKOrguY.js +43 -0
  12. package/dist/{DateTimeFormatPickerWithTypeControl-CK9zH_Pb.js → DateTimeFormatPickerWithTypeControl-CM2eu1Bq.js} +19 -23
  13. package/dist/{DateTimeInput-CDUSsfXW.js → DateTimeInput-B30lQ3sx.js} +6 -6
  14. package/dist/{Dropdown-VTgudgLJ.js → Dropdown-Cp5fC5vt.js} +5 -5
  15. package/dist/{DropdownControl-B8hshDBE.js → DropdownControl-DXtUnm7l.js} +2 -2
  16. package/dist/{HorizontalLayout-MsL7PmH3.js → HorizontalLayout-BTxnoo0O.js} +1 -1
  17. package/dist/{InputField-fNsY8a05.js → InputField-B2bBpIrm.js} +1 -1
  18. package/dist/{IntegerControl-ZSV_1jks.js → IntegerControl-CamhgT4b.js} +1 -1
  19. package/dist/{IntervalControl-BedfdbyZ.js → IntervalControl-Dhz8aY9W.js} +134 -135
  20. package/dist/{LoadingDropdown-DRC0PUle.js → LoadingDropdown-DFLGXxJe.js} +3 -3
  21. package/dist/ManualTwinlistControl-C1Bk354m.js +85 -0
  22. package/dist/{MultiSelectListBoxControl-lf35kyRi.js → MultiSelectListBoxControl-DiSPf1p7.js} +2 -2
  23. package/dist/MultimodeTwinlistControl-DnpmvhFB.js +469 -0
  24. package/dist/MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_ca157254_lang-DjGJNwBV.js +65 -0
  25. package/dist/{MultiselectListBox-DXD5CLCh.js → MultiselectListBox-DMZvKZT2.js} +2 -2
  26. package/dist/{NameFilter-ClFwXeRF.js → NameFilter-qYooMIRr.js} +1 -1
  27. package/dist/{NumberControl-Cr7IXjEm.js → NumberControl-mAvpRa8P.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-ILIV8gqr.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DsYiLVc0.js} +2 -2
  29. package/dist/{NumberInput-A5_w5ol4.js → NumberInput-DfYpYs35.js} +1 -1
  30. package/dist/{OneOfDropdown-DlhjZGFa.js → OneOfDropdown-Dx9oWy6Y.js} +1 -1
  31. package/dist/{RadioControl-ClX2lEwk.js → RadioControl-C0sZejgk.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Bv6jDZzK.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BBZFZcBX.js} +3 -3
  33. package/dist/{RichTextControl-KJQSmoKv.js → RichTextControl-ikOmp5Zc.js} +4 -4
  34. package/dist/{SectionHeading-D1h8Hr3u.js → SectionHeading-DoKeahJG.js} +1 -1
  35. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js} +1310 -1299
  36. package/dist/{SectionLayout-CVyuhnR5.js → SectionLayout-DqhrTk7G.js} +13 -13
  37. package/dist/SettingsSubPanel-BsP2TPpl.js +5 -0
  38. package/dist/{SettingsSubPanelLayout-DGhJS__O.js → SettingsSubPanelLayout-QgTIOWrJ.js} +6 -6
  39. package/dist/{SimpleButtonControl-CiUUyw8s.js → SimpleButtonControl-DWOwphdQ.js} +2 -2
  40. package/dist/{SimpleTwinlistControl-D22uc8-j.js → SimpleTwinlistControl-Bm8f15KT.js} +2 -2
  41. package/dist/SingleSelectControl-DzoiFSGp.js +55 -0
  42. package/dist/{SingleSelectListBoxControl-mafA0Or_.js → SingleSelectListBoxControl-COshImPF.js} +24 -23
  43. package/dist/{SortListControl-CjaScQzv.js → SortListControl-D5jBOA2x.js} +54 -50
  44. package/dist/{StyledListItem-BoF85YFQ.js → StyledListItem-DCmVSIus.js} +1 -1
  45. package/dist/{TextAreaControl-C5eo1xkd.js → TextAreaControl-ijQXrkd5.js} +1 -1
  46. package/dist/{TextControl-CcC2bMdB.js → TextControl-Di5u3kig.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-JuMgL8lA.js → TextControl.vue_vue_type_script_setup_true_lang-DWUPaWoR.js} +12 -16
  48. package/dist/{TimeControl-CZIiQ1Iq.js → TimeControl-oa9oA0c7.js} +2 -2
  49. package/dist/{TwinlistControlBase-mEUGRSXm.js → TwinlistControlBase-Dm8KSJE0.js} +3 -3
  50. package/dist/{TwinlistLoadingInfo-D6z3t2c9.js → TwinlistLoadingInfo-Dcbz2hUN.js} +12 -12
  51. package/dist/{TypedStringFilter-LQdmf8v7.js → TypedStringFilter-DOox0S1z.js} +1 -1
  52. package/dist/{ValueSwitch-D6Wu1NDa.js → ValueSwitch-Ba0d4Jda.js} +1 -1
  53. package/dist/{ValueSwitchControl-BbarTqJt.js → ValueSwitchControl-BFY2YwjA.js} +1 -1
  54. package/dist/{VerticalLayout-KMe-3TA0.js → VerticalLayout-CdmecqY1.js} +5 -5
  55. package/dist/{VerticalLayoutBase-Bd2TMmEZ.js → VerticalLayoutBase-2Al6mtWQ.js} +1 -1
  56. package/dist/{ZonedDateTimeControl-Bs_bnndF.js → ZonedDateTimeControl-xwK_O0Ue.js} +4 -4
  57. package/dist/{_baseEach-CABMvL7j.js → _baseEach-kS6aH7yJ.js} +2 -2
  58. package/dist/{_baseIteratee-DItkztCj.js → _baseIteratee-CcwzbMbu.js} +13 -13
  59. package/dist/{_getTag-4mJMm5F3.js → _getTag-DpK8q53u.js} +1 -1
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +36 -34
  62. package/dist/{localTimeUtils-DWYnLAB-.js → localTimeUtils-4g4u5t7X.js} +1 -1
  63. package/dist/{magic-string.es-Iz0jmxfz.js → magic-string.es-CWjITDzi.js} +1 -1
  64. package/dist/src/JsonFormsDialog.vue.d.ts +7 -2
  65. package/dist/src/constants/inputFormats.d.ts +1 -0
  66. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +2 -0
  67. package/dist/src/higherOrderComponents/control/types.d.ts +4 -0
  68. package/dist/src/higherOrderComponents/control/util.d.ts +6 -0
  69. package/dist/src/index.d.ts +2 -1
  70. package/dist/src/renderers/defaultRenderers.d.ts +25 -0
  71. package/dist/src/renderers/simpleButtonRenderer.d.ts +12 -0
  72. package/dist/src/renderers/sortListRenderer.d.ts +12 -0
  73. package/dist/src/renderers/twinlistRenderer.d.ts +2 -0
  74. package/dist/src/types/ChoicesUiSchema.d.ts +8 -4
  75. package/dist/src/types/provided.d.ts +10 -1
  76. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +12 -0
  77. package/dist/src/uiComponents/SortListControl.vue.d.ts +8 -0
  78. package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +3 -6
  79. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +1 -1
  80. package/dist/src/uiComponents/composables/usePossibleValues.d.ts +2 -2
  81. package/dist/src/uiComponents/composables/useProvidedState.d.ts +17 -2
  82. package/dist/src/uiComponents/index.d.ts +2 -1
  83. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +8 -0
  84. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +3 -1
  85. package/dist/{svgWithTitle-CJzZ_AF0.js → svgWithTitle-DGBkWQrO.js} +1 -1
  86. package/dist/testUtils/component.d.ts +20 -4
  87. package/dist/testing.js +3 -3
  88. package/dist/toString-ByDUn5bZ.js +25 -0
  89. package/dist/useBuiltinValidations-ChTFREt7.js +73 -0
  90. package/dist/usePossibleValues-BB4he0jT.js +17 -0
  91. package/package.json +3 -3
  92. package/dist/DateTimeFormatPickerControl-BEnoRr2q.js +0 -47
  93. package/dist/MultimodeTwinlistControl-CwPCFa9I.js +0 -526
  94. package/dist/SettingsSubPanel-CjuhpEr4.js +0 -5
  95. package/dist/SingleSelectControl-LrEUX41i.js +0 -58
  96. package/dist/toString-DzEZi8fD.js +0 -25
  97. package/dist/useBuiltinValidations-hN9BsKJH.js +0 -52
  98. package/dist/usePossibleValues-DY3q9YuR.js +0 -26
@@ -1,27 +1,27 @@
1
- import { defineComponent as u, ref as i, onMounted as T, openBlock as c, createElementBlock as v, createElementVNode as y, createCommentVNode as x, provide as C, computed as E, watch as P, createBlock as A, Suspense as w, withCtx as d, createVNode as l, renderSlot as h, unref as B, nextTick as j } from "vue";
2
- import { _ as S, p as F, F as M, s as O, U as I, i as R } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
3
- import { E as Z, L as ee, a as te, c as oe, e as se, b as ae, d as re, g as ne, h as de, j as le, l as ie, f as ce, m as ue, k as pe, t as me, w as fe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
4
- import { default as ge } from "./SimpleButtonControl-CiUUyw8s.js";
5
- import { _ as De } from "./TextControl.vue_vue_type_script_setup_true_lang-JuMgL8lA.js";
6
- import { V as ye } from "./VerticalLayoutBase-Bd2TMmEZ.js";
7
- import { S as be } from "./SectionHeading-D1h8Hr3u.js";
8
- import { S as ke } from "./SettingsSubPanel-CjuhpEr4.js";
1
+ import { defineComponent as c, ref as i, onMounted as P, openBlock as u, createElementBlock as v, createElementVNode as y, createCommentVNode as T, provide as x, computed as C, watch as E, createBlock as A, Suspense as w, withCtx as d, createVNode as l, renderSlot as h, unref as B, nextTick as j } from "vue";
2
+ import { _ as S, p as F, F as M, s as O, U as I, i as R } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js";
3
+ import { E as Z, L as ee, a as te, c as oe, f as se, e as ae, d as re, g as ne, h as de, k as le, l as ie, j as ue, m as ce, b as pe, n as me, t as fe, u as _e, w as ge } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js";
4
+ import { default as De } from "./SimpleButtonControl-DWOwphdQ.js";
5
+ import { _ as ye } from "./TextControl.vue_vue_type_script_setup_true_lang-DWUPaWoR.js";
6
+ import { V as Le } from "./VerticalLayoutBase-2Al6mtWQ.js";
7
+ import { S as ke } from "./SectionHeading-DoKeahJG.js";
8
+ import { S as Te } from "./SettingsSubPanel-BsP2TPpl.js";
9
9
  const V = {
10
10
  key: 0,
11
11
  class: "loading-dialog skeleton-wrapper"
12
- }, $ = 200, N = /* @__PURE__ */ u({
12
+ }, $ = 200, N = /* @__PURE__ */ c({
13
13
  __name: "LoadingDialog",
14
14
  setup(r) {
15
15
  const s = i(!1);
16
- return T(() => {
16
+ return P(() => {
17
17
  setTimeout(() => {
18
18
  s.value = !0;
19
19
  }, $);
20
- }), (p, o) => s.value ? (c(), v("div", V, o[0] || (o[0] = [
20
+ }), (p, o) => s.value ? (u(), v("div", V, o[0] || (o[0] = [
21
21
  y("div", { class: "loading-dialog-content skeleton" }, null, -1)
22
- ]))) : x("", !0);
22
+ ]))) : T("", !0);
23
23
  }
24
- }), U = /* @__PURE__ */ S(N, [["__scopeId", "data-v-7dabb11d"]]), J = { class: "dialog" }, D = "EXPOSED_METHOD", G = /* @__PURE__ */ u({
24
+ }), U = /* @__PURE__ */ S(N, [["__scopeId", "data-v-7dabb11d"]]), J = { class: "dialog" }, D = "EXPOSED_METHOD", G = /* @__PURE__ */ c({
25
25
  __name: "JsonFormsDialog",
26
26
  props: {
27
27
  schema: {},
@@ -31,25 +31,25 @@ const V = {
31
31
  },
32
32
  emits: ["updateData", "trigger", "change", "alert", "stateProviderListener"],
33
33
  setup(r, { expose: s, emit: p }) {
34
- const o = p, b = (e, t, n) => {
34
+ const o = p, L = (e, t, n) => {
35
35
  var g;
36
36
  return t.type === I && ((g = t.context) == null ? void 0 : g.source) !== D && setTimeout(() => j(() => o("updateData", t.path))), n(e, t);
37
- }, L = (e) => {
37
+ }, b = (e) => {
38
38
  o("change", e);
39
39
  };
40
40
  Object.entries({
41
41
  trigger: (e) => o("trigger", e),
42
42
  addStateProviderListener: (e, t) => o("stateProviderListener", e, t),
43
43
  sendAlert: (e) => o("alert", e)
44
- }).forEach(([e, t]) => C(e, t));
44
+ }).forEach(([e, t]) => x(e, t));
45
45
  const a = i(null), m = [], f = (e, t) => {
46
46
  a.value.dispatch(
47
47
  R.update(e, () => t, {
48
48
  source: D
49
49
  })
50
50
  );
51
- }, k = E(() => a.value !== null);
52
- P(
51
+ }, k = C(() => a.value !== null);
52
+ E(
53
53
  () => k.value,
54
54
  (e) => e && m.forEach(
55
55
  ({ path: t, value: n }) => f(t, n)
@@ -60,12 +60,12 @@ const V = {
60
60
  }
61
61
  });
62
62
  const _ = i(null);
63
- return F(_), (e, t) => (c(), v("div", J, [
63
+ return F(_), (e, t) => (u(), v("div", J, [
64
64
  y("div", {
65
65
  ref_key: "subPanelTeleportDest",
66
66
  ref: _
67
67
  }, null, 512),
68
- (c(), A(w, null, {
68
+ (u(), A(w, null, {
69
69
  fallback: d(() => [
70
70
  l(U)
71
71
  ]),
@@ -80,8 +80,8 @@ const V = {
80
80
  schema: e.schema,
81
81
  uischema: e.uischema,
82
82
  renderers: e.renderers,
83
- middleware: b,
84
- onChange: L
83
+ middleware: L,
84
+ onChange: b
85
85
  }, null, 8, ["data", "schema", "uischema", "renderers"]),
86
86
  h(e.$slots, "bottom", {}, void 0, !0)
87
87
  ]),
@@ -92,12 +92,12 @@ const V = {
92
92
  }))
93
93
  ]));
94
94
  }
95
- }), z = /* @__PURE__ */ S(G, [["__scopeId", "data-v-1a67a46b"]]), H = {
95
+ }), z = /* @__PURE__ */ S(G, [["__scopeId", "data-v-206f257a"]]), H = {
96
96
  layout: {
97
97
  type: Object,
98
98
  required: !0
99
99
  }
100
- }, K = (r) => u(r, {
100
+ }, K = (r) => c(r, {
101
101
  props: H
102
102
  });
103
103
  export {
@@ -105,11 +105,11 @@ export {
105
105
  M as Form,
106
106
  z as JsonFormsDialog,
107
107
  ee as LabeledControl,
108
- be as SectionHeading,
109
- ke as SettingsSubPanel,
110
- ge as SimpleButtonControl,
111
- De as TextControl,
112
- ye as VerticalLayoutBase,
108
+ ke as SectionHeading,
109
+ Te as SettingsSubPanel,
110
+ De as SimpleButtonControl,
111
+ ye as TextControl,
112
+ Le as VerticalLayoutBase,
113
113
  te as controlProps,
114
114
  oe as controlToRenderer,
115
115
  se as controls,
@@ -121,9 +121,11 @@ export {
121
121
  le as inputFormats,
122
122
  H as layoutProps,
123
123
  ie as layoutToRenderer,
124
- ce as layouts,
125
- ue as mapControls,
126
- pe as priorityRanks,
127
- me as toRenderers,
128
- fe as withLabel
124
+ ue as layouts,
125
+ ce as mapControls,
126
+ pe as mapLayouts,
127
+ me as priorityRanks,
128
+ fe as toRenderers,
129
+ _e as useProvidedState,
130
+ ge as withLabel
129
131
  };
@@ -1,4 +1,4 @@
1
- import { r as q, t as k, g as F, a as Z, b as j, c as z, d as _, i as V, e as K, s as A, l as J, f as ee, h as L, j as te, k as re, m as ne, n as I, o as P, p as ae } from "./DateTimeInput-CDUSsfXW.js";
1
+ import { r as q, t as k, g as F, a as Z, b as j, c as z, d as _, i as V, e as K, s as A, l as J, f as ee, h as L, j as te, k as re, m as ne, n as I, o as P, p as ae } from "./DateTimeInput-B30lQ3sx.js";
2
2
  var ie = 864e5;
3
3
  function oe(a) {
4
4
  q(1, arguments);
@@ -1,4 +1,4 @@
1
- import { M as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
1
+ import { N as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js";
2
2
  var q = { exports: {} };
3
3
  (function(E, t) {
4
4
  (function(e, n) {
@@ -1,6 +1,7 @@
1
1
  import { JsonSchema, UISchemaElement } from '@jsonforms/core';
2
2
  import { NamedRenderer } from './higherOrderComponents/types';
3
3
  import { AlertParams } from './types/alert';
4
+ import { StateProviderLocation } from './types/provided';
4
5
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
5
6
  schema: JsonSchema;
6
7
  uischema: UISchemaElement;
@@ -15,7 +16,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
15
16
  trigger: (id: any) => any;
16
17
  updateData: (path: string) => any;
17
18
  alert: (alert: AlertParams) => any;
18
- stateProviderListener: (id: any, callback: (value: any) => void) => any;
19
+ stateProviderListener: (identifier: StateProviderLocation & {
20
+ [key: string]: unknown;
21
+ }, callback: (value: any) => void) => any;
19
22
  }, string, import('vue').PublicProps, Readonly<{
20
23
  schema: JsonSchema;
21
24
  uischema: UISchemaElement;
@@ -28,7 +31,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
28
31
  onTrigger?: ((id: any) => any) | undefined;
29
32
  onUpdateData?: ((path: string) => any) | undefined;
30
33
  onAlert?: ((alert: AlertParams) => any) | undefined;
31
- onStateProviderListener?: ((id: any, callback: (value: any) => void) => any) | undefined;
34
+ onStateProviderListener?: ((identifier: StateProviderLocation & {
35
+ [key: string]: unknown;
36
+ }, callback: (value: any) => void) => any) | undefined;
32
37
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
33
38
  top?(_: {}): any;
34
39
  bottom?(_: {}): any;
@@ -11,6 +11,7 @@ export declare const inputFormats: {
11
11
  readonly nameFilter: "nameFilter";
12
12
  readonly richTextInput: "richTextInput";
13
13
  readonly twinList: "twinList";
14
+ readonly manualTwinlist: "manualTwinlist";
14
15
  readonly comboBox: "comboBox";
15
16
  readonly sortList: "sortList";
16
17
  readonly simpleButton: "simpleButton";
@@ -2,10 +2,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
2
  label: string;
3
3
  hideControlHeader?: boolean | undefined;
4
4
  fill?: boolean | undefined;
5
+ large?: boolean | undefined;
5
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
7
  label: string;
7
8
  hideControlHeader?: boolean | undefined;
8
9
  fill?: boolean | undefined;
10
+ large?: boolean | undefined;
9
11
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
10
12
  default?(_: {
11
13
  labelForId: string;
@@ -8,6 +8,10 @@ import { ValidationSettings } from './validation/types';
8
8
  export type VueControlProps<D> = {
9
9
  control: {
10
10
  data: D;
11
+ uischema: {
12
+ providedOptions?: string[];
13
+ id?: string;
14
+ };
11
15
  } & Omit<ReturnType<typeof useJsonFormsControl>["control"]["value"], "data">;
12
16
  handleChange: (path: string, value: any) => void;
13
17
  changeValue: (newValue: D) => void;
@@ -1,9 +1,14 @@
1
1
  import { Component, PropType, SetupContext, SlotsType, VNode } from 'vue';
2
+ import { VueLayout, VueLayoutRenderer } from '../layout';
2
3
  import { ControlSlots, VueControl, VueControlProps, VueControlRenderer } from './types';
3
4
  export declare const controlProps: {
4
5
  control: {
5
6
  type: PropType<{
6
7
  data: any;
8
+ uischema: {
9
+ providedOptions?: string[] | undefined;
10
+ id?: string | undefined;
11
+ };
7
12
  } & Omit<{
8
13
  uischema: import('@jsonforms/core').ControlElement;
9
14
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -54,6 +59,7 @@ export declare const controlProps: {
54
59
  };
55
60
  export declare const defineControl: <D>(setup: (props: VueControlProps<D>, ctx: SetupContext<any, SlotsType<ControlSlots>>) => () => VNode | null | VNode[]) => VueControl<D>;
56
61
  export declare const mapControls: (mapper: (control: VueControl<any>, key: string) => VueControl<any>) => <T extends Record<string, VueControlRenderer>>(cs: T) => T;
62
+ export declare const mapLayouts: (mapper: (layout: VueLayout, key: string) => VueLayout) => <T extends Record<string, VueLayoutRenderer>>(ls: T) => T;
57
63
  export type SpecialControlRenderer<SpecialControl> = Omit<VueControlRenderer, "control"> & {
58
64
  control: SpecialControl;
59
65
  };
@@ -1,7 +1,8 @@
1
1
  import { default as JsonFormsDialog } from './JsonFormsDialog.vue';
2
2
  import { AlertParams } from './types/alert';
3
3
  import { Provided } from './types/provided';
4
- export { JsonFormsDialog, type Provided, type AlertParams };
4
+ import { UiSchemaWithProvidedOptions } from './uiComponents/composables/useProvidedState';
5
+ export { JsonFormsDialog, type Provided, type AlertParams, type UiSchemaWithProvidedOptions, };
5
6
  export * from './higherOrderComponents';
6
7
  export * from './renderers';
7
8
  export * from './constants';
@@ -48,6 +48,10 @@ export declare const controls: {
48
48
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
49
49
  control: {
50
50
  data: string[];
51
+ uischema: {
52
+ providedOptions?: string[] | undefined;
53
+ id?: string | undefined;
54
+ };
51
55
  } & Omit<{
52
56
  uischema: import('@jsonforms/core').ControlElement;
53
57
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -89,6 +93,10 @@ export declare const controls: {
89
93
  }, Readonly<{
90
94
  control: {
91
95
  data: string[];
96
+ uischema: {
97
+ providedOptions?: string[] | undefined;
98
+ id?: string | undefined;
99
+ };
92
100
  } & Omit<{
93
101
  uischema: import('@jsonforms/core').ControlElement;
94
102
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -127,6 +135,10 @@ export declare const controls: {
127
135
  } & import('vue').ComponentOptionsBase<Readonly<{
128
136
  control: {
129
137
  data: string[];
138
+ uischema: {
139
+ providedOptions?: string[] | undefined;
140
+ id?: string | undefined;
141
+ };
130
142
  } & Omit<{
131
143
  uischema: import('@jsonforms/core').ControlElement;
132
144
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -175,6 +187,7 @@ export declare const controls: {
175
187
  };
176
188
  textAreaRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
177
189
  twinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<import('../uiComponents/twinlist/MultimodeTwinlistControl.vue').TwinlistData>>;
190
+ manualTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<import('../uiComponents/twinlist/ManualTwinlistControl.vue').ManualTwinlistData>>;
178
191
  valueSwitchRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string>>;
179
192
  zonedDateTimeRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<{
180
193
  dateTime: string;
@@ -193,6 +206,10 @@ export declare const controls: {
193
206
  control: <SettingValue>(__VLS_props: {
194
207
  control: {
195
208
  data: undefined;
209
+ uischema: {
210
+ providedOptions?: string[] | undefined;
211
+ id?: string | undefined;
212
+ };
196
213
  } & Omit<{
197
214
  uischema: import('@jsonforms/core').ControlElement;
198
215
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -233,6 +250,10 @@ export declare const controls: {
233
250
  props: {
234
251
  control: {
235
252
  data: undefined;
253
+ uischema: {
254
+ providedOptions?: string[] | undefined;
255
+ id?: string | undefined;
256
+ };
236
257
  } & Omit<{
237
258
  uischema: import('@jsonforms/core').ControlElement;
238
259
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -277,6 +298,10 @@ export declare const controls: {
277
298
  props: {
278
299
  control: {
279
300
  data: undefined;
301
+ uischema: {
302
+ providedOptions?: string[] | undefined;
303
+ id?: string | undefined;
304
+ };
280
305
  } & Omit<{
281
306
  uischema: import('@jsonforms/core').ControlElement;
282
307
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -3,6 +3,10 @@ export declare const simpleButtonRenderer: {
3
3
  control: <SettingValue>(__VLS_props: {
4
4
  control: {
5
5
  data: undefined;
6
+ uischema: {
7
+ providedOptions?: string[] | undefined;
8
+ id?: string | undefined;
9
+ };
6
10
  } & Omit<{
7
11
  uischema: import('@jsonforms/core').ControlElement;
8
12
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -43,6 +47,10 @@ export declare const simpleButtonRenderer: {
43
47
  props: {
44
48
  control: {
45
49
  data: undefined;
50
+ uischema: {
51
+ providedOptions?: string[] | undefined;
52
+ id?: string | undefined;
53
+ };
46
54
  } & Omit<{
47
55
  uischema: import('@jsonforms/core').ControlElement;
48
56
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -87,6 +95,10 @@ export declare const simpleButtonRenderer: {
87
95
  props: {
88
96
  control: {
89
97
  data: undefined;
98
+ uischema: {
99
+ providedOptions?: string[] | undefined;
100
+ id?: string | undefined;
101
+ };
90
102
  } & Omit<{
91
103
  uischema: import('@jsonforms/core').ControlElement;
92
104
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -4,6 +4,10 @@ export declare const sortListRenderer: {
4
4
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
5
5
  control: {
6
6
  data: string[];
7
+ uischema: {
8
+ providedOptions?: string[] | undefined;
9
+ id?: string | undefined;
10
+ };
7
11
  } & Omit<{
8
12
  uischema: import('@jsonforms/core').ControlElement;
9
13
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -45,6 +49,10 @@ export declare const sortListRenderer: {
45
49
  }, Readonly<{
46
50
  control: {
47
51
  data: string[];
52
+ uischema: {
53
+ providedOptions?: string[] | undefined;
54
+ id?: string | undefined;
55
+ };
48
56
  } & Omit<{
49
57
  uischema: import('@jsonforms/core').ControlElement;
50
58
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -83,6 +91,10 @@ export declare const sortListRenderer: {
83
91
  } & import('vue').ComponentOptionsBase<Readonly<{
84
92
  control: {
85
93
  data: string[];
94
+ uischema: {
95
+ providedOptions?: string[] | undefined;
96
+ id?: string | undefined;
97
+ };
86
98
  } & Omit<{
87
99
  uischema: import('@jsonforms/core').ControlElement;
88
100
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -3,3 +3,5 @@ export declare const twinlistTester: Tester;
3
3
  export declare const twinlistRenderer: import('..').SpecialControlRenderer<import('..').VueControl<import('../uiComponents/twinlist/MultimodeTwinlistControl.vue').TwinlistData>>;
4
4
  export declare const simpleTwinlistTester: Tester;
5
5
  export declare const simpleTwinlistRenderer: import('..').SpecialControlRenderer<import('..').VueControl<string[]>>;
6
+ export declare const manualTwinlistTester: Tester;
7
+ export declare const manualTwinlistRenderer: import('..').SpecialControlRenderer<import('..').VueControl<import('../uiComponents/twinlist/ManualTwinlistControl.vue').ManualTwinlistData>>;
@@ -1,16 +1,20 @@
1
+ import { ControlElement } from '@jsonforms/core';
2
+ import { UiSchemaWithProvidedOptions } from '../uiComponents/composables/useProvidedState';
3
+ import { StateProviderLocation } from './provided';
1
4
  export type IdAndText = {
2
5
  id: string;
3
6
  text: string;
4
7
  };
5
8
  export type PossibleValue<SpecialChoicesProps extends Record<string, any>> = IdAndText & SpecialChoicesProps;
6
- export type ChoicesUiSchemaOptions<SpcialChoicesProps extends Record<string, any> = {}> = {
7
- possibleValues?: PossibleValue<SpcialChoicesProps>[];
8
- choicesProvider?: string;
9
+ export type ChoicesUiSchemaOptions<SpecialChoicesProps extends Record<string, any> = {}> = {
10
+ possibleValues?: PossibleValue<SpecialChoicesProps>[];
11
+ choicesProvider?: StateProviderLocation;
9
12
  };
10
13
  export type IncludedExcludedLabelOptions = {
11
14
  includedLabel?: string;
12
15
  excludedLabel?: string;
13
16
  };
14
- export type ChoicesUiSchema<S extends Record<string, any> = {}> = {
17
+ export type ChoicesUiSchema<S extends Record<string, any> = {}> = ControlElement & {
15
18
  options?: ChoicesUiSchemaOptions<S>;
16
19
  };
20
+ export type ChoicesUiSchemaWithProvidedOptions<S extends Record<string, unknown> = {}> = UiSchemaWithProvidedOptions<ChoicesUiSchemaOptions<S>>;
@@ -1,5 +1,14 @@
1
1
  import { AlertParams } from './alert';
2
- type addStateProviderListener<T> = (id: any, callback: (data: T) => void) => void;
2
+ export type StateProviderLocation = ({
3
+ id: string;
4
+ } | {
5
+ scope: string;
6
+ }) & {
7
+ providedOptionName: string;
8
+ };
9
+ type addStateProviderListener<T> = (identifier: StateProviderLocation & {
10
+ [key: string]: unknown;
11
+ }, callback: (data: T) => void) => void;
3
12
  export type SettingsData = Record<string, object> & {
4
13
  view?: object;
5
14
  model?: object;
@@ -1,6 +1,10 @@
1
1
  declare const _default: <SettingValue>(__VLS_props: {
2
2
  control: {
3
3
  data: undefined;
4
+ uischema: {
5
+ providedOptions?: string[] | undefined;
6
+ id?: string | undefined;
7
+ };
4
8
  } & Omit<{
5
9
  uischema: import('@jsonforms/core').ControlElement;
6
10
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -41,6 +45,10 @@ declare const _default: <SettingValue>(__VLS_props: {
41
45
  props: {
42
46
  control: {
43
47
  data: undefined;
48
+ uischema: {
49
+ providedOptions?: string[] | undefined;
50
+ id?: string | undefined;
51
+ };
44
52
  } & Omit<{
45
53
  uischema: import('@jsonforms/core').ControlElement;
46
54
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -85,6 +93,10 @@ declare const _default: <SettingValue>(__VLS_props: {
85
93
  props: {
86
94
  control: {
87
95
  data: undefined;
96
+ uischema: {
97
+ providedOptions?: string[] | undefined;
98
+ id?: string | undefined;
99
+ };
88
100
  } & Omit<{
89
101
  uischema: import('@jsonforms/core').ControlElement;
90
102
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -2,6 +2,10 @@ export declare const DEFAULT_ANY_UNKNOWN_VALUES_ID = "<any unknown new column>";
2
2
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
3
3
  control: {
4
4
  data: string[];
5
+ uischema: {
6
+ providedOptions?: string[] | undefined;
7
+ id?: string | undefined;
8
+ };
5
9
  } & Omit<{
6
10
  uischema: import('@jsonforms/core').ControlElement;
7
11
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -33,6 +37,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
33
37
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
34
38
  control: {
35
39
  data: string[];
40
+ uischema: {
41
+ providedOptions?: string[] | undefined;
42
+ id?: string | undefined;
43
+ };
36
44
  } & Omit<{
37
45
  uischema: import('@jsonforms/core').ControlElement;
38
46
  schema: NonNullable<import('@jsonforms/core').JsonSchema>;
@@ -17,17 +17,14 @@ export type Validators<T, S> = {
17
17
  * @type {T} - type defining the available built-in validations by id-param pairs
18
18
  */
19
19
  export type BuiltinValidation<T, K extends keyof T> = {
20
- id: K;
21
20
  parameters: T[K];
22
21
  errorMessage: string;
23
22
  };
24
23
  /**
25
- * A list of built-in validations typed to T.
24
+ * An object of built-in validations typed to T.
26
25
  * @type {T} - type defining the available built-in validations by id-param pairs
27
26
  */
28
- export type BuiltinValidations<T> = Array<{
29
- [K in keyof T]: BuiltinValidation<T, K>;
30
- }[keyof T]>;
27
+ export type BuiltinValidations<T> = Record<keyof T, BuiltinValidation<T, keyof T>>;
31
28
  /**
32
29
  * Composable used within a control to define/handle its built-in validations.
33
30
  *
@@ -40,4 +37,4 @@ export type BuiltinValidations<T> = Array<{
40
37
  * @type {T} - type defining the available built-in validations by id-param pairs
41
38
  * @type {S} - type of the value to validate, i.e. the type of the data of the control
42
39
  */
43
- export declare const useBuiltinValidation: <T, S>(validators: Validators<T, S>, props: VueControlProps<S> | VueControlPropsForLabelContent<S>) => Ref<Partial<T>>;
40
+ export declare const useBuiltinValidation: <T extends Record<string, unknown>, S>(validators: Validators<T, S>, props: VueControlProps<S> | VueControlPropsForLabelContent<S>) => Ref<Partial<T>>;
@@ -8,7 +8,7 @@ declare const _default: ({ control, disabled, changeValue, controlElement, }: {
8
8
  focus?: () => void;
9
9
  } | null>;
10
10
  }) => {
11
- showCheckbox: import('vue').ComputedRef<any>;
11
+ showCheckbox: import('vue').ComputedRef<boolean>;
12
12
  showControl: import('vue').ComputedRef<boolean>;
13
13
  checkboxProps: import('vue').ComputedRef<{
14
14
  modelValue: boolean;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { ChoicesUiSchema, IdAndText, IncludedExcludedLabelOptions } from '../../types/ChoicesUiSchema';
2
+ import { ChoicesUiSchema, ChoicesUiSchemaWithProvidedOptions, IdAndText, IncludedExcludedLabelOptions } from '../../types/ChoicesUiSchema';
3
3
  export declare const usePossibleValues: <SpecialChoicesProps extends Record<string, any> = {}>(control: Ref<{
4
- uischema: ChoicesUiSchema<SpecialChoicesProps>;
4
+ uischema: ChoicesUiSchemaWithProvidedOptions<SpecialChoicesProps>;
5
5
  }>) => {
6
6
  possibleValues: Ref<import('../../types/ChoicesUiSchema').PossibleValue<SpecialChoicesProps>[] | null, import('../../types/ChoicesUiSchema').PossibleValue<SpecialChoicesProps>[] | null>;
7
7
  };
@@ -1,3 +1,18 @@
1
- import { MaybeRef, Ref } from 'vue';
2
- declare const _default: <T>(stateProviderId: MaybeRef<string | undefined>, defaultValue: T) => Ref<T, T>;
1
+ import { Ref } from 'vue';
2
+ export type UiSchemaWithProvidedOptions<T extends Record<string, unknown>> = {
3
+ options?: T;
4
+ providedOptions?: string[];
5
+ } & ({
6
+ scope: string;
7
+ } | {
8
+ id: string;
9
+ });
10
+ type NonUndefined<T> = T extends undefined ? never : T;
11
+ type Join<K, P> = K extends string ? P extends string ? `${K}${"" extends P ? "" : "."}${P}` : never : never;
12
+ type Prev = [never, 0, 1];
13
+ export type Paths<T, D extends number = 2> = [D] extends [never] ? never : T extends object ? {
14
+ [K in keyof T]-?: K extends string ? `${K}` | Join<K, Paths<T[K], Prev[D]>> : never;
15
+ }[keyof T] : "";
16
+ export type ExtractNestedValue<T, P extends string> = P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? ExtractNestedValue<T[Key], Rest> : never : P extends keyof T ? T[P] : never;
17
+ declare const _default: <U extends UiSchemaWithProvidedOptions<Record<string, unknown>>, K_3 extends NonUndefined<U["options"]> extends infer T ? T extends NonUndefined<U["options"]> ? T extends object ? { [K in keyof T]-?: K extends string ? `${K}` | Join<K, T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends object ? { [K_1 in keyof T_1]-?: K_1 extends string ? `${K_1}` | Join<K_1, T_1[K_1] extends infer T_2 ? T_2 extends T_1[K_1] ? T_2 extends object ? { [K_2 in keyof T_2]-?: K_2 extends string ? `${K_2}` | Join<K_2, never> : never; }[keyof T_2] : "" : never : never> : never; }[keyof T_1] : "" : never : never> : never; }[keyof T] : "" : never : never, D = ExtractNestedValue<NonUndefined<U["options"]>, K_3> | null>(uischema: Ref<U>, providedOptionName: K_3, defaultValue?: D | null) => Ref<NonUndefined<D>, NonUndefined<D>>;
3
18
  export default _default;
@@ -1,3 +1,4 @@
1
1
  import { default as SimpleButtonControl } from './SimpleButtonControl.vue';
2
2
  import { default as TextControl } from './TextControl.vue';
3
- export { TextControl, SimpleButtonControl };
3
+ import { default as useProvidedState } from './composables/useProvidedState';
4
+ export { TextControl, SimpleButtonControl, useProvidedState };
@@ -0,0 +1,8 @@
1
+ import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
2
+ export type ManualTwinlistData = {
3
+ manuallySelected: string[];
4
+ manuallyDeselected: string[];
5
+ includeUnknownColumns: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<ManualTwinlistData>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<ManualTwinlistData>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -4,7 +4,9 @@ declare const _default: ({ data, possibleValueIds, }: {
4
4
  /**
5
5
  * The jsonforms data of the TwinlistControl
6
6
  */
7
- data: Ref<TwinlistData>;
7
+ data: Ref<{
8
+ manualFilter: TwinlistData["manualFilter"];
9
+ }>;
8
10
  /**
9
11
  * The array of possible value ids or null if no possible values are present yet.
10
12
  */
@@ -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-CLPIgtdX.js";
3
+ import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js";
4
4
  const p = /* @__PURE__ */ r({
5
5
  __name: "LoadingIcon",
6
6
  setup(t) {