@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.
- package/CHANGELOG.md +28 -0
- package/dist/{AnyOfTwinlist-DXjbNRLq.js → AnyOfTwinlist-CosNPUKG.js} +1 -1
- package/dist/{Checkbox-CZIoPAZU.js → Checkbox-BLHyWo4X.js} +1 -1
- package/dist/{CheckboxControl-D6LP2SAg.js → CheckboxControl-DyBcYCFe.js} +1 -1
- package/dist/{CheckboxesControl-D9DA7-T0.js → CheckboxesControl-DqcN6RcZ.js} +2 -2
- package/dist/{ColorControl-rCN_X6Wk.js → ColorControl-CPklP_Ox.js} +1 -1
- package/dist/{ColorPreviewControl-Dv7_mc6t.js → ColorPreviewControl-BhbI9XDV.js} +1 -1
- package/dist/{ComboBoxControl-DUaaxMZ_.js → ComboBoxControl-DR9x8i0b.js} +8 -8
- package/dist/{DateControl-5AuxnnvM.js → DateControl-DJxV5wzs.js} +1 -1
- package/dist/DateTimeControl-CoNsGbev.js +44 -0
- package/dist/{DateTimeFormatPickerControl-CbLnDDbr.js → DateTimeFormatPickerControl-BmtxQjzI.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-BBpPB5TM.js → DateTimeFormatPickerWithTypeControl-CK7LsO-R.js} +12 -12
- package/dist/{DropdownControl-2UdsfufQ.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-ao9JZxiP.js → HorizontalLayout-Bc4F2xJR.js} +6 -6
- package/dist/InputField-Gw6K93vY.js +148 -0
- package/dist/{IntegerControl-wq8pma-E.js → IntegerControl-CAh031mO.js} +1 -1
- package/dist/{IntervalControl-DuI-4Y1d.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-BhelL9SM.js → LoadingIcon-B0S8ig5H.js} +1 -1
- package/dist/{ManualTwinlistControl-rP4L1RP6.js → ManualTwinlistControl-BdbrjZtS.js} +4 -4
- package/dist/{MultiSelectListBoxControl-iUqimLmu.js → MultiSelectListBoxControl-0M1iLfXZ.js} +2 -2
- package/dist/{MultimodeTwinlistControl-DTuLtZRx.js → MultimodeTwinlistControl-aL0Jr_Hp.js} +19 -20
- 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
- package/dist/{MultiselectListBox-DijeK4wH.js → MultiselectListBox-BJqQv0AT.js} +5 -5
- package/dist/{NameFilter-C1_u0chZ.js → NameFilter-DvoXjvd8.js} +1 -1
- package/dist/{NumberControl-BYvfrBJs.js → NumberControl-BEYR3aHU.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DBbHZCg_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js} +2 -2
- package/dist/{OneOfDropdown-BcqrG6U3.js → OneOfDropdown-Bg1JOuCZ.js} +1 -1
- package/dist/RadioButtonsWithDescriptionControl-Cmzn6X0W.js +57 -0
- package/dist/{RadioControl-BNB_hYVd.js → RadioControl-D4invwra.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-C7JiVgxq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CuOORFSE.js} +2 -2
- package/dist/ResourceControlBase-BCx6cBBz.js +158 -0
- package/dist/{RichTextControl-BIjtuTf7.js → RichTextControl-TbANBneT.js} +2059 -1991
- package/dist/{SectionHeading-CUxdd2GX.js → SectionHeading-DoNDREK2.js} +1 -1
- package/dist/{SectionLayout-NqTBT8Al.js → SectionLayout-Dsd4wFck.js} +3 -3
- package/dist/SettingsSubPanel-sQPONy-U.js +5 -0
- package/dist/{SettingsSubPanelLayout-Biu_QPw1.js → SettingsSubPanelLayout-DbYqmGOS.js} +7 -7
- package/dist/{SimpleButtonControl-B0cnKTy4.js → SimpleButtonControl-DhM4t6v3.js} +6 -6
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js +26176 -0
- package/dist/{SimpleTwinlistControl-BIIN8GzH.js → SimpleTwinlistControl-Chay0D48.js} +2 -2
- package/dist/{SingleSelectControl-GbRcLm19.js → SingleSelectControl-BRfqeLOh.js} +2 -2
- package/dist/{SingleSelectListBoxControl-DkRfB8oZ.js → SingleSelectListBoxControl-DyDspddM.js} +5 -5
- package/dist/{SortListControl-BTS1lJOo.js → SortListControl-DX0uhRfk.js} +104 -118
- package/dist/{StyledListItem-DBa0VNHX.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-DrABn8Uh.js → TextAreaControl-BCIrrOzR.js} +1 -1
- package/dist/{TextControl-CHyUjofE.js → TextControl-B_2oeFoq.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CuCBV4pA.js +45 -0
- package/dist/{TimeControl-B4oVEJCX.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-CiK7yseq.js → TwinlistControlBase--CFSodU_.js} +3 -3
- package/dist/{TwinlistLoadingInfo-x51VCOej.js → TwinlistLoadingInfo-aB5QCSFX.js} +18 -18
- package/dist/{TypedStringFilter-DC6B-Fds.js → TypedStringFilter-BjyKvhn1.js} +1 -1
- package/dist/{ValueSwitch-ChY5YK2o.js → ValueSwitch-DYxCMQ9c.js} +4 -4
- package/dist/{ValueSwitchControl-CJdAUIwq.js → ValueSwitchControl-CQkiPcwC.js} +1 -1
- package/dist/{VerticalLayout-DWbD5oCa.js → VerticalLayout-DygOb7L9.js} +2 -2
- package/dist/{VerticalLayoutBase-COwlULuo.js → VerticalLayoutBase-Dq_p4WmZ.js} +1 -1
- package/dist/{ZonedDateTimeControl-CLiwgCKR.js → ZonedDateTimeControl-CKyKzTtF.js} +2 -2
- package/dist/_Uint8Array-Boy5On8p.js +349 -0
- package/dist/_baseAssignValue-CG1hoqdJ.js +19 -0
- package/dist/{_baseEach-84mBqaP3.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-LXk5i7aP.js → localTimeUtils-C7kma5fB.js} +3163 -3553
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- 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-BUVcN7lQ.js → useBuiltinValidations-zKGc6Pdt.js} +1 -1
- package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
- package/dist/{usePossibleValues-D16WFE9l.js → usePossibleValues-DhdKca4Z.js} +1 -1
- package/package.json +5 -5
- package/dist/DateTimeControl-DZjFx11V.js +0 -44
- package/dist/Label-Vxe-id5C.js +0 -218
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DGUZn4wH.js +0 -52
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js +0 -25430
- package/dist/SettingsSubPanel-CO7Sguho.js +0 -5
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-yTQu10VH.js +0 -45
- package/dist/_baseIteratee-CBFfQfHB.js +0 -640
- package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
- package/dist/toString-gvdOTqCo.js +0 -25
- package/dist/useDropdownNavigation-2Yhk7zes.js +0 -821
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { defineComponent as S, useCssVars as U, unref as n, ref as D, computed as s, watch as f, openBlock as c, createElementBlock as u, normalizeStyle as G, Fragment as N, renderList as T, createBlock as h, createCommentVNode as p, createVNode as A, withModifiers as B } from "vue";
|
|
2
|
+
import { a7 as $, a8 as z, y as O, _ as R } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
|
+
const W = { class: "grid-list" }, H = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "checkbox"
|
|
6
|
+
}, j = 7, q = "auto", J = "Invert selection", K = /* @__PURE__ */ S({
|
|
7
|
+
__name: "GridSelectionControl",
|
|
8
|
+
props: {
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
control: {},
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
isValid: { type: Boolean },
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(y) {
|
|
18
|
+
U((e) => ({
|
|
19
|
+
v38af777e: n(k)
|
|
20
|
+
}));
|
|
21
|
+
const r = y, {
|
|
22
|
+
control: { path: V, uischema: { options: b } = {} },
|
|
23
|
+
handleChange: C
|
|
24
|
+
} = r, {
|
|
25
|
+
possibleValues: o = [],
|
|
26
|
+
columnCount: I = j,
|
|
27
|
+
gridWidth: k = q,
|
|
28
|
+
toggleLabel: m = J,
|
|
29
|
+
renderLastItemAsCheckbox: d = !1
|
|
30
|
+
} = b, a = D(/* @__PURE__ */ new Map()), x = s(() => ({
|
|
31
|
+
"grid-template-columns": `repeat(${I}, 1fr)`
|
|
32
|
+
})), E = s(
|
|
33
|
+
() => o.filter(
|
|
34
|
+
(e, t) => !(d && t === o.length - 1)
|
|
35
|
+
)
|
|
36
|
+
), i = s(
|
|
37
|
+
() => d ? o[o.length - 1] : null
|
|
38
|
+
), L = () => {
|
|
39
|
+
const e = /* @__PURE__ */ new Map();
|
|
40
|
+
a.value.forEach(
|
|
41
|
+
({ active: t }, l) => {
|
|
42
|
+
e.set(l, {
|
|
43
|
+
active: !t
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
), a.value = e;
|
|
47
|
+
}, M = () => {
|
|
48
|
+
const e = /* @__PURE__ */ new Map();
|
|
49
|
+
return o.forEach(({ id: t }) => {
|
|
50
|
+
e.set(t, { active: r.control.data?.includes(t) ?? !1 });
|
|
51
|
+
}), e;
|
|
52
|
+
}, g = s(() => {
|
|
53
|
+
const e = [];
|
|
54
|
+
return a.value.forEach(
|
|
55
|
+
({ active: t }, l) => {
|
|
56
|
+
t && e.push(l);
|
|
57
|
+
}
|
|
58
|
+
), e;
|
|
59
|
+
}), w = s(() => r.control.data ?? []), _ = s(() => {
|
|
60
|
+
const e = g.value, t = w.value;
|
|
61
|
+
if (e.length !== t.length)
|
|
62
|
+
return !0;
|
|
63
|
+
const l = new Set(t);
|
|
64
|
+
return e.some((v) => !l.has(v));
|
|
65
|
+
});
|
|
66
|
+
return f(
|
|
67
|
+
() => r.control.data,
|
|
68
|
+
() => {
|
|
69
|
+
_.value && (a.value = M());
|
|
70
|
+
},
|
|
71
|
+
{ immediate: !0, deep: !0 }
|
|
72
|
+
), f(
|
|
73
|
+
() => a.value,
|
|
74
|
+
() => {
|
|
75
|
+
_.value && C(V, g.value);
|
|
76
|
+
},
|
|
77
|
+
{ deep: !0 }
|
|
78
|
+
), (e, t) => (c(), u("div", W, [
|
|
79
|
+
n(o).length ? (c(), u("div", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "grid-list-container",
|
|
82
|
+
style: G(x.value)
|
|
83
|
+
}, [
|
|
84
|
+
(c(!0), u(N, null, T(E.value, ({ id: l, text: v }) => (c(), h(n($), {
|
|
85
|
+
key: `grid-item-${l}`,
|
|
86
|
+
modelValue: a.value.get(l).active,
|
|
87
|
+
"onUpdate:modelValue": (F) => a.value.get(l).active = F,
|
|
88
|
+
class: "overwrite-legacy-styles",
|
|
89
|
+
label: v,
|
|
90
|
+
variant: "outlined",
|
|
91
|
+
size: "xsmall"
|
|
92
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
|
|
93
|
+
], 4)) : p("", !0),
|
|
94
|
+
n(d) && i.value ? (c(), u("div", H, [
|
|
95
|
+
A(n(z), {
|
|
96
|
+
modelValue: a.value.get(i.value.id).active,
|
|
97
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => a.value.get(i.value.id).active = l),
|
|
98
|
+
label: i.value.text
|
|
99
|
+
}, null, 8, ["modelValue", "label"])
|
|
100
|
+
])) : p("", !0),
|
|
101
|
+
n(m) ? (c(), h(n(O), {
|
|
102
|
+
key: 2,
|
|
103
|
+
variant: "outlined",
|
|
104
|
+
size: "xsmall",
|
|
105
|
+
label: n(m),
|
|
106
|
+
"leading-icon": "replace",
|
|
107
|
+
class: "invert overwrite-legacy-styles",
|
|
108
|
+
onClick: B(L, ["prevent"])
|
|
109
|
+
}, null, 8, ["label"])) : p("", !0)
|
|
110
|
+
]));
|
|
111
|
+
}
|
|
112
|
+
}), X = /* @__PURE__ */ R(K, [["__scopeId", "data-v-7c90b0fa"]]);
|
|
113
|
+
export {
|
|
114
|
+
X as default
|
|
115
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as
|
|
2
|
-
import { a as m, _ as i } from "./
|
|
1
|
+
import { defineComponent as o, openBlock as t, createElementBlock as a, Fragment as r, renderList as c, createBlock as s, unref as u } from "vue";
|
|
2
|
+
import { a as m, _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
3
|
const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
6
6
|
layout: {}
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
|
-
return (y, f) => (
|
|
10
|
-
(
|
|
9
|
+
return (y, f) => (t(), a("div", d, [
|
|
10
|
+
(t(!0), a(r, null, c(e.layout.uischema.elements, (l, n) => (t(), s(u(m), {
|
|
11
11
|
key: n,
|
|
12
12
|
class: "horizontal-element",
|
|
13
13
|
schema: e.layout.schema,
|
|
@@ -19,7 +19,7 @@ const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
|
|
|
19
19
|
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), z = /* @__PURE__ */ i(h, [["__scopeId", "data-v-c4017079"]]);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
z as default
|
|
25
25
|
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { openBlock as i, createElementBlock as s, normalizeClass as r, renderSlot as u, createCommentVNode as o, createElementVNode as d, mergeProps as f } from "vue";
|
|
3
|
+
import { _ as p } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
4
|
+
const c = {
|
|
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
|
+
}, m = {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "icon"
|
|
108
|
+
}, h = ["id", "name", "value", "type", "pattern", "placeholder", "autofocus", "aria-activedescendant", "aria-owns", "autocomplete", "disabled"], y = {
|
|
109
|
+
key: 1,
|
|
110
|
+
class: "icon icon-right"
|
|
111
|
+
};
|
|
112
|
+
function g(e, t, n, v, I, l) {
|
|
113
|
+
return i(), s("div", {
|
|
114
|
+
class: r(["input-wrapper", { compact: n.compact }])
|
|
115
|
+
}, [
|
|
116
|
+
l.hasLeftIcon ? (i(), s("div", m, [
|
|
117
|
+
u(e.$slots, "icon")
|
|
118
|
+
])) : o("", !0),
|
|
119
|
+
d("input", f(e.$attrs, {
|
|
120
|
+
id: n.id,
|
|
121
|
+
ref: "input",
|
|
122
|
+
name: n.name,
|
|
123
|
+
value: n.modelValue,
|
|
124
|
+
class: l.inputClassList,
|
|
125
|
+
type: n.type,
|
|
126
|
+
pattern: n.pattern,
|
|
127
|
+
placeholder: n.placeholder,
|
|
128
|
+
autofocus: n.autofocus,
|
|
129
|
+
"aria-activedescendant": n.ariaActivedescendant,
|
|
130
|
+
"aria-owns": n.ariaOwns,
|
|
131
|
+
autocomplete: n.autocomplete,
|
|
132
|
+
disabled: n.disabled,
|
|
133
|
+
onInput: t[0] || (t[0] = (...a) => l.onInput && l.onInput(...a)),
|
|
134
|
+
onFocus: t[1] || (t[1] = (a) => e.$emit("focus", a)),
|
|
135
|
+
onKeyup: t[2] || (t[2] = (a) => e.$emit("keyup", a)),
|
|
136
|
+
onKeypress: t[3] || (t[3] = (a) => e.$emit("keypress", a)),
|
|
137
|
+
onKeydown: t[4] || (t[4] = (a) => e.$emit("keydown", a))
|
|
138
|
+
}), null, 16, h),
|
|
139
|
+
l.hasRightIcon ? (i(), s("div", y, [
|
|
140
|
+
u(e.$slots, "iconRight")
|
|
141
|
+
])) : o("", !0),
|
|
142
|
+
t[5] || (t[5] = d("span", { class: "invalid-marker" }, null, -1))
|
|
143
|
+
], 2);
|
|
144
|
+
}
|
|
145
|
+
const w = /* @__PURE__ */ p(c, [["render", g], ["__scopeId", "data-v-e4e1a696"]]);
|
|
146
|
+
export {
|
|
147
|
+
w as I
|
|
148
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|