@airpower/web 0.2.6 → 0.2.8
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/components/dialog/DialogUtil.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/form/FormField.vue.d.ts +5 -5
- package/dist/components/image/Image.vue.d.ts +5 -5
- package/dist/components/input/Input.vue.d.ts +7 -7
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/menu/IMenu.d.ts +1 -1
- package/dist/components/money/Money.vue.d.ts +1 -1
- package/dist/components/page/Page.vue.d.ts +1 -1
- package/dist/components/select/Selector.vue.d.ts +1 -3
- package/dist/components/table/Table.vue.d.ts +2 -4
- package/dist/components/table/component/ColumnSelector.vue.d.ts +1 -1
- package/dist/components/table/component/CopyColumn.vue.d.ts +1 -1
- package/dist/components/table/component/EnumColumn.vue.d.ts +2 -2
- package/dist/components/table/component/Export.vue.d.ts +1 -1
- package/dist/components/table/useTableColumn.d.ts +1 -1
- package/dist/components/tree/TreeBox.vue.d.ts +1 -1
- package/dist/config/WebConfig.d.ts +8 -0
- package/dist/curd/AbstractCurdService.d.ts +3 -9
- package/dist/{decorator → curd/decorator}/@Field/Field.d.ts +4 -4
- package/dist/{decorator → curd/decorator}/@Field/IFieldConfig.d.ts +3 -3
- package/dist/{decorator → curd/decorator}/@Form/IFormField.d.ts +1 -1
- package/dist/{hooks → curd/hooks}/detail/IDetailOption.d.ts +1 -1
- package/dist/{hooks → curd/hooks}/detail/IDetailResult.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/detail/useDetail.d.ts +4 -4
- package/dist/{hooks → curd/hooks}/editor/IEditorOption.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/editor/IEditorResult.d.ts +3 -3
- package/dist/{hooks → curd/hooks}/editor/useEditor.d.ts +4 -4
- package/dist/{hooks → curd/hooks}/table/base/IBaseTableOption.d.ts +1 -1
- package/dist/{hooks → curd/hooks}/table/base/IBaseTableResult.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/base/useBaseTable.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/list/ITableOption.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/list/ITableResult.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/list/useTable.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/selector/ISelectorOption.d.ts +1 -1
- package/dist/{hooks → curd/hooks}/table/selector/ISelectorResult.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/selector/useSelector.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/tree/ITableTreeOption.d.ts +1 -1
- package/dist/{hooks → curd/hooks}/table/tree/ITableTreeResult.d.ts +2 -2
- package/dist/{hooks → curd/hooks}/table/tree/useTableTree.d.ts +2 -2
- package/dist/curd/index.d.ts +3 -0
- package/dist/{model → curd/model}/query/QueryRequest.d.ts +1 -1
- package/dist/{model → curd/model}/query/QueryRequestPage.d.ts +1 -1
- package/dist/{model → curd/model}/query/QueryResponsePage.d.ts +1 -1
- package/dist/{model → curd/model}/tree/ITree.d.ts +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/main.js +8582 -5754
- package/dist/shared/index.d.ts +4 -0
- package/dist/{enum → util/enum}/DisableEnum.d.ts +2 -2
- package/dist/{enum → util/enum}/IWebEnum.d.ts +1 -2
- package/dist/util/enum/type.d.ts +8 -0
- package/dist/util/file/index.d.ts +1 -0
- package/dist/util/http/Http.d.ts +2 -2
- package/dist/util/index.d.ts +3 -0
- package/dist/util/router/RouterUtil.d.ts +47 -0
- package/dist/util/router/index.d.ts +1 -0
- package/dist/util/validator/WebValidator.d.ts +1 -2
- package/dist/web.css +55 -55
- package/package.json +2 -2
- package/dist/enum/type.d.ts +0 -8
- package/dist/type/index.d.ts +0 -1
- /package/dist/{decorator → curd/decorator}/@Field/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Form/Form.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Form/FormTrim.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Form/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Model/IModelConfig.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Model/Model.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Model/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Search/ISearchField.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Search/Search.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Search/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Table/IElementTableColumn.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Table/ITableColumn.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Table/Table.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Table/TableType.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/@Table/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/common/IBaseField.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/common/index.d.ts +0 -0
- /package/dist/{decorator → curd/decorator}/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/detail/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/editor/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/table/base/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/table/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/table/list/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/table/selector/index.d.ts +0 -0
- /package/dist/{hooks → curd/hooks}/table/tree/index.d.ts +0 -0
- /package/dist/{model → curd/model}/export/ExportModel.d.ts +0 -0
- /package/dist/{model → curd/model}/export/index.d.ts +0 -0
- /package/dist/{model → curd/model}/index.d.ts +0 -0
- /package/dist/{model → curd/model}/query/QueryPage.d.ts +0 -0
- /package/dist/{model → curd/model}/query/QuerySort.d.ts +0 -0
- /package/dist/{model → curd/model}/query/index.d.ts +0 -0
- /package/dist/{model → curd/model}/query/type.d.ts +0 -0
- /package/dist/{model → curd/model}/tree/index.d.ts +0 -0
- /package/dist/{enum → util/enum}/WebColor.d.ts +0 -0
- /package/dist/{enum → util/enum}/WebEnum.d.ts +0 -0
- /package/dist/{enum → util/enum}/index.d.ts +0 -0
- /package/dist/{i18n → util/i18n}/WebI18n.d.ts +0 -0
- /package/dist/{i18n → util/i18n}/index.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IJson } from '@airpower/transformer';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
3
|
import { RootEntity } from '../../base';
|
|
4
|
-
import { ExportModel } from '../../
|
|
4
|
+
import { ExportModel } from '../../curd';
|
|
5
5
|
import { IFile } from '../../util';
|
|
6
6
|
import { IUploadProps } from '../upload';
|
|
7
7
|
/**
|
|
@@ -2,10 +2,11 @@ import { IEnum } from '@airpower/enum';
|
|
|
2
2
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
import { RootEntity } from '../../base';
|
|
5
|
-
import { ITree } from '../../
|
|
5
|
+
import { ITree } from '../../curd';
|
|
6
6
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
8
8
|
disabled: boolean;
|
|
9
|
+
list: IEnum<number>[];
|
|
9
10
|
entity: ITransformerConstructor<E>;
|
|
10
11
|
tree: ITree[];
|
|
11
12
|
modelValue: [{
|
|
@@ -17,11 +18,10 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
17
18
|
};
|
|
18
19
|
readonly: boolean;
|
|
19
20
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
20
|
-
list: IEnum<number>[];
|
|
21
21
|
}> & Omit<{
|
|
22
22
|
readonly disabled: boolean;
|
|
23
|
-
readonly entity: ITransformerConstructor<E>;
|
|
24
23
|
readonly field: string;
|
|
24
|
+
readonly entity: ITransformerConstructor<E>;
|
|
25
25
|
readonly modelValue: [{
|
|
26
26
|
type: PropType<E>;
|
|
27
27
|
default: null;
|
|
@@ -30,15 +30,15 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
30
30
|
default: null;
|
|
31
31
|
};
|
|
32
32
|
readonly readonly: boolean;
|
|
33
|
+
readonly list?: IEnum<number>[] | undefined;
|
|
33
34
|
readonly tree?: ITree[] | undefined;
|
|
34
35
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
35
|
-
readonly list?: IEnum<number>[] | undefined;
|
|
36
36
|
readonly onClear?: (() => any) | undefined;
|
|
37
37
|
readonly onChange?: ((value: E) => any) | undefined;
|
|
38
38
|
readonly "onUpdate:modelValue"?: ((value: E) => any) | undefined;
|
|
39
39
|
readonly onBlur?: (() => any) | undefined;
|
|
40
40
|
readonly onFocus?: (() => any) | undefined;
|
|
41
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue"
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "list" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "list" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
42
42
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
43
43
|
attrs: any;
|
|
44
44
|
slots: {
|
|
@@ -6,14 +6,14 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
6
6
|
data: IJson<any>;
|
|
7
7
|
width: number;
|
|
8
8
|
height: number;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
clearable: boolean;
|
|
9
11
|
uploadUrl: string;
|
|
10
12
|
extensions: unknown[];
|
|
11
13
|
entity: ITransformerConstructor<F>;
|
|
12
14
|
headers: IJson<any>;
|
|
13
15
|
limit: number;
|
|
14
16
|
upload: boolean;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
clearable: boolean;
|
|
17
17
|
src: string;
|
|
18
18
|
showTips: boolean;
|
|
19
19
|
uploadFileName: string;
|
|
@@ -21,20 +21,20 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
21
21
|
readonly data: IJson<any>;
|
|
22
22
|
readonly width: number;
|
|
23
23
|
readonly height: number;
|
|
24
|
+
readonly clearable: boolean;
|
|
24
25
|
readonly uploadUrl: string;
|
|
25
26
|
readonly extensions: unknown[];
|
|
26
27
|
readonly headers: IJson<any>;
|
|
27
28
|
readonly limit: number;
|
|
28
29
|
readonly upload: boolean;
|
|
29
|
-
readonly clearable: boolean;
|
|
30
30
|
readonly showTips: boolean;
|
|
31
31
|
readonly uploadFileName: string;
|
|
32
|
-
readonly entity?: ITransformerConstructor<F> | undefined;
|
|
33
32
|
readonly placeholder?: string | undefined;
|
|
33
|
+
readonly entity?: ITransformerConstructor<F> | undefined;
|
|
34
34
|
readonly src?: string | undefined;
|
|
35
35
|
readonly onOnRemove?: (() => any) | undefined;
|
|
36
36
|
readonly onOnUpload?: ((file: F) => any) | undefined;
|
|
37
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "width" | "height" | "
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "width" | "height" | "placeholder" | "clearable" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "src" | "showTips" | "uploadFileName">, "onOnRemove" | "onOnUpload" | ("data" | "width" | "height" | "placeholder" | "clearable" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "src" | "showTips" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
39
|
attrs: any;
|
|
40
40
|
slots: {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { IEnum } from '@airpower/enum';
|
|
2
2
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
3
3
|
import { RootEntity } from '../../base';
|
|
4
|
-
import { ITree } from '../../
|
|
4
|
+
import { ITree } from '../../curd';
|
|
5
5
|
declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
7
|
disabled: boolean;
|
|
8
|
-
entity: ITransformerConstructor<E>;
|
|
9
8
|
placeholder: string;
|
|
10
|
-
tree: T[];
|
|
11
9
|
dateShowFormatter: string;
|
|
10
|
+
list: EM[];
|
|
11
|
+
entity: ITransformerConstructor<E>;
|
|
12
|
+
tree: T[];
|
|
12
13
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
13
14
|
readonly: boolean;
|
|
14
15
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
15
|
-
list: EM[];
|
|
16
16
|
modelModifiers: Record<string, any>;
|
|
17
17
|
modifier: string;
|
|
18
18
|
showClear: boolean;
|
|
@@ -24,19 +24,19 @@ declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum
|
|
|
24
24
|
readonly modelModifiers: Record<string, any>;
|
|
25
25
|
readonly showClear: boolean;
|
|
26
26
|
readonly onSearch: Function;
|
|
27
|
+
readonly dateShowFormatter?: string | undefined;
|
|
28
|
+
readonly list?: EM[] | undefined;
|
|
27
29
|
readonly entity?: ITransformerConstructor<E> | undefined;
|
|
28
30
|
readonly tree?: T[] | undefined;
|
|
29
|
-
readonly dateShowFormatter?: string | undefined;
|
|
30
31
|
readonly modelValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
31
32
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
32
|
-
readonly list?: EM[] | undefined;
|
|
33
33
|
readonly modifier?: string | undefined;
|
|
34
34
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "placeholder" | "dateShowFormatter" | "list" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onChange" | "onClear" | "onUpdate:modelValue" | ("disabled" | "placeholder" | "dateShowFormatter" | "list" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
40
40
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
41
|
attrs: any;
|
|
42
42
|
slots: Partial<Record<NonNullable<string | number | symbol>, (_: {}) => any>>;
|
|
@@ -65,7 +65,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
65
65
|
}>> & Readonly<{}>, {
|
|
66
66
|
precision: number;
|
|
67
67
|
money: number;
|
|
68
|
-
prefix: string;
|
|
69
68
|
direction: MoneyDirection;
|
|
69
|
+
prefix: string;
|
|
70
70
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
71
71
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootEntity } from '../../base';
|
|
2
|
-
import { QueryPage, QueryResponsePage } from '../../
|
|
2
|
+
import { QueryPage, QueryResponsePage } from '../../curd';
|
|
3
3
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly response: QueryResponsePage<E>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
3
|
import { RootEntity } from '../../base';
|
|
4
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../curd';
|
|
5
|
-
import { ISearchField, ITableColumn } from '../../decorator';
|
|
6
|
-
import { QueryRequestPage } from '../../model';
|
|
4
|
+
import { AbstractCurdService, CurdServiceConstructor, ISearchField, ITableColumn, QueryRequestPage } from '../../curd';
|
|
7
5
|
declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
9
7
|
/**
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
2
2
|
import { PropType, Ref } from 'vue';
|
|
3
3
|
import { RootEntity } from '../../base';
|
|
4
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../curd';
|
|
5
|
-
import { ISearchField, ITableColumn } from '../../decorator';
|
|
6
|
-
import { QueryRequest, QueryRequestPage, QuerySort } from '../../model';
|
|
4
|
+
import { AbstractCurdService, CurdServiceConstructor, ISearchField, ITableColumn, QueryRequest, QueryRequestPage, QuerySort } from '../../curd';
|
|
7
5
|
import { IFile } from '../../util';
|
|
8
6
|
declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
@@ -58,8 +56,8 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
58
56
|
importTemplateUrl: string;
|
|
59
57
|
fileEntity: ITransformerConstructor<IFile & RootEntity>;
|
|
60
58
|
}> & Omit<{
|
|
61
|
-
readonly entity: ITransformerConstructor<E>;
|
|
62
59
|
readonly selectList: E[];
|
|
60
|
+
readonly entity: ITransformerConstructor<E>;
|
|
63
61
|
readonly autoHeight: boolean;
|
|
64
62
|
readonly dataList: E[];
|
|
65
63
|
readonly columnList: ITableColumn[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootEntity } from '../../../base';
|
|
2
|
-
import { ITableColumn } from '../../../
|
|
2
|
+
import { ITableColumn } from '../../../curd';
|
|
3
3
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onChanged?: ((args_0: string[]) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootEntity } from '../../../base';
|
|
2
|
-
import { ITableColumn } from '../../../
|
|
2
|
+
import { ITableColumn } from '../../../curd';
|
|
3
3
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
5
5
|
column: ITableColumn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootEntity } from '../../../base';
|
|
2
|
-
import { ITableColumn } from '../../../
|
|
3
|
-
import { WebEnumConstructor } from '../../../
|
|
2
|
+
import { ITableColumn } from '../../../curd';
|
|
3
|
+
import { WebEnumConstructor } from '../../../util';
|
|
4
4
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
6
6
|
column: ITableColumn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootEntity } from '../../base';
|
|
2
|
-
import { ITree } from '../../
|
|
2
|
+
import { ITree } from '../../curd';
|
|
3
3
|
declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
5
5
|
title: string;
|
|
@@ -295,6 +295,14 @@ export declare class WebConfig {
|
|
|
295
295
|
* ### 小数精度位数
|
|
296
296
|
*/
|
|
297
297
|
static numberPrecision: number;
|
|
298
|
+
/**
|
|
299
|
+
* ### 是否超时
|
|
300
|
+
*/
|
|
301
|
+
static isTimeout: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* ### 产品名称
|
|
304
|
+
*/
|
|
305
|
+
static product: string;
|
|
298
306
|
/**
|
|
299
307
|
* ### 获取 `AccessToken`
|
|
300
308
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
2
2
|
import { RootEntity, AbstractService } from '../base';
|
|
3
|
-
import { QueryRequest, QueryResponsePage } from '../model';
|
|
4
3
|
import { WebValidateRule } from '../util';
|
|
4
|
+
import { QueryRequest, QueryResponsePage } from './model';
|
|
5
|
+
import { CurdServiceConstructor } from './type';
|
|
5
6
|
/**
|
|
6
7
|
* # 实体 `API` 服务超类
|
|
7
8
|
* 包含了常用的增删改查等方法
|
|
@@ -53,10 +54,9 @@ export declare abstract class AbstractCurdService<E extends RootEntity> extends
|
|
|
53
54
|
protected urlDelete: string;
|
|
54
55
|
/**
|
|
55
56
|
* ### 创建验证器
|
|
56
|
-
* @param form 表单对象
|
|
57
57
|
* @param moreRule `可选` 更多的验证规则
|
|
58
58
|
*/
|
|
59
|
-
static createValidator<E extends RootEntity
|
|
59
|
+
static createValidator<E extends RootEntity, S extends AbstractCurdService<E>>(this: CurdServiceConstructor<E, S>, moreRule?: WebValidateRule<E>): WebValidateRule<E>;
|
|
60
60
|
/**
|
|
61
61
|
* ### 查询分页数据列表
|
|
62
62
|
* @param request 请求对象
|
|
@@ -124,12 +124,6 @@ export declare abstract class AbstractCurdService<E extends RootEntity> extends
|
|
|
124
124
|
* @param apiUrl `可选` 自定义请求URL
|
|
125
125
|
*/
|
|
126
126
|
enable(id: number, message?: string, apiUrl?: string): Promise<void>;
|
|
127
|
-
/**
|
|
128
|
-
* ### 创建验证器
|
|
129
|
-
* @param form 表单对象
|
|
130
|
-
* @param moreRule `可选` 更多的验证规则
|
|
131
|
-
*/
|
|
132
|
-
createValidator<E extends RootEntity>(form: E, moreRule?: WebValidateRule<E>): WebValidateRule<E>;
|
|
133
127
|
/**
|
|
134
128
|
* ### 创建一个实体的实例
|
|
135
129
|
* @param id `可选` `ID`
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { EnumKey } from '@airpower/enum/dist/enum/type';
|
|
2
2
|
import { DecoratorTarget } from '@airpower/transformer';
|
|
3
|
-
import {
|
|
3
|
+
import { WebEnumConstructor } from '../../../util';
|
|
4
4
|
import { IFieldConfig } from './IFieldConfig';
|
|
5
5
|
/**
|
|
6
6
|
* ### 为属性标记配置
|
|
7
7
|
* @param config 配置项
|
|
8
8
|
*/
|
|
9
|
-
export declare function Field<K extends EnumKey = EnumKey
|
|
9
|
+
export declare function Field<K extends EnumKey = EnumKey>(config?: IFieldConfig<K>): (target: DecoratorTarget, key: string) => void;
|
|
10
10
|
/**
|
|
11
11
|
* ### 获取属性的配置
|
|
12
12
|
* @returns 配置对象
|
|
13
13
|
* @param target 目标类
|
|
14
14
|
* @param key 属性名
|
|
15
15
|
*/
|
|
16
|
-
export declare function getFieldConfig<K extends EnumKey = EnumKey
|
|
16
|
+
export declare function getFieldConfig<K extends EnumKey = EnumKey>(target: DecoratorTarget, key: string): IFieldConfig<K>;
|
|
17
17
|
/**
|
|
18
18
|
* ### 获取属性的枚举字典
|
|
19
19
|
* @param target 目标类
|
|
20
20
|
* @param key 属性名
|
|
21
21
|
*/
|
|
22
|
-
export declare function getDictionary<K extends EnumKey = EnumKey
|
|
22
|
+
export declare function getDictionary<K extends EnumKey = EnumKey>(target: DecoratorTarget, key: string): WebEnumConstructor<K> | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* ### 获取属性的标题
|
|
25
25
|
* @param target 目标类
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EnumKey } from '@airpower/enum/dist/enum/type';
|
|
2
|
-
import {
|
|
2
|
+
import { WebEnumConstructor } from '../../../util';
|
|
3
3
|
import { IBaseField } from '../common';
|
|
4
4
|
/**
|
|
5
5
|
* # 字段配置
|
|
6
6
|
*
|
|
7
7
|
* @author Hamm.cn
|
|
8
8
|
*/
|
|
9
|
-
export interface IFieldConfig<K extends EnumKey = EnumKey
|
|
9
|
+
export interface IFieldConfig<K extends EnumKey = EnumKey> extends IBaseField {
|
|
10
10
|
/**
|
|
11
11
|
* ### 字段标题
|
|
12
12
|
*/
|
|
@@ -14,5 +14,5 @@ export interface IFieldConfig<K extends EnumKey = EnumKey, E extends WebEnum<K>
|
|
|
14
14
|
/**
|
|
15
15
|
* ### 配置字典
|
|
16
16
|
*/
|
|
17
|
-
dictionary?: WebEnumConstructor<K
|
|
17
|
+
dictionary?: WebEnumConstructor<K>;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService } from '../../
|
|
2
|
+
import { RootEntity } from '../../../base';
|
|
3
|
+
import { AbstractCurdService } from '../../index';
|
|
4
4
|
/**
|
|
5
5
|
* # 详情的 `Hook` 标准返回
|
|
6
6
|
* @author Hamm.cn
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IJson } from '@airpower/transformer';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../
|
|
2
|
+
import { RootEntity } from '../../../base';
|
|
3
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../index';
|
|
4
4
|
import { IDetailOption } from './IDetailOption';
|
|
5
5
|
import { IDetailResult } from './IDetailResult';
|
|
6
6
|
/**
|
|
7
7
|
* # 引入详情的`Hook`
|
|
8
8
|
* @param props `defineProps` 的返回值
|
|
9
|
-
* @param
|
|
9
|
+
* @param ServiceClass 详情使用的 `Service`
|
|
10
10
|
* @param option `可选` 更多的配置
|
|
11
11
|
* @author Hamm.cn
|
|
12
12
|
*/
|
|
13
|
-
export declare function useDetail<E extends RootEntity, S extends AbstractCurdService<E>>(props: IJson,
|
|
13
|
+
export declare function useDetail<E extends RootEntity, S extends AbstractCurdService<E>>(props: IJson, ServiceClass: CurdServiceConstructor<E, S>, option?: IDetailOption<E>): IDetailResult<E, S>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormInstance } from 'element-plus';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
import { RootEntity } from '
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { RootEntity } from '../../../base';
|
|
4
|
+
import { WebValidateRule } from '../../../util';
|
|
5
|
+
import { AbstractCurdService } from '../../index';
|
|
6
6
|
import { IDetailResult } from '../detail';
|
|
7
7
|
/**
|
|
8
8
|
* # `Editor` 的 `Hook` 标准返回
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IJson } from '@airpower/transformer';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../
|
|
2
|
+
import { RootEntity } from '../../../base';
|
|
3
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../index';
|
|
4
4
|
import { IEditorOption } from './IEditorOption';
|
|
5
5
|
import { IEditorResult } from './IEditorResult';
|
|
6
6
|
/**
|
|
7
7
|
* # 引入`Editor`的`Hook`
|
|
8
8
|
* @param props `defineProps`的返回值
|
|
9
|
-
* @param
|
|
9
|
+
* @param ServiceClass `Editor`使用的`Service`
|
|
10
10
|
* @param option `可选` 更多的配置
|
|
11
11
|
* @author Hamm.cn
|
|
12
12
|
*/
|
|
13
|
-
export declare function useEditor<E extends RootEntity, S extends AbstractCurdService<E>>(props: IJson,
|
|
13
|
+
export declare function useEditor<E extends RootEntity, S extends AbstractCurdService<E>>(props: IJson, ServiceClass: CurdServiceConstructor<E, S>, option?: IEditorOption<E>): IEditorResult<E, S>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService } from '../../../
|
|
2
|
+
import { RootEntity } from '../../../../base';
|
|
3
|
+
import { AbstractCurdService } from '../../../index';
|
|
4
4
|
import { QueryPage, QueryRequestPage, QueryResponsePage, QuerySort } from '../../../model';
|
|
5
5
|
/**
|
|
6
6
|
* # `TableHook` 的基础返回结构
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootEntity } from '
|
|
2
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../../
|
|
1
|
+
import { RootEntity } from '../../../../base';
|
|
2
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
|
|
3
3
|
import { IBaseTableOption } from './IBaseTableOption';
|
|
4
4
|
import { IBaseTableResult } from './IBaseTableResult';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootEntity } from '
|
|
2
|
-
import { AbstractCurdService } from '../../../
|
|
1
|
+
import { RootEntity } from '../../../../base';
|
|
2
|
+
import { AbstractCurdService } from '../../../index';
|
|
3
3
|
import { IBaseTableResult } from '../base';
|
|
4
4
|
/**
|
|
5
5
|
* # 表格的 `Hook` 标准返回
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootEntity } from '
|
|
2
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../../
|
|
1
|
+
import { RootEntity } from '../../../../base';
|
|
2
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
|
|
3
3
|
import { ITableOption } from './ITableOption';
|
|
4
4
|
import { ITableResult } from './ITableResult';
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService } from '../../../
|
|
2
|
+
import { RootEntity } from '../../../../base';
|
|
3
|
+
import { AbstractCurdService } from '../../../index';
|
|
4
4
|
import { IBaseTableResult } from '../base';
|
|
5
5
|
/**
|
|
6
6
|
* # 选择器 `Hook` 的标准返回
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IJson } from '@airpower/transformer';
|
|
2
|
-
import { RootEntity } from '
|
|
3
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../../
|
|
2
|
+
import { RootEntity } from '../../../../base';
|
|
3
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
|
|
4
4
|
import { ISelectorOption } from './ISelectorOption';
|
|
5
5
|
import { ISelectorResult } from './ISelectorResult';
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootEntity } from '
|
|
2
|
-
import { AbstractCurdService } from '../../../
|
|
1
|
+
import { RootEntity } from '../../../../base';
|
|
2
|
+
import { AbstractCurdService } from '../../../index';
|
|
3
3
|
import { ITableResult } from '../list';
|
|
4
4
|
/**
|
|
5
5
|
* # 树表格的 `Hook` 标准返回
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootEntity } from '
|
|
2
|
-
import { AbstractCurdService, CurdServiceConstructor } from '../../../
|
|
1
|
+
import { RootEntity } from '../../../../base';
|
|
2
|
+
import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
|
|
3
3
|
import { ITree } from '../../../model';
|
|
4
4
|
import { ITableTreeOption } from './ITableTreeOption';
|
|
5
5
|
import { ITableTreeResult } from './ITableTreeResult';
|
package/dist/curd/index.d.ts
CHANGED