@fox-js/foxui 4.0.1-13 → 4.0.1-15
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.
- package/dist/index.cjs.js +10 -20
- package/dist/index.esm.js +12399 -11937
- package/dist/index.umd.js +11 -21
- package/dist/locale/index.d.ts +27 -9
- package/dist/locale/index.esm.js +31 -13
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +68 -17
- package/package.json +1 -1
package/dist/style.esm.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { MethodOptions } from 'vue';
|
|
|
13
13
|
import { multiply } from '@fox-js/big-decimal';
|
|
14
14
|
import { negate } from '@fox-js/big-decimal';
|
|
15
15
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
16
|
+
import { Ref } from 'vue';
|
|
16
17
|
import { Rule } from '@fox-js/validator';
|
|
17
18
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
18
19
|
import { ValidateResult } from '@fox-js/validator';
|
|
@@ -67,6 +68,8 @@ export declare const Calendar: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
67
68
|
|
|
68
69
|
export declare const CalendarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
69
70
|
|
|
71
|
+
export declare function cancelRaf(id: number): void;
|
|
72
|
+
|
|
70
73
|
export declare const Card: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
71
74
|
|
|
72
75
|
export declare const Cascader: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -83,10 +86,14 @@ export declare const CellGroup: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
83
86
|
|
|
84
87
|
export declare const Checkbox: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
85
88
|
|
|
89
|
+
export declare const CheckboxGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
90
|
+
|
|
86
91
|
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
87
92
|
|
|
88
93
|
export declare const CircleProgress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
89
94
|
|
|
95
|
+
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
96
|
+
|
|
90
97
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
91
98
|
|
|
92
99
|
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
@@ -124,11 +131,17 @@ export declare const DateUtils: {
|
|
|
124
131
|
getDay(i: number): string;
|
|
125
132
|
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
126
133
|
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
134
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
135
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
136
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
137
|
+
formatResultDate: (date: string) => string[];
|
|
127
138
|
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
128
139
|
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
129
140
|
};
|
|
130
141
|
|
|
131
|
-
export declare function debounce(func: GenericFunction,
|
|
142
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
143
|
+
|
|
144
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
132
145
|
|
|
133
146
|
export declare function decimalLength(value: string | number): number;
|
|
134
147
|
|
|
@@ -287,6 +300,8 @@ export declare interface GenericFunction {
|
|
|
287
300
|
(...args: any[]): any;
|
|
288
301
|
}
|
|
289
302
|
|
|
303
|
+
export declare const getScrollTopRoot: () => number;
|
|
304
|
+
|
|
290
305
|
export declare const Grid: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
291
306
|
|
|
292
307
|
export declare const GridItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -306,8 +321,6 @@ export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
306
321
|
|
|
307
322
|
export declare const hinttext: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
308
323
|
|
|
309
|
-
export declare const Icon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
310
|
-
|
|
311
324
|
declare const Image_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
312
325
|
export { Image_2 as Image }
|
|
313
326
|
|
|
@@ -316,11 +329,11 @@ declare interface ImageInterface {
|
|
|
316
329
|
}
|
|
317
330
|
|
|
318
331
|
export declare const ImagePreview: {
|
|
319
|
-
(options: ImagePreviewOptions):
|
|
332
|
+
(options: ImagePreviewOptions): ImagePreviewApp;
|
|
320
333
|
install(app: any): void;
|
|
321
334
|
};
|
|
322
335
|
|
|
323
|
-
declare class
|
|
336
|
+
declare class ImagePreviewApp {
|
|
324
337
|
options: ImagePreviewOptions;
|
|
325
338
|
constructor(_options: ImagePreviewOptions);
|
|
326
339
|
}
|
|
@@ -328,11 +341,23 @@ declare class ImagePreviewFunction {
|
|
|
328
341
|
declare class ImagePreviewOptions {
|
|
329
342
|
show: boolean;
|
|
330
343
|
images: ImageInterface[];
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
344
|
+
videos?: [];
|
|
345
|
+
contentClose?: boolean;
|
|
346
|
+
initNo?: number;
|
|
347
|
+
paginationVisible?: boolean;
|
|
348
|
+
paginationColor?: string;
|
|
349
|
+
autoplay?: number | string;
|
|
350
|
+
isWrapTeleport?: boolean;
|
|
351
|
+
showIndex?: boolean;
|
|
352
|
+
closeable?: boolean;
|
|
353
|
+
closeIconPosition?: string;
|
|
354
|
+
beforeClose?: Interceptor;
|
|
355
|
+
maxZoom?: number;
|
|
356
|
+
minZoom?: number;
|
|
357
|
+
isLoop?: boolean;
|
|
358
|
+
onClose?(): void;
|
|
359
|
+
onChange?(index: number): void;
|
|
360
|
+
teleport?: string | HTMLElement;
|
|
336
361
|
}
|
|
337
362
|
|
|
338
363
|
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
@@ -349,6 +374,8 @@ export declare const InputNumber: DefineComponent<unknown, object, {}, ComputedO
|
|
|
349
374
|
|
|
350
375
|
export declare function integerLength(value: string | number): number;
|
|
351
376
|
|
|
377
|
+
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
378
|
+
|
|
352
379
|
export declare const isArray: (arg: any) => arg is any[];
|
|
353
380
|
|
|
354
381
|
export declare function isArrayLike(obj: any): boolean;
|
|
@@ -365,6 +392,8 @@ export declare function isESModule(obj: any): obj is Object;
|
|
|
365
392
|
|
|
366
393
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
367
394
|
|
|
395
|
+
export declare function isHidden(el: any): boolean;
|
|
396
|
+
|
|
368
397
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
369
398
|
|
|
370
399
|
export declare function isNumberString(value: string): boolean;
|
|
@@ -426,11 +455,21 @@ export declare function nextTick(fn: {
|
|
|
426
455
|
export declare const NoticeBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
427
456
|
|
|
428
457
|
export declare const Notify: {
|
|
429
|
-
text(msg: string, obj?: {}):
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
458
|
+
text(msg: string, obj?: {}): {
|
|
459
|
+
[x: string]: unknown;
|
|
460
|
+
} | undefined;
|
|
461
|
+
primary(msg: string, obj?: {}): {
|
|
462
|
+
[x: string]: unknown;
|
|
463
|
+
} | undefined;
|
|
464
|
+
success(msg: string, obj?: {}): {
|
|
465
|
+
[x: string]: unknown;
|
|
466
|
+
} | undefined;
|
|
467
|
+
danger(msg: string, obj?: {}): {
|
|
468
|
+
[x: string]: unknown;
|
|
469
|
+
} | undefined;
|
|
470
|
+
warn(msg: string, obj?: {}): {
|
|
471
|
+
[x: string]: unknown;
|
|
472
|
+
} | undefined;
|
|
434
473
|
hide(): void;
|
|
435
474
|
install(app: any): void;
|
|
436
475
|
};
|
|
@@ -441,6 +480,8 @@ export declare const NumberKeyboard: DefineComponent<unknown, object, {}, Comput
|
|
|
441
480
|
|
|
442
481
|
export declare const objectToString: () => string;
|
|
443
482
|
|
|
483
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
484
|
+
|
|
444
485
|
export declare const OverLay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
445
486
|
|
|
446
487
|
declare interface Padding {
|
|
@@ -450,6 +491,8 @@ declare interface Padding {
|
|
|
450
491
|
bottom: number | null;
|
|
451
492
|
}
|
|
452
493
|
|
|
494
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
495
|
+
|
|
453
496
|
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
454
497
|
|
|
455
498
|
declare interface PageLayout {
|
|
@@ -472,15 +515,21 @@ export declare const Popover: DefineComponent<unknown, object, {}, ComputedOptio
|
|
|
472
515
|
|
|
473
516
|
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
474
517
|
|
|
518
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
519
|
+
|
|
475
520
|
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
476
521
|
|
|
477
522
|
export declare const Progress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
478
523
|
|
|
524
|
+
export declare const PullRefresh: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
525
|
+
|
|
479
526
|
export declare const Radio: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
480
527
|
|
|
528
|
+
export declare const RadioGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
529
|
+
|
|
481
530
|
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
482
531
|
|
|
483
|
-
export declare const raf:
|
|
532
|
+
export declare const raf: any;
|
|
484
533
|
|
|
485
534
|
declare const Range_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
486
535
|
export { Range_2 as Range }
|
|
@@ -563,7 +612,7 @@ export declare const Textarea: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
563
612
|
|
|
564
613
|
export declare const TextareaItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
565
614
|
|
|
566
|
-
export declare function throttle(func: GenericFunction,
|
|
615
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
567
616
|
|
|
568
617
|
export declare const TimeDetail: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
569
618
|
|
|
@@ -587,6 +636,8 @@ export declare function toNumber(val: unknown): number;
|
|
|
587
636
|
|
|
588
637
|
export declare const toTypeString: (value: unknown) => string;
|
|
589
638
|
|
|
639
|
+
export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
640
|
+
|
|
590
641
|
export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
591
642
|
|
|
592
643
|
export declare function typeOf(obj: any): string;
|