mixlea-utils-js 0.1.88 → 0.1.90

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.
@@ -541,1042 +541,1054 @@ export declare const getConfigStoreAtKey: <V = any>(key: string) => V | undefine
541
541
 
542
542
  export declare function getCurrentDate(): Date;
543
543
 
544
- export declare function getDateDay(value: any, defaultValue?: number): number;
545
-
546
- export declare function getDateLastDay(value: any, defaultValue?: number): number;
547
-
548
- export declare function getDateMonth(value: any, defaultValue?: number): number;
549
-
550
- export declare function getDateMonthEndDate(value: any, defaultValue?: Date): Date;
551
-
552
- export declare function getDateMonthStartDate(value: any, defaultValue?: Date): Date;
553
-
554
- export declare function getDateTimestamp(value: any, defaultValue: number): number;
555
-
556
- export declare function getDateWeekday(value: any, defaultValue?: number): number;
557
-
558
- export declare function getDateYear(value: any, defaultValue?: number): number;
559
-
560
- export declare function getDateZeroTimeZoneTime(value: any): number;
561
-
562
- export declare function getDayEndTimestamp(value: any, defaultValue?: number): number;
563
-
564
- export declare function getDayStartTimestamp(value: any, defaultValue?: number): number;
565
-
566
- export declare function getDOMRect(element: any): DOMRect | null;
567
-
568
- export declare function getFileType(fileName: string): string;
569
-
570
- export declare function getFileTypeFromPath(path: string): {
571
- ext: null;
572
- mime: null;
573
- } | {
574
- ext: string;
575
- mime: string;
576
- };
577
-
578
544
  /**
579
- * 根据占比调整 HEX 颜色的亮度(通过 HSL)
580
- * @param hexColor 十六进制颜色(如 "#4CAF50")
581
- * @param percentage 占比(0~1,0=最亮,1=最暗)
582
- * @returns 调整后的 HEX 颜色
583
- */
584
- export declare function getHexPercentColor(hexColor: string, percentage: number): string;
585
-
586
- export declare function getMonthEndTimestamp(value: any, defaultValue: number): number;
587
-
588
- export declare function getMonthStartTimestamp(value: any, defaultValue: number): number;
589
-
590
- export declare function getNextMonthDate(value: any, defaultValue?: Date): Date;
545
+ * 获取指定日期所属的年份和周号
546
+ * @param date - 目标日期
547
+ * @param firstDayOfWeek - 每周起始日(0=周日, 1=周一 ... 6=周六,默认1)
548
+ * @returns { year: number, week: number }
549
+ */
550
+ export declare function getDateBelongWeek(date: Date, firstDayOfWeek?: number): {
551
+ year: number;
552
+ week: number;
553
+ };
591
554
 
592
- export declare function getNextYearDate(value: any, defaultValue?: Date): Date;
555
+ export declare function getDateDay(value: any, defaultValue?: number): number;
593
556
 
594
- export declare function getNumberPrecision(value: any): number;
557
+ export declare function getDateLastDay(value: any, defaultValue?: number): number;
595
558
 
596
- export declare function getNumberStandardString(value: any): string;
559
+ export declare function getDateMonth(value: any, defaultValue?: number): number;
597
560
 
598
- export declare function getObjectEntries<T extends Record<string, any>>(obj: T): [string, any][];
561
+ export declare function getDateMonthEndDate(value: any, defaultValue?: Date): Date;
599
562
 
600
- export declare function getObjectUID(key: Record<string, any>): any;
563
+ export declare function getDateMonthStartDate(value: any, defaultValue?: Date): Date;
601
564
 
602
- export declare function getOffsetDaysDate(input: any, days: number, fallbackDate?: Date): Date;
565
+ export declare function getDateTimestamp(value: any, defaultValue: number): number;
603
566
 
604
- export declare function getOffsetMonthsDate(input: any, months: number, fallbackDate?: Date): Date;
567
+ export declare function getDateWeekday(value: any, defaultValue?: number): number;
605
568
 
606
- export declare function getOffsetYearsDate(input: any, years: number, fallbackDate?: Date): Date;
569
+ export declare function getDateYear(value: any, defaultValue?: number): number;
607
570
 
608
- export declare function getPercentRGB(rgb: [number, number, number], percentage: number, darken?: boolean): number[];
571
+ export declare function getDateZeroTimeZoneTime(value: any): number;
609
572
 
610
- export declare function getPrevMonthDate(value: any, defaultValue?: Date): Date;
573
+ export declare function getDayEndTimestamp(value: any, defaultValue?: number): number;
611
574
 
612
- export declare function getPrevYearDate(value: any, defaultValue?: Date): Date;
575
+ export declare function getDayStartTimestamp(value: any, defaultValue?: number): number;
613
576
 
614
- export declare function getRangeDateMonthSegments([startDate, endDate]: [Date, Date], opts?: {
615
- hasYear?: boolean;
616
- }): string[];
577
+ export declare function getDOMRect(element: any): DOMRect | null;
617
578
 
618
- export declare function getRangeDateYearSegments([startDate, endDate]: [Date, Date]): string[];
579
+ export declare function getFileType(fileName: string): string;
619
580
 
620
- /**
621
- * 在两个 HEX 颜色之间平滑过渡
622
- * @param startHex 起始颜色(如 "#FF0000")
623
- * @param endHex 结束颜色(如 "#00FF00")
624
- * @param percent 过渡比例(0~1,0=起始色,1=结束色)
625
- * @returns 过渡后的 HEX 颜色
626
- */
627
- export declare function getRangeHexPercentColor(startHex: string, endHex: string, percent: number): string;
581
+ export declare function getFileTypeFromPath(path: string): {
582
+ ext: null;
583
+ mime: null;
584
+ } | {
585
+ ext: string;
586
+ mime: string;
587
+ };
628
588
 
629
- export declare function getRecordMergeKey<R extends Record<string, any>>(row: R, ...fields: (string | ((row: R) => any))[]): any;
589
+ /**
590
+ * 根据占比调整 HEX 颜色的亮度(通过 HSL)
591
+ * @param hexColor 十六进制颜色(如 "#4CAF50")
592
+ * @param percentage 占比(0~1,0=最亮,1=最暗)
593
+ * @returns 调整后的 HEX 颜色
594
+ */
595
+ export declare function getHexPercentColor(hexColor: string, percentage: number): string;
630
596
 
631
- export declare function getToday(): Date;
597
+ export declare function getMonthEndTimestamp(value: any, defaultValue: number): number;
632
598
 
633
- export declare function getTodayEndTimestamp(): number;
599
+ export declare function getMonthStartTimestamp(value: any, defaultValue: number): number;
634
600
 
635
- export declare function getTodayStartTimestamp(): number;
601
+ export declare function getNextMonthDate(value: any, defaultValue?: Date): Date;
636
602
 
637
- /**
638
- * 获取某年详细的周数信息
639
- * @param year - 年份,默认为当前年份
640
- * @param firstDayOfWeek - 一周的起始日(0=周日,1=周一,默认为1)
641
- * @returns 周信息数组:[{ week: number, range: [Date, Date] }]
642
- */
643
- export declare function getYearDetailWeeks(year?: number, firstDayOfWeek?: number): {
644
- week: number;
645
- range: [Date, Date];
646
- }[];
603
+ export declare function getNextYearDate(value: any, defaultValue?: Date): Date;
647
604
 
648
- export declare function getYearEndTimestamp(input: any): number | null;
605
+ export declare function getNumberPrecision(value: any): number;
649
606
 
650
- /**
651
- * 获取指定年份的第一周开始日期(0点)
652
- * @param year - 年份
653
- * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认1)
654
- * @returns 第一周的开始日期(0点)
655
- */
656
- export declare function getYearFirstWeekStartDate(year: number, firstDayOfWeek?: number): Date;
607
+ export declare function getNumberStandardString(value: any): string;
657
608
 
658
- /**
659
- * 获取指定年份最后一周的结束日期(23:59:59.999)
660
- * @param year - 年份
661
- * @param firstDayOfWeek - 一周起始日(0=周日, 1=周一 ... 6=周六,默认1)
662
- * @returns 最后一周的结束日期
663
- */
664
- export declare function getYearLastWeekEndDate(year: number, firstDayOfWeek?: number): Date;
609
+ export declare function getObjectEntries<T extends Record<string, any>>(obj: T): [string, any][];
665
610
 
666
- export declare function getYearStartTimestamp(input: any): number | null;
611
+ export declare function getObjectUID(key: Record<string, any>): any;
667
612
 
668
- /**
669
- * 根据年份和周号获取该周的开始日期
670
- * @param year - 年份
671
- * @param week - 第几周(1-based)
672
- * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认为1)
673
- * @returns 周的开始日期
674
- */
675
- export declare function getYearWeekEndDate(year: number, week: number, firstDayOfWeek?: number): Date;
613
+ export declare function getOffsetDaysDate(input: any, days: number, fallbackDate?: Date): Date;
676
614
 
677
- export declare function getYearWeekOffsetEndDate(year: number, week: number, offsetWeek: number, firstDayOfWeek?: number): Date;
615
+ export declare function getOffsetMonthsDate(input: any, months: number, fallbackDate?: Date): Date;
678
616
 
679
- export declare function getYearWeekOffsetStartDate(year: number, week: number, offsetWeek: number, firstDayOfWeek?: number): Date;
617
+ export declare function getOffsetYearsDate(input: any, years: number, fallbackDate?: Date): Date;
680
618
 
681
- /**
682
- * 获取某年的周数信息
683
- * @param year - 年份,默认为当前年份
684
- * @param firstDayOfWeek - 一周的起始日(0=周日,1=周一,默认为1)
685
- * @returns 周信息数组:[{ week: number, range: [Date, Date] }]
686
- */
687
- export declare function getYearWeeks(year?: number, firstDayOfWeek?: number): number[];
688
-
689
- /**
690
- * 根据年份和周号获取该周的开始日期
691
- * @param year - 年份
692
- * @param week - 第几周(1-based)
693
- * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认为1)
694
- * @returns 周的开始日期
695
- */
696
- export declare function getYearWeekStartDate(year: number, week: number, firstDayOfWeek?: number): Date;
697
-
698
- export declare const h5: {
699
- downloadBuffer: typeof downloadBuffer_2;
700
- downloadURL: typeof downloadURL_2;
701
- exportFile: typeof exportFile;
702
- exportJson: typeof exportJson;
703
- readJsonFile: typeof readJsonFile;
704
- };
705
-
706
- export declare function hexToArgb(hexColor: string): string;
707
-
708
- export declare function hexToRgba(ahex: string, inpuyAlpha?: number | string): {
709
- v: string;
710
- o: {
711
- r: number;
712
- g: number;
713
- b: number;
714
- a: number;
715
- };
716
- };
619
+ export declare function getPercentRGB(rgb: [number, number, number], percentage: number, darken?: boolean): number[];
717
620
 
718
- export declare function htmlElementAppendChild(parentElement: HTMLElement, sonElement: HTMLElement): HTMLElement;
621
+ export declare function getPrevMonthDate(value: any, defaultValue?: Date): Date;
719
622
 
