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

@opentiny/vue-renderless

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-renderless - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

28

calendar/index.js

@@ -5,3 +5,3 @@ import "../chunk-PKUHTIDK.js";

const getDays = (year, month) => [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
const getWeek = (year, month, day) => new Date(`${year}/${month}/${day}`).getDay();
const getWeek = (year, month, day) => (/* @__PURE__ */ new Date(`${year}/${month}/${day}`)).getDay();
const lastMonth = (year, month) => {

@@ -137,3 +137,3 @@ year = Number(year);

state.selectedTip = `You selected date: ${state.activeYear}-${state.activeMonth}-${day.value}`;
state.selectedDate = Number(new Date(`${state.activeYear}/${state.activeMonth}/${day.value}`));
state.selectedDate = Number(/* @__PURE__ */ new Date(`${state.activeYear}/${state.activeMonth}/${day.value}`));
}

@@ -167,5 +167,5 @@ };

};
const getTime = (state) => (day) => Number(new Date(`${state.activeYear}/${state.activeMonth}/${day}`));
const getTime = (state) => (day) => Number(/* @__PURE__ */ new Date(`${state.activeYear}/${state.activeMonth}/${day}`));
const getYearList = () => () => {
const date = new Date();
const date = /* @__PURE__ */ new Date();
const year = date.getFullYear();

@@ -179,3 +179,3 @@ const yesrs = [];

const isToday = (state) => (day) => {
const date = new Date();
const date = /* @__PURE__ */ new Date();
let year = Number(state.activeYear);

@@ -196,3 +196,3 @@ let month = Number(state.activeMonth);

const isThisMonth = (state) => (month) => {
const date = new Date();
const date = /* @__PURE__ */ new Date();
const year = Number(state.activeYear);

@@ -213,15 +213,15 @@ return date.getMonth() + 1 === month && date.getFullYear() === year;

const toToday = (state) => () => {
const year = new Date().getFullYear();
const month = new Date().getMonth() + 1;
const day = new Date().getDate();
const year = (/* @__PURE__ */ new Date()).getFullYear();
const month = (/* @__PURE__ */ new Date()).getMonth() + 1;
const day = (/* @__PURE__ */ new Date()).getDate();
state.activeMonth = month;
state.activeYear = year;
state.selectedTip = `You selected date: ${year}-${month}-${day}`;
state.selectedDate = Number(new Date(`${year}/${month}/${day}`));
state.selectedDate = Number(/* @__PURE__ */ new Date(`${year}/${month}/${day}`));
};
const getCurrentDate = () => {
const day = new Date().getDate();
const month = new Date().getMonth() + 1;
const year = new Date().getFullYear();
return Number(new Date(`${year}/${month}/${day}`));
const day = (/* @__PURE__ */ new Date()).getDate();
const month = (/* @__PURE__ */ new Date()).getMonth() + 1;
const year = (/* @__PURE__ */ new Date()).getFullYear();
return Number(/* @__PURE__ */ new Date(`${year}/${month}/${day}`));
};

@@ -228,0 +228,0 @@ export {

@@ -80,2 +80,3 @@ import {

trigger: "item",
// axis item
formatter(items) {

@@ -82,0 +83,0 @@ if (tooltipFormatter) {

@@ -163,3 +163,3 @@ import {

let options = { legend, xAxis, series, yAxis, tooltip };
return options;
return __spreadValues(__spreadValues({}, options), settings);
};

@@ -166,0 +166,0 @@ export {

@@ -45,3 +45,8 @@ import "../chunk-PKUHTIDK.js";

}
return /^\s*-?\d+(\.\d+)?\s*$/.test(num) || /^\s*-?\d+\.\s*$/.test(num) || /^\s*-?\.\d+\s*$/.test(num);
return (
// Normal type: 11.28
/^\s*-?\d+(\.\d+)?\s*$/.test(num) || // Pre-number: 1.
/^\s*-?\d+\.\s*$/.test(num) || // Post-number: .1
/^\s*-?\.\d+\s*$/.test(num)
);
}

@@ -136,2 +141,6 @@ function getNumberPrecision(number) {

}
/**
* Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
* This is used for add function only.
*/
alignDecimal(decimalLength) {

@@ -138,0 +147,0 @@ const string = `${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(decimalLength, "0")}`;

@@ -317,3 +317,3 @@ import "../chunk-PKUHTIDK.js";

typeof date === "boolean" && (isSunFirst = date);
isDate(date) || (date = new Date());
isDate(date) || (date = /* @__PURE__ */ new Date());
const day = date.getDay();

@@ -329,3 +329,3 @@ let dayOfMonth = date.getDate();

const TZRE = /(-|\+)(\d{2}):?(\d{2})$/;
const getLocalTimezone = () => 0 - new Date().getTimezoneOffset() / 60;
const getLocalTimezone = () => 0 - (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60;
const getStrTimezone = (value) => {

@@ -332,0 +332,0 @@ const localTimeZone = getLocalTimezone();

@@ -112,3 +112,3 @@ import "../../chunk-PKUHTIDK.js";

(date, value) => {
const now = new Date();
const now = /* @__PURE__ */ new Date();
const cent = Number(String(now.getFullYear()).substr(0, 2));

@@ -229,3 +229,3 @@ date.year = String(value > 68 ? cent - 1 : cent) + value;

let date;
const today = new Date();
const today = /* @__PURE__ */ new Date();
if (!isNull(dateInfo.timezoneOffset)) {

@@ -232,0 +232,0 @@ dateInfo.minute = Number(dateInfo.minute || 0) - Number(dateInfo.timezoneOffset);

@@ -27,3 +27,3 @@ import "../../chunk-PKUHTIDK.js";

setKey(storeKey) {
this._storeKey = this._prefix + (storeKey || Number(new Date()));
this._storeKey = this._prefix + (storeKey || Number(/* @__PURE__ */ new Date()));
}

@@ -58,3 +58,3 @@ getValue(isSort = true) {

newData[this._customField1] = 1;
newData[this._customField2] = Number(new Date());
newData[this._customField2] = Number(/* @__PURE__ */ new Date());
if (list.length < this._cacheNum) {

@@ -71,3 +71,3 @@ list.push(newData);

item[this._customField1] = (item[this._customField1] || 0) + 1;
item[this._customField2] = Number(new Date());
item[this._customField2] = Number(/* @__PURE__ */ new Date());
isChanged = true;

@@ -74,0 +74,0 @@ return true;

@@ -25,2 +25,3 @@ import "../../chunk-PKUHTIDK.js";

globalScroll: false,
// 是否打开全局滚动监听
modalFade: true,

@@ -27,0 +28,0 @@ modalStack: [],

@@ -10,3 +10,3 @@ !function() {

window.requestAnimationFrame = function(callback) {
const now = new Date().getTime();
const now = (/* @__PURE__ */ new Date()).getTime();
const timeToCall = Math.max(0, 16 - (now - lastTime));

@@ -13,0 +13,0 @@ const timeCallback = now + timeToCall;

@@ -12,6 +12,6 @@ import "../../chunk-PKUHTIDK.js";

const me = this;
const elapsed = new Date().valueOf() - lastExec;
const elapsed = (/* @__PURE__ */ new Date()).valueOf() - lastExec;
const args = arguments;
function exec() {
lastExec = new Date().valueOf();
lastExec = (/* @__PURE__ */ new Date()).valueOf();
callback.apply(me, args);

@@ -18,0 +18,0 @@ }

@@ -254,3 +254,3 @@ import "../chunk-PKUHTIDK.js";

};
const version = "3.6.1";
const version = "3.6.2";
const log = (data, type = "log") => {

@@ -257,0 +257,0 @@ uLog.logger[type](data);

@@ -25,3 +25,3 @@ import "../chunk-PKUHTIDK.js";

import * as common from "@opentiny/vue-renderless/common";
const version = "3.6.1";
const version = "3.6.2";
const Renderless = {

@@ -28,0 +28,0 @@ browser,

@@ -42,3 +42,3 @@ import "../chunk-PKUHTIDK.js";

},
minCardYear: new Date().getFullYear(),
minCardYear: (/* @__PURE__ */ new Date()).getFullYear(),
isCardNumberMasked: true,

@@ -50,3 +50,3 @@ mainCardNumber: props.formData.cardNumber,

formData: props.formData,
minCardMonth: computed(() => props.formData.cardYear === state.minCardYear ? new Date().getMonth() + 1 : 1)
minCardMonth: computed(() => props.formData.cardYear === state.minCardYear ? (/* @__PURE__ */ new Date()).getMonth() + 1 : 1)
});

@@ -53,0 +53,0 @@ return state;

@@ -51,3 +51,3 @@ import {

if (!isDate(state.value)) {
state.date = value ? new Date(value) : new Date();
state.date = value ? new Date(value) : /* @__PURE__ */ new Date();
}

@@ -206,3 +206,3 @@ };

const changeToNow = ({ api, state }) => () => {
const now = new Date();
const now = /* @__PURE__ */ new Date();
const timezone = state.timezone;

@@ -327,3 +327,3 @@ const isServiceTimezone = timezone.isServiceTimezone;

const isValidValue = ({ api, state }) => (value) => value && !isNaN(value) && (typeof state.disabledDate === "function" ? !state.disabledDate(value) : true) && api.checkDateWithinRange(value);
const getDefaultValue = (state) => () => state.defaultValue ? new Date(state.defaultValue) : new Date();
const getDefaultValue = (state) => () => state.defaultValue ? new Date(state.defaultValue) : /* @__PURE__ */ new Date();
const checkDateWithinRange = ({ state }) => (date) => state.selectableRange.length > 0 ? timeWithinRange(date, state.selectableRange, state.format || "HH:mm:ss") : true;

@@ -330,0 +330,0 @@ const selectTz = ({ emit, state }) => (tz) => {

@@ -78,3 +78,3 @@ import "../chunk-PKUHTIDK.js";

popperClass: "",
date: new Date(),
date: /* @__PURE__ */ new Date(),
value: "",

@@ -81,0 +81,0 @@ defaultValue: null,

@@ -21,3 +21,3 @@ import "../chunk-PKUHTIDK.js";

}
return [new Date(), nextDate(new Date(), 1)];
return [/* @__PURE__ */ new Date(), nextDate(/* @__PURE__ */ new Date(), 1)];
};

@@ -158,3 +158,3 @@ const getMinVisibleDate = ({ state, t }) => () => {

if (type === "min") {
state.minDate = modifyDate(state.minDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.minDate = modifyDate(state.minDate || /* @__PURE__ */ new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.leftDate = new Date(parsedValue);

@@ -165,3 +165,3 @@ if (!state.unlinkPanels) {

} else {
state.maxDate = modifyDate(state.maxDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.maxDate = modifyDate(state.maxDate || /* @__PURE__ */ new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.rightDate = new Date(parsedValue);

@@ -178,3 +178,3 @@ if (!state.unlinkPanels) {

if (type === "min") {
state.minDate = modifyDate(state.minDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.minDate = modifyDate(state.minDate || /* @__PURE__ */ new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
if (state.minDate > state.maxDate) {

@@ -184,3 +184,3 @@ state.maxDate = state.minDate;

} else {
state.maxDate = modifyDate(state.maxDate || new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
state.maxDate = modifyDate(state.maxDate || /* @__PURE__ */ new Date(), parsedValue.getFullYear(), parsedValue.getMonth(), parsedValue.getDate());
if (state.maxDate < state.minDate) {

@@ -259,3 +259,3 @@ state.minDate = state.maxDate;

const handleMinTimePick = ({ state }) => (value, visible, first) => {
state.minDate = state.minDate || new Date();
state.minDate = state.minDate || /* @__PURE__ */ new Date();
if (value) {

@@ -262,0 +262,0 @@ state.minDate = modifyTime(state.minDate, value.getHours(), value.getMinutes(), value.getSeconds());

@@ -77,4 +77,4 @@ import "../chunk-PKUHTIDK.js";

maxDate: "",
leftDate: new Date(),
rightDate: nextMonth(new Date()),
leftDate: /* @__PURE__ */ new Date(),
rightDate: nextMonth(/* @__PURE__ */ new Date()),
rangeState: { endDate: null, selecting: false, row: null, column: null },

@@ -81,0 +81,0 @@ showTime: false,

@@ -53,3 +53,3 @@ import "../chunk-PKUHTIDK.js";

const getCell = ({ state, props }) => (row, i, j) => {
const now = getDateTimestamp(new Date());
const now = getDateTimestamp(/* @__PURE__ */ new Date());
let cell = row[props.showWeekNumber ? j + 1 : j];

@@ -56,0 +56,0 @@ if (!cell) {

@@ -83,2 +83,3 @@ import "../chunk-PKUHTIDK.js";

docSize: 0,
// unit(B)
chunkSize: 0,

@@ -85,0 +86,0 @@ chunkBatchLimit: 20,

@@ -53,2 +53,3 @@ import "../chunk-PKUHTIDK.js";

canShowTip: false,
// 兼容 2.0 validation 的 required
validationRequired: false,

@@ -55,0 +56,0 @@ tooltip: null,

@@ -11,2 +11,3 @@ import "../chunk-PKUHTIDK.js";

support: computed(() => state.isEnabled),
// 如果不支持浏览器全屏,改用网页全屏
isPageOnly: computed(() => props.pageOnly || !sf.isEnabled),

@@ -13,0 +14,0 @@ wrapperStyle: computed(() => api2.computeWrapperStyle())

@@ -50,4 +50,7 @@ import "../../chunk-PKUHTIDK.js";

XLSX: null,
// xlsx 插件
XLSXX: null,
// xlsx-style 插件
FileSaver: null
// FileSaver 插件
},

@@ -54,0 +57,0 @@ table: {

import "../../../chunk-PKUHTIDK.js";
const helperGetHGSKeys = (property) => property ? property.splice && property.join ? property : String(property).split(".") : [];
const helperGetHGSKeys = (property) => (
// 以最快的方式判断数组,可忽略准确性
property ? property.splice && property.join ? property : String(property).split(".") : []
);
var helperGetHGSKeys_default = helperGetHGSKeys;

@@ -4,0 +7,0 @@ export {

@@ -118,3 +118,3 @@ import "../chunk-PKUHTIDK.js";

}
if ([KEY_CODE.Tab, KEY_CODE.Space, KEY_CODE.NumpadDecimal, KEY_CODE.NumpadComma].includes(keyCode) && value) {
if ([KEY_CODE.Space, KEY_CODE.NumpadDecimal, KEY_CODE.NumpadComma].includes(keyCode) && value) {
api.select({ index: nextIndex });

@@ -121,0 +121,0 @@ return false;

@@ -20,3 +20,3 @@ import "../chunk-PKUHTIDK.js";

state.current = hasMultiLocale ? state.current = locales.indexOf(current) === 0 ? locales[1] : locales[0] : lang;
const expires = new Date(new Date().getTime() + 36e5).toGMTString();
const expires = new Date((/* @__PURE__ */ new Date()).getTime() + 36e5).toGMTString();
const currLang = state.current.substring(0, 2) === "zh" ? "zh" : "en";

@@ -23,0 +23,0 @@ document.cookie = `lang=${currLang};expires=${expires};domain=${domain};path=/`;

@@ -9,3 +9,3 @@ import "../chunk-PKUHTIDK.js";

}
return [new Date(), nextMonth(new Date())];
return [/* @__PURE__ */ new Date(), nextMonth(/* @__PURE__ */ new Date())];
};

@@ -12,0 +12,0 @@ const watchValue = ({ state }) => (value) => {

@@ -28,4 +28,4 @@ import "../chunk-PKUHTIDK.js";

maxDate: "",
leftDate: new Date(),
rightDate: nextYear(new Date()),
leftDate: /* @__PURE__ */ new Date(),
rightDate: nextYear(/* @__PURE__ */ new Date()),
rangeState: { endDate: null, selecting: false, row: null, column: null },

@@ -32,0 +32,0 @@ shortcuts: "",

@@ -25,3 +25,3 @@ import "../chunk-PKUHTIDK.js";

const selectedDate = [];
const now = getMonthTimestamp(new Date());
const now = getMonthTimestamp(/* @__PURE__ */ new Date());
const { date, minDate, maxDate } = props;

@@ -156,3 +156,3 @@ for (let i = 0; i < 3; i++) {

const year = props.date.getFullYear();
const today = new Date();
const today = /* @__PURE__ */ new Date();
const month = cell.text;

@@ -159,0 +159,0 @@ const defaultValue = props.defaultValue ? Array.isArray(props.defaultValue) ? props.defaultValue : [props.defaultValue] : [];

{
"name": "@opentiny/vue-renderless",
"version": "3.6.1",
"version": "3.6.2",
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",

@@ -5,0 +5,0 @@ "homepage": "https://opentiny.design/tiny-vue",

@@ -369,3 +369,3 @@ import {

} else {
let now = new Date();
let now = /* @__PURE__ */ new Date();
if (now.getTime() < value.getTime()) {

@@ -394,3 +394,3 @@ state.userInput = [api.formatToString(value), api.formatToString(value)];

} else {
let now = new Date();
let now = /* @__PURE__ */ new Date();
if (now.getTime() < value.getTime()) {

@@ -397,0 +397,0 @@ state.userInput = [api.formatToString(now), api.formatToString(value)];

@@ -190,2 +190,3 @@ import {

showWarper: true,
// 显示下拉外层控制
selected: props.multiple ? [] : {},

@@ -192,0 +193,0 @@ softFocus: false,

@@ -262,7 +262,7 @@ import "../chunk-PKUHTIDK.js";

if (props.vertical) {
el.style.bottom = 0 + "%";
el.style.height = 0 + "%";
el.style.bottom = "0%";
el.style.height = "0%";
} else {
el.style.left = 0 + "%";
el.style.width = 0 + "%";
el.style.left = "0%";
el.style.width = "0%";
}

@@ -269,0 +269,0 @@ };

@@ -20,3 +20,3 @@ import "../chunk-PKUHTIDK.js";

} else {
state.minDate = value[1] ? new Date(api.minTimeOfDay(new Date(value[1])).getTime()) : new Date();
state.minDate = value[1] ? new Date(api.minTimeOfDay(new Date(value[1])).getTime()) : /* @__PURE__ */ new Date();
}

@@ -26,3 +26,3 @@ if (value[1]) {

} else {
state.maxDate = value[0] ? api.advanceTime(new Date(value[0]), 60 * 60 * 1e3) : api.advanceTime(new Date(), 60 * 60 * 1e3);
state.maxDate = value[0] ? api.advanceTime(new Date(value[0]), 60 * 60 * 1e3) : api.advanceTime(/* @__PURE__ */ new Date(), 60 * 60 * 1e3);
}

@@ -37,4 +37,4 @@ } else {

} else {
state.minDate = new Date();
state.maxDate = api.advanceTime(new Date(), 60 * 60 * 1e3);
state.minDate = /* @__PURE__ */ new Date();
state.maxDate = api.advanceTime(/* @__PURE__ */ new Date(), 60 * 60 * 1e3);
}

@@ -41,0 +41,0 @@ }

@@ -30,7 +30,7 @@ import "../chunk-PKUHTIDK.js";

value: [],
oldValue: [new Date(), new Date()],
oldValue: [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()],
selectionRange: [0, 2],
arrowControl: false,
maxDate: new Date(),
minDate: new Date(),
maxDate: /* @__PURE__ */ new Date(),
minDate: /* @__PURE__ */ new Date(),
showSeconds: computed(() => (state.format || "").includes("ss")),

@@ -37,0 +37,0 @@ offset: computed(() => state.showSeconds ? 11 : 8),

@@ -8,3 +8,3 @@ import "../chunk-PKUHTIDK.js";

} else if (!value) {
date = state.defaultValue ? new Date(state.defaultValue) : new Date();
date = state.defaultValue ? new Date(state.defaultValue) : /* @__PURE__ */ new Date();
}

@@ -11,0 +11,0 @@ state.date = date;

@@ -23,4 +23,4 @@ import "../chunk-PKUHTIDK.js";

defaultValue: null,
date: props.value || new Date(),
oldValue: new Date(),
date: props.value || /* @__PURE__ */ new Date(),
oldValue: /* @__PURE__ */ new Date(),
selectableRange: [],

@@ -71,3 +71,3 @@ selectionRange: [0, 2],

() => state.defaultValue,
(value) => !isDate(state.value) && (state.date = value ? new Date(value) : new Date())
(value) => !isDate(state.value) && (state.date = value ? new Date(value) : /* @__PURE__ */ new Date())
);

@@ -74,0 +74,0 @@ onMounted(() => {

@@ -50,2 +50,3 @@ import "../chunk-PKUHTIDK.js";

getMenuDataSync: props.getMenuDataSync || service.base.getMenuDataSync,
// deprecated v3.4.0废弃, v3.16.0移除;移除原因:如果是同步数据则和:data功能重复
getMenuDataAsync: props.getMenuDataAsync

@@ -52,0 +53,0 @@ };

@@ -319,3 +319,3 @@ import "../chunk-PKUHTIDK.js";

const users = toJson(window.localStorage.getItem(props.cacheKey)) || {};
const currDate = toDateStr(new Date(), "yyyyMMdd");
const currDate = toDateStr(/* @__PURE__ */ new Date(), "yyyyMMdd");
if (currDate !== users.t) {

@@ -353,2 +353,3 @@ users.t = currDate;

p: u[valueField],
// 增加一个主键
i: u[cacheFields.userId],

@@ -355,0 +356,0 @@ u: u[cacheFields.userCN],

@@ -13,3 +13,3 @@ import "../chunk-PKUHTIDK.js";

const style = {};
const today = new Date();
const today = /* @__PURE__ */ new Date();
style.disabled = typeof props.disabledDate === "function" ? datesInYear(year).every(props.disabledDate) : false;

@@ -16,0 +16,0 @@ const execDate = typeof props.value === "object" ? props.value : toDate(props.value);

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