@knime/jsonforms 1.3.2 → 1.3.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.
- package/CHANGELOG.md +16 -0
- package/dist/{AnyOfTwinlist-DTbSINwn.js → AnyOfTwinlist-DWTKh8y3.js} +1 -1
- package/dist/{BaseButton-CqVt12ca.js → BaseButton-XbIT7vaM.js} +1 -1
- package/dist/{Button-DRN3UFmy.js → Button-B4lMhq_V.js} +2 -2
- package/dist/{Checkbox-D5t33oix.js → Checkbox-DA-MBRku.js} +1 -1
- package/dist/{CheckboxControl-Bf6kuhO_.js → CheckboxControl-BSwdtIp0.js} +3 -3
- package/dist/{Checkboxes-DG26cQn9.js → Checkboxes-DmVAa2ou.js} +2 -2
- package/dist/{CheckboxesControl-CDuaKLTI.js → CheckboxesControl-BXN98kzV.js} +2 -2
- package/dist/{ColumnFilter-DOblIU5V.js → ColumnFilter-BlisoyzI.js} +1 -1
- package/dist/{ColumnSelect-C5Vot-7w.js → ColumnSelect-CedGiNBe.js} +3 -3
- package/dist/{ComboBoxControl-D3uKgWxy.js → ComboBoxControl-MI4pCBAe.js} +3 -3
- package/dist/{DateControl-MHXMJlTJ.js → DateControl-BNVNufrC.js} +1 -1
- package/dist/{DateTimeControl-cX7fA7OG.js → DateTimeControl-Cn60Rv64.js} +1 -1
- package/dist/DateTimeFormatPickerControl-Bo56MUDs.js +372 -0
- package/dist/{DateTimeInput-DHGkDRzN.js → DateTimeInput-6MlxDW9w.js} +7 -7
- package/dist/{Dropdown-BLYiaMgd.js → Dropdown-DmB1_gOb.js} +4 -4
- package/dist/{DropdownControl-iyJUn7Ql.js → DropdownControl-C514fY38.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-Cu6ivFMs.js → DropdownControl.vue_vue_type_script_setup_true_lang-DRa2Qfn0.js} +6 -6
- package/dist/{ErrorMessage-DxLXwOpE.js → ErrorMessage-BIc7kWRv.js} +1 -1
- package/dist/{FunctionButton-DdJAkJsm.js → FunctionButton-DR3tnO8v.js} +2 -2
- package/dist/{HorizontalLayout-BYb10Ov9.js → HorizontalLayout-DOWhO-Np.js} +1 -1
- package/dist/{InputField-BHKuSx3_.js → InputField-BBusFaFX.js} +1 -1
- package/dist/{IntegerControl-BjbcUybV.js → IntegerControl-DiVoD71I.js} +1 -1
- package/dist/{IntervalControl-CS_h9XOX.js → IntervalControl-PtcB3UIs.js} +141 -124
- package/dist/{MultiselectListBox-BcZ532yc.js → MultiselectListBox-DG7_PSXS.js} +1 -1
- package/dist/{NameFilter-Bavj6R5Y.js → NameFilter-CQXSBuy9.js} +1 -1
- package/dist/{NumberControl-B1wIJnhb.js → NumberControl-DWM2Kc--.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-NYrKeYNV.js → NumberControlBase.vue_vue_type_script_setup_true_lang-7QXxK9Yw.js} +2 -2
- package/dist/{NumberInput-Bl3PCp5A.js → NumberInput-FO9pUvkF.js} +1 -1
- package/dist/{OneOfDropdown-C1WccIK0.js → OneOfDropdown-C4GCURw-.js} +1 -1
- package/dist/{RadioControl-C-q11JJV.js → RadioControl-DvVlSLji.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-4mqiIYKp.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DuCaPGTf.js} +2 -2
- package/dist/{RichTextControl-BobNk1o_.js → RichTextControl-BnrjDfVq.js} +6 -6
- package/dist/{SectionLayout-DEAqT_bA.js → SectionLayout-DT8SCmqV.js} +2 -2
- package/dist/{SimpleButtonControl-BVgbUS6h.js → SimpleButtonControl-CJClTcRE.js} +2 -2
- package/dist/{SimpleTwinlistControl-BNFaO1HE.js → SimpleTwinlistControl-c3bpn8vI.js} +2 -2
- package/dist/{SortListControl-BNaViIum.js → SortListControl-CqCbP8e7.js} +8 -8
- package/dist/{TextAreaControl-D7EEzBfn.js → TextAreaControl-zeNcoIcU.js} +1 -1
- package/dist/{TextControl-BVD55xx8.js → TextControl-CmfvGpC9.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BOPE53CM.js → TextControl.vue_vue_type_script_setup_true_lang-BsaM_RO7.js} +3 -3
- package/dist/{TimeControl-3tSDqwpV.js → TimeControl-R-BGo2m5.js} +1 -1
- package/dist/{TwinlistControl-BtNowjdj.js → TwinlistControl-Rnep4Y82.js} +4 -4
- package/dist/{TwinlistLoadingInfo-Q2GmTReg.js → TwinlistLoadingInfo-DffSqS06.js} +6 -6
- package/dist/{ValueSwitch-D7c7AXNY.js → ValueSwitch-qtmPNeHX.js} +1 -1
- package/dist/{ValueSwitchControl-DkcDldIk.js → ValueSwitchControl-DS_FplBR.js} +1 -1
- package/dist/{VerticalLayout-QYNWLZz_.js → VerticalLayout-GBZoqIKf.js} +2 -2
- package/dist/{VerticalLayoutBase-CU69CYxp.js → VerticalLayoutBase-965sKTWy.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Cnf1NQ_I.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js} +29 -29
- package/dist/{ZonedDateTimeControl-BFzw99IS.js → ZonedDateTimeControl-BIhaQkam.js} +3 -3
- package/dist/{_baseAssignValue-DFfqrGww.js → _baseAssignValue-ZnU9dOPT.js} +1 -1
- package/dist/{_baseEach-BYHlqFLx.js → _baseEach-ChWAGFEO.js} +2 -2
- package/dist/{_baseIsEqual-D9grrbHy.js → _baseIsEqual-CmT75QGB.js} +3 -3
- package/dist/{_baseIteratee-DG1DF_X7.js → _baseIteratee-7U-WREQI.js} +3 -3
- package/dist/{_getTag-q9TxpB0c.js → _getTag-COTGx1U7.js} +3 -3
- package/dist/{isSymbol-Bikk6XGe.js → isSymbol--vHbw63w.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +6 -6
- package/dist/{svgWithTitle-DcZmbuza.js → svgWithTitle-mUT84Y1x.js} +1 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-CfMbiIMn.js → toString-zKWZpxPQ.js} +2 -2
- package/package.json +3 -3
- package/dist/DateTimeFormatPickerControl-DNEwM4ca.js +0 -392
- package/dist/Tooltip-CDnPksH1.js +0 -24
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { o as
|
|
4
|
-
import { u as
|
|
5
|
-
import { F as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { openBlock as p, createElementBlock as E, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as v, 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_03d90ec1_lang-C5uGdZmM.js";
|
|
3
|
+
import { o as Ae, a as we } from "./index-CkuSIXs2.js";
|
|
4
|
+
import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
|
+
import { F as Oe } from "./FunctionButton-DR3tnO8v.js";
|
|
6
|
+
import { N as W } from "./NumberInput-FO9pUvkF.js";
|
|
7
|
+
import { V as q } from "./ValueSwitch-qtmPNeHX.js";
|
|
8
|
+
const Ge = {
|
|
9
|
+
name: "Tooltip",
|
|
10
|
+
props: {
|
|
11
|
+
text: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, ke = { class: "tooltip" }, Be = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "text"
|
|
19
|
+
};
|
|
20
|
+
function Fe(e, t, a, n, i, s) {
|
|
21
|
+
return p(), E("div", ke, [
|
|
22
|
+
Te(e.$slots, "default", {}, void 0, !0),
|
|
23
|
+
a.text ? (p(), E("span", Be, w(a.text), 1)) : B("", !0)
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), J = (e, t) => ({
|
|
10
27
|
negative: e,
|
|
11
28
|
years: parseInt(t[1] ?? "0", 10),
|
|
12
29
|
months: parseInt(t[2] ?? "0", 10),
|
|
@@ -22,18 +39,18 @@ const J = (e, t) => ({
|
|
|
22
39
|
seconds: parseInt(t[3] ?? "0", 10),
|
|
23
40
|
milliseconds: a
|
|
24
41
|
};
|
|
25
|
-
},
|
|
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) => {
|
|
26
43
|
let t = "P";
|
|
27
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;
|
|
28
|
-
},
|
|
45
|
+
}, M = (e) => {
|
|
29
46
|
const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
|
|
30
47
|
let a = "";
|
|
31
48
|
if (e.type === "DATE") {
|
|
32
|
-
if (
|
|
49
|
+
if (N(e))
|
|
33
50
|
return "0 days";
|
|
34
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");
|
|
35
52
|
} else {
|
|
36
|
-
if (
|
|
53
|
+
if (N(e))
|
|
37
54
|
return "0 seconds";
|
|
38
55
|
a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
|
|
39
56
|
const n = e.interval.milliseconds === 0;
|
|
@@ -46,33 +63,33 @@ const J = (e, t) => ({
|
|
|
46
63
|
), ie = new RegExp(
|
|
47
64
|
`^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
|
|
48
65
|
"i"
|
|
49
|
-
),
|
|
66
|
+
), Ue = new RegExp(
|
|
50
67
|
`^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
51
68
|
"i"
|
|
52
|
-
),
|
|
69
|
+
), ze = new RegExp(
|
|
53
70
|
`^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
|
|
54
71
|
"i"
|
|
55
|
-
),
|
|
72
|
+
), Xe = new RegExp(
|
|
56
73
|
`^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
57
74
|
"i"
|
|
58
|
-
),
|
|
75
|
+
), Ke = new RegExp(
|
|
59
76
|
`^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
|
|
60
77
|
"i"
|
|
61
78
|
), de = (e) => {
|
|
62
79
|
if (e = e == null ? void 0 : e.trim(), !e)
|
|
63
80
|
throw new Error("Empty interval string");
|
|
64
|
-
const t = re.exec(e), a =
|
|
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;
|
|
65
82
|
if (d && s)
|
|
66
83
|
throw new Error("Ambiguous time format");
|
|
67
84
|
if (s)
|
|
68
85
|
return {
|
|
69
86
|
type: "DATE",
|
|
70
|
-
interval: J(
|
|
87
|
+
interval: J(_, s)
|
|
71
88
|
};
|
|
72
89
|
if (d)
|
|
73
90
|
return {
|
|
74
91
|
type: "TIME",
|
|
75
|
-
interval: Q(
|
|
92
|
+
interval: Q(_, d)
|
|
76
93
|
};
|
|
77
94
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
78
95
|
}, ue = (e, t) => {
|
|
@@ -83,7 +100,7 @@ const J = (e, t) => ({
|
|
|
83
100
|
valid: !0,
|
|
84
101
|
type: n,
|
|
85
102
|
negative: i,
|
|
86
|
-
zero:
|
|
103
|
+
zero: N(a)
|
|
87
104
|
};
|
|
88
105
|
} catch {
|
|
89
106
|
return { valid: !1 };
|
|
@@ -117,12 +134,12 @@ const J = (e, t) => ({
|
|
|
117
134
|
valid: !0,
|
|
118
135
|
type: n,
|
|
119
136
|
negative: i,
|
|
120
|
-
zero:
|
|
137
|
+
zero: N(a)
|
|
121
138
|
};
|
|
122
139
|
} catch {
|
|
123
140
|
return { valid: !1 };
|
|
124
141
|
}
|
|
125
|
-
},
|
|
142
|
+
}, We = (e) => {
|
|
126
143
|
const t = ce(e, "DATE_OR_TIME"), a = ue(
|
|
127
144
|
e,
|
|
128
145
|
"DATE_OR_TIME"
|
|
@@ -135,29 +152,29 @@ const J = (e, t) => ({
|
|
|
135
152
|
}, C = (e, t) => {
|
|
136
153
|
const a = ce(e, t), n = ue(e, t);
|
|
137
154
|
return a.valid ? a : n.valid ? n : { valid: !1 };
|
|
138
|
-
},
|
|
155
|
+
}, qe = {
|
|
139
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
140
157
|
fill: "none",
|
|
141
158
|
stroke: "#000",
|
|
142
159
|
"stroke-linejoin": "round",
|
|
143
160
|
viewBox: "0 0 32 32"
|
|
144
|
-
},
|
|
145
|
-
|
|
161
|
+
}, Le = /* @__PURE__ */ 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), Ye = [
|
|
162
|
+
Le
|
|
146
163
|
];
|
|
147
|
-
function
|
|
148
|
-
return
|
|
164
|
+
function Ze(e, t) {
|
|
165
|
+
return p(), E("svg", qe, [...Ye]);
|
|
149
166
|
}
|
|
150
|
-
const
|
|
167
|
+
const je = { render: Ze }, L = [
|
|
151
168
|
"years",
|
|
152
169
|
"months",
|
|
153
170
|
"weeks",
|
|
154
171
|
"days"
|
|
155
|
-
],
|
|
172
|
+
], Y = [
|
|
156
173
|
"hours",
|
|
157
174
|
"minutes",
|
|
158
175
|
"seconds",
|
|
159
176
|
"milliseconds"
|
|
160
|
-
],
|
|
177
|
+
], T = {
|
|
161
178
|
years: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
162
179
|
months: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
163
180
|
weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
@@ -166,19 +183,19 @@ const We = { render: Ke }, W = [
|
|
|
166
183
|
minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
167
184
|
seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
168
185
|
milliseconds: { min: 0, max: 999 }
|
|
169
|
-
},
|
|
186
|
+
}, Z = (e, t) => t === "DATE" ? {
|
|
170
187
|
type: "DATE",
|
|
171
188
|
interval: e.periodPart
|
|
172
189
|
} : {
|
|
173
190
|
type: "TIME",
|
|
174
191
|
interval: e.durationPart
|
|
175
|
-
},
|
|
192
|
+
}, A = (e, t) => e.type === "DATE" ? {
|
|
176
193
|
...t,
|
|
177
194
|
periodPart: e.interval
|
|
178
195
|
} : {
|
|
179
196
|
...t,
|
|
180
197
|
durationPart: e.interval
|
|
181
|
-
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
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__ */ v("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({
|
|
182
199
|
__name: "IntervalInputPopoverContent",
|
|
183
200
|
props: /* @__PURE__ */ G({
|
|
184
201
|
format: {},
|
|
@@ -196,22 +213,22 @@ const We = { render: Ke }, W = [
|
|
|
196
213
|
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
197
214
|
setup(e, { emit: t }) {
|
|
198
215
|
const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = D(() => {
|
|
199
|
-
const u = i.value === "DATE" ?
|
|
216
|
+
const u = i.value === "DATE" ? L : Y, m = i.value === "DATE" ? u.map(
|
|
200
217
|
(o) => s.value.periodPart[o]
|
|
201
218
|
) : u.map(
|
|
202
219
|
(o) => s.value.durationPart[o]
|
|
203
220
|
);
|
|
204
|
-
for (let o = 0; o <
|
|
205
|
-
if (
|
|
221
|
+
for (let o = 0; o < m.length; o++)
|
|
222
|
+
if (m[o] < T[u[o]].min || m[o] > T[u[o]].max)
|
|
206
223
|
return {
|
|
207
224
|
valid: !1,
|
|
208
225
|
reason: `${O(u[o])} out of bounds.`
|
|
209
226
|
};
|
|
210
|
-
return
|
|
227
|
+
return m.every((o) => o === 0) ? {
|
|
211
228
|
valid: !1,
|
|
212
229
|
reason: "All values may not be zero."
|
|
213
230
|
} : { valid: !0 };
|
|
214
|
-
}),
|
|
231
|
+
}), _ = D({
|
|
215
232
|
get() {
|
|
216
233
|
return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
217
234
|
},
|
|
@@ -223,62 +240,62 @@ const We = { render: Ke }, W = [
|
|
|
223
240
|
"commit",
|
|
224
241
|
i.value,
|
|
225
242
|
s.value,
|
|
226
|
-
|
|
243
|
+
_.value
|
|
227
244
|
);
|
|
228
245
|
};
|
|
229
|
-
return (u,
|
|
230
|
-
v("span",
|
|
231
|
-
|
|
232
|
-
n.format === "DATE_OR_TIME" ? (
|
|
246
|
+
return (u, m) => (p(), E(V, null, [
|
|
247
|
+
v("span", Qe, [
|
|
248
|
+
et,
|
|
249
|
+
n.format === "DATE_OR_TIME" ? (p(), j(q, {
|
|
233
250
|
key: 0,
|
|
234
251
|
modelValue: i.value,
|
|
235
|
-
"onUpdate:modelValue":
|
|
252
|
+
"onUpdate:modelValue": m[0] || (m[0] = (o) => i.value = o),
|
|
236
253
|
"possible-values": [
|
|
237
254
|
{ id: "DATE", text: "Date" },
|
|
238
255
|
{ id: "TIME", text: "Time" }
|
|
239
256
|
],
|
|
240
257
|
compact: ""
|
|
241
|
-
}, null, 8, ["modelValue"])) :
|
|
258
|
+
}, null, 8, ["modelValue"])) : B("", !0)
|
|
242
259
|
]),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
modelValue:
|
|
246
|
-
"onUpdate:modelValue":
|
|
260
|
+
P(v("div", tt, [
|
|
261
|
+
I(q, {
|
|
262
|
+
modelValue: _.value,
|
|
263
|
+
"onUpdate:modelValue": m[1] || (m[1] = (o) => _.value = o),
|
|
247
264
|
compact: "",
|
|
248
265
|
"possible-values": [
|
|
249
|
-
{ id: "ASCENDING", text: "
|
|
250
|
-
{ id: "DESCENDING", text: "
|
|
266
|
+
{ id: "ASCENDING", text: "Forward" },
|
|
267
|
+
{ id: "DESCENDING", text: "Backward" }
|
|
251
268
|
]
|
|
252
269
|
}, null, 8, ["modelValue"])
|
|
253
270
|
], 512), [
|
|
254
|
-
[
|
|
271
|
+
[b, u.allowDescending]
|
|
255
272
|
]),
|
|
256
|
-
v("div",
|
|
257
|
-
(
|
|
273
|
+
v("div", at, [
|
|
274
|
+
(p(!0), E(V, null, z(c(L), (o) => P((p(), E("span", {
|
|
258
275
|
key: o,
|
|
259
276
|
class: "labeled-date-time-input"
|
|
260
277
|
}, [
|
|
261
|
-
v("span",
|
|
262
|
-
|
|
278
|
+
v("span", nt, w(c(O)(o)), 1),
|
|
279
|
+
I(W, {
|
|
263
280
|
modelValue: s.value.periodPart[o],
|
|
264
281
|
"onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
|
|
265
|
-
min: c(
|
|
266
|
-
max: c(
|
|
282
|
+
min: c(T)[o].min,
|
|
283
|
+
max: c(T)[o].max,
|
|
267
284
|
compact: "",
|
|
268
285
|
type: "integer"
|
|
269
286
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
270
287
|
], 512)), [
|
|
271
|
-
[
|
|
288
|
+
[b, i.value === "DATE"]
|
|
272
289
|
])), 128)),
|
|
273
|
-
(
|
|
290
|
+
(p(!0), E(V, null, z(c(Y), (o) => P((p(), E("span", {
|
|
274
291
|
key: o,
|
|
275
292
|
class: "labeled-date-time-input"
|
|
276
293
|
}, [
|
|
277
|
-
v("span",
|
|
278
|
-
|
|
294
|
+
v("span", st, w(c(O)(o)), 1),
|
|
295
|
+
I(W, {
|
|
279
296
|
"model-value": s.value.durationPart[o],
|
|
280
|
-
min: c(
|
|
281
|
-
max: c(
|
|
297
|
+
min: c(T)[o].min,
|
|
298
|
+
max: c(T)[o].max,
|
|
282
299
|
compact: "",
|
|
283
300
|
type: "integer",
|
|
284
301
|
"onUpdate:modelValue": (x) => {
|
|
@@ -286,21 +303,21 @@ const We = { render: Ke }, W = [
|
|
|
286
303
|
}
|
|
287
304
|
}, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
|
|
288
305
|
], 512)), [
|
|
289
|
-
[
|
|
306
|
+
[b, i.value === "TIME"]
|
|
290
307
|
])), 128))
|
|
291
308
|
]),
|
|
292
|
-
v("div",
|
|
293
|
-
|
|
309
|
+
v("div", ot, [
|
|
310
|
+
I(He, {
|
|
294
311
|
text: d.value.valid ? "" : d.value.reason
|
|
295
312
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
313
|
+
default: X(() => [
|
|
314
|
+
I(Oe, {
|
|
298
315
|
primary: "",
|
|
299
316
|
disabled: !d.value.valid,
|
|
300
317
|
onClick: y
|
|
301
318
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
319
|
+
default: X(() => [
|
|
320
|
+
ge(" Set " + w(i.value.toLowerCase()) + " interval ", 1)
|
|
304
321
|
]),
|
|
305
322
|
_: 1
|
|
306
323
|
}, 8, ["disabled"])
|
|
@@ -310,11 +327,11 @@ const We = { render: Ke }, W = [
|
|
|
310
327
|
])
|
|
311
328
|
], 64));
|
|
312
329
|
}
|
|
313
|
-
}),
|
|
330
|
+
}), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-ed4a2407"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
|
|
314
331
|
key: 0,
|
|
315
332
|
class: "invalid-marker"
|
|
316
|
-
},
|
|
317
|
-
...
|
|
333
|
+
}, ct = ["disabled"], vt = {}, pt = /* @__PURE__ */ F({
|
|
334
|
+
...vt,
|
|
318
335
|
__name: "IntervalInput",
|
|
319
336
|
props: /* @__PURE__ */ G({
|
|
320
337
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -345,7 +362,7 @@ const We = { render: Ke }, W = [
|
|
|
345
362
|
const l = g(
|
|
346
363
|
a.value
|
|
347
364
|
);
|
|
348
|
-
return
|
|
365
|
+
return A(l, {
|
|
349
366
|
periodPart: {
|
|
350
367
|
negative: !1,
|
|
351
368
|
years: 0,
|
|
@@ -363,23 +380,23 @@ const We = { render: Ke }, W = [
|
|
|
363
380
|
});
|
|
364
381
|
})()
|
|
365
382
|
), d = h(
|
|
366
|
-
|
|
383
|
+
M(
|
|
367
384
|
g(a.value)
|
|
368
385
|
)
|
|
369
|
-
),
|
|
386
|
+
), _ = D(() => {
|
|
370
387
|
const l = C(
|
|
371
388
|
d.value,
|
|
372
389
|
"DATE_OR_TIME"
|
|
373
390
|
);
|
|
374
391
|
return l.valid && (t.allowDescending || !l.negative) && !l.zero && (l.type === n.value || t.format === "DATE_OR_TIME");
|
|
375
|
-
}), y = h(null), u = h(null),
|
|
376
|
-
const
|
|
392
|
+
}), y = h(null), u = h(null), m = h(null), o = (l, r) => {
|
|
393
|
+
const f = Z(
|
|
377
394
|
l,
|
|
378
395
|
r
|
|
379
396
|
);
|
|
380
|
-
d.value =
|
|
397
|
+
d.value = M(f), a.value = S(f), n.value = r, s.value = l;
|
|
381
398
|
}, x = () => {
|
|
382
|
-
s.value =
|
|
399
|
+
s.value = A(
|
|
383
400
|
g(a.value),
|
|
384
401
|
s.value
|
|
385
402
|
);
|
|
@@ -390,50 +407,50 @@ const We = { render: Ke }, W = [
|
|
|
390
407
|
);
|
|
391
408
|
if (!r.valid || r.zero || !t.allowDescending && r.negative || r.type !== n.value && t.format !== "DATE_OR_TIME")
|
|
392
409
|
return;
|
|
393
|
-
const
|
|
410
|
+
const f = We(
|
|
394
411
|
l
|
|
395
412
|
);
|
|
396
|
-
s.value =
|
|
397
|
-
|
|
413
|
+
s.value = A(
|
|
414
|
+
f,
|
|
398
415
|
s.value
|
|
399
|
-
), a.value = S(
|
|
416
|
+
), a.value = S(f), n.value = r.type, d.value = M(f);
|
|
400
417
|
}, pe = (l) => {
|
|
401
418
|
const r = g(l);
|
|
402
|
-
d.value =
|
|
419
|
+
d.value = M(r), s.value = A(
|
|
403
420
|
r,
|
|
404
421
|
s.value
|
|
405
422
|
), a.value = l;
|
|
406
423
|
}, me = (l) => {
|
|
407
|
-
const r =
|
|
424
|
+
const r = Z(
|
|
408
425
|
s.value,
|
|
409
426
|
l
|
|
410
427
|
);
|
|
411
|
-
d.value =
|
|
428
|
+
d.value = M(r), a.value = S(r), n.value = l;
|
|
412
429
|
}, fe = (l) => {
|
|
413
430
|
l !== "DATE_OR_TIME" && me(l);
|
|
414
|
-
},
|
|
415
|
-
|
|
416
|
-
const
|
|
431
|
+
}, $ = h(!1);
|
|
432
|
+
K(() => t.format, fe), K(a, pe);
|
|
433
|
+
const U = (l) => {
|
|
417
434
|
ve(l);
|
|
418
435
|
}, R = (l, r) => {
|
|
419
436
|
l && r ? o(
|
|
420
437
|
r.popoverValues,
|
|
421
438
|
r.usedFormat
|
|
422
|
-
) : x(),
|
|
439
|
+
) : x(), $.value = !1;
|
|
423
440
|
};
|
|
424
|
-
|
|
441
|
+
Ae(y, () => R(!1), {
|
|
425
442
|
ignore: [u]
|
|
426
|
-
}),
|
|
427
|
-
const { floatingStyles: Ee, update:
|
|
443
|
+
}), we("Escape", () => R(!1));
|
|
444
|
+
const { floatingStyles: Ee, update: _e } = be(u, y, {
|
|
428
445
|
middleware: [
|
|
429
|
-
|
|
446
|
+
Ne(),
|
|
430
447
|
// move left/right to keep it on screen
|
|
431
|
-
|
|
448
|
+
Ve({
|
|
432
449
|
// flip it vertically to keep it on screen
|
|
433
450
|
mainAxis: !0,
|
|
434
451
|
crossAxis: !1
|
|
435
452
|
}),
|
|
436
|
-
|
|
453
|
+
Se({
|
|
437
454
|
// move it a bit away from the button vertically
|
|
438
455
|
mainAxis: 2,
|
|
439
456
|
// vertical
|
|
@@ -442,64 +459,64 @@ const We = { render: Ke }, W = [
|
|
|
442
459
|
})
|
|
443
460
|
],
|
|
444
461
|
placement: "top-end",
|
|
445
|
-
whileElementsMounted:
|
|
462
|
+
whileElementsMounted: Ce
|
|
446
463
|
});
|
|
447
|
-
return (l, r) => (
|
|
464
|
+
return (l, r) => (p(), E("div", null, [
|
|
448
465
|
v("div", {
|
|
449
|
-
class:
|
|
466
|
+
class: xe(["wrapper", { disabled: l.disabled, compact: l.compact }])
|
|
450
467
|
}, [
|
|
451
|
-
v("span",
|
|
452
|
-
|
|
468
|
+
v("span", it, [
|
|
469
|
+
P(v("input", {
|
|
453
470
|
ref_key: "inputTextFieldRef",
|
|
454
|
-
ref:
|
|
455
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
471
|
+
ref: m,
|
|
472
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f),
|
|
456
473
|
type: "text",
|
|
457
474
|
disabled: l.disabled,
|
|
458
475
|
placeholder: i.value,
|
|
459
476
|
spellcheck: "false",
|
|
460
|
-
onFocus: r[1] || (r[1] = (
|
|
461
|
-
onFocusout: r[2] || (r[2] = () =>
|
|
462
|
-
onKeypress: r[3] || (r[3] =
|
|
463
|
-
}, null, 40,
|
|
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"]))
|
|
480
|
+
}, null, 40, dt), [
|
|
464
481
|
[Me, d.value]
|
|
465
482
|
]),
|
|
466
|
-
|
|
483
|
+
_.value ? B("", !0) : (p(), E("span", ut)),
|
|
467
484
|
v("button", {
|
|
468
485
|
ref_key: "togglePopoverButtonRef",
|
|
469
486
|
ref: u,
|
|
470
487
|
class: "trigger-popover-button",
|
|
471
488
|
disabled: l.disabled,
|
|
472
489
|
onClick: r[4] || (r[4] = () => {
|
|
473
|
-
|
|
490
|
+
$.value ? R(!1) : ($.value = !0, c(_e)());
|
|
474
491
|
})
|
|
475
492
|
}, [
|
|
476
|
-
|
|
477
|
-
], 8,
|
|
493
|
+
I(c(je))
|
|
494
|
+
], 8, ct)
|
|
478
495
|
])
|
|
479
496
|
], 2),
|
|
480
|
-
|
|
497
|
+
P(v("div", {
|
|
481
498
|
ref_key: "durationInputPopoverRef",
|
|
482
499
|
ref: y,
|
|
483
500
|
class: "control-popup",
|
|
484
501
|
style: Pe(c(Ee))
|
|
485
502
|
}, [
|
|
486
|
-
|
|
503
|
+
I(rt, {
|
|
487
504
|
"model-value": s.value,
|
|
488
505
|
"used-format": n.value,
|
|
489
506
|
format: t.format,
|
|
490
507
|
"allow-descending": t.allowDescending,
|
|
491
|
-
onCommit: r[5] || (r[5] = (
|
|
492
|
-
usedFormat:
|
|
508
|
+
onCommit: r[5] || (r[5] = (f, he, Ie) => R(!0, {
|
|
509
|
+
usedFormat: f,
|
|
493
510
|
popoverValues: he,
|
|
494
|
-
directionality:
|
|
511
|
+
directionality: Ie
|
|
495
512
|
}))
|
|
496
513
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
497
514
|
], 4), [
|
|
498
|
-
[
|
|
515
|
+
[b, $.value]
|
|
499
516
|
])
|
|
500
517
|
]));
|
|
501
518
|
}
|
|
502
|
-
}),
|
|
519
|
+
}), mt = /* @__PURE__ */ H(pt, [["__scopeId", "data-v-0dd589ba"]]), Dt = /* @__PURE__ */ F({
|
|
503
520
|
__name: "IntervalControl",
|
|
504
521
|
props: {
|
|
505
522
|
control: {},
|
|
@@ -510,14 +527,14 @@ const We = { render: Ke }, W = [
|
|
|
510
527
|
},
|
|
511
528
|
setup(e) {
|
|
512
529
|
var i;
|
|
513
|
-
const t = e, a = D(() => t.control.uischema.options), n =
|
|
530
|
+
const t = e, a = D(() => t.control.uischema.options), n = Re(
|
|
514
531
|
D(() => {
|
|
515
532
|
var s;
|
|
516
533
|
return (s = a.value) == null ? void 0 : s.intervalTypeProvider;
|
|
517
534
|
}),
|
|
518
535
|
((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
|
|
519
536
|
);
|
|
520
|
-
return (s, d) => (
|
|
537
|
+
return (s, d) => (p(), j(c(mt), {
|
|
521
538
|
id: s.labelForId,
|
|
522
539
|
compact: "",
|
|
523
540
|
disabled: s.disabled,
|
|
@@ -528,5 +545,5 @@ const We = { render: Ke }, W = [
|
|
|
528
545
|
}
|
|
529
546
|
});
|
|
530
547
|
export {
|
|
531
|
-
|
|
548
|
+
Dt as default
|
|
532
549
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as h, createElementBlock as u, mergeProps as x, withModifiers as a, toDisplayString as y, toRef as p, watch as I, resolveComponent as v, normalizeClass as C, normalizeStyle as w, createElementVNode as f, withKeys as d, normalizeProps as V, guardReactiveProps as k, Fragment as H, renderList as B, createBlock as g, resolveDynamicComponent as D, createCommentVNode as b, createVNode as K } from "vue";
|
|
2
2
|
import { b as N } from "./index-CkuSIXs2.js";
|
|
3
|
-
import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js";
|
|
4
4
|
const A = (e, t) => {
|
|
5
5
|
let i, n = 0;
|
|
6
6
|
return (...r) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
|
|
2
|
-
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-7QXxK9Yw.js";
|
|
3
3
|
const m = /* @__PURE__ */ o({
|
|
4
4
|
__name: "NumberControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as d, createBlock as b, unref as t } from "vue";
|
|
2
|
-
import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
-
import { N as h } from "./NumberInput-
|
|
2
|
+
import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js";
|
|
3
|
+
import { N as h } from "./NumberInput-FO9pUvkF.js";
|
|
4
4
|
const V = /* @__PURE__ */ p({
|
|
5
5
|
__name: "NumberControlBase",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as p } from "./arrow-dropdown-DjUxzjqC.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { resolveComponent as h, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
|
|
4
|
-
import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
4
|
+
import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js";
|
|
5
5
|
const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
6
6
|
name: "NumberInput",
|
|
7
7
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as m, createBlock as f, mergeProps as u, unref as d, withCtx as e, renderSlot as s } from "vue";
|
|
2
2
|
import { o as h } from "./index-hm05O8UX.js";
|
|
3
|
-
import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-DRa2Qfn0.js";
|
|
4
4
|
const B = /* @__PURE__ */ l({
|
|
5
5
|
__name: "OneOfDropdown",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as r, createBlock as a, mergeProps as n } from "vue";
|
|
2
|
-
import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
2
|
+
import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-DuCaPGTf.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js";
|
|
4
4
|
const s = /* @__PURE__ */ e({
|
|
5
5
|
__name: "RadioControl",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as h, createCommentVNode as y } from "vue";
|
|
2
2
|
import { o as V } from "./index-hm05O8UX.js";
|
|
3
|
-
import { B as _, V as g } from "./ValueSwitch-
|
|
4
|
-
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { B as _, V as g } from "./ValueSwitch-qtmPNeHX.js";
|
|
4
|
+
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js";
|
|
5
5
|
const R = {
|
|
6
6
|
name: "RadioButtons",
|
|
7
7
|
components: {
|