720
- export declare function htmlElementHasClassName(element: Element, className: string): boolean;
623
+ export declare function getPrevYearDate(value: any, defaultValue?: Date): Date;
721
624
 
722
- export declare function htmlElementRemoveChild(parentElement: HTMLElement, sonElement: HTMLElement): HTMLElement;
625
+ export declare function getRangeDateMonthSegments([startDate, endDate]: [Date, Date], opts?: {
626
+ hasYear?: boolean;
627
+ }): string[];
723
628
 
724
- declare interface IAbstractTreeNode {
725
- children?: IAbstractTreeNode[];
726
- }
629
+ export declare function getRangeDateYearSegments([startDate, endDate]: [Date, Date]): string[];
727
630
 
728
- declare type IBaseValue<T> = T;
631
+ /**
632
+ * 在两个 HEX 颜色之间平滑过渡
633
+ * @param startHex 起始颜色(如 "#FF0000")
634
+ * @param endHex 结束颜色(如 "#00FF00")
635
+ * @param percent 过渡比例(0~1,0=起始色,1=结束色)
636
+ * @returns 过渡后的 HEX 颜色
637
+ */
638
+ export declare function getRangeHexPercentColor(startHex: string, endHex: string, percent: number): string;
729
639
 
730
- export declare function IF(condition: any, trueValue: any | (() => any)): any;
640
+ export declare function getRecordMergeKey<R extends Record<string, any>>(row: R, ...fields: (string | ((row: R) => any))[]): any;
731
641
 
732
- export declare function IF_ZERO_OR_NAN_REPLACE(input: any, replace: any): any;
642
+ export declare function getToday(): Date;
733
643
 
734
- export declare function IFEL<C, T, F>(condition: C, trueExp: T | ((condition: C) => T), falseExp: F | ((condition: C) => F)): T | F;
644
+ export declare function getTodayEndTimestamp(): number;
735
645
 
736
- export declare function ifElse(condition: boolean, trueReturn: any, falseReturn: any): any;
646
+ export declare function getTodayStartTimestamp(): number;
737
647
 
738
- export declare function IFEmpty<T = any, K = any>(val: T, elVal: K): T | K;
648
+ /**
649
+ * 获取某年详细的周数信息
650
+ * @param year - 年份,默认为当前年份
651
+ * @param firstDayOfWeek - 一周的起始日(0=周日,1=周一,默认为1)
652
+ * @returns 周信息数组:[{ week: number, range: [Date, Date] }]
653
+ */
654
+ export declare function getYearDetailWeeks(year?: number, firstDayOfWeek?: number): {
655
+ week: number;
656
+ range: [Date, Date];
657
+ }[];
739
658
 
740
- export declare function IFEqualReplace(val: any, equalValue: any, replace: any): any;
659
+ export declare function getYearEndTimestamp(input: any): number | null;
741
660
 
742
- export declare function IFInvalidDateReplace(date: any, replace: Date): any;
661
+ /**
662
+ * 获取指定年份的第一周开始日期(0点)
663
+ * @param year - 年份
664
+ * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认1)
665
+ * @returns 第一周的开始日期(0点)
666
+ */
667
+ export declare function getYearFirstWeekStartDate(year: number, firstDayOfWeek?: number): Date;
743
668
 
744
- export declare function ifNaNReplace(val: any, replace: any): any;
669
+ /**
670
+ * 获取指定年份最后一周的结束日期(23:59:59.999)
671
+ * @param year - 年份
672
+ * @param firstDayOfWeek - 一周起始日(0=周日, 1=周一 ... 6=周六,默认1)
673
+ * @returns 最后一周的结束日期
674
+ */
675
+ export declare function getYearLastWeekEndDate(year: number, firstDayOfWeek?: number): Date;
745
676
 
746
- declare type IFnValue<T> = (...args: any[]) => T;
677
+ export declare function getYearStartTimestamp(input: any): number | null;
747
678
 
748
- export declare function ifReplace<T>(val: T, fn: (val: T) => boolean, replace: any): any;
679
+ /**
680
+ * 根据年份和周号获取该周的开始日期
681
+ * @param year - 年份
682
+ * @param week - 第几周(1-based)
683
+ * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认为1)
684
+ * @returns 周的开始日期
685
+ */
686
+ export declare function getYearWeekEndDate(year: number, week: number, firstDayOfWeek?: number): Date;
749
687
 
750
- export declare function ifReturn<T>(condition: boolean | (() => boolean), val: T): T | undefined;
688
+ export declare function getYearWeekOffsetEndDate(year: number, week: number, offsetWeek: number, firstDayOfWeek?: number): Date;
751
689
 
752
- export declare function iif(condition: ValueOrFn<boolean>): {
753
- then<T>(truthy: ValueOrFn<T>): {
754
- else(falsy: ValueOrFn<T>): T;
755
- };
756
- };
690
+ export declare function getYearWeekOffsetStartDate(year: number, week: number, offsetWeek: number, firstDayOfWeek?: number): Date;
757
691
 
758
- /**
759
- * @param value 输入值
760
- * @param thousandth 千分位, 默认 true
761
- * @param allowNegative 允许负数, 默认 true
762
- * @param allowDecimal 允许小数, 默认 true
763
- * @param precision 小数位, 默认 2
764
- */
765
- export declare function inputNumberMask(value: any, options?: {
766
- thousandth?: boolean;
767
- allowNegative?: boolean;
768
- allowDecimal?: boolean;
769
- precision?: number;
770
- }): string;
692
+ /**
693
+ * 获取某年的周数信息
694
+ * @param year - 年份,默认为当前年份
695
+ * @param firstDayOfWeek - 一周的起始日(0=周日,1=周一,默认为1)
696
+ * @returns 周信息数组:[{ week: number, range: [Date, Date] }]
697
+ */
698
+ export declare function getYearWeeks(year?: number, firstDayOfWeek?: number): number[];
771
699
 
772
- export declare function integerFormatter<T = unknown>(value: T, options?: {
773
- thousandth?: boolean;
774
- }): string;
700
+ /**
701
+ * 根据年份和周号获取该周的开始日期
702
+ * @param year - 年份
703
+ * @param week - 第几周(1-based)
704
+ * @param firstDayOfWeek - 一周的起始日(0=周日, 1=周一 ... 6=周六,默认为1)
705
+ * @returns 周的开始日期
706
+ */
707
+ export declare function getYearWeekStartDate(year: number, week: number, firstDayOfWeek?: number): Date;
775
708
 
776
- export declare function invalidDateReplace<T = any>(date: Date, repalce: T): Date | T;
709
+ export declare const h5: {
710
+ downloadBuffer: typeof downloadBuffer_2;
711
+ downloadURL: typeof downloadURL_2;
712
+ exportFile: typeof exportFile;
713
+ exportJson: typeof exportJson;
714
+ readJsonFile: typeof readJsonFile;
715
+ };
777
716
 
778
- export declare function invokeable<T>(value: IValue<T>, args: any[]): T;
717
+ export declare function hexToArgb(hexColor: string): string;
779
718
 
780
- declare interface IObject {
781
- [name: string]: any;
782
- }
719
+ export declare function hexToRgba(ahex: string, inpuyAlpha?: number | string): {
720
+ v: string;
721
+ o: {
722
+ r: number;
723
+ g: number;
724
+ b: number;
725
+ a: number;
726
+ };
727
+ };
783
728
 
784
- export declare function isArray<T>(arr: T[] | unknown): arr is T[];
729
+ export declare function htmlElementAppendChild(parentElement: HTMLElement, sonElement: HTMLElement): HTMLElement;
785
730
 
786
- export declare function isBoolean(value: any): value is boolean;
731
+ export declare function htmlElementHasClassName(element: Element, className: string): boolean;
787
732
 
788
- export declare function isChineseChar(input: any): boolean;
733
+ export declare function htmlElementRemoveChild(parentElement: HTMLElement, sonElement: HTMLElement): HTMLElement;
789
734
 
790
- export declare function isChineseString(input: any): boolean;
735
+ declare interface IAbstractTreeNode {
736
+ children?: IAbstractTreeNode[];
737
+ }
791
738
 
792
- export declare function isDate(date: any): date is Date;
739
+ declare type IBaseValue<T> = T;
793
740
 
794
- export declare function isDesktopBrowser(): boolean;
741
+ export declare function IF(condition: any, trueValue: any | (() => any)): any;
795
742
 
796
- export declare function isDOM(element: any): any;
743
+ export declare function IF_ZERO_OR_NAN_REPLACE(input: any, replace: any): any;
797
744
 
798
- /**
799
- * 判断数据是否为[null, undefind], 数组为空, 字符串为空, 对象为空
800
- * @param input
801
- */
802
- export declare function isEmpty(input: any): input is VoidLike_2;
745
+ export declare function IFEL<C, T, F>(condition: C, trueExp: T | ((condition: C) => T), falseExp: F | ((condition: C) => F)): T | F;
803
746
 
804
- export declare function isEmptyString(value: any): boolean;
747
+ export declare function ifElse(condition: boolean, trueReturn: any, falseReturn: any): any;
805
748
 
806
- export declare function isEqual(x: any, y: any): boolean;
749
+ export declare function IFEmpty<T = any, K = any>(val: T, elVal: K): T | K;
807
750
 
808
- export declare function isEqualZero(number: number, digits?: number): boolean;
751
+ export declare function IFEqualReplace(val: any, equalValue: any, replace: any): any;
809
752
 
810
- export declare function isEveryVoid(...items: any[]): boolean;
753
+ export declare function IFInvalidDateReplace(date: any, replace: Date): any;
811
754
 
812
- export declare function isFalse(val: any): val is false;
755
+ export declare function ifNaNReplace(val: any, replace: any): any;
813
756
 
814
- export declare function isFasly(val: any): val is false;
757
+ declare type IFnValue<T> = (...args: any[]) => T;
815
758
 
816
- export declare function isFormData(input: any): input is FormData;
759
+ export declare function ifReplace<T>(val: T, fn: (val: T) => boolean, replace: any): any;
817
760
 
818
- export declare function isFunction<T extends (...args: any[]) => any>(input: unknown): input is T;
761
+ export declare function ifReturn<T>(condition: boolean | (() => boolean), val: T): T | undefined;
819
762
 
820
- export declare function isHtmlElement(input: any): input is HTMLElement;
763
+ export declare function iif(condition: ValueOrFn<boolean>): {
764
+ then<T>(truthy: ValueOrFn<T>): {
765
+ else(falsy: ValueOrFn<T>): T;
766
+ };
767
+ };
821
768
 
822
- export declare function isHtmlInputElement(input: any): input is HTMLInputElement;
769
+ /**
770
+ * @param value 输入值
771
+ * @param thousandth 千分位, 默认 true
772
+ * @param allowNegative 允许负数, 默认 true
773
+ * @param allowDecimal 允许小数, 默认 true
774
+ * @param precision 小数位, 默认 2
775
+ */
776
+ export declare function inputNumberMask(value: any, options?: {
777
+ thousandth?: boolean;
778
+ allowNegative?: boolean;
779
+ allowDecimal?: boolean;
780
+ precision?: number;
781
+ }): string;
823
782
 
