@knime/jsonforms 0.1.7 → 1.0.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 (223) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +71 -70
  3. package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
  4. package/dist/BaseButton-arvXMjXG.js +112 -0
  5. package/dist/Button-Bc51Uur8.js +83 -0
  6. package/dist/Checkbox-BxPISyW3.js +75 -0
  7. package/dist/CheckboxControl-B-RyvD0K.js +42 -0
  8. package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
  9. package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
  10. package/dist/ColumnFilter-bO-fKaHD.js +22 -0
  11. package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
  12. package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
  13. package/dist/DateControl-v0qHckKz.js +27 -0
  14. package/dist/DateTimeControl-COnMFfMd.js +47 -0
  15. package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
  16. package/dist/Dropdown-By1NMrXZ.js +691 -0
  17. package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
  19. package/dist/ErrorMessage-fuIcc8xw.js +23 -0
  20. package/dist/FunctionButton-DBec3TQi.js +75 -0
  21. package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
  22. package/dist/InputField-BKH5rtn3.js +148 -0
  23. package/dist/IntegerControl-CBuOHc4B.js +18 -0
  24. package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
  25. package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
  26. package/dist/NameFilter-oHBcHQTY.js +22 -0
  27. package/dist/NumberControl-Cwf50Oe-.js +18 -0
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
  29. package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
  30. package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
  31. package/dist/RadioControl-DsVkQLSI.js +22 -0
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
  33. package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
  34. package/dist/SectionLayout-BDgtf57K.js +43 -0
  35. package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
  36. package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
  37. package/dist/SortListControl-On9GHu_U.js +356 -0
  38. package/dist/TextAreaControl-DF_pLD80.js +108 -0
  39. package/dist/TextControl-BTZ4ONmV.js +4 -0
  40. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
  41. package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
  42. package/dist/TwinlistControl-DcFpZrni.js +553 -0
  43. package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
  44. package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
  45. package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
  46. package/dist/VerticalLayout-D1KXulG4.js +30 -0
  47. package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
  48. package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
  49. package/dist/_baseAssignValue-C56BMUo_.js +19 -0
  50. package/dist/_baseEach-1sO8_8tT.js +31 -0
  51. package/dist/_baseIsEqual-d71B2UwX.js +248 -0
  52. package/dist/_baseIteratee-BgB8cpN8.js +104 -0
  53. package/dist/_getTag-BiNJdVyP.js +314 -0
  54. package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
  55. package/dist/close-h7XT0ja0.js +17 -0
  56. package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
  57. package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
  58. package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
  59. package/dist/index-C1PjXAJX.js +17 -0
  60. package/dist/index-Cp7Xre_V.js +331 -0
  61. package/dist/isObject-B53jY8Qg.js +7 -0
  62. package/dist/isSymbol-DLKDpjGl.js +8 -0
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.d.ts +2 -0
  65. package/dist/knime-jsonforms.js +119 -3
  66. package/dist/magic-string.es-DFyz70Kz.js +860 -0
  67. package/dist/popper-1JCni0RT.js +907 -0
  68. package/dist/reload-BhzcZRFp.js +17 -0
  69. package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
  70. package/dist/src/constants/index.d.ts +2 -0
  71. package/dist/src/constants/inputFormats.d.ts +25 -0
  72. package/dist/src/constants/priorityRanks.d.ts +4 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
  74. package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
  75. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
  76. package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
  77. package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
  78. package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
  79. package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
  80. package/dist/src/higherOrderComponents/index.d.ts +3 -0
  81. package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
  82. package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
  83. package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
  84. package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
  85. package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
  86. package/dist/src/higherOrderComponents/types.d.ts +25 -0
  87. package/dist/src/index.d.ts +9 -0
  88. package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
  89. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
  90. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
  91. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
  92. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
  93. package/dist/src/layoutComponents/index.d.ts +3 -0
  94. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
  95. package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
  96. package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
  97. package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
  98. package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
  99. package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
  100. package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
  101. package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
  102. package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
  103. package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
  104. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
  105. package/dist/src/renderers/index.d.ts +1 -0
  106. package/dist/src/renderers/integerRenderer.d.ts +5 -0
  107. package/dist/src/renderers/intervalRenderer.d.ts +5 -0
  108. package/dist/src/renderers/localDateRenderer.d.ts +5 -0
  109. package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
  110. package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
  111. package/dist/src/renderers/numberRenderer.d.ts +5 -0
  112. package/dist/src/renderers/radioRenderer.d.ts +5 -0
  113. package/dist/src/renderers/richTextRenderer.d.ts +5 -0
  114. package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
  115. package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
  116. package/dist/src/renderers/sortListRenderer.d.ts +288 -0
  117. package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
  118. package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
  119. package/dist/src/renderers/textRenderer.d.ts +193 -0
  120. package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
  121. package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
  122. package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
  123. package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
  124. package/dist/src/types/Control.d.ts +2 -0
  125. package/dist/src/types/alert.d.ts +5 -0
  126. package/dist/src/types/provided.d.ts +25 -0
  127. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
  128. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
  129. package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
  130. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
  131. package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
  132. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
  133. package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
  134. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
  135. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
  136. package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
  137. package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
  138. package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
  139. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
  140. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
  141. package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
  142. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
  143. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
  144. package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
  145. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
  146. package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
  147. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
  148. package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
  149. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
  150. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
  151. package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
  152. package/dist/src/uiComponents/index.d.ts +4 -0
  153. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
  154. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
  155. package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
  156. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
  157. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
  158. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
  159. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
  160. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
  161. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
  162. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
  163. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
  164. package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
  165. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
  166. package/dist/src/utils/index.d.ts +15 -0
  167. package/dist/src/utils/inject.d.ts +3 -0
  168. package/dist/src/utils/localTimeUtils.d.ts +16 -0
  169. package/dist/svgWithTitle-zrGi2kyc.js +18 -0
  170. package/dist/testUtils/component.d.ts +190 -0
  171. package/dist/testUtils/index.d.ts +2 -0
  172. package/dist/testUtils/renderer.d.ts +6 -0
  173. package/dist/testing.d.ts +2 -0
  174. package/dist/testing.js +18889 -0
  175. package/dist/toString-C9vll-oa.js +26 -0
  176. package/dist/useSearch-hpyYQ_6y.js +74 -0
  177. package/package.json +11 -7
  178. package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
  179. package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
  180. package/dist/ButtonControl-yAb2GdQI.js +0 -127
  181. package/dist/CheckboxControl-Ck45Jycu.js +0 -50
  182. package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
  183. package/dist/ColumnFilter-u7yVpuFC.js +0 -17
  184. package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
  185. package/dist/CredentialsControl-D1Te47JG.js +0 -20
  186. package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
  187. package/dist/DateControl-CuV2lKvs.js +0 -30
  188. package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
  189. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
  190. package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
  191. package/dist/FileChooserControl-HX_GjlNB.js +0 -605
  192. package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
  193. package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
  194. package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
  195. package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
  196. package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
  197. package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
  198. package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
  199. package/dist/NameFilter-CsfBC6e2.js +0 -17
  200. package/dist/NodeDialog.vue.d.ts +0 -8
  201. package/dist/NumberControl-BJCFqjn3.js +0 -13
  202. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
  203. package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
  204. package/dist/RadioControl-BZEV6NYx.js +0 -13
  205. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
  206. package/dist/SectionLayout-DtVREvcv.js +0 -54
  207. package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
  208. package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
  209. package/dist/SortListControl-DcW5Ofs5.js +0 -316
  210. package/dist/TextAreaControl-DTw_oBDS.js +0 -111
  211. package/dist/TextControl-BlfySQDC.js +0 -49
  212. package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
  213. package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
  214. package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
  215. package/dist/VerticalLayout-CTFSrGS8.js +0 -39
  216. package/dist/arrow-up-Dsq3EgtE.js +0 -30
  217. package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
  218. package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
  219. package/dist/index-1mTLieVA.js +0 -32714
  220. package/dist/index.d.ts +0 -3
  221. package/dist/layoutComponents/Form.vue.d.ts +0 -2
  222. package/dist/link-BA69Hfx6.js +0 -17
  223. package/dist/loading/LoadingDialog.vue.d.ts +0 -2
