@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @knime/jsonforms
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e5bc888: Externalize `vitest` and `@vue/test-utils` in the library build. The
8
+ `@knime/jsonforms/testing` entry previously bundled vitest's runtime into
9
+ `dist/testing.js`, which crashed at import time (`TypeError: Cannot read
10
+ properties of undefined (reading 'push')`) in consumers running a different
11
+ vitest major. Both are now imported from the consumer's environment instead of
12
+ being bundled, and are declared as optional peer dependencies.
13
+ - Updated dependencies [af263f9]
14
+ - @knime/kds-components@2.6.2
15
+ - @knime/kds-rich-text-editor@2.6.2
16
+
17
+ ## 3.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 48da7bc: - `KdsZonedDateTimeInput`: `possibleValues` is now optional. When omitted, the component falls back to a built-in list of common timezone aliases (UTC, CET, EET, WET, MET, EST, HST, MST) followed by all IANA zone IDs from `Intl.supportedValuesOf("timeZone")`.
22
+ - `ZonedDateTimeControl`: when `possibleValues` is not set in the UI schema options, the timezone dropdown is now populated via the built-in fallback in `KdsZonedDateTimeInput` instead of showing an empty list.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [baa0c4e]
27
+ - Updated dependencies [48da7bc]
28
+ - Updated dependencies [7e9db61]
29
+ - @knime/kds-components@2.5.0
30
+ - @knime/kds-rich-text-editor@2.5.0
31
+
3
32
  ## 3.0.0
4
33
 
5
34
  ### Major Changes
