@knime/jsonforms 1.14.3 → 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.
- package/CHANGELOG.md +32 -0
- package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
- package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
- package/dist/CheckboxControl-q88fZSZD.js +58 -0
- package/dist/Checkboxes-Bofcg7tl.js +120 -0
- package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
- package/dist/DateControl-vnkppn62.js +38 -0
- package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
- package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
- package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
- package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
- package/dist/Dropdown-D49sEHBa.js +663 -0
- package/dist/DropdownControl-aeEqC-Yg.js +46 -0
- package/dist/HorizontalLayout-D0toQmVl.js +39 -0
- package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
- package/dist/IntegerControl-DAwniqjW.js +33 -0
- package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
- package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
- package/dist/LoadingIcon-RPBUjTO3.js +23 -0
- package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
- package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
- package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
- package/dist/NameFilter-BV68t_P5.js +37 -0
- package/dist/NumberControl-Dm01CJW9.js +33 -0
- package/dist/NumberControlBase-CN5eTKEm.js +58 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
- package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
- package/dist/RadioControl-X6HLs9F1.js +36 -0
- package/dist/RadioControlBase-BGUHTIUl.js +111 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
- package/dist/SectionHeading-B6JkPyMh.js +31 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
- package/dist/SectionLayout-7pXn4OHo.js +61 -0
- package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
- package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
- package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
- package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
- package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
- package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
- package/dist/SortListControl-CWuxKIEb.js +445 -0
- package/dist/StyledListItem-NqAG7jSw.js +81 -0
- package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
- package/dist/TextControl-w9vrCC1T.js +54 -0
- package/dist/TimeControl-DiNQSV4K.js +46 -0
- package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
- package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
- package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
- package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
- package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
- package/dist/VerticalLayout-DY8gbasK.js +39 -0
- package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
- package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
- package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +133 -110
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/reload-57Xc2t-6.js +23 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DTVXBGRC.js +16 -0
- package/package.json +14 -14
- package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/Checkboxes-DIPjJhPO.js +0 -103
- package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
- package/dist/DateControl-CddCObVg.js +0 -29
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
- package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
- package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
- package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/DropdownControl-BNQKWzTT.js +0 -31
- package/dist/HorizontalLayout-6GwurgkR.js +0 -25
- package/dist/IntegerControl-DZIY-wb_.js +0 -20
- package/dist/IntervalControl-Yts36_MI.js +0 -546
- package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
- package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
- package/dist/NameFilter-D0hKO5Fr.js +0 -24
- package/dist/NumberControl-DkeQT1iR.js +0 -20
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
- package/dist/RadioControl-DjrysNQ_.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SectionLayout-CJP4sYyB.js +0 -46
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
- package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
- package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
- package/dist/SortListControl-mvJofiWn.js +0 -375
- package/dist/StyledListItem-BXz08pEQ.js +0 -72
- package/dist/TextAreaControl-S4aoqAv1.js +0 -111
- package/dist/TextControl-rJrjrBw8.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
- package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/ValueSwitch-CUYV7v67.js +0 -131
- package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
- package/dist/VerticalLayout-D2eQSYgv.js +0 -30
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/reload-BVbCGubF.js +0 -17
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toRef as x, watch as S, resolveComponent as
|
|
2
|
-
import { u as K } from "./index-
|
|
3
|
-
import { S as N } from "./StyledListItem-
|
|
4
|
-
import {
|
|
1
|
+
import { toRef as x, watch as S, resolveComponent as p, createElementBlock as u, openBlock as h, normalizeStyle as y, normalizeClass as I, createElementVNode as f, createCommentVNode as g, mergeProps as v, withKeys as a, withModifiers as d, normalizeProps as C, guardReactiveProps as w, Fragment as V, renderList as k, createBlock as b, resolveDynamicComponent as D, toDisplayString as B, createVNode as H } from "vue";
|
|
2
|
+
import { u as K } from "./index-CpKfM262.js";
|
|
3
|
+
import { S as N } from "./StyledListItem-NqAG7jSw.js";
|
|
4
|
+
import { B as L, _ as A } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
5
|
const T = (e, t) => {
|
|
6
6
|
let i, r = 0;
|
|
7
7
|
return (...l) => {
|
|
@@ -12,14 +12,14 @@ const T = (e, t) => {
|
|
|
12
12
|
r = n, e(s, o);
|
|
13
13
|
}, t);
|
|
14
14
|
};
|
|
15
|
-
},
|
|
15
|
+
}, M = 250, O = {
|
|
16
16
|
name: "MultiselectListBox",
|
|
17
17
|
components: { StyledListItem: N },
|
|
18
18
|
props: {
|
|
19
19
|
id: {
|
|
20
20
|
type: String,
|
|
21
21
|
default() {
|
|
22
|
-
return `MultiselectListBox-${
|
|
22
|
+
return `MultiselectListBox-${L()}`;
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
modelValue: {
|
|
@@ -131,10 +131,9 @@ const T = (e, t) => {
|
|
|
131
131
|
return S(
|
|
132
132
|
() => e.possibleValues,
|
|
133
133
|
() => {
|
|
134
|
-
var n;
|
|
135
134
|
if (!i.ref.value)
|
|
136
135
|
return;
|
|
137
|
-
const o =
|
|
136
|
+
const o = i.ref.value?.scrollTop ?? 0;
|
|
138
137
|
s(
|
|
139
138
|
Math.max(
|
|
140
139
|
Math.min(
|
|
@@ -195,10 +194,9 @@ const T = (e, t) => {
|
|
|
195
194
|
}
|
|
196
195
|
},
|
|
197
196
|
mounted() {
|
|
198
|
-
var t, i;
|
|
199
197
|
window.addEventListener("mouseup", this.onStopDrag);
|
|
200
|
-
const e =
|
|
201
|
-
this.currentKeyNavIndex = this.possibleValues.map((
|
|
198
|
+
const e = this.modelValue?.[this.modelValue?.length - 1];
|
|
199
|
+
this.currentKeyNavIndex = this.possibleValues.map((t) => t.id).indexOf(e);
|
|
202
200
|
},
|
|
203
201
|
beforeUnmount() {
|
|
204
202
|
window.removeEventListener("mouseup", this.onStopDrag);
|
|
@@ -210,15 +208,14 @@ const T = (e, t) => {
|
|
|
210
208
|
createDebouncedHandleCtrlClick() {
|
|
211
209
|
this.debouncedHandleCtrlClick = T((e, t) => {
|
|
212
210
|
this.handleCtrlClick(e, t);
|
|
213
|
-
},
|
|
211
|
+
}, M);
|
|
214
212
|
},
|
|
215
213
|
// Define debouncedHandleCtrlClick as a method
|
|
216
214
|
debouncedHandleCtrlClick(e, t) {
|
|
217
215
|
this.debouncedHandleCtrlClick || this.createDebouncedHandleCtrlClick(), this.debouncedHandleCtrlClick(e, t);
|
|
218
216
|
},
|
|
219
217
|
isCurrentValue(e) {
|
|
220
|
-
|
|
221
|
-
return (t = this.selectedValues) == null ? void 0 : t.includes(e);
|
|
218
|
+
return this.selectedValues?.includes(e);
|
|
222
219
|
},
|
|
223
220
|
handleCtrlClick(e, t) {
|
|
224
221
|
this.currentKeyNavIndex = t, this.toggleSelection(e);
|
|
@@ -301,16 +298,15 @@ const T = (e, t) => {
|
|
|
301
298
|
addToSelection(e) {
|
|
302
299
|
let t = !1;
|
|
303
300
|
const i = this.selectedValues;
|
|
304
|
-
return i
|
|
301
|
+
return i?.includes(e) || (i?.push(e), t = !0), this.setSelected(i), t;
|
|
305
302
|
},
|
|
306
303
|
removeFromSelection(e) {
|
|
307
304
|
let t = !1;
|
|
308
305
|
const i = this.selectedValues;
|
|
309
|
-
return i
|
|
306
|
+
return i?.includes(e) && (i.splice(i.indexOf(e), 1), t = !0), this.setSelected(i), t;
|
|
310
307
|
},
|
|
311
308
|
toggleSelection(e) {
|
|
312
|
-
|
|
313
|
-
(t = this.selectedValues) != null && t.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
|
|
309
|
+
this.selectedValues?.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
|
|
314
310
|
},
|
|
315
311
|
setSelectedNoShiftReset(e) {
|
|
316
312
|
consola.trace("MultiselectListBox setSelected on", e), this.selectedValues = e, this.$emit("update:modelValue", e);
|
|
@@ -414,8 +410,7 @@ const T = (e, t) => {
|
|
|
414
410
|
return `option-${this.id}-${i}`;
|
|
415
411
|
},
|
|
416
412
|
focus() {
|
|
417
|
-
|
|
418
|
-
this.disabled || (e = this.containerProps.ref.value) == null || e.focus();
|
|
413
|
+
this.disabled || this.containerProps.ref.value?.focus();
|
|
419
414
|
},
|
|
420
415
|
clearSelection() {
|
|
421
416
|
this.disabled || this.setSelected([]);
|
|
@@ -436,7 +431,7 @@ const T = (e, t) => {
|
|
|
436
431
|
this.resizeHeight = this.computeBoxHeight(Math.round(e));
|
|
437
432
|
}
|
|
438
433
|
}
|
|
439
|
-
},
|
|
434
|
+
}, z = { class: "box" }, P = ["id", "aria-label", "aria-activedescendant"], E = {
|
|
440
435
|
key: 0,
|
|
441
436
|
class: "empty-state"
|
|
442
437
|
}, R = { key: 1 }, U = {
|
|
@@ -444,72 +439,96 @@ const T = (e, t) => {
|
|
|
444
439
|
role: "bottom-box"
|
|
445
440
|
};
|
|
446
441
|
function F(e, t, i, r, l, s) {
|
|
447
|
-
const o =
|
|
448
|
-
return h(), u(
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
442
|
+
const o = p("StyledListItem");
|
|
443
|
+
return h(), u(
|
|
444
|
+
"div",
|
|
445
|
+
{
|
|
446
|
+
class: I(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
|
|
447
|
+
style: y(s.cssStyleSize)
|
|
448
|
+
},
|
|
449
|
+
[
|
|
450
|
+
f("div", z, [
|
|
451
|
+
f("ul", v(r.containerProps, {
|
|
452
|
+
id: i.id,
|
|
453
|
+
role: "listbox",
|
|
454
|
+
tabindex: "0",
|
|
455
|
+
class: { disabled: i.disabled, "empty-box": s.showEmptyState },
|
|
456
|
+
"aria-label": i.ariaLabel,
|
|
457
|
+
"aria-activedescendant": s.generateOptionId(s.getCurrentKeyNavItem()),
|
|
458
|
+
onKeydown: [
|
|
459
|
+
t[1] || (t[1] = a(d((...n) => s.onCtrlA && s.onCtrlA(...n), ["ctrl", "prevent", "exact"]), ["a"])),
|
|
460
|
+
t[2] || (t[2] = a(d((...n) => s.onArrowUp && s.onArrowUp(...n), ["prevent", "exact"]), ["up"])),
|
|
461
|
+
t[3] || (t[3] = a(d((...n) => s.onArrowDown && s.onArrowDown(...n), ["prevent", "exact"]), ["down"])),
|
|
462
|
+
t[4] || (t[4] = a(d((...n) => s.onArrowUpShift && s.onArrowUpShift(...n), ["shift", "prevent", "exact"]), ["up"])),
|
|
463
|
+
t[5] || (t[5] = a(d((...n) => s.onArrowDownShift && s.onArrowDownShift(...n), ["shift", "prevent", "exact"]), ["down"])),
|
|
464
|
+
t[6] || (t[6] = a(d((...n) => s.onArrowLeft && s.onArrowLeft(...n), ["prevent", "exact"]), ["left"])),
|
|
465
|
+
t[7] || (t[7] = a(d((...n) => s.onArrowRight && s.onArrowRight(...n), ["prevent", "exact"]), ["right"])),
|
|
466
|
+
t[8] || (t[8] = a(d((...n) => s.onHomeKey && s.onHomeKey(...n), ["prevent", "exact"]), ["home"])),
|
|
467
|
+
t[9] || (t[9] = a(d((...n) => s.onEndKey && s.onEndKey(...n), ["prevent", "exact"]), ["end"]))
|
|
468
|
+
],
|
|
469
|
+
onMousedown: t[10] || (t[10] = (...n) => s.onStartDrag && s.onStartDrag(...n)),
|
|
470
|
+
onMousemove: t[11] || (t[11] = (...n) => s.onDrag && s.onDrag(...n))
|
|
471
|
+
}), [
|
|
472
|
+
f(
|
|
473
|
+
"div",
|
|
474
|
+
C(w(r.wrapperProps)),
|
|
475
|
+
[
|
|
476
|
+
(h(!0), u(
|
|
477
|
+
V,
|
|
478
|
+
null,
|
|
479
|
+
k(r.list, ({ data: n, index: c }) => (h(), b(o, {
|
|
480
|
+
id: s.generateOptionId(n),
|
|
481
|
+
key: `listbox-${n.id}`,
|
|
482
|
+
text: n.text,
|
|
483
|
+
"data-option-index": c,
|
|
484
|
+
"line-height": r.optionLineHeight,
|
|
485
|
+
selected: s.isCurrentValue(n.id),
|
|
486
|
+
invalid: n.invalid,
|
|
487
|
+
special: n.special,
|
|
488
|
+
disabled: i.disabled,
|
|
489
|
+
onClick: (m) => s.handleClick(m, n.id, c),
|
|
490
|
+
onDblclickShift: t[0] || (t[0] = (m) => s.handleShiftDblClick()),
|
|
491
|
+
onDblclickExact: (m) => s.handleDblClick(n.id, c)
|
|
492
|
+
}, null, 8, ["id", "text", "data-option-index", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onDblclickExact"]))),
|
|
493
|
+
128
|
|
494
|
+
/* KEYED_FRAGMENT */
|
|
495
|
+
))
|
|
496
|
+
],
|
|
497
|
+
16
|
|
498
|
+
/* FULL_PROPS */
|
|
499
|
+
)
|
|
500
|
+
], 16, P),
|
|
501
|
+
s.showEmptyState ? (h(), u("div", E, [
|
|
502
|
+
i.emptyStateComponent ? (h(), b(D(i.emptyStateComponent), { key: 0 })) : (h(), u(
|
|
503
|
+
"span",
|
|
504
|
+
R,
|
|
505
|
+
B(i.emptyStateLabel),
|
|
506
|
+
1
|
|
507
|
+
/* TEXT */
|
|
508
|
+
))
|
|
509
|
+
])) : g("v-if", !0),
|
|
510
|
+
i.withBottomValue ? (h(), u("div", U, [
|
|
511
|
+
H(o, {
|
|
512
|
+
id: s.generateOptionId(i.bottomValue),
|
|
513
|
+
special: "",
|
|
514
|
+
text: i.bottomValue.text,
|
|
515
|
+
"data-option-index": s.bottomIndex,
|
|
516
|
+
selected: s.isCurrentValue(i.bottomValue.id),
|
|
484
517
|
disabled: i.disabled,
|
|
485
|
-
onClick:
|
|
486
|
-
onDblclickShift: t[
|
|
487
|
-
onDblclickExact:
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
special: "",
|
|
498
|
-
text: i.bottomValue.text,
|
|
499
|
-
"data-option-index": s.bottomIndex,
|
|
500
|
-
selected: s.isCurrentValue(i.bottomValue.id),
|
|
501
|
-
disabled: i.disabled,
|
|
502
|
-
onClick: s.handleBottomClick,
|
|
503
|
-
onDblclickShift: t[12] || (t[12] = (n) => s.handleShiftDblClick()),
|
|
504
|
-
onDblclickExact: s.handleBottomDblClick,
|
|
505
|
-
onMousedown: s.onBottomStartDrag,
|
|
506
|
-
onMousemove: s.onBottomDrag
|
|
507
|
-
}, null, 8, ["id", "text", "data-option-index", "selected", "disabled", "onClick", "onDblclickExact", "onMousedown", "onMousemove"])
|
|
508
|
-
])) : b("", !0)
|
|
509
|
-
])
|
|
510
|
-
], 6);
|
|
518
|
+
onClick: s.handleBottomClick,
|
|
519
|
+
onDblclickShift: t[12] || (t[12] = (n) => s.handleShiftDblClick()),
|
|
520
|
+
onDblclickExact: s.handleBottomDblClick,
|
|
521
|
+
onMousedown: s.onBottomStartDrag,
|
|
522
|
+
onMousemove: s.onBottomDrag
|
|
523
|
+
}, null, 8, ["id", "text", "data-option-index", "selected", "disabled", "onClick", "onDblclickExact", "onMousedown", "onMousemove"])
|
|
524
|
+
])) : g("v-if", !0)
|
|
525
|
+
])
|
|
526
|
+
],
|
|
527
|
+
6
|
|
528
|
+
/* CLASS, STYLE */
|
|
529
|
+
);
|
|
511
530
|
}
|
|
512
|
-
const
|
|
531
|
+
const Y = /* @__PURE__ */ A(O, [["render", F], ["__scopeId", "data-v-29fcc646"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/MultiselectListBox/MultiselectListBox.vue"]]);
|
|
513
532
|
export {
|
|
514
|
-
|
|
533
|
+
Y as M
|
|
515
534
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as o, createBlock as i, openBlock as s, mergeProps as u } from "vue";
|
|
2
|
+
import a from "./MultimodeTwinlistControl-oIvgI_FP.js";
|
|
3
|
+
import { _ as l } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
4
|
+
const p = /* @__PURE__ */ o({
|
|
5
|
+
__name: "NameFilter",
|
|
6
|
+
props: {
|
|
7
|
+
control: { type: Object, required: !0 },
|
|
8
|
+
handleChange: { type: Function, required: !0 },
|
|
9
|
+
changeValue: { type: Function, required: !0 },
|
|
10
|
+
disabled: { type: Boolean, required: !0 },
|
|
11
|
+
isValid: { type: Boolean, required: !0 },
|
|
12
|
+
onRegisterValidation: { type: Function, required: !0 },
|
|
13
|
+
labelForId: { type: String, required: !0 }
|
|
14
|
+
},
|
|
15
|
+
setup(e, { expose: r }) {
|
|
16
|
+
r();
|
|
17
|
+
const t = { TwinlistControl: a };
|
|
18
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function c(e, r, t, n, d, m) {
|
|
22
|
+
return s(), i(
|
|
23
|
+
n.TwinlistControl,
|
|
24
|
+
u({ ...e.$props, ...e.$attrs }, {
|
|
25
|
+
"unknown-values-text": "Any unknown value",
|
|
26
|
+
"show-unknown-values": "",
|
|
27
|
+
"empty-state-label": "No values in this list"
|
|
28
|
+
}),
|
|
29
|
+
null,
|
|
30
|
+
16
|
|
31
|
+
/* FULL_PROPS */
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
const b = /* @__PURE__ */ l(p, [["render", c], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/twinlist/NameFilter.vue"]]);
|
|
35
|
+
export {
|
|
36
|
+
b as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as n, createBlock as u, openBlock as p, mergeProps as s } from "vue";
|
|
2
|
+
import { N as a } from "./NumberControlBase-CN5eTKEm.js";
|
|
3
|
+
import { _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
4
|
+
const l = /* @__PURE__ */ n({
|
|
5
|
+
__name: "NumberControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: { type: Object, required: !0 },
|
|
8
|
+
handleChange: { type: Function, required: !0 },
|
|
9
|
+
changeValue: { type: Function, required: !0 },
|
|
10
|
+
disabled: { type: Boolean, required: !0 },
|
|
11
|
+
isValid: { type: Boolean, required: !0 },
|
|
12
|
+
onRegisterValidation: { type: Function, required: !0 },
|
|
13
|
+
labelForId: { type: String, required: !0 }
|
|
14
|
+
},
|
|
15
|
+
setup(r, { expose: o }) {
|
|
16
|
+
o();
|
|
17
|
+
const e = { NumberControlBase: a };
|
|
18
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function c(r, o, e, t, d, m) {
|
|
22
|
+
return p(), u(
|
|
23
|
+
t.NumberControlBase,
|
|
24
|
+
s(r.$props, { type: "double" }),
|
|
25
|
+
null,
|
|
26
|
+
16
|
|
27
|
+
/* FULL_PROPS */
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
const y = /* @__PURE__ */ i(l, [["render", c], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/NumberControl.vue"]]);
|
|
31
|
+
export {
|
|
32
|
+
y as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as f, computed as p, createBlock as g, openBlock as x } from "vue";
|
|
2
|
+
import { u as y } from "./useBuiltinValidations-D0WuEacN.js";
|
|
3
|
+
import { N } from "./NumberInput-DWTImcA_.js";
|
|
4
|
+
import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
|
+
const _ = 1, b = 0.1, E = /* @__PURE__ */ f({
|
|
6
|
+
__name: "NumberControlBase",
|
|
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
|
+
type: { type: String, required: !0 }
|
|
16
|
+
},
|
|
17
|
+
setup(l, { expose: m }) {
|
|
18
|
+
m();
|
|
19
|
+
const e = l, a = e.type === "integer" ? _ : b, r = ({ min: o, isExclusive: n }) => (t) => isNaN(t) || (n ? t > o : t >= o), i = ({ max: o, isExclusive: n }) => (t) => isNaN(t) || (n ? t < o : t <= o), c = y(
|
|
20
|
+
{
|
|
21
|
+
min: r,
|
|
22
|
+
max: i
|
|
23
|
+
},
|
|
24
|
+
e
|
|
25
|
+
), u = p(() => c.value.min), s = p(() => c.value.max), d = { props: e, DEFAULT_STEP_SIZE_INTEGER: _, DEFAULT_STEP_SIZE_DOUBLE: b, stepSize: a, respectsMin: r, respectsMax: i, validationParams: c, minParams: u, maxParams: s, onFocusOut: () => {
|
|
26
|
+
const o = e.control.data;
|
|
27
|
+
if (u.value && !r(u.value)(o)) {
|
|
28
|
+
const { min: n, isExclusive: t } = u.value;
|
|
29
|
+
t ? e.changeValue(n + a) : e.changeValue(n);
|
|
30
|
+
} else if (s.value && !i(s.value)(o)) {
|
|
31
|
+
const { max: n, isExclusive: t } = s.value;
|
|
32
|
+
t ? e.changeValue(n - a) : e.changeValue(n);
|
|
33
|
+
}
|
|
34
|
+
}, get NumberInput() {
|
|
35
|
+
return N;
|
|
36
|
+
} };
|
|
37
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
function V(l, m, e, a, r, i) {
|
|
41
|
+
return x(), g(a.NumberInput, {
|
|
42
|
+
id: e.labelForId,
|
|
43
|
+
class: "number-input",
|
|
44
|
+
disabled: e.disabled,
|
|
45
|
+
"model-value": e.control.data,
|
|
46
|
+
type: e.type,
|
|
47
|
+
min: a.minParams?.min,
|
|
48
|
+
max: a.maxParams?.max,
|
|
49
|
+
"is-valid": e.isValid,
|
|
50
|
+
compact: "",
|
|
51
|
+
"onUpdate:modelValue": e.changeValue,
|
|
52
|
+
onFocusout: a.onFocusOut
|
|
53
|
+
}, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]);
|
|
54
|
+
}
|
|
55
|
+
const q = /* @__PURE__ */ v(E, [["render", V], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/NumberControlBase.vue"]]);
|
|
56
|
+
export {
|
|
57
|
+
q as N
|
|
58
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as p } from "./arrow-dropdown-
|
|
1
|
+
import { A as p } from "./arrow-dropdown-eS-nVNCv.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { resolveComponent as
|
|
4
|
-
import { _ as V } from "./SectionHeading.
|
|
5
|
-
const c = 200, g = 50, v = 0.1,
|
|
3
|
+
import { resolveComponent as f, createElementBlock as o, openBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as h, withModifiers as r, createVNode as m } from "vue";
|
|
4
|
+
import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
|
+
const c = 200, g = 50, v = 0.1, I = 1, E = {
|
|
6
6
|
name: "NumberInput",
|
|
7
7
|
components: {
|
|
8
8
|
ArrowIcon: p
|
|
@@ -77,7 +77,7 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
77
77
|
return this.type === "integer";
|
|
78
78
|
},
|
|
79
79
|
stepSize() {
|
|
80
|
-
return this.isInteger ?
|
|
80
|
+
return this.isInteger ? I : v;
|
|
81
81
|
},
|
|
82
82
|
inputClassList() {
|
|
83
83
|
let t = this.inputClasses;
|
|
@@ -119,8 +119,8 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
119
119
|
this.localValue = this.getParsedValue(), this.getInputRef().valueAsNumber = this.localValue;
|
|
120
120
|
},
|
|
121
121
|
validate(t) {
|
|
122
|
-
let e = !0,
|
|
123
|
-
return t = typeof t > "u" ? this.getParsedValue() : this.parseValue(t), typeof t != "number" || isNaN(t) ? (e = !1,
|
|
122
|
+
let e = !0, s;
|
|
123
|
+
return t = typeof t > "u" ? this.getParsedValue() : this.parseValue(t), typeof t != "number" || isNaN(t) ? (e = !1, s = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, s = "Current value is outside allowed range."), { isValid: e, errorMessage: s };
|
|
124
124
|
},
|
|
125
125
|
/**
|
|
126
126
|
* Change value updates the actual value of the input field if a valid new value
|
|
@@ -133,8 +133,8 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
133
133
|
changeValue(t) {
|
|
134
134
|
let e = this.getParsedValue();
|
|
135
135
|
this.validate(e).isValid || (e = this.findNearestValidValue(e));
|
|
136
|
-
let
|
|
137
|
-
|
|
136
|
+
let s = e + t;
|
|
137
|
+
s = Math.round(s * 10) / 10, this.validate(s).isValid && this.updateAndEmit({ newValue: s });
|
|
138
138
|
},
|
|
139
139
|
findNearestValidValue(t) {
|
|
140
140
|
return t < this.min ? this.min : t > this.max ? this.max : this.initialValue;
|
|
@@ -155,16 +155,16 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
155
155
|
if (this.disabled)
|
|
156
156
|
return;
|
|
157
157
|
this.spinnerArrowInterval !== null && clearTimeout(this.spinnerArrowInterval), this.spinnerArrowTimeout !== null && clearInterval(this.spinnerArrowTimeout);
|
|
158
|
-
let
|
|
159
|
-
if (e === "decrease" && (
|
|
158
|
+
let s = this.stepSize;
|
|
159
|
+
if (e === "decrease" && (s *= -1), t.type === "mousedown") {
|
|
160
160
|
this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
|
|
161
161
|
this.spinnerArrowInterval = setInterval(() => {
|
|
162
|
-
this.changeValue(
|
|
162
|
+
this.changeValue(s);
|
|
163
163
|
}, g);
|
|
164
164
|
}, c);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
this.clicked && (this.clicked = !1, this.changeValue(
|
|
167
|
+
this.clicked && (this.clicked = !1, this.changeValue(s));
|
|
168
168
|
},
|
|
169
169
|
toggleHover() {
|
|
170
170
|
this.hovered = !this.hovered;
|
|
@@ -174,48 +174,66 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
174
174
|
key: 0,
|
|
175
175
|
class: "invalid-marker"
|
|
176
176
|
};
|
|
177
|
-
function A(t, e,
|
|
178
|
-
const u =
|
|
179
|
-
return
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
177
|
+
function A(t, e, s, w, y, i) {
|
|
178
|
+
const u = f("ArrowIcon");
|
|
179
|
+
return d(), o(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
class: l(["wrapper", { disabled: s.disabled, compact: s.compact }])
|
|
183
|
+
},
|
|
184
|
+
[
|
|
185
|
+
n("input", {
|
|
186
|
+
id: s.id,
|
|
187
|
+
ref: "input",
|
|
188
|
+
name: s.name,
|
|
189
|
+
type: "number",
|
|
190
|
+
role: "spinButton",
|
|
191
|
+
value: i.inputValue,
|
|
192
|
+
min: s.min,
|
|
193
|
+
max: s.max,
|
|
194
|
+
step: i.stepSize,
|
|
195
|
+
class: l(i.inputClassList),
|
|
196
|
+
disabled: s.disabled,
|
|
197
|
+
onInput: e[0] || (e[0] = (a) => i.onInput(a)),
|
|
198
|
+
onBlur: e[1] || (e[1] = (...a) => i.onBlur && i.onBlur(...a)),
|
|
199
|
+
onMouseenter: e[2] || (e[2] = (...a) => i.toggleHover && i.toggleHover(...a)),
|
|
200
|
+
onMouseleave: e[3] || (e[3] = (...a) => i.toggleHover && i.toggleHover(...a))
|
|
201
|
+
}, null, 42, b),
|
|
202
|
+
s.isValid ? h("v-if", !0) : (d(), o("span", N)),
|
|
203
|
+
n(
|
|
204
|
+
"span",
|
|
205
|
+
{
|
|
206
|
+
class: l(["increase", { disabled: s.disabled }]),
|
|
207
|
+
onMousedown: e[4] || (e[4] = r((a) => i.mouseEvent(a, "increase"), ["prevent"])),
|
|
208
|
+
onMouseup: e[5] || (e[5] = r((a) => i.mouseEvent(a, "increase"), ["prevent"])),
|
|
209
|
+
onMouseleave: e[6] || (e[6] = (a) => i.mouseEvent(a, "increase"))
|
|
210
|
+
},
|
|
211
|
+
[
|
|
212
|
+
m(u)
|
|
213
|
+
],
|
|
214
|
+
34
|
|
215
|
+
/* CLASS, NEED_HYDRATION */
|
|
216
|
+
),
|
|
217
|
+
n(
|
|
218
|
+
"span",
|
|
219
|
+
{
|
|
220
|
+
class: l(["decrease", { disabled: s.disabled }]),
|
|
221
|
+
onMousedown: e[7] || (e[7] = r((a) => i.mouseEvent(a, "decrease"), ["prevent"])),
|
|
222
|
+
onMouseup: e[8] || (e[8] = r((a) => i.mouseEvent(a, "decrease"), ["prevent"])),
|
|
223
|
+
onMouseleave: e[9] || (e[9] = (a) => i.mouseEvent(a, "decrease"))
|
|
224
|
+
},
|
|
225
|
+
[
|
|
226
|
+
m(u)
|
|
227
|
+
],
|
|
228
|
+
34
|
|
229
|
+
/* CLASS, NEED_HYDRATION */
|
|
230
|
+
)
|
|
231
|
+
],
|
|
232
|
+
2
|
|
233
|
+
/* CLASS */
|
|
234
|
+
);
|
|
217
235
|
}
|
|
218
|
-
const B = /* @__PURE__ */ V(
|
|
236
|
+
const B = /* @__PURE__ */ V(E, [["render", A], ["__scopeId", "data-v-8eef6a7b"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/NumberInput/NumberInput.vue"]]);
|
|
219
237
|
export {
|
|
220
238
|
B as N
|
|
221
239
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as i, computed as s, createElementBlock as d, openBlock as u, Fragment as p, createCommentVNode as c, createVNode as m } from "vue";
|
|
2
|
+
import { o as b } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { D as f } from "./Dropdown-D49sEHBa.js";
|
|
4
|
+
import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
|
+
const V = /* @__PURE__ */ i({
|
|
6
|
+
__name: "OneOfDropdown",
|
|
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(a, { expose: r }) {
|
|
17
|
+
r();
|
|
18
|
+
const e = a, o = e.control.schema?.oneOf?.map(b) ?? [], n = s({
|
|
19
|
+
get: () => e.control.data ?? "",
|
|
20
|
+
set: e.changeValue
|
|
21
|
+
}), t = { props: e, possibleValues: o, modelValue: n, get Dropdown() {
|
|
22
|
+
return f;
|
|
23
|
+
} };
|
|
24
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
function g(a, r, e, o, n, t) {
|
|
28
|
+
return u(), d(
|
|
29
|
+
p,
|
|
30
|
+
null,
|
|
31
|
+
[
|
|
32
|
+
c(" eslint-disable vue/attribute-hyphenation typescript complains with ':aria-label' instead of ':ariaLabel'"),
|
|
33
|
+
m(o.Dropdown, {
|
|
34
|
+
id: e.labelForId,
|
|
35
|
+
modelValue: o.modelValue,
|
|
36
|
+
"onUpdate:modelValue": r[0] || (r[0] = (l) => o.modelValue = l),
|
|
37
|
+
"possible-values": o.possibleValues,
|
|
38
|
+
ariaLabel: e.control.label,
|
|
39
|
+
disabled: e.disabled,
|
|
40
|
+
compact: ""
|
|
41
|
+
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"])
|
|
42
|
+
],
|
|
43
|
+
2112
|
|
44
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const D = /* @__PURE__ */ _(V, [["render", g], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/OneOfDropdown.vue"]]);
|
|
48
|
+
export {
|
|
49
|
+
D as default
|
|
50
|
+
};
|