eco-vue-js 0.3.81 → 0.3.83
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +3 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +4 -4
- package/package.json +1 -1
@@ -22,6 +22,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
22
22
|
skipScrollTarget?: boolean | undefined;
|
23
23
|
pageLength?: number | undefined;
|
24
24
|
excludeParams?: string[] | undefined;
|
25
|
+
maxPages?: number | undefined;
|
25
26
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
26
27
|
headerMargin?: number | undefined;
|
27
28
|
headerTopIgnore?: boolean | undefined;
|
@@ -87,6 +88,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
87
88
|
skipScrollTarget?: boolean | undefined;
|
88
89
|
pageLength?: number | undefined;
|
89
90
|
excludeParams?: string[] | undefined;
|
91
|
+
maxPages?: number | undefined;
|
90
92
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
91
93
|
headerMargin?: number | undefined;
|
92
94
|
headerTopIgnore?: boolean | undefined;
|
@@ -156,6 +158,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
156
158
|
skipScrollTarget?: boolean | undefined;
|
157
159
|
pageLength?: number | undefined;
|
158
160
|
excludeParams?: string[] | undefined;
|
161
|
+
maxPages?: number | undefined;
|
159
162
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
160
163
|
headerMargin?: number | undefined;
|
161
164
|
headerTopIgnore?: boolean | undefined;
|
@@ -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":"AA2DA;;;;;iBAqQiB,WAAW;;;;;;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA6BvC,GAAG;;;;oDA9LkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;;oDATL,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;YAvD3C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;OAwOuB,IAAI;;;;;qBA3B1D,WAAW;;;;;;;+BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;SA4ByB,IAAI;WACpE,GAAG;;;;oDA9LkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;;oDATL,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;YAvD3C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;;;;;;;yBA6M/B,WAAW;;;;;;;mCADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;aA4ByB,IAAI;eACpE,GAAG;;;;wDA9LkC,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;8BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;;wDATL,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;8BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;gBAvD3C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;gBAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;AAjDhD,wBA+R2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -26,7 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
26
|
unselectOnly: { type: Boolean },
|
27
27
|
reverseSelection: { type: Boolean },
|
28
28
|
allowPageSelection: { type: Boolean },
|
29
|
-
pageClass: { default: void 0 }
|
29
|
+
pageClass: { default: void 0 },
|
30
|
+
maxPages: { default: void 0 }
|
30
31
|
},
|
31
32
|
emits: ["update:page", "update:header-padding", "update:count", "update:selected"],
|
32
33
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -96,6 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
96
97
|
"reverse-selection": _ctx.reverseSelection,
|
97
98
|
"allow-page-selection": _ctx.allowPageSelection,
|
98
99
|
"page-class": _ctx.pageClass,
|
100
|
+
"max-pages": _ctx.maxPages,
|
99
101
|
"onUpdate:count": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:count", $event)),
|
100
102
|
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
|
101
103
|
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
@@ -114,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
114
116
|
})
|
115
117
|
]),
|
116
118
|
_: 3
|
117
|
-
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class"])
|
119
|
+
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages"])
|
118
120
|
], 64);
|
119
121
|
};
|
120
122
|
}
|
@@ -24,6 +24,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
24
24
|
headerTop?: number | undefined;
|
25
25
|
headerHeight?: number | undefined;
|
26
26
|
excludeParams?: string[] | undefined;
|
27
|
+
maxPages?: number | undefined;
|
27
28
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
28
29
|
attrs: any;
|
29
30
|
slots: Readonly<{
|
@@ -85,6 +86,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
85
86
|
headerTop?: number | undefined;
|
86
87
|
headerHeight?: number | undefined;
|
87
88
|
excludeParams?: string[] | undefined;
|
89
|
+
maxPages?: number | undefined;
|
88
90
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
89
91
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
90
92
|
resetPage: () => void;
|
@@ -150,6 +152,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
150
152
|
headerTop?: number | undefined;
|
151
153
|
headerHeight?: number | undefined;
|
152
154
|
excludeParams?: string[] | undefined;
|
155
|
+
maxPages?: number | undefined;
|
153
156
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
154
157
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
155
158
|
resetPage: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AAyEA;;;;;
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AAyEA;;;;;iBAubiB,WAAW;;;;;;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;WA6BvC,GAAG;;;;oDApRkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;;oDARgC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;OAsZuB,IAAI;;;;;qBA3B1D,WAAW;;;;;;;+BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;SA4ByB,IAAI;WACpE,GAAG;;;;oDApRkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;;oDARgC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;;;;;;;yBA2X/B,WAAW;;;;;;;mCADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;aA4ByB,IAAI;eACpE,GAAG;;;;wDApRkC,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;;wDARgC,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;gBA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;;;;AAjDhD,wBA6c2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -6,7 +6,6 @@ import _sfc_main$2 from './components/InfiniteListButton.vue.js';
|
|
6
6
|
import { isEqualObj } from '../../utils/utils.js';
|
7
7
|
import { getIsScrollDown } from './models/utils.js';
|
8
8
|
|
9
|
-
const MAX_PAGES = 5;
|
10
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
10
|
__name: "WInfiniteListPages",
|
12
11
|
props: {
|
@@ -31,7 +30,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
30
|
unselectOnly: { type: Boolean },
|
32
31
|
reverseSelection: { type: Boolean },
|
33
32
|
allowPageSelection: { type: Boolean },
|
34
|
-
pageClass: { default: void 0 }
|
33
|
+
pageClass: { default: void 0 },
|
34
|
+
maxPages: { default: 5 }
|
35
35
|
},
|
36
36
|
emits: ["update:page", "update:count", "update:selected"],
|
37
37
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
84
|
pages.value.push(nextPage.value);
|
85
85
|
if (!silent)
|
86
86
|
emit("update:page", nextPage.value);
|
87
|
-
if (pages.value.length <
|
87
|
+
if (pages.value.length < props.maxPages)
|
88
88
|
return;
|
89
89
|
const firstPage = pages.value.shift();
|
90
90
|
if (firstPage === void 0)
|
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
99
99
|
pages.value.unshift(previousPage.value);
|
100
100
|
if (!silent)
|
101
101
|
emit("update:page", previousPage.value);
|
102
|
-
if (pages.value.length <
|
102
|
+
if (pages.value.length < props.maxPages)
|
103
103
|
return;
|
104
104
|
const lastPage = pages.value.pop();
|
105
105
|
if (lastPage === void 0)
|