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

@opentiny/vue-date-panel

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

Comparing version 3.9.0 to 3.10.0

73

lib/index.js

@@ -0,3 +1,17 @@

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];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
import { renderless, api } from "@opentiny/vue-renderless/date-panel/vue";
import { defineComponent, $prefix, directive, setup as _setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, directive, $props, setup as _setup } from "@opentiny/vue-common";
import { language } from "@opentiny/vue-locale";

@@ -81,5 +95,20 @@ import Clickoutside from "@opentiny/vue-renderless/common/deps/clickoutside";

},
props: {
emitter: Object
},
props: _extends({}, $props, {
emitter: Object,
step: {
type: Object,
default: function _default() {
return {
hour: 1,
minute: 1,
second: 1
};
}
},
showWeekNumber: {
type: Boolean,
default: false
},
formatWeeks: Function
}),
emits: ["pick", "select-change", "dodestroy"],

@@ -141,3 +170,3 @@ setup: function setup(props, context) {

};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
var _component_tiny_input = resolveComponent("tiny-input");

@@ -210,2 +239,3 @@ var _component_time_picker = resolveComponent("time-picker");

ref: "timepicker",
step: _ctx.step,
"time-arrow-control": _ctx.state.arrowControl,

@@ -215,7 +245,7 @@ show: _ctx.state.timePickerVisible,

