@opentiny/vue-time
Advanced tools
Comparing version 2.13.0 to 2.14.0
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import Time from './src/pc.vue'; | ||
import Time from './src/index'; | ||
export default Time; |
172
lib/index.js
@@ -1,66 +0,34 @@ | ||
import { renderless, api } from "@opentiny/vue-renderless/time/vue"; | ||
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common"; | ||
import TimeSpinner from "@opentiny/vue-time-spinner"; | ||
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); | ||
} | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import PcTemplate from "./pc.js"; | ||
import MobileFirstTemplate from "./mobile-first.js"; | ||
import "@opentiny/vue-theme/time-panel/index.css"; | ||
var __vue2_script = defineComponent({ | ||
var template = function template2(mode) { | ||
var _process$env; | ||
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null; | ||
if ("pc" === (tinyMode || mode)) { | ||
return PcTemplate; | ||
} | ||
if ("mobile-first" === (tinyMode || mode)) { | ||
return MobileFirstTemplate; | ||
} | ||
return PcTemplate; | ||
}; | ||
var Time = defineComponent({ | ||
name: $prefix + "Time", | ||
emits: ["dodestroy", "pick", "select-range"], | ||
components: { | ||
TimeSpinner | ||
}, | ||
props: { | ||
componentName: "Time", | ||
props: _extends({}, $props, { | ||
show: Boolean, | ||
@@ -80,90 +48,12 @@ timeArrowControl: 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("transition", { | ||
attrs: { | ||
"name": "tiny-zoom-in-top" | ||
}, | ||
on: { | ||
"after-leave": function afterLeave($event) { | ||
return _vm.$emit("dodestroy"); | ||
} | ||
} | ||
}, [_c("div", { | ||
directives: [{ | ||
name: "show", | ||
rawName: "v-show", | ||
value: _vm.state.visible, | ||
expression: "state.visible" | ||
}], | ||
staticClass: "tiny-time-panel tiny-popper", | ||
class: _vm.state.popperClass | ||
}, [_c("div", { | ||
staticClass: "tiny-time-panel__content", | ||
class: { | ||
"has-seconds": _vm.state.showSeconds | ||
} | ||
}, [_c("time-spinner", { | ||
ref: "spinner", | ||
attrs: { | ||
"step": _vm.step, | ||
"arrow-control": _vm.state.useArrow, | ||
"show-seconds": _vm.state.showSeconds, | ||
"am-pm-mode": _vm.state.amPmMode, | ||
"date": _vm.state.date | ||
}, | ||
on: { | ||
"change": _vm.handleChange, | ||
"select-range": _vm.setSelectionRange | ||
} | ||
})], 1), _c("div", { | ||
staticClass: "tiny-time-panel__footer" | ||
}, [_c("button", { | ||
staticClass: "tiny-time-panel__btn cancel", | ||
attrs: { | ||
"type": "button" | ||
}, | ||
on: { | ||
"click": _vm.handleCancel | ||
} | ||
}, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.cancel")) + " ")]), _c("button", { | ||
staticClass: "tiny-time-panel__btn", | ||
class: { | ||
confirm: !_vm.state.disabled | ||
}, | ||
attrs: { | ||
"type": "button" | ||
}, | ||
on: { | ||
"click": function click($event) { | ||
return _vm.handleConfirm(); | ||
} | ||
} | ||
}, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.confirm")) + " ")])])])]); | ||
}; | ||
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 Time = /* @__PURE__ */ function() { | ||
return __component__.exports; | ||
}(); | ||
var version = "2.13.0"; | ||
var version = "2.14.0"; | ||
Time.install = function(Vue) { | ||
@@ -170,0 +60,0 @@ Vue.component(Time.name, Time); |
{ | ||
"name": "@opentiny/vue-time", | ||
"version": "2.13.0", | ||
"version": "2.14.0", | ||
"description": "", | ||
@@ -10,6 +10,8 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.13.0", | ||
"@opentiny/vue-common": "~2.13.0", | ||
"@opentiny/vue-locale": "~2.13.0", | ||
"@opentiny/vue-time-spinner": "~2.13.0" | ||
"@opentiny/vue-renderless": "~3.14.0", | ||
"@opentiny/vue-common": "~2.14.0", | ||
"@opentiny/vue-locale": "~2.14.0", | ||
"@opentiny/vue-time-spinner": "~2.14.0", | ||
"@opentiny/vue-theme": "~3.14.0", | ||
"@opentiny/vue-button": "~2.14.0" | ||
}, | ||
@@ -16,0 +18,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
13212
9
391
6
2
1
+ Added@opentiny/vue-button@~2.14.0
+ Added@opentiny/vue-theme@~3.14.0
+ Added@opentiny/vue-button@2.14.0(transitive)
+ Added@opentiny/vue-common@2.14.0(transitive)
+ Added@opentiny/vue-icon@2.14.0(transitive)
+ Added@opentiny/vue-locale@2.14.0(transitive)
+ Added@opentiny/vue-renderless@3.14.1(transitive)
+ Added@opentiny/vue-scrollbar@2.14.0(transitive)
+ Added@opentiny/vue-theme@3.14.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.14.2(transitive)
+ Added@opentiny/vue-time-spinner@2.14.0(transitive)
+ Added@vue/composition-api@1.7.2(transitive)
+ Addedvue@2.6.14(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.13.1(transitive)
- Removed@opentiny/vue-locale@2.13.0(transitive)
- Removed@opentiny/vue-renderless@3.13.2(transitive)
- Removed@opentiny/vue-scrollbar@2.13.0(transitive)
- Removed@opentiny/vue-theme@3.13.3(transitive)
- Removed@opentiny/vue-theme-mobile@3.13.0(transitive)
- Removed@opentiny/vue-time-spinner@2.13.0(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.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.47(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-common@~2.14.0
Updated@opentiny/vue-locale@~2.14.0