@knime/jsonforms 1.19.6 → 1.20.1

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 (136) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{AnyOfTwinlist-DXjbNRLq.js → AnyOfTwinlist-CosNPUKG.js} +1 -1
  3. package/dist/{Checkbox-CZIoPAZU.js → Checkbox-BLHyWo4X.js} +1 -1
  4. package/dist/{CheckboxControl-D6LP2SAg.js → CheckboxControl-DyBcYCFe.js} +1 -1
  5. package/dist/{CheckboxesControl-D9DA7-T0.js → CheckboxesControl-DqcN6RcZ.js} +2 -2
  6. package/dist/{ColorControl-rCN_X6Wk.js → ColorControl-CPklP_Ox.js} +1 -1
  7. package/dist/{ColorPreviewControl-Dv7_mc6t.js → ColorPreviewControl-BhbI9XDV.js} +1 -1
  8. package/dist/{ComboBoxControl-DUaaxMZ_.js → ComboBoxControl-DR9x8i0b.js} +8 -8
  9. package/dist/{DateControl-5AuxnnvM.js → DateControl-DJxV5wzs.js} +1 -1
  10. package/dist/DateTimeControl-CoNsGbev.js +44 -0
  11. package/dist/{DateTimeFormatPickerControl-CbLnDDbr.js → DateTimeFormatPickerControl-BmtxQjzI.js} +1 -1
  12. package/dist/{DateTimeFormatPickerWithTypeControl-BBpPB5TM.js → DateTimeFormatPickerWithTypeControl-CK7LsO-R.js} +12 -12
  13. package/dist/{DropdownControl-2UdsfufQ.js → DropdownControl-nLA0kshc.js} +5 -5
  14. package/dist/ExecutorCoresControl-BgB0R_Xv.js +42 -0
  15. package/dist/ExecutorMemoryControl-Ck5naUl2.js +41 -0
  16. package/dist/FileUploadControl-CByhtwi1.js +197 -0
  17. package/dist/GridSelectionControl-8g--blrX.js +115 -0
  18. package/dist/{HorizontalLayout-ao9JZxiP.js → HorizontalLayout-Bc4F2xJR.js} +6 -6
  19. package/dist/InputField-Gw6K93vY.js +148 -0
  20. package/dist/{IntegerControl-wq8pma-E.js → IntegerControl-CAh031mO.js} +1 -1
  21. package/dist/{IntervalControl-DuI-4Y1d.js → IntervalControl-ocjzEBto.js} +168 -184
  22. package/dist/LinkControl-BML6cXj-.js +35 -0
  23. package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-C2sH3IaG.js +57 -0
  24. package/dist/{LoadingIcon-BhelL9SM.js → LoadingIcon-B0S8ig5H.js} +1 -1
  25. package/dist/{ManualTwinlistControl-rP4L1RP6.js → ManualTwinlistControl-BdbrjZtS.js} +4 -4
  26. package/dist/{MultiSelectListBoxControl-iUqimLmu.js → MultiSelectListBoxControl-0M1iLfXZ.js} +2 -2
  27. package/dist/{MultimodeTwinlistControl-DTuLtZRx.js → MultimodeTwinlistControl-aL0Jr_Hp.js} +19 -20
  28. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-DhQuoNrM.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C61plPNM.js} +2 -2
  29. package/dist/{MultiselectListBox-DijeK4wH.js → MultiselectListBox-BJqQv0AT.js} +5 -5
  30. package/dist/{NameFilter-C1_u0chZ.js → NameFilter-DvoXjvd8.js} +1 -1
  31. package/dist/{NumberControl-BYvfrBJs.js → NumberControl-BEYR3aHU.js} +1 -1
  32. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DBbHZCg_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js} +2 -2
  33. package/dist/{OneOfDropdown-BcqrG6U3.js → OneOfDropdown-Bg1JOuCZ.js} +1 -1
  34. package/dist/RadioButtonsWithDescriptionControl-Cmzn6X0W.js +57 -0
  35. package/dist/{RadioControl-BNB_hYVd.js → RadioControl-D4invwra.js} +2 -2
  36. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-C7JiVgxq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CuOORFSE.js} +2 -2
  37. package/dist/ResourceControlBase-BCx6cBBz.js +158 -0
  38. package/dist/{RichTextControl-BIjtuTf7.js → RichTextControl-TbANBneT.js} +2059 -1991
  39. package/dist/{SectionHeading-CUxdd2GX.js → SectionHeading-DoNDREK2.js} +1 -1
  40. package/dist/{SectionLayout-NqTBT8Al.js → SectionLayout-Dsd4wFck.js} +3 -3
  41. package/dist/SettingsSubPanel-sQPONy-U.js +5 -0
  42. package/dist/{SettingsSubPanelLayout-Biu_QPw1.js → SettingsSubPanelLayout-DbYqmGOS.js} +7 -7
  43. package/dist/{SimpleButtonControl-B0cnKTy4.js → SimpleButtonControl-DhM4t6v3.js} +6 -6
  44. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js +26176 -0
  45. package/dist/{SimpleTwinlistControl-BIIN8GzH.js → SimpleTwinlistControl-Chay0D48.js} +2 -2
  46. package/dist/{SingleSelectControl-GbRcLm19.js → SingleSelectControl-BRfqeLOh.js} +2 -2
  47. package/dist/{SingleSelectListBoxControl-DkRfB8oZ.js → SingleSelectListBoxControl-DyDspddM.js} +5 -5
  48. package/dist/{SortListControl-BTS1lJOo.js → SortListControl-DX0uhRfk.js} +104 -118
  49. package/dist/{StyledListItem-DBa0VNHX.js → StyledListItem-B_FaDixp.js} +1 -1
  50. package/dist/TeamAndSpacesControl-CVGPGpqd.js +64 -0
  51. package/dist/TeamResourceControl-DD-USgie.js +38 -0
  52. package/dist/{TextAreaControl-DrABn8Uh.js → TextAreaControl-BCIrrOzR.js} +1 -1
  53. package/dist/{TextControl-CHyUjofE.js → TextControl-B_2oeFoq.js} +1 -1
  54. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CuCBV4pA.js +45 -0
  55. package/dist/{TimeControl-B4oVEJCX.js → TimeControl-CeL2KxIB.js} +1 -1
  56. package/dist/TimePartInput-BbHxGv7L.js +254 -0
  57. package/dist/TimeframesControl-BBUDxMaB.js +87 -0
  58. package/dist/Tooltip-B5O8iOuG.js +24 -0
  59. package/dist/{TwinlistControlBase-CiK7yseq.js → TwinlistControlBase--CFSodU_.js} +3 -3
  60. package/dist/{TwinlistLoadingInfo-x51VCOej.js → TwinlistLoadingInfo-aB5QCSFX.js} +18 -18
  61. package/dist/{TypedStringFilter-DC6B-Fds.js → TypedStringFilter-BjyKvhn1.js} +1 -1
  62. package/dist/{ValueSwitch-ChY5YK2o.js → ValueSwitch-DYxCMQ9c.js} +4 -4
  63. package/dist/{ValueSwitchControl-CJdAUIwq.js → ValueSwitchControl-CQkiPcwC.js} +1 -1
  64. package/dist/{VerticalLayout-DWbD5oCa.js → VerticalLayout-DygOb7L9.js} +2 -2
  65. package/dist/{VerticalLayoutBase-COwlULuo.js → VerticalLayoutBase-Dq_p4WmZ.js} +1 -1
  66. package/dist/{ZonedDateTimeControl-CLiwgCKR.js → ZonedDateTimeControl-CKyKzTtF.js} +2 -2
  67. package/dist/_Uint8Array-Boy5On8p.js +349 -0
  68. package/dist/_baseAssignValue-CG1hoqdJ.js +19 -0
  69. package/dist/{_baseEach-84mBqaP3.js → _baseEach-LxtQB6N-.js} +1 -1
  70. package/dist/_baseIteratee-BBGehgFZ.js +308 -0
  71. package/dist/floating-ui.vue-Bk6u3tWN.js +1060 -0
  72. package/dist/isArray-WzO_os3q.js +4 -0
  73. package/dist/knime-jsonforms.css +1 -1
  74. package/dist/knime-jsonforms.js +53 -51
  75. package/dist/{localTimeUtils-LXk5i7aP.js → localTimeUtils-C7kma5fB.js} +3163 -3553
  76. package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
  77. package/dist/src/constants/inputFormats.d.ts +14 -0
  78. package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +6 -0
  79. package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
  80. package/dist/src/higherOrderComponents/control/withDescription.d.ts +2 -0
  81. package/dist/src/layoutComponents/index.d.ts +2 -1
  82. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +74 -0
  83. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +16 -0
  84. package/dist/src/renderers/defaultRenderers.d.ts +152 -3
  85. package/dist/src/renderers/executorCoresResourceRenderer.d.ts +1 -0
  86. package/dist/src/renderers/executorMemoryResourceRenderer.d.ts +1 -0
  87. package/dist/src/renderers/fileUploadRenderer.d.ts +1 -0
  88. package/dist/src/renderers/gridSelectionRenderer.d.ts +1 -0
  89. package/dist/src/renderers/linkRenderer.d.ts +69 -0
  90. package/dist/src/renderers/passwordRenderer.d.ts +1 -0
  91. package/dist/src/renderers/quantityRenderer.d.ts +1 -0
  92. package/dist/src/renderers/radioWithDescriptionRenderer.d.ts +69 -0
  93. package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +76 -0
  94. package/dist/src/renderers/sortListRenderer.d.ts +1 -3
  95. package/dist/src/renderers/teamAndSpaceDropdownRenderer.d.ts +3 -0
  96. package/dist/src/renderers/teamResourceRenderer.d.ts +1 -0
  97. package/dist/src/renderers/timeframesRenderer.d.ts +4 -0
  98. package/dist/src/renderers/usernameRenderer.d.ts +1 -0
  99. package/dist/src/types/ChoicesUiSchema.d.ts +13 -1
  100. package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
  101. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
  102. package/dist/src/uiComponents/FileUploadControl.vue.d.ts +6 -0
  103. package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +9 -0
  104. package/dist/src/uiComponents/LinkControl.vue.d.ts +4 -0
  105. package/dist/src/uiComponents/PasswordControl.vue.d.ts +4 -0
  106. package/dist/src/uiComponents/QuantityControl.vue.d.ts +4 -0
  107. package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +4 -0
  108. package/dist/src/uiComponents/SortListControl.vue.d.ts +1 -3
  109. package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +4 -0
  110. package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
  111. package/dist/src/uiComponents/TimeframesControl.vue.d.ts +8 -0
  112. package/dist/src/uiComponents/UsernameControl.vue.d.ts +4 -0
  113. package/dist/src/uiComponents/configs/executionContexts.config.d.ts +29 -0
  114. package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +2 -2
  115. package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +4 -0
  116. package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +4 -0
  117. package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +19 -0
  118. package/dist/src/uiComponents/resourceControls/SmallDonutChart.vue.d.ts +20 -0
  119. package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +4 -0
  120. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -3
  121. package/dist/testing.js +2602 -2589
  122. package/dist/toString-Bbm8o0hZ.js +25 -0
  123. package/dist/{useBuiltinValidations-BUVcN7lQ.js → useBuiltinValidations-zKGc6Pdt.js} +1 -1
  124. package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
  125. package/dist/{usePossibleValues-D16WFE9l.js → usePossibleValues-DhdKca4Z.js} +1 -1
  126. package/package.json +5 -5
  127. package/dist/DateTimeControl-DZjFx11V.js +0 -44
  128. package/dist/Label-Vxe-id5C.js +0 -218
  129. package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DGUZn4wH.js +0 -52
  130. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js +0 -25430
  131. package/dist/SettingsSubPanel-CO7Sguho.js +0 -5
  132. package/dist/TextControl.vue_vue_type_script_setup_true_lang-yTQu10VH.js +0 -45
  133. package/dist/_baseIteratee-CBFfQfHB.js +0 -640
  134. package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
  135. package/dist/toString-gvdOTqCo.js +0 -25
  136. 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 "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js";
