@knime/jsonforms 1.15.0 → 1.15.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 (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [6887f7b]
8
+ - @knime/components@1.34.1
9
+ - @knime/rich-text-editor@1.7.1
10
+
3
11
  ## 1.15.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,28 @@
1
+ import { defineComponent as s, createBlock as i, openBlock as p, mergeProps as a } from "vue";
2
+ import { o as l } from "./index-Blg1O3Fz.js";
3
+ import { T as u } from "./TwinlistControlBase-CMFEecdr.js";
4
+ import { _ as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const d = /* @__PURE__ */ s({
6
+ __name: "AnyOfTwinlist",
7
+ props: {
8
+ control: { type: Object, required: !0 },
9
+ handleChange: { type: Function, required: !0 },
10
+ changeValue: { type: Function, required: !0 },
11
+ disabled: { type: Boolean, required: !0 },
12
+ isValid: { type: Boolean, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 },
14
+ labelForId: { type: String, required: !0 }
15
+ },
16
+ setup(r, { expose: n }) {
17
+ n();
18
+ const o = r, e = o.control.schema.anyOf.map(l), t = { props: o, possibleValues: e, TwinlistControlBase: u };
19
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
20
+ }
21
+ });
22
+ function m(r, n, o, e, t, f) {
23
+ return p(), i(e.TwinlistControlBase, a(r.$props, { "possible-values": e.possibleValues }), null, 16, ["possible-values"]);
24
+ }
25
+ const q = /* @__PURE__ */ c(d, [["render", m], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/twinlist/AnyOfTwinlist.vue"]]);
26
+ export {
27
+ q as default
28
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as o, resolveComponent as a, createBlock as s, openBlock as n, normalizeClass as r, withCtx as l, renderSlot as d } from "vue";
2
- import { D as i, _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- const c = o({
1
+ import { defineComponent as o, resolveComponent as a, createBlock as s, openBlock as n, normalizeClass as r, withCtx as l, renderSlot as c } from "vue";
2
+ import { D as p, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ const d = o({
4
4
  name: "Button",
5
5
  components: {
6
- BaseButton: i
6
+ BaseButton: p
7
7
  },
8
8
  props: {
9
9
  /**
@@ -64,19 +64,20 @@ const c = o({
64
64
  }
65
65
  }
66
66
  });
67
- function f(e, u, B, m, h, _) {
67
+ function m(e, u, f, B, h, _) {
68
68
  const t = a("BaseButton");
69
69
  return n(), s(t, {
70
70
  class: r(e.classes),
71
71
  disabled: e.disabled
72
72
  }, {
73
73
  default: l(() => [
74
- d(e.$slots, "default")
74
+ c(e.$slots, "default")
75
75
  ]),
76
76
  _: 3
77
+ /* FORWARDED */
77
78
  }, 8, ["class", "disabled"]);
78
79
  }
79
- const b = /* @__PURE__ */ p(c, [["render", f], ["__scopeId", "data-v-4d1f9e2d"]]);
80
+ const b = /* @__PURE__ */ i(d, [["render", m], ["__scopeId", "data-v-7dccdc88"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/Buttons/Button.vue"]]);
80
81
  export {
81
82
  b as B
82
83
  };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as l, ref as s, createElementBlock as d, openBlock as u, createVNode as i, renderSlot as n, withCtx as c, createTextVNode as p, toDisplayString as b } from "vue";
2
+ import { C as m, _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ const _ = /* @__PURE__ */ l({
4
+ __name: "CheckboxControl",
5
+ props: {
6
+ control: { type: Object, required: !0 },
7
+ handleChange: { type: Function, required: !0 },
8
+ changeValue: { type: Function, required: !0 },
9
+ disabled: { type: Boolean, required: !0 },
10
+ labelForId: { type: null, required: !1 },
11
+ isValid: { type: Boolean, required: !0 },
12
+ messages: { type: Object, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 }
14
+ },
15
+ setup(r, { expose: o }) {
16
+ o();
17
+ const e = { hover: s(!1), get Checkbox() {
18
+ return m;
19
+ } };
20
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
21
+ }
22
+ });
23
+ function f(r, o, t, e, h, C) {
24
+ return u(), d(
25
+ "div",
26
+ {
27
+ class: "checkbox-input",
28
+ onMouseover: o[0] || (o[0] = (a) => e.hover = !0),
29
+ onMouseleave: o[1] || (o[1] = (a) => e.hover = !1)
30
+ },
31
+ [
32
+ i(e.Checkbox, {
33
+ class: "checkbox",
34
+ disabled: t.disabled,
35
+ "model-value": t.control.data,
36
+ "onUpdate:modelValue": t.changeValue
37
+ }, {
38
+ default: c(() => [
39
+ p(
40
+ b(t.control.label) + " ",
41
+ 1
42
+ /* TEXT */
43
+ ),
44
+ n(r.$slots, "icon", {}, void 0, !0)
45
+ ]),
46
+ _: 3
47
+ /* FORWARDED */
48
+ }, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
49
+ n(r.$slots, "buttons", { hover: e.hover }, void 0, !0)
50
+ ],
51
+ 32
52
+ /* NEED_HYDRATION */
53
+ );
54
+ }
55
+ const y = /* @__PURE__ */ v(_, [["render", f], ["__scopeId", "data-v-135266ed"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/CheckboxControl.vue"]]);
56
+ export {
57
+ y as default
58
+ };
@@ -0,0 +1,120 @@
1
+ import { _ as c, C as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
2
+ import { resolveComponent as m, createElementBlock as r, openBlock as l, normalizeClass as p, Fragment as f, renderList as h, createBlock as b, withCtx as x, createTextVNode as k, toDisplayString as _ } from "vue";
3
+ const V = {
4
+ name: "Checkboxes",
5
+ components: {
6
+ Checkbox: u
7
+ },
8
+ props: {
9
+ /**
10
+ * List of possible values. Each item must have an `id` and a `text` property.
11
+ * @example
12
+ * [{
13
+ * id: 'pdf',
14
+ * text: 'PDF'
15
+ * }, {
16
+ * id: 'XLS',
17
+ * text: 'Excel',
18
+ * }]
19
+ */
20
+ possibleValues: {
21
+ type: Array,
22
+ default: () => [],
23
+ validator(e) {
24
+ return Array.isArray(e) ? e.every(
25
+ (o) => o.hasOwnProperty("id") && o.hasOwnProperty("text")
26
+ ) : !1;
27
+ }
28
+ },
29
+ /**
30
+ * Controls the alignment
31
+ */
32
+ alignment: {
33
+ type: String,
34
+ default: "horizontal",
35
+ validator(e) {
36
+ return ["horizontal", "vertical"].includes(e);
37
+ }
38
+ },
39
+ disabled: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ isValid: {
44
+ default: !0,
45
+ type: Boolean
46
+ },
47
+ /**
48
+ * selected value (which is a list of ids of entries)
49
+ */
50
+ modelValue: {
51
+ type: Array,
52
+ default: () => []
53
+ }
54
+ },
55
+ emits: ["update:modelValue"],
56
+ methods: {
57
+ validate() {
58
+ const e = !this.possibleValues.some((o) => o.invalid);
59
+ return {
60
+ isValid: e,
61
+ errorMessage: e ? null : "One or more of the selected items is invalid."
62
+ };
63
+ },
64
+ onUpdateModelValue(e, o) {
65
+ let t = Array.from(this.modelValue);
66
+ o ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((s) => s !== e), consola.trace("Checkboxes value changed to", t), this.$emit("update:modelValue", t);
67
+ },
68
+ /**
69
+ * Is at least one checkbox checked?
70
+ * @returns {boolean}
71
+ */
72
+ hasSelection() {
73
+ return this.$refs.boxes.some((e) => e.isChecked());
74
+ }
75
+ }
76
+ };
77
+ function y(e, o, t, s, v, n) {
78
+ const d = m("Checkbox");
79
+ return l(), r(
80
+ "div",
81
+ {
82
+ class: p(["checkboxes", t.alignment])
83
+ },
84
+ [
85
+ (l(!0), r(
86
+ f,
87
+ null,
88
+ h(t.possibleValues, (a) => (l(), b(d, {
89
+ ref_for: !0,
90
+ ref: "boxes",
91
+ key: `checkboxes-${a.id}`,
92
+ "model-value": t.modelValue.indexOf(a.id) > -1,
93
+ title: a.text,
94
+ invalid: a.invalid,
95
+ disabled: t.disabled,
96
+ class: "box",
97
+ "onUpdate:modelValue": (i) => n.onUpdateModelValue(a.id, i)
98
+ }, {
99
+ default: x(() => [
100
+ k(
101
+ _(a.text),
102
+ 1
103
+ /* TEXT */
104
+ )
105
+ ]),
106
+ _: 2
107
+ /* DYNAMIC */
108
+ }, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))),
109
+ 128
110
+ /* KEYED_FRAGMENT */
111
+ ))
112
+ ],
113
+ 2
114
+ /* CLASS */
115
+ );
116
+ }
117
+ const A = /* @__PURE__ */ c(V, [["render", y], ["__scopeId", "data-v-535b2687"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/Checkboxes/Checkboxes.vue"]]);
118
+ export {
119
+ A as C
120
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent as c, computed as l, ref as u, toRef as d, onMounted as p, createBlock as m, createCommentVNode as b, openBlock as _ } from "vue";
2
+ import { o as f } from "./index-Blg1O3Fz.js";
3
+ import { u as h } from "./usePossibleValues-DTVXBGRC.js";
4
+ import { C } from "./Checkboxes-Bofcg7tl.js";
5
+ import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
6
+ const g = /* @__PURE__ */ c({
7
+ __name: "CheckboxesControl",
8
+ props: {
9
+ control: { type: Object, required: !0 },
10
+ handleChange: { type: Function, required: !0 },
11
+ changeValue: { type: Function, required: !0 },
12
+ disabled: { type: Boolean, required: !0 },
13
+ isValid: { type: Boolean, required: !0 },
14
+ onRegisterValidation: { type: Function, required: !0 },
15
+ labelForId: { type: String, required: !0 }
16
+ },
17
+ setup(a, { expose: r }) {
18
+ r();
19
+ const e = a, o = l(
20
+ () => e.control.uischema.options?.checkboxLayout
21
+ ), t = u(null), { possibleValues: n } = h(d(e, "control")), i = l(() => t.value ?? n.value);
22
+ p(() => {
23
+ t.value = e.control.schema.anyOf ? e.control.schema.anyOf.map(f) : null;
24
+ });
25
+ const s = { props: e, alignment: o, staticOptions: t, possibleValues: n, options: i, get Checkboxes() {
26
+ return C;
27
+ } };
28
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
29
+ }
30
+ });
31
+ function k(a, r, e, o, t, n) {
32
+ return o.options ? (_(), m(o.Checkboxes, {
33
+ key: 0,
34
+ id: e.labelForId,
35
+ class: "checkboxes",
36
+ "possible-values": o.options,
37
+ alignment: o.alignment,
38
+ disabled: e.disabled,
39
+ "model-value": e.control.data,
40
+ "is-valid": e.isValid,
41
+ "onUpdate:modelValue": e.changeValue
42
+ }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : b("v-if", !0);
43
+ }
44
+ const O = /* @__PURE__ */ v(g, [["render", k], ["__scopeId", "data-v-c36c5814"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/CheckboxesControl.vue"]]);
45
+ export {
46
+ O as default
47
+ };