@knime/jsonforms 1.4.2 → 1.5.0
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 +6 -0
- package/dist/{AnyOfTwinlist-ZSMUfL9L.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
- package/dist/{BaseButton-DaHwEJS7.js → BaseButton-8vDrj52e.js} +1 -1
- package/dist/{Button-Bw_2CUrZ.js → Button-Bngb_I70.js} +2 -2
- package/dist/{Checkbox-CClH5v1O.js → Checkbox-DSfVQlDb.js} +1 -1
- package/dist/CheckboxControl-D85aBRJ6.js +41 -0
- package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-DUJ3v5jU.js} +2 -2
- package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
- package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-BzCVLydy.js} +7 -5
- package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-DK7NqI5Q.js} +21 -18
- package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-CEXpJltI.js} +17 -14
- package/dist/{DateControl-CzO-FHO5.js → DateControl-CjRiy7d1.js} +6 -4
- package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-CaDuNC_u.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
- package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-96g3nCth.js} +7 -7
- package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-CQKvBlYB.js} +4 -4
- package/dist/{DropdownControl-BOx53GRG.js → DropdownControl-B0x5hFXM.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
- package/dist/{FunctionButton-fTG-kCKu.js → FunctionButton-CapvFBi0.js} +2 -2
- package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout-k7vmjzLP.js} +1 -1
- package/dist/{InputField-Ciw2sHfy.js → InputField-DhyBnTBT.js} +1 -1
- package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
- package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-DhujNXBe.js} +37 -35
- package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
- package/dist/{NameFilter-BpyjqqIg.js → NameFilter-DJhwpboP.js} +7 -5
- package/dist/NumberControl-CU94dpBh.js +20 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js +60 -0
- package/dist/{NumberInput-Cq6cNPOt.js → NumberInput-Io3ZSWBF.js} +1 -1
- package/dist/OneOfDropdown-C04RF5gK.js +35 -0
- package/dist/RadioControl-Ni6f_qCw.js +24 -0
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
- package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-hHIvuaDd.js} +9 -7
- package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-DEKmJPJl.js} +2 -2
- package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
- package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
- package/dist/SortListControl-CsrP-QT8.js +366 -0
- package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-CNH7s35f.js} +25 -22
- package/dist/{TextControl-C97DTUxi.js → TextControl-C1ZKoreI.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js +87 -0
- package/dist/TimeControl-Bwt1kRki.js +33 -0
- package/dist/{TwinlistControl-Cw71wnqH.js → TwinlistControl-DJ88Q4I-.js} +21 -18
- package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
- package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-B08Mz10g.js} +1 -1
- package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
- package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-ptrtpOrD.js} +2 -2
- package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js} +5705 -5674
- package/dist/ZonedDateTimeControl-70XjGsqQ.js +70 -0
- package/dist/{_baseAssignValue-BHZMmalr.js → _baseAssignValue-BPMLYzDH.js} +1 -1
- package/dist/{_baseEach-CFl6drhJ.js → _baseEach-B8N_Gx8P.js} +2 -2
- package/dist/{_baseIsEqual-CBeH4t67.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
- package/dist/{_baseIteratee-BLHhVAua.js → _baseIteratee-DvBmrhnf.js} +3 -3
- package/dist/{_getTag-ryBefWgF.js → _getTag-DS8v0_uf.js} +33 -34
- package/dist/isSymbol-OFe5xy2f.js +34 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +26 -26
- package/dist/{localTimeUtils-DzcBbZvn.js → localTimeUtils-CzJjTpP3.js} +1 -1
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
- package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
- package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
- package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
- package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
- package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/defaultRenderers.d.ts +299 -247
- package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
- package/dist/src/renderers/integerRenderer.d.ts +1 -3
- package/dist/src/renderers/intervalRenderer.d.ts +1 -3
- package/dist/src/renderers/localDateRenderer.d.ts +1 -3
- package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/numberRenderer.d.ts +1 -3
- package/dist/src/renderers/radioRenderer.d.ts +1 -3
- package/dist/src/renderers/richTextRenderer.d.ts +1 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
- package/dist/src/renderers/sortListRenderer.d.ts +48 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
- package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
- package/dist/src/renderers/textRenderer.d.ts +48 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
- package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/index.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
- package/dist/{svgWithTitle-CkdEuLiz.js → svgWithTitle-YSv0CfBl.js} +1 -1
- package/dist/testUtils/component.d.ts +70 -7
- package/dist/testUtils/renderer.d.ts +1 -1
- package/dist/testing.js +203 -199
- package/dist/toString-DkbNkGT4.js +25 -0
- package/package.json +1 -1
- package/dist/CheckboxControl-DNlnK4C9.js +0 -42
- package/dist/CheckboxesControl-CcQ3PLSm.js +0 -38
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js +0 -226
- package/dist/ErrorMessage-BDO-x3Uz.js +0 -23
- package/dist/IntegerControl-C0jzMmDK.js +0 -18
- package/dist/NumberControl-DFJ7GW28.js +0 -18
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js +0 -42
- package/dist/OneOfDropdown-fpE_aGK6.js +0 -32
- package/dist/RadioControl-BMvmjgc4.js +0 -22
- package/dist/SimpleButtonControl-Cc2jhvsQ.js +0 -58
- package/dist/SortListControl-BFZehvrs.js +0 -356
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CHTtVr4t.js +0 -69
- package/dist/TimeControl-CFFsz8tR.js +0 -30
- package/dist/ValueSwitchControl-CljMpNHI.js +0 -18
- package/dist/ZonedDateTimeControl-CCtdviwP.js +0 -66
- package/dist/isSymbol-CSje8ekq.js +0 -8
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
- package/dist/toString-ld_LFpvz.js +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as t, createBlock as r, mergeProps as p } from "vue";
|
|
2
2
|
import { o as a } from "./index-hm05O8UX.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import i from "./SimpleTwinlistControl-Bvhr9f3x.js";
|
|
4
|
+
const d = /* @__PURE__ */ n({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
11
13
|
labelForId: {}
|
|
12
14
|
},
|
|
13
|
-
setup(
|
|
15
|
+
setup(l) {
|
|
14
16
|
const e = (o) => o.schema.anyOf.map(a);
|
|
15
|
-
return (o,
|
|
17
|
+
return (o, s) => (t(), r(i, p(o.$props, { "options-generator": e }), null, 16));
|
|
16
18
|
}
|
|
17
19
|
});
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
d as default
|
|
20
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, useSlots as l, h as a, getCurrentInstance as c, openBlock as f, createBlock as p, resolveDynamicComponent as m, mergeProps as d, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
-
import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
2
|
+
import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
const u = () => {
|
|
4
4
|
const t = c();
|
|
5
5
|
return t == null ? void 0 : t.appContext.app;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as r, withCtx as l, renderSlot as d } from "vue";
|
|
2
|
-
import { B as i } from "./BaseButton-
|
|
3
|
-
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
2
|
+
import { B as i } from "./BaseButton-8vDrj52e.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
const c = o({
|
|
5
5
|
name: "Button",
|
|
6
6
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as s, normalizeClass as o, createElementVNode as d, renderSlot as u } from "vue";
|
|
2
|
-
import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
2
|
+
import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "Checkbox",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as a, ref as r, openBlock as s, createElementBlock as d, createVNode as u, unref as i, withCtx as p, createTextVNode as c, toDisplayString as m, renderSlot as n } from "vue";
|
|
2
|
+
import { C as f } from "./Checkbox-DSfVQlDb.js";
|
|
3
|
+
import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
|
+
const b = /* @__PURE__ */ a({
|
|
5
|
+
__name: "CheckboxControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {},
|
|
12
|
+
isValid: { type: Boolean },
|
|
13
|
+
messages: {},
|
|
14
|
+
onRegisterValidation: { type: Function }
|
|
15
|
+
},
|
|
16
|
+
setup(h) {
|
|
17
|
+
const t = r(!1);
|
|
18
|
+
return (e, o) => (s(), d("div", {
|
|
19
|
+
class: "checkbox-input",
|
|
20
|
+
onMouseover: o[0] || (o[0] = (l) => t.value = !0),
|
|
21
|
+
onMouseleave: o[1] || (o[1] = (l) => t.value = !1)
|
|
22
|
+
}, [
|
|
23
|
+
u(i(f), {
|
|
24
|
+
class: "checkbox",
|
|
25
|
+
disabled: e.disabled,
|
|
26
|
+
"model-value": e.control.data,
|
|
27
|
+
"onUpdate:modelValue": e.changeValue
|
|
28
|
+
}, {
|
|
29
|
+
default: p(() => [
|
|
30
|
+
c(m(e.control.label) + " ", 1),
|
|
31
|
+
n(e.$slots, "icon", {}, void 0, !0)
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
|
|
35
|
+
n(e.$slots, "buttons", { hover: t.value }, void 0, !0)
|
|
36
|
+
], 32));
|
|
37
|
+
}
|
|
38
|
+
}), g = /* @__PURE__ */ v(b, [["__scopeId", "data-v-c26e0308"]]);
|
|
39
|
+
export {
|
|
40
|
+
g as default
|
|
41
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as c } from "./Checkbox-
|
|
1
|
+
import { C as c } from "./Checkbox-DSfVQlDb.js";
|
|
2
2
|
import { resolveComponent as u, openBlock as o, createElementBlock as s, normalizeClass as f, Fragment as m, renderList as h, createBlock as p, withCtx as x, createTextVNode as b, toDisplayString as V } from "vue";
|
|
3
|
-
import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
const _ = {
|
|
5
5
|
name: "Checkboxes",
|
|
6
6
|
components: {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as t, computed as s, ref as i, onMounted as d, openBlock as r, createBlock as c, unref as p, createCommentVNode as u } from "vue";
|
|
2
|
+
import { o as m } from "./index-hm05O8UX.js";
|
|
3
|
+
import { C as b } from "./Checkboxes-DUJ3v5jU.js";
|
|
4
|
+
import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
5
|
+
const h = /* @__PURE__ */ t({
|
|
6
|
+
__name: "CheckboxesControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
isValid: { type: Boolean },
|
|
13
|
+
onRegisterValidation: { type: Function },
|
|
14
|
+
labelForId: {}
|
|
15
|
+
},
|
|
16
|
+
setup(l) {
|
|
17
|
+
const a = l, n = s(
|
|
18
|
+
() => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = a.control.uischema.options) == null ? void 0 : e.checkboxLayout;
|
|
21
|
+
}
|
|
22
|
+
), o = i(null);
|
|
23
|
+
return d(() => {
|
|
24
|
+
var e;
|
|
25
|
+
o.value = (e = a.control.schema.anyOf) == null ? void 0 : e.map(m);
|
|
26
|
+
}), (e, v) => o.value ? (r(), c(p(b), {
|
|
27
|
+
key: 0,
|
|
28
|
+
id: e.labelForId,
|
|
29
|
+
class: "checkboxes",
|
|
30
|
+
"possible-values": o.value,
|
|
31
|
+
alignment: n.value,
|
|
32
|
+
disabled: e.disabled,
|
|
33
|
+
"model-value": e.control.data,
|
|
34
|
+
"is-valid": e.isValid,
|
|
35
|
+
"onUpdate:modelValue": e.changeValue
|
|
36
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : u("", !0);
|
|
37
|
+
}
|
|
38
|
+
}), g = /* @__PURE__ */ f(h, [["__scopeId", "data-v-b664fe87"]]);
|
|
39
|
+
export {
|
|
40
|
+
g as default
|
|
41
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as o, createBlock as t, mergeProps as l } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import a from "./TwinlistControl-DJ88Q4I-.js";
|
|
3
|
+
const u = /* @__PURE__ */ e({
|
|
4
4
|
__name: "ColumnFilter",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
10
12
|
labelForId: {}
|
|
11
13
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (n, s) => (o(), t(
|
|
14
|
+
setup(r) {
|
|
15
|
+
return (n, s) => (o(), t(a, l({ ...n.$props, ...n.$attrs }, {
|
|
14
16
|
"unknown-values-text": "Any unknown column",
|
|
15
17
|
"show-unknown-values": "",
|
|
16
18
|
"empty-state-label": "No columns in this list"
|
|
@@ -18,5 +20,5 @@ const i = /* @__PURE__ */ e({
|
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
export {
|
|
21
|
-
|
|
23
|
+
u as default
|
|
22
24
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as
|
|
2
|
-
import { w as
|
|
3
|
-
import { k as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { b as $ } from "./_baseIsEqual-
|
|
6
|
-
function
|
|
1
|
+
import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as g, createBlock as V, mergeProps as P, unref as C, withCtx as u, renderSlot as p } from "vue";
|
|
2
|
+
import { w as F } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
3
|
+
import { k as S, u as _ } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
|
+
import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js";
|
|
5
|
+
import { b as $ } from "./_baseIsEqual-DmkT9Nkc.js";
|
|
6
|
+
function B(s, t) {
|
|
7
7
|
return $(s, t);
|
|
8
8
|
}
|
|
9
9
|
const U = /* @__PURE__ */ h({
|
|
@@ -13,16 +13,19 @@ const U = /* @__PURE__ */ h({
|
|
|
13
13
|
handleChange: { type: Function },
|
|
14
14
|
changeValue: { type: Function },
|
|
15
15
|
disabled: { type: Boolean },
|
|
16
|
-
labelForId: {}
|
|
16
|
+
labelForId: {},
|
|
17
|
+
isValid: { type: Boolean },
|
|
18
|
+
messages: {},
|
|
19
|
+
onRegisterValidation: { type: Function }
|
|
17
20
|
},
|
|
18
21
|
setup(s) {
|
|
19
|
-
const t = s,
|
|
22
|
+
const t = s, c = b(
|
|
20
23
|
() => {
|
|
21
24
|
var o;
|
|
22
25
|
return (o = t.control.uischema.options) == null ? void 0 : o.choicesProvider;
|
|
23
26
|
}
|
|
24
|
-
), d =
|
|
25
|
-
|
|
27
|
+
), d = S("getPossibleValuesFromUiSchema"), a = F(
|
|
28
|
+
_(c, null),
|
|
26
29
|
t.control
|
|
27
30
|
), m = new Promise((o) => {
|
|
28
31
|
v(() => {
|
|
@@ -33,16 +36,16 @@ const U = /* @__PURE__ */ h({
|
|
|
33
36
|
const e = a.value;
|
|
34
37
|
if (e === null)
|
|
35
38
|
throw new Error("Must not convert data before column choices are fetched.");
|
|
36
|
-
const
|
|
37
|
-
return { selected: o, compatibleTypes:
|
|
39
|
+
const i = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
|
|
40
|
+
return { selected: o, compatibleTypes: i };
|
|
38
41
|
}, r = ({ selected: o }) => o;
|
|
39
42
|
return w(() => a.value, () => {
|
|
40
43
|
const o = t.control.data, e = l(r(o));
|
|
41
|
-
|
|
44
|
+
B(o, e) || t.changeValue(e);
|
|
42
45
|
}), y(async () => {
|
|
43
|
-
|
|
44
|
-
}), (o, e) => (
|
|
45
|
-
"async-initial-options":
|
|
46
|
+
c.value || (a.value = await d(t.control));
|
|
47
|
+
}), (o, e) => (g(), V(D, P({ ...o.$attrs, ...o.$props }, {
|
|
48
|
+
"async-initial-options": C(m),
|
|
46
49
|
"control-data-to-dropdown-value": r,
|
|
47
50
|
compact: "",
|
|
48
51
|
"dropdown-value-to-control-data": l
|
|
@@ -50,9 +53,9 @@ const U = /* @__PURE__ */ h({
|
|
|
50
53
|
icon: u(() => [
|
|
51
54
|
p(o.$slots, "icon")
|
|
52
55
|
]),
|
|
53
|
-
buttons: u(({ hover:
|
|
56
|
+
buttons: u(({ hover: i, controlHTMLElement: n }) => [
|
|
54
57
|
p(o.$slots, "buttons", {
|
|
55
|
-
hover:
|
|
58
|
+
hover: i,
|
|
56
59
|
controlHTMLElement: n
|
|
57
60
|
})
|
|
58
61
|
]),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
1
|
+
import { resolveComponent as V, openBlock as d, createElementBlock as b, normalizeClass as w, withKeys as u, withModifiers as a, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as f, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as C, withCtx as O, createTextVNode as x, vShow as P, defineComponent as M, vModelText as R, computed as v, ref as B, onMounted as z, unref as N, createCommentVNode as U } from "vue";
|
|
2
2
|
import { w as L } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
3
|
-
import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
import { C as K } from "./close-h7XT0ja0.js";
|
|
5
|
-
import { F as j } from "./FunctionButton-
|
|
5
|
+
import { F as j } from "./FunctionButton-CapvFBi0.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { u as W } from "./index-CkuSIXs2.js";
|
|
8
8
|
import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
|
|
9
|
-
import { C as X } from "./Checkbox-
|
|
9
|
+
import { C as X } from "./Checkbox-DSfVQlDb.js";
|
|
10
10
|
import { c as q } from "./createMissingItem-B00Kg95q.js";
|
|
11
11
|
const y = 1, J = 28.5, Q = 8, Y = {
|
|
12
12
|
name: "Multiselect",
|
|
@@ -241,8 +241,8 @@ const y = 1, J = 28.5, Q = 8, Y = {
|
|
|
241
241
|
}
|
|
242
242
|
}, Z = { key: 1 };
|
|
243
243
|
function _(e, t, i, n, h, l) {
|
|
244
|
-
const r =
|
|
245
|
-
return d(),
|
|
244
|
+
const r = V("DropdownIcon"), c = V("Checkbox");
|
|
245
|
+
return d(), b("div", {
|
|
246
246
|
ref: "multiselect",
|
|
247
247
|
class: w(["multiselect", { collapsed: h.collapsed, invalid: !i.isValid, compact: i.compact }]),
|
|
248
248
|
onKeydown: [
|
|
@@ -253,7 +253,7 @@ function _(e, t, i, n, h, l) {
|
|
|
253
253
|
onFocusout: t[5] || (t[5] = a((...s) => l.onFocusOut && l.onFocusOut(...s), ["stop"])),
|
|
254
254
|
onMousedown: t[6] || (t[6] = (...s) => l.onMousedown && l.onMousedown(...s))
|
|
255
255
|
}, [
|
|
256
|
-
i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(),
|
|
256
|
+
i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), b("div", Z, [
|
|
257
257
|
p("div", {
|
|
258
258
|
ref: "toggle",
|
|
259
259
|
role: "button",
|
|
@@ -268,7 +268,7 @@ function _(e, t, i, n, h, l) {
|
|
|
268
268
|
class: "options",
|
|
269
269
|
style: A(l.optionsHeight)
|
|
270
270
|
}, [
|
|
271
|
-
(d(!0),
|
|
271
|
+
(d(!0), b(k, null, D(i.possibleValues, (s, o) => (d(), C(c, {
|
|
272
272
|
ref_for: !0,
|
|
273
273
|
ref: "option",
|
|
274
274
|
key: `multiselect-${s.id}`,
|
|
@@ -466,7 +466,7 @@ const ee = /* @__PURE__ */ E(Y, [["render", _], ["__scopeId", "data-v-e722538a"]
|
|
|
466
466
|
}
|
|
467
467
|
}), se = ["title"], oe = { class: "icon-right" };
|
|
468
468
|
function le(e, t, i, n, h, l) {
|
|
469
|
-
const r =
|
|
469
|
+
const r = V("CloseIcon"), c = V("FunctionButton"), s = V("Multiselect");
|
|
470
470
|
return d(), C(s, {
|
|
471
471
|
ref: "combobox",
|
|
472
472
|
"model-value": e.modelValue,
|
|
@@ -495,7 +495,7 @@ function le(e, t, i, n, h, l) {
|
|
|
495
495
|
]),
|
|
496
496
|
onClick: t[7] || (t[7] = a((...o) => e.focusInput && e.focusInput(...o), ["stop"]))
|
|
497
497
|
}, [
|
|
498
|
-
(d(!0),
|
|
498
|
+
(d(!0), b(k, null, D(e.selectedValues, ({ id: o, text: m, invalid: T }, $) => (d(), b("div", {
|
|
499
499
|
key: `item.id${$}`,
|
|
500
500
|
class: "tag",
|
|
501
501
|
title: m
|
|
@@ -529,7 +529,7 @@ function le(e, t, i, n, h, l) {
|
|
|
529
529
|
t[6] || (t[6] = u((...o) => e.closeOptionsAndStop && e.closeOptionsAndStop(...o), ["esc"]))
|
|
530
530
|
]
|
|
531
531
|
}, null, 36), [
|
|
532
|
-
[
|
|
532
|
+
[R, e.searchValue]
|
|
533
533
|
])
|
|
534
534
|
], 2),
|
|
535
535
|
I(p("div", oe, [
|
|
@@ -559,6 +559,8 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
|
|
|
559
559
|
handleChange: { type: Function },
|
|
560
560
|
changeValue: { type: Function },
|
|
561
561
|
disabled: { type: Boolean },
|
|
562
|
+
isValid: { type: Boolean },
|
|
563
|
+
onRegisterValidation: { type: Function },
|
|
562
564
|
labelForId: {}
|
|
563
565
|
},
|
|
564
566
|
setup(e) {
|
|
@@ -571,7 +573,7 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
|
|
|
571
573
|
H(i, []),
|
|
572
574
|
t.control
|
|
573
575
|
), h = B([]), l = B(!1);
|
|
574
|
-
|
|
576
|
+
z(() => {
|
|
575
577
|
var s, o;
|
|
576
578
|
h.value = t.control.data, i.value || (n.value = (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.possibleValues), l.value = !0;
|
|
577
579
|
});
|
|
@@ -591,11 +593,12 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
|
|
|
591
593
|
disabled: c.value,
|
|
592
594
|
"possible-values": r.value ? [] : N(n),
|
|
593
595
|
"model-value": h.value,
|
|
596
|
+
"is-valid": s.isValid,
|
|
594
597
|
compact: "",
|
|
595
598
|
"onUpdate:modelValue": o[0] || (o[0] = (m) => s.changeValue(m))
|
|
596
|
-
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : U("", !0);
|
|
599
|
+
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"])) : U("", !0);
|
|
597
600
|
}
|
|
598
|
-
}), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-
|
|
601
|
+
}), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-f26e8737"]]);
|
|
599
602
|
export {
|
|
600
603
|
Oe as default
|
|
601
604
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
|
|
2
|
-
import { D as t } from "./DateTimeInput-
|
|
3
|
-
const
|
|
2
|
+
import { D as t } from "./DateTimeInput-96g3nCth.js";
|
|
3
|
+
const u = /* @__PURE__ */ o({
|
|
4
4
|
__name: "DateControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
10
12
|
labelForId: {}
|
|
11
13
|
},
|
|
12
14
|
setup(d) {
|
|
13
|
-
return (e,
|
|
15
|
+
return (e, i) => (a(), l(n(t), {
|
|
14
16
|
id: e.labelForId,
|
|
15
17
|
"two-lines": "",
|
|
16
18
|
"model-value": new Date(e.control.data),
|
|
@@ -23,5 +25,5 @@ const i = /* @__PURE__ */ o({
|
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
u as default
|
|
27
29
|
};
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as
|
|
3
|
-
import { t as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as a, openBlock as f, createBlock as w, unref as V } from "vue";
|
|
2
|
+
import { D as T } from "./DateTimeInput-96g3nCth.js";
|
|
3
|
+
import { t as i, f as b } from "./localTimeUtils-CzJjTpP3.js";
|
|
4
|
+
const y = /* @__PURE__ */ h({
|
|
5
5
|
__name: "DateTimeControl",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
11
13
|
labelForId: {}
|
|
12
14
|
},
|
|
13
15
|
setup(r) {
|
|
14
16
|
const l = r, o = a(() => l.control.uischema.options), c = a(
|
|
15
17
|
() => {
|
|
16
18
|
var e;
|
|
17
|
-
return (e = o.value) != null && e.minimum ?
|
|
19
|
+
return (e = o.value) != null && e.minimum ? i(o.value.minimum) : null;
|
|
18
20
|
}
|
|
19
21
|
), p = a(
|
|
20
22
|
() => {
|
|
21
23
|
var e;
|
|
22
|
-
return (e = o.value) != null && e.maximum ?
|
|
24
|
+
return (e = o.value) != null && e.maximum ? i(o.value.maximum) : null;
|
|
23
25
|
}
|
|
24
26
|
), n = a({
|
|
25
|
-
get: () =>
|
|
26
|
-
set: (e) => l.changeValue(
|
|
27
|
+
get: () => i(l.control.data),
|
|
28
|
+
set: (e) => l.changeValue(b(e))
|
|
27
29
|
});
|
|
28
|
-
return (e,
|
|
29
|
-
var
|
|
30
|
-
return f(), w(T
|
|
30
|
+
return (e, m) => {
|
|
31
|
+
var t, s, u, d;
|
|
32
|
+
return f(), w(V(T), {
|
|
31
33
|
id: e.labelForId,
|
|
32
34
|
modelValue: n.value,
|
|
33
|
-
"onUpdate:modelValue":
|
|
35
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => n.value = v),
|
|
34
36
|
"two-lines": "",
|
|
35
37
|
required: !0,
|
|
36
|
-
"show-time": (
|
|
38
|
+
"show-time": (t = o.value) == null ? void 0 : t.showTime,
|
|
37
39
|
"show-seconds": (s = o.value) == null ? void 0 : s.showSeconds,
|
|
38
40
|
"show-milliseconds": (u = o.value) == null ? void 0 : u.showMilliseconds,
|
|
39
41
|
timezone: "UTC",
|
|
40
42
|
"date-format": (d = o.value) == null ? void 0 : d.dateFormat,
|
|
41
43
|
min: c.value,
|
|
42
44
|
max: p.value,
|
|
45
|
+
"is-valid": e.isValid,
|
|
43
46
|
compact: "",
|
|
44
47
|
disabled: e.disabled
|
|
45
|
-
}, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "disabled"]);
|
|
48
|
+
}, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
51
|
});
|
|
49
52
|
export {
|
|
50
|
-
|
|
53
|
+
y as default
|
|
51
54
|
};
|
package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-DDTmhBMD.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as
|
|
2
|
-
import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
1
|
+
import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as $, onMounted as J, createVNode as h, withCtx as M, withKeys as N, withModifiers as Q, normalizeStyle as L, unref as w, Fragment as X, renderList as Y, normalizeClass as z, toDisplayString as P, nextTick as S, mergeModels as B, useModel as ee, withDirectives as te, vModelText as oe, createCommentVNode as O, createBlock as le } from "vue";
|
|
2
|
+
import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
import { o as se } from "./index-CkuSIXs2.js";
|
|
4
4
|
import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
5
|
import { u as me } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
6
|
-
import { L as ue } from "./svgWithTitle-
|
|
7
|
-
import { V as U } from "./ValueSwitch-
|
|
6
|
+
import { L as ue } from "./svgWithTitle-YSv0CfBl.js";
|
|
7
|
+
import { V as U } from "./ValueSwitch-B08Mz10g.js";
|
|
8
8
|
const pe = {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
fill: "none",
|
|
@@ -25,7 +25,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
25
25
|
}, Ee = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "no-formats-available"
|
|
28
|
-
}, be = ["onClick", "onDblclick"], De = { class: "format-pattern" },
|
|
28
|
+
}, be = ["onClick", "onDblclick"], De = { class: "format-pattern" }, Ve = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ I({
|
|
29
29
|
__name: "DateTimeFormatPickerPopover",
|
|
30
30
|
props: {
|
|
31
31
|
allFormats: {},
|
|
@@ -55,7 +55,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
55
55
|
() => f.filter(
|
|
56
56
|
(e) => p.allowedTypes.includes(e.id)
|
|
57
57
|
)
|
|
58
|
-
),
|
|
58
|
+
), V = F(() => [
|
|
59
59
|
{
|
|
60
60
|
id: "RECENT",
|
|
61
61
|
text: "Recent"
|
|
@@ -80,7 +80,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
80
80
|
)) ?? null;
|
|
81
81
|
}), D = T(null), r = G({}), d = (e) => `${e.format}-${e.category}-${e.temporalType}`, _ = (e) => (t) => {
|
|
82
82
|
r[d(e)] = t;
|
|
83
|
-
}, { currentIndex:
|
|
83
|
+
}, { currentIndex: k, onKeydown: A, resetNavigation: Z } = me({
|
|
84
84
|
keepOpenedOnTab: !0,
|
|
85
85
|
getFirstElement: () => ({
|
|
86
86
|
index: 0,
|
|
@@ -117,24 +117,24 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
117
117
|
const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
|
|
118
118
|
v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, R = async (e, t, o) => {
|
|
121
121
|
c.value = t ?? c.value, a.value = o ?? a.value, await S(), b.value = e;
|
|
122
122
|
const l = r[`${e}-${a.value}-${c.value}`];
|
|
123
123
|
l && j(l);
|
|
124
124
|
const v = s.value.findIndex(
|
|
125
|
-
(
|
|
125
|
+
(x) => x.format === e
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
k.value = v;
|
|
128
128
|
}, W = async () => {
|
|
129
129
|
var e;
|
|
130
130
|
await S(), (e = D.value) == null || e.focus();
|
|
131
131
|
};
|
|
132
|
-
|
|
132
|
+
$(k, (e) => {
|
|
133
133
|
if (e === null)
|
|
134
134
|
return;
|
|
135
135
|
const t = s.value[e];
|
|
136
|
-
|
|
137
|
-
}),
|
|
136
|
+
R(t.format, t.temporalType, t.category);
|
|
137
|
+
}), $([c, a], () => {
|
|
138
138
|
b.value = null, Z();
|
|
139
139
|
});
|
|
140
140
|
const q = T(!1);
|
|
@@ -147,10 +147,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
147
147
|
"EUROPEAN",
|
|
148
148
|
"AMERICAN"
|
|
149
149
|
], t = p.allFormats.filter((o) => p.initialSelectedPattern === o.format).sort((o, l) => {
|
|
150
|
-
const v = e.indexOf(o.category),
|
|
151
|
-
return v -
|
|
150
|
+
const v = e.indexOf(o.category), x = e.indexOf(l.category);
|
|
151
|
+
return v - x;
|
|
152
152
|
});
|
|
153
|
-
t.length > 0 &&
|
|
153
|
+
t.length > 0 && R(
|
|
154
154
|
t[0].format,
|
|
155
155
|
t[0].temporalType,
|
|
156
156
|
t[0].category
|
|
@@ -189,7 +189,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
189
189
|
modelValue: a.value,
|
|
190
190
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => a.value = o),
|
|
191
191
|
compact: "",
|
|
192
|
-
"possible-values":
|
|
192
|
+
"possible-values": V.value
|
|
193
193
|
}, null, 8, ["modelValue", "possible-values"])
|
|
194
194
|
]),
|
|
195
195
|
_: 1
|
|
@@ -222,16 +222,16 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
222
222
|
key: d(o),
|
|
223
223
|
ref_for: !0,
|
|
224
224
|
ref: _(o),
|
|
225
|
-
class: z([{ selected: l === w(
|
|
225
|
+
class: z([{ selected: l === w(k) }, "single-format"]),
|
|
226
226
|
role: "menuitem",
|
|
227
227
|
onClick: () => {
|
|
228
228
|
var v;
|
|
229
|
-
|
|
229
|
+
k.value = l, (v = D.value) == null || v.focus();
|
|
230
230
|
},
|
|
231
231
|
onDblclick: () => i("commit", o.format)
|
|
232
232
|
}, [
|
|
233
233
|
m("span", De, P(o.format), 1),
|
|
234
|
-
m("span",
|
|
234
|
+
m("span", Ve, P(o.example), 1)
|
|
235
235
|
], 42, be))), 128))
|
|
236
236
|
], 36)
|
|
237
237
|
]),
|
|
@@ -240,10 +240,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
240
240
|
])
|
|
241
241
|
]));
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), xe = /* @__PURE__ */ K(ke, [["__scopeId", "data-v-01e54f12"]]), Me = { class: "input-fields" }, Ce = ["disabled"], ze = {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: "invalid-marker"
|
|
246
|
-
}, Ie = ["disabled"], Ae = {},
|
|
246
|
+
}, Ie = ["disabled"], Ae = {}, Re = /* @__PURE__ */ I({
|
|
247
247
|
...Ae,
|
|
248
248
|
__name: "DateTimeFormatInput",
|
|
249
249
|
props: /* @__PURE__ */ B({
|
|
@@ -265,7 +265,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
265
265
|
}),
|
|
266
266
|
emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
|
|
267
267
|
setup(g, { emit: E }) {
|
|
268
|
-
const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'",
|
|
268
|
+
const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'", V = F(() => p.isValid), b = T(null), c = T(null), a = T(!1), s = (r) => {
|
|
269
269
|
f.value = r, a.value = !1, i("committed", r);
|
|
270
270
|
};
|
|
271
271
|
se(c, () => a.value = !1, {
|
|
@@ -306,7 +306,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
306
306
|
}, null, 40, Ce), [
|
|
307
307
|
[oe, f.value]
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
V.value ? O("", !0) : (u(), y("span", ze)),
|
|
310
310
|
m("button", {
|
|
311
311
|
ref_key: "togglePopoverButtonRef",
|
|
312
312
|
ref: b,
|
|
@@ -325,7 +325,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
325
325
|
class: "popover",
|
|
326
326
|
style: L(w(D))
|
|
327
327
|
}, [
|
|
328
|
-
h(
|
|
328
|
+
h(xe, {
|
|
329
329
|
"all-formats": r.allDefaultFormats,
|
|
330
330
|
"initial-selected-pattern": f.value,
|
|
331
331
|
"allowed-types": r.allowedTypes,
|
|
@@ -335,13 +335,15 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
335
335
|
], 4)) : O("", !0)
|
|
336
336
|
]));
|
|
337
337
|
}
|
|
338
|
-
}),
|
|
338
|
+
}), $e = /* @__PURE__ */ K(Re, [["__scopeId", "data-v-ce3e7e80"]]), Le = /* @__PURE__ */ I({
|
|
339
339
|
__name: "DateTimeFormatPickerControl",
|
|
340
340
|
props: {
|
|
341
341
|
control: {},
|
|
342
342
|
handleChange: { type: Function },
|
|
343
343
|
changeValue: { type: Function },
|
|
344
344
|
disabled: { type: Boolean },
|
|
345
|
+
isValid: { type: Boolean },
|
|
346
|
+
onRegisterValidation: { type: Function },
|
|
345
347
|
labelForId: {}
|
|
346
348
|
},
|
|
347
349
|
setup(g) {
|
|
@@ -355,7 +357,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
355
357
|
}),
|
|
356
358
|
null
|
|
357
359
|
);
|
|
358
|
-
return (n,
|
|
360
|
+
return (n, V) => (u(), le(w($e), {
|
|
359
361
|
id: n.labelForId,
|
|
360
362
|
compact: "",
|
|
361
363
|
disabled: n.disabled,
|