eco-vue-js 0.10.35 → 0.10.36
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/components/Button/WButtonDropdown.vue.js +0 -2
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +0 -1
- package/dist/components/Button/WButtonSelection.vue.js +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +6 -11
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +1 -1
- package/dist/components/Dropdown/types.d.ts +9 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -32
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +5 -9
- package/dist/components/DropdownMenu/types.d.ts +0 -2
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +0 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +0 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +2 -5
- package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts +25 -0
- package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue.js +23 -0
- package/dist/components/InfiniteList/WInfiniteListScrollingElement.vue2.js +5 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +0 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +8 -5
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +5 -4
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +7 -8
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +3 -6
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +8 -10
- package/dist/components/InfiniteList/models/injection.d.ts +3 -0
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/injection.js +3 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +5 -3
- package/dist/components/Input/WInputDate.vue.js +0 -2
- package/dist/components/Input/WInputOptions.vue.js +0 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +17 -18
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +5 -5
- package/dist/components/List/WListHeader.vue.js +4 -4
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +3 -3
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +5 -1
- package/dist/components/Modal/WModalImport.vue.js +2 -2
- package/dist/components/Modal/WModalWrapper.vue.d.ts +8 -2
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +35 -21
- package/dist/components/Modal/models/injection.d.ts +4 -0
- package/dist/components/Modal/models/injection.d.ts.map +1 -0
- package/dist/components/Modal/models/injection.js +4 -0
- package/dist/components/Progress/WProgressStriped.vue.js +2 -2
- package/dist/components/Select/WSelect.vue.js +0 -2
- package/dist/components/Select/WSelectAsync.vue.js +0 -2
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +41 -41
- package/dist/components/Select/WSelectAsyncSingle.vue.js +0 -2
- package/dist/components/Select/WSelectSingle.vue.js +0 -2
- package/dist/components/Select/WSelectStringified.vue.js +0 -2
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +0 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +1 -3
- package/dist/imports/componentsPlugin.d.ts +2 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/package.json +4 -1
- package/tailwind-base/plugins/default.ts +11 -19
- package/tailwind-base/theme/sizes.ts +5 -0
@@ -15,8 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
disabled: { type: Boolean },
|
16
16
|
tooltipText: {},
|
17
17
|
teleport: { type: Boolean },
|
18
|
-
noZIndex: { type: Boolean },
|
19
|
-
zIndex: {},
|
20
18
|
parentElement: {},
|
21
19
|
horizontalAlign: { default: HorizontalAlign.LEFT_INNER },
|
22
20
|
maxHeight: { default: 200 },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA0DA;AA2GA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAWpD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;CACxC,CAAC;AAuCF,iBAAS,cAAc;WAkHT,OAAO,IAA6B;;yBAXpB,GAAG;;;;EAgBhC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;gGASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -48,7 +48,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
48
|
"max-width": 320,
|
49
49
|
"horizontal-align": _ctx.anchor ? unref(HorizontalAlign).RIGHT_INNER : unref(HorizontalAlign).LEFT_INNER,
|
50
50
|
"update-align": false,
|
51
|
-
"z-index": 1,
|
52
51
|
"parent-element": _ctx.anchor,
|
53
52
|
teleport: ""
|
54
53
|
}, {
|
@@ -7,7 +7,7 @@ import _sfc_main$3 from './WButtonSelectionAction.vue.js';
|
|
7
7
|
import _sfc_main$4 from './WButtonSelectionState.vue.js';
|
8
8
|
import _sfc_main$2 from '../ClickOutside/WClickOutside.vue.js';
|
9
9
|
|
10
|
-
const _hoisted_1 = { class: "sm
|
10
|
+
const _hoisted_1 = { class: "sm:-left--left-inner sm:-w--width-inner grid w-full grid-cols-[1fr,auto] pb-3 sm:sticky" };
|
11
11
|
const _hoisted_2 = { class: "flex" };
|
12
12
|
const _hoisted_3 = { class: "text-primary dark:text-primary-dark font-semibold" };
|
13
13
|
const _hoisted_4 = { class: "sm-not:text-xs" };
|
@@ -1,16 +1,11 @@
|
|
1
|
-
import { DropdownProps } from './types';
|
1
|
+
import { DropdownDefaultSlotScope, DropdownProps } from './types';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
declare function __VLS_template(): {
|
3
4
|
attrs: Partial<{}>;
|
4
|
-
slots: {
|
5
|
-
default
|
6
|
-
|
7
|
-
|
8
|
-
top: string;
|
9
|
-
bottom: string;
|
10
|
-
isTop: boolean;
|
11
|
-
isLeft: boolean;
|
12
|
-
isRight: boolean;
|
13
|
-
}): any;
|
5
|
+
slots: Readonly<{
|
6
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
7
|
+
}> & {
|
8
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
14
9
|
};
|
15
10
|
refs: {
|
16
11
|
dropdown: HTMLDivElement;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/WDropdown.vue"],"names":[],"mappings":"AAqBA;
|
1
|
+
{"version":3,"file":"WDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/WDropdown.vue"],"names":[],"mappings":"AAqBA;AAkJA,OAAO,KAAK,EAAC,wBAAwB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAEpE,OAAO,EAAC,KAAK,KAAK,EAAyF,MAAM,KAAK,CAAA;AAgItH,iBAAS,cAAc;WAqCT,OAAO,IAA6B;;iBArDvC,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAA5C,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;EA0DtD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
68
68
|
onMounted(() => {
|
69
69
|
if (!isClientSide || !dropdownRef.value) return;
|
70
70
|
domListenerContainer = new DOMListenerContainer(
|
71
|
-
[document, window, ...getAllScrollParents(
|
71
|
+
[document, window, ...getAllScrollParents(props.parentElement)],
|
72
72
|
["scroll", "touchmove", "resize"],
|
73
73
|
() => {
|
74
74
|
if (requestAnimationFrameId) window.cancelAnimationFrame(requestAnimationFrameId);
|
@@ -7,4 +7,13 @@ export interface DropdownProps {
|
|
7
7
|
updateAlign?: boolean;
|
8
8
|
emitUpdate?: boolean;
|
9
9
|
}
|
10
|
+
export type DropdownDefaultSlotScope = {
|
11
|
+
left: string;
|
12
|
+
right: string;
|
13
|
+
top: string;
|
14
|
+
bottom: string;
|
15
|
+
isTop: boolean;
|
16
|
+
isLeft: boolean;
|
17
|
+
isRight: boolean;
|
18
|
+
};
|
10
19
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAE5D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB"}
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAE5D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
@@ -1,19 +1,17 @@
|
|
1
1
|
import { DropdownMenuProps } from './types';
|
2
|
+
import { DropdownDefaultSlotScope } from '../Dropdown/types';
|
3
|
+
import { VNode } from 'vue';
|
2
4
|
declare function __VLS_template(): {
|
3
5
|
attrs: Partial<{}>;
|
4
|
-
slots: {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
isTop: boolean;
|
11
|
-
isLeft: boolean;
|
12
|
-
isRight: boolean;
|
13
|
-
}): any;
|
6
|
+
slots: Readonly<{
|
7
|
+
toggle?: () => VNode[];
|
8
|
+
content?: (props: DropdownDefaultSlotScope) => VNode[];
|
9
|
+
}> & {
|
10
|
+
toggle?: () => VNode[];
|
11
|
+
content?: (props: DropdownDefaultSlotScope) => VNode[];
|
14
12
|
};
|
15
13
|
refs: {
|
16
|
-
container:
|
14
|
+
container: unknown;
|
17
15
|
dropdown: ({
|
18
16
|
$: import('vue').ComponentInternalInstance;
|
19
17
|
$data: {};
|
@@ -73,16 +71,10 @@ declare function __VLS_template(): {
|
|
73
71
|
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
74
72
|
update: () => void;
|
75
73
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
76
|
-
$slots: {
|
77
|
-
default
|
78
|
-
|
79
|
-
|
80
|
-
top: string;
|
81
|
-
bottom: string;
|
82
|
-
isTop: boolean;
|
83
|
-
isLeft: boolean;
|
84
|
-
isRight: boolean;
|
85
|
-
}): any;
|
74
|
+
$slots: Readonly<{
|
75
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
76
|
+
}> & {
|
77
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
86
78
|
};
|
87
79
|
}) | null;
|
88
80
|
};
|
@@ -96,7 +88,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownMenuProps,
|
|
96
88
|
}, string, import('vue').PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
97
89
|
"onUpdate:rect"?: (() => any) | undefined;
|
98
90
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
99
|
-
container:
|
91
|
+
container: unknown;
|
100
92
|
dropdown: ({
|
101
93
|
$: import('vue').ComponentInternalInstance;
|
102
94
|
$data: {};
|
@@ -156,16 +148,10 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownMenuProps,
|
|
156
148
|
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
157
149
|
update: () => void;
|
158
150
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
159
|
-
$slots: {
|
160
|
-
default
|
161
|
-
|
162
|
-
|
163
|
-
top: string;
|
164
|
-
bottom: string;
|
165
|
-
isTop: boolean;
|
166
|
-
isLeft: boolean;
|
167
|
-
isRight: boolean;
|
168
|
-
}): any;
|
151
|
+
$slots: Readonly<{
|
152
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
153
|
+
}> & {
|
154
|
+
default: (props: DropdownDefaultSlotScope) => VNode[];
|
169
155
|
};
|
170
156
|
}) | null;
|
171
157
|
}, any>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;AAqEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAC,KAAK,KAAK,EAAmC,MAAM,KAAK,CAAA;AAuChE,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;iBA5GvC,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAD7C,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqJswjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EArCn7jB;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwByyjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAfl7jB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,13 +1,12 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, mergeProps, Teleport, createCommentVNode, normalizeStyle,
|
1
|
+
import { defineComponent, inject, useTemplateRef, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, mergeProps, Teleport, createCommentVNode, normalizeStyle, unref, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
|
3
|
+
import { wBaseZInfex } from '../Modal/models/injection.js';
|
3
4
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
6
|
__name: "WDropdownMenu",
|
6
7
|
props: {
|
7
8
|
isOpen: { type: Boolean },
|
8
9
|
teleport: { type: Boolean },
|
9
|
-
noZIndex: { type: Boolean },
|
10
|
-
zIndex: {},
|
11
10
|
parentElement: {},
|
12
11
|
maxHeight: {},
|
13
12
|
maxWidth: {},
|
@@ -17,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
16
|
},
|
18
17
|
emits: ["update:rect"],
|
19
18
|
setup(__props, { expose: __expose }) {
|
19
|
+
const baseZInfex = inject(wBaseZInfex, 0);
|
20
20
|
const containerRef = useTemplateRef("container");
|
21
21
|
const dropdownRef = useTemplateRef("dropdown");
|
22
22
|
const element = computed(() => containerRef.value instanceof HTMLElement ? containerRef.value : containerRef.value?.$el);
|
@@ -41,18 +41,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
"max-height": _ctx.maxHeight,
|
42
42
|
"max-width": _ctx.maxWidth,
|
43
43
|
"emit-update": _ctx.emitUpdate,
|
44
|
-
|
45
|
-
"z-[2]": !_ctx.teleport && !_ctx.noZIndex,
|
46
|
-
"z-30": _ctx.teleport && !_ctx.noZIndex
|
47
|
-
}),
|
48
|
-
style: normalizeStyle({ zIndex: _ctx.zIndex }),
|
44
|
+
style: normalizeStyle({ zIndex: _ctx.teleport ? unref(baseZInfex) + 2 : 2 }),
|
49
45
|
"onUpdate:rect": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:rect"))
|
50
46
|
}, {
|
51
47
|
default: withCtx((defaultScope) => [
|
52
48
|
renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps(defaultScope)))
|
53
49
|
]),
|
54
50
|
_: 3
|
55
|
-
}, 8, ["parent-element", "horizontal-align", "update-align", "max-height", "max-width", "emit-update", "
|
51
|
+
}, 8, ["parent-element", "horizontal-align", "update-align", "max-height", "max-width", "emit-update", "style"])) : createCommentVNode("", true)
|
56
52
|
], 8, ["disabled"]))
|
57
53
|
], 64);
|
58
54
|
};
|
@@ -2,8 +2,6 @@ import { DropdownProps } from '../Dropdown/types';
|
|
2
2
|
export interface DropdownMenuProps extends Omit<DropdownProps, 'parentElement'> {
|
3
3
|
isOpen: boolean;
|
4
4
|
teleport?: boolean;
|
5
|
-
noZIndex?: boolean;
|
6
|
-
zIndex?: number;
|
7
5
|
parentElement?: DropdownProps['parentElement'];
|
8
6
|
}
|
9
7
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;CAC/C"}
|
@@ -13,7 +13,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
13
13
|
skeletonLength?: number;
|
14
14
|
hidePageTitle?: boolean;
|
15
15
|
transition?: boolean;
|
16
|
-
scrollingElement?: Element | null;
|
17
16
|
headerTopIgnore?: boolean;
|
18
17
|
minHeight?: boolean;
|
19
18
|
lastChild?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAyEA;AAsKA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAWxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAiRO,mBAAmB,CAAC;;;;;;;;oBA/QZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;qBACV,OAAO;0BACF,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAA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ACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,QAAQ,EAAE,MAAM,CAAA;YAChB,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhCY,MAAM,cAAc,MAAM,UAgCzB;YACjB,kBAAkB,EAAE,MAAM,IAAI,CAAA;SAC/B,KAAK,IAAI;gBACF,CAAC,KAAK,EAAE;YAAC,WAAW,EAAE,WAAW,CAAA;SAAC,KAAK,IAAI;;;YA3C/C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;EA6OxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA5RzE,wBA4R4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -12,7 +12,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
skeletonLength: { default: void 0 },
|
13
13
|
hidePageTitle: { type: Boolean },
|
14
14
|
transition: { type: Boolean },
|
15
|
-
scrollingElement: { default: void 0 },
|
16
15
|
headerTopIgnore: { type: Boolean },
|
17
16
|
minHeight: { type: Boolean },
|
18
17
|
lastChild: { type: Boolean },
|
@@ -40,7 +39,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
39
|
});
|
41
40
|
return (_ctx, _cache) => {
|
42
41
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
|
43
|
-
"scrolling-element": _ctx.scrollingElement,
|
44
42
|
"init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0
|
45
43
|
}, {
|
46
44
|
header: withCtx((headerScope) => [
|
@@ -51,7 +49,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
49
|
ref: "infiniteListPages",
|
52
50
|
"query-params": _ctx.queryParams,
|
53
51
|
"use-query-fn": _ctx.useQueryFn,
|
54
|
-
"scrolling-element": _ctx.scrollingElement,
|
55
52
|
"skeleton-length": _ctx.skeletonLength,
|
56
53
|
"hide-page-title": _ctx.hidePageTitle,
|
57
54
|
transition: _ctx.transition,
|
@@ -99,10 +96,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
99
96
|
]),
|
100
97
|
key: "0"
|
101
98
|
} : void 0
|
102
|
-
]), 1032, ["query-params", "use-query-fn", "
|
99
|
+
]), 1032, ["query-params", "use-query-fn", "skeleton-length", "hide-page-title", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "class", "style", "value-getter"])
|
103
100
|
]),
|
104
101
|
_: 3
|
105
|
-
}, 8, ["
|
102
|
+
}, 8, ["init-is-intersecting"]);
|
106
103
|
};
|
107
104
|
}
|
108
105
|
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
parent?: boolean;
|
3
|
+
};
|
4
|
+
declare function __VLS_template(): {
|
5
|
+
attrs: Partial<{}>;
|
6
|
+
slots: {
|
7
|
+
default?(_: {}): any;
|
8
|
+
};
|
9
|
+
refs: {
|
10
|
+
element: HTMLDivElement;
|
11
|
+
};
|
12
|
+
rootEl: HTMLDivElement;
|
13
|
+
};
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
16
|
+
element: HTMLDivElement;
|
17
|
+
}, HTMLDivElement>;
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
19
|
+
export default _default;
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
21
|
+
new (): {
|
22
|
+
$slots: S;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
//# sourceMappingURL=WInfiniteListScrollingElement.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WInfiniteListScrollingElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteListScrollingElement.vue"],"names":[],"mappings":"AAKA;AA0BA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAWF,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { defineComponent, useTemplateRef, computed, provide, createElementBlock, openBlock, renderSlot } from 'vue';
|
2
|
+
import { wScrollingElement } from './models/injection.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = { ref: "element" };
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
|
+
__name: "WInfiniteListScrollingElement",
|
7
|
+
props: {
|
8
|
+
parent: { type: Boolean }
|
9
|
+
},
|
10
|
+
setup(__props) {
|
11
|
+
const props = __props;
|
12
|
+
const elementRef = useTemplateRef("element");
|
13
|
+
const elementValue = computed(() => props.parent ? elementRef.value?.parentElement ?? null : elementRef.value);
|
14
|
+
provide(wScrollingElement, elementValue);
|
15
|
+
return (_ctx, _cache) => {
|
16
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
17
|
+
renderSlot(_ctx.$slots, "default")
|
18
|
+
], 512);
|
19
|
+
};
|
20
|
+
}
|
21
|
+
});
|
22
|
+
|
23
|
+
export { _sfc_main as default };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AAwBA;AAoEA,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAC;AA2BF,iBAAS,cAAc;WA8CT,OAAO,IAA6B;;;;YAbtB,GAAG;;;;YACF,GAAG;;;;;;;EAiB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;OAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,17 +1,18 @@
|
|
1
|
-
import { defineComponent, watch, onUnmounted, createElementBlock, openBlock, Fragment, createElementVNode, renderSlot, normalizeClass, unref, normalizeProps, guardReactiveProps } from 'vue';
|
1
|
+
import { defineComponent, inject, watch, onUnmounted, createElementBlock, openBlock, Fragment, createElementVNode, renderSlot, normalizeClass, unref, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import { useHeader } from '../HeaderBar/use/useHeader.js';
|
3
|
+
import { wIsModal } from '../Modal/models/injection.js';
|
3
4
|
import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
|
4
5
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
7
|
__name: "WInfiniteListWrapper",
|
7
8
|
props: {
|
8
|
-
scrollingElement: {},
|
9
9
|
initIsIntersecting: { type: Boolean }
|
10
10
|
},
|
11
11
|
setup(__props) {
|
12
12
|
const props = __props;
|
13
|
+
const isModal = inject(wIsModal, false);
|
13
14
|
const { updateHeaderPadding, headerHeight: headerElementHeight } = useHeader();
|
14
|
-
const { indicator, header, headerTop, headerHeight, isIntersecting, updateHeader } = useInfiniteListHeader(headerElementHeight, props.
|
15
|
+
const { indicator, header, headerTop, headerHeight, isIntersecting, updateHeader } = useInfiniteListHeader(headerElementHeight, props.initIsIntersecting);
|
15
16
|
const updateHeaderHeight = () => {
|
16
17
|
if (!isIntersecting.value && headerHeight.value) {
|
17
18
|
updateHeader();
|
@@ -34,9 +35,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
35
|
createElementVNode("div", {
|
35
36
|
ref_key: "header",
|
36
37
|
ref: header,
|
37
|
-
class: normalizeClass(["
|
38
|
+
class: normalizeClass(["sticky print:hidden", {
|
38
39
|
"z-20": !unref(isIntersecting),
|
39
|
-
"z-[2]": unref(isIntersecting)
|
40
|
+
"z-[2]": unref(isIntersecting),
|
41
|
+
"-top--modal-header-height bg-default dark:bg-default-dark": unref(isModal),
|
42
|
+
"-top--header-height": !unref(isModal)
|
40
43
|
}])
|
41
44
|
}, [
|
42
45
|
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ updateHeaderHeight })))
|
@@ -2,7 +2,7 @@ import { defineComponent, onMounted, createElementBlock, openBlock, createVNode,
|
|
2
2
|
import _sfc_main$1 from '../../Button/WButton.vue.js';
|
3
3
|
import { SemanticType } from '../../../utils/SemanticType.js';
|
4
4
|
|
5
|
-
const _hoisted_1 = { class: "flex w-full items-center justify-center p-12" };
|
5
|
+
const _hoisted_1 = { class: "sm:-left--left-inner sm:-max-w--width-inner flex w-full items-center justify-center p-12 sm:sticky" };
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "InfiniteListButton",
|
8
8
|
emits: ["click", "check"],
|
@@ -14,7 +14,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
14
14
|
lastChild?: boolean;
|
15
15
|
pageClass?: string;
|
16
16
|
refetchInterval?: number | false;
|
17
|
-
scrollingElement?: Element | null;
|
18
17
|
queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
|
19
18
|
valueGetter: (data: Data) => Model;
|
20
19
|
} & Partial<{}>> & import('vue').PublicProps;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AA0FA;
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AA0FA;AA+UA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAMnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAA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AI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;gBACF,CAAC,KAAK,EAAE;YAAC,WAAW,EAAE,WAAW,CAAA;SAAC,KAAK,IAAI;;;YAxM/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAmXxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAnazE,wBAma4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, renderSlot, unref, Fragment, createElementVNode, createBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, toDisplayString } from 'vue';
|
1
|
+
import { defineComponent, useTemplateRef, ref, inject, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, renderSlot, unref, Fragment, createElementVNode, createBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$2 from '../../EmptyComponent/WEmptyComponent.vue.js';
|
3
3
|
import { ApiError } from '../../../utils/api.js';
|
4
4
|
import _sfc_main$1 from './InfiniteListPageTitle.vue.js';
|
5
|
+
import { wScrollingElement } from '../models/injection.js';
|
5
6
|
|
6
7
|
const _hoisted_1 = {
|
7
8
|
ref: "element",
|
8
9
|
class: "relative"
|
9
10
|
};
|
10
11
|
const _hoisted_2 = { class: "mt-[--w-list-gap,0] flex" };
|
11
|
-
const _hoisted_3 = { class: "text-accent sm
|
12
|
+
const _hoisted_3 = { class: "text-accent sm:-left--left-inner sm:-max-w--width-inner flex justify-center px-8 py-16 text-center font-normal sm:sticky" };
|
12
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
14
|
__name: "InfiniteListPage",
|
14
15
|
props: {
|
@@ -25,7 +26,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
26
|
lastChild: { type: Boolean },
|
26
27
|
pageClass: { default: void 0 },
|
27
28
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
28
|
-
scrollingElement: { default: void 0 },
|
29
29
|
queryOptions: { default: void 0 },
|
30
30
|
valueGetter: {}
|
31
31
|
},
|
@@ -37,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
37
|
const resultElement = ref([]);
|
38
38
|
const isIntersecting = ref(false);
|
39
39
|
const hasData = ref(false);
|
40
|
+
const scrollingElement = inject(wScrollingElement, null);
|
40
41
|
const { data, error, setData, refetch, isFetching } = props.useQueryFn(
|
41
42
|
toRef(props, "queryParams"),
|
42
43
|
{
|
@@ -122,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
123
|
intersectionObserver = new IntersectionObserver(
|
123
124
|
observerCb,
|
124
125
|
{
|
125
|
-
root:
|
126
|
+
root: scrollingElement?.value,
|
126
127
|
rootMargin: "0px",
|
127
128
|
threshold: 0
|
128
129
|
}
|
@@ -14,7 +14,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
14
14
|
hidePageTitle?: boolean;
|
15
15
|
transition?: boolean;
|
16
16
|
pageLength?: number;
|
17
|
-
scrollingElement?: Element | null;
|
18
17
|
headerTop?: number;
|
19
18
|
headerHeight?: number;
|
20
19
|
minHeight?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAoFA;AAsSA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAaxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA6eO,mBAAmB,CAAC;;;;;;;;oBA3eZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;qBACV,OAAO;qBACP,MAAM;oBACP,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;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