@knime/jsonforms 1.14.3 → 1.15.0

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 (165) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
  3. package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
  4. package/dist/CheckboxControl-C10_DX1N.js +40 -0
  5. package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
  6. package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
  7. package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
  8. package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
  9. package/dist/DateTimeControl-DJhIb_U4.js +45 -0
  10. package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
  11. package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
  12. package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
  13. package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
  14. package/dist/Dropdown-BEx-cvXH.js +608 -0
  15. package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
  16. package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
  17. package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
  18. package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
  19. package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
  20. package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
  21. package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
  22. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
  23. package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
  24. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
  25. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
  26. package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
  27. package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
  29. package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
  30. package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
  31. package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
  33. package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
  34. package/dist/SectionHeading-D7znCZXu.js +19 -0
  35. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
  36. package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
  37. package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
  38. package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
  39. package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
  40. package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
  41. package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
  42. package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
  43. package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
  44. package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
  45. package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
  46. package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
  48. package/dist/TimeControl-HRooO_z3.js +36 -0
  49. package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
  50. package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
  51. package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
  52. package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
  53. package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
  54. package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
  55. package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
  56. package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
  57. package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
  62. package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +64 -67
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
  137. package/dist/testUtils/component.d.ts +18 -18
  138. package/dist/testing.js +8688 -8655
  139. package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
  140. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
  141. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  142. package/dist/usePossibleValues-DXuWWBh_.js +16 -0
  143. package/package.json +14 -14
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  146. package/dist/Dropdown-CJj0CUA8.js +0 -604
  147. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  148. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  149. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  150. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  151. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  152. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  153. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  154. package/dist/TimeControl-DfhE8yu9.js +0 -42
  155. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  156. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  157. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  158. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  159. package/dist/index-CoRworrE.js +0 -322
  160. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  161. package/dist/navigator-D_R-txCf.js +0 -7
  162. package/dist/popper-CRR--9mA.js +0 -907
  163. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  164. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  165. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -1,10 +1,10 @@
