@knime/jsonforms 1.21.8 → 1.21.10

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 (83) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{AnyOfTwinlist-C0gjxeQW.js → AnyOfTwinlist-B_8lHLfQ.js} +1 -1
  3. package/dist/{CheckboxControl-CS6iXHnF.js → CheckboxControl-BEgsUYsF.js} +1 -1
  4. package/dist/{CheckboxesControl-CPKIkyWt.js → CheckboxesControl-U94zhUTj.js} +2 -2
  5. package/dist/{ColorControl-DeSwgyjS.js → ColorControl-BwXL_b6e.js} +1 -1
  6. package/dist/{ColorPreviewControl-CntI0nTL.js → ColorPreviewControl-Nc4_2XQE.js} +1 -1
  7. package/dist/{ComboBoxControl-DBYnBkC4.js → ComboBoxControl-CMt5C1WB.js} +2 -2
  8. package/dist/{DateControl-Cx_CwvNB.js → DateControl-_6MxGYp3.js} +1 -1
  9. package/dist/{DateTimeControl-BJsDzufC.js → DateTimeControl-CSbS7ZeC.js} +1 -1
  10. package/dist/{DateTimeFormatPickerControl-C80v1qfK.js → DateTimeFormatPickerControl-T12N4Hji.js} +1 -1
  11. package/dist/{DateTimeFormatPickerWithTypeControl-Dt-FKtYV.js → DateTimeFormatPickerWithTypeControl-DXAx4LIV.js} +4 -4
  12. package/dist/{DropdownControl-D_BnA4-1.js → DropdownControl-D9eLhQJZ.js} +2 -2
  13. package/dist/ExecutorCoresControl-BdiU1thj.js +38 -0
  14. package/dist/ExecutorMemoryControl-C_lSe5tX.js +34 -0
  15. package/dist/{FileUploadControl-D42rjpJg.js → FileUploadControl-CGxSpLv8.js} +2 -2
  16. package/dist/{GridSelectionControl-BJk8-yiM.js → GridSelectionControl-nH9CHu22.js} +1 -1
  17. package/dist/{HorizontalLayout-DwdPdBTW.js → HorizontalLayout-CLKcVmLt.js} +1 -1
  18. package/dist/{IntegerControl-D8OzxbRA.js → IntegerControl-bKZFMlHH.js} +1 -1
  19. package/dist/{IntervalControl-Drljrv-b.js → IntervalControl-dcZzACNn.js} +4 -4
  20. package/dist/{LinkControl-BvBBTFCs.js → LinkControl-RWRv55Lc.js} +1 -1
  21. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-D8GkqWTx.js} +1 -1
  22. package/dist/{ManualTwinlistControl-By0Hur_m.js → ManualTwinlistControl-NgdcV8W6.js} +3 -3
  23. package/dist/{MultiSelectListBoxControl-nmvLP18g.js → MultiSelectListBoxControl-DOXHVyEz.js} +3 -3
  24. package/dist/{MultimodeTwinlistControl-yCdeWH2E.js → MultimodeTwinlistControl-DWt7mOFc.js} +1 -1
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DdIxzjaQ.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DAvxyoBw.js} +3 -3
  26. package/dist/{NameFilter-D1TMJydD.js → NameFilter-CAIWblwQ.js} +1 -1
  27. package/dist/{NumberControl-uLMOLEbg.js → NumberControl-BsOVxXot.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7.js → NumberControlBase.vue_vue_type_script_setup_true_lang--yzd4P7C.js} +2 -2
  29. package/dist/{OneOfDropdown-CDwwxb3h.js → OneOfDropdown-CVwforcP.js} +1 -1
  30. package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk.js → RadioButtonsWithDescriptionControl-D-priiOo.js} +4 -4
  31. package/dist/{RadioControl-C73s-icb.js → RadioControl-D_N2FV99.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BqyzLUv0.js} +2 -2
  33. package/dist/ResourceControlBase-CyDKQuop.js +69 -0
  34. package/dist/{RichTextControl-D9QD2_uO.js → RichTextControl-DVjT-s68.js} +2092 -2006
  35. package/dist/{SectionHeading-BaLPd-bo.js → SectionHeading-Hi57slE4.js} +1 -1
  36. package/dist/{SectionLayout-DY27pAtG.js → SectionLayout-DkftU3_h.js} +3 -3
  37. package/dist/{SettingsSubPanel-C-ulWns9.js → SettingsSubPanel-S-uEarKS.js} +1 -1
  38. package/dist/{SettingsSubPanelLayout-82gMWhpv.js → SettingsSubPanelLayout-DZ7JMwx0.js} +4 -4
  39. package/dist/{SimpleButtonControl--7FF9sX7.js → SimpleButtonControl-B4SDoCby.js} +1 -1
  40. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-ByZ6Idr0.js} +10605 -10527
  41. package/dist/{SimpleTwinlistControl-P4KEYOq0.js → SimpleTwinlistControl-BxjwJ7U2.js} +2 -2
  42. package/dist/{SingleSelectControl-C_ZKkV5m.js → SingleSelectControl-Bl0_ggc-.js} +2 -2
  43. package/dist/{SingleSelectListBoxControl-oMWH0vEE.js → SingleSelectListBoxControl-DS_3M64Y.js} +3 -3
  44. package/dist/{SortListControl-4v3T2j_9.js → SortListControl-C72Hjx1P.js} +1 -1
  45. package/dist/{StyledListItem-D3LSfgGV.js → StyledListItem-DtZIuaYv.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-CH5ImByy.js → TeamAndSpacesControl-DSACcEMC.js} +1 -1
  47. package/dist/TeamResourceControl-Hhb8OLNK.js +34 -0
  48. package/dist/{TextAreaControl-CrsZSU_f.js → TextAreaControl-Dtn9RMYU.js} +1 -1
  49. package/dist/{TextControl-B0ag-3Pv.js → TextControl-Cpgi2Bsz.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-CVSXAICR.js → TextControl.vue_vue_type_script_setup_true_lang-Dq92DMbG.js} +2 -2
  51. package/dist/{TimeControl-Bt5OcjBc.js → TimeControl-DVqves3Y.js} +1 -1
  52. package/dist/{TimePartInput-CvwAzDuY.js → TimePartInput-CRwLhtQX.js} +1 -1
  53. package/dist/{TimeframesControl-BE3LFgyl.js → TimeframesControl-4tNuq94p.js} +2 -2
  54. package/dist/{Tooltip-UlemzxdS.js → Tooltip-Cd22lolk.js} +1 -1
  55. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-D1LyC7i2.js} +2 -2
  56. package/dist/{TypedStringFilter-ry7fTUTx.js → TypedStringFilter-D48b6j3_.js} +1 -1
  57. package/dist/{ValueSwitch-BXaDBm2C.js → ValueSwitch-CYxVsMZ3.js} +1 -1
  58. package/dist/{ValueSwitchControl-aVx7pUi9.js → ValueSwitchControl-BTmv-Iri.js} +1 -1
  59. package/dist/{VerticalLayout-Bv-LJOZ0.js → VerticalLayout-DfcS0qEs.js} +2 -2
  60. package/dist/{VerticalLayoutBase-BQc4FVh8.js → VerticalLayoutBase-CFaxSfH-.js} +1 -1
  61. package/dist/{ZonedDateTimeControl-6MUvXzd3.js → ZonedDateTimeControl-DtqAbtGV.js} +2 -2
  62. package/dist/{_Uint8Array-C_ozLuQF.js → _Uint8Array-DmwexZ1j.js} +1 -1
  63. package/dist/{_baseIteratee-Bd_FINlb.js → _baseIteratee-BNAeImDg.js} +3 -3
  64. package/dist/floating-ui.vue-Bk6u3tWN.js +1060 -0
  65. package/dist/knime-jsonforms.css +1 -1
  66. package/dist/knime-jsonforms.js +7 -7
  67. package/dist/{localTimeUtils-DBMwKtLh.js → localTimeUtils-BLOKJUkY.js} +5 -5
  68. package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +5 -17
  69. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -5
  70. package/dist/testing.js +2603 -2590
  71. package/dist/{toString-C-CNeuJl.js → toString-z9ddxBtV.js} +1 -1
  72. package/dist/{useBuiltinValidations-BBVoXg9m.js → useBuiltinValidations-D8kIeqSW.js} +1 -1
  73. package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
  74. package/dist/{usePossibleValues-B-W6u-1T.js → usePossibleValues-BHZkln04.js} +1 -1
  75. package/dist/{useUnknownValuesInTwinlist-BbwGcno5.js → useUnknownValuesInTwinlist-CdikgvUE.js} +1 -1
  76. package/package.json +6 -6
  77. package/dist/ExecutorCoresControl-BnglyGMR.js +0 -44
  78. package/dist/ExecutorMemoryControl-CRATGs9C.js +0 -41
  79. package/dist/ResourceControlBase-Bqq1PAX_.js +0 -159
  80. package/dist/TeamResourceControl-BFMuyWnk.js +0 -38
  81. package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
  82. package/dist/src/uiComponents/resourceControls/SmallDonutChart.vue.d.ts +0 -20
  83. package/dist/useDropdownNavigation-2Yhk7zes.js +0 -821
