@knime/jsonforms 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/CHANGELOG.md +29 -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/plainDateTimeUtils-5uOCJ4N5.js +58 -0
  53. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  54. package/dist/src/JsonFormsDialog.vue.d.ts +53 -435
  55. package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +2 -1
  56. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +21 -21
  57. package/dist/src/layoutComponents/Form.vue.d.ts +9 -12
  58. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +2 -1
  59. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +9 -13
  60. package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +9 -13
  61. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +2 -1
  62. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +10 -14
  63. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -15
  64. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +11 -10
  65. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +2 -1
  66. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +3 -2
  67. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -1
  68. package/dist/src/renderers/checkboxRenderer.d.ts +5 -4
  69. package/dist/src/renderers/colorPreviewRenderer.d.ts +1 -1
  70. package/dist/src/renderers/defaultRenderers.d.ts +22 -21
  71. package/dist/src/renderers/fallbackRenderers.d.ts +6 -5
  72. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  73. package/dist/src/renderers/linkRenderer.d.ts +1 -1
  74. package/dist/src/renderers/progressButtonRenderer.d.ts +3 -3
  75. package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -3
  76. package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +3 -3
  77. package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
  78. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  79. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +11 -14
  80. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  81. package/dist/src/uiComponents/ColorControl.vue.d.ts +2 -1
  82. package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +2 -1
  83. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  84. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  85. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  86. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  87. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  88. package/dist/src/uiComponents/FieldControl.vue.d.ts +12 -7
  89. package/dist/src/uiComponents/FieldRenderer.vue.d.ts +12 -7
  90. package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -3
  91. package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +2 -1
  92. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  93. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  94. package/dist/src/uiComponents/LinkControl.vue.d.ts +2 -1
  95. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  96. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -1
  97. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  98. package/dist/src/uiComponents/PasswordControl.vue.d.ts +2 -1
  99. package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +9 -13
  100. package/dist/src/uiComponents/QuantityControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -13
  105. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/TextControl.vue.d.ts +3 -454
  110. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  112. package/dist/src/uiComponents/TimeframesControl.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/UsernameControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  115. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  116. package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +2 -1
  119. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +3 -2
  120. package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +2 -1
  121. package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +2 -141
  125. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  126. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  127. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +3 -2
  128. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  129. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  132. package/dist/src-DwqijroM.js +1269 -0
  133. package/dist/temporal-polyfill-D4u1I_Z-.js +3114 -0
  134. package/dist/testing.d.ts +1 -1
  135. package/dist/testing.js +108 -19153
  136. package/dist/toKdsPossibleValues-Dd_qzlUI.js +14 -0
  137. package/dist/useBuiltinValidations-B_Drc2y-.js +43 -0
  138. package/dist/usePossibleValues-Cx6iSt_X.js +15 -0
  139. package/dist/useProvidedState-478_KXOe.js +26 -0
  140. package/dist/useUnknownValuesInTwinlist-BvCTc3hC.js +205 -0
  141. package/dist/utils-DmZLgn8X.js +12 -0
  142. package/package.json +21 -11
  143. package/dist/AnyOfTwinlist-CcodfEXw.js +0 -23
  144. package/dist/CheckboxControl-B_MAR82s.js +0 -41
  145. package/dist/CheckboxesControl--bG4aF6O.js +0 -39
  146. package/dist/ColorControl-CEp2Ei7R.js +0 -29
  147. package/dist/ColorPreviewControl-j0uQH95J.js +0 -90
  148. package/dist/ComboBoxControl-BpJzwiv6.js +0 -39
  149. package/dist/DateControl-83Fi6P5y.js +0 -44
  150. package/dist/DateTimeControl-C-D8bFm3.js +0 -103
  151. package/dist/DateTimeFormatPickerControl-B9gl_66T.js +0 -35
  152. package/dist/DropdownControl-CtveoldX.js +0 -32
  153. package/dist/ExecutorCoresControl-CErHidL7.js +0 -39
  154. package/dist/ExecutorMemoryControl-DgSM86Yg.js +0 -35
  155. package/dist/FileUploadControl-BBfnxURy.js +0 -56
  156. package/dist/GridSelectionControl-BaI4j0Jj.js +0 -117
  157. package/dist/HorizontalLayout-D1SRCyhL.js +0 -26
  158. package/dist/IntegerControl-v93Xw4DJ.js +0 -21
  159. package/dist/IntervalControl-CVlO_mFO.js +0 -52
  160. package/dist/LinkControl-j8GrcZZG.js +0 -36
  161. package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js +0 -57
  162. package/dist/ManualTwinlistControl-BzJehuHs.js +0 -74
  163. package/dist/MultimodeTwinlistControl-Br0DrpsZ.js +0 -4
  164. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js +0 -159
  165. package/dist/NameFilter-BjuVseuX.js +0 -25
  166. package/dist/NumberControl-BF76FEhD.js +0 -21
  167. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js +0 -52
  168. package/dist/OneOfDropdown-DpXmZauV.js +0 -35
  169. package/dist/ProgressButtonControl-t8QMA22a.js +0 -52
  170. package/dist/RadioButtonsWithDescriptionControl-CeZ4qYCr.js +0 -58
  171. package/dist/RadioControl-DOn1Kre5.js +0 -21
  172. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js +0 -57
  173. package/dist/ResourceControlBase-CX97xRiy.js +0 -70
  174. package/dist/RichTextControl-BrVmkMgh.js +0 -60
  175. package/dist/SectionHeading-YAJTwOE4.js +0 -61
  176. package/dist/SectionLayout-BYOxuxY2.js +0 -47
  177. package/dist/SettingsSubPanel-DgISjowU.js +0 -5
  178. package/dist/SettingsSubPanelLayout-BQJCnTqx.js +0 -69
  179. package/dist/SimpleButtonControl-GTX19t2_.js +0 -50
  180. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js +0 -1284
  181. package/dist/SimpleTwinlistControl-DOH1_L25.js +0 -23
  182. package/dist/SingleSelectControl-mY_yYOyk.js +0 -58
  183. package/dist/SortListControl-D-Um5gEW.js +0 -81
  184. package/dist/TeamAndSpacesControl-fGumynvr.js +0 -66
  185. package/dist/TeamResourceControl--1Sj3-Ks.js +0 -35
  186. package/dist/TextAreaControl-Cwq-lNBk.js +0 -30
  187. package/dist/TextControl-MvbrNTGW.js +0 -4
  188. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js +0 -53
  189. package/dist/TimeControl-WG0SC4_b.js +0 -71
  190. package/dist/TimeframesControl-CX5eKOGZ.js +0 -53
  191. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BKCvZF3X.js +0 -45
  192. package/dist/TypedStringFilter-BnWygKQJ.js +0 -27
  193. package/dist/ValueSwitchControl-BByKe7NK.js +0 -21
  194. package/dist/VerticalLayout-DIBkvSZ9.js +0 -30
  195. package/dist/VerticalLayoutBase-BEDnWcoh.js +0 -20
  196. package/dist/ZonedDateTimeControl-B45OygrC.js +0 -97
  197. package/dist/index-Blg1O3Fz.js +0 -15
  198. package/dist/index-_VUHzju5.js +0 -3210
  199. package/dist/magic-string.es-uPKorP4O.js +0 -663
  200. package/dist/plainDateTimeUtils-BZSKqp9i.js +0 -52
  201. package/dist/toKdsPossibleValues-BklBg3gG.js +0 -14
  202. package/dist/useBuiltinValidations-_4IBMopQ.js +0 -74
  203. package/dist/usePossibleValues-CXVLf00v.js +0 -16
  204. package/dist/useUnknownValuesInTwinlist-uXOCQkVS.js +0 -65
