@opentiny/vue-pager-item
Advanced tools
Comparing version 2.6.7 to 2.7.0
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import PagerItem from './src/index.vue'; | ||
import PagerItem from './src/index'; | ||
export default PagerItem; |
179
lib/index.js
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17354
10
509
3
1
+ Added@opentiny/vue-common@2.7.0(transitive)
+ Added@opentiny/vue-icon@2.7.1(transitive)
+ Added@opentiny/vue-locale@2.7.0(transitive)
+ Added@opentiny/vue-renderless@3.9.3(transitive)
+ Added@opentiny/vue-theme@3.9.4(transitive)
+ Added@opentiny/vue-theme-mobile@3.9.0(transitive)
+ Addedtailwind-merge@1.14.0(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@opentiny/vue-common@2.6.7(transitive)
- Removed@opentiny/vue-icon@2.6.7(transitive)
- Removed@opentiny/vue-locale@2.6.7(transitive)
- Removed@opentiny/vue-renderless@3.6.8(transitive)
- Removed@opentiny/vue-theme@3.6.7(transitive)
- Removed@opentiny/vue-theme-mobile@3.6.6(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removed@vue/composition-api@1.2.4(transitive)
- Removedcsstype@3.1.3(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedvue@2.7.16(transitive)
Updated@opentiny/vue-icon@~2.7.0
Updated@opentiny/vue-locale@~2.7.0