824
- export declare function isMobileBrowser(): boolean;
783
+ export declare function integerFormatter<T = unknown>(value: T, options?: {
784
+ thousandth?: boolean;
785
+ }): string;
825
786
 
826
- export declare function isMoreThanZero(val: any): boolean;
787
+ export declare function invalidDateReplace<T = any>(date: Date, repalce: T): Date | T;
827
788
 
828
- export declare function isNodeContains(container: HTMLElement | null | undefined, target?: HTMLElement | null | undefined): boolean;
789
+ export declare function invokeable<T>(value: IValue<T>, args: any[]): T;
829
790
 
830
- /**
831
- * 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
832
- * @param input
833
- */
834
- export declare function isNotEmpty(input: any): input is NotVoidLike;
791
+ declare interface IObject {
792
+ [name: string]: any;
793
+ }
835
794
 
836
- export declare function isNotEmptyArray(arr: any): arr is Array<any>;
795
+ export declare function isArray<T>(arr: T[] | unknown): arr is T[];
837
796
 
838
- export declare function isNotEmptyString(value: any): value is string;
797
+ export declare function isBoolean(value: any): value is boolean;
839
798
 
840
- export declare function isNotEqualZero(number: number, digits?: number): boolean;
799
+ export declare function isChineseChar(input: any): boolean;
841
800
 
842
- export declare function isNotNullish<T>(value: T | null | undefined): value is T;
801
+ export declare function isChineseString(input: any): boolean;
843
802
 
844
- export declare function isNotPlainObject(val: any): boolean;
803
+ export declare function isDate(date: any): date is Date;
845
804
 
846
- export declare function isNotUndefined(value: any): boolean;
805
+ export declare function isDesktopBrowser(): boolean;
847
806
 
848
- export declare function isNotVoid(input: any): input is NotVoidLike_2;
807
+ export declare function isDOM(element: any): any;
849
808
 
850
- export declare function isNullish<T>(value: T | null | undefined): value is null | undefined;
809
+ /**
810
+ * 判断数据是否为[null, undefind], 数组为空, 字符串为空, 对象为空
811
+ * @param input
812
+ */
813
+ export declare function isEmpty(input: any): input is VoidLike_2;
851
814
 
852
- export declare function isNumber(value: any): value is number;
815
+ export declare function isEmptyString(value: any): boolean;
853
816
 
854
- export declare function isNumeric(token: string): boolean;
817
+ export declare function isEqual(x: any, y: any): boolean;
855
818
 
856
- export declare function isObject<T extends Record<string, any>>(obj: unknown): obj is T;
819
+ export declare function isEqualZero(number: number, digits?: number): boolean;
857
820
 
858
- /**
859
- * 判断两个对象是否相等
860
- */
861
- export declare function isObjStructureEqual(obj1: Record<string, any>, obj2: Record<string, any>): boolean;
821
+ export declare function isEveryVoid(...items: any[]): boolean;
862
822
 
863
- export declare function isPlainObject(val: any): boolean;
823
+ export declare function isFalse(val: any): val is false;
864
824
 
865
- export declare function isPromise<T>(input: T): input is T extends Promise<any> ? T : never;
825
+ export declare function isFasly(val: any): val is false;
866
826
 
867
- export declare function isSomeNotVoid(...items: any[]): boolean;
827
+ export declare function isFormData(input: any): input is FormData;
868
828
 
869
- export declare function isSomeVoid(...items: any[]): boolean;
829
+ export declare function isFunction<T extends (...args: any[]) => any>(input: unknown): input is T;
870
830
 
871
- export declare function isString(value: unknown): value is string;
831
+ export declare function isHtmlElement(input: any): input is HTMLElement;
872
832
 
873
- export declare function isTimestamp(input: any): boolean;
833
+ export declare function isHtmlInputElement(input: any): input is HTMLInputElement;
874
834
 
875
- export declare function isTreeBranch<T extends Record<string, any>>(node: T, opts?: {
876
- leafField?: string;
877
- }): boolean;
835
+ export declare function isMobileBrowser(): boolean;
878
836
 
879
- export declare function isTreeLeaf<T extends Record<string, any>>(node: T, opts?: {
880
- leafField?: string;
881
- }): boolean;
837
+ export declare function isMoreThanZero(val: any): boolean;
882
838
 
883
- export declare function isTrue(val: any): val is true;
839
+ export declare function isNodeContains(container: HTMLElement | null | undefined, target?: HTMLElement | null | undefined): boolean;
884
840
 
885
- export declare function isTruly(val: any): val is true;
841
+ /**
842
+ * 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
843
+ * @param input
844
+ */
845
+ export declare function isNotEmpty(input: any): input is NotVoidLike;
886
846
 
887
- export declare function isUndefined(value: any): boolean;
847
+ export declare function isNotEmptyArray(arr: any): arr is Array<any>;
888
848
 
889
- export declare function isURLSearchParams(input: any): input is URLSearchParams;
849
+ export declare function isNotEmptyString(value: any): value is string;
890
850
 
891
- export declare function isValidDate(input: any): input is Date;
851
+ export declare function isNotEqualZero(number: number, digits?: number): boolean;
892
852
 
893
- export declare function isValidNumber(val: any): boolean;
853
+ export declare function isNotNullish<T>(value: T | null | undefined): value is T;
894
854
 
895
- export declare function isVoid(input: any): input is VoidLike;
855
+ export declare function isNotPlainObject(val: any): boolean;
896
856
 
897
- export declare function isWebViewBrowser(): boolean;
857
+ export declare function isNotUndefined(value: any): boolean;
898
858
 
899
- export declare function isWeixinBrowser(): boolean;
859
+ export declare function isNotVoid(input: any): input is NotVoidLike_2;
900
860
 
901
- declare interface ISwitchMap {
902
- [field: string]: any | (() => any);
903
- default?: any | (() => any);
904
- }
861
+ export declare function isNullish<T>(value: T | null | undefined): value is null | undefined;
905
862
 