@@ -0,0 +1,24 @@
1
+ import { i as e } from "./utils-DmZLgn8X.js";
2
+ import { t } from "./TwinlistControlBase-300a_qUR.js";
3
+ import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o } from "vue";
4
+ //#endregion
5
+ //#region src/uiComponents/twinlist/AnyOfTwinlist.vue
6
+ var s = /* @__PURE__ */ r({
7
+ __name: "AnyOfTwinlist",
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 s = r.control.schema.anyOf.map(e);
20
+ return (e, r) => (a(), n(t, i(e.$props, { "possible-values": o(s) }), null, 16, ["possible-values"]));
21
+ }
22
+ });
23
+ //#endregion
24
+ export { s as default };
@@ -0,0 +1,41 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, openBlock as a, ref as o, renderSlot as s, unref as c } from "vue";
3
+ import { KdsCheckbox as l } from "@knime/kds-components";
4
+ //#region src/uiComponents/CheckboxControl.vue?vue&type=script&setup=true&lang.ts
5
+ var u = { class: "checkbox-container" }, d = /*#__PURE__*/ e(/* @__PURE__ */ i({
6
+ __name: "CheckboxControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ labelForId: {},
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function }
16
+ },
17
+ setup(e) {
18
+ let i = o(!1);
19
+ return (o, d) => (a(), t("div", {
20
+ class: "checkbox-input",
21
+ onMouseover: d[1] ||= (e) => i.value = !0,
22
+ onMouseleave: d[2] ||= (e) => i.value = !1
23
+ }, [n("div", u, [r(c(l), {
24
+ class: "checkbox",
25
+ disabled: e.disabled,
26
+ "model-value": e.control.data,
27
+ label: e.control.label,
28
+ error: e.error,
29
+ "sub-text": e.subText,
30
+ "onUpdate:modelValue": d[0] ||= (t) => e.changeValue(t === !0)
31
+ }, null, 8, [
32
+ "disabled",
33
+ "model-value",
34
+ "label",
35
+ "error",
36
+ "sub-text"
37
+ ]), s(o.$slots, "icon", {}, void 0, !0)]), s(o.$slots, "buttons", { hover: i.value }, void 0, !0)], 32));
38
+ }
39
+ }), [["__scopeId", "data-v-4f590a2d"]]);
40
+ //#endregion
41
+ export { d as default };
@@ -0,0 +1,47 @@
1
+ import { i as e } from "./utils-DmZLgn8X.js";
2
+ import { n as t } from "./usePossibleValues-Cx6iSt_X.js";
3
+ import { computed as n, createBlock as r, createCommentVNode as i, defineComponent as a, onMounted as o, openBlock as s, ref as c, toRef as l, unref as u } from "vue";
4
+ import { KdsCheckboxGroup as d } from "@knime/kds-components";
5
+ //#endregion
6
+ //#region src/uiComponents/CheckboxesControl.vue
7
+ var f = /* @__PURE__ */ a({
8
+ __name: "CheckboxesControl",
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(a) {
20
+ let f = a, p = n(() => f.control.uischema.options?.checkboxLayout), m = c(null), { possibleValues: h } = t(l(f, "control")), g = n(() => m.value ?? h.value);
21
+ return o(() => {
22
+ m.value = f.control.schema.anyOf ? f.control.schema.anyOf.map(e) : null;
23
+ }), (e, t) => g.value ? (s(), r(u(d), {
24
+ key: 0,
25
+ id: a.labelForId,
26
+ class: "checkboxes",
27
+ "possible-values": g.value,
28
+ alignment: p.value,
29
+ disabled: a.disabled,
30
+ "model-value": a.control.data,
31
+ error: a.error,
32
+ "sub-text": a.subText,
33
+ "onUpdate:modelValue": a.changeValue
34
+ }, null, 8, [
35
+ "id",
36
+ "possible-values",
37
+ "alignment",
38
+ "disabled",
39
+ "model-value",
40
+ "error",
41
+ "sub-text",
42
+ "onUpdate:modelValue"
43
+ ])) : i("", !0);
44
+ }
45
+ });
46
+ //#endregion
47
+ export { f as default };
@@ -0,0 +1,38 @@
1
+ import { createBlock as e, defineComponent as t, openBlock as n, unref as r } from "vue";
2
+ import { KdsColorInput as i } from "@knime/kds-components";
3
+ //#endregion
4
+ //#region src/uiComponents/ColorControl.vue
5
+ var a = /* @__PURE__ */ t({
6
+ __name: "ColorControl",
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
+ error: t.error,
24
+ "sub-text": t.subText,
25
+ "onUpdate:modelValue": t.changeValue
26
+ }, null, 8, [
27
+ "id",
28
+ "ariaLabel",
29
+ "model-value",
30
+ "disabled",
31
+ "error",
32
+ "sub-text",
33
+ "onUpdate:modelValue"
34
+ ]));
35
+ }
36
+ });
37
+ //#endregion
38
+ export { a as default };
@@ -0,0 +1,67 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { n as t } from "./useProvidedState-478_KXOe.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, renderList as u, unref as d } from "vue";
4
+ import { KdsEmptyState as f } from "@knime/kds-components";
5
+ //#region src/uiComponents/colorPreview/ColorPreviewEmptyState.vue?vue&type=script&setup=true&lang.ts
6
+ var p = { class: "empty-state-wrapper" }, m = /*#__PURE__*/ e(/* @__PURE__ */ s({
7
+ __name: "ColorPreviewEmptyState",
8
+ setup(e) {
9
+ return (e, t) => (l(), a("div", p, [o(d(f), { headline: "No colors" })]));
10
+ }
11
+ }), [["__scopeId", "data-v-7a09310d"]]), h = { class: "gradient-preview" }, g = /*#__PURE__*/ e(/* @__PURE__ */ s({
12
+ __name: "GradientPreview",
13
+ props: { gradient: {} },
14
+ setup(e) {
15
+ let t = e, n = r(() => t.gradient.colors.length > 0), o = r(() => {
16
+ let e = t.gradient.stops;
17
+ return e === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((t, n) => `${t} ${e[n]}%`).join(", ");
18
+ }), s = r(() => `linear-gradient(to right in lab, ${o.value})`);
19
+ return (e, t) => (l(), a("div", h, [n.value ? (l(), a("div", {
20
+ key: 0,
21
+ class: "gradient-bar",
22
+ style: c({ background: s.value })
23
+ }, null, 4)) : (l(), i(m, { key: 1 }))]));
24
+ }
25
+ }), [["__scopeId", "data-v-8a745225"]]), _ = { class: "palette-preview" }, v = 8, y = /*#__PURE__*/ e(/* @__PURE__ */ s({
26
+ __name: "PalettePreview",
27
+ props: { palette: {} },
28
+ setup(e) {
29
+ let t = e, o = r(() => t.palette.colors.length > 0), s = r(() => Math.max(1, Math.min(v, t.palette.colors.length))), d = r(() => ({ gridTemplateColumns: `repeat(${s.value}, minmax(0, 1fr))` }));
30
+ return (t, r) => (l(), a("div", _, [o.value ? (l(), a("div", {
31
+ key: 0,
32
+ class: "palette-grid",
33
+ style: c(d.value)
34
+ }, [(l(!0), a(n, null, u(e.palette.colors, (e, t) => (l(), a("div", {
35
+ key: t,
36
+ class: "color-cell",
37
+ style: c({ background: e })
38
+ }, null, 4))), 128))], 4)) : (l(), i(m, {
39
+ key: 1,
40
+ class: "empty-state"
41
+ }))]));
42
+ }
43
+ }), [["__scopeId", "data-v-ad83046f"]]), b = { class: "color-preview" }, x = /* @__PURE__ */ s({
44
+ __name: "ColorPreviewControl",
45
+ props: {
46
+ control: {},
47
+ handleChange: { type: Function },
48
+ changeValue: { type: Function },
49
+ disabled: { type: Boolean },
50
+ labelForId: {},
51
+ error: { type: Boolean },
52
+ subText: {},
53
+ onRegisterValidation: { type: Function }
54
+ },
55
+ setup(e) {
56
+ let n = e, o = t(r(() => n.control.uischema), "previewColors", { colors: [] }), s = (e) => !("stops" in e);
57
+ return (e, t) => (l(), a("div", b, [s(d(o)) ? (l(), i(y, {
58
+ key: 0,
59
+ palette: d(o)
60
+ }, null, 8, ["palette"])) : (l(), i(g, {
61
+ key: 1,
62
+ gradient: d(o)
63
+ }, null, 8, ["gradient"]))]));
64
+ }
65
+ });
66
+ //#endregion
67
+ export { x as default };
@@ -0,0 +1,47 @@
1
+ import { n as e } from "./usePossibleValues-Cx6iSt_X.js";
2
+ import { computed as t, createBlock as n, defineComponent as r, openBlock as i, toRef as a, unref as o } from "vue";
3
+ import { KdsMultiSelectDropdown as s } from "@knime/kds-components";
4
+ //#endregion
5
+ //#region src/uiComponents/ComboBoxControl.vue
6
+ var c = /* @__PURE__ */ r({
7
+ __name: "ComboBoxControl",
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(a(c, "control")), u = t(() => l.value === null || l.value.length === 0), d = t(() => c.control.uischema.providedOptions?.includes("possibleValues") || c.control.uischema.options?.possibleValues !== void 0), f = t(() => c.disabled || u.value && d.value);
20
+ return (e, t) => (i(), n(o(s), {
21
+ id: r.labelForId,
22
+ "model-value": r.control.data,
23
+ "allow-new-values": !d.value,
24
+ ariaLabel: r.control.label,
25
+ disabled: f.value,
26
+ "possible-values": u.value ? r.control.data.map((e) => ({
27
+ id: e,
28
+ text: e
29
+ })) : o(l),
30
+ error: r.error,
31
+ "sub-text": r.subText,
32
+ "onUpdate:modelValue": r.changeValue
33
+ }, null, 8, [
34
+ "id",
35
+ "model-value",
36
+ "allow-new-values",
37
+ "ariaLabel",
38
+ "disabled",
39
+ "possible-values",
40
+ "error",
41
+ "sub-text",
42
+ "onUpdate:modelValue"
43
+ ]));
44
+ }
45
+ });
46
+ //#endregion
47
+ export { c as default };
@@ -0,0 +1,49 @@
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, unref as o } from "vue";
4
+ import { KdsDateInput as s } from "@knime/kds-components";
5
+ //#endregion
6
+ //#region src/uiComponents/DateControl.vue
7
+ var c = /* @__PURE__ */ i({
8
+ __name: "DateControl",
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 c = i, l = (n) => {
21
+ if (!n) return null;
22
+ try {
23
+ return e.PlainDate.from(n);
24
+ } catch {
25
+ return t.fromString(n).date;
26
+ }
27
+ }, u = n(() => l(c.control.data)), d = (e) => {
28
+ c.changeValue(e?.toString() ?? "");
29
+ };
30
+ return (e, t) => (a(), r(o(s), {
31
+ id: i.labelForId,
32
+ ariaLabel: c.control.label,
33
+ "model-value": u.value,
34
+ disabled: i.disabled,
35
+ error: i.error,
36
+ "sub-text": i.subText,
37
+ "onUpdate:modelValue": d
38
+ }, null, 8, [
39
+ "id",
40
+ "ariaLabel",
41
+ "model-value",
42
+ "disabled",
43
+ "error",
44
+ "sub-text"
45
+ ]));
46
+ }
47
+ });
48
+ //#endregion
49
+ export { c as default };
@@ -0,0 +1,103 @@
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 { KdsDateInput as c, KdsDateTimeInput as l } from "@knime/kds-components";
5
+ //#endregion
6
+ //#region src/uiComponents/DateTimeControl.vue
7
+ var u = /* @__PURE__ */ i({
8
+ __name: "DateTimeControl",
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 u = i, d = n(() => u.control.uischema.options), f = n(() => d.value?.showTime ?? !0), p = n(() => t.getMaxGranularity(d.value, { showMilliseconds: !1 })), m = (n) => {
21
+ if (typeof n != "string" || n === "") return null;
22
+ try {
23
+ return e.PlainDate.from(n);
24
+ } catch {
25
+ return t.fromString(n).date;
26
+ }
27
+ }, h = n(() => m(d.value?.minimum)), g = n(() => m(d.value?.maximum)), _ = o(t.detectGranularity(u.control.data)), v = n(() => {
28
+ let { date: n, time: r } = t.fromString(u.control.data);
29
+ return n === null ? null : n.toPlainDateTime(r ?? e.PlainTime.from("00:00:00"));
30
+ }), y = n(() => t.fromString(u.control.data).date), b, x, S = !1, C = () => {
31
+ S = !1;
32
+ let e = x ?? _.value, n = b !== void 0, r = x !== void 0, i = b;
33
+ if (b = void 0, x = void 0, _.value = e, n) {
34
+ if (i === null) {
35
+ u.changeValue("");
36
+ return;
37
+ }
38
+ u.changeValue(t.toString(i.toPlainDate(), i.toPlainTime(), e));
39
+ return;
40
+ }
41
+ if (r) {
42
+ let { date: n, time: r } = t.fromString(u.control.data);
43
+ n && u.changeValue(t.toString(n, r, e));
44
+ }
45
+ }, w = () => {
46
+ S || (S = !0, queueMicrotask(C));
47
+ }, T = (e) => {
48
+ b = e, w();
49
+ }, E = (e) => {
50
+ x = e, w();
51
+ }, D = (e) => {
52
+ u.changeValue(e === null ? "" : e.toString());
53
+ };
54
+ return (e, t) => f.value ? (a(), r(s(l), {
55
+ key: 0,
56
+ id: i.labelForId,
57
+ ariaLabel: i.control.label,
58
+ "model-value": v.value,
59
+ "min-date": h.value,
60
+ "max-date": g.value,
61
+ granularity: _.value,
62
+ "max-granularity": p.value,
63
+ disabled: i.disabled,
64
+ error: i.error,
65
+ "sub-text": i.subText,
66
+ "onUpdate:modelValue": T,
67
+ "onUpdate:granularity": E
68
+ }, null, 8, [
69
+ "id",
70
+ "ariaLabel",
71
+ "model-value",
72
+ "min-date",
73
+ "max-date",
74
+ "granularity",
75
+ "max-granularity",
76
+ "disabled",
77
+ "error",
78
+ "sub-text"
79
+ ])) : (a(), r(s(c), {
80
+ key: 1,
81
+ id: i.labelForId,
82
+ ariaLabel: i.control.label,
83
+ "model-value": y.value,
84
+ "min-date": h.value,
85
+ "max-date": g.value,
86
+ disabled: i.disabled,
87
+ error: i.error,
88
+ "sub-text": i.subText,
89
+ "onUpdate:modelValue": D
90
+ }, null, 8, [
91
+ "id",
92
+ "ariaLabel",
93
+ "model-value",
94
+ "min-date",
95
+ "max-date",
96
+ "disabled",
97
+ "error",
98
+ "sub-text"
99
+ ]));
100
+ }
101
+ });
102
+ //#endregion
103
+ export { u as default };
@@ -0,0 +1,44 @@
1
+ import { n as e } from "./useProvidedState-478_KXOe.js";
2
+ import { computed as t, createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
3
+ import { KdsDateTimeFormatInput as o } from "@knime/kds-components";
4
+ //#endregion
5
+ //#region src/uiComponents/DateTimeFormatPickerControl.vue
6
+ var s = /* @__PURE__ */ r({
7
+ __name: "DateTimeFormatPickerControl",
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 s = r, c = t(() => s.control.uischema), l = t(() => c.value.options), u = t(() => l.value?.allowedFormats), d = e(c, "dateTimeFormats", []);
20
+ return (e, t) => (i(), n(a(o), {
21
+ id: r.labelForId,
22
+ ariaLabel: r.control.label,
23
+ "model-value": s.control.data,
24
+ disabled: r.disabled,
25
+ "allowed-formats": u.value,
26
+ "all-default-formats": a(d) ?? [],
27
+ error: r.error,
28
+ "sub-text": r.subText,
29
+ "onUpdate:modelValue": r.changeValue
30
+ }, null, 8, [
31
+ "id",
32
+ "ariaLabel",
33
+ "model-value",
34
+ "disabled",
35
+ "allowed-formats",
36
+ "all-default-formats",
37
+ "error",
38
+ "sub-text",
39
+ "onUpdate:modelValue"
40
+ ]));
41
+ }
42
+ });
43
+ //#endregion
44
+ export { s as default };
@@ -0,0 +1,42 @@
1
+ import { n as e } from "./usePossibleValues-Cx6iSt_X.js";
2
+ import { t } from "./LoadingDropdown-BpU4Uiin.js";
3
+ import { createBlock as n, defineComponent as r, openBlock as i, toRef as a, unref as o } from "vue";
4
+ //#endregion
5
+ //#region src/uiComponents/DropdownControl.vue
6
+ var s = /* @__PURE__ */ r({
7
+ __name: "DropdownControl",
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 { possibleValues: s } = e(a(r, "control"));
20
+ return (e, a) => (i(), n(t, {
21
+ id: r.labelForId ?? "",
22
+ ariaLabel: r.control.label,
23
+ disabled: r.disabled,
24
+ "model-value": r.control.data ?? "",
25
+ "possible-values": o(s),
26
+ error: r.error,
27
+ "sub-text": r.subText,
28
+ "onUpdate:modelValue": r.changeValue
29
+ }, null, 8, [
30
+ "id",
31
+ "ariaLabel",
32
+ "disabled",
33
+ "model-value",
34
+ "possible-values",
35
+ "error",
36
+ "sub-text",
37
+ "onUpdate:modelValue"
38
+ ]));
39
+ }
40
+ });
41
+ //#endregion
42
+ export { s 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/ExecutorCoresControl.vue
5
+ var o = /* @__PURE__ */ r({
6
+ __name: "ExecutorCoresControl",
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?.currentUsage ?? 0), l = t(() => o.control.schema.secondaryValue || 0), u = t(() => o.control.uischema.options?.donutMax ?? Infinity), d = t(() => u.value === -1 ? "unlimited" : u.value), f = t(() => o.control.uischema.options?.isSharedContext ?? !1), p = t(() => c.value + l.value), m = t(() => `This environment will use ${l.value} vCore tokens. In total, ${p.value} of ${d.value} vCore tokens available ${f.value ? "from the license" : "for this team"} will be used.`);
19
+ return (t, r) => (a(), n(e, i(o, {
20
+ "donut-title": s.value,
21
+ "donut-description": m.value
22
+ }), null, 16, ["donut-title", "donut-description"]));
23
+ }
24
+ });
25
+ //#endregion
26
+ export { o 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/ExecutorMemoryControl.vue
5
+ var o = /* @__PURE__ */ r({
6
+ __name: "ExecutorMemoryControl",
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.schema.secondaryValue || 0), c = t(() => o.control.uischema.options?.donutTitle || ""), l = t(() => o.control.uischema.options?.currentUsage ?? 0), u = t(() => o.control.uischema.options?.donutMax ?? Infinity), d = t(() => s.value + l.value), f = t(() => `This environment will use a maximum of ${s.value} GB RAM. In total, ${d.value} GB of ${u.value} GB available for this team will be used.`);
19
+ return (t, r) => (a(), n(e, i(o, {
20
+ "donut-title": c.value,
21
+ "donut-description": f.value
22
+ }), null, 16, ["donut-title", "donut-description"]));
23
+ }
24
+ });
25
+ //#endregion
26
+ export { o as default };
@@ -0,0 +1,58 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
+ import { computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, toDisplayString as c, unref as l } from "vue";
3
+ import { KdsButton as u } from "@knime/kds-components";
4
+ //#region src/uiComponents/FileUploadControl.vue?vue&type=script&setup=true&lang.ts
5
+ var d = { class: "wrapper" }, f = { class: "filename" }, p = [
6
+ "id",
7
+ "aria-label",
8
+ "accept",
9
+ "multiple",
10
+ "disabled"
11
+ ], m = /*#__PURE__*/ e(/* @__PURE__ */ a({
12
+ inheritAttrs: !1,
13
+ __name: "FileUploadControl",
14
+ props: {
15
+ control: {},
16
+ handleChange: { type: Function },
17
+ changeValue: { type: Function },
18
+ disabled: { type: Boolean },
19
+ error: { type: Boolean },
20
+ subText: {},
21
+ onRegisterValidation: { type: Function },
22
+ labelForId: {}
23
+ },
24
+ setup(e) {
25
+ let a = e, m = s(a.control.data?.slice()), h = t(() => a.control.uischema.options?.accept ?? "*"), g = t(() => a.control.uischema.options?.multiple ?? !1), _ = s(null), v = t(() => m.value?.map?.(({ name: e }) => e).join(", ") || "No file selected"), y = t(() => `Select file${g.value ? "s" : ""}`), b = () => {
26
+ _.value?.click();
27
+ }, x = (e) => {
28
+ let t = e.target;
29
+ t.files && (m.value = Array.from(t.files), a.handleChange(a.control.path, Array.from(m.value)));
30
+ };
31
+ return (t, a) => (o(), n("div", d, [
32
+ i(l(u), {
33
+ class: "file-select-button",
34
+ label: y.value,
35
+ "leading-icon": "search",
36
+ variant: "outlined",
37
+ disabled: e.disabled,
38
+ size: "small",
39
+ onClick: b
40
+ }, null, 8, ["label", "disabled"]),
41
+ r("span", f, c(v.value), 1),
42
+ r("input", {
43
+ id: e.labelForId,
44
+ ref_key: "fileSelector",
45
+ ref: _,
46
+ "aria-label": e.control.label,
47
+ type: "file",
48
+ accept: h.value,
49
+ multiple: g.value,
50
+ disabled: e.disabled,
51
+ hidden: "",
52
+ onChange: x
53
+ }, null, 40, p)
54
+ ]));
55
+ }
56
+ }), [["__scopeId", "data-v-37968bc6"]]);
57
+ //#endregion
58
+ export { m as default };