jk-vue-comps 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{bignumber-B4Qn97r4.js → bignumber-DOAK2BS4.js} +2 -2
- package/dist/hooks/defineOxlintConfig.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +12 -12
- package/dist/utils/index.js +79 -80
- package/dist/utils/lodash.js +2 -2
- package/dist/utils/math.d.ts +1 -2
- package/dist/utils/math.js +5 -4
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/bignumber.js@11.1.
|
|
1
|
+
//#region node_modules/.pnpm/bignumber.js@11.1.4/node_modules/bignumber.js/dist/bignumber.mjs
|
|
2
2
|
var e = d(), t = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, n = Math.ceil, r = Math.floor, i = "[BigNumber Error] ", a = 0x5af3107a4000, o = 14, s = 9007199254740991, c = [
|
|
3
3
|
1,
|
|
4
4
|
10,
|
|
@@ -505,7 +505,7 @@ function d(e) {
|
|
|
505
505
|
if (p && (l = f, f = p, p = l, y -= l), f > 0 && y > 0) {
|
|
506
506
|
for (l = y % f || f, s = _.substr(0, l); l < y; l += f) s += m + _.substr(l, f);
|
|
507
507
|
p > 0 && (s += m + _.slice(l));
|
|
508
|
-
}
|
|
508
|
+
} else s = _;
|
|
509
509
|
v && (l = +n.fractionGroupSize, l && (v = v.replace(RegExp("\\d{" + l + "}\\B", "g"), "$&" + (n.fractionGroupSeparator || ""))), s += (n.decimalSeparator || "") + v);
|
|
510
510
|
}
|
|
511
511
|
return (n.prefix || "") + (r ? n.negativeSign || "" : c.s > 0 && n.positiveSign || "") + s + (n.suffix || "");
|
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare const JKVUEComps: {
|
|
|
62
62
|
isBool(val: any): val is boolean;
|
|
63
63
|
isBigNum(val: any): val is Utils.BigNumObj;
|
|
64
64
|
isNum(val: any): val is number;
|
|
65
|
-
|
|
65
|
+
isNan(val: any): boolean;
|
|
66
66
|
isInt(val: any): boolean;
|
|
67
67
|
isGreaterThan(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
|
|
68
68
|
isLessThan(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
|
|
@@ -90,7 +90,6 @@ declare const JKVUEComps: {
|
|
|
90
90
|
lt: typeof Utils.isLessThan;
|
|
91
91
|
lte: typeof Utils.isLessThanOrEqualTo;
|
|
92
92
|
eq: typeof Utils.isEqualTo;
|
|
93
|
-
isNan: typeof Utils.isNanValue;
|
|
94
93
|
propTypes: __DTS_DEFAULT_0__;
|
|
95
94
|
timeZoneOptions: Utils.TimeZoneItem[];
|
|
96
95
|
withInstall<T>(component: T, alias?: string): T & Plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { is as ee, isArray as e, isBoolean as te, isClient as ne, isDate as re, isDef as t, isEdgeBrowser as n, isElement as r, isEmail as i, isEmpty as a, isFunction as o, isHtmlStr as s, isInMobileBrowser as c, isIp as l, isMap as u, isNull as d, isNullAndUnDef as f, isNullOrUnDef as p, isNumber as m, isObject as h, isPromise as g, isPromiseLink as _, isRegExp as v, isServer as y, isString as b, isUnDef as x, isUrl as S, isValidPhoneNumber as C, isWindow as w, isZhLang as T } from "./utils/is.js";
|
|
2
|
-
import { BigNumber as E, DOWN as D, UP as O, add as k, divide as A, eq as j, formatRate as M, gt as N, gte as P, helper as F, isBigNum as I, isBool as L, isEqualTo as R, isGreaterThan as z, isGreaterThanOrEqualTo as B, isInt as V, isLessThan as H, isLessThanOrEqualTo as U, isNan as W,
|
|
3
|
-
import { propTypes as
|
|
4
|
-
import { timeZoneOptions as
|
|
5
|
-
import { withInstall as
|
|
6
|
-
import { deepMerge as
|
|
7
|
-
import { GoogleAuth as
|
|
8
|
-
import { TelegramAuth as
|
|
2
|
+
import { BigNumber as E, DOWN as D, UP as O, add as k, divide as A, eq as j, formatRate as M, gt as N, gte as P, helper as F, isBigNum as I, isBool as L, isEqualTo as R, isGreaterThan as z, isGreaterThanOrEqualTo as B, isInt as V, isLessThan as H, isLessThanOrEqualTo as U, isNan as W, isNum as G, lt as K, lte as q, multiply as J, power as Y, subtract as X, toBigNum as ie, toDecimalPlaces as ae, toInt as oe, toLocaleString as se, toNum as ce, toString as le, unFormatRate as ue } from "./utils/math.js";
|
|
3
|
+
import { propTypes as de } from "./utils/vuePropTypes.js";
|
|
4
|
+
import { timeZoneOptions as fe } from "./utils/timeZone.js";
|
|
5
|
+
import { withInstall as pe } from "./utils/withInstall.js";
|
|
6
|
+
import { deepMerge as me, desensitization as he, evalPro as ge, filterInputNum as _e, generateFilterInputNumFn as ve, getRouterParams as ye, getWebsiteUrl as be, removeWhitespace as xe, renderHtmlStr as Se, t as Z, toStyleObject as Ce, toStyleUnit as we } from "./utils/index.js";
|
|
7
|
+
import { GoogleAuth as Te, toGoogleAuth as Ee } from "./components/GoogleAuth.js";
|
|
8
|
+
import { TelegramAuth as De, getTelegramAuthUrlParams as Oe, toTelegramAuth as ke } from "./components/TelegramAuth.js";
|
|
9
9
|
import { t as Q } from "./components/index.js";
|
|
10
|
-
import { copyTextToClipboard as
|
|
11
|
-
import { useFormKeypressEnter as
|
|
12
|
-
import { useMemo as
|
|
10
|
+
import { copyTextToClipboard as Ae, useCopyToClipboard as je } from "./hooks/useCopyToClipboard.js";
|
|
11
|
+
import { useFormKeypressEnter as Me } from "./hooks/useFormKeypressEnter.js";
|
|
12
|
+
import { useMemo as Ne } from "./hooks/useMemo.js";
|
|
13
13
|
import { t as $ } from "./hooks/index.js";
|
|
14
14
|
//#region src/index.ts
|
|
15
|
-
var
|
|
15
|
+
var Pe = {
|
|
16
16
|
...Q,
|
|
17
17
|
...$,
|
|
18
18
|
...Z,
|
|
@@ -21,4 +21,4 @@ var Fe = {
|
|
|
21
21
|
Utils: Z
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
export { E as BigNumber, D as DOWN,
|
|
24
|
+
export { E as BigNumber, D as DOWN, Te as GoogleAuth, De as TelegramAuth, O as UP, k as add, Ae as copyTextToClipboard, me as deepMerge, Pe as default, he as desensitization, A as divide, j as eq, ge as evalPro, _e as filterInputNum, M as formatRate, ve as generateFilterInputNumFn, ye as getRouterParams, Oe as getTelegramAuthUrlParams, be as getWebsiteUrl, N as gt, P as gte, F as helper, ee as is, e as isArray, I as isBigNum, L as isBool, te as isBoolean, ne as isClient, re as isDate, t as isDef, n as isEdgeBrowser, r as isElement, i as isEmail, a as isEmpty, R as isEqualTo, o as isFunction, z as isGreaterThan, B as isGreaterThanOrEqualTo, s as isHtmlStr, c as isInMobileBrowser, V as isInt, l as isIp, H as isLessThan, U as isLessThanOrEqualTo, u as isMap, W as isNan, d as isNull, f as isNullAndUnDef, p as isNullOrUnDef, G as isNum, m as isNumber, h as isObject, g as isPromise, _ as isPromiseLink, v as isRegExp, y as isServer, b as isString, x as isUnDef, S as isUrl, C as isValidPhoneNumber, w as isWindow, T as isZhLang, K as lt, q as lte, J as multiply, Y as power, de as propTypes, xe as removeWhitespace, Se as renderHtmlStr, X as subtract, fe as timeZoneOptions, ie as toBigNum, ae as toDecimalPlaces, Ee as toGoogleAuth, oe as toInt, se as toLocaleString, ce as toNum, le as toString, Ce as toStyleObject, we as toStyleUnit, ke as toTelegramAuth, ue as unFormatRate, je as useCopyToClipboard, Me as useFormKeypressEnter, Ne as useMemo, pe as withInstall };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { t as e } from "../chunks/chunk-Dy4uBu1J.js";
|
|
2
|
-
import { is as t, isArray as n, isBoolean as r, isClient as i, isDate as a, isDef as o, isEdgeBrowser as s, isElement as c, isEmail as l, isEmpty as u, isFunction as d, isHtmlStr as f, isInMobileBrowser as ee, isIp as te, isMap as ne, isNull as re, isNullAndUnDef as
|
|
3
|
-
import { BigNumber as
|
|
4
|
-
import { propTypes as
|
|
5
|
-
import { timeZoneOptions as
|
|
6
|
-
import { withInstall as
|
|
7
|
-
import { createVNode as
|
|
2
|
+
import { is as t, isArray as n, isBoolean as r, isClient as i, isDate as a, isDef as o, isEdgeBrowser as s, isElement as c, isEmail as l, isEmpty as u, isFunction as d, isHtmlStr as f, isInMobileBrowser as ee, isIp as te, isMap as ne, isNull as re, isNullAndUnDef as ie, isNullOrUnDef as p, isNumber as m, isObject as h, isPromise as g, isPromiseLink as _, isRegExp as v, isServer as y, isString as b, isUnDef as x, isUrl as S, isValidPhoneNumber as C, isWindow as w, isZhLang as T } from "./is.js";
|
|
3
|
+
import { BigNumber as E, DOWN as D, UP as O, add as k, divide as A, eq as j, formatRate as M, gt as N, gte as P, helper as F, isBigNum as I, isBool as L, isEqualTo as R, isGreaterThan as z, isGreaterThanOrEqualTo as B, isInt as V, isLessThan as H, isLessThanOrEqualTo as U, isNan as W, isNum as G, lt as K, lte as q, multiply as J, power as Y, subtract as ae, toBigNum as oe, toDecimalPlaces as se, toInt as ce, toLocaleString as le, toNum as X, toString as ue, unFormatRate as de } from "./math.js";
|
|
4
|
+
import { propTypes as fe } from "./vuePropTypes.js";
|
|
5
|
+
import { timeZoneOptions as pe } from "./timeZone.js";
|
|
6
|
+
import { withInstall as me } from "./withInstall.js";
|
|
7
|
+
import { createVNode as he, nextTick as ge } from "vue";
|
|
8
8
|
//#region src/utils/index.ts
|
|
9
|
-
var
|
|
10
|
-
BigNumber: () =>
|
|
11
|
-
DOWN: () =>
|
|
12
|
-
UP: () =>
|
|
13
|
-
add: () =>
|
|
14
|
-
deepMerge: () =>
|
|
15
|
-
desensitization: () =>
|
|
16
|
-
divide: () =>
|
|
17
|
-
eq: () =>
|
|
18
|
-
evalPro: () =>
|
|
9
|
+
var _e = /* @__PURE__ */ e({
|
|
10
|
+
BigNumber: () => E,
|
|
11
|
+
DOWN: () => D,
|
|
12
|
+
UP: () => O,
|
|
13
|
+
add: () => k,
|
|
14
|
+
deepMerge: () => Q,
|
|
15
|
+
desensitization: () => $,
|
|
16
|
+
divide: () => A,
|
|
17
|
+
eq: () => j,
|
|
18
|
+
evalPro: () => ve,
|
|
19
19
|
filterInputNum: () => Z,
|
|
20
|
-
formatRate: () =>
|
|
21
|
-
generateFilterInputNumFn: () =>
|
|
20
|
+
formatRate: () => M,
|
|
21
|
+
generateFilterInputNumFn: () => ye,
|
|
22
22
|
getRouterParams: () => Se,
|
|
23
|
-
getWebsiteUrl: () =>
|
|
24
|
-
gt: () =>
|
|
25
|
-
gte: () =>
|
|
26
|
-
helper: () =>
|
|
23
|
+
getWebsiteUrl: () => xe,
|
|
24
|
+
gt: () => N,
|
|
25
|
+
gte: () => P,
|
|
26
|
+
helper: () => F,
|
|
27
27
|
is: () => t,
|
|
28
28
|
isArray: () => n,
|
|
29
|
-
isBigNum: () =>
|
|
30
|
-
isBool: () =>
|
|
29
|
+
isBigNum: () => I,
|
|
30
|
+
isBool: () => L,
|
|
31
31
|
isBoolean: () => r,
|
|
32
32
|
isClient: () => i,
|
|
33
33
|
isDate: () => a,
|
|
@@ -36,56 +36,55 @@ var ve = /* @__PURE__ */ e({
|
|
|
36
36
|
isElement: () => c,
|
|
37
37
|
isEmail: () => l,
|
|
38
38
|
isEmpty: () => u,
|
|
39
|
-
isEqualTo: () =>
|
|
39
|
+
isEqualTo: () => R,
|
|
40
40
|
isFunction: () => d,
|
|
41
|
-
isGreaterThan: () =>
|
|
42
|
-
isGreaterThanOrEqualTo: () =>
|
|
41
|
+
isGreaterThan: () => z,
|
|
42
|
+
isGreaterThanOrEqualTo: () => B,
|
|
43
43
|
isHtmlStr: () => f,
|
|
44
44
|
isInMobileBrowser: () => ee,
|
|
45
|
-
isInt: () =>
|
|
45
|
+
isInt: () => V,
|
|
46
46
|
isIp: () => te,
|
|
47
|
-
isLessThan: () =>
|
|
48
|
-
isLessThanOrEqualTo: () =>
|
|
47
|
+
isLessThan: () => H,
|
|
48
|
+
isLessThanOrEqualTo: () => U,
|
|
49
49
|
isMap: () => ne,
|
|
50
|
-
isNan: () =>
|
|
51
|
-
isNanValue: () => K,
|
|
50
|
+
isNan: () => W,
|
|
52
51
|
isNull: () => re,
|
|
53
|
-
isNullAndUnDef: () =>
|
|
54
|
-
isNullOrUnDef: () =>
|
|
55
|
-
isNum: () =>
|
|
56
|
-
isNumber: () =>
|
|
57
|
-
isObject: () =>
|
|
58
|
-
isPromise: () =>
|
|
59
|
-
isPromiseLink: () =>
|
|
60
|
-
isRegExp: () =>
|
|
61
|
-
isServer: () =>
|
|
62
|
-
isString: () =>
|
|
63
|
-
isUnDef: () =>
|
|
64
|
-
isUrl: () =>
|
|
65
|
-
isValidPhoneNumber: () =>
|
|
66
|
-
isWindow: () =>
|
|
67
|
-
isZhLang: () =>
|
|
68
|
-
lt: () =>
|
|
69
|
-
lte: () =>
|
|
70
|
-
multiply: () =>
|
|
71
|
-
power: () =>
|
|
72
|
-
propTypes: () =>
|
|
52
|
+
isNullAndUnDef: () => ie,
|
|
53
|
+
isNullOrUnDef: () => p,
|
|
54
|
+
isNum: () => G,
|
|
55
|
+
isNumber: () => m,
|
|
56
|
+
isObject: () => h,
|
|
57
|
+
isPromise: () => g,
|
|
58
|
+
isPromiseLink: () => _,
|
|
59
|
+
isRegExp: () => v,
|
|
60
|
+
isServer: () => y,
|
|
61
|
+
isString: () => b,
|
|
62
|
+
isUnDef: () => x,
|
|
63
|
+
isUrl: () => S,
|
|
64
|
+
isValidPhoneNumber: () => C,
|
|
65
|
+
isWindow: () => w,
|
|
66
|
+
isZhLang: () => T,
|
|
67
|
+
lt: () => K,
|
|
68
|
+
lte: () => q,
|
|
69
|
+
multiply: () => J,
|
|
70
|
+
power: () => Y,
|
|
71
|
+
propTypes: () => fe,
|
|
73
72
|
removeWhitespace: () => Ce,
|
|
74
|
-
renderHtmlStr: () =>
|
|
75
|
-
subtract: () =>
|
|
76
|
-
timeZoneOptions: () =>
|
|
77
|
-
toBigNum: () =>
|
|
78
|
-
toDecimalPlaces: () =>
|
|
79
|
-
toInt: () =>
|
|
80
|
-
toLocaleString: () =>
|
|
73
|
+
renderHtmlStr: () => be,
|
|
74
|
+
subtract: () => ae,
|
|
75
|
+
timeZoneOptions: () => pe,
|
|
76
|
+
toBigNum: () => oe,
|
|
77
|
+
toDecimalPlaces: () => se,
|
|
78
|
+
toInt: () => ce,
|
|
79
|
+
toLocaleString: () => le,
|
|
81
80
|
toNum: () => X,
|
|
82
|
-
toString: () =>
|
|
83
|
-
toStyleObject: () =>
|
|
84
|
-
toStyleUnit: () =>
|
|
85
|
-
unFormatRate: () =>
|
|
86
|
-
withInstall: () =>
|
|
81
|
+
toString: () => ue,
|
|
82
|
+
toStyleObject: () => Te,
|
|
83
|
+
toStyleUnit: () => we,
|
|
84
|
+
unFormatRate: () => de,
|
|
85
|
+
withInstall: () => me
|
|
87
86
|
});
|
|
88
|
-
function
|
|
87
|
+
function ve(e) {
|
|
89
88
|
try {
|
|
90
89
|
return Function(`'use strict'; return (${e});`)();
|
|
91
90
|
} catch {
|
|
@@ -103,18 +102,18 @@ function Z(e, t = "float", n = 6) {
|
|
|
103
102
|
}
|
|
104
103
|
return i;
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function ye(e, t, n, r = "int", i = 6) {
|
|
107
106
|
return (a) => {
|
|
108
107
|
let o = a?.target?.value ?? e[t], s = Z(o, r, i);
|
|
109
|
-
s !== o && (a?.target && Object.prototype.hasOwnProperty.call(a.target, "value") && (a.target.value = s),
|
|
108
|
+
s !== o && (a?.target && Object.prototype.hasOwnProperty.call(a.target, "value") && (a.target.value = s), ge(() => {
|
|
110
109
|
e[t] = s, a?.target?.focus?.();
|
|
111
110
|
})), n?.();
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
|
-
function
|
|
115
|
-
return !
|
|
113
|
+
function be(e) {
|
|
114
|
+
return !b(e) || !f(e) ? e : he("div", { innerHTML: e });
|
|
116
115
|
}
|
|
117
|
-
function
|
|
116
|
+
function xe() {
|
|
118
117
|
return window ? `${window.location.protocol}//${window.location.hostname}` : "";
|
|
119
118
|
}
|
|
120
119
|
function Se() {
|
|
@@ -125,23 +124,23 @@ function Se() {
|
|
|
125
124
|
return t;
|
|
126
125
|
}
|
|
127
126
|
function Ce(e) {
|
|
128
|
-
return
|
|
127
|
+
return b(e) ? e.replace(/\s+/g, "") : "";
|
|
129
128
|
}
|
|
130
|
-
function
|
|
129
|
+
function Q(e = {}, t = {}) {
|
|
131
130
|
let n;
|
|
132
|
-
for (n in t) e[n] =
|
|
131
|
+
for (n in t) e[n] = h(e[n]) ? Q(e[n], t[n]) : e[n] = t[n];
|
|
133
132
|
return e;
|
|
134
133
|
}
|
|
135
|
-
function
|
|
136
|
-
if (!
|
|
134
|
+
function $(e, t = 6, { showPrefix: n = !0, showSuffix: r = !0, middleStr: i = "****" } = {}) {
|
|
135
|
+
if (!b(e) && !m(e)) return e;
|
|
137
136
|
let a = String(e), o = a?.length ?? 0;
|
|
138
137
|
return !a || !o || t <= 0 ? a : `${n ? a.substring(0, t) : ""}${i}${r ? a.substring(o - t) : ""}`;
|
|
139
138
|
}
|
|
140
|
-
function
|
|
141
|
-
if (!(e === null || e === "" || e === void 0)) return
|
|
139
|
+
function we(e, t = "px") {
|
|
140
|
+
if (!(e === null || e === "" || e === void 0)) return W(e) ? String(e) : `${X(e)}${t}`;
|
|
142
141
|
}
|
|
143
|
-
function
|
|
144
|
-
return e ?
|
|
142
|
+
function Te(e) {
|
|
143
|
+
return e ? h(e) ? e : e.split(";").reduce((e, t) => {
|
|
145
144
|
let [n, r] = t.trim().split(":");
|
|
146
145
|
if (n) {
|
|
147
146
|
let t = n.trim().replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
@@ -151,4 +150,4 @@ function Ee(e) {
|
|
|
151
150
|
}, {}) : {};
|
|
152
151
|
}
|
|
153
152
|
//#endregion
|
|
154
|
-
export {
|
|
153
|
+
export { E as BigNumber, D as DOWN, O as UP, k as add, Q as deepMerge, $ as desensitization, A as divide, j as eq, ve as evalPro, Z as filterInputNum, M as formatRate, ye as generateFilterInputNumFn, Se as getRouterParams, xe as getWebsiteUrl, N as gt, P as gte, F as helper, t as is, n as isArray, I as isBigNum, L as isBool, r as isBoolean, i as isClient, a as isDate, o as isDef, s as isEdgeBrowser, c as isElement, l as isEmail, u as isEmpty, R as isEqualTo, d as isFunction, z as isGreaterThan, B as isGreaterThanOrEqualTo, f as isHtmlStr, ee as isInMobileBrowser, V as isInt, te as isIp, H as isLessThan, U as isLessThanOrEqualTo, ne as isMap, W as isNan, re as isNull, ie as isNullAndUnDef, p as isNullOrUnDef, G as isNum, m as isNumber, h as isObject, g as isPromise, _ as isPromiseLink, v as isRegExp, y as isServer, b as isString, x as isUnDef, S as isUrl, C as isValidPhoneNumber, w as isWindow, T as isZhLang, K as lt, q as lte, J as multiply, Y as power, fe as propTypes, Ce as removeWhitespace, be as renderHtmlStr, ae as subtract, _e as t, pe as timeZoneOptions, oe as toBigNum, se as toDecimalPlaces, ce as toInt, le as toLocaleString, X as toNum, ue as toString, Te as toStyleObject, we as toStyleUnit, de as unFormatRate, me as withInstall };
|
package/dist/utils/lodash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/bignumber-
|
|
1
|
+
import { t as e } from "../chunks/bignumber-DOAK2BS4.js";
|
|
2
2
|
//#region src/utils/lodash.ts
|
|
3
3
|
function t(e) {
|
|
4
4
|
if (typeof e != "object" || !e) return e;
|
|
@@ -95,7 +95,7 @@ function l(e) {
|
|
|
95
95
|
return e == null;
|
|
96
96
|
}
|
|
97
97
|
function u(e, t) {
|
|
98
|
-
if (e === t || typeof e == "number" && typeof t == "number" && isNaN(e) && isNaN(t)) return !0;
|
|
98
|
+
if (e === t || typeof e == "number" && typeof t == "number" && Number.isNaN(e) && Number.isNaN(t)) return !0;
|
|
99
99
|
if (typeof e != "object" || !e || typeof t != "object" || !t || Object.prototype.toString.call(e) !== Object.prototype.toString.call(t)) return !1;
|
|
100
100
|
if (e instanceof Date) return e.getTime() === t.getTime();
|
|
101
101
|
if (e instanceof RegExp) return e.toString() === t.toString();
|
package/dist/utils/math.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function isBigNum(val: any): val is BigNumObj;
|
|
|
13
13
|
/** 是否为数字 */
|
|
14
14
|
export declare function isNum(val: any): val is number;
|
|
15
15
|
/** 是否为NaN值(传入任意值转bignumber是否为NaN) */
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function isNan(val: any): boolean;
|
|
17
17
|
/** 是否为整数(传入任意值转bignumber是否为整数) */
|
|
18
18
|
export declare function isInt(val: any): boolean;
|
|
19
19
|
/** 是否大于
|
|
@@ -110,4 +110,3 @@ export declare const gte: typeof isGreaterThanOrEqualTo;
|
|
|
110
110
|
export declare const lt: typeof isLessThan;
|
|
111
111
|
export declare const lte: typeof isLessThanOrEqualTo;
|
|
112
112
|
export declare const eq: typeof isEqualTo;
|
|
113
|
-
export declare const isNan: typeof isNanValue;
|
package/dist/utils/math.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../chunks/bignumber-
|
|
1
|
+
import { t as e } from "../chunks/bignumber-DOAK2BS4.js";
|
|
2
2
|
//#region src/utils/math.ts
|
|
3
|
+
e.config({ STRICT: !1 });
|
|
3
4
|
var t = e.ROUND_DOWN, n = e.ROUND_UP, r = e;
|
|
4
5
|
function i(t) {
|
|
5
6
|
if (a(t)) return e(~~t);
|
|
@@ -18,7 +19,7 @@ function s(e) {
|
|
|
18
19
|
return typeof e == "number" && !c(e);
|
|
19
20
|
}
|
|
20
21
|
function c(t) {
|
|
21
|
-
return t == null || t == null ? !1 : e(t).isNaN();
|
|
22
|
+
return t == null || t == null ? !1 : typeof t == "string" && Number.isNaN(Number(t)) ? !0 : e(t).isNaN();
|
|
22
23
|
}
|
|
23
24
|
function l(t) {
|
|
24
25
|
return t == null || t == null ? !1 : e(t).isInteger();
|
|
@@ -82,6 +83,6 @@ function D(e) {
|
|
|
82
83
|
let t = i(e).div(100);
|
|
83
84
|
return u(t, 0) ? y(t, 4) : 0;
|
|
84
85
|
}
|
|
85
|
-
var O = u, k = p, A = d, j = m, M = f
|
|
86
|
+
var O = u, k = p, A = d, j = m, M = f;
|
|
86
87
|
//#endregion
|
|
87
|
-
export { r as BigNumber, t as DOWN, n as UP, x as add, w as divide, M as eq, E as formatRate, O as gt, k as gte, i as helper, o as isBigNum, a as isBool, f as isEqualTo, u as isGreaterThan, p as isGreaterThanOrEqualTo, l as isInt, d as isLessThan, m as isLessThanOrEqualTo,
|
|
88
|
+
export { r as BigNumber, t as DOWN, n as UP, x as add, w as divide, M as eq, E as formatRate, O as gt, k as gte, i as helper, o as isBigNum, a as isBool, f as isEqualTo, u as isGreaterThan, p as isGreaterThanOrEqualTo, l as isInt, d as isLessThan, m as isLessThanOrEqualTo, c as isNan, s as isNum, A as lt, j as lte, C as multiply, T as power, S as subtract, h as toBigNum, y as toDecimalPlaces, _ as toInt, b as toLocaleString, g as toNum, v as toString, D as unFormatRate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jk-vue-comps",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "jk-vue-comps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"lint:all": "pnpm lint:fmt && pnpm lint:ox"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"bignumber.js": "11.1.
|
|
34
|
-
"vue": "3.5.
|
|
35
|
-
"vue-types": "
|
|
33
|
+
"bignumber.js": "11.1.4",
|
|
34
|
+
"vue": "3.5.38",
|
|
35
|
+
"vue-types": "7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "22.18.0",
|
|
39
39
|
"@vitejs/plugin-vue": "6.0.7",
|
|
40
40
|
"@vitejs/plugin-vue-jsx": "5.1.5",
|
|
41
|
-
"oxfmt": "^0.
|
|
42
|
-
"oxlint": "^1.
|
|
41
|
+
"oxfmt": "^0.55.0",
|
|
42
|
+
"oxlint": "^1.70.0",
|
|
43
43
|
"typescript": "6.0.3",
|
|
44
44
|
"vite": "8.0.16",
|
|
45
45
|
"vite-plugin-dts": "^5.0.2",
|
|
46
46
|
"rimraf": "^6.1.3",
|
|
47
|
-
"vue-tsc": "^3.3.
|
|
47
|
+
"vue-tsc": "^3.3.5"
|
|
48
48
|
}
|
|
49
49
|
}
|