jk-vue-comps 0.1.13 → 0.1.15
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-CB6PmcJE.js → index-BXoUaF-m.js} +6 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/useFormKeypressEnter.d.ts +2 -0
- package/dist/hooks/useFormKeypressEnter.js +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +91 -84
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { copyTextToClipboard as o, useCopyToClipboard as e } from "../hooks/useCopyToClipboard.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { useFormKeypressEnter as r } from "../hooks/useFormKeypressEnter.js";
|
|
3
|
+
import { useMemo as t } from "../hooks/useMemo.js";
|
|
4
|
+
const i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
5
|
__proto__: null,
|
|
5
6
|
copyTextToClipboard: o,
|
|
6
7
|
useCopyToClipboard: e,
|
|
7
|
-
|
|
8
|
+
useFormKeypressEnter: r,
|
|
9
|
+
useMemo: t
|
|
8
10
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
i as H
|
|
11
13
|
};
|
package/dist/hooks/index.d.ts
CHANGED
package/dist/hooks/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { copyTextToClipboard as
|
|
2
|
-
import {
|
|
1
|
+
import { copyTextToClipboard as r, useCopyToClipboard as p } from "./useCopyToClipboard.js";
|
|
2
|
+
import { useFormKeypressEnter as s } from "./useFormKeypressEnter.js";
|
|
3
|
+
import { useMemo as x } from "./useMemo.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
r as copyTextToClipboard,
|
|
6
|
+
p as useCopyToClipboard,
|
|
7
|
+
s as useFormKeypressEnter,
|
|
8
|
+
x as useMemo
|
|
7
9
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as Comps from './components';
|
|
|
2
2
|
import * as Hooks from './hooks';
|
|
3
3
|
import * as Utils from './utils';
|
|
4
4
|
export * from './components';
|
|
5
|
+
export * from './hooks';
|
|
5
6
|
export * from './utils';
|
|
6
7
|
declare const JKVUEComps: {
|
|
7
8
|
Comps: typeof Comps;
|
|
@@ -92,6 +93,7 @@ declare const JKVUEComps: {
|
|
|
92
93
|
copyTextToClipboard(input: string, { target }?: {
|
|
93
94
|
target?: HTMLElement | undefined;
|
|
94
95
|
}): boolean;
|
|
96
|
+
useFormKeypressEnter(fn: (...args: any[]) => any, loading: import("vue").Ref<boolean> | import("vue").ComputedRef<boolean> | (() => boolean)): (...args: any[]) => any;
|
|
95
97
|
useMemo<T_8>(getValue: () => T_8, condition: (object | import("vue").WatchSource<unknown>)[], shouldUpdate?: ((prev: any[], next: any[]) => boolean) | undefined): import("vue").Ref<T_8>;
|
|
96
98
|
toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
97
99
|
GoogleAuth: {
|
package/dist/index.js
CHANGED
|
@@ -1,98 +1,105 @@
|
|
|
1
1
|
import { C as e } from "./chunks/index-DyiqKziC.js";
|
|
2
|
-
import { H as s } from "./chunks/index-
|
|
3
|
-
import { U as
|
|
4
|
-
import { d as n, h as p, e as u, f
|
|
5
|
-
import { GoogleAuth as
|
|
6
|
-
import { TelegramAuth as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { H as s } from "./chunks/index-BXoUaF-m.js";
|
|
3
|
+
import { U as r } from "./chunks/index-ChgNR2U8.js";
|
|
4
|
+
import { d as n, h as p, e as u, f, g, b as d, a as h, c as x, r as N, i as T, t as b } from "./chunks/index-ChgNR2U8.js";
|
|
5
|
+
import { GoogleAuth as U, toGoogleAuth as E } from "./components/GoogleAuth.js";
|
|
6
|
+
import { TelegramAuth as P, getTelegramAuthUrlParams as S, toTelegramAuth as A } from "./components/TelegramAuth.js";
|
|
7
|
+
import { copyTextToClipboard as C, useCopyToClipboard as D } from "./hooks/useCopyToClipboard.js";
|
|
8
|
+
import { useFormKeypressEnter as O } from "./hooks/useFormKeypressEnter.js";
|
|
9
|
+
import { useMemo as F } from "./hooks/useMemo.js";
|
|
10
|
+
import { is as v, isArray as G, isBoolean as H, isClient as M, isDate as R, isDef as W, isEdgeBrowser as q, isElement as V, isEmail as j, isEmpty as k, isFunction as K, isHtmlStr as Z, isInMobileBrowser as z, isIp as J, isMap as Q, isNull as X, isNullAndUnDef as Y, isNullOrUnDef as _, isNumber as $, isObject as ee, isPromise as se, isPromiseLink as re, isRegExp as oe, isServer as te, isString as ie, isUnDef as ae, isUrl as me, isValidPhoneNumber as le, isWindow as ne, isZhLang as pe } from "./utils/is.js";
|
|
11
|
+
import { BigNumber as fe, DOWN as ge, UP as de, add as he, divide as xe, formatRate as Ne, helper as Te, isBigNum as be, isBool as ce, isEqualTo as Ue, isGreaterThan as Ee, isGreaterThanOrEqualTo as ye, isInt as Pe, isLessThan as Se, isLessThanOrEqualTo as Ae, isNanValue as Be, isNum as Ce, multiply as De, power as Ie, subtract as Oe, toBigNum as we, toDecimalPlaces as Fe, toInt as Le, toLocaleString as ve, toNum as Ge, toString as He, unFormatRate as Me } from "./utils/math.js";
|
|
12
|
+
import { propTypes as We } from "./utils/vuePropTypes.js";
|
|
13
|
+
import { timeZoneOptions as Ve } from "./utils/timeZone.js";
|
|
14
|
+
import { withInstall as ke } from "./utils/withInstall.js";
|
|
12
15
|
const a = {
|
|
13
16
|
...e,
|
|
14
17
|
...s,
|
|
15
|
-
...
|
|
18
|
+
...r,
|
|
16
19
|
Comps: e,
|
|
17
20
|
Hooks: s,
|
|
18
|
-
Utils:
|
|
21
|
+
Utils: r
|
|
19
22
|
};
|
|
20
23
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
fe as BigNumber,
|
|
25
|
+
ge as DOWN,
|
|
26
|
+
U as GoogleAuth,
|
|
27
|
+
P as TelegramAuth,
|
|
28
|
+
de as UP,
|
|
29
|
+
he as add,
|
|
30
|
+
C as copyTextToClipboard,
|
|
27
31
|
n as deepMerge,
|
|
28
32
|
a as default,
|
|
29
33
|
p as desensitization,
|
|
30
|
-
|
|
34
|
+
xe as divide,
|
|
31
35
|
u as evalPro,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
36
|
+
f as filterInputNum,
|
|
37
|
+
Ne as formatRate,
|
|
38
|
+
g as generateFilterInputNumFn,
|
|
39
|
+
d as getRouterParams,
|
|
40
|
+
S as getTelegramAuthUrlParams,
|
|
41
|
+
h as getWebsiteUrl,
|
|
42
|
+
Te as helper,
|
|
43
|
+
v as is,
|
|
44
|
+
G as isArray,
|
|
45
|
+
be as isBigNum,
|
|
46
|
+
ce as isBool,
|
|
47
|
+
H as isBoolean,
|
|
48
|
+
M as isClient,
|
|
49
|
+
R as isDate,
|
|
50
|
+
W as isDef,
|
|
51
|
+
q as isEdgeBrowser,
|
|
52
|
+
V as isElement,
|
|
53
|
+
j as isEmail,
|
|
54
|
+
k as isEmpty,
|
|
55
|
+
Ue as isEqualTo,
|
|
56
|
+
K as isFunction,
|
|
57
|
+
Ee as isGreaterThan,
|
|
58
|
+
ye as isGreaterThanOrEqualTo,
|
|
59
|
+
Z as isHtmlStr,
|
|
60
|
+
z as isInMobileBrowser,
|
|
61
|
+
Pe as isInt,
|
|
62
|
+
J as isIp,
|
|
63
|
+
Se as isLessThan,
|
|
64
|
+
Ae as isLessThanOrEqualTo,
|
|
65
|
+
Q as isMap,
|
|
66
|
+
Be as isNanValue,
|
|
67
|
+
X as isNull,
|
|
68
|
+
Y as isNullAndUnDef,
|
|
69
|
+
_ as isNullOrUnDef,
|
|
70
|
+
Ce as isNum,
|
|
71
|
+
$ as isNumber,
|
|
72
|
+
ee as isObject,
|
|
73
|
+
se as isPromise,
|
|
74
|
+
re as isPromiseLink,
|
|
75
|
+
oe as isRegExp,
|
|
76
|
+
te as isServer,
|
|
77
|
+
ie as isString,
|
|
78
|
+
ae as isUnDef,
|
|
79
|
+
me as isUrl,
|
|
80
|
+
le as isValidPhoneNumber,
|
|
81
|
+
ne as isWindow,
|
|
82
|
+
pe as isZhLang,
|
|
83
|
+
De as multiply,
|
|
84
|
+
Ie as power,
|
|
85
|
+
We as propTypes,
|
|
86
|
+
x as removeWhitespace,
|
|
87
|
+
N as renderHtmlStr,
|
|
88
|
+
Oe as subtract,
|
|
89
|
+
Ve as timeZoneOptions,
|
|
90
|
+
we as toBigNum,
|
|
91
|
+
Fe as toDecimalPlaces,
|
|
88
92
|
E as toGoogleAuth,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
Le as toInt,
|
|
94
|
+
ve as toLocaleString,
|
|
95
|
+
Ge as toNum,
|
|
96
|
+
He as toString,
|
|
97
|
+
T as toStyleObject,
|
|
98
|
+
b as toStyleUnit,
|
|
99
|
+
A as toTelegramAuth,
|
|
100
|
+
Me as unFormatRate,
|
|
101
|
+
D as useCopyToClipboard,
|
|
102
|
+
O as useFormKeypressEnter,
|
|
103
|
+
F as useMemo,
|
|
104
|
+
ke as withInstall
|
|
98
105
|
};
|