@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
@@ -1,41 +0,0 @@
1
- import { defineComponent as p, computed as l, createBlock as m, openBlock as h, unref as t } from "vue";
2
- import { G as d, z as v } from "./localTimeUtils-DBMwKtLh-CTshgG3l.js";
3
- const b = /* @__PURE__ */ p({
4
- __name: "TimeControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(e) {
15
- const a = e, r = l(() => d.fromString(a.control.data)), n = l(() => a.control.uischema.options), c = l(
16
- () => {
17
- var o;
18
- return ((o = n.value) == null ? void 0 : o.showMilliseconds) ?? !0;
19
- }
20
- );
21
- return (o, s) => {
22
- var i;
23
- return h(), m(t(v), {
24
- id: e.labelForId,
25
- "model-value": r.value,
26
- required: !0,
27
- compact: "",
28
- disabled: e.disabled,
29
- "show-date": !1,
30
- "show-time": !0,
31
- "show-seconds": (i = n.value) == null ? void 0 : i.showSeconds,
32
- "show-milliseconds": c.value,
33
- "is-valid": e.isValid,
34
- "onUpdate:modelValue": s[0] || (s[0] = (u) => e.changeValue(t(d).toString(u)))
35
- }, null, 8, ["id", "model-value", "disabled", "show-seconds", "show-milliseconds", "is-valid"]);
36
- };
37
- }
38
- });
39
- export {
40
- b as default
41
- };
@@ -1,253 +0,0 @@
1
- import { i as c } from "./arrow-dropdown-DMFBPPcK-uCJYJfqE.js";
2
- import { resolveComponent as v, createElementBlock as m, openBlock as p, normalizeClass as n, createElementVNode as u, createCommentVNode as f, withModifiers as r, createVNode as h } from "vue";
3
- import { Y as V } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const g = (t) => Math.max(Math.floor(Math.log10(Math.abs(t))), 0) + 1, b = 200, I = 50, y = 1, N = {
5
- name: "TimePartInput",
6
- components: {
7
- ArrowIcon: c
8
- },
9
- props: {
10
- modelValue: {
11
- default: 0,
12
- type: [Number, String]
13
- },
14
- id: {
15
- type: String,
16
- default: null
17
- },
18
- min: {
19
- default: Number.MIN_SAFE_INTEGER,
20
- type: Number
21
- },
22
- max: {
23
- default: Number.MAX_SAFE_INTEGER,
24
- type: Number
25
- },
26
- /**
27
- * Minimum number of digits shown, non existent digits will be filled with zeros (0)
28
- * e.g 3 -> 001, no leading zeros with the default 0
29
- */
30
- minDigits: {
31
- default: 0,
32
- type: Number
33
- },
34
- /**
35
- * Validity controlled by the parent component to be flexible.
36
- */
37
- isValid: {
38
- default: !0,
39
- type: Boolean
40
- },
41
- inputClasses: {
42
- default: "",
43
- type: String
44
- },
45
- disabled: {
46
- default: !1,
47
- type: Boolean
48
- },
49
- compact: {
50
- default: !1,
51
- type: Boolean
52
- }
53
- },
54
- emits: ["update:modelValue", "bounds"],
55
- data() {
56
- return {
57
- clicked: !1,
58
- // false to prevent unintended 'mouseup' or 'mouseleave' events.
59
- hovered: !1,
60
- // if the input field is currently hovered or not
61
- /* @type {String|Number} */
62
- localValue: this.modelValue
63
- // value with leading zeros
64
- };
65
- },
66
- computed: {
67
- stepSize() {
68
- return y;
69
- },
70
- inputClassList() {
71
- let t = this.inputClasses;
72
- return this.hovered && (t += " hover"), t;
73
- }
74
- },
75
- watch: {
76
- modelValue: {
77
- handler(t) {
78
- this.localValue = this.padValue(t);
79
- },
80
- immediate: !0
81
- }
82
- },
83
- /**
84
- * The reference to the timeout which is set when
85
- * a user clicks one of the numeric spinner wheels. This
86
- * Timeout will trigger the spinnerArrowInterval.
87
- */
88
- spinnerArrowTimeout: null,
89
- /**
90
- * This interval rapid calls the change value method until the
91
- * user releases the mouse.
92
- */
93
- spinnerArrowInterval: null,
94
- mounted() {
95
- this.initialValue = this.modelValue;
96
- },
97
- methods: {
98
- /**
99
- * Check min/max limits and return details about it
100
- * @param {Number} value - value to check for min/max bounds
101
- * @returns {Object} - bounds info object also used for @bounds event
102
- */
103
- limitBounds(t) {
104
- return t < this.min ? {
105
- type: "min",
106
- limit: this.min,
107
- input: t,
108
- value: this.min
109
- } : t > this.max ? {
110
- type: "max",
111
- limit: this.max,
112
- input: t,
113
- value: this.max
114
- } : {
115
- value: t
116
- };
117
- },
118
- /**
119
- * Pad with zeros based on minDigits prop
120
- *
121
- * @param {Number} value
122
- * @returns {String|Number}
123
- */
124
- padValue(t) {
125
- if (isNaN(t) || !t && t !== 0 || t < 0)
126
- return t;
127
- const e = t.toString(10);
128
- return this.minDigits < 1 ? e : e.padStart(this.minDigits, "0");
129
- },
130
- getValue() {
131
- return parseInt(this.$refs.input.value, 10);
132
- },
133
- onBlur() {
134
- this.localValue = this.padValue(this.modelValue);
135
- },
136
- onInput(t) {
137
- const e = t.target.value, i = parseInt(e, 10);
138
- if (e === "")
139
- this.localValue = "";
140
- else {
141
- const o = i.toString(10).length;
142
- if (e === "")
143
- return;
144
- if (isNaN(i) || o > g(this.max)) {
145
- this.$refs.input.value = this.padValue(this.localValue);
146
- return;
147
- }
148
- }
149
- const l = this.limitBounds(i);
150
- l.type ? this.$emit("bounds", l) : this.$emit("update:modelValue", l.value);
151
- },
152
- validate(t) {
153
- let e = !0, i;
154
- return t = typeof t > "u" ? this.getValue() : t, typeof t != "number" || isNaN(t) ? (e = !1, i = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, i = "Current value is outside allowed range."), { isValid: e, errorMessage: i };
155
- },
156
- /**
157
- * Change value updates the actual value of the input field if a valid new value
158
- * can be found. It prevents users from further invalidating the value in the input
159
- * by moving in the wrong direction (lower than min/higher than max).
160
- *
161
- * @param {Number} increment - the amount by which to change the current value.
162
- * @returns {undefined}
163
- */
164
- changeValue(t) {
165
- let e = this.getValue();
166
- this.validate(e).isValid || (e < this.min ? e = this.min : e > this.max ? e = this.max : e = this.initialValue);
167
- let i = e + t;
168
- if (i = Math.round(i * 10) / 10, this.validate(i).isValid)
169
- this.$refs.input.value = this.padValue(i), this.onInput({ target: this.$refs.input });
170
- else {
171
- const l = this.limitBounds(i);
172
- l.type && this.$emit("bounds", l);
173
- }
174
- },
175
- /**
176
- * This method is the callback handler for mouse events on the input field controls.
177
- * It is fired when either the up-arrow or down-arrow is pressed by the user. It manages
178
- * both mousedown and mouseup events. It clears any existing timeouts or intervals which
179
- * may have been set previously. It also recognizes when the mouse leaves the button
180
- * (which could cause a mouseup event to be missed) and therefore uses the this.clicked
181
- * data property to ensure it doesn't get stuck in an interval.
182
- *
183
- * @param {Event} e - the DOM event object which triggered the handler.
184
- * @param {String} type - the type of button pressed (either 'increased' or 'decreased').
185
- * @returns {undefined}
186
- */
187
- mouseEvent(t, e) {
188
- if (this.disabled)
189
- return;
190
- clearTimeout(this.spinnerArrowInterval), clearInterval(this.spinnerArrowTimeout);
191
- let i = this.stepSize;
192
- if (e === "decrease" && (i *= -1), t.type === "mousedown") {
193
- this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
194
- this.spinnerArrowInterval = setInterval(() => {
195
- this.changeValue(i);
196
- }, I);
197
- }, b);
198
- return;
199
- }
200
- this.clicked && (this.clicked = !1, this.changeValue(i));
201
- },
202
- toggleHover() {
203
- this.hovered = !this.hovered;
204
- }
205
- }
206
- }, M = ["id", "value", "min", "max", "step", "disabled"], E = {
207
- key: 0,
208
- class: "invalid-marker"
209
- };
210
- function w(t, e, i, l, o, a) {
211
- const d = v("ArrowIcon");
212
- return p(), m("div", {
213
- class: n(["wrapper", { disabled: i.disabled, compact: i.compact }])
214
- }, [
215
- u("input", {
216
- id: i.id,
217
- ref: "input",
218
- type: "number",
219
- role: "spinButton",
220
- value: o.localValue,
221
- min: i.min,
222
- max: i.max,
223
- step: a.stepSize,
224
- class: n(a.inputClassList),
225
- disabled: i.disabled,
226
- onInput: e[0] || (e[0] = (...s) => a.onInput && a.onInput(...s)),
227
- onBlur: e[1] || (e[1] = (...s) => a.onBlur && a.onBlur(...s)),
228
- onMouseenter: e[2] || (e[2] = (...s) => a.toggleHover && a.toggleHover(...s)),
229
- onMouseleave: e[3] || (e[3] = (...s) => a.toggleHover && a.toggleHover(...s))
230
- }, null, 42, M),
231
- i.isValid ? f("", !0) : (p(), m("span", E)),
232
- u("span", {
233
- class: n(["increase", { disabled: i.disabled }]),
234
- onMousedown: e[4] || (e[4] = r((s) => a.mouseEvent(s, "increase"), ["prevent"])),
235
- onMouseup: e[5] || (e[5] = r((s) => a.mouseEvent(s, "increase"), ["prevent"])),
236
- onMouseleave: e[6] || (e[6] = (s) => a.mouseEvent(s, "increase"))
237
- }, [
238
- h(d)
239
- ], 34),
240
- u("span", {
241
- class: n(["decrease", { disabled: i.disabled }]),
242
- onMousedown: e[7] || (e[7] = r((s) => a.mouseEvent(s, "decrease"), ["prevent"])),
243
- onMouseup: e[8] || (e[8] = r((s) => a.mouseEvent(s, "decrease"), ["prevent"])),
244
- onMouseleave: e[9] || (e[9] = (s) => a.mouseEvent(s, "decrease"))
245
- }, [
246
- h(d)
247
- ], 34)
248
- ], 2);
249
- }
250
- const S = /* @__PURE__ */ V(N, [["render", w], ["__scopeId", "data-v-bf742de5"]]);
251
- export {
252
- S as B
253
- };
@@ -1,94 +0,0 @@
1
- import { defineComponent as V, createElementBlock as I, openBlock as x, createVNode as t, unref as d, withCtx as B, createElementVNode as p } from "vue";
2
- import { B as u } from "./TimePartInput-CvwAzDuY-CuNpUUqj.js";
3
- import { Y as b, h as g } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const F = { class: "timeframe" }, N = { class: "input-wrapper" }, _ = { class: "input-wrapper" }, y = /* @__PURE__ */ V({
5
- __name: "TimeframesControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(s) {
16
- const f = ["hh", "mm", "ss"].length, c = s, n = (i, e, r) => {
17
- var v;
18
- const l = (i == null ? void 0 : i.value) ?? i, o = Number(l), a = Number.isNaN(o) ? 0 : o, m = (((v = c.control.data) == null ? void 0 : v[e]) ?? "00:00:00").split(":");
19
- for (; m.length < f; )
20
- m.push("00");
21
- m[r] = String(a).padStart(2, "0"), e === "end" && (m[2] = "59");
22
- const h = {
23
- ...c.control.data,
24
- [e]: m.slice(0, f).join(":")
25
- };
26
- c.changeValue(h);
27
- };
28
- return (i, e) => (x(), I("div", F, [
29
- t(d(g), { text: "Between" }, {
30
- default: B(({ labelForId: r }) => {
31
- var l, o;
32
- return [
33
- p("div", N, [
34
- t(d(u), {
35
- id: r,
36
- min: 0,
37
- max: 23,
38
- "min-digits": 2,
39
- compact: "",
40
- "model-value": parseInt((((l = s.control.data) == null ? void 0 : l.start) ?? "00:00:00").split(":")[0], 10),
41
- "onUpdate:modelValue": e[0] || (e[0] = (a) => n(a, "start", 0)),
42
- onBounds: e[1] || (e[1] = (a) => n(a, "start", 0))
43
- }, null, 8, ["id", "model-value"]),
44
- e[8] || (e[8] = p("span", null, ":", -1)),
45
- t(d(u), {
46
- min: 0,
47
- max: 59,
48
- "min-digits": 2,
49
- compact: "",
50
- "model-value": parseInt((((o = s.control.data) == null ? void 0 : o.start) ?? "00:00:00").split(":")[1], 10),
51
- "onUpdate:modelValue": e[2] || (e[2] = (a) => n(a, "start", 1)),
52
- onBounds: e[3] || (e[3] = (a) => n(a, "start", 1))
53
- }, null, 8, ["model-value"])
54
- ])
55
- ];
56
- }),
57
- _: 1
58
- }),
59
- t(d(g), { text: "and" }, {
60
- default: B(({ labelForId: r }) => {
61
- var l, o;
62
- return [
63
- p("div", _, [
64
- t(d(u), {
65
- id: r,
66
- min: 0,
67
- max: 23,
68
- "min-digits": 2,
69
- compact: "",
70
- "model-value": parseInt((((l = s.control.data) == null ? void 0 : l.end) ?? "00:00:00").split(":")[0], 10),
71
- "onUpdate:modelValue": e[4] || (e[4] = (a) => n(a, "end", 0)),
72
- onBounds: e[5] || (e[5] = (a) => n(a, "end", 0))
73
- }, null, 8, ["id", "model-value"]),
74
- e[9] || (e[9] = p("span", null, ":", -1)),
75
- t(d(u), {
76
- min: 0,
77
- max: 59,
78
- "min-digits": 2,
79
- compact: "",
80
- "model-value": parseInt((((o = s.control.data) == null ? void 0 : o.end) ?? "00:00:00").split(":")[1], 10),
81
- "onUpdate:modelValue": e[6] || (e[6] = (a) => n(a, "end", 1)),
82
- onBounds: e[7] || (e[7] = (a) => n(a, "end", 1))
83
- }, null, 8, ["model-value"])
84
- ])
85
- ];
86
- }),
87
- _: 1
88
- })
89
- ]));
90
- }
91
- }), k = /* @__PURE__ */ b(y, [["__scopeId", "data-v-fef66a7b"]]);
92
- export {
93
- k as default
94
- };
@@ -1,24 +0,0 @@
1
- import { createElementBlock as e, openBlock as o, renderSlot as n, createCommentVNode as p, toDisplayString as s } from "vue";
2
- import { Y as i } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const l = {
4
- name: "Tooltip",
5
- props: {
6
- text: {
7
- type: String,
8
- required: !0
9
- }
10
- }
11
- }, a = { class: "tooltip" }, c = {
12
- key: 0,
13
- class: "text"
14
- };
15
- function d(r, m, t, u, f, x) {
16
- return o(), e("div", a, [
17
- n(r.$slots, "default", {}, void 0, !0),
18
- t.text ? (o(), e("span", c, s(t.text), 1)) : p("", !0)
19
- ]);
20
- }
21
- const y = /* @__PURE__ */ i(l, [["render", d], ["__scopeId", "data-v-64e1cb84"]]);
22
- export {
23
- y as k
24
- };
@@ -1,42 +0,0 @@
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";
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
- isValid: { type: Boolean },
13
- onRegisterValidation: { type: Function },
14
- labelForId: {},
15
- possibleValues: {}
16
- },
17
- 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(() => {
23
- const d = new Set(a.control.data ?? []);
24
- return n.value.filter((e) => !d.has(e.id)).map((e) => e.id);
25
- });
26
- return (d, e) => (b(), p(o(m), {
27
- id: l.labelForId,
28
- ariaLabel: l.control.label,
29
- disabled: l.disabled,
30
- "manually-included": l.control.data ?? [],
31
- "manually-excluded": c.value,
32
- "possible-values": n.value,
33
- loading: l.possibleValues === null,
34
- "exclude-label": o(t),
35
- "include-label": o(u),
36
- "onUpdate:manuallyIncluded": l.changeValue
37
- }, null, 8, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "possible-values", "loading", "exclude-label", "include-label", "onUpdate:manuallyIncluded"]));
38
- }
39
- });
40
- export {
41
- v as L
42
- };
@@ -1,130 +0,0 @@
1
- import { defineComponent as u, resolveComponent as v, createBlock as V, openBlock as d, normalizeClass as r, withCtx as B, renderSlot as p, normalizeProps as g, guardReactiveProps as h, createElementBlock as o, Fragment as n, renderList as S, createElementVNode as s, createCommentVNode as C, toDisplayString as i } from "vue";
2
- import { Y as m, m as k } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const x = u({
4
- name: "BaseRadioButtons",
5
- props: {
6
- id: {
7
- type: String,
8
- default: null
9
- },
10
- modelValue: {
11
- type: String,
12
- default: null
13
- },
14
- name: {
15
- type: String,
16
- default() {
17
- return `RadioButtons-${k()}`;
18
- }
19
- },
20
- disabled: {
21
- default: !1,
22
- type: Boolean
23
- },
24
- possibleValues: {
25
- type: Array,
26
- default: () => [],
27
- validator(e) {
28
- return Array.isArray(e) ? e.every(
29
- (t) => t.hasOwnProperty("id") && t.hasOwnProperty("text")
30
- ) : !1;
31
- }
32
- }
33
- },
34
- emits: ["update:modelValue"],
35
- methods: {
36
- onInput(e) {
37
- const t = e.target.value;
38
- this.$emit("update:modelValue", t);
39
- }
40
- }
41
- }), _ = ["id"], w = ["checked", "value", "name", "disabled"], I = ["title"];
42
- function R(e, t, c, b, f, y) {
43
- return d(), o("div", {
44
- id: e.id,
45
- role: "radiogroup"
46
- }, [
47
- (d(!0), o(n, null, S(e.possibleValues, (a) => (d(), o("label", {
48
- key: `radio-${a.id}`,
49
- class: r({ disabled: e.disabled || a.disabled })
50
- }, [
51
- s("input", {
52
- ref_for: !0,
53
- ref: "input",
54
- checked: e.modelValue === a.id,
55
- value: a.id,
56
- name: e.name,
57
- disabled: e.disabled || a.disabled,
58
- type: "radio",
59
- onChange: t[0] || (t[0] = (...l) => e.onInput && e.onInput(...l))
60
- }, null, 40, w),
61
- s("span", {
62
- title: a.text
63
- }, i(a.text), 9, I),
64
- p(e.$slots, "default", { item: a }, void 0, !0),
65
- a.subtext ? (d(), o(n, { key: 0 }, [
66
- t[1] || (t[1] = s("br", null, null, -1)),
67
- s("span", null, i(a.subtext), 1)
68
- ], 64)) : C("", !0)
69
- ], 2))), 128))
70
- ], 8, _);
71
- }
72
- const $ = /* @__PURE__ */ m(x, [["render", R], ["__scopeId", "data-v-2bbebb4b"]]), A = u({
73
- name: "ValueSwitch",
74
- components: {
75
- BaseRadioButtons: $
76
- },
77
- props: {
78
- id: {
79
- type: String,
80
- default: null
81
- },
82
- modelValue: {
83
- type: String,
84
- default: null
85
- },
86
- name: {
87
- type: String,
88
- default: null
89
- },
90
- disabled: {
91
- default: !1,
92
- type: Boolean
93
- },
94
- possibleValues: {
95
- type: Array,
96
- default: () => []
97
- },
98
- compact: {
99
- type: Boolean,
100
- default: !1
101
- }
102
- },
103
- emits: ["update:modelValue"]
104
- });
105
- function P(e, t, c, b, f, y) {
106
- const a = v("BaseRadioButtons");
107
- return d(), V(a, {
108
- id: e.id,
109
- ref: "radioButton",
110
- "possible-values": e.possibleValues,
111
- "model-value": e.modelValue,
112
- name: e.name,
113
- disabled: e.disabled,
114
- class: r(["value-switch", {
115
- disabled: e.disabled,
116
- compact: e.compact,
117
- normal: !e.compact
118
- }]),
119
- "onUpdate:modelValue": t[0] || (t[0] = (l) => e.$emit("update:modelValue", l))
120
- }, {
121
- default: B((l) => [
122
- p(e.$slots, "default", g(h(l)), void 0, !0)
123
- ]),
124
- _: 3
125
- }, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
126
- }
127
- const E = /* @__PURE__ */ m(A, [["render", P], ["__scopeId", "data-v-83231815"]]);
128
- export {
129
- E as O
130
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as b, computed as o, createElementBlock as V, openBlock as h, createVNode as m, unref as p } from "vue";
2
- import { K as w, Z as f, z as g } from "./localTimeUtils-DBMwKtLh-CTshgG3l.js";
3
- import { Y as y, j as z } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const C = ["id"], F = /* @__PURE__ */ b({
5
- __name: "ZonedDateTimeControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(l) {
16
- const d = l, i = o(() => d.control.uischema.options), a = o({
17
- get: () => d.control.data,
18
- set: d.changeValue
19
- }), t = o({
20
- get: () => w(a.value.dateTime),
21
- set: (e) => {
22
- a.value = {
23
- ...a.value,
24
- // get wall time of UTC time
25
- dateTime: f(e)
26
- };
27
- }
28
- }), u = o({
29
- get: () => a.value.timeZone,
30
- set: (e) => {
31
- a.value = {
32
- ...a.value,
33
- timeZone: e
34
- };
35
- }
36
- }), v = o(() => {
37
- var e;
38
- return ((e = i.value) == null ? void 0 : e.possibleValues) ?? [];
39
- });
40
- return (e, s) => {
41
- var r, c;
42
- return h(), V("div", {
43
- id: l.labelForId,
44
- class: "layout-container"
45
- }, [
46
- m(p(g), {
47
- modelValue: t.value,
48
- "onUpdate:modelValue": s[0] || (s[0] = (n) => t.value = n),
49
- required: !0,
50
- "show-timezone": !1,
51
- "show-seconds": (r = i.value) == null ? void 0 : r.showSeconds,
52
- "show-milliseconds": (c = i.value) == null ? void 0 : c.showMilliseconds,
53
- timezone: "UTC",
54
- "is-valid": l.isValid,
55
- compact: "",
56
- disabled: l.disabled
57
- }, null, 8, ["modelValue", "show-seconds", "show-milliseconds", "is-valid", "disabled"]),
58
- m(p(z), {
59
- modelValue: u.value,
60
- "onUpdate:modelValue": s[1] || (s[1] = (n) => u.value = n),
61
- error: !l.isValid,
62
- "possible-values": v.value,
63
- disabled: l.disabled,
64
- ariaLabel: "Timezone"
65
- }, null, 8, ["modelValue", "error", "possible-values", "disabled"])
66
- ], 8, C);
67
- };
68
- }
69
- }), _ = /* @__PURE__ */ y(F, [["__scopeId", "data-v-bd87c35e"]]);
70
- export {
71
- _ as default
72
- };