2
+ import { u as d } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.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)) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.19.6",
3
+ "version": "1.20.1",
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.17.2",
19
+ "@knime/kds-components": "0.18.4",
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/rich-text-editor": "1.8.16",
25
+ "@knime/components": "1.46.0",
26
+ "@knime/rich-text-editor": "1.8.17",
26
27
  "@knime/styles": "1.15.0",
27
- "@knime/utils": "1.10.1",
28
- "@knime/components": "1.45.10"
28
+ "@knime/utils": "1.10.1"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "consola": "3.x",
@@ -1,44 +0,0 @@
1
- import { defineComponent as c, computed as a, openBlock as r, createBlock as p, unref as v } from "vue";
2
- import { t as i, f as h, D as f } from "./localTimeUtils-LXk5i7aP.js";
3
- const T = /* @__PURE__ */ c({
4
- __name: "DateTimeControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(o) {
15
- const l = o, e = a(() => l.control.uischema.options), s = a(
16
- () => e.value?.minimum ? i(e.value.minimum) : null
17
- ), u = a(
18
- () => e.value?.maximum ? i(e.value.maximum) : null
19
- ), t = a({
20
- get: () => i(l.control.data),
21
- set: (n) => l.changeValue(h(n))
22
- });
23
- return (n, m) => (r(), p(v(f), {
24
- id: o.labelForId,
25
- modelValue: t.value,
26
- "onUpdate:modelValue": m[0] || (m[0] = (d) => t.value = d),
27
- "two-lines": "",
28
- required: !0,
29
- "show-time": e.value?.showTime,
30
- "show-seconds": e.value?.showSeconds,
31
- "show-milliseconds": e.value?.showMilliseconds,
32
- timezone: "UTC",
33
- "date-format": e.value?.dateFormat,
34
- min: s.value,
35
- max: u.value,
36
- "is-valid": o.isValid,
37
- compact: "",
38
- disabled: o.disabled
39
- }, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]));
40
- }
41
- });
42
- export {
43
- T as default
44
- };
@@ -1,218 +0,0 @@
1
- /* empty css */
2
- import { openBlock as i, createElementBlock as s, normalizeClass as d, renderSlot as o, createCommentVNode as u, createElementVNode as r, mergeProps as m, toDisplayString as h } from "vue";
3
- import { _ as f, O as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js";
4
- const g = {
5
- name: "InputField",
6
- props: {
7
- modelValue: {
8
- default: "",
9
- type: [Number, String, null]
10
- },
11
- id: {
12
- type: [String, null],
13
- default: null
14
- },
15
- name: {
16
- type: String,
17
- default: null
18
- },
19
- /**
20
- * Sets the error styling, validity needs to be controlled by the parent component to be flexible
21
- */
22
- isValid: {
23
- default: !0,
24
- type: Boolean
25
- },
26
- type: {
27
- default: "text",
28
- type: String
29
- },
30
- pattern: {
31
- default: null,
32
- type: String
33
- },
34
- placeholder: {
35
- default: null,
36
- type: String
37
- },
38
- autocomplete: {
39
- default: null,
40
- type: String
41
- },
42
- autofocus: {
43
- default: !1,
44
- type: Boolean
45
- },
46
- focusOnMount: {
47
- default: !1,
48
- type: Boolean
49
- },
50
- inputClasses: {
51
- default: "",
52
- type: String
53
- },
54
- disabled: {
55
- default: !1,
56
- type: Boolean
57
- },
58
- ariaActivedescendant: {
59
- type: String,
60
- default: null
61
- },
62
- ariaOwns: {
63
- type: String,
64
- default: null
65
- },
66
- compact: {
67
- type: Boolean,
68
- default: !1
69
- }
70
- },
71
- emits: ["update:modelValue", "focus", "keyup", "keypress", "keydown"],
72
- computed: {
73
- hasLeftIcon() {
74
- return this.$slots.icon && this.$slots.icon().length;
75
- },
76
- hasRightIcon() {
77
- return this.$slots.iconRight && this.$slots.iconRight().length;
78
- },
79
- inputClassList() {
80
- let e = this.inputClasses;
81
- return this.hasLeftIcon && (e += " with-icon"), this.hasRightIcon && (e += " with-icon-right"), this.isValid || (e += " invalid"), e;
82
- }
83
- },
84
- mounted() {
85
- this.focusOnMount && this.focus();
86
- },
87
- methods: {
88
- getValue() {
89
- return this.$refs.input.value;
90
- },
91
- onInput() {
92
- this.$emit("update:modelValue", this.getValue());
93
- },
94
- focus() {
95
- this.$refs.input.focus();
96
- },
97
- /*
98
- * checks if value matches the provided pattern
99
- */
100
- validate() {
101
- let e = !0, t = null;
102
- return typeof this.getValue() > "u" ? (e = !1, t = "Invalid input") : this.pattern && this.$refs.input.validity.patternMismatch && (e = !1, t = "Input does not match the expected pattern"), { isValid: e, errorMessage: t };
103
- }
104
- }
105
- }, b = {
106
- key: 0,
107
- class: "icon"
108
- }, I = ["id", "name", "value", "type", "pattern", "placeholder", "autofocus", "aria-activedescendant", "aria-owns", "autocomplete", "disabled"], v = {
109
- key: 1,
110
- class: "icon icon-right"
111
- };
112
- function S(e, t, a, c, p, l) {
113
- return i(), s("div", {
114
- class: d(["input-wrapper", { compact: a.compact }])
115
- }, [
116
- l.hasLeftIcon ? (i(), s("div", b, [
117
- o(e.$slots, "icon")
118
- ])) : u("", !0),
119
- r("input", m(e.$attrs, {
120
- id: a.id,
121
- ref: "input",
122
- name: a.name,
123
- value: a.modelValue,
124
- class: l.inputClassList,
125
- type: a.type,
126
- pattern: a.pattern,
127
- placeholder: a.placeholder,
128
- autofocus: a.autofocus,
129
- "aria-activedescendant": a.ariaActivedescendant,
130
- "aria-owns": a.ariaOwns,
131
- autocomplete: a.autocomplete,
132
- disabled: a.disabled,
133
- onInput: t[0] || (t[0] = (...n) => l.onInput && l.onInput(...n)),
134
- onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
135
- onKeyup: t[2] || (t[2] = (n) => e.$emit("keyup", n)),
136
- onKeypress: t[3] || (t[3] = (n) => e.$emit("keypress", n)),
137
- onKeydown: t[4] || (t[4] = (n) => e.$emit("keydown", n))
138
- }), null, 16, I),
139
- l.hasRightIcon ? (i(), s("div", v, [
140
- o(e.$slots, "iconRight")
141
- ])) : u("", !0),
142
- t[5] || (t[5] = r("span", { class: "invalid-marker" }, null, -1))
143
- ], 2);
144
- }
145
- const $ = /* @__PURE__ */ f(g, [["render", S], ["__scopeId", "data-v-e4e1a696"]]), F = {
146
- name: "Label",
147
- inject: {
148
- largeLabels: {
149
- // provided e.g. by Fieldset.vue
150
- default: !1
151
- }
152
- },
153
- props: {
154
- generateId: {
155
- type: Boolean,
156
- default: !0
157
- },
158
- idPrefix: {
159
- type: String,
160
- default: "comp"
161
- },
162
- text: {
163
- default: "",
164
- type: String
165
- },
166
- /**
167
- * smaller font size and margin
168
- */
169
- large: {
170
- type: Boolean,
171
- default: !1
172
- },
173
- /**
174
- * Whether to show the label or only its content.
175
- */
176
- active: {
177
- type: Boolean,
178
- default: !0
179
- }
180
- },
181
- emits: ["labelForId"],
182
- data() {
183
- return {
184
- labelForId: y()
185
- };
186
- },
187
- computed: {
188
- labelFor() {
189
- return this.generateId ? `${this.idPrefix}-${this.labelForId}` : null;
190
- },
191
- labelId() {
192
- return this.generateId ? `label-${this.labelFor}` : null;
193
- },
194
- isLarge() {
195
- return this.large || this.largeLabels;
196
- }
197
- },
198
- mounted() {
199
- this.$emit("labelForId", this.labelFor);
200
- }
201
- }, k = { class: "label-wrapper" }, L = ["id", "for", "textContent"];
202
- function V(e, t, a, c, p, l) {
203
- return i(), s("div", k, [
204
- a.active ? (i(), s("label", {
205
- key: 0,
206
- id: l.labelId,
207
- for: l.labelFor,
208
- class: d(["label-text", { large: l.isLarge }]),
209
- textContent: h(a.text)
210
- }, null, 10, L)) : u("", !0),
211
- o(e.$slots, "default", { labelForId: l.labelFor }, void 0, !0)
212
- ]);
213
- }
214
- const C = /* @__PURE__ */ f(F, [["render", V], ["__scopeId", "data-v-9887bcbf"]]);
215
- export {
216
- $ as I,
217
- C as L
218
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as b, computed as o, openBlock as v, createBlock as V, unref as f, mergeProps as y } from "vue";
2
- import { $ as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js";
3
- const x = /* @__PURE__ */ b({
4
- __name: "LoadingDropdown",
5
- props: {
6
- possibleValues: {},
7
- modelValue: {},
8
- id: {},
9
- ariaLabel: {},
10
- disabled: { type: Boolean },
11
- error: { type: Boolean }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(i, { emit: r }) {
15
- const e = i, n = r, d = o(() => e.possibleValues === null ? "" : e.modelValue), t = o(() => e.possibleValues === null), u = o(
16
- () => e.possibleValues?.some((l) => l.type !== void 0)
17
- ), s = o(() => {
18
- if (e.possibleValues === null)
19
- return [];
20
- const l = [];
21
- for (const a of e.possibleValues)
22
- a.text && l.push({
23
- id: a.id,
24
- text: a.text,
25
- disabled: a.disabled,
26
- accessory: u.value ? {
27
- type: "dataType",
28
- name: a.type?.id ?? "missing_type"
29
- } : void 0
30
- });
31
- return l;
32
- }), p = o(() => t.value ? "Loading" : s.value.length > 0 ? "No value selected" : "No values present"), c = o(
33
- () => e.disabled || s.value.length === 0
34
- ), m = (l) => {
35
- n("update:modelValue", l ?? "");
36
- };
37
- return (l, a) => (v(), V(f(g), y(l.$attrs, {
38
- id: e.id,
39
- "aria-label": e.ariaLabel,
40
- "model-value": d.value,
41
- disabled: c.value,
42
- "possible-values": s.value,
43
- loading: t.value,
44
- placeholder: p.value,
45
- error: e.error,
46
- "onUpdate:modelValue": m
47
- }), null, 16, ["id", "aria-label", "model-value", "disabled", "possible-values", "loading", "placeholder", "error"]));
48
- }
49
- });
50
- export {
51
- x as _
52
- };