@fox-js/foxui 4.0.1-4 → 4.0.1-40
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 +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +25891 -0
- package/dist/index.umd.js +13 -0
- package/dist/locale/index.esm.js +473 -0
- package/dist/locale/index.umd.js +3 -0
- package/dist/style.css +1 -1
- package/dist/style.esm.js +3 -0
- package/dist/types/index.d.ts +2133 -119
- package/package.json +15 -17
- package/dist/foxui.es.js +0 -25264
- package/dist/foxui.umd.js +0 -21
- package/dist/locale/index.cjs.js +0 -1
- package/dist/locale/index.d.ts +0 -396
- package/dist/locale/index.js +0 -405
- package/dist/style.es.js +0 -2
- package/dist/types/api/index.d.ts +0 -9
- package/dist/types/components/actionsheet/index.vue.d.ts +0 -13
- package/dist/types/components/address/index.vue.d.ts +0 -13
- package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +0 -13
- package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +0 -13
- package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +0 -13
- package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +0 -13
- package/dist/types/components/addresslist/index.vue.d.ts +0 -13
- package/dist/types/components/animate/index.vue.d.ts +0 -13
- package/dist/types/components/animate/type.d.ts +0 -2
- package/dist/types/components/audio/index.vue.d.ts +0 -13
- package/dist/types/components/audiooperate/index.vue.d.ts +0 -13
- package/dist/types/components/avatar/index.vue.d.ts +0 -13
- package/dist/types/components/avatargroup/index.vue.d.ts +0 -13
- package/dist/types/components/backtop/index.vue.d.ts +0 -13
- package/dist/types/components/badge/index.vue.d.ts +0 -13
- package/dist/types/components/barrage/index.vue.d.ts +0 -13
- package/dist/types/components/button/index.vue.d.ts +0 -13
- package/dist/types/components/button/type.d.ts +0 -3
- package/dist/types/components/calendar/common.d.ts +0 -61
- package/dist/types/components/calendar/index.vue.d.ts +0 -13
- package/dist/types/components/calendar/pane.vue.d.ts +0 -13
- package/dist/types/components/calendar/types.d.ts +0 -13
- package/dist/types/components/calendaritem/common.d.ts +0 -201
- package/dist/types/components/calendaritem/index.vue.d.ts +0 -13
- package/dist/types/components/card/index.vue.d.ts +0 -13
- package/dist/types/components/cascader/cascader-pane.vue.d.ts +0 -13
- package/dist/types/components/cascader/common.d.ts +0 -98
- package/dist/types/components/cascader/helper.d.ts +0 -4
- package/dist/types/components/cascader/index.vue.d.ts +0 -13
- package/dist/types/components/cascader/tree.d.ts +0 -12
- package/dist/types/components/cascader/types.d.ts +0 -26
- package/dist/types/components/cascaderitem/index.vue.d.ts +0 -13
- package/dist/types/components/cascaderitem/model.d.ts +0 -34
- package/dist/types/components/category/index.vue.d.ts +0 -13
- package/dist/types/components/categorypane/index.vue.d.ts +0 -13
- package/dist/types/components/cell/index.vue.d.ts +0 -13
- package/dist/types/components/cellgroup/index.vue.d.ts +0 -13
- package/dist/types/components/checkbox/common.d.ts +0 -64
- package/dist/types/components/checkbox/index.vue.d.ts +0 -13
- package/dist/types/components/checkboxitem/common.d.ts +0 -107
- package/dist/types/components/checkboxitem/index.vue.d.ts +0 -13
- package/dist/types/components/checkboxitem/model.d.ts +0 -33
- package/dist/types/components/circleprogress/index.vue.d.ts +0 -13
- package/dist/types/components/col/index.vue.d.ts +0 -13
- package/dist/types/components/collapse/index.vue.d.ts +0 -13
- package/dist/types/components/collapseitem/index.vue.d.ts +0 -13
- package/dist/types/components/comment/components/CmtBottom.vue.d.ts +0 -13
- package/dist/types/components/comment/components/CmtHeader.vue.d.ts +0 -13
- package/dist/types/components/comment/components/CmtImages.vue.d.ts +0 -13
- package/dist/types/components/comment/index.vue.d.ts +0 -13
- package/dist/types/components/content/common.d.ts +0 -16
- package/dist/types/components/content/index.vue.d.ts +0 -13
- package/dist/types/components/countdown/index.vue.d.ts +0 -13
- package/dist/types/components/countdown/util.d.ts +0 -2
- package/dist/types/components/countup/index.vue.d.ts +0 -13
- package/dist/types/components/dateitem/index.vue.d.ts +0 -13
- package/dist/types/components/datepicker/common.d.ts +0 -55
- package/dist/types/components/datepicker/index.vue.d.ts +0 -13
- package/dist/types/components/dialog/index.d.ts +0 -44
- package/dist/types/components/dialog/index.vue.d.ts +0 -13
- package/dist/types/components/divider/index.vue.d.ts +0 -13
- package/dist/types/components/drag/index.vue.d.ts +0 -13
- package/dist/types/components/ecard/index.vue.d.ts +0 -13
- package/dist/types/components/elevator/index.vue.d.ts +0 -13
- package/dist/types/components/ellipsis/index.vue.d.ts +0 -13
- package/dist/types/components/ellipsis/type.d.ts +0 -1
- package/dist/types/components/empty/index.vue.d.ts +0 -13
- package/dist/types/components/fixednav/common.d.ts +0 -51
- package/dist/types/components/fixednav/index.vue.d.ts +0 -13
- package/dist/types/components/footer/common.d.ts +0 -22
- package/dist/types/components/footer/index.vue.d.ts +0 -13
- package/dist/types/components/footer/type.d.ts +0 -1
- package/dist/types/components/grid/common.d.ts +0 -87
- package/dist/types/components/grid/index.vue.d.ts +0 -13
- package/dist/types/components/griditem/index.vue.d.ts +0 -13
- package/dist/types/components/group/group-props.d.ts +0 -34
- package/dist/types/components/group/index.vue.d.ts +0 -13
- package/dist/types/components/header/common.d.ts +0 -87
- package/dist/types/components/header/index.vue.d.ts +0 -13
- package/dist/types/components/header/types.d.ts +0 -9
- package/dist/types/components/hinttext/index.d.ts +0 -8
- package/dist/types/components/hinttext/index.vue.d.ts +0 -13
- package/dist/types/components/icon/index.vue.d.ts +0 -13
- package/dist/types/components/image/index.vue.d.ts +0 -13
- package/dist/types/components/image/type.d.ts +0 -2
- package/dist/types/components/imagepreview/imagePreviewItem.vue.d.ts +0 -13
- package/dist/types/components/imagepreview/index.d.ts +0 -20
- package/dist/types/components/imagepreview/index.vue.d.ts +0 -13
- package/dist/types/components/indicator/index.vue.d.ts +0 -13
- package/dist/types/components/infiniteloading/index.vue.d.ts +0 -13
- package/dist/types/components/inputitem/index.vue.d.ts +0 -13
- package/dist/types/components/inputnumber/index.vue.d.ts +0 -13
- package/dist/types/components/item/common.d.ts +0 -121
- package/dist/types/components/item/index.vue.d.ts +0 -13
- package/dist/types/components/layout/index.vue.d.ts +0 -13
- package/dist/types/components/linkitem/common.d.ts +0 -132
- package/dist/types/components/linkitem/index.vue.d.ts +0 -13
- package/dist/types/components/list/index.vue.d.ts +0 -13
- package/dist/types/components/menu/index.vue.d.ts +0 -13
- package/dist/types/components/menuitem/index.vue.d.ts +0 -13
- package/dist/types/components/menuitem/type.d.ts +0 -4
- package/dist/types/components/moneyitem/index.vue.d.ts +0 -13
- package/dist/types/components/moneyitem/util.d.ts +0 -15
- package/dist/types/components/navbar/index.vue.d.ts +0 -13
- package/dist/types/components/noticebar/index.vue.d.ts +0 -13
- package/dist/types/components/notify/index.d.ts +0 -12
- package/dist/types/components/notify/index.vue.d.ts +0 -13
- package/dist/types/components/numberkeyboard/index.vue.d.ts +0 -13
- package/dist/types/components/overlay/common.d.ts +0 -30
- package/dist/types/components/overlay/index.vue.d.ts +0 -13
- package/dist/types/components/page/common.d.ts +0 -78
- package/dist/types/components/page/index.vue.d.ts +0 -13
- package/dist/types/components/pagination/index.vue.d.ts +0 -13
- package/dist/types/components/picker/column.vue.d.ts +0 -13
- package/dist/types/components/picker/common-column.d.ts +0 -26
- package/dist/types/components/picker/common.d.ts +0 -143
- package/dist/types/components/picker/index.vue.d.ts +0 -13
- package/dist/types/components/picker/model.d.ts +0 -55
- package/dist/types/components/pickeritem/index.vue.d.ts +0 -13
- package/dist/types/components/placeholder/index.vue.d.ts +0 -13
- package/dist/types/components/popover/index.vue.d.ts +0 -13
- package/dist/types/components/popover/type.d.ts +0 -2
- package/dist/types/components/popup/common.d.ts +0 -81
- package/dist/types/components/popup/index.vue.d.ts +0 -13
- package/dist/types/components/popup/use-lock-scroll.d.ts +0 -1
- package/dist/types/components/price/index.vue.d.ts +0 -13
- package/dist/types/components/price/price-props.d.ts +0 -37
- package/dist/types/components/progress/index.vue.d.ts +0 -13
- package/dist/types/components/radio/common.d.ts +0 -125
- package/dist/types/components/radio/index.vue.d.ts +0 -13
- package/dist/types/components/radioitem/common.d.ts +0 -99
- package/dist/types/components/radioitem/index.vue.d.ts +0 -13
- package/dist/types/components/radioitem/model.d.ts +0 -33
- package/dist/types/components/range/index.vue.d.ts +0 -13
- package/dist/types/components/rate/index.vue.d.ts +0 -13
- package/dist/types/components/row/index.vue.d.ts +0 -13
- package/dist/types/components/searchbar/index.vue.d.ts +0 -13
- package/dist/types/components/searchbar/type.d.ts +0 -5
- package/dist/types/components/shortpassword/index.vue.d.ts +0 -13
- package/dist/types/components/sidenavbar/index.vue.d.ts +0 -13
- package/dist/types/components/sidenavbaritem/index.vue.d.ts +0 -13
- package/dist/types/components/signature/index.vue.d.ts +0 -13
- package/dist/types/components/skeleton/common.d.ts +0 -57
- package/dist/types/components/skeleton/index.vue.d.ts +0 -13
- package/dist/types/components/sku/components/SkuHeader.vue.d.ts +0 -13
- package/dist/types/components/sku/components/SkuOperate.vue.d.ts +0 -13
- package/dist/types/components/sku/components/SkuSelect.vue.d.ts +0 -13
- package/dist/types/components/sku/components/SkuStepper.vue.d.ts +0 -13
- package/dist/types/components/sku/index.vue.d.ts +0 -13
- package/dist/types/components/step/index.vue.d.ts +0 -13
- package/dist/types/components/steps/index.vue.d.ts +0 -13
- package/dist/types/components/sticky/index.vue.d.ts +0 -13
- package/dist/types/components/subsidenavbar/index.vue.d.ts +0 -13
- package/dist/types/components/swipe/index.vue.d.ts +0 -13
- package/dist/types/components/swipe/type.d.ts +0 -1
- package/dist/types/components/swiper/index.vue.d.ts +0 -13
- package/dist/types/components/swiper/use-touch.d.ts +0 -16
- package/dist/types/components/swiperitem/index.vue.d.ts +0 -13
- package/dist/types/components/switch/common.d.ts +0 -50
- package/dist/types/components/switch/index.vue.d.ts +0 -13
- package/dist/types/components/switchitem/index.vue.d.ts +0 -13
- package/dist/types/components/tabbar/index.vue.d.ts +0 -13
- package/dist/types/components/tabbaritem/index.vue.d.ts +0 -13
- package/dist/types/components/table/common.d.ts +0 -55
- package/dist/types/components/table/index.vue.d.ts +0 -13
- package/dist/types/components/table/renderColumn.d.ts +0 -11
- package/dist/types/components/table/types.d.ts +0 -17
- package/dist/types/components/tabpane/index.vue.d.ts +0 -13
- package/dist/types/components/tabs/index.vue.d.ts +0 -13
- package/dist/types/components/tabs/type.d.ts +0 -1
- package/dist/types/components/tag/index.vue.d.ts +0 -13
- package/dist/types/components/tag/type.d.ts +0 -1
- package/dist/types/components/textarea/index.vue.d.ts +0 -13
- package/dist/types/components/textareaitem/index.vue.d.ts +0 -13
- package/dist/types/components/timedetail/index.vue.d.ts +0 -13
- package/dist/types/components/timepannel/index.vue.d.ts +0 -13
- package/dist/types/components/timeselect/index.vue.d.ts +0 -13
- package/dist/types/components/toast/index.d.ts +0 -12
- package/dist/types/components/toast/index.vue.d.ts +0 -13
- package/dist/types/components/uploader/index.vue.d.ts +0 -13
- package/dist/types/components/uploader/type.d.ts +0 -14
- package/dist/types/components/uploader/uploader.d.ts +0 -24
- package/dist/types/components/video/index.vue.d.ts +0 -13
- package/dist/types/components/watermark/index.vue.d.ts +0 -13
- package/dist/types/interface.d.ts +0 -27
- package/dist/types/main.d.ts +0 -18
- package/dist/types/utils/commons.d.ts +0 -16
- package/dist/types/utils/create/component.d.ts +0 -18
- package/dist/types/utils/create/index.d.ts +0 -1
- package/dist/types/utils/date.d.ts +0 -16
- package/dist/types/utils/domain/broadcast.d.ts +0 -28
- package/dist/types/utils/domain/domain.d.ts +0 -46
- package/dist/types/utils/domain/events.d.ts +0 -14
- package/dist/types/utils/domain/group.d.ts +0 -17
- package/dist/types/utils/domain/index.d.ts +0 -5
- package/dist/types/utils/domain/item.d.ts +0 -15
- package/dist/types/utils/domain/page.d.ts +0 -49
- package/dist/types/utils/domain/validator.d.ts +0 -56
- package/dist/types/utils/functions.d.ts +0 -3
- package/dist/types/utils/px.d.ts +0 -2
- package/dist/types/utils/types.d.ts +0 -9
- package/dist/types/utils/unique-id.d.ts +0 -5
- package/dist/types/utils/use-expose/index.d.ts +0 -2
- package/dist/types/utils/use-rect/index.d.ts +0 -11
- package/dist/types/utils/use-relation/index.d.ts +0 -3
- package/dist/types/utils/use-relation/useInject.d.ts +0 -14
- package/dist/types/utils/use-relation/useProvide.d.ts +0 -8
- package/dist/types/utils/use-relation/useRelation.d.ts +0 -1
- package/dist/types/utils/use-touch/index.d.ts +0 -18
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
-
export default _sfc_main;
|
|
7
|
-
|
|
8
|
-
declare module 'vue' {
|
|
9
|
-
interface GlobalComponents {
|
|
10
|
-
Fox : typeof _sfc_main;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
-
export default _sfc_main;
|
|
7
|
-
|
|
8
|
-
declare module 'vue' {
|
|
9
|
-
interface GlobalComponents {
|
|
10
|
-
Fox : typeof _sfc_main;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare type SizeType = 'original' | 'compressed';
|
|
2
|
-
export declare type SourceType = 'album' | 'camera' | 'user' | 'environment';
|
|
3
|
-
export declare type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error';
|
|
4
|
-
export declare class FileItem {
|
|
5
|
-
status: FileItemStatus;
|
|
6
|
-
message: string;
|
|
7
|
-
uid: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
url?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
path?: string;
|
|
12
|
-
percentage: string | number;
|
|
13
|
-
formData: any;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class UploadOptions {
|
|
2
|
-
url: string;
|
|
3
|
-
name: string;
|
|
4
|
-
fileType?: string | undefined;
|
|
5
|
-
formData?: FormData;
|
|
6
|
-
sourceFile: any;
|
|
7
|
-
method: string;
|
|
8
|
-
xhrState: number;
|
|
9
|
-
timeout: number;
|
|
10
|
-
headers: {};
|
|
11
|
-
withCredentials: boolean;
|
|
12
|
-
onStart?: Function;
|
|
13
|
-
taroFilePath?: string;
|
|
14
|
-
onProgress?: Function;
|
|
15
|
-
onSuccess?: Function;
|
|
16
|
-
onFailure?: Function;
|
|
17
|
-
beforeXhrUpload?: Function;
|
|
18
|
-
}
|
|
19
|
-
export declare class Uploader {
|
|
20
|
-
options: UploadOptions;
|
|
21
|
-
constructor(options: UploadOptions);
|
|
22
|
-
upload(): void;
|
|
23
|
-
uploadTaro(uploadFile: Function, env: string): void;
|
|
24
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
-
export default _sfc_main;
|
|
7
|
-
|
|
8
|
-
declare module 'vue' {
|
|
9
|
-
interface GlobalComponents {
|
|
10
|
-
Fox : typeof _sfc_main;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
-
export default _sfc_main;
|
|
7
|
-
|
|
8
|
-
declare module 'vue' {
|
|
9
|
-
interface GlobalComponents {
|
|
10
|
-
Fox : typeof _sfc_main;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { App, ComponentPublicInstance } from 'vue';
|
|
2
|
-
import { Rect } from './utils/types';
|
|
3
|
-
import { ScopeGetter } from './api';
|
|
4
|
-
import { GroupLayout } from './utils/domain/group';
|
|
5
|
-
import { SafeAreaInset, PageLayout, Domain } from './utils/domain';
|
|
6
|
-
export interface FoxUIOptions {
|
|
7
|
-
headerBarHeight?: number;
|
|
8
|
-
footerBarHeight?: number;
|
|
9
|
-
safeAreaInset?: SafeAreaInset;
|
|
10
|
-
pageLayout?: PageLayout;
|
|
11
|
-
headerPadding?: Rect;
|
|
12
|
-
contentPadding?: Rect;
|
|
13
|
-
groupLayout?: GroupLayout;
|
|
14
|
-
labelWidth?: number | string;
|
|
15
|
-
[propName: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export interface FoxUI {
|
|
18
|
-
version: string;
|
|
19
|
-
install(app: App, options: FoxUIOptions): void;
|
|
20
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
21
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
22
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
23
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
24
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
25
|
-
clearScopeAPI(scope: string): void;
|
|
26
|
-
getRootDomain(): Domain;
|
|
27
|
-
}
|
package/dist/types/main.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { App, ComponentPublicInstance } from 'vue';
|
|
2
|
-
import { Domain } from './utils/domain';
|
|
3
|
-
import { ScopeGetter } from './api';
|
|
4
|
-
import { FoxUI, FoxUIOptions } from './interface';
|
|
5
|
-
export declare class FoxUIApp implements FoxUI {
|
|
6
|
-
private packages;
|
|
7
|
-
private _version;
|
|
8
|
-
get version(): string;
|
|
9
|
-
constructor(packages: any[], version: string);
|
|
10
|
-
install(app: App, options: FoxUIOptions): void;
|
|
11
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
12
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
13
|
-
setAPI(name: string, api: any, scope?: string): void;
|
|
14
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
15
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
16
|
-
clearScopeAPI(scope: string): void;
|
|
17
|
-
getRootDomain(): Domain;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { isArray, isMap, isSet, isDate, isFunction, isString, isSymbol, isObject, isPromise, isPlainObject, isESModule, isEqual, toTypeString, toBoolean, toNumber, extend, clone } from '@fox-js/fox';
|
|
2
|
-
export { numberFormat, unNumberFormat, multiply, divide, negate, compareTo } from '@fox-js/big-decimal';
|
|
3
|
-
export declare const isBrowser: boolean;
|
|
4
|
-
export declare const raf: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | typeof setTimeout;
|
|
5
|
-
export declare function isRegExp(v: unknown): v is RegExp;
|
|
6
|
-
export declare const isEmptyString: (v: unknown) => boolean;
|
|
7
|
-
export declare function isNumberString(value: string): boolean;
|
|
8
|
-
export declare function integerLength(value: string | number): number;
|
|
9
|
-
export declare function decimalLength(value: string | number): number;
|
|
10
|
-
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
11
|
-
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
12
|
-
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
13
|
-
export declare function valueLength(val: unknown): number;
|
|
14
|
-
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
15
|
-
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
16
|
-
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { App, DefineComponent, ComponentPropsOptions, ExtractPropTypes, SetupContext, RenderFunction, Component } from 'vue';
|
|
2
|
-
export declare function createComponent(name: string): {
|
|
3
|
-
componentName: string;
|
|
4
|
-
scope: string;
|
|
5
|
-
create<PropsOptions extends Readonly<ComponentPropsOptions<{
|
|
6
|
-
[x: string]: unknown;
|
|
7
|
-
}>>, Props extends Readonly<ExtractPropTypes<PropsOptions>>>(_component: {
|
|
8
|
-
[optionKey: string]: any;
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
baseName?: string | undefined;
|
|
11
|
-
install?: ((vue: App) => void) | undefined;
|
|
12
|
-
props?: PropsOptions | undefined;
|
|
13
|
-
components?: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
14
|
-
setup?: ((props: Props, setupContext: SetupContext) => RenderFunction | Record<string, any> | any) | undefined;
|
|
15
|
-
emits?: string[] | undefined;
|
|
16
|
-
}): DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
17
|
-
createDemo(_component: any): DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createComponent } from './component';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const DateUtils: {
|
|
2
|
-
format(date: Date, template: string): string;
|
|
3
|
-
parser(str: string, template: string): Date;
|
|
4
|
-
isLeapYear(y: number): boolean;
|
|
5
|
-
getWhatDay(year: number, month: number, day: number): string;
|
|
6
|
-
getMonthPreDay(year: number, month: number): number;
|
|
7
|
-
getMonthDays(year: string, month: string): number;
|
|
8
|
-
getNumTwoBit(n: number): string;
|
|
9
|
-
date2Str: (date: Date, split?: string | undefined) => string;
|
|
10
|
-
getDay(i: number): string;
|
|
11
|
-
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
12
|
-
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
13
|
-
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
14
|
-
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
15
|
-
};
|
|
16
|
-
export default DateUtils;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
|
2
|
-
export declare const BroadcastKey: unique symbol;
|
|
3
|
-
export interface Matched {
|
|
4
|
-
name?: string | RegExp;
|
|
5
|
-
maxLevel?: number;
|
|
6
|
-
level?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare type Result = Promise<any> | any;
|
|
9
|
-
export declare type Results = Result[];
|
|
10
|
-
export interface BroadcastCallback {
|
|
11
|
-
(...args: any[]): Result;
|
|
12
|
-
}
|
|
13
|
-
export declare class Broadcast {
|
|
14
|
-
private parent;
|
|
15
|
-
private children;
|
|
16
|
-
private callbacks;
|
|
17
|
-
private instance;
|
|
18
|
-
private name?;
|
|
19
|
-
constructor(parent: Broadcast | null, instance: ComponentInternalInstance, name?: string);
|
|
20
|
-
private addChild;
|
|
21
|
-
private removeChild;
|
|
22
|
-
destroy(): void;
|
|
23
|
-
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
24
|
-
on(action: string, callback: BroadcastCallback): void;
|
|
25
|
-
}
|
|
26
|
-
export declare function createBroadcast(instance: ComponentInternalInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
27
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast | null;
|
|
28
|
-
export declare function useBroadcast(proxy?: ComponentPublicInstance | null): Broadcast | null;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ComponentInternalInstance } from 'vue';
|
|
2
|
-
import { Broadcast, BroadcastCallback } from './broadcast';
|
|
3
|
-
import { ValidateSchema, Descriptor } from './validator';
|
|
4
|
-
import { EventListener } from './events';
|
|
5
|
-
export declare const DomainKey: unique symbol;
|
|
6
|
-
export declare class Domain {
|
|
7
|
-
private _parent;
|
|
8
|
-
get parent(): Domain | null;
|
|
9
|
-
set parent(val: Domain | null);
|
|
10
|
-
private _name;
|
|
11
|
-
get name(): string | null;
|
|
12
|
-
private _broadcast;
|
|
13
|
-
get broadcast(): Broadcast | null;
|
|
14
|
-
set broadcast(val: Broadcast | null);
|
|
15
|
-
private _validateSchema;
|
|
16
|
-
get validateSchema(): ValidateSchema | null;
|
|
17
|
-
set validateSchema(val: ValidateSchema | null);
|
|
18
|
-
private _props;
|
|
19
|
-
constructor(name?: string | null);
|
|
20
|
-
destroy(): void;
|
|
21
|
-
merge(props: Record<string | number, any>, ignores?: any[]): void;
|
|
22
|
-
has(key: string | number): boolean;
|
|
23
|
-
delete(key: string | number): void;
|
|
24
|
-
set(key: string | number, value: any): void;
|
|
25
|
-
get(key: string | number, defaultValue?: any): any;
|
|
26
|
-
getForParent(key: string | number, defaultValue?: any): any;
|
|
27
|
-
getForSelf(key: string | number): any;
|
|
28
|
-
getAll(key: string | number): any[];
|
|
29
|
-
}
|
|
30
|
-
export declare function getRootDomain(): Domain;
|
|
31
|
-
export declare function useDomain(instance?: ComponentInternalInstance | null): Domain | null;
|
|
32
|
-
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
33
|
-
export interface DomainItem {
|
|
34
|
-
broadcast: Broadcast;
|
|
35
|
-
validateSchema: ValidateSchema;
|
|
36
|
-
emitEvent: {
|
|
37
|
-
(type: string, ...args: any[]): void;
|
|
38
|
-
};
|
|
39
|
-
onEvent: {
|
|
40
|
-
(type: string, listener: EventListener): void;
|
|
41
|
-
};
|
|
42
|
-
offEvent: {
|
|
43
|
-
(type: string, listener: EventListener): void;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance } from 'vue';
|
|
2
|
-
export declare const EventEmitterKey: unique symbol;
|
|
3
|
-
export interface EventListener {
|
|
4
|
-
(...args: any[]): void;
|
|
5
|
-
}
|
|
6
|
-
export declare class EventEmitter {
|
|
7
|
-
private register;
|
|
8
|
-
private proxy;
|
|
9
|
-
constructor(proxy: ComponentPublicInstance);
|
|
10
|
-
destroy(): void;
|
|
11
|
-
off(type: string, listener: EventListener): void;
|
|
12
|
-
on(type: string, listener: EventListener): void;
|
|
13
|
-
emit(type: string, ...args: any[]): void;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Domain } from './domain';
|
|
3
|
-
export declare function injectGroupScope(): boolean;
|
|
4
|
-
export declare function provideGroupScope(flag?: boolean): void;
|
|
5
|
-
export interface GroupLayout {
|
|
6
|
-
width: number;
|
|
7
|
-
column: number;
|
|
8
|
-
gutter: number;
|
|
9
|
-
itemWidth: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function createGroupState(domain: Domain): {
|
|
12
|
-
layout: Ref<GroupLayout>;
|
|
13
|
-
passport: number;
|
|
14
|
-
};
|
|
15
|
-
export declare function updateGroupLayout(domain: Domain, width: number | string, column?: number | string, gutter?: number | string, immediate?: boolean): void;
|
|
16
|
-
export declare function getGroupLayout(domain: Domain, inGroupItem?: boolean): Ref<GroupLayout>;
|
|
17
|
-
export declare function getItemWidth(domain: Domain, span?: number | string, inGroupItem?: boolean): number;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Ref, UnwrapRef } from 'vue';
|
|
2
|
-
export declare enum PriorityPolicy {
|
|
3
|
-
Parent = 0,
|
|
4
|
-
Near = 1
|
|
5
|
-
}
|
|
6
|
-
export interface AcceptFilter {
|
|
7
|
-
(value: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
10
|
-
export declare function readonlyProperty(source: Ref): Ref;
|
|
11
|
-
export declare function disabledProperty(source: Ref): Ref;
|
|
12
|
-
export interface ValueFormat<T, K> {
|
|
13
|
-
(value: T): K;
|
|
14
|
-
}
|
|
15
|
-
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Domain } from './domain';
|
|
2
|
-
import { UnwrapNestedRefs } from 'vue';
|
|
3
|
-
export interface SafeAreaInset {
|
|
4
|
-
left: number | string;
|
|
5
|
-
top: number | string;
|
|
6
|
-
right: number | string;
|
|
7
|
-
bottom: number | string;
|
|
8
|
-
}
|
|
9
|
-
export interface Padding {
|
|
10
|
-
left: number | null;
|
|
11
|
-
top: number | null;
|
|
12
|
-
right: number | null;
|
|
13
|
-
bottom: number | null;
|
|
14
|
-
}
|
|
15
|
-
export interface PageLayout {
|
|
16
|
-
width: number | string;
|
|
17
|
-
height: number | string;
|
|
18
|
-
headerHeight: number | string;
|
|
19
|
-
footerHeight: number | string;
|
|
20
|
-
headerPadding?: Padding;
|
|
21
|
-
footerPadding?: Padding;
|
|
22
|
-
contentPadding?: Padding;
|
|
23
|
-
}
|
|
24
|
-
export interface PageState {
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
headerHeight: number;
|
|
28
|
-
headerPadding: Padding;
|
|
29
|
-
footerHeight: number;
|
|
30
|
-
footerPadding: Padding;
|
|
31
|
-
contentHeight: number | string | null;
|
|
32
|
-
contentPadding: Padding;
|
|
33
|
-
safeAreaTop: number;
|
|
34
|
-
safeAreaBottom: number;
|
|
35
|
-
safeAreaLeft: number;
|
|
36
|
-
safeAreaRight: number;
|
|
37
|
-
headerMounted?: boolean;
|
|
38
|
-
footerMounted?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export declare function toPadding(rect: any): Padding;
|
|
41
|
-
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number): void;
|
|
42
|
-
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
43
|
-
export declare function usePageState(domain: Domain): PageState | null;
|
|
44
|
-
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
45
|
-
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
46
|
-
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
47
|
-
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
48
|
-
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
49
|
-
export declare function isSubPage(domain: Domain): boolean;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Rule, ValidateMessages, ValidateResult, ExecuteValidator } from '@fox-js/validator';
|
|
2
|
-
import { ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
|
3
|
-
export interface ValidateHandler {
|
|
4
|
-
error?(errorMsg: string, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
5
|
-
reset?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
6
|
-
success?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
7
|
-
decorate?(newRule: Rule, oldRle: Rule, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
8
|
-
getValue?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): any;
|
|
9
|
-
}
|
|
10
|
-
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
11
|
-
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
12
|
-
export declare function deleteGlobalValidator(type: string): void;
|
|
13
|
-
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
14
|
-
export declare function getGlobalValidateCheckEvents(): string[];
|
|
15
|
-
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
16
|
-
export declare function getGlobalValidateResetEvents(): string[];
|
|
17
|
-
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
18
|
-
export declare type ValueType = 'string' | 'number' | 'date';
|
|
19
|
-
export interface Descriptor {
|
|
20
|
-
componentName: string;
|
|
21
|
-
valueName?: string;
|
|
22
|
-
valueType?: ValueType;
|
|
23
|
-
validate?: boolean;
|
|
24
|
-
validateHandler?: ValidateHandler;
|
|
25
|
-
validateCheckEvents?: string[];
|
|
26
|
-
validateResetEvents?: string[];
|
|
27
|
-
}
|
|
28
|
-
export declare const ValidateSchemaKey: unique symbol;
|
|
29
|
-
export declare class ValidateSchema {
|
|
30
|
-
private parent;
|
|
31
|
-
private children;
|
|
32
|
-
private validators;
|
|
33
|
-
private attrRules;
|
|
34
|
-
private rules;
|
|
35
|
-
private descriptor;
|
|
36
|
-
private instance;
|
|
37
|
-
private scope;
|
|
38
|
-
constructor(parent: ValidateSchema | null, descriptor: Descriptor, instance: ComponentInternalInstance);
|
|
39
|
-
private init;
|
|
40
|
-
destroy(): void;
|
|
41
|
-
addChild(child: ValidateSchema): void;
|
|
42
|
-
removeChild(child: ValidateSchema): void;
|
|
43
|
-
private execHandler;
|
|
44
|
-
private decorate;
|
|
45
|
-
private success;
|
|
46
|
-
private error;
|
|
47
|
-
private getValue;
|
|
48
|
-
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
49
|
-
getValidator(type: string): ExecuteValidator | null;
|
|
50
|
-
deleteValidator(type: string, global?: boolean): void;
|
|
51
|
-
hasValidator(type: string, global?: boolean): boolean;
|
|
52
|
-
clear(deep?: boolean): void;
|
|
53
|
-
setRule(rule: Rule): void;
|
|
54
|
-
validate(deep?: boolean): Promise<ValidateResult>;
|
|
55
|
-
}
|
|
56
|
-
export declare function createValidateSchema(instance: ComponentInternalInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
package/dist/types/utils/px.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
interface Rect {
|
|
3
|
-
top: number;
|
|
4
|
-
left: number;
|
|
5
|
-
right: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
11
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { InjectionKey, ComponentInternalInstance } from 'vue';
|
|
2
|
-
declare type ParentProvide<T> = T & {
|
|
3
|
-
add(child: ComponentInternalInstance): void;
|
|
4
|
-
remove(child: ComponentInternalInstance): void;
|
|
5
|
-
internalChildren: ComponentInternalInstance[];
|
|
6
|
-
};
|
|
7
|
-
export declare function useInject<T>(key: InjectionKey<ParentProvide<T>>): {
|
|
8
|
-
parent: ParentProvide<T>;
|
|
9
|
-
index: import("vue").ComputedRef<number>;
|
|
10
|
-
} | {
|
|
11
|
-
parent: null;
|
|
12
|
-
index: import("vue").Ref<number>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { VNode, InjectionKey, VNodeNormalizedChildren, ComponentInternalInstance } from 'vue';
|
|
2
|
-
export declare function flattenVNodes(children: VNodeNormalizedChildren, childName?: string): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}>[];
|
|
5
|
-
export declare function sortChildren(parent: ComponentInternalInstance, internalChildren: ComponentInternalInstance[], childName?: string): void;
|
|
6
|
-
export declare function useProvide<ProvideValue>(key: InjectionKey<ProvideValue>, childName?: string): (value?: ProvideValue | undefined) => {
|
|
7
|
-
internalChildren: ComponentInternalInstance[];
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useExtend<T>(apis: T): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
2
|
-
export declare function useTouch(): {
|
|
3
|
-
move: EventListener;
|
|
4
|
-
start: EventListener;
|
|
5
|
-
reset: () => void;
|
|
6
|
-
startX: import("vue").Ref<number>;
|
|
7
|
-
startY: import("vue").Ref<number>;
|
|
8
|
-
moveX: import("vue").Ref<number>;
|
|
9
|
-
moveY: import("vue").Ref<number>;
|
|
10
|
-
deltaX: import("vue").Ref<number>;
|
|
11
|
-
deltaY: import("vue").Ref<number>;
|
|
12
|
-
offsetX: import("vue").Ref<number>;
|
|
13
|
-
offsetY: import("vue").Ref<number>;
|
|
14
|
-
direction: import("vue").Ref<Direction>;
|
|
15
|
-
isVertical: () => boolean;
|
|
16
|
-
isHorizontal: () => boolean;
|
|
17
|
-
};
|
|
18
|
-
export {};
|