@@ -0,0 +1,69 @@
1
+ import { i as e } from "./utils-DmZLgn8X.js";
2
+ import { n as t } from "./usePossibleValues-Cx6iSt_X.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, defineComponent as s, mergeProps as c, onMounted as l, openBlock as u, ref as d, toRef as f, unref as p, useAttrs as m } from "vue";
4
+ import { KdsRadioButtonGroup as h, KdsValueSwitch as g } from "@knime/kds-components";
5
+ //#endregion
6
+ //#region src/uiComponents/RadioControlBase.vue
7
+ var _ = /* @__PURE__ */ s({
8
+ inheritAttrs: !1,
9
+ __name: "RadioControlBase",
10
+ props: {
11
+ control: {},
12
+ handleChange: { type: Function },
13
+ changeValue: { type: Function },
14
+ disabled: { type: Boolean },
15
+ error: { type: Boolean },
16
+ subText: {},
17
+ onRegisterValidation: { type: Function },
18
+ labelForId: {},
19
+ type: {}
20
+ },
21
+ setup(s) {
22
+ let _ = m(), v = s, y = r(() => v.control.uischema.options?.radioLayout), b = (e) => ({
23
+ id: e.id,
24
+ text: e.text,
25
+ ...e.disabled ? { disabled: !0 } : {}
26
+ }), x = d(null), { possibleValues: S } = t(f(v, "control"), { defaultOnNonProvided: null }), C = r(() => (S.value ?? x.value)?.map(b)), w = (e) => {
27
+ e !== void 0 && v.changeValue(e);
28
+ };
29
+ return l(() => {
30
+ x.value = v.control?.schema?.oneOf ? v.control.schema.oneOf.map(e) : null;
31
+ }), (e, t) => C.value ? (u(), o(n, { key: 0 }, [v.type === "valueSwitch" ? (u(), i(p(g), c({ key: 0 }, p(_), {
32
+ id: s.labelForId,
33
+ "possible-values": C.value,
34
+ disabled: s.disabled,
35
+ "model-value": s.control.data,
36
+ error: s.error,
37
+ "sub-text": s.subText,
38
+ size: "small",
39
+ variant: "muted",
40
+ "onUpdate:modelValue": w
41
+ }), null, 16, [
42
+ "id",
43
+ "possible-values",
44
+ "disabled",
45
+ "model-value",
46
+ "error",
47
+ "sub-text"
48
+ ])) : (u(), i(p(h), c({ key: 1 }, p(_), {
49
+ id: s.labelForId,
50
+ "possible-values": C.value,
51
+ alignment: y.value,
52
+ disabled: s.disabled,
53
+ "model-value": s.control.data,
54
+ error: s.error,
55
+ "sub-text": s.subText,
56
+ "onUpdate:modelValue": w
57
+ }), null, 16, [
58
+ "id",
59
+ "possible-values",
60
+ "alignment",
61
+ "disabled",
62
+ "model-value",
63
+ "error",
64
+ "sub-text"
65
+ ]))], 64)) : a("", !0);
66
+ }
67
+ });
68
+ //#endregion
69
+ export { _ as t };
@@ -0,0 +1,64 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { computed as t, createCommentVNode as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s, withDirectives as c } from "vue";
3
+ import { KdsDonutChart as l, KdsNumberInput as u, vKdsTooltip as d } from "@knime/kds-components";
4
+ //#region src/uiComponents/resourceControls/ResourceControlBase.vue?vue&type=script&setup=true&lang.ts
5
+ var f = { class: "input-wrapper" }, p = {
6
+ key: 0,
7
+ class: "chart"
8
+ }, m = /*#__PURE__*/ e(/* @__PURE__ */ a({
9
+ __name: "ResourceControlBase",
10
+ props: {
11
+ donutTitle: {},
12
+ donutDescription: {},
13
+ control: {},
14
+ handleChange: { type: Function },
15
+ changeValue: { type: Function },
16
+ disabled: { type: Boolean },
17
+ error: { type: Boolean },
18
+ subText: {},
19
+ onRegisterValidation: { type: Function },
20
+ labelForId: {}
21
+ },
22
+ setup(e) {
23
+ let a = e, m = t(() => a.control.uischema.options?.modelMax ?? !1), h = t(() => a.control.uischema.options?.currentUsage ?? a.control.data), g = t(() => a.control.schema.secondaryValue ?? 0), _ = t(() => m.value ? a.control.data : a.control.uischema.options?.donutMax ?? a.control.schema.maximum ?? Infinity), v = t(() => a.control.uischema.options?.disabledTooltip || ""), y = t(() => a.disabled ? v.value : ""), b = t(() => a.control.uischema.options?.animate ?? !0), x = t(() => a.control.uischema.options?.showDonut ?? !0), S = t(() => a.control.schema.minimum ?? 0), C = t(() => a.control.schema.maximum ?? Infinity), w = t(() => a.control.uischema.options?.step ?? 1), T = t(() => a.control.uischema.options?.unit ?? "");
24
+ return (t, a) => (o(), r("div", null, [c((o(), r("div", f, [i(s(u), {
25
+ ariaLabel: e.control.label,
26
+ "model-value": e.control.data,
27
+ min: S.value,
28
+ max: C.value,
29
+ step: w.value,
30
+ unit: T.value,
31
+ disabled: e.disabled,
32
+ error: e.error,
33
+ "sub-text": e.subText,
34
+ "onUpdate:modelValue": e.changeValue
35
+ }, null, 8, [
36
+ "ariaLabel",
37
+ "model-value",
38
+ "min",
39
+ "max",
40
+ "step",
41
+ "unit",
42
+ "disabled",
43
+ "error",
44
+ "sub-text",
45
+ "onUpdate:modelValue"
46
+ ]), x.value ? (o(), r("div", p, [i(s(l), {
47
+ value: h.value,
48
+ "secondary-value": g.value,
49
+ "max-value": _.value,
50
+ animate: b.value,
51
+ label: e.donutTitle,
52
+ "sub-text": e.donutDescription
53
+ }, null, 8, [
54
+ "value",
55
+ "secondary-value",
56
+ "max-value",
57
+ "animate",
58
+ "label",
59
+ "sub-text"
60
+ ])])) : n("", !0)])), [[s(d), y.value]])]));
61
+ }
62
+ }), [["__scopeId", "data-v-3a916a8e"]]);
63
+ //#endregion
64
+ export { m as t };
@@ -0,0 +1,72 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { computed as t, createBlock as n, defineComponent as r, openBlock as i, ref as a, unref as o } from "vue";
3
+ import { KdsRichTextInput as s, kdsDefaultLinkToolOptions as c } from "@knime/kds-rich-text-editor";
4
+ //#endregion
5
+ //#region src/uiComponents/richTextControl/RichTextControl.vue
6
+ var l = /*#__PURE__*/ e(/* @__PURE__ */ r({
7
+ __name: "RichTextControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function },
16
+ labelForId: {}
17
+ },
18
+ setup(e) {
19
+ let r = e, l = a(null), u = () => (l.value?.focus(), !0), d = (e) => e.startsWith("$$[\"") && e.endsWith("\"]"), f = t(() => r.control.uischema.options?.useFlowVarTemplates ? {
20
+ urlValidator: (e) => d(e) || c.urlValidator(e),
21
+ sanitizeUrlText: (e) => d(e) ? e : c.sanitizeUrlText(e)
22
+ } : c);
23
+ return (t, r) => (i(), n(o(s), {
24
+ id: e.labelForId,
25
+ ref_key: "editor",
26
+ ref: l,
27
+ class: "editor",
28
+ "aria-label": e.control.label,
29
+ "min-height": 320,
30
+ "model-value": e.control.data,
31
+ editable: !e.disabled,
32
+ disabled: e.disabled,
33
+ error: e.error,
34
+ "sub-text": e.subText,
35
+ "base-extensions": {
36
+ bold: !0,
37
+ italic: !0,
38
+ underline: !0,
39
+ textAlign: !0,
40
+ bulletList: !0,
41
+ orderedList: !0,
42
+ heading: !0,
43
+ blockquote: !0,
44
+ code: !0,
45
+ codeBlock: !0,
46
+ horizontalRule: !0,
47
+ strike: !0,
48
+ paragraphTextStyle: !0,
49
+ link: !0
50
+ },
51
+ "link-tool-options": f.value,
52
+ "custom-escape-handler": u,
53
+ "character-limit": {
54
+ maxCharacters: 5e4,
55
+ display: "atLimit"
56
+ },
57
+ "onUpdate:modelValue": e.changeValue
58
+ }, null, 8, [
59
+ "id",
60
+ "aria-label",
61
+ "model-value",
62
+ "editable",
63
+ "disabled",
64
+ "error",
65
+ "sub-text",
66
+ "link-tool-options",
67
+ "onUpdate:modelValue"
68
+ ]));
69
+ }
70
+ }), [["__scopeId", "data-v-0d780c9f"]]);
71
+ //#endregion
72
+ export { l as default };
@@ -0,0 +1,41 @@
1
+ import { l as e, u as t } from "./src-DwqijroM.js";
2
+ import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { createBlock as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, renderSlot as l, unref as u, withCtx as d } from "vue";
4
+ import { DispatchRenderer as f } from "@jsonforms/vue";
5
+ //#endregion
6
+ //#region src/layoutComponents/SectionLayout.vue
7
+ var p = /*#__PURE__*/ n(/* @__PURE__ */ o({
8
+ __name: "SectionLayout",
9
+ props: { layout: {} },
10
+ setup(n) {
11
+ let o = c(!1);
12
+ return (c, p) => (s(), i("div", {
13
+ class: "section",
14
+ onMouseover: p[0] ||= (e) => o.value = !0,
15
+ onMouseleave: p[1] ||= (e) => o.value = !1
16
+ }, [a(e, { "title-text": n.layout.uischema.label ?? "" }, {
17
+ "right-buttons": d(() => [l(c.$slots, "buttons", { hover: o.value }, void 0, !0)]),
18
+ _: 3
19
+ }, 8, ["title-text"]), a(t, { elements: n.layout.uischema.elements }, {
20
+ default: d(({ element: e, index: t }) => [(s(), r(u(f), {
21
+ key: `${n.layout.path}-${t}`,
22
+ schema: n.layout.schema,
23
+ uischema: e,
24
+ path: n.layout.path,
25
+ enabled: n.layout.enabled,
26
+ renderers: n.layout.renderers,
27
+ cells: n.layout.cells
28
+ }, null, 8, [
29
+ "schema",
30
+ "uischema",
31
+ "path",
32
+ "enabled",
33
+ "renderers",
34
+ "cells"
35
+ ]))]),
36
+ _: 1
37
+ }, 8, ["elements"])], 32));
38
+ }
39
+ }), [["__scopeId", "data-v-33f353d4"]]);
40
+ //#endregion
41
+ export { p as default };
@@ -0,0 +1,53 @@
1
+ import { O as e, l as t, u as n } from "./src-DwqijroM.js";
2
+ import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, ref as d, renderSlot as f, unref as p, withCtx as m } from "vue";
4
+ import { DispatchRenderer as h } from "@jsonforms/vue";
5
+ import { KdsButton as g } from "@knime/kds-components";
6
+ //#region src/layoutComponents/SettingsSubPanelLayout.vue?vue&type=script&setup=true&lang.ts
7
+ var _ = { class: "flex-row" }, v = /*#__PURE__*/ r(/* @__PURE__ */ l({
8
+ __name: "SettingsSubPanelLayout",
9
+ props: { layout: {} },
10
+ setup(r) {
11
+ let l = r, v = i(() => l.layout.uischema.options ?? {}), y = i(() => v.value.setText ?? "Set"), b = i(() => v.value.backButtonLabel ?? "Back to node configuration"), x = d(!1);
12
+ return (i, l) => (u(), o("div", {
13
+ onMouseover: l[0] ||= (e) => x.value = !0,
14
+ onMouseleave: l[1] ||= (e) => x.value = !1
15
+ }, [c(e, {
16
+ "show-back-arrow": "",
17
+ "back-button-label": b.value
18
+ }, {
19
+ "expand-button": m(({ expand: e }) => [c(t, { "title-text": r.layout.uischema.label ?? "" }, {
20
+ "right-buttons": m(() => [s("div", _, [f(i.$slots, "buttons", { hover: x.value }, void 0, !0), c(p(g), {
21
+ variant: "transparent",
22
+ size: "small",
23
+ label: y.value,
24
+ "trailing-icon": "chevron-right",
25
+ onClick: e
26
+ }, null, 8, ["label", "onClick"])])]),
27
+ _: 2
28
+ }, 1032, ["title-text"])]),
29
+ default: m(() => [c(n, { elements: r.layout.uischema.elements }, {
30
+ default: m(({ element: e, index: t }) => [(u(), a(p(h), {
31
+ key: `${r.layout.path}-${t}`,
32
+ schema: r.layout.schema,
33
+ uischema: e,
34
+ path: r.layout.path,
35
+ enabled: r.layout.enabled,
36
+ renderers: r.layout.renderers,
37
+ cells: r.layout.cells
38
+ }, null, 8, [
39
+ "schema",
40
+ "uischema",
41
+ "path",
42
+ "enabled",
43
+ "renderers",
44
+ "cells"
45
+ ]))]),
46
+ _: 1
47
+ }, 8, ["elements"])]),
48
+ _: 3
49
+ }, 8, ["back-button-label"])], 32));
50
+ }
51
+ }), [["__scopeId", "data-v-dc2400b4"]]);
52
+ //#endregion
53
+ export { v as default };
@@ -0,0 +1,24 @@
1
+ import { n as e } from "./usePossibleValues-Cx6iSt_X.js";
2
+ import { t } from "./TwinlistControlBase-300a_qUR.js";
3
+ import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, toRef as o, unref as s } from "vue";
4
+ //#endregion
5
+ //#region src/uiComponents/twinlist/SimpleTwinlistControl.vue
6
+ var c = /* @__PURE__ */ r({
7
+ __name: "SimpleTwinlistControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function },
16
+ labelForId: {}
17
+ },
18
+ setup(r) {
19
+ let c = r, { possibleValues: l } = e(o(c, "control"));
20
+ return (e, r) => (a(), n(t, i(c, { "possible-values": s(l) }), null, 16, ["possible-values"]));
21
+ }
22
+ });
23
+ //#endregion
24
+ export { c as default };
@@ -0,0 +1,58 @@
1
+ import { n as e } from "./usePossibleValues-Cx6iSt_X.js";
2
+ import { t } from "./LoadingDropdown-BpU4Uiin.js";
3
+ import { computed as n, createBlock as r, defineComponent as i, openBlock as a, toRef as o } from "vue";
4
+ //#region src/uiComponents/SingleSelectControl.vue?vue&type=script&setup=true&lang.ts
5
+ var s = "__special__", c = "__regular__", l = /* @__PURE__ */ i({
6
+ __name: "SingleSelectControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(i) {
18
+ let l = i, u = n(() => l.control.uischema.options.specialChoices), { possibleValues: d } = e(o(l, "control")), f = (e) => `${s}${e}`, p = (e) => `${c}${e}`, m = ({ id: e, text: t }) => ({
19
+ id: f(e),
20
+ text: t,
21
+ isSpecial: !0
22
+ }), h = (e) => ({
23
+ ...e,
24
+ id: p(e.id)
25
+ }), g = n(() => d.value === null ? null : u.value.map(m).concat(d.value.map(h))), _ = (e) => {
26
+ if (!e.startsWith(c) && !e.startsWith(s)) throw Error(`Expected id to start with ${c}`);
27
+ }, v = (e) => e ? (_(e), e.startsWith(s) ? { specialChoice: e.slice(11) } : { regularChoice: e.slice(11) }) : null, y = (e) => e == null ? "" : "regularChoice" in e && e.regularChoice ? p(e.regularChoice) : "specialChoice" in e && e.specialChoice ? f(e.specialChoice) : "", b = (e) => e == null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", x = n({
28
+ get: () => {
29
+ let e = y(l.control.data);
30
+ return g.value && !g.value.some((t) => t.id === e) ? b(l.control.data) : e;
31
+ },
32
+ set: (e) => {
33
+ l.changeValue(v(e));
34
+ }
35
+ });
36
+ return (e, n) => (a(), r(t, {
37
+ id: i.labelForId,
38
+ modelValue: x.value,
39
+ "onUpdate:modelValue": n[0] ||= (e) => x.value = e,
40
+ "possible-values": g.value,
41
+ ariaLabel: i.control.label,
42
+ disabled: i.disabled,
43
+ error: i.error,
44
+ "sub-text": i.subText,
45
+ compact: ""
46
+ }, null, 8, [
47
+ "id",
48
+ "modelValue",
49
+ "possible-values",
50
+ "ariaLabel",
51
+ "disabled",
52
+ "error",
53
+ "sub-text"
54
+ ]));
55
+ }
56
+ });
57
+ //#endregion
58
+ export { l as default };
@@ -0,0 +1,71 @@
1
+ import { n as e } from "./useProvidedState-478_KXOe.js";
2
+ import { computed as t, createBlock as n, defineComponent as r, onMounted as i, openBlock as a, unref as o, watch as s } from "vue";
3
+ import { KdsSortableListBox as c } from "@knime/kds-components";
4
+ //#region src/uiComponents/SortListControl.vue?vue&type=script&setup=true&lang.ts
5
+ var l = "<any unknown new column>", u = /* @__PURE__ */ r({
6
+ __name: "SortListControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(r) {
18
+ let l = r, u = t(() => l.control.data), d = t(() => l.control.uischema), f = t(() => d.value.options?.unknownElementId ?? "<any unknown new column>"), p = t(() => d.value.options?.unknownElementLabel ?? "Any unknown column"), m = e(d, "possibleValues", []), h = (e) => {
19
+ let t = {
20
+ id: e.id,
21
+ text: e.text,
22
+ ...e.special ? { special: !0 } : {}
23
+ };
24
+ return e.type?.id && (t.accessory = {
25
+ type: "dataType",
26
+ name: e.type.id
27
+ }), t;
28
+ }, g = t(() => m.value.map(h).concat(h({
29
+ id: f.value,
30
+ text: p.value,
31
+ special: !0
32
+ }))), _ = (e) => {
33
+ if (u.value.length === 0) {
34
+ v();
35
+ return;
36
+ }
37
+ let t = u.value.indexOf(f.value);
38
+ if (t === -1) throw Error(`SortList data have to contain the value "${f.value}"`);
39
+ let n = u.value.slice(0, t + 1), r = u.value.slice(t + 1), i = new Set(u.value), a = e.map(({ id: e }) => e).filter((e) => !i.has(e));
40
+ a.length > 0 && l.changeValue(n.concat(a, r));
41
+ };
42
+ i(() => {
43
+ _(m.value);
44
+ }), s(() => m.value, _);
45
+ let v = () => {
46
+ l.changeValue(g.value.map(({ id: e }) => e));
47
+ }, y = (e) => {
48
+ l.changeValue(e);
49
+ };
50
+ return (e, t) => (a(), n(o(c), {
51
+ id: r.labelForId,
52
+ ariaLabel: r.control.label,
53
+ "possible-values": g.value,
54
+ "model-value": u.value,
55
+ disabled: r.disabled,
56
+ error: r.error,
57
+ "sub-text": r.subText,
58
+ "onUpdate:modelValue": y
59
+ }, null, 8, [
60
+ "id",
61
+ "ariaLabel",
62
+ "possible-values",
63
+ "model-value",
64
+ "disabled",
65
+ "error",
66
+ "sub-text"
67
+ ]));
68
+ }
69
+ });
70
+ //#endregion
71
+ export { l as DEFAULT_ANY_UNKNOWN_VALUES_ID, u as default };
@@ -0,0 +1,56 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import "./useProvidedState-478_KXOe.js";
3
+ import { computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, unref as c } from "vue";
4
+ import { KdsDropdown as l } from "@knime/kds-components";
5
+ //#region src/uiComponents/TeamAndSpacesControl.vue?vue&type=script&setup=true&lang.ts
6
+ var u = { class: "team-and-space" }, d = { class: "team" }, f = { class: "space" }, p = /*#__PURE__*/ e(/* @__PURE__ */ a({
7
+ __name: "TeamAndSpacesControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function },
16
+ labelForId: {}
17
+ },
18
+ setup(e) {
19
+ let a = e, p = s(""), m = s(""), h = t(() => a.control.uischema), g = t(() => h.value.options), _ = t(() => g.value?.possibleTeams ?? []), v = t(() => g.value?.possibleSpaces ?? []), y = t(() => v.value.find(({ id: e }) => e === p.value)?.spaces ?? []), b = t(() => !a.control.enabled || _.value.length === 0), x = t(() => !a.control.enabled || y.value.length === 0), S = () => {
20
+ if (a.control.data) {
21
+ m.value = a.control.data;
22
+ let e = v.value.find(({ spaces: e }) => e.some(({ id: e }) => e === m.value));
23
+ e && (p.value = e.id);
24
+ }
25
+ }, C = () => {
26
+ m.value = y.value[0]?.id ?? "", a.changeValue(m.value);
27
+ };
28
+ return S(), (t, a) => (o(), n("div", u, [r("div", d, [i(c(l), {
29
+ modelValue: p.value,
30
+ "onUpdate:modelValue": [a[0] ||= (e) => p.value = e, C],
31
+ label: "Team",
32
+ "aria-label": "account-id",
33
+ disabled: b.value,
34
+ "possible-values": _.value,
35
+ placeholder: "No team selected"
36
+ }, null, 8, [
37
+ "modelValue",
38
+ "disabled",
39
+ "possible-values"
40
+ ])]), r("div", f, [i(c(l), {
41
+ modelValue: m.value,
42
+ "onUpdate:modelValue": [a[1] ||= (e) => m.value = e, a[2] ||= () => e.changeValue(m.value)],
43
+ label: "Space",
44
+ "aria-label": "space-id",
45
+ disabled: x.value,
46
+ "possible-values": y.value,
47
+ placeholder: "No space selected"
48
+ }, null, 8, [
49
+ "modelValue",
50
+ "disabled",
51
+ "possible-values"
52
+ ])])]));
53
+ }
54
+ }), [["__scopeId", "data-v-40e43c08"]]);
55
+ //#endregion
56
+ export { p as default };
@@ -0,0 +1,26 @@
1
+ import { t as e } from "./ResourceControlBase-BVMVVYns.js";
2
+ import { computed as t, createBlock as n, defineComponent as r, mergeProps as i, openBlock as a } from "vue";
3
+ //#endregion
4
+ //#region src/uiComponents/resourceControls/TeamResourceControl.vue
5
+ var o = /* @__PURE__ */ r({
6
+ __name: "TeamResourceControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(r) {
18
+ let o = r, s = t(() => o.control.uischema.options?.donutTitle || ""), c = t(() => o.control.uischema.options?.donutText || ""), l = t(() => o.control.uischema.options?.currentUsage ?? 0), u = t(() => o.control.data === -1 ? "unlimited" : o.control.data), d = t(() => `${l.value} of ${u.value} ${c.value}`.trim());
19
+ return (t, r) => (a(), n(e, i(o, {
20
+ "donut-title": s.value,
21
+ "donut-description": d.value
22
+ }), null, 16, ["donut-title", "donut-description"]));
23
+ }
24
+ });
25
+ //#endregion
26
+ export { o as default };
@@ -0,0 +1,40 @@
1
+ import { createBlock as e, defineComponent as t, openBlock as n, unref as r } from "vue";
2
+ import { KdsTextarea as i } from "@knime/kds-components";
3
+ //#endregion
4
+ //#region src/uiComponents/TextAreaControl.vue
5
+ var a = /* @__PURE__ */ t({
6
+ __name: "TextAreaControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(t) {
18
+ return (a, o) => (n(), e(r(i), {
19
+ id: t.labelForId,
20
+ ariaLabel: t.control.label,
21
+ "model-value": t.control.data,
22
+ disabled: t.disabled,
23
+ rows: t.control.uischema.options?.rows,
24
+ error: t.error,
25
+ "sub-text": t.subText,
26
+ "onUpdate:modelValue": t.changeValue
27
+ }, null, 8, [
28
+ "id",
29
+ "ariaLabel",
30
+ "model-value",
31
+ "disabled",
32
+ "rows",
33
+ "error",
34
+ "sub-text",
35
+ "onUpdate:modelValue"
36
+ ]));
37
+ }
38
+ });
39
+ //#endregion
40
+ export { a as default };
@@ -0,0 +1,71 @@
1
+ import { t as e } from "./temporal-polyfill-D4u1I_Z-.js";
2
+ import { t } from "./plainDateTimeUtils-5uOCJ4N5.js";
3
+ import { computed as n, createBlock as r, defineComponent as i, openBlock as a, ref as o, unref as s } from "vue";
4
+ import { KdsTimeInput as c } from "@knime/kds-components";
5
+ //#endregion
6
+ //#region src/uiComponents/TimeControl.vue
7
+ var l = /* @__PURE__ */ i({
8
+ __name: "TimeControl",
9
+ props: {
10
+ control: {},
11
+ handleChange: { type: Function },
12
+ changeValue: { type: Function },
13
+ disabled: { type: Boolean },
14
+ error: { type: Boolean },
15
+ subText: {},
16
+ onRegisterValidation: { type: Function },
17
+ labelForId: {}
18
+ },
19
+ setup(i) {
20
+ let l = i, u = n(() => l.control.uischema.options), d = n(() => t.getMaxGranularity(u.value)), f = (t) => {
21
+ if (!t) return null;
22
+ if (/(Z|[+-]\d{2}:?\d{2})$/.test(t)) try {
23
+ return e.Instant.from(t).toZonedDateTimeISO("UTC").toPlainTime();
24
+ } catch {
25
+ return null;
26
+ }
27
+ try {
28
+ return e.PlainTime.from(t);
29
+ } catch {
30
+ try {
31
+ return e.PlainDateTime.from(t).toPlainTime();
32
+ } catch {
33
+ return null;
34
+ }
35
+ }
36
+ }, p = (e, t) => e === null ? "" : t === "minute" ? e.toString({ smallestUnit: "minute" }) : t === "second" ? e.toString({ smallestUnit: "second" }) : e.toString({ fractionalSecondDigits: 3 }), m = n(() => f(l.control.data)), h = o(t.detectGranularity(l.control.data)), g, _, v = !1, y = () => {
37
+ v = !1;
38
+ let e = g === void 0 ? m.value : g, t = _ ?? h.value;
39
+ g = void 0, _ = void 0, h.value = t, l.changeValue(p(e, t));
40
+ }, b = () => {
41
+ v || (v = !0, queueMicrotask(y));
42
+ }, x = (e) => {
43
+ g = e, b();
44
+ }, S = (e) => {
45
+ _ = e, b();
46
+ };
47
+ return (e, t) => (a(), r(s(c), {
48
+ id: i.labelForId,
49
+ "model-value": m.value,
50
+ granularity: h.value,
51
+ ariaLabel: l.control.label,
52
+ "max-granularity": d.value,
53
+ disabled: i.disabled,
54
+ error: i.error,
55
+ "sub-text": i.subText,
56
+ "onUpdate:modelValue": x,
57
+ "onUpdate:granularity": S
58
+ }, null, 8, [
59
+ "id",
60
+ "model-value",
61
+ "granularity",
62
+ "ariaLabel",
63
+ "max-granularity",
64
+ "disabled",
65
+ "error",
66
+ "sub-text"
67
+ ]));
68
+ }
69
+ });
70
+ //#endregion
71
+ export { l as default };