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

@opentiny/vue-date-table

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

Comparing version 3.14.0 to 3.15.0

8

lib/index.js

@@ -15,3 +15,3 @@ function _extends() {

}
import { $prefix, $props, $setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common";
import PcTemplate from "./pc.js";

@@ -32,3 +32,3 @@ import MobileFirstTemplate from "./mobile-first.js";

};
var DateTable = {
var DateTable = defineComponent({
name: $prefix + "DateTable",

@@ -83,4 +83,4 @@ componentName: "DateTable",

}
};
var version = "3.14.0";
});
var version = "3.15.0";
DateTable.install = function(Vue) {

@@ -87,0 +87,0 @@ Vue.component(DateTable.name, DateTable);

@@ -1,23 +0,10 @@

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-table/vue";
import { props, setup as _setup } from "@opentiny/vue-common";
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
import { renderless, api } from '@opentiny/vue-renderless/date-table/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } 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_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)

@@ -34,7 +21,7 @@ o = it;

}
function _unsupportedIterableToArray_tiny(o, minLen) {
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);

@@ -46,5 +33,5 @@ if (n === "Object" && o.constructor)

if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray_tiny(arr, len) {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)

@@ -58,3 +45,3 @@ len = arr.length;

var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];

@@ -66,2 +53,16 @@ target[key] = val;

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);
}
var common = {

@@ -87,6 +88,6 @@ "next-month": "text-color-text-disabled cursor-pointer group-hover:bg-inherit",

});
var _sfc_main = {
var _sfc_main = defineComponent({
props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
setup: function setup(props2, context) {
return _setup({
setup: function setup$1(props2, context) {
return setup({
props: props2,

@@ -99,3 +100,3 @@ context,

}
};
});
var _hoisted_1 = {

@@ -121,3 +122,3 @@ key: 0

},
[createElementVNode("tbody", null, [createElementVNode("tr", null, [$props.showWeekNumber ? (openBlock(), createElementBlock("th", _hoisted_1, [createElementVNode(
[createElementVNode("tbody", null, [createElementVNode("tr", null, [_ctx.showWeekNumber ? (openBlock(), createElementBlock("th", _hoisted_1, [createElementVNode(
"div",

@@ -133,5 +134,5 @@ {

null,
renderList(_ctx.state.weeks, function(week, key) {
renderList(_ctx.state.weeks, function(week, weekIdx) {
return openBlock(), createElementBlock("th", {
key
key: weekIdx
}, [createElementVNode(

@@ -152,3 +153,3 @@ "div",

null,
renderList(_ctx.state.rows, function(row, key) {
renderList(_ctx.state.rows, function(row, trIdx) {
return openBlock(), createElementBlock(

@@ -158,3 +159,3 @@ "tr",

"data-tag": "tiny-date-table__row",
key,
key: trIdx,
class: normalizeClass({

@@ -167,5 +168,5 @@ current: _ctx.isWeekActive(row[1])

null,
renderList(row, function(cell, key2) {
renderList(row, function(cell, tdIdx) {
return openBlock(), createElementBlock("td", {
key: key2,
key: tdIdx,
"data-tag": _ctx.getCellClasses(cell),

@@ -177,5 +178,5 @@ class: normalizeClass(_ctx.gcls("td"))

class: normalizeClass(_ctx.m(_ctx.gcls("cell"), _ctx.gcls(_ctx.getCssToken(cell, "cell-")), {
"rounded-l": key2 === 0
"rounded-l": tdIdx === 0
}, {
"rounded-r": key2 === 6
"rounded-r": tdIdx === 6
}))

@@ -206,4 +207,3 @@ },

var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
mobileFirst as default
};
export { mobileFirst as default };

@@ -1,9 +0,10 @@

import { renderless, api } from "@opentiny/vue-renderless/date-table/vue";
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
import { renderless, api } from '@opentiny/vue-renderless/date-table/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } 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_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)

@@ -20,7 +21,7 @@ o = it;

}
function _unsupportedIterableToArray_tiny(o, minLen) {
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);

@@ -32,5 +33,5 @@ if (n === "Object" && o.constructor)

if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray_tiny(arr, len) {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)

@@ -44,3 +45,3 @@ len = arr.length;

var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];

@@ -55,4 +56,4 @@ target[key] = val;

props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
setup: function setup(props2, context) {
return _setup({
setup: function setup$1(props2, context) {
return setup({
props: props2,

@@ -155,4 +156,3 @@ context,

var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
pc as default
};
export { pc as default };
{
"name": "@opentiny/vue-date-table",
"version": "3.14.0",
"version": "3.15.0",
"description": "",

@@ -10,5 +10,5 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-common": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0",
"@opentiny/vue-theme": "~3.14.0"
"@opentiny/vue-common": "~3.15.0",
"@opentiny/vue-renderless": "~3.15.0",
"@opentiny/vue-theme": "~3.15.0"
},

@@ -15,0 +15,0 @@ "license": "MIT",

@@ -1,44 +0,83 @@

declare const _default: {
name: string;
componentName: string;
props: {
cellClassName: {};
date: {};
defaultValue: {
validator(val: any): boolean;
declare const _default: import("@vue/runtime-core").DefineComponent<{
cellClassName: {};
date: {};
defaultValue: {
validator(val: unknown): boolean;
};
disabledDate: {};
firstDayOfWeek: {
default: number;
type: NumberConstructor;
validator: (val: unknown) => boolean;
};
maxDate: {};
minDate: {};
rangeState: {
default: () => {
endDate: null;
selecting: boolean;
};
disabledDate: {};
firstDayOfWeek: {
default: number;
type: NumberConstructor;
validator: (val: any) => boolean;
};
selectionMode: {
default: () => "day";
};
showWeekNumber: {
type: BooleanConstructor;
default: () => false;
};
value: {};
formatWeeks: FunctionConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
cellClassName: {};
date: {};
defaultValue: {
validator(val: unknown): boolean;
};
disabledDate: {};
firstDayOfWeek: {
default: number;
type: NumberConstructor;
validator: (val: unknown) => boolean;
};
maxDate: {};
minDate: {};
rangeState: {
default: () => {
endDate: null;
selecting: boolean;
};
maxDate: {};
minDate: {};
rangeState: {
default: () => {
endDate: null;
selecting: boolean;
};
};
selectionMode: {
default: () => string;
};
showWeekNumber: {
type: BooleanConstructor;
default: () => boolean;
};
value: {};
formatWeeks: FunctionConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
};
setup(props: any, context: any): () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
[key: string]: any;
}>;
};
selectionMode: {
default: () => "day";
};
showWeekNumber: {
type: BooleanConstructor;
default: () => false;
};
value: {};
formatWeeks: FunctionConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
tiny_mode_root: boolean;
showWeekNumber: boolean;
firstDayOfWeek: number;
rangeState: {
endDate: null;
selecting: boolean;
};
selectionMode: "day";
}, {}>;
export default _default;
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
value?: any;
date?: any;
value?: any;
tiny_mode?: any;

@@ -17,6 +17,6 @@ tiny_mode_root?: any;

disabledDate?: any;
cellClassName?: any;
firstDayOfWeek?: any;
rangeState?: any;
selectionMode?: any;
rangeState?: any;
firstDayOfWeek?: any;
cellClassName?: any;
}>, {

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

}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
value?: any;
date?: any;
value?: any;
tiny_mode?: any;

@@ -47,9 +47,9 @@ tiny_mode_root?: any;

disabledDate?: any;
cellClassName?: any;
firstDayOfWeek?: any;
rangeState?: any;
selectionMode?: any;
rangeState?: any;
firstDayOfWeek?: any;
cellClassName?: any;
}>>>, {
readonly value?: any;
readonly date?: any;
readonly value?: any;
readonly tiny_mode?: any;

@@ -68,7 +68,7 @@ readonly tiny_mode_root?: any;

readonly disabledDate?: any;
readonly cellClassName?: any;
readonly firstDayOfWeek?: any;
readonly rangeState?: any;
readonly selectionMode?: any;
readonly rangeState?: any;
readonly firstDayOfWeek?: any;
readonly cellClassName?: any;
}, {}>;
export default _default;
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
value?: any;
date?: any;
value?: any;
tiny_mode?: any;

@@ -17,6 +17,6 @@ tiny_mode_root?: any;

disabledDate?: any;
cellClassName?: any;
firstDayOfWeek?: any;
rangeState?: any;
selectionMode?: any;
rangeState?: any;
firstDayOfWeek?: any;
cellClassName?: any;
}>, {

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

}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("pick" | "changerange")[], "pick" | "changerange", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
value?: any;
date?: any;
value?: any;
tiny_mode?: any;

@@ -47,6 +47,6 @@ tiny_mode_root?: any;

disabledDate?: any;
cellClassName?: any;
firstDayOfWeek?: any;
rangeState?: any;
selectionMode?: any;
rangeState?: any;
firstDayOfWeek?: any;
cellClassName?: any;
}>>> & {

@@ -56,4 +56,4 @@ onPick?: ((...args: any[]) => any) | undefined;

}, {
readonly value?: any;
readonly date?: any;
readonly value?: any;
readonly tiny_mode?: any;

@@ -72,7 +72,7 @@ readonly tiny_mode_root?: any;

readonly disabledDate?: any;
readonly cellClassName?: any;
readonly firstDayOfWeek?: any;
readonly rangeState?: any;
readonly selectionMode?: any;
readonly rangeState?: any;
readonly firstDayOfWeek?: any;
readonly cellClassName?: any;
}, {}>;
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