yahee-components 0.0.103 → 0.0.105

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,462 @@
1
+ import { SFCWithInstall } from '../utils/typescript';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComputedRef, Ref, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives } from 'vue';
3
+ import { DropdownEntity } from './drop-down-condition';
4
+ import { TooltipTriggerType, PopperEffect, Placement, Options, ButtonProps, Translator, TooltipInstance } from 'element-plus';
5
+ export declare const YaheeDropDownCondition: SFCWithInstall<DefineComponent<{
6
+ filterList?: Array< DropdownEntity>;
7
+ totalCount?: number;
8
+ level1Count?: Array<{
9
+ value: string;
10
+ count: number;
11
+ }>;
12
+ level2Count?: Array<{
13
+ value: string;
14
+ count: number;
15
+ }>;
16
+ filterKey: string;
17
+ enumEntity: string;
18
+ noNeedRefreshNumFilterName?: string;
19
+ initFilters?: Function;
20
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ filterChange: (...args: any[]) => void;
22
+ setNoNeedRefreshNumFilterName: (...args: any[]) => void;
23
+ }, string, PublicProps, Readonly<{
24
+ filterList?: Array< DropdownEntity>;
25
+ totalCount?: number;
26
+ level1Count?: Array<{
27
+ value: string;
28
+ count: number;
29
+ }>;
30
+ level2Count?: Array<{
31
+ value: string;
32
+ count: number;
33
+ }>;
34
+ filterKey: string;
35
+ enumEntity: string;
36
+ noNeedRefreshNumFilterName?: string;
37
+ initFilters?: Function;
38
+ }> & Readonly<{
39
+ onFilterChange?: (...args: any[]) => any;
40
+ onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
41
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
42
+ dropdown1: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
43
+ readonly trigger: {
44
+ readonly type: PropType< TooltipTriggerType | TooltipTriggerType[]>;
45
+ readonly required: false;
46
+ readonly validator: ((val: unknown) => boolean) | undefined;
47
+ __epPropKey: true;
48
+ } & {
49
+ readonly default: "hover";
50
+ };
51
+ readonly triggerKeys: {
52
+ readonly type: PropType<string[]>;
53
+ readonly required: false;
54
+ readonly validator: ((val: unknown) => boolean) | undefined;
55
+ __epPropKey: true;
56
+ } & {
57
+ readonly default: () => string[];
58
+ };
59
+ readonly effect: {
60
+ readonly default: "light";
61
+ readonly type: PropType<PopperEffect>;
62
+ readonly required: false;
63
+ readonly validator: ((val: unknown) => boolean) | undefined;
64
+ readonly __epPropKey: true;
65
+ };
66
+ readonly type: {
67
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
68
+ readonly required: false;
69
+ readonly validator: ((val: unknown) => boolean) | undefined;
70
+ __epPropKey: true;
71
+ };
72
+ readonly placement: {
73
+ readonly type: PropType<Placement>;
74
+ readonly required: false;
75
+ readonly validator: ((val: unknown) => boolean) | undefined;
76
+ __epPropKey: true;
77
+ } & {
78
+ readonly default: "bottom";
79
+ };
80
+ readonly popperOptions: {
81
+ readonly type: PropType<Partial< Options>>;
82
+ readonly required: false;
83
+ readonly validator: ((val: unknown) => boolean) | undefined;
84
+ __epPropKey: true;
85
+ } & {
86
+ readonly default: () => {};
87
+ };
88
+ readonly id: StringConstructor;
89
+ readonly size: {
90
+ readonly type: PropType<string>;
91
+ readonly required: false;
92
+ readonly validator: ((val: unknown) => boolean) | undefined;
93
+ __epPropKey: true;
94
+ } & {
95
+ readonly default: "";
96
+ };
97
+ readonly splitButton: BooleanConstructor;
98
+ readonly hideOnClick: {
99
+ readonly type: PropType<boolean>;
100
+ readonly required: false;
101
+ readonly validator: ((val: unknown) => boolean) | undefined;
102
+ __epPropKey: true;
103
+ } & {
104
+ readonly default: true;
105
+ };
106
+ readonly loop: {
107
+ readonly type: PropType<boolean>;
108
+ readonly required: false;
109
+ readonly validator: ((val: unknown) => boolean) | undefined;
110
+ __epPropKey: true;
111
+ } & {
112
+ readonly default: true;
113
+ };
114
+ readonly showTimeout: {
115
+ readonly type: PropType<number>;
116
+ readonly required: false;
117
+ readonly validator: ((val: unknown) => boolean) | undefined;
118
+ __epPropKey: true;
119
+ } & {
120
+ readonly default: 150;
121
+ };
122
+ readonly hideTimeout: {
123
+ readonly type: PropType<number>;
124
+ readonly required: false;
125
+ readonly validator: ((val: unknown) => boolean) | undefined;
126
+ __epPropKey: true;
127
+ } & {
128
+ readonly default: 150;
129
+ };
130
+ readonly tabindex: {
131
+ readonly type: PropType<string | number>;
132
+ readonly required: false;
133
+ readonly validator: ((val: unknown) => boolean) | undefined;
134
+ __epPropKey: true;
135
+ } & {
136
+ readonly default: 0;
137
+ };
138
+ readonly maxHeight: {
139
+ readonly type: PropType<string | number>;
140
+ readonly required: false;
141
+ readonly validator: ((val: unknown) => boolean) | undefined;
142
+ __epPropKey: true;
143
+ } & {
144
+ readonly default: "";
145
+ };
146
+ readonly popperClass: {
147
+ readonly type: PropType<string>;
148
+ readonly required: false;
149
+ readonly validator: ((val: unknown) => boolean) | undefined;
150
+ __epPropKey: true;
151
+ } & {
152
+ readonly default: "";
153
+ };
154
+ readonly disabled: BooleanConstructor;
155
+ readonly role: {
156
+ readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
157
+ readonly required: false;
158
+ readonly validator: ((val: unknown) => boolean) | undefined;
159
+ __epPropKey: true;
160
+ } & {
161
+ readonly default: "menu";
162
+ };
163
+ readonly buttonProps: {
164
+ readonly type: PropType<Partial< ButtonProps>>;
165
+ readonly required: false;
166
+ readonly validator: ((val: unknown) => boolean) | undefined;
167
+ __epPropKey: true;
168
+ };
169
+ readonly teleported: {
170
+ readonly type: PropType<boolean>;
171
+ readonly required: false;
172
+ readonly validator: ((val: unknown) => boolean) | undefined;
173
+ __epPropKey: true;
174
+ } & {
175
+ readonly default: true;
176
+ };
177
+ readonly persistent: {
178
+ readonly type: PropType<boolean>;
179
+ readonly required: false;
180
+ readonly validator: ((val: unknown) => boolean) | undefined;
181
+ __epPropKey: true;
182
+ } & {
183
+ readonly default: true;
184
+ };
185
+ }>> & {
186
+ onClick?: ((...args: any[]) => any) | undefined;
187
+ "onVisible-change"?: ((...args: any[]) => any) | undefined;
188
+ onCommand?: ((...args: any[]) => any) | undefined;
189
+ }, {
190
+ t: Translator;
191
+ ns: {
192
+ namespace: ComputedRef<string>;
193
+ b: (blockSuffix?: string) => string;
194
+ e: (element?: string) => string;
195
+ m: (modifier?: string) => string;
196
+ be: (blockSuffix?: string, element?: string) => string;
197
+ em: (element?: string, modifier?: string) => string;
198
+ bm: (blockSuffix?: string, modifier?: string) => string;
199
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
200
+ is: {
201
+ (name: string, state: boolean | undefined): string;
202
+ (name: string): string;
203
+ };
204
+ cssVar: (object: Record<string, string>) => Record<string, string>;
205
+ cssVarName: (name: string) => string;
206
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
207
+ cssVarBlockName: (name: string) => string;
208
+ };
209
+ scrollbar: Ref<null>;
210
+ wrapStyle: ComputedRef<CSSProperties>;
211
+ dropdownTriggerKls: ComputedRef<string[]>;
212
+ dropdownSize: ComputedRef<"" | "small" | "default" | "large">;
213
+ triggerId: ComputedRef<string>;
214
+ currentTabId: Ref<string | null>;
215
+ handleCurrentTabIdChange: (id: string) => void;
216
+ handlerMainButtonClick: (event: MouseEvent) => void;
217
+ handleEntryFocus: (e: Event) => void;
218
+ handleClose: () => void;
219
+ handleOpen: () => void;
220
+ handleBeforeShowTooltip: () => void;
221
+ handleShowTooltip: (event?: Event) => void;
222
+ handleBeforeHideTooltip: () => void;
223
+ onFocusAfterTrapped: (e: Event) => void;
224
+ popperRef: Ref< TooltipInstance | undefined>;
225
+ contentRef: Ref<HTMLElement | undefined>;
226
+ triggeringElementRef: Ref<any>;
227
+ referenceElementRef: Ref<any>;
228
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("click" | "visible-change" | "command")[], VNodeProps & AllowedComponentProps & ComponentCustomProps, {
229
+ readonly disabled: boolean;
230
+ readonly maxHeight: string | number;
231
+ readonly size: string;
232
+ readonly placement: Placement;
233
+ readonly effect: PopperEffect;
234
+ readonly trigger: TooltipTriggerType | TooltipTriggerType[];
235
+ readonly tabindex: string | number;
236
+ readonly role: "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation";
237
+ readonly loop: boolean;
238
+ readonly popperOptions: Partial< Options>;
239
+ readonly popperClass: string;
240
+ readonly triggerKeys: string[];
241
+ readonly teleported: boolean;
242
+ readonly persistent: boolean;
243
+ readonly hideOnClick: boolean;
244
+ readonly showTimeout: number;
245
+ readonly hideTimeout: number;
246
+ readonly splitButton: boolean;
247
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
248
+ P: {};
249
+ B: {};
250
+ D: {};
251
+ C: {};
252
+ M: {};
253
+ Defaults: {};
254
+ }, Readonly< ExtractPropTypes<{
255
+ readonly trigger: {
256
+ readonly type: PropType< TooltipTriggerType | TooltipTriggerType[]>;
257
+ readonly required: false;
258
+ readonly validator: ((val: unknown) => boolean) | undefined;
259
+ __epPropKey: true;
260
+ } & {
261
+ readonly default: "hover";
262
+ };
263
+ readonly triggerKeys: {
264
+ readonly type: PropType<string[]>;
265
+ readonly required: false;
266
+ readonly validator: ((val: unknown) => boolean) | undefined;
267
+ __epPropKey: true;
268
+ } & {
269
+ readonly default: () => string[];
270
+ };
271
+ readonly effect: {
272
+ readonly default: "light";
273
+ readonly type: PropType<PopperEffect>;
274
+ readonly required: false;
275
+ readonly validator: ((val: unknown) => boolean) | undefined;
276
+ readonly __epPropKey: true;
277
+ };
278
+ readonly type: {
279
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
280
+ readonly required: false;
281
+ readonly validator: ((val: unknown) => boolean) | undefined;
282
+ __epPropKey: true;
283
+ };
284
+ readonly placement: {
285
+ readonly type: PropType<Placement>;
286
+ readonly required: false;
287
+ readonly validator: ((val: unknown) => boolean) | undefined;
288
+ __epPropKey: true;
289
+ } & {
290
+ readonly default: "bottom";
291
+ };
292
+ readonly popperOptions: {
293
+ readonly type: PropType<Partial< Options>>;
294
+ readonly required: false;
295
+ readonly validator: ((val: unknown) => boolean) | undefined;
296
+ __epPropKey: true;
297
+ } & {
298
+ readonly default: () => {};
299
+ };
300
+ readonly id: StringConstructor;
301
+ readonly size: {
302
+ readonly type: PropType<string>;
303
+ readonly required: false;
304
+ readonly validator: ((val: unknown) => boolean) | undefined;
305
+ __epPropKey: true;
306
+ } & {
307
+ readonly default: "";
308
+ };
309
+ readonly splitButton: BooleanConstructor;
310
+ readonly hideOnClick: {
311
+ readonly type: PropType<boolean>;
312
+ readonly required: false;
313
+ readonly validator: ((val: unknown) => boolean) | undefined;
314
+ __epPropKey: true;
315
+ } & {
316
+ readonly default: true;
317
+ };
318
+ readonly loop: {
319
+ readonly type: PropType<boolean>;
320
+ readonly required: false;
321
+ readonly validator: ((val: unknown) => boolean) | undefined;
322
+ __epPropKey: true;
323
+ } & {
324
+ readonly default: true;
325
+ };
326
+ readonly showTimeout: {
327
+ readonly type: PropType<number>;
328
+ readonly required: false;
329
+ readonly validator: ((val: unknown) => boolean) | undefined;
330
+ __epPropKey: true;
331
+ } & {
332
+ readonly default: 150;
333
+ };
334
+ readonly hideTimeout: {
335
+ readonly type: PropType<number>;
336
+ readonly required: false;
337
+ readonly validator: ((val: unknown) => boolean) | undefined;
338
+ __epPropKey: true;
339
+ } & {
340
+ readonly default: 150;
341
+ };
342
+ readonly tabindex: {
343
+ readonly type: PropType<string | number>;
344
+ readonly required: false;
345
+ readonly validator: ((val: unknown) => boolean) | undefined;
346
+ __epPropKey: true;
347
+ } & {
348
+ readonly default: 0;
349
+ };
350
+ readonly maxHeight: {
351
+ readonly type: PropType<string | number>;
352
+ readonly required: false;
353
+ readonly validator: ((val: unknown) => boolean) | undefined;
354
+ __epPropKey: true;
355
+ } & {
356
+ readonly default: "";
357
+ };
358
+ readonly popperClass: {
359
+ readonly type: PropType<string>;
360
+ readonly required: false;
361
+ readonly validator: ((val: unknown) => boolean) | undefined;
362
+ __epPropKey: true;
363
+ } & {
364
+ readonly default: "";
365
+ };
366
+ readonly disabled: BooleanConstructor;
367
+ readonly role: {
368
+ readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
369
+ readonly required: false;
370
+ readonly validator: ((val: unknown) => boolean) | undefined;
371
+ __epPropKey: true;
372
+ } & {
373
+ readonly default: "menu";
374
+ };
375
+ readonly buttonProps: {
376
+ readonly type: PropType<Partial< ButtonProps>>;
377
+ readonly required: false;
378
+ readonly validator: ((val: unknown) => boolean) | undefined;
379
+ __epPropKey: true;
380
+ };
381
+ readonly teleported: {
382
+ readonly type: PropType<boolean>;
383
+ readonly required: false;
384
+ readonly validator: ((val: unknown) => boolean) | undefined;
385
+ __epPropKey: true;
386
+ } & {
387
+ readonly default: true;
388
+ };
389
+ readonly persistent: {
390
+ readonly type: PropType<boolean>;
391
+ readonly required: false;
392
+ readonly validator: ((val: unknown) => boolean) | undefined;
393
+ __epPropKey: true;
394
+ } & {
395
+ readonly default: true;
396
+ };
397
+ }>> & {
398
+ onClick?: ((...args: any[]) => any) | undefined;
399
+ "onVisible-change"?: ((...args: any[]) => any) | undefined;
400
+ onCommand?: ((...args: any[]) => any) | undefined;
401
+ }, {
402
+ t: Translator;
403
+ ns: {
404
+ namespace: ComputedRef<string>;
405
+ b: (blockSuffix?: string) => string;
406
+ e: (element?: string) => string;
407
+ m: (modifier?: string) => string;
408
+ be: (blockSuffix?: string, element?: string) => string;
409
+ em: (element?: string, modifier?: string) => string;
410
+ bm: (blockSuffix?: string, modifier?: string) => string;
411
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
412
+ is: {
413
+ (name: string, state: boolean | undefined): string;
414
+ (name: string): string;
415
+ };
416
+ cssVar: (object: Record<string, string>) => Record<string, string>;
417
+ cssVarName: (name: string) => string;
418
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
419
+ cssVarBlockName: (name: string) => string;
420
+ };
421
+ scrollbar: Ref<null>;
422
+ wrapStyle: ComputedRef<CSSProperties>;
423
+ dropdownTriggerKls: ComputedRef<string[]>;
424
+ dropdownSize: ComputedRef<"" | "small" | "default" | "large">;
425
+ triggerId: ComputedRef<string>;
426
+ currentTabId: Ref<string | null>;
427
+ handleCurrentTabIdChange: (id: string) => void;
428
+ handlerMainButtonClick: (event: MouseEvent) => void;
429
+ handleEntryFocus: (e: Event) => void;
430
+ handleClose: () => void;
431
+ handleOpen: () => void;
432
+ handleBeforeShowTooltip: () => void;
433
+ handleShowTooltip: (event?: Event) => void;
434
+ handleBeforeHideTooltip: () => void;
435
+ onFocusAfterTrapped: (e: Event) => void;
436
+ popperRef: Ref< TooltipInstance | undefined>;
437
+ contentRef: Ref<HTMLElement | undefined>;
438
+ triggeringElementRef: Ref<any>;
439
+ referenceElementRef: Ref<any>;
440
+ }, {}, {}, {}, {
441
+ readonly disabled: boolean;
442
+ readonly maxHeight: string | number;
443
+ readonly size: string;
444
+ readonly placement: Placement;
445
+ readonly effect: PopperEffect;
446
+ readonly trigger: TooltipTriggerType | TooltipTriggerType[];
447
+ readonly tabindex: string | number;
448
+ readonly role: "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation";
449
+ readonly loop: boolean;
450
+ readonly popperOptions: Partial< Options>;
451
+ readonly popperClass: string;
452
+ readonly triggerKeys: string[];
453
+ readonly teleported: boolean;
454
+ readonly persistent: boolean;
455
+ readonly hideOnClick: boolean;
456
+ readonly showTimeout: number;
457
+ readonly hideTimeout: number;
458
+ readonly splitButton: boolean;
459
+ }>;
460
+ }, HTMLDivElement>> & Record<string, any>;
461
+ export default YaheeDropDownCondition;
462
+ export * from './drop-down-condition.vue';