@knime/jsonforms 1.1.0 → 1.2.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 (84) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AnyOfTwinlist-DZZsdDbi.js → AnyOfTwinlist-C9PjOPWq.js} +1 -1
  3. package/dist/{BaseButton-DrqwaFu5.js → BaseButton-DsgRdHJ1.js} +1 -1
  4. package/dist/{Button-CFg6VAL2.js → Button-Dl7sS94Y.js} +2 -2
  5. package/dist/{Checkbox-BOrZsqeQ.js → Checkbox-DIhOb7S8.js} +1 -1
  6. package/dist/{CheckboxControl-CNKTK-YM.js → CheckboxControl-cJBJv01E.js} +3 -3
  7. package/dist/{Checkboxes-B4Ulx7pj.js → Checkboxes-7iI-5ngD.js} +2 -2
  8. package/dist/{CheckboxesControl-OnmSzBXg.js → CheckboxesControl-Bu0Jmr1-.js} +2 -2
  9. package/dist/{ColumnFilter-jEHzE7ve.js → ColumnFilter-D3FVDu7O.js} +1 -1
  10. package/dist/{ColumnSelect-JyCZ-rAz.js → ColumnSelect-CQsyASYZ.js} +3 -3
  11. package/dist/{ComboBoxControl-jhqK8iEu.js → ComboBoxControl-8kpO_iC2.js} +3 -3
  12. package/dist/{DateControl-B-IsBV0G.js → DateControl-D-8E4A0f.js} +1 -1
  13. package/dist/{DateTimeControl-CDOxlTDm.js → DateTimeControl-BvJz1e8_.js} +1 -1
  14. package/dist/DateTimeFormatPickerControl-C44lLlEw.js +392 -0
  15. package/dist/{DateTimeInput-B__pWumE.js → DateTimeInput-B_2U3C4E.js} +7 -7
  16. package/dist/{Dropdown-C5rYAL4X.js → Dropdown-CtsETtJA.js} +4 -4
  17. package/dist/{DropdownControl-Cps-ye39.js → DropdownControl-DrPJ62Bv.js} +1 -1
  18. package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-VwOQiIqd.js → DropdownControl.vue_vue_type_script_setup_true_lang-BoyqWufG.js} +6 -6
  19. package/dist/{ErrorMessage-DQmu89vK.js → ErrorMessage-Czbh-f6c.js} +1 -1
  20. package/dist/{FunctionButton-CoEVwv2a.js → FunctionButton-23mIlhHT.js} +2 -2
  21. package/dist/{HorizontalLayout-C1jEsu7Z.js → HorizontalLayout-B_RDW-Km.js} +1 -1
  22. package/dist/{InputField-AQncJ5mU.js → InputField-XoL66ppv.js} +1 -1
  23. package/dist/{IntegerControl-DHgzOyZq.js → IntegerControl-C9ehPl4V.js} +1 -1
  24. package/dist/{IntervalControl-CP9EPAJP.js → IntervalControl-Cs5JFPtt.js} +122 -139
  25. package/dist/{MultiselectListBox-BDdUeMac.js → MultiselectListBox-DydoHVsu.js} +1 -1
  26. package/dist/{NameFilter-CWXVecGl.js → NameFilter-BrDeWwMP.js} +1 -1
  27. package/dist/{NumberControl-qTuSqpCp.js → NumberControl-DqQHfomK.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-yoEPGthe.js → NumberControlBase.vue_vue_type_script_setup_true_lang-By2fKgXj.js} +2 -2
  29. package/dist/{NumberInput-CVCd8AxP.js → NumberInput-DopSN3-F.js} +1 -1
  30. package/dist/{OneOfDropdown-CMHSVr8y.js → OneOfDropdown-DBjx8Uut.js} +1 -1
  31. package/dist/{RadioControl-CDc-_LYd.js → RadioControl-giJps4zH.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-ByNJaD_m.js → RadioControlBase.vue_vue_type_script_setup_true_lang-9hAA-1uc.js} +2 -2
  33. package/dist/{RichTextControl-DGVuz5EN.js → RichTextControl-BGBsvyFa.js} +2460 -2509
  34. package/dist/{SectionLayout-Db29BQYV.js → SectionLayout-WUJ_MPUD.js} +7 -7
  35. package/dist/{SimpleButtonControl-CB4Y5yaX.js → SimpleButtonControl-Bof-wRq0.js} +2 -2
  36. package/dist/{SimpleTwinlistControl-D6pM3Frb.js → SimpleTwinlistControl-B7_5VZBp.js} +2 -2
  37. package/dist/{SortListControl-CcM9XCOn.js → SortListControl-CiXRkyC_.js} +8 -8
  38. package/dist/{TextAreaControl-BKQr3ZHo.js → TextAreaControl-Cc3KHMGW.js} +1 -1
  39. package/dist/{TextControl-BldyUpw4.js → TextControl-CICn5_ts.js} +1 -1
  40. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-PQebag92.js → TextControl.vue_vue_type_script_setup_true_lang-zZnarw91.js} +3 -3
  41. package/dist/{TimeControl-CamvR05G.js → TimeControl-nrDjeXuk.js} +1 -1
  42. package/dist/Tooltip-HI4PpGqr.js +24 -0
  43. package/dist/{TwinlistControl-BCM5Rueb.js → TwinlistControl-Cq8jLHoR.js} +8 -8
  44. package/dist/{TwinlistLoadingInfo-H4-lMsJ_.js → TwinlistLoadingInfo-eoTNPvcF.js} +6 -6
  45. package/dist/{ValueSwitch-C2oXO3Ex.js → ValueSwitch-DuhDiUEA.js} +1 -1
  46. package/dist/{ValueSwitchControl-CxwKZ3_i.js → ValueSwitchControl-BF8-DGwt.js} +1 -1
  47. package/dist/{VerticalLayout-FeaTQ44Q.js → VerticalLayout-ValJNnLe.js} +2 -2
  48. package/dist/{VerticalLayoutBase-DqZzCLUD.js → VerticalLayoutBase-C3qB7UI2.js} +1 -1
  49. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js} +1788 -1764
  50. package/dist/{_baseAssignValue-vwpxCmUr.js → _baseAssignValue-DOVkVeo5.js} +1 -1
  51. package/dist/{_baseEach-4Fnopd4x.js → _baseEach-Bv6ruBhc.js} +2 -2
  52. package/dist/{_baseIsEqual-Bi_edlXd.js → _baseIsEqual-9U8Drd5p.js} +3 -3
  53. package/dist/{_baseIteratee-bVzVDPMQ.js → _baseIteratee-CFj6YFWe.js} +3 -3
  54. package/dist/{_getTag-C-V1gX3V.js → _getTag-DMEK5a4t.js} +3 -3
  55. package/dist/{isSymbol-DBYB6PEp.js → isSymbol-yR531Pf2.js} +1 -1
  56. package/dist/knime-jsonforms.css +1 -1
  57. package/dist/knime-jsonforms.js +6 -6
  58. package/dist/{magic-string.es-BxFAQdj-.js → magic-string.es-BrNu5jkk.js} +1 -1
  59. package/dist/src/constants/inputFormats.d.ts +1 -0
  60. package/dist/src/higherOrderComponents/control/addLabel.d.ts +8 -2
  61. package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
  62. package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
  63. package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
  64. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +5 -0
  65. package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
  66. package/dist/src/renderers/defaultRenderers.d.ts +23 -51
  67. package/dist/src/renderers/fallbackRenderers.d.ts +5 -3
  68. package/dist/src/renderers/integerRenderer.d.ts +1 -3
  69. package/dist/src/renderers/intervalRenderer.d.ts +1 -3
  70. package/dist/src/renderers/localDateRenderer.d.ts +1 -3
  71. package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
  72. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
  73. package/dist/src/renderers/numberRenderer.d.ts +1 -3
  74. package/dist/src/renderers/radioRenderer.d.ts +1 -3
  75. package/dist/src/renderers/richTextRenderer.d.ts +1 -3
  76. package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
  77. package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
  78. package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
  79. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +12 -0
  80. package/dist/{svgWithTitle-CnaxBHlP.js → svgWithTitle-vY-nYdFJ.js} +1 -1
  81. package/dist/testing.js +4 -4
  82. package/dist/{toString-FiiQWhxG.js → toString-BzOQsbuj.js} +2 -2
  83. package/dist/useDropdownNavigation-D6ZenVxz.js +55 -0
  84. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b9fbc0d: Add dateTimeFormat renderer.
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 4ea5008: Determine asyncSetup when wrapping async controls with addLabel
14
+
3
15
  ## 1.1.0
