@knime/scripting-editor 0.0.149 → 0.0.150

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