@knime/jsonforms 1.21.16 → 1.21.19

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 (105) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnyOfTwinlist-Chx0nmt3.js +23 -0
  3. package/dist/CheckboxControl-B8b1Di4k.js +40 -0
  4. package/dist/CheckboxesControl-DWUnPGdN.js +39 -0
  5. package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-ByE5ku7u.js} +10 -8
  6. package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-XiKZ4jfn.js} +28 -28
  7. package/dist/ComboBoxControl-zSceYlyZ.js +39 -0
  8. package/dist/DateControl-BBGpEVpr.js +44 -0
  9. package/dist/DateTimeControl-CymOURq5.js +80 -0
  10. package/dist/DateTimeFormatPickerControl-Bx19jwpr.js +34 -0
  11. package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-Byo_0cTq.js} +30 -29
  12. package/dist/DropdownControl-C6ffVYyf.js +32 -0
  13. package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-D9FZ-g9O.js} +10 -9
  14. package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-__P80Lkb.js} +9 -8
  15. package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-DWs4PhOj.js} +53 -52
  16. package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-WcJ4y6Fs.js} +27 -26
  17. package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-ByB5A7X3.js} +6 -6
  18. package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-aveswmbr.js} +5 -4
  19. package/dist/IntervalControl-B4Eqs1Jf.js +51 -0
  20. package/dist/LinkControl-DD56lOiw.js +35 -0
  21. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg.js} +5 -5
  22. package/dist/ManualTwinlistControl-DBZ5RZgW.js +74 -0
  23. package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-BMsPvxGQ.js} +53 -52
  24. package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-thO1be1r.js} +1 -1
  25. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CKcpm_I1.js +159 -0
  26. package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DBMVmZmk.js} +7 -6
  27. package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-BPVO5l6t.js} +7 -6
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js +52 -0
  29. package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-DBG8ZcpV.js} +13 -11
  30. package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BsqMTEB5.js} +15 -15
  31. package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ClJmr0EQ.js} +5 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw.js +57 -0
  33. package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-CeXYJeR1.js} +21 -18
  34. package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DvYkBpzH.js} +2796 -2626
  35. package/dist/SectionHeading-7KVIxCGG.js +61 -0
  36. package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-CwRO3UXc.js} +3 -3
  37. package/dist/SettingsSubPanel-i2sjXJXx.js +5 -0
  38. package/dist/SettingsSubPanelLayout-CV6y2bcX.js +67 -0
  39. package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-D58aXnm7.js} +14 -14
  40. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js} +9583 -9612
  41. package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-BSON5VYy.js} +6 -5
  42. package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-BSqORMYm.js} +21 -19
  43. package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-CFdKzbOK.js} +18 -17
  44. package/dist/SortListControl-DZIHeQmn.js +105 -0
  45. package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem--sgmJ3W_.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-DiMyDT-5.js} +16 -15
  47. package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-Bag_dwA1.js} +12 -11
  48. package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-B52P0DAa.js} +10 -8
  49. package/dist/{TextControl-BrUMvx4G.js → TextControl-52n-sttB.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang-DrD-RvHO.js} +16 -14
  51. package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Cu12_qpz.js} +26 -24
  52. package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DhdC8OS1.js} +7 -6
  53. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js} +14 -11
  54. package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-zJOICQei.js} +5 -4
  55. package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-CEVWJH7z.js} +6 -5
  56. package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-D_13xb_m.js} +2 -2
  57. package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-CYfG9KqS.js} +2 -2
  58. package/dist/ZonedDateTimeControl-C-vO6fC1.js +79 -0
  59. package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-DdGQvEX6.js} +27 -27
  60. package/dist/collection-BBXRVj4b-DzRZ2FYd.js +22 -0
  61. package/dist/knime-jsonforms.css +1 -1
  62. package/dist/knime-jsonforms.js +107 -99
  63. package/dist/src/JsonFormsDialog.vue.d.ts +6 -6
  64. package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
  65. package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
  66. package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
  68. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -3
  69. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +0 -1
  70. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +1 -1
  71. package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
  72. package/dist/src/renderers/defaultRenderers.d.ts +120 -1
  73. package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
  74. package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +1 -1
  75. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -3
  76. package/dist/testing.js +3 -3
  77. package/dist/{toString-DXjInt1t.js → toString-f8odPeFb.js} +1 -1
  78. package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-KbChI8vv.js} +1 -1
  79. package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-DiYOmnZW.js} +1 -1
  80. package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BhhirtmX.js} +1 -1
  81. package/package.json +2 -2
  82. package/dist/AnyOfTwinlist-BCIsT83q.js +0 -22
  83. package/dist/CheckboxControl-CjiUwvWU.js +0 -38
  84. package/dist/CheckboxesControl-CAHj0UnX.js +0 -37
  85. package/dist/ComboBoxControl-hveFsDLi.js +0 -37
  86. package/dist/DateControl-BtCCimuA.js +0 -42
  87. package/dist/DateTimeControl-Bll2rZlX.js +0 -78
  88. package/dist/DateTimeFormatPickerControl-CsKD9vWJ.js +0 -32
  89. package/dist/DropdownControl-DA8lNfVk.js +0 -30
  90. package/dist/IntervalControl-vOi33CZB.js +0 -48
  91. package/dist/LinkControl-D5t3awqb.js +0 -35
  92. package/dist/ManualTwinlistControl-BQ4H-fRR.js +0 -72
  93. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js +0 -157
  94. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DEG90Gdx.js +0 -50
  95. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js +0 -52
  96. package/dist/SectionHeading-xMNeMcnS.js +0 -19
  97. package/dist/SettingsSubPanel-D_FDP5Zc.js +0 -5
  98. package/dist/SettingsSubPanelLayout-Dp_jLbsR.js +0 -73
  99. package/dist/SortListControl-kjhkdRwC.js +0 -103
  100. package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
  101. package/dist/arrow-next-BQULX8HT.js +0 -17
  102. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
  103. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
  104. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
  105. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +0 -10
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, toRef as l, openBlock as a, createBlock as r, mergeProps as i, unref as p } from "vue";
2
- import { u as c } from "./usePossibleValues-yDswh8Qc.js";
3
- import { _ as u } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js";
1
+ import { defineComponent as s, toRef as l, openBlock as r, createBlock as a, mergeProps as p, unref as i } from "vue";
2
+ import { u as c } from "./usePossibleValues-DiYOmnZW.js";
3
+ import { _ as u } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js";
4
4
  const y = /* @__PURE__ */ s({
5
5
  __name: "SimpleTwinlistControl",
6
6
  props: {
@@ -8,13 +8,14 @@ const y = /* @__PURE__ */ s({
8
8
  handleChange: { type: Function },
9
9
  changeValue: { type: Function },
10
10
  disabled: { type: Boolean },
11
- isValid: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
12
13
  onRegisterValidation: { type: Function },
13
14
  labelForId: {}
14
15
  },
15
16
  setup(o) {
16
17
  const e = o, n = l(e, "control"), { possibleValues: t } = c(n);
17
- return (m, f) => (a(), r(u, i(e, { "possible-values": p(t) }), null, 16, ["possible-values"]));
18
+ return (m, f) => (r(), a(u, p(e, { "possible-values": i(t) }), null, 16, ["possible-values"]));
18
19
  }
19
20
  });
20
21
  export {
@@ -1,28 +1,29 @@
1
- import { defineComponent as x, computed as c, toRef as y, openBlock as _, createBlock as v } from "vue";
2
- import { u as $ } from "./usePossibleValues-yDswh8Qc.js";
3
- import { _ as F } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js";
4
- const i = "__special__", a = "__regular__", P = /* @__PURE__ */ x({
1
+ import { defineComponent as I, computed as c, toRef as y, openBlock as v, createBlock as $ } from "vue";
2
+ import { u as F } from "./usePossibleValues-DiYOmnZW.js";
3
+ import { _ as R } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg.js";
4
+ const i = "__special__", a = "__regular__", P = /* @__PURE__ */ I({
5
5
  __name: "SingleSelectControl",
6
6
  props: {
7
7
  control: {},
8
8
  handleChange: { type: Function },
9
9
  changeValue: { type: Function },
10
10
  disabled: { type: Boolean },
11
- isValid: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
12
13
  onRegisterValidation: { type: Function },
13
14
  labelForId: {}
14
15
  },
15
- setup(o) {
16
- const t = o, p = c(
16
+ setup(r) {
17
+ const t = r, p = c(
17
18
  () => t.control.uischema.options.specialChoices
18
- ), { possibleValues: l } = $(
19
+ ), { possibleValues: l } = F(
19
20
  y(t, "control")
20
21
  ), s = (e) => `${i}${e}`, u = (e) => `${a}${e}`, h = ({
21
22
  id: e,
22
- text: r
23
+ text: o
23
24
  }) => ({
24
25
  id: s(e),
25
- text: r,
26
+ text: o,
26
27
  isSpecial: !0
27
28
  }), f = (e) => ({
28
29
  ...e,
@@ -30,25 +31,26 @@ const i = "__special__", a = "__regular__", P = /* @__PURE__ */ x({
30
31
  }), n = c(() => l.value === null ? null : p.value.map(h).concat(l.value.map(f))), C = (e) => {
31
32
  if (!e.startsWith(a) && !e.startsWith(i))
32
33
  throw new Error(`Expected id to start with ${a}`);
33
- }, m = (e) => e ? (C(e), e.startsWith(i) ? { specialChoice: e.slice(i.length) } : { regularChoice: e.slice(a.length) }) : null, b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? u(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "", g = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", d = c({
34
+ }, m = (e) => e ? (C(e), e.startsWith(i) ? { specialChoice: e.slice(i.length) } : { regularChoice: e.slice(a.length) }) : null, b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? u(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "", x = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", d = c({
34
35
  get: () => {
35
36
  const e = b(t.control.data);
36
- return n.value && !n.value.some((r) => r.id === e) ? g(t.control.data) : e;
37
+ return n.value && !n.value.some((o) => o.id === e) ? x(t.control.data) : e;
37
38
  },
38
39
  set: (e) => {
39
40
  t.changeValue(m(e));
40
41
  }
41
42
  });
42
- return (e, r) => (_(), v(F, {
43
- id: o.labelForId,
43
+ return (e, o) => (v(), $(R, {
44
+ id: r.labelForId,
44
45
  modelValue: d.value,
45
- "onUpdate:modelValue": r[0] || (r[0] = (I) => d.value = I),
46
+ "onUpdate:modelValue": o[0] || (o[0] = (g) => d.value = g),
46
47
  "possible-values": n.value,
47
- ariaLabel: o.control.label,
48
- disabled: o.disabled,
49
- error: !o.isValid,
48
+ ariaLabel: r.control.label,
49
+ disabled: r.disabled,
50
+ error: r.error,
51
+ "sub-text": r.subText,
50
52
  compact: ""
51
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error"]));
53
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error", "sub-text"]));
52
54
  }
53
55
  });
54
56
  export {
@@ -1,7 +1,7 @@
1
- import { resolveComponent as x, openBlock as a, createElementBlock as c, normalizeClass as u, createElementVNode as V, normalizeStyle as h, Fragment as p, renderList as y, createBlock as f, defineComponent as I, toRef as g, unref as o, createCommentVNode as v } from "vue";
2
- import { u as S } from "./usePossibleValues-yDswh8Qc.js";
3
- import { S as C } from "./StyledListItem-CjOv-VlL.js";
4
- import { _ as L, Q as B } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
1
+ import { resolveComponent as x, openBlock as a, createElementBlock as u, normalizeClass as c, createElementVNode as p, normalizeStyle as h, Fragment as y, renderList as V, createBlock as f, defineComponent as I, toRef as g, unref as r, createCommentVNode as v } from "vue";
2
+ import { u as S } from "./usePossibleValues-DiYOmnZW.js";
3
+ import { S as C } from "./StyledListItem--sgmJ3W_.js";
4
+ import { _ as L, O as B } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
5
5
  const w = 40, H = 38, T = 36, K = 35, k = {
6
6
  name: "ListBox",
7
7
  components: {
@@ -163,10 +163,10 @@ const w = 40, H = 38, T = 36, K = 35, k = {
163
163
  }, D = ["id", "tabindex", "aria-label", "aria-activedescendant"];
164
164
  function z(e, t, l, n, d, s) {
165
165
  const b = x("StyledListItem");
166
- return a(), c("div", {
167
- class: u(["list-box", { invalid: !l.isValid, disabled: l.disabled }])
166
+ return a(), u("div", {
167
+ class: c(["list-box", { invalid: !l.isValid, disabled: l.disabled }])
168
168
  }, [
169
- V("ul", {
169
+ p("ul", {
170
170
  id: l.id,
171
171
  ref: "ul",
172
172
  role: "listbox",
@@ -176,7 +176,7 @@ function z(e, t, l, n, d, s) {
176
176
  "aria-activedescendant": s.generateOptionId(s.getCurrentItem()),
177
177
  onKeydown: t[0] || (t[0] = (...i) => s.handleKeyDown && s.handleKeyDown(...i))
178
178
  }, [
179
- (a(!0), c(p, null, y(s.selectableValues, (i, r) => (a(), f(b, {
179
+ (a(!0), u(y, null, V(s.selectableValues, (i, o) => (a(), f(b, {
180
180
  id: s.generateOptionId(i),
181
181
  key: `listbox-${i.id}`,
182
182
  ref_for: !0,
@@ -184,7 +184,7 @@ function z(e, t, l, n, d, s) {
184
184
  style: h({ "line-height": `${d.optionLineHeight}px` }),
185
185
  text: i.text,
186
186
  title: i.text,
187
- class: u({
187
+ class: c({
188
188
  focused: s.isCurrentValue(i.id),
189
189
  noselect: !0,
190
190
  empty: i.text.trim() === ""
@@ -195,32 +195,33 @@ function z(e, t, l, n, d, s) {
195
195
  invalid: i.invalid,
196
196
  special: i.special,
197
197
  disabled: l.disabled,
198
- onClick: (m) => !l.disabled && s.setSelected(i.id, r),
199
- onFocus: (m) => !l.disabled && s.setSelected(i.id, r)
198
+ onClick: (m) => !l.disabled && s.setSelected(i.id, o),
199
+ onFocus: (m) => !l.disabled && s.setSelected(i.id, o)
200
200
  }, null, 8, ["id", "style", "text", "title", "class", "aria-selected", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onFocus"]))), 128))
201
201
  ], 44, D)
202
202
  ], 2);
203
203
  }
204
- const A = /* @__PURE__ */ L(k, [["render", z], ["__scopeId", "data-v-a437d16b"]]), N = /* @__PURE__ */ I({
204
+ const A = /* @__PURE__ */ L(k, [["render", z], ["__scopeId", "data-v-a437d16b"]]), O = /* @__PURE__ */ I({
205
205
  __name: "SingleSelectListBoxControl",
206
206
  props: {
207
207
  control: {},
208
208
  handleChange: { type: Function },
209
209
  changeValue: { type: Function },
210
210
  disabled: { type: Boolean },
211
- isValid: { type: Boolean },
211
+ error: { type: Boolean },
212
+ subText: {},
212
213
  onRegisterValidation: { type: Function },
213
214
  labelForId: {}
214
215
  },
215
216
  setup(e) {
216
217
  const t = e, { possibleValues: l } = S(g(t, "control"));
217
- return (n, d) => o(l) ? (a(), f(o(A), {
218
+ return (n, d) => r(l) ? (a(), f(r(A), {
218
219
  key: 0,
219
220
  id: e.labelForId,
220
- "possible-values": o(l),
221
+ "possible-values": r(l),
221
222
  disabled: e.disabled,
222
223
  "model-value": e.control.data,
223
- "is-valid": e.isValid,
224
+ "is-valid": !e.error,
224
225
  ariaLabel: e.control.label,
225
226
  size: e.control.uischema.options?.size,
226
227
  "onUpdate:modelValue": e.changeValue
@@ -228,5 +229,5 @@ const A = /* @__PURE__ */ L(k, [["render", z], ["__scopeId", "data-v-a437d16b"]]
228
229
  }
229
230
  });
230
231
  export {
231
- N as default
232
+ O as default
232
233
  };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as V, computed as i, onMounted as g, watch as k, openBlock as I, createBlock as U, unref as y } from "vue";
2
+ import { u as L, a7 as F } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ function S(e, n, t, o) {
4
+ for (var l = e.length, s = t + -1; ++s < l; )
5
+ if (n(e[s], s, e))
6
+ return s;
7
+ return -1;
8
+ }
9
+ function N(e) {
10
+ return e !== e;
11
+ }
12
+ function O(e, n, t) {
13
+ for (var o = t - 1, l = e.length; ++o < l; )
14
+ if (e[o] === n)
15
+ return o;
16
+ return -1;
17
+ }
18
+ function T(e, n, t) {
19
+ return n === n ? O(e, n, t) : S(e, N, t);
20
+ }
21
+ function A(e, n, t) {
22
+ var o = e == null ? 0 : e.length;
23
+ if (!o)
24
+ return -1;
25
+ var l = 0;
26
+ return T(e, n, l);
27
+ }
28
+ const B = "<any unknown new column>", D = /* @__PURE__ */ V({
29
+ __name: "SortListControl",
30
+ props: {
31
+ control: {},
32
+ handleChange: { type: Function },
33
+ changeValue: { type: Function },
34
+ disabled: { type: Boolean },
35
+ error: { type: Boolean },
36
+ subText: {},
37
+ onRegisterValidation: { type: Function },
38
+ labelForId: {}
39
+ },
40
+ setup(e) {
41
+ const n = e, t = i(() => n.control.data), o = i(
42
+ () => n.control.uischema
43
+ ), l = i(
44
+ () => o.value.options?.unknownElementId ?? B
45
+ ), s = i(
46
+ () => o.value.options?.unknownElementLabel ?? "Any unknown column"
47
+ ), c = L(
48
+ o,
49
+ "possibleValues",
50
+ []
51
+ ), d = (a) => {
52
+ const u = {
53
+ id: a.id,
54
+ text: a.text,
55
+ ...a.special ? { special: !0 } : {}
56
+ };
57
+ return a.type?.id && (u.accessory = {
58
+ type: "dataType",
59
+ name: a.type.id
60
+ }), u;
61
+ }, h = i(
62
+ () => c.value.map(d).concat(
63
+ d({
64
+ id: l.value,
65
+ text: s.value,
66
+ special: !0
67
+ })
68
+ )
69
+ ), f = (a) => {
70
+ if (t.value.length === 0) {
71
+ b();
72
+ return;
73
+ }
74
+ const u = A(t.value, l.value);
75
+ if (u === -1)
76
+ throw new Error(
77
+ `SortList data have to contain the value "${l.value}"`
78
+ );
79
+ const m = t.value.slice(0, u + 1), x = t.value.slice(u + 1), w = new Set(t.value), v = a.map(({ id: r }) => r).filter((r) => !w.has(r));
80
+ v.length > 0 && n.changeValue(m.concat(v, x));
81
+ };
82
+ g(() => {
83
+ f(c.value);
84
+ }), k(() => c.value, f);
85
+ const b = () => {
86
+ n.changeValue(h.value.map(({ id: a }) => a));
87
+ }, p = (a) => {
88
+ n.changeValue(a);
89
+ };
90
+ return (a, u) => (I(), U(y(F), {
91
+ id: e.labelForId,
92
+ ariaLabel: e.control.label,
93
+ "possible-values": h.value,
94
+ "model-value": t.value,
95
+ disabled: e.disabled,
96
+ error: e.error,
97
+ "sub-text": e.subText,
98
+ "onUpdate:modelValue": p
99
+ }, null, 8, ["id", "ariaLabel", "possible-values", "model-value", "disabled", "error", "sub-text"]));
100
+ }
101
+ });
102
+ export {
103
+ B as DEFAULT_ANY_UNKNOWN_VALUES_ID,
104
+ D as default
105
+ };
@@ -1,5 +1,5 @@
1
1
  import { openBlock as s, createElementBlock as n, mergeProps as d, withModifiers as o, renderSlot as a, createTextVNode as m, toDisplayString as f } from "vue";
2
- import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
2
+ import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
3
  const r = {
4
4
  name: "StyledListItem",
5
5
  props: {
@@ -1,22 +1,23 @@
1
- import { defineComponent as T, ref as r, computed as l, openBlock as I, createElementBlock as y, createElementVNode as m, createVNode as v, unref as b } from "vue";
2
- import { W as V, _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "space" }, x = /* @__PURE__ */ T({
1
+ import { defineComponent as S, ref as r, computed as l, openBlock as I, createElementBlock as y, createElementVNode as m, createVNode as v, unref as b } from "vue";
2
+ import { T as f, _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const x = { class: "team-and-space" }, B = { class: "team" }, F = { class: "space" }, N = /* @__PURE__ */ S({
4
4
  __name: "TeamAndSpacesControl",
5
5
  props: {
6
6
  control: {},
7
7
  handleChange: { type: Function },
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
- isValid: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
15
  setup(d) {
15
- const o = d, n = r(""), a = r(""), f = l(
16
+ const o = d, n = r(""), a = r(""), V = l(
16
17
  () => o.control.uischema
17
- ), u = l(() => f.value.options), i = l(() => u.value?.possibleTeams ?? []), p = l(() => u.value?.possibleSpaces ?? []), c = l(
18
+ ), u = l(() => V.value.options), i = l(() => u.value?.possibleTeams ?? []), p = l(() => u.value?.possibleSpaces ?? []), c = l(
18
19
  () => p.value.find(({ id: s }) => s === n.value)?.spaces ?? []
19
- ), h = l(() => !o.control.enabled || i.value.length === 0), _ = l(() => !o.control.enabled || c.value.length === 0), g = () => {
20
+ ), h = l(() => !o.control.enabled || i.value.length === 0), _ = l(() => !o.control.enabled || c.value.length === 0), T = () => {
20
21
  if (o.control.data) {
21
22
  a.value = o.control.data;
22
23
  const s = p.value.find(
@@ -24,16 +25,16 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
24
25
  );
25
26
  s && (n.value = s.id);
26
27
  }
27
- }, S = () => {
28
+ }, g = () => {
28
29
  a.value = c.value[0]?.id ?? "", o.changeValue(a.value);
29
30
  };
30
- return g(), (s, e) => (I(), y("div", B, [
31
- m("div", F, [
32
- v(b(V), {
31
+ return T(), (s, e) => (I(), y("div", x, [
32
+ m("div", B, [
33
+ v(b(f), {
33
34
  modelValue: n.value,
34
35
  "onUpdate:modelValue": [
35
36
  e[0] || (e[0] = (t) => n.value = t),
36
- S
37
+ g
37
38
  ],
38
39
  label: "Team",
39
40
  "aria-label": "account-id",
@@ -42,8 +43,8 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
42
43
  placeholder: "No team selected"
43
44
  }, null, 8, ["modelValue", "disabled", "possible-values"])
44
45
  ]),
45
- m("div", N, [
46
- v(b(V), {
46
+ m("div", F, [
47
+ v(b(f), {
47
48
  modelValue: a.value,
48
49
  "onUpdate:modelValue": [
49
50
  e[1] || (e[1] = (t) => a.value = t),
@@ -58,7 +59,7 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
58
59
  ])
59
60
  ]));
60
61
  }
61
- }), D = /* @__PURE__ */ C(x, [["__scopeId", "data-v-c51d9a0e"]]);
62
+ }), D = /* @__PURE__ */ C(N, [["__scopeId", "data-v-c51d9a0e"]]);
62
63
  export {
63
64
  D as default
64
65
  };
@@ -1,34 +1,35 @@
1
- import { defineComponent as l, computed as t, openBlock as u, createBlock as s, mergeProps as d } from "vue";
2
- import { R as p } from "./ResourceControlBase-D-oG-tP4.js";
3
- const x = /* @__PURE__ */ l({
1
+ import { defineComponent as l, computed as t, openBlock as s, createBlock as i, mergeProps as p } from "vue";
2
+ import { R as d } from "./ResourceControlBase-CeXYJeR1.js";
3
+ const g = /* @__PURE__ */ l({
4
4
  __name: "TeamResourceControl",
5
5
  props: {
6
6
  control: {},
7
7
  handleChange: { type: Function },
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
- isValid: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
15
  setup(e) {
15
16
  const o = e, n = t(
16
17
  () => o.control.uischema.options?.donutTitle || ""
17
- ), a = t(
18
+ ), r = t(
18
19
  () => o.control.uischema.options?.donutText || ""
19
20
  ), c = t(
20
21
  () => o.control.uischema.options?.currentUsage ?? 0
21
- ), r = t(
22
+ ), a = t(
22
23
  () => o.control.data === -1 ? "unlimited" : o.control.data
23
- ), i = t(
24
- () => `${c.value} of ${r.value} ${a.value}`.trim()
24
+ ), u = t(
25
+ () => `${c.value} of ${a.value} ${r.value}`.trim()
25
26
  );
26
- return (m, h) => (u(), s(p, d(o, {
27
+ return (m, h) => (s(), i(d, p(o, {
27
28
  "donut-title": n.value,
28
- "donut-description": i.value
29
+ "donut-description": u.value
29
30
  }), null, 16, ["donut-title", "donut-description"]));
30
31
  }
31
32
  });
32
33
  export {
33
- x as default
34
+ g as default
34
35
  };
@@ -1,28 +1,30 @@
1
- import { defineComponent as a, openBlock as o, createBlock as l, unref as n } from "vue";
2
- import { ao as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const u = /* @__PURE__ */ a({
1
+ import { defineComponent as a, openBlock as o, createBlock as t, unref as l } from "vue";
2
+ import { a8 as n } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const c = /* @__PURE__ */ a({
4
4
  __name: "TextAreaControl",
5
5
  props: {
6
6
  control: {},
7
7
  handleChange: { type: Function },
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
- isValid: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
15
  setup(e) {
15
- return (r, d) => (o(), l(n(t), {
16
+ return (r, d) => (o(), t(l(n), {
16
17
  id: e.labelForId,
17
18
  ariaLabel: e.control.label,
18
19
  "model-value": e.control.data,
19
20
  disabled: e.disabled,
20
21
  rows: e.control.uischema.options?.rows,
21
- error: !e.isValid,
22
+ error: e.error,
23
+ "sub-text": e.subText,
22
24
  "onUpdate:modelValue": e.changeValue
23
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "rows", "error", "onUpdate:modelValue"]));
25
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "rows", "error", "sub-text", "onUpdate:modelValue"]));
24
26
  }
25
27
  });
26
28
  export {
27
- u as default
29
+ c as default
28
30
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js";
1
+ import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-DrD-RvHO.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,50 +1,52 @@
1
- import { defineComponent as m, computed as i, useTemplateRef as h, openBlock as f, createBlock as b, unref as l } from "vue";
2
- import { u, C as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { u as F } from "./useBuiltinValidations-CFNcCpco.js";
4
- const B = /* @__PURE__ */ m({
1
+ import { defineComponent as p, computed as i, useTemplateRef as h, openBlock as b, createBlock as x, unref as l } from "vue";
2
+ import { u, C as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { u as F } from "./useBuiltinValidations-KbChI8vv.js";
4
+ const V = /* @__PURE__ */ p({
5
5
  __name: "TextControl",
6
6
  props: {
7
7
  control: {},
8
8
  handleChange: { type: Function },
9
9
  changeValue: { type: Function },
10
10
  disabled: { type: Boolean },
11
- isValid: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
12
13
  onRegisterValidation: { type: Function },
13
14
  labelForId: {}
14
15
  },
15
- setup(e, { expose: d }) {
16
+ setup(e, { expose: r }) {
16
17
  const a = e;
17
18
  F(
18
19
  {
19
20
  pattern: ({ pattern: t }) => {
20
21
  const o = new RegExp(`^(${t})$`);
21
- return (p) => o.test(p ?? "");
22
+ return (m) => o.test(m ?? "");
22
23
  },
23
24
  minLength: ({ minLength: t }) => (o) => (o?.length ?? 0) >= t,
24
25
  maxLength: ({ maxLength: t }) => (o) => (o?.length ?? 0) <= t
25
26
  },
26
27
  a
27
28
  );
28
- const n = i(() => a.control.uischema), r = u(n, "placeholder", ""), c = u(n, "suggestions"), g = i(
29
+ const n = i(() => a.control.uischema), d = u(n, "placeholder", ""), c = u(n, "suggestions"), g = i(
29
30
  () => n.value?.options?.suggestionsTitle || "Suggestions"
30
31
  ), s = h("inputField");
31
- return d({
32
+ return r({
32
33
  focus: () => s.value?.focus()
33
- }), (t, o) => (f(), b(l(x), {
34
+ }), (t, o) => (b(), x(l(f), {
34
35
  id: e.labelForId,
35
36
  ref_key: "inputField",
36
37
  ref: s,
37
38
  ariaLabel: e.control.label,
38
- placeholder: l(r),
39
+ placeholder: l(d),
39
40
  "model-value": e.control.data ?? "",
40
41
  disabled: e.disabled,
41
- error: !e.isValid,
42
+ error: e.error,
43
+ "sub-text": e.subText,
42
44
  suggestions: l(c) ?? void 0,
43
45
  "suggestions-headline": g.value,
44
46
  "onUpdate:modelValue": e.changeValue
45
- }, null, 8, ["id", "ariaLabel", "placeholder", "model-value", "disabled", "error", "suggestions", "suggestions-headline", "onUpdate:modelValue"]));
47
+ }, null, 8, ["id", "ariaLabel", "placeholder", "model-value", "disabled", "error", "sub-text", "suggestions", "suggestions-headline", "onUpdate:modelValue"]));
46
48
  }
47
49
  });
48
50
  export {
49
- B as _
51
+ V as _
50
52
  };
@@ -1,20 +1,21 @@
1
- import { defineComponent as b, computed as u, ref as V, openBlock as x, createBlock as v, unref as F } from "vue";
2
- import { V as G } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
1
+ import { defineComponent as x, computed as u, ref as U, openBlock as V, createBlock as v, unref as B } from "vue";
2
+ import { R as F } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
3
  import { p as m } from "./plainDateTimeUtils-CR0UhpkD.js";
4
4
  import { U as c } from "./classApi-CHpAZrj3.js";
5
- const I = /* @__PURE__ */ b({
5
+ const I = /* @__PURE__ */ x({
6
6
  __name: "TimeControl",
7
7
  props: {
8
8
  control: {},
9
9
  handleChange: { type: Function },
10
10
  changeValue: { type: Function },
11
11
  disabled: { type: Boolean },
12
- isValid: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
13
14
  onRegisterValidation: { type: Function },
14
15
  labelForId: {}
15
16
  },
16
- setup(a) {
17
- const n = a, f = u(() => n.control.uischema.options), p = u(
17
+ setup(n) {
18
+ const a = n, f = u(() => a.control.uischema.options), p = u(
18
19
  () => m.getMaxGranularity(f.value)
19
20
  ), y = (t) => {
20
21
  if (!t)
@@ -35,33 +36,34 @@ const I = /* @__PURE__ */ b({
35
36
  }
36
37
  }
37
38
  }, g = (t, e) => t === null ? "" : e === "minute" ? t.toString({ smallestUnit: "minute" }) : e === "second" ? t.toString({ smallestUnit: "second" }) : t.toString({ fractionalSecondDigits: 3 }), s = u(
38
- () => y(n.control.data)
39
- ), o = V(
40
- m.detectGranularity(n.control.data)
39
+ () => y(a.control.data)
40
+ ), o = U(
41
+ m.detectGranularity(a.control.data)
41
42
  );
42
- let r, i, l = !1;
43
- const h = () => {
44
- l = !1;
45
- const t = r === void 0 ? s.value : r, e = i ?? o.value;
46
- r = void 0, i = void 0, o.value = e, n.changeValue(g(t, e));
43
+ let r, l, i = !1;
44
+ const b = () => {
45
+ i = !1;
46
+ const t = r === void 0 ? s.value : r, e = l ?? o.value;
47
+ r = void 0, l = void 0, o.value = e, a.changeValue(g(t, e));
47
48
  }, d = () => {
48
- l || (l = !0, queueMicrotask(h));
49
+ i || (i = !0, queueMicrotask(b));
49
50
  }, T = (t) => {
50
51
  r = t, d();
51
- }, U = (t) => {
52
- i = t, d();
52
+ }, h = (t) => {
53
+ l = t, d();
53
54
  };
54
- return (t, e) => (x(), v(F(G), {
55
- id: a.labelForId,
55
+ return (t, e) => (V(), v(B(F), {
56
+ id: n.labelForId,
56
57
  "model-value": s.value,
57
58
  granularity: o.value,
58
- ariaLabel: n.control.label,
59
+ ariaLabel: a.control.label,
59
60
  "max-granularity": p.value,
60
- disabled: a.disabled,
61
- error: !a.isValid,
61
+ disabled: n.disabled,
62
+ error: n.error,
63
+ "sub-text": n.subText,
62
64
  "onUpdate:modelValue": T,
63
- "onUpdate:granularity": U
64
- }, null, 8, ["id", "model-value", "granularity", "ariaLabel", "max-granularity", "disabled", "error"]));
65
+ "onUpdate:granularity": h
66
+ }, null, 8, ["id", "model-value", "granularity", "ariaLabel", "max-granularity", "disabled", "error", "sub-text"]));
65
67
  }
66
68
  });
67
69
  export {