@knime/scripting-editor 0.0.127 → 0.0.129
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/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
- package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
- package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
- package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
- package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
- package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
- package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
- package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
- package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
- package/dist/CredentialsControl-B6jczlBv.js +33 -0
- package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
- package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
- package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
- package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
- package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
- package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
- package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
- package/dist/DynamicInputControl-W23Zexge.js +6 -0
- package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
- package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
- package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
- package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
- package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
- package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
- package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
- package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
- package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
- package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
- package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.js} +10 -10
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js} +1 -1
- package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
- package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
- package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
- package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
- package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
- package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
- package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
- package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
- package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
- package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
- package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
- package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
- package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
- package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
- package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
- package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
- package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
- package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
- package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
- package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
- package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js +82 -0
- package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
- package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
- package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
- package/dist/collection-BBXRVj4b-DzRZ2FYd-COyFmQqa.js +22 -0
- package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
- package/dist/main.js +9977 -13304
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
- package/dist/src/components/SettingsPage.vue.d.ts +5 -4
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
- package/package.json +3 -3
- package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
- package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
- package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
- package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
- package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
- package/dist/CredentialsControl-CuHgBJQY.js +0 -32
- package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
- package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
- package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
- package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
- package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
- package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
- package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
- package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
- package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
- package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
- package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
- package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
- package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
- package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
- package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
- package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
- package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
- package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
- package/dist/src/lsp/completion.d.ts +0 -7
- package/dist/src/lsp/connection.d.ts +0 -56
- package/dist/src/lsp/diagnostics.d.ts +0 -4
- package/dist/src/lsp/doc-sync.d.ts +0 -5
- package/dist/src/lsp/hover.d.ts +0 -5
- package/dist/src/lsp/knime-io.d.ts +0 -22
- package/dist/src/lsp/mapping-utils.d.ts +0 -8
- package/dist/src/lsp/signature-help.d.ts +0 -5
- package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as m, createElementBlock as d, openBlock as o, createVNode as s, withCtx as r, renderSlot as i, createBlock as h, unref as p } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { P as y, C as f, v, a as b } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
3
|
const x = /* @__PURE__ */ c({
|
|
4
4
|
__name: "SectionLayout",
|
|
5
5
|
props: {
|
|
@@ -7,7 +7,7 @@ const x = /* @__PURE__ */ c({
|
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
9
|
const a = m(!1);
|
|
10
|
-
return (
|
|
10
|
+
return (n, t) => (o(), d("div", {
|
|
11
11
|
class: "section",
|
|
12
12
|
onMouseover: t[0] || (t[0] = (l) => a.value = !0),
|
|
13
13
|
onMouseleave: t[1] || (t[1] = (l) => a.value = !1)
|
|
@@ -16,16 +16,16 @@ const x = /* @__PURE__ */ c({
|
|
|
16
16
|
"title-text": e.layout.uischema.label
|
|
17
17
|
}, {
|
|
18
18
|
"right-buttons": r(() => [
|
|
19
|
-
i(
|
|
19
|
+
i(n.$slots, "buttons", { hover: a.value }, void 0, !0)
|
|
20
20
|
]),
|
|
21
21
|
_: 3
|
|
22
22
|
}, 8, ["title-text"]),
|
|
23
23
|
s(v, {
|
|
24
24
|
elements: e.layout.uischema.elements
|
|
25
25
|
}, {
|
|
26
|
-
default: r(({ element: l, index:
|
|
26
|
+
default: r(({ element: l, index: u }) => [
|
|
27
27
|
(o(), h(p(b), {
|
|
28
|
-
key: `${e.layout.path}-${
|
|
28
|
+
key: `${e.layout.path}-${u}`,
|
|
29
29
|
schema: e.layout.schema,
|
|
30
30
|
uischema: l,
|
|
31
31
|
path: e.layout.path,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as h, computed as u, ref as v, createElementBlock as f, openBlock as r, createVNode as l, withCtx as o, createBlock as y, unref as c, createElementVNode as k, renderSlot as x } from "vue";
|
|
2
|
+
import { P as _, _ as C, v as g, a as B, C as w, p as S } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const $ = { class: "flex-row" }, P = /* @__PURE__ */ h({
|
|
4
|
+
__name: "SettingsSubPanelLayout",
|
|
5
|
+
props: {
|
|
6
|
+
layout: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const i = e, s = u(() => i.layout.uischema.options ?? {}), d = u(() => s.value.setText ?? "Set"), m = u(
|
|
10
|
+
() => s.value.backButtonLabel ?? "Back to node configuration"
|
|
11
|
+
), n = v(!1);
|
|
12
|
+
return (b, a) => (r(), f("div", {
|
|
13
|
+
onMouseover: a[0] || (a[0] = (t) => n.value = !0),
|
|
14
|
+
onMouseleave: a[1] || (a[1] = (t) => n.value = !1)
|
|
15
|
+
}, [
|
|
16
|
+
l(C, {
|
|
17
|
+
"show-back-arrow": "",
|
|
18
|
+
"back-button-label": m.value
|
|
19
|
+
}, {
|
|
20
|
+
"expand-button": o(({ expand: t }) => [
|
|
21
|
+
l(w, {
|
|
22
|
+
"title-text": e.layout.uischema.label
|
|
23
|
+
}, {
|
|
24
|
+
"right-buttons": o(() => [
|
|
25
|
+
k("div", $, [
|
|
26
|
+
x(b.$slots, "buttons", { hover: n.value }, void 0, !0),
|
|
27
|
+
l(c(S), {
|
|
28
|
+
variant: "transparent",
|
|
29
|
+
size: "small",
|
|
30
|
+
label: d.value,
|
|
31
|
+
"trailing-icon": "chevron-right",
|
|
32
|
+
onClick: t
|
|
33
|
+
}, null, 8, ["label", "onClick"])
|
|
34
|
+
])
|
|
35
|
+
]),
|
|
36
|
+
_: 2
|
|
37
|
+
}, 1032, ["title-text"])
|
|
38
|
+
]),
|
|
39
|
+
default: o(() => [
|
|
40
|
+
l(g, {
|
|
41
|
+
elements: e.layout.uischema.elements
|
|
42
|
+
}, {
|
|
43
|
+
default: o(({ element: t, index: p }) => [
|
|
44
|
+
(r(), y(c(B), {
|
|
45
|
+
key: `${e.layout.path}-${p}`,
|
|
46
|
+
schema: e.layout.schema,
|
|
47
|
+
uischema: t,
|
|
48
|
+
path: e.layout.path,
|
|
49
|
+
enabled: e.layout.enabled,
|
|
50
|
+
renderers: e.layout.renderers,
|
|
51
|
+
cells: e.layout.cells
|
|
52
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["elements"])
|
|
56
|
+
]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 8, ["back-button-label"])
|
|
59
|
+
], 32));
|
|
60
|
+
}
|
|
61
|
+
}), E = /* @__PURE__ */ _(P, [["__scopeId", "data-v-915290ff"]]);
|
|
62
|
+
export {
|
|
63
|
+
E as default
|
|
64
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as l, toRef as
|
|
2
|
-
import { t as u } from "./usePossibleValues-
|
|
3
|
-
import { L as c } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as l, toRef as r, createBlock as p, openBlock as s, mergeProps as a, unref as i } from "vue";
|
|
2
|
+
import { t as u } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
|
|
3
|
+
import { L as c } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js";
|
|
4
4
|
const g = /* @__PURE__ */ l({
|
|
5
5
|
__name: "SimpleTwinlistControl",
|
|
6
6
|
props: {
|
|
@@ -8,13 +8,14 @@ const g = /* @__PURE__ */ l({
|
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
12
13
|
onRegisterValidation: { type: Function },
|
|
13
14
|
labelForId: {}
|
|
14
15
|
},
|
|
15
16
|
setup(o) {
|
|
16
|
-
const e = o,
|
|
17
|
-
return (m,
|
|
17
|
+
const e = o, t = r(e, "control"), { possibleValues: n } = u(t);
|
|
18
|
+
return (m, f) => (s(), p(c, a(e, { "possible-values": i(n) }), null, 16, ["possible-values"]));
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
export {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as _, computed as c, toRef as x, createBlock as y, openBlock as V } from "vue";
|
|
2
|
+
import { t as $ } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
|
|
3
|
+
import { L as F } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js";
|
|
4
|
+
const t = "__special__", i = "__regular__", S = /* @__PURE__ */ _({
|
|
5
|
+
__name: "SingleSelectControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
|
+
onRegisterValidation: { type: Function },
|
|
14
|
+
labelForId: {}
|
|
15
|
+
},
|
|
16
|
+
setup(l) {
|
|
17
|
+
const a = l, d = c(
|
|
18
|
+
() => a.control.uischema.options.specialChoices
|
|
19
|
+
), { possibleValues: n } = $(
|
|
20
|
+
x(a, "control")
|
|
21
|
+
), s = (e) => `${t}${e}`, u = (e) => `${i}${e}`, h = ({
|
|
22
|
+
id: e,
|
|
23
|
+
text: o
|
|
24
|
+
}) => ({
|
|
25
|
+
id: s(e),
|
|
26
|
+
text: o,
|
|
27
|
+
isSpecial: !0
|
|
28
|
+
}), C = (e) => ({
|
|
29
|
+
...e,
|
|
30
|
+
id: u(e.id)
|
|
31
|
+
}), r = c(() => n.value === null ? null : d.value.map(h).concat(n.value.map(C))), m = (e) => {
|
|
32
|
+
if (!e.startsWith(i) && !e.startsWith(t))
|
|
33
|
+
throw new Error(`Expected id to start with ${i}`);
|
|
34
|
+
}, b = (e) => e ? (m(e), e.startsWith(t) ? { specialChoice: e.slice(t.length) } : { regularChoice: e.slice(i.length) }) : null, g = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? u(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "", f = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", p = c({
|
|
35
|
+
get: () => {
|
|
36
|
+
const e = g(a.control.data);
|
|
37
|
+
return r.value && !r.value.some((o) => o.id === e) ? f(a.control.data) : e;
|
|
38
|
+
},
|
|
39
|
+
set: (e) => {
|
|
40
|
+
a.changeValue(b(e));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return (e, o) => (V(), y(F, {
|
|
44
|
+
id: l.labelForId,
|
|
45
|
+
modelValue: p.value,
|
|
46
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => p.value = v),
|
|
47
|
+
"possible-values": r.value,
|
|
48
|
+
ariaLabel: l.control.label,
|
|
49
|
+
disabled: l.disabled,
|
|
50
|
+
error: l.error,
|
|
51
|
+
"sub-text": l.subText,
|
|
52
|
+
compact: ""
|
|
53
|
+
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error", "sub-text"]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
S as default
|
|
58
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as f, toRef as
|
|
2
|
-
import { t as S } from "./usePossibleValues-
|
|
3
|
-
import { p as C } from "./StyledListItem-
|
|
4
|
-
import {
|
|
5
|
-
const H = 40,
|
|
1
|
+
import { defineComponent as f, toRef as y, createBlock as p, createCommentVNode as V, unref as o, openBlock as n, resolveComponent as I, createElementBlock as u, normalizeClass as c, createElementVNode as g, normalizeStyle as h, Fragment as x, renderList as v } from "vue";
|
|
2
|
+
import { t as S } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
|
|
3
|
+
import { p as C } from "./StyledListItem--sgmJ3W_-Bo6f-_9B.js";
|
|
4
|
+
import { P as w, o as L } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
5
|
+
const H = 40, T = 38, $ = 36, k = 35, z = {
|
|
6
6
|
name: "ListBox",
|
|
7
7
|
components: {
|
|
8
8
|
StyledListItem: C
|
|
@@ -135,7 +135,7 @@ const H = 40, $ = 38, T = 36, k = 35, z = {
|
|
|
135
135
|
this.setSelected(this.selectableValues[e].id, e), this.$refs.ul.scrollTop = 0;
|
|
136
136
|
},
|
|
137
137
|
handleKeyDown(e) {
|
|
138
|
-
this.disabled || (e.keyCode === H && (this.onArrowDown(), e.preventDefault()), e.keyCode ===
|
|
138
|
+
this.disabled || (e.keyCode === H && (this.onArrowDown(), e.preventDefault()), e.keyCode === T && (this.onArrowUp(), e.preventDefault()), e.keyCode === k && (this.onEndKey(), e.preventDefault()), e.keyCode === $ && (this.onHomeKey(), e.preventDefault()));
|
|
139
139
|
},
|
|
140
140
|
hasSelection() {
|
|
141
141
|
return this.selectedIndex >= 0;
|
|
@@ -176,7 +176,7 @@ function B(e, t, l, a, d, i) {
|
|
|
176
176
|
"aria-activedescendant": i.generateOptionId(i.getCurrentItem()),
|
|
177
177
|
onKeydown: t[0] || (t[0] = (...s) => i.handleKeyDown && i.handleKeyDown(...s))
|
|
178
178
|
}, [
|
|
179
|
-
(n(!0), u(
|
|
179
|
+
(n(!0), u(x, null, v(i.selectableValues, (s, r) => (n(), p(b, {
|
|
180
180
|
id: i.generateOptionId(s),
|
|
181
181
|
key: `listbox-${s.id}`,
|
|
182
182
|
ref_for: !0,
|
|
@@ -201,19 +201,20 @@ function B(e, t, l, a, d, i) {
|
|
|
201
201
|
], 44, A)
|
|
202
202
|
], 2);
|
|
203
203
|
}
|
|
204
|
-
const D = /* @__PURE__ */ w(z, [["render", B], ["__scopeId", "data-v-a437d16b"]]),
|
|
204
|
+
const D = /* @__PURE__ */ w(z, [["render", B], ["__scopeId", "data-v-a437d16b"]]), _ = /* @__PURE__ */ f({
|
|
205
205
|
__name: "SingleSelectListBoxControl",
|
|
206
206
|
props: {
|
|
207
207
|
control: {},
|
|
208
208
|
handleChange: { type: Function },
|
|
209
209
|
changeValue: { type: Function },
|
|
210
210
|
disabled: { type: Boolean },
|
|
211
|
-
|
|
211
|
+
error: { type: Boolean },
|
|
212
|
+
subText: {},
|
|
212
213
|
onRegisterValidation: { type: Function },
|
|
213
214
|
labelForId: {}
|
|
214
215
|
},
|
|
215
216
|
setup(e) {
|
|
216
|
-
const t = e, { possibleValues: l } = S(
|
|
217
|
+
const t = e, { possibleValues: l } = S(y(t, "control"));
|
|
217
218
|
return (a, d) => {
|
|
218
219
|
var i;
|
|
219
220
|
return o(l) ? (n(), p(o(D), {
|
|
@@ -222,14 +223,14 @@ const D = /* @__PURE__ */ w(z, [["render", B], ["__scopeId", "data-v-a437d16b"]]
|
|
|
222
223
|
"possible-values": o(l),
|
|
223
224
|
disabled: e.disabled,
|
|
224
225
|
"model-value": e.control.data,
|
|
225
|
-
"is-valid": e.
|
|
226
|
+
"is-valid": !e.error,
|
|
226
227
|
ariaLabel: e.control.label,
|
|
227
228
|
size: (i = e.control.uischema.options) == null ? void 0 : i.size,
|
|
228
229
|
"onUpdate:modelValue": e.changeValue
|
|
229
|
-
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"])) :
|
|
230
|
+
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"])) : V("", !0);
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
});
|
|
233
234
|
export {
|
|
234
|
-
|
|
235
|
+
_ as default
|
|
235
236
|
};
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
function B(e,
|
|
4
|
-
for (var o = e.length,
|
|
5
|
-
if (
|
|
6
|
-
return
|
|
1
|
+
import { defineComponent as w, computed as i, onMounted as x, watch as V, createBlock as L, openBlock as k, unref as F } from "vue";
|
|
2
|
+
import { t as _, h as A } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
function B(e, t, a, l) {
|
|
4
|
+
for (var o = e.length, r = a + -1; ++r < o; )
|
|
5
|
+
if (t(e[r], r, e))
|
|
6
|
+
return r;
|
|
7
7
|
return -1;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function E(e) {
|
|
10
10
|
return e !== e;
|
|
11
11
|
}
|
|
12
|
-
function N(e,
|
|
13
|
-
for (var l =
|
|
14
|
-
if (e[l] ===
|
|
12
|
+
function N(e, t, a) {
|
|
13
|
+
for (var l = a - 1, o = e.length; ++l < o; )
|
|
14
|
+
if (e[l] === t)
|
|
15
15
|
return l;
|
|
16
16
|
return -1;
|
|
17
17
|
}
|
|
18
|
-
function S(e,
|
|
19
|
-
return
|
|
18
|
+
function S(e, t, a) {
|
|
19
|
+
return t === t ? N(e, t, a) : B(e, E, a);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function T(e, t, a) {
|
|
22
22
|
var l = e == null ? 0 : e.length;
|
|
23
23
|
if (!l)
|
|
24
24
|
return -1;
|
|
25
25
|
var o = 0;
|
|
26
|
-
return S(e,
|
|
26
|
+
return S(e, t, o);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const I = "<any unknown new column>", D = /* @__PURE__ */ w({
|
|
29
29
|
__name: "SortListControl",
|
|
30
30
|
props: {
|
|
31
31
|
control: {},
|
|
32
32
|
handleChange: { type: Function },
|
|
33
33
|
changeValue: { type: Function },
|
|
34
34
|
disabled: { type: Boolean },
|
|
35
|
-
|
|
35
|
+
error: { type: Boolean },
|
|
36
|
+
subText: {},
|
|
36
37
|
onRegisterValidation: { type: Function },
|
|
37
38
|
labelForId: {}
|
|
38
39
|
},
|
|
39
40
|
setup(e) {
|
|
40
|
-
const
|
|
41
|
-
() =>
|
|
41
|
+
const t = e, a = i(() => t.control.data), l = i(
|
|
42
|
+
() => t.control.uischema
|
|
42
43
|
), o = i(
|
|
43
44
|
() => {
|
|
44
45
|
var n;
|
|
45
|
-
return ((n = l.value.options) == null ? void 0 : n.unknownElementId) ??
|
|
46
|
+
return ((n = l.value.options) == null ? void 0 : n.unknownElementId) ?? I;
|
|
46
47
|
}
|
|
47
|
-
),
|
|
48
|
+
), r = i(
|
|
48
49
|
() => {
|
|
49
50
|
var n;
|
|
50
51
|
return ((n = l.value.options) == null ? void 0 : n.unknownElementLabel) ?? "Any unknown column";
|
|
@@ -55,56 +56,57 @@ const U = "<any unknown new column>", K = /* @__PURE__ */ V({
|
|
|
55
56
|
[]
|
|
56
57
|
), p = (n) => {
|
|
57
58
|
var c;
|
|
58
|
-
const
|
|
59
|
+
const u = {
|
|
59
60
|
id: n.id,
|
|
60
61
|
text: n.text,
|
|
61
62
|
...n.special ? { special: !0 } : {}
|
|
62
63
|
};
|
|
63
|
-
return (c = n.type) != null && c.id && (
|
|
64
|
+
return (c = n.type) != null && c.id && (u.accessory = {
|
|
64
65
|
type: "dataType",
|
|
65
66
|
name: n.type.id
|
|
66
|
-
}),
|
|
67
|
+
}), u;
|
|
67
68
|
}, v = i(
|
|
68
69
|
() => s.value.map(p).concat(
|
|
69
70
|
p({
|
|
70
71
|
id: o.value,
|
|
71
|
-
text:
|
|
72
|
+
text: r.value,
|
|
72
73
|
special: !0
|
|
73
74
|
})
|
|
74
75
|
)
|
|
75
76
|
), m = (n) => {
|
|
76
|
-
if (
|
|
77
|
+
if (a.value.length === 0) {
|
|
77
78
|
h();
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
81
|
+
const u = T(a.value, o.value);
|
|
82
|
+
if (u === -1)
|
|
82
83
|
throw new Error(
|
|
83
84
|
`SortList data have to contain the value "${o.value}"`
|
|
84
85
|
);
|
|
85
|
-
const c =
|
|
86
|
-
f.length > 0 &&
|
|
86
|
+
const c = a.value.slice(0, u + 1), y = a.value.slice(u + 1), g = new Set(a.value), f = n.map(({ id: d }) => d).filter((d) => !g.has(d));
|
|
87
|
+
f.length > 0 && t.changeValue(c.concat(f, y));
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
x(() => {
|
|
89
90
|
m(s.value);
|
|
90
|
-
}),
|
|
91
|
+
}), V(() => s.value, m);
|
|
91
92
|
const h = () => {
|
|
92
|
-
|
|
93
|
+
t.changeValue(v.value.map(({ id: n }) => n));
|
|
93
94
|
}, b = (n) => {
|
|
94
|
-
|
|
95
|
+
t.changeValue(n);
|
|
95
96
|
};
|
|
96
|
-
return (n,
|
|
97
|
+
return (n, u) => (k(), L(F(A), {
|
|
97
98
|
id: e.labelForId,
|
|
98
99
|
ariaLabel: e.control.label,
|
|
99
100
|
"possible-values": v.value,
|
|
100
|
-
"model-value":
|
|
101
|
+
"model-value": a.value,
|
|
101
102
|
disabled: e.disabled,
|
|
102
|
-
error:
|
|
103
|
+
error: e.error,
|
|
104
|
+
"sub-text": e.subText,
|
|
103
105
|
"onUpdate:modelValue": b
|
|
104
|
-
}, null, 8, ["id", "ariaLabel", "possible-values", "model-value", "disabled", "error"]));
|
|
106
|
+
}, null, 8, ["id", "ariaLabel", "possible-values", "model-value", "disabled", "error", "sub-text"]));
|
|
105
107
|
}
|
|
106
108
|
});
|
|
107
109
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
I as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
111
|
+
D as default
|
|
110
112
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as f, computed as t, createElementBlock as E, openBlock as C, createVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as t, createElementBlock as E, openBlock as C, createVNode as h, unref as n, withCtx as T, createBlock as F, createCommentVNode as v, mergeProps as _ } from "vue";
|
|
2
|
+
import { t as b, aa as k } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { u as w, g as I } from "./useFileChooserBackend-CLdJ1RU1.js";
|
|
4
|
+
import { u as V, _ as D, D as O } from "./DialogFileExplorer-BmT2YlVn.js";
|
|
5
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const A = { class: "flex-row" }, B = /* @__PURE__ */ f({
|
|
7
7
|
__name: "SingleFileSystemFileChooserControl",
|
|
8
8
|
props: {
|
|
9
9
|
control: {},
|
|
10
10
|
handleChange: { type: Function },
|
|
11
11
|
changeValue: { type: Function },
|
|
12
12
|
disabled: { type: Boolean },
|
|
13
|
-
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
14
15
|
onRegisterValidation: { type: Function },
|
|
15
16
|
labelForId: {},
|
|
16
17
|
backendType: {}
|
|
17
18
|
},
|
|
18
19
|
setup(c) {
|
|
19
|
-
const l = c, a = t(() => l.control.uischema), { sideDrawerValue: p, updateSideDrawerValue:
|
|
20
|
+
const l = c, a = t(() => l.control.uischema), { sideDrawerValue: p, updateSideDrawerValue: r, onApply: i } = V({
|
|
20
21
|
onChange: l.changeValue,
|
|
21
22
|
initialValue: t(() => l.control.data)
|
|
22
|
-
}), { appendedExtension: u, filteredExtensions:
|
|
23
|
+
}), { appendedExtension: u, filteredExtensions: d, isLoaded: m, isWriter: y } = w(a), e = b(
|
|
23
24
|
a,
|
|
24
25
|
"selectionMode",
|
|
25
26
|
"FILE"
|
|
@@ -27,33 +28,34 @@ const T = { class: "flex-row" }, L = /* @__PURE__ */ f({
|
|
|
27
28
|
var o;
|
|
28
29
|
return (o = a.value.options) == null ? void 0 : o.placeholder;
|
|
29
30
|
});
|
|
30
|
-
return (o,
|
|
31
|
-
|
|
31
|
+
return (o, N) => (C(), E("div", A, [
|
|
32
|
+
h(n(k), {
|
|
32
33
|
id: o.labelForId,
|
|
33
34
|
class: "flex-grow",
|
|
34
35
|
disabled: o.disabled,
|
|
35
36
|
"model-value": o.control.data,
|
|
36
37
|
placeholder: s.value,
|
|
37
|
-
error:
|
|
38
|
+
error: o.error,
|
|
39
|
+
"sub-text": o.subText,
|
|
38
40
|
ariaLabel: "File path",
|
|
39
41
|
"onUpdate:modelValue": o.changeValue
|
|
40
|
-
}, null, 8, ["id", "disabled", "model-value", "placeholder", "error", "onUpdate:modelValue"]),
|
|
41
|
-
|
|
42
|
+
}, null, 8, ["id", "disabled", "model-value", "placeholder", "error", "sub-text", "onUpdate:modelValue"]),
|
|
43
|
+
h(D, {
|
|
42
44
|
disabled: o.disabled,
|
|
43
|
-
onApply: n(
|
|
45
|
+
onApply: n(i)
|
|
44
46
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
n(m) ? (C(), F(
|
|
47
|
+
default: T(({ applyAndClose: S, cancel: g }) => [
|
|
48
|
+
n(m) ? (C(), F(O, {
|
|
47
49
|
key: 0,
|
|
48
50
|
"backend-type": o.backendType,
|
|
49
51
|
disabled: o.disabled,
|
|
50
52
|
"initial-value": o.control.data,
|
|
51
53
|
"is-writer": n(y),
|
|
52
|
-
"filtered-extensions": n(
|
|
54
|
+
"filtered-extensions": n(d),
|
|
53
55
|
"appended-extension": n(u),
|
|
54
56
|
"initial-file-path": n(p),
|
|
55
57
|
"selection-mode": n(e),
|
|
56
|
-
onChooseItem: n(
|
|
58
|
+
onChooseItem: n(r),
|
|
57
59
|
onApplyAndClose: S,
|
|
58
60
|
onCancel: g
|
|
59
61
|
}, null, 8, ["backend-type", "disabled", "initial-value", "is-writer", "filtered-extensions", "appended-extension", "initial-file-path", "selection-mode", "onChooseItem", "onApplyAndClose", "onCancel"])) : v("", !0)
|
|
@@ -62,21 +64,22 @@ const T = { class: "flex-row" }, L = /* @__PURE__ */ f({
|
|
|
62
64
|
}, 8, ["disabled", "onApply"])
|
|
63
65
|
]));
|
|
64
66
|
}
|
|
65
|
-
}),
|
|
67
|
+
}), L = /* @__PURE__ */ x(B, [["__scopeId", "data-v-d6b234ad"]]), K = /* @__PURE__ */ f({
|
|
66
68
|
__name: "StringFileChooserControl",
|
|
67
69
|
props: {
|
|
68
70
|
control: {},
|
|
69
71
|
handleChange: { type: Function },
|
|
70
72
|
changeValue: { type: Function },
|
|
71
73
|
disabled: { type: Boolean },
|
|
72
|
-
|
|
74
|
+
error: { type: Boolean },
|
|
75
|
+
subText: {},
|
|
73
76
|
onRegisterValidation: { type: Function },
|
|
74
77
|
labelForId: {}
|
|
75
78
|
},
|
|
76
79
|
setup(c) {
|
|
77
80
|
const l = c, a = t(
|
|
78
81
|
() => l.control.uischema
|
|
79
|
-
), p =
|
|
82
|
+
), p = b(a, "fileSystemId"), r = b(a, "connectedFSOptions"), i = t(() => {
|
|
80
83
|
var e;
|
|
81
84
|
return ((e = a.value.options) == null ? void 0 : e.fileSystem) ?? null;
|
|
82
85
|
}), u = (e) => {
|
|
@@ -94,24 +97,24 @@ const T = { class: "flex-row" }, L = /* @__PURE__ */ f({
|
|
|
94
97
|
default:
|
|
95
98
|
throw new Error(`Unsupported file system: ${e}`);
|
|
96
99
|
}
|
|
97
|
-
},
|
|
100
|
+
}, d = t(() => {
|
|
98
101
|
var o;
|
|
99
|
-
if (
|
|
102
|
+
if (i.value === null)
|
|
100
103
|
return p.value;
|
|
101
|
-
const e = u(
|
|
102
|
-
return
|
|
104
|
+
const e = u(i.value), s = (o = r.value) == null ? void 0 : o.portIndex;
|
|
105
|
+
return I(e, s);
|
|
103
106
|
}), m = t(() => {
|
|
104
|
-
const e =
|
|
107
|
+
const e = i.value === "CONNECTED", s = !!r.value;
|
|
105
108
|
return e && !s;
|
|
106
109
|
}), y = t(
|
|
107
110
|
() => {
|
|
108
111
|
var e;
|
|
109
|
-
return l.disabled || ((e =
|
|
112
|
+
return l.disabled || ((e = r.value) == null ? void 0 : e.fileSystemConnectionMissing) || m.value;
|
|
110
113
|
}
|
|
111
114
|
);
|
|
112
|
-
return (e, s) =>
|
|
115
|
+
return (e, s) => d.value ? (C(), F(L, _({ key: 0 }, e.$props, {
|
|
113
116
|
disabled: y.value,
|
|
114
|
-
"backend-type":
|
|
117
|
+
"backend-type": d.value
|
|
115
118
|
}), null, 16, ["disabled", "backend-type"])) : v("", !0);
|
|
116
119
|
}
|
|
117
120
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as a, mergeProps as c, withModifiers as i, renderSlot as d, createTextVNode as n, toDisplayString as r } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { P as m } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
3
|
const p = {
|
|
4
4
|
name: "StyledListItem",
|
|
5
5
|
props: {
|
package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js}
RENAMED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as F, ref as v, computed as o, createElementBlock as N, openBlock as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as F, ref as v, computed as o, createElementBlock as N, openBlock as T, createElementVNode as r, createVNode as m, unref as b } from "vue";
|
|
2
|
+
import { P as _, e as V } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const x = { class: "team-and-space" }, C = { class: "team" }, S = { class: "space" }, k = /* @__PURE__ */ F({
|
|
4
4
|
__name: "TeamAndSpacesControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
14
15
|
setup(t) {
|
|
15
|
-
const s = t,
|
|
16
|
+
const s = t, u = v(""), l = v(""), h = o(
|
|
16
17
|
() => s.control.uischema
|
|
17
18
|
), c = o(() => h.value.options), i = o(() => {
|
|
18
19
|
var e;
|
|
@@ -20,29 +21,29 @@ const C = { class: "team-and-space" }, T = { class: "team" }, j = { class: "spac
|
|
|
20
21
|
}), p = o(() => {
|
|
21
22
|
var e;
|
|
22
23
|
return ((e = c.value) == null ? void 0 : e.possibleSpaces) ?? [];
|
|
23
|
-
}),
|
|
24
|
+
}), d = o(
|
|
24
25
|
() => {
|
|
25
26
|
var e;
|
|
26
|
-
return ((e = p.value.find(({ id: a }) => a ===
|
|
27
|
+
return ((e = p.value.find(({ id: a }) => a === u.value)) == null ? void 0 : e.spaces) ?? [];
|
|
27
28
|
}
|
|
28
|
-
), f = o(() => !s.control.enabled || i.value.length === 0), g = o(() => !s.control.enabled ||
|
|
29
|
+
), f = o(() => !s.control.enabled || i.value.length === 0), g = o(() => !s.control.enabled || d.value.length === 0), y = () => {
|
|
29
30
|
if (s.control.data) {
|
|
30
31
|
l.value = s.control.data;
|
|
31
32
|
const e = p.value.find(
|
|
32
|
-
({ spaces: a }) => a.some(({ id:
|
|
33
|
+
({ spaces: a }) => a.some(({ id: n }) => n === l.value)
|
|
33
34
|
);
|
|
34
|
-
e && (
|
|
35
|
+
e && (u.value = e.id);
|
|
35
36
|
}
|
|
36
37
|
}, B = () => {
|
|
37
38
|
var e;
|
|
38
|
-
l.value = ((e =
|
|
39
|
+
l.value = ((e = d.value[0]) == null ? void 0 : e.id) ?? "", s.changeValue(l.value);
|
|
39
40
|
};
|
|
40
|
-
return y(), (e, a) => (
|
|
41
|
-
r("div",
|
|
41
|
+
return y(), (e, a) => (T(), N("div", x, [
|
|
42
|
+
r("div", C, [
|
|
42
43
|
m(b(V), {
|
|
43
|
-
modelValue:
|
|
44
|
+
modelValue: u.value,
|
|
44
45
|
"onUpdate:modelValue": [
|
|
45
|
-
a[0] || (a[0] = (
|
|
46
|
+
a[0] || (a[0] = (n) => u.value = n),
|
|
46
47
|
B
|
|
47
48
|
],
|
|
48
49
|
label: "Team",
|
|
@@ -52,23 +53,23 @@ const C = { class: "team-and-space" }, T = { class: "team" }, j = { class: "spac
|
|
|
52
53
|
placeholder: "No team selected"
|
|
53
54
|
}, null, 8, ["modelValue", "disabled", "possible-values"])
|
|
54
55
|
]),
|
|
55
|
-
r("div",
|
|
56
|
+
r("div", S, [
|
|
56
57
|
m(b(V), {
|
|
57
58
|
modelValue: l.value,
|
|
58
59
|
"onUpdate:modelValue": [
|
|
59
|
-
a[1] || (a[1] = (
|
|
60
|
+
a[1] || (a[1] = (n) => l.value = n),
|
|
60
61
|
a[2] || (a[2] = () => t.changeValue(l.value))
|
|
61
62
|
],
|
|
62
63
|
label: "Space",
|
|
63
64
|
"aria-label": "space-id",
|
|
64
65
|
disabled: g.value,
|
|
65
|
-
"possible-values":
|
|
66
|
+
"possible-values": d.value,
|
|
66
67
|
placeholder: "No space selected"
|
|
67
68
|
}, null, 8, ["modelValue", "disabled", "possible-values"])
|
|
68
69
|
])
|
|
69
70
|
]));
|
|
70
71
|
}
|
|
71
|
-
}),
|
|
72
|
+
}), P = /* @__PURE__ */ _(k, [["__scopeId", "data-v-c51d9a0e"]]);
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
P as default
|
|
74
75
|
};
|