@knime/jsonforms 1.6.10 → 1.7.0
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 +12 -0
- package/dist/AnyOfTwinlist-D7gkxtYi.js +22 -0
- package/dist/{BaseButton-DRXubmlD.js → BaseButton-nH3iSIOK.js} +1 -1
- package/dist/{Button-nRJkSaBC.js → Button-DnQZFkaO.js} +2 -2
- package/dist/{Checkbox-bWqzeYko.js → Checkbox-DB9YeQa-.js} +1 -1
- package/dist/{CheckboxControl-B4kwAvLf.js → CheckboxControl-hkHWMBsv.js} +2 -2
- package/dist/{Checkboxes-C0WemzK0.js → Checkboxes-C_qM6Iao.js} +2 -2
- package/dist/{CheckboxesControl-BcBsTMGJ.js → CheckboxesControl-DRNda60A.js} +3 -3
- package/dist/{ComboBoxControl-Dz4VWUbr.js → ComboBoxControl-Dd0UZdMx.js} +77 -89
- package/dist/{DateControl-DvPEzSbD.js → DateControl-BmqofCSf.js} +1 -1
- package/dist/{DateTimeControl-Buq_H47Q.js → DateTimeControl-B7uvqC1s.js} +2 -2
- package/dist/{DateTimeFormatInput-BLX9j412.js → DateTimeFormatInput-CsEAVqAA.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-CQi49UrA.js → DateTimeFormatPickerControl-BK80kZf0.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-BcK2N4NI.js → DateTimeFormatPickerWithTypeControl-CS8APLBp.js} +3 -3
- package/dist/{DateTimeInput-C5Oyw-Bz.js → DateTimeInput-DP2yHD9r.js} +14 -13
- package/dist/{Dropdown-CIDjugP6.js → Dropdown-D8qp_4wZ.js} +30 -29
- package/dist/DropdownControl-B2fs1yBj.js +84 -0
- package/dist/{FunctionButton-6rf73qNS.js → FunctionButton-Bo0NcfGh.js} +2 -2
- package/dist/{HorizontalLayout-Bq5hSQkC.js → HorizontalLayout-Bg5vYcO1.js} +1 -1
- package/dist/{InputField-BZzeUMVs.js → InputField-DRLCzzDf.js} +1 -1
- package/dist/{IntegerControl-DtEJ9jaq.js → IntegerControl-HLRox7w7.js} +1 -1
- package/dist/{IntervalControl-uNaB8SlU.js → IntervalControl-D-xUIRW3.js} +4 -4
- package/dist/LoadingDropdown-DkxltiwQ.js +40 -0
- package/dist/MultimodeTwinlistControl-CV2v4Y5n.js +526 -0
- package/dist/{MultiselectListBox-B0o19vqK.js → MultiselectListBox-BFQxtoyR.js} +1 -1
- package/dist/{NameFilter-C24OdpHy.js → NameFilter-BxfjNVu-.js} +1 -1
- package/dist/{NumberControl-BGSO6wof.js → NumberControl-Df91UAXl.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-B7TqcQCe.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js} +2 -2
- package/dist/{NumberInput-DCbMtXhN.js → NumberInput-BLlTeOig.js} +1 -1
- package/dist/OneOfDropdown-CLPbmMt7.js +34 -0
- package/dist/{RadioControl-1ymKFtE9.js → RadioControl-CDi8WbsE.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CplSbUri.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6clHvd5.js} +3 -3
- package/dist/{RichTextControl-IMoFZ4yN.js → RichTextControl-YMNSyY3O.js} +6 -6
- package/dist/{SectionHeading-C9ojqc26.js → SectionHeading-D8h1zy67.js} +1 -1
- package/dist/{SectionLayout-CG6GUoC4.js → SectionLayout-DBiG5Ubc.js} +3 -3
- package/dist/{SettingsSubPanel-D2qmyQRj.js → SettingsSubPanel--LD_hsgG.js} +2 -2
- package/dist/{SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BKc2bf4r.js → SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js} +439 -442
- package/dist/{SettingsSubPanelLayout-C4jPUZqS.js → SettingsSubPanelLayout-By5U2J68.js} +5 -5
- package/dist/{SimpleButtonControl-CZXA-sOd.js → SimpleButtonControl-B47jBtrM.js} +6 -6
- package/dist/SimpleTwinlistControl-DoRJkKPs.js +22 -0
- package/dist/SingleSelectControl-zE9ck9JX.js +58 -0
- package/dist/SortListControl-C5DXqqPG.js +372 -0
- package/dist/{TextAreaControl-CAj56e3W.js → TextAreaControl-D2-nyO1m.js} +1 -1
- package/dist/{TextControl-_Wx3rzZd.js → TextControl-Ss9_5V2f.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BlZ-3BwP.js → TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js} +4 -4
- package/dist/{TimeControl-B-xivFCg.js → TimeControl-CblSq-0a.js} +2 -2
- package/dist/TwinlistControlBase-Xe8xQAyG.js +40 -0
- package/dist/{TwinlistLoadingInfo-BGRl50bt.js → TwinlistLoadingInfo-BHhpo_7N.js} +12 -11
- package/dist/TypedNameFilter-N2eeG2VM.js +25 -0
- package/dist/{ValueSwitch-ChvWwn2P.js → ValueSwitch-BI5z5U3F.js} +1 -1
- package/dist/{ValueSwitchControl-BIi3Dylq.js → ValueSwitchControl-CixwDXQs.js} +1 -1
- package/dist/{VerticalLayout-fN3TpOhN.js → VerticalLayout-B8RzC8Vj.js} +2 -2
- package/dist/{VerticalLayoutBase-Ci94-Lwd.js → VerticalLayoutBase-Bj_upYbt.js} +1 -1
- package/dist/{ZonedDateTimeControl-Cqki5Y3R.js → ZonedDateTimeControl-CZdpjJEK.js} +4 -4
- package/dist/_baseEach-FP8ISlsz.js +31 -0
- package/dist/_baseIteratee-DhaGkQLM.js +518 -0
- package/dist/_getTag-DiktJuv_.js +132 -0
- package/dist/index-Blg1O3Fz.js +15 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isSymbol-C3_SC0Qp.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +8 -8
- package/dist/{localTimeUtils-xLrZjUnt.js → localTimeUtils-Dp9bEJDh.js} +1 -1
- package/dist/{magic-string.es-lf2rq-mj.js → magic-string.es-CeNBRh1A.js} +1 -1
- package/dist/src/constants/inputFormats.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +24 -589
- package/dist/src/renderers/dropdownRenderer.d.ts +55 -115
- package/dist/src/renderers/fallbackRenderers.d.ts +1 -241
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -1
- package/dist/src/renderers/singleSelectRenderer.d.ts +8 -0
- package/dist/src/renderers/sortListRenderer.d.ts +0 -8
- package/dist/src/renderers/twinlistRenderer.d.ts +1 -1
- package/dist/src/renderers/typedNameFilterRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +7 -12
- package/dist/src/types/provided.d.ts +0 -2
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -86
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -13
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +20 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +4 -4
- package/dist/src/uiComponents/composables/usePossibleValues.d.ts +24 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -99
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +36 -0
- package/dist/src/uiComponents/twinlist/{ColumnFilter.vue.d.ts → TypedNameFilter.vue.d.ts} +1 -1
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +1 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/{svgWithTitle-CS5C7Mz8.js → svgWithTitle-B5FsAPop.js} +1 -1
- package/dist/testUtils/component.d.ts +4 -0
- package/dist/testing.js +80 -63
- package/dist/toString-B9O7P854.js +26 -0
- package/dist/{useBuiltinValidations-yPAysvI4.js → useBuiltinValidations-8VwUv3RT.js} +1 -1
- package/dist/usePossibleValues-CrNcBbpN.js +26 -0
- package/package.json +3 -3
- package/dist/AnyOfTwinlist-D6jRLlC9.js +0 -22
- package/dist/ColumnFilter-BSW3HQiz.js +0 -24
- package/dist/ColumnSelect-BT6NX4nN.js +0 -68
- package/dist/DropdownControl-CRr853C_.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-C56gUC45.js +0 -237
- package/dist/OneOfDropdown-oecnOh5j.js +0 -35
- package/dist/SimpleTwinlistControl-DQeky-AX.js +0 -50
- package/dist/SortListControl-D4yMhrbk.js +0 -366
- package/dist/TwinlistControl-BZaEVT9H.js +0 -554
- package/dist/_baseAssignValue-BPMLYzDH.js +0 -19
- package/dist/_baseEach-B8N_Gx8P.js +0 -31
- package/dist/_baseIsEqual-DmkT9Nkc.js +0 -248
- package/dist/_baseIteratee-DvBmrhnf.js +0 -104
- package/dist/_getTag-DS8v0_uf.js +0 -312
- package/dist/getPossibleValuesFromUiSchema-hQj1TCOR.js +0 -39
- package/dist/index-hm05O8UX.js +0 -16
- package/dist/isSymbol-OFe5xy2f.js +0 -34
- package/dist/src/renderers/columnFilterRenderer.d.ts +0 -1
- package/dist/src/renderers/columnSelectRenderer.d.ts +0 -265
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +0 -26
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +0 -10
- package/dist/toString-DkbNkGT4.js +0 -25
- /package/dist/src/uiComponents/twinlist/{TwinlistControl.vue.d.ts → MultimodeTwinlistControl.vue.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as V, h as j, watch as
|
|
1
|
+
import { defineComponent as Y, ref as V, h as j, watch as S, computed as A, toRefs as G, nextTick as z, resolveComponent as v, openBlock as d, createBlock as O, withCtx as D, createElementVNode as g, normalizeClass as x, normalizeStyle as U, createElementBlock as p, withModifiers as b, renderSlot as k, toDisplayString as I, createCommentVNode as E, withKeys as X, createVNode as B, withDirectives as q, Fragment as C, renderList as M, createTextVNode as Q, vShow as J, pushScopeId as Z, popScopeId as $ } from "vue";
|
|
2
2
|
import { o as ee, t as te, c as w, d as P, i as K, n as se, e as ne, f as ie } from "./index-Bf0xDq3g.js";
|
|
3
3
|
import { A as oe } from "./arrow-dropdown-DjUxzjqC.js";
|
|
4
4
|
import { C as re } from "./close-h7XT0ja0.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { u as le } from "./useSearch-hpyYQ_6y.js";
|
|
7
|
-
import { F as ae } from "./FunctionButton-
|
|
8
|
-
import {
|
|
9
|
-
import { i as ge } from "./
|
|
10
|
-
import { _ as ye } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-
|
|
7
|
+
import { F as ae } from "./FunctionButton-Bo0NcfGh.js";
|
|
8
|
+
import { i as de, a as ue, b as ce, c as he, d as pe, e as fe, f as me } from "./_getTag-DiktJuv_.js";
|
|
9
|
+
import { i as ge } from "./isArray-WzO_os3q.js";
|
|
10
|
+
import { _ as ye } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
11
11
|
const xe = (e) => e.ctrlKey || e.metaKey || e.altKey || e.shiftKey, we = (e, t) => (Array.isArray(t) ? t : [t]).includes(e.key) && !xe(e);
|
|
12
12
|
var Ve = "[object Map]", ve = "[object Set]", be = Object.prototype, Ee = be.hasOwnProperty;
|
|
13
13
|
function Ce(e) {
|
|
@@ -25,7 +25,7 @@ function Ce(e) {
|
|
|
25
25
|
return !1;
|
|
26
26
|
return !0;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Se = /* @__PURE__ */ Y({
|
|
29
29
|
name: "OnClickOutside",
|
|
30
30
|
props: ["as", "options"],
|
|
31
31
|
emits: ["trigger"],
|
|
@@ -39,21 +39,21 @@ const Oe = /* @__PURE__ */ Y({
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
function
|
|
42
|
+
function Oe(e) {
|
|
43
43
|
var t;
|
|
44
44
|
const s = w(e);
|
|
45
45
|
return (t = s == null ? void 0 : s.$el) != null ? t : s;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
function
|
|
47
|
+
const De = ie ? window : void 0;
|
|
48
|
+
function ke(...e) {
|
|
49
49
|
let t, s, o, i;
|
|
50
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, o, i] = e, t =
|
|
50
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, o, i] = e, t = De) : [t, s, o, i] = e, !t)
|
|
51
51
|
return se;
|
|
52
52
|
Array.isArray(s) || (s = [s]), Array.isArray(o) || (o = [o]);
|
|
53
53
|
const n = [], f = () => {
|
|
54
54
|
n.forEach((h) => h()), n.length = 0;
|
|
55
|
-
}, r = (h, a, m, l) => (h.addEventListener(a, m, l), () => h.removeEventListener(a, m, l)), c =
|
|
56
|
-
() => [
|
|
55
|
+
}, r = (h, a, m, l) => (h.addEventListener(a, m, l), () => h.removeEventListener(a, m, l)), c = S(
|
|
56
|
+
() => [Oe(t), w(i)],
|
|
57
57
|
([h, a]) => {
|
|
58
58
|
if (f(), !h)
|
|
59
59
|
return;
|
|
@@ -88,7 +88,7 @@ const T = /* @__PURE__ */ new WeakMap();
|
|
|
88
88
|
function _e(e, t = !1) {
|
|
89
89
|
const s = V(t);
|
|
90
90
|
let o = null, i = "";
|
|
91
|
-
|
|
91
|
+
S(te(e), (r) => {
|
|
92
92
|
const c = _(w(r));
|
|
93
93
|
if (c) {
|
|
94
94
|
const u = c;
|
|
@@ -102,7 +102,7 @@ function _e(e, t = !1) {
|
|
|
102
102
|
});
|
|
103
103
|
const n = () => {
|
|
104
104
|
const r = _(w(e));
|
|
105
|
-
!r || s.value || (K && (o =
|
|
105
|
+
!r || s.value || (K && (o = ke(
|
|
106
106
|
r,
|
|
107
107
|
"touchmove",
|
|
108
108
|
(c) => {
|
|
@@ -131,7 +131,7 @@ function Te() {
|
|
|
131
131
|
return;
|
|
132
132
|
e = !0;
|
|
133
133
|
const i = _e(s, o.value);
|
|
134
|
-
|
|
134
|
+
S(t, (n) => i.value = n);
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
Te();
|
|
@@ -140,7 +140,7 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Me = "Escape", W =
|
|
|
140
140
|
name: "Dropdown",
|
|
141
141
|
components: {
|
|
142
142
|
DropdownIcon: oe,
|
|
143
|
-
OnClickOutside:
|
|
143
|
+
OnClickOutside: Se,
|
|
144
144
|
FunctionButton: ae,
|
|
145
145
|
CloseIcon: re
|
|
146
146
|
},
|
|
@@ -227,7 +227,7 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Me = "Escape", W =
|
|
|
227
227
|
r[c.id] = c.text;
|
|
228
228
|
return r;
|
|
229
229
|
}), n = V(i.value[e.modelValue]);
|
|
230
|
-
|
|
230
|
+
S(
|
|
231
231
|
() => e.modelValue,
|
|
232
232
|
(r) => {
|
|
233
233
|
n.value = i.value[r];
|
|
@@ -437,7 +437,7 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Me = "Escape", W =
|
|
|
437
437
|
this.searchValue = "", this.getSearchInput().focus();
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
}, Pe = (e) => (Z("data-v-
|
|
440
|
+
}, Pe = (e) => (Z("data-v-18ecd4b1"), e = e(), $(), e), Ne = ["id"], Le = ["id", "aria-label", "aria-labelledby", "aria-expanded"], Re = ["value"], He = {
|
|
441
441
|
key: 1,
|
|
442
442
|
ref: "slotContainer"
|
|
443
443
|
}, Fe = { class: "right" }, We = {
|
|
@@ -449,8 +449,8 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Me = "Escape", W =
|
|
|
449
449
|
}, Ge = /* @__PURE__ */ Pe(() => /* @__PURE__ */ g("span", { class: "group-divider" }, null, -1)), ze = ["id", "title", "aria-selected", "onMouseenter", "onClick"], Ue = ["id", "name", "value"];
|
|
450
450
|
function Xe(e, t, s, o, i, n) {
|
|
451
451
|
const f = v("CloseIcon"), r = v("FunctionButton"), c = v("DropdownIcon"), u = v("OnClickOutside");
|
|
452
|
-
return d(),
|
|
453
|
-
default:
|
|
452
|
+
return d(), O(u, { onTrigger: n.closeDropdown }, {
|
|
453
|
+
default: D(() => {
|
|
454
454
|
var h;
|
|
455
455
|
return [
|
|
456
456
|
g("div", {
|
|
@@ -500,7 +500,7 @@ function Xe(e, t, s, o, i, n) {
|
|
|
500
500
|
}, ["stop"])),
|
|
501
501
|
onInput: t[1] || (t[1] = (a) => n.handleSearch(a.target.value))
|
|
502
502
|
}, null, 40, Re)) : n.hasOptionTemplate ? (d(), p("div", He, [
|
|
503
|
-
|
|
503
|
+
k(e.$slots, "option", {
|
|
504
504
|
slotData: (h = n.selectedOption) == null ? void 0 : h.slotData,
|
|
505
505
|
isMissing: n.isMissing,
|
|
506
506
|
selectedValue: s.modelValue,
|
|
@@ -512,9 +512,9 @@ function Xe(e, t, s, o, i, n) {
|
|
|
512
512
|
}, I(n.displayText), 513)),
|
|
513
513
|
g("div", Fe, [
|
|
514
514
|
n.hasRightIcon ? (d(), p("div", We, [
|
|
515
|
-
|
|
515
|
+
k(e.$slots, "icon-right")
|
|
516
516
|
])) : E("", !0),
|
|
517
|
-
i.isExpanded && n.nonEmptySearchValue ? (d(),
|
|
517
|
+
i.isExpanded && n.nonEmptySearchValue ? (d(), O(r, {
|
|
518
518
|
key: 1,
|
|
519
519
|
ref: "closeButton",
|
|
520
520
|
title: "Close",
|
|
@@ -525,12 +525,12 @@ function Xe(e, t, s, o, i, n) {
|
|
|
525
525
|
}, ["stop"]), ["enter"])),
|
|
526
526
|
onClick: b(n.handleResetInput, ["stop"])
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
528
|
+
default: D(() => [
|
|
529
529
|
B(f, { class: "icon" })
|
|
530
530
|
]),
|
|
531
531
|
_: 1
|
|
532
532
|
}, 8, ["compact", "onClick"])) : E("", !0),
|
|
533
|
-
!i.isExpanded || !n.nonEmptySearchValue ? (d(),
|
|
533
|
+
!i.isExpanded || !n.nonEmptySearchValue ? (d(), O(r, {
|
|
534
534
|
key: 2,
|
|
535
535
|
class: "button",
|
|
536
536
|
compact: s.compact,
|
|
@@ -539,7 +539,7 @@ function Xe(e, t, s, o, i, n) {
|
|
|
539
539
|
tabindex: i.isExpanded ? 0 : -1,
|
|
540
540
|
onClick: b(n.toggleExpanded, ["stop"])
|
|
541
541
|
}, {
|
|
542
|
-
default:
|
|
542
|
+
default: D(() => [
|
|
543
543
|
B(c, {
|
|
544
544
|
class: x(["dropdown-icon", "icon"])
|
|
545
545
|
})
|
|
@@ -569,13 +569,14 @@ function Xe(e, t, s, o, i, n) {
|
|
|
569
569
|
focused: n.isCurrentValue(l.id),
|
|
570
570
|
noselect: !0,
|
|
571
571
|
empty: l.text.trim() === "",
|
|
572
|
-
"has-option-template": n.hasOptionTemplate
|
|
572
|
+
"has-option-template": n.hasOptionTemplate,
|
|
573
|
+
special: l.isSpecial
|
|
573
574
|
}),
|
|
574
575
|
"aria-selected": n.isCurrentValue(l.id),
|
|
575
576
|
onMouseenter: (y) => n.updateCandidate(l.id),
|
|
576
577
|
onClick: (y) => n.emitAndClose(l.id)
|
|
577
578
|
}, [
|
|
578
|
-
n.hasOptionTemplate ?
|
|
579
|
+
n.hasOptionTemplate ? k(e.$slots, "option", {
|
|
579
580
|
key: 0,
|
|
580
581
|
slotData: l.slotData,
|
|
581
582
|
expanded: !0
|
|
@@ -599,7 +600,7 @@ function Xe(e, t, s, o, i, n) {
|
|
|
599
600
|
_: 3
|
|
600
601
|
}, 8, ["onTrigger"]);
|
|
601
602
|
}
|
|
602
|
-
const ot = /* @__PURE__ */ ye(Ae, [["render", Xe], ["__scopeId", "data-v-
|
|
603
|
+
const ot = /* @__PURE__ */ ye(Ae, [["render", Xe], ["__scopeId", "data-v-18ecd4b1"]]);
|
|
603
604
|
export {
|
|
604
605
|
ot as D
|
|
605
606
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as C, ref as c, toRef as k, computed as p, openBlock as s, createBlock as i, withCtx as l, unref as a, normalizeProps as y, mergeProps as L, createCommentVNode as m, createVNode as w, renderSlot as b } from "vue";
|
|
2
|
+
import { L as F, E as D } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
3
|
+
import { u as E } from "./useHideOnNull-CCfNP3O7.js";
|
|
4
|
+
import { u as N } from "./usePossibleValues-CrNcBbpN.js";
|
|
5
|
+
import { L as B } from "./LoadingDropdown-DkxltiwQ.js";
|
|
6
|
+
import { C as P } from "./Checkbox-DB9YeQa-.js";
|
|
7
|
+
const I = /* @__PURE__ */ C({
|
|
8
|
+
__name: "DropdownControl",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
labelForId: {},
|
|
15
|
+
isValid: { type: Boolean },
|
|
16
|
+
messages: {},
|
|
17
|
+
onRegisterValidation: { type: Function }
|
|
18
|
+
},
|
|
19
|
+
setup(h) {
|
|
20
|
+
const o = h, r = c(null), { possibleValues: n } = N(k(o, "control")), d = c(o.control.data), f = (e) => e.length > 0 ? e[0].id : null, { showCheckbox: V, showControl: g, checkboxProps: v } = E(
|
|
21
|
+
{
|
|
22
|
+
control: p(() => o.control),
|
|
23
|
+
disabled: p(() => o.disabled),
|
|
24
|
+
controlElement: r
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
setDefault: () => {
|
|
28
|
+
!d.value && n.value ? o.changeValue(
|
|
29
|
+
f(n.value)
|
|
30
|
+
) : o.changeValue(d.value);
|
|
31
|
+
},
|
|
32
|
+
setNull: () => {
|
|
33
|
+
o.changeValue(null);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
return (e, H) => {
|
|
38
|
+
var u;
|
|
39
|
+
return s(), i(F, {
|
|
40
|
+
label: e.control.label,
|
|
41
|
+
"hide-control-header": (u = e.control.uischema.options) == null ? void 0 : u.hideControlHeader
|
|
42
|
+
}, {
|
|
43
|
+
"before-label": l(() => [
|
|
44
|
+
a(V) ? (s(), i(a(P), y(L({ key: 0 }, a(v))), null, 16)) : m("", !0)
|
|
45
|
+
]),
|
|
46
|
+
default: l(({ labelForId: t }) => [
|
|
47
|
+
a(g) ? (s(), i(D, {
|
|
48
|
+
key: 0,
|
|
49
|
+
errors: e.messages.errors
|
|
50
|
+
}, {
|
|
51
|
+
default: l(() => [
|
|
52
|
+
w(B, {
|
|
53
|
+
id: t ?? "",
|
|
54
|
+
ref_key: "controlElement",
|
|
55
|
+
ref: r,
|
|
56
|
+
ariaLabel: e.control.label,
|
|
57
|
+
disabled: e.disabled,
|
|
58
|
+
"model-value": e.control.data ?? "",
|
|
59
|
+
"possible-values": a(n),
|
|
60
|
+
"is-valid": e.isValid,
|
|
61
|
+
compact: "",
|
|
62
|
+
"onUpdate:modelValue": e.changeValue
|
|
63
|
+
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid", "onUpdate:modelValue"])
|
|
64
|
+
]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1032, ["errors"])) : m("", !0)
|
|
67
|
+
]),
|
|
68
|
+
icon: l(() => [
|
|
69
|
+
b(e.$slots, "icon")
|
|
70
|
+
]),
|
|
71
|
+
buttons: l(({ hover: t }) => [
|
|
72
|
+
b(e.$slots, "buttons", {
|
|
73
|
+
hover: t,
|
|
74
|
+
controlHTMLElement: r.value
|
|
75
|
+
})
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["label", "hide-control-header"]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
I as default
|
|
84
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as s } from "./BaseButton-
|
|
1
|
+
import { B as s } from "./BaseButton-nH3iSIOK.js";
|
|
2
2
|
import { resolveComponent as o, openBlock as l, createBlock as r, normalizeClass as i, withCtx as d, renderSlot as c } from "vue";
|
|
3
|
-
import { _ as u } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-
|
|
3
|
+
import { _ as u } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
4
4
|
const f = {
|
|
5
5
|
name: "FunctionButton",
|
|
6
6
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as a, createElementBlock as o, Fragment as s, renderList as n, createBlock as u, unref as c } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { k as m, _ as p } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
3
3
|
const i = { class: "horizontal" }, d = /* @__PURE__ */ l({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { openBlock as s, createElementBlock as l, normalizeClass as r, renderSlot as o, createCommentVNode as u, createElementVNode as d, mergeProps as c, pushScopeId as p, popScopeId as f } from "vue";
|
|
3
|
-
import { _ as m } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-
|
|
3
|
+
import { _ as m } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
4
4
|
const h = {
|
|
5
5
|
name: "InputField",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { openBlock as v, createElementBlock as f, renderSlot as Te, toDisplayString as O, createCommentVNode as B, createElementVNode as c, defineComponent as F, mergeModels as G, useModel as k, computed as y, Fragment as N, createBlock as J, withDirectives as R, createVNode as T, vShow as b, renderList as K, unref as u, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as I, watch as W, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
|
|
2
|
-
import { _ as H, u as Re } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-
|
|
2
|
+
import { _ as H, u as Re } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
3
3
|
import { o as Ae, a as we } from "./index-Bf0xDq3g.js";
|
|
4
4
|
import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue-B-MrqKCT.js";
|
|
5
|
-
import { F as Oe } from "./FunctionButton-
|
|
6
|
-
import { N as q } from "./NumberInput-
|
|
7
|
-
import { V as z } from "./ValueSwitch-
|
|
5
|
+
import { F as Oe } from "./FunctionButton-Bo0NcfGh.js";
|
|
6
|
+
import { N as q } from "./NumberInput-BLlTeOig.js";
|
|
7
|
+
import { V as z } from "./ValueSwitch-BI5z5U3F.js";
|
|
8
8
|
const Ge = {
|
|
9
9
|
name: "Tooltip",
|
|
10
10
|
props: {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as d, computed as l, openBlock as s, createBlock as a, unref as n, mergeProps as u, withCtx as c, createCommentVNode as m } from "vue";
|
|
2
|
+
import { D as b } from "./Dropdown-D8qp_4wZ.js";
|
|
3
|
+
import { L as V } from "./svgWithTitle-B5FsAPop.js";
|
|
4
|
+
import { _ as f } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
5
|
+
const v = /* @__PURE__ */ d({
|
|
6
|
+
__name: "LoadingDropdown",
|
|
7
|
+
props: {
|
|
8
|
+
possibleValues: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
id: {},
|
|
11
|
+
ariaLabel: {},
|
|
12
|
+
disabled: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(r) {
|
|
15
|
+
const o = r, p = l(() => {
|
|
16
|
+
const { possibleValues: e } = o;
|
|
17
|
+
return e === null ? "Loading" : e.length > 0 ? "No value selected" : "No values present";
|
|
18
|
+
}), t = l(() => o.possibleValues === null ? "" : o.modelValue), i = l(
|
|
19
|
+
() => o.disabled || o.possibleValues === null || o.possibleValues.length === 0
|
|
20
|
+
);
|
|
21
|
+
return (e, g) => (s(), a(n(b), u({ ...e.$props, ...e.$attrs }, {
|
|
22
|
+
"model-value": t.value,
|
|
23
|
+
disabled: i.value,
|
|
24
|
+
"possible-values": e.possibleValues ?? [],
|
|
25
|
+
placeholder: p.value,
|
|
26
|
+
compact: ""
|
|
27
|
+
}), {
|
|
28
|
+
"icon-right": c(() => [
|
|
29
|
+
e.possibleValues === null ? (s(), a(n(V), {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "loading-icon"
|
|
32
|
+
})) : m("", !0)
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
|
|
36
|
+
}
|
|
37
|
+
}), D = /* @__PURE__ */ f(v, [["__scopeId", "data-v-cf6ba18c"]]);
|
|
38
|
+
export {
|
|
39
|
+
D as L
|
|
40
|
+
};
|