@knime/jsonforms 1.6.9 → 1.7.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 (122) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnyOfTwinlist-D7gkxtYi.js +22 -0
  3. package/dist/{BaseButton-B6Z2uYGV.js → BaseButton-nH3iSIOK.js} +1 -1
  4. package/dist/{Button-B27OsWa6.js → Button-DnQZFkaO.js} +2 -2
  5. package/dist/{Checkbox-Bl3rvtXe.js → Checkbox-DB9YeQa-.js} +1 -1
  6. package/dist/{CheckboxControl-BAIwtCZF.js → CheckboxControl-hkHWMBsv.js} +2 -2
  7. package/dist/{Checkboxes-Cb1lJdBP.js → Checkboxes-C_qM6Iao.js} +2 -2
  8. package/dist/{CheckboxesControl-CQSzjloD.js → CheckboxesControl-DRNda60A.js} +3 -3
  9. package/dist/{ComboBoxControl-CmY_qMv_.js → ComboBoxControl-Dd0UZdMx.js} +77 -89
  10. package/dist/{DateControl-BL2H5BjS.js → DateControl-BmqofCSf.js} +1 -1
  11. package/dist/{DateTimeControl-BYuJUqBc.js → DateTimeControl-B7uvqC1s.js} +2 -2
  12. package/dist/{DateTimeFormatInput-BagQnUJb.js → DateTimeFormatInput-CsEAVqAA.js} +3 -3
  13. package/dist/{DateTimeFormatPickerControl-DmbGr3EH.js → DateTimeFormatPickerControl-BK80kZf0.js} +2 -2
  14. package/dist/{DateTimeFormatPickerWithTypeControl-CGCdH2_0.js → DateTimeFormatPickerWithTypeControl-CS8APLBp.js} +3 -3
  15. package/dist/{DateTimeInput-Cbw4cu1f.js → DateTimeInput-DP2yHD9r.js} +14 -13
  16. package/dist/{Dropdown-xSUsqbQu.js → Dropdown-D8qp_4wZ.js} +30 -29
  17. package/dist/DropdownControl-B2fs1yBj.js +84 -0
  18. package/dist/{FunctionButton-BjutjqfY.js → FunctionButton-Bo0NcfGh.js} +2 -2
  19. package/dist/{HorizontalLayout-HzwqDGLQ.js → HorizontalLayout-Bg5vYcO1.js} +1 -1
  20. package/dist/{InputField-CWbS01h9.js → InputField-DRLCzzDf.js} +1 -1
  21. package/dist/{IntegerControl-BNz67bUk.js → IntegerControl-HLRox7w7.js} +1 -1
  22. package/dist/{IntervalControl-jM22Q0CQ.js → IntervalControl-D-xUIRW3.js} +4 -4
  23. package/dist/LoadingDropdown-DkxltiwQ.js +40 -0
  24. package/dist/MultimodeTwinlistControl-CV2v4Y5n.js +526 -0
  25. package/dist/{MultiselectListBox-D5smzcVZ.js → MultiselectListBox-BFQxtoyR.js} +1 -1
  26. package/dist/{NameFilter-B9TOgIBA.js → NameFilter-BxfjNVu-.js} +1 -1
  27. package/dist/{NumberControl-YCMcJfZB.js → NumberControl-Df91UAXl.js} +1 -1
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js +53 -0
  29. package/dist/{NumberInput-DO8rNjya.js → NumberInput-BLlTeOig.js} +1 -1
  30. package/dist/OneOfDropdown-CLPbmMt7.js +34 -0
  31. package/dist/{RadioControl-DK_i_SC9.js → RadioControl-CDi8WbsE.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-B_Dxf3fU.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6clHvd5.js} +3 -3
  33. package/dist/{RichTextControl-Bp6N-XYM.js → RichTextControl-YMNSyY3O.js} +6 -6
  34. package/dist/{SectionHeading-wDPgvJNi.js → SectionHeading-D8h1zy67.js} +1 -1
  35. package/dist/{SectionLayout-DYLzJvJs.js → SectionLayout-DBiG5Ubc.js} +3 -3
  36. package/dist/{SettingsSubPanel-DTubXv1M.js → SettingsSubPanel--LD_hsgG.js} +2 -2
  37. package/dist/{SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js → SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js} +1024 -1022
  38. package/dist/{SettingsSubPanelLayout-CAtNgx_A.js → SettingsSubPanelLayout-By5U2J68.js} +5 -5
  39. package/dist/{SimpleButtonControl-D2slFPzs.js → SimpleButtonControl-B47jBtrM.js} +6 -6
  40. package/dist/SimpleTwinlistControl-DoRJkKPs.js +22 -0
  41. package/dist/SingleSelectControl-zE9ck9JX.js +58 -0
  42. package/dist/SortListControl-C5DXqqPG.js +372 -0
  43. package/dist/{TextAreaControl-CxNkzjdq.js → TextAreaControl-D2-nyO1m.js} +1 -1
  44. package/dist/{TextControl-j8Bk4RzX.js → TextControl-Ss9_5V2f.js} +1 -1
  45. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js +93 -0
  46. package/dist/{TimeControl-vGEtfCEt.js → TimeControl-CblSq-0a.js} +2 -2
  47. package/dist/TwinlistControlBase-Xe8xQAyG.js +40 -0
  48. package/dist/{TwinlistLoadingInfo-DnhM2U43.js → TwinlistLoadingInfo-BHhpo_7N.js} +12 -11
  49. package/dist/TypedNameFilter-N2eeG2VM.js +25 -0
  50. package/dist/{ValueSwitch-CGXtJV-B.js → ValueSwitch-BI5z5U3F.js} +1 -1
  51. package/dist/{ValueSwitchControl-dHPRa3vB.js → ValueSwitchControl-CixwDXQs.js} +1 -1
  52. package/dist/{VerticalLayout-BUWGeKPt.js → VerticalLayout-B8RzC8Vj.js} +2 -2
  53. package/dist/{VerticalLayoutBase-Tp2IGikj.js → VerticalLayoutBase-Bj_upYbt.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-Ddjugjzp.js → ZonedDateTimeControl-CZdpjJEK.js} +4 -4
  55. package/dist/_baseEach-FP8ISlsz.js +31 -0
  56. package/dist/_baseIteratee-DhaGkQLM.js +518 -0
  57. package/dist/_getTag-DiktJuv_.js +132 -0
  58. package/dist/index-Blg1O3Fz.js +15 -0
  59. package/dist/isArray-WzO_os3q.js +4 -0
  60. package/dist/isObjectLike-BatpeCIi.js +29 -0
  61. package/dist/isSymbol-C3_SC0Qp.js +8 -0
  62. package/dist/knime-jsonforms.css +1 -1
  63. package/dist/knime-jsonforms.js +8 -8
  64. package/dist/{localTimeUtils-DIFjv2_A.js → localTimeUtils-Dp9bEJDh.js} +1 -1
  65. package/dist/{magic-string.es-BbItKD7x.js → magic-string.es-CeNBRh1A.js} +1 -1
  66. package/dist/src/constants/inputFormats.d.ts +2 -2
  67. package/dist/src/higherOrderComponents/control/validation/types.d.ts +7 -1
  68. package/dist/src/renderers/defaultRenderers.d.ts +24 -589
  69. package/dist/src/renderers/dropdownRenderer.d.ts +55 -115
  70. package/dist/src/renderers/fallbackRenderers.d.ts +1 -241
  71. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -1
  72. package/dist/src/renderers/singleSelectRenderer.d.ts +8 -0
  73. package/dist/src/renderers/sortListRenderer.d.ts +0 -8
  74. package/dist/src/renderers/twinlistRenderer.d.ts +1 -1
  75. package/dist/src/renderers/typedNameFilterRenderer.d.ts +1 -0
  76. package/dist/src/types/ChoicesUiSchema.d.ts +7 -12
  77. package/dist/src/types/provided.d.ts +0 -2
  78. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -86
  79. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -13
  80. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +20 -0
  81. package/dist/src/uiComponents/SortListControl.vue.d.ts +4 -4
  82. package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +43 -0
  83. package/dist/src/uiComponents/composables/usePossibleValues.d.ts +24 -0
  84. package/dist/src/uiComponents/composables/useProvidedState.d.ts +2 -2
  85. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  86. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -99
  87. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +36 -0
  88. package/dist/src/uiComponents/twinlist/{ColumnFilter.vue.d.ts → TypedNameFilter.vue.d.ts} +1 -1
  89. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +1 -1
  90. package/dist/src/utils/index.d.ts +0 -2
  91. package/dist/{svgWithTitle-Cgc-TGWi.js → svgWithTitle-B5FsAPop.js} +1 -1
  92. package/dist/testUtils/component.d.ts +4 -0
  93. package/dist/testing.js +80 -63
  94. package/dist/toString-B9O7P854.js +26 -0
  95. package/dist/useBuiltinValidations-8VwUv3RT.js +52 -0
  96. package/dist/usePossibleValues-CrNcBbpN.js +26 -0
  97. package/package.json +3 -3
  98. package/dist/AnyOfTwinlist-C3gbWpq1.js +0 -22
  99. package/dist/ColumnFilter-DOIYetcH.js +0 -24
  100. package/dist/ColumnSelect-B8IH25EN.js +0 -68
  101. package/dist/DropdownControl-DGfi9k8S.js +0 -4
  102. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js +0 -237
  103. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CPj9t6fL.js +0 -60
  104. package/dist/OneOfDropdown-BoOe32dm.js +0 -35
  105. package/dist/SimpleTwinlistControl-CrLWO2B2.js +0 -50
  106. package/dist/SortListControl-v_nVoQsh.js +0 -366
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-qt4UxKcl.js +0 -87
  108. package/dist/TwinlistControl-Dw5uSnOi.js +0 -554
  109. package/dist/_baseAssignValue-BPMLYzDH.js +0 -19
  110. package/dist/_baseEach-B8N_Gx8P.js +0 -31
  111. package/dist/_baseIsEqual-DmkT9Nkc.js +0 -248
  112. package/dist/_baseIteratee-DvBmrhnf.js +0 -104
  113. package/dist/_getTag-DS8v0_uf.js +0 -312
  114. package/dist/getPossibleValuesFromUiSchema-hQj1TCOR.js +0 -39
  115. package/dist/index-hm05O8UX.js +0 -16
  116. package/dist/isSymbol-OFe5xy2f.js +0 -34
  117. package/dist/src/renderers/columnFilterRenderer.d.ts +0 -1
  118. package/dist/src/renderers/columnSelectRenderer.d.ts +0 -265
  119. package/dist/src/uiComponents/ColumnSelect.vue.d.ts +0 -26
  120. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +0 -10
  121. package/dist/toString-DkbNkGT4.js +0 -25
  122. /package/dist/src/uiComponents/twinlist/{TwinlistControl.vue.d.ts → MultimodeTwinlistControl.vue.d.ts} +0 -0