906
- declare type IValue<T> = IBaseValue<T> | IFnValue<T>;
907
-
908
- export declare const jsonParser: {
909
- FUNC_PREFIX: string;
910
- REG_PREFIX: string;
911
- isArrOrObj(obj: any): boolean;
912
- isArr(obj: any): boolean;
913
- isObj(obj: any): boolean;
914
- isRegExp(obj: any): boolean;
915
- isFunc(obj: any): boolean;
916
- funcParse(obj: IObject | any[]): any;
917
- parse(jsonStr: string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): any;
918
- stringify(obj: any, replacer?: ((key: string, value: any) => any) | undefined, space?: number | string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): string;
919
- fastStringify(obj: any, space?: number | string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): string;
920
- nativeStringify: {
921
- (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
922
- (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
923
- };
924
- nativeParse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
925
- };
863
+ export declare function isNumber(value: any): value is number;
926
864
 
927
- export declare function localStorageDelete(key: string): void;
865
+ export declare function isNumeric(token: string): boolean;
928
866
 
929
- export declare function localStorageGet<T>(key: string): T | null;
867
+ export declare function isObject<T extends Record<string, any>>(obj: unknown): obj is T;
930
868
 
931
- export declare function localStorageSet(key: string, value: any): void;
869
+ /**
870
+ * 判断两个对象是否相等
871
+ */
872
+ export declare function isObjStructureEqual(obj1: Record<string, any>, obj2: Record<string, any>): boolean;
932
873
 
933
- export declare function makeArray<T>(input: T): EnsureArray<T>;
874
+ export declare function isPlainObject(val: any): boolean;
934
875
 
935
- export declare function mapKeys(map: any): any[];
876
+ export declare function isPromise<T>(input: T): input is T extends Promise<any> ? T : never;
936
877
 
937
- declare interface Mapping {
938
- eq: string | number;
939
- ne: string | number;
940
- ge: string | number;
941
- le: string | number;
942
- gt: string | number;
943
- lt: string | number;
944
- in: (string | number | Record<string, any>)[];
945
- notIn: (string | number | Record<string, any>)[];
946
- like: string | number;
947
- likeRight: string | number;
948
- likeLeft: string | number;
949
- between: [string | number, string | number];
950
- isNull: boolean;
951
- isEmpty: boolean;
952
- }
878
+ export declare function isSomeNotVoid(...items: any[]): boolean;
953
879
 
954
- declare interface Mapping_2 {
955
- eq?: Nullable_2<string | number>;
956
- ne?: Nullable_2<string | number>;
957
- ge?: Nullable_2<string | number>;
958
- le?: Nullable_2<string | number>;
959
- gt?: Nullable_2<string | number>;
960
- lt?: Nullable_2<string | number>;
961
- in?: Nullable_2<(string | number | Record<string, any>)[]>;
962
- notIn?: Nullable_2<(string | number | Record<string, any>)[]>;
963
- like?: Nullable_2<string | number>;
964
- likeRight?: Nullable_2<string | number>;
965
- likeLeft?: Nullable_2<string | number>;
966
- between?: Nullable_2<[string | number, string | number]>;
967
- isNull?: Nullable_2<boolean>;
968
- isEmpty?: Nullable_2<boolean>;
969
- tag?: Nullable_2<string>;
970
- }
880
+ export declare function isSomeVoid(...items: any[]): boolean;
971
881
 
972
- declare interface MappingReuslt {
973
- eq?: string | number;
974
- ne?: string | number;
975
- ge?: string | number;
976
- le?: string | number;
977
- gt?: string | number;
978
- lt?: string | number;
979
- in?: (string | number | Record<string, any>)[];
980
- notIn?: (string | number | Record<string, any>)[];
981
- like?: string | number;
982
- likeRight?: string | number;
983
- likeLeft?: string | number;
984
- between?: [string | number, string | number];
985
- isNull?: boolean;
986
- isEmpty?: boolean;
987
- tag?: string;
988
- }
882
+ export declare function isString(value: unknown): value is string;
989
883
 
990
- export declare function match<K extends CaseKey>(key: Callable<K>): MatchBuilder<K, never>;
884
+ export declare function isTimestamp(input: any): boolean;
991
885
 
992
- declare type MatchBuilder<K, V> = {
993
- case: <CK extends CaseKey, CV>(key: Callable<CK> | Callable<CK[]>, value: Callable<CV>) => MatchBuilder<K, V | CV>;
994
- default: <DV>(value: Callable<DV>) => V | DV;
995
- };
886
+ export declare function isTreeBranch<T extends Record<string, any>>(node: T, opts?: {
887
+ leafField?: string;
888
+ }): boolean;
996
889
 
997
- export declare function mathTakeEvaluate(variables: Record<string, any>, expression: string, opts?: {
998
- fallbackValue: number;
999
- termFallbackValue: number;
1000
- precision?: number;
1001
- } | number): number;
890
+ export declare function isTreeLeaf<T extends Record<string, any>>(node: T, opts?: {
891
+ leafField?: string;
892
+ }): boolean;
1002
893
 
1003
- declare type MaybeThunk<T> = T | (() => T);
894
+ export declare function isTrue(val: any): val is true;
1004
895
 
1005
- declare type MaybeThunk_2<T> = T | (() => T);
896
+ export declare function isTruly(val: any): val is true;
1006
897
 
1007
- export declare const memoStore: {
1008
- get: typeof get;
1009
- set: (key: string | symbol, val: unknown) => void;
1010
- delete: (key: string | symbol) => void;
1011
- };
898
+ export declare function isUndefined(value: any): boolean;
1012
899
 
1013
- declare type Merge<T extends any[]> = T extends [infer First, ...infer Rest extends any[]] ? First extends object ? Rest extends any[] ? First & Merge<Rest> : First : never : {};
900
+ export declare function isURLSearchParams(input: any): input is URLSearchParams;
1014
901
 
1015
- export declare function mergeArray(...arrs: any[]): any[];
902
+ export declare function isValidDate(input: any): input is Date;
1016
903
 
1017
- export declare function mergeObject<T extends any[]>(...objectList: T): Merge<T>;
904
+ export declare function isValidNumber(val: any): boolean;
1018
905
 
1019
- export declare function mergeProps<T extends Record<string, any>>(base: T, extra: T): T;
906
+ export declare function isVoid(input: any): input is VoidLike;
1020
907
 
1021
- export declare function moneyFormatter(input: any, opts?: {
1022
- thousandth?: boolean;
1023
- enableBillion?: boolean;
1024
- precision?: number | ((unit: 'None' | 'K' | 'W' | 'M' | 'B') => number);
1025
- onlyUnit?: 'None' | 'K' | 'W' | 'M' | 'B';
1026
- }): string;
908
+ export declare function isWebViewBrowser(): boolean;
1027
909
 
1028
- export declare function multiply(arr: any[], options?: {
1029
- replaceNaNItem?: number;
1030
- replaceNaNResult?: number;
1031
- }): number;
910
+ export declare function isWeixinBrowser(): boolean;
1032
911
 
1033
- export declare function multiplyBy(val: Record<string, any>, fields: string[], options?: {
1034
- replaceNaNItem?: number;
1035
- replaceNaNResult?: number;
1036
- }): number;
912
+ declare interface ISwitchMap {
913
+ [field: string]: any | (() => any);
914
+ default?: any | (() => any);
915
+ }
1037
916
 
1038
- declare type NextFunction<T> = (state: T) => T;
917
+ declare type IValue<T> = IBaseValue<T> | IFnValue<T>;
1039
918
 
1040
- declare type NotVoidLike = object | Map<any, any> | Set<any> | string | number | boolean;
919
+ export declare const jsonParser: {
920
+ FUNC_PREFIX: string;
921
+ REG_PREFIX: string;
922
+ isArrOrObj(obj: any): boolean;
923
+ isArr(obj: any): boolean;
924
+ isObj(obj: any): boolean;
925
+ isRegExp(obj: any): boolean;
926
+ isFunc(obj: any): boolean;
927
+ funcParse(obj: IObject | any[]): any;
928
+ parse(jsonStr: string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): any;
929
+ stringify(obj: any, replacer?: ((key: string, value: any) => any) | undefined, space?: number | string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): string;
930
+ fastStringify(obj: any, space?: number | string, error?: ((err: Error | unknown) => Record<string, any>) | undefined): string;
931
+ nativeStringify: {
932
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
933
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
934
+ };
935
+ nativeParse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
936
+ };
1041
937
 
1042
- declare type NotVoidLike_2 = object | Map<any, any> | Set<any> | string | number | boolean;
938
+ export declare function localStorageDelete(key: string): void;
1043
939
 
1044
- declare type Nullable<T> = T | null | undefined;
940
+ export declare function localStorageGet<T>(key: string): T | null;
1045
941
 
1046
- declare type Nullable_2<T> = T | null | undefined;
942
+ export declare function localStorageSet(key: string, value: any): void;
1047
943
 
1048
- /**
1049
- * 返回第一个非 null 或 undefined 的值(支持直接值和函数懒求值)
1050
- */
1051
- export declare function nullishCoalesce<T extends readonly MaybeThunk<any>[]>(...items: T): CoalesceReturn<T>;
944
+ export declare function makeArray<T>(input: T): EnsureArray<T>;
1052
945
 
1053
- export declare function numberFormateDecimal(input: any, decimals?: number, opts?: {
1054
- mode: 'round' | 'truncate';
1055
- }): string;
946
+ export declare function mapKeys(map: any): any[];
1056
947
 
1057
- export declare function numberFormateThousandth(value: any): string;
948
+ declare interface Mapping {
949
+ eq: string | number;
950
+ ne: string | number;
951
+ ge: string | number;
952
+ le: string | number;
953
+ gt: string | number;
954
+ lt: string | number;
955
+ in: (string | number | Record<string, any>)[];
956
+ notIn: (string | number | Record<string, any>)[];
957
+ like: string | number;
958
+ likeRight: string | number;
959
+ likeLeft: string | number;
960
+ between: [string | number, string | number];
961
+ isNull: boolean;
962
+ isEmpty: boolean;
963
+ }
1058
964
 
1059
- /**
1060
- * @param value 需格式化值
1061
- * @param thousandth 千分位, 默认 true
1062
- * @param percent 百分比, 默认 false
1063
- * @param allowRound 四舍五入, 默认 true
1064
- * @param precision 小数位, 默认 2
1065
- * @param precisionPad 小数位填充, 默认 true
1066
- * @param multiply 小数位填充, 默认 1
1067
- */
1068
- export declare function numberFormatter<T = unknown>(value: T, options?: {
1069
- allowDecimal?: boolean;
1070
- thousandth?: boolean;
1071
- percent?: boolean;
1072
- allowRound?: boolean;
1073
- precision?: number;
1074
- precisionPad?: boolean;
1075
- multiply?: number;
1076
- }): string;
965
+ declare interface Mapping_2 {
966
+ eq?: Nullable_2<string | number>;
967
+ ne?: Nullable_2<string | number>;
968
+ ge?: Nullable_2<string | number>;
969
+ le?: Nullable_2<string | number>;
970
+ gt?: Nullable_2<string | number>;
971
+ lt?: Nullable_2<string | number>;
972
+ in?: Nullable_2<(string | number | Record<string, any>)[]>;
973
+ notIn?: Nullable_2<(string | number | Record<string, any>)[]>;
974
+ like?: Nullable_2<string | number>;
975
+ likeRight?: Nullable_2<string | number>;
976
+ likeLeft?: Nullable_2<string | number>;
977
+ between?: Nullable_2<[string | number, string | number]>;
978
+ isNull?: Nullable_2<boolean>;
979
+ isEmpty?: Nullable_2<boolean>;
980
+ tag?: Nullable_2<string>;
981
+ }
982
+
983
+ declare interface MappingReuslt {
984
+ eq?: string | number;
985
+ ne?: string | number;
986
+ ge?: string | number;
987
+ le?: string | number;
988
+ gt?: string | number;
989
+ lt?: string | number;
990
+ in?: (string | number | Record<string, any>)[];
991
+ notIn?: (string | number | Record<string, any>)[];
992
+ like?: string | number;
993
+ likeRight?: string | number;
994
+ likeLeft?: string | number;
995
+ between?: [string | number, string | number];
996
+ isNull?: boolean;
997
+ isEmpty?: boolean;
998
+ tag?: string;
999
+ }
1000
+
1001
+ export declare function match<K extends CaseKey>(key: Callable<K>): MatchBuilder<K, never>;
1002
+
1003
+ declare type MatchBuilder<K, V> = {
1004
+ case: <CK extends CaseKey, CV>(key: Callable<CK> | Callable<CK[]>, value: Callable<CV>) => MatchBuilder<K, V | CV>;
1005
+ default: <DV>(value: Callable<DV>) => V | DV;
1006
+ };
1007
+
1008
+ export declare function mathTakeEvaluate(variables: Record<string, any>, expression: string, opts?: {
1009
+ fallbackValue: number;
1010
+ termFallbackValue: number;
1011
+ precision?: number;
1012
+ } | number): number;
1013
+
1014
+ declare type MaybeThunk<T> = T | (() => T);
1015
+
1016
+ declare type MaybeThunk_2<T> = T | (() => T);
1017
+
1018
+ export declare const memoStore: {
1019
+ get: typeof get;
1020
+ set: (key: string | symbol, val: unknown) => void;
1021
+ delete: (key: string | symbol) => void;
1022
+ };
1023
+
1024
+ declare type Merge<T extends any[]> = T extends [infer First, ...infer Rest extends any[]] ? First extends object ? Rest extends any[] ? First & Merge<Rest> : First : never : {};
1025
+
1026
+ export declare function mergeArray(...arrs: any[]): any[];
1027
+
1028
+ export declare function mergeObject<T extends any[]>(...objectList: T): Merge<T>;
1029
+
1030
+ export declare function mergeProps<T extends Record<string, any>>(base: T, extra: T): T;
1031
+
1032
+ export declare function moneyFormatter(input: any, opts?: {
1033
+ thousandth?: boolean;
1034
+ enableBillion?: boolean;
1035
+ precision?: number | ((unit: 'None' | 'K' | 'W' | 'M' | 'B') => number);
1036
+ onlyUnit?: 'None' | 'K' | 'W' | 'M' | 'B';
1037
+ underIgnoreUnit?: number | (() => number);
1038
+ }): string;
1039
+
1040
+ export declare function multiply(arr: any[], options?: {
1041
+ replaceNaNItem?: number;
1042
+ replaceNaNResult?: number;
1043
+ }): number;
1044
+
1045
+ export declare function multiplyBy(val: Record<string, any>, fields: string[], options?: {
1046
+ replaceNaNItem?: number;
1047
+ replaceNaNResult?: number;
1048
+ }): number;
1049
+
1050
+ declare type NextFunction<T> = (state: T) => T;
1051
+
1052
+ declare type NotVoidLike = object | Map<any, any> | Set<any> | string | number | boolean;
1053
+
1054
+ declare type NotVoidLike_2 = object | Map<any, any> | Set<any> | string | number | boolean;
1055
+
1056
+ declare type Nullable<T> = T | null | undefined;
1057
+
1058
+ declare type Nullable_2<T> = T | null | undefined;
1059
+
1060
+ /**
1061
+ * 返回第一个非 null 或 undefined 的值(支持直接值和函数懒求值)
1062
+ */
1063
+ export declare function nullishCoalesce<T extends readonly MaybeThunk<any>[]>(...items: T): CoalesceReturn<T>;
1064
+
1065
+ export declare function numberFormateDecimal(input: any, decimals?: number, opts?: {
1066
+ mode: 'round' | 'truncate';
1067
+ }): string;
1068
+
1069
+ export declare function numberFormateThousandth(value: any): string;
1070
+
1071
+ /**
1072
+ * @param value 需格式化值
1073
+ * @param thousandth 千分位, 默认 true
1074
+ * @param percent 百分比, 默认 false
1075
+ * @param allowRound 四舍五入, 默认 true
1076
+ * @param precision 小数位, 默认 2
1077
+ * @param precisionPad 小数位填充, 默认 true
1078
+ * @param multiply 小数位填充, 默认 1
1079
+ */
1080
+ export declare function numberFormatter<T = unknown>(value: T, options?: {
1081
+ allowDecimal?: boolean;
1082
+ thousandth?: boolean;
1083
+ percent?: boolean;
1084
+ allowRound?: boolean;
1085
+ precision?: number;
1086
+ precisionPad?: boolean;
1087
+ multiply?: number;
1088
+ }): string;
1077
1089
 
1078
- /**
1079
- * 保留指定位数的小数
1080
- * @param value 原始数字
1081
- * @param decimals 要保留的小数位数(默认为 2)
1082
- * @param mode 保留模式:'round' 表示四舍五入,'trunc' 表示直接截取(默认为 'round')
1083
- */
1084
- export declare function numberKeepDecimal(input: any, decimals?: number, opts?: {
1085
- mode?: 'round' | 'trunc';
1086
- fallback?: number;
1087
- }): number;
1090
+ /**
1091
+ * 保留指定位数的小数
1092
+ * @param value 原始数字
1093
+ * @param decimals 要保留的小数位数(默认为 2)
1094
+ * @param mode 保留模式:'round' 表示四舍五入,'trunc' 表示直接截取(默认为 'round')
1095
+ */
1096
+ export declare function numberKeepDecimal(input: any, decimals?: number, opts?: {
1097
+ mode?: 'round' | 'trunc';
1098
+ fallback?: number;
1099
+ }): number;
1088
1100
 
1089
- export declare function numberRandom(min: number, max: number): number;
1101
+ export declare function numberRandom(min: number, max: number): number;
1090
1102
 
1091
- export declare function numberRound(value: any, precision: number): number;
1103
+ export declare function numberRound(value: any, precision: number): number;
1092
1104
 
1093
- /**
1094
- * 将一个数字转换为整数
1095
- * - 支持四种方法:
1096
- * - "round"(默认,四舍五入)
1097
- * - "floor"(向下取整)
1098
- * - "ceil"(向上取整)
1099
- * - "trunc"(直接去掉小数部分,取整)
1100
- * @param value 输入的数字
1101
- * @param method 转换方法
1102
- * @param opts.fallback 失败默认值
1103
- * @returns 整数
1104
- */
1105
- export declare function numberToInt(input: any, method?: 'floor' | 'ceil' | 'round' | 'trunc', opts?: {
1106
- fallback: number;
1107
- }): number;
1105
+ /**
1106
+ * 将一个数字转换为整数
1107
+ * - 支持四种方法:
1108
+ * - "round"(默认,四舍五入)
1109
+ * - "floor"(向下取整)
1110
+ * - "ceil"(向上取整)
1111
+ * - "trunc"(直接去掉小数部分,取整)
1112
+ * @param value 输入的数字
1113
+ * @param method 转换方法
1114
+ * @param opts.fallback 失败默认值
1115
+ * @returns 整数
1116
+ */
1117
+ export declare function numberToInt(input: any, method?: 'floor' | 'ceil' | 'round' | 'trunc', opts?: {
1118
+ fallback: number;
1119
+ }): number;
1108
1120
 
1109
- export declare function objectArrayExpressionCalcInject(arr: Record<string, any>[], injects: Record<string, string>): Record<string, any>[];
1121
+ export declare function objectArrayExpressionCalcInject(arr: Record<string, any>[], injects: Record<string, string>): Record<string, any>[];
1110
1122
 
1111
- export declare function objectArrayFieldMax<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1123
+ export declare function objectArrayFieldMax<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1112
1124
 
1113
- export declare function objectArrayFieldMin<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1125
+ export declare function objectArrayFieldMin<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
1114
1126
 
1115
- export declare function objectArrayFieldsMax<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
1127
+ export declare function objectArrayFieldsMax<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
1116
1128
 
1117
- export declare function objectArrayFieldsMin<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
1129
+ export declare function objectArrayFieldsMin<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
1118
1130
 
1119
- export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
1131
+ export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
1120
1132
 
1121
- export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
1133
+ export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
1122
1134
 
1123
- export declare function objectArrayResetFields<T extends Record<string, any>>(arr: T[], resetFields: Record<string, any>): T[];
1135
+ export declare function objectArrayResetFields<T extends Record<string, any>>(arr: T[], resetFields: Record<string, any>): T[];
1124
1136
 
1125
- export declare function objectArraySyncFields(arr: Record<string, any>[], fields: Record<string, string>): Record<string, any>[];
1137
+ export declare function objectArraySyncFields(arr: Record<string, any>[], fields: Record<string, string>): Record<string, any>[];
1126
1138
 
1127
- export declare function objectAssign<T>(obj: T, assign: Record<string, any>): T;
1139
+ export declare function objectAssign<T>(obj: T, assign: Record<string, any>): T;
1128
1140
 
1129
- export declare function objectEqual(obj: any, obj1: any, opts?: {
1130
- compareFields?: string[];
1131
- }): boolean;
1141
+ export declare function objectEqual(obj: any, obj1: any, opts?: {
1142
+ compareFields?: string[];
1143
+ }): boolean;
1132
1144
 
1133
- /**
1134
- * 对象字段校验
1135
- * @param obj 检测对象
1136
- * @param fields 默认Object.keys获取到的字段
1137
- * @param callback 默认isEmpty
1138
- * @return boolean
1139
- */
1140
- export declare function objectFieldsEvery(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[], defaultValue?: boolean): boolean;
1145
+ /**
1146
+ * 对象字段校验
1147
+ * @param obj 检测对象
1148
+ * @param fields 默认Object.keys获取到的字段
1149
+ * @param callback 默认isEmpty
1150
+ * @return boolean
1151
+ */
1152
+ export declare function objectFieldsEvery(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[], defaultValue?: boolean): boolean;
1141
1153
 
1142
- export declare function objectFieldsSetNull(o: any, fields: string[]): Record<string, any>;
1154
+ export declare function objectFieldsSetNull(o: any, fields: string[]): Record<string, any>;
1143
1155
 
1144
- export declare function objectFieldsSetUndefined(o: any, fields: string[]): Record<string, any>;
1156
+ export declare function objectFieldsSetUndefined(o: any, fields: string[]): Record<string, any>;
1145
1157
 
1146
- /**
1147
- * 对象字段校验
1148
- * @param obj 检测对象
1149
- * @param fields 默认Object.keys获取到的字段
1150
- * @param callback 默认isNotEmpty
1151
- * @return boolean
1152
- */
1153
- export declare function objectFieldsValidate(obj: any, fields?: string[] | null, validateFunc?: (fieldValue: any) => boolean): boolean;
1158
+ /**
1159
+ * 对象字段校验
1160
+ * @param obj 检测对象
1161
+ * @param fields 默认Object.keys获取到的字段
1162
+ * @param callback 默认isNotEmpty
1163
+ * @return boolean
1164
+ */
1165
+ export declare function objectFieldsValidate(obj: any, fields?: string[] | null, validateFunc?: (fieldValue: any) => boolean): boolean;
1154
1166
 
1155
- export declare function objectFieldsValidatePaths(record: Record<string, any>, paths: string[], check?: (val: any) => boolean): (readonly [string, boolean])[];
1167
+ export declare function objectFieldsValidatePaths(record: Record<string, any>, paths: string[], check?: (val: any) => boolean): (readonly [string, boolean])[];
1156
1168
 
1157
- export declare function objectFieldsValidateVoidPaths(record: Record<string, any>, paths: string[]): string[];
1169
+ export declare function objectFieldsValidateVoidPaths(record: Record<string, any>, paths: string[]): string[];
1158
1170
 
1159
- export declare function objectForEach<T extends Record<string, any>>(obj: T, callback: (key: string, value: any, obj: T) => void): void;
1171
+ export declare function objectForEach<T extends Record<string, any>>(obj: T, callback: (key: string, value: any, obj: T) => void): void;
1160
1172
 
1161
- export declare function objectGet(value: unknown, path?: string, defaultValue?: any): any;
1173
+ export declare function objectGet(value: unknown, path?: string, defaultValue?: any): any;
1162
1174
 
1163
- export declare function objectHas(obj: unknown, fields: string | string[]): boolean;
1175
+ export declare function objectHas(obj: unknown, fields: string | string[]): boolean;
1164
1176
 
1165
- export declare function objectHasKey<T, K extends PropertyKey>(obj: T, key: K): key is K & keyof T;
1177
+ export declare function objectHasKey<T, K extends PropertyKey>(obj: T, key: K): key is K & keyof T;
1166
1178
 
1167
- export declare function objectKeys(obj: any, opts?: {
1168
- excludeKeys?: string[];
1169
- includeKeys?: string[];
1170
- }, keyMap?: (key: string) => string): any[];
1179
+ export declare function objectKeys(obj: any, opts?: {
1180
+ excludeKeys?: string[];
1181
+ includeKeys?: string[];
1182
+ }, keyMap?: (key: string) => string): any[];
1171
1183
 
1172
- export declare function objectOmit<O extends Record<string, any>>(input: O, check: any[] | ((value: any) => boolean)): Record<string, any>;
1184
+ export declare function objectOmit<O extends Record<string, any>>(input: O, check: any[] | ((value: any) => boolean)): Record<string, any>;
1173
1185
 
1174
- export declare function objectOmitFields<O extends object, F extends keyof O>(input: O, fields: F[]): Omit<O, F>;
1186
+ export declare function objectOmitFields<O extends object, F extends keyof O>(input: O, fields: F[]): Omit<O, F>;
1175
1187
 
1176
- export declare function objectPathsJoin(record: Record<string, any>, paths: string[], joinSymbol?: string): string;
1188
+ export declare function objectPathsJoin(record: Record<string, any>, paths: string[], joinSymbol?: string): string;
1177
1189
 
1178
- export declare function objectPick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
1190
+ export declare function objectPick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
1179
1191
 
1180
- export declare function objectRemoveFields(o: any, fields: string[]): Record<string, any>;
1192
+ export declare function objectRemoveFields(o: any, fields: string[]): Record<string, any>;
1181
1193
 
1182
- export declare function objectRemoveNullishFields<T extends Record<string, any>>(obj: T): Partial<T>;
1194
+ export declare function objectRemoveNullishFields<T extends Record<string, any>>(obj: T): Partial<T>;
1183
1195
 
1184
- export declare function objectSet<T extends Record<string, any>>(obj: T, path: string, val: unknown): void;
1196
+ export declare function objectSet<T extends Record<string, any>>(obj: T, path: string, val: unknown): void;
1185
1197
 
1186
- export declare function objectShallowGet(obj: any, field: string): any;
1198
+ export declare function objectShallowGet(obj: any, field: string): any;
1187
1199
 
1188
- export declare function objectShallowMap(obj: Record<any, any>, keyFn: (key: any, value: any, obj: Record<any, any>) => string, valueFn: (value: any, key: any, obj: Record<any, any>) => any): Record<any, any>;
1200
+ export declare function objectShallowMap(obj: Record<any, any>, keyFn: (key: any, value: any, obj: Record<any, any>) => string, valueFn: (value: any, key: any, obj: Record<any, any>) => any): Record<any, any>;
1189
1201
 
1190
- /**
1191
- * 对象字段校验
1192
- * @param obj 检测对象
1193
- * @param fields 默认Object.keys获取到的字段
1194
- * @param callback 默认isEmpty
1195
- * @return boolean
1196
- */
1197
- export declare function objectSome(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[] | null, defaultValue?: boolean): boolean;
1202
+ /**
1203
+ * 对象字段校验
1204
+ * @param obj 检测对象
1205
+ * @param fields 默认Object.keys获取到的字段
1206
+ * @param callback 默认isEmpty
1207
+ * @return boolean
1208
+ */
1209
+ export declare function objectSome(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[] | null, defaultValue?: boolean): boolean;
1198
1210
 
1199
- export declare function objectSomeFields(input: any, fields: string[], func: (fieldValue: any, field: string) => boolean): boolean;
1211
+ export declare function objectSomeFields(input: any, fields: string[], func: (fieldValue: any, field: string) => boolean): boolean;
1200
1212
 
1201
- export declare function objectStringify(obj: Record<string, any>, allowDots?: boolean): string;
1213
+ export declare function objectStringify(obj: Record<string, any>, allowDots?: boolean): string;
1202
1214
 
1203
- export declare function objectToArray<T extends Record<string, any>>(obj: Record<string, any>, callback: (key: string, value: any) => T): T[];
1215
+ export declare function objectToArray<T extends Record<string, any>>(obj: Record<string, any>, callback: (key: string, value: any) => T): T[];
1204
1216
 
1205
- export declare function objectValueMap<T extends Record<string, any>, R>(input: T, valueGetter: (value: T[keyof T], key: keyof T, input: T) => R): Record<keyof T, R>;
1217
+ export declare function objectValueMap<T extends Record<string, any>, R>(input: T, valueGetter: (value: T[keyof T], key: keyof T, input: T) => R): Record<keyof T, R>;
1206
1218
 
1207
- /**
1208
- * 对象转url参数
1209
- * @param {*} data
1210
- * @param {*} isPrefix
1211
- */
1212
- export declare function objToUrl(data: any, isPrefix?: boolean): string;
1219
+ /**
1220
+ * 对象转url参数
1221
+ * @param {*} data
1222
+ * @param {*} isPrefix
1223
+ */
1224
+ export declare function objToUrl(data: any, isPrefix?: boolean): string;
1213
1225
 
1214
- export declare function parseURL(path: string): {
1215
- pathname: string;
1216
- params: Record<string, string>;
1217
- };
1226
+ export declare function parseURL(path: string): {
1227
+ pathname: string;
1228
+ params: Record<string, string>;
1229
+ };
1218
1230
 
1219
- export declare function percentFormatter(input: any, opts?: {
1220
- positiveSymbol?: boolean;
1221
- precision?: number | ((value: number) => number);
1222
- maxValue?: number;
1223
- }): string;
1231
+ export declare function percentFormatter(input: any, opts?: {
1232
+ positiveSymbol?: boolean;
1233
+ precision?: number | ((value: number) => number);
1234
+ maxValue?: number;
1235
+ }): string;
1224
1236
 
1225
- export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
1237
+ export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
1226
1238
 
1227
- export declare function pickObjectArrayFields<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): T[K][];
1239
+ export declare function pickObjectArrayFields<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): T[K][];
1228
1240
 
