@knime/jsonforms 1.19.5 → 1.20.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.
- package/CHANGELOG.md +27 -0
- package/dist/{AnyOfTwinlist-gIm_R7yi.js → AnyOfTwinlist-CosNPUKG.js} +1 -1
- package/dist/{Checkbox-D1QZ8D8U.js → Checkbox-BLHyWo4X.js} +1 -1
- package/dist/{CheckboxControl-DitntAd8.js → CheckboxControl-DyBcYCFe.js} +1 -1
- package/dist/{CheckboxesControl-C_Wwb06j.js → CheckboxesControl-DqcN6RcZ.js} +2 -2
- package/dist/{ColorControl-86_aeUMf.js → ColorControl-CPklP_Ox.js} +1 -1
- package/dist/{ColorPreviewControl-HgbFwMCE.js → ColorPreviewControl-BhbI9XDV.js} +1 -1
- package/dist/{ComboBoxControl-CGwWGyDl.js → ComboBoxControl-DR9x8i0b.js} +8 -8
- package/dist/{DateControl-BofbO5lM.js → DateControl-DJxV5wzs.js} +1 -1
- package/dist/DateTimeControl-CoNsGbev.js +44 -0
- package/dist/{DateTimeFormatPickerControl-7KTdYrMN.js → DateTimeFormatPickerControl-BmtxQjzI.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-DmevlqK8.js → DateTimeFormatPickerWithTypeControl-CK7LsO-R.js} +12 -12
- package/dist/{DropdownControl-XAeknlV2.js → DropdownControl-nLA0kshc.js} +5 -5
- package/dist/ExecutorCoresControl-BgB0R_Xv.js +42 -0
- package/dist/ExecutorMemoryControl-Ck5naUl2.js +41 -0
- package/dist/FileUploadControl-CByhtwi1.js +197 -0
- package/dist/GridSelectionControl-8g--blrX.js +115 -0
- package/dist/{HorizontalLayout-BQFvLK2X.js → HorizontalLayout-Bc4F2xJR.js} +6 -6
- package/dist/InputField-Gw6K93vY.js +148 -0
- package/dist/{IntegerControl-XNoJU3s2.js → IntegerControl-CAh031mO.js} +1 -1
- package/dist/{IntervalControl-DaQTfsx8.js → IntervalControl-ocjzEBto.js} +168 -184
- package/dist/LinkControl-BML6cXj-.js +35 -0
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-C2sH3IaG.js +57 -0
- package/dist/{LoadingIcon-D3kls_iA.js → LoadingIcon-B0S8ig5H.js} +1 -1
- package/dist/{ManualTwinlistControl-BCgJbfp5.js → ManualTwinlistControl-BdbrjZtS.js} +4 -4
- package/dist/{MultiSelectListBoxControl-B6tvY3Al.js → MultiSelectListBoxControl-0M1iLfXZ.js} +2 -2
- package/dist/{MultimodeTwinlistControl-CUWzYCUm.js → MultimodeTwinlistControl-aL0Jr_Hp.js} +19 -20
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C8itN9TE.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C61plPNM.js} +2 -2
- package/dist/{MultiselectListBox-C1rI0rOG.js → MultiselectListBox-BJqQv0AT.js} +5 -5
- package/dist/{NameFilter-CaPBJKzh.js → NameFilter-DvoXjvd8.js} +1 -1
- package/dist/{NumberControl-DOnwoK8Z.js → NumberControl-BEYR3aHU.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js} +2 -2
- package/dist/{OneOfDropdown-CHt7_dgU.js → OneOfDropdown-Bg1JOuCZ.js} +1 -1
- package/dist/RadioButtonsWithDescriptionControl-Cmzn6X0W.js +57 -0
- package/dist/{RadioControl-CP7QiYX1.js → RadioControl-D4invwra.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-qv1xOkqz.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CuOORFSE.js} +2 -2
- package/dist/ResourceControlBase-BCx6cBBz.js +158 -0
- package/dist/{RichTextControl-DKlFtbdd.js → RichTextControl-TbANBneT.js} +2059 -1991
- package/dist/{SectionHeading-DbcAkyOk.js → SectionHeading-DoNDREK2.js} +1 -1
- package/dist/{SectionLayout-BRfbEX0H.js → SectionLayout-Dsd4wFck.js} +3 -3
- package/dist/SettingsSubPanel-sQPONy-U.js +5 -0
- package/dist/{SettingsSubPanelLayout-nMEM9Js5.js → SettingsSubPanelLayout-DbYqmGOS.js} +7 -7
- package/dist/{SimpleButtonControl-Cs9fDA9V.js → SimpleButtonControl-DhM4t6v3.js} +10 -9
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js +26176 -0
- package/dist/{SimpleTwinlistControl-CMJCJOPx.js → SimpleTwinlistControl-Chay0D48.js} +2 -2
- package/dist/{SingleSelectControl-DrqxOX0c.js → SingleSelectControl-BRfqeLOh.js} +2 -2
- package/dist/{SingleSelectListBoxControl-2ORQoAtg.js → SingleSelectListBoxControl-DyDspddM.js} +5 -5
- package/dist/{SortListControl-BLWFLyUn.js → SortListControl-DX0uhRfk.js} +104 -118
- package/dist/{StyledListItem-DhsQSwUn.js → StyledListItem-B_FaDixp.js} +1 -1
- package/dist/TeamAndSpacesControl-CVGPGpqd.js +64 -0
- package/dist/TeamResourceControl-DD-USgie.js +38 -0
- package/dist/{TextAreaControl-v3fhzCGm.js → TextAreaControl-BCIrrOzR.js} +1 -1
- package/dist/{TextControl-CNlNwI8q.js → TextControl-B_2oeFoq.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CuCBV4pA.js +45 -0
- package/dist/{TimeControl-uBNUovJi.js → TimeControl-CeL2KxIB.js} +1 -1
- package/dist/TimePartInput-BbHxGv7L.js +254 -0
- package/dist/TimeframesControl-BBUDxMaB.js +87 -0
- package/dist/Tooltip-B5O8iOuG.js +24 -0
- package/dist/{TwinlistControlBase-BfsU0lp4.js → TwinlistControlBase--CFSodU_.js} +3 -3
- package/dist/{TwinlistLoadingInfo-CZpH6CqT.js → TwinlistLoadingInfo-aB5QCSFX.js} +18 -18
- package/dist/{TypedStringFilter-ElEPYctF.js → TypedStringFilter-BjyKvhn1.js} +1 -1
- package/dist/{ValueSwitch-BfYlPI2B.js → ValueSwitch-DYxCMQ9c.js} +4 -4
- package/dist/{ValueSwitchControl-DyV85jLv.js → ValueSwitchControl-CQkiPcwC.js} +1 -1
- package/dist/{VerticalLayout-CFGNNSaB.js → VerticalLayout-DygOb7L9.js} +2 -2
- package/dist/{VerticalLayoutBase-CCtK1J1U.js → VerticalLayoutBase-Dq_p4WmZ.js} +1 -1
- package/dist/{ZonedDateTimeControl-BtPeUK4M.js → ZonedDateTimeControl-CKyKzTtF.js} +2 -2
- package/dist/_Uint8Array-Boy5On8p.js +349 -0
- package/dist/_baseAssignValue-CG1hoqdJ.js +19 -0
- package/dist/{_baseEach-DR1qyPMo.js → _baseEach-LxtQB6N-.js} +1 -1
- package/dist/_baseIteratee-BBGehgFZ.js +308 -0
- package/dist/floating-ui.vue-Bk6u3tWN.js +1060 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +53 -51
- package/dist/{localTimeUtils-C1z-tWPY.js → localTimeUtils-C7kma5fB.js} +3163 -3553
- package/dist/src/constants/inputFormats.d.ts +14 -0
- package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/withDescription.d.ts +2 -0
- package/dist/src/layoutComponents/index.d.ts +2 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +74 -0
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +16 -0
- package/dist/src/renderers/defaultRenderers.d.ts +152 -3
- package/dist/src/renderers/executorCoresResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/executorMemoryResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/fileUploadRenderer.d.ts +1 -0
- package/dist/src/renderers/gridSelectionRenderer.d.ts +1 -0
- package/dist/src/renderers/linkRenderer.d.ts +69 -0
- package/dist/src/renderers/passwordRenderer.d.ts +1 -0
- package/dist/src/renderers/quantityRenderer.d.ts +1 -0
- package/dist/src/renderers/radioWithDescriptionRenderer.d.ts +69 -0
- package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +76 -0
- package/dist/src/renderers/sortListRenderer.d.ts +1 -3
- package/dist/src/renderers/teamAndSpaceDropdownRenderer.d.ts +3 -0
- package/dist/src/renderers/teamResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/timeframesRenderer.d.ts +4 -0
- package/dist/src/renderers/usernameRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +13 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +6 -0
- package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/LinkControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/PasswordControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/QuantityControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +1 -3
- package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeframesControl.vue.d.ts +8 -0
- package/dist/src/uiComponents/UsernameControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/configs/executionContexts.config.d.ts +29 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +2 -2
- package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/resourceControls/SmallDonutChart.vue.d.ts +20 -0
- package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -3
- package/dist/testing.js +2602 -2589
- package/dist/toString-Bbm8o0hZ.js +25 -0
- package/dist/{useBuiltinValidations-CXYzLTj1.js → useBuiltinValidations-zKGc6Pdt.js} +1 -1
- package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
- package/dist/{usePossibleValues-BGGWIVzM.js → usePossibleValues-DhdKca4Z.js} +1 -1
- package/package.json +2 -2
- package/dist/DateTimeControl-BzWk51J8.js +0 -44
- package/dist/Label-BckcZVsr.js +0 -218
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js +0 -48
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js +0 -25430
- package/dist/SettingsSubPanel-Bw-wC4JV.js +0 -5
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BQReBqLi.js +0 -45
- package/dist/_baseIteratee-DrBvc1GG.js +0 -640
- package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
- package/dist/toString-lufkO4XX.js +0 -25
- 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 "./
|
|
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.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
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.
|
|
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",
|
|
@@ -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-C1z-tWPY.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
|
-
};
|
package/dist/Label-BckcZVsr.js
DELETED
|
@@ -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-B1Ey6pj2.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,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, computed as s, openBlock as m, createBlock as V, unref as v, mergeProps as y } from "vue";
|
|
2
|
-
import { $ as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js";
|
|
3
|
-
const L = /* @__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(a, { emit: o }) {
|
|
15
|
-
const e = a, i = o, t = s(() => e.possibleValues === null), r = s(() => {
|
|
16
|
-
const { possibleValues: l } = e;
|
|
17
|
-
return l === null ? "Loading" : l.length > 0 ? "No value selected" : "No values present";
|
|
18
|
-
}), d = s(() => e.possibleValues === null ? "" : e.modelValue), n = s(
|
|
19
|
-
() => e.possibleValues?.some((l) => l.type !== void 0)
|
|
20
|
-
), u = s(
|
|
21
|
-
() => e.disabled || e.possibleValues !== null && e.possibleValues.length === 0
|
|
22
|
-
), p = s(() => e.possibleValues === null ? [] : e.possibleValues.map((l) => ({
|
|
23
|
-
id: l.id,
|
|
24
|
-
text: l.text,
|
|
25
|
-
disabled: l.disabled,
|
|
26
|
-
accessory: n.value ? {
|
|
27
|
-
type: "dataType",
|
|
28
|
-
name: l.type?.id ?? "missing_type"
|
|
29
|
-
} : void 0
|
|
30
|
-
}))), c = (l) => {
|
|
31
|
-
i("update:modelValue", l ?? "");
|
|
32
|
-
};
|
|
33
|
-
return (l, _) => (m(), V(v(g), y(l.$attrs, {
|
|
34
|
-
id: e.id,
|
|
35
|
-
"aria-label": e.ariaLabel,
|
|
36
|
-
"model-value": d.value,
|
|
37
|
-
disabled: u.value,
|
|
38
|
-
"possible-values": p.value,
|
|
39
|
-
loading: t.value,
|
|
40
|
-
placeholder: r.value,
|
|
41
|
-
error: e.error,
|
|
42
|
-
"onUpdate:modelValue": c
|
|
43
|
-
}), null, 16, ["id", "aria-label", "model-value", "disabled", "possible-values", "loading", "placeholder", "error"]));
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
L as _
|
|
48
|
-
};
|