@knime/jsonforms 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/AnyOfTwinlist-iPxS5C9Y.js +24 -0
  3. package/dist/CheckboxControl-C99OdmDL.js +41 -0
  4. package/dist/CheckboxesControl-BZhMhT9x.js +47 -0
  5. package/dist/ColorControl-D1dNnNbO.js +38 -0
  6. package/dist/ColorPreviewControl-B4zix2kb.js +67 -0
  7. package/dist/ComboBoxControl-BGWAD9IW.js +47 -0
  8. package/dist/DateControl-D0HfVrtz.js +49 -0
  9. package/dist/DateTimeControl-kTQZI9JC.js +103 -0
  10. package/dist/DateTimeFormatPickerControl-BiYcsKSn.js +44 -0
  11. package/dist/DropdownControl-jsayV3N5.js +42 -0
  12. package/dist/ExecutorCoresControl-DNo2SaC6.js +26 -0
  13. package/dist/ExecutorMemoryControl-C8RLYQdd.js +26 -0
  14. package/dist/FileUploadControl-Cv3xWTAS.js +58 -0
  15. package/dist/GridSelectionControl-BqtaGQYg.js +86 -0
  16. package/dist/HorizontalLayout-B_lETfCu.js +29 -0
  17. package/dist/IntegerControl-Cr8SO0xH.js +22 -0
  18. package/dist/IntervalControl-BdjKEwLy.js +53 -0
  19. package/dist/LinkControl-QMwkCJlj.js +37 -0
  20. package/dist/LoadingDropdown-BpU4Uiin.js +61 -0
  21. package/dist/ManualTwinlistControl-CPILp7H_.js +75 -0
  22. package/dist/NameFilter-CYYPRj-2.js +29 -0
  23. package/dist/NumberControl-ODy5GAlR.js +22 -0
  24. package/dist/NumberControlBase-Cl3QcvzB.js +56 -0
  25. package/dist/OneOfDropdown-CMPRAraI.js +44 -0
  26. package/dist/ProgressButtonControl-BimHrSZd.js +51 -0
  27. package/dist/RadioButtonsWithDescriptionControl-DJu3ODo7.js +58 -0
  28. package/dist/RadioControl-D_NE5s4n.js +22 -0
  29. package/dist/RadioControlBase-knF86px0.js +69 -0
  30. package/dist/ResourceControlBase-BVMVVYns.js +64 -0
  31. package/dist/RichTextControl-JIM904_P.js +72 -0
  32. package/dist/SectionLayout-BDYjoUXM.js +41 -0
  33. package/dist/SettingsSubPanelLayout-DVw_AsU6.js +53 -0
  34. package/dist/SimpleTwinlistControl-BNnOmbN-.js +24 -0
  35. package/dist/SingleSelectControl-CJV9VMZm.js +58 -0
  36. package/dist/SortListControl-D-ifoRva.js +71 -0
  37. package/dist/TeamAndSpacesControl-D1FvyeCV.js +56 -0
  38. package/dist/TeamResourceControl-DyCO6-Nk.js +26 -0
  39. package/dist/TextAreaControl-7QziyTgn.js +40 -0
  40. package/dist/TimeControl-B29iTlhP.js +71 -0
  41. package/dist/TimeframesControl-Wvu--J0V.js +46 -0
  42. package/dist/TwinlistControlBase-300a_qUR.js +55 -0
  43. package/dist/TypedStringFilter-Ek7bQ-7j.js +35 -0
  44. package/dist/ValueSwitchControl-H2t2Wgo6.js +22 -0
  45. package/dist/VerticalLayout-zV890HYr.js +32 -0
  46. package/dist/ZonedDateTimeControl-DoE2T9iz.js +88 -0
  47. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  48. package/dist/inject-DEsHVs5q.js +5 -0
  49. package/dist/knime-jsonforms.css +2 -1
  50. package/dist/knime-jsonforms.d.ts +1 -1
  51. package/dist/knime-jsonforms.js +3 -219
  52. package/dist/magic-string.es-DrXXtutX.js +659 -0
  53. package/dist/plainDateTimeUtils-5uOCJ4N5.js +58 -0
  54. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  55. package/dist/src/JsonFormsDialog.vue.d.ts +53 -435
  56. package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +2 -1
  57. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +21 -21
  58. package/dist/src/layoutComponents/Form.vue.d.ts +9 -12
  59. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +2 -1
  60. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +9 -13
  61. package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +9 -13
  62. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +2 -1
  63. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +10 -14
  64. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -15
  65. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +11 -10
  66. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +2 -1
  67. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +3 -2
  68. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -1
  69. package/dist/src/renderers/checkboxRenderer.d.ts +5 -4
  70. package/dist/src/renderers/colorPreviewRenderer.d.ts +1 -1
  71. package/dist/src/renderers/defaultRenderers.d.ts +22 -21
  72. package/dist/src/renderers/fallbackRenderers.d.ts +6 -5
  73. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  74. package/dist/src/renderers/linkRenderer.d.ts +1 -1
  75. package/dist/src/renderers/progressButtonRenderer.d.ts +3 -3
  76. package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -3
  77. package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +3 -3
  78. package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
  79. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  80. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +11 -14
  81. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  82. package/dist/src/uiComponents/ColorControl.vue.d.ts +2 -1
  83. package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +2 -1
  84. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  85. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  86. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  87. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  88. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  89. package/dist/src/uiComponents/FieldControl.vue.d.ts +12 -7
  90. package/dist/src/uiComponents/FieldRenderer.vue.d.ts +12 -7
  91. package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -3
  92. package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +2 -1
  93. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  94. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  95. package/dist/src/uiComponents/LinkControl.vue.d.ts +2 -1
  96. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  97. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -1
  98. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  99. package/dist/src/uiComponents/PasswordControl.vue.d.ts +2 -1
  100. package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +9 -13
  101. package/dist/src/uiComponents/QuantityControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -13
  106. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/TextControl.vue.d.ts +3 -454
  111. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  112. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/TimeframesControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/UsernameControl.vue.d.ts +2 -1
  115. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  116. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +2 -1
  119. package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +3 -2
  121. package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +2 -141
  126. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  127. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  128. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +3 -2
  129. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -1
  132. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  133. package/dist/src-DwqijroM.js +1269 -0
  134. package/dist/temporal-polyfill-D4u1I_Z-.js +3114 -0
  135. package/dist/testing.d.ts +1 -1
  136. package/dist/testing.js +15278 -19038
  137. package/dist/toKdsPossibleValues-Dd_qzlUI.js +14 -0
  138. package/dist/useBuiltinValidations-B_Drc2y-.js +43 -0
  139. package/dist/usePossibleValues-Cx6iSt_X.js +15 -0
  140. package/dist/useProvidedState-478_KXOe.js +26 -0
  141. package/dist/useUnknownValuesInTwinlist-BvCTc3hC.js +205 -0
  142. package/dist/utils-DmZLgn8X.js +12 -0
  143. package/package.json +7 -7
  144. package/dist/AnyOfTwinlist-CcodfEXw.js +0 -23
  145. package/dist/CheckboxControl-B_MAR82s.js +0 -41
  146. package/dist/CheckboxesControl--bG4aF6O.js +0 -39
  147. package/dist/ColorControl-CEp2Ei7R.js +0 -29
  148. package/dist/ColorPreviewControl-j0uQH95J.js +0 -90
  149. package/dist/ComboBoxControl-BpJzwiv6.js +0 -39
  150. package/dist/DateControl-83Fi6P5y.js +0 -44
  151. package/dist/DateTimeControl-C-D8bFm3.js +0 -103
  152. package/dist/DateTimeFormatPickerControl-B9gl_66T.js +0 -35
  153. package/dist/DropdownControl-CtveoldX.js +0 -32
  154. package/dist/ExecutorCoresControl-CErHidL7.js +0 -39
  155. package/dist/ExecutorMemoryControl-DgSM86Yg.js +0 -35
  156. package/dist/FileUploadControl-BBfnxURy.js +0 -56
  157. package/dist/GridSelectionControl-BaI4j0Jj.js +0 -117
  158. package/dist/HorizontalLayout-D1SRCyhL.js +0 -26
  159. package/dist/IntegerControl-v93Xw4DJ.js +0 -21
  160. package/dist/IntervalControl-CVlO_mFO.js +0 -52
  161. package/dist/LinkControl-j8GrcZZG.js +0 -36
  162. package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js +0 -57
  163. package/dist/ManualTwinlistControl-BzJehuHs.js +0 -74
  164. package/dist/MultimodeTwinlistControl-Br0DrpsZ.js +0 -4
  165. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js +0 -159
  166. package/dist/NameFilter-BjuVseuX.js +0 -25
  167. package/dist/NumberControl-BF76FEhD.js +0 -21
  168. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js +0 -52
  169. package/dist/OneOfDropdown-DpXmZauV.js +0 -35
  170. package/dist/ProgressButtonControl-t8QMA22a.js +0 -52
  171. package/dist/RadioButtonsWithDescriptionControl-CeZ4qYCr.js +0 -58
  172. package/dist/RadioControl-DOn1Kre5.js +0 -21
  173. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js +0 -57
  174. package/dist/ResourceControlBase-CX97xRiy.js +0 -70
  175. package/dist/RichTextControl-BrVmkMgh.js +0 -60
  176. package/dist/SectionHeading-YAJTwOE4.js +0 -61
  177. package/dist/SectionLayout-BYOxuxY2.js +0 -47
  178. package/dist/SettingsSubPanel-DgISjowU.js +0 -5
  179. package/dist/SettingsSubPanelLayout-BQJCnTqx.js +0 -69
  180. package/dist/SimpleButtonControl-GTX19t2_.js +0 -50
  181. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js +0 -1284
  182. package/dist/SimpleTwinlistControl-DOH1_L25.js +0 -23
  183. package/dist/SingleSelectControl-mY_yYOyk.js +0 -58
  184. package/dist/SortListControl-D-Um5gEW.js +0 -81
  185. package/dist/TeamAndSpacesControl-fGumynvr.js +0 -66
  186. package/dist/TeamResourceControl--1Sj3-Ks.js +0 -35
  187. package/dist/TextAreaControl-Cwq-lNBk.js +0 -30
  188. package/dist/TextControl-MvbrNTGW.js +0 -4
  189. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js +0 -53
  190. package/dist/TimeControl-WG0SC4_b.js +0 -71
  191. package/dist/TimeframesControl-CX5eKOGZ.js +0 -53
  192. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BKCvZF3X.js +0 -45
  193. package/dist/TypedStringFilter-BnWygKQJ.js +0 -27
  194. package/dist/ValueSwitchControl-BByKe7NK.js +0 -21
  195. package/dist/VerticalLayout-DIBkvSZ9.js +0 -30
  196. package/dist/VerticalLayoutBase-BEDnWcoh.js +0 -20
  197. package/dist/ZonedDateTimeControl-B45OygrC.js +0 -97
  198. package/dist/index-Blg1O3Fz.js +0 -15
  199. package/dist/index-_VUHzju5.js +0 -3210
  200. package/dist/magic-string.es-uPKorP4O.js +0 -663
  201. package/dist/plainDateTimeUtils-BZSKqp9i.js +0 -52
  202. package/dist/toKdsPossibleValues-BklBg3gG.js +0 -14
  203. package/dist/useBuiltinValidations-_4IBMopQ.js +0 -74
  204. package/dist/usePossibleValues-CXVLf00v.js +0 -16
  205. package/dist/useUnknownValuesInTwinlist-uXOCQkVS.js +0 -65