1229
- export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
1241
+ export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
1230
1242
 
1231
- export declare function pipe<A extends unknown[], B, C>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C): (...args: A) => C;
1243
+ export declare function pipe<A extends unknown[], B, C>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C): (...args: A) => C;
1232
1244
 
1233
- export declare function pipe<A extends unknown[], B, C, D>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D): (...args: A) => D;
1245
+ export declare function pipe<A extends unknown[], B, C, D>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D): (...args: A) => D;
1234
1246
 
1235
- export declare function pipe<A extends unknown[], B, C, D, E>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E): (...args: A) => E;
1247
+ export declare function pipe<A extends unknown[], B, C, D, E>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E): (...args: A) => E;
1236
1248
 
1237
- export declare function pipe<A extends unknown[], B, C, D, E, F>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F): (...args: A) => F;
1249
+ export declare function pipe<A extends unknown[], B, C, D, E, F>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F): (...args: A) => F;
1238
1250
 
1239
- export declare function pipe<A extends unknown[], B, C, D, E, F, G>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G): (...args: A) => G;
1251
+ export declare function pipe<A extends unknown[], B, C, D, E, F, G>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G): (...args: A) => G;
1240
1252
 
1241
- export declare function pipe<A extends unknown[], B, C, D, E, F, G, H>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H): (...args: A) => H;
1253
+ export declare function pipe<A extends unknown[], B, C, D, E, F, G, H>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H): (...args: A) => H;
1242
1254
 
