@knime/jsonforms 3.0.0 → 3.1.0

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 (205) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/AnyOfTwinlist-iPxS5C9Y.js +24 -0
  3. package/dist/CheckboxControl-C99OdmDL.js +41 -0
  4. package/dist/CheckboxesControl-BZhMhT9x.js +47 -0
  5. package/dist/ColorControl-D1dNnNbO.js +38 -0
  6. package/dist/ColorPreviewControl-B4zix2kb.js +67 -0
  7. package/dist/ComboBoxControl-BGWAD9IW.js +47 -0
  8. package/dist/DateControl-D0HfVrtz.js +49 -0
  9. package/dist/DateTimeControl-kTQZI9JC.js +103 -0
  10. package/dist/DateTimeFormatPickerControl-BiYcsKSn.js +44 -0
  11. package/dist/DropdownControl-jsayV3N5.js +42 -0
  12. package/dist/ExecutorCoresControl-DNo2SaC6.js +26 -0
  13. package/dist/ExecutorMemoryControl-C8RLYQdd.js +26 -0
  14. package/dist/FileUploadControl-Cv3xWTAS.js +58 -0
  15. package/dist/GridSelectionControl-BqtaGQYg.js +86 -0
  16. package/dist/HorizontalLayout-B_lETfCu.js +29 -0
  17. package/dist/IntegerControl-Cr8SO0xH.js +22 -0
  18. package/dist/IntervalControl-BdjKEwLy.js +53 -0
  19. package/dist/LinkControl-QMwkCJlj.js +37 -0
  20. package/dist/LoadingDropdown-BpU4Uiin.js +61 -0
  21. package/dist/ManualTwinlistControl-CPILp7H_.js +75 -0
  22. package/dist/NameFilter-CYYPRj-2.js +29 -0
  23. package/dist/NumberControl-ODy5GAlR.js +22 -0
  24. package/dist/NumberControlBase-Cl3QcvzB.js +56 -0
  25. package/dist/OneOfDropdown-CMPRAraI.js +44 -0
  26. package/dist/ProgressButtonControl-BimHrSZd.js +51 -0
  27. package/dist/RadioButtonsWithDescriptionControl-DJu3ODo7.js +58 -0
  28. package/dist/RadioControl-D_NE5s4n.js +22 -0
  29. package/dist/RadioControlBase-knF86px0.js +69 -0
  30. package/dist/ResourceControlBase-BVMVVYns.js +64 -0
  31. package/dist/RichTextControl-JIM904_P.js +72 -0
  32. package/dist/SectionLayout-BDYjoUXM.js +41 -0
  33. package/dist/SettingsSubPanelLayout-DVw_AsU6.js +53 -0
  34. package/dist/SimpleTwinlistControl-BNnOmbN-.js +24 -0
  35. package/dist/SingleSelectControl-CJV9VMZm.js +58 -0
  36. package/dist/SortListControl-D-ifoRva.js +71 -0
  37. package/dist/TeamAndSpacesControl-D1FvyeCV.js +56 -0
  38. package/dist/TeamResourceControl-DyCO6-Nk.js +26 -0
  39. package/dist/TextAreaControl-7QziyTgn.js +40 -0
  40. package/dist/TimeControl-B29iTlhP.js +71 -0
  41. package/dist/TimeframesControl-Wvu--J0V.js +46 -0
  42. package/dist/TwinlistControlBase-300a_qUR.js +55 -0
  43. package/dist/TypedStringFilter-Ek7bQ-7j.js +35 -0
  44. package/dist/ValueSwitchControl-H2t2Wgo6.js +22 -0
  45. package/dist/VerticalLayout-zV890HYr.js +32 -0
  46. package/dist/ZonedDateTimeControl-DoE2T9iz.js +88 -0
  47. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  48. package/dist/inject-DEsHVs5q.js +5 -0
  49. package/dist/knime-jsonforms.css +2 -1
  50. package/dist/knime-jsonforms.d.ts +1 -1
  51. package/dist/knime-jsonforms.js +3 -219
  52. package/dist/magic-string.es-DrXXtutX.js +659 -0
  53. package/dist/plainDateTimeUtils-5uOCJ4N5.js +58 -0
  54. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  55. package/dist/src/JsonFormsDialog.vue.d.ts +53 -435
  56. package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +2 -1
  57. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +21 -21
  58. package/dist/src/layoutComponents/Form.vue.d.ts +9 -12
  59. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +2 -1
  60. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +9 -13
  61. package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +9 -13
  62. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +2 -1
  63. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +10 -14
  64. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -15
  65. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +11 -10
  66. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +2 -1
  67. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +3 -2
  68. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -1
  69. package/dist/src/renderers/checkboxRenderer.d.ts +5 -4
  70. package/dist/src/renderers/colorPreviewRenderer.d.ts +1 -1
  71. package/dist/src/renderers/defaultRenderers.d.ts +22 -21
  72. package/dist/src/renderers/fallbackRenderers.d.ts +6 -5
  73. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  74. package/dist/src/renderers/linkRenderer.d.ts +1 -1
  75. package/dist/src/renderers/progressButtonRenderer.d.ts +3 -3
  76. package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -3
  77. package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +3 -3
  78. package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
  79. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  80. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +11 -14
  81. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  82. package/dist/src/uiComponents/ColorControl.vue.d.ts +2 -1
  83. package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +2 -1
  84. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  85. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  86. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  87. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  88. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  89. package/dist/src/uiComponents/FieldControl.vue.d.ts +12 -7
  90. package/dist/src/uiComponents/FieldRenderer.vue.d.ts +12 -7
  91. package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -3
  92. package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +2 -1
  93. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  94. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  95. package/dist/src/uiComponents/LinkControl.vue.d.ts +2 -1
  96. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  97. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -1
  98. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  99. package/dist/src/uiComponents/PasswordControl.vue.d.ts +2 -1
  100. package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +9 -13
  101. package/dist/src/uiComponents/QuantityControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -13
  106. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/TextControl.vue.d.ts +3 -454
  111. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  112. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/TimeframesControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/UsernameControl.vue.d.ts +2 -1
  115. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  116. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +2 -1
  119. package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +3 -2
  121. package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +2 -141
  126. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  127. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  128. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +3 -2
  129. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -1
  132. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  133. package/dist/src-DwqijroM.js +1269 -0
  134. package/dist/temporal-polyfill-D4u1I_Z-.js +3114 -0
  135. package/dist/testing.d.ts +1 -1
  136. package/dist/testing.js +15278 -19038
  137. package/dist/toKdsPossibleValues-Dd_qzlUI.js +14 -0
  138. package/dist/useBuiltinValidations-B_Drc2y-.js +43 -0
  139. package/dist/usePossibleValues-Cx6iSt_X.js +15 -0
  140. package/dist/useProvidedState-478_KXOe.js +26 -0
  141. package/dist/useUnknownValuesInTwinlist-BvCTc3hC.js +205 -0
  142. package/dist/utils-DmZLgn8X.js +12 -0
  143. package/package.json +7 -7
  144. package/dist/AnyOfTwinlist-CcodfEXw.js +0 -23
  145. package/dist/CheckboxControl-B_MAR82s.js +0 -41
  146. package/dist/CheckboxesControl--bG4aF6O.js +0 -39
  147. package/dist/ColorControl-CEp2Ei7R.js +0 -29
  148. package/dist/ColorPreviewControl-j0uQH95J.js +0 -90
  149. package/dist/ComboBoxControl-BpJzwiv6.js +0 -39
  150. package/dist/DateControl-83Fi6P5y.js +0 -44
  151. package/dist/DateTimeControl-C-D8bFm3.js +0 -103
  152. package/dist/DateTimeFormatPickerControl-B9gl_66T.js +0 -35
  153. package/dist/DropdownControl-CtveoldX.js +0 -32
  154. package/dist/ExecutorCoresControl-CErHidL7.js +0 -39
  155. package/dist/ExecutorMemoryControl-DgSM86Yg.js +0 -35
  156. package/dist/FileUploadControl-BBfnxURy.js +0 -56
  157. package/dist/GridSelectionControl-BaI4j0Jj.js +0 -117
  158. package/dist/HorizontalLayout-D1SRCyhL.js +0 -26
  159. package/dist/IntegerControl-v93Xw4DJ.js +0 -21
  160. package/dist/IntervalControl-CVlO_mFO.js +0 -52
  161. package/dist/LinkControl-j8GrcZZG.js +0 -36
  162. package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js +0 -57
  163. package/dist/ManualTwinlistControl-BzJehuHs.js +0 -74
  164. package/dist/MultimodeTwinlistControl-Br0DrpsZ.js +0 -4
  165. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js +0 -159
  166. package/dist/NameFilter-BjuVseuX.js +0 -25
  167. package/dist/NumberControl-BF76FEhD.js +0 -21
  168. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js +0 -52
  169. package/dist/OneOfDropdown-DpXmZauV.js +0 -35
  170. package/dist/ProgressButtonControl-t8QMA22a.js +0 -52
  171. package/dist/RadioButtonsWithDescriptionControl-CeZ4qYCr.js +0 -58
  172. package/dist/RadioControl-DOn1Kre5.js +0 -21
  173. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js +0 -57
  174. package/dist/ResourceControlBase-CX97xRiy.js +0 -70
  175. package/dist/RichTextControl-BrVmkMgh.js +0 -60
  176. package/dist/SectionHeading-YAJTwOE4.js +0 -61
  177. package/dist/SectionLayout-BYOxuxY2.js +0 -47
  178. package/dist/SettingsSubPanel-DgISjowU.js +0 -5
  179. package/dist/SettingsSubPanelLayout-BQJCnTqx.js +0 -69
  180. package/dist/SimpleButtonControl-GTX19t2_.js +0 -50
  181. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js +0 -1284
  182. package/dist/SimpleTwinlistControl-DOH1_L25.js +0 -23
  183. package/dist/SingleSelectControl-mY_yYOyk.js +0 -58
  184. package/dist/SortListControl-D-Um5gEW.js +0 -81
  185. package/dist/TeamAndSpacesControl-fGumynvr.js +0 -66
  186. package/dist/TeamResourceControl--1Sj3-Ks.js +0 -35
  187. package/dist/TextAreaControl-Cwq-lNBk.js +0 -30
  188. package/dist/TextControl-MvbrNTGW.js +0 -4
  189. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js +0 -53
  190. package/dist/TimeControl-WG0SC4_b.js +0 -71
  191. package/dist/TimeframesControl-CX5eKOGZ.js +0 -53
  192. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BKCvZF3X.js +0 -45
  193. package/dist/TypedStringFilter-BnWygKQJ.js +0 -27
  194. package/dist/ValueSwitchControl-BByKe7NK.js +0 -21
  195. package/dist/VerticalLayout-DIBkvSZ9.js +0 -30
  196. package/dist/VerticalLayoutBase-BEDnWcoh.js +0 -20
  197. package/dist/ZonedDateTimeControl-B45OygrC.js +0 -97
  198. package/dist/index-Blg1O3Fz.js +0 -15
  199. package/dist/index-_VUHzju5.js +0 -3210
  200. package/dist/magic-string.es-uPKorP4O.js +0 -663
  201. package/dist/plainDateTimeUtils-BZSKqp9i.js +0 -52
  202. package/dist/toKdsPossibleValues-BklBg3gG.js +0 -14
  203. package/dist/useBuiltinValidations-_4IBMopQ.js +0 -74
  204. package/dist/usePossibleValues-CXVLf00v.js +0 -16
  205. package/dist/useUnknownValuesInTwinlist-uXOCQkVS.js +0 -65
