@knime/jsonforms 1.9.2 → 1.9.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 (69) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{AnyOfTwinlist-BPOZOLti.js → AnyOfTwinlist-D1KycEHY.js} +1 -1
  3. package/dist/{Button-eJKYDCkd.js → Button-Dj1USqpr.js} +4 -5
  4. package/dist/{Checkbox-Cn75drbc.js → Checkbox-5l-7O-Rc.js} +1 -1
  5. package/dist/{CheckboxControl-CZI1ksFg.js → CheckboxControl-CcV_DXsi.js} +2 -2
  6. package/dist/{Checkboxes-DkHfcl3G.js → Checkboxes-TSVYIY6A.js} +2 -2
  7. package/dist/{CheckboxesControl-mDBFA4w8.js → CheckboxesControl-CEIBobjb.js} +2 -2
  8. package/dist/{ComboBoxControl-D21AHICP.js → ComboBoxControl-FTELjHzm.js} +20 -21
  9. package/dist/{DateControl-CoZARCXP.js → DateControl-CF5FYRLV.js} +1 -1
  10. package/dist/{DateTimeControl-Cy5gTvNj.js → DateTimeControl-D1B_TgdP.js} +2 -2
  11. package/dist/DateTimeFormatInput--ahcIWAg.js +381 -0
  12. package/dist/{DateTimeFormatPickerControl-tGAM1JkC.js → DateTimeFormatPickerControl-BliVRAB0.js} +2 -2
  13. package/dist/{DateTimeFormatPickerWithTypeControl-BclhGpyC.js → DateTimeFormatPickerWithTypeControl-CXseluiT.js} +3 -3
  14. package/dist/{DateTimeInput-DdlMeRDs.js → DateTimeInput-DqqCRfzR.js} +4 -5
  15. package/dist/{Dropdown-DXrbBJkL.js → Dropdown-BfqaIGuC.js} +27 -28
  16. package/dist/{DropdownControl-CCHrJ6le.js → DropdownControl-D8-qWkOR.js} +4 -4
  17. package/dist/{HorizontalLayout-DygZj0o9.js → HorizontalLayout-CWRVRpwR.js} +1 -1
  18. package/dist/{InputField-Bvyoaw2O.js → InputField-C2yLbANc.js} +1 -1
  19. package/dist/{IntegerControl-DsenUVe6.js → IntegerControl-Bz5KWKoG.js} +1 -1
  20. package/dist/{IntervalControl-DYdVuEIn.js → IntervalControl-B0CHqejJ.js} +16 -17
  21. package/dist/{LoadingDropdown-B04_zKDo.js → LoadingDropdown-fVxRhH6V.js} +3 -3
  22. package/dist/{MultimodeTwinlistControl-84S7d7BP.js → MultimodeTwinlistControl-DV_0SHHy.js} +5 -5
  23. package/dist/{MultiselectListBox-D1l5U70X.js → MultiselectListBox-Cn7ngRfj.js} +1 -1
  24. package/dist/{NameFilter-CxG07CNi.js → NameFilter-DTecZo_d.js} +1 -1
  25. package/dist/{NumberControl-Ds5fzpFG.js → NumberControl-Bv6y2n41.js} +1 -1
  26. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Da027LaV.js → NumberControlBase.vue_vue_type_script_setup_true_lang-6m9utn_F.js} +2 -2
  27. package/dist/{NumberInput-DNVDyuiW.js → NumberInput-Ys4Hdd7b.js} +1 -1
  28. package/dist/{OneOfDropdown-CX5YhB5y.js → OneOfDropdown-CDAPUCNY.js} +1 -1
  29. package/dist/{RadioControl-2vz2SEnY.js → RadioControl-B2pjYv6_.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-UGxGM4HJ.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CclH-Wwk.js} +2 -2
  31. package/dist/{RichTextControl-C9zYte_e.js → RichTextControl-Cp-ZJ8Qo.js} +3341 -4054
  32. package/dist/{SectionHeading-D5VIHfZ6.js → SectionHeading-D0esbYSn.js} +1 -1
  33. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js +13635 -0
  34. package/dist/{SectionLayout-FgUSzxvg.js → SectionLayout-lUG0FeYA.js} +3 -3
  35. package/dist/SettingsSubPanel-DlUlLFts.js +5 -0
  36. package/dist/{SettingsSubPanelLayout-CiSDF0QY.js → SettingsSubPanelLayout-BvbwLKfV.js} +20 -21
  37. package/dist/{SimpleButtonControl-E4YUEkFB.js → SimpleButtonControl-DWLU_5Ny.js} +8 -8
  38. package/dist/{SimpleTwinlistControl-BTXe7YwA.js → SimpleTwinlistControl-D6ORIuzH.js} +2 -2
  39. package/dist/{SingleSelectControl-Lr3z2PQP.js → SingleSelectControl-BKv71LA7.js} +2 -2
  40. package/dist/{SortListControl-D7yx8Zz-.js → SortListControl-B5N2Hqr2.js} +5 -6
  41. package/dist/{TextAreaControl-Dr7sr6e5.js → TextAreaControl-Bb1thkUU.js} +1 -1
  42. package/dist/{TextControl-CBgD2gmx.js → TextControl-CuiHsefr.js} +1 -1
  43. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Chd6nIT-.js → TextControl.vue_vue_type_script_setup_true_lang-DqaxrzeR.js} +4 -4
  44. package/dist/{TimeControl-Cm8yqjem.js → TimeControl-CfdGsohr.js} +2 -2
  45. package/dist/{TwinlistControlBase-D09CXwzh.js → TwinlistControlBase-CYNUKmVM.js} +3 -3
  46. package/dist/{TwinlistLoadingInfo-B_2E8y_B.js → TwinlistLoadingInfo-CPqVvWp4.js} +13 -14
  47. package/dist/{TypedStringFilter-BMlauzYE.js → TypedStringFilter-0MA1D7-X.js} +1 -1
  48. package/dist/{ValueSwitch-D1egJZr6.js → ValueSwitch-B6rM3Cb9.js} +1 -1
  49. package/dist/{ValueSwitchControl-CextiX-9.js → ValueSwitchControl-avfCCusm.js} +1 -1
  50. package/dist/{VerticalLayout-uvd7dU17.js → VerticalLayout-DXyKnMvI.js} +2 -2
  51. package/dist/{VerticalLayoutBase-CSnU3mLb.js → VerticalLayoutBase-D-TX7EUL.js} +1 -1
  52. package/dist/{ZonedDateTimeControl-CB0KZQXT.js → ZonedDateTimeControl-BNZ8YhWM.js} +4 -4
  53. package/dist/knime-jsonforms.css +1 -1
  54. package/dist/knime-jsonforms.js +42 -43
  55. package/dist/{localTimeUtils-DnV5kh7m.js → localTimeUtils-Bvx7vLrT.js} +1 -1
  56. package/dist/{magic-string.es-B5A5AF4s.js → magic-string.es-CvzN4vs8.js} +1 -1
  57. package/dist/{svgWithTitle-WX_pgBsG.js → svgWithTitle-DMRd3aDh.js} +1 -1
  58. package/dist/testUtils/component.d.ts +13 -0
  59. package/dist/testing.js +1503 -1501
  60. package/dist/{useBuiltinValidations-LNyl7q7j.js → useBuiltinValidations-iU8yJR-J.js} +1 -1
  61. package/dist/useDropdownNavigation-7o7SRJSo.js +781 -0
  62. package/dist/{usePossibleValues-CM2RTisz.js → usePossibleValues-CQWkZRBa.js} +1 -1
  63. package/package.json +3 -3
  64. package/dist/BaseButton-6PV3BYUQ.js +0 -112
  65. package/dist/DateTimeFormatInput-Btt_BLk-.js +0 -347
  66. package/dist/FunctionButton-QVrKdZdI.js +0 -75
  67. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js +0 -13322
  68. package/dist/SettingsSubPanel-BZE2IRG9.js +0 -142
  69. package/dist/useDropdownNavigation-D6ZenVxz.js +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e88dcfd]
