@knime/jsonforms 1.14.3 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
- package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
- package/dist/CheckboxControl-q88fZSZD.js +58 -0
- package/dist/Checkboxes-Bofcg7tl.js +120 -0
- package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
- package/dist/DateControl-vnkppn62.js +38 -0
- package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
- package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
- package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
- package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
- package/dist/Dropdown-D49sEHBa.js +663 -0
- package/dist/DropdownControl-aeEqC-Yg.js +46 -0
- package/dist/HorizontalLayout-D0toQmVl.js +39 -0
- package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
- package/dist/IntegerControl-DAwniqjW.js +33 -0
- package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
- package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
- package/dist/LoadingIcon-RPBUjTO3.js +23 -0
- package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
- package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
- package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
- package/dist/NameFilter-BV68t_P5.js +37 -0
- package/dist/NumberControl-Dm01CJW9.js +33 -0
- package/dist/NumberControlBase-CN5eTKEm.js +58 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
- package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
- package/dist/RadioControl-X6HLs9F1.js +36 -0
- package/dist/RadioControlBase-BGUHTIUl.js +111 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
- package/dist/SectionHeading-B6JkPyMh.js +31 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
- package/dist/SectionLayout-7pXn4OHo.js +61 -0
- package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
- package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
- package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
- package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
- package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
- package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
- package/dist/SortListControl-CWuxKIEb.js +445 -0
- package/dist/StyledListItem-NqAG7jSw.js +81 -0
- package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
- package/dist/TextControl-w9vrCC1T.js +54 -0
- package/dist/TimeControl-DiNQSV4K.js +46 -0
- package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
- package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
- package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
- package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
- package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
- package/dist/VerticalLayout-DY8gbasK.js +39 -0
- package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
- package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
- package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +133 -110
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/reload-57Xc2t-6.js +23 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DTVXBGRC.js +16 -0
- package/package.json +14 -14
- package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/Checkboxes-DIPjJhPO.js +0 -103
- package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
- package/dist/DateControl-CddCObVg.js +0 -29
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
- package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
- package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
- package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/DropdownControl-BNQKWzTT.js +0 -31
- package/dist/HorizontalLayout-6GwurgkR.js +0 -25
- package/dist/IntegerControl-DZIY-wb_.js +0 -20
- package/dist/IntervalControl-Yts36_MI.js +0 -546
- package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
- package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
- package/dist/NameFilter-D0hKO5Fr.js +0 -24
- package/dist/NumberControl-DkeQT1iR.js +0 -20
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
- package/dist/RadioControl-DjrysNQ_.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SectionLayout-CJP4sYyB.js +0 -46
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
- package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
- package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
- package/dist/SortListControl-mvJofiWn.js +0 -375
- package/dist/StyledListItem-BXz08pEQ.js +0 -72
- package/dist/TextAreaControl-S4aoqAv1.js +0 -111
- package/dist/TextControl-rJrjrBw8.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
- package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/ValueSwitch-CUYV7v67.js +0 -131
- package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
- package/dist/VerticalLayout-D2eQSYgv.js +0 -30
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/reload-BVbCGubF.js +0 -17
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as y, createElementVNode as v, defineComponent as O, computed as F, ref as f, watch as I, 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, normalizeStyle as U, Fragment as Y, renderList as ee, normalizeClass as V, toDisplayString as B, mergeModels as te, useModel as oe, withDirectives as le, vModelText as ae } from "vue";
|
|
2
|
-
import { o as se } from "./index-CoRworrE.js";
|
|
3
|
-
import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue-B-MrqKCT.js";
|
|
4
|
-
import { u as me, F as ue } from "./useDropdownNavigation-7o7SRJSo.js";
|
|
5
|
-
import { L as pe } from "./svgWithTitle-Cr3Pu3wr.js";
|
|
6
|
-
import { V as $ } from "./ValueSwitch-CUYV7v67.js";
|
|
7
|
-
import { _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
8
|
-
const ve = {
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
fill: "none",
|
|
11
|
-
"stroke-linejoin": "round",
|
|
12
|
-
viewBox: "0 0 32 32"
|
|
13
|
-
};
|
|
14
|
-
function fe(x, g) {
|
|
15
|
-
return p(), y("svg", ve, g[0] || (g[0] = [
|
|
16
|
-
v("path", {
|
|
17
|
-
fill: "#000",
|
|
18
|
-
d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
|
|
19
|
-
}, null, -1)
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-container-border-host" }, ge = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "no-formats-available"
|
|
25
|
-
}, we = {
|
|
26
|
-
key: 1,
|
|
27
|
-
class: "no-formats-available"
|
|
28
|
-
}, Ee = ["onClick"], xe = { class: "format-pattern" }, Fe = { class: "format-preview" }, H = 1, _e = /* @__PURE__ */ O({
|
|
29
|
-
__name: "DateTimeFormatPickerPopover",
|
|
30
|
-
props: {
|
|
31
|
-
allFormats: {},
|
|
32
|
-
selectedType: {},
|
|
33
|
-
initialSelectedPattern: {},
|
|
34
|
-
showTypeSwitch: { type: Boolean }
|
|
35
|
-
},
|
|
36
|
-
emits: ["commit", "cancel"],
|
|
37
|
-
setup(x, { emit: g }) {
|
|
38
|
-
const n = g, c = x, M = F(() => [
|
|
39
|
-
{
|
|
40
|
-
id: "RECENT",
|
|
41
|
-
text: "Recent"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "STANDARD",
|
|
45
|
-
text: "ISO"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "EUROPEAN",
|
|
49
|
-
text: "European"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: "AMERICAN",
|
|
53
|
-
text: "United States"
|
|
54
|
-
}
|
|
55
|
-
]), D = F(() => [
|
|
56
|
-
{
|
|
57
|
-
id: "DATE",
|
|
58
|
-
text: "Date"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: "DATE_TIME",
|
|
62
|
-
text: "Date & time"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: "TIME",
|
|
66
|
-
text: "Time"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: "ZONED_DATE_TIME",
|
|
70
|
-
text: "Zoned date & time"
|
|
71
|
-
}
|
|
72
|
-
]), i = f(null), h = f(null), a = f("RECENT"), u = f(c.selectedType);
|
|
73
|
-
I(
|
|
74
|
-
() => c.selectedType,
|
|
75
|
-
(e) => {
|
|
76
|
-
h.value = e;
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
const s = F(
|
|
80
|
-
() => {
|
|
81
|
-
var e;
|
|
82
|
-
return ((e = c.allFormats) == null ? void 0 : e.filter(
|
|
83
|
-
(t) => t.category === a.value && t.temporalType === u.value
|
|
84
|
-
)) ?? null;
|
|
85
|
-
}
|
|
86
|
-
), r = f(null), m = G({}), T = (e) => `${e.format}-${e.category}-${e.temporalType}`, K = (e) => (t) => {
|
|
87
|
-
m[T(e)] = t;
|
|
88
|
-
}, w = (e) => ({
|
|
89
|
-
format: e.format,
|
|
90
|
-
temporalType: e.temporalType
|
|
91
|
-
}), {
|
|
92
|
-
currentIndex: b,
|
|
93
|
-
onKeydown: S,
|
|
94
|
-
resetNavigation: Z,
|
|
95
|
-
setElement: W
|
|
96
|
-
} = me({
|
|
97
|
-
keepOpenedOnTab: !0,
|
|
98
|
-
getFirstElement: () => ({
|
|
99
|
-
index: 0,
|
|
100
|
-
onClick: () => n(
|
|
101
|
-
"commit",
|
|
102
|
-
w(s.value[0])
|
|
103
|
-
)
|
|
104
|
-
}),
|
|
105
|
-
getLastElement: () => {
|
|
106
|
-
const e = s.value.length - 1;
|
|
107
|
-
return {
|
|
108
|
-
index: e,
|
|
109
|
-
onClick: () => n(
|
|
110
|
-
"commit",
|
|
111
|
-
w(s.value[e])
|
|
112
|
-
)
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
getNextElement: (e, t) => {
|
|
116
|
-
if (e = e === null || e === -1 ? null : e, t === 1) {
|
|
117
|
-
const l = ((e ?? -1) + 1) % s.value.length;
|
|
118
|
-
return {
|
|
119
|
-
index: l,
|
|
120
|
-
onClick: () => n(
|
|
121
|
-
"commit",
|
|
122
|
-
w(s.value[l])
|
|
123
|
-
)
|
|
124
|
-
};
|
|
125
|
-
} else {
|
|
126
|
-
const l = ((e ?? 0) - 1 + s.value.length) % s.value.length;
|
|
127
|
-
return {
|
|
128
|
-
index: l,
|
|
129
|
-
onClick: () => n(
|
|
130
|
-
"commit",
|
|
131
|
-
w(s.value[l])
|
|
132
|
-
)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
close: () => {
|
|
137
|
-
n("cancel");
|
|
138
|
-
}
|
|
139
|
-
}), j = (e) => {
|
|
140
|
-
const t = e.parentElement;
|
|
141
|
-
if (t && t.scrollHeight > t.clientHeight) {
|
|
142
|
-
const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, d = e.offsetTop + e.offsetHeight - o;
|
|
143
|
-
d > l ? t.scrollTop = d - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
144
|
-
}
|
|
145
|
-
}, A = (e) => {
|
|
146
|
-
const t = m[`${e}-${a.value}-${u.value}`];
|
|
147
|
-
t && j(t);
|
|
148
|
-
}, R = async (e, t, o) => {
|
|
149
|
-
u.value = t ?? u.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
|
|
150
|
-
const l = s.value.findIndex(
|
|
151
|
-
(d) => d.format === e
|
|
152
|
-
);
|
|
153
|
-
W({
|
|
154
|
-
index: l,
|
|
155
|
-
onClick: () => n(
|
|
156
|
-
"commit",
|
|
157
|
-
w(s.value[l])
|
|
158
|
-
)
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
I(b, (e) => {
|
|
162
|
-
var o, l;
|
|
163
|
-
if (e === null)
|
|
164
|
-
return;
|
|
165
|
-
const t = (l = (o = s.value) == null ? void 0 : o[e]) == null ? void 0 : l.format;
|
|
166
|
-
t && A(t);
|
|
167
|
-
}), I([u, a], () => {
|
|
168
|
-
var e, t;
|
|
169
|
-
u.value === ((e = i.value) == null ? void 0 : e.temporalType) && a.value === ((t = i.value) == null ? void 0 : t.category) ? R(
|
|
170
|
-
i.value.format,
|
|
171
|
-
i.value.temporalType,
|
|
172
|
-
i.value.category
|
|
173
|
-
) : (h.value = null, Z());
|
|
174
|
-
});
|
|
175
|
-
const _ = f(!1);
|
|
176
|
-
return J(async () => {
|
|
177
|
-
if (!c.allFormats)
|
|
178
|
-
return;
|
|
179
|
-
const e = [
|
|
180
|
-
"RECENT",
|
|
181
|
-
"STANDARD",
|
|
182
|
-
"EUROPEAN",
|
|
183
|
-
"AMERICAN"
|
|
184
|
-
], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
|
|
185
|
-
(o) => (
|
|
186
|
-
// if the type switch is hidden, filter to only formats with the same type
|
|
187
|
-
c.selectedType === o.temporalType || c.showTypeSwitch
|
|
188
|
-
)
|
|
189
|
-
).sort((o, l) => {
|
|
190
|
-
const d = e.indexOf(o.category), z = e.indexOf(l.category);
|
|
191
|
-
return d - z;
|
|
192
|
-
});
|
|
193
|
-
if (t.length > 0) {
|
|
194
|
-
const o = t[0].format, l = t[0].temporalType, d = t[0].category;
|
|
195
|
-
await R(o, l, d);
|
|
196
|
-
const z = s.value.findIndex(
|
|
197
|
-
(q) => q.format === o
|
|
198
|
-
);
|
|
199
|
-
i.value = {
|
|
200
|
-
format: o,
|
|
201
|
-
index: z,
|
|
202
|
-
category: d,
|
|
203
|
-
temporalType: l
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
N(() => _.value = !0);
|
|
207
|
-
}), Q(() => _.value = !1), (e, t) => (p(), P(E(ue), {
|
|
208
|
-
active: _.value,
|
|
209
|
-
"onUpdate:active": t[3] || (t[3] = (o) => _.value = o),
|
|
210
|
-
"initial-focus": () => r.value ?? !1
|
|
211
|
-
}, {
|
|
212
|
-
default: X(() => [
|
|
213
|
-
v("div", he, [
|
|
214
|
-
e.showTypeSwitch ? (p(), P($, {
|
|
215
|
-
key: 0,
|
|
216
|
-
id: "selectedFormatType",
|
|
217
|
-
ref: "typeSwitchRef",
|
|
218
|
-
modelValue: u.value,
|
|
219
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => u.value = o),
|
|
220
|
-
compact: "",
|
|
221
|
-
"possible-values": D.value,
|
|
222
|
-
class: "filter-switch"
|
|
223
|
-
}, null, 8, ["modelValue", "possible-values"])) : C("", !0),
|
|
224
|
-
k($, {
|
|
225
|
-
id: "selectedFormatStandard",
|
|
226
|
-
ref: "standardSwitchRef",
|
|
227
|
-
modelValue: a.value,
|
|
228
|
-
"onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
|
|
229
|
-
compact: "",
|
|
230
|
-
"possible-values": M.value,
|
|
231
|
-
class: "filter-switch"
|
|
232
|
-
}, null, 8, ["modelValue", "possible-values"]),
|
|
233
|
-
v("div", Te, [
|
|
234
|
-
v("div", {
|
|
235
|
-
id: "dateFormats",
|
|
236
|
-
ref_key: "formatContainerRef",
|
|
237
|
-
ref: r,
|
|
238
|
-
class: "formats-container",
|
|
239
|
-
style: U({ "--formats-container-border-width": H + "px" }),
|
|
240
|
-
tabindex: "0",
|
|
241
|
-
role: "menu",
|
|
242
|
-
onKeydown: t[2] || (t[2] = //@ts-ignore
|
|
243
|
-
(...o) => E(S) && E(S)(...o))
|
|
244
|
-
}, [
|
|
245
|
-
s.value === null ? (p(), y("div", ge, [
|
|
246
|
-
k(pe, { class: "loading-spinner" })
|
|
247
|
-
])) : s.value.length === 0 ? (p(), y("div", we, " No formats available ")) : (p(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => {
|
|
248
|
-
var d;
|
|
249
|
-
return p(), y("div", {
|
|
250
|
-
key: T(o),
|
|
251
|
-
ref_for: !0,
|
|
252
|
-
ref: K(o),
|
|
253
|
-
class: V([{
|
|
254
|
-
highlighted: l === E(b),
|
|
255
|
-
applied: l === ((d = i.value) == null ? void 0 : d.index) && o.category === i.value.category && o.temporalType === i.value.temporalType
|
|
256
|
-
}, "single-format"]),
|
|
257
|
-
role: "menuitem",
|
|
258
|
-
onClick: () => n("commit", w(o))
|
|
259
|
-
}, [
|
|
260
|
-
v("span", xe, B(o.format), 1),
|
|
261
|
-
v("span", Fe, B(o.example), 1)
|
|
262
|
-
], 10, Ee);
|
|
263
|
-
}), 128))
|
|
264
|
-
], 36)
|
|
265
|
-
])
|
|
266
|
-
])
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
}, 8, ["active", "initial-focus"]));
|
|
270
|
-
}
|
|
271
|
-
}), ke = /* @__PURE__ */ L(_e, [["__scopeId", "data-v-5d20d963"]]), Me = { class: "input-fields" }, De = ["disabled"], ze = {
|
|
272
|
-
key: 0,
|
|
273
|
-
class: "invalid-marker"
|
|
274
|
-
}, Ie = ["disabled"], Ce = {}, Ve = /* @__PURE__ */ O({
|
|
275
|
-
...Ce,
|
|
276
|
-
__name: "DateTimeFormatInput",
|
|
277
|
-
props: /* @__PURE__ */ te({
|
|
278
|
-
disabled: { type: Boolean, default: !1 },
|
|
279
|
-
compact: { type: Boolean, default: !1 },
|
|
280
|
-
isValid: { type: Boolean, default: !0 },
|
|
281
|
-
allDefaultFormats: {},
|
|
282
|
-
allowedTypes: { default: () => [
|
|
283
|
-
"DATE",
|
|
284
|
-
"TIME",
|
|
285
|
-
"DATE_TIME",
|
|
286
|
-
"ZONED_DATE_TIME"
|
|
287
|
-
] },
|
|
288
|
-
showTypeSwitchInPopover: { type: Boolean, default: !0 }
|
|
289
|
-
}, {
|
|
290
|
-
modelValue: {
|
|
291
|
-
default: {
|
|
292
|
-
format: "yyyy-MM-dd",
|
|
293
|
-
temporalType: "DATE"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
modelModifiers: {}
|
|
297
|
-
}),
|
|
298
|
-
emits: ["update:modelValue"],
|
|
299
|
-
setup(x) {
|
|
300
|
-
const g = x, n = oe(x, "modelValue"), c = F({
|
|
301
|
-
get: () => n.value.format,
|
|
302
|
-
set: (r) => {
|
|
303
|
-
n.value = {
|
|
304
|
-
...n.value,
|
|
305
|
-
format: r
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
}), M = "Format like 'yyyy-MM-dd'", D = F(() => g.isValid), i = f(null), h = f(null), a = f(!1), u = (r) => {
|
|
309
|
-
n.value = r, a.value = !1;
|
|
310
|
-
};
|
|
311
|
-
se(h, () => a.value = !1, {
|
|
312
|
-
ignore: [i]
|
|
313
|
-
});
|
|
314
|
-
const { floatingStyles: s } = ne(
|
|
315
|
-
i,
|
|
316
|
-
h,
|
|
317
|
-
{
|
|
318
|
-
middleware: [
|
|
319
|
-
ie({
|
|
320
|
-
mainAxis: 2,
|
|
321
|
-
crossAxis: 0
|
|
322
|
-
}),
|
|
323
|
-
re(),
|
|
324
|
-
de({
|
|
325
|
-
mainAxis: !0,
|
|
326
|
-
crossAxis: !1
|
|
327
|
-
})
|
|
328
|
-
],
|
|
329
|
-
placement: "top-end",
|
|
330
|
-
whileElementsMounted: ce
|
|
331
|
-
}
|
|
332
|
-
);
|
|
333
|
-
return (r, m) => (p(), y("div", null, [
|
|
334
|
-
v("div", {
|
|
335
|
-
class: V(["wrapper", { disabled: r.disabled, compact: r.compact }])
|
|
336
|
-
}, [
|
|
337
|
-
v("span", Me, [
|
|
338
|
-
le(v("input", {
|
|
339
|
-
"onUpdate:modelValue": m[0] || (m[0] = (T) => c.value = T),
|
|
340
|
-
type: "text",
|
|
341
|
-
disabled: r.disabled,
|
|
342
|
-
placeholder: M,
|
|
343
|
-
spellcheck: "false",
|
|
344
|
-
onFocus: m[1] || (m[1] = (T) => a.value = !1)
|
|
345
|
-
}, null, 40, De), [
|
|
346
|
-
[ae, c.value]
|
|
347
|
-
]),
|
|
348
|
-
D.value ? C("", !0) : (p(), y("span", ze)),
|
|
349
|
-
v("button", {
|
|
350
|
-
ref_key: "togglePopoverButtonRef",
|
|
351
|
-
ref: i,
|
|
352
|
-
class: V(["trigger-popover-button", { active: a.value }]),
|
|
353
|
-
disabled: r.disabled,
|
|
354
|
-
onClick: m[2] || (m[2] = (T) => a.value = !a.value)
|
|
355
|
-
}, [
|
|
356
|
-
k(E(ye))
|
|
357
|
-
], 10, Ie)
|
|
358
|
-
])
|
|
359
|
-
], 2),
|
|
360
|
-
a.value ? (p(), y("div", {
|
|
361
|
-
key: 0,
|
|
362
|
-
ref_key: "floatingPopoverRef",
|
|
363
|
-
ref: h,
|
|
364
|
-
class: "popover",
|
|
365
|
-
style: U(E(s))
|
|
366
|
-
}, [
|
|
367
|
-
k(ke, {
|
|
368
|
-
"all-formats": r.allDefaultFormats,
|
|
369
|
-
"initial-selected-pattern": n.value.format,
|
|
370
|
-
"selected-type": n.value.temporalType,
|
|
371
|
-
"show-type-switch": r.showTypeSwitchInPopover,
|
|
372
|
-
onCommit: u,
|
|
373
|
-
onCancel: m[3] || (m[3] = (T) => a.value = !1)
|
|
374
|
-
}, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
|
|
375
|
-
], 4)) : C("", !0)
|
|
376
|
-
]));
|
|
377
|
-
}
|
|
378
|
-
}), $e = /* @__PURE__ */ L(Ve, [["__scopeId", "data-v-a18d67d3"]]);
|
|
379
|
-
export {
|
|
380
|
-
$e as D
|
|
381
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, computed as o, openBlock as c, createBlock as f, unref as r } from "vue";
|
|
2
|
-
import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
3
|
-
import { D as v } from "./DateTimeFormatInput-bO1zHUyp.js";
|
|
4
|
-
const b = /* @__PURE__ */ p({
|
|
5
|
-
__name: "DateTimeFormatPickerControl",
|
|
6
|
-
props: {
|
|
7
|
-
control: {},
|
|
8
|
-
handleChange: { type: Function },
|
|
9
|
-
changeValue: { type: Function },
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
isValid: { type: Boolean },
|
|
12
|
-
onRegisterValidation: { type: Function },
|
|
13
|
-
labelForId: {}
|
|
14
|
-
},
|
|
15
|
-
setup(s) {
|
|
16
|
-
const a = s, t = o(
|
|
17
|
-
() => a.control.uischema
|
|
18
|
-
), d = o(() => t.value.options), m = o(() => {
|
|
19
|
-
var e;
|
|
20
|
-
return (e = d.value) == null ? void 0 : e.allowedFormats;
|
|
21
|
-
}), i = F(t, "dateTimeFormats"), l = o({
|
|
22
|
-
get: () => ({
|
|
23
|
-
format: a.control.data,
|
|
24
|
-
temporalType: "DATE"
|
|
25
|
-
}),
|
|
26
|
-
set: (e) => a.changeValue(e.format)
|
|
27
|
-
});
|
|
28
|
-
return (e, n) => (c(), f(r(v), {
|
|
29
|
-
id: e.labelForId,
|
|
30
|
-
modelValue: l.value,
|
|
31
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => l.value = u),
|
|
32
|
-
compact: "",
|
|
33
|
-
disabled: e.disabled,
|
|
34
|
-
"show-type-switch-in-popover": !0,
|
|
35
|
-
"allowed-formats": m.value,
|
|
36
|
-
"all-default-formats": r(i),
|
|
37
|
-
"is-valid": !0
|
|
38
|
-
}, null, 8, ["id", "modelValue", "disabled", "allowed-formats", "all-default-formats"]));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
b as default
|
|
43
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as t, openBlock as T, createElementBlock as V, createVNode as r, unref as d } from "vue";
|
|
2
|
-
import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
3
|
-
import { V as h } from "./ValueSwitch-CUYV7v67.js";
|
|
4
|
-
import { D as y } from "./DateTimeFormatInput-bO1zHUyp.js";
|
|
5
|
-
const D = ["id"], _ = /* @__PURE__ */ v({
|
|
6
|
-
__name: "DateTimeFormatPickerWithTypeControl",
|
|
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(m) {
|
|
17
|
-
const l = m, i = t(
|
|
18
|
-
() => l.control.uischema
|
|
19
|
-
), u = t(() => i.value.options), p = t(() => {
|
|
20
|
-
var e;
|
|
21
|
-
return (e = u.value) == null ? void 0 : e.allowedFormats;
|
|
22
|
-
}), c = F(i, "dateTimeFormats"), f = [
|
|
23
|
-
{
|
|
24
|
-
id: "DATE",
|
|
25
|
-
text: "Date"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "DATE_TIME",
|
|
29
|
-
text: "Date & time"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: "TIME",
|
|
33
|
-
text: "Time"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: "ZONED_DATE_TIME",
|
|
37
|
-
text: "Zoned date & time"
|
|
38
|
-
}
|
|
39
|
-
], o = t({
|
|
40
|
-
get: () => l.control.data,
|
|
41
|
-
set: (e) => {
|
|
42
|
-
l.changeValue(e);
|
|
43
|
-
}
|
|
44
|
-
}), n = t({
|
|
45
|
-
get: () => o.value.temporalType,
|
|
46
|
-
set: (e) => {
|
|
47
|
-
o.value = {
|
|
48
|
-
...o.value,
|
|
49
|
-
temporalType: e
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return (e, a) => (T(), V("div", {
|
|
54
|
-
id: e.labelForId,
|
|
55
|
-
class: "control-container"
|
|
56
|
-
}, [
|
|
57
|
-
r(d(h), {
|
|
58
|
-
modelValue: n.value,
|
|
59
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
60
|
-
compact: "",
|
|
61
|
-
"possible-values": f,
|
|
62
|
-
disabled: e.disabled
|
|
63
|
-
}, null, 8, ["modelValue", "disabled"]),
|
|
64
|
-
r(d(y), {
|
|
65
|
-
modelValue: o.value,
|
|
66
|
-
"onUpdate:modelValue": a[1] || (a[1] = (s) => o.value = s),
|
|
67
|
-
compact: "",
|
|
68
|
-
disabled: e.disabled,
|
|
69
|
-
"show-type-switch-in-popover": !1,
|
|
70
|
-
"allowed-formats": p.value,
|
|
71
|
-
"all-default-formats": d(c),
|
|
72
|
-
"is-valid": !0
|
|
73
|
-
}, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
|
|
74
|
-
], 8, D));
|
|
75
|
-
}
|
|
76
|
-
}), B = /* @__PURE__ */ b(_, [["__scopeId", "data-v-8517cafd"]]);
|
|
77
|
-
export {
|
|
78
|
-
B as default
|
|
79
|
-
};
|