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.
@@ -0,0 +1,174 @@
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
+ };
@@ -1,99 +1,44 @@
1
- import type { SlotsType, ExtractPropTypes } from 'vue';
1
+ import type { PropType, ExtractPropTypes } from 'vue';
2
2
  /** 跳转谷歌身份检查 */
3
3
  export declare function toGoogleAuth(clientId: string, redirectUri: string): void;
4
+ type GetPopupContainerFn = () => HTMLElement | Element;
4
5
  declare const _comp_props: {
5
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
6
- default: string;
6
+ clientId: {
7
+ type: StringConstructor;
7
8
  };
8
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
9
- default: string;
9
+ redirectUri: {
10
+ type: StringConstructor;
11
+ };
12
+ defaultLoad: {
13
+ type: BooleanConstructor;
14
+ };
15
+ getPopupContainer: {
16
+ type: PropType<GetPopupContainerFn>;
17
+ };
18
+ onCallback: {
19
+ type: PropType<(data: {
20
+ code: string;
21
+ }) => void>;
22
+ };
23
+ onRejectCallback: {
24
+ type: PropType<(error: any) => void>;
10
25
  };
11
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
12
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
13
- onCallback: import("vue-types").VueTypeValidableDef<(data: {
14
- code: string;
15
- }) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
16
- code: string;
17
- }) => void>>;
18
- onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
19
26
  };
20
27
  export type GoogleAuthProps = ExtractPropTypes<typeof _comp_props>;
21
28
  /** 谷歌身份检查 */
22
29
  export declare const GoogleAuth: {
23
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
24
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
25
- default: string;
26
- };
27
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
28
- default: string;
29
- };
30
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
31
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
32
- onCallback: import("vue-types").VueTypeValidableDef<(data: {
33
- code: string;
34
- }) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
35
- code: string;
36
- }) => void>>;
37
- onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
38
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
39
- clientId: string;
40
- redirectUri: string;
41
- }, true, {}, SlotsType<{
42
- default: {
43
- startCheck: () => void;
44
- };
45
- }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
30
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<GoogleAuthProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
46
31
  P: {};
47
32
  B: {};
48
33
  D: {};
49
34
  C: {};
50
35
  M: {};
51
36
  Defaults: {};
52
- }, Readonly<ExtractPropTypes<{
53
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
54
- default: string;
55
- };
56
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
57
- default: string;
58
- };
59
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
60
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
61
- onCallback: import("vue-types").VueTypeValidableDef<(data: {
62
- code: string;
63
- }) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
64
- code: string;
65
- }) => void>>;
66
- onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
67
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
68
- clientId: string;
69
- redirectUri: string;
70
- }>;
37
+ }, Readonly<GoogleAuthProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
71
38
  __isFragment?: never;
72
39
  __isTeleport?: never;
73
40
  __isSuspense?: never;
74
- } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
75
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
76
- default: string;
77
- };
78
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
79
- default: string;
80
- };
81
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
82
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
83
- onCallback: import("vue-types").VueTypeValidableDef<(data: {
84
- code: string;
85
- }) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(data: {
86
- code: string;
87
- }) => void>>;
88
- onRejectCallback: import("vue-types").VueTypeValidableDef<(error: any) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(error: any) => void>>;
89
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
90
- clientId: string;
91
- redirectUri: string;
92
- }, {}, string, SlotsType<{
93
- default: {
94
- startCheck: () => void;
95
- };
96
- }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
41
+ } & import("vue").ComponentOptionsBase<Readonly<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 & {
97
42
  readonly toGoogleAuth: typeof toGoogleAuth;
98
43
  } & import("vue").Plugin;
99
44
  export default GoogleAuth;
@@ -1,99 +1,103 @@
1
- import { defineComponent as _, computed as w, onMounted as y, createVNode as I } from "vue";
2
- import { isInMobileBrowser as f } from "../utils/is.js";
1
+ import { defineComponent as f, computed as m, onMounted as g, createVNode as C } from "vue";
2
+ import { isInMobileBrowser as i } from "../utils/is.js";
3
3
  import "../utils/math.js";
4
- import { propTypes as l } from "../utils/vuePropTypes.js";
5
- import { withInstall as k } from "../utils/withInstall.js";
6
- function g(t, i) {
7
- if (!t || !i) return;
8
- const d = encodeURIComponent(i), a = encodeURIComponent("email profile"), r = encodeURIComponent(t), m = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${d}&scope=${a}&client_id=${r}`;
9
- window.location.href = m;
4
+ import "../utils/vuePropTypes.js";
5
+ import { withInstall as h } from "../utils/withInstall.js";
6
+ function d(t, r) {
7
+ if (!t || !r) return;
8
+ const u = encodeURIComponent(r), l = encodeURIComponent("email profile"), n = encodeURIComponent(t), a = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${u}&scope=${l}&client_id=${n}`;
9
+ window.location.href = a;
10
10
  }