1243
- export declare function pipe<A extends unknown[], B, C, D, E, F, G, H, I>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I): (...args: A) => I;
1255
+ export declare function pipe<A extends unknown[], B, C, D, E, F, G, H, I>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I): (...args: A) => I;
1244
1256
 
1245
- export declare function pipe<A extends unknown[], B, C, D, E, F, G, H, I, J>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I, ij: (this: void, i: I) => J): (...args: A) => J;
1257
+ export declare function pipe<A extends unknown[], B, C, D, E, F, G, H, I, J>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I, ij: (this: void, i: I) => J): (...args: A) => J;
1246
1258
 
1247
- export declare function pipeWith<A, B>(a: A, ab: (this: void, a: A) => B): B;
1259
+ export declare function pipeWith<A, B>(a: A, ab: (this: void, a: A) => B): B;
1248
1260
 
1249
- export declare function pipeWith<A, B, C>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C): C;
1261
+ export declare function pipeWith<A, B, C>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C): C;
1250
1262
 
1251
- export declare function pipeWith<A, B, C, D>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D): D;
1263
+ export declare function pipeWith<A, B, C, D>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D): D;
1252
1264
 
1253
- export declare function pipeWith<A, B, C, D, E>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E): E;
1265
+ export declare function pipeWith<A, B, C, D, E>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E): E;
1254
1266
 
1255
- export declare function pipeWith<A, B, C, D, E, F>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F): F;
1267
+ export declare function pipeWith<A, B, C, D, E, F>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F): F;
1256
1268
 
1257
- export declare function pipeWith<A, B, C, D, E, F, G>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G): G;
1269
+ export declare function pipeWith<A, B, C, D, E, F, G>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G): G;
1258
1270
 
1259
- export declare function pipeWith<A, B, C, D, E, F, G, H>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H): H;
1271
+ export declare function pipeWith<A, B, C, D, E, F, G, H>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H): H;
1260
1272
 
1261
- export declare function pipeWith<A, B, C, D, E, F, G, H, I>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I): I;
1273
+ export declare function pipeWith<A, B, C, D, E, F, G, H, I>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I): I;
1262
1274
 
1263
- export declare function pipeWith<A, B, C, D, E, F, G, H, I, J>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I, ij: (this: void, i: I) => J): J;
1275
+ export declare function pipeWith<A, B, C, D, E, F, G, H, I, J>(a: A, ab: (this: void, a: A) => B, bc: (this: void, b: B) => C, cd: (this: void, c: C) => D, de: (this: void, d: D) => E, ef: (this: void, e: E) => F, fg: (this: void, f: F) => G, gh: (this: void, g: G) => H, hi: (this: void, h: H) => I, ij: (this: void, i: I) => J): J;
1264
1276
 
1265
- declare interface Point {
1266
- x: number;
1267
- y: number;
1268
- }
1277
+ declare interface Point {
1278
+ x: number;
1279
+ y: number;
1280
+ }
1269
1281
 
1270
- declare type Point_2<X extends string, Y extends string> = {
1271
- [K in X | Y]: number;
1272
- };
1282
+ declare type Point_2<X extends string, Y extends string> = {
1283
+ [K in X | Y]: number;
1284
+ };
1273
1285
 
1274
- declare type Point_3<X extends string, Y extends string> = {
1275
- [K in X | Y]: number;
1276
- };
1286
+ declare type Point_3<X extends string, Y extends string> = {
1287
+ [K in X | Y]: number;
1288
+ };
1277
1289
 
1278
- declare type Point_4<X extends string, Y extends string> = {
1279
- [K in X | Y]: number;
1280
- };
1290
+ declare type Point_4<X extends string, Y extends string> = {
1291
+ [K in X | Y]: number;
1292
+ };
1281
1293
 
1282
- export declare function promiseQueue(arr: Promise<any>[]): Promise<any[]>;
1294
+ export declare function promiseQueue(arr: Promise<any>[]): Promise<any[]>;
1283
1295
 
1284
- export declare const qs: {
1285
- stringify: typeof stringify;
1286
- };
1296
+ export declare const qs: {
1297
+ stringify: typeof stringify;
1298
+ };
1287
1299
 
1288
- export declare function queryStructure(mapping: Mapping_2): MappingReuslt;
1300
+ export declare function queryStructure(mapping: Mapping_2): MappingReuslt;
1289
1301
 
1290
- export declare function rangeDateFormatter<T = unknown>(value: T): string;
1302
+ export declare function rangeDateFormatter<T = unknown>(value: T): string;
1291
1303
 
1292
- export declare function rangeMonthFormatter<T = unknown>(value: T): string;
1304
+ export declare function rangeMonthFormatter<T = unknown>(value: T): string;
1293
1305
 
1294
- /** TODO: 值类型检测需更完善一点 */
1295
- export declare function rangeYearFormatter<T = unknown>(value: T): string;
1306
+ /** TODO: 值类型检测需更完善一点 */
1307
+ export declare function rangeYearFormatter<T = unknown>(value: T): string;
1296
1308
 
1297
- export declare function readBlobAsBuffer(bolb: Blob): Promise<ArrayBuffer>;
1309
+ export declare function readBlobAsBuffer(bolb: Blob): Promise<ArrayBuffer>;
1298
1310
 
1299
- export declare function readFileAsArrayBuffer(file: File): Promise<ArrayBuffer>;
1311
+ export declare function readFileAsArrayBuffer(file: File): Promise<ArrayBuffer>;
1300
1312
 
1301
- export declare function readFileAsBuffer(file: File): Promise<ArrayBuffer>;
1313
+ export declare function readFileAsBuffer(file: File): Promise<ArrayBuffer>;
1302
1314
 
1303
- declare function readJsonFile<T = any>({ file, fallbackResult }: {
1304
- file: File;
1305
- fallbackResult?: T;
1306
- }): Promise<T>;
1315
+ declare function readJsonFile<T = any>({ file, fallbackResult }: {
1316
+ file: File;
1317
+ fallbackResult?: T;
1318
+ }): Promise<T>;
1307
1319
 
1308
- export declare function readURLAsBuffer(url: string): Promise<ArrayBuffer>;
1320
+ export declare function readURLAsBuffer(url: string): Promise<ArrayBuffer>;
1309
1321
 
