@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
@@ -1,9 +1,29 @@
1
- import { openBlock as m, createElementBlock as _, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as p, defineComponent as U, mergeModels as G, useModel as k, computed as x, Fragment as V, createBlock as j, withDirectives as M, createVNode as h, vShow as b, renderList as X, unref as u, withCtx as H, createTextVNode as ge, pushScopeId as De, popScopeId as xe, ref as T, watch as K, normalizeClass as ye, withKeys as Pe, vModelText as $e, normalizeStyle as Me } from "vue";
2
- import { _ as F, F as Ae, a4 as Re, a5 as we, d as be, f as Ne, a6 as Ve, e as Se, r as Ce, a as Oe, p as Ge, L as ke } from "./index-1mTLieVA.js";
3
- import { u as He } from "./floating-ui.vue.esm-D_FlISFP.js";
4
- import { N as W } from "./NumberInput-84bJjfB4.js";
5
- import { V as q } from "./ValueSwitch-DXmeJXda.js";
6
- const J = (e, t) => ({
1
+ import { openBlock as p, createElementBlock as E, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as D, Fragment as V, createBlock as j, withDirectives as P, createVNode as I, vShow as b, renderList as z, unref as c, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as h, watch as K, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
2
+ import { _ as H, u as Ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { o as Re, a as we } from "./index-Cp7Xre_V.js";
4
+ import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue.esm-CDpUY3-t.js";
5
+ import { F as Oe } from "./FunctionButton-DBec3TQi.js";
6
+ import { N as W } from "./NumberInput-DERn3NyL.js";
7
+ import { V as q } from "./ValueSwitch-CpE1f4ie.js";
8
+ const Ge = {
9
+ name: "Tooltip",
10
+ props: {
11
+ text: {
12
+ type: String,
13
+ required: !0
14
+ }
15
+ }
16
+ }, ke = { class: "tooltip" }, Be = {
17
+ key: 0,
18
+ class: "text"
19
+ };
20
+ function Fe(e, t, a, n, i, s) {
21
+ return p(), E("div", ke, [
22
+ Te(e.$slots, "default", {}, void 0, !0),
23
+ a.text ? (p(), E("span", Be, w(a.text), 1)) : B("", !0)
24
+ ]);
25
+ }
26
+ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), J = (e, t) => ({
7
27
  negative: e,
8
28
  years: parseInt(t[1] ?? "0", 10),
9
29
  months: parseInt(t[2] ?? "0", 10),
@@ -22,7 +42,7 @@ const J = (e, t) => ({
22
42
  }, N = (e) => e.type === "DATE" ? e.interval.years === 0 && e.interval.months === 0 && e.interval.weeks === 0 && e.interval.days === 0 : e.interval.hours === 0 && e.interval.minutes === 0 && e.interval.seconds === 0 && e.interval.milliseconds === 0, S = (e) => {
23
43
  let t = "P";
24
44
  return e.type === "DATE" ? t += `${e.interval.years}Y${e.interval.months}M${e.interval.weeks}W${e.interval.days}D` : t += `T${e.interval.hours}H${e.interval.minutes}M${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")}S`, e.interval.negative && (t = `-${t}`), t;
25
- }, $ = (e) => {
45
+ }, M = (e) => {
26
46
  const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
27
47
  let a = "";
28
48
  if (e.type === "DATE") {
@@ -43,33 +63,33 @@ const J = (e, t) => ({
43
63
  ), ie = new RegExp(
44
64
  `^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
45
65
  "i"
46
- ), Be = new RegExp(
66
+ ), Ue = new RegExp(
47
67
  `^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
48
68
  "i"
49
- ), Ue = new RegExp(
69
+ ), ze = new RegExp(
50
70
  `^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
51
71
  "i"
52
- ), Fe = new RegExp(
72
+ ), Xe = new RegExp(
53
73
  `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
54
74
  "i"
55
- ), ze = new RegExp(
75
+ ), Ke = new RegExp(
56
76
  `^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
57
77
  "i"
58
78
  ), de = (e) => {
59
79
  if (e = e == null ? void 0 : e.trim(), !e)
60
80
  throw new Error("Empty interval string");
61
- const t = re.exec(e), a = Be.exec(e) ?? Ue.exec(e), n = ie.exec(e), i = Fe.exec(e) ?? ze.exec(e), r = t ?? a, d = n ?? i, f = (a ?? i) !== null;
62
- if (d && r)
81
+ const t = re.exec(e), a = Ue.exec(e) ?? ze.exec(e), n = ie.exec(e), i = Xe.exec(e) ?? Ke.exec(e), s = t ?? a, d = n ?? i, _ = (a ?? i) !== null;
82
+ if (d && s)
63
83
  throw new Error("Ambiguous time format");
64
- if (r)
84
+ if (s)
65
85
  return {
66
86
  type: "DATE",
67
- interval: J(f, r)
87
+ interval: J(_, s)
68
88
  };
69
89
  if (d)
70
90
  return {
71
91
  type: "TIME",
72
- interval: Q(f, d)
92
+ interval: Q(_, d)
73
93
  };
74
94
  throw new Error(`Invalid human readable time: ${e}`);
75
95
  }, ue = (e, t) => {
@@ -84,7 +104,7 @@ const J = (e, t) => ({
84
104
  } catch {
85
105
  return { valid: !1 };
86
106
  }
87
- }, D = (e) => {
107
+ }, g = (e) => {
88
108
  if (e = e == null ? void 0 : e.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
89
109
  throw new Error("Empty ISO duration");
90
110
  const t = /^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?$/, a = /^-?PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:[,.](\d{1,3}))?S)?$/, n = t.exec(e), i = a.exec(e);
@@ -107,7 +127,7 @@ const J = (e, t) => ({
107
127
  throw new Error(`Invalid ISO duration: ${e}`);
108
128
  }, ce = (e, t) => {
109
129
  try {
110
- const a = D(e), n = a.type, i = a.interval.negative;
130
+ const a = g(e), n = a.type, i = a.interval.negative;
111
131
  return n === t || t === "DATE_OR_TIME" ? {
112
132
  valid: !0,
113
133
  type: n,
@@ -117,50 +137,32 @@ const J = (e, t) => ({
117
137
  } catch {
118
138
  return { valid: !1 };
119
139
  }
120
- }, Xe = (e) => {
140
+ }, We = (e) => {
121
141
  const t = ce(e, "DATE_OR_TIME"), a = ue(
122
142
  e,
123
143
  "DATE_OR_TIME"
124
144
  );
125
145
  if (t.valid)
126
- return D(e);
146
+ return g(e);
127
147
  if (a.valid)
128
148
  return de(e);
129
149
  throw new Error(`Invalid interval string: ${e}`);
130
150
  }, C = (e, t) => {
131
151
  const a = ce(e, t), n = ue(e, t);
132
152
  return a.valid ? a : n.valid ? n : { valid: !1 };
133
- }, Ke = {
134
- name: "Tooltip",
135
- props: {
136
- text: {
137
- type: String,
138
- required: !0
139
- }
140
- }
141
- }, We = { class: "tooltip" }, qe = {
142
- key: 0,
143
- class: "text"
144
- };
145
- function Le(e, t, a, n, i, r) {
146
- return m(), _("div", We, [
147
- Te(e.$slots, "default", {}, void 0, !0),
148
- a.text ? (m(), _("span", qe, w(a.text), 1)) : B("", !0)
149
- ]);
150
- }
151
- const Ye = /* @__PURE__ */ F(Ke, [["render", Le], ["__scopeId", "data-v-05123edc"]]), Ze = {
153
+ }, qe = {
152
154
  xmlns: "http://www.w3.org/2000/svg",
153
155
  fill: "none",
154
156
  stroke: "#000",
155
157
  "stroke-linejoin": "round",
156
158
  viewBox: "0 0 32 32"
157
- }, je = /* @__PURE__ */ p("path", { d: "m19.7 17-4.6-2.6V8.7m6.3 15.6h8.7m-3.2-3.2 3.2 3.2-3.2 3.2m-18-5.4c-2.2-1.8-3.6-4.6-3.6-7.7 0-5.5 4.4-9.9 9.9-9.9S25 8.9 25 14.4s-4.4 9.9-9.9 9.9H1.9" }, null, -1), Je = [
158
- je
159
+ }, Le = /* @__PURE__ */ v("path", { d: "m19.7 17-4.6-2.6V8.7m6.3 15.6h8.7m-3.2-3.2 3.2 3.2-3.2 3.2m-18-5.4c-2.2-1.8-3.6-4.6-3.6-7.7 0-5.5 4.4-9.9 9.9-9.9S25 8.9 25 14.4s-4.4 9.9-9.9 9.9H1.9" }, null, -1), Ye = [
160
+ Le
159
161
  ];
160
- function Qe(e, t) {
161
- return m(), _("svg", Ze, [...Je]);
162
+ function Ze(e, t) {
163
+ return p(), E("svg", qe, [...Ye]);
162
164
  }
163
- const et = { render: Qe }, L = [
165
+ const je = { render: Ze }, L = [
164
166
  "years",
165
167
  "months",
166
168
  "weeks",
@@ -170,7 +172,7 @@ const et = { render: Qe }, L = [
170
172
  "minutes",
171
173
  "seconds",
172
174
  "milliseconds"
173
- ], g = {
175
+ ], T = {
174
176
  years: { min: 0, max: Number.MAX_SAFE_INTEGER },
175
177
  months: { min: 0, max: Number.MAX_SAFE_INTEGER },
176
178
  weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
@@ -191,7 +193,7 @@ const et = { render: Qe }, L = [
191
193
  } : {
192
194
  ...t,
193
195
  durationPart: e.interval
194
- }, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), tt = (e) => (De("data-v-41a0e491"), e = e(), xe(), e), at = { class: "header" }, nt = /* @__PURE__ */ tt(() => /* @__PURE__ */ p("span", { class: "input-title" }, "Interval value", -1)), st = { class: "ascending-descending-switch-container" }, ot = { class: "input-grid" }, lt = { class: "input-label" }, rt = { class: "input-label" }, it = { class: "accept-controls" }, dt = /* @__PURE__ */ U({
196
+ }, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-41a0e491"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */ v("span", { class: "input-title" }, "Interval value", -1)), tt = { class: "ascending-descending-switch-container" }, at = { class: "input-grid" }, nt = { class: "input-label" }, st = { class: "input-label" }, ot = { class: "accept-controls" }, lt = /* @__PURE__ */ F({
195
197
  __name: "IntervalInputPopoverContent",
196
198
  props: /* @__PURE__ */ G({
197
199
  format: {},
@@ -208,44 +210,44 @@ const et = { render: Qe }, L = [
208
210
  }),
209
211
  emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
210
212
  setup(e, { emit: t }) {
211
- const a = t, n = e, i = k(e, "usedFormat"), r = k(e, "modelValue"), d = x(() => {
212
- const c = i.value === "DATE" ? L : Y, v = i.value === "DATE" ? c.map(
213
- (s) => r.value.periodPart[s]
214
- ) : c.map(
215
- (s) => r.value.durationPart[s]
213
+ const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = D(() => {
214
+ const u = i.value === "DATE" ? L : Y, m = i.value === "DATE" ? u.map(
215
+ (o) => s.value.periodPart[o]
216
+ ) : u.map(
217
+ (o) => s.value.durationPart[o]
216
218
  );
217
- for (let s = 0; s < v.length; s++)
218
- if (v[s] < g[c[s]].min || v[s] > g[c[s]].max)
219
+ for (let o = 0; o < m.length; o++)
220
+ if (m[o] < T[u[o]].min || m[o] > T[u[o]].max)
219
221
  return {
220
222
  valid: !1,
221
- reason: `${O(c[s])} out of bounds.`
223
+ reason: `${O(u[o])} out of bounds.`
222
224
  };
223
- return v.every((s) => s === 0) ? {
225
+ return m.every((o) => o === 0) ? {
224
226
  valid: !1,
225
227
  reason: "All values may not be zero."
226
228
  } : { valid: !0 };
227
- }), f = x({
229
+ }), _ = D({
228
230
  get() {
229
- return n.allowDescending ? i.value === "DATE" ? r.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : r.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
231
+ return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
230
232
  },
231
- set(c) {
232
- r.value.periodPart.negative = c === "DESCENDING", r.value.durationPart.negative = c === "DESCENDING";
233
+ set(u) {
234
+ s.value.periodPart.negative = u === "DESCENDING", s.value.durationPart.negative = u === "DESCENDING";
233
235
  }
234
- }), I = () => {
236
+ }), y = () => {
235
237
  a(
236
238
  "commit",
237
239
  i.value,
238
- r.value,
239
- f.value
240
+ s.value,
241
+ _.value
240
242
  );
241
243
  };
242
- return (c, v) => (m(), _(V, null, [
243
- p("span", at, [
244
- nt,
245
- n.format === "DATE_OR_TIME" ? (m(), j(q, {
244
+ return (u, m) => (p(), E(V, null, [
245
+ v("span", Qe, [
246
+ et,
247
+ n.format === "DATE_OR_TIME" ? (p(), j(q, {
246
248
  key: 0,
247
249
  modelValue: i.value,
248
- "onUpdate:modelValue": v[0] || (v[0] = (s) => i.value = s),
250
+ "onUpdate:modelValue": m[0] || (m[0] = (o) => i.value = o),
249
251
  "possible-values": [
250
252
  { id: "DATE", text: "Date" },
251
253
  { id: "TIME", text: "Time" }
@@ -253,10 +255,10 @@ const et = { render: Qe }, L = [
253
255
  compact: ""
254
256
  }, null, 8, ["modelValue"])) : B("", !0)
255
257
  ]),
256
- M(p("div", st, [
257
- h(q, {
258
- modelValue: f.value,
259
- "onUpdate:modelValue": v[1] || (v[1] = (s) => f.value = s),
258
+ P(v("div", tt, [
259
+ I(q, {
260
+ modelValue: _.value,
261
+ "onUpdate:modelValue": m[1] || (m[1] = (o) => _.value = o),
260
262
  compact: "",
261
263
  "possible-values": [
262
264
  { id: "ASCENDING", text: "Ascending interval" },
@@ -264,55 +266,55 @@ const et = { render: Qe }, L = [
264
266
  ]
265
267
  }, null, 8, ["modelValue"])
266
268
  ], 512), [
267
- [b, c.allowDescending]
269
+ [b, u.allowDescending]
268
270
  ]),
269
- p("div", ot, [
270
- (m(!0), _(V, null, X(u(L), (s) => M((m(), _("span", {
271
- key: s,
271
+ v("div", at, [
272
+ (p(!0), E(V, null, z(c(L), (o) => P((p(), E("span", {
273
+ key: o,
272
274
  class: "labeled-date-time-input"
273
275
  }, [
274
- p("span", lt, w(u(O)(s)), 1),
275
- h(W, {
276
- modelValue: r.value.periodPart[s],
277
- "onUpdate:modelValue": (y) => r.value.periodPart[s] = y,
278
- min: u(g)[s].min,
279
- max: u(g)[s].max,
276
+ v("span", nt, w(c(O)(o)), 1),
277
+ I(W, {
278
+ modelValue: s.value.periodPart[o],
279
+ "onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
280
+ min: c(T)[o].min,
281
+ max: c(T)[o].max,
280
282
  compact: "",
281
283
  type: "integer"
282
284
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
283
285
  ], 512)), [
284
286
  [b, i.value === "DATE"]
285
287
  ])), 128)),
286
- (m(!0), _(V, null, X(u(Y), (s) => M((m(), _("span", {
287
- key: s,
288
+ (p(!0), E(V, null, z(c(Y), (o) => P((p(), E("span", {
289
+ key: o,
288
290
  class: "labeled-date-time-input"
289
291
  }, [
290
- p("span", rt, w(u(O)(s)), 1),
291
- h(W, {
292
- "model-value": r.value.durationPart[s],
293
- min: u(g)[s].min,
294
- max: u(g)[s].max,
292
+ v("span", st, w(c(O)(o)), 1),
293
+ I(W, {
294
+ "model-value": s.value.durationPart[o],
295
+ min: c(T)[o].min,
296
+ max: c(T)[o].max,
295
297
  compact: "",
296
298
  type: "integer",
297
- "onUpdate:modelValue": (y) => {
298
- r.value.durationPart[s] = y;
299
+ "onUpdate:modelValue": (x) => {
300
+ s.value.durationPart[o] = x;
299
301
  }
300
302
  }, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
301
303
  ], 512)), [
302
304
  [b, i.value === "TIME"]
303
305
  ])), 128))
304
306
  ]),
305
- p("div", it, [
306
- h(Ye, {
307
+ v("div", ot, [
308
+ I(He, {
307
309
  text: d.value.valid ? "" : d.value.reason
308
310
  }, {
309
- default: H(() => [
310
- h(Ae, {
311
+ default: X(() => [
312
+ I(Oe, {
311
313
  primary: "",
312
314
  disabled: !d.value.valid,
313
- onClick: I
315
+ onClick: y
314
316
  }, {
315
- default: H(() => [
317
+ default: X(() => [
316
318
  ge(" Set " + w(i.value.toLowerCase()) + " interval ", 1)
317
319
  ]),
318
320
  _: 1
@@ -323,11 +325,11 @@ const et = { render: Qe }, L = [
323
325
  ])
324
326
  ], 64));
325
327
  }
326
- }), ut = /* @__PURE__ */ F(dt, [["__scopeId", "data-v-41a0e491"]]), ct = { class: "input-fields" }, vt = ["disabled", "placeholder"], pt = {
328
+ }), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-41a0e491"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
327
329
  key: 0,
328
330
  class: "invalid-marker"
329
- }, mt = ["disabled"], ft = {}, Et = /* @__PURE__ */ U({
330
- ...ft,
331
+ }, ct = ["disabled"], vt = {}, pt = /* @__PURE__ */ F({
332
+ ...vt,
331
333
  __name: "IntervalInput",
332
334
  props: /* @__PURE__ */ G({
333
335
  format: { default: "DATE_OR_TIME" },
@@ -342,23 +344,23 @@ const et = { render: Qe }, L = [
342
344
  }),
343
345
  emits: ["update:modelValue"],
344
346
  setup(e) {
345
- const t = e, a = k(e, "modelValue"), n = T(
347
+ const t = e, a = k(e, "modelValue"), n = h(
346
348
  (() => {
347
349
  if (t.format === "DATE_OR_TIME") {
348
- const o = C(
350
+ const l = C(
349
351
  a.value,
350
352
  "DATE_OR_TIME"
351
353
  );
352
- return o.valid ? o.type : "DATE";
354
+ return l.valid ? l.type : "DATE";
353
355
  } else
354
356
  return t.format;
355
357
  })()
356
- ), i = x(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), r = T(
358
+ ), i = D(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s = h(
357
359
  (() => {
358
- const o = D(
360
+ const l = g(
359
361
  a.value
360
362
  );
361
- return R(o, {
363
+ return R(l, {
362
364
  periodPart: {
363
365
  negative: !1,
364
366
  years: 0,
@@ -375,78 +377,78 @@ const et = { render: Qe }, L = [
375
377
  }
376
378
  });
377
379
  })()
378
- ), d = T(
379
- $(
380
- D(a.value)
380
+ ), d = h(
381
+ M(
382
+ g(a.value)
381
383
  )
382
- ), f = x(() => {
383
- const o = C(
384
+ ), _ = D(() => {
385
+ const l = C(
384
386
  d.value,
385
387
  "DATE_OR_TIME"
386
388
  );
387
- return o.valid && (t.allowDescending || !o.negative) && !o.zero && (o.type === n.value || t.format === "DATE_OR_TIME");
388
- }), I = T(null), c = T(null), v = T(null), s = (o, l) => {
389
- const E = Z(
390
- o,
391
- l
389
+ return l.valid && (t.allowDescending || !l.negative) && !l.zero && (l.type === n.value || t.format === "DATE_OR_TIME");
390
+ }), y = h(null), u = h(null), m = h(null), o = (l, r) => {
391
+ const f = Z(
392
+ l,
393
+ r
392
394
  );
393
- d.value = $(E), a.value = S(E), n.value = l, r.value = o;
394
- }, y = () => {
395
- r.value = R(
396
- D(a.value),
397
- r.value
395
+ d.value = M(f), a.value = S(f), n.value = r, s.value = l;
396
+ }, x = () => {
397
+ s.value = R(
398
+ g(a.value),
399
+ s.value
398
400
  );
399
- }, ve = (o) => {
400
- const l = C(
401
- o,
401
+ }, ve = (l) => {
402
+ const r = C(
403
+ l,
402
404
  "DATE_OR_TIME"
403
405
  );
404
- if (!l.valid || l.zero || !t.allowDescending && l.negative || l.type !== n.value && t.format !== "DATE_OR_TIME")
406
+ if (!r.valid || r.zero || !t.allowDescending && r.negative || r.type !== n.value && t.format !== "DATE_OR_TIME")
405
407
  return;
406
- const E = Xe(
407
- o
408
+ const f = We(
409
+ l
408
410
  );
409
- r.value = R(
410
- E,
411
- r.value
412
- ), a.value = S(E), n.value = l.type, d.value = $(E);
413
- }, pe = (o) => {
414
- const l = D(o);
415
- d.value = $(l), r.value = R(
416
- l,
417
- r.value
418
- ), a.value = o;
419
- }, me = (o) => {
420
- const l = Z(
421
- r.value,
422
- o
411
+ s.value = R(
412
+ f,
413
+ s.value
414
+ ), a.value = S(f), n.value = r.type, d.value = M(f);
415
+ }, pe = (l) => {
416
+ const r = g(l);
417
+ d.value = M(r), s.value = R(
418
+ r,
419
+ s.value
420
+ ), a.value = l;
421
+ }, me = (l) => {
422
+ const r = Z(
423
+ s.value,
424
+ l
423
425
  );
424
- d.value = $(l), a.value = S(l), n.value = o;
425
- }, fe = (o) => {
426
- o !== "DATE_OR_TIME" && me(o);
427
- }, P = T(!1);
426
+ d.value = M(r), a.value = S(r), n.value = l;
427
+ }, fe = (l) => {
428
+ l !== "DATE_OR_TIME" && me(l);
429
+ }, $ = h(!1);
428
430
  K(() => t.format, fe), K(a, pe);
429
- const z = (o) => {
430
- ve(o);
431
- }, A = (o, l) => {
432
- o && l ? s(
433
- l.popoverValues,
434
- l.usedFormat
435
- ) : y(), P.value = !1;
431
+ const U = (l) => {
432
+ ve(l);
433
+ }, A = (l, r) => {
434
+ l && r ? o(
435
+ r.popoverValues,
436
+ r.usedFormat
437
+ ) : x(), $.value = !1;
436
438
  };
437
- Re(I, () => A(!1), {
438
- ignore: [c]
439
+ Re(y, () => A(!1), {
440
+ ignore: [u]
439
441
  }), we("Escape", () => A(!1));
440
- const { floatingStyles: Ee, update: _e } = He(c, I, {
442
+ const { floatingStyles: Ee, update: _e } = be(u, y, {
441
443
  middleware: [
442
- be(),
444
+ Ne(),
443
445
  // move left/right to keep it on screen
444
- Ne({
446
+ Ve({
445
447
  // flip it vertically to keep it on screen
446
448
  mainAxis: !0,
447
449
  crossAxis: !1
448
450
  }),
449
- Ve({
451
+ Se({
450
452
  // move it a bit away from the button vertically
451
453
  mainAxis: 2,
452
454
  // vertical
@@ -455,95 +457,91 @@ const et = { render: Qe }, L = [
455
457
  })
456
458
  ],
457
459
  placement: "top-end",
458
- whileElementsMounted: Se
460
+ whileElementsMounted: Ce
459
461
  });
460
- return (o, l) => (m(), _("div", null, [
461
- p("div", {
462
- class: ye(["wrapper", { disabled: o.disabled, compact: o.compact }])
462
+ return (l, r) => (p(), E("div", null, [
463
+ v("div", {
464
+ class: xe(["wrapper", { disabled: l.disabled, compact: l.compact }])
463
465
  }, [
464
- p("span", ct, [
465
- M(p("input", {
466
+ v("span", it, [
467
+ P(v("input", {
466
468
  ref_key: "inputTextFieldRef",
467
- ref: v,
468
- "onUpdate:modelValue": l[0] || (l[0] = (E) => d.value = E),
469
+ ref: m,
470
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f),
469
471
  type: "text",
470
- disabled: o.disabled,
472
+ disabled: l.disabled,
471
473
  placeholder: i.value,
472
474
  spellcheck: "false",
473
- onFocus: l[1] || (l[1] = (E) => P.value = !1),
474
- onFocusout: l[2] || (l[2] = () => z(d.value)),
475
- onKeypress: l[3] || (l[3] = Pe(() => z(d.value), ["enter"]))
476
- }, null, 40, vt), [
477
- [$e, d.value]
475
+ onFocus: r[1] || (r[1] = (f) => $.value = !1),
476
+ onFocusout: r[2] || (r[2] = () => U(d.value)),
477
+ onKeypress: r[3] || (r[3] = $e(() => U(d.value), ["enter"]))
478
+ }, null, 40, dt), [
479
+ [Me, d.value]
478
480
  ]),
479
- f.value ? B("", !0) : (m(), _("span", pt)),
480
- p("button", {
481
+ _.value ? B("", !0) : (p(), E("span", ut)),
482
+ v("button", {
481
483
  ref_key: "togglePopoverButtonRef",
482
- ref: c,
484
+ ref: u,
483
485
  class: "trigger-popover-button",
484
- disabled: o.disabled,
485
- onClick: l[4] || (l[4] = () => {
486
- P.value ? A(!1) : (P.value = !0, u(_e)());
486
+ disabled: l.disabled,
487
+ onClick: r[4] || (r[4] = () => {
488
+ $.value ? A(!1) : ($.value = !0, c(_e)());
487
489
  })
488
490
  }, [
489
- h(u(et))
490
- ], 8, mt)
491
+ I(c(je))
492
+ ], 8, ct)
491
493
  ])
492
494
  ], 2),
493
- M(p("div", {
495
+ P(v("div", {
494
496
  ref_key: "durationInputPopoverRef",
495
- ref: I,
497
+ ref: y,
496
498
  class: "control-popup",
497
- style: Me(u(Ee))
499
+ style: Pe(c(Ee))
498
500
  }, [
499
- h(ut, {
500
- "model-value": r.value,
501
+ I(rt, {
502
+ "model-value": s.value,
501
503
  "used-format": n.value,
502
504
  format: t.format,
503
505
  "allow-descending": t.allowDescending,
504
- onCommit: l[5] || (l[5] = (E, Ie, he) => A(!0, {
505
- usedFormat: E,
506
- popoverValues: Ie,
507
- directionality: he
506
+ onCommit: r[5] || (r[5] = (f, he, Ie) => A(!0, {
507
+ usedFormat: f,
508
+ popoverValues: he,
509
+ directionality: Ie
508
510
  }))
509
511
  }, null, 8, ["model-value", "used-format", "format", "allow-descending"])
510
512
  ], 4), [
511
- [b, P.value]
513
+ [b, $.value]
512
514
  ])
513
515
  ]));
514
516
  }
515
- }), _t = /* @__PURE__ */ F(Et, [["__scopeId", "data-v-0dd589ba"]]), xt = /* @__PURE__ */ U({
517
+ }), mt = /* @__PURE__ */ H(pt, [["__scopeId", "data-v-0dd589ba"]]), Dt = /* @__PURE__ */ F({
516
518
  __name: "IntervalControl",
517
- props: Ce(),
519
+ props: {
520
+ control: {},
521
+ handleChange: { type: Function },
522
+ changeValue: { type: Function },
523
+ disabled: { type: Boolean },
524
+ labelForId: {}
525
+ },
518
526
  setup(e) {
519
- var f;
520
- const t = e, { control: a, disabled: n, onChange: i } = Oe({
521
- props: t
522
- }), r = x(() => a.value.uischema.options), d = Ge(
523
- x(() => {
524
- var I;
525
- return (I = r.value) == null ? void 0 : I.intervalTypeProvider;
527
+ var i;
528
+ const t = e, a = D(() => t.control.uischema.options), n = Ae(
529
+ D(() => {
530
+ var s;
531
+ return (s = a.value) == null ? void 0 : s.intervalTypeProvider;
526
532
  }),
527
- ((f = r.value) == null ? void 0 : f.intervalType) ?? "DATE_OR_TIME"
533
+ ((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
528
534
  );
529
- return (I, c) => (m(), j(ke, {
530
- control: u(a),
531
- onControllingFlowVariableSet: u(i)
532
- }, {
533
- default: H(({ labelForId: v }) => [
534
- h(u(_t), {
535
- id: v,
536
- compact: "",
537
- disabled: u(n),
538
- "model-value": u(a).data,
539
- format: u(d),
540
- "onUpdate:modelValue": u(i)
541
- }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"])
542
- ]),
543
- _: 1
544
- }, 8, ["control", "onControllingFlowVariableSet"]));
535
+ return (s, d) => (p(), j(c(mt), {
536
+ id: s.labelForId,
537
+ compact: "",
538
+ disabled: s.disabled,
539
+ "model-value": s.control.data,
540
+ format: c(n),
541
+ "onUpdate:modelValue": s.changeValue
542
+ }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
545
543
  }
546
544
  });
547
545
  export {
548
- xt as default
546
+ Dt as default
549
547
  };