@knime/jsonforms 1.18.10 → 1.18.11

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 (82) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AnyOfTwinlist-_Sr9IKrq.js → AnyOfTwinlist-H8itABcU.js} +1 -1
  3. package/dist/{Button-RAaPECE7.js → Button-CsbepB41.js} +1 -1
  4. package/dist/{Checkbox-hzgHGyqr.js → Checkbox-DjZxP5CK.js} +1 -1
  5. package/dist/{CheckboxControl-LBnX_sq8.js → CheckboxControl-DVfH74ao.js} +6 -6
  6. package/dist/{CheckboxesControl-4FhNF8e_.js → CheckboxesControl-DbPSppM6.js} +2 -2
  7. package/dist/{ComboBoxControl-CTNUQs_Y.js → ComboBoxControl-CQrCQDnm.js} +3 -3
  8. package/dist/{DateControl-BvNGaVP7.js → DateControl-C37NzdMk.js} +1 -1
  9. package/dist/{DateTimeControl-BOnkzwV5.js → DateTimeControl-DcIfSFnl.js} +1 -1
  10. package/dist/{DateTimeFormatInput-DMwVeX_K.js → DateTimeFormatInput-B37nJ7WZ.js} +22 -22
  11. package/dist/{DateTimeFormatPickerControl-CfaDye3g.js → DateTimeFormatPickerControl-CobCN_mb.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-CicLQ0uK.js → DateTimeFormatPickerWithTypeControl-Cgrpo4jj.js} +3 -3
  13. package/dist/{Dropdown-BoH5Dixs.js → Dropdown-BObDeUax.js} +21 -21
  14. package/dist/{DropdownControl-CvLqpt0t.js → DropdownControl-DRyS3Hwj.js} +3 -3
  15. package/dist/{HorizontalLayout-yYr-7Yrz.js → HorizontalLayout-DFDAqPrb.js} +1 -1
  16. package/dist/{InputField-BfAdSnU8.js → InputField-nmAOvFZq.js} +1 -1
  17. package/dist/{IntegerControl-D78hD1BN.js → IntegerControl-B4595SGV.js} +1 -1
  18. package/dist/IntervalControl-DQCAGoNo.js +767 -0
  19. package/dist/{Label-BnvMjL3_.js → Label-BPo4EJ9a.js} +1 -1
  20. package/dist/{LoadingDropdown-EtGhXYdJ.js → LoadingDropdown-Dg_LTPYt.js} +3 -3
  21. package/dist/{LoadingIcon-DV2OQM0C.js → LoadingIcon-DR8NKUY6.js} +1 -1
  22. package/dist/{ManualTwinlistControl-BCv95-8-.js → ManualTwinlistControl-CYYXpBTF.js} +4 -4
  23. package/dist/{MultiSelectListBoxControl-DQJRQHYQ.js → MultiSelectListBoxControl-BlNxjx6z.js} +2 -2
  24. package/dist/{MultimodeTwinlistControl-B0S4Ek61.js → MultimodeTwinlistControl-jV_w7lgr.js} +14 -14
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-rM_JAo3H.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-6idDahSz.js} +2 -2
  26. package/dist/{MultiselectListBox-BAzB2KkR.js → MultiselectListBox-BQIhu3EK.js} +4 -4
  27. package/dist/{NameFilter-C8IPUCWk.js → NameFilter-Dau_bS4b.js} +1 -1
  28. package/dist/{NumberControl-DNoajc_6.js → NumberControl-0o_GgOG4.js} +1 -1
  29. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-j08h2BDc.js +49 -0
  30. package/dist/{OneOfDropdown-zxzryRzf.js → OneOfDropdown-DaJGTKfI.js} +1 -1
  31. package/dist/{RadioControl-IrrHMLoF.js → RadioControl-WBCcOARB.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DSNXnLSc.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Dgt56ocW.js} +2 -2
  33. package/dist/{RichTextControl-Dqm_9Xm0.js → RichTextControl-CnyjUXWF.js} +6 -6
  34. package/dist/{SectionHeading-D0yfY8w4.js → SectionHeading-BSx9A0he.js} +1 -1
  35. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CMZSLOQX.js +17513 -0
  36. package/dist/{SectionLayout-BwOjzscd.js → SectionLayout-X2--otVm.js} +3 -3
  37. package/dist/SettingsSubPanel-5m02HX25.js +5 -0
  38. package/dist/{SettingsSubPanelLayout-DxGYEnG_.js → SettingsSubPanelLayout-66qY7ALu.js} +6 -6
  39. package/dist/{SimpleButtonControl-4Tnj9jbl.js → SimpleButtonControl-uIPmwR6D.js} +2 -2
  40. package/dist/{SimpleTwinlistControl-BrOu0Dto.js → SimpleTwinlistControl-3fRPJik5.js} +2 -2
  41. package/dist/{SingleSelectControl-mPu0nBjI.js → SingleSelectControl-CVKlUerW.js} +2 -2
  42. package/dist/{SingleSelectListBoxControl-BdORWlmz.js → SingleSelectListBoxControl-BFOKfOuZ.js} +3 -3
  43. package/dist/{SortListControl-C468mLf-.js → SortListControl-D0ZmuLEc.js} +28 -28
  44. package/dist/{StyledListItem-MSj_zT8t.js → StyledListItem-1yi8cwAc.js} +1 -1
  45. package/dist/TextAreaControl-CMSLwtK5.js +27 -0
  46. package/dist/{TextControl-3w_mtjoY.js → TextControl-D38OA8zM.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BYm9ohHY.js → TextControl.vue_vue_type_script_setup_true_lang-tQkTpiEu.js} +14 -16
  48. package/dist/{TimeControl-BCbRBMLL.js → TimeControl-D_qFhFcO.js} +1 -1
  49. package/dist/{TwinlistControlBase-CgVpKUVq.js → TwinlistControlBase-BoWr0icR.js} +3 -3
  50. package/dist/{TwinlistLoadingInfo-DDd-1UnR.js → TwinlistLoadingInfo-DScu9gNb.js} +13 -13
  51. package/dist/{TypedStringFilter-3v1FOYIP.js → TypedStringFilter-BX1diH1I.js} +1 -1
  52. package/dist/{ValueSwitch-Dbi9Zyo3.js → ValueSwitch-BKwWC7oO.js} +4 -4
  53. package/dist/{ValueSwitchControl--qc6Ir21.js → ValueSwitchControl-B0UEbXJS.js} +1 -1
  54. package/dist/{VerticalLayout-LTEVfknI.js → VerticalLayout-xxxNQVy2.js} +2 -2
  55. package/dist/{VerticalLayoutBase-Dd0Xt_rh.js → VerticalLayoutBase-C_zizW_W.js} +1 -1
  56. package/dist/{ZonedDateTimeControl-Dc6U58m6.js → ZonedDateTimeControl-DPi-I4Be.js} +3 -3
  57. package/dist/{_baseEach-CThGMqaf.js → _baseEach-BdW4qQGA.js} +2 -2
  58. package/dist/{_baseIteratee-DI1w5DnJ.js → _baseIteratee-dsxxjyPK.js} +3 -3
  59. package/dist/{_getTag-DdBbCZn7.js → _getTag-P-acvVg7.js} +10 -10
  60. package/dist/cloud-pending-changes-BooMof3w-CPJyy-Ev.js +22 -0
  61. package/dist/{cloud-synced-Cjce2vj8-DDAB0E3R.js → cloud-synced-BLkZpZpi-DksE46gj.js} +4 -4
  62. package/dist/deploy-D2iGlU6g-DzOC-qkj.js +23 -0
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +7 -7
  65. package/dist/{localTimeUtils-d0I3Ig8P.js → localTimeUtils-Dhde1usg.js} +6 -6
  66. package/dist/service-BT3SUkgO-Duty0VTm.js +22 -0
  67. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +1 -1
  68. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
  69. package/dist/src/uiComponents/TextControl.vue.d.ts +3 -193
  70. package/dist/testing.js +2 -2
  71. package/dist/{toString-nxdVTxAC.js → toString-BauPm1xP.js} +1 -1
  72. package/dist/{useBuiltinValidations-pCxT7o8_.js → useBuiltinValidations-BkGavbHL.js} +1 -1
  73. package/dist/{usePossibleValues-Bu21MMCR.js → usePossibleValues-CRl5e6t8.js} +1 -1
  74. package/package.json +4 -4
  75. package/dist/IntervalControl-0amOuiuG.js +0 -543
  76. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CntdmdGl.js +0 -56
  77. package/dist/NumberInput-B_5xNEia.js +0 -231
  78. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-D6erQfqE.js +0 -16682
  79. package/dist/SettingsSubPanel-Cq8N7ec5.js +0 -5
  80. package/dist/TextAreaControl-CbHXEyos.js +0 -108
  81. package/dist/cloud-pending-changes-BrwTyYkH-Dz2wUJ-Q.js +0 -22
  82. package/dist/deploy-BHUT6hCi-CuMB4J-Y.js +0 -22