8
+ - @knime/components@1.27.0
9
+ - @knime/rich-text-editor@1.4.9
10
+
11
+ ## 1.9.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 87fadf9: Provide sub settings panel destination in control tests
16
+
3
17
  ## 1.9.2
4
18
 
5
19
  ### 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-D09CXwzh.js";
3
+ import { T as i } from "./TwinlistControlBase-CYNUKmVM.js";
4
4
  const y = /* @__PURE__ */ s({
5
5
  __name: "AnyOfTwinlist",
6
6
  props: {
@@ -1,6 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as r, withCtx as l, renderSlot as d } from "vue";
2
- import { B as i } from "./BaseButton-6PV3BYUQ.js";
3
- import { _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
2
+ import { B as i, _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
4
3
  const c = o({
5
4
  name: "Button",
6
5
  components: {
@@ -65,7 +64,7 @@ const c = o({
65
64
  }
66
65
  }
67
66
  });
68
- function f(e, m, B, u, h, _) {
67
+ function f(e, B, u, m, h, _) {
69
68
  const t = a("BaseButton");
70
69
  return s(), n(t, {
71
70
  class: r(e.classes),
@@ -77,7 +76,7 @@ function f(e, m, B, u, h, _) {
77
76
  _: 3
78
77
  }, 8, ["class", "disabled"]);
79
78
  }
80
- const k = /* @__PURE__ */ p(c, [["render", f], ["__scopeId", "data-v-4d1f9e2d"]]);
79
+ const b = /* @__PURE__ */ p(c, [["render", f], ["__scopeId", "data-v-4d1f9e2d"]]);
81
80
  export {
82
- k as B
81
+ b as B
83
82
  };
@@ -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_625edfbe_lang-hOcQ43HC.js";
2
+ import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.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-Cn75drbc.js";
3
- import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
2
+ import { C as f } from "./Checkbox-5l-7O-Rc.js";
3
+ import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.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-Cn75drbc.js";
1
+ import { C as c } from "./Checkbox-5l-7O-Rc.js";
2
2
  import { resolveComponent as u, openBlock as l, 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 "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
3
+ import { _ as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.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 c, openBlock as d, createBlock as r, unref as p, createCommentVNode as u } from "vue";
2
2
  import { o as m } from "./index-Blg1O3Fz.js";
3
- import { C as b } from "./Checkboxes-DkHfcl3G.js";
4
- import { _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
3
+ import { C as b } from "./Checkboxes-TSVYIY6A.js";
4
+ import { _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
5
5
  const f = /* @__PURE__ */ t({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,12 +1,11 @@
1
- import { resolveComponent as f, openBlock as d, createElementBlock as V, normalizeClass as w, withKeys as r, withModifiers as a, renderSlot as E, createElementVNode as p, toDisplayString as g, createVNode as h, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as S, withCtx as O, createTextVNode as $, vShow as P, defineComponent as M, vModelText as R, ref as F, toRef as z, onMounted as U, computed as B, unref as N, createCommentVNode as L } from "vue";
2
- import { u as H } from "./usePossibleValues-CM2RTisz.js";
1
+ import { resolveComponent as f, openBlock as d, createElementBlock as V, normalizeClass as w, withKeys as r, withModifiers as a, renderSlot as E, createElementVNode as p, toDisplayString as g, createVNode as h, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as S, withCtx as O, createTextVNode as $, vShow as P, defineComponent as M, vModelText as R, ref as B, toRef as z, onMounted as U, computed as F, unref as N, createCommentVNode as L } from "vue";
2
+ import { u as H } from "./usePossibleValues-CQWkZRBa.js";
3
3
  import { C as K } from "./close-h7XT0ja0.js";
4
- import { F as j } from "./FunctionButton-QVrKdZdI.js";
4
+ import { _ as C, o as j } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
5
5
  /* empty css */
6
6
  import { u as W } from "./index-Bf0xDq3g.js";
7
7
  import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
8
- import { C as X } from "./Checkbox-Cn75drbc.js";
9
- import { _ as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
8
+ import { C as X } from "./Checkbox-5l-7O-Rc.js";
10
9
  import { c as q } from "./createMissingItem-B00Kg95q.js";
11
10
  const y = 1, J = 28.5, Q = 8, Y = {
12
11
  name: "Multiselect",
@@ -240,11 +239,11 @@ const y = 1, J = 28.5, Q = 8, Y = {
240
239
  }
241
240
  }
242
241
  }, Z = { key: 1 };
243
- function _(e, t, i, n, m, o) {
244
- const c = f("DropdownIcon"), u = f("Checkbox");
242
+ function _(e, t, i, n, c, o) {
243
+ const m = f("DropdownIcon"), u = f("Checkbox");
245
244
  return d(), V("div", {
246
245
  ref: "multiselect",
247
- class: w(["multiselect", { collapsed: m.collapsed, invalid: !i.isValid, compact: i.compact }]),
246
+ class: w(["multiselect", { collapsed: c.collapsed, invalid: !i.isValid, compact: i.compact }]),
248
247
  onKeydown: [
249
248
  t[2] || (t[2] = r((...s) => o.closeOptionsAndStop && o.closeOptionsAndStop(...s), ["esc"])),
250
249
  t[3] || (t[3] = r(a((...s) => o.onUp && o.onUp(...s), ["stop", "prevent"]), ["up"])),
@@ -262,7 +261,7 @@ function _(e, t, i, n, m, o) {
262
261
  onClick: t[0] || (t[0] = (...s) => o.toggle && o.toggle(...s)),
263
262
  onKeydown: t[1] || (t[1] = r(a((...s) => o.toggle && o.toggle(...s), ["prevent"]), ["space"]))
264
263
  }, g(o.summary), 35),
265
- h(c, { class: "icon" })
264
+ h(m, { class: "icon" })
266
265
  ])),
267
266
  I(p("div", {
268
267
  class: "options",
@@ -477,8 +476,8 @@ const ee = /* @__PURE__ */ C(Y, [["render", _], ["__scopeId", "data-v-e722538a"]
477
476
  }
478
477
  }
479
478
  }), se = ["title"], oe = ["maxlength"], le = { class: "icon-right" };
480
- function ie(e, t, i, n, m, o) {
481
- const c = f("CloseIcon"), u = f("FunctionButton"), s = f("Multiselect");
479
+ function ie(e, t, i, n, c, o) {
480
+ const m = f("CloseIcon"), u = f("FunctionButton"), s = f("Multiselect");
482
481
  return d(), S(s, {
483
482
  ref: "combobox",
484
483
  "model-value": e.modelValue,
@@ -521,7 +520,7 @@ function ie(e, t, i, n, m, o) {
521
520
  onClick: a((ue) => e.removeTag(l), ["stop"])
522
521
  }, {
523
522
  default: O(() => [
524
- h(c, { class: "remove-tag-button-icon" })
523
+ h(m, { class: "remove-tag-button-icon" })
525
524
  ]),
526
525
  _: 2
527
526
  }, 1032, ["compact", "onClick"])
@@ -553,7 +552,7 @@ function ie(e, t, i, n, m, o) {
553
552
  onClick: a(e.removeAllTags, ["stop"])
554
553
  }, {
555
554
  default: O(() => [
556
- h(c)
555
+ h(m)
557
556
  ]),
558
557
  _: 1
559
558
  }, 8, ["compact", "onClick"])
@@ -577,13 +576,13 @@ const ne = /* @__PURE__ */ C(te, [["render", ie], ["__scopeId", "data-v-418fb7c5
577
576
  labelForId: {}
578
577
  },
579
578
  setup(e) {
580
- const t = e, i = F([]), n = F(!1), { possibleValues: m } = H(z(t, "control"));
579
+ const t = e, i = B([]), n = B(!1), { possibleValues: c } = H(z(t, "control"));
581
580
  U(() => {
582
581
  i.value = t.control.data, n.value = !0;
583
582
  });
584
- const o = B(
585
- () => m.value === null || m.value.length === 0
586
- ), c = B(
583
+ const o = F(
584
+ () => c.value === null || c.value.length === 0
585
+ ), m = F(
587
586
  () => t.disabled || o.value
588
587
  );
589
588
  return (u, s) => n.value ? (d(), S(N(ne), {
@@ -591,15 +590,15 @@ const ne = /* @__PURE__ */ C(te, [["render", ie], ["__scopeId", "data-v-418fb7c5
591
590
  id: u.labelForId,
592
591
  "allow-new-values": o.value ? "" : !1,
593
592
  "aria-label": u.control.label,
594
- disabled: c.value,
595
- "possible-values": N(m) ?? [],
593
+ disabled: m.value,
594
+ "possible-values": N(c) ?? [],
596
595
  "model-value": i.value,
597
596
  "is-valid": u.isValid,
598
597
  compact: "",
599
598
  "onUpdate:modelValue": s[0] || (s[0] = (l) => u.changeValue(l))
600
599
  }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"])) : L("", !0);
601
600
  }
602
- }), we = /* @__PURE__ */ C(ae, [["__scopeId", "data-v-33a5967b"]]);
601
+ }), Oe = /* @__PURE__ */ C(ae, [["__scopeId", "data-v-33a5967b"]]);
603
602
  export {
604
- we as default
603
+ Oe as default
605
604
  };
@@ -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-DdlMeRDs.js";
2
+ import { D as t } from "./DateTimeInput-DqqCRfzR.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-DdlMeRDs.js";
3
- import { t as i, f as b } from "./localTimeUtils-DnV5kh7m.js";
2
+ import { D as T } from "./DateTimeInput-DqqCRfzR.js";
3
+ import { t as i, f as b } from "./localTimeUtils-Bvx7vLrT.js";
4
4
  const y = /* @__PURE__ */ h({
5
5
  __name: "DateTimeControl",
6
6
  props: {
@@ -0,0 +1,381 @@
1
+ import { openBlock as p, createElementBlock as y, createElementVNode as v, defineComponent as O, computed as E, ref as f, watch as I, reactive as G, onMounted as J, nextTick as N, onUnmounted as Q, createBlock as P, unref as w, withCtx as X, createCommentVNode as C, createVNode as k, normalizeStyle as U, Fragment as Y, renderList as ee, normalizeClass as V, toDisplayString as $, mergeModels as te, useModel as oe, withDirectives as le, vModelText as ae } from "vue";
2
+ import { o as se } from "./index-Bf0xDq3g.js";
3
+ import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue-B-MrqKCT.js";
4
+ import { u as me, F as ue } from "./useDropdownNavigation-7o7SRJSo.js";
5
+ import { L as pe } from "./svgWithTitle-DMRd3aDh.js";
6
+ import { V as B } from "./ValueSwitch-B6rM3Cb9.js";
7
+ import { _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
8
+ const ve = {
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ fill: "none",
11
+ "stroke-linejoin": "round",
12
+ viewBox: "0 0 32 32"
13
+ }, fe = /* @__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), ye = [
17
+ fe
18
+ ];
19
+ function he(_, x) {
20
+ return p(), y("svg", ve, [...ye]);
21
+ }
22
+ const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-container-border-host" }, _e = {
23
+ key: 0,
24
+ class: "no-formats-available"
25
+ }, Ee = {
26
+ key: 1,
27
+ class: "no-formats-available"
28
+ }, xe = ["onClick"], Fe = { class: "format-pattern" }, ke = { class: "format-preview" }, H = 1, Me = /* @__PURE__ */ O({
29
+ __name: "DateTimeFormatPickerPopover",
30
+ props: {
31
+ allFormats: {},
32
+ selectedType: {},
33
+ initialSelectedPattern: {},
34
+ showTypeSwitch: { type: Boolean }
35
+ },
36
+ emits: ["commit", "cancel"],
37
+ setup(_, { emit: x }) {
38
+ const n = x, c = _, M = 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
+ ]), D = 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
+ ]), i = f(null), h = f(null), a = f("RECENT"), u = f(c.selectedType);
73
+ I(
74
+ () => c.selectedType,
75
+ (e) => {
76
+ h.value = e;
77
+ }
78
+ );
79
+ const s = E(
80
+ () => {
81
+ var e;
82
+ return ((e = c.allFormats) == null ? void 0 : e.filter(
83
+ (t) => t.category === a.value && t.temporalType === u.value
84
+ )) ?? null;
85
+ }
86
+ ), r = f(null), m = G({}), T = (e) => `${e.format}-${e.category}-${e.temporalType}`, K = (e) => (t) => {
87
+ m[T(e)] = t;
88
+ }, g = (e) => ({
89
+ format: e.format,
90
+ temporalType: e.temporalType
91
+ }), {
92
+ currentIndex: b,
93
+ onKeydown: S,
94
+ resetNavigation: Z,
95
+ setElement: W
96
+ } = me({
97
+ keepOpenedOnTab: !0,
98
+ getFirstElement: () => ({
99
+ index: 0,
100
+ onClick: () => n(
101
+ "commit",
102
+ g(s.value[0])
103
+ )
104
+ }),
105
+ getLastElement: () => {
106
+ const e = s.value.length - 1;
107
+ return {
108
+ index: e,
109
+ onClick: () => n(
110
+ "commit",
111
+ g(s.value[e])
112
+ )
113
+ };
114
+ },
115
+ getNextElement: (e, t) => {
116
+ if (e = e === null || e === -1 ? null : e, t === 1) {
117
+ const l = ((e ?? -1) + 1) % s.value.length;
118
+ return {
119
+ index: l,
120
+ onClick: () => n(
121
+ "commit",
122
+ g(s.value[l])
123
+ )
124
+ };
125
+ } else {
126
+ const l = ((e ?? 0) - 1 + s.value.length) % s.value.length;
127
+ return {
128
+ index: l,
129
+ onClick: () => n(
130
+ "commit",
131
+ g(s.value[l])
132
+ )
133
+ };
134
+ }
135
+ },
136
+ close: () => {
137
+ n("cancel");
138
+ }
139
+ }), j = (e) => {
140
+ const t = e.parentElement;
141
+ if (t && t.scrollHeight > t.clientHeight) {
142
+ const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, d = e.offsetTop + e.offsetHeight - o;
143
+ d > l ? t.scrollTop = d - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
144
+ }
145
+ }, A = (e) => {
146
+ const t = m[`${e}-${a.value}-${u.value}`];
147
+ t && j(t);
148
+ }, R = async (e, t, o) => {
149
+ u.value = t ?? u.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
150
+ const l = s.value.findIndex(
151
+ (d) => d.format === e
152
+ );
153
+ W({
154
+ index: l,
155
+ onClick: () => n(
156
+ "commit",
157
+ g(s.value[l])
158
+ )
159
+ });
160
+ };
161
+ I(b, (e) => {
162
+ var o, l;
163
+ if (e === null)
164
+ return;
165
+ const t = (l = (o = s.value) == null ? void 0 : o[e]) == null ? void 0 : l.format;
166
+ t && A(t);
167
+ }), I([u, a], () => {
168
+ var e, t;
169
+ u.value === ((e = i.value) == null ? void 0 : e.temporalType) && a.value === ((t = i.value) == null ? void 0 : t.category) ? R(
170
+ i.value.format,
171
+ i.value.temporalType,
172
+ i.value.category
173
+ ) : (h.value = null, Z());
174
+ });
175
+ const F = f(!1);
176
+ return J(async () => {
177
+ if (!c.allFormats)
178
+ return;
179
+ const e = [
180
+ "RECENT",
181
+ "STANDARD",
182
+ "EUROPEAN",
183
+ "AMERICAN"
184
+ ], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
185
+ (o) => (
186
+ // if the type switch is hidden, filter to only formats with the same type
187
+ c.selectedType === o.temporalType || c.showTypeSwitch
188
+ )
189
+ ).sort((o, l) => {
190
+ const d = e.indexOf(o.category), z = e.indexOf(l.category);
191
+ return d - z;
192
+ });
193
+ if (t.length > 0) {
194
+ const o = t[0].format, l = t[0].temporalType, d = t[0].category;
195
+ await R(o, l, d);
196
+ const z = s.value.findIndex(
197
+ (q) => q.format === o
198
+ );
199
+ i.value = {
200
+ format: o,
201
+ index: z,
202
+ category: d,
203
+ temporalType: l
204
+ };
205
+ }
206
+ N(() => F.value = !0);
207
+ }), Q(() => F.value = !1), (e, t) => (p(), P(w(ue), {
208
+ active: F.value,
209
+ "onUpdate:active": t[3] || (t[3] = (o) => F.value = o),
210
+ "initial-focus": () => r.value ?? !1
211
+ }, {
212
+ default: X(() => [
213
+ v("div", ge, [
214
+ e.showTypeSwitch ? (p(), P(B, {
215
+ key: 0,
216
+ id: "selectedFormatType",
217
+ ref: "typeSwitchRef",
218
+ modelValue: u.value,
219
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => u.value = o),
220
+ compact: "",
221
+ "possible-values": D.value,
222
+ class: "filter-switch"
223
+ }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
224
+ k(B, {
225
+ id: "selectedFormatStandard",
226
+ ref: "standardSwitchRef",
227
+ modelValue: a.value,
228
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
229
+ compact: "",
230
+ "possible-values": M.value,
231
+ class: "filter-switch"
232
+ }, null, 8, ["modelValue", "possible-values"]),
233
+ v("div", we, [
234
+ v("div", {
235
+ id: "dateFormats",
236
+ ref_key: "formatContainerRef",
237
+ ref: r,
238
+ class: "formats-container",
239
+ style: U({ "--formats-container-border-width": H + "px" }),
240
+ tabindex: "0",
241
+ role: "menu",
242
+ onKeydown: t[2] || (t[2] = //@ts-ignore
243
+ (...o) => w(S) && w(S)(...o))
244
+ }, [
245
+ s.value === null ? (p(), y("div", _e, [
246
+ k(pe, { class: "loading-spinner" })
247
+ ])) : s.value.length === 0 ? (p(), y("div", Ee, " No formats available ")) : (p(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => {
248
+ var d;
249
+ return p(), y("div", {
250
+ key: T(o),
251
+ ref_for: !0,
252
+ ref: K(o),
253
+ class: V([{
254
+ highlighted: l === w(b),
255
+ applied: l === ((d = i.value) == null ? void 0 : d.index) && o.category === i.value.category && o.temporalType === i.value.temporalType
256
+ }, "single-format"]),
257
+ role: "menuitem",
258
+ onClick: () => n("commit", g(o))
259
+ }, [
260
+ v("span", Fe, $(o.format), 1),
261
+ v("span", ke, $(o.example), 1)
262
+ ], 10, xe);
263
+ }), 128))
264
+ ], 36)
265
+ ])
266
+ ])
267
+ ]),
268
+ _: 1
269
+ }, 8, ["active", "initial-focus"]));
270
+ }
271
+ }), De = /* @__PURE__ */ L(Me, [["__scopeId", "data-v-5d20d963"]]), ze = { class: "input-fields" }, Ie = ["disabled"], Ce = {
272
+ key: 0,
273
+ class: "invalid-marker"
274
+ }, Ve = ["disabled"], be = {}, Se = /* @__PURE__ */ O({
275
+ ...be,
276
+ __name: "DateTimeFormatInput",
277
+ props: /* @__PURE__ */ te({
278
+ disabled: { type: Boolean, default: !1 },
279
+ compact: { type: Boolean, default: !1 },
280
+ isValid: { type: Boolean, default: !0 },
281
+ allDefaultFormats: {},
282
+ allowedTypes: { default: () => [
283
+ "DATE",
284
+ "TIME",
285
+ "DATE_TIME",
286
+ "ZONED_DATE_TIME"
287
+ ] },
288
+ showTypeSwitchInPopover: { type: Boolean, default: !0 }
289
+ }, {
290
+ modelValue: {
291
+ default: {
292
+ format: "yyyy-MM-dd",
293
+ temporalType: "DATE"
294
+ }
295
+ },
296
+ modelModifiers: {}
297
+ }),
298
+ emits: ["update:modelValue"],
299
+ setup(_) {
300
+ const x = _, n = oe(_, "modelValue"), c = E({
301
+ get: () => n.value.format,
302
+ set: (r) => {
303
+ n.value = {
304
+ ...n.value,
305
+ format: r
306
+ };
307
+ }
308
+ }), M = "Format like 'yyyy-MM-dd'", D = E(() => x.isValid), i = f(null), h = f(null), a = f(!1), u = (r) => {
309
+ n.value = r, a.value = !1;
310
+ };
311
+ se(h, () => a.value = !1, {
312
+ ignore: [i]
313
+ });
314
+ const { floatingStyles: s } = ne(
315
+ i,
316
+ h,
317
+ {
318
+ middleware: [
319
+ ie({
320
+ mainAxis: 2,
321
+ crossAxis: 0
322
+ }),
323
+ re(),
324
+ de({
325
+ mainAxis: !0,
326
+ crossAxis: !1
327
+ })
328
+ ],
329
+ placement: "top-end",
330
+ whileElementsMounted: ce
331
+ }
332
+ );
333
+ return (r, m) => (p(), y("div", null, [
334
+ v("div", {
335
+ class: V(["wrapper", { disabled: r.disabled, compact: r.compact }])
336
+ }, [
337
+ v("span", ze, [
338
+ le(v("input", {
339
+ "onUpdate:modelValue": m[0] || (m[0] = (T) => c.value = T),
340
+ type: "text",
341
+ disabled: r.disabled,
342
+ placeholder: M,
343
+ spellcheck: "false",
344
+ onFocus: m[1] || (m[1] = (T) => a.value = !1)
345
+ }, null, 40, Ie), [
346
+ [ae, c.value]
347
+ ]),
348
+ D.value ? C("", !0) : (p(), y("span", Ce)),
349
+ v("button", {
350
+ ref_key: "togglePopoverButtonRef",
351
+ ref: i,
352
+ class: V(["trigger-popover-button", { active: a.value }]),
353
+ disabled: r.disabled,
354
+ onClick: m[2] || (m[2] = (T) => a.value = !a.value)
355
+ }, [
356
+ k(w(Te))
357
+ ], 10, Ve)
358
+ ])
359
+ ], 2),
360
+ a.value ? (p(), y("div", {
361
+ key: 0,
362
+ ref_key: "floatingPopoverRef",
363
+ ref: h,
364
+ class: "popover",
365
+ style: U(w(s))
366
+ }, [
367
+ k(De, {
368
+ "all-formats": r.allDefaultFormats,
369
+ "initial-selected-pattern": n.value.format,
370
+ "selected-type": n.value.temporalType,
371
+ "show-type-switch": r.showTypeSwitchInPopover,
372
+ onCommit: u,
373
+ onCancel: m[3] || (m[3] = (T) => a.value = !1)
374
+ }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
375
+ ], 4)) : C("", !0)
376
+ ]));
377
+ }
378
+ }), Oe = /* @__PURE__ */ L(Se, [["__scopeId", "data-v-a18d67d3"]]);
379
+ export {
380
+ Oe as D
381
+ };
@@ -1,6 +1,6 @@
1
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 "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
3
- import { D as F } from "./DateTimeFormatInput-Btt_BLk-.js";
2
+ import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
3
+ import { D as F } from "./DateTimeFormatInput--ahcIWAg.js";
4
4
  const b = /* @__PURE__ */ m({
5
5
  __name: "DateTimeFormatPickerControl",
6
6
  props: {
@@ -1,7 +1,7 @@
1
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 "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
3
- import { V as y } from "./ValueSwitch-D1egJZr6.js";
4
- import { D as F } from "./DateTimeFormatInput-Btt_BLk-.js";
2
+ import { u as V, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
3
+ import { V as y } from "./ValueSwitch-B6rM3Cb9.js";
4
+ import { D as F } from "./DateTimeFormatInput--ahcIWAg.js";
5
5
  const h = ["id"], D = /* @__PURE__ */ f({
6
6
  __name: "DateTimeFormatPickerWithTypeControl",
7
7
  props: {
@@ -1,10 +1,9 @@
1
1
  import { resolveComponent as je, openBlock as C, createElementBlock as E, normalizeClass as te, createElementVNode as j, createCommentVNode as ee, withModifiers as Nt, createVNode as z, reactive as Ia, computed as _, defineComponent as Oe, ref as we, watch as Ae, onMounted as rn, onUnmounted as Sa, toRefs as Iu, inject as wr, watchEffect as Ls, provide as br, nextTick as dr, unref as M, createBlock as Pe, resolveDynamicComponent as Ea, normalizeProps as hr, mergeProps as Mt, renderSlot as Dr, withCtx as Te, toDisplayString as Le, Fragment as Ce, renderList as Ge, normalizeStyle as mr, withKeys as Lr, withDirectives as Hs, toRef as Nr, guardReactiveProps as Un, createTextVNode as Na, isRef as ir, Transition as Rs, resolveDirective as Su, toHandlers as js, pushScopeId as Eu, popScopeId as Nu } from "vue";
2
2
  import { c as Au } from "./popper-CRR--9mA.js";
3
- import { r as Wu } from "./BaseButton-6PV3BYUQ.js";
4
- import { D as Uu } from "./Dropdown-DXrbBJkL.js";
3
+ import { _ as Vs, y as nn, z as Wu } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
4
+ import { D as Uu } from "./Dropdown-BfqaIGuC.js";
5
5
  import { A as Fu } from "./arrow-dropdown-DjUxzjqC.js";
6
6
  /* empty css */
7
- import { _ as Vs, q as nn } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-hOcQ43HC.js";
8
7
  import { a as Lu } from "./toString-B9O7P854.js";
9
8
  import { b as Hu } from "./_baseIteratee-DhaGkQLM.js";
10
9
  import { b as Ru } from "./_baseEach-FP8ISlsz.js";
@@ -11180,9 +11179,9 @@ function yP(e, t, r, n, a, s) {
11180
11179
  ], 2)) : ee("", !0)
11181
11180
  ]);
11182
11181
  }
11183
- const xP = /* @__PURE__ */ Vs(sP, [["render", yP], ["__scopeId", "data-v-50cb1067"]]);
11182
+ const OP = /* @__PURE__ */ Vs(sP, [["render", yP], ["__scopeId", "data-v-50cb1067"]]);
11184
11183
  export {
11185
- xP as D,
11184
+ OP as D,
11186
11185
  Ju as a,
11187
11186
  il as b,
11188
11187
  rl as c,