@knime/jsonforms 1.5.12 → 1.5.14

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 (58) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{AnyOfTwinlist-DTggNnXP.js → AnyOfTwinlist-BW6xzn6D.js} +1 -1
  3. package/dist/{BaseButton-I5M4pn6f.js → BaseButton-KN6tsTZH.js} +1 -1
  4. package/dist/{Button-rLCsKJpO.js → Button-nvDPZmUL.js} +2 -2
  5. package/dist/{Checkbox-DrJQzBqF.js → Checkbox-APwGzxUZ.js} +1 -1
  6. package/dist/{CheckboxControl-BGwhQMs-.js → CheckboxControl-DERe2t3M.js} +2 -2
  7. package/dist/{Checkboxes-Br3FkfqS.js → Checkboxes-CMQRU5RS.js} +2 -2
  8. package/dist/{CheckboxesControl-C5BkhWew.js → CheckboxesControl-CIc6e0K2.js} +2 -2
  9. package/dist/{ColumnFilter-DfAP8buV.js → ColumnFilter-HTq_8Vwp.js} +1 -1
  10. package/dist/{ColumnSelect-vXE_85cR.js → ColumnSelect-D8qjL-rW.js} +2 -2
  11. package/dist/{ComboBoxControl-CTMdhcN-.js → ComboBoxControl-CpZPliym.js} +3 -3
  12. package/dist/{DateControl-B40Ar3uG.js → DateControl-CoaP_Jqz.js} +1 -1
  13. package/dist/{DateTimeControl-CUy0OZUE.js → DateTimeControl-DtgTZM8Y.js} +2 -2
  14. package/dist/{DateTimeFormatInput-U6oDnsJW.js → DateTimeFormatInput-pARck1p2.js} +3 -3
  15. package/dist/{DateTimeFormatPickerControl-ARLARGoo.js → DateTimeFormatPickerControl-Bo8DiElc.js} +2 -2
  16. package/dist/{DateTimeFormatPickerWithTypeControl-Bu3NEwvJ.js → DateTimeFormatPickerWithTypeControl-_4mX0yje.js} +3 -3
  17. package/dist/{DateTimeInput-C7e1Z-XE.js → DateTimeInput-CKmavUr1.js} +3 -3
  18. package/dist/{Dropdown-CPOTGnA1.js → Dropdown-C_udaF1y.js} +2 -2
  19. package/dist/{DropdownControl-CzD81Ycz.js → DropdownControl-CBxCK6W5.js} +1 -1
  20. package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-L2a_FDVR.js → DropdownControl.vue_vue_type_script_setup_true_lang-_caXfAHP.js} +4 -4
  21. package/dist/{FunctionButton-dHu7h3Y1.js → FunctionButton-CbFtX3ME.js} +2 -2
  22. package/dist/{HorizontalLayout-DpJ-y9Ro.js → HorizontalLayout-DgRr-wPK.js} +1 -1
  23. package/dist/{InputField-BKnMLu77.js → InputField-52w9v8Gl.js} +1 -1
  24. package/dist/{IntegerControl-Cly4hd8V.js → IntegerControl-C4pWeSbA.js} +1 -1
  25. package/dist/{IntervalControl-Bm-31Ea-.js → IntervalControl-StK211ux.js} +183 -186
  26. package/dist/{MultiselectListBox-OkLLUNac.js → MultiselectListBox-v_KpvHt_.js} +1 -1
  27. package/dist/{NameFilter-DvtQFRJE.js → NameFilter-B9sgYAkx.js} +1 -1
  28. package/dist/{NumberControl-C7SHCfb3.js → NumberControl-i8wmX6ml.js} +1 -1
  29. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-QqzXKwDy.js → NumberControlBase.vue_vue_type_script_setup_true_lang-BNQKK53r.js} +2 -2
  30. package/dist/{NumberInput-AOsXRph2.js → NumberInput-BMgvWZAl.js} +1 -1
  31. package/dist/{OneOfDropdown-DwbMw791.js → OneOfDropdown-uUTEFEQB.js} +1 -1
  32. package/dist/{RadioControl-DeFDT7X0.js → RadioControl-pkvYKFD0.js} +2 -2
  33. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DO2v2uzO.js → RadioControlBase.vue_vue_type_script_setup_true_lang-iw4Afaws.js} +2 -2
  34. package/dist/{RichTextControl-BNvBtINB.js → RichTextControl-CwxxLWRe.js} +5 -5
  35. package/dist/{SectionLayout-BUlQGeSC.js → SectionLayout-CHg-AdbJ.js} +2 -2
  36. package/dist/{SimpleButtonControl-BKhxWUOQ.js → SimpleButtonControl-D95wXupo.js} +2 -2
  37. package/dist/{SimpleTwinlistControl-C1U5ZsHa.js → SimpleTwinlistControl-EESdkelP.js} +2 -2
  38. package/dist/{SortListControl-CXDHaj82.js → SortListControl-D2frHMoU.js} +4 -4
  39. package/dist/{TextAreaControl-BFu0t-I2.js → TextAreaControl-BzVMBePH.js} +1 -1
  40. package/dist/{TextControl-Bn47wzh9.js → TextControl-DkJ94ogc.js} +1 -1
  41. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-xxo3RxnK.js → TextControl.vue_vue_type_script_setup_true_lang-Cd2dbyd5.js} +3 -3
  42. package/dist/{TimeControl-C_QqGr_G.js → TimeControl-xvqmAblk.js} +2 -2
  43. package/dist/{TwinlistControl-BJthx4lq.js → TwinlistControl-CKNeH31K.js} +4 -4
  44. package/dist/{TwinlistLoadingInfo-a_ymAtQP.js → TwinlistLoadingInfo-Df62g5Zf.js} +5 -5
  45. package/dist/{ValueSwitch-DeFP0rns.js → ValueSwitch-CwstikEi.js} +1 -1
  46. package/dist/{ValueSwitchControl-BzNmmWQq.js → ValueSwitchControl-B_AVHlbM.js} +1 -1
  47. package/dist/{VerticalLayout-56JEav8u.js → VerticalLayout-DCiD4S0f.js} +2 -2
  48. package/dist/{VerticalLayoutBase-DOyKtPzP.js → VerticalLayoutBase-BPR8oCFe.js} +1 -1
  49. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BagkGlzo.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BQPV6FY5.js} +30 -30
  50. package/dist/ZonedDateTimeControl-DplK5Mf2.js +74 -0
  51. package/dist/knime-jsonforms.css +1 -1
  52. package/dist/knime-jsonforms.js +5 -5
  53. package/dist/{localTimeUtils-D3Z9JesA.js → localTimeUtils-DTcqASgn.js} +5 -5
  54. package/dist/{magic-string.es-DDd2I1su.js → magic-string.es-w9KVPi12.js} +1 -1
  55. package/dist/{svgWithTitle-B7gWnKbY.js → svgWithTitle-DCQiKDmU.js} +1 -1
  56. package/dist/testing.js +2 -2
  57. package/package.json +4 -4
  58. package/dist/ZonedDateTimeControl-CC-rPJr7.js +0 -70
