@knime/jsonforms 1.21.0 → 1.21.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 (97) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/AnyOfTwinlist-UXM-U6hT.js +22 -0
  3. package/dist/{Checkbox-uBRF2ZKG.js → Checkbox-DiIYr1i-.js} +1 -1
  4. package/dist/{CheckboxControl-B9Sd2LLd.js → CheckboxControl-QBXVq5Tw.js} +1 -1
  5. package/dist/{CheckboxesControl-CTaoagZv.js → CheckboxesControl-2pd974_e.js} +2 -2
  6. package/dist/{ColorControl-DxCjpcHn.js → ColorControl-CDxRfPzc.js} +1 -1
  7. package/dist/{ColorPreviewControl-C7MmFIpq.js → ColorPreviewControl-Cg99cain.js} +1 -1
  8. package/dist/{ComboBoxControl-CV4SCOo7.js → ComboBoxControl-BoQyPwaV.js} +3 -3
  9. package/dist/{DateControl-9d_SPymX.js → DateControl-DqNL8rlX.js} +1 -1
  10. package/dist/{DateTimeControl-nxVjz31-.js → DateTimeControl-apf8S1y2.js} +1 -1
  11. package/dist/{DateTimeFormatPickerControl-CMgXr7tA.js → DateTimeFormatPickerControl-_4b5Jk3w.js} +1 -1
  12. package/dist/DateTimeFormatPickerWithTypeControl-B1jOpszt.js +464 -0
  13. package/dist/{DropdownControl-BXbRH5G-.js → DropdownControl-CesCAa-A.js} +2 -2
  14. package/dist/{ExecutorCoresControl-B04lAS0W.js → ExecutorCoresControl-ILXk2Hk6.js} +2 -2
  15. package/dist/{ExecutorMemoryControl-CraHGxVJ.js → ExecutorMemoryControl-De46Fxsm.js} +2 -2
  16. package/dist/{FileUploadControl-D3Awi7rK.js → FileUploadControl-CFQSJwkd.js} +3 -3
  17. package/dist/{GridSelectionControl-Cqrr0vTk.js → GridSelectionControl-CGspDoCC.js} +1 -1
  18. package/dist/{HorizontalLayout-BRxOESz6.js → HorizontalLayout-DPuI5hYY.js} +1 -1
  19. package/dist/{IntegerControl-BG7i8ix-.js → IntegerControl-BwGzlwkz.js} +1 -1
  20. package/dist/{IntervalControl-YdZin9Wi.js → IntervalControl-BHeKHuWm.js} +3 -3
  21. package/dist/{LinkControl-Ntwn3ko5.js → LinkControl-D_0AKRJz.js} +1 -1
  22. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CiYSPKlk.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js} +1 -1
  23. package/dist/ManualTwinlistControl-BMSgSIBJ.js +72 -0
  24. package/dist/{MultiSelectListBoxControl-yIxxGB8U.js → MultiSelectListBoxControl-DbJWOUtn.js} +2 -2
  25. package/dist/MultimodeTwinlistControl-DOJD7vUU.js +4 -0
  26. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BzIvunuA.js +157 -0
  27. package/dist/{MultiselectListBox-DE0QC--O.js → MultiselectListBox-DpL-Z03B.js} +2 -2
  28. package/dist/{NameFilter-dUTC31qA.js → NameFilter-B1LEenoh.js} +4 -4
  29. package/dist/{NumberControl-Bi9ixtTO.js → NumberControl-DVzhX3S9.js} +1 -1
  30. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BkEh0Ykh.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js} +2 -2
  31. package/dist/{OneOfDropdown-BR4WCua4.js → OneOfDropdown-BFOyIhv6.js} +1 -1
  32. package/dist/{RadioButtonsWithDescriptionControl-C69ZDGN4.js → RadioButtonsWithDescriptionControl-oD8Zab-J.js} +6 -6
  33. package/dist/{RadioControl-DnF-ishb.js → RadioControl-D6Wm5j7g.js} +2 -2
  34. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DvfaMgRR.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js} +2 -2
  35. package/dist/{ResourceControlBase-OgchIcbA.js → ResourceControlBase-DRlen7vy.js} +2 -2
  36. package/dist/{RichTextControl-sy7UyTn8.js → RichTextControl-DPX_lxfc.js} +1629 -1488
  37. package/dist/{SectionHeading-Dfcyl0Yz.js → SectionHeading-DIs2yBVY.js} +1 -1
  38. package/dist/{SectionLayout-CqIHiM2R.js → SectionLayout-6ID4pFDm.js} +3 -3
  39. package/dist/{SettingsSubPanel-B5IVsvuc.js → SettingsSubPanel-BUVqvjIE.js} +1 -1
  40. package/dist/{SettingsSubPanelLayout-DNEqHncD.js → SettingsSubPanelLayout-bSgzF47m.js} +4 -4
  41. package/dist/{SimpleButtonControl-BKV86mQ0.js → SimpleButtonControl-CpO-Xbws.js} +1 -1
  42. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js +27792 -0
  43. package/dist/SimpleTwinlistControl-BMKo3T2E.js +22 -0
  44. package/dist/{SingleSelectControl-CMEjgiNY.js → SingleSelectControl-IDX5QUdR.js} +2 -2
  45. package/dist/{SingleSelectListBoxControl-zUEWoGd8.js → SingleSelectListBoxControl-CYGArF9u.js} +3 -3
  46. package/dist/{SortListControl-Rh42JVSy.js → SortListControl-LWMW3lAc.js} +5 -5
  47. package/dist/{StyledListItem-Dmiasg50.js → StyledListItem-DA8cbCw1.js} +1 -1
  48. package/dist/{TeamAndSpacesControl-2B_pTWqM.js → TeamAndSpacesControl-BThkHK2b.js} +1 -1
  49. package/dist/{TeamResourceControl-BFCZeFBI.js → TeamResourceControl-CQgq2Bq5.js} +2 -2
  50. package/dist/{TextAreaControl-DWtOmv7O.js → TextAreaControl-ykGD_BnL.js} +1 -1
  51. package/dist/{TextControl-DwAc1Lgx.js → TextControl-QTuQZi2l.js} +1 -1
  52. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BvSRuAqp.js → TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js} +2 -2
  53. package/dist/{TimeControl-n4lsWwMk.js → TimeControl-W0VRENnH.js} +1 -1
  54. package/dist/{TimePartInput-DTxykHkb.js → TimePartInput-BHzqB1_B.js} +1 -1
  55. package/dist/{TimeframesControl-CPnnV-IY.js → TimeframesControl-C12gkBRu.js} +2 -2
  56. package/dist/{Tooltip-CQD85sdp.js → Tooltip-B0QEjsdY.js} +1 -1
  57. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js +42 -0
  58. package/dist/{TypedStringFilter-7TKnShae.js → TypedStringFilter-B-LUMedK.js} +8 -9
  59. package/dist/{ValueSwitch-BuQf-fpg.js → ValueSwitch-BBO_VXIM.js} +1 -1
  60. package/dist/{ValueSwitchControl-DUWpTxo1.js → ValueSwitchControl-Jz7xZfY-.js} +1 -1
  61. package/dist/{VerticalLayout-BR0nc-T3.js → VerticalLayout-CGtB4d8F.js} +2 -2
  62. package/dist/{VerticalLayoutBase-BmUvz2xm.js → VerticalLayoutBase-JY9q-FO2.js} +1 -1
  63. package/dist/{ZonedDateTimeControl-4Zlm92zJ.js → ZonedDateTimeControl-BatkUEiY.js} +2 -2
  64. package/dist/{_Uint8Array-CgOaNCk1.js → _Uint8Array-Bbzs2Ov4.js} +1 -1
  65. package/dist/{_baseAssignValue-DAm2gl_N.js → _baseAssignValue-DV_dpE4l.js} +1 -1
  66. package/dist/{_baseEach-CpynTt09.js → _baseEach-RTY-xHIc.js} +1 -1
  67. package/dist/{_baseIteratee-B7GNekaD.js → _baseIteratee-pNDg46VS.js} +3 -3
  68. package/dist/knime-jsonforms.css +1 -1
  69. package/dist/knime-jsonforms.js +7 -7
  70. package/dist/{localTimeUtils-GW01Jwt9.js → localTimeUtils-B5XTvulp.js} +1564 -1497
  71. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  72. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -2
  73. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +2 -8
  74. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  75. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -1
  76. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -5
  77. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -1
  78. package/dist/src/uiComponents/twinlist/toKdsPossibleValues.d.ts +9 -0
  79. package/dist/testing.js +2 -2
  80. package/dist/toKdsPossibleValues-BklBg3gG.js +14 -0
  81. package/dist/{toString-EJiXsCqP.js → toString-GoK24L1U.js} +1 -1
  82. package/dist/{useBuiltinValidations-C-jX-GU7.js → useBuiltinValidations-LGrGrHzT.js} +1 -1
  83. package/dist/{usePossibleValues-CdNvUspy.js → usePossibleValues-ItF87hxE.js} +1 -1
  84. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-De2_vatY.js → useUnknownValuesInTwinlist-B8gDSha9.js} +6 -7
  85. package/package.json +1 -1
  86. package/dist/AnyOfTwinlist-BXOiwhPe.js +0 -22
  87. package/dist/DateTimeFormatPickerWithTypeControl-TpmjEZVL.js +0 -442
  88. package/dist/InputField-BPW3gcOb.js +0 -148
  89. package/dist/LoadingIcon-DWlZH7u-.js +0 -29
  90. package/dist/ManualTwinlistControl-Ag2U5qFU.js +0 -79
  91. package/dist/MultimodeTwinlistControl-Cx8g1mbI.js +0 -598
  92. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js +0 -26292
  93. package/dist/SimpleTwinlistControl-5zMN3nHL.js +0 -25
  94. package/dist/TwinlistControlBase-DpODIPuw.js +0 -57
  95. package/dist/TwinlistLoadingInfo-BwuYp151.js +0 -956
  96. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +0 -2
  97. package/dist/useSearch-hpyYQ_6y.js +0 -74
