@knime/jsonforms 1.21.0 → 1.21.1

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 (97) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/AnyOfTwinlist-UXM-U6hT.js +22 -0
  3. package/dist/{Checkbox-uBRF2ZKG.js → Checkbox-DiIYr1i-.js} +1 -1
  4. package/dist/{CheckboxControl-B9Sd2LLd.js → CheckboxControl-QBXVq5Tw.js} +1 -1
  5. package/dist/{CheckboxesControl-CTaoagZv.js → CheckboxesControl-2pd974_e.js} +2 -2
  6. package/dist/{ColorControl-DxCjpcHn.js → ColorControl-CDxRfPzc.js} +1 -1
  7. package/dist/{ColorPreviewControl-C7MmFIpq.js → ColorPreviewControl-Cg99cain.js} +1 -1
  8. package/dist/{ComboBoxControl-CV4SCOo7.js → ComboBoxControl-BoQyPwaV.js} +3 -3
  9. package/dist/{DateControl-9d_SPymX.js → DateControl-DqNL8rlX.js} +1 -1
  10. package/dist/{DateTimeControl-nxVjz31-.js → DateTimeControl-apf8S1y2.js} +1 -1
  11. package/dist/{DateTimeFormatPickerControl-CMgXr7tA.js → DateTimeFormatPickerControl-_4b5Jk3w.js} +1 -1
  12. package/dist/DateTimeFormatPickerWithTypeControl-B1jOpszt.js +464 -0
  13. package/dist/{DropdownControl-BXbRH5G-.js → DropdownControl-CesCAa-A.js} +2 -2
  14. package/dist/{ExecutorCoresControl-B04lAS0W.js → ExecutorCoresControl-ILXk2Hk6.js} +2 -2
  15. package/dist/{ExecutorMemoryControl-CraHGxVJ.js → ExecutorMemoryControl-De46Fxsm.js} +2 -2
  16. package/dist/{FileUploadControl-D3Awi7rK.js → FileUploadControl-CFQSJwkd.js} +3 -3
  17. package/dist/{GridSelectionControl-Cqrr0vTk.js → GridSelectionControl-CGspDoCC.js} +1 -1
  18. package/dist/{HorizontalLayout-BRxOESz6.js → HorizontalLayout-DPuI5hYY.js} +1 -1
  19. package/dist/{IntegerControl-BG7i8ix-.js → IntegerControl-BwGzlwkz.js} +1 -1
  20. package/dist/{IntervalControl-YdZin9Wi.js → IntervalControl-BHeKHuWm.js} +3 -3
  21. package/dist/{LinkControl-Ntwn3ko5.js → LinkControl-D_0AKRJz.js} +1 -1
  22. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CiYSPKlk.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js} +1 -1
  23. package/dist/ManualTwinlistControl-BMSgSIBJ.js +72 -0
  24. package/dist/{MultiSelectListBoxControl-yIxxGB8U.js → MultiSelectListBoxControl-DbJWOUtn.js} +2 -2
  25. package/dist/MultimodeTwinlistControl-DOJD7vUU.js +4 -0
  26. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BzIvunuA.js +157 -0
  27. package/dist/{MultiselectListBox-DE0QC--O.js → MultiselectListBox-DpL-Z03B.js} +2 -2
  28. package/dist/{NameFilter-dUTC31qA.js → NameFilter-B1LEenoh.js} +4 -4
  29. package/dist/{NumberControl-Bi9ixtTO.js → NumberControl-DVzhX3S9.js} +1 -1
  30. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BkEh0Ykh.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js} +2 -2
  31. package/dist/{OneOfDropdown-BR4WCua4.js → OneOfDropdown-BFOyIhv6.js} +1 -1
  32. package/dist/{RadioButtonsWithDescriptionControl-C69ZDGN4.js → RadioButtonsWithDescriptionControl-oD8Zab-J.js} +6 -6
  33. package/dist/{RadioControl-DnF-ishb.js → RadioControl-D6Wm5j7g.js} +2 -2
  34. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DvfaMgRR.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js} +2 -2
  35. package/dist/{ResourceControlBase-OgchIcbA.js → ResourceControlBase-DRlen7vy.js} +2 -2
  36. package/dist/{RichTextControl-sy7UyTn8.js → RichTextControl-DPX_lxfc.js} +1629 -1488
  37. package/dist/{SectionHeading-Dfcyl0Yz.js → SectionHeading-DIs2yBVY.js} +1 -1
  38. package/dist/{SectionLayout-CqIHiM2R.js → SectionLayout-6ID4pFDm.js} +3 -3
  39. package/dist/{SettingsSubPanel-B5IVsvuc.js → SettingsSubPanel-BUVqvjIE.js} +1 -1
  40. package/dist/{SettingsSubPanelLayout-DNEqHncD.js → SettingsSubPanelLayout-bSgzF47m.js} +4 -4
  41. package/dist/{SimpleButtonControl-BKV86mQ0.js → SimpleButtonControl-CpO-Xbws.js} +1 -1
  42. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js +27792 -0
  43. package/dist/SimpleTwinlistControl-BMKo3T2E.js +22 -0
  44. package/dist/{SingleSelectControl-CMEjgiNY.js → SingleSelectControl-IDX5QUdR.js} +2 -2
  45. package/dist/{SingleSelectListBoxControl-zUEWoGd8.js → SingleSelectListBoxControl-CYGArF9u.js} +3 -3
  46. package/dist/{SortListControl-Rh42JVSy.js → SortListControl-LWMW3lAc.js} +5 -5
  47. package/dist/{StyledListItem-Dmiasg50.js → StyledListItem-DA8cbCw1.js} +1 -1
  48. package/dist/{TeamAndSpacesControl-2B_pTWqM.js → TeamAndSpacesControl-BThkHK2b.js} +1 -1
  49. package/dist/{TeamResourceControl-BFCZeFBI.js → TeamResourceControl-CQgq2Bq5.js} +2 -2
  50. package/dist/{TextAreaControl-DWtOmv7O.js → TextAreaControl-ykGD_BnL.js} +1 -1
  51. package/dist/{TextControl-DwAc1Lgx.js → TextControl-QTuQZi2l.js} +1 -1
  52. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BvSRuAqp.js → TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js} +2 -2
  53. package/dist/{TimeControl-n4lsWwMk.js → TimeControl-W0VRENnH.js} +1 -1
  54. package/dist/{TimePartInput-DTxykHkb.js → TimePartInput-BHzqB1_B.js} +1 -1
  55. package/dist/{TimeframesControl-CPnnV-IY.js → TimeframesControl-C12gkBRu.js} +2 -2
  56. package/dist/{Tooltip-CQD85sdp.js → Tooltip-B0QEjsdY.js} +1 -1
  57. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js +42 -0
  58. package/dist/{TypedStringFilter-7TKnShae.js → TypedStringFilter-B-LUMedK.js} +8 -9
  59. package/dist/{ValueSwitch-BuQf-fpg.js → ValueSwitch-BBO_VXIM.js} +1 -1
  60. package/dist/{ValueSwitchControl-DUWpTxo1.js → ValueSwitchControl-Jz7xZfY-.js} +1 -1
  61. package/dist/{VerticalLayout-BR0nc-T3.js → VerticalLayout-CGtB4d8F.js} +2 -2
  62. package/dist/{VerticalLayoutBase-BmUvz2xm.js → VerticalLayoutBase-JY9q-FO2.js} +1 -1
  63. package/dist/{ZonedDateTimeControl-4Zlm92zJ.js → ZonedDateTimeControl-BatkUEiY.js} +2 -2
  64. package/dist/{_Uint8Array-CgOaNCk1.js → _Uint8Array-Bbzs2Ov4.js} +1 -1
  65. package/dist/{_baseAssignValue-DAm2gl_N.js → _baseAssignValue-DV_dpE4l.js} +1 -1
  66. package/dist/{_baseEach-CpynTt09.js → _baseEach-RTY-xHIc.js} +1 -1
  67. package/dist/{_baseIteratee-B7GNekaD.js → _baseIteratee-pNDg46VS.js} +3 -3
  68. package/dist/knime-jsonforms.css +1 -1
  69. package/dist/knime-jsonforms.js +7 -7
  70. package/dist/{localTimeUtils-GW01Jwt9.js → localTimeUtils-B5XTvulp.js} +1564 -1497
  71. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  72. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -2
  73. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +2 -8
  74. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  75. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -1
  76. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -5
  77. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -1
  78. package/dist/src/uiComponents/twinlist/toKdsPossibleValues.d.ts +9 -0
  79. package/dist/testing.js +2 -2
  80. package/dist/toKdsPossibleValues-BklBg3gG.js +14 -0
  81. package/dist/{toString-EJiXsCqP.js → toString-GoK24L1U.js} +1 -1
  82. package/dist/{useBuiltinValidations-C-jX-GU7.js → useBuiltinValidations-LGrGrHzT.js} +1 -1
  83. package/dist/{usePossibleValues-CdNvUspy.js → usePossibleValues-ItF87hxE.js} +1 -1
  84. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-De2_vatY.js → useUnknownValuesInTwinlist-B8gDSha9.js} +6 -7
  85. package/package.json +1 -1
  86. package/dist/AnyOfTwinlist-BXOiwhPe.js +0 -22
  87. package/dist/DateTimeFormatPickerWithTypeControl-TpmjEZVL.js +0 -442
  88. package/dist/InputField-BPW3gcOb.js +0 -148
  89. package/dist/LoadingIcon-DWlZH7u-.js +0 -29
  90. package/dist/ManualTwinlistControl-Ag2U5qFU.js +0 -79
  91. package/dist/MultimodeTwinlistControl-Cx8g1mbI.js +0 -598
  92. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js +0 -26292
  93. package/dist/SimpleTwinlistControl-5zMN3nHL.js +0 -25
  94. package/dist/TwinlistControlBase-DpODIPuw.js +0 -57
  95. package/dist/TwinlistLoadingInfo-BwuYp151.js +0 -956
  96. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +0 -2
  97. package/dist/useSearch-hpyYQ_6y.js +0 -74
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fb3e4c1: KDS-808: Migrate Twinlist renderers to KdsTwinList
8
+
3
9
  ## 1.21.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,22 @@