@@ -1,10 +1,10 @@
1
- import { openBlock as v, createElementBlock as E, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as p, defineComponent as F, mergeModels as G, useModel as k, computed as D, Fragment as V, createBlock as j, withDirectives as P, createVNode as I, vShow as b, renderList as z, unref as c, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as h, watch as K, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
2
- import { _ as H, u as Re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BagkGlzo.js";
1
+ import { openBlock as v, createElementBlock as f, renderSlot as Te, toDisplayString as O, createCommentVNode as B, createElementVNode as c, defineComponent as F, mergeModels as G, useModel as k, computed as y, Fragment as N, createBlock as J, withDirectives as R, createVNode as T, vShow as b, renderList as K, unref as u, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as I, watch as W, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
2
+ import { _ as H, u as Re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BQPV6FY5.js";
3
3
  import { o as Ae, a as we } from "./index-Bf0xDq3g.js";
4
4
  import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue-B-MrqKCT.js";
5
- import { F as Oe } from "./FunctionButton-dHu7h3Y1.js";
6
- import { N as W } from "./NumberInput-AOsXRph2.js";
7
- import { V as q } from "./ValueSwitch-DeFP0rns.js";
5
+ import { F as Oe } from "./FunctionButton-CbFtX3ME.js";
6
+ import { N as q } from "./NumberInput-BMgvWZAl.js";
7
+ import { V as z } from "./ValueSwitch-CwstikEi.js";
8
8
  const Ge = {
9
9
  name: "Tooltip",
10
10
  props: {
@@ -18,18 +18,18 @@ const Ge = {
18
18
  class: "text"
19
19
  };
20
20
  function Fe(e, t, a, n, i, s) {
21
- return v(), E("div", ke, [
21
+ return v(), f("div", ke, [
22
22
  Te(e.$slots, "default", {}, void 0, !0),
23
- a.text ? (v(), E("span", Be, w(a.text), 1)) : B("", !0)
23
+ a.text ? (v(), f("span", Be, O(a.text), 1)) : B("", !0)
24
24
  ]);
25
25
  }
26
- const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), J = (e, t) => ({
26
+ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), Q = (e, t) => ({
27
27
  negative: e,
28
28
  years: parseInt(t[1] ?? "0", 10),
29
29
  months: parseInt(t[2] ?? "0", 10),
30
30
  weeks: parseInt(t[3] ?? "0", 10),
31
31
  days: parseInt(t[4] ?? "0", 10)
32
- }), Q = (e, t) => {
32
+ }), ee = (e, t) => {
33
33
  var n;
34
34
  const a = parseInt(((n = t[4]) == null ? void 0 : n.padEnd(3, "0")) ?? "0", 10);
35
35
  return {
@@ -39,80 +39,79 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
39
39
  seconds: parseInt(t[3] ?? "0", 10),
40
40
  milliseconds: a
41
41
  };
42
- }, 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) => {
42
+ }, 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) => {
43
43
  let t = "P";
44
44
  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;
45
- }, M = (e) => {
45
+ }, P = (e) => {
46
46
  const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
47
47
  let a = "";
48
48
  if (e.type === "DATE") {
49
- if (N(e))
49
+ if (L(e))
50
50
  return "0 days";
51
51
  a += t(e.interval.years, "year"), a += t(e.interval.months, "month"), a += t(e.interval.weeks, "week"), a += t(e.interval.days, "day");
52
52
  } else {
53
- if (N(e))
53
+ if (L(e))
54
54
  return "0 seconds";
55
55
  a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
56
56
  const n = e.interval.milliseconds === 0;
57
57
  (e.interval.seconds !== 0 || !n) && (n ? a += t(e.interval.seconds, "second") : a += `${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")} seconds `);
58
58
  }
59
59
  return e.interval.negative && (a = `-(${a.trim()})`), a.trim();
60
- }, 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(
61
- `^(?:${ee})?\\s*(?:${te})?\\s*(?:${ae})?\\s*(?:${ne})?\\s*$`,
60
+ }, 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(
61
+ `^(?:${te})?\\s*(?:${ae})?\\s*(?:${ne})?\\s*(?:${se})?\\s*$`,
62
62
  "i"
63
- ), ie = new RegExp(
64
- `^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
63
+ ), de = new RegExp(
64
+ `^(?:${oe})?\\s*(?:${le})?\\s*(?:${re})?$`,
65
65
  "i"
66
66
  ), Ue = new RegExp(
67
- `^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
67
+ `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
68
68
  "i"
69
- ), ze = new RegExp(
70
- `^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
69
+ ), Ke = new RegExp(
70
+ `^\\s*-\\s*(?:\\s*${te}|${ae}|${ne}|${se})\\s*$`,
71
71
  "i"
72
72
  ), Xe = new RegExp(
73
- `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
73
+ `^\\s*-\\s*\\(\\s*${de.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
74
74
  "i"
75
- ), Ke = new RegExp(
76
- `^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
75
+ ), We = new RegExp(
76
+ `^\\s*-\\s*(?:\\s*${oe}|${le}|${re})\\s*$`,
77
77
  "i"
78
- ), de = (e) => {
78
+ ), ue = (e) => {
79
79
  if (e = e == null ? void 0 : e.trim(), !e)
80
80
  throw new Error("Empty interval string");
81
- const t = re.exec(e), a = Ue.exec(e) ?? ze.exec(e), n = ie.exec(e), i = Xe.exec(e) ?? Ke.exec(e), s = t ?? a, d = n ?? i, _ = (a ?? i) !== null;
81
+ const t = ie.exec(e), a = Ue.exec(e) ?? Ke.exec(e), n = de.exec(e), i = Xe.exec(e) ?? We.exec(e), s = t ?? a, d = n ?? i, h = (a ?? i) !== null;
82
82
  if (d && s)
83
83
  throw new Error("Ambiguous time format");
84
84
  if (s)
85
85
  return {
86
86
  type: "DATE",
87
- interval: J(_, s)
87
+ interval: Q(h, s)
88
88
  };
89
89
  if (d)
90
90
  return {
91
91
  type: "TIME",
92
- interval: Q(_, d)
92
+ interval: ee(h, d)
93
93
  };
94
94
  throw new Error(`Invalid human readable time: ${e}`);
95
- }, ue = (e, t) => {
95
+ }, ce = (e, t) => {
96
96
  try {
97
- const a = de(e), n = a.type, i = a.interval.negative;
97
+ const a = ue(e), n = a.type, i = a.interval.negative;
98
98
  if (n === t || t === "DATE_OR_TIME")
99
99
  return {
100
100
  valid: !0,
101
101
  type: n,
102
- negative: i,
103
- zero: N(a)
102
+ negative: i
104
103
  };
105
104
  } catch {
106
105
  return { valid: !1 };
107
106
  }
108
- }, g = (e) => {
107
+ }, D = (e) => {
109
108
  if (e = e == null ? void 0 : e.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
110
109
  throw new Error("Empty ISO duration");
111
110
  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);
112
111
  if (n)
113
112
  return {
114
113
  type: "DATE",
115
- interval: J(
114
+ interval: Q(
116
115
  e.startsWith("-"),
117
116
  n
118
117
  )
@@ -120,61 +119,60 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
120
119
  if (i)
121
120
  return {
122
121
  type: "TIME",
123
- interval: Q(
122
+ interval: ee(
124
123
  e.startsWith("-"),
125
124
  i
126
125
  )
127
126
  };
128
127
  throw new Error(`Invalid ISO duration: ${e}`);
129
- }, ce = (e, t) => {
128
+ }, pe = (e, t) => {
130
129
  try {
131
- const a = g(e), n = a.type, i = a.interval.negative;
130
+ const a = D(e), n = a.type, i = a.interval.negative;
132
131
  if (n === t || t === "DATE_OR_TIME")
133
132
  return {
134
133
  valid: !0,
135
134
  type: n,
136
- negative: i,
137
- zero: N(a)
135
+ negative: i
138
136
  };
139
137
  } catch {
140
138
  return { valid: !1 };
141
139
  }
142
- }, We = (e) => {
143
- const t = ce(e, "DATE_OR_TIME"), a = ue(
140
+ }, qe = (e) => {
141
+ const t = pe(e, "DATE_OR_TIME"), a = ce(
144
142
  e,
145
143
  "DATE_OR_TIME"
146
144
  );
147
145
  if (t.valid)
148
- return g(e);
146
+ return D(e);
149
147
  if (a.valid)
150
- return de(e);
148
+ return ue(e);
151
149
  throw new Error(`Invalid interval string: ${e}`);
152
- }, C = (e, t) => {
153
- const a = ce(e, t), n = ue(e, t);
150
+ }, S = (e, t) => {
151
+ const a = pe(e, t), n = ce(e, t);
154
152
  return a.valid ? a : n.valid ? n : { valid: !1 };
155
- }, qe = {
153
+ }, ze = {
156
154
  xmlns: "http://www.w3.org/2000/svg",
157
155
  fill: "none",
158
156
  stroke: "#000",
159
157
  "stroke-linejoin": "round",
160
158
  viewBox: "0 0 32 32"
161
- }, Le = /* @__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), Ye = [
159
+ }, Le = /* @__PURE__ */ c("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), Ye = [
162
160
  Le
163
161
  ];
164
162
  function Ze(e, t) {
165
- return v(), E("svg", qe, [...Ye]);
163
+ return v(), f("svg", ze, [...Ye]);
166
164
  }
167
- const je = { render: Ze }, L = [
165
+ const je = { render: Ze }, Y = [
168
166
  "years",
169
167
  "months",
170
168
  "weeks",
171
169
  "days"
172
- ], Y = [
170
+ ], Z = [
173
171
  "hours",
174
172
  "minutes",
175
173
  "seconds",
176
174
  "milliseconds"
177
- ], T = {
175
+ ], g = {
178
176
  years: { min: 0, max: Number.MAX_SAFE_INTEGER },
179
177
  months: { min: 0, max: Number.MAX_SAFE_INTEGER },
180
178
  weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
@@ -183,19 +181,19 @@ const je = { render: Ze }, L = [
183
181
  minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
184
182
  seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
185
183
  milliseconds: { min: 0, max: 999 }
186
- }, Z = (e, t) => t === "DATE" ? {
184
+ }, j = (e, t) => t === "DATE" ? {
187
185
  type: "DATE",
188
186
  interval: e.periodPart
189
187
  } : {
190
188
  type: "TIME",
191
189
  interval: e.durationPart
192
- }, A = (e, t) => e.type === "DATE" ? {
190
+ }, w = (e, t) => e.type === "DATE" ? {
193
191
  ...t,
194
192
  periodPart: e.interval
195
193
  } : {
196
194
  ...t,
197
195
  durationPart: e.interval
198
- }, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-ed4a2407"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */ p("span", { class: "input-title" }, "Duration", -1)), tt = { class: "ascending-descending-switch-container" }, at = { class: "input-grid" }, nt = { class: "input-label" }, st = { class: "input-label" }, ot = { class: "accept-controls" }, lt = /* @__PURE__ */ F({
196
+ }, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-be88efe3"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */ c("span", { class: "input-title" }, "Duration", -1)), tt = { class: "ascending-descending-switch-container" }, at = { class: "input-grid" }, nt = { class: "input-label" }, st = { class: "input-label" }, ot = { class: "accept-controls" }, lt = /* @__PURE__ */ F({
199
197
  __name: "IntervalInputPopoverContent",
200
198
  props: /* @__PURE__ */ G({
201
199
  format: {},
@@ -212,44 +210,43 @@ const je = { render: Ze }, L = [
212
210
  }),
213
211
  emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
214
212
  setup(e, { emit: t }) {
215
- const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = D(() => {
216
- const u = i.value === "DATE" ? L : Y, m = i.value === "DATE" ? u.map(
217
- (o) => s.value.periodPart[o]
218
- ) : u.map(
219
- (o) => s.value.durationPart[o]
213
+ const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = y(() => {
214
+ const p = i.value === "DATE" ? Y : Z, E = i.value === "DATE" ? p.map(
215
+ (r) => s.value.periodPart[r]
216
+ ) : p.map(
217
+ (r) => s.value.durationPart[r]
220
218
  );
221
- for (let o = 0; o < m.length; o++)
222
- if (m[o] < T[u[o]].min || m[o] > T[u[o]].max)
219
+ for (let r = 0; r < E.length; r++) {
220
+ const _ = p[r], $ = E[r];
221
+ if (isNaN($) || $ < g[_].min || $ > g[_].max)
223
222
  return {
224
223
  valid: !1,
225
- reason: `${O(u[o])} out of bounds.`
224
+ reason: `${C(_)} out of bounds.`
226
225
  };
227
- return m.every((o) => o === 0) ? {
228
- valid: !1,
229
- reason: "All values may not be zero."
230
- } : { valid: !0 };
231
- }), _ = D({
226
+ }
227
+ return { valid: !0 };
228
+ }), h = y({
232
229
  get() {
233
230
  return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
234
231
  },
235
- set(u) {
236
- s.value.periodPart.negative = u === "DESCENDING", s.value.durationPart.negative = u === "DESCENDING";
232
+ set(p) {
233
+ s.value.periodPart.negative = p === "DESCENDING", s.value.durationPart.negative = p === "DESCENDING";
237
234
  }
238
- }), y = () => {
235
+ }), x = () => {
239
236
  a(
240
237
  "commit",
241
238
  i.value,
242
239
  s.value,
243
- _.value
240
+ h.value
244
241
  );
245
242
  };
246
- return (u, m) => (v(), E(V, null, [
247
- p("span", Qe, [
243
+ return (p, E) => (v(), f(N, null, [
244
+ c("span", Qe, [
248
245
  et,
249
- n.format === "DATE_OR_TIME" ? (v(), j(q, {
246
+ n.format === "DATE_OR_TIME" ? (v(), J(z, {
250
247
  key: 0,
251
248
  modelValue: i.value,
252
- "onUpdate:modelValue": m[0] || (m[0] = (o) => i.value = o),
249
+ "onUpdate:modelValue": E[0] || (E[0] = (r) => i.value = r),
253
250
  "possible-values": [
254
251
  { id: "DATE", text: "Date" },
255
252
  { id: "TIME", text: "Time" }
@@ -257,10 +254,10 @@ const je = { render: Ze }, L = [
257
254
  compact: ""
258
255
  }, null, 8, ["modelValue"])) : B("", !0)
259
256
  ]),
260
- P(p("div", tt, [
261
- I(q, {
262
- modelValue: _.value,
263
- "onUpdate:modelValue": m[1] || (m[1] = (o) => _.value = o),
257
+ R(c("div", tt, [
258
+ T(z, {
259
+ modelValue: h.value,
260
+ "onUpdate:modelValue": E[1] || (E[1] = (r) => h.value = r),
264
261
  compact: "",
265
262
  "possible-values": [
266
263
  { id: "ASCENDING", text: "Forward" },
@@ -268,56 +265,56 @@ const je = { render: Ze }, L = [
268
265
  ]
269
266
  }, null, 8, ["modelValue"])
270
267
  ], 512), [
271
- [b, u.allowDescending]
268
+ [b, p.allowDescending]
272
269
  ]),
273
- p("div", at, [
274
- (v(!0), E(V, null, z(c(L), (o) => P((v(), E("span", {
275
- key: o,
270
+ c("div", at, [
271
+ (v(!0), f(N, null, K(u(Y), (r) => R((v(), f("span", {
272
+ key: r,
276
273
  class: "labeled-date-time-input"
277
274
  }, [
278
- p("span", nt, w(c(O)(o)), 1),
279
- I(W, {
280
- modelValue: s.value.periodPart[o],
281
- "onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
282
- min: c(T)[o].min,
283
- max: c(T)[o].max,
275
+ c("span", nt, O(u(C)(r)), 1),
276
+ T(q, {
277
+ modelValue: s.value.periodPart[r],
278
+ "onUpdate:modelValue": (_) => s.value.periodPart[r] = _,
279
+ min: u(g)[r].min,
280
+ max: u(g)[r].max,
284
281
  compact: "",
285
282
  type: "integer"
286
283
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
287
284
  ], 512)), [
288
285
  [b, i.value === "DATE"]
289
286
  ])), 128)),
290
- (v(!0), E(V, null, z(c(Y), (o) => P((v(), E("span", {
291
- key: o,
287
+ (v(!0), f(N, null, K(u(Z), (r) => R((v(), f("span", {
288
+ key: r,
292
289
  class: "labeled-date-time-input"
293
290
  }, [
294
- p("span", st, w(c(O)(o)), 1),
295
- I(W, {
296
- "model-value": s.value.durationPart[o],
297
- min: c(T)[o].min,
298
- max: c(T)[o].max,
291
+ c("span", st, O(u(C)(r)), 1),
292
+ T(q, {
293
+ "model-value": s.value.durationPart[r],
294
+ min: u(g)[r].min,
295
+ max: u(g)[r].max,
299
296
  compact: "",
300
297
  type: "integer",
301
- "onUpdate:modelValue": (x) => {
302
- s.value.durationPart[o] = x;
298
+ "onUpdate:modelValue": (_) => {
299
+ s.value.durationPart[r] = _;
303
300
  }
304
301
  }, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
305
302
  ], 512)), [
306
303
  [b, i.value === "TIME"]
307
304
  ])), 128))
308
305
  ]),
309
- p("div", ot, [
310
- I(He, {
306
+ c("div", ot, [
307
+ T(He, {
311
308
  text: d.value.valid ? "" : d.value.reason
312
309
  }, {
313
310
  default: X(() => [
314
- I(Oe, {
311
+ T(Oe, {
315
312
  primary: "",
316
313
  disabled: !d.value.valid,
317
- onClick: y
314
+ onClick: x
318
315
  }, {
319
316
  default: X(() => [
320
- ge(" Set " + w(i.value.toLowerCase()) + " interval ", 1)
317
+ ge(" Set duration ")
321
318
  ]),
322
319
  _: 1
323
320
  }, 8, ["disabled"])
@@ -327,7 +324,7 @@ const je = { render: Ze }, L = [
327
324
  ])
328
325
  ], 64));
329
326
  }
330
- }), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-ed4a2407"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
327
+ }), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-be88efe3"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
331
328
  key: 0,
332
329
  class: "invalid-marker"
333
330
  }, ct = ["disabled"], pt = {}, vt = /* @__PURE__ */ F({
@@ -346,23 +343,23 @@ const je = { render: Ze }, L = [
346
343
  }),
347
344
  emits: ["update:modelValue"],
348
345
  setup(e) {
349
- const t = e, a = k(e, "modelValue"), n = h(
346
+ const t = e, a = k(e, "modelValue"), n = I(
350
347
  (() => {
351
348
  if (t.format === "DATE_OR_TIME") {
352
- const l = C(
349
+ const o = S(
353
350
  a.value,
354
351
  "DATE_OR_TIME"
355
352
  );
356
- return l.valid ? l.type : "DATE";
353
+ return o.valid ? o.type : "DATE";
357
354
  } else
358
355
  return t.format;
359
356
  })()
360
- ), i = D(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s = h(
357
+ ), i = y(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s = I(
361
358
  (() => {
362
- const l = g(
359
+ const o = D(
363
360
  a.value
364
361
  );
365
- return A(l, {
362
+ return w(o, {
366
363
  periodPart: {
367
364
  negative: !1,
368
365
  years: 0,
@@ -379,69 +376,69 @@ const je = { render: Ze }, L = [
379
376
  }
380
377
  });
381
378
  })()
382
- ), d = h(
383
- M(
384
- g(a.value)
379
+ ), d = I(
380
+ P(
381
+ D(a.value)
385
382
  )
386
- ), _ = D(() => {
387
- const l = C(
383
+ ), h = y(() => {
384
+ const o = S(
388
385
  d.value,
389
386
  "DATE_OR_TIME"
390
387
  );
391
- return l.valid && (t.allowDescending || !l.negative) && !l.zero && (l.type === n.value || t.format === "DATE_OR_TIME");
392
- }), y = h(null), u = h(null), m = h(null), o = (l, r) => {
393
- const f = Z(
394
- l,
395
- r
388
+ return o.valid && (t.allowDescending || !o.negative) && (o.type === n.value || t.format === "DATE_OR_TIME");
389
+ }), x = I(null), p = I(null), E = I(null), r = (o, l) => {
390
+ const m = j(
391
+ o,
392
+ l
396
393
  );
397
- d.value = M(f), a.value = S(f), n.value = r, s.value = l;
398
- }, x = () => {
399
- s.value = A(
400
- g(a.value),
394
+ d.value = P(m), a.value = V(m), n.value = l, s.value = o;
395
+ }, _ = () => {
396
+ s.value = w(
397
+ D(a.value),
401
398
  s.value
402
399
  );
403
- }, pe = (l) => {
404
- const r = C(
405
- l,
400
+ }, $ = (o) => {
401
+ const l = S(
402
+ o,
406
403
  "DATE_OR_TIME"
407
404
  );
408
- if (!r.valid || r.zero || !t.allowDescending && r.negative || r.type !== n.value && t.format !== "DATE_OR_TIME")
405
+ if (!l.valid || !t.allowDescending && l.negative || l.type !== n.value && t.format !== "DATE_OR_TIME")
409
406
  return;
410
- const f = We(
411
- l
407
+ const m = qe(
408
+ o
412
409
  );
413
- s.value = A(
414
- f,
410
+ s.value = w(
411
+ m,
415
412
  s.value
416
- ), a.value = S(f), n.value = r.type, d.value = M(f);
417
- }, ve = (l) => {
418
- const r = g(l);
419
- d.value = M(r), s.value = A(
420
- r,
413
+ ), a.value = V(m), n.value = l.type, d.value = P(m);
414
+ }, ve = (o) => {
415
+ const l = D(o);
416
+ d.value = P(l), s.value = w(
417
+ l,
421
418
  s.value
422
- ), a.value = l;
423
- }, me = (l) => {
424
- const r = Z(
419
+ ), a.value = o;
420
+ }, me = (o) => {
421
+ const l = j(
425
422
  s.value,
426
- l
423
+ o
427
424
  );
428
- d.value = M(r), a.value = S(r), n.value = l;
429
- }, fe = (l) => {
430
- l !== "DATE_OR_TIME" && me(l);
431
- }, $ = h(!1);
432
- K(() => t.format, fe), K(a, ve);
433
- const U = (l) => {
434
- pe(l);
435
- }, R = (l, r) => {
436
- l && r ? o(
437
- r.popoverValues,
438
- r.usedFormat
439
- ) : x(), $.value = !1;
425
+ d.value = P(l), a.value = V(l), n.value = o;
426
+ }, fe = (o) => {
427
+ o !== "DATE_OR_TIME" && me(o);
428
+ }, M = I(!1);
429
+ W(() => t.format, fe), W(a, ve);
430
+ const U = (o) => {
431
+ $(o);
432
+ }, A = (o, l) => {
433
+ o && l ? r(
434
+ l.popoverValues,
435
+ l.usedFormat
436
+ ) : _(), M.value = !1;
440
437
  };
441
- Ae(y, () => R(!1), {
442
- ignore: [u]
443
- }), we("Escape", () => R(!1));
444
- const { floatingStyles: Ee, update: _e } = be(u, y, {
438
+ Ae(x, () => A(!1), {
439
+ ignore: [p]
440
+ }), we("Escape", () => A(!1));
441
+ const { floatingStyles: Ee, update: _e } = be(p, x, {
445
442
  middleware: [
446
443
  Ne(),
447
444
  // move left/right to keep it on screen
@@ -461,62 +458,62 @@ const je = { render: Ze }, L = [
461
458
  placement: "top-end",
462
459
  whileElementsMounted: Ce
463
460
  });
464
- return (l, r) => (v(), E("div", null, [
465
- p("div", {
466
- class: xe(["wrapper", { disabled: l.disabled, compact: l.compact }])
461
+ return (o, l) => (v(), f("div", null, [
462
+ c("div", {
463
+ class: xe(["wrapper", { disabled: o.disabled, compact: o.compact }])
467
464
  }, [
468
- p("span", it, [
469
- P(p("input", {
465
+ c("span", it, [
466
+ R(c("input", {
470
467
  ref_key: "inputTextFieldRef",
471
- ref: m,
472
- "onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f),
468
+ ref: E,
469
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => d.value = m),
473
470
  type: "text",
474
- disabled: l.disabled,
471
+ disabled: o.disabled,
475
472
  placeholder: i.value,
476
473
  spellcheck: "false",
477
- onFocus: r[1] || (r[1] = (f) => $.value = !1),
478
- onFocusout: r[2] || (r[2] = () => U(d.value)),
479
- onKeypress: r[3] || (r[3] = $e(() => U(d.value), ["enter"]))
474
+ onFocus: l[1] || (l[1] = (m) => M.value = !1),
475
+ onFocusout: l[2] || (l[2] = () => U(d.value)),
476
+ onKeypress: l[3] || (l[3] = $e(() => U(d.value), ["enter"]))
480
477
  }, null, 40, dt), [
481
478
  [Me, d.value]
482
479
  ]),
483
- _.value ? B("", !0) : (v(), E("span", ut)),
484
- p("button", {
480
+ h.value ? B("", !0) : (v(), f("span", ut)),
481
+ c("button", {
485
482
  ref_key: "togglePopoverButtonRef",
486
- ref: u,
483
+ ref: p,
487
484
  class: "trigger-popover-button",
488
- disabled: l.disabled,
489
- onClick: r[4] || (r[4] = () => {
490
- $.value ? R(!1) : ($.value = !0, c(_e)());
485
+ disabled: o.disabled,
486
+ onClick: l[4] || (l[4] = () => {
487
+ M.value ? A(!1) : (M.value = !0, u(_e)());
491
488
  })
492
489
  }, [
493
- I(c(je))
490
+ T(u(je))
494
491
  ], 8, ct)
495
492
  ])
496
493
  ], 2),
497
- P(p("div", {
494
+ R(c("div", {
498
495
  ref_key: "durationInputPopoverRef",
499
- ref: y,
496
+ ref: x,
500
497
  class: "control-popup",
501
- style: Pe(c(Ee))
498
+ style: Pe(u(Ee))
502
499
  }, [
503
- I(rt, {
500
+ T(rt, {
504
501
  "model-value": s.value,
505
502
  "used-format": n.value,
506
503
  format: t.format,
507
504
  "allow-descending": t.allowDescending,
508
- onCommit: r[5] || (r[5] = (f, he, Ie) => R(!0, {
509
- usedFormat: f,
505
+ onCommit: l[5] || (l[5] = (m, he, Ie) => A(!0, {
506
+ usedFormat: m,
510
507
  popoverValues: he,
511
508
  directionality: Ie
512
509
  }))
513
510
  }, null, 8, ["model-value", "used-format", "format", "allow-descending"])
514
511
  ], 4), [
515
- [b, $.value]
512
+ [b, M.value]
516
513
  ])
517
514
  ]));
518
515
  }
519
- }), mt = /* @__PURE__ */ H(vt, [["__scopeId", "data-v-0dd589ba"]]), Dt = /* @__PURE__ */ F({
516
+ }), mt = /* @__PURE__ */ H(vt, [["__scopeId", "data-v-098d6ad9"]]), Dt = /* @__PURE__ */ F({
520
517
  __name: "IntervalControl",
521
518
  props: {
522
519
  control: {},
@@ -529,19 +526,19 @@ const je = { render: Ze }, L = [
529
526
  },
530
527
  setup(e) {
531
528
  var i;
532
- const t = e, a = D(() => t.control.uischema.options), n = Re(
533
- D(() => {
529
+ const t = e, a = y(() => t.control.uischema.options), n = Re(
530
+ y(() => {
534
531
  var s;
535
532
  return (s = a.value) == null ? void 0 : s.intervalTypeProvider;
536
533
  }),
537
534
  ((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
538
535
  );
539
- return (s, d) => (v(), j(c(mt), {
536
+ return (s, d) => (v(), J(u(mt), {
540
537
  id: s.labelForId,
541
538
  compact: "",
542
539
  disabled: s.disabled,
543
540
  "model-value": s.control.data,
544
- format: c(n),
541
+ format: u(n),
545
542
  "onUpdate:modelValue": s.changeValue
546
543
  }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
547
544
  }