@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
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as u, computed as n, createElementBlock as a, openBlock as e, createBlock as d, unref as p, normalizeStyle as v, Fragment as k, renderList as h, createVNode as w } from "vue";
|
|
2
|
+
import { t as b, P as g, R as P } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const f = { class: "empty-state-wrapper" }, C = /* @__PURE__ */ u({
|
|
4
|
+
__name: "ColorPreviewEmptyState",
|
|
5
|
+
setup(l) {
|
|
6
|
+
return (t, s) => (e(), a("div", f, [
|
|
7
|
+
w(p(P), { headline: "No colors" })
|
|
8
|
+
]));
|
|
9
|
+
}
|
|
10
|
+
}), y = /* @__PURE__ */ g(C, [["__scopeId", "data-v-7a09310d"]]), B = { class: "gradient-preview" }, F = /* @__PURE__ */ u({
|
|
11
|
+
__name: "GradientPreview",
|
|
12
|
+
props: {
|
|
13
|
+
gradient: {}
|
|
14
|
+
},
|
|
15
|
+
setup(l) {
|
|
16
|
+
const t = l, s = n(() => t.gradient.colors.length > 0), o = n(() => {
|
|
17
|
+
const r = t.gradient.stops;
|
|
18
|
+
return r === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((c, m) => `${c} ${r[m]}%`).join(", ");
|
|
19
|
+
}), i = n(
|
|
20
|
+
() => `linear-gradient(to right in lab, ${o.value})`
|
|
21
|
+
);
|
|
22
|
+
return (r, c) => (e(), a("div", B, [
|
|
23
|
+
s.value ? (e(), a("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "gradient-bar",
|
|
26
|
+
style: v({ background: i.value })
|
|
27
|
+
}, null, 4)) : (e(), d(y, { key: 1 }))
|
|
28
|
+
]));
|
|
29
|
+
}
|
|
30
|
+
}), x = /* @__PURE__ */ g(F, [["__scopeId", "data-v-8a745225"]]), I = { class: "palette-preview" }, $ = 8, V = /* @__PURE__ */ u({
|
|
31
|
+
__name: "PalettePreview",
|
|
32
|
+
props: {
|
|
33
|
+
palette: {}
|
|
34
|
+
},
|
|
35
|
+
setup(l) {
|
|
36
|
+
const t = l, s = n(() => t.palette.colors.length > 0), o = n(
|
|
37
|
+
() => Math.max(1, Math.min($, t.palette.colors.length))
|
|
38
|
+
), i = n(() => ({
|
|
39
|
+
gridTemplateColumns: `repeat(${o.value}, minmax(0, 1fr))`
|
|
40
|
+
}));
|
|
41
|
+
return (r, c) => (e(), a("div", I, [
|
|
42
|
+
s.value ? (e(), a("div", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "palette-grid",
|
|
45
|
+
style: v(i.value)
|
|
46
|
+
}, [
|
|
47
|
+
(e(!0), a(k, null, h(l.palette.colors, (m, _) => (e(), a("div", {
|
|
48
|
+
key: _,
|
|
49
|
+
class: "color-cell",
|
|
50
|
+
style: v({ background: m })
|
|
51
|
+
}, null, 4))), 128))
|
|
52
|
+
], 4)) : (e(), d(y, {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "empty-state"
|
|
55
|
+
}))
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
}), E = /* @__PURE__ */ g(V, [["__scopeId", "data-v-ad83046f"]]), M = { class: "color-preview" }, j = /* @__PURE__ */ u({
|
|
59
|
+
__name: "ColorPreviewControl",
|
|
60
|
+
props: {
|
|
61
|
+
control: {},
|
|
62
|
+
handleChange: { type: Function },
|
|
63
|
+
changeValue: { type: Function },
|
|
64
|
+
disabled: { type: Boolean },
|
|
65
|
+
labelForId: {},
|
|
66
|
+
error: { type: Boolean },
|
|
67
|
+
subText: {},
|
|
68
|
+
onRegisterValidation: { type: Function }
|
|
69
|
+
},
|
|
70
|
+
setup(l) {
|
|
71
|
+
const t = l, s = n(
|
|
72
|
+
() => t.control.uischema
|
|
73
|
+
), o = b(s, "previewColors", {
|
|
74
|
+
colors: []
|
|
75
|
+
}), i = (r) => !("stops" in r);
|
|
76
|
+
return (r, c) => (e(), a("div", M, [
|
|
77
|
+
i(p(o)) ? (e(), d(E, {
|
|
78
|
+
key: 0,
|
|
79
|
+
palette: p(o)
|
|
80
|
+
}, null, 8, ["palette"])) : (e(), d(x, {
|
|
81
|
+
key: 1,
|
|
82
|
+
gradient: p(o)
|
|
83
|
+
}, null, 8, ["gradient"]))
|
|
84
|
+
]));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
j as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as p, toRef as c, computed as n, createBlock as b, openBlock as m, unref as i } from "vue";
|
|
2
|
+
import { c as v } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { t as V } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
|
|
4
|
+
const g = /* @__PURE__ */ p({
|
|
5
|
+
__name: "ComboBoxControl",
|
|
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(e) {
|
|
17
|
+
const o = e, { possibleValues: l } = V(c(o, "control")), r = n(
|
|
18
|
+
() => l.value === null || l.value.length === 0
|
|
19
|
+
), s = n(
|
|
20
|
+
() => {
|
|
21
|
+
var a, t;
|
|
22
|
+
return ((a = o.control.uischema.providedOptions) == null ? void 0 : a.includes("possibleValues")) || ((t = o.control.uischema.options) == null ? void 0 : t.possibleValues) !== void 0;
|
|
23
|
+
}
|
|
24
|
+
), d = n(
|
|
25
|
+
() => o.disabled || r.value && s.value
|
|
26
|
+
);
|
|
27
|
+
return (a, t) => (m(), b(i(v), {
|
|
28
|
+
id: e.labelForId,
|
|
29
|
+
"model-value": e.control.data,
|
|
30
|
+
"allow-new-values": !s.value,
|
|
31
|
+
ariaLabel: e.control.label,
|
|
32
|
+
disabled: d.value,
|
|
33
|
+
"possible-values": r.value ? e.control.data.map((u) => ({ id: u, text: u })) : i(l),
|
|
34
|
+
error: e.error,
|
|
35
|
+
"sub-text": e.subText,
|
|
36
|
+
"onUpdate:modelValue": e.changeValue
|
|
37
|
+
}, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
g as default
|
|
42
|
+
};
|
package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, computed as o, createBlock as d, openBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as p, computed as o, createBlock as d, openBlock as u, unref as c } from "vue";
|
|
2
|
+
import { j as l, u as m, l as f } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
3
|
const N = /* @__PURE__ */ p({
|
|
4
4
|
__name: "ConfigurationNodeNotSupported",
|
|
5
5
|
props: l(),
|
|
@@ -12,7 +12,7 @@ const N = /* @__PURE__ */ p({
|
|
|
12
12
|
), a = o(() => `Not Supported: ${n.value}`), i = o(
|
|
13
13
|
() => `The node "${n.value}" is not supported in this dialog.`
|
|
14
14
|
);
|
|
15
|
-
return (e, h) => (
|
|
15
|
+
return (e, h) => (u(), d(c(f), {
|
|
16
16
|
headline: a.value,
|
|
17
17
|
description: i.value,
|
|
18
18
|
variant: "error"
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as b, computed as u, createElementBlock as y, openBlock as t, createBlock as l, createCommentVNode as f, unref as a, withCtx as o, createVNode as c } from "vue";
|
|
2
|
+
import { t as k, x as m, _ as C, v, I as P } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const _ = { class: "control-with-sub-parameters" }, $ = /* @__PURE__ */ b({
|
|
5
|
+
__name: "ControlWithSubParameters",
|
|
6
|
+
props: {
|
|
7
|
+
layout: {}
|
|
8
|
+
},
|
|
9
|
+
setup(d) {
|
|
10
|
+
const r = d, n = u(() => r.layout.uischema.control), i = u(() => r.layout.uischema.elements), h = k(
|
|
11
|
+
n,
|
|
12
|
+
"showSubParameters",
|
|
13
|
+
!0
|
|
14
|
+
);
|
|
15
|
+
return (e, g) => (t(), y("div", _, [
|
|
16
|
+
(t(), l(a(m), {
|
|
17
|
+
key: `${e.layout.path}-control`,
|
|
18
|
+
schema: e.layout.schema,
|
|
19
|
+
uischema: n.value,
|
|
20
|
+
path: e.layout.path,
|
|
21
|
+
enabled: e.layout.enabled,
|
|
22
|
+
renderers: e.layout.renderers,
|
|
23
|
+
cells: e.layout.cells
|
|
24
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"])),
|
|
25
|
+
a(h) ? (t(), l(a(C), { key: 0 }, {
|
|
26
|
+
"expand-button": o(({ expand: s }) => [
|
|
27
|
+
c(a(P), {
|
|
28
|
+
class: "settings-button",
|
|
29
|
+
variant: "transparent",
|
|
30
|
+
size: "small",
|
|
31
|
+
"leading-icon": "settings",
|
|
32
|
+
ariaLabel: "Settings",
|
|
33
|
+
disabled: !e.layout.enabled,
|
|
34
|
+
onClick: s
|
|
35
|
+
}, null, 8, ["disabled", "onClick"])
|
|
36
|
+
]),
|
|
37
|
+
default: o(() => [
|
|
38
|
+
c(a(v), {
|
|
39
|
+
class: "sub-parameters",
|
|
40
|
+
elements: i.value
|
|
41
|
+
}, {
|
|
42
|
+
default: o(({ element: s, index: p }) => [
|
|
43
|
+
(t(), l(a(m), {
|
|
44
|
+
key: `${e.layout.path}-${p}`,
|
|
45
|
+
schema: e.layout.schema,
|
|
46
|
+
uischema: s,
|
|
47
|
+
path: e.layout.path,
|
|
48
|
+
enabled: e.layout.enabled,
|
|
49
|
+
renderers: e.layout.renderers,
|
|
50
|
+
cells: e.layout.cells
|
|
51
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["elements"])
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
})) : f("", !0)
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}), N = /* @__PURE__ */ S($, [["__scopeId", "data-v-b614df7f"]]);
|
|
61
|
+
export {
|
|
62
|
+
N as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as r, computed as a, createBlock as l, openBlock as s, unref as i } from "vue";
|
|
2
|
+
import { m as d } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { C as p } from "./CredentialsControlBase-CdNdAngd.js";
|
|
4
|
+
const g = /* @__PURE__ */ r({
|
|
5
|
+
__name: "CredentialsControl",
|
|
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(e) {
|
|
17
|
+
const n = e, { flowSettings: t } = d({
|
|
18
|
+
path: a(() => n.control.path)
|
|
19
|
+
});
|
|
20
|
+
return (o, c) => (s(), l(p, {
|
|
21
|
+
control: o.control,
|
|
22
|
+
data: o.control.data,
|
|
23
|
+
"flow-settings": i(t),
|
|
24
|
+
disabled: o.disabled,
|
|
25
|
+
"label-for-id": o.labelForId,
|
|
26
|
+
error: o.error,
|
|
27
|
+
onChange: o.changeValue
|
|
28
|
+
}, null, 8, ["control", "data", "flow-settings", "disabled", "label-for-id", "error", "onChange"]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
g as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as N, computed as a, watch as H, ref as D, createElementBlock as E, openBlock as n, createBlock as c, createCommentVNode as u, unref as l } from "vue";
|
|
2
|
+
import { t as b, L as I, M as w, N as i } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const $ = ["id"], g = "*****************", O = /* @__PURE__ */ N({
|
|
5
|
+
__name: "CredentialsControlBase",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
data: {},
|
|
9
|
+
flowSettings: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {},
|
|
12
|
+
error: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
emits: ["change"],
|
|
15
|
+
setup(f, { emit: F }) {
|
|
16
|
+
const t = f, r = F, m = () => ({
|
|
17
|
+
password: "",
|
|
18
|
+
secondFactor: "",
|
|
19
|
+
username: ""
|
|
20
|
+
}), o = a(() => t.data ?? m()), _ = (e) => {
|
|
21
|
+
r("change", i(o.value, { username: e }));
|
|
22
|
+
}, C = (e) => {
|
|
23
|
+
r("change", i(o.value, { password: e, isHiddenPassword: !1 }));
|
|
24
|
+
}, y = (e) => {
|
|
25
|
+
r(
|
|
26
|
+
"change",
|
|
27
|
+
i(o.value, { secondFactor: e, isHiddenSecondFactor: !1 })
|
|
28
|
+
);
|
|
29
|
+
}, S = a(() => o.value.isHiddenPassword ? g : o.value.password), k = a(() => o.value.isHiddenSecondFactor ? g : o.value.secondFactor), d = a(() => t.control.uischema), s = a(() => d.value.options ?? {}), P = b(d, "hasUsername", !0), p = b(d, "hasPassword", !0), B = a(
|
|
30
|
+
() => p.value && (s.value.showSecondFactor ?? !1)
|
|
31
|
+
), L = a(
|
|
32
|
+
() => {
|
|
33
|
+
var e;
|
|
34
|
+
return ((e = s.value) == null ? void 0 : e.usernameLabel) ?? "Username";
|
|
35
|
+
}
|
|
36
|
+
), v = a(
|
|
37
|
+
() => {
|
|
38
|
+
var e;
|
|
39
|
+
return ((e = s.value) == null ? void 0 : e.passwordLabel) ?? "Password";
|
|
40
|
+
}
|
|
41
|
+
), h = a(
|
|
42
|
+
() => {
|
|
43
|
+
var e;
|
|
44
|
+
return ((e = s.value) == null ? void 0 : e.secondFactorLabel) ?? "Second authentication factor";
|
|
45
|
+
}
|
|
46
|
+
), U = a(
|
|
47
|
+
() => {
|
|
48
|
+
var e;
|
|
49
|
+
return (e = t.flowSettings) == null ? void 0 : e.controllingFlowVariableName;
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
H(
|
|
53
|
+
() => U.value,
|
|
54
|
+
(e) => e || r("change", m())
|
|
55
|
+
);
|
|
56
|
+
const V = D(null);
|
|
57
|
+
return (e, j) => (n(), E("div", {
|
|
58
|
+
id: e.labelForId ?? void 0,
|
|
59
|
+
ref_key: "controlElement",
|
|
60
|
+
ref: V,
|
|
61
|
+
class: "credentials-input-wrapper"
|
|
62
|
+
}, [
|
|
63
|
+
l(P) ? (n(), c(l(I), {
|
|
64
|
+
key: 0,
|
|
65
|
+
placeholder: L.value,
|
|
66
|
+
"model-value": o.value.username,
|
|
67
|
+
disabled: e.disabled,
|
|
68
|
+
error: e.error,
|
|
69
|
+
"onUpdate:modelValue": _
|
|
70
|
+
}, null, 8, ["placeholder", "model-value", "disabled", "error"])) : u("", !0),
|
|
71
|
+
l(p) ? (n(), c(l(w), {
|
|
72
|
+
key: 1,
|
|
73
|
+
variant: "password",
|
|
74
|
+
placeholder: v.value,
|
|
75
|
+
"toggle-label": v.value,
|
|
76
|
+
"model-value": S.value,
|
|
77
|
+
disabled: e.disabled,
|
|
78
|
+
error: e.error,
|
|
79
|
+
"onUpdate:modelValue": C
|
|
80
|
+
}, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : u("", !0),
|
|
81
|
+
B.value ? (n(), c(l(w), {
|
|
82
|
+
key: 2,
|
|
83
|
+
variant: "key",
|
|
84
|
+
placeholder: h.value,
|
|
85
|
+
"toggle-label": h.value,
|
|
86
|
+
"model-value": k.value,
|
|
87
|
+
disabled: e.disabled,
|
|
88
|
+
error: e.error,
|
|
89
|
+
"onUpdate:modelValue": y
|
|
90
|
+
}, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : u("", !0)
|
|
91
|
+
], 8, $));
|
|
92
|
+
}
|
|
93
|
+
}), G = /* @__PURE__ */ M(O, [["__scopeId", "data-v-b27fc6f2"]]);
|
|
94
|
+
export {
|
|
95
|
+
G as C
|
|
96
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as n, computed as d, createBlock as u, openBlock as i, unref as p } from "vue";
|
|
2
|
+
import { Y as c } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { u as m } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
|
|
4
|
+
import { D as s } from "./classApi-CHpAZrj3-BptMrhKH.js";
|
|
5
|
+
const x = /* @__PURE__ */ n({
|
|
6
|
+
__name: "DateControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(o) {
|
|
18
|
+
const r = o, a = (e) => {
|
|
19
|
+
if (!e)
|
|
20
|
+
return null;
|
|
21
|
+
try {
|
|
22
|
+
return s.PlainDate.from(e);
|
|
23
|
+
} catch {
|
|
24
|
+
return m.fromString(e).date;
|
|
25
|
+
}
|
|
26
|
+
}, t = d(
|
|
27
|
+
() => a(r.control.data)
|
|
28
|
+
), l = (e) => {
|
|
29
|
+
r.changeValue((e == null ? void 0 : e.toString()) ?? "");
|
|
30
|
+
};
|
|
31
|
+
return (e, b) => (i(), u(p(c), {
|
|
32
|
+
id: o.labelForId,
|
|
33
|
+
ariaLabel: r.control.label,
|
|
34
|
+
"model-value": t.value,
|
|
35
|
+
disabled: o.disabled,
|
|
36
|
+
error: o.error,
|
|
37
|
+
"sub-text": o.subText,
|
|
38
|
+
"onUpdate:modelValue": l
|
|
39
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
x as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as V, computed as l, createElementBlock as C, openBlock as m, normalizeClass as D, createVNode as T, createBlock as U, createCommentVNode as B, unref as a } from "vue";
|
|
2
|
+
import { P as F, Y as P, J as k } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { G as L } from "./usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js";
|
|
4
|
+
import { u as i } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
|
|
5
|
+
import { D as _ } from "./classApi-CHpAZrj3-BptMrhKH.js";
|
|
6
|
+
const G = /* @__PURE__ */ V({
|
|
7
|
+
__name: "DateTimeControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function },
|
|
16
|
+
labelForId: {}
|
|
17
|
+
},
|
|
18
|
+
setup(r) {
|
|
19
|
+
const t = r, o = l(() => t.control.uischema.options), n = l(() => {
|
|
20
|
+
var e;
|
|
21
|
+
return ((e = o.value) == null ? void 0 : e.showTime) ?? !0;
|
|
22
|
+
}), s = l(
|
|
23
|
+
() => i.getMaxGranularity(o.value)
|
|
24
|
+
), u = (e) => {
|
|
25
|
+
if (typeof e != "string" || e === "")
|
|
26
|
+
return null;
|
|
27
|
+
try {
|
|
28
|
+
return _.PlainDate.from(e);
|
|
29
|
+
} catch {
|
|
30
|
+
return i.fromString(e).date;
|
|
31
|
+
}
|
|
32
|
+
}, c = l(
|
|
33
|
+
() => {
|
|
34
|
+
var e;
|
|
35
|
+
return u((e = o.value) == null ? void 0 : e.minimum);
|
|
36
|
+
}
|
|
37
|
+
), p = l(
|
|
38
|
+
() => {
|
|
39
|
+
var e;
|
|
40
|
+
return u((e = o.value) == null ? void 0 : e.maximum);
|
|
41
|
+
}
|
|
42
|
+
), {
|
|
43
|
+
datePart: g,
|
|
44
|
+
timePart: b,
|
|
45
|
+
granularity: y,
|
|
46
|
+
onDateChange: v,
|
|
47
|
+
onTimeChange: f,
|
|
48
|
+
onGranularityChange: h
|
|
49
|
+
} = L({
|
|
50
|
+
getDateTime: () => t.control.data,
|
|
51
|
+
commit: (e, d, x) => {
|
|
52
|
+
if (!n.value) {
|
|
53
|
+
t.changeValue(e === null ? "" : e.toString());
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
t.changeValue(i.toString(e, d, x));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return (e, d) => (m(), C("div", {
|
|
60
|
+
class: D(["date-time-row", { "date-only": !n.value }])
|
|
61
|
+
}, [
|
|
62
|
+
T(a(P), {
|
|
63
|
+
id: r.labelForId,
|
|
64
|
+
ariaLabel: `${t.control.label} date`,
|
|
65
|
+
"model-value": a(g),
|
|
66
|
+
disabled: r.disabled,
|
|
67
|
+
error: r.error,
|
|
68
|
+
"sub-text": r.subText,
|
|
69
|
+
"min-date": c.value,
|
|
70
|
+
"max-date": p.value,
|
|
71
|
+
"onUpdate:modelValue": a(v)
|
|
72
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "min-date", "max-date", "onUpdate:modelValue"]),
|
|
73
|
+
n.value ? (m(), U(a(k), {
|
|
74
|
+
key: 0,
|
|
75
|
+
ariaLabel: `${t.control.label} time`,
|
|
76
|
+
"model-value": a(b),
|
|
77
|
+
granularity: a(y),
|
|
78
|
+
"max-granularity": s.value,
|
|
79
|
+
disabled: r.disabled,
|
|
80
|
+
error: r.error,
|
|
81
|
+
"onUpdate:modelValue": a(f),
|
|
82
|
+
"onUpdate:granularity": a(h)
|
|
83
|
+
}, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])) : B("", !0)
|
|
84
|
+
], 2));
|
|
85
|
+
}
|
|
86
|
+
}), N = /* @__PURE__ */ F(G, [["__scopeId", "data-v-e52553e7"]]);
|
|
87
|
+
export {
|
|
88
|
+
N as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a, createBlock as i, openBlock as m, unref as r } from "vue";
|
|
2
|
+
import { t as c, Z as p } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const h = /* @__PURE__ */ s({
|
|
4
|
+
__name: "DateTimeFormatPickerControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const l = e, t = a(
|
|
17
|
+
() => l.control.uischema
|
|
18
|
+
), n = a(() => t.value.options), d = a(() => {
|
|
19
|
+
var o;
|
|
20
|
+
return (o = n.value) == null ? void 0 : o.allowedFormats;
|
|
21
|
+
}), u = c(t, "dateTimeFormats", []);
|
|
22
|
+
return (o, b) => (m(), i(r(p), {
|
|
23
|
+
id: e.labelForId,
|
|
24
|
+
ariaLabel: e.control.label,
|
|
25
|
+
"model-value": l.control.data,
|
|
26
|
+
disabled: e.disabled,
|
|
27
|
+
"allowed-formats": d.value,
|
|
28
|
+
"all-default-formats": r(u) ?? [],
|
|
29
|
+
error: e.error,
|
|
30
|
+
"sub-text": e.subText,
|
|
31
|
+
"onUpdate:modelValue": e.changeValue
|
|
32
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "sub-text", "onUpdate:modelValue"]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
h as default
|
|
37
|
+
};
|