@@ -1,74 +0,0 @@
1
- import { defineComponent as k, toRef as i, computed as d, openBlock as C, createBlock as V, unref as a, mergeProps as U } from "vue";
2
- import { KdsTwinList as I } from "@knime/kds-components";
3
- import { m as r } from "./index-Blg1O3Fz.js";
4
- import { a as M, u as v } from "./usePossibleValues-CXVLf00v.js";
5
- import { t as F } from "./toKdsPossibleValues-BklBg3gG.js";
6
- import { u as L } from "./useUnknownValuesInTwinlist-uXOCQkVS.js";
7
- const K = /* @__PURE__ */ k({
8
- __name: "ManualTwinlistControl",
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(l) {
20
- const u = l, { excludedLabel: m, includedLabel: b } = M(
21
- i(u, "control")
22
- ), { possibleValues: c } = v(
23
- i(u, "control")
24
- ), p = d(
25
- () => F(c.value ?? [])
26
- ), { selectedAndDeselected: o, setCurrentManualFilter: f } = L({
27
- data: d(() => ({ manualFilter: u.control.data })),
28
- possibleValueIds: d(
29
- () => c.value?.map(({ id: e }) => e) ?? null
30
- )
31
- }), y = (e) => {
32
- const s = r(u.control.data, e);
33
- u.changeValue(s), f(s);
34
- };
35
- let n = null;
36
- const g = () => {
37
- if (n !== null) {
38
- const e = n;
39
- n = null, y(e);
40
- }
41
- }, t = (e) => {
42
- n === null ? (n = e, queueMicrotask(g)) : n = r(
43
- n,
44
- e
45
- );
46
- }, x = (e) => {
47
- t({ manuallySelected: e });
48
- }, w = (e) => {
49
- t({ manuallyDeselected: e });
50
- }, h = (e) => {
51
- e !== null && t({ includeUnknownColumns: e });
52
- };
53
- return (e, s) => (C(), V(a(I), U(e.$attrs, {
54
- id: l.labelForId,
55
- ariaLabel: l.control.label,
56
- disabled: l.disabled,
57
- "manually-included": a(o).selected ?? [],
58
- "manually-excluded": a(o).deselected ?? [],
59
- "include-unknown-values": l.control.data.includeUnknownColumns,
60
- "possible-values": p.value,
61
- loading: a(o).selected === null,
62
- "exclude-label": a(m),
63
- "include-label": a(b),
64
- error: l.error,
65
- "sub-text": l.subText,
66
- "onUpdate:manuallyIncluded": x,
67
- "onUpdate:manuallyExcluded": w,
68
- "onUpdate:includeUnknownValues": h
69
- }), null, 16, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "include-unknown-values", "possible-values", "loading", "exclude-label", "include-label", "error", "sub-text"]));
70
- }
71
- });
72
- export {
73
- K as default
74
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js";
2
- export {
3
- f as default
4
- };
@@ -1,159 +0,0 @@
1
- import { defineComponent as A, toRef as h, computed as u, openBlock as B, createBlock as S, unref as c, mergeProps as N } from "vue";
2
- import { kdsTwinListSearchMode as r, KdsTwinList as G } from "@knime/kds-components";
3
- import { m as g } from "./index-Blg1O3Fz.js";
4
- import { u as X, a as Y } from "./usePossibleValues-CXVLf00v.js";
5
- import { t as W } from "./toKdsPossibleValues-BklBg3gG.js";
6
- import { u as q } from "./useUnknownValuesInTwinlist-uXOCQkVS.js";
7
- const O = /* @__PURE__ */ A({
8
- __name: "MultimodeTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: {},
12
- changeValue: {},
13
- disabled: { type: Boolean },
14
- error: { type: Boolean },
15
- subText: {},
16
- onRegisterValidation: {},
17
- labelForId: {},
18
- showUnknownValues: { type: Boolean, default: !1 },
19
- showTypeFilter: { type: Boolean, default: !1 }
20
- },
21
- setup(l) {
22
- const a = l, { possibleValues: i } = X(
23
- h(a, "control")
24
- ), { excludedLabel: T, includedLabel: x } = Y(
25
- h(a, "control")
26
- ), { selectedAndDeselected: p, setCurrentManualFilter: C } = q({
27
- data: u(() => a.control.data),
28
- possibleValueIds: u(
29
- () => i.value?.map(({ id: e }) => e) ?? null
30
- )
31
- }), s = (e) => {
32
- const t = g(a.control.data, e);
33
- a.changeValue(t), C(t.manualFilter);
34
- }, U = u(
35
- () => W(i.value ?? [])
36
- );
37
- let o = null;
38
- const w = () => {
39
- if (o !== null) {
40
- const e = o;
41
- o = null, s(e);
42
- }
43
- }, m = (e) => {
44
- o === null ? (o = e, queueMicrotask(w)) : o = g(
45
- o,
46
- e
47
- );
48
- }, M = (e) => {
49
- m({
50
- manualFilter: { manuallySelected: e },
51
- selected: e
52
- });
53
- }, k = (e) => {
54
- m({
55
- manualFilter: { manuallyDeselected: e }
56
- });
57
- }, E = (e) => {
58
- e !== null && m({
59
- manualFilter: { includeUnknownColumns: e }
60
- });
61
- }, y = u(() => {
62
- switch (a.control.data.mode.toUpperCase()) {
63
- case "WILDCARD":
64
- case "REGEX":
65
- return r.PATTERN;
66
- case "TYPE":
67
- return r.TYPE;
68
- default:
69
- return r.MANUAL;
70
- }
71
- }), b = u(
72
- () => a.control.data.mode.toUpperCase() === "REGEX"
73
- ), v = (e) => {
74
- let t;
75
- switch (e) {
76
- case r.PATTERN:
77
- t = b.value ? "REGEX" : "WILDCARD";
78
- break;
79
- case r.TYPE:
80
- t = "TYPE";
81
- break;
82
- default:
83
- t = "MANUAL";
84
- }
85
- s({ mode: t });
86
- }, F = (e) => {
87
- y.value === r.PATTERN && s({ mode: e ? "REGEX" : "WILDCARD" });
88
- }, R = (e) => {
89
- s({ patternFilter: { pattern: e } });
90
- }, D = (e) => {
91
- s({ patternFilter: { isInverted: e } });
92
- }, I = (e) => {
93
- s({ patternFilter: { isCaseSensitive: e } });
94
- }, P = () => {
95
- const e = a.control.data.typeFilter;
96
- if (!e)
97
- return [];
98
- const t = e.selectedTypes, n = new Map(
99
- (e.typeDisplays ?? []).map(({ id: d, text: L }) => [d, L])
100
- );
101
- return t.map((d) => ({
102
- id: d,
103
- text: n.get(d) || d
104
- }));
105
- }, f = u(() => {
106
- if (!a.showTypeFilter)
107
- return;
108
- const e = /* @__PURE__ */ new Map();
109
- return i.value?.forEach((t) => {
110
- t.type && e.set(t.type.id, t.type.text);
111
- }), P().forEach(({ id: t, text: n }) => {
112
- e.has(t) || e.set(t, n);
113
- }), [...e.entries()].map(([t, n]) => ({
114
- id: t,
115
- text: n,
116
- accessory: { type: "dataType", name: t }
117
- }));
118
- }), V = (e) => {
119
- const t = (f.value ?? []).filter((n) => e.includes(n.id)).map(({ id: n, text: d }) => ({ id: n, text: d }));
120
- s({
121
- typeFilter: { selectedTypes: e, typeDisplays: t }
122
- });
123
- };
124
- return (e, t) => (B(), S(c(G), N(e.$attrs, {
125
- id: l.labelForId,
126
- ariaLabel: l.control.label,
127
- disabled: l.disabled,
128
- mode: y.value,
129
- "manually-included": c(p).selected ?? [],
130
- "manually-excluded": c(p).deselected ?? [],
131
- "include-unknown-values": a.showUnknownValues ? a.control.data.manualFilter.includeUnknownColumns : null,
132
- pattern: l.control.data.patternFilter.pattern,
133
- "case-sensitive": l.control.data.patternFilter.isCaseSensitive,
134
- "exclude-matches": l.control.data.patternFilter.isInverted,
135
- "use-regex": b.value,
136
- "selected-types": l.control.data.typeFilter?.selectedTypes ?? [],
137
- "possible-values": U.value,
138
- "filter-types": f.value,
139
- "enable-pattern-filter": !0,
140
- loading: c(p).selected === null,
141
- "exclude-label": c(T),
142
- "include-label": c(x),
143
- error: l.error,
144
- "sub-text": l.subText,
145
- "onUpdate:mode": v,
146
- "onUpdate:manuallyIncluded": M,
147
- "onUpdate:manuallyExcluded": k,
148
- "onUpdate:includeUnknownValues": E,
149
- "onUpdate:pattern": R,
150
- "onUpdate:caseSensitive": I,
151
- "onUpdate:excludeMatches": D,
152
- "onUpdate:useRegex": F,
153
- "onUpdate:selectedTypes": V
154
- }), null, 16, ["id", "ariaLabel", "disabled", "mode", "manually-included", "manually-excluded", "include-unknown-values", "pattern", "case-sensitive", "exclude-matches", "use-regex", "selected-types", "possible-values", "filter-types", "loading", "exclude-label", "include-label", "error", "sub-text"]));
155
- }
156
- });
157
- export {
158
- O as _
159
- };
@@ -1,25 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as a } from "vue";
2
- import { _ as r } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js";
3
- const i = /* @__PURE__ */ n({
4
- __name: "NameFilter",
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(l) {
16
- return (e, s) => (o(), t(r, a({ ...e.$props, ...e.$attrs }, {
17
- "unknown-values-text": "Any unknown value",
18
- "show-unknown-values": "",
19
- "empty-state-label": "No values in this list"
20
- }), null, 16));
21
- }
22
- });
23
- export {
24
- i as default
25
- };
@@ -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 i = /* @__PURE__ */ o({
4
- __name: "NumberControl",
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: "double" }), null, 16));
17
- }
18
- });
19
- export {
20
- i as default
21
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as c, computed as r, openBlock as m, createBlock as d, unref as p } from "vue";
2
- import { KdsNumberInput as x } from "@knime/kds-components";
3
- import { u as b } from "./useBuiltinValidations-_4IBMopQ.js";
4
- const E = 1, v = 0.1, T = /* @__PURE__ */ c({
5
- __name: "NumberControlBase",
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
- type: {}
16
- },
17
- setup(t) {
18
- const o = t, i = r(
19
- () => o.control.uischema.options?.stepSize ?? (o.type === "integer" ? E : v)
20
- ), l = b(
21
- {
22
- min: ({ min: e, isExclusive: a }) => (n) => isNaN(n) || (a ? n > e : n >= e),
23
- max: ({ max: e, isExclusive: a }) => (n) => isNaN(n) || (a ? n < e : n <= e)
24
- },
25
- o
26
- ), s = r(() => {
27
- const e = l.value.min;
28
- if (!(!e || e.min === null))
29
- return e.min + (e.isExclusive ? i.value : 0);
30
- }), u = r(() => {
31
- const e = l.value.max;
32
- if (!(!e || e.max === null))
33
- return e.max - (e.isExclusive ? i.value : 0);
34
- });
35
- return (e, a) => (m(), d(p(x), {
36
- id: t.labelForId,
37
- ariaLabel: t.control.label,
38
- class: "number-input",
39
- disabled: t.disabled,
40
- "model-value": t.control.data,
41
- min: s.value,
42
- max: u.value,
43
- step: i.value,
44
- error: t.error,
45
- "sub-text": t.subText,
46
- "onUpdate:modelValue": t.changeValue
47
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "min", "max", "step", "error", "sub-text", "onUpdate:modelValue"]));
48
- }
49
- });
50
- export {
51
- T as _
52
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as s, computed as d, openBlock as u, createBlock as i, unref as t } from "vue";
2
- import { KdsDropdown as c } from "@knime/kds-components";
3
- import { o as p } from "./index-Blg1O3Fz.js";
4
- const x = /* @__PURE__ */ s({
5
- __name: "OneOfDropdown",
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, n = o.control.schema?.oneOf?.map(p) ?? [], a = d({
18
- get: () => o.control.data ?? "",
19
- set: o.changeValue
20
- });
21
- return (b, l) => (u(), i(t(c), {
22
- id: e.labelForId,
23
- modelValue: a.value,
24
- "onUpdate:modelValue": l[0] || (l[0] = (r) => a.value = r),
25
- "possible-values": t(n),
26
- ariaLabel: e.control.label,
27
- disabled: e.disabled,
28
- error: e.error,
29
- "sub-text": e.subText
30
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error", "sub-text"]));
31
- }
32
- });
33
- export {
34
- x as default
35
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as v, computed as l, ref as r, openBlock as g, createElementBlock as f, createVNode as m, unref as b, renderSlot as C } from "vue";
2
- import { KdsProgressButton as y } from "@knime/kds-components";
3
- import { v as B, _ as I } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const F = 1e3, S = "auto-configure", T = /* @__PURE__ */ v({
5
- __name: "ProgressButtonControl",
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
- const a = o, u = l(
18
- () => a.control.uischema.options.triggerId
19
- ), i = l(
20
- () => a.control.uischema.options?.icon ?? S
21
- ), c = B("trigger"), e = r("default"), n = r(!1), d = async () => {
22
- e.value = "progress";
23
- try {
24
- await c({ id: u.value }), e.value = "success", setTimeout(() => {
25
- e.value = "default";
26
- }, F);
27
- } catch {
28
- e.value = "default";
29
- }
30
- };
31
- return (p, t) => (g(), f("div", {
32
- class: "progress-button-input",
33
- onMouseenter: t[1] || (t[1] = (s) => n.value = !0),
34
- onMouseleave: t[2] || (t[2] = (s) => n.value = !1)
35
- }, [
36
- m(b(y), {
37
- state: e.value,
38
- "onUpdate:state": t[0] || (t[0] = (s) => e.value = s),
39
- variant: "outlined",
40
- size: "small",
41
- disabled: !o.control.enabled,
42
- label: o.control.label,
43
- "leading-icon": i.value,
44
- onClick: d
45
- }, null, 8, ["state", "disabled", "label", "leading-icon"]),
46
- C(p.$slots, "buttons", { hover: n.value }, void 0, !0)
47
- ], 32));
48
- }
49
- }), x = /* @__PURE__ */ I(T, [["__scopeId", "data-v-f880d1e8"]]);
50
- export {
51
- x as default
52
- };
@@ -1,58 +0,0 @@
1
- import { defineComponent as _, computed as r, openBlock as n, createElementBlock as t, Fragment as c, renderList as b, createVNode as v, unref as V, createElementVNode as i, normalizeClass as x, createCommentVNode as y } from "vue";
2
- import { KdsRadioButton as B } from "@knime/kds-components";
3
- import { _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const L = ["innerHTML"], M = ["innerHTML"], T = ["innerHTML"], g = /* @__PURE__ */ _({
5
- __name: "RadioButtonsWithDescriptionControl",
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(l) {
17
- const o = l, u = r(() => o.control.schema.oneOf?.map(({ const: s, title: e, price: f, description: h }) => ({
18
- id: s,
19
- text: e,
20
- price: f,
21
- description: h
22
- })) || []), p = r(() => !o.control.enabled), d = r(
23
- () => o.control.uischema.options?.footnote || null
24
- ), m = (a) => {
25
- o.changeValue(a);
26
- };
27
- return (a, s) => (n(), t(c, null, [
28
- (n(!0), t(c, null, b(u.value, (e) => (n(), t("label", {
29
- key: `radio-${e.id}`,
30
- class: "radio-wrapper"
31
- }, [
32
- v(V(B), {
33
- class: "radio-button",
34
- "model-value": l.control.data === e.id,
35
- text: e.text,
36
- disabled: p.value,
37
- "onUpdate:modelValue": () => m(e.id)
38
- }, null, 8, ["model-value", "text", "disabled", "onUpdate:modelValue"]),
39
- i("div", {
40
- class: "description",
41
- innerHTML: e.description
42
- }, null, 8, L),
43
- i("div", {
44
- class: x(["price", { selected: l.control.data === e.id }]),
45
- innerHTML: e.price
46
- }, null, 10, M)
47
- ]))), 128)),
48
- d.value ? (n(), t("div", {
49
- key: 0,
50
- class: "footnote",
51
- innerHTML: d.value
52
- }, null, 8, T)) : y("", !0)
53
- ], 64));
54
- }
55
- }), R = /* @__PURE__ */ C(g, [["__scopeId", "data-v-d327df7b"]]);
56
- export {
57
- R as default
58
- };
@@ -1,21 +0,0 @@
1
- import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js";
3
- const s = /* @__PURE__ */ o({
4
- __name: "RadioControl",
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(p) {
16
- return (e, l) => (n(), t(a, r(e.$props, { type: "radio" }), null, 16));
17
- }
18
- });
19
- export {
20
- s as default
21
- };
@@ -1,57 +0,0 @@
1
- import { defineComponent as v, useAttrs as p, computed as d, ref as f, toRef as h, onMounted as V, openBlock as n, createElementBlock as x, Fragment as y, createBlock as r, unref as o, mergeProps as i, createCommentVNode as g } from "vue";
2
- import { KdsValueSwitch as B, KdsRadioButtonGroup as F } from "@knime/kds-components";
3
- import { o as k } from "./index-Blg1O3Fz.js";
4
- import { u as O } from "./usePossibleValues-CXVLf00v.js";
5
- const T = /* @__PURE__ */ v({
6
- inheritAttrs: !1,
7
- __name: "RadioControlBase",
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
- type: {}
18
- },
19
- setup(e) {
20
- const s = p(), t = e, c = d(() => t.control.uischema.options?.radioLayout), m = (l) => ({
21
- id: l.id,
22
- text: l.text,
23
- ...l.disabled ? { disabled: !0 } : {}
24
- }), u = f(null), { possibleValues: b } = O(h(t, "control"), {
25
- defaultOnNonProvided: null
26
- }), a = d(
27
- () => (b.value ?? u.value)?.map(m)
28
- );
29
- return V(() => {
30
- u.value = t.control?.schema?.oneOf ? t.control.schema.oneOf.map(k) : null;
31
- }), (l, C) => a.value ? (n(), x(y, { key: 0 }, [
32
- t.type === "valueSwitch" ? (n(), r(o(B), i({ key: 0 }, o(s), {
33
- id: e.labelForId,
34
- "possible-values": a.value,
35
- disabled: e.disabled,
36
- "model-value": e.control.data,
37
- error: e.error,
38
- "sub-text": e.subText,
39
- size: "small",
40
- variant: "muted",
41
- "onUpdate:modelValue": e.changeValue
42
- }), null, 16, ["id", "possible-values", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"])) : (n(), r(o(F), i({ key: 1 }, o(s), {
43
- id: e.labelForId,
44
- "possible-values": a.value,
45
- alignment: c.value,
46
- disabled: e.disabled,
47
- "model-value": e.control.data,
48
- error: e.error,
49
- "sub-text": e.subText,
50
- "onUpdate:modelValue": e.changeValue
51
- }), null, 16, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"]))
52
- ], 64)) : g("", !0);
53
- }
54
- });
55
- export {
56
- T as _
57
- };
@@ -1,70 +0,0 @@
1
- import { defineComponent as f, computed as o, openBlock as a, createElementBlock as n, withDirectives as V, createVNode as s, unref as l, createCommentVNode as T } from "vue";
2
- import { KdsNumberInput as g, KdsDonutChart as B, vKdsTooltip as C } from "@knime/kds-components";
3
- import { _ as D } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
4
- const I = { class: "input-wrapper" }, w = {
5
- key: 0,
6
- class: "chart"
7
- }, F = /* @__PURE__ */ f({
8
- __name: "ResourceControlBase",
9
- props: {
10
- donutTitle: {},
11
- donutDescription: {},
12
- control: {},
13
- handleChange: { type: Function },
14
- changeValue: { type: Function },
15
- disabled: { type: Boolean },
16
- error: { type: Boolean },
17
- subText: {},
18
- onRegisterValidation: { type: Function },
19
- labelForId: {}
20
- },
21
- setup(t) {
22
- const e = t, c = o(
23
- () => e.control.uischema.options?.modelMax ?? !1
24
- ), u = o(
25
- // if currentUsage is supplied the donut chart should use that since the data will model something else (e.g. the maximum usage)
26
- () => e.control.uischema.options?.currentUsage ?? e.control.data
27
- ), i = o(
28
- () => e.control.schema.secondaryValue ?? 0
29
- ), r = o(
30
- () => c.value ? e.control.data : e.control.uischema.options?.donutMax ?? e.control.schema.maximum ?? 1 / 0
31
- ), m = o(
32
- () => e.control.uischema.options?.disabledTooltip || ""
33
- ), d = o(
34
- () => e.disabled ? m.value : ""
35
- ), p = o(() => e.control.uischema.options?.animate ?? !0), v = o(
36
- () => e.control.uischema.options?.showDonut ?? !0
37
- ), h = o(() => e.control.schema.minimum ?? 0), x = o(() => e.control.schema.maximum ?? 1 / 0), b = o(() => e.control.uischema.options?.step ?? 1), y = o(() => e.control.uischema.options?.unit ?? "");
38
- return (M, R) => (a(), n("div", null, [
39
- V((a(), n("div", I, [
40
- s(l(g), {
41
- ariaLabel: t.control.label,
42
- "model-value": t.control.data,
43
- min: h.value,
44
- max: x.value,
45
- step: b.value,
46
- unit: y.value,
47
- disabled: t.disabled,
48
- error: t.error,
49
- "sub-text": t.subText,
50
- "onUpdate:modelValue": t.changeValue
51
- }, null, 8, ["ariaLabel", "model-value", "min", "max", "step", "unit", "disabled", "error", "sub-text", "onUpdate:modelValue"]),
52
- v.value ? (a(), n("div", w, [
53
- s(l(B), {
54
- value: u.value,
55
- "secondary-value": i.value,
56
- "max-value": r.value,
57
- animate: p.value,
58
- label: t.donutTitle,
59
- "sub-text": t.donutDescription
60
- }, null, 8, ["value", "secondary-value", "max-value", "animate", "label", "sub-text"])
61
- ])) : T("", !0)
62
- ])), [
63
- [l(C), d.value]
64
- ])
65
- ]));
66
- }
67
- }), N = /* @__PURE__ */ D(F, [["__scopeId", "data-v-3a916a8e"]]);
68
- export {
69
- N as R
70
- };