11
- const R = {
12
- clientId: l.string,
13
- redirectUri: l.string,
14
- defaultLoad: l.bool,
15
- getPopupContainer: l.funcType(),
16
- onCallback: l.funcType(),
17
- onRejectCallback: l.funcType()
18
- }, G = /* @__PURE__ */ _({
11
+ const _ = {
12
+ clientId: {
13
+ type: String
14
+ },
15
+ redirectUri: {
16
+ type: String
17
+ },
18
+ defaultLoad: {
19
+ type: Boolean
20
+ },
21
+ getPopupContainer: {
22
+ type: Function
23
+ },
24
+ onCallback: {
25
+ type: Function
26
+ },
27
+ onRejectCallback: {
28
+ type: Function
29
+ }
30
+ }, b = /* @__PURE__ */ f({
19
31
  name: "GoogleAuth",
20
- toGoogleAuth: g,
21
- props: R,
32
+ toGoogleAuth: d,
33
+ props: _,
22
34
  slots: Object,
23
35
  setup(t, {
24
- slots: i,
25
- expose: d
36
+ slots: r,
37
+ expose: u
26
38
  }) {
27
- const a = w(() => ({
39
+ const l = m(() => ({
28
40
  id: t.clientId,
29
41
  uri: t.redirectUri
30
42
  }));
31
- function r() {
32
- var o, e, n;
33
- return (n = (e = (o = window == null ? void 0 : window.google) == null ? void 0 : o.accounts) == null ? void 0 : e.oauth2) == null ? void 0 : n.initCodeClient;
43
+ function n() {
44
+ return window?.google?.accounts?.oauth2?.initCodeClient;
34
45
  }
35
- function m() {
36
- var e;
37
- return ((e = t.getPopupContainer) == null ? void 0 : e.call(t)) || document.body;
46
+ function a() {
47
+ return t.getPopupContainer?.() || document.body;
38
48
  }
39
- function s() {
49
+ function p() {
40
50
  return new Promise((o) => {
41
- var n, c;
42
51
  if (!document) {
43
52
  o(!1);
44
53
  return;
45
54
  }
46
- if (f() || r()) {
55
+ if (i() || n()) {
47
56
  o(!0);
48
57
  return;
49
58
  }
50
59
  const e = document.createElement("script");
51
- e.async = !0, e.defer = !0, e.src = "https://accounts.google.com/gsi/client", (c = (n = m()) == null ? void 0 : n.appendChild) == null || c.call(n, e), e.onload = () => {
52
- o(!!r());
60
+ e.async = !0, e.defer = !0, e.src = "https://accounts.google.com/gsi/client", a()?.appendChild?.(e), e.onload = () => {
61
+ o(!!n());
53
62
  }, e.onerror = () => {
54
63
  e.remove(), o(!1);
55
64
  };
56
65
  });
57
66
  }
58
- async function C() {
59
- var n, c, h;
67
+ async function s() {
60
68
  const {
61
69
  id: o,
62
70
  uri: e
63
- } = a.value;
64
- if (!f() && !await s()) {
65
- g(o || "", e || "");
71
+ } = l.value;
72
+ if (!i() && !await p()) {
73
+ d(o || "", e || "");
66
74
  return;
67
75
  }
68
- if (f() || !r()) {
69
- g(o || "", e || "");
76
+ if (i() || !n()) {
77
+ d(o || "", e || "");
70
78
  return;
71
79
  }
72
- (h = (c = (n = r()) == null ? void 0 : n({
80
+ n()?.({
73
81
  client_id: o,
74
82
  scope: "email profile",
75
83
  redirect_uri: e,
76
- ux_mode: f() ? "redirect" : "popup",
77
- callback(u) {
78
- var p, b;
79
- u != null && u.error ? (p = t.onRejectCallback) == null || p.call(t, u.error) : (b = t.onCallback) == null || b.call(t, u);
84
+ ux_mode: i() ? "redirect" : "popup",
85
+ callback(c) {
86
+ c?.error ? t.onRejectCallback?.(c.error) : t.onCallback?.(c);
80
87
  }
81
- })) == null ? void 0 : c.requestCode) == null || h.call(c);
88
+ })?.requestCode?.();
82
89
  }
83
- return y(() => {
84
- t.defaultLoad && s();
85
- }), d({
86
- startCheck: C
87
- }), () => {
88
- var o;
89
- return I("div", null, [(o = i.default) == null ? void 0 : o.call(i, {
90
- startCheck: C
91
- })]);
92
- };
90
+ return g(() => {
91
+ t.defaultLoad && p();
92
+ }), u({
93
+ startCheck: s
94
+ }), () => C("div", null, [r.default?.({
95
+ startCheck: s
96
+ })]);
93
97
  }
94
- }), $ = k(G);
98
+ }), F = h(b);
95
99
  export {
96
- $ as GoogleAuth,
97
- $ as default,
98
- g as toGoogleAuth
100
+ F as GoogleAuth,
101
+ F as default,
102
+ d as toGoogleAuth
99
103
  };
@@ -1,4 +1,4 @@
1
- import type { SlotsType, ExtractPropTypes } from 'vue';
1
+ import type { PropType, ExtractPropTypes } from 'vue';
2
2
  /** 跳转Telegram身份检查 */
3
3
  export declare function toTelegramAuth(botId: number, toPath: string): void;
4
4
  /** 获取路由中的Telegram身份检查回调参数 */
@@ -13,83 +13,42 @@ export interface TgUserData {
13
13
  photo_url: string;
14
14
  username: string;
15
15
  }
16
+ type GetPopupContainerFn = () => HTMLElement | Element;
16
17
  declare const _comp_props: {
17
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
18
- default: number;
18
+ botId: {
19
+ type: NumberConstructor;
19
20
  };
20
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
21
- default: string;
21
+ toPath: {
22
+ type: StringConstructor;
23
+ };
24
+ defaultLoad: {
25
+ type: BooleanConstructor;
26
+ };
27
+ getPopupContainer: {
28
+ type: PropType<GetPopupContainerFn>;
29
+ };
30
+ onCallback: {
31
+ type: PropType<(user: TgUserData) => void>;
32
+ };
33
+ onRejectCallback: {
34
+ type: PropType<() => void>;
22
35
  };
23
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
24
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
25
- onCallback: import("vue-types").VueTypeValidableDef<(user: TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: TgUserData) => void>>;
26
- onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
27
36
  };
28
37
  export type TelegramAuthProps = ExtractPropTypes<typeof _comp_props>;
29
38
  /** Telegram身份检查 */
30
39
  export declare const TelegramAuth: {
31
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
32
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
33
- default: number;
34
- };
35
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
36
- default: string;
37
- };
38
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
39
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
40
- onCallback: import("vue-types").VueTypeValidableDef<(user: TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: TgUserData) => void>>;
41
- onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
42
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
43
- botId: number;
44
- toPath: string;
45
- }, true, {}, SlotsType<{
46
- default: {
47
- startCheck: () => void;
48
- };
49
- }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
40
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<TelegramAuthProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
50
41
  P: {};
51
42
  B: {};
52
43
  D: {};
53
44
  C: {};
54
45
  M: {};
55
46
  Defaults: {};
56
- }, Readonly<ExtractPropTypes<{
57
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
58
- default: number;
59
- };
60
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
61
- default: string;
62
- };
63
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
64
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
65
- onCallback: import("vue-types").VueTypeValidableDef<(user: TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: TgUserData) => void>>;
66
- onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
67
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, {
68
- botId: number;
69
- toPath: string;
70
- }>;
47
+ }, Readonly<TelegramAuthProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
71
48
  __isFragment?: never;
72
49
  __isTeleport?: never;
73
50
  __isSuspense?: never;
74
- } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
75
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<number>> & {
76
- default: number;
77
- };
78
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<string>> & {
79
- default: string;
80
- };
81
- defaultLoad: import("vue-types").VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<boolean>>;
82
- getPopupContainer: import("vue-types").VueTypeValidableDef<() => HTMLElement | Element, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => HTMLElement | Element>>;
83
- onCallback: import("vue-types").VueTypeValidableDef<(user: TgUserData) => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<(user: TgUserData) => void>>;
84
- onRejectCallback: import("vue-types").VueTypeValidableDef<() => void, import("node_modules/vue-types/dist/shared/vue-types.d8e57a80.mjs").b<() => void>>;
85
- }>> & Readonly<{}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
86
- botId: number;
87
- toPath: string;
88
- }, {}, string, SlotsType<{
89
- default: {
90
- startCheck: () => void;
91
- };
92
- }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
51
+ } & import("vue").ComponentOptionsBase<Readonly<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 & {
93
52
  readonly toTelegramAuth: typeof toTelegramAuth;
94
53
  readonly getTelegramAuthUrlParams: typeof getTelegramAuthUrlParams;
95
54
  } & import("vue").Plugin;