@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,21 +1,20 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { C as L } from "./close-
|
|
4
|
-
import { _ as
|
|
1
|
+
import { resolveComponent as f, createElementBlock as h, openBlock as d, withModifiers as r, withKeys as u, normalizeClass as w, renderSlot as E, withDirectives as I, createElementVNode as c, createVNode as m, toDisplayString as S, normalizeStyle as N, Fragment as C, renderList as P, createBlock as D, withCtx as O, createTextVNode as R, vShow as x, defineComponent as A, vModelText as T, toRef as U, computed as F, createCommentVNode as z } from "vue";
|
|
2
|
+
import { u as $ } from "./usePossibleValues-DTVXBGRC.js";
|
|
3
|
+
import { C as L } from "./close-0dYG2oDA.js";
|
|
4
|
+
import { _ as B, C as K, v as j } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { A as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
e = (t = e == null ? void 0 : e.shadowRoot) == null ? void 0 : t.activeElement;
|
|
6
|
+
import { A as q } from "./arrow-dropdown-eS-nVNCv.js";
|
|
7
|
+
import { c as H } from "./createMissingItem-B00Kg95q.js";
|
|
8
|
+
const g = () => {
|
|
9
|
+
let e = document?.activeElement;
|
|
10
|
+
for (; e?.shadowRoot; )
|
|
11
|
+
e = e?.shadowRoot?.activeElement;
|
|
13
12
|
return e;
|
|
14
|
-
},
|
|
13
|
+
}, y = 1, W = 28.5, G = 8, X = {
|
|
15
14
|
name: "Multiselect",
|
|
16
15
|
components: {
|
|
17
|
-
Checkbox:
|
|
18
|
-
DropdownIcon:
|
|
16
|
+
Checkbox: K,
|
|
17
|
+
DropdownIcon: q
|
|
19
18
|
},
|
|
20
19
|
props: {
|
|
21
20
|
/**
|
|
@@ -151,7 +150,7 @@ const y = () => {
|
|
|
151
150
|
},
|
|
152
151
|
optionsHeight() {
|
|
153
152
|
return this.useSpecificOptionsHeight ? {
|
|
154
|
-
"max-height": `${this.sizeVisibleOptions *
|
|
153
|
+
"max-height": `${this.sizeVisibleOptions * W + G}px`
|
|
155
154
|
} : {};
|
|
156
155
|
},
|
|
157
156
|
refocusElementOnClose() {
|
|
@@ -172,17 +171,16 @@ const y = () => {
|
|
|
172
171
|
* @param {Number} changeInd - the positive or negative index shift for the next Element (usually 1 || -1).
|
|
173
172
|
* @returns {Element} - the next option Element in the list of options.
|
|
174
173
|
*/
|
|
175
|
-
getNextElement(e, t =
|
|
174
|
+
getNextElement(e, t = g()) {
|
|
176
175
|
return this.focusOptions[this.focusOptions.indexOf(t) + e] || (e < 0 ? this.focusOptions[this.focusOptions.length - 1] : this.focusOptions[0]);
|
|
177
176
|
},
|
|
178
177
|
onUpdateModelValue(e, t) {
|
|
179
|
-
t ? this.modelValue.indexOf(e) === -1 && this.emitNewSelection([...this.modelValue, e]) : this.emitNewSelection(this.modelValue.filter((
|
|
178
|
+
t ? this.modelValue.indexOf(e) === -1 && this.emitNewSelection([...this.modelValue, e]) : this.emitNewSelection(this.modelValue.filter((s) => s !== e)), this.closeDropdownOnSelection && this.closeOptions();
|
|
180
179
|
},
|
|
181
180
|
toggle() {
|
|
182
181
|
this.collapsed = !this.collapsed, setTimeout(() => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, g);
|
|
182
|
+
this.$refs.toggle?.focus();
|
|
183
|
+
}, y);
|
|
186
184
|
},
|
|
187
185
|
isChecked(e) {
|
|
188
186
|
return this.modelValue.includes(e);
|
|
@@ -197,7 +195,7 @@ const y = () => {
|
|
|
197
195
|
closeOptions(e = !0) {
|
|
198
196
|
this.collapsed = !0, e && setTimeout(() => {
|
|
199
197
|
this.refocusElementOnClose.focus();
|
|
200
|
-
},
|
|
198
|
+
}, y);
|
|
201
199
|
},
|
|
202
200
|
/**
|
|
203
201
|
* Handle closing the options if necessary and stopping the event if so.
|
|
@@ -210,7 +208,7 @@ const y = () => {
|
|
|
210
208
|
},
|
|
211
209
|
/* Handle arrow key "up" events. */
|
|
212
210
|
onUp() {
|
|
213
|
-
const e =
|
|
211
|
+
const e = g();
|
|
214
212
|
e !== this.$refs.toggle && this.getNextElement(-1, e).focus();
|
|
215
213
|
},
|
|
216
214
|
/* Handle arrow key "down" events. */
|
|
@@ -223,8 +221,8 @@ const y = () => {
|
|
|
223
221
|
*/
|
|
224
222
|
onFocusOut() {
|
|
225
223
|
setTimeout(() => {
|
|
226
|
-
this.focusElements.includes(
|
|
227
|
-
},
|
|
224
|
+
this.focusElements.includes(g()) || (this.closeOptions(!1), this.useCustomListBox && this.$emit("focusOutside"));
|
|
225
|
+
}, y);
|
|
228
226
|
},
|
|
229
227
|
/*
|
|
230
228
|
* Manually prevents default event bubbling and propagation for mousedown which can fire blur events that
|
|
@@ -245,63 +243,86 @@ const y = () => {
|
|
|
245
243
|
}
|
|
246
244
|
}
|
|
247
245
|
}, J = { key: 1 }, Q = ["tabindex"];
|
|
248
|
-
function Y(e, t,
|
|
249
|
-
const
|
|
250
|
-
return d(),
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
"multiselect",
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
246
|
+
function Y(e, t, s, n, p, o) {
|
|
247
|
+
const a = f("DropdownIcon"), b = f("Checkbox");
|
|
248
|
+
return d(), h(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
ref: "multiselect",
|
|
252
|
+
class: w([
|
|
253
|
+
"multiselect",
|
|
254
|
+
{ collapsed: p.collapsed, invalid: !s.isValid, compact: s.compact, disabled: s.disabled }
|
|
255
|
+
]),
|
|
256
|
+
onKeydown: [
|
|
257
|
+
t[2] || (t[2] = u((...l) => o.closeOptionsAndStop && o.closeOptionsAndStop(...l), ["esc"])),
|
|
258
|
+
t[3] || (t[3] = u(r((...l) => o.onUp && o.onUp(...l), ["stop", "prevent"]), ["up"])),
|
|
259
|
+
t[4] || (t[4] = u(r((...l) => o.onDown && o.onDown(...l), ["stop", "prevent"]), ["down"]))
|
|
260
|
+
],
|
|
261
|
+
onFocusout: t[5] || (t[5] = r((...l) => o.onFocusOut && o.onFocusOut(...l), ["stop"])),
|
|
262
|
+
onMousedown: t[6] || (t[6] = (...l) => o.onMousedown && o.onMousedown(...l))
|
|
263
|
+
},
|
|
264
|
+
[
|
|
265
|
+
s.useCustomListBox ? E(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), h("div", J, [
|
|
266
|
+
c("div", {
|
|
267
|
+
ref: "toggle",
|
|
268
|
+
role: "button",
|
|
269
|
+
tabindex: s.disabled ? -1 : 0,
|
|
270
|
+
class: w({ placeholder: !s.modelValue.length }),
|
|
271
|
+
onClick: t[0] || (t[0] = (...l) => o.toggle && o.toggle(...l)),
|
|
272
|
+
onKeydown: t[1] || (t[1] = u(r((...l) => o.toggle && o.toggle(...l), ["prevent"]), ["space"]))
|
|
273
|
+
}, S(o.summary), 43, Q),
|
|
274
|
+
m(a, { class: "icon" })
|
|
275
|
+
])),
|
|
276
|
+
I(c(
|
|
277
|
+
"div",
|
|
278
|
+
{
|
|
279
|
+
class: "options",
|
|
280
|
+
style: N(o.optionsHeight)
|
|
281
|
+
},
|
|
282
|
+
[
|
|
283
|
+
(d(!0), h(
|
|
284
|
+
C,
|
|
285
|
+
null,
|
|
286
|
+
P(s.possibleValues, (l, i) => (d(), D(b, {
|
|
287
|
+
ref_for: !0,
|
|
288
|
+
ref: "option",
|
|
289
|
+
key: `multiselect-${l.id}`,
|
|
290
|
+
"data-index": i,
|
|
291
|
+
"model-value": o.isChecked(l.id),
|
|
292
|
+
disabled: l.disabled,
|
|
293
|
+
class: "boxes",
|
|
294
|
+
"onUpdate:modelValue": (V) => o.onUpdateModelValue(l.id, V)
|
|
295
|
+
}, {
|
|
296
|
+
default: O(() => [
|
|
297
|
+
R(
|
|
298
|
+
S(l.text),
|
|
299
|
+
1
|
|
300
|
+
/* TEXT */
|
|
301
|
+
)
|
|
302
|
+
]),
|
|
303
|
+
_: 2
|
|
304
|
+
/* DYNAMIC */
|
|
305
|
+
}, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))),
|
|
306
|
+
128
|
|
307
|
+
/* KEYED_FRAGMENT */
|
|
308
|
+
)),
|
|
309
|
+
E(e.$slots, "selectAction", {}, void 0, !0)
|
|
310
|
+
],
|
|
311
|
+
4
|
|
312
|
+
/* STYLE */
|
|
313
|
+
), [
|
|
314
|
+
[x, o.showOptions]
|
|
315
|
+
])
|
|
260
316
|
],
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
o.useCustomListBox ? B(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), f("div", J, [
|
|
265
|
-
c("div", {
|
|
266
|
-
ref: "toggle",
|
|
267
|
-
role: "button",
|
|
268
|
-
tabindex: o.disabled ? -1 : 0,
|
|
269
|
-
class: w({ placeholder: !o.modelValue.length }),
|
|
270
|
-
onClick: t[0] || (t[0] = (...l) => s.toggle && s.toggle(...l)),
|
|
271
|
-
onKeydown: t[1] || (t[1] = r(a((...l) => s.toggle && s.toggle(...l), ["prevent"]), ["space"]))
|
|
272
|
-
}, I(s.summary), 43, Q),
|
|
273
|
-
m(p, { class: "icon" })
|
|
274
|
-
])),
|
|
275
|
-
S(c("div", {
|
|
276
|
-
class: "options",
|
|
277
|
-
style: A(s.optionsHeight)
|
|
278
|
-
}, [
|
|
279
|
-
(d(!0), f(D, null, k(o.possibleValues, (l, i) => (d(), C(u, {
|
|
280
|
-
ref_for: !0,
|
|
281
|
-
ref: "option",
|
|
282
|
-
key: `multiselect-${l.id}`,
|
|
283
|
-
"data-index": i,
|
|
284
|
-
"model-value": s.isChecked(l.id),
|
|
285
|
-
disabled: l.disabled,
|
|
286
|
-
class: "boxes",
|
|
287
|
-
"onUpdate:modelValue": (V) => s.onUpdateModelValue(l.id, V)
|
|
288
|
-
}, {
|
|
289
|
-
default: O(() => [
|
|
290
|
-
$(I(l.text), 1)
|
|
291
|
-
]),
|
|
292
|
-
_: 2
|
|
293
|
-
}, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))), 128)),
|
|
294
|
-
B(e.$slots, "selectAction", {}, void 0, !0)
|
|
295
|
-
], 4), [
|
|
296
|
-
[P, s.showOptions]
|
|
297
|
-
])
|
|
298
|
-
], 34);
|
|
317
|
+
34
|
|
318
|
+
/* CLASS, NEED_HYDRATION */
|
|
319
|
+
);
|
|
299
320
|
}
|
|
300
|
-
const Z = /* @__PURE__ */
|
|
321
|
+
const Z = /* @__PURE__ */ B(X, [["render", Y], ["__scopeId", "data-v-d8f6e694"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/Multiselect/Multiselect.vue"]]), v = "draft-id-combobox-preview-item", _ = A({
|
|
301
322
|
name: "ComboBox",
|
|
302
323
|
components: {
|
|
303
324
|
Multiselect: Z,
|
|
304
|
-
FunctionButton:
|
|
325
|
+
FunctionButton: j,
|
|
305
326
|
CloseIcon: L
|
|
306
327
|
},
|
|
307
328
|
props: {
|
|
@@ -395,9 +416,9 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
|
|
|
395
416
|
},
|
|
396
417
|
searchResults() {
|
|
397
418
|
const e = this.allPossibleItems.some(
|
|
398
|
-
({ id:
|
|
419
|
+
({ id: s, text: n }) => s === this.trimmedSearchValue || n === this.trimmedSearchValue
|
|
399
420
|
), t = this.allPossibleItems.filter(
|
|
400
|
-
({ id:
|
|
421
|
+
({ id: s, text: n }) => n.toLowerCase().includes(this.trimmedLowerCasedSearchValue) || s === this.trimmedSearchValue
|
|
401
422
|
);
|
|
402
423
|
return this.allowNewValues && !e && !this.isSearchEmpty ? [
|
|
403
424
|
{ id: v, text: `${this.trimmedSearchValue} (new item)` },
|
|
@@ -412,7 +433,7 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
|
|
|
412
433
|
},
|
|
413
434
|
selectedValues() {
|
|
414
435
|
return this.modelValue.map(
|
|
415
|
-
(e) => this.allPossibleItems.find((t) => e === t.id) ||
|
|
436
|
+
(e) => this.allPossibleItems.find((t) => e === t.id) || H(e)
|
|
416
437
|
);
|
|
417
438
|
},
|
|
418
439
|
maxSizeVisibleOptions() {
|
|
@@ -438,8 +459,7 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
|
|
|
438
459
|
this.$refs.combobox.onDown();
|
|
439
460
|
},
|
|
440
461
|
onEnter() {
|
|
441
|
-
|
|
442
|
-
this.isSearchEmpty || typeof ((e = this.searchResults[0]) == null ? void 0 : e.id) > "u" || this.modelValue.includes(this.searchResults[0].id) || (this.updateSelectedIds([...this.modelValue, this.searchResults[0].id]), this.searchValue = "");
|
|
462
|
+
this.isSearchEmpty || typeof this.searchResults[0]?.id > "u" || this.modelValue.includes(this.searchResults[0].id) || (this.updateSelectedIds([...this.modelValue, this.searchResults[0].id]), this.searchValue = "");
|
|
443
463
|
},
|
|
444
464
|
onBackspace() {
|
|
445
465
|
this.searchValue || this.emitNewSelection(this.modelValue.slice(0, -1));
|
|
@@ -458,12 +478,12 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
|
|
|
458
478
|
this.emitNewSelection(e);
|
|
459
479
|
return;
|
|
460
480
|
}
|
|
461
|
-
const
|
|
481
|
+
const s = {
|
|
462
482
|
id: this.trimmedSearchValue,
|
|
463
483
|
text: this.trimmedSearchValue
|
|
464
484
|
};
|
|
465
|
-
this.allPossibleItems.push(
|
|
466
|
-
e.map((n) => n === v ?
|
|
485
|
+
this.allPossibleItems.push(s), this.emitNewSelection(
|
|
486
|
+
e.map((n) => n === v ? s.id : n)
|
|
467
487
|
);
|
|
468
488
|
},
|
|
469
489
|
removeTag(e) {
|
|
@@ -489,9 +509,9 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
|
|
|
489
509
|
}
|
|
490
510
|
}
|
|
491
511
|
}), ee = ["tabindex"], te = ["title"], se = ["maxlength", "disabled"], oe = { class: "icon-right" };
|
|
492
|
-
function le(e, t,
|
|
493
|
-
const
|
|
494
|
-
return d(),
|
|
512
|
+
function le(e, t, s, n, p, o) {
|
|
513
|
+
const a = f("CloseIcon"), b = f("FunctionButton"), l = f("Multiselect");
|
|
514
|
+
return d(), D(l, {
|
|
495
515
|
ref: "combobox",
|
|
496
516
|
"model-value": e.modelValue,
|
|
497
517
|
"possible-values": e.searchResults,
|
|
@@ -511,106 +531,152 @@ function le(e, t, o, n, b, s) {
|
|
|
511
531
|
ref: "listBox",
|
|
512
532
|
class: "summary-input-icon-wrapper",
|
|
513
533
|
tabindex: e.disabled ? -1 : 0,
|
|
514
|
-
onKeydown: t[8] || (t[8] = r(
|
|
534
|
+
onKeydown: t[8] || (t[8] = u(r((...i) => e.focusInput && e.focusInput(...i), ["prevent", "self"]), ["enter"]))
|
|
515
535
|
}, [
|
|
516
|
-
c(
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
536
|
+
c(
|
|
537
|
+
"div",
|
|
538
|
+
{
|
|
539
|
+
class: w([
|
|
540
|
+
"summary-input-wrapper",
|
|
541
|
+
{ "with-icon-right": e.hasSelection, compact: e.compact }
|
|
542
|
+
]),
|
|
543
|
+
onClick: t[7] || (t[7] = r((...i) => e.focusInput && e.focusInput(...i), ["stop"]))
|
|
544
|
+
},
|
|
545
|
+
[
|
|
546
|
+
(d(!0), h(
|
|
547
|
+
C,
|
|
548
|
+
null,
|
|
549
|
+
P(e.selectedValues, ({ id: i, text: V, invalid: k }, M) => (d(), h("div", {
|
|
550
|
+
key: `item.id${M}`,
|
|
551
|
+
class: "tag",
|
|
552
|
+
title: V
|
|
553
|
+
}, [
|
|
554
|
+
c(
|
|
555
|
+
"span",
|
|
556
|
+
{
|
|
557
|
+
class: w(["text", { invalid: k }])
|
|
558
|
+
},
|
|
559
|
+
S(V),
|
|
560
|
+
3
|
|
561
|
+
/* TEXT, CLASS */
|
|
562
|
+
),
|
|
563
|
+
m(b, {
|
|
564
|
+
class: "remove-tag-button",
|
|
565
|
+
compact: e.compact,
|
|
566
|
+
disabled: e.disabled,
|
|
567
|
+
onClick: r((re) => e.removeTag(i), ["stop"])
|
|
568
|
+
}, {
|
|
569
|
+
default: O(() => [
|
|
570
|
+
m(a, { class: "remove-tag-button-icon" })
|
|
571
|
+
]),
|
|
572
|
+
_: 2
|
|
573
|
+
/* DYNAMIC */
|
|
574
|
+
}, 1032, ["compact", "disabled", "onClick"])
|
|
575
|
+
], 8, te))),
|
|
576
|
+
128
|
|
577
|
+
/* KEYED_FRAGMENT */
|
|
578
|
+
)),
|
|
579
|
+
I(c("input", {
|
|
580
|
+
ref: "searchInput",
|
|
581
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchValue = i),
|
|
582
|
+
class: "search-input",
|
|
583
|
+
type: "text",
|
|
584
|
+
style: N(e.inputWidth),
|
|
585
|
+
maxlength: e.maxCharactersPerItem,
|
|
586
|
+
disabled: e.disabled,
|
|
587
|
+
onFocus: t[1] || (t[1] = (...i) => e.onInputFocus && e.onInputFocus(...i)),
|
|
588
|
+
onInput: t[2] || (t[2] = (...i) => e.onInput && e.onInput(...i)),
|
|
589
|
+
onKeydown: [
|
|
590
|
+
t[3] || (t[3] = u(r((...i) => e.onEnter && e.onEnter(...i), ["prevent"]), ["enter"])),
|
|
591
|
+
t[4] || (t[4] = u((...i) => e.onBackspace && e.onBackspace(...i), ["backspace"])),
|
|
592
|
+
t[5] || (t[5] = u(r((...i) => e.onDown && e.onDown(...i), ["stop", "prevent"]), ["down"])),
|
|
593
|
+
t[6] || (t[6] = u((...i) => e.closeOptionsAndStop && e.closeOptionsAndStop(...i), ["esc"]))
|
|
594
|
+
]
|
|
595
|
+
}, null, 44, se), [
|
|
596
|
+
[T, e.searchValue]
|
|
597
|
+
])
|
|
598
|
+
],
|
|
599
|
+
2
|
|
600
|
+
/* CLASS */
|
|
601
|
+
),
|
|
602
|
+
I(c(
|
|
603
|
+
"div",
|
|
604
|
+
oe,
|
|
605
|
+
[
|
|
606
|
+
m(b, {
|
|
607
|
+
ref: "removeAllTags",
|
|
608
|
+
class: "remove-all-tags-button",
|
|
533
609
|
compact: e.compact,
|
|
534
610
|
disabled: e.disabled,
|
|
535
|
-
onClick:
|
|
611
|
+
onClick: r(e.removeAllTags, ["stop"])
|
|
536
612
|
}, {
|
|
537
613
|
default: O(() => [
|
|
538
|
-
m(
|
|
614
|
+
m(a)
|
|
539
615
|
]),
|
|
540
|
-
_:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
style: A(e.inputWidth),
|
|
549
|
-
maxlength: e.maxCharactersPerItem,
|
|
550
|
-
disabled: e.disabled,
|
|
551
|
-
onFocus: t[1] || (t[1] = (...i) => e.onInputFocus && e.onInputFocus(...i)),
|
|
552
|
-
onInput: t[2] || (t[2] = (...i) => e.onInput && e.onInput(...i)),
|
|
553
|
-
onKeydown: [
|
|
554
|
-
t[3] || (t[3] = r(a((...i) => e.onEnter && e.onEnter(...i), ["prevent"]), ["enter"])),
|
|
555
|
-
t[4] || (t[4] = r((...i) => e.onBackspace && e.onBackspace(...i), ["backspace"])),
|
|
556
|
-
t[5] || (t[5] = r(a((...i) => e.onDown && e.onDown(...i), ["stop", "prevent"]), ["down"])),
|
|
557
|
-
t[6] || (t[6] = r((...i) => e.closeOptionsAndStop && e.closeOptionsAndStop(...i), ["esc"]))
|
|
558
|
-
]
|
|
559
|
-
}, null, 44, se), [
|
|
560
|
-
[x, e.searchValue]
|
|
561
|
-
])
|
|
562
|
-
], 2),
|
|
563
|
-
S(c("div", oe, [
|
|
564
|
-
m(u, {
|
|
565
|
-
ref: "removeAllTags",
|
|
566
|
-
class: "remove-all-tags-button",
|
|
567
|
-
compact: e.compact,
|
|
568
|
-
disabled: e.disabled,
|
|
569
|
-
onClick: a(e.removeAllTags, ["stop"])
|
|
570
|
-
}, {
|
|
571
|
-
default: O(() => [
|
|
572
|
-
m(p)
|
|
573
|
-
]),
|
|
574
|
-
_: 1
|
|
575
|
-
}, 8, ["compact", "disabled", "onClick"])
|
|
576
|
-
], 512), [
|
|
577
|
-
[P, e.hasSelection]
|
|
616
|
+
_: 1
|
|
617
|
+
/* STABLE */
|
|
618
|
+
}, 8, ["compact", "disabled", "onClick"])
|
|
619
|
+
],
|
|
620
|
+
512
|
|
621
|
+
/* NEED_PATCH */
|
|
622
|
+
), [
|
|
623
|
+
[x, e.hasSelection]
|
|
578
624
|
])
|
|
579
625
|
], 40, ee)
|
|
580
626
|
]),
|
|
581
627
|
_: 1
|
|
628
|
+
/* STABLE */
|
|
582
629
|
}, 8, ["model-value", "possible-values", "size-visible-options", "parent-focus-element", "parent-refocus-element-on-close", "close-dropdown-on-selection", "is-valid", "compact", "disabled", "onFocusOutside", "onUpdate:modelValue"]);
|
|
583
630
|
}
|
|
584
|
-
const ie = /* @__PURE__ */
|
|
631
|
+
const ie = /* @__PURE__ */ B(_, [["render", le], ["__scopeId", "data-v-0f51d071"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/ComboBox/ComboBox.vue"]]), ne = /* @__PURE__ */ A({
|
|
585
632
|
__name: "ComboBoxControl",
|
|
586
633
|
props: {
|
|
587
|
-
control: {},
|
|
588
|
-
handleChange: { type: Function },
|
|
589
|
-
changeValue: { type: Function },
|
|
590
|
-
disabled: { type: Boolean },
|
|
591
|
-
isValid: { type: Boolean },
|
|
592
|
-
onRegisterValidation: { type: Function },
|
|
593
|
-
labelForId: {}
|
|
634
|
+
control: { type: Object, required: !0 },
|
|
635
|
+
handleChange: { type: Function, required: !0 },
|
|
636
|
+
changeValue: { type: Function, required: !0 },
|
|
637
|
+
disabled: { type: Boolean, required: !0 },
|
|
638
|
+
isValid: { type: Boolean, required: !0 },
|
|
639
|
+
onRegisterValidation: { type: Function, required: !0 },
|
|
640
|
+
labelForId: { type: String, required: !0 }
|
|
594
641
|
},
|
|
595
|
-
setup(e) {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
disabled: b.value,
|
|
606
|
-
"possible-values": n.value ? s.control.data.map((u) => ({ id: u, text: u })) : N(o),
|
|
607
|
-
"model-value": s.control.data,
|
|
608
|
-
"is-valid": s.isValid,
|
|
609
|
-
compact: "",
|
|
610
|
-
"onUpdate:modelValue": p[0] || (p[0] = (u) => s.changeValue(u))
|
|
611
|
-
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"]));
|
|
642
|
+
setup(e, { expose: t }) {
|
|
643
|
+
t();
|
|
644
|
+
const s = e, { possibleValues: n } = $(U(s, "control")), p = F(
|
|
645
|
+
() => n.value === null || n.value.length === 0
|
|
646
|
+
), o = F(
|
|
647
|
+
() => s.disabled || p.value
|
|
648
|
+
), a = { props: s, possibleValues: n, noPossibleValuesPresent: p, isDisabled: o, get ComboBox() {
|
|
649
|
+
return ie;
|
|
650
|
+
} };
|
|
651
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
612
652
|
}
|
|
613
|
-
})
|
|
653
|
+
});
|
|
654
|
+
function ae(e, t, s, n, p, o) {
|
|
655
|
+
return d(), h(
|
|
656
|
+
C,
|
|
657
|
+
null,
|
|
658
|
+
[
|
|
659
|
+
z(`
|
|
660
|
+
TODO Enable unsing :allow-new-values="noPossibleValuesPresent"
|
|
661
|
+
(see https://github.com/vuejs/vue/issues/2169)
|
|
662
|
+
`),
|
|
663
|
+
m(n.ComboBox, {
|
|
664
|
+
id: s.labelForId,
|
|
665
|
+
"allow-new-values": n.noPossibleValuesPresent ? "" : !1,
|
|
666
|
+
"aria-label": s.control.label,
|
|
667
|
+
disabled: n.isDisabled,
|
|
668
|
+
"possible-values": n.noPossibleValuesPresent ? s.control.data.map((a) => ({ id: a, text: a })) : n.possibleValues,
|
|
669
|
+
"model-value": s.control.data,
|
|
670
|
+
"is-valid": s.isValid,
|
|
671
|
+
compact: "",
|
|
672
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.changeValue(a))
|
|
673
|
+
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"])
|
|
674
|
+
],
|
|
675
|
+
2112
|
|
676
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
const be = /* @__PURE__ */ B(ne, [["render", ae], ["__scopeId", "data-v-06069c0d"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/ComboBoxControl.vue"]]);
|
|
614
680
|
export {
|
|
615
|
-
|
|
681
|
+
be as default
|
|
616
682
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as n, createBlock as a, openBlock as u } from "vue";
|
|
2
|
+
import { D as i } from "./DateTimeInput-DcwhvMD2.js";
|
|
3
|
+
import { _ as l } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
4
|
+
const d = /* @__PURE__ */ n({
|
|
5
|
+
__name: "DateControl",
|
|
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: t }) {
|
|
16
|
+
t();
|
|
17
|
+
const e = { get DateTimeInput() {
|
|
18
|
+
return i;
|
|
19
|
+
} };
|
|
20
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function s(r, t, e, o, c, p) {
|
|
24
|
+
return u(), a(o.DateTimeInput, {
|
|
25
|
+
id: e.labelForId,
|
|
26
|
+
"two-lines": "",
|
|
27
|
+
"model-value": new Date(e.control.data),
|
|
28
|
+
required: !0,
|
|
29
|
+
"show-time": !1,
|
|
30
|
+
compact: "",
|
|
31
|
+
disabled: e.disabled,
|
|
32
|
+
"onUpdate:modelValue": e.changeValue
|
|
33
|
+
}, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]);
|
|
34
|
+
}
|
|
35
|
+
const b = /* @__PURE__ */ l(d, [["render", s], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/DateControl.vue"]]);
|
|
36
|
+
export {
|
|
37
|
+
b as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as d, computed as i, createBlock as c, openBlock as p } from "vue";
|
|
2
|
+
import { D as f } from "./DateTimeInput-DcwhvMD2.js";
|
|
3
|
+
import { t as m, f as _ } from "./localTimeUtils-CfchSrLG.js";
|
|
4
|
+
import { _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
|
+
const T = /* @__PURE__ */ d({
|
|
6
|
+
__name: "DateTimeControl",
|
|
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: t }) {
|
|
17
|
+
t();
|
|
18
|
+
const o = a, e = i(() => o.control.uischema.options), r = i(
|
|
19
|
+
() => e.value?.minimum ? m(e.value.minimum) : null
|
|
20
|
+
), l = i(
|
|
21
|
+
() => e.value?.maximum ? m(e.value.maximum) : null
|
|
22
|
+
), n = i({
|
|
23
|
+
get: () => m(o.control.data),
|
|
24
|
+
set: (u) => o.changeValue(_(u))
|
|
25
|
+
}), s = { props: o, options: e, minimum: r, maximum: l, modelValue: n, get DateTimeInput() {
|
|
26
|
+
return f;
|
|
27
|
+
} };
|
|
28
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function b(a, t, o, e, r, l) {
|
|
32
|
+
return p(), c(e.DateTimeInput, {
|
|
33
|
+
id: o.labelForId,
|
|
34
|
+
modelValue: e.modelValue,
|
|
35
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.modelValue = n),
|
|
36
|
+
"two-lines": "",
|
|
37
|
+
required: !0,
|
|
38
|
+
"show-time": e.options?.showTime,
|
|
39
|
+
"show-seconds": e.options?.showSeconds,
|
|
40
|
+
"show-milliseconds": e.options?.showMilliseconds,
|
|
41
|
+
timezone: "UTC",
|
|
42
|
+
"date-format": e.options?.dateFormat,
|
|
43
|
+
min: e.minimum,
|
|
44
|
+
max: e.maximum,
|
|
45
|
+
"is-valid": o.isValid,
|
|
46
|
+
compact: "",
|
|
47
|
+
disabled: o.disabled
|
|
48
|
+
}, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
|
|
49
|
+
}
|
|
50
|
+
const C = /* @__PURE__ */ h(T, [["render", b], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/DateTimeControl.vue"]]);
|
|
51
|
+
export {
|
|
52
|
+
C as default
|
|
53
|
+
};
|