@@ -1,4 +1,4 @@
1
1
  import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
2
2
  type __VLS_Props = VueControlPropsForLabelContent<string[]>;
3
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
4
4
  export default _default;
@@ -1,9 +1,9 @@
1
- import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
1
+ import { VueControlPropsForLabelContent } from '../../higherOrderComponents';
2
2
  export type ManualTwinlistData = {
3
3
  manuallySelected: string[];
4
4
  manuallyDeselected: string[];
5
5
  includeUnknownColumns: boolean;
6
6
  };
7
7
  type __VLS_Props = VueControlPropsForLabelContent<ManualTwinlistData>;
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
9
9
  export default _default;
@@ -1,4 +1,4 @@
1
- import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
1
+ import { VueControlPropsForLabelContent } from '../../higherOrderComponents';
2
2
  import { IdAndText } from '../../types/ChoicesUiSchema';
3
3
  export type TwinlistData = {
4
4
  mode: string;
@@ -19,17 +19,11 @@ export type TwinlistData = {
19
19
  selected: string[] | null | undefined;
20
20
  };
21
21
  type __VLS_Props = VueControlPropsForLabelContent<TwinlistData> & {
22
- twinlistSize?: number;
23
- twinlistLeftLabel?: string;
24
22
  showUnknownValues?: boolean;
25
- twinlistRightLabel?: string;
26
23
  showTypeFilter?: boolean;
27
24
  };
28
25
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
- twinlistSize: number;
30
- twinlistLeftLabel: string;
31
26
  showUnknownValues: boolean;
32
- twinlistRightLabel: string;
33
27
  showTypeFilter: boolean;
34
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
35
29
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
2
2
  import { TwinlistData } from './MultimodeTwinlistControl.vue';
3
3
  type __VLS_Props = VueControlPropsForLabelContent<TwinlistData>;
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
2
2
  type __VLS_Props = VueControlPropsForLabelContent<string[]>;
3
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
4
4
  export default _default;
@@ -1,10 +1,7 @@
1
- import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
1
+ import { VueControlPropsForLabelContent } from '../../higherOrderComponents';
2
2
  import { TypedIdAndText } from '../../types/ChoicesUiSchema';
3
3
  type __VLS_Props = VueControlPropsForLabelContent<string[]> & {
4
- twinlistSize?: number;
5
4
  possibleValues: TypedIdAndText[] | null;
6
5
  };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- twinlistSize: number;
9
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
10
7
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
2
2
  import { TwinlistData } from './MultimodeTwinlistControl.vue';
3
3
  type __VLS_Props = VueControlPropsForLabelContent<TwinlistData>;
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
5
5
  export default _default;
@@ -0,0 +1,9 @@
1
+ import { KdsTwinListPossibleValue } from '@knime/kds-components';
2
+ import { IdAndText } from '../../types/ChoicesUiSchema';
3
+ type PossibleValueWithOptionalType = {
4
+ id: string;
5
+ text: string;
6
+ type?: IdAndText;
7
+ };
8
+ export declare const toKdsPossibleValues: (values: PossibleValueWithOptionalType[]) => KdsTwinListPossibleValue[];
9
+ export {};
package/dist/testing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as nh from "vue";
2
2
  import { ssrUtils as Pi, initDirectivesForSSR as z_, nextTick as ho, defineComponent as fi, computed as kr, h as wn, shallowReactive as K_, reactive as G_, ref as rh, createApp as H_, transformVNodeArgs as X_, setDevtoolsHook as Y_, isRef as J_, TransitionGroup as Q_, Transition as Z_, BaseTransition as em } from "vue";
3
- import { r as tm, v as nm, e as rm } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
4
- import { b as im } from "./_baseIteratee-B7GNekaD.js";
3
+ import { r as tm, v as nm, e as rm } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
4
+ import { b as im } from "./_baseIteratee-pNDg46VS.js";
5
5
  function sm(e, t) {
6
6
  return e > t;
7
7
  }
@@ -0,0 +1,14 @@
1
+ const p = (e) => e.map((t) => ({
2
+ id: t.id,
3
+ text: t.text,
4
+ ...t.type ? {
5
+ type: t.type.id,
6
+ accessory: {
7
+ type: "dataType",
8
+ name: t.type.id
9
+ }
10
+ } : {}
11
+ }));
12
+ export {
13
+ p as t
14
+ };
@@ -1,4 +1,4 @@
1
- import { r as g, A as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
1
+ import { r as g, A as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
2
2
  import { i as l } from "./isArray-WzO_os3q.js";
3
3
  function p(r, t) {
4
4
  for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
@@ -1,5 +1,5 @@
1
1
  import { onUnmounted as u, toRef as p, computed as d } from "vue";
2
- import { u as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { u as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const h = (t = {}) => t.validation || null, m = (t) => t.replace(/^validation\./, ""), v = (t) => {
4
4
  const a = (t.providedOptions ?? []).filter(
5
5
  (e) => e.startsWith("validation.")
@@ -1,5 +1,5 @@
1
1
  import { computed as l } from "vue";
2
- import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const t = (s, e) => {
4
4
  const u = l(() => s.value.uischema), o = d(u, "possibleValues");
5
5
  return { possibleValues: l(() => u.value.providedOptions?.includes("possibleValues") ? o.value : u.value.options?.possibleValues ?? (typeof e?.defaultOnNonProvided > "u" ? [] : e?.defaultOnNonProvided)) };
@@ -1,7 +1,6 @@
1
1
  import { ref as v, watch as m } from "vue";
2
2
  import { g as S, a as g } from "./index-Blg1O3Fz.js";
3
- import "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
4
- import "./TwinlistLoadingInfo-BwuYp151.js";
3
+ import "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
5
4
  const w = ({
6
5
  knownValuesSide: s,
7
6
  possibleValueIds: l,
@@ -15,7 +14,7 @@ const w = ({
15
14
  ...u(s.previous),
16
15
  ...g(l, t)
17
16
  ]);
18
- }, j = ({
17
+ }, F = ({
19
18
  data: s,
20
19
  possibleValueIds: l
21
20
  }) => {
@@ -28,13 +27,13 @@ const w = ({
28
27
  if (!t.value || !l.value)
29
28
  return;
30
29
  let e, o;
31
- const { manuallyDeselected: p, manuallySelected: f, includeUnknownColumns: r } = t.value, i = {
32
- previous: p,
30
+ const { manuallyDeselected: f, manuallySelected: p, includeUnknownColumns: r } = t.value, i = {
31
+ previous: f,
33
32
  setNext: (c) => {
34
33
  e = c;
35
34
  }
36
35
  }, d = {
37
- previous: f,
36
+ previous: p,
38
37
  setNext: (c) => {
39
38
  o = c;
40
39
  }
@@ -62,5 +61,5 @@ const w = ({
62
61
  }), { selectedAndDeselected: n, setCurrentManualFilter: a };
63
62
  };
64
63
  export {
65
- j as u
64
+ F as u
66
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,22 +0,0 @@
1
- import { defineComponent as s, openBlock as t, createBlock as p, mergeProps as a, unref as l } from "vue";
2
- import { o as r } from "./index-Blg1O3Fz.js";
3
- import { T as i } from "./TwinlistControlBase-DpODIPuw.js";
4
- const y = /* @__PURE__ */ s({
5
- __name: "AnyOfTwinlist",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(o) {
16
- const e = o.control.schema.anyOf.map(r);
17
- return (n, u) => (t(), p(i, a(n.$props, { "possible-values": l(e) }), null, 16, ["possible-values"]));
18
- }
19
- });
20
- export {
21
- y as default
22
- };
@@ -1,442 +0,0 @@
1
- import { openBlock as v, createElementBlock as w, createElementVNode as y, defineComponent as A, useCssVars as q, computed as h, ref as g, watch as I, reactive as G, onMounted as J, nextTick as $, onUnmounted as Q, createBlock as O, unref as x, withCtx as X, createCommentVNode as C, createVNode as b, Fragment as Y, renderList as ee, normalizeClass as _, toDisplayString as H, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
2
- import { _ as S, P as ne, u as ie } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
3
- import { V as z } from "./ValueSwitch-BuQf-fpg.js";
4
- import { u as re, a as de, o as ce, s as ue, f as me } from "./floating-ui.vue-Bk6u3tWN.js";
5
- import { u as pe, F as ve } from "./useDropdownNavigation-EOwf_fL0.js";
6
- import { L as fe } from "./LoadingIcon-DWlZH7u-.js";
7
- const ye = {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- fill: "none",
10
- "stroke-linejoin": "round",
11
- viewBox: "0 0 32 32"
12
- };
13
- function he(n, f) {
14
- return v(), w("svg", ye, [...f[0] || (f[0] = [
15
- y("path", {
16
- fill: "#000",
17
- d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
18
- }, null, -1)
19
- ])]);
20
- }
21
- const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-container-border-host" }, xe = {
22
- key: 0,
23
- class: "no-formats-available"
24
- }, Fe = {
25
- key: 1,
26
- class: "no-formats-available"
27
- }, Ee = ["onClick"], be = { class: "format-pattern" }, Ve = { class: "format-preview" }, U = 1, De = /* @__PURE__ */ A({
28
- __name: "DateTimeFormatPickerPopover",
29
- props: {
30
- allFormats: {},
31
- selectedType: {},
32
- initialSelectedPattern: {},
33
- showTypeSwitch: { type: Boolean }
34
- },
35
- emits: ["commit", "cancel"],
36
- setup(n, { emit: f }) {
37
- q((e) => ({
38
- v3b9e5e3a: U
39
- }));
40
- const i = f, c = n, V = h(() => [
41
- {
42
- id: "RECENT",
43
- text: "Recent"
44
- },
45
- {
46
- id: "STANDARD",
47
- text: "ISO"
48
- },
49
- {
50
- id: "EUROPEAN",
51
- text: "European"
52
- },
53
- {
54
- id: "AMERICAN",
55
- text: "United States"
56
- }
57
- ]), D = h(() => [
58
- {
59
- id: "DATE",
60
- text: "Date"
61
- },
62
- {
63
- id: "DATE_TIME",
64
- text: "Date & time"
65
- },
66
- {
67
- id: "TIME",
68
- text: "Time"
69
- },
70
- {
71
- id: "ZONED_DATE_TIME",
72
- text: "Zoned date & time"
73
- }
74
- ]), r = g(null), u = g(null), a = g("RECENT"), d = g(c.selectedType);
75
- I(
76
- () => c.selectedType,
77
- (e) => {
78
- u.value = e;
79
- }
80
- );
81
- const l = h(
82
- () => c.allFormats?.filter(
83
- (e) => e.category === a.value && e.temporalType === d.value
84
- ) ?? null
85
- ), m = g(null), p = G({}), F = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
86
- p[F(e)] = t;
87
- }, E = (e) => ({
88
- format: e.format,
89
- temporalType: e.temporalType
90
- }), {
91
- currentIndex: R,
92
- onKeydown: P,
93
- resetNavigation: Z,
94
- setElement: W
95
- } = pe({
96
- keepOpenedOnTab: !0,
97
- getFirstElement: () => ({
98
- index: 0,
99
- onClick: () => i(
100
- "commit",
101
- E(l.value[0])
102
- )
103
- }),
104
- getLastElement: () => {
105
- const e = l.value.length - 1;
106
- return {
107
- index: e,
108
- onClick: () => i(
109
- "commit",
110
- E(l.value[e])
111
- )
112
- };
113
- },
114
- getNextElement: (e, t) => {
115
- if (e = e === null || e === -1 ? null : e, t === 1) {
116
- const s = ((e ?? -1) + 1) % l.value.length;
117
- return {
118
- index: s,
119
- onClick: () => i(
120
- "commit",
121
- E(l.value[s])
122
- )
123
- };
124
- } else {
125
- const s = ((e ?? 0) - 1 + l.value.length) % l.value.length;
126
- return {
127
- index: s,
128
- onClick: () => i(
129
- "commit",
130
- E(l.value[s])
131
- )
132
- };
133
- }
134
- },
135
- close: () => {
136
- i("cancel");
137
- }
138
- }), K = (e) => {
139
- const t = e.parentElement;
140
- if (t && t.scrollHeight > t.clientHeight) {
141
- const o = t.offsetTop + U, s = t.clientHeight + t.scrollTop, T = e.offsetTop + e.offsetHeight - o;
142
- T > s ? t.scrollTop = T - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
143
- }
144
- }, N = (e) => {
145
- const t = p[`${e}-${a.value}-${d.value}`];
146
- t && K(t);
147
- }, B = async (e, t, o) => {
148
- d.value = t ?? d.value, a.value = o ?? a.value, await $(), u.value = e, N(e);
149
- const s = l.value.findIndex(
150
- (T) => T.format === e
151
- );
152
- W({
153
- index: s,
154
- onClick: () => i(
155
- "commit",
156
- E(l.value[s])
157
- )
158
- });
159
- };
160
- I(R, (e) => {
161
- if (e === null)
162
- return;
163
- const t = l.value?.[e]?.format;
164
- t && N(t);
165
- }), I([d, a], () => {
166
- d.value === r.value?.temporalType && a.value === r.value?.category ? B(
167
- r.value.format,
168
- r.value.temporalType,
169
- r.value.category
170
- ) : (u.value = null, Z());
171
- });
172
- const M = g(!1);
173
- return J(async () => {
174
- if (!c.allFormats)
175
- return;
176
- const e = [
177
- "RECENT",
178
- "STANDARD",
179
- "EUROPEAN",
180
- "AMERICAN"
181
- ], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
182
- (o) => (
183
- // if the type switch is hidden, filter to only formats with the same type
184
- c.selectedType === o.temporalType || c.showTypeSwitch
185
- )
186
- ).sort((o, s) => {
187
- const T = e.indexOf(o.category), k = e.indexOf(s.category);
188
- return T - k;
189
- });
190
- if (t.length > 0) {
191
- const o = t[0].format, s = t[0].temporalType, T = t[0].category;
192
- await B(o, s, T);
193
- const k = l.value.findIndex(
194
- (j) => j.format === o
195
- );
196
- r.value = {
197
- format: o,
198
- index: k,
199
- category: T,
200
- temporalType: s
201
- };
202
- }
203
- $(() => M.value = !0);
204
- }), Q(() => M.value = !1), (e, t) => (v(), O(x(ve), {
205
- active: M.value,
206
- "onUpdate:active": t[3] || (t[3] = (o) => M.value = o),
207
- "initial-focus": () => m.value ?? !1
208
- }, {
209
- default: X(() => [
210
- y("div", ge, [
211
- n.showTypeSwitch ? (v(), O(z, {
212
- key: 0,
213
- id: "selectedFormatType",
214
- ref: "typeSwitchRef",
215
- modelValue: d.value,
216
- "onUpdate:modelValue": t[0] || (t[0] = (o) => d.value = o),
217
- compact: "",
218
- "possible-values": D.value,
219
- class: "filter-switch"
220
- }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
221
- b(z, {
222
- id: "selectedFormatStandard",
223
- ref: "standardSwitchRef",
224
- modelValue: a.value,
225
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
226
- compact: "",
227
- "possible-values": V.value,
228
- class: "filter-switch"
229
- }, null, 8, ["modelValue", "possible-values"]),
230
- y("div", we, [
231
- y("div", {
232
- id: "dateFormats",
233
- ref_key: "formatContainerRef",
234
- ref: m,
235
- class: "formats-container",
236
- tabindex: "0",
237
- role: "menu",
238
- onKeydown: t[2] || (t[2] = //@ts-ignore
239
- (...o) => x(P) && x(P)(...o))
240
- }, [
241
- l.value === null ? (v(), w("div", xe, [
242
- b(fe, { class: "loading-spinner" })
243
- ])) : l.value.length === 0 ? (v(), w("div", Fe, " No formats available ")) : (v(!0), w(Y, { key: 2 }, ee(l.value, (o, s) => (v(), w("div", {
244
- key: F(o),
245
- ref_for: !0,
246
- ref: L(o),
247
- class: _([{
248
- highlighted: s === x(R),
249
- applied: s === r.value?.index && o.category === r.value.category && o.temporalType === r.value.temporalType
250
- }, "single-format"]),
251
- role: "menuitem",
252
- onClick: () => i("commit", E(o))
253
- }, [
254
- y("span", be, H(o.format), 1),
255
- y("span", Ve, H(o.example), 1)
256
- ], 10, Ee))), 128))
257
- ], 544)
258
- ])
259
- ])
260
- ]),
261
- _: 1
262
- }, 8, ["active", "initial-focus"]));
263
- }
264
- }), Me = /* @__PURE__ */ S(De, [["__scopeId", "data-v-8bb40d8b"]]), ke = { class: "input-fields" }, Ie = ["disabled"], Ce = {
265
- key: 0,
266
- class: "invalid-marker"
267
- }, _e = ["disabled"], ze = {}, Ae = /* @__PURE__ */ A({
268
- ...ze,
269
- __name: "DateTimeFormatInput",
270
- props: /* @__PURE__ */ se({
271
- disabled: { type: Boolean, default: !1 },
272
- compact: { type: Boolean, default: !1 },
273
- isValid: { type: Boolean, default: !0 },
274
- allDefaultFormats: {},
275
- allowedTypes: { default: () => [
276
- "DATE",
277
- "TIME",
278
- "DATE_TIME",
279
- "ZONED_DATE_TIME"
280
- ] },
281
- showTypeSwitchInPopover: { type: Boolean, default: !0 }
282
- }, {
283
- modelValue: {
284
- default: {
285
- format: "yyyy-MM-dd",
286
- temporalType: "DATE"
287
- }
288
- },
289
- modelModifiers: {}
290
- }),
291
- emits: ["update:modelValue"],
292
- setup(n) {
293
- const f = n, i = te(n, "modelValue"), c = h({
294
- get: () => i.value.format,
295
- set: (m) => {
296
- i.value = {
297
- ...i.value,
298
- format: m
299
- };
300
- }
301
- }), V = "Format like 'yyyy-MM-dd'", D = h(() => f.isValid), r = g(null), u = g(null), a = g(!1), d = (m) => {
302
- i.value = m, a.value = !1;
303
- };
304
- ne(u, () => a.value = !1, {
305
- ignore: [r]
306
- });
307
- const { floatingStyles: l } = re(
308
- r,
309
- u,
310
- {
311
- middleware: [
312
- ce({
313
- mainAxis: 2,
314
- crossAxis: 0
315
- }),
316
- ue(),
317
- me({
318
- mainAxis: !0,
319
- crossAxis: !1
320
- })
321
- ],
322
- placement: "top-end",
323
- whileElementsMounted: de
324
- }
325
- );
326
- return (m, p) => (v(), w("div", null, [
327
- y("div", {
328
- class: _(["wrapper", { disabled: n.disabled, compact: n.compact }])
329
- }, [
330
- y("span", ke, [
331
- oe(y("input", {
332
- "onUpdate:modelValue": p[0] || (p[0] = (F) => c.value = F),
333
- type: "text",
334
- disabled: n.disabled,
335
- placeholder: V,
336
- spellcheck: "false",
337
- onFocus: p[1] || (p[1] = (F) => a.value = !1)
338
- }, null, 40, Ie), [
339
- [le, c.value]
340
- ]),
341
- D.value ? C("", !0) : (v(), w("span", Ce)),
342
- y("button", {
343
- ref_key: "togglePopoverButtonRef",
344
- ref: r,
345
- class: _(["trigger-popover-button", { active: a.value }]),
346
- disabled: n.disabled,
347
- onClick: p[2] || (p[2] = (F) => a.value = !a.value)
348
- }, [
349
- b(x(Te))
350
- ], 10, _e)
351
- ])
352
- ], 2),
353
- a.value ? (v(), w("div", {
354
- key: 0,
355
- ref_key: "floatingPopoverRef",
356
- ref: u,
357
- class: "popover",
358
- style: ae(x(l))
359
- }, [
360
- b(Me, {
361
- "all-formats": n.allDefaultFormats,
362
- "initial-selected-pattern": i.value.format,
363
- "selected-type": i.value.temporalType,
364
- "show-type-switch": n.showTypeSwitchInPopover,
365
- onCommit: d,
366
- onCancel: p[3] || (p[3] = (F) => a.value = !1)
367
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
368
- ], 4)) : C("", !0)
369
- ]));
370
- }
371
- }), Se = /* @__PURE__ */ S(Ae, [["__scopeId", "data-v-1577d5ce"]]), Re = ["id"], Pe = /* @__PURE__ */ A({
372
- __name: "DateTimeFormatPickerWithTypeControl",
373
- props: {
374
- control: {},
375
- handleChange: { type: Function },
376
- changeValue: { type: Function },
377
- disabled: { type: Boolean },
378
- isValid: { type: Boolean },
379
- onRegisterValidation: { type: Function },
380
- labelForId: {}
381
- },
382
- setup(n) {
383
- const f = n, i = h(
384
- () => f.control.uischema
385
- ), c = h(() => i.value.options), V = h(() => c.value?.allowedFormats), D = ie(i, "dateTimeFormats"), r = [
386
- {
387
- id: "DATE",
388
- text: "Date"
389
- },
390
- {
391
- id: "DATE_TIME",
392
- text: "Date & time"
393
- },
394
- {
395
- id: "TIME",
396
- text: "Time"
397
- },
398
- {
399
- id: "ZONED_DATE_TIME",
400
- text: "Zoned date & time"
401
- }
402
- ], u = h({
403
- get: () => f.control.data,
404
- set: (d) => {
405
- f.changeValue(d);
406
- }
407
- }), a = h({
408
- get: () => u.value.temporalType,
409
- set: (d) => {
410
- u.value = {
411
- ...u.value,
412
- temporalType: d
413
- };
414
- }
415
- });
416
- return (d, l) => (v(), w("div", {
417
- id: n.labelForId,
418
- class: "control-container"
419
- }, [
420
- b(x(z), {
421
- modelValue: a.value,
422
- "onUpdate:modelValue": l[0] || (l[0] = (m) => a.value = m),
423
- compact: "",
424
- "possible-values": r,
425
- disabled: n.disabled
426
- }, null, 8, ["modelValue", "disabled"]),
427
- b(x(Se), {
428
- modelValue: u.value,
429
- "onUpdate:modelValue": l[1] || (l[1] = (m) => u.value = m),
430
- compact: "",
431
- disabled: n.disabled,
432
- "show-type-switch-in-popover": !1,
433
- "allowed-formats": V.value,
434
- "all-default-formats": x(D),
435
- "is-valid": !0
436
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
437
- ], 8, Re));
438
- }
439
- }), Le = /* @__PURE__ */ S(Pe, [["__scopeId", "data-v-8517cafd"]]);
440
- export {
441
- Le as default
442
- };