@@ -0,0 +1,1269 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t as n } from "./inject-DEsHVs5q.js";
4
+ import { n as r, t as i } from "./useProvidedState-478_KXOe.js";
5
+ import { t as a } from "./useBuiltinValidations-B_Drc2y-.js";
6
+ import { Fragment as o, Suspense as s, Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as g, defineComponent as _, h as v, inject as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeStyle as C, onBeforeUnmount as ee, onMounted as te, openBlock as w, provide as T, reactive as ne, ref as E, renderList as D, renderSlot as O, toDisplayString as re, toRaw as ie, toRef as ae, toValue as oe, unref as k, useId as se, useTemplateRef as ce, watch as A, withCtx as j } from "vue";
7
+ import { Actions as le, UPDATE_DATA as ue, and as M, composePaths as N, hasType as de, isAnyOfControl as fe, isBooleanControl as pe, isControl as P, isDateTimeControl as me, isIntegerControl as F, isNumberControl as I, isOneOfControl as L, isStringControl as R, not as he, rankWith as z, schemaMatches as ge, uiTypeIs as B } from "@jsonforms/core";
8
+ import { DispatchRenderer as _e, JsonForms as ve, rendererProps as V, useJsonFormsArrayControl as ye, useJsonFormsControl as be, useJsonFormsLayout as xe } from "@jsonforms/vue";
9
+ import { KdsButton as H, KdsDescription as Se, KdsInfoToggleButton as Ce, KdsInlineMessage as we, KdsLabel as Te, KdsLoadingSkeleton as U, KdsNumberInput as Ee, KdsPanel as De, KdsPasswordInput as Oe, KdsTextInput as ke, KdsToggleSwitch as Ae, KdsUsernameInput as je, kdsToggleSwitchSize as Me } from "@knime/kds-components";
10
+ //#region src/layoutComponents/Form.vue
11
+ var Ne = {}, Pe = { class: "flex-wrapper" }, Fe = { class: "form" };
12
+ function Ie(e, t) {
13
+ return w(), p("div", Pe, [m("div", Fe, [O(e.$slots, "default", {}, void 0, !0)]), O(e.$slots, "bottom-content", {}, void 0, !0)]);
14
+ }
15
+ var W = /*#__PURE__*/ t(Ne, [["render", Ie], ["__scopeId", "data-v-2d34194b"]]), Le = ["aria-label"], Re = { class: "settings-sub-panel-body" }, ze = {
16
+ key: 0,
17
+ class: "settings-sub-panel-footer"
18
+ }, G = Symbol("subPanelDestInjectionKey"), Be = (e) => T(G, e), Ve = /*#__PURE__*/ t(/* @__PURE__ */ _({
19
+ __name: "SettingsSubPanel",
20
+ props: {
21
+ showBackArrow: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ backButtonLabel: { default: "Back" },
26
+ ariaLabel: { default: () => void 0 }
27
+ },
28
+ setup(e, { expose: t }) {
29
+ let n = E(!1), r = E(null), i = E(null), a = () => {
30
+ i.value = document.activeElement ?? null, n.value = !0;
31
+ }, s = () => {
32
+ n.value = !1;
33
+ };
34
+ t({
35
+ expand: a,
36
+ close: s
37
+ });
38
+ let g = y("setSubPanelExpanded", void 0);
39
+ A(n, (e) => {
40
+ g?.({ isExpanded: e }), !e && i.value && (i.value.focus(), i.value = null);
41
+ });
42
+ let _ = () => {
43
+ r.value?.focus();
44
+ }, v = y(G), b = u(() => e.ariaLabel ?? e.backButtonLabel), x = u(() => e.showBackArrow ? {
45
+ type: "button",
46
+ props: {
47
+ label: e.backButtonLabel,
48
+ leadingIcon: "back",
49
+ variant: "transparent"
50
+ },
51
+ onClick: s
52
+ } : void 0);
53
+ return (e, t) => (w(), p(o, null, [O(e.$slots, "expand-button", { expand: a }, void 0, !0), (w(), d(c, { to: k(v) }, [h(l, {
54
+ name: "slide",
55
+ onAfterEnter: _
56
+ }, {
57
+ default: j(() => [n.value ? (w(), p("aside", {
58
+ key: 0,
59
+ ref_key: "panelRef",
60
+ ref: r,
61
+ class: "settings-sub-panel",
62
+ "aria-label": b.value,
63
+ tabindex: "-1"
64
+ }, [h(k(De), {
65
+ headline: x.value,
66
+ "body-variant": "plain",
67
+ "body-overflow": "hidden"
68
+ }, {
69
+ default: j(() => [m("div", Re, [O(e.$slots, "default", {}, void 0, !0)])]),
70
+ _: 3
71
+ }, 8, ["headline"]), e.$slots["bottom-content"] ? (w(), p("div", ze, [O(e.$slots, "bottom-content", {}, void 0, !0)])) : f("", !0)], 8, Le)) : f("", !0)]),
72
+ _: 3
73
+ })], 8, ["to"]))], 64));
74
+ }
75
+ }), [["__scopeId", "data-v-bcab65d0"]]), He = {
76
+ key: 0,
77
+ class: "loading-dialog"
78
+ }, Ue = { class: "two-columns" }, We = 200, Ge = /*#__PURE__*/ t(/* @__PURE__ */ _({
79
+ __name: "LoadingDialog",
80
+ setup(e) {
81
+ let t = E(!1);
82
+ return te(() => {
83
+ setTimeout(() => {
84
+ t.value = !0;
85
+ }, We);
86
+ }), (e, n) => t.value ? (w(), p("div", He, [
87
+ h(k(U), {
88
+ variant: "input-with-label",
89
+ repeat: 3
90
+ }),
91
+ m("div", Ue, [h(k(U), { variant: "input-with-label" }), h(k(U), { variant: "input-with-label" })]),
92
+ h(k(U), {
93
+ variant: "input-with-label",
94
+ repeat: 3
95
+ })
96
+ ])) : f("", !0);
97
+ }
98
+ }), [["__scopeId", "data-v-6920196f"]]), Ke = { class: "dialog" }, qe = /*#__PURE__*/ t(/* @__PURE__ */ _({
99
+ __name: "JsonFormsDialog",
100
+ props: {
101
+ schema: {},
102
+ uischema: {},
103
+ data: {},
104
+ renderers: {},
105
+ ajv: { default: () => void 0 },
106
+ validate: {
107
+ type: Function,
108
+ default: void 0
109
+ }
110
+ },
111
+ emits: [
112
+ "updateData",
113
+ "trigger",
114
+ "change",
115
+ "alert",
116
+ "stateProviderListener",
117
+ "initialized"
118
+ ],
119
+ setup(e, { expose: t, emit: n }) {
120
+ let r = n, i = "EXPOSED_METHOD", a = (e, t, n) => (t.type === ue && t.context?.source !== i && setTimeout(() => x(() => r("updateData", t.path))), n(e, t)), o = (e) => {
121
+ r("change", e);
122
+ };
123
+ Object.entries({
124
+ trigger: (e) => new Promise((t) => r("trigger", e, t)),
125
+ addStateProviderListener: (e, t) => r("stateProviderListener", e, t),
126
+ sendAlert: (e) => r("alert", e),
127
+ validate: (t, n) => {
128
+ if (!e.validate) throw Error(`No validate function provided to JsonFormsDialog but validate called with arguments ${JSON.stringify({
129
+ id: t,
130
+ data: n
131
+ })}`);
132
+ return e.validate(t, n);
133
+ }
134
+ }).forEach(([e, t]) => T(e, t));
135
+ let c = E(null), l = [], f = (e, t) => {
136
+ c.value.dispatch(le.update(e, () => t, { source: i }));
137
+ }, g = u(() => c.value !== null), _, v = new Promise((e) => {
138
+ _ = e;
139
+ }), y = A(() => g.value, (e) => {
140
+ e && (r("initialized"), y());
141
+ }, { immediate: !0 });
142
+ A(() => g.value, (e) => {
143
+ e && (_(), l.forEach(({ path: e, value: t }) => f(e, t)));
144
+ }), t({ updateData: async (e, t) => {
145
+ c.value ? f(e, t) : (l.push({
146
+ path: e,
147
+ value: t
148
+ }), await v);
149
+ } });
150
+ let S = E(null);
151
+ Be(S);
152
+ let C = u(() => ({
153
+ data: e.data,
154
+ schema: e.schema,
155
+ uischema: e.uischema,
156
+ renderers: e.renderers,
157
+ middleware: a,
158
+ ...e.ajv ? { ajv: e.ajv } : {}
159
+ }));
160
+ return (e, t) => (w(), p("div", Ke, [m("div", {
161
+ ref_key: "subPanelTeleportDest",
162
+ ref: S
163
+ }, null, 512), (w(), d(s, null, {
164
+ fallback: j(() => [h(Ge)]),
165
+ default: j(() => [h(W, null, {
166
+ default: j(() => [
167
+ O(e.$slots, "top", {}, void 0, !0),
168
+ h(k(ve), b({
169
+ ref_key: "jsonforms",
170
+ ref: c
171
+ }, C.value, { onChange: o }), null, 16),
172
+ O(e.$slots, "bottom", {}, void 0, !0)
173
+ ]),
174
+ _: 3
175
+ })]),
176
+ _: 3
177
+ }))]));
178
+ }
179
+ }), [["__scopeId", "data-v-acd25041"]]), Je = ({ control: e, disabled: t, changeValue: n, controlElement: i }) => {
180
+ let a = u(() => k(e).uischema), o = u(() => a.value?.options?.hideOnNull ?? !1), s = r(a, "default"), c = u(() => k(e).data === null || k(e).data === void 0), l = u(() => !(o.value && c.value)), d = u(() => k(e).data === s.value), f = k(e).label;
181
+ A(() => l.value, (e) => {
182
+ e && x(() => i.value?.focus?.());
183
+ });
184
+ let p = (e) => n(e ? s.value : null), m = () => {
185
+ t.value || (l.value ? d.value && p(!1) : p(!0));
186
+ }, h = u(() => c.value ? `Show ${f ?? "this"} field` : `Hide ${f ?? "this"} field`);
187
+ return {
188
+ showToggle: o,
189
+ showControl: l,
190
+ onLabelClick: m,
191
+ toggleProps: u(() => ({
192
+ modelValue: !c.value,
193
+ "onUpdate:modelValue": (e) => p(e),
194
+ disabled: k(t),
195
+ class: "toggle-hide-on-null",
196
+ size: Me.SMALL,
197
+ ariaLabel: h.value
198
+ }))
199
+ };
200
+ }, Ye = { class: "control-header" }, Xe = { class: "left" }, K = /*#__PURE__*/ t(/* @__PURE__ */ _({
201
+ __name: "LabeledControl",
202
+ props: {
203
+ label: {},
204
+ hideControlHeader: { type: Boolean },
205
+ fill: { type: Boolean },
206
+ large: { type: Boolean },
207
+ onLabelClick: { type: Function }
208
+ },
209
+ setup(e) {
210
+ let t = e, n = E(!1), r = se(), i = u(() => t.label === "" ? " " : t.label);
211
+ return (t, a) => e.hideControlHeader ? O(t.$slots, "default", {
212
+ key: 0,
213
+ labelForId: ""
214
+ }, void 0, !0) : (w(), p("div", {
215
+ key: 1,
216
+ class: S(["dialog-label", { fill: e.fill }]),
217
+ onMouseover: a[0] ||= (e) => n.value = !0,
218
+ onMouseleave: a[1] ||= (e) => n.value = !1
219
+ }, [m("div", Ye, [
220
+ m("div", Xe, [h(k(Te), {
221
+ id: "label-" + k(r),
222
+ for: k(r),
223
+ label: i.value,
224
+ onClick: e.onLabelClick
225
+ }, null, 8, [
226
+ "id",
227
+ "for",
228
+ "label",
229
+ "onClick"
230
+ ]), O(t.$slots, "icon", {}, void 0, !0)]),
231
+ O(t.$slots, "buttons", { hover: n.value }, void 0, !0),
232
+ O(t.$slots, "after-buttons", {}, void 0, !0)
233
+ ]), O(t.$slots, "default", { labelForId: k(r) }, void 0, !0)], 34));
234
+ }
235
+ }), [["__scopeId", "data-v-dcb388eb"]]), q = (e) => async () => {
236
+ e.name === "AsyncComponentWrapper" && await e.setup();
237
+ }, Ze = {
238
+ control: {
239
+ type: Object,
240
+ required: !0
241
+ },
242
+ handleChange: {
243
+ type: Function,
244
+ required: !0
245
+ },
246
+ changeValue: {
247
+ type: Function,
248
+ required: !0
249
+ },
250
+ disabled: {
251
+ type: Boolean,
252
+ required: !0
253
+ },
254
+ error: {
255
+ type: Boolean,
256
+ required: !0
257
+ },
258
+ subText: { type: String },
259
+ onRegisterValidation: {
260
+ type: Function,
261
+ required: !0
262
+ }
263
+ }, J = (e) => _(e, { props: Ze }), Qe = (e) => (t) => Object.entries(t).reduce((t, [n, { control: r, name: i, tester: a, __asyncSetup: o }]) => (t[n] = {
264
+ control: e(r, n),
265
+ name: i,
266
+ tester: a,
267
+ __asyncSetup: o || q(r)
268
+ }, t), {}), $e = (e) => (t) => Object.entries(t).reduce((t, [n, { layout: r, name: i, tester: a, __asyncSetup: o }]) => (t[n] = {
269
+ layout: e(r, n),
270
+ name: i,
271
+ tester: a,
272
+ __asyncSetup: o || q(r)
273
+ }, t), {}), et = (e) => ({ control: t, tester: n, name: r, __asyncSetup: i }) => ({
274
+ name: r,
275
+ tester: n,
276
+ __asyncSetup: i || q(t),
277
+ control: e(t)
278
+ }), tt = ({ fill: e } = { fill: !1 }) => (t) => J((n, { slots: r }) => {
279
+ let i = E(null), a = u(() => n.control.uischema.options?.hideControlHeader), { toggleProps: o, showToggle: s, showControl: c, onLabelClick: l } = Je({
280
+ control: ae(n, "control"),
281
+ controlElement: i,
282
+ changeValue: n.changeValue,
283
+ disabled: ae(n, "disabled")
284
+ });
285
+ return () => a.value ? v(t, {
286
+ ...n,
287
+ labelForId: ""
288
+ }) : v(K, {
289
+ label: n.control.label,
290
+ fill: e,
291
+ onLabelClick: s.value ? l : void 0
292
+ }, {
293
+ "after-buttons": () => s.value ? v(Ae, o.value) : null,
294
+ default: ({ labelForId: e }) => c.value ? v(t, {
295
+ ...n,
296
+ labelForId: e,
297
+ ref: i
298
+ }) : null,
299
+ buttons: ({ hover: e }) => r.buttons ? r.buttons({
300
+ hover: e,
301
+ controlHTMLElement: i.value
302
+ }) : null,
303
+ icon: r.icon
304
+ });
305
+ }), Y = (e = { fill: !1 }) => et(tt(e));
306
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
307
+ var nt = () => {};
308
+ function rt(e, t) {
309
+ function n(...n) {
310
+ return new Promise((r, i) => {
311
+ Promise.resolve(e(() => t.apply(this, n), {
312
+ fn: t,
313
+ thisArg: this,
314
+ args: n
315
+ })).then(r).catch(i);
316
+ });
317
+ }
318
+ return n;
319
+ }
320
+ function it(e, t = {}) {
321
+ let n, r, i = nt, a = (e) => {
322
+ clearTimeout(e), i(), i = nt;
323
+ }, o;
324
+ return (s) => {
325
+ let c = oe(e), l = oe(t.maxWait);
326
+ return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
327
+ i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
328
+ n && a(n), r = void 0, e(o());
329
+ }, l)), n = setTimeout(() => {
330
+ r && a(r), r = void 0, e(s());
331
+ }, c);
332
+ });
333
+ };
334
+ }
335
+ function at(e, t = 200, n = {}) {
336
+ return rt(it(t, n), e);
337
+ }
338
+ //#endregion
339
+ //#region src/higherOrderComponents/control/validation/useCustomValidation.ts
340
+ var ot = 500, st = ({ data: e, uischema: t }) => {
341
+ let r = E(null), a = i(t, "validatorId"), o = n("validate"), s = async (e) => {
342
+ a?.value ? r.value = await o(a.value, e) : r.value = null;
343
+ };
344
+ return A(() => a.value, () => s(e.value), { immediate: !0 }), {
345
+ customValidationMessage: r,
346
+ performCustomValidationDebounced: at((e) => {
347
+ s(e).catch((e) => {});
348
+ }, ot)
349
+ };
350
+ }, ct = 500, lt = ({ data: e, options: t, performExternalValidation: n, customValidationMessage: r }) => {
351
+ let i = u(() => !!t.value?.externalValidationHandler), a = ne({}), o = ne({}), s = 0, c = (e) => {
352
+ let t = String(s++);
353
+ return a[t] = e, () => {
354
+ delete a[t];
355
+ };
356
+ }, l = (e, t) => {
357
+ t === null ? delete o[e] : o[e] = t;
358
+ }, d = async (e) => {
359
+ if (i.value && typeof n == "function") {
360
+ let r = t.value.externalValidationHandler, i = await n(r, e);
361
+ l(r, i);
362
+ }
363
+ }, f = at((e) => {
364
+ d(e);
365
+ }, ct), p = u(() => Object.values(a).map((t) => k(t)?.(e.value))), m = u(() => Object.values(o)), h = u(() => ({ errors: [
366
+ ...p.value.flatMap(({ errors: e } = { errors: [] }) => e),
367
+ ...m.value,
368
+ ...r?.value ? [r.value] : []
369
+ ] }));
370
+ return {
371
+ messages: h,
372
+ isValid: u(() => h.value.errors.length === 0),
373
+ onRegisterValidation: c,
374
+ performExternalValidationDebounced: f
375
+ };
376
+ }, ut = ({ component: e, asyncSetup: t, config: n = {} }) => _(async (r, i) => {
377
+ let a = be(r), o = u(() => a.control.value.visible), s = u(() => a.control.value.data), c = u(() => a.control.value.uischema || {}), { customValidationMessage: l, performCustomValidationDebounced: d } = st({
378
+ data: s,
379
+ uischema: c
380
+ }), { messages: f, isValid: p, onRegisterValidation: m, performExternalValidationDebounced: h } = lt({
381
+ data: s,
382
+ options: u(() => c.value.options || {}),
383
+ performExternalValidation: n?.performExternalValidation,
384
+ customValidationMessage: l
385
+ });
386
+ await (t || q(e))?.();
387
+ let g = (e, t) => {
388
+ a.handleChange(e, t), h(t), d(t);
389
+ };
390
+ return () => o.value ? v(e, {
391
+ handleChange: g,
392
+ control: a.control.value,
393
+ disabled: !a.control.value.enabled,
394
+ changeValue: (e) => {
395
+ g(a.control.value.path, e);
396
+ },
397
+ error: !p.value,
398
+ subText: f.value.errors.at(-1),
399
+ onRegisterValidation: m
400
+ }, i.slots) : null;
401
+ }, { props: V() }), dt = { class: "description-wrapper" }, ft = /*#__PURE__*/ t(/* @__PURE__ */ _({
402
+ __name: "DescriptionPopover",
403
+ props: {
404
+ html: {},
405
+ hover: {
406
+ type: Boolean,
407
+ default: !1
408
+ }
409
+ },
410
+ setup(e) {
411
+ return (t, n) => (w(), d(k(Ce), { hidden: !e.hover }, {
412
+ default: j(() => [m("div", dt, [h(k(Se), {
413
+ text: e.html ?? "",
414
+ "render-as-html": ""
415
+ }, null, 8, ["text"])])]),
416
+ _: 1
417
+ }, 8, ["hidden"]));
418
+ }
419
+ }), [["__scopeId", "data-v-36483899"]]), pt = (e) => J((t, n) => {
420
+ let r = u(() => t.control.description);
421
+ return () => v(e, t, {
422
+ ...n.slots,
423
+ buttons: (e) => {
424
+ let t = r.value !== void 0 && r.value !== "";
425
+ return [...n.slots.buttons ? [n.slots.buttons(e)] : [], ...t ? [v(ft, {
426
+ html: r.value,
427
+ hover: e.hover
428
+ })] : []];
429
+ }
430
+ });
431
+ }), mt = (e, t) => _(async (n, r) => {
432
+ let { layout: i } = xe(n), a = u(() => i.value.visible);
433
+ return await (t || q(e))?.(), () => a.value ? v(e, { layout: i.value }, r.slots) : null;
434
+ }, { props: V() }), ht = { layout: {
435
+ type: Object,
436
+ required: !0
437
+ } }, gt = (e) => _(e, { props: ht }), _t = (e) => gt((t, n) => {
438
+ let r = u(() => t.layout.uischema.description);
439
+ return () => v(e, t, {
440
+ ...n.slots,
441
+ buttons: (e) => {
442
+ let t = r.value !== void 0 && r.value !== "";
443
+ return [...n.slots.buttons ? [n.slots.buttons(e)] : [], ...t ? [v(ft, {
444
+ html: r.value,
445
+ hover: e.hover
446
+ })] : []];
447
+ }
448
+ });
449
+ }), X = {
450
+ singleSelect: "singleSelection",
451
+ dropDown: "dropDown",
452
+ radio: "radio",
453
+ valueSwitch: "valueSwitch",
454
+ checkboxes: "checkboxes",
455
+ integer: "integer",
456
+ number: "number",
457
+ quantity: "quantity",
458
+ typedStringFilter: "typedStringFilter",
459
+ nameFilter: "nameFilter",
460
+ richTextInput: "richTextInput",
461
+ twinList: "twinList",
462
+ manualTwinlist: "manualTwinlist",
463
+ comboBox: "comboBox",
464
+ sortList: "sortList",
465
+ simpleButton: "simpleButton",
466
+ progressButton: "progressButton",
467
+ textArea: "textArea",
468
+ textMessage: "textMessage",
469
+ localTime: "localTime",
470
+ localDate: "localDate",
471
+ zonedDateTime: "zonedDateTime",
472
+ dateTime: "dateTime",
473
+ interval: "interval",
474
+ dateTimeFormat: "dateTimeFormat",
475
+ color: "color",
476
+ colorPreview: "colorPreview",
477
+ gridSelection: "gridSelection",
478
+ timeframes: "timeframes",
479
+ link: "linkButton",
480
+ username: "username",
481
+ password: "password",
482
+ executionContextDropdown: "executionContextDropdown",
483
+ dockerImageDropdown: "dockerImageDropdown",
484
+ radioButtonsWithDescription: "radioButtonsWithDescription",
485
+ fileUpload: "fileUpload",
486
+ teamResources: "teamResources",
487
+ executorCoresResources: "executorCoresResources",
488
+ executorMemoryResources: "executorMemoryResources",
489
+ teamAndSpacesDropdown: "teamAndSpacesDropdown"
490
+ }, Z = (e) => (t) => t.options?.format === e, Q = {
491
+ fallback: 10,
492
+ default: 100
493
+ }, vt = g(() => import("./CheckboxesControl-BZhMhT9x.js")), yt = Y()({
494
+ name: "CheckboxesControl",
495
+ control: vt,
496
+ tester: z(Q.default, Z(X.checkboxes))
497
+ }), bt = {
498
+ name: "ColorPreviewControl",
499
+ control: g(() => import("./ColorPreviewControl-B4zix2kb.js")),
500
+ tester: z(Q.default, Z(X.colorPreview))
501
+ }, xt = g(() => import("./ColorControl-D1dNnNbO.js")), St = Y()({
502
+ name: "ColorControl",
503
+ control: xt,
504
+ tester: z(Q.default, Z(X.color))
505
+ }), Ct = g(() => import("./ComboBoxControl-BGWAD9IW.js")), wt = M(ge((e) => de(e, "array")), Z(X.comboBox)), Tt = Y()({
506
+ name: "ComboBoxControl",
507
+ control: Ct,
508
+ tester: z(Q.default, wt)
509
+ }), Et = g(() => import("./DateTimeFormatPickerControl-BiYcsKSn.js")), Dt = Y()({
510
+ name: "DateTimeFormatPickerControl",
511
+ control: Et,
512
+ tester: z(Q.default, M(P, Z(X.dateTimeFormat)))
513
+ }), Ot = g({ loader: () => import("./DateTimeControl-kTQZI9JC.js") }), kt = Y()({
514
+ name: "DateTimeControl",
515
+ control: Ot,
516
+ tester: z(Q.default, Z(X.dateTime))
517
+ }), At = g({ loader: () => import("./DropdownControl-jsayV3N5.js") }), jt = Y()({
518
+ name: "DropdownControl",
519
+ control: At,
520
+ tester: z(Q.default, M(P, Z(X.dropDown)))
521
+ }), Mt = g(() => import("./ExecutorCoresControl-DNo2SaC6.js")), Nt = Y()({
522
+ name: "ExecutorCoresControl",
523
+ control: Mt,
524
+ tester: z(Q.default, M(F, Z(X.executorCoresResources)))
525
+ }), Pt = g(() => import("./ExecutorMemoryControl-C8RLYQdd.js")), Ft = Y()({
526
+ name: "ExecutorMemoryControl",
527
+ control: Pt,
528
+ tester: z(Q.default, M(F, Z(X.executorMemoryResources)))
529
+ }), It = {
530
+ name: "CheckboxControl",
531
+ control: g(() => import("./CheckboxControl-C99OdmDL.js")),
532
+ tester: z(Q.fallback, pe)
533
+ }, Lt = g(() => import("./IntegerControl-Cr8SO0xH.js")), Rt = Y()({
534
+ name: "IntegerControl",
535
+ control: Lt,
536
+ tester: z(Q.default, M(F, Z(X.integer)))
537
+ }), zt = g(() => import("./NumberControl-ODy5GAlR.js")), Bt = Y()({
538
+ name: "NumberControl",
539
+ control: zt,
540
+ tester: z(Q.default, M(I, Z(X.number)))
541
+ }), Vt = g(() => Promise.resolve().then(() => Ar)), Ht = Y()({
542
+ name: "TextControl",
543
+ control: Vt,
544
+ tester: z(Q.fallback, R)
545
+ }), Ut = g(() => import("./VerticalLayout-zV890HYr.js")), Wt = {
546
+ name: "VerticalLayout",
547
+ layout: Ut,
548
+ tester: z(Q.default, B("VerticalLayout"))
549
+ }, Gt = {
550
+ name: "VerticalLayout",
551
+ layout: Ut,
552
+ tester: z(Q.fallback, B(void 0))
553
+ }, Kt = g(() => import("./OneOfDropdown-CMPRAraI.js")), qt = g(() => import("./AnyOfTwinlist-iPxS5C9Y.js")), Jt = {
554
+ oneOfDropdownRenderer: Y()({
555
+ name: "OneOfDropdown",
556
+ control: Kt,
557
+ tester: z(Q.fallback, L)
558
+ }),
559
+ dateTimeFallbackRenderer: {
560
+ ...kt,
561
+ tester: z(Q.fallback, me)
562
+ },
563
+ textRenderer: Ht,
564
+ checkboxRenderer: It,
565
+ anyOfTwinlistRenderer: Y()({
566
+ name: "AnyOfTwinlist",
567
+ control: qt,
568
+ tester: z(Q.fallback, fe)
569
+ }),
570
+ numberFallbackRenderer: {
571
+ ...Bt,
572
+ tester: z(Q.fallback, I)
573
+ },
574
+ integerFallbackRenderer: {
575
+ ...Rt,
576
+ tester: z(Q.fallback, F)
577
+ }
578
+ }, Yt = { verticalLayoutFallbackRenderer: Gt }, Xt = g(() => import("./FileUploadControl-Cv3xWTAS.js")), Zt = Y()({
579
+ name: "FileUploadRenderer",
580
+ control: Xt,
581
+ tester: z(Q.default, M(P, Z(X.fileUpload)))
582
+ }), Qt = g(() => import("./GridSelectionControl-BqtaGQYg.js")), $t = Y()({
583
+ name: "GridSelectionRenderer",
584
+ control: Qt,
585
+ tester: z(Q.default, M(P, Z(X.gridSelection)))
586
+ }), en = g(() => import("./HorizontalLayout-B_lETfCu.js")), tn = B("HorizontalLayout"), nn = {
587
+ name: "HorizontalLayout",
588
+ layout: en,
589
+ tester: z(Q.default, tn)
590
+ }, rn = g(() => import("./IntervalControl-BdjKEwLy.js")), an = Y()({
591
+ name: "IntervalControl",
592
+ control: rn,
593
+ tester: z(Q.default, M(P, Z(X.interval)))
594
+ }), on = {
595
+ name: "LinkRenderer",
596
+ control: g(() => import("./LinkControl-QMwkCJlj.js")),
597
+ tester: z(Q.default, Z(X.link))
598
+ }, sn = g({ loader: () => import("./DateControl-D0HfVrtz.js") }), cn = Y()({
599
+ name: "DateControl",
600
+ control: sn,
601
+ tester: z(Q.default, Z(X.localDate))
602
+ }), ln = g({ loader: () => import("./TimeControl-B29iTlhP.js") }), un = Y()({
603
+ name: "TimeControl",
604
+ control: ln,
605
+ tester: z(Q.default, Z(X.localTime))
606
+ }), dn = g(() => import("./NameFilter-CYYPRj-2.js")), fn = Y()({
607
+ name: "NameFilter",
608
+ control: dn,
609
+ tester: z(Q.default, M(P, Z(X.nameFilter)))
610
+ }), pn = "*************", mn = /* @__PURE__ */ _({
611
+ __name: "PasswordControl",
612
+ props: {
613
+ control: {},
614
+ handleChange: { type: Function },
615
+ changeValue: { type: Function },
616
+ disabled: { type: Boolean },
617
+ error: { type: Boolean },
618
+ subText: {},
619
+ onRegisterValidation: { type: Function },
620
+ labelForId: {}
621
+ },
622
+ setup(e) {
623
+ let t = e, n = E(""), r = u(() => t.control.uischema.options?.variant ?? "password"), i = u(() => t.control.uischema.options?.usePasswordPlaceholder ?? !1), a = u(() => i.value ? pn : t.control.uischema.options?.passwordPlaceholder ?? "Password"), o = u(() => n.value !== "" && !t.disabled), s = (e) => {
624
+ n.value = e, t.handleChange(t.control.path, n.value);
625
+ };
626
+ return te(() => {
627
+ n.value = t.control.data ?? "";
628
+ }), (t, i) => (w(), d(k(Oe), {
629
+ id: e.labelForId,
630
+ "model-value": n.value,
631
+ "show-visibility-toggle": o.value,
632
+ placeholder: a.value,
633
+ variant: r.value,
634
+ disabled: e.disabled,
635
+ error: e.error,
636
+ "sub-text": e.subText,
637
+ "onUpdate:modelValue": s
638
+ }, null, 8, [
639
+ "id",
640
+ "model-value",
641
+ "show-visibility-toggle",
642
+ "placeholder",
643
+ "variant",
644
+ "disabled",
645
+ "error",
646
+ "sub-text"
647
+ ]));
648
+ }
649
+ }), hn = Y()({
650
+ name: "PasswordRenderer",
651
+ control: mn,
652
+ tester: z(Q.default, Z(X.password))
653
+ }), gn = {
654
+ name: "ProgressButtonControl",
655
+ control: g(() => import("./ProgressButtonControl-BimHrSZd.js")),
656
+ tester: z(Q.default, Z(X.progressButton))
657
+ }, _n = /* @__PURE__ */ _({
658
+ __name: "QuantityControl",
659
+ props: {
660
+ control: {},
661
+ handleChange: { type: Function },
662
+ changeValue: { type: Function },
663
+ disabled: { type: Boolean },
664
+ error: { type: Boolean },
665
+ subText: {},
666
+ onRegisterValidation: { type: Function },
667
+ labelForId: {}
668
+ },
669
+ setup(e) {
670
+ let t = e, n = u(() => t.control.schema.minimum ?? 0), r = u(() => t.control.schema.maximum ?? Infinity), i = u(() => t.control.uischema.options?.step ?? 1), a = u(() => t.control.uischema.options?.unit || ""), o = (e) => {
671
+ t.handleChange(t.control.path, e);
672
+ };
673
+ return (t, s) => (w(), d(k(Ee), {
674
+ id: e.labelForId,
675
+ ariaLabel: e.control.label,
676
+ "model-value": e.control.data,
677
+ min: n.value,
678
+ max: r.value,
679
+ step: i.value,
680
+ unit: a.value,
681
+ disabled: e.disabled,
682
+ error: e.error,
683
+ "sub-text": e.subText,
684
+ "onUpdate:modelValue": o
685
+ }, null, 8, [
686
+ "id",
687
+ "ariaLabel",
688
+ "model-value",
689
+ "min",
690
+ "max",
691
+ "step",
692
+ "unit",
693
+ "disabled",
694
+ "error",
695
+ "sub-text"
696
+ ]));
697
+ }
698
+ }), vn = Y()({
699
+ name: "QuantityControl",
700
+ control: _n,
701
+ tester: z(Q.default, Z(X.quantity))
702
+ }), yn = g(() => import("./RadioControl-D_NE5s4n.js")), bn = Y()({
703
+ name: "RadioControl",
704
+ control: yn,
705
+ tester: z(Q.default, Z(X.radio))
706
+ }), xn = {
707
+ name: "RadioButtonsWithDescriptionControl",
708
+ control: g(() => import("./RadioButtonsWithDescriptionControl-DJu3ODo7.js")),
709
+ tester: z(Q.default, M(L, Z(X.radioButtonsWithDescription)))
710
+ }, Sn = g(() => import("./RichTextControl-JIM904_P.js")), Cn = Y({ fill: !0 })({
711
+ name: "RichTextControl",
712
+ control: Sn,
713
+ tester: z(Q.default, M(R, Z(X.richTextInput)))
714
+ }), wn = g(() => import("./SectionLayout-BDYjoUXM.js")), Tn = B("Section"), En = {
715
+ name: "SectionLayout",
716
+ layout: wn,
717
+ tester: z(Q.default, Tn)
718
+ }, Dn = g(() => import("./SettingsSubPanelLayout-DVw_AsU6.js")), On = B("SettingsSubPanelLayout"), kn = {
719
+ name: "SettingsSubPanelLayout",
720
+ layout: Dn,
721
+ tester: z(Q.default, On)
722
+ }, An = { class: "vertical-layout" }, jn = /*#__PURE__*/ t(/* @__PURE__ */ _({
723
+ __name: "VerticalLayoutBase",
724
+ props: { elements: {} },
725
+ setup(e) {
726
+ return (t, n) => (w(), p("div", An, [(w(!0), p(o, null, D(e.elements, (e, n) => O(t.$slots, "default", {
727
+ key: n,
728
+ element: e,
729
+ index: n
730
+ }, void 0, !0)), 128))]));
731
+ }
732
+ }), [["__scopeId", "data-v-abc3717c"]]), Mn = { class: "section-header-layout-container" }, Nn = { class: "section-header-buttons" }, Pn = /*#__PURE__*/ t(/* @__PURE__ */ _({
733
+ __name: "SectionHeading",
734
+ props: { titleText: {} },
735
+ setup(e) {
736
+ let t = ce("sentinel"), n = E(!1), r = null, i = (e) => /(auto|scroll|overlay)/.test(e), a = (e) => {
737
+ let t = e.parentElement;
738
+ for (; t;) {
739
+ let { overflowY: e, overflow: n } = globalThis.getComputedStyle(t);
740
+ if (i(e) || i(n)) return t;
741
+ t = t.parentElement;
742
+ }
743
+ return null;
744
+ };
745
+ return A(t, (e, t, i) => {
746
+ if (r?.disconnect(), r = null, !e || typeof IntersectionObserver > "u") return;
747
+ let o = a(e);
748
+ r = new IntersectionObserver(([e]) => {
749
+ n.value = e.intersectionRatio < 1;
750
+ }, {
751
+ root: o,
752
+ threshold: [1]
753
+ }), r.observe(e), i(() => {
754
+ r?.disconnect(), r = null;
755
+ });
756
+ }, {
757
+ immediate: !0,
758
+ flush: "post"
759
+ }), ee(() => {
760
+ r?.disconnect(), r = null;
761
+ }), (r, i) => (w(), p(o, null, [m("div", {
762
+ ref_key: "sentinel",
763
+ ref: t,
764
+ class: "section-header-sentinel",
765
+ "aria-hidden": "true"
766
+ }, null, 512), m("div", b({ class: ["section-header", { "is-sticking": n.value }] }, r.$attrs), [m("div", Mn, [m("h3", null, re(e.titleText), 1), m("div", Nn, [O(r.$slots, "right-buttons", {}, void 0, !0)])])], 16)], 64));
767
+ }
768
+ }), [["__scopeId", "data-v-87a3f8e3"]]), Fn = /*#__PURE__*/ t(/* @__PURE__ */ _({
769
+ __name: "SimpleArrayLayoutItemControls",
770
+ props: {
771
+ isFirst: {
772
+ type: Boolean,
773
+ default: !1
774
+ },
775
+ isLast: {
776
+ type: Boolean,
777
+ default: !1
778
+ },
779
+ showSortControls: {
780
+ type: Boolean,
781
+ default: !1
782
+ },
783
+ showDuplicateButton: {
784
+ type: Boolean,
785
+ default: !1
786
+ },
787
+ isHidingControlHeader: {
788
+ type: Boolean,
789
+ default: !1
790
+ }
791
+ },
792
+ emits: [
793
+ "moveUp",
794
+ "moveDown",
795
+ "duplicate",
796
+ "delete"
797
+ ],
798
+ setup(e) {
799
+ return (t, n) => (w(), p("div", {
800
+ class: "item-controls",
801
+ style: C({ marginTop: e.isHidingControlHeader ? "0px" : "20px" })
802
+ }, [
803
+ e.showSortControls ? (w(), d(k(H), {
804
+ key: 0,
805
+ disabled: e.isFirst,
806
+ size: "small",
807
+ variant: "transparent",
808
+ "leading-icon": "arrow-up",
809
+ tooltip: "Move up",
810
+ ariaLabel: "Move up",
811
+ onClick: n[0] ||= (e) => t.$emit("moveUp")
812
+ }, null, 8, ["disabled"])) : f("", !0),
813
+ e.showSortControls ? (w(), d(k(H), {
814
+ key: 1,
815
+ disabled: e.isLast,
816
+ size: "small",
817
+ variant: "transparent",
818
+ "leading-icon": "arrow-down",
819
+ tooltip: "Move down",
820
+ ariaLabel: "Move down",
821
+ onClick: n[1] ||= (e) => t.$emit("moveDown")
822
+ }, null, 8, ["disabled"])) : f("", !0),
823
+ e.showDuplicateButton ? (w(), d(k(H), {
824
+ key: 2,
825
+ size: "small",
826
+ variant: "transparent",
827
+ "leading-icon": "copy",
828
+ tooltip: "Duplicate",
829
+ ariaLabel: "Duplicate",
830
+ onClick: n[2] ||= (e) => t.$emit("duplicate")
831
+ })) : f("", !0),
832
+ h(k(H), {
833
+ size: "small",
834
+ class: "trashButton",
835
+ "leading-icon": "trash",
836
+ variant: "transparent",
837
+ tooltip: "Remove",
838
+ ariaLabel: "Remove",
839
+ onClick: n[3] ||= (e) => t.$emit("delete")
840
+ })
841
+ ], 4));
842
+ }
843
+ }), [["__scopeId", "data-v-9f37d47c"]]), In = {
844
+ key: 0,
845
+ class: "simple-array"
846
+ }, Ln = {
847
+ key: 0,
848
+ class: "item-header"
849
+ }, Rn = /*#__PURE__*/ t(/* @__PURE__ */ _({
850
+ __name: "SimpleArrayLayout",
851
+ props: V(),
852
+ setup(e) {
853
+ let t = e, { control: n, addItem: r, moveUp: i, moveDown: a, removeItems: s } = ye(t), { handleChange: c } = be(t), l = u(() => n.value.uischema.options ?? {}), m = u(() => l.value.showSortButtons ?? !1), g = u(() => l.value.showDuplicateButton ?? !1), _ = u(() => Object.entries(l.value.detail ?? {})), v = u(() => "arrayElementTitle" in l.value), y = u(() => l.value.hideControlHeader ?? !1), b = (e) => {
854
+ let t = [
855
+ "integer",
856
+ "number",
857
+ "boolean",
858
+ "string"
859
+ ], n = Array.isArray(e.type) ? e.type[0] : e.type;
860
+ if (!e.properties && t.includes(n ?? "")) return e.default;
861
+ let r = e.properties && !Array.isArray(e.properties) ? e.properties : void 0;
862
+ return r ? Object.fromEntries(Object.entries(r).map(([e, t]) => [e, t.default])) : e.default ?? {};
863
+ }, x = () => {
864
+ r(n.value.path, b(n.value.schema))();
865
+ }, S = (e) => `${l.value.arrayElementTitle ?? ""} ${e + 1}`, C = (e) => {
866
+ if (e in n.value.data) {
867
+ let t = ie(n.value.data[e]), r = structuredClone(t), i = [...n.value.data];
868
+ i.splice(e + 1, 0, r), c(n.value.path, i);
869
+ }
870
+ };
871
+ return (e, t) => k(n).visible ? (w(), p("div", In, [(w(!0), p(o, null, D(k(n).data, (e, t) => (w(), p("div", { key: `${k(n).path}-${t}` }, [v.value ? (w(), p("div", Ln, [h(k(Te), {
872
+ id: `${k(n).path}-${t}-title`,
873
+ label: S(t)
874
+ }, null, 8, ["id", "label"]), h(Fn, {
875
+ "is-first": t === 0,
876
+ "is-last": t === k(n).data.length - 1,
877
+ "show-sort-controls": m.value,
878
+ "show-duplicate-button": g.value,
879
+ "is-hiding-control-header": y.value,
880
+ onMoveUp: (e) => k(i)(k(n).path, t)(),
881
+ onMoveDown: (e) => k(a)(k(n).path, t)(),
882
+ onDuplicate: (e) => C(t),
883
+ onDelete: (e) => k(s)(k(N)(k(n).path, ""), [t])()
884
+ }, null, 8, [
885
+ "is-first",
886
+ "is-last",
887
+ "show-sort-controls",
888
+ "show-duplicate-button",
889
+ "is-hiding-control-header",
890
+ "onMoveUp",
891
+ "onMoveDown",
892
+ "onDuplicate",
893
+ "onDelete"
894
+ ])])) : f("", !0), (w(!0), p(o, null, D(_.value, ([e, r], o) => (w(), p("div", {
895
+ key: `${k(n).path}-${t}-${e}`,
896
+ class: "element"
897
+ }, [h(k(_e), {
898
+ class: "form-component",
899
+ schema: k(n).schema,
900
+ uischema: r,
901
+ path: k(N)(k(n).path, `${t}`),
902
+ enabled: k(n).enabled,
903
+ renderers: k(n).renderers,
904
+ cells: k(n).cells
905
+ }, null, 8, [
906
+ "schema",
907
+ "uischema",
908
+ "path",
909
+ "enabled",
910
+ "renderers",
911
+ "cells"
912
+ ]), o === 0 && !v.value ? (w(), d(Fn, {
913
+ key: 0,
914
+ "is-first": t === 0,
915
+ "is-last": t === k(n).data.length - 1,
916
+ "show-sort-controls": m.value,
917
+ "show-duplicate-button": g.value,
918
+ "is-hiding-control-header": y.value,
919
+ onMoveUp: (e) => k(i)(k(n).path, t)(),
920
+ onMoveDown: (e) => k(a)(k(n).path, t)(),
921
+ onDuplicate: (e) => C(t),
922
+ onDelete: (e) => k(s)(k(N)(k(n).path, ""), [t])()
923
+ }, null, 8, [
924
+ "is-first",
925
+ "is-last",
926
+ "show-sort-controls",
927
+ "show-duplicate-button",
928
+ "is-hiding-control-header",
929
+ "onMoveUp",
930
+ "onMoveDown",
931
+ "onDuplicate",
932
+ "onDelete"
933
+ ])) : f("", !0)]))), 128))]))), 128)), h(k(H), {
934
+ label: l.value.addButtonText,
935
+ "leading-icon": "plus",
936
+ size: "small",
937
+ variant: "outlined",
938
+ onClick: x
939
+ }, null, 8, ["label"])])) : f("", !0);
940
+ }
941
+ }), [["__scopeId", "data-v-7737a235"]]), zn = B("SimpleArrayLayout"), Bn = {
942
+ name: "SimpleArrayLayout",
943
+ tester: z(Q.default, zn),
944
+ renderer: Rn
945
+ }, Vn = {
946
+ name: "SimpleButtonControl",
947
+ control: g(() => Promise.resolve().then(() => Dr)),
948
+ tester: z(Q.default, Z(X.simpleButton))
949
+ }, Hn = g(() => import("./SingleSelectControl-CJV9VMZm.js")), Un = Y()({
950
+ name: "SingleSelectControl",
951
+ control: Hn,
952
+ tester: z(Q.default, Z(X.singleSelect))
953
+ }), Wn = g(() => import("./SortListControl-D-ifoRva.js")), Gn = Y()({
954
+ name: "SortListControl",
955
+ control: Wn,
956
+ tester: z(Q.default, M(P, Z(X.sortList)))
957
+ }), Kn = g(() => import("./TeamAndSpacesControl-D1FvyeCV.js")), qn = Y()({
958
+ name: "TeamAndSpacesDropdownControl",
959
+ control: Kn,
960
+ tester: z(Q.default, M(P, ({ options: e }) => e?.format === X.teamAndSpacesDropdown && e?.hasOwnProperty("possibleSpaces") && e?.hasOwnProperty("possibleTeams")))
961
+ }), Jn = g(() => import("./TeamResourceControl-DyCO6-Nk.js")), Yn = Y()({
962
+ name: "TeamResourceControl",
963
+ control: Jn,
964
+ tester: z(Q.default, M(F, Z(X.teamResources)))
965
+ }), Xn = g(() => import("./TextAreaControl-7QziyTgn.js")), Zn = Y()({
966
+ name: "TextAreaControl",
967
+ control: Xn,
968
+ tester: z(Q.default, M(R, Z(X.textArea)))
969
+ }), Qn = {
970
+ name: "TextMessageControl",
971
+ control: /* @__PURE__ */ _({
972
+ __name: "TextMessageControl",
973
+ props: {
974
+ control: {},
975
+ handleChange: { type: Function },
976
+ changeValue: { type: Function },
977
+ disabled: { type: Boolean },
978
+ labelForId: {},
979
+ error: { type: Boolean },
980
+ subText: {},
981
+ onRegisterValidation: { type: Function }
982
+ },
983
+ setup(e) {
984
+ let t = e, n = r(u(() => t.control.uischema), "message");
985
+ return (e, t) => k(n) ? (w(), d(k(we), {
986
+ key: 0,
987
+ variant: k(n).type.toLowerCase(),
988
+ headline: k(n).title,
989
+ description: k(n).description
990
+ }, null, 8, [
991
+ "variant",
992
+ "headline",
993
+ "description"
994
+ ])) : f("", !0);
995
+ }
996
+ }),
997
+ tester: z(Q.default, Z(X.textMessage))
998
+ }, $n = g(() => import("./TimeframesControl-Wvu--J0V.js")), er = Y()({
999
+ name: "TimeframesRenderer",
1000
+ control: $n,
1001
+ tester: z(Q.default, M(P, Z(X.timeframes)))
1002
+ }), tr = g(() => import("./useUnknownValuesInTwinlist-BvCTc3hC.js").then((e) => e.r)), nr = g(() => import("./SimpleTwinlistControl-BNnOmbN-.js")), rr = g(() => import("./ManualTwinlistControl-CPILp7H_.js")), ir = ge((e) => !!(e.hasOwnProperty("properties") && e.properties?.hasOwnProperty("selected"))), $ = (e) => P(e) && e.options?.format === X.twinList, ar = M($, ir), or = Y()({
1003
+ name: "TwinlistControl",
1004
+ control: tr,
1005
+ tester: z(Q.default, ar)
1006
+ }), sr = M($, he(ir)), cr = Y()({
1007
+ name: "SimpleTwinlistControl",
1008
+ control: nr,
1009
+ tester: z(Q.default, sr)
1010
+ }), lr = Z("manualTwinlist"), ur = Y()({
1011
+ name: "ManualTwinlistControl",
1012
+ control: rr,
1013
+ tester: z(Q.default, lr)
1014
+ }), dr = g(() => import("./TypedStringFilter-Ek7bQ-7j.js")), fr = Y()({
1015
+ name: "TypedStringFilter",
1016
+ control: dr,
1017
+ tester: z(Q.default, M(P, Z(X.typedStringFilter)))
1018
+ }), pr = /* @__PURE__ */ _({
1019
+ __name: "UsernameControl",
1020
+ props: {
1021
+ control: {},
1022
+ handleChange: { type: Function },
1023
+ changeValue: { type: Function },
1024
+ disabled: { type: Boolean },
1025
+ error: { type: Boolean },
1026
+ subText: {},
1027
+ onRegisterValidation: { type: Function },
1028
+ labelForId: {}
1029
+ },
1030
+ setup(e) {
1031
+ let t = e, n = E(t.control.data), r = (e) => {
1032
+ t.handleChange(t.control.path, e);
1033
+ };
1034
+ return (t, i) => (w(), d(k(je), {
1035
+ id: e.labelForId,
1036
+ "model-value": n.value,
1037
+ disabled: e.disabled,
1038
+ error: e.error,
1039
+ "sub-text": e.subText,
1040
+ "onUpdate:modelValue": r
1041
+ }, null, 8, [
1042
+ "id",
1043
+ "model-value",
1044
+ "disabled",
1045
+ "error",
1046
+ "sub-text"
1047
+ ]));
1048
+ }
1049
+ }), mr = Y()({
1050
+ name: "UsernameRenderer",
1051
+ control: pr,
1052
+ tester: z(Q.default, Z(X.username))
1053
+ }), hr = g(() => import("./ValueSwitchControl-H2t2Wgo6.js")), gr = Y()({
1054
+ name: "ValueSwitchControl",
1055
+ control: hr,
1056
+ tester: z(Q.default, M(L, Z(X.valueSwitch)))
1057
+ }), _r = g({ loader: () => import("./ZonedDateTimeControl-DoE2T9iz.js") }), vr = {
1058
+ checkboxesRenderer: yt,
1059
+ colorPreviewRenderer: bt,
1060
+ colorRenderer: St,
1061
+ typedStringFilterRenderer: fr,
1062
+ comboBoxRenderer: Tt,
1063
+ dateTimeRenderer: kt,
1064
+ dateTimeFormatPickerRenderer: Dt,
1065
+ integerRenderer: Rt,
1066
+ intervalRenderer: an,
1067
+ localDateRenderer: cn,
1068
+ localTimeRenderer: un,
1069
+ nameFilterRenderer: fn,
1070
+ numberRenderer: Bt,
1071
+ radioRenderer: bn,
1072
+ richTextRenderer: Cn,
1073
+ simpleTwinlistRenderer: cr,
1074
+ sortListRenderer: Gn,
1075
+ textAreaRenderer: Zn,
1076
+ twinlistRenderer: or,
1077
+ manualTwinlistRenderer: ur,
1078
+ valueSwitchRenderer: gr,
1079
+ zonedDateTimeRenderer: Y()({
1080
+ name: "ZonedDateTimeControl",
1081
+ control: _r,
1082
+ tester: z(Q.default, (e) => e.options?.format === X.zonedDateTime)
1083
+ }),
1084
+ singleSelectRenderer: Un,
1085
+ gridSelectionRenderer: $t,
1086
+ timeframesRenderer: er,
1087
+ quantityRenderer: vn,
1088
+ usernameRenderer: mr,
1089
+ passwordRenderer: hn,
1090
+ simpleButtonRenderer: Vn,
1091
+ progressButtonRenderer: gn,
1092
+ textMessageRenderer: Qn,
1093
+ linkRenderer: on,
1094
+ dropdownRenderer: jt,
1095
+ radioWithDescriptionRenderer: xn,
1096
+ fileUploadRenderer: Zt,
1097
+ teamResourceRenderer: Yn,
1098
+ executorCoresResourceRenderer: Nt,
1099
+ executorMemoryResourceRenderer: Ft,
1100
+ teamAndSpacesDropdownRenderer: qn,
1101
+ ...Jt
1102
+ }, yr = Qe(pt)(vr), br = {
1103
+ horizontalLayoutRenderer: nn,
1104
+ verticalLayoutRenderer: Wt,
1105
+ sectionLayoutRenderer: En,
1106
+ settingsSubPanelLayoutRenderer: kn,
1107
+ ...Yt
1108
+ }, xr = $e(_t)(br), Sr = ({ renderers: e, controls: t, layouts: n, config: r = {} }) => Object.freeze([
1109
+ ...e,
1110
+ ...t.map(({ name: e, tester: t, control: n, __asyncSetup: i }) => ({
1111
+ name: e,
1112
+ tester: t,
1113
+ renderer: ut({
1114
+ component: n,
1115
+ asyncSetup: i,
1116
+ config: r
1117
+ })
1118
+ })),
1119
+ ...n.map(({ name: e, tester: t, layout: n, __asyncSetup: r }) => ({
1120
+ name: e,
1121
+ tester: t,
1122
+ renderer: mt(n, r)
1123
+ }))
1124
+ ]), Cr = Sr({
1125
+ renderers: [Bn],
1126
+ controls: Object.values(yr),
1127
+ layouts: Object.values(xr)
1128
+ }), wr = /* @__PURE__ */ _({
1129
+ __name: "FieldRenderer",
1130
+ props: {
1131
+ control: {},
1132
+ fieldName: {},
1133
+ uischema: {}
1134
+ },
1135
+ setup(e) {
1136
+ let t = (e, t) => e === "" ? t : `${e}.${t}`, n = e, r = u(() => t(n.control.path, n.fieldName)), i = u(() => n.control.schema.properties[n.fieldName]);
1137
+ return (t, n) => (w(), d(k(_e), {
1138
+ key: r.value,
1139
+ schema: i.value,
1140
+ uischema: e.uischema,
1141
+ path: r.value,
1142
+ enabled: e.control.enabled,
1143
+ renderers: e.control.renderers,
1144
+ cells: e.control.cells
1145
+ }, null, 8, [
1146
+ "schema",
1147
+ "uischema",
1148
+ "path",
1149
+ "enabled",
1150
+ "renderers",
1151
+ "cells"
1152
+ ]));
1153
+ }
1154
+ }), Tr = /* @__PURE__ */ _({
1155
+ __name: "FieldControl",
1156
+ props: {
1157
+ control: {},
1158
+ fieldName: {},
1159
+ format: {},
1160
+ options: {}
1161
+ },
1162
+ setup(e) {
1163
+ let t = e, n = u(() => ({
1164
+ type: "Control",
1165
+ scope: "#",
1166
+ options: {
1167
+ ...t.options,
1168
+ format: t.format
1169
+ }
1170
+ }));
1171
+ return (t, r) => (w(), d(wr, {
1172
+ "field-name": e.fieldName,
1173
+ uischema: n.value,
1174
+ control: e.control
1175
+ }, null, 8, [
1176
+ "field-name",
1177
+ "uischema",
1178
+ "control"
1179
+ ]));
1180
+ }
1181
+ }), Er = /*@__PURE__*/ _({
1182
+ __name: "SimpleButtonControl",
1183
+ props: {
1184
+ control: {},
1185
+ handleChange: { type: Function },
1186
+ changeValue: { type: Function },
1187
+ disabled: { type: Boolean },
1188
+ labelForId: {},
1189
+ error: { type: Boolean },
1190
+ subText: {},
1191
+ onRegisterValidation: { type: Function }
1192
+ },
1193
+ setup(e) {
1194
+ let t = e, i = u(() => !t.control.enabled), a = t.control.uischema.providedOptions, o = E(!1), s = u(() => t.control.uischema), c = a && a.includes("runFinished");
1195
+ c && A(r(s, "runFinished", null), () => {
1196
+ o.value = !1;
1197
+ });
1198
+ let l = u(() => i.value || o.value), d = u(() => s.value.options.triggerId), f = u(() => s.value.options.icon), m = n("trigger"), g = async () => {
1199
+ c && (o.value = !0), await m({ id: d.value });
1200
+ }, _ = E(!1);
1201
+ return (t, n) => (w(), p("div", {
1202
+ class: "simple-button-input",
1203
+ onMouseenter: n[0] ||= (e) => _.value = !0,
1204
+ onMouseleave: n[1] ||= (e) => _.value = !1
1205
+ }, [h(k(H), {
1206
+ variant: "outlined",
1207
+ size: "small",
1208
+ disabled: l.value,
1209
+ label: e.control.label,
1210
+ "leading-icon": f.value,
1211
+ onClick: g
1212
+ }, null, 8, [
1213
+ "disabled",
1214
+ "label",
1215
+ "leading-icon"
1216
+ ]), O(t.$slots, "buttons", { hover: _.value }, void 0, !0)], 32));
1217
+ }
1218
+ }), Dr = /* @__PURE__ */ e({ default: () => Or }), Or = /*#__PURE__*/ t(Er, [["__scopeId", "data-v-c79c6b71"]]), kr = /*@__PURE__*/ _({
1219
+ __name: "TextControl",
1220
+ props: {
1221
+ control: {},
1222
+ handleChange: { type: Function },
1223
+ changeValue: { type: Function },
1224
+ disabled: { type: Boolean },
1225
+ error: { type: Boolean },
1226
+ subText: {},
1227
+ onRegisterValidation: { type: Function },
1228
+ labelForId: {}
1229
+ },
1230
+ setup(e, { expose: t }) {
1231
+ let n = e;
1232
+ a({
1233
+ pattern: ({ pattern: e }) => {
1234
+ let t = RegExp(`^(${e})$`);
1235
+ return (e) => t.test(e ?? "");
1236
+ },
1237
+ minLength: ({ minLength: e }) => (t) => (t?.length ?? 0) >= e,
1238
+ maxLength: ({ maxLength: e }) => (t) => (t?.length ?? 0) <= e
1239
+ }, n);
1240
+ let i = u(() => n.control.uischema), o = r(i, "placeholder", ""), s = r(i, "suggestions"), c = u(() => i.value?.options?.suggestionsTitle || "Suggestions"), l = ce("inputField");
1241
+ return t({ focus: () => l.value?.focus() }), (t, n) => (w(), d(k(ke), {
1242
+ id: e.labelForId,
1243
+ ref_key: "inputField",
1244
+ ref: l,
1245
+ ariaLabel: e.control.label,
1246
+ placeholder: k(o),
1247
+ "model-value": e.control.data ?? "",
1248
+ disabled: e.disabled,
1249
+ error: e.error,
1250
+ "sub-text": e.subText,
1251
+ suggestions: k(s) ?? void 0,
1252
+ "suggestions-headline": c.value,
1253
+ "onUpdate:modelValue": e.changeValue
1254
+ }, null, 8, [
1255
+ "id",
1256
+ "ariaLabel",
1257
+ "placeholder",
1258
+ "model-value",
1259
+ "disabled",
1260
+ "error",
1261
+ "sub-text",
1262
+ "suggestions",
1263
+ "suggestions-headline",
1264
+ "onUpdate:modelValue"
1265
+ ]));
1266
+ }
1267
+ }), Ar = /* @__PURE__ */ e({ default: () => jr }), jr = kr;
1268
+ //#endregion
1269
+ export { W as A, Qe as C, qe as D, K as E, Ve as O, et as S, q as T, pt as _, Cr as a, Ze as b, Rn as c, Q as d, X as f, mt as g, ht as h, vr as i, G as k, Pn as l, gt as m, Or as n, br as o, _t as p, Tr as r, Sr as s, jr as t, jn as u, ut as v, $e as w, J as x, Y as y };