@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
@@ -1,44 +0,0 @@
1
- import { defineComponent as l, computed as i, openBlock as d, createBlock as u, unref as c } from "vue";
2
- import { T as m } from "./index-_VUHzju5.js";
3
- import { KdsDateInput as s } from "@knime/kds-components";
4
- import { p } from "./plainDateTimeUtils-BZSKqp9i.js";
5
- const y = /* @__PURE__ */ l({
6
- __name: "DateControl",
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
- const o = t, a = (e) => {
19
- if (!e)
20
- return null;
21
- try {
22
- return m.PlainDate.from(e);
23
- } catch {
24
- return p.fromString(e).date;
25
- }
26
- }, r = i(
27
- () => a(o.control.data)
28
- ), n = (e) => {
29
- o.changeValue(e?.toString() ?? "");
30
- };
31
- return (e, b) => (d(), u(c(s), {
32
- id: t.labelForId,
33
- ariaLabel: o.control.label,
34
- "model-value": r.value,
35
- disabled: t.disabled,
36
- error: t.error,
37
- "sub-text": t.subText,
38
- "onUpdate:modelValue": n
39
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text"]));
40
- }
41
- });
42
- export {
43
- y as default
44
- };
@@ -1,103 +0,0 @@
1
- import { defineComponent as M, computed as l, ref as P, openBlock as v, createBlock as x, unref as h } from "vue";
2
- import { T } from "./index-_VUHzju5.js";
3
- import { KdsDateTimeInput as L, KdsDateInput as w } from "@knime/kds-components";
4
- import { p as n } from "./plainDateTimeUtils-BZSKqp9i.js";
5
- const j = /* @__PURE__ */ M({
6
- __name: "DateTimeControl",
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(a) {
18
- const t = a, o = l(() => t.control.uischema.options), p = l(() => o.value?.showTime ?? !0), D = l(
19
- () => n.getMaxGranularity(o.value, {
20
- showMilliseconds: !1
21
- })
22
- ), s = (e) => {
23
- if (typeof e != "string" || e === "")
24
- return null;
25
- try {
26
- return T.PlainDate.from(e);
27
- } catch {
28
- return n.fromString(e).date;
29
- }
30
- }, f = l(
31
- () => s(o.value?.minimum)
32
- ), g = l(
33
- () => s(o.value?.maximum)
34
- ), d = P(
35
- n.detectGranularity(t.control.data)
36
- ), V = l(() => {
37
- const { date: e, time: u } = n.fromString(t.control.data);
38
- return e === null ? null : e.toPlainDateTime(u ?? T.PlainTime.from("00:00:00"));
39
- }), U = l(
40
- () => n.fromString(t.control.data).date
41
- );
42
- let r, i, m = !1;
43
- const S = () => {
44
- m = !1;
45
- const e = i ?? d.value, u = r !== void 0, B = i !== void 0, c = r;
46
- if (r = void 0, i = void 0, d.value = e, u) {
47
- if (c === null) {
48
- t.changeValue("");
49
- return;
50
- }
51
- t.changeValue(
52
- n.toString(
53
- c.toPlainDate(),
54
- c.toPlainTime(),
55
- e
56
- )
57
- );
58
- return;
59
- }
60
- if (B) {
61
- const { date: y, time: I } = n.fromString(t.control.data);
62
- y && t.changeValue(n.toString(y, I, e));
63
- }
64
- }, b = () => {
65
- m || (m = !0, queueMicrotask(S));
66
- }, F = (e) => {
67
- r = e, b();
68
- }, G = (e) => {
69
- i = e, b();
70
- }, k = (e) => {
71
- t.changeValue(e === null ? "" : e.toString());
72
- };
73
- return (e, u) => p.value ? (v(), x(h(L), {
74
- key: 0,
75
- id: a.labelForId,
76
- ariaLabel: a.control.label,
77
- "model-value": V.value,
78
- "min-date": f.value,
79
- "max-date": g.value,
80
- granularity: d.value,
81
- "max-granularity": D.value,
82
- disabled: a.disabled,
83
- error: a.error,
84
- "sub-text": a.subText,
85
- "onUpdate:modelValue": F,
86
- "onUpdate:granularity": G
87
- }, null, 8, ["id", "ariaLabel", "model-value", "min-date", "max-date", "granularity", "max-granularity", "disabled", "error", "sub-text"])) : (v(), x(h(w), {
88
- key: 1,
89
- id: a.labelForId,
90
- ariaLabel: a.control.label,
91
- "model-value": U.value,
92
- "min-date": f.value,
93
- "max-date": g.value,
94
- disabled: a.disabled,
95
- error: a.error,
96
- "sub-text": a.subText,
97
- "onUpdate:modelValue": k
98
- }, null, 8, ["id", "ariaLabel", "model-value", "min-date", "max-date", "disabled", "error", "sub-text"]));
99
- }
100
- });
101
- export {
102
- j as default
103
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as s, computed as a, openBlock as u, createBlock as m, unref as l } from "vue";
2
- import { KdsDateTimeFormatInput as i } from "@knime/kds-components";
3
- import { u as c } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const v = /* @__PURE__ */ s({
5
- __name: "DateTimeFormatPickerControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- error: { type: Boolean },
12
- subText: {},
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(e) {
17
- const o = e, t = a(
18
- () => o.control.uischema
19
- ), r = a(() => t.value.options), n = a(() => r.value?.allowedFormats), d = c(t, "dateTimeFormats", []);
20
- return (b, f) => (u(), m(l(i), {
21
- id: e.labelForId,
22
- ariaLabel: e.control.label,
23
- "model-value": o.control.data,
24
- disabled: e.disabled,
25
- "allowed-formats": n.value,
26
- "all-default-formats": l(d) ?? [],
27
- error: e.error,
28
- "sub-text": e.subText,
29
- "onUpdate:modelValue": e.changeValue
30
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "sub-text", "onUpdate:modelValue"]));
31
- }
32
- });
33
- export {
34
- v as default
35
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as l, toRef as t, openBlock as n, createBlock as r, unref as s } from "vue";
2
- import { u } from "./usePossibleValues-CXVLf00v.js";
3
- import { _ as d } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js";
4
- const p = /* @__PURE__ */ l({
5
- __name: "DropdownControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- error: { type: Boolean },
12
- subText: {},
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(e) {
17
- const o = e, { possibleValues: a } = u(t(o, "control"));
18
- return (i, c) => (n(), r(d, {
19
- id: e.labelForId ?? "",
20
- ariaLabel: e.control.label,
21
- disabled: e.disabled,
22
- "model-value": e.control.data ?? "",
23
- "possible-values": s(a),
24
- error: e.error,
25
- "sub-text": e.subText,
26
- "onUpdate:modelValue": e.changeValue
27
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
28
- }
29
- });
30
- export {
31
- p as default
32
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as d, computed as e, openBlock as p, createBlock as m, mergeProps as h } from "vue";
2
- import { R as v } from "./ResourceControlBase-CX97xRiy.js";
3
- const g = /* @__PURE__ */ d({
4
- __name: "ExecutorCoresControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- error: { type: Boolean },
11
- subText: {},
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(a) {
16
- const o = a, s = e(
17
- () => o.control.uischema.options?.donutTitle || ""
18
- ), l = e(
19
- () => o.control.uischema.options?.currentUsage ?? 0
20
- ), t = e(
21
- () => o.control.schema.secondaryValue || 0
22
- ), n = e(
23
- () => o.control.uischema.options?.donutMax ?? 1 / 0
24
- ), r = e(
25
- () => n.value === -1 ? "unlimited" : n.value
26
- ), c = e(
27
- () => o.control.uischema.options?.isSharedContext ?? !1
28
- ), u = e(() => l.value + t.value), i = e(
29
- () => `This environment will use ${t.value} vCore tokens. In total, ${u.value} of ${r.value} vCore tokens available ${c.value ? "from the license" : "for this team"} will be used.`
30
- );
31
- return (f, x) => (p(), m(v, h(o, {
32
- "donut-title": s.value,
33
- "donut-description": i.value
34
- }), null, 16, ["donut-title", "donut-description"]));
35
- }
36
- });
37
- export {
38
- g as default
39
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as c, computed as o, openBlock as i, createBlock as p, mergeProps as d } from "vue";
2
- import { R as m } from "./ResourceControlBase-CX97xRiy.js";
3
- const x = /* @__PURE__ */ c({
4
- __name: "ExecutorMemoryControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- error: { type: Boolean },
11
- subText: {},
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(n) {
16
- const e = n, t = o(
17
- () => e.control.schema.secondaryValue || 0
18
- ), a = o(
19
- () => e.control.uischema.options?.donutTitle || ""
20
- ), l = o(
21
- () => e.control.uischema.options?.currentUsage ?? 0
22
- ), r = o(
23
- () => e.control.uischema.options?.donutMax ?? 1 / 0
24
- ), s = o(() => t.value + l.value), u = o(
25
- () => `This environment will use a maximum of ${t.value} GB RAM. In total, ${s.value} GB of ${r.value} GB available for this team will be used.`
26
- );
27
- return (f, h) => (i(), p(m, d(e, {
28
- "donut-title": a.value,
29
- "donut-description": u.value
30
- }), null, 16, ["donut-title", "donut-description"]));
31
- }
32
- });
33
- export {
34
- x as default
35
- };
@@ -1,56 +0,0 @@
1
- import { defineComponent as b, ref as s, computed as o, openBlock as h, createElementBlock as v, createVNode as y, unref as F, createElementVNode as r, toDisplayString as _ } from "vue";
2
- import { KdsButton as g } from "@knime/kds-components";
3
- import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const S = { class: "wrapper" }, k = { class: "filename" }, x = ["id", "aria-label", "accept", "multiple", "disabled"], B = /* @__PURE__ */ b({
5
- inheritAttrs: !1,
6
- __name: "FileUploadControl",
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(e) {
18
- const l = e, a = s(l.control.data?.slice()), d = o(
19
- () => l.control.uischema.options?.accept ?? "*"
20
- ), i = o(
21
- () => l.control.uischema.options?.multiple ?? !1
22
- ), c = s(null), u = o(() => a.value?.map?.(({ name: t }) => t).join(", ") || "No file selected"), p = o(() => `Select file${i.value ? "s" : ""}`), f = () => {
23
- c.value?.click();
24
- }, m = (t) => {
25
- const n = t.target;
26
- n.files && (a.value = Array.from(n.files), l.handleChange(l.control.path, Array.from(a.value)));
27
- };
28
- return (t, n) => (h(), v("div", S, [
29
- y(F(g), {
30
- class: "file-select-button",
31
- label: p.value,
32
- "leading-icon": "search",
33
- variant: "outlined",
34
- disabled: e.disabled,
35
- size: "small",
36
- onClick: f
37
- }, null, 8, ["label", "disabled"]),
38
- r("span", k, _(u.value), 1),
39
- r("input", {
40
- id: e.labelForId,
41
- ref_key: "fileSelector",
42
- ref: c,
43
- "aria-label": e.control.label,
44
- type: "file",
45
- accept: d.value,
46
- multiple: i.value,
47
- disabled: e.disabled,
48
- hidden: "",
49
- onChange: m
50
- }, null, 40, x)
51
- ]));
52
- }
53
- }), N = /* @__PURE__ */ C(B, [["__scopeId", "data-v-37968bc6"]]);
54
- export {
55
- N as default
56
- };
@@ -1,117 +0,0 @@
1
- import { defineComponent as S, useCssVars as T, unref as a, ref as U, computed as s, watch as f, openBlock as r, createElementBlock as u, normalizeStyle as B, Fragment as D, renderList as G, createBlock as _, createCommentVNode as p, createVNode as A, withModifiers as N } from "vue";
2
- import { KdsToggleButton as z, KdsCheckbox as K, KdsButton as O } from "@knime/kds-components";
3
- import { _ as R } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const W = { class: "grid-list" }, $ = {
5
- key: 1,
6
- class: "checkbox"
7
- }, H = 7, j = "auto", q = "Invert selection", J = /* @__PURE__ */ S({
8
- __name: "GridSelectionControl",
9
- props: {
10
- handleChange: { type: Function },
11
- control: {},
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- error: { type: Boolean },
15
- subText: {},
16
- onRegisterValidation: { type: Function },
17
- labelForId: {}
18
- },
19
- setup(b) {
20
- T((e) => ({
21
- bf8a5982: a(k)
22
- }));
23
- const c = b, {
24
- control: { path: y, uischema: { options: C } = {} },
25
- handleChange: V
26
- } = c, {
27
- possibleValues: n = [],
28
- columnCount: I = H,
29
- gridWidth: k = j,
30
- toggleLabel: m = q,
31
- renderLastItemAsCheckbox: d = !1
32
- } = C, o = U(/* @__PURE__ */ new Map()), x = s(() => ({
33
- "grid-template-columns": `repeat(${I}, 1fr)`
34
- })), E = s(
35
- () => n.filter(
36
- (e, t) => !(d && t === n.length - 1)
37
- )
38
- ), i = s(
39
- () => d ? n[n.length - 1] : null
40
- ), M = () => {
41
- const e = /* @__PURE__ */ new Map();
42
- o.value.forEach(
43
- ({ active: t }, l) => {
44
- e.set(l, {
45
- active: !t
46
- });
47
- }
48
- ), o.value = e;
49
- }, w = () => {
50
- const e = /* @__PURE__ */ new Map();
51
- return n.forEach(({ id: t }) => {
52
- e.set(t, { active: c.control.data?.includes(t) ?? !1 });
53
- }), e;
54
- }, g = s(() => {
55
- const e = [];
56
- return o.value.forEach(
57
- ({ active: t }, l) => {
58
- t && e.push(l);
59
- }
60
- ), e;
61
- }), F = s(() => c.control.data ?? []), h = s(() => {
62
- const e = g.value, t = F.value;
63
- if (e.length !== t.length)
64
- return !0;
65
- const l = new Set(t);
66
- return e.some((v) => !l.has(v));
67
- });
68
- return f(
69
- () => c.control.data,
70
- () => {
71
- h.value && (o.value = w());
72
- },
73
- { immediate: !0, deep: !0 }
74
- ), f(
75
- () => o.value,
76
- () => {
77
- h.value && V(y, g.value);
78
- },
79
- { deep: !0 }
80
- ), (e, t) => (r(), u("div", W, [
81
- a(n).length ? (r(), u("div", {
82
- key: 0,
83
- class: "grid-list-container",
84
- style: B(x.value)
85
- }, [
86
- (r(!0), u(D, null, G(E.value, ({ id: l, text: v }) => (r(), _(a(z), {
87
- key: `grid-item-${l}`,
88
- modelValue: o.value.get(l).active,
89
- "onUpdate:modelValue": (L) => o.value.get(l).active = L,
90
- class: "overwrite-legacy-styles",
91
- label: v,
92
- variant: "outlined",
93
- size: "xsmall"
94
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
95
- ], 4)) : p("", !0),
96
- a(d) && i.value ? (r(), u("div", $, [
97
- A(a(K), {
98
- modelValue: o.value.get(i.value.id).active,
99
- "onUpdate:modelValue": t[0] || (t[0] = (l) => o.value.get(i.value.id).active = l),
100
- label: i.value.text
101
- }, null, 8, ["modelValue", "label"])
102
- ])) : p("", !0),
103
- a(m) ? (r(), _(a(O), {
104
- key: 2,
105
- variant: "outlined",
106
- size: "xsmall",
107
- label: a(m),
108
- "leading-icon": "replace",
109
- class: "invert overwrite-legacy-styles",
110
- onClick: N(M, ["prevent"])
111
- }, null, 8, ["label"])) : p("", !0)
112
- ]));
113
- }
114
- }), Y = /* @__PURE__ */ R(J, [["__scopeId", "data-v-b6393b68"]]);
115
- export {
116
- Y as default
117
- };
@@ -1,26 +0,0 @@
1
- import { defineComponent as r, openBlock as t, createElementBlock as a, Fragment as n, renderList as c, createBlock as s, unref as u } from "vue";
2
- import { DispatchRenderer as m } from "@jsonforms/vue";
3
- import { _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const d = { class: "horizontal" }, h = /* @__PURE__ */ r({
5
- __name: "HorizontalLayout",
6
- props: {
7
- layout: {}
8
- },
9
- setup(e) {
10
- return (y, f) => (t(), a("div", d, [
11
- (t(!0), a(n, null, c(e.layout.uischema.elements, (l, o) => (t(), s(u(m), {
12
- key: o,
13
- class: "horizontal-element",
14
- schema: e.layout.schema,
15
- uischema: l,
16
- path: e.layout.path,
17
- enabled: e.layout.enabled,
18
- renderers: e.layout.renderers,
19
- cells: e.layout.cells
20
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
21
- ]));
22
- }
23
- }), z = /* @__PURE__ */ i(h, [["__scopeId", "data-v-8f2ebb37"]]);
24
- export {
25
- z as default
26
- };
@@ -1,21 +0,0 @@
1
- import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js";
3
- const s = /* @__PURE__ */ o({
4
- __name: "IntegerControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- error: { type: Boolean },
11
- subText: {},
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(a) {
16
- return (e, l) => (n(), t(p, r(e.$props, { type: "integer" }), null, 16));
17
- }
18
- });
19
- export {
20
- s as default
21
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as p, computed as a, openBlock as b, createBlock as f, unref as r } from "vue";
2
- import { T as g } from "./index-_VUHzju5.js";
3
- import { KdsIntervalInput as v } from "@knime/kds-components";
4
- import { u as l } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
5
- const V = /* @__PURE__ */ p({
6
- __name: "IntervalControl",
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(e) {
18
- const t = e, n = a(
19
- () => t.control.uischema
20
- ), u = l(
21
- n,
22
- "intervalType",
23
- "DATE_OR_TIME"
24
- ), c = a(() => u.value.toLowerCase()), d = l(n, "allowDescending", !0), i = (o) => {
25
- if (!o)
26
- return null;
27
- try {
28
- return g.Duration.from(o);
29
- } catch {
30
- return null;
31
- }
32
- }, s = a(
33
- () => i(t.control.data)
34
- ), m = (o) => {
35
- t.changeValue(o?.toString() ?? "");
36
- };
37
- return (o, h) => (b(), f(r(v), {
38
- id: e.labelForId,
39
- ariaLabel: t.control.label,
40
- "model-value": s.value,
41
- "allow-descending": r(d),
42
- disabled: e.disabled,
43
- error: e.error,
44
- format: c.value,
45
- "sub-text": e.subText,
46
- "onUpdate:modelValue": m
47
- }, null, 8, ["id", "ariaLabel", "model-value", "allow-descending", "disabled", "error", "format", "sub-text"]));
48
- }
49
- });
50
- export {
51
- V as default
52
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as c, useCssVars as s, unref as n, openBlock as p, createElementBlock as d, createVNode as u } from "vue";
2
- import { KdsLinkButton as m } from "@knime/kds-components";
3
- import { _ as g } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const _ = { class: "link-wrapper" }, b = /* @__PURE__ */ c({
5
- __name: "LinkControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {},
12
- error: { type: Boolean },
13
- subText: {},
14
- onRegisterValidation: { type: Function }
15
- },
16
- setup(o) {
17
- s((r) => ({
18
- v7f757bb0: n(e)
19
- }));
20
- const t = o, e = t.control.uischema.options?.alignment === "right" ? "flex-end" : "flex-start", { to: a, leadingIcon: l, trailingIcon: i } = t.control.uischema.options || {};
21
- return (r, f) => (p(), d("div", _, [
22
- u(n(m), {
23
- class: "link-button",
24
- label: o.control.label,
25
- to: n(a),
26
- "leading-icon": n(l),
27
- "trailing-icon": n(i),
28
- size: "small",
29
- variant: "transparent"
30
- }, null, 8, ["label", "to", "leading-icon", "trailing-icon"])
31
- ]));
32
- }
33
- }), y = /* @__PURE__ */ g(b, [["__scopeId", "data-v-c55bc56b"]]);
34
- export {
35
- y as default
36
- };
@@ -1,57 +0,0 @@
1
- import { defineComponent as v, computed as o, openBlock as V, createBlock as y, unref as f, mergeProps as g } from "vue";
2
- import { KdsDropdown as x } from "@knime/kds-components";
3
- const _ = /* @__PURE__ */ v({
4
- __name: "LoadingDropdown",
5
- props: {
6
- possibleValues: {},
7
- modelValue: {},
8
- id: {},
9
- ariaLabel: {},
10
- disabled: { type: Boolean },
11
- error: { type: Boolean }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(i, { emit: u }) {
15
- const e = i, n = u, d = o(() => e.possibleValues === null ? "" : e.modelValue), r = o(() => e.possibleValues === null), p = o(
16
- () => e.possibleValues?.some((a) => a.type !== void 0)
17
- ), s = o(() => {
18
- if (e.possibleValues === null)
19
- return [];
20
- const a = [];
21
- for (const l of e.possibleValues) {
22
- if (!l.text)
23
- continue;
24
- let t;
25
- p.value ? t = {
26
- type: "dataType",
27
- name: l.type?.id ?? "missing_type"
28
- } : "accessory" in l && (t = l.accessory), a.push({
29
- id: l.id,
30
- text: l.text,
31
- disabled: l.disabled,
32
- ...l.subText ? { subText: l.subText } : {},
33
- accessory: t
34
- });
35
- }
36
- return a;
37
- }), c = o(() => r.value ? "Loading" : s.value.length > 0 ? "No value selected" : "No values present"), b = o(
38
- () => e.disabled || s.value.length === 0
39
- ), m = (a) => {
40
- n("update:modelValue", a ?? "");
41
- };
42
- return (a, l) => (V(), y(f(x), g(a.$attrs, {
43
- id: e.id,
44
- ariaLabel: e.ariaLabel,
45
- "model-value": d.value,
46
- disabled: b.value,
47
- "possible-values": s.value,
48
- loading: r.value,
49
- placeholder: c.value,
50
- error: e.error,
51
- "onUpdate:modelValue": m
52
- }), null, 16, ["id", "ariaLabel", "model-value", "disabled", "possible-values", "loading", "placeholder", "error"]));
53
- }
54
- });
55
- export {
56
- _
57
- };