@tanstack/vue-virtual 3.0.4 → 3.1.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/dist/cjs/index.cjs +72 -0
- package/{build/lib/index.mjs.map → dist/cjs/index.cjs.map} +1 -1
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +66 -0
- package/{build/lib → dist/esm}/index.js.map +1 -1
- package/package.json +35 -23
- package/build/lib/_virtual/_rollupPluginBabelHelpers.esm.js +0 -27
- package/build/lib/_virtual/_rollupPluginBabelHelpers.esm.js.map +0 -1
- package/build/lib/_virtual/_rollupPluginBabelHelpers.js +0 -31
- package/build/lib/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs +0 -27
- package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs.map +0 -1
- package/build/lib/index.esm.js +0 -70
- package/build/lib/index.esm.js.map +0 -1
- package/build/lib/index.js +0 -80
- package/build/lib/index.mjs +0 -70
- package/build/umd/index.development.js +0 -97
- package/build/umd/index.development.js.map +0 -1
- package/build/umd/index.production.js +0 -12
- package/build/umd/index.production.js.map +0 -1
- /package/{build/lib/index.d.ts → dist/cjs/index.d.cts} +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const virtualCore = require("@tanstack/virtual-core");
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
function useVirtualizerBase(options) {
|
|
6
|
+
const virtualizer = new virtualCore.Virtualizer(vue.unref(options));
|
|
7
|
+
const state = vue.shallowRef(virtualizer);
|
|
8
|
+
const cleanup = virtualizer._didMount();
|
|
9
|
+
vue.watch(
|
|
10
|
+
() => vue.unref(options).getScrollElement(),
|
|
11
|
+
(el) => {
|
|
12
|
+
if (el) {
|
|
13
|
+
virtualizer._willUpdate();
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
immediate: true
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
vue.watch(
|
|
21
|
+
() => vue.unref(options),
|
|
22
|
+
(options2) => {
|
|
23
|
+
virtualizer.setOptions({
|
|
24
|
+
...options2,
|
|
25
|
+
onChange: (instance, sync) => {
|
|
26
|
+
var _a;
|
|
27
|
+
vue.triggerRef(state);
|
|
28
|
+
(_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
virtualizer._willUpdate();
|
|
32
|
+
vue.triggerRef(state);
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
immediate: true
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
vue.onScopeDispose(cleanup);
|
|
39
|
+
return state;
|
|
40
|
+
}
|
|
41
|
+
function useVirtualizer(options) {
|
|
42
|
+
return useVirtualizerBase(
|
|
43
|
+
vue.computed(() => ({
|
|
44
|
+
observeElementRect: virtualCore.observeElementRect,
|
|
45
|
+
observeElementOffset: virtualCore.observeElementOffset,
|
|
46
|
+
scrollToFn: virtualCore.elementScroll,
|
|
47
|
+
...vue.unref(options)
|
|
48
|
+
}))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function useWindowVirtualizer(options) {
|
|
52
|
+
return useVirtualizerBase(
|
|
53
|
+
vue.computed(() => ({
|
|
54
|
+
getScrollElement: () => typeof document !== "undefined" ? window : null,
|
|
55
|
+
observeElementRect: virtualCore.observeWindowRect,
|
|
56
|
+
observeElementOffset: virtualCore.observeWindowOffset,
|
|
57
|
+
scrollToFn: virtualCore.windowScroll,
|
|
58
|
+
initialOffset: typeof document !== "undefined" ? window.scrollY : void 0,
|
|
59
|
+
...vue.unref(options)
|
|
60
|
+
}))
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
exports.useVirtualizer = useVirtualizer;
|
|
64
|
+
exports.useWindowVirtualizer = useWindowVirtualizer;
|
|
65
|
+
Object.keys(virtualCore).forEach((k) => {
|
|
66
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
67
|
+
Object.defineProperty(exports, k, {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: () => virtualCore[k]
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["Virtualizer","unref","shallowRef","watch","options","triggerRef","onScopeDispose","computed","observeElementRect","observeElementOffset","elementScroll","observeWindowRect","observeWindowOffset","windowScroll"],"mappings":";;;;AAwBA,SAAS,mBAIP,SACgD;AAChD,QAAM,cAAc,IAAIA,YAAAA,YAAYC,IAAAA,MAAM,OAAO,CAAC;AAC5C,QAAA,QAAQC,eAAW,WAAW;AAE9B,QAAA,UAAU,YAAY;AAE5BC,MAAA;AAAA,IACE,MAAMF,IAAA,MAAM,OAAO,EAAE,iBAAiB;AAAA,IACtC,CAAC,OAAO;AACN,UAAI,IAAI;AACN,oBAAY,YAAY;AAAA,MAC1B;AAAA,IACF;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EAAA;AAGFE,MAAA;AAAA,IACE,MAAMF,IAAAA,MAAM,OAAO;AAAA,IACnB,CAACG,aAAY;AACX,kBAAY,WAAW;AAAA,QACrB,GAAGA;AAAAA,QACH,UAAU,CAAC,UAAU,SAAS;;AAC5BC,cAAA,WAAW,KAAK;AAChBD,yBAAQ,aAARA,kCAAmB,UAAU;AAAA,QAC/B;AAAA,MAAA,CACD;AAED,kBAAY,YAAY;AACxBC,UAAA,WAAW,KAAK;AAAA,IAClB;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EAAA;AAGFC,MAAA,eAAe,OAAO;AAEf,SAAA;AACT;AAEO,SAAS,eAId,SAMgD;AACzC,SAAA;AAAA,IACLC,IAAAA,SAAS,OAAO;AAAA,MAAA,oBACdC,YAAA;AAAA,MAAA,sBACAC,YAAA;AAAA,MACA,YAAYC,YAAA;AAAA,MACZ,GAAGT,IAAAA,MAAM,OAAO;AAAA,IAAA,EAChB;AAAA,EAAA;AAEN;AAEO,SAAS,qBACd,SASwC;AACjC,SAAA;AAAA,IACLM,IAAAA,SAAS,OAAO;AAAA,MACd,kBAAkB,MAAO,OAAO,aAAa,cAAc,SAAS;AAAA,MACpE,oBAAoBI,YAAA;AAAA,MACpB,sBAAsBC,YAAA;AAAA,MACtB,YAAYC,YAAA;AAAA,MACZ,eACE,OAAO,aAAa,cAAc,OAAO,UAAU;AAAA,MACrD,GAAGZ,IAAAA,MAAM,OAAO;AAAA,IAAA,EAChB;AAAA,EAAA;AAEN;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PartialKeys, Virtualizer, VirtualizerOptions } from '@tanstack/virtual-core';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export * from '@tanstack/virtual-core';
|
|
4
|
+
type MaybeRef<T> = T | Ref<T>;
|
|
5
|
+
export declare function useVirtualizer<TScrollElement extends Element, TItemElement extends Element>(options: MaybeRef<PartialKeys<VirtualizerOptions<TScrollElement, TItemElement>, 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'>>): Ref<Virtualizer<TScrollElement, TItemElement>>;
|
|
6
|
+
export declare function useWindowVirtualizer<TItemElement extends Element>(options: MaybeRef<PartialKeys<VirtualizerOptions<Window, TItemElement>, 'observeElementRect' | 'observeElementOffset' | 'scrollToFn' | 'getScrollElement'>>): Ref<Virtualizer<Window, TItemElement>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from "@tanstack/virtual-core";
|
|
2
|
+
export * from "@tanstack/virtual-core";
|
|
3
|
+
import { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from "vue";
|
|
4
|
+
function useVirtualizerBase(options) {
|
|
5
|
+
const virtualizer = new Virtualizer(unref(options));
|
|
6
|
+
const state = shallowRef(virtualizer);
|
|
7
|
+
const cleanup = virtualizer._didMount();
|
|
8
|
+
watch(
|
|
9
|
+
() => unref(options).getScrollElement(),
|
|
10
|
+
(el) => {
|
|
11
|
+
if (el) {
|
|
12
|
+
virtualizer._willUpdate();
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
immediate: true
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
watch(
|
|
20
|
+
() => unref(options),
|
|
21
|
+
(options2) => {
|
|
22
|
+
virtualizer.setOptions({
|
|
23
|
+
...options2,
|
|
24
|
+
onChange: (instance, sync) => {
|
|
25
|
+
var _a;
|
|
26
|
+
triggerRef(state);
|
|
27
|
+
(_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
virtualizer._willUpdate();
|
|
31
|
+
triggerRef(state);
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
immediate: true
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
onScopeDispose(cleanup);
|
|
38
|
+
return state;
|
|
39
|
+
}
|
|
40
|
+
function useVirtualizer(options) {
|
|
41
|
+
return useVirtualizerBase(
|
|
42
|
+
computed(() => ({
|
|
43
|
+
observeElementRect,
|
|
44
|
+
observeElementOffset,
|
|
45
|
+
scrollToFn: elementScroll,
|
|
46
|
+
...unref(options)
|
|
47
|
+
}))
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function useWindowVirtualizer(options) {
|
|
51
|
+
return useVirtualizerBase(
|
|
52
|
+
computed(() => ({
|
|
53
|
+
getScrollElement: () => typeof document !== "undefined" ? window : null,
|
|
54
|
+
observeElementRect: observeWindowRect,
|
|
55
|
+
observeElementOffset: observeWindowOffset,
|
|
56
|
+
scrollToFn: windowScroll,
|
|
57
|
+
initialOffset: typeof document !== "undefined" ? window.scrollY : void 0,
|
|
58
|
+
...unref(options)
|
|
59
|
+
}))
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
useVirtualizer,
|
|
64
|
+
useWindowVirtualizer
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["options"],"mappings":";;;AAwBA,SAAS,mBAIP,SACgD;AAChD,QAAM,cAAc,IAAI,YAAY,MAAM,OAAO,CAAC;AAC5C,QAAA,QAAQ,WAAW,WAAW;AAE9B,QAAA,UAAU,YAAY;AAE5B;AAAA,IACE,MAAM,MAAM,OAAO,EAAE,iBAAiB;AAAA,IACtC,CAAC,OAAO;AACN,UAAI,IAAI;AACN,oBAAY,YAAY;AAAA,MAC1B;AAAA,IACF;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EAAA;AAGF;AAAA,IACE,MAAM,MAAM,OAAO;AAAA,IACnB,CAACA,aAAY;AACX,kBAAY,WAAW;AAAA,QACrB,GAAGA;AAAAA,QACH,UAAU,CAAC,UAAU,SAAS;;AAC5B,qBAAW,KAAK;AAChBA,yBAAQ,aAARA,kCAAmB,UAAU;AAAA,QAC/B;AAAA,MAAA,CACD;AAED,kBAAY,YAAY;AACxB,iBAAW,KAAK;AAAA,IAClB;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EAAA;AAGF,iBAAe,OAAO;AAEf,SAAA;AACT;AAEO,SAAS,eAId,SAMgD;AACzC,SAAA;AAAA,IACL,SAAS,OAAO;AAAA,MACd;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,GAAG,MAAM,OAAO;AAAA,IAAA,EAChB;AAAA,EAAA;AAEN;AAEO,SAAS,qBACd,SASwC;AACjC,SAAA;AAAA,IACL,SAAS,OAAO;AAAA,MACd,kBAAkB,MAAO,OAAO,aAAa,cAAc,SAAS;AAAA,MACpE,oBAAoB;AAAA,MACpB,sBAAsB;AAAA,MACtB,YAAY;AAAA,MACZ,eACE,OAAO,aAAa,cAAc,OAAO,UAAU;AAAA,MACrD,GAAG,MAAM,OAAO;AAAA,IAAA,EAChB;AAAA,EAAA;AAEN;"}
|
package/package.json
CHANGED
|
@@ -1,54 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-virtual",
|
|
3
|
-
"
|
|
4
|
-
"version": "3.0.4",
|
|
3
|
+
"version": "3.1.0",
|
|
5
4
|
"description": "Headless UI for virtualizing scrollable elements in Vue",
|
|
5
|
+
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://github.com/tanstack/virtual#readme",
|
|
8
7
|
"repository": {
|
|
9
8
|
"type": "git",
|
|
10
9
|
"url": "git+https://github.com/tanstack/virtual.git"
|
|
11
10
|
},
|
|
11
|
+
"homepage": "https://github.com/tanstack/virtual#readme",
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"react",
|
|
17
|
-
"vue",
|
|
18
|
-
"solid",
|
|
19
|
-
"svelte",
|
|
20
|
-
"virtual",
|
|
21
|
-
"virtual-core",
|
|
22
|
-
"datagrid"
|
|
23
|
-
],
|
|
24
15
|
"funding": {
|
|
25
16
|
"type": "github",
|
|
26
17
|
"url": "https://github.com/sponsors/tannerlinsley"
|
|
27
18
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
19
|
+
"type": "module",
|
|
20
|
+
"types": "dist/esm/index.d.ts",
|
|
21
|
+
"main": "dist/cjs/index.cjs",
|
|
22
|
+
"module": "dist/esm/index.js",
|
|
31
23
|
"exports": {
|
|
32
24
|
".": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/esm/index.d.ts",
|
|
27
|
+
"default": "./dist/esm/index.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/cjs/index.d.cts",
|
|
31
|
+
"default": "./dist/cjs/index.cjs"
|
|
32
|
+
}
|
|
36
33
|
},
|
|
37
34
|
"./package.json": "./package.json"
|
|
38
35
|
},
|
|
39
36
|
"sideEffects": false,
|
|
37
|
+
"keywords": [
|
|
38
|
+
"react",
|
|
39
|
+
"vue",
|
|
40
|
+
"solid",
|
|
41
|
+
"svelte",
|
|
42
|
+
"virtual",
|
|
43
|
+
"virtual-core",
|
|
44
|
+
"datagrid"
|
|
45
|
+
],
|
|
40
46
|
"files": [
|
|
41
|
-
"
|
|
42
|
-
"build/umd/*",
|
|
47
|
+
"dist",
|
|
43
48
|
"src"
|
|
44
49
|
],
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@tanstack/virtual-core": "3.1.0"
|
|
52
|
+
},
|
|
45
53
|
"devDependencies": {
|
|
54
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
46
55
|
"vue": "^3.2.45"
|
|
47
56
|
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@tanstack/virtual-core": "3.0.0"
|
|
50
|
-
},
|
|
51
57
|
"peerDependencies": {
|
|
52
58
|
"vue": "^2.7.0 || ^3.0.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"clean": "rimraf ./dist && rimraf ./coverage",
|
|
62
|
+
"test:types": "tsc",
|
|
63
|
+
"test:build": "publint --strict",
|
|
64
|
+
"build": "vite build"
|
|
53
65
|
}
|
|
54
66
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i];
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { _extends as extends };
|
|
27
|
-
//# sourceMappingURL=_rollupPluginBabelHelpers.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
-
|
|
15
|
-
function _extends() {
|
|
16
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
17
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
18
|
-
var source = arguments[i];
|
|
19
|
-
for (var key in source) {
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
-
target[key] = source[key];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return target;
|
|
26
|
-
};
|
|
27
|
-
return _extends.apply(this, arguments);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
exports["extends"] = _extends;
|
|
31
|
-
//# sourceMappingURL=_rollupPluginBabelHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i];
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { _extends as extends };
|
|
27
|
-
//# sourceMappingURL=_rollupPluginBabelHelpers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/lib/index.esm.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.esm.js';
|
|
12
|
-
import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from '@tanstack/virtual-core';
|
|
13
|
-
export * from '@tanstack/virtual-core';
|
|
14
|
-
import { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from 'vue';
|
|
15
|
-
|
|
16
|
-
function useVirtualizerBase(options) {
|
|
17
|
-
var virtualizer = new Virtualizer(unref(options));
|
|
18
|
-
var state = shallowRef(virtualizer);
|
|
19
|
-
var cleanup = virtualizer._didMount();
|
|
20
|
-
watch(function () {
|
|
21
|
-
return unref(options).getScrollElement();
|
|
22
|
-
}, function (el) {
|
|
23
|
-
if (el) {
|
|
24
|
-
virtualizer._willUpdate();
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
immediate: true
|
|
28
|
-
});
|
|
29
|
-
watch(function () {
|
|
30
|
-
return unref(options);
|
|
31
|
-
}, function (options) {
|
|
32
|
-
virtualizer.setOptions(_extends({}, options, {
|
|
33
|
-
onChange: function onChange(instance, sync) {
|
|
34
|
-
triggerRef(state);
|
|
35
|
-
options.onChange == null || options.onChange(instance, sync);
|
|
36
|
-
}
|
|
37
|
-
}));
|
|
38
|
-
virtualizer._willUpdate();
|
|
39
|
-
triggerRef(state);
|
|
40
|
-
}, {
|
|
41
|
-
immediate: true
|
|
42
|
-
});
|
|
43
|
-
onScopeDispose(cleanup);
|
|
44
|
-
return state;
|
|
45
|
-
}
|
|
46
|
-
function useVirtualizer(options) {
|
|
47
|
-
return useVirtualizerBase(computed(function () {
|
|
48
|
-
return _extends({
|
|
49
|
-
observeElementRect: observeElementRect,
|
|
50
|
-
observeElementOffset: observeElementOffset,
|
|
51
|
-
scrollToFn: elementScroll
|
|
52
|
-
}, unref(options));
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
function useWindowVirtualizer(options) {
|
|
56
|
-
return useVirtualizerBase(computed(function () {
|
|
57
|
-
return _extends({
|
|
58
|
-
getScrollElement: function getScrollElement() {
|
|
59
|
-
return typeof document !== 'undefined' ? window : null;
|
|
60
|
-
},
|
|
61
|
-
observeElementRect: observeWindowRect,
|
|
62
|
-
observeElementOffset: observeWindowOffset,
|
|
63
|
-
scrollToFn: windowScroll,
|
|
64
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY : undefined
|
|
65
|
-
}, unref(options));
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { useVirtualizer, useWindowVirtualizer };
|
|
70
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","_didMount","watch","getScrollElement","el","_willUpdate","immediate","setOptions","_extends","onChange","instance","sync","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","scrollToFn","elementScroll","useWindowVirtualizer","document","window","observeWindowRect","observeWindowOffset","windowScroll","initialOffset","scrollY","undefined"],"mappings":";;;;;;;;;;;;;;;AAwBA,SAASA,kBAAkBA,CAIzBC,OAAmE,EACnB;EAChD,IAAMC,WAAW,GAAG,IAAIC,WAAW,CAACC,KAAK,CAACH,OAAO,CAAC,CAAC,CAAA;AACnD,EAAA,IAAMI,KAAK,GAAGC,UAAU,CAACJ,WAAW,CAAC,CAAA;AAErC,EAAA,IAAMK,OAAO,GAAGL,WAAW,CAACM,SAAS,EAAE,CAAA;AAEvCC,EAAAA,KAAK,CACH,YAAA;AAAA,IAAA,OAAML,KAAK,CAACH,OAAO,CAAC,CAACS,gBAAgB,EAAE,CAAA;GACvC,EAAA,UAACC,EAAE,EAAK;AACN,IAAA,IAAIA,EAAE,EAAE;MACNT,WAAW,CAACU,WAAW,EAAE,CAAA;AAC3B,KAAA;AACF,GAAC,EACD;AACEC,IAAAA,SAAS,EAAE,IAAA;AACb,GACF,CAAC,CAAA;AAEDJ,EAAAA,KAAK,CACH,YAAA;IAAA,OAAML,KAAK,CAACH,OAAO,CAAC,CAAA;GACpB,EAAA,UAACA,OAAO,EAAK;AACXC,IAAAA,WAAW,CAACY,UAAU,CAAAC,QAAA,KACjBd,OAAO,EAAA;AACVe,MAAAA,QAAQ,EAAE,SAAAA,QAAAA,CAACC,QAAQ,EAAEC,IAAI,EAAK;QAC5BC,UAAU,CAACd,KAAK,CAAC,CAAA;QACjBJ,OAAO,CAACe,QAAQ,IAAA,IAAA,IAAhBf,OAAO,CAACe,QAAQ,CAAGC,QAAQ,EAAEC,IAAI,CAAC,CAAA;AACpC,OAAA;AAAC,KAAA,CACF,CAAC,CAAA;IAEFhB,WAAW,CAACU,WAAW,EAAE,CAAA;IACzBO,UAAU,CAACd,KAAK,CAAC,CAAA;AACnB,GAAC,EACD;AACEQ,IAAAA,SAAS,EAAE,IAAA;AACb,GACF,CAAC,CAAA;EAEDO,cAAc,CAACb,OAAO,CAAC,CAAA;AAEvB,EAAA,OAAOF,KAAK,CAAA;AACd,CAAA;AAEO,SAASgB,cAAcA,CAI5BpB,OAKC,EAC+C;EAChD,OAAOD,kBAAkB,CACvBsB,QAAQ,CAAC,YAAA;AAAA,IAAA,OAAAP,QAAA,CAAA;AACPQ,MAAAA,kBAAkB,EAAEA,kBAAkB;AACtCC,MAAAA,oBAAoB,EAAEA,oBAAoB;AAC1CC,MAAAA,UAAU,EAAEC,aAAAA;KACTtB,EAAAA,KAAK,CAACH,OAAO,CAAC,CAAA,CAAA;AAAA,GACjB,CACJ,CAAC,CAAA;AACH,CAAA;AAEO,SAAS0B,oBAAoBA,CAClC1B,OAQC,EACuC;EACxC,OAAOD,kBAAkB,CACvBsB,QAAQ,CAAC,YAAA;AAAA,IAAA,OAAAP,QAAA,CAAA;MACPL,gBAAgB,EAAE,SAAAA,gBAAA,GAAA;AAAA,QAAA,OAAO,OAAOkB,QAAQ,KAAK,WAAW,GAAGC,MAAM,GAAG,IAAI,CAAA;OAAC;AACzEN,MAAAA,kBAAkB,EAAEO,iBAAiB;AACrCN,MAAAA,oBAAoB,EAAEO,mBAAmB;AACzCN,MAAAA,UAAU,EAAEO,YAAY;MACxBC,aAAa,EACX,OAAOL,QAAQ,KAAK,WAAW,GAAGC,MAAM,CAACK,OAAO,GAAGC,SAAAA;KAClD/B,EAAAA,KAAK,CAACH,OAAO,CAAC,CAAA,CAAA;AAAA,GACjB,CACJ,CAAC,CAAA;AACH;;;;"}
|
package/build/lib/index.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
-
|
|
15
|
-
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
|
|
16
|
-
var virtualCore = require('@tanstack/virtual-core');
|
|
17
|
-
var vue = require('vue');
|
|
18
|
-
|
|
19
|
-
function useVirtualizerBase(options) {
|
|
20
|
-
var virtualizer = new virtualCore.Virtualizer(vue.unref(options));
|
|
21
|
-
var state = vue.shallowRef(virtualizer);
|
|
22
|
-
var cleanup = virtualizer._didMount();
|
|
23
|
-
vue.watch(function () {
|
|
24
|
-
return vue.unref(options).getScrollElement();
|
|
25
|
-
}, function (el) {
|
|
26
|
-
if (el) {
|
|
27
|
-
virtualizer._willUpdate();
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
|
-
immediate: true
|
|
31
|
-
});
|
|
32
|
-
vue.watch(function () {
|
|
33
|
-
return vue.unref(options);
|
|
34
|
-
}, function (options) {
|
|
35
|
-
virtualizer.setOptions(_rollupPluginBabelHelpers["extends"]({}, options, {
|
|
36
|
-
onChange: function onChange(instance, sync) {
|
|
37
|
-
vue.triggerRef(state);
|
|
38
|
-
options.onChange == null || options.onChange(instance, sync);
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
virtualizer._willUpdate();
|
|
42
|
-
vue.triggerRef(state);
|
|
43
|
-
}, {
|
|
44
|
-
immediate: true
|
|
45
|
-
});
|
|
46
|
-
vue.onScopeDispose(cleanup);
|
|
47
|
-
return state;
|
|
48
|
-
}
|
|
49
|
-
function useVirtualizer(options) {
|
|
50
|
-
return useVirtualizerBase(vue.computed(function () {
|
|
51
|
-
return _rollupPluginBabelHelpers["extends"]({
|
|
52
|
-
observeElementRect: virtualCore.observeElementRect,
|
|
53
|
-
observeElementOffset: virtualCore.observeElementOffset,
|
|
54
|
-
scrollToFn: virtualCore.elementScroll
|
|
55
|
-
}, vue.unref(options));
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
function useWindowVirtualizer(options) {
|
|
59
|
-
return useVirtualizerBase(vue.computed(function () {
|
|
60
|
-
return _rollupPluginBabelHelpers["extends"]({
|
|
61
|
-
getScrollElement: function getScrollElement() {
|
|
62
|
-
return typeof document !== 'undefined' ? window : null;
|
|
63
|
-
},
|
|
64
|
-
observeElementRect: virtualCore.observeWindowRect,
|
|
65
|
-
observeElementOffset: virtualCore.observeWindowOffset,
|
|
66
|
-
scrollToFn: virtualCore.windowScroll,
|
|
67
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY : undefined
|
|
68
|
-
}, vue.unref(options));
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
exports.useVirtualizer = useVirtualizer;
|
|
73
|
-
exports.useWindowVirtualizer = useWindowVirtualizer;
|
|
74
|
-
Object.keys(virtualCore).forEach(function (k) {
|
|
75
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
get: function () { return virtualCore[k]; }
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=index.js.map
|
package/build/lib/index.mjs
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.mjs';
|
|
12
|
-
import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from '@tanstack/virtual-core';
|
|
13
|
-
export * from '@tanstack/virtual-core';
|
|
14
|
-
import { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from 'vue';
|
|
15
|
-
|
|
16
|
-
function useVirtualizerBase(options) {
|
|
17
|
-
var virtualizer = new Virtualizer(unref(options));
|
|
18
|
-
var state = shallowRef(virtualizer);
|
|
19
|
-
var cleanup = virtualizer._didMount();
|
|
20
|
-
watch(function () {
|
|
21
|
-
return unref(options).getScrollElement();
|
|
22
|
-
}, function (el) {
|
|
23
|
-
if (el) {
|
|
24
|
-
virtualizer._willUpdate();
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
immediate: true
|
|
28
|
-
});
|
|
29
|
-
watch(function () {
|
|
30
|
-
return unref(options);
|
|
31
|
-
}, function (options) {
|
|
32
|
-
virtualizer.setOptions(_extends({}, options, {
|
|
33
|
-
onChange: function onChange(instance, sync) {
|
|
34
|
-
triggerRef(state);
|
|
35
|
-
options.onChange == null || options.onChange(instance, sync);
|
|
36
|
-
}
|
|
37
|
-
}));
|
|
38
|
-
virtualizer._willUpdate();
|
|
39
|
-
triggerRef(state);
|
|
40
|
-
}, {
|
|
41
|
-
immediate: true
|
|
42
|
-
});
|
|
43
|
-
onScopeDispose(cleanup);
|
|
44
|
-
return state;
|
|
45
|
-
}
|
|
46
|
-
function useVirtualizer(options) {
|
|
47
|
-
return useVirtualizerBase(computed(function () {
|
|
48
|
-
return _extends({
|
|
49
|
-
observeElementRect: observeElementRect,
|
|
50
|
-
observeElementOffset: observeElementOffset,
|
|
51
|
-
scrollToFn: elementScroll
|
|
52
|
-
}, unref(options));
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
function useWindowVirtualizer(options) {
|
|
56
|
-
return useVirtualizerBase(computed(function () {
|
|
57
|
-
return _extends({
|
|
58
|
-
getScrollElement: function getScrollElement() {
|
|
59
|
-
return typeof document !== 'undefined' ? window : null;
|
|
60
|
-
},
|
|
61
|
-
observeElementRect: observeWindowRect,
|
|
62
|
-
observeElementOffset: observeWindowOffset,
|
|
63
|
-
scrollToFn: windowScroll,
|
|
64
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY : undefined
|
|
65
|
-
}, unref(options));
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { useVirtualizer, useWindowVirtualizer };
|
|
70
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
(function (global, factory) {
|
|
12
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tanstack/virtual-core'), require('vue')) :
|
|
13
|
-
typeof define === 'function' && define.amd ? define(['exports', '@tanstack/virtual-core', 'vue'], factory) :
|
|
14
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VueVirtual = {}, global.VirtualCore, global.Vue));
|
|
15
|
-
})(this, (function (exports, virtualCore, vue) { 'use strict';
|
|
16
|
-
|
|
17
|
-
function _extends() {
|
|
18
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
19
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
20
|
-
var source = arguments[i];
|
|
21
|
-
for (var key in source) {
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23
|
-
target[key] = source[key];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
return _extends.apply(this, arguments);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function useVirtualizerBase(options) {
|
|
33
|
-
var virtualizer = new virtualCore.Virtualizer(vue.unref(options));
|
|
34
|
-
var state = vue.shallowRef(virtualizer);
|
|
35
|
-
var cleanup = virtualizer._didMount();
|
|
36
|
-
vue.watch(function () {
|
|
37
|
-
return vue.unref(options).getScrollElement();
|
|
38
|
-
}, function (el) {
|
|
39
|
-
if (el) {
|
|
40
|
-
virtualizer._willUpdate();
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
43
|
-
immediate: true
|
|
44
|
-
});
|
|
45
|
-
vue.watch(function () {
|
|
46
|
-
return vue.unref(options);
|
|
47
|
-
}, function (options) {
|
|
48
|
-
virtualizer.setOptions(_extends({}, options, {
|
|
49
|
-
onChange: function onChange(instance, sync) {
|
|
50
|
-
vue.triggerRef(state);
|
|
51
|
-
options.onChange == null || options.onChange(instance, sync);
|
|
52
|
-
}
|
|
53
|
-
}));
|
|
54
|
-
virtualizer._willUpdate();
|
|
55
|
-
vue.triggerRef(state);
|
|
56
|
-
}, {
|
|
57
|
-
immediate: true
|
|
58
|
-
});
|
|
59
|
-
vue.onScopeDispose(cleanup);
|
|
60
|
-
return state;
|
|
61
|
-
}
|
|
62
|
-
function useVirtualizer(options) {
|
|
63
|
-
return useVirtualizerBase(vue.computed(function () {
|
|
64
|
-
return _extends({
|
|
65
|
-
observeElementRect: virtualCore.observeElementRect,
|
|
66
|
-
observeElementOffset: virtualCore.observeElementOffset,
|
|
67
|
-
scrollToFn: virtualCore.elementScroll
|
|
68
|
-
}, vue.unref(options));
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
function useWindowVirtualizer(options) {
|
|
72
|
-
return useVirtualizerBase(vue.computed(function () {
|
|
73
|
-
return _extends({
|
|
74
|
-
getScrollElement: function getScrollElement() {
|
|
75
|
-
return typeof document !== 'undefined' ? window : null;
|
|
76
|
-
},
|
|
77
|
-
observeElementRect: virtualCore.observeWindowRect,
|
|
78
|
-
observeElementOffset: virtualCore.observeWindowOffset,
|
|
79
|
-
scrollToFn: virtualCore.windowScroll,
|
|
80
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY : undefined
|
|
81
|
-
}, vue.unref(options));
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
exports.useVirtualizer = useVirtualizer;
|
|
86
|
-
exports.useWindowVirtualizer = useWindowVirtualizer;
|
|
87
|
-
Object.keys(virtualCore).forEach(function (k) {
|
|
88
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () { return virtualCore[k]; }
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
95
|
-
|
|
96
|
-
}));
|
|
97
|
-
//# sourceMappingURL=index.development.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.development.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","_didMount","watch","getScrollElement","el","_willUpdate","immediate","setOptions","_extends","onChange","instance","sync","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","scrollToFn","elementScroll","useWindowVirtualizer","document","window","observeWindowRect","observeWindowOffset","windowScroll","initialOffset","scrollY","undefined"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBA,SAASA,kBAAkBA,CAIzBC,OAAmE,EACnB;IAChD,IAAMC,WAAW,GAAG,IAAIC,uBAAW,CAACC,SAAK,CAACH,OAAO,CAAC,CAAC,CAAA;EACnD,EAAA,IAAMI,KAAK,GAAGC,cAAU,CAACJ,WAAW,CAAC,CAAA;EAErC,EAAA,IAAMK,OAAO,GAAGL,WAAW,CAACM,SAAS,EAAE,CAAA;EAEvCC,EAAAA,SAAK,CACH,YAAA;EAAA,IAAA,OAAML,SAAK,CAACH,OAAO,CAAC,CAACS,gBAAgB,EAAE,CAAA;KACvC,EAAA,UAACC,EAAE,EAAK;EACN,IAAA,IAAIA,EAAE,EAAE;QACNT,WAAW,CAACU,WAAW,EAAE,CAAA;EAC3B,KAAA;EACF,GAAC,EACD;EACEC,IAAAA,SAAS,EAAE,IAAA;EACb,GACF,CAAC,CAAA;EAEDJ,EAAAA,SAAK,CACH,YAAA;MAAA,OAAML,SAAK,CAACH,OAAO,CAAC,CAAA;KACpB,EAAA,UAACA,OAAO,EAAK;EACXC,IAAAA,WAAW,CAACY,UAAU,CAAAC,QAAA,KACjBd,OAAO,EAAA;EACVe,MAAAA,QAAQ,EAAE,SAAAA,QAAAA,CAACC,QAAQ,EAAEC,IAAI,EAAK;UAC5BC,cAAU,CAACd,KAAK,CAAC,CAAA;UACjBJ,OAAO,CAACe,QAAQ,IAAA,IAAA,IAAhBf,OAAO,CAACe,QAAQ,CAAGC,QAAQ,EAAEC,IAAI,CAAC,CAAA;EACpC,OAAA;EAAC,KAAA,CACF,CAAC,CAAA;MAEFhB,WAAW,CAACU,WAAW,EAAE,CAAA;MACzBO,cAAU,CAACd,KAAK,CAAC,CAAA;EACnB,GAAC,EACD;EACEQ,IAAAA,SAAS,EAAE,IAAA;EACb,GACF,CAAC,CAAA;IAEDO,kBAAc,CAACb,OAAO,CAAC,CAAA;EAEvB,EAAA,OAAOF,KAAK,CAAA;EACd,CAAA;EAEO,SAASgB,cAAcA,CAI5BpB,OAKC,EAC+C;IAChD,OAAOD,kBAAkB,CACvBsB,YAAQ,CAAC,YAAA;EAAA,IAAA,OAAAP,QAAA,CAAA;EACPQ,MAAAA,kBAAkB,EAAEA,8BAAkB;EACtCC,MAAAA,oBAAoB,EAAEA,gCAAoB;EAC1CC,MAAAA,UAAU,EAAEC,yBAAAA;OACTtB,EAAAA,SAAK,CAACH,OAAO,CAAC,CAAA,CAAA;EAAA,GACjB,CACJ,CAAC,CAAA;EACH,CAAA;EAEO,SAAS0B,oBAAoBA,CAClC1B,OAQC,EACuC;IACxC,OAAOD,kBAAkB,CACvBsB,YAAQ,CAAC,YAAA;EAAA,IAAA,OAAAP,QAAA,CAAA;QACPL,gBAAgB,EAAE,SAAAA,gBAAA,GAAA;EAAA,QAAA,OAAO,OAAOkB,QAAQ,KAAK,WAAW,GAAGC,MAAM,GAAG,IAAI,CAAA;SAAC;EACzEN,MAAAA,kBAAkB,EAAEO,6BAAiB;EACrCN,MAAAA,oBAAoB,EAAEO,+BAAmB;EACzCN,MAAAA,UAAU,EAAEO,wBAAY;QACxBC,aAAa,EACX,OAAOL,QAAQ,KAAK,WAAW,GAAGC,MAAM,CAACK,OAAO,GAAGC,SAAAA;OAClD/B,EAAAA,SAAK,CAACH,OAAO,CAAC,CAAA,CAAA;EAAA,GACjB,CACJ,CAAC,CAAA;EACH;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vue-virtual
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@tanstack/virtual-core"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@tanstack/virtual-core","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).VueVirtual={},e.VirtualCore,e.Vue)}(this,(function(e,n,t){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(this,arguments)}function o(e){var o=new n.Virtualizer(t.unref(e)),i=t.shallowRef(o),u=o._didMount();return t.watch((function(){return t.unref(e).getScrollElement()}),(function(e){e&&o._willUpdate()}),{immediate:!0}),t.watch((function(){return t.unref(e)}),(function(e){o.setOptions(r({},e,{onChange:function(n,r){t.triggerRef(i),null==e.onChange||e.onChange(n,r)}})),o._willUpdate(),t.triggerRef(i)}),{immediate:!0}),t.onScopeDispose(u),i}e.useVirtualizer=function(e){return o(t.computed((function(){return r({observeElementRect:n.observeElementRect,observeElementOffset:n.observeElementOffset,scrollToFn:n.elementScroll},t.unref(e))})))},e.useWindowVirtualizer=function(e){return o(t.computed((function(){return r({getScrollElement:function(){return"undefined"!=typeof document?window:null},observeElementRect:n.observeWindowRect,observeElementOffset:n.observeWindowOffset,scrollToFn:n.windowScroll,initialOffset:"undefined"!=typeof document?window.scrollY:void 0},t.unref(e))})))},Object.keys(n).forEach((function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
12
|
-
//# sourceMappingURL=index.production.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.production.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n elementScroll,\n observeElementOffset,\n observeElementRect,\n observeWindowOffset,\n observeWindowRect,\n PartialKeys,\n Virtualizer,\n VirtualizerOptions,\n windowScroll,\n} from '@tanstack/virtual-core'\nimport {\n computed,\n onScopeDispose,\n Ref,\n shallowRef,\n triggerRef,\n unref,\n watch,\n} from 'vue'\nexport * from '@tanstack/virtual-core'\n\ntype MaybeRef<T> = T | Ref<T>\n\nfunction useVirtualizerBase<\n TScrollElement extends Element | Window,\n TItemElement extends Element,\n>(\n options: MaybeRef<VirtualizerOptions<TScrollElement, TItemElement>>,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n const virtualizer = new Virtualizer(unref(options))\n const state = shallowRef(virtualizer)\n\n const cleanup = virtualizer._didMount()\n\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate()\n }\n },\n {\n immediate: true,\n },\n )\n\n watch(\n () => unref(options),\n (options) => {\n virtualizer.setOptions({\n ...options,\n onChange: (instance, sync) => {\n triggerRef(state)\n options.onChange?.(instance, sync)\n },\n })\n\n virtualizer._willUpdate()\n triggerRef(state)\n },\n {\n immediate: true,\n },\n )\n\n onScopeDispose(cleanup)\n\n return state\n}\n\nexport function useVirtualizer<\n TScrollElement extends Element,\n TItemElement extends Element,\n>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<TScrollElement, TItemElement>,\n 'observeElementRect' | 'observeElementOffset' | 'scrollToFn'\n >\n >,\n): Ref<Virtualizer<TScrollElement, TItemElement>> {\n return useVirtualizerBase<TScrollElement, TItemElement>(\n computed(() => ({\n observeElementRect: observeElementRect,\n observeElementOffset: observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options),\n })),\n )\n}\n\nexport function useWindowVirtualizer<TItemElement extends Element>(\n options: MaybeRef<\n PartialKeys<\n VirtualizerOptions<Window, TItemElement>,\n | 'observeElementRect'\n | 'observeElementOffset'\n | 'scrollToFn'\n | 'getScrollElement'\n >\n >,\n): Ref<Virtualizer<Window, TItemElement>> {\n return useVirtualizerBase<Window, TItemElement>(\n computed(() => ({\n getScrollElement: () => (typeof document !== 'undefined' ? window : null),\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset:\n typeof document !== 'undefined' ? window.scrollY : undefined,\n ...unref(options),\n })),\n )\n}\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","_didMount","watch","getScrollElement","el","_willUpdate","immediate","setOptions","_extends","onChange","instance","sync","triggerRef","onScopeDispose","computed","observeElementRect","observeElementOffset","scrollToFn","elementScroll","document","window","observeWindowRect","observeWindowOffset","windowScroll","initialOffset","scrollY","undefined"],"mappings":";;;;;;;;;;8jBAwBA,SAASA,EAIPC,GAEA,IAAMC,EAAc,IAAIC,EAAAA,YAAYC,EAAAA,MAAMH,IACpCI,EAAQC,aAAWJ,GAEnBK,EAAUL,EAAYM,YAmC5B,OAjCAC,EAAAA,OACE,WAAA,OAAML,QAAMH,GAASS,kBACrB,IAAA,SAACC,GACKA,GACFT,EAAYU,aAEhB,GACA,CACEC,WAAW,IAIfJ,EAAAA,OACE,WAAA,OAAML,EAAAA,MAAMH,EACZ,IAAA,SAACA,GACCC,EAAYY,WAAUC,KACjBd,EAAO,CACVe,SAAU,SAACC,EAAUC,GACnBC,EAAUA,WAACd,GACK,MAAhBJ,EAAQe,UAARf,EAAQe,SAAWC,EAAUC,EAC/B,KAGFhB,EAAYU,cACZO,EAAUA,WAACd,EACb,GACA,CACEQ,WAAW,IAIfO,EAAcA,eAACb,GAERF,CACT,kBAEO,SAILJ,GAOA,OAAOD,EACLqB,EAAAA,UAAS,WAAA,OAAAN,EAAA,CACPO,mBAAoBA,EAAkBA,mBACtCC,qBAAsBA,EAAoBA,qBAC1CC,WAAYC,EAAAA,eACTrB,EAAKA,MAACH,GACT,IAEN,yBAEO,SACLA,GAUA,OAAOD,EACLqB,EAAAA,UAAS,WAAA,OAAAN,EAAA,CACPL,iBAAkB,WAAA,MAA2B,oBAAbgB,SAA2BC,OAAS,IAAK,EACzEL,mBAAoBM,EAAiBA,kBACrCL,qBAAsBM,EAAmBA,oBACzCL,WAAYM,EAAYA,aACxBC,cACsB,oBAAbL,SAA2BC,OAAOK,aAAUC,GAClD7B,EAAKA,MAACH,GACT,IAEN"}
|
|
File without changes
|