@knime/jsonforms 1.19.2 → 1.19.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 +15 -0
- package/dist/{AnyOfTwinlist-DbIxFGCg.js → AnyOfTwinlist-gIm_R7yi.js} +1 -1
- package/dist/{Checkbox-DHrRt49x.js → Checkbox-D1QZ8D8U.js} +1 -1
- package/dist/{CheckboxControl-D0b--DXW.js → CheckboxControl-DitntAd8.js} +1 -1
- package/dist/{CheckboxesControl-D2UmK0cM.js → CheckboxesControl-C_Wwb06j.js} +2 -2
- package/dist/{ColorControl-BWQGbfC0.js → ColorControl-86_aeUMf.js} +1 -1
- package/dist/ColorPreviewControl-HgbFwMCE.js +89 -0
- package/dist/{ComboBoxControl-CL4v2Sgq.js → ComboBoxControl-CGwWGyDl.js} +8 -8
- package/dist/{DateControl-BwCKXxzH.js → DateControl-BofbO5lM.js} +8 -7
- package/dist/{DateTimeControl-DIHNi8gS.js → DateTimeControl-BzWk51J8.js} +1 -1
- package/dist/DateTimeFormatPickerControl-7KTdYrMN.js +31 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DmevlqK8.js +442 -0
- package/dist/{DropdownControl-DIr6VLc6.js → DropdownControl-XAeknlV2.js} +3 -3
- package/dist/{HorizontalLayout-y52FdHPr.js → HorizontalLayout-BQFvLK2X.js} +1 -1
- package/dist/{IntegerControl-Bk-MII8Z.js → IntegerControl-XNoJU3s2.js} +1 -1
- package/dist/{IntervalControl-C7rHNjU3.js → IntervalControl-DaQTfsx8.js} +2 -2
- package/dist/{Label-4eQvTocI.js → Label-BckcZVsr.js} +1 -1
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BohYhBbA.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js} +1 -1
- package/dist/LoadingIcon-D3kls_iA.js +29 -0
- package/dist/{ManualTwinlistControl-Cymjfy5p.js → ManualTwinlistControl-BCgJbfp5.js} +4 -4
- package/dist/{MultiSelectListBoxControl-xAD6kXMK.js → MultiSelectListBoxControl-B6tvY3Al.js} +2 -2
- package/dist/{MultimodeTwinlistControl-BumsqGUV.js → MultimodeTwinlistControl-CUWzYCUm.js} +14 -14
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-KKPjcj4X.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C8itN9TE.js} +2 -2
- package/dist/{MultiselectListBox-ZX6212Yu.js → MultiselectListBox-C1rI0rOG.js} +4 -4
- package/dist/{NameFilter-FSgsA62B.js → NameFilter-CaPBJKzh.js} +1 -1
- package/dist/{NumberControl-BqoqHwEO.js → NumberControl-DOnwoK8Z.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BncdSveV.js → NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js} +4 -4
- package/dist/{OneOfDropdown-B_2tiTwi.js → OneOfDropdown-CHt7_dgU.js} +9 -9
- package/dist/{RadioControl-BFhCpO9D.js → RadioControl-CP7QiYX1.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CaIHPPJ6.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qv1xOkqz.js} +2 -2
- package/dist/{RichTextControl-CdhHDOWn.js → RichTextControl-DKlFtbdd.js} +1535 -1461
- package/dist/{SectionHeading-DZCr2UJ-.js → SectionHeading-DbcAkyOk.js} +1 -1
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js +25430 -0
- package/dist/{SectionLayout-C-8MnV5C.js → SectionLayout-BRfbEX0H.js} +3 -3
- package/dist/SettingsSubPanel-Bw-wC4JV.js +5 -0
- package/dist/{SettingsSubPanelLayout-BYZgAnN7.js → SettingsSubPanelLayout-nMEM9Js5.js} +6 -6
- package/dist/SimpleButtonControl-Cs9fDA9V.js +49 -0
- package/dist/{SimpleTwinlistControl-BCZ8bawe.js → SimpleTwinlistControl-CMJCJOPx.js} +2 -2
- package/dist/{SingleSelectControl-Dej4aS7t.js → SingleSelectControl-DrqxOX0c.js} +2 -2
- package/dist/{SingleSelectListBoxControl-BfJjjRQn.js → SingleSelectListBoxControl-2ORQoAtg.js} +5 -5
- package/dist/{SortListControl-BzZCSfie.js → SortListControl-BLWFLyUn.js} +35 -36
- package/dist/{StyledListItem-BSq6JKC8.js → StyledListItem-DhsQSwUn.js} +1 -1
- package/dist/{TextAreaControl-jzV7HC6S.js → TextAreaControl-v3fhzCGm.js} +1 -1
- package/dist/{TextControl-1b_uj1FP.js → TextControl-CNlNwI8q.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BoZDe5bd.js → TextControl.vue_vue_type_script_setup_true_lang-BQReBqLi.js} +5 -5
- package/dist/{TimeControl-BYogu7kA.js → TimeControl-uBNUovJi.js} +1 -1
- package/dist/{TwinlistControlBase-Bd5_Uuq-.js → TwinlistControlBase-BfsU0lp4.js} +3 -3
- package/dist/{TwinlistLoadingInfo-3TeV4Gdp.js → TwinlistLoadingInfo-CZpH6CqT.js} +4 -4
- package/dist/{TypedStringFilter-CU8Og0OV.js → TypedStringFilter-ElEPYctF.js} +1 -1
- package/dist/{ValueSwitch-DjDuJdNN.js → ValueSwitch-BfYlPI2B.js} +4 -4
- package/dist/{ValueSwitchControl-D1saOV7r.js → ValueSwitchControl-DyV85jLv.js} +1 -1
- package/dist/{VerticalLayout-g5Won-Pb.js → VerticalLayout-CFGNNSaB.js} +2 -2
- package/dist/{VerticalLayoutBase-CGb9hUYx.js → VerticalLayoutBase-CCtK1J1U.js} +1 -1
- package/dist/{ZonedDateTimeControl-CtgGTCQc.js → ZonedDateTimeControl-BtPeUK4M.js} +17 -19
- package/dist/{_baseEach-GM1_9gpl.js → _baseEach-DR1qyPMo.js} +7 -8
- package/dist/_baseIteratee-DrBvc1GG.js +640 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-5E_obOH5.js → localTimeUtils-C1z-tWPY.js} +3934 -3328
- package/dist/{popper-LGjf7Wza.js → popper-D54JdmBM.js} +212 -208
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/colorPreviewRenderer.d.ts +69 -0
- package/dist/src/renderers/defaultRenderers.d.ts +150 -22
- package/dist/src/renderers/simpleButtonRenderer.d.ts +81 -22
- package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +11 -0
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +14 -11
- package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -0
- package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +6 -0
- package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +6 -0
- package/dist/testing.js +2 -2
- package/dist/toString-lufkO4XX.js +25 -0
- package/dist/{useBuiltinValidations-V_W_S2ya.js → useBuiltinValidations-CXYzLTj1.js} +1 -1
- package/dist/{usePossibleValues-CcLAFNOh.js → usePossibleValues-BGGWIVzM.js} +1 -1
- package/package.json +4 -4
- package/dist/Button-DPBuV8Ju.js +0 -82
- package/dist/DateTimeFormatInput-BjdyxUQY.js +0 -374
- package/dist/DateTimeFormatPickerControl-CV6pc2KZ.js +0 -40
- package/dist/DateTimeFormatPickerWithTypeControl-DyGt-WGp.js +0 -76
- package/dist/Dropdown-DlCk3K9Y.js +0 -620
- package/dist/LoadingIcon-Br99Lv_8.js +0 -18
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-BYoCo820.js +0 -18542
- package/dist/SettingsSubPanel-DLmH_M05.js +0 -5
- package/dist/SimpleButtonControl-CdMqbvzO.js +0 -68
- package/dist/_baseIteratee-CHnCehKu.js +0 -516
- package/dist/_getTag-D-KT4MkB.js +0 -131
- package/dist/hotkeys-rxnt4egK.js +0 -6
- package/dist/isArray-WzO_os3q.js +0 -4
- package/dist/reload-DjY4GPvr.js +0 -17
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +0 -7
- package/dist/toString-D64mIKfx.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.19.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 19a0919: Integrated KdsDateTimeFormat in DateTimeFormatPickerControl and DateTimeFormatPickerWithTypeControl
|
|
8
|
+
Integrated KdsDropdown in OneOfDropdown and ZonedDateTimeControl
|
|
9
|
+
Integrated KdsButton in SimpleButtonControl
|
|
10
|
+
|
|
11
|
+
## 1.19.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- db87f97: Add `colorPreview` renderer and UI components for palette/gradient color previews, including tests.
|
|
16
|
+
- 91adce9: Enable isValid flag in DateControl
|
|
17
|
+
|
|
3
18
|
## 1.19.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as t, createBlock as p, mergeProps as a, unref as l } from "vue";
|
|
2
2
|
import { o as r } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { T as i } from "./TwinlistControlBase-
|
|
3
|
+
import { T as i } from "./TwinlistControlBase-BfsU0lp4.js";
|
|
4
4
|
const y = /* @__PURE__ */ s({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as s, createElementBlock as i, normalizeClass as o, createElementVNode as d, renderSlot as c } from "vue";
|
|
2
|
-
import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
2
|
+
import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "Checkbox",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, ref as d, openBlock as r, createElementBlock as i, createElementVNode as u, createVNode as c, unref as v, renderSlot as a } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { al as b, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
3
|
const f = { class: "checkbox-container" }, p = /* @__PURE__ */ s({
|
|
4
4
|
__name: "CheckboxControl",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, computed as n, ref as i, toRef as r, onMounted as u, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
|
|
2
|
-
import { K as f, _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
2
|
+
import { K as f, _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
3
|
import { o as v } from "./index-Blg1O3Fz.js";
|
|
4
|
-
import { u as V } from "./usePossibleValues-
|
|
4
|
+
import { u as V } from "./usePossibleValues-BGGWIVzM.js";
|
|
5
5
|
const y = /* @__PURE__ */ c({
|
|
6
6
|
__name: "CheckboxesControl",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { I as t } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
3
|
const u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "ColorControl",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
|
|
2
|
+
import { H as w, _ as v, u as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
|
+
const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
4
|
+
__name: "ColorPreviewEmptyState",
|
|
5
|
+
setup(a) {
|
|
6
|
+
return (t, l) => (e(), o("div", P, [
|
|
7
|
+
y(p(w), { headline: "No colors" })
|
|
8
|
+
]));
|
|
9
|
+
}
|
|
10
|
+
}), g = /* @__PURE__ */ v($, [["__scopeId", "data-v-7a09310d"]]), x = { class: "gradient-preview" }, S = /* @__PURE__ */ u({
|
|
11
|
+
__name: "GradientPreview",
|
|
12
|
+
props: {
|
|
13
|
+
gradient: {}
|
|
14
|
+
},
|
|
15
|
+
setup(a) {
|
|
16
|
+
const t = a, l = s(() => t.gradient.colors.length > 0), n = s(() => {
|
|
17
|
+
const r = t.gradient.stops;
|
|
18
|
+
return r === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((i, _) => `${i} ${r[_]}%`).join(", ");
|
|
19
|
+
}), c = s(
|
|
20
|
+
() => `linear-gradient(to right in lab, ${n.value})`
|
|
21
|
+
);
|
|
22
|
+
return (r, i) => (e(), o("div", x, [
|
|
23
|
+
l.value ? (e(), o("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "gradient-bar",
|
|
26
|
+
style: m({ background: c.value })
|
|
27
|
+
}, null, 4)) : (e(), d(g, { key: 1 }))
|
|
28
|
+
]));
|
|
29
|
+
}
|
|
30
|
+
}), b = /* @__PURE__ */ v(S, [["__scopeId", "data-v-8a745225"]]), B = { class: "palette-preview" }, F = 8, E = /* @__PURE__ */ u({
|
|
31
|
+
__name: "PalettePreview",
|
|
32
|
+
props: {
|
|
33
|
+
palette: {}
|
|
34
|
+
},
|
|
35
|
+
setup(a) {
|
|
36
|
+
const t = a, l = s(() => t.palette.colors.length > 0), n = s(
|
|
37
|
+
() => Math.max(1, Math.min(F, t.palette.colors.length))
|
|
38
|
+
), c = s(() => ({
|
|
39
|
+
gridTemplateColumns: `repeat(${n.value}, minmax(0, 1fr))`
|
|
40
|
+
}));
|
|
41
|
+
return (r, i) => (e(), o("div", B, [
|
|
42
|
+
l.value ? (e(), o("div", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "palette-grid",
|
|
45
|
+
style: m(c.value)
|
|
46
|
+
}, [
|
|
47
|
+
(e(!0), o(f, null, k(a.palette.colors, (_, h) => (e(), o("div", {
|
|
48
|
+
key: h,
|
|
49
|
+
class: "color-cell",
|
|
50
|
+
style: m({ background: _ })
|
|
51
|
+
}, null, 4))), 128))
|
|
52
|
+
], 4)) : (e(), d(g, {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "empty-state"
|
|
55
|
+
}))
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
}), G = /* @__PURE__ */ v(E, [["__scopeId", "data-v-ad83046f"]]), I = { class: "color-preview" }, N = /* @__PURE__ */ u({
|
|
59
|
+
__name: "ColorPreviewControl",
|
|
60
|
+
props: {
|
|
61
|
+
control: {},
|
|
62
|
+
handleChange: { type: Function },
|
|
63
|
+
changeValue: { type: Function },
|
|
64
|
+
disabled: { type: Boolean },
|
|
65
|
+
labelForId: {},
|
|
66
|
+
isValid: { type: Boolean },
|
|
67
|
+
messages: {},
|
|
68
|
+
onRegisterValidation: { type: Function }
|
|
69
|
+
},
|
|
70
|
+
setup(a) {
|
|
71
|
+
const t = a, l = s(
|
|
72
|
+
() => t.control.uischema
|
|
73
|
+
), n = C(l, "previewColors", {
|
|
74
|
+
colors: []
|
|
75
|
+
}), c = (r) => !("stops" in r);
|
|
76
|
+
return (r, i) => (e(), o("div", I, [
|
|
77
|
+
c(p(n)) ? (e(), d(G, {
|
|
78
|
+
key: 0,
|
|
79
|
+
palette: p(n)
|
|
80
|
+
}, null, 8, ["palette"])) : (e(), d(b, {
|
|
81
|
+
key: 1,
|
|
82
|
+
gradient: p(n)
|
|
83
|
+
}, null, 8, ["gradient"]))
|
|
84
|
+
]));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
N as default
|
|
89
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { resolveComponent as f, openBlock as r, createElementBlock as b, withModifiers as a, withKeys as u, normalizeClass as w, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as h, withDirectives as C, normalizeStyle as A, Fragment as D, renderList as P, createBlock as E, withCtx as O, createTextVNode as T, vShow as k, defineComponent as x, vModelText as $, toRef as z, computed as y, unref as N } from "vue";
|
|
2
|
-
import { u as U } from "./usePossibleValues-
|
|
2
|
+
import { u as U } from "./usePossibleValues-BGGWIVzM.js";
|
|
3
3
|
import { C as L } from "./close-CwP2mh9x.js";
|
|
4
|
-
import { _ as B,
|
|
4
|
+
import { _ as B, J as H } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { A as K } from "./arrow-dropdown-DMFBPPcK.js";
|
|
7
|
-
import { C as j } from "./Checkbox-
|
|
7
|
+
import { C as j } from "./Checkbox-D1QZ8D8U.js";
|
|
8
8
|
import { c as W } from "./createMissingItem-B00Kg95q.js";
|
|
9
9
|
const g = () => {
|
|
10
10
|
let e = document?.activeElement;
|
|
11
11
|
for (; e?.shadowRoot; )
|
|
12
12
|
e = e?.shadowRoot?.activeElement;
|
|
13
13
|
return e;
|
|
14
|
-
}, v = 1, G = 28.5,
|
|
14
|
+
}, v = 1, G = 28.5, J = 8, X = {
|
|
15
15
|
name: "Multiselect",
|
|
16
16
|
components: {
|
|
17
17
|
Checkbox: j,
|
|
@@ -151,7 +151,7 @@ const g = () => {
|
|
|
151
151
|
},
|
|
152
152
|
optionsHeight() {
|
|
153
153
|
return this.useSpecificOptionsHeight ? {
|
|
154
|
-
"max-height": `${this.sizeVisibleOptions * G +
|
|
154
|
+
"max-height": `${this.sizeVisibleOptions * G + J}px`
|
|
155
155
|
} : {};
|
|
156
156
|
},
|
|
157
157
|
refocusElementOnClose() {
|
|
@@ -243,7 +243,7 @@ const g = () => {
|
|
|
243
243
|
).map((e) => e.$el && e.$el.firstChild));
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, q = { key: 1 }, Q = ["tabindex"];
|
|
247
247
|
function Y(e, t, l, n, c, o) {
|
|
248
248
|
const m = f("DropdownIcon"), d = f("Checkbox");
|
|
249
249
|
return r(), b("div", {
|
|
@@ -260,7 +260,7 @@ function Y(e, t, l, n, c, o) {
|
|
|
260
260
|
onFocusout: t[5] || (t[5] = a((...s) => o.onFocusOut && o.onFocusOut(...s), ["stop"])),
|
|
261
261
|
onMousedown: t[6] || (t[6] = (...s) => o.onMousedown && o.onMousedown(...s))
|
|
262
262
|
}, [
|
|
263
|
-
l.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (r(), b("div",
|
|
263
|
+
l.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (r(), b("div", q, [
|
|
264
264
|
p("div", {
|
|
265
265
|
ref: "toggle",
|
|
266
266
|
role: "button",
|
|
@@ -296,7 +296,7 @@ function Y(e, t, l, n, c, o) {
|
|
|
296
296
|
])
|
|
297
297
|
], 34);
|
|
298
298
|
}
|
|
299
|
-
const Z = /* @__PURE__ */ B(
|
|
299
|
+
const Z = /* @__PURE__ */ B(X, [["render", Y], ["__scopeId", "data-v-eeb8fb15"]]), I = "draft-id-combobox-preview-item", _ = x({
|
|
300
300
|
name: "ComboBox",
|
|
301
301
|
components: {
|
|
302
302
|
Multiselect: Z,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { f as
|
|
3
|
-
const b = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as i, computed as d, openBlock as s, createBlock as u, unref as r } from "vue";
|
|
2
|
+
import { f as m, t as c, D as p } from "./localTimeUtils-C1z-tWPY.js";
|
|
3
|
+
const b = /* @__PURE__ */ i({
|
|
4
4
|
__name: "DateControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
@@ -12,11 +12,11 @@ const b = /* @__PURE__ */ d({
|
|
|
12
12
|
labelForId: {}
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
const o = e, t =
|
|
15
|
+
const o = e, t = d({
|
|
16
16
|
get: () => c(o.control.data),
|
|
17
|
-
set: (a) => o.changeValue(
|
|
17
|
+
set: (a) => o.changeValue(m(a))
|
|
18
18
|
});
|
|
19
|
-
return (a, l) => (
|
|
19
|
+
return (a, l) => (s(), u(r(p), {
|
|
20
20
|
id: e.labelForId,
|
|
21
21
|
modelValue: t.value,
|
|
22
22
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n),
|
|
@@ -25,8 +25,9 @@ const b = /* @__PURE__ */ d({
|
|
|
25
25
|
"show-time": !1,
|
|
26
26
|
compact: "",
|
|
27
27
|
disabled: e.disabled,
|
|
28
|
+
"is-valid": e.isValid,
|
|
28
29
|
timezone: "UTC"
|
|
29
|
-
}, null, 8, ["id", "modelValue", "disabled"]));
|
|
30
|
+
}, null, 8, ["id", "modelValue", "disabled", "is-valid"]));
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, computed as a, openBlock as r, createBlock as p, unref as v } from "vue";
|
|
2
|
-
import { t as i, f as h, D as f } from "./localTimeUtils-
|
|
2
|
+
import { t as i, f as h, D as f } from "./localTimeUtils-C1z-tWPY.js";
|
|
3
3
|
const T = /* @__PURE__ */ c({
|
|
4
4
|
__name: "DateTimeControl",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a, openBlock as i, createBlock as c, unref as t } from "vue";
|
|
2
|
+
import { u as m, M as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
|
+
const V = /* @__PURE__ */ s({
|
|
4
|
+
__name: "DateTimeFormatPickerControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
12
|
+
labelForId: {}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
const o = e, l = a(
|
|
16
|
+
() => o.control.uischema
|
|
17
|
+
), n = a(() => l.value.options), d = a(() => n.value?.allowedFormats), r = m(l, "dateTimeFormats", []);
|
|
18
|
+
return (f, p) => (i(), c(t(u), {
|
|
19
|
+
id: e.labelForId,
|
|
20
|
+
"model-value": o.control.data,
|
|
21
|
+
disabled: e.disabled,
|
|
22
|
+
"allowed-formats": d.value,
|
|
23
|
+
"all-default-formats": t(r) ?? [],
|
|
24
|
+
error: !e.isValid,
|
|
25
|
+
"onUpdate:modelValue": e.changeValue
|
|
26
|
+
}, null, 8, ["id", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
V as default
|
|
31
|
+
};
|