@knime/jsonforms 1.18.0 → 1.18.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 +6 -0
- package/dist/{AnyOfTwinlist-DNsHUZei.js → AnyOfTwinlist-Dk_ou9W9.js} +1 -1
- package/dist/{Button-BICIAXt_.js → Button-D8mgaxLU.js} +1 -1
- package/dist/{Checkbox-CWL8weTr.js → Checkbox-DD4pKL3h.js} +1 -1
- package/dist/{CheckboxControl-bjaWoB4c.js → CheckboxControl-NTWDDTuK.js} +1 -1
- package/dist/{Checkboxes-D3XPQc69.js → Checkboxes-BZyTWKxA.js} +2 -2
- package/dist/{CheckboxesControl-BxTmNLjK.js → CheckboxesControl-DYSMiVtJ.js} +3 -3
- package/dist/{ComboBoxControl-DIucqZ5g.js → ComboBoxControl-LCX4h3aU.js} +3 -3
- package/dist/{DateControl-BNeGXflU.js → DateControl-DI6h7HP8.js} +1 -1
- package/dist/{DateTimeControl-CcsnEIq0.js → DateTimeControl-VgDOif_C.js} +1 -1
- package/dist/{DateTimeFormatInput-CW04StCG.js → DateTimeFormatInput-DkqacscY.js} +5 -6
- package/dist/{DateTimeFormatPickerControl-DGKFzxb_.js → DateTimeFormatPickerControl-BSrOOnCs.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-85204whr.js → DateTimeFormatPickerWithTypeControl-hk-FzFiP.js} +3 -3
- package/dist/{Dropdown-CIypkp0O.js → Dropdown-DCj9CrKC.js} +25 -26
- package/dist/{DropdownControl-4AhoNiKk.js → DropdownControl-CCP_1uip.js} +3 -3
- package/dist/{HorizontalLayout-DaqXoro5.js → HorizontalLayout-BYLOtJxA.js} +1 -1
- package/dist/{InputField-DdqH6dhw.js → InputField-Dvezbm7O.js} +1 -1
- package/dist/{IntegerControl-mbOHHY3i.js → IntegerControl-CVJrLhsi.js} +1 -1
- package/dist/{IntervalControl-D8TeFfuS.js → IntervalControl-CkUZmAS3.js} +23 -24
- package/dist/{LoadingDropdown--cwIsJdm.js → LoadingDropdown-BI_31sRO.js} +5 -5
- package/dist/{LoadingIcon-DVB5Htes.js → LoadingIcon-DlQBrbLr.js} +1 -1
- package/dist/{ManualTwinlistControl-BRitiAxR.js → ManualTwinlistControl-DZnXKbOp.js} +4 -4
- package/dist/{MultiSelectListBoxControl-CN3QiEdL.js → MultiSelectListBoxControl-CI5uZ6q4.js} +2 -2
- package/dist/{MultimodeTwinlistControl-O0R4oOLS.js → MultimodeTwinlistControl-VeD41Gre.js} +18 -18
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-L5I6qYVS.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-DQ6N2rm-.js} +2 -2
- package/dist/{MultiselectListBox-CQ3iTrKc.js → MultiselectListBox-Dl_jpzqo.js} +6 -7
- package/dist/{NameFilter-ClMXE3-2.js → NameFilter-CYgrV7af.js} +1 -1
- package/dist/{NumberControl-DMpTZQhn.js → NumberControl-ByeZpXkg.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-CDRKAuGz.js → NumberControlBase.vue_vue_type_script_setup_true_lang-BwL1OLQ_.js} +2 -2
- package/dist/{NumberInput-DlvskoRZ.js → NumberInput-BNOfmKVa.js} +1 -1
- package/dist/{OneOfDropdown-DVGE71fW.js → OneOfDropdown-CoyhfG0y.js} +1 -1
- package/dist/{RadioControl-bKZb-PCj.js → RadioControl-CGDyH1c0.js} +5 -5
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CcnOafHA.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BfNBgOGr.js} +16 -16
- package/dist/{RichTextControl-BB6-PEf-.js → RichTextControl-CkXcfkrB.js} +13 -14
- package/dist/{SectionHeading-D_aTs-g5.js → SectionHeading-CQ5ZhHbM.js} +1 -1
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CQxP1EIA.js +16726 -0
- package/dist/{SectionLayout-Ba7NpHTm.js → SectionLayout-k5W0xxod.js} +3 -3
- package/dist/{SettingsSubPanel-BRHq7-xS.js → SettingsSubPanel-C4se578b.js} +1 -1
- package/dist/{SettingsSubPanelLayout-C3hw4UGI.js → SettingsSubPanelLayout-BmLlsA43.js} +4 -4
- package/dist/{SimpleButtonControl-CGe9roDQ.js → SimpleButtonControl-DkywfxOh.js} +2 -2
- package/dist/{SimpleTwinlistControl-nBi-T2QR.js → SimpleTwinlistControl-CpfNxe_A.js} +2 -2
- package/dist/{SingleSelectControl-Dg18bGk9.js → SingleSelectControl-Cn4i_dQA.js} +2 -2
- package/dist/{SingleSelectListBoxControl-BsQMs5Xl.js → SingleSelectListBoxControl-FSDzcglF.js} +5 -5
- package/dist/{SortListControl-w5mvLX6s.js → SortListControl-DoMyixya.js} +20 -20
- package/dist/{StyledListItem-nU28IyY6.js → StyledListItem-CAnXva6A.js} +1 -1
- package/dist/{TextAreaControl-BcPobxLV.js → TextAreaControl-zDaBkP9F.js} +1 -1
- package/dist/{TextControl-kY3Ra8PG.js → TextControl-C_xVOyqJ.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-D838LEWg.js → TextControl.vue_vue_type_script_setup_true_lang-C_ayUzXZ.js} +3 -3
- package/dist/{TimeControl-CcvAtvwb.js → TimeControl-BFW6Jbz3.js} +1 -1
- package/dist/{TwinlistControlBase-Da7Vi8Ne.js → TwinlistControlBase-hU63N9DI.js} +7 -7
- package/dist/{TwinlistLoadingInfo-BvCXnExs.js → TwinlistLoadingInfo-CEKS8EK-.js} +26 -26
- package/dist/{TypedStringFilter-DuFP6CtD.js → TypedStringFilter-D0CV_lR9.js} +1 -1
- package/dist/{ValueSwitch-CAxte3Dc.js → ValueSwitch-BX_4vNxr.js} +4 -4
- package/dist/{ValueSwitchControl-DcBjKQSo.js → ValueSwitchControl-uuYwunJW.js} +1 -1
- package/dist/{VerticalLayout-CUHbdUdk.js → VerticalLayout-DuBfkHiD.js} +2 -2
- package/dist/{VerticalLayoutBase-D1nKyweu.js → VerticalLayoutBase-BzGelHRs.js} +1 -1
- package/dist/{ZonedDateTimeControl-B5cuTrgr.js → ZonedDateTimeControl-BuxRP-bI.js} +3 -3
- package/dist/{_baseEach-CPQiIPkT.js → _baseEach-Bo6-9-dg.js} +2 -2
- package/dist/{_baseIteratee-B7Yxi-1S.js → _baseIteratee-Cn5QShGO.js} +3 -3
- package/dist/{_getTag-DuCXbcgW.js → _getTag-Bvm_nCSV.js} +1 -1
- package/dist/circle-error-BKcmt7Jv-EwT8EkbM.js +22 -0
- package/dist/circle-info-UvZ8z7Uk-DygBesk-.js +23 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/local-filesystem-hArfE0_N-CbgY_UQS.js +22 -0
- package/dist/{localTimeUtils-DYizf_Fj.js → localTimeUtils-D8YXvgUG.js} +6 -6
- package/dist/minimize-side-panel-Brx7aXNg-Bk7ePyhf.js +22 -0
- package/dist/src/renderers/defaultRenderers.d.ts +2 -2
- package/dist/src/renderers/radioRenderer.d.ts +1 -1
- package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +1 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/{toString-NQDxp2E1.js → toString-QZrKsF0R.js} +1 -1
- package/dist/{useBuiltinValidations-ClKpiL2R.js → useBuiltinValidations-BuK2jQ92.js} +1 -1
- package/dist/{usePossibleValues-CYraIICE.js → usePossibleValues-mDlctZMJ.js} +1 -1
- package/package.json +3 -3
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CJiCxiU3.js +0 -16122
- package/dist/circle-error-DSKuwq8B-CWvOjP4j.js +0 -22
- package/dist/circle-info-DL9BFZEc-BlUxsw1S.js +0 -22
- package/dist/index-CZ-Na6c0.js +0 -376
- package/dist/local-filesystem-D9Znqo5U-U94FQxJl.js +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
|
|
2
|
-
const l = {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
viewBox: "0 0 12 12"
|
|
7
|
-
};
|
|
8
|
-
function n(c, e) {
|
|
9
|
-
return r(), o("svg", l, [...e[0] || (e[0] = [
|
|
10
|
-
t("path", {
|
|
11
|
-
fill: "#000",
|
|
12
|
-
stroke: "none",
|
|
13
|
-
d: "M4.354 3.777a.5.5 0 0 0-.708.707zm3.292 4.707a.5.5 0 1 0 .708-.707zm.708-4a.5.5 0 1 0-.708-.707zM3.646 7.777a.5.5 0 1 0 .708.707zM4 4.13l-.354.354 2 2L6 6.13l.354-.353-2-2zm2 2-.354.354 2 2L8 8.13l.354-.353-2-2zm2-2-.354-.353-2 2L6 6.13l.354.354 2-2zm-2 2-.354-.353-2 2L4 8.13l.354.354 2-2zM11 6h-.5A4.5 4.5 0 0 1 6 10.5v1A5.5 5.5 0 0 0 11.5 6zm-5 5v-.5A4.5 4.5 0 0 1 1.5 6h-1A5.5 5.5 0 0 0 6 11.5zM1 6h.5A4.5 4.5 0 0 1 6 1.5v-1A5.5 5.5 0 0 0 .5 6zm5-5v.5A4.5 4.5 0 0 1 10.5 6h1A5.5 5.5 0 0 0 6 .5z",
|
|
14
|
-
"vector-effect": "non-scaling-stroke"
|
|
15
|
-
}, null, -1)
|
|
16
|
-
])]);
|
|
17
|
-
}
|
|
18
|
-
const z = { render: n };
|
|
19
|
-
export {
|
|
20
|
-
z as default,
|
|
21
|
-
n as render
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as z, openBlock as l, createElementVNode as o } from "vue";
|
|
2
|
-
const m = {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
viewBox: "0 0 12 12"
|
|
7
|
-
};
|
|
8
|
-
function t(v, e) {
|
|
9
|
-
return l(), z("svg", m, [...e[0] || (e[0] = [
|
|
10
|
-
o("path", {
|
|
11
|
-
fill: "#000",
|
|
12
|
-
stroke: "none",
|
|
13
|
-
d: "M6.055 5.25h.5a.5.5 0 0 0-.5-.5zm-1.282-.5a.5.5 0 1 0 0 1zM4.688 8.5a.5.5 0 0 0 0 1zm2.625 1a.5.5 0 0 0 0-1zM6.265 3.64l.354.354zm-.53 0-.354.354zm.32 1.61v-.5H4.773v1h1.282zM4.688 9v.5h1.367v-1H4.688zm1.367 0v.5h1.258v-1H6.055zm0 0h.5V5.25h-1V9zm-.43-5.625v.5H6v-1h-.375zm.375 0v.5h.375v-1H6zm-.375 0h.5c0 .037-.017.07-.041.093l-.335-.372-.335-.371a.87.87 0 0 0-.289.65zm.124-.279.335.372A.13.13 0 0 1 6 3.5v-1a.87.87 0 0 0-.586.225zM6 3.375l.372-.335-.251-.278-.372.334-.371.335.25.279zM6 3v.5a.13.13 0 0 1-.088-.037l.353-.353.354-.354A.87.87 0 0 0 6 2.5zm.265.11-.353.353a.13.13 0 0 1-.037-.088h1a.87.87 0 0 0-.256-.619zM6 3.375l.354.354.265-.266-.354-.353-.353-.354-.266.265zm.375 0h-.5c0-.034.015-.066.037-.088l.353.353.354.354a.87.87 0 0 0 .256-.619zm-.11.265-.353-.353A.13.13 0 0 1 6 3.25v1c.241 0 .46-.098.619-.256zM6 3.375l-.354.354.266.265.353-.354.354-.353-.265-.266zm0 .375v-.5c.034 0 .066.015.088.037l-.353.353-.354.354A.87.87 0 0 0 6 4.25zm-.265-.11.353-.353a.13.13 0 0 1 .037.088h-1c0 .241.098.46.256.619zM6 3.375l-.354-.354-.265.266.354.353.353.354.266-.265zM11 6h-.5A4.5 4.5 0 0 1 6 10.5v1A5.5 5.5 0 0 0 11.5 6zm-5 5v-.5A4.5 4.5 0 0 1 1.5 6h-1A5.5 5.5 0 0 0 6 11.5zM1 6h.5A4.5 4.5 0 0 1 6 1.5v-1A5.5 5.5 0 0 0 .5 6zm5-5v.5A4.5 4.5 0 0 1 10.5 6h1A5.5 5.5 0 0 0 6 .5z",
|
|
14
|
-
"vector-effect": "non-scaling-stroke"
|
|
15
|
-
}, null, -1)
|
|
16
|
-
])]);
|
|
17
|
-
}
|
|
18
|
-
const r = { render: t };
|
|
19
|
-
export {
|
|
20
|
-
r as default,
|
|
21
|
-
t as render
|
|
22
|
-
};
|
package/dist/index-CZ-Na6c0.js
DELETED
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { watch as E, getCurrentScope as K, onScopeDispose as N, onMounted as M, nextTick as q, getCurrentInstance as W, toRef as U, readonly as X, ref as C, customRef as Y, computed as R, toValue as b, unref as J, shallowRef as L } from "vue";
|
|
2
|
-
function V(e) {
|
|
3
|
-
return K() ? (N(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
const $ = typeof window < "u" && typeof document < "u";
|
|
6
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
-
const Q = Object.prototype.toString, Z = (e) => Q.call(e) === "[object Object]", T = () => {
|
|
8
|
-
}, F = /* @__PURE__ */ ee();
|
|
9
|
-
function ee() {
|
|
10
|
-
var e, t;
|
|
11
|
-
return $ && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
12
|
-
}
|
|
13
|
-
function ve(...e) {
|
|
14
|
-
if (e.length !== 1)
|
|
15
|
-
return U(...e);
|
|
16
|
-
const t = e[0];
|
|
17
|
-
return typeof t == "function" ? X(Y(() => ({ get: t, set: T }))) : C(t);
|
|
18
|
-
}
|
|
19
|
-
function O(e) {
|
|
20
|
-
return Array.isArray(e) ? e : [e];
|
|
21
|
-
}
|
|
22
|
-
function te(e) {
|
|
23
|
-
return W();
|
|
24
|
-
}
|
|
25
|
-
function ne(e, t = !0, n) {
|
|
26
|
-
te() ? M(e, n) : t ? e() : q(e);
|
|
27
|
-
}
|
|
28
|
-
function oe(e, t, n) {
|
|
29
|
-
return E(
|
|
30
|
-
e,
|
|
31
|
-
t,
|
|
32
|
-
{
|
|
33
|
-
...n,
|
|
34
|
-
immediate: !0
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
const x = $ ? window : void 0;
|
|
39
|
-
function y(e) {
|
|
40
|
-
var t;
|
|
41
|
-
const n = b(e);
|
|
42
|
-
return (t = n?.$el) != null ? t : n;
|
|
43
|
-
}
|
|
44
|
-
function A(...e) {
|
|
45
|
-
const t = [], n = () => {
|
|
46
|
-
t.forEach((o) => o()), t.length = 0;
|
|
47
|
-
}, r = (o, c, a, p) => (o.addEventListener(c, a, p), () => o.removeEventListener(c, a, p)), s = R(() => {
|
|
48
|
-
const o = O(b(e[0])).filter((c) => c != null);
|
|
49
|
-
return o.every((c) => typeof c != "string") ? o : void 0;
|
|
50
|
-
}), i = oe(
|
|
51
|
-
() => {
|
|
52
|
-
var o, c;
|
|
53
|
-
return [
|
|
54
|
-
(c = (o = s.value) == null ? void 0 : o.map((a) => y(a))) != null ? c : [x].filter((a) => a != null),
|
|
55
|
-
O(b(s.value ? e[1] : e[0])),
|
|
56
|
-
O(J(s.value ? e[2] : e[1])),
|
|
57
|
-
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
58
|
-
b(s.value ? e[3] : e[2])
|
|
59
|
-
];
|
|
60
|
-
},
|
|
61
|
-
([o, c, a, p]) => {
|
|
62
|
-
if (n(), !o?.length || !c?.length || !a?.length)
|
|
63
|
-
return;
|
|
64
|
-
const l = Z(p) ? { ...p } : p;
|
|
65
|
-
t.push(
|
|
66
|
-
...o.flatMap(
|
|
67
|
-
(v) => c.flatMap(
|
|
68
|
-
(h) => a.map((m) => r(v, h, m, l))
|
|
69
|
-
)
|
|
70
|
-
)
|
|
71
|
-
);
|
|
72
|
-
},
|
|
73
|
-
{ flush: "post" }
|
|
74
|
-
), f = () => {
|
|
75
|
-
i(), n();
|
|
76
|
-
};
|
|
77
|
-
return V(n), f;
|
|
78
|
-
}
|
|
79
|
-
let k = !1;
|
|
80
|
-
function he(e, t, n = {}) {
|
|
81
|
-
const { window: r = x, ignore: s = [], capture: i = !0, detectIframe: f = !1, controls: o = !1 } = n;
|
|
82
|
-
if (!r)
|
|
83
|
-
return o ? { stop: T, cancel: T, trigger: T } : T;
|
|
84
|
-
if (F && !k) {
|
|
85
|
-
k = !0;
|
|
86
|
-
const u = { passive: !0 };
|
|
87
|
-
Array.from(r.document.body.children).forEach((d) => d.addEventListener("click", T, u)), r.document.documentElement.addEventListener("click", T, u);
|
|
88
|
-
}
|
|
89
|
-
let c = !0;
|
|
90
|
-
const a = (u) => b(s).some((d) => {
|
|
91
|
-
if (typeof d == "string")
|
|
92
|
-
return Array.from(r.document.querySelectorAll(d)).some((g) => g === u.target || u.composedPath().includes(g));
|
|
93
|
-
{
|
|
94
|
-
const g = y(d);
|
|
95
|
-
return g && (u.target === g || u.composedPath().includes(g));
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
function p(u) {
|
|
99
|
-
const d = b(u);
|
|
100
|
-
return d && d.$.subTree.shapeFlag === 16;
|
|
101
|
-
}
|
|
102
|
-
function l(u, d) {
|
|
103
|
-
const g = b(u), P = g.$.subTree && g.$.subTree.children;
|
|
104
|
-
return P == null || !Array.isArray(P) ? !1 : P.some((S) => S.el === d.target || d.composedPath().includes(S.el));
|
|
105
|
-
}
|
|
106
|
-
const v = (u) => {
|
|
107
|
-
const d = y(e);
|
|
108
|
-
if (u.target != null && !(!(d instanceof Element) && p(e) && l(e, u)) && !(!d || d === u.target || u.composedPath().includes(d))) {
|
|
109
|
-
if ("detail" in u && u.detail === 0 && (c = !a(u)), !c) {
|
|
110
|
-
c = !0;
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
t(u);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
let h = !1;
|
|
117
|
-
const m = [
|
|
118
|
-
A(r, "click", (u) => {
|
|
119
|
-
h || (h = !0, setTimeout(() => {
|
|
120
|
-
h = !1;
|
|
121
|
-
}, 0), v(u));
|
|
122
|
-
}, { passive: !0, capture: i }),
|
|
123
|
-
A(r, "pointerdown", (u) => {
|
|
124
|
-
const d = y(e);
|
|
125
|
-
c = !a(u) && !!(d && !u.composedPath().includes(d));
|
|
126
|
-
}, { passive: !0 }),
|
|
127
|
-
f && A(r, "blur", (u) => {
|
|
128
|
-
setTimeout(() => {
|
|
129
|
-
var d;
|
|
130
|
-
const g = y(e);
|
|
131
|
-
((d = r.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !g?.contains(r.document.activeElement) && t(u);
|
|
132
|
-
}, 0);
|
|
133
|
-
}, { passive: !0 })
|
|
134
|
-
].filter(Boolean), w = () => m.forEach((u) => u());
|
|
135
|
-
return o ? {
|
|
136
|
-
stop: w,
|
|
137
|
-
cancel: () => {
|
|
138
|
-
c = !1;
|
|
139
|
-
},
|
|
140
|
-
trigger: (u) => {
|
|
141
|
-
c = !0, v(u), c = !1;
|
|
142
|
-
}
|
|
143
|
-
} : w;
|
|
144
|
-
}
|
|
145
|
-
// @__NO_SIDE_EFFECTS__
|
|
146
|
-
function re() {
|
|
147
|
-
const e = L(!1), t = W();
|
|
148
|
-
return t && M(() => {
|
|
149
|
-
e.value = !0;
|
|
150
|
-
}, t), e;
|
|
151
|
-
}
|
|
152
|
-
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function se(e) {
|
|
154
|
-
const t = /* @__PURE__ */ re();
|
|
155
|
-
return R(() => (t.value, !!e()));
|
|
156
|
-
}
|
|
157
|
-
function ce(e) {
|
|
158
|
-
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
159
|
-
}
|
|
160
|
-
function ue(...e) {
|
|
161
|
-
let t, n, r = {};
|
|
162
|
-
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
163
|
-
const {
|
|
164
|
-
target: s = x,
|
|
165
|
-
eventName: i = "keydown",
|
|
166
|
-
passive: f = !1,
|
|
167
|
-
dedupe: o = !1
|
|
168
|
-
} = r, c = ce(t);
|
|
169
|
-
return A(s, i, (p) => {
|
|
170
|
-
p.repeat && b(o) || c(p) && n(p);
|
|
171
|
-
}, f);
|
|
172
|
-
}
|
|
173
|
-
function me(e, t, n = {}) {
|
|
174
|
-
return ue(e, t, { ...n, eventName: "keydown" });
|
|
175
|
-
}
|
|
176
|
-
function ie(e, t, n = {}) {
|
|
177
|
-
const { window: r = x, ...s } = n;
|
|
178
|
-
let i;
|
|
179
|
-
const f = /* @__PURE__ */ se(() => r && "ResizeObserver" in r), o = () => {
|
|
180
|
-
i && (i.disconnect(), i = void 0);
|
|
181
|
-
}, c = R(() => {
|
|
182
|
-
const l = b(e);
|
|
183
|
-
return Array.isArray(l) ? l.map((v) => y(v)) : [y(l)];
|
|
184
|
-
}), a = E(
|
|
185
|
-
c,
|
|
186
|
-
(l) => {
|
|
187
|
-
if (o(), f.value && r) {
|
|
188
|
-
i = new ResizeObserver(t);
|
|
189
|
-
for (const v of l)
|
|
190
|
-
v && i.observe(v, s);
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
{ immediate: !0, flush: "post" }
|
|
194
|
-
), p = () => {
|
|
195
|
-
o(), a();
|
|
196
|
-
};
|
|
197
|
-
return V(p), {
|
|
198
|
-
isSupported: f,
|
|
199
|
-
stop: p
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
function le(e, t = { width: 0, height: 0 }, n = {}) {
|
|
203
|
-
const { window: r = x, box: s = "content-box" } = n, i = R(() => {
|
|
204
|
-
var l, v;
|
|
205
|
-
return (v = (l = y(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : v.includes("svg");
|
|
206
|
-
}), f = L(t.width), o = L(t.height), { stop: c } = ie(
|
|
207
|
-
e,
|
|
208
|
-
([l]) => {
|
|
209
|
-
const v = s === "border-box" ? l.borderBoxSize : s === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
210
|
-
if (r && i.value) {
|
|
211
|
-
const h = y(e);
|
|
212
|
-
if (h) {
|
|
213
|
-
const m = h.getBoundingClientRect();
|
|
214
|
-
f.value = m.width, o.value = m.height;
|
|
215
|
-
}
|
|
216
|
-
} else if (v) {
|
|
217
|
-
const h = O(v);
|
|
218
|
-
f.value = h.reduce((m, { inlineSize: w }) => m + w, 0), o.value = h.reduce((m, { blockSize: w }) => m + w, 0);
|
|
219
|
-
} else
|
|
220
|
-
f.value = l.contentRect.width, o.value = l.contentRect.height;
|
|
221
|
-
},
|
|
222
|
-
n
|
|
223
|
-
);
|
|
224
|
-
ne(() => {
|
|
225
|
-
const l = y(e);
|
|
226
|
-
l && (f.value = "offsetWidth" in l ? l.offsetWidth : t.width, o.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
227
|
-
});
|
|
228
|
-
const a = E(
|
|
229
|
-
() => y(e),
|
|
230
|
-
(l) => {
|
|
231
|
-
f.value = l ? t.width : 0, o.value = l ? t.height : 0;
|
|
232
|
-
}
|
|
233
|
-
);
|
|
234
|
-
function p() {
|
|
235
|
-
c(), a();
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
width: f,
|
|
239
|
-
height: o,
|
|
240
|
-
stop: p
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
function ge(e, t) {
|
|
244
|
-
const { containerStyle: n, wrapperProps: r, scrollTo: s, calculateRange: i, currentList: f, containerRef: o } = "itemHeight" in t ? de(t, e) : fe(t, e);
|
|
245
|
-
return {
|
|
246
|
-
list: f,
|
|
247
|
-
scrollTo: s,
|
|
248
|
-
containerProps: {
|
|
249
|
-
ref: o,
|
|
250
|
-
onScroll: () => {
|
|
251
|
-
i();
|
|
252
|
-
},
|
|
253
|
-
style: n
|
|
254
|
-
},
|
|
255
|
-
wrapperProps: r
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
function z(e) {
|
|
259
|
-
const t = L(null), n = le(t), r = C([]), s = L(e);
|
|
260
|
-
return { state: C({ start: 0, end: 10 }), source: s, currentList: r, size: n, containerRef: t };
|
|
261
|
-
}
|
|
262
|
-
function I(e, t, n) {
|
|
263
|
-
return (r) => {
|
|
264
|
-
if (typeof n == "number")
|
|
265
|
-
return Math.ceil(r / n);
|
|
266
|
-
const { start: s = 0 } = e.value;
|
|
267
|
-
let i = 0, f = 0;
|
|
268
|
-
for (let o = s; o < t.value.length; o++) {
|
|
269
|
-
const c = n(o);
|
|
270
|
-
if (i += c, f = o, i > r)
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
return f - s;
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
function B(e, t) {
|
|
277
|
-
return (n) => {
|
|
278
|
-
if (typeof t == "number")
|
|
279
|
-
return Math.floor(n / t) + 1;
|
|
280
|
-
let r = 0, s = 0;
|
|
281
|
-
for (let i = 0; i < e.value.length; i++) {
|
|
282
|
-
const f = t(i);
|
|
283
|
-
if (r += f, r >= n) {
|
|
284
|
-
s = i;
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
return s + 1;
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
function H(e, t, n, r, { containerRef: s, state: i, currentList: f, source: o }) {
|
|
292
|
-
return () => {
|
|
293
|
-
const c = s.value;
|
|
294
|
-
if (c) {
|
|
295
|
-
const a = n(e === "vertical" ? c.scrollTop : c.scrollLeft), p = r(e === "vertical" ? c.clientHeight : c.clientWidth), l = a - t, v = a + p + t;
|
|
296
|
-
i.value = {
|
|
297
|
-
start: l < 0 ? 0 : l,
|
|
298
|
-
end: v > o.value.length ? o.value.length : v
|
|
299
|
-
}, f.value = o.value.slice(i.value.start, i.value.end).map((h, m) => ({
|
|
300
|
-
data: h,
|
|
301
|
-
index: m + i.value.start
|
|
302
|
-
}));
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
function D(e, t) {
|
|
307
|
-
return (n) => typeof e == "number" ? n * e : t.value.slice(0, n).reduce((s, i, f) => s + e(f), 0);
|
|
308
|
-
}
|
|
309
|
-
function G(e, t, n, r) {
|
|
310
|
-
E([e.width, e.height, () => b(t), n], () => {
|
|
311
|
-
r();
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
function j(e, t) {
|
|
315
|
-
return R(() => typeof e == "number" ? t.value.length * e : t.value.reduce((n, r, s) => n + e(s), 0));
|
|
316
|
-
}
|
|
317
|
-
const ae = {
|
|
318
|
-
horizontal: "scrollLeft",
|
|
319
|
-
vertical: "scrollTop"
|
|
320
|
-
};
|
|
321
|
-
function _(e, t, n, r) {
|
|
322
|
-
return (s) => {
|
|
323
|
-
r.value && (r.value[ae[e]] = n(s), t());
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
function fe(e, t) {
|
|
327
|
-
const n = z(t), { state: r, source: s, currentList: i, size: f, containerRef: o } = n, c = { overflowX: "auto" }, { itemWidth: a, overscan: p = 5 } = e, l = I(r, s, a), v = B(s, a), h = H("horizontal", p, v, l, n), m = D(a, s), w = R(() => m(r.value.start)), u = j(a, s);
|
|
328
|
-
G(f, t, o, h);
|
|
329
|
-
const d = _("horizontal", h, m, o), g = R(() => ({
|
|
330
|
-
style: {
|
|
331
|
-
height: "100%",
|
|
332
|
-
width: `${u.value - w.value}px`,
|
|
333
|
-
marginLeft: `${w.value}px`,
|
|
334
|
-
display: "flex"
|
|
335
|
-
}
|
|
336
|
-
}));
|
|
337
|
-
return {
|
|
338
|
-
scrollTo: d,
|
|
339
|
-
calculateRange: h,
|
|
340
|
-
wrapperProps: g,
|
|
341
|
-
containerStyle: c,
|
|
342
|
-
currentList: i,
|
|
343
|
-
containerRef: o
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
function de(e, t) {
|
|
347
|
-
const n = z(t), { state: r, source: s, currentList: i, size: f, containerRef: o } = n, c = { overflowY: "auto" }, { itemHeight: a, overscan: p = 5 } = e, l = I(r, s, a), v = B(s, a), h = H("vertical", p, v, l, n), m = D(a, s), w = R(() => m(r.value.start)), u = j(a, s);
|
|
348
|
-
G(f, t, o, h);
|
|
349
|
-
const d = _("vertical", h, m, o), g = R(() => ({
|
|
350
|
-
style: {
|
|
351
|
-
width: "100%",
|
|
352
|
-
height: `${u.value - w.value}px`,
|
|
353
|
-
marginTop: `${w.value}px`
|
|
354
|
-
}
|
|
355
|
-
}));
|
|
356
|
-
return {
|
|
357
|
-
calculateRange: h,
|
|
358
|
-
scrollTo: d,
|
|
359
|
-
containerStyle: c,
|
|
360
|
-
wrapperProps: g,
|
|
361
|
-
currentList: i,
|
|
362
|
-
containerRef: o
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
export {
|
|
366
|
-
V as a,
|
|
367
|
-
O as b,
|
|
368
|
-
Z as c,
|
|
369
|
-
$ as d,
|
|
370
|
-
me as e,
|
|
371
|
-
F as i,
|
|
372
|
-
he as o,
|
|
373
|
-
ve as t,
|
|
374
|
-
ge as u,
|
|
375
|
-
oe as w
|
|
376
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as o, openBlock as t, createElementVNode as n } from "vue";
|
|
2
|
-
const r = {
|
|
3
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
fill: "none",
|
|
5
|
-
stroke: "currentColor",
|
|
6
|
-
viewBox: "0 0 12 12"
|
|
7
|
-
};
|
|
8
|
-
function l(c, e) {
|
|
9
|
-
return t(), o("svg", r, [...e[0] || (e[0] = [
|
|
10
|
-
n("path", {
|
|
11
|
-
fill: "#000",
|
|
12
|
-
stroke: "none",
|
|
13
|
-
d: "M1 7.316H.5zM8.963 11a.5.5 0 0 0 0-1zM3 10a.5.5 0 0 0 0 1zM1.556 7.88v.5h8.888v-1H1.556zm8.888 0v.5c.58 0 1.056-.495 1.056-1.064h-1c0 .006-.004.025-.023.045-.02.02-.034.02-.033.02zM11 7.317h.5V2.065h-1v5.25zm0-5.251h.5c0-.57-.475-1.065-1.056-1.065v1c-.001 0 .013 0 .033.02s.023.039.023.045zm-.556-.565V1H1.556v1h8.888zm-8.888 0V1C.976 1 .5 1.495.5 2.065h1c0-.006.004-.025.023-.045.02-.02.034-.02.033-.02zM1 2.065H.5v5.25h1v-5.25zm0 5.25H.5c0 .548.417 1.066 1.056 1.066v-1a.1.1 0 0 1-.029-.005l-.01-.007a.08.08 0 0 1-.017-.053zM8.963 10.5V10H3v1h5.963zm-4.185 0h.5V7.88h-1v2.62zm2.666-2.62h-.5v2.62h1V7.88z",
|
|
14
|
-
"vector-effect": "non-scaling-stroke"
|
|
15
|
-
}, null, -1)
|
|
16
|
-
])]);
|
|
17
|
-
}
|
|
18
|
-
const h = { render: l };
|
|
19
|
-
export {
|
|
20
|
-
h as default,
|
|
21
|
-
l as render
|
|
22
|
-
};
|