@knime/jsonforms 1.20.2 → 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 (121) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/AnyOfTwinlist-UXM-U6hT.js +22 -0
  3. package/dist/{Checkbox-C8vZJxmW.js → Checkbox-DiIYr1i-.js} +1 -1
  4. package/dist/{CheckboxControl-2zQUVzXf.js → CheckboxControl-QBXVq5Tw.js} +1 -1
  5. package/dist/{CheckboxesControl-BhsoZSv9.js → CheckboxesControl-2pd974_e.js} +2 -2
  6. package/dist/{ColorControl-O77jn9IY.js → ColorControl-CDxRfPzc.js} +6 -5
  7. package/dist/{ColorPreviewControl-B5Ymg8D7.js → ColorPreviewControl-Cg99cain.js} +1 -1
  8. package/dist/{ComboBoxControl-BwKd6QND.js → ComboBoxControl-BoQyPwaV.js} +3 -3
  9. package/dist/{DateControl-DRsmMVqC.js → DateControl-DqNL8rlX.js} +1 -1
  10. package/dist/{DateTimeControl-BEGZdy_h.js → DateTimeControl-apf8S1y2.js} +1 -1
  11. package/dist/{DateTimeFormatPickerControl-4SQMFb0e.js → DateTimeFormatPickerControl-_4b5Jk3w.js} +7 -6
  12. package/dist/DateTimeFormatPickerWithTypeControl-B1jOpszt.js +464 -0
  13. package/dist/DropdownControl-CesCAa-A.js +30 -0
  14. package/dist/{ExecutorCoresControl-C_S9CdZR.js → ExecutorCoresControl-ILXk2Hk6.js} +2 -2
  15. package/dist/{ExecutorMemoryControl-DP3D7Ep7.js → ExecutorMemoryControl-De46Fxsm.js} +2 -2
  16. package/dist/{FileUploadControl-vP7VFRft.js → FileUploadControl-CFQSJwkd.js} +10 -10
  17. package/dist/{GridSelectionControl-C5xgYQWN.js → GridSelectionControl-CGspDoCC.js} +16 -16
  18. package/dist/{HorizontalLayout-wTvGcu9R.js → HorizontalLayout-DPuI5hYY.js} +1 -1
  19. package/dist/{IntegerControl-WYqy9T5S.js → IntegerControl-BwGzlwkz.js} +1 -1
  20. package/dist/{IntervalControl-Dc9fbHKi.js → IntervalControl-BHeKHuWm.js} +3 -3
  21. package/dist/{LinkControl-BmLQwBHp.js → LinkControl-D_0AKRJz.js} +3 -3
  22. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CLKD1Eg5.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js} +5 -5
  23. package/dist/ManualTwinlistControl-BMSgSIBJ.js +72 -0
  24. package/dist/{MultiSelectListBoxControl-CmcedEDZ.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-CygE32kY.js → MultiselectListBox-DpL-Z03B.js} +2 -2
  28. package/dist/{NameFilter-CtXmnR8f.js → NameFilter-B1LEenoh.js} +4 -4
  29. package/dist/{NumberControl-Chwxj-LH.js → NumberControl-DVzhX3S9.js} +1 -1
  30. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DX_-3Wyc.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js} +14 -13
  31. package/dist/{OneOfDropdown-cixl07U7.js → OneOfDropdown-BFOyIhv6.js} +1 -1
  32. package/dist/{RadioButtonsWithDescriptionControl-BRHCa2SH.js → RadioButtonsWithDescriptionControl-oD8Zab-J.js} +6 -6
  33. package/dist/{RadioControl-BvjdtuKz.js → RadioControl-D6Wm5j7g.js} +2 -2
  34. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-6pmtagdC.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js} +2 -2
  35. package/dist/{ResourceControlBase-C74PY7Xg.js → ResourceControlBase-DRlen7vy.js} +37 -36
  36. package/dist/{RichTextControl-DpOv2unj.js → RichTextControl-DPX_lxfc.js} +1629 -1488
  37. package/dist/{SectionHeading-CGrQHMDO.js → SectionHeading-DIs2yBVY.js} +1 -1
  38. package/dist/{SectionLayout-CdV3uQLf.js → SectionLayout-6ID4pFDm.js} +3 -3
  39. package/dist/{SettingsSubPanel-WP-rjcbG.js → SettingsSubPanel-BUVqvjIE.js} +1 -1
  40. package/dist/{SettingsSubPanelLayout-D9HfpZIk.js → SettingsSubPanelLayout-bSgzF47m.js} +4 -4
  41. package/dist/{SimpleButtonControl-I2Cx14Gz.js → SimpleButtonControl-CpO-Xbws.js} +9 -9
  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-D4CL0fTA.js → SingleSelectControl-IDX5QUdR.js} +2 -2
  45. package/dist/{SingleSelectListBoxControl-BVlp--iW.js → SingleSelectListBoxControl-CYGArF9u.js} +3 -3
  46. package/dist/{SortListControl-BYtYZH9v.js → SortListControl-LWMW3lAc.js} +26 -26
  47. package/dist/{StyledListItem-BDGJxkck.js → StyledListItem-DA8cbCw1.js} +1 -1
  48. package/dist/{TeamAndSpacesControl-DeWTK4Ri.js → TeamAndSpacesControl-BThkHK2b.js} +1 -1
  49. package/dist/{TeamResourceControl-CYHJE651.js → TeamResourceControl-CQgq2Bq5.js} +2 -2
  50. package/dist/{TextAreaControl-Be8hYvIE.js → TextAreaControl-ykGD_BnL.js} +6 -5
  51. package/dist/{TextControl-BMRwH0u8.js → TextControl-QTuQZi2l.js} +1 -1
  52. package/dist/TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js +48 -0
  53. package/dist/{TimeControl-IHoLfKoF.js → TimeControl-W0VRENnH.js} +1 -1
  54. package/dist/{TimePartInput-Djv_I5L2.js → TimePartInput-BHzqB1_B.js} +1 -1
  55. package/dist/{TimeframesControl-CXDZ9whH.js → TimeframesControl-C12gkBRu.js} +2 -2
  56. package/dist/{Tooltip-BFp1z5RF.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-BqgscF6r.js → TypedStringFilter-B-LUMedK.js} +8 -9
  59. package/dist/{ValueSwitch-CiYL5ZDM.js → ValueSwitch-BBO_VXIM.js} +1 -1
  60. package/dist/{ValueSwitchControl-FUA2OCJL.js → ValueSwitchControl-Jz7xZfY-.js} +1 -1
  61. package/dist/{VerticalLayout-C0dmM8oC.js → VerticalLayout-CGtB4d8F.js} +2 -2
  62. package/dist/{VerticalLayoutBase-DEyDRFEy.js → VerticalLayoutBase-JY9q-FO2.js} +1 -1
  63. package/dist/{ZonedDateTimeControl-DZz_UMWY.js → ZonedDateTimeControl-BatkUEiY.js} +5 -5
  64. package/dist/{_Uint8Array-CKBOTeJE.js → _Uint8Array-Bbzs2Ov4.js} +1 -1
  65. package/dist/{_baseAssignValue-D7KwaATG.js → _baseAssignValue-DV_dpE4l.js} +1 -1
  66. package/dist/{_baseEach-ByXotQBT.js → _baseEach-RTY-xHIc.js} +1 -1
  67. package/dist/{_baseIteratee-B94PQLQa.js → _baseIteratee-pNDg46VS.js} +3 -3
  68. package/dist/circle-unchecked-DOoOn6iz-D8kdRFQp.js +22 -0
  69. package/dist/db-browse-BJj19qUq-Ch52lRw1.js +22 -0
  70. package/dist/db-database-CyCrPzu--BS4xKzSk.js +22 -0
  71. package/dist/db-fetch-CJMHzQp5-DWPRnfqi.js +22 -0
  72. package/dist/folder-search-DDOYg0f6-ZAg3M7SD.js +22 -0
  73. package/dist/hide-eye-BrIKmBWt-C4ZB3p0E.js +22 -0
  74. package/dist/knime-jsonforms.css +1 -1
  75. package/dist/knime-jsonforms.js +7 -7
  76. package/dist/{localTimeUtils-D0KEpIug.js → localTimeUtils-B5XTvulp.js} +1564 -1497
  77. package/dist/menu-BSS_QnZi-BOELQ3Yk.js +22 -0
  78. package/dist/pin-B6vKBZDp-C_Evg0RJ.js +22 -0
  79. package/dist/python-Bn3ET_9Z-4xs10DVx.js +22 -0
  80. package/dist/src/uiComponents/ColorControl.vue.d.ts +1 -1
  81. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  82. package/dist/src/uiComponents/DropdownControl.vue.d.ts +1 -1
  83. package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
  84. package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
  85. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +1 -1
  86. package/dist/src/uiComponents/QuantityControl.vue.d.ts +1 -1
  87. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
  88. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +1 -1
  89. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  90. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -2
  91. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +2 -8
  92. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  93. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -1
  94. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -5
  95. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -1
  96. package/dist/src/uiComponents/twinlist/toKdsPossibleValues.d.ts +9 -0
  97. package/dist/tag-_fZiuJaC-1MYJ4Isf.js +26 -0
  98. package/dist/{db-database-DYNQa14y-t5Ao07SV.js → template-gallery-BtXi4GHd-nN0iWvUH.js} +5 -5
  99. package/dist/testing.js +2 -2
  100. package/dist/toKdsPossibleValues-BklBg3gG.js +14 -0
  101. package/dist/{toString-QbK1ObBl.js → toString-GoK24L1U.js} +1 -1
  102. package/dist/usage-827uIQyn-DIKbEX0l.js +22 -0
  103. package/dist/{useBuiltinValidations-wzOrPjDz.js → useBuiltinValidations-LGrGrHzT.js} +1 -1
  104. package/dist/{usePossibleValues-DgKVFQxB.js → usePossibleValues-ItF87hxE.js} +1 -1
  105. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-Chy8pUMX.js → useUnknownValuesInTwinlist-B8gDSha9.js} +6 -7
  106. package/package.json +4 -4
  107. package/dist/AnyOfTwinlist-BQehJ12j.js +0 -22
  108. package/dist/DateTimeFormatPickerWithTypeControl-CMsxwUHX.js +0 -442
  109. package/dist/DropdownControl-10fJUe9n.js +0 -41
  110. package/dist/InputField-DeLL-u-h.js +0 -148
  111. package/dist/LoadingIcon-CYbc0B-S.js +0 -29
  112. package/dist/ManualTwinlistControl-sdaoD9gk.js +0 -79
  113. package/dist/MultimodeTwinlistControl-v_K55HKG.js +0 -598
  114. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BMg-dFo1.js +0 -26176
  115. package/dist/SimpleTwinlistControl-6HsVIXPb.js +0 -25
  116. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CJvtrRdc.js +0 -45
  117. package/dist/TwinlistControlBase-BankeCez.js +0 -57
  118. package/dist/TwinlistLoadingInfo-CktU-Yu7.js +0 -956
  119. package/dist/src/uiComponents/TextControl.vue.d.ts +0 -15
  120. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +0 -2
  121. package/dist/useSearch-hpyYQ_6y.js +0 -74
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 1.21.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 541b5d1: Introduce suggestions in TextControl, remove them from DropdownControl, and remove the `allowNewValue` prop from DropdownControl entirely.
14
+
3
15
  ## 1.20.2
