@a2simcode/ui 0.0.8 → 0.0.11

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.
Files changed (34) hide show
  1. package/dist/components/count/index.d.ts +73 -0
  2. package/dist/components/count/src/count.vue.d.ts +41 -0
  3. package/dist/components/count-up/index.d.ts +87 -0
  4. package/dist/components/count-up/src/count-up.vue.d.ts +43 -0
  5. package/dist/components/data-panel/index.d.ts +27 -0
  6. package/dist/components/data-panel/src/data-panel.vue.d.ts +24 -0
  7. package/dist/components/divider/index.d.ts +25 -0
  8. package/dist/components/divider/src/divider.vue.d.ts +29 -0
  9. package/dist/components/guid/index.d.ts +35 -0
  10. package/dist/components/guid/src/guid.vue.d.ts +28 -0
  11. package/dist/components/hpanel/index.d.ts +22 -0
  12. package/dist/components/hpanel/src/hpanel.vue.d.ts +19 -0
  13. package/dist/components/index.d.ts +19 -1
  14. package/dist/components/input/index.d.ts +3 -3
  15. package/dist/components/input/src/input.vue.d.ts +1 -1
  16. package/dist/components/input-button/index.d.ts +65 -0
  17. package/dist/components/input-button/src/input-button.vue.d.ts +65 -0
  18. package/dist/components/input-code/index.d.ts +52 -0
  19. package/dist/components/input-code/src/input-code.vue.d.ts +41 -0
  20. package/dist/components/slider-captcha/index.d.ts +190 -0
  21. package/dist/components/slider-captcha/src/slider-captcha-action.vue.d.ts +14 -0
  22. package/dist/components/slider-captcha/src/slider-captcha-bar.vue.d.ts +12 -0
  23. package/dist/components/slider-captcha/src/slider-captcha-content.vue.d.ts +45 -0
  24. package/dist/components/slider-captcha/src/slider-captcha.vue.d.ts +262 -0
  25. package/dist/components/slider-captcha/src/types.d.ts +149 -0
  26. package/dist/components/title/index.d.ts +37 -0
  27. package/dist/components/title/src/title.vue.d.ts +35 -0
  28. package/dist/core/utils/common.d.ts +26 -0
  29. package/dist/core/utils/is.d.ts +2 -0
  30. package/dist/simcode-ui.es.js +2696 -1815
  31. package/dist/simcode-ui.umd.js +16 -1
  32. package/dist/stats.html +1 -1
  33. package/dist/ui.css +1 -1
  34. package/package.json +3 -1
