@knime/jsonforms 1.14.3 → 1.15.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 (200) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
  14. package/dist/Dropdown-D49sEHBa.js +663 -0
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
  62. package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +133 -110
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/reload-57Xc2t-6.js +23 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/testUtils/component.d.ts +18 -18
  137. package/dist/testing.js +8688 -8655
  138. package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
  139. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  140. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  141. package/dist/usePossibleValues-DTVXBGRC.js +16 -0
  142. package/package.json +14 -14
  143. package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/Checkboxes-DIPjJhPO.js +0 -103
  146. package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
  147. package/dist/DateControl-CddCObVg.js +0 -29
  148. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  149. package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
  150. package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
  151. package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
  152. package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
  153. package/dist/Dropdown-CJj0CUA8.js +0 -604
  154. package/dist/DropdownControl-BNQKWzTT.js +0 -31
  155. package/dist/HorizontalLayout-6GwurgkR.js +0 -25
  156. package/dist/IntegerControl-DZIY-wb_.js +0 -20
  157. package/dist/IntervalControl-Yts36_MI.js +0 -546
  158. package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
  159. package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
  160. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  161. package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
  162. package/dist/NameFilter-D0hKO5Fr.js +0 -24
  163. package/dist/NumberControl-DkeQT1iR.js +0 -20
  164. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  165. package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
  166. package/dist/RadioControl-DjrysNQ_.js +0 -24
  167. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  168. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  169. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  170. package/dist/SectionLayout-CJP4sYyB.js +0 -46
  171. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  172. package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
  173. package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
  174. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  175. package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
  176. package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
  177. package/dist/SortListControl-mvJofiWn.js +0 -375
  178. package/dist/StyledListItem-BXz08pEQ.js +0 -72
  179. package/dist/TextAreaControl-S4aoqAv1.js +0 -111
  180. package/dist/TextControl-rJrjrBw8.js +0 -4
  181. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
  182. package/dist/TimeControl-DfhE8yu9.js +0 -42
  183. package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
  184. package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
  185. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  186. package/dist/ValueSwitch-CUYV7v67.js +0 -131
  187. package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
  188. package/dist/VerticalLayout-D2eQSYgv.js +0 -30
  189. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  190. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  191. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  192. package/dist/index-CoRworrE.js +0 -322
  193. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  194. package/dist/navigator-D_R-txCf.js +0 -7
  195. package/dist/popper-CRR--9mA.js +0 -907
  196. package/dist/reload-BVbCGubF.js +0 -17
  197. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  198. package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
  199. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  200. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -1,546 +0,0 @@
