@knime/scripting-editor 0.0.127 → 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.
Files changed (133) hide show
  1. package/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-SXwBBRp2-Bqhgogiq.js} +5 -4
  2. package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-Dh1QLh8H.js} +41 -41
  3. package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-CaaKmrFb.js} +21 -21
  4. package/dist/CheckboxControl-CbWn843V-BTn1nVWQ.js +40 -0
  5. package/dist/CheckboxesControl-BiQOMrsp-BCRpKfZV.js +42 -0
  6. package/dist/CodeEditorControl-BhQdOlWM.js +133 -0
  7. package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-B_mQdOCs-Dl3vNMVD.js} +10 -8
  8. package/dist/{ColorPreviewControl-CntI0nTL-qVTX4e1m.js → ColorPreviewControl-BREwhSO9-uTvGtvF_.js} +21 -21
  9. package/dist/ComboBoxControl-BIZlnizm-7kcBjn_F.js +42 -0
  10. package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-CILWy-1v.js} +1 -1
  11. package/dist/{ControlWithSubParameters-DgJhqCMe.js → ControlWithSubParameters-DNFQ_0Ol.js} +4 -4
  12. package/dist/CredentialsControl-DYI2eHZH.js +33 -0
  13. package/dist/CredentialsControlBase-Be_pBbr8.js +96 -0
  14. package/dist/DateControl-vkwY-8Qy-D35WLbKn.js +44 -0
  15. package/dist/DateTimeControl-CtXV6_D2-yc6SBo7d.js +89 -0
  16. package/dist/DateTimeFormatPickerControl-a7MPaNFN-CerJZl-s.js +37 -0
  17. package/dist/DateTimeFormatPickerWithTypeControl-B9Nu0dh1-B3FsqcQG.js +598 -0
  18. package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BZuisQeJ.js} +2 -2
  19. package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-qBfv19cz.js} +7 -7
  20. package/dist/DropdownControl-BUwovb4K-DZFITmfl.js +32 -0
  21. package/dist/DynamicInputControl-Br_sRCEw.js +6 -0
  22. package/dist/ExecutorCoresControl-DN-1o1XJ-B6JZf8lR.js +51 -0
  23. package/dist/ExecutorMemoryControl-UzqzP4hI-DEOR9ioJ.js +44 -0
  24. package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-UiGh3RA6.js} +4 -3
  25. package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-C0jKG7YK.js} +148 -144
  26. package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-Di4Pk53x.js} +5 -4
  27. package/dist/FileUploadControl-WC8TFQHe-BuGo0ZRQ.js +545 -0
  28. package/dist/GridSelectionControl-BgqT1t9d-BRz6UGC9.js +117 -0
  29. package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-CESRA3YR-DDxfF6ry.js} +7 -7
  30. package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-DKXN0mcE-DGJ3KRkb.js} +5 -4
  31. package/dist/IntervalControl-BswGPjcV-BmiAjHOy.js +51 -0
  32. package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-5xwthvS8.js} +5 -5
  33. package/dist/LegacyCredentialsControl-DjJGg7vr.js +88 -0
  34. package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DTqOfnTg-BA_L4RtV.js} +10 -10
  35. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM-RBq7a_S3.js} +5 -5
  36. package/dist/ManualTwinlistControl-CoZdPu6n-BF9bz65d.js +77 -0
  37. package/dist/MultiFileChooserControl-BFW6QI_y.js +342 -0
  38. package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-B2ISI9_F.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-CjM94miu-DiufrbYU.js} +9 -8
  40. package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-NMnPBn6a-DQkdp8td.js} +68 -66
  41. package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DuVJG0SF-DAH98lDD.js} +7 -6
  42. package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-NMJmxuze-Bih_-Og_.js} +8 -7
  43. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8-BGSxRVVz.js +54 -0
  44. package/dist/OneOfDropdown-CwJemyYo-Do-MOPV7.js +36 -0
  45. package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BK3UCreL-qWSS1DwX.js} +17 -17
  46. package/dist/RadioControl-ts1-JozG-Bt4Ssbnx.js +21 -0
  47. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt-B1RfPe72.js +64 -0
  48. package/dist/ResourceControlBase-FDiyHyQi-n4PYam8s.js +113 -0
  49. package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DH6GqUeF-DhVLA7bv.js} +7748 -6742
  50. package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-Cb3_L9Te-Ch2TL8Ns.js} +5 -5
  51. package/dist/{SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js → SettingsSubPanelLayout-DruWJjQA-BPDZqGKD.js} +22 -22
  52. package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-CnBe4qsI-QQXdW90w.js} +7 -6
  53. package/dist/SingleSelectControl-C4Qzk2Ki-B4KRT-4U.js +58 -0
  54. package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-sLe2Y67h-aYZGPc-_.js} +14 -13
  55. package/dist/SortListControl-ChpYm3CZ-BHWX9fRm.js +112 -0
  56. package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-BGMU3nOp.js} +33 -30
  57. package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem-BJEJoIzr-5JeRrk8P.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-7ZXPUwBb-DdkrLxnT.js} +21 -20
  59. package/dist/TeamResourceControl-BZDXMRLZ-Moa_pv2o.js +44 -0
  60. package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-BDGtgWys-B5coKRJL.js} +11 -9
  61. package/dist/TextControl-8jfyOJKb-BkT4AwNP.js +50876 -0
  62. package/dist/TimeControl-Dvt5U7xN-CTkb_kae.js +71 -0
  63. package/dist/TimeframesControl-DcUxC3kX-1e3a-BRE.js +352 -0
  64. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N-tQDZulBA.js} +16 -13
  65. package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-Cx8OCQcE-Cx82QY6q.js} +7 -6
  66. package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-1ax1yKbk-Dssrj-K0.js} +7 -6
  67. package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-TqRKYgWl.js} +42 -42
  68. package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-DnyoqTeh-COL0gWjl.js} +6 -6
  69. package/dist/ZonedDateTimeControl-mIIRwaHz-BSWCo5dl.js +82 -0
  70. package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
  71. package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
  72. package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
  73. package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
  74. package/dist/main.js +9985 -13280
  75. package/dist/parameters.js +1 -1
  76. package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
  77. package/dist/src/scripting-service.d.ts +1 -1
  78. package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
  79. package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-DeqNZEZE.js} +6 -6
  80. package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
  81. package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-CtPV4Cjp-B6UlAJ8A.js} +3 -3
  82. package/package.json +3 -3
  83. package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
  84. package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
  85. package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
  86. package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
  87. package/dist/CredentialsControl-CuHgBJQY.js +0 -32
  88. package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
  89. package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
  90. package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
  91. package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
  92. package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
  93. package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
  94. package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
  95. package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
  96. package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
  97. package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
  98. package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
  99. package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
  100. package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
  101. package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
  102. package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
  103. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
  104. package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
  105. package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
  106. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
  107. package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
  108. package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
  109. package/dist/SortListControl-4v3T2j_9-BkTlN-H5.js +0 -110
  110. package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
  111. package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
  112. package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
  113. package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
  114. package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
  115. package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
  116. package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
  117. package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
  118. package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
  119. package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
  120. package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
  121. package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
  122. package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
  123. package/dist/src/lsp/completion.d.ts +0 -7
  124. package/dist/src/lsp/connection.d.ts +0 -56
  125. package/dist/src/lsp/diagnostics.d.ts +0 -4
  126. package/dist/src/lsp/doc-sync.d.ts +0 -5
  127. package/dist/src/lsp/hover.d.ts +0 -5
  128. package/dist/src/lsp/knime-io.d.ts +0 -22
  129. package/dist/src/lsp/mapping-utils.d.ts +0 -8
  130. package/dist/src/lsp/signature-help.d.ts +0 -5
  131. package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
  132. package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
  133. /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 r, computed as i, createBlock as p, openBlock as b, unref as o } from "vue";
