@knime/jsonforms 1.19.1 → 1.19.3
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 +13 -0
- package/dist/{AnyOfTwinlist-8N9_ROs5.js → AnyOfTwinlist-Dp4tys3q.js} +1 -1
- package/dist/{Button-BlwS9yuo.js → Button-CFECKZ55.js} +1 -1
- package/dist/{Checkbox-YP8cEunz.js → Checkbox-DQGgsPMe.js} +1 -1
- package/dist/{CheckboxControl-DLPB1JyP.js → CheckboxControl-Co-u8zIT.js} +1 -1
- package/dist/{CheckboxesControl-jutmpEyo.js → CheckboxesControl-Bgd9iMx4.js} +2 -2
- package/dist/{ColorControl-DF9yZFO7.js → ColorControl-DSIJEQa6.js} +1 -1
- package/dist/ColorPreviewControl-M74CZDtV.js +89 -0
- package/dist/{ComboBoxControl-D2_FZmcY.js → ComboBoxControl-DlDwfBJ6.js} +8 -8
- package/dist/{DateControl-DWES743u.js → DateControl-DXGRsPNb.js} +8 -7
- package/dist/{DateTimeControl-0L1sO9_r.js → DateTimeControl-DZu7GdGd.js} +1 -1
- package/dist/{DateTimeFormatInput-BDY7TFj7.js → DateTimeFormatInput-DQWXEBN9.js} +19 -19
- package/dist/{DateTimeFormatPickerControl-B1hYIzhH.js → DateTimeFormatPickerControl-DV1iDDsX.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CvXU3-gx.js → DateTimeFormatPickerWithTypeControl-Bo1QbIo_.js} +3 -3
- package/dist/{Dropdown-Cfw0EPio.js → Dropdown-Cd-G9xTT.js} +10 -10
- package/dist/DropdownControl-B5t3ci7I.js +41 -0
- package/dist/{HorizontalLayout-DP3cYs1M.js → HorizontalLayout-Ch3hLrIN.js} +1 -1
- package/dist/{IntegerControl-2UfeexxJ.js → IntegerControl-BtDffvT2.js} +1 -1
- package/dist/{IntervalControl-Hxza00MC.js → IntervalControl-4KXdyBow.js} +2 -2
- package/dist/Label-DIL1h9Qs.js +218 -0
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-Dvc5j9LS.js +48 -0
- package/dist/{LoadingIcon-vXOEpL-N.js → LoadingIcon-CahQdReW.js} +1 -1
- package/dist/{ManualTwinlistControl-CSQyz025.js → ManualTwinlistControl-DbAQmyh-.js} +4 -4
- package/dist/{MultiSelectListBoxControl-CDD_0uwK.js → MultiSelectListBoxControl-CJq8YRIf.js} +2 -2
- package/dist/{MultimodeTwinlistControl-BC2wu5IN.js → MultimodeTwinlistControl-BnZKShf0.js} +13 -13
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-D1c_IW_Z.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-CyQTPMyR.js} +2 -2
- package/dist/{MultiselectListBox-Dpd-_fEp.js → MultiselectListBox-DoaiyXCr.js} +2 -2
- package/dist/{NameFilter-DTvObQKn.js → NameFilter-BOOz855n.js} +1 -1
- package/dist/{NumberControl--5wUVIwB.js → NumberControl-BGfezDbH.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BE2viQpy.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DEUdBs67.js} +2 -2
- package/dist/{OneOfDropdown-C06xyucr.js → OneOfDropdown-CUjqXf2d.js} +1 -1
- package/dist/{RadioControl-PDlvyuwY.js → RadioControl-CflL2uzB.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BUgsN2F5.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DeJwqPMr.js} +2 -2
- package/dist/{RichTextControl-BoNZN7wg.js → RichTextControl-DgGRklWy.js} +11 -12
- package/dist/{SectionHeading-BVirAo_u.js → SectionHeading-DCJFQT3o.js} +1 -1
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js +18551 -0
- package/dist/{SectionLayout-D8nRLEi8.js → SectionLayout-G8HpKi28.js} +3 -3
- package/dist/{SettingsSubPanel-Dr4E6fLu.js → SettingsSubPanel-BjcrxG_D.js} +1 -1
- package/dist/{SettingsSubPanelLayout-C5_HeLtb.js → SettingsSubPanelLayout-SJU7BOgG.js} +6 -6
- package/dist/{SimpleButtonControl-DA5R6Hqb.js → SimpleButtonControl-B0z0KSAs.js} +2 -2
- package/dist/{SimpleTwinlistControl-DH6tARXr.js → SimpleTwinlistControl-DcuGc5tg.js} +2 -2
- package/dist/{SingleSelectControl-D8N91t_W.js → SingleSelectControl-BUjRwdMJ.js} +22 -21
- package/dist/{SingleSelectListBoxControl-tq3BZIjR.js → SingleSelectListBoxControl-ChoNB2eF.js} +3 -3
- package/dist/{SortListControl-p1eZHoPi.js → SortListControl-BerbmMJZ.js} +27 -27
- package/dist/{StyledListItem-Bjbm8PWH.js → StyledListItem-DGnmnBfT.js} +1 -1
- package/dist/{TextAreaControl-DNP6m73U.js → TextAreaControl-BTy9I4No.js} +1 -1
- package/dist/{TextControl-DWQh2c9J.js → TextControl-jApAdwbS.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BBMLWP_P.js → TextControl.vue_vue_type_script_setup_true_lang-BhRDHrnP.js} +2 -2
- package/dist/{TimeControl-DVRUzU2K.js → TimeControl-CyzaSlu_.js} +1 -1
- package/dist/{TwinlistControlBase-D-jrBzVO.js → TwinlistControlBase-Cr_kQ7QL.js} +3 -3
- package/dist/{TwinlistLoadingInfo-BOt-Tw38.js → TwinlistLoadingInfo-DDnRGx8d.js} +13 -14
- package/dist/{TypedStringFilter-CrwDAjLc.js → TypedStringFilter-44sDrVc2.js} +1 -1
- package/dist/{ValueSwitch-DrzW4E7s.js → ValueSwitch-DDh7pJlr.js} +3 -3
- package/dist/{ValueSwitchControl-CeBFIqJI.js → ValueSwitchControl-D2mlCmJc.js} +1 -1
- package/dist/{VerticalLayout-CEDAj1TV.js → VerticalLayout-DUWN2tE_.js} +2 -2
- package/dist/{VerticalLayoutBase-DOhe_AJD.js → VerticalLayoutBase-BXquSYig.js} +1 -1
- package/dist/{ZonedDateTimeControl-BJH2KwND.js → ZonedDateTimeControl-BqzNkyVT.js} +3 -3
- package/dist/{_baseEach-CgPrFUFU.js → _baseEach-CZzKf7-y.js} +2 -2
- package/dist/{_baseIteratee-dsEmUz-M.js → _baseIteratee-B35Fekqn.js} +3 -3
- package/dist/{_getTag-BOcul3cI.js → _getTag-BdqcT5ks.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-wdKO5CDb.js → localTimeUtils-mOEGN5Ue.js} +6 -6
- 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 +69 -0
- package/dist/src/uiComponents/ColorControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +11 -0
- 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/src/uiComponents/loading/LoadingDropdown.vue.d.ts +5 -1
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +1 -0
- package/dist/testing.js +2 -2
- package/dist/{toString-BcH7XIOl.js → toString-D3sgaaZu.js} +1 -1
- package/dist/{useBuiltinValidations-BwHkydob.js → useBuiltinValidations-BYH5TtV3.js} +1 -1
- package/dist/{usePossibleValues-DxL1Sx6O.js → usePossibleValues-Bl8VFSuX.js} +1 -1
- package/package.json +2 -2
- package/dist/DropdownControl-D_R8HS6H.js +0 -44
- package/dist/InputField-Bnyo6bWR.js +0 -148
- package/dist/Label-r9424CUy.js +0 -75
- package/dist/LoadingDropdown-CBvR7YLy.js +0 -74
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-BQCvcmqS.js +0 -17950
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- db87f97: Add `colorPreview` renderer and UI components for palette/gradient color previews, including tests.
|
|
8
|
+
- 91adce9: Enable isValid flag in DateControl
|
|
9
|
+
|
|
10
|
+
## 1.19.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- db625ea: Integrated KdsDropdown and KdsInlineMessage
|
|
15
|
+
|
|
3
16
|
## 1.19.1
|
|
4
17
|
|
|
5
18
|
### 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-Cr_kQ7QL.js";
|
|
4
4
|
const y = /* @__PURE__ */ s({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as r, withCtx as l, renderSlot as i } from "vue";
|
|
2
|
-
import { B as p, _ as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
2
|
+
import { B as p, _ as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
3
|
const c = o({
|
|
4
4
|
name: "Button",
|
|
5
5
|
components: {
|
|
@@ -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-nsJBcFCj.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 { ak as b, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.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-nsJBcFCj.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-Bl8VFSuX.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-nsJBcFCj.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-nsJBcFCj.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-Bl8VFSuX.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-nsJBcFCj.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-DQGgsPMe.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-mOEGN5Ue.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-mOEGN5Ue.js";
|
|
3
3
|
const T = /* @__PURE__ */ c({
|
|
4
4
|
__name: "DateTimeControl",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as y, createElementVNode as p, defineComponent as O, useCssVars as
|
|
2
|
-
import { _ as U,
|
|
1
|
+
import { openBlock as m, createElementBlock as y, createElementVNode as p, defineComponent as O, useCssVars as q, computed as F, ref as f, watch as z, reactive as G, onMounted as J, nextTick as N, onUnmounted as Q, createBlock as P, unref as E, withCtx as X, createCommentVNode as C, createVNode as k, Fragment as Y, renderList as ee, normalizeClass as I, toDisplayString as B, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
|
|
2
|
+
import { _ as U, M as ne } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
3
|
import { u as ie, a as re, o as ce, s as de, f as ue } from "./floating-ui.vue-Fx4CxKut.js";
|
|
4
4
|
import { u as me, F as pe } from "./useDropdownNavigation-2Yhk7zes.js";
|
|
5
|
-
import { L as ve } from "./LoadingIcon-
|
|
6
|
-
import { V as $ } from "./ValueSwitch-
|
|
5
|
+
import { L as ve } from "./LoadingIcon-CahQdReW.js";
|
|
6
|
+
import { V as $ } from "./ValueSwitch-DDh7pJlr.js";
|
|
7
7
|
const fe = {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
fill: "none",
|
|
@@ -24,7 +24,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
24
24
|
}, we = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "no-formats-available"
|
|
27
|
-
}, Ee = ["onClick"], Fe = { class: "format-pattern" },
|
|
27
|
+
}, Ee = ["onClick"], Fe = { class: "format-pattern" }, Me = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ O({
|
|
28
28
|
__name: "DateTimeFormatPickerPopover",
|
|
29
29
|
props: {
|
|
30
30
|
allFormats: {},
|
|
@@ -34,7 +34,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["commit", "cancel"],
|
|
36
36
|
setup(r, { emit: x }) {
|
|
37
|
-
|
|
37
|
+
q((e) => ({
|
|
38
38
|
v3b9e5e3a: H
|
|
39
39
|
}));
|
|
40
40
|
const n = x, c = r, D = F(() => [
|
|
@@ -82,7 +82,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
82
82
|
() => c.allFormats?.filter(
|
|
83
83
|
(e) => e.category === a.value && e.temporalType === u.value
|
|
84
84
|
) ?? null
|
|
85
|
-
), T = f(null), d =
|
|
85
|
+
), T = f(null), d = G({}), g = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
|
|
86
86
|
d[g(e)] = t;
|
|
87
87
|
}, w = (e) => ({
|
|
88
88
|
format: e.format,
|
|
@@ -169,8 +169,8 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
169
169
|
i.value.category
|
|
170
170
|
) : (h.value = null, K());
|
|
171
171
|
});
|
|
172
|
-
const
|
|
173
|
-
return
|
|
172
|
+
const M = f(!1);
|
|
173
|
+
return J(async () => {
|
|
174
174
|
if (!c.allFormats)
|
|
175
175
|
return;
|
|
176
176
|
const e = [
|
|
@@ -200,10 +200,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
200
200
|
temporalType: l
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
N(() =>
|
|
204
|
-
}), Q(() =>
|
|
205
|
-
active:
|
|
206
|
-
"onUpdate:active": t[3] || (t[3] = (o) =>
|
|
203
|
+
N(() => M.value = !0);
|
|
204
|
+
}), Q(() => M.value = !1), (e, t) => (m(), P(E(pe), {
|
|
205
|
+
active: M.value,
|
|
206
|
+
"onUpdate:active": t[3] || (t[3] = (o) => M.value = o),
|
|
207
207
|
"initial-focus": () => T.value ?? !1
|
|
208
208
|
}, {
|
|
209
209
|
default: X(() => [
|
|
@@ -218,7 +218,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
218
218
|
"possible-values": b.value,
|
|
219
219
|
class: "filter-switch"
|
|
220
220
|
}, null, 8, ["modelValue", "possible-values"])) : C("", !0),
|
|
221
|
-
|
|
221
|
+
k($, {
|
|
222
222
|
id: "selectedFormatStandard",
|
|
223
223
|
ref: "standardSwitchRef",
|
|
224
224
|
modelValue: a.value,
|
|
@@ -239,7 +239,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
239
239
|
(...o) => E(S) && E(S)(...o))
|
|
240
240
|
}, [
|
|
241
241
|
s.value === null ? (m(), y("div", xe, [
|
|
242
|
-
|
|
242
|
+
k(ve, { class: "loading-spinner" })
|
|
243
243
|
])) : s.value.length === 0 ? (m(), y("div", we, " No formats available ")) : (m(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => (m(), y("div", {
|
|
244
244
|
key: g(o),
|
|
245
245
|
ref_for: !0,
|
|
@@ -252,7 +252,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
252
252
|
onClick: () => n("commit", w(o))
|
|
253
253
|
}, [
|
|
254
254
|
p("span", Fe, B(o.format), 1),
|
|
255
|
-
p("span",
|
|
255
|
+
p("span", Me, B(o.example), 1)
|
|
256
256
|
], 10, Ee))), 128))
|
|
257
257
|
], 544)
|
|
258
258
|
])
|
|
@@ -261,7 +261,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
261
261
|
_: 1
|
|
262
262
|
}, 8, ["active", "initial-focus"]));
|
|
263
263
|
}
|
|
264
|
-
}), De = /* @__PURE__ */ U(
|
|
264
|
+
}), De = /* @__PURE__ */ U(ke, [["__scopeId", "data-v-8bb40d8b"]]), be = { class: "input-fields" }, _e = ["disabled"], ze = {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: "invalid-marker"
|
|
267
267
|
}, Ce = ["disabled"], Ie = {}, Ve = /* @__PURE__ */ O({
|
|
@@ -346,7 +346,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
346
346
|
disabled: r.disabled,
|
|
347
347
|
onClick: d[2] || (d[2] = (g) => a.value = !a.value)
|
|
348
348
|
}, [
|
|
349
|
-
|
|
349
|
+
k(E(he))
|
|
350
350
|
], 10, Ce)
|
|
351
351
|
])
|
|
352
352
|
], 2),
|
|
@@ -357,7 +357,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-con
|
|
|
357
357
|
class: "popover",
|
|
358
358
|
style: ae(E(s))
|
|
359
359
|
}, [
|
|
360
|
-
|
|
360
|
+
k(De, {
|
|
361
361
|
"all-formats": r.allDefaultFormats,
|
|
362
362
|
"initial-selected-pattern": n.value.format,
|
|
363
363
|
"selected-type": n.value.temporalType,
|
package/dist/{DateTimeFormatPickerControl-B1hYIzhH.js → DateTimeFormatPickerControl-DV1iDDsX.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, computed as e, openBlock as p, createBlock as f, unref as s } from "vue";
|
|
2
|
-
import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
3
|
-
import { D as v } from "./DateTimeFormatInput-
|
|
2
|
+
import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
|
+
import { D as v } from "./DateTimeFormatInput-DQWXEBN9.js";
|
|
4
4
|
const b = /* @__PURE__ */ c({
|
|
5
5
|
__name: "DateTimeFormatPickerControl",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, computed as t, openBlock as T, createElementBlock as V, createVNode as r, unref as i } from "vue";
|
|
2
|
-
import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
3
|
-
import { V as h } from "./ValueSwitch-
|
|
4
|
-
import { D as y } from "./DateTimeFormatInput-
|
|
2
|
+
import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
|
+
import { V as h } from "./ValueSwitch-DDh7pJlr.js";
|
|
4
|
+
import { D as y } from "./DateTimeFormatInput-DQWXEBN9.js";
|
|
5
5
|
const D = ["id"], w = /* @__PURE__ */ v({
|
|
6
6
|
__name: "DateTimeFormatPickerWithTypeControl",
|
|
7
7
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as G, shallowRef as _, h as z, watch as B, toValue as p, computed as M, unref as U, nextTick as X, toRefs as q, ref as E, resolveComponent as V, openBlock as c, createBlock as S, withCtx as C, createElementVNode as m, normalizeClass as y, normalizeStyle as J, createElementBlock as h, withModifiers as x, renderSlot as O, toDisplayString as D, createCommentVNode as v, withKeys as Q, createVNode as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as G, shallowRef as _, h as z, watch as B, toValue as p, computed as M, unref as U, nextTick as X, toRefs as q, ref as E, resolveComponent as V, openBlock as c, createBlock as S, withCtx as C, createElementVNode as m, normalizeClass as y, normalizeStyle as J, createElementBlock as h, withModifiers as x, renderSlot as O, toDisplayString as D, createCommentVNode as v, withKeys as Q, createVNode as N, withDirectives as Z, Fragment as w, renderList as P, createTextVNode as $, vShow as ee } from "vue";
|
|
2
|
+
import { M as te, Q as se, R, T as K, V as k, W as ie, X as ne, Y as le, J as ae, N as oe, _ as re } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
3
|
import { A as de } from "./arrow-dropdown-DMFBPPcK.js";
|
|
4
4
|
import { C as ue } from "./close-CwP2mh9x.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { u as ce } from "./useSearch-hpyYQ_6y.js";
|
|
7
7
|
import { i as he } from "./hotkeys-rxnt4egK.js";
|
|
8
|
-
import { c as fe, a as pe, b as me, i as ge, e as ye, h as Ve, d as xe } from "./_getTag-
|
|
8
|
+
import { c as fe, a as pe, b as me, i as ge, e as ye, h as Ve, d as xe } from "./_getTag-BdqcT5ks.js";
|
|
9
9
|
import { i as ve } from "./isArray-WzO_os3q.js";
|
|
10
10
|
var we = "[object Map]", be = "[object Set]", Ee = Object.prototype, Se = Ee.hasOwnProperty;
|
|
11
11
|
function Ce(e) {
|
|
@@ -144,7 +144,7 @@ function Be() {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
Be();
|
|
147
|
-
const L = "ArrowDown", H = "ArrowUp", F = "Home", W = "End", Me = "Escape", Y = "Enter",
|
|
147
|
+
const L = "ArrowDown", H = "ArrowUp", F = "Home", W = "End", Me = "Escape", Y = "Enter", Ne = [L, H, F, W, Y], Pe = {
|
|
148
148
|
name: "Dropdown",
|
|
149
149
|
components: {
|
|
150
150
|
DropdownIcon: de,
|
|
@@ -426,7 +426,7 @@ const L = "ArrowDown", H = "ArrowUp", F = "Home", W = "End", Me = "Escape", Y =
|
|
|
426
426
|
},
|
|
427
427
|
/* NOTE: we use a single keyDown method because @keydown.up bindings are not testable. */
|
|
428
428
|
handleKeyDownButton(e) {
|
|
429
|
-
this.isExpanded ? this.handleKeyDownOnExpanded(e) : he(e,
|
|
429
|
+
this.isExpanded ? this.handleKeyDownOnExpanded(e) : he(e, Ne) && (this.expand(), e.preventDefault());
|
|
430
430
|
},
|
|
431
431
|
handleKeyDownOnExpanded(e) {
|
|
432
432
|
e.key === L && (this.onArrowDown(), e.preventDefault()), e.key === H && (this.onArrowUp(), e.preventDefault()), e.key === W && (this.onEndKey(), e.preventDefault()), e.key === F && (this.onHomeKey(), e.preventDefault()), e.key === Me && (this.collapse(), e.preventDefault(), e.stopPropagation()), e.key === Y && (this.onEnter(), e.preventDefault());
|
|
@@ -541,7 +541,7 @@ function ze(e, t, s, n, r, i) {
|
|
|
541
541
|
onClick: x(i.handleResetInput, ["stop"])
|
|
542
542
|
}, {
|
|
543
543
|
default: C(() => [
|
|
544
|
-
|
|
544
|
+
N(f, { class: "icon" })
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 8, ["compact", "onClick"])) : v("", !0),
|
|
@@ -555,7 +555,7 @@ function ze(e, t, s, n, r, i) {
|
|
|
555
555
|
onClick: x(i.toggleExpanded, ["stop"])
|
|
556
556
|
}, {
|
|
557
557
|
default: C(() => [
|
|
558
|
-
|
|
558
|
+
N(a, {
|
|
559
559
|
class: y(["dropdown-icon", "icon"])
|
|
560
560
|
})
|
|
561
561
|
]),
|
|
@@ -571,9 +571,9 @@ function ze(e, t, s, n, r, i) {
|
|
|
571
571
|
class: y({ "drops-upwards": s.direction === "up" })
|
|
572
572
|
}, [
|
|
573
573
|
i.hasNoFilteredPossibleValues ? (c(), h("div", Ye, D(r.emptyState), 1)) : v("", !0),
|
|
574
|
-
(c(!0), h(w, null,
|
|
574
|
+
(c(!0), h(w, null, P(i.orderedGroupedValues, (u, b) => (c(), h(w, { key: b }, [
|
|
575
575
|
t[5] || (t[5] = m("span", { class: "group-divider" }, null, -1)),
|
|
576
|
-
(c(!0), h(w, null,
|
|
576
|
+
(c(!0), h(w, null, P(u.items, (d) => (c(), h("li", {
|
|
577
577
|
id: i.generateId("option", d.id),
|
|
578
578
|
key: `listbox-${d.id}`,
|
|
579
579
|
ref_for: !0,
|
|
@@ -614,7 +614,7 @@ function ze(e, t, s, n, r, i) {
|
|
|
614
614
|
_: 3
|
|
615
615
|
}, 8, ["onTrigger"]);
|
|
616
616
|
}
|
|
617
|
-
const st = /* @__PURE__ */ re(
|
|
617
|
+
const st = /* @__PURE__ */ re(Pe, [["render", ze], ["__scopeId", "data-v-0a20a161"]]);
|
|
618
618
|
export {
|
|
619
619
|
st as D
|
|
620
620
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as r, toRef as s, computed as o, openBlock as n, createBlock as t, unref as d } from "vue";
|
|
2
|
+
import { x as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
|
+
import { u as m } from "./usePossibleValues-Bl8VFSuX.js";
|
|
4
|
+
import { _ as b } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-Dvc5j9LS.js";
|
|
5
|
+
const F = /* @__PURE__ */ r({
|
|
6
|
+
__name: "DropdownControl",
|
|
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(e) {
|
|
17
|
+
const a = e, { possibleValues: l } = m(s(a, "control")), i = o(() => a.control.uischema?.options?.allowNewValue), u = o(
|
|
18
|
+
() => i.value && l.value !== null && l.value.length === 0
|
|
19
|
+
);
|
|
20
|
+
return (V, f) => u.value ? (n(), t(d(c), {
|
|
21
|
+
key: 0,
|
|
22
|
+
id: e.labelForId,
|
|
23
|
+
disabled: e.disabled,
|
|
24
|
+
"model-value": e.control.data,
|
|
25
|
+
error: !e.isValid,
|
|
26
|
+
"onUpdate:modelValue": e.changeValue
|
|
27
|
+
}, null, 8, ["id", "disabled", "model-value", "error", "onUpdate:modelValue"])) : (n(), t(b, {
|
|
28
|
+
key: 1,
|
|
29
|
+
id: e.labelForId ?? "",
|
|
30
|
+
ariaLabel: e.control.label,
|
|
31
|
+
disabled: e.disabled,
|
|
32
|
+
"model-value": e.control.data ?? "",
|
|
33
|
+
"possible-values": d(l),
|
|
34
|
+
error: !e.isValid,
|
|
35
|
+
"onUpdate:modelValue": e.changeValue
|
|
36
|
+
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "onUpdate:modelValue"]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
F as default
|
|
41
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as a, createElementBlock as t, Fragment as r, renderList as c, createBlock as s, unref as u } from "vue";
|
|
2
|
-
import { a as m, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-
|
|
2
|
+
import { a as m, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
3
|
const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DEUdBs67.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { openBlock as m, createElementBlock as f, renderSlot as Ve, toDisplayString as F, createCommentVNode as $, createElementVNode as c, resolveComponent as ye, normalizeClass as b, withModifiers as R, createVNode as I, defineComponent as L, useModel as H, computed as w, Fragment as O, createBlock as ee, withDirectives as D, vShow as S, renderList as K, unref as p, withCtx as W, createTextVNode as xe, mergeModels as U, ref as T, watch as q, withKeys as Ae, vModelText as Me, normalizeStyle as _e } from "vue";
|
|
2
|
-
import { _ as C,
|
|
2
|
+
import { _ as C, J as be, M as De, a3 as we, u as Pe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
|
|
3
3
|
import { u as Re, a as Ne, s as Se, f as $e, o as Ce } from "./floating-ui.vue-Fx4CxKut.js";
|
|
4
4
|
import { A as Oe } from "./arrow-dropdown-DMFBPPcK.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { V as z } from "./ValueSwitch-
|
|
6
|
+
import { V as z } from "./ValueSwitch-DDh7pJlr.js";
|
|
7
7
|
const Be = {
|
|
8
8
|
name: "Tooltip",
|
|
9
9
|
props: {
|