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

@opentiny/vue-time

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-time - npm Package Compare versions

Comparing version 2.13.0 to 2.14.0

lib/mobile-first.js

2

index.d.ts

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

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

@@ -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",

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