4
16
 
5
17
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as n, openBlock as r, createBlock as t, mergeProps as p } from "vue";
2
2
  import { o as a } from "./index-C1PjXAJX.js";
3
- import s from "./SimpleTwinlistControl-D6pM3Frb.js";
3
+ import s from "./SimpleTwinlistControl-B7_5VZBp.js";
4
4
  const f = /* @__PURE__ */ n({
5
5
  __name: "AnyOfTwinlist",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, useSlots as l, h as a, getCurrentInstance as c, openBlock as f, createBlock as p, resolveDynamicComponent as m, mergeProps as d, withCtx as h, renderSlot as C } from "vue";
2
- import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
3
  const u = () => {
4
4
  const t = c();
5
5
  return t == null ? void 0 : t.appContext.app;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as r, withCtx as l, renderSlot as d } from "vue";
2
- import { B as i } from "./BaseButton-DrqwaFu5.js";
3
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { B as i } from "./BaseButton-DsgRdHJ1.js";
3
+ import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
4
  const c = o({
5
5
  name: "Button",
6
6
  components: {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as i, createElementBlock as s, normalizeClass as o, createElementVNode as d, renderSlot as u } from "vue";
2
- import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
3
  const r = {
4
4
  name: "Checkbox",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n, ref as s, openBlock as d, createElementBlock as u, createVNode as l, unref as p, withCtx as i, createTextVNode as c, toDisplayString as m, renderSlot as t } from "vue";
2
- import { E as v } from "./ErrorMessage-DQmu89vK.js";
3
- import { C as b } from "./Checkbox-BOrZsqeQ.js";
4
- import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { E as v } from "./ErrorMessage-Czbh-f6c.js";
3
+ import { C as b } from "./Checkbox-DIhOb7S8.js";
4
+ import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
5
5
  const h = /* @__PURE__ */ n({
6
6
  __name: "CheckboxControl",
7
7
  props: {
@@ -1,6 +1,6 @@
1
- import { C as c } from "./Checkbox-BOrZsqeQ.js";
1
+ import { C as c } from "./Checkbox-DIhOb7S8.js";
2
2
  import { resolveComponent as u, openBlock as o, createElementBlock as s, normalizeClass as f, Fragment as m, renderList as h, createBlock as p, withCtx as x, createTextVNode as b, toDisplayString as V } from "vue";
3
- import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.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 c, onMounted as r, openBlock as d, createBlock as p, unref as u, createCommentVNode as m } from "vue";
2
2
  import { o as i } from "./index-C1PjXAJX.js";
3
- import { C as b } from "./Checkboxes-B4Ulx7pj.js";
4
- import { _ as h } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { C as b } from "./Checkboxes-7iI-5ngD.js";
4
+ import { _ as h } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
5
5
  const f = /* @__PURE__ */ t({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, openBlock as o, createBlock as t, mergeProps as l } from "vue";
2
- import r from "./TwinlistControl-BCM5Rueb.js";
2
+ import r from "./TwinlistControl-Cq8jLHoR.js";
3
3
  const i = /* @__PURE__ */ e({
4
4
  __name: "ColumnFilter",
5
5
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as P, createBlock as g, mergeProps as C, unref as S, withCtx as u, renderSlot as p } from "vue";
2
2
  import { w as V } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
3
- import { k as _, u as D } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
4
- import { _ as F } from "./DropdownControl.vue_vue_type_script_setup_true_lang-VwOQiIqd.js";
5
- import { b as $ } from "./_baseIsEqual-Bi_edlXd.js";
3
+ import { k as _, u as D } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
+ import { _ as F } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BoyqWufG.js";
5
+ import { b as $ } from "./_baseIsEqual-9U8Drd5p.js";
6
6
  function E(s, t) {
7
7
  return $(s, t);
8
8
  }
@@ -1,12 +1,12 @@
1
1
  import { resolveComponent as b, openBlock as d, createElementBlock as V, normalizeClass as w, withKeys as u, withModifiers as a, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as f, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as C, withCtx as O, createTextVNode as x, vShow as P, defineComponent as M, vModelText as z, computed as v, ref as B, onMounted as R, unref as N, createCommentVNode as U } from "vue";
2
2
  import { w as L } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
3
- import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
4
  import { C as K } from "./close-h7XT0ja0.js";
5
- import { F as j } from "./FunctionButton-CoEVwv2a.js";
5
+ import { F as j } from "./FunctionButton-23mIlhHT.js";
6
6
  /* empty css */
7
7
  import { u as W } from "./index-Cp7Xre_V.js";
8
8
  import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
9
- import { C as X } from "./Checkbox-BOrZsqeQ.js";
9
+ import { C as X } from "./Checkbox-DIhOb7S8.js";
10
10
  import { c as q } from "./createMissingItem-B00Kg95q.js";
11
11
  const y = 1, J = 28.5, Q = 8, Y = {
12
12
  name: "Multiselect",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
- import { D as t } from "./DateTimeInput-B__pWumE.js";
2
+ import { D as t } from "./DateTimeInput-B_2U3C4E.js";
3
3
  const i = /* @__PURE__ */ o({
4
4
  __name: "DateControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as p, createBlock as h, unref as v } from "vue";
2
- import { D as w } from "./DateTimeInput-B__pWumE.js";
2
+ import { D as w } from "./DateTimeInput-B_2U3C4E.js";
3
3
  const F = /* @__PURE__ */ r({
4
4
  __name: "DateTimeControl",
5
5
  props: {
@@ -0,0 +1,392 @@
1
+ import { openBlock as p, createElementBlock as T, createElementVNode as c, defineComponent as I, computed as F, ref as _, reactive as J, watch as A, onMounted as Q, createVNode as u, withCtx as x, withKeys as N, withModifiers as X, normalizeStyle as L, unref as b, Fragment as Y, renderList as ee, normalizeClass as z, toDisplayString as R, createTextVNode as te, nextTick as P, pushScopeId as oe, popScopeId as ae, mergeModels as B, useModel as le, withDirectives as se, vModelText as ne, createCommentVNode as O, createBlock as ie } from "vue";
2
+ import { n as M, _ as K, u as re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
+ import { o as de } from "./index-Cp7Xre_V.js";
4
+ import { u as ce, o as me, s as ue, f as pe, a as fe } from "./floating-ui.vue.esm-CDpUY3-t.js";
5
+ import { u as ve } from "./useDropdownNavigation-D6ZenVxz.js";
6
+ import { F as ye } from "./FunctionButton-23mIlhHT.js";
7
+ import { L as he } from "./svgWithTitle-vY-nYdFJ.js";
8
+ import { T as Te } from "./Tooltip-HI4PpGqr.js";
9
+ import { V as U } from "./ValueSwitch-DuhDiUEA.js";
10
+ const ge = {
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ fill: "none",
13
+ "stroke-linejoin": "round",
14
+ viewBox: "0 0 32 32"
15
+ }, _e = /* @__PURE__ */ c("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), Fe = [
19
+ _e
20
+ ];
21
+ function we(m, E) {
22
+ return p(), T("svg", ge, [...Fe]);
23
+ }
24
+ const be = { render: we }, Ee = (m) => (oe("data-v-8fe9c5e5"), m = m(), ae(), m), De = { class: "popover" }, xe = /* @__PURE__ */ Ee(() => /* @__PURE__ */ c("h2", { class: "title" }, "Date & Time Formats", -1)), ke = { class: "switch-with-title" }, Ve = { class: "switch-with-title" }, Ce = { class: "date-format-input" }, Me = {
25
+ key: 0,
26
+ class: "no-formats-available"
27
+ }, ze = {
28
+ key: 1,
29
+ class: "no-formats-available"
30
+ }, Ie = ["onClick", "onDblclick"], Se = { class: "format-pattern" }, $e = { class: "format-preview" }, Ae = { class: "commit-button-container" }, H = 1, Ne = /* @__PURE__ */ I({
31
+ __name: "DateTimeFormatPickerPopover",
32
+ props: {
33
+ allFormats: {},
34
+ allowedTypes: {},
35
+ initialSelectedPattern: {}
36
+ },
37
+ emits: ["commit", "cancel"],
38
+ setup(m, { emit: E }) {
39
+ const n = E, f = m, v = [
40
+ {
41
+ id: "DATE",
42
+ text: "Date"
43
+ },
44
+ {
45
+ id: "TIME",
46
+ text: "Time"
47
+ },
48
+ {
49
+ id: "DATE_TIME",
50
+ text: "Date & Time"
51
+ },
52
+ {
53
+ id: "ZONED_DATE_TIME",
54
+ text: "Date & Time & Zone"
55
+ }
56
+ ], i = F(
57
+ () => v.filter(
58
+ (e) => f.allowedTypes.includes(e.id)
59
+ )
60
+ ), k = F(() => [
61
+ {
62
+ id: "RECENT",
63
+ text: "Recent"
64
+ },
65
+ {
66
+ id: "STANDARD",
67
+ text: "Standard"
68
+ },
69
+ {
70
+ id: "EUROPEAN",
71
+ text: "European"
72
+ },
73
+ {
74
+ id: "AMERICAN",
75
+ text: "United States"
76
+ }
77
+ ]), y = _(null), D = F(
78
+ () => y.value ? "" : "No format selected"
79
+ ), l = _("DATE"), h = _("RECENT"), s = F(() => {
80
+ var o;
81
+ const e = h.value, t = l.value;
82
+ return ((o = f.allFormats) == null ? void 0 : o.filter(
83
+ (a) => a.category === e && a.temporalType === t
84
+ )) ?? null;
85
+ }), r = _(null), d = J({}), g = (e) => `${e.format}-${e.category}-${e.temporalType}`, Z = (e) => (t) => {
86
+ d[g(e)] = t;
87
+ }, { currentIndex: V, onKeydown: S, resetNavigation: j } = ve({
88
+ keepOpenedOnTab: !0,
89
+ getFirstElement: () => ({
90
+ index: 0,
91
+ onClick: () => n("commit", s.value[0].format)
92
+ }),
93
+ getLastElement: () => {
94
+ const e = s.value.length - 1;
95
+ return {
96
+ index: e,
97
+ onClick: () => n("commit", s.value[e].format)
98
+ };
99
+ },
100
+ getNextElement: (e, t) => {
101
+ if (e = e === null || e === -1 ? null : e, t === 1) {
102
+ const a = ((e ?? -1) + 1) % s.value.length;
103
+ return {
104
+ index: a,
105
+ onClick: () => n("commit", s.value[a].format)
106
+ };
107
+ } else {
108
+ const a = ((e ?? 0) - 1 + s.value.length) % s.value.length;
109
+ return {
110
+ index: a,
111
+ onClick: () => n("commit", s.value[a].format)
112
+ };
113
+ }
114
+ },
115
+ close: () => {
116
+ n("cancel");
117
+ }
118
+ }), W = (e) => {
119
+ const t = e.parentElement;
120
+ if (t && t.scrollHeight > t.clientHeight) {
121
+ const o = t.offsetTop + H, a = t.clientHeight + t.scrollTop, w = e.offsetTop + e.offsetHeight - o;
122
+ w > a ? t.scrollTop = w - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
123
+ }
124
+ }, $ = async (e, t, o) => {
125
+ l.value = t ?? l.value, h.value = o ?? h.value, await P(), y.value = e;
126
+ const a = d[`${e}-${h.value}-${l.value}`];
127
+ a && W(a);
128
+ const w = s.value.findIndex(
129
+ (C) => C.format === e
130
+ );
131
+ V.value = w;
132
+ }, q = async () => {
133
+ var e;
134
+ await P(), (e = r.value) == null || e.focus();
135
+ };
136
+ A(V, (e) => {
137
+ if (e === null)
138
+ return;
139
+ const t = s.value[e];
140
+ $(t.format, t.temporalType, t.category);
141
+ }), A([l, h], () => {
142
+ y.value = null, j();
143
+ });
144
+ const G = _(!1);
145
+ return Q(() => {
146
+ if (!f.allFormats)
147
+ return;
148
+ const e = [
149
+ "RECENT",
150
+ "STANDARD",
151
+ "EUROPEAN",
152
+ "AMERICAN"
153
+ ], t = f.allFormats.filter((o) => f.initialSelectedPattern === o.format).sort((o, a) => {
154
+ const w = e.indexOf(o.category), C = e.indexOf(a.category);
155
+ return w - C;
156
+ });
157
+ t.length > 0 && $(
158
+ t[0].format,
159
+ t[0].temporalType,
160
+ t[0].category
161
+ ), q(), setTimeout(() => {
162
+ G.value = !0;
163
+ }, 0);
164
+ }), (e, t) => (p(), T("div", De, [
165
+ xe,
166
+ c("div", ke, [
167
+ u(M, {
168
+ class: "control-title",
169
+ text: "Type",
170
+ for: "selectedFormatType"
171
+ }, {
172
+ default: x(() => [
173
+ u(U, {
174
+ id: "selectedFormatType",
175
+ modelValue: l.value,
176
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
177
+ compact: "",
178
+ "possible-values": i.value,
179
+ onKeydown: t[1] || (t[1] = N(X((o) => n("cancel"), ["shift"]), ["tab"]))
180
+ }, null, 8, ["modelValue", "possible-values"])
181
+ ]),
182
+ _: 1
183
+ })
184
+ ]),
185
+ c("div", Ve, [
186
+ u(M, {
187
+ class: "control-title",
188
+ text: "Standard",
189
+ for: "selectedFormatStandard"
190
+ }, {
191
+ default: x(() => [
192
+ u(U, {
193
+ id: "selectedFormatStandard",
194
+ modelValue: h.value,
195
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => h.value = o),
196
+ compact: "",
197
+ "possible-values": k.value
198
+ }, null, 8, ["modelValue", "possible-values"])
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ c("div", Ce, [
204
+ u(M, {
205
+ class: "control-title",
206
+ text: "Date formats",
207
+ for: "dateFormats"
208
+ }, {
209
+ default: x(() => [
210
+ c("div", {
211
+ id: "dateFormats",
212
+ ref_key: "formatContainerRef",
213
+ ref: r,
214
+ class: "formats-container",
215
+ style: L({ "--formats-container-border-width": H + "px" }),
216
+ tabindex: "0",
217
+ role: "menu",
218
+ onKeydown: t[3] || (t[3] = //@ts-ignore
219
+ (...o) => b(S) && b(S)(...o))
220
+ }, [
221
+ s.value === null ? (p(), T("div", Me, [
222
+ u(he, { class: "loading-spinner" })
223
+ ])) : s.value.length === 0 ? (p(), T("div", ze, " No formats available ")) : (p(!0), T(Y, { key: 2 }, ee(s.value, (o, a) => (p(), T("div", {
224
+ key: g(o),
225
+ ref_for: !0,
226
+ ref: Z(o),
227
+ class: z([{ selected: a === b(V) }, "single-format"]),
228
+ role: "menuitem",
229
+ onClick: (w) => V.value = a,
230
+ onDblclick: () => n("commit", o.format)
231
+ }, [
232
+ c("span", Se, R(o.format), 1),
233
+ c("span", $e, R(o.example), 1)
234
+ ], 42, Ie))), 128))
235
+ ], 36)
236
+ ]),
237
+ _: 1
238
+ })
239
+ ]),
240
+ c("div", Ae, [
241
+ u(Te, { text: D.value }, {
242
+ default: x(() => [
243
+ u(ye, {
244
+ primary: "",
245
+ class: "commit-button",
246
+ disabled: !y.value,
247
+ onKeydown: t[4] || (t[4] = N((o) => o.shiftKey || n("cancel"), ["tab"])),
248
+ onClick: t[5] || (t[5] = () => {
249
+ n("commit", y.value);
250
+ })
251
+ }, {
252
+ default: x(() => [
253
+ te("Set format")
254
+ ]),
255
+ _: 1
256
+ }, 8, ["disabled"])
257
+ ]),
258
+ _: 1
259
+ }, 8, ["text"])
260
+ ])
261
+ ]));
262
+ }
263
+ }), Re = /* @__PURE__ */ K(Ne, [["__scopeId", "data-v-8fe9c5e5"]]), Pe = { class: "input-fields" }, Be = ["disabled"], Oe = {
264
+ key: 0,
265
+ class: "invalid-marker"
266
+ }, Ue = ["disabled"], He = {}, Le = /* @__PURE__ */ I({
267
+ ...He,
268
+ __name: "DateTimeFormatInput",
269
+ props: /* @__PURE__ */ B({
270
+ disabled: { type: Boolean, default: !1 },
271
+ compact: { type: Boolean, default: !1 },
272
+ isValid: { type: Boolean, default: !0 },
273
+ allDefaultFormats: {},
274
+ allowedTypes: { default: () => [
275
+ "DATE",
276
+ "TIME",
277
+ "DATE_TIME",
278
+ "ZONED_DATE_TIME"
279
+ ] }
280
+ }, {
281
+ modelValue: {
282
+ default: "yyyy-MM-dd"
283
+ },
284
+ modelModifiers: {}
285
+ }),
286
+ emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
287
+ setup(m, { emit: E }) {
288
+ const n = E, f = m, v = le(m, "modelValue"), i = "Format like 'yyyy-MM-dd'", k = F(() => f.isValid), y = _(null), D = _(null), l = _(!1), h = (r) => {
289
+ v.value = r, l.value = !1, n("committed", r);
290
+ };
291
+ de(D, () => l.value = !1, {
292
+ ignore: [y]
293
+ });
294
+ const { floatingStyles: s } = ce(
295
+ y,
296
+ D,
297
+ {
298
+ middleware: [
299
+ me({
300
+ mainAxis: 2,
301
+ crossAxis: 0
302
+ }),
303
+ ue(),
304
+ pe({
305
+ mainAxis: !0,
306
+ crossAxis: !1
307
+ })
308
+ ],
309
+ placement: "top-end",
310
+ whileElementsMounted: fe
311
+ }
312
+ );
313
+ return (r, d) => (p(), T("div", null, [
314
+ c("div", {
315
+ class: z(["wrapper", { disabled: r.disabled, compact: r.compact }])
316
+ }, [
317
+ c("span", Pe, [
318
+ se(c("input", {
319
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => v.value = g),
320
+ type: "text",
321
+ disabled: r.disabled,
322
+ placeholder: i,
323
+ spellcheck: "false",
324
+ onFocus: d[1] || (d[1] = (g) => l.value = !1),
325
+ onChange: d[2] || (d[2] = (g) => r.$emit("committed", v.value))
326
+ }, null, 40, Be), [
327
+ [ne, v.value]
328
+ ]),
329
+ k.value ? O("", !0) : (p(), T("span", Oe)),
330
+ c("button", {
331
+ ref_key: "togglePopoverButtonRef",
332
+ ref: y,
333
+ class: z(["trigger-popover-button", { active: l.value }]),
334
+ disabled: r.disabled,
335
+ onClick: d[3] || (d[3] = (g) => l.value = !l.value)
336
+ }, [
337
+ u(b(be))
338
+ ], 10, Ue)
339
+ ])
340
+ ], 2),
341
+ l.value ? (p(), T("div", {
342
+ key: 0,
343
+ ref_key: "floatingPopoverRef",
344
+ ref: D,
345
+ class: "popover",
346
+ style: L(b(s))
347
+ }, [
348
+ u(Re, {
349
+ "all-formats": r.allDefaultFormats,
350
+ "initial-selected-pattern": v.value,
351
+ "allowed-types": r.allowedTypes,
352
+ onCommit: h,
353
+ onCancel: d[4] || (d[4] = (g) => l.value = !1)
354
+ }, null, 8, ["all-formats", "initial-selected-pattern", "allowed-types"])
355
+ ], 4)) : O("", !0)
356
+ ]));
357
+ }
358
+ }), Ke = /* @__PURE__ */ K(Le, [["__scopeId", "data-v-ce3e7e80"]]), et = /* @__PURE__ */ I({
359
+ __name: "DateTimeFormatPickerControl",
360
+ props: {
361
+ control: {},
362
+ handleChange: { type: Function },
363
+ changeValue: { type: Function },
364
+ disabled: { type: Boolean },
365
+ labelForId: {}
366
+ },
367
+ setup(m) {
368
+ const E = m, n = F(() => E.control.uischema.options), f = F(() => {
369
+ var i;
370
+ return (i = n.value) == null ? void 0 : i.allowedFormats;
371
+ }), v = re(
372
+ F(() => {
373
+ var i;
374
+ return (i = n.value) == null ? void 0 : i.formatProvider;
375
+ }),
376
+ null
377
+ );
378
+ return (i, k) => (p(), ie(b(Ke), {
379
+ id: i.labelForId,
380
+ compact: "",
381
+ disabled: i.disabled,
382
+ "model-value": i.control.data,
383
+ "allowed-formats": f.value,
384
+ "all-default-formats": b(v),
385
+ "is-valid": !0,
386
+ "onUpdate:modelValue": i.changeValue
387
+ }, null, 8, ["id", "disabled", "model-value", "allowed-formats", "all-default-formats", "onUpdate:modelValue"]));
388
+ }
389
+ });
390
+ export {
391
+ et as default
392
+ };
@@ -1,14 +1,14 @@
1
1
  import { resolveComponent as ze, openBlock as U, createElementBlock as R, normalizeClass as he, createElementVNode as q, createCommentVNode as ce, withModifiers as cr, createVNode as de, reactive as Cn, computed as T, defineComponent as Ke, ref as ye, watch as Ee, onMounted as ra, onUnmounted as xn, toRefs as fu, h as Pr, watchEffect as vu, provide as aa, inject as Yn, unref as S, createBlock as Fe, resolveDynamicComponent as In, normalizeProps as Yo, mergeProps as jt, renderSlot as Tt, normalizeStyle as hr, withKeys as ui, withCtx as Re, withDirectives as Io, toDisplayString as Le, nextTick as dr, Fragment as He, renderList as it, toRef as _a, Transition as So, createTextVNode as Sn, isRef as nr, guardReactiveProps as hu, resolveDirective as mu, toHandlers as Eo, pushScopeId as pu, popScopeId as gu } from "vue";
2
2
  import { c as yu } from "./popper-1JCni0RT.js";
3
- import { r as wu } from "./BaseButton-DrqwaFu5.js";
4
- import { D as bu } from "./Dropdown-C5rYAL4X.js";
3
+ import { r as wu } from "./BaseButton-DsgRdHJ1.js";
4
+ import { D as bu } from "./Dropdown-CtsETtJA.js";
5
5
  import { A as Du } from "./arrow-dropdown-DjUxzjqC.js";
6
6
  /* empty css */
7
- import { _ as No, o as na } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
8
- import { i as _u, a as Tu } from "./toString-FiiQWhxG.js";
9
- import { b as Mu } from "./_baseIteratee-bVzVDPMQ.js";
10
- import { b as $u } from "./_baseEach-4Fnopd4x.js";
11
- import { a as Pu } from "./_getTag-C-V1gX3V.js";
7
+ import { _ as No, q as na } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
8
+ import { i as _u, a as Tu } from "./toString-BzOQsbuj.js";
9
+ import { b as Mu } from "./_baseIteratee-CFj6YFWe.js";
10
+ import { b as $u } from "./_baseEach-Bv6ruBhc.js";
11
+ import { a as Pu } from "./_getTag-DMEK5a4t.js";
12
12
  function ot(e) {
13
13
  "@babel/helpers - typeof";
14
14
  return ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -3,10 +3,10 @@ import { A as pe } from "./arrow-dropdown-DjUxzjqC.js";
3
3
  import { C as he } from "./close-h7XT0ja0.js";
4
4
  /* empty css */
5
5
  import { u as me } from "./useSearch-hpyYQ_6y.js";
6
- import { F as ge } from "./FunctionButton-CoEVwv2a.js";
7
- import { a as ye, b as we, d as ve, f as xe, g as Ve, h as be, j as Ee } from "./_getTag-C-V1gX3V.js";
8
- import { i as Se } from "./toString-FiiQWhxG.js";
9
- import { _ as Ce } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
6
+ import { F as ge } from "./FunctionButton-23mIlhHT.js";
7
+ import { a as ye, b as we, d as ve, f as xe, g as Ve, h as be, j as Ee } from "./_getTag-DMEK5a4t.js";
8
+ import { i as Se } from "./toString-BzOQsbuj.js";
9
+ import { _ as Ce } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
10
10
  var ke = "[object Map]", Oe = "[object Set]", Ie = Object.prototype, De = Ie.hasOwnProperty;
11
11
  function _e(e) {
12
12
  if (e == null)
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-VwOQiIqd.js";
1
+ import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BoyqWufG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as E, computed as p, openBlock as V, createBlock as y, unref as m, mergeProps as A, withCtx as f, createCommentVNode as I, ref as S, onMounted as G, onBeforeUnmount as J, normalizeProps as Q, renderSlot as x } from "vue";
2
2
  import "./index-BrIvBSNK-BRWnkVln.js";
3
- import { _ as X, k as w, u as Y, L as Z } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { _ as X, k as w, u as Y, L as Z } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
4
  import { w as j } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
5
5
  import { u as ee } from "./useHideOnNull-CCfNP3O7.js";
6
- import { D as oe } from "./Dropdown-C5rYAL4X.js";
7
- import { L as ne } from "./svgWithTitle-CnaxBHlP.js";
8
- import { b as te } from "./_baseAssignValue-vwpxCmUr.js";
9
- import { e as ae, c as le, t as se, i as re } from "./_getTag-C-V1gX3V.js";
6
+ import { D as oe } from "./Dropdown-CtsETtJA.js";
7
+ import { L as ne } from "./svgWithTitle-vY-nYdFJ.js";
8
+ import { b as te } from "./_baseAssignValue-DOVkVeo5.js";
9
+ import { e as ae, c as le, t as se, i as re } from "./_getTag-DMEK5a4t.js";
10
10
  import { i as N } from "./isObject-B53jY8Qg.js";
11
- import { C as ie } from "./Checkbox-BOrZsqeQ.js";
11
+ import { C as ie } from "./Checkbox-DIhOb7S8.js";
12
12
  var ue = Object.prototype, ce = ue.hasOwnProperty;
13
13
  function de(o, e, l) {
14
14
  var s = o[e];
@@ -1,5 +1,5 @@
1
1
  import { openBlock as o, createElementBlock as s, toDisplayString as a } from "vue";
2
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
3
  const c = {
4
4
  props: {
5
5
  errors: {
@@ -1,6 +1,6 @@
1
- import { B as s } from "./BaseButton-DrqwaFu5.js";
1
+ import { B as s } from "./BaseButton-DsgRdHJ1.js";
2
2
  import { resolveComponent as o, openBlock as l, createBlock as r, normalizeClass as i, withCtx as d, renderSlot as c } from "vue";
3
- import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
4
  const f = {
5
5
  name: "FunctionButton",
6
6
  components: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, openBlock as a, createElementBlock as o, Fragment as n, renderList as s, createElementVNode as u, createVNode as c, unref as d } from "vue";
2
- import { n as m, _ as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
2
+ import { o as m, _ as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
3
  const p = { class: "horizontal" }, h = /* @__PURE__ */ r({
4
4
  __name: "HorizontalLayout",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { openBlock as s, createElementBlock as l, normalizeClass as r, renderSlot as o, createCommentVNode as u, createElementVNode as d, mergeProps as c, pushScopeId as p, popScopeId as f } from "vue";
3
- import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
3
+ import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
4
  const h = {
5
5
  name: "InputField",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
2
- import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-yoEPGthe.js";
2
+ import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-By2fKgXj.js";
3
3
  const _ = /* @__PURE__ */ o({
4
4
  __name: "IntegerControl",
5
5
  props: {