Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-pager

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-pager - npm Package Compare versions

Comparing version 2.8.0 to 2.8.2

11

lib/index.js

@@ -20,8 +20,9 @@ function _extends() {

var template = function template2(mode) {
if ("mobile" === (process.env.TINY_MODE || mode))
return MobileTemplate;
else if ("mobile-first" === (process.env.TINY_MODE || mode))
if ("pc" === (process.env.TINY_MODE || mode)) {
return PcTemplate;
}
if ("mobile-first" === (process.env.TINY_MODE || mode)) {
return MobileFirstTemplate;
else
return PcTemplate;
}
return PcTemplate;
};

@@ -28,0 +29,0 @@ var Pager = defineComponent({

@@ -18,4 +18,5 @@ function _extends() {

import { t } from "@opentiny/vue-locale";
import { defineComponent, $prefix, h } from "@opentiny/vue-common";
import { iconChevronLeft, iconChevronRight, iconDeltaUp, iconChevronDown } from "@opentiny/vue-icon";
import { defineComponent, $prefix, setup as _setup, h } from "@opentiny/vue-common";
import { renderless, api } from "@opentiny/vue-renderless/pager/vue";
import { iconChevronLeft, iconChevronRight, iconTriangleDown } from "@opentiny/vue-icon";
import { emitEvent } from "@opentiny/vue-renderless/common/event";

@@ -135,2 +136,10 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {

},
setup: function setup(props, context) {
return _setup({
props,
context,
renderless,
api
});
},
render: function render() {

@@ -183,3 +192,3 @@ var h2 = arguments[0];

}),
slot: h2("slot", [typeof this.$slots.default === "function" ? this.$slots.default() : this.$slots.default]),
slot: h2("slot", [this.slots.default && this.slots.default()]),
total: h2("total")

@@ -281,4 +290,3 @@ };

var h2 = arguments[0];
var ChevronUp = iconDeltaUp();
var Down = iconChevronDown();
var TriangleDown = iconTriangleDown();
var scopedSlots = {

@@ -302,6 +310,4 @@ reference: function reference() {

"class": "tiny-pager__input-btn"
}, [_this.showSizes ? h2(ChevronUp, {
"class": "tiny-svg-size"
}) : h2(Down, {
"class": "tiny-svg-size"
}, [h2(TriangleDown, {
"class": ["tiny-svg-size", _this.showSizes ? "tiny-svg-size__reverse-180" : ""]
})])])]);

@@ -341,2 +347,6 @@ },

},
on: {
show: this.handleShowPopover,
hide: this.handleHidePopover
},
scopedSlots,

@@ -379,2 +389,10 @@ ref: "sizesList"

}
},
handleShowPopover: function handleShowPopover() {
if (this.$parent.disabled)
return this.showSizes = false;
this.showSizes = true;
},
handleHidePopover: function handleHidePopover() {
this.showSizes = false;
}

@@ -381,0 +399,0 @@ }

{
"name": "@opentiny/vue-pager",
"version": "2.8.0",
"version": "2.8.2",
"description": "",

@@ -8,7 +8,7 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.8.0",
"@opentiny/vue-icon": "~2.8.0",
"@opentiny/vue-popover": "~2.8.0",
"@opentiny/vue-locale": "~2.8.0",
"@opentiny/vue-pager-item": "~2.8.0"
"@opentiny/vue-renderless": "~3.8.2",
"@opentiny/vue-icon": "~2.8.2",
"@opentiny/vue-popover": "~2.8.2",
"@opentiny/vue-locale": "~2.8.2",
"@opentiny/vue-pager-item": "~2.8.2"
},

@@ -15,0 +15,0 @@ "license": "MIT",