1
- import { openBlock as p, createElementBlock as y, createElementVNode as v, defineComponent as O, computed as F, ref as f, watch as I, reactive as G, onMounted as J, nextTick as N, onUnmounted as Q, createBlock as P, unref as E, withCtx as X, createCommentVNode as C, createVNode as k, normalizeStyle as U, Fragment as Y, renderList as ee, normalizeClass as V, toDisplayString as B, mergeModels as te, useModel as oe, withDirectives as le, vModelText as ae } from "vue";
2
- import { o as se } from "./index-CoRworrE.js";
3
- import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue-B-MrqKCT.js";
4
- import { u as me, F as ue } from "./useDropdownNavigation-7o7SRJSo.js";
5
- import { L as pe } from "./svgWithTitle-Cr3Pu3wr.js";
6
- import { V as $ } from "./ValueSwitch-CUYV7v67.js";
7
- import { _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
1
+ import { createElementBlock as y, openBlock as u, createElementVNode as p, defineComponent as O, computed as F, ref as f, watch as I, reactive as G, onMounted as J, nextTick as N, onUnmounted as Q, createBlock as P, unref as E, withCtx as X, createCommentVNode as C, createVNode as k, normalizeStyle as U, Fragment as Y, renderList as ee, normalizeClass as V, toDisplayString as B, mergeModels as te, useModel as oe, withDirectives as le, vModelText as ae } from "vue";
2
+ import { o as se } from "./index-CpKfM262.js";
3
+ import { u as ne, a as ie, o as re, s as de, f as ce } from "./floating-ui.vue-CDo9Kas1.js";
4
+ import { u as me, F as ue } from "./useDropdownNavigation-BfCXUheD.js";
5
+ import { L as pe } from "./svgWithTitle-CnTmPYAB.js";
6
+ import { V as $ } from "./ValueSwitch-W4y1YvNM.js";
7
+ import { _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
8
8
  const ve = {
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
10
  fill: "none",
@@ -12,8 +12,8 @@ const ve = {
12
12
  viewBox: "0 0 32 32"
13
13
  };
14
14
  function fe(x, g) {
15
- return p(), y("svg", ve, g[0] || (g[0] = [
16
- v("path", {
15
+ return u(), y("svg", ve, g[0] || (g[0] = [
16
+ p("path", {
17
17
  fill: "#000",
18
18
  d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
19
19
  }, null, -1)
@@ -35,7 +35,7 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
35
35
  },
36
36
  emits: ["commit", "cancel"],
37
37
  setup(x, { emit: g }) {
38
- const n = g, c = x, M = F(() => [
38
+ const n = g, d = x, M = F(() => [
39
39
  {
40
40
  id: "RECENT",
41
41
  text: "Recent"
@@ -69,22 +69,19 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
69
69
  id: "ZONED_DATE_TIME",
70
70
  text: "Zoned date & time"
71
71
  }
72
- ]), i = f(null), h = f(null), a = f("RECENT"), u = f(c.selectedType);
72
+ ]), i = f(null), h = f(null), a = f("RECENT"), m = f(d.selectedType);
73
73
  I(
74
- () => c.selectedType,
74
+ () => d.selectedType,
75
75
  (e) => {
76
76
  h.value = e;
77
77
  }
78
78
  );
79
79
  const s = F(
80
- () => {
81
- var e;
82
- return ((e = c.allFormats) == null ? void 0 : e.filter(
83
- (t) => t.category === a.value && t.temporalType === u.value
84
- )) ?? null;
85
- }
86
- ), r = f(null), m = G({}), T = (e) => `${e.format}-${e.category}-${e.temporalType}`, K = (e) => (t) => {
87
- m[T(e)] = t;
80
+ () => d.allFormats?.filter(
81
+ (e) => e.category === a.value && e.temporalType === m.value
82
+ ) ?? null
83
+ ), r = f(null), c = G({}), T = (e) => `${e.format}-${e.category}-${e.temporalType}`, K = (e) => (t) => {
84
+ c[T(e)] = t;
88
85
  }, w = (e) => ({
89
86
  format: e.format,
90
87
  temporalType: e.temporalType
@@ -139,16 +136,16 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
139
136
  }), j = (e) => {
140
137
  const t = e.parentElement;
141
138
  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);
139
+ const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
140
+ v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
144
141
  }
145
142
  }, A = (e) => {
146
- const t = m[`${e}-${a.value}-${u.value}`];
143
+ const t = c[`${e}-${a.value}-${m.value}`];
147
144
  t && j(t);
148
145
  }, R = async (e, t, o) => {
149
- u.value = t ?? u.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
146
+ m.value = t ?? m.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
150
147
  const l = s.value.findIndex(
151
- (d) => d.format === e
148
+ (v) => v.format === e
152
149
  );
153
150
  W({
154
151
  index: l,
@@ -159,14 +156,12 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
159
156
  });
160
157
  };
161
158
  I(b, (e) => {
162
- var o, l;
163
159
  if (e === null)
164
160
  return;
165
- const t = (l = (o = s.value) == null ? void 0 : o[e]) == null ? void 0 : l.format;
161
+ const t = s.value?.[e]?.format;
166
162
  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(
163
+ }), I([m, a], () => {
164
+ m.value === i.value?.temporalType && a.value === i.value?.category ? R(
170
165
  i.value.format,
171
166
  i.value.temporalType,
172
167
  i.value.category
@@ -174,49 +169,49 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
174
169
  });
175
170
  const _ = f(!1);
176
171
  return J(async () => {
177
- if (!c.allFormats)
172
+ if (!d.allFormats)
178
173
  return;
179
174
  const e = [
180
175
  "RECENT",
181
176
  "STANDARD",
182
177
  "EUROPEAN",
183
178
  "AMERICAN"
184
- ], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
179
+ ], t = d.allFormats.filter((o) => d.initialSelectedPattern === o.format).filter(
185
180
  (o) => (
186
181
  // if the type switch is hidden, filter to only formats with the same type
187
- c.selectedType === o.temporalType || c.showTypeSwitch
182
+ d.selectedType === o.temporalType || d.showTypeSwitch
188
183
  )
189
184
  ).sort((o, l) => {
190
- const d = e.indexOf(o.category), z = e.indexOf(l.category);
191
- return d - z;
185
+ const v = e.indexOf(o.category), z = e.indexOf(l.category);
186
+ return v - z;
192
187
  });
193
188
  if (t.length > 0) {
194
- const o = t[0].format, l = t[0].temporalType, d = t[0].category;
195
- await R(o, l, d);
189
+ const o = t[0].format, l = t[0].temporalType, v = t[0].category;
190
+ await R(o, l, v);
196
191
  const z = s.value.findIndex(
197
192
  (q) => q.format === o
198
193
  );
199
194
  i.value = {
200
195
  format: o,
201
196
  index: z,
202
- category: d,
197
+ category: v,
203
198
  temporalType: l
204
199
  };
205
200
  }
206
201
  N(() => _.value = !0);
207
- }), Q(() => _.value = !1), (e, t) => (p(), P(E(ue), {
202
+ }), Q(() => _.value = !1), (e, t) => (u(), P(E(ue), {
208
203
  active: _.value,
209
204
  "onUpdate:active": t[3] || (t[3] = (o) => _.value = o),
210
205
  "initial-focus": () => r.value ?? !1
211
206
  }, {
212
207
  default: X(() => [
213
- v("div", he, [
214
- e.showTypeSwitch ? (p(), P($, {
208
+ p("div", he, [
209
+ e.showTypeSwitch ? (u(), P($, {
215
210
  key: 0,
216
211
  id: "selectedFormatType",
217
212
  ref: "typeSwitchRef",
218
- modelValue: u.value,
219
- "onUpdate:modelValue": t[0] || (t[0] = (o) => u.value = o),
213
+ modelValue: m.value,
214
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => m.value = o),
220
215
  compact: "",
221
216
  "possible-values": D.value,
222
217
  class: "filter-switch"
@@ -230,8 +225,8 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
230
225
  "possible-values": M.value,
231
226
  class: "filter-switch"
232
227
  }, null, 8, ["modelValue", "possible-values"]),
233
- v("div", Te, [
234
- v("div", {
228
+ p("div", Te, [
229
+ p("div", {
235
230
  id: "dateFormats",
236
231
  ref_key: "formatContainerRef",
237
232
  ref: r,
@@ -242,25 +237,22 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
242
237
  onKeydown: t[2] || (t[2] = //@ts-ignore
243
238
  (...o) => E(S) && E(S)(...o))
244
239
  }, [
245
- s.value === null ? (p(), y("div", ge, [
240
+ s.value === null ? (u(), y("div", ge, [
246
241
  k(pe, { class: "loading-spinner" })
247
- ])) : s.value.length === 0 ? (p(), y("div", we, " No formats available ")) : (p(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => {
248
- var d;
249
- return p(), y("div", {
250
- key: T(o),
251
- ref_for: !0,
252
- ref: K(o),
253
- class: V([{
254
- highlighted: l === E(b),
255
- applied: l === ((d = i.value) == null ? void 0 : d.index) && o.category === i.value.category && o.temporalType === i.value.temporalType
256
- }, "single-format"]),
257
- role: "menuitem",
258
- onClick: () => n("commit", w(o))
259
- }, [
260
- v("span", xe, B(o.format), 1),
261
- v("span", Fe, B(o.example), 1)
262
- ], 10, Ee);
263
- }), 128))
242
+ ])) : s.value.length === 0 ? (u(), y("div", we, " No formats available ")) : (u(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => (u(), y("div", {
243
+ key: T(o),
244
+ ref_for: !0,
245
+ ref: K(o),
246
+ class: V([{
247
+ highlighted: l === E(b),
248
+ applied: l === i.value?.index && o.category === i.value.category && o.temporalType === i.value.temporalType
249
+ }, "single-format"]),
250
+ role: "menuitem",
251
+ onClick: () => n("commit", w(o))
252
+ }, [
253
+ p("span", xe, B(o.format), 1),
254
+ p("span", Fe, B(o.example), 1)
255
+ ], 10, Ee))), 128))
264
256
  ], 36)
265
257
  ])
266
258
  ])
@@ -297,7 +289,7 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
297
289
  }),
298
290
  emits: ["update:modelValue"],
299
291
  setup(x) {
300
- const g = x, n = oe(x, "modelValue"), c = F({
292
+ const g = x, n = oe(x, "modelValue"), d = F({
301
293
  get: () => n.value.format,
302
294
  set: (r) => {
303
295
  n.value = {
@@ -305,7 +297,7 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
305
297
  format: r
306
298
  };
307
299
  }
308
- }), M = "Format like 'yyyy-MM-dd'", D = F(() => g.isValid), i = f(null), h = f(null), a = f(!1), u = (r) => {
300
+ }), M = "Format like 'yyyy-MM-dd'", D = F(() => g.isValid), i = f(null), h = f(null), a = f(!1), m = (r) => {
309
301
  n.value = r, a.value = !1;
310
302
  };
311
303
  se(h, () => a.value = !1, {
@@ -316,48 +308,48 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
316
308
  h,
317
309
  {
318
310
  middleware: [
319
- ie({
311
+ re({
320
312
  mainAxis: 2,
321
313
  crossAxis: 0
322
314
  }),
323
- re(),
324
- de({
315
+ de(),
316
+ ce({
325
317
  mainAxis: !0,
326
318
  crossAxis: !1
327
319
  })
328
320
  ],
329
321
  placement: "top-end",
330
- whileElementsMounted: ce
322
+ whileElementsMounted: ie
331
323
  }
332
324
  );
333
- return (r, m) => (p(), y("div", null, [
334
- v("div", {
325
+ return (r, c) => (u(), y("div", null, [
326
+ p("div", {
335
327
  class: V(["wrapper", { disabled: r.disabled, compact: r.compact }])
336
328
  }, [
337
- v("span", Me, [
338
- le(v("input", {
339
- "onUpdate:modelValue": m[0] || (m[0] = (T) => c.value = T),
329
+ p("span", Me, [
330
+ le(p("input", {
331
+ "onUpdate:modelValue": c[0] || (c[0] = (T) => d.value = T),
340
332
  type: "text",
341
333
  disabled: r.disabled,
342
334
  placeholder: M,
343
335
  spellcheck: "false",
344
- onFocus: m[1] || (m[1] = (T) => a.value = !1)
336
+ onFocus: c[1] || (c[1] = (T) => a.value = !1)
345
337
  }, null, 40, De), [
346
- [ae, c.value]
338
+ [ae, d.value]
347
339
  ]),
348
- D.value ? C("", !0) : (p(), y("span", ze)),
349
- v("button", {
340
+ D.value ? C("", !0) : (u(), y("span", ze)),
341
+ p("button", {
350
342
  ref_key: "togglePopoverButtonRef",
351
343
  ref: i,
352
344
  class: V(["trigger-popover-button", { active: a.value }]),
353
345
  disabled: r.disabled,
354
- onClick: m[2] || (m[2] = (T) => a.value = !a.value)
346
+ onClick: c[2] || (c[2] = (T) => a.value = !a.value)
355
347
  }, [
356
348
  k(E(ye))
357
349
  ], 10, Ie)
358
350
  ])
359
351
  ], 2),
360
- a.value ? (p(), y("div", {
352
+ a.value ? (u(), y("div", {
361
353
  key: 0,
362
354
  ref_key: "floatingPopoverRef",
363
355
  ref: h,
@@ -369,8 +361,8 @@ const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-con
369
361
  "initial-selected-pattern": n.value.format,
370
362
  "selected-type": n.value.temporalType,
371
363
  "show-type-switch": r.showTypeSwitchInPopover,
372
- onCommit: u,
373
- onCancel: m[3] || (m[3] = (T) => a.value = !1)
364
+ onCommit: m,
365
+ onCancel: c[3] || (c[3] = (T) => a.value = !1)
374
366
  }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
375
367
  ], 4)) : C("", !0)
376
368
  ]));
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, computed as o, openBlock as c, createBlock as f, unref as r } from "vue";
2
- import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
3
- import { D as v } from "./DateTimeFormatInput-bO1zHUyp.js";
1
+ import { defineComponent as p, computed as o, createBlock as c, openBlock as f, unref as r } from "vue";
2
+ import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
+ import { D as v } from "./DateTimeFormatInput-BhLQzC-P.js";
4
4
  const b = /* @__PURE__ */ p({
5
5
  __name: "DateTimeFormatPickerControl",
6
6
  props: {
@@ -15,17 +15,14 @@ const b = /* @__PURE__ */ p({
15
15
  setup(s) {
16
16
  const a = s, t = o(
17
17
  () => a.control.uischema
18
- ), d = o(() => t.value.options), m = o(() => {
19
- var e;
20
- return (e = d.value) == null ? void 0 : e.allowedFormats;
21
- }), i = F(t, "dateTimeFormats"), l = o({
18
+ ), d = o(() => t.value.options), m = o(() => d.value?.allowedFormats), i = F(t, "dateTimeFormats"), l = o({
22
19
  get: () => ({
23
20
  format: a.control.data,
24
21
  temporalType: "DATE"
25
22
  }),
26
23
  set: (e) => a.changeValue(e.format)
27
24
  });
28
- return (e, n) => (c(), f(r(v), {
25
+ return (e, n) => (f(), c(r(v), {
29
26
  id: e.labelForId,
30
27
  modelValue: l.value,
31
28
  "onUpdate:modelValue": n[0] || (n[0] = (u) => l.value = u),
@@ -1,7 +1,7 @@
1
- import { defineComponent as v, computed as t, openBlock as T, createElementBlock as V, createVNode as r, unref as d } from "vue";
2
- import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
3
- import { V as h } from "./ValueSwitch-CUYV7v67.js";
4
- import { D as y } from "./DateTimeFormatInput-bO1zHUyp.js";
1
+ import { defineComponent as v, computed as t, createElementBlock as T, openBlock as V, createVNode as r, unref as d } from "vue";
2
+ import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
+ import { V as h } from "./ValueSwitch-W4y1YvNM.js";
4
+ import { D as y } from "./DateTimeFormatInput-BhLQzC-P.js";
5
5
  const D = ["id"], _ = /* @__PURE__ */ v({
6
6
  __name: "DateTimeFormatPickerWithTypeControl",
7
7
  props: {
@@ -16,10 +16,7 @@ const D = ["id"], _ = /* @__PURE__ */ v({
16
16
  setup(m) {
17
17
  const l = m, i = t(
18
18
  () => l.control.uischema
19
- ), u = t(() => i.value.options), p = t(() => {
20
- var e;
21
- return (e = u.value) == null ? void 0 : e.allowedFormats;
22
- }), c = F(i, "dateTimeFormats"), f = [
19
+ ), u = t(() => i.value.options), p = t(() => u.value?.allowedFormats), c = F(i, "dateTimeFormats"), f = [
23
20
  {
24
21
  id: "DATE",
25
22
  text: "Date"
@@ -50,7 +47,7 @@ const D = ["id"], _ = /* @__PURE__ */ v({
50
47
  };
51
48
  }
52
49
  });
53
- return (e, a) => (T(), V("div", {
50
+ return (e, a) => (V(), T("div", {
54
51
  id: e.labelForId,
55
52
  class: "control-container"
56
53
  }, [