@knime/jsonforms 1.5.9 → 1.5.11
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 +17 -0
- package/dist/{AnyOfTwinlist-D_wKDkgH.js → AnyOfTwinlist-Bdrhc6uW.js} +1 -1
- package/dist/{BaseButton-C13_k-le.js → BaseButton-Dy2rQt0b.js} +1 -1
- package/dist/{Button-D59Hu_Oe.js → Button-BdlfMrsO.js} +2 -2
- package/dist/{Checkbox-BCFe0QQA.js → Checkbox-unJMpX-O.js} +1 -1
- package/dist/{CheckboxControl-Bxmhd07k.js → CheckboxControl-Ck8QAKm0.js} +2 -2
- package/dist/{Checkboxes-Ct7xbZzA.js → Checkboxes-CtxOlG_P.js} +2 -2
- package/dist/{CheckboxesControl-BHmaIJxP.js → CheckboxesControl-LMvcE5FC.js} +2 -2
- package/dist/{ColumnFilter-Dm9u-ihr.js → ColumnFilter-B6JiVV4K.js} +1 -1
- package/dist/{ColumnSelect-BhOWUmeV.js → ColumnSelect-BnMmvl1p.js} +2 -2
- package/dist/{ComboBoxControl-CiXpVeil.js → ComboBoxControl-DXjw9HYV.js} +4 -4
- package/dist/{DateControl-CZcZUyDm.js → DateControl-DXTCop2C.js} +1 -1
- package/dist/{DateTimeControl-Bhnh0Ppw.js → DateTimeControl-CBBmw-o9.js} +2 -2
- package/dist/DateTimeFormatInput-B8F-bku1.js +347 -0
- package/dist/DateTimeFormatPickerControl-Dk70ATRK.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DpmscK0S.js +83 -0
- package/dist/{DateTimeInput-CecGpLQL.js → DateTimeInput-BAlTkrLY.js} +3524 -3603
- package/dist/Dropdown-DMuumgWl.js +605 -0
- package/dist/{DropdownControl-BbSTmj4b.js → DropdownControl-BXGa2Zqy.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js → DropdownControl.vue_vue_type_script_setup_true_lang-BoxbVXvP.js} +4 -4
- package/dist/{FunctionButton-DqrPll2b.js → FunctionButton-DeDZhG-y.js} +2 -2
- package/dist/{HorizontalLayout-B35pXQro.js → HorizontalLayout-Bu_HoqtD.js} +1 -1
- package/dist/{InputField-CfTNsOpl.js → InputField-D4q-r9Uh.js} +1 -1
- package/dist/{IntegerControl-BA039DeJ.js → IntegerControl-YK4WjBn5.js} +1 -1
- package/dist/{IntervalControl-ZIfW0R6H.js → IntervalControl-DgNMRmkf.js} +6 -6
- package/dist/{MultiselectListBox-B9AMd6lu.js → MultiselectListBox-gv3qTuQr.js} +2 -2
- package/dist/{NameFilter-DIK_hfEG.js → NameFilter-BgLhjcRh.js} +1 -1
- package/dist/{NumberControl-B3cmM4q8.js → NumberControl-D6fxN7Ak.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DnbBgqMT.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CS09VLWk.js} +2 -2
- package/dist/{NumberInput-CyLbNMgq.js → NumberInput-DpPitBwb.js} +1 -1
- package/dist/{OneOfDropdown-CYjXvc-8.js → OneOfDropdown-BmiBhFyV.js} +1 -1
- package/dist/{RadioControl-kq8I7uUs.js → RadioControl-Bz45ai5B.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Db3c7o8X.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BMt_Hsny.js} +2 -2
- package/dist/{RichTextControl-3izRkdn7.js → RichTextControl-CboEr8Ha.js} +7 -7
- package/dist/{SectionLayout-DPgbDaqO.js → SectionLayout-G_hSkGkd.js} +2 -2
- package/dist/{SimpleButtonControl-CdY2dArP.js → SimpleButtonControl-Ctzf8fFf.js} +2 -2
- package/dist/{SimpleTwinlistControl-BEH4bbqT.js → SimpleTwinlistControl-Dba-YIhS.js} +2 -2
- package/dist/{SortListControl-uVMSNrRs.js → SortListControl-nE_ccGpj.js} +4 -4
- package/dist/{TextAreaControl-CItxQ3qN.js → TextAreaControl-DzkUHA8F.js} +1 -1
- package/dist/{TextControl-CinlE4yD.js → TextControl-D2fK-gNn.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1sg5jOI.js → TextControl.vue_vue_type_script_setup_true_lang-CJiAVESn.js} +3 -3
- package/dist/{TimeControl-_FkL2Pmp.js → TimeControl-CM6oOWK0.js} +2 -2
- package/dist/{TwinlistControl-J97lsIsJ.js → TwinlistControl-z14pmNeU.js} +44 -44
- package/dist/{TwinlistLoadingInfo-pVyUVKlm.js → TwinlistLoadingInfo-D0MkbjKj.js} +5 -5
- package/dist/{ValueSwitch-CILN5ncB.js → ValueSwitch-4X-VU2s4.js} +1 -1
- package/dist/{ValueSwitchControl-CmNBQoMK.js → ValueSwitchControl-BBSNxQbR.js} +1 -1
- package/dist/{VerticalLayout-Ct0EbMgR.js → VerticalLayout-BAZbPfB7.js} +2 -2
- package/dist/{VerticalLayoutBase-CQKByBuX.js → VerticalLayoutBase-ixPAQHbd.js} +1 -1
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js +13312 -0
- package/dist/{ZonedDateTimeControl-Bwj70QE6.js → ZonedDateTimeControl-DLHI_f3d.js} +4 -4
- package/dist/{floating-ui.vue.esm-B1dY_Hbh.js → floating-ui.vue-B-MrqKCT.js} +375 -342
- package/dist/index-Bf0xDq3g.js +373 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +5 -5
- package/dist/{localTimeUtils-CtqjaX2h.js → localTimeUtils-DCUpSGnm.js} +1 -1
- package/dist/{magic-string.es-D4UQQyt0.js → magic-string.es-CTx3IfWA.js} +264 -265
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -2
- package/dist/src/renderers/defaultRenderers.d.ts +25 -24
- package/dist/src/renderers/dropdownRenderer.d.ts +12 -12
- package/dist/src/renderers/sortListRenderer.d.ts +12 -12
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +13 -0
- package/dist/{svgWithTitle-CBUO7Hcc.js → svgWithTitle-BIyPeUQw.js} +1 -1
- package/dist/testing.js +2 -2
- package/package.json +6 -11
- package/dist/DateTimeFormatPickerControl-CtJk8jQF.js +0 -374
- package/dist/Dropdown-CeUdmLWb.js +0 -692
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js +0 -14923
- package/dist/index-CkuSIXs2.js +0 -331
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.5.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @knime/components@1.18.8
|
|
9
|
+
- @knime/rich-text-editor@1.3.24
|
|
10
|
+
|
|
11
|
+
## 1.5.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 992a9e4: Make type in date&time format picker controllable
|
|
16
|
+
- Updated dependencies [992a9e4]
|
|
17
|
+
- @knime/components@1.18.7
|
|
18
|
+
- @knime/rich-text-editor@1.3.23
|
|
19
|
+
|
|
3
20
|
## 1.5.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 i from "./SimpleTwinlistControl-
|
|
3
|
+
import i from "./SimpleTwinlistControl-Dba-YIhS.js";
|
|
4
4
|
const d = /* @__PURE__ */ n({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
@@ -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_99aa13c1_lang-
|
|
2
|
+
import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.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_99aa13c1_lang-
|
|
2
|
+
import { B as i } from "./BaseButton-Dy2rQt0b.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.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_99aa13c1_lang-
|
|
2
|
+
import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "Checkbox",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-
|
|
2
|
+
import { C as f } from "./Checkbox-unJMpX-O.js";
|
|
3
|
+
import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
4
4
|
const b = /* @__PURE__ */ a({
|
|
5
5
|
__name: "CheckboxControl",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as c } from "./Checkbox-
|
|
1
|
+
import { C as c } from "./Checkbox-unJMpX-O.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_99aa13c1_lang-
|
|
3
|
+
import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
4
4
|
const _ = {
|
|
5
5
|
name: "Checkboxes",
|
|
6
6
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { o as m } from "./index-hm05O8UX.js";
|
|
3
|
-
import { C as b } from "./Checkboxes-
|
|
4
|
-
import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-
|
|
3
|
+
import { C as b } from "./Checkboxes-CtxOlG_P.js";
|
|
4
|
+
import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
5
5
|
const h = /* @__PURE__ */ t({
|
|
6
6
|
__name: "CheckboxesControl",
|
|
7
7
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
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_99aa13c1_lang-
|
|
4
|
-
import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { k as S, u as _ } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
4
|
+
import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BoxbVXvP.js";
|
|
5
5
|
import { b as $ } from "./_baseIsEqual-DmkT9Nkc.js";
|
|
6
6
|
function B(s, t) {
|
|
7
7
|
return $(s, t);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolveComponent as V, openBlock as d, createElementBlock as O, normalizeClass as v, 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 b, createTextVNode as x, vShow as P, defineComponent as M, vModelText as R, computed as w, 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_99aa13c1_lang-
|
|
3
|
+
import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.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-DeDZhG-y.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { u as W } from "./index-
|
|
7
|
+
import { u as W } from "./index-Bf0xDq3g.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-unJMpX-O.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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { t as i, f as b } from "./localTimeUtils-
|
|
2
|
+
import { D as T } from "./DateTimeInput-BAlTkrLY.js";
|
|
3
|
+
import { t as i, f as b } from "./localTimeUtils-DCUpSGnm.js";
|
|
4
4
|
const y = /* @__PURE__ */ h({
|
|
5
5
|
__name: "DateTimeControl",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { openBlock as m, createElementBlock as p, createElementVNode as v, defineComponent as $, computed as E, ref as f, watch as z, reactive as Z, onMounted as W, createBlock as j, createCommentVNode as V, createVNode as x, normalizeStyle as B, unref as _, withKeys as q, Fragment as G, renderList as J, normalizeClass as C, toDisplayString as S, nextTick as R, mergeModels as Q, useModel as X, withDirectives as Y, vModelText as ee } from "vue";
|
|
2
|
+
import { o as te } from "./index-Bf0xDq3g.js";
|
|
3
|
+
import { u as oe, o as le, s as ae, f as se, a as ne } from "./floating-ui.vue-B-MrqKCT.js";
|
|
4
|
+
import { u as ie } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
5
|
+
import { L as re } from "./svgWithTitle-BIyPeUQw.js";
|
|
6
|
+
import { V as N } from "./ValueSwitch-4X-VU2s4.js";
|
|
7
|
+
import { _ as O } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
8
|
+
const ce = {
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
fill: "none",
|
|
11
|
+
"stroke-linejoin": "round",
|
|
12
|
+
viewBox: "0 0 32 32"
|
|
13
|
+
}, de = /* @__PURE__ */ v("path", {
|
|
14
|
+
fill: "#000",
|
|
15
|
+
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"
|
|
16
|
+
}, null, -1), me = [
|
|
17
|
+
de
|
|
18
|
+
];
|
|
19
|
+
function ue(T, k) {
|
|
20
|
+
return m(), p("svg", ce, [...me]);
|
|
21
|
+
}
|
|
22
|
+
const pe = { render: ue }, fe = { class: "popover" }, ve = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "no-formats-available"
|
|
25
|
+
}, ye = {
|
|
26
|
+
key: 1,
|
|
27
|
+
class: "no-formats-available"
|
|
28
|
+
}, he = ["onClick", "onDblclick"], Te = { class: "format-pattern" }, ge = { class: "format-preview" }, P = 1, we = /* @__PURE__ */ $({
|
|
29
|
+
__name: "DateTimeFormatPickerPopover",
|
|
30
|
+
props: {
|
|
31
|
+
allFormats: {},
|
|
32
|
+
selectedType: {},
|
|
33
|
+
initialSelectedPattern: {},
|
|
34
|
+
showTypeSwitch: { type: Boolean }
|
|
35
|
+
},
|
|
36
|
+
emits: ["commit", "cancel"],
|
|
37
|
+
setup(T, { emit: k }) {
|
|
38
|
+
const n = k, r = T, D = E(() => [
|
|
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
|
+
]), M = E(() => [
|
|
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
|
+
]), y = f(null), c = f("RECENT"), l = f(r.selectedType);
|
|
73
|
+
z(
|
|
74
|
+
() => r.selectedType,
|
|
75
|
+
(e) => {
|
|
76
|
+
l.value = e;
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
const a = E(
|
|
80
|
+
() => {
|
|
81
|
+
var e;
|
|
82
|
+
return ((e = r.allFormats) == null ? void 0 : e.filter(
|
|
83
|
+
(t) => t.category === c.value && t.temporalType === l.value
|
|
84
|
+
)) ?? null;
|
|
85
|
+
}
|
|
86
|
+
), g = f(null), i = Z({}), d = (e) => `${e.format}-${e.category}-${e.temporalType}`, h = (e) => (t) => {
|
|
87
|
+
i[d(e)] = t;
|
|
88
|
+
}, w = (e) => ({
|
|
89
|
+
format: e.format,
|
|
90
|
+
temporalType: e.temporalType
|
|
91
|
+
}), { currentIndex: F, onKeydown: I, resetNavigation: H } = ie({
|
|
92
|
+
keepOpenedOnTab: !0,
|
|
93
|
+
getFirstElement: () => ({
|
|
94
|
+
index: 0,
|
|
95
|
+
onClick: () => n(
|
|
96
|
+
"commit",
|
|
97
|
+
w(a.value[0])
|
|
98
|
+
)
|
|
99
|
+
}),
|
|
100
|
+
getLastElement: () => {
|
|
101
|
+
const e = a.value.length - 1;
|
|
102
|
+
return {
|
|
103
|
+
index: e,
|
|
104
|
+
onClick: () => n(
|
|
105
|
+
"commit",
|
|
106
|
+
w(a.value[e])
|
|
107
|
+
)
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
getNextElement: (e, t) => {
|
|
111
|
+
if (e = e === null || e === -1 ? null : e, t === 1) {
|
|
112
|
+
const s = ((e ?? -1) + 1) % a.value.length;
|
|
113
|
+
return {
|
|
114
|
+
index: s,
|
|
115
|
+
onClick: () => n(
|
|
116
|
+
"commit",
|
|
117
|
+
w(a.value[s])
|
|
118
|
+
)
|
|
119
|
+
};
|
|
120
|
+
} else {
|
|
121
|
+
const s = ((e ?? 0) - 1 + a.value.length) % a.value.length;
|
|
122
|
+
return {
|
|
123
|
+
index: s,
|
|
124
|
+
onClick: () => n(
|
|
125
|
+
"commit",
|
|
126
|
+
w(a.value[s])
|
|
127
|
+
)
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
close: () => {
|
|
132
|
+
n("cancel");
|
|
133
|
+
}
|
|
134
|
+
}), U = (e) => {
|
|
135
|
+
const t = e.parentElement;
|
|
136
|
+
if (t && t.scrollHeight > t.clientHeight) {
|
|
137
|
+
const o = t.offsetTop + P, s = t.clientHeight + t.scrollTop, u = e.offsetTop + e.offsetHeight - o;
|
|
138
|
+
u > s ? t.scrollTop = u - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
139
|
+
}
|
|
140
|
+
}, A = async (e, t, o) => {
|
|
141
|
+
l.value = t ?? l.value, c.value = o ?? c.value, await R(), y.value = e;
|
|
142
|
+
const s = i[`${e}-${c.value}-${l.value}`];
|
|
143
|
+
s && U(s);
|
|
144
|
+
const u = a.value.findIndex(
|
|
145
|
+
(b) => b.format === e
|
|
146
|
+
);
|
|
147
|
+
F.value = u;
|
|
148
|
+
}, L = async () => {
|
|
149
|
+
var e;
|
|
150
|
+
await R(), (e = g.value) == null || e.focus();
|
|
151
|
+
};
|
|
152
|
+
z(F, (e) => {
|
|
153
|
+
if (e === null)
|
|
154
|
+
return;
|
|
155
|
+
const t = a.value[e];
|
|
156
|
+
A(t.format, t.temporalType, t.category);
|
|
157
|
+
}), z([l, c], () => {
|
|
158
|
+
y.value = null, H();
|
|
159
|
+
});
|
|
160
|
+
const K = f(!1);
|
|
161
|
+
return W(() => {
|
|
162
|
+
if (!r.allFormats)
|
|
163
|
+
return;
|
|
164
|
+
const e = [
|
|
165
|
+
"RECENT",
|
|
166
|
+
"STANDARD",
|
|
167
|
+
"EUROPEAN",
|
|
168
|
+
"AMERICAN"
|
|
169
|
+
], t = r.allFormats.filter((o) => r.initialSelectedPattern === o.format).filter(
|
|
170
|
+
(o) => (
|
|
171
|
+
// if the type switch is hidden, filter to only formats with the same type
|
|
172
|
+
r.selectedType === o.temporalType || r.showTypeSwitch
|
|
173
|
+
)
|
|
174
|
+
).sort((o, s) => {
|
|
175
|
+
const u = e.indexOf(o.category), b = e.indexOf(s.category);
|
|
176
|
+
return u - b;
|
|
177
|
+
});
|
|
178
|
+
t.length > 0 && A(
|
|
179
|
+
t[0].format,
|
|
180
|
+
t[0].temporalType,
|
|
181
|
+
t[0].category
|
|
182
|
+
), L(), setTimeout(() => {
|
|
183
|
+
K.value = !0;
|
|
184
|
+
}, 0);
|
|
185
|
+
}), (e, t) => (m(), p("div", fe, [
|
|
186
|
+
e.showTypeSwitch ? (m(), j(N, {
|
|
187
|
+
key: 0,
|
|
188
|
+
id: "selectedFormatType",
|
|
189
|
+
modelValue: l.value,
|
|
190
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
|
|
191
|
+
compact: "",
|
|
192
|
+
"possible-values": M.value,
|
|
193
|
+
class: "filter-switch"
|
|
194
|
+
}, null, 8, ["modelValue", "possible-values"])) : V("", !0),
|
|
195
|
+
x(N, {
|
|
196
|
+
id: "selectedFormatStandard",
|
|
197
|
+
modelValue: c.value,
|
|
198
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => c.value = o),
|
|
199
|
+
compact: "",
|
|
200
|
+
"possible-values": D.value,
|
|
201
|
+
class: "filter-switch"
|
|
202
|
+
}, null, 8, ["modelValue", "possible-values"]),
|
|
203
|
+
v("div", {
|
|
204
|
+
id: "dateFormats",
|
|
205
|
+
ref_key: "formatContainerRef",
|
|
206
|
+
ref: g,
|
|
207
|
+
class: "formats-container",
|
|
208
|
+
style: B({ "--formats-container-border-width": P + "px" }),
|
|
209
|
+
tabindex: "0",
|
|
210
|
+
role: "menu",
|
|
211
|
+
onKeydown: [
|
|
212
|
+
t[2] || (t[2] = //@ts-ignore
|
|
213
|
+
(...o) => _(I) && _(I)(...o)),
|
|
214
|
+
t[3] || (t[3] = q((o) => o.shiftKey || n("cancel"), ["tab"]))
|
|
215
|
+
]
|
|
216
|
+
}, [
|
|
217
|
+
a.value === null ? (m(), p("div", ve, [
|
|
218
|
+
x(re, { class: "loading-spinner" })
|
|
219
|
+
])) : a.value.length === 0 ? (m(), p("div", ye, " No formats available ")) : (m(!0), p(G, { key: 2 }, J(a.value, (o, s) => (m(), p("div", {
|
|
220
|
+
key: d(o),
|
|
221
|
+
ref_for: !0,
|
|
222
|
+
ref: h(o),
|
|
223
|
+
class: C([{ selected: s === _(F) }, "single-format"]),
|
|
224
|
+
role: "menuitem",
|
|
225
|
+
onClick: () => {
|
|
226
|
+
var u;
|
|
227
|
+
F.value = s, (u = g.value) == null || u.focus();
|
|
228
|
+
},
|
|
229
|
+
onDblclick: () => n("commit", w(o))
|
|
230
|
+
}, [
|
|
231
|
+
v("span", Te, S(o.format), 1),
|
|
232
|
+
v("span", ge, S(o.example), 1)
|
|
233
|
+
], 42, he))), 128))
|
|
234
|
+
], 36)
|
|
235
|
+
]));
|
|
236
|
+
}
|
|
237
|
+
}), Ee = /* @__PURE__ */ O(we, [["__scopeId", "data-v-7850be89"]]), _e = { class: "input-fields" }, ke = ["disabled"], Fe = {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "invalid-marker"
|
|
240
|
+
}, xe = ["disabled"], De = {}, Me = /* @__PURE__ */ $({
|
|
241
|
+
...De,
|
|
242
|
+
__name: "DateTimeFormatInput",
|
|
243
|
+
props: /* @__PURE__ */ Q({
|
|
244
|
+
disabled: { type: Boolean, default: !1 },
|
|
245
|
+
compact: { type: Boolean, default: !1 },
|
|
246
|
+
isValid: { type: Boolean, default: !0 },
|
|
247
|
+
allDefaultFormats: {},
|
|
248
|
+
allowedTypes: { default: () => [
|
|
249
|
+
"DATE",
|
|
250
|
+
"TIME",
|
|
251
|
+
"DATE_TIME",
|
|
252
|
+
"ZONED_DATE_TIME"
|
|
253
|
+
] },
|
|
254
|
+
showTypeSwitchInPopover: { type: Boolean, default: !0 }
|
|
255
|
+
}, {
|
|
256
|
+
modelValue: {
|
|
257
|
+
default: {
|
|
258
|
+
format: "yyyy-MM-dd",
|
|
259
|
+
temporalType: "DATE"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
modelModifiers: {}
|
|
263
|
+
}),
|
|
264
|
+
emits: ["update:modelValue"],
|
|
265
|
+
setup(T) {
|
|
266
|
+
const k = T, n = X(T, "modelValue"), r = E({
|
|
267
|
+
get: () => n.value.format,
|
|
268
|
+
set: (i) => {
|
|
269
|
+
n.value = {
|
|
270
|
+
...n.value,
|
|
271
|
+
format: i
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
}), D = "Format like 'yyyy-MM-dd'", M = E(() => k.isValid), y = f(null), c = f(null), l = f(!1), a = (i) => {
|
|
275
|
+
n.value = i, l.value = !1;
|
|
276
|
+
};
|
|
277
|
+
te(c, () => l.value = !1, {
|
|
278
|
+
ignore: [y]
|
|
279
|
+
});
|
|
280
|
+
const { floatingStyles: g } = oe(
|
|
281
|
+
y,
|
|
282
|
+
c,
|
|
283
|
+
{
|
|
284
|
+
middleware: [
|
|
285
|
+
le({
|
|
286
|
+
mainAxis: 2,
|
|
287
|
+
crossAxis: 0
|
|
288
|
+
}),
|
|
289
|
+
ae(),
|
|
290
|
+
se({
|
|
291
|
+
mainAxis: !0,
|
|
292
|
+
crossAxis: !1
|
|
293
|
+
})
|
|
294
|
+
],
|
|
295
|
+
placement: "top-end",
|
|
296
|
+
whileElementsMounted: ne
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
return (i, d) => (m(), p("div", null, [
|
|
300
|
+
v("div", {
|
|
301
|
+
class: C(["wrapper", { disabled: i.disabled, compact: i.compact }])
|
|
302
|
+
}, [
|
|
303
|
+
v("span", _e, [
|
|
304
|
+
Y(v("input", {
|
|
305
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => r.value = h),
|
|
306
|
+
type: "text",
|
|
307
|
+
disabled: i.disabled,
|
|
308
|
+
placeholder: D,
|
|
309
|
+
spellcheck: "false",
|
|
310
|
+
onFocus: d[1] || (d[1] = (h) => l.value = !1)
|
|
311
|
+
}, null, 40, ke), [
|
|
312
|
+
[ee, r.value]
|
|
313
|
+
]),
|
|
314
|
+
M.value ? V("", !0) : (m(), p("span", Fe)),
|
|
315
|
+
v("button", {
|
|
316
|
+
ref_key: "togglePopoverButtonRef",
|
|
317
|
+
ref: y,
|
|
318
|
+
class: C(["trigger-popover-button", { active: l.value }]),
|
|
319
|
+
disabled: i.disabled,
|
|
320
|
+
onClick: d[2] || (d[2] = (h) => l.value = !l.value)
|
|
321
|
+
}, [
|
|
322
|
+
x(_(pe))
|
|
323
|
+
], 10, xe)
|
|
324
|
+
])
|
|
325
|
+
], 2),
|
|
326
|
+
l.value ? (m(), p("div", {
|
|
327
|
+
key: 0,
|
|
328
|
+
ref_key: "floatingPopoverRef",
|
|
329
|
+
ref: c,
|
|
330
|
+
class: "popover",
|
|
331
|
+
style: B(_(g))
|
|
332
|
+
}, [
|
|
333
|
+
x(Ee, {
|
|
334
|
+
"all-formats": i.allDefaultFormats,
|
|
335
|
+
"initial-selected-pattern": n.value.format,
|
|
336
|
+
"selected-type": n.value.temporalType,
|
|
337
|
+
"show-type-switch": i.showTypeSwitchInPopover,
|
|
338
|
+
onCommit: a,
|
|
339
|
+
onCancel: d[3] || (d[3] = (h) => l.value = !1)
|
|
340
|
+
}, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
|
|
341
|
+
], 4)) : V("", !0)
|
|
342
|
+
]));
|
|
343
|
+
}
|
|
344
|
+
}), Re = /* @__PURE__ */ O(Me, [["__scopeId", "data-v-a18d67d3"]]);
|
|
345
|
+
export {
|
|
346
|
+
Re as D
|
|
347
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as m, computed as o, openBlock as p, createBlock as c, unref as n } from "vue";
|
|
2
|
+
import { u as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
3
|
+
import { D as F } from "./DateTimeFormatInput-B8F-bku1.js";
|
|
4
|
+
const b = /* @__PURE__ */ m({
|
|
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(() => a.control.uischema.options), d = o(() => {
|
|
17
|
+
var e;
|
|
18
|
+
return (e = t.value) == null ? void 0 : e.allowedFormats;
|
|
19
|
+
}), u = f(
|
|
20
|
+
o(() => {
|
|
21
|
+
var e;
|
|
22
|
+
return (e = t.value) == null ? void 0 : e.formatProvider;
|
|
23
|
+
}),
|
|
24
|
+
null
|
|
25
|
+
), l = o({
|
|
26
|
+
get: () => ({
|
|
27
|
+
format: a.control.data,
|
|
28
|
+
temporalType: "DATE"
|
|
29
|
+
}),
|
|
30
|
+
set: (e) => a.changeValue(e.format)
|
|
31
|
+
});
|
|
32
|
+
return (e, r) => (p(), c(n(F), {
|
|
33
|
+
id: e.labelForId,
|
|
34
|
+
modelValue: l.value,
|
|
35
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => l.value = i),
|
|
36
|
+
compact: "",
|
|
37
|
+
disabled: e.disabled,
|
|
38
|
+
"show-type-switch-in-popover": !0,
|
|
39
|
+
"allowed-formats": d.value,
|
|
40
|
+
"all-default-formats": n(u),
|
|
41
|
+
"is-valid": !0
|
|
42
|
+
}, null, 8, ["id", "modelValue", "disabled", "allowed-formats", "all-default-formats"]));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
b as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as f, computed as t, openBlock as v, createElementBlock as T, createVNode as r, unref as d } from "vue";
|
|
2
|
+
import { u as V, _ as b } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-BruTDvDa.js";
|
|
3
|
+
import { V as y } from "./ValueSwitch-4X-VU2s4.js";
|
|
4
|
+
import { D as F } from "./DateTimeFormatInput-B8F-bku1.js";
|
|
5
|
+
const h = ["id"], D = /* @__PURE__ */ f({
|
|
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(() => l.control.uischema.options), u = t(() => {
|
|
18
|
+
var e;
|
|
19
|
+
return (e = i.value) == null ? void 0 : e.allowedFormats;
|
|
20
|
+
}), p = V(
|
|
21
|
+
t(() => {
|
|
22
|
+
var e;
|
|
23
|
+
return (e = i.value) == null ? void 0 : e.formatProvider;
|
|
24
|
+
}),
|
|
25
|
+
null
|
|
26
|
+
), c = [
|
|
27
|
+
{
|
|
28
|
+
id: "DATE",
|
|
29
|
+
text: "Date"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "DATE_TIME",
|
|
33
|
+
text: "Date & time"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "TIME",
|
|
37
|
+
text: "Time"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "ZONED_DATE_TIME",
|
|
41
|
+
text: "Zoned date & time"
|
|
42
|
+
}
|
|
43
|
+
], o = t({
|
|
44
|
+
get: () => l.control.data,
|
|
45
|
+
set: (e) => {
|
|
46
|
+
l.changeValue(e);
|
|
47
|
+
}
|
|
48
|
+
}), n = t({
|
|
49
|
+
get: () => o.value.temporalType,
|
|
50
|
+
set: (e) => {
|
|
51
|
+
o.value = {
|
|
52
|
+
...o.value,
|
|
53
|
+
temporalType: e
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return (e, a) => (v(), T("div", {
|
|
58
|
+
id: e.labelForId,
|
|
59
|
+
class: "control-container"
|
|
60
|
+
}, [
|
|
61
|
+
r(d(y), {
|
|
62
|
+
modelValue: n.value,
|
|
63
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
64
|
+
compact: "",
|
|
65
|
+
"possible-values": c,
|
|
66
|
+
disabled: e.disabled
|
|
67
|
+
}, null, 8, ["modelValue", "disabled"]),
|
|
68
|
+
r(d(F), {
|
|
69
|
+
modelValue: o.value,
|
|
70
|
+
"onUpdate:modelValue": a[1] || (a[1] = (s) => o.value = s),
|
|
71
|
+
compact: "",
|
|
72
|
+
disabled: e.disabled,
|
|
73
|
+
"show-type-switch-in-popover": !1,
|
|
74
|
+
"allowed-formats": u.value,
|
|
75
|
+
"all-default-formats": d(p),
|
|
76
|
+
"is-valid": !0
|
|
77
|
+
}, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
|
|
78
|
+
], 8, h));
|
|
79
|
+
}
|
|
80
|
+
}), g = /* @__PURE__ */ b(D, [["__scopeId", "data-v-1e917bc2"]]);
|
|
81
|
+
export {
|
|
82
|
+
g as default
|
|
83
|
+
};
|