1310
- declare type Reducer<T, A> = (state: T, action: A) => T;
1322
+ declare type Reducer<T, A> = (state: T, action: A) => T;
1311
1323
 
1312
- export declare function returnNotVoid<X, Y>(param1: X, param2: Y | (() => Y)): X | Y;
1324
+ export declare function returnNotVoid<X, Y>(param1: X, param2: Y | (() => Y)): X | Y;
1313
1325
 
1314
- export declare function rgba2obj(rgba?: string): RGBColor;
1326
+ export declare function rgba2obj(rgba?: string): RGBColor;
1315
1327
 
1316
- export declare interface RGBColor {
1317
- a?: number;
1318
- b: number;
1319
- g: number;
1320
- r: number;
1321
- }
1328
+ export declare interface RGBColor {
1329
+ a?: number;
1330
+ b: number;
1331
+ g: number;
1332
+ r: number;
1333
+ }
1322
1334
 
1323
- export declare function runPromiseQueue(promises: Promise<any>[]): Promise<any[]>;
1335
+ export declare function runPromiseQueue(promises: Promise<any>[]): Promise<any[]>;
1324
1336
 
1325
- export declare function runQueuePromise(promises: (() => Promise<any>)[]): Promise<any[]>;
1337
+ export declare function runQueuePromise(promises: (() => Promise<any>)[]): Promise<any[]>;
1326
1338
 
1327
- export declare function safeArray(arr: any): any[];
1339
+ export declare function safeArray(arr: any): any[];
1328
1340
 
1329
- export declare function safeArrayJoin(arr: any, seperator?: string): string;
1341
+ export declare function safeArrayJoin(arr: any, seperator?: string): string;
1330
1342
 
1331
- export declare function safeDateGetYear(date: Date): number;
1343
+ export declare function safeDateGetYear(date: Date): number;
1332
1344
 
1333
- /**
1334
- * 安全获取
1335
- */
1336
- export declare function safeGet<T = any>(prop: any, ...opts: any): T;
1345
+ /**
1346
+ * 安全获取
1347
+ */
1348
+ export declare function safeGet<T = any>(prop: any, ...opts: any): T;
1337
1349
 
1338
- export declare function selectFile({ accept, multiple }: {
1339
- accept?: string;
1340
- multiple?: 'multiple';
1341
- }): Promise<File[]>;
1350
+ export declare function selectFile({ accept, multiple }: {
1351
+ accept?: string;
1352
+ multiple?: 'multiple';
1353
+ }): Promise<File[]>;
1342
1354
 
1343
- export declare const setConfigStore: (nextStore: ConfigStore) => void;
1355
+ export declare const setConfigStore: (nextStore: ConfigStore) => void;
1344
1356
 
1345
- export declare const setConfigStoreAtKey: <V>(key: string, value: V) => void;
1357
+ export declare const setConfigStoreAtKey: <V>(key: string, value: V) => void;
1346
1358
 
1347
- export declare function setDOMStyle(element: any, styles: Record<string, any>): void;
1359
+ export declare function setDOMStyle(element: any, styles: Record<string, any>): void;
1348
1360
 
1349
- export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
1361
+ export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
1350
1362
 
1351
- export declare function setHtmlInputValue<T = any>(el: T, value: any, opts?: {
1352
- dispatchEvent: boolean | 'bubbles';
1353
- }): Promise<T>;
1363
+ export declare function setHtmlInputValue<T = any>(el: T, value: any, opts?: {
1364
+ dispatchEvent: boolean | 'bubbles';
1365
+ }): Promise<T>;
1354
1366
 
1355
- export declare function shareAmount(totalAmount: any, target: {
1356
- items: Record<string, any>[];
1357
- itemPercentage: (row: any) => number;
1358
- itemField: string;
1359
- itemShare?: (item: any, percentageAmount: number) => number;
1360
- }): Record<string, any>[];
1367
+ export declare function shareAmount(totalAmount: any, target: {
1368
+ items: Record<string, any>[];
1369
+ itemPercentage: (row: any) => number;
1370
+ itemField: string;
1371
+ itemShare?: (item: any, percentageAmount: number) => number;
1372
+ }): Record<string, any>[];
1361
1373
 
1362
- /**
1363
- * 比较函数,支持字符串、数字、数组、[null, undefined]
1364
- */
1365
- export declare function smartCompare(x: any, y: any, order?: 'asc' | 'desc' | 'none' | undefined | null): number;
1374
+ /**
1375
+ * 比较函数,支持字符串、数字、数组、[null, undefined]
1376
+ */
1377
+ export declare function smartCompare(x: any, y: any, order?: 'asc' | 'desc' | 'none' | undefined | null): number;
1366
1378
 
1367
- declare interface SortCondition<T> {
1368
- condition: (item: T) => any;
1369
- order: 'asc' | 'desc';
1370
- }
1379
+ declare interface SortCondition<T> {
1380
+ condition: (item: T) => any;
1381
+ order: 'asc' | 'desc';
1382
+ }
1371
1383
 
1372
- declare interface SpecialEvent {
1373
- type: 'focus';
1374
- }
1384
+ declare interface SpecialEvent {
1385
+ type: 'focus';
1386
+ }
1375
1387
 
1376
- declare interface SpecialEvent_2 {
1377
- type: 'focus';
1378
- }
1388
+ declare interface SpecialEvent_2 {
1389
+ type: 'focus';
1390
+ }
1379
1391
 
1380
- export declare function stopDOMEvent(event: any): void;
1392
+ export declare function stopDOMEvent(event: any): void;
1381
1393
 
1382
- declare interface StoreResult<T, A> {
1383
- getState: () => T;
1384
- dispatch: (action: A) => void;
1385
- subscribe: (listener: () => void) => () => void;
1386
- }
1394
+ declare interface StoreResult<T, A> {
1395
+ getState: () => T;
1396
+ dispatch: (action: A) => void;
1397
+ subscribe: (listener: () => void) => () => void;
1398
+ }
1387
1399
 
1388
- declare function stringify(obj: any, unsafePrefix?: string): string;
1400
+ declare function stringify(obj: any, unsafePrefix?: string): string;
1389
1401
 
1390
- export declare function stringInsert(value: any, strIndex: number, insert: any): string;
1402
+ export declare function stringInsert(value: any, strIndex: number, insert: any): string;
1391
1403
 
1392
- export declare function stringJoin(value: any, interval: number, joinStr: string): string;
1404
+ export declare function stringJoin(value: any, interval: number, joinStr: string): string;
1393
1405
 
1394
- export declare function stringReplaceAll(value: string, regOrStr: string | RegExp, replaceStr: string, apply?: (opts: {
1395
- matchStr: string;
1396
- matchStrIndex: number;
1397
- matchCount: number;
1398
- matchTotal: number;
1399
- }) => boolean): string;
1406
+ export declare function stringReplaceAll(value: string, regOrStr: string | RegExp, replaceStr: string, apply?: (opts: {
1407
+ matchStr: string;
1408
+ matchStrIndex: number;
1409
+ matchCount: number;
1410
+ matchTotal: number;
1411
+ }) => boolean): string;
1400
1412
 
1401
- export declare function stringSplit(str: any, seperator: string): string[];
1413
+ export declare function stringSplit(str: any, seperator: string): string[];
1402
1414
 
1403
- export declare function stringToKebabCase(str: string): string;
1415
+ export declare function stringToKebabCase(str: string): string;
1404
1416
 
1405
- /**
1406
- * 字符串内字符个数统计
1407
- * @param str
1408
- * @param char
1409
- * @returns
1410
- */
1411
- export declare function stringWordCount(str: string, word: string): number;
1417
+ /**
1418
+ * 字符串内字符个数统计
1419
+ * @param str
1420
+ * @param char
1421
+ * @returns
1422
+ */
1423
+ export declare function stringWordCount(str: string, word: string): number;
1412
1424
 
1413
- export declare function substringSimilarity(a: string, b: string): 0 | 1;
1425
+ export declare function substringSimilarity(a: string, b: string): 0 | 1;
1414
1426
 
1415
- export declare function subtract(arr: any[], options?: {
1416
- replaceNaNItem?: number;
1417
- replaceNaNResult?: number;
1418
- }): number;
1427
+ export declare function subtract(arr: any[], options?: {
1428
+ replaceNaNItem?: number;
1429
+ replaceNaNResult?: number;
1430
+ }): number;
1419
1431
 
1420
- export declare function sum<T>(arr: T[], opts?: {
1421
- replaceNaNItem?: number;
1422
- replaceNaNResult?: number;
1423
- }): number;
1432
+ export declare function sum<T>(arr: T[], opts?: {
1433
+ replaceNaNItem?: number;
1434
+ replaceNaNResult?: number;
1435
+ }): number;
1424
1436
 
1425
- export declare function sumBy<T>(arr: T[], getter: string | ((item: T) => number), opts?: {
1426
- replaceNaNItem?: number;
1427
- replaceNaNResult?: number;
1428
- }): number;
1437
+ export declare function sumBy<T>(arr: T[], getter: string | ((item: T) => number), opts?: {
1438
+ replaceNaNItem?: number;
1439
+ replaceNaNResult?: number;
1440
+ }): number;
1429
1441
 
1430
- export declare function sumByFields<T extends Record<string, any>>(arr: T[], fields: string[]): number;
1442
+ export declare function sumByFields<T extends Record<string, any>>(arr: T[], fields: string[]): number;
1431
1443
 
1432
- export declare function SWITCH(key: any, map: ISwitchMap): any;
1444
+ export declare function SWITCH(key: any, map: ISwitchMap): any;
1433
1445
 
1434
- export declare function switchCase(condition: any, cases: Record<any, any>): any;
1446
+ export declare function switchCase(condition: any, cases: Record<any, any>): any;
1435
1447
 
1436
- export declare function toArray<T>(input: T | T[] | undefined): T[];
1448
+ export declare function toArray<T>(input: T | T[] | undefined): T[];
1437
1449
 
1438
- export declare function toDate(value: any, fallback?: Date): Date;
1450
+ export declare function toDate(value: any, fallback?: Date): Date;
1439
1451
 
1440
- /**
1441
- *
1442
- * @param input
1443
- * @param format yyyy MM dd HH mm ss
1444
- * @param fallbackValue
1445
- * @returns
1446
- */
1447
- export declare function toFormatDate<FV = Date>(input: any, format?: string, fallbackValue?: FV): Date | FV;
1452
+ /**
1453
+ *
1454
+ * @param input
1455
+ * @param format yyyy MM dd HH mm ss
1456
+ * @param fallbackValue
1457
+ * @returns
1458
+ */
1459
+ export declare function toFormatDate<FV = Date>(input: any, format?: string, fallbackValue?: FV): Date | FV;
1448
1460
 
1449
- export declare function toFormatUtcDate<FV = Date>(input: any, format?: string, fallbackValue?: FV): Date | FV;
1461
+ export declare function toFormatUtcDate<FV = Date>(input: any, format?: string, fallbackValue?: FV): Date | FV;
1450
1462
 
