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

@opentiny/vue-pager-item

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-item - npm Package Compare versions

Comparing version 2.6.7 to 2.7.0

lib/mobile-first.js

2

index.d.ts

@@ -12,3 +12,3 @@ /**

*/
import PagerItem from './src/index.vue';
import PagerItem from './src/index';
export default PagerItem;

@@ -1,66 +0,31 @@

import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common";
import { renderless, api } from "@opentiny/vue-renderless/pager-item/vue";
import { iconPopup, iconDoubleLeft, iconDoubleRight } from "@opentiny/vue-icon";
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
if (render) {
options.render = render;
options.staticRenderFns = staticRenderFns;
options._compiled = true;
}
if (functionalTemplate) {
options.functional = true;
}
if (scopeId) {
options._scopeId = "data-v-" + scopeId;
}
var hook;
if (moduleIdentifier) {
hook = function hook2(context) {
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
context = __VUE_SSR_CONTEXT__;
function _extends() {
_extends = Object.assign ? Object.assign.bind() : function(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
if (injectStyles) {
injectStyles.call(this, context);
}
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
options._ssrRegister = hook;
} else if (injectStyles) {
hook = shadowMode ? function() {
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
} : injectStyles;
}
if (hook) {
if (options.functional) {
options._injectStyles = hook;
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return {
exports: scriptExports,
options
return target;
};
return _extends.apply(this, arguments);
}
var __vue2_script = defineComponent({
import { $prefix, $props, $setup } from "@opentiny/vue-common";
import { IconPopup, IconDoubleLeft, IconDoubleRight } from "@opentiny/vue-icon";
import PcTemplate from "./pc.js";
import MobileFirstTemplate from "./mobile-first.js";
var template = function template2(mode) {
if ("pc" === (process.env.TINY_MODE || mode)) {
return PcTemplate;
}
if ("mobile-first" === (process.env.TINY_MODE || mode)) {
return MobileFirstTemplate;
}
return PcTemplate;
};
var PagerItem = {
name: $prefix + "PagerItem",
components: {
IconPopup: iconPopup(),
IconDoubleLeft: iconDoubleLeft(),
IconDoubleRight: iconDoubleRight()
},
props: {
props: _extends({}, $props, {
disabled: {

@@ -75,103 +40,23 @@ type: Boolean,

type: Object,
default: function _default() {
return iconPopup();
}
default: IconPopup
},
doubleLeftIcon: {
type: Object,
default: function _default2() {
return iconDoubleLeft();
}
default: IconDoubleLeft
},
doubleRightIcon: {
type: Object,
default: function _default3() {
return iconDoubleRight();
}
default: IconDoubleRight
},
isBeforePageChange: Boolean
},
}),
setup: function setup(props, context) {
return _setup({
return $setup({
props,
context,
renderless,
api,
mono: true
template
});
}
});
var render = function render2() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c("div", {
staticClass: "tiny-pager__group tiny-unselect"
}, [_c("ul", {
staticClass: "tiny-pager__pages",
on: {
"click": _vm.onPagerClick
}
}, [_vm.pageCount > 0 ? _c("li", {
class: {
"is-active": _vm.currentPage === 1
},
domProps: {
"textContent": _vm._s("1")
}
}) : _vm._e(), _vm.state.showPrevMore ? _c("li", {
staticClass: "dot quickprev",
on: {
"mouseenter": function mouseenter($event) {
return _vm.onMouseenter("left");
},
"mouseleave": function mouseleave($event) {
_vm.state.quickprevIconClass = _vm.popupIcon;
}
}
}, [_c(_vm.state.quickprevIconClass, {
tag: "component"
})], 1) : _vm._e(), _vm._l(_vm.state.pagers, function(pager) {
return _c("li", {
key: pager,
class: {
"is-active": _vm.currentPage === pager
},
domProps: {
"textContent": _vm._s("" + pager)
}
});
}), _vm.state.showNextMore ? _c("li", {
staticClass: "dot quicknext",
on: {
"mouseenter": function mouseenter($event) {
return _vm.onMouseenter("right");
},
"mouseleave": function mouseleave($event) {
_vm.state.quicknextIconClass = _vm.popupIcon;
}
}
}, [_c(_vm.state.quicknextIconClass, {
tag: "component"
})], 1) : _vm._e(), _vm.pageCount > 1 ? _c("li", {
class: {
"is-active": _vm.pageCount === _vm.currentPage
},
domProps: {
"textContent": _vm._s("" + _vm.pageCount)
}
}) : _vm._e()], 2)]);
};
var staticRenderFns = [];
var __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
for (var o in __cssModules) {
this[o] = __cssModules[o];
}
}
var PagerItem = /* @__PURE__ */ function() {
return __component__.exports;
}();
var version = "3.7.0";
var version = "2.7.0";
PagerItem.install = function(Vue) {

@@ -178,0 +63,0 @@ Vue.component(PagerItem.name, PagerItem);

{
"name": "@opentiny/vue-pager-item",
"version": "2.6.7",
"version": "2.7.0",
"description": "",
"main": "./lib/index.js",
"module": "./lib/index.js",
"sideEffects": false,
"dependencies": {
"@opentiny/vue-renderless": "~3.6.6",
"@opentiny/vue-icon": "~2.6.7",
"@opentiny/vue-locale": "~2.6.7"
"@opentiny/vue-renderless": "~3.9.0",
"@opentiny/vue-icon": "~2.7.0",
"@opentiny/vue-locale": "~2.7.0"
},

@@ -11,0 +13,0 @@ "license": "MIT",

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