@@ -1,5 +1,5 @@
1
1
  import { computed as l } from "vue";
2
- import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
2
+ import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-ByZ6Idr0.js";
3
3
  const t = (s, e) => {
4
4
  const u = l(() => s.value.uischema), o = d(u, "possibleValues");
5
5
  return { possibleValues: l(() => u.value.providedOptions?.includes("possibleValues") ? o.value : u.value.options?.possibleValues ?? (typeof e?.defaultOnNonProvided > "u" ? [] : e?.defaultOnNonProvided)) };
@@ -1,6 +1,6 @@
1
1
  import { ref as v, watch as m } from "vue";
2
2
  import { g as S, a as g } from "./index-Blg1O3Fz.js";
3
- import "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
3
+ import "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-ByZ6Idr0.js";
4
4
  const w = ({
5
5
  knownValuesSide: s,
6
6
  possibleValueIds: l,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.21.8",
3
+ "version": "1.21.10",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,16 +16,16 @@
16
16
  "@jsonforms/core": "3.4.0",
17
17
  "@jsonforms/vue": "3.4.0",
18
18
  "@jsonforms/vue-vanilla": "3.4.0",
19
- "@knime/kds-components": "0.23.1",
19
+ "@knime/kds-components": "0.23.2",
20
20
  "ajv": "8.18.0",
21
21
  "date-fns": "2.30.0",
22
22
  "focus-trap-vue": "4.0.3",
23
23
  "tabbable": "6.2.0",
24
24
  "uuid": "13.0.0",
25
- "@knime/components": "1.46.2",
26
- "@knime/rich-text-editor": "1.8.19",
25
+ "@knime/components": "1.46.4",
26
+ "@knime/rich-text-editor": "1.8.21",
27
27
  "@knime/styles": "1.15.1",
28
- "@knime/utils": "1.10.1"
28
+ "@knime/utils": "1.11.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "consola": "3.x",
@@ -36,7 +36,7 @@
36
36
  "@vitejs/plugin-vue": "^6.0.1",
37
37
  "@vue/test-utils": "2.4.6",
38
38
  "consola": "3.4.2",
39
- "lodash-es": "4.17.23",
39
+ "lodash-es": "4.18.1",
40
40
  "modern-normalize": "3.0.1",
41
41
  "postcss": "8.5.6",
42
42
  "type-fest": "4.26.1",
@@ -1,44 +0,0 @@
1
- import { defineComponent as h, computed as o, openBlock as m, createBlock as v, normalizeProps as _, guardReactiveProps as f, withCtx as x, createElementVNode as t, toDisplayString as a } from "vue";
2
- import { R as C } from "./ResourceControlBase-Bqq1PAX_.js";
3
- import { _ as y } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
4
- const g = { class: "info-container" }, V = { class: "chart-title" }, b = { class: "chart-description" }, B = /* @__PURE__ */ h({
5
- __name: "ExecutorCoresControl",
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
- },
15
- setup(c) {
16
- const e = c, i = o(
17
- () => e.control.uischema.options?.donutTitle || ""
18
- ), l = o(
19
- () => e.control.uischema.options?.currentUsage ?? 0
20
- ), n = o(
21
- () => e.control.schema.secondaryValue || 0
22
- ), s = o(
23
- () => e.control.uischema.options?.donutMax ?? 1 / 0
24
- ), r = o(
25
- () => s.value === -1 ? "unlimited" : s.value
26
- ), u = o(
27
- () => e.control.uischema.options?.isSharedContext ?? !1
28
- ), d = o(() => l.value + n.value), p = o(
29
- () => `This execution context will use ${n.value} vCore tokens. In total, ${d.value} of ${r.value} vCore tokens available ${u.value ? "from the license" : "for this team"} will be used.`
30
- );
31
- return (k, F) => (m(), v(C, _(f(e)), {
32
- "donut-info": x(() => [
33
- t("div", g, [
34
- t("div", V, a(i.value), 1),
35
- t("div", b, a(p.value), 1)
36
- ])
37
- ]),
38
- _: 1
39
- }, 16));
40
- }
41
- }), $ = /* @__PURE__ */ y(B, [["__scopeId", "data-v-58b92dd1"]]);
42
- export {
43
- $ as default
44
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as d, computed as o, openBlock as p, createBlock as m, normalizeProps as _, guardReactiveProps as h, withCtx as f, createElementVNode as e, toDisplayString as a } from "vue";
2
- import { R as v } from "./ResourceControlBase-Bqq1PAX_.js";
3
- import { _ as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
4
- const y = { class: "info-container" }, B = { class: "chart-title" }, g = { class: "chart-description" }, C = /* @__PURE__ */ d({
5
- __name: "ExecutorMemoryControl",
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
- },
15
- setup(s) {
16
- const t = s, n = o(
17
- () => t.control.schema.secondaryValue || 0
18
- ), c = o(
19
- () => t.control.uischema.options?.donutTitle || ""
20
- ), i = o(
21
- () => t.control.uischema.options?.currentUsage ?? 0
22
- ), r = o(
23
- () => t.control.uischema.options?.donutMax ?? 1 / 0
24
- ), l = o(() => n.value + i.value), u = o(
25
- () => `This execution context will use a maximum of ${n.value} GB RAM.
26
- In total, ${l.value} GB of ${r.value} GB available for this team will be used.`
27
- );
28
- return (V, b) => (p(), m(v, _(h(t)), {
29
- "donut-info": f(() => [
30
- e("div", y, [
31
- e("div", B, a(c.value), 1),
32
- e("div", g, a(u.value), 1)
33
- ])
34
- ]),
35
- _: 1
36
- }, 16));
37
- }
38
- }), I = /* @__PURE__ */ x(C, [["__scopeId", "data-v-515b606e"]]);
39
- export {
40
- I as default
41
- };
@@ -1,159 +0,0 @@
1
- import { defineComponent as B, computed as e, openBlock as s, createElementBlock as u, createElementVNode as h, normalizeClass as w, createCommentVNode as M, createBlock as D, resolveDynamicComponent as F, withCtx as T, createVNode as b, unref as _, renderSlot as S } from "vue";
2
- import { _ as C, a4 as $ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
3
- import { T as O } from "./Tooltip-UlemzxdS.js";
4
- const R = { class: "donut-container" }, N = ["viewBox"], I = ["r"], L = ["r"], U = ["viewBox"], E = ["r", "stroke-width"], W = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], K = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], z = 0.5, o = 22, g = 10, A = /* @__PURE__ */ B({
5
- __name: "SmallDonutChart",
6
- props: {
7
- value: {},
8
- secondaryValue: { default: 0 },
9
- maxValue: {},
10
- acceptValuesLargerThanMax: { type: Boolean, default: !1 },
11
- animate: { type: Boolean, default: !0 }
12
- },
13
- setup(a) {
14
- const t = e(() => {
15
- const n = Math.max(0, a.value);
16
- return a.acceptValuesLargerThanMax ? n : Math.min(n, a.maxValue);
17
- }), f = e(() => {
18
- const n = Math.max(0, a.secondaryValue + t.value);
19
- return a.acceptValuesLargerThanMax ? n : Math.min(n, a.maxValue);
20
- }), c = e(() => o - g), x = e(
21
- // to account for rendering inaccuracies the background stroke is slightly smaller than the wedge stroke
22
- () => c.value - z
23
- ), r = e(() => o - c.value / 2), i = e(() => 2 * o), d = e(() => `0 0 ${i.value} ${i.value}`), l = e(() => 2 * Math.PI * r.value), m = (n) => {
24
- if (a.maxValue <= 0 || !Number.isFinite(a.maxValue))
25
- return l.value;
26
- const V = Math.min(
27
- n / a.maxValue * l.value,
28
- l.value
29
- );
30
- return Math.max(l.value - V, 0);
31
- }, y = e(
32
- () => m(t.value)
33
- ), k = e(
34
- () => m(f.value)
35
- ), v = e(() => `rotate(-90, ${o}, ${o})`), p = e(() => !Number.isFinite(a.maxValue));
36
- return (n, V) => (s(), u("div", R, [
37
- p.value ? (s(), u("svg", {
38
- key: 0,
39
- viewBox: d.value,
40
- class: "donut-chart"
41
- }, [
42
- h("circle", {
43
- class: "disabled-circle",
44
- cx: o,
45
- cy: o,
46
- r: o - 0.5,
47
- "stroke-width": "1",
48
- fill: "transparent"
49
- }, null, 8, I),
50
- h("circle", {
51
- class: "disabled-inner-circle",
52
- cx: o,
53
- cy: o,
54
- r: g + 0.5,
55
- "stroke-width": "1",
56
- fill: "transparent"
57
- }, null, 8, L)
58
- ], 8, N)) : (s(), u("svg", {
59
- key: 1,
60
- viewBox: d.value,
61
- class: "donut-chart"
62
- }, [
63
- h("circle", {
64
- class: "background-circle",
65
- cx: o,
66
- cy: o,
67
- r: r.value,
68
- "stroke-width": x.value,
69
- fill: "transparent"
70
- }, null, 8, E),
71
- a.secondaryValue ? (s(), u("circle", {
72
- key: 0,
73
- class: w(["value-wedge", "secondary-segment", { animate: a.animate }]),
74
- cx: o,
75
- cy: o,
76
- r: r.value,
77
- "stroke-width": c.value,
78
- "stroke-dasharray": l.value,
79
- "stroke-dashoffset": k.value,
80
- fill: "transparent",
81
- transform: v.value
82
- }, null, 10, W)) : M("", !0),
83
- h("circle", {
84
- class: w(["value-wedge", "primary-segment", { animate: a.animate }]),
85
- cx: o,
86
- cy: o,
87
- r: r.value,
88
- "stroke-width": c.value,
89
- "stroke-dasharray": l.value,
90
- "stroke-dashoffset": y.value,
91
- fill: "transparent",
92
- transform: v.value
93
- }, null, 10, K)
94
- ], 8, U))
95
- ]));
96
- }
97
- }), G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-f344a6aa"]]), P = {
98
- key: 0,
99
- class: "chart"
100
- }, j = /* @__PURE__ */ B({
101
- __name: "ResourceControlBase",
102
- props: {
103
- control: {},
104
- handleChange: { type: Function },
105
- changeValue: { type: Function },
106
- disabled: { type: Boolean },
107
- isValid: { type: Boolean },
108
- onRegisterValidation: { type: Function },
109
- labelForId: {}
110
- },
111
- setup(a) {
112
- const t = a, f = e(
113
- () => t.control.uischema.options?.modelMax ?? !1
114
- ), c = e(
115
- // if currentUsage is supplied the donut chart should use that since the data will model something else (e.g. the maximum usage)
116
- () => t.control.uischema.options?.currentUsage ?? t.control.data
117
- ), x = e(
118
- () => t.control.schema.secondaryValue ?? 0
119
- ), r = e(
120
- () => f.value ? t.control.data : t.control.uischema.options?.donutMax ?? t.control.schema.maximum
121
- ), i = e(
122
- () => t.control.uischema.options?.disabledTooltip || ""
123
- ), d = e(() => t.disabled && i.value ? O : "div"), l = e(() => t.control.uischema.options?.animate ?? !0), m = e(
124
- () => t.control.uischema.options?.showDonut ?? !0
125
- ), y = e(() => t.control.schema.minimum ?? 0), k = e(() => t.control.schema.maximum ?? 1 / 0), v = e(() => t.control.uischema.options?.step ?? 1), p = e(() => t.control.uischema.options?.unit ?? "");
126
- return (n, V) => (s(), u("div", null, [
127
- (s(), D(F(d.value), {
128
- text: i.value,
129
- class: "input-wrapper"
130
- }, {
131
- default: T(() => [
132
- b(_($), {
133
- ariaLabel: a.control.label,
134
- "model-value": a.control.data,
135
- min: y.value,
136
- max: k.value,
137
- step: v.value,
138
- unit: p.value,
139
- disabled: a.disabled,
140
- "onUpdate:modelValue": a.changeValue
141
- }, null, 8, ["ariaLabel", "model-value", "min", "max", "step", "unit", "disabled", "onUpdate:modelValue"]),
142
- m.value ? (s(), u("div", P, [
143
- b(G, {
144
- value: c.value,
145
- "secondary-value": x.value,
146
- "max-value": r.value,
147
- animate: l.value
148
- }, null, 8, ["value", "secondary-value", "max-value", "animate"]),
149
- S(n.$slots, "donut-info", {}, void 0, !0)
150
- ])) : M("", !0)
151
- ]),
152
- _: 3
153
- }, 8, ["text"]))
154
- ]));
155
- }
156
- }), Q = /* @__PURE__ */ C(j, [["__scopeId", "data-v-fc148f36"]]);
157
- export {
158
- Q as R
159
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as l, computed as t, openBlock as d, createBlock as u, normalizeProps as p, guardReactiveProps as m, withCtx as _, createElementVNode as e, toDisplayString as n } from "vue";
2
- import { R as h } from "./ResourceControlBase-Bqq1PAX_.js";
3
- import { _ as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DiQR7rXG.js";
4
- const v = { class: "info-container" }, x = { class: "chart-title" }, g = { class: "chart-description" }, y = /* @__PURE__ */ l({
5
- __name: "TeamResourceControl",
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
- },
15
- setup(a) {
16
- const o = a, c = t(
17
- () => o.control.uischema.options?.donutTitle || ""
18
- ), s = t(
19
- () => o.control.uischema.options?.donutText || ""
20
- ), r = t(
21
- () => o.control.uischema.options?.currentUsage ?? 0
22
- ), i = t(
23
- () => o.control.data === -1 ? "unlimited" : o.control.data
24
- );
25
- return (C, R) => (d(), u(h, p(m(o)), {
26
- "donut-info": _(() => [
27
- e("div", v, [
28
- e("div", x, n(c.value), 1),
29
- e("div", g, n(`${r.value} of ${i.value} ${s.value}`), 1)
30
- ])
31
- ]),
32
- _: 1
33
- }, 16));
34
- }
35
- }), V = /* @__PURE__ */ f(y, [["__scopeId", "data-v-2658cbca"]]);
36
- export {
37
- V as default
38
- };