@@ -1,159 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, {
accurateJumper: {
type: BooleanConstructor;
default: () => true;
};
appendToBody: {
type: BooleanConstructor;
default: () => true;
};
currentPage: {
type: NumberConstructor;
default: () => 1;
};
disabled: {
type: BooleanConstructor;
default: () => false;
};
hideOnSinglePage: BooleanConstructor;
isBeforePageChange: BooleanConstructor;
layout: StringConstructor;
mode: StringConstructor;
nextText: StringConstructor;
pageCount: NumberConstructor;
pageSize: {
type: NumberConstructor;
default: () => 10;
};
pageSizes: {
type: ArrayConstructor;
default: () => number[];
};
pagerCount: {
type: NumberConstructor;
validator: (value: unknown) => boolean;
default: () => 7;
};
popperAppendToBody: {
type: BooleanConstructor;
default: () => true;
};
showTotalLoading: {
type: BooleanConstructor;
default: () => false;
};
customTotal: {
type: (StringConstructor | BooleanConstructor)[];
default: () => false;
};
popperClass: StringConstructor;
prevText: StringConstructor;
total: NumberConstructor;
size: {
type: StringConstructor;
default: string;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {
size: string;
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
showTotalLoading: boolean;
customTotal: string | boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
size: string;
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
showTotalLoading: boolean;
customTotal: string | boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
size: string;
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
showTotalLoading: boolean;
customTotal: string | boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, {
size: string;
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
showTotalLoading: boolean;
customTotal: string | boolean;
}, true>);
declare const _default: any;
export default _default;

@@ -1,181 +0,2 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & {
internalCurrentPage: number;
internalPageSize: number;
lastEmittedPage: number;
userChangePageSize: boolean;
internalTotal: any;
}, {
canJumperGo(): boolean;
beforeSizeChangeHandler(params: any): void;
beforePagerChangeHandler(params: any): void;
beforeJumperChangeHandler(params: any): void;
copyEmit(...args: any[]): void;
beforeChangeHandler(val?: number): boolean;
handleCurrentChange(val: any): false | undefined;
prev(): void;
next(): void;
buildBeforePageChangeParam(param: any): any;
getValidCurrentPage(val: any): any;
emitChange(): void;
setTotal(val: any): void;
}, {
internalPageCount(): number | null;
internalLayout(): string;
}, {
accurateJumper: {
type: BooleanConstructor;
default: () => true;
};
appendToBody: {
type: BooleanConstructor;
default: () => true;
};
currentPage: {
type: NumberConstructor;
default: () => 1;
};
disabled: {
type: BooleanConstructor;
default: () => false;
};
hideOnSinglePage: BooleanConstructor;
isBeforePageChange: BooleanConstructor;
layout: StringConstructor;
mode: StringConstructor;
nextText: StringConstructor;
pageCount: NumberConstructor;
pageSize: {
type: NumberConstructor;
default: () => 10;
};
pageSizes: {
type: ArrayConstructor;
default: () => number[];
};
pagerCount: {
type: NumberConstructor;
validator: (value: unknown) => boolean;
default: () => 7;
};
popperAppendToBody: {
type: BooleanConstructor;
default: () => true;
};
popperClass: StringConstructor;
prevText: StringConstructor;
total: NumberConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, {
internalCurrentPage: number;
internalPageSize: number;
lastEmittedPage: number;
userChangePageSize: boolean;
internalTotal: any;
}, {
internalPageCount(): number | null;
internalLayout(): string;
}, {
canJumperGo(): boolean;
beforeSizeChangeHandler(params: any): void;
beforePagerChangeHandler(params: any): void;
beforeJumperChangeHandler(params: any): void;
copyEmit(...args: any[]): void;
beforeChangeHandler(val?: number): boolean;
handleCurrentChange(val: any): false | undefined;
prev(): void;
next(): void;
buildBeforePageChangeParam(param: any): any;
getValidCurrentPage(val: any): any;
emitChange(): void;
setTotal(val: any): void;
}, {
disabled: boolean;
tiny_mode_root: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, {
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
accurateJumper: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
}, true>);
declare const _sfc_main: any;
export default _sfc_main;

@@ -1,155 +0,2 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & {
internalCurrentPage: number;
internalPageSize: number;
lastEmittedPage: number;
userChangePageSize: boolean;
internalTotal: any;
}, {
beforeSizeChangeHandler(params: any): void;
beforePagerChangeHandler(params: any): void;
beforeJumperChangeHandler(params: any): void;
copyEmit(...args: any[]): void;
beforeChangeHandler(val?: number): boolean;
handleCurrentChange(val: any): false | undefined;
prev(): void;
next(): void;
buildBeforePageChangeParam(param: any): any;
getValidCurrentPage(val: any): any;
emitChange(): void;
setTotal(val: any): void;
}, {
internalPageCount(): number | null;
internalLayout(): string;
}, {
pageSize: {
type: NumberConstructor;
default: number;
};
total: NumberConstructor;
pageCount: NumberConstructor;
pagerCount: {
type: NumberConstructor;
validator(value: unknown): boolean;
default: number;
};
currentPage: {
type: NumberConstructor;
default: number;
};
layout: StringConstructor;
pageSizes: {
type: ArrayConstructor;
default(): number[];
};
prevText: StringConstructor;
nextText: StringConstructor;
hideOnSinglePage: BooleanConstructor;
mode: StringConstructor;
appendToBody: {
type: BooleanConstructor;
default: boolean;
};
isBeforePageChange: BooleanConstructor;
popperClass: StringConstructor;
popperAppendToBody: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
size: {
type: StringConstructor;
default: string;
};
}, {
size: string;
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
size: string;
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, {
internalCurrentPage: number;
internalPageSize: number;
lastEmittedPage: number;
userChangePageSize: boolean;
internalTotal: any;
}, {
internalPageCount(): number | null;
internalLayout(): string;
}, {
beforeSizeChangeHandler(params: any): void;
beforePagerChangeHandler(params: any): void;
beforeJumperChangeHandler(params: any): void;
copyEmit(...args: any[]): void;
beforeChangeHandler(val?: number): boolean;
handleCurrentChange(val: any): false | undefined;
prev(): void;
next(): void;
buildBeforePageChangeParam(param: any): any;
getValidCurrentPage(val: any): any;
emitChange(): void;
setTotal(val: any): void;
}, {
size: string;
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
hideOnSinglePage: boolean;
isBeforePageChange: boolean;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
} & {
popperClass?: string | undefined;
mode?: string | undefined;
layout?: string | undefined;
nextText?: string | undefined;
pageCount?: number | undefined;
prevText?: string | undefined;
total?: number | undefined;
}, {
size: string;
disabled: boolean;
popperAppendToBody: boolean;
appendToBody: boolean;
pageSize: number;
currentPage: number;
pageSizes: unknown[];
pagerCount: number;
}, true>);
declare const _sfc_main: any;
export default _sfc_main;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc