@knime/jsonforms 1.4.1 → 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 +12 -0
- package/dist/{AnyOfTwinlist-0hW9G7sf.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
- package/dist/{BaseButton-DYMQRyQo.js → BaseButton-8vDrj52e.js} +1 -1
- package/dist/{Button-BR-eqILd.js → Button-Bngb_I70.js} +2 -2
- package/dist/{Checkbox-9hNjHDpy.js → Checkbox-DSfVQlDb.js} +1 -1
- package/dist/CheckboxControl-D85aBRJ6.js +41 -0
- package/dist/{Checkboxes-MxUKgTL4.js → Checkboxes-DUJ3v5jU.js} +2 -2
- package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
- package/dist/{ColumnFilter-B05Q5-4y.js → ColumnFilter-BzCVLydy.js} +7 -5
- package/dist/{ColumnSelect-DZDQRiA5.js → ColumnSelect-DK7NqI5Q.js} +21 -18
- package/dist/{ComboBoxControl-CaHVCAiu.js → ComboBoxControl-CEXpJltI.js} +17 -14
- package/dist/{DateControl-fKUFzQr8.js → DateControl-CjRiy7d1.js} +6 -4
- package/dist/{DateTimeControl-BrwQ4jAx.js → DateTimeControl-CaDuNC_u.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CZY7EboY.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
- package/dist/{DateTimeInput-hVg3JWxI.js → DateTimeInput-96g3nCth.js} +7 -7
- package/dist/{Dropdown-C_6yKbqc.js → Dropdown-CQKvBlYB.js} +4 -4
- package/dist/{DropdownControl-DNcQIzCP.js → DropdownControl-B0x5hFXM.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
- package/dist/{FunctionButton-ByT1Atrb.js → FunctionButton-CapvFBi0.js} +2 -2
- package/dist/HorizontalLayout-k7vmjzLP.js +25 -0
- package/dist/{InputField-zQvLeNOh.js → InputField-DhyBnTBT.js} +1 -1
- package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
- package/dist/{IntervalControl-CWBmbjUk.js → IntervalControl-DhujNXBe.js} +37 -35
- package/dist/{MultiselectListBox-D18KQA8Z.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
- package/dist/{NameFilter-D6GRh9kP.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-DzpQc_Qg.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-D7yWH5sv.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
- package/dist/{RichTextControl-TMco-1sx.js → RichTextControl-hHIvuaDd.js} +9 -7
- package/dist/{SectionLayout-M0zSsGYd.js → SectionLayout-DEKmJPJl.js} +2 -2
- package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
- package/dist/{SimpleTwinlistControl-BWH9IcaM.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
- package/dist/SortListControl-CsrP-QT8.js +366 -0
- package/dist/{TextAreaControl-C2gBXg91.js → TextAreaControl-CNH7s35f.js} +25 -22
- package/dist/{TextControl-DJ1eQ6Yr.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-DMjXrTBS.js → TwinlistControl-DJ88Q4I-.js} +21 -18
- package/dist/{TwinlistLoadingInfo-C_JMBMqE.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
- package/dist/{ValueSwitch--IDkMn2T.js → ValueSwitch-B08Mz10g.js} +1 -1
- package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
- package/dist/{VerticalLayout-CWTnAzTT.js → VerticalLayout-ptrtpOrD.js} +2 -2
- package/dist/{VerticalLayoutBase-DHFsRdUV.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.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-CV6Gjcdp.js → _baseAssignValue-BPMLYzDH.js} +1 -1
- package/dist/{_baseEach-BC_75zAM.js → _baseEach-B8N_Gx8P.js} +2 -2
- package/dist/{_baseIsEqual-Dy0dFQAX.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
- package/dist/{_baseIteratee-BHjwOYqh.js → _baseIteratee-DvBmrhnf.js} +3 -3
- package/dist/{_getTag-Ce_JffFU.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-B-ENHrsI.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-VPyre7by.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-DtkgVAey.js +0 -42
- package/dist/CheckboxesControl-liJGUpRw.js +0 -38
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-m-g4D1dr.js +0 -226
- package/dist/ErrorMessage-DQT5FZlf.js +0 -23
- package/dist/HorizontalLayout-D1PnPnoE.js +0 -30
- package/dist/IntegerControl-D6kUQaXd.js +0 -18
- package/dist/NumberControl-CqwAwLo_.js +0 -18
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js +0 -42
- package/dist/OneOfDropdown-CIeXHQcC.js +0 -32
- package/dist/RadioControl-D64PZUts.js +0 -22
- package/dist/SimpleButtonControl-DevNyR5x.js +0 -58
- package/dist/SortListControl-BLeXo6HS.js +0 -356
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BHuggcaD.js +0 -69
- package/dist/TimeControl-DOpylHS3.js +0 -30
- package/dist/ValueSwitchControl-BVgE9bjw.js +0 -18
- package/dist/ZonedDateTimeControl-B8ORteJg.js +0 -66
- package/dist/isSymbol-DwnNqH7F.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-B2Sp1LQh.js +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 69e24d3: Add error messages to jsonforms renderers
|
|
8
|
+
|
|
9
|
+
## 1.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c1b0e41: Before this patch a hidden control in a horizontal layout reserved space.
|
|
14
|
+
|
|
3
15
|
## 1.4.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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
|
};
|