@@ -0,0 +1,65 @@
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
+ import { w as V } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
3
+ import { q as _, u as D } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
4
+ import { _ as F } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js";
5
+ import { b as $ } from "./_baseIsEqual-d71B2UwX.js";
6
+ function E(s, t) {
7
+ return $(s, t);
8
+ }
9
+ const U = /* @__PURE__ */ h({
10
+ __name: "ColumnSelect",
11
+ props: {
12
+ control: {},
13
+ handleChange: { type: Function },
14
+ changeValue: { type: Function },
15
+ disabled: { type: Boolean },
16
+ labelForId: {}
17
+ },
18
+ setup(s) {
19
+ const t = s, i = b(
20
+ () => {
21
+ var o;
22
+ return (o = t.control.uischema.options) == null ? void 0 : o.choicesProvider;
23
+ }
24
+ ), d = _("getPossibleValuesFromUiSchema"), a = V(
25
+ D(i, null),
26
+ t.control
27
+ ), m = new Promise((o) => {
28
+ v(() => {
29
+ a.value && o(a.value);
30
+ });
31
+ }), l = (o) => {
32
+ var n;
33
+ const e = a.value;
34
+ if (e === null)
35
+ throw new Error("Must not convert data before column choices are fetched.");
36
+ const c = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
37
+ return { selected: o, compatibleTypes: c };
38
+ }, r = ({ selected: o }) => o;
39
+ return w(() => a.value, () => {
40
+ const o = t.control.data, e = l(r(o));
41
+ E(o, e) || t.changeValue(e);
42
+ }), y(async () => {
43
+ i.value || (a.value = await d(t.control));
44
+ }), (o, e) => (P(), g(F, C({ ...o.$attrs, ...o.$props }, {
45
+ "async-initial-options": S(m),
46
+ "control-data-to-dropdown-value": r,
47
+ compact: "",
48
+ "dropdown-value-to-control-data": l
49
+ }), {
50
+ icon: u(() => [
51
+ p(o.$slots, "icon")
52
+ ]),
53
+ buttons: u(({ hover: c, controlHTMLElement: n }) => [
54
+ p(o.$slots, "buttons", {
55
+ hover: c,
56
+ controlHTMLElement: n
57
+ })
58
+ ]),
59
+ _: 3
60
+ }, 16, ["async-initial-options"]));
61
+ }
62
+ });
63
+ export {
64
+ U as default
65
+ };
@@ -1,11 +1,18 @@
1
- import { resolveComponent as O, openBlock as c, createElementBlock as v, normalizeClass as g, withKeys as p, withModifiers as r, renderSlot as k, createElementVNode as h, toDisplayString as B, createVNode as V, withDirectives as F, normalizeStyle as P, Fragment as x, renderList as M, createBlock as S, withCtx as w, createTextVNode as R, vShow as T, defineComponent as $, vModelText as U, computed as I, ref as D, onMounted as L, unref as b, createCommentVNode as H } from "vue";
2
- import { _ as N, m as K, X as j, Y as W, F as X, C as G, r as Y, a as q, V as J, p as Q, L as Z } from "./index-1mTLieVA.js";
3
- import { c as _ } from "./createMissingItem-B00Kg95q.js";
4
- const C = 1, ee = 28.5, te = 8, se = {
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
+ 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-BmCXzwjJ.js";
4
+ import { C as K } from "./close-h7XT0ja0.js";
5
+ import { F as j } from "./FunctionButton-DBec3TQi.js";
6
+ /* empty css */
7
+ import { u as W } from "./index-Cp7Xre_V.js";
8
+ import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
9
+ import { C as X } from "./Checkbox-BxPISyW3.js";
10
+ import { c as q } from "./createMissingItem-B00Kg95q.js";
11
+ const y = 1, J = 28.5, Q = 8, Y = {
5
12
  name: "Multiselect",
6
13
  components: {
7
- Checkbox: K,
8
- DropdownIcon: j
14
+ Checkbox: X,
15
+ DropdownIcon: G
9
16
  },
10
17
  props: {
11
18
  /**
@@ -140,7 +147,7 @@ const C = 1, ee = 28.5, te = 8, se = {
140
147
  },
141
148
  optionsHeight() {
142
149
  return this.useSpecificOptionsHeight ? {
143
- "max-height": `${this.sizeVisibleOptions * ee + te}px`
150
+ "max-height": `${this.sizeVisibleOptions * J + Q}px`
144
151
  } : {};
145
152
  },
146
153
  refocusElementOnClose() {
@@ -171,7 +178,7 @@ const C = 1, ee = 28.5, te = 8, se = {
171
178
  this.collapsed = !this.collapsed, setTimeout(() => {
172
179
  var e;
173
180
  (e = this.$refs.toggle) == null || e.focus();
174
- }, C);
181
+ }, y);
175
182
  },
176
183
  isChecked(e) {
177
184
  return this.modelValue.includes(e);
@@ -186,7 +193,7 @@ const C = 1, ee = 28.5, te = 8, se = {
186
193
  closeOptions(e = !0) {
187
194
  this.collapsed = !0, e && setTimeout(() => {
188
195
  this.refocusElementOnClose.focus();
189
- }, C);
196
+ }, y);
190
197
  },
191
198
  /**
192
199
  * Handle closing the options if necessary and stopping the event if so.
@@ -212,7 +219,7 @@ const C = 1, ee = 28.5, te = 8, se = {
212
219
  onFocusOut() {
213
220
  setTimeout(() => {
214
221
  this.focusElements.includes(document.activeElement) || (this.closeOptions(!1), this.useCustomListBox && this.$emit("focusOutside"));
215
- }, C);
222
+ }, y);
216
223
  },
217
224
  /*
218
225
  * Manually prevents default event bubbling and propagation for mousedown which can fire blur events that
@@ -232,62 +239,62 @@ const C = 1, ee = 28.5, te = 8, se = {
232
239
  ).map((e) => e.$el && e.$el.firstChild));
233
240
  }
234
241
  }
235
- }, oe = { key: 1 };
236
- function le(e, t, i, n, y, l) {
237
- const d = O("DropdownIcon"), m = O("Checkbox");
238
- return c(), v("div", {
242
+ }, Z = { key: 1 };
243
+ function _(e, t, i, n, h, l) {
244
+ const r = b("DropdownIcon"), c = b("Checkbox");
245
+ return d(), V("div", {
239
246
  ref: "multiselect",
240
- class: g(["multiselect", { collapsed: y.collapsed, invalid: !i.isValid, compact: i.compact }]),
247
+ class: w(["multiselect", { collapsed: h.collapsed, invalid: !i.isValid, compact: i.compact }]),
241
248
  onKeydown: [
242
- t[2] || (t[2] = p((...o) => l.closeOptionsAndStop && l.closeOptionsAndStop(...o), ["esc"])),
243
- t[3] || (t[3] = p(r((...o) => l.onUp && l.onUp(...o), ["stop", "prevent"]), ["up"])),
244
- t[4] || (t[4] = p(r((...o) => l.onDown && l.onDown(...o), ["stop", "prevent"]), ["down"]))
249
+ t[2] || (t[2] = u((...s) => l.closeOptionsAndStop && l.closeOptionsAndStop(...s), ["esc"])),
250
+ t[3] || (t[3] = u(a((...s) => l.onUp && l.onUp(...s), ["stop", "prevent"]), ["up"])),
251
+ t[4] || (t[4] = u(a((...s) => l.onDown && l.onDown(...s), ["stop", "prevent"]), ["down"]))
245
252
  ],
246
- onFocusout: t[5] || (t[5] = r((...o) => l.onFocusOut && l.onFocusOut(...o), ["stop"])),
247
- onMousedown: t[6] || (t[6] = (...o) => l.onMousedown && l.onMousedown(...o))
253
+ onFocusout: t[5] || (t[5] = a((...s) => l.onFocusOut && l.onFocusOut(...s), ["stop"])),
254
+ onMousedown: t[6] || (t[6] = (...s) => l.onMousedown && l.onMousedown(...s))
248
255
  }, [
249
- i.useCustomListBox ? k(e.$slots, "listBox", { key: 0 }, void 0, !0) : (c(), v("div", oe, [
250
- h("div", {
256
+ i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), V("div", Z, [
257
+ p("div", {
251
258
  ref: "toggle",
252
259
  role: "button",
253
260
  tabindex: "0",
254
- class: g({ placeholder: !i.modelValue.length }),
255
- onClick: t[0] || (t[0] = (...o) => l.toggle && l.toggle(...o)),
256
- onKeydown: t[1] || (t[1] = p(r((...o) => l.toggle && l.toggle(...o), ["prevent"]), ["space"]))
257
- }, B(l.summary), 35),
258
- V(d, { class: "icon" })
261
+ class: w({ placeholder: !i.modelValue.length }),
262
+ onClick: t[0] || (t[0] = (...s) => l.toggle && l.toggle(...s)),
263
+ onKeydown: t[1] || (t[1] = u(a((...s) => l.toggle && l.toggle(...s), ["prevent"]), ["space"]))
264
+ }, S(l.summary), 35),
265
+ f(r, { class: "icon" })
259
266
  ])),
260
- F(h("div", {
267
+ I(p("div", {
261
268
  class: "options",
262
- style: P(l.optionsHeight)
269
+ style: A(l.optionsHeight)
263
270
  }, [
264
- (c(!0), v(x, null, M(i.possibleValues, (o, s) => (c(), S(m, {
271
+ (d(!0), V(k, null, D(i.possibleValues, (s, o) => (d(), C(c, {
265
272
  ref_for: !0,
266
273
  ref: "option",
267
- key: `multiselect-${o.id}`,
268
- "data-index": s,
269
- "model-value": l.isChecked(o.id),
270
- disabled: o.disabled,
274
+ key: `multiselect-${s.id}`,
275
+ "data-index": o,
276
+ "model-value": l.isChecked(s.id),
277
+ disabled: s.disabled,
271
278
  class: "boxes",
272
- "onUpdate:modelValue": (f) => l.onUpdateModelValue(o.id, f)
279
+ "onUpdate:modelValue": (m) => l.onUpdateModelValue(s.id, m)
273
280
  }, {
274
- default: w(() => [
275
- R(B(o.text), 1)
281
+ default: O(() => [
282
+ x(S(s.text), 1)
276
283
  ]),
277
284
  _: 2
278
285
  }, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))), 128)),
279
- k(e.$slots, "selectAction", {}, void 0, !0)
286
+ F(e.$slots, "selectAction", {}, void 0, !0)
280
287
  ], 4), [
281
- [T, l.showOptions]
288
+ [P, l.showOptions]
282
289
  ])
283
290
  ], 34);
284
291
  }
285
- const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a"]]), E = "draft-id-combobox-preview-item", ne = $({
292
+ const ee = /* @__PURE__ */ E(Y, [["render", _], ["__scopeId", "data-v-e722538a"]]), g = "draft-id-combobox-preview-item", te = M({
286
293
  name: "ComboBox",
287
294
  components: {
288
- Multiselect: ie,
289
- FunctionButton: X,
290
- CloseIcon: G
295
+ Multiselect: ee,
296
+ FunctionButton: j,
297
+ CloseIcon: K
291
298
  },
292
299
  props: {
293
300
  /**
@@ -378,7 +385,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
378
385
  ({ id: i, text: n }) => n.toLowerCase().includes(this.trimmedLowerCasedSearchValue) || i === this.trimmedSearchValue
379
386
  );
380
387
  return this.allowNewValues && !e && !this.isSearchEmpty ? [
381
- { id: E, text: `${this.trimmedSearchValue} (new item)` },
388
+ { id: g, text: `${this.trimmedSearchValue} (new item)` },
382
389
  ...t
383
390
  ] : t;
384
391
  },
@@ -390,7 +397,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
390
397
  },
391
398
  selectedValues() {
392
399
  return this.modelValue.map(
393
- (e) => this.allPossibleItems.find((t) => e === t.id) || _(e)
400
+ (e) => this.allPossibleItems.find((t) => e === t.id) || q(e)
394
401
  );
395
402
  },
396
403
  maxSizeVisibleOptions() {
@@ -432,7 +439,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
432
439
  this.inputOrOptionsFocussed || this.$refs.combobox.toggle(), this.inputOrOptionsFocussed = !0, this.$refs.combobox.updateFocusOptions();
433
440
  },
434
441
  updateSelectedIds(e) {
435
- if (!e.includes(E)) {
442
+ if (!e.includes(g)) {
436
443
  this.emitNewSelection(e);
437
444
  return;
438
445
  }
@@ -441,7 +448,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
441
448
  text: this.trimmedSearchValue
442
449
  };
443
450
  this.allPossibleItems.push(i), this.emitNewSelection(
444
- e.map((n) => n === E ? i.id : n)
451
+ e.map((n) => n === g ? i.id : n)
445
452
  );
446
453
  },
447
454
  removeTag(e) {
@@ -457,10 +464,10 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
457
464
  this.$refs.combobox.closeOptions();
458
465
  }
459
466
  }
460
- }), ae = ["title"], ue = { class: "icon-right" };
461
- function re(e, t, i, n, y, l) {
462
- const d = O("CloseIcon"), m = O("FunctionButton"), o = O("Multiselect");
463
- return c(), S(o, {
467
+ }), se = ["title"], oe = { class: "icon-right" };
468
+ function le(e, t, i, n, h, l) {
469
+ const r = b("CloseIcon"), c = b("FunctionButton"), s = b("Multiselect");
470
+ return d(), C(s, {
464
471
  ref: "combobox",
465
472
  "model-value": e.modelValue,
466
473
  "possible-values": e.searchResults,
@@ -474,127 +481,121 @@ function re(e, t, i, n, y, l) {
474
481
  onFocusOutside: e.onFocusOutside,
475
482
  "onUpdate:modelValue": e.updateSelectedIds
476
483
  }, {
477
- listBox: w(() => [
478
- h("div", {
484
+ listBox: O(() => [
485
+ p("div", {
479
486
  ref: "listBox",
480
487
  class: "summary-input-icon-wrapper",
481
488
  tabindex: "0",
482
- onKeydown: t[8] || (t[8] = p(r((...s) => e.focusInput && e.focusInput(...s), ["prevent", "self"]), ["enter"]))
489
+ onKeydown: t[8] || (t[8] = u(a((...o) => e.focusInput && e.focusInput(...o), ["prevent", "self"]), ["enter"]))
483
490
  }, [
484
- h("div", {
485
- class: g([
491
+ p("div", {
492
+ class: w([
486
493
  "summary-input-wrapper",
487
494
  { "with-icon-right": e.hasSelection, compact: e.compact }
488
495
  ]),
489
- onClick: t[7] || (t[7] = r((...s) => e.focusInput && e.focusInput(...s), ["stop"]))
496
+ onClick: t[7] || (t[7] = a((...o) => e.focusInput && e.focusInput(...o), ["stop"]))
490
497
  }, [
491
- (c(!0), v(x, null, M(e.selectedValues, ({ id: s, text: f, invalid: a }, u) => (c(), v("div", {
492
- key: `item.id${u}`,
498
+ (d(!0), V(k, null, D(e.selectedValues, ({ id: o, text: m, invalid: T }, $) => (d(), V("div", {
499
+ key: `item.id${$}`,
493
500
  class: "tag",
494
- title: f
501
+ title: m
495
502
  }, [
496
- h("span", {
497
- class: g(["text", { invalid: a }])
498
- }, B(f), 3),
499
- V(m, {
503
+ p("span", {
504
+ class: w(["text", { invalid: T }])
505
+ }, S(m), 3),
506
+ f(c, {
500
507
  class: "remove-tag-button",
501
508
  compact: e.compact,
502
- onClick: r((A) => e.removeTag(s), ["stop"])
509
+ onClick: a((ae) => e.removeTag(o), ["stop"])
503
510
  }, {
504
- default: w(() => [
505
- V(d, { class: "remove-tag-button-icon" })
511
+ default: O(() => [
512
+ f(r, { class: "remove-tag-button-icon" })
506
513
  ]),
507
514
  _: 2
508
515
  }, 1032, ["compact", "onClick"])
509
- ], 8, ae))), 128)),
510
- F(h("input", {
516
+ ], 8, se))), 128)),
517
+ I(p("input", {
511
518
  ref: "searchInput",
512
- "onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchValue = s),
519
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.searchValue = o),
513
520
  class: "search-input",
514
521
  type: "text",
515
- style: P(e.inputWidth),
516
- onFocus: t[1] || (t[1] = (...s) => e.onInputFocus && e.onInputFocus(...s)),
517
- onInput: t[2] || (t[2] = (...s) => e.onInput && e.onInput(...s)),
522
+ style: A(e.inputWidth),
523
+ onFocus: t[1] || (t[1] = (...o) => e.onInputFocus && e.onInputFocus(...o)),
524
+ onInput: t[2] || (t[2] = (...o) => e.onInput && e.onInput(...o)),
518
525
  onKeydown: [
519
- t[3] || (t[3] = p(r((...s) => e.onEnter && e.onEnter(...s), ["prevent"]), ["enter"])),
520
- t[4] || (t[4] = p((...s) => e.onBackspace && e.onBackspace(...s), ["backspace"])),
521
- t[5] || (t[5] = p(r((...s) => e.onDown && e.onDown(...s), ["stop", "prevent"]), ["down"])),
522
- t[6] || (t[6] = p((...s) => e.closeOptionsAndStop && e.closeOptionsAndStop(...s), ["esc"]))
526
+ t[3] || (t[3] = u(a((...o) => e.onEnter && e.onEnter(...o), ["prevent"]), ["enter"])),
527
+ t[4] || (t[4] = u((...o) => e.onBackspace && e.onBackspace(...o), ["backspace"])),
528
+ t[5] || (t[5] = u(a((...o) => e.onDown && e.onDown(...o), ["stop", "prevent"]), ["down"])),
529
+ t[6] || (t[6] = u((...o) => e.closeOptionsAndStop && e.closeOptionsAndStop(...o), ["esc"]))
523
530
  ]
524
531
  }, null, 36), [
525
- [U, e.searchValue]
532
+ [z, e.searchValue]
526
533
  ])
527
534
  ], 2),
528
- F(h("div", ue, [
529
- V(m, {
535
+ I(p("div", oe, [
536
+ f(c, {
530
537
  ref: "removeAllTags",
531
538
  class: "remove-all-tags-button",
532
539
  compact: e.compact,
533
- onClick: r(e.removeAllTags, ["stop"])
540
+ onClick: a(e.removeAllTags, ["stop"])
534
541
  }, {
535
- default: w(() => [
536
- V(d)
542
+ default: O(() => [
543
+ f(r)
537
544
  ]),
538
545
  _: 1
539
546
  }, 8, ["compact", "onClick"])
540
547
  ], 512), [
541
- [T, e.hasSelection]
548
+ [P, e.hasSelection]
542
549
  ])
543
550
  ], 544)
544
551
  ]),
545
552
  _: 1
546
553
  }, 8, ["model-value", "possible-values", "size-visible-options", "parent-focus-element", "parent-refocus-element-on-close", "close-dropdown-on-selection", "is-valid", "compact", "onFocusOutside", "onUpdate:modelValue"]);
547
554
  }
548
- const de = /* @__PURE__ */ N(ne, [["render", re], ["__scopeId", "data-v-84cbb077"]]), pe = /* @__PURE__ */ $({
555
+ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077"]]), ne = /* @__PURE__ */ M({
549
556
  __name: "ComboBoxControl",
550
- props: Y(),
557
+ props: {
558
+ control: {},
559
+ handleChange: { type: Function },
560
+ changeValue: { type: Function },
561
+ disabled: { type: Boolean },
562
+ labelForId: {}
563
+ },
551
564
  setup(e) {
552
- const t = e, {
553
- control: i,
554
- onChange: n,
555
- disabled: y
556
- } = q({ props: t }), l = I(
565
+ const t = e, i = v(
557
566
  () => {
558
- var a, u;
559
- return (u = (a = i.value.uischema) == null ? void 0 : a.options) == null ? void 0 : u.choicesProvider;
567
+ var s, o;
568
+ return (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.choicesProvider;
560
569
  }
561
- ), d = J(
562
- Q(l, []),
563
- i.value
564
- ), m = D([]), o = D(!1);
565
- L(() => {
566
- var a, u;
567
- m.value = i.value.data, l.value || (d.value = (u = (a = i.value.uischema) == null ? void 0 : a.options) == null ? void 0 : u.possibleValues), o.value = !0;
570
+ ), n = L(
571
+ H(i, []),
572
+ t.control
573
+ ), h = B([]), l = B(!1);
574
+ R(() => {
575
+ var s, o;
576
+ h.value = t.control.data, i.value || (n.value = (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.possibleValues), l.value = !0;
568
577
  });
569
- const s = I(
570
- () => typeof d.value > "u"
571
- ), f = I(
578
+ const r = v(
579
+ () => typeof n.value > "u"
580
+ ), c = v(
572
581
  () => {
573
- var a;
574
- return y.value || s.value || ((a = d.value) == null ? void 0 : a.length) === 0;
582
+ var s;
583
+ return t.disabled || r.value || ((s = n.value) == null ? void 0 : s.length) === 0;
575
584
  }
576
585
  );
577
- return (a, u) => (c(), S(Z, {
578
- control: b(i),
579
- onControllingFlowVariableSet: b(n)
580
- }, {
581
- default: w(({ labelForId: A }) => [
582
- o.value ? (c(), S(b(de), {
583
- key: 0,
584
- id: A,
585
- "allow-new-values": s.value ? "" : !1,
586
- "aria-label": b(i).label,
587
- disabled: f.value,
588
- "possible-values": s.value ? [] : b(d),
589
- "model-value": m.value,
590
- compact: "",
591
- "onUpdate:modelValue": u[0] || (u[0] = (z) => b(n)(z))
592
- }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : H("", !0)
593
- ]),
594
- _: 1
595
- }, 8, ["control", "onControllingFlowVariableSet"]));
586
+ return (s, o) => l.value ? (d(), C(N(ie), {
587
+ key: 0,
588
+ id: s.labelForId,
589
+ "allow-new-values": r.value ? "" : !1,
590
+ "aria-label": s.control.label,
591
+ disabled: c.value,
592
+ "possible-values": r.value ? [] : N(n),
593
+ "model-value": h.value,
594
+ compact: "",
595
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => s.changeValue(m))
596
+ }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : U("", !0);
596
597
  }
597
- }), fe = /* @__PURE__ */ N(pe, [["__scopeId", "data-v-83cb973c"]]);
598
+ }), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-838db307"]]);
598
599
  export {
599
- fe as default
600
+ Oe as default
600
601
  };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
+ import { D as t } from "./DateTimeInput-ltP7o2TE.js";
3
+ const i = /* @__PURE__ */ o({
4
+ __name: "DateControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ labelForId: {}
11
+ },
12
+ setup(d) {
13
+ return (e, r) => (a(), l(n(t), {
14
+ id: e.labelForId,
15
+ "two-lines": "",
16
+ "model-value": new Date(e.control.data),
17
+ required: !0,
18
+ "show-time": !1,
19
+ compact: "",
20
+ disabled: e.disabled,
21
+ "onUpdate:modelValue": e.changeValue
22
+ }, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]));
23
+ }
24
+ });
25
+ export {
26
+ i as default
27
+ };
@@ -0,0 +1,47 @@
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-ltP7o2TE.js";
3
+ const F = /* @__PURE__ */ r({
4
+ __name: "DateTimeControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ labelForId: {}
11
+ },
12
+ setup(s) {
13
+ const u = s, o = a(() => u.control.uischema.options), d = a(
14
+ () => {
15
+ var e;
16
+ return (e = o.value) != null && e.minimum ? new Date(o.value.minimum) : null;
17
+ }
18
+ ), c = a(
19
+ () => {
20
+ var e;
21
+ return (e = o.value) != null && e.maximum ? new Date(o.value.maximum) : null;
22
+ }
23
+ );
24
+ return (e, f) => {
25
+ var n, l, m, t, i;
26
+ return p(), h(v(w), {
27
+ id: e.labelForId,
28
+ "two-lines": "",
29
+ "model-value": new Date(e.control.data),
30
+ required: !0,
31
+ "show-time": (n = o.value) == null ? void 0 : n.showTime,
32
+ "show-seconds": (l = o.value) == null ? void 0 : l.showSeconds,
33
+ "show-milliseconds": (m = o.value) == null ? void 0 : m.showMilliseconds,
34
+ timezone: (t = o.value) == null ? void 0 : t.timezone,
35
+ "date-format": (i = o.value) == null ? void 0 : i.dateFormat,
36
+ min: d.value,
37
+ max: c.value,
38
+ compact: "",
39
+ disabled: e.disabled,
40
+ "onUpdate:modelValue": e.changeValue
41
+ }, null, 8, ["id", "model-value", "show-time", "show-seconds", "show-milliseconds", "timezone", "date-format", "min", "max", "disabled", "onUpdate:modelValue"]);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ F as default
47
+ };