@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.
Files changed (140) hide show
  1. package/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
  2. package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
  3. package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
  4. package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
  5. package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
  6. package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
  7. package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
  8. package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
  9. package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
  10. package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
  11. package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
  12. package/dist/CredentialsControl-B6jczlBv.js +33 -0
  13. package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
  14. package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
  15. package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
  16. package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
  17. package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
  18. package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
  19. package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
  20. package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
  21. package/dist/DynamicInputControl-W23Zexge.js +6 -0
  22. package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
  23. package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
  24. package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
  25. package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
  26. package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
  27. package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
  28. package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
  29. package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
  30. package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
  31. package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
  32. package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
  33. package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
  34. package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.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-CscatDmg-BaroyBA0.js} +1 -1
  36. package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
  37. package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
  38. package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
  40. package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
  41. package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
  42. package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
  43. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
  44. package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
  45. package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
  46. package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
  47. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
  48. package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
  49. package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
  50. package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
  51. package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
  52. package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
  53. package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
  54. package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
  55. package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
  56. package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
  57. package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
  59. package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
  60. package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
  61. package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
  62. package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
  63. package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
  64. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
  65. package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
  66. package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
  67. package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
  68. package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
  69. package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.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-DzRZ2FYd-COyFmQqa.js +22 -0
  74. package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
  75. package/dist/main.js +9977 -13304
  76. package/dist/parameters.js +1 -1
  77. package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
  78. package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
  79. package/dist/src/components/SettingsPage.vue.d.ts +5 -4
  80. package/dist/src/scripting-service.d.ts +1 -1
  81. package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
  82. package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
  83. package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
  84. package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
  85. package/package.json +3 -3
  86. package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
  87. package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
  88. package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
  89. package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
  90. package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
  91. package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
  92. package/dist/CredentialsControl-CuHgBJQY.js +0 -32
  93. package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
  94. package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
  95. package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
  96. package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
  97. package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
  98. package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
  99. package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
  100. package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
  101. package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
  102. package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
  103. package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
  104. package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
  105. package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
  106. package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
  107. package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
  108. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
  109. package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
  110. package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
  111. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
  112. package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
  113. package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
  114. package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
  115. package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
  116. package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
  117. package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
  118. package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
  119. package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
  120. package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
  121. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
  122. package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
  123. package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
  124. package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
  125. package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
  126. package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
  127. package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
  128. package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
  129. package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
  130. package/dist/src/lsp/completion.d.ts +0 -7
  131. package/dist/src/lsp/connection.d.ts +0 -56
  132. package/dist/src/lsp/diagnostics.d.ts +0 -4
  133. package/dist/src/lsp/doc-sync.d.ts +0 -5
  134. package/dist/src/lsp/hover.d.ts +0 -5
  135. package/dist/src/lsp/knime-io.d.ts +0 -22
  136. package/dist/src/lsp/mapping-utils.d.ts +0 -8
  137. package/dist/src/lsp/signature-help.d.ts +0 -5
  138. package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
  139. package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
  140. /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-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 { J as S } from "./TextControl-52n-sttB-DssWw4KP.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 M, withModifiers as v } from "vue";
