@knime/jsonforms 1.19.3 → 1.19.4

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 (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AnyOfTwinlist-Dp4tys3q.js → AnyOfTwinlist-gIm_R7yi.js} +1 -1
  3. package/dist/{Checkbox-DQGgsPMe.js → Checkbox-D1QZ8D8U.js} +1 -1
  4. package/dist/{CheckboxControl-Co-u8zIT.js → CheckboxControl-DitntAd8.js} +1 -1
  5. package/dist/{CheckboxesControl-Bgd9iMx4.js → CheckboxesControl-C_Wwb06j.js} +2 -2
  6. package/dist/{ColorControl-DSIJEQa6.js → ColorControl-86_aeUMf.js} +1 -1
  7. package/dist/{ColorPreviewControl-M74CZDtV.js → ColorPreviewControl-HgbFwMCE.js} +1 -1
  8. package/dist/{ComboBoxControl-DlDwfBJ6.js → ComboBoxControl-CGwWGyDl.js} +3 -3
  9. package/dist/{DateControl-DXGRsPNb.js → DateControl-BofbO5lM.js} +1 -1
  10. package/dist/{DateTimeControl-DZu7GdGd.js → DateTimeControl-BzWk51J8.js} +1 -1
  11. package/dist/DateTimeFormatPickerControl-7KTdYrMN.js +31 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DmevlqK8.js +442 -0
  13. package/dist/{DropdownControl-B5t3ci7I.js → DropdownControl-XAeknlV2.js} +3 -3
  14. package/dist/{HorizontalLayout-Ch3hLrIN.js → HorizontalLayout-BQFvLK2X.js} +1 -1
  15. package/dist/{IntegerControl-BtDffvT2.js → IntegerControl-XNoJU3s2.js} +1 -1
  16. package/dist/{IntervalControl-4KXdyBow.js → IntervalControl-DaQTfsx8.js} +2 -2
  17. package/dist/{Label-DIL1h9Qs.js → Label-BckcZVsr.js} +1 -1
  18. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-Dvc5j9LS.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js} +1 -1
  19. package/dist/LoadingIcon-D3kls_iA.js +29 -0
  20. package/dist/{ManualTwinlistControl-DbAQmyh-.js → ManualTwinlistControl-BCgJbfp5.js} +4 -4
  21. package/dist/{MultiSelectListBoxControl-CJq8YRIf.js → MultiSelectListBoxControl-B6tvY3Al.js} +2 -2
  22. package/dist/{MultimodeTwinlistControl-BnZKShf0.js → MultimodeTwinlistControl-CUWzYCUm.js} +7 -7
  23. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-CyQTPMyR.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C8itN9TE.js} +2 -2
  24. package/dist/{MultiselectListBox-DoaiyXCr.js → MultiselectListBox-C1rI0rOG.js} +4 -4
  25. package/dist/{NameFilter-BOOz855n.js → NameFilter-CaPBJKzh.js} +1 -1
  26. package/dist/{NumberControl-BGfezDbH.js → NumberControl-DOnwoK8Z.js} +1 -1
  27. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DEUdBs67.js → NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js} +4 -4
  28. package/dist/{OneOfDropdown-CUjqXf2d.js → OneOfDropdown-CHt7_dgU.js} +9 -9
  29. package/dist/{RadioControl-CflL2uzB.js → RadioControl-CP7QiYX1.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DeJwqPMr.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qv1xOkqz.js} +2 -2
  31. package/dist/{RichTextControl-DgGRklWy.js → RichTextControl-DKlFtbdd.js} +1535 -1461
  32. package/dist/{SectionHeading-DCJFQT3o.js → SectionHeading-DbcAkyOk.js} +1 -1
  33. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js +25430 -0
  34. package/dist/{SectionLayout-G8HpKi28.js → SectionLayout-BRfbEX0H.js} +3 -3
  35. package/dist/SettingsSubPanel-Bw-wC4JV.js +5 -0
  36. package/dist/{SettingsSubPanelLayout-SJU7BOgG.js → SettingsSubPanelLayout-nMEM9Js5.js} +4 -4
  37. package/dist/SimpleButtonControl-Cs9fDA9V.js +49 -0
  38. package/dist/{SimpleTwinlistControl-DcuGc5tg.js → SimpleTwinlistControl-CMJCJOPx.js} +2 -2
  39. package/dist/{SingleSelectControl-BUjRwdMJ.js → SingleSelectControl-DrqxOX0c.js} +2 -2
  40. package/dist/{SingleSelectListBoxControl-ChoNB2eF.js → SingleSelectListBoxControl-2ORQoAtg.js} +5 -5
  41. package/dist/{SortListControl-BerbmMJZ.js → SortListControl-BLWFLyUn.js} +21 -22
  42. package/dist/{StyledListItem-DGnmnBfT.js → StyledListItem-DhsQSwUn.js} +1 -1
  43. package/dist/{TextAreaControl-BTy9I4No.js → TextAreaControl-v3fhzCGm.js} +1 -1
  44. package/dist/{TextControl-jApAdwbS.js → TextControl-CNlNwI8q.js} +1 -1
  45. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BhRDHrnP.js → TextControl.vue_vue_type_script_setup_true_lang-BQReBqLi.js} +5 -5
  46. package/dist/{TimeControl-CyzaSlu_.js → TimeControl-uBNUovJi.js} +1 -1
  47. package/dist/{TwinlistControlBase-Cr_kQ7QL.js → TwinlistControlBase-BfsU0lp4.js} +3 -3
  48. package/dist/{TwinlistLoadingInfo-DDnRGx8d.js → TwinlistLoadingInfo-CZpH6CqT.js} +4 -4
  49. package/dist/{TypedStringFilter-44sDrVc2.js → TypedStringFilter-ElEPYctF.js} +1 -1
  50. package/dist/{ValueSwitch-DDh7pJlr.js → ValueSwitch-BfYlPI2B.js} +4 -4
  51. package/dist/{ValueSwitchControl-D2mlCmJc.js → ValueSwitchControl-DyV85jLv.js} +1 -1
  52. package/dist/{VerticalLayout-DUWN2tE_.js → VerticalLayout-CFGNNSaB.js} +2 -2
  53. package/dist/{VerticalLayoutBase-BXquSYig.js → VerticalLayoutBase-CCtK1J1U.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-BqzNkyVT.js → ZonedDateTimeControl-BtPeUK4M.js} +17 -19
  55. package/dist/{_baseEach-CZzKf7-y.js → _baseEach-DR1qyPMo.js} +7 -8
  56. package/dist/_baseIteratee-DrBvc1GG.js +640 -0
  57. package/dist/knime-jsonforms.css +1 -1
  58. package/dist/knime-jsonforms.js +7 -7
  59. package/dist/{localTimeUtils-mOEGN5Ue.js → localTimeUtils-C1z-tWPY.js} +3934 -3328
  60. package/dist/{popper-LGjf7Wza.js → popper-D54JdmBM.js} +212 -208
  61. package/dist/src/renderers/defaultRenderers.d.ts +81 -22
  62. package/dist/src/renderers/simpleButtonRenderer.d.ts +81 -22
  63. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  64. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +14 -11
  65. package/dist/testing.js +2 -2
  66. package/dist/toString-lufkO4XX.js +25 -0
  67. package/dist/{useBuiltinValidations-BYH5TtV3.js → useBuiltinValidations-CXYzLTj1.js} +1 -1
  68. package/dist/{usePossibleValues-Bl8VFSuX.js → usePossibleValues-BGGWIVzM.js} +1 -1
  69. package/package.json +2 -2
  70. package/dist/Button-CFECKZ55.js +0 -82
  71. package/dist/DateTimeFormatInput-DQWXEBN9.js +0 -374
  72. package/dist/DateTimeFormatPickerControl-DV1iDDsX.js +0 -40
  73. package/dist/DateTimeFormatPickerWithTypeControl-Bo1QbIo_.js +0 -76
  74. package/dist/Dropdown-Cd-G9xTT.js +0 -620
  75. package/dist/LoadingIcon-CahQdReW.js +0 -18
  76. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js +0 -18551
  77. package/dist/SettingsSubPanel-BjcrxG_D.js +0 -5
  78. package/dist/SimpleButtonControl-B0z0KSAs.js +0 -68
  79. package/dist/_baseIteratee-B35Fekqn.js +0 -516
  80. package/dist/_getTag-BdqcT5ks.js +0 -131
  81. package/dist/hotkeys-rxnt4egK.js +0 -6
  82. package/dist/isArray-WzO_os3q.js +0 -4
  83. package/dist/reload-DjY4GPvr.js +0 -17
  84. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +0 -7
  85. package/dist/toString-D3sgaaZu.js +0 -25
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.19.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 19a0919: Integrated KdsDateTimeFormat in DateTimeFormatPickerControl and DateTimeFormatPickerWithTypeControl
8
+ Integrated KdsDropdown in OneOfDropdown and ZonedDateTimeControl
9
+ Integrated KdsButton in SimpleButtonControl
10
+
3
11
  ## 1.19.3