@@ -0,0 +1,65 @@
1
+ export interface InputButtonProps {
2
+ /** 输入值 */
3
+ modelValue?: string | Record<string, any>;
4
+ /** 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮 */
5
+ type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
6
+ /** 弹窗类型,弹窗、全屏弹窗、抽屉 */
7
+ layerType?: 'model' | 'full' | 'drawer';
8
+ /** 设置按钮文字 */
9
+ btnText?: string;
10
+ /** 弹窗标题 */
11
+ title?: string;
12
+ /** 设置按钮大小 */
13
+ size?: 'large' | 'default' | 'small';
14
+ /** 宽度 */
15
+ width?: string | number;
16
+ /** 高度 */
17
+ height?: number;
18
+ /** 关闭时销毁抽屉内的元素 */
19
+ destroyOnClose?: boolean;
20
+ /** 弹窗打开回调 */
21
+ open?: (value?: string | Record<string, any>) => void;
22
+ /** 弹窗保存回调 */
23
+ ok?: () => Promise<string | Record<string, any>>;
24
+ /** 弹窗关闭前回调 */
25
+ beforeClose?: (value?: string | Record<string, any>) => boolean | Promise<boolean>;
26
+ /** 弹窗关闭后回调 */
27
+ closed?: () => void;
28
+ }
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: {
32
+ default?(_: {}): any;
33
+ };
34
+ refs: {
35
+ layerRef: unknown;
36
+ };
37
+ rootEl: any;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue').DefineComponent<InputButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ "update:modelValue": (value: string | Record<string, any> | undefined) => any;
42
+ change: (data: {
43
+ value: string | Record<string, any> | undefined;
44
+ }) => any;
45
+ }, string, import('vue').PublicProps, Readonly<InputButtonProps> & Readonly<{
46
+ "onUpdate:modelValue"?: ((value: string | Record<string, any> | undefined) => any) | undefined;
47
+ onChange?: ((data: {
48
+ value: string | Record<string, any> | undefined;
49
+ }) => any) | undefined;
50
+ }>, {
51
+ size: "large" | "default" | "small";
52
+ height: number;
53
+ width: string | number;
54
+ destroyOnClose: boolean;
55
+ btnText: string;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
57
+ layerRef: unknown;
58
+ }, any>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
60
+ export default _default;
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -0,0 +1,52 @@
1
+ declare const JInputCode: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').InputCodeProps> & Readonly<{
3
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
4
+ onChange?: ((data: any) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: string | undefined) => any;
7
+ change: (data: any) => any;
8
+ }, import('vue').PublicProps, {
9
+ height: number;
10
+ mode: string;
11
+ width: string | number;
12
+ btnText: string;
13
+ example: string;
14
+ isHint: boolean;
15
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<import('..').InputCodeProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
24
+ onChange?: ((data: any) => any) | undefined;
25
+ }>, {}, {}, {}, {}, {
26
+ height: number;
27
+ mode: string;
28
+ width: string | number;
29
+ btnText: string;
30
+ example: string;
31
+ isHint: boolean;
32
+ }>;
33
+ __isFragment?: never;
34
+ __isTeleport?: never;
35
+ __isSuspense?: never;
36
+ } & import('vue').ComponentOptionsBase<Readonly<import('..').InputCodeProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
38
+ onChange?: ((data: any) => any) | undefined;
39
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
+ "update:modelValue": (value: string | undefined) => any;
41
+ change: (data: any) => any;
42
+ }, string, {
43
+ height: number;
44
+ mode: string;
45
+ width: string | number;
46
+ btnText: string;
47
+ example: string;
48
+ isHint: boolean;
49
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
50
+ install: (app: import('vue').App) => void;
51
+ };
52
+ export default JInputCode;
@@ -0,0 +1,41 @@
1
+ export interface InputCodeProps {
2
+ /** 输入值 */
3
+ modelValue?: string;
4
+ /** 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮 */
5
+ type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
6
+ /** 脚本类型 */
7
+ mode?: string;
8
+ /** 按钮文字 */
9
+ btnText?: string;
10
+ /** 弹窗标题 */
11
+ title?: string;
12
+ /** 设置按钮大小 */
13
+ size?: 'large' | 'default' | 'small';
14
+ /** 宽度 */
15
+ width?: string | number;
16
+ /** 高度 */
17
+ height?: number;
18
+ /** 示例代码 */
19
+ example?: string;
20
+ /** 弹窗关闭前回调 */
21
+ beforeClose?: (code: string) => boolean | Promise<boolean>;
22
+ /** 是否开启自动补全 */
23
+ isHint?: boolean;
24
+ /** 自动补全方法 */
25
+ handleHint?: (...args: any[]) => any;
26
+ }
27
+ declare const _default: import('vue').DefineComponent<InputCodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ "update:modelValue": (value: string | undefined) => any;
29
+ change: (data: any) => any;
30
+ }, string, import('vue').PublicProps, Readonly<InputCodeProps> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
32
+ onChange?: ((data: any) => any) | undefined;
33
+ }>, {
34
+ height: number;
35
+ mode: string;
36
+ width: string | number;
37
+ btnText: string;
38
+ example: string;
39
+ isHint: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ export default _default;
@@ -0,0 +1,190 @@
1
+ export declare const JSliderCaptcha: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ modelValue?: boolean;
4
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
6
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
7
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
8
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
9
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:modelValue": (value: boolean) => any;
12
+ move: (args_0: import('./src/types').SliderRotateVerifyPassingData) => any;
13
+ success: (args_0: import('./src/types').CaptchaVerifyPassingData) => any;
14
+ start: (args_0: MouseEvent | TouchEvent) => any;
15
+ end: (args_0: MouseEvent | TouchEvent) => any;
16
+ }, import('vue').PublicProps, {
17
+ text: string;
18
+ actionStyle: import('vue').CSSProperties;
19
+ barStyle: import('vue').CSSProperties;
20
+ contentStyle: import('vue').CSSProperties;
21
+ wrapperStyle: import('vue').CSSProperties;
22
+ successText: string;
23
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
24
+ wrapperRef: HTMLDivElement;
25
+ barRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
26
+ barStyle: import('vue').CSSProperties;
27
+ toLeft: boolean;
28
+ }> & Readonly<{}>, {
29
+ getEl: () => HTMLDivElement | null;
30
+ setWidth: (val: string) => void;
31
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
+ barRef: HTMLDivElement;
33
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly<{
41
+ barStyle: import('vue').CSSProperties;
42
+ toLeft: boolean;
43
+ }> & Readonly<{}>, {
44
+ getEl: () => HTMLDivElement | null;
45
+ setWidth: (val: string) => void;
46
+ }, {}, {}, {}, {}> | null;
47
+ contentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
48
+ contentStyle: {
49
+ type: ObjectConstructor;
50
+ default: () => {};
51
+ };
52
+ isPassing: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ animationDuration: {
57
+ type: (StringConstructor | NumberConstructor)[];
58
+ default: number;
59
+ };
60
+ animationIterationCount: {
61
+ type: (StringConstructor | NumberConstructor)[];
62
+ default: string;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ getEl: () => HTMLDivElement | null;
66
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
67
+ isPassing: boolean;
68
+ animationDuration: string | number;
69
+ animationIterationCount: string | number;
70
+ contentStyle: Record<string, any>;
71
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
72
+ contentRef: HTMLDivElement;
73
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
74
+ P: {};
75
+ B: {};
76
+ D: {};
77
+ C: {};
78
+ M: {};
79
+ Defaults: {};
80
+ }, Readonly<import('vue').ExtractPropTypes<{
81
+ contentStyle: {
82
+ type: ObjectConstructor;
83
+ default: () => {};
84
+ };
85
+ isPassing: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ animationDuration: {
90
+ type: (StringConstructor | NumberConstructor)[];
91
+ default: number;
92
+ };
93
+ animationIterationCount: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ default: string;
96
+ };
97
+ }>> & Readonly<{}>, {
98
+ getEl: () => HTMLDivElement | null;
99
+ }, {}, {}, {}, {
100
+ isPassing: boolean;
101
+ animationDuration: string | number;
102
+ animationIterationCount: string | number;
103
+ contentStyle: Record<string, any>;
104
+ }> | null;
105
+ actionRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
106
+ actionStyle: import('vue').CSSProperties;
107
+ isPassing: boolean;
108
+ toLeft: boolean;
109
+ }> & Readonly<{}>, {
110
+ getEl: () => HTMLDivElement | null;
111
+ getStyle: () => CSSStyleDeclaration | undefined;
112
+ setLeft: (val: string) => void;
113
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
114
+ actionRef: HTMLDivElement;
115
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
116
+ P: {};
117
+ B: {};
118
+ D: {};
119
+ C: {};
120
+ M: {};
121
+ Defaults: {};
122
+ }, Readonly<{
123
+ actionStyle: import('vue').CSSProperties;
124
+ isPassing: boolean;
125
+ toLeft: boolean;
126
+ }> & Readonly<{}>, {
127
+ getEl: () => HTMLDivElement | null;
128
+ getStyle: () => CSSStyleDeclaration | undefined;
129
+ setLeft: (val: string) => void;
130
+ }, {}, {}, {}, {}> | null;
131
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
132
+ P: {};
133
+ B: {};
134
+ D: {};
135
+ C: {};
136
+ M: {};
137
+ Defaults: {};
138
+ }, Readonly<{
139
+ modelValue?: boolean;
140
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
141
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
142
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
143
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
144
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
145
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
146
+ }>, {}, {}, {}, {}, {
147
+ text: string;
148
+ actionStyle: import('vue').CSSProperties;
149
+ barStyle: import('vue').CSSProperties;
150
+ contentStyle: import('vue').CSSProperties;
151
+ wrapperStyle: import('vue').CSSProperties;
152
+ successText: string;
153
+ }>;
154
+ __isFragment?: never;
155
+ __isTeleport?: never;
156
+ __isSuspense?: never;
157
+ } & import('vue').ComponentOptionsBase<Readonly<{
158
+ modelValue?: boolean;
159
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
160
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
161
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
162
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
163
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
164
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
165
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
166
+ "update:modelValue": (value: boolean) => any;
167
+ move: (args_0: import('./src/types').SliderRotateVerifyPassingData) => any;
168
+ success: (args_0: import('./src/types').CaptchaVerifyPassingData) => any;
169
+ start: (args_0: MouseEvent | TouchEvent) => any;
170
+ end: (args_0: MouseEvent | TouchEvent) => any;
171
+ }, string, {
172
+ text: string;
173
+ actionStyle: import('vue').CSSProperties;
174
+ barStyle: import('vue').CSSProperties;
175
+ contentStyle: import('vue').CSSProperties;
176
+ wrapperStyle: import('vue').CSSProperties;
177
+ successText: string;
178
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
179
+ $slots: {
180
+ text?(_: {
181
+ isPassing: boolean;
182
+ }): any;
183
+ actionIcon?(_: {
184
+ isPassing: boolean;
185
+ }): any;
186
+ };
187
+ }) & {
188
+ install: (app: import('vue').App) => void;
189
+ };
190
+ export default JSliderCaptcha;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ actionStyle: CSSProperties;
4
+ isPassing: boolean;
5
+ toLeft: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ getEl: () => HTMLDivElement | null;
9
+ getStyle: () => CSSStyleDeclaration | undefined;
10
+ setLeft: (val: string) => void;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
+ actionRef: HTMLDivElement;
13
+ }, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ barStyle: CSSProperties;
4
+ toLeft: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
7
+ getEl: () => HTMLDivElement | null;
8
+ setWidth: (val: string) => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ barRef: HTMLDivElement;
11
+ }, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,45 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ contentStyle: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ isPassing: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ animationDuration: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: number;
13
+ };
14
+ animationIterationCount: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: string;
17
+ };
18
+ }>, {
19
+ getEl: () => HTMLDivElement | null;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ contentStyle: {
22
+ type: ObjectConstructor;
23
+ default: () => {};
24
+ };
25
+ isPassing: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ animationDuration: {
30
+ type: (StringConstructor | NumberConstructor)[];
31
+ default: number;
32
+ };
33
+ animationIterationCount: {
34
+ type: (StringConstructor | NumberConstructor)[];
35
+ default: string;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ isPassing: boolean;
39
+ animationDuration: string | number;
40
+ animationIterationCount: string | number;
41
+ contentStyle: Record<string, any>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
43
+ contentRef: HTMLDivElement;
44
+ }, HTMLDivElement>;
45
+ export default _default;