jk-vue-comps 0.2.3 → 0.2.5
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/index-C5FNYxxn.js +178 -0
- package/dist/components/GoogleAuth.d.ts +52 -13
- package/dist/components/GoogleAuth.js +26 -32
- package/dist/components/TelegramAuth.d.ts +46 -13
- package/dist/components/TelegramAuth.js +10 -16
- package/dist/index.d.ts +90 -6
- package/dist/index.js +2 -2
- package/dist/utils/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/index-CHtnAuFs.js +0 -174
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { nextTick as N, createVNode as h } from "vue";
|
|
2
|
+
import { isString as l, isHtmlStr as f, isObject as c, isNumber as p, is as v, isArray as S, isBoolean as P, isClient as b, isDate as y, isDef as O, isEdgeBrowser as T, isElement as U, isEmail as $, isEmpty as E, isFunction as I, isInMobileBrowser as B, isIp as L, isMap as x, isNull as D, isNullAndUnDef as F, isNullOrUnDef as M, isPromise as R, isPromiseLink as V, isRegExp as W, isServer as _, isUnDef as k, isUrl as q, isValidPhoneNumber as j, isWindow as z, isZhLang as H } from "../utils/is.js";
|
|
3
|
+
import { toNum as m, isNanValue as g, BigNumber as A, DOWN as C, UP as G, add as Z, divide as J, eq as K, formatRate as Q, gt as X, gte as Y, helper as tt, isBigNum as et, isBool as it, isEqualTo as rt, isGreaterThan as nt, isGreaterThanOrEqualTo as ot, isInt as st, isLessThan as at, isLessThanOrEqualTo as ut, isNan as lt, isNum as ct, lt as ft, lte as pt, multiply as mt, power as gt, subtract as dt, toBigNum as wt, toDecimalPlaces as Nt, toInt as ht, toLocaleString as vt, toString as St, unFormatRate as Pt } from "../utils/math.js";
|
|
4
|
+
import { propTypes as bt } from "../utils/vuePropTypes.js";
|
|
5
|
+
import { timeZoneOptions as yt } from "../utils/timeZone.js";
|
|
6
|
+
import { withInstall as Ot } from "../utils/withInstall.js";
|
|
7
|
+
function Tt(t) {
|
|
8
|
+
try {
|
|
9
|
+
return new Function(`'use strict'; return (${t});`)();
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function d(t, e = "float", r = 6) {
|
|
15
|
+
const o = e === "int";
|
|
16
|
+
let i = String(t).trim();
|
|
17
|
+
if (i = i.replace(/(^\s*)|(\s*$)/g, ""), i = i.replace(o ? /[^\d]/g : /[^\d.]/g, ""), i = i.replace(/^0+(?=\d)/, ""), !i)
|
|
18
|
+
return "";
|
|
19
|
+
if (o)
|
|
20
|
+
return i.replace(/^(0\.|\.)/, "");
|
|
21
|
+
if (i.startsWith("."))
|
|
22
|
+
return "0.";
|
|
23
|
+
if (i.includes(".")) {
|
|
24
|
+
const n = i.split("."), a = n[0];
|
|
25
|
+
let s = n[1];
|
|
26
|
+
s.length > r && (s = s.slice(0, r)), i = `${a}.${s}`;
|
|
27
|
+
}
|
|
28
|
+
return i;
|
|
29
|
+
}
|
|
30
|
+
function Ut(t, e, r, o = "int", i = 6) {
|
|
31
|
+
return (n) => {
|
|
32
|
+
const a = n?.target?.value ?? t[e], s = d(a, o, i);
|
|
33
|
+
s !== a && (n?.target && Object.prototype.hasOwnProperty.call(n.target, "value") && (n.target.value = s), N(() => {
|
|
34
|
+
t[e] = s, n?.target?.focus?.();
|
|
35
|
+
})), r?.();
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function $t(t) {
|
|
39
|
+
return !l(t) || !f(t) ? t : h("div", { innerHTML: t });
|
|
40
|
+
}
|
|
41
|
+
function Et() {
|
|
42
|
+
return window ? `${window.location.protocol}//${window.location.hostname}` : "";
|
|
43
|
+
}
|
|
44
|
+
function It() {
|
|
45
|
+
const t = new URLSearchParams(window.location.search);
|
|
46
|
+
if (!t.size)
|
|
47
|
+
return;
|
|
48
|
+
const e = {};
|
|
49
|
+
for (const [r, o] of t.entries())
|
|
50
|
+
e[r] = o;
|
|
51
|
+
return e;
|
|
52
|
+
}
|
|
53
|
+
function Bt(t) {
|
|
54
|
+
return l(t) ? t.replace(/\s+/g, "") : "";
|
|
55
|
+
}
|
|
56
|
+
function w(t = {}, e = {}) {
|
|
57
|
+
let r;
|
|
58
|
+
for (r in e)
|
|
59
|
+
t[r] = c(t[r]) ? w(t[r], e[r]) : t[r] = e[r];
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
function Lt(t, e = 6, { showPrefix: r = !0, showSuffix: o = !0, middleStr: i = "****" } = {}) {
|
|
63
|
+
if (!l(t) && !p(t))
|
|
64
|
+
return t;
|
|
65
|
+
const n = String(t), a = n?.length ?? 0;
|
|
66
|
+
if (!n || !a || e <= 0)
|
|
67
|
+
return n;
|
|
68
|
+
const s = r ? n.substring(0, e) : "", u = o ? n.substring(a - e) : "";
|
|
69
|
+
return `${s}${i}${u}`;
|
|
70
|
+
}
|
|
71
|
+
function xt(t, e = "px") {
|
|
72
|
+
if (!(t === null || t === "" || t === void 0))
|
|
73
|
+
return g(t) ? String(t) : `${m(t)}${e}`;
|
|
74
|
+
}
|
|
75
|
+
function Dt(t) {
|
|
76
|
+
return t ? c(t) ? t : t.split(";").reduce((e, r) => {
|
|
77
|
+
const [o, i] = r.trim().split(":");
|
|
78
|
+
if (o) {
|
|
79
|
+
const a = o.trim().replace(/-(\w)/g, (s, u) => u ? u.toUpperCase() : "");
|
|
80
|
+
e[a] = i.trim();
|
|
81
|
+
}
|
|
82
|
+
return e;
|
|
83
|
+
}, {}) : {};
|
|
84
|
+
}
|
|
85
|
+
const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
|
+
__proto__: null,
|
|
87
|
+
BigNumber: A,
|
|
88
|
+
DOWN: C,
|
|
89
|
+
UP: G,
|
|
90
|
+
add: Z,
|
|
91
|
+
deepMerge: w,
|
|
92
|
+
desensitization: Lt,
|
|
93
|
+
divide: J,
|
|
94
|
+
eq: K,
|
|
95
|
+
evalPro: Tt,
|
|
96
|
+
filterInputNum: d,
|
|
97
|
+
formatRate: Q,
|
|
98
|
+
generateFilterInputNumFn: Ut,
|
|
99
|
+
getRouterParams: It,
|
|
100
|
+
getWebsiteUrl: Et,
|
|
101
|
+
gt: X,
|
|
102
|
+
gte: Y,
|
|
103
|
+
helper: tt,
|
|
104
|
+
is: v,
|
|
105
|
+
isArray: S,
|
|
106
|
+
isBigNum: et,
|
|
107
|
+
isBool: it,
|
|
108
|
+
isBoolean: P,
|
|
109
|
+
isClient: b,
|
|
110
|
+
isDate: y,
|
|
111
|
+
isDef: O,
|
|
112
|
+
isEdgeBrowser: T,
|
|
113
|
+
isElement: U,
|
|
114
|
+
isEmail: $,
|
|
115
|
+
isEmpty: E,
|
|
116
|
+
isEqualTo: rt,
|
|
117
|
+
isFunction: I,
|
|
118
|
+
isGreaterThan: nt,
|
|
119
|
+
isGreaterThanOrEqualTo: ot,
|
|
120
|
+
isHtmlStr: f,
|
|
121
|
+
isInMobileBrowser: B,
|
|
122
|
+
isInt: st,
|
|
123
|
+
isIp: L,
|
|
124
|
+
isLessThan: at,
|
|
125
|
+
isLessThanOrEqualTo: ut,
|
|
126
|
+
isMap: x,
|
|
127
|
+
isNan: lt,
|
|
128
|
+
isNanValue: g,
|
|
129
|
+
isNull: D,
|
|
130
|
+
isNullAndUnDef: F,
|
|
131
|
+
isNullOrUnDef: M,
|
|
132
|
+
isNum: ct,
|
|
133
|
+
isNumber: p,
|
|
134
|
+
isObject: c,
|
|
135
|
+
isPromise: R,
|
|
136
|
+
isPromiseLink: V,
|
|
137
|
+
isRegExp: W,
|
|
138
|
+
isServer: _,
|
|
139
|
+
isString: l,
|
|
140
|
+
isUnDef: k,
|
|
141
|
+
isUrl: q,
|
|
142
|
+
isValidPhoneNumber: j,
|
|
143
|
+
isWindow: z,
|
|
144
|
+
isZhLang: H,
|
|
145
|
+
lt: ft,
|
|
146
|
+
lte: pt,
|
|
147
|
+
multiply: mt,
|
|
148
|
+
power: gt,
|
|
149
|
+
propTypes: bt,
|
|
150
|
+
removeWhitespace: Bt,
|
|
151
|
+
renderHtmlStr: $t,
|
|
152
|
+
subtract: dt,
|
|
153
|
+
timeZoneOptions: yt,
|
|
154
|
+
toBigNum: wt,
|
|
155
|
+
toDecimalPlaces: Nt,
|
|
156
|
+
toInt: ht,
|
|
157
|
+
toLocaleString: vt,
|
|
158
|
+
toNum: m,
|
|
159
|
+
toString: St,
|
|
160
|
+
toStyleObject: Dt,
|
|
161
|
+
toStyleUnit: xt,
|
|
162
|
+
unFormatRate: Pt,
|
|
163
|
+
withInstall: Ot
|
|
164
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
165
|
+
export {
|
|
166
|
+
kt as U,
|
|
167
|
+
Et as a,
|
|
168
|
+
It as b,
|
|
169
|
+
Bt as c,
|
|
170
|
+
w as d,
|
|
171
|
+
Tt as e,
|
|
172
|
+
d as f,
|
|
173
|
+
Ut as g,
|
|
174
|
+
Lt as h,
|
|
175
|
+
Dt as i,
|
|
176
|
+
$t as r,
|
|
177
|
+
xt as t
|
|
178
|
+
};
|
|
@@ -3,15 +3,9 @@ import type { PropType, ExtractPropTypes } from 'vue';
|
|
|
3
3
|
export declare function toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
4
4
|
type GetPopupContainerFn = () => HTMLElement | Element;
|
|
5
5
|
declare const _comp_props: {
|
|
6
|
-
clientId:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
redirectUri: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
};
|
|
12
|
-
defaultLoad: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
};
|
|
6
|
+
clientId: StringConstructor;
|
|
7
|
+
redirectUri: StringConstructor;
|
|
8
|
+
defaultLoad: BooleanConstructor;
|
|
15
9
|
getPopupContainer: {
|
|
16
10
|
type: PropType<GetPopupContainerFn>;
|
|
17
11
|
};
|
|
@@ -24,21 +18,66 @@ declare const _comp_props: {
|
|
|
24
18
|
type: PropType<(error: any) => void>;
|
|
25
19
|
};
|
|
26
20
|
};
|
|
27
|
-
export type GoogleAuthProps = ExtractPropTypes<typeof _comp_props
|
|
21
|
+
export type GoogleAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
|
|
28
22
|
/** 谷歌身份检查 */
|
|
29
23
|
export declare const GoogleAuth: {
|
|
30
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
24
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
25
|
+
clientId: StringConstructor;
|
|
26
|
+
redirectUri: StringConstructor;
|
|
27
|
+
defaultLoad: BooleanConstructor;
|
|
28
|
+
getPopupContainer: {
|
|
29
|
+
type: PropType<GetPopupContainerFn>;
|
|
30
|
+
};
|
|
31
|
+
onCallback: {
|
|
32
|
+
type: PropType<(data: {
|
|
33
|
+
code: string;
|
|
34
|
+
}) => void>;
|
|
35
|
+
};
|
|
36
|
+
onRejectCallback: {
|
|
37
|
+
type: PropType<(error: any) => void>;
|
|
38
|
+
};
|
|
39
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
31
40
|
P: {};
|
|
32
41
|
B: {};
|
|
33
42
|
D: {};
|
|
34
43
|
C: {};
|
|
35
44
|
M: {};
|
|
36
45
|
Defaults: {};
|
|
37
|
-
}, Readonly<
|
|
46
|
+
}, Readonly<Partial<ExtractPropTypes<{
|
|
47
|
+
clientId: StringConstructor;
|
|
48
|
+
redirectUri: StringConstructor;
|
|
49
|
+
defaultLoad: BooleanConstructor;
|
|
50
|
+
getPopupContainer: {
|
|
51
|
+
type: PropType<GetPopupContainerFn>;
|
|
52
|
+
};
|
|
53
|
+
onCallback: {
|
|
54
|
+
type: PropType<(data: {
|
|
55
|
+
code: string;
|
|
56
|
+
}) => void>;
|
|
57
|
+
};
|
|
58
|
+
onRejectCallback: {
|
|
59
|
+
type: PropType<(error: any) => void>;
|
|
60
|
+
};
|
|
61
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
38
62
|
__isFragment?: never;
|
|
39
63
|
__isTeleport?: never;
|
|
40
64
|
__isSuspense?: never;
|
|
41
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
65
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
66
|
+
clientId: StringConstructor;
|
|
67
|
+
redirectUri: StringConstructor;
|
|
68
|
+
defaultLoad: BooleanConstructor;
|
|
69
|
+
getPopupContainer: {
|
|
70
|
+
type: PropType<GetPopupContainerFn>;
|
|
71
|
+
};
|
|
72
|
+
onCallback: {
|
|
73
|
+
type: PropType<(data: {
|
|
74
|
+
code: string;
|
|
75
|
+
}) => void>;
|
|
76
|
+
};
|
|
77
|
+
onRejectCallback: {
|
|
78
|
+
type: PropType<(error: any) => void>;
|
|
79
|
+
};
|
|
80
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
42
81
|
readonly toGoogleAuth: typeof toGoogleAuth;
|
|
43
82
|
} & import("vue").Plugin;
|
|
44
83
|
export default GoogleAuth;
|
|
@@ -3,21 +3,15 @@ import { isInMobileBrowser as i } from "../utils/is.js";
|
|
|
3
3
|
import "../utils/math.js";
|
|
4
4
|
import "../utils/vuePropTypes.js";
|
|
5
5
|
import { withInstall as h } from "../utils/withInstall.js";
|
|
6
|
-
function d(
|
|
7
|
-
if (!
|
|
8
|
-
const u = encodeURIComponent(r), l = encodeURIComponent("email profile"), n = encodeURIComponent(
|
|
6
|
+
function d(o, r) {
|
|
7
|
+
if (!o || !r) return;
|
|
8
|
+
const u = encodeURIComponent(r), l = encodeURIComponent("email profile"), n = encodeURIComponent(o), a = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${u}&scope=${l}&client_id=${n}`;
|
|
9
9
|
window.location.href = a;
|
|
10
10
|
}
|
|
11
11
|
const _ = {
|
|
12
|
-
clientId:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
redirectUri: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
defaultLoad: {
|
|
19
|
-
type: Boolean
|
|
20
|
-
},
|
|
12
|
+
clientId: String,
|
|
13
|
+
redirectUri: String,
|
|
14
|
+
defaultLoad: Boolean,
|
|
21
15
|
getPopupContainer: {
|
|
22
16
|
type: Function
|
|
23
17
|
},
|
|
@@ -32,67 +26,67 @@ const _ = {
|
|
|
32
26
|
toGoogleAuth: d,
|
|
33
27
|
props: _,
|
|
34
28
|
slots: Object,
|
|
35
|
-
setup(
|
|
29
|
+
setup(o, {
|
|
36
30
|
slots: r,
|
|
37
31
|
expose: u
|
|
38
32
|
}) {
|
|
39
33
|
const l = m(() => ({
|
|
40
|
-
id:
|
|
41
|
-
uri:
|
|
34
|
+
id: o.clientId,
|
|
35
|
+
uri: o.redirectUri
|
|
42
36
|
}));
|
|
43
37
|
function n() {
|
|
44
38
|
return window?.google?.accounts?.oauth2?.initCodeClient;
|
|
45
39
|
}
|
|
46
40
|
function a() {
|
|
47
|
-
return
|
|
41
|
+
return o.getPopupContainer?.() || document.body;
|
|
48
42
|
}
|
|
49
|
-
function
|
|
50
|
-
return new Promise((
|
|
43
|
+
function s() {
|
|
44
|
+
return new Promise((t) => {
|
|
51
45
|
if (!document) {
|
|
52
|
-
|
|
46
|
+
t(!1);
|
|
53
47
|
return;
|
|
54
48
|
}
|
|
55
49
|
if (i() || n()) {
|
|
56
|
-
|
|
50
|
+
t(!0);
|
|
57
51
|
return;
|
|
58
52
|
}
|
|
59
53
|
const e = document.createElement("script");
|
|
60
54
|
e.async = !0, e.defer = !0, e.src = "https://accounts.google.com/gsi/client", a()?.appendChild?.(e), e.onload = () => {
|
|
61
|
-
|
|
55
|
+
t(!!n());
|
|
62
56
|
}, e.onerror = () => {
|
|
63
|
-
e.remove(),
|
|
57
|
+
e.remove(), t(!1);
|
|
64
58
|
};
|
|
65
59
|
});
|
|
66
60
|
}
|
|
67
|
-
async function
|
|
61
|
+
async function p() {
|
|
68
62
|
const {
|
|
69
|
-
id:
|
|
63
|
+
id: t,
|
|
70
64
|
uri: e
|
|
71
65
|
} = l.value;
|
|
72
|
-
if (!i() && !await
|
|
73
|
-
d(
|
|
66
|
+
if (!i() && !await s()) {
|
|
67
|
+
d(t || "", e || "");
|
|
74
68
|
return;
|
|
75
69
|
}
|
|
76
70
|
if (i() || !n()) {
|
|
77
|
-
d(
|
|
71
|
+
d(t || "", e || "");
|
|
78
72
|
return;
|
|
79
73
|
}
|
|
80
74
|
n()?.({
|
|
81
|
-
client_id:
|
|
75
|
+
client_id: t,
|
|
82
76
|
scope: "email profile",
|
|
83
77
|
redirect_uri: e,
|
|
84
78
|
ux_mode: i() ? "redirect" : "popup",
|
|
85
79
|
callback(c) {
|
|
86
|
-
c?.error ?
|
|
80
|
+
c?.error ? o.onRejectCallback?.(c.error) : o.onCallback?.(c);
|
|
87
81
|
}
|
|
88
82
|
})?.requestCode?.();
|
|
89
83
|
}
|
|
90
84
|
return g(() => {
|
|
91
|
-
|
|
85
|
+
o.defaultLoad && s();
|
|
92
86
|
}), u({
|
|
93
|
-
startCheck:
|
|
87
|
+
startCheck: p
|
|
94
88
|
}), () => C("div", null, [r.default?.({
|
|
95
|
-
startCheck:
|
|
89
|
+
startCheck: p
|
|
96
90
|
})]);
|
|
97
91
|
}
|
|
98
92
|
}), F = h(b);
|
|
@@ -15,15 +15,9 @@ export interface TgUserData {
|
|
|
15
15
|
}
|
|
16
16
|
type GetPopupContainerFn = () => HTMLElement | Element;
|
|
17
17
|
declare const _comp_props: {
|
|
18
|
-
botId:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
toPath: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
};
|
|
24
|
-
defaultLoad: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
};
|
|
18
|
+
botId: NumberConstructor;
|
|
19
|
+
toPath: StringConstructor;
|
|
20
|
+
defaultLoad: BooleanConstructor;
|
|
27
21
|
getPopupContainer: {
|
|
28
22
|
type: PropType<GetPopupContainerFn>;
|
|
29
23
|
};
|
|
@@ -34,21 +28,60 @@ declare const _comp_props: {
|
|
|
34
28
|
type: PropType<() => void>;
|
|
35
29
|
};
|
|
36
30
|
};
|
|
37
|
-
export type TelegramAuthProps = ExtractPropTypes<typeof _comp_props
|
|
31
|
+
export type TelegramAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
|
|
38
32
|
/** Telegram身份检查 */
|
|
39
33
|
export declare const TelegramAuth: {
|
|
40
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
34
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
35
|
+
botId: NumberConstructor;
|
|
36
|
+
toPath: StringConstructor;
|
|
37
|
+
defaultLoad: BooleanConstructor;
|
|
38
|
+
getPopupContainer: {
|
|
39
|
+
type: PropType<GetPopupContainerFn>;
|
|
40
|
+
};
|
|
41
|
+
onCallback: {
|
|
42
|
+
type: PropType<(user: TgUserData) => void>;
|
|
43
|
+
};
|
|
44
|
+
onRejectCallback: {
|
|
45
|
+
type: PropType<() => void>;
|
|
46
|
+
};
|
|
47
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
41
48
|
P: {};
|
|
42
49
|
B: {};
|
|
43
50
|
D: {};
|
|
44
51
|
C: {};
|
|
45
52
|
M: {};
|
|
46
53
|
Defaults: {};
|
|
47
|
-
}, Readonly<
|
|
54
|
+
}, Readonly<Partial<ExtractPropTypes<{
|
|
55
|
+
botId: NumberConstructor;
|
|
56
|
+
toPath: StringConstructor;
|
|
57
|
+
defaultLoad: BooleanConstructor;
|
|
58
|
+
getPopupContainer: {
|
|
59
|
+
type: PropType<GetPopupContainerFn>;
|
|
60
|
+
};
|
|
61
|
+
onCallback: {
|
|
62
|
+
type: PropType<(user: TgUserData) => void>;
|
|
63
|
+
};
|
|
64
|
+
onRejectCallback: {
|
|
65
|
+
type: PropType<() => void>;
|
|
66
|
+
};
|
|
67
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
48
68
|
__isFragment?: never;
|
|
49
69
|
__isTeleport?: never;
|
|
50
70
|
__isSuspense?: never;
|
|
51
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
71
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
72
|
+
botId: NumberConstructor;
|
|
73
|
+
toPath: StringConstructor;
|
|
74
|
+
defaultLoad: BooleanConstructor;
|
|
75
|
+
getPopupContainer: {
|
|
76
|
+
type: PropType<GetPopupContainerFn>;
|
|
77
|
+
};
|
|
78
|
+
onCallback: {
|
|
79
|
+
type: PropType<(user: TgUserData) => void>;
|
|
80
|
+
};
|
|
81
|
+
onRejectCallback: {
|
|
82
|
+
type: PropType<() => void>;
|
|
83
|
+
};
|
|
84
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
52
85
|
readonly toTelegramAuth: typeof toTelegramAuth;
|
|
53
86
|
readonly getTelegramAuthUrlParams: typeof getTelegramAuthUrlParams;
|
|
54
87
|
} & import("vue").Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as w } from "../chunks/index-
|
|
1
|
+
import { defineComponent as f, computed as p, onMounted as g, createVNode as h } from "vue";
|
|
2
|
+
import { a as w } from "../chunks/index-C5FNYxxn.js";
|
|
3
3
|
import { withInstall as b } from "../utils/withInstall.js";
|
|
4
4
|
import { isInMobileBrowser as l } from "../utils/is.js";
|
|
5
5
|
function u(t, a) {
|
|
@@ -21,16 +21,10 @@ function C() {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
botId:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
toPath: {
|
|
29
|
-
type: String
|
|
30
|
-
},
|
|
31
|
-
defaultLoad: {
|
|
32
|
-
type: Boolean
|
|
33
|
-
},
|
|
24
|
+
const _ = {
|
|
25
|
+
botId: Number,
|
|
26
|
+
toPath: String,
|
|
27
|
+
defaultLoad: Boolean,
|
|
34
28
|
getPopupContainer: {
|
|
35
29
|
type: Function
|
|
36
30
|
},
|
|
@@ -40,17 +34,17 @@ const y = {
|
|
|
40
34
|
onRejectCallback: {
|
|
41
35
|
type: Function
|
|
42
36
|
}
|
|
43
|
-
},
|
|
37
|
+
}, y = /* @__PURE__ */ f({
|
|
44
38
|
name: "TelegramAuth",
|
|
45
39
|
toTelegramAuth: u,
|
|
46
40
|
getTelegramAuthUrlParams: C,
|
|
47
|
-
props:
|
|
41
|
+
props: _,
|
|
48
42
|
slots: Object,
|
|
49
43
|
setup(t, {
|
|
50
44
|
slots: a,
|
|
51
45
|
expose: c
|
|
52
46
|
}) {
|
|
53
|
-
const r =
|
|
47
|
+
const r = p(() => ({
|
|
54
48
|
id: t.botId,
|
|
55
49
|
path: t.toPath
|
|
56
50
|
}));
|
|
@@ -106,7 +100,7 @@ const y = {
|
|
|
106
100
|
startCheck: d
|
|
107
101
|
})]);
|
|
108
102
|
}
|
|
109
|
-
}), U = b(
|
|
103
|
+
}), U = b(y);
|
|
110
104
|
export {
|
|
111
105
|
U as TelegramAuth,
|
|
112
106
|
U as default,
|
package/dist/index.d.ts
CHANGED
|
@@ -103,35 +103,119 @@ declare const JKVUEComps: {
|
|
|
103
103
|
useMemo<T>(getValue: () => T, condition: (import("vue").WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): import("vue").Ref<T, T>;
|
|
104
104
|
toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
105
105
|
GoogleAuth: {
|
|
106
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
106
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
107
|
+
clientId: StringConstructor;
|
|
108
|
+
redirectUri: StringConstructor;
|
|
109
|
+
defaultLoad: BooleanConstructor;
|
|
110
|
+
getPopupContainer: {
|
|
111
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
112
|
+
};
|
|
113
|
+
onCallback: {
|
|
114
|
+
type: import("vue").PropType<(data: {
|
|
115
|
+
code: string;
|
|
116
|
+
}) => void>;
|
|
117
|
+
};
|
|
118
|
+
onRejectCallback: {
|
|
119
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
120
|
+
};
|
|
121
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
107
122
|
P: {};
|
|
108
123
|
B: {};
|
|
109
124
|
D: {};
|
|
110
125
|
C: {};
|
|
111
126
|
M: {};
|
|
112
127
|
Defaults: {};
|
|
113
|
-
}, Readonly<
|
|
128
|
+
}, Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
129
|
+
clientId: StringConstructor;
|
|
130
|
+
redirectUri: StringConstructor;
|
|
131
|
+
defaultLoad: BooleanConstructor;
|
|
132
|
+
getPopupContainer: {
|
|
133
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
134
|
+
};
|
|
135
|
+
onCallback: {
|
|
136
|
+
type: import("vue").PropType<(data: {
|
|
137
|
+
code: string;
|
|
138
|
+
}) => void>;
|
|
139
|
+
};
|
|
140
|
+
onRejectCallback: {
|
|
141
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
142
|
+
};
|
|
143
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
114
144
|
__isFragment?: never;
|
|
115
145
|
__isTeleport?: never;
|
|
116
146
|
__isSuspense?: never;
|
|
117
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
147
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
148
|
+
clientId: StringConstructor;
|
|
149
|
+
redirectUri: StringConstructor;
|
|
150
|
+
defaultLoad: BooleanConstructor;
|
|
151
|
+
getPopupContainer: {
|
|
152
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
153
|
+
};
|
|
154
|
+
onCallback: {
|
|
155
|
+
type: import("vue").PropType<(data: {
|
|
156
|
+
code: string;
|
|
157
|
+
}) => void>;
|
|
158
|
+
};
|
|
159
|
+
onRejectCallback: {
|
|
160
|
+
type: import("vue").PropType<(error: any) => void>;
|
|
161
|
+
};
|
|
162
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
118
163
|
readonly toGoogleAuth: typeof Comps.toGoogleAuth;
|
|
119
164
|
} & import("vue").Plugin;
|
|
120
165
|
toTelegramAuth(botId: number, toPath: string): void;
|
|
121
166
|
getTelegramAuthUrlParams(): Comps.TgUserData | null;
|
|
122
167
|
TelegramAuth: {
|
|
123
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<
|
|
168
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
169
|
+
botId: NumberConstructor;
|
|
170
|
+
toPath: StringConstructor;
|
|
171
|
+
defaultLoad: BooleanConstructor;
|
|
172
|
+
getPopupContainer: {
|
|
173
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
174
|
+
};
|
|
175
|
+
onCallback: {
|
|
176
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
177
|
+
};
|
|
178
|
+
onRejectCallback: {
|
|
179
|
+
type: import("vue").PropType<() => void>;
|
|
180
|
+
};
|
|
181
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
124
182
|
P: {};
|
|
125
183
|
B: {};
|
|
126
184
|
D: {};
|
|
127
185
|
C: {};
|
|
128
186
|
M: {};
|
|
129
187
|
Defaults: {};
|
|
130
|
-
}, Readonly<
|
|
188
|
+
}, Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
189
|
+
botId: NumberConstructor;
|
|
190
|
+
toPath: StringConstructor;
|
|
191
|
+
defaultLoad: BooleanConstructor;
|
|
192
|
+
getPopupContainer: {
|
|
193
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
194
|
+
};
|
|
195
|
+
onCallback: {
|
|
196
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
197
|
+
};
|
|
198
|
+
onRejectCallback: {
|
|
199
|
+
type: import("vue").PropType<() => void>;
|
|
200
|
+
};
|
|
201
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
131
202
|
__isFragment?: never;
|
|
132
203
|
__isTeleport?: never;
|
|
133
204
|
__isSuspense?: never;
|
|
134
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
205
|
+
} & import("vue").ComponentOptionsBase<Readonly<Partial<import("vue").ExtractPropTypes<{
|
|
206
|
+
botId: NumberConstructor;
|
|
207
|
+
toPath: StringConstructor;
|
|
208
|
+
defaultLoad: BooleanConstructor;
|
|
209
|
+
getPopupContainer: {
|
|
210
|
+
type: import("vue").PropType<() => HTMLElement | Element>;
|
|
211
|
+
};
|
|
212
|
+
onCallback: {
|
|
213
|
+
type: import("vue").PropType<(user: Comps.TgUserData) => void>;
|
|
214
|
+
};
|
|
215
|
+
onRejectCallback: {
|
|
216
|
+
type: import("vue").PropType<() => void>;
|
|
217
|
+
};
|
|
218
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
135
219
|
readonly toTelegramAuth: typeof Comps.toTelegramAuth;
|
|
136
220
|
readonly getTelegramAuthUrlParams: typeof Comps.getTelegramAuthUrlParams;
|
|
137
221
|
} & import("vue").Plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as e } from "./chunks/index-DyiqKziC.js";
|
|
2
2
|
import { H as s } from "./chunks/index-BXoUaF-m.js";
|
|
3
|
-
import { U as t } from "./chunks/index-
|
|
4
|
-
import { d as n, h as p, e as u, f, g, b as d, a as h, c as N, r as x, i as T, t as b } from "./chunks/index-
|
|
3
|
+
import { U as t } from "./chunks/index-C5FNYxxn.js";
|
|
4
|
+
import { d as n, h as p, e as u, f, g, b as d, a as h, c as N, r as x, i as T, t as b } from "./chunks/index-C5FNYxxn.js";
|
|
5
5
|
import { GoogleAuth as U, toGoogleAuth as E } from "./components/GoogleAuth.js";
|
|
6
6
|
import { TelegramAuth as P, getTelegramAuthUrlParams as S, toTelegramAuth as A } from "./components/TelegramAuth.js";
|
|
7
7
|
import { copyTextToClipboard as C, useCopyToClipboard as D } from "./hooks/useCopyToClipboard.js";
|
package/dist/utils/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { BigNumber as F, DOWN as R, UP as W, add as M, divide as j, eq as A, for
|
|
|
4
4
|
import { propTypes as fe } from "./vuePropTypes.js";
|
|
5
5
|
import { timeZoneOptions as he } from "./timeZone.js";
|
|
6
6
|
import { withInstall as ce } from "./withInstall.js";
|
|
7
|
-
import { d as Se, h as Te, e as xe, f as Be, g as De, b as Ie, a as Oe, c as Pe, r as Ue, i as ye, t as we } from "../chunks/index-
|
|
7
|
+
import { d as Se, h as Te, e as xe, f as Be, g as De, b as Ie, a as Oe, c as Pe, r as Ue, i as ye, t as we } from "../chunks/index-C5FNYxxn.js";
|
|
8
8
|
export {
|
|
9
9
|
F as BigNumber,
|
|
10
10
|
R as DOWN,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jk-vue-comps",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "jk-vue-comps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
36
|
-
"@types/node": "
|
|
36
|
+
"@types/node": "22.18.0",
|
|
37
37
|
"@vitejs/plugin-vue": "6.0.2",
|
|
38
38
|
"@vitejs/plugin-vue-jsx": "5.1.2",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
40
|
-
"@typescript-eslint/parser": "^8.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
40
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
41
41
|
"eslint": "^9.39.1",
|
|
42
42
|
"eslint-config-prettier": "^10.1.8",
|
|
43
43
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { createVNode as N } from "vue";
|
|
2
|
-
import { isString as l, isHtmlStr as p, isObject as c, isNumber as g, is as S, isArray as $, isBoolean as b, isClient as v, isDate as O, isDef as U, isEdgeBrowser as T, isElement as y, isEmail as P, isEmpty as x, isFunction as E, isInMobileBrowser as B, isIp as I, isMap as L, isNull as q, isNullAndUnDef as D, isNullOrUnDef as F, isPromise as M, isPromiseLink as R, isRegExp as _, isServer as k, isUnDef as W, isUrl as j, isValidPhoneNumber as z, isWindow as H, isZhLang as V } from "../utils/is.js";
|
|
3
|
-
import { toNum as m, isNanValue as d, BigNumber as A, DOWN as C, UP as G, add as Z, divide as J, eq as K, formatRate as Q, gt as X, gte as Y, helper as ee, isBigNum as te, isBool as ie, isEqualTo as ne, isGreaterThan as re, isGreaterThanOrEqualTo as oe, isInt as se, isLessThan as ue, isLessThanOrEqualTo as ae, isNan as le, isNum as fe, lt as ce, lte as pe, multiply as ge, power as me, subtract as de, toBigNum as he, toDecimalPlaces as we, toInt as Ne, toLocaleString as Se, toString as $e, unFormatRate as be } from "../utils/math.js";
|
|
4
|
-
import { propTypes as ve } from "../utils/vuePropTypes.js";
|
|
5
|
-
import { timeZoneOptions as Oe } from "../utils/timeZone.js";
|
|
6
|
-
import { withInstall as Ue } from "../utils/withInstall.js";
|
|
7
|
-
function f(e) {
|
|
8
|
-
try {
|
|
9
|
-
return new Function(`'use strict'; return (${e});`)();
|
|
10
|
-
} catch {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function h(e, i = "float", n = 6) {
|
|
15
|
-
let t = String(e);
|
|
16
|
-
if (t = t.replace(/(^\s*)|(\s*$)/g, ""), t !== "") {
|
|
17
|
-
const o = t.indexOf("0") === 0 && t.length > 1 && t.indexOf(".") !== 1, r = i === "int" ? /[^\d]/g : /[^\d.]/g;
|
|
18
|
-
if (t = t.replace(r, ""), o)
|
|
19
|
-
return "0";
|
|
20
|
-
if (i === "int")
|
|
21
|
-
t = t.indexOf("0") === 0 && t.length > 1 ? t.substring(0, t.length - 1) : t;
|
|
22
|
-
else {
|
|
23
|
-
const s = f(`/\\.{${n},}/g`), u = f(`/^(\\d?)+(\\.\\d{0,${n}})?$/`);
|
|
24
|
-
t.indexOf(".") === 0 ? (t = "", t = t.replace(/[^$#$]/g, "0."), t = t.replace(s, ".")) : u.test(t) || (t = t.substring(0, t.length - 1));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
function Te(e, i, n, t = "int", o = 6) {
|
|
30
|
-
return (r) => {
|
|
31
|
-
e[i] = h(r?.target?.value, t, o), n?.();
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function ye(e) {
|
|
35
|
-
return !l(e) || !p(e) ? e : N("div", { innerHTML: e });
|
|
36
|
-
}
|
|
37
|
-
function Pe() {
|
|
38
|
-
return window ? `${window.location.protocol}//${window.location.hostname}` : "";
|
|
39
|
-
}
|
|
40
|
-
function xe() {
|
|
41
|
-
const e = new URLSearchParams(window.location.search);
|
|
42
|
-
if (!e.size)
|
|
43
|
-
return;
|
|
44
|
-
const i = {};
|
|
45
|
-
for (const [n, t] of e.entries())
|
|
46
|
-
i[n] = t;
|
|
47
|
-
return i;
|
|
48
|
-
}
|
|
49
|
-
function Ee(e) {
|
|
50
|
-
return l(e) ? e.replace(/\s+/g, "") : "";
|
|
51
|
-
}
|
|
52
|
-
function w(e = {}, i = {}) {
|
|
53
|
-
let n;
|
|
54
|
-
for (n in i)
|
|
55
|
-
e[n] = c(e[n]) ? w(e[n], i[n]) : e[n] = i[n];
|
|
56
|
-
return e;
|
|
57
|
-
}
|
|
58
|
-
function Be(e, i = 6, { showPrefix: n = !0, showSuffix: t = !0, middleStr: o = "****" } = {}) {
|
|
59
|
-
if (!l(e) && !g(e))
|
|
60
|
-
return e;
|
|
61
|
-
const r = String(e), s = r?.length ?? 0;
|
|
62
|
-
if (!r || !s || i <= 0)
|
|
63
|
-
return r;
|
|
64
|
-
const u = n ? r.substring(0, i) : "", a = t ? r.substring(s - i) : "";
|
|
65
|
-
return `${u}${o}${a}`;
|
|
66
|
-
}
|
|
67
|
-
function Ie(e, i = "px") {
|
|
68
|
-
if (!(e === null || e === "" || e === void 0))
|
|
69
|
-
return d(e) ? String(e) : `${m(e)}${i}`;
|
|
70
|
-
}
|
|
71
|
-
function Le(e) {
|
|
72
|
-
return e ? c(e) ? e : e.split(";").reduce((i, n) => {
|
|
73
|
-
const [t, o] = n.trim().split(":");
|
|
74
|
-
if (t) {
|
|
75
|
-
const s = t.trim().replace(/-(\w)/g, (u, a) => a ? a.toUpperCase() : "");
|
|
76
|
-
i[s] = o.trim();
|
|
77
|
-
}
|
|
78
|
-
return i;
|
|
79
|
-
}, {}) : {};
|
|
80
|
-
}
|
|
81
|
-
const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82
|
-
__proto__: null,
|
|
83
|
-
BigNumber: A,
|
|
84
|
-
DOWN: C,
|
|
85
|
-
UP: G,
|
|
86
|
-
add: Z,
|
|
87
|
-
deepMerge: w,
|
|
88
|
-
desensitization: Be,
|
|
89
|
-
divide: J,
|
|
90
|
-
eq: K,
|
|
91
|
-
evalPro: f,
|
|
92
|
-
filterInputNum: h,
|
|
93
|
-
formatRate: Q,
|
|
94
|
-
generateFilterInputNumFn: Te,
|
|
95
|
-
getRouterParams: xe,
|
|
96
|
-
getWebsiteUrl: Pe,
|
|
97
|
-
gt: X,
|
|
98
|
-
gte: Y,
|
|
99
|
-
helper: ee,
|
|
100
|
-
is: S,
|
|
101
|
-
isArray: $,
|
|
102
|
-
isBigNum: te,
|
|
103
|
-
isBool: ie,
|
|
104
|
-
isBoolean: b,
|
|
105
|
-
isClient: v,
|
|
106
|
-
isDate: O,
|
|
107
|
-
isDef: U,
|
|
108
|
-
isEdgeBrowser: T,
|
|
109
|
-
isElement: y,
|
|
110
|
-
isEmail: P,
|
|
111
|
-
isEmpty: x,
|
|
112
|
-
isEqualTo: ne,
|
|
113
|
-
isFunction: E,
|
|
114
|
-
isGreaterThan: re,
|
|
115
|
-
isGreaterThanOrEqualTo: oe,
|
|
116
|
-
isHtmlStr: p,
|
|
117
|
-
isInMobileBrowser: B,
|
|
118
|
-
isInt: se,
|
|
119
|
-
isIp: I,
|
|
120
|
-
isLessThan: ue,
|
|
121
|
-
isLessThanOrEqualTo: ae,
|
|
122
|
-
isMap: L,
|
|
123
|
-
isNan: le,
|
|
124
|
-
isNanValue: d,
|
|
125
|
-
isNull: q,
|
|
126
|
-
isNullAndUnDef: D,
|
|
127
|
-
isNullOrUnDef: F,
|
|
128
|
-
isNum: fe,
|
|
129
|
-
isNumber: g,
|
|
130
|
-
isObject: c,
|
|
131
|
-
isPromise: M,
|
|
132
|
-
isPromiseLink: R,
|
|
133
|
-
isRegExp: _,
|
|
134
|
-
isServer: k,
|
|
135
|
-
isString: l,
|
|
136
|
-
isUnDef: W,
|
|
137
|
-
isUrl: j,
|
|
138
|
-
isValidPhoneNumber: z,
|
|
139
|
-
isWindow: H,
|
|
140
|
-
isZhLang: V,
|
|
141
|
-
lt: ce,
|
|
142
|
-
lte: pe,
|
|
143
|
-
multiply: ge,
|
|
144
|
-
power: me,
|
|
145
|
-
propTypes: ve,
|
|
146
|
-
removeWhitespace: Ee,
|
|
147
|
-
renderHtmlStr: ye,
|
|
148
|
-
subtract: de,
|
|
149
|
-
timeZoneOptions: Oe,
|
|
150
|
-
toBigNum: he,
|
|
151
|
-
toDecimalPlaces: we,
|
|
152
|
-
toInt: Ne,
|
|
153
|
-
toLocaleString: Se,
|
|
154
|
-
toNum: m,
|
|
155
|
-
toString: $e,
|
|
156
|
-
toStyleObject: Le,
|
|
157
|
-
toStyleUnit: Ie,
|
|
158
|
-
unFormatRate: be,
|
|
159
|
-
withInstall: Ue
|
|
160
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
161
|
-
export {
|
|
162
|
-
ke as U,
|
|
163
|
-
Pe as a,
|
|
164
|
-
xe as b,
|
|
165
|
-
Ee as c,
|
|
166
|
-
w as d,
|
|
167
|
-
f as e,
|
|
168
|
-
h as f,
|
|
169
|
-
Te as g,
|
|
170
|
-
Be as h,
|
|
171
|
-
Le as i,
|
|
172
|
-
ye as r,
|
|
173
|
-
Ie as t
|
|
174
|
-
};
|