@knime/jsonforms 1.5.8 → 1.5.10

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{AnyOfTwinlist-D_wKDkgH.js → AnyOfTwinlist-DMizLIwn.js} +1 -1
  3. package/dist/{BaseButton-C13_k-le.js → BaseButton-ew6uEaHi.js} +1 -1
  4. package/dist/{Button-D59Hu_Oe.js → Button-DI7EKUmu.js} +2 -2
  5. package/dist/{Checkbox-BCFe0QQA.js → Checkbox-DPq-j4rC.js} +1 -1
  6. package/dist/{CheckboxControl-Bxmhd07k.js → CheckboxControl-Tnv1xVel.js} +2 -2
  7. package/dist/{Checkboxes-Ct7xbZzA.js → Checkboxes-CtN15klz.js} +2 -2
  8. package/dist/{CheckboxesControl-BHmaIJxP.js → CheckboxesControl-DcVkxf7W.js} +2 -2
  9. package/dist/{ColumnFilter-Dm9u-ihr.js → ColumnFilter-Cw2PtnrT.js} +1 -1
  10. package/dist/{ColumnSelect-BhOWUmeV.js → ColumnSelect-Df-m3Md2.js} +2 -2
  11. package/dist/{ComboBoxControl-CiXpVeil.js → ComboBoxControl-DC3W4kPq.js} +3 -3
  12. package/dist/{DateControl-CZcZUyDm.js → DateControl-D70zb_g8.js} +1 -1
  13. package/dist/{DateTimeControl-Bhnh0Ppw.js → DateTimeControl-C-ef6bOV.js} +2 -2
  14. package/dist/DateTimeFormatInput-t-O7ZqrA.js +347 -0
  15. package/dist/DateTimeFormatPickerControl-BbOu24lA.js +47 -0
  16. package/dist/DateTimeFormatPickerWithTypeControl-9e1ef9Hf.js +83 -0
  17. package/dist/{DateTimeInput-CecGpLQL.js → DateTimeInput-C32yoECp.js} +3 -3
  18. package/dist/{Dropdown-CeUdmLWb.js → Dropdown-B6CD0Mt_.js} +2 -2
  19. package/dist/{DropdownControl-BbSTmj4b.js → DropdownControl-YplxM6ck.js} +1 -1
  20. package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js → DropdownControl.vue_vue_type_script_setup_true_lang-ByoiTkIU.js} +4 -4
  21. package/dist/{FunctionButton-DqrPll2b.js → FunctionButton-Cee1Q-EN.js} +2 -2
  22. package/dist/{HorizontalLayout-B35pXQro.js → HorizontalLayout-BtuP4oCU.js} +1 -1
  23. package/dist/{InputField-CfTNsOpl.js → InputField-DHXXBWSv.js} +1 -1
  24. package/dist/{IntegerControl-BA039DeJ.js → IntegerControl-B64xghdA.js} +1 -1
  25. package/dist/{IntervalControl-ZIfW0R6H.js → IntervalControl-NldC56aj.js} +4 -4
  26. package/dist/{MultiselectListBox-B9AMd6lu.js → MultiselectListBox-BUWB5ZWr.js} +1 -1
  27. package/dist/{NameFilter-DIK_hfEG.js → NameFilter-BQhzv9F3.js} +1 -1
  28. package/dist/{NumberControl-B3cmM4q8.js → NumberControl-EVY_3Hwl.js} +1 -1
  29. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DnbBgqMT.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CA0OxGuU.js} +2 -2
  30. package/dist/{NumberInput-CyLbNMgq.js → NumberInput-CI1ee8it.js} +1 -1
  31. package/dist/{OneOfDropdown-CYjXvc-8.js → OneOfDropdown-BPZeE-Bn.js} +1 -1
  32. package/dist/{RadioControl-kq8I7uUs.js → RadioControl-DbX_Wfuv.js} +2 -2
  33. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Db3c7o8X.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BJdqHTLu.js} +2 -2
  34. package/dist/{RichTextControl-3izRkdn7.js → RichTextControl-Dl4V0nno.js} +5 -5
  35. package/dist/{SectionLayout-DPgbDaqO.js → SectionLayout-CF6zovCM.js} +2 -2
  36. package/dist/{SimpleButtonControl-CdY2dArP.js → SimpleButtonControl-BwlE_a5H.js} +2 -2
  37. package/dist/{SimpleTwinlistControl-BEH4bbqT.js → SimpleTwinlistControl-Cbwa6xtL.js} +2 -2
  38. package/dist/{SortListControl-uVMSNrRs.js → SortListControl-BzbPvx8-.js} +4 -4
  39. package/dist/{TextAreaControl-CItxQ3qN.js → TextAreaControl-BdTbCiQe.js} +1 -1
  40. package/dist/{TextControl-CinlE4yD.js → TextControl-PPpaK3OZ.js} +1 -1
  41. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1sg5jOI.js → TextControl.vue_vue_type_script_setup_true_lang-DndraaDL.js} +3 -3
  42. package/dist/{TimeControl-_FkL2Pmp.js → TimeControl-CHQYhf6G.js} +2 -2
  43. package/dist/{TwinlistControl-J97lsIsJ.js → TwinlistControl-CqDn6X1h.js} +44 -44
  44. package/dist/{TwinlistLoadingInfo-pVyUVKlm.js → TwinlistLoadingInfo-PbU9BJjv.js} +5 -5
  45. package/dist/{ValueSwitch-CILN5ncB.js → ValueSwitch-CA4_rkUU.js} +1 -1
  46. package/dist/{ValueSwitchControl-CmNBQoMK.js → ValueSwitchControl-5uuRkxf2.js} +1 -1
  47. package/dist/{VerticalLayout-Ct0EbMgR.js → VerticalLayout-C4FOz-7p.js} +2 -2
  48. package/dist/{VerticalLayoutBase-CQKByBuX.js → VerticalLayoutBase-DQCRpzUA.js} +1 -1
  49. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js} +1470 -1459
  50. package/dist/{ZonedDateTimeControl-Bwj70QE6.js → ZonedDateTimeControl-BcZrk010.js} +4 -4
  51. package/dist/knime-jsonforms.css +1 -1
  52. package/dist/knime-jsonforms.js +5 -5
  53. package/dist/{localTimeUtils-CtqjaX2h.js → localTimeUtils-ClDpVqfn.js} +1 -1
  54. package/dist/src/constants/inputFormats.d.ts +1 -0
  55. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -2
  56. package/dist/src/renderers/defaultRenderers.d.ts +25 -24
  57. package/dist/src/renderers/dropdownRenderer.d.ts +12 -12
  58. package/dist/src/renderers/sortListRenderer.d.ts +12 -12
  59. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +13 -0
  60. package/dist/{svgWithTitle-CBUO7Hcc.js → svgWithTitle-C6ghivXy.js} +1 -1
  61. package/dist/testing.js +1 -1
  62. package/package.json +3 -3
  63. package/dist/DateTimeFormatPickerControl-CtJk8jQF.js +0 -374
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.5.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 992a9e4: Make type in date&time format picker controllable
8
+ - Updated dependencies [992a9e4]
9
+ - @knime/components@1.18.7
10
+ - @knime/rich-text-editor@1.3.23
11
+
12
+ ## 1.5.9
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [3fd06dd]
17
+ - @knime/components@1.18.6
18
+ - @knime/rich-text-editor@1.3.22
19
+
3
20
  ## 1.5.8
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-BEH4bbqT.js";
3
+ import i from "./SimpleTwinlistControl-Cbwa6xtL.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-B21b2oJb.js";
2
+ import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-C13_k-le.js";
3
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
2
+ import { B as i } from "./BaseButton-ew6uEaHi.js";
3
+ import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-B21b2oJb.js";
2
+ import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-BCFe0QQA.js";
3
- import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
2
+ import { C as f } from "./Checkbox-DPq-j4rC.js";
3
+ import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-BCFe0QQA.js";
1
+ import { C as c } from "./Checkbox-DPq-j4rC.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-B21b2oJb.js";
3
+ import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-Ct7xbZzA.js";
4
- import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
3
+ import { C as b } from "./Checkboxes-CtN15klz.js";
4
+ import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js";
5
5
  const h = /* @__PURE__ */ t({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, openBlock as o, createBlock as t, mergeProps as l } from "vue";
2
- import a from "./TwinlistControl-J97lsIsJ.js";
2
+ import a from "./TwinlistControl-CqDn6X1h.js";
3
3
  const u = /* @__PURE__ */ e({
4
4
  __name: "ColumnFilter",
5
5
  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-B21b2oJb.js";
4
- import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js";
3
+ import { k as S, u as _ } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js";
4
+ import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-ByoiTkIU.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-B21b2oJb.js";
3
+ import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js";
4
4
  import { C as K } from "./close-h7XT0ja0.js";
5
- import { F as j } from "./FunctionButton-DqrPll2b.js";
5
+ import { F as j } from "./FunctionButton-Cee1Q-EN.js";
6
6
  /* empty css */
7
7
  import { u as W } from "./index-CkuSIXs2.js";
8
8
  import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
9
- import { C as X } from "./Checkbox-BCFe0QQA.js";
9
+ import { C as X } from "./Checkbox-DPq-j4rC.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,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
- import { D as t } from "./DateTimeInput-CecGpLQL.js";
2
+ import { D as t } from "./DateTimeInput-C32yoECp.js";
3
3
  const u = /* @__PURE__ */ o({
4
4
  __name: "DateControl",
5
5
  props: {
@@ -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-CecGpLQL.js";
3
- import { t as i, f as b } from "./localTimeUtils-CtqjaX2h.js";
2
+ import { D as T } from "./DateTimeInput-C32yoECp.js";
3
+ import { t as i, f as b } from "./localTimeUtils-ClDpVqfn.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-CkuSIXs2.js";
3
+ import { u as oe, o as le, s as ae, f as se, a as ne } from "./floating-ui.vue.esm-B1dY_Hbh.js";
4
+ import { u as ie } from "./useDropdownNavigation-D6ZenVxz.js";
5
+ import { L as re } from "./svgWithTitle-C6ghivXy.js";
6
+ import { V as N } from "./ValueSwitch-CA4_rkUU.js";
7
+ import { _ as O } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.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-Bke7i9o8.js";
3
+ import { D as F } from "./DateTimeFormatInput-t-O7ZqrA.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-Bke7i9o8.js";
3
+ import { V as y } from "./ValueSwitch-CA4_rkUU.js";
4
+ import { D as F } from "./DateTimeFormatInput-t-O7ZqrA.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
+ };
@@ -1,10 +1,10 @@
1
1
  import { resolveComponent as qe, openBlock as O, createElementBlock as E, normalizeClass as te, createElementVNode as q, createCommentVNode as ee, withModifiers as Nt, createVNode as V, reactive as Na, computed as _, defineComponent as Ce, ref as we, watch as Ae, onMounted as Un, onUnmounted as Aa, toRefs as yl, inject as br, watchEffect as Co, provide as Dr, nextTick as fr, unref as M, createBlock as Pe, resolveDynamicComponent as Wa, normalizeProps as mr, mergeProps as Mt, renderSlot as _r, withCtx as Te, toDisplayString as Le, Fragment as Oe, renderList as Ge, normalizeStyle as pr, withKeys as _n, withDirectives as xo, toRef as yn, guardReactiveProps as _a, createTextVNode as Ua, isRef as ir, Transition as Yo, resolveDirective as gl, toHandlers as Io, pushScopeId as wl, popScopeId as bl } from "vue";
2
2
  import { c as Dl } from "./popper-CRR--9mA.js";
3
- import { r as _l } from "./BaseButton-C13_k-le.js";
4
- import { D as Tl } from "./Dropdown-CeUdmLWb.js";
3
+ import { r as _l } from "./BaseButton-ew6uEaHi.js";
4
+ import { D as Tl } from "./Dropdown-B6CD0Mt_.js";
5
5
  import { A as Ml } from "./arrow-dropdown-DjUxzjqC.js";
6
6
  /* empty css */
7
- import { _ as So, q as Fn } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
7
+ import { _ as So, q as Fn } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js";
8
8
  import { i as $l, a as Pl } from "./toString-DkbNkGT4.js";
9
9
  import { b as kl } from "./_baseIteratee-DvBmrhnf.js";
10
10
  import { b as Ol } from "./_baseEach-B8N_Gx8P.js";
@@ -3,10 +3,10 @@ import { A as pe } from "./arrow-dropdown-DjUxzjqC.js";
3
3
  import { C as he } from "./close-h7XT0ja0.js";
4
4
  /* empty css */
5
5
  import { u as me } from "./useSearch-hpyYQ_6y.js";
6
- import { F as ye } from "./FunctionButton-DqrPll2b.js";
6
+ import { F as ye } from "./FunctionButton-Cee1Q-EN.js";
7
7
  import { a as ge, b as we, d as xe, f as ve, h as Ve, j as be, k as Ee } from "./_getTag-DS8v0_uf.js";
8
8
  import { i as Se } from "./toString-DkbNkGT4.js";
9
- import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
9
+ import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js";
10
10
  const Ce = (e) => e.ctrlKey || e.metaKey || e.altKey || e.shiftKey, Oe = (e, t) => (Array.isArray(t) ? t : [t]).includes(e.key) && !Ce(e);
11
11
  var Ie = "[object Map]", De = "[object Set]", _e = Object.prototype, Te = _e.hasOwnProperty;
12
12
  function Ae(e) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js";
1
+ import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-ByoiTkIU.js";
2
2
  export {
3
3
  f as default
4
4
  };