@knime/jsonforms 1.4.1 → 1.5.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 (143) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AnyOfTwinlist-0hW9G7sf.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
  3. package/dist/{BaseButton-DYMQRyQo.js → BaseButton-8vDrj52e.js} +1 -1
  4. package/dist/{Button-BR-eqILd.js → Button-Bngb_I70.js} +2 -2
  5. package/dist/{Checkbox-9hNjHDpy.js → Checkbox-DSfVQlDb.js} +1 -1
  6. package/dist/CheckboxControl-D85aBRJ6.js +41 -0
  7. package/dist/{Checkboxes-MxUKgTL4.js → Checkboxes-DUJ3v5jU.js} +2 -2
  8. package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
  9. package/dist/{ColumnFilter-B05Q5-4y.js → ColumnFilter-BzCVLydy.js} +7 -5
  10. package/dist/{ColumnSelect-DZDQRiA5.js → ColumnSelect-DK7NqI5Q.js} +21 -18
  11. package/dist/{ComboBoxControl-CaHVCAiu.js → ComboBoxControl-CEXpJltI.js} +17 -14
  12. package/dist/{DateControl-fKUFzQr8.js → DateControl-CjRiy7d1.js} +6 -4
  13. package/dist/{DateTimeControl-BrwQ4jAx.js → DateTimeControl-CaDuNC_u.js} +18 -15
  14. package/dist/{DateTimeFormatPickerControl-CZY7EboY.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
  15. package/dist/{DateTimeInput-hVg3JWxI.js → DateTimeInput-96g3nCth.js} +7 -7
  16. package/dist/{Dropdown-C_6yKbqc.js → Dropdown-CQKvBlYB.js} +4 -4
  17. package/dist/{DropdownControl-DNcQIzCP.js → DropdownControl-B0x5hFXM.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
  19. package/dist/{FunctionButton-ByT1Atrb.js → FunctionButton-CapvFBi0.js} +2 -2
  20. package/dist/HorizontalLayout-k7vmjzLP.js +25 -0
  21. package/dist/{InputField-zQvLeNOh.js → InputField-DhyBnTBT.js} +1 -1
  22. package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
  23. package/dist/{IntervalControl-CWBmbjUk.js → IntervalControl-DhujNXBe.js} +37 -35
  24. package/dist/{MultiselectListBox-D18KQA8Z.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
  25. package/dist/{NameFilter-D6GRh9kP.js → NameFilter-DJhwpboP.js} +7 -5
  26. package/dist/NumberControl-CU94dpBh.js +20 -0
  27. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js +60 -0
  28. package/dist/{NumberInput-DzpQc_Qg.js → NumberInput-Io3ZSWBF.js} +1 -1
  29. package/dist/OneOfDropdown-C04RF5gK.js +35 -0
  30. package/dist/RadioControl-Ni6f_qCw.js +24 -0
  31. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D7yWH5sv.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
  32. package/dist/{RichTextControl-TMco-1sx.js → RichTextControl-hHIvuaDd.js} +9 -7
  33. package/dist/{SectionLayout-M0zSsGYd.js → SectionLayout-DEKmJPJl.js} +2 -2
  34. package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
  35. package/dist/{SimpleTwinlistControl-BWH9IcaM.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
  36. package/dist/SortListControl-CsrP-QT8.js +366 -0
  37. package/dist/{TextAreaControl-C2gBXg91.js → TextAreaControl-CNH7s35f.js} +25 -22
  38. package/dist/{TextControl-DJ1eQ6Yr.js → TextControl-C1ZKoreI.js} +1 -1
  39. package/dist/TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js +87 -0
  40. package/dist/TimeControl-Bwt1kRki.js +33 -0
  41. package/dist/{TwinlistControl-DMjXrTBS.js → TwinlistControl-DJ88Q4I-.js} +21 -18
  42. package/dist/{TwinlistLoadingInfo-C_JMBMqE.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
  43. package/dist/{ValueSwitch--IDkMn2T.js → ValueSwitch-B08Mz10g.js} +1 -1
  44. package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
  45. package/dist/{VerticalLayout-CWTnAzTT.js → VerticalLayout-ptrtpOrD.js} +2 -2
  46. package/dist/{VerticalLayoutBase-DHFsRdUV.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
  47. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js} +5705 -5674
  48. package/dist/ZonedDateTimeControl-70XjGsqQ.js +70 -0
  49. package/dist/{_baseAssignValue-CV6Gjcdp.js → _baseAssignValue-BPMLYzDH.js} +1 -1
  50. package/dist/{_baseEach-BC_75zAM.js → _baseEach-B8N_Gx8P.js} +2 -2
  51. package/dist/{_baseIsEqual-Dy0dFQAX.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
  52. package/dist/{_baseIteratee-BHjwOYqh.js → _baseIteratee-DvBmrhnf.js} +3 -3
  53. package/dist/{_getTag-Ce_JffFU.js → _getTag-DS8v0_uf.js} +33 -34
  54. package/dist/isSymbol-OFe5xy2f.js +34 -0
  55. package/dist/knime-jsonforms.css +1 -1
  56. package/dist/knime-jsonforms.js +26 -26
  57. package/dist/{localTimeUtils-B-ENHrsI.js → localTimeUtils-CzJjTpP3.js} +1 -1
  58. package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
  59. package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
  60. package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
  61. package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
  62. package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
  63. package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
  64. package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
  65. package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
  66. package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
  68. package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
  69. package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
  70. package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
  71. package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
  72. package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
  73. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
  74. package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
  75. package/dist/src/renderers/defaultRenderers.d.ts +299 -247
  76. package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
  77. package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
  78. package/dist/src/renderers/integerRenderer.d.ts +1 -3
  79. package/dist/src/renderers/intervalRenderer.d.ts +1 -3
  80. package/dist/src/renderers/localDateRenderer.d.ts +1 -3
  81. package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
  82. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
  83. package/dist/src/renderers/numberRenderer.d.ts +1 -3
  84. package/dist/src/renderers/radioRenderer.d.ts +1 -3
  85. package/dist/src/renderers/richTextRenderer.d.ts +1 -3
  86. package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
  87. package/dist/src/renderers/sortListRenderer.d.ts +48 -0
  88. package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
  89. package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
  90. package/dist/src/renderers/textRenderer.d.ts +48 -0
  91. package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
  92. package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
  93. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
  94. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
  95. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
  96. package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
  97. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
  98. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  99. package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
  100. package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
  101. package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
  102. package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
  103. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
  104. package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
  105. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
  106. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
  107. package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
  108. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
  109. package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
  110. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
  111. package/dist/src/uiComponents/index.d.ts +1 -1
  112. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
  113. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  114. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
  115. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  116. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
  117. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
  118. package/dist/{svgWithTitle-VPyre7by.js → svgWithTitle-YSv0CfBl.js} +1 -1
  119. package/dist/testUtils/component.d.ts +70 -7
  120. package/dist/testUtils/renderer.d.ts +1 -1
  121. package/dist/testing.js +203 -199
  122. package/dist/toString-DkbNkGT4.js +25 -0
  123. package/package.json +1 -1
  124. package/dist/CheckboxControl-DtkgVAey.js +0 -42
  125. package/dist/CheckboxesControl-liJGUpRw.js +0 -38
  126. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-m-g4D1dr.js +0 -226
  127. package/dist/ErrorMessage-DQT5FZlf.js +0 -23
  128. package/dist/HorizontalLayout-D1PnPnoE.js +0 -30
  129. package/dist/IntegerControl-D6kUQaXd.js +0 -18
  130. package/dist/NumberControl-CqwAwLo_.js +0 -18
  131. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js +0 -42
  132. package/dist/OneOfDropdown-CIeXHQcC.js +0 -32
  133. package/dist/RadioControl-D64PZUts.js +0 -22
  134. package/dist/SimpleButtonControl-DevNyR5x.js +0 -58
  135. package/dist/SortListControl-BLeXo6HS.js +0 -356
  136. package/dist/TextControl.vue_vue_type_script_setup_true_lang-BHuggcaD.js +0 -69
  137. package/dist/TimeControl-DOpylHS3.js +0 -30
  138. package/dist/ValueSwitchControl-BVgE9bjw.js +0 -18
  139. package/dist/ZonedDateTimeControl-B8ORteJg.js +0 -66
  140. package/dist/isSymbol-DwnNqH7F.js +0 -8
  141. package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
  142. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
  143. package/dist/toString-B2Sp1LQh.js +0 -26
@@ -0,0 +1,25 @@
1
+ import { S as s, i as g } from "./isSymbol-OFe5xy2f.js";
2
+ function l(r, n) {
3
+ for (var t = -1, i = r == null ? 0 : r.length, o = Array(i); ++t < i; )
4
+ o[t] = n(r[t], t, r);
5
+ return o;
6
+ }
7
+ var u = Array.isArray, e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
8
+ function y(r) {
9
+ if (typeof r == "string")
10
+ return r;
11
+ if (u(r))
12
+ return l(r, y) + "";
13
+ if (g(r))
14
+ return f ? f.call(r) : "";
15
+ var n = r + "";
16
+ return n == "0" && 1 / r == -1 / 0 ? "-0" : n;
17
+ }
18
+ function m(r) {
19
+ return r == null ? "" : y(r);
20
+ }
21
+ export {
22
+ l as a,
23
+ u as i,
24
+ m as t
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "homepage": "https://knime.github.io/webapps-common/",
6
6
  "license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
@@ -1,42 +0,0 @@
1
- import { defineComponent as a, ref as s, openBlock as d, createElementBlock as u, createVNode as l, unref as p, withCtx as i, createTextVNode as c, toDisplayString as m, renderSlot as n } from "vue";
2
- import { E as f } from "./ErrorMessage-DQT5FZlf.js";
3
- import { C as b } from "./Checkbox-9hNjHDpy.js";
4
- import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
5
- const h = /* @__PURE__ */ a({
6
- __name: "CheckboxControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- labelForId: {}
13
- },
14
- setup(C) {
15
- const r = s(!1);
16
- return (e, o) => (d(), u("div", {
17
- class: "checkbox-input",
18
- onMouseover: o[0] || (o[0] = (t) => r.value = !0),
19
- onMouseleave: o[1] || (o[1] = (t) => r.value = !1)
20
- }, [
21
- l(p(b), {
22
- class: "checkbox",
23
- disabled: e.disabled,
24
- "model-value": e.control.data,
25
- "onUpdate:modelValue": e.changeValue
26
- }, {
27
- default: i(() => [
28
- c(m(e.control.label) + " ", 1),
29
- n(e.$slots, "icon", {}, void 0, !0)
30
- ]),
31
- _: 3
32
- }, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
33
- n(e.$slots, "buttons", { hover: r.value }, void 0, !0),
34
- l(f, {
35
- error: e.control.errors
36
- }, null, 8, ["error"])
37
- ], 32));
38
- }
39
- }), $ = /* @__PURE__ */ v(h, [["__scopeId", "data-v-eb89a692"]]);
40
- export {
41
- $ as default
42
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as t, computed as s, ref as c, onMounted as r, openBlock as d, createBlock as p, unref as u, createCommentVNode as m } from "vue";
2
- import { o as i } from "./index-hm05O8UX.js";
3
- import { C as b } from "./Checkboxes-MxUKgTL4.js";
4
- import { _ as h } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
5
- const f = /* @__PURE__ */ t({
6
- __name: "CheckboxesControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- labelForId: {}
13
- },
14
- setup(n) {
15
- const a = n, l = s(
16
- () => {
17
- var e;
18
- return (e = a.control.uischema.options) == null ? void 0 : e.checkboxLayout;
19
- }
20
- ), o = c(null);
21
- return r(() => {
22
- var e;
23
- o.value = (e = a.control.schema.anyOf) == null ? void 0 : e.map(i);
24
- }), (e, v) => o.value ? (d(), p(u(b), {
25
- key: 0,
26
- id: e.labelForId,
27
- class: "checkboxes",
28
- "possible-values": o.value,
29
- alignment: l.value,
30
- disabled: e.disabled,
31
- "model-value": e.control.data,
32
- "onUpdate:modelValue": e.changeValue
33
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : m("", !0);
34
- }
35
- }), y = /* @__PURE__ */ h(f, [["__scopeId", "data-v-d9491213"]]);
36
- export {
37
- y as default
38
- };
@@ -1,226 +0,0 @@
1
- import { defineComponent as H, computed as c, openBlock as y, createBlock as w, unref as h, mergeProps as A, withCtx as V, createCommentVNode as O, ref as x, onMounted as K, onBeforeUnmount as G, normalizeProps as J, renderSlot as T } from "vue";
2
- import { _ as Q, k as D, u as X, L as Y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- import { w as Z } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
- import { u as j } from "./useHideOnNull-CCfNP3O7.js";
5
- import { D as ee } from "./Dropdown-C_6yKbqc.js";
6
- import { L as oe } from "./svgWithTitle-VPyre7by.js";
7
- import { b as ne } from "./_baseAssignValue-CV6Gjcdp.js";
8
- import { e as te, c as ae, t as le, i as se } from "./_getTag-Ce_JffFU.js";
9
- import { i as N } from "./isObject-B53jY8Qg.js";
10
- import { C as re } from "./Checkbox-9hNjHDpy.js";
11
- var ie = Object.prototype, ue = ie.hasOwnProperty;
12
- function de(o, e, l) {
13
- var s = o[e];
14
- (!(ue.call(o, e) && te(s, l)) || l === void 0 && !(e in o)) && ne(o, e, l);
15
- }
16
- function ce(o, e, l, s) {
17
- if (!N(o))
18
- return o;
19
- e = ae(e, o);
20
- for (var u = -1, r = e.length, g = r - 1, d = o; d != null && ++u < r; ) {
21
- var a = le(e[u]), i = l;
22
- if (a === "__proto__" || a === "constructor" || a === "prototype")
23
- return o;
24
- if (u != g) {
25
- var v = d[a];
26
- i = void 0, i === void 0 && (i = N(v) ? v : se(e[u + 1]) ? [] : {});
27
- }
28
- de(d, a, i), d = d[a];
29
- }
30
- return o;
31
- }
32
- function pe(o, e, l) {
33
- return o == null ? o : ce(o, e, l);
34
- }
35
- var t = [];
36
- for (var I = 0; I < 256; ++I)
37
- t.push((I + 256).toString(16).slice(1));
38
- function me(o, e = 0) {
39
- return (t[o[e + 0]] + t[o[e + 1]] + t[o[e + 2]] + t[o[e + 3]] + "-" + t[o[e + 4]] + t[o[e + 5]] + "-" + t[o[e + 6]] + t[o[e + 7]] + "-" + t[o[e + 8]] + t[o[e + 9]] + "-" + t[o[e + 10]] + t[o[e + 11]] + t[o[e + 12]] + t[o[e + 13]] + t[o[e + 14]] + t[o[e + 15]]).toLowerCase();
40
- }
41
- var U, he = new Uint8Array(16);
42
- function ge() {
43
- if (!U && (U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
44
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
45
- return U(he);
46
- }
47
- var ve = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
48
- const B = {
49
- randomUUID: ve
50
- };
51
- function be(o, e, l) {
52
- if (B.randomUUID && !o)
53
- return B.randomUUID();
54
- o = o || {};
55
- var s = o.random || (o.rng || ge)();
56
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, me(s);
57
- }
58
- const fe = ({ view: o, model: e }) => ({
59
- ...o,
60
- ...e
61
- }), Ve = /* @__PURE__ */ H({
62
- __name: "LoadingDropdown",
63
- props: {
64
- possibleValues: {},
65
- modelValue: {},
66
- id: {},
67
- ariaLabel: {},
68
- disabled: { type: Boolean }
69
- },
70
- setup(o) {
71
- const e = o, l = c(() => {
72
- const { possibleValues: r } = e;
73
- return r === null ? "Loading" : r.length > 0 ? "No value selected" : "No values present";
74
- }), s = c(() => e.possibleValues === null ? "" : e.modelValue), u = c(
75
- () => e.disabled || e.possibleValues === null || e.possibleValues.length === 0
76
- );
77
- return (r, g) => (y(), w(h(ee), A({ ...r.$props, ...r.$attrs }, {
78
- "model-value": s.value,
79
- disabled: u.value,
80
- "possible-values": r.possibleValues ?? [],
81
- placeholder: l.value,
82
- compact: ""
83
- }), {
84
- "icon-right": V(() => [
85
- r.possibleValues === null ? (y(), w(h(oe), {
86
- key: 0,
87
- class: "loading-icon"
88
- })) : O("", !0)
89
- ]),
90
- _: 1
91
- }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
92
- }
93
- }), ye = /* @__PURE__ */ Q(Ve, [["__scopeId", "data-v-cf6ba18c"]]), Se = /* @__PURE__ */ H({
94
- __name: "DropdownControl",
95
- props: {
96
- control: {},
97
- handleChange: {},
98
- changeValue: {},
99
- disabled: { type: Boolean },
100
- labelForId: {},
101
- asyncInitialOptions: { default: null },
102
- controlDataToDropdownValue: { type: Function, default: (o) => o },
103
- dropdownValueToControlData: { type: Function, default: (o) => o }
104
- },
105
- setup(o) {
106
- const e = o, l = D("getPossibleValuesFromUiSchema"), s = D("registerWatcher"), u = D("getData"), r = D("sendAlert"), g = x(null), d = c(
107
- () => {
108
- var n;
109
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
110
- }
111
- ), a = Z(
112
- X(d.value, null),
113
- e.control
114
- ), i = x(e.control.data), v = (n) => e.dropdownValueToControlData(
115
- n.length > 0 ? n[0].id : null
116
- ), { showCheckbox: E, showControl: R, checkboxProps: $ } = j(
117
- {
118
- control: c(() => e.control),
119
- disabled: c(() => e.disabled),
120
- controlElement: g
121
- },
122
- {
123
- setDefault: () => {
124
- !i.value && a.value ? e.changeValue(v(a.value)) : e.changeValue(i.value);
125
- },
126
- setNull: () => {
127
- e.changeValue(null);
128
- }
129
- }
130
- ), _ = c(
131
- () => e.controlDataToDropdownValue(e.control.data)
132
- ), L = c(
133
- () => {
134
- var n;
135
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
136
- }
137
- ), M = be(), P = async (n, b) => {
138
- const { result: p, state: m, message: C } = await u({
139
- method: "settings.update",
140
- options: [
141
- M,
142
- L.value,
143
- fe(n)
144
- ]
145
- });
146
- return (q) => {
147
- const S = (f) => {
148
- a.value = f, (b || !_.value) && (pe(
149
- q,
150
- e.control.path,
151
- v(f)
152
- ), e.changeValue(v(f)));
153
- };
154
- p && S(p), m === "FAIL" && (C.forEach((f) => {
155
- r({
156
- message: f,
157
- type: "error"
158
- });
159
- }), S([]));
160
- };
161
- }, W = async (n) => {
162
- (await P(n, !1))(n);
163
- }, k = async () => {
164
- e.asyncInitialOptions !== null ? a.value = await e.asyncInitialOptions : d.value || l(e.control).then((n) => {
165
- a.value = n;
166
- });
167
- };
168
- let F = () => {
169
- };
170
- K(async () => {
171
- var n, b;
172
- if (L.value) {
173
- const p = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], m = !!((b = e.control.uischema.options) != null && b.setFirstValueOnUpdate);
174
- F = await s({
175
- transformSettings: (C) => P(C, m),
176
- init: W,
177
- dependencies: p
178
- });
179
- } else
180
- k();
181
- }), G(() => {
182
- F();
183
- });
184
- const z = (n) => {
185
- i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
186
- };
187
- return (n, b) => {
188
- var p;
189
- return y(), w(Y, {
190
- label: n.control.label,
191
- "hide-control-header": (p = n.control.uischema.options) == null ? void 0 : p.hideControlHeader
192
- }, {
193
- "before-label": V(() => [
194
- h(E) ? (y(), w(h(re), J(A({ key: 0 }, h($))), null, 16)) : O("", !0)
195
- ]),
196
- default: V(({ labelForId: m }) => [
197
- h(R) ? (y(), w(ye, {
198
- key: 0,
199
- id: m ?? "",
200
- ref_key: "controlElement",
201
- ref: g,
202
- ariaLabel: n.control.label,
203
- disabled: n.disabled,
204
- "model-value": _.value,
205
- "possible-values": h(a),
206
- compact: "",
207
- "onUpdate:modelValue": z
208
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values"])) : O("", !0)
209
- ]),
210
- icon: V(() => [
211
- T(n.$slots, "icon")
212
- ]),
213
- buttons: V(({ hover: m }) => [
214
- T(n.$slots, "buttons", {
215
- hover: m,
216
- controlHTMLElement: g.value
217
- })
218
- ]),
219
- _: 3
220
- }, 8, ["label", "hide-control-header"]);
221
- };
222
- }
223
- });
224
- export {
225
- Se as _
226
- };
@@ -1,23 +0,0 @@
1
- import { openBlock as o, createElementBlock as s, toDisplayString as a } from "vue";
2
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- const c = {
4
- props: {
5
- errors: {
6
- default: () => [],
7
- type: Array
8
- }
9
- },
10
- computed: {
11
- displayableErrors() {
12
- var r;
13
- return (r = this.errors.map(({ message: e }) => e)) == null ? void 0 : r.join("; ");
14
- }
15
- }
16
- }, i = ["title"];
17
- function l(r, e, n, _, d, t) {
18
- return o(), s("div", { title: t.displayableErrors }, a(t.displayableErrors), 9, i);
19
- }
20
- const u = /* @__PURE__ */ p(c, [["render", l], ["__scopeId", "data-v-070cf475"]]);
21
- export {
22
- u as E
23
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as r, openBlock as a, createElementBlock as o, Fragment as n, renderList as s, createElementVNode as u, createVNode as c, unref as d } from "vue";
2
- import { o as m, _ as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- const p = { class: "horizontal" }, h = /* @__PURE__ */ r({
4
- __name: "HorizontalLayout",
5
- props: {
6
- layout: {}
7
- },
8
- setup(y) {
9
- return (e, _) => (a(), o("div", p, [
10
- (a(!0), o(n, null, s(e.layout.uischema.elements, (t, l) => (a(), o("div", {
11
- key: `${e.layout.path}-${l}`,
12
- class: "horizontal-element"
13
- }, [
14
- u("div", null, [
15
- c(d(m), {
16
- schema: e.layout.schema,
17
- uischema: t,
18
- path: e.layout.path,
19
- enabled: e.layout.enabled,
20
- renderers: e.layout.renderers,
21
- cells: e.layout.cells
22
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"])
23
- ])
24
- ]))), 128))
25
- ]));
26
- }
27
- }), z = /* @__PURE__ */ i(h, [["__scopeId", "data-v-8a0179de"]]);
28
- export {
29
- z as default
30
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
2
- import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js";
3
- const _ = /* @__PURE__ */ o({
4
- __name: "IntegerControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- labelForId: {}
11
- },
12
- setup(a) {
13
- return (e, l) => (n(), r(p, t(e.$props, { type: "integer" }), null, 16));
14
- }
15
- });
16
- export {
17
- _ as default
18
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
2
- import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js";
3
- const m = /* @__PURE__ */ o({
4
- __name: "NumberControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- labelForId: {}
11
- },
12
- setup(a) {
13
- return (e, l) => (n(), r(p, t(e.$props, { type: "double" }), null, 16));
14
- }
15
- });
16
- export {
17
- m as default
18
- };
@@ -1,42 +0,0 @@
1
- import { defineComponent as p, openBlock as d, createBlock as b, unref as t } from "vue";
2
- import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- import { N as h } from "./NumberInput-DzpQc_Qg.js";
4
- const V = /* @__PURE__ */ p({
5
- __name: "NumberControlBase",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {},
12
- type: {}
13
- },
14
- setup(s) {
15
- var l, u, r, m;
16
- const o = s, n = i(
17
- (l = o.control.uischema.options) == null ? void 0 : l.minProvider,
18
- (u = o.control.uischema.options) == null ? void 0 : u.min
19
- ), a = i(
20
- (r = o.control.uischema.options) == null ? void 0 : r.maxProvider,
21
- (m = o.control.uischema.options) == null ? void 0 : m.max
22
- ), c = () => {
23
- const e = o.control.data;
24
- typeof n.value == "number" && e < n.value ? o.changeValue(n.value) : typeof a.value == "number" && e > a.value && o.changeValue(a.value);
25
- };
26
- return (e, v) => (d(), b(t(h), {
27
- id: e.labelForId,
28
- class: "number-input",
29
- disabled: e.disabled,
30
- "model-value": e.control.data,
31
- type: e.type,
32
- min: t(n),
33
- max: t(a),
34
- compact: "",
35
- "onUpdate:modelValue": e.changeValue,
36
- onFocusout: c
37
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "onUpdate:modelValue"]));
38
- }
39
- });
40
- export {
41
- V as _
42
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as l, openBlock as m, createBlock as f, mergeProps as u, unref as d, withCtx as e, renderSlot as s } from "vue";
2
- import { o as h } from "./index-hm05O8UX.js";
3
- import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-m-g4D1dr.js";
4
- const B = /* @__PURE__ */ l({
5
- __name: "OneOfDropdown",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {}
12
- },
13
- setup(r) {
14
- var n, t;
15
- const p = ((t = (n = r.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : t.map(h)) ?? [], a = Promise.resolve(p);
16
- return (o, $) => (m(), f(y, u({ ...o.$attrs, ...o.$props }, { "async-initial-options": d(a) }), {
17
- icon: e(() => [
18
- s(o.$slots, "icon")
19
- ]),
20
- buttons: e(({ hover: i, controlHTMLElement: c }) => [
21
- s(o.$slots, "buttons", {
22
- hover: i,
23
- controlHTMLElement: c
24
- })
25
- ]),
26
- _: 3
27
- }, 16, ["async-initial-options"]));
28
- }
29
- });
30
- export {
31
- B as default
32
- };
@@ -1,22 +0,0 @@
1
- import { defineComponent as e, openBlock as r, createBlock as a, mergeProps as n } from "vue";
2
- import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-D7yWH5sv.js";
3
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
4
- const s = /* @__PURE__ */ e({
5
- __name: "RadioControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {}
12
- },
13
- setup(c) {
14
- return (o, l) => (r(), a(t, n(o.$props, {
15
- type: "radio",
16
- class: "radio"
17
- }), null, 16));
18
- }
19
- }), m = /* @__PURE__ */ p(s, [["__scopeId", "data-v-06f75491"]]);
20
- export {
21
- m as default
22
- };
@@ -1,58 +0,0 @@
1
- import { defineComponent as u, openBlock as l, createBlock as p, resolveDynamicComponent as f, computed as r, ref as _, createElementBlock as b, createVNode as g, unref as B, withCtx as C, createCommentVNode as h, createTextVNode as y, toDisplayString as k, renderSlot as I } from "vue";
2
- import { k as S, _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- import { R as $ } from "./reload-BhzcZRFp.js";
4
- import { B as x } from "./Button-BR-eqILd.js";
5
- const D = /* @__PURE__ */ u({
6
- __name: "DynamicIcon",
7
- props: {
8
- icon: {}
9
- },
10
- setup(s) {
11
- const e = {
12
- reload: $
13
- };
14
- return (t, a) => (l(), p(f(e[t.icon])));
15
- }
16
- }), F = /* @__PURE__ */ u({
17
- __name: "SimpleButtonControl",
18
- props: {
19
- control: {},
20
- handleChange: { type: Function },
21
- changeValue: { type: Function },
22
- disabled: { type: Boolean },
23
- labelForId: {}
24
- },
25
- setup(s) {
26
- const e = s, t = r(() => !e.control.enabled), a = r(() => e.control.uischema.options.triggerId), c = r(
27
- () => e.control.uischema.options.icon
28
- ), d = S("trigger"), m = () => {
29
- d({ id: a.value });
30
- }, n = _(!1);
31
- return (i, o) => (l(), b("div", {
32
- class: "simple-button-input",
33
- onMouseover: o[0] || (o[0] = (v) => n.value = !0),
34
- onMouseleave: o[1] || (o[1] = (v) => n.value = !1)
35
- }, [
36
- g(B(x), {
37
- compact: "",
38
- "with-border": "",
39
- disabled: t.value,
40
- class: "button-input",
41
- onClick: m
42
- }, {
43
- default: C(() => [
44
- c.value ? (l(), p(D, {
45
- key: 0,
46
- icon: c.value
47
- }, null, 8, ["icon"])) : h("", !0),
48
- y(k(i.control.label), 1)
49
- ]),
50
- _: 1
51
- }, 8, ["disabled"]),
52
- I(i.$slots, "buttons", { hover: n.value }, void 0, !0)
53
- ], 32));
54
- }
55
- }), j = /* @__PURE__ */ V(F, [["__scopeId", "data-v-71d12dcd"]]);
56
- export {
57
- j as default
58
- };