jk-vue-comps 0.2.1 → 0.2.3
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-CHtnAuFs.js +174 -0
- package/dist/components/GoogleAuth.d.ts +23 -78
- package/dist/components/GoogleAuth.js +63 -59
- package/dist/components/TelegramAuth.d.ts +21 -62
- package/dist/components/TelegramAuth.js +72 -69
- package/dist/hooks/useFormKeypressEnter.js +5 -5
- package/dist/index.d.ts +12 -118
- package/dist/index.js +52 -46
- package/dist/utils/index.js +54 -48
- package/dist/utils/is.js +81 -83
- package/dist/utils/math.d.ts +6 -0
- package/dist/utils/math.js +220 -213
- package/dist/utils/vuePropTypes.d.ts +9 -51
- package/dist/utils/vuePropTypes.js +16 -12
- package/package.json +16 -16
- package/dist/chunks/index-DiBTCIdi.js +0 -169
|
@@ -1,112 +1,115 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
window.location.href = r;
|
|
1
|
+
import { defineComponent as p, computed as f, onMounted as g, createVNode as h } from "vue";
|
|
2
|
+
import { a as w } from "../chunks/index-CHtnAuFs.js";
|
|
3
|
+
import { withInstall as b } from "../utils/withInstall.js";
|
|
4
|
+
import { isInMobileBrowser as l } from "../utils/is.js";
|
|
5
|
+
function u(t, a) {
|
|
6
|
+
if (!t || !a) return;
|
|
7
|
+
const c = encodeURIComponent(w()), r = encodeURIComponent(a), n = `https://oauth.telegram.org/auth?bot_id=${t}&origin=${c}&embed=1&request_access=write&return_to=${c}${r}`;
|
|
8
|
+
window.location.href = n;
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function C() {
|
|
12
11
|
const t = /[#\?\&]tgAuthResult=([A-Za-z0-9\-_=]*)$/;
|
|
13
12
|
try {
|
|
14
|
-
const
|
|
13
|
+
const a = window.location.hash.toString(), c = a.match(t);
|
|
15
14
|
if (!c)
|
|
16
15
|
return null;
|
|
17
|
-
window.location.hash =
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
return
|
|
16
|
+
window.location.hash = a.replace(t, "");
|
|
17
|
+
let r = c[1].replace(/-/g, "+").replace(/_/g, "/");
|
|
18
|
+
const n = r.length % 4;
|
|
19
|
+
return n > 1 && (r += new Array(5 - n).join("=")), r ? JSON.parse(window.atob(r)) : null;
|
|
21
20
|
} catch {
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
const
|
|
26
|
-
botId:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
const y = {
|
|
25
|
+
botId: {
|
|
26
|
+
type: Number
|
|
27
|
+
},
|
|
28
|
+
toPath: {
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
31
|
+
defaultLoad: {
|
|
32
|
+
type: Boolean
|
|
33
|
+
},
|
|
34
|
+
getPopupContainer: {
|
|
35
|
+
type: Function
|
|
36
|
+
},
|
|
37
|
+
onCallback: {
|
|
38
|
+
type: Function
|
|
39
|
+
},
|
|
40
|
+
onRejectCallback: {
|
|
41
|
+
type: Function
|
|
42
|
+
}
|
|
43
|
+
}, _ = /* @__PURE__ */ p({
|
|
33
44
|
name: "TelegramAuth",
|
|
34
|
-
toTelegramAuth:
|
|
35
|
-
getTelegramAuthUrlParams:
|
|
36
|
-
props:
|
|
45
|
+
toTelegramAuth: u,
|
|
46
|
+
getTelegramAuthUrlParams: C,
|
|
47
|
+
props: y,
|
|
37
48
|
slots: Object,
|
|
38
49
|
setup(t, {
|
|
39
|
-
slots:
|
|
50
|
+
slots: a,
|
|
40
51
|
expose: c
|
|
41
52
|
}) {
|
|
42
|
-
const
|
|
53
|
+
const r = f(() => ({
|
|
43
54
|
id: t.botId,
|
|
44
55
|
path: t.toPath
|
|
45
56
|
}));
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
return (e = (n = window == null ? void 0 : window.Telegram) == null ? void 0 : n.Login) == null ? void 0 : e.auth;
|
|
57
|
+
function n() {
|
|
58
|
+
return window?.Telegram?.Login?.auth;
|
|
49
59
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
return ((e = t.getPopupContainer) == null ? void 0 : e.call(t)) || document.body;
|
|
60
|
+
function m() {
|
|
61
|
+
return t.getPopupContainer?.() || document.body;
|
|
53
62
|
}
|
|
54
|
-
function
|
|
55
|
-
return new Promise((
|
|
56
|
-
var u, i;
|
|
63
|
+
function s() {
|
|
64
|
+
return new Promise((o) => {
|
|
57
65
|
if (!document) {
|
|
58
|
-
|
|
66
|
+
o(!1);
|
|
59
67
|
return;
|
|
60
68
|
}
|
|
61
|
-
if (
|
|
62
|
-
|
|
69
|
+
if (l() || n()) {
|
|
70
|
+
o(!0);
|
|
63
71
|
return;
|
|
64
72
|
}
|
|
65
73
|
const e = document.createElement("script");
|
|
66
|
-
e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js", (
|
|
67
|
-
|
|
74
|
+
e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js", m()?.appendChild?.(e), e.onload = () => {
|
|
75
|
+
o(!!n());
|
|
68
76
|
}, e.onerror = () => {
|
|
69
|
-
e.remove(),
|
|
77
|
+
e.remove(), o(!1);
|
|
70
78
|
};
|
|
71
79
|
});
|
|
72
80
|
}
|
|
73
|
-
async function
|
|
74
|
-
var u;
|
|
81
|
+
async function d() {
|
|
75
82
|
const {
|
|
76
|
-
id:
|
|
83
|
+
id: o,
|
|
77
84
|
path: e
|
|
78
|
-
} =
|
|
79
|
-
if (!
|
|
80
|
-
|
|
85
|
+
} = r.value;
|
|
86
|
+
if (!l() && !await s()) {
|
|
87
|
+
u(o || 0, e || "");
|
|
81
88
|
return;
|
|
82
89
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
90
|
+
if (l() || !n()) {
|
|
91
|
+
u(o || 0, e || "");
|
|
85
92
|
return;
|
|
86
93
|
}
|
|
87
|
-
(
|
|
88
|
-
bot_id:
|
|
94
|
+
n()?.({
|
|
95
|
+
bot_id: o,
|
|
89
96
|
request_access: !0
|
|
90
97
|
}, (i) => {
|
|
91
|
-
|
|
92
|
-
i ? (h = t.onCallback) == null || h.call(t, i) : (s = t.onRejectCallback) == null || s.call(t);
|
|
98
|
+
i ? t.onCallback?.(i) : t.onRejectCallback?.();
|
|
93
99
|
});
|
|
94
100
|
}
|
|
95
|
-
return
|
|
96
|
-
t.defaultLoad &&
|
|
101
|
+
return g(() => {
|
|
102
|
+
t.defaultLoad && s();
|
|
97
103
|
}), c({
|
|
98
|
-
startCheck:
|
|
99
|
-
}), () => {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
startCheck: g
|
|
103
|
-
})]);
|
|
104
|
-
};
|
|
104
|
+
startCheck: d
|
|
105
|
+
}), () => h("div", null, [a.default?.({
|
|
106
|
+
startCheck: d
|
|
107
|
+
})]);
|
|
105
108
|
}
|
|
106
|
-
}),
|
|
109
|
+
}), U = b(_);
|
|
107
110
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
U as TelegramAuth,
|
|
112
|
+
U as default,
|
|
113
|
+
C as getTelegramAuthUrlParams,
|
|
114
|
+
u as toTelegramAuth
|
|
112
115
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFunction as e } from "../utils/is.js";
|
|
2
|
-
import { toValue as
|
|
3
|
-
function
|
|
2
|
+
import { toValue as n } from "vue";
|
|
3
|
+
function f(o, r) {
|
|
4
4
|
return function(...t) {
|
|
5
|
-
if (!(e(
|
|
6
|
-
return
|
|
5
|
+
if (!(e(r) ? r() : n(r)))
|
|
6
|
+
return o?.(...t);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
f as useFormKeypressEnter
|
|
11
11
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,12 @@ declare const JKVUEComps: {
|
|
|
82
82
|
DOWN: 1;
|
|
83
83
|
UP: 0;
|
|
84
84
|
BigNumber: typeof BigNumber;
|
|
85
|
+
gt: typeof Utils.isGreaterThan;
|
|
86
|
+
gte: typeof Utils.isGreaterThanOrEqualTo;
|
|
87
|
+
lt: typeof Utils.isLessThan;
|
|
88
|
+
lte: typeof Utils.isLessThanOrEqualTo;
|
|
89
|
+
eq: typeof Utils.isEqualTo;
|
|
90
|
+
isNan: typeof Utils.isNanValue;
|
|
85
91
|
propTypes: typeof import("./utils/vuePropTypes").default;
|
|
86
92
|
timeZoneOptions: Utils.TimeZoneItem[];
|
|
87
93
|
withInstall<T>(component: T, alias?: string): T & import("vue").Plugin;
|
|
@@ -97,147 +103,35 @@ declare const JKVUEComps: {
|
|
|
97
103
|
useMemo<T>(getValue: () => T, condition: (import("vue").WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): import("vue").Ref<T, T>;
|
|
98
104
|
toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
99
105
|
GoogleAuth: {
|
|
100
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
101
|
-
clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
105
|
-
default: string;
|
|
106
|
-
};
|
|
107
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
108
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
109
|
-
onCallback: import("vue-types").VueTypeValidableDef<(data: {
|
|
110
|
-
code: string;
|
|
111
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
112
|
-
code: string;
|
|
113
|
-
}) => void>>;
|
|
114
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
115
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
116
|
-
clientId: string;
|
|
117
|
-
redirectUri: string;
|
|
118
|
-
}, true, {}, import("vue").SlotsType<{
|
|
119
|
-
default: {
|
|
120
|
-
startCheck: () => void;
|
|
121
|
-
};
|
|
122
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
106
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Comps.GoogleAuthProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
123
107
|
P: {};
|
|
124
108
|
B: {};
|
|
125
109
|
D: {};
|
|
126
110
|
C: {};
|
|
127
111
|
M: {};
|
|
128
112
|
Defaults: {};
|
|
129
|
-
}, Readonly<
|
|
130
|
-
clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
131
|
-
default: string;
|
|
132
|
-
};
|
|
133
|
-
redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
137
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
138
|
-
onCallback: import("vue-types").VueTypeValidableDef<(data: {
|
|
139
|
-
code: string;
|
|
140
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
141
|
-
code: string;
|
|
142
|
-
}) => void>>;
|
|
143
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
144
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
|
|
145
|
-
clientId: string;
|
|
146
|
-
redirectUri: string;
|
|
147
|
-
}>;
|
|
113
|
+
}, Readonly<Comps.GoogleAuthProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
148
114
|
__isFragment?: never;
|
|
149
115
|
__isTeleport?: never;
|
|
150
116
|
__isSuspense?: never;
|
|
151
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
152
|
-
clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
159
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
160
|
-
onCallback: import("vue-types").VueTypeValidableDef<(data: {
|
|
161
|
-
code: string;
|
|
162
|
-
}) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
|
|
163
|
-
code: string;
|
|
164
|
-
}) => void>>;
|
|
165
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
|
|
166
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
167
|
-
clientId: string;
|
|
168
|
-
redirectUri: string;
|
|
169
|
-
}, {}, string, import("vue").SlotsType<{
|
|
170
|
-
default: {
|
|
171
|
-
startCheck: () => void;
|
|
172
|
-
};
|
|
173
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
117
|
+
} & import("vue").ComponentOptionsBase<Readonly<Comps.GoogleAuthProps> & 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 & {
|
|
174
118
|
readonly toGoogleAuth: typeof Comps.toGoogleAuth;
|
|
175
119
|
} & import("vue").Plugin;
|
|
176
120
|
toTelegramAuth(botId: number, toPath: string): void;
|
|
177
121
|
getTelegramAuthUrlParams(): Comps.TgUserData | null;
|
|
178
122
|
TelegramAuth: {
|
|
179
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
180
|
-
botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
|
|
181
|
-
default: number;
|
|
182
|
-
};
|
|
183
|
-
toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
184
|
-
default: string;
|
|
185
|
-
};
|
|
186
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
187
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
188
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
189
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
190
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
191
|
-
botId: number;
|
|
192
|
-
toPath: string;
|
|
193
|
-
}, true, {}, import("vue").SlotsType<{
|
|
194
|
-
default: {
|
|
195
|
-
startCheck: () => void;
|
|
196
|
-
};
|
|
197
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
123
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Comps.TelegramAuthProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
198
124
|
P: {};
|
|
199
125
|
B: {};
|
|
200
126
|
D: {};
|
|
201
127
|
C: {};
|
|
202
128
|
M: {};
|
|
203
129
|
Defaults: {};
|
|
204
|
-
}, Readonly<
|
|
205
|
-
botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
|
|
206
|
-
default: number;
|
|
207
|
-
};
|
|
208
|
-
toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
209
|
-
default: string;
|
|
210
|
-
};
|
|
211
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
212
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
213
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
214
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
215
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
|
|
216
|
-
botId: number;
|
|
217
|
-
toPath: string;
|
|
218
|
-
}>;
|
|
130
|
+
}, Readonly<Comps.TelegramAuthProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
219
131
|
__isFragment?: never;
|
|
220
132
|
__isTeleport?: never;
|
|
221
133
|
__isSuspense?: never;
|
|
222
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
223
|
-
botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
|
|
224
|
-
default: number;
|
|
225
|
-
};
|
|
226
|
-
toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
|
|
227
|
-
default: string;
|
|
228
|
-
};
|
|
229
|
-
defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
|
|
230
|
-
getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
|
|
231
|
-
onCallback: import("vue-types").VueTypeValidableDef<(user: Comps.TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: Comps.TgUserData) => void>>;
|
|
232
|
-
onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
|
|
233
|
-
}>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
234
|
-
botId: number;
|
|
235
|
-
toPath: string;
|
|
236
|
-
}, {}, string, import("vue").SlotsType<{
|
|
237
|
-
default: {
|
|
238
|
-
startCheck: () => void;
|
|
239
|
-
};
|
|
240
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
134
|
+
} & import("vue").ComponentOptionsBase<Readonly<Comps.TelegramAuthProps> & 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 & {
|
|
241
135
|
readonly toTelegramAuth: typeof Comps.toTelegramAuth;
|
|
242
136
|
readonly getTelegramAuthUrlParams: typeof Comps.getTelegramAuthUrlParams;
|
|
243
137
|
} & import("vue").Plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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
|
|
4
|
-
import { d as n, h as p, e as u, f, g, b as d, a as h, c as
|
|
3
|
+
import { U as t } from "./chunks/index-CHtnAuFs.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-CHtnAuFs.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";
|
|
8
8
|
import { useFormKeypressEnter as O } from "./hooks/useFormKeypressEnter.js";
|
|
9
9
|
import { useMemo as F } from "./hooks/useMemo.js";
|
|
10
|
-
import { is as
|
|
11
|
-
import { BigNumber as fe, DOWN as ge, UP as de, add as he, divide as xe, formatRate as
|
|
12
|
-
import { propTypes as
|
|
13
|
-
import { timeZoneOptions as
|
|
14
|
-
import { withInstall as
|
|
15
|
-
const a = { ...e, ...s, ...
|
|
10
|
+
import { is as q, isArray as v, isBoolean as G, isClient as H, isDate as M, isDef as R, isEdgeBrowser as W, 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 te, isRegExp as re, isServer as oe, 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 Ne, eq as xe, formatRate as Te, gt as be, gte as ce, helper as Ue, isBigNum as Ee, isBool as ye, isEqualTo as Pe, isGreaterThan as Se, isGreaterThanOrEqualTo as Ae, isInt as Be, isLessThan as Ce, isLessThanOrEqualTo as De, isNan as Ie, isNanValue as Oe, isNum as we, lt as Fe, lte as Le, multiply as qe, power as ve, subtract as Ge, toBigNum as He, toDecimalPlaces as Me, toInt as Re, toLocaleString as We, toNum as Ve, toString as je, unFormatRate as ke } from "./utils/math.js";
|
|
12
|
+
import { propTypes as Ze } from "./utils/vuePropTypes.js";
|
|
13
|
+
import { timeZoneOptions as Je } from "./utils/timeZone.js";
|
|
14
|
+
import { withInstall as Xe } from "./utils/withInstall.js";
|
|
15
|
+
const a = { ...e, ...s, ...t, Comps: e, Hooks: s, Utils: t };
|
|
16
16
|
export {
|
|
17
17
|
fe as BigNumber,
|
|
18
18
|
ge as DOWN,
|
|
@@ -24,75 +24,81 @@ export {
|
|
|
24
24
|
n as deepMerge,
|
|
25
25
|
a as default,
|
|
26
26
|
p as desensitization,
|
|
27
|
-
|
|
27
|
+
Ne as divide,
|
|
28
|
+
xe as eq,
|
|
28
29
|
u as evalPro,
|
|
29
30
|
f as filterInputNum,
|
|
30
|
-
|
|
31
|
+
Te as formatRate,
|
|
31
32
|
g as generateFilterInputNumFn,
|
|
32
33
|
d as getRouterParams,
|
|
33
34
|
S as getTelegramAuthUrlParams,
|
|
34
35
|
h as getWebsiteUrl,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
be as gt,
|
|
37
|
+
ce as gte,
|
|
38
|
+
Ue as helper,
|
|
39
|
+
q as is,
|
|
40
|
+
v as isArray,
|
|
41
|
+
Ee as isBigNum,
|
|
42
|
+
ye as isBool,
|
|
43
|
+
G as isBoolean,
|
|
44
|
+
H as isClient,
|
|
45
|
+
M as isDate,
|
|
46
|
+
R as isDef,
|
|
47
|
+
W as isEdgeBrowser,
|
|
45
48
|
V as isElement,
|
|
46
49
|
j as isEmail,
|
|
47
50
|
k as isEmpty,
|
|
48
|
-
|
|
51
|
+
Pe as isEqualTo,
|
|
49
52
|
K as isFunction,
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
Se as isGreaterThan,
|
|
54
|
+
Ae as isGreaterThanOrEqualTo,
|
|
52
55
|
Z as isHtmlStr,
|
|
53
56
|
z as isInMobileBrowser,
|
|
54
|
-
|
|
57
|
+
Be as isInt,
|
|
55
58
|
J as isIp,
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
Ce as isLessThan,
|
|
60
|
+
De as isLessThanOrEqualTo,
|
|
58
61
|
Q as isMap,
|
|
59
|
-
|
|
62
|
+
Ie as isNan,
|
|
63
|
+
Oe as isNanValue,
|
|
60
64
|
X as isNull,
|
|
61
65
|
Y as isNullAndUnDef,
|
|
62
66
|
_ as isNullOrUnDef,
|
|
63
|
-
|
|
67
|
+
we as isNum,
|
|
64
68
|
$ as isNumber,
|
|
65
69
|
ee as isObject,
|
|
66
70
|
se as isPromise,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
te as isPromiseLink,
|
|
72
|
+
re as isRegExp,
|
|
73
|
+
oe as isServer,
|
|
70
74
|
ie as isString,
|
|
71
75
|
ae as isUnDef,
|
|
72
76
|
me as isUrl,
|
|
73
77
|
le as isValidPhoneNumber,
|
|
74
78
|
ne as isWindow,
|
|
75
79
|
pe as isZhLang,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
Fe as lt,
|
|
81
|
+
Le as lte,
|
|
82
|
+
qe as multiply,
|
|
83
|
+
ve as power,
|
|
84
|
+
Ze as propTypes,
|
|
85
|
+
N as removeWhitespace,
|
|
86
|
+
x as renderHtmlStr,
|
|
87
|
+
Ge as subtract,
|
|
88
|
+
Je as timeZoneOptions,
|
|
89
|
+
He as toBigNum,
|
|
90
|
+
Me as toDecimalPlaces,
|
|
85
91
|
E as toGoogleAuth,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
Re as toInt,
|
|
93
|
+
We as toLocaleString,
|
|
94
|
+
Ve as toNum,
|
|
95
|
+
je as toString,
|
|
90
96
|
T as toStyleObject,
|
|
91
97
|
b as toStyleUnit,
|
|
92
98
|
A as toTelegramAuth,
|
|
93
|
-
|
|
99
|
+
ke as unFormatRate,
|
|
94
100
|
D as useCopyToClipboard,
|
|
95
101
|
O as useFormKeypressEnter,
|
|
96
102
|
F as useMemo,
|
|
97
|
-
|
|
103
|
+
Xe as withInstall
|
|
98
104
|
};
|