2
- import { b as m } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { c as y } from "./usePossibleValues-B-W6u-1T-DcglK6MY.js";
4
- import { p as f } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
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
- isValid: { type: Boolean },
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: t } = y(
19
- r(a, "control")
20
- ), n = i(
21
- () => f(a.possibleValues ?? [])
22
- ), c = i(() => {
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": c.value,
34
+ "manually-excluded": i.value,
32
35
  "possible-values": n.value,
33
36
  loading: l.possibleValues === null,
34
- "exclude-label": o(t),
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 {
@@ -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-yCdeWH2E-DG6GXu0l.js";
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
- isValid: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
- setup(o) {
15
- const l = o, e = p(() => l.control.uischema.options);
15
+ setup(n) {
16
+ const l = n, e = p(() => l.control.uischema.options);
16
17
  return (t, c) => {
17
- var n;
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": !((n = e.value) != null && n.hideTypeFilter)
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
  }
@@ -1,20 +1,21 @@
1
- import { defineComponent as o, createBlock as t, openBlock as n, mergeProps as l } from "vue";
2
- import { U as a } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js";
3
- const s = /* @__PURE__ */ o({
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
- isValid: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
15
  setup(p) {
15
- return (e, r) => (n(), t(a, l(e.$props, { type: "valueSwitch" }), null, 16));
16
+ return (e, a) => (n(), t(l, r(e.$props, { type: "valueSwitch" }), null, 16));
16
17
  }
17
18
  });
18
19
  export {
19
- s as default
20
+ u as default
20
21
  };