@knime/jsonforms 1.1.1 → 1.2.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.
- package/CHANGELOG.md +12 -0
- package/dist/{AnyOfTwinlist-TuMq86ff.js → AnyOfTwinlist-Dq6xDVm-.js} +1 -1
- package/dist/{BaseButton-pEbx0E1_.js → BaseButton-B50ztYKs.js} +1 -1
- package/dist/{Button-BTRd9SzU.js → Button-CDpyBcur.js} +2 -2
- package/dist/{Checkbox-Cp9XICcc.js → Checkbox-DVu4Ia2f.js} +1 -1
- package/dist/{CheckboxControl-CKICU3l4.js → CheckboxControl-DVna6eta.js} +3 -3
- package/dist/{Checkboxes-DIoQpjpu.js → Checkboxes-C-WHZfcS.js} +2 -2
- package/dist/{CheckboxesControl-dZRncMBL.js → CheckboxesControl-BVkwo8Bd.js} +2 -2
- package/dist/{ColumnFilter-Bx-kuVI-.js → ColumnFilter-1JE4cZ4w.js} +1 -1
- package/dist/{ColumnSelect-CfHe2n3B.js → ColumnSelect-vklkU8Cr.js} +3 -3
- package/dist/{ComboBoxControl-DiOx9v30.js → ComboBoxControl-BgMXRO3U.js} +3 -3
- package/dist/{DateControl-C8qZN7It.js → DateControl-D54LaQtr.js} +1 -1
- package/dist/{DateTimeControl-DC9YfLZf.js → DateTimeControl-CUptybq1.js} +1 -1
- package/dist/DateTimeFormatPickerControl-Cjdeaugu.js +392 -0
- package/dist/{DateTimeInput-BiolANWk.js → DateTimeInput-CnKtgIkr.js} +7 -7
- package/dist/{Dropdown-C6W9ghx6.js → Dropdown-Bjm9YQq0.js} +4 -4
- package/dist/{DropdownControl-6r8-FLiv.js → DropdownControl-DgUgMte-.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-7pa6Z16F.js → DropdownControl.vue_vue_type_script_setup_true_lang-jU3m_I9u.js} +82 -78
- package/dist/{ErrorMessage-CXXlPYIJ.js → ErrorMessage-CWYnTLAc.js} +1 -1
- package/dist/{FunctionButton-Bji1-mPu.js → FunctionButton-CvNlvRJ8.js} +2 -2
- package/dist/{HorizontalLayout-BMkJhTX5.js → HorizontalLayout-BN4aIADe.js} +1 -1
- package/dist/{InputField-EQ_6v9Rc.js → InputField-CZMKxcTg.js} +1 -1
- package/dist/{IntegerControl-DHegOm2h.js → IntegerControl-D1JknlFj.js} +1 -1
- package/dist/{IntervalControl-B4yYQh9O.js → IntervalControl-De-8BBN6.js} +122 -139
- package/dist/{MultiselectListBox-BaKqfDxM.js → MultiselectListBox-BwTmzc6m.js} +1 -1
- package/dist/{NameFilter-hV9tZzGI.js → NameFilter-l3DO4hXb.js} +1 -1
- package/dist/{NumberControl-C2CihIOT.js → NumberControl-CBt1Npd9.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DkVjq5E_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DTm2USEY.js} +2 -2
- package/dist/{NumberInput-CGVh7aZK.js → NumberInput-ct335fdK.js} +1 -1
- package/dist/{OneOfDropdown-B9Pszw8W.js → OneOfDropdown-JW2-iz_C.js} +1 -1
- package/dist/{RadioControl-D4QxRdvn.js → RadioControl-Lc27_dkw.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CSBiMHdi.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DQnW3NpY.js} +2 -2
- package/dist/{RichTextControl-CZERr3ZR.js → RichTextControl-ojda9jZu.js} +2460 -2509
- package/dist/{SectionLayout-DmIkwJ33.js → SectionLayout-BaUz7QDr.js} +7 -7
- package/dist/{SimpleButtonControl-DRyeDIww.js → SimpleButtonControl-o49vup4b.js} +2 -2
- package/dist/{SimpleTwinlistControl-Bu3kPXby.js → SimpleTwinlistControl-3fayvGmb.js} +2 -2
- package/dist/{SortListControl-I4BPy6cl.js → SortListControl-a7AGVf-T.js} +8 -8
- package/dist/{TextAreaControl-Cl4NeHxN.js → TextAreaControl-BJmHTYkj.js} +1 -1
- package/dist/{TextControl-XnGjsmot.js → TextControl-d_gnCL8b.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-GicgFGzL.js +69 -0
- package/dist/{TimeControl-DeS3Aai_.js → TimeControl-C1_TR231.js} +1 -1
- package/dist/Tooltip-TdECUUzC.js +24 -0
- package/dist/{TwinlistControl-Dihnr0uQ.js → TwinlistControl-B1ru0Ll-.js} +8 -8
- package/dist/{TwinlistLoadingInfo-CLqQ-X0Q.js → TwinlistLoadingInfo-FssVPCHm.js} +6 -6
- package/dist/{ValueSwitch-oO8UhV71.js → ValueSwitch-DUSxPCSF.js} +1 -1
- package/dist/{ValueSwitchControl-BF4YDU3O.js → ValueSwitchControl-D7zOFXxV.js} +1 -1
- package/dist/{VerticalLayout-DWhzXD4q.js → VerticalLayout-D_qbPg-G.js} +2 -2
- package/dist/{VerticalLayoutBase-DOe-ZgM0.js → VerticalLayoutBase-DOA1vZxW.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-CZ394SBJ.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Boy5g_5t.js} +2335 -2307
- package/dist/{_baseAssignValue-CeaWMPDp.js → _baseAssignValue-CgQjXgyJ.js} +1 -1
- package/dist/{_baseEach-COEt1pBz.js → _baseEach-BBLgtMOP.js} +2 -2
- package/dist/{_baseIsEqual-SWnlWVEl.js → _baseIsEqual-DCXGEZXK.js} +3 -3
- package/dist/{_baseIteratee-Dn1dvBZq.js → _baseIteratee-CrAL3j7c.js} +3 -3
- package/dist/{_getTag-3CBDaP-r.js → _getTag-CnX_whFO.js} +3 -3
- package/dist/{isSymbol-7S1kOX_f.js → isSymbol-D5sEYsA7.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +6 -6
- package/dist/{magic-string.es-VhDkH9hZ.js → magic-string.es-D1CaS2nz.js} +1 -1
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +8 -3
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +3 -0
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +12 -0
- package/dist/{svgWithTitle-B0bb8vFa.js → svgWithTitle-DvnGWznf.js} +1 -1
- package/dist/testing.js +4 -4
- package/dist/{toString-fb0lwfLv.js → toString-DNXvoc86.js} +2 -2
- package/dist/useDropdownNavigation-D6ZenVxz.js +55 -0
- package/package.json +3 -3
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Pnzm_YWK.js +0 -65
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { o as Re, a as
|
|
4
|
-
import { u as
|
|
5
|
-
import { F as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
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) => ({
|
|
1
|
+
import { openBlock as f, createElementBlock as I, createElementVNode as v, defineComponent as B, mergeModels as G, useModel as k, computed as D, Fragment as N, createBlock as Y, createCommentVNode as Z, withDirectives as A, createVNode as T, vShow as w, renderList as H, unref as c, toDisplayString as V, withCtx as U, createTextVNode as _e, pushScopeId as ge, popScopeId as De, ref as h, watch as z, normalizeClass as ye, withKeys as xe, vModelText as Me, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { _ as j, u as Ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Boy5g_5t.js";
|
|
3
|
+
import { o as Re, a as $e } from "./index-Cp7Xre_V.js";
|
|
4
|
+
import { u as we, s as be, f as Ne, o as Ve, a as Se } from "./floating-ui.vue.esm-CDpUY3-t.js";
|
|
5
|
+
import { F as Ce } from "./FunctionButton-CvNlvRJ8.js";
|
|
6
|
+
import { T as Oe } from "./Tooltip-TdECUUzC.js";
|
|
7
|
+
import { N as X } from "./NumberInput-ct335fdK.js";
|
|
8
|
+
import { V as K } from "./ValueSwitch-DUSxPCSF.js";
|
|
9
|
+
const J = (e, t) => ({
|
|
27
10
|
negative: e,
|
|
28
11
|
years: parseInt(t[1] ?? "0", 10),
|
|
29
12
|
months: parseInt(t[2] ?? "0", 10),
|
|
@@ -39,18 +22,18 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
39
22
|
seconds: parseInt(t[3] ?? "0", 10),
|
|
40
23
|
milliseconds: a
|
|
41
24
|
};
|
|
42
|
-
},
|
|
25
|
+
}, b = (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) => {
|
|
43
26
|
let t = "P";
|
|
44
27
|
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
|
-
},
|
|
28
|
+
}, P = (e) => {
|
|
46
29
|
const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
|
|
47
30
|
let a = "";
|
|
48
31
|
if (e.type === "DATE") {
|
|
49
|
-
if (
|
|
32
|
+
if (b(e))
|
|
50
33
|
return "0 days";
|
|
51
34
|
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
35
|
} else {
|
|
53
|
-
if (
|
|
36
|
+
if (b(e))
|
|
54
37
|
return "0 seconds";
|
|
55
38
|
a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
|
|
56
39
|
const n = e.interval.milliseconds === 0;
|
|
@@ -63,33 +46,33 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
63
46
|
), ie = new RegExp(
|
|
64
47
|
`^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
|
|
65
48
|
"i"
|
|
66
|
-
),
|
|
49
|
+
), Ge = new RegExp(
|
|
67
50
|
`^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
68
51
|
"i"
|
|
69
|
-
),
|
|
52
|
+
), ke = new RegExp(
|
|
70
53
|
`^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
|
|
71
54
|
"i"
|
|
72
|
-
),
|
|
55
|
+
), Be = new RegExp(
|
|
73
56
|
`^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
74
57
|
"i"
|
|
75
|
-
),
|
|
58
|
+
), Fe = new RegExp(
|
|
76
59
|
`^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
|
|
77
60
|
"i"
|
|
78
61
|
), de = (e) => {
|
|
79
62
|
if (e = e == null ? void 0 : e.trim(), !e)
|
|
80
63
|
throw new Error("Empty interval string");
|
|
81
|
-
const t = re.exec(e), a =
|
|
64
|
+
const t = re.exec(e), a = Ge.exec(e) ?? ke.exec(e), n = ie.exec(e), i = Be.exec(e) ?? Fe.exec(e), s = t ?? a, d = n ?? i, E = (a ?? i) !== null;
|
|
82
65
|
if (d && s)
|
|
83
66
|
throw new Error("Ambiguous time format");
|
|
84
67
|
if (s)
|
|
85
68
|
return {
|
|
86
69
|
type: "DATE",
|
|
87
|
-
interval: J(
|
|
70
|
+
interval: J(E, s)
|
|
88
71
|
};
|
|
89
72
|
if (d)
|
|
90
73
|
return {
|
|
91
74
|
type: "TIME",
|
|
92
|
-
interval: Q(
|
|
75
|
+
interval: Q(E, d)
|
|
93
76
|
};
|
|
94
77
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
95
78
|
}, ue = (e, t) => {
|
|
@@ -99,7 +82,7 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
99
82
|
valid: !0,
|
|
100
83
|
type: n,
|
|
101
84
|
negative: i,
|
|
102
|
-
zero:
|
|
85
|
+
zero: b(a)
|
|
103
86
|
} : { valid: !1 };
|
|
104
87
|
} catch {
|
|
105
88
|
return { valid: !1 };
|
|
@@ -132,12 +115,12 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
132
115
|
valid: !0,
|
|
133
116
|
type: n,
|
|
134
117
|
negative: i,
|
|
135
|
-
zero:
|
|
118
|
+
zero: b(a)
|
|
136
119
|
} : { valid: !1 };
|
|
137
120
|
} catch {
|
|
138
121
|
return { valid: !1 };
|
|
139
122
|
}
|
|
140
|
-
},
|
|
123
|
+
}, He = (e) => {
|
|
141
124
|
const t = ce(e, "DATE_OR_TIME"), a = ue(
|
|
142
125
|
e,
|
|
143
126
|
"DATE_OR_TIME"
|
|
@@ -150,29 +133,29 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
150
133
|
}, C = (e, t) => {
|
|
151
134
|
const a = ce(e, t), n = ue(e, t);
|
|
152
135
|
return a.valid ? a : n.valid ? n : { valid: !1 };
|
|
153
|
-
},
|
|
136
|
+
}, Ue = {
|
|
154
137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
155
138
|
fill: "none",
|
|
156
139
|
stroke: "#000",
|
|
157
140
|
"stroke-linejoin": "round",
|
|
158
141
|
viewBox: "0 0 32 32"
|
|
159
|
-
},
|
|
160
|
-
|
|
142
|
+
}, ze = /* @__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), Xe = [
|
|
143
|
+
ze
|
|
161
144
|
];
|
|
162
|
-
function
|
|
163
|
-
return
|
|
145
|
+
function Ke(e, t) {
|
|
146
|
+
return f(), I("svg", Ue, [...Xe]);
|
|
164
147
|
}
|
|
165
|
-
const
|
|
148
|
+
const We = { render: Ke }, W = [
|
|
166
149
|
"years",
|
|
167
150
|
"months",
|
|
168
151
|
"weeks",
|
|
169
152
|
"days"
|
|
170
|
-
],
|
|
153
|
+
], q = [
|
|
171
154
|
"hours",
|
|
172
155
|
"minutes",
|
|
173
156
|
"seconds",
|
|
174
157
|
"milliseconds"
|
|
175
|
-
],
|
|
158
|
+
], _ = {
|
|
176
159
|
years: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
177
160
|
months: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
178
161
|
weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
@@ -181,19 +164,19 @@ const je = { render: Ze }, L = [
|
|
|
181
164
|
minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
182
165
|
seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
183
166
|
milliseconds: { min: 0, max: 999 }
|
|
184
|
-
},
|
|
167
|
+
}, L = (e, t) => t === "DATE" ? {
|
|
185
168
|
type: "DATE",
|
|
186
169
|
interval: e.periodPart
|
|
187
170
|
} : {
|
|
188
171
|
type: "TIME",
|
|
189
172
|
interval: e.durationPart
|
|
190
|
-
},
|
|
173
|
+
}, $ = (e, t) => e.type === "DATE" ? {
|
|
191
174
|
...t,
|
|
192
175
|
periodPart: e.interval
|
|
193
176
|
} : {
|
|
194
177
|
...t,
|
|
195
178
|
durationPart: e.interval
|
|
196
|
-
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
179
|
+
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), qe = (e) => (ge("data-v-41a0e491"), e = e(), De(), e), Le = { class: "header" }, Ye = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("span", { class: "input-title" }, "Interval value", -1)), Ze = { class: "ascending-descending-switch-container" }, je = { class: "input-grid" }, Je = { class: "input-label" }, Qe = { class: "input-label" }, et = { class: "accept-controls" }, tt = /* @__PURE__ */ B({
|
|
197
180
|
__name: "IntervalInputPopoverContent",
|
|
198
181
|
props: /* @__PURE__ */ G({
|
|
199
182
|
format: {},
|
|
@@ -211,22 +194,22 @@ const je = { render: Ze }, L = [
|
|
|
211
194
|
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
212
195
|
setup(e, { emit: t }) {
|
|
213
196
|
const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = D(() => {
|
|
214
|
-
const u = i.value === "DATE" ?
|
|
197
|
+
const u = i.value === "DATE" ? W : q, p = i.value === "DATE" ? u.map(
|
|
215
198
|
(o) => s.value.periodPart[o]
|
|
216
199
|
) : u.map(
|
|
217
200
|
(o) => s.value.durationPart[o]
|
|
218
201
|
);
|
|
219
|
-
for (let o = 0; o <
|
|
220
|
-
if (
|
|
202
|
+
for (let o = 0; o < p.length; o++)
|
|
203
|
+
if (p[o] < _[u[o]].min || p[o] > _[u[o]].max)
|
|
221
204
|
return {
|
|
222
205
|
valid: !1,
|
|
223
206
|
reason: `${O(u[o])} out of bounds.`
|
|
224
207
|
};
|
|
225
|
-
return
|
|
208
|
+
return p.every((o) => o === 0) ? {
|
|
226
209
|
valid: !1,
|
|
227
210
|
reason: "All values may not be zero."
|
|
228
211
|
} : { valid: !0 };
|
|
229
|
-
}),
|
|
212
|
+
}), E = D({
|
|
230
213
|
get() {
|
|
231
214
|
return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
232
215
|
},
|
|
@@ -238,27 +221,27 @@ const je = { render: Ze }, L = [
|
|
|
238
221
|
"commit",
|
|
239
222
|
i.value,
|
|
240
223
|
s.value,
|
|
241
|
-
|
|
224
|
+
E.value
|
|
242
225
|
);
|
|
243
226
|
};
|
|
244
|
-
return (u,
|
|
245
|
-
v("span",
|
|
246
|
-
|
|
247
|
-
n.format === "DATE_OR_TIME" ? (
|
|
227
|
+
return (u, p) => (f(), I(N, null, [
|
|
228
|
+
v("span", Le, [
|
|
229
|
+
Ye,
|
|
230
|
+
n.format === "DATE_OR_TIME" ? (f(), Y(K, {
|
|
248
231
|
key: 0,
|
|
249
232
|
modelValue: i.value,
|
|
250
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
|
|
251
234
|
"possible-values": [
|
|
252
235
|
{ id: "DATE", text: "Date" },
|
|
253
236
|
{ id: "TIME", text: "Time" }
|
|
254
237
|
],
|
|
255
238
|
compact: ""
|
|
256
|
-
}, null, 8, ["modelValue"])) :
|
|
239
|
+
}, null, 8, ["modelValue"])) : Z("", !0)
|
|
257
240
|
]),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
modelValue:
|
|
261
|
-
"onUpdate:modelValue":
|
|
241
|
+
A(v("div", Ze, [
|
|
242
|
+
T(K, {
|
|
243
|
+
modelValue: E.value,
|
|
244
|
+
"onUpdate:modelValue": p[1] || (p[1] = (o) => E.value = o),
|
|
262
245
|
compact: "",
|
|
263
246
|
"possible-values": [
|
|
264
247
|
{ id: "ASCENDING", text: "Ascending interval" },
|
|
@@ -266,34 +249,34 @@ const je = { render: Ze }, L = [
|
|
|
266
249
|
]
|
|
267
250
|
}, null, 8, ["modelValue"])
|
|
268
251
|
], 512), [
|
|
269
|
-
[
|
|
252
|
+
[w, u.allowDescending]
|
|
270
253
|
]),
|
|
271
|
-
v("div",
|
|
272
|
-
(
|
|
254
|
+
v("div", je, [
|
|
255
|
+
(f(!0), I(N, null, H(c(W), (o) => A((f(), I("span", {
|
|
273
256
|
key: o,
|
|
274
257
|
class: "labeled-date-time-input"
|
|
275
258
|
}, [
|
|
276
|
-
v("span",
|
|
277
|
-
|
|
259
|
+
v("span", Je, V(c(O)(o)), 1),
|
|
260
|
+
T(X, {
|
|
278
261
|
modelValue: s.value.periodPart[o],
|
|
279
262
|
"onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
|
|
280
|
-
min: c(
|
|
281
|
-
max: c(
|
|
263
|
+
min: c(_)[o].min,
|
|
264
|
+
max: c(_)[o].max,
|
|
282
265
|
compact: "",
|
|
283
266
|
type: "integer"
|
|
284
267
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
285
268
|
], 512)), [
|
|
286
|
-
[
|
|
269
|
+
[w, i.value === "DATE"]
|
|
287
270
|
])), 128)),
|
|
288
|
-
(
|
|
271
|
+
(f(!0), I(N, null, H(c(q), (o) => A((f(), I("span", {
|
|
289
272
|
key: o,
|
|
290
273
|
class: "labeled-date-time-input"
|
|
291
274
|
}, [
|
|
292
|
-
v("span",
|
|
293
|
-
|
|
275
|
+
v("span", Qe, V(c(O)(o)), 1),
|
|
276
|
+
T(X, {
|
|
294
277
|
"model-value": s.value.durationPart[o],
|
|
295
|
-
min: c(
|
|
296
|
-
max: c(
|
|
278
|
+
min: c(_)[o].min,
|
|
279
|
+
max: c(_)[o].max,
|
|
297
280
|
compact: "",
|
|
298
281
|
type: "integer",
|
|
299
282
|
"onUpdate:modelValue": (x) => {
|
|
@@ -301,21 +284,21 @@ const je = { render: Ze }, L = [
|
|
|
301
284
|
}
|
|
302
285
|
}, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
|
|
303
286
|
], 512)), [
|
|
304
|
-
[
|
|
287
|
+
[w, i.value === "TIME"]
|
|
305
288
|
])), 128))
|
|
306
289
|
]),
|
|
307
|
-
v("div",
|
|
308
|
-
|
|
290
|
+
v("div", et, [
|
|
291
|
+
T(Oe, {
|
|
309
292
|
text: d.value.valid ? "" : d.value.reason
|
|
310
293
|
}, {
|
|
311
|
-
default:
|
|
312
|
-
|
|
294
|
+
default: U(() => [
|
|
295
|
+
T(Ce, {
|
|
313
296
|
primary: "",
|
|
314
297
|
disabled: !d.value.valid,
|
|
315
298
|
onClick: y
|
|
316
299
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
|
|
300
|
+
default: U(() => [
|
|
301
|
+
_e(" Set " + V(i.value.toLowerCase()) + " interval ", 1)
|
|
319
302
|
]),
|
|
320
303
|
_: 1
|
|
321
304
|
}, 8, ["disabled"])
|
|
@@ -325,11 +308,11 @@ const je = { render: Ze }, L = [
|
|
|
325
308
|
])
|
|
326
309
|
], 64));
|
|
327
310
|
}
|
|
328
|
-
}),
|
|
311
|
+
}), at = /* @__PURE__ */ j(tt, [["__scopeId", "data-v-41a0e491"]]), nt = { class: "input-fields" }, st = ["disabled", "placeholder"], ot = {
|
|
329
312
|
key: 0,
|
|
330
313
|
class: "invalid-marker"
|
|
331
|
-
},
|
|
332
|
-
...
|
|
314
|
+
}, lt = ["disabled"], rt = {}, it = /* @__PURE__ */ B({
|
|
315
|
+
...rt,
|
|
333
316
|
__name: "IntervalInput",
|
|
334
317
|
props: /* @__PURE__ */ G({
|
|
335
318
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -360,7 +343,7 @@ const je = { render: Ze }, L = [
|
|
|
360
343
|
const l = g(
|
|
361
344
|
a.value
|
|
362
345
|
);
|
|
363
|
-
return
|
|
346
|
+
return $(l, {
|
|
364
347
|
periodPart: {
|
|
365
348
|
negative: !1,
|
|
366
349
|
years: 0,
|
|
@@ -378,23 +361,23 @@ const je = { render: Ze }, L = [
|
|
|
378
361
|
});
|
|
379
362
|
})()
|
|
380
363
|
), d = h(
|
|
381
|
-
|
|
364
|
+
P(
|
|
382
365
|
g(a.value)
|
|
383
366
|
)
|
|
384
|
-
),
|
|
367
|
+
), E = D(() => {
|
|
385
368
|
const l = C(
|
|
386
369
|
d.value,
|
|
387
370
|
"DATE_OR_TIME"
|
|
388
371
|
);
|
|
389
372
|
return l.valid && (t.allowDescending || !l.negative) && !l.zero && (l.type === n.value || t.format === "DATE_OR_TIME");
|
|
390
|
-
}), y = h(null), u = h(null),
|
|
391
|
-
const
|
|
373
|
+
}), y = h(null), u = h(null), p = h(null), o = (l, r) => {
|
|
374
|
+
const m = L(
|
|
392
375
|
l,
|
|
393
376
|
r
|
|
394
377
|
);
|
|
395
|
-
d.value =
|
|
378
|
+
d.value = P(m), a.value = S(m), n.value = r, s.value = l;
|
|
396
379
|
}, x = () => {
|
|
397
|
-
s.value =
|
|
380
|
+
s.value = $(
|
|
398
381
|
g(a.value),
|
|
399
382
|
s.value
|
|
400
383
|
);
|
|
@@ -405,50 +388,50 @@ const je = { render: Ze }, L = [
|
|
|
405
388
|
);
|
|
406
389
|
if (!r.valid || r.zero || !t.allowDescending && r.negative || r.type !== n.value && t.format !== "DATE_OR_TIME")
|
|
407
390
|
return;
|
|
408
|
-
const
|
|
391
|
+
const m = He(
|
|
409
392
|
l
|
|
410
393
|
);
|
|
411
|
-
s.value =
|
|
412
|
-
|
|
394
|
+
s.value = $(
|
|
395
|
+
m,
|
|
413
396
|
s.value
|
|
414
|
-
), a.value = S(
|
|
397
|
+
), a.value = S(m), n.value = r.type, d.value = P(m);
|
|
415
398
|
}, pe = (l) => {
|
|
416
399
|
const r = g(l);
|
|
417
|
-
d.value =
|
|
400
|
+
d.value = P(r), s.value = $(
|
|
418
401
|
r,
|
|
419
402
|
s.value
|
|
420
403
|
), a.value = l;
|
|
421
404
|
}, me = (l) => {
|
|
422
|
-
const r =
|
|
405
|
+
const r = L(
|
|
423
406
|
s.value,
|
|
424
407
|
l
|
|
425
408
|
);
|
|
426
|
-
d.value =
|
|
409
|
+
d.value = P(r), a.value = S(r), n.value = l;
|
|
427
410
|
}, fe = (l) => {
|
|
428
411
|
l !== "DATE_OR_TIME" && me(l);
|
|
429
|
-
},
|
|
430
|
-
|
|
431
|
-
const
|
|
412
|
+
}, M = h(!1);
|
|
413
|
+
z(() => t.format, fe), z(a, pe);
|
|
414
|
+
const F = (l) => {
|
|
432
415
|
ve(l);
|
|
433
|
-
},
|
|
416
|
+
}, R = (l, r) => {
|
|
434
417
|
l && r ? o(
|
|
435
418
|
r.popoverValues,
|
|
436
419
|
r.usedFormat
|
|
437
|
-
) : x(),
|
|
420
|
+
) : x(), M.value = !1;
|
|
438
421
|
};
|
|
439
|
-
Re(y, () =>
|
|
422
|
+
Re(y, () => R(!1), {
|
|
440
423
|
ignore: [u]
|
|
441
|
-
}),
|
|
442
|
-
const { floatingStyles: Ee, update:
|
|
424
|
+
}), $e("Escape", () => R(!1));
|
|
425
|
+
const { floatingStyles: Ee, update: Ie } = we(u, y, {
|
|
443
426
|
middleware: [
|
|
444
|
-
|
|
427
|
+
be(),
|
|
445
428
|
// move left/right to keep it on screen
|
|
446
|
-
|
|
429
|
+
Ne({
|
|
447
430
|
// flip it vertically to keep it on screen
|
|
448
431
|
mainAxis: !0,
|
|
449
432
|
crossAxis: !1
|
|
450
433
|
}),
|
|
451
|
-
|
|
434
|
+
Ve({
|
|
452
435
|
// move it a bit away from the button vertically
|
|
453
436
|
mainAxis: 2,
|
|
454
437
|
// vertical
|
|
@@ -457,64 +440,64 @@ const je = { render: Ze }, L = [
|
|
|
457
440
|
})
|
|
458
441
|
],
|
|
459
442
|
placement: "top-end",
|
|
460
|
-
whileElementsMounted:
|
|
443
|
+
whileElementsMounted: Se
|
|
461
444
|
});
|
|
462
|
-
return (l, r) => (
|
|
445
|
+
return (l, r) => (f(), I("div", null, [
|
|
463
446
|
v("div", {
|
|
464
|
-
class:
|
|
447
|
+
class: ye(["wrapper", { disabled: l.disabled, compact: l.compact }])
|
|
465
448
|
}, [
|
|
466
|
-
v("span",
|
|
467
|
-
|
|
449
|
+
v("span", nt, [
|
|
450
|
+
A(v("input", {
|
|
468
451
|
ref_key: "inputTextFieldRef",
|
|
469
|
-
ref:
|
|
470
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
452
|
+
ref: p,
|
|
453
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => d.value = m),
|
|
471
454
|
type: "text",
|
|
472
455
|
disabled: l.disabled,
|
|
473
456
|
placeholder: i.value,
|
|
474
457
|
spellcheck: "false",
|
|
475
|
-
onFocus: r[1] || (r[1] = (
|
|
476
|
-
onFocusout: r[2] || (r[2] = () =>
|
|
477
|
-
onKeypress: r[3] || (r[3] =
|
|
478
|
-
}, null, 40,
|
|
458
|
+
onFocus: r[1] || (r[1] = (m) => M.value = !1),
|
|
459
|
+
onFocusout: r[2] || (r[2] = () => F(d.value)),
|
|
460
|
+
onKeypress: r[3] || (r[3] = xe(() => F(d.value), ["enter"]))
|
|
461
|
+
}, null, 40, st), [
|
|
479
462
|
[Me, d.value]
|
|
480
463
|
]),
|
|
481
|
-
|
|
464
|
+
E.value ? Z("", !0) : (f(), I("span", ot)),
|
|
482
465
|
v("button", {
|
|
483
466
|
ref_key: "togglePopoverButtonRef",
|
|
484
467
|
ref: u,
|
|
485
468
|
class: "trigger-popover-button",
|
|
486
469
|
disabled: l.disabled,
|
|
487
470
|
onClick: r[4] || (r[4] = () => {
|
|
488
|
-
|
|
471
|
+
M.value ? R(!1) : (M.value = !0, c(Ie)());
|
|
489
472
|
})
|
|
490
473
|
}, [
|
|
491
|
-
|
|
492
|
-
], 8,
|
|
474
|
+
T(c(We))
|
|
475
|
+
], 8, lt)
|
|
493
476
|
])
|
|
494
477
|
], 2),
|
|
495
|
-
|
|
478
|
+
A(v("div", {
|
|
496
479
|
ref_key: "durationInputPopoverRef",
|
|
497
480
|
ref: y,
|
|
498
481
|
class: "control-popup",
|
|
499
482
|
style: Pe(c(Ee))
|
|
500
483
|
}, [
|
|
501
|
-
|
|
484
|
+
T(at, {
|
|
502
485
|
"model-value": s.value,
|
|
503
486
|
"used-format": n.value,
|
|
504
487
|
format: t.format,
|
|
505
488
|
"allow-descending": t.allowDescending,
|
|
506
|
-
onCommit: r[5] || (r[5] = (
|
|
507
|
-
usedFormat:
|
|
489
|
+
onCommit: r[5] || (r[5] = (m, he, Te) => R(!0, {
|
|
490
|
+
usedFormat: m,
|
|
508
491
|
popoverValues: he,
|
|
509
|
-
directionality:
|
|
492
|
+
directionality: Te
|
|
510
493
|
}))
|
|
511
494
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
512
495
|
], 4), [
|
|
513
|
-
[
|
|
496
|
+
[w, M.value]
|
|
514
497
|
])
|
|
515
498
|
]));
|
|
516
499
|
}
|
|
517
|
-
}),
|
|
500
|
+
}), dt = /* @__PURE__ */ j(it, [["__scopeId", "data-v-0dd589ba"]]), ht = /* @__PURE__ */ B({
|
|
518
501
|
__name: "IntervalControl",
|
|
519
502
|
props: {
|
|
520
503
|
control: {},
|
|
@@ -532,7 +515,7 @@ const je = { render: Ze }, L = [
|
|
|
532
515
|
}),
|
|
533
516
|
((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
|
|
534
517
|
);
|
|
535
|
-
return (s, d) => (
|
|
518
|
+
return (s, d) => (f(), Y(c(dt), {
|
|
536
519
|
id: s.labelForId,
|
|
537
520
|
compact: "",
|
|
538
521
|
disabled: s.disabled,
|
|
@@ -543,5 +526,5 @@ const je = { render: Ze }, L = [
|
|
|
543
526
|
}
|
|
544
527
|
});
|
|
545
528
|
export {
|
|
546
|
-
|
|
529
|
+
ht as default
|
|
547
530
|
};
|
|
@@ -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-Cp7Xre_V.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-Boy5g_5t.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-DTm2USEY.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-Boy5g_5t.js";
|
|
3
|
+
import { N as h } from "./NumberInput-ct335fdK.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-Boy5g_5t.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-C1PjXAJX.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-jU3m_I9u.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-DQnW3NpY.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Boy5g_5t.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-C1PjXAJX.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-DUSxPCSF.js";
|
|
4
|
+
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Boy5g_5t.js";
|
|
5
5
|
const R = {
|
|
6
6
|
name: "RadioButtons",
|
|
7
7
|
components: {
|