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

@opentiny/vue-time-panel

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

Comparing version 3.6.0 to 3.6.1-alpha.0

LICENSE

0

index.d.ts

@@ -0,0 +0,0 @@ /**

166

lib/index.js

@@ -1,9 +0,53 @@

import { renderless, api } from '@opentiny/vue-renderless/time-panel/vue';
import { $prefix, setup } from '@opentiny/vue-common';
import Scrollbar from '@opentiny/vue-scrollbar';
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeStyle, normalizeClass, createVNode, createElementBlock, Fragment, renderList, toDisplayString, vShow } from 'vue';
import { renderless, api } from "@opentiny/vue-renderless/time-panel/vue";
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common";
import Scrollbar from "@opentiny/vue-scrollbar";
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeStyle, normalizeClass, createVNode, createElementBlock, Fragment, renderList, toDisplayString, vShow } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it)
return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)
o = it;
var i = 0;
return function() {
if (i >= o.length)
return { done: true };
return { done: false, value: o[i++] };
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor)
n = o.constructor.name;
if (n === "Map" || n === "Set")
return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)
len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++)
arr2[i] = arr[i];
return arr2;
}
var _export_sfc = function _export_sfc2(sfc, props) {
var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
target[key] = val;
}
return target;
};
var script = {
name: $prefix + 'TimePanel',
emits: ['dodestroy', 'pick'],
var _sfc_main = /* @__PURE__ */ defineComponent({
name: $prefix + "TimePanel",
emits: ["dodestroy", "pick"],
components: {

@@ -15,15 +59,14 @@ TinyScrollbar: Scrollbar

},
setup: function setup$1(props, context) {
return setup({
props: props,
context: context,
renderless: renderless,
api: api,
setup: function setup(props, context) {
return _setup({
props,
context,
renderless,
api,
mono: true
});
}
};
});
var _hoisted_1 = ["disabled", "onClick"];
function render(_ctx, _cache, $props, $setup, $data, $options) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_tiny_scrollbar = resolveComponent("tiny-scrollbar");

@@ -33,45 +76,60 @@ return openBlock(), createBlock(Transition, {

onBeforeEnter: _ctx.handleMenuEnter,
onAfterLeave: _ctx.emitDestroy
onAfterLeave: _ctx.emitDestroy,
persisted: ""
}, {
default: withCtx(function () {
return [withDirectives(createElementVNode("div", {
ref: "popper",
style: normalizeStyle({
width: _ctx.state.width + 'px'
}),
class: normalizeClass([_ctx.state.popperClass, "tiny-picker-panel tiny-time-select tiny-popper"])
}, [createVNode(_component_tiny_scrollbar, {
noresize: "",
"wrap-class": "tiny-picker-panel__content"
}, {
default: withCtx(function () {
return [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.items, function (item) {
return openBlock(), createElementBlock("div", {
class: normalizeClass(["tiny-time-select__item", {
selected: _ctx.state.value === item.value,
disabled: item.disabled,
default: item.value === _ctx.state.default
}]),
disabled: item.disabled,
key: item.value,
onClick: function onClick($event) {
return _ctx.handleClick(item);
}
}, toDisplayString(item.value), 11, _hoisted_1);
}), 128))];
}),
_: 1
})], 6), [[vShow, _ctx.state.visible]])];
default: withCtx(function() {
return [withDirectives(createElementVNode(
"div",
{
ref: "popper",
style: normalizeStyle({
width: _ctx.state.width + "px"
}),
class: normalizeClass([_ctx.state.popperClass, "tiny-picker-panel tiny-time-select tiny-popper"])
},
[createVNode(_component_tiny_scrollbar, {
noresize: "",
"wrap-class": "tiny-picker-panel__content"
}, {
default: withCtx(function() {
return [(openBlock(true), createElementBlock(
Fragment,
null,
renderList(_ctx.state.items, function(item) {
return openBlock(), createElementBlock("div", {
class: normalizeClass(["tiny-time-select__item", {
selected: _ctx.state.value === item.value,
disabled: item.disabled,
default: item.value === _ctx.state.default
}]),
disabled: item.disabled,
key: item.value,
onClick: function onClick($event) {
return _ctx.handleClick(item);
}
}, toDisplayString(item.value), 11, _hoisted_1);
}),
128
/* KEYED_FRAGMENT */
))];
}),
_: 1
/* STABLE */
})],
6
/* CLASS, STYLE */
), [[vShow, _ctx.state.visible]])];
}),
_: 1
/* STABLE */
}, 8, ["onBeforeEnter", "onAfterLeave"]);
}
script.render = render;
script.install = function (Vue) {
Vue.component(script.name, script);
var TimePanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
var version = "3.7.0";
TimePanel.install = function(Vue) {
Vue.component(TimePanel.name, TimePanel);
};
script.version = '3.6.0';
export { script as default };
TimePanel.version = version;
export {
TimePanel as default
};
{
"name": "@opentiny/vue-time-panel",
"version": "3.6.0",
"version": "3.6.1-alpha.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"lint": "eslint src/**/*{.js,.html,.vue} --quiet",
"build:ui2": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../build/build-ui.js",
"build:ui3": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../example/build/build-ui.js"
},
"main": "./lib/index.js",
"dependencies": {
"@opentiny/vue-renderless": "~3.6.0",
"@opentiny/vue-common": "~3.6.0",
"@opentiny/vue-scrollbar": "~3.6.0",
"@opentiny/vue-numeric": "~3.6.0",
"@opentiny/vue-icon": "~3.6.0",
"@opentiny/vue-theme": "~3.6.0",
"@opentiny/vue-theme-mobile": "~3.6.0"
"@opentiny/vue-renderless": "~3.6.1-alpha.0",
"@opentiny/vue-common": "~3.6.1-alpha.0",
"@opentiny/vue-scrollbar": "~3.6.1-alpha.0",
"@opentiny/vue-numeric": "~3.6.1-alpha.0"
},
"license": "MIT",
"types": "index.d.ts",
"sideEffects": false
"scripts": {
"build": "pnpm -w build:ui $npm_package_name",
"//postversion": "pnpm build"
}
}

@@ -1,5 +0,5 @@

declare const _default: import("vue").DefineComponent<{
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{
emitter: ObjectConstructor;
}, {
t: any;
t: (this: any, path: any, options?: any) => any;
vm: any;

@@ -10,8 +10,8 @@ f: (props: any, attrs?: {}) => {};

dp: (props: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick" | "dodestroy")[], "pick" | "dodestroy", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("dodestroy" | "pick")[], "dodestroy" | "pick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
emitter: ObjectConstructor;
}>> & {
onDodestroy?: ((...args: any[]) => any) | undefined;
onPick?: ((...args: any[]) => any) | undefined;
onDodestroy?: ((...args: any[]) => any) | undefined;
}, {}>;
export default _default;
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