@knime/jsonforms 0.1.4

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 (67) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +710 -0
  3. package/README.md +125 -0
  4. package/dist/AnyOfTwinlist-GJ6LGkM1.js +17 -0
  5. package/dist/ArrayLayout-CbpSgf0X.js +487 -0
  6. package/dist/ButtonControl-CVu36jz8.js +127 -0
  7. package/dist/CheckboxControl-DYFLb-qW.js +50 -0
  8. package/dist/Checkboxes-DlhdiWWA.js +103 -0
  9. package/dist/CheckboxesControl-DYV72Aua.js +39 -0
  10. package/dist/ColumnFilter-BbweAsmq.js +17 -0
  11. package/dist/ColumnSelect-aw7cYcWC.js +60 -0
  12. package/dist/ComboBoxControl-BqVUWz4q.js +600 -0
  13. package/dist/CredentialsControl-Ci6ZEuKM.js +20 -0
  14. package/dist/CredentialsControlBase-CxYOD3ne.js +110 -0
  15. package/dist/DateControl-ZyQ_vmOW.js +30 -0
  16. package/dist/DateTimeControl-anye7xvC.js +4 -0
  17. package/dist/DropdownControl-JX1LF5Tk.js +4 -0
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-B5dPfH3x.js +171 -0
  19. package/dist/DynamicValuesControl-CFubOaRb.js +127 -0
  20. package/dist/FileChooserControl-Cf_UaWqV.js +605 -0
  21. package/dist/FileExplorerTab-Ba76jD3y.js +3951 -0
  22. package/dist/HorizontalLayout-5irQmhXp.js +39 -0
  23. package/dist/IntegerControl-CqHJWRgn.js +13 -0
  24. package/dist/IntervalControl-BUhs5_lc.js +549 -0
  25. package/dist/LayoutComponentWrapper-CDw9BDq5.js +36 -0
  26. package/dist/LegacyCredentialsControl-DxRZcRVo.js +62 -0
  27. package/dist/LocalFileChooserControl-DxSeiKxg.js +57 -0
  28. package/dist/MenuItems.vue_vue_type_style_index_0_lang-qMVpH9oC.js +464 -0
  29. package/dist/MultiselectListBox-C4ZnJvJJ.js +579 -0
  30. package/dist/NameFilter-D6EI_V08.js +17 -0
  31. package/dist/NodeDialog.vue.d.ts +8 -0
  32. package/dist/NumberControl-DLo0LCsi.js +13 -0
  33. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B69hrnY1.js +43 -0
  34. package/dist/NumberInput-BdL-jZ-i.js +219 -0
  35. package/dist/OneOfDropdown-BmbbuaZk.js +15 -0
  36. package/dist/RadioControl-GbwpOdAy.js +13 -0
  37. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BlImm9is.js +128 -0
  38. package/dist/RichTextControl-CGY3rdM7.js +16895 -0
  39. package/dist/SectionLayout-CqSFyj1K.js +54 -0
  40. package/dist/SimpleButtonControl-BgOrTGEP.js +59 -0
  41. package/dist/SimpleTwinlistControl-ByOlLGIN.js +68 -0
  42. package/dist/SortListControl-Dege54Dj.js +316 -0
  43. package/dist/TextAreaControl-CKviHabr.js +111 -0
  44. package/dist/TextControl-CPL48j4B.js +49 -0
  45. package/dist/TimeControl-CGsLRgR3.js +842 -0
  46. package/dist/TwinlistControl-C4XaH_Xc.js +587 -0
  47. package/dist/TwinlistLoadingInfo-CFlSBQXn.js +1057 -0
  48. package/dist/ValueSwitch-B9oWSkM_.js +138 -0
  49. package/dist/ValueSwitchControl-4ODpL58f.js +13 -0
  50. package/dist/VennDiagramLayout-CabCs-fX.js +104 -0
  51. package/dist/VerticalLayout-D5HeZyKY.js +39 -0
  52. package/dist/VerticalLayoutBase-C0PZ-y5d.js +20 -0
  53. package/dist/arrow-next-CvdR0-WC.js +17 -0
  54. package/dist/arrow-up-Dsq3EgtE.js +30 -0
  55. package/dist/createMissingItem-B00Kg95q.js +4 -0
  56. package/dist/floating-ui.vue.esm-CIFBDytk.js +94 -0
  57. package/dist/getFlattenedSettings-D64OwqpI.js +7 -0
  58. package/dist/index-ZDm2GXeD.js +32714 -0
  59. package/dist/index.d.ts +3 -0
  60. package/dist/knime-jsonforms.js +5 -0
  61. package/dist/layoutComponents/Form.vue.d.ts +2 -0
  62. package/dist/link-BA69Hfx6.js +17 -0
  63. package/dist/loading/LoadingDialog.vue.d.ts +2 -0
  64. package/dist/navigator-BYUFe-z3.js +8 -0
  65. package/dist/style.css +1 -0
  66. package/dist/useHideOnNull-CCfNP3O7.js +42 -0
  67. package/package.json +74 -0
