@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
package/dist/index-CoRworrE.js
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { getCurrentScope as $, onScopeDispose as D, unref as G, toRef as j, readonly as K, customRef as N, ref as y, onMounted as S, nextTick as q, getCurrentInstance as C, computed as m, watch as L, shallowRef as U } from "vue";
|
|
2
|
-
function P(e) {
|
|
3
|
-
return $() ? (D(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
function T(e) {
|
|
6
|
-
return typeof e == "function" ? e() : G(e);
|
|
7
|
-
}
|
|
8
|
-
const W = typeof window < "u" && typeof document < "u";
|
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10
|
-
const X = Object.prototype.toString, Y = (e) => X.call(e) === "[object Object]", g = () => {
|
|
11
|
-
}, J = /* @__PURE__ */ Q();
|
|
12
|
-
function Q() {
|
|
13
|
-
var e, t;
|
|
14
|
-
return W && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
15
|
-
}
|
|
16
|
-
function Z(e) {
|
|
17
|
-
return C();
|
|
18
|
-
}
|
|
19
|
-
function ae(...e) {
|
|
20
|
-
if (e.length !== 1)
|
|
21
|
-
return j(...e);
|
|
22
|
-
const t = e[0];
|
|
23
|
-
return typeof t == "function" ? K(N(() => ({ get: t, set: g }))) : y(t);
|
|
24
|
-
}
|
|
25
|
-
function F(e, t = !0, n) {
|
|
26
|
-
Z() ? S(e, n) : t ? e() : q(e);
|
|
27
|
-
}
|
|
28
|
-
function v(e) {
|
|
29
|
-
var t;
|
|
30
|
-
const n = T(e);
|
|
31
|
-
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
32
|
-
}
|
|
33
|
-
const b = W ? window : void 0;
|
|
34
|
-
function R(...e) {
|
|
35
|
-
let t, n, o, s;
|
|
36
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, s] = e, t = b) : [t, n, o, s] = e, !t)
|
|
37
|
-
return g;
|
|
38
|
-
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
39
|
-
const u = [], a = () => {
|
|
40
|
-
u.forEach((d) => d()), u.length = 0;
|
|
41
|
-
}, c = (d, i, r, l) => (d.addEventListener(i, r, l), () => d.removeEventListener(i, r, l)), p = L(
|
|
42
|
-
() => [v(t), T(s)],
|
|
43
|
-
([d, i]) => {
|
|
44
|
-
if (a(), !d)
|
|
45
|
-
return;
|
|
46
|
-
const r = Y(i) ? { ...i } : i;
|
|
47
|
-
u.push(
|
|
48
|
-
...n.flatMap((l) => o.map((f) => c(d, l, f, r)))
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
{ immediate: !0, flush: "post" }
|
|
52
|
-
), h = () => {
|
|
53
|
-
p(), a();
|
|
54
|
-
};
|
|
55
|
-
return P(h), h;
|
|
56
|
-
}
|
|
57
|
-
let E = !1;
|
|
58
|
-
function fe(e, t, n = {}) {
|
|
59
|
-
const { window: o = b, ignore: s = [], capture: u = !0, detectIframe: a = !1 } = n;
|
|
60
|
-
if (!o)
|
|
61
|
-
return g;
|
|
62
|
-
J && !E && (E = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", g)), o.document.documentElement.addEventListener("click", g));
|
|
63
|
-
let c = !0;
|
|
64
|
-
const p = (r) => s.some((l) => {
|
|
65
|
-
if (typeof l == "string")
|
|
66
|
-
return Array.from(o.document.querySelectorAll(l)).some((f) => f === r.target || r.composedPath().includes(f));
|
|
67
|
-
{
|
|
68
|
-
const f = v(l);
|
|
69
|
-
return f && (r.target === f || r.composedPath().includes(f));
|
|
70
|
-
}
|
|
71
|
-
}), d = [
|
|
72
|
-
R(o, "click", (r) => {
|
|
73
|
-
const l = v(e);
|
|
74
|
-
if (!(!l || l === r.target || r.composedPath().includes(l))) {
|
|
75
|
-
if (r.detail === 0 && (c = !p(r)), !c) {
|
|
76
|
-
c = !0;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
t(r);
|
|
80
|
-
}
|
|
81
|
-
}, { passive: !0, capture: u }),
|
|
82
|
-
R(o, "pointerdown", (r) => {
|
|
83
|
-
const l = v(e);
|
|
84
|
-
c = !p(r) && !!(l && !r.composedPath().includes(l));
|
|
85
|
-
}, { passive: !0 }),
|
|
86
|
-
a && R(o, "blur", (r) => {
|
|
87
|
-
setTimeout(() => {
|
|
88
|
-
var l;
|
|
89
|
-
const f = v(e);
|
|
90
|
-
((l = o.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(r);
|
|
91
|
-
}, 0);
|
|
92
|
-
})
|
|
93
|
-
].filter(Boolean);
|
|
94
|
-
return () => d.forEach((r) => r());
|
|
95
|
-
}
|
|
96
|
-
function ee(e) {
|
|
97
|
-
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
98
|
-
}
|
|
99
|
-
function te(...e) {
|
|
100
|
-
let t, n, o = {};
|
|
101
|
-
e.length === 3 ? (t = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], o = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
102
|
-
const {
|
|
103
|
-
target: s = b,
|
|
104
|
-
eventName: u = "keydown",
|
|
105
|
-
passive: a = !1,
|
|
106
|
-
dedupe: c = !1
|
|
107
|
-
} = o, p = ee(t);
|
|
108
|
-
return R(s, u, (d) => {
|
|
109
|
-
d.repeat && T(c) || p(d) && n(d);
|
|
110
|
-
}, a);
|
|
111
|
-
}
|
|
112
|
-
function de(e, t, n = {}) {
|
|
113
|
-
return te(e, t, { ...n, eventName: "keydown" });
|
|
114
|
-
}
|
|
115
|
-
function ne() {
|
|
116
|
-
const e = y(!1), t = C();
|
|
117
|
-
return t && S(() => {
|
|
118
|
-
e.value = !0;
|
|
119
|
-
}, t), e;
|
|
120
|
-
}
|
|
121
|
-
function oe(e) {
|
|
122
|
-
const t = ne();
|
|
123
|
-
return m(() => (t.value, !!e()));
|
|
124
|
-
}
|
|
125
|
-
function re(e, t, n = {}) {
|
|
126
|
-
const { window: o = b, ...s } = n;
|
|
127
|
-
let u;
|
|
128
|
-
const a = oe(() => o && "ResizeObserver" in o), c = () => {
|
|
129
|
-
u && (u.disconnect(), u = void 0);
|
|
130
|
-
}, p = m(() => Array.isArray(e) ? e.map((i) => v(i)) : [v(e)]), h = L(
|
|
131
|
-
p,
|
|
132
|
-
(i) => {
|
|
133
|
-
if (c(), a.value && o) {
|
|
134
|
-
u = new ResizeObserver(t);
|
|
135
|
-
for (const r of i)
|
|
136
|
-
r && u.observe(r, s);
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{ immediate: !0, flush: "post" }
|
|
140
|
-
), d = () => {
|
|
141
|
-
c(), h();
|
|
142
|
-
};
|
|
143
|
-
return P(d), {
|
|
144
|
-
isSupported: a,
|
|
145
|
-
stop: d
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function se(e, t = { width: 0, height: 0 }, n = {}) {
|
|
149
|
-
const { window: o = b, box: s = "content-box" } = n, u = m(() => {
|
|
150
|
-
var i, r;
|
|
151
|
-
return (r = (i = v(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : r.includes("svg");
|
|
152
|
-
}), a = y(t.width), c = y(t.height), { stop: p } = re(
|
|
153
|
-
e,
|
|
154
|
-
([i]) => {
|
|
155
|
-
const r = s === "border-box" ? i.borderBoxSize : s === "content-box" ? i.contentBoxSize : i.devicePixelContentBoxSize;
|
|
156
|
-
if (o && u.value) {
|
|
157
|
-
const l = v(e);
|
|
158
|
-
if (l) {
|
|
159
|
-
const f = l.getBoundingClientRect();
|
|
160
|
-
a.value = f.width, c.value = f.height;
|
|
161
|
-
}
|
|
162
|
-
} else if (r) {
|
|
163
|
-
const l = Array.isArray(r) ? r : [r];
|
|
164
|
-
a.value = l.reduce((f, { inlineSize: w }) => f + w, 0), c.value = l.reduce((f, { blockSize: w }) => f + w, 0);
|
|
165
|
-
} else
|
|
166
|
-
a.value = i.contentRect.width, c.value = i.contentRect.height;
|
|
167
|
-
},
|
|
168
|
-
n
|
|
169
|
-
);
|
|
170
|
-
F(() => {
|
|
171
|
-
const i = v(e);
|
|
172
|
-
i && (a.value = "offsetWidth" in i ? i.offsetWidth : t.width, c.value = "offsetHeight" in i ? i.offsetHeight : t.height);
|
|
173
|
-
});
|
|
174
|
-
const h = L(
|
|
175
|
-
() => v(e),
|
|
176
|
-
(i) => {
|
|
177
|
-
a.value = i ? t.width : 0, c.value = i ? t.height : 0;
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
function d() {
|
|
181
|
-
p(), h();
|
|
182
|
-
}
|
|
183
|
-
return {
|
|
184
|
-
width: a,
|
|
185
|
-
height: c,
|
|
186
|
-
stop: d
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function pe(e, t) {
|
|
190
|
-
const { containerStyle: n, wrapperProps: o, scrollTo: s, calculateRange: u, currentList: a, containerRef: c } = "itemHeight" in t ? ie(t, e) : ue(t, e);
|
|
191
|
-
return {
|
|
192
|
-
list: a,
|
|
193
|
-
scrollTo: s,
|
|
194
|
-
containerProps: {
|
|
195
|
-
ref: c,
|
|
196
|
-
onScroll: () => {
|
|
197
|
-
u();
|
|
198
|
-
},
|
|
199
|
-
style: n
|
|
200
|
-
},
|
|
201
|
-
wrapperProps: o
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function k(e) {
|
|
205
|
-
const t = y(null), n = se(t), o = y([]), s = U(e);
|
|
206
|
-
return { state: y({ start: 0, end: 10 }), source: s, currentList: o, size: n, containerRef: t };
|
|
207
|
-
}
|
|
208
|
-
function M(e, t, n) {
|
|
209
|
-
return (o) => {
|
|
210
|
-
if (typeof n == "number")
|
|
211
|
-
return Math.ceil(o / n);
|
|
212
|
-
const { start: s = 0 } = e.value;
|
|
213
|
-
let u = 0, a = 0;
|
|
214
|
-
for (let c = s; c < t.value.length; c++) {
|
|
215
|
-
const p = n(c);
|
|
216
|
-
if (u += p, a = c, u > o)
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
return a - s;
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function V(e, t) {
|
|
223
|
-
return (n) => {
|
|
224
|
-
if (typeof t == "number")
|
|
225
|
-
return Math.floor(n / t) + 1;
|
|
226
|
-
let o = 0, s = 0;
|
|
227
|
-
for (let u = 0; u < e.value.length; u++) {
|
|
228
|
-
const a = t(u);
|
|
229
|
-
if (o += a, o >= n) {
|
|
230
|
-
s = u;
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
return s + 1;
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function _(e, t, n, o, { containerRef: s, state: u, currentList: a, source: c }) {
|
|
238
|
-
return () => {
|
|
239
|
-
const p = s.value;
|
|
240
|
-
if (p) {
|
|
241
|
-
const h = n(e === "vertical" ? p.scrollTop : p.scrollLeft), d = o(e === "vertical" ? p.clientHeight : p.clientWidth), i = h - t, r = h + d + t;
|
|
242
|
-
u.value = {
|
|
243
|
-
start: i < 0 ? 0 : i,
|
|
244
|
-
end: r > c.value.length ? c.value.length : r
|
|
245
|
-
}, a.value = c.value.slice(u.value.start, u.value.end).map((l, f) => ({
|
|
246
|
-
data: l,
|
|
247
|
-
index: f + u.value.start
|
|
248
|
-
}));
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
function z(e, t) {
|
|
253
|
-
return (n) => typeof e == "number" ? n * e : t.value.slice(0, n).reduce((s, u, a) => s + e(a), 0);
|
|
254
|
-
}
|
|
255
|
-
function I(e, t, n, o) {
|
|
256
|
-
L([e.width, e.height, t, n], () => {
|
|
257
|
-
o();
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
function B(e, t) {
|
|
261
|
-
return m(() => typeof e == "number" ? t.value.length * e : t.value.reduce((n, o, s) => n + e(s), 0));
|
|
262
|
-
}
|
|
263
|
-
const ce = {
|
|
264
|
-
horizontal: "scrollLeft",
|
|
265
|
-
vertical: "scrollTop"
|
|
266
|
-
};
|
|
267
|
-
function H(e, t, n, o) {
|
|
268
|
-
return (s) => {
|
|
269
|
-
o.value && (o.value[ce[e]] = n(s), t());
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function ue(e, t) {
|
|
273
|
-
const n = k(t), { state: o, source: s, currentList: u, size: a, containerRef: c } = n, p = { overflowX: "auto" }, { itemWidth: h, overscan: d = 5 } = e, i = M(o, s, h), r = V(s, h), l = _("horizontal", d, r, i, n), f = z(h, s), w = m(() => f(o.value.start)), A = B(h, s);
|
|
274
|
-
I(a, t, c, l);
|
|
275
|
-
const x = H("horizontal", l, f, c), O = m(() => ({
|
|
276
|
-
style: {
|
|
277
|
-
height: "100%",
|
|
278
|
-
width: `${A.value - w.value}px`,
|
|
279
|
-
marginLeft: `${w.value}px`,
|
|
280
|
-
display: "flex"
|
|
281
|
-
}
|
|
282
|
-
}));
|
|
283
|
-
return {
|
|
284
|
-
scrollTo: x,
|
|
285
|
-
calculateRange: l,
|
|
286
|
-
wrapperProps: O,
|
|
287
|
-
containerStyle: p,
|
|
288
|
-
currentList: u,
|
|
289
|
-
containerRef: c
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
function ie(e, t) {
|
|
293
|
-
const n = k(t), { state: o, source: s, currentList: u, size: a, containerRef: c } = n, p = { overflowY: "auto" }, { itemHeight: h, overscan: d = 5 } = e, i = M(o, s, h), r = V(s, h), l = _("vertical", d, r, i, n), f = z(h, s), w = m(() => f(o.value.start)), A = B(h, s);
|
|
294
|
-
I(a, t, c, l);
|
|
295
|
-
const x = H("vertical", l, f, c), O = m(() => ({
|
|
296
|
-
style: {
|
|
297
|
-
width: "100%",
|
|
298
|
-
height: `${A.value - w.value}px`,
|
|
299
|
-
marginTop: `${w.value}px`
|
|
300
|
-
}
|
|
301
|
-
}));
|
|
302
|
-
return {
|
|
303
|
-
calculateRange: l,
|
|
304
|
-
scrollTo: x,
|
|
305
|
-
containerStyle: p,
|
|
306
|
-
wrapperProps: O,
|
|
307
|
-
currentList: u,
|
|
308
|
-
containerRef: c
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
export {
|
|
312
|
-
de as a,
|
|
313
|
-
T as b,
|
|
314
|
-
P as c,
|
|
315
|
-
Y as d,
|
|
316
|
-
W as e,
|
|
317
|
-
J as i,
|
|
318
|
-
g as n,
|
|
319
|
-
fe as o,
|
|
320
|
-
ae as t,
|
|
321
|
-
pe as u
|
|
322
|
-
};
|