2
+ import { P as w, S as x } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ const E = {
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 S(t, e) {
11
+ return V(), g("svg", E, [...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 C = { render: S }, 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: C
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 ? M("", !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" }, P = { class: "input-wrapper" }, R = /* @__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", P, [
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
+ }), j = /* @__PURE__ */ w(R, [["__scopeId", "data-v-fef66a7b"]]);
350
+ export {
351
+ j as default
352
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent as s, toRef as c, computed as t, createBlock as b, openBlock as p, unref as o } from "vue";
2
+ import { b as m } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ import { c as y } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
4
+ import { p as x } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
5
+ const v = /* @__PURE__ */ s({
6
+ __name: "TwinlistControlBase",
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
+ possibleValues: {}
17
+ },
18
+ setup(l) {
19
+ const a = l, { includedLabel: u, excludedLabel: r } = y(
20
+ c(a, "control")
21
+ ), n = t(
22
+ () => x(a.possibleValues ?? [])
23
+ ), i = t(() => {
24
+ const d = new Set(a.control.data ?? []);
25
+ return n.value.filter((e) => !d.has(e.id)).map((e) => e.id);
26
+ });
27
+ return (d, e) => (p(), b(o(m), {
28
+ id: l.labelForId,
29
+ ariaLabel: l.control.label,
30
+ disabled: l.disabled,
31
+ error: l.error,
32
+ "sub-text": l.subText,
33
+ "manually-included": l.control.data ?? [],
34
+ "manually-excluded": i.value,
35
+ "possible-values": n.value,
36
+ loading: l.possibleValues === null,
37
+ "exclude-label": o(r),
38
+ "include-label": o(u),
39
+ "onUpdate:manuallyIncluded": l.changeValue
40
+ }, null, 8, ["id", "ariaLabel", "disabled", "error", "sub-text", "manually-included", "manually-excluded", "possible-values", "loading", "exclude-label", "include-label", "onUpdate:manuallyIncluded"]));
41
+ }
42
+ });
43
+ export {
44
+ v as L
45
+ };
@@ -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-thO1be1r-8kc-JSH1.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-Bm4EUEvw-Cabfycg_.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
  };
@@ -1,5 +1,5 @@
1
- import { computed as v, ref as y, defineComponent as i, useAttrs as D, createBlock as k, openBlock as u, resolveDynamicComponent as P, mergeProps as m, unref as a, useId as S, createElementBlock as L, createElementVNode as l, createVNode as o, normalizeProps as f, guardReactiveProps as g, withCtx as V } from "vue";
2
- import { av as B, aa as F, a7 as d, v as I, af as R } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
1
+ import { computed as v, ref as y, defineComponent as i, useAttrs as D, createBlock as k, openBlock as u, resolveDynamicComponent as P, mergeProps as d, unref as a, useId as S, createElementBlock as L, createElementVNode as l, createVNode as o, normalizeProps as f, guardReactiveProps as g, withCtx as V } from "vue";
2
+ import { af as B, m as F, j as m, v as I, x as R } from "./TextControl-52n-sttB-DssWw4KP.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = (t) => {
5
5
  const { control: e, handleChange: s } = B(t), { disabledByFlowVariables: n } = F({
@@ -23,7 +23,7 @@ const z = (t) => {
23
23
  }, N = /* @__PURE__ */ i({
24
24
  __name: "Part",
25
25
  props: {
26
- ...d(),
26
+ ...m(),
27
27
  shape: {
28
28
  type: String,
29
29
  required: !0
@@ -31,7 +31,7 @@ const z = (t) => {
31
31
  },
32
32
  setup(t) {
33
33
  const e = t, s = D(), { isSelected: n, onClick: c, disabled: r } = e.uischema ? z(e) : E(!0);
34
- return (p, _) => (u(), k(P(t.shape), m(a(s), {
34
+ return (p, _) => (u(), k(P(t.shape), d(a(s), {
35
35
  class: [
36
36
  "clickable",
37
37
  { disabled: a(r), selected: a(n), unselected: !a(n) }
@@ -39,56 +39,56 @@ const z = (t) => {
39
39
  onClick: a(c)
40
40
  }), null, 16, ["class", "onClick"]));
41
41
  }
42
- }), x = /* @__PURE__ */ C(N, [["__scopeId", "data-v-0730d323"]]), q = /* @__PURE__ */ i({
42
+ }), x = /* @__PURE__ */ C(N, [["__scopeId", "data-v-0730d323"]]), j = /* @__PURE__ */ i({
43
43
  __name: "Inner",
44
- props: d(),
44
+ props: m(),
45
45
  setup(t) {
46
46
  const e = t;
47
- return (s, n) => (u(), k(x, m(e, {
47
+ return (s, n) => (u(), k(x, d(e, {
48
48
  shape: "path",
49
49
  d: "M47.2186 51.6276L47.5469 51.9134L47.8752 51.6276C53.7717 46.495 57.5 38.9326 57.5 30.5C57.5 22.0674 53.7717 14.505 47.8752 9.37237L47.5469 9.08662L47.2186 9.37237C41.3221 14.505 37.5938 22.0674 37.5938 30.5C37.5938 38.9326 41.3221 46.495 47.2186 51.6276Z"
50
50
  }), null, 16));
51
51
  }
52
- }), A = /* @__PURE__ */ i({
52
+ }), q = /* @__PURE__ */ i({
53
53
  __name: "Left",
54
- props: d(),
54
+ props: m(),
55
55
  setup(t) {
56
56
  const e = t;
57
- return (s, n) => (u(), k(x, m(e, {
57
+ return (s, n) => (u(), k(x, d(e, {
58
58
  shape: "circle",
59
59
  cx: "29.5",
60
60
  cy: "30.5",
61
61
  r: "28"
62
62
  }), null, 16));
63
63
  }
64
- }), J = /* @__PURE__ */ i({
64
+ }), A = /* @__PURE__ */ i({
65
65
  __name: "Right",
66
- props: d(),
66
+ props: m(),
67
67
  setup(t) {
68
68
  const e = t;
69
- return (s, n) => (u(), k(x, m(e, {
69
+ return (s, n) => (u(), k(x, d(e, {
70
70
  shape: "circle",
71
71
  cx: "65.5938",
72
72
  cy: "30.5",
73
73
  r: "28"
74
74
  }), null, 16));
75
75
  }
76
- }), M = {
76
+ }), J = {
77
77
  class: "venn-diagram",
78
78
  width: "95",
79
79
  height: "60",
80
80
  viewBox: "0 0 95 60",
81
81
  fill: "none",
82
82
  xmlns: "http://www.w3.org/2000/svg"
83
- }, Z = ["mask"], j = ["mask"], G = /* @__PURE__ */ i({
83
+ }, M = ["mask"], Z = ["mask"], G = /* @__PURE__ */ i({
84
84
  __name: "VennDiagram",
85
- props: d(),
85
+ props: m(),
86
86
  setup(t) {
87
87
  const e = t, [s, n, c] = e.uischema.elements;
88
88
  let r, p, _;
89
89
  typeof c > "u" ? (r = s, _ = n) : (p = s, r = n, _ = c);
90
90
  const w = S(), b = `${w}-mask-left`, $ = `${w}-mask-right`;
91
- return (Q, h) => (u(), L("svg", M, [
91
+ return (Q, h) => (u(), L("svg", J, [
92
92
  l("defs", null, [
93
93
  l("mask", { id: b }, h[0] || (h[0] = [
94
94
  l("rect", {
@@ -120,19 +120,19 @@ const z = (t) => {
120
120
  l("g", {
121
121
  mask: `url(#${b})`
122
122
  }, [
123
- o(A, f(g({ ...e, uischema: a(r) })), null, 16)
124
- ], 8, Z),
123
+ o(q, f(g({ ...e, uischema: a(r) })), null, 16)
124
+ ], 8, M),
125
125
  l("g", {
126
126
  mask: `url(#${$})`
127
127
  }, [
128
- o(J, f(g({ ...e, uischema: a(_) })), null, 16)
129
- ], 8, j),
130
- o(q, f(g({ ...e, uischema: a(p) })), null, 16)
128
+ o(A, f(g({ ...e, uischema: a(_) })), null, 16)
129
+ ], 8, Z),
130
+ o(j, f(g({ ...e, uischema: a(p) })), null, 16)
131
131
  ]));
132
132
  }
133
133
  }), H = /* @__PURE__ */ C(G, [["__scopeId", "data-v-d0c4f393"]]), K = { class: "horizontal" }, O = /* @__PURE__ */ i({
134
134
  __name: "VennDiagramLayout",
135
- props: d(),
135
+ props: m(),
136
136
  setup(t) {
137
137
  const e = t;
138
138
  return (s, n) => (u(), L("div", K, [
@@ -140,7 +140,7 @@ const z = (t) => {
140
140
  elements: s.uischema.elements
141
141
  }, {
142
142
  default: V(({ element: c }) => [
143
- o(a(R), m(e, {
143
+ o(a(R), d(e, {
144
144
  uischema: c
145
145
  }), null, 16, ["uischema"])
146
146
  ]),