1451
- export declare function toNumber(value: any, opts?: {
1452
- nanReplace?: number;
1453
- multiply?: number;
1454
- }): number;
1463
+ export declare function toNumber(value: any, opts?: {
1464
+ nanReplace?: number;
1465
+ multiply?: number;
1466
+ }): number;
1455
1467
 
1456
- export declare function toQueryValue<K extends keyof Mapping>(k: K, value: Nullable<Mapping[K]>): { [k in K]: Nullable<Mapping[k]>; } | undefined;
1468
+ export declare function toQueryValue<K extends keyof Mapping>(k: K, value: Nullable<Mapping[K]>): { [k in K]: Nullable<Mapping[k]>; } | undefined;
1457
1469
 
1458
- export declare function toSafeNumber(value: any, options?: {
1459
- multiply?: number;
1460
- }): number;
1470
+ export declare function toSafeNumber(value: any, options?: {
1471
+ multiply?: number;
1472
+ }): number;
1461
1473
 
1462
- export declare function toSafeString(val: unknown): string;
1474
+ export declare function toSafeString(val: unknown): string;
1463
1475
 
1464
- export declare function toSimplifiedChinese<T>(input: T, opts?: {
1465
- excludeKey?: (key: string) => boolean;
1466
- }): T;
1476
+ export declare function toSimplifiedChinese<T>(input: T, opts?: {
1477
+ excludeKey?: (key: string) => boolean;
1478
+ }): T;
1467
1479
 
1468
- declare function toString_2(value: any): string;
1469
- export { toString_2 as toString }
1480
+ declare function toString_2(value: any): string;
1481
+ export { toString_2 as toString }
1470
1482
 
1471
- export declare function toTraditionalChinese<T>(input: T, opts?: {
1472
- excludeKey?: (key: string) => boolean;
1473
- }): T;
1483
+ export declare function toTraditionalChinese<T>(input: T, opts?: {
1484
+ excludeKey?: (key: string) => boolean;
1485
+ }): T;
1474
1486
 
1475
- export declare function transferNumberWithPx<T = unknown>(num: T): string | undefined;
1487
+ export declare function transferNumberWithPx<T = unknown>(num: T): string | undefined;
1476
1488
 
1477
- export declare function treeCollect<T extends Record<string, any>>(treeData: T[], type?: 'pre' | 'post' | 'leaf-only', opts?: {
1478
- leafField: string;
1479
- }): T[];
1489
+ export declare function treeCollect<T extends Record<string, any>>(treeData: T[], type?: 'pre' | 'post' | 'leaf-only', opts?: {
1490
+ leafField: string;
1491
+ }): T[];
1480
1492
 
1481
- export declare function treeDelete<T extends Record<string, any>>(tree: T[], callback: (node: T, nodeIndexes: number[]) => boolean, opts?: {
1482
- leafField: string;
1483
- }): T[];
1493
+ export declare function treeDelete<T extends Record<string, any>>(tree: T[], callback: (node: T, nodeIndexes: number[]) => boolean, opts?: {
1494
+ leafField: string;
1495
+ }): T[];
1484
1496
 
1485
- export declare function treeDepth<T extends Record<string, any>>(nodes: T[], opts?: {
1486
- leafField: string;
1487
- }): number;
1497
+ export declare function treeDepth<T extends Record<string, any>>(nodes: T[], opts?: {
1498
+ leafField: string;
1499
+ }): number;
1488
1500
 
1489
- export declare function treeExcludeNodes<T extends IAbstractTreeNode>(tree: IAbstractTreeNode[], compare: (node: IAbstractTreeNode) => boolean): T[];
1501
+ export declare function treeExcludeNodes<T extends IAbstractTreeNode>(tree: IAbstractTreeNode[], compare: (node: IAbstractTreeNode) => boolean): T[];
1490
1502
 
1491
- export declare function treeFilter<T extends Record<string, any>>(treeData: T[], callback: (node: T, opts: {
1492
- flatSubNodes: T[];
1493
- }) => boolean, opts?: {
1494
- leafField: string;
1495
- }): T[];
1503
+ export declare function treeFilter<T extends Record<string, any>>(treeData: T[], callback: (node: T, opts: {
1504
+ flatSubNodes: T[];
1505
+ }) => boolean, opts?: {
1506
+ leafField: string;
1507
+ }): T[];
1496
1508
 
1497
- export declare function treeFind<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1498
- flatSubNodes: T[];
1499
- }) => boolean, opts?: {
1500
- leafField: string;
1501
- }): T | null;
1509
+ export declare function treeFind<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1510
+ flatSubNodes: T[];
1511
+ }) => boolean, opts?: {
1512
+ leafField: string;
1513
+ }): T | null;
1502
1514
 
1503
- export declare function treeFindNodePath<T extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexList: number[]) => boolean, opts?: {
1504
- leafField: string;
1505
- }): number[];
1515
+ export declare function treeFindNodePath<T extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexList: number[]) => boolean, opts?: {
1516
+ leafField: string;
1517
+ }): number[];
1506
1518
 
1507
- export declare function treeForeach<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1508
- flatSubNodes: T[];
1509
- }) => void, opts?: {
1510
- leafField: string;
1511
- }): void;
1519
+ export declare function treeForeach<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1520
+ flatSubNodes: T[];
1521
+ }) => void, opts?: {
1522
+ leafField: string;
1523
+ }): void;
1512
1524
 
1513
- export declare function treeMap<T extends Record<string, any>, R extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexes: number[]) => R, opts?: {
1514
- leafField: string;
1515
- }): any;
1525
+ export declare function treeMap<T extends Record<string, any>, R extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexes: number[]) => R, opts?: {
1526
+ leafField: string;
1527
+ }): any;
1516
1528
 
1517
- export declare function treeNodeAddChilds<T extends Record<string, any>, R extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexes: number[]) => R, childs: T[], opts?: {
1518
- leafField: string;
1519
- }): any;
1529
+ export declare function treeNodeAddChilds<T extends Record<string, any>, R extends Record<string, any>>(nodes: T[], callback: (node: T, nodeIndexes: number[]) => R, childs: T[], opts?: {
1530
+ leafField: string;
1531
+ }): any;
1520
1532
 
1521
- export declare function treePathAddChildNodes<T extends Record<string, any>>(nodes: T[], targetPath: number[], childNodes: T[], opts?: {
1522
- leafField: string;
1523
- }): any;
1533
+ export declare function treePathAddChildNodes<T extends Record<string, any>>(nodes: T[], targetPath: number[], childNodes: T[], opts?: {
1534
+ leafField: string;
1535
+ }): any;
1524
1536
 
1525
- export declare function treePathAppendNodes<T extends Record<string, any>>(tree: T[], targetPath: number[], appendNodes: T[], opts?: {
1526
- leafField: string;
1527
- }): any;
1537
+ export declare function treePathAppendNodes<T extends Record<string, any>>(tree: T[], targetPath: number[], appendNodes: T[], opts?: {
1538
+ leafField: string;
1539
+ }): any;
1528
1540
 
1529
- export declare function treePathDelete<T extends Record<string, any>>(tree: T[], targetPath: number[], opts?: {
1530
- leafField: string;
1531
- }): T[];
1541
+ export declare function treePathDelete<T extends Record<string, any>>(tree: T[], targetPath: number[], opts?: {
1542
+ leafField: string;
1543
+ }): T[];
1532
1544
 
1533
- export declare function treePick<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1534
- flatSubNodes: T[];
1535
- }) => boolean, opts?: {
1536
- leafField: string;
1537
- }): T[];
1545
+ export declare function treePick<T extends Record<string, any>>(nodes: T[], callback: (node: T, opts: {
1546
+ flatSubNodes: T[];
1547
+ }) => boolean, opts?: {
1548
+ leafField: string;
1549
+ }): T[];
1538
1550
 
1539
- export declare function treeSort<T extends AbstractTreeNode>(treeData: T[], compare: (x: T, y: T) => number): T[];
1551
+ export declare function treeSort<T extends AbstractTreeNode>(treeData: T[], compare: (x: T, y: T) => number): T[];
1540
1552
 
1541
- /**
1542
- * @param tree 树结构
1543
- * @param childField 每个节点中子树的字段名
1544
- * @returns 扁平数组
1545
- */
1546
- export declare function treeToFlatArray(tree?: any[], childField?: string): any[];
1553
+ /**
1554
+ * @param tree 树结构
1555
+ * @param childField 每个节点中子树的字段名
1556
+ * @returns 扁平数组
1557
+ */
1558
+ export declare function treeToFlatArray(tree?: any[], childField?: string): any[];
1547
1559
 
1548
- export declare function triggerDOMEvent(element: HTMLElement, eventName: 'mousemove'): void;
1560
+ export declare function triggerDOMEvent(element: HTMLElement, eventName: 'mousemove'): void;
1549
1561
 
1550
- export declare function uniqueBy<T extends object, K extends keyof T>(arr: T[], by: K): T[K][];
1562
+ export declare function uniqueBy<T extends object, K extends keyof T>(arr: T[], by: K): T[K][];
1551
1563
 
1552
- export declare function urlStringify(obj: Record<string, any>, prefix?: string, options?: {
1553
- encode?: boolean;
1554
- delimiter?: string;
1555
- }): string;
1564
+ export declare function urlStringify(obj: Record<string, any>, prefix?: string, options?: {
1565
+ encode?: boolean;
1566
+ delimiter?: string;
1567
+ }): string;
1556
1568
 
1557
- export declare function uuid(): string;
1569
+ export declare function uuid(): string;
1558
1570
 
1559
- declare type ValueOrFn<T> = T | (() => T);
1571
+ declare type ValueOrFn<T> = T | (() => T);
1560
1572
 
1561
- declare type ValueOrFn_2<T> = T | (() => T);
1573
+ declare type ValueOrFn_2<T> = T | (() => T);
1562
1574
 
1563
- declare type VoidLike = null | undefined | '' | [];
1575
+ declare type VoidLike = null | undefined | '' | [];
1564
1576
 
1565
- declare type VoidLike_2 = null | undefined | '' | [] | Record<string, never>;
1577
+ declare type VoidLike_2 = null | undefined | '' | [] | Record<string, never>;
1566
1578
 
1567
- export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): {
1568
- elseWhen(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): any;
1569
- default(defaultResult: ValueOrFn_2<V>): V;
1570
- };
1579
+ export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): {
1580
+ elseWhen(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): any;
1581
+ default(defaultResult: ValueOrFn_2<V>): V;
1582
+ };
1571
1583
 
1572
- /**
1573
- * 字符串内字符个数统计
1574
- * @param str
1575
- * @param char
1576
- * @returns
1577
- */
1578
- export declare function wordCount(str: string, word: string): number;
1584
+ /**
1585
+ * 字符串内字符个数统计
1586
+ * @param str
1587
+ * @param char
1588
+ * @returns
1589
+ */
1590
+ export declare function wordCount(str: string, word: string): number;
1579
1591
 
1580
- export declare function zipArrayObject(param: Record<string, any[]>): any[];
1592
+ export declare function zipArrayObject(param: Record<string, any[]>): any[];
1581
1593
 
1582
- export { }
1594
+ export { }