@@ -0,0 +1,39 @@
1
+ import { defineComponent as p, resolveComponent as t, openBlock as o, createBlock as a, withCtx as u, createElementVNode as c, createElementBlock as m, Fragment as d, renderList as i } from "vue";
2
+ import { _ as y, s as h, r as f, u as _ } from "./index-ZDm2GXeD.js";
3
+ import { L } from "./LayoutComponentWrapper-CDw9BDq5.js";
4
+ const $ = p({
5
+ name: "HorizontalLayout",
6
+ components: {
7
+ DispatchRenderer: h,
8
+ LayoutComponentWrapper: L
9
+ },
10
+ props: {
11
+ ...f()
12
+ },
13
+ setup(e) {
14
+ return _(e);
15
+ }
16
+ }), C = $, b = { class: "horizontal" };
17
+ function k(e, z, v, B, D, H) {
18
+ const r = t("DispatchRenderer"), n = t("LayoutComponentWrapper");
19
+ return o(), a(n, { layout: e.layout }, {
20
+ default: u(() => [
21
+ c("div", b, [
22
+ (o(!0), m(d, null, i(e.layout.uischema.elements, (s, l) => (o(), a(r, {
23
+ key: `${e.layout.path}-${l}`,
24
+ schema: e.layout.schema,
25
+ uischema: s,
26
+ path: e.layout.path,
27
+ enabled: e.layout.enabled,
28
+ renderers: e.layout.renderers,
29
+ cells: e.layout.cells
30
+ }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
31
+ ])
32
+ ]),
33
+ _: 1
34
+ }, 8, ["layout"]);
35
+ }
36
+ const F = /* @__PURE__ */ y(C, [["render", k], ["__scopeId", "data-v-48b7cced"]]);
37
+ export {
38
+ F as default
39
+ };
@@ -0,0 +1,13 @@
1
+ import { defineComponent as e, openBlock as o, createBlock as p, mergeProps as n } from "vue";
2
+ import { r as t } from "./index-ZDm2GXeD.js";
3
+ import { _ as s } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-B69hrnY1.js";
4
+ const i = /* @__PURE__ */ e({
5
+ __name: "IntegerControl",
6
+ props: t(),
7
+ setup(m) {
8
+ return (r, _) => (o(), p(s, n(r.$props, { type: "integer" }), null, 16));
9
+ }
10
+ });
11
+ export {
12
+ i as default
13
+ };
@@ -0,0 +1,549 @@
1
+ import { openBlock as m, createElementBlock as _, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as p, defineComponent as U, mergeModels as G, useModel as k, computed as x, Fragment as V, createBlock as j, withDirectives as M, createVNode as h, vShow as b, renderList as X, unref as u, withCtx as H, createTextVNode as ge, pushScopeId as De, popScopeId as xe, ref as T, watch as K, normalizeClass as ye, withKeys as Pe, vModelText as $e, normalizeStyle as Me } from "vue";
2
+ import { _ as F, F as Ae, a4 as Re, a5 as we, d as be, f as Ne, a6 as Ve, e as Se, r as Ce, a as Oe, p as Ge, L as ke } from "./index-ZDm2GXeD.js";
3
+ import { u as He } from "./floating-ui.vue.esm-CIFBDytk.js";
4
+ import { N as W } from "./NumberInput-BdL-jZ-i.js";
5
+ import { V as q } from "./ValueSwitch-B9oWSkM_.js";
6
+ const J = (e, t) => ({
7
+ negative: e,
8
+ years: parseInt(t[1] ?? "0", 10),
9
+ months: parseInt(t[2] ?? "0", 10),
10
+ weeks: parseInt(t[3] ?? "0", 10),
11
+ days: parseInt(t[4] ?? "0", 10)
12
+ }), Q = (e, t) => {
13
+ var n;
14
+ const a = parseInt(((n = t[4]) == null ? void 0 : n.padEnd(3, "0")) ?? "0", 10);
15
+ return {
16
+ negative: e,
17
+ hours: parseInt(t[1] ?? "0", 10),
18
+ minutes: parseInt(t[2] ?? "0", 10),
19
+ seconds: parseInt(t[3] ?? "0", 10),
20
+ milliseconds: a
21
+ };
22
+ }, N = (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, S = (e) => {
23
+ let t = "P";
24
+ 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;
25
+ }, $ = (e) => {
26
+ const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
27
+ let a = "";
28
+ if (e.type === "DATE") {
29
+ if (N(e))
30
+ return "0 days";
31
+ a += t(e.interval.years, "year"), a += t(e.interval.months, "month"), a += t(e.interval.weeks, "week"), a += t(e.interval.days, "day");
32
+ } else {
33
+ if (N(e))
34
+ return "0 seconds";
35
+ a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
36
+ const n = e.interval.milliseconds === 0;
37
+ (e.interval.seconds !== 0 || !n) && (n ? a += t(e.interval.seconds, "second") : a += `${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")} seconds `);
38
+ }
39
+ return e.interval.negative && (a = `-(${a.trim()})`), a.trim();
40
+ }, ee = "(\\d+)\\s*y(?:ears?)?", te = "(\\d+)\\s*m(?:o(?:nths?)?)?", ae = "(\\d+)\\s*w(?:eeks?)?", ne = "(\\d+)\\s*d(?:ays?)?", se = "(\\d+)\\s*h(?:ours?)?", oe = "(\\d+)\\s*m(?:in(?:s|utes?)?)?", le = "(\\d+)(?:[,.](\\d{1,3}))?\\s*s(?:ec(?:s|onds?)?)?", re = new RegExp(
41
+ `^(?:${ee})?\\s*(?:${te})?\\s*(?:${ae})?\\s*(?:${ne})?\\s*$`,
42
+ "i"
43
+ ), ie = new RegExp(
44
+ `^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
45
+ "i"
46
+ ), Be = new RegExp(
47
+ `^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
48
+ "i"
49
+ ), Ue = new RegExp(
50
+ `^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
51
+ "i"
52
+ ), Fe = new RegExp(
53
+ `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
54
+ "i"
55
+ ), ze = new RegExp(
56
+ `^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
57
+ "i"
58
+ ), de = (e) => {
59
+ if (e = e == null ? void 0 : e.trim(), !e)
60
+ throw new Error("Empty interval string");
61
+ const t = re.exec(e), a = Be.exec(e) ?? Ue.exec(e), n = ie.exec(e), i = Fe.exec(e) ?? ze.exec(e), r = t ?? a, d = n ?? i, f = (a ?? i) !== null;
62
+ if (d && r)
63
+ throw new Error("Ambiguous time format");
64
+ if (r)
65
+ return {
66
+ type: "DATE",
67
+ interval: J(f, r)
68
+ };
69
+ if (d)
70
+ return {
71
+ type: "TIME",
72
+ interval: Q(f, d)
73
+ };
74
+ throw new Error(`Invalid human readable time: ${e}`);
75
+ }, ue = (e, t) => {
76
+ try {
77
+ const a = de(e), n = a.type, i = a.interval.negative;
78
+ return n === t || t === "DATE_OR_TIME" ? {
79
+ valid: !0,
80
+ type: n,
81
+ negative: i,
82
+ zero: N(a)
83
+ } : { valid: !1 };
84
+ } catch {
85
+ return { valid: !1 };
86
+ }
87
+ }, D = (e) => {
88
+ if (e = e == null ? void 0 : e.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
89
+ throw new Error("Empty ISO duration");
90
+ 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), i = a.exec(e);
91
+ if (n)
92
+ return {
93
+ type: "DATE",
94
+ interval: J(
95
+ e.startsWith("-"),
96
+ n
97
+ )
98
+ };
99
+ if (i)
100
+ return {
101
+ type: "TIME",
102
+ interval: Q(
103
+ e.startsWith("-"),
104
+ i
105
+ )
106
+ };
107
+ throw new Error(`Invalid ISO duration: ${e}`);
108
+ }, ce = (e, t) => {
109
+ try {
110
+ const a = D(e), n = a.type, i = a.interval.negative;
111
+ return n === t || t === "DATE_OR_TIME" ? {
112
+ valid: !0,
113
+ type: n,
114
+ negative: i,
115
+ zero: N(a)
116
+ } : { valid: !1 };
117
+ } catch {
118
+ return { valid: !1 };
119
+ }
120
+ }, Xe = (e) => {
121
+ const t = ce(e, "DATE_OR_TIME"), a = ue(
122
+ e,
123
+ "DATE_OR_TIME"
124
+ );
125
+ if (t.valid)
126
+ return D(e);
127
+ if (a.valid)
128
+ return de(e);
129
+ throw new Error(`Invalid interval string: ${e}`);
130
+ }, C = (e, t) => {
131
+ const a = ce(e, t), n = ue(e, t);
132
+ return a.valid ? a : n.valid ? n : { valid: !1 };
133
+ }, Ke = {
134
+ name: "Tooltip",
135
+ props: {
136
+ text: {
137
+ type: String,
138
+ required: !0
139
+ }
140
+ }
141
+ }, We = { class: "tooltip" }, qe = {
142
+ key: 0,
143
+ class: "text"
144
+ };
145
+ function Le(e, t, a, n, i, r) {
146
+ return m(), _("div", We, [
147
+ Te(e.$slots, "default", {}, void 0, !0),
148
+ a.text ? (m(), _("span", qe, w(a.text), 1)) : B("", !0)
149
+ ]);
150
+ }
151
+ const Ye = /* @__PURE__ */ F(Ke, [["render", Le], ["__scopeId", "data-v-05123edc"]]), Ze = {
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
+ }, je = /* @__PURE__ */ p("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), Je = [
158
+ je
159
+ ];
160
+ function Qe(e, t) {
161
+ return m(), _("svg", Ze, [...Je]);
162
+ }
163
+ const et = { render: Qe }, L = [
164
+ "years",
165
+ "months",
166
+ "weeks",
167
+ "days"
168
+ ], Y = [
169
+ "hours",
170
+ "minutes",
171
+ "seconds",
172
+ "milliseconds"
173
+ ], g = {
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
+ }, Z = (e, t) => t === "DATE" ? {
183
+ type: "DATE",
184
+ interval: e.periodPart
185
+ } : {
186
+ type: "TIME",
187
+ interval: e.durationPart
188
+ }, R = (e, t) => e.type === "DATE" ? {
189
+ ...t,
190
+ periodPart: e.interval
191
+ } : {
192
+ ...t,
193
+ durationPart: e.interval
194
+ }, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), tt = (e) => (De("data-v-41a0e491"), e = e(), xe(), e), at = { class: "header" }, nt = /* @__PURE__ */ tt(() => /* @__PURE__ */ p("span", { class: "input-title" }, "Interval value", -1)), st = { class: "ascending-descending-switch-container" }, ot = { class: "input-grid" }, lt = { class: "input-label" }, rt = { class: "input-label" }, it = { class: "accept-controls" }, dt = /* @__PURE__ */ U({
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, i = k(e, "usedFormat"), r = k(e, "modelValue"), d = x(() => {
212
+ const c = i.value === "DATE" ? L : Y, v = i.value === "DATE" ? c.map(
213
+ (s) => r.value.periodPart[s]
214
+ ) : c.map(
215
+ (s) => r.value.durationPart[s]
216
+ );
217
+ for (let s = 0; s < v.length; s++)
218
+ if (v[s] < g[c[s]].min || v[s] > g[c[s]].max)
219
+ return {
220
+ valid: !1,
221
+ reason: `${O(c[s])} out of bounds.`
222
+ };
223
+ return v.every((s) => s === 0) ? {
224
+ valid: !1,
225
+ reason: "All values may not be zero."
226
+ } : { valid: !0 };
227
+ }), f = x({
228
+ get() {
229
+ return n.allowDescending ? i.value === "DATE" ? r.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : r.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
230
+ },
231
+ set(c) {
232
+ r.value.periodPart.negative = c === "DESCENDING", r.value.durationPart.negative = c === "DESCENDING";
233
+ }
234
+ }), I = () => {
235
+ a(
236
+ "commit",
237
+ i.value,
238
+ r.value,
239
+ f.value
240
+ );
241
+ };
242
+ return (c, v) => (m(), _(V, null, [
243
+ p("span", at, [
244
+ nt,
245
+ n.format === "DATE_OR_TIME" ? (m(), j(q, {
246
+ key: 0,
247
+ modelValue: i.value,
248
+ "onUpdate:modelValue": v[0] || (v[0] = (s) => i.value = s),
249
+ "possible-values": [
250
+ { id: "DATE", text: "Date" },
251
+ { id: "TIME", text: "Time" }
252
+ ],
253
+ compact: ""
254
+ }, null, 8, ["modelValue"])) : B("", !0)
255
+ ]),
256
+ M(p("div", st, [
257
+ h(q, {
258
+ modelValue: f.value,
259
+ "onUpdate:modelValue": v[1] || (v[1] = (s) => f.value = s),
260
+ compact: "",
261
+ "possible-values": [
262
+ { id: "ASCENDING", text: "Ascending interval" },
263
+ { id: "DESCENDING", text: "Descending interval" }
264
+ ]
265
+ }, null, 8, ["modelValue"])
266
+ ], 512), [
267
+ [b, c.allowDescending]
268
+ ]),
269
+ p("div", ot, [
270
+ (m(!0), _(V, null, X(u(L), (s) => M((m(), _("span", {
271
+ key: s,
272
+ class: "labeled-date-time-input"
273
+ }, [
274
+ p("span", lt, w(u(O)(s)), 1),
275
+ h(W, {
276
+ modelValue: r.value.periodPart[s],
277
+ "onUpdate:modelValue": (y) => r.value.periodPart[s] = y,
278
+ min: u(g)[s].min,
279
+ max: u(g)[s].max,
280
+ compact: "",
281
+ type: "integer"
282
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
283
+ ], 512)), [
284
+ [b, i.value === "DATE"]
285
+ ])), 128)),
286
+ (m(!0), _(V, null, X(u(Y), (s) => M((m(), _("span", {
287
+ key: s,
288
+ class: "labeled-date-time-input"
289
+ }, [
290
+ p("span", rt, w(u(O)(s)), 1),
291
+ h(W, {
292
+ "model-value": r.value.durationPart[s],
293
+ min: u(g)[s].min,
294
+ max: u(g)[s].max,
295
+ compact: "",
296
+ type: "integer",
297
+ "onUpdate:modelValue": (y) => {
298
+ r.value.durationPart[s] = y;
299
+ }
300
+ }, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
301
+ ], 512)), [
302
+ [b, i.value === "TIME"]
303
+ ])), 128))
304
+ ]),
305
+ p("div", it, [
306
+ h(Ye, {
307
+ text: d.value.valid ? "" : d.value.reason
308
+ }, {
309
+ default: H(() => [
310
+ h(Ae, {
311
+ primary: "",
312
+ disabled: !d.value.valid,
313
+ onClick: I
314
+ }, {
315
+ default: H(() => [
316
+ ge(" Set " + w(i.value.toLowerCase()) + " interval ", 1)
317
+ ]),
318
+ _: 1
319
+ }, 8, ["disabled"])
320
+ ]),
321
+ _: 1
322
+ }, 8, ["text"])
323
+ ])
324
+ ], 64));
325
+ }
326
+ }), ut = /* @__PURE__ */ F(dt, [["__scopeId", "data-v-41a0e491"]]), ct = { class: "input-fields" }, vt = ["disabled", "placeholder"], pt = {
327
+ key: 0,
328
+ class: "invalid-marker"
329
+ }, mt = ["disabled"], ft = {}, Et = /* @__PURE__ */ U({
330
+ ...ft,
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 o = C(
349
+ a.value,
350
+ "DATE_OR_TIME"
351
+ );
352
+ return o.valid ? o.type : "DATE";
353
+ } else
354
+ return t.format;
355
+ })()
356
+ ), i = x(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), r = T(
357
+ (() => {
358
+ const o = D(
359
+ a.value
360
+ );
361
+ return R(o, {
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
+ $(
380
+ D(a.value)
381
+ )
382
+ ), f = x(() => {
383
+ const o = C(
384
+ d.value,
385
+ "DATE_OR_TIME"
386
+ );
387
+ return o.valid && (t.allowDescending || !o.negative) && !o.zero && (o.type === n.value || t.format === "DATE_OR_TIME");
388
+ }), I = T(null), c = T(null), v = T(null), s = (o, l) => {
389
+ const E = Z(
390
+ o,
391
+ l
392
+ );
393
+ d.value = $(E), a.value = S(E), n.value = l, r.value = o;
394
+ }, y = () => {
395
+ r.value = R(
396
+ D(a.value),
397
+ r.value
398
+ );
399
+ }, ve = (o) => {
400
+ const l = C(
401
+ o,
402
+ "DATE_OR_TIME"
403
+ );
404
+ if (!l.valid || l.zero || !t.allowDescending && l.negative || l.type !== n.value && t.format !== "DATE_OR_TIME")
405
+ return;
406
+ const E = Xe(
407
+ o
408
+ );
409
+ r.value = R(
410
+ E,
411
+ r.value
412
+ ), a.value = S(E), n.value = l.type, d.value = $(E);
413
+ }, pe = (o) => {
414
+ const l = D(o);
415
+ d.value = $(l), r.value = R(
416
+ l,
417
+ r.value
418
+ ), a.value = o;
419
+ }, me = (o) => {
420
+ const l = Z(
421
+ r.value,
422
+ o
423
+ );
424
+ d.value = $(l), a.value = S(l), n.value = o;
425
+ }, fe = (o) => {
426
+ o !== "DATE_OR_TIME" && me(o);
427
+ }, P = T(!1);
428
+ K(() => t.format, fe), K(a, pe);
429
+ const z = (o) => {
430
+ ve(o);
431
+ }, A = (o, l) => {
432
+ o && l ? s(
433
+ l.popoverValues,
434
+ l.usedFormat
435
+ ) : y(), P.value = !1;
436
+ };
437
+ Re(I, () => A(!1), {
438
+ ignore: [c]
439
+ }), we("Escape", () => A(!1));
440
+ const { floatingStyles: Ee, update: _e } = He(c, I, {
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: Se
459
+ });
460
+ return (o, l) => (m(), _("div", null, [
461
+ p("div", {
462
+ class: ye(["wrapper", { disabled: o.disabled, compact: o.compact }])
463
+ }, [
464
+ p("span", ct, [
465
+ M(p("input", {
466
+ ref_key: "inputTextFieldRef",
467
+ ref: v,
468
+ "onUpdate:modelValue": l[0] || (l[0] = (E) => d.value = E),
469
+ type: "text",
470
+ disabled: o.disabled,
471
+ placeholder: i.value,
472
+ spellcheck: "false",
473
+ onFocus: l[1] || (l[1] = (E) => P.value = !1),
474
+ onFocusout: l[2] || (l[2] = () => z(d.value)),
475
+ onKeypress: l[3] || (l[3] = Pe(() => z(d.value), ["enter"]))
476
+ }, null, 40, vt), [
477
+ [$e, d.value]
478
+ ]),
479
+ f.value ? B("", !0) : (m(), _("span", pt)),
480
+ p("button", {
481
+ ref_key: "togglePopoverButtonRef",
482
+ ref: c,
483
+ class: "trigger-popover-button",
484
+ disabled: o.disabled,
485
+ onClick: l[4] || (l[4] = () => {
486
+ P.value ? A(!1) : (P.value = !0, u(_e)());
487
+ })
488
+ }, [
489
+ h(u(et))
490
+ ], 8, mt)
491
+ ])
492
+ ], 2),
493
+ M(p("div", {
494
+ ref_key: "durationInputPopoverRef",
495
+ ref: I,
496
+ class: "control-popup",
497
+ style: Me(u(Ee))
498
+ }, [
499
+ h(ut, {
500
+ "model-value": r.value,
501
+ "used-format": n.value,
502
+ format: t.format,
503
+ "allow-descending": t.allowDescending,
504
+ onCommit: l[5] || (l[5] = (E, Ie, he) => A(!0, {
505
+ usedFormat: E,
506
+ popoverValues: Ie,
507
+ directionality: he
508
+ }))
509
+ }, null, 8, ["model-value", "used-format", "format", "allow-descending"])
510
+ ], 4), [
511
+ [b, P.value]
512
+ ])
513
+ ]));
514
+ }
515
+ }), _t = /* @__PURE__ */ F(Et, [["__scopeId", "data-v-0dd589ba"]]), xt = /* @__PURE__ */ U({
516
+ __name: "IntervalControl",
517
+ props: Ce(),
518
+ setup(e) {
519
+ var f;
520
+ const t = e, { control: a, disabled: n, onChange: i } = Oe({
521
+ props: t
522
+ }), r = x(() => a.value.uischema.options), d = Ge(
523
+ x(() => {
524
+ var I;
525
+ return (I = r.value) == null ? void 0 : I.intervalTypeProvider;
526
+ }),
527
+ ((f = r.value) == null ? void 0 : f.intervalType) ?? "DATE_OR_TIME"
528
+ );
529
+ return (I, c) => (m(), j(ke, {
530
+ control: u(a),
531
+ onControllingFlowVariableSet: u(i)
532
+ }, {
533
+ default: H(({ labelForId: v }) => [
534
+ h(u(_t), {
535
+ id: v,
536
+ compact: "",
537
+ disabled: u(n),
538
+ "model-value": u(a).data,
539
+ format: u(d),
540
+ "onUpdate:modelValue": u(i)
541
+ }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"])
542
+ ]),
543
+ _: 1
544
+ }, 8, ["control", "onControllingFlowVariableSet"]));
545
+ }
546
+ });
547
+ export {
548
+ xt as default
549
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as t, openBlock as n, createElementBlock as o, normalizeClass as s, renderSlot as a, createCommentVNode as r } from "vue";
2
+ import { a3 as i, _ as d } from "./index-ZDm2GXeD.js";
3
+ const c = t({
4
+ name: "LayoutComponentWrapper",
5
+ props: {
6
+ layout: {
7
+ type: Object,
8
+ default: () => {
9
+ }
10
+ }
11
+ },
12
+ setup() {
13
+ return { showAdvancedSettings: i() };
14
+ },
15
+ computed: {
16
+ isVisible() {
17
+ return this.layout.visible && (this.showAdvancedSettings || !this.isAdvanced);
18
+ },
19
+ isAdvanced() {
20
+ var e;
21
+ return (e = this.layout.uischema.options) == null ? void 0 : e.isAdvanced;
22
+ }
23
+ }
24
+ }), p = c;
25
+ function u(e, l, m, f, v, h) {
26
+ return e.isVisible ? (n(), o("div", {
27
+ key: 0,
28
+ class: s({ fadeContainer: e.isAdvanced })
29
+ }, [
30
+ a(e.$slots, "default", {}, void 0, !0)
31
+ ], 2)) : r("", !0);
32
+ }
33
+ const _ = /* @__PURE__ */ d(p, [["render", u], ["__scopeId", "data-v-a1707948"]]);
34
+ export {
35
+ _ as L
36
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as p, onMounted as g, openBlock as u, createElementBlock as V, Fragment as C, createVNode as w, unref as o } from "vue";
2
+ import { a7 as h, a8 as F, a9 as v, r as _, a as P } from "./index-ZDm2GXeD.js";
3
+ import { C as S } from "./CredentialsControlBase-CxYOD3ne.js";
4
+ const y = /* @__PURE__ */ p({
5
+ __name: "LegacyFlowVariableHandler",
6
+ props: {
7
+ flowVariableName: {}
8
+ },
9
+ emits: ["flowVariableSet"],
10
+ setup(l, { emit: n }) {
11
+ const { configPaths: a } = h(), { setControllingFlowVariable: r, invalidateSetFlowVariable: i } = F(a.value[0].configPath), { getFlowVariableOverrideValue: s } = v("flowVariablesApi"), t = l, c = n;
12
+ return g(async () => {
13
+ const e = t.flowVariableName;
14
+ if (e) {
15
+ const { configPath: f, dataPath: b } = a.value[0], d = {
16
+ path: a.value[0].configPath,
17
+ flowVariableName: e
18
+ };
19
+ r(d);
20
+ const m = await s(
21
+ f,
22
+ b
23
+ );
24
+ typeof m > "u" && i(d), c("flowVariableSet", m);
25
+ }
26
+ }), () => {
27
+ };
28
+ }
29
+ }), k = /* @__PURE__ */ p({
30
+ __name: "LegacyCredentialsControl",
31
+ props: _(),
32
+ setup(l) {
33
+ const n = l, {
34
+ control: a,
35
+ onChange: r,
36
+ disabled: i,
37
+ flowSettings: s
38
+ } = P({
39
+ props: n
40
+ }), t = (e) => {
41
+ r({ credentials: e, flowVarName: null });
42
+ }, c = (e) => {
43
+ t(e ?? a.value.data.credentials);
44
+ };
45
+ return (e, f) => (u(), V(C, null, [
46
+ w(S, {
47
+ control: o(a),
48
+ data: o(a).data.credentials,
49
+ "flow-settings": o(s),
50
+ disabled: o(i),
51
+ onChange: t
52
+ }, null, 8, ["control", "data", "flow-settings", "disabled"]),
53
+ w(y, {
54
+ "flow-variable-name": o(a).data.flowVarName,
55
+ onFlowVariableSet: c
56
+ }, null, 8, ["flow-variable-name"])
57
+ ], 64));
58
+ }
59
+ });
60
+ export {
61
+ k as default
62
+ };