4
12
 
5
13
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as t, createBlock as p, mergeProps as a, unref as l } from "vue";
2
2
  import { o as r } from "./index-Blg1O3Fz.js";
3
- import { T as i } from "./TwinlistControlBase-Cr_kQ7QL.js";
3
+ import { T as i } from "./TwinlistControlBase-BfsU0lp4.js";
4
4
  const y = /* @__PURE__ */ s({
5
5
  __name: "AnyOfTwinlist",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as s, createElementBlock as i, normalizeClass as o, createElementVNode as d, renderSlot as c } from "vue";
2
- import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const r = {
4
4
  name: "Checkbox",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, ref as d, openBlock as r, createElementBlock as i, createElementVNode as u, createVNode as c, unref as v, renderSlot as a } from "vue";
2
- import { ak as b, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { al as b, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const f = { class: "checkbox-container" }, p = /* @__PURE__ */ s({
4
4
  __name: "CheckboxControl",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, computed as n, ref as i, toRef as r, onMounted as u, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
2
- import { K as f, _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { K as f, _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  import { o as v } from "./index-Blg1O3Fz.js";
4
- import { u as V } from "./usePossibleValues-Bl8VFSuX.js";
4
+ import { u as V } from "./usePossibleValues-BGGWIVzM.js";
5
5
  const y = /* @__PURE__ */ c({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
- import { I as t } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { I as t } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const u = /* @__PURE__ */ o({
4
4
  __name: "ColorControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
2
- import { H as w, _ as v, u as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { H as w, _ as v, u as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
4
4
  __name: "ColorPreviewEmptyState",
5
5
  setup(a) {
@@ -1,10 +1,10 @@
1
1
  import { resolveComponent as f, openBlock as r, createElementBlock as b, withModifiers as a, withKeys as u, normalizeClass as w, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as h, withDirectives as C, normalizeStyle as A, Fragment as D, renderList as P, createBlock as E, withCtx as O, createTextVNode as T, vShow as k, defineComponent as x, vModelText as $, toRef as z, computed as y, unref as N } from "vue";
2
- import { u as U } from "./usePossibleValues-Bl8VFSuX.js";
2
+ import { u as U } from "./usePossibleValues-BGGWIVzM.js";
3
3
  import { C as L } from "./close-CwP2mh9x.js";
4
- import { _ as B, J as H } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
4
+ import { _ as B, J as H } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
5
5
  /* empty css */
6
6
  import { A as K } from "./arrow-dropdown-DMFBPPcK.js";
7
- import { C as j } from "./Checkbox-DQGgsPMe.js";
7
+ import { C as j } from "./Checkbox-D1QZ8D8U.js";
8
8
  import { c as W } from "./createMissingItem-B00Kg95q.js";
9
9
  const g = () => {
10
10
  let e = document?.activeElement;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, computed as d, openBlock as s, createBlock as u, unref as r } from "vue";
2
- import { f as m, t as c, D as p } from "./localTimeUtils-mOEGN5Ue.js";
2
+ import { f as m, t as c, D as p } from "./localTimeUtils-C1z-tWPY.js";
3
3
  const b = /* @__PURE__ */ i({
4
4
  __name: "DateControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, computed as a, openBlock as r, createBlock as p, unref as v } from "vue";
2
- import { t as i, f as h, D as f } from "./localTimeUtils-mOEGN5Ue.js";
2
+ import { t as i, f as h, D as f } from "./localTimeUtils-C1z-tWPY.js";
3
3
  const T = /* @__PURE__ */ c({
4
4
  __name: "DateTimeControl",
5
5
  props: {
@@ -0,0 +1,31 @@
1
+ import { defineComponent as s, computed as a, openBlock as i, createBlock as c, unref as t } from "vue";
2
+ import { u as m, M as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
+ const V = /* @__PURE__ */ s({
4
+ __name: "DateTimeFormatPickerControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ isValid: { type: Boolean },
11
+ onRegisterValidation: { type: Function },
12
+ labelForId: {}
13
+ },
14
+ setup(e) {
15
+ const o = e, l = a(
16
+ () => o.control.uischema
17
+ ), n = a(() => l.value.options), d = a(() => n.value?.allowedFormats), r = m(l, "dateTimeFormats", []);
18
+ return (f, p) => (i(), c(t(u), {
19
+ id: e.labelForId,
20
+ "model-value": o.control.data,
21
+ disabled: e.disabled,
22
+ "allowed-formats": d.value,
23
+ "all-default-formats": t(r) ?? [],
24
+ error: !e.isValid,
25
+ "onUpdate:modelValue": e.changeValue
26
+ }, null, 8, ["id", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
27
+ }
28
+ });
29
+ export {
30
+ V as default
31
+ };
@@ -0,0 +1,442 @@
1
+ import { openBlock as v, createElementBlock as w, createElementVNode as y, defineComponent as A, useCssVars as q, computed as h, ref as g, watch as I, reactive as G, onMounted as J, nextTick as $, onUnmounted as Q, createBlock as O, unref as x, withCtx as X, createCommentVNode as C, createVNode as b, Fragment as Y, renderList as ee, normalizeClass as _, toDisplayString as H, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
2
+ import { _ as S, N as ne, u as ie } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
+ import { V as z } from "./ValueSwitch-BfYlPI2B.js";
4
+ import { u as re, a as de, o as ce, s as ue, f as me } from "./floating-ui.vue-Fx4CxKut.js";
5
+ import { u as pe, F as ve } from "./useDropdownNavigation-2Yhk7zes.js";
6
+ import { L as fe } from "./LoadingIcon-D3kls_iA.js";
7
+ const ye = {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "none",
10
+ "stroke-linejoin": "round",
11
+ viewBox: "0 0 32 32"
12
+ };
13
+ function he(n, f) {
14
+ return v(), w("svg", ye, [...f[0] || (f[0] = [
15
+ y("path", {
16
+ fill: "#000",
17
+ 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"
18
+ }, null, -1)
19
+ ])]);
20
+ }
21
+ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-container-border-host" }, xe = {
22
+ key: 0,
23
+ class: "no-formats-available"
24
+ }, Fe = {
25
+ key: 1,
26
+ class: "no-formats-available"
27
+ }, Ee = ["onClick"], be = { class: "format-pattern" }, Ve = { class: "format-preview" }, U = 1, De = /* @__PURE__ */ A({
28
+ __name: "DateTimeFormatPickerPopover",
29
+ props: {
30
+ allFormats: {},
31
+ selectedType: {},
32
+ initialSelectedPattern: {},
33
+ showTypeSwitch: { type: Boolean }
34
+ },
35
+ emits: ["commit", "cancel"],
36
+ setup(n, { emit: f }) {
37
+ q((e) => ({
38
+ v3b9e5e3a: U
39
+ }));
40
+ const i = f, c = n, V = h(() => [
41
+ {
42
+ id: "RECENT",
43
+ text: "Recent"
44
+ },
45
+ {
46
+ id: "STANDARD",
47
+ text: "ISO"
48
+ },
49
+ {
50
+ id: "EUROPEAN",
51
+ text: "European"
52
+ },
53
+ {
54
+ id: "AMERICAN",
55
+ text: "United States"
56
+ }
57
+ ]), D = h(() => [
58
+ {
59
+ id: "DATE",
60
+ text: "Date"
61
+ },
62
+ {
63
+ id: "DATE_TIME",
64
+ text: "Date & time"
65
+ },
66
+ {
67
+ id: "TIME",
68
+ text: "Time"
69
+ },
70
+ {
71
+ id: "ZONED_DATE_TIME",
72
+ text: "Zoned date & time"
73
+ }
74
+ ]), r = g(null), u = g(null), a = g("RECENT"), d = g(c.selectedType);
75
+ I(
76
+ () => c.selectedType,
77
+ (e) => {
78
+ u.value = e;
79
+ }
80
+ );
81
+ const l = h(
82
+ () => c.allFormats?.filter(
83
+ (e) => e.category === a.value && e.temporalType === d.value
84
+ ) ?? null
85
+ ), m = g(null), p = G({}), F = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
86
+ p[F(e)] = t;
87
+ }, E = (e) => ({
88
+ format: e.format,
89
+ temporalType: e.temporalType
90
+ }), {
91
+ currentIndex: R,
92
+ onKeydown: N,
93
+ resetNavigation: Z,
94
+ setElement: W
95
+ } = pe({
96
+ keepOpenedOnTab: !0,
97
+ getFirstElement: () => ({
98
+ index: 0,
99
+ onClick: () => i(
100
+ "commit",
101
+ E(l.value[0])
102
+ )
103
+ }),
104
+ getLastElement: () => {
105
+ const e = l.value.length - 1;
106
+ return {
107
+ index: e,
108
+ onClick: () => i(
109
+ "commit",
110
+ E(l.value[e])
111
+ )
112
+ };
113
+ },
114
+ getNextElement: (e, t) => {
115
+ if (e = e === null || e === -1 ? null : e, t === 1) {
116
+ const s = ((e ?? -1) + 1) % l.value.length;
117
+ return {
118
+ index: s,
119
+ onClick: () => i(
120
+ "commit",
121
+ E(l.value[s])
122
+ )
123
+ };
124
+ } else {
125
+ const s = ((e ?? 0) - 1 + l.value.length) % l.value.length;
126
+ return {
127
+ index: s,
128
+ onClick: () => i(
129
+ "commit",
130
+ E(l.value[s])
131
+ )
132
+ };
133
+ }
134
+ },
135
+ close: () => {
136
+ i("cancel");
137
+ }
138
+ }), K = (e) => {
139
+ const t = e.parentElement;
140
+ if (t && t.scrollHeight > t.clientHeight) {
141
+ const o = t.offsetTop + U, s = t.clientHeight + t.scrollTop, T = e.offsetTop + e.offsetHeight - o;
142
+ T > s ? t.scrollTop = T - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
143
+ }
144
+ }, P = (e) => {
145
+ const t = p[`${e}-${a.value}-${d.value}`];
146
+ t && K(t);
147
+ }, B = async (e, t, o) => {
148
+ d.value = t ?? d.value, a.value = o ?? a.value, await $(), u.value = e, P(e);
149
+ const s = l.value.findIndex(
150
+ (T) => T.format === e
151
+ );
152
+ W({
153
+ index: s,
154
+ onClick: () => i(
155
+ "commit",
156
+ E(l.value[s])
157
+ )
158
+ });
159
+ };
160
+ I(R, (e) => {
161
+ if (e === null)
162
+ return;
163
+ const t = l.value?.[e]?.format;
164
+ t && P(t);
165
+ }), I([d, a], () => {
166
+ d.value === r.value?.temporalType && a.value === r.value?.category ? B(
167
+ r.value.format,
168
+ r.value.temporalType,
169
+ r.value.category
170
+ ) : (u.value = null, Z());
171
+ });
172
+ const M = g(!1);
173
+ return J(async () => {
174
+ if (!c.allFormats)
175
+ return;
176
+ const e = [
177
+ "RECENT",
178
+ "STANDARD",
179
+ "EUROPEAN",
180
+ "AMERICAN"
181
+ ], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
182
+ (o) => (
183
+ // if the type switch is hidden, filter to only formats with the same type
184
+ c.selectedType === o.temporalType || c.showTypeSwitch
185
+ )
186
+ ).sort((o, s) => {
187
+ const T = e.indexOf(o.category), k = e.indexOf(s.category);
188
+ return T - k;
189
+ });
190
+ if (t.length > 0) {
191
+ const o = t[0].format, s = t[0].temporalType, T = t[0].category;
192
+ await B(o, s, T);
193
+ const k = l.value.findIndex(
194
+ (j) => j.format === o
195
+ );
196
+ r.value = {
197
+ format: o,
198
+ index: k,
199
+ category: T,
200
+ temporalType: s
201
+ };
202
+ }
203
+ $(() => M.value = !0);
204
+ }), Q(() => M.value = !1), (e, t) => (v(), O(x(ve), {
205
+ active: M.value,
206
+ "onUpdate:active": t[3] || (t[3] = (o) => M.value = o),
207
+ "initial-focus": () => m.value ?? !1
208
+ }, {
209
+ default: X(() => [
210
+ y("div", ge, [
211
+ n.showTypeSwitch ? (v(), O(z, {
212
+ key: 0,
213
+ id: "selectedFormatType",
214
+ ref: "typeSwitchRef",
215
+ modelValue: d.value,
216
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => d.value = o),
217
+ compact: "",
218
+ "possible-values": D.value,
219
+ class: "filter-switch"
220
+ }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
221
+ b(z, {
222
+ id: "selectedFormatStandard",
223
+ ref: "standardSwitchRef",
224
+ modelValue: a.value,
225
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
226
+ compact: "",
227
+ "possible-values": V.value,
228
+ class: "filter-switch"
229
+ }, null, 8, ["modelValue", "possible-values"]),
230
+ y("div", we, [
231
+ y("div", {
232
+ id: "dateFormats",
233
+ ref_key: "formatContainerRef",
234
+ ref: m,
235
+ class: "formats-container",
236
+ tabindex: "0",
237
+ role: "menu",
238
+ onKeydown: t[2] || (t[2] = //@ts-ignore
239
+ (...o) => x(N) && x(N)(...o))
240
+ }, [
241
+ l.value === null ? (v(), w("div", xe, [
242
+ b(fe, { class: "loading-spinner" })
243
+ ])) : l.value.length === 0 ? (v(), w("div", Fe, " No formats available ")) : (v(!0), w(Y, { key: 2 }, ee(l.value, (o, s) => (v(), w("div", {
244
+ key: F(o),
245
+ ref_for: !0,
246
+ ref: L(o),
247
+ class: _([{
248
+ highlighted: s === x(R),
249
+ applied: s === r.value?.index && o.category === r.value.category && o.temporalType === r.value.temporalType
250
+ }, "single-format"]),
251
+ role: "menuitem",
252
+ onClick: () => i("commit", E(o))
253
+ }, [
254
+ y("span", be, H(o.format), 1),
255
+ y("span", Ve, H(o.example), 1)
256
+ ], 10, Ee))), 128))
257
+ ], 544)
258
+ ])
259
+ ])
260
+ ]),
261
+ _: 1
262
+ }, 8, ["active", "initial-focus"]));
263
+ }
264
+ }), Me = /* @__PURE__ */ S(De, [["__scopeId", "data-v-8bb40d8b"]]), ke = { class: "input-fields" }, Ie = ["disabled"], Ce = {
265
+ key: 0,
266
+ class: "invalid-marker"
267
+ }, _e = ["disabled"], ze = {}, Ae = /* @__PURE__ */ A({
268
+ ...ze,
269
+ __name: "DateTimeFormatInput",
270
+ props: /* @__PURE__ */ se({
271
+ disabled: { type: Boolean, default: !1 },
272
+ compact: { type: Boolean, default: !1 },
273
+ isValid: { type: Boolean, default: !0 },
274
+ allDefaultFormats: {},
275
+ allowedTypes: { default: () => [
276
+ "DATE",
277
+ "TIME",
278
+ "DATE_TIME",
279
+ "ZONED_DATE_TIME"
280
+ ] },
281
+ showTypeSwitchInPopover: { type: Boolean, default: !0 }
282
+ }, {
283
+ modelValue: {
284
+ default: {
285
+ format: "yyyy-MM-dd",
286
+ temporalType: "DATE"
287
+ }
288
+ },
289
+ modelModifiers: {}
290
+ }),
291
+ emits: ["update:modelValue"],
292
+ setup(n) {
293
+ const f = n, i = te(n, "modelValue"), c = h({
294
+ get: () => i.value.format,
295
+ set: (m) => {
296
+ i.value = {
297
+ ...i.value,
298
+ format: m
299
+ };
300
+ }
301
+ }), V = "Format like 'yyyy-MM-dd'", D = h(() => f.isValid), r = g(null), u = g(null), a = g(!1), d = (m) => {
302
+ i.value = m, a.value = !1;
303
+ };
304
+ ne(u, () => a.value = !1, {
305
+ ignore: [r]
306
+ });
307
+ const { floatingStyles: l } = re(
308
+ r,
309
+ u,
310
+ {
311
+ middleware: [
312
+ ce({
313
+ mainAxis: 2,
314
+ crossAxis: 0
315
+ }),
316
+ ue(),
317
+ me({
318
+ mainAxis: !0,
319
+ crossAxis: !1
320
+ })
321
+ ],
322
+ placement: "top-end",
323
+ whileElementsMounted: de
324
+ }
325
+ );
326
+ return (m, p) => (v(), w("div", null, [
327
+ y("div", {
328
+ class: _(["wrapper", { disabled: n.disabled, compact: n.compact }])
329
+ }, [
330
+ y("span", ke, [
331
+ oe(y("input", {
332
+ "onUpdate:modelValue": p[0] || (p[0] = (F) => c.value = F),
333
+ type: "text",
334
+ disabled: n.disabled,
335
+ placeholder: V,
336
+ spellcheck: "false",
337
+ onFocus: p[1] || (p[1] = (F) => a.value = !1)
338
+ }, null, 40, Ie), [
339
+ [le, c.value]
340
+ ]),
341
+ D.value ? C("", !0) : (v(), w("span", Ce)),
342
+ y("button", {
343
+ ref_key: "togglePopoverButtonRef",
344
+ ref: r,
345
+ class: _(["trigger-popover-button", { active: a.value }]),
346
+ disabled: n.disabled,
347
+ onClick: p[2] || (p[2] = (F) => a.value = !a.value)
348
+ }, [
349
+ b(x(Te))
350
+ ], 10, _e)
351
+ ])
352
+ ], 2),
353
+ a.value ? (v(), w("div", {
354
+ key: 0,
355
+ ref_key: "floatingPopoverRef",
356
+ ref: u,
357
+ class: "popover",
358
+ style: ae(x(l))
359
+ }, [
360
+ b(Me, {
361
+ "all-formats": n.allDefaultFormats,
362
+ "initial-selected-pattern": i.value.format,
363
+ "selected-type": i.value.temporalType,
364
+ "show-type-switch": n.showTypeSwitchInPopover,
365
+ onCommit: d,
366
+ onCancel: p[3] || (p[3] = (F) => a.value = !1)
367
+ }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
368
+ ], 4)) : C("", !0)
369
+ ]));
370
+ }
371
+ }), Se = /* @__PURE__ */ S(Ae, [["__scopeId", "data-v-1577d5ce"]]), Re = ["id"], Ne = /* @__PURE__ */ A({
372
+ __name: "DateTimeFormatPickerWithTypeControl",
373
+ props: {
374
+ control: {},
375
+ handleChange: { type: Function },
376
+ changeValue: { type: Function },
377
+ disabled: { type: Boolean },
378
+ isValid: { type: Boolean },
379
+ onRegisterValidation: { type: Function },
380
+ labelForId: {}
381
+ },
382
+ setup(n) {
383
+ const f = n, i = h(
384
+ () => f.control.uischema
385
+ ), c = h(() => i.value.options), V = h(() => c.value?.allowedFormats), D = ie(i, "dateTimeFormats"), r = [
386
+ {
387
+ id: "DATE",
388
+ text: "Date"
389
+ },
390
+ {
391
+ id: "DATE_TIME",
392
+ text: "Date & time"
393
+ },
394
+ {
395
+ id: "TIME",
396
+ text: "Time"
397
+ },
398
+ {
399
+ id: "ZONED_DATE_TIME",
400
+ text: "Zoned date & time"
401
+ }
402
+ ], u = h({
403
+ get: () => f.control.data,
404
+ set: (d) => {
405
+ f.changeValue(d);
406
+ }
407
+ }), a = h({
408
+ get: () => u.value.temporalType,
409
+ set: (d) => {
410
+ u.value = {
411
+ ...u.value,
412
+ temporalType: d
413
+ };
414
+ }
415
+ });
416
+ return (d, l) => (v(), w("div", {
417
+ id: n.labelForId,
418
+ class: "control-container"
419
+ }, [
420
+ b(x(z), {
421
+ modelValue: a.value,
422
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => a.value = m),
423
+ compact: "",
424
+ "possible-values": r,
425
+ disabled: n.disabled
426
+ }, null, 8, ["modelValue", "disabled"]),
427
+ b(x(Se), {
428
+ modelValue: u.value,
429
+ "onUpdate:modelValue": l[1] || (l[1] = (m) => u.value = m),
430
+ compact: "",
431
+ disabled: n.disabled,
432
+ "show-type-switch-in-popover": !1,
433
+ "allowed-formats": V.value,
434
+ "all-default-formats": x(D),
435
+ "is-valid": !0
436
+ }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
437
+ ], 8, Re));
438
+ }
439
+ }), Le = /* @__PURE__ */ S(Ne, [["__scopeId", "data-v-8517cafd"]]);
440
+ export {
441
+ Le as default
442
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as r, toRef as s, computed as o, openBlock as n, createBlock as t, unref as d } from "vue";
2
- import { x as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
3
- import { u as m } from "./usePossibleValues-Bl8VFSuX.js";
4
- import { _ as b } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-Dvc5j9LS.js";
2
+ import { y as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
+ import { u as m } from "./usePossibleValues-BGGWIVzM.js";
4
+ import { _ as b } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js";
5
5
  const F = /* @__PURE__ */ r({
6
6
  __name: "DropdownControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as a, createElementBlock as t, Fragment as r, renderList as c, createBlock as s, unref as u } from "vue";
2
- import { a as m, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { a as m, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
4
4
  __name: "HorizontalLayout",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DEUdBs67.js";
2
+ import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js";
3
3
  const s = /* @__PURE__ */ o({
4
4
  __name: "IntegerControl",
5
5
  props: {
@@ -1,9 +1,9 @@
1
1
  import { openBlock as m, createElementBlock as f, renderSlot as Ve, toDisplayString as F, createCommentVNode as $, createElementVNode as c, resolveComponent as ye, normalizeClass as b, withModifiers as R, createVNode as I, defineComponent as L, useModel as H, computed as w, Fragment as O, createBlock as ee, withDirectives as D, vShow as S, renderList as K, unref as p, withCtx as W, createTextVNode as xe, mergeModels as U, ref as T, watch as q, withKeys as Ae, vModelText as Me, normalizeStyle as _e } from "vue";
2
- import { _ as C, J as be, M as De, a3 as we, u as Pe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { _ as C, J as be, N as De, a4 as we, u as Pe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  import { u as Re, a as Ne, s as Se, f as $e, o as Ce } from "./floating-ui.vue-Fx4CxKut.js";
4
4
  import { A as Oe } from "./arrow-dropdown-DMFBPPcK.js";
5
5
  /* empty css */
6
- import { V as z } from "./ValueSwitch-DDh7pJlr.js";
6
+ import { V as z } from "./ValueSwitch-BfYlPI2B.js";
7
7
  const Be = {
8
8
  name: "Tooltip",
9
9
  props: {
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { openBlock as i, createElementBlock as s, normalizeClass as d, renderSlot as o, createCommentVNode as u, createElementVNode as r, mergeProps as m, toDisplayString as h } from "vue";
3
- import { _ as f, N as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
3
+ import { _ as f, O as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
4
4
  const g = {
5
5
  name: "InputField",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as s, openBlock as m, createBlock as V, unref as v, mergeProps as y } from "vue";
2
- import { Z as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
2
+ import { $ as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
3
  const L = /* @__PURE__ */ b({
4
4
  __name: "LoadingDropdown",
5
5
  props: {
@@ -0,0 +1,29 @@
1
+ import { openBlock as r, createElementBlock as c, createElementVNode as s, h as i, defineComponent as l, createBlock as d, unref as a } from "vue";
2
+ import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
3
+ const m = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ stroke: "#000",
7
+ "stroke-linejoin": "round",
8
+ viewBox: "0 0 32 32"
9
+ };
10
+ function p(n, e) {
11
+ return r(), c("svg", m, [...e[0] || (e[0] = [
12
+ s("path", { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" }, null, -1)
13
+ ])]);
14
+ }
15
+ const u = { render: p }, f = (n, e) => ({
16
+ render() {
17
+ const o = n.render({}, []), t = i("title", e);
18
+ return t.ns = "svg", o.children.unshift(t), o;
19
+ }
20
+ }), g = /* @__PURE__ */ l({
21
+ __name: "LoadingIcon",
22
+ setup(n) {
23
+ const e = f(u, "Loading…");
24
+ return (o, t) => (r(), d(a(e)));
25
+ }
26
+ }), x = /* @__PURE__ */ _(g, [["__scopeId", "data-v-6b552b81"]]);
27
+ export {
28
+ x as L
29
+ };