onPick: _ctx.handleTimePick
}, null, 8, ["time-arrow-control", "show", "value", "onPick"])) : createCommentVNode("v-if", true)])), [[_directive_clickoutside, _ctx.handleTimePickClose]])])) : createCommentVNode("v-if", true), withDirectives(createElementVNode(
}, null, 8, ["step", "time-arrow-control", "show", "value", "onPick"])) : createCommentVNode("v-if", true)])), [[_directive_clickoutside, _ctx.handleTimePickClose]])])) : createCommentVNode("v-if", true), withDirectives(createElementVNode(
"div",
{
class: normalizeClass(["tiny-date-picker__header", {
"tiny-date-picker__header--bordered": _ctx.state.currentView === "year" || _ctx.state.currentView === "month"
"tiny-date-picker__header--bordered": ["month", "year", "years", "yearrange"].includes(_ctx.state.currentView)
}])

@@ -280,3 +310,5 @@ },

/* CLASS */
), [[vShow, _ctx.state.currentView !== "time"]]), createElementVNode("div", _hoisted_12, [withDirectives(createVNode(_component_date_table, {
), [[vShow, _ctx.state.currentView !== "time"]]), createElementVNode("div", _hoisted_12, [_ctx.state.currentView === "date" ? (openBlock(), createBlock(_component_date_table, {
key: 0,
ref: "dateTable",
onPick: _ctx.handleDatePick,

@@ -289,5 +321,8 @@ "selection-mode": _ctx.state.selectionMode,

"cell-class-name": _ctx.state.cellClassName,
"disabled-date": _ctx.state.disabledDate
}, null, 8, ["onPick", "selection-mode", "first-day-of-week", "value", "default-value", "date", "cell-class-name", "disabled-date"]), [[vShow, _ctx.state.currentView === "date"]]), withDirectives(createVNode(_component_year_table, {
onPick: _ctx.handleYearPick,
"disabled-date": _ctx.state.disabledDate,
"show-week-number": _ctx.showWeekNumber,
"format-weeks": _ctx.formatWeeks
}, null, 8, ["onPick", "selection-mode", "first-day-of-week", "value", "default-value", "date", "cell-class-name", "disabled-date", "show-week-number", "format-weeks"])) : createCommentVNode("v-if", true), ["year", "years", "yearrange"].includes(_ctx.state.currentView) ? (openBlock(), createBlock(_component_year_table, {
key: 1,
ref: "yearTable",
value: _ctx.state.value,

@@ -297,4 +332,8 @@ "default-value": _ctx.state.defaultValue ? new Date(_ctx.state.defaultValue) : null,

"disabled-date": _ctx.state.disabledDate,
"start-year": _ctx.state.startYear
}, null, 8, ["onPick", "value", "default-value", "date", "disabled-date", "start-year"]), [[vShow, _ctx.state.currentView === "year"]]), withDirectives(createVNode(_component_month_table, {
"selection-mode": _ctx.state.selectionMode,
"start-year": _ctx.state.startYear,
onPick: _ctx.handleYearPick
}, null, 8, ["value", "default-value", "date", "disabled-date", "selection-mode", "start-year", "onPick"])) : createCommentVNode("v-if", true), _ctx.state.currentView === "month" ? (openBlock(), createBlock(_component_month_table, {
key: 2,
ref: "monthTable",
onPick: _ctx.handleMonthPick,

@@ -305,3 +344,3 @@ value: _ctx.state.value,

"disabled-date": _ctx.state.disabledDate
}, null, 8, ["onPick", "value", "default-value", "date", "disabled-date"]), [[vShow, _ctx.state.currentView === "month"]])])])]), _ctx.state.isShowTz || _ctx.state.timezone.isServiceTimezone ? withDirectives((openBlock(), createElementBlock("div", _hoisted_13, [createVNode(_component_tiny_input, {
}, null, 8, ["onPick", "value", "default-value", "date", "disabled-date"])) : createCommentVNode("v-if", true)])])]), _ctx.state.isShowTz || _ctx.state.timezone.isServiceTimezone ? withDirectives((openBlock(), createElementBlock("div", _hoisted_13, [createVNode(_component_tiny_input, {
modelValue: _ctx.state.tz,

@@ -352,3 +391,3 @@ "onUpdate:modelValue": [_cache[9] || (_cache[9] = function($event) {

/* STABLE */
}, 8, ["modelValue", "duration"])])])), [[_directive_clickoutside, _ctx.handleTzPickClose]]) : createCommentVNode("v-if", true), withDirectives(createElementVNode(
}, 8, ["modelValue"])])])), [[_directive_clickoutside, _ctx.handleTzPickClose]]) : createCommentVNode("v-if", true), withDirectives(createElementVNode(
"div",

@@ -371,3 +410,3 @@ _hoisted_17,

/* STABLE */
}, 8, ["onClick"]), [[vShow, _ctx.state.selectionMode !== "dates"]]), createVNode(_component_tiny_button, {
}, 8, ["onClick"]), [[vShow, !["dates", "years"].includes(_ctx.state.selectionMode)]]), createVNode(_component_tiny_button, {
type: "primary",

@@ -400,3 +439,3 @@ size: "mini",

var DatePanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
var version = "3.9.0";
var version = "3.10.0";
DatePanel.install = function(Vue) {

@@ -403,0 +442,0 @@ Vue.component(DatePanel.name, DatePanel);

{
"name": "@opentiny/vue-date-panel",
"version": "3.9.0",
"version": "3.10.0",
"description": "",

@@ -8,12 +8,13 @@ "main": "./lib/index.js",

"sideEffects": false,
"type": "module",
"dependencies": {
"@opentiny/vue-common": "~3.9.0",
"@opentiny/vue-renderless": "~3.9.0",
"@opentiny/vue-input": "~3.9.0",
"@opentiny/vue-button": "~3.9.0",
"@opentiny/vue-locale": "~3.9.0",
"@opentiny/vue-time": "~3.9.0",
"@opentiny/vue-date-table": "~3.9.0",
"@opentiny/vue-year-table": "~3.9.0",
"@opentiny/vue-month-table": "~3.9.0"
"@opentiny/vue-common": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue-input": "~3.10.0",
"@opentiny/vue-button": "~3.10.0",
"@opentiny/vue-locale": "~3.10.0",
"@opentiny/vue-time": "~3.10.0",
"@opentiny/vue-date-table": "~3.10.0",
"@opentiny/vue-year-table": "~3.10.0",
"@opentiny/vue-month-table": "~3.10.0"
},

@@ -20,0 +21,0 @@ "license": "MIT",

@@ -1,3 +0,22 @@

declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{
declare const _default: import("@vue/runtime-core").DefineComponent<{
emitter: ObjectConstructor;
step: {
type: ObjectConstructor;
default(): {
hour: number;
minute: number;
second: number;
};
};
showWeekNumber: {
type: BooleanConstructor;
default: boolean;
};
formatWeeks: FunctionConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {

@@ -12,9 +31,32 @@ t: (this: any, path: any, options?: any) => any;

m: (...cssClasses: any[]) => string;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick" | "select-change" | "dodestroy")[], "pick" | "select-change" | "dodestroy", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("select-change" | "pick" | "dodestroy")[], "select-change" | "pick" | "dodestroy", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
emitter: ObjectConstructor;
step: {
type: ObjectConstructor;
default(): {
hour: number;
minute: number;
second: number;
};
};
showWeekNumber: {
type: BooleanConstructor;
default: boolean;
};
formatWeeks: FunctionConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>> & {
onPick?: ((...args: any[]) => any) | undefined;
onDodestroy?: ((...args: any[]) => any) | undefined;
"onSelect-change"?: ((...args: any[]) => any) | undefined;
onDodestroy?: ((...args: any[]) => any) | undefined;
}, {
tiny_mode_root: boolean;
step: Record<string, any>;
showWeekNumber: boolean;
}, {}>;
export default _sfc_main;
export default _default;
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