@@ -1,231 +0,0 @@
1
- import { A as h } from "./arrow-dropdown-DMFBPPcK.js";
2
- /* empty css */
3
- import { resolveComponent as f, openBlock as d, createElementBlock as m, normalizeClass as r, createElementVNode as u, createCommentVNode as V, withModifiers as n, createVNode as p } from "vue";
4
- import { _ as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-D6erQfqE.js";
5
- const g = 200, v = 50, E = 0.1, I = 1, b = {
6
- name: "NumberInput",
7
- components: {
8
- ArrowIcon: h
9
- },
10
- props: {
11
- modelValue: {
12
- default: 0,
13
- type: [Number, String],
14
- validator(e) {
15
- return typeof e == "string" ? e.toLowerCase().includes("e") : typeof e == "number";
16
- }
17
- },
18
- id: {
19
- type: String,
20
- default: null
21
- },
22
- name: {
23
- type: String,
24
- default: null
25
- },
26
- min: {
27
- default: Number.MIN_SAFE_INTEGER,
28
- type: Number
29
- },
30
- max: {
31
- default: Number.MAX_SAFE_INTEGER,
32
- type: Number
33
- },
34
- step: {
35
- default: null,
36
- type: Number
37
- },
38
- /**
39
- * Validity controlled by the parent component to be flexible.
40
- */
41
- isValid: {
42
- default: !0,
43
- type: Boolean
44
- },
45
- /**
46
- * Sets the significant digit of the spinner input.
47
- *
48
- * Possible values: 'double' | 'integer'
49
- */
50
- type: {
51
- default: "double",
52
- type: String
53
- },
54
- inputClasses: {
55
- default: "",
56
- type: String
57
- },
58
- disabled: {
59
- default: !1,
60
- type: Boolean
61
- },
62
- compact: {
63
- type: Boolean,
64
- default: !1
65
- }
66
- },
67
- emits: ["update:modelValue"],
68
- data() {
69
- return {
70
- clicked: !1,
71
- // false to prevent unintended 'mouseup' or 'mouseleave' events.
72
- hovered: !1,
73
- initialValue: 0,
74
- localValue: "",
75
- spinnerArrowTimeout: null,
76
- spinnerArrowInterval: null
77
- };
78
- },
79
- computed: {
80
- isInteger() {
81
- return this.type === "integer";
82
- },
83
- stepSize() {
84
- return this.step !== null ? this.step : this.isInteger ? I : E;
85
- },
86
- inputClassList() {
87
- let e = this.inputClasses;
88
- return this.hovered && (e += " hover"), e;
89
- },
90
- inputValue() {
91
- return typeof this.localValue == "number" && isNaN(this.localValue) ? "" : this.isInteger ? this.localValue : this.localValue.toString();
92
- }
93
- },
94
- watch: {
95
- modelValue: {
96
- handler() {
97
- this.parseValue(this.localValue) !== this.parseValue(this.modelValue) && (this.localValue = this.parseValue(this.modelValue));
98
- },
99
- immediate: !0
100
- }
101
- },
102
- mounted() {
103
- this.localValue = this.parseValue(this.modelValue), this.initialValue = this.localValue;
104
- },
105
- methods: {
106
- getInputRef() {
107
- return this.$refs.input;
108
- },
109
- parseValue(e) {
110
- return this.isInteger ? parseInt(e.toString(), 10) : parseFloat(e.toString());
111
- },
112
- getParsedValue() {
113
- return this.parseValue(this.localValue);
114
- },
115
- onInput(e) {
116
- const t = e.target.value;
117
- e && !t && (e.data === "." || e.data === "-") || (t || (this.getInputRef().value = ""), this.updateAndEmit({ newValue: t }));
118
- },
119
- updateAndEmit({ newValue: e }) {
120
- this.localValue = e, this.$emit("update:modelValue", this.getParsedValue());
121
- },
122
- onBlur() {
123
- this.localValue = this.getParsedValue(), this.getInputRef().valueAsNumber = this.localValue;
124
- },
125
- validate(e) {
126
- let t = !0, a;
127
- return e = typeof e > "u" ? this.getParsedValue() : this.parseValue(e), typeof e != "number" || isNaN(e) ? (t = !1, a = "Current value is not a number.") : (this.min > e || this.max < e) && (t = !1, a = "Current value is outside allowed range."), { isValid: t, errorMessage: a };
128
- },
129
- /**
130
- * Change value updates the actual value of the input field if a valid new value
131
- * can be found. It prevents users from further invalidating the value in the input
132
- * by moving in the wrong direction (lower than min/higher than max).
133
- *
134
- * It will snap to the nearest multiple of the given increment, i.e. initial
135
- * value 13 incremented by 10 will yield 20.
136
- *
137
- * @param {Number} increment - the amount by which to change the current
138
- * value. If value is 0, no update is performed.
139
- * @returns {undefined}
140
- */
141
- changeValue(e) {
142
- if (e === 0)
143
- return;
144
- let t = this.getParsedValue();
145
- this.validate(t).isValid || (t = this.findNearestValidValue(t));
146
- let a = t + e, i = 1 / Math.abs(e);
147
- Math.abs(e) < 1 && (i = Math.round(i)), a = Math.round(a * i) / i, this.validate(a).isValid && this.updateAndEmit({ newValue: a });
148
- },
149
- findNearestValidValue(e) {
150
- return e < this.min ? this.min : e > this.max ? this.max : this.initialValue;
151
- },
152
- /**
153
- * This method is the callback handler for mouse events on the input field controls.
154
- * It is fired when either the up-arrow or down-arrow is pressed by the user. It manages
155
- * both mousedown and mouseup events. It clears any existing timeouts or intervals which
156
- * may have been set previously. It also recognizes when the mouse leaves the button
157
- * (which could cause a mouseup event to be missed) and therefore uses the this.clicked
158
- * data property to ensure it doesn't get stuck in an interval.
159
- *
160
- * @param {Event} e - the DOM event object which triggered the handler.
161
- * @param {String} type - the type of button pressed (either 'increased' or 'decreased').
162
- * @returns {undefined}
163
- */
164
- mouseEvent(e, t) {
165
- if (this.disabled)
166
- return;
167
- this.spinnerArrowInterval !== null && clearTimeout(this.spinnerArrowInterval), this.spinnerArrowTimeout !== null && clearInterval(this.spinnerArrowTimeout);
168
- let a = this.stepSize;
169
- if (t === "decrease" && (a *= -1), e.type === "mousedown") {
170
- this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
171
- this.spinnerArrowInterval = setInterval(() => {
172
- this.changeValue(a);
173
- }, v);
174
- }, g);
175
- return;
176
- }
177
- this.clicked && (this.clicked = !1, this.changeValue(a));
178
- },
179
- toggleHover() {
180
- this.hovered = !this.hovered;
181
- }
182
- }
183
- }, N = ["id", "name", "value", "min", "max", "step", "disabled"], A = {
184
- key: 0,
185
- class: "invalid-marker"
186
- };
187
- function w(e, t, a, i, y, l) {
188
- const o = f("ArrowIcon");
189
- return d(), m("div", {
190
- class: r(["wrapper", { disabled: a.disabled, compact: a.compact }])
191
- }, [
192
- u("input", {
193
- id: a.id,
194
- ref: "input",
195
- name: a.name,
196
- type: "number",
197
- role: "spinButton",
198
- value: l.inputValue,
199
- min: a.min,
200
- max: a.max,
201
- step: l.stepSize,
202
- class: r(l.inputClassList),
203
- disabled: a.disabled,
204
- onInput: t[0] || (t[0] = (s) => l.onInput(s)),
205
- onBlur: t[1] || (t[1] = (...s) => l.onBlur && l.onBlur(...s)),
206
- onMouseenter: t[2] || (t[2] = (...s) => l.toggleHover && l.toggleHover(...s)),
207
- onMouseleave: t[3] || (t[3] = (...s) => l.toggleHover && l.toggleHover(...s))
208
- }, null, 42, N),
209
- a.isValid ? V("", !0) : (d(), m("span", A)),
210
- u("span", {
211
- class: r(["increase", { disabled: a.disabled }]),
212
- onMousedown: t[4] || (t[4] = n((s) => l.mouseEvent(s, "increase"), ["prevent"])),
213
- onMouseup: t[5] || (t[5] = n((s) => l.mouseEvent(s, "increase"), ["prevent"])),
214
- onMouseleave: t[6] || (t[6] = (s) => l.mouseEvent(s, "increase"))
215
- }, [
216
- p(o)
217
- ], 34),
218
- u("span", {
219
- class: r(["decrease", { disabled: a.disabled }]),
220
- onMousedown: t[7] || (t[7] = n((s) => l.mouseEvent(s, "decrease"), ["prevent"])),
221
- onMouseup: t[8] || (t[8] = n((s) => l.mouseEvent(s, "decrease"), ["prevent"])),
222
- onMouseleave: t[9] || (t[9] = (s) => l.mouseEvent(s, "decrease"))
223
- }, [
224
- p(o)
225
- ], 34)
226
- ], 2);
227
- }
228
- const B = /* @__PURE__ */ c(b, [["render", w], ["__scopeId", "data-v-0ce77f1e"]]);
229
- export {
230
- B as N
231
- };