@knime/jsonforms 1.14.2 → 1.15.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 +32 -0
- package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
- package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
- package/dist/CheckboxControl-C10_DX1N.js +40 -0
- package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
- package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
- package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
- package/dist/DateTimeControl-DJhIb_U4.js +45 -0
- package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
- package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
- package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
- package/dist/Dropdown-BEx-cvXH.js +608 -0
- package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
- package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
- package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
- package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
- package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
- package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
- package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
- package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
- package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
- package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
- package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
- package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
- package/dist/SectionHeading-D7znCZXu.js +19 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
- package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
- package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
- package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
- package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
- package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
- package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
- package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
- package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
- package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
- package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
- package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
- package/dist/TimeControl-HRooO_z3.js +36 -0
- package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
- package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
- package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
- package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
- package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
- package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
- package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
- package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +64 -67
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DXuWWBh_.js +16 -0
- package/package.json +14 -14
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as M, openBlock as h, createElementVNode as O, toRef as I, resolveComponent as m, normalizeClass as j, createBlock as w, createCommentVNode as V, createVNode as f, withCtx as v, mergeProps as _, defineComponent as N, ref as H, computed as u, markRaw as W, unref as L } from "vue";
|
|
2
2
|
import { m as G } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { u as J, a as K } from "./usePossibleValues-
|
|
4
|
-
import {
|
|
5
|
-
import { u as $ } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-
|
|
3
|
+
import { u as J, a as K } from "./usePossibleValues-DXuWWBh_.js";
|
|
4
|
+
import { a as Q, S as X, u as Y, T as Z } from "./TwinlistLoadingInfo-C4Tta00d.js";
|
|
5
|
+
import { u as $ } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js";
|
|
6
6
|
import { f as P } from "./useSearch-hpyYQ_6y.js";
|
|
7
|
-
import { C as ee } from "./Checkboxes-
|
|
8
|
-
import {
|
|
9
|
-
import { V as ae } from "./ValueSwitch-
|
|
7
|
+
import { C as ee } from "./Checkboxes-DWOxHiUX.js";
|
|
8
|
+
import { y as te, _ as U } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
9
|
+
import { V as ae } from "./ValueSwitch-W4y1YvNM.js";
|
|
10
10
|
const le = {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
fill: "none",
|
|
@@ -16,7 +16,7 @@ const le = {
|
|
|
16
16
|
};
|
|
17
17
|
function ne(t, l) {
|
|
18
18
|
return h(), M("svg", le, l[0] || (l[0] = [
|
|
19
|
-
|
|
19
|
+
O("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1)
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
22
|
const se = { render: ne }, ie = {
|
|
@@ -29,10 +29,10 @@ const se = { render: ne }, ie = {
|
|
|
29
29
|
components: {
|
|
30
30
|
Label: te,
|
|
31
31
|
FilterIcon: se,
|
|
32
|
-
SearchInput:
|
|
32
|
+
SearchInput: X,
|
|
33
33
|
Checkboxes: ee,
|
|
34
34
|
ValueSwitch: ae,
|
|
35
|
-
Twinlist:
|
|
35
|
+
Twinlist: Q
|
|
36
36
|
},
|
|
37
37
|
props: {
|
|
38
38
|
/**
|
|
@@ -176,12 +176,12 @@ const se = { render: ne }, ie = {
|
|
|
176
176
|
return this.possibleValues.map(({ id: t }) => t);
|
|
177
177
|
},
|
|
178
178
|
possibleTypes() {
|
|
179
|
-
const t = this.possibleValues.map(({ type:
|
|
179
|
+
const t = this.possibleValues.map(({ type: n }) => n).filter(Boolean), l = t.map((n) => n.id);
|
|
180
180
|
return [...this.additionalPossibleTypes.filter(
|
|
181
|
-
(
|
|
182
|
-
), ...t].filter((
|
|
181
|
+
(n) => n && !l.includes(n.id)
|
|
182
|
+
), ...t].filter((n) => n && n.id !== "").filter(
|
|
183
183
|
// remove duplicates
|
|
184
|
-
(
|
|
184
|
+
(n, s, b) => s === b.findIndex((d) => d.id === n.id && d.text === n.text)
|
|
185
185
|
);
|
|
186
186
|
},
|
|
187
187
|
matchingValueIds() {
|
|
@@ -238,13 +238,11 @@ const se = { render: ne }, ie = {
|
|
|
238
238
|
return this.$refs.twinlist.validate();
|
|
239
239
|
},
|
|
240
240
|
hasSelection() {
|
|
241
|
-
|
|
242
|
-
return !!((t = this.selectedValues) != null && t.length);
|
|
241
|
+
return !!this.selectedValues?.length;
|
|
243
242
|
},
|
|
244
243
|
itemMatches(t) {
|
|
245
|
-
var a;
|
|
246
244
|
return P[this.mode].test(
|
|
247
|
-
this.mode === "type" ?
|
|
245
|
+
this.mode === "type" ? t.type?.id : t.text,
|
|
248
246
|
this.normalizedSearchTerm,
|
|
249
247
|
this.caseSensitivePattern,
|
|
250
248
|
this.inversePattern
|
|
@@ -252,39 +250,39 @@ const se = { render: ne }, ie = {
|
|
|
252
250
|
}
|
|
253
251
|
}
|
|
254
252
|
};
|
|
255
|
-
function de(t, l, a, o,
|
|
256
|
-
const b = m("ValueSwitch"),
|
|
253
|
+
function de(t, l, a, o, n, s) {
|
|
254
|
+
const b = m("ValueSwitch"), d = m("Label"), g = m("FilterIcon"), T = m("SearchInput"), S = m("Checkboxes"), y = m("Twinlist");
|
|
257
255
|
return h(), M("div", {
|
|
258
|
-
class:
|
|
256
|
+
class: j(["multi-mode-twinlist", { disabled: a.disabled }])
|
|
259
257
|
}, [
|
|
260
|
-
a.showMode ? (h(), w(
|
|
258
|
+
a.showMode ? (h(), w(d, {
|
|
261
259
|
key: 0,
|
|
262
260
|
active: a.withModeLabel,
|
|
263
261
|
text: a.modeLabel,
|
|
264
262
|
class: "label"
|
|
265
263
|
}, {
|
|
266
|
-
default: v(({ labelForId:
|
|
264
|
+
default: v(({ labelForId: c }) => [
|
|
267
265
|
f(b, {
|
|
268
|
-
id:
|
|
266
|
+
id: c,
|
|
269
267
|
ref: "mode",
|
|
270
268
|
compact: a.compact,
|
|
271
269
|
"model-value": a.mode,
|
|
272
270
|
disabled: a.disabled,
|
|
273
|
-
"possible-values":
|
|
274
|
-
"onUpdate:modelValue":
|
|
271
|
+
"possible-values": s.possibleModes,
|
|
272
|
+
"onUpdate:modelValue": s.onModeChange
|
|
275
273
|
}, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
|
|
276
274
|
]),
|
|
277
275
|
_: 1
|
|
278
276
|
}, 8, ["active", "text"])) : V("", !0),
|
|
279
|
-
a.mode === "regex" || a.mode === "wildcard" ? (h(), w(
|
|
277
|
+
a.mode === "regex" || a.mode === "wildcard" ? (h(), w(d, {
|
|
280
278
|
key: 1,
|
|
281
279
|
active: a.withPatternLabel,
|
|
282
280
|
text: a.patternLabel,
|
|
283
281
|
class: "label"
|
|
284
282
|
}, {
|
|
285
|
-
default: v(({ labelForId:
|
|
283
|
+
default: v(({ labelForId: c }) => [
|
|
286
284
|
f(T, {
|
|
287
|
-
id:
|
|
285
|
+
id: c,
|
|
288
286
|
ref: "search",
|
|
289
287
|
"model-value": a.pattern,
|
|
290
288
|
label: a.patternLabel,
|
|
@@ -298,9 +296,9 @@ function de(t, l, a, o, s, i) {
|
|
|
298
296
|
inverseSearch: "Move matching to other side"
|
|
299
297
|
},
|
|
300
298
|
compact: a.compact,
|
|
301
|
-
"onUpdate:modelValue":
|
|
302
|
-
onToggleCaseSensitiveSearch:
|
|
303
|
-
onToggleInverseSearch:
|
|
299
|
+
"onUpdate:modelValue": s.onPatternInput,
|
|
300
|
+
onToggleCaseSensitiveSearch: s.onToggleCaseSensitivePattern,
|
|
301
|
+
onToggleInverseSearch: s.onToggleInversePattern
|
|
304
302
|
}, {
|
|
305
303
|
icon: v(() => [
|
|
306
304
|
f(g)
|
|
@@ -310,7 +308,7 @@ function de(t, l, a, o, s, i) {
|
|
|
310
308
|
]),
|
|
311
309
|
_: 1
|
|
312
310
|
}, 8, ["active", "text"])) : V("", !0),
|
|
313
|
-
a.mode === "type" &&
|
|
311
|
+
a.mode === "type" && s.possibleTypes.length > 0 ? (h(), w(d, {
|
|
314
312
|
key: 2,
|
|
315
313
|
active: a.withTypesLabel,
|
|
316
314
|
text: a.typesLabel,
|
|
@@ -319,25 +317,25 @@ function de(t, l, a, o, s, i) {
|
|
|
319
317
|
default: v(() => [
|
|
320
318
|
f(S, {
|
|
321
319
|
"model-value": a.selectedTypes,
|
|
322
|
-
"possible-values":
|
|
320
|
+
"possible-values": s.possibleTypes,
|
|
323
321
|
disabled: a.disabled,
|
|
324
|
-
"onUpdate:modelValue":
|
|
322
|
+
"onUpdate:modelValue": s.onTypeInput
|
|
325
323
|
}, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
|
|
326
324
|
]),
|
|
327
325
|
_: 1
|
|
328
326
|
}, 8, ["active", "text"])) : V("", !0),
|
|
329
327
|
f(y, _(t.$attrs, {
|
|
330
328
|
ref: "twinlist",
|
|
331
|
-
disabled:
|
|
329
|
+
disabled: s.selectionDisabled,
|
|
332
330
|
"show-search": a.mode === "manual" && a.showSearch,
|
|
333
|
-
"model-value":
|
|
331
|
+
"model-value": s.twinlistModelValue,
|
|
334
332
|
"possible-values": a.possibleValues,
|
|
335
333
|
compact: a.compact,
|
|
336
|
-
"onUpdate:modelValue":
|
|
334
|
+
"onUpdate:modelValue": s.onManualInput
|
|
337
335
|
}), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
|
|
338
336
|
], 2);
|
|
339
337
|
}
|
|
340
|
-
const re = /* @__PURE__ */ U(oe, [["render", de], ["__scopeId", "data-v-09b6454f"]]), ue = /* @__PURE__ */
|
|
338
|
+
const re = /* @__PURE__ */ U(oe, [["render", de], ["__scopeId", "data-v-09b6454f"]]), ue = /* @__PURE__ */ N({
|
|
341
339
|
__name: "MultimodeTwinlistControl",
|
|
342
340
|
props: {
|
|
343
341
|
control: {},
|
|
@@ -357,112 +355,103 @@ const re = /* @__PURE__ */ U(oe, [["render", de], ["__scopeId", "data-v-09b6454f
|
|
|
357
355
|
let a = () => {
|
|
358
356
|
};
|
|
359
357
|
const o = (e) => {
|
|
360
|
-
const
|
|
361
|
-
l.changeValue(
|
|
362
|
-
},
|
|
358
|
+
const i = G(l.control.data, e);
|
|
359
|
+
l.changeValue(i), a?.(i.manualFilter);
|
|
360
|
+
}, n = (e) => {
|
|
363
361
|
o({ selected: e });
|
|
364
|
-
},
|
|
362
|
+
}, s = (e) => {
|
|
365
363
|
if (e !== null)
|
|
366
364
|
if ("includedValues" in e) {
|
|
367
|
-
const { includedValues:
|
|
368
|
-
if (!
|
|
365
|
+
const { includedValues: i, excludedValues: p, includeUnknownValues: r } = e;
|
|
366
|
+
if (!i || !p)
|
|
369
367
|
return;
|
|
370
368
|
o({
|
|
371
369
|
manualFilter: {
|
|
372
|
-
manuallySelected:
|
|
373
|
-
manuallyDeselected:
|
|
374
|
-
includeUnknownColumns:
|
|
370
|
+
manuallySelected: i,
|
|
371
|
+
manuallyDeselected: p,
|
|
372
|
+
includeUnknownColumns: r
|
|
375
373
|
}
|
|
376
374
|
});
|
|
377
375
|
} else
|
|
378
376
|
o({ manualFilter: { manuallySelected: e } });
|
|
379
377
|
}, b = (e) => {
|
|
380
378
|
o({ patternFilter: { pattern: e } });
|
|
381
|
-
},
|
|
379
|
+
}, d = (e) => {
|
|
382
380
|
o({ mode: e.toUpperCase() });
|
|
383
|
-
}, g = (e,
|
|
384
|
-
o({ typeFilter: { selectedTypes: e, typeDisplays:
|
|
381
|
+
}, g = (e, i) => {
|
|
382
|
+
o({ typeFilter: { selectedTypes: e, typeDisplays: i } });
|
|
385
383
|
}, T = (e) => {
|
|
386
384
|
o({ patternFilter: { isInverted: e } });
|
|
387
385
|
}, S = (e) => {
|
|
388
386
|
o({ patternFilter: { isCaseSensitive: e } });
|
|
389
387
|
}, { possibleValues: y } = J(
|
|
390
388
|
I(l, "control")
|
|
391
|
-
),
|
|
392
|
-
data:
|
|
393
|
-
possibleValueIds:
|
|
394
|
-
() => {
|
|
395
|
-
var e;
|
|
396
|
-
return ((e = y.value) == null ? void 0 : e.map(({ id: n }) => n)) ?? null;
|
|
397
|
-
}
|
|
389
|
+
), c = H([]), { selectedAndDeselected: C, setCurrentManualFilter: F } = $({
|
|
390
|
+
data: u(() => l.control.data),
|
|
391
|
+
possibleValueIds: u(
|
|
392
|
+
() => y.value?.map(({ id: e }) => e) ?? null
|
|
398
393
|
)
|
|
399
394
|
});
|
|
400
|
-
a =
|
|
401
|
-
const
|
|
402
|
-
const { selected: e, deselected:
|
|
395
|
+
a = F;
|
|
396
|
+
const k = u(() => {
|
|
397
|
+
const { selected: e, deselected: i } = C.value;
|
|
403
398
|
return l.showUnknownValues ? {
|
|
404
399
|
includedValues: e,
|
|
405
|
-
excludedValues:
|
|
400
|
+
excludedValues: i,
|
|
406
401
|
includeUnknownValues: l.control.data.manualFilter.includeUnknownColumns
|
|
407
402
|
} : e;
|
|
408
|
-
}), B =
|
|
403
|
+
}), B = u(
|
|
409
404
|
() => C.value.selected === null ? W(Z) : null
|
|
410
|
-
),
|
|
411
|
-
(
|
|
405
|
+
), x = (e) => typeof e > "u" ? {} : e.reduce(
|
|
406
|
+
(i, { id: p, text: r }) => ({ ...i, [p]: r }),
|
|
412
407
|
{}
|
|
413
408
|
), z = () => {
|
|
414
409
|
const e = l.control.data.typeFilter;
|
|
415
410
|
if (!e)
|
|
416
411
|
return [];
|
|
417
|
-
const
|
|
412
|
+
const i = e.selectedTypes, p = x(
|
|
418
413
|
e.typeDisplays
|
|
419
414
|
);
|
|
420
|
-
return
|
|
421
|
-
id:
|
|
422
|
-
text:
|
|
415
|
+
return i.map((r) => ({
|
|
416
|
+
id: r,
|
|
417
|
+
text: p[r] || r
|
|
423
418
|
}));
|
|
424
419
|
};
|
|
425
|
-
|
|
426
|
-
const D =
|
|
427
|
-
() =>
|
|
428
|
-
var e, n;
|
|
429
|
-
return !!((n = (e = y.value) == null ? void 0 : e[0]) != null && n.hasOwnProperty("type"));
|
|
430
|
-
}
|
|
420
|
+
c.value = z();
|
|
421
|
+
const D = u(
|
|
422
|
+
() => !!y.value?.[0]?.hasOwnProperty("type")
|
|
431
423
|
), { excludedLabel: R, includedLabel: A } = K(
|
|
432
424
|
I(l, "control")
|
|
433
|
-
), q =
|
|
434
|
-
return (e,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
"onUpdate:caseSensitivePattern": S
|
|
464
|
-
}), null, 16, ["id", "disabled", "with-types", "selected-types", "additional-possible-types", "pattern", "mode", "case-sensitive-pattern", "empty-state-component", "inverse-pattern", "manual-selection", "include-unknown-values", "possible-values", "size", "left-label", "right-label", "is-valid"]);
|
|
465
|
-
};
|
|
425
|
+
), q = u(() => R ?? l.twinlistLeftLabel), E = u(() => A ?? l.twinlistRightLabel);
|
|
426
|
+
return (e, i) => (h(), w(L(re), _(e.$attrs, {
|
|
427
|
+
id: e.labelForId,
|
|
428
|
+
disabled: e.disabled,
|
|
429
|
+
"with-types": D.value,
|
|
430
|
+
"selected-types": e.control.data.typeFilter?.selectedTypes,
|
|
431
|
+
"additional-possible-types": c.value,
|
|
432
|
+
pattern: e.control.data.patternFilter.pattern,
|
|
433
|
+
mode: e.control.data.mode.toLowerCase(),
|
|
434
|
+
"case-sensitive-pattern": e.control.data.patternFilter.isCaseSensitive,
|
|
435
|
+
"empty-state-component": B.value,
|
|
436
|
+
"inverse-pattern": e.control.data.patternFilter.isInverted,
|
|
437
|
+
"manual-selection": k.value,
|
|
438
|
+
"include-unknown-values": e.control.data.manualFilter.includeUnknownColumns,
|
|
439
|
+
"mode-label": "Selection mode",
|
|
440
|
+
"possible-values": L(y) ?? [],
|
|
441
|
+
size: e.twinlistSize,
|
|
442
|
+
"left-label": q.value,
|
|
443
|
+
"right-label": E.value,
|
|
444
|
+
"is-valid": e.isValid,
|
|
445
|
+
compact: "",
|
|
446
|
+
"show-resize-handle": "",
|
|
447
|
+
"onUpdate:selected": n,
|
|
448
|
+
"onUpdate:manualSelection": s,
|
|
449
|
+
"onUpdate:pattern": b,
|
|
450
|
+
"onUpdate:mode": d,
|
|
451
|
+
"onUpdate:selectedTypes": g,
|
|
452
|
+
"onUpdate:inversePattern": T,
|
|
453
|
+
"onUpdate:caseSensitivePattern": S
|
|
454
|
+
}), null, 16, ["id", "disabled", "with-types", "selected-types", "additional-possible-types", "pattern", "mode", "case-sensitive-pattern", "empty-state-component", "inverse-pattern", "manual-selection", "include-unknown-values", "possible-values", "size", "left-label", "right-label", "is-valid"]));
|
|
466
455
|
}
|
|
467
456
|
}), ge = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-37fe7036"]]);
|
|
468
457
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toRef as x, watch as S, resolveComponent as y,
|
|
2
|
-
import { u as K } from "./index-
|
|
3
|
-
import { S as N } from "./StyledListItem-
|
|
4
|
-
import { A, _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
1
|
+
import { toRef as x, watch as S, resolveComponent as y, createElementBlock as u, openBlock as h, normalizeStyle as p, normalizeClass as I, createElementVNode as m, createCommentVNode as g, mergeProps as C, withKeys as a, withModifiers as d, normalizeProps as v, guardReactiveProps as w, Fragment as V, renderList as k, createBlock as b, resolveDynamicComponent as D, toDisplayString as H, createVNode as B } from "vue";
|
|
2
|
+
import { u as K } from "./index-CpKfM262.js";
|
|
3
|
+
import { S as N } from "./StyledListItem-D-HJWfo5.js";
|
|
4
|
+
import { B as A, _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
5
5
|
const T = (e, t) => {
|
|
6
6
|
let i, r = 0;
|
|
7
7
|
return (...l) => {
|
|
@@ -131,10 +131,9 @@ const T = (e, t) => {
|
|
|
131
131
|
return S(
|
|
132
132
|
() => e.possibleValues,
|
|
133
133
|
() => {
|
|
134
|
-
var n;
|
|
135
134
|
if (!i.ref.value)
|
|
136
135
|
return;
|
|
137
|
-
const o =
|
|
136
|
+
const o = i.ref.value?.scrollTop ?? 0;
|
|
138
137
|
s(
|
|
139
138
|
Math.max(
|
|
140
139
|
Math.min(
|
|
@@ -195,10 +194,9 @@ const T = (e, t) => {
|
|
|
195
194
|
}
|
|
196
195
|
},
|
|
197
196
|
mounted() {
|
|
198
|
-
var t, i;
|
|
199
197
|
window.addEventListener("mouseup", this.onStopDrag);
|
|
200
|
-
const e =
|
|
201
|
-
this.currentKeyNavIndex = this.possibleValues.map((
|
|
198
|
+
const e = this.modelValue?.[this.modelValue?.length - 1];
|
|
199
|
+
this.currentKeyNavIndex = this.possibleValues.map((t) => t.id).indexOf(e);
|
|
202
200
|
},
|
|
203
201
|
beforeUnmount() {
|
|
204
202
|
window.removeEventListener("mouseup", this.onStopDrag);
|
|
@@ -217,8 +215,7 @@ const T = (e, t) => {
|
|
|
217
215
|
this.debouncedHandleCtrlClick || this.createDebouncedHandleCtrlClick(), this.debouncedHandleCtrlClick(e, t);
|
|
218
216
|
},
|
|
219
217
|
isCurrentValue(e) {
|
|
220
|
-
|
|
221
|
-
return (t = this.selectedValues) == null ? void 0 : t.includes(e);
|
|
218
|
+
return this.selectedValues?.includes(e);
|
|
222
219
|
},
|
|
223
220
|
handleCtrlClick(e, t) {
|
|
224
221
|
this.currentKeyNavIndex = t, this.toggleSelection(e);
|
|
@@ -301,16 +298,15 @@ const T = (e, t) => {
|
|
|
301
298
|
addToSelection(e) {
|
|
302
299
|
let t = !1;
|
|
303
300
|
const i = this.selectedValues;
|
|
304
|
-
return i
|
|
301
|
+
return i?.includes(e) || (i?.push(e), t = !0), this.setSelected(i), t;
|
|
305
302
|
},
|
|
306
303
|
removeFromSelection(e) {
|
|
307
304
|
let t = !1;
|
|
308
305
|
const i = this.selectedValues;
|
|
309
|
-
return i
|
|
306
|
+
return i?.includes(e) && (i.splice(i.indexOf(e), 1), t = !0), this.setSelected(i), t;
|
|
310
307
|
},
|
|
311
308
|
toggleSelection(e) {
|
|
312
|
-
|
|
313
|
-
(t = this.selectedValues) != null && t.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
|
|
309
|
+
this.selectedValues?.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
|
|
314
310
|
},
|
|
315
311
|
setSelectedNoShiftReset(e) {
|
|
316
312
|
consola.trace("MultiselectListBox setSelected on", e), this.selectedValues = e, this.$emit("update:modelValue", e);
|
|
@@ -414,8 +410,7 @@ const T = (e, t) => {
|
|
|
414
410
|
return `option-${this.id}-${i}`;
|
|
415
411
|
},
|
|
416
412
|
focus() {
|
|
417
|
-
|
|
418
|
-
this.disabled || (e = this.containerProps.ref.value) == null || e.focus();
|
|
413
|
+
this.disabled || this.containerProps.ref.value?.focus();
|
|
419
414
|
},
|
|
420
415
|
clearSelection() {
|
|
421
416
|
this.disabled || this.setSelected([]);
|
|
@@ -446,8 +441,8 @@ const T = (e, t) => {
|
|
|
446
441
|
function F(e, t, i, r, l, s) {
|
|
447
442
|
const o = y("StyledListItem");
|
|
448
443
|
return h(), u("div", {
|
|
449
|
-
class:
|
|
450
|
-
style:
|
|
444
|
+
class: I(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
|
|
445
|
+
style: p(s.cssStyleSize)
|
|
451
446
|
}, [
|
|
452
447
|
m("div", M, [
|
|
453
448
|
m("ul", C(r.containerProps, {
|
|
@@ -472,7 +467,7 @@ function F(e, t, i, r, l, s) {
|
|
|
472
467
|
onMousemove: t[11] || (t[11] = (...n) => s.onDrag && s.onDrag(...n))
|
|
473
468
|
}), [
|
|
474
469
|
m("div", v(w(r.wrapperProps)), [
|
|
475
|
-
(h(!0), u(V, null, k(r.list, ({ data: n, index: c }) => (h(),
|
|
470
|
+
(h(!0), u(V, null, k(r.list, ({ data: n, index: c }) => (h(), b(o, {
|
|
476
471
|
id: s.generateOptionId(n),
|
|
477
472
|
key: `listbox-${n.id}`,
|
|
478
473
|
text: n.text,
|
|
@@ -489,8 +484,8 @@ function F(e, t, i, r, l, s) {
|
|
|
489
484
|
], 16)
|
|
490
485
|
], 16, P),
|
|
491
486
|
s.showEmptyState ? (h(), u("div", E, [
|
|
492
|
-
i.emptyStateComponent ? (h(),
|
|
493
|
-
])) :
|
|
487
|
+
i.emptyStateComponent ? (h(), b(D(i.emptyStateComponent), { key: 0 })) : (h(), u("span", R, H(i.emptyStateLabel), 1))
|
|
488
|
+
])) : g("", !0),
|
|
494
489
|
i.withBottomValue ? (h(), u("div", U, [
|
|
495
490
|
B(o, {
|
|
496
491
|
id: s.generateOptionId(i.bottomValue),
|
|
@@ -505,7 +500,7 @@ function F(e, t, i, r, l, s) {
|
|
|
505
500
|
onMousedown: s.onBottomStartDrag,
|
|
506
501
|
onMousemove: s.onBottomDrag
|
|
507
502
|
}, null, 8, ["id", "text", "data-option-index", "selected", "disabled", "onClick", "onDblclickExact", "onMousedown", "onMousemove"])
|
|
508
|
-
])) :
|
|
503
|
+
])) : g("", !0)
|
|
509
504
|
])
|
|
510
505
|
], 6);
|
|
511
506
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
2
|
-
import l from "./MultimodeTwinlistControl-
|
|
1
|
+
import { defineComponent as n, createBlock as o, openBlock as t, mergeProps as a } from "vue";
|
|
2
|
+
import l from "./MultimodeTwinlistControl-BsFqHRFM.js";
|
|
3
3
|
const u = /* @__PURE__ */ n({
|
|
4
4
|
__name: "NameFilter",
|
|
5
5
|
props: {
|
|
@@ -12,7 +12,7 @@ const u = /* @__PURE__ */ n({
|
|
|
12
12
|
labelForId: {}
|
|
13
13
|
},
|
|
14
14
|
setup(r) {
|
|
15
|
-
return (e, s) => (
|
|
15
|
+
return (e, s) => (t(), o(l, a({ ...e.$props, ...e.$attrs }, {
|
|
16
16
|
"unknown-values-text": "Any unknown value",
|
|
17
17
|
"show-unknown-values": "",
|
|
18
18
|
"empty-state-label": "No values in this list"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as r } from "vue";
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "NumberControl",
|
|
5
5
|
props: {
|
|
@@ -12,7 +12,7 @@ const s = /* @__PURE__ */ o({
|
|
|
12
12
|
labelForId: {}
|
|
13
13
|
},
|
|
14
14
|
setup(p) {
|
|
15
|
-
return (e, l) => (
|
|
15
|
+
return (e, l) => (t(), n(a, r(e.$props, { type: "double" }), null, 16));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as p, computed as m, createBlock as v, openBlock as V, unref as E } from "vue";
|
|
2
|
+
import { u as f } from "./useBuiltinValidations-Boxrm71q.js";
|
|
3
|
+
import { N as y } from "./NumberInput-BepS3tAK.js";
|
|
4
|
+
const b = 1, g = 0.1, B = /* @__PURE__ */ p({
|
|
5
|
+
__name: "NumberControlBase",
|
|
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
|
+
type: {}
|
|
15
|
+
},
|
|
16
|
+
setup(r) {
|
|
17
|
+
const o = r, s = o.type === "integer" ? b : g, i = ({ min: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a > e : a >= e), u = ({ max: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a < e : a <= e), c = f(
|
|
18
|
+
{
|
|
19
|
+
min: i,
|
|
20
|
+
max: u
|
|
21
|
+
},
|
|
22
|
+
o
|
|
23
|
+
), t = m(() => c.value.min), l = m(() => c.value.max), d = () => {
|
|
24
|
+
const e = o.control.data;
|
|
25
|
+
if (t.value && !i(t.value)(e)) {
|
|
26
|
+
const { min: n, isExclusive: a } = t.value;
|
|
27
|
+
a ? o.changeValue(n + s) : o.changeValue(n);
|
|
28
|
+
} else if (l.value && !u(l.value)(e)) {
|
|
29
|
+
const { max: n, isExclusive: a } = l.value;
|
|
30
|
+
a ? o.changeValue(n - s) : o.changeValue(n);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (e, n) => (V(), v(E(y), {
|
|
34
|
+
id: e.labelForId,
|
|
35
|
+
class: "number-input",
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
"model-value": e.control.data,
|
|
38
|
+
type: e.type,
|
|
39
|
+
min: t.value?.min,
|
|
40
|
+
max: l.value?.max,
|
|
41
|
+
"is-valid": e.isValid,
|
|
42
|
+
compact: "",
|
|
43
|
+
"onUpdate:modelValue": e.changeValue,
|
|
44
|
+
onFocusout: d
|
|
45
|
+
}, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
B as _
|
|
50
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as p } from "./arrow-dropdown-
|
|
1
|
+
import { A as p } from "./arrow-dropdown-BAFsD8Su.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { resolveComponent as h,
|
|
4
|
-
import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
3
|
+
import { resolveComponent as h, createElementBlock as o, openBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
|
|
4
|
+
import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
5
5
|
const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
6
6
|
name: "NumberInput",
|
|
7
7
|
components: {
|
|
@@ -176,7 +176,7 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
176
176
|
};
|
|
177
177
|
function A(t, e, a, w, y, s) {
|
|
178
178
|
const u = h("ArrowIcon");
|
|
179
|
-
return
|
|
179
|
+
return d(), o("div", {
|
|
180
180
|
class: l(["wrapper", { disabled: a.disabled, compact: a.compact }])
|
|
181
181
|
}, [
|
|
182
182
|
n("input", {
|
|
@@ -196,7 +196,7 @@ function A(t, e, a, w, y, s) {
|
|
|
196
196
|
onMouseenter: e[2] || (e[2] = (...i) => s.toggleHover && s.toggleHover(...i)),
|
|
197
197
|
onMouseleave: e[3] || (e[3] = (...i) => s.toggleHover && s.toggleHover(...i))
|
|
198
198
|
}, null, 42, b),
|
|
199
|
-
a.isValid ? f("", !0) : (
|
|
199
|
+
a.isValid ? f("", !0) : (d(), o("span", N)),
|
|
200
200
|
n("span", {
|
|
201
201
|
class: l(["increase", { disabled: a.disabled }]),
|
|
202
202
|
onMousedown: e[4] || (e[4] = r((i) => s.mouseEvent(i, "increase"), ["prevent"])),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { D as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as r, computed as d, createBlock as i, openBlock as u, unref as n } from "vue";
|
|
2
|
+
import { o as c } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { D as m } from "./Dropdown-BEx-cvXH.js";
|
|
4
|
+
const g = /* @__PURE__ */ r({
|
|
5
5
|
__name: "OneOfDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
@@ -12,17 +12,16 @@ const F = /* @__PURE__ */ i({
|
|
|
12
12
|
onRegisterValidation: { type: Function },
|
|
13
13
|
labelForId: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
const e = p, r = ((n = (l = e.control.schema) == null ? void 0 : l.oneOf) == null ? void 0 : n.map(b)) ?? [], a = u({
|
|
15
|
+
setup(t) {
|
|
16
|
+
const e = t, s = e.control.schema?.oneOf?.map(c) ?? [], a = d({
|
|
18
17
|
get: () => e.control.data ?? "",
|
|
19
18
|
set: e.changeValue
|
|
20
19
|
});
|
|
21
|
-
return (o,
|
|
20
|
+
return (o, l) => (u(), i(n(m), {
|
|
22
21
|
id: o.labelForId,
|
|
23
22
|
modelValue: a.value,
|
|
24
|
-
"onUpdate:modelValue":
|
|
25
|
-
"possible-values": s
|
|
23
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p),
|
|
24
|
+
"possible-values": n(s),
|
|
26
25
|
ariaLabel: o.control.label,
|
|
27
26
|
disabled: o.disabled,
|
|
28
27
|
compact: ""
|
|
@@ -30,5 +29,5 @@ const F = /* @__PURE__ */ i({
|
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
export {
|
|
33
|
-
|
|
32
|
+
g as default
|
|
34
33
|
};
|