@knime/jsonforms 1.15.0 → 1.15.1

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 (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
@@ -1,545 +0,0 @@
1
- import { createElementBlock as E, openBlock as m, renderSlot as Te, createCommentVNode as B, toDisplayString as O, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as R, Fragment as N, withDirectives as $, createBlock as J, createVNode as _, vShow as b, renderList as K, unref as c, withCtx as X, createTextVNode as _e, ref as T, watch as W, normalizeClass as he, withKeys as ye, vModelText as De, normalizeStyle as xe } from "vue";
2
- import { _ as H, v as Me, u as Pe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- import { o as $e, a as Re } from "./index-CpKfM262.js";
4
- import { u as Ae, a as we, s as be, f as Ne, o as Ve } from "./floating-ui.vue-CDo9Kas1.js";
5
- import { N as q } from "./NumberInput-BepS3tAK.js";
6
- import { V as z } from "./ValueSwitch-W4y1YvNM.js";
7
- const Se = {
8
- name: "Tooltip",
9
- props: {
10
- text: {
11
- type: String,
12
- required: !0
13
- }
14
- }
15
- }, Ce = { class: "tooltip" }, Oe = {
16
- key: 0,
17
- class: "text"
18
- };
19
- function Ge(e, t, a, n, l, i) {
20
- return m(), E("div", Ce, [
21
- Te(e.$slots, "default", {}, void 0, !0),
22
- a.text ? (m(), E("span", Oe, O(a.text), 1)) : B("", !0)
23
- ]);
24
- }
25
- const ke = /* @__PURE__ */ H(Se, [["render", Ge], ["__scopeId", "data-v-05123edc"]]), Q = (e, t) => ({
26
- negative: e,
27
- years: parseInt(t[1] ?? "0", 10),
28
- months: parseInt(t[2] ?? "0", 10),
29
- weeks: parseInt(t[3] ?? "0", 10),
30
- days: parseInt(t[4] ?? "0", 10)
31
- }), ee = (e, t) => {
32
- const a = parseInt(t[4]?.padEnd(3, "0") ?? "0", 10);
33
- return {
34
- negative: e,
35
- hours: parseInt(t[1] ?? "0", 10),
36
- minutes: parseInt(t[2] ?? "0", 10),
37
- seconds: parseInt(t[3] ?? "0", 10),
38
- milliseconds: a
39
- };
40
- }, L = (e) => e.type === "DATE" ? e.interval.years === 0 && e.interval.months === 0 && e.interval.weeks === 0 && e.interval.days === 0 : e.interval.hours === 0 && e.interval.minutes === 0 && e.interval.seconds === 0 && e.interval.milliseconds === 0, V = (e) => {
41
- let t = "P";
42
- return e.type === "DATE" ? t += `${e.interval.years}Y${e.interval.months}M${e.interval.weeks}W${e.interval.days}D` : t += `T${e.interval.hours}H${e.interval.minutes}M${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")}S`, e.interval.negative && (t = `-${t}`), t;
43
- }, P = (e) => {
44
- const t = (n, l) => n === 0 ? "" : n === 1 ? `${n} ${l} ` : `${n} ${l}s `;
45
- let a = "";
46
- if (e.type === "DATE") {
47
- if (L(e))
48
- return "0 days";
49
- a += t(e.interval.years, "year"), a += t(e.interval.months, "month"), a += t(e.interval.weeks, "week"), a += t(e.interval.days, "day");
50
- } else {
51
- if (L(e))
52
- return "0 seconds";
53
- a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
54
- const n = e.interval.milliseconds === 0;
55
- (e.interval.seconds !== 0 || !n) && (n ? a += t(e.interval.seconds, "second") : a += `${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")} seconds `);
56
- }
57
- return e.interval.negative && (a = `-(${a.trim()})`), a.trim();
58
- }, te = "(\\d+)\\s*y(?:ears?)?", ae = "(\\d+)\\s*m(?:o(?:nths?)?)?", ne = "(\\d+)\\s*w(?:eeks?)?", se = "(\\d+)\\s*d(?:ays?)?", oe = "(\\d+)\\s*h(?:ours?)?", le = "(\\d+)\\s*m(?:in(?:s|utes?)?)?", re = "(\\d+)(?:[,.](\\d{1,3}))?\\s*s(?:ec(?:s|onds?)?)?", ie = new RegExp(
59
- `^(?:${te})?\\s*(?:${ae})?\\s*(?:${ne})?\\s*(?:${se})?\\s*$`,
60
- "i"
61
- ), de = new RegExp(
62
- `^(?:${oe})?\\s*(?:${le})?\\s*(?:${re})?$`,
63
- "i"
64
- ), Be = new RegExp(
65
- `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
66
- "i"
67
- ), Fe = new RegExp(
68
- `^\\s*-\\s*(?:\\s*${te}|${ae}|${ne}|${se})\\s*$`,
69
- "i"
70
- ), He = new RegExp(
71
- `^\\s*-\\s*\\(\\s*${de.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
72
- "i"
73
- ), Ue = new RegExp(
74
- `^\\s*-\\s*(?:\\s*${oe}|${le}|${re})\\s*$`,
75
- "i"
76
- ), ue = (e) => {
77
- if (e = e?.trim(), !e)
78
- throw new Error("Empty interval string");
79
- const t = ie.exec(e), a = Be.exec(e) ?? Fe.exec(e), n = de.exec(e), l = He.exec(e) ?? Ue.exec(e), i = t ?? a, d = n ?? l, I = (a ?? l) !== null;
80
- if (d && i)
81
- throw new Error("Ambiguous time format");
82
- if (i)
83
- return {
84
- type: "DATE",
85
- interval: Q(I, i)
86
- };
87
- if (d)
88
- return {
89
- type: "TIME",
90
- interval: ee(I, d)
91
- };
92
- throw new Error(`Invalid human readable time: ${e}`);
93
- }, ce = (e, t) => {
94
- try {
95
- const a = ue(e), n = a.type, l = a.interval.negative;
96
- if (n === t || t === "DATE_OR_TIME")
97
- return {
98
- valid: !0,
99
- type: n,
100
- negative: l
101
- };
102
- } catch {
103
- return { valid: !1 };
104
- }
105
- }, y = (e) => {
106
- if (e = e?.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
107
- throw new Error("Empty ISO duration");
108
- const t = /^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?$/, a = /^-?PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:[,.](\d{1,3}))?S)?$/, n = t.exec(e), l = a.exec(e);
109
- if (n)
110
- return {
111
- type: "DATE",
112
- interval: Q(
113
- e.startsWith("-"),
114
- n
115
- )
116
- };
117
- if (l)
118
- return {
119
- type: "TIME",
120
- interval: ee(
121
- e.startsWith("-"),
122
- l
123
- )
124
- };
125
- throw new Error(`Invalid ISO duration: ${e}`);
126
- }, ve = (e, t) => {
127
- try {
128
- const a = y(e), n = a.type, l = a.interval.negative;
129
- if (n === t || t === "DATE_OR_TIME")
130
- return {
131
- valid: !0,
132
- type: n,
133
- negative: l
134
- };
135
- } catch {
136
- return { valid: !1 };
137
- }
138
- }, Ke = (e) => {
139
- const t = ve(e, "DATE_OR_TIME"), a = ce(
140
- e,
141
- "DATE_OR_TIME"
142
- );
143
- if (t.valid)
144
- return y(e);
145
- if (a.valid)
146
- return ue(e);
147
- throw new Error(`Invalid interval string: ${e}`);
148
- }, S = (e, t) => {
149
- const a = ve(e, t), n = ce(e, t);
150
- return a.valid ? a : n.valid ? n : { valid: !1 };
151
- }, Xe = {
152
- xmlns: "http://www.w3.org/2000/svg",
153
- fill: "none",
154
- stroke: "#000",
155
- "stroke-linejoin": "round",
156
- viewBox: "0 0 32 32"
157
- };
158
- function We(e, t) {
159
- return m(), E("svg", Xe, t[0] || (t[0] = [
160
- v("path", { d: "m19.7 17-4.6-2.6V8.7m6.3 15.6h8.7m-3.2-3.2 3.2 3.2-3.2 3.2m-18-5.4c-2.2-1.8-3.6-4.6-3.6-7.7 0-5.5 4.4-9.9 9.9-9.9S25 8.9 25 14.4s-4.4 9.9-9.9 9.9H1.9" }, null, -1)
161
- ]));
162
- }
163
- const qe = { render: We }, Y = [
164
- "years",
165
- "months",
166
- "weeks",
167
- "days"
168
- ], Z = [
169
- "hours",
170
- "minutes",
171
- "seconds",
172
- "milliseconds"
173
- ], h = {
174
- years: { min: 0, max: Number.MAX_SAFE_INTEGER },
175
- months: { min: 0, max: Number.MAX_SAFE_INTEGER },
176
- weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
177
- days: { min: 0, max: Number.MAX_SAFE_INTEGER },
178
- hours: { min: 0, max: Number.MAX_SAFE_INTEGER },
179
- minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
180
- seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
181
- milliseconds: { min: 0, max: 999 }
182
- }, j = (e, t) => t === "DATE" ? {
183
- type: "DATE",
184
- interval: e.periodPart
185
- } : {
186
- type: "TIME",
187
- interval: e.durationPart
188
- }, w = (e, t) => e.type === "DATE" ? {
189
- ...t,
190
- periodPart: e.interval
191
- } : {
192
- ...t,
193
- durationPart: e.interval
194
- }, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), ze = { class: "header" }, Le = { class: "ascending-descending-switch-container" }, Ye = { class: "input-grid" }, Ze = { class: "input-label" }, je = { class: "input-label" }, Je = { class: "accept-controls" }, Qe = /* @__PURE__ */ F({
195
- __name: "IntervalInputPopoverContent",
196
- props: /* @__PURE__ */ G({
197
- format: {},
198
- allowDescending: { type: Boolean }
199
- }, {
200
- usedFormat: {
201
- required: !0
202
- },
203
- usedFormatModifiers: {},
204
- modelValue: {
205
- required: !0
206
- },
207
- modelModifiers: {}
208
- }),
209
- emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
210
- setup(e, { emit: t }) {
211
- const a = t, n = e, l = k(e, "usedFormat"), i = k(e, "modelValue"), d = R(() => {
212
- const p = l.value === "DATE" ? Y : Z, u = l.value === "DATE" ? p.map(
213
- (r) => i.value.periodPart[r]
214
- ) : p.map(
215
- (r) => i.value.durationPart[r]
216
- );
217
- for (let r = 0; r < u.length; r++) {
218
- const g = p[r], x = u[r];
219
- if (isNaN(x) || x < h[g].min || x > h[g].max)
220
- return {
221
- valid: !1,
222
- reason: `${C(g)} out of bounds.`
223
- };
224
- }
225
- return { valid: !0 };
226
- }), I = R({
227
- get() {
228
- return n.allowDescending ? l.value === "DATE" ? i.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : i.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
229
- },
230
- set(p) {
231
- i.value.periodPart.negative = p === "DESCENDING", i.value.durationPart.negative = p === "DESCENDING";
232
- }
233
- }), D = () => {
234
- a(
235
- "commit",
236
- l.value,
237
- i.value,
238
- I.value
239
- );
240
- };
241
- return (p, u) => (m(), E(N, null, [
242
- v("span", ze, [
243
- u[2] || (u[2] = v("span", { class: "input-title" }, "Interval", -1)),
244
- n.format === "DATE_OR_TIME" ? (m(), J(z, {
245
- key: 0,
246
- modelValue: l.value,
247
- "onUpdate:modelValue": u[0] || (u[0] = (r) => l.value = r),
248
- "possible-values": [
249
- { id: "DATE", text: "Date" },
250
- { id: "TIME", text: "Time" }
251
- ],
252
- compact: ""
253
- }, null, 8, ["modelValue"])) : B("", !0)
254
- ]),
255
- $(v("div", Le, [
256
- _(z, {
257
- modelValue: I.value,
258
- "onUpdate:modelValue": u[1] || (u[1] = (r) => I.value = r),
259
- compact: "",
260
- "possible-values": [
261
- { id: "ASCENDING", text: "Forward" },
262
- { id: "DESCENDING", text: "Backward" }
263
- ]
264
- }, null, 8, ["modelValue"])
265
- ], 512), [
266
- [b, p.allowDescending]
267
- ]),
268
- v("div", Ye, [
269
- (m(!0), E(N, null, K(c(Y), (r) => $((m(), E("span", {
270
- key: r,
271
- class: "labeled-date-time-input"
272
- }, [
273
- v("span", Ze, O(c(C)(r)), 1),
274
- _(q, {
275
- modelValue: i.value.periodPart[r],
276
- "onUpdate:modelValue": (g) => i.value.periodPart[r] = g,
277
- min: c(h)[r].min,
278
- max: c(h)[r].max,
279
- compact: "",
280
- type: "integer"
281
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
282
- ], 512)), [
283
- [b, l.value === "DATE"]
284
- ])), 128)),
285
- (m(!0), E(N, null, K(c(Z), (r) => $((m(), E("span", {
286
- key: r,
287
- class: "labeled-date-time-input"
288
- }, [
289
- v("span", je, O(c(C)(r)), 1),
290
- _(q, {
291
- "model-value": i.value.durationPart[r],
292
- min: c(h)[r].min,
293
- max: c(h)[r].max,
294
- compact: "",
295
- type: "integer",
296
- "onUpdate:modelValue": (g) => {
297
- i.value.durationPart[r] = g;
298
- }
299
- }, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
300
- ], 512)), [
301
- [b, l.value === "TIME"]
302
- ])), 128))
303
- ]),
304
- v("div", Je, [
305
- _(ke, {
306
- text: d.value.valid ? "" : d.value.reason
307
- }, {
308
- default: X(() => [
309
- _(Me, {
310
- primary: "",
311
- disabled: !d.value.valid,
312
- onClick: D
313
- }, {
314
- default: X(() => u[3] || (u[3] = [
315
- _e(" Set ", -1)
316
- ])),
317
- _: 1,
318
- __: [3]
319
- }, 8, ["disabled"])
320
- ]),
321
- _: 1
322
- }, 8, ["text"])
323
- ])
324
- ], 64));
325
- }
326
- }), et = /* @__PURE__ */ H(Qe, [["__scopeId", "data-v-9492a842"]]), tt = { class: "input-fields" }, at = ["disabled", "placeholder"], nt = {
327
- key: 0,
328
- class: "invalid-marker"
329
- }, st = ["disabled"], ot = {}, lt = /* @__PURE__ */ F({
330
- ...ot,
331
- __name: "IntervalInput",
332
- props: /* @__PURE__ */ G({
333
- format: { default: "DATE_OR_TIME" },
334
- allowDescending: { type: Boolean, default: !0 },
335
- disabled: { type: Boolean, default: !1 },
336
- compact: { type: Boolean, default: !1 }
337
- }, {
338
- modelValue: {
339
- required: !0
340
- },
341
- modelModifiers: {}
342
- }),
343
- emits: ["update:modelValue"],
344
- setup(e) {
345
- const t = e, a = k(e, "modelValue"), n = T(
346
- (() => {
347
- if (t.format === "DATE_OR_TIME") {
348
- const s = S(
349
- a.value,
350
- "DATE_OR_TIME"
351
- );
352
- return s.valid ? s.type : "DATE";
353
- } else
354
- return t.format;
355
- })()
356
- ), l = R(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), i = T(
357
- (() => {
358
- const s = y(
359
- a.value
360
- );
361
- return w(s, {
362
- periodPart: {
363
- negative: !1,
364
- years: 0,
365
- months: 0,
366
- weeks: 0,
367
- days: 1
368
- },
369
- durationPart: {
370
- negative: !1,
371
- hours: 0,
372
- minutes: 0,
373
- seconds: 1,
374
- milliseconds: 0
375
- }
376
- });
377
- })()
378
- ), d = T(
379
- P(
380
- y(a.value)
381
- )
382
- ), I = R(() => {
383
- const s = S(
384
- d.value,
385
- "DATE_OR_TIME"
386
- );
387
- return s.valid && (t.allowDescending || !s.negative) && (s.type === n.value || t.format === "DATE_OR_TIME");
388
- }), D = T(null), p = T(null), u = T(null), r = (s, o) => {
389
- const f = j(
390
- s,
391
- o
392
- );
393
- d.value = P(f), a.value = V(f), n.value = o, i.value = s;
394
- }, g = () => {
395
- i.value = w(
396
- y(a.value),
397
- i.value
398
- );
399
- }, x = (s) => {
400
- const o = S(
401
- s,
402
- "DATE_OR_TIME"
403
- );
404
- if (!o.valid || !t.allowDescending && o.negative || o.type !== n.value && t.format !== "DATE_OR_TIME")
405
- return;
406
- const f = Ke(
407
- s
408
- );
409
- i.value = w(
410
- f,
411
- i.value
412
- ), a.value = V(f), n.value = o.type, d.value = P(f);
413
- }, pe = (s) => {
414
- const o = y(s);
415
- d.value = P(o), i.value = w(
416
- o,
417
- i.value
418
- ), a.value = s;
419
- }, me = (s) => {
420
- const o = j(
421
- i.value,
422
- s
423
- );
424
- d.value = P(o), a.value = V(o), n.value = s;
425
- }, fe = (s) => {
426
- s !== "DATE_OR_TIME" && me(s);
427
- }, M = T(!1);
428
- W(() => t.format, fe), W(a, pe);
429
- const U = (s) => {
430
- x(s);
431
- }, A = (s, o) => {
432
- s && o ? r(
433
- o.popoverValues,
434
- o.usedFormat
435
- ) : g(), M.value = !1;
436
- };
437
- $e(D, () => A(!1), {
438
- ignore: [p]
439
- }), Re("Escape", () => A(!1));
440
- const { floatingStyles: Ee, update: ge } = Ae(p, D, {
441
- middleware: [
442
- be(),
443
- // move left/right to keep it on screen
444
- Ne({
445
- // flip it vertically to keep it on screen
446
- mainAxis: !0,
447
- crossAxis: !1
448
- }),
449
- Ve({
450
- // move it a bit away from the button vertically
451
- mainAxis: 2,
452
- // vertical
453
- crossAxis: 0
454
- // horizontal
455
- })
456
- ],
457
- placement: "top-end",
458
- whileElementsMounted: we
459
- });
460
- return (s, o) => (m(), E("div", null, [
461
- v("div", {
462
- class: he(["wrapper", { disabled: s.disabled, compact: s.compact }])
463
- }, [
464
- v("span", tt, [
465
- $(v("input", {
466
- ref_key: "inputTextFieldRef",
467
- ref: u,
468
- "onUpdate:modelValue": o[0] || (o[0] = (f) => d.value = f),
469
- type: "text",
470
- disabled: s.disabled,
471
- placeholder: l.value,
472
- spellcheck: "false",
473
- onFocus: o[1] || (o[1] = (f) => M.value = !1),
474
- onFocusout: o[2] || (o[2] = () => U(d.value)),
475
- onKeypress: o[3] || (o[3] = ye(() => U(d.value), ["enter"]))
476
- }, null, 40, at), [
477
- [De, d.value]
478
- ]),
479
- I.value ? B("", !0) : (m(), E("span", nt)),
480
- v("button", {
481
- ref_key: "togglePopoverButtonRef",
482
- ref: p,
483
- class: "trigger-popover-button",
484
- disabled: s.disabled,
485
- onClick: o[4] || (o[4] = () => {
486
- M.value ? A(!1) : (M.value = !0, c(ge)());
487
- })
488
- }, [
489
- _(c(qe))
490
- ], 8, st)
491
- ])
492
- ], 2),
493
- $(v("div", {
494
- ref_key: "durationInputPopoverRef",
495
- ref: D,
496
- class: "control-popup",
497
- style: xe(c(Ee))
498
- }, [
499
- _(et, {
500
- "model-value": i.value,
501
- "used-format": n.value,
502
- format: t.format,
503
- "allow-descending": t.allowDescending,
504
- onCommit: o[5] || (o[5] = (f, Ie, it) => A(!0, {
505
- usedFormat: f,
506
- popoverValues: Ie
507
- }))
508
- }, null, 8, ["model-value", "used-format", "format", "allow-descending"])
509
- ], 4), [
510
- [b, M.value]
511
- ])
512
- ]));
513
- }
514
- }), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-098d6ad9"]]), ft = /* @__PURE__ */ F({
515
- __name: "IntervalControl",
516
- props: {
517
- control: {},
518
- handleChange: { type: Function },
519
- changeValue: { type: Function },
520
- disabled: { type: Boolean },
521
- isValid: { type: Boolean },
522
- onRegisterValidation: { type: Function },
523
- labelForId: {}
524
- },
525
- setup(e) {
526
- const t = e, a = R(
527
- () => t.control.uischema
528
- ), n = Pe(
529
- a,
530
- "intervalType",
531
- "DATE_OR_TIME"
532
- );
533
- return (l, i) => (m(), J(c(rt), {
534
- id: l.labelForId,
535
- compact: "",
536
- disabled: l.disabled,
537
- "model-value": l.control.data,
538
- format: c(n),
539
- "onUpdate:modelValue": l.changeValue
540
- }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
541
- }
542
- });
543
- export {
544
- ft as default
545
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as d, computed as l, createBlock as s, openBlock as a, unref as n, mergeProps as u, withCtx as c, createCommentVNode as m } from "vue";
2
- import { D as b } from "./Dropdown-BEx-cvXH.js";
3
- import { L as V } from "./svgWithTitle-CnTmPYAB.js";
4
- import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
5
- const v = /* @__PURE__ */ d({
6
- __name: "LoadingDropdown",
7
- props: {
8
- possibleValues: {},
9
- modelValue: {},
10
- id: {},
11
- ariaLabel: {},
12
- disabled: { type: Boolean }
13
- },
14
- setup(r) {
15
- const o = r, p = l(() => {
16
- const { possibleValues: e } = o;
17
- return e === null ? "Loading" : e.length > 0 ? "No value selected" : "No values present";
18
- }), t = l(() => o.possibleValues === null ? "" : o.modelValue), i = l(
19
- () => o.disabled || o.possibleValues === null || o.possibleValues.length === 0
20
- );
21
- return (e, g) => (a(), s(n(b), u({ ...e.$props, ...e.$attrs }, {
22
- "model-value": t.value,
23
- disabled: i.value,
24
- "possible-values": e.possibleValues ?? [],
25
- placeholder: p.value,
26
- compact: ""
27
- }), {
28
- "icon-right": c(() => [
29
- e.possibleValues === null ? (a(), s(n(V), {
30
- key: 0,
31
- class: "loading-icon"
32
- })) : m("", !0)
33
- ]),
34
- _: 1
35
- }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
36
- }
37
- }), D = /* @__PURE__ */ f(v, [["__scopeId", "data-v-cf6ba18c"]]);
38
- export {
39
- D as L
40
- };
@@ -1,79 +0,0 @@
1
- import { defineComponent as C, toRef as d, computed as a, markRaw as I, createBlock as k, openBlock as F, unref as c, mergeProps as T } from "vue";
2
- import { m as _ } from "./index-Blg1O3Fz.js";
3
- import { u as L, a as U } from "./usePossibleValues-DXuWWBh_.js";
4
- import { T as z, a as M } from "./TwinlistLoadingInfo-C4Tta00d.js";
5
- import { u as x } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js";
6
- import { _ as B } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
7
- const D = /* @__PURE__ */ C({
8
- __name: "ManualTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: { type: Function },
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- isValid: { type: Boolean },
15
- onRegisterValidation: { type: Function },
16
- labelForId: {}
17
- },
18
- setup(r) {
19
- const n = r;
20
- let o;
21
- const t = (e) => {
22
- const l = _(n.control.data, e);
23
- n.changeValue(l), o?.(l);
24
- }, p = (e) => {
25
- if (e !== null)
26
- if ("includedValues" in e) {
27
- const { includedValues: l, excludedValues: u, includeUnknownValues: y } = e;
28
- if (!l || !u)
29
- return;
30
- t({
31
- manuallySelected: l,
32
- manuallyDeselected: u,
33
- includeUnknownColumns: y
34
- });
35
- } else
36
- t({ manuallySelected: e });
37
- }, { possibleValues: s } = L(
38
- d(n, "control")
39
- ), { selectedAndDeselected: i, setCurrentManualFilter: m } = x({
40
- data: a(() => ({ manualFilter: n.control.data })),
41
- possibleValueIds: a(
42
- () => s.value?.map(({ id: e }) => e) ?? null
43
- )
44
- });
45
- o = m;
46
- const b = a(() => {
47
- const { selected: e, deselected: l } = i.value;
48
- return {
49
- includedValues: e,
50
- excludedValues: l,
51
- includeUnknownValues: n.control.data.includeUnknownColumns
52
- };
53
- }), f = a(
54
- () => i.value.selected === null ? I(z) : null
55
- ), { excludedLabel: w, includedLabel: V } = U(
56
- d(n, "control")
57
- ), h = a(() => w ?? "Excludes"), v = a(() => V ?? "Includes"), g = a(
58
- () => n.control.uischema.options?.twinlistSize
59
- );
60
- return (e, l) => (F(), k(c(M), T(e.$attrs, {
61
- id: e.labelForId,
62
- "show-search": "",
63
- disabled: e.disabled,
64
- "empty-state-component": f.value,
65
- "model-value": b.value,
66
- "possible-values": c(s) ?? [],
67
- size: g.value,
68
- "left-label": h.value,
69
- "right-label": v.value,
70
- "is-valid": e.isValid,
71
- compact: "",
72
- "show-resize-handle": "",
73
- "onUpdate:modelValue": p
74
- }), null, 16, ["id", "disabled", "empty-state-component", "model-value", "possible-values", "size", "left-label", "right-label", "is-valid"]));
75
- }
76
- }), $ = /* @__PURE__ */ B(D, [["__scopeId", "data-v-3a892220"]]);
77
- export {
78
- $ as default
79
- };
@@ -1,31 +0,0 @@
1
- import { defineComponent as s, toRef as n, createBlock as t, openBlock as d, unref as o } from "vue";
2
- import { u as r } from "./usePossibleValues-DXuWWBh_.js";
3
- import { M as u } from "./MultiselectListBox-CMTJnAWr.js";
4
- const V = /* @__PURE__ */ s({
5
- __name: "MultiSelectListBoxControl",
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 a = l, { possibleValues: i } = r(n(a, "control"));
17
- return (e, p) => (d(), t(o(u), {
18
- id: e.labelForId,
19
- "possible-values": o(i) || [],
20
- disabled: e.disabled,
21
- "model-value": e.control.data,
22
- "is-valid": e.isValid,
23
- ariaLabel: e.control.label,
24
- size: e.control.uischema.options?.size,
25
- "onUpdate:modelValue": e.changeValue
26
- }, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"]));
27
- }
28
- });
29
- export {
30
- V as default
31
- };