@knime/jsonforms 0.1.7 → 1.0.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 +14 -0
- package/README.md +71 -70
- package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
- package/dist/BaseButton-arvXMjXG.js +112 -0
- package/dist/Button-Bc51Uur8.js +83 -0
- package/dist/Checkbox-BxPISyW3.js +75 -0
- package/dist/CheckboxControl-B-RyvD0K.js +42 -0
- package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
- package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
- package/dist/ColumnFilter-bO-fKaHD.js +22 -0
- package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
- package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
- package/dist/DateControl-v0qHckKz.js +27 -0
- package/dist/DateTimeControl-COnMFfMd.js +47 -0
- package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
- package/dist/Dropdown-By1NMrXZ.js +691 -0
- package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
- package/dist/ErrorMessage-fuIcc8xw.js +23 -0
- package/dist/FunctionButton-DBec3TQi.js +75 -0
- package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
- package/dist/InputField-BKH5rtn3.js +148 -0
- package/dist/IntegerControl-CBuOHc4B.js +18 -0
- package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
- package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
- package/dist/NameFilter-oHBcHQTY.js +22 -0
- package/dist/NumberControl-Cwf50Oe-.js +18 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
- package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
- package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
- package/dist/RadioControl-DsVkQLSI.js +22 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
- package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
- package/dist/SectionLayout-BDgtf57K.js +43 -0
- package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
- package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
- package/dist/SortListControl-On9GHu_U.js +356 -0
- package/dist/TextAreaControl-DF_pLD80.js +108 -0
- package/dist/TextControl-BTZ4ONmV.js +4 -0
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
- package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
- package/dist/TwinlistControl-DcFpZrni.js +553 -0
- package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
- package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
- package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
- package/dist/VerticalLayout-D1KXulG4.js +30 -0
- package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
- package/dist/_baseAssignValue-C56BMUo_.js +19 -0
- package/dist/_baseEach-1sO8_8tT.js +31 -0
- package/dist/_baseIsEqual-d71B2UwX.js +248 -0
- package/dist/_baseIteratee-BgB8cpN8.js +104 -0
- package/dist/_getTag-BiNJdVyP.js +314 -0
- package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
- package/dist/close-h7XT0ja0.js +17 -0
- package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
- package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
- package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
- package/dist/index-C1PjXAJX.js +17 -0
- package/dist/index-Cp7Xre_V.js +331 -0
- package/dist/isObject-B53jY8Qg.js +7 -0
- package/dist/isSymbol-DLKDpjGl.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.d.ts +2 -0
- package/dist/knime-jsonforms.js +119 -3
- package/dist/magic-string.es-DFyz70Kz.js +860 -0
- package/dist/popper-1JCni0RT.js +907 -0
- package/dist/reload-BhzcZRFp.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/inputFormats.d.ts +25 -0
- package/dist/src/constants/priorityRanks.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
- package/dist/src/higherOrderComponents/index.d.ts +3 -0
- package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
- package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
- package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
- package/dist/src/higherOrderComponents/types.d.ts +25 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
- package/dist/src/layoutComponents/index.d.ts +3 -0
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
- package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
- package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
- package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
- package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/integerRenderer.d.ts +5 -0
- package/dist/src/renderers/intervalRenderer.d.ts +5 -0
- package/dist/src/renderers/localDateRenderer.d.ts +5 -0
- package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/numberRenderer.d.ts +5 -0
- package/dist/src/renderers/radioRenderer.d.ts +5 -0
- package/dist/src/renderers/richTextRenderer.d.ts +5 -0
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
- package/dist/src/renderers/sortListRenderer.d.ts +288 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
- package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
- package/dist/src/renderers/textRenderer.d.ts +193 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
- package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
- package/dist/src/types/Control.d.ts +2 -0
- package/dist/src/types/alert.d.ts +5 -0
- package/dist/src/types/provided.d.ts +25 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
- package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
- package/dist/src/uiComponents/index.d.ts +4 -0
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
- package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/inject.d.ts +3 -0
- package/dist/src/utils/localTimeUtils.d.ts +16 -0
- package/dist/svgWithTitle-zrGi2kyc.js +18 -0
- package/dist/testUtils/component.d.ts +190 -0
- package/dist/testUtils/index.d.ts +2 -0
- package/dist/testUtils/renderer.d.ts +6 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +18889 -0
- package/dist/toString-C9vll-oa.js +26 -0
- package/dist/useSearch-hpyYQ_6y.js +74 -0
- package/package.json +11 -7
- package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
- package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
- package/dist/ButtonControl-yAb2GdQI.js +0 -127
- package/dist/CheckboxControl-Ck45Jycu.js +0 -50
- package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
- package/dist/ColumnFilter-u7yVpuFC.js +0 -17
- package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
- package/dist/CredentialsControl-D1Te47JG.js +0 -20
- package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
- package/dist/DateControl-CuV2lKvs.js +0 -30
- package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
- package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
- package/dist/FileChooserControl-HX_GjlNB.js +0 -605
- package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
- package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
- package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
- package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
- package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
- package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
- package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
- package/dist/NameFilter-CsfBC6e2.js +0 -17
- package/dist/NodeDialog.vue.d.ts +0 -8
- package/dist/NumberControl-BJCFqjn3.js +0 -13
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
- package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
- package/dist/RadioControl-BZEV6NYx.js +0 -13
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
- package/dist/SectionLayout-DtVREvcv.js +0 -54
- package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
- package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
- package/dist/SortListControl-DcW5Ofs5.js +0 -316
- package/dist/TextAreaControl-DTw_oBDS.js +0 -111
- package/dist/TextControl-BlfySQDC.js +0 -49
- package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
- package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
- package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
- package/dist/VerticalLayout-CTFSrGS8.js +0 -39
- package/dist/arrow-up-Dsq3EgtE.js +0 -30
- package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
- package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
- package/dist/index-1mTLieVA.js +0 -32714
- package/dist/index.d.ts +0 -3
- package/dist/layoutComponents/Form.vue.d.ts +0 -2
- package/dist/link-BA69Hfx6.js +0 -17
- package/dist/loading/LoadingDialog.vue.d.ts +0 -2
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { openBlock as T, createElementBlock as N, createElementVNode as U, defineComponent as Z, computed as k, ref as O, watch as j, Fragment as W, createVNode as p, withKeys as C, withModifiers as I, unref as u, withCtx as w, nextTick as ae, onMounted as se, createTextVNode as E, normalizeClass as ie } from "vue";
|
|
2
|
-
import { aB as re, aC as ce, aD as ue, aE as de, F as y, _ as q, r as pe, a as me, V as ve, p as fe, q as we, B as F, L as he } from "./index-1mTLieVA.js";
|
|
3
|
-
import { A as be, a as Ve } from "./arrow-up-Dsq3EgtE.js";
|
|
4
|
-
import { i as _e } from "./navigator-BYUFe-z3.js";
|
|
5
|
-
import { M as ge } from "./MultiselectListBox-BWKtEC8t.js";
|
|
6
|
-
import { c as xe } from "./createMissingItem-B00Kg95q.js";
|
|
7
|
-
function ke(e, t, o, n) {
|
|
8
|
-
for (var s = e.length, l = o + -1; ++l < s; )
|
|
9
|
-
if (t(e[l], l, e))
|
|
10
|
-
return l;
|
|
11
|
-
return -1;
|
|
12
|
-
}
|
|
13
|
-
function Se(e) {
|
|
14
|
-
return e !== e;
|
|
15
|
-
}
|
|
16
|
-
function Ae(e, t, o) {
|
|
17
|
-
for (var n = o - 1, s = e.length; ++n < s; )
|
|
18
|
-
if (e[n] === t)
|
|
19
|
-
return n;
|
|
20
|
-
return -1;
|
|
21
|
-
}
|
|
22
|
-
function Ce(e, t, o) {
|
|
23
|
-
return t === t ? Ae(e, t, o) : ke(e, Se, o);
|
|
24
|
-
}
|
|
25
|
-
function Ie(e, t, o, n) {
|
|
26
|
-
for (var s = -1, l = e == null ? 0 : e.length; ++s < l; ) {
|
|
27
|
-
var i = e[s];
|
|
28
|
-
t(n, i, o(i), e);
|
|
29
|
-
}
|
|
30
|
-
return n;
|
|
31
|
-
}
|
|
32
|
-
function ye(e, t, o, n) {
|
|
33
|
-
return re(e, function(s, l, i) {
|
|
34
|
-
t(n, s, o(s), i);
|
|
35
|
-
}), n;
|
|
36
|
-
}
|
|
37
|
-
function z(e, t) {
|
|
38
|
-
return function(o, n) {
|
|
39
|
-
var s = ue(o) ? Ie : ye, l = t ? t() : {};
|
|
40
|
-
return s(o, e, ce(n), l);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function Y(e, t, o) {
|
|
44
|
-
var n = e == null ? 0 : e.length;
|
|
45
|
-
if (!n)
|
|
46
|
-
return -1;
|
|
47
|
-
var s = 0;
|
|
48
|
-
return Ce(e, t, s);
|
|
49
|
-
}
|
|
50
|
-
var Ue = z(function(e, t, o) {
|
|
51
|
-
de(e, o, t);
|
|
52
|
-
}), Le = z(function(e, t, o) {
|
|
53
|
-
e[o ? 0 : 1].push(t);
|
|
54
|
-
}, function() {
|
|
55
|
-
return [[], []];
|
|
56
|
-
});
|
|
57
|
-
const H = {
|
|
58
|
-
ArrowUp: "↑",
|
|
59
|
-
ArrowDown: "↓",
|
|
60
|
-
ArrowLeft: "←",
|
|
61
|
-
ArrowRight: "→",
|
|
62
|
-
Enter: "↵",
|
|
63
|
-
" ": "Space",
|
|
64
|
-
// we use event.key and there space is an actual space not the code "Space"
|
|
65
|
-
CtrlOrCmd: "Ctrl"
|
|
66
|
-
}, Me = {
|
|
67
|
-
Shift: "⇧",
|
|
68
|
-
Delete: "⌫",
|
|
69
|
-
CtrlOrCmd: "⌘",
|
|
70
|
-
Ctrl: "⌃",
|
|
71
|
-
Alt: "⌥",
|
|
72
|
-
Enter: "↩"
|
|
73
|
-
}, G = (e) => {
|
|
74
|
-
const t = (l) => (i) => l[i] ?? i, n = ((...l) => l.reduce((i, m) => (b) => m(i(b))))(
|
|
75
|
-
t(Me),
|
|
76
|
-
t(H)
|
|
77
|
-
), s = t(H);
|
|
78
|
-
return _e() ? n(e) : s(e);
|
|
79
|
-
}, J = () => " ", Be = (e, t = J) => e.map(G).join(t()), Ee = { formatHotkeys: Be, formatHotkey: G, getDefaultSeparator: J }, Fe = {
|
|
80
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
-
fill: "none",
|
|
82
|
-
stroke: "#000",
|
|
83
|
-
viewBox: "0 0 32 32"
|
|
84
|
-
}, Te = /* @__PURE__ */ U("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Ne = [
|
|
85
|
-
Te
|
|
86
|
-
];
|
|
87
|
-
function De(e, t) {
|
|
88
|
-
return T(), N("svg", Fe, [...Ne]);
|
|
89
|
-
}
|
|
90
|
-
const R = { render: De }, Pe = { class: "buttons" }, Ke = /* @__PURE__ */ Z({
|
|
91
|
-
__name: "SortList",
|
|
92
|
-
props: {
|
|
93
|
-
modelValue: {},
|
|
94
|
-
id: {},
|
|
95
|
-
ariaLabel: {},
|
|
96
|
-
disabled: { type: Boolean },
|
|
97
|
-
possibleValues: {}
|
|
98
|
-
},
|
|
99
|
-
emits: ["update:modelValue"],
|
|
100
|
-
setup(e, { emit: t }) {
|
|
101
|
-
const o = e, n = t, s = k(() => Ue(o.possibleValues, "id")), l = k(
|
|
102
|
-
() => o.modelValue.map(
|
|
103
|
-
(a) => s.value[a] ?? xe(a)
|
|
104
|
-
)
|
|
105
|
-
), i = O([]);
|
|
106
|
-
j(
|
|
107
|
-
() => o.modelValue,
|
|
108
|
-
(a) => {
|
|
109
|
-
const r = new Set(a);
|
|
110
|
-
i.value = i.value.filter((c) => r.has(c));
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
const m = k(() => i.value.length === 0), b = (a, r, c) => [
|
|
114
|
-
a.slice(0, r),
|
|
115
|
-
a.slice(r, c),
|
|
116
|
-
a.slice(c)
|
|
117
|
-
], L = (a) => {
|
|
118
|
-
let r = 0;
|
|
119
|
-
return (c) => a(c, r++);
|
|
120
|
-
}, M = (a, r) => Le(
|
|
121
|
-
a,
|
|
122
|
-
L((c, x) => r(x))
|
|
123
|
-
), h = O(null), S = (a) => ({ to: r } = {}) => {
|
|
124
|
-
const c = i.value.map((f) => Y(o.modelValue, f)).sort((f, A) => f - A), x = (a === "up" ? r : null) ?? Math.max(c[0] - 1, 0), B = (a === "down" ? r : null) ?? c[c.length - 1] + 1, [Q, X, ee] = b(
|
|
125
|
-
o.modelValue,
|
|
126
|
-
x,
|
|
127
|
-
B + 1
|
|
128
|
-
), te = new Set(c), [D, P] = M(
|
|
129
|
-
X,
|
|
130
|
-
(f) => te.has(f + x)
|
|
131
|
-
), [oe, ne] = a === "up" ? [D, P] : [P, D], le = Q.concat(oe, ne, ee);
|
|
132
|
-
n("update:modelValue", le), ae(() => {
|
|
133
|
-
var f, A, K, $;
|
|
134
|
-
a === "up" ? ((f = h.value) == null || f.scrollUpIntoView(x - 1), (A = h.value) == null || A.setCurrentKeyNavIndex(x)) : ((K = h.value) == null || K.scrollDownIntoView(B + 1), ($ = h.value) == null || $.setCurrentKeyNavIndex(B));
|
|
135
|
-
});
|
|
136
|
-
}, V = S("up"), d = S("down"), v = () => V({ to: 0 }), _ = () => d({ to: o.modelValue.length }), g = (a, r) => `${a} (${Ee.formatHotkeys(r)})`;
|
|
137
|
-
return (a, r) => (T(), N(W, null, [
|
|
138
|
-
p(ge, {
|
|
139
|
-
id: a.id,
|
|
140
|
-
ref_key: "listBox",
|
|
141
|
-
ref: h,
|
|
142
|
-
modelValue: i.value,
|
|
143
|
-
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
144
|
-
"possible-values": l.value,
|
|
145
|
-
ariaLabel: `sortListBox_${a.ariaLabel}`,
|
|
146
|
-
"with-is-empty-state": !0,
|
|
147
|
-
"empty-state-label": "Empty",
|
|
148
|
-
size: 10,
|
|
149
|
-
onKeydown: [
|
|
150
|
-
C(I(u(d), ["alt"]), ["down"]),
|
|
151
|
-
C(I(u(V), ["alt"]), ["up"]),
|
|
152
|
-
C(I(v, ["alt"]), ["home"]),
|
|
153
|
-
C(I(_, ["alt"]), ["end"])
|
|
154
|
-
]
|
|
155
|
-
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
156
|
-
U("div", Pe, [
|
|
157
|
-
p(y, {
|
|
158
|
-
disabled: m.value,
|
|
159
|
-
title: g("Move to top", ["Alt", "Home"]),
|
|
160
|
-
compact: "",
|
|
161
|
-
onClick: v
|
|
162
|
-
}, {
|
|
163
|
-
default: w(() => [
|
|
164
|
-
p(u(R), { class: "rotated" })
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["disabled", "title"]),
|
|
168
|
-
p(y, {
|
|
169
|
-
disabled: m.value,
|
|
170
|
-
title: g("Move to bottom", ["Alt", "End"]),
|
|
171
|
-
compact: "",
|
|
172
|
-
onClick: _
|
|
173
|
-
}, {
|
|
174
|
-
default: w(() => [
|
|
175
|
-
p(u(R))
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
}, 8, ["disabled", "title"]),
|
|
179
|
-
p(y, {
|
|
180
|
-
disabled: m.value,
|
|
181
|
-
title: g("Move up", ["Alt", "ArrowUp"]),
|
|
182
|
-
compact: "",
|
|
183
|
-
onClick: u(V)
|
|
184
|
-
}, {
|
|
185
|
-
default: w(() => [
|
|
186
|
-
p(u(be))
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["disabled", "title", "onClick"]),
|
|
190
|
-
p(y, {
|
|
191
|
-
disabled: m.value,
|
|
192
|
-
title: g("Move down", ["Alt", "ArrowDown"]),
|
|
193
|
-
compact: "",
|
|
194
|
-
onClick: u(d)
|
|
195
|
-
}, {
|
|
196
|
-
default: w(() => [
|
|
197
|
-
p(u(Ve))
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
}, 8, ["disabled", "title", "onClick"])
|
|
201
|
-
])
|
|
202
|
-
], 64));
|
|
203
|
-
}
|
|
204
|
-
}), $e = /* @__PURE__ */ q(Ke, [["__scopeId", "data-v-116782be"]]), Oe = {
|
|
205
|
-
class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
|
|
206
|
-
}, He = { class: "flex" }, Re = "<any unknown new column>", Ze = /* @__PURE__ */ Z({
|
|
207
|
-
__name: "SortListControl",
|
|
208
|
-
props: {
|
|
209
|
-
...pe(),
|
|
210
|
-
anyUnknownValuesId: {
|
|
211
|
-
type: String,
|
|
212
|
-
default: Re
|
|
213
|
-
},
|
|
214
|
-
anyUnknownValuesText: {
|
|
215
|
-
type: String,
|
|
216
|
-
default: "Any unknown column"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
setup(e) {
|
|
220
|
-
const t = e, { onChange: o, control: n, disabled: s } = me({ props: t }), l = k(() => n.value.data), i = k(
|
|
221
|
-
() => n.value.uischema.options.choicesProvider
|
|
222
|
-
), m = ve(
|
|
223
|
-
fe(
|
|
224
|
-
i,
|
|
225
|
-
[]
|
|
226
|
-
),
|
|
227
|
-
n.value
|
|
228
|
-
), b = k(
|
|
229
|
-
() => m.value.concat({
|
|
230
|
-
id: t.anyUnknownValuesId,
|
|
231
|
-
text: t.anyUnknownValuesText,
|
|
232
|
-
special: !0
|
|
233
|
-
})
|
|
234
|
-
), L = (d) => {
|
|
235
|
-
if (l.value.length === 0) {
|
|
236
|
-
V();
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
const v = Y(l.value, t.anyUnknownValuesId);
|
|
240
|
-
if (v === -1)
|
|
241
|
-
throw new Error(
|
|
242
|
-
`SortList data have to contain the value "${t.anyUnknownValuesId}"`
|
|
243
|
-
);
|
|
244
|
-
const _ = l.value.slice(0, v + 1), g = l.value.slice(v + 1), a = new Set(l.value), r = d.map(({ id: c }) => c).filter((c) => !a.has(c));
|
|
245
|
-
r.length > 0 && o(_.concat(r, g));
|
|
246
|
-
}, M = we("getPossibleValuesFromUiSchema");
|
|
247
|
-
se(async () => {
|
|
248
|
-
const d = n.value.uischema.options.possibleValues;
|
|
249
|
-
d ? m.value = d : i.value || (m.value = await M(n.value));
|
|
250
|
-
}), j(() => m.value, L);
|
|
251
|
-
const h = () => {
|
|
252
|
-
o(l.value.toSorted((d, v) => d.localeCompare(v)));
|
|
253
|
-
}, S = () => {
|
|
254
|
-
o(l.value.toSorted((d, v) => v.localeCompare(d)));
|
|
255
|
-
}, V = () => {
|
|
256
|
-
o(b.value.map(({ id: d }) => d));
|
|
257
|
-
};
|
|
258
|
-
return (d, v) => (T(), N(W, null, [
|
|
259
|
-
U("div", Oe, [
|
|
260
|
-
U("div", He, [
|
|
261
|
-
p(u(F), {
|
|
262
|
-
"with-border": "",
|
|
263
|
-
compact: "",
|
|
264
|
-
onClick: h
|
|
265
|
-
}, {
|
|
266
|
-
default: w(() => [
|
|
267
|
-
E("A - Z")
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}),
|
|
271
|
-
p(u(F), {
|
|
272
|
-
"with-border": "",
|
|
273
|
-
compact: "",
|
|
274
|
-
onClick: S
|
|
275
|
-
}, {
|
|
276
|
-
default: w(() => [
|
|
277
|
-
E("Z - A")
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
})
|
|
281
|
-
]),
|
|
282
|
-
p(u(F), {
|
|
283
|
-
"with-border": "",
|
|
284
|
-
compact: "",
|
|
285
|
-
onClick: V
|
|
286
|
-
}, {
|
|
287
|
-
default: w(() => [
|
|
288
|
-
E("Reset all")
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
})
|
|
292
|
-
]),
|
|
293
|
-
p(he, {
|
|
294
|
-
control: u(n),
|
|
295
|
-
onControllingFlowVariableSet: u(o)
|
|
296
|
-
}, {
|
|
297
|
-
default: w(({ labelForId: _ }) => [
|
|
298
|
-
p(u($e), {
|
|
299
|
-
id: _ ?? void 0,
|
|
300
|
-
"possible-values": b.value,
|
|
301
|
-
"model-value": l.value,
|
|
302
|
-
ariaLabel: u(n).label,
|
|
303
|
-
disabled: u(s),
|
|
304
|
-
compact: "",
|
|
305
|
-
"onUpdate:modelValue": u(o)
|
|
306
|
-
}, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
}, 8, ["control", "onControllingFlowVariableSet"])
|
|
310
|
-
], 64));
|
|
311
|
-
}
|
|
312
|
-
}), Je = /* @__PURE__ */ q(Ze, [["__scopeId", "data-v-7880564f"]]);
|
|
313
|
-
export {
|
|
314
|
-
Re as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
315
|
-
Je as default
|
|
316
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as u, normalizeClass as c, createElementVNode as p, createCommentVNode as _, defineComponent as b, createBlock as V, unref as t, withCtx as h, createVNode as C } from "vue";
|
|
2
|
-
import { _ as m, r as g, a as x, L as y } from "./index-1mTLieVA.js";
|
|
3
|
-
const w = {
|
|
4
|
-
name: "TextArea",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
default: "",
|
|
8
|
-
type: [Number, String]
|
|
9
|
-
},
|
|
10
|
-
id: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: null
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Validity controlled by the parent component to be flexible.
|
|
20
|
-
*/
|
|
21
|
-
isValid: {
|
|
22
|
-
default: !0,
|
|
23
|
-
type: Boolean
|
|
24
|
-
},
|
|
25
|
-
cols: {
|
|
26
|
-
default: 12,
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
rows: {
|
|
30
|
-
default: 4,
|
|
31
|
-
type: Number
|
|
32
|
-
},
|
|
33
|
-
placeholder: {
|
|
34
|
-
default: null,
|
|
35
|
-
type: String
|
|
36
|
-
},
|
|
37
|
-
inputClasses: {
|
|
38
|
-
default: "",
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
title: {
|
|
42
|
-
default: null,
|
|
43
|
-
type: String
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
default: !1,
|
|
47
|
-
type: Boolean
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
emits: ["update:modelValue"],
|
|
51
|
-
methods: {
|
|
52
|
-
getValue() {
|
|
53
|
-
return this.$refs.input.value;
|
|
54
|
-
},
|
|
55
|
-
onInput() {
|
|
56
|
-
this.$emit("update:modelValue", this.getValue());
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, v = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], S = {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "invalid-marker"
|
|
62
|
-
};
|
|
63
|
-
function I(d, l, e, a, r, o) {
|
|
64
|
-
return n(), u("div", {
|
|
65
|
-
class: c({ disabled: e.disabled })
|
|
66
|
-
}, [
|
|
67
|
-
p("textarea", {
|
|
68
|
-
id: e.id,
|
|
69
|
-
ref: "input",
|
|
70
|
-
name: e.name,
|
|
71
|
-
title: e.title,
|
|
72
|
-
value: e.modelValue,
|
|
73
|
-
class: c(e.inputClasses),
|
|
74
|
-
cols: e.cols,
|
|
75
|
-
disabled: e.disabled,
|
|
76
|
-
rows: e.rows,
|
|
77
|
-
placeholder: e.placeholder,
|
|
78
|
-
onInput: l[0] || (l[0] = (...s) => o.onInput && o.onInput(...s))
|
|
79
|
-
}, null, 42, v),
|
|
80
|
-
e.isValid ? _("", !0) : (n(), u("span", S))
|
|
81
|
-
], 2);
|
|
82
|
-
}
|
|
83
|
-
const N = /* @__PURE__ */ m(w, [["render", I], ["__scopeId", "data-v-12f15ade"]]), k = /* @__PURE__ */ b({
|
|
84
|
-
__name: "TextAreaControl",
|
|
85
|
-
props: g(),
|
|
86
|
-
setup(d) {
|
|
87
|
-
const l = d, { control: e, onChange: a, disabled: r } = x({ props: l });
|
|
88
|
-
return (o, s) => (n(), V(y, {
|
|
89
|
-
control: t(e),
|
|
90
|
-
onControllingFlowVariableSet: t(a)
|
|
91
|
-
}, {
|
|
92
|
-
default: h(({ labelForId: f }) => {
|
|
93
|
-
var i;
|
|
94
|
-
return [
|
|
95
|
-
C(t(N), {
|
|
96
|
-
id: f,
|
|
97
|
-
class: "text-area-input",
|
|
98
|
-
"model-value": t(e).data,
|
|
99
|
-
disabled: t(r),
|
|
100
|
-
rows: (i = t(e).uischema.options) == null ? void 0 : i.rows,
|
|
101
|
-
"onUpdate:modelValue": t(a)
|
|
102
|
-
}, null, 8, ["id", "model-value", "disabled", "rows", "onUpdate:modelValue"])
|
|
103
|
-
];
|
|
104
|
-
}),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
107
|
-
}
|
|
108
|
-
}), T = /* @__PURE__ */ m(k, [["__scopeId", "data-v-d2f64319"]]);
|
|
109
|
-
export {
|
|
110
|
-
T as default
|
|
111
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as _, openBlock as r, createBlock as t, unref as e, withCtx as d, normalizeProps as x, mergeProps as v, createCommentVNode as u } from "vue";
|
|
2
|
-
import { r as P, a as g, p as w, L as V, m as y, I as F } from "./index-1mTLieVA.js";
|
|
3
|
-
import { u as N } from "./useHideOnNull-CCfNP3O7.js";
|
|
4
|
-
const L = /* @__PURE__ */ k({
|
|
5
|
-
__name: "TextControl",
|
|
6
|
-
props: P(),
|
|
7
|
-
setup(p) {
|
|
8
|
-
var s, c;
|
|
9
|
-
const i = p, { onChange: l, control: o, disabled: a } = g({ props: i }), m = w(
|
|
10
|
-
(s = o.value.uischema.options) == null ? void 0 : s.placeholderProvider,
|
|
11
|
-
((c = o.value.uischema.options) == null ? void 0 : c.placeholder) ?? ""
|
|
12
|
-
), n = _(null), { showCheckbox: h, showControl: f, checkboxProps: C } = N(
|
|
13
|
-
{
|
|
14
|
-
control: o,
|
|
15
|
-
disabled: a,
|
|
16
|
-
controlElement: n
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
setDefault: () => l(""),
|
|
20
|
-
setNull: () => l(null)
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
return (S, B) => (r(), t(V, {
|
|
24
|
-
control: e(o),
|
|
25
|
-
onControllingFlowVariableSet: e(l)
|
|
26
|
-
}, {
|
|
27
|
-
"before-label": d(() => [
|
|
28
|
-
e(h) ? (r(), t(e(y), x(v({ key: 0 }, e(C))), null, 16)) : u("", !0)
|
|
29
|
-
]),
|
|
30
|
-
default: d(({ labelForId: b }) => [
|
|
31
|
-
e(f) ? (r(), t(e(F), {
|
|
32
|
-
key: 0,
|
|
33
|
-
id: b,
|
|
34
|
-
ref_key: "controlElement",
|
|
35
|
-
ref: n,
|
|
36
|
-
placeholder: e(m),
|
|
37
|
-
"model-value": e(o).data,
|
|
38
|
-
disabled: e(a),
|
|
39
|
-
compact: "",
|
|
40
|
-
"onUpdate:modelValue": e(l)
|
|
41
|
-
}, null, 8, ["id", "placeholder", "model-value", "disabled", "onUpdate:modelValue"])) : u("", !0)
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
L as default
|
|
49
|
-
};
|