1
- import { openBlock as m, createElementBlock as E, renderSlot as he, toDisplayString as O, createCommentVNode as B, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as R, Fragment as N, createBlock as J, withDirectives as $, createVNode as h, vShow as b, renderList as K, unref as c, withCtx as X, createTextVNode as ge, ref as _, watch as W, normalizeClass as De, withKeys as ye, vModelText as xe, normalizeStyle as Me } from "vue";
2
- import { _ as H, r as Pe, u as $e } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
3
- import { o as Re, a as Ae } from "./index-CoRworrE.js";
4
- import { u as we, s as be, f as Ne, o as Ve, a as Se } from "./floating-ui.vue-B-MrqKCT.js";
5
- import { N as q } from "./NumberInput-DJ38AGiR.js";
6
- import { V as z } from "./ValueSwitch-CUYV7v67.js";
7
- const Ce = {
8
- name: "Tooltip",
9
- props: {
10
- text: {
11
- type: String,
12
- required: !0
13
- }
14
- }
15
- }, Oe = { class: "tooltip" }, Ge = {
16
- key: 0,
17
- class: "text"
18
- };
19
- function ke(e, t, a, n, l, i) {
20
- return m(), E("div", Oe, [
21
- he(e.$slots, "default", {}, void 0, !0),
22
- a.text ? (m(), E("span", Ge, O(a.text), 1)) : B("", !0)
23
- ]);
24
- }
25
- const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc"]]), Q = (e, t) => ({
26
- negative: e,
27
- years: parseInt(t[1] ?? "0", 10),
28
- months: parseInt(t[2] ?? "0", 10),
29
- weeks: parseInt(t[3] ?? "0", 10),
30
- days: parseInt(t[4] ?? "0", 10)
31
- }), ee = (e, t) => {
32
- var n;
33
- const a = parseInt(((n = t[4]) == null ? void 0 : n.padEnd(3, "0")) ?? "0", 10);
34
- return {
35
- negative: e,
36
- hours: parseInt(t[1] ?? "0", 10),
37
- minutes: parseInt(t[2] ?? "0", 10),
38
- seconds: parseInt(t[3] ?? "0", 10),
39
- milliseconds: a
40
- };
41
- }, L = (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, V = (e) => {
42
- let t = "P";
43
- 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;
44
- }, P = (e) => {
45
- const t = (n, l) => n === 0 ? "" : n === 1 ? `${n} ${l} ` : `${n} ${l}s `;
46
- let a = "";
47
- if (e.type === "DATE") {
48
- if (L(e))
49
- return "0 days";
50
- a += t(e.interval.years, "year"), a += t(e.interval.months, "month"), a += t(e.interval.weeks, "week"), a += t(e.interval.days, "day");
51
- } else {
52
- if (L(e))
53
- return "0 seconds";
54
- a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
55
- const n = e.interval.milliseconds === 0;
56
- (e.interval.seconds !== 0 || !n) && (n ? a += t(e.interval.seconds, "second") : a += `${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")} seconds `);
57
- }
58
- return e.interval.negative && (a = `-(${a.trim()})`), a.trim();
59
- }, te = "(\\d+)\\s*y(?:ears?)?", ae = "(\\d+)\\s*m(?:o(?:nths?)?)?", ne = "(\\d+)\\s*w(?:eeks?)?", se = "(\\d+)\\s*d(?:ays?)?", oe = "(\\d+)\\s*h(?:ours?)?", le = "(\\d+)\\s*m(?:in(?:s|utes?)?)?", re = "(\\d+)(?:[,.](\\d{1,3}))?\\s*s(?:ec(?:s|onds?)?)?", ie = new RegExp(
60
- `^(?:${te})?\\s*(?:${ae})?\\s*(?:${ne})?\\s*(?:${se})?\\s*$`,
61
- "i"
62
- ), de = new RegExp(
63
- `^(?:${oe})?\\s*(?:${le})?\\s*(?:${re})?$`,
64
- "i"
65
- ), Fe = new RegExp(
66
- `^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
67
- "i"
68
- ), He = new RegExp(
69
- `^\\s*-\\s*(?:\\s*${te}|${ae}|${ne}|${se})\\s*$`,
70
- "i"
71
- ), Ue = new RegExp(
72
- `^\\s*-\\s*\\(\\s*${de.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
73
- "i"
74
- ), Ke = new RegExp(
75
- `^\\s*-\\s*(?:\\s*${oe}|${le}|${re})\\s*$`,
76
- "i"
77
- ), ue = (e) => {
78
- if (e = e == null ? void 0 : e.trim(), !e)
79
- throw new Error("Empty interval string");
80
- const t = ie.exec(e), a = Fe.exec(e) ?? He.exec(e), n = de.exec(e), l = Ue.exec(e) ?? Ke.exec(e), i = t ?? a, d = n ?? l, T = (a ?? l) !== null;
81
- if (d && i)
82
- throw new Error("Ambiguous time format");
83
- if (i)
84
- return {
85
- type: "DATE",
86
- interval: Q(T, i)
87
- };
88
- if (d)
89
- return {
90
- type: "TIME",
91
- interval: ee(T, d)
92
- };
93
- throw new Error(`Invalid human readable time: ${e}`);
94
- }, ce = (e, t) => {
95
- try {
96
- const a = ue(e), n = a.type, l = a.interval.negative;
97
- if (n === t || t === "DATE_OR_TIME")
98
- return {
99
- valid: !0,
100
- type: n,
101
- negative: l
102
- };
103
- } catch {
104
- return { valid: !1 };
105
- }
106
- }, D = (e) => {
107
- if (e = e == null ? void 0 : e.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
108
- throw new Error("Empty ISO duration");
109
- 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), l = a.exec(e);
110
- if (n)
111
- return {
112
- type: "DATE",
113
- interval: Q(
114
- e.startsWith("-"),
115
- n
116
- )
117
- };
118
- if (l)
119
- return {
120
- type: "TIME",
121
- interval: ee(
122
- e.startsWith("-"),
123
- l
124
- )
125
- };
126
- throw new Error(`Invalid ISO duration: ${e}`);
127
- }, ve = (e, t) => {
128
- try {
129
- const a = D(e), n = a.type, l = a.interval.negative;
130
- if (n === t || t === "DATE_OR_TIME")
131
- return {
132
- valid: !0,
133
- type: n,
134
- negative: l
135
- };
136
- } catch {
137
- return { valid: !1 };
138
- }
139
- }, Xe = (e) => {
140
- const t = ve(e, "DATE_OR_TIME"), a = ce(
141
- e,
142
- "DATE_OR_TIME"
143
- );
144
- if (t.valid)
145
- return D(e);
146
- if (a.valid)
147
- return ue(e);
148
- throw new Error(`Invalid interval string: ${e}`);
149
- }, S = (e, t) => {
150
- const a = ve(e, t), n = ce(e, t);
151
- return a.valid ? a : n.valid ? n : { valid: !1 };
152
- }, We = {
153
- xmlns: "http://www.w3.org/2000/svg",
154
- fill: "none",
155
- stroke: "#000",
156
- "stroke-linejoin": "round",
157
- viewBox: "0 0 32 32"
158
- };
159
- function qe(e, t) {
160
- return m(), E("svg", We, t[0] || (t[0] = [
161
- 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)
162
- ]));
163
- }
164
- const ze = { render: qe }, Y = [
165
- "years",
166
- "months",
167
- "weeks",
168
- "days"
169
- ], Z = [
170
- "hours",
171
- "minutes",
172
- "seconds",
173
- "milliseconds"
174
- ], g = {
175
- years: { min: 0, max: Number.MAX_SAFE_INTEGER },
176
- months: { min: 0, max: Number.MAX_SAFE_INTEGER },
177
- weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
178
- days: { min: 0, max: Number.MAX_SAFE_INTEGER },
179
- hours: { min: 0, max: Number.MAX_SAFE_INTEGER },
180
- minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
181
- seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
182
- milliseconds: { min: 0, max: 999 }
183
- }, j = (e, t) => t === "DATE" ? {
184
- type: "DATE",
185
- interval: e.periodPart
186
- } : {
187
- type: "TIME",
188
- interval: e.durationPart
189
- }, w = (e, t) => e.type === "DATE" ? {
190
- ...t,
191
- periodPart: e.interval
192
- } : {
193
- ...t,
194
- durationPart: e.interval
195
- }, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Le = { class: "header" }, Ye = { class: "ascending-descending-switch-container" }, Ze = { class: "input-grid" }, je = { class: "input-label" }, Je = { class: "input-label" }, Qe = { class: "accept-controls" }, et = /* @__PURE__ */ F({
196
- __name: "IntervalInputPopoverContent",
197
- props: /* @__PURE__ */ G({
198
- format: {},
199
- allowDescending: { type: Boolean }
200
- }, {
201
- usedFormat: {
202
- required: !0
203
- },
204
- usedFormatModifiers: {},
205
- modelValue: {
206
- required: !0
207
- },
208
- modelModifiers: {}
209
- }),
210
- emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
211
- setup(e, { emit: t }) {
212
- const a = t, n = e, l = k(e, "usedFormat"), i = k(e, "modelValue"), d = R(() => {
213
- const p = l.value === "DATE" ? Y : Z, u = l.value === "DATE" ? p.map(
214
- (r) => i.value.periodPart[r]
215
- ) : p.map(
216
- (r) => i.value.durationPart[r]
217
- );
218
- for (let r = 0; r < u.length; r++) {
219
- const I = p[r], x = u[r];
220
- if (isNaN(x) || x < g[I].min || x > g[I].max)
221
- return {
222
- valid: !1,
223
- reason: `${C(I)} out of bounds.`
224
- };
225
- }
226
- return { valid: !0 };
227
- }), T = R({
228
- get() {
229
- return n.allowDescending ? l.value === "DATE" ? i.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : i.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
230
- },
231
- set(p) {
232
- i.value.periodPart.negative = p === "DESCENDING", i.value.durationPart.negative = p === "DESCENDING";
233
- }
234
- }), y = () => {
235
- a(
236
- "commit",
237
- l.value,
238
- i.value,
239
- T.value
240
- );
241
- };
242
- return (p, u) => (m(), E(N, null, [
243
- v("span", Le, [
244
- u[2] || (u[2] = v("span", { class: "input-title" }, "Interval", -1)),
245
- n.format === "DATE_OR_TIME" ? (m(), J(z, {
246
- key: 0,
247
- modelValue: l.value,
248
- "onUpdate:modelValue": u[0] || (u[0] = (r) => l.value = r),
249
- "possible-values": [
250
- { id: "DATE", text: "Date" },
251
- { id: "TIME", text: "Time" }
252
- ],
253
- compact: ""
254
- }, null, 8, ["modelValue"])) : B("", !0)
255
- ]),
256
- $(v("div", Ye, [
257
- h(z, {
258
- modelValue: T.value,
259
- "onUpdate:modelValue": u[1] || (u[1] = (r) => T.value = r),
260
- compact: "",
261
- "possible-values": [
262
- { id: "ASCENDING", text: "Forward" },
263
- { id: "DESCENDING", text: "Backward" }
264
- ]
265
- }, null, 8, ["modelValue"])
266
- ], 512), [
267
- [b, p.allowDescending]
268
- ]),
269
- v("div", Ze, [
270
- (m(!0), E(N, null, K(c(Y), (r) => $((m(), E("span", {
271
- key: r,
272
- class: "labeled-date-time-input"
273
- }, [
274
- v("span", je, O(c(C)(r)), 1),
275
- h(q, {
276
- modelValue: i.value.periodPart[r],
277
- "onUpdate:modelValue": (I) => i.value.periodPart[r] = I,
278
- min: c(g)[r].min,
279
- max: c(g)[r].max,
280
- compact: "",
281
- type: "integer"
282
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
283
- ], 512)), [
284
- [b, l.value === "DATE"]
285
- ])), 128)),
286
- (m(!0), E(N, null, K(c(Z), (r) => $((m(), E("span", {
287
- key: r,
288
- class: "labeled-date-time-input"
289
- }, [
290
- v("span", Je, O(c(C)(r)), 1),
291
- h(q, {
292
- "model-value": i.value.durationPart[r],
293
- min: c(g)[r].min,
294
- max: c(g)[r].max,
295
- compact: "",
296
- type: "integer",
297
- "onUpdate:modelValue": (I) => {
298
- i.value.durationPart[r] = I;
299
- }
300
- }, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
301
- ], 512)), [
302
- [b, l.value === "TIME"]
303
- ])), 128))
304
- ]),
305
- v("div", Qe, [
306
- h(Be, {
307
- text: d.value.valid ? "" : d.value.reason
308
- }, {
309
- default: X(() => [
310
- h(Pe, {
311
- primary: "",
312
- disabled: !d.value.valid,
313
- onClick: y
314
- }, {
315
- default: X(() => u[3] || (u[3] = [
316
- ge(" Set ")
317
- ])),
318
- _: 1
319
- }, 8, ["disabled"])
320
- ]),
321
- _: 1
322
- }, 8, ["text"])
323
- ])
324
- ], 64));
325
- }
326
- }), tt = /* @__PURE__ */ H(et, [["__scopeId", "data-v-9492a842"]]), at = { class: "input-fields" }, nt = ["disabled", "placeholder"], st = {
327
- key: 0,
328
- class: "invalid-marker"
329
- }, ot = ["disabled"], lt = {}, rt = /* @__PURE__ */ F({
330
- ...lt,
331
- __name: "IntervalInput",
332
- props: /* @__PURE__ */ G({
333
- format: { default: "DATE_OR_TIME" },
334
- allowDescending: { type: Boolean, default: !0 },
335
- disabled: { type: Boolean, default: !1 },
336
- compact: { type: Boolean, default: !1 }
337
- }, {
338
- modelValue: {
339
- required: !0
340
- },
341
- modelModifiers: {}
342
- }),
343
- emits: ["update:modelValue"],
344
- setup(e) {
345
- const t = e, a = k(e, "modelValue"), n = _(
346
- (() => {
347
- if (t.format === "DATE_OR_TIME") {
348
- const s = S(
349
- a.value,
350
- "DATE_OR_TIME"
351
- );
352
- return s.valid ? s.type : "DATE";
353
- } else
354
- return t.format;
355
- })()
356
- ), l = R(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), i = _(
357
- (() => {
358
- const s = D(
359
- a.value
360
- );
361
- return w(s, {
362
- periodPart: {
363
- negative: !1,
364
- years: 0,
365
- months: 0,
366
- weeks: 0,
367
- days: 1
368
- },
369
- durationPart: {
370
- negative: !1,
371
- hours: 0,
372
- minutes: 0,
373
- seconds: 1,
374
- milliseconds: 0
375
- }
376
- });
377
- })()
378
- ), d = _(
379
- P(
380
- D(a.value)
381
- )
382
- ), T = R(() => {
383
- const s = S(
384
- d.value,
385
- "DATE_OR_TIME"
386
- );
387
- return s.valid && (t.allowDescending || !s.negative) && (s.type === n.value || t.format === "DATE_OR_TIME");
388
- }), y = _(null), p = _(null), u = _(null), r = (s, o) => {
389
- const f = j(
390
- s,
391
- o
392
- );
393
- d.value = P(f), a.value = V(f), n.value = o, i.value = s;
394
- }, I = () => {
395
- i.value = w(
396
- D(a.value),
397
- i.value
398
- );
399
- }, x = (s) => {
400
- const o = S(
401
- s,
402
- "DATE_OR_TIME"
403
- );
404
- if (!o.valid || !t.allowDescending && o.negative || o.type !== n.value && t.format !== "DATE_OR_TIME")
405
- return;
406
- const f = Xe(
407
- s
408
- );
409
- i.value = w(
410
- f,
411
- i.value
412
- ), a.value = V(f), n.value = o.type, d.value = P(f);
413
- }, pe = (s) => {
414
- const o = D(s);
415
- d.value = P(o), i.value = w(
416
- o,
417
- i.value
418
- ), a.value = s;
419
- }, me = (s) => {
420
- const o = j(
421
- i.value,
422
- s
423
- );
424
- d.value = P(o), a.value = V(o), n.value = s;
425
- }, fe = (s) => {
426
- s !== "DATE_OR_TIME" && me(s);
427
- }, M = _(!1);
428
- W(() => t.format, fe), W(a, pe);
429
- const U = (s) => {
430
- x(s);
431
- }, A = (s, o) => {
432
- s && o ? r(
433
- o.popoverValues,
434
- o.usedFormat
435
- ) : I(), M.value = !1;
436
- };
437
- Re(y, () => A(!1), {
438
- ignore: [p]
439
- }), Ae("Escape", () => A(!1));
440
- const { floatingStyles: Ee, update: Ie } = we(p, y, {
441
- middleware: [
442
- be(),
443
- // move left/right to keep it on screen
444
- Ne({
445
- // flip it vertically to keep it on screen
446
- mainAxis: !0,
447
- crossAxis: !1
448
- }),
449
- Ve({
450
- // move it a bit away from the button vertically
451
- mainAxis: 2,
452
- // vertical
453
- crossAxis: 0
454
- // horizontal
455
- })
456
- ],
457
- placement: "top-end",
458
- whileElementsMounted: Se
459
- });
460
- return (s, o) => (m(), E("div", null, [
461
- v("div", {
462
- class: De(["wrapper", { disabled: s.disabled, compact: s.compact }])
463
- }, [
464
- v("span", at, [
465
- $(v("input", {
466
- ref_key: "inputTextFieldRef",
467
- ref: u,
468
- "onUpdate:modelValue": o[0] || (o[0] = (f) => d.value = f),
469
- type: "text",
470
- disabled: s.disabled,
471
- placeholder: l.value,
472
- spellcheck: "false",
473
- onFocus: o[1] || (o[1] = (f) => M.value = !1),
474
- onFocusout: o[2] || (o[2] = () => U(d.value)),
475
- onKeypress: o[3] || (o[3] = ye(() => U(d.value), ["enter"]))
476
- }, null, 40, nt), [
477
- [xe, d.value]
478
- ]),
479
- T.value ? B("", !0) : (m(), E("span", st)),
480
- v("button", {
481
- ref_key: "togglePopoverButtonRef",
482
- ref: p,
483
- class: "trigger-popover-button",
484
- disabled: s.disabled,
485
- onClick: o[4] || (o[4] = () => {
486
- M.value ? A(!1) : (M.value = !0, c(Ie)());
487
- })
488
- }, [
489
- h(c(ze))
490
- ], 8, ot)
491
- ])
492
- ], 2),
493
- $(v("div", {
494
- ref_key: "durationInputPopoverRef",
495
- ref: y,
496
- class: "control-popup",
497
- style: Me(c(Ee))
498
- }, [
499
- h(tt, {
500
- "model-value": i.value,
501
- "used-format": n.value,
502
- format: t.format,
503
- "allow-descending": t.allowDescending,
504
- onCommit: o[5] || (o[5] = (f, Te, _e) => A(!0, {
505
- usedFormat: f,
506
- popoverValues: Te,
507
- directionality: _e
508
- }))
509
- }, null, 8, ["model-value", "used-format", "format", "allow-descending"])
510
- ], 4), [
511
- [b, M.value]
512
- ])
513
- ]));
514
- }
515
- }), it = /* @__PURE__ */ H(rt, [["__scopeId", "data-v-098d6ad9"]]), ft = /* @__PURE__ */ F({
516
- __name: "IntervalControl",
517
- props: {
518
- control: {},
519
- handleChange: { type: Function },
520
- changeValue: { type: Function },
521
- disabled: { type: Boolean },
522
- isValid: { type: Boolean },
523
- onRegisterValidation: { type: Function },
524
- labelForId: {}
525
- },
526
- setup(e) {
527
- const t = e, a = R(
528
- () => t.control.uischema
529
- ), n = $e(
530
- a,
531
- "intervalType",
532
- "DATE_OR_TIME"
533
- );
534
- return (l, i) => (m(), J(c(it), {
535
- id: l.labelForId,
536
- compact: "",
537
- disabled: l.disabled,
538
- "model-value": l.control.data,
539
- format: c(n),
540
- "onUpdate:modelValue": l.changeValue
541
- }, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
542
- }
543
- });
544
- export {
545
- ft as default
546
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as d, computed as l, openBlock as s, createBlock as a, unref as n, mergeProps as u, withCtx as c, createCommentVNode as m } from "vue";
2
- import { D as b } from "./Dropdown-CJj0CUA8.js";
3
- import { L as V } from "./svgWithTitle-Cr3Pu3wr.js";
4
- import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
5
- const v = /* @__PURE__ */ d({
6
- __name: "LoadingDropdown",
7
- props: {
8
- possibleValues: {},
9
- modelValue: {},
10
- id: {},
11
- ariaLabel: {},
12
- disabled: { type: Boolean }
13
- },
14
- setup(r) {
15
- const o = r, p = l(() => {
16
- const { possibleValues: e } = o;
17
- return e === null ? "Loading" : e.length > 0 ? "No value selected" : "No values present";
18
- }), t = l(() => o.possibleValues === null ? "" : o.modelValue), i = l(
19
- () => o.disabled || o.possibleValues === null || o.possibleValues.length === 0
20
- );
21
- return (e, g) => (s(), a(n(b), u({ ...e.$props, ...e.$attrs }, {
22
- "model-value": t.value,
23
- disabled: i.value,
24
- "possible-values": e.possibleValues ?? [],
25
- placeholder: p.value,
26
- compact: ""
27
- }), {
28
- "icon-right": c(() => [
29
- e.possibleValues === null ? (s(), a(n(V), {
30
- key: 0,
31
- class: "loading-icon"
32
- })) : m("", !0)
33
- ]),
34
- _: 1
35
- }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
36
- }
37
- }), D = /* @__PURE__ */ f(v, [["__scopeId", "data-v-cf6ba18c"]]);
38
- export {
39
- D as L
40
- };
@@ -1,85 +0,0 @@
1
- import { defineComponent as I, toRef as d, computed as a, markRaw as k, openBlock as C, createBlock as T, unref as c, mergeProps as _ } from "vue";
2
- import { m as F } from "./index-Blg1O3Fz.js";
3
- import { u as L, a as U } from "./usePossibleValues-lz0Rcu_N.js";
4
- import { T as z, a as x } from "./TwinlistLoadingInfo-CQRx9cEu.js";
5
- import { u as B } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js";
6
- import { _ as D } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
7
- const M = /* @__PURE__ */ I({
8
- __name: "ManualTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: { type: Function },
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- isValid: { type: Boolean },
15
- onRegisterValidation: { type: Function },
16
- labelForId: {}
17
- },
18
- setup(r) {
19
- const n = r;
20
- let o;
21
- const s = (e) => {
22
- const l = F(n.control.data, e);
23
- n.changeValue(l), o == null || o(l);
24
- }, p = (e) => {
25
- if (e !== null)
26
- if ("includedValues" in e) {
27
- const { includedValues: l, excludedValues: u, includeUnknownValues: y } = e;
28
- if (!l || !u)
29
- return;
30
- s({
31
- manuallySelected: l,
32
- manuallyDeselected: u,
33
- includeUnknownColumns: y
34
- });
35
- } else
36
- s({ manuallySelected: e });
37
- }, { possibleValues: t } = L(
38
- d(n, "control")
39
- ), { selectedAndDeselected: i, setCurrentManualFilter: m } = B({
40
- data: a(() => ({ manualFilter: n.control.data })),
41
- possibleValueIds: a(
42
- () => {
43
- var e;
44
- return ((e = t.value) == null ? void 0 : e.map(({ id: l }) => l)) ?? null;
45
- }
46
- )
47
- });
48
- o = m;
49
- const b = a(() => {
50
- const { selected: e, deselected: l } = i.value;
51
- return {
52
- includedValues: e,
53
- excludedValues: l,
54
- includeUnknownValues: n.control.data.includeUnknownColumns
55
- };
56
- }), f = a(
57
- () => i.value.selected === null ? k(z) : null
58
- ), { excludedLabel: w, includedLabel: V } = U(
59
- d(n, "control")
60
- ), v = a(() => w ?? "Excludes"), h = a(() => V ?? "Includes"), g = a(
61
- () => {
62
- var e;
63
- return (e = n.control.uischema.options) == null ? void 0 : e.twinlistSize;
64
- }
65
- );
66
- return (e, l) => (C(), T(c(x), _(e.$attrs, {
67
- id: e.labelForId,
68
- "show-search": "",
69
- disabled: e.disabled,
70
- "empty-state-component": f.value,
71
- "model-value": b.value,
72
- "possible-values": c(t) ?? [],
73
- size: g.value,
74
- "left-label": v.value,
75
- "right-label": h.value,
76
- "is-valid": e.isValid,
77
- compact: "",
78
- "show-resize-handle": "",
79
- "onUpdate:modelValue": p
80
- }), null, 16, ["id", "disabled", "empty-state-component", "model-value", "possible-values", "size", "left-label", "right-label", "is-valid"]));
81
- }
82
- }), j = /* @__PURE__ */ D(M, [["__scopeId", "data-v-3a892220"]]);
83
- export {
84
- j as default
85
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, toRef as t, openBlock as d, createBlock as r, unref as l } from "vue";
2
- import { u } from "./usePossibleValues-lz0Rcu_N.js";
3
- import { M as p } from "./MultiselectListBox-CHvGxAhY.js";
4
- const f = /* @__PURE__ */ n({
5
- __name: "MultiSelectListBoxControl",
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(a) {
16
- const i = a, { possibleValues: s } = u(t(i, "control"));
17
- return (e, c) => {
18
- var o;
19
- return d(), r(l(p), {
20
- id: e.labelForId,
21
- "possible-values": l(s) || [],
22
- disabled: e.disabled,
23
- "model-value": e.control.data,
24
- "is-valid": e.isValid,
25
- ariaLabel: e.control.label,
26
- size: (o = e.control.uischema.options) == null ? void 0 : o.size,
27
- "onUpdate:modelValue": e.changeValue
28
- }, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"]);
29
- };
30
- }
31
- });
32
- export {
33
- f as default
34
- };