4
16
 
5
17
  ### Patch 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-BMg-dFo1.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-BMg-dFo1.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-BMg-dFo1.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-DgKVFQxB.js";
4
+ import { u as V } from "./usePossibleValues-ItF87hxE.js";
5
5
  const y = /* @__PURE__ */ c({
6
6
  __name: "CheckboxesControl",
7
7
  props: {
@@ -1,6 +1,6 @@
1
- import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
- import { M as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BMg-dFo1.js";
3
- const u = /* @__PURE__ */ o({
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-Ssy7Zaqp.js";
3
+ const u = /* @__PURE__ */ a({
4
4
  __name: "ColorControl",
5
5
  props: {
6
6
  control: {},
@@ -12,13 +12,14 @@ const u = /* @__PURE__ */ o({
12
12
  labelForId: {}
13
13
  },
14
14
  setup(e) {
15
- return (d, i) => (a(), l(n(t), {
15
+ return (d, i) => (l(), o(n(t), {
16
16
  id: e.labelForId,
17
+ ariaLabel: e.control.label,
17
18
  "model-value": e.control.data ?? "",
18
19
  disabled: e.disabled,
19
20
  error: !e.isValid,
20
21
  "onUpdate:modelValue": e.changeValue
21
- }, null, 8, ["id", "model-value", "disabled", "error", "onUpdate:modelValue"]));
22
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "onUpdate:modelValue"]));
22
23
  }
23
24
  });
24
25
  export {
@@ -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-BMg-dFo1.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-DgKVFQxB.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-BMg-dFo1.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-C8vZJxmW.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-D0KEpIug.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-D0KEpIug.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,6 +1,6 @@
1
- import { defineComponent as s, computed as a, openBlock as i, 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-BMg-dFo1.js";
3
- const V = /* @__PURE__ */ s({
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-Ssy7Zaqp.js";
3
+ const h = /* @__PURE__ */ i({
4
4
  __name: "DateTimeFormatPickerControl",
5
5
  props: {
6
6
  control: {},
@@ -15,17 +15,18 @@ const V = /* @__PURE__ */ s({
15
15
  const o = e, l = a(
16
16
  () => o.control.uischema
17
17
  ), n = a(() => l.value.options), d = a(() => n.value?.allowedFormats), r = m(l, "dateTimeFormats", []);
18
- return (f, p) => (i(), c(t(u), {
18
+ return (f, p) => (s(), c(t(u), {
19
19
  id: e.labelForId,
20
+ ariaLabel: e.control.label,
20
21
  "model-value": o.control.data,
21
22
  disabled: e.disabled,
22
23
  "allowed-formats": d.value,
23
24
  "all-default-formats": t(r) ?? [],
24
25
  error: !e.isValid,
25
26
  "onUpdate:modelValue": e.changeValue
26
- }, null, 8, ["id", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
27
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
27
28
  }
28
29
  });
29
30
  export {
30
- V as default
31
+ h as default
31
32
  };
@@ -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
+ };
@@ -0,0 +1,30 @@
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-ItF87hxE.js";
3
+ import { _ as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js";
4
+ const f = /* @__PURE__ */ l({
5
+ __name: "DropdownControl",
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(e) {
16
+ const o = e, { possibleValues: a } = r(n(o, "control"));
17
+ return (u, c) => (t(), i(s, {
18
+ id: e.labelForId ?? "",
19
+ ariaLabel: e.control.label,
20
+ disabled: e.disabled,
21
+ "model-value": e.control.data ?? "",
22
+ "possible-values": d(a),
23
+ error: !e.isValid,
24
+ "onUpdate:modelValue": e.changeValue
25
+ }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "onUpdate:modelValue"]));
26
+ }
27
+ });
28
+ export {
29
+ f as default
30
+ };
@@ -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-C74PY7Xg.js";
3
- import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BMg-dFo1.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: {