ra-element 0.1.52 → 0.1.53

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.
@@ -6,25 +6,192 @@ declare function __VLS_template(): {
6
6
  icon?(_: {}): any;
7
7
  };
8
8
  refs: {
9
- componentRef: unknown;
10
- };
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
- click: {
16
- type: FunctionConstructor;
17
- default: undefined;
18
- };
19
- cssStyle: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- }>, {
24
- component: import('vue').Ref<({
25
- $: import('vue').ComponentInternalInstance;
26
- $data: {};
27
- $props: Partial<{
9
+ componentRef: ({
10
+ $: import('vue').ComponentInternalInstance;
11
+ $data: {};
12
+ $props: Partial<{
13
+ readonly link: boolean;
14
+ readonly circle: boolean;
15
+ readonly text: boolean;
16
+ readonly disabled: boolean;
17
+ readonly round: boolean;
18
+ readonly dark: boolean;
19
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
20
+ readonly bg: boolean;
21
+ readonly loading: boolean;
22
+ readonly autofocus: boolean;
23
+ readonly tag: string | import('vue').Component;
24
+ readonly plain: boolean;
25
+ readonly autoInsertSpace: boolean;
26
+ readonly nativeType: "button" | "reset" | "submit";
27
+ readonly loadingIcon: string | import('vue').Component;
28
+ }> & Omit<{
29
+ readonly disabled: boolean;
30
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
31
+ readonly link: boolean;
32
+ readonly circle: boolean;
33
+ readonly nativeType: "button" | "reset" | "submit";
34
+ readonly loading: boolean;
35
+ readonly bg: boolean;
36
+ readonly autofocus: boolean;
37
+ readonly dark: boolean;
38
+ readonly tag: string | import('vue').Component;
39
+ readonly text?: boolean | undefined;
40
+ readonly size?: ("" | "default" | "small" | "large") | undefined;
41
+ readonly icon?: (string | import('vue').Component) | undefined;
42
+ readonly loadingIcon?: (string | import('vue').Component) | undefined;
43
+ readonly plain?: boolean | undefined;
44
+ readonly round?: boolean | undefined;
45
+ readonly color?: string | undefined;
46
+ readonly autoInsertSpace?: boolean | undefined;
47
+ onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
48
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "link" | "circle" | "text" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag">;
49
+ $attrs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $refs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $slots: Readonly<{
56
+ [name: string]: import('vue').Slot<any> | undefined;
57
+ }>;
58
+ $root: import('vue').ComponentPublicInstance | null;
59
+ $parent: import('vue').ComponentPublicInstance | null;
60
+ $host: Element | null;
61
+ $emit: (event: "click", evt: MouseEvent) => void;
62
+ $el: any;
63
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
64
+ readonly size: {
65
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
66
+ readonly required: false;
67
+ readonly validator: ((val: unknown) => boolean) | undefined;
68
+ __epPropKey: true;
69
+ };
70
+ readonly disabled: BooleanConstructor;
71
+ readonly type: {
72
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
73
+ readonly required: false;
74
+ readonly validator: ((val: unknown) => boolean) | undefined;
75
+ __epPropKey: true;
76
+ } & {
77
+ readonly default: "";
78
+ };
79
+ readonly icon: {
80
+ readonly type: import('vue').PropType<string | import('vue').Component>;
81
+ readonly required: false;
82
+ readonly validator: ((val: unknown) => boolean) | undefined;
83
+ __epPropKey: true;
84
+ };
85
+ readonly nativeType: {
86
+ readonly type: import('vue').PropType<"button" | "reset" | "submit">;
87
+ readonly required: false;
88
+ readonly validator: ((val: unknown) => boolean) | undefined;
89
+ __epPropKey: true;
90
+ } & {
91
+ readonly default: "button";
92
+ };
93
+ readonly loading: BooleanConstructor;
94
+ readonly loadingIcon: {
95
+ readonly type: import('vue').PropType<string | import('vue').Component>;
96
+ readonly required: false;
97
+ readonly validator: ((val: unknown) => boolean) | undefined;
98
+ __epPropKey: true;
99
+ } & {
100
+ readonly default: () => any;
101
+ };
102
+ readonly plain: {
103
+ readonly type: import('vue').PropType<boolean>;
104
+ readonly required: false;
105
+ readonly validator: ((val: unknown) => boolean) | undefined;
106
+ __epPropKey: true;
107
+ } & {
108
+ readonly default: undefined;
109
+ };
110
+ readonly text: {
111
+ readonly type: import('vue').PropType<boolean>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ } & {
116
+ readonly default: undefined;
117
+ };
118
+ readonly link: BooleanConstructor;
119
+ readonly bg: BooleanConstructor;
120
+ readonly autofocus: BooleanConstructor;
121
+ readonly round: {
122
+ readonly type: import('vue').PropType<boolean>;
123
+ readonly required: false;
124
+ readonly validator: ((val: unknown) => boolean) | undefined;
125
+ __epPropKey: true;
126
+ } & {
127
+ readonly default: undefined;
128
+ };
129
+ readonly circle: BooleanConstructor;
130
+ readonly color: StringConstructor;
131
+ readonly dark: BooleanConstructor;
132
+ readonly autoInsertSpace: {
133
+ readonly type: import('vue').PropType<boolean>;
134
+ readonly required: false;
135
+ readonly validator: ((val: unknown) => boolean) | undefined;
136
+ __epPropKey: true;
137
+ } & {
138
+ readonly default: undefined;
139
+ };
140
+ readonly tag: {
141
+ readonly type: import('vue').PropType<string | import('vue').Component>;
142
+ readonly required: false;
143
+ readonly validator: ((val: unknown) => boolean) | undefined;
144
+ __epPropKey: true;
145
+ } & {
146
+ readonly default: "button";
147
+ };
148
+ }>> & {
149
+ onClick?: ((evt: MouseEvent) => any) | undefined;
150
+ }, {
151
+ ref: import('vue').Ref<HTMLButtonElement | undefined>;
152
+ size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
153
+ type: import('vue').ComputedRef<string>;
154
+ disabled: import('vue').ComputedRef<boolean>;
155
+ shouldAddSpace: import('vue').ComputedRef<boolean>;
156
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
+ click: (evt: MouseEvent) => void;
158
+ }, string, {
159
+ readonly link: boolean;
160
+ readonly circle: boolean;
161
+ readonly text: boolean;
162
+ readonly disabled: boolean;
163
+ readonly round: boolean;
164
+ readonly dark: boolean;
165
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
166
+ readonly bg: boolean;
167
+ readonly loading: boolean;
168
+ readonly autofocus: boolean;
169
+ readonly tag: string | import('vue').Component;
170
+ readonly plain: boolean;
171
+ readonly autoInsertSpace: boolean;
172
+ readonly nativeType: "button" | "reset" | "submit";
173
+ readonly loadingIcon: string | import('vue').Component;
174
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
175
+ beforeCreate?: (() => void) | (() => void)[];
176
+ created?: (() => void) | (() => void)[];
177
+ beforeMount?: (() => void) | (() => void)[];
178
+ mounted?: (() => void) | (() => void)[];
179
+ beforeUpdate?: (() => void) | (() => void)[];
180
+ updated?: (() => void) | (() => void)[];
181
+ activated?: (() => void) | (() => void)[];
182
+ deactivated?: (() => void) | (() => void)[];
183
+ beforeDestroy?: (() => void) | (() => void)[];
184
+ beforeUnmount?: (() => void) | (() => void)[];
185
+ destroyed?: (() => void) | (() => void)[];
186
+ unmounted?: (() => void) | (() => void)[];
187
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
188
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
189
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
190
+ };
191
+ $forceUpdate: () => void;
192
+ $nextTick: typeof import('vue').nextTick;
193
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
194
+ } & Readonly<{
28
195
  readonly link: boolean;
29
196
  readonly circle: boolean;
30
197
  readonly text: boolean;
@@ -40,42 +207,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
40
207
  readonly autoInsertSpace: boolean;
41
208
  readonly nativeType: "button" | "reset" | "submit";
42
209
  readonly loadingIcon: string | import('vue').Component;
43
- }> & Omit<{
44
- readonly disabled: boolean;
45
- readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
46
- readonly link: boolean;
47
- readonly circle: boolean;
48
- readonly nativeType: "button" | "reset" | "submit";
49
- readonly loading: boolean;
50
- readonly bg: boolean;
51
- readonly autofocus: boolean;
52
- readonly dark: boolean;
53
- readonly tag: string | import('vue').Component;
54
- readonly text?: boolean | undefined;
55
- readonly size?: ("" | "default" | "small" | "large") | undefined;
56
- readonly icon?: (string | import('vue').Component) | undefined;
57
- readonly loadingIcon?: (string | import('vue').Component) | undefined;
58
- readonly plain?: boolean | undefined;
59
- readonly round?: boolean | undefined;
60
- readonly color?: string | undefined;
61
- readonly autoInsertSpace?: boolean | undefined;
62
- onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
63
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "link" | "circle" | "text" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag">;
64
- $attrs: {
65
- [x: string]: unknown;
66
- };
67
- $refs: {
68
- [x: string]: unknown;
69
- };
70
- $slots: Readonly<{
71
- [name: string]: import('vue').Slot<any> | undefined;
72
- }>;
73
- $root: import('vue').ComponentPublicInstance | null;
74
- $parent: import('vue').ComponentPublicInstance | null;
75
- $host: Element | null;
76
- $emit: (event: "click", evt: MouseEvent) => void;
77
- $el: any;
78
- $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
210
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
79
211
  readonly size: {
80
212
  readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
81
213
  readonly required: false;
@@ -162,166 +294,52 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
162
294
  };
163
295
  }>> & {
164
296
  onClick?: ((evt: MouseEvent) => any) | undefined;
165
- }, {
297
+ }, "disabled" | "type" | "link" | "circle" | "text" | "ref" | "size" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
166
298
  ref: import('vue').Ref<HTMLButtonElement | undefined>;
167
299
  size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
168
300
  type: import('vue').ComputedRef<string>;
169
301
  disabled: import('vue').ComputedRef<boolean>;
170
302
  shouldAddSpace: import('vue').ComputedRef<boolean>;
171
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
172
- click: (evt: MouseEvent) => void;
173
- }, string, {
174
- readonly link: boolean;
175
- readonly circle: boolean;
176
- readonly text: boolean;
177
- readonly disabled: boolean;
178
- readonly round: boolean;
179
- readonly dark: boolean;
180
- readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
181
- readonly bg: boolean;
182
- readonly loading: boolean;
183
- readonly autofocus: boolean;
184
- readonly tag: string | import('vue').Component;
185
- readonly plain: boolean;
186
- readonly autoInsertSpace: boolean;
187
- readonly nativeType: "button" | "reset" | "submit";
188
- readonly loadingIcon: string | import('vue').Component;
189
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
190
- beforeCreate?: (() => void) | (() => void)[];
191
- created?: (() => void) | (() => void)[];
192
- beforeMount?: (() => void) | (() => void)[];
193
- mounted?: (() => void) | (() => void)[];
194
- beforeUpdate?: (() => void) | (() => void)[];
195
- updated?: (() => void) | (() => void)[];
196
- activated?: (() => void) | (() => void)[];
197
- deactivated?: (() => void) | (() => void)[];
198
- beforeDestroy?: (() => void) | (() => void)[];
199
- beforeUnmount?: (() => void) | (() => void)[];
200
- destroyed?: (() => void) | (() => void)[];
201
- unmounted?: (() => void) | (() => void)[];
202
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
203
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
204
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
205
- };
206
- $forceUpdate: () => void;
207
- $nextTick: typeof import('vue').nextTick;
208
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
209
- } & Readonly<{
210
- readonly link: boolean;
211
- readonly circle: boolean;
212
- readonly text: boolean;
213
- readonly disabled: boolean;
214
- readonly round: boolean;
215
- readonly dark: boolean;
216
- readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
217
- readonly bg: boolean;
218
- readonly loading: boolean;
219
- readonly autofocus: boolean;
220
- readonly tag: string | import('vue').Component;
221
- readonly plain: boolean;
222
- readonly autoInsertSpace: boolean;
223
- readonly nativeType: "button" | "reset" | "submit";
224
- readonly loadingIcon: string | import('vue').Component;
225
- }> & Omit<Readonly<import('vue').ExtractPropTypes<{
226
- readonly size: {
227
- readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
228
- readonly required: false;
229
- readonly validator: ((val: unknown) => boolean) | undefined;
230
- __epPropKey: true;
231
- };
232
- readonly disabled: BooleanConstructor;
233
- readonly type: {
234
- readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
235
- readonly required: false;
236
- readonly validator: ((val: unknown) => boolean) | undefined;
237
- __epPropKey: true;
238
- } & {
239
- readonly default: "";
240
- };
241
- readonly icon: {
242
- readonly type: import('vue').PropType<string | import('vue').Component>;
243
- readonly required: false;
244
- readonly validator: ((val: unknown) => boolean) | undefined;
245
- __epPropKey: true;
246
- };
247
- readonly nativeType: {
248
- readonly type: import('vue').PropType<"button" | "reset" | "submit">;
249
- readonly required: false;
250
- readonly validator: ((val: unknown) => boolean) | undefined;
251
- __epPropKey: true;
252
- } & {
253
- readonly default: "button";
254
- };
255
- readonly loading: BooleanConstructor;
256
- readonly loadingIcon: {
257
- readonly type: import('vue').PropType<string | import('vue').Component>;
258
- readonly required: false;
259
- readonly validator: ((val: unknown) => boolean) | undefined;
260
- __epPropKey: true;
261
- } & {
262
- readonly default: () => any;
263
- };
264
- readonly plain: {
265
- readonly type: import('vue').PropType<boolean>;
266
- readonly required: false;
267
- readonly validator: ((val: unknown) => boolean) | undefined;
268
- __epPropKey: true;
269
- } & {
270
- readonly default: undefined;
271
- };
272
- readonly text: {
273
- readonly type: import('vue').PropType<boolean>;
274
- readonly required: false;
275
- readonly validator: ((val: unknown) => boolean) | undefined;
276
- __epPropKey: true;
277
- } & {
278
- readonly default: undefined;
279
- };
280
- readonly link: BooleanConstructor;
281
- readonly bg: BooleanConstructor;
282
- readonly autofocus: BooleanConstructor;
283
- readonly round: {
284
- readonly type: import('vue').PropType<boolean>;
285
- readonly required: false;
286
- readonly validator: ((val: unknown) => boolean) | undefined;
287
- __epPropKey: true;
288
- } & {
289
- readonly default: undefined;
290
- };
291
- readonly circle: BooleanConstructor;
292
- readonly color: StringConstructor;
293
- readonly dark: BooleanConstructor;
294
- readonly autoInsertSpace: {
295
- readonly type: import('vue').PropType<boolean>;
296
- readonly required: false;
297
- readonly validator: ((val: unknown) => boolean) | undefined;
298
- __epPropKey: true;
299
- } & {
300
- readonly default: undefined;
301
- };
302
- readonly tag: {
303
- readonly type: import('vue').PropType<string | import('vue').Component>;
304
- readonly required: false;
305
- readonly validator: ((val: unknown) => boolean) | undefined;
306
- __epPropKey: true;
307
- } & {
308
- readonly default: "button";
309
- };
310
- }>> & {
311
- onClick?: ((evt: MouseEvent) => any) | undefined;
312
- }, "disabled" | "type" | "link" | "circle" | "text" | "ref" | "size" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
313
- ref: import('vue').Ref<HTMLButtonElement | undefined>;
314
- size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
315
- type: import('vue').ComputedRef<string>;
316
- disabled: import('vue').ComputedRef<boolean>;
317
- shouldAddSpace: import('vue').ComputedRef<boolean>;
318
- }> & {} & import('vue').ComponentCustomProperties & {} & {
319
- $slots: {
320
- loading?(_: {}): any;
321
- icon?(_: {}): any;
322
- default?(_: {}): any;
323
- };
324
- }) | null, ({
303
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
304
+ $slots: {
305
+ loading?(_: {}): any;
306
+ icon?(_: {}): any;
307
+ default?(_: {}): any;
308
+ };
309
+ }) | null;
310
+ };
311
+ rootEl: any;
312
+ };
313
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
314
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
315
+ click: {
316
+ type: FunctionConstructor;
317
+ default: undefined;
318
+ };
319
+ cssStyle: {
320
+ type: StringConstructor;
321
+ default: string;
322
+ };
323
+ }>, {
324
+ component: any;
325
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
326
+ click: (...args: any[]) => void;
327
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
328
+ click: {
329
+ type: FunctionConstructor;
330
+ default: undefined;
331
+ };
332
+ cssStyle: {
333
+ type: StringConstructor;
334
+ default: string;
335
+ };
336
+ }>> & Readonly<{
337
+ onClick?: ((...args: any[]) => any) | undefined;
338
+ }>, {
339
+ click: Function;
340
+ cssStyle: string;
341
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
342
+ componentRef: ({
325
343
  $: import('vue').ComponentInternalInstance;
326
344
  $data: {};
327
345
  $props: Partial<{
@@ -621,25 +639,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
621
639
  icon?(_: {}): any;
622
640
  default?(_: {}): any;
623
641
  };
624
- }) | null>;
625
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
626
- click: (...args: any[]) => void;
627
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
628
- click: {
629
- type: FunctionConstructor;
630
- default: undefined;
631
- };
632
- cssStyle: {
633
- type: StringConstructor;
634
- default: string;
635
- };
636
- }>> & Readonly<{
637
- onClick?: ((...args: any[]) => any) | undefined;
638
- }>, {
639
- click: Function;
640
- cssStyle: string;
641
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
642
- componentRef: unknown;
642
+ }) | null;
643
643
  }, any>;
644
644
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
645
645
  export default _default;