1
+ import { defineComponent as s, openBlock as p, createBlock as a, mergeProps as t, unref as r } from "vue";
2
+ import { o as l } from "./index-Blg1O3Fz.js";
3
+ import { _ as i } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js";
4
+ const _ = /* @__PURE__ */ s({
5
+ __name: "AnyOfTwinlist",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ isValid: { type: Boolean },
12
+ onRegisterValidation: { type: Function },
13
+ labelForId: {}
14
+ },
15
+ setup(o) {
16
+ const e = o.control.schema.anyOf.map(l);
17
+ return (n, m) => (p(), a(i, t(n.$props, { "possible-values": r(e) }), null, 16, ["possible-values"]));
18
+ }
19
+ });
20
+ export {
21
+ _ as default
22
+ };
@@ -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 "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const r = {
4
4
  name: "Checkbox",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, ref as d, openBlock as r, createElementBlock as i, createElementVNode as u, createVNode as c, unref as v, renderSlot as a } from "vue";
2
- import { a8 as b, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { a5 as b, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const f = { class: "checkbox-container" }, p = /* @__PURE__ */ s({
4
4
  __name: "CheckboxControl",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, computed as n, ref as i, toRef as r, onMounted as u, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
2
- import { I as f, _ as h } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { I as f, _ as h } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  import { o as v } from "./index-Blg1O3Fz.js";
4
- import { u as V } from "./usePossibleValues-CdNvUspy.js";
4
+ import { u as V } from "./usePossibleValues-ItF87hxE.js";
5
5
  const y = /* @__PURE__ */ c({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, openBlock as l, createBlock as o, unref as n } from "vue";
2
- import { M as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { M as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const u = /* @__PURE__ */ a({
4
4
  __name: "ColorControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
2
- import { J as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { J as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
4
4
  __name: "ColorPreviewEmptyState",
5
5
  setup(a) {
@@ -1,10 +1,10 @@
1
1
  import { resolveComponent as f, openBlock as r, createElementBlock as b, withModifiers as a, withKeys as u, normalizeClass as w, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as h, withDirectives as C, normalizeStyle as A, Fragment as D, renderList as P, createBlock as E, withCtx as O, createTextVNode as T, vShow as k, defineComponent as x, vModelText as $, toRef as z, computed as y, unref as N } from "vue";
2
- import { u as U } from "./usePossibleValues-CdNvUspy.js";
2
+ import { u as U } from "./usePossibleValues-ItF87hxE.js";
3
3
  import { C as L } from "./close-CwP2mh9x.js";
4
- import { _ as B, N as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
4
+ import { _ as B, N as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
5
5
  /* empty css */
6
6
  import { A as K } from "./arrow-dropdown-DMFBPPcK.js";
7
- import { C as j } from "./Checkbox-uBRF2ZKG.js";
7
+ import { C as j } from "./Checkbox-DiIYr1i-.js";
8
8
  import { c as W } from "./createMissingItem-B00Kg95q.js";
9
9
  const g = () => {
10
10
  let e = document?.activeElement;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, computed as d, openBlock as s, createBlock as u, unref as r } from "vue";
2
- import { f as m, t as c, D as p } from "./localTimeUtils-GW01Jwt9.js";
2
+ import { f as m, t as c, D as p } from "./localTimeUtils-B5XTvulp.js";
3
3
  const b = /* @__PURE__ */ i({
4
4
  __name: "DateControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as o, openBlock as v, createBlock as p, unref as h } from "vue";
2
- import { t, f as w, D as f } from "./localTimeUtils-GW01Jwt9.js";
2
+ import { t, f as w, D as f } from "./localTimeUtils-B5XTvulp.js";
3
3
  const x = /* @__PURE__ */ r({
4
4
  __name: "DateTimeControl",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, computed as a, openBlock as s, createBlock as c, unref as t } from "vue";
2
- import { u as m, O as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { u as m, O as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const h = /* @__PURE__ */ i({
4
4
  __name: "DateTimeFormatPickerControl",
5
5
  props: {
@@ -0,0 +1,464 @@
1
+ import { openBlock as p, createElementBlock as T, createElementVNode as h, h as q, defineComponent as D, createBlock as z, unref as g, useCssVars as G, computed as y, ref as x, watch as C, reactive as J, onMounted as Q, nextTick as O, onUnmounted as X, withCtx as Y, createCommentVNode as A, createVNode as _, Fragment as ee, renderList as te, normalizeClass as S, toDisplayString as H, useModel as oe, withDirectives as le, vModelText as ae, normalizeStyle as se, mergeModels as ne } from "vue";
2
+ import { _ as M, P as ie, u as re } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
+ import { V as R } from "./ValueSwitch-BBO_VXIM.js";
4
+ import { u as de, a as ce, o as ue, s as me, f as pe } from "./floating-ui.vue-Bk6u3tWN.js";
5
+ import { u as ve, F as fe } from "./useDropdownNavigation-EOwf_fL0.js";
6
+ const he = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ fill: "none",
9
+ stroke: "#000",
10
+ "stroke-linejoin": "round",
11
+ viewBox: "0 0 32 32"
12
+ };
13
+ function ye(a, r) {
14
+ return p(), T("svg", he, [...r[0] || (r[0] = [
15
+ h("path", { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" }, null, -1)
16
+ ])]);
17
+ }
18
+ const Te = { render: ye }, ge = (a, r) => ({
19
+ render() {
20
+ const s = a.render({}, []), d = q("title", r);
21
+ return d.ns = "svg", s.children.unshift(d), s;
22
+ }
23
+ }), we = /* @__PURE__ */ D({
24
+ __name: "LoadingIcon",
25
+ setup(a) {
26
+ const r = ge(Te, "Loading…");
27
+ return (s, d) => (p(), z(g(r)));
28
+ }
29
+ }), xe = /* @__PURE__ */ M(we, [["__scopeId", "data-v-6b552b81"]]), Ee = {
30
+ xmlns: "http://www.w3.org/2000/svg",
31
+ fill: "none",
32
+ "stroke-linejoin": "round",
33
+ viewBox: "0 0 32 32"
34
+ };
35
+ function Fe(a, r) {
36
+ return p(), T("svg", Ee, [...r[0] || (r[0] = [
37
+ h("path", {
38
+ fill: "#000",
39
+ 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"
40
+ }, null, -1)
41
+ ])]);
42
+ }
43
+ const _e = { render: Fe }, be = { class: "popover" }, Ve = { class: "formats-container-border-host" }, Ie = {
44
+ key: 0,
45
+ class: "no-formats-available"
46
+ }, De = {
47
+ key: 1,
48
+ class: "no-formats-available"
49
+ }, Me = ["onClick"], ke = { class: "format-pattern" }, Ce = { class: "format-preview" }, U = 1, ze = /* @__PURE__ */ D({
50
+ __name: "DateTimeFormatPickerPopover",
51
+ props: {
52
+ allFormats: {},
53
+ selectedType: {},
54
+ initialSelectedPattern: {},
55
+ showTypeSwitch: { type: Boolean }
56
+ },
57
+ emits: ["commit", "cancel"],
58
+ setup(a, { emit: r }) {
59
+ G((e) => ({
60
+ v3b9e5e3a: U
61
+ }));
62
+ const s = r, d = a, b = y(() => [
63
+ {
64
+ id: "RECENT",
65
+ text: "Recent"
66
+ },
67
+ {
68
+ id: "STANDARD",
69
+ text: "ISO"
70
+ },
71
+ {
72
+ id: "EUROPEAN",
73
+ text: "European"
74
+ },
75
+ {
76
+ id: "AMERICAN",
77
+ text: "United States"
78
+ }
79
+ ]), V = y(() => [
80
+ {
81
+ id: "DATE",
82
+ text: "Date"
83
+ },
84
+ {
85
+ id: "DATE_TIME",
86
+ text: "Date & time"
87
+ },
88
+ {
89
+ id: "TIME",
90
+ text: "Time"
91
+ },
92
+ {
93
+ id: "ZONED_DATE_TIME",
94
+ text: "Zoned date & time"
95
+ }
96
+ ]), c = x(null), m = x(null), n = x("RECENT"), u = x(d.selectedType);
97
+ C(
98
+ () => d.selectedType,
99
+ (e) => {
100
+ m.value = e;
101
+ }
102
+ );
103
+ const l = y(
104
+ () => d.allFormats?.filter(
105
+ (e) => e.category === n.value && e.temporalType === u.value
106
+ ) ?? null
107
+ ), v = x(null), f = J({}), E = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
108
+ f[E(e)] = t;
109
+ }, F = (e) => ({
110
+ format: e.format,
111
+ temporalType: e.temporalType
112
+ }), {
113
+ currentIndex: P,
114
+ onKeydown: N,
115
+ resetNavigation: W,
116
+ setElement: Z
117
+ } = ve({
118
+ keepOpenedOnTab: !0,
119
+ getFirstElement: () => ({
120
+ index: 0,
121
+ onClick: () => s(
122
+ "commit",
123
+ F(l.value[0])
124
+ )
125
+ }),
126
+ getLastElement: () => {
127
+ const e = l.value.length - 1;
128
+ return {
129
+ index: e,
130
+ onClick: () => s(
131
+ "commit",
132
+ F(l.value[e])
133
+ )
134
+ };
135
+ },
136
+ getNextElement: (e, t) => {
137
+ if (e = e === null || e === -1 ? null : e, t === 1) {
138
+ const i = ((e ?? -1) + 1) % l.value.length;
139
+ return {
140
+ index: i,
141
+ onClick: () => s(
142
+ "commit",
143
+ F(l.value[i])
144
+ )
145
+ };
146
+ } else {
147
+ const i = ((e ?? 0) - 1 + l.value.length) % l.value.length;
148
+ return {
149
+ index: i,
150
+ onClick: () => s(
151
+ "commit",
152
+ F(l.value[i])
153
+ )
154
+ };
155
+ }
156
+ },
157
+ close: () => {
158
+ s("cancel");
159
+ }
160
+ }), K = (e) => {
161
+ const t = e.parentElement;
162
+ if (t && t.scrollHeight > t.clientHeight) {
163
+ const o = t.offsetTop + U, i = t.clientHeight + t.scrollTop, w = e.offsetTop + e.offsetHeight - o;
164
+ w > i ? t.scrollTop = w - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
165
+ }
166
+ }, $ = (e) => {
167
+ const t = f[`${e}-${n.value}-${u.value}`];
168
+ t && K(t);
169
+ }, B = async (e, t, o) => {
170
+ u.value = t ?? u.value, n.value = o ?? n.value, await O(), m.value = e, $(e);
171
+ const i = l.value.findIndex(
172
+ (w) => w.format === e
173
+ );
174
+ Z({
175
+ index: i,
176
+ onClick: () => s(
177
+ "commit",
178
+ F(l.value[i])
179
+ )
180
+ });
181
+ };
182
+ C(P, (e) => {
183
+ if (e === null)
184
+ return;
185
+ const t = l.value?.[e]?.format;
186
+ t && $(t);
187
+ }), C([u, n], () => {
188
+ u.value === c.value?.temporalType && n.value === c.value?.category ? B(
189
+ c.value.format,
190
+ c.value.temporalType,
191
+ c.value.category
192
+ ) : (m.value = null, W());
193
+ });
194
+ const I = x(!1);
195
+ return Q(async () => {
196
+ if (!d.allFormats)
197
+ return;
198
+ const e = [
199
+ "RECENT",
200
+ "STANDARD",
201
+ "EUROPEAN",
202
+ "AMERICAN"
203
+ ], t = d.allFormats.filter((o) => d.initialSelectedPattern === o.format).filter(
204
+ (o) => (
205
+ // if the type switch is hidden, filter to only formats with the same type
206
+ d.selectedType === o.temporalType || d.showTypeSwitch
207
+ )
208
+ ).sort((o, i) => {
209
+ const w = e.indexOf(o.category), k = e.indexOf(i.category);
210
+ return w - k;
211
+ });
212
+ if (t.length > 0) {
213
+ const o = t[0].format, i = t[0].temporalType, w = t[0].category;
214
+ await B(o, i, w);
215
+ const k = l.value.findIndex(
216
+ (j) => j.format === o
217
+ );
218
+ c.value = {
219
+ format: o,
220
+ index: k,
221
+ category: w,
222
+ temporalType: i
223
+ };
224
+ }
225
+ O(() => I.value = !0);
226
+ }), X(() => I.value = !1), (e, t) => (p(), z(g(fe), {
227
+ active: I.value,
228
+ "onUpdate:active": t[3] || (t[3] = (o) => I.value = o),
229
+ "initial-focus": () => v.value ?? !1
230
+ }, {
231
+ default: Y(() => [
232
+ h("div", be, [
233
+ a.showTypeSwitch ? (p(), z(R, {
234
+ key: 0,
235
+ id: "selectedFormatType",
236
+ ref: "typeSwitchRef",
237
+ modelValue: u.value,
238
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => u.value = o),
239
+ compact: "",
240
+ "possible-values": V.value,
241
+ class: "filter-switch"
242
+ }, null, 8, ["modelValue", "possible-values"])) : A("", !0),
243
+ _(R, {
244
+ id: "selectedFormatStandard",
245
+ ref: "standardSwitchRef",
246
+ modelValue: n.value,
247
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => n.value = o),
248
+ compact: "",
249
+ "possible-values": b.value,
250
+ class: "filter-switch"
251
+ }, null, 8, ["modelValue", "possible-values"]),
252
+ h("div", Ve, [
253
+ h("div", {
254
+ id: "dateFormats",
255
+ ref_key: "formatContainerRef",
256
+ ref: v,
257
+ class: "formats-container",
258
+ tabindex: "0",
259
+ role: "menu",
260
+ onKeydown: t[2] || (t[2] = //@ts-ignore
261
+ (...o) => g(N) && g(N)(...o))
262
+ }, [
263
+ l.value === null ? (p(), T("div", Ie, [
264
+ _(xe, { class: "loading-spinner" })
265
+ ])) : l.value.length === 0 ? (p(), T("div", De, " No formats available ")) : (p(!0), T(ee, { key: 2 }, te(l.value, (o, i) => (p(), T("div", {
266
+ key: E(o),
267
+ ref_for: !0,
268
+ ref: L(o),
269
+ class: S([{
270
+ highlighted: i === g(P),
271
+ applied: i === c.value?.index && o.category === c.value.category && o.temporalType === c.value.temporalType
272
+ }, "single-format"]),
273
+ role: "menuitem",
274
+ onClick: () => s("commit", F(o))
275
+ }, [
276
+ h("span", ke, H(o.format), 1),
277
+ h("span", Ce, H(o.example), 1)
278
+ ], 10, Me))), 128))
279
+ ], 544)
280
+ ])
281
+ ])
282
+ ]),
283
+ _: 1
284
+ }, 8, ["active", "initial-focus"]));
285
+ }
286
+ }), Ae = /* @__PURE__ */ M(ze, [["__scopeId", "data-v-8bb40d8b"]]), Se = { class: "input-fields" }, Re = ["disabled"], Pe = {
287
+ key: 0,
288
+ class: "invalid-marker"
289
+ }, Ne = ["disabled"], $e = {}, Be = /* @__PURE__ */ D({
290
+ ...$e,
291
+ __name: "DateTimeFormatInput",
292
+ props: /* @__PURE__ */ ne({
293
+ disabled: { type: Boolean, default: !1 },
294
+ compact: { type: Boolean, default: !1 },
295
+ isValid: { type: Boolean, default: !0 },
296
+ allDefaultFormats: {},
297
+ allowedTypes: { default: () => [
298
+ "DATE",
299
+ "TIME",
300
+ "DATE_TIME",
301
+ "ZONED_DATE_TIME"
302
+ ] },
303
+ showTypeSwitchInPopover: { type: Boolean, default: !0 }
304
+ }, {
305
+ modelValue: {
306
+ default: {
307
+ format: "yyyy-MM-dd",
308
+ temporalType: "DATE"
309
+ }
310
+ },
311
+ modelModifiers: {}
312
+ }),
313
+ emits: ["update:modelValue"],
314
+ setup(a) {
315
+ const r = a, s = oe(a, "modelValue"), d = y({
316
+ get: () => s.value.format,
317
+ set: (v) => {
318
+ s.value = {
319
+ ...s.value,
320
+ format: v
321
+ };
322
+ }
323
+ }), b = "Format like 'yyyy-MM-dd'", V = y(() => r.isValid), c = x(null), m = x(null), n = x(!1), u = (v) => {
324
+ s.value = v, n.value = !1;
325
+ };
326
+ ie(m, () => n.value = !1, {
327
+ ignore: [c]
328
+ });
329
+ const { floatingStyles: l } = de(
330
+ c,
331
+ m,
332
+ {
333
+ middleware: [
334
+ ue({
335
+ mainAxis: 2,
336
+ crossAxis: 0
337
+ }),
338
+ me(),
339
+ pe({
340
+ mainAxis: !0,
341
+ crossAxis: !1
342
+ })
343
+ ],
344
+ placement: "top-end",
345
+ whileElementsMounted: ce
346
+ }
347
+ );
348
+ return (v, f) => (p(), T("div", null, [
349
+ h("div", {
350
+ class: S(["wrapper", { disabled: a.disabled, compact: a.compact }])
351
+ }, [
352
+ h("span", Se, [
353
+ le(h("input", {
354
+ "onUpdate:modelValue": f[0] || (f[0] = (E) => d.value = E),
355
+ type: "text",
356
+ disabled: a.disabled,
357
+ placeholder: b,
358
+ spellcheck: "false",
359
+ onFocus: f[1] || (f[1] = (E) => n.value = !1)
360
+ }, null, 40, Re), [
361
+ [ae, d.value]
362
+ ]),
363
+ V.value ? A("", !0) : (p(), T("span", Pe)),
364
+ h("button", {
365
+ ref_key: "togglePopoverButtonRef",
366
+ ref: c,
367
+ class: S(["trigger-popover-button", { active: n.value }]),
368
+ disabled: a.disabled,
369
+ onClick: f[2] || (f[2] = (E) => n.value = !n.value)
370
+ }, [
371
+ _(g(_e))
372
+ ], 10, Ne)
373
+ ])
374
+ ], 2),
375
+ n.value ? (p(), T("div", {
376
+ key: 0,
377
+ ref_key: "floatingPopoverRef",
378
+ ref: m,
379
+ class: "popover",
380
+ style: se(g(l))
381
+ }, [
382
+ _(Ae, {
383
+ "all-formats": a.allDefaultFormats,
384
+ "initial-selected-pattern": s.value.format,
385
+ "selected-type": s.value.temporalType,
386
+ "show-type-switch": a.showTypeSwitchInPopover,
387
+ onCommit: u,
388
+ onCancel: f[3] || (f[3] = (E) => n.value = !1)
389
+ }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
390
+ ], 4)) : A("", !0)
391
+ ]));
392
+ }
393
+ }), Oe = /* @__PURE__ */ M(Be, [["__scopeId", "data-v-1577d5ce"]]), He = ["id"], Ue = /* @__PURE__ */ D({
394
+ __name: "DateTimeFormatPickerWithTypeControl",
395
+ props: {
396
+ control: {},
397
+ handleChange: { type: Function },
398
+ changeValue: { type: Function },
399
+ disabled: { type: Boolean },
400
+ isValid: { type: Boolean },
401
+ onRegisterValidation: { type: Function },
402
+ labelForId: {}
403
+ },
404
+ setup(a) {
405
+ const r = a, s = y(
406
+ () => r.control.uischema
407
+ ), d = y(() => s.value.options), b = y(() => d.value?.allowedFormats), V = re(s, "dateTimeFormats"), c = [
408
+ {
409
+ id: "DATE",
410
+ text: "Date"
411
+ },
412
+ {
413
+ id: "DATE_TIME",
414
+ text: "Date & time"
415
+ },
416
+ {
417
+ id: "TIME",
418
+ text: "Time"
419
+ },
420
+ {
421
+ id: "ZONED_DATE_TIME",
422
+ text: "Zoned date & time"
423
+ }
424
+ ], m = y({
425
+ get: () => r.control.data,
426
+ set: (u) => {
427
+ r.changeValue(u);
428
+ }
429
+ }), n = y({
430
+ get: () => m.value.temporalType,
431
+ set: (u) => {
432
+ m.value = {
433
+ ...m.value,
434
+ temporalType: u
435
+ };
436
+ }
437
+ });
438
+ return (u, l) => (p(), T("div", {
439
+ id: a.labelForId,
440
+ class: "control-container"
441
+ }, [
442
+ _(g(R), {
443
+ modelValue: n.value,
444
+ "onUpdate:modelValue": l[0] || (l[0] = (v) => n.value = v),
445
+ compact: "",
446
+ "possible-values": c,
447
+ disabled: a.disabled
448
+ }, null, 8, ["modelValue", "disabled"]),
449
+ _(g(Oe), {
450
+ modelValue: m.value,
451
+ "onUpdate:modelValue": l[1] || (l[1] = (v) => m.value = v),
452
+ compact: "",
453
+ disabled: a.disabled,
454
+ "show-type-switch-in-popover": !1,
455
+ "allowed-formats": b.value,
456
+ "all-default-formats": g(V),
457
+ "is-valid": !0
458
+ }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
459
+ ], 8, He));
460
+ }
461
+ }), qe = /* @__PURE__ */ M(Ue, [["__scopeId", "data-v-8517cafd"]]);
462
+ export {
463
+ qe as default
464
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, toRef as n, openBlock as t, createBlock as i, unref as d } from "vue";
2
- import { u as r } from "./usePossibleValues-CdNvUspy.js";
3
- import { _ as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-CiYSPKlk.js";
2
+ import { u as r } from "./usePossibleValues-ItF87hxE.js";
3
+ import { _ as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js";
4
4
  const f = /* @__PURE__ */ l({
5
5
  __name: "DropdownControl",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, computed as o, openBlock as h, createBlock as m, normalizeProps as _, guardReactiveProps as v, withCtx as f, createElementVNode as e, toDisplayString as s } from "vue";
2
- import { R as x } from "./ResourceControlBase-OgchIcbA.js";
3
- import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { R as x } from "./ResourceControlBase-DRlen7vy.js";
3
+ import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
4
4
  const y = { class: "info-container" }, V = { class: "chart-title" }, g = { class: "chart-description" }, B = /* @__PURE__ */ p({
5
5
  __name: "ExecutorCoresControl",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as o, openBlock as p, createBlock as m, normalizeProps as _, guardReactiveProps as h, withCtx as f, createElementVNode as e, toDisplayString as a } from "vue";
2
- import { R as v } from "./ResourceControlBase-OgchIcbA.js";
3
- import { _ as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { R as v } from "./ResourceControlBase-DRlen7vy.js";
3
+ import { _ as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
4
4
  const y = { class: "info-container" }, B = { class: "chart-title" }, g = { class: "chart-description" }, C = /* @__PURE__ */ d({
5
5
  __name: "ExecutorMemoryControl",
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as h, computed as g, openBlock as N, createElementBlock as G, createVNode as R, unref as q, createElementVNode as v, toDisplayString as K } from "vue";
2
- import { C as E, G as W, A as $, B as I, y as Y, _ as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
3
- import { e as J, o as Q, U as w, j as X, a as j, m as U, n as T, i as Z, S as k, g as z } from "./_Uint8Array-CgOaNCk1.js";
4
- import { b as ee } from "./_baseAssignValue-DAm2gl_N.js";
2
+ import { C as E, G as W, A as $, B as I, y as Y, _ as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
+ import { e as J, o as Q, U as w, j as X, a as j, m as U, n as T, i as Z, S as k, g as z } from "./_Uint8Array-Bbzs2Ov4.js";
4
+ import { b as ee } from "./_baseAssignValue-DV_dpE4l.js";
5
5
  import { i as te } from "./isArray-WzO_os3q.js";
6
6
  var S = Object.create, re = /* @__PURE__ */ (function() {
7
7
  function e() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, useCssVars as U, unref as n, ref as D, computed as s, watch as f, openBlock as c, createElementBlock as u, normalizeStyle as G, Fragment as T, renderList as $, createBlock as h, createCommentVNode as p, createVNode as A, withModifiers as B } from "vue";
2
- import { a7 as N, a8 as z, y as O, _ as R } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { a4 as N, a5 as z, y as O, _ as R } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const W = { class: "grid-list" }, H = {
4
4
  key: 1,
5
5
  class: "checkbox"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as t, createElementBlock as a, Fragment as r, renderList as c, createBlock as s, unref as u } from "vue";
2
- import { a as m, _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { a as m, _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
4
4
  __name: "HorizontalLayout",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-BkEh0Ykh.js";
2
+ import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js";
3
3
  const s = /* @__PURE__ */ o({
4
4
  __name: "IntegerControl",
5
5
  props: {
@@ -1,10 +1,10 @@
1
1
  import { openBlock as p, createElementBlock as E, createElementVNode as c, resolveComponent as ye, normalizeClass as D, createCommentVNode as F, withModifiers as N, createVNode as I, defineComponent as H, useModel as k, computed as P, Fragment as C, createBlock as te, withDirectives as b, vShow as S, renderList as X, unref as m, toDisplayString as K, withCtx as W, createTextVNode as Ae, mergeModels as G, ref as T, watch as z, withKeys as Me, vModelText as we, normalizeStyle as xe } from "vue";
2
- import { _ as U, N as De, P as be, a9 as Pe, u as q } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
2
+ import { _ as U, N as De, P as be, a6 as Pe, u as q } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
3
  import { u as Re, a as Ne, s as _e, f as Se, o as Ce } from "./floating-ui.vue-Bk6u3tWN.js";
4
- import { T as $e } from "./Tooltip-CQD85sdp.js";
4
+ import { T as $e } from "./Tooltip-B0QEjsdY.js";
5
5
  import { A as Oe } from "./arrow-dropdown-DMFBPPcK.js";
6
6
  /* empty css */
7
- import { V as Z } from "./ValueSwitch-BuQf-fpg.js";
7
+ import { V as Z } from "./ValueSwitch-BBO_VXIM.js";
8
8
  const ae = (e, t) => ({
9
9
  negative: e,
10
10
  years: parseInt(t[1] ?? "0", 10),