@hoci/components 0.2.1

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,379 @@
1
+ import * as vue from 'vue';
2
+ import * as _hoci_core from '@hoci/core';
3
+
4
+ declare const HiAffix: vue.DefineComponent<{
5
+ as: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ wrapperAs: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ fixedClass: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ offset: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ offsetType: {
22
+ type: vue.PropType<"top" | "bottom">;
23
+ default: string;
24
+ };
25
+ target: {
26
+ type: vue.PropType<string | Window | HTMLElement>;
27
+ };
28
+ zIndex: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
33
+ [key: string]: any;
34
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
35
+ as: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ wrapperAs: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ fixedClass: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ offset: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ offsetType: {
52
+ type: vue.PropType<"top" | "bottom">;
53
+ default: string;
54
+ };
55
+ target: {
56
+ type: vue.PropType<string | Window | HTMLElement>;
57
+ };
58
+ zIndex: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ }>>, {
63
+ fixedClass: string;
64
+ offset: number;
65
+ offsetType: "top" | "bottom";
66
+ zIndex: number;
67
+ as: string;
68
+ wrapperAs: string;
69
+ }, {}>;
70
+
71
+ declare const HiSelection: vue.DefineComponent<{
72
+ as: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ modelValue: {
77
+ type: vue.PropType<any>;
78
+ default: () => null;
79
+ };
80
+ activeClass: {
81
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
82
+ default: string;
83
+ };
84
+ itemClass: {
85
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
86
+ default: string;
87
+ };
88
+ disabledClass: {
89
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
90
+ default: string;
91
+ };
92
+ unactiveClass: {
93
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
94
+ default: string;
95
+ };
96
+ label: {
97
+ type: vue.PropType<string | ((val?: any) => string) | null>;
98
+ };
99
+ multiple: {
100
+ type: (NumberConstructor | BooleanConstructor)[];
101
+ default: () => false;
102
+ };
103
+ clearable: {
104
+ type: BooleanConstructor;
105
+ };
106
+ defaultValue: {
107
+ type: vue.PropType<any>;
108
+ default: () => null;
109
+ };
110
+ activateEvent: {
111
+ type: vue.PropType<_hoci_core.ActivateEvent>;
112
+ default: () => "click";
113
+ };
114
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
115
+ [key: string]: any;
116
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "load" | "unload" | "update:modelValue")[], "change" | "load" | "unload" | "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
117
+ as: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ modelValue: {
122
+ type: vue.PropType<any>;
123
+ default: () => null;
124
+ };
125
+ activeClass: {
126
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
127
+ default: string;
128
+ };
129
+ itemClass: {
130
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
131
+ default: string;
132
+ };
133
+ disabledClass: {
134
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
135
+ default: string;
136
+ };
137
+ unactiveClass: {
138
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
139
+ default: string;
140
+ };
141
+ label: {
142
+ type: vue.PropType<string | ((val?: any) => string) | null>;
143
+ };
144
+ multiple: {
145
+ type: (NumberConstructor | BooleanConstructor)[];
146
+ default: () => false;
147
+ };
148
+ clearable: {
149
+ type: BooleanConstructor;
150
+ };
151
+ defaultValue: {
152
+ type: vue.PropType<any>;
153
+ default: () => null;
154
+ };
155
+ activateEvent: {
156
+ type: vue.PropType<_hoci_core.ActivateEvent>;
157
+ default: () => "click";
158
+ };
159
+ }>> & {
160
+ onChange?: ((...args: any[]) => any) | undefined;
161
+ onLoad?: ((...args: any[]) => any) | undefined;
162
+ onUnload?: ((...args: any[]) => any) | undefined;
163
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
164
+ }, {
165
+ multiple: number | boolean;
166
+ modelValue: any;
167
+ activeClass: string | string[] | Record<string, boolean>;
168
+ itemClass: string | string[] | Record<string, boolean>;
169
+ disabledClass: string | string[] | Record<string, boolean>;
170
+ unactiveClass: string | string[] | Record<string, boolean>;
171
+ clearable: boolean;
172
+ defaultValue: any;
173
+ activateEvent: _hoci_core.ActivateEvent;
174
+ as: string;
175
+ }, {}>;
176
+
177
+ declare const HiItem: vue.DefineComponent<{
178
+ as: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ value: {
183
+ type: vue.PropType<any>;
184
+ default(): string;
185
+ };
186
+ label: {
187
+ type: vue.PropType<_hoci_core.ElementLike | ((val: any) => string) | null>;
188
+ };
189
+ keepAlive: {
190
+ type: BooleanConstructor;
191
+ default: () => true;
192
+ };
193
+ key: {
194
+ type: vue.PropType<string | number | symbol>;
195
+ };
196
+ activateEvent: {
197
+ type: vue.PropType<_hoci_core.ActivateEvent>;
198
+ };
199
+ disabled: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
204
+ [key: string]: any;
205
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
206
+ as: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ value: {
211
+ type: vue.PropType<any>;
212
+ default(): string;
213
+ };
214
+ label: {
215
+ type: vue.PropType<_hoci_core.ElementLike | ((val: any) => string) | null>;
216
+ };
217
+ keepAlive: {
218
+ type: BooleanConstructor;
219
+ default: () => true;
220
+ };
221
+ key: {
222
+ type: vue.PropType<string | number | symbol>;
223
+ };
224
+ activateEvent: {
225
+ type: vue.PropType<_hoci_core.ActivateEvent>;
226
+ };
227
+ disabled: {
228
+ type: BooleanConstructor;
229
+ default: boolean;
230
+ };
231
+ }>>, {
232
+ value: any;
233
+ disabled: boolean;
234
+ keepAlive: boolean;
235
+ as: string;
236
+ }, {}>;
237
+
238
+ declare const HiIcon: vue.DefineComponent<{
239
+ as: {
240
+ type: StringConstructor;
241
+ default: string;
242
+ };
243
+ src: {
244
+ type: StringConstructor;
245
+ required: true;
246
+ };
247
+ size: {
248
+ type: (StringConstructor | NumberConstructor)[];
249
+ default: string;
250
+ };
251
+ width: {
252
+ type: (StringConstructor | NumberConstructor)[];
253
+ };
254
+ height: {
255
+ type: (StringConstructor | NumberConstructor)[];
256
+ };
257
+ color: {
258
+ type: StringConstructor;
259
+ };
260
+ mask: {
261
+ type: vue.PropType<boolean | "auto">;
262
+ default: () => "auto";
263
+ };
264
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
265
+ [key: string]: any;
266
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
267
+ as: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ src: {
272
+ type: StringConstructor;
273
+ required: true;
274
+ };
275
+ size: {
276
+ type: (StringConstructor | NumberConstructor)[];
277
+ default: string;
278
+ };
279
+ width: {
280
+ type: (StringConstructor | NumberConstructor)[];
281
+ };
282
+ height: {
283
+ type: (StringConstructor | NumberConstructor)[];
284
+ };
285
+ color: {
286
+ type: StringConstructor;
287
+ };
288
+ mask: {
289
+ type: vue.PropType<boolean | "auto">;
290
+ default: () => "auto";
291
+ };
292
+ }>>, {
293
+ mask: boolean | "auto";
294
+ size: string | number;
295
+ as: string;
296
+ }, {}>;
297
+
298
+ declare const HiSwitch: vue.DefineComponent<{
299
+ as: {
300
+ type: StringConstructor;
301
+ default: string;
302
+ };
303
+ modelValue: {
304
+ type: BooleanConstructor;
305
+ default: boolean;
306
+ };
307
+ class: {
308
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
309
+ required: true;
310
+ };
311
+ activeClass: {
312
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
313
+ default: string;
314
+ };
315
+ unactiveClass: {
316
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
317
+ default: string;
318
+ };
319
+ activateEvent: {
320
+ type: vue.PropType<_hoci_core.ActivateEvent>;
321
+ default: string;
322
+ };
323
+ disabled: {
324
+ type: BooleanConstructor;
325
+ default: boolean;
326
+ };
327
+ disabledClass: {
328
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
329
+ default: string;
330
+ };
331
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
332
+ [key: string]: any;
333
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
334
+ as: {
335
+ type: StringConstructor;
336
+ default: string;
337
+ };
338
+ modelValue: {
339
+ type: BooleanConstructor;
340
+ default: boolean;
341
+ };
342
+ class: {
343
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
344
+ required: true;
345
+ };
346
+ activeClass: {
347
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
348
+ default: string;
349
+ };
350
+ unactiveClass: {
351
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
352
+ default: string;
353
+ };
354
+ activateEvent: {
355
+ type: vue.PropType<_hoci_core.ActivateEvent>;
356
+ default: string;
357
+ };
358
+ disabled: {
359
+ type: BooleanConstructor;
360
+ default: boolean;
361
+ };
362
+ disabledClass: {
363
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
364
+ default: string;
365
+ };
366
+ }>> & {
367
+ onChange?: ((...args: any[]) => any) | undefined;
368
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
369
+ }, {
370
+ disabled: boolean;
371
+ modelValue: boolean;
372
+ activeClass: string | string[] | Record<string, boolean>;
373
+ disabledClass: string | string[] | Record<string, boolean>;
374
+ unactiveClass: string | string[] | Record<string, boolean>;
375
+ activateEvent: _hoci_core.ActivateEvent;
376
+ as: string;
377
+ }, {}>;
378
+
379
+ export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch };