@knime/scripting-editor 0.0.126 → 0.0.128
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-DdmyqOPW.js → AnyOfTwinlist-SXwBBRp2-Bqhgogiq.js} +5 -4
- package/dist/{ArrayLayout-0R2_c1hY.js → ArrayLayout-Dh1QLh8H.js} +41 -41
- package/dist/{ButtonControl-CAZYfYSF.js → ButtonControl-CaaKmrFb.js} +21 -21
- package/dist/CheckboxControl-CbWn843V-BTn1nVWQ.js +40 -0
- package/dist/CheckboxesControl-BiQOMrsp-BCRpKfZV.js +42 -0
- package/dist/CodeEditorControl-BhQdOlWM.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-D4t0Ool5.js → ColorControl-B_mQdOCs-Dl3vNMVD.js} +10 -8
- package/dist/{ColorPreviewControl-CntI0nTL-B4W3C2Y0.js → ColorPreviewControl-BREwhSO9-uTvGtvF_.js} +21 -21
- package/dist/ComboBoxControl-BIZlnizm-7kcBjn_F.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-DlGIHCIw.js → ConfigurationNodeNotSupported-CILWy-1v.js} +1 -1
- package/dist/{ControlWithSubParameters-yO5GSBha.js → ControlWithSubParameters-DNFQ_0Ol.js} +4 -4
- package/dist/CredentialsControl-DYI2eHZH.js +33 -0
- package/dist/CredentialsControlBase-Be_pBbr8.js +96 -0
- package/dist/DateControl-vkwY-8Qy-D35WLbKn.js +44 -0
- package/dist/DateTimeControl-CtXV6_D2-yc6SBo7d.js +89 -0
- package/dist/DateTimeFormatPickerControl-a7MPaNFN-CerJZl-s.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-B9Nu0dh1-B3FsqcQG.js +598 -0
- package/dist/{DialogFileExplorer-LqJqncub.js → DialogFileExplorer-BZuisQeJ.js} +2 -2
- package/dist/{DirtyTrackerRenderer-UW-Cxf7s.js → DirtyTrackerRenderer-qBfv19cz.js} +7 -7
- package/dist/DropdownControl-BUwovb4K-DZFITmfl.js +32 -0
- package/dist/DynamicInputControl-Br_sRCEw.js +6 -0
- package/dist/ExecutorCoresControl-DN-1o1XJ-B6JZf8lR.js +51 -0
- package/dist/ExecutorMemoryControl-UzqzP4hI-DEOR9ioJ.js +44 -0
- package/dist/{FileChooserControl-D3xMMTLF.js → FileChooserControl-UiGh3RA6.js} +4 -3
- package/dist/{FileChooserControlBase-CI3pdTpr.js → FileChooserControlBase-C0jKG7YK.js} +148 -144
- package/dist/{FileChooserControlForMultiFile-DuAaeTcz.js → FileChooserControlForMultiFile-Di4Pk53x.js} +5 -4
- package/dist/FileUploadControl-WC8TFQHe-BuGo0ZRQ.js +545 -0
- package/dist/GridSelectionControl-BgqT1t9d-BRz6UGC9.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-DNqvkBZ6.js → HorizontalLayout-CESRA3YR-DDxfF6ry.js} +7 -7
- package/dist/{IntegerControl-D8OzxbRA-DLAl4Ar6.js → IntegerControl-DKXN0mcE-DGJ3KRkb.js} +5 -4
- package/dist/IntervalControl-BswGPjcV-BmiAjHOy.js +51 -0
- package/dist/{LabeledGroup-CGcLflGw.js → LabeledGroup-5xwthvS8.js} +5 -5
- package/dist/LegacyCredentialsControl-DjJGg7vr.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-B4x8DZjr.js → LinkControl-DTqOfnTg-BA_L4RtV.js} +10 -10
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-DtWE26ZK.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM-RBq7a_S3.js} +5 -5
- package/dist/ManualTwinlistControl-CoZdPu6n-BF9bz65d.js +77 -0
- package/dist/MultiFileChooserControl-BFW6QI_y.js +342 -0
- package/dist/{MultiRuleWrapper-BYA-GGQr.js → MultiRuleWrapper-B2ISI9_F.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-fumwGYev.js → MultiSelectListBoxControl-CjM94miu-DiufrbYU.js} +9 -8
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-BiXMa7PW.js → MultimodeTwinlistControl-NMnPBn6a-DQkdp8td.js} +68 -66
- package/dist/{NameFilter-D1TMJydD-fZcEEzXz.js → NameFilter-DuVJG0SF-DAH98lDD.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-DEvsj1Mn.js → NumberControl-NMJmxuze-Bih_-Og_.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8-BGSxRVVz.js +54 -0
- package/dist/OneOfDropdown-CwJemyYo-Do-MOPV7.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-ChulOTPN.js → RadioButtonsWithDescriptionControl-BK3UCreL-qWSS1DwX.js} +17 -17
- package/dist/RadioControl-ts1-JozG-Bt4Ssbnx.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt-B1RfPe72.js +64 -0
- package/dist/ResourceControlBase-FDiyHyQi-n4PYam8s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-XEpxJaH_.js → RichTextControl-DH6GqUeF-DhVLA7bv.js} +7748 -6742
- package/dist/{SectionLayout-DY27pAtG-D9m5lyoN.js → SectionLayout-Cb3_L9Te-Ch2TL8Ns.js} +5 -5
- package/dist/{SettingsSubPanelLayout-82gMWhpv-CmIBNBVs.js → SettingsSubPanelLayout-DruWJjQA-BPDZqGKD.js} +22 -22
- package/dist/{SimpleTwinlistControl-P4KEYOq0-RZuXJS5p.js → SimpleTwinlistControl-CnBe4qsI-QQXdW90w.js} +7 -6
- package/dist/SingleSelectControl-C4Qzk2Ki-B4KRT-4U.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-CozC-ARB.js → SingleSelectListBoxControl-sLe2Y67h-aYZGPc-_.js} +14 -13
- package/dist/SortListControl-ChpYm3CZ-BHWX9fRm.js +112 -0
- package/dist/{StringFileChooserControl-CbuY9W_N.js → StringFileChooserControl-BGMU3nOp.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-D8iKceFt.js → StyledListItem-BJEJoIzr-5JeRrk8P.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-XXNR9HMn.js → TeamAndSpacesControl-7ZXPUwBb-DdkrLxnT.js} +21 -20
- package/dist/TeamResourceControl-BZDXMRLZ-Moa_pv2o.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-D43BOhiB.js → TextAreaControl-BDGtgWys-B5coKRJL.js} +11 -9
- package/dist/TextControl-8jfyOJKb-BkT4AwNP.js +50876 -0
- package/dist/TimeControl-Dvt5U7xN-CTkb_kae.js +71 -0
- package/dist/TimeframesControl-DcUxC3kX-1e3a-BRE.js +352 -0
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-DoWlznIt.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N-tQDZulBA.js} +16 -13
- package/dist/{TypedStringFilter-ry7fTUTx-BqgMPUbD.js → TypedStringFilter-Cx8OCQcE-Cx82QY6q.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-BQVaMPgo.js → ValueSwitchControl-1ax1yKbk-Dssrj-K0.js} +7 -6
- package/dist/{VennDiagramLayout-Bh7M9sdS.js → VennDiagramLayout-TqRKYgWl.js} +42 -42
- package/dist/{VerticalLayout-Bv-LJOZ0-Bhthjlig.js → VerticalLayout-DnyoqTeh-COL0gWjl.js} +6 -6
- package/dist/ZonedDateTimeControl-mIIRwaHz-BSWCo5dl.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-grENCIdl.js +22 -0
- package/dist/main.js +9985 -13280
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Cf-ZWfup.js → useFileChooserBackend-DeqNZEZE.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-CRO8qQzd.js → usePossibleValues-CtPV4Cjp-B6UlAJ8A.js} +3 -3
- package/package.json +6 -8
- package/dist/CheckboxControl-CS6iXHnF-aIaqHkPz.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-Dfc5NCOp.js +0 -40
- package/dist/CodeEditorControl-BfC_vRfK.js +0 -103
- package/dist/ComboBoxControl-DBYnBkC4-YvQjV2xd.js +0 -40
- package/dist/CredentialsControl-BUdDVnKd.js +0 -32
- package/dist/CredentialsControlBase-CtiUUF6O.js +0 -96
- package/dist/DateControl-Cx_CwvNB-C6ZnNH2a.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BmyUPQid.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-CksyyT9D.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-gb4KLPWO.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-CZ3UBEZH.js +0 -30
- package/dist/DynamicInputControl-BW5MedWv.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-DCluaRJt.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-BVornFOp.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-BV-xemVF.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-B-qEAJYS.js +0 -116
- package/dist/IntervalControl-Drljrv-b-HGlNWiOa.js +0 -751
- package/dist/LegacyCredentialsControl-SuSGcr6Q.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-CZ6mwit-.js +0 -75
- package/dist/MultiFileChooserControl-CnC8Sgqt.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-DCpZfhmB.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-1Z26R3-a.js +0 -34
- package/dist/RadioControl-C73s-icb-BvMjmtnc.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-Cu_jwWBt.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-Dr521i_s.js +0 -183
- package/dist/SingleSelectControl-C_ZKkV5m-DnVAQEBt.js +0 -56
- package/dist/SortListControl-4v3T2j_9-Dd2NciQI.js +0 -110
- package/dist/TeamResourceControl-BFMuyWnk-BjuVm4u6.js +0 -47
- package/dist/TextControl-B0ag-3Pv-CVDIw3MG.js +0 -54656
- package/dist/TimeControl-Bt5OcjBc-Bb-uwA5L.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-BVy_Fjvr.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-BlMPvvjh.js +0 -94
- package/dist/Tooltip-UlemzxdS-CT790DKa.js +0 -24
- package/dist/ValueSwitch-BXaDBm2C-CKjAMq9f.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-CoRMMPNO.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-D-SZhESZ.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.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-C93hA6Y8.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-BV68kR4E.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BCbqJg7j-D2ve7iXH.js} +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as h, computed as u, ref as x, createBlock as D, openBlock as F, unref as I } from "vue";
|
|
2
|
+
import { w as S } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { u as m } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
|
|
4
|
+
import { D as d } from "./classApi-CHpAZrj3-BptMrhKH.js";
|
|
5
|
+
const V = /* @__PURE__ */ h({
|
|
6
|
+
__name: "TimeControl",
|
|
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(a) {
|
|
18
|
+
const r = a, p = u(() => r.control.uischema.options), f = u(
|
|
19
|
+
() => m.getMaxGranularity(p.value)
|
|
20
|
+
), y = (e) => {
|
|
21
|
+
if (!e)
|
|
22
|
+
return null;
|
|
23
|
+
if (/(Z|[+-]\d{2}:?\d{2})$/.test(e))
|
|
24
|
+
try {
|
|
25
|
+
return d.Instant.from(e).toZonedDateTimeISO("UTC").toPlainTime();
|
|
26
|
+
} catch {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
return d.PlainTime.from(e);
|
|
31
|
+
} catch {
|
|
32
|
+
try {
|
|
33
|
+
return d.PlainDateTime.from(e).toPlainTime();
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, g = (e, t) => e === null ? "" : t === "minute" ? e.toString({ smallestUnit: "minute" }) : t === "second" ? e.toString({ smallestUnit: "second" }) : e.toString({ fractionalSecondDigits: 3 }), s = u(
|
|
39
|
+
() => y(r.control.data)
|
|
40
|
+
), l = x(
|
|
41
|
+
m.detectGranularity(r.control.data)
|
|
42
|
+
);
|
|
43
|
+
let o, n, i = !1;
|
|
44
|
+
const b = () => {
|
|
45
|
+
i = !1;
|
|
46
|
+
const e = o === void 0 ? s.value : o, t = n ?? l.value;
|
|
47
|
+
o = void 0, n = void 0, l.value = t, r.changeValue(g(e, t));
|
|
48
|
+
}, c = () => {
|
|
49
|
+
i || (i = !0, queueMicrotask(b));
|
|
50
|
+
}, v = (e) => {
|
|
51
|
+
o = e, c();
|
|
52
|
+
}, T = (e) => {
|
|
53
|
+
n = e, c();
|
|
54
|
+
};
|
|
55
|
+
return (e, t) => (F(), D(I(S), {
|
|
56
|
+
id: a.labelForId,
|
|
57
|
+
"model-value": s.value,
|
|
58
|
+
granularity: l.value,
|
|
59
|
+
ariaLabel: r.control.label,
|
|
60
|
+
"max-granularity": f.value,
|
|
61
|
+
disabled: a.disabled,
|
|
62
|
+
error: a.error,
|
|
63
|
+
"sub-text": a.subText,
|
|
64
|
+
"onUpdate:modelValue": v,
|
|
65
|
+
"onUpdate:granularity": T
|
|
66
|
+
}, null, 8, ["id", "model-value", "granularity", "ariaLabel", "max-granularity", "disabled", "error", "sub-text"]));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
V as default
|
|
71
|
+
};
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { defineComponent as B, createElementBlock as g, openBlock as V, createVNode as d, unref as p, withCtx as I, createElementVNode as m, resolveComponent as N, normalizeClass as h, createCommentVNode as E, withModifiers as v } from "vue";
|
|
2
|
+
import { E as w, t as x } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
const M = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
stroke: "#000",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
8
|
+
viewBox: "0 0 32 32"
|
|
9
|
+
};
|
|
10
|
+
function C(t, e) {
|
|
11
|
+
return V(), g("svg", M, [...e[0] || (e[0] = [
|
|
12
|
+
m("path", { d: "M28.7 9.7 16 22.3 3.3 9.7" }, null, -1)
|
|
13
|
+
])]);
|
|
14
|
+
}
|
|
15
|
+
const S = { render: C }, A = (t) => Math.max(Math.floor(Math.log10(Math.abs(t))), 0) + 1, _ = 200, k = 50, T = 1, F = {
|
|
16
|
+
name: "TimePartInput",
|
|
17
|
+
components: {
|
|
18
|
+
ArrowIcon: S
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {
|
|
22
|
+
default: 0,
|
|
23
|
+
type: [Number, String]
|
|
24
|
+
},
|
|
25
|
+
id: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: null
|
|
28
|
+
},
|
|
29
|
+
min: {
|
|
30
|
+
default: Number.MIN_SAFE_INTEGER,
|
|
31
|
+
type: Number
|
|
32
|
+
},
|
|
33
|
+
max: {
|
|
34
|
+
default: Number.MAX_SAFE_INTEGER,
|
|
35
|
+
type: Number
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Minimum number of digits shown, non existent digits will be filled with zeros (0)
|
|
39
|
+
* e.g 3 -> 001, no leading zeros with the default 0
|
|
40
|
+
*/
|
|
41
|
+
minDigits: {
|
|
42
|
+
default: 0,
|
|
43
|
+
type: Number
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Validity controlled by the parent component to be flexible.
|
|
47
|
+
*/
|
|
48
|
+
isValid: {
|
|
49
|
+
default: !0,
|
|
50
|
+
type: Boolean
|
|
51
|
+
},
|
|
52
|
+
inputClasses: {
|
|
53
|
+
default: "",
|
|
54
|
+
type: String
|
|
55
|
+
},
|
|
56
|
+
disabled: {
|
|
57
|
+
default: !1,
|
|
58
|
+
type: Boolean
|
|
59
|
+
},
|
|
60
|
+
compact: {
|
|
61
|
+
default: !1,
|
|
62
|
+
type: Boolean
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
emits: ["update:modelValue", "bounds"],
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
clicked: !1,
|
|
69
|
+
// false to prevent unintended 'mouseup' or 'mouseleave' events.
|
|
70
|
+
hovered: !1,
|
|
71
|
+
// if the input field is currently hovered or not
|
|
72
|
+
/* @type {String|Number} */
|
|
73
|
+
localValue: this.modelValue
|
|
74
|
+
// value with leading zeros
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
computed: {
|
|
78
|
+
stepSize() {
|
|
79
|
+
return T;
|
|
80
|
+
},
|
|
81
|
+
inputClassList() {
|
|
82
|
+
let t = this.inputClasses;
|
|
83
|
+
return this.hovered && (t += " hover"), t;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
watch: {
|
|
87
|
+
modelValue: {
|
|
88
|
+
handler(t) {
|
|
89
|
+
this.localValue = this.padValue(t);
|
|
90
|
+
},
|
|
91
|
+
immediate: !0
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* The reference to the timeout which is set when
|
|
96
|
+
* a user clicks one of the numeric spinner wheels. This
|
|
97
|
+
* Timeout will trigger the spinnerArrowInterval.
|
|
98
|
+
*/
|
|
99
|
+
spinnerArrowTimeout: null,
|
|
100
|
+
/**
|
|
101
|
+
* This interval rapid calls the change value method until the
|
|
102
|
+
* user releases the mouse.
|
|
103
|
+
*/
|
|
104
|
+
spinnerArrowInterval: null,
|
|
105
|
+
mounted() {
|
|
106
|
+
this.initialValue = this.modelValue;
|
|
107
|
+
},
|
|
108
|
+
methods: {
|
|
109
|
+
/**
|
|
110
|
+
* Check min/max limits and return details about it
|
|
111
|
+
* @param {Number} value - value to check for min/max bounds
|
|
112
|
+
* @returns {Object} - bounds info object also used for @bounds event
|
|
113
|
+
*/
|
|
114
|
+
limitBounds(t) {
|
|
115
|
+
return t < this.min ? {
|
|
116
|
+
type: "min",
|
|
117
|
+
limit: this.min,
|
|
118
|
+
input: t,
|
|
119
|
+
value: this.min
|
|
120
|
+
} : t > this.max ? {
|
|
121
|
+
type: "max",
|
|
122
|
+
limit: this.max,
|
|
123
|
+
input: t,
|
|
124
|
+
value: this.max
|
|
125
|
+
} : {
|
|
126
|
+
value: t
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* Pad with zeros based on minDigits prop
|
|
131
|
+
*
|
|
132
|
+
* @param {Number} value
|
|
133
|
+
* @returns {String|Number}
|
|
134
|
+
*/
|
|
135
|
+
padValue(t) {
|
|
136
|
+
if (isNaN(t) || !t && t !== 0 || t < 0)
|
|
137
|
+
return t;
|
|
138
|
+
const e = t.toString(10);
|
|
139
|
+
return this.minDigits < 1 ? e : e.padStart(this.minDigits, "0");
|
|
140
|
+
},
|
|
141
|
+
getValue() {
|
|
142
|
+
return parseInt(this.$refs.input.value, 10);
|
|
143
|
+
},
|
|
144
|
+
onBlur() {
|
|
145
|
+
this.localValue = this.padValue(this.modelValue);
|
|
146
|
+
},
|
|
147
|
+
onInput(t) {
|
|
148
|
+
const e = t.target.value, n = parseInt(e, 10);
|
|
149
|
+
if (e === "")
|
|
150
|
+
this.localValue = "";
|
|
151
|
+
else {
|
|
152
|
+
const o = n.toString(10).length;
|
|
153
|
+
if (e === "")
|
|
154
|
+
return;
|
|
155
|
+
if (isNaN(n) || o > A(this.max)) {
|
|
156
|
+
this.$refs.input.value = this.padValue(this.localValue);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
const s = this.limitBounds(n);
|
|
161
|
+
s.type ? this.$emit("bounds", s) : this.$emit("update:modelValue", s.value);
|
|
162
|
+
},
|
|
163
|
+
validate(t) {
|
|
164
|
+
let e = !0, n;
|
|
165
|
+
return t = typeof t > "u" ? this.getValue() : t, typeof t != "number" || isNaN(t) ? (e = !1, n = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, n = "Current value is outside allowed range."), { isValid: e, errorMessage: n };
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Change value updates the actual value of the input field if a valid new value
|
|
169
|
+
* can be found. It prevents users from further invalidating the value in the input
|
|
170
|
+
* by moving in the wrong direction (lower than min/higher than max).
|
|
171
|
+
*
|
|
172
|
+
* @param {Number} increment - the amount by which to change the current value.
|
|
173
|
+
* @returns {undefined}
|
|
174
|
+
*/
|
|
175
|
+
changeValue(t) {
|
|
176
|
+
let e = this.getValue();
|
|
177
|
+
this.validate(e).isValid || (e < this.min ? e = this.min : e > this.max ? e = this.max : e = this.initialValue);
|
|
178
|
+
let n = e + t;
|
|
179
|
+
if (n = Math.round(n * 10) / 10, this.validate(n).isValid)
|
|
180
|
+
this.$refs.input.value = this.padValue(n), this.onInput({ target: this.$refs.input });
|
|
181
|
+
else {
|
|
182
|
+
const s = this.limitBounds(n);
|
|
183
|
+
s.type && this.$emit("bounds", s);
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* This method is the callback handler for mouse events on the input field controls.
|
|
188
|
+
* It is fired when either the up-arrow or down-arrow is pressed by the user. It manages
|
|
189
|
+
* both mousedown and mouseup events. It clears any existing timeouts or intervals which
|
|
190
|
+
* may have been set previously. It also recognizes when the mouse leaves the button
|
|
191
|
+
* (which could cause a mouseup event to be missed) and therefore uses the this.clicked
|
|
192
|
+
* data property to ensure it doesn't get stuck in an interval.
|
|
193
|
+
*
|
|
194
|
+
* @param {Event} e - the DOM event object which triggered the handler.
|
|
195
|
+
* @param {String} type - the type of button pressed (either 'increased' or 'decreased').
|
|
196
|
+
* @returns {undefined}
|
|
197
|
+
*/
|
|
198
|
+
mouseEvent(t, e) {
|
|
199
|
+
if (this.disabled)
|
|
200
|
+
return;
|
|
201
|
+
clearTimeout(this.spinnerArrowInterval), clearInterval(this.spinnerArrowTimeout);
|
|
202
|
+
let n = this.stepSize;
|
|
203
|
+
if (e === "decrease" && (n *= -1), t.type === "mousedown") {
|
|
204
|
+
this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
|
|
205
|
+
this.spinnerArrowInterval = setInterval(() => {
|
|
206
|
+
this.changeValue(n);
|
|
207
|
+
}, k);
|
|
208
|
+
}, _);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
this.clicked && (this.clicked = !1, this.changeValue(n));
|
|
212
|
+
},
|
|
213
|
+
toggleHover() {
|
|
214
|
+
this.hovered = !this.hovered;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}, $ = ["id", "value", "min", "max", "step", "disabled"], H = {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: "invalid-marker"
|
|
220
|
+
};
|
|
221
|
+
function z(t, e, n, s, o, a) {
|
|
222
|
+
const r = N("ArrowIcon");
|
|
223
|
+
return V(), g("div", {
|
|
224
|
+
class: h(["wrapper", { disabled: n.disabled, compact: n.compact }])
|
|
225
|
+
}, [
|
|
226
|
+
m("input", {
|
|
227
|
+
id: n.id,
|
|
228
|
+
ref: "input",
|
|
229
|
+
type: "number",
|
|
230
|
+
role: "spinButton",
|
|
231
|
+
value: o.localValue,
|
|
232
|
+
min: n.min,
|
|
233
|
+
max: n.max,
|
|
234
|
+
step: a.stepSize,
|
|
235
|
+
class: h(a.inputClassList),
|
|
236
|
+
disabled: n.disabled,
|
|
237
|
+
onInput: e[0] || (e[0] = (...i) => a.onInput && a.onInput(...i)),
|
|
238
|
+
onBlur: e[1] || (e[1] = (...i) => a.onBlur && a.onBlur(...i)),
|
|
239
|
+
onMouseenter: e[2] || (e[2] = (...i) => a.toggleHover && a.toggleHover(...i)),
|
|
240
|
+
onMouseleave: e[3] || (e[3] = (...i) => a.toggleHover && a.toggleHover(...i))
|
|
241
|
+
}, null, 42, $),
|
|
242
|
+
n.isValid ? E("", !0) : (V(), g("span", H)),
|
|
243
|
+
m("span", {
|
|
244
|
+
class: h(["increase", { disabled: n.disabled }]),
|
|
245
|
+
onMousedown: e[4] || (e[4] = v((i) => a.mouseEvent(i, "increase"), ["prevent"])),
|
|
246
|
+
onMouseup: e[5] || (e[5] = v((i) => a.mouseEvent(i, "increase"), ["prevent"])),
|
|
247
|
+
onMouseleave: e[6] || (e[6] = (i) => a.mouseEvent(i, "increase"))
|
|
248
|
+
}, [
|
|
249
|
+
d(r)
|
|
250
|
+
], 34),
|
|
251
|
+
m("span", {
|
|
252
|
+
class: h(["decrease", { disabled: n.disabled }]),
|
|
253
|
+
onMousedown: e[7] || (e[7] = v((i) => a.mouseEvent(i, "decrease"), ["prevent"])),
|
|
254
|
+
onMouseup: e[8] || (e[8] = v((i) => a.mouseEvent(i, "decrease"), ["prevent"])),
|
|
255
|
+
onMouseleave: e[9] || (e[9] = (i) => a.mouseEvent(i, "decrease"))
|
|
256
|
+
}, [
|
|
257
|
+
d(r)
|
|
258
|
+
], 34)
|
|
259
|
+
], 2);
|
|
260
|
+
}
|
|
261
|
+
const f = /* @__PURE__ */ w(F, [["render", z], ["__scopeId", "data-v-bf742de5"]]), U = { class: "timeframe" }, D = { class: "input-wrapper" }, R = { class: "input-wrapper" }, G = /* @__PURE__ */ B({
|
|
262
|
+
__name: "TimeframesControl",
|
|
263
|
+
props: {
|
|
264
|
+
control: {},
|
|
265
|
+
handleChange: { type: Function },
|
|
266
|
+
changeValue: { type: Function },
|
|
267
|
+
disabled: { type: Boolean },
|
|
268
|
+
error: { type: Boolean },
|
|
269
|
+
subText: {},
|
|
270
|
+
onRegisterValidation: { type: Function },
|
|
271
|
+
labelForId: {}
|
|
272
|
+
},
|
|
273
|
+
setup(t) {
|
|
274
|
+
const e = ["hh", "mm", "ss"].length, n = t, s = (o, a, r) => {
|
|
275
|
+
var b;
|
|
276
|
+
const i = (o == null ? void 0 : o.value) ?? o, u = Number(i), l = Number.isNaN(u) ? 0 : u, c = (((b = n.control.data) == null ? void 0 : b[a]) ?? "00:00:00").split(":");
|
|
277
|
+
for (; c.length < e; )
|
|
278
|
+
c.push("00");
|
|
279
|
+
c[r] = String(l).padStart(2, "0"), a === "end" && (c[2] = "59");
|
|
280
|
+
const y = {
|
|
281
|
+
...n.control.data,
|
|
282
|
+
[a]: c.slice(0, e).join(":")
|
|
283
|
+
};
|
|
284
|
+
n.changeValue(y);
|
|
285
|
+
};
|
|
286
|
+
return (o, a) => (V(), g("div", U, [
|
|
287
|
+
d(p(x), { text: "Between" }, {
|
|
288
|
+
default: I(({ labelForId: r }) => {
|
|
289
|
+
var i, u;
|
|
290
|
+
return [
|
|
291
|
+
m("div", D, [
|
|
292
|
+
d(p(f), {
|
|
293
|
+
id: r,
|
|
294
|
+
min: 0,
|
|
295
|
+
max: 23,
|
|
296
|
+
"min-digits": 2,
|
|
297
|
+
compact: "",
|
|
298
|
+
"model-value": parseInt((((i = t.control.data) == null ? void 0 : i.start) ?? "00:00:00").split(":")[0], 10),
|
|
299
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => s(l, "start", 0)),
|
|
300
|
+
onBounds: a[1] || (a[1] = (l) => s(l, "start", 0))
|
|
301
|
+
}, null, 8, ["id", "model-value"]),
|
|
302
|
+
a[8] || (a[8] = m("span", null, ":", -1)),
|
|
303
|
+
d(p(f), {
|
|
304
|
+
min: 0,
|
|
305
|
+
max: 59,
|
|
306
|
+
"min-digits": 2,
|
|
307
|
+
compact: "",
|
|
308
|
+
"model-value": parseInt((((u = t.control.data) == null ? void 0 : u.start) ?? "00:00:00").split(":")[1], 10),
|
|
309
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => s(l, "start", 1)),
|
|
310
|
+
onBounds: a[3] || (a[3] = (l) => s(l, "start", 1))
|
|
311
|
+
}, null, 8, ["model-value"])
|
|
312
|
+
])
|
|
313
|
+
];
|
|
314
|
+
}),
|
|
315
|
+
_: 1
|
|
316
|
+
}),
|
|
317
|
+
d(p(x), { text: "and" }, {
|
|
318
|
+
default: I(({ labelForId: r }) => {
|
|
319
|
+
var i, u;
|
|
320
|
+
return [
|
|
321
|
+
m("div", R, [
|
|
322
|
+
d(p(f), {
|
|
323
|
+
id: r,
|
|
324
|
+
min: 0,
|
|
325
|
+
max: 23,
|
|
326
|
+
"min-digits": 2,
|
|
327
|
+
compact: "",
|
|
328
|
+
"model-value": parseInt((((i = t.control.data) == null ? void 0 : i.end) ?? "00:00:00").split(":")[0], 10),
|
|
329
|
+
"onUpdate:modelValue": a[4] || (a[4] = (l) => s(l, "end", 0)),
|
|
330
|
+
onBounds: a[5] || (a[5] = (l) => s(l, "end", 0))
|
|
331
|
+
}, null, 8, ["id", "model-value"]),
|
|
332
|
+
a[9] || (a[9] = m("span", null, ":", -1)),
|
|
333
|
+
d(p(f), {
|
|
334
|
+
min: 0,
|
|
335
|
+
max: 59,
|
|
336
|
+
"min-digits": 2,
|
|
337
|
+
compact: "",
|
|
338
|
+
"model-value": parseInt((((u = t.control.data) == null ? void 0 : u.end) ?? "00:00:00").split(":")[1], 10),
|
|
339
|
+
"onUpdate:modelValue": a[6] || (a[6] = (l) => s(l, "end", 1)),
|
|
340
|
+
onBounds: a[7] || (a[7] = (l) => s(l, "end", 1))
|
|
341
|
+
}, null, 8, ["model-value"])
|
|
342
|
+
])
|
|
343
|
+
];
|
|
344
|
+
}),
|
|
345
|
+
_: 1
|
|
346
|
+
})
|
|
347
|
+
]));
|
|
348
|
+
}
|
|
349
|
+
}), P = /* @__PURE__ */ w(G, [["__scopeId", "data-v-fef66a7b"]]);
|
|
350
|
+
export {
|
|
351
|
+
P as default
|
|
352
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as s, toRef as
|
|
2
|
-
import {
|
|
3
|
-
import { c as y } from "./usePossibleValues-
|
|
4
|
-
import { p as
|
|
1
|
+
import { defineComponent as s, toRef as c, computed as t, createBlock as p, openBlock as b, unref as o } from "vue";
|
|
2
|
+
import { T as m } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { c as y } from "./usePossibleValues-CtPV4Cjp-B6UlAJ8A.js";
|
|
4
|
+
import { p as x } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
|
|
5
5
|
const v = /* @__PURE__ */ s({
|
|
6
6
|
__name: "TwinlistControlBase",
|
|
7
7
|
props: {
|
|
@@ -9,17 +9,18 @@ const v = /* @__PURE__ */ s({
|
|
|
9
9
|
handleChange: { type: Function },
|
|
10
10
|
changeValue: { type: Function },
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
|
-
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
13
14
|
onRegisterValidation: { type: Function },
|
|
14
15
|
labelForId: {},
|
|
15
16
|
possibleValues: {}
|
|
16
17
|
},
|
|
17
18
|
setup(l) {
|
|
18
|
-
const a = l, { includedLabel: u, excludedLabel:
|
|
19
|
-
|
|
20
|
-
), n =
|
|
21
|
-
() =>
|
|
22
|
-
),
|
|
19
|
+
const a = l, { includedLabel: u, excludedLabel: r } = y(
|
|
20
|
+
c(a, "control")
|
|
21
|
+
), n = t(
|
|
22
|
+
() => x(a.possibleValues ?? [])
|
|
23
|
+
), i = t(() => {
|
|
23
24
|
const d = new Set(a.control.data ?? []);
|
|
24
25
|
return n.value.filter((e) => !d.has(e.id)).map((e) => e.id);
|
|
25
26
|
});
|
|
@@ -27,14 +28,16 @@ const v = /* @__PURE__ */ s({
|
|
|
27
28
|
id: l.labelForId,
|
|
28
29
|
ariaLabel: l.control.label,
|
|
29
30
|
disabled: l.disabled,
|
|
31
|
+
error: l.error,
|
|
32
|
+
"sub-text": l.subText,
|
|
30
33
|
"manually-included": l.control.data ?? [],
|
|
31
|
-
"manually-excluded":
|
|
34
|
+
"manually-excluded": i.value,
|
|
32
35
|
"possible-values": n.value,
|
|
33
36
|
loading: l.possibleValues === null,
|
|
34
|
-
"exclude-label": o(
|
|
37
|
+
"exclude-label": o(r),
|
|
35
38
|
"include-label": o(u),
|
|
36
39
|
"onUpdate:manuallyIncluded": l.changeValue
|
|
37
|
-
}, null, 8, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "possible-values", "loading", "exclude-label", "include-label", "onUpdate:manuallyIncluded"]));
|
|
40
|
+
}, null, 8, ["id", "ariaLabel", "disabled", "error", "sub-text", "manually-included", "manually-excluded", "possible-values", "loading", "exclude-label", "include-label", "onUpdate:manuallyIncluded"]));
|
|
38
41
|
}
|
|
39
42
|
});
|
|
40
43
|
export {
|
package/dist/{TypedStringFilter-ry7fTUTx-BqgMPUbD.js → TypedStringFilter-Cx8OCQcE-Cx82QY6q.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, computed as p, createBlock as r, openBlock as s, mergeProps as u } from "vue";
|
|
2
|
-
import i from "./MultimodeTwinlistControl-
|
|
2
|
+
import i from "./MultimodeTwinlistControl-NMnPBn6a-DQkdp8td.js";
|
|
3
3
|
const d = /* @__PURE__ */ a({
|
|
4
4
|
__name: "TypedStringFilter",
|
|
5
5
|
props: {
|
|
@@ -7,19 +7,20 @@ const d = /* @__PURE__ */ a({
|
|
|
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
|
-
setup(
|
|
15
|
-
const l =
|
|
15
|
+
setup(n) {
|
|
16
|
+
const l = n, e = p(() => l.control.uischema.options);
|
|
16
17
|
return (t, c) => {
|
|
17
|
-
var
|
|
18
|
+
var o;
|
|
18
19
|
return s(), r(i, u({ ...t.$props, ...t.$attrs }, {
|
|
19
20
|
"show-unknown-values": "",
|
|
20
21
|
"unknown-values-text": e.value.unknownValuesText,
|
|
21
22
|
"empty-state-label": e.value.emptyStateLabel,
|
|
22
|
-
"show-type-filter": !((
|
|
23
|
+
"show-type-filter": !((o = e.value) != null && o.hideTypeFilter)
|
|
23
24
|
}), null, 16, ["unknown-values-text", "empty-state-label", "show-type-filter"]);
|
|
24
25
|
};
|
|
25
26
|
}
|
package/dist/{ValueSwitchControl-aVx7pUi9-BQVaMPgo.js → ValueSwitchControl-1ax1yKbk-Dssrj-K0.js}
RENAMED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as t, openBlock as n, mergeProps as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, createBlock as t, openBlock as n, mergeProps as r } from "vue";
|
|
2
|
+
import { T as l } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt-B1RfPe72.js";
|
|
3
|
+
const u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "ValueSwitchControl",
|
|
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(p) {
|
|
15
|
-
return (e,
|
|
16
|
+
return (e, a) => (n(), t(l, r(e.$props, { type: "valueSwitch" }), null, 16));
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
u as default
|
|
20
21
|
};
|