@@ -1,68 +0,0 @@
1
- import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as g, createBlock as V, mergeProps as P, unref as C, withCtx as u, renderSlot as p } from "vue";
2
- import { w as F } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
3
- import { k as S, u as _ } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
4
- import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js";
5
- import { b as $ } from "./_baseIsEqual-DmkT9Nkc.js";
6
- function B(s, t) {
7
- return $(s, t);
8
- }
9
- const U = /* @__PURE__ */ h({
10
- __name: "ColumnSelect",
11
- props: {
12
- control: {},
13
- handleChange: { type: Function },
14
- changeValue: { type: Function },
15
- disabled: { type: Boolean },
16
- labelForId: {},
17
- isValid: { type: Boolean },
18
- messages: {},
19
- onRegisterValidation: { type: Function }
20
- },
21
- setup(s) {
22
- const t = s, c = b(
23
- () => {
24
- var o;
25
- return (o = t.control.uischema.options) == null ? void 0 : o.choicesProvider;
26
- }
27
- ), d = S("getPossibleValuesFromUiSchema"), a = F(
28
- _(c, null),
29
- t.control
30
- ), m = new Promise((o) => {
31
- v(() => {
32
- a.value && o(a.value);
33
- });
34
- }), l = (o) => {
35
- var n;
36
- const e = a.value;
37
- if (e === null)
38
- throw new Error("Must not convert data before column choices are fetched.");
39
- const i = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
40
- return { selected: o, compatibleTypes: i };
41
- }, r = ({ selected: o }) => o;
42
- return w(() => a.value, () => {
43
- const o = t.control.data, e = l(r(o));
44
- B(o, e) || t.changeValue(e);
45
- }), y(async () => {
46
- c.value || (a.value = await d(t.control));
47
- }), (o, e) => (g(), V(D, P({ ...o.$attrs, ...o.$props }, {
48
- "async-initial-options": C(m),
49
- "control-data-to-dropdown-value": r,
50
- compact: "",
51
- "dropdown-value-to-control-data": l
52
- }), {
53
- icon: u(() => [
54
- p(o.$slots, "icon")
55
- ]),
56
- buttons: u(({ hover: i, controlHTMLElement: n }) => [
57
- p(o.$slots, "buttons", {
58
- hover: i,
59
- controlHTMLElement: n
60
- })
61
- ]),
62
- _: 3
63
- }, 16, ["async-initial-options"]));
64
- }
65
- });
66
- export {
67
- U as default
68
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js";
2
- export {
3
- f as default
4
- };
@@ -1,237 +0,0 @@
1
- import { defineComponent as x, computed as c, openBlock as y, createBlock as w, unref as h, mergeProps as H, withCtx as b, createCommentVNode as O, ref as N, onMounted as K, onBeforeUnmount as G, normalizeProps as J, createVNode as Q, renderSlot as T } from "vue";
2
- import { _ as X, k as D, u as Y, L as Z, E as j } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
3
- import { w as ee } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
- import { u as oe } from "./useHideOnNull-CCfNP3O7.js";
5
- import { D as ne } from "./Dropdown-xSUsqbQu.js";
6
- import { L as ae } from "./svgWithTitle-Cgc-TGWi.js";
7
- import { b as te } from "./_baseAssignValue-BPMLYzDH.js";
8
- import { e as le, c as se, t as re, i as ie } from "./_getTag-DS8v0_uf.js";
9
- import { i as B } from "./isObject-B53jY8Qg.js";
10
- import { C as ue } from "./Checkbox-Bl3rvtXe.js";
11
- var de = Object.prototype, ce = de.hasOwnProperty;
12
- function pe(o, e, l) {
13
- var s = o[e];
14
- (!(ce.call(o, e) && le(s, l)) || l === void 0 && !(e in o)) && te(o, e, l);
15
- }
16
- function me(o, e, l, s) {
17
- if (!B(o))
18
- return o;
19
- e = se(e, o);
20
- for (var u = -1, r = e.length, g = r - 1, d = o; d != null && ++u < r; ) {
21
- var t = re(e[u]), i = l;
22
- if (t === "__proto__" || t === "constructor" || t === "prototype")
23
- return o;
24
- if (u != g) {
25
- var v = d[t];
26
- i = void 0, i === void 0 && (i = B(v) ? v : ie(e[u + 1]) ? [] : {});
27
- }
28
- pe(d, t, i), d = d[t];
29
- }
30
- return o;
31
- }
32
- function he(o, e, l) {
33
- return o == null ? o : me(o, e, l);
34
- }
35
- var a = [];
36
- for (var I = 0; I < 256; ++I)
37
- a.push((I + 256).toString(16).slice(1));
38
- function ge(o, e = 0) {
39
- return (a[o[e + 0]] + a[o[e + 1]] + a[o[e + 2]] + a[o[e + 3]] + "-" + a[o[e + 4]] + a[o[e + 5]] + "-" + a[o[e + 6]] + a[o[e + 7]] + "-" + a[o[e + 8]] + a[o[e + 9]] + "-" + a[o[e + 10]] + a[o[e + 11]] + a[o[e + 12]] + a[o[e + 13]] + a[o[e + 14]] + a[o[e + 15]]).toLowerCase();
40
- }
41
- var U, ve = new Uint8Array(16);
42
- function be() {
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(ve);
46
- }
47
- var fe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
48
- const E = {
49
- randomUUID: fe
50
- };
51
- function Ve(o, e, l) {
52
- if (E.randomUUID && !o)
53
- return E.randomUUID();
54
- o = o || {};
55
- var s = o.random || (o.rng || be)();
56
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ge(s);
57
- }
58
- const ye = ({ view: o, model: e }) => ({
59
- ...o,
60
- ...e
61
- }), we = /* @__PURE__ */ x({
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(ne), H({ ...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": b(() => [
85
- r.possibleValues === null ? (y(), w(h(ae), {
86
- key: 0,
87
- class: "loading-icon"
88
- })) : O("", !0)
89
- ]),
90
- _: 1
91
- }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
92
- }
93
- }), De = /* @__PURE__ */ X(we, [["__scopeId", "data-v-cf6ba18c"]]), Te = /* @__PURE__ */ x({
94
- __name: "DropdownControl",
95
- props: {
96
- control: {},
97
- handleChange: {},
98
- changeValue: {},
99
- disabled: { type: Boolean },
100
- labelForId: {},
101
- isValid: { type: Boolean },
102
- messages: {},
103
- onRegisterValidation: {},
104
- asyncInitialOptions: { default: null },
105
- controlDataToDropdownValue: { type: Function, default: (o) => o },
106
- dropdownValueToControlData: { type: Function, default: (o) => o }
107
- },
108
- setup(o) {
109
- const e = o, l = D("getPossibleValuesFromUiSchema"), s = D("registerWatcher"), u = D("getData"), r = D("sendAlert"), g = N(null), d = c(
110
- () => {
111
- var n;
112
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
113
- }
114
- ), t = ee(
115
- Y(d.value, null),
116
- e.control
117
- ), i = N(e.control.data), v = (n) => e.dropdownValueToControlData(
118
- n.length > 0 ? n[0].id : null
119
- ), { showCheckbox: R, showControl: A, checkboxProps: $ } = oe(
120
- {
121
- control: c(() => e.control),
122
- disabled: c(() => e.disabled),
123
- controlElement: g
124
- },
125
- {
126
- setDefault: () => {
127
- !i.value && t.value ? e.changeValue(v(t.value)) : e.changeValue(i.value);
128
- },
129
- setNull: () => {
130
- e.changeValue(null);
131
- }
132
- }
133
- ), _ = c(
134
- () => e.controlDataToDropdownValue(e.control.data)
135
- ), L = c(
136
- () => {
137
- var n;
138
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
139
- }
140
- ), M = Ve(), P = async (n, f) => {
141
- const { result: p, state: m, message: C } = await u({
142
- method: "settings.update",
143
- options: [
144
- M,
145
- L.value,
146
- ye(n)
147
- ]
148
- });
149
- return (q) => {
150
- const S = (V) => {
151
- t.value = V, (f || !_.value) && (he(
152
- q,
153
- e.control.path,
154
- v(V)
155
- ), e.changeValue(v(V)));
156
- };
157
- p && S(p), m === "FAIL" && (C.forEach((V) => {
158
- r({
159
- message: V,
160
- type: "error"
161
- });
162
- }), S([]));
163
- };
164
- }, W = async (n) => {
165
- (await P(n, !1))(n);
166
- }, k = async () => {
167
- e.asyncInitialOptions !== null ? t.value = await e.asyncInitialOptions : d.value || l(e.control).then((n) => {
168
- t.value = n;
169
- });
170
- };
171
- let F = () => {
172
- };
173
- K(async () => {
174
- var n, f;
175
- if (L.value) {
176
- const p = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], m = !!((f = e.control.uischema.options) != null && f.setFirstValueOnUpdate);
177
- F = await s({
178
- transformSettings: (C) => P(C, m),
179
- init: W,
180
- dependencies: p
181
- });
182
- } else
183
- k();
184
- }), G(() => {
185
- F();
186
- });
187
- const z = (n) => {
188
- i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
189
- };
190
- return (n, f) => {
191
- var p;
192
- return y(), w(Z, {
193
- label: n.control.label,
194
- "hide-control-header": (p = n.control.uischema.options) == null ? void 0 : p.hideControlHeader
195
- }, {
196
- "before-label": b(() => [
197
- h(R) ? (y(), w(h(ue), J(H({ key: 0 }, h($))), null, 16)) : O("", !0)
198
- ]),
199
- default: b(({ labelForId: m }) => [
200
- h(A) ? (y(), w(j, {
201
- key: 0,
202
- errors: n.messages.errors
203
- }, {
204
- default: b(() => [
205
- Q(De, {
206
- id: m ?? "",
207
- ref_key: "controlElement",
208
- ref: g,
209
- ariaLabel: n.control.label,
210
- disabled: n.disabled,
211
- "model-value": _.value,
212
- "possible-values": h(t),
213
- "is-valid": n.isValid,
214
- compact: "",
215
- "onUpdate:modelValue": z
216
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid"])
217
- ]),
218
- _: 2
219
- }, 1032, ["errors"])) : O("", !0)
220
- ]),
221
- icon: b(() => [
222
- T(n.$slots, "icon")
223
- ]),
224
- buttons: b(({ hover: m }) => [
225
- T(n.$slots, "buttons", {
226
- hover: m,
227
- controlHTMLElement: g.value
228
- })
229
- ]),
230
- _: 3
231
- }, 8, ["label", "hide-control-header"]);
232
- };
233
- }
234
- });
235
- export {
236
- Te as _
237
- };
@@ -1,60 +0,0 @@
1
- import { defineComponent as b, computed as y, openBlock as h, createBlock as V, unref as i } from "vue";
2
- import { u as m } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
3
- import { N as g } from "./NumberInput-DO8rNjya.js";
4
- const C = /* @__PURE__ */ b({
5
- __name: "NumberControlBase",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {},
14
- type: {}
15
- },
16
- setup(f) {
17
- const o = f, {
18
- min: u,
19
- minProvider: s,
20
- max: d,
21
- maxProvider: p
22
- } = o.control.uischema.options || {}, a = m(s, u), n = m(p, d);
23
- if (typeof [s, p, u, d].find(
24
- (e) => typeof e < "u"
25
- ) < "u") {
26
- const e = ({
27
- value: t,
28
- minimum: r,
29
- maximum: l
30
- }) => typeof r == "number" && t < r ? { errors: [`The value has to be at least ${r}`] } : typeof l == "number" && t > l ? { errors: [`The value has to be ${l} at max`] } : { errors: [] }, c = y(
31
- () => (t) => e({
32
- value: t,
33
- minimum: a.value,
34
- maximum: n.value
35
- })
36
- );
37
- o.onRegisterValidation(c);
38
- }
39
- const v = () => {
40
- const e = o.control.data;
41
- typeof a.value == "number" && e < a.value ? o.changeValue(a.value) : typeof n.value == "number" && e > n.value && o.changeValue(n.value);
42
- };
43
- return (e, c) => (h(), V(i(g), {
44
- id: e.labelForId,
45
- class: "number-input",
46
- disabled: e.disabled,
47
- "model-value": e.control.data,
48
- type: e.type,
49
- min: i(a),
50
- max: i(n),
51
- "is-valid": e.isValid,
52
- compact: "",
53
- "onUpdate:modelValue": e.changeValue,
54
- onFocusout: v
55
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]));
56
- }
57
- });
58
- export {
59
- C as _
60
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as c, openBlock as m, createBlock as u, mergeProps as d, unref as f, withCtx as t, renderSlot as s } from "vue";
2
- import { o as y } from "./index-hm05O8UX.js";
3
- import { _ as h } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js";
4
- const F = /* @__PURE__ */ c({
5
- __name: "OneOfDropdown",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {},
12
- isValid: { type: Boolean },
13
- messages: {},
14
- onRegisterValidation: { type: Function }
15
- },
16
- setup(i) {
17
- var n, e;
18
- const a = ((e = (n = i.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : e.map(y)) ?? [], p = Promise.resolve(a);
19
- return (o, g) => (m(), u(h, d({ ...o.$attrs, ...o.$props }, { "async-initial-options": f(p) }), {
20
- icon: t(() => [
21
- s(o.$slots, "icon")
22
- ]),
23
- buttons: t(({ hover: r, controlHTMLElement: l }) => [
24
- s(o.$slots, "buttons", {
25
- hover: r,
26
- controlHTMLElement: l
27
- })
28
- ]),
29
- _: 3
30
- }, 16, ["async-initial-options"]));
31
- }
32
- });
33
- export {
34
- F as default
35
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as d, computed as r, markRaw as u, openBlock as p, createBlock as c, unref as i } from "vue";
2
- import { k as m, u as b, _ as f } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
3
- import { a as h, T as w } from "./TwinlistLoadingInfo-DnhM2U43.js";
4
- const v = /* @__PURE__ */ d({
5
- __name: "SimpleTwinlistControl",
6
- props: {
7
- control: {},
8
- handleChange: {},
9
- changeValue: {},
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: {},
13
- labelForId: {},
14
- twinlistSize: { default: 10 },
15
- twinlistLeftLabel: { default: "Excludes" },
16
- twinlistRightLabel: { default: "Includes" },
17
- optionsGenerator: { type: [null, Function], default: null }
18
- },
19
- setup(a) {
20
- const l = a, n = m("getPossibleValuesFromUiSchema"), t = r(
21
- () => {
22
- var e;
23
- return (e = l.control.uischema.options) == null ? void 0 : e.choicesProvider;
24
- }
25
- ), o = b(
26
- t,
27
- null
28
- ), s = u(h);
29
- return t.value || (l.optionsGenerator === null ? n(l.control).then((e) => {
30
- o.value = e;
31
- }) : o.value = l.optionsGenerator(l.control)), (e, g) => (p(), c(i(w), {
32
- id: e.labelForId,
33
- disabled: e.disabled,
34
- "model-value": e.control.data,
35
- "possible-values": i(o) ?? [],
36
- "empty-state-component": i(o) === null ? i(s) : null,
37
- "hide-options": i(o) === null,
38
- size: e.twinlistSize,
39
- "left-label": e.twinlistLeftLabel,
40
- "right-label": e.twinlistRightLabel,
41
- "is-valid": e.isValid,
42
- compact: "",
43
- "show-resize-handle": "",
44
- "onUpdate:modelValue": e.changeValue
45
- }, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "is-valid", "onUpdate:modelValue"]));
46
- }
47
- }), I = /* @__PURE__ */ f(v, [["__scopeId", "data-v-b2852591"]]);
48
- export {
49
- I as default
50
- };