@fox-js/foxui 4.0.1-14 → 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 +12138 -11837
- 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 +64 -15
- 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,12 +131,18 @@ 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
142
|
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
132
143
|
|
|
144
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
145
|
+
|
|
133
146
|
export declare function decimalLength(value: string | number): number;
|
|
134
147
|
|
|
135
148
|
declare const _default: FoxUIApp;
|
|
@@ -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;
|
|
@@ -428,11 +455,21 @@ export declare function nextTick(fn: {
|
|
|
428
455
|
export declare const NoticeBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
429
456
|
|
|
430
457
|
export declare const Notify: {
|
|
431
|
-
text(msg: string, obj?: {}):
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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;
|
|
436
473
|
hide(): void;
|
|
437
474
|
install(app: any): void;
|
|
438
475
|
};
|
|
@@ -443,6 +480,8 @@ export declare const NumberKeyboard: DefineComponent<unknown, object, {}, Comput
|
|
|
443
480
|
|
|
444
481
|
export declare const objectToString: () => string;
|
|
445
482
|
|
|
483
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
484
|
+
|
|
446
485
|
export declare const OverLay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
447
486
|
|
|
448
487
|
declare interface Padding {
|
|
@@ -452,6 +491,8 @@ declare interface Padding {
|
|
|
452
491
|
bottom: number | null;
|
|
453
492
|
}
|
|
454
493
|
|
|
494
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
495
|
+
|
|
455
496
|
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
456
497
|
|
|
457
498
|
declare interface PageLayout {
|
|
@@ -474,15 +515,21 @@ export declare const Popover: DefineComponent<unknown, object, {}, ComputedOptio
|
|
|
474
515
|
|
|
475
516
|
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
476
517
|
|
|
518
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
519
|
+
|
|
477
520
|
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
478
521
|
|
|
479
522
|
export declare const Progress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
480
523
|
|
|
524
|
+
export declare const PullRefresh: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
525
|
+
|
|
481
526
|
export declare const Radio: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
482
527
|
|
|
528
|
+
export declare const RadioGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
529
|
+
|
|
483
530
|
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
484
531
|
|
|
485
|
-
export declare const raf:
|
|
532
|
+
export declare const raf: any;
|
|
486
533
|
|
|
487
534
|
declare const Range_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
488
535
|
export { Range_2 as Range }
|
|
@@ -589,6 +636,8 @@ export declare function toNumber(val: unknown): number;
|
|
|
589
636
|
|
|
590
637
|
export declare const toTypeString: (value: unknown) => string;
|
|
591
638
|
|
|
639
|
+
export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
640
|
+
|
|
592
641
|
export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
593
642
|
|
|
